diff --git a/.agents/skills/cli-admin/SKILL.md b/.agents/skills/cli-admin/SKILL.md index 9fd10260e9..4ced8d2d7e 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 5 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 5 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,8 @@ 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) +- [get-organization-id](references/get-organization-id.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-default.md b/.agents/skills/cli-admin/references/app-membership-default.md index 61580e7a6d..a12414e8d8 100644 --- a/.agents/skills/cli-admin/references/app-membership-default.md +++ b/.agents/skills/cli-admin/references/app-membership-default.md @@ -12,8 +12,8 @@ csdk app-membership-default list --where.. --orderBy csdk app-membership-default list --limit 10 --after csdk app-membership-default find-first --where.. csdk app-membership-default get --id -csdk app-membership-default create [--createdBy ] [--isApproved ] [--isVerified ] [--updatedBy ] -csdk app-membership-default update --id [--createdBy ] [--isApproved ] [--isVerified ] [--updatedBy ] +csdk app-membership-default create [--createdBy ] [--createdByPrincipal ] [--isApproved ] [--isVerified ] [--updatedBy ] [--updatedByPrincipal ] +csdk app-membership-default update --id [--createdBy ] [--createdByPrincipal ] [--isApproved ] [--isVerified ] [--updatedBy ] [--updatedByPrincipal ] csdk app-membership-default delete --id ``` @@ -58,7 +58,7 @@ csdk app-membership-default list --where.id.equalTo --orderBy ID_ASC ### Create a appMembershipDefault ```bash -csdk app-membership-default create [--createdBy ] [--isApproved ] [--isVerified ] [--updatedBy ] +csdk app-membership-default create [--createdBy ] [--createdByPrincipal ] [--isApproved ] [--isVerified ] [--updatedBy ] [--updatedByPrincipal ] ``` ### Get a appMembershipDefault by id diff --git a/.agents/skills/cli-admin/references/app-membership.md b/.agents/skills/cli-admin/references/app-membership.md index bb7ce73260..4571a64a27 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 ] [--createdByPrincipal ] [--granted ] [--isActive ] [--isAdmin ] [--isApproved ] [--isBanned ] [--isDisabled ] [--isOwner ] [--isVerified ] [--profileId ] [--updatedBy ] [--updatedByPrincipal ] +csdk app-membership update --id [--actorId ] [--capabilities ] [--createdBy ] [--createdByPrincipal ] [--granted ] [--isActive ] [--isAdmin ] [--isApproved ] [--isBanned ] [--isDisabled ] [--isOwner ] [--isVerified ] [--profileId ] [--updatedBy ] [--updatedByPrincipal ] 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 ] [--createdByPrincipal ] [--granted ] [--isActive ] [--isAdmin ] [--isApproved ] [--isBanned ] [--isDisabled ] [--isOwner ] [--isVerified ] [--profileId ] [--updatedBy ] [--updatedByPrincipal ] ``` ### Get a appMembership by id diff --git a/.agents/skills/cli-admin/references/get-organization-id.md b/.agents/skills/cli-admin/references/get-organization-id.md new file mode 100644 index 0000000000..69ab340312 --- /dev/null +++ b/.agents/skills/cli-admin/references/get-organization-id.md @@ -0,0 +1,19 @@ +# getOrganizationId + + + +Execute the getOrganizationId query + +## Usage + +```bash +csdk get-organization-id --entityId --entityType +``` + +## Examples + +### Run getOrganizationId + +```bash +csdk get-organization-id --entityId --entityType +``` 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-default.md b/.agents/skills/cli-admin/references/org-membership-default.md index 741a19e522..b7f9c9153f 100644 --- a/.agents/skills/cli-admin/references/org-membership-default.md +++ b/.agents/skills/cli-admin/references/org-membership-default.md @@ -12,8 +12,8 @@ csdk org-membership-default list --where.. --orderBy csdk org-membership-default list --limit 10 --after csdk org-membership-default find-first --where.. csdk org-membership-default get --id -csdk org-membership-default create --entityId [--createdBy ] [--isApproved ] [--updatedBy ] -csdk org-membership-default update --id [--createdBy ] [--entityId ] [--isApproved ] [--updatedBy ] +csdk org-membership-default create --entityId [--createdBy ] [--createdByPrincipal ] [--isApproved ] [--updatedBy ] [--updatedByPrincipal ] +csdk org-membership-default update --id [--createdBy ] [--createdByPrincipal ] [--entityId ] [--isApproved ] [--updatedBy ] [--updatedByPrincipal ] csdk org-membership-default delete --id ``` @@ -58,7 +58,7 @@ csdk org-membership-default list --where.id.equalTo --orderBy ID_ASC ### Create a orgMembershipDefault ```bash -csdk org-membership-default create --entityId [--createdBy ] [--isApproved ] [--updatedBy ] +csdk org-membership-default create --entityId [--createdBy ] [--createdByPrincipal ] [--isApproved ] [--updatedBy ] [--updatedByPrincipal ] ``` ### Get a orgMembershipDefault by id diff --git a/.agents/skills/cli-admin/references/org-membership-setting.md b/.agents/skills/cli-admin/references/org-membership-setting.md index 62b8eead5c..4d9bc294b6 100644 --- a/.agents/skills/cli-admin/references/org-membership-setting.md +++ b/.agents/skills/cli-admin/references/org-membership-setting.md @@ -12,8 +12,8 @@ csdk org-membership-setting list --where.. --orderBy csdk org-membership-setting list --limit 10 --after csdk org-membership-setting find-first --where.. csdk org-membership-setting get --id -csdk org-membership-setting create --entityId [--allowExternalMembers ] [--createChildCascadeAdmins ] [--createChildCascadeMembers ] [--createChildCascadeOwners ] [--createdBy ] [--deleteMemberCascadeChildren ] [--inviteProfileAssignmentMode ] [--limitAllocationMode ] [--populateMemberEmail ] [--updatedBy ] -csdk org-membership-setting update --id [--allowExternalMembers ] [--createChildCascadeAdmins ] [--createChildCascadeMembers ] [--createChildCascadeOwners ] [--createdBy ] [--deleteMemberCascadeChildren ] [--entityId ] [--inviteProfileAssignmentMode ] [--limitAllocationMode ] [--populateMemberEmail ] [--updatedBy ] +csdk org-membership-setting create --entityId [--allowExternalMembers ] [--allowPrincipalOwnedApiKeys ] [--createChildCascadeAdmins ] [--createChildCascadeMembers ] [--createChildCascadeOwners ] [--createdBy ] [--createdByPrincipal ] [--deleteMemberCascadeChildren ] [--inviteProfileAssignmentMode ] [--limitAllocationMode ] [--populateMemberEmail ] [--updatedBy ] [--updatedByPrincipal ] +csdk org-membership-setting update --id [--allowExternalMembers ] [--allowPrincipalOwnedApiKeys ] [--createChildCascadeAdmins ] [--createChildCascadeMembers ] [--createChildCascadeOwners ] [--createdBy ] [--createdByPrincipal ] [--deleteMemberCascadeChildren ] [--entityId ] [--inviteProfileAssignmentMode ] [--limitAllocationMode ] [--populateMemberEmail ] [--updatedBy ] [--updatedByPrincipal ] csdk org-membership-setting delete --id ``` @@ -58,7 +58,7 @@ csdk org-membership-setting list --where.id.equalTo --orderBy ID_ASC ### Create a orgMembershipSetting ```bash -csdk org-membership-setting create --entityId [--allowExternalMembers ] [--createChildCascadeAdmins ] [--createChildCascadeMembers ] [--createChildCascadeOwners ] [--createdBy ] [--deleteMemberCascadeChildren ] [--inviteProfileAssignmentMode ] [--limitAllocationMode ] [--populateMemberEmail ] [--updatedBy ] +csdk org-membership-setting create --entityId [--allowExternalMembers ] [--allowPrincipalOwnedApiKeys ] [--createChildCascadeAdmins ] [--createChildCascadeMembers ] [--createChildCascadeOwners ] [--createdBy ] [--createdByPrincipal ] [--deleteMemberCascadeChildren ] [--inviteProfileAssignmentMode ] [--limitAllocationMode ] [--populateMemberEmail ] [--updatedBy ] [--updatedByPrincipal ] ``` ### Get a orgMembershipSetting by id diff --git a/.agents/skills/cli-admin/references/org-membership.md b/.agents/skills/cli-admin/references/org-membership.md index 70c1f1d893..7839ab9b08 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 ] [--createdByPrincipal ] [--granted ] [--isActive ] [--isAdmin ] [--isApproved ] [--isBanned ] [--isDisabled ] [--isExternal ] [--isOwner ] [--isReadOnly ] [--profileId ] [--updatedBy ] [--updatedByPrincipal ] +csdk org-membership update --id [--actorId ] [--capabilities ] [--createdBy ] [--createdByPrincipal ] [--entityId ] [--granted ] [--isActive ] [--isAdmin ] [--isApproved ] [--isBanned ] [--isDisabled ] [--isExternal ] [--isOwner ] [--isReadOnly ] [--profileId ] [--updatedBy ] [--updatedByPrincipal ] 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 ] [--createdByPrincipal ] [--granted ] [--isActive ] [--isAdmin ] [--isApproved ] [--isBanned ] [--isDisabled ] [--isExternal ] [--isOwner ] [--isReadOnly ] [--profileId ] [--updatedBy ] [--updatedByPrincipal ] ``` ### Get a orgMembership by id diff --git a/.agents/skills/cli-admin/references/provision-bucket.md b/.agents/skills/cli-admin/references/provision-bucket.md index cc17ffbc21..5fbe38a003 100644 --- a/.agents/skills/cli-admin/references/provision-bucket.md +++ b/.agents/skills/cli-admin/references/provision-bucket.md @@ -2,10 +2,11 @@ -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. +Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. ## Usage diff --git a/.agents/skills/cli-agent/SKILL.md b/.agents/skills/cli-agent/SKILL.md index 0093c35eab..765c4cd21f 100644 --- a/.agents/skills/cli-agent/SKILL.md +++ b/.agents/skills/cli-agent/SKILL.md @@ -1,13 +1,13 @@ --- name: cli-agent -description: CLI tool (csdk) for the agent API — provides CRUD commands for 9 tables and 1 custom operations +description: CLI tool (csdk) for the agent API — provides CRUD commands for 21 tables and 1 custom operations --- # cli-agent -CLI tool (csdk) for the agent API — provides CRUD commands for 9 tables and 1 custom operations +CLI tool (csdk) for the agent API — provides CRUD commands for 21 tables and 1 custom operations ## Usage @@ -66,4 +66,16 @@ See the `references/` directory for detailed per-entity API documentation: - [agent-resource](references/agent-resource.md) - [agent-task](references/agent-task.md) - [agent-thread](references/agent-thread.md) +- [platform-agent](references/platform-agent.md) +- [platform-agent-event](references/platform-agent-event.md) +- [platform-agent-message](references/platform-agent-message.md) +- [platform-agent-persona](references/platform-agent-persona.md) +- [platform-agent-plan](references/platform-agent-plan.md) +- [platform-agent-prompt](references/platform-agent-prompt.md) +- [platform-agent-resource-chunk](references/platform-agent-resource-chunk.md) +- [platform-agent-resource](references/platform-agent-resource.md) +- [platform-agent-run](references/platform-agent-run.md) +- [platform-agent-run-workspace](references/platform-agent-run-workspace.md) +- [platform-agent-task](references/platform-agent-task.md) +- [platform-agent-thread](references/platform-agent-thread.md) - [provision-bucket](references/provision-bucket.md) diff --git a/.agents/skills/cli-agent/references/agent-message.md b/.agents/skills/cli-agent/references/agent-message.md index 74fe4670eb..9f072a010f 100644 --- a/.agents/skills/cli-agent/references/agent-message.md +++ b/.agents/skills/cli-agent/references/agent-message.md @@ -12,8 +12,8 @@ csdk agent-message list --where.. --orderBy csdk agent-message list --limit 10 --after csdk agent-message find-first --where.. csdk agent-message get --id -csdk agent-message create --authorRole --databaseId --threadId [--actorId ] [--agentId ] [--model ] [--parts ] -csdk agent-message update --id [--actorId ] [--agentId ] [--authorRole ] [--databaseId ] [--model ] [--parts ] [--threadId ] +csdk agent-message create --authorRole --databaseId --threadId [--actorId ] [--agentId ] [--kind ] [--model ] [--parts ] [--visibility ] +csdk agent-message update --id [--actorId ] [--agentId ] [--authorRole ] [--databaseId ] [--kind ] [--model ] [--parts ] [--threadId ] [--visibility ] csdk agent-message delete --id ``` @@ -58,7 +58,7 @@ csdk agent-message list --where.id.equalTo --orderBy ID_ASC ### Create a agentMessage ```bash -csdk agent-message create --authorRole --databaseId --threadId [--actorId ] [--agentId ] [--model ] [--parts ] +csdk agent-message create --authorRole --databaseId --threadId [--actorId ] [--agentId ] [--kind ] [--model ] [--parts ] [--visibility ] ``` ### Get a agentMessage by id diff --git a/.agents/skills/cli-agent/references/agent-persona.md b/.agents/skills/cli-agent/references/agent-persona.md index 1eed4750ee..01db517c19 100644 --- a/.agents/skills/cli-agent/references/agent-persona.md +++ b/.agents/skills/cli-agent/references/agent-persona.md @@ -12,8 +12,8 @@ csdk agent-persona list --where.. --orderBy csdk agent-persona list --limit 10 --after csdk agent-persona find-first --where.. csdk agent-persona get --id -csdk agent-persona create --databaseId --name --slug [--config ] [--createdBy ] [--description ] [--isActive ] [--resources ] [--systemPrompt ] [--updatedBy ] -csdk agent-persona update --id [--config ] [--createdBy ] [--databaseId ] [--description ] [--isActive ] [--name ] [--resources ] [--slug ] [--systemPrompt ] [--updatedBy ] +csdk agent-persona create --databaseId --name --slug [--config ] [--createdBy ] [--createdByPrincipal ] [--description ] [--isActive ] [--resources ] [--systemPrompt ] [--updatedBy ] [--updatedByPrincipal ] +csdk agent-persona update --id [--config ] [--createdBy ] [--createdByPrincipal ] [--databaseId ] [--description ] [--isActive ] [--name ] [--resources ] [--slug ] [--systemPrompt ] [--updatedBy ] [--updatedByPrincipal ] csdk agent-persona delete --id ``` @@ -58,7 +58,7 @@ csdk agent-persona list --where.id.equalTo --orderBy ID_ASC ### Create a agentPersona ```bash -csdk agent-persona create --databaseId --name --slug [--config ] [--createdBy ] [--description ] [--isActive ] [--resources ] [--systemPrompt ] [--updatedBy ] +csdk agent-persona create --databaseId --name --slug [--config ] [--createdBy ] [--createdByPrincipal ] [--description ] [--isActive ] [--resources ] [--systemPrompt ] [--updatedBy ] [--updatedByPrincipal ] ``` ### Get a agentPersona by id diff --git a/.agents/skills/cli-agent/references/agent-plan.md b/.agents/skills/cli-agent/references/agent-plan.md index 79544c6790..252004b0a3 100644 --- a/.agents/skills/cli-agent/references/agent-plan.md +++ b/.agents/skills/cli-agent/references/agent-plan.md @@ -12,8 +12,8 @@ csdk agent-plan list --where.. --orderBy csdk agent-plan list --limit 10 --after csdk agent-plan find-first --where.. csdk agent-plan get --id -csdk agent-plan create --databaseId --threadId --title [--description ] [--ownerId ] [--status ] -csdk agent-plan update --id [--databaseId ] [--description ] [--ownerId ] [--status ] [--threadId ] [--title ] +csdk agent-plan create --databaseId --threadId --title [--description ] [--ownerId ] [--status ] [--visibility ] +csdk agent-plan update --id [--databaseId ] [--description ] [--ownerId ] [--status ] [--threadId ] [--title ] [--visibility ] csdk agent-plan delete --id ``` @@ -58,7 +58,7 @@ csdk agent-plan list --where.id.equalTo --orderBy ID_ASC ### Create a agentPlan ```bash -csdk agent-plan create --databaseId --threadId --title [--description ] [--ownerId ] [--status ] +csdk agent-plan create --databaseId --threadId --title [--description ] [--ownerId ] [--status ] [--visibility ] ``` ### Get a agentPlan by id diff --git a/.agents/skills/cli-agent/references/agent-prompt.md b/.agents/skills/cli-agent/references/agent-prompt.md index 8a711e56da..969ade2172 100644 --- a/.agents/skills/cli-agent/references/agent-prompt.md +++ b/.agents/skills/cli-agent/references/agent-prompt.md @@ -12,8 +12,8 @@ csdk agent-prompt list --where.. --orderBy csdk agent-prompt list --limit 10 --after csdk agent-prompt find-first --where.. csdk agent-prompt get --id -csdk agent-prompt create --content --databaseId --name [--createdBy ] [--description ] [--isDefault ] [--metadata ] [--updatedBy ] -csdk agent-prompt update --id [--content ] [--createdBy ] [--databaseId ] [--description ] [--isDefault ] [--metadata ] [--name ] [--updatedBy ] +csdk agent-prompt create --content --databaseId --name [--createdBy ] [--createdByPrincipal ] [--description ] [--isDefault ] [--metadata ] [--updatedBy ] [--updatedByPrincipal ] +csdk agent-prompt update --id [--content ] [--createdBy ] [--createdByPrincipal ] [--databaseId ] [--description ] [--isDefault ] [--metadata ] [--name ] [--updatedBy ] [--updatedByPrincipal ] csdk agent-prompt delete --id ``` @@ -58,7 +58,7 @@ csdk agent-prompt list --where.id.equalTo --orderBy ID_ASC ### Create a agentPrompt ```bash -csdk agent-prompt create --content --databaseId --name [--createdBy ] [--description ] [--isDefault ] [--metadata ] [--updatedBy ] +csdk agent-prompt create --content --databaseId --name [--createdBy ] [--createdByPrincipal ] [--description ] [--isDefault ] [--metadata ] [--updatedBy ] [--updatedByPrincipal ] ``` ### Get a agentPrompt by id diff --git a/.agents/skills/cli-agent/references/agent-resource-chunk.md b/.agents/skills/cli-agent/references/agent-resource-chunk.md index c8c87a411a..569617f190 100644 --- a/.agents/skills/cli-agent/references/agent-resource-chunk.md +++ b/.agents/skills/cli-agent/references/agent-resource-chunk.md @@ -19,8 +19,8 @@ csdk agent-resource-chunk list --limit 10 --after csdk agent-resource-chunk find-first --where.. csdk agent-resource-chunk search csdk agent-resource-chunk get --id -csdk agent-resource-chunk create --agentResourceId --body [--chunkIndex ] [--embedding ] [--metadata ] -csdk agent-resource-chunk update --id [--agentResourceId ] [--body ] [--chunkIndex ] [--embedding ] [--metadata ] +csdk agent-resource-chunk create --agentResourceId --body [--chunkIndex ] [--databaseId ] [--embedding ] [--metadata ] +csdk agent-resource-chunk update --id [--agentResourceId ] [--body ] [--chunkIndex ] [--databaseId ] [--embedding ] [--metadata ] csdk agent-resource-chunk delete --id ``` @@ -95,7 +95,7 @@ csdk agent-resource-chunk search "query" --limit 10 --select id,title,searchScor ### Create a agentResourceChunk ```bash -csdk agent-resource-chunk create --agentResourceId --body [--chunkIndex ] [--embedding ] [--metadata ] +csdk agent-resource-chunk create --agentResourceId --body [--chunkIndex ] [--databaseId ] [--embedding ] [--metadata ] ``` ### Get a agentResourceChunk by id diff --git a/.agents/skills/cli-agent/references/agent-resource.md b/.agents/skills/cli-agent/references/agent-resource.md index 00c337a956..bceb942c3b 100644 --- a/.agents/skills/cli-agent/references/agent-resource.md +++ b/.agents/skills/cli-agent/references/agent-resource.md @@ -19,8 +19,8 @@ csdk agent-resource list --limit 10 --after csdk agent-resource find-first --where.. csdk agent-resource search csdk agent-resource get --id -csdk agent-resource create --body --databaseId --slug --title [--archivedAt ] [--createdBy ] [--description ] [--embedding ] [--isActive ] [--isArchived ] [--keywords ] [--kind ] [--metadata ] [--updatedBy ] -csdk agent-resource update --id [--archivedAt ] [--body ] [--createdBy ] [--databaseId ] [--description ] [--embedding ] [--isActive ] [--isArchived ] [--keywords ] [--kind ] [--metadata ] [--slug ] [--title ] [--updatedBy ] +csdk agent-resource create --body --databaseId --slug --title [--archivedAt ] [--createdBy ] [--createdByPrincipal ] [--description ] [--embedding ] [--isActive ] [--isArchived ] [--keywords ] [--kind ] [--metadata ] [--updatedBy ] [--updatedByPrincipal ] +csdk agent-resource update --id [--archivedAt ] [--body ] [--createdBy ] [--createdByPrincipal ] [--databaseId ] [--description ] [--embedding ] [--isActive ] [--isArchived ] [--keywords ] [--kind ] [--metadata ] [--slug ] [--title ] [--updatedBy ] [--updatedByPrincipal ] csdk agent-resource delete --id ``` @@ -131,7 +131,7 @@ csdk agent-resource search "query" --limit 10 --select id,title,searchScore ### Create a agentResource ```bash -csdk agent-resource create --body --databaseId --slug --title [--archivedAt ] [--createdBy ] [--description ] [--embedding ] [--isActive ] [--isArchived ] [--keywords ] [--kind ] [--metadata ] [--updatedBy ] +csdk agent-resource create --body --databaseId --slug --title [--archivedAt ] [--createdBy ] [--createdByPrincipal ] [--description ] [--embedding ] [--isActive ] [--isArchived ] [--keywords ] [--kind ] [--metadata ] [--updatedBy ] [--updatedByPrincipal ] ``` ### Get a agentResource by id diff --git a/.agents/skills/cli-agent/references/agent-task.md b/.agents/skills/cli-agent/references/agent-task.md index 7d094bf031..ae6286b576 100644 --- a/.agents/skills/cli-agent/references/agent-task.md +++ b/.agents/skills/cli-agent/references/agent-task.md @@ -12,8 +12,8 @@ csdk agent-task list --where.. --orderBy csdk agent-task list --limit 10 --after csdk agent-task find-first --where.. csdk agent-task get --id -csdk agent-task create --databaseId --description --planId [--actorId ] [--approvalFeedback ] [--approvalStatus ] [--approvedAt ] [--approvedBy ] [--error ] [--orderIndex ] [--requiresApproval ] [--source ] [--status ] -csdk agent-task update --id [--actorId ] [--approvalFeedback ] [--approvalStatus ] [--approvedAt ] [--approvedBy ] [--databaseId ] [--description ] [--error ] [--orderIndex ] [--planId ] [--requiresApproval ] [--source ] [--status ] +csdk agent-task create --databaseId --description --planId [--actorId ] [--approvalFeedback ] [--approvalStatus ] [--approvedAt ] [--approvedBy ] [--error ] [--orderIndex ] [--requiresApproval ] [--source ] [--status ] [--visibility ] +csdk agent-task update --id [--actorId ] [--approvalFeedback ] [--approvalStatus ] [--approvedAt ] [--approvedBy ] [--databaseId ] [--description ] [--error ] [--orderIndex ] [--planId ] [--requiresApproval ] [--source ] [--status ] [--visibility ] csdk agent-task delete --id ``` @@ -58,7 +58,7 @@ csdk agent-task list --where.id.equalTo --orderBy ID_ASC ### Create a agentTask ```bash -csdk agent-task create --databaseId --description --planId [--actorId ] [--approvalFeedback ] [--approvalStatus ] [--approvedAt ] [--approvedBy ] [--error ] [--orderIndex ] [--requiresApproval ] [--source ] [--status ] +csdk agent-task create --databaseId --description --planId [--actorId ] [--approvalFeedback ] [--approvalStatus ] [--approvedAt ] [--approvedBy ] [--error ] [--orderIndex ] [--requiresApproval ] [--source ] [--status ] [--visibility ] ``` ### Get a agentTask by id diff --git a/.agents/skills/cli-agent/references/agent-thread.md b/.agents/skills/cli-agent/references/agent-thread.md index 4de63a1525..df83138166 100644 --- a/.agents/skills/cli-agent/references/agent-thread.md +++ b/.agents/skills/cli-agent/references/agent-thread.md @@ -12,8 +12,8 @@ csdk agent-thread list --where.. --orderBy csdk agent-thread list --limit 10 --after csdk agent-thread find-first --where.. csdk agent-thread get --id -csdk agent-thread create --databaseId [--agentId ] [--archivedAt ] [--isArchived ] [--mode ] [--model ] [--ownerId ] [--parentThreadId ] [--promptTemplateId ] [--status ] [--systemPrompt ] [--tags ] [--title ] -csdk agent-thread update --id [--agentId ] [--archivedAt ] [--databaseId ] [--isArchived ] [--mode ] [--model ] [--ownerId ] [--parentThreadId ] [--promptTemplateId ] [--status ] [--systemPrompt ] [--tags ] [--title ] +csdk agent-thread create --databaseId [--agentId ] [--archivedAt ] [--isArchived ] [--mode ] [--model ] [--ownerId ] [--parentThreadId ] [--promptTemplateId ] [--status ] [--systemPrompt ] [--tags ] [--title ] [--visibility ] +csdk agent-thread update --id [--agentId ] [--archivedAt ] [--databaseId ] [--isArchived ] [--mode ] [--model ] [--ownerId ] [--parentThreadId ] [--promptTemplateId ] [--status ] [--systemPrompt ] [--tags ] [--title ] [--visibility ] csdk agent-thread delete --id ``` @@ -58,7 +58,7 @@ csdk agent-thread list --where.id.equalTo --orderBy ID_ASC ### Create a agentThread ```bash -csdk agent-thread create --databaseId [--agentId ] [--archivedAt ] [--isArchived ] [--mode ] [--model ] [--ownerId ] [--parentThreadId ] [--promptTemplateId ] [--status ] [--systemPrompt ] [--tags ] [--title ] +csdk agent-thread create --databaseId [--agentId ] [--archivedAt ] [--isArchived ] [--mode ] [--model ] [--ownerId ] [--parentThreadId ] [--promptTemplateId ] [--status ] [--systemPrompt ] [--tags ] [--title ] [--visibility ] ``` ### Get a agentThread by id diff --git a/.agents/skills/cli-agent/references/platform-agent-event.md b/.agents/skills/cli-agent/references/platform-agent-event.md new file mode 100644 index 0000000000..3c2d7bb54a --- /dev/null +++ b/.agents/skills/cli-agent/references/platform-agent-event.md @@ -0,0 +1,68 @@ +# platformAgentEvent + + + +CRUD operations for PlatformAgentEvent records via csdk CLI + +## Usage + +```bash +csdk platform-agent-event list +csdk platform-agent-event list --where.. --orderBy +csdk platform-agent-event list --limit 10 --after +csdk platform-agent-event find-first --where.. +csdk platform-agent-event get --id +csdk platform-agent-event create --entry --recordedAt --runId --seq --transcriptVersion [--actorId ] [--transcriptFormat ] [--visibility ] +csdk platform-agent-event update --id [--actorId ] [--entry ] [--recordedAt ] [--runId ] [--seq ] [--transcriptFormat ] [--transcriptVersion ] [--visibility ] +csdk platform-agent-event delete --id +``` + +## Examples + +### List platformAgentEvent records + +```bash +csdk platform-agent-event list +``` + +### List platformAgentEvent records with pagination + +```bash +csdk platform-agent-event list --limit 10 --offset 0 +``` + +### List platformAgentEvent records with cursor pagination + +```bash +csdk platform-agent-event list --limit 10 --after +``` + +### Find first matching platformAgentEvent + +```bash +csdk platform-agent-event find-first --where.id.equalTo +``` + +### List platformAgentEvent records with field selection + +```bash +csdk platform-agent-event list --select id,id +``` + +### List platformAgentEvent records with filtering and ordering + +```bash +csdk platform-agent-event list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a platformAgentEvent + +```bash +csdk platform-agent-event create --entry --recordedAt --runId --seq --transcriptVersion [--actorId ] [--transcriptFormat ] [--visibility ] +``` + +### Get a platformAgentEvent by id + +```bash +csdk platform-agent-event get --id +``` diff --git a/.agents/skills/cli-agent/references/platform-agent-message.md b/.agents/skills/cli-agent/references/platform-agent-message.md new file mode 100644 index 0000000000..6170a5194e --- /dev/null +++ b/.agents/skills/cli-agent/references/platform-agent-message.md @@ -0,0 +1,68 @@ +# platformAgentMessage + + + +CRUD operations for PlatformAgentMessage records via csdk CLI + +## Usage + +```bash +csdk platform-agent-message list +csdk platform-agent-message list --where.. --orderBy +csdk platform-agent-message list --limit 10 --after +csdk platform-agent-message find-first --where.. +csdk platform-agent-message get --id +csdk platform-agent-message create --authorRole --threadId [--actorId ] [--agentId ] [--deliveredRunId ] [--kind ] [--model ] [--parts ] [--visibility ] +csdk platform-agent-message update --id [--actorId ] [--agentId ] [--authorRole ] [--deliveredRunId ] [--kind ] [--model ] [--parts ] [--threadId ] [--visibility ] +csdk platform-agent-message delete --id +``` + +## Examples + +### List platformAgentMessage records + +```bash +csdk platform-agent-message list +``` + +### List platformAgentMessage records with pagination + +```bash +csdk platform-agent-message list --limit 10 --offset 0 +``` + +### List platformAgentMessage records with cursor pagination + +```bash +csdk platform-agent-message list --limit 10 --after +``` + +### Find first matching platformAgentMessage + +```bash +csdk platform-agent-message find-first --where.id.equalTo +``` + +### List platformAgentMessage records with field selection + +```bash +csdk platform-agent-message list --select id,id +``` + +### List platformAgentMessage records with filtering and ordering + +```bash +csdk platform-agent-message list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a platformAgentMessage + +```bash +csdk platform-agent-message create --authorRole --threadId [--actorId ] [--agentId ] [--deliveredRunId ] [--kind ] [--model ] [--parts ] [--visibility ] +``` + +### Get a platformAgentMessage by id + +```bash +csdk platform-agent-message get --id +``` diff --git a/.agents/skills/cli-agent/references/platform-agent-persona.md b/.agents/skills/cli-agent/references/platform-agent-persona.md new file mode 100644 index 0000000000..52daac476c --- /dev/null +++ b/.agents/skills/cli-agent/references/platform-agent-persona.md @@ -0,0 +1,68 @@ +# platformAgentPersona + + + +CRUD operations for PlatformAgentPersona records via csdk CLI + +## Usage + +```bash +csdk platform-agent-persona list +csdk platform-agent-persona list --where.. --orderBy +csdk platform-agent-persona list --limit 10 --after +csdk platform-agent-persona find-first --where.. +csdk platform-agent-persona get --id +csdk platform-agent-persona create --name --slug [--config ] [--createdBy ] [--createdByPrincipal ] [--description ] [--isActive ] [--resources ] [--systemPrompt ] [--updatedBy ] [--updatedByPrincipal ] +csdk platform-agent-persona update --id [--config ] [--createdBy ] [--createdByPrincipal ] [--description ] [--isActive ] [--name ] [--resources ] [--slug ] [--systemPrompt ] [--updatedBy ] [--updatedByPrincipal ] +csdk platform-agent-persona delete --id +``` + +## Examples + +### List platformAgentPersona records + +```bash +csdk platform-agent-persona list +``` + +### List platformAgentPersona records with pagination + +```bash +csdk platform-agent-persona list --limit 10 --offset 0 +``` + +### List platformAgentPersona records with cursor pagination + +```bash +csdk platform-agent-persona list --limit 10 --after +``` + +### Find first matching platformAgentPersona + +```bash +csdk platform-agent-persona find-first --where.id.equalTo +``` + +### List platformAgentPersona records with field selection + +```bash +csdk platform-agent-persona list --select id,id +``` + +### List platformAgentPersona records with filtering and ordering + +```bash +csdk platform-agent-persona list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a platformAgentPersona + +```bash +csdk platform-agent-persona create --name --slug [--config ] [--createdBy ] [--createdByPrincipal ] [--description ] [--isActive ] [--resources ] [--systemPrompt ] [--updatedBy ] [--updatedByPrincipal ] +``` + +### Get a platformAgentPersona by id + +```bash +csdk platform-agent-persona get --id +``` diff --git a/.agents/skills/cli-agent/references/platform-agent-plan.md b/.agents/skills/cli-agent/references/platform-agent-plan.md new file mode 100644 index 0000000000..ffcdbf64d7 --- /dev/null +++ b/.agents/skills/cli-agent/references/platform-agent-plan.md @@ -0,0 +1,68 @@ +# platformAgentPlan + + + +CRUD operations for PlatformAgentPlan records via csdk CLI + +## Usage + +```bash +csdk platform-agent-plan list +csdk platform-agent-plan list --where.. --orderBy +csdk platform-agent-plan list --limit 10 --after +csdk platform-agent-plan find-first --where.. +csdk platform-agent-plan get --id +csdk platform-agent-plan create --threadId --title [--description ] [--ownerId ] [--status ] [--visibility ] +csdk platform-agent-plan update --id [--description ] [--ownerId ] [--status ] [--threadId ] [--title ] [--visibility ] +csdk platform-agent-plan delete --id +``` + +## Examples + +### List platformAgentPlan records + +```bash +csdk platform-agent-plan list +``` + +### List platformAgentPlan records with pagination + +```bash +csdk platform-agent-plan list --limit 10 --offset 0 +``` + +### List platformAgentPlan records with cursor pagination + +```bash +csdk platform-agent-plan list --limit 10 --after +``` + +### Find first matching platformAgentPlan + +```bash +csdk platform-agent-plan find-first --where.id.equalTo +``` + +### List platformAgentPlan records with field selection + +```bash +csdk platform-agent-plan list --select id,id +``` + +### List platformAgentPlan records with filtering and ordering + +```bash +csdk platform-agent-plan list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a platformAgentPlan + +```bash +csdk platform-agent-plan create --threadId --title [--description ] [--ownerId ] [--status ] [--visibility ] +``` + +### Get a platformAgentPlan by id + +```bash +csdk platform-agent-plan get --id +``` diff --git a/.agents/skills/cli-agent/references/platform-agent-prompt.md b/.agents/skills/cli-agent/references/platform-agent-prompt.md new file mode 100644 index 0000000000..470181ff5d --- /dev/null +++ b/.agents/skills/cli-agent/references/platform-agent-prompt.md @@ -0,0 +1,68 @@ +# platformAgentPrompt + + + +CRUD operations for PlatformAgentPrompt records via csdk CLI + +## Usage + +```bash +csdk platform-agent-prompt list +csdk platform-agent-prompt list --where.. --orderBy +csdk platform-agent-prompt list --limit 10 --after +csdk platform-agent-prompt find-first --where.. +csdk platform-agent-prompt get --id +csdk platform-agent-prompt create --content --name [--createdBy ] [--createdByPrincipal ] [--description ] [--isDefault ] [--metadata ] [--updatedBy ] [--updatedByPrincipal ] +csdk platform-agent-prompt update --id [--content ] [--createdBy ] [--createdByPrincipal ] [--description ] [--isDefault ] [--metadata ] [--name ] [--updatedBy ] [--updatedByPrincipal ] +csdk platform-agent-prompt delete --id +``` + +## Examples + +### List platformAgentPrompt records + +```bash +csdk platform-agent-prompt list +``` + +### List platformAgentPrompt records with pagination + +```bash +csdk platform-agent-prompt list --limit 10 --offset 0 +``` + +### List platformAgentPrompt records with cursor pagination + +```bash +csdk platform-agent-prompt list --limit 10 --after +``` + +### Find first matching platformAgentPrompt + +```bash +csdk platform-agent-prompt find-first --where.id.equalTo +``` + +### List platformAgentPrompt records with field selection + +```bash +csdk platform-agent-prompt list --select id,id +``` + +### List platformAgentPrompt records with filtering and ordering + +```bash +csdk platform-agent-prompt list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a platformAgentPrompt + +```bash +csdk platform-agent-prompt create --content --name [--createdBy ] [--createdByPrincipal ] [--description ] [--isDefault ] [--metadata ] [--updatedBy ] [--updatedByPrincipal ] +``` + +### Get a platformAgentPrompt by id + +```bash +csdk platform-agent-prompt get --id +``` diff --git a/.agents/skills/cli-agent/references/platform-agent-resource-chunk.md b/.agents/skills/cli-agent/references/platform-agent-resource-chunk.md new file mode 100644 index 0000000000..8fc3c6aab4 --- /dev/null +++ b/.agents/skills/cli-agent/references/platform-agent-resource-chunk.md @@ -0,0 +1,105 @@ +# platformAgentResourceChunk + + + +CRUD operations for PlatformAgentResourceChunk records via csdk CLI + +**pgvector embedding fields:** `embedding` +High-dimensional vector columns for semantic similarity search. Query via the Unified Search API pgvector adapter using cosine, L2, or inner-product distance. Supports chunk-aware search: set `includeChunks: true` in VectorNearbyInput to transparently query across parent and chunk embeddings, returning the minimum distance. + +**Unified Search API fields:** `searchScore` +Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. + +## Usage + +```bash +csdk platform-agent-resource-chunk list +csdk platform-agent-resource-chunk list --where.. --orderBy +csdk platform-agent-resource-chunk list --limit 10 --after +csdk platform-agent-resource-chunk find-first --where.. +csdk platform-agent-resource-chunk search +csdk platform-agent-resource-chunk get --id +csdk platform-agent-resource-chunk create --body --platformAgentResourceId [--chunkIndex ] [--embedding ] [--metadata ] +csdk platform-agent-resource-chunk update --id [--body ] [--chunkIndex ] [--embedding ] [--metadata ] [--platformAgentResourceId ] +csdk platform-agent-resource-chunk delete --id +``` + +## Examples + +### List platformAgentResourceChunk records + +```bash +csdk platform-agent-resource-chunk list +``` + +### List platformAgentResourceChunk records with pagination + +```bash +csdk platform-agent-resource-chunk list --limit 10 --offset 0 +``` + +### List platformAgentResourceChunk records with cursor pagination + +```bash +csdk platform-agent-resource-chunk list --limit 10 --after +``` + +### Find first matching platformAgentResourceChunk + +```bash +csdk platform-agent-resource-chunk find-first --where.id.equalTo +``` + +### List platformAgentResourceChunk records with field selection + +```bash +csdk platform-agent-resource-chunk list --select id,id +``` + +### List platformAgentResourceChunk records with filtering and ordering + +```bash +csdk platform-agent-resource-chunk list --where.id.equalTo --orderBy ID_ASC +``` + +### Vector similarity search via `embedding` (manual vector) + +```bash +# Pass a pre-computed vector array via dot-notation +csdk platform-agent-resource-chunk list --where.embedding.vector '[0.1,0.2,0.3]' --where.embedding.distance 1.0 --select title,embeddingVectorDistance +``` + +### Vector semantic search via `embedding` with --auto-embed + +```bash +# --auto-embed converts text to vectors using the configured embedder (e.g. Ollama nomic-embed-text) +EMBEDDER_PROVIDER=ollama csdk platform-agent-resource-chunk search "semantic query" --auto-embed --select title,embeddingVectorDistance +EMBEDDER_PROVIDER=ollama csdk platform-agent-resource-chunk list --where.embedding.vector "semantic query" --auto-embed --select title,embeddingVectorDistance +``` + +### Create/update with auto-embedded `embedding` via --auto-embed + +```bash +# --auto-embed on create/update converts text strings in vector fields to embeddings before saving +EMBEDDER_PROVIDER=ollama csdk platform-agent-resource-chunk create --embedding "text to embed" --auto-embed +EMBEDDER_PROVIDER=ollama csdk platform-agent-resource-chunk update --embedding "new text to embed" --auto-embed +``` + +### Search with pagination and field projection + +```bash +csdk platform-agent-resource-chunk list --where.unifiedSearch "query" --limit 10 --select id,title,searchScore +csdk platform-agent-resource-chunk search "query" --limit 10 --select id,title,searchScore +``` + +### Create a platformAgentResourceChunk + +```bash +csdk platform-agent-resource-chunk create --body --platformAgentResourceId [--chunkIndex ] [--embedding ] [--metadata ] +``` + +### Get a platformAgentResourceChunk by id + +```bash +csdk platform-agent-resource-chunk get --id +``` diff --git a/.agents/skills/cli-agent/references/platform-agent-resource.md b/.agents/skills/cli-agent/references/platform-agent-resource.md new file mode 100644 index 0000000000..a9f282704f --- /dev/null +++ b/.agents/skills/cli-agent/references/platform-agent-resource.md @@ -0,0 +1,141 @@ +# platformAgentResource + + + +CRUD operations for PlatformAgentResource records via csdk CLI + +**pgvector embedding fields:** `embedding` +High-dimensional vector columns for semantic similarity search. Query via the Unified Search API pgvector adapter using cosine, L2, or inner-product distance. Supports chunk-aware search: set `includeChunks: true` in VectorNearbyInput to transparently query across parent and chunk embeddings, returning the minimum distance. + +**Unified Search API fields:** `bodyTrgmSimilarity`, `descriptionTrgmSimilarity`, `kindTrgmSimilarity`, `search`, `searchScore`, `titleTrgmSimilarity` +Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. + +## Usage + +```bash +csdk platform-agent-resource list +csdk platform-agent-resource list --where.. --orderBy +csdk platform-agent-resource list --limit 10 --after +csdk platform-agent-resource find-first --where.. +csdk platform-agent-resource search +csdk platform-agent-resource get --id +csdk platform-agent-resource create --body --slug --title [--archivedAt ] [--createdBy ] [--createdByPrincipal ] [--description ] [--embedding ] [--isActive ] [--isArchived ] [--keywords ] [--kind ] [--metadata ] [--updatedBy ] [--updatedByPrincipal ] +csdk platform-agent-resource update --id [--archivedAt ] [--body ] [--createdBy ] [--createdByPrincipal ] [--description ] [--embedding ] [--isActive ] [--isArchived ] [--keywords ] [--kind ] [--metadata ] [--slug ] [--title ] [--updatedBy ] [--updatedByPrincipal ] +csdk platform-agent-resource delete --id +``` + +## Examples + +### List platformAgentResource records + +```bash +csdk platform-agent-resource list +``` + +### List platformAgentResource records with pagination + +```bash +csdk platform-agent-resource list --limit 10 --offset 0 +``` + +### List platformAgentResource records with cursor pagination + +```bash +csdk platform-agent-resource list --limit 10 --after +``` + +### Find first matching platformAgentResource + +```bash +csdk platform-agent-resource find-first --where.id.equalTo +``` + +### List platformAgentResource records with field selection + +```bash +csdk platform-agent-resource list --select id,id +``` + +### List platformAgentResource records with filtering and ordering + +```bash +csdk platform-agent-resource list --where.id.equalTo --orderBy ID_ASC +``` + +### Vector similarity search via `embedding` (manual vector) + +```bash +# Pass a pre-computed vector array via dot-notation +csdk platform-agent-resource list --where.embedding.vector '[0.1,0.2,0.3]' --where.embedding.distance 1.0 --select title,embeddingVectorDistance +``` + +### Vector semantic search via `embedding` with --auto-embed + +```bash +# --auto-embed converts text to vectors using the configured embedder (e.g. Ollama nomic-embed-text) +EMBEDDER_PROVIDER=ollama csdk platform-agent-resource search "semantic query" --auto-embed --select title,embeddingVectorDistance +EMBEDDER_PROVIDER=ollama csdk platform-agent-resource list --where.embedding.vector "semantic query" --auto-embed --select title,embeddingVectorDistance +``` + +### Create/update with auto-embedded `embedding` via --auto-embed + +```bash +# --auto-embed on create/update converts text strings in vector fields to embeddings before saving +EMBEDDER_PROVIDER=ollama csdk platform-agent-resource create --embedding "text to embed" --auto-embed +EMBEDDER_PROVIDER=ollama csdk platform-agent-resource update --embedding "new text to embed" --auto-embed +``` + +### Fuzzy search via trigram similarity (`trgmBody`) + +```bash +csdk platform-agent-resource list --where.trgmBody.value "approximate query" --where.trgmBody.threshold 0.3 --select title,bodyTrgmSimilarity +``` + +### Fuzzy search via trigram similarity (`trgmDescription`) + +```bash +csdk platform-agent-resource list --where.trgmDescription.value "approximate query" --where.trgmDescription.threshold 0.3 --select title,descriptionTrgmSimilarity +``` + +### Fuzzy search via trigram similarity (`trgmKind`) + +```bash +csdk platform-agent-resource list --where.trgmKind.value "approximate query" --where.trgmKind.threshold 0.3 --select title,kindTrgmSimilarity +``` + +### Full-text search via tsvector (`search`) + +```bash +csdk platform-agent-resource list --where.search "search query" --select title,tsvRank +``` + +### Fuzzy search via trigram similarity (`trgmTitle`) + +```bash +csdk platform-agent-resource list --where.trgmTitle.value "approximate query" --where.trgmTitle.threshold 0.3 --select title,titleTrgmSimilarity +``` + +### Composite search (unifiedSearch dispatches to all text adapters) + +```bash +csdk platform-agent-resource list --where.unifiedSearch "search query" --select title,bodyTrgmSimilarity,descriptionTrgmSimilarity,kindTrgmSimilarity,tsvRank,searchScore,titleTrgmSimilarity +``` + +### Search with pagination and field projection + +```bash +csdk platform-agent-resource list --where.unifiedSearch "query" --limit 10 --select id,title,searchScore +csdk platform-agent-resource search "query" --limit 10 --select id,title,searchScore +``` + +### Create a platformAgentResource + +```bash +csdk platform-agent-resource create --body --slug --title [--archivedAt ] [--createdBy ] [--createdByPrincipal ] [--description ] [--embedding ] [--isActive ] [--isArchived ] [--keywords ] [--kind ] [--metadata ] [--updatedBy ] [--updatedByPrincipal ] +``` + +### Get a platformAgentResource by id + +```bash +csdk platform-agent-resource get --id +``` diff --git a/.agents/skills/cli-agent/references/platform-agent-run-workspace.md b/.agents/skills/cli-agent/references/platform-agent-run-workspace.md new file mode 100644 index 0000000000..a8d8c07a47 --- /dev/null +++ b/.agents/skills/cli-agent/references/platform-agent-run-workspace.md @@ -0,0 +1,68 @@ +# platformAgentRunWorkspace + + + +CRUD operations for PlatformAgentRunWorkspace records via csdk CLI + +## Usage + +```bash +csdk platform-agent-run-workspace list +csdk platform-agent-run-workspace list --where.. --orderBy +csdk platform-agent-run-workspace list --limit 10 --after +csdk platform-agent-run-workspace find-first --where.. +csdk platform-agent-run-workspace get --id +csdk platform-agent-run-workspace create --baseBranch --branch --provider --repo --runId [--actorId ] [--artifacts ] [--baseCommit ] [--clonedAt ] [--headCommit ] [--lastUsedAt ] [--ordinal ] [--publication ] [--repositoryId ] [--state ] [--visibility ] +csdk platform-agent-run-workspace update --id [--actorId ] [--artifacts ] [--baseBranch ] [--baseCommit ] [--branch ] [--clonedAt ] [--headCommit ] [--lastUsedAt ] [--ordinal ] [--provider ] [--publication ] [--repo ] [--repositoryId ] [--runId ] [--state ] [--visibility ] +csdk platform-agent-run-workspace delete --id +``` + +## Examples + +### List platformAgentRunWorkspace records + +```bash +csdk platform-agent-run-workspace list +``` + +### List platformAgentRunWorkspace records with pagination + +```bash +csdk platform-agent-run-workspace list --limit 10 --offset 0 +``` + +### List platformAgentRunWorkspace records with cursor pagination + +```bash +csdk platform-agent-run-workspace list --limit 10 --after +``` + +### Find first matching platformAgentRunWorkspace + +```bash +csdk platform-agent-run-workspace find-first --where.id.equalTo +``` + +### List platformAgentRunWorkspace records with field selection + +```bash +csdk platform-agent-run-workspace list --select id,id +``` + +### List platformAgentRunWorkspace records with filtering and ordering + +```bash +csdk platform-agent-run-workspace list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a platformAgentRunWorkspace + +```bash +csdk platform-agent-run-workspace create --baseBranch --branch --provider --repo --runId [--actorId ] [--artifacts ] [--baseCommit ] [--clonedAt ] [--headCommit ] [--lastUsedAt ] [--ordinal ] [--publication ] [--repositoryId ] [--state ] [--visibility ] +``` + +### Get a platformAgentRunWorkspace by id + +```bash +csdk platform-agent-run-workspace get --id +``` diff --git a/.agents/skills/cli-agent/references/platform-agent-run.md b/.agents/skills/cli-agent/references/platform-agent-run.md new file mode 100644 index 0000000000..83043a8448 --- /dev/null +++ b/.agents/skills/cli-agent/references/platform-agent-run.md @@ -0,0 +1,68 @@ +# platformAgentRun + + + +CRUD operations for PlatformAgentRun records via csdk CLI + +## Usage + +```bash +csdk platform-agent-run list +csdk platform-agent-run list --where.. --orderBy +csdk platform-agent-run list --limit 10 --after +csdk platform-agent-run find-first --where.. +csdk platform-agent-run get --id +csdk platform-agent-run create --threadId [--actorId ] [--artifacts ] [--attempt ] [--baseCommit ] [--branch ] [--databaseId ] [--deadlineAt ] [--entityId ] [--error ] [--executionId ] [--finishedAt ] [--headCommit ] [--lastEventSeq ] [--parentRunId ] [--placement ] [--principalId ] [--repoUrl ] [--startedAt ] [--status ] [--tokenUsage ] [--totalCost ] [--visibility ] +csdk platform-agent-run update --id [--actorId ] [--artifacts ] [--attempt ] [--baseCommit ] [--branch ] [--databaseId ] [--deadlineAt ] [--entityId ] [--error ] [--executionId ] [--finishedAt ] [--headCommit ] [--lastEventSeq ] [--parentRunId ] [--placement ] [--principalId ] [--repoUrl ] [--startedAt ] [--status ] [--threadId ] [--tokenUsage ] [--totalCost ] [--visibility ] +csdk platform-agent-run delete --id +``` + +## Examples + +### List platformAgentRun records + +```bash +csdk platform-agent-run list +``` + +### List platformAgentRun records with pagination + +```bash +csdk platform-agent-run list --limit 10 --offset 0 +``` + +### List platformAgentRun records with cursor pagination + +```bash +csdk platform-agent-run list --limit 10 --after +``` + +### Find first matching platformAgentRun + +```bash +csdk platform-agent-run find-first --where.id.equalTo +``` + +### List platformAgentRun records with field selection + +```bash +csdk platform-agent-run list --select id,id +``` + +### List platformAgentRun records with filtering and ordering + +```bash +csdk platform-agent-run list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a platformAgentRun + +```bash +csdk platform-agent-run create --threadId [--actorId ] [--artifacts ] [--attempt ] [--baseCommit ] [--branch ] [--databaseId ] [--deadlineAt ] [--entityId ] [--error ] [--executionId ] [--finishedAt ] [--headCommit ] [--lastEventSeq ] [--parentRunId ] [--placement ] [--principalId ] [--repoUrl ] [--startedAt ] [--status ] [--tokenUsage ] [--totalCost ] [--visibility ] +``` + +### Get a platformAgentRun by id + +```bash +csdk platform-agent-run get --id +``` diff --git a/.agents/skills/cli-agent/references/platform-agent-task.md b/.agents/skills/cli-agent/references/platform-agent-task.md new file mode 100644 index 0000000000..95d8faf6ed --- /dev/null +++ b/.agents/skills/cli-agent/references/platform-agent-task.md @@ -0,0 +1,68 @@ +# platformAgentTask + + + +CRUD operations for PlatformAgentTask records via csdk CLI + +## Usage + +```bash +csdk platform-agent-task list +csdk platform-agent-task list --where.. --orderBy +csdk platform-agent-task list --limit 10 --after +csdk platform-agent-task find-first --where.. +csdk platform-agent-task get --id +csdk platform-agent-task create --description --planId [--actorId ] [--approvalFeedback ] [--approvalStatus ] [--approvedAt ] [--approvedBy ] [--error ] [--orderIndex ] [--requiresApproval ] [--source ] [--status ] [--visibility ] +csdk platform-agent-task update --id [--actorId ] [--approvalFeedback ] [--approvalStatus ] [--approvedAt ] [--approvedBy ] [--description ] [--error ] [--orderIndex ] [--planId ] [--requiresApproval ] [--source ] [--status ] [--visibility ] +csdk platform-agent-task delete --id +``` + +## Examples + +### List platformAgentTask records + +```bash +csdk platform-agent-task list +``` + +### List platformAgentTask records with pagination + +```bash +csdk platform-agent-task list --limit 10 --offset 0 +``` + +### List platformAgentTask records with cursor pagination + +```bash +csdk platform-agent-task list --limit 10 --after +``` + +### Find first matching platformAgentTask + +```bash +csdk platform-agent-task find-first --where.id.equalTo +``` + +### List platformAgentTask records with field selection + +```bash +csdk platform-agent-task list --select id,id +``` + +### List platformAgentTask records with filtering and ordering + +```bash +csdk platform-agent-task list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a platformAgentTask + +```bash +csdk platform-agent-task create --description --planId [--actorId ] [--approvalFeedback ] [--approvalStatus ] [--approvedAt ] [--approvedBy ] [--error ] [--orderIndex ] [--requiresApproval ] [--source ] [--status ] [--visibility ] +``` + +### Get a platformAgentTask by id + +```bash +csdk platform-agent-task get --id +``` diff --git a/.agents/skills/cli-agent/references/platform-agent-thread.md b/.agents/skills/cli-agent/references/platform-agent-thread.md new file mode 100644 index 0000000000..c3c67477e3 --- /dev/null +++ b/.agents/skills/cli-agent/references/platform-agent-thread.md @@ -0,0 +1,68 @@ +# platformAgentThread + + + +CRUD operations for PlatformAgentThread records via csdk CLI + +## Usage + +```bash +csdk platform-agent-thread list +csdk platform-agent-thread list --where.. --orderBy +csdk platform-agent-thread list --limit 10 --after +csdk platform-agent-thread find-first --where.. +csdk platform-agent-thread get --id +csdk platform-agent-thread create [--agentId ] [--archivedAt ] [--isArchived ] [--mode ] [--model ] [--ownerId ] [--parentThreadId ] [--promptTemplateId ] [--status ] [--systemPrompt ] [--tags ] [--title ] [--visibility ] +csdk platform-agent-thread update --id [--agentId ] [--archivedAt ] [--isArchived ] [--mode ] [--model ] [--ownerId ] [--parentThreadId ] [--promptTemplateId ] [--status ] [--systemPrompt ] [--tags ] [--title ] [--visibility ] +csdk platform-agent-thread delete --id +``` + +## Examples + +### List platformAgentThread records + +```bash +csdk platform-agent-thread list +``` + +### List platformAgentThread records with pagination + +```bash +csdk platform-agent-thread list --limit 10 --offset 0 +``` + +### List platformAgentThread records with cursor pagination + +```bash +csdk platform-agent-thread list --limit 10 --after +``` + +### Find first matching platformAgentThread + +```bash +csdk platform-agent-thread find-first --where.id.equalTo +``` + +### List platformAgentThread records with field selection + +```bash +csdk platform-agent-thread list --select id,id +``` + +### List platformAgentThread records with filtering and ordering + +```bash +csdk platform-agent-thread list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a platformAgentThread + +```bash +csdk platform-agent-thread create [--agentId ] [--archivedAt ] [--isArchived ] [--mode ] [--model ] [--ownerId ] [--parentThreadId ] [--promptTemplateId ] [--status ] [--systemPrompt ] [--tags ] [--title ] [--visibility ] +``` + +### Get a platformAgentThread by id + +```bash +csdk platform-agent-thread get --id +``` diff --git a/.agents/skills/cli-agent/references/platform-agent.md b/.agents/skills/cli-agent/references/platform-agent.md new file mode 100644 index 0000000000..d9f5ec6270 --- /dev/null +++ b/.agents/skills/cli-agent/references/platform-agent.md @@ -0,0 +1,68 @@ +# platformAgent + + + +CRUD operations for PlatformAgent records via csdk CLI + +## Usage + +```bash +csdk platform-agent list +csdk platform-agent list --where.. --orderBy +csdk platform-agent list --limit 10 --after +csdk platform-agent find-first --where.. +csdk platform-agent get --id +csdk platform-agent create --name [--config ] [--isEphemeral ] [--ownerId ] [--parentId ] [--personaId ] [--status ] [--systemPrompt ] +csdk platform-agent update --id [--config ] [--isEphemeral ] [--name ] [--ownerId ] [--parentId ] [--personaId ] [--status ] [--systemPrompt ] +csdk platform-agent delete --id +``` + +## Examples + +### List platformAgent records + +```bash +csdk platform-agent list +``` + +### List platformAgent records with pagination + +```bash +csdk platform-agent list --limit 10 --offset 0 +``` + +### List platformAgent records with cursor pagination + +```bash +csdk platform-agent list --limit 10 --after +``` + +### Find first matching platformAgent + +```bash +csdk platform-agent find-first --where.id.equalTo +``` + +### List platformAgent records with field selection + +```bash +csdk platform-agent list --select id,id +``` + +### List platformAgent records with filtering and ordering + +```bash +csdk platform-agent list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a platformAgent + +```bash +csdk platform-agent create --name [--config ] [--isEphemeral ] [--ownerId ] [--parentId ] [--personaId ] [--status ] [--systemPrompt ] +``` + +### Get a platformAgent by id + +```bash +csdk platform-agent get --id +``` diff --git a/.agents/skills/cli-agent/references/provision-bucket.md b/.agents/skills/cli-agent/references/provision-bucket.md index cc17ffbc21..5fbe38a003 100644 --- a/.agents/skills/cli-agent/references/provision-bucket.md +++ b/.agents/skills/cli-agent/references/provision-bucket.md @@ -2,10 +2,11 @@ -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. +Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. ## Usage diff --git a/.agents/skills/cli-api/SKILL.md b/.agents/skills/cli-api/SKILL.md index 309d60d810..7b7ecd70ca 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 91 tables and 44 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 91 tables and 44 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) @@ -81,20 +84,25 @@ See the `references/` directory for detailed per-entity API documentation: - [foreign-key-constraint](references/foreign-key-constraint.md) - [full-text-search](references/full-text-search.md) - [function](references/function.md) +- [get-site-previews-record](references/get-site-previews-record.md) - [hostname-binding](references/hostname-binding.md) -- [http-route](references/http-route.md) +- [identity-provider-registry](references/identity-provider-registry.md) - [index](references/index.md) - [managed-domain](references/managed-domain.md) - [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-get-site-previews-record](references/platform-get-site-previews-record.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) @@ -103,11 +111,13 @@ See the `references/` directory for detailed per-entity API documentation: - [platform-site-error-page](references/platform-site-error-page.md) - [platform-site-metadatum](references/platform-site-metadatum.md) - [platform-site-module](references/platform-site-module.md) +- [platform-site-release](references/platform-site-release.md) - [platform-site-theme](references/platform-site-theme.md) - [platform-site-web-config](references/platform-site-web-config.md) - [policy](references/policy.md) - [primary-key-constraint](references/primary-key-constraint.md) - [pubkey-setting](references/pubkey-setting.md) +- [redirect](references/redirect.md) - [rls-setting](references/rls-setting.md) - [route-binding](references/route-binding.md) - [route](references/route.md) @@ -119,6 +129,7 @@ See the `references/` directory for detailed per-entity API documentation: - [site-error-page](references/site-error-page.md) - [site-metadatum](references/site-metadatum.md) - [site-module](references/site-module.md) +- [site-release](references/site-release.md) - [site-theme](references/site-theme.md) - [site-web-config](references/site-web-config.md) - [spatial-relation](references/spatial-relation.md) @@ -138,18 +149,45 @@ See the `references/` directory for detailed per-entity API documentation: - [webauthn-setting](references/webauthn-setting.md) - [api-schema-names](references/api-schema-names.md) - [apply-registry-defaults](references/apply-registry-defaults.md) +- [get-site-preview-commit](references/get-site-preview-commit.md) +- [get-site-release-manifest](references/get-site-release-manifest.md) +- [page-published](references/page-published.md) +- [platform-get-site-preview-commit](references/platform-get-site-preview-commit.md) +- [platform-get-site-release-manifest](references/platform-get-site-release-manifest.md) +- [platform-page-published](references/platform-page-published.md) +- [platform-sites-deep-link-url](references/platform-sites-deep-link-url.md) +- [platform-sites-site-origin](references/platform-sites-site-origin.md) +- [platform-verify-site-preview-token](references/platform-verify-site-preview-token.md) - [resolve-deep-link](references/resolve-deep-link.md) -- [resolve-http-route](references/resolve-http-route.md) - [resolve-route](references/resolve-route.md) - [resolve-site-app-links](references/resolve-site-app-links.md) +- [sites-deep-link-url](references/sites-deep-link-url.md) +- [sites-site-origin](references/sites-site-origin.md) +- [verify-site-preview-token](references/verify-site-preview-token.md) - [accept-database-transfer](references/accept-database-transfer.md) - [apply-rls](references/apply-rls.md) - [cancel-database-transfer](references/cancel-database-transfer.md) +- [delete-site-preview](references/delete-site-preview.md) - [domains-assign-subdomain](references/domains-assign-subdomain.md) +- [mint-site-preview-token](references/mint-site-preview-token.md) +- [pages-install-pages](references/pages-install-pages.md) +- [platform-delete-site-preview](references/platform-delete-site-preview.md) - [platform-domains-assign-subdomain](references/platform-domains-assign-subdomain.md) +- [platform-mint-site-preview-token](references/platform-mint-site-preview-token.md) +- [platform-pages-install-pages](references/platform-pages-install-pages.md) +- [platform-provision-site-preview](references/platform-provision-site-preview.md) +- [platform-set-site-preview](references/platform-set-site-preview.md) +- [platform-site-metadata-install-robots](references/platform-site-metadata-install-robots.md) +- [platform-sites-install-content-preset](references/platform-sites-install-content-preset.md) +- [platform-sites-install-mantra](references/platform-sites-install-mantra.md) - [platform-sites-provision-static-site](references/platform-sites-provision-static-site.md) - [provision-bucket](references/provision-bucket.md) +- [provision-site-preview](references/provision-site-preview.md) - [reject-database-transfer](references/reject-database-transfer.md) - [request-database](references/request-database.md) - [set-field-order](references/set-field-order.md) +- [set-site-preview](references/set-site-preview.md) +- [site-metadata-install-robots](references/site-metadata-install-robots.md) +- [sites-install-content-preset](references/sites-install-content-preset.md) +- [sites-install-mantra](references/sites-install-mantra.md) - [sites-provision-static-site](references/sites-provision-static-site.md) diff --git a/.agents/skills/cli-api/references/api-setting.md b/.agents/skills/cli-api/references/api-setting.md index 8b20c7f08b..eee61b53fc 100644 --- a/.agents/skills/cli-api/references/api-setting.md +++ b/.agents/skills/cli-api/references/api-setting.md @@ -12,8 +12,8 @@ csdk api-setting list --where.. --orderBy csdk api-setting list --limit 10 --after csdk api-setting find-first --where.. csdk api-setting get --id -csdk api-setting create --apiId --databaseId [--enableAggregates ] [--enableBulk ] [--enableConnectionFilter ] [--enableDirectUploads ] [--enableI18N ] [--enableLlm ] [--enableLtree ] [--enableManyToMany ] [--enablePostgis ] [--enablePresignedUploads ] [--enableRealtime ] [--enableSearch ] [--options ] [--statementTimeoutMs ] -csdk api-setting update --id [--apiId ] [--databaseId ] [--enableAggregates ] [--enableBulk ] [--enableConnectionFilter ] [--enableDirectUploads ] [--enableI18N ] [--enableLlm ] [--enableLtree ] [--enableManyToMany ] [--enablePostgis ] [--enablePresignedUploads ] [--enableRealtime ] [--enableSearch ] [--options ] [--statementTimeoutMs ] +csdk api-setting create --apiId --databaseId [--enableAggregates ] [--enableBulk ] [--enableConnectionFilter ] [--enableDirectUploads ] [--enableI18N ] [--enableIntrospection ] [--enableLlm ] [--enableLtree ] [--enableManyToMany ] [--enablePostgis ] [--enablePresignedUploads ] [--enableRealtime ] [--enableSearch ] [--idleInTransactionTimeoutMs ] [--lockTimeoutMs ] [--maxConcurrentRequests ] [--maxPageSize ] [--maxQueryCost ] [--maxQueryDepth ] [--maxQueueWaitMs ] [--maxRequestBytes ] [--options ] [--rateLimitBurst ] [--rateLimitRpm ] [--statementTimeoutMs ] +csdk api-setting update --id [--apiId ] [--databaseId ] [--enableAggregates ] [--enableBulk ] [--enableConnectionFilter ] [--enableDirectUploads ] [--enableI18N ] [--enableIntrospection ] [--enableLlm ] [--enableLtree ] [--enableManyToMany ] [--enablePostgis ] [--enablePresignedUploads ] [--enableRealtime ] [--enableSearch ] [--idleInTransactionTimeoutMs ] [--lockTimeoutMs ] [--maxConcurrentRequests ] [--maxPageSize ] [--maxQueryCost ] [--maxQueryDepth ] [--maxQueueWaitMs ] [--maxRequestBytes ] [--options ] [--rateLimitBurst ] [--rateLimitRpm ] [--statementTimeoutMs ] csdk api-setting delete --id ``` @@ -58,7 +58,7 @@ csdk api-setting list --where.id.equalTo --orderBy ID_ASC ### Create a apiSetting ```bash -csdk api-setting create --apiId --databaseId [--enableAggregates ] [--enableBulk ] [--enableConnectionFilter ] [--enableDirectUploads ] [--enableI18N ] [--enableLlm ] [--enableLtree ] [--enableManyToMany ] [--enablePostgis ] [--enablePresignedUploads ] [--enableRealtime ] [--enableSearch ] [--options ] [--statementTimeoutMs ] +csdk api-setting create --apiId --databaseId [--enableAggregates ] [--enableBulk ] [--enableConnectionFilter ] [--enableDirectUploads ] [--enableI18N ] [--enableIntrospection ] [--enableLlm ] [--enableLtree ] [--enableManyToMany ] [--enablePostgis ] [--enablePresignedUploads ] [--enableRealtime ] [--enableSearch ] [--idleInTransactionTimeoutMs ] [--lockTimeoutMs ] [--maxConcurrentRequests ] [--maxPageSize ] [--maxQueryCost ] [--maxQueryDepth ] [--maxQueueWaitMs ] [--maxRequestBytes ] [--options ] [--rateLimitBurst ] [--rateLimitRpm ] [--statementTimeoutMs ] ``` ### Get a apiSetting by id diff --git a/.agents/skills/cli-api/references/database-setting.md b/.agents/skills/cli-api/references/database-setting.md index 2916d33b5b..e3cf346c81 100644 --- a/.agents/skills/cli-api/references/database-setting.md +++ b/.agents/skills/cli-api/references/database-setting.md @@ -12,8 +12,8 @@ csdk database-setting list --where.. --orderBy csdk database-setting list --limit 10 --after csdk database-setting find-first --where.. csdk database-setting get --id -csdk database-setting create --databaseId [--annotations ] [--enableAggregates ] [--enableBulk ] [--enableConnectionFilter ] [--enableDirectUploads ] [--enableI18N ] [--enableLlm ] [--enableLtree ] [--enableManyToMany ] [--enablePostgis ] [--enablePresignedUploads ] [--enableRealtime ] [--enableSearch ] [--labels ] [--options ] [--statementTimeoutMs ] -csdk database-setting update --id [--annotations ] [--databaseId ] [--enableAggregates ] [--enableBulk ] [--enableConnectionFilter ] [--enableDirectUploads ] [--enableI18N ] [--enableLlm ] [--enableLtree ] [--enableManyToMany ] [--enablePostgis ] [--enablePresignedUploads ] [--enableRealtime ] [--enableSearch ] [--labels ] [--options ] [--statementTimeoutMs ] +csdk database-setting create --databaseId [--annotations ] [--enableAggregates ] [--enableBilling ] [--enableBulk ] [--enableConnectionFilter ] [--enableDirectUploads ] [--enableI18N ] [--enableIntrospection ] [--enableLlm ] [--enableLtree ] [--enableManyToMany ] [--enablePostgis ] [--enablePresignedUploads ] [--enableRealtime ] [--enableSearch ] [--idleInTransactionTimeoutMs ] [--labels ] [--lockTimeoutMs ] [--maxConcurrentRequests ] [--maxPageSize ] [--maxQueryCost ] [--maxQueryDepth ] [--maxQueueWaitMs ] [--maxRequestBytes ] [--options ] [--rateLimitBurst ] [--rateLimitRpm ] [--statementTimeoutMs ] +csdk database-setting update --id [--annotations ] [--databaseId ] [--enableAggregates ] [--enableBilling ] [--enableBulk ] [--enableConnectionFilter ] [--enableDirectUploads ] [--enableI18N ] [--enableIntrospection ] [--enableLlm ] [--enableLtree ] [--enableManyToMany ] [--enablePostgis ] [--enablePresignedUploads ] [--enableRealtime ] [--enableSearch ] [--idleInTransactionTimeoutMs ] [--labels ] [--lockTimeoutMs ] [--maxConcurrentRequests ] [--maxPageSize ] [--maxQueryCost ] [--maxQueryDepth ] [--maxQueueWaitMs ] [--maxRequestBytes ] [--options ] [--rateLimitBurst ] [--rateLimitRpm ] [--statementTimeoutMs ] csdk database-setting delete --id ``` @@ -58,7 +58,7 @@ csdk database-setting list --where.id.equalTo --orderBy ID_ASC ### Create a databaseSetting ```bash -csdk database-setting create --databaseId [--annotations ] [--enableAggregates ] [--enableBulk ] [--enableConnectionFilter ] [--enableDirectUploads ] [--enableI18N ] [--enableLlm ] [--enableLtree ] [--enableManyToMany ] [--enablePostgis ] [--enablePresignedUploads ] [--enableRealtime ] [--enableSearch ] [--labels ] [--options ] [--statementTimeoutMs ] +csdk database-setting create --databaseId [--annotations ] [--enableAggregates ] [--enableBilling ] [--enableBulk ] [--enableConnectionFilter ] [--enableDirectUploads ] [--enableI18N ] [--enableIntrospection ] [--enableLlm ] [--enableLtree ] [--enableManyToMany ] [--enablePostgis ] [--enablePresignedUploads ] [--enableRealtime ] [--enableSearch ] [--idleInTransactionTimeoutMs ] [--labels ] [--lockTimeoutMs ] [--maxConcurrentRequests ] [--maxPageSize ] [--maxQueryCost ] [--maxQueryDepth ] [--maxQueueWaitMs ] [--maxRequestBytes ] [--options ] [--rateLimitBurst ] [--rateLimitRpm ] [--statementTimeoutMs ] ``` ### Get a databaseSetting by id diff --git a/.agents/skills/cli-api/references/delete-site-preview.md b/.agents/skills/cli-api/references/delete-site-preview.md new file mode 100644 index 0000000000..f858b404f9 --- /dev/null +++ b/.agents/skills/cli-api/references/delete-site-preview.md @@ -0,0 +1,19 @@ +# deleteSitePreview + + + +Execute the deleteSitePreview mutation + +## Usage + +```bash +csdk delete-site-preview --input.clientMutationId --input.targetName --input.targetSiteId +``` + +## Examples + +### Run deleteSitePreview + +```bash +csdk delete-site-preview --input.clientMutationId --input.targetName --input.targetSiteId +``` diff --git a/.agents/skills/cli-api/references/derive.md b/.agents/skills/cli-api/references/derive.md index bb85c86a28..6cd9a65776 100644 --- a/.agents/skills/cli-api/references/derive.md +++ b/.agents/skills/cli-api/references/derive.md @@ -12,8 +12,8 @@ csdk derive list --where.. --orderBy csdk derive list --limit 10 --after csdk derive find-first --where.. csdk derive get --id -csdk derive create --kind --sourceTableId --tableId [--databaseId ] [--includeMutations ] [--policyPrefix ] -csdk derive update --id [--databaseId ] [--includeMutations ] [--kind ] [--policyPrefix ] [--sourceTableId ] [--tableId ] +csdk derive create --kind --sourceTableId --tableId [--databaseId ] [--includeGrants ] [--includeMutations ] [--policyPrefix ] +csdk derive update --id [--databaseId ] [--includeGrants ] [--includeMutations ] [--kind ] [--policyPrefix ] [--sourceTableId ] [--tableId ] csdk derive delete --id ``` @@ -58,7 +58,7 @@ csdk derive list --where.id.equalTo --orderBy ID_ASC ### Create a derive ```bash -csdk derive create --kind --sourceTableId --tableId [--databaseId ] [--includeMutations ] [--policyPrefix ] +csdk derive create --kind --sourceTableId --tableId [--databaseId ] [--includeGrants ] [--includeMutations ] [--policyPrefix ] ``` ### Get a derive by id diff --git a/.agents/skills/cli-api/references/domain.md b/.agents/skills/cli-api/references/domain.md index 20e57fa028..2e6b32412e 100644 --- a/.agents/skills/cli-api/references/domain.md +++ b/.agents/skills/cli-api/references/domain.md @@ -12,8 +12,8 @@ csdk domain list --where.. --orderBy csdk domain list --limit 10 --after csdk domain find-first --where.. csdk domain get --id -csdk domain create --databaseId --hostname [--config ] [--isPublished ] [--isWildcard ] [--managed ] [--parentHostname ] [--tlsReadyAt ] [--tlsSecretName ] [--tlsStatus ] [--verificationStatus ] [--verifiedAt ] -csdk domain update --id [--config ] [--databaseId ] [--hostname ] [--isPublished ] [--isWildcard ] [--managed ] [--parentHostname ] [--tlsReadyAt ] [--tlsSecretName ] [--tlsStatus ] [--verificationStatus ] [--verifiedAt ] +csdk domain create --databaseId --hostname [--config ] [--createdByPrincipal ] [--isPublished ] [--isWildcard ] [--managed ] [--parentHostname ] [--tlsReadyAt ] [--tlsSecretName ] [--tlsStatus ] [--updatedByPrincipal ] [--verificationStatus ] [--verifiedAt ] +csdk domain update --id [--config ] [--createdByPrincipal ] [--databaseId ] [--hostname ] [--isPublished ] [--isWildcard ] [--managed ] [--parentHostname ] [--tlsReadyAt ] [--tlsSecretName ] [--tlsStatus ] [--updatedByPrincipal ] [--verificationStatus ] [--verifiedAt ] csdk domain delete --id ``` @@ -58,7 +58,7 @@ csdk domain list --where.id.equalTo --orderBy ID_ASC ### Create a domain ```bash -csdk domain create --databaseId --hostname [--config ] [--isPublished ] [--isWildcard ] [--managed ] [--parentHostname ] [--tlsReadyAt ] [--tlsSecretName ] [--tlsStatus ] [--verificationStatus ] [--verifiedAt ] +csdk domain create --databaseId --hostname [--config ] [--createdByPrincipal ] [--isPublished ] [--isWildcard ] [--managed ] [--parentHostname ] [--tlsReadyAt ] [--tlsSecretName ] [--tlsStatus ] [--updatedByPrincipal ] [--verificationStatus ] [--verifiedAt ] ``` ### Get a domain by id 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/function.md b/.agents/skills/cli-api/references/function.md index 5e2ce580f9..e15b931367 100644 --- a/.agents/skills/cli-api/references/function.md +++ b/.agents/skills/cli-api/references/function.md @@ -12,8 +12,8 @@ csdk function list --where.. --orderBy csdk function list --limit 10 --after csdk function find-first --where.. csdk function get --id -csdk function create --databaseId --name --schemaId -csdk function update --id [--databaseId ] [--name ] [--schemaId ] +csdk function create --databaseId --name --schemaId [--apiExposed ] [--arguments ] [--bodyAst ] [--category ] [--data ] [--functionType ] [--isStrict ] [--kind ] [--returns ] [--securityInvoker ] [--smartTags ] [--tags ] [--volatility ] +csdk function update --id [--apiExposed ] [--arguments ] [--bodyAst ] [--category ] [--data ] [--databaseId ] [--functionType ] [--isStrict ] [--kind ] [--name ] [--returns ] [--schemaId ] [--securityInvoker ] [--smartTags ] [--tags ] [--volatility ] csdk function delete --id ``` @@ -58,7 +58,7 @@ csdk function list --where.id.equalTo --orderBy ID_ASC ### Create a function ```bash -csdk function create --databaseId --name --schemaId +csdk function create --databaseId --name --schemaId [--apiExposed ] [--arguments ] [--bodyAst ] [--category ] [--data ] [--functionType ] [--isStrict ] [--kind ] [--returns ] [--securityInvoker ] [--smartTags ] [--tags ] [--volatility ] ``` ### Get a function by id diff --git a/.agents/skills/cli-api/references/get-site-preview-commit.md b/.agents/skills/cli-api/references/get-site-preview-commit.md new file mode 100644 index 0000000000..c898393168 --- /dev/null +++ b/.agents/skills/cli-api/references/get-site-preview-commit.md @@ -0,0 +1,19 @@ +# getSitePreviewCommit + + + +Execute the getSitePreviewCommit query + +## Usage + +```bash +csdk get-site-preview-commit --targetName --targetSiteId +``` + +## Examples + +### Run getSitePreviewCommit + +```bash +csdk get-site-preview-commit --targetName --targetSiteId +``` diff --git a/.agents/skills/cli-api/references/get-site-previews-record.md b/.agents/skills/cli-api/references/get-site-previews-record.md new file mode 100644 index 0000000000..3aae32349f --- /dev/null +++ b/.agents/skills/cli-api/references/get-site-previews-record.md @@ -0,0 +1,68 @@ +# getSitePreviewsRecord + + + +CRUD operations for GetSitePreviewsRecord records via csdk CLI + +## Usage + +```bash +csdk get-site-previews-record list +csdk get-site-previews-record list --where.. --orderBy +csdk get-site-previews-record list --limit 10 --after +csdk get-site-previews-record find-first --where.. +csdk get-site-previews-record get --id +csdk get-site-previews-record create --commitId --name +csdk get-site-previews-record update --id [--commitId ] [--name ] +csdk get-site-previews-record delete --id +``` + +## Examples + +### List getSitePreviewsRecord records + +```bash +csdk get-site-previews-record list +``` + +### List getSitePreviewsRecord records with pagination + +```bash +csdk get-site-previews-record list --limit 10 --offset 0 +``` + +### List getSitePreviewsRecord records with cursor pagination + +```bash +csdk get-site-previews-record list --limit 10 --after +``` + +### Find first matching getSitePreviewsRecord + +```bash +csdk get-site-previews-record find-first --where.id.equalTo +``` + +### List getSitePreviewsRecord records with field selection + +```bash +csdk get-site-previews-record list --select id,id +``` + +### List getSitePreviewsRecord records with filtering and ordering + +```bash +csdk get-site-previews-record list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a getSitePreviewsRecord + +```bash +csdk get-site-previews-record create --commitId --name +``` + +### Get a getSitePreviewsRecord by id + +```bash +csdk get-site-previews-record get --id +``` diff --git a/.agents/skills/cli-api/references/get-site-release-manifest.md b/.agents/skills/cli-api/references/get-site-release-manifest.md new file mode 100644 index 0000000000..64f5d4d5bb --- /dev/null +++ b/.agents/skills/cli-api/references/get-site-release-manifest.md @@ -0,0 +1,19 @@ +# getSiteReleaseManifest + + + +Execute the getSiteReleaseManifest query + +## Usage + +```bash +csdk get-site-release-manifest --targetCommitId --targetSiteId +``` + +## Examples + +### Run getSiteReleaseManifest + +```bash +csdk get-site-release-manifest --targetCommitId --targetSiteId +``` diff --git a/.agents/skills/cli-api/references/identity-provider-registry.md b/.agents/skills/cli-api/references/identity-provider-registry.md new file mode 100644 index 0000000000..57aaa565ba --- /dev/null +++ b/.agents/skills/cli-api/references/identity-provider-registry.md @@ -0,0 +1,68 @@ +# identityProviderRegistry + + + +CRUD operations for IdentityProviderRegistry records via csdk CLI + +## Usage + +```bash +csdk identity-provider-registry list +csdk identity-provider-registry list --where.. --orderBy +csdk identity-provider-registry list --limit 10 --after +csdk identity-provider-registry find-first --where.. +csdk identity-provider-registry get --slug +csdk identity-provider-registry create --displayName --kind [--authorizationUrl ] [--issuerUrl ] [--scopes ] [--tokenUrl ] [--userinfoUrl ] +csdk identity-provider-registry update --slug [--authorizationUrl ] [--displayName ] [--issuerUrl ] [--kind ] [--scopes ] [--tokenUrl ] [--userinfoUrl ] +csdk identity-provider-registry delete --slug +``` + +## Examples + +### List identityProviderRegistry records + +```bash +csdk identity-provider-registry list +``` + +### List identityProviderRegistry records with pagination + +```bash +csdk identity-provider-registry list --limit 10 --offset 0 +``` + +### List identityProviderRegistry records with cursor pagination + +```bash +csdk identity-provider-registry list --limit 10 --after +``` + +### Find first matching identityProviderRegistry + +```bash +csdk identity-provider-registry find-first --where.slug.equalTo +``` + +### List identityProviderRegistry records with field selection + +```bash +csdk identity-provider-registry list --select id,slug +``` + +### List identityProviderRegistry records with filtering and ordering + +```bash +csdk identity-provider-registry list --where.slug.equalTo --orderBy SLUG_ASC +``` + +### Create a identityProviderRegistry + +```bash +csdk identity-provider-registry create --displayName --kind [--authorizationUrl ] [--issuerUrl ] [--scopes ] [--tokenUrl ] [--userinfoUrl ] +``` + +### Get a identityProviderRegistry by slug + +```bash +csdk identity-provider-registry get --slug +``` diff --git a/.agents/skills/cli-api/references/index.md b/.agents/skills/cli-api/references/index.md index 250c02b991..5c94ad4dc4 100644 --- a/.agents/skills/cli-api/references/index.md +++ b/.agents/skills/cli-api/references/index.md @@ -12,8 +12,8 @@ csdk index list --where.. --orderBy csdk index list --limit 10 --after csdk index find-first --where.. csdk index get --id -csdk index create --databaseId --tableId [--accessMethod ] [--category ] [--fieldIds ] [--includeFieldIds ] [--indexParams ] [--isUnique ] [--name ] [--opClasses ] [--options ] [--smartTags ] [--tags ] [--whereClause ] -csdk index update --id [--accessMethod ] [--category ] [--databaseId ] [--fieldIds ] [--includeFieldIds ] [--indexParams ] [--isUnique ] [--name ] [--opClasses ] [--options ] [--smartTags ] [--tableId ] [--tags ] [--whereClause ] +csdk index create --databaseId --tableId [--accessMethod ] [--category ] [--fieldIds ] [--includeFieldIds ] [--indexParams ] [--isUnique ] [--name ] [--nullsNotDistinct ] [--opClasses ] [--options ] [--smartTags ] [--tags ] [--whereClause ] +csdk index update --id [--accessMethod ] [--category ] [--databaseId ] [--fieldIds ] [--includeFieldIds ] [--indexParams ] [--isUnique ] [--name ] [--nullsNotDistinct ] [--opClasses ] [--options ] [--smartTags ] [--tableId ] [--tags ] [--whereClause ] csdk index delete --id ``` @@ -58,7 +58,7 @@ csdk index list --where.id.equalTo --orderBy ID_ASC ### Create a index ```bash -csdk index create --databaseId --tableId [--accessMethod ] [--category ] [--fieldIds ] [--includeFieldIds ] [--indexParams ] [--isUnique ] [--name ] [--opClasses ] [--options ] [--smartTags ] [--tags ] [--whereClause ] +csdk index create --databaseId --tableId [--accessMethod ] [--category ] [--fieldIds ] [--includeFieldIds ] [--indexParams ] [--isUnique ] [--name ] [--nullsNotDistinct ] [--opClasses ] [--options ] [--smartTags ] [--tags ] [--whereClause ] ``` ### Get a index by id diff --git a/.agents/skills/cli-api/references/managed-domain.md b/.agents/skills/cli-api/references/managed-domain.md index 9b2af40b5d..ad953c3c51 100644 --- a/.agents/skills/cli-api/references/managed-domain.md +++ b/.agents/skills/cli-api/references/managed-domain.md @@ -12,8 +12,8 @@ csdk managed-domain list --where.. --orderBy csdk managed-domain list --limit 10 --after csdk managed-domain find-first --where.. csdk managed-domain get --id -csdk managed-domain create --databaseId --domain [--allowPublicUsage ] [--annotations ] [--certStatus ] [--isWildcard ] [--tlsReadyAt ] [--tlsStatus ] [--verificationStatus ] [--verifiedAt ] -csdk managed-domain update --id [--allowPublicUsage ] [--annotations ] [--certStatus ] [--databaseId ] [--domain ] [--isWildcard ] [--tlsReadyAt ] [--tlsStatus ] [--verificationStatus ] [--verifiedAt ] +csdk managed-domain create --databaseId --domain [--allowPublicUsage ] [--annotations ] [--certStatus ] [--createdByPrincipal ] [--isWildcard ] [--tlsReadyAt ] [--tlsStatus ] [--updatedByPrincipal ] [--verificationStatus ] [--verifiedAt ] +csdk managed-domain update --id [--allowPublicUsage ] [--annotations ] [--certStatus ] [--createdByPrincipal ] [--databaseId ] [--domain ] [--isWildcard ] [--tlsReadyAt ] [--tlsStatus ] [--updatedByPrincipal ] [--verificationStatus ] [--verifiedAt ] csdk managed-domain delete --id ``` @@ -58,7 +58,7 @@ csdk managed-domain list --where.id.equalTo --orderBy ID_ASC ### Create a managedDomain ```bash -csdk managed-domain create --databaseId --domain [--allowPublicUsage ] [--annotations ] [--certStatus ] [--isWildcard ] [--tlsReadyAt ] [--tlsStatus ] [--verificationStatus ] [--verifiedAt ] +csdk managed-domain create --databaseId --domain [--allowPublicUsage ] [--annotations ] [--certStatus ] [--createdByPrincipal ] [--isWildcard ] [--tlsReadyAt ] [--tlsStatus ] [--updatedByPrincipal ] [--verificationStatus ] [--verifiedAt ] ``` ### Get a managedDomain by id diff --git a/.agents/skills/cli-api/references/mint-site-preview-token.md b/.agents/skills/cli-api/references/mint-site-preview-token.md new file mode 100644 index 0000000000..2d4ba47bda --- /dev/null +++ b/.agents/skills/cli-api/references/mint-site-preview-token.md @@ -0,0 +1,19 @@ +# mintSitePreviewToken + + + +Execute the mintSitePreviewToken mutation + +## Usage + +```bash +csdk mint-site-preview-token --input.clientMutationId --input.siteId --input.target --input.targetKind --input.ttlSeconds +``` + +## Examples + +### Run mintSitePreviewToken + +```bash +csdk mint-site-preview-token --input.clientMutationId --input.siteId --input.target --input.targetKind --input.ttlSeconds +``` diff --git a/.agents/skills/cli-api/references/page-published.md b/.agents/skills/cli-api/references/page-published.md new file mode 100644 index 0000000000..ad65fd0602 --- /dev/null +++ b/.agents/skills/cli-api/references/page-published.md @@ -0,0 +1,19 @@ +# pagePublished + + + +Execute the pagePublished query + +## Usage + +```bash +csdk page-published --pageSlug --targetSiteId +``` + +## Examples + +### Run pagePublished + +```bash +csdk page-published --pageSlug --targetSiteId +``` diff --git a/.agents/skills/cli-api/references/page.md b/.agents/skills/cli-api/references/page.md index 6c82dc1d4b..23c579e14d 100644 --- a/.agents/skills/cli-api/references/page.md +++ b/.agents/skills/cli-api/references/page.md @@ -12,8 +12,8 @@ csdk page list --where.. --orderBy csdk page list --limit 10 --after csdk page find-first --where.. csdk page get --id -csdk page create --content --databaseId --siteId --slug [--commitId ] [--storeId ] -csdk page update --id [--commitId ] [--content ] [--databaseId ] [--siteId ] [--slug ] [--storeId ] +csdk page create --content --databaseId --siteId --slug [--commitId ] [--seededFrom ] [--storeId ] +csdk page update --id [--commitId ] [--content ] [--databaseId ] [--seededFrom ] [--siteId ] [--slug ] [--storeId ] csdk page delete --id ``` @@ -58,7 +58,7 @@ csdk page list --where.id.equalTo --orderBy ID_ASC ### Create a page ```bash -csdk page create --content --databaseId --siteId --slug [--commitId ] [--storeId ] +csdk page create --content --databaseId --siteId --slug [--commitId ] [--seededFrom ] [--storeId ] ``` ### Get a page by id diff --git a/.agents/skills/cli-api/references/pages-install-pages.md b/.agents/skills/cli-api/references/pages-install-pages.md new file mode 100644 index 0000000000..1fb7ee2632 --- /dev/null +++ b/.agents/skills/cli-api/references/pages-install-pages.md @@ -0,0 +1,19 @@ +# pagesInstallPages + + + +Execute the pagesInstallPages mutation + +## Usage + +```bash +csdk pages-install-pages --input.clientMutationId --input.entityId --input.pagesPreset --input.siteId +``` + +## Examples + +### Run pagesInstallPages + +```bash +csdk pages-install-pages --input.clientMutationId --input.entityId --input.pagesPreset --input.siteId +``` diff --git a/.agents/skills/cli-api/references/platform-api-setting.md b/.agents/skills/cli-api/references/platform-api-setting.md index f3c49753c2..aada14730f 100644 --- a/.agents/skills/cli-api/references/platform-api-setting.md +++ b/.agents/skills/cli-api/references/platform-api-setting.md @@ -12,8 +12,8 @@ csdk platform-api-setting list --where.. --orderBy csdk platform-api-setting list --limit 10 --after csdk platform-api-setting find-first --where.. csdk platform-api-setting get --id -csdk platform-api-setting create --apiId [--enableAggregates ] [--enableBulk ] [--enableConnectionFilter ] [--enableDirectUploads ] [--enableI18N ] [--enableLlm ] [--enableLtree ] [--enableManyToMany ] [--enablePostgis ] [--enablePresignedUploads ] [--enableRealtime ] [--enableSearch ] [--options ] [--statementTimeoutMs ] -csdk platform-api-setting update --id [--apiId ] [--enableAggregates ] [--enableBulk ] [--enableConnectionFilter ] [--enableDirectUploads ] [--enableI18N ] [--enableLlm ] [--enableLtree ] [--enableManyToMany ] [--enablePostgis ] [--enablePresignedUploads ] [--enableRealtime ] [--enableSearch ] [--options ] [--statementTimeoutMs ] +csdk platform-api-setting create --apiId [--enableAggregates ] [--enableBulk ] [--enableConnectionFilter ] [--enableDirectUploads ] [--enableI18N ] [--enableIntrospection ] [--enableLlm ] [--enableLtree ] [--enableManyToMany ] [--enablePostgis ] [--enablePresignedUploads ] [--enableRealtime ] [--enableSearch ] [--idleInTransactionTimeoutMs ] [--lockTimeoutMs ] [--maxConcurrentRequests ] [--maxPageSize ] [--maxQueryCost ] [--maxQueryDepth ] [--maxQueueWaitMs ] [--maxRequestBytes ] [--options ] [--rateLimitBurst ] [--rateLimitRpm ] [--statementTimeoutMs ] +csdk platform-api-setting update --id [--apiId ] [--enableAggregates ] [--enableBulk ] [--enableConnectionFilter ] [--enableDirectUploads ] [--enableI18N ] [--enableIntrospection ] [--enableLlm ] [--enableLtree ] [--enableManyToMany ] [--enablePostgis ] [--enablePresignedUploads ] [--enableRealtime ] [--enableSearch ] [--idleInTransactionTimeoutMs ] [--lockTimeoutMs ] [--maxConcurrentRequests ] [--maxPageSize ] [--maxQueryCost ] [--maxQueryDepth ] [--maxQueueWaitMs ] [--maxRequestBytes ] [--options ] [--rateLimitBurst ] [--rateLimitRpm ] [--statementTimeoutMs ] csdk platform-api-setting delete --id ``` @@ -58,7 +58,7 @@ csdk platform-api-setting list --where.id.equalTo --orderBy ID_ASC ### Create a platformApiSetting ```bash -csdk platform-api-setting create --apiId [--enableAggregates ] [--enableBulk ] [--enableConnectionFilter ] [--enableDirectUploads ] [--enableI18N ] [--enableLlm ] [--enableLtree ] [--enableManyToMany ] [--enablePostgis ] [--enablePresignedUploads ] [--enableRealtime ] [--enableSearch ] [--options ] [--statementTimeoutMs ] +csdk platform-api-setting create --apiId [--enableAggregates ] [--enableBulk ] [--enableConnectionFilter ] [--enableDirectUploads ] [--enableI18N ] [--enableIntrospection ] [--enableLlm ] [--enableLtree ] [--enableManyToMany ] [--enablePostgis ] [--enablePresignedUploads ] [--enableRealtime ] [--enableSearch ] [--idleInTransactionTimeoutMs ] [--lockTimeoutMs ] [--maxConcurrentRequests ] [--maxPageSize ] [--maxQueryCost ] [--maxQueryDepth ] [--maxQueueWaitMs ] [--maxRequestBytes ] [--options ] [--rateLimitBurst ] [--rateLimitRpm ] [--statementTimeoutMs ] ``` ### Get a platformApiSetting by id diff --git a/.agents/skills/cli-api/references/platform-delete-site-preview.md b/.agents/skills/cli-api/references/platform-delete-site-preview.md new file mode 100644 index 0000000000..2d81ffca8d --- /dev/null +++ b/.agents/skills/cli-api/references/platform-delete-site-preview.md @@ -0,0 +1,19 @@ +# platformDeleteSitePreview + + + +Execute the platformDeleteSitePreview mutation + +## Usage + +```bash +csdk platform-delete-site-preview --input.clientMutationId --input.targetName --input.targetSiteId +``` + +## Examples + +### Run platformDeleteSitePreview + +```bash +csdk platform-delete-site-preview --input.clientMutationId --input.targetName --input.targetSiteId +``` diff --git a/.agents/skills/cli-api/references/platform-domain.md b/.agents/skills/cli-api/references/platform-domain.md index 6e2ccd9716..824cf94461 100644 --- a/.agents/skills/cli-api/references/platform-domain.md +++ b/.agents/skills/cli-api/references/platform-domain.md @@ -12,8 +12,8 @@ csdk platform-domain list --where.. --orderBy csdk platform-domain list --limit 10 --after csdk platform-domain find-first --where.. csdk platform-domain get --id -csdk platform-domain create --hostname [--config ] [--isPublished ] [--isWildcard ] [--managed ] [--parentHostname ] [--tlsReadyAt ] [--tlsSecretName ] [--tlsStatus ] [--verificationStatus ] [--verifiedAt ] -csdk platform-domain update --id [--config ] [--hostname ] [--isPublished ] [--isWildcard ] [--managed ] [--parentHostname ] [--tlsReadyAt ] [--tlsSecretName ] [--tlsStatus ] [--verificationStatus ] [--verifiedAt ] +csdk platform-domain create --hostname [--config ] [--createdByPrincipal ] [--isPublished ] [--isWildcard ] [--managed ] [--parentHostname ] [--tlsReadyAt ] [--tlsSecretName ] [--tlsStatus ] [--updatedByPrincipal ] [--verificationStatus ] [--verifiedAt ] +csdk platform-domain update --id [--config ] [--createdByPrincipal ] [--hostname ] [--isPublished ] [--isWildcard ] [--managed ] [--parentHostname ] [--tlsReadyAt ] [--tlsSecretName ] [--tlsStatus ] [--updatedByPrincipal ] [--verificationStatus ] [--verifiedAt ] csdk platform-domain delete --id ``` @@ -58,7 +58,7 @@ csdk platform-domain list --where.id.equalTo --orderBy ID_ASC ### Create a platformDomain ```bash -csdk platform-domain create --hostname [--config ] [--isPublished ] [--isWildcard ] [--managed ] [--parentHostname ] [--tlsReadyAt ] [--tlsSecretName ] [--tlsStatus ] [--verificationStatus ] [--verifiedAt ] +csdk platform-domain create --hostname [--config ] [--createdByPrincipal ] [--isPublished ] [--isWildcard ] [--managed ] [--parentHostname ] [--tlsReadyAt ] [--tlsSecretName ] [--tlsStatus ] [--updatedByPrincipal ] [--verificationStatus ] [--verifiedAt ] ``` ### Get a platformDomain by 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-api/references/platform-get-site-preview-commit.md b/.agents/skills/cli-api/references/platform-get-site-preview-commit.md new file mode 100644 index 0000000000..f72a1e6609 --- /dev/null +++ b/.agents/skills/cli-api/references/platform-get-site-preview-commit.md @@ -0,0 +1,19 @@ +# platformGetSitePreviewCommit + + + +Execute the platformGetSitePreviewCommit query + +## Usage + +```bash +csdk platform-get-site-preview-commit --targetName --targetSiteId +``` + +## Examples + +### Run platformGetSitePreviewCommit + +```bash +csdk platform-get-site-preview-commit --targetName --targetSiteId +``` diff --git a/.agents/skills/cli-api/references/platform-get-site-previews-record.md b/.agents/skills/cli-api/references/platform-get-site-previews-record.md new file mode 100644 index 0000000000..39e4208862 --- /dev/null +++ b/.agents/skills/cli-api/references/platform-get-site-previews-record.md @@ -0,0 +1,68 @@ +# platformGetSitePreviewsRecord + + + +CRUD operations for PlatformGetSitePreviewsRecord records via csdk CLI + +## Usage + +```bash +csdk platform-get-site-previews-record list +csdk platform-get-site-previews-record list --where.. --orderBy +csdk platform-get-site-previews-record list --limit 10 --after +csdk platform-get-site-previews-record find-first --where.. +csdk platform-get-site-previews-record get --id +csdk platform-get-site-previews-record create --commitId --name +csdk platform-get-site-previews-record update --id [--commitId ] [--name ] +csdk platform-get-site-previews-record delete --id +``` + +## Examples + +### List platformGetSitePreviewsRecord records + +```bash +csdk platform-get-site-previews-record list +``` + +### List platformGetSitePreviewsRecord records with pagination + +```bash +csdk platform-get-site-previews-record list --limit 10 --offset 0 +``` + +### List platformGetSitePreviewsRecord records with cursor pagination + +```bash +csdk platform-get-site-previews-record list --limit 10 --after +``` + +### Find first matching platformGetSitePreviewsRecord + +```bash +csdk platform-get-site-previews-record find-first --where.id.equalTo +``` + +### List platformGetSitePreviewsRecord records with field selection + +```bash +csdk platform-get-site-previews-record list --select id,id +``` + +### List platformGetSitePreviewsRecord records with filtering and ordering + +```bash +csdk platform-get-site-previews-record list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a platformGetSitePreviewsRecord + +```bash +csdk platform-get-site-previews-record create --commitId --name +``` + +### Get a platformGetSitePreviewsRecord by id + +```bash +csdk platform-get-site-previews-record get --id +``` diff --git a/.agents/skills/cli-api/references/platform-get-site-release-manifest.md b/.agents/skills/cli-api/references/platform-get-site-release-manifest.md new file mode 100644 index 0000000000..b8c1718477 --- /dev/null +++ b/.agents/skills/cli-api/references/platform-get-site-release-manifest.md @@ -0,0 +1,19 @@ +# platformGetSiteReleaseManifest + + + +Execute the platformGetSiteReleaseManifest query + +## Usage + +```bash +csdk platform-get-site-release-manifest --targetCommitId --targetSiteId +``` + +## Examples + +### Run platformGetSiteReleaseManifest + +```bash +csdk platform-get-site-release-manifest --targetCommitId --targetSiteId +``` diff --git a/.agents/skills/cli-api/references/platform-managed-domain.md b/.agents/skills/cli-api/references/platform-managed-domain.md index 010bd7610f..d44126c5ac 100644 --- a/.agents/skills/cli-api/references/platform-managed-domain.md +++ b/.agents/skills/cli-api/references/platform-managed-domain.md @@ -12,8 +12,8 @@ csdk platform-managed-domain list --where.. --orderBy csdk platform-managed-domain find-first --where.. csdk platform-managed-domain get --id -csdk platform-managed-domain create --domain [--allowPublicUsage ] [--annotations ] [--certStatus ] [--isWildcard ] [--tlsReadyAt ] [--tlsStatus ] [--verificationStatus ] [--verifiedAt ] -csdk platform-managed-domain update --id [--allowPublicUsage ] [--annotations ] [--certStatus ] [--domain ] [--isWildcard ] [--tlsReadyAt ] [--tlsStatus ] [--verificationStatus ] [--verifiedAt ] +csdk platform-managed-domain create --domain [--allowPublicUsage ] [--annotations ] [--certStatus ] [--createdByPrincipal ] [--isWildcard ] [--tlsReadyAt ] [--tlsStatus ] [--updatedByPrincipal ] [--verificationStatus ] [--verifiedAt ] +csdk platform-managed-domain update --id [--allowPublicUsage ] [--annotations ] [--certStatus ] [--createdByPrincipal ] [--domain ] [--isWildcard ] [--tlsReadyAt ] [--tlsStatus ] [--updatedByPrincipal ] [--verificationStatus ] [--verifiedAt ] csdk platform-managed-domain delete --id ``` @@ -58,7 +58,7 @@ csdk platform-managed-domain list --where.id.equalTo --orderBy ID_ASC ### Create a platformManagedDomain ```bash -csdk platform-managed-domain create --domain [--allowPublicUsage ] [--annotations ] [--certStatus ] [--isWildcard ] [--tlsReadyAt ] [--tlsStatus ] [--verificationStatus ] [--verifiedAt ] +csdk platform-managed-domain create --domain [--allowPublicUsage ] [--annotations ] [--certStatus ] [--createdByPrincipal ] [--isWildcard ] [--tlsReadyAt ] [--tlsStatus ] [--updatedByPrincipal ] [--verificationStatus ] [--verifiedAt ] ``` ### Get a platformManagedDomain by id diff --git a/.agents/skills/cli-api/references/platform-mint-site-preview-token.md b/.agents/skills/cli-api/references/platform-mint-site-preview-token.md new file mode 100644 index 0000000000..11c580b2c7 --- /dev/null +++ b/.agents/skills/cli-api/references/platform-mint-site-preview-token.md @@ -0,0 +1,19 @@ +# platformMintSitePreviewToken + + + +Execute the platformMintSitePreviewToken mutation + +## Usage + +```bash +csdk platform-mint-site-preview-token --input.clientMutationId --input.siteId --input.target --input.targetKind --input.ttlSeconds +``` + +## Examples + +### Run platformMintSitePreviewToken + +```bash +csdk platform-mint-site-preview-token --input.clientMutationId --input.siteId --input.target --input.targetKind --input.ttlSeconds +``` diff --git a/.agents/skills/cli-api/references/platform-page-published.md b/.agents/skills/cli-api/references/platform-page-published.md new file mode 100644 index 0000000000..3fe7df7c26 --- /dev/null +++ b/.agents/skills/cli-api/references/platform-page-published.md @@ -0,0 +1,19 @@ +# platformPagePublished + + + +Execute the platformPagePublished query + +## Usage + +```bash +csdk platform-page-published --pageSlug --targetSiteId +``` + +## Examples + +### Run platformPagePublished + +```bash +csdk platform-page-published --pageSlug --targetSiteId +``` diff --git a/.agents/skills/cli-api/references/platform-page.md b/.agents/skills/cli-api/references/platform-page.md index bd51fb95e5..27a4d14381 100644 --- a/.agents/skills/cli-api/references/platform-page.md +++ b/.agents/skills/cli-api/references/platform-page.md @@ -12,8 +12,8 @@ csdk platform-page list --where.. --orderBy csdk platform-page list --limit 10 --after csdk platform-page find-first --where.. csdk platform-page get --id -csdk platform-page create --content --siteId --slug [--commitId ] [--storeId ] -csdk platform-page update --id [--commitId ] [--content ] [--siteId ] [--slug ] [--storeId ] +csdk platform-page create --content --siteId --slug [--commitId ] [--seededFrom ] [--storeId ] +csdk platform-page update --id [--commitId ] [--content ] [--seededFrom ] [--siteId ] [--slug ] [--storeId ] csdk platform-page delete --id ``` @@ -58,7 +58,7 @@ csdk platform-page list --where.id.equalTo --orderBy ID_ASC ### Create a platformPage ```bash -csdk platform-page create --content --siteId --slug [--commitId ] [--storeId ] +csdk platform-page create --content --siteId --slug [--commitId ] [--seededFrom ] [--storeId ] ``` ### Get a platformPage by id diff --git a/.agents/skills/cli-api/references/platform-pages-install-pages.md b/.agents/skills/cli-api/references/platform-pages-install-pages.md new file mode 100644 index 0000000000..17d6b03798 --- /dev/null +++ b/.agents/skills/cli-api/references/platform-pages-install-pages.md @@ -0,0 +1,19 @@ +# platformPagesInstallPages + + + +Execute the platformPagesInstallPages mutation + +## Usage + +```bash +csdk platform-pages-install-pages --input.clientMutationId --input.entityId --input.pagesPreset --input.siteId +``` + +## Examples + +### Run platformPagesInstallPages + +```bash +csdk platform-pages-install-pages --input.clientMutationId --input.entityId --input.pagesPreset --input.siteId +``` diff --git a/.agents/skills/cli-api/references/platform-provision-site-preview.md b/.agents/skills/cli-api/references/platform-provision-site-preview.md new file mode 100644 index 0000000000..8b02a01882 --- /dev/null +++ b/.agents/skills/cli-api/references/platform-provision-site-preview.md @@ -0,0 +1,19 @@ +# platformProvisionSitePreview + + + +Execute the platformProvisionSitePreview mutation + +## Usage + +```bash +csdk platform-provision-site-preview --input.apex --input.clientMutationId --input.commitId --input.name --input.siteId +``` + +## Examples + +### Run platformProvisionSitePreview + +```bash +csdk platform-provision-site-preview --input.apex --input.clientMutationId --input.commitId --input.name --input.siteId +``` diff --git a/.agents/skills/cli-api/references/platform-set-site-preview.md b/.agents/skills/cli-api/references/platform-set-site-preview.md new file mode 100644 index 0000000000..7a7198ba37 --- /dev/null +++ b/.agents/skills/cli-api/references/platform-set-site-preview.md @@ -0,0 +1,19 @@ +# platformSetSitePreview + + + +Execute the platformSetSitePreview mutation + +## Usage + +```bash +csdk platform-set-site-preview --input.clientMutationId --input.targetCommitId --input.targetName --input.targetSiteId +``` + +## Examples + +### Run platformSetSitePreview + +```bash +csdk platform-set-site-preview --input.clientMutationId --input.targetCommitId --input.targetName --input.targetSiteId +``` diff --git a/.agents/skills/cli-api/references/platform-site-app-link.md b/.agents/skills/cli-api/references/platform-site-app-link.md index 695a0c9c3f..44d11a3e9d 100644 --- a/.agents/skills/cli-api/references/platform-site-app-link.md +++ b/.agents/skills/cli-api/references/platform-site-app-link.md @@ -12,8 +12,8 @@ csdk platform-site-app-link list --where.. --orderBy csdk platform-site-app-link list --limit 10 --after csdk platform-site-app-link find-first --where.. csdk platform-site-app-link get --id -csdk platform-site-app-link create --appIdentifier --platform --siteId [--pathComponents ] [--sha256CertFingerprints ] [--storeUrl ] [--teamId ] [--webcredentials ] -csdk platform-site-app-link update --id [--appIdentifier ] [--pathComponents ] [--platform ] [--sha256CertFingerprints ] [--siteId ] [--storeUrl ] [--teamId ] [--webcredentials ] +csdk platform-site-app-link create --appStoreIdentityId --siteId [--pathComponents ] [--webcredentials ] +csdk platform-site-app-link update --id [--appStoreIdentityId ] [--pathComponents ] [--siteId ] [--webcredentials ] csdk platform-site-app-link delete --id ``` @@ -58,7 +58,7 @@ csdk platform-site-app-link list --where.id.equalTo --orderBy ID_ASC ### Create a platformSiteAppLink ```bash -csdk platform-site-app-link create --appIdentifier --platform --siteId [--pathComponents ] [--sha256CertFingerprints ] [--storeUrl ] [--teamId ] [--webcredentials ] +csdk platform-site-app-link create --appStoreIdentityId --siteId [--pathComponents ] [--webcredentials ] ``` ### Get a platformSiteAppLink by id diff --git a/.agents/skills/cli-api/references/platform-site-deep-link.md b/.agents/skills/cli-api/references/platform-site-deep-link.md index b8ea763251..b17e2da2ee 100644 --- a/.agents/skills/cli-api/references/platform-site-deep-link.md +++ b/.agents/skills/cli-api/references/platform-site-deep-link.md @@ -12,8 +12,8 @@ csdk platform-site-deep-link list --where.. --orderBy csdk platform-site-deep-link find-first --where.. csdk platform-site-deep-link get --id -csdk platform-site-deep-link create --appPath --siteId --slug [--fallbackUrl ] [--metadata ] [--webPath ] -csdk platform-site-deep-link update --id [--appPath ] [--fallbackUrl ] [--metadata ] [--siteId ] [--slug ] [--webPath ] +csdk platform-site-deep-link create --appPath --siteId --slug [--fallbackUrl ] [--metadata ] [--pageId ] [--webPath ] +csdk platform-site-deep-link update --id [--appPath ] [--fallbackUrl ] [--metadata ] [--pageId ] [--siteId ] [--slug ] [--webPath ] csdk platform-site-deep-link delete --id ``` @@ -58,7 +58,7 @@ csdk platform-site-deep-link list --where.id.equalTo --orderBy ID_ASC ### Create a platformSiteDeepLink ```bash -csdk platform-site-deep-link create --appPath --siteId --slug [--fallbackUrl ] [--metadata ] [--webPath ] +csdk platform-site-deep-link create --appPath --siteId --slug [--fallbackUrl ] [--metadata ] [--pageId ] [--webPath ] ``` ### Get a platformSiteDeepLink by id diff --git a/.agents/skills/cli-api/references/platform-site-metadata-install-robots.md b/.agents/skills/cli-api/references/platform-site-metadata-install-robots.md new file mode 100644 index 0000000000..ed38b250ee --- /dev/null +++ b/.agents/skills/cli-api/references/platform-site-metadata-install-robots.md @@ -0,0 +1,19 @@ +# platformSiteMetadataInstallRobots + + + +Execute the platformSiteMetadataInstallRobots mutation + +## Usage + +```bash +csdk platform-site-metadata-install-robots --input.clientMutationId --input.entityId --input.robotsPreset --input.siteId +``` + +## Examples + +### Run platformSiteMetadataInstallRobots + +```bash +csdk platform-site-metadata-install-robots --input.clientMutationId --input.entityId --input.robotsPreset --input.siteId +``` diff --git a/.agents/skills/cli-api/references/platform-site-metadatum.md b/.agents/skills/cli-api/references/platform-site-metadatum.md index 0c4523340d..cb16a75d5e 100644 --- a/.agents/skills/cli-api/references/platform-site-metadatum.md +++ b/.agents/skills/cli-api/references/platform-site-metadatum.md @@ -12,8 +12,8 @@ csdk platform-site-metadatum list --where.. --orderBy csdk platform-site-metadatum find-first --where.. csdk platform-site-metadatum get --id -csdk platform-site-metadatum create --siteId [--appleTouchIcon ] [--canonicalUrl ] [--commitId ] [--description ] [--favicon ] [--logo ] [--ogImage ] [--robots ] [--storeId ] [--title ] -csdk platform-site-metadatum update --id [--appleTouchIcon ] [--canonicalUrl ] [--commitId ] [--description ] [--favicon ] [--logo ] [--ogImage ] [--robots ] [--siteId ] [--storeId ] [--title ] +csdk platform-site-metadatum create --siteId [--appleTouchIcon ] [--canonicalUrl ] [--commitId ] [--description ] [--favicon ] [--logo ] [--ogImage ] [--robots ] [--robotsSeededFrom ] [--storeId ] [--title ] +csdk platform-site-metadatum update --id [--appleTouchIcon ] [--canonicalUrl ] [--commitId ] [--description ] [--favicon ] [--logo ] [--ogImage ] [--robots ] [--robotsSeededFrom ] [--siteId ] [--storeId ] [--title ] csdk platform-site-metadatum delete --id ``` @@ -58,7 +58,7 @@ csdk platform-site-metadatum list --where.id.equalTo --orderBy ID_ASC ### Create a platformSiteMetadatum ```bash -csdk platform-site-metadatum create --siteId [--appleTouchIcon ] [--canonicalUrl ] [--commitId ] [--description ] [--favicon ] [--logo ] [--ogImage ] [--robots ] [--storeId ] [--title ] +csdk platform-site-metadatum create --siteId [--appleTouchIcon ] [--canonicalUrl ] [--commitId ] [--description ] [--favicon ] [--logo ] [--ogImage ] [--robots ] [--robotsSeededFrom ] [--storeId ] [--title ] ``` ### Get a platformSiteMetadatum by id diff --git a/.agents/skills/cli-api/references/platform-site-release.md b/.agents/skills/cli-api/references/platform-site-release.md new file mode 100644 index 0000000000..14ee2c9e08 --- /dev/null +++ b/.agents/skills/cli-api/references/platform-site-release.md @@ -0,0 +1,68 @@ +# platformSiteRelease + + + +CRUD operations for PlatformSiteRelease records via csdk CLI + +## Usage + +```bash +csdk platform-site-release list +csdk platform-site-release list --where.. --orderBy +csdk platform-site-release list --limit 10 --after +csdk platform-site-release find-first --where.. +csdk platform-site-release get --id +csdk platform-site-release create --manifest --siteId [--commitId ] [--storeId ] +csdk platform-site-release update --id [--commitId ] [--manifest ] [--siteId ] [--storeId ] +csdk platform-site-release delete --id +``` + +## Examples + +### List platformSiteRelease records + +```bash +csdk platform-site-release list +``` + +### List platformSiteRelease records with pagination + +```bash +csdk platform-site-release list --limit 10 --offset 0 +``` + +### List platformSiteRelease records with cursor pagination + +```bash +csdk platform-site-release list --limit 10 --after +``` + +### Find first matching platformSiteRelease + +```bash +csdk platform-site-release find-first --where.id.equalTo +``` + +### List platformSiteRelease records with field selection + +```bash +csdk platform-site-release list --select id,id +``` + +### List platformSiteRelease records with filtering and ordering + +```bash +csdk platform-site-release list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a platformSiteRelease + +```bash +csdk platform-site-release create --manifest --siteId [--commitId ] [--storeId ] +``` + +### Get a platformSiteRelease by id + +```bash +csdk platform-site-release get --id +``` diff --git a/.agents/skills/cli-api/references/platform-site.md b/.agents/skills/cli-api/references/platform-site.md index 7da82ca386..fcab2af8c1 100644 --- a/.agents/skills/cli-api/references/platform-site.md +++ b/.agents/skills/cli-api/references/platform-site.md @@ -12,8 +12,8 @@ csdk platform-site list --where.. --orderBy csdk platform-site list --limit 10 --after csdk platform-site find-first --where.. csdk platform-site get --id -csdk platform-site create --name [--activeCommitId ] [--bucketId ] [--description ] [--installationId ] [--installationMemberSlug ] [--isPublished ] [--resourceId ] [--title ] -csdk platform-site update --id [--activeCommitId ] [--bucketId ] [--description ] [--installationId ] [--installationMemberSlug ] [--isPublished ] [--name ] [--resourceId ] [--title ] +csdk platform-site create --name [--activeCommitId ] [--bucketId ] [--createdByPrincipal ] [--description ] [--installationId ] [--installationMemberSlug ] [--isPublished ] [--resourceId ] [--title ] [--updatedByPrincipal ] +csdk platform-site update --id [--activeCommitId ] [--bucketId ] [--createdByPrincipal ] [--description ] [--installationId ] [--installationMemberSlug ] [--isPublished ] [--name ] [--resourceId ] [--title ] [--updatedByPrincipal ] csdk platform-site delete --id ``` @@ -58,7 +58,7 @@ csdk platform-site list --where.id.equalTo --orderBy ID_ASC ### Create a platformSite ```bash -csdk platform-site create --name [--activeCommitId ] [--bucketId ] [--description ] [--installationId ] [--installationMemberSlug ] [--isPublished ] [--resourceId ] [--title ] +csdk platform-site create --name [--activeCommitId ] [--bucketId ] [--createdByPrincipal ] [--description ] [--installationId ] [--installationMemberSlug ] [--isPublished ] [--resourceId ] [--title ] [--updatedByPrincipal ] ``` ### Get a platformSite by id diff --git a/.agents/skills/cli-api/references/platform-sites-deep-link-url.md b/.agents/skills/cli-api/references/platform-sites-deep-link-url.md new file mode 100644 index 0000000000..b8f25251ca --- /dev/null +++ b/.agents/skills/cli-api/references/platform-sites-deep-link-url.md @@ -0,0 +1,19 @@ +# platformSitesDeepLinkUrl + + + +Execute the platformSitesDeepLinkUrl query + +## Usage + +```bash +csdk platform-sites-deep-link-url --linkSlug --targetSiteId +``` + +## Examples + +### Run platformSitesDeepLinkUrl + +```bash +csdk platform-sites-deep-link-url --linkSlug --targetSiteId +``` diff --git a/.agents/skills/cli-api/references/platform-sites-install-content-preset.md b/.agents/skills/cli-api/references/platform-sites-install-content-preset.md new file mode 100644 index 0000000000..84046641ee --- /dev/null +++ b/.agents/skills/cli-api/references/platform-sites-install-content-preset.md @@ -0,0 +1,19 @@ +# platformSitesInstallContentPreset + + + +Execute the platformSitesInstallContentPreset mutation + +## Usage + +```bash +csdk platform-sites-install-content-preset --input.clientMutationId --input.entityId --input.presetKind --input.presetSlug --input.siteId +``` + +## Examples + +### Run platformSitesInstallContentPreset + +```bash +csdk platform-sites-install-content-preset --input.clientMutationId --input.entityId --input.presetKind --input.presetSlug --input.siteId +``` diff --git a/.agents/skills/cli-api/references/platform-sites-install-mantra.md b/.agents/skills/cli-api/references/platform-sites-install-mantra.md new file mode 100644 index 0000000000..b9696fd4ef --- /dev/null +++ b/.agents/skills/cli-api/references/platform-sites-install-mantra.md @@ -0,0 +1,19 @@ +# platformSitesInstallMantra + + + +Execute the platformSitesInstallMantra mutation + +## Usage + +```bash +csdk platform-sites-install-mantra --input.clientMutationId --input.entityId --input.routePreset --input.siteId +``` + +## Examples + +### Run platformSitesInstallMantra + +```bash +csdk platform-sites-install-mantra --input.clientMutationId --input.entityId --input.routePreset --input.siteId +``` diff --git a/.agents/skills/cli-api/references/platform-sites-site-origin.md b/.agents/skills/cli-api/references/platform-sites-site-origin.md new file mode 100644 index 0000000000..342bbb4b2a --- /dev/null +++ b/.agents/skills/cli-api/references/platform-sites-site-origin.md @@ -0,0 +1,19 @@ +# platformSitesSiteOrigin + + + +Execute the platformSitesSiteOrigin query + +## Usage + +```bash +csdk platform-sites-site-origin --targetSiteId +``` + +## Examples + +### Run platformSitesSiteOrigin + +```bash +csdk platform-sites-site-origin --targetSiteId +``` diff --git a/.agents/skills/cli-api/references/platform-verify-site-preview-token.md b/.agents/skills/cli-api/references/platform-verify-site-preview-token.md new file mode 100644 index 0000000000..2e88162a03 --- /dev/null +++ b/.agents/skills/cli-api/references/platform-verify-site-preview-token.md @@ -0,0 +1,19 @@ +# platformVerifySitePreviewToken + + + +Execute the platformVerifySitePreviewToken query + +## Usage + +```bash +csdk platform-verify-site-preview-token --siteId --token +``` + +## Examples + +### Run platformVerifySitePreviewToken + +```bash +csdk platform-verify-site-preview-token --siteId --token +``` diff --git a/.agents/skills/cli-api/references/policy.md b/.agents/skills/cli-api/references/policy.md index d335d008a0..0068a48ecb 100644 --- a/.agents/skills/cli-api/references/policy.md +++ b/.agents/skills/cli-api/references/policy.md @@ -12,8 +12,8 @@ csdk policy list --where.. --orderBy csdk policy list --limit 10 --after csdk policy find-first --where.. csdk policy get --id -csdk policy create --tableId [--category ] [--data ] [--databaseId ] [--derivedFromPolicyId ] [--derivedFromTableId ] [--disabled ] [--granteeName ] [--name ] [--permissive ] [--policyType ] [--privilege ] [--smartTags ] [--tags ] [--withCheck ] -csdk policy update --id [--category ] [--data ] [--databaseId ] [--derivedFromPolicyId ] [--derivedFromTableId ] [--disabled ] [--granteeName ] [--name ] [--permissive ] [--policyType ] [--privilege ] [--smartTags ] [--tableId ] [--tags ] [--withCheck ] +csdk policy create --tableId [--category ] [--columnRefs ] [--data ] [--databaseId ] [--derivedFromPolicyId ] [--derivedFromTableId ] [--disabled ] [--granteeName ] [--name ] [--permissive ] [--policyType ] [--privilege ] [--smartTags ] [--tags ] [--withCheck ] +csdk policy update --id [--category ] [--columnRefs ] [--data ] [--databaseId ] [--derivedFromPolicyId ] [--derivedFromTableId ] [--disabled ] [--granteeName ] [--name ] [--permissive ] [--policyType ] [--privilege ] [--smartTags ] [--tableId ] [--tags ] [--withCheck ] csdk policy delete --id ``` @@ -58,7 +58,7 @@ csdk policy list --where.id.equalTo --orderBy ID_ASC ### Create a policy ```bash -csdk policy create --tableId [--category ] [--data ] [--databaseId ] [--derivedFromPolicyId ] [--derivedFromTableId ] [--disabled ] [--granteeName ] [--name ] [--permissive ] [--policyType ] [--privilege ] [--smartTags ] [--tags ] [--withCheck ] +csdk policy create --tableId [--category ] [--columnRefs ] [--data ] [--databaseId ] [--derivedFromPolicyId ] [--derivedFromTableId ] [--disabled ] [--granteeName ] [--name ] [--permissive ] [--policyType ] [--privilege ] [--smartTags ] [--tags ] [--withCheck ] ``` ### Get a policy by id diff --git a/.agents/skills/cli-api/references/provision-bucket.md b/.agents/skills/cli-api/references/provision-bucket.md index cc17ffbc21..5fbe38a003 100644 --- a/.agents/skills/cli-api/references/provision-bucket.md +++ b/.agents/skills/cli-api/references/provision-bucket.md @@ -2,10 +2,11 @@ -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. +Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. ## Usage diff --git a/.agents/skills/cli-api/references/provision-site-preview.md b/.agents/skills/cli-api/references/provision-site-preview.md new file mode 100644 index 0000000000..ac6b608704 --- /dev/null +++ b/.agents/skills/cli-api/references/provision-site-preview.md @@ -0,0 +1,19 @@ +# provisionSitePreview + + + +Execute the provisionSitePreview mutation + +## Usage + +```bash +csdk provision-site-preview --input.apex --input.clientMutationId --input.commitId --input.name --input.siteId +``` + +## Examples + +### Run provisionSitePreview + +```bash +csdk provision-site-preview --input.apex --input.clientMutationId --input.commitId --input.name --input.siteId +``` diff --git a/.agents/skills/cli-api/references/redirect.md b/.agents/skills/cli-api/references/redirect.md new file mode 100644 index 0000000000..6ef188e0a6 --- /dev/null +++ b/.agents/skills/cli-api/references/redirect.md @@ -0,0 +1,68 @@ +# redirect + + + +CRUD operations for Redirect records via csdk CLI + +## Usage + +```bash +csdk redirect list +csdk redirect list --where.. --orderBy +csdk redirect list --limit 10 --after +csdk redirect find-first --where.. +csdk redirect get --id +csdk redirect create --databaseId --name --toHost [--preservePath ] [--preserveQuery ] [--statusCode ] [--toPath ] +csdk redirect update --id [--databaseId ] [--name ] [--preservePath ] [--preserveQuery ] [--statusCode ] [--toHost ] [--toPath ] +csdk redirect delete --id +``` + +## Examples + +### List redirect records + +```bash +csdk redirect list +``` + +### List redirect records with pagination + +```bash +csdk redirect list --limit 10 --offset 0 +``` + +### List redirect records with cursor pagination + +```bash +csdk redirect list --limit 10 --after +``` + +### Find first matching redirect + +```bash +csdk redirect find-first --where.id.equalTo +``` + +### List redirect records with field selection + +```bash +csdk redirect list --select id,id +``` + +### List redirect records with filtering and ordering + +```bash +csdk redirect list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a redirect + +```bash +csdk redirect create --databaseId --name --toHost [--preservePath ] [--preserveQuery ] [--statusCode ] [--toPath ] +``` + +### Get a redirect by id + +```bash +csdk redirect get --id +``` diff --git a/.agents/skills/cli-api/references/request-database.md b/.agents/skills/cli-api/references/request-database.md index e37cd366bf..46e8caaeea 100644 --- a/.agents/skills/cli-api/references/request-database.md +++ b/.agents/skills/cli-api/references/request-database.md @@ -4,16 +4,17 @@ 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. +Pass exactly one of preset_slug or modules. Pass organization_id to have the organization own the database from the start (the caller must be an owner of that organization); the requesting user is still the identity bootstrapped into the new database. Omit it for a personal database. 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); + SELECT * FROM metaschema_public.request_database('team_app', 'example.com', preset_slug := 'full', organization_id := '00000000-0000-0000-0000-000000000000'::uuid); ## Usage ```bash -csdk request-database --input.clientMutationId --input.databaseName --input.domain --input.modules --input.options --input.presetSlug --input.subdomain +csdk request-database --input.clientMutationId --input.databaseName --input.domain --input.modules --input.options --input.organizationId --input.presetSlug --input.subdomain ``` ## Examples @@ -21,5 +22,5 @@ csdk request-database --input.clientMutationId --input.databaseName --input.databaseName --input.domain --input.modules --input.options --input.presetSlug --input.subdomain +csdk request-database --input.clientMutationId --input.databaseName --input.domain --input.modules --input.options --input.organizationId --input.presetSlug --input.subdomain ``` diff --git a/.agents/skills/cli-api/references/route-binding.md b/.agents/skills/cli-api/references/route-binding.md index 8914cc7254..bdf0da94f0 100644 --- a/.agents/skills/cli-api/references/route-binding.md +++ b/.agents/skills/cli-api/references/route-binding.md @@ -12,8 +12,8 @@ csdk route-binding list --where.. --orderBy csdk route-binding list --limit 10 --after csdk route-binding find-first --where.. csdk route-binding get --id -csdk route-binding create --domainId --path [--isActive ] [--method ] [--priority ] [--targetApiId ] [--targetBucketId ] [--targetFunctionId ] [--targetServiceId ] [--targetSiteId ] -csdk route-binding update --id [--domainId ] [--isActive ] [--method ] [--path ] [--priority ] [--targetApiId ] [--targetBucketId ] [--targetFunctionId ] [--targetServiceId ] [--targetSiteId ] +csdk route-binding create --domainId --path [--isActive ] [--method ] [--priority ] [--servingSiteId ] [--targetApiId ] [--targetBucketId ] [--targetFunctionId ] [--targetRedirectId ] [--targetServiceId ] [--targetSiteId ] +csdk route-binding update --id [--domainId ] [--isActive ] [--method ] [--path ] [--priority ] [--servingSiteId ] [--targetApiId ] [--targetBucketId ] [--targetFunctionId ] [--targetRedirectId ] [--targetServiceId ] [--targetSiteId ] csdk route-binding delete --id ``` @@ -58,7 +58,7 @@ csdk route-binding list --where.id.equalTo --orderBy ID_ASC ### Create a routeBinding ```bash -csdk route-binding create --domainId --path [--isActive ] [--method ] [--priority ] [--targetApiId ] [--targetBucketId ] [--targetFunctionId ] [--targetServiceId ] [--targetSiteId ] +csdk route-binding create --domainId --path [--isActive ] [--method ] [--priority ] [--servingSiteId ] [--targetApiId ] [--targetBucketId ] [--targetFunctionId ] [--targetRedirectId ] [--targetServiceId ] [--targetSiteId ] ``` ### Get a routeBinding by id diff --git a/.agents/skills/cli-api/references/route.md b/.agents/skills/cli-api/references/route.md index 017bd741af..2d67b07c79 100644 --- a/.agents/skills/cli-api/references/route.md +++ b/.agents/skills/cli-api/references/route.md @@ -12,8 +12,8 @@ csdk route list --where.. --orderBy csdk route list --limit 10 --after csdk route find-first --where.. csdk route get --id -csdk route create --databaseId --domainId [--config ] [--isActive ] [--method ] [--path ] [--priority ] [--targetApiId ] [--targetBucketId ] [--targetFunctionId ] [--targetServiceId ] [--targetSiteId ] -csdk route update --id [--config ] [--databaseId ] [--domainId ] [--isActive ] [--method ] [--path ] [--priority ] [--targetApiId ] [--targetBucketId ] [--targetFunctionId ] [--targetServiceId ] [--targetSiteId ] +csdk route create --databaseId --domainId [--anonymous ] [--config ] [--isActive ] [--method ] [--path ] [--previewRef ] [--priority ] [--servingSiteId ] [--targetApiId ] [--targetBucketId ] [--targetFunctionId ] [--targetRedirectId ] [--targetServiceId ] [--targetSiteId ] +csdk route update --id [--anonymous ] [--config ] [--databaseId ] [--domainId ] [--isActive ] [--method ] [--path ] [--previewRef ] [--priority ] [--servingSiteId ] [--targetApiId ] [--targetBucketId ] [--targetFunctionId ] [--targetRedirectId ] [--targetServiceId ] [--targetSiteId ] csdk route delete --id ``` @@ -58,7 +58,7 @@ csdk route list --where.id.equalTo --orderBy ID_ASC ### Create a route ```bash -csdk route create --databaseId --domainId [--config ] [--isActive ] [--method ] [--path ] [--priority ] [--targetApiId ] [--targetBucketId ] [--targetFunctionId ] [--targetServiceId ] [--targetSiteId ] +csdk route create --databaseId --domainId [--anonymous ] [--config ] [--isActive ] [--method ] [--path ] [--previewRef ] [--priority ] [--servingSiteId ] [--targetApiId ] [--targetBucketId ] [--targetFunctionId ] [--targetRedirectId ] [--targetServiceId ] [--targetSiteId ] ``` ### Get a route by id diff --git a/.agents/skills/cli-api/references/set-site-preview.md b/.agents/skills/cli-api/references/set-site-preview.md new file mode 100644 index 0000000000..cf4fbbbec4 --- /dev/null +++ b/.agents/skills/cli-api/references/set-site-preview.md @@ -0,0 +1,19 @@ +# setSitePreview + + + +Execute the setSitePreview mutation + +## Usage + +```bash +csdk set-site-preview --input.clientMutationId --input.targetCommitId --input.targetName --input.targetSiteId +``` + +## Examples + +### Run setSitePreview + +```bash +csdk set-site-preview --input.clientMutationId --input.targetCommitId --input.targetName --input.targetSiteId +``` diff --git a/.agents/skills/cli-api/references/site-app-link.md b/.agents/skills/cli-api/references/site-app-link.md index c03ffbd5d6..56c48d7544 100644 --- a/.agents/skills/cli-api/references/site-app-link.md +++ b/.agents/skills/cli-api/references/site-app-link.md @@ -12,8 +12,8 @@ csdk site-app-link list --where.. --orderBy csdk site-app-link list --limit 10 --after csdk site-app-link find-first --where.. csdk site-app-link get --id -csdk site-app-link create --appIdentifier --databaseId --platform --siteId [--pathComponents ] [--sha256CertFingerprints ] [--storeUrl ] [--teamId ] [--webcredentials ] -csdk site-app-link update --id [--appIdentifier ] [--databaseId ] [--pathComponents ] [--platform ] [--sha256CertFingerprints ] [--siteId ] [--storeUrl ] [--teamId ] [--webcredentials ] +csdk site-app-link create --appStoreIdentityId --databaseId --siteId [--pathComponents ] [--webcredentials ] +csdk site-app-link update --id [--appStoreIdentityId ] [--databaseId ] [--pathComponents ] [--siteId ] [--webcredentials ] csdk site-app-link delete --id ``` @@ -58,7 +58,7 @@ csdk site-app-link list --where.id.equalTo --orderBy ID_ASC ### Create a siteAppLink ```bash -csdk site-app-link create --appIdentifier --databaseId --platform --siteId [--pathComponents ] [--sha256CertFingerprints ] [--storeUrl ] [--teamId ] [--webcredentials ] +csdk site-app-link create --appStoreIdentityId --databaseId --siteId [--pathComponents ] [--webcredentials ] ``` ### Get a siteAppLink by id diff --git a/.agents/skills/cli-api/references/site-deep-link.md b/.agents/skills/cli-api/references/site-deep-link.md index 1817df8931..8394cf0bea 100644 --- a/.agents/skills/cli-api/references/site-deep-link.md +++ b/.agents/skills/cli-api/references/site-deep-link.md @@ -12,8 +12,8 @@ csdk site-deep-link list --where.. --orderBy csdk site-deep-link list --limit 10 --after csdk site-deep-link find-first --where.. csdk site-deep-link get --id -csdk site-deep-link create --appPath --databaseId --siteId --slug [--fallbackUrl ] [--metadata ] [--webPath ] -csdk site-deep-link update --id [--appPath ] [--databaseId ] [--fallbackUrl ] [--metadata ] [--siteId ] [--slug ] [--webPath ] +csdk site-deep-link create --appPath --databaseId --siteId --slug [--fallbackUrl ] [--metadata ] [--pageId ] [--webPath ] +csdk site-deep-link update --id [--appPath ] [--databaseId ] [--fallbackUrl ] [--metadata ] [--pageId ] [--siteId ] [--slug ] [--webPath ] csdk site-deep-link delete --id ``` @@ -58,7 +58,7 @@ csdk site-deep-link list --where.id.equalTo --orderBy ID_ASC ### Create a siteDeepLink ```bash -csdk site-deep-link create --appPath --databaseId --siteId --slug [--fallbackUrl ] [--metadata ] [--webPath ] +csdk site-deep-link create --appPath --databaseId --siteId --slug [--fallbackUrl ] [--metadata ] [--pageId ] [--webPath ] ``` ### Get a siteDeepLink by id diff --git a/.agents/skills/cli-api/references/site-metadata-install-robots.md b/.agents/skills/cli-api/references/site-metadata-install-robots.md new file mode 100644 index 0000000000..50d0364728 --- /dev/null +++ b/.agents/skills/cli-api/references/site-metadata-install-robots.md @@ -0,0 +1,19 @@ +# siteMetadataInstallRobots + + + +Execute the siteMetadataInstallRobots mutation + +## Usage + +```bash +csdk site-metadata-install-robots --input.clientMutationId --input.entityId --input.robotsPreset --input.siteId +``` + +## Examples + +### Run siteMetadataInstallRobots + +```bash +csdk site-metadata-install-robots --input.clientMutationId --input.entityId --input.robotsPreset --input.siteId +``` diff --git a/.agents/skills/cli-api/references/site-metadatum.md b/.agents/skills/cli-api/references/site-metadatum.md index 47b0c3cc80..ca64923afd 100644 --- a/.agents/skills/cli-api/references/site-metadatum.md +++ b/.agents/skills/cli-api/references/site-metadatum.md @@ -12,8 +12,8 @@ csdk site-metadatum list --where.. --orderBy csdk site-metadatum list --limit 10 --after csdk site-metadatum find-first --where.. csdk site-metadatum get --id -csdk site-metadatum create --databaseId --siteId [--appleTouchIcon ] [--canonicalUrl ] [--commitId ] [--description ] [--favicon ] [--logo ] [--ogImage ] [--robots ] [--storeId ] [--title ] -csdk site-metadatum update --id [--appleTouchIcon ] [--canonicalUrl ] [--commitId ] [--databaseId ] [--description ] [--favicon ] [--logo ] [--ogImage ] [--robots ] [--siteId ] [--storeId ] [--title ] +csdk site-metadatum create --databaseId --siteId [--appleTouchIcon ] [--canonicalUrl ] [--commitId ] [--description ] [--favicon ] [--logo ] [--ogImage ] [--robots ] [--robotsSeededFrom ] [--storeId ] [--title ] +csdk site-metadatum update --id [--appleTouchIcon ] [--canonicalUrl ] [--commitId ] [--databaseId ] [--description ] [--favicon ] [--logo ] [--ogImage ] [--robots ] [--robotsSeededFrom ] [--siteId ] [--storeId ] [--title ] csdk site-metadatum delete --id ``` @@ -58,7 +58,7 @@ csdk site-metadatum list --where.id.equalTo --orderBy ID_ASC ### Create a siteMetadatum ```bash -csdk site-metadatum create --databaseId --siteId [--appleTouchIcon ] [--canonicalUrl ] [--commitId ] [--description ] [--favicon ] [--logo ] [--ogImage ] [--robots ] [--storeId ] [--title ] +csdk site-metadatum create --databaseId --siteId [--appleTouchIcon ] [--canonicalUrl ] [--commitId ] [--description ] [--favicon ] [--logo ] [--ogImage ] [--robots ] [--robotsSeededFrom ] [--storeId ] [--title ] ``` ### Get a siteMetadatum by id diff --git a/.agents/skills/cli-api/references/site-release.md b/.agents/skills/cli-api/references/site-release.md new file mode 100644 index 0000000000..cedb46bc9b --- /dev/null +++ b/.agents/skills/cli-api/references/site-release.md @@ -0,0 +1,68 @@ +# siteRelease + + + +CRUD operations for SiteRelease records via csdk CLI + +## Usage + +```bash +csdk site-release list +csdk site-release list --where.. --orderBy +csdk site-release list --limit 10 --after +csdk site-release find-first --where.. +csdk site-release get --id +csdk site-release create --databaseId --manifest --siteId [--commitId ] [--storeId ] +csdk site-release update --id [--commitId ] [--databaseId ] [--manifest ] [--siteId ] [--storeId ] +csdk site-release delete --id +``` + +## Examples + +### List siteRelease records + +```bash +csdk site-release list +``` + +### List siteRelease records with pagination + +```bash +csdk site-release list --limit 10 --offset 0 +``` + +### List siteRelease records with cursor pagination + +```bash +csdk site-release list --limit 10 --after +``` + +### Find first matching siteRelease + +```bash +csdk site-release find-first --where.id.equalTo +``` + +### List siteRelease records with field selection + +```bash +csdk site-release list --select id,id +``` + +### List siteRelease records with filtering and ordering + +```bash +csdk site-release list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a siteRelease + +```bash +csdk site-release create --databaseId --manifest --siteId [--commitId ] [--storeId ] +``` + +### Get a siteRelease by id + +```bash +csdk site-release get --id +``` diff --git a/.agents/skills/cli-api/references/site.md b/.agents/skills/cli-api/references/site.md index e84bd750a3..6e14039005 100644 --- a/.agents/skills/cli-api/references/site.md +++ b/.agents/skills/cli-api/references/site.md @@ -12,8 +12,8 @@ csdk site list --where.. --orderBy csdk site list --limit 10 --after csdk site find-first --where.. csdk site get --id -csdk site create --databaseId --name [--activeCommitId ] [--bucketId ] [--description ] [--installationId ] [--installationMemberSlug ] [--isPublished ] [--resourceId ] [--title ] -csdk site update --id [--activeCommitId ] [--bucketId ] [--databaseId ] [--description ] [--installationId ] [--installationMemberSlug ] [--isPublished ] [--name ] [--resourceId ] [--title ] +csdk site create --databaseId --name [--activeCommitId ] [--bucketId ] [--createdByPrincipal ] [--description ] [--installationId ] [--installationMemberSlug ] [--isPublished ] [--resourceId ] [--title ] [--updatedByPrincipal ] +csdk site update --id [--activeCommitId ] [--bucketId ] [--createdByPrincipal ] [--databaseId ] [--description ] [--installationId ] [--installationMemberSlug ] [--isPublished ] [--name ] [--resourceId ] [--title ] [--updatedByPrincipal ] csdk site delete --id ``` @@ -58,7 +58,7 @@ csdk site list --where.id.equalTo --orderBy ID_ASC ### Create a site ```bash -csdk site create --databaseId --name [--activeCommitId ] [--bucketId ] [--description ] [--installationId ] [--installationMemberSlug ] [--isPublished ] [--resourceId ] [--title ] +csdk site create --databaseId --name [--activeCommitId ] [--bucketId ] [--createdByPrincipal ] [--description ] [--installationId ] [--installationMemberSlug ] [--isPublished ] [--resourceId ] [--title ] [--updatedByPrincipal ] ``` ### Get a site by id diff --git a/.agents/skills/cli-api/references/sites-deep-link-url.md b/.agents/skills/cli-api/references/sites-deep-link-url.md new file mode 100644 index 0000000000..fb97514b90 --- /dev/null +++ b/.agents/skills/cli-api/references/sites-deep-link-url.md @@ -0,0 +1,19 @@ +# sitesDeepLinkUrl + + + +Execute the sitesDeepLinkUrl query + +## Usage + +```bash +csdk sites-deep-link-url --linkSlug --targetSiteId +``` + +## Examples + +### Run sitesDeepLinkUrl + +```bash +csdk sites-deep-link-url --linkSlug --targetSiteId +``` diff --git a/.agents/skills/cli-api/references/sites-install-content-preset.md b/.agents/skills/cli-api/references/sites-install-content-preset.md new file mode 100644 index 0000000000..e0b867524c --- /dev/null +++ b/.agents/skills/cli-api/references/sites-install-content-preset.md @@ -0,0 +1,19 @@ +# sitesInstallContentPreset + + + +Execute the sitesInstallContentPreset mutation + +## Usage + +```bash +csdk sites-install-content-preset --input.clientMutationId --input.entityId --input.presetKind --input.presetSlug --input.siteId +``` + +## Examples + +### Run sitesInstallContentPreset + +```bash +csdk sites-install-content-preset --input.clientMutationId --input.entityId --input.presetKind --input.presetSlug --input.siteId +``` diff --git a/.agents/skills/cli-api/references/sites-install-mantra.md b/.agents/skills/cli-api/references/sites-install-mantra.md new file mode 100644 index 0000000000..4b31a772d8 --- /dev/null +++ b/.agents/skills/cli-api/references/sites-install-mantra.md @@ -0,0 +1,19 @@ +# sitesInstallMantra + + + +Execute the sitesInstallMantra mutation + +## Usage + +```bash +csdk sites-install-mantra --input.clientMutationId --input.entityId --input.routePreset --input.siteId +``` + +## Examples + +### Run sitesInstallMantra + +```bash +csdk sites-install-mantra --input.clientMutationId --input.entityId --input.routePreset --input.siteId +``` diff --git a/.agents/skills/cli-api/references/sites-site-origin.md b/.agents/skills/cli-api/references/sites-site-origin.md new file mode 100644 index 0000000000..27985fccd0 --- /dev/null +++ b/.agents/skills/cli-api/references/sites-site-origin.md @@ -0,0 +1,19 @@ +# sitesSiteOrigin + + + +Execute the sitesSiteOrigin query + +## Usage + +```bash +csdk sites-site-origin --targetSiteId +``` + +## Examples + +### Run sitesSiteOrigin + +```bash +csdk sites-site-origin --targetSiteId +``` diff --git a/.agents/skills/cli-api/references/trigger.md b/.agents/skills/cli-api/references/trigger.md index d994f09f71..46ea5d9f92 100644 --- a/.agents/skills/cli-api/references/trigger.md +++ b/.agents/skills/cli-api/references/trigger.md @@ -12,8 +12,8 @@ csdk trigger list --where.. --orderBy csdk trigger list --limit 10 --after csdk trigger find-first --where.. csdk trigger get --id -csdk trigger create --name --tableId [--category ] [--databaseId ] [--event ] [--functionName ] [--smartTags ] [--tags ] -csdk trigger update --id [--category ] [--databaseId ] [--event ] [--functionName ] [--name ] [--smartTags ] [--tableId ] [--tags ] +csdk trigger create --name --tableId [--category ] [--databaseId ] [--event ] [--events ] [--forEachRow ] [--functionId ] [--functionName ] [--kind ] [--smartTags ] [--tags ] [--timing ] [--whenAst ] +csdk trigger update --id [--category ] [--databaseId ] [--event ] [--events ] [--forEachRow ] [--functionId ] [--functionName ] [--kind ] [--name ] [--smartTags ] [--tableId ] [--tags ] [--timing ] [--whenAst ] csdk trigger delete --id ``` @@ -58,7 +58,7 @@ csdk trigger list --where.id.equalTo --orderBy ID_ASC ### Create a trigger ```bash -csdk trigger create --name --tableId [--category ] [--databaseId ] [--event ] [--functionName ] [--smartTags ] [--tags ] +csdk trigger create --name --tableId [--category ] [--databaseId ] [--event ] [--events ] [--forEachRow ] [--functionId ] [--functionName ] [--kind ] [--smartTags ] [--tags ] [--timing ] [--whenAst ] ``` ### Get a trigger by id diff --git a/.agents/skills/cli-api/references/verify-site-preview-token.md b/.agents/skills/cli-api/references/verify-site-preview-token.md new file mode 100644 index 0000000000..b469a743b4 --- /dev/null +++ b/.agents/skills/cli-api/references/verify-site-preview-token.md @@ -0,0 +1,19 @@ +# verifySitePreviewToken + + + +Execute the verifySitePreviewToken query + +## Usage + +```bash +csdk verify-site-preview-token --siteId --token +``` + +## Examples + +### Run verifySitePreviewToken + +```bash +csdk verify-site-preview-token --siteId --token +``` diff --git a/.agents/skills/cli-auth/SKILL.md b/.agents/skills/cli-auth/SKILL.md index 467e1e4a8f..3161c0da0a 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 15 tables and 55 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 15 tables and 55 custom operations ## Usage @@ -68,25 +68,42 @@ See the `references/` directory for detailed per-entity API documentation: - [role-type](references/role-type.md) - [user-connected-account](references/user-connected-account.md) - [user](references/user.md) +- [user-setting](references/user-setting.md) +- [user-settings-security](references/user-settings-security.md) - [webauthn-credential](references/webauthn-credential.md) - [current-ip-address](references/current-ip-address.md) - [current-user](references/current-user.md) - [current-user-agent](references/current-user-agent.md) - [current-user-id](references/current-user-id.md) +- [get-mfa-status](references/get-mfa-status.md) - [require-step-up](references/require-step-up.md) +- [approve-device](references/approve-device.md) - [check-password](references/check-password.md) +- [complete-mfa-challenge](references/complete-mfa-challenge.md) - [confirm-delete-account](references/confirm-delete-account.md) +- [confirm-totp-setup](references/confirm-totp-setup.md) - [create-api-key](references/create-api-key.md) +- [create-child-principal](references/create-child-principal.md) - [create-org-api-key](references/create-org-api-key.md) - [create-org-principal](references/create-org-principal.md) +- [create-principal-from-preset](references/create-principal-from-preset.md) - [delete-org-principal](references/delete-org-principal.md) - [delete-principal](references/delete-principal.md) +- [disable-email-mfa](references/disable-email-mfa.md) +- [disable-sms-mfa](references/disable-sms-mfa.md) +- [disable-totp](references/disable-totp.md) - [disconnect-account](references/disconnect-account.md) +- [enable-email-mfa](references/enable-email-mfa.md) +- [enable-sms-mfa](references/enable-sms-mfa.md) +- [enable-totp](references/enable-totp.md) - [extend-token-expires](references/extend-token-expires.md) - [forgot-password](references/forgot-password.md) +- [generate-backup-codes](references/generate-backup-codes.md) - [link-identity](references/link-identity.md) +- [mint-access-token](references/mint-access-token.md) - [provision-bucket](references/provision-bucket.md) - [provision-new-user](references/provision-new-user.md) +- [refresh-access-token](references/refresh-access-token.md) - [request-cross-origin-token](references/request-cross-origin-token.md) - [reset-password](references/reset-password.md) - [revoke-api-key](references/revoke-api-key.md) @@ -95,12 +112,17 @@ See the `references/` directory for detailed per-entity API documentation: - [send-account-deletion-email](references/send-account-deletion-email.md) - [send-verification-email](references/send-verification-email.md) - [set-password](references/set-password.md) +- [set-principal-entities](references/set-principal-entities.md) +- [set-principal-scope](references/set-principal-scope.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) +- [update-principal](references/update-principal.md) - [verify-email](references/verify-email.md) - [verify-password](references/verify-password.md) - [verify-totp](references/verify-totp.md) diff --git a/.agents/skills/cli-auth/references/approve-device.md b/.agents/skills/cli-auth/references/approve-device.md new file mode 100644 index 0000000000..2f33616a2e --- /dev/null +++ b/.agents/skills/cli-auth/references/approve-device.md @@ -0,0 +1,19 @@ +# approveDevice + + + +Execute the approveDevice mutation + +## Usage + +```bash +csdk approve-device --input.approvalToken --input.clientMutationId +``` + +## Examples + +### Run approveDevice + +```bash +csdk approve-device --input.approvalToken --input.clientMutationId +``` diff --git a/.agents/skills/cli-auth/references/audit-log-auth.md b/.agents/skills/cli-auth/references/audit-log-auth.md index 478ec411d9..a0fba990ce 100644 --- a/.agents/skills/cli-auth/references/audit-log-auth.md +++ b/.agents/skills/cli-auth/references/audit-log-auth.md @@ -12,8 +12,8 @@ csdk audit-log-auth list --where.. --orderBy csdk audit-log-auth list --limit 10 --after csdk audit-log-auth find-first --where.. csdk audit-log-auth get --id -csdk audit-log-auth create --event --success [--actorId ] [--ipAddress ] [--origin ] [--userAgent ] -csdk audit-log-auth update --id [--actorId ] [--event ] [--ipAddress ] [--origin ] [--success ] [--userAgent ] +csdk audit-log-auth create --event --success [--actorId ] [--details ] [--ipAddress ] [--origin ] [--userAgent ] +csdk audit-log-auth update --id [--actorId ] [--details ] [--event ] [--ipAddress ] [--origin ] [--success ] [--userAgent ] csdk audit-log-auth delete --id ``` @@ -58,7 +58,7 @@ csdk audit-log-auth list --where.id.equalTo --orderBy ID_ASC ### Create a auditLogAuth ```bash -csdk audit-log-auth create --event --success [--actorId ] [--ipAddress ] [--origin ] [--userAgent ] +csdk audit-log-auth create --event --success [--actorId ] [--details ] [--ipAddress ] [--origin ] [--userAgent ] ``` ### Get a auditLogAuth by id diff --git a/.agents/skills/cli-auth/references/complete-mfa-challenge.md b/.agents/skills/cli-auth/references/complete-mfa-challenge.md new file mode 100644 index 0000000000..34a952c7a5 --- /dev/null +++ b/.agents/skills/cli-auth/references/complete-mfa-challenge.md @@ -0,0 +1,19 @@ +# completeMfaChallenge + + + +Execute the completeMfaChallenge mutation + +## Usage + +```bash +csdk complete-mfa-challenge --input.authMethod --input.clientMutationId --input.credentialKind --input.deviceToken --input.mfaChallengeToken --input.mfaMethod --input.rememberMe --input.totpCode --input.trustDevice --input.userId +``` + +## Examples + +### Run completeMfaChallenge + +```bash +csdk complete-mfa-challenge --input.authMethod --input.clientMutationId --input.credentialKind --input.deviceToken --input.mfaChallengeToken --input.mfaMethod --input.rememberMe --input.totpCode --input.trustDevice --input.userId +``` diff --git a/.agents/skills/cli-auth/references/confirm-totp-setup.md b/.agents/skills/cli-auth/references/confirm-totp-setup.md new file mode 100644 index 0000000000..37ae1e2df1 --- /dev/null +++ b/.agents/skills/cli-auth/references/confirm-totp-setup.md @@ -0,0 +1,19 @@ +# confirmTotpSetup + + + +Execute the confirmTotpSetup mutation + +## Usage + +```bash +csdk confirm-totp-setup --input.clientMutationId --input.totpValue +``` + +## Examples + +### Run confirmTotpSetup + +```bash +csdk confirm-totp-setup --input.clientMutationId --input.totpValue +``` diff --git a/.agents/skills/cli-auth/references/create-child-principal.md b/.agents/skills/cli-auth/references/create-child-principal.md new file mode 100644 index 0000000000..76356076f0 --- /dev/null +++ b/.agents/skills/cli-auth/references/create-child-principal.md @@ -0,0 +1,19 @@ +# createChildPrincipal + + + +Execute the createChildPrincipal mutation + +## Usage + +```bash +csdk create-child-principal --input.allowedMask --input.clientMutationId --input.entityIds --input.expiresAt --input.intent --input.isReadOnly --input.name --input.parentPrincipalId +``` + +## Examples + +### Run createChildPrincipal + +```bash +csdk create-child-principal --input.allowedMask --input.clientMutationId --input.entityIds --input.expiresAt --input.intent --input.isReadOnly --input.name --input.parentPrincipalId +``` diff --git a/.agents/skills/cli-auth/references/create-principal-from-preset.md b/.agents/skills/cli-auth/references/create-principal-from-preset.md new file mode 100644 index 0000000000..b9334edacb --- /dev/null +++ b/.agents/skills/cli-auth/references/create-principal-from-preset.md @@ -0,0 +1,19 @@ +# createPrincipalFromPreset + + + +Execute the createPrincipalFromPreset mutation + +## Usage + +```bash +csdk create-principal-from-preset --input.clientMutationId --input.entityIds --input.name --input.overrides --input.slug +``` + +## Examples + +### Run createPrincipalFromPreset + +```bash +csdk create-principal-from-preset --input.clientMutationId --input.entityIds --input.name --input.overrides --input.slug +``` diff --git a/.agents/skills/cli-auth/references/disable-email-mfa.md b/.agents/skills/cli-auth/references/disable-email-mfa.md new file mode 100644 index 0000000000..72b34a68f5 --- /dev/null +++ b/.agents/skills/cli-auth/references/disable-email-mfa.md @@ -0,0 +1,19 @@ +# disableEmailMfa + + + +Execute the disableEmailMfa mutation + +## Usage + +```bash +csdk disable-email-mfa --input.clientMutationId +``` + +## Examples + +### Run disableEmailMfa + +```bash +csdk disable-email-mfa --input.clientMutationId +``` diff --git a/.agents/skills/cli-auth/references/disable-sms-mfa.md b/.agents/skills/cli-auth/references/disable-sms-mfa.md new file mode 100644 index 0000000000..7bf8f9e657 --- /dev/null +++ b/.agents/skills/cli-auth/references/disable-sms-mfa.md @@ -0,0 +1,19 @@ +# disableSmsMfa + + + +Execute the disableSmsMfa mutation + +## Usage + +```bash +csdk disable-sms-mfa --input.clientMutationId +``` + +## Examples + +### Run disableSmsMfa + +```bash +csdk disable-sms-mfa --input.clientMutationId +``` diff --git a/.agents/skills/cli-auth/references/disable-totp.md b/.agents/skills/cli-auth/references/disable-totp.md new file mode 100644 index 0000000000..7cb6005f2b --- /dev/null +++ b/.agents/skills/cli-auth/references/disable-totp.md @@ -0,0 +1,19 @@ +# disableTotp + + + +Execute the disableTotp mutation + +## Usage + +```bash +csdk disable-totp --input.clientMutationId --input.totpValue +``` + +## Examples + +### Run disableTotp + +```bash +csdk disable-totp --input.clientMutationId --input.totpValue +``` diff --git a/.agents/skills/cli-auth/references/enable-email-mfa.md b/.agents/skills/cli-auth/references/enable-email-mfa.md new file mode 100644 index 0000000000..41b8ec7fd2 --- /dev/null +++ b/.agents/skills/cli-auth/references/enable-email-mfa.md @@ -0,0 +1,19 @@ +# enableEmailMfa + + + +Execute the enableEmailMfa mutation + +## Usage + +```bash +csdk enable-email-mfa --input.clientMutationId +``` + +## Examples + +### Run enableEmailMfa + +```bash +csdk enable-email-mfa --input.clientMutationId +``` diff --git a/.agents/skills/cli-auth/references/enable-sms-mfa.md b/.agents/skills/cli-auth/references/enable-sms-mfa.md new file mode 100644 index 0000000000..fee4fd85c0 --- /dev/null +++ b/.agents/skills/cli-auth/references/enable-sms-mfa.md @@ -0,0 +1,19 @@ +# enableSmsMfa + + + +Execute the enableSmsMfa mutation + +## Usage + +```bash +csdk enable-sms-mfa --input.clientMutationId +``` + +## Examples + +### Run enableSmsMfa + +```bash +csdk enable-sms-mfa --input.clientMutationId +``` diff --git a/.agents/skills/cli-auth/references/enable-totp.md b/.agents/skills/cli-auth/references/enable-totp.md new file mode 100644 index 0000000000..0687c9e7fd --- /dev/null +++ b/.agents/skills/cli-auth/references/enable-totp.md @@ -0,0 +1,19 @@ +# enableTotp + + + +Execute the enableTotp mutation + +## Usage + +```bash +csdk enable-totp --input.clientMutationId +``` + +## Examples + +### Run enableTotp + +```bash +csdk enable-totp --input.clientMutationId +``` diff --git a/.agents/skills/cli-auth/references/generate-backup-codes.md b/.agents/skills/cli-auth/references/generate-backup-codes.md new file mode 100644 index 0000000000..8c69088c33 --- /dev/null +++ b/.agents/skills/cli-auth/references/generate-backup-codes.md @@ -0,0 +1,19 @@ +# generateBackupCodes + + + +Execute the generateBackupCodes mutation + +## Usage + +```bash +csdk generate-backup-codes --input.clientMutationId +``` + +## Examples + +### Run generateBackupCodes + +```bash +csdk generate-backup-codes --input.clientMutationId +``` diff --git a/.agents/skills/cli-auth/references/get-mfa-status.md b/.agents/skills/cli-auth/references/get-mfa-status.md new file mode 100644 index 0000000000..003bbc06a4 --- /dev/null +++ b/.agents/skills/cli-auth/references/get-mfa-status.md @@ -0,0 +1,19 @@ +# getMfaStatus + + + +Execute the getMfaStatus query + +## Usage + +```bash +csdk get-mfa-status +``` + +## Examples + +### Run getMfaStatus + +```bash +csdk get-mfa-status +``` diff --git a/.agents/skills/cli-auth/references/mint-access-token.md b/.agents/skills/cli-auth/references/mint-access-token.md new file mode 100644 index 0000000000..50629cd834 --- /dev/null +++ b/.agents/skills/cli-auth/references/mint-access-token.md @@ -0,0 +1,19 @@ +# mintAccessToken + + + +Execute the mintAccessToken mutation + +## Usage + +```bash +csdk mint-access-token --input.accessTtl --input.clientMutationId --input.intent --input.principalId +``` + +## Examples + +### Run mintAccessToken + +```bash +csdk mint-access-token --input.accessTtl --input.clientMutationId --input.intent --input.principalId +``` diff --git a/.agents/skills/cli-auth/references/principal.md b/.agents/skills/cli-auth/references/principal.md index 0b95bc9b45..c29e08cf6c 100644 --- a/.agents/skills/cli-auth/references/principal.md +++ b/.agents/skills/cli-auth/references/principal.md @@ -12,8 +12,8 @@ csdk principal list --where.. --orderBy csdk principal list --limit 10 --after csdk principal find-first --where.. csdk principal get --principalId -csdk principal create --bypassStepUp --id --isReadOnly --name --ownerId --useAdminOwner --userId -csdk principal update --principalId [--bypassStepUp ] [--id ] [--isReadOnly ] [--name ] [--ownerId ] [--useAdminOwner ] [--userId ] +csdk principal create --bypassStepUp --createdBySessionId --depth --expiresAt --id --isReadOnly --name --ownerId --parentPrincipalId --useAdminOwner --userId +csdk principal update --principalId [--bypassStepUp ] [--createdBySessionId ] [--depth ] [--expiresAt ] [--id ] [--isReadOnly ] [--name ] [--ownerId ] [--parentPrincipalId ] [--useAdminOwner ] [--userId ] csdk principal delete --principalId ``` @@ -58,7 +58,7 @@ csdk principal list --where.principalId.equalTo --orderBy PRINCIPAL_ID_A ### Create a principal ```bash -csdk principal create --bypassStepUp --id --isReadOnly --name --ownerId --useAdminOwner --userId +csdk principal create --bypassStepUp --createdBySessionId --depth --expiresAt --id --isReadOnly --name --ownerId --parentPrincipalId --useAdminOwner --userId ``` ### Get a principal by principalId diff --git a/.agents/skills/cli-auth/references/provision-bucket.md b/.agents/skills/cli-auth/references/provision-bucket.md index cc17ffbc21..5fbe38a003 100644 --- a/.agents/skills/cli-auth/references/provision-bucket.md +++ b/.agents/skills/cli-auth/references/provision-bucket.md @@ -2,10 +2,11 @@ -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. +Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. ## Usage diff --git a/.agents/skills/cli-auth/references/refresh-access-token.md b/.agents/skills/cli-auth/references/refresh-access-token.md new file mode 100644 index 0000000000..264d593fc8 --- /dev/null +++ b/.agents/skills/cli-auth/references/refresh-access-token.md @@ -0,0 +1,19 @@ +# refreshAccessToken + + + +Execute the refreshAccessToken mutation + +## Usage + +```bash +csdk refresh-access-token --input.clientMutationId --input.token +``` + +## Examples + +### Run refreshAccessToken + +```bash +csdk refresh-access-token --input.clientMutationId --input.token +``` diff --git a/.agents/skills/cli-auth/references/set-principal-entities.md b/.agents/skills/cli-auth/references/set-principal-entities.md new file mode 100644 index 0000000000..00f122f9aa --- /dev/null +++ b/.agents/skills/cli-auth/references/set-principal-entities.md @@ -0,0 +1,19 @@ +# setPrincipalEntities + + + +Execute the setPrincipalEntities mutation + +## Usage + +```bash +csdk set-principal-entities --input.clientMutationId --input.entityIds --input.principalId +``` + +## Examples + +### Run setPrincipalEntities + +```bash +csdk set-principal-entities --input.clientMutationId --input.entityIds --input.principalId +``` diff --git a/.agents/skills/cli-auth/references/set-principal-scope.md b/.agents/skills/cli-auth/references/set-principal-scope.md new file mode 100644 index 0000000000..7b63f96f2b --- /dev/null +++ b/.agents/skills/cli-auth/references/set-principal-scope.md @@ -0,0 +1,19 @@ +# setPrincipalScope + + + +Execute the setPrincipalScope mutation + +## Usage + +```bash +csdk set-principal-scope --input.allowedMask --input.clientMutationId --input.isActive --input.isReadOnly --input.membershipType --input.principalId --input.useAdminOwner +``` + +## Examples + +### Run setPrincipalScope + +```bash +csdk set-principal-scope --input.allowedMask --input.clientMutationId --input.isActive --input.isReadOnly --input.membershipType --input.principalId --input.useAdminOwner +``` 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-auth/references/update-principal.md b/.agents/skills/cli-auth/references/update-principal.md new file mode 100644 index 0000000000..ad6b5446fd --- /dev/null +++ b/.agents/skills/cli-auth/references/update-principal.md @@ -0,0 +1,19 @@ +# updatePrincipal + + + +Execute the updatePrincipal mutation + +## Usage + +```bash +csdk update-principal --input.bypassStepUp --input.clientMutationId --input.isReadOnly --input.name --input.principalId --input.useAdminOwner +``` + +## Examples + +### Run updatePrincipal + +```bash +csdk update-principal --input.bypassStepUp --input.clientMutationId --input.isReadOnly --input.name --input.principalId --input.useAdminOwner +``` diff --git a/.agents/skills/cli-auth/references/user-setting.md b/.agents/skills/cli-auth/references/user-setting.md new file mode 100644 index 0000000000..cafd0d874e --- /dev/null +++ b/.agents/skills/cli-auth/references/user-setting.md @@ -0,0 +1,68 @@ +# userSetting + + + +CRUD operations for UserSetting records via csdk CLI + +## Usage + +```bash +csdk user-setting list +csdk user-setting list --where.. --orderBy +csdk user-setting list --limit 10 --after +csdk user-setting find-first --where.. +csdk user-setting get --id +csdk user-setting create [--ownerId ] +csdk user-setting update --id [--ownerId ] +csdk user-setting delete --id +``` + +## Examples + +### List userSetting records + +```bash +csdk user-setting list +``` + +### List userSetting records with pagination + +```bash +csdk user-setting list --limit 10 --offset 0 +``` + +### List userSetting records with cursor pagination + +```bash +csdk user-setting list --limit 10 --after +``` + +### Find first matching userSetting + +```bash +csdk user-setting find-first --where.id.equalTo +``` + +### List userSetting records with field selection + +```bash +csdk user-setting list --select id,id +``` + +### List userSetting records with filtering and ordering + +```bash +csdk user-setting list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a userSetting + +```bash +csdk user-setting create [--ownerId ] +``` + +### Get a userSetting by id + +```bash +csdk user-setting get --id +``` diff --git a/.agents/skills/cli-auth/references/user-settings-security.md b/.agents/skills/cli-auth/references/user-settings-security.md new file mode 100644 index 0000000000..f9a14174e4 --- /dev/null +++ b/.agents/skills/cli-auth/references/user-settings-security.md @@ -0,0 +1,68 @@ +# userSettingsSecurity + + + +CRUD operations for UserSettingsSecurity records via csdk CLI + +## Usage + +```bash +csdk user-settings-security list +csdk user-settings-security list --where.. --orderBy +csdk user-settings-security list --limit 10 --after +csdk user-settings-security find-first --where.. +csdk user-settings-security get --id +csdk user-settings-security create [--backupCodesCount ] [--emailMfaEnabled ] [--mfaEnrolledAt ] [--mfaLastUsedAt ] [--ownerId ] [--smsMfaEnabled ] [--totpEnabled ] +csdk user-settings-security update --id [--backupCodesCount ] [--emailMfaEnabled ] [--mfaEnrolledAt ] [--mfaLastUsedAt ] [--ownerId ] [--smsMfaEnabled ] [--totpEnabled ] +csdk user-settings-security delete --id +``` + +## Examples + +### List userSettingsSecurity records + +```bash +csdk user-settings-security list +``` + +### List userSettingsSecurity records with pagination + +```bash +csdk user-settings-security list --limit 10 --offset 0 +``` + +### List userSettingsSecurity records with cursor pagination + +```bash +csdk user-settings-security list --limit 10 --after +``` + +### Find first matching userSettingsSecurity + +```bash +csdk user-settings-security find-first --where.id.equalTo +``` + +### List userSettingsSecurity records with field selection + +```bash +csdk user-settings-security list --select id,id +``` + +### List userSettingsSecurity records with filtering and ordering + +```bash +csdk user-settings-security list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a userSettingsSecurity + +```bash +csdk user-settings-security create [--backupCodesCount ] [--emailMfaEnabled ] [--mfaEnrolledAt ] [--mfaLastUsedAt ] [--ownerId ] [--smsMfaEnabled ] [--totpEnabled ] +``` + +### Get a userSettingsSecurity by id + +```bash +csdk user-settings-security get --id +``` diff --git a/.agents/skills/cli-compute/SKILL.md b/.agents/skills/cli-compute/SKILL.md index 1523187de2..ff607dea3a 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 119 tables and 60 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 119 tables and 60 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. build) +csdk build list +csdk build get --id +csdk build create -- # Non-interactive mode (skip all prompts, use flags only) -csdk --no-tty db-preset list +csdk --no-tty build 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 build list ``` ### Non-interactive mode (for scripts and CI) ```bash -csdk --no-tty db-preset create -- +csdk --no-tty build create -- ``` ## References @@ -56,6 +56,20 @@ See the `references/` directory for detailed per-entity API documentation: - [context](references/context.md) - [auth](references/auth.md) - [config](references/config.md) +- [embedder](references/embedder.md) +- [build](references/build.md) +- [build-step](references/build-step.md) +- [builder-binding](references/builder-binding.md) +- [content-preset](references/content-preset.md) +- [database-function-graph](references/database-function-graph.md) +- [database-function-graph-execution](references/database-function-graph-execution.md) +- [database-function-graph-execution-node-state](references/database-function-graph-execution-node-state.md) +- [database-function-graph-execution-output](references/database-function-graph-execution-output.md) +- [database-graph-commit](references/database-graph-commit.md) +- [database-graph-get-all-tree-nodes-record](references/database-graph-get-all-tree-nodes-record.md) +- [database-graph-object](references/database-graph-object.md) +- [database-graph-ref](references/database-graph-ref.md) +- [database-graph-store](references/database-graph-store.md) - [db-preset](references/db-preset.md) - [function-api-binding](references/function-api-binding.md) - [function-capability-binding](references/function-capability-binding.md) @@ -74,6 +88,8 @@ See the `references/` directory for detailed per-entity API documentation: - [function-invocation-attempt](references/function-invocation-attempt.md) - [function-invocation](references/function-invocation.md) - [get-all-tree-nodes-record](references/get-all-tree-nodes-record.md) +- [image](references/image.md) +- [image-grant](references/image-grant.md) - [infra-commit](references/infra-commit.md) - [infra-get-all-tree-nodes-record](references/infra-get-all-tree-nodes-record.md) - [infra-object](references/infra-object.md) @@ -82,6 +98,9 @@ See the `references/` directory for detailed per-entity API documentation: - [integration-provider](references/integration-provider.md) - [namespace](references/namespace.md) - [namespace-event](references/namespace-event.md) +- [platform-build](references/platform-build.md) +- [platform-build-step](references/platform-build-step.md) +- [platform-builder-binding](references/platform-builder-binding.md) - [platform-function-api-binding](references/platform-function-api-binding.md) - [platform-function-capability-binding](references/platform-function-capability-binding.md) - [platform-function-definition](references/platform-function-definition.md) @@ -90,18 +109,36 @@ See the `references/` directory for detailed per-entity API documentation: - [platform-function-execution-log](references/platform-function-execution-log.md) - [platform-function-invocation-attempt](references/platform-function-invocation-attempt.md) - [platform-function-invocation](references/platform-function-invocation.md) +- [platform-image](references/platform-image.md) +- [platform-image-grant](references/platform-image-grant.md) - [platform-infra-commit](references/platform-infra-commit.md) - [platform-infra-get-all-tree-nodes-record](references/platform-infra-get-all-tree-nodes-record.md) - [platform-infra-object](references/platform-infra-object.md) - [platform-infra-ref](references/platform-infra-ref.md) - [platform-infra-store](references/platform-infra-store.md) +- [platform-k-8-s-resource-kind](references/platform-k-8-s-resource-kind.md) +- [platform-k-8-s-spec-rule](references/platform-k-8-s-spec-rule.md) - [platform-namespace](references/platform-namespace.md) - [platform-namespace-event](references/platform-namespace-event.md) +- [platform-proposal-comment](references/platform-proposal-comment.md) +- [platform-proposal](references/platform-proposal.md) +- [platform-proposal-file-view](references/platform-proposal-file-view.md) +- [platform-proposal-reaction](references/platform-proposal-reaction.md) +- [platform-proposal-review](references/platform-proposal-review.md) +- [platform-proposals-chunk](references/platform-proposals-chunk.md) +- [platform-registry-binding](references/platform-registry-binding.md) +- [platform-registry](references/platform-registry.md) +- [platform-registry-grant](references/platform-registry-grant.md) +- [platform-repository](references/platform-repository.md) +- [platform-repository-event](references/platform-repository-event.md) +- [platform-repository-required-check](references/platform-repository-required-check.md) +- [platform-repository-workflow](references/platform-repository-workflow.md) - [platform-resource](references/platform-resource.md) - [platform-resource-declared-capacity](references/platform-resource-declared-capacity.md) - [platform-resource-definition](references/platform-resource-definition.md) - [platform-resource-event](references/platform-resource-event.md) - [platform-resource-installation](references/platform-resource-installation.md) +- [platform-resource-observed-storage](references/platform-resource-observed-storage.md) - [platform-resource-status-check](references/platform-resource-status-check.md) - [platform-resource-usage-log](references/platform-resource-usage-log.md) - [platform-resource-usage-summary](references/platform-resource-usage-summary.md) @@ -111,11 +148,25 @@ See the `references/` directory for detailed per-entity API documentation: - [platform-resources-resolved-requirement](references/platform-resources-resolved-requirement.md) - [platform-webhook-endpoint](references/platform-webhook-endpoint.md) - [platform-webhook-event](references/platform-webhook-event.md) +- [proposal-comment](references/proposal-comment.md) +- [proposal](references/proposal.md) +- [proposal-file-view](references/proposal-file-view.md) +- [proposal-reaction](references/proposal-reaction.md) +- [proposal-review](references/proposal-review.md) +- [proposals-chunk](references/proposals-chunk.md) +- [registry-binding](references/registry-binding.md) +- [registry](references/registry.md) +- [registry-grant](references/registry-grant.md) +- [repository](references/repository.md) +- [repository-event](references/repository-event.md) +- [repository-required-check](references/repository-required-check.md) +- [repository-workflow](references/repository-workflow.md) - [resource](references/resource.md) - [resource-declared-capacity](references/resource-declared-capacity.md) - [resource-definition](references/resource-definition.md) - [resource-event](references/resource-event.md) - [resource-installation](references/resource-installation.md) +- [resource-observed-storage](references/resource-observed-storage.md) - [resource-status-check](references/resource-status-check.md) - [resource-usage-log](references/resource-usage-log.md) - [resource-usage-summary](references/resource-usage-summary.md) @@ -125,22 +176,51 @@ See the `references/` directory for detailed per-entity API documentation: - [resources-resolved-requirement](references/resources-resolved-requirement.md) - [webhook-endpoint](references/webhook-endpoint.md) - [webhook-event](references/webhook-event.md) +- [database-read-function-graph](references/database-read-function-graph.md) - [read-function-graph](references/read-function-graph.md) - [add-edge](references/add-edge.md) - [add-edge-and-save](references/add-edge-and-save.md) - [add-node](references/add-node.md) - [add-node-and-save](references/add-node-and-save.md) +- [approve-node](references/approve-node.md) - [copy-graph](references/copy-graph.md) +- [database-add-edge](references/database-add-edge.md) +- [database-add-edge-and-save](references/database-add-edge-and-save.md) +- [database-add-node](references/database-add-node.md) +- [database-add-node-and-save](references/database-add-node-and-save.md) +- [database-approve-node](references/database-approve-node.md) +- [database-copy-graph](references/database-copy-graph.md) +- [database-create-function-graph](references/database-create-function-graph.md) +- [database-graph-init-empty-repo](references/database-graph-init-empty-repo.md) +- [database-graph-insert-node-at-path](references/database-graph-insert-node-at-path.md) +- [database-graph-insert-nodes-at-paths](references/database-graph-insert-nodes-at-paths.md) +- [database-graph-set-and-commit](references/database-graph-set-and-commit.md) +- [database-graph-set-data-at-path](references/database-graph-set-data-at-path.md) +- [database-graph-set-many-and-commit](references/database-graph-set-many-and-commit.md) +- [database-import-definitions](references/database-import-definitions.md) +- [database-import-graph-json](references/database-import-graph-json.md) +- [database-save-graph](references/database-save-graph.md) +- [database-start-execution](references/database-start-execution.md) +- [database-validate-function-graph](references/database-validate-function-graph.md) +- [function-invocations-create-sync](references/function-invocations-create-sync.md) - [import-definitions](references/import-definitions.md) - [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-function-invocations-create-sync](references/platform-function-invocations-create-sync.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 +231,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/approve-node.md b/.agents/skills/cli-compute/references/approve-node.md new file mode 100644 index 0000000000..3416d1dab8 --- /dev/null +++ b/.agents/skills/cli-compute/references/approve-node.md @@ -0,0 +1,19 @@ +# approveNode + + + +Execute the approveNode mutation + +## Usage + +```bash +csdk approve-node --input.approved --input.clientMutationId --input.executionId --input.feedback --input.nodeName +``` + +## Examples + +### Run approveNode + +```bash +csdk approve-node --input.approved --input.clientMutationId --input.executionId --input.feedback --input.nodeName +``` diff --git a/.agents/skills/cli-compute/references/build-step.md b/.agents/skills/cli-compute/references/build-step.md new file mode 100644 index 0000000000..c686890ff1 --- /dev/null +++ b/.agents/skills/cli-compute/references/build-step.md @@ -0,0 +1,68 @@ +# buildStep + + + +CRUD operations for BuildStep records via csdk CLI + +## Usage + +```bash +csdk build-step list +csdk build-step list --where.. --orderBy +csdk build-step list --limit 10 --after +csdk build-step find-first --where.. +csdk build-step get --id +csdk build-step create --buildId --databaseId --name --seq [--createdByPrincipal ] [--exitCode ] [--finishedAt ] [--kind ] [--logBytes ] [--logOffset ] [--parentSeq ] [--recordedAt ] [--startedAt ] [--status ] [--summary ] +csdk build-step update --id [--buildId ] [--createdByPrincipal ] [--databaseId ] [--exitCode ] [--finishedAt ] [--kind ] [--logBytes ] [--logOffset ] [--name ] [--parentSeq ] [--recordedAt ] [--seq ] [--startedAt ] [--status ] [--summary ] +csdk build-step delete --id +``` + +## Examples + +### List buildStep records + +```bash +csdk build-step list +``` + +### List buildStep records with pagination + +```bash +csdk build-step list --limit 10 --offset 0 +``` + +### List buildStep records with cursor pagination + +```bash +csdk build-step list --limit 10 --after +``` + +### Find first matching buildStep + +```bash +csdk build-step find-first --where.id.equalTo +``` + +### List buildStep records with field selection + +```bash +csdk build-step list --select id,id +``` + +### List buildStep records with filtering and ordering + +```bash +csdk build-step list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a buildStep + +```bash +csdk build-step create --buildId --databaseId --name --seq [--createdByPrincipal ] [--exitCode ] [--finishedAt ] [--kind ] [--logBytes ] [--logOffset ] [--parentSeq ] [--recordedAt ] [--startedAt ] [--status ] [--summary ] +``` + +### Get a buildStep by id + +```bash +csdk build-step get --id +``` diff --git a/.agents/skills/cli-compute/references/build.md b/.agents/skills/cli-compute/references/build.md new file mode 100644 index 0000000000..c53dadfffc --- /dev/null +++ b/.agents/skills/cli-compute/references/build.md @@ -0,0 +1,68 @@ +# build + + + +CRUD operations for Build records via csdk CLI + +## Usage + +```bash +csdk build list +csdk build list --where.. --orderBy +csdk build list --limit 10 --after +csdk build find-first --where.. +csdk build get --id +csdk build create --databaseId --repositoryId [--actorId ] [--attempt ] [--commitSha ] [--conclusion ] [--createdByPrincipal ] [--eventId ] [--finishedAt ] [--imageRef ] [--jobId ] [--logs ] [--matrixKey ] [--metadata ] [--proposalId ] [--ref ] [--startedAt ] [--status ] [--updatedByPrincipal ] [--workflowId ] +csdk build update --id [--actorId ] [--attempt ] [--commitSha ] [--conclusion ] [--createdByPrincipal ] [--databaseId ] [--eventId ] [--finishedAt ] [--imageRef ] [--jobId ] [--logs ] [--matrixKey ] [--metadata ] [--proposalId ] [--ref ] [--repositoryId ] [--startedAt ] [--status ] [--updatedByPrincipal ] [--workflowId ] +csdk build delete --id +``` + +## Examples + +### List build records + +```bash +csdk build list +``` + +### List build records with pagination + +```bash +csdk build list --limit 10 --offset 0 +``` + +### List build records with cursor pagination + +```bash +csdk build list --limit 10 --after +``` + +### Find first matching build + +```bash +csdk build find-first --where.id.equalTo +``` + +### List build records with field selection + +```bash +csdk build list --select id,id +``` + +### List build records with filtering and ordering + +```bash +csdk build list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a build + +```bash +csdk build create --databaseId --repositoryId [--actorId ] [--attempt ] [--commitSha ] [--conclusion ] [--createdByPrincipal ] [--eventId ] [--finishedAt ] [--imageRef ] [--jobId ] [--logs ] [--matrixKey ] [--metadata ] [--proposalId ] [--ref ] [--startedAt ] [--status ] [--updatedByPrincipal ] [--workflowId ] +``` + +### Get a build by id + +```bash +csdk build get --id +``` diff --git a/.agents/skills/cli-compute/references/builder-binding.md b/.agents/skills/cli-compute/references/builder-binding.md new file mode 100644 index 0000000000..7c673f87b4 --- /dev/null +++ b/.agents/skills/cli-compute/references/builder-binding.md @@ -0,0 +1,68 @@ +# builderBinding + + + +CRUD operations for BuilderBinding records via csdk CLI + +## Usage + +```bash +csdk builder-binding list +csdk builder-binding list --where.. --orderBy +csdk builder-binding list --limit 10 --after +csdk builder-binding find-first --where.. +csdk builder-binding get --id +csdk builder-binding create --databaseId --installationId --namespaceId [--createdBy ] [--createdByPrincipal ] [--lastError ] [--metadata ] [--observedHost ] [--realm ] [--status ] [--updatedBy ] [--updatedByPrincipal ] +csdk builder-binding update --id [--createdBy ] [--createdByPrincipal ] [--databaseId ] [--installationId ] [--lastError ] [--metadata ] [--namespaceId ] [--observedHost ] [--realm ] [--status ] [--updatedBy ] [--updatedByPrincipal ] +csdk builder-binding delete --id +``` + +## Examples + +### List builderBinding records + +```bash +csdk builder-binding list +``` + +### List builderBinding records with pagination + +```bash +csdk builder-binding list --limit 10 --offset 0 +``` + +### List builderBinding records with cursor pagination + +```bash +csdk builder-binding list --limit 10 --after +``` + +### Find first matching builderBinding + +```bash +csdk builder-binding find-first --where.id.equalTo +``` + +### List builderBinding records with field selection + +```bash +csdk builder-binding list --select id,id +``` + +### List builderBinding records with filtering and ordering + +```bash +csdk builder-binding list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a builderBinding + +```bash +csdk builder-binding create --databaseId --installationId --namespaceId [--createdBy ] [--createdByPrincipal ] [--lastError ] [--metadata ] [--observedHost ] [--realm ] [--status ] [--updatedBy ] [--updatedByPrincipal ] +``` + +### Get a builderBinding by id + +```bash +csdk builder-binding get --id +``` 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/database-add-edge-and-save.md b/.agents/skills/cli-compute/references/database-add-edge-and-save.md new file mode 100644 index 0000000000..9a1038df66 --- /dev/null +++ b/.agents/skills/cli-compute/references/database-add-edge-and-save.md @@ -0,0 +1,19 @@ +# databaseAddEdgeAndSave + + + +Execute the databaseAddEdgeAndSave mutation + +## Usage + +```bash +csdk database-add-edge-and-save --input.clientMutationId --input.dstNode --input.dstPort --input.graphId --input.message --input.srcNode --input.srcPort +``` + +## Examples + +### Run databaseAddEdgeAndSave + +```bash +csdk database-add-edge-and-save --input.clientMutationId --input.dstNode --input.dstPort --input.graphId --input.message --input.srcNode --input.srcPort +``` diff --git a/.agents/skills/cli-compute/references/database-add-edge.md b/.agents/skills/cli-compute/references/database-add-edge.md new file mode 100644 index 0000000000..bb15554a02 --- /dev/null +++ b/.agents/skills/cli-compute/references/database-add-edge.md @@ -0,0 +1,19 @@ +# databaseAddEdge + + + +Execute the databaseAddEdge mutation + +## Usage + +```bash +csdk database-add-edge --input.clientMutationId --input.context --input.databaseId --input.dstNode --input.dstPort --input.graphName --input.rootHash --input.srcNode --input.srcPort +``` + +## Examples + +### Run databaseAddEdge + +```bash +csdk database-add-edge --input.clientMutationId --input.context --input.databaseId --input.dstNode --input.dstPort --input.graphName --input.rootHash --input.srcNode --input.srcPort +``` diff --git a/.agents/skills/cli-compute/references/database-add-node-and-save.md b/.agents/skills/cli-compute/references/database-add-node-and-save.md new file mode 100644 index 0000000000..e0eccbfa21 --- /dev/null +++ b/.agents/skills/cli-compute/references/database-add-node-and-save.md @@ -0,0 +1,19 @@ +# databaseAddNodeAndSave + + + +Execute the databaseAddNodeAndSave mutation + +## Usage + +```bash +csdk database-add-node-and-save --input.clientMutationId --input.graphId --input.message --input.meta --input.nodeName --input.nodeType --input.props +``` + +## Examples + +### Run databaseAddNodeAndSave + +```bash +csdk database-add-node-and-save --input.clientMutationId --input.graphId --input.message --input.meta --input.nodeName --input.nodeType --input.props +``` diff --git a/.agents/skills/cli-compute/references/database-add-node.md b/.agents/skills/cli-compute/references/database-add-node.md new file mode 100644 index 0000000000..29afe56dda --- /dev/null +++ b/.agents/skills/cli-compute/references/database-add-node.md @@ -0,0 +1,19 @@ +# databaseAddNode + + + +Execute the databaseAddNode mutation + +## Usage + +```bash +csdk database-add-node --input.clientMutationId --input.context --input.databaseId --input.graphName --input.meta --input.nodeName --input.nodeType --input.props --input.rootHash +``` + +## Examples + +### Run databaseAddNode + +```bash +csdk database-add-node --input.clientMutationId --input.context --input.databaseId --input.graphName --input.meta --input.nodeName --input.nodeType --input.props --input.rootHash +``` diff --git a/.agents/skills/cli-compute/references/database-approve-node.md b/.agents/skills/cli-compute/references/database-approve-node.md new file mode 100644 index 0000000000..620d184ba9 --- /dev/null +++ b/.agents/skills/cli-compute/references/database-approve-node.md @@ -0,0 +1,19 @@ +# databaseApproveNode + + + +Execute the databaseApproveNode mutation + +## Usage + +```bash +csdk database-approve-node --input.approved --input.clientMutationId --input.executionId --input.feedback --input.nodeName +``` + +## Examples + +### Run databaseApproveNode + +```bash +csdk database-approve-node --input.approved --input.clientMutationId --input.executionId --input.feedback --input.nodeName +``` diff --git a/.agents/skills/cli-compute/references/database-copy-graph.md b/.agents/skills/cli-compute/references/database-copy-graph.md new file mode 100644 index 0000000000..cb213ca585 --- /dev/null +++ b/.agents/skills/cli-compute/references/database-copy-graph.md @@ -0,0 +1,19 @@ +# databaseCopyGraph + + + +Execute the databaseCopyGraph mutation + +## Usage + +```bash +csdk database-copy-graph --input.clientMutationId --input.databaseId --input.graphId --input.name +``` + +## Examples + +### Run databaseCopyGraph + +```bash +csdk database-copy-graph --input.clientMutationId --input.databaseId --input.graphId --input.name +``` diff --git a/.agents/skills/cli-compute/references/database-create-function-graph.md b/.agents/skills/cli-compute/references/database-create-function-graph.md new file mode 100644 index 0000000000..ff9d11dfd1 --- /dev/null +++ b/.agents/skills/cli-compute/references/database-create-function-graph.md @@ -0,0 +1,19 @@ +# databaseCreateFunctionGraph + + + +Execute the databaseCreateFunctionGraph mutation + +## Usage + +```bash +csdk database-create-function-graph --input.clientMutationId --input.context --input.createdBy --input.databaseId --input.definitionsCommitId --input.description --input.name +``` + +## Examples + +### Run databaseCreateFunctionGraph + +```bash +csdk database-create-function-graph --input.clientMutationId --input.context --input.createdBy --input.databaseId --input.definitionsCommitId --input.description --input.name +``` diff --git a/.agents/skills/cli-compute/references/database-function-graph-execution-node-state.md b/.agents/skills/cli-compute/references/database-function-graph-execution-node-state.md new file mode 100644 index 0000000000..2c3c2bde58 --- /dev/null +++ b/.agents/skills/cli-compute/references/database-function-graph-execution-node-state.md @@ -0,0 +1,68 @@ +# databaseFunctionGraphExecutionNodeState + + + +CRUD operations for DatabaseFunctionGraphExecutionNodeState records via csdk CLI + +## Usage + +```bash +csdk database-function-graph-execution-node-state list +csdk database-function-graph-execution-node-state list --where.. --orderBy +csdk database-function-graph-execution-node-state list --limit 10 --after +csdk database-function-graph-execution-node-state find-first --where.. +csdk database-function-graph-execution-node-state get --id +csdk database-function-graph-execution-node-state create --databaseId --executionId --nodeName [--callbackInputs ] [--callbackMeta ] [--callbackTokenHash ] [--completedAt ] [--errorCode ] [--errorMessage ] [--expiryDefaultOutput ] [--expiryEscalatedAt ] [--expiryPolicy ] [--nodePath ] [--outputId ] [--startedAt ] [--status ] [--waitingDeadlineAt ] [--waitingOn ] [--waitingSince ] +csdk database-function-graph-execution-node-state update --id [--callbackInputs ] [--callbackMeta ] [--callbackTokenHash ] [--completedAt ] [--databaseId ] [--errorCode ] [--errorMessage ] [--executionId ] [--expiryDefaultOutput ] [--expiryEscalatedAt ] [--expiryPolicy ] [--nodeName ] [--nodePath ] [--outputId ] [--startedAt ] [--status ] [--waitingDeadlineAt ] [--waitingOn ] [--waitingSince ] +csdk database-function-graph-execution-node-state delete --id +``` + +## Examples + +### List databaseFunctionGraphExecutionNodeState records + +```bash +csdk database-function-graph-execution-node-state list +``` + +### List databaseFunctionGraphExecutionNodeState records with pagination + +```bash +csdk database-function-graph-execution-node-state list --limit 10 --offset 0 +``` + +### List databaseFunctionGraphExecutionNodeState records with cursor pagination + +```bash +csdk database-function-graph-execution-node-state list --limit 10 --after +``` + +### Find first matching databaseFunctionGraphExecutionNodeState + +```bash +csdk database-function-graph-execution-node-state find-first --where.id.equalTo +``` + +### List databaseFunctionGraphExecutionNodeState records with field selection + +```bash +csdk database-function-graph-execution-node-state list --select id,id +``` + +### List databaseFunctionGraphExecutionNodeState records with filtering and ordering + +```bash +csdk database-function-graph-execution-node-state list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a databaseFunctionGraphExecutionNodeState + +```bash +csdk database-function-graph-execution-node-state create --databaseId --executionId --nodeName [--callbackInputs ] [--callbackMeta ] [--callbackTokenHash ] [--completedAt ] [--errorCode ] [--errorMessage ] [--expiryDefaultOutput ] [--expiryEscalatedAt ] [--expiryPolicy ] [--nodePath ] [--outputId ] [--startedAt ] [--status ] [--waitingDeadlineAt ] [--waitingOn ] [--waitingSince ] +``` + +### Get a databaseFunctionGraphExecutionNodeState by id + +```bash +csdk database-function-graph-execution-node-state get --id +``` diff --git a/.agents/skills/cli-compute/references/database-function-graph-execution-output.md b/.agents/skills/cli-compute/references/database-function-graph-execution-output.md new file mode 100644 index 0000000000..61b48719c1 --- /dev/null +++ b/.agents/skills/cli-compute/references/database-function-graph-execution-output.md @@ -0,0 +1,68 @@ +# databaseFunctionGraphExecutionOutput + + + +CRUD operations for DatabaseFunctionGraphExecutionOutput records via csdk CLI + +## Usage + +```bash +csdk database-function-graph-execution-output list +csdk database-function-graph-execution-output list --where.. --orderBy +csdk database-function-graph-execution-output list --limit 10 --after +csdk database-function-graph-execution-output find-first --where.. +csdk database-function-graph-execution-output get --id +csdk database-function-graph-execution-output create --data --databaseId --hash +csdk database-function-graph-execution-output update --id [--data ] [--databaseId ] [--hash ] +csdk database-function-graph-execution-output delete --id +``` + +## Examples + +### List databaseFunctionGraphExecutionOutput records + +```bash +csdk database-function-graph-execution-output list +``` + +### List databaseFunctionGraphExecutionOutput records with pagination + +```bash +csdk database-function-graph-execution-output list --limit 10 --offset 0 +``` + +### List databaseFunctionGraphExecutionOutput records with cursor pagination + +```bash +csdk database-function-graph-execution-output list --limit 10 --after +``` + +### Find first matching databaseFunctionGraphExecutionOutput + +```bash +csdk database-function-graph-execution-output find-first --where.id.equalTo +``` + +### List databaseFunctionGraphExecutionOutput records with field selection + +```bash +csdk database-function-graph-execution-output list --select id,id +``` + +### List databaseFunctionGraphExecutionOutput records with filtering and ordering + +```bash +csdk database-function-graph-execution-output list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a databaseFunctionGraphExecutionOutput + +```bash +csdk database-function-graph-execution-output create --data --databaseId --hash +``` + +### Get a databaseFunctionGraphExecutionOutput by id + +```bash +csdk database-function-graph-execution-output get --id +``` diff --git a/.agents/skills/cli-compute/references/database-function-graph-execution.md b/.agents/skills/cli-compute/references/database-function-graph-execution.md new file mode 100644 index 0000000000..7ad62ffac9 --- /dev/null +++ b/.agents/skills/cli-compute/references/database-function-graph-execution.md @@ -0,0 +1,68 @@ +# databaseFunctionGraphExecution + + + +CRUD operations for DatabaseFunctionGraphExecution records via csdk CLI + +## Usage + +```bash +csdk database-function-graph-execution list +csdk database-function-graph-execution list --where.. --orderBy +csdk database-function-graph-execution list --limit 10 --after +csdk database-function-graph-execution find-first --where.. +csdk database-function-graph-execution get --id +csdk database-function-graph-execution create --databaseId --graphId [--actorId ] [--completedAt ] [--currentWave ] [--definitionsCommitId ] [--entityId ] [--entityType ] [--errorCode ] [--errorMessage ] [--executionPlan ] [--inputPayload ] [--invocationCreatedAt ] [--invocationId ] [--lastProgressAt ] [--maxPendingJobs ] [--maxTicks ] [--nodeOutputs ] [--organizationId ] [--outputNames ] [--outputNode ] [--outputPayload ] [--outputPort ] [--parentExecutionId ] [--parentInvocationId ] [--parentNodeName ] [--principalId ] [--startedAt ] [--status ] [--tickCount ] [--timeoutAt ] +csdk database-function-graph-execution update --id [--actorId ] [--completedAt ] [--currentWave ] [--databaseId ] [--definitionsCommitId ] [--entityId ] [--entityType ] [--errorCode ] [--errorMessage ] [--executionPlan ] [--graphId ] [--inputPayload ] [--invocationCreatedAt ] [--invocationId ] [--lastProgressAt ] [--maxPendingJobs ] [--maxTicks ] [--nodeOutputs ] [--organizationId ] [--outputNames ] [--outputNode ] [--outputPayload ] [--outputPort ] [--parentExecutionId ] [--parentInvocationId ] [--parentNodeName ] [--principalId ] [--startedAt ] [--status ] [--tickCount ] [--timeoutAt ] +csdk database-function-graph-execution delete --id +``` + +## Examples + +### List databaseFunctionGraphExecution records + +```bash +csdk database-function-graph-execution list +``` + +### List databaseFunctionGraphExecution records with pagination + +```bash +csdk database-function-graph-execution list --limit 10 --offset 0 +``` + +### List databaseFunctionGraphExecution records with cursor pagination + +```bash +csdk database-function-graph-execution list --limit 10 --after +``` + +### Find first matching databaseFunctionGraphExecution + +```bash +csdk database-function-graph-execution find-first --where.id.equalTo +``` + +### List databaseFunctionGraphExecution records with field selection + +```bash +csdk database-function-graph-execution list --select id,id +``` + +### List databaseFunctionGraphExecution records with filtering and ordering + +```bash +csdk database-function-graph-execution list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a databaseFunctionGraphExecution + +```bash +csdk database-function-graph-execution create --databaseId --graphId [--actorId ] [--completedAt ] [--currentWave ] [--definitionsCommitId ] [--entityId ] [--entityType ] [--errorCode ] [--errorMessage ] [--executionPlan ] [--inputPayload ] [--invocationCreatedAt ] [--invocationId ] [--lastProgressAt ] [--maxPendingJobs ] [--maxTicks ] [--nodeOutputs ] [--organizationId ] [--outputNames ] [--outputNode ] [--outputPayload ] [--outputPort ] [--parentExecutionId ] [--parentInvocationId ] [--parentNodeName ] [--principalId ] [--startedAt ] [--status ] [--tickCount ] [--timeoutAt ] +``` + +### Get a databaseFunctionGraphExecution by id + +```bash +csdk database-function-graph-execution get --id +``` diff --git a/.agents/skills/cli-compute/references/database-function-graph.md b/.agents/skills/cli-compute/references/database-function-graph.md new file mode 100644 index 0000000000..993a4f19ee --- /dev/null +++ b/.agents/skills/cli-compute/references/database-function-graph.md @@ -0,0 +1,68 @@ +# databaseFunctionGraph + + + +CRUD operations for DatabaseFunctionGraph records via csdk CLI + +## Usage + +```bash +csdk database-function-graph list +csdk database-function-graph list --where.. --orderBy +csdk database-function-graph list --limit 10 --after +csdk database-function-graph find-first --where.. +csdk database-function-graph get --id +csdk database-function-graph create --context --createdBy --databaseId --definitionsCommitId --description --isValid --name --storeId --validationErrors +csdk database-function-graph update --id [--context ] [--createdBy ] [--databaseId ] [--definitionsCommitId ] [--description ] [--isValid ] [--name ] [--storeId ] [--validationErrors ] +csdk database-function-graph delete --id +``` + +## Examples + +### List databaseFunctionGraph records + +```bash +csdk database-function-graph list +``` + +### List databaseFunctionGraph records with pagination + +```bash +csdk database-function-graph list --limit 10 --offset 0 +``` + +### List databaseFunctionGraph records with cursor pagination + +```bash +csdk database-function-graph list --limit 10 --after +``` + +### Find first matching databaseFunctionGraph + +```bash +csdk database-function-graph find-first --where.id.equalTo +``` + +### List databaseFunctionGraph records with field selection + +```bash +csdk database-function-graph list --select id,id +``` + +### List databaseFunctionGraph records with filtering and ordering + +```bash +csdk database-function-graph list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a databaseFunctionGraph + +```bash +csdk database-function-graph create --context --createdBy --databaseId --definitionsCommitId --description --isValid --name --storeId --validationErrors +``` + +### Get a databaseFunctionGraph by id + +```bash +csdk database-function-graph get --id +``` diff --git a/.agents/skills/cli-compute/references/database-graph-commit.md b/.agents/skills/cli-compute/references/database-graph-commit.md new file mode 100644 index 0000000000..04ce4bf454 --- /dev/null +++ b/.agents/skills/cli-compute/references/database-graph-commit.md @@ -0,0 +1,68 @@ +# databaseGraphCommit + + + +CRUD operations for DatabaseGraphCommit records via csdk CLI + +## Usage + +```bash +csdk database-graph-commit list +csdk database-graph-commit list --where.. --orderBy +csdk database-graph-commit list --limit 10 --after +csdk database-graph-commit find-first --where.. +csdk database-graph-commit get --id +csdk database-graph-commit create --databaseId --storeId [--authorId ] [--committerId ] [--date ] [--message ] [--parentIds ] [--treeId ] +csdk database-graph-commit update --id [--authorId ] [--committerId ] [--databaseId ] [--date ] [--message ] [--parentIds ] [--storeId ] [--treeId ] +csdk database-graph-commit delete --id +``` + +## Examples + +### List databaseGraphCommit records + +```bash +csdk database-graph-commit list +``` + +### List databaseGraphCommit records with pagination + +```bash +csdk database-graph-commit list --limit 10 --offset 0 +``` + +### List databaseGraphCommit records with cursor pagination + +```bash +csdk database-graph-commit list --limit 10 --after +``` + +### Find first matching databaseGraphCommit + +```bash +csdk database-graph-commit find-first --where.id.equalTo +``` + +### List databaseGraphCommit records with field selection + +```bash +csdk database-graph-commit list --select id,id +``` + +### List databaseGraphCommit records with filtering and ordering + +```bash +csdk database-graph-commit list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a databaseGraphCommit + +```bash +csdk database-graph-commit create --databaseId --storeId [--authorId ] [--committerId ] [--date ] [--message ] [--parentIds ] [--treeId ] +``` + +### Get a databaseGraphCommit by id + +```bash +csdk database-graph-commit get --id +``` diff --git a/.agents/skills/cli-compute/references/database-graph-get-all-tree-nodes-record.md b/.agents/skills/cli-compute/references/database-graph-get-all-tree-nodes-record.md new file mode 100644 index 0000000000..e8a15fc597 --- /dev/null +++ b/.agents/skills/cli-compute/references/database-graph-get-all-tree-nodes-record.md @@ -0,0 +1,68 @@ +# databaseGraphGetAllTreeNodesRecord + + + +CRUD operations for DatabaseGraphGetAllTreeNodesRecord records via csdk CLI + +## Usage + +```bash +csdk database-graph-get-all-tree-nodes-record list +csdk database-graph-get-all-tree-nodes-record list --where.. --orderBy +csdk database-graph-get-all-tree-nodes-record list --limit 10 --after +csdk database-graph-get-all-tree-nodes-record find-first --where.. +csdk database-graph-get-all-tree-nodes-record get --id +csdk database-graph-get-all-tree-nodes-record create --data --path +csdk database-graph-get-all-tree-nodes-record update --id [--data ] [--path ] +csdk database-graph-get-all-tree-nodes-record delete --id +``` + +## Examples + +### List databaseGraphGetAllTreeNodesRecord records + +```bash +csdk database-graph-get-all-tree-nodes-record list +``` + +### List databaseGraphGetAllTreeNodesRecord records with pagination + +```bash +csdk database-graph-get-all-tree-nodes-record list --limit 10 --offset 0 +``` + +### List databaseGraphGetAllTreeNodesRecord records with cursor pagination + +```bash +csdk database-graph-get-all-tree-nodes-record list --limit 10 --after +``` + +### Find first matching databaseGraphGetAllTreeNodesRecord + +```bash +csdk database-graph-get-all-tree-nodes-record find-first --where.id.equalTo +``` + +### List databaseGraphGetAllTreeNodesRecord records with field selection + +```bash +csdk database-graph-get-all-tree-nodes-record list --select id,id +``` + +### List databaseGraphGetAllTreeNodesRecord records with filtering and ordering + +```bash +csdk database-graph-get-all-tree-nodes-record list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a databaseGraphGetAllTreeNodesRecord + +```bash +csdk database-graph-get-all-tree-nodes-record create --data --path +``` + +### Get a databaseGraphGetAllTreeNodesRecord by id + +```bash +csdk database-graph-get-all-tree-nodes-record get --id +``` diff --git a/.agents/skills/cli-compute/references/database-graph-init-empty-repo.md b/.agents/skills/cli-compute/references/database-graph-init-empty-repo.md new file mode 100644 index 0000000000..7786696c95 --- /dev/null +++ b/.agents/skills/cli-compute/references/database-graph-init-empty-repo.md @@ -0,0 +1,19 @@ +# databaseGraphInitEmptyRepo + + + +Execute the databaseGraphInitEmptyRepo mutation + +## Usage + +```bash +csdk database-graph-init-empty-repo --input.clientMutationId --input.sId --input.storeId +``` + +## Examples + +### Run databaseGraphInitEmptyRepo + +```bash +csdk database-graph-init-empty-repo --input.clientMutationId --input.sId --input.storeId +``` diff --git a/.agents/skills/cli-compute/references/database-graph-insert-node-at-path.md b/.agents/skills/cli-compute/references/database-graph-insert-node-at-path.md new file mode 100644 index 0000000000..cc0281b0b7 --- /dev/null +++ b/.agents/skills/cli-compute/references/database-graph-insert-node-at-path.md @@ -0,0 +1,19 @@ +# databaseGraphInsertNodeAtPath + + + +Execute the databaseGraphInsertNodeAtPath mutation + +## Usage + +```bash +csdk database-graph-insert-node-at-path --input.clientMutationId --input.data --input.kids --input.ktree --input.path --input.root --input.sId +``` + +## Examples + +### Run databaseGraphInsertNodeAtPath + +```bash +csdk database-graph-insert-node-at-path --input.clientMutationId --input.data --input.kids --input.ktree --input.path --input.root --input.sId +``` diff --git a/.agents/skills/cli-compute/references/database-graph-insert-nodes-at-paths.md b/.agents/skills/cli-compute/references/database-graph-insert-nodes-at-paths.md new file mode 100644 index 0000000000..9ee8158a9a --- /dev/null +++ b/.agents/skills/cli-compute/references/database-graph-insert-nodes-at-paths.md @@ -0,0 +1,19 @@ +# databaseGraphInsertNodesAtPaths + + + +Execute the databaseGraphInsertNodesAtPaths mutation + +## Usage + +```bash +csdk database-graph-insert-nodes-at-paths --input.clientMutationId --input.datas --input.kidsList --input.ktreeList --input.paths --input.root --input.sId +``` + +## Examples + +### Run databaseGraphInsertNodesAtPaths + +```bash +csdk database-graph-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/database-graph-object.md b/.agents/skills/cli-compute/references/database-graph-object.md new file mode 100644 index 0000000000..ad75cbeddf --- /dev/null +++ b/.agents/skills/cli-compute/references/database-graph-object.md @@ -0,0 +1,68 @@ +# databaseGraphObject + + + +CRUD operations for DatabaseGraphObject records via csdk CLI + +## Usage + +```bash +csdk database-graph-object list +csdk database-graph-object list --where.. --orderBy +csdk database-graph-object list --limit 10 --after +csdk database-graph-object find-first --where.. +csdk database-graph-object get --id +csdk database-graph-object create --databaseId [--data ] [--kids ] [--ktree ] +csdk database-graph-object update --id [--data ] [--databaseId ] [--kids ] [--ktree ] +csdk database-graph-object delete --id +``` + +## Examples + +### List databaseGraphObject records + +```bash +csdk database-graph-object list +``` + +### List databaseGraphObject records with pagination + +```bash +csdk database-graph-object list --limit 10 --offset 0 +``` + +### List databaseGraphObject records with cursor pagination + +```bash +csdk database-graph-object list --limit 10 --after +``` + +### Find first matching databaseGraphObject + +```bash +csdk database-graph-object find-first --where.id.equalTo +``` + +### List databaseGraphObject records with field selection + +```bash +csdk database-graph-object list --select id,id +``` + +### List databaseGraphObject records with filtering and ordering + +```bash +csdk database-graph-object list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a databaseGraphObject + +```bash +csdk database-graph-object create --databaseId [--data ] [--kids ] [--ktree ] +``` + +### Get a databaseGraphObject by id + +```bash +csdk database-graph-object get --id +``` diff --git a/.agents/skills/cli-compute/references/database-graph-ref.md b/.agents/skills/cli-compute/references/database-graph-ref.md new file mode 100644 index 0000000000..ca6125ce3c --- /dev/null +++ b/.agents/skills/cli-compute/references/database-graph-ref.md @@ -0,0 +1,68 @@ +# databaseGraphRef + + + +CRUD operations for DatabaseGraphRef records via csdk CLI + +## Usage + +```bash +csdk database-graph-ref list +csdk database-graph-ref list --where.. --orderBy +csdk database-graph-ref list --limit 10 --after +csdk database-graph-ref find-first --where.. +csdk database-graph-ref get --id +csdk database-graph-ref create --databaseId --name --storeId [--commitId ] +csdk database-graph-ref update --id [--commitId ] [--databaseId ] [--name ] [--storeId ] +csdk database-graph-ref delete --id +``` + +## Examples + +### List databaseGraphRef records + +```bash +csdk database-graph-ref list +``` + +### List databaseGraphRef records with pagination + +```bash +csdk database-graph-ref list --limit 10 --offset 0 +``` + +### List databaseGraphRef records with cursor pagination + +```bash +csdk database-graph-ref list --limit 10 --after +``` + +### Find first matching databaseGraphRef + +```bash +csdk database-graph-ref find-first --where.id.equalTo +``` + +### List databaseGraphRef records with field selection + +```bash +csdk database-graph-ref list --select id,id +``` + +### List databaseGraphRef records with filtering and ordering + +```bash +csdk database-graph-ref list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a databaseGraphRef + +```bash +csdk database-graph-ref create --databaseId --name --storeId [--commitId ] +``` + +### Get a databaseGraphRef by id + +```bash +csdk database-graph-ref get --id +``` diff --git a/.agents/skills/cli-compute/references/database-graph-set-and-commit.md b/.agents/skills/cli-compute/references/database-graph-set-and-commit.md new file mode 100644 index 0000000000..8bb550c6f4 --- /dev/null +++ b/.agents/skills/cli-compute/references/database-graph-set-and-commit.md @@ -0,0 +1,19 @@ +# databaseGraphSetAndCommit + + + +Execute the databaseGraphSetAndCommit mutation + +## Usage + +```bash +csdk database-graph-set-and-commit --input.clientMutationId --input.data --input.kids --input.ktree --input.message --input.path --input.refname --input.sId --input.storeId +``` + +## Examples + +### Run databaseGraphSetAndCommit + +```bash +csdk database-graph-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/database-graph-set-data-at-path.md b/.agents/skills/cli-compute/references/database-graph-set-data-at-path.md new file mode 100644 index 0000000000..9c2359fd07 --- /dev/null +++ b/.agents/skills/cli-compute/references/database-graph-set-data-at-path.md @@ -0,0 +1,19 @@ +# databaseGraphSetDataAtPath + + + +Execute the databaseGraphSetDataAtPath mutation + +## Usage + +```bash +csdk database-graph-set-data-at-path --input.clientMutationId --input.data --input.path --input.root --input.sId +``` + +## Examples + +### Run databaseGraphSetDataAtPath + +```bash +csdk database-graph-set-data-at-path --input.clientMutationId --input.data --input.path --input.root --input.sId +``` diff --git a/.agents/skills/cli-compute/references/database-graph-set-many-and-commit.md b/.agents/skills/cli-compute/references/database-graph-set-many-and-commit.md new file mode 100644 index 0000000000..f71b6ea036 --- /dev/null +++ b/.agents/skills/cli-compute/references/database-graph-set-many-and-commit.md @@ -0,0 +1,19 @@ +# databaseGraphSetManyAndCommit + + + +Execute the databaseGraphSetManyAndCommit mutation + +## Usage + +```bash +csdk database-graph-set-many-and-commit --input.clientMutationId --input.entries --input.message --input.refname --input.sId --input.storeId +``` + +## Examples + +### Run databaseGraphSetManyAndCommit + +```bash +csdk database-graph-set-many-and-commit --input.clientMutationId --input.entries --input.message --input.refname --input.sId --input.storeId +``` diff --git a/.agents/skills/cli-compute/references/database-graph-store.md b/.agents/skills/cli-compute/references/database-graph-store.md new file mode 100644 index 0000000000..aa7f86c7a3 --- /dev/null +++ b/.agents/skills/cli-compute/references/database-graph-store.md @@ -0,0 +1,68 @@ +# databaseGraphStore + + + +CRUD operations for DatabaseGraphStore records via csdk CLI + +## Usage + +```bash +csdk database-graph-store list +csdk database-graph-store list --where.. --orderBy +csdk database-graph-store list --limit 10 --after +csdk database-graph-store find-first --where.. +csdk database-graph-store get --id +csdk database-graph-store create --databaseId --name [--hash ] +csdk database-graph-store update --id [--databaseId ] [--hash ] [--name ] +csdk database-graph-store delete --id +``` + +## Examples + +### List databaseGraphStore records + +```bash +csdk database-graph-store list +``` + +### List databaseGraphStore records with pagination + +```bash +csdk database-graph-store list --limit 10 --offset 0 +``` + +### List databaseGraphStore records with cursor pagination + +```bash +csdk database-graph-store list --limit 10 --after +``` + +### Find first matching databaseGraphStore + +```bash +csdk database-graph-store find-first --where.id.equalTo +``` + +### List databaseGraphStore records with field selection + +```bash +csdk database-graph-store list --select id,id +``` + +### List databaseGraphStore records with filtering and ordering + +```bash +csdk database-graph-store list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a databaseGraphStore + +```bash +csdk database-graph-store create --databaseId --name [--hash ] +``` + +### Get a databaseGraphStore by id + +```bash +csdk database-graph-store get --id +``` diff --git a/.agents/skills/cli-compute/references/database-import-definitions.md b/.agents/skills/cli-compute/references/database-import-definitions.md new file mode 100644 index 0000000000..77bb50e252 --- /dev/null +++ b/.agents/skills/cli-compute/references/database-import-definitions.md @@ -0,0 +1,19 @@ +# databaseImportDefinitions + + + +Execute the databaseImportDefinitions mutation + +## Usage + +```bash +csdk database-import-definitions --input.clientMutationId --input.contexts --input.graphId --input.sourceCommitId --input.sourceScopeId +``` + +## Examples + +### Run databaseImportDefinitions + +```bash +csdk database-import-definitions --input.clientMutationId --input.contexts --input.graphId --input.sourceCommitId --input.sourceScopeId +``` diff --git a/.agents/skills/cli-compute/references/database-import-graph-json.md b/.agents/skills/cli-compute/references/database-import-graph-json.md new file mode 100644 index 0000000000..e35556e764 --- /dev/null +++ b/.agents/skills/cli-compute/references/database-import-graph-json.md @@ -0,0 +1,19 @@ +# databaseImportGraphJson + + + +Execute the databaseImportGraphJson mutation + +## Usage + +```bash +csdk database-import-graph-json --input.clientMutationId --input.context --input.createdBy --input.databaseId --input.definitionsCommitId --input.description --input.graphJson --input.name +``` + +## Examples + +### Run databaseImportGraphJson + +```bash +csdk database-import-graph-json --input.clientMutationId --input.context --input.createdBy --input.databaseId --input.definitionsCommitId --input.description --input.graphJson --input.name +``` diff --git a/.agents/skills/cli-compute/references/database-read-function-graph.md b/.agents/skills/cli-compute/references/database-read-function-graph.md new file mode 100644 index 0000000000..be88488c7f --- /dev/null +++ b/.agents/skills/cli-compute/references/database-read-function-graph.md @@ -0,0 +1,19 @@ +# databaseReadFunctionGraph + + + +Execute the databaseReadFunctionGraph query + +## Usage + +```bash +csdk database-read-function-graph --graphId +``` + +## Examples + +### Run databaseReadFunctionGraph + +```bash +csdk database-read-function-graph --graphId +``` diff --git a/.agents/skills/cli-compute/references/database-save-graph.md b/.agents/skills/cli-compute/references/database-save-graph.md new file mode 100644 index 0000000000..20bb761198 --- /dev/null +++ b/.agents/skills/cli-compute/references/database-save-graph.md @@ -0,0 +1,19 @@ +# databaseSaveGraph + + + +Execute the databaseSaveGraph mutation + +## Usage + +```bash +csdk database-save-graph --input.clientMutationId --input.graphId --input.message --input.rootHash +``` + +## Examples + +### Run databaseSaveGraph + +```bash +csdk database-save-graph --input.clientMutationId --input.graphId --input.message --input.rootHash +``` diff --git a/.agents/skills/cli-compute/references/database-start-execution.md b/.agents/skills/cli-compute/references/database-start-execution.md new file mode 100644 index 0000000000..d91a57244c --- /dev/null +++ b/.agents/skills/cli-compute/references/database-start-execution.md @@ -0,0 +1,19 @@ +# databaseStartExecution + + + +Execute the databaseStartExecution mutation + +## Usage + +```bash +csdk database-start-execution --input.clientMutationId --input.graphId --input.inputPayload --input.maxPendingJobs --input.maxTicks --input.outputNames --input.outputNode --input.outputPort --input.parentExecutionId --input.parentNodeName --input.timeoutInterval +``` + +## Examples + +### Run databaseStartExecution + +```bash +csdk database-start-execution --input.clientMutationId --input.graphId --input.inputPayload --input.maxPendingJobs --input.maxTicks --input.outputNames --input.outputNode --input.outputPort --input.parentExecutionId --input.parentNodeName --input.timeoutInterval +``` diff --git a/.agents/skills/cli-compute/references/database-validate-function-graph.md b/.agents/skills/cli-compute/references/database-validate-function-graph.md new file mode 100644 index 0000000000..f371809d0e --- /dev/null +++ b/.agents/skills/cli-compute/references/database-validate-function-graph.md @@ -0,0 +1,19 @@ +# databaseValidateFunctionGraph + + + +Execute the databaseValidateFunctionGraph mutation + +## Usage + +```bash +csdk database-validate-function-graph --input.clientMutationId --input.graphId +``` + +## Examples + +### Run databaseValidateFunctionGraph + +```bash +csdk database-validate-function-graph --input.clientMutationId --input.graphId +``` diff --git a/.agents/skills/cli-compute/references/embedder.md b/.agents/skills/cli-compute/references/embedder.md new file mode 100644 index 0000000000..56524f9247 --- /dev/null +++ b/.agents/skills/cli-compute/references/embedder.md @@ -0,0 +1,52 @@ +# Embedder Configuration + + + +Configure text-to-vector embedding for `--auto-embed` support in csdk. + +When an embedder is configured, you can pass plain text to vector fields and the CLI will automatically convert it to an embedding vector. + +**Supported providers:** ollama, openai + +**Configuration methods:** appstash config (persisted per-context) or environment variables + +## Usage + +```bash +# Configure via appstash config (persisted per-context) +csdk config set embedder.provider +csdk config set embedder.model +csdk config set embedder.baseUrl + +# Or configure via environment variables +EMBEDDER_PROVIDER= EMBEDDER_MODEL= EMBEDDER_BASE_URL= csdk +``` + +## Examples + +### Ollama with nomic-embed-text (open-source, local) + +```bash +# Start Ollama locally and pull the model +ollama pull nomic-embed-text + +# Register the embedder +csdk config set embedder.provider ollama +csdk config set embedder.model nomic-embed-text +csdk config set embedder.baseUrl http://localhost:11434 + +# Now use --auto-embed with any vector field +csdk build search "my query" --auto-embed +``` + +### OpenAI with an API key + +```bash +# Register the embedder +csdk config set embedder.provider openai +csdk config set embedder.model text-embedding-3-small +csdk config set embedder.apiKey sk-proj-...your-api-key + +# Or use environment variables +EMBEDDER_PROVIDER=openai EMBEDDER_MODEL=text-embedding-3-small EMBEDDER_API_KEY=sk-proj-...your-api-key csdk build search "my query" --auto-embed +``` diff --git a/.agents/skills/cli-compute/references/function-definition.md b/.agents/skills/cli-compute/references/function-definition.md index 42f8c39b15..1ca2ccbfcf 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 ] [--anonymousCallable ] [--concurrency ] [--createdByPrincipal ] [--description ] [--fnCategory ] [--functionColumns ] [--graphId ] [--icon ] [--image ] [--inputs ] [--integrations ] [--isPublished ] [--maxAttempts ] [--moduleTable ] [--outputs ] [--payloadArgs ] [--priority ] [--props ] [--protected ] [--publishedAt ] [--queueName ] [--requiredBuckets ] [--requiredCapabilities ] [--requiredConfigs ] [--requiredModels ] [--requiredModules ] [--requiredSecrets ] [--resources ] [--runtime ] [--scaleMax ] [--scaleMin ] [--targetFunction ] [--targetSchema ] [--timeoutSeconds ] [--updatedByPrincipal ] [--volatile ] +csdk function-definition update --id [--accessChannels ] [--anonymousCallable ] [--category ] [--concurrency ] [--createdByPrincipal ] [--databaseId ] [--description ] [--fnCategory ] [--functionColumns ] [--graphId ] [--icon ] [--image ] [--inputs ] [--integrations ] [--isPublished ] [--maxAttempts ] [--moduleTable ] [--name ] [--outputs ] [--payloadArgs ] [--priority ] [--props ] [--protected ] [--publishedAt ] [--queueName ] [--requiredBuckets ] [--requiredCapabilities ] [--requiredConfigs ] [--requiredModels ] [--requiredModules ] [--requiredSecrets ] [--resources ] [--runtime ] [--scaleMax ] [--scaleMin ] [--targetFunction ] [--targetSchema ] [--timeoutSeconds ] [--updatedByPrincipal ] [--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 ] [--anonymousCallable ] [--concurrency ] [--createdByPrincipal ] [--description ] [--fnCategory ] [--functionColumns ] [--graphId ] [--icon ] [--image ] [--inputs ] [--integrations ] [--isPublished ] [--maxAttempts ] [--moduleTable ] [--outputs ] [--payloadArgs ] [--priority ] [--props ] [--protected ] [--publishedAt ] [--queueName ] [--requiredBuckets ] [--requiredCapabilities ] [--requiredConfigs ] [--requiredModels ] [--requiredModules ] [--requiredSecrets ] [--resources ] [--runtime ] [--scaleMax ] [--scaleMin ] [--targetFunction ] [--targetSchema ] [--timeoutSeconds ] [--updatedByPrincipal ] [--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..39facc99db 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 ] [--createdByPrincipal ] [--errorCount ] [--handlerName ] [--imageVersion ] [--labels ] [--lastError ] [--lastErrorAt ] [--realm ] [--resources ] [--revision ] [--scaleMax ] [--scaleMin ] [--serviceName ] [--serviceUrl ] [--status ] [--timeoutSeconds ] [--updatedByPrincipal ] +csdk function-deployment update --id [--annotations ] [--concurrency ] [--createdByPrincipal ] [--databaseId ] [--errorCount ] [--handlerName ] [--image ] [--imageVersion ] [--labels ] [--lastError ] [--lastErrorAt ] [--namespaceId ] [--realm ] [--resources ] [--revision ] [--scaleMax ] [--scaleMin ] [--serviceName ] [--serviceUrl ] [--status ] [--timeoutSeconds ] [--updatedByPrincipal ] 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 ] [--createdByPrincipal ] [--errorCount ] [--handlerName ] [--imageVersion ] [--labels ] [--lastError ] [--lastErrorAt ] [--realm ] [--resources ] [--revision ] [--scaleMax ] [--scaleMin ] [--serviceName ] [--serviceUrl ] [--status ] [--timeoutSeconds ] [--updatedByPrincipal ] ``` ### Get a functionDeployment by id diff --git a/.agents/skills/cli-compute/references/function-graph-execution-node-state.md b/.agents/skills/cli-compute/references/function-graph-execution-node-state.md index 0c3fd235d9..7168fae2ce 100644 --- a/.agents/skills/cli-compute/references/function-graph-execution-node-state.md +++ b/.agents/skills/cli-compute/references/function-graph-execution-node-state.md @@ -12,8 +12,8 @@ csdk function-graph-execution-node-state list --where.. --ord csdk function-graph-execution-node-state list --limit 10 --after csdk function-graph-execution-node-state find-first --where.. csdk function-graph-execution-node-state get --id -csdk function-graph-execution-node-state create --executionId --nodeName --scopeId [--callbackInputs ] [--callbackMeta ] [--callbackTokenHash ] [--completedAt ] [--errorCode ] [--errorMessage ] [--nodePath ] [--outputId ] [--startedAt ] [--status ] -csdk function-graph-execution-node-state update --id [--callbackInputs ] [--callbackMeta ] [--callbackTokenHash ] [--completedAt ] [--errorCode ] [--errorMessage ] [--executionId ] [--nodeName ] [--nodePath ] [--outputId ] [--scopeId ] [--startedAt ] [--status ] +csdk function-graph-execution-node-state create --executionId --nodeName --scopeId [--callbackInputs ] [--callbackMeta ] [--callbackTokenHash ] [--completedAt ] [--errorCode ] [--errorMessage ] [--expiryDefaultOutput ] [--expiryEscalatedAt ] [--expiryPolicy ] [--nodePath ] [--outputId ] [--startedAt ] [--status ] [--waitingDeadlineAt ] [--waitingOn ] [--waitingSince ] +csdk function-graph-execution-node-state update --id [--callbackInputs ] [--callbackMeta ] [--callbackTokenHash ] [--completedAt ] [--errorCode ] [--errorMessage ] [--executionId ] [--expiryDefaultOutput ] [--expiryEscalatedAt ] [--expiryPolicy ] [--nodeName ] [--nodePath ] [--outputId ] [--scopeId ] [--startedAt ] [--status ] [--waitingDeadlineAt ] [--waitingOn ] [--waitingSince ] csdk function-graph-execution-node-state delete --id ``` @@ -58,7 +58,7 @@ csdk function-graph-execution-node-state list --where.id.equalTo --order ### Create a functionGraphExecutionNodeState ```bash -csdk function-graph-execution-node-state create --executionId --nodeName --scopeId [--callbackInputs ] [--callbackMeta ] [--callbackTokenHash ] [--completedAt ] [--errorCode ] [--errorMessage ] [--nodePath ] [--outputId ] [--startedAt ] [--status ] +csdk function-graph-execution-node-state create --executionId --nodeName --scopeId [--callbackInputs ] [--callbackMeta ] [--callbackTokenHash ] [--completedAt ] [--errorCode ] [--errorMessage ] [--expiryDefaultOutput ] [--expiryEscalatedAt ] [--expiryPolicy ] [--nodePath ] [--outputId ] [--startedAt ] [--status ] [--waitingDeadlineAt ] [--waitingOn ] [--waitingSince ] ``` ### Get a functionGraphExecutionNodeState by id diff --git a/.agents/skills/cli-compute/references/function-invocation.md b/.agents/skills/cli-compute/references/function-invocation.md index 920210cca9..453b6af02d 100644 --- a/.agents/skills/cli-compute/references/function-invocation.md +++ b/.agents/skills/cli-compute/references/function-invocation.md @@ -12,8 +12,8 @@ csdk function-invocation list --where.. --orderBy csdk function-invocation list --limit 10 --after csdk function-invocation find-first --where.. csdk function-invocation get --id -csdk function-invocation create --databaseId --taskIdentifier [--actorId ] [--apiBindingId ] [--channel ] [--completedAt ] [--definitionScope ] [--durationMs ] [--error ] [--functionDefinitionId ] [--graphExecutionId ] [--jobId ] [--parentInvocationId ] [--payload ] [--provenance ] [--result ] [--startedAt ] [--status ] -csdk function-invocation update --id [--actorId ] [--apiBindingId ] [--channel ] [--completedAt ] [--databaseId ] [--definitionScope ] [--durationMs ] [--error ] [--functionDefinitionId ] [--graphExecutionId ] [--jobId ] [--parentInvocationId ] [--payload ] [--provenance ] [--result ] [--startedAt ] [--status ] [--taskIdentifier ] +csdk function-invocation create --channel --databaseId --taskIdentifier [--actorId ] [--apiBindingId ] [--completedAt ] [--createdByPrincipal ] [--definitionScope ] [--durationMs ] [--entityId ] [--entityType ] [--error ] [--functionDefinitionId ] [--graphExecutionId ] [--jobId ] [--organizationId ] [--parentInvocationId ] [--payload ] [--principalId ] [--provenance ] [--result ] [--startedAt ] [--status ] +csdk function-invocation update --id [--actorId ] [--apiBindingId ] [--channel ] [--completedAt ] [--createdByPrincipal ] [--databaseId ] [--definitionScope ] [--durationMs ] [--entityId ] [--entityType ] [--error ] [--functionDefinitionId ] [--graphExecutionId ] [--jobId ] [--organizationId ] [--parentInvocationId ] [--payload ] [--principalId ] [--provenance ] [--result ] [--startedAt ] [--status ] [--taskIdentifier ] csdk function-invocation delete --id ``` @@ -58,7 +58,7 @@ csdk function-invocation list --where.id.equalTo --orderBy ID_ASC ### Create a functionInvocation ```bash -csdk function-invocation create --databaseId --taskIdentifier [--actorId ] [--apiBindingId ] [--channel ] [--completedAt ] [--definitionScope ] [--durationMs ] [--error ] [--functionDefinitionId ] [--graphExecutionId ] [--jobId ] [--parentInvocationId ] [--payload ] [--provenance ] [--result ] [--startedAt ] [--status ] +csdk function-invocation create --channel --databaseId --taskIdentifier [--actorId ] [--apiBindingId ] [--completedAt ] [--createdByPrincipal ] [--definitionScope ] [--durationMs ] [--entityId ] [--entityType ] [--error ] [--functionDefinitionId ] [--graphExecutionId ] [--jobId ] [--organizationId ] [--parentInvocationId ] [--payload ] [--principalId ] [--provenance ] [--result ] [--startedAt ] [--status ] ``` ### Get a functionInvocation by id diff --git a/.agents/skills/cli-compute/references/function-invocations-create-sync.md b/.agents/skills/cli-compute/references/function-invocations-create-sync.md new file mode 100644 index 0000000000..946b1a9903 --- /dev/null +++ b/.agents/skills/cli-compute/references/function-invocations-create-sync.md @@ -0,0 +1,19 @@ +# functionInvocationsCreateSync + + + +Execute the functionInvocationsCreateSync mutation + +## Usage + +```bash +csdk function-invocations-create-sync --input.clientMutationId --input.entityId --input.payload --input.provenance --input.routeBindingId --input.taskIdentifier +``` + +## Examples + +### Run functionInvocationsCreateSync + +```bash +csdk function-invocations-create-sync --input.clientMutationId --input.entityId --input.payload --input.provenance --input.routeBindingId --input.taskIdentifier +``` diff --git a/.agents/skills/cli-compute/references/image-grant.md b/.agents/skills/cli-compute/references/image-grant.md new file mode 100644 index 0000000000..c22c3ee27c --- /dev/null +++ b/.agents/skills/cli-compute/references/image-grant.md @@ -0,0 +1,68 @@ +# imageGrant + + + +CRUD operations for ImageGrant records via csdk CLI + +## Usage + +```bash +csdk image-grant list +csdk image-grant list --where.. --orderBy +csdk image-grant list --limit 10 --after +csdk image-grant find-first --where.. +csdk image-grant get --id +csdk image-grant create --databaseId --granteeKey --granteeScope --imageId [--actions ] [--createdByPrincipal ] [--expiresAt ] [--grantedBy ] [--updatedByPrincipal ] +csdk image-grant update --id [--actions ] [--createdByPrincipal ] [--databaseId ] [--expiresAt ] [--grantedBy ] [--granteeKey ] [--granteeScope ] [--imageId ] [--updatedByPrincipal ] +csdk image-grant delete --id +``` + +## Examples + +### List imageGrant records + +```bash +csdk image-grant list +``` + +### List imageGrant records with pagination + +```bash +csdk image-grant list --limit 10 --offset 0 +``` + +### List imageGrant records with cursor pagination + +```bash +csdk image-grant list --limit 10 --after +``` + +### Find first matching imageGrant + +```bash +csdk image-grant find-first --where.id.equalTo +``` + +### List imageGrant records with field selection + +```bash +csdk image-grant list --select id,id +``` + +### List imageGrant records with filtering and ordering + +```bash +csdk image-grant list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a imageGrant + +```bash +csdk image-grant create --databaseId --granteeKey --granteeScope --imageId [--actions ] [--createdByPrincipal ] [--expiresAt ] [--grantedBy ] [--updatedByPrincipal ] +``` + +### Get a imageGrant by id + +```bash +csdk image-grant get --id +``` diff --git a/.agents/skills/cli-compute/references/image.md b/.agents/skills/cli-compute/references/image.md new file mode 100644 index 0000000000..f4c7c50b6a --- /dev/null +++ b/.agents/skills/cli-compute/references/image.md @@ -0,0 +1,68 @@ +# image + + + +CRUD operations for Image records via csdk CLI + +## Usage + +```bash +csdk image list +csdk image list --where.. --orderBy +csdk image list --limit 10 --after +csdk image find-first --where.. +csdk image get --id +csdk image create --databaseId --name --repository [--createdByPrincipal ] [--description ] [--digest ] [--expiresAt ] [--isPublished ] [--labels ] [--metadata ] [--ownerId ] [--platformOnly ] [--registryHost ] [--runtime ] [--tag ] [--updatedByPrincipal ] +csdk image update --id [--createdByPrincipal ] [--databaseId ] [--description ] [--digest ] [--expiresAt ] [--isPublished ] [--labels ] [--metadata ] [--name ] [--ownerId ] [--platformOnly ] [--registryHost ] [--repository ] [--runtime ] [--tag ] [--updatedByPrincipal ] +csdk image delete --id +``` + +## Examples + +### List image records + +```bash +csdk image list +``` + +### List image records with pagination + +```bash +csdk image list --limit 10 --offset 0 +``` + +### List image records with cursor pagination + +```bash +csdk image list --limit 10 --after +``` + +### Find first matching image + +```bash +csdk image find-first --where.id.equalTo +``` + +### List image records with field selection + +```bash +csdk image list --select id,id +``` + +### List image records with filtering and ordering + +```bash +csdk image list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a image + +```bash +csdk image create --databaseId --name --repository [--createdByPrincipal ] [--description ] [--digest ] [--expiresAt ] [--isPublished ] [--labels ] [--metadata ] [--ownerId ] [--platformOnly ] [--registryHost ] [--runtime ] [--tag ] [--updatedByPrincipal ] +``` + +### Get a image by id + +```bash +csdk image get --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/namespace.md b/.agents/skills/cli-compute/references/namespace.md index 2a634faf18..b152088647 100644 --- a/.agents/skills/cli-compute/references/namespace.md +++ b/.agents/skills/cli-compute/references/namespace.md @@ -12,8 +12,8 @@ csdk namespace list --where.. --orderBy csdk namespace list --limit 10 --after csdk namespace find-first --where.. csdk namespace get --id -csdk namespace create --databaseId --name --namespaceName [--annotations ] [--description ] [--isActive ] [--isManaged ] [--labels ] [--lastError ] [--status ] -csdk namespace update --id [--annotations ] [--databaseId ] [--description ] [--isActive ] [--isManaged ] [--labels ] [--lastError ] [--name ] [--namespaceName ] [--status ] +csdk namespace create --databaseId --name --namespaceName [--annotations ] [--clusterId ] [--description ] [--isActive ] [--isManaged ] [--labels ] [--lastError ] [--status ] +csdk namespace update --id [--annotations ] [--clusterId ] [--databaseId ] [--description ] [--isActive ] [--isManaged ] [--labels ] [--lastError ] [--name ] [--namespaceName ] [--status ] csdk namespace delete --id ``` @@ -58,7 +58,7 @@ csdk namespace list --where.id.equalTo --orderBy ID_ASC ### Create a namespace ```bash -csdk namespace create --databaseId --name --namespaceName [--annotations ] [--description ] [--isActive ] [--isManaged ] [--labels ] [--lastError ] [--status ] +csdk namespace create --databaseId --name --namespaceName [--annotations ] [--clusterId ] [--description ] [--isActive ] [--isManaged ] [--labels ] [--lastError ] [--status ] ``` ### Get a namespace by id diff --git a/.agents/skills/cli-compute/references/platform-build-step.md b/.agents/skills/cli-compute/references/platform-build-step.md new file mode 100644 index 0000000000..797ea35390 --- /dev/null +++ b/.agents/skills/cli-compute/references/platform-build-step.md @@ -0,0 +1,68 @@ +# platformBuildStep + + + +CRUD operations for PlatformBuildStep records via csdk CLI + +## Usage + +```bash +csdk platform-build-step list +csdk platform-build-step list --where.. --orderBy +csdk platform-build-step list --limit 10 --after +csdk platform-build-step find-first --where.. +csdk platform-build-step get --id +csdk platform-build-step create --buildId --name --seq [--createdByPrincipal ] [--exitCode ] [--finishedAt ] [--kind ] [--logBytes ] [--logOffset ] [--parentSeq ] [--recordedAt ] [--startedAt ] [--status ] [--summary ] +csdk platform-build-step update --id [--buildId ] [--createdByPrincipal ] [--exitCode ] [--finishedAt ] [--kind ] [--logBytes ] [--logOffset ] [--name ] [--parentSeq ] [--recordedAt ] [--seq ] [--startedAt ] [--status ] [--summary ] +csdk platform-build-step delete --id +``` + +## Examples + +### List platformBuildStep records + +```bash +csdk platform-build-step list +``` + +### List platformBuildStep records with pagination + +```bash +csdk platform-build-step list --limit 10 --offset 0 +``` + +### List platformBuildStep records with cursor pagination + +```bash +csdk platform-build-step list --limit 10 --after +``` + +### Find first matching platformBuildStep + +```bash +csdk platform-build-step find-first --where.id.equalTo +``` + +### List platformBuildStep records with field selection + +```bash +csdk platform-build-step list --select id,id +``` + +### List platformBuildStep records with filtering and ordering + +```bash +csdk platform-build-step list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a platformBuildStep + +```bash +csdk platform-build-step create --buildId --name --seq [--createdByPrincipal ] [--exitCode ] [--finishedAt ] [--kind ] [--logBytes ] [--logOffset ] [--parentSeq ] [--recordedAt ] [--startedAt ] [--status ] [--summary ] +``` + +### Get a platformBuildStep by id + +```bash +csdk platform-build-step get --id +``` diff --git a/.agents/skills/cli-compute/references/platform-build.md b/.agents/skills/cli-compute/references/platform-build.md new file mode 100644 index 0000000000..5ee085c0a2 --- /dev/null +++ b/.agents/skills/cli-compute/references/platform-build.md @@ -0,0 +1,68 @@ +# platformBuild + + + +CRUD operations for PlatformBuild records via csdk CLI + +## Usage + +```bash +csdk platform-build list +csdk platform-build list --where.. --orderBy +csdk platform-build list --limit 10 --after +csdk platform-build find-first --where.. +csdk platform-build get --id +csdk platform-build create --repositoryId [--actorId ] [--attempt ] [--commitSha ] [--conclusion ] [--createdByPrincipal ] [--eventId ] [--finishedAt ] [--imageRef ] [--jobId ] [--logs ] [--matrixKey ] [--metadata ] [--proposalId ] [--ref ] [--startedAt ] [--status ] [--updatedByPrincipal ] [--workflowId ] +csdk platform-build update --id [--actorId ] [--attempt ] [--commitSha ] [--conclusion ] [--createdByPrincipal ] [--eventId ] [--finishedAt ] [--imageRef ] [--jobId ] [--logs ] [--matrixKey ] [--metadata ] [--proposalId ] [--ref ] [--repositoryId ] [--startedAt ] [--status ] [--updatedByPrincipal ] [--workflowId ] +csdk platform-build delete --id +``` + +## Examples + +### List platformBuild records + +```bash +csdk platform-build list +``` + +### List platformBuild records with pagination + +```bash +csdk platform-build list --limit 10 --offset 0 +``` + +### List platformBuild records with cursor pagination + +```bash +csdk platform-build list --limit 10 --after +``` + +### Find first matching platformBuild + +```bash +csdk platform-build find-first --where.id.equalTo +``` + +### List platformBuild records with field selection + +```bash +csdk platform-build list --select id,id +``` + +### List platformBuild records with filtering and ordering + +```bash +csdk platform-build list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a platformBuild + +```bash +csdk platform-build create --repositoryId [--actorId ] [--attempt ] [--commitSha ] [--conclusion ] [--createdByPrincipal ] [--eventId ] [--finishedAt ] [--imageRef ] [--jobId ] [--logs ] [--matrixKey ] [--metadata ] [--proposalId ] [--ref ] [--startedAt ] [--status ] [--updatedByPrincipal ] [--workflowId ] +``` + +### Get a platformBuild by id + +```bash +csdk platform-build get --id +``` diff --git a/.agents/skills/cli-compute/references/platform-builder-binding.md b/.agents/skills/cli-compute/references/platform-builder-binding.md new file mode 100644 index 0000000000..aad819d23c --- /dev/null +++ b/.agents/skills/cli-compute/references/platform-builder-binding.md @@ -0,0 +1,68 @@ +# platformBuilderBinding + + + +CRUD operations for PlatformBuilderBinding records via csdk CLI + +## Usage + +```bash +csdk platform-builder-binding list +csdk platform-builder-binding list --where.. --orderBy +csdk platform-builder-binding list --limit 10 --after +csdk platform-builder-binding find-first --where.. +csdk platform-builder-binding get --id +csdk platform-builder-binding create --installationId --namespaceId [--createdBy ] [--createdByPrincipal ] [--lastError ] [--metadata ] [--observedHost ] [--realm ] [--status ] [--updatedBy ] [--updatedByPrincipal ] +csdk platform-builder-binding update --id [--createdBy ] [--createdByPrincipal ] [--installationId ] [--lastError ] [--metadata ] [--namespaceId ] [--observedHost ] [--realm ] [--status ] [--updatedBy ] [--updatedByPrincipal ] +csdk platform-builder-binding delete --id +``` + +## Examples + +### List platformBuilderBinding records + +```bash +csdk platform-builder-binding list +``` + +### List platformBuilderBinding records with pagination + +```bash +csdk platform-builder-binding list --limit 10 --offset 0 +``` + +### List platformBuilderBinding records with cursor pagination + +```bash +csdk platform-builder-binding list --limit 10 --after +``` + +### Find first matching platformBuilderBinding + +```bash +csdk platform-builder-binding find-first --where.id.equalTo +``` + +### List platformBuilderBinding records with field selection + +```bash +csdk platform-builder-binding list --select id,id +``` + +### List platformBuilderBinding records with filtering and ordering + +```bash +csdk platform-builder-binding list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a platformBuilderBinding + +```bash +csdk platform-builder-binding create --installationId --namespaceId [--createdBy ] [--createdByPrincipal ] [--lastError ] [--metadata ] [--observedHost ] [--realm ] [--status ] [--updatedBy ] [--updatedByPrincipal ] +``` + +### Get a platformBuilderBinding by id + +```bash +csdk platform-builder-binding get --id +``` diff --git a/.agents/skills/cli-compute/references/platform-function-definition.md b/.agents/skills/cli-compute/references/platform-function-definition.md index 0f4b696f46..bd4f81f809 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 ] [--anonymousCallable ] [--billable ] [--concurrency ] [--createdByPrincipal ] [--description ] [--fnCategory ] [--functionColumns ] [--graphId ] [--icon ] [--image ] [--inputs ] [--integrations ] [--isPublished ] [--maxAttempts ] [--moduleTable ] [--outputs ] [--payloadArgs ] [--priority ] [--props ] [--protected ] [--publishedAt ] [--queueName ] [--requiredBuckets ] [--requiredCapabilities ] [--requiredConfigs ] [--requiredModels ] [--requiredModules ] [--requiredSecrets ] [--resources ] [--runtime ] [--scaleMax ] [--scaleMin ] [--system ] [--targetFunction ] [--targetSchema ] [--timeoutSeconds ] [--updatedByPrincipal ] [--volatile ] +csdk platform-function-definition update --id [--accessChannels ] [--anonymousCallable ] [--billable ] [--category ] [--concurrency ] [--createdByPrincipal ] [--description ] [--fnCategory ] [--functionColumns ] [--graphId ] [--icon ] [--image ] [--inputs ] [--integrations ] [--isPublished ] [--maxAttempts ] [--moduleTable ] [--name ] [--outputs ] [--payloadArgs ] [--priority ] [--props ] [--protected ] [--publishedAt ] [--queueName ] [--requiredBuckets ] [--requiredCapabilities ] [--requiredConfigs ] [--requiredModels ] [--requiredModules ] [--requiredSecrets ] [--resources ] [--runtime ] [--scaleMax ] [--scaleMin ] [--system ] [--targetFunction ] [--targetSchema ] [--timeoutSeconds ] [--updatedByPrincipal ] [--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 ] [--anonymousCallable ] [--billable ] [--concurrency ] [--createdByPrincipal ] [--description ] [--fnCategory ] [--functionColumns ] [--graphId ] [--icon ] [--image ] [--inputs ] [--integrations ] [--isPublished ] [--maxAttempts ] [--moduleTable ] [--outputs ] [--payloadArgs ] [--priority ] [--props ] [--protected ] [--publishedAt ] [--queueName ] [--requiredBuckets ] [--requiredCapabilities ] [--requiredConfigs ] [--requiredModels ] [--requiredModules ] [--requiredSecrets ] [--resources ] [--runtime ] [--scaleMax ] [--scaleMin ] [--system ] [--targetFunction ] [--targetSchema ] [--timeoutSeconds ] [--updatedByPrincipal ] [--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..3de46f60f8 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 ] [--createdByPrincipal ] [--errorCount ] [--handlerName ] [--imageVersion ] [--labels ] [--lastError ] [--lastErrorAt ] [--realm ] [--resources ] [--revision ] [--scaleMax ] [--scaleMin ] [--serviceName ] [--serviceUrl ] [--status ] [--timeoutSeconds ] [--updatedByPrincipal ] +csdk platform-function-deployment update --id [--annotations ] [--concurrency ] [--createdByPrincipal ] [--errorCount ] [--handlerName ] [--image ] [--imageVersion ] [--labels ] [--lastError ] [--lastErrorAt ] [--namespaceId ] [--realm ] [--resources ] [--revision ] [--scaleMax ] [--scaleMin ] [--serviceName ] [--serviceUrl ] [--status ] [--timeoutSeconds ] [--updatedByPrincipal ] 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 ] [--createdByPrincipal ] [--errorCount ] [--handlerName ] [--imageVersion ] [--labels ] [--lastError ] [--lastErrorAt ] [--realm ] [--resources ] [--revision ] [--scaleMax ] [--scaleMin ] [--serviceName ] [--serviceUrl ] [--status ] [--timeoutSeconds ] [--updatedByPrincipal ] ``` ### Get a platformFunctionDeployment by id diff --git a/.agents/skills/cli-compute/references/platform-function-invocation.md b/.agents/skills/cli-compute/references/platform-function-invocation.md index da0b830cfe..ba457f116e 100644 --- a/.agents/skills/cli-compute/references/platform-function-invocation.md +++ b/.agents/skills/cli-compute/references/platform-function-invocation.md @@ -12,8 +12,8 @@ csdk platform-function-invocation list --where.. --orderBy csdk platform-function-invocation find-first --where.. csdk platform-function-invocation get --id -csdk platform-function-invocation create --taskIdentifier [--actorId ] [--apiBindingId ] [--channel ] [--completedAt ] [--databaseId ] [--definitionScope ] [--durationMs ] [--error ] [--functionDefinitionId ] [--graphExecutionId ] [--jobId ] [--parentInvocationId ] [--payload ] [--provenance ] [--result ] [--startedAt ] [--status ] -csdk platform-function-invocation update --id [--actorId ] [--apiBindingId ] [--channel ] [--completedAt ] [--databaseId ] [--definitionScope ] [--durationMs ] [--error ] [--functionDefinitionId ] [--graphExecutionId ] [--jobId ] [--parentInvocationId ] [--payload ] [--provenance ] [--result ] [--startedAt ] [--status ] [--taskIdentifier ] +csdk platform-function-invocation create --channel --taskIdentifier [--actorId ] [--apiBindingId ] [--completedAt ] [--createdByPrincipal ] [--databaseId ] [--definitionScope ] [--durationMs ] [--entityId ] [--entityType ] [--error ] [--functionDefinitionId ] [--graphExecutionId ] [--jobId ] [--organizationId ] [--parentInvocationId ] [--payload ] [--principalId ] [--provenance ] [--result ] [--startedAt ] [--status ] +csdk platform-function-invocation update --id [--actorId ] [--apiBindingId ] [--channel ] [--completedAt ] [--createdByPrincipal ] [--databaseId ] [--definitionScope ] [--durationMs ] [--entityId ] [--entityType ] [--error ] [--functionDefinitionId ] [--graphExecutionId ] [--jobId ] [--organizationId ] [--parentInvocationId ] [--payload ] [--principalId ] [--provenance ] [--result ] [--startedAt ] [--status ] [--taskIdentifier ] csdk platform-function-invocation delete --id ``` @@ -58,7 +58,7 @@ csdk platform-function-invocation list --where.id.equalTo --orderBy ID_A ### Create a platformFunctionInvocation ```bash -csdk platform-function-invocation create --taskIdentifier [--actorId ] [--apiBindingId ] [--channel ] [--completedAt ] [--databaseId ] [--definitionScope ] [--durationMs ] [--error ] [--functionDefinitionId ] [--graphExecutionId ] [--jobId ] [--parentInvocationId ] [--payload ] [--provenance ] [--result ] [--startedAt ] [--status ] +csdk platform-function-invocation create --channel --taskIdentifier [--actorId ] [--apiBindingId ] [--completedAt ] [--createdByPrincipal ] [--databaseId ] [--definitionScope ] [--durationMs ] [--entityId ] [--entityType ] [--error ] [--functionDefinitionId ] [--graphExecutionId ] [--jobId ] [--organizationId ] [--parentInvocationId ] [--payload ] [--principalId ] [--provenance ] [--result ] [--startedAt ] [--status ] ``` ### Get a platformFunctionInvocation by id diff --git a/.agents/skills/cli-compute/references/platform-function-invocations-create-sync.md b/.agents/skills/cli-compute/references/platform-function-invocations-create-sync.md new file mode 100644 index 0000000000..c1f1eb4409 --- /dev/null +++ b/.agents/skills/cli-compute/references/platform-function-invocations-create-sync.md @@ -0,0 +1,19 @@ +# platformFunctionInvocationsCreateSync + + + +Execute the platformFunctionInvocationsCreateSync mutation + +## Usage + +```bash +csdk platform-function-invocations-create-sync --input.clientMutationId --input.entityId --input.payload --input.provenance --input.routeBindingId --input.taskIdentifier +``` + +## Examples + +### Run platformFunctionInvocationsCreateSync + +```bash +csdk platform-function-invocations-create-sync --input.clientMutationId --input.entityId --input.payload --input.provenance --input.routeBindingId --input.taskIdentifier +``` diff --git a/.agents/skills/cli-compute/references/platform-image-grant.md b/.agents/skills/cli-compute/references/platform-image-grant.md new file mode 100644 index 0000000000..e9025aa280 --- /dev/null +++ b/.agents/skills/cli-compute/references/platform-image-grant.md @@ -0,0 +1,68 @@ +# platformImageGrant + + + +CRUD operations for PlatformImageGrant records via csdk CLI + +## Usage + +```bash +csdk platform-image-grant list +csdk platform-image-grant list --where.. --orderBy +csdk platform-image-grant list --limit 10 --after +csdk platform-image-grant find-first --where.. +csdk platform-image-grant get --id +csdk platform-image-grant create --granteeKey --granteeScope --imageId [--actions ] [--createdByPrincipal ] [--expiresAt ] [--grantedBy ] [--updatedByPrincipal ] +csdk platform-image-grant update --id [--actions ] [--createdByPrincipal ] [--expiresAt ] [--grantedBy ] [--granteeKey ] [--granteeScope ] [--imageId ] [--updatedByPrincipal ] +csdk platform-image-grant delete --id +``` + +## Examples + +### List platformImageGrant records + +```bash +csdk platform-image-grant list +``` + +### List platformImageGrant records with pagination + +```bash +csdk platform-image-grant list --limit 10 --offset 0 +``` + +### List platformImageGrant records with cursor pagination + +```bash +csdk platform-image-grant list --limit 10 --after +``` + +### Find first matching platformImageGrant + +```bash +csdk platform-image-grant find-first --where.id.equalTo +``` + +### List platformImageGrant records with field selection + +```bash +csdk platform-image-grant list --select id,id +``` + +### List platformImageGrant records with filtering and ordering + +```bash +csdk platform-image-grant list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a platformImageGrant + +```bash +csdk platform-image-grant create --granteeKey --granteeScope --imageId [--actions ] [--createdByPrincipal ] [--expiresAt ] [--grantedBy ] [--updatedByPrincipal ] +``` + +### Get a platformImageGrant by id + +```bash +csdk platform-image-grant get --id +``` diff --git a/.agents/skills/cli-compute/references/platform-image.md b/.agents/skills/cli-compute/references/platform-image.md new file mode 100644 index 0000000000..2131f7a790 --- /dev/null +++ b/.agents/skills/cli-compute/references/platform-image.md @@ -0,0 +1,68 @@ +# platformImage + + + +CRUD operations for PlatformImage records via csdk CLI + +## Usage + +```bash +csdk platform-image list +csdk platform-image list --where.. --orderBy +csdk platform-image list --limit 10 --after +csdk platform-image find-first --where.. +csdk platform-image get --id +csdk platform-image create --name --repository [--createdByPrincipal ] [--description ] [--digest ] [--expiresAt ] [--isPublished ] [--labels ] [--metadata ] [--ownerId ] [--platformOnly ] [--registryHost ] [--runtime ] [--tag ] [--updatedByPrincipal ] +csdk platform-image update --id [--createdByPrincipal ] [--description ] [--digest ] [--expiresAt ] [--isPublished ] [--labels ] [--metadata ] [--name ] [--ownerId ] [--platformOnly ] [--registryHost ] [--repository ] [--runtime ] [--tag ] [--updatedByPrincipal ] +csdk platform-image delete --id +``` + +## Examples + +### List platformImage records + +```bash +csdk platform-image list +``` + +### List platformImage records with pagination + +```bash +csdk platform-image list --limit 10 --offset 0 +``` + +### List platformImage records with cursor pagination + +```bash +csdk platform-image list --limit 10 --after +``` + +### Find first matching platformImage + +```bash +csdk platform-image find-first --where.id.equalTo +``` + +### List platformImage records with field selection + +```bash +csdk platform-image list --select id,id +``` + +### List platformImage records with filtering and ordering + +```bash +csdk platform-image list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a platformImage + +```bash +csdk platform-image create --name --repository [--createdByPrincipal ] [--description ] [--digest ] [--expiresAt ] [--isPublished ] [--labels ] [--metadata ] [--ownerId ] [--platformOnly ] [--registryHost ] [--runtime ] [--tag ] [--updatedByPrincipal ] +``` + +### Get a platformImage by id + +```bash +csdk platform-image get --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/platform-k-8-s-resource-kind.md b/.agents/skills/cli-compute/references/platform-k-8-s-resource-kind.md new file mode 100644 index 0000000000..d88503cf15 --- /dev/null +++ b/.agents/skills/cli-compute/references/platform-k-8-s-resource-kind.md @@ -0,0 +1,68 @@ +# platformK8sResourceKind + + + +CRUD operations for PlatformK8sResourceKind records via csdk CLI + +## Usage + +```bash +csdk platform-k-8-s-resource-kind list +csdk platform-k-8-s-resource-kind list --where.. --orderBy +csdk platform-k-8-s-resource-kind list --limit 10 --after +csdk platform-k-8-s-resource-kind find-first --where.. +csdk platform-k-8-s-resource-kind get --id +csdk platform-k-8-s-resource-kind create --definition --slug [--active ] [--commitId ] [--description ] [--label ] [--storeId ] +csdk platform-k-8-s-resource-kind update --id [--active ] [--commitId ] [--definition ] [--description ] [--label ] [--slug ] [--storeId ] +csdk platform-k-8-s-resource-kind delete --id +``` + +## Examples + +### List platformK8sResourceKind records + +```bash +csdk platform-k-8-s-resource-kind list +``` + +### List platformK8sResourceKind records with pagination + +```bash +csdk platform-k-8-s-resource-kind list --limit 10 --offset 0 +``` + +### List platformK8sResourceKind records with cursor pagination + +```bash +csdk platform-k-8-s-resource-kind list --limit 10 --after +``` + +### Find first matching platformK8sResourceKind + +```bash +csdk platform-k-8-s-resource-kind find-first --where.id.equalTo +``` + +### List platformK8sResourceKind records with field selection + +```bash +csdk platform-k-8-s-resource-kind list --select id,id +``` + +### List platformK8sResourceKind records with filtering and ordering + +```bash +csdk platform-k-8-s-resource-kind list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a platformK8sResourceKind + +```bash +csdk platform-k-8-s-resource-kind create --definition --slug [--active ] [--commitId ] [--description ] [--label ] [--storeId ] +``` + +### Get a platformK8sResourceKind by id + +```bash +csdk platform-k-8-s-resource-kind get --id +``` diff --git a/.agents/skills/cli-compute/references/platform-k-8-s-spec-rule.md b/.agents/skills/cli-compute/references/platform-k-8-s-spec-rule.md new file mode 100644 index 0000000000..3b3af3e919 --- /dev/null +++ b/.agents/skills/cli-compute/references/platform-k-8-s-spec-rule.md @@ -0,0 +1,68 @@ +# platformK8sSpecRule + + + +CRUD operations for PlatformK8sSpecRule records via csdk CLI + +## Usage + +```bash +csdk platform-k-8-s-spec-rule list +csdk platform-k-8-s-spec-rule list --where.. --orderBy +csdk platform-k-8-s-spec-rule list --limit 10 --after +csdk platform-k-8-s-spec-rule find-first --where.. +csdk platform-k-8-s-spec-rule get --id +csdk platform-k-8-s-spec-rule create --definition --slug [--active ] [--commitId ] [--description ] [--label ] [--storeId ] +csdk platform-k-8-s-spec-rule update --id [--active ] [--commitId ] [--definition ] [--description ] [--label ] [--slug ] [--storeId ] +csdk platform-k-8-s-spec-rule delete --id +``` + +## Examples + +### List platformK8sSpecRule records + +```bash +csdk platform-k-8-s-spec-rule list +``` + +### List platformK8sSpecRule records with pagination + +```bash +csdk platform-k-8-s-spec-rule list --limit 10 --offset 0 +``` + +### List platformK8sSpecRule records with cursor pagination + +```bash +csdk platform-k-8-s-spec-rule list --limit 10 --after +``` + +### Find first matching platformK8sSpecRule + +```bash +csdk platform-k-8-s-spec-rule find-first --where.id.equalTo +``` + +### List platformK8sSpecRule records with field selection + +```bash +csdk platform-k-8-s-spec-rule list --select id,id +``` + +### List platformK8sSpecRule records with filtering and ordering + +```bash +csdk platform-k-8-s-spec-rule list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a platformK8sSpecRule + +```bash +csdk platform-k-8-s-spec-rule create --definition --slug [--active ] [--commitId ] [--description ] [--label ] [--storeId ] +``` + +### Get a platformK8sSpecRule by id + +```bash +csdk platform-k-8-s-spec-rule get --id +``` diff --git a/.agents/skills/cli-compute/references/platform-namespace.md b/.agents/skills/cli-compute/references/platform-namespace.md index f67a780f9a..a2e86e0fc0 100644 --- a/.agents/skills/cli-compute/references/platform-namespace.md +++ b/.agents/skills/cli-compute/references/platform-namespace.md @@ -12,8 +12,8 @@ csdk platform-namespace list --where.. --orderBy csdk platform-namespace list --limit 10 --after csdk platform-namespace find-first --where.. csdk platform-namespace get --id -csdk platform-namespace create --name --namespaceName [--annotations ] [--description ] [--isActive ] [--isManaged ] [--labels ] [--lastError ] [--status ] -csdk platform-namespace update --id [--annotations ] [--description ] [--isActive ] [--isManaged ] [--labels ] [--lastError ] [--name ] [--namespaceName ] [--status ] +csdk platform-namespace create --name --namespaceName [--annotations ] [--clusterId ] [--description ] [--isActive ] [--isManaged ] [--labels ] [--lastError ] [--status ] +csdk platform-namespace update --id [--annotations ] [--clusterId ] [--description ] [--isActive ] [--isManaged ] [--labels ] [--lastError ] [--name ] [--namespaceName ] [--status ] csdk platform-namespace delete --id ``` @@ -58,7 +58,7 @@ csdk platform-namespace list --where.id.equalTo --orderBy ID_ASC ### Create a platformNamespace ```bash -csdk platform-namespace create --name --namespaceName [--annotations ] [--description ] [--isActive ] [--isManaged ] [--labels ] [--lastError ] [--status ] +csdk platform-namespace create --name --namespaceName [--annotations ] [--clusterId ] [--description ] [--isActive ] [--isManaged ] [--labels ] [--lastError ] [--status ] ``` ### Get a platformNamespace by id diff --git a/.agents/skills/cli-compute/references/platform-proposal-comment.md b/.agents/skills/cli-compute/references/platform-proposal-comment.md new file mode 100644 index 0000000000..b0446a7d5b --- /dev/null +++ b/.agents/skills/cli-compute/references/platform-proposal-comment.md @@ -0,0 +1,129 @@ +# platformProposalComment + + + +CRUD operations for PlatformProposalComment records via csdk CLI + +**pgvector embedding fields:** `embedding` +High-dimensional vector columns for semantic similarity search. Query via the Unified Search API pgvector adapter using cosine, L2, or inner-product distance. Supports chunk-aware search: set `includeChunks: true` in VectorNearbyInput to transparently query across parent and chunk embeddings, returning the minimum distance. + +**Unified Search API fields:** `bodyTrgmSimilarity`, `pathTrgmSimilarity`, `search`, `searchScore` +Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. + +## Usage + +```bash +csdk platform-proposal-comment list +csdk platform-proposal-comment list --where.. --orderBy +csdk platform-proposal-comment list --limit 10 --after +csdk platform-proposal-comment find-first --where.. +csdk platform-proposal-comment search +csdk platform-proposal-comment get --id +csdk platform-proposal-comment create --body --proposalId [--actorId ] [--attachments ] [--createdBy ] [--createdByPrincipal ] [--embedding ] [--line ] [--outdatedAt ] [--path ] [--resolvedAt ] [--updatedBy ] [--updatedByPrincipal ] +csdk platform-proposal-comment update --id [--actorId ] [--attachments ] [--body ] [--createdBy ] [--createdByPrincipal ] [--embedding ] [--line ] [--outdatedAt ] [--path ] [--proposalId ] [--resolvedAt ] [--updatedBy ] [--updatedByPrincipal ] +csdk platform-proposal-comment delete --id +``` + +## Examples + +### List platformProposalComment records + +```bash +csdk platform-proposal-comment list +``` + +### List platformProposalComment records with pagination + +```bash +csdk platform-proposal-comment list --limit 10 --offset 0 +``` + +### List platformProposalComment records with cursor pagination + +```bash +csdk platform-proposal-comment list --limit 10 --after +``` + +### Find first matching platformProposalComment + +```bash +csdk platform-proposal-comment find-first --where.id.equalTo +``` + +### List platformProposalComment records with field selection + +```bash +csdk platform-proposal-comment list --select id,id +``` + +### List platformProposalComment records with filtering and ordering + +```bash +csdk platform-proposal-comment list --where.id.equalTo --orderBy ID_ASC +``` + +### Vector similarity search via `embedding` (manual vector) + +```bash +# Pass a pre-computed vector array via dot-notation +csdk platform-proposal-comment list --where.embedding.vector '[0.1,0.2,0.3]' --where.embedding.distance 1.0 --select title,embeddingVectorDistance +``` + +### Vector semantic search via `embedding` with --auto-embed + +```bash +# --auto-embed converts text to vectors using the configured embedder (e.g. Ollama nomic-embed-text) +EMBEDDER_PROVIDER=ollama csdk platform-proposal-comment search "semantic query" --auto-embed --select title,embeddingVectorDistance +EMBEDDER_PROVIDER=ollama csdk platform-proposal-comment list --where.embedding.vector "semantic query" --auto-embed --select title,embeddingVectorDistance +``` + +### Create/update with auto-embedded `embedding` via --auto-embed + +```bash +# --auto-embed on create/update converts text strings in vector fields to embeddings before saving +EMBEDDER_PROVIDER=ollama csdk platform-proposal-comment create --embedding "text to embed" --auto-embed +EMBEDDER_PROVIDER=ollama csdk platform-proposal-comment update --embedding "new text to embed" --auto-embed +``` + +### Fuzzy search via trigram similarity (`trgmBody`) + +```bash +csdk platform-proposal-comment list --where.trgmBody.value "approximate query" --where.trgmBody.threshold 0.3 --select title,bodyTrgmSimilarity +``` + +### Fuzzy search via trigram similarity (`trgmPath`) + +```bash +csdk platform-proposal-comment list --where.trgmPath.value "approximate query" --where.trgmPath.threshold 0.3 --select title,pathTrgmSimilarity +``` + +### Full-text search via tsvector (`search`) + +```bash +csdk platform-proposal-comment list --where.search "search query" --select title,tsvRank +``` + +### Composite search (unifiedSearch dispatches to all text adapters) + +```bash +csdk platform-proposal-comment list --where.unifiedSearch "search query" --select title,bodyTrgmSimilarity,pathTrgmSimilarity,tsvRank,searchScore +``` + +### Search with pagination and field projection + +```bash +csdk platform-proposal-comment list --where.unifiedSearch "query" --limit 10 --select id,title,searchScore +csdk platform-proposal-comment search "query" --limit 10 --select id,title,searchScore +``` + +### Create a platformProposalComment + +```bash +csdk platform-proposal-comment create --body --proposalId [--actorId ] [--attachments ] [--createdBy ] [--createdByPrincipal ] [--embedding ] [--line ] [--outdatedAt ] [--path ] [--resolvedAt ] [--updatedBy ] [--updatedByPrincipal ] +``` + +### Get a platformProposalComment by id + +```bash +csdk platform-proposal-comment get --id +``` diff --git a/.agents/skills/cli-compute/references/platform-proposal-file-view.md b/.agents/skills/cli-compute/references/platform-proposal-file-view.md new file mode 100644 index 0000000000..8f691e6bd2 --- /dev/null +++ b/.agents/skills/cli-compute/references/platform-proposal-file-view.md @@ -0,0 +1,68 @@ +# platformProposalFileView + + + +CRUD operations for PlatformProposalFileView records via csdk CLI + +## Usage + +```bash +csdk platform-proposal-file-view list +csdk platform-proposal-file-view list --where.. --orderBy +csdk platform-proposal-file-view list --limit 10 --after +csdk platform-proposal-file-view find-first --where.. +csdk platform-proposal-file-view get --id +csdk platform-proposal-file-view create --blobSha --path --proposalId --reviewerId [--createdByPrincipal ] [--updatedByPrincipal ] [--viewedAt ] +csdk platform-proposal-file-view update --id [--blobSha ] [--createdByPrincipal ] [--path ] [--proposalId ] [--reviewerId ] [--updatedByPrincipal ] [--viewedAt ] +csdk platform-proposal-file-view delete --id +``` + +## Examples + +### List platformProposalFileView records + +```bash +csdk platform-proposal-file-view list +``` + +### List platformProposalFileView records with pagination + +```bash +csdk platform-proposal-file-view list --limit 10 --offset 0 +``` + +### List platformProposalFileView records with cursor pagination + +```bash +csdk platform-proposal-file-view list --limit 10 --after +``` + +### Find first matching platformProposalFileView + +```bash +csdk platform-proposal-file-view find-first --where.id.equalTo +``` + +### List platformProposalFileView records with field selection + +```bash +csdk platform-proposal-file-view list --select id,id +``` + +### List platformProposalFileView records with filtering and ordering + +```bash +csdk platform-proposal-file-view list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a platformProposalFileView + +```bash +csdk platform-proposal-file-view create --blobSha --path --proposalId --reviewerId [--createdByPrincipal ] [--updatedByPrincipal ] [--viewedAt ] +``` + +### Get a platformProposalFileView by id + +```bash +csdk platform-proposal-file-view get --id +``` diff --git a/.agents/skills/cli-compute/references/platform-proposal-reaction.md b/.agents/skills/cli-compute/references/platform-proposal-reaction.md new file mode 100644 index 0000000000..3ed7408edd --- /dev/null +++ b/.agents/skills/cli-compute/references/platform-proposal-reaction.md @@ -0,0 +1,68 @@ +# platformProposalReaction + + + +CRUD operations for PlatformProposalReaction records via csdk CLI + +## Usage + +```bash +csdk platform-proposal-reaction list +csdk platform-proposal-reaction list --where.. --orderBy +csdk platform-proposal-reaction list --limit 10 --after +csdk platform-proposal-reaction find-first --where.. +csdk platform-proposal-reaction get --id +csdk platform-proposal-reaction create --actorId --emoji --proposalId [--commentId ] [--createdByPrincipal ] [--updatedByPrincipal ] +csdk platform-proposal-reaction update --id [--actorId ] [--commentId ] [--createdByPrincipal ] [--emoji ] [--proposalId ] [--updatedByPrincipal ] +csdk platform-proposal-reaction delete --id +``` + +## Examples + +### List platformProposalReaction records + +```bash +csdk platform-proposal-reaction list +``` + +### List platformProposalReaction records with pagination + +```bash +csdk platform-proposal-reaction list --limit 10 --offset 0 +``` + +### List platformProposalReaction records with cursor pagination + +```bash +csdk platform-proposal-reaction list --limit 10 --after +``` + +### Find first matching platformProposalReaction + +```bash +csdk platform-proposal-reaction find-first --where.id.equalTo +``` + +### List platformProposalReaction records with field selection + +```bash +csdk platform-proposal-reaction list --select id,id +``` + +### List platformProposalReaction records with filtering and ordering + +```bash +csdk platform-proposal-reaction list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a platformProposalReaction + +```bash +csdk platform-proposal-reaction create --actorId --emoji --proposalId [--commentId ] [--createdByPrincipal ] [--updatedByPrincipal ] +``` + +### Get a platformProposalReaction by id + +```bash +csdk platform-proposal-reaction get --id +``` diff --git a/.agents/skills/cli-compute/references/platform-proposal-review.md b/.agents/skills/cli-compute/references/platform-proposal-review.md new file mode 100644 index 0000000000..f08da4866b --- /dev/null +++ b/.agents/skills/cli-compute/references/platform-proposal-review.md @@ -0,0 +1,109 @@ +# platformProposalReview + + + +CRUD operations for PlatformProposalReview records via csdk CLI + +**Unified Search API fields:** `bodyTrgmSimilarity`, `commitShaTrgmSimilarity`, `search`, `searchScore`, `verdictTrgmSimilarity` +Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. + +## Usage + +```bash +csdk platform-proposal-review list +csdk platform-proposal-review list --where.. --orderBy +csdk platform-proposal-review list --limit 10 --after +csdk platform-proposal-review find-first --where.. +csdk platform-proposal-review search +csdk platform-proposal-review get --id +csdk platform-proposal-review create --commitSha --proposalId --reviewerId --verdict [--body ] [--createdByPrincipal ] [--submittedAt ] [--updatedByPrincipal ] +csdk platform-proposal-review update --id [--body ] [--commitSha ] [--createdByPrincipal ] [--proposalId ] [--reviewerId ] [--submittedAt ] [--updatedByPrincipal ] [--verdict ] +csdk platform-proposal-review delete --id +``` + +## Examples + +### List platformProposalReview records + +```bash +csdk platform-proposal-review list +``` + +### List platformProposalReview records with pagination + +```bash +csdk platform-proposal-review list --limit 10 --offset 0 +``` + +### List platformProposalReview records with cursor pagination + +```bash +csdk platform-proposal-review list --limit 10 --after +``` + +### Find first matching platformProposalReview + +```bash +csdk platform-proposal-review find-first --where.id.equalTo +``` + +### List platformProposalReview records with field selection + +```bash +csdk platform-proposal-review list --select id,id +``` + +### List platformProposalReview records with filtering and ordering + +```bash +csdk platform-proposal-review list --where.id.equalTo --orderBy ID_ASC +``` + +### Fuzzy search via trigram similarity (`trgmBody`) + +```bash +csdk platform-proposal-review list --where.trgmBody.value "approximate query" --where.trgmBody.threshold 0.3 --select title,bodyTrgmSimilarity +``` + +### Fuzzy search via trigram similarity (`trgmCommitSha`) + +```bash +csdk platform-proposal-review list --where.trgmCommitSha.value "approximate query" --where.trgmCommitSha.threshold 0.3 --select title,commitShaTrgmSimilarity +``` + +### Full-text search via tsvector (`search`) + +```bash +csdk platform-proposal-review list --where.search "search query" --select title,tsvRank +``` + +### Fuzzy search via trigram similarity (`trgmVerdict`) + +```bash +csdk platform-proposal-review list --where.trgmVerdict.value "approximate query" --where.trgmVerdict.threshold 0.3 --select title,verdictTrgmSimilarity +``` + +### Composite search (unifiedSearch dispatches to all text adapters) + +```bash +csdk platform-proposal-review list --where.unifiedSearch "search query" --select title,bodyTrgmSimilarity,commitShaTrgmSimilarity,tsvRank,searchScore,verdictTrgmSimilarity +``` + +### Search with pagination and field projection + +```bash +csdk platform-proposal-review list --where.unifiedSearch "query" --limit 10 --select id,title,searchScore +csdk platform-proposal-review search "query" --limit 10 --select id,title,searchScore +``` + +### Create a platformProposalReview + +```bash +csdk platform-proposal-review create --commitSha --proposalId --reviewerId --verdict [--body ] [--createdByPrincipal ] [--submittedAt ] [--updatedByPrincipal ] +``` + +### Get a platformProposalReview by id + +```bash +csdk platform-proposal-review get --id +``` diff --git a/.agents/skills/cli-compute/references/platform-proposal.md b/.agents/skills/cli-compute/references/platform-proposal.md new file mode 100644 index 0000000000..8db3dd024a --- /dev/null +++ b/.agents/skills/cli-compute/references/platform-proposal.md @@ -0,0 +1,177 @@ +# platformProposal + + + +CRUD operations for PlatformProposal records via csdk CLI + +**pgvector embedding fields:** `embedding` +High-dimensional vector columns for semantic similarity search. Query via the Unified Search API pgvector adapter using cosine, L2, or inner-product distance. Supports chunk-aware search: set `includeChunks: true` in VectorNearbyInput to transparently query across parent and chunk embeddings, returning the minimum distance. + +**Unified Search API fields:** `bodyTrgmSimilarity`, `closedReasonTrgmSimilarity`, `kindTrgmSimilarity`, `mergeCommitTrgmSimilarity`, `mergeMethodTrgmSimilarity`, `resolutionTrgmSimilarity`, `search`, `searchScore`, `sourceRefTrgmSimilarity`, `statusTrgmSimilarity`, `targetRefTrgmSimilarity`, `titleTrgmSimilarity` +Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. + +## Usage + +```bash +csdk platform-proposal list +csdk platform-proposal list --where.. --orderBy +csdk platform-proposal list --limit 10 --after +csdk platform-proposal find-first --where.. +csdk platform-proposal search +csdk platform-proposal get --id +csdk platform-proposal create --repositoryId --title [--actorId ] [--body ] [--closedReason ] [--createdBy ] [--createdByPrincipal ] [--decidedAt ] [--dueAt ] [--embedding ] [--kind ] [--labels ] [--mergeCommit ] [--mergeMethod ] [--mergeRequestedAt ] [--mergedAt ] [--metadata ] [--parentId ] [--priority ] [--resolution ] [--sourceRef ] [--status ] [--targetRef ] [--updatedBy ] [--updatedByPrincipal ] +csdk platform-proposal update --id [--actorId ] [--body ] [--closedReason ] [--createdBy ] [--createdByPrincipal ] [--decidedAt ] [--dueAt ] [--embedding ] [--kind ] [--labels ] [--mergeCommit ] [--mergeMethod ] [--mergeRequestedAt ] [--mergedAt ] [--metadata ] [--parentId ] [--priority ] [--repositoryId ] [--resolution ] [--sourceRef ] [--status ] [--targetRef ] [--title ] [--updatedBy ] [--updatedByPrincipal ] +csdk platform-proposal delete --id +``` + +## Examples + +### List platformProposal records + +```bash +csdk platform-proposal list +``` + +### List platformProposal records with pagination + +```bash +csdk platform-proposal list --limit 10 --offset 0 +``` + +### List platformProposal records with cursor pagination + +```bash +csdk platform-proposal list --limit 10 --after +``` + +### Find first matching platformProposal + +```bash +csdk platform-proposal find-first --where.id.equalTo +``` + +### List platformProposal records with field selection + +```bash +csdk platform-proposal list --select id,id +``` + +### List platformProposal records with filtering and ordering + +```bash +csdk platform-proposal list --where.id.equalTo --orderBy ID_ASC +``` + +### Vector similarity search via `embedding` (manual vector) + +```bash +# Pass a pre-computed vector array via dot-notation +csdk platform-proposal list --where.embedding.vector '[0.1,0.2,0.3]' --where.embedding.distance 1.0 --select title,embeddingVectorDistance +``` + +### Vector semantic search via `embedding` with --auto-embed + +```bash +# --auto-embed converts text to vectors using the configured embedder (e.g. Ollama nomic-embed-text) +EMBEDDER_PROVIDER=ollama csdk platform-proposal search "semantic query" --auto-embed --select title,embeddingVectorDistance +EMBEDDER_PROVIDER=ollama csdk platform-proposal list --where.embedding.vector "semantic query" --auto-embed --select title,embeddingVectorDistance +``` + +### Create/update with auto-embedded `embedding` via --auto-embed + +```bash +# --auto-embed on create/update converts text strings in vector fields to embeddings before saving +EMBEDDER_PROVIDER=ollama csdk platform-proposal create --embedding "text to embed" --auto-embed +EMBEDDER_PROVIDER=ollama csdk platform-proposal update --embedding "new text to embed" --auto-embed +``` + +### Fuzzy search via trigram similarity (`trgmBody`) + +```bash +csdk platform-proposal list --where.trgmBody.value "approximate query" --where.trgmBody.threshold 0.3 --select title,bodyTrgmSimilarity +``` + +### Fuzzy search via trigram similarity (`trgmClosedReason`) + +```bash +csdk platform-proposal list --where.trgmClosedReason.value "approximate query" --where.trgmClosedReason.threshold 0.3 --select title,closedReasonTrgmSimilarity +``` + +### Fuzzy search via trigram similarity (`trgmKind`) + +```bash +csdk platform-proposal list --where.trgmKind.value "approximate query" --where.trgmKind.threshold 0.3 --select title,kindTrgmSimilarity +``` + +### Fuzzy search via trigram similarity (`trgmMergeCommit`) + +```bash +csdk platform-proposal list --where.trgmMergeCommit.value "approximate query" --where.trgmMergeCommit.threshold 0.3 --select title,mergeCommitTrgmSimilarity +``` + +### Fuzzy search via trigram similarity (`trgmMergeMethod`) + +```bash +csdk platform-proposal list --where.trgmMergeMethod.value "approximate query" --where.trgmMergeMethod.threshold 0.3 --select title,mergeMethodTrgmSimilarity +``` + +### Fuzzy search via trigram similarity (`trgmResolution`) + +```bash +csdk platform-proposal list --where.trgmResolution.value "approximate query" --where.trgmResolution.threshold 0.3 --select title,resolutionTrgmSimilarity +``` + +### Full-text search via tsvector (`search`) + +```bash +csdk platform-proposal list --where.search "search query" --select title,tsvRank +``` + +### Fuzzy search via trigram similarity (`trgmSourceRef`) + +```bash +csdk platform-proposal list --where.trgmSourceRef.value "approximate query" --where.trgmSourceRef.threshold 0.3 --select title,sourceRefTrgmSimilarity +``` + +### Fuzzy search via trigram similarity (`trgmStatus`) + +```bash +csdk platform-proposal list --where.trgmStatus.value "approximate query" --where.trgmStatus.threshold 0.3 --select title,statusTrgmSimilarity +``` + +### Fuzzy search via trigram similarity (`trgmTargetRef`) + +```bash +csdk platform-proposal list --where.trgmTargetRef.value "approximate query" --where.trgmTargetRef.threshold 0.3 --select title,targetRefTrgmSimilarity +``` + +### Fuzzy search via trigram similarity (`trgmTitle`) + +```bash +csdk platform-proposal list --where.trgmTitle.value "approximate query" --where.trgmTitle.threshold 0.3 --select title,titleTrgmSimilarity +``` + +### Composite search (unifiedSearch dispatches to all text adapters) + +```bash +csdk platform-proposal list --where.unifiedSearch "search query" --select title,bodyTrgmSimilarity,closedReasonTrgmSimilarity,kindTrgmSimilarity,mergeCommitTrgmSimilarity,mergeMethodTrgmSimilarity,resolutionTrgmSimilarity,tsvRank,searchScore,sourceRefTrgmSimilarity,statusTrgmSimilarity,targetRefTrgmSimilarity,titleTrgmSimilarity +``` + +### Search with pagination and field projection + +```bash +csdk platform-proposal list --where.unifiedSearch "query" --limit 10 --select id,title,searchScore +csdk platform-proposal search "query" --limit 10 --select id,title,searchScore +``` + +### Create a platformProposal + +```bash +csdk platform-proposal create --repositoryId --title [--actorId ] [--body ] [--closedReason ] [--createdBy ] [--createdByPrincipal ] [--decidedAt ] [--dueAt ] [--embedding ] [--kind ] [--labels ] [--mergeCommit ] [--mergeMethod ] [--mergeRequestedAt ] [--mergedAt ] [--metadata ] [--parentId ] [--priority ] [--resolution ] [--sourceRef ] [--status ] [--targetRef ] [--updatedBy ] [--updatedByPrincipal ] +``` + +### Get a platformProposal by id + +```bash +csdk platform-proposal get --id +``` diff --git a/.agents/skills/cli-compute/references/platform-proposals-chunk.md b/.agents/skills/cli-compute/references/platform-proposals-chunk.md new file mode 100644 index 0000000000..225351829d --- /dev/null +++ b/.agents/skills/cli-compute/references/platform-proposals-chunk.md @@ -0,0 +1,105 @@ +# platformProposalsChunk + + + +CRUD operations for PlatformProposalsChunk records via csdk CLI + +**pgvector embedding fields:** `embedding` +High-dimensional vector columns for semantic similarity search. Query via the Unified Search API pgvector adapter using cosine, L2, or inner-product distance. Supports chunk-aware search: set `includeChunks: true` in VectorNearbyInput to transparently query across parent and chunk embeddings, returning the minimum distance. + +**Unified Search API fields:** `searchScore` +Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. + +## Usage + +```bash +csdk platform-proposals-chunk list +csdk platform-proposals-chunk list --where.. --orderBy +csdk platform-proposals-chunk list --limit 10 --after +csdk platform-proposals-chunk find-first --where.. +csdk platform-proposals-chunk search +csdk platform-proposals-chunk get --id +csdk platform-proposals-chunk create --body --platformProposalsId [--actorId ] [--chunkIndex ] [--embedding ] [--metadata ] +csdk platform-proposals-chunk update --id [--actorId ] [--body ] [--chunkIndex ] [--embedding ] [--metadata ] [--platformProposalsId ] +csdk platform-proposals-chunk delete --id +``` + +## Examples + +### List platformProposalsChunk records + +```bash +csdk platform-proposals-chunk list +``` + +### List platformProposalsChunk records with pagination + +```bash +csdk platform-proposals-chunk list --limit 10 --offset 0 +``` + +### List platformProposalsChunk records with cursor pagination + +```bash +csdk platform-proposals-chunk list --limit 10 --after +``` + +### Find first matching platformProposalsChunk + +```bash +csdk platform-proposals-chunk find-first --where.id.equalTo +``` + +### List platformProposalsChunk records with field selection + +```bash +csdk platform-proposals-chunk list --select id,id +``` + +### List platformProposalsChunk records with filtering and ordering + +```bash +csdk platform-proposals-chunk list --where.id.equalTo --orderBy ID_ASC +``` + +### Vector similarity search via `embedding` (manual vector) + +```bash +# Pass a pre-computed vector array via dot-notation +csdk platform-proposals-chunk list --where.embedding.vector '[0.1,0.2,0.3]' --where.embedding.distance 1.0 --select title,embeddingVectorDistance +``` + +### Vector semantic search via `embedding` with --auto-embed + +```bash +# --auto-embed converts text to vectors using the configured embedder (e.g. Ollama nomic-embed-text) +EMBEDDER_PROVIDER=ollama csdk platform-proposals-chunk search "semantic query" --auto-embed --select title,embeddingVectorDistance +EMBEDDER_PROVIDER=ollama csdk platform-proposals-chunk list --where.embedding.vector "semantic query" --auto-embed --select title,embeddingVectorDistance +``` + +### Create/update with auto-embedded `embedding` via --auto-embed + +```bash +# --auto-embed on create/update converts text strings in vector fields to embeddings before saving +EMBEDDER_PROVIDER=ollama csdk platform-proposals-chunk create --embedding "text to embed" --auto-embed +EMBEDDER_PROVIDER=ollama csdk platform-proposals-chunk update --embedding "new text to embed" --auto-embed +``` + +### Search with pagination and field projection + +```bash +csdk platform-proposals-chunk list --where.unifiedSearch "query" --limit 10 --select id,title,searchScore +csdk platform-proposals-chunk search "query" --limit 10 --select id,title,searchScore +``` + +### Create a platformProposalsChunk + +```bash +csdk platform-proposals-chunk create --body --platformProposalsId [--actorId ] [--chunkIndex ] [--embedding ] [--metadata ] +``` + +### Get a platformProposalsChunk by id + +```bash +csdk platform-proposals-chunk get --id +``` diff --git a/.agents/skills/cli-compute/references/platform-registry-binding.md b/.agents/skills/cli-compute/references/platform-registry-binding.md new file mode 100644 index 0000000000..0aa13ec87c --- /dev/null +++ b/.agents/skills/cli-compute/references/platform-registry-binding.md @@ -0,0 +1,68 @@ +# platformRegistryBinding + + + +CRUD operations for PlatformRegistryBinding records via csdk CLI + +## Usage + +```bash +csdk platform-registry-binding list +csdk platform-registry-binding list --where.. --orderBy +csdk platform-registry-binding list --limit 10 --after +csdk platform-registry-binding find-first --where.. +csdk platform-registry-binding get --id +csdk platform-registry-binding create --namespaceId --registryHost --registryId [--createdBy ] [--createdByPrincipal ] [--metadata ] [--observedCredentialVersion ] [--pullSecretName ] [--realm ] [--status ] [--updatedBy ] [--updatedByPrincipal ] +csdk platform-registry-binding update --id [--createdBy ] [--createdByPrincipal ] [--metadata ] [--namespaceId ] [--observedCredentialVersion ] [--pullSecretName ] [--realm ] [--registryHost ] [--registryId ] [--status ] [--updatedBy ] [--updatedByPrincipal ] +csdk platform-registry-binding delete --id +``` + +## Examples + +### List platformRegistryBinding records + +```bash +csdk platform-registry-binding list +``` + +### List platformRegistryBinding records with pagination + +```bash +csdk platform-registry-binding list --limit 10 --offset 0 +``` + +### List platformRegistryBinding records with cursor pagination + +```bash +csdk platform-registry-binding list --limit 10 --after +``` + +### Find first matching platformRegistryBinding + +```bash +csdk platform-registry-binding find-first --where.id.equalTo +``` + +### List platformRegistryBinding records with field selection + +```bash +csdk platform-registry-binding list --select id,id +``` + +### List platformRegistryBinding records with filtering and ordering + +```bash +csdk platform-registry-binding list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a platformRegistryBinding + +```bash +csdk platform-registry-binding create --namespaceId --registryHost --registryId [--createdBy ] [--createdByPrincipal ] [--metadata ] [--observedCredentialVersion ] [--pullSecretName ] [--realm ] [--status ] [--updatedBy ] [--updatedByPrincipal ] +``` + +### Get a platformRegistryBinding by id + +```bash +csdk platform-registry-binding get --id +``` diff --git a/.agents/skills/cli-compute/references/platform-registry-grant.md b/.agents/skills/cli-compute/references/platform-registry-grant.md new file mode 100644 index 0000000000..2a1678fb21 --- /dev/null +++ b/.agents/skills/cli-compute/references/platform-registry-grant.md @@ -0,0 +1,68 @@ +# platformRegistryGrant + + + +CRUD operations for PlatformRegistryGrant records via csdk CLI + +## Usage + +```bash +csdk platform-registry-grant list +csdk platform-registry-grant list --where.. --orderBy +csdk platform-registry-grant list --limit 10 --after +csdk platform-registry-grant find-first --where.. +csdk platform-registry-grant get --id +csdk platform-registry-grant create --granteeKey --granteeScope --registryId [--actions ] [--createdByPrincipal ] [--expiresAt ] [--grantedBy ] [--updatedByPrincipal ] +csdk platform-registry-grant update --id [--actions ] [--createdByPrincipal ] [--expiresAt ] [--grantedBy ] [--granteeKey ] [--granteeScope ] [--registryId ] [--updatedByPrincipal ] +csdk platform-registry-grant delete --id +``` + +## Examples + +### List platformRegistryGrant records + +```bash +csdk platform-registry-grant list +``` + +### List platformRegistryGrant records with pagination + +```bash +csdk platform-registry-grant list --limit 10 --offset 0 +``` + +### List platformRegistryGrant records with cursor pagination + +```bash +csdk platform-registry-grant list --limit 10 --after +``` + +### Find first matching platformRegistryGrant + +```bash +csdk platform-registry-grant find-first --where.id.equalTo +``` + +### List platformRegistryGrant records with field selection + +```bash +csdk platform-registry-grant list --select id,id +``` + +### List platformRegistryGrant records with filtering and ordering + +```bash +csdk platform-registry-grant list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a platformRegistryGrant + +```bash +csdk platform-registry-grant create --granteeKey --granteeScope --registryId [--actions ] [--createdByPrincipal ] [--expiresAt ] [--grantedBy ] [--updatedByPrincipal ] +``` + +### Get a platformRegistryGrant by id + +```bash +csdk platform-registry-grant get --id +``` diff --git a/.agents/skills/cli-compute/references/platform-registry.md b/.agents/skills/cli-compute/references/platform-registry.md new file mode 100644 index 0000000000..39db22cc2a --- /dev/null +++ b/.agents/skills/cli-compute/references/platform-registry.md @@ -0,0 +1,68 @@ +# platformRegistry + + + +CRUD operations for PlatformRegistry records via csdk CLI + +## Usage + +```bash +csdk platform-registry list +csdk platform-registry list --where.. --orderBy +csdk platform-registry list --limit 10 --after +csdk platform-registry find-first --where.. +csdk platform-registry get --id +csdk platform-registry create --kind --name [--authMode ] [--basePath ] [--createdByPrincipal ] [--credentialSecretName ] [--host ] [--installationId ] [--isPublished ] [--labels ] [--lastError ] [--metadata ] [--platformOnly ] [--role ] [--status ] [--updatedByPrincipal ] +csdk platform-registry update --id [--authMode ] [--basePath ] [--createdByPrincipal ] [--credentialSecretName ] [--host ] [--installationId ] [--isPublished ] [--kind ] [--labels ] [--lastError ] [--metadata ] [--name ] [--platformOnly ] [--role ] [--status ] [--updatedByPrincipal ] +csdk platform-registry delete --id +``` + +## Examples + +### List platformRegistry records + +```bash +csdk platform-registry list +``` + +### List platformRegistry records with pagination + +```bash +csdk platform-registry list --limit 10 --offset 0 +``` + +### List platformRegistry records with cursor pagination + +```bash +csdk platform-registry list --limit 10 --after +``` + +### Find first matching platformRegistry + +```bash +csdk platform-registry find-first --where.id.equalTo +``` + +### List platformRegistry records with field selection + +```bash +csdk platform-registry list --select id,id +``` + +### List platformRegistry records with filtering and ordering + +```bash +csdk platform-registry list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a platformRegistry + +```bash +csdk platform-registry create --kind --name [--authMode ] [--basePath ] [--createdByPrincipal ] [--credentialSecretName ] [--host ] [--installationId ] [--isPublished ] [--labels ] [--lastError ] [--metadata ] [--platformOnly ] [--role ] [--status ] [--updatedByPrincipal ] +``` + +### Get a platformRegistry by id + +```bash +csdk platform-registry get --id +``` diff --git a/.agents/skills/cli-compute/references/platform-repository-event.md b/.agents/skills/cli-compute/references/platform-repository-event.md new file mode 100644 index 0000000000..2ab7b373a0 --- /dev/null +++ b/.agents/skills/cli-compute/references/platform-repository-event.md @@ -0,0 +1,68 @@ +# platformRepositoryEvent + + + +CRUD operations for PlatformRepositoryEvent records via csdk CLI + +## Usage + +```bash +csdk platform-repository-event list +csdk platform-repository-event list --where.. --orderBy +csdk platform-repository-event list --limit 10 --after +csdk platform-repository-event find-first --where.. +csdk platform-repository-event get --id +csdk platform-repository-event create --eventType --repositoryId [--actorId ] [--commitSha ] [--createdByPrincipal ] [--deliveryId ] [--metadata ] [--payload ] [--ref ] [--updatedByPrincipal ] +csdk platform-repository-event update --id [--actorId ] [--commitSha ] [--createdByPrincipal ] [--deliveryId ] [--eventType ] [--metadata ] [--payload ] [--ref ] [--repositoryId ] [--updatedByPrincipal ] +csdk platform-repository-event delete --id +``` + +## Examples + +### List platformRepositoryEvent records + +```bash +csdk platform-repository-event list +``` + +### List platformRepositoryEvent records with pagination + +```bash +csdk platform-repository-event list --limit 10 --offset 0 +``` + +### List platformRepositoryEvent records with cursor pagination + +```bash +csdk platform-repository-event list --limit 10 --after +``` + +### Find first matching platformRepositoryEvent + +```bash +csdk platform-repository-event find-first --where.id.equalTo +``` + +### List platformRepositoryEvent records with field selection + +```bash +csdk platform-repository-event list --select id,id +``` + +### List platformRepositoryEvent records with filtering and ordering + +```bash +csdk platform-repository-event list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a platformRepositoryEvent + +```bash +csdk platform-repository-event create --eventType --repositoryId [--actorId ] [--commitSha ] [--createdByPrincipal ] [--deliveryId ] [--metadata ] [--payload ] [--ref ] [--updatedByPrincipal ] +``` + +### Get a platformRepositoryEvent by id + +```bash +csdk platform-repository-event get --id +``` diff --git a/.agents/skills/cli-compute/references/platform-repository-required-check.md b/.agents/skills/cli-compute/references/platform-repository-required-check.md new file mode 100644 index 0000000000..1ff7b31c65 --- /dev/null +++ b/.agents/skills/cli-compute/references/platform-repository-required-check.md @@ -0,0 +1,68 @@ +# platformRepositoryRequiredCheck + + + +CRUD operations for PlatformRepositoryRequiredCheck records via csdk CLI + +## Usage + +```bash +csdk platform-repository-required-check list +csdk platform-repository-required-check list --where.. --orderBy +csdk platform-repository-required-check list --limit 10 --after +csdk platform-repository-required-check find-first --where.. +csdk platform-repository-required-check get --id +csdk platform-repository-required-check create --repositoryId --workflowId +csdk platform-repository-required-check update --id [--repositoryId ] [--workflowId ] +csdk platform-repository-required-check delete --id +``` + +## Examples + +### List platformRepositoryRequiredCheck records + +```bash +csdk platform-repository-required-check list +``` + +### List platformRepositoryRequiredCheck records with pagination + +```bash +csdk platform-repository-required-check list --limit 10 --offset 0 +``` + +### List platformRepositoryRequiredCheck records with cursor pagination + +```bash +csdk platform-repository-required-check list --limit 10 --after +``` + +### Find first matching platformRepositoryRequiredCheck + +```bash +csdk platform-repository-required-check find-first --where.id.equalTo +``` + +### List platformRepositoryRequiredCheck records with field selection + +```bash +csdk platform-repository-required-check list --select id,id +``` + +### List platformRepositoryRequiredCheck records with filtering and ordering + +```bash +csdk platform-repository-required-check list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a platformRepositoryRequiredCheck + +```bash +csdk platform-repository-required-check create --repositoryId --workflowId +``` + +### Get a platformRepositoryRequiredCheck by id + +```bash +csdk platform-repository-required-check get --id +``` diff --git a/.agents/skills/cli-compute/references/platform-repository-workflow.md b/.agents/skills/cli-compute/references/platform-repository-workflow.md new file mode 100644 index 0000000000..9f7230d16b --- /dev/null +++ b/.agents/skills/cli-compute/references/platform-repository-workflow.md @@ -0,0 +1,68 @@ +# platformRepositoryWorkflow + + + +CRUD operations for PlatformRepositoryWorkflow records via csdk CLI + +## Usage + +```bash +csdk platform-repository-workflow list +csdk platform-repository-workflow list --where.. --orderBy +csdk platform-repository-workflow list --limit 10 --after +csdk platform-repository-workflow find-first --where.. +csdk platform-repository-workflow get --id +csdk platform-repository-workflow create --eventType --name --repositoryId --slug [--cancelInProgress ] [--concurrencyKey ] [--createdBy ] [--createdByPrincipal ] [--graphId ] [--inputs ] [--isEnabled ] [--refPattern ] [--requiredSecrets ] [--updatedBy ] [--updatedByPrincipal ] +csdk platform-repository-workflow update --id [--cancelInProgress ] [--concurrencyKey ] [--createdBy ] [--createdByPrincipal ] [--eventType ] [--graphId ] [--inputs ] [--isEnabled ] [--name ] [--refPattern ] [--repositoryId ] [--requiredSecrets ] [--slug ] [--updatedBy ] [--updatedByPrincipal ] +csdk platform-repository-workflow delete --id +``` + +## Examples + +### List platformRepositoryWorkflow records + +```bash +csdk platform-repository-workflow list +``` + +### List platformRepositoryWorkflow records with pagination + +```bash +csdk platform-repository-workflow list --limit 10 --offset 0 +``` + +### List platformRepositoryWorkflow records with cursor pagination + +```bash +csdk platform-repository-workflow list --limit 10 --after +``` + +### Find first matching platformRepositoryWorkflow + +```bash +csdk platform-repository-workflow find-first --where.id.equalTo +``` + +### List platformRepositoryWorkflow records with field selection + +```bash +csdk platform-repository-workflow list --select id,id +``` + +### List platformRepositoryWorkflow records with filtering and ordering + +```bash +csdk platform-repository-workflow list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a platformRepositoryWorkflow + +```bash +csdk platform-repository-workflow create --eventType --name --repositoryId --slug [--cancelInProgress ] [--concurrencyKey ] [--createdBy ] [--createdByPrincipal ] [--graphId ] [--inputs ] [--isEnabled ] [--refPattern ] [--requiredSecrets ] [--updatedBy ] [--updatedByPrincipal ] +``` + +### Get a platformRepositoryWorkflow by id + +```bash +csdk platform-repository-workflow get --id +``` diff --git a/.agents/skills/cli-compute/references/platform-repository.md b/.agents/skills/cli-compute/references/platform-repository.md new file mode 100644 index 0000000000..1c712608af --- /dev/null +++ b/.agents/skills/cli-compute/references/platform-repository.md @@ -0,0 +1,165 @@ +# platformRepository + + + +CRUD operations for PlatformRepository records via csdk CLI + +**pgvector embedding fields:** `embedding` +High-dimensional vector columns for semantic similarity search. Query via the Unified Search API pgvector adapter using cosine, L2, or inner-product distance. Supports chunk-aware search: set `includeChunks: true` in VectorNearbyInput to transparently query across parent and chunk embeddings, returning the minimum distance. + +**Unified Search API fields:** `cloneUrlTrgmSimilarity`, `defaultBranchTrgmSimilarity`, `descriptionTrgmSimilarity`, `externalIdTrgmSimilarity`, `nameTrgmSimilarity`, `providerTrgmSimilarity`, `search`, `searchScore`, `slugTrgmSimilarity`, `visibilityTrgmSimilarity` +Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. + +## Usage + +```bash +csdk platform-repository list +csdk platform-repository list --where.. --orderBy +csdk platform-repository list --limit 10 --after +csdk platform-repository find-first --where.. +csdk platform-repository search +csdk platform-repository get --id +csdk platform-repository create --name --slug [--cloneUrl ] [--createdBy ] [--createdByPrincipal ] [--defaultBranch ] [--description ] [--embedding ] [--externalId ] [--isArchived ] [--metadata ] [--ownerId ] [--provider ] [--updatedBy ] [--updatedByPrincipal ] [--visibility ] +csdk platform-repository update --id [--cloneUrl ] [--createdBy ] [--createdByPrincipal ] [--defaultBranch ] [--description ] [--embedding ] [--externalId ] [--isArchived ] [--metadata ] [--name ] [--ownerId ] [--provider ] [--slug ] [--updatedBy ] [--updatedByPrincipal ] [--visibility ] +csdk platform-repository delete --id +``` + +## Examples + +### List platformRepository records + +```bash +csdk platform-repository list +``` + +### List platformRepository records with pagination + +```bash +csdk platform-repository list --limit 10 --offset 0 +``` + +### List platformRepository records with cursor pagination + +```bash +csdk platform-repository list --limit 10 --after +``` + +### Find first matching platformRepository + +```bash +csdk platform-repository find-first --where.id.equalTo +``` + +### List platformRepository records with field selection + +```bash +csdk platform-repository list --select id,id +``` + +### List platformRepository records with filtering and ordering + +```bash +csdk platform-repository list --where.id.equalTo --orderBy ID_ASC +``` + +### Vector similarity search via `embedding` (manual vector) + +```bash +# Pass a pre-computed vector array via dot-notation +csdk platform-repository list --where.embedding.vector '[0.1,0.2,0.3]' --where.embedding.distance 1.0 --select title,embeddingVectorDistance +``` + +### Vector semantic search via `embedding` with --auto-embed + +```bash +# --auto-embed converts text to vectors using the configured embedder (e.g. Ollama nomic-embed-text) +EMBEDDER_PROVIDER=ollama csdk platform-repository search "semantic query" --auto-embed --select title,embeddingVectorDistance +EMBEDDER_PROVIDER=ollama csdk platform-repository list --where.embedding.vector "semantic query" --auto-embed --select title,embeddingVectorDistance +``` + +### Create/update with auto-embedded `embedding` via --auto-embed + +```bash +# --auto-embed on create/update converts text strings in vector fields to embeddings before saving +EMBEDDER_PROVIDER=ollama csdk platform-repository create --embedding "text to embed" --auto-embed +EMBEDDER_PROVIDER=ollama csdk platform-repository update --embedding "new text to embed" --auto-embed +``` + +### Fuzzy search via trigram similarity (`trgmCloneUrl`) + +```bash +csdk platform-repository list --where.trgmCloneUrl.value "approximate query" --where.trgmCloneUrl.threshold 0.3 --select title,cloneUrlTrgmSimilarity +``` + +### Fuzzy search via trigram similarity (`trgmDefaultBranch`) + +```bash +csdk platform-repository list --where.trgmDefaultBranch.value "approximate query" --where.trgmDefaultBranch.threshold 0.3 --select title,defaultBranchTrgmSimilarity +``` + +### Fuzzy search via trigram similarity (`trgmDescription`) + +```bash +csdk platform-repository list --where.trgmDescription.value "approximate query" --where.trgmDescription.threshold 0.3 --select title,descriptionTrgmSimilarity +``` + +### Fuzzy search via trigram similarity (`trgmExternalId`) + +```bash +csdk platform-repository list --where.trgmExternalId.value "approximate query" --where.trgmExternalId.threshold 0.3 --select title,externalIdTrgmSimilarity +``` + +### Fuzzy search via trigram similarity (`trgmName`) + +```bash +csdk platform-repository list --where.trgmName.value "approximate query" --where.trgmName.threshold 0.3 --select title,nameTrgmSimilarity +``` + +### Fuzzy search via trigram similarity (`trgmProvider`) + +```bash +csdk platform-repository list --where.trgmProvider.value "approximate query" --where.trgmProvider.threshold 0.3 --select title,providerTrgmSimilarity +``` + +### Full-text search via tsvector (`search`) + +```bash +csdk platform-repository list --where.search "search query" --select title,tsvRank +``` + +### Fuzzy search via trigram similarity (`trgmSlug`) + +```bash +csdk platform-repository list --where.trgmSlug.value "approximate query" --where.trgmSlug.threshold 0.3 --select title,slugTrgmSimilarity +``` + +### Fuzzy search via trigram similarity (`trgmVisibility`) + +```bash +csdk platform-repository list --where.trgmVisibility.value "approximate query" --where.trgmVisibility.threshold 0.3 --select title,visibilityTrgmSimilarity +``` + +### Composite search (unifiedSearch dispatches to all text adapters) + +```bash +csdk platform-repository list --where.unifiedSearch "search query" --select title,cloneUrlTrgmSimilarity,defaultBranchTrgmSimilarity,descriptionTrgmSimilarity,externalIdTrgmSimilarity,nameTrgmSimilarity,providerTrgmSimilarity,tsvRank,searchScore,slugTrgmSimilarity,visibilityTrgmSimilarity +``` + +### Search with pagination and field projection + +```bash +csdk platform-repository list --where.unifiedSearch "query" --limit 10 --select id,title,searchScore +csdk platform-repository search "query" --limit 10 --select id,title,searchScore +``` + +### Create a platformRepository + +```bash +csdk platform-repository create --name --slug [--cloneUrl ] [--createdBy ] [--createdByPrincipal ] [--defaultBranch ] [--description ] [--embedding ] [--externalId ] [--isArchived ] [--metadata ] [--ownerId ] [--provider ] [--updatedBy ] [--updatedByPrincipal ] [--visibility ] +``` + +### Get a platformRepository by id + +```bash +csdk platform-repository get --id +``` diff --git a/.agents/skills/cli-compute/references/platform-resource-declared-capacity.md b/.agents/skills/cli-compute/references/platform-resource-declared-capacity.md index fc3879fc6b..43982689db 100644 --- a/.agents/skills/cli-compute/references/platform-resource-declared-capacity.md +++ b/.agents/skills/cli-compute/references/platform-resource-declared-capacity.md @@ -12,8 +12,8 @@ csdk platform-resource-declared-capacity list --where.. --ord csdk platform-resource-declared-capacity list --limit 10 --after csdk platform-resource-declared-capacity find-first --where.. csdk platform-resource-declared-capacity get --id -csdk platform-resource-declared-capacity create --cpuLimitMillicores --cpuRequestMillicores --installationId --isTransient --kind --memoryLimitBytes --memoryRequestBytes --namespaceId --podCountMax --podCountMin --source --sourceId --storageSizeBytes -csdk platform-resource-declared-capacity update --id [--cpuLimitMillicores ] [--cpuRequestMillicores ] [--installationId ] [--isTransient ] [--kind ] [--memoryLimitBytes ] [--memoryRequestBytes ] [--namespaceId ] [--podCountMax ] [--podCountMin ] [--source ] [--sourceId ] [--storageSizeBytes ] +csdk platform-resource-declared-capacity create --cpuLimitMillicores --cpuRequestMillicores --installationId --isTransient --kind --memoryLimitBytes --memoryRequestBytes --namespaceId --podCountMax --podCountMin --source --sourceId --storageSizeBytes --storageTotalBytes +csdk platform-resource-declared-capacity update --id [--cpuLimitMillicores ] [--cpuRequestMillicores ] [--installationId ] [--isTransient ] [--kind ] [--memoryLimitBytes ] [--memoryRequestBytes ] [--namespaceId ] [--podCountMax ] [--podCountMin ] [--source ] [--sourceId ] [--storageSizeBytes ] [--storageTotalBytes ] csdk platform-resource-declared-capacity delete --id ``` @@ -58,7 +58,7 @@ csdk platform-resource-declared-capacity list --where.id.equalTo --order ### Create a platformResourceDeclaredCapacity ```bash -csdk platform-resource-declared-capacity create --cpuLimitMillicores --cpuRequestMillicores --installationId --isTransient --kind --memoryLimitBytes --memoryRequestBytes --namespaceId --podCountMax --podCountMin --source --sourceId --storageSizeBytes +csdk platform-resource-declared-capacity create --cpuLimitMillicores --cpuRequestMillicores --installationId --isTransient --kind --memoryLimitBytes --memoryRequestBytes --namespaceId --podCountMax --podCountMin --source --sourceId --storageSizeBytes --storageTotalBytes ``` ### Get a platformResourceDeclaredCapacity by id diff --git a/.agents/skills/cli-compute/references/platform-resource-definition.md b/.agents/skills/cli-compute/references/platform-resource-definition.md index 2e52e14f87..c2b53196cc 100644 --- a/.agents/skills/cli-compute/references/platform-resource-definition.md +++ b/.agents/skills/cli-compute/references/platform-resource-definition.md @@ -12,8 +12,8 @@ csdk platform-resource-definition list --where.. --orderBy csdk platform-resource-definition find-first --where.. csdk platform-resource-definition get --id -csdk platform-resource-definition create --kind --name --namespaceId --slug [--annotations ] [--createdBy ] [--defaultSpec ] [--description ] [--integrations ] [--labels ] [--paramsSchema ] [--requiredConfigs ] [--requiredSecrets ] [--stepUpMinAge ] [--updatedBy ] -csdk platform-resource-definition update --id [--annotations ] [--createdBy ] [--defaultSpec ] [--description ] [--integrations ] [--kind ] [--labels ] [--name ] [--namespaceId ] [--paramsSchema ] [--requiredConfigs ] [--requiredSecrets ] [--slug ] [--stepUpMinAge ] [--updatedBy ] +csdk platform-resource-definition create --kind --name --namespaceId --slug [--annotations ] [--createdBy ] [--createdByPrincipal ] [--defaultSpec ] [--description ] [--integrations ] [--labels ] [--paramsSchema ] [--requiredConfigs ] [--requiredSecrets ] [--stepUpMinAge ] [--updatedBy ] [--updatedByPrincipal ] +csdk platform-resource-definition update --id [--annotations ] [--createdBy ] [--createdByPrincipal ] [--defaultSpec ] [--description ] [--integrations ] [--kind ] [--labels ] [--name ] [--namespaceId ] [--paramsSchema ] [--requiredConfigs ] [--requiredSecrets ] [--slug ] [--stepUpMinAge ] [--updatedBy ] [--updatedByPrincipal ] csdk platform-resource-definition delete --id ``` @@ -58,7 +58,7 @@ csdk platform-resource-definition list --where.id.equalTo --orderBy ID_A ### Create a platformResourceDefinition ```bash -csdk platform-resource-definition create --kind --name --namespaceId --slug [--annotations ] [--createdBy ] [--defaultSpec ] [--description ] [--integrations ] [--labels ] [--paramsSchema ] [--requiredConfigs ] [--requiredSecrets ] [--stepUpMinAge ] [--updatedBy ] +csdk platform-resource-definition create --kind --name --namespaceId --slug [--annotations ] [--createdBy ] [--createdByPrincipal ] [--defaultSpec ] [--description ] [--integrations ] [--labels ] [--paramsSchema ] [--requiredConfigs ] [--requiredSecrets ] [--stepUpMinAge ] [--updatedBy ] [--updatedByPrincipal ] ``` ### Get a platformResourceDefinition by id diff --git a/.agents/skills/cli-compute/references/platform-resource-installation.md b/.agents/skills/cli-compute/references/platform-resource-installation.md index 8fb3ca72e6..2ededdce25 100644 --- a/.agents/skills/cli-compute/references/platform-resource-installation.md +++ b/.agents/skills/cli-compute/references/platform-resource-installation.md @@ -12,8 +12,8 @@ csdk platform-resource-installation list --where.. --orderBy csdk platform-resource-installation list --limit 10 --after csdk platform-resource-installation find-first --where.. csdk platform-resource-installation get --id -csdk platform-resource-installation create --name --namespaceId --slug [--commitId ] [--createdBy ] [--params ] [--revision ] [--status ] [--storeId ] [--updatedBy ] -csdk platform-resource-installation update --id [--commitId ] [--createdBy ] [--name ] [--namespaceId ] [--params ] [--revision ] [--slug ] [--status ] [--storeId ] [--updatedBy ] +csdk platform-resource-installation create --name --namespaceId --slug [--commitId ] [--createdBy ] [--createdByPrincipal ] [--params ] [--revision ] [--status ] [--storeId ] [--updatedBy ] [--updatedByPrincipal ] +csdk platform-resource-installation update --id [--commitId ] [--createdBy ] [--createdByPrincipal ] [--name ] [--namespaceId ] [--params ] [--revision ] [--slug ] [--status ] [--storeId ] [--updatedBy ] [--updatedByPrincipal ] csdk platform-resource-installation delete --id ``` @@ -58,7 +58,7 @@ csdk platform-resource-installation list --where.id.equalTo --orderBy ID ### Create a platformResourceInstallation ```bash -csdk platform-resource-installation create --name --namespaceId --slug [--commitId ] [--createdBy ] [--params ] [--revision ] [--status ] [--storeId ] [--updatedBy ] +csdk platform-resource-installation create --name --namespaceId --slug [--commitId ] [--createdBy ] [--createdByPrincipal ] [--params ] [--revision ] [--status ] [--storeId ] [--updatedBy ] [--updatedByPrincipal ] ``` ### Get a platformResourceInstallation by id diff --git a/.agents/skills/cli-compute/references/platform-resource-observed-storage.md b/.agents/skills/cli-compute/references/platform-resource-observed-storage.md new file mode 100644 index 0000000000..bec73ec6a3 --- /dev/null +++ b/.agents/skills/cli-compute/references/platform-resource-observed-storage.md @@ -0,0 +1,68 @@ +# platformResourceObservedStorage + + + +CRUD operations for PlatformResourceObservedStorage records via csdk CLI + +## Usage + +```bash +csdk platform-resource-observed-storage list +csdk platform-resource-observed-storage list --where.. --orderBy +csdk platform-resource-observed-storage list --limit 10 --after +csdk platform-resource-observed-storage find-first --where.. +csdk platform-resource-observed-storage get --id +csdk platform-resource-observed-storage create --capacity --capacityBytes --claimName --declaredStorageClass --declaredStorageSizeBytes --declaredStorageTotalBytes --installationId --isBound --kind --namespaceId --phase --requested --requestedBytes --resourceId --resourceStatus --slug --storageClass --storageName +csdk platform-resource-observed-storage update --id [--capacity ] [--capacityBytes ] [--claimName ] [--declaredStorageClass ] [--declaredStorageSizeBytes ] [--declaredStorageTotalBytes ] [--installationId ] [--isBound ] [--kind ] [--namespaceId ] [--phase ] [--requested ] [--requestedBytes ] [--resourceId ] [--resourceStatus ] [--slug ] [--storageClass ] [--storageName ] +csdk platform-resource-observed-storage delete --id +``` + +## Examples + +### List platformResourceObservedStorage records + +```bash +csdk platform-resource-observed-storage list +``` + +### List platformResourceObservedStorage records with pagination + +```bash +csdk platform-resource-observed-storage list --limit 10 --offset 0 +``` + +### List platformResourceObservedStorage records with cursor pagination + +```bash +csdk platform-resource-observed-storage list --limit 10 --after +``` + +### Find first matching platformResourceObservedStorage + +```bash +csdk platform-resource-observed-storage find-first --where.id.equalTo +``` + +### List platformResourceObservedStorage records with field selection + +```bash +csdk platform-resource-observed-storage list --select id,id +``` + +### List platformResourceObservedStorage records with filtering and ordering + +```bash +csdk platform-resource-observed-storage list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a platformResourceObservedStorage + +```bash +csdk platform-resource-observed-storage create --capacity --capacityBytes --claimName --declaredStorageClass --declaredStorageSizeBytes --declaredStorageTotalBytes --installationId --isBound --kind --namespaceId --phase --requested --requestedBytes --resourceId --resourceStatus --slug --storageClass --storageName +``` + +### Get a platformResourceObservedStorage by id + +```bash +csdk platform-resource-observed-storage get --id +``` diff --git a/.agents/skills/cli-compute/references/platform-resource.md b/.agents/skills/cli-compute/references/platform-resource.md index 39977b74ee..4d3899b3aa 100644 --- a/.agents/skills/cli-compute/references/platform-resource.md +++ b/.agents/skills/cli-compute/references/platform-resource.md @@ -12,8 +12,8 @@ csdk platform-resource list --where.. --orderBy csdk platform-resource list --limit 10 --after csdk platform-resource find-first --where.. csdk platform-resource get --id -csdk platform-resource create --kind --name --namespaceId --slug [--annotations ] [--createdBy ] [--errorCount ] [--installationId ] [--integrations ] [--labels ] [--lastError ] [--lastHeartbeatAt ] [--realm ] [--requiredConfigs ] [--requiredSecrets ] [--resourceDefinitionId ] [--spec ] [--status ] [--statusObserved ] [--updatedBy ] -csdk platform-resource update --id [--annotations ] [--createdBy ] [--errorCount ] [--installationId ] [--integrations ] [--kind ] [--labels ] [--lastError ] [--lastHeartbeatAt ] [--name ] [--namespaceId ] [--realm ] [--requiredConfigs ] [--requiredSecrets ] [--resourceDefinitionId ] [--slug ] [--spec ] [--status ] [--statusObserved ] [--updatedBy ] +csdk platform-resource create --kind --name --namespaceId --slug [--annotations ] [--createdBy ] [--createdByPrincipal ] [--errorCount ] [--imageRef ] [--installationId ] [--integrations ] [--labels ] [--lastError ] [--lastHeartbeatAt ] [--realm ] [--requiredConfigs ] [--requiredSecrets ] [--resourceDefinitionId ] [--spec ] [--status ] [--statusObserved ] [--updatedBy ] [--updatedByPrincipal ] +csdk platform-resource update --id [--annotations ] [--createdBy ] [--createdByPrincipal ] [--errorCount ] [--imageRef ] [--installationId ] [--integrations ] [--kind ] [--labels ] [--lastError ] [--lastHeartbeatAt ] [--name ] [--namespaceId ] [--realm ] [--requiredConfigs ] [--requiredSecrets ] [--resourceDefinitionId ] [--slug ] [--spec ] [--status ] [--statusObserved ] [--updatedBy ] [--updatedByPrincipal ] csdk platform-resource delete --id ``` @@ -58,7 +58,7 @@ csdk platform-resource list --where.id.equalTo --orderBy ID_ASC ### Create a platformResource ```bash -csdk platform-resource create --kind --name --namespaceId --slug [--annotations ] [--createdBy ] [--errorCount ] [--installationId ] [--integrations ] [--labels ] [--lastError ] [--lastHeartbeatAt ] [--realm ] [--requiredConfigs ] [--requiredSecrets ] [--resourceDefinitionId ] [--spec ] [--status ] [--statusObserved ] [--updatedBy ] +csdk platform-resource create --kind --name --namespaceId --slug [--annotations ] [--createdBy ] [--createdByPrincipal ] [--errorCount ] [--imageRef ] [--installationId ] [--integrations ] [--labels ] [--lastError ] [--lastHeartbeatAt ] [--realm ] [--requiredConfigs ] [--requiredSecrets ] [--resourceDefinitionId ] [--spec ] [--status ] [--statusObserved ] [--updatedBy ] [--updatedByPrincipal ] ``` ### Get a platformResource by id diff --git a/.agents/skills/cli-compute/references/platform-resources-health.md b/.agents/skills/cli-compute/references/platform-resources-health.md index 7542e9240e..e6a540cfd7 100644 --- a/.agents/skills/cli-compute/references/platform-resources-health.md +++ b/.agents/skills/cli-compute/references/platform-resources-health.md @@ -12,8 +12,8 @@ csdk platform-resources-health list --where.. --orderBy csdk platform-resources-health find-first --where.. csdk platform-resources-health get --id -csdk platform-resources-health create --annotations --cpuLimitMillicores --cpuRequestMillicores --createdBy --errorCount --installationId --integrations --kind --labels --lastError --lastHeartbeatAt --memoryLimitBytes --memoryRequestBytes --name --namespaceId --realm --replicas --requiredConfigs --requiredSecrets --resourceDefinitionId --slug --spec --status --statusDetail --statusObserved --storageClass --storageSizeBytes --updatedBy -csdk platform-resources-health update --id [--annotations ] [--cpuLimitMillicores ] [--cpuRequestMillicores ] [--createdBy ] [--errorCount ] [--installationId ] [--integrations ] [--kind ] [--labels ] [--lastError ] [--lastHeartbeatAt ] [--memoryLimitBytes ] [--memoryRequestBytes ] [--name ] [--namespaceId ] [--realm ] [--replicas ] [--requiredConfigs ] [--requiredSecrets ] [--resourceDefinitionId ] [--slug ] [--spec ] [--status ] [--statusDetail ] [--statusObserved ] [--storageClass ] [--storageSizeBytes ] [--updatedBy ] +csdk platform-resources-health create --annotations --cpuLimitMillicores --cpuRequestMillicores --createdBy --createdByPrincipal --errorCount --imageRef --installationId --integrations --kind --labels --lastError --lastHeartbeatAt --memoryLimitBytes --memoryRequestBytes --name --namespaceId --realm --replicas --requiredConfigs --requiredSecrets --resourceDefinitionId --slug --spec --status --statusDetail --statusObserved --storageClass --storageSizeBytes --storageTotalBytes --updatedBy --updatedByPrincipal +csdk platform-resources-health update --id [--annotations ] [--cpuLimitMillicores ] [--cpuRequestMillicores ] [--createdBy ] [--createdByPrincipal ] [--errorCount ] [--imageRef ] [--installationId ] [--integrations ] [--kind ] [--labels ] [--lastError ] [--lastHeartbeatAt ] [--memoryLimitBytes ] [--memoryRequestBytes ] [--name ] [--namespaceId ] [--realm ] [--replicas ] [--requiredConfigs ] [--requiredSecrets ] [--resourceDefinitionId ] [--slug ] [--spec ] [--status ] [--statusDetail ] [--statusObserved ] [--storageClass ] [--storageSizeBytes ] [--storageTotalBytes ] [--updatedBy ] [--updatedByPrincipal ] csdk platform-resources-health delete --id ``` @@ -58,7 +58,7 @@ csdk platform-resources-health list --where.id.equalTo --orderBy ID_ASC ### Create a platformResourcesHealth ```bash -csdk platform-resources-health create --annotations --cpuLimitMillicores --cpuRequestMillicores --createdBy --errorCount --installationId --integrations --kind --labels --lastError --lastHeartbeatAt --memoryLimitBytes --memoryRequestBytes --name --namespaceId --realm --replicas --requiredConfigs --requiredSecrets --resourceDefinitionId --slug --spec --status --statusDetail --statusObserved --storageClass --storageSizeBytes --updatedBy +csdk platform-resources-health create --annotations --cpuLimitMillicores --cpuRequestMillicores --createdBy --createdByPrincipal --errorCount --imageRef --installationId --integrations --kind --labels --lastError --lastHeartbeatAt --memoryLimitBytes --memoryRequestBytes --name --namespaceId --realm --replicas --requiredConfigs --requiredSecrets --resourceDefinitionId --slug --spec --status --statusDetail --statusObserved --storageClass --storageSizeBytes --storageTotalBytes --updatedBy --updatedByPrincipal ``` ### Get a platformResourcesHealth by id diff --git a/.agents/skills/cli-compute/references/platform-webhook-endpoint.md b/.agents/skills/cli-compute/references/platform-webhook-endpoint.md index 3e2f0c307b..ef4d8f81c7 100644 --- a/.agents/skills/cli-compute/references/platform-webhook-endpoint.md +++ b/.agents/skills/cli-compute/references/platform-webhook-endpoint.md @@ -12,8 +12,8 @@ csdk platform-webhook-endpoint list --where.. --orderBy csdk platform-webhook-endpoint find-first --where.. csdk platform-webhook-endpoint get --id -csdk platform-webhook-endpoint create --functionDefinitionId --host --namespaceId --path --signingSecretName [--active ] [--createdBy ] [--provider ] [--replayWindowSeconds ] [--updatedBy ] -csdk platform-webhook-endpoint update --id [--active ] [--createdBy ] [--functionDefinitionId ] [--host ] [--namespaceId ] [--path ] [--provider ] [--replayWindowSeconds ] [--signingSecretName ] [--updatedBy ] +csdk platform-webhook-endpoint create --functionDefinitionId --host --namespaceId --path --signingSecretName [--active ] [--createdBy ] [--createdByPrincipal ] [--provider ] [--replayWindowSeconds ] [--updatedBy ] [--updatedByPrincipal ] +csdk platform-webhook-endpoint update --id [--active ] [--createdBy ] [--createdByPrincipal ] [--functionDefinitionId ] [--host ] [--namespaceId ] [--path ] [--provider ] [--replayWindowSeconds ] [--signingSecretName ] [--updatedBy ] [--updatedByPrincipal ] csdk platform-webhook-endpoint delete --id ``` @@ -58,7 +58,7 @@ csdk platform-webhook-endpoint list --where.id.equalTo --orderBy ID_ASC ### Create a platformWebhookEndpoint ```bash -csdk platform-webhook-endpoint create --functionDefinitionId --host --namespaceId --path --signingSecretName [--active ] [--createdBy ] [--provider ] [--replayWindowSeconds ] [--updatedBy ] +csdk platform-webhook-endpoint create --functionDefinitionId --host --namespaceId --path --signingSecretName [--active ] [--createdBy ] [--createdByPrincipal ] [--provider ] [--replayWindowSeconds ] [--updatedBy ] [--updatedByPrincipal ] ``` ### Get a platformWebhookEndpoint by id diff --git a/.agents/skills/cli-compute/references/proposal-comment.md b/.agents/skills/cli-compute/references/proposal-comment.md new file mode 100644 index 0000000000..a22578be7e --- /dev/null +++ b/.agents/skills/cli-compute/references/proposal-comment.md @@ -0,0 +1,129 @@ +# proposalComment + + + +CRUD operations for ProposalComment records via csdk CLI + +**pgvector embedding fields:** `embedding` +High-dimensional vector columns for semantic similarity search. Query via the Unified Search API pgvector adapter using cosine, L2, or inner-product distance. Supports chunk-aware search: set `includeChunks: true` in VectorNearbyInput to transparently query across parent and chunk embeddings, returning the minimum distance. + +**Unified Search API fields:** `bodyTrgmSimilarity`, `pathTrgmSimilarity`, `search`, `searchScore` +Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. + +## Usage + +```bash +csdk proposal-comment list +csdk proposal-comment list --where.. --orderBy +csdk proposal-comment list --limit 10 --after +csdk proposal-comment find-first --where.. +csdk proposal-comment search +csdk proposal-comment get --id +csdk proposal-comment create --body --databaseId --proposalId [--actorId ] [--attachments ] [--createdBy ] [--createdByPrincipal ] [--embedding ] [--line ] [--outdatedAt ] [--path ] [--resolvedAt ] [--updatedBy ] [--updatedByPrincipal ] +csdk proposal-comment update --id [--actorId ] [--attachments ] [--body ] [--createdBy ] [--createdByPrincipal ] [--databaseId ] [--embedding ] [--line ] [--outdatedAt ] [--path ] [--proposalId ] [--resolvedAt ] [--updatedBy ] [--updatedByPrincipal ] +csdk proposal-comment delete --id +``` + +## Examples + +### List proposalComment records + +```bash +csdk proposal-comment list +``` + +### List proposalComment records with pagination + +```bash +csdk proposal-comment list --limit 10 --offset 0 +``` + +### List proposalComment records with cursor pagination + +```bash +csdk proposal-comment list --limit 10 --after +``` + +### Find first matching proposalComment + +```bash +csdk proposal-comment find-first --where.id.equalTo +``` + +### List proposalComment records with field selection + +```bash +csdk proposal-comment list --select id,id +``` + +### List proposalComment records with filtering and ordering + +```bash +csdk proposal-comment list --where.id.equalTo --orderBy ID_ASC +``` + +### Vector similarity search via `embedding` (manual vector) + +```bash +# Pass a pre-computed vector array via dot-notation +csdk proposal-comment list --where.embedding.vector '[0.1,0.2,0.3]' --where.embedding.distance 1.0 --select title,embeddingVectorDistance +``` + +### Vector semantic search via `embedding` with --auto-embed + +```bash +# --auto-embed converts text to vectors using the configured embedder (e.g. Ollama nomic-embed-text) +EMBEDDER_PROVIDER=ollama csdk proposal-comment search "semantic query" --auto-embed --select title,embeddingVectorDistance +EMBEDDER_PROVIDER=ollama csdk proposal-comment list --where.embedding.vector "semantic query" --auto-embed --select title,embeddingVectorDistance +``` + +### Create/update with auto-embedded `embedding` via --auto-embed + +```bash +# --auto-embed on create/update converts text strings in vector fields to embeddings before saving +EMBEDDER_PROVIDER=ollama csdk proposal-comment create --embedding "text to embed" --auto-embed +EMBEDDER_PROVIDER=ollama csdk proposal-comment update --embedding "new text to embed" --auto-embed +``` + +### Fuzzy search via trigram similarity (`trgmBody`) + +```bash +csdk proposal-comment list --where.trgmBody.value "approximate query" --where.trgmBody.threshold 0.3 --select title,bodyTrgmSimilarity +``` + +### Fuzzy search via trigram similarity (`trgmPath`) + +```bash +csdk proposal-comment list --where.trgmPath.value "approximate query" --where.trgmPath.threshold 0.3 --select title,pathTrgmSimilarity +``` + +### Full-text search via tsvector (`search`) + +```bash +csdk proposal-comment list --where.search "search query" --select title,tsvRank +``` + +### Composite search (unifiedSearch dispatches to all text adapters) + +```bash +csdk proposal-comment list --where.unifiedSearch "search query" --select title,bodyTrgmSimilarity,pathTrgmSimilarity,tsvRank,searchScore +``` + +### Search with pagination and field projection + +```bash +csdk proposal-comment list --where.unifiedSearch "query" --limit 10 --select id,title,searchScore +csdk proposal-comment search "query" --limit 10 --select id,title,searchScore +``` + +### Create a proposalComment + +```bash +csdk proposal-comment create --body --databaseId --proposalId [--actorId ] [--attachments ] [--createdBy ] [--createdByPrincipal ] [--embedding ] [--line ] [--outdatedAt ] [--path ] [--resolvedAt ] [--updatedBy ] [--updatedByPrincipal ] +``` + +### Get a proposalComment by id + +```bash +csdk proposal-comment get --id +``` diff --git a/.agents/skills/cli-compute/references/proposal-file-view.md b/.agents/skills/cli-compute/references/proposal-file-view.md new file mode 100644 index 0000000000..d13e36c379 --- /dev/null +++ b/.agents/skills/cli-compute/references/proposal-file-view.md @@ -0,0 +1,68 @@ +# proposalFileView + + + +CRUD operations for ProposalFileView records via csdk CLI + +## Usage + +```bash +csdk proposal-file-view list +csdk proposal-file-view list --where.. --orderBy +csdk proposal-file-view list --limit 10 --after +csdk proposal-file-view find-first --where.. +csdk proposal-file-view get --id +csdk proposal-file-view create --blobSha --databaseId --path --proposalId --reviewerId [--createdByPrincipal ] [--updatedByPrincipal ] [--viewedAt ] +csdk proposal-file-view update --id [--blobSha ] [--createdByPrincipal ] [--databaseId ] [--path ] [--proposalId ] [--reviewerId ] [--updatedByPrincipal ] [--viewedAt ] +csdk proposal-file-view delete --id +``` + +## Examples + +### List proposalFileView records + +```bash +csdk proposal-file-view list +``` + +### List proposalFileView records with pagination + +```bash +csdk proposal-file-view list --limit 10 --offset 0 +``` + +### List proposalFileView records with cursor pagination + +```bash +csdk proposal-file-view list --limit 10 --after +``` + +### Find first matching proposalFileView + +```bash +csdk proposal-file-view find-first --where.id.equalTo +``` + +### List proposalFileView records with field selection + +```bash +csdk proposal-file-view list --select id,id +``` + +### List proposalFileView records with filtering and ordering + +```bash +csdk proposal-file-view list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a proposalFileView + +```bash +csdk proposal-file-view create --blobSha --databaseId --path --proposalId --reviewerId [--createdByPrincipal ] [--updatedByPrincipal ] [--viewedAt ] +``` + +### Get a proposalFileView by id + +```bash +csdk proposal-file-view get --id +``` diff --git a/.agents/skills/cli-compute/references/proposal-reaction.md b/.agents/skills/cli-compute/references/proposal-reaction.md new file mode 100644 index 0000000000..baec39d595 --- /dev/null +++ b/.agents/skills/cli-compute/references/proposal-reaction.md @@ -0,0 +1,68 @@ +# proposalReaction + + + +CRUD operations for ProposalReaction records via csdk CLI + +## Usage + +```bash +csdk proposal-reaction list +csdk proposal-reaction list --where.. --orderBy +csdk proposal-reaction list --limit 10 --after +csdk proposal-reaction find-first --where.. +csdk proposal-reaction get --id +csdk proposal-reaction create --actorId --databaseId --emoji --proposalId [--commentId ] [--createdByPrincipal ] [--updatedByPrincipal ] +csdk proposal-reaction update --id [--actorId ] [--commentId ] [--createdByPrincipal ] [--databaseId ] [--emoji ] [--proposalId ] [--updatedByPrincipal ] +csdk proposal-reaction delete --id +``` + +## Examples + +### List proposalReaction records + +```bash +csdk proposal-reaction list +``` + +### List proposalReaction records with pagination + +```bash +csdk proposal-reaction list --limit 10 --offset 0 +``` + +### List proposalReaction records with cursor pagination + +```bash +csdk proposal-reaction list --limit 10 --after +``` + +### Find first matching proposalReaction + +```bash +csdk proposal-reaction find-first --where.id.equalTo +``` + +### List proposalReaction records with field selection + +```bash +csdk proposal-reaction list --select id,id +``` + +### List proposalReaction records with filtering and ordering + +```bash +csdk proposal-reaction list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a proposalReaction + +```bash +csdk proposal-reaction create --actorId --databaseId --emoji --proposalId [--commentId ] [--createdByPrincipal ] [--updatedByPrincipal ] +``` + +### Get a proposalReaction by id + +```bash +csdk proposal-reaction get --id +``` diff --git a/.agents/skills/cli-compute/references/proposal-review.md b/.agents/skills/cli-compute/references/proposal-review.md new file mode 100644 index 0000000000..4744f7d013 --- /dev/null +++ b/.agents/skills/cli-compute/references/proposal-review.md @@ -0,0 +1,109 @@ +# proposalReview + + + +CRUD operations for ProposalReview records via csdk CLI + +**Unified Search API fields:** `bodyTrgmSimilarity`, `commitShaTrgmSimilarity`, `search`, `searchScore`, `verdictTrgmSimilarity` +Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. + +## Usage + +```bash +csdk proposal-review list +csdk proposal-review list --where.. --orderBy +csdk proposal-review list --limit 10 --after +csdk proposal-review find-first --where.. +csdk proposal-review search +csdk proposal-review get --id +csdk proposal-review create --commitSha --databaseId --proposalId --reviewerId --verdict [--body ] [--createdByPrincipal ] [--submittedAt ] [--updatedByPrincipal ] +csdk proposal-review update --id [--body ] [--commitSha ] [--createdByPrincipal ] [--databaseId ] [--proposalId ] [--reviewerId ] [--submittedAt ] [--updatedByPrincipal ] [--verdict ] +csdk proposal-review delete --id +``` + +## Examples + +### List proposalReview records + +```bash +csdk proposal-review list +``` + +### List proposalReview records with pagination + +```bash +csdk proposal-review list --limit 10 --offset 0 +``` + +### List proposalReview records with cursor pagination + +```bash +csdk proposal-review list --limit 10 --after +``` + +### Find first matching proposalReview + +```bash +csdk proposal-review find-first --where.id.equalTo +``` + +### List proposalReview records with field selection + +```bash +csdk proposal-review list --select id,id +``` + +### List proposalReview records with filtering and ordering + +```bash +csdk proposal-review list --where.id.equalTo --orderBy ID_ASC +``` + +### Fuzzy search via trigram similarity (`trgmBody`) + +```bash +csdk proposal-review list --where.trgmBody.value "approximate query" --where.trgmBody.threshold 0.3 --select title,bodyTrgmSimilarity +``` + +### Fuzzy search via trigram similarity (`trgmCommitSha`) + +```bash +csdk proposal-review list --where.trgmCommitSha.value "approximate query" --where.trgmCommitSha.threshold 0.3 --select title,commitShaTrgmSimilarity +``` + +### Full-text search via tsvector (`search`) + +```bash +csdk proposal-review list --where.search "search query" --select title,tsvRank +``` + +### Fuzzy search via trigram similarity (`trgmVerdict`) + +```bash +csdk proposal-review list --where.trgmVerdict.value "approximate query" --where.trgmVerdict.threshold 0.3 --select title,verdictTrgmSimilarity +``` + +### Composite search (unifiedSearch dispatches to all text adapters) + +```bash +csdk proposal-review list --where.unifiedSearch "search query" --select title,bodyTrgmSimilarity,commitShaTrgmSimilarity,tsvRank,searchScore,verdictTrgmSimilarity +``` + +### Search with pagination and field projection + +```bash +csdk proposal-review list --where.unifiedSearch "query" --limit 10 --select id,title,searchScore +csdk proposal-review search "query" --limit 10 --select id,title,searchScore +``` + +### Create a proposalReview + +```bash +csdk proposal-review create --commitSha --databaseId --proposalId --reviewerId --verdict [--body ] [--createdByPrincipal ] [--submittedAt ] [--updatedByPrincipal ] +``` + +### Get a proposalReview by id + +```bash +csdk proposal-review get --id +``` diff --git a/.agents/skills/cli-compute/references/proposal.md b/.agents/skills/cli-compute/references/proposal.md new file mode 100644 index 0000000000..eac914e857 --- /dev/null +++ b/.agents/skills/cli-compute/references/proposal.md @@ -0,0 +1,177 @@ +# proposal + + + +CRUD operations for Proposal records via csdk CLI + +**pgvector embedding fields:** `embedding` +High-dimensional vector columns for semantic similarity search. Query via the Unified Search API pgvector adapter using cosine, L2, or inner-product distance. Supports chunk-aware search: set `includeChunks: true` in VectorNearbyInput to transparently query across parent and chunk embeddings, returning the minimum distance. + +**Unified Search API fields:** `bodyTrgmSimilarity`, `closedReasonTrgmSimilarity`, `kindTrgmSimilarity`, `mergeCommitTrgmSimilarity`, `mergeMethodTrgmSimilarity`, `resolutionTrgmSimilarity`, `search`, `searchScore`, `sourceRefTrgmSimilarity`, `statusTrgmSimilarity`, `targetRefTrgmSimilarity`, `titleTrgmSimilarity` +Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. + +## Usage + +```bash +csdk proposal list +csdk proposal list --where.. --orderBy +csdk proposal list --limit 10 --after +csdk proposal find-first --where.. +csdk proposal search +csdk proposal get --id +csdk proposal create --databaseId --repositoryId --title [--actorId ] [--body ] [--closedReason ] [--createdBy ] [--createdByPrincipal ] [--decidedAt ] [--dueAt ] [--embedding ] [--kind ] [--labels ] [--mergeCommit ] [--mergeMethod ] [--mergeRequestedAt ] [--mergedAt ] [--metadata ] [--parentId ] [--priority ] [--resolution ] [--sourceRef ] [--status ] [--targetRef ] [--updatedBy ] [--updatedByPrincipal ] +csdk proposal update --id [--actorId ] [--body ] [--closedReason ] [--createdBy ] [--createdByPrincipal ] [--databaseId ] [--decidedAt ] [--dueAt ] [--embedding ] [--kind ] [--labels ] [--mergeCommit ] [--mergeMethod ] [--mergeRequestedAt ] [--mergedAt ] [--metadata ] [--parentId ] [--priority ] [--repositoryId ] [--resolution ] [--sourceRef ] [--status ] [--targetRef ] [--title ] [--updatedBy ] [--updatedByPrincipal ] +csdk proposal delete --id +``` + +## Examples + +### List proposal records + +```bash +csdk proposal list +``` + +### List proposal records with pagination + +```bash +csdk proposal list --limit 10 --offset 0 +``` + +### List proposal records with cursor pagination + +```bash +csdk proposal list --limit 10 --after +``` + +### Find first matching proposal + +```bash +csdk proposal find-first --where.id.equalTo +``` + +### List proposal records with field selection + +```bash +csdk proposal list --select id,id +``` + +### List proposal records with filtering and ordering + +```bash +csdk proposal list --where.id.equalTo --orderBy ID_ASC +``` + +### Vector similarity search via `embedding` (manual vector) + +```bash +# Pass a pre-computed vector array via dot-notation +csdk proposal list --where.embedding.vector '[0.1,0.2,0.3]' --where.embedding.distance 1.0 --select title,embeddingVectorDistance +``` + +### Vector semantic search via `embedding` with --auto-embed + +```bash +# --auto-embed converts text to vectors using the configured embedder (e.g. Ollama nomic-embed-text) +EMBEDDER_PROVIDER=ollama csdk proposal search "semantic query" --auto-embed --select title,embeddingVectorDistance +EMBEDDER_PROVIDER=ollama csdk proposal list --where.embedding.vector "semantic query" --auto-embed --select title,embeddingVectorDistance +``` + +### Create/update with auto-embedded `embedding` via --auto-embed + +```bash +# --auto-embed on create/update converts text strings in vector fields to embeddings before saving +EMBEDDER_PROVIDER=ollama csdk proposal create --embedding "text to embed" --auto-embed +EMBEDDER_PROVIDER=ollama csdk proposal update --embedding "new text to embed" --auto-embed +``` + +### Fuzzy search via trigram similarity (`trgmBody`) + +```bash +csdk proposal list --where.trgmBody.value "approximate query" --where.trgmBody.threshold 0.3 --select title,bodyTrgmSimilarity +``` + +### Fuzzy search via trigram similarity (`trgmClosedReason`) + +```bash +csdk proposal list --where.trgmClosedReason.value "approximate query" --where.trgmClosedReason.threshold 0.3 --select title,closedReasonTrgmSimilarity +``` + +### Fuzzy search via trigram similarity (`trgmKind`) + +```bash +csdk proposal list --where.trgmKind.value "approximate query" --where.trgmKind.threshold 0.3 --select title,kindTrgmSimilarity +``` + +### Fuzzy search via trigram similarity (`trgmMergeCommit`) + +```bash +csdk proposal list --where.trgmMergeCommit.value "approximate query" --where.trgmMergeCommit.threshold 0.3 --select title,mergeCommitTrgmSimilarity +``` + +### Fuzzy search via trigram similarity (`trgmMergeMethod`) + +```bash +csdk proposal list --where.trgmMergeMethod.value "approximate query" --where.trgmMergeMethod.threshold 0.3 --select title,mergeMethodTrgmSimilarity +``` + +### Fuzzy search via trigram similarity (`trgmResolution`) + +```bash +csdk proposal list --where.trgmResolution.value "approximate query" --where.trgmResolution.threshold 0.3 --select title,resolutionTrgmSimilarity +``` + +### Full-text search via tsvector (`search`) + +```bash +csdk proposal list --where.search "search query" --select title,tsvRank +``` + +### Fuzzy search via trigram similarity (`trgmSourceRef`) + +```bash +csdk proposal list --where.trgmSourceRef.value "approximate query" --where.trgmSourceRef.threshold 0.3 --select title,sourceRefTrgmSimilarity +``` + +### Fuzzy search via trigram similarity (`trgmStatus`) + +```bash +csdk proposal list --where.trgmStatus.value "approximate query" --where.trgmStatus.threshold 0.3 --select title,statusTrgmSimilarity +``` + +### Fuzzy search via trigram similarity (`trgmTargetRef`) + +```bash +csdk proposal list --where.trgmTargetRef.value "approximate query" --where.trgmTargetRef.threshold 0.3 --select title,targetRefTrgmSimilarity +``` + +### Fuzzy search via trigram similarity (`trgmTitle`) + +```bash +csdk proposal list --where.trgmTitle.value "approximate query" --where.trgmTitle.threshold 0.3 --select title,titleTrgmSimilarity +``` + +### Composite search (unifiedSearch dispatches to all text adapters) + +```bash +csdk proposal list --where.unifiedSearch "search query" --select title,bodyTrgmSimilarity,closedReasonTrgmSimilarity,kindTrgmSimilarity,mergeCommitTrgmSimilarity,mergeMethodTrgmSimilarity,resolutionTrgmSimilarity,tsvRank,searchScore,sourceRefTrgmSimilarity,statusTrgmSimilarity,targetRefTrgmSimilarity,titleTrgmSimilarity +``` + +### Search with pagination and field projection + +```bash +csdk proposal list --where.unifiedSearch "query" --limit 10 --select id,title,searchScore +csdk proposal search "query" --limit 10 --select id,title,searchScore +``` + +### Create a proposal + +```bash +csdk proposal create --databaseId --repositoryId --title [--actorId ] [--body ] [--closedReason ] [--createdBy ] [--createdByPrincipal ] [--decidedAt ] [--dueAt ] [--embedding ] [--kind ] [--labels ] [--mergeCommit ] [--mergeMethod ] [--mergeRequestedAt ] [--mergedAt ] [--metadata ] [--parentId ] [--priority ] [--resolution ] [--sourceRef ] [--status ] [--targetRef ] [--updatedBy ] [--updatedByPrincipal ] +``` + +### Get a proposal by id + +```bash +csdk proposal get --id +``` diff --git a/.agents/skills/cli-compute/references/proposals-chunk.md b/.agents/skills/cli-compute/references/proposals-chunk.md new file mode 100644 index 0000000000..6d088e85f4 --- /dev/null +++ b/.agents/skills/cli-compute/references/proposals-chunk.md @@ -0,0 +1,105 @@ +# proposalsChunk + + + +CRUD operations for ProposalsChunk records via csdk CLI + +**pgvector embedding fields:** `embedding` +High-dimensional vector columns for semantic similarity search. Query via the Unified Search API pgvector adapter using cosine, L2, or inner-product distance. Supports chunk-aware search: set `includeChunks: true` in VectorNearbyInput to transparently query across parent and chunk embeddings, returning the minimum distance. + +**Unified Search API fields:** `searchScore` +Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. + +## Usage + +```bash +csdk proposals-chunk list +csdk proposals-chunk list --where.. --orderBy +csdk proposals-chunk list --limit 10 --after +csdk proposals-chunk find-first --where.. +csdk proposals-chunk search +csdk proposals-chunk get --id +csdk proposals-chunk create --body --proposalsId [--actorId ] [--chunkIndex ] [--databaseId ] [--embedding ] [--metadata ] +csdk proposals-chunk update --id [--actorId ] [--body ] [--chunkIndex ] [--databaseId ] [--embedding ] [--metadata ] [--proposalsId ] +csdk proposals-chunk delete --id +``` + +## Examples + +### List proposalsChunk records + +```bash +csdk proposals-chunk list +``` + +### List proposalsChunk records with pagination + +```bash +csdk proposals-chunk list --limit 10 --offset 0 +``` + +### List proposalsChunk records with cursor pagination + +```bash +csdk proposals-chunk list --limit 10 --after +``` + +### Find first matching proposalsChunk + +```bash +csdk proposals-chunk find-first --where.id.equalTo +``` + +### List proposalsChunk records with field selection + +```bash +csdk proposals-chunk list --select id,id +``` + +### List proposalsChunk records with filtering and ordering + +```bash +csdk proposals-chunk list --where.id.equalTo --orderBy ID_ASC +``` + +### Vector similarity search via `embedding` (manual vector) + +```bash +# Pass a pre-computed vector array via dot-notation +csdk proposals-chunk list --where.embedding.vector '[0.1,0.2,0.3]' --where.embedding.distance 1.0 --select title,embeddingVectorDistance +``` + +### Vector semantic search via `embedding` with --auto-embed + +```bash +# --auto-embed converts text to vectors using the configured embedder (e.g. Ollama nomic-embed-text) +EMBEDDER_PROVIDER=ollama csdk proposals-chunk search "semantic query" --auto-embed --select title,embeddingVectorDistance +EMBEDDER_PROVIDER=ollama csdk proposals-chunk list --where.embedding.vector "semantic query" --auto-embed --select title,embeddingVectorDistance +``` + +### Create/update with auto-embedded `embedding` via --auto-embed + +```bash +# --auto-embed on create/update converts text strings in vector fields to embeddings before saving +EMBEDDER_PROVIDER=ollama csdk proposals-chunk create --embedding "text to embed" --auto-embed +EMBEDDER_PROVIDER=ollama csdk proposals-chunk update --embedding "new text to embed" --auto-embed +``` + +### Search with pagination and field projection + +```bash +csdk proposals-chunk list --where.unifiedSearch "query" --limit 10 --select id,title,searchScore +csdk proposals-chunk search "query" --limit 10 --select id,title,searchScore +``` + +### Create a proposalsChunk + +```bash +csdk proposals-chunk create --body --proposalsId [--actorId ] [--chunkIndex ] [--databaseId ] [--embedding ] [--metadata ] +``` + +### Get a proposalsChunk by id + +```bash +csdk proposals-chunk get --id +``` diff --git a/.agents/skills/cli-compute/references/provision-bucket.md b/.agents/skills/cli-compute/references/provision-bucket.md index cc17ffbc21..5fbe38a003 100644 --- a/.agents/skills/cli-compute/references/provision-bucket.md +++ b/.agents/skills/cli-compute/references/provision-bucket.md @@ -2,10 +2,11 @@ -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. +Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. ## Usage diff --git a/.agents/skills/cli-compute/references/registry-binding.md b/.agents/skills/cli-compute/references/registry-binding.md new file mode 100644 index 0000000000..4f8b9c79bc --- /dev/null +++ b/.agents/skills/cli-compute/references/registry-binding.md @@ -0,0 +1,68 @@ +# registryBinding + + + +CRUD operations for RegistryBinding records via csdk CLI + +## Usage + +```bash +csdk registry-binding list +csdk registry-binding list --where.. --orderBy +csdk registry-binding list --limit 10 --after +csdk registry-binding find-first --where.. +csdk registry-binding get --id +csdk registry-binding create --databaseId --namespaceId --registryHost --registryId [--createdBy ] [--createdByPrincipal ] [--metadata ] [--observedCredentialVersion ] [--pullSecretName ] [--realm ] [--status ] [--updatedBy ] [--updatedByPrincipal ] +csdk registry-binding update --id [--createdBy ] [--createdByPrincipal ] [--databaseId ] [--metadata ] [--namespaceId ] [--observedCredentialVersion ] [--pullSecretName ] [--realm ] [--registryHost ] [--registryId ] [--status ] [--updatedBy ] [--updatedByPrincipal ] +csdk registry-binding delete --id +``` + +## Examples + +### List registryBinding records + +```bash +csdk registry-binding list +``` + +### List registryBinding records with pagination + +```bash +csdk registry-binding list --limit 10 --offset 0 +``` + +### List registryBinding records with cursor pagination + +```bash +csdk registry-binding list --limit 10 --after +``` + +### Find first matching registryBinding + +```bash +csdk registry-binding find-first --where.id.equalTo +``` + +### List registryBinding records with field selection + +```bash +csdk registry-binding list --select id,id +``` + +### List registryBinding records with filtering and ordering + +```bash +csdk registry-binding list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a registryBinding + +```bash +csdk registry-binding create --databaseId --namespaceId --registryHost --registryId [--createdBy ] [--createdByPrincipal ] [--metadata ] [--observedCredentialVersion ] [--pullSecretName ] [--realm ] [--status ] [--updatedBy ] [--updatedByPrincipal ] +``` + +### Get a registryBinding by id + +```bash +csdk registry-binding get --id +``` diff --git a/.agents/skills/cli-compute/references/registry-grant.md b/.agents/skills/cli-compute/references/registry-grant.md new file mode 100644 index 0000000000..06c901a0ea --- /dev/null +++ b/.agents/skills/cli-compute/references/registry-grant.md @@ -0,0 +1,68 @@ +# registryGrant + + + +CRUD operations for RegistryGrant records via csdk CLI + +## Usage + +```bash +csdk registry-grant list +csdk registry-grant list --where.. --orderBy +csdk registry-grant list --limit 10 --after +csdk registry-grant find-first --where.. +csdk registry-grant get --id +csdk registry-grant create --databaseId --granteeKey --granteeScope --registryId [--actions ] [--createdByPrincipal ] [--expiresAt ] [--grantedBy ] [--updatedByPrincipal ] +csdk registry-grant update --id [--actions ] [--createdByPrincipal ] [--databaseId ] [--expiresAt ] [--grantedBy ] [--granteeKey ] [--granteeScope ] [--registryId ] [--updatedByPrincipal ] +csdk registry-grant delete --id +``` + +## Examples + +### List registryGrant records + +```bash +csdk registry-grant list +``` + +### List registryGrant records with pagination + +```bash +csdk registry-grant list --limit 10 --offset 0 +``` + +### List registryGrant records with cursor pagination + +```bash +csdk registry-grant list --limit 10 --after +``` + +### Find first matching registryGrant + +```bash +csdk registry-grant find-first --where.id.equalTo +``` + +### List registryGrant records with field selection + +```bash +csdk registry-grant list --select id,id +``` + +### List registryGrant records with filtering and ordering + +```bash +csdk registry-grant list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a registryGrant + +```bash +csdk registry-grant create --databaseId --granteeKey --granteeScope --registryId [--actions ] [--createdByPrincipal ] [--expiresAt ] [--grantedBy ] [--updatedByPrincipal ] +``` + +### Get a registryGrant by id + +```bash +csdk registry-grant get --id +``` diff --git a/.agents/skills/cli-compute/references/registry.md b/.agents/skills/cli-compute/references/registry.md new file mode 100644 index 0000000000..4d9d6c76ce --- /dev/null +++ b/.agents/skills/cli-compute/references/registry.md @@ -0,0 +1,68 @@ +# registry + + + +CRUD operations for Registry records via csdk CLI + +## Usage + +```bash +csdk registry list +csdk registry list --where.. --orderBy +csdk registry list --limit 10 --after +csdk registry find-first --where.. +csdk registry get --id +csdk registry create --databaseId --kind --name [--authMode ] [--basePath ] [--createdByPrincipal ] [--credentialSecretName ] [--host ] [--installationId ] [--isPublished ] [--labels ] [--lastError ] [--metadata ] [--platformOnly ] [--role ] [--status ] [--updatedByPrincipal ] +csdk registry update --id [--authMode ] [--basePath ] [--createdByPrincipal ] [--credentialSecretName ] [--databaseId ] [--host ] [--installationId ] [--isPublished ] [--kind ] [--labels ] [--lastError ] [--metadata ] [--name ] [--platformOnly ] [--role ] [--status ] [--updatedByPrincipal ] +csdk registry delete --id +``` + +## Examples + +### List registry records + +```bash +csdk registry list +``` + +### List registry records with pagination + +```bash +csdk registry list --limit 10 --offset 0 +``` + +### List registry records with cursor pagination + +```bash +csdk registry list --limit 10 --after +``` + +### Find first matching registry + +```bash +csdk registry find-first --where.id.equalTo +``` + +### List registry records with field selection + +```bash +csdk registry list --select id,id +``` + +### List registry records with filtering and ordering + +```bash +csdk registry list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a registry + +```bash +csdk registry create --databaseId --kind --name [--authMode ] [--basePath ] [--createdByPrincipal ] [--credentialSecretName ] [--host ] [--installationId ] [--isPublished ] [--labels ] [--lastError ] [--metadata ] [--platformOnly ] [--role ] [--status ] [--updatedByPrincipal ] +``` + +### Get a registry by id + +```bash +csdk registry get --id +``` diff --git a/.agents/skills/cli-compute/references/repository-event.md b/.agents/skills/cli-compute/references/repository-event.md new file mode 100644 index 0000000000..eaf574f673 --- /dev/null +++ b/.agents/skills/cli-compute/references/repository-event.md @@ -0,0 +1,68 @@ +# repositoryEvent + + + +CRUD operations for RepositoryEvent records via csdk CLI + +## Usage + +```bash +csdk repository-event list +csdk repository-event list --where.. --orderBy +csdk repository-event list --limit 10 --after +csdk repository-event find-first --where.. +csdk repository-event get --id +csdk repository-event create --databaseId --eventType --repositoryId [--actorId ] [--commitSha ] [--createdByPrincipal ] [--deliveryId ] [--metadata ] [--payload ] [--ref ] [--updatedByPrincipal ] +csdk repository-event update --id [--actorId ] [--commitSha ] [--createdByPrincipal ] [--databaseId ] [--deliveryId ] [--eventType ] [--metadata ] [--payload ] [--ref ] [--repositoryId ] [--updatedByPrincipal ] +csdk repository-event delete --id +``` + +## Examples + +### List repositoryEvent records + +```bash +csdk repository-event list +``` + +### List repositoryEvent records with pagination + +```bash +csdk repository-event list --limit 10 --offset 0 +``` + +### List repositoryEvent records with cursor pagination + +```bash +csdk repository-event list --limit 10 --after +``` + +### Find first matching repositoryEvent + +```bash +csdk repository-event find-first --where.id.equalTo +``` + +### List repositoryEvent records with field selection + +```bash +csdk repository-event list --select id,id +``` + +### List repositoryEvent records with filtering and ordering + +```bash +csdk repository-event list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a repositoryEvent + +```bash +csdk repository-event create --databaseId --eventType --repositoryId [--actorId ] [--commitSha ] [--createdByPrincipal ] [--deliveryId ] [--metadata ] [--payload ] [--ref ] [--updatedByPrincipal ] +``` + +### Get a repositoryEvent by id + +```bash +csdk repository-event get --id +``` diff --git a/.agents/skills/cli-compute/references/repository-required-check.md b/.agents/skills/cli-compute/references/repository-required-check.md new file mode 100644 index 0000000000..a7a7a12c2b --- /dev/null +++ b/.agents/skills/cli-compute/references/repository-required-check.md @@ -0,0 +1,68 @@ +# repositoryRequiredCheck + + + +CRUD operations for RepositoryRequiredCheck records via csdk CLI + +## Usage + +```bash +csdk repository-required-check list +csdk repository-required-check list --where.. --orderBy +csdk repository-required-check list --limit 10 --after +csdk repository-required-check find-first --where.. +csdk repository-required-check get --id +csdk repository-required-check create --databaseId --repositoryId --workflowId +csdk repository-required-check update --id [--databaseId ] [--repositoryId ] [--workflowId ] +csdk repository-required-check delete --id +``` + +## Examples + +### List repositoryRequiredCheck records + +```bash +csdk repository-required-check list +``` + +### List repositoryRequiredCheck records with pagination + +```bash +csdk repository-required-check list --limit 10 --offset 0 +``` + +### List repositoryRequiredCheck records with cursor pagination + +```bash +csdk repository-required-check list --limit 10 --after +``` + +### Find first matching repositoryRequiredCheck + +```bash +csdk repository-required-check find-first --where.id.equalTo +``` + +### List repositoryRequiredCheck records with field selection + +```bash +csdk repository-required-check list --select id,id +``` + +### List repositoryRequiredCheck records with filtering and ordering + +```bash +csdk repository-required-check list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a repositoryRequiredCheck + +```bash +csdk repository-required-check create --databaseId --repositoryId --workflowId +``` + +### Get a repositoryRequiredCheck by id + +```bash +csdk repository-required-check get --id +``` diff --git a/.agents/skills/cli-compute/references/repository-workflow.md b/.agents/skills/cli-compute/references/repository-workflow.md new file mode 100644 index 0000000000..76af6d2c8a --- /dev/null +++ b/.agents/skills/cli-compute/references/repository-workflow.md @@ -0,0 +1,68 @@ +# repositoryWorkflow + + + +CRUD operations for RepositoryWorkflow records via csdk CLI + +## Usage + +```bash +csdk repository-workflow list +csdk repository-workflow list --where.. --orderBy +csdk repository-workflow list --limit 10 --after +csdk repository-workflow find-first --where.. +csdk repository-workflow get --id +csdk repository-workflow create --databaseId --eventType --name --repositoryId --slug [--cancelInProgress ] [--concurrencyKey ] [--createdBy ] [--createdByPrincipal ] [--graphId ] [--inputs ] [--isEnabled ] [--refPattern ] [--requiredSecrets ] [--updatedBy ] [--updatedByPrincipal ] +csdk repository-workflow update --id [--cancelInProgress ] [--concurrencyKey ] [--createdBy ] [--createdByPrincipal ] [--databaseId ] [--eventType ] [--graphId ] [--inputs ] [--isEnabled ] [--name ] [--refPattern ] [--repositoryId ] [--requiredSecrets ] [--slug ] [--updatedBy ] [--updatedByPrincipal ] +csdk repository-workflow delete --id +``` + +## Examples + +### List repositoryWorkflow records + +```bash +csdk repository-workflow list +``` + +### List repositoryWorkflow records with pagination + +```bash +csdk repository-workflow list --limit 10 --offset 0 +``` + +### List repositoryWorkflow records with cursor pagination + +```bash +csdk repository-workflow list --limit 10 --after +``` + +### Find first matching repositoryWorkflow + +```bash +csdk repository-workflow find-first --where.id.equalTo +``` + +### List repositoryWorkflow records with field selection + +```bash +csdk repository-workflow list --select id,id +``` + +### List repositoryWorkflow records with filtering and ordering + +```bash +csdk repository-workflow list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a repositoryWorkflow + +```bash +csdk repository-workflow create --databaseId --eventType --name --repositoryId --slug [--cancelInProgress ] [--concurrencyKey ] [--createdBy ] [--createdByPrincipal ] [--graphId ] [--inputs ] [--isEnabled ] [--refPattern ] [--requiredSecrets ] [--updatedBy ] [--updatedByPrincipal ] +``` + +### Get a repositoryWorkflow by id + +```bash +csdk repository-workflow get --id +``` diff --git a/.agents/skills/cli-compute/references/repository.md b/.agents/skills/cli-compute/references/repository.md new file mode 100644 index 0000000000..3d8aa93e43 --- /dev/null +++ b/.agents/skills/cli-compute/references/repository.md @@ -0,0 +1,165 @@ +# repository + + + +CRUD operations for Repository records via csdk CLI + +**pgvector embedding fields:** `embedding` +High-dimensional vector columns for semantic similarity search. Query via the Unified Search API pgvector adapter using cosine, L2, or inner-product distance. Supports chunk-aware search: set `includeChunks: true` in VectorNearbyInput to transparently query across parent and chunk embeddings, returning the minimum distance. + +**Unified Search API fields:** `cloneUrlTrgmSimilarity`, `defaultBranchTrgmSimilarity`, `descriptionTrgmSimilarity`, `externalIdTrgmSimilarity`, `nameTrgmSimilarity`, `providerTrgmSimilarity`, `search`, `searchScore`, `slugTrgmSimilarity`, `visibilityTrgmSimilarity` +Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. + +## Usage + +```bash +csdk repository list +csdk repository list --where.. --orderBy +csdk repository list --limit 10 --after +csdk repository find-first --where.. +csdk repository search +csdk repository get --id +csdk repository create --databaseId --name --slug [--cloneUrl ] [--createdBy ] [--createdByPrincipal ] [--defaultBranch ] [--description ] [--embedding ] [--externalId ] [--isArchived ] [--metadata ] [--ownerId ] [--provider ] [--updatedBy ] [--updatedByPrincipal ] [--visibility ] +csdk repository update --id [--cloneUrl ] [--createdBy ] [--createdByPrincipal ] [--databaseId ] [--defaultBranch ] [--description ] [--embedding ] [--externalId ] [--isArchived ] [--metadata ] [--name ] [--ownerId ] [--provider ] [--slug ] [--updatedBy ] [--updatedByPrincipal ] [--visibility ] +csdk repository delete --id +``` + +## Examples + +### List repository records + +```bash +csdk repository list +``` + +### List repository records with pagination + +```bash +csdk repository list --limit 10 --offset 0 +``` + +### List repository records with cursor pagination + +```bash +csdk repository list --limit 10 --after +``` + +### Find first matching repository + +```bash +csdk repository find-first --where.id.equalTo +``` + +### List repository records with field selection + +```bash +csdk repository list --select id,id +``` + +### List repository records with filtering and ordering + +```bash +csdk repository list --where.id.equalTo --orderBy ID_ASC +``` + +### Vector similarity search via `embedding` (manual vector) + +```bash +# Pass a pre-computed vector array via dot-notation +csdk repository list --where.embedding.vector '[0.1,0.2,0.3]' --where.embedding.distance 1.0 --select title,embeddingVectorDistance +``` + +### Vector semantic search via `embedding` with --auto-embed + +```bash +# --auto-embed converts text to vectors using the configured embedder (e.g. Ollama nomic-embed-text) +EMBEDDER_PROVIDER=ollama csdk repository search "semantic query" --auto-embed --select title,embeddingVectorDistance +EMBEDDER_PROVIDER=ollama csdk repository list --where.embedding.vector "semantic query" --auto-embed --select title,embeddingVectorDistance +``` + +### Create/update with auto-embedded `embedding` via --auto-embed + +```bash +# --auto-embed on create/update converts text strings in vector fields to embeddings before saving +EMBEDDER_PROVIDER=ollama csdk repository create --embedding "text to embed" --auto-embed +EMBEDDER_PROVIDER=ollama csdk repository update --embedding "new text to embed" --auto-embed +``` + +### Fuzzy search via trigram similarity (`trgmCloneUrl`) + +```bash +csdk repository list --where.trgmCloneUrl.value "approximate query" --where.trgmCloneUrl.threshold 0.3 --select title,cloneUrlTrgmSimilarity +``` + +### Fuzzy search via trigram similarity (`trgmDefaultBranch`) + +```bash +csdk repository list --where.trgmDefaultBranch.value "approximate query" --where.trgmDefaultBranch.threshold 0.3 --select title,defaultBranchTrgmSimilarity +``` + +### Fuzzy search via trigram similarity (`trgmDescription`) + +```bash +csdk repository list --where.trgmDescription.value "approximate query" --where.trgmDescription.threshold 0.3 --select title,descriptionTrgmSimilarity +``` + +### Fuzzy search via trigram similarity (`trgmExternalId`) + +```bash +csdk repository list --where.trgmExternalId.value "approximate query" --where.trgmExternalId.threshold 0.3 --select title,externalIdTrgmSimilarity +``` + +### Fuzzy search via trigram similarity (`trgmName`) + +```bash +csdk repository list --where.trgmName.value "approximate query" --where.trgmName.threshold 0.3 --select title,nameTrgmSimilarity +``` + +### Fuzzy search via trigram similarity (`trgmProvider`) + +```bash +csdk repository list --where.trgmProvider.value "approximate query" --where.trgmProvider.threshold 0.3 --select title,providerTrgmSimilarity +``` + +### Full-text search via tsvector (`search`) + +```bash +csdk repository list --where.search "search query" --select title,tsvRank +``` + +### Fuzzy search via trigram similarity (`trgmSlug`) + +```bash +csdk repository list --where.trgmSlug.value "approximate query" --where.trgmSlug.threshold 0.3 --select title,slugTrgmSimilarity +``` + +### Fuzzy search via trigram similarity (`trgmVisibility`) + +```bash +csdk repository list --where.trgmVisibility.value "approximate query" --where.trgmVisibility.threshold 0.3 --select title,visibilityTrgmSimilarity +``` + +### Composite search (unifiedSearch dispatches to all text adapters) + +```bash +csdk repository list --where.unifiedSearch "search query" --select title,cloneUrlTrgmSimilarity,defaultBranchTrgmSimilarity,descriptionTrgmSimilarity,externalIdTrgmSimilarity,nameTrgmSimilarity,providerTrgmSimilarity,tsvRank,searchScore,slugTrgmSimilarity,visibilityTrgmSimilarity +``` + +### Search with pagination and field projection + +```bash +csdk repository list --where.unifiedSearch "query" --limit 10 --select id,title,searchScore +csdk repository search "query" --limit 10 --select id,title,searchScore +``` + +### Create a repository + +```bash +csdk repository create --databaseId --name --slug [--cloneUrl ] [--createdBy ] [--createdByPrincipal ] [--defaultBranch ] [--description ] [--embedding ] [--externalId ] [--isArchived ] [--metadata ] [--ownerId ] [--provider ] [--updatedBy ] [--updatedByPrincipal ] [--visibility ] +``` + +### Get a repository by id + +```bash +csdk repository get --id +``` diff --git a/.agents/skills/cli-compute/references/resource-declared-capacity.md b/.agents/skills/cli-compute/references/resource-declared-capacity.md index 7aa7366320..679f182458 100644 --- a/.agents/skills/cli-compute/references/resource-declared-capacity.md +++ b/.agents/skills/cli-compute/references/resource-declared-capacity.md @@ -12,8 +12,8 @@ csdk resource-declared-capacity list --where.. --orderBy csdk resource-declared-capacity find-first --where.. csdk resource-declared-capacity get --id -csdk resource-declared-capacity create --cpuLimitMillicores --cpuRequestMillicores --installationId --isTransient --kind --memoryLimitBytes --memoryRequestBytes --namespaceId --podCountMax --podCountMin --source --sourceId --storageSizeBytes -csdk resource-declared-capacity update --id [--cpuLimitMillicores ] [--cpuRequestMillicores ] [--installationId ] [--isTransient ] [--kind ] [--memoryLimitBytes ] [--memoryRequestBytes ] [--namespaceId ] [--podCountMax ] [--podCountMin ] [--source ] [--sourceId ] [--storageSizeBytes ] +csdk resource-declared-capacity create --cpuLimitMillicores --cpuRequestMillicores --installationId --isTransient --kind --memoryLimitBytes --memoryRequestBytes --namespaceId --podCountMax --podCountMin --source --sourceId --storageSizeBytes --storageTotalBytes +csdk resource-declared-capacity update --id [--cpuLimitMillicores ] [--cpuRequestMillicores ] [--installationId ] [--isTransient ] [--kind ] [--memoryLimitBytes ] [--memoryRequestBytes ] [--namespaceId ] [--podCountMax ] [--podCountMin ] [--source ] [--sourceId ] [--storageSizeBytes ] [--storageTotalBytes ] csdk resource-declared-capacity delete --id ``` @@ -58,7 +58,7 @@ csdk resource-declared-capacity list --where.id.equalTo --orderBy ID_ASC ### Create a resourceDeclaredCapacity ```bash -csdk resource-declared-capacity create --cpuLimitMillicores --cpuRequestMillicores --installationId --isTransient --kind --memoryLimitBytes --memoryRequestBytes --namespaceId --podCountMax --podCountMin --source --sourceId --storageSizeBytes +csdk resource-declared-capacity create --cpuLimitMillicores --cpuRequestMillicores --installationId --isTransient --kind --memoryLimitBytes --memoryRequestBytes --namespaceId --podCountMax --podCountMin --source --sourceId --storageSizeBytes --storageTotalBytes ``` ### Get a resourceDeclaredCapacity by id diff --git a/.agents/skills/cli-compute/references/resource-definition.md b/.agents/skills/cli-compute/references/resource-definition.md index 398610f913..deb6f29dc0 100644 --- a/.agents/skills/cli-compute/references/resource-definition.md +++ b/.agents/skills/cli-compute/references/resource-definition.md @@ -12,8 +12,8 @@ csdk resource-definition list --where.. --orderBy csdk resource-definition list --limit 10 --after csdk resource-definition find-first --where.. csdk resource-definition get --id -csdk resource-definition create --databaseId --kind --name --namespaceId --slug [--annotations ] [--createdBy ] [--defaultSpec ] [--description ] [--integrations ] [--labels ] [--paramsSchema ] [--requiredConfigs ] [--requiredSecrets ] [--stepUpMinAge ] [--updatedBy ] -csdk resource-definition update --id [--annotations ] [--createdBy ] [--databaseId ] [--defaultSpec ] [--description ] [--integrations ] [--kind ] [--labels ] [--name ] [--namespaceId ] [--paramsSchema ] [--requiredConfigs ] [--requiredSecrets ] [--slug ] [--stepUpMinAge ] [--updatedBy ] +csdk resource-definition create --databaseId --kind --name --namespaceId --slug [--annotations ] [--createdBy ] [--createdByPrincipal ] [--defaultSpec ] [--description ] [--integrations ] [--labels ] [--paramsSchema ] [--requiredConfigs ] [--requiredSecrets ] [--stepUpMinAge ] [--updatedBy ] [--updatedByPrincipal ] +csdk resource-definition update --id [--annotations ] [--createdBy ] [--createdByPrincipal ] [--databaseId ] [--defaultSpec ] [--description ] [--integrations ] [--kind ] [--labels ] [--name ] [--namespaceId ] [--paramsSchema ] [--requiredConfigs ] [--requiredSecrets ] [--slug ] [--stepUpMinAge ] [--updatedBy ] [--updatedByPrincipal ] csdk resource-definition delete --id ``` @@ -58,7 +58,7 @@ csdk resource-definition list --where.id.equalTo --orderBy ID_ASC ### Create a resourceDefinition ```bash -csdk resource-definition create --databaseId --kind --name --namespaceId --slug [--annotations ] [--createdBy ] [--defaultSpec ] [--description ] [--integrations ] [--labels ] [--paramsSchema ] [--requiredConfigs ] [--requiredSecrets ] [--stepUpMinAge ] [--updatedBy ] +csdk resource-definition create --databaseId --kind --name --namespaceId --slug [--annotations ] [--createdBy ] [--createdByPrincipal ] [--defaultSpec ] [--description ] [--integrations ] [--labels ] [--paramsSchema ] [--requiredConfigs ] [--requiredSecrets ] [--stepUpMinAge ] [--updatedBy ] [--updatedByPrincipal ] ``` ### Get a resourceDefinition by id diff --git a/.agents/skills/cli-compute/references/resource-installation.md b/.agents/skills/cli-compute/references/resource-installation.md index 40008d7553..e6d9442fbd 100644 --- a/.agents/skills/cli-compute/references/resource-installation.md +++ b/.agents/skills/cli-compute/references/resource-installation.md @@ -12,8 +12,8 @@ csdk resource-installation list --where.. --orderBy csdk resource-installation list --limit 10 --after csdk resource-installation find-first --where.. csdk resource-installation get --id -csdk resource-installation create --databaseId --name --namespaceId --slug [--commitId ] [--createdBy ] [--params ] [--revision ] [--status ] [--storeId ] [--updatedBy ] -csdk resource-installation update --id [--commitId ] [--createdBy ] [--databaseId ] [--name ] [--namespaceId ] [--params ] [--revision ] [--slug ] [--status ] [--storeId ] [--updatedBy ] +csdk resource-installation create --databaseId --name --namespaceId --slug [--commitId ] [--createdBy ] [--createdByPrincipal ] [--params ] [--revision ] [--status ] [--storeId ] [--updatedBy ] [--updatedByPrincipal ] +csdk resource-installation update --id [--commitId ] [--createdBy ] [--createdByPrincipal ] [--databaseId ] [--name ] [--namespaceId ] [--params ] [--revision ] [--slug ] [--status ] [--storeId ] [--updatedBy ] [--updatedByPrincipal ] csdk resource-installation delete --id ``` @@ -58,7 +58,7 @@ csdk resource-installation list --where.id.equalTo --orderBy ID_ASC ### Create a resourceInstallation ```bash -csdk resource-installation create --databaseId --name --namespaceId --slug [--commitId ] [--createdBy ] [--params ] [--revision ] [--status ] [--storeId ] [--updatedBy ] +csdk resource-installation create --databaseId --name --namespaceId --slug [--commitId ] [--createdBy ] [--createdByPrincipal ] [--params ] [--revision ] [--status ] [--storeId ] [--updatedBy ] [--updatedByPrincipal ] ``` ### Get a resourceInstallation by id diff --git a/.agents/skills/cli-compute/references/resource-observed-storage.md b/.agents/skills/cli-compute/references/resource-observed-storage.md new file mode 100644 index 0000000000..b9f74d2221 --- /dev/null +++ b/.agents/skills/cli-compute/references/resource-observed-storage.md @@ -0,0 +1,68 @@ +# resourceObservedStorage + + + +CRUD operations for ResourceObservedStorage records via csdk CLI + +## Usage + +```bash +csdk resource-observed-storage list +csdk resource-observed-storage list --where.. --orderBy +csdk resource-observed-storage list --limit 10 --after +csdk resource-observed-storage find-first --where.. +csdk resource-observed-storage get --id +csdk resource-observed-storage create --capacity --capacityBytes --claimName --declaredStorageClass --declaredStorageSizeBytes --declaredStorageTotalBytes --installationId --isBound --kind --namespaceId --phase --requested --requestedBytes --resourceId --resourceStatus --slug --storageClass --storageName +csdk resource-observed-storage update --id [--capacity ] [--capacityBytes ] [--claimName ] [--declaredStorageClass ] [--declaredStorageSizeBytes ] [--declaredStorageTotalBytes ] [--installationId ] [--isBound ] [--kind ] [--namespaceId ] [--phase ] [--requested ] [--requestedBytes ] [--resourceId ] [--resourceStatus ] [--slug ] [--storageClass ] [--storageName ] +csdk resource-observed-storage delete --id +``` + +## Examples + +### List resourceObservedStorage records + +```bash +csdk resource-observed-storage list +``` + +### List resourceObservedStorage records with pagination + +```bash +csdk resource-observed-storage list --limit 10 --offset 0 +``` + +### List resourceObservedStorage records with cursor pagination + +```bash +csdk resource-observed-storage list --limit 10 --after +``` + +### Find first matching resourceObservedStorage + +```bash +csdk resource-observed-storage find-first --where.id.equalTo +``` + +### List resourceObservedStorage records with field selection + +```bash +csdk resource-observed-storage list --select id,id +``` + +### List resourceObservedStorage records with filtering and ordering + +```bash +csdk resource-observed-storage list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a resourceObservedStorage + +```bash +csdk resource-observed-storage create --capacity --capacityBytes --claimName --declaredStorageClass --declaredStorageSizeBytes --declaredStorageTotalBytes --installationId --isBound --kind --namespaceId --phase --requested --requestedBytes --resourceId --resourceStatus --slug --storageClass --storageName +``` + +### Get a resourceObservedStorage by id + +```bash +csdk resource-observed-storage get --id +``` diff --git a/.agents/skills/cli-compute/references/resource.md b/.agents/skills/cli-compute/references/resource.md index 7c9b14c8af..d9c7aaf776 100644 --- a/.agents/skills/cli-compute/references/resource.md +++ b/.agents/skills/cli-compute/references/resource.md @@ -12,8 +12,8 @@ csdk resource list --where.. --orderBy csdk resource list --limit 10 --after csdk resource find-first --where.. csdk resource get --id -csdk resource create --databaseId --kind --name --namespaceId --slug [--annotations ] [--createdBy ] [--errorCount ] [--installationId ] [--integrations ] [--labels ] [--lastError ] [--lastHeartbeatAt ] [--realm ] [--requiredConfigs ] [--requiredSecrets ] [--resourceDefinitionId ] [--spec ] [--status ] [--statusObserved ] [--updatedBy ] -csdk resource update --id [--annotations ] [--createdBy ] [--databaseId ] [--errorCount ] [--installationId ] [--integrations ] [--kind ] [--labels ] [--lastError ] [--lastHeartbeatAt ] [--name ] [--namespaceId ] [--realm ] [--requiredConfigs ] [--requiredSecrets ] [--resourceDefinitionId ] [--slug ] [--spec ] [--status ] [--statusObserved ] [--updatedBy ] +csdk resource create --databaseId --kind --name --namespaceId --slug [--annotations ] [--createdBy ] [--createdByPrincipal ] [--errorCount ] [--imageRef ] [--installationId ] [--integrations ] [--labels ] [--lastError ] [--lastHeartbeatAt ] [--realm ] [--requiredConfigs ] [--requiredSecrets ] [--resourceDefinitionId ] [--spec ] [--status ] [--statusObserved ] [--updatedBy ] [--updatedByPrincipal ] +csdk resource update --id [--annotations ] [--createdBy ] [--createdByPrincipal ] [--databaseId ] [--errorCount ] [--imageRef ] [--installationId ] [--integrations ] [--kind ] [--labels ] [--lastError ] [--lastHeartbeatAt ] [--name ] [--namespaceId ] [--realm ] [--requiredConfigs ] [--requiredSecrets ] [--resourceDefinitionId ] [--slug ] [--spec ] [--status ] [--statusObserved ] [--updatedBy ] [--updatedByPrincipal ] csdk resource delete --id ``` @@ -58,7 +58,7 @@ csdk resource list --where.id.equalTo --orderBy ID_ASC ### Create a resource ```bash -csdk resource create --databaseId --kind --name --namespaceId --slug [--annotations ] [--createdBy ] [--errorCount ] [--installationId ] [--integrations ] [--labels ] [--lastError ] [--lastHeartbeatAt ] [--realm ] [--requiredConfigs ] [--requiredSecrets ] [--resourceDefinitionId ] [--spec ] [--status ] [--statusObserved ] [--updatedBy ] +csdk resource create --databaseId --kind --name --namespaceId --slug [--annotations ] [--createdBy ] [--createdByPrincipal ] [--errorCount ] [--imageRef ] [--installationId ] [--integrations ] [--labels ] [--lastError ] [--lastHeartbeatAt ] [--realm ] [--requiredConfigs ] [--requiredSecrets ] [--resourceDefinitionId ] [--spec ] [--status ] [--statusObserved ] [--updatedBy ] [--updatedByPrincipal ] ``` ### Get a resource by id diff --git a/.agents/skills/cli-compute/references/resources-health.md b/.agents/skills/cli-compute/references/resources-health.md index 487868468a..e177136cb3 100644 --- a/.agents/skills/cli-compute/references/resources-health.md +++ b/.agents/skills/cli-compute/references/resources-health.md @@ -12,8 +12,8 @@ csdk resources-health list --where.. --orderBy csdk resources-health list --limit 10 --after csdk resources-health find-first --where.. csdk resources-health get --id -csdk resources-health create --annotations --cpuLimitMillicores --cpuRequestMillicores --createdBy --databaseId --errorCount --installationId --integrations --kind --labels --lastError --lastHeartbeatAt --memoryLimitBytes --memoryRequestBytes --name --namespaceId --realm --replicas --requiredConfigs --requiredSecrets --resourceDefinitionId --slug --spec --status --statusDetail --statusObserved --storageClass --storageSizeBytes --updatedBy -csdk resources-health update --id [--annotations ] [--cpuLimitMillicores ] [--cpuRequestMillicores ] [--createdBy ] [--databaseId ] [--errorCount ] [--installationId ] [--integrations ] [--kind ] [--labels ] [--lastError ] [--lastHeartbeatAt ] [--memoryLimitBytes ] [--memoryRequestBytes ] [--name ] [--namespaceId ] [--realm ] [--replicas ] [--requiredConfigs ] [--requiredSecrets ] [--resourceDefinitionId ] [--slug ] [--spec ] [--status ] [--statusDetail ] [--statusObserved ] [--storageClass ] [--storageSizeBytes ] [--updatedBy ] +csdk resources-health create --annotations --cpuLimitMillicores --cpuRequestMillicores --createdBy --createdByPrincipal --databaseId --errorCount --imageRef --installationId --integrations --kind --labels --lastError --lastHeartbeatAt --memoryLimitBytes --memoryRequestBytes --name --namespaceId --realm --replicas --requiredConfigs --requiredSecrets --resourceDefinitionId --slug --spec --status --statusDetail --statusObserved --storageClass --storageSizeBytes --storageTotalBytes --updatedBy --updatedByPrincipal +csdk resources-health update --id [--annotations ] [--cpuLimitMillicores ] [--cpuRequestMillicores ] [--createdBy ] [--createdByPrincipal ] [--databaseId ] [--errorCount ] [--imageRef ] [--installationId ] [--integrations ] [--kind ] [--labels ] [--lastError ] [--lastHeartbeatAt ] [--memoryLimitBytes ] [--memoryRequestBytes ] [--name ] [--namespaceId ] [--realm ] [--replicas ] [--requiredConfigs ] [--requiredSecrets ] [--resourceDefinitionId ] [--slug ] [--spec ] [--status ] [--statusDetail ] [--statusObserved ] [--storageClass ] [--storageSizeBytes ] [--storageTotalBytes ] [--updatedBy ] [--updatedByPrincipal ] csdk resources-health delete --id ``` @@ -58,7 +58,7 @@ csdk resources-health list --where.id.equalTo --orderBy ID_ASC ### Create a resourcesHealth ```bash -csdk resources-health create --annotations --cpuLimitMillicores --cpuRequestMillicores --createdBy --databaseId --errorCount --installationId --integrations --kind --labels --lastError --lastHeartbeatAt --memoryLimitBytes --memoryRequestBytes --name --namespaceId --realm --replicas --requiredConfigs --requiredSecrets --resourceDefinitionId --slug --spec --status --statusDetail --statusObserved --storageClass --storageSizeBytes --updatedBy +csdk resources-health create --annotations --cpuLimitMillicores --cpuRequestMillicores --createdBy --createdByPrincipal --databaseId --errorCount --imageRef --installationId --integrations --kind --labels --lastError --lastHeartbeatAt --memoryLimitBytes --memoryRequestBytes --name --namespaceId --realm --replicas --requiredConfigs --requiredSecrets --resourceDefinitionId --slug --spec --status --statusDetail --statusObserved --storageClass --storageSizeBytes --storageTotalBytes --updatedBy --updatedByPrincipal ``` ### Get a resourcesHealth by id 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-compute/references/webhook-endpoint.md b/.agents/skills/cli-compute/references/webhook-endpoint.md index d3af67f50c..5cfe83f49d 100644 --- a/.agents/skills/cli-compute/references/webhook-endpoint.md +++ b/.agents/skills/cli-compute/references/webhook-endpoint.md @@ -12,8 +12,8 @@ csdk webhook-endpoint list --where.. --orderBy csdk webhook-endpoint list --limit 10 --after csdk webhook-endpoint find-first --where.. csdk webhook-endpoint get --id -csdk webhook-endpoint create --databaseId --functionDefinitionId --host --namespaceId --path --signingSecretName [--active ] [--createdBy ] [--provider ] [--replayWindowSeconds ] [--updatedBy ] -csdk webhook-endpoint update --id [--active ] [--createdBy ] [--databaseId ] [--functionDefinitionId ] [--host ] [--namespaceId ] [--path ] [--provider ] [--replayWindowSeconds ] [--signingSecretName ] [--updatedBy ] +csdk webhook-endpoint create --databaseId --functionDefinitionId --host --namespaceId --path --signingSecretName [--active ] [--createdBy ] [--createdByPrincipal ] [--provider ] [--replayWindowSeconds ] [--updatedBy ] [--updatedByPrincipal ] +csdk webhook-endpoint update --id [--active ] [--createdBy ] [--createdByPrincipal ] [--databaseId ] [--functionDefinitionId ] [--host ] [--namespaceId ] [--path ] [--provider ] [--replayWindowSeconds ] [--signingSecretName ] [--updatedBy ] [--updatedByPrincipal ] csdk webhook-endpoint delete --id ``` @@ -58,7 +58,7 @@ csdk webhook-endpoint list --where.id.equalTo --orderBy ID_ASC ### Create a webhookEndpoint ```bash -csdk webhook-endpoint create --databaseId --functionDefinitionId --host --namespaceId --path --signingSecretName [--active ] [--createdBy ] [--provider ] [--replayWindowSeconds ] [--updatedBy ] +csdk webhook-endpoint create --databaseId --functionDefinitionId --host --namespaceId --path --signingSecretName [--active ] [--createdBy ] [--createdByPrincipal ] [--provider ] [--replayWindowSeconds ] [--updatedBy ] [--updatedByPrincipal ] ``` ### Get a webhookEndpoint by id diff --git a/.agents/skills/cli-config/SKILL.md b/.agents/skills/cli-config/SKILL.md index 5c5ab02e49..fe15efd4b3 100644 --- a/.agents/skills/cli-config/SKILL.md +++ b/.agents/skills/cli-config/SKILL.md @@ -1,13 +1,13 @@ --- name: cli-config -description: CLI tool (csdk) for the config API — provides CRUD commands for 5 tables and 13 custom operations +description: CLI tool (csdk) for the config API — provides CRUD commands for 9 tables and 21 custom operations --- # cli-config -CLI tool (csdk) for the config API — provides CRUD commands for 5 tables and 13 custom operations +CLI tool (csdk) for the config API — provides CRUD commands for 9 tables and 21 custom operations ## Usage @@ -23,13 +23,13 @@ csdk auth set-token csdk config set csdk config get -# CRUD for any table (e.g. config) -csdk config list -csdk config get --id -csdk config create -- +# CRUD for any table (e.g. app-internal-secret) +csdk app-internal-secret list +csdk app-internal-secret get --id +csdk app-internal-secret create -- # Non-interactive mode (skip all prompts, use flags only) -csdk --no-tty config list +csdk --no-tty app-internal-secret list ``` ## Examples @@ -40,13 +40,13 @@ csdk --no-tty config list csdk context create local --endpoint http://localhost:5000/graphql csdk context use local csdk auth set-token -csdk config list +csdk app-internal-secret list ``` ### Non-interactive mode (for scripts and CI) ```bash -csdk --no-tty config create -- +csdk --no-tty app-internal-secret create -- ``` ## References @@ -56,15 +56,27 @@ See the `references/` directory for detailed per-entity API documentation: - [context](references/context.md) - [auth](references/auth.md) - [config](references/config.md) +- [app-internal-secret](references/app-internal-secret.md) - [config](references/config.md) +- [internal-config](references/internal-config.md) +- [internal-secret](references/internal-secret.md) - [platform-config](references/platform-config.md) +- [platform-internal-config](references/platform-internal-config.md) - [platform-internal-secret](references/platform-internal-secret.md) - [platform-secret](references/platform-secret.md) - [secret](references/secret.md) +- [internal-secrets-del](references/internal-secrets-del.md) +- [internal-secrets-remove-array](references/internal-secrets-remove-array.md) +- [internal-secrets-rotate](references/internal-secrets-rotate.md) +- [internal-secrets-set](references/internal-secrets-set.md) - [secrets-del](references/secrets-del.md) - [secrets-remove-array](references/secrets-remove-array.md) - [secrets-rotate](references/secrets-rotate.md) - [secrets-set](references/secrets-set.md) +- [app-internal-secrets-del](references/app-internal-secrets-del.md) +- [app-internal-secrets-remove-array](references/app-internal-secrets-remove-array.md) +- [app-internal-secrets-rotate](references/app-internal-secrets-rotate.md) +- [app-internal-secrets-set](references/app-internal-secrets-set.md) - [platform-internal-secrets-del](references/platform-internal-secrets-del.md) - [platform-internal-secrets-remove-array](references/platform-internal-secrets-remove-array.md) - [platform-internal-secrets-rotate](references/platform-internal-secrets-rotate.md) diff --git a/.agents/skills/cli-config/references/app-internal-secret.md b/.agents/skills/cli-config/references/app-internal-secret.md new file mode 100644 index 0000000000..6f4f9f5cfe --- /dev/null +++ b/.agents/skills/cli-config/references/app-internal-secret.md @@ -0,0 +1,68 @@ +# appInternalSecret + + + +CRUD operations for AppInternalSecret records via csdk CLI + +## Usage + +```bash +csdk app-internal-secret list +csdk app-internal-secret list --where.. --orderBy +csdk app-internal-secret list --limit 10 --after +csdk app-internal-secret find-first --where.. +csdk app-internal-secret get --id +csdk app-internal-secret create --annotations --description --labels --name --realm --retiredAt --rotatedAt +csdk app-internal-secret update --id [--annotations ] [--description ] [--labels ] [--name ] [--realm ] [--retiredAt ] [--rotatedAt ] +csdk app-internal-secret delete --id +``` + +## Examples + +### List appInternalSecret records + +```bash +csdk app-internal-secret list +``` + +### List appInternalSecret records with pagination + +```bash +csdk app-internal-secret list --limit 10 --offset 0 +``` + +### List appInternalSecret records with cursor pagination + +```bash +csdk app-internal-secret list --limit 10 --after +``` + +### Find first matching appInternalSecret + +```bash +csdk app-internal-secret find-first --where.id.equalTo +``` + +### List appInternalSecret records with field selection + +```bash +csdk app-internal-secret list --select id,id +``` + +### List appInternalSecret records with filtering and ordering + +```bash +csdk app-internal-secret list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a appInternalSecret + +```bash +csdk app-internal-secret create --annotations --description --labels --name --realm --retiredAt --rotatedAt +``` + +### Get a appInternalSecret by id + +```bash +csdk app-internal-secret get --id +``` diff --git a/.agents/skills/cli-config/references/app-internal-secrets-del.md b/.agents/skills/cli-config/references/app-internal-secrets-del.md new file mode 100644 index 0000000000..92f8f6ade1 --- /dev/null +++ b/.agents/skills/cli-config/references/app-internal-secrets-del.md @@ -0,0 +1,19 @@ +# appInternalSecretsDel + + + +Execute the appInternalSecretsDel mutation + +## Usage + +```bash +csdk app-internal-secrets-del --input.clientMutationId --input.realm --input.secretName +``` + +## Examples + +### Run appInternalSecretsDel + +```bash +csdk app-internal-secrets-del --input.clientMutationId --input.realm --input.secretName +``` diff --git a/.agents/skills/cli-config/references/app-internal-secrets-remove-array.md b/.agents/skills/cli-config/references/app-internal-secrets-remove-array.md new file mode 100644 index 0000000000..a27bb88e74 --- /dev/null +++ b/.agents/skills/cli-config/references/app-internal-secrets-remove-array.md @@ -0,0 +1,19 @@ +# appInternalSecretsRemoveArray + + + +Execute the appInternalSecretsRemoveArray mutation + +## Usage + +```bash +csdk app-internal-secrets-remove-array --input.clientMutationId --input.realm --input.secretNames +``` + +## Examples + +### Run appInternalSecretsRemoveArray + +```bash +csdk app-internal-secrets-remove-array --input.clientMutationId --input.realm --input.secretNames +``` diff --git a/.agents/skills/cli-config/references/app-internal-secrets-rotate.md b/.agents/skills/cli-config/references/app-internal-secrets-rotate.md new file mode 100644 index 0000000000..84df0b5fb6 --- /dev/null +++ b/.agents/skills/cli-config/references/app-internal-secrets-rotate.md @@ -0,0 +1,19 @@ +# appInternalSecretsRotate + + + +Execute the appInternalSecretsRotate mutation + +## Usage + +```bash +csdk app-internal-secrets-rotate --input.algo --input.clientMutationId --input.realm --input.secretName --input.secretValue +``` + +## Examples + +### Run appInternalSecretsRotate + +```bash +csdk app-internal-secrets-rotate --input.algo --input.clientMutationId --input.realm --input.secretName --input.secretValue +``` diff --git a/.agents/skills/cli-config/references/app-internal-secrets-set.md b/.agents/skills/cli-config/references/app-internal-secrets-set.md new file mode 100644 index 0000000000..b5543f2963 --- /dev/null +++ b/.agents/skills/cli-config/references/app-internal-secrets-set.md @@ -0,0 +1,19 @@ +# appInternalSecretsSet + + + +Execute the appInternalSecretsSet mutation + +## Usage + +```bash +csdk app-internal-secrets-set --input.algo --input.clientMutationId --input.secretName --input.secretRealm --input.secretValue +``` + +## Examples + +### Run appInternalSecretsSet + +```bash +csdk app-internal-secrets-set --input.algo --input.clientMutationId --input.secretName --input.secretRealm --input.secretValue +``` diff --git a/.agents/skills/cli-config/references/config.md b/.agents/skills/cli-config/references/config.md index e17da49943..3339abc1a7 100644 --- a/.agents/skills/cli-config/references/config.md +++ b/.agents/skills/cli-config/references/config.md @@ -12,8 +12,8 @@ csdk config list --where.. --orderBy csdk config list --limit 10 --after csdk config find-first --where.. csdk config get --id -csdk config create --databaseId --name --namespaceId [--annotations ] [--description ] [--expiresAt ] [--labels ] [--provider ] [--realm ] [--value ] -csdk config update --id [--annotations ] [--databaseId ] [--description ] [--expiresAt ] [--labels ] [--name ] [--namespaceId ] [--provider ] [--realm ] [--value ] +csdk config create --databaseId --name --namespaceId [--annotations ] [--createdByPrincipal ] [--description ] [--expiresAt ] [--labels ] [--provider ] [--realm ] [--updatedByPrincipal ] [--value ] +csdk config update --id [--annotations ] [--createdByPrincipal ] [--databaseId ] [--description ] [--expiresAt ] [--labels ] [--name ] [--namespaceId ] [--provider ] [--realm ] [--updatedByPrincipal ] [--value ] csdk config delete --id ``` @@ -58,7 +58,7 @@ csdk config list --where.id.equalTo --orderBy ID_ASC ### Create a config ```bash -csdk config create --databaseId --name --namespaceId [--annotations ] [--description ] [--expiresAt ] [--labels ] [--provider ] [--realm ] [--value ] +csdk config create --databaseId --name --namespaceId [--annotations ] [--createdByPrincipal ] [--description ] [--expiresAt ] [--labels ] [--provider ] [--realm ] [--updatedByPrincipal ] [--value ] ``` ### Get a config by id diff --git a/.agents/skills/cli-config/references/internal-config.md b/.agents/skills/cli-config/references/internal-config.md new file mode 100644 index 0000000000..b57a4f3a2d --- /dev/null +++ b/.agents/skills/cli-config/references/internal-config.md @@ -0,0 +1,68 @@ +# internalConfig + + + +CRUD operations for InternalConfig records via csdk CLI + +## Usage + +```bash +csdk internal-config list +csdk internal-config list --where.. --orderBy +csdk internal-config list --limit 10 --after +csdk internal-config find-first --where.. +csdk internal-config get --id +csdk internal-config create --databaseId --name [--annotations ] [--description ] [--expiresAt ] [--labels ] [--provider ] [--realm ] [--value ] +csdk internal-config update --id [--annotations ] [--databaseId ] [--description ] [--expiresAt ] [--labels ] [--name ] [--provider ] [--realm ] [--value ] +csdk internal-config delete --id +``` + +## Examples + +### List internalConfig records + +```bash +csdk internal-config list +``` + +### List internalConfig records with pagination + +```bash +csdk internal-config list --limit 10 --offset 0 +``` + +### List internalConfig records with cursor pagination + +```bash +csdk internal-config list --limit 10 --after +``` + +### Find first matching internalConfig + +```bash +csdk internal-config find-first --where.id.equalTo +``` + +### List internalConfig records with field selection + +```bash +csdk internal-config list --select id,id +``` + +### List internalConfig records with filtering and ordering + +```bash +csdk internal-config list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a internalConfig + +```bash +csdk internal-config create --databaseId --name [--annotations ] [--description ] [--expiresAt ] [--labels ] [--provider ] [--realm ] [--value ] +``` + +### Get a internalConfig by id + +```bash +csdk internal-config get --id +``` diff --git a/.agents/skills/cli-config/references/internal-secret.md b/.agents/skills/cli-config/references/internal-secret.md new file mode 100644 index 0000000000..397696c82b --- /dev/null +++ b/.agents/skills/cli-config/references/internal-secret.md @@ -0,0 +1,68 @@ +# internalSecret + + + +CRUD operations for InternalSecret records via csdk CLI + +## Usage + +```bash +csdk internal-secret list +csdk internal-secret list --where.. --orderBy +csdk internal-secret list --limit 10 --after +csdk internal-secret find-first --where.. +csdk internal-secret get --id +csdk internal-secret create --annotations --databaseId --description --labels --name --realm --retiredAt --rotatedAt +csdk internal-secret update --id [--annotations ] [--databaseId ] [--description ] [--labels ] [--name ] [--realm ] [--retiredAt ] [--rotatedAt ] +csdk internal-secret delete --id +``` + +## Examples + +### List internalSecret records + +```bash +csdk internal-secret list +``` + +### List internalSecret records with pagination + +```bash +csdk internal-secret list --limit 10 --offset 0 +``` + +### List internalSecret records with cursor pagination + +```bash +csdk internal-secret list --limit 10 --after +``` + +### Find first matching internalSecret + +```bash +csdk internal-secret find-first --where.id.equalTo +``` + +### List internalSecret records with field selection + +```bash +csdk internal-secret list --select id,id +``` + +### List internalSecret records with filtering and ordering + +```bash +csdk internal-secret list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a internalSecret + +```bash +csdk internal-secret create --annotations --databaseId --description --labels --name --realm --retiredAt --rotatedAt +``` + +### Get a internalSecret by id + +```bash +csdk internal-secret get --id +``` diff --git a/.agents/skills/cli-config/references/internal-secrets-del.md b/.agents/skills/cli-config/references/internal-secrets-del.md new file mode 100644 index 0000000000..15c580bfb1 --- /dev/null +++ b/.agents/skills/cli-config/references/internal-secrets-del.md @@ -0,0 +1,19 @@ +# _internalSecretsDel + + + +Execute the _internalSecretsDel mutation + +## Usage + +```bash +csdk internal-secrets-del --input.clientMutationId --input.databaseId --input.realm --input.secretName +``` + +## Examples + +### Run _internalSecretsDel + +```bash +csdk internal-secrets-del --input.clientMutationId --input.databaseId --input.realm --input.secretName +``` diff --git a/.agents/skills/cli-config/references/internal-secrets-remove-array.md b/.agents/skills/cli-config/references/internal-secrets-remove-array.md new file mode 100644 index 0000000000..4a0dd3be97 --- /dev/null +++ b/.agents/skills/cli-config/references/internal-secrets-remove-array.md @@ -0,0 +1,19 @@ +# _internalSecretsRemoveArray + + + +Execute the _internalSecretsRemoveArray mutation + +## Usage + +```bash +csdk internal-secrets-remove-array --input.clientMutationId --input.databaseId --input.realm --input.secretNames +``` + +## Examples + +### Run _internalSecretsRemoveArray + +```bash +csdk internal-secrets-remove-array --input.clientMutationId --input.databaseId --input.realm --input.secretNames +``` diff --git a/.agents/skills/cli-config/references/internal-secrets-rotate.md b/.agents/skills/cli-config/references/internal-secrets-rotate.md new file mode 100644 index 0000000000..9fbb6813dd --- /dev/null +++ b/.agents/skills/cli-config/references/internal-secrets-rotate.md @@ -0,0 +1,19 @@ +# _internalSecretsRotate + + + +Execute the _internalSecretsRotate mutation + +## Usage + +```bash +csdk internal-secrets-rotate --input.algo --input.clientMutationId --input.databaseId --input.realm --input.secretName --input.secretValue +``` + +## Examples + +### Run _internalSecretsRotate + +```bash +csdk internal-secrets-rotate --input.algo --input.clientMutationId --input.databaseId --input.realm --input.secretName --input.secretValue +``` diff --git a/.agents/skills/cli-config/references/internal-secrets-set.md b/.agents/skills/cli-config/references/internal-secrets-set.md new file mode 100644 index 0000000000..72826d4771 --- /dev/null +++ b/.agents/skills/cli-config/references/internal-secrets-set.md @@ -0,0 +1,19 @@ +# _internalSecretsSet + + + +Execute the _internalSecretsSet mutation + +## Usage + +```bash +csdk internal-secrets-set --input.algo --input.clientMutationId --input.scopeDatabaseId --input.secretName --input.secretRealm --input.secretValue +``` + +## Examples + +### Run _internalSecretsSet + +```bash +csdk internal-secrets-set --input.algo --input.clientMutationId --input.scopeDatabaseId --input.secretName --input.secretRealm --input.secretValue +``` diff --git a/.agents/skills/cli-config/references/platform-config.md b/.agents/skills/cli-config/references/platform-config.md index b23e6f20e7..7d94626dfa 100644 --- a/.agents/skills/cli-config/references/platform-config.md +++ b/.agents/skills/cli-config/references/platform-config.md @@ -12,8 +12,8 @@ csdk platform-config list --where.. --orderBy csdk platform-config list --limit 10 --after csdk platform-config find-first --where.. csdk platform-config get --id -csdk platform-config create --name --namespaceId [--annotations ] [--description ] [--expiresAt ] [--labels ] [--provider ] [--realm ] [--value ] -csdk platform-config update --id [--annotations ] [--description ] [--expiresAt ] [--labels ] [--name ] [--namespaceId ] [--provider ] [--realm ] [--value ] +csdk platform-config create --name --namespaceId [--annotations ] [--createdByPrincipal ] [--description ] [--expiresAt ] [--labels ] [--provider ] [--realm ] [--updatedByPrincipal ] [--value ] +csdk platform-config update --id [--annotations ] [--createdByPrincipal ] [--description ] [--expiresAt ] [--labels ] [--name ] [--namespaceId ] [--provider ] [--realm ] [--updatedByPrincipal ] [--value ] csdk platform-config delete --id ``` @@ -58,7 +58,7 @@ csdk platform-config list --where.id.equalTo --orderBy ID_ASC ### Create a platformConfig ```bash -csdk platform-config create --name --namespaceId [--annotations ] [--description ] [--expiresAt ] [--labels ] [--provider ] [--realm ] [--value ] +csdk platform-config create --name --namespaceId [--annotations ] [--createdByPrincipal ] [--description ] [--expiresAt ] [--labels ] [--provider ] [--realm ] [--updatedByPrincipal ] [--value ] ``` ### Get a platformConfig by id diff --git a/.agents/skills/cli-config/references/platform-internal-config.md b/.agents/skills/cli-config/references/platform-internal-config.md new file mode 100644 index 0000000000..61844b9bdb --- /dev/null +++ b/.agents/skills/cli-config/references/platform-internal-config.md @@ -0,0 +1,68 @@ +# platformInternalConfig + + + +CRUD operations for PlatformInternalConfig records via csdk CLI + +## Usage + +```bash +csdk platform-internal-config list +csdk platform-internal-config list --where.. --orderBy +csdk platform-internal-config list --limit 10 --after +csdk platform-internal-config find-first --where.. +csdk platform-internal-config get --id +csdk platform-internal-config create --name [--annotations ] [--description ] [--expiresAt ] [--labels ] [--provider ] [--realm ] [--value ] +csdk platform-internal-config update --id [--annotations ] [--description ] [--expiresAt ] [--labels ] [--name ] [--provider ] [--realm ] [--value ] +csdk platform-internal-config delete --id +``` + +## Examples + +### List platformInternalConfig records + +```bash +csdk platform-internal-config list +``` + +### List platformInternalConfig records with pagination + +```bash +csdk platform-internal-config list --limit 10 --offset 0 +``` + +### List platformInternalConfig records with cursor pagination + +```bash +csdk platform-internal-config list --limit 10 --after +``` + +### Find first matching platformInternalConfig + +```bash +csdk platform-internal-config find-first --where.id.equalTo +``` + +### List platformInternalConfig records with field selection + +```bash +csdk platform-internal-config list --select id,id +``` + +### List platformInternalConfig records with filtering and ordering + +```bash +csdk platform-internal-config list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a platformInternalConfig + +```bash +csdk platform-internal-config create --name [--annotations ] [--description ] [--expiresAt ] [--labels ] [--provider ] [--realm ] [--value ] +``` + +### Get a platformInternalConfig by id + +```bash +csdk platform-internal-config get --id +``` diff --git a/.agents/skills/cli-config/references/platform-internal-secret.md b/.agents/skills/cli-config/references/platform-internal-secret.md index fadfaa14eb..4c61905356 100644 --- a/.agents/skills/cli-config/references/platform-internal-secret.md +++ b/.agents/skills/cli-config/references/platform-internal-secret.md @@ -12,8 +12,8 @@ csdk platform-internal-secret list --where.. --orderBy csdk platform-internal-secret find-first --where.. csdk platform-internal-secret get --id -csdk platform-internal-secret create --annotations --description --labels --name --namespaceId --realm --retiredAt --rotatedAt -csdk platform-internal-secret update --id [--annotations ] [--description ] [--labels ] [--name ] [--namespaceId ] [--realm ] [--retiredAt ] [--rotatedAt ] +csdk platform-internal-secret create --annotations --description --labels --name --realm --retiredAt --rotatedAt +csdk platform-internal-secret update --id [--annotations ] [--description ] [--labels ] [--name ] [--realm ] [--retiredAt ] [--rotatedAt ] csdk platform-internal-secret delete --id ``` @@ -58,7 +58,7 @@ csdk platform-internal-secret list --where.id.equalTo --orderBy ID_ASC ### Create a platformInternalSecret ```bash -csdk platform-internal-secret create --annotations --description --labels --name --namespaceId --realm --retiredAt --rotatedAt +csdk platform-internal-secret create --annotations --description --labels --name --realm --retiredAt --rotatedAt ``` ### Get a platformInternalSecret by id diff --git a/.agents/skills/cli-config/references/platform-internal-secrets-del.md b/.agents/skills/cli-config/references/platform-internal-secrets-del.md index 4792aa8bad..c3382eb4e3 100644 --- a/.agents/skills/cli-config/references/platform-internal-secrets-del.md +++ b/.agents/skills/cli-config/references/platform-internal-secrets-del.md @@ -7,7 +7,7 @@ Execute the platformInternalSecretsDel mutation ## Usage ```bash -csdk platform-internal-secrets-del --input.clientMutationId --input.namespaceId --input.realm --input.secretName +csdk platform-internal-secrets-del --input.clientMutationId --input.realm --input.secretName ``` ## Examples @@ -15,5 +15,5 @@ csdk platform-internal-secrets-del --input.clientMutationId --input.nam ### Run platformInternalSecretsDel ```bash -csdk platform-internal-secrets-del --input.clientMutationId --input.namespaceId --input.realm --input.secretName +csdk platform-internal-secrets-del --input.clientMutationId --input.realm --input.secretName ``` diff --git a/.agents/skills/cli-config/references/platform-internal-secrets-remove-array.md b/.agents/skills/cli-config/references/platform-internal-secrets-remove-array.md index 578e816204..3ea4cdcb47 100644 --- a/.agents/skills/cli-config/references/platform-internal-secrets-remove-array.md +++ b/.agents/skills/cli-config/references/platform-internal-secrets-remove-array.md @@ -7,7 +7,7 @@ Execute the platformInternalSecretsRemoveArray mutation ## Usage ```bash -csdk platform-internal-secrets-remove-array --input.clientMutationId --input.namespaceId --input.realm --input.secretNames +csdk platform-internal-secrets-remove-array --input.clientMutationId --input.realm --input.secretNames ``` ## Examples @@ -15,5 +15,5 @@ csdk platform-internal-secrets-remove-array --input.clientMutationId -- ### Run platformInternalSecretsRemoveArray ```bash -csdk platform-internal-secrets-remove-array --input.clientMutationId --input.namespaceId --input.realm --input.secretNames +csdk platform-internal-secrets-remove-array --input.clientMutationId --input.realm --input.secretNames ``` diff --git a/.agents/skills/cli-config/references/platform-internal-secrets-rotate.md b/.agents/skills/cli-config/references/platform-internal-secrets-rotate.md index 1996c04693..45daf91150 100644 --- a/.agents/skills/cli-config/references/platform-internal-secrets-rotate.md +++ b/.agents/skills/cli-config/references/platform-internal-secrets-rotate.md @@ -7,7 +7,7 @@ Execute the platformInternalSecretsRotate mutation ## Usage ```bash -csdk platform-internal-secrets-rotate --input.algo --input.clientMutationId --input.namespaceId --input.realm --input.secretName --input.secretValue +csdk platform-internal-secrets-rotate --input.algo --input.clientMutationId --input.realm --input.secretName --input.secretValue ``` ## Examples @@ -15,5 +15,5 @@ csdk platform-internal-secrets-rotate --input.algo --input.clientMutati ### Run platformInternalSecretsRotate ```bash -csdk platform-internal-secrets-rotate --input.algo --input.clientMutationId --input.namespaceId --input.realm --input.secretName --input.secretValue +csdk platform-internal-secrets-rotate --input.algo --input.clientMutationId --input.realm --input.secretName --input.secretValue ``` diff --git a/.agents/skills/cli-config/references/platform-internal-secrets-set.md b/.agents/skills/cli-config/references/platform-internal-secrets-set.md index 4f7050179c..f7554805ca 100644 --- a/.agents/skills/cli-config/references/platform-internal-secrets-set.md +++ b/.agents/skills/cli-config/references/platform-internal-secrets-set.md @@ -7,7 +7,7 @@ Execute the platformInternalSecretsSet mutation ## Usage ```bash -csdk platform-internal-secrets-set --input.algo --input.clientMutationId --input.secretName --input.secretNamespaceId --input.secretRealm --input.secretValue +csdk platform-internal-secrets-set --input.algo --input.clientMutationId --input.secretName --input.secretRealm --input.secretValue ``` ## Examples @@ -15,5 +15,5 @@ csdk platform-internal-secrets-set --input.algo --input.clientMutationI ### Run platformInternalSecretsSet ```bash -csdk platform-internal-secrets-set --input.algo --input.clientMutationId --input.secretName --input.secretNamespaceId --input.secretRealm --input.secretValue +csdk platform-internal-secrets-set --input.algo --input.clientMutationId --input.secretName --input.secretRealm --input.secretValue ``` diff --git a/.agents/skills/cli-config/references/provision-bucket.md b/.agents/skills/cli-config/references/provision-bucket.md index cc17ffbc21..5fbe38a003 100644 --- a/.agents/skills/cli-config/references/provision-bucket.md +++ b/.agents/skills/cli-config/references/provision-bucket.md @@ -2,10 +2,11 @@ -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. +Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. ## Usage 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/namespace.md b/.agents/skills/cli-infra/references/namespace.md index 2a634faf18..b152088647 100644 --- a/.agents/skills/cli-infra/references/namespace.md +++ b/.agents/skills/cli-infra/references/namespace.md @@ -12,8 +12,8 @@ csdk namespace list --where.. --orderBy csdk namespace list --limit 10 --after csdk namespace find-first --where.. csdk namespace get --id -csdk namespace create --databaseId --name --namespaceName [--annotations ] [--description ] [--isActive ] [--isManaged ] [--labels ] [--lastError ] [--status ] -csdk namespace update --id [--annotations ] [--databaseId ] [--description ] [--isActive ] [--isManaged ] [--labels ] [--lastError ] [--name ] [--namespaceName ] [--status ] +csdk namespace create --databaseId --name --namespaceName [--annotations ] [--clusterId ] [--description ] [--isActive ] [--isManaged ] [--labels ] [--lastError ] [--status ] +csdk namespace update --id [--annotations ] [--clusterId ] [--databaseId ] [--description ] [--isActive ] [--isManaged ] [--labels ] [--lastError ] [--name ] [--namespaceName ] [--status ] csdk namespace delete --id ``` @@ -58,7 +58,7 @@ csdk namespace list --where.id.equalTo --orderBy ID_ASC ### Create a namespace ```bash -csdk namespace create --databaseId --name --namespaceName [--annotations ] [--description ] [--isActive ] [--isManaged ] [--labels ] [--lastError ] [--status ] +csdk namespace create --databaseId --name --namespaceName [--annotations ] [--clusterId ] [--description ] [--isActive ] [--isManaged ] [--labels ] [--lastError ] [--status ] ``` ### Get a namespace by 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-infra/references/platform-namespace.md b/.agents/skills/cli-infra/references/platform-namespace.md index f67a780f9a..a2e86e0fc0 100644 --- a/.agents/skills/cli-infra/references/platform-namespace.md +++ b/.agents/skills/cli-infra/references/platform-namespace.md @@ -12,8 +12,8 @@ csdk platform-namespace list --where.. --orderBy csdk platform-namespace list --limit 10 --after csdk platform-namespace find-first --where.. csdk platform-namespace get --id -csdk platform-namespace create --name --namespaceName [--annotations ] [--description ] [--isActive ] [--isManaged ] [--labels ] [--lastError ] [--status ] -csdk platform-namespace update --id [--annotations ] [--description ] [--isActive ] [--isManaged ] [--labels ] [--lastError ] [--name ] [--namespaceName ] [--status ] +csdk platform-namespace create --name --namespaceName [--annotations ] [--clusterId ] [--description ] [--isActive ] [--isManaged ] [--labels ] [--lastError ] [--status ] +csdk platform-namespace update --id [--annotations ] [--clusterId ] [--description ] [--isActive ] [--isManaged ] [--labels ] [--lastError ] [--name ] [--namespaceName ] [--status ] csdk platform-namespace delete --id ``` @@ -58,7 +58,7 @@ csdk platform-namespace list --where.id.equalTo --orderBy ID_ASC ### Create a platformNamespace ```bash -csdk platform-namespace create --name --namespaceName [--annotations ] [--description ] [--isActive ] [--isManaged ] [--labels ] [--lastError ] [--status ] +csdk platform-namespace create --name --namespaceName [--annotations ] [--clusterId ] [--description ] [--isActive ] [--isManaged ] [--labels ] [--lastError ] [--status ] ``` ### Get a platformNamespace by id diff --git a/.agents/skills/cli-infra/references/provision-bucket.md b/.agents/skills/cli-infra/references/provision-bucket.md index cc17ffbc21..5fbe38a003 100644 --- a/.agents/skills/cli-infra/references/provision-bucket.md +++ b/.agents/skills/cli-infra/references/provision-bucket.md @@ -2,10 +2,11 @@ -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. +Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. ## Usage diff --git a/.agents/skills/cli-modules/SKILL.md b/.agents/skills/cli-modules/SKILL.md index c2e22a0d72..5d71b79f4d 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 88 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 88 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) +- [cluster-module](references/cluster-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,32 +83,37 @@ 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) - [graph-execution-module](references/graph-execution-module.md) - [graph-module](references/graph-module.md) - [hierarchy-module](references/hierarchy-module.md) -- [http-route-module](references/http-route-module.md) - [i-18-n-module](references/i-18-n-module.md) - [identity-providers-module](references/identity-providers-module.md) +- [image-module](references/image-module.md) - [inference-log-module](references/inference-log-module.md) - [infra-config-module](references/infra-config-module.md) - [infra-secrets-module](references/infra-secrets-module.md) - [integration-providers-module](references/integration-providers-module.md) +- [internal-config-module](references/internal-config-module.md) - [internal-secrets-module](references/internal-secrets-module.md) - [invites-module](references/invites-module.md) +- [k-8-s-admission-module](references/k-8-s-admission-module.md) - [limits-module](references/limits-module.md) +- [machine-module](references/machine-module.md) - [membership-types-module](references/membership-types-module.md) - [memberships-module](references/memberships-module.md) - [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) @@ -113,10 +121,13 @@ See the `references/` directory for detailed per-entity API documentation: - [rate-limit-meters-module](references/rate-limit-meters-module.md) - [rate-limits-module](references/rate-limits-module.md) - [realtime-module](references/realtime-module.md) +- [refusal-log-module](references/refusal-log-module.md) - [relation-provision](references/relation-provision.md) +- [repository-module](references/repository-module.md) - [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 +138,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..44458ee3db 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 ] [--defaultVisibility ] [--entityField ] [--entityTableId ] [--eventTableId ] [--eventTableName ] [--hasAgents ] [--hasAttachments ] [--hasPlans ] [--hasRepositoryResources ] [--hasResources ] [--hasRuns ] [--messageTableId ] [--messageTableName ] [--personaTableId ] [--personaTableName ] [--planTableId ] [--planTableName ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--promptsTableId ] [--promptsTableName ] [--provisions ] [--publicSchemaName ] [--resourceRepositoryTableId ] [--resourceRepositoryTableName ] [--resourceTableId ] [--resourceTableName ] [--resources ] [--runTableId ] [--runTableName ] [--schemaId ] [--taskTableId ] [--taskTableName ] [--threadTableId ] [--threadTableName ] [--workspaceTableId ] [--workspaceTableName ] +csdk agent-module update --id [--agentTableId ] [--agentTableName ] [--apiName ] [--databaseId ] [--defaultCapabilities ] [--defaultVisibility ] [--entityField ] [--entityTableId ] [--eventTableId ] [--eventTableName ] [--hasAgents ] [--hasAttachments ] [--hasPlans ] [--hasRepositoryResources ] [--hasResources ] [--hasRuns ] [--messageTableId ] [--messageTableName ] [--personaTableId ] [--personaTableName ] [--planTableId ] [--planTableName ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--promptsTableId ] [--promptsTableName ] [--provisions ] [--publicSchemaName ] [--resourceRepositoryTableId ] [--resourceRepositoryTableName ] [--resourceTableId ] [--resourceTableName ] [--resources ] [--runTableId ] [--runTableName ] [--schemaId ] [--scope ] [--taskTableId ] [--taskTableName ] [--threadTableId ] [--threadTableName ] [--workspaceTableId ] [--workspaceTableName ] 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 ] [--defaultVisibility ] [--entityField ] [--entityTableId ] [--eventTableId ] [--eventTableName ] [--hasAgents ] [--hasAttachments ] [--hasPlans ] [--hasRepositoryResources ] [--hasResources ] [--hasRuns ] [--messageTableId ] [--messageTableName ] [--personaTableId ] [--personaTableName ] [--planTableId ] [--planTableName ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--promptsTableId ] [--promptsTableName ] [--provisions ] [--publicSchemaName ] [--resourceRepositoryTableId ] [--resourceRepositoryTableName ] [--resourceTableId ] [--resourceTableName ] [--resources ] [--runTableId ] [--runTableName ] [--schemaId ] [--taskTableId ] [--taskTableName ] [--threadTableId ] [--threadTableName ] [--workspaceTableId ] [--workspaceTableName ] ``` ### 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..d2f563a03d 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 ] [--appStoreIdentitiesTableName ] [--appsTableId ] [--appsTableName ] [--catalogModuleId ] [--defaultCapabilities ] [--entityField ] [--entityTableId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schemaId ] +csdk app-module update --id [--apiName ] [--appComponentsTableId ] [--appComponentsTableName ] [--appStoreIdentitiesTableName ] [--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 ] [--appStoreIdentitiesTableName ] [--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..549ff1d5bc 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 [--activatePlanSubscriptionFunction ] [--apiName ] [--billingCustomersTableId ] [--billingCustomersTableName ] [--billingDisputesTableId ] [--billingDisputesTableName ] [--billingInvoicesTableId ] [--billingInvoicesTableName ] [--billingPricesTableId ] [--billingPricesTableName ] [--billingProductsTableId ] [--billingProductsTableName ] [--billingRefundsTableId ] [--billingRefundsTableName ] [--billingSubscriptionsTableId ] [--billingSubscriptionsTableName ] [--billingWebhookEventsTableId ] [--billingWebhookEventsTableName ] [--getActivePlanPricingFunction ] [--getBillingCustomerFunction ] [--getBillingPriceFunction ] [--getBillingProductFunction ] [--getBillingSubscriptionFunction ] [--getFallbackFreePlanFunction ] [--listPendingUsageSyncFunction ] [--markUsageSyncedFunction ] [--prefix ] [--pricesTableId ] [--privateApiName ] [--privateSchemaId ] [--processBillingEventFunction ] [--productsTableId ] [--provider ] [--recordDisputeFunction ] [--recordRefundFunction ] [--schemaId ] [--subscriptionsTableId ] [--sweepOverdueSubscriptionsFunction ] [--upsertBillingCustomerFunction ] [--upsertBillingPriceFunction ] [--upsertBillingProductFunction ] [--upsertBillingSubscriptionFunction ] [--upsertInvoiceFunction ] +csdk billing-provider-module update --id [--activatePlanSubscriptionFunction ] [--apiName ] [--billingCustomersTableId ] [--billingCustomersTableName ] [--billingDisputesTableId ] [--billingDisputesTableName ] [--billingInvoicesTableId ] [--billingInvoicesTableName ] [--billingPricesTableId ] [--billingPricesTableName ] [--billingProductsTableId ] [--billingProductsTableName ] [--billingRefundsTableId ] [--billingRefundsTableName ] [--billingSubscriptionsTableId ] [--billingSubscriptionsTableName ] [--billingWebhookEventsTableId ] [--billingWebhookEventsTableName ] [--databaseId ] [--getActivePlanPricingFunction ] [--getBillingCustomerFunction ] [--getBillingPriceFunction ] [--getBillingProductFunction ] [--getBillingSubscriptionFunction ] [--getFallbackFreePlanFunction ] [--listPendingUsageSyncFunction ] [--markUsageSyncedFunction ] [--prefix ] [--pricesTableId ] [--privateApiName ] [--privateSchemaId ] [--processBillingEventFunction ] [--productsTableId ] [--provider ] [--recordDisputeFunction ] [--recordRefundFunction ] [--schemaId ] [--subscriptionsTableId ] [--sweepOverdueSubscriptionsFunction ] [--upsertBillingCustomerFunction ] [--upsertBillingPriceFunction ] [--upsertBillingProductFunction ] [--upsertBillingSubscriptionFunction ] [--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 [--activatePlanSubscriptionFunction ] [--apiName ] [--billingCustomersTableId ] [--billingCustomersTableName ] [--billingDisputesTableId ] [--billingDisputesTableName ] [--billingInvoicesTableId ] [--billingInvoicesTableName ] [--billingPricesTableId ] [--billingPricesTableName ] [--billingProductsTableId ] [--billingProductsTableName ] [--billingRefundsTableId ] [--billingRefundsTableName ] [--billingSubscriptionsTableId ] [--billingSubscriptionsTableName ] [--billingWebhookEventsTableId ] [--billingWebhookEventsTableName ] [--getActivePlanPricingFunction ] [--getBillingCustomerFunction ] [--getBillingPriceFunction ] [--getBillingProductFunction ] [--getBillingSubscriptionFunction ] [--getFallbackFreePlanFunction ] [--listPendingUsageSyncFunction ] [--markUsageSyncedFunction ] [--prefix ] [--pricesTableId ] [--privateApiName ] [--privateSchemaId ] [--processBillingEventFunction ] [--productsTableId ] [--provider ] [--recordDisputeFunction ] [--recordRefundFunction ] [--schemaId ] [--subscriptionsTableId ] [--sweepOverdueSubscriptionsFunction ] [--upsertBillingCustomerFunction ] [--upsertBillingPriceFunction ] [--upsertBillingProductFunction ] [--upsertBillingSubscriptionFunction ] [--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..64a42db31e 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 ] [--appStoreIdentitiesTableId ] [--appStoreIdentitiesTableName ] [--appsTableId ] [--appsTableName ] [--bindingsTableId ] [--bindingsTableName ] [--bucketsTableId ] [--bucketsTableName ] [--defaultCapabilities ] [--domainsTableId ] [--domainsTableName ] [--entityTableId ] [--functionsTableId ] [--functionsTableName ] [--imagesTableId ] [--imagesTableName ] [--managedDomainsTableId ] [--managedDomainsTableName ] [--namespacesTableId ] [--namespacesTableName ] [--policies ] [--privateApiName ] [--provisions ] [--publicSchemaName ] [--redirectsTableId ] [--redirectsTableName ] [--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 ] [--appStoreIdentitiesTableId ] [--appStoreIdentitiesTableName ] [--appsTableId ] [--appsTableName ] [--bindingsTableId ] [--bindingsTableName ] [--bucketsTableId ] [--bucketsTableName ] [--databaseId ] [--defaultCapabilities ] [--domainsTableId ] [--domainsTableName ] [--entityTableId ] [--functionsTableId ] [--functionsTableName ] [--imagesTableId ] [--imagesTableName ] [--managedDomainsTableId ] [--managedDomainsTableName ] [--namespacesTableId ] [--namespacesTableName ] [--policies ] [--privateApiName ] [--provisions ] [--publicSchemaName ] [--redirectsTableId ] [--redirectsTableName ] [--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 ] [--appStoreIdentitiesTableId ] [--appStoreIdentitiesTableName ] [--appsTableId ] [--appsTableName ] [--bindingsTableId ] [--bindingsTableName ] [--bucketsTableId ] [--bucketsTableName ] [--defaultCapabilities ] [--domainsTableId ] [--domainsTableName ] [--entityTableId ] [--functionsTableId ] [--functionsTableName ] [--imagesTableId ] [--imagesTableName ] [--managedDomainsTableId ] [--managedDomainsTableName ] [--namespacesTableId ] [--namespacesTableName ] [--policies ] [--privateApiName ] [--provisions ] [--publicSchemaName ] [--redirectsTableId ] [--redirectsTableName ] [--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/cluster-module.md b/.agents/skills/cli-modules/references/cluster-module.md new file mode 100644 index 0000000000..9de32cdc19 --- /dev/null +++ b/.agents/skills/cli-modules/references/cluster-module.md @@ -0,0 +1,68 @@ +# clusterModule + + + +CRUD operations for ClusterModule records via csdk CLI + +## Usage + +```bash +csdk cluster-module list +csdk cluster-module list --where.. --orderBy +csdk cluster-module list --limit 10 --after +csdk cluster-module find-first --where.. +csdk cluster-module get --id +csdk cluster-module create --databaseId [--apiName ] [--clusterEventsTableId ] [--clusterEventsTableName ] [--clustersTableId ] [--clustersTableName ] [--databasePlacementsTableId ] [--databasePlacementsTableName ] [--databaseServersTableId ] [--databaseServersTableName ] [--defaultCapabilities ] [--entityField ] [--partitionInterval ] [--physicalDatabasesTableId ] [--physicalDatabasesTableName ] [--policies ] [--prefix ] [--premake ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--retention ] [--schemaId ] [--scope ] +csdk cluster-module update --id [--apiName ] [--clusterEventsTableId ] [--clusterEventsTableName ] [--clustersTableId ] [--clustersTableName ] [--databaseId ] [--databasePlacementsTableId ] [--databasePlacementsTableName ] [--databaseServersTableId ] [--databaseServersTableName ] [--defaultCapabilities ] [--entityField ] [--partitionInterval ] [--physicalDatabasesTableId ] [--physicalDatabasesTableName ] [--policies ] [--prefix ] [--premake ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--retention ] [--schemaId ] [--scope ] +csdk cluster-module delete --id +``` + +## Examples + +### List clusterModule records + +```bash +csdk cluster-module list +``` + +### List clusterModule records with pagination + +```bash +csdk cluster-module list --limit 10 --offset 0 +``` + +### List clusterModule records with cursor pagination + +```bash +csdk cluster-module list --limit 10 --after +``` + +### Find first matching clusterModule + +```bash +csdk cluster-module find-first --where.id.equalTo +``` + +### List clusterModule records with field selection + +```bash +csdk cluster-module list --select id,id +``` + +### List clusterModule records with filtering and ordering + +```bash +csdk cluster-module list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a clusterModule + +```bash +csdk cluster-module create --databaseId [--apiName ] [--clusterEventsTableId ] [--clusterEventsTableName ] [--clustersTableId ] [--clustersTableName ] [--databasePlacementsTableId ] [--databasePlacementsTableName ] [--databaseServersTableId ] [--databaseServersTableName ] [--defaultCapabilities ] [--entityField ] [--partitionInterval ] [--physicalDatabasesTableId ] [--physicalDatabasesTableName ] [--policies ] [--prefix ] [--premake ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--retention ] [--schemaId ] [--scope ] +``` + +### Get a clusterModule by id + +```bash +csdk cluster-module get --id +``` diff --git a/.agents/skills/cli-modules/references/compute-log-module.md b/.agents/skills/cli-modules/references/compute-log-module.md index 9aa48b712b..cde9c9d589 100644 --- a/.agents/skills/cli-modules/references/compute-log-module.md +++ b/.agents/skills/cli-modules/references/compute-log-module.md @@ -12,8 +12,8 @@ csdk compute-log-module list --where.. --orderBy csdk compute-log-module list --limit 10 --after csdk compute-log-module find-first --where.. csdk compute-log-module get --id -csdk compute-log-module create --databaseId --scope [--actorFkTableId ] [--apiName ] [--computeLogTableId ] [--computeLogTableName ] [--entityField ] [--entityFkTableId ] [--interval ] [--prefix ] [--premake ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--retention ] [--schemaId ] [--usageSummaryTableId ] [--usageSummaryTableName ] -csdk compute-log-module update --id [--actorFkTableId ] [--apiName ] [--computeLogTableId ] [--computeLogTableName ] [--databaseId ] [--entityField ] [--entityFkTableId ] [--interval ] [--prefix ] [--premake ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--retention ] [--schemaId ] [--scope ] [--usageSummaryTableId ] [--usageSummaryTableName ] +csdk compute-log-module create --databaseId --scope [--apiName ] [--computeLogTableId ] [--computeLogTableName ] [--entityField ] [--interval ] [--prefix ] [--premake ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--retention ] [--rollupFunctionName ] [--schemaId ] [--usageSummaryTableId ] [--usageSummaryTableName ] +csdk compute-log-module update --id [--apiName ] [--computeLogTableId ] [--computeLogTableName ] [--databaseId ] [--entityField ] [--interval ] [--prefix ] [--premake ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--retention ] [--rollupFunctionName ] [--schemaId ] [--scope ] [--usageSummaryTableId ] [--usageSummaryTableName ] csdk compute-log-module delete --id ``` @@ -58,7 +58,7 @@ csdk compute-log-module list --where.id.equalTo --orderBy ID_ASC ### Create a computeLogModule ```bash -csdk compute-log-module create --databaseId --scope [--actorFkTableId ] [--apiName ] [--computeLogTableId ] [--computeLogTableName ] [--entityField ] [--entityFkTableId ] [--interval ] [--prefix ] [--premake ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--retention ] [--schemaId ] [--usageSummaryTableId ] [--usageSummaryTableName ] +csdk compute-log-module create --databaseId --scope [--apiName ] [--computeLogTableId ] [--computeLogTableName ] [--entityField ] [--interval ] [--prefix ] [--premake ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--retention ] [--rollupFunctionName ] [--schemaId ] [--usageSummaryTableId ] [--usageSummaryTableName ] ``` ### Get a computeLogModule by id diff --git a/.agents/skills/cli-modules/references/construct-blueprint.md b/.agents/skills/cli-modules/references/construct-blueprint.md index 89eb887f86..6fd45a6753 100644 --- a/.agents/skills/cli-modules/references/construct-blueprint.md +++ b/.agents/skills/cli-modules/references/construct-blueprint.md @@ -2,7 +2,7 @@ -Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry — provisions entity tables, membership modules, and security. 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. +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). A table entry either names its table (table_name plus optional schema_name) or references one an installed module generated ("module": {"type": "agent", "scope": "org", "table": "message"}), which resolves through the module row's recorded table ids and raises when it matches nothing instead of creating an empty table. After provisioning, optional smart_tags (jsonb object) on the table entry are applied via metaschema.append_table_smart_tags(), and optional smart_tags on individual field entries are applied via metaschema.append_field_smart_tags(). (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] — resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID on success, NULL on failure. ## Usage diff --git a/.agents/skills/cli-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-provision-module.md b/.agents/skills/cli-modules/references/database-provision-module.md index b28babbbd6..8b1617c640 100644 --- a/.agents/skills/cli-modules/references/database-provision-module.md +++ b/.agents/skills/cli-modules/references/database-provision-module.md @@ -12,8 +12,8 @@ csdk database-provision-module list --where.. --orderBy csdk database-provision-module find-first --where.. csdk database-provision-module get --id -csdk database-provision-module create --databaseName --domain --ownerId [--async ] [--bootstrapError ] [--bootstrapStatus ] [--bootstrapUser ] [--completedAt ] [--databaseId ] [--errorMessage ] [--fulfilledAt ] [--modules ] [--options ] [--sourceDatabaseId ] [--status ] [--subdomain ] -csdk database-provision-module update --id [--async ] [--bootstrapError ] [--bootstrapStatus ] [--bootstrapUser ] [--completedAt ] [--databaseId ] [--databaseName ] [--domain ] [--errorMessage ] [--fulfilledAt ] [--modules ] [--options ] [--ownerId ] [--sourceDatabaseId ] [--status ] [--subdomain ] +csdk database-provision-module create --databaseName --domain --ownerId [--async ] [--bootstrapActorId ] [--bootstrapError ] [--bootstrapStatus ] [--bootstrapUser ] [--completedAt ] [--databaseId ] [--errorMessage ] [--fulfilledAt ] [--modules ] [--options ] [--sourceDatabaseId ] [--status ] [--subdomain ] +csdk database-provision-module update --id [--async ] [--bootstrapActorId ] [--bootstrapError ] [--bootstrapStatus ] [--bootstrapUser ] [--completedAt ] [--databaseId ] [--databaseName ] [--domain ] [--errorMessage ] [--fulfilledAt ] [--modules ] [--options ] [--ownerId ] [--sourceDatabaseId ] [--status ] [--subdomain ] csdk database-provision-module delete --id ``` @@ -58,7 +58,7 @@ csdk database-provision-module list --where.id.equalTo --orderBy ID_ASC ### Create a databaseProvisionModule ```bash -csdk database-provision-module create --databaseName --domain --ownerId [--async ] [--bootstrapError ] [--bootstrapStatus ] [--bootstrapUser ] [--completedAt ] [--databaseId ] [--errorMessage ] [--fulfilledAt ] [--modules ] [--options ] [--sourceDatabaseId ] [--status ] [--subdomain ] +csdk database-provision-module create --databaseName --domain --ownerId [--async ] [--bootstrapActorId ] [--bootstrapError ] [--bootstrapStatus ] [--bootstrapUser ] [--completedAt ] [--databaseId ] [--errorMessage ] [--fulfilledAt ] [--modules ] [--options ] [--sourceDatabaseId ] [--status ] [--subdomain ] ``` ### Get a databaseProvisionModule by 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..34b429045a 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 ] [--storageKey ] +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 ] [--storageKey ] 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 ] [--storageKey ] ``` ### 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/image-module.md b/.agents/skills/cli-modules/references/image-module.md new file mode 100644 index 0000000000..8df66692ad --- /dev/null +++ b/.agents/skills/cli-modules/references/image-module.md @@ -0,0 +1,68 @@ +# imageModule + + + +CRUD operations for ImageModule records via csdk CLI + +## Usage + +```bash +csdk image-module list +csdk image-module list --where.. --orderBy +csdk image-module list --limit 10 --after +csdk image-module find-first --where.. +csdk image-module get --id +csdk image-module create --databaseId --scope [--apiName ] [--defaultCapabilities ] [--entityField ] [--entityTableId ] [--imageGrantsTableId ] [--imageGrantsTableName ] [--imagesTableId ] [--imagesTableName ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--registriesTableId ] [--registriesTableName ] [--registryGrantsTableId ] [--registryGrantsTableName ] [--schemaId ] +csdk image-module update --id [--apiName ] [--databaseId ] [--defaultCapabilities ] [--entityField ] [--entityTableId ] [--imageGrantsTableId ] [--imageGrantsTableName ] [--imagesTableId ] [--imagesTableName ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--registriesTableId ] [--registriesTableName ] [--registryGrantsTableId ] [--registryGrantsTableName ] [--schemaId ] [--scope ] +csdk image-module delete --id +``` + +## Examples + +### List imageModule records + +```bash +csdk image-module list +``` + +### List imageModule records with pagination + +```bash +csdk image-module list --limit 10 --offset 0 +``` + +### List imageModule records with cursor pagination + +```bash +csdk image-module list --limit 10 --after +``` + +### Find first matching imageModule + +```bash +csdk image-module find-first --where.id.equalTo +``` + +### List imageModule records with field selection + +```bash +csdk image-module list --select id,id +``` + +### List imageModule records with filtering and ordering + +```bash +csdk image-module list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a imageModule + +```bash +csdk image-module create --databaseId --scope [--apiName ] [--defaultCapabilities ] [--entityField ] [--entityTableId ] [--imageGrantsTableId ] [--imageGrantsTableName ] [--imagesTableId ] [--imagesTableName ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--registriesTableId ] [--registriesTableName ] [--registryGrantsTableId ] [--registryGrantsTableName ] [--schemaId ] +``` + +### Get a imageModule by id + +```bash +csdk image-module get --id +``` diff --git a/.agents/skills/cli-modules/references/inference-log-module.md b/.agents/skills/cli-modules/references/inference-log-module.md index 8b61396120..2fb3cb0051 100644 --- a/.agents/skills/cli-modules/references/inference-log-module.md +++ b/.agents/skills/cli-modules/references/inference-log-module.md @@ -12,8 +12,8 @@ csdk inference-log-module list --where.. --orderBy csdk inference-log-module list --limit 10 --after csdk inference-log-module find-first --where.. csdk inference-log-module get --id -csdk inference-log-module create --databaseId --scope [--actorFkTableId ] [--apiName ] [--entityField ] [--entityFkTableId ] [--inferenceLogTableId ] [--inferenceLogTableName ] [--interval ] [--prefix ] [--premake ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--retention ] [--schemaId ] [--usageSummaryTableId ] [--usageSummaryTableName ] -csdk inference-log-module update --id [--actorFkTableId ] [--apiName ] [--databaseId ] [--entityField ] [--entityFkTableId ] [--inferenceLogTableId ] [--inferenceLogTableName ] [--interval ] [--prefix ] [--premake ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--retention ] [--schemaId ] [--scope ] [--usageSummaryTableId ] [--usageSummaryTableName ] +csdk inference-log-module create --databaseId --scope [--apiName ] [--entityField ] [--inferenceLogTableId ] [--inferenceLogTableName ] [--interval ] [--prefix ] [--premake ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--retention ] [--rollupFunctionName ] [--schemaId ] [--usageSummaryTableId ] [--usageSummaryTableName ] +csdk inference-log-module update --id [--apiName ] [--databaseId ] [--entityField ] [--inferenceLogTableId ] [--inferenceLogTableName ] [--interval ] [--prefix ] [--premake ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--retention ] [--rollupFunctionName ] [--schemaId ] [--scope ] [--usageSummaryTableId ] [--usageSummaryTableName ] csdk inference-log-module delete --id ``` @@ -58,7 +58,7 @@ csdk inference-log-module list --where.id.equalTo --orderBy ID_ASC ### Create a inferenceLogModule ```bash -csdk inference-log-module create --databaseId --scope [--actorFkTableId ] [--apiName ] [--entityField ] [--entityFkTableId ] [--inferenceLogTableId ] [--inferenceLogTableName ] [--interval ] [--prefix ] [--premake ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--retention ] [--schemaId ] [--usageSummaryTableId ] [--usageSummaryTableName ] +csdk inference-log-module create --databaseId --scope [--apiName ] [--entityField ] [--inferenceLogTableId ] [--inferenceLogTableName ] [--interval ] [--prefix ] [--premake ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--retention ] [--rollupFunctionName ] [--schemaId ] [--usageSummaryTableId ] [--usageSummaryTableName ] ``` ### Get a inferenceLogModule by id diff --git a/.agents/skills/cli-modules/references/internal-config-module.md b/.agents/skills/cli-modules/references/internal-config-module.md new file mode 100644 index 0000000000..7f5d9cbba8 --- /dev/null +++ b/.agents/skills/cli-modules/references/internal-config-module.md @@ -0,0 +1,68 @@ +# internalConfigModule + + + +CRUD operations for InternalConfigModule records via csdk CLI + +## Usage + +```bash +csdk internal-config-module list +csdk internal-config-module list --where.. --orderBy +csdk internal-config-module list --limit 10 --after +csdk internal-config-module find-first --where.. +csdk internal-config-module get --id +csdk internal-config-module create --databaseId --scope [--apiName ] [--entityField ] [--entityTableId ] [--internalConfigTableId ] [--internalConfigTableName ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schemaId ] +csdk internal-config-module update --id [--apiName ] [--databaseId ] [--entityField ] [--entityTableId ] [--internalConfigTableId ] [--internalConfigTableName ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schemaId ] [--scope ] +csdk internal-config-module delete --id +``` + +## Examples + +### List internalConfigModule records + +```bash +csdk internal-config-module list +``` + +### List internalConfigModule records with pagination + +```bash +csdk internal-config-module list --limit 10 --offset 0 +``` + +### List internalConfigModule records with cursor pagination + +```bash +csdk internal-config-module list --limit 10 --after +``` + +### Find first matching internalConfigModule + +```bash +csdk internal-config-module find-first --where.id.equalTo +``` + +### List internalConfigModule records with field selection + +```bash +csdk internal-config-module list --select id,id +``` + +### List internalConfigModule records with filtering and ordering + +```bash +csdk internal-config-module list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a internalConfigModule + +```bash +csdk internal-config-module create --databaseId --scope [--apiName ] [--entityField ] [--entityTableId ] [--internalConfigTableId ] [--internalConfigTableName ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schemaId ] +``` + +### Get a internalConfigModule by id + +```bash +csdk internal-config-module get --id +``` diff --git a/.agents/skills/cli-modules/references/k-8-s-admission-module.md b/.agents/skills/cli-modules/references/k-8-s-admission-module.md new file mode 100644 index 0000000000..aa6f5e3baf --- /dev/null +++ b/.agents/skills/cli-modules/references/k-8-s-admission-module.md @@ -0,0 +1,68 @@ +# k8sAdmissionModule + + + +CRUD operations for K8sAdmissionModule records via csdk CLI + +## Usage + +```bash +csdk k-8-s-admission-module list +csdk k-8-s-admission-module list --where.. --orderBy +csdk k-8-s-admission-module list --limit 10 --after +csdk k-8-s-admission-module find-first --where.. +csdk k-8-s-admission-module get --id +csdk k-8-s-admission-module create --databaseId --merkleStoreModuleId --prefix --scope --storeName [--apiName ] [--entityTableId ] [--k8sResourceKindsTableId ] [--k8sSpecRulesTableId ] [--policies ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaId ] [--publicSchemaName ] +csdk k-8-s-admission-module update --id [--apiName ] [--databaseId ] [--entityTableId ] [--k8sResourceKindsTableId ] [--k8sSpecRulesTableId ] [--merkleStoreModuleId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaId ] [--publicSchemaName ] [--scope ] [--storeName ] +csdk k-8-s-admission-module delete --id +``` + +## Examples + +### List k8sAdmissionModule records + +```bash +csdk k-8-s-admission-module list +``` + +### List k8sAdmissionModule records with pagination + +```bash +csdk k-8-s-admission-module list --limit 10 --offset 0 +``` + +### List k8sAdmissionModule records with cursor pagination + +```bash +csdk k-8-s-admission-module list --limit 10 --after +``` + +### Find first matching k8sAdmissionModule + +```bash +csdk k-8-s-admission-module find-first --where.id.equalTo +``` + +### List k8sAdmissionModule records with field selection + +```bash +csdk k-8-s-admission-module list --select id,id +``` + +### List k8sAdmissionModule records with filtering and ordering + +```bash +csdk k-8-s-admission-module list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a k8sAdmissionModule + +```bash +csdk k-8-s-admission-module create --databaseId --merkleStoreModuleId --prefix --scope --storeName [--apiName ] [--entityTableId ] [--k8sResourceKindsTableId ] [--k8sSpecRulesTableId ] [--policies ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaId ] [--publicSchemaName ] +``` + +### Get a k8sAdmissionModule by id + +```bash +csdk k-8-s-admission-module get --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/machine-module.md b/.agents/skills/cli-modules/references/machine-module.md new file mode 100644 index 0000000000..486a095519 --- /dev/null +++ b/.agents/skills/cli-modules/references/machine-module.md @@ -0,0 +1,68 @@ +# machineModule + + + +CRUD operations for MachineModule records via csdk CLI + +## Usage + +```bash +csdk machine-module list +csdk machine-module list --where.. --orderBy +csdk machine-module list --limit 10 --after +csdk machine-module find-first --where.. +csdk machine-module get --id +csdk machine-module create --databaseId --scope [--apiName ] [--defaultCapabilities ] [--entityField ] [--entityTableId ] [--machineMessagesTableId ] [--machineMessagesTableName ] [--machineSessionsTableId ] [--machineSessionsTableName ] [--machinesTableId ] [--machinesTableName ] [--partitionInterval ] [--policies ] [--prefix ] [--premake ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--retention ] [--schemaId ] +csdk machine-module update --id [--apiName ] [--databaseId ] [--defaultCapabilities ] [--entityField ] [--entityTableId ] [--machineMessagesTableId ] [--machineMessagesTableName ] [--machineSessionsTableId ] [--machineSessionsTableName ] [--machinesTableId ] [--machinesTableName ] [--partitionInterval ] [--policies ] [--prefix ] [--premake ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--retention ] [--schemaId ] [--scope ] +csdk machine-module delete --id +``` + +## Examples + +### List machineModule records + +```bash +csdk machine-module list +``` + +### List machineModule records with pagination + +```bash +csdk machine-module list --limit 10 --offset 0 +``` + +### List machineModule records with cursor pagination + +```bash +csdk machine-module list --limit 10 --after +``` + +### Find first matching machineModule + +```bash +csdk machine-module find-first --where.id.equalTo +``` + +### List machineModule records with field selection + +```bash +csdk machine-module list --select id,id +``` + +### List machineModule records with filtering and ordering + +```bash +csdk machine-module list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a machineModule + +```bash +csdk machine-module create --databaseId --scope [--apiName ] [--defaultCapabilities ] [--entityField ] [--entityTableId ] [--machineMessagesTableId ] [--machineMessagesTableName ] [--machineSessionsTableId ] [--machineSessionsTableName ] [--machinesTableId ] [--machinesTableName ] [--partitionInterval ] [--policies ] [--prefix ] [--premake ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--retention ] [--schemaId ] +``` + +### Get a machineModule by id + +```bash +csdk machine-module get --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..85c7e5de32 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 ] [--entityTableId ] [--functionPrefix ] [--objectTableId ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--refTableId ] [--schemaId ] [--storeTableId ] +csdk merkle-store-module update --id [--apiName ] [--capabilityKey ] [--commitTableId ] [--databaseId ] [--entityField ] [--entityTableId ] [--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 ] [--entityTableId ] [--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/pages-module.md b/.agents/skills/cli-modules/references/pages-module.md index f1d06a964e..564c79b991 100644 --- a/.agents/skills/cli-modules/references/pages-module.md +++ b/.agents/skills/cli-modules/references/pages-module.md @@ -12,8 +12,8 @@ csdk pages-module list --where.. --orderBy csdk pages-module list --limit 10 --after csdk pages-module find-first --where.. csdk pages-module get --id -csdk pages-module create --databaseId --merkleStoreModuleId --prefix --scope [--apiName ] [--entityTableId ] [--pagesTableId ] [--policies ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaId ] [--publicSchemaName ] [--siteSurfaceModuleId ] [--sitesTableId ] [--storeNamePrefix ] -csdk pages-module update --id [--apiName ] [--databaseId ] [--entityTableId ] [--merkleStoreModuleId ] [--pagesTableId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaId ] [--publicSchemaName ] [--scope ] [--siteSurfaceModuleId ] [--sitesTableId ] [--storeNamePrefix ] +csdk pages-module create --databaseId --merkleStoreModuleId --prefix --scope [--apiName ] [--entityTableId ] [--pagesTableId ] [--policies ] [--previewCommitFunctionName ] [--previewSetFunctionName ] [--previewTokenMintFunctionName ] [--previewTokenVerifierFunctionName ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaId ] [--publicSchemaName ] [--releaseManifestFunctionName ] [--siteSurfaceModuleId ] [--sitesTableId ] [--storeNamePrefix ] +csdk pages-module update --id [--apiName ] [--databaseId ] [--entityTableId ] [--merkleStoreModuleId ] [--pagesTableId ] [--policies ] [--prefix ] [--previewCommitFunctionName ] [--previewSetFunctionName ] [--previewTokenMintFunctionName ] [--previewTokenVerifierFunctionName ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaId ] [--publicSchemaName ] [--releaseManifestFunctionName ] [--scope ] [--siteSurfaceModuleId ] [--sitesTableId ] [--storeNamePrefix ] csdk pages-module delete --id ``` @@ -58,7 +58,7 @@ csdk pages-module list --where.id.equalTo --orderBy ID_ASC ### Create a pagesModule ```bash -csdk pages-module create --databaseId --merkleStoreModuleId --prefix --scope [--apiName ] [--entityTableId ] [--pagesTableId ] [--policies ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaId ] [--publicSchemaName ] [--siteSurfaceModuleId ] [--sitesTableId ] [--storeNamePrefix ] +csdk pages-module create --databaseId --merkleStoreModuleId --prefix --scope [--apiName ] [--entityTableId ] [--pagesTableId ] [--policies ] [--previewCommitFunctionName ] [--previewSetFunctionName ] [--previewTokenMintFunctionName ] [--previewTokenVerifierFunctionName ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaId ] [--publicSchemaName ] [--releaseManifestFunctionName ] [--siteSurfaceModuleId ] [--sitesTableId ] [--storeNamePrefix ] ``` ### Get a pagesModule by id diff --git a/.agents/skills/cli-modules/references/principal-auth-module.md b/.agents/skills/cli-modules/references/principal-auth-module.md index 2196df6ebb..6abf657940 100644 --- a/.agents/skills/cli-modules/references/principal-auth-module.md +++ b/.agents/skills/cli-modules/references/principal-auth-module.md @@ -12,8 +12,8 @@ csdk principal-auth-module list --where.. --orderBy csdk principal-auth-module list --limit 10 --after csdk principal-auth-module find-first --where.. csdk principal-auth-module get --id -csdk principal-auth-module create --databaseId [--apiName ] [--auditsTableId ] [--createOrgApiKeyFunction ] [--createOrgPrincipalFunction ] [--createPrincipalFunction ] [--deleteOrgPrincipalFunction ] [--deletePrincipalFunction ] [--principalEntitiesTableId ] [--principalScopeOverridesTableId ] [--principalsTableId ] [--principalsTableName ] [--revokeOrgApiKeyFunction ] [--schemaId ] [--sessionCredentialsTableId ] [--sessionsTableId ] [--usersTableId ] -csdk principal-auth-module update --id [--apiName ] [--auditsTableId ] [--createOrgApiKeyFunction ] [--createOrgPrincipalFunction ] [--createPrincipalFunction ] [--databaseId ] [--deleteOrgPrincipalFunction ] [--deletePrincipalFunction ] [--principalEntitiesTableId ] [--principalScopeOverridesTableId ] [--principalsTableId ] [--principalsTableName ] [--revokeOrgApiKeyFunction ] [--schemaId ] [--sessionCredentialsTableId ] [--sessionsTableId ] [--usersTableId ] +csdk principal-auth-module create --databaseId [--apiName ] [--auditsTableId ] [--createOrgApiKeyFunction ] [--createOrgPrincipalFunction ] [--createPrincipalFunction ] [--deleteOrgPrincipalFunction ] [--deletePrincipalFunction ] [--principalEntitiesTableId ] [--principalScopeOverridesTableId ] [--principalsTableId ] [--principalsTableName ] [--privateSchemaId ] [--revokeOrgApiKeyFunction ] [--schemaId ] [--sessionCredentialsTableId ] [--sessionsTableId ] [--sweepExpiredPrincipalsFunction ] [--usersTableId ] +csdk principal-auth-module update --id [--apiName ] [--auditsTableId ] [--createOrgApiKeyFunction ] [--createOrgPrincipalFunction ] [--createPrincipalFunction ] [--databaseId ] [--deleteOrgPrincipalFunction ] [--deletePrincipalFunction ] [--principalEntitiesTableId ] [--principalScopeOverridesTableId ] [--principalsTableId ] [--principalsTableName ] [--privateSchemaId ] [--revokeOrgApiKeyFunction ] [--schemaId ] [--sessionCredentialsTableId ] [--sessionsTableId ] [--sweepExpiredPrincipalsFunction ] [--usersTableId ] csdk principal-auth-module delete --id ``` @@ -58,7 +58,7 @@ csdk principal-auth-module list --where.id.equalTo --orderBy ID_ASC ### Create a principalAuthModule ```bash -csdk principal-auth-module create --databaseId [--apiName ] [--auditsTableId ] [--createOrgApiKeyFunction ] [--createOrgPrincipalFunction ] [--createPrincipalFunction ] [--deleteOrgPrincipalFunction ] [--deletePrincipalFunction ] [--principalEntitiesTableId ] [--principalScopeOverridesTableId ] [--principalsTableId ] [--principalsTableName ] [--revokeOrgApiKeyFunction ] [--schemaId ] [--sessionCredentialsTableId ] [--sessionsTableId ] [--usersTableId ] +csdk principal-auth-module create --databaseId [--apiName ] [--auditsTableId ] [--createOrgApiKeyFunction ] [--createOrgPrincipalFunction ] [--createPrincipalFunction ] [--deleteOrgPrincipalFunction ] [--deletePrincipalFunction ] [--principalEntitiesTableId ] [--principalScopeOverridesTableId ] [--principalsTableId ] [--principalsTableName ] [--privateSchemaId ] [--revokeOrgApiKeyFunction ] [--schemaId ] [--sessionCredentialsTableId ] [--sessionsTableId ] [--sweepExpiredPrincipalsFunction ] [--usersTableId ] ``` ### Get a principalAuthModule by 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/provision-bucket.md b/.agents/skills/cli-modules/references/provision-bucket.md index cc17ffbc21..5fbe38a003 100644 --- a/.agents/skills/cli-modules/references/provision-bucket.md +++ b/.agents/skills/cli-modules/references/provision-bucket.md @@ -2,10 +2,11 @@ -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. +Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. ## Usage 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/refusal-log-module.md b/.agents/skills/cli-modules/references/refusal-log-module.md new file mode 100644 index 0000000000..34eb7cc5ca --- /dev/null +++ b/.agents/skills/cli-modules/references/refusal-log-module.md @@ -0,0 +1,68 @@ +# refusalLogModule + + + +CRUD operations for RefusalLogModule records via csdk CLI + +## Usage + +```bash +csdk refusal-log-module list +csdk refusal-log-module list --where.. --orderBy +csdk refusal-log-module list --limit 10 --after +csdk refusal-log-module find-first --where.. +csdk refusal-log-module get --id +csdk refusal-log-module create --databaseId --scope [--apiName ] [--entityField ] [--logInterval ] [--logPremake ] [--logRetention ] [--logTableId ] [--logTableName ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--recordRefusalsFunction ] [--rollupRefusalUsageSummaryFunction ] [--schemaId ] [--summaryInterval ] [--summaryPremake ] [--summaryRetention ] [--summaryTableId ] [--summaryTableName ] +csdk refusal-log-module update --id [--apiName ] [--databaseId ] [--entityField ] [--logInterval ] [--logPremake ] [--logRetention ] [--logTableId ] [--logTableName ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--recordRefusalsFunction ] [--rollupRefusalUsageSummaryFunction ] [--schemaId ] [--scope ] [--summaryInterval ] [--summaryPremake ] [--summaryRetention ] [--summaryTableId ] [--summaryTableName ] +csdk refusal-log-module delete --id +``` + +## Examples + +### List refusalLogModule records + +```bash +csdk refusal-log-module list +``` + +### List refusalLogModule records with pagination + +```bash +csdk refusal-log-module list --limit 10 --offset 0 +``` + +### List refusalLogModule records with cursor pagination + +```bash +csdk refusal-log-module list --limit 10 --after +``` + +### Find first matching refusalLogModule + +```bash +csdk refusal-log-module find-first --where.id.equalTo +``` + +### List refusalLogModule records with field selection + +```bash +csdk refusal-log-module list --select id,id +``` + +### List refusalLogModule records with filtering and ordering + +```bash +csdk refusal-log-module list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a refusalLogModule + +```bash +csdk refusal-log-module create --databaseId --scope [--apiName ] [--entityField ] [--logInterval ] [--logPremake ] [--logRetention ] [--logTableId ] [--logTableName ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--recordRefusalsFunction ] [--rollupRefusalUsageSummaryFunction ] [--schemaId ] [--summaryInterval ] [--summaryPremake ] [--summaryRetention ] [--summaryTableId ] [--summaryTableName ] +``` + +### Get a refusalLogModule by id + +```bash +csdk refusal-log-module get --id +``` diff --git a/.agents/skills/cli-modules/references/repository-module.md b/.agents/skills/cli-modules/references/repository-module.md new file mode 100644 index 0000000000..dd5ee955ee --- /dev/null +++ b/.agents/skills/cli-modules/references/repository-module.md @@ -0,0 +1,68 @@ +# repositoryModule + + + +CRUD operations for RepositoryModule records via csdk CLI + +## Usage + +```bash +csdk repository-module list +csdk repository-module list --where.. --orderBy +csdk repository-module list --limit 10 --after +csdk repository-module find-first --where.. +csdk repository-module get --id +csdk repository-module create --databaseId --scope [--apiName ] [--buildStepsTableId ] [--buildStepsTableName ] [--buildsTableId ] [--buildsTableName ] [--defaultCapabilities ] [--entityField ] [--entityTableId ] [--hasAttachments ] [--hasBuilds ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--proposalCommentsTableId ] [--proposalCommentsTableName ] [--proposalFileViewsTableId ] [--proposalFileViewsTableName ] [--proposalReactionsTableId ] [--proposalReactionsTableName ] [--proposalReviewsTableId ] [--proposalReviewsTableName ] [--proposalsTableId ] [--proposalsTableName ] [--provisions ] [--publicSchemaName ] [--repositoriesTableId ] [--repositoriesTableName ] [--repositoryEventsTableId ] [--repositoryEventsTableName ] [--repositoryRequiredChecksTableId ] [--repositoryRequiredChecksTableName ] [--schemaId ] [--search ] [--workflowsTableId ] [--workflowsTableName ] +csdk repository-module update --id [--apiName ] [--buildStepsTableId ] [--buildStepsTableName ] [--buildsTableId ] [--buildsTableName ] [--databaseId ] [--defaultCapabilities ] [--entityField ] [--entityTableId ] [--hasAttachments ] [--hasBuilds ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--proposalCommentsTableId ] [--proposalCommentsTableName ] [--proposalFileViewsTableId ] [--proposalFileViewsTableName ] [--proposalReactionsTableId ] [--proposalReactionsTableName ] [--proposalReviewsTableId ] [--proposalReviewsTableName ] [--proposalsTableId ] [--proposalsTableName ] [--provisions ] [--publicSchemaName ] [--repositoriesTableId ] [--repositoriesTableName ] [--repositoryEventsTableId ] [--repositoryEventsTableName ] [--repositoryRequiredChecksTableId ] [--repositoryRequiredChecksTableName ] [--schemaId ] [--scope ] [--search ] [--workflowsTableId ] [--workflowsTableName ] +csdk repository-module delete --id +``` + +## Examples + +### List repositoryModule records + +```bash +csdk repository-module list +``` + +### List repositoryModule records with pagination + +```bash +csdk repository-module list --limit 10 --offset 0 +``` + +### List repositoryModule records with cursor pagination + +```bash +csdk repository-module list --limit 10 --after +``` + +### Find first matching repositoryModule + +```bash +csdk repository-module find-first --where.id.equalTo +``` + +### List repositoryModule records with field selection + +```bash +csdk repository-module list --select id,id +``` + +### List repositoryModule records with filtering and ordering + +```bash +csdk repository-module list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a repositoryModule + +```bash +csdk repository-module create --databaseId --scope [--apiName ] [--buildStepsTableId ] [--buildStepsTableName ] [--buildsTableId ] [--buildsTableName ] [--defaultCapabilities ] [--entityField ] [--entityTableId ] [--hasAttachments ] [--hasBuilds ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--proposalCommentsTableId ] [--proposalCommentsTableName ] [--proposalFileViewsTableId ] [--proposalFileViewsTableName ] [--proposalReactionsTableId ] [--proposalReactionsTableName ] [--proposalReviewsTableId ] [--proposalReviewsTableName ] [--proposalsTableId ] [--proposalsTableName ] [--provisions ] [--publicSchemaName ] [--repositoriesTableId ] [--repositoriesTableName ] [--repositoryEventsTableId ] [--repositoryEventsTableName ] [--repositoryRequiredChecksTableId ] [--repositoryRequiredChecksTableName ] [--schemaId ] [--search ] [--workflowsTableId ] [--workflowsTableName ] +``` + +### Get a repositoryModule by id + +```bash +csdk repository-module get --id +``` diff --git a/.agents/skills/cli-modules/references/resource-module.md b/.agents/skills/cli-modules/references/resource-module.md index ec3547424c..cefbafe76e 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 ] [--builderBindingsTableId ] [--builderBindingsTableName ] [--defaultCapabilities ] [--entityField ] [--entityTableId ] [--installationStoreName ] [--merkleStoreModuleId ] [--namespaceModuleId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--registryBindingsTableId ] [--registryBindingsTableName ] [--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 ] [--builderBindingsTableId ] [--builderBindingsTableName ] [--databaseId ] [--defaultCapabilities ] [--entityField ] [--entityTableId ] [--installationStoreName ] [--merkleStoreModuleId ] [--namespaceModuleId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--registryBindingsTableId ] [--registryBindingsTableName ] [--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 ] [--builderBindingsTableId ] [--builderBindingsTableName ] [--defaultCapabilities ] [--entityField ] [--entityTableId ] [--installationStoreName ] [--merkleStoreModuleId ] [--namespaceModuleId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--registryBindingsTableId ] [--registryBindingsTableName ] [--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..edd066abcb 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 ] [--redirectsTableId ] [--redirectsTableName ] [--resolverFunctionName ] [--routeBindingsTableId ] [--routeBindingsTableName ] [--routesTableId ] [--routesTableName ] [--schemaId ] [--servingSiteField ] [--storageKey ] +csdk route-module update --id [--apiName ] [--appLinksFunctionName ] [--catalogModuleId ] [--databaseId ] [--deepLinkFunctionName ] [--defaultCapabilities ] [--domainModuleId ] [--entityField ] [--entityTableId ] [--hostnameBindingsTableId ] [--hostnameBindingsTableName ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--redirectsTableId ] [--redirectsTableName ] [--resolverFunctionName ] [--routeBindingsTableId ] [--routeBindingsTableName ] [--routesTableId ] [--routesTableName ] [--schemaId ] [--scope ] [--servingSiteField ] [--storageKey ] 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 ] [--redirectsTableId ] [--redirectsTableName ] [--resolverFunctionName ] [--routeBindingsTableId ] [--routeBindingsTableName ] [--routesTableId ] [--routesTableName ] [--schemaId ] [--servingSiteField ] [--storageKey ] ``` ### 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/secure-table-provision.md b/.agents/skills/cli-modules/references/secure-table-provision.md index 6412a90678..71d82954eb 100644 --- a/.agents/skills/cli-modules/references/secure-table-provision.md +++ b/.agents/skills/cli-modules/references/secure-table-provision.md @@ -12,8 +12,8 @@ csdk secure-table-provision list --where.. --orderBy csdk secure-table-provision list --limit 10 --after csdk secure-table-provision find-first --where.. csdk secure-table-provision get --id -csdk secure-table-provision create --databaseId [--fields ] [--grants ] [--nodes ] [--outFields ] [--policies ] [--schemaId ] [--tableId ] [--tableName ] [--useRls ] -csdk secure-table-provision update --id [--databaseId ] [--fields ] [--grants ] [--nodes ] [--outFields ] [--policies ] [--schemaId ] [--tableId ] [--tableName ] [--useRls ] +csdk secure-table-provision create --databaseId [--fields ] [--grants ] [--module ] [--nodes ] [--outFields ] [--owns ] [--policies ] [--schemaId ] [--tableId ] [--tableName ] [--useRls ] +csdk secure-table-provision update --id [--databaseId ] [--fields ] [--grants ] [--module ] [--nodes ] [--outFields ] [--owns ] [--policies ] [--schemaId ] [--tableId ] [--tableName ] [--useRls ] csdk secure-table-provision delete --id ``` @@ -58,7 +58,7 @@ csdk secure-table-provision list --where.id.equalTo --orderBy ID_ASC ### Create a secureTableProvision ```bash -csdk secure-table-provision create --databaseId [--fields ] [--grants ] [--nodes ] [--outFields ] [--policies ] [--schemaId ] [--tableId ] [--tableName ] [--useRls ] +csdk secure-table-provision create --databaseId [--fields ] [--grants ] [--module ] [--nodes ] [--outFields ] [--owns ] [--policies ] [--schemaId ] [--tableId ] [--tableName ] [--useRls ] ``` ### Get a secureTableProvision by 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..67830be862 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 ] [--siteReleasesTableId ] [--siteReleasesTableName ] [--siteThemesTableId ] [--siteThemesTableName ] [--siteWebConfigTableId ] [--siteWebConfigTableName ] [--sitesTableId ] [--sitesTableName ] [--storageKey ] +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 ] [--siteReleasesTableId ] [--siteReleasesTableName ] [--siteThemesTableId ] [--siteThemesTableName ] [--siteWebConfigTableId ] [--siteWebConfigTableName ] [--sitesTableId ] [--sitesTableName ] [--storageKey ] 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 ] [--siteReleasesTableId ] [--siteReleasesTableName ] [--siteThemesTableId ] [--siteThemesTableName ] [--siteWebConfigTableId ] [--siteWebConfigTableName ] [--sitesTableId ] [--sitesTableName ] [--storageKey ] ``` ### Get a siteSurfaceModule by id diff --git a/.agents/skills/cli-modules/references/storage-log-module.md b/.agents/skills/cli-modules/references/storage-log-module.md index 4873ff41aa..10fdfdd436 100644 --- a/.agents/skills/cli-modules/references/storage-log-module.md +++ b/.agents/skills/cli-modules/references/storage-log-module.md @@ -12,8 +12,8 @@ csdk storage-log-module list --where.. --orderBy csdk storage-log-module list --limit 10 --after csdk storage-log-module find-first --where.. csdk storage-log-module get --id -csdk storage-log-module create --databaseId --scope [--actorFkTableId ] [--apiName ] [--entityField ] [--entityFkTableId ] [--interval ] [--prefix ] [--premake ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--retention ] [--schemaId ] [--storageLogTableId ] [--storageLogTableName ] [--usageSummaryTableId ] [--usageSummaryTableName ] -csdk storage-log-module update --id [--actorFkTableId ] [--apiName ] [--databaseId ] [--entityField ] [--entityFkTableId ] [--interval ] [--prefix ] [--premake ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--retention ] [--schemaId ] [--scope ] [--storageLogTableId ] [--storageLogTableName ] [--usageSummaryTableId ] [--usageSummaryTableName ] +csdk storage-log-module create --databaseId --scope [--apiName ] [--entityField ] [--interval ] [--prefix ] [--premake ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--retention ] [--rollupFunctionName ] [--schemaId ] [--storageLogTableId ] [--storageLogTableName ] [--usageSummaryTableId ] [--usageSummaryTableName ] +csdk storage-log-module update --id [--apiName ] [--databaseId ] [--entityField ] [--interval ] [--prefix ] [--premake ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--retention ] [--rollupFunctionName ] [--schemaId ] [--scope ] [--storageLogTableId ] [--storageLogTableName ] [--usageSummaryTableId ] [--usageSummaryTableName ] csdk storage-log-module delete --id ``` @@ -58,7 +58,7 @@ csdk storage-log-module list --where.id.equalTo --orderBy ID_ASC ### Create a storageLogModule ```bash -csdk storage-log-module create --databaseId --scope [--actorFkTableId ] [--apiName ] [--entityField ] [--entityFkTableId ] [--interval ] [--prefix ] [--premake ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--retention ] [--schemaId ] [--storageLogTableId ] [--storageLogTableName ] [--usageSummaryTableId ] [--usageSummaryTableName ] +csdk storage-log-module create --databaseId --scope [--apiName ] [--entityField ] [--interval ] [--prefix ] [--premake ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--retention ] [--rollupFunctionName ] [--schemaId ] [--storageLogTableId ] [--storageLogTableName ] [--usageSummaryTableId ] [--usageSummaryTableName ] ``` ### Get a storageLogModule by id diff --git a/.agents/skills/cli-modules/references/storage-module.md b/.agents/skills/cli-modules/references/storage-module.md index 985aca5958..4d4f655476 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 ] [--key ] [--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 ] [--key ] [--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 ] [--key ] [--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/transfer-log-module.md b/.agents/skills/cli-modules/references/transfer-log-module.md index 6396461acb..1cb48d663a 100644 --- a/.agents/skills/cli-modules/references/transfer-log-module.md +++ b/.agents/skills/cli-modules/references/transfer-log-module.md @@ -12,8 +12,8 @@ csdk transfer-log-module list --where.. --orderBy csdk transfer-log-module list --limit 10 --after csdk transfer-log-module find-first --where.. csdk transfer-log-module get --id -csdk transfer-log-module create --databaseId --scope [--actorFkTableId ] [--apiName ] [--entityField ] [--entityFkTableId ] [--interval ] [--prefix ] [--premake ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--retention ] [--schemaId ] [--transferLogTableId ] [--transferLogTableName ] [--usageSummaryTableId ] [--usageSummaryTableName ] -csdk transfer-log-module update --id [--actorFkTableId ] [--apiName ] [--databaseId ] [--entityField ] [--entityFkTableId ] [--interval ] [--prefix ] [--premake ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--retention ] [--schemaId ] [--scope ] [--transferLogTableId ] [--transferLogTableName ] [--usageSummaryTableId ] [--usageSummaryTableName ] +csdk transfer-log-module create --databaseId --scope [--apiName ] [--entityField ] [--interval ] [--prefix ] [--premake ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--retention ] [--rollupFunctionName ] [--schemaId ] [--transferLogTableId ] [--transferLogTableName ] [--usageSummaryTableId ] [--usageSummaryTableName ] +csdk transfer-log-module update --id [--apiName ] [--databaseId ] [--entityField ] [--interval ] [--prefix ] [--premake ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--retention ] [--rollupFunctionName ] [--schemaId ] [--scope ] [--transferLogTableId ] [--transferLogTableName ] [--usageSummaryTableId ] [--usageSummaryTableName ] csdk transfer-log-module delete --id ``` @@ -58,7 +58,7 @@ csdk transfer-log-module list --where.id.equalTo --orderBy ID_ASC ### Create a transferLogModule ```bash -csdk transfer-log-module create --databaseId --scope [--actorFkTableId ] [--apiName ] [--entityField ] [--entityFkTableId ] [--interval ] [--prefix ] [--premake ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--retention ] [--schemaId ] [--transferLogTableId ] [--transferLogTableName ] [--usageSummaryTableId ] [--usageSummaryTableName ] +csdk transfer-log-module create --databaseId --scope [--apiName ] [--entityField ] [--interval ] [--prefix ] [--premake ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--retention ] [--rollupFunctionName ] [--schemaId ] [--transferLogTableId ] [--transferLogTableName ] [--usageSummaryTableId ] [--usageSummaryTableName ] ``` ### Get a transferLogModule by id diff --git a/.agents/skills/cli-modules/references/user-auth-module.md b/.agents/skills/cli-modules/references/user-auth-module.md index db8143105f..62351d3053 100644 --- a/.agents/skills/cli-modules/references/user-auth-module.md +++ b/.agents/skills/cli-modules/references/user-auth-module.md @@ -12,8 +12,8 @@ csdk user-auth-module list --where.. --orderBy csdk user-auth-module list --limit 10 --after csdk user-auth-module find-first --where.. csdk user-auth-module get --id -csdk user-auth-module create --databaseId [--apiName ] [--auditsTableId ] [--auditsTableName ] [--checkPasswordFunction ] [--deleteAccountFunction ] [--emailsTableId ] [--encryptedTableId ] [--extendTokenExpires ] [--forgotPasswordFunction ] [--privateApiName ] [--requestCrossOriginTokenFunction ] [--resetPasswordFunction ] [--schemaId ] [--secretsTableId ] [--sendAccountDeletionEmailFunction ] [--sendVerificationEmailFunction ] [--sessionCredentialsTableId ] [--sessionsTableId ] [--setPasswordFunction ] [--signInCrossOriginFunction ] [--signInFunction ] [--signOutFunction ] [--signUpFunction ] [--usersTableId ] [--verifyEmailFunction ] [--verifyPasswordFunction ] -csdk user-auth-module update --id [--apiName ] [--auditsTableId ] [--auditsTableName ] [--checkPasswordFunction ] [--databaseId ] [--deleteAccountFunction ] [--emailsTableId ] [--encryptedTableId ] [--extendTokenExpires ] [--forgotPasswordFunction ] [--privateApiName ] [--requestCrossOriginTokenFunction ] [--resetPasswordFunction ] [--schemaId ] [--secretsTableId ] [--sendAccountDeletionEmailFunction ] [--sendVerificationEmailFunction ] [--sessionCredentialsTableId ] [--sessionsTableId ] [--setPasswordFunction ] [--signInCrossOriginFunction ] [--signInFunction ] [--signOutFunction ] [--signUpFunction ] [--usersTableId ] [--verifyEmailFunction ] [--verifyPasswordFunction ] +csdk user-auth-module create --databaseId [--apiName ] [--auditsTableId ] [--auditsTableName ] [--checkPasswordFunction ] [--deleteAccountFunction ] [--emailsTableId ] [--encryptedTableId ] [--extendTokenExpires ] [--forgotPasswordFunction ] [--privateApiName ] [--privateSchemaId ] [--requestCrossOriginTokenFunction ] [--resetPasswordFunction ] [--revokeSessionTreeFunction ] [--schemaId ] [--secretsTableId ] [--sendAccountDeletionEmailFunction ] [--sendVerificationEmailFunction ] [--sessionCredentialsTableId ] [--sessionsTableId ] [--setPasswordFunction ] [--signInCrossOriginFunction ] [--signInFunction ] [--signOutFunction ] [--signUpFunction ] [--sweepExpiredSessionsFunction ] [--usersTableId ] [--verifyEmailFunction ] [--verifyPasswordFunction ] +csdk user-auth-module update --id [--apiName ] [--auditsTableId ] [--auditsTableName ] [--checkPasswordFunction ] [--databaseId ] [--deleteAccountFunction ] [--emailsTableId ] [--encryptedTableId ] [--extendTokenExpires ] [--forgotPasswordFunction ] [--privateApiName ] [--privateSchemaId ] [--requestCrossOriginTokenFunction ] [--resetPasswordFunction ] [--revokeSessionTreeFunction ] [--schemaId ] [--secretsTableId ] [--sendAccountDeletionEmailFunction ] [--sendVerificationEmailFunction ] [--sessionCredentialsTableId ] [--sessionsTableId ] [--setPasswordFunction ] [--signInCrossOriginFunction ] [--signInFunction ] [--signOutFunction ] [--signUpFunction ] [--sweepExpiredSessionsFunction ] [--usersTableId ] [--verifyEmailFunction ] [--verifyPasswordFunction ] csdk user-auth-module delete --id ``` @@ -58,7 +58,7 @@ csdk user-auth-module list --where.id.equalTo --orderBy ID_ASC ### Create a userAuthModule ```bash -csdk user-auth-module create --databaseId [--apiName ] [--auditsTableId ] [--auditsTableName ] [--checkPasswordFunction ] [--deleteAccountFunction ] [--emailsTableId ] [--encryptedTableId ] [--extendTokenExpires ] [--forgotPasswordFunction ] [--privateApiName ] [--requestCrossOriginTokenFunction ] [--resetPasswordFunction ] [--schemaId ] [--secretsTableId ] [--sendAccountDeletionEmailFunction ] [--sendVerificationEmailFunction ] [--sessionCredentialsTableId ] [--sessionsTableId ] [--setPasswordFunction ] [--signInCrossOriginFunction ] [--signInFunction ] [--signOutFunction ] [--signUpFunction ] [--usersTableId ] [--verifyEmailFunction ] [--verifyPasswordFunction ] +csdk user-auth-module create --databaseId [--apiName ] [--auditsTableId ] [--auditsTableName ] [--checkPasswordFunction ] [--deleteAccountFunction ] [--emailsTableId ] [--encryptedTableId ] [--extendTokenExpires ] [--forgotPasswordFunction ] [--privateApiName ] [--privateSchemaId ] [--requestCrossOriginTokenFunction ] [--resetPasswordFunction ] [--revokeSessionTreeFunction ] [--schemaId ] [--secretsTableId ] [--sendAccountDeletionEmailFunction ] [--sendVerificationEmailFunction ] [--sessionCredentialsTableId ] [--sessionsTableId ] [--setPasswordFunction ] [--signInCrossOriginFunction ] [--signInFunction ] [--signOutFunction ] [--signUpFunction ] [--sweepExpiredSessionsFunction ] [--usersTableId ] [--verifyEmailFunction ] [--verifyPasswordFunction ] ``` ### Get a userAuthModule 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/provision-bucket.md b/.agents/skills/cli-objects/references/provision-bucket.md index cc17ffbc21..5fbe38a003 100644 --- a/.agents/skills/cli-objects/references/provision-bucket.md +++ b/.agents/skills/cli-objects/references/provision-bucket.md @@ -2,10 +2,11 @@ -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. +Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. ## Usage 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-remote/SKILL.md b/.agents/skills/cli-remote/SKILL.md new file mode 100644 index 0000000000..466f90a757 --- /dev/null +++ b/.agents/skills/cli-remote/SKILL.md @@ -0,0 +1,63 @@ +--- +name: cli-remote +description: CLI tool (csdk) for the remote API — provides CRUD commands for 3 tables and 2 custom operations +--- + +# cli-remote + + + +CLI tool (csdk) for the remote API — provides CRUD commands for 3 tables and 2 custom operations + +## Usage + +```bash +# Context management +csdk context create --endpoint +csdk context use + +# Authentication +csdk auth set-token + +# Config variables +csdk config set +csdk config get + +# CRUD for any table (e.g. machine) +csdk machine list +csdk machine get --id +csdk machine create -- + +# Non-interactive mode (skip all prompts, use flags only) +csdk --no-tty machine list +``` + +## Examples + +### Set up and query + +```bash +csdk context create local --endpoint http://localhost:5000/graphql +csdk context use local +csdk auth set-token +csdk machine list +``` + +### Non-interactive mode (for scripts and CI) + +```bash +csdk --no-tty machine create -- +``` + +## References + +See the `references/` directory for detailed per-entity API documentation: + +- [context](references/context.md) +- [auth](references/auth.md) +- [config](references/config.md) +- [machine](references/machine.md) +- [machine-message](references/machine-message.md) +- [machine-session](references/machine-session.md) +- [machines-enroll](references/machines-enroll.md) +- [provision-bucket](references/provision-bucket.md) diff --git a/.agents/skills/cli-remote/references/auth.md b/.agents/skills/cli-remote/references/auth.md new file mode 100644 index 0000000000..d24ec20dd5 --- /dev/null +++ b/.agents/skills/cli-remote/references/auth.md @@ -0,0 +1,27 @@ +# Authentication + + + +Manage authentication tokens for csdk + +## Usage + +```bash +csdk auth set-token +csdk auth status +csdk auth logout +``` + +## Examples + +### Authenticate with a token + +```bash +csdk auth set-token eyJhbGciOiJIUzI1NiIs... +``` + +### Check auth status + +```bash +csdk auth status +``` diff --git a/.agents/skills/cli-remote/references/config.md b/.agents/skills/cli-remote/references/config.md new file mode 100644 index 0000000000..cc1c23b7ba --- /dev/null +++ b/.agents/skills/cli-remote/references/config.md @@ -0,0 +1,29 @@ +# Config Variables + + + +Manage per-context key-value configuration variables for csdk + +## Usage + +```bash +csdk config get +csdk config set +csdk config list +csdk config delete +``` + +## Examples + +### Store and retrieve a config variable + +```bash +csdk config set orgId abc-123 +csdk config get orgId +``` + +### List all config variables + +```bash +csdk config list +``` diff --git a/.agents/skills/cli-remote/references/context.md b/.agents/skills/cli-remote/references/context.md new file mode 100644 index 0000000000..704ff09111 --- /dev/null +++ b/.agents/skills/cli-remote/references/context.md @@ -0,0 +1,30 @@ +# Context Management + + + +Manage API endpoint contexts for csdk + +## Usage + +```bash +csdk context create --endpoint +csdk context list +csdk context use +csdk context current +csdk context delete +``` + +## Examples + +### Create and activate a context + +```bash +csdk context create production --endpoint https://api.example.com/graphql +csdk context use production +``` + +### List all contexts + +```bash +csdk context list +``` diff --git a/.agents/skills/cli-remote/references/machine-message.md b/.agents/skills/cli-remote/references/machine-message.md new file mode 100644 index 0000000000..4c40ffe8c0 --- /dev/null +++ b/.agents/skills/cli-remote/references/machine-message.md @@ -0,0 +1,68 @@ +# machineMessage + + + +CRUD operations for MachineMessage records via csdk CLI + +## Usage + +```bash +csdk machine-message list +csdk machine-message list --where.. --orderBy +csdk machine-message list --limit 10 --after +csdk machine-message find-first --where.. +csdk machine-message get --id +csdk machine-message create --actorId --entityId --kind --ownerId --seq --sessionId [--content ] [--createdByPrincipal ] [--recordedAt ] +csdk machine-message update --id [--actorId ] [--content ] [--createdByPrincipal ] [--entityId ] [--kind ] [--ownerId ] [--recordedAt ] [--seq ] [--sessionId ] +csdk machine-message delete --id +``` + +## Examples + +### List machineMessage records + +```bash +csdk machine-message list +``` + +### List machineMessage records with pagination + +```bash +csdk machine-message list --limit 10 --offset 0 +``` + +### List machineMessage records with cursor pagination + +```bash +csdk machine-message list --limit 10 --after +``` + +### Find first matching machineMessage + +```bash +csdk machine-message find-first --where.id.equalTo +``` + +### List machineMessage records with field selection + +```bash +csdk machine-message list --select id,id +``` + +### List machineMessage records with filtering and ordering + +```bash +csdk machine-message list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a machineMessage + +```bash +csdk machine-message create --actorId --entityId --kind --ownerId --seq --sessionId [--content ] [--createdByPrincipal ] [--recordedAt ] +``` + +### Get a machineMessage by id + +```bash +csdk machine-message get --id +``` diff --git a/.agents/skills/cli-remote/references/machine-session.md b/.agents/skills/cli-remote/references/machine-session.md new file mode 100644 index 0000000000..a7f077bec4 --- /dev/null +++ b/.agents/skills/cli-remote/references/machine-session.md @@ -0,0 +1,68 @@ +# machineSession + + + +CRUD operations for MachineSession records via csdk CLI + +## Usage + +```bash +csdk machine-session list +csdk machine-session list --where.. --orderBy +csdk machine-session list --limit 10 --after +csdk machine-session find-first --where.. +csdk machine-session get --id +csdk machine-session create --entityId --machineId --ownerId [--agentMode ] [--agentSessionRef ] [--args ] [--cols ] [--command ] [--createdBy ] [--createdByPrincipal ] [--cwd ] [--endedAt ] [--env ] [--exitCode ] [--interactive ] [--lastActivityAt ] [--lastSeq ] [--metadata ] [--pid ] [--runId ] [--startedAt ] [--state ] [--termRows ] [--updatedBy ] [--updatedByPrincipal ] +csdk machine-session update --id [--agentMode ] [--agentSessionRef ] [--args ] [--cols ] [--command ] [--createdBy ] [--createdByPrincipal ] [--cwd ] [--endedAt ] [--entityId ] [--env ] [--exitCode ] [--interactive ] [--lastActivityAt ] [--lastSeq ] [--machineId ] [--metadata ] [--ownerId ] [--pid ] [--runId ] [--startedAt ] [--state ] [--termRows ] [--updatedBy ] [--updatedByPrincipal ] +csdk machine-session delete --id +``` + +## Examples + +### List machineSession records + +```bash +csdk machine-session list +``` + +### List machineSession records with pagination + +```bash +csdk machine-session list --limit 10 --offset 0 +``` + +### List machineSession records with cursor pagination + +```bash +csdk machine-session list --limit 10 --after +``` + +### Find first matching machineSession + +```bash +csdk machine-session find-first --where.id.equalTo +``` + +### List machineSession records with field selection + +```bash +csdk machine-session list --select id,id +``` + +### List machineSession records with filtering and ordering + +```bash +csdk machine-session list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a machineSession + +```bash +csdk machine-session create --entityId --machineId --ownerId [--agentMode ] [--agentSessionRef ] [--args ] [--cols ] [--command ] [--createdBy ] [--createdByPrincipal ] [--cwd ] [--endedAt ] [--env ] [--exitCode ] [--interactive ] [--lastActivityAt ] [--lastSeq ] [--metadata ] [--pid ] [--runId ] [--startedAt ] [--state ] [--termRows ] [--updatedBy ] [--updatedByPrincipal ] +``` + +### Get a machineSession by id + +```bash +csdk machine-session get --id +``` diff --git a/.agents/skills/cli-remote/references/machine.md b/.agents/skills/cli-remote/references/machine.md new file mode 100644 index 0000000000..2b0a1ee695 --- /dev/null +++ b/.agents/skills/cli-remote/references/machine.md @@ -0,0 +1,68 @@ +# machine + + + +CRUD operations for Machine records via csdk CLI + +## Usage + +```bash +csdk machine list +csdk machine list --where.. --orderBy +csdk machine list --limit 10 --after +csdk machine find-first --where.. +csdk machine get --id +csdk machine create --entityId --label --ownerId --tokenHash [--createdBy ] [--createdByPrincipal ] [--facts ] [--isShared ] [--lastSeenAt ] [--policy ] [--principalId ] [--revokedAt ] [--updatedBy ] [--updatedByPrincipal ] +csdk machine update --id [--createdBy ] [--createdByPrincipal ] [--entityId ] [--facts ] [--isShared ] [--label ] [--lastSeenAt ] [--ownerId ] [--policy ] [--principalId ] [--revokedAt ] [--tokenHash ] [--updatedBy ] [--updatedByPrincipal ] +csdk machine delete --id +``` + +## Examples + +### List machine records + +```bash +csdk machine list +``` + +### List machine records with pagination + +```bash +csdk machine list --limit 10 --offset 0 +``` + +### List machine records with cursor pagination + +```bash +csdk machine list --limit 10 --after +``` + +### Find first matching machine + +```bash +csdk machine find-first --where.id.equalTo +``` + +### List machine records with field selection + +```bash +csdk machine list --select id,id +``` + +### List machine records with filtering and ordering + +```bash +csdk machine list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a machine + +```bash +csdk machine create --entityId --label --ownerId --tokenHash [--createdBy ] [--createdByPrincipal ] [--facts ] [--isShared ] [--lastSeenAt ] [--policy ] [--principalId ] [--revokedAt ] [--updatedBy ] [--updatedByPrincipal ] +``` + +### Get a machine by id + +```bash +csdk machine get --id +``` diff --git a/.agents/skills/cli-remote/references/machines-enroll.md b/.agents/skills/cli-remote/references/machines-enroll.md new file mode 100644 index 0000000000..43bc62df11 --- /dev/null +++ b/.agents/skills/cli-remote/references/machines-enroll.md @@ -0,0 +1,19 @@ +# machinesEnroll + + + +Execute the machinesEnroll mutation + +## Usage + +```bash +csdk machines-enroll --input.clientMutationId --input.entityId --input.isShared --input.label --input.tokenHash +``` + +## Examples + +### Run machinesEnroll + +```bash +csdk machines-enroll --input.clientMutationId --input.entityId --input.isShared --input.label --input.tokenHash +``` diff --git a/.agents/skills/cli-remote/references/provision-bucket.md b/.agents/skills/cli-remote/references/provision-bucket.md new file mode 100644 index 0000000000..5fbe38a003 --- /dev/null +++ b/.agents/skills/cli-remote/references/provision-bucket.md @@ -0,0 +1,23 @@ +# provisionBucket + + + +Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. + +## Usage + +```bash +csdk provision-bucket --input.bucketKey --input.ownerId +``` + +## Examples + +### Run provisionBucket + +```bash +csdk provision-bucket --input.bucketKey --input.ownerId +``` diff --git a/.agents/skills/cli-storage/SKILL.md b/.agents/skills/cli-storage/SKILL.md new file mode 100644 index 0000000000..4ce3d221d3 --- /dev/null +++ b/.agents/skills/cli-storage/SKILL.md @@ -0,0 +1,69 @@ +--- +name: cli-storage +description: CLI tool (csdk) for the storage API — provides CRUD commands for 4 tables and 7 custom operations +--- + +# cli-storage + + + +CLI tool (csdk) for the storage API — provides CRUD commands for 4 tables and 7 custom operations + +## Usage + +```bash +# Context management +csdk context create --endpoint +csdk context use + +# Authentication +csdk auth set-token + +# Config variables +csdk config set +csdk config get + +# CRUD for any table (e.g. bucket) +csdk bucket list +csdk bucket get --id +csdk bucket create -- + +# Non-interactive mode (skip all prompts, use flags only) +csdk --no-tty bucket list +``` + +## Examples + +### Set up and query + +```bash +csdk context create local --endpoint http://localhost:5000/graphql +csdk context use local +csdk auth set-token +csdk bucket list +``` + +### Non-interactive mode (for scripts and CI) + +```bash +csdk --no-tty bucket create -- +``` + +## References + +See the `references/` directory for detailed per-entity API documentation: + +- [context](references/context.md) +- [auth](references/auth.md) +- [config](references/config.md) +- [bucket](references/bucket.md) +- [file](references/file.md) +- [platform-bucket](references/platform-bucket.md) +- [platform-file](references/platform-file.md) +- [files-rename](references/files-rename.md) +- [platform-files-rename](references/platform-files-rename.md) +- [provision-bucket](references/provision-bucket.md) +- [upload-file](references/upload-file.md) +- [upload-files](references/upload-files.md) +- [upload-platform-file](references/upload-platform-file.md) +- [upload-platform-files](references/upload-platform-files.md) diff --git a/.agents/skills/cli-storage/references/auth.md b/.agents/skills/cli-storage/references/auth.md new file mode 100644 index 0000000000..d24ec20dd5 --- /dev/null +++ b/.agents/skills/cli-storage/references/auth.md @@ -0,0 +1,27 @@ +# Authentication + + + +Manage authentication tokens for csdk + +## Usage + +```bash +csdk auth set-token +csdk auth status +csdk auth logout +``` + +## Examples + +### Authenticate with a token + +```bash +csdk auth set-token eyJhbGciOiJIUzI1NiIs... +``` + +### Check auth status + +```bash +csdk auth status +``` diff --git a/.agents/skills/cli-storage/references/bucket.md b/.agents/skills/cli-storage/references/bucket.md new file mode 100644 index 0000000000..588f86e5cf --- /dev/null +++ b/.agents/skills/cli-storage/references/bucket.md @@ -0,0 +1,68 @@ +# bucket + + + +CRUD operations for Bucket records via csdk CLI + +## Usage + +```bash +csdk bucket list +csdk bucket list --where.. --orderBy +csdk bucket list --limit 10 --after +csdk bucket find-first --where.. +csdk bucket get --id +csdk bucket create --actorId --databaseId --key [--allowCustomKeys ] [--allowedMimeTypes ] [--allowedOrigins ] [--description ] [--destinationBucketId ] [--isPublic ] [--maxFileSize ] [--physicalName ] [--stagingTtl ] [--tags ] [--type ] +csdk bucket update --id [--actorId ] [--allowCustomKeys ] [--allowedMimeTypes ] [--allowedOrigins ] [--databaseId ] [--description ] [--destinationBucketId ] [--isPublic ] [--key ] [--maxFileSize ] [--physicalName ] [--stagingTtl ] [--tags ] [--type ] +csdk bucket delete --id +``` + +## Examples + +### List bucket records + +```bash +csdk bucket list +``` + +### List bucket records with pagination + +```bash +csdk bucket list --limit 10 --offset 0 +``` + +### List bucket records with cursor pagination + +```bash +csdk bucket list --limit 10 --after +``` + +### Find first matching bucket + +```bash +csdk bucket find-first --where.id.equalTo +``` + +### List bucket records with field selection + +```bash +csdk bucket list --select id,id +``` + +### List bucket records with filtering and ordering + +```bash +csdk bucket list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a bucket + +```bash +csdk bucket create --actorId --databaseId --key [--allowCustomKeys ] [--allowedMimeTypes ] [--allowedOrigins ] [--description ] [--destinationBucketId ] [--isPublic ] [--maxFileSize ] [--physicalName ] [--stagingTtl ] [--tags ] [--type ] +``` + +### Get a bucket by id + +```bash +csdk bucket get --id +``` diff --git a/.agents/skills/cli-storage/references/config.md b/.agents/skills/cli-storage/references/config.md new file mode 100644 index 0000000000..cc1c23b7ba --- /dev/null +++ b/.agents/skills/cli-storage/references/config.md @@ -0,0 +1,29 @@ +# Config Variables + + + +Manage per-context key-value configuration variables for csdk + +## Usage + +```bash +csdk config get +csdk config set +csdk config list +csdk config delete +``` + +## Examples + +### Store and retrieve a config variable + +```bash +csdk config set orgId abc-123 +csdk config get orgId +``` + +### List all config variables + +```bash +csdk config list +``` diff --git a/.agents/skills/cli-storage/references/context.md b/.agents/skills/cli-storage/references/context.md new file mode 100644 index 0000000000..704ff09111 --- /dev/null +++ b/.agents/skills/cli-storage/references/context.md @@ -0,0 +1,30 @@ +# Context Management + + + +Manage API endpoint contexts for csdk + +## Usage + +```bash +csdk context create --endpoint +csdk context list +csdk context use +csdk context current +csdk context delete +``` + +## Examples + +### Create and activate a context + +```bash +csdk context create production --endpoint https://api.example.com/graphql +csdk context use production +``` + +### List all contexts + +```bash +csdk context list +``` diff --git a/.agents/skills/cli-storage/references/file.md b/.agents/skills/cli-storage/references/file.md new file mode 100644 index 0000000000..ac7c24c81e --- /dev/null +++ b/.agents/skills/cli-storage/references/file.md @@ -0,0 +1,68 @@ +# file + + + +CRUD operations for File records via csdk CLI + +## Usage + +```bash +csdk file list +csdk file list --where.. --orderBy +csdk file list --limit 10 --after +csdk file find-first --where.. +csdk file get --id +csdk file create --actorId --bucketId --databaseId --key --mimeType --size [--contentHash ] [--description ] [--expiryEnqueuedAt ] [--filename ] [--isPublic ] [--promotedAt ] [--status ] [--tags ] [--upload ] +csdk file update --id [--actorId ] [--bucketId ] [--contentHash ] [--databaseId ] [--description ] [--expiryEnqueuedAt ] [--filename ] [--isPublic ] [--key ] [--mimeType ] [--promotedAt ] [--size ] [--status ] [--tags ] [--upload ] +csdk file delete --id +``` + +## Examples + +### List file records + +```bash +csdk file list +``` + +### List file records with pagination + +```bash +csdk file list --limit 10 --offset 0 +``` + +### List file records with cursor pagination + +```bash +csdk file list --limit 10 --after +``` + +### Find first matching file + +```bash +csdk file find-first --where.id.equalTo +``` + +### List file records with field selection + +```bash +csdk file list --select id,id +``` + +### List file records with filtering and ordering + +```bash +csdk file list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a file + +```bash +csdk file create --actorId --bucketId --databaseId --key --mimeType --size [--contentHash ] [--description ] [--expiryEnqueuedAt ] [--filename ] [--isPublic ] [--promotedAt ] [--status ] [--tags ] [--upload ] +``` + +### Get a file by id + +```bash +csdk file get --id +``` diff --git a/.agents/skills/cli-storage/references/files-rename.md b/.agents/skills/cli-storage/references/files-rename.md new file mode 100644 index 0000000000..4499a454b8 --- /dev/null +++ b/.agents/skills/cli-storage/references/files-rename.md @@ -0,0 +1,19 @@ +# filesRename + + + +Execute the filesRename mutation + +## Usage + +```bash +csdk files-rename --input.clientMutationId --input.fileId --input.newFilename +``` + +## Examples + +### Run filesRename + +```bash +csdk files-rename --input.clientMutationId --input.fileId --input.newFilename +``` diff --git a/.agents/skills/cli-storage/references/platform-bucket.md b/.agents/skills/cli-storage/references/platform-bucket.md new file mode 100644 index 0000000000..fcbaa51c2c --- /dev/null +++ b/.agents/skills/cli-storage/references/platform-bucket.md @@ -0,0 +1,68 @@ +# platformBucket + + + +CRUD operations for PlatformBucket records via csdk CLI + +## Usage + +```bash +csdk platform-bucket list +csdk platform-bucket list --where.. --orderBy +csdk platform-bucket list --limit 10 --after +csdk platform-bucket find-first --where.. +csdk platform-bucket get --id +csdk platform-bucket create --actorId --key [--allowCustomKeys ] [--allowedMimeTypes ] [--allowedOrigins ] [--description ] [--destinationBucketId ] [--isPublic ] [--maxFileSize ] [--physicalName ] [--stagingTtl ] [--tags ] [--type ] +csdk platform-bucket update --id [--actorId ] [--allowCustomKeys ] [--allowedMimeTypes ] [--allowedOrigins ] [--description ] [--destinationBucketId ] [--isPublic ] [--key ] [--maxFileSize ] [--physicalName ] [--stagingTtl ] [--tags ] [--type ] +csdk platform-bucket delete --id +``` + +## Examples + +### List platformBucket records + +```bash +csdk platform-bucket list +``` + +### List platformBucket records with pagination + +```bash +csdk platform-bucket list --limit 10 --offset 0 +``` + +### List platformBucket records with cursor pagination + +```bash +csdk platform-bucket list --limit 10 --after +``` + +### Find first matching platformBucket + +```bash +csdk platform-bucket find-first --where.id.equalTo +``` + +### List platformBucket records with field selection + +```bash +csdk platform-bucket list --select id,id +``` + +### List platformBucket records with filtering and ordering + +```bash +csdk platform-bucket list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a platformBucket + +```bash +csdk platform-bucket create --actorId --key [--allowCustomKeys ] [--allowedMimeTypes ] [--allowedOrigins ] [--description ] [--destinationBucketId ] [--isPublic ] [--maxFileSize ] [--physicalName ] [--stagingTtl ] [--tags ] [--type ] +``` + +### Get a platformBucket by id + +```bash +csdk platform-bucket get --id +``` diff --git a/.agents/skills/cli-storage/references/platform-file.md b/.agents/skills/cli-storage/references/platform-file.md new file mode 100644 index 0000000000..af28508c42 --- /dev/null +++ b/.agents/skills/cli-storage/references/platform-file.md @@ -0,0 +1,68 @@ +# platformFile + + + +CRUD operations for PlatformFile records via csdk CLI + +## Usage + +```bash +csdk platform-file list +csdk platform-file list --where.. --orderBy +csdk platform-file list --limit 10 --after +csdk platform-file find-first --where.. +csdk platform-file get --id +csdk platform-file create --actorId --bucketId --key --mimeType --size [--contentHash ] [--description ] [--expiryEnqueuedAt ] [--filename ] [--isPublic ] [--promotedAt ] [--status ] [--tags ] [--upload ] +csdk platform-file update --id [--actorId ] [--bucketId ] [--contentHash ] [--description ] [--expiryEnqueuedAt ] [--filename ] [--isPublic ] [--key ] [--mimeType ] [--promotedAt ] [--size ] [--status ] [--tags ] [--upload ] +csdk platform-file delete --id +``` + +## Examples + +### List platformFile records + +```bash +csdk platform-file list +``` + +### List platformFile records with pagination + +```bash +csdk platform-file list --limit 10 --offset 0 +``` + +### List platformFile records with cursor pagination + +```bash +csdk platform-file list --limit 10 --after +``` + +### Find first matching platformFile + +```bash +csdk platform-file find-first --where.id.equalTo +``` + +### List platformFile records with field selection + +```bash +csdk platform-file list --select id,id +``` + +### List platformFile records with filtering and ordering + +```bash +csdk platform-file list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a platformFile + +```bash +csdk platform-file create --actorId --bucketId --key --mimeType --size [--contentHash ] [--description ] [--expiryEnqueuedAt ] [--filename ] [--isPublic ] [--promotedAt ] [--status ] [--tags ] [--upload ] +``` + +### Get a platformFile by id + +```bash +csdk platform-file get --id +``` diff --git a/.agents/skills/cli-storage/references/platform-files-rename.md b/.agents/skills/cli-storage/references/platform-files-rename.md new file mode 100644 index 0000000000..d69029000c --- /dev/null +++ b/.agents/skills/cli-storage/references/platform-files-rename.md @@ -0,0 +1,19 @@ +# platformFilesRename + + + +Execute the platformFilesRename mutation + +## Usage + +```bash +csdk platform-files-rename --input.clientMutationId --input.fileId --input.newFilename +``` + +## Examples + +### Run platformFilesRename + +```bash +csdk platform-files-rename --input.clientMutationId --input.fileId --input.newFilename +``` diff --git a/.agents/skills/cli-storage/references/provision-bucket.md b/.agents/skills/cli-storage/references/provision-bucket.md new file mode 100644 index 0000000000..5fbe38a003 --- /dev/null +++ b/.agents/skills/cli-storage/references/provision-bucket.md @@ -0,0 +1,23 @@ +# provisionBucket + + + +Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. + +## Usage + +```bash +csdk provision-bucket --input.bucketKey --input.ownerId +``` + +## Examples + +### Run provisionBucket + +```bash +csdk provision-bucket --input.bucketKey --input.ownerId +``` diff --git a/.agents/skills/cli-storage/references/upload-file.md b/.agents/skills/cli-storage/references/upload-file.md new file mode 100644 index 0000000000..a40c597d3d --- /dev/null +++ b/.agents/skills/cli-storage/references/upload-file.md @@ -0,0 +1,19 @@ +# uploadFile + + + +Upload a file: resolves the bucket by key, creates the file row, and returns a presigned PUT URL. + +## Usage + +```bash +csdk upload-file --input.bucketKey --input.contentHash --input.contentType --input.filename --input.isPublic --input.key --input.size +``` + +## Examples + +### Run uploadFile + +```bash +csdk upload-file --input.bucketKey --input.contentHash --input.contentType --input.filename --input.isPublic --input.key --input.size +``` diff --git a/.agents/skills/cli-storage/references/upload-files.md b/.agents/skills/cli-storage/references/upload-files.md new file mode 100644 index 0000000000..897b012d42 --- /dev/null +++ b/.agents/skills/cli-storage/references/upload-files.md @@ -0,0 +1,19 @@ +# uploadFiles + + + +Upload multiple files: resolves the bucket by key, creates file rows, and returns presigned PUT URLs for each. + +## Usage + +```bash +csdk upload-files --input.bucketKey --input.files --input.isPublic +``` + +## Examples + +### Run uploadFiles + +```bash +csdk upload-files --input.bucketKey --input.files --input.isPublic +``` diff --git a/.agents/skills/cli-storage/references/upload-platform-file.md b/.agents/skills/cli-storage/references/upload-platform-file.md new file mode 100644 index 0000000000..72d3d8cf3d --- /dev/null +++ b/.agents/skills/cli-storage/references/upload-platform-file.md @@ -0,0 +1,19 @@ +# uploadPlatformFile + + + +Upload a file: resolves the bucket by key, creates the file row, and returns a presigned PUT URL. + +## Usage + +```bash +csdk upload-platform-file --input.bucketKey --input.contentHash --input.contentType --input.filename --input.isPublic --input.key --input.size +``` + +## Examples + +### Run uploadPlatformFile + +```bash +csdk upload-platform-file --input.bucketKey --input.contentHash --input.contentType --input.filename --input.isPublic --input.key --input.size +``` diff --git a/.agents/skills/cli-storage/references/upload-platform-files.md b/.agents/skills/cli-storage/references/upload-platform-files.md new file mode 100644 index 0000000000..8a67e7a0ad --- /dev/null +++ b/.agents/skills/cli-storage/references/upload-platform-files.md @@ -0,0 +1,19 @@ +# uploadPlatformFiles + + + +Upload multiple files: resolves the bucket by key, creates file rows, and returns presigned PUT URLs for each. + +## Usage + +```bash +csdk upload-platform-files --input.bucketKey --input.files --input.isPublic +``` + +## Examples + +### Run uploadPlatformFiles + +```bash +csdk upload-platform-files --input.bucketKey --input.files --input.isPublic +``` 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/cli-usage/references/provision-bucket.md b/.agents/skills/cli-usage/references/provision-bucket.md index cc17ffbc21..5fbe38a003 100644 --- a/.agents/skills/cli-usage/references/provision-bucket.md +++ b/.agents/skills/cli-usage/references/provision-bucket.md @@ -2,10 +2,11 @@ -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. +Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. ## Usage diff --git a/.agents/skills/hooks-admin/SKILL.md b/.agents/skills/hooks-admin/SKILL.md index 8409458c1c..5d3021ebf5 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 42 tables and 12 custom operations +description: React Query hooks for the admin API — provides typed query and mutation hooks for 26 tables and 5 custom operations --- # hooks-admin -React Query hooks for the admin API — provides typed query and mutation hooks for 42 tables and 12 custom operations +React Query hooks for the admin API — provides typed query and mutation hooks for 26 tables and 5 custom operations ## Usage @@ -39,27 +39,17 @@ const { data, isLoading } = useAppAdminGrantsQuery({ See the `references/` directory for detailed per-entity API documentation: - [app-admin-grant](references/app-admin-grant.md) -- [app-capability](references/app-capability.md) - [app-capability-default-capability](references/app-capability-default-capability.md) -- [app-capability-default](references/app-capability-default.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-membership-profile](references/app-membership-profile.md) - [app-owner-grant](references/app-owner-grant.md) -- [app-profile-capability](references/app-profile-capability.md) -- [app-profile](references/app-profile.md) -- [app-profile-definition-grant](references/app-profile-definition-grant.md) -- [app-profile-grant](references/app-profile-grant.md) -- [app-profile-template](references/app-profile-template.md) - [membership-type](references/membership-type.md) - [org-admin-grant](references/org-admin-grant.md) -- [org-capability](references/org-capability.md) - [org-capability-default-capability](references/org-capability-default-capability.md) -- [org-capability-default](references/org-capability-default.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) @@ -72,22 +62,9 @@ See the `references/` directory for detailed per-entity API documentation: - [org-member-profile](references/org-member-profile.md) - [org-membership](references/org-membership.md) - [org-membership-default](references/org-membership-default.md) -- [org-membership-profile](references/org-membership-profile.md) - [org-membership-setting](references/org-membership-setting.md) - [org-owner-grant](references/org-owner-grant.md) -- [org-profile-capability](references/org-profile-capability.md) -- [org-profile](references/org-profile.md) -- [org-profile-definition-grant](references/org-profile-definition-grant.md) -- [org-profile-grant](references/org-profile-grant.md) -- [org-profile-template](references/org-profile-template.md) -- [app-capabilities-get-by-mask](references/app-capabilities-get-by-mask.md) -- [app-capabilities-get-mask](references/app-capabilities-get-mask.md) -- [app-capabilities-get-mask-by-names](references/app-capabilities-get-mask-by-names.md) -- [app-capabilities-get-padded-mask](references/app-capabilities-get-padded-mask.md) -- [org-capabilities-get-by-mask](references/org-capabilities-get-by-mask.md) -- [org-capabilities-get-mask](references/org-capabilities-get-mask.md) -- [org-capabilities-get-mask-by-names](references/org-capabilities-get-mask-by-names.md) -- [org-capabilities-get-padded-mask](references/org-capabilities-get-padded-mask.md) +- [get-organization-id](references/get-organization-id.md) - [org-is-manager-of](references/org-is-manager-of.md) - [provision-bucket](references/provision-bucket.md) - [submit-app-invite-code](references/submit-app-invite-code.md) diff --git a/.agents/skills/hooks-admin/references/app-membership-default.md b/.agents/skills/hooks-admin/references/app-membership-default.md index 349f592c0d..e54cb4f42b 100644 --- a/.agents/skills/hooks-admin/references/app-membership-default.md +++ b/.agents/skills/hooks-admin/references/app-membership-default.md @@ -7,8 +7,8 @@ Default membership settings per entity, controlling initial approval and verific ## Usage ```typescript -useAppMembershipDefaultsQuery({ selection: { fields: { createdAt: true, createdBy: true, id: true, isApproved: true, isVerified: true, updatedAt: true, updatedBy: true } } }) -useAppMembershipDefaultQuery({ id: '', selection: { fields: { createdAt: true, createdBy: true, id: true, isApproved: true, isVerified: true, updatedAt: true, updatedBy: true } } }) +useAppMembershipDefaultsQuery({ selection: { fields: { createdAt: true, createdBy: true, createdByPrincipal: true, id: true, isApproved: true, isVerified: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) +useAppMembershipDefaultQuery({ id: '', selection: { fields: { createdAt: true, createdBy: true, createdByPrincipal: true, id: true, isApproved: true, isVerified: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) useCreateAppMembershipDefaultMutation({ selection: { fields: { id: true } } }) useUpdateAppMembershipDefaultMutation({ selection: { fields: { id: true } } }) useDeleteAppMembershipDefaultMutation({}) @@ -20,7 +20,7 @@ useDeleteAppMembershipDefaultMutation({}) ```typescript const { data, isLoading } = useAppMembershipDefaultsQuery({ - selection: { fields: { createdAt: true, createdBy: true, id: true, isApproved: true, isVerified: true, updatedAt: true, updatedBy: true } }, + selection: { fields: { createdAt: true, createdBy: true, createdByPrincipal: true, id: true, isApproved: true, isVerified: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useAppMembershipDefaultsQuery({ const { mutate } = useCreateAppMembershipDefaultMutation({ selection: { fields: { id: true } }, }); -mutate({ createdBy: '', isApproved: '', isVerified: '', updatedBy: '' }); +mutate({ createdBy: '', createdByPrincipal: '', isApproved: '', isVerified: '', updatedBy: '', updatedByPrincipal: '' }); ``` diff --git a/.agents/skills/hooks-admin/references/app-membership.md b/.agents/skills/hooks-admin/references/app-membership.md index 90d52f11da..23d847892e 100644 --- a/.agents/skills/hooks-admin/references/app-membership.md +++ b/.agents/skills/hooks-admin/references/app-membership.md @@ -7,8 +7,8 @@ Tracks membership records linking actors to entities with capability bitmasks, o ## Usage ```typescript -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 } } }) +useAppMembershipsQuery({ selection: { fields: { actorId: true, capabilities: true, createdAt: true, createdBy: true, createdByPrincipal: 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, updatedByPrincipal: true } } }) +useAppMembershipQuery({ id: '', selection: { fields: { actorId: true, capabilities: true, createdAt: true, createdBy: true, createdByPrincipal: 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, updatedByPrincipal: 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, 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 } }, + selection: { fields: { actorId: true, capabilities: true, createdAt: true, createdBy: true, createdByPrincipal: 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, updatedByPrincipal: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useAppMembershipsQuery({ const { mutate } = useCreateAppMembershipMutation({ selection: { fields: { id: true } }, }); -mutate({ actorId: '', capabilities: '', createdBy: '', granted: '', isActive: '', isAdmin: '', isApproved: '', isBanned: '', isDisabled: '', isOwner: '', isVerified: '', profileId: '', updatedBy: '' }); +mutate({ actorId: '', capabilities: '', createdBy: '', createdByPrincipal: '', granted: '', isActive: '', isAdmin: '', isApproved: '', isBanned: '', isDisabled: '', isOwner: '', isVerified: '', profileId: '', updatedBy: '', updatedByPrincipal: '' }); ``` diff --git a/.agents/skills/hooks-admin/references/get-organization-id.md b/.agents/skills/hooks-admin/references/get-organization-id.md new file mode 100644 index 0000000000..4b75d4c0f5 --- /dev/null +++ b/.agents/skills/hooks-admin/references/get-organization-id.md @@ -0,0 +1,19 @@ +# getOrganizationId + + + +React Query query hook for getOrganizationId + +## Usage + +```typescript +useGetOrganizationIdQuery({ entityId: '', entityType: '' }) +``` + +## Examples + +### Use useGetOrganizationIdQuery + +```typescript +const { data, isLoading } = useGetOrganizationIdQuery({ entityId: '', entityType: '' }); +``` diff --git a/.agents/skills/hooks-admin/references/org-membership-default.md b/.agents/skills/hooks-admin/references/org-membership-default.md index dbd00c3f2d..956506f18c 100644 --- a/.agents/skills/hooks-admin/references/org-membership-default.md +++ b/.agents/skills/hooks-admin/references/org-membership-default.md @@ -7,8 +7,8 @@ Default membership settings per entity, controlling initial approval and verific ## Usage ```typescript -useOrgMembershipDefaultsQuery({ selection: { fields: { createdAt: true, createdBy: true, entityId: true, id: true, isApproved: true, updatedAt: true, updatedBy: true } } }) -useOrgMembershipDefaultQuery({ id: '', selection: { fields: { createdAt: true, createdBy: true, entityId: true, id: true, isApproved: true, updatedAt: true, updatedBy: true } } }) +useOrgMembershipDefaultsQuery({ selection: { fields: { createdAt: true, createdBy: true, createdByPrincipal: true, entityId: true, id: true, isApproved: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) +useOrgMembershipDefaultQuery({ id: '', selection: { fields: { createdAt: true, createdBy: true, createdByPrincipal: true, entityId: true, id: true, isApproved: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) useCreateOrgMembershipDefaultMutation({ selection: { fields: { id: true } } }) useUpdateOrgMembershipDefaultMutation({ selection: { fields: { id: true } } }) useDeleteOrgMembershipDefaultMutation({}) @@ -20,7 +20,7 @@ useDeleteOrgMembershipDefaultMutation({}) ```typescript const { data, isLoading } = useOrgMembershipDefaultsQuery({ - selection: { fields: { createdAt: true, createdBy: true, entityId: true, id: true, isApproved: true, updatedAt: true, updatedBy: true } }, + selection: { fields: { createdAt: true, createdBy: true, createdByPrincipal: true, entityId: true, id: true, isApproved: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useOrgMembershipDefaultsQuery({ const { mutate } = useCreateOrgMembershipDefaultMutation({ selection: { fields: { id: true } }, }); -mutate({ createdBy: '', entityId: '', isApproved: '', updatedBy: '' }); +mutate({ createdBy: '', createdByPrincipal: '', entityId: '', isApproved: '', updatedBy: '', updatedByPrincipal: '' }); ``` diff --git a/.agents/skills/hooks-admin/references/org-membership-setting.md b/.agents/skills/hooks-admin/references/org-membership-setting.md index 50d8b94714..3c5cc79728 100644 --- a/.agents/skills/hooks-admin/references/org-membership-setting.md +++ b/.agents/skills/hooks-admin/references/org-membership-setting.md @@ -7,8 +7,8 @@ Per-entity settings for the memberships module ## Usage ```typescript -useOrgMembershipSettingsQuery({ selection: { fields: { allowExternalMembers: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, createChildCascadeOwners: true, createdAt: true, createdBy: true, deleteMemberCascadeChildren: true, entityId: true, id: true, inviteProfileAssignmentMode: true, limitAllocationMode: true, populateMemberEmail: true, updatedAt: true, updatedBy: true } } }) -useOrgMembershipSettingQuery({ id: '', selection: { fields: { allowExternalMembers: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, createChildCascadeOwners: true, createdAt: true, createdBy: true, deleteMemberCascadeChildren: true, entityId: true, id: true, inviteProfileAssignmentMode: true, limitAllocationMode: true, populateMemberEmail: true, updatedAt: true, updatedBy: true } } }) +useOrgMembershipSettingsQuery({ selection: { fields: { allowExternalMembers: true, allowPrincipalOwnedApiKeys: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, createChildCascadeOwners: true, createdAt: true, createdBy: true, createdByPrincipal: true, deleteMemberCascadeChildren: true, entityId: true, id: true, inviteProfileAssignmentMode: true, limitAllocationMode: true, populateMemberEmail: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) +useOrgMembershipSettingQuery({ id: '', selection: { fields: { allowExternalMembers: true, allowPrincipalOwnedApiKeys: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, createChildCascadeOwners: true, createdAt: true, createdBy: true, createdByPrincipal: true, deleteMemberCascadeChildren: true, entityId: true, id: true, inviteProfileAssignmentMode: true, limitAllocationMode: true, populateMemberEmail: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) useCreateOrgMembershipSettingMutation({ selection: { fields: { id: true } } }) useUpdateOrgMembershipSettingMutation({ selection: { fields: { id: true } } }) useDeleteOrgMembershipSettingMutation({}) @@ -20,7 +20,7 @@ useDeleteOrgMembershipSettingMutation({}) ```typescript const { data, isLoading } = useOrgMembershipSettingsQuery({ - selection: { fields: { allowExternalMembers: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, createChildCascadeOwners: true, createdAt: true, createdBy: true, deleteMemberCascadeChildren: true, entityId: true, id: true, inviteProfileAssignmentMode: true, limitAllocationMode: true, populateMemberEmail: true, updatedAt: true, updatedBy: true } }, + selection: { fields: { allowExternalMembers: true, allowPrincipalOwnedApiKeys: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, createChildCascadeOwners: true, createdAt: true, createdBy: true, createdByPrincipal: true, deleteMemberCascadeChildren: true, entityId: true, id: true, inviteProfileAssignmentMode: true, limitAllocationMode: true, populateMemberEmail: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useOrgMembershipSettingsQuery({ const { mutate } = useCreateOrgMembershipSettingMutation({ selection: { fields: { id: true } }, }); -mutate({ allowExternalMembers: '', createChildCascadeAdmins: '', createChildCascadeMembers: '', createChildCascadeOwners: '', createdBy: '', deleteMemberCascadeChildren: '', entityId: '', inviteProfileAssignmentMode: '', limitAllocationMode: '', populateMemberEmail: '', updatedBy: '' }); +mutate({ allowExternalMembers: '', allowPrincipalOwnedApiKeys: '', createChildCascadeAdmins: '', createChildCascadeMembers: '', createChildCascadeOwners: '', createdBy: '', createdByPrincipal: '', deleteMemberCascadeChildren: '', entityId: '', inviteProfileAssignmentMode: '', limitAllocationMode: '', populateMemberEmail: '', updatedBy: '', updatedByPrincipal: '' }); ``` diff --git a/.agents/skills/hooks-admin/references/org-membership.md b/.agents/skills/hooks-admin/references/org-membership.md index 5b7d33ae2d..a56868599d 100644 --- a/.agents/skills/hooks-admin/references/org-membership.md +++ b/.agents/skills/hooks-admin/references/org-membership.md @@ -7,8 +7,8 @@ Tracks membership records linking actors to entities with capability bitmasks, o ## Usage ```typescript -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 } } }) +useOrgMembershipsQuery({ selection: { fields: { actorId: true, capabilities: true, createdAt: true, createdBy: true, createdByPrincipal: 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, updatedByPrincipal: true } } }) +useOrgMembershipQuery({ id: '', selection: { fields: { actorId: true, capabilities: true, createdAt: true, createdBy: true, createdByPrincipal: 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, updatedByPrincipal: 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, 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 } }, + selection: { fields: { actorId: true, capabilities: true, createdAt: true, createdBy: true, createdByPrincipal: 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, updatedByPrincipal: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useOrgMembershipsQuery({ const { mutate } = useCreateOrgMembershipMutation({ selection: { fields: { id: true } }, }); -mutate({ actorId: '', capabilities: '', createdBy: '', entityId: '', granted: '', isActive: '', isAdmin: '', isApproved: '', isBanned: '', isDisabled: '', isExternal: '', isOwner: '', isReadOnly: '', profileId: '', updatedBy: '' }); +mutate({ actorId: '', capabilities: '', createdBy: '', createdByPrincipal: '', entityId: '', granted: '', isActive: '', isAdmin: '', isApproved: '', isBanned: '', isDisabled: '', isExternal: '', isOwner: '', isReadOnly: '', profileId: '', updatedBy: '', updatedByPrincipal: '' }); ``` diff --git a/.agents/skills/hooks-admin/references/provision-bucket.md b/.agents/skills/hooks-admin/references/provision-bucket.md index e003fc5551..92740fefbd 100644 --- a/.agents/skills/hooks-admin/references/provision-bucket.md +++ b/.agents/skills/hooks-admin/references/provision-bucket.md @@ -2,10 +2,11 @@ -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. +Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. ## Usage diff --git a/.agents/skills/hooks-agent/SKILL.md b/.agents/skills/hooks-agent/SKILL.md index 3f28f40a53..4115dae527 100644 --- a/.agents/skills/hooks-agent/SKILL.md +++ b/.agents/skills/hooks-agent/SKILL.md @@ -1,13 +1,13 @@ --- name: hooks-agent -description: React Query hooks for the agent API — provides typed query and mutation hooks for 9 tables and 1 custom operations +description: React Query hooks for the agent API — provides typed query and mutation hooks for 21 tables and 1 custom operations --- # hooks-agent -React Query hooks for the agent API — provides typed query and mutation hooks for 9 tables and 1 custom operations +React Query hooks for the agent API — provides typed query and mutation hooks for 21 tables and 1 custom operations ## Usage @@ -47,4 +47,16 @@ See the `references/` directory for detailed per-entity API documentation: - [agent-resource](references/agent-resource.md) - [agent-task](references/agent-task.md) - [agent-thread](references/agent-thread.md) +- [platform-agent](references/platform-agent.md) +- [platform-agent-event](references/platform-agent-event.md) +- [platform-agent-message](references/platform-agent-message.md) +- [platform-agent-persona](references/platform-agent-persona.md) +- [platform-agent-plan](references/platform-agent-plan.md) +- [platform-agent-prompt](references/platform-agent-prompt.md) +- [platform-agent-resource-chunk](references/platform-agent-resource-chunk.md) +- [platform-agent-resource](references/platform-agent-resource.md) +- [platform-agent-run](references/platform-agent-run.md) +- [platform-agent-run-workspace](references/platform-agent-run-workspace.md) +- [platform-agent-task](references/platform-agent-task.md) +- [platform-agent-thread](references/platform-agent-thread.md) - [provision-bucket](references/provision-bucket.md) diff --git a/.agents/skills/hooks-agent/references/agent-message.md b/.agents/skills/hooks-agent/references/agent-message.md index d8d901c8a5..5f4774828a 100644 --- a/.agents/skills/hooks-agent/references/agent-message.md +++ b/.agents/skills/hooks-agent/references/agent-message.md @@ -7,8 +7,8 @@ Message within an agent thread with TextPart/ToolPart jsonb parts ## Usage ```typescript -useAgentMessagesQuery({ selection: { fields: { actorId: true, agentId: true, authorRole: true, createdAt: true, databaseId: true, id: true, model: true, parts: true, threadId: true, updatedAt: true } } }) -useAgentMessageQuery({ id: '', selection: { fields: { actorId: true, agentId: true, authorRole: true, createdAt: true, databaseId: true, id: true, model: true, parts: true, threadId: true, updatedAt: true } } }) +useAgentMessagesQuery({ selection: { fields: { actorId: true, agentId: true, authorRole: true, createdAt: true, databaseId: true, id: true, kind: true, model: true, parts: true, threadId: true, updatedAt: true, visibility: true } } }) +useAgentMessageQuery({ id: '', selection: { fields: { actorId: true, agentId: true, authorRole: true, createdAt: true, databaseId: true, id: true, kind: true, model: true, parts: true, threadId: true, updatedAt: true, visibility: true } } }) useCreateAgentMessageMutation({ selection: { fields: { id: true } } }) useUpdateAgentMessageMutation({ selection: { fields: { id: true } } }) useDeleteAgentMessageMutation({}) @@ -20,7 +20,7 @@ useDeleteAgentMessageMutation({}) ```typescript const { data, isLoading } = useAgentMessagesQuery({ - selection: { fields: { actorId: true, agentId: true, authorRole: true, createdAt: true, databaseId: true, id: true, model: true, parts: true, threadId: true, updatedAt: true } }, + selection: { fields: { actorId: true, agentId: true, authorRole: true, createdAt: true, databaseId: true, id: true, kind: true, model: true, parts: true, threadId: true, updatedAt: true, visibility: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useAgentMessagesQuery({ const { mutate } = useCreateAgentMessageMutation({ selection: { fields: { id: true } }, }); -mutate({ actorId: '', agentId: '', authorRole: '', databaseId: '', model: '', parts: '', threadId: '' }); +mutate({ actorId: '', agentId: '', authorRole: '', databaseId: '', kind: '', model: '', parts: '', threadId: '', visibility: '' }); ``` diff --git a/.agents/skills/hooks-agent/references/agent-persona.md b/.agents/skills/hooks-agent/references/agent-persona.md index 7b3caac1b4..a9d64cd263 100644 --- a/.agents/skills/hooks-agent/references/agent-persona.md +++ b/.agents/skills/hooks-agent/references/agent-persona.md @@ -7,8 +7,8 @@ Agent persona templates (role, system prompt, default skills/knowledge) ## Usage ```typescript -useAgentPersonasQuery({ selection: { fields: { config: true, createdAt: true, createdBy: true, databaseId: true, description: true, id: true, isActive: true, name: true, resources: true, slug: true, systemPrompt: true, updatedAt: true, updatedBy: true } } }) -useAgentPersonaQuery({ id: '', selection: { fields: { config: true, createdAt: true, createdBy: true, databaseId: true, description: true, id: true, isActive: true, name: true, resources: true, slug: true, systemPrompt: true, updatedAt: true, updatedBy: true } } }) +useAgentPersonasQuery({ selection: { fields: { config: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, description: true, id: true, isActive: true, name: true, resources: true, slug: true, systemPrompt: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) +useAgentPersonaQuery({ id: '', selection: { fields: { config: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, description: true, id: true, isActive: true, name: true, resources: true, slug: true, systemPrompt: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) useCreateAgentPersonaMutation({ selection: { fields: { id: true } } }) useUpdateAgentPersonaMutation({ selection: { fields: { id: true } } }) useDeleteAgentPersonaMutation({}) @@ -20,7 +20,7 @@ useDeleteAgentPersonaMutation({}) ```typescript const { data, isLoading } = useAgentPersonasQuery({ - selection: { fields: { config: true, createdAt: true, createdBy: true, databaseId: true, description: true, id: true, isActive: true, name: true, resources: true, slug: true, systemPrompt: true, updatedAt: true, updatedBy: true } }, + selection: { fields: { config: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, description: true, id: true, isActive: true, name: true, resources: true, slug: true, systemPrompt: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useAgentPersonasQuery({ const { mutate } = useCreateAgentPersonaMutation({ selection: { fields: { id: true } }, }); -mutate({ config: '', createdBy: '', databaseId: '', description: '', isActive: '', name: '', resources: '', slug: '', systemPrompt: '', updatedBy: '' }); +mutate({ config: '', createdBy: '', createdByPrincipal: '', databaseId: '', description: '', isActive: '', name: '', resources: '', slug: '', systemPrompt: '', updatedBy: '', updatedByPrincipal: '' }); ``` diff --git a/.agents/skills/hooks-agent/references/agent-plan.md b/.agents/skills/hooks-agent/references/agent-plan.md index 72f3afff88..14b33ba506 100644 --- a/.agents/skills/hooks-agent/references/agent-plan.md +++ b/.agents/skills/hooks-agent/references/agent-plan.md @@ -7,8 +7,8 @@ Workflow plan attached to an agent thread with ordered tasks and optional approv ## Usage ```typescript -useAgentPlansQuery({ selection: { fields: { createdAt: true, databaseId: true, description: true, id: true, ownerId: true, status: true, threadId: true, title: true, updatedAt: true } } }) -useAgentPlanQuery({ id: '', selection: { fields: { createdAt: true, databaseId: true, description: true, id: true, ownerId: true, status: true, threadId: true, title: true, updatedAt: true } } }) +useAgentPlansQuery({ selection: { fields: { createdAt: true, databaseId: true, description: true, id: true, ownerId: true, status: true, threadId: true, title: true, updatedAt: true, visibility: true } } }) +useAgentPlanQuery({ id: '', selection: { fields: { createdAt: true, databaseId: true, description: true, id: true, ownerId: true, status: true, threadId: true, title: true, updatedAt: true, visibility: true } } }) useCreateAgentPlanMutation({ selection: { fields: { id: true } } }) useUpdateAgentPlanMutation({ selection: { fields: { id: true } } }) useDeleteAgentPlanMutation({}) @@ -20,7 +20,7 @@ useDeleteAgentPlanMutation({}) ```typescript const { data, isLoading } = useAgentPlansQuery({ - selection: { fields: { createdAt: true, databaseId: true, description: true, id: true, ownerId: true, status: true, threadId: true, title: true, updatedAt: true } }, + selection: { fields: { createdAt: true, databaseId: true, description: true, id: true, ownerId: true, status: true, threadId: true, title: true, updatedAt: true, visibility: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useAgentPlansQuery({ const { mutate } = useCreateAgentPlanMutation({ selection: { fields: { id: true } }, }); -mutate({ databaseId: '', description: '', ownerId: '', status: '', threadId: '', title: '' }); +mutate({ databaseId: '', description: '', ownerId: '', status: '', threadId: '', title: '', visibility: '' }); ``` diff --git a/.agents/skills/hooks-agent/references/agent-prompt.md b/.agents/skills/hooks-agent/references/agent-prompt.md index e621f66551..98042c29bf 100644 --- a/.agents/skills/hooks-agent/references/agent-prompt.md +++ b/.agents/skills/hooks-agent/references/agent-prompt.md @@ -7,8 +7,8 @@ Shared system prompt templates for agent conversations ## Usage ```typescript -useAgentPromptsQuery({ selection: { fields: { content: true, createdAt: true, createdBy: true, databaseId: true, description: true, id: true, isDefault: true, metadata: true, name: true, updatedAt: true, updatedBy: true } } }) -useAgentPromptQuery({ id: '', selection: { fields: { content: true, createdAt: true, createdBy: true, databaseId: true, description: true, id: true, isDefault: true, metadata: true, name: true, updatedAt: true, updatedBy: true } } }) +useAgentPromptsQuery({ selection: { fields: { content: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, description: true, id: true, isDefault: true, metadata: true, name: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) +useAgentPromptQuery({ id: '', selection: { fields: { content: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, description: true, id: true, isDefault: true, metadata: true, name: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) useCreateAgentPromptMutation({ selection: { fields: { id: true } } }) useUpdateAgentPromptMutation({ selection: { fields: { id: true } } }) useDeleteAgentPromptMutation({}) @@ -20,7 +20,7 @@ useDeleteAgentPromptMutation({}) ```typescript const { data, isLoading } = useAgentPromptsQuery({ - selection: { fields: { content: true, createdAt: true, createdBy: true, databaseId: true, description: true, id: true, isDefault: true, metadata: true, name: true, updatedAt: true, updatedBy: true } }, + selection: { fields: { content: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, description: true, id: true, isDefault: true, metadata: true, name: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useAgentPromptsQuery({ const { mutate } = useCreateAgentPromptMutation({ selection: { fields: { id: true } }, }); -mutate({ content: '', createdBy: '', databaseId: '', description: '', isDefault: '', metadata: '', name: '', updatedBy: '' }); +mutate({ content: '', createdBy: '', createdByPrincipal: '', databaseId: '', description: '', isDefault: '', metadata: '', name: '', updatedBy: '', updatedByPrincipal: '' }); ``` diff --git a/.agents/skills/hooks-agent/references/agent-resource-chunk.md b/.agents/skills/hooks-agent/references/agent-resource-chunk.md index 3a1056c3cc..e12a0d4538 100644 --- a/.agents/skills/hooks-agent/references/agent-resource-chunk.md +++ b/.agents/skills/hooks-agent/references/agent-resource-chunk.md @@ -7,8 +7,8 @@ React Query hooks for AgentResourceChunk data operations ## Usage ```typescript -useAgentResourceChunksQuery({ selection: { fields: { agentResourceId: true, body: true, chunkIndex: true, createdAt: true, embedding: true, embeddingVectorDistance: true, id: true, metadata: true, searchScore: true, updatedAt: true } } }) -useAgentResourceChunkQuery({ id: '', selection: { fields: { agentResourceId: true, body: true, chunkIndex: true, createdAt: true, embedding: true, embeddingVectorDistance: true, id: true, metadata: true, searchScore: true, updatedAt: true } } }) +useAgentResourceChunksQuery({ selection: { fields: { agentResourceId: true, body: true, chunkIndex: true, createdAt: true, databaseId: true, embedding: true, embeddingVectorDistance: true, id: true, metadata: true, searchScore: true, updatedAt: true } } }) +useAgentResourceChunkQuery({ id: '', selection: { fields: { agentResourceId: true, body: true, chunkIndex: true, createdAt: true, databaseId: true, embedding: true, embeddingVectorDistance: true, id: true, metadata: true, searchScore: true, updatedAt: true } } }) useCreateAgentResourceChunkMutation({ selection: { fields: { id: true } } }) useUpdateAgentResourceChunkMutation({ selection: { fields: { id: true } } }) useDeleteAgentResourceChunkMutation({}) @@ -20,7 +20,7 @@ useDeleteAgentResourceChunkMutation({}) ```typescript const { data, isLoading } = useAgentResourceChunksQuery({ - selection: { fields: { agentResourceId: true, body: true, chunkIndex: true, createdAt: true, embedding: true, embeddingVectorDistance: true, id: true, metadata: true, searchScore: true, updatedAt: true } }, + selection: { fields: { agentResourceId: true, body: true, chunkIndex: true, createdAt: true, databaseId: true, embedding: true, embeddingVectorDistance: true, id: true, metadata: true, searchScore: true, updatedAt: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useAgentResourceChunksQuery({ const { mutate } = useCreateAgentResourceChunkMutation({ selection: { fields: { id: true } }, }); -mutate({ agentResourceId: '', body: '', chunkIndex: '', embedding: '', embeddingVectorDistance: '', metadata: '', searchScore: '' }); +mutate({ agentResourceId: '', body: '', chunkIndex: '', databaseId: '', embedding: '', embeddingVectorDistance: '', metadata: '', searchScore: '' }); ``` diff --git a/.agents/skills/hooks-agent/references/agent-resource.md b/.agents/skills/hooks-agent/references/agent-resource.md index 5b76eac260..9e1943b71b 100644 --- a/.agents/skills/hooks-agent/references/agent-resource.md +++ b/.agents/skills/hooks-agent/references/agent-resource.md @@ -7,8 +7,8 @@ Unified skills and knowledge resources for agent retrieval ## Usage ```typescript -useAgentResourcesQuery({ selection: { fields: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, databaseId: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true } } }) -useAgentResourceQuery({ id: '', selection: { fields: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, databaseId: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true } } }) +useAgentResourcesQuery({ selection: { fields: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) +useAgentResourceQuery({ id: '', selection: { fields: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) useCreateAgentResourceMutation({ selection: { fields: { id: true } } }) useUpdateAgentResourceMutation({ selection: { fields: { id: true } } }) useDeleteAgentResourceMutation({}) @@ -20,7 +20,7 @@ useDeleteAgentResourceMutation({}) ```typescript const { data, isLoading } = useAgentResourcesQuery({ - selection: { fields: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, databaseId: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true } }, + selection: { fields: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useAgentResourcesQuery({ const { mutate } = useCreateAgentResourceMutation({ selection: { fields: { id: true } }, }); -mutate({ archivedAt: '', body: '', bodyTrgmSimilarity: '', createdBy: '', databaseId: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', isActive: '', isArchived: '', keywords: '', kind: '', kindTrgmSimilarity: '', metadata: '', search: '', searchScore: '', searchTsvRank: '', slug: '', title: '', titleTrgmSimilarity: '', updatedBy: '' }); +mutate({ archivedAt: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', isActive: '', isArchived: '', keywords: '', kind: '', kindTrgmSimilarity: '', metadata: '', search: '', searchScore: '', searchTsvRank: '', slug: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }); ``` diff --git a/.agents/skills/hooks-agent/references/agent-task.md b/.agents/skills/hooks-agent/references/agent-task.md index 058383c4c9..cee7dfc3ae 100644 --- a/.agents/skills/hooks-agent/references/agent-task.md +++ b/.agents/skills/hooks-agent/references/agent-task.md @@ -7,8 +7,8 @@ Task within a plan, with ordering and optional approval gates ## Usage ```typescript -useAgentTasksQuery({ selection: { fields: { actorId: true, approvalFeedback: true, approvalStatus: true, approvedAt: true, approvedBy: true, createdAt: true, databaseId: true, description: true, error: true, id: true, orderIndex: true, planId: true, requiresApproval: true, source: true, status: true, updatedAt: true } } }) -useAgentTaskQuery({ id: '', selection: { fields: { actorId: true, approvalFeedback: true, approvalStatus: true, approvedAt: true, approvedBy: true, createdAt: true, databaseId: true, description: true, error: true, id: true, orderIndex: true, planId: true, requiresApproval: true, source: true, status: true, updatedAt: true } } }) +useAgentTasksQuery({ selection: { fields: { actorId: true, approvalFeedback: true, approvalStatus: true, approvedAt: true, approvedBy: true, createdAt: true, databaseId: true, description: true, error: true, id: true, orderIndex: true, planId: true, requiresApproval: true, source: true, status: true, updatedAt: true, visibility: true } } }) +useAgentTaskQuery({ id: '', selection: { fields: { actorId: true, approvalFeedback: true, approvalStatus: true, approvedAt: true, approvedBy: true, createdAt: true, databaseId: true, description: true, error: true, id: true, orderIndex: true, planId: true, requiresApproval: true, source: true, status: true, updatedAt: true, visibility: true } } }) useCreateAgentTaskMutation({ selection: { fields: { id: true } } }) useUpdateAgentTaskMutation({ selection: { fields: { id: true } } }) useDeleteAgentTaskMutation({}) @@ -20,7 +20,7 @@ useDeleteAgentTaskMutation({}) ```typescript const { data, isLoading } = useAgentTasksQuery({ - selection: { fields: { actorId: true, approvalFeedback: true, approvalStatus: true, approvedAt: true, approvedBy: true, createdAt: true, databaseId: true, description: true, error: true, id: true, orderIndex: true, planId: true, requiresApproval: true, source: true, status: true, updatedAt: true } }, + selection: { fields: { actorId: true, approvalFeedback: true, approvalStatus: true, approvedAt: true, approvedBy: true, createdAt: true, databaseId: true, description: true, error: true, id: true, orderIndex: true, planId: true, requiresApproval: true, source: true, status: true, updatedAt: true, visibility: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useAgentTasksQuery({ const { mutate } = useCreateAgentTaskMutation({ selection: { fields: { id: true } }, }); -mutate({ actorId: '', approvalFeedback: '', approvalStatus: '', approvedAt: '', approvedBy: '', databaseId: '', description: '', error: '', orderIndex: '', planId: '', requiresApproval: '', source: '', status: '' }); +mutate({ actorId: '', approvalFeedback: '', approvalStatus: '', approvedAt: '', approvedBy: '', databaseId: '', description: '', error: '', orderIndex: '', planId: '', requiresApproval: '', source: '', status: '', visibility: '' }); ``` diff --git a/.agents/skills/hooks-agent/references/agent-thread.md b/.agents/skills/hooks-agent/references/agent-thread.md index 573f8b1c78..29e0e4c0aa 100644 --- a/.agents/skills/hooks-agent/references/agent-thread.md +++ b/.agents/skills/hooks-agent/references/agent-thread.md @@ -7,8 +7,8 @@ Top-level AI/LLM conversation thread ## Usage ```typescript -useAgentThreadsQuery({ selection: { fields: { agentId: true, archivedAt: true, createdAt: true, databaseId: true, id: true, isArchived: true, mode: true, model: true, ownerId: true, parentThreadId: true, promptTemplateId: true, status: true, systemPrompt: true, tags: true, title: true, updatedAt: true } } }) -useAgentThreadQuery({ id: '', selection: { fields: { agentId: true, archivedAt: true, createdAt: true, databaseId: true, id: true, isArchived: true, mode: true, model: true, ownerId: true, parentThreadId: true, promptTemplateId: true, status: true, systemPrompt: true, tags: true, title: true, updatedAt: true } } }) +useAgentThreadsQuery({ selection: { fields: { agentId: true, archivedAt: true, createdAt: true, databaseId: true, id: true, isArchived: true, mode: true, model: true, ownerId: true, parentThreadId: true, promptTemplateId: true, status: true, systemPrompt: true, tags: true, title: true, updatedAt: true, visibility: true } } }) +useAgentThreadQuery({ id: '', selection: { fields: { agentId: true, archivedAt: true, createdAt: true, databaseId: true, id: true, isArchived: true, mode: true, model: true, ownerId: true, parentThreadId: true, promptTemplateId: true, status: true, systemPrompt: true, tags: true, title: true, updatedAt: true, visibility: true } } }) useCreateAgentThreadMutation({ selection: { fields: { id: true } } }) useUpdateAgentThreadMutation({ selection: { fields: { id: true } } }) useDeleteAgentThreadMutation({}) @@ -20,7 +20,7 @@ useDeleteAgentThreadMutation({}) ```typescript const { data, isLoading } = useAgentThreadsQuery({ - selection: { fields: { agentId: true, archivedAt: true, createdAt: true, databaseId: true, id: true, isArchived: true, mode: true, model: true, ownerId: true, parentThreadId: true, promptTemplateId: true, status: true, systemPrompt: true, tags: true, title: true, updatedAt: true } }, + selection: { fields: { agentId: true, archivedAt: true, createdAt: true, databaseId: true, id: true, isArchived: true, mode: true, model: true, ownerId: true, parentThreadId: true, promptTemplateId: true, status: true, systemPrompt: true, tags: true, title: true, updatedAt: true, visibility: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useAgentThreadsQuery({ const { mutate } = useCreateAgentThreadMutation({ selection: { fields: { id: true } }, }); -mutate({ agentId: '', archivedAt: '', databaseId: '', isArchived: '', mode: '', model: '', ownerId: '', parentThreadId: '', promptTemplateId: '', status: '', systemPrompt: '', tags: '', title: '' }); +mutate({ agentId: '', archivedAt: '', databaseId: '', isArchived: '', mode: '', model: '', ownerId: '', parentThreadId: '', promptTemplateId: '', status: '', systemPrompt: '', tags: '', title: '', visibility: '' }); ``` diff --git a/.agents/skills/hooks-agent/references/platform-agent-event.md b/.agents/skills/hooks-agent/references/platform-agent-event.md new file mode 100644 index 0000000000..910388e394 --- /dev/null +++ b/.agents/skills/hooks-agent/references/platform-agent-event.md @@ -0,0 +1,34 @@ +# platformAgentEvent + + + +Append-only transcript of an agent run: one agent session entry per row, stored verbatim + +## Usage + +```typescript +usePlatformAgentEventsQuery({ selection: { fields: { actorId: true, createdAt: true, entry: true, id: true, recordedAt: true, runId: true, seq: true, transcriptFormat: true, transcriptVersion: true, updatedAt: true, visibility: true } } }) +usePlatformAgentEventQuery({ id: '', selection: { fields: { actorId: true, createdAt: true, entry: true, id: true, recordedAt: true, runId: true, seq: true, transcriptFormat: true, transcriptVersion: true, updatedAt: true, visibility: true } } }) +useCreatePlatformAgentEventMutation({ selection: { fields: { id: true } } }) +useUpdatePlatformAgentEventMutation({ selection: { fields: { id: true } } }) +useDeletePlatformAgentEventMutation({}) +``` + +## Examples + +### List all platformAgentEvents + +```typescript +const { data, isLoading } = usePlatformAgentEventsQuery({ + selection: { fields: { actorId: true, createdAt: true, entry: true, id: true, recordedAt: true, runId: true, seq: true, transcriptFormat: true, transcriptVersion: true, updatedAt: true, visibility: true } }, +}); +``` + +### Create a platformAgentEvent + +```typescript +const { mutate } = useCreatePlatformAgentEventMutation({ + selection: { fields: { id: true } }, +}); +mutate({ actorId: '', entry: '', recordedAt: '', runId: '', seq: '', transcriptFormat: '', transcriptVersion: '', visibility: '' }); +``` diff --git a/.agents/skills/hooks-agent/references/platform-agent-message.md b/.agents/skills/hooks-agent/references/platform-agent-message.md new file mode 100644 index 0000000000..f6786f3143 --- /dev/null +++ b/.agents/skills/hooks-agent/references/platform-agent-message.md @@ -0,0 +1,34 @@ +# platformAgentMessage + + + +Message within an agent thread with TextPart/ToolPart jsonb parts + +## Usage + +```typescript +usePlatformAgentMessagesQuery({ selection: { fields: { actorId: true, agentId: true, authorRole: true, createdAt: true, deliveredRunId: true, id: true, kind: true, model: true, parts: true, threadId: true, updatedAt: true, visibility: true } } }) +usePlatformAgentMessageQuery({ id: '', selection: { fields: { actorId: true, agentId: true, authorRole: true, createdAt: true, deliveredRunId: true, id: true, kind: true, model: true, parts: true, threadId: true, updatedAt: true, visibility: true } } }) +useCreatePlatformAgentMessageMutation({ selection: { fields: { id: true } } }) +useUpdatePlatformAgentMessageMutation({ selection: { fields: { id: true } } }) +useDeletePlatformAgentMessageMutation({}) +``` + +## Examples + +### List all platformAgentMessages + +```typescript +const { data, isLoading } = usePlatformAgentMessagesQuery({ + selection: { fields: { actorId: true, agentId: true, authorRole: true, createdAt: true, deliveredRunId: true, id: true, kind: true, model: true, parts: true, threadId: true, updatedAt: true, visibility: true } }, +}); +``` + +### Create a platformAgentMessage + +```typescript +const { mutate } = useCreatePlatformAgentMessageMutation({ + selection: { fields: { id: true } }, +}); +mutate({ actorId: '', agentId: '', authorRole: '', deliveredRunId: '', kind: '', model: '', parts: '', threadId: '', visibility: '' }); +``` diff --git a/.agents/skills/hooks-agent/references/platform-agent-persona.md b/.agents/skills/hooks-agent/references/platform-agent-persona.md new file mode 100644 index 0000000000..df17dc7c4b --- /dev/null +++ b/.agents/skills/hooks-agent/references/platform-agent-persona.md @@ -0,0 +1,34 @@ +# platformAgentPersona + + + +Agent persona templates (role, system prompt, default skills/knowledge) + +## Usage + +```typescript +usePlatformAgentPersonasQuery({ selection: { fields: { config: true, createdAt: true, createdBy: true, createdByPrincipal: true, description: true, id: true, isActive: true, name: true, resources: true, slug: true, systemPrompt: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) +usePlatformAgentPersonaQuery({ id: '', selection: { fields: { config: true, createdAt: true, createdBy: true, createdByPrincipal: true, description: true, id: true, isActive: true, name: true, resources: true, slug: true, systemPrompt: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) +useCreatePlatformAgentPersonaMutation({ selection: { fields: { id: true } } }) +useUpdatePlatformAgentPersonaMutation({ selection: { fields: { id: true } } }) +useDeletePlatformAgentPersonaMutation({}) +``` + +## Examples + +### List all platformAgentPersonas + +```typescript +const { data, isLoading } = usePlatformAgentPersonasQuery({ + selection: { fields: { config: true, createdAt: true, createdBy: true, createdByPrincipal: true, description: true, id: true, isActive: true, name: true, resources: true, slug: true, systemPrompt: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, +}); +``` + +### Create a platformAgentPersona + +```typescript +const { mutate } = useCreatePlatformAgentPersonaMutation({ + selection: { fields: { id: true } }, +}); +mutate({ config: '', createdBy: '', createdByPrincipal: '', description: '', isActive: '', name: '', resources: '', slug: '', systemPrompt: '', updatedBy: '', updatedByPrincipal: '' }); +``` diff --git a/.agents/skills/hooks-agent/references/platform-agent-plan.md b/.agents/skills/hooks-agent/references/platform-agent-plan.md new file mode 100644 index 0000000000..6391860449 --- /dev/null +++ b/.agents/skills/hooks-agent/references/platform-agent-plan.md @@ -0,0 +1,34 @@ +# platformAgentPlan + + + +Workflow plan attached to an agent thread with ordered tasks and optional approval gates + +## Usage + +```typescript +usePlatformAgentPlansQuery({ selection: { fields: { createdAt: true, description: true, id: true, ownerId: true, status: true, threadId: true, title: true, updatedAt: true, visibility: true } } }) +usePlatformAgentPlanQuery({ id: '', selection: { fields: { createdAt: true, description: true, id: true, ownerId: true, status: true, threadId: true, title: true, updatedAt: true, visibility: true } } }) +useCreatePlatformAgentPlanMutation({ selection: { fields: { id: true } } }) +useUpdatePlatformAgentPlanMutation({ selection: { fields: { id: true } } }) +useDeletePlatformAgentPlanMutation({}) +``` + +## Examples + +### List all platformAgentPlans + +```typescript +const { data, isLoading } = usePlatformAgentPlansQuery({ + selection: { fields: { createdAt: true, description: true, id: true, ownerId: true, status: true, threadId: true, title: true, updatedAt: true, visibility: true } }, +}); +``` + +### Create a platformAgentPlan + +```typescript +const { mutate } = useCreatePlatformAgentPlanMutation({ + selection: { fields: { id: true } }, +}); +mutate({ description: '', ownerId: '', status: '', threadId: '', title: '', visibility: '' }); +``` diff --git a/.agents/skills/hooks-agent/references/platform-agent-prompt.md b/.agents/skills/hooks-agent/references/platform-agent-prompt.md new file mode 100644 index 0000000000..d69bbbb743 --- /dev/null +++ b/.agents/skills/hooks-agent/references/platform-agent-prompt.md @@ -0,0 +1,34 @@ +# platformAgentPrompt + + + +Shared system prompt templates for agent conversations + +## Usage + +```typescript +usePlatformAgentPromptsQuery({ selection: { fields: { content: true, createdAt: true, createdBy: true, createdByPrincipal: true, description: true, id: true, isDefault: true, metadata: true, name: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) +usePlatformAgentPromptQuery({ id: '', selection: { fields: { content: true, createdAt: true, createdBy: true, createdByPrincipal: true, description: true, id: true, isDefault: true, metadata: true, name: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) +useCreatePlatformAgentPromptMutation({ selection: { fields: { id: true } } }) +useUpdatePlatformAgentPromptMutation({ selection: { fields: { id: true } } }) +useDeletePlatformAgentPromptMutation({}) +``` + +## Examples + +### List all platformAgentPrompts + +```typescript +const { data, isLoading } = usePlatformAgentPromptsQuery({ + selection: { fields: { content: true, createdAt: true, createdBy: true, createdByPrincipal: true, description: true, id: true, isDefault: true, metadata: true, name: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, +}); +``` + +### Create a platformAgentPrompt + +```typescript +const { mutate } = useCreatePlatformAgentPromptMutation({ + selection: { fields: { id: true } }, +}); +mutate({ content: '', createdBy: '', createdByPrincipal: '', description: '', isDefault: '', metadata: '', name: '', updatedBy: '', updatedByPrincipal: '' }); +``` diff --git a/.agents/skills/hooks-agent/references/platform-agent-resource-chunk.md b/.agents/skills/hooks-agent/references/platform-agent-resource-chunk.md new file mode 100644 index 0000000000..da6cb796b0 --- /dev/null +++ b/.agents/skills/hooks-agent/references/platform-agent-resource-chunk.md @@ -0,0 +1,34 @@ +# platformAgentResourceChunk + + + +React Query hooks for PlatformAgentResourceChunk data operations + +## Usage + +```typescript +usePlatformAgentResourceChunksQuery({ selection: { fields: { body: true, chunkIndex: true, createdAt: true, embedding: true, embeddingVectorDistance: true, id: true, metadata: true, platformAgentResourceId: true, searchScore: true, updatedAt: true } } }) +usePlatformAgentResourceChunkQuery({ id: '', selection: { fields: { body: true, chunkIndex: true, createdAt: true, embedding: true, embeddingVectorDistance: true, id: true, metadata: true, platformAgentResourceId: true, searchScore: true, updatedAt: true } } }) +useCreatePlatformAgentResourceChunkMutation({ selection: { fields: { id: true } } }) +useUpdatePlatformAgentResourceChunkMutation({ selection: { fields: { id: true } } }) +useDeletePlatformAgentResourceChunkMutation({}) +``` + +## Examples + +### List all platformAgentResourceChunks + +```typescript +const { data, isLoading } = usePlatformAgentResourceChunksQuery({ + selection: { fields: { body: true, chunkIndex: true, createdAt: true, embedding: true, embeddingVectorDistance: true, id: true, metadata: true, platformAgentResourceId: true, searchScore: true, updatedAt: true } }, +}); +``` + +### Create a platformAgentResourceChunk + +```typescript +const { mutate } = useCreatePlatformAgentResourceChunkMutation({ + selection: { fields: { id: true } }, +}); +mutate({ body: '', chunkIndex: '', embedding: '', embeddingVectorDistance: '', metadata: '', platformAgentResourceId: '', searchScore: '' }); +``` diff --git a/.agents/skills/hooks-agent/references/platform-agent-resource.md b/.agents/skills/hooks-agent/references/platform-agent-resource.md new file mode 100644 index 0000000000..949b128265 --- /dev/null +++ b/.agents/skills/hooks-agent/references/platform-agent-resource.md @@ -0,0 +1,34 @@ +# platformAgentResource + + + +Unified skills and knowledge resources for agent retrieval + +## Usage + +```typescript +usePlatformAgentResourcesQuery({ selection: { fields: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) +usePlatformAgentResourceQuery({ id: '', selection: { fields: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) +useCreatePlatformAgentResourceMutation({ selection: { fields: { id: true } } }) +useUpdatePlatformAgentResourceMutation({ selection: { fields: { id: true } } }) +useDeletePlatformAgentResourceMutation({}) +``` + +## Examples + +### List all platformAgentResources + +```typescript +const { data, isLoading } = usePlatformAgentResourcesQuery({ + selection: { fields: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, +}); +``` + +### Create a platformAgentResource + +```typescript +const { mutate } = useCreatePlatformAgentResourceMutation({ + selection: { fields: { id: true } }, +}); +mutate({ archivedAt: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', isActive: '', isArchived: '', keywords: '', kind: '', kindTrgmSimilarity: '', metadata: '', search: '', searchScore: '', searchTsvRank: '', slug: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }); +``` diff --git a/.agents/skills/hooks-agent/references/platform-agent-run-workspace.md b/.agents/skills/hooks-agent/references/platform-agent-run-workspace.md new file mode 100644 index 0000000000..9ddf27f281 --- /dev/null +++ b/.agents/skills/hooks-agent/references/platform-agent-run-workspace.md @@ -0,0 +1,34 @@ +# platformAgentRunWorkspace + + + +One repository an agent run works in: its remote, branch, commits and how the work is published + +## Usage + +```typescript +usePlatformAgentRunWorkspacesQuery({ selection: { fields: { actorId: true, artifacts: true, baseBranch: true, baseCommit: true, branch: true, clonedAt: true, createdAt: true, headCommit: true, id: true, lastUsedAt: true, ordinal: true, provider: true, publication: true, repo: true, repositoryId: true, runId: true, state: true, updatedAt: true, visibility: true } } }) +usePlatformAgentRunWorkspaceQuery({ id: '', selection: { fields: { actorId: true, artifacts: true, baseBranch: true, baseCommit: true, branch: true, clonedAt: true, createdAt: true, headCommit: true, id: true, lastUsedAt: true, ordinal: true, provider: true, publication: true, repo: true, repositoryId: true, runId: true, state: true, updatedAt: true, visibility: true } } }) +useCreatePlatformAgentRunWorkspaceMutation({ selection: { fields: { id: true } } }) +useUpdatePlatformAgentRunWorkspaceMutation({ selection: { fields: { id: true } } }) +useDeletePlatformAgentRunWorkspaceMutation({}) +``` + +## Examples + +### List all platformAgentRunWorkspaces + +```typescript +const { data, isLoading } = usePlatformAgentRunWorkspacesQuery({ + selection: { fields: { actorId: true, artifacts: true, baseBranch: true, baseCommit: true, branch: true, clonedAt: true, createdAt: true, headCommit: true, id: true, lastUsedAt: true, ordinal: true, provider: true, publication: true, repo: true, repositoryId: true, runId: true, state: true, updatedAt: true, visibility: true } }, +}); +``` + +### Create a platformAgentRunWorkspace + +```typescript +const { mutate } = useCreatePlatformAgentRunWorkspaceMutation({ + selection: { fields: { id: true } }, +}); +mutate({ actorId: '', artifacts: '', baseBranch: '', baseCommit: '', branch: '', clonedAt: '', headCommit: '', lastUsedAt: '', ordinal: '', provider: '', publication: '', repo: '', repositoryId: '', runId: '', state: '', visibility: '' }); +``` diff --git a/.agents/skills/hooks-agent/references/platform-agent-run.md b/.agents/skills/hooks-agent/references/platform-agent-run.md new file mode 100644 index 0000000000..2e3b01ed20 --- /dev/null +++ b/.agents/skills/hooks-agent/references/platform-agent-run.md @@ -0,0 +1,34 @@ +# platformAgentRun + + + +One supervised agent run of a thread: its placement, workspace, cursor and artifacts + +## Usage + +```typescript +usePlatformAgentRunsQuery({ selection: { fields: { actorId: true, artifacts: true, attempt: true, baseCommit: true, branch: true, createdAt: true, databaseId: true, deadlineAt: true, entityId: true, error: true, executionId: true, finishedAt: true, headCommit: true, id: true, lastEventSeq: true, parentRunId: true, placement: true, principalId: true, repoUrl: true, startedAt: true, status: true, threadId: true, tokenUsage: true, totalCost: true, updatedAt: true, visibility: true } } }) +usePlatformAgentRunQuery({ id: '', selection: { fields: { actorId: true, artifacts: true, attempt: true, baseCommit: true, branch: true, createdAt: true, databaseId: true, deadlineAt: true, entityId: true, error: true, executionId: true, finishedAt: true, headCommit: true, id: true, lastEventSeq: true, parentRunId: true, placement: true, principalId: true, repoUrl: true, startedAt: true, status: true, threadId: true, tokenUsage: true, totalCost: true, updatedAt: true, visibility: true } } }) +useCreatePlatformAgentRunMutation({ selection: { fields: { id: true } } }) +useUpdatePlatformAgentRunMutation({ selection: { fields: { id: true } } }) +useDeletePlatformAgentRunMutation({}) +``` + +## Examples + +### List all platformAgentRuns + +```typescript +const { data, isLoading } = usePlatformAgentRunsQuery({ + selection: { fields: { actorId: true, artifacts: true, attempt: true, baseCommit: true, branch: true, createdAt: true, databaseId: true, deadlineAt: true, entityId: true, error: true, executionId: true, finishedAt: true, headCommit: true, id: true, lastEventSeq: true, parentRunId: true, placement: true, principalId: true, repoUrl: true, startedAt: true, status: true, threadId: true, tokenUsage: true, totalCost: true, updatedAt: true, visibility: true } }, +}); +``` + +### Create a platformAgentRun + +```typescript +const { mutate } = useCreatePlatformAgentRunMutation({ + selection: { fields: { id: true } }, +}); +mutate({ actorId: '', artifacts: '', attempt: '', baseCommit: '', branch: '', databaseId: '', deadlineAt: '', entityId: '', error: '', executionId: '', finishedAt: '', headCommit: '', lastEventSeq: '', parentRunId: '', placement: '', principalId: '', repoUrl: '', startedAt: '', status: '', threadId: '', tokenUsage: '', totalCost: '', visibility: '' }); +``` diff --git a/.agents/skills/hooks-agent/references/platform-agent-task.md b/.agents/skills/hooks-agent/references/platform-agent-task.md new file mode 100644 index 0000000000..5940d11a12 --- /dev/null +++ b/.agents/skills/hooks-agent/references/platform-agent-task.md @@ -0,0 +1,34 @@ +# platformAgentTask + + + +Task within a plan, with ordering and optional approval gates + +## Usage + +```typescript +usePlatformAgentTasksQuery({ selection: { fields: { actorId: true, approvalFeedback: true, approvalStatus: true, approvedAt: true, approvedBy: true, createdAt: true, description: true, error: true, id: true, orderIndex: true, planId: true, requiresApproval: true, source: true, status: true, updatedAt: true, visibility: true } } }) +usePlatformAgentTaskQuery({ id: '', selection: { fields: { actorId: true, approvalFeedback: true, approvalStatus: true, approvedAt: true, approvedBy: true, createdAt: true, description: true, error: true, id: true, orderIndex: true, planId: true, requiresApproval: true, source: true, status: true, updatedAt: true, visibility: true } } }) +useCreatePlatformAgentTaskMutation({ selection: { fields: { id: true } } }) +useUpdatePlatformAgentTaskMutation({ selection: { fields: { id: true } } }) +useDeletePlatformAgentTaskMutation({}) +``` + +## Examples + +### List all platformAgentTasks + +```typescript +const { data, isLoading } = usePlatformAgentTasksQuery({ + selection: { fields: { actorId: true, approvalFeedback: true, approvalStatus: true, approvedAt: true, approvedBy: true, createdAt: true, description: true, error: true, id: true, orderIndex: true, planId: true, requiresApproval: true, source: true, status: true, updatedAt: true, visibility: true } }, +}); +``` + +### Create a platformAgentTask + +```typescript +const { mutate } = useCreatePlatformAgentTaskMutation({ + selection: { fields: { id: true } }, +}); +mutate({ actorId: '', approvalFeedback: '', approvalStatus: '', approvedAt: '', approvedBy: '', description: '', error: '', orderIndex: '', planId: '', requiresApproval: '', source: '', status: '', visibility: '' }); +``` diff --git a/.agents/skills/hooks-agent/references/platform-agent-thread.md b/.agents/skills/hooks-agent/references/platform-agent-thread.md new file mode 100644 index 0000000000..64a879d4f9 --- /dev/null +++ b/.agents/skills/hooks-agent/references/platform-agent-thread.md @@ -0,0 +1,34 @@ +# platformAgentThread + + + +Top-level AI/LLM conversation thread + +## Usage + +```typescript +usePlatformAgentThreadsQuery({ selection: { fields: { agentId: true, archivedAt: true, createdAt: true, id: true, isArchived: true, mode: true, model: true, ownerId: true, parentThreadId: true, promptTemplateId: true, status: true, systemPrompt: true, tags: true, title: true, updatedAt: true, visibility: true } } }) +usePlatformAgentThreadQuery({ id: '', selection: { fields: { agentId: true, archivedAt: true, createdAt: true, id: true, isArchived: true, mode: true, model: true, ownerId: true, parentThreadId: true, promptTemplateId: true, status: true, systemPrompt: true, tags: true, title: true, updatedAt: true, visibility: true } } }) +useCreatePlatformAgentThreadMutation({ selection: { fields: { id: true } } }) +useUpdatePlatformAgentThreadMutation({ selection: { fields: { id: true } } }) +useDeletePlatformAgentThreadMutation({}) +``` + +## Examples + +### List all platformAgentThreads + +```typescript +const { data, isLoading } = usePlatformAgentThreadsQuery({ + selection: { fields: { agentId: true, archivedAt: true, createdAt: true, id: true, isArchived: true, mode: true, model: true, ownerId: true, parentThreadId: true, promptTemplateId: true, status: true, systemPrompt: true, tags: true, title: true, updatedAt: true, visibility: true } }, +}); +``` + +### Create a platformAgentThread + +```typescript +const { mutate } = useCreatePlatformAgentThreadMutation({ + selection: { fields: { id: true } }, +}); +mutate({ agentId: '', archivedAt: '', isArchived: '', mode: '', model: '', ownerId: '', parentThreadId: '', promptTemplateId: '', status: '', systemPrompt: '', tags: '', title: '', visibility: '' }); +``` diff --git a/.agents/skills/hooks-agent/references/platform-agent.md b/.agents/skills/hooks-agent/references/platform-agent.md new file mode 100644 index 0000000000..3bac7586aa --- /dev/null +++ b/.agents/skills/hooks-agent/references/platform-agent.md @@ -0,0 +1,34 @@ +# platformAgent + + + +Agent instance registry (human-managed or ephemeral sub-agents) + +## Usage + +```typescript +usePlatformAgentsQuery({ selection: { fields: { config: true, createdAt: true, id: true, isEphemeral: true, name: true, ownerId: true, parentId: true, personaId: true, status: true, systemPrompt: true, updatedAt: true } } }) +usePlatformAgentQuery({ id: '', selection: { fields: { config: true, createdAt: true, id: true, isEphemeral: true, name: true, ownerId: true, parentId: true, personaId: true, status: true, systemPrompt: true, updatedAt: true } } }) +useCreatePlatformAgentMutation({ selection: { fields: { id: true } } }) +useUpdatePlatformAgentMutation({ selection: { fields: { id: true } } }) +useDeletePlatformAgentMutation({}) +``` + +## Examples + +### List all platformAgents + +```typescript +const { data, isLoading } = usePlatformAgentsQuery({ + selection: { fields: { config: true, createdAt: true, id: true, isEphemeral: true, name: true, ownerId: true, parentId: true, personaId: true, status: true, systemPrompt: true, updatedAt: true } }, +}); +``` + +### Create a platformAgent + +```typescript +const { mutate } = useCreatePlatformAgentMutation({ + selection: { fields: { id: true } }, +}); +mutate({ config: '', isEphemeral: '', name: '', ownerId: '', parentId: '', personaId: '', status: '', systemPrompt: '' }); +``` diff --git a/.agents/skills/hooks-agent/references/provision-bucket.md b/.agents/skills/hooks-agent/references/provision-bucket.md index e003fc5551..92740fefbd 100644 --- a/.agents/skills/hooks-agent/references/provision-bucket.md +++ b/.agents/skills/hooks-agent/references/provision-bucket.md @@ -2,10 +2,11 @@ -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. +Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. ## Usage diff --git a/.agents/skills/hooks-api/SKILL.md b/.agents/skills/hooks-api/SKILL.md index e7fc0db982..e0a97b5cf4 100644 --- a/.agents/skills/hooks-api/SKILL.md +++ b/.agents/skills/hooks-api/SKILL.md @@ -1,13 +1,13 @@ --- name: hooks-api -description: React Query hooks for the api API — provides typed query and mutation hooks for 86 tables and 17 custom operations +description: React Query hooks for the api API — provides typed query and mutation hooks for 91 tables and 44 custom operations --- # hooks-api -React Query hooks for the api API — provides typed query and mutation hooks for 86 tables and 17 custom operations +React Query hooks for the api API — provides typed query and mutation hooks for 91 tables and 44 custom operations ## Usage @@ -41,8 +41,7 @@ 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) -- [app-component](references/app-component.md) -- [app](references/app.md) +- [ast-migration](references/ast-migration.md) - [check-constraint](references/check-constraint.md) - [composite-type](references/composite-type.md) - [cors-setting](references/cors-setting.md) @@ -67,8 +66,9 @@ See the `references/` directory for detailed per-entity API documentation: - [foreign-key-constraint](references/foreign-key-constraint.md) - [full-text-search](references/full-text-search.md) - [function](references/function.md) +- [get-site-previews-record](references/get-site-previews-record.md) - [hostname-binding](references/hostname-binding.md) -- [http-route](references/http-route.md) +- [identity-provider-registry](references/identity-provider-registry.md) - [index](references/index.md) - [managed-domain](references/managed-domain.md) - [node-type-registry](references/node-type-registry.md) @@ -84,6 +84,7 @@ See the `references/` directory for detailed per-entity API documentation: - [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-get-site-previews-record](references/platform-get-site-previews-record.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) @@ -92,11 +93,13 @@ See the `references/` directory for detailed per-entity API documentation: - [platform-site-error-page](references/platform-site-error-page.md) - [platform-site-metadatum](references/platform-site-metadatum.md) - [platform-site-module](references/platform-site-module.md) +- [platform-site-release](references/platform-site-release.md) - [platform-site-theme](references/platform-site-theme.md) - [platform-site-web-config](references/platform-site-web-config.md) - [policy](references/policy.md) - [primary-key-constraint](references/primary-key-constraint.md) - [pubkey-setting](references/pubkey-setting.md) +- [redirect](references/redirect.md) - [rls-setting](references/rls-setting.md) - [route-binding](references/route-binding.md) - [route](references/route.md) @@ -108,9 +111,11 @@ See the `references/` directory for detailed per-entity API documentation: - [site-error-page](references/site-error-page.md) - [site-metadatum](references/site-metadatum.md) - [site-module](references/site-module.md) +- [site-release](references/site-release.md) - [site-theme](references/site-theme.md) - [site-web-config](references/site-web-config.md) - [spatial-relation](references/spatial-relation.md) +- [sql-action](references/sql-action.md) - [table-behavior](references/table-behavior.md) - [table](references/table.md) - [table-grant](references/table-grant.md) @@ -126,18 +131,45 @@ See the `references/` directory for detailed per-entity API documentation: - [webauthn-setting](references/webauthn-setting.md) - [api-schema-names](references/api-schema-names.md) - [apply-registry-defaults](references/apply-registry-defaults.md) +- [get-site-preview-commit](references/get-site-preview-commit.md) +- [get-site-release-manifest](references/get-site-release-manifest.md) +- [page-published](references/page-published.md) +- [platform-get-site-preview-commit](references/platform-get-site-preview-commit.md) +- [platform-get-site-release-manifest](references/platform-get-site-release-manifest.md) +- [platform-page-published](references/platform-page-published.md) +- [platform-sites-deep-link-url](references/platform-sites-deep-link-url.md) +- [platform-sites-site-origin](references/platform-sites-site-origin.md) +- [platform-verify-site-preview-token](references/platform-verify-site-preview-token.md) - [resolve-deep-link](references/resolve-deep-link.md) -- [resolve-http-route](references/resolve-http-route.md) - [resolve-route](references/resolve-route.md) - [resolve-site-app-links](references/resolve-site-app-links.md) +- [sites-deep-link-url](references/sites-deep-link-url.md) +- [sites-site-origin](references/sites-site-origin.md) +- [verify-site-preview-token](references/verify-site-preview-token.md) +- [accept-database-transfer](references/accept-database-transfer.md) - [apply-rls](references/apply-rls.md) -- [apps-install-app](references/apps-install-app.md) -- [apps-uninstall-app](references/apps-uninstall-app.md) -- [apps-upgrade-app](references/apps-upgrade-app.md) +- [cancel-database-transfer](references/cancel-database-transfer.md) +- [delete-site-preview](references/delete-site-preview.md) - [domains-assign-subdomain](references/domains-assign-subdomain.md) +- [mint-site-preview-token](references/mint-site-preview-token.md) +- [pages-install-pages](references/pages-install-pages.md) +- [platform-delete-site-preview](references/platform-delete-site-preview.md) - [platform-domains-assign-subdomain](references/platform-domains-assign-subdomain.md) +- [platform-mint-site-preview-token](references/platform-mint-site-preview-token.md) +- [platform-pages-install-pages](references/platform-pages-install-pages.md) +- [platform-provision-site-preview](references/platform-provision-site-preview.md) +- [platform-set-site-preview](references/platform-set-site-preview.md) +- [platform-site-metadata-install-robots](references/platform-site-metadata-install-robots.md) +- [platform-sites-install-content-preset](references/platform-sites-install-content-preset.md) +- [platform-sites-install-mantra](references/platform-sites-install-mantra.md) - [platform-sites-provision-static-site](references/platform-sites-provision-static-site.md) - [provision-bucket](references/provision-bucket.md) +- [provision-site-preview](references/provision-site-preview.md) +- [reject-database-transfer](references/reject-database-transfer.md) - [request-database](references/request-database.md) - [set-field-order](references/set-field-order.md) +- [set-site-preview](references/set-site-preview.md) +- [site-metadata-install-robots](references/site-metadata-install-robots.md) +- [sites-install-content-preset](references/sites-install-content-preset.md) +- [sites-install-mantra](references/sites-install-mantra.md) - [sites-provision-static-site](references/sites-provision-static-site.md) diff --git a/.agents/skills/hooks-api/references/api-setting.md b/.agents/skills/hooks-api/references/api-setting.md index 78680f5519..40fed017c8 100644 --- a/.agents/skills/hooks-api/references/api-setting.md +++ b/.agents/skills/hooks-api/references/api-setting.md @@ -7,8 +7,8 @@ Per-API feature flag overrides; NULL columns inherit from database_settings ## Usage ```typescript -useApiSettingsQuery({ selection: { fields: { apiId: true, createdAt: true, databaseId: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, options: true, statementTimeoutMs: true, updatedAt: true } } }) -useApiSettingQuery({ id: '', selection: { fields: { apiId: true, createdAt: true, databaseId: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, options: true, statementTimeoutMs: true, updatedAt: true } } }) +useApiSettingsQuery({ selection: { fields: { apiId: true, createdAt: true, databaseId: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } } }) +useApiSettingQuery({ id: '', selection: { fields: { apiId: true, createdAt: true, databaseId: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } } }) useCreateApiSettingMutation({ selection: { fields: { id: true } } }) useUpdateApiSettingMutation({ selection: { fields: { id: true } } }) useDeleteApiSettingMutation({}) @@ -20,7 +20,7 @@ useDeleteApiSettingMutation({}) ```typescript const { data, isLoading } = useApiSettingsQuery({ - selection: { fields: { apiId: true, createdAt: true, databaseId: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, options: true, statementTimeoutMs: true, updatedAt: true } }, + selection: { fields: { apiId: true, createdAt: true, databaseId: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useApiSettingsQuery({ const { mutate } = useCreateApiSettingMutation({ selection: { fields: { id: true } }, }); -mutate({ apiId: '', databaseId: '', enableAggregates: '', enableBulk: '', enableConnectionFilter: '', enableDirectUploads: '', enableI18N: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', options: '', statementTimeoutMs: '' }); +mutate({ apiId: '', databaseId: '', enableAggregates: '', enableBulk: '', enableConnectionFilter: '', enableDirectUploads: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }); ``` diff --git a/.agents/skills/hooks-api/references/database-setting.md b/.agents/skills/hooks-api/references/database-setting.md index 2be66c9ae6..057d01b909 100644 --- a/.agents/skills/hooks-api/references/database-setting.md +++ b/.agents/skills/hooks-api/references/database-setting.md @@ -7,8 +7,8 @@ Scope-wide feature flags and settings; controls which platform features are avai ## Usage ```typescript -useDatabaseSettingsQuery({ selection: { fields: { annotations: true, createdAt: true, databaseId: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, labels: true, options: true, statementTimeoutMs: true, updatedAt: true } } }) -useDatabaseSettingQuery({ id: '', selection: { fields: { annotations: true, createdAt: true, databaseId: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, labels: true, options: true, statementTimeoutMs: true, updatedAt: true } } }) +useDatabaseSettingsQuery({ selection: { fields: { annotations: true, createdAt: true, databaseId: true, enableAggregates: true, enableBilling: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, labels: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } } }) +useDatabaseSettingQuery({ id: '', selection: { fields: { annotations: true, createdAt: true, databaseId: true, enableAggregates: true, enableBilling: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, labels: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } } }) useCreateDatabaseSettingMutation({ selection: { fields: { id: true } } }) useUpdateDatabaseSettingMutation({ selection: { fields: { id: true } } }) useDeleteDatabaseSettingMutation({}) @@ -20,7 +20,7 @@ useDeleteDatabaseSettingMutation({}) ```typescript const { data, isLoading } = useDatabaseSettingsQuery({ - selection: { fields: { annotations: true, createdAt: true, databaseId: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, labels: true, options: true, statementTimeoutMs: true, updatedAt: true } }, + selection: { fields: { annotations: true, createdAt: true, databaseId: true, enableAggregates: true, enableBilling: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, labels: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useDatabaseSettingsQuery({ const { mutate } = useCreateDatabaseSettingMutation({ selection: { fields: { id: true } }, }); -mutate({ annotations: '', databaseId: '', enableAggregates: '', enableBulk: '', enableConnectionFilter: '', enableDirectUploads: '', enableI18N: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', labels: '', options: '', statementTimeoutMs: '' }); +mutate({ annotations: '', databaseId: '', enableAggregates: '', enableBilling: '', enableBulk: '', enableConnectionFilter: '', enableDirectUploads: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', labels: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }); ``` diff --git a/.agents/skills/hooks-api/references/delete-site-preview.md b/.agents/skills/hooks-api/references/delete-site-preview.md new file mode 100644 index 0000000000..6ddc34061f --- /dev/null +++ b/.agents/skills/hooks-api/references/delete-site-preview.md @@ -0,0 +1,20 @@ +# deleteSitePreview + + + +React Query mutation hook for deleteSitePreview + +## Usage + +```typescript +const { mutate } = useDeleteSitePreviewMutation(); mutate({ input: { targetName: '', targetSiteId: '' } }); +``` + +## Examples + +### Use useDeleteSitePreviewMutation + +```typescript +const { mutate, isLoading } = useDeleteSitePreviewMutation(); +mutate({ input: { targetName: '', targetSiteId: '' } }); +``` diff --git a/.agents/skills/hooks-api/references/derive.md b/.agents/skills/hooks-api/references/derive.md index 5af4dae0db..db1f969f82 100644 --- a/.agents/skills/hooks-api/references/derive.md +++ b/.agents/skills/hooks-api/references/derive.md @@ -7,8 +7,8 @@ React Query hooks for Derive data operations ## Usage ```typescript -useDerivesQuery({ selection: { fields: { createdAt: true, databaseId: true, id: true, includeMutations: true, kind: true, policyPrefix: true, sourceTableId: true, tableId: true, updatedAt: true } } }) -useDeriveQuery({ id: '', selection: { fields: { createdAt: true, databaseId: true, id: true, includeMutations: true, kind: true, policyPrefix: true, sourceTableId: true, tableId: true, updatedAt: true } } }) +useDerivesQuery({ selection: { fields: { createdAt: true, databaseId: true, id: true, includeGrants: true, includeMutations: true, kind: true, policyPrefix: true, sourceTableId: true, tableId: true, updatedAt: true } } }) +useDeriveQuery({ id: '', selection: { fields: { createdAt: true, databaseId: true, id: true, includeGrants: true, includeMutations: true, kind: true, policyPrefix: true, sourceTableId: true, tableId: true, updatedAt: true } } }) useCreateDeriveMutation({ selection: { fields: { id: true } } }) useUpdateDeriveMutation({ selection: { fields: { id: true } } }) useDeleteDeriveMutation({}) @@ -20,7 +20,7 @@ useDeleteDeriveMutation({}) ```typescript const { data, isLoading } = useDerivesQuery({ - selection: { fields: { createdAt: true, databaseId: true, id: true, includeMutations: true, kind: true, policyPrefix: true, sourceTableId: true, tableId: true, updatedAt: true } }, + selection: { fields: { createdAt: true, databaseId: true, id: true, includeGrants: true, includeMutations: true, kind: true, policyPrefix: true, sourceTableId: true, tableId: true, updatedAt: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useDerivesQuery({ const { mutate } = useCreateDeriveMutation({ selection: { fields: { id: true } }, }); -mutate({ databaseId: '', includeMutations: '', kind: '', policyPrefix: '', sourceTableId: '', tableId: '' }); +mutate({ databaseId: '', includeGrants: '', includeMutations: '', kind: '', policyPrefix: '', sourceTableId: '', tableId: '' }); ``` diff --git a/.agents/skills/hooks-api/references/domain.md b/.agents/skills/hooks-api/references/domain.md index 2948cade8d..7b3b2b808c 100644 --- a/.agents/skills/hooks-api/references/domain.md +++ b/.agents/skills/hooks-api/references/domain.md @@ -7,8 +7,8 @@ Fully-qualified hostnames owned by this scope; each row claims its hostname glob ## Usage ```typescript -useDomainsQuery({ selection: { fields: { config: true, createdAt: true, databaseId: true, hostname: true, id: true, isPublished: true, isWildcard: true, managed: true, parentHostname: true, tlsReadyAt: true, tlsSecretName: true, tlsStatus: true, updatedAt: true, verificationStatus: true, verifiedAt: true } } }) -useDomainQuery({ id: '', selection: { fields: { config: true, createdAt: true, databaseId: true, hostname: true, id: true, isPublished: true, isWildcard: true, managed: true, parentHostname: true, tlsReadyAt: true, tlsSecretName: true, tlsStatus: true, updatedAt: true, verificationStatus: true, verifiedAt: true } } }) +useDomainsQuery({ selection: { fields: { config: true, createdAt: true, createdByPrincipal: true, databaseId: true, hostname: true, id: true, isPublished: true, isWildcard: true, managed: true, parentHostname: true, tlsReadyAt: true, tlsSecretName: true, tlsStatus: true, updatedAt: true, updatedByPrincipal: true, verificationStatus: true, verifiedAt: true } } }) +useDomainQuery({ id: '', selection: { fields: { config: true, createdAt: true, createdByPrincipal: true, databaseId: true, hostname: true, id: true, isPublished: true, isWildcard: true, managed: true, parentHostname: true, tlsReadyAt: true, tlsSecretName: true, tlsStatus: true, updatedAt: true, updatedByPrincipal: true, verificationStatus: true, verifiedAt: true } } }) useCreateDomainMutation({ selection: { fields: { id: true } } }) useUpdateDomainMutation({ selection: { fields: { id: true } } }) useDeleteDomainMutation({}) @@ -20,7 +20,7 @@ useDeleteDomainMutation({}) ```typescript const { data, isLoading } = useDomainsQuery({ - selection: { fields: { config: true, createdAt: true, databaseId: true, hostname: true, id: true, isPublished: true, isWildcard: true, managed: true, parentHostname: true, tlsReadyAt: true, tlsSecretName: true, tlsStatus: true, updatedAt: true, verificationStatus: true, verifiedAt: true } }, + selection: { fields: { config: true, createdAt: true, createdByPrincipal: true, databaseId: true, hostname: true, id: true, isPublished: true, isWildcard: true, managed: true, parentHostname: true, tlsReadyAt: true, tlsSecretName: true, tlsStatus: true, updatedAt: true, updatedByPrincipal: true, verificationStatus: true, verifiedAt: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useDomainsQuery({ const { mutate } = useCreateDomainMutation({ selection: { fields: { id: true } }, }); -mutate({ config: '', databaseId: '', hostname: '', isPublished: '', isWildcard: '', managed: '', parentHostname: '', tlsReadyAt: '', tlsSecretName: '', tlsStatus: '', verificationStatus: '', verifiedAt: '' }); +mutate({ config: '', createdByPrincipal: '', databaseId: '', hostname: '', isPublished: '', isWildcard: '', managed: '', parentHostname: '', tlsReadyAt: '', tlsSecretName: '', tlsStatus: '', updatedByPrincipal: '', verificationStatus: '', verifiedAt: '' }); ``` diff --git a/.agents/skills/hooks-api/references/function.md b/.agents/skills/hooks-api/references/function.md index dfcf3aca81..797842d1bd 100644 --- a/.agents/skills/hooks-api/references/function.md +++ b/.agents/skills/hooks-api/references/function.md @@ -7,8 +7,8 @@ React Query hooks for Function data operations ## Usage ```typescript -useFunctionsQuery({ selection: { fields: { databaseId: true, id: true, name: true, schemaId: true } } }) -useFunctionQuery({ id: '', selection: { fields: { databaseId: true, id: true, name: true, schemaId: true } } }) +useFunctionsQuery({ selection: { fields: { apiExposed: true, arguments: true, bodyAst: true, category: true, data: true, databaseId: true, functionType: true, id: true, isStrict: true, kind: true, name: true, returns: true, schemaId: true, securityInvoker: true, smartTags: true, tags: true, volatility: true } } }) +useFunctionQuery({ id: '', selection: { fields: { apiExposed: true, arguments: true, bodyAst: true, category: true, data: true, databaseId: true, functionType: true, id: true, isStrict: true, kind: true, name: true, returns: true, schemaId: true, securityInvoker: true, smartTags: true, tags: true, volatility: true } } }) useCreateFunctionMutation({ selection: { fields: { id: true } } }) useUpdateFunctionMutation({ selection: { fields: { id: true } } }) useDeleteFunctionMutation({}) @@ -20,7 +20,7 @@ useDeleteFunctionMutation({}) ```typescript const { data, isLoading } = useFunctionsQuery({ - selection: { fields: { databaseId: true, id: true, name: true, schemaId: true } }, + selection: { fields: { apiExposed: true, arguments: true, bodyAst: true, category: true, data: true, databaseId: true, functionType: true, id: true, isStrict: true, kind: true, name: true, returns: true, schemaId: true, securityInvoker: true, smartTags: true, tags: true, volatility: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useFunctionsQuery({ const { mutate } = useCreateFunctionMutation({ selection: { fields: { id: true } }, }); -mutate({ databaseId: '', name: '', schemaId: '' }); +mutate({ apiExposed: '', arguments: '', bodyAst: '', category: '', data: '', databaseId: '', functionType: '', isStrict: '', kind: '', name: '', returns: '', schemaId: '', securityInvoker: '', smartTags: '', tags: '', volatility: '' }); ``` diff --git a/.agents/skills/hooks-api/references/get-site-preview-commit.md b/.agents/skills/hooks-api/references/get-site-preview-commit.md new file mode 100644 index 0000000000..ac4a733a2a --- /dev/null +++ b/.agents/skills/hooks-api/references/get-site-preview-commit.md @@ -0,0 +1,19 @@ +# getSitePreviewCommit + + + +React Query query hook for getSitePreviewCommit + +## Usage + +```typescript +useGetSitePreviewCommitQuery({ targetName: '', targetSiteId: '' }) +``` + +## Examples + +### Use useGetSitePreviewCommitQuery + +```typescript +const { data, isLoading } = useGetSitePreviewCommitQuery({ targetName: '', targetSiteId: '' }); +``` diff --git a/.agents/skills/hooks-api/references/get-site-previews-record.md b/.agents/skills/hooks-api/references/get-site-previews-record.md new file mode 100644 index 0000000000..69caaec7ff --- /dev/null +++ b/.agents/skills/hooks-api/references/get-site-previews-record.md @@ -0,0 +1,31 @@ +# getSitePreviewsRecord + + + +React Query hooks for GetSitePreviewsRecord data operations + +## Usage + +```typescript +useGetSitePreviewsQuery({ selection: { fields: { commitId: true, name: true } } }) +useCreateGetSitePreviewsRecordMutation({ selection: { fields: { id: true } } }) +``` + +## Examples + +### List all getSitePreviews + +```typescript +const { data, isLoading } = useGetSitePreviewsQuery({ + selection: { fields: { commitId: true, name: true } }, +}); +``` + +### Create a getSitePreviewsRecord + +```typescript +const { mutate } = useCreateGetSitePreviewsRecordMutation({ + selection: { fields: { id: true } }, +}); +mutate({ commitId: '', name: '' }); +``` diff --git a/.agents/skills/hooks-api/references/get-site-release-manifest.md b/.agents/skills/hooks-api/references/get-site-release-manifest.md new file mode 100644 index 0000000000..b53a08e73d --- /dev/null +++ b/.agents/skills/hooks-api/references/get-site-release-manifest.md @@ -0,0 +1,19 @@ +# getSiteReleaseManifest + + + +React Query query hook for getSiteReleaseManifest + +## Usage + +```typescript +useGetSiteReleaseManifestQuery({ targetCommitId: '', targetSiteId: '' }) +``` + +## Examples + +### Use useGetSiteReleaseManifestQuery + +```typescript +const { data, isLoading } = useGetSiteReleaseManifestQuery({ targetCommitId: '', targetSiteId: '' }); +``` diff --git a/.agents/skills/hooks-api/references/identity-provider-registry.md b/.agents/skills/hooks-api/references/identity-provider-registry.md new file mode 100644 index 0000000000..2fc6cdd36d --- /dev/null +++ b/.agents/skills/hooks-api/references/identity-provider-registry.md @@ -0,0 +1,34 @@ +# identityProviderRegistry + + + +React Query hooks for IdentityProviderRegistry data operations + +## Usage + +```typescript +useIdentityProviderRegistriesQuery({ selection: { fields: { authorizationUrl: true, displayName: true, issuerUrl: true, kind: true, scopes: true, slug: true, tokenUrl: true, userinfoUrl: true } } }) +useIdentityProviderRegistryQuery({ slug: '', selection: { fields: { authorizationUrl: true, displayName: true, issuerUrl: true, kind: true, scopes: true, slug: true, tokenUrl: true, userinfoUrl: true } } }) +useCreateIdentityProviderRegistryMutation({ selection: { fields: { slug: true } } }) +useUpdateIdentityProviderRegistryMutation({ selection: { fields: { slug: true } } }) +useDeleteIdentityProviderRegistryMutation({}) +``` + +## Examples + +### List all identityProviderRegistries + +```typescript +const { data, isLoading } = useIdentityProviderRegistriesQuery({ + selection: { fields: { authorizationUrl: true, displayName: true, issuerUrl: true, kind: true, scopes: true, slug: true, tokenUrl: true, userinfoUrl: true } }, +}); +``` + +### Create a identityProviderRegistry + +```typescript +const { mutate } = useCreateIdentityProviderRegistryMutation({ + selection: { fields: { slug: true } }, +}); +mutate({ authorizationUrl: '', displayName: '', issuerUrl: '', kind: '', scopes: '', tokenUrl: '', userinfoUrl: '' }); +``` diff --git a/.agents/skills/hooks-api/references/index.md b/.agents/skills/hooks-api/references/index.md index df16ea0ebe..851fe6e451 100644 --- a/.agents/skills/hooks-api/references/index.md +++ b/.agents/skills/hooks-api/references/index.md @@ -7,8 +7,8 @@ React Query hooks for Index data operations ## Usage ```typescript -useIndicesQuery({ selection: { fields: { accessMethod: true, category: true, createdAt: true, databaseId: true, fieldIds: true, id: true, includeFieldIds: true, indexParams: true, isUnique: true, name: true, opClasses: true, options: true, smartTags: true, tableId: true, tags: true, updatedAt: true, whereClause: true } } }) -useIndexQuery({ id: '', selection: { fields: { accessMethod: true, category: true, createdAt: true, databaseId: true, fieldIds: true, id: true, includeFieldIds: true, indexParams: true, isUnique: true, name: true, opClasses: true, options: true, smartTags: true, tableId: true, tags: true, updatedAt: true, whereClause: true } } }) +useIndicesQuery({ selection: { fields: { accessMethod: true, category: true, createdAt: true, databaseId: true, fieldIds: true, id: true, includeFieldIds: true, indexParams: true, isUnique: true, name: true, nullsNotDistinct: true, opClasses: true, options: true, smartTags: true, tableId: true, tags: true, updatedAt: true, whereClause: true } } }) +useIndexQuery({ id: '', selection: { fields: { accessMethod: true, category: true, createdAt: true, databaseId: true, fieldIds: true, id: true, includeFieldIds: true, indexParams: true, isUnique: true, name: true, nullsNotDistinct: true, opClasses: true, options: true, smartTags: true, tableId: true, tags: true, updatedAt: true, whereClause: true } } }) useCreateIndexMutation({ selection: { fields: { id: true } } }) useUpdateIndexMutation({ selection: { fields: { id: true } } }) useDeleteIndexMutation({}) @@ -20,7 +20,7 @@ useDeleteIndexMutation({}) ```typescript const { data, isLoading } = useIndicesQuery({ - selection: { fields: { accessMethod: true, category: true, createdAt: true, databaseId: true, fieldIds: true, id: true, includeFieldIds: true, indexParams: true, isUnique: true, name: true, opClasses: true, options: true, smartTags: true, tableId: true, tags: true, updatedAt: true, whereClause: true } }, + selection: { fields: { accessMethod: true, category: true, createdAt: true, databaseId: true, fieldIds: true, id: true, includeFieldIds: true, indexParams: true, isUnique: true, name: true, nullsNotDistinct: true, opClasses: true, options: true, smartTags: true, tableId: true, tags: true, updatedAt: true, whereClause: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useIndicesQuery({ const { mutate } = useCreateIndexMutation({ selection: { fields: { id: true } }, }); -mutate({ accessMethod: '', category: '', databaseId: '', fieldIds: '', includeFieldIds: '', indexParams: '', isUnique: '', name: '', opClasses: '', options: '', smartTags: '', tableId: '', tags: '', whereClause: '' }); +mutate({ accessMethod: '', category: '', databaseId: '', fieldIds: '', includeFieldIds: '', indexParams: '', isUnique: '', name: '', nullsNotDistinct: '', opClasses: '', options: '', smartTags: '', tableId: '', tags: '', whereClause: '' }); ``` diff --git a/.agents/skills/hooks-api/references/managed-domain.md b/.agents/skills/hooks-api/references/managed-domain.md index 84bd8eecf3..f44fe8c981 100644 --- a/.agents/skills/hooks-api/references/managed-domain.md +++ b/.agents/skills/hooks-api/references/managed-domain.md @@ -7,8 +7,8 @@ Platform-operated hostnames whose DNS and certificate lifecycle the platform dri ## Usage ```typescript -useManagedDomainsQuery({ selection: { fields: { allowPublicUsage: true, annotations: true, certStatus: true, createdAt: true, databaseId: true, domain: true, id: true, isWildcard: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, verificationStatus: true, verifiedAt: true } } }) -useManagedDomainQuery({ id: '', selection: { fields: { allowPublicUsage: true, annotations: true, certStatus: true, createdAt: true, databaseId: true, domain: true, id: true, isWildcard: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, verificationStatus: true, verifiedAt: true } } }) +useManagedDomainsQuery({ selection: { fields: { allowPublicUsage: true, annotations: true, certStatus: true, createdAt: true, createdByPrincipal: true, databaseId: true, domain: true, id: true, isWildcard: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, updatedByPrincipal: true, verificationStatus: true, verifiedAt: true } } }) +useManagedDomainQuery({ id: '', selection: { fields: { allowPublicUsage: true, annotations: true, certStatus: true, createdAt: true, createdByPrincipal: true, databaseId: true, domain: true, id: true, isWildcard: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, updatedByPrincipal: true, verificationStatus: true, verifiedAt: true } } }) useCreateManagedDomainMutation({ selection: { fields: { id: true } } }) useUpdateManagedDomainMutation({ selection: { fields: { id: true } } }) useDeleteManagedDomainMutation({}) @@ -20,7 +20,7 @@ useDeleteManagedDomainMutation({}) ```typescript const { data, isLoading } = useManagedDomainsQuery({ - selection: { fields: { allowPublicUsage: true, annotations: true, certStatus: true, createdAt: true, databaseId: true, domain: true, id: true, isWildcard: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, verificationStatus: true, verifiedAt: true } }, + selection: { fields: { allowPublicUsage: true, annotations: true, certStatus: true, createdAt: true, createdByPrincipal: true, databaseId: true, domain: true, id: true, isWildcard: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, updatedByPrincipal: true, verificationStatus: true, verifiedAt: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useManagedDomainsQuery({ const { mutate } = useCreateManagedDomainMutation({ selection: { fields: { id: true } }, }); -mutate({ allowPublicUsage: '', annotations: '', certStatus: '', databaseId: '', domain: '', isWildcard: '', tlsReadyAt: '', tlsStatus: '', verificationStatus: '', verifiedAt: '' }); +mutate({ allowPublicUsage: '', annotations: '', certStatus: '', createdByPrincipal: '', databaseId: '', domain: '', isWildcard: '', tlsReadyAt: '', tlsStatus: '', updatedByPrincipal: '', verificationStatus: '', verifiedAt: '' }); ``` diff --git a/.agents/skills/hooks-api/references/mint-site-preview-token.md b/.agents/skills/hooks-api/references/mint-site-preview-token.md new file mode 100644 index 0000000000..f3a9027c67 --- /dev/null +++ b/.agents/skills/hooks-api/references/mint-site-preview-token.md @@ -0,0 +1,20 @@ +# mintSitePreviewToken + + + +React Query mutation hook for mintSitePreviewToken + +## Usage + +```typescript +const { mutate } = useMintSitePreviewTokenMutation(); mutate({ input: { siteId: '', target: '', targetKind: '', ttlSeconds: '' } }); +``` + +## Examples + +### Use useMintSitePreviewTokenMutation + +```typescript +const { mutate, isLoading } = useMintSitePreviewTokenMutation(); +mutate({ input: { siteId: '', target: '', targetKind: '', ttlSeconds: '' } }); +``` diff --git a/.agents/skills/hooks-api/references/page-published.md b/.agents/skills/hooks-api/references/page-published.md new file mode 100644 index 0000000000..1ab8343f9a --- /dev/null +++ b/.agents/skills/hooks-api/references/page-published.md @@ -0,0 +1,19 @@ +# pagePublished + + + +React Query query hook for pagePublished + +## Usage + +```typescript +usePagePublishedQuery({ pageSlug: '', targetSiteId: '' }) +``` + +## Examples + +### Use usePagePublishedQuery + +```typescript +const { data, isLoading } = usePagePublishedQuery({ pageSlug: '', targetSiteId: '' }); +``` diff --git a/.agents/skills/hooks-api/references/page.md b/.agents/skills/hooks-api/references/page.md index 1c4dd9fa6b..3ab39b577f 100644 --- a/.agents/skills/hooks-api/references/page.md +++ b/.agents/skills/hooks-api/references/page.md @@ -7,8 +7,8 @@ Site-owned page content — merkle-versioned head over the infra store; never a ## Usage ```typescript -usePagesQuery({ selection: { fields: { commitId: true, content: true, createdAt: true, databaseId: true, id: true, siteId: true, slug: true, storeId: true, updatedAt: true } } }) -usePageQuery({ id: '', selection: { fields: { commitId: true, content: true, createdAt: true, databaseId: true, id: true, siteId: true, slug: true, storeId: true, updatedAt: true } } }) +usePagesQuery({ selection: { fields: { commitId: true, content: true, createdAt: true, databaseId: true, id: true, seededFrom: true, siteId: true, slug: true, storeId: true, updatedAt: true } } }) +usePageQuery({ id: '', selection: { fields: { commitId: true, content: true, createdAt: true, databaseId: true, id: true, seededFrom: true, siteId: true, slug: true, storeId: true, updatedAt: true } } }) useCreatePageMutation({ selection: { fields: { id: true } } }) useUpdatePageMutation({ selection: { fields: { id: true } } }) useDeletePageMutation({}) @@ -20,7 +20,7 @@ useDeletePageMutation({}) ```typescript const { data, isLoading } = usePagesQuery({ - selection: { fields: { commitId: true, content: true, createdAt: true, databaseId: true, id: true, siteId: true, slug: true, storeId: true, updatedAt: true } }, + selection: { fields: { commitId: true, content: true, createdAt: true, databaseId: true, id: true, seededFrom: true, siteId: true, slug: true, storeId: true, updatedAt: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = usePagesQuery({ const { mutate } = useCreatePageMutation({ selection: { fields: { id: true } }, }); -mutate({ commitId: '', content: '', databaseId: '', siteId: '', slug: '', storeId: '' }); +mutate({ commitId: '', content: '', databaseId: '', seededFrom: '', siteId: '', slug: '', storeId: '' }); ``` diff --git a/.agents/skills/hooks-api/references/pages-install-pages.md b/.agents/skills/hooks-api/references/pages-install-pages.md new file mode 100644 index 0000000000..f84a1c9457 --- /dev/null +++ b/.agents/skills/hooks-api/references/pages-install-pages.md @@ -0,0 +1,20 @@ +# pagesInstallPages + + + +React Query mutation hook for pagesInstallPages + +## Usage + +```typescript +const { mutate } = usePagesInstallPagesMutation(); mutate({ input: { entityId: '', pagesPreset: '', siteId: '' } }); +``` + +## Examples + +### Use usePagesInstallPagesMutation + +```typescript +const { mutate, isLoading } = usePagesInstallPagesMutation(); +mutate({ input: { entityId: '', pagesPreset: '', siteId: '' } }); +``` diff --git a/.agents/skills/hooks-api/references/platform-api-setting.md b/.agents/skills/hooks-api/references/platform-api-setting.md index 801937133e..3b8d6e4821 100644 --- a/.agents/skills/hooks-api/references/platform-api-setting.md +++ b/.agents/skills/hooks-api/references/platform-api-setting.md @@ -7,8 +7,8 @@ Per-API feature flag overrides; NULL columns inherit from database_settings ## Usage ```typescript -usePlatformApiSettingsQuery({ selection: { fields: { apiId: true, createdAt: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, options: true, statementTimeoutMs: true, updatedAt: true } } }) -usePlatformApiSettingQuery({ id: '', selection: { fields: { apiId: true, createdAt: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, options: true, statementTimeoutMs: true, updatedAt: true } } }) +usePlatformApiSettingsQuery({ selection: { fields: { apiId: true, createdAt: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } } }) +usePlatformApiSettingQuery({ id: '', selection: { fields: { apiId: true, createdAt: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } } }) useCreatePlatformApiSettingMutation({ selection: { fields: { id: true } } }) useUpdatePlatformApiSettingMutation({ selection: { fields: { id: true } } }) useDeletePlatformApiSettingMutation({}) @@ -20,7 +20,7 @@ useDeletePlatformApiSettingMutation({}) ```typescript const { data, isLoading } = usePlatformApiSettingsQuery({ - selection: { fields: { apiId: true, createdAt: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, options: true, statementTimeoutMs: true, updatedAt: true } }, + selection: { fields: { apiId: true, createdAt: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = usePlatformApiSettingsQuery({ const { mutate } = useCreatePlatformApiSettingMutation({ selection: { fields: { id: true } }, }); -mutate({ apiId: '', enableAggregates: '', enableBulk: '', enableConnectionFilter: '', enableDirectUploads: '', enableI18N: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', options: '', statementTimeoutMs: '' }); +mutate({ apiId: '', enableAggregates: '', enableBulk: '', enableConnectionFilter: '', enableDirectUploads: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }); ``` diff --git a/.agents/skills/hooks-api/references/platform-delete-site-preview.md b/.agents/skills/hooks-api/references/platform-delete-site-preview.md new file mode 100644 index 0000000000..c407f918af --- /dev/null +++ b/.agents/skills/hooks-api/references/platform-delete-site-preview.md @@ -0,0 +1,20 @@ +# platformDeleteSitePreview + + + +React Query mutation hook for platformDeleteSitePreview + +## Usage + +```typescript +const { mutate } = usePlatformDeleteSitePreviewMutation(); mutate({ input: { targetName: '', targetSiteId: '' } }); +``` + +## Examples + +### Use usePlatformDeleteSitePreviewMutation + +```typescript +const { mutate, isLoading } = usePlatformDeleteSitePreviewMutation(); +mutate({ input: { targetName: '', targetSiteId: '' } }); +``` diff --git a/.agents/skills/hooks-api/references/platform-domain.md b/.agents/skills/hooks-api/references/platform-domain.md index ee4c9c7d5d..a8b222ee8c 100644 --- a/.agents/skills/hooks-api/references/platform-domain.md +++ b/.agents/skills/hooks-api/references/platform-domain.md @@ -7,8 +7,8 @@ Fully-qualified hostnames owned by this scope; each row claims its hostname glob ## Usage ```typescript -usePlatformDomainsQuery({ selection: { fields: { config: true, createdAt: true, hostname: true, id: true, isPublished: true, isWildcard: true, managed: true, parentHostname: true, tlsReadyAt: true, tlsSecretName: true, tlsStatus: true, updatedAt: true, verificationStatus: true, verifiedAt: true } } }) -usePlatformDomainQuery({ id: '', selection: { fields: { config: true, createdAt: true, hostname: true, id: true, isPublished: true, isWildcard: true, managed: true, parentHostname: true, tlsReadyAt: true, tlsSecretName: true, tlsStatus: true, updatedAt: true, verificationStatus: true, verifiedAt: true } } }) +usePlatformDomainsQuery({ selection: { fields: { config: true, createdAt: true, createdByPrincipal: true, hostname: true, id: true, isPublished: true, isWildcard: true, managed: true, parentHostname: true, tlsReadyAt: true, tlsSecretName: true, tlsStatus: true, updatedAt: true, updatedByPrincipal: true, verificationStatus: true, verifiedAt: true } } }) +usePlatformDomainQuery({ id: '', selection: { fields: { config: true, createdAt: true, createdByPrincipal: true, hostname: true, id: true, isPublished: true, isWildcard: true, managed: true, parentHostname: true, tlsReadyAt: true, tlsSecretName: true, tlsStatus: true, updatedAt: true, updatedByPrincipal: true, verificationStatus: true, verifiedAt: true } } }) useCreatePlatformDomainMutation({ selection: { fields: { id: true } } }) useUpdatePlatformDomainMutation({ selection: { fields: { id: true } } }) useDeletePlatformDomainMutation({}) @@ -20,7 +20,7 @@ useDeletePlatformDomainMutation({}) ```typescript const { data, isLoading } = usePlatformDomainsQuery({ - selection: { fields: { config: true, createdAt: true, hostname: true, id: true, isPublished: true, isWildcard: true, managed: true, parentHostname: true, tlsReadyAt: true, tlsSecretName: true, tlsStatus: true, updatedAt: true, verificationStatus: true, verifiedAt: true } }, + selection: { fields: { config: true, createdAt: true, createdByPrincipal: true, hostname: true, id: true, isPublished: true, isWildcard: true, managed: true, parentHostname: true, tlsReadyAt: true, tlsSecretName: true, tlsStatus: true, updatedAt: true, updatedByPrincipal: true, verificationStatus: true, verifiedAt: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = usePlatformDomainsQuery({ const { mutate } = useCreatePlatformDomainMutation({ selection: { fields: { id: true } }, }); -mutate({ config: '', hostname: '', isPublished: '', isWildcard: '', managed: '', parentHostname: '', tlsReadyAt: '', tlsSecretName: '', tlsStatus: '', verificationStatus: '', verifiedAt: '' }); +mutate({ config: '', createdByPrincipal: '', hostname: '', isPublished: '', isWildcard: '', managed: '', parentHostname: '', tlsReadyAt: '', tlsSecretName: '', tlsStatus: '', updatedByPrincipal: '', verificationStatus: '', verifiedAt: '' }); ``` diff --git a/.agents/skills/hooks-api/references/platform-get-site-preview-commit.md b/.agents/skills/hooks-api/references/platform-get-site-preview-commit.md new file mode 100644 index 0000000000..245e11582f --- /dev/null +++ b/.agents/skills/hooks-api/references/platform-get-site-preview-commit.md @@ -0,0 +1,19 @@ +# platformGetSitePreviewCommit + + + +React Query query hook for platformGetSitePreviewCommit + +## Usage + +```typescript +usePlatformGetSitePreviewCommitQuery({ targetName: '', targetSiteId: '' }) +``` + +## Examples + +### Use usePlatformGetSitePreviewCommitQuery + +```typescript +const { data, isLoading } = usePlatformGetSitePreviewCommitQuery({ targetName: '', targetSiteId: '' }); +``` diff --git a/.agents/skills/hooks-api/references/platform-get-site-previews-record.md b/.agents/skills/hooks-api/references/platform-get-site-previews-record.md new file mode 100644 index 0000000000..5c90fa0be3 --- /dev/null +++ b/.agents/skills/hooks-api/references/platform-get-site-previews-record.md @@ -0,0 +1,31 @@ +# platformGetSitePreviewsRecord + + + +React Query hooks for PlatformGetSitePreviewsRecord data operations + +## Usage + +```typescript +usePlatformGetSitePreviewsQuery({ selection: { fields: { commitId: true, name: true } } }) +useCreatePlatformGetSitePreviewsRecordMutation({ selection: { fields: { id: true } } }) +``` + +## Examples + +### List all platformGetSitePreviews + +```typescript +const { data, isLoading } = usePlatformGetSitePreviewsQuery({ + selection: { fields: { commitId: true, name: true } }, +}); +``` + +### Create a platformGetSitePreviewsRecord + +```typescript +const { mutate } = useCreatePlatformGetSitePreviewsRecordMutation({ + selection: { fields: { id: true } }, +}); +mutate({ commitId: '', name: '' }); +``` diff --git a/.agents/skills/hooks-api/references/platform-get-site-release-manifest.md b/.agents/skills/hooks-api/references/platform-get-site-release-manifest.md new file mode 100644 index 0000000000..607d44ce79 --- /dev/null +++ b/.agents/skills/hooks-api/references/platform-get-site-release-manifest.md @@ -0,0 +1,19 @@ +# platformGetSiteReleaseManifest + + + +React Query query hook for platformGetSiteReleaseManifest + +## Usage + +```typescript +usePlatformGetSiteReleaseManifestQuery({ targetCommitId: '', targetSiteId: '' }) +``` + +## Examples + +### Use usePlatformGetSiteReleaseManifestQuery + +```typescript +const { data, isLoading } = usePlatformGetSiteReleaseManifestQuery({ targetCommitId: '', targetSiteId: '' }); +``` diff --git a/.agents/skills/hooks-api/references/platform-managed-domain.md b/.agents/skills/hooks-api/references/platform-managed-domain.md index dc7dc85569..a8dbe6a037 100644 --- a/.agents/skills/hooks-api/references/platform-managed-domain.md +++ b/.agents/skills/hooks-api/references/platform-managed-domain.md @@ -7,8 +7,8 @@ Platform-operated hostnames whose DNS and certificate lifecycle the platform dri ## Usage ```typescript -usePlatformManagedDomainsQuery({ selection: { fields: { allowPublicUsage: true, annotations: true, certStatus: true, createdAt: true, domain: true, id: true, isWildcard: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, verificationStatus: true, verifiedAt: true } } }) -usePlatformManagedDomainQuery({ id: '', selection: { fields: { allowPublicUsage: true, annotations: true, certStatus: true, createdAt: true, domain: true, id: true, isWildcard: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, verificationStatus: true, verifiedAt: true } } }) +usePlatformManagedDomainsQuery({ selection: { fields: { allowPublicUsage: true, annotations: true, certStatus: true, createdAt: true, createdByPrincipal: true, domain: true, id: true, isWildcard: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, updatedByPrincipal: true, verificationStatus: true, verifiedAt: true } } }) +usePlatformManagedDomainQuery({ id: '', selection: { fields: { allowPublicUsage: true, annotations: true, certStatus: true, createdAt: true, createdByPrincipal: true, domain: true, id: true, isWildcard: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, updatedByPrincipal: true, verificationStatus: true, verifiedAt: true } } }) useCreatePlatformManagedDomainMutation({ selection: { fields: { id: true } } }) useUpdatePlatformManagedDomainMutation({ selection: { fields: { id: true } } }) useDeletePlatformManagedDomainMutation({}) @@ -20,7 +20,7 @@ useDeletePlatformManagedDomainMutation({}) ```typescript const { data, isLoading } = usePlatformManagedDomainsQuery({ - selection: { fields: { allowPublicUsage: true, annotations: true, certStatus: true, createdAt: true, domain: true, id: true, isWildcard: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, verificationStatus: true, verifiedAt: true } }, + selection: { fields: { allowPublicUsage: true, annotations: true, certStatus: true, createdAt: true, createdByPrincipal: true, domain: true, id: true, isWildcard: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, updatedByPrincipal: true, verificationStatus: true, verifiedAt: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = usePlatformManagedDomainsQuery({ const { mutate } = useCreatePlatformManagedDomainMutation({ selection: { fields: { id: true } }, }); -mutate({ allowPublicUsage: '', annotations: '', certStatus: '', domain: '', isWildcard: '', tlsReadyAt: '', tlsStatus: '', verificationStatus: '', verifiedAt: '' }); +mutate({ allowPublicUsage: '', annotations: '', certStatus: '', createdByPrincipal: '', domain: '', isWildcard: '', tlsReadyAt: '', tlsStatus: '', updatedByPrincipal: '', verificationStatus: '', verifiedAt: '' }); ``` diff --git a/.agents/skills/hooks-api/references/platform-mint-site-preview-token.md b/.agents/skills/hooks-api/references/platform-mint-site-preview-token.md new file mode 100644 index 0000000000..26a77671fc --- /dev/null +++ b/.agents/skills/hooks-api/references/platform-mint-site-preview-token.md @@ -0,0 +1,20 @@ +# platformMintSitePreviewToken + + + +React Query mutation hook for platformMintSitePreviewToken + +## Usage + +```typescript +const { mutate } = usePlatformMintSitePreviewTokenMutation(); mutate({ input: { siteId: '', target: '', targetKind: '', ttlSeconds: '' } }); +``` + +## Examples + +### Use usePlatformMintSitePreviewTokenMutation + +```typescript +const { mutate, isLoading } = usePlatformMintSitePreviewTokenMutation(); +mutate({ input: { siteId: '', target: '', targetKind: '', ttlSeconds: '' } }); +``` diff --git a/.agents/skills/hooks-api/references/platform-page-published.md b/.agents/skills/hooks-api/references/platform-page-published.md new file mode 100644 index 0000000000..3d9de9cfa6 --- /dev/null +++ b/.agents/skills/hooks-api/references/platform-page-published.md @@ -0,0 +1,19 @@ +# platformPagePublished + + + +React Query query hook for platformPagePublished + +## Usage + +```typescript +usePlatformPagePublishedQuery({ pageSlug: '', targetSiteId: '' }) +``` + +## Examples + +### Use usePlatformPagePublishedQuery + +```typescript +const { data, isLoading } = usePlatformPagePublishedQuery({ pageSlug: '', targetSiteId: '' }); +``` diff --git a/.agents/skills/hooks-api/references/platform-page.md b/.agents/skills/hooks-api/references/platform-page.md index 375e668845..1b8feac6c6 100644 --- a/.agents/skills/hooks-api/references/platform-page.md +++ b/.agents/skills/hooks-api/references/platform-page.md @@ -7,8 +7,8 @@ Site-owned page content — merkle-versioned head over the infra store; never a ## Usage ```typescript -usePlatformPagesQuery({ selection: { fields: { commitId: true, content: true, createdAt: true, id: true, siteId: true, slug: true, storeId: true, updatedAt: true } } }) -usePlatformPageQuery({ id: '', selection: { fields: { commitId: true, content: true, createdAt: true, id: true, siteId: true, slug: true, storeId: true, updatedAt: true } } }) +usePlatformPagesQuery({ selection: { fields: { commitId: true, content: true, createdAt: true, id: true, seededFrom: true, siteId: true, slug: true, storeId: true, updatedAt: true } } }) +usePlatformPageQuery({ id: '', selection: { fields: { commitId: true, content: true, createdAt: true, id: true, seededFrom: true, siteId: true, slug: true, storeId: true, updatedAt: true } } }) useCreatePlatformPageMutation({ selection: { fields: { id: true } } }) useUpdatePlatformPageMutation({ selection: { fields: { id: true } } }) useDeletePlatformPageMutation({}) @@ -20,7 +20,7 @@ useDeletePlatformPageMutation({}) ```typescript const { data, isLoading } = usePlatformPagesQuery({ - selection: { fields: { commitId: true, content: true, createdAt: true, id: true, siteId: true, slug: true, storeId: true, updatedAt: true } }, + selection: { fields: { commitId: true, content: true, createdAt: true, id: true, seededFrom: true, siteId: true, slug: true, storeId: true, updatedAt: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = usePlatformPagesQuery({ const { mutate } = useCreatePlatformPageMutation({ selection: { fields: { id: true } }, }); -mutate({ commitId: '', content: '', siteId: '', slug: '', storeId: '' }); +mutate({ commitId: '', content: '', seededFrom: '', siteId: '', slug: '', storeId: '' }); ``` diff --git a/.agents/skills/hooks-api/references/platform-pages-install-pages.md b/.agents/skills/hooks-api/references/platform-pages-install-pages.md new file mode 100644 index 0000000000..0f0c7cd241 --- /dev/null +++ b/.agents/skills/hooks-api/references/platform-pages-install-pages.md @@ -0,0 +1,20 @@ +# platformPagesInstallPages + + + +React Query mutation hook for platformPagesInstallPages + +## Usage + +```typescript +const { mutate } = usePlatformPagesInstallPagesMutation(); mutate({ input: { entityId: '', pagesPreset: '', siteId: '' } }); +``` + +## Examples + +### Use usePlatformPagesInstallPagesMutation + +```typescript +const { mutate, isLoading } = usePlatformPagesInstallPagesMutation(); +mutate({ input: { entityId: '', pagesPreset: '', siteId: '' } }); +``` diff --git a/.agents/skills/hooks-api/references/platform-provision-site-preview.md b/.agents/skills/hooks-api/references/platform-provision-site-preview.md new file mode 100644 index 0000000000..69609d2590 --- /dev/null +++ b/.agents/skills/hooks-api/references/platform-provision-site-preview.md @@ -0,0 +1,20 @@ +# platformProvisionSitePreview + + + +React Query mutation hook for platformProvisionSitePreview + +## Usage + +```typescript +const { mutate } = usePlatformProvisionSitePreviewMutation(); mutate({ input: { apex: '', commitId: '', name: '', siteId: '' } }); +``` + +## Examples + +### Use usePlatformProvisionSitePreviewMutation + +```typescript +const { mutate, isLoading } = usePlatformProvisionSitePreviewMutation(); +mutate({ input: { apex: '', commitId: '', name: '', siteId: '' } }); +``` diff --git a/.agents/skills/hooks-api/references/platform-set-site-preview.md b/.agents/skills/hooks-api/references/platform-set-site-preview.md new file mode 100644 index 0000000000..3f207a311d --- /dev/null +++ b/.agents/skills/hooks-api/references/platform-set-site-preview.md @@ -0,0 +1,20 @@ +# platformSetSitePreview + + + +React Query mutation hook for platformSetSitePreview + +## Usage + +```typescript +const { mutate } = usePlatformSetSitePreviewMutation(); mutate({ input: { targetCommitId: '', targetName: '', targetSiteId: '' } }); +``` + +## Examples + +### Use usePlatformSetSitePreviewMutation + +```typescript +const { mutate, isLoading } = usePlatformSetSitePreviewMutation(); +mutate({ input: { targetCommitId: '', targetName: '', targetSiteId: '' } }); +``` diff --git a/.agents/skills/hooks-api/references/platform-site-app-link.md b/.agents/skills/hooks-api/references/platform-site-app-link.md index 8526905284..2a94cf3d40 100644 --- a/.agents/skills/hooks-api/references/platform-site-app-link.md +++ b/.agents/skills/hooks-api/references/platform-site-app-link.md @@ -2,13 +2,13 @@ -Native-app deep-link association metadata for a site surface (feeds AASA / assetlinks.json generation) +Per-host native-app association for a site surface: which app-owned store identity this host serves, and the path patterns it claims (joined with the store identity to render AASA / assetlinks.json) ## Usage ```typescript -usePlatformSiteAppLinksQuery({ selection: { fields: { appIdentifier: true, createdAt: true, id: true, pathComponents: true, platform: true, sha256CertFingerprints: true, siteId: true, storeUrl: true, teamId: true, updatedAt: true, webcredentials: true } } }) -usePlatformSiteAppLinkQuery({ id: '', selection: { fields: { appIdentifier: true, createdAt: true, id: true, pathComponents: true, platform: true, sha256CertFingerprints: true, siteId: true, storeUrl: true, teamId: true, updatedAt: true, webcredentials: true } } }) +usePlatformSiteAppLinksQuery({ selection: { fields: { appStoreIdentityId: true, createdAt: true, id: true, pathComponents: true, siteId: true, updatedAt: true, webcredentials: true } } }) +usePlatformSiteAppLinkQuery({ id: '', selection: { fields: { appStoreIdentityId: true, createdAt: true, id: true, pathComponents: true, siteId: true, updatedAt: true, webcredentials: true } } }) useCreatePlatformSiteAppLinkMutation({ selection: { fields: { id: true } } }) useUpdatePlatformSiteAppLinkMutation({ selection: { fields: { id: true } } }) useDeletePlatformSiteAppLinkMutation({}) @@ -20,7 +20,7 @@ useDeletePlatformSiteAppLinkMutation({}) ```typescript const { data, isLoading } = usePlatformSiteAppLinksQuery({ - selection: { fields: { appIdentifier: true, createdAt: true, id: true, pathComponents: true, platform: true, sha256CertFingerprints: true, siteId: true, storeUrl: true, teamId: true, updatedAt: true, webcredentials: true } }, + selection: { fields: { appStoreIdentityId: true, createdAt: true, id: true, pathComponents: true, siteId: true, updatedAt: true, webcredentials: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = usePlatformSiteAppLinksQuery({ const { mutate } = useCreatePlatformSiteAppLinkMutation({ selection: { fields: { id: true } }, }); -mutate({ appIdentifier: '', pathComponents: '', platform: '', sha256CertFingerprints: '', siteId: '', storeUrl: '', teamId: '', webcredentials: '' }); +mutate({ appStoreIdentityId: '', pathComponents: '', siteId: '', webcredentials: '' }); ``` diff --git a/.agents/skills/hooks-api/references/platform-site-deep-link.md b/.agents/skills/hooks-api/references/platform-site-deep-link.md index 26d43fea6d..dea70010f6 100644 --- a/.agents/skills/hooks-api/references/platform-site-deep-link.md +++ b/.agents/skills/hooks-api/references/platform-site-deep-link.md @@ -7,8 +7,8 @@ Named, retargetable deep links owned by a site surface (served at the deep-link ## Usage ```typescript -usePlatformSiteDeepLinksQuery({ selection: { fields: { appPath: true, createdAt: true, fallbackUrl: true, id: true, metadata: true, siteId: true, slug: true, updatedAt: true, webPath: true } } }) -usePlatformSiteDeepLinkQuery({ id: '', selection: { fields: { appPath: true, createdAt: true, fallbackUrl: true, id: true, metadata: true, siteId: true, slug: true, updatedAt: true, webPath: true } } }) +usePlatformSiteDeepLinksQuery({ selection: { fields: { appPath: true, createdAt: true, fallbackUrl: true, id: true, metadata: true, pageId: true, siteId: true, slug: true, updatedAt: true, webPath: true } } }) +usePlatformSiteDeepLinkQuery({ id: '', selection: { fields: { appPath: true, createdAt: true, fallbackUrl: true, id: true, metadata: true, pageId: true, siteId: true, slug: true, updatedAt: true, webPath: true } } }) useCreatePlatformSiteDeepLinkMutation({ selection: { fields: { id: true } } }) useUpdatePlatformSiteDeepLinkMutation({ selection: { fields: { id: true } } }) useDeletePlatformSiteDeepLinkMutation({}) @@ -20,7 +20,7 @@ useDeletePlatformSiteDeepLinkMutation({}) ```typescript const { data, isLoading } = usePlatformSiteDeepLinksQuery({ - selection: { fields: { appPath: true, createdAt: true, fallbackUrl: true, id: true, metadata: true, siteId: true, slug: true, updatedAt: true, webPath: true } }, + selection: { fields: { appPath: true, createdAt: true, fallbackUrl: true, id: true, metadata: true, pageId: true, siteId: true, slug: true, updatedAt: true, webPath: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = usePlatformSiteDeepLinksQuery({ const { mutate } = useCreatePlatformSiteDeepLinkMutation({ selection: { fields: { id: true } }, }); -mutate({ appPath: '', fallbackUrl: '', metadata: '', siteId: '', slug: '', webPath: '' }); +mutate({ appPath: '', fallbackUrl: '', metadata: '', pageId: '', siteId: '', slug: '', webPath: '' }); ``` diff --git a/.agents/skills/hooks-api/references/platform-site-metadata-install-robots.md b/.agents/skills/hooks-api/references/platform-site-metadata-install-robots.md new file mode 100644 index 0000000000..cd9067a066 --- /dev/null +++ b/.agents/skills/hooks-api/references/platform-site-metadata-install-robots.md @@ -0,0 +1,20 @@ +# platformSiteMetadataInstallRobots + + + +React Query mutation hook for platformSiteMetadataInstallRobots + +## Usage + +```typescript +const { mutate } = usePlatformSiteMetadataInstallRobotsMutation(); mutate({ input: { entityId: '', robotsPreset: '', siteId: '' } }); +``` + +## Examples + +### Use usePlatformSiteMetadataInstallRobotsMutation + +```typescript +const { mutate, isLoading } = usePlatformSiteMetadataInstallRobotsMutation(); +mutate({ input: { entityId: '', robotsPreset: '', siteId: '' } }); +``` diff --git a/.agents/skills/hooks-api/references/platform-site-metadatum.md b/.agents/skills/hooks-api/references/platform-site-metadatum.md index 5fa5df08e7..5442c8a295 100644 --- a/.agents/skills/hooks-api/references/platform-site-metadatum.md +++ b/.agents/skills/hooks-api/references/platform-site-metadatum.md @@ -7,8 +7,8 @@ SEO and social sharing metadata for a site surface ## Usage ```typescript -usePlatformSiteMetadataQuery({ selection: { fields: { appleTouchIcon: true, canonicalUrl: true, commitId: true, createdAt: true, description: true, favicon: true, id: true, logo: true, ogImage: true, robots: true, siteId: true, storeId: true, title: true, updatedAt: true } } }) -usePlatformSiteMetadatumQuery({ id: '', selection: { fields: { appleTouchIcon: true, canonicalUrl: true, commitId: true, createdAt: true, description: true, favicon: true, id: true, logo: true, ogImage: true, robots: true, siteId: true, storeId: true, title: true, updatedAt: true } } }) +usePlatformSiteMetadataQuery({ selection: { fields: { appleTouchIcon: true, canonicalUrl: true, commitId: true, createdAt: true, description: true, favicon: true, id: true, logo: true, ogImage: true, robots: true, robotsSeededFrom: true, siteId: true, storeId: true, title: true, updatedAt: true } } }) +usePlatformSiteMetadatumQuery({ id: '', selection: { fields: { appleTouchIcon: true, canonicalUrl: true, commitId: true, createdAt: true, description: true, favicon: true, id: true, logo: true, ogImage: true, robots: true, robotsSeededFrom: true, siteId: true, storeId: true, title: true, updatedAt: true } } }) useCreatePlatformSiteMetadatumMutation({ selection: { fields: { id: true } } }) useUpdatePlatformSiteMetadatumMutation({ selection: { fields: { id: true } } }) useDeletePlatformSiteMetadatumMutation({}) @@ -20,7 +20,7 @@ useDeletePlatformSiteMetadatumMutation({}) ```typescript const { data, isLoading } = usePlatformSiteMetadataQuery({ - selection: { fields: { appleTouchIcon: true, canonicalUrl: true, commitId: true, createdAt: true, description: true, favicon: true, id: true, logo: true, ogImage: true, robots: true, siteId: true, storeId: true, title: true, updatedAt: true } }, + selection: { fields: { appleTouchIcon: true, canonicalUrl: true, commitId: true, createdAt: true, description: true, favicon: true, id: true, logo: true, ogImage: true, robots: true, robotsSeededFrom: true, siteId: true, storeId: true, title: true, updatedAt: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = usePlatformSiteMetadataQuery({ const { mutate } = useCreatePlatformSiteMetadatumMutation({ selection: { fields: { id: true } }, }); -mutate({ appleTouchIcon: '', canonicalUrl: '', commitId: '', description: '', favicon: '', logo: '', ogImage: '', robots: '', siteId: '', storeId: '', title: '' }); +mutate({ appleTouchIcon: '', canonicalUrl: '', commitId: '', description: '', favicon: '', logo: '', ogImage: '', robots: '', robotsSeededFrom: '', siteId: '', storeId: '', title: '' }); ``` diff --git a/.agents/skills/hooks-api/references/platform-site-release.md b/.agents/skills/hooks-api/references/platform-site-release.md new file mode 100644 index 0000000000..7539e5efea --- /dev/null +++ b/.agents/skills/hooks-api/references/platform-site-release.md @@ -0,0 +1,34 @@ +# platformSiteRelease + + + +Immutable static-site release manifest head, versioned in the site-owned merkle store + +## Usage + +```typescript +usePlatformSiteReleasesQuery({ selection: { fields: { commitId: true, createdAt: true, id: true, manifest: true, siteId: true, storeId: true, updatedAt: true } } }) +usePlatformSiteReleaseQuery({ id: '', selection: { fields: { commitId: true, createdAt: true, id: true, manifest: true, siteId: true, storeId: true, updatedAt: true } } }) +useCreatePlatformSiteReleaseMutation({ selection: { fields: { id: true } } }) +useUpdatePlatformSiteReleaseMutation({ selection: { fields: { id: true } } }) +useDeletePlatformSiteReleaseMutation({}) +``` + +## Examples + +### List all platformSiteReleases + +```typescript +const { data, isLoading } = usePlatformSiteReleasesQuery({ + selection: { fields: { commitId: true, createdAt: true, id: true, manifest: true, siteId: true, storeId: true, updatedAt: true } }, +}); +``` + +### Create a platformSiteRelease + +```typescript +const { mutate } = useCreatePlatformSiteReleaseMutation({ + selection: { fields: { id: true } }, +}); +mutate({ commitId: '', manifest: '', siteId: '', storeId: '' }); +``` diff --git a/.agents/skills/hooks-api/references/platform-site.md b/.agents/skills/hooks-api/references/platform-site.md index 5bcb65fb9f..046d99f997 100644 --- a/.agents/skills/hooks-api/references/platform-site.md +++ b/.agents/skills/hooks-api/references/platform-site.md @@ -7,8 +7,8 @@ Site surfaces exposed by this scope; publication makes a surface bindable from o ## Usage ```typescript -usePlatformSitesQuery({ selection: { fields: { activeCommitId: true, bucketId: true, createdAt: true, description: true, id: true, installationId: true, installationMemberSlug: true, isPublished: true, name: true, resourceId: true, title: true, updatedAt: true } } }) -usePlatformSiteQuery({ id: '', selection: { fields: { activeCommitId: true, bucketId: true, createdAt: true, description: true, id: true, installationId: true, installationMemberSlug: true, isPublished: true, name: true, resourceId: true, title: true, updatedAt: true } } }) +usePlatformSitesQuery({ selection: { fields: { activeCommitId: true, bucketId: true, createdAt: true, createdByPrincipal: true, description: true, id: true, installationId: true, installationMemberSlug: true, isPublished: true, name: true, resourceId: true, title: true, updatedAt: true, updatedByPrincipal: true } } }) +usePlatformSiteQuery({ id: '', selection: { fields: { activeCommitId: true, bucketId: true, createdAt: true, createdByPrincipal: true, description: true, id: true, installationId: true, installationMemberSlug: true, isPublished: true, name: true, resourceId: true, title: true, updatedAt: true, updatedByPrincipal: true } } }) useCreatePlatformSiteMutation({ selection: { fields: { id: true } } }) useUpdatePlatformSiteMutation({ selection: { fields: { id: true } } }) useDeletePlatformSiteMutation({}) @@ -20,7 +20,7 @@ useDeletePlatformSiteMutation({}) ```typescript const { data, isLoading } = usePlatformSitesQuery({ - selection: { fields: { activeCommitId: true, bucketId: true, createdAt: true, description: true, id: true, installationId: true, installationMemberSlug: true, isPublished: true, name: true, resourceId: true, title: true, updatedAt: true } }, + selection: { fields: { activeCommitId: true, bucketId: true, createdAt: true, createdByPrincipal: true, description: true, id: true, installationId: true, installationMemberSlug: true, isPublished: true, name: true, resourceId: true, title: true, updatedAt: true, updatedByPrincipal: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = usePlatformSitesQuery({ const { mutate } = useCreatePlatformSiteMutation({ selection: { fields: { id: true } }, }); -mutate({ activeCommitId: '', bucketId: '', description: '', installationId: '', installationMemberSlug: '', isPublished: '', name: '', resourceId: '', title: '' }); +mutate({ activeCommitId: '', bucketId: '', createdByPrincipal: '', description: '', installationId: '', installationMemberSlug: '', isPublished: '', name: '', resourceId: '', title: '', updatedByPrincipal: '' }); ``` diff --git a/.agents/skills/hooks-api/references/platform-sites-deep-link-url.md b/.agents/skills/hooks-api/references/platform-sites-deep-link-url.md new file mode 100644 index 0000000000..81c9903222 --- /dev/null +++ b/.agents/skills/hooks-api/references/platform-sites-deep-link-url.md @@ -0,0 +1,19 @@ +# platformSitesDeepLinkUrl + + + +React Query query hook for platformSitesDeepLinkUrl + +## Usage + +```typescript +usePlatformSitesDeepLinkUrlQuery({ linkSlug: '', targetSiteId: '' }) +``` + +## Examples + +### Use usePlatformSitesDeepLinkUrlQuery + +```typescript +const { data, isLoading } = usePlatformSitesDeepLinkUrlQuery({ linkSlug: '', targetSiteId: '' }); +``` diff --git a/.agents/skills/hooks-api/references/platform-sites-install-content-preset.md b/.agents/skills/hooks-api/references/platform-sites-install-content-preset.md new file mode 100644 index 0000000000..5adcb8c593 --- /dev/null +++ b/.agents/skills/hooks-api/references/platform-sites-install-content-preset.md @@ -0,0 +1,20 @@ +# platformSitesInstallContentPreset + + + +React Query mutation hook for platformSitesInstallContentPreset + +## Usage + +```typescript +const { mutate } = usePlatformSitesInstallContentPresetMutation(); mutate({ input: { entityId: '', presetKind: '', presetSlug: '', siteId: '' } }); +``` + +## Examples + +### Use usePlatformSitesInstallContentPresetMutation + +```typescript +const { mutate, isLoading } = usePlatformSitesInstallContentPresetMutation(); +mutate({ input: { entityId: '', presetKind: '', presetSlug: '', siteId: '' } }); +``` diff --git a/.agents/skills/hooks-api/references/platform-sites-install-mantra.md b/.agents/skills/hooks-api/references/platform-sites-install-mantra.md new file mode 100644 index 0000000000..93a0d430a2 --- /dev/null +++ b/.agents/skills/hooks-api/references/platform-sites-install-mantra.md @@ -0,0 +1,20 @@ +# platformSitesInstallMantra + + + +React Query mutation hook for platformSitesInstallMantra + +## Usage + +```typescript +const { mutate } = usePlatformSitesInstallMantraMutation(); mutate({ input: { entityId: '', routePreset: '', siteId: '' } }); +``` + +## Examples + +### Use usePlatformSitesInstallMantraMutation + +```typescript +const { mutate, isLoading } = usePlatformSitesInstallMantraMutation(); +mutate({ input: { entityId: '', routePreset: '', siteId: '' } }); +``` diff --git a/.agents/skills/hooks-api/references/platform-sites-site-origin.md b/.agents/skills/hooks-api/references/platform-sites-site-origin.md new file mode 100644 index 0000000000..cbed7284dd --- /dev/null +++ b/.agents/skills/hooks-api/references/platform-sites-site-origin.md @@ -0,0 +1,19 @@ +# platformSitesSiteOrigin + + + +React Query query hook for platformSitesSiteOrigin + +## Usage + +```typescript +usePlatformSitesSiteOriginQuery({ targetSiteId: '' }) +``` + +## Examples + +### Use usePlatformSitesSiteOriginQuery + +```typescript +const { data, isLoading } = usePlatformSitesSiteOriginQuery({ targetSiteId: '' }); +``` diff --git a/.agents/skills/hooks-api/references/platform-verify-site-preview-token.md b/.agents/skills/hooks-api/references/platform-verify-site-preview-token.md new file mode 100644 index 0000000000..5a2031b773 --- /dev/null +++ b/.agents/skills/hooks-api/references/platform-verify-site-preview-token.md @@ -0,0 +1,19 @@ +# platformVerifySitePreviewToken + + + +React Query query hook for platformVerifySitePreviewToken + +## Usage + +```typescript +usePlatformVerifySitePreviewTokenQuery({ siteId: '', token: '' }) +``` + +## Examples + +### Use usePlatformVerifySitePreviewTokenQuery + +```typescript +const { data, isLoading } = usePlatformVerifySitePreviewTokenQuery({ siteId: '', token: '' }); +``` diff --git a/.agents/skills/hooks-api/references/policy.md b/.agents/skills/hooks-api/references/policy.md index 0db63c2ed1..a0500f5e0a 100644 --- a/.agents/skills/hooks-api/references/policy.md +++ b/.agents/skills/hooks-api/references/policy.md @@ -7,8 +7,8 @@ React Query hooks for Policy data operations ## Usage ```typescript -usePoliciesQuery({ selection: { fields: { category: true, createdAt: true, data: true, databaseId: true, derivedFromPolicyId: true, derivedFromTableId: true, disabled: true, granteeName: true, id: true, name: true, permissive: true, policyType: true, privilege: true, smartTags: true, tableId: true, tags: true, updatedAt: true, withCheck: true } } }) -usePolicyQuery({ id: '', selection: { fields: { category: true, createdAt: true, data: true, databaseId: true, derivedFromPolicyId: true, derivedFromTableId: true, disabled: true, granteeName: true, id: true, name: true, permissive: true, policyType: true, privilege: true, smartTags: true, tableId: true, tags: true, updatedAt: true, withCheck: true } } }) +usePoliciesQuery({ selection: { fields: { category: true, columnRefs: true, createdAt: true, data: true, databaseId: true, derivedFromPolicyId: true, derivedFromTableId: true, disabled: true, granteeName: true, id: true, name: true, permissive: true, policyType: true, privilege: true, smartTags: true, tableId: true, tags: true, updatedAt: true, withCheck: true } } }) +usePolicyQuery({ id: '', selection: { fields: { category: true, columnRefs: true, createdAt: true, data: true, databaseId: true, derivedFromPolicyId: true, derivedFromTableId: true, disabled: true, granteeName: true, id: true, name: true, permissive: true, policyType: true, privilege: true, smartTags: true, tableId: true, tags: true, updatedAt: true, withCheck: true } } }) useCreatePolicyMutation({ selection: { fields: { id: true } } }) useUpdatePolicyMutation({ selection: { fields: { id: true } } }) useDeletePolicyMutation({}) @@ -20,7 +20,7 @@ useDeletePolicyMutation({}) ```typescript const { data, isLoading } = usePoliciesQuery({ - selection: { fields: { category: true, createdAt: true, data: true, databaseId: true, derivedFromPolicyId: true, derivedFromTableId: true, disabled: true, granteeName: true, id: true, name: true, permissive: true, policyType: true, privilege: true, smartTags: true, tableId: true, tags: true, updatedAt: true, withCheck: true } }, + selection: { fields: { category: true, columnRefs: true, createdAt: true, data: true, databaseId: true, derivedFromPolicyId: true, derivedFromTableId: true, disabled: true, granteeName: true, id: true, name: true, permissive: true, policyType: true, privilege: true, smartTags: true, tableId: true, tags: true, updatedAt: true, withCheck: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = usePoliciesQuery({ const { mutate } = useCreatePolicyMutation({ selection: { fields: { id: true } }, }); -mutate({ category: '', data: '', databaseId: '', derivedFromPolicyId: '', derivedFromTableId: '', disabled: '', granteeName: '', name: '', permissive: '', policyType: '', privilege: '', smartTags: '', tableId: '', tags: '', withCheck: '' }); +mutate({ category: '', columnRefs: '', data: '', databaseId: '', derivedFromPolicyId: '', derivedFromTableId: '', disabled: '', granteeName: '', name: '', permissive: '', policyType: '', privilege: '', smartTags: '', tableId: '', tags: '', withCheck: '' }); ``` diff --git a/.agents/skills/hooks-api/references/provision-bucket.md b/.agents/skills/hooks-api/references/provision-bucket.md index e003fc5551..92740fefbd 100644 --- a/.agents/skills/hooks-api/references/provision-bucket.md +++ b/.agents/skills/hooks-api/references/provision-bucket.md @@ -2,10 +2,11 @@ -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. +Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. ## Usage diff --git a/.agents/skills/hooks-api/references/provision-site-preview.md b/.agents/skills/hooks-api/references/provision-site-preview.md new file mode 100644 index 0000000000..64866609d7 --- /dev/null +++ b/.agents/skills/hooks-api/references/provision-site-preview.md @@ -0,0 +1,20 @@ +# provisionSitePreview + + + +React Query mutation hook for provisionSitePreview + +## Usage + +```typescript +const { mutate } = useProvisionSitePreviewMutation(); mutate({ input: { apex: '', commitId: '', name: '', siteId: '' } }); +``` + +## Examples + +### Use useProvisionSitePreviewMutation + +```typescript +const { mutate, isLoading } = useProvisionSitePreviewMutation(); +mutate({ input: { apex: '', commitId: '', name: '', siteId: '' } }); +``` diff --git a/.agents/skills/hooks-api/references/redirect.md b/.agents/skills/hooks-api/references/redirect.md new file mode 100644 index 0000000000..33e79d26ce --- /dev/null +++ b/.agents/skills/hooks-api/references/redirect.md @@ -0,0 +1,34 @@ +# redirect + + + +Redirect targets a route can point at; the edge answers with a redirect status instead of a backend + +## Usage + +```typescript +useRedirectsQuery({ selection: { fields: { createdAt: true, databaseId: true, id: true, name: true, preservePath: true, preserveQuery: true, statusCode: true, toHost: true, toPath: true, updatedAt: true } } }) +useRedirectQuery({ id: '', selection: { fields: { createdAt: true, databaseId: true, id: true, name: true, preservePath: true, preserveQuery: true, statusCode: true, toHost: true, toPath: true, updatedAt: true } } }) +useCreateRedirectMutation({ selection: { fields: { id: true } } }) +useUpdateRedirectMutation({ selection: { fields: { id: true } } }) +useDeleteRedirectMutation({}) +``` + +## Examples + +### List all redirects + +```typescript +const { data, isLoading } = useRedirectsQuery({ + selection: { fields: { createdAt: true, databaseId: true, id: true, name: true, preservePath: true, preserveQuery: true, statusCode: true, toHost: true, toPath: true, updatedAt: true } }, +}); +``` + +### Create a redirect + +```typescript +const { mutate } = useCreateRedirectMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', name: '', preservePath: '', preserveQuery: '', statusCode: '', toHost: '', toPath: '' }); +``` diff --git a/.agents/skills/hooks-api/references/request-database.md b/.agents/skills/hooks-api/references/request-database.md index 987df6a1f0..76ae086018 100644 --- a/.agents/skills/hooks-api/references/request-database.md +++ b/.agents/skills/hooks-api/references/request-database.md @@ -4,11 +4,12 @@ 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. +Pass exactly one of preset_slug or modules. Pass organization_id to have the organization own the database from the start (the caller must be an owner of that organization); the requesting user is still the identity bootstrapped into the new database. Omit it for a personal database. 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); + SELECT * FROM metaschema_public.request_database('team_app', 'example.com', preset_slug := 'full', organization_id := '00000000-0000-0000-0000-000000000000'::uuid); ## Usage diff --git a/.agents/skills/hooks-api/references/route-binding.md b/.agents/skills/hooks-api/references/route-binding.md index ab284261aa..db7f993c14 100644 --- a/.agents/skills/hooks-api/references/route-binding.md +++ b/.agents/skills/hooks-api/references/route-binding.md @@ -7,8 +7,8 @@ Compiled route precedence index maintained by route sync triggers; carries typed ## Usage ```typescript -useRouteBindingsQuery({ selection: { fields: { domainId: true, id: true, isActive: true, method: true, path: true, priority: true, targetApiId: true, targetBucketId: true, targetFunctionId: true, targetServiceId: true, targetSiteId: true, updatedAt: true } } }) -useRouteBindingQuery({ id: '', selection: { fields: { domainId: true, id: true, isActive: true, method: true, path: true, priority: true, targetApiId: true, targetBucketId: true, targetFunctionId: true, targetServiceId: true, targetSiteId: true, updatedAt: true } } }) +useRouteBindingsQuery({ selection: { fields: { domainId: true, id: true, isActive: true, method: true, path: true, priority: true, servingSiteId: true, targetApiId: true, targetBucketId: true, targetFunctionId: true, targetRedirectId: true, targetServiceId: true, targetSiteId: true, updatedAt: true } } }) +useRouteBindingQuery({ id: '', selection: { fields: { domainId: true, id: true, isActive: true, method: true, path: true, priority: true, servingSiteId: true, targetApiId: true, targetBucketId: true, targetFunctionId: true, targetRedirectId: true, targetServiceId: true, targetSiteId: true, updatedAt: true } } }) useCreateRouteBindingMutation({ selection: { fields: { id: true } } }) useUpdateRouteBindingMutation({ selection: { fields: { id: true } } }) useDeleteRouteBindingMutation({}) @@ -20,7 +20,7 @@ useDeleteRouteBindingMutation({}) ```typescript const { data, isLoading } = useRouteBindingsQuery({ - selection: { fields: { domainId: true, id: true, isActive: true, method: true, path: true, priority: true, targetApiId: true, targetBucketId: true, targetFunctionId: true, targetServiceId: true, targetSiteId: true, updatedAt: true } }, + selection: { fields: { domainId: true, id: true, isActive: true, method: true, path: true, priority: true, servingSiteId: true, targetApiId: true, targetBucketId: true, targetFunctionId: true, targetRedirectId: true, targetServiceId: true, targetSiteId: true, updatedAt: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useRouteBindingsQuery({ const { mutate } = useCreateRouteBindingMutation({ selection: { fields: { id: true } }, }); -mutate({ domainId: '', isActive: '', method: '', path: '', priority: '', targetApiId: '', targetBucketId: '', targetFunctionId: '', targetServiceId: '', targetSiteId: '' }); +mutate({ domainId: '', isActive: '', method: '', path: '', priority: '', servingSiteId: '', targetApiId: '', targetBucketId: '', targetFunctionId: '', targetRedirectId: '', targetServiceId: '', targetSiteId: '' }); ``` diff --git a/.agents/skills/hooks-api/references/route.md b/.agents/skills/hooks-api/references/route.md index 64340496ea..7177999a9f 100644 --- a/.agents/skills/hooks-api/references/route.md +++ b/.agents/skills/hooks-api/references/route.md @@ -7,8 +7,8 @@ Routes binding a domain hostname and path to a typed catalog target ## Usage ```typescript -useRoutesQuery({ selection: { fields: { config: true, createdAt: true, databaseId: true, domainId: true, id: true, isActive: true, method: true, path: true, priority: true, targetApiId: true, targetBucketId: true, targetFunctionId: true, targetServiceId: true, targetSiteId: true, updatedAt: true } } }) -useRouteQuery({ id: '', selection: { fields: { config: true, createdAt: true, databaseId: true, domainId: true, id: true, isActive: true, method: true, path: true, priority: true, targetApiId: true, targetBucketId: true, targetFunctionId: true, targetServiceId: true, targetSiteId: true, updatedAt: true } } }) +useRoutesQuery({ selection: { fields: { anonymous: true, config: true, createdAt: true, databaseId: true, domainId: true, id: true, isActive: true, method: true, path: true, previewRef: true, priority: true, servingSiteId: true, targetApiId: true, targetBucketId: true, targetFunctionId: true, targetRedirectId: true, targetServiceId: true, targetSiteId: true, updatedAt: true } } }) +useRouteQuery({ id: '', selection: { fields: { anonymous: true, config: true, createdAt: true, databaseId: true, domainId: true, id: true, isActive: true, method: true, path: true, previewRef: true, priority: true, servingSiteId: true, targetApiId: true, targetBucketId: true, targetFunctionId: true, targetRedirectId: true, targetServiceId: true, targetSiteId: true, updatedAt: true } } }) useCreateRouteMutation({ selection: { fields: { id: true } } }) useUpdateRouteMutation({ selection: { fields: { id: true } } }) useDeleteRouteMutation({}) @@ -20,7 +20,7 @@ useDeleteRouteMutation({}) ```typescript const { data, isLoading } = useRoutesQuery({ - selection: { fields: { config: true, createdAt: true, databaseId: true, domainId: true, id: true, isActive: true, method: true, path: true, priority: true, targetApiId: true, targetBucketId: true, targetFunctionId: true, targetServiceId: true, targetSiteId: true, updatedAt: true } }, + selection: { fields: { anonymous: true, config: true, createdAt: true, databaseId: true, domainId: true, id: true, isActive: true, method: true, path: true, previewRef: true, priority: true, servingSiteId: true, targetApiId: true, targetBucketId: true, targetFunctionId: true, targetRedirectId: true, targetServiceId: true, targetSiteId: true, updatedAt: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useRoutesQuery({ const { mutate } = useCreateRouteMutation({ selection: { fields: { id: true } }, }); -mutate({ config: '', databaseId: '', domainId: '', isActive: '', method: '', path: '', priority: '', targetApiId: '', targetBucketId: '', targetFunctionId: '', targetServiceId: '', targetSiteId: '' }); +mutate({ anonymous: '', config: '', databaseId: '', domainId: '', isActive: '', method: '', path: '', previewRef: '', priority: '', servingSiteId: '', targetApiId: '', targetBucketId: '', targetFunctionId: '', targetRedirectId: '', targetServiceId: '', targetSiteId: '' }); ``` diff --git a/.agents/skills/hooks-api/references/set-site-preview.md b/.agents/skills/hooks-api/references/set-site-preview.md new file mode 100644 index 0000000000..ef8a18d5d3 --- /dev/null +++ b/.agents/skills/hooks-api/references/set-site-preview.md @@ -0,0 +1,20 @@ +# setSitePreview + + + +React Query mutation hook for setSitePreview + +## Usage + +```typescript +const { mutate } = useSetSitePreviewMutation(); mutate({ input: { targetCommitId: '', targetName: '', targetSiteId: '' } }); +``` + +## Examples + +### Use useSetSitePreviewMutation + +```typescript +const { mutate, isLoading } = useSetSitePreviewMutation(); +mutate({ input: { targetCommitId: '', targetName: '', targetSiteId: '' } }); +``` diff --git a/.agents/skills/hooks-api/references/site-app-link.md b/.agents/skills/hooks-api/references/site-app-link.md index 11a1147ddc..8b5634aed5 100644 --- a/.agents/skills/hooks-api/references/site-app-link.md +++ b/.agents/skills/hooks-api/references/site-app-link.md @@ -2,13 +2,13 @@ -Native-app deep-link association metadata for a site surface (feeds AASA / assetlinks.json generation) +Per-host native-app association for a site surface: which app-owned store identity this host serves, and the path patterns it claims (joined with the store identity to render AASA / assetlinks.json) ## Usage ```typescript -useSiteAppLinksQuery({ selection: { fields: { appIdentifier: true, createdAt: true, databaseId: true, id: true, pathComponents: true, platform: true, sha256CertFingerprints: true, siteId: true, storeUrl: true, teamId: true, updatedAt: true, webcredentials: true } } }) -useSiteAppLinkQuery({ id: '', selection: { fields: { appIdentifier: true, createdAt: true, databaseId: true, id: true, pathComponents: true, platform: true, sha256CertFingerprints: true, siteId: true, storeUrl: true, teamId: true, updatedAt: true, webcredentials: true } } }) +useSiteAppLinksQuery({ selection: { fields: { appStoreIdentityId: true, createdAt: true, databaseId: true, id: true, pathComponents: true, siteId: true, updatedAt: true, webcredentials: true } } }) +useSiteAppLinkQuery({ id: '', selection: { fields: { appStoreIdentityId: true, createdAt: true, databaseId: true, id: true, pathComponents: true, siteId: true, updatedAt: true, webcredentials: true } } }) useCreateSiteAppLinkMutation({ selection: { fields: { id: true } } }) useUpdateSiteAppLinkMutation({ selection: { fields: { id: true } } }) useDeleteSiteAppLinkMutation({}) @@ -20,7 +20,7 @@ useDeleteSiteAppLinkMutation({}) ```typescript const { data, isLoading } = useSiteAppLinksQuery({ - selection: { fields: { appIdentifier: true, createdAt: true, databaseId: true, id: true, pathComponents: true, platform: true, sha256CertFingerprints: true, siteId: true, storeUrl: true, teamId: true, updatedAt: true, webcredentials: true } }, + selection: { fields: { appStoreIdentityId: true, createdAt: true, databaseId: true, id: true, pathComponents: true, siteId: true, updatedAt: true, webcredentials: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useSiteAppLinksQuery({ const { mutate } = useCreateSiteAppLinkMutation({ selection: { fields: { id: true } }, }); -mutate({ appIdentifier: '', databaseId: '', pathComponents: '', platform: '', sha256CertFingerprints: '', siteId: '', storeUrl: '', teamId: '', webcredentials: '' }); +mutate({ appStoreIdentityId: '', databaseId: '', pathComponents: '', siteId: '', webcredentials: '' }); ``` diff --git a/.agents/skills/hooks-api/references/site-deep-link.md b/.agents/skills/hooks-api/references/site-deep-link.md index 2883e4aca4..3bb8b3eee7 100644 --- a/.agents/skills/hooks-api/references/site-deep-link.md +++ b/.agents/skills/hooks-api/references/site-deep-link.md @@ -7,8 +7,8 @@ Named, retargetable deep links owned by a site surface (served at the deep-link ## Usage ```typescript -useSiteDeepLinksQuery({ selection: { fields: { appPath: true, createdAt: true, databaseId: true, fallbackUrl: true, id: true, metadata: true, siteId: true, slug: true, updatedAt: true, webPath: true } } }) -useSiteDeepLinkQuery({ id: '', selection: { fields: { appPath: true, createdAt: true, databaseId: true, fallbackUrl: true, id: true, metadata: true, siteId: true, slug: true, updatedAt: true, webPath: true } } }) +useSiteDeepLinksQuery({ selection: { fields: { appPath: true, createdAt: true, databaseId: true, fallbackUrl: true, id: true, metadata: true, pageId: true, siteId: true, slug: true, updatedAt: true, webPath: true } } }) +useSiteDeepLinkQuery({ id: '', selection: { fields: { appPath: true, createdAt: true, databaseId: true, fallbackUrl: true, id: true, metadata: true, pageId: true, siteId: true, slug: true, updatedAt: true, webPath: true } } }) useCreateSiteDeepLinkMutation({ selection: { fields: { id: true } } }) useUpdateSiteDeepLinkMutation({ selection: { fields: { id: true } } }) useDeleteSiteDeepLinkMutation({}) @@ -20,7 +20,7 @@ useDeleteSiteDeepLinkMutation({}) ```typescript const { data, isLoading } = useSiteDeepLinksQuery({ - selection: { fields: { appPath: true, createdAt: true, databaseId: true, fallbackUrl: true, id: true, metadata: true, siteId: true, slug: true, updatedAt: true, webPath: true } }, + selection: { fields: { appPath: true, createdAt: true, databaseId: true, fallbackUrl: true, id: true, metadata: true, pageId: true, siteId: true, slug: true, updatedAt: true, webPath: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useSiteDeepLinksQuery({ const { mutate } = useCreateSiteDeepLinkMutation({ selection: { fields: { id: true } }, }); -mutate({ appPath: '', databaseId: '', fallbackUrl: '', metadata: '', siteId: '', slug: '', webPath: '' }); +mutate({ appPath: '', databaseId: '', fallbackUrl: '', metadata: '', pageId: '', siteId: '', slug: '', webPath: '' }); ``` diff --git a/.agents/skills/hooks-api/references/site-metadata-install-robots.md b/.agents/skills/hooks-api/references/site-metadata-install-robots.md new file mode 100644 index 0000000000..f54cf95285 --- /dev/null +++ b/.agents/skills/hooks-api/references/site-metadata-install-robots.md @@ -0,0 +1,20 @@ +# siteMetadataInstallRobots + + + +React Query mutation hook for siteMetadataInstallRobots + +## Usage + +```typescript +const { mutate } = useSiteMetadataInstallRobotsMutation(); mutate({ input: { entityId: '', robotsPreset: '', siteId: '' } }); +``` + +## Examples + +### Use useSiteMetadataInstallRobotsMutation + +```typescript +const { mutate, isLoading } = useSiteMetadataInstallRobotsMutation(); +mutate({ input: { entityId: '', robotsPreset: '', siteId: '' } }); +``` diff --git a/.agents/skills/hooks-api/references/site-metadatum.md b/.agents/skills/hooks-api/references/site-metadatum.md index ed43596b9b..55ebc82b21 100644 --- a/.agents/skills/hooks-api/references/site-metadatum.md +++ b/.agents/skills/hooks-api/references/site-metadatum.md @@ -7,8 +7,8 @@ SEO and social sharing metadata for a site surface ## Usage ```typescript -useSiteMetadataQuery({ selection: { fields: { appleTouchIcon: true, canonicalUrl: true, commitId: true, createdAt: true, databaseId: true, description: true, favicon: true, id: true, logo: true, ogImage: true, robots: true, siteId: true, storeId: true, title: true, updatedAt: true } } }) -useSiteMetadatumQuery({ id: '', selection: { fields: { appleTouchIcon: true, canonicalUrl: true, commitId: true, createdAt: true, databaseId: true, description: true, favicon: true, id: true, logo: true, ogImage: true, robots: true, siteId: true, storeId: true, title: true, updatedAt: true } } }) +useSiteMetadataQuery({ selection: { fields: { appleTouchIcon: true, canonicalUrl: true, commitId: true, createdAt: true, databaseId: true, description: true, favicon: true, id: true, logo: true, ogImage: true, robots: true, robotsSeededFrom: true, siteId: true, storeId: true, title: true, updatedAt: true } } }) +useSiteMetadatumQuery({ id: '', selection: { fields: { appleTouchIcon: true, canonicalUrl: true, commitId: true, createdAt: true, databaseId: true, description: true, favicon: true, id: true, logo: true, ogImage: true, robots: true, robotsSeededFrom: true, siteId: true, storeId: true, title: true, updatedAt: true } } }) useCreateSiteMetadatumMutation({ selection: { fields: { id: true } } }) useUpdateSiteMetadatumMutation({ selection: { fields: { id: true } } }) useDeleteSiteMetadatumMutation({}) @@ -20,7 +20,7 @@ useDeleteSiteMetadatumMutation({}) ```typescript const { data, isLoading } = useSiteMetadataQuery({ - selection: { fields: { appleTouchIcon: true, canonicalUrl: true, commitId: true, createdAt: true, databaseId: true, description: true, favicon: true, id: true, logo: true, ogImage: true, robots: true, siteId: true, storeId: true, title: true, updatedAt: true } }, + selection: { fields: { appleTouchIcon: true, canonicalUrl: true, commitId: true, createdAt: true, databaseId: true, description: true, favicon: true, id: true, logo: true, ogImage: true, robots: true, robotsSeededFrom: true, siteId: true, storeId: true, title: true, updatedAt: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useSiteMetadataQuery({ const { mutate } = useCreateSiteMetadatumMutation({ selection: { fields: { id: true } }, }); -mutate({ appleTouchIcon: '', canonicalUrl: '', commitId: '', databaseId: '', description: '', favicon: '', logo: '', ogImage: '', robots: '', siteId: '', storeId: '', title: '' }); +mutate({ appleTouchIcon: '', canonicalUrl: '', commitId: '', databaseId: '', description: '', favicon: '', logo: '', ogImage: '', robots: '', robotsSeededFrom: '', siteId: '', storeId: '', title: '' }); ``` diff --git a/.agents/skills/hooks-api/references/site-release.md b/.agents/skills/hooks-api/references/site-release.md new file mode 100644 index 0000000000..dc19021247 --- /dev/null +++ b/.agents/skills/hooks-api/references/site-release.md @@ -0,0 +1,34 @@ +# siteRelease + + + +Immutable static-site release manifest head, versioned in the site-owned merkle store + +## Usage + +```typescript +useSiteReleasesQuery({ selection: { fields: { commitId: true, createdAt: true, databaseId: true, id: true, manifest: true, siteId: true, storeId: true, updatedAt: true } } }) +useSiteReleaseQuery({ id: '', selection: { fields: { commitId: true, createdAt: true, databaseId: true, id: true, manifest: true, siteId: true, storeId: true, updatedAt: true } } }) +useCreateSiteReleaseMutation({ selection: { fields: { id: true } } }) +useUpdateSiteReleaseMutation({ selection: { fields: { id: true } } }) +useDeleteSiteReleaseMutation({}) +``` + +## Examples + +### List all siteReleases + +```typescript +const { data, isLoading } = useSiteReleasesQuery({ + selection: { fields: { commitId: true, createdAt: true, databaseId: true, id: true, manifest: true, siteId: true, storeId: true, updatedAt: true } }, +}); +``` + +### Create a siteRelease + +```typescript +const { mutate } = useCreateSiteReleaseMutation({ + selection: { fields: { id: true } }, +}); +mutate({ commitId: '', databaseId: '', manifest: '', siteId: '', storeId: '' }); +``` diff --git a/.agents/skills/hooks-api/references/site.md b/.agents/skills/hooks-api/references/site.md index b009614a30..3d4597bffa 100644 --- a/.agents/skills/hooks-api/references/site.md +++ b/.agents/skills/hooks-api/references/site.md @@ -7,8 +7,8 @@ Site surfaces exposed by this scope; publication makes a surface bindable from o ## Usage ```typescript -useSitesQuery({ selection: { fields: { activeCommitId: true, bucketId: true, createdAt: true, databaseId: true, description: true, id: true, installationId: true, installationMemberSlug: true, isPublished: true, name: true, resourceId: true, title: true, updatedAt: true } } }) -useSiteQuery({ id: '', selection: { fields: { activeCommitId: true, bucketId: true, createdAt: true, databaseId: true, description: true, id: true, installationId: true, installationMemberSlug: true, isPublished: true, name: true, resourceId: true, title: true, updatedAt: true } } }) +useSitesQuery({ selection: { fields: { activeCommitId: true, bucketId: true, createdAt: true, createdByPrincipal: true, databaseId: true, description: true, id: true, installationId: true, installationMemberSlug: true, isPublished: true, name: true, resourceId: true, title: true, updatedAt: true, updatedByPrincipal: true } } }) +useSiteQuery({ id: '', selection: { fields: { activeCommitId: true, bucketId: true, createdAt: true, createdByPrincipal: true, databaseId: true, description: true, id: true, installationId: true, installationMemberSlug: true, isPublished: true, name: true, resourceId: true, title: true, updatedAt: true, updatedByPrincipal: true } } }) useCreateSiteMutation({ selection: { fields: { id: true } } }) useUpdateSiteMutation({ selection: { fields: { id: true } } }) useDeleteSiteMutation({}) @@ -20,7 +20,7 @@ useDeleteSiteMutation({}) ```typescript const { data, isLoading } = useSitesQuery({ - selection: { fields: { activeCommitId: true, bucketId: true, createdAt: true, databaseId: true, description: true, id: true, installationId: true, installationMemberSlug: true, isPublished: true, name: true, resourceId: true, title: true, updatedAt: true } }, + selection: { fields: { activeCommitId: true, bucketId: true, createdAt: true, createdByPrincipal: true, databaseId: true, description: true, id: true, installationId: true, installationMemberSlug: true, isPublished: true, name: true, resourceId: true, title: true, updatedAt: true, updatedByPrincipal: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useSitesQuery({ const { mutate } = useCreateSiteMutation({ selection: { fields: { id: true } }, }); -mutate({ activeCommitId: '', bucketId: '', databaseId: '', description: '', installationId: '', installationMemberSlug: '', isPublished: '', name: '', resourceId: '', title: '' }); +mutate({ activeCommitId: '', bucketId: '', createdByPrincipal: '', databaseId: '', description: '', installationId: '', installationMemberSlug: '', isPublished: '', name: '', resourceId: '', title: '', updatedByPrincipal: '' }); ``` diff --git a/.agents/skills/hooks-api/references/sites-deep-link-url.md b/.agents/skills/hooks-api/references/sites-deep-link-url.md new file mode 100644 index 0000000000..500882e415 --- /dev/null +++ b/.agents/skills/hooks-api/references/sites-deep-link-url.md @@ -0,0 +1,19 @@ +# sitesDeepLinkUrl + + + +React Query query hook for sitesDeepLinkUrl + +## Usage + +```typescript +useSitesDeepLinkUrlQuery({ linkSlug: '', targetSiteId: '' }) +``` + +## Examples + +### Use useSitesDeepLinkUrlQuery + +```typescript +const { data, isLoading } = useSitesDeepLinkUrlQuery({ linkSlug: '', targetSiteId: '' }); +``` diff --git a/.agents/skills/hooks-api/references/sites-install-content-preset.md b/.agents/skills/hooks-api/references/sites-install-content-preset.md new file mode 100644 index 0000000000..0daf6b5a89 --- /dev/null +++ b/.agents/skills/hooks-api/references/sites-install-content-preset.md @@ -0,0 +1,20 @@ +# sitesInstallContentPreset + + + +React Query mutation hook for sitesInstallContentPreset + +## Usage + +```typescript +const { mutate } = useSitesInstallContentPresetMutation(); mutate({ input: { entityId: '', presetKind: '', presetSlug: '', siteId: '' } }); +``` + +## Examples + +### Use useSitesInstallContentPresetMutation + +```typescript +const { mutate, isLoading } = useSitesInstallContentPresetMutation(); +mutate({ input: { entityId: '', presetKind: '', presetSlug: '', siteId: '' } }); +``` diff --git a/.agents/skills/hooks-api/references/sites-install-mantra.md b/.agents/skills/hooks-api/references/sites-install-mantra.md new file mode 100644 index 0000000000..b2a53c286e --- /dev/null +++ b/.agents/skills/hooks-api/references/sites-install-mantra.md @@ -0,0 +1,20 @@ +# sitesInstallMantra + + + +React Query mutation hook for sitesInstallMantra + +## Usage + +```typescript +const { mutate } = useSitesInstallMantraMutation(); mutate({ input: { entityId: '', routePreset: '', siteId: '' } }); +``` + +## Examples + +### Use useSitesInstallMantraMutation + +```typescript +const { mutate, isLoading } = useSitesInstallMantraMutation(); +mutate({ input: { entityId: '', routePreset: '', siteId: '' } }); +``` diff --git a/.agents/skills/hooks-api/references/sites-site-origin.md b/.agents/skills/hooks-api/references/sites-site-origin.md new file mode 100644 index 0000000000..048032594f --- /dev/null +++ b/.agents/skills/hooks-api/references/sites-site-origin.md @@ -0,0 +1,19 @@ +# sitesSiteOrigin + + + +React Query query hook for sitesSiteOrigin + +## Usage + +```typescript +useSitesSiteOriginQuery({ targetSiteId: '' }) +``` + +## Examples + +### Use useSitesSiteOriginQuery + +```typescript +const { data, isLoading } = useSitesSiteOriginQuery({ targetSiteId: '' }); +``` diff --git a/.agents/skills/hooks-api/references/trigger.md b/.agents/skills/hooks-api/references/trigger.md index 6df65f7c5f..bdd9e69b85 100644 --- a/.agents/skills/hooks-api/references/trigger.md +++ b/.agents/skills/hooks-api/references/trigger.md @@ -7,8 +7,8 @@ React Query hooks for Trigger data operations ## Usage ```typescript -useTriggersQuery({ selection: { fields: { category: true, createdAt: true, databaseId: true, event: true, functionName: true, id: true, name: true, smartTags: true, tableId: true, tags: true, updatedAt: true } } }) -useTriggerQuery({ id: '', selection: { fields: { category: true, createdAt: true, databaseId: true, event: true, functionName: true, id: true, name: true, smartTags: true, tableId: true, tags: true, updatedAt: true } } }) +useTriggersQuery({ selection: { fields: { category: true, createdAt: true, databaseId: true, event: true, events: true, forEachRow: true, functionId: true, functionName: true, id: true, kind: true, name: true, smartTags: true, tableId: true, tags: true, timing: true, updatedAt: true, whenAst: true } } }) +useTriggerQuery({ id: '', selection: { fields: { category: true, createdAt: true, databaseId: true, event: true, events: true, forEachRow: true, functionId: true, functionName: true, id: true, kind: true, name: true, smartTags: true, tableId: true, tags: true, timing: true, updatedAt: true, whenAst: true } } }) useCreateTriggerMutation({ selection: { fields: { id: true } } }) useUpdateTriggerMutation({ selection: { fields: { id: true } } }) useDeleteTriggerMutation({}) @@ -20,7 +20,7 @@ useDeleteTriggerMutation({}) ```typescript const { data, isLoading } = useTriggersQuery({ - selection: { fields: { category: true, createdAt: true, databaseId: true, event: true, functionName: true, id: true, name: true, smartTags: true, tableId: true, tags: true, updatedAt: true } }, + selection: { fields: { category: true, createdAt: true, databaseId: true, event: true, events: true, forEachRow: true, functionId: true, functionName: true, id: true, kind: true, name: true, smartTags: true, tableId: true, tags: true, timing: true, updatedAt: true, whenAst: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useTriggersQuery({ const { mutate } = useCreateTriggerMutation({ selection: { fields: { id: true } }, }); -mutate({ category: '', databaseId: '', event: '', functionName: '', name: '', smartTags: '', tableId: '', tags: '' }); +mutate({ category: '', databaseId: '', event: '', events: '', forEachRow: '', functionId: '', functionName: '', kind: '', name: '', smartTags: '', tableId: '', tags: '', timing: '', whenAst: '' }); ``` diff --git a/.agents/skills/hooks-api/references/verify-site-preview-token.md b/.agents/skills/hooks-api/references/verify-site-preview-token.md new file mode 100644 index 0000000000..9d8e6e6ed1 --- /dev/null +++ b/.agents/skills/hooks-api/references/verify-site-preview-token.md @@ -0,0 +1,19 @@ +# verifySitePreviewToken + + + +React Query query hook for verifySitePreviewToken + +## Usage + +```typescript +useVerifySitePreviewTokenQuery({ siteId: '', token: '' }) +``` + +## Examples + +### Use useVerifySitePreviewTokenQuery + +```typescript +const { data, isLoading } = useVerifySitePreviewTokenQuery({ siteId: '', token: '' }); +``` diff --git a/.agents/skills/hooks-auth/SKILL.md b/.agents/skills/hooks-auth/SKILL.md index 3bf7851dd2..ca555a7f04 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 37 custom operations +description: React Query hooks for the auth API — provides typed query and mutation hooks for 15 tables and 55 custom operations --- # hooks-auth -React Query hooks for the auth API — provides typed query and mutation hooks for 13 tables and 37 custom operations +React Query hooks for the auth API — provides typed query and mutation hooks for 15 tables and 55 custom operations ## Usage @@ -50,25 +50,42 @@ See the `references/` directory for detailed per-entity API documentation: - [role-type](references/role-type.md) - [user-connected-account](references/user-connected-account.md) - [user](references/user.md) +- [user-setting](references/user-setting.md) +- [user-settings-security](references/user-settings-security.md) - [webauthn-credential](references/webauthn-credential.md) - [current-ip-address](references/current-ip-address.md) - [current-user](references/current-user.md) - [current-user-agent](references/current-user-agent.md) - [current-user-id](references/current-user-id.md) +- [get-mfa-status](references/get-mfa-status.md) - [require-step-up](references/require-step-up.md) +- [approve-device](references/approve-device.md) - [check-password](references/check-password.md) +- [complete-mfa-challenge](references/complete-mfa-challenge.md) - [confirm-delete-account](references/confirm-delete-account.md) +- [confirm-totp-setup](references/confirm-totp-setup.md) - [create-api-key](references/create-api-key.md) +- [create-child-principal](references/create-child-principal.md) - [create-org-api-key](references/create-org-api-key.md) - [create-org-principal](references/create-org-principal.md) +- [create-principal-from-preset](references/create-principal-from-preset.md) - [delete-org-principal](references/delete-org-principal.md) - [delete-principal](references/delete-principal.md) +- [disable-email-mfa](references/disable-email-mfa.md) +- [disable-sms-mfa](references/disable-sms-mfa.md) +- [disable-totp](references/disable-totp.md) - [disconnect-account](references/disconnect-account.md) +- [enable-email-mfa](references/enable-email-mfa.md) +- [enable-sms-mfa](references/enable-sms-mfa.md) +- [enable-totp](references/enable-totp.md) - [extend-token-expires](references/extend-token-expires.md) - [forgot-password](references/forgot-password.md) +- [generate-backup-codes](references/generate-backup-codes.md) - [link-identity](references/link-identity.md) +- [mint-access-token](references/mint-access-token.md) - [provision-bucket](references/provision-bucket.md) - [provision-new-user](references/provision-new-user.md) +- [refresh-access-token](references/refresh-access-token.md) - [request-cross-origin-token](references/request-cross-origin-token.md) - [reset-password](references/reset-password.md) - [revoke-api-key](references/revoke-api-key.md) @@ -77,6 +94,8 @@ See the `references/` directory for detailed per-entity API documentation: - [send-account-deletion-email](references/send-account-deletion-email.md) - [send-verification-email](references/send-verification-email.md) - [set-password](references/set-password.md) +- [set-principal-entities](references/set-principal-entities.md) +- [set-principal-scope](references/set-principal-scope.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) @@ -85,6 +104,7 @@ See the `references/` directory for detailed per-entity API documentation: - [sign-up](references/sign-up.md) - [sign-up-magic-link](references/sign-up-magic-link.md) - [sign-up-sms](references/sign-up-sms.md) +- [update-principal](references/update-principal.md) - [verify-email](references/verify-email.md) - [verify-password](references/verify-password.md) - [verify-totp](references/verify-totp.md) diff --git a/.agents/skills/hooks-auth/references/approve-device.md b/.agents/skills/hooks-auth/references/approve-device.md new file mode 100644 index 0000000000..c78466536e --- /dev/null +++ b/.agents/skills/hooks-auth/references/approve-device.md @@ -0,0 +1,20 @@ +# approveDevice + + + +React Query mutation hook for approveDevice + +## Usage + +```typescript +const { mutate } = useApproveDeviceMutation(); mutate({ input: { approvalToken: '' } }); +``` + +## Examples + +### Use useApproveDeviceMutation + +```typescript +const { mutate, isLoading } = useApproveDeviceMutation(); +mutate({ input: { approvalToken: '' } }); +``` diff --git a/.agents/skills/hooks-auth/references/audit-log-auth.md b/.agents/skills/hooks-auth/references/audit-log-auth.md index 53f46efe3c..918bfad80c 100644 --- a/.agents/skills/hooks-auth/references/audit-log-auth.md +++ b/.agents/skills/hooks-auth/references/audit-log-auth.md @@ -7,8 +7,8 @@ Partitioned append-only audit log of authentication events (sign-in, sign-up, pa ## Usage ```typescript -useAuditLogAuthsQuery({ selection: { fields: { actorId: true, createdAt: true, event: true, id: true, ipAddress: true, origin: true, success: true, userAgent: true } } }) -useAuditLogAuthQuery({ id: '', selection: { fields: { actorId: true, createdAt: true, event: true, id: true, ipAddress: true, origin: true, success: true, userAgent: true } } }) +useAuditLogAuthsQuery({ selection: { fields: { actorId: true, createdAt: true, details: true, event: true, id: true, ipAddress: true, origin: true, success: true, userAgent: true } } }) +useAuditLogAuthQuery({ id: '', selection: { fields: { actorId: true, createdAt: true, details: true, event: true, id: true, ipAddress: true, origin: true, success: true, userAgent: true } } }) useCreateAuditLogAuthMutation({ selection: { fields: { id: true } } }) useUpdateAuditLogAuthMutation({ selection: { fields: { id: true } } }) useDeleteAuditLogAuthMutation({}) @@ -20,7 +20,7 @@ useDeleteAuditLogAuthMutation({}) ```typescript const { data, isLoading } = useAuditLogAuthsQuery({ - selection: { fields: { actorId: true, createdAt: true, event: true, id: true, ipAddress: true, origin: true, success: true, userAgent: true } }, + selection: { fields: { actorId: true, createdAt: true, details: true, event: true, id: true, ipAddress: true, origin: true, success: true, userAgent: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useAuditLogAuthsQuery({ const { mutate } = useCreateAuditLogAuthMutation({ selection: { fields: { id: true } }, }); -mutate({ actorId: '', event: '', ipAddress: '', origin: '', success: '', userAgent: '' }); +mutate({ actorId: '', details: '', event: '', ipAddress: '', origin: '', success: '', userAgent: '' }); ``` diff --git a/.agents/skills/hooks-auth/references/complete-mfa-challenge.md b/.agents/skills/hooks-auth/references/complete-mfa-challenge.md new file mode 100644 index 0000000000..6d94eaf1c2 --- /dev/null +++ b/.agents/skills/hooks-auth/references/complete-mfa-challenge.md @@ -0,0 +1,20 @@ +# completeMfaChallenge + + + +React Query mutation hook for completeMfaChallenge + +## Usage + +```typescript +const { mutate } = useCompleteMfaChallengeMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useCompleteMfaChallengeMutation + +```typescript +const { mutate, isLoading } = useCompleteMfaChallengeMutation(); +mutate({ input: '' }); +``` diff --git a/.agents/skills/hooks-auth/references/confirm-totp-setup.md b/.agents/skills/hooks-auth/references/confirm-totp-setup.md new file mode 100644 index 0000000000..94764f1af8 --- /dev/null +++ b/.agents/skills/hooks-auth/references/confirm-totp-setup.md @@ -0,0 +1,20 @@ +# confirmTotpSetup + + + +React Query mutation hook for confirmTotpSetup + +## Usage + +```typescript +const { mutate } = useConfirmTotpSetupMutation(); mutate({ input: { totpValue: '' } }); +``` + +## Examples + +### Use useConfirmTotpSetupMutation + +```typescript +const { mutate, isLoading } = useConfirmTotpSetupMutation(); +mutate({ input: { totpValue: '' } }); +``` diff --git a/.agents/skills/hooks-auth/references/create-child-principal.md b/.agents/skills/hooks-auth/references/create-child-principal.md new file mode 100644 index 0000000000..6093b28690 --- /dev/null +++ b/.agents/skills/hooks-auth/references/create-child-principal.md @@ -0,0 +1,20 @@ +# createChildPrincipal + + + +React Query mutation hook for createChildPrincipal + +## Usage + +```typescript +const { mutate } = useCreateChildPrincipalMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useCreateChildPrincipalMutation + +```typescript +const { mutate, isLoading } = useCreateChildPrincipalMutation(); +mutate({ input: '' }); +``` diff --git a/.agents/skills/hooks-auth/references/create-principal-from-preset.md b/.agents/skills/hooks-auth/references/create-principal-from-preset.md new file mode 100644 index 0000000000..1df7e23989 --- /dev/null +++ b/.agents/skills/hooks-auth/references/create-principal-from-preset.md @@ -0,0 +1,20 @@ +# createPrincipalFromPreset + + + +React Query mutation hook for createPrincipalFromPreset + +## Usage + +```typescript +const { mutate } = useCreatePrincipalFromPresetMutation(); mutate({ input: { entityIds: '', name: '', overrides: '', slug: '' } }); +``` + +## Examples + +### Use useCreatePrincipalFromPresetMutation + +```typescript +const { mutate, isLoading } = useCreatePrincipalFromPresetMutation(); +mutate({ input: { entityIds: '', name: '', overrides: '', slug: '' } }); +``` diff --git a/.agents/skills/hooks-auth/references/disable-email-mfa.md b/.agents/skills/hooks-auth/references/disable-email-mfa.md new file mode 100644 index 0000000000..6074eb2b33 --- /dev/null +++ b/.agents/skills/hooks-auth/references/disable-email-mfa.md @@ -0,0 +1,20 @@ +# disableEmailMfa + + + +React Query mutation hook for disableEmailMfa + +## Usage + +```typescript +const { mutate } = useDisableEmailMfaMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useDisableEmailMfaMutation + +```typescript +const { mutate, isLoading } = useDisableEmailMfaMutation(); +mutate({ input: '' }); +``` diff --git a/.agents/skills/hooks-auth/references/disable-sms-mfa.md b/.agents/skills/hooks-auth/references/disable-sms-mfa.md new file mode 100644 index 0000000000..2b053602da --- /dev/null +++ b/.agents/skills/hooks-auth/references/disable-sms-mfa.md @@ -0,0 +1,20 @@ +# disableSmsMfa + + + +React Query mutation hook for disableSmsMfa + +## Usage + +```typescript +const { mutate } = useDisableSmsMfaMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useDisableSmsMfaMutation + +```typescript +const { mutate, isLoading } = useDisableSmsMfaMutation(); +mutate({ input: '' }); +``` diff --git a/.agents/skills/hooks-auth/references/disable-totp.md b/.agents/skills/hooks-auth/references/disable-totp.md new file mode 100644 index 0000000000..1f8628bf07 --- /dev/null +++ b/.agents/skills/hooks-auth/references/disable-totp.md @@ -0,0 +1,20 @@ +# disableTotp + + + +React Query mutation hook for disableTotp + +## Usage + +```typescript +const { mutate } = useDisableTotpMutation(); mutate({ input: { totpValue: '' } }); +``` + +## Examples + +### Use useDisableTotpMutation + +```typescript +const { mutate, isLoading } = useDisableTotpMutation(); +mutate({ input: { totpValue: '' } }); +``` diff --git a/.agents/skills/hooks-auth/references/enable-email-mfa.md b/.agents/skills/hooks-auth/references/enable-email-mfa.md new file mode 100644 index 0000000000..8c15504bca --- /dev/null +++ b/.agents/skills/hooks-auth/references/enable-email-mfa.md @@ -0,0 +1,20 @@ +# enableEmailMfa + + + +React Query mutation hook for enableEmailMfa + +## Usage + +```typescript +const { mutate } = useEnableEmailMfaMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useEnableEmailMfaMutation + +```typescript +const { mutate, isLoading } = useEnableEmailMfaMutation(); +mutate({ input: '' }); +``` diff --git a/.agents/skills/hooks-auth/references/enable-sms-mfa.md b/.agents/skills/hooks-auth/references/enable-sms-mfa.md new file mode 100644 index 0000000000..8730eef710 --- /dev/null +++ b/.agents/skills/hooks-auth/references/enable-sms-mfa.md @@ -0,0 +1,20 @@ +# enableSmsMfa + + + +React Query mutation hook for enableSmsMfa + +## Usage + +```typescript +const { mutate } = useEnableSmsMfaMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useEnableSmsMfaMutation + +```typescript +const { mutate, isLoading } = useEnableSmsMfaMutation(); +mutate({ input: '' }); +``` diff --git a/.agents/skills/hooks-auth/references/enable-totp.md b/.agents/skills/hooks-auth/references/enable-totp.md new file mode 100644 index 0000000000..0e77f89433 --- /dev/null +++ b/.agents/skills/hooks-auth/references/enable-totp.md @@ -0,0 +1,20 @@ +# enableTotp + + + +React Query mutation hook for enableTotp + +## Usage + +```typescript +const { mutate } = useEnableTotpMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useEnableTotpMutation + +```typescript +const { mutate, isLoading } = useEnableTotpMutation(); +mutate({ input: '' }); +``` diff --git a/.agents/skills/hooks-auth/references/generate-backup-codes.md b/.agents/skills/hooks-auth/references/generate-backup-codes.md new file mode 100644 index 0000000000..6e0e834f32 --- /dev/null +++ b/.agents/skills/hooks-auth/references/generate-backup-codes.md @@ -0,0 +1,20 @@ +# generateBackupCodes + + + +React Query mutation hook for generateBackupCodes + +## Usage + +```typescript +const { mutate } = useGenerateBackupCodesMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useGenerateBackupCodesMutation + +```typescript +const { mutate, isLoading } = useGenerateBackupCodesMutation(); +mutate({ input: '' }); +``` diff --git a/.agents/skills/hooks-auth/references/get-mfa-status.md b/.agents/skills/hooks-auth/references/get-mfa-status.md new file mode 100644 index 0000000000..10ad643197 --- /dev/null +++ b/.agents/skills/hooks-auth/references/get-mfa-status.md @@ -0,0 +1,19 @@ +# getMfaStatus + + + +React Query query hook for getMfaStatus + +## Usage + +```typescript +useGetMfaStatusQuery() +``` + +## Examples + +### Use useGetMfaStatusQuery + +```typescript +const { data, isLoading } = useGetMfaStatusQuery(); +``` diff --git a/.agents/skills/hooks-auth/references/mint-access-token.md b/.agents/skills/hooks-auth/references/mint-access-token.md new file mode 100644 index 0000000000..a5c0bf38a4 --- /dev/null +++ b/.agents/skills/hooks-auth/references/mint-access-token.md @@ -0,0 +1,20 @@ +# mintAccessToken + + + +React Query mutation hook for mintAccessToken + +## Usage + +```typescript +const { mutate } = useMintAccessTokenMutation(); mutate({ input: { accessTtl: '', intent: '', principalId: '' } }); +``` + +## Examples + +### Use useMintAccessTokenMutation + +```typescript +const { mutate, isLoading } = useMintAccessTokenMutation(); +mutate({ input: { accessTtl: '', intent: '', principalId: '' } }); +``` diff --git a/.agents/skills/hooks-auth/references/principal.md b/.agents/skills/hooks-auth/references/principal.md index 66cf3aaafe..f6181126a1 100644 --- a/.agents/skills/hooks-auth/references/principal.md +++ b/.agents/skills/hooks-auth/references/principal.md @@ -7,8 +7,8 @@ Scoped sub-identities (API keys and agents) with precomputed SPRT ## Usage ```typescript -usePrincipalsQuery({ selection: { fields: { bypassStepUp: true, createdAt: true, id: true, isReadOnly: true, name: true, ownerId: true, updatedAt: true, useAdminOwner: true, userId: true } } }) -usePrincipalQuery({ principalId: '', selection: { fields: { bypassStepUp: true, createdAt: true, id: true, isReadOnly: true, name: true, ownerId: true, updatedAt: true, useAdminOwner: true, userId: true } } }) +usePrincipalsQuery({ selection: { fields: { bypassStepUp: true, createdAt: true, createdBySessionId: true, depth: true, expiresAt: true, id: true, isReadOnly: true, name: true, ownerId: true, parentPrincipalId: true, updatedAt: true, useAdminOwner: true, userId: true } } }) +usePrincipalQuery({ principalId: '', selection: { fields: { bypassStepUp: true, createdAt: true, createdBySessionId: true, depth: true, expiresAt: true, id: true, isReadOnly: true, name: true, ownerId: true, parentPrincipalId: true, updatedAt: true, useAdminOwner: true, userId: true } } }) useCreatePrincipalMutation({ selection: { fields: { principalId: true } } }) useUpdatePrincipalMutation({ selection: { fields: { principalId: true } } }) useDeletePrincipalMutation({}) @@ -20,7 +20,7 @@ useDeletePrincipalMutation({}) ```typescript const { data, isLoading } = usePrincipalsQuery({ - selection: { fields: { bypassStepUp: true, createdAt: true, id: true, isReadOnly: true, name: true, ownerId: true, updatedAt: true, useAdminOwner: true, userId: true } }, + selection: { fields: { bypassStepUp: true, createdAt: true, createdBySessionId: true, depth: true, expiresAt: true, id: true, isReadOnly: true, name: true, ownerId: true, parentPrincipalId: true, updatedAt: true, useAdminOwner: true, userId: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = usePrincipalsQuery({ const { mutate } = useCreatePrincipalMutation({ selection: { fields: { principalId: true } }, }); -mutate({ bypassStepUp: '', id: '', isReadOnly: '', name: '', ownerId: '', useAdminOwner: '', userId: '' }); +mutate({ bypassStepUp: '', createdBySessionId: '', depth: '', expiresAt: '', id: '', isReadOnly: '', name: '', ownerId: '', parentPrincipalId: '', useAdminOwner: '', userId: '' }); ``` diff --git a/.agents/skills/hooks-auth/references/provision-bucket.md b/.agents/skills/hooks-auth/references/provision-bucket.md index e003fc5551..92740fefbd 100644 --- a/.agents/skills/hooks-auth/references/provision-bucket.md +++ b/.agents/skills/hooks-auth/references/provision-bucket.md @@ -2,10 +2,11 @@ -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. +Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. ## Usage diff --git a/.agents/skills/hooks-auth/references/refresh-access-token.md b/.agents/skills/hooks-auth/references/refresh-access-token.md new file mode 100644 index 0000000000..a29324cff4 --- /dev/null +++ b/.agents/skills/hooks-auth/references/refresh-access-token.md @@ -0,0 +1,20 @@ +# refreshAccessToken + + + +React Query mutation hook for refreshAccessToken + +## Usage + +```typescript +const { mutate } = useRefreshAccessTokenMutation(); mutate({ input: { token: '' } }); +``` + +## Examples + +### Use useRefreshAccessTokenMutation + +```typescript +const { mutate, isLoading } = useRefreshAccessTokenMutation(); +mutate({ input: { token: '' } }); +``` diff --git a/.agents/skills/hooks-auth/references/set-principal-entities.md b/.agents/skills/hooks-auth/references/set-principal-entities.md new file mode 100644 index 0000000000..e67bf75bc2 --- /dev/null +++ b/.agents/skills/hooks-auth/references/set-principal-entities.md @@ -0,0 +1,20 @@ +# setPrincipalEntities + + + +React Query mutation hook for setPrincipalEntities + +## Usage + +```typescript +const { mutate } = useSetPrincipalEntitiesMutation(); mutate({ input: { entityIds: '', principalId: '' } }); +``` + +## Examples + +### Use useSetPrincipalEntitiesMutation + +```typescript +const { mutate, isLoading } = useSetPrincipalEntitiesMutation(); +mutate({ input: { entityIds: '', principalId: '' } }); +``` diff --git a/.agents/skills/hooks-auth/references/set-principal-scope.md b/.agents/skills/hooks-auth/references/set-principal-scope.md new file mode 100644 index 0000000000..9393ec3545 --- /dev/null +++ b/.agents/skills/hooks-auth/references/set-principal-scope.md @@ -0,0 +1,20 @@ +# setPrincipalScope + + + +React Query mutation hook for setPrincipalScope + +## Usage + +```typescript +const { mutate } = useSetPrincipalScopeMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useSetPrincipalScopeMutation + +```typescript +const { mutate, isLoading } = useSetPrincipalScopeMutation(); +mutate({ input: '' }); +``` diff --git a/.agents/skills/hooks-auth/references/update-principal.md b/.agents/skills/hooks-auth/references/update-principal.md new file mode 100644 index 0000000000..c0bda79159 --- /dev/null +++ b/.agents/skills/hooks-auth/references/update-principal.md @@ -0,0 +1,20 @@ +# updatePrincipal + + + +React Query mutation hook for updatePrincipal + +## Usage + +```typescript +const { mutate } = useUpdatePrincipalMutation(); mutate({ input: { bypassStepUp: '', isReadOnly: '', name: '', principalId: '', useAdminOwner: '' } }); +``` + +## Examples + +### Use useUpdatePrincipalMutation + +```typescript +const { mutate, isLoading } = useUpdatePrincipalMutation(); +mutate({ input: { bypassStepUp: '', isReadOnly: '', name: '', principalId: '', useAdminOwner: '' } }); +``` diff --git a/.agents/skills/hooks-auth/references/user-setting.md b/.agents/skills/hooks-auth/references/user-setting.md new file mode 100644 index 0000000000..a146f45e12 --- /dev/null +++ b/.agents/skills/hooks-auth/references/user-setting.md @@ -0,0 +1,34 @@ +# userSetting + + + +Per-user settings and preferences. Extended by other modules (i18n, notifications, MFA) via metaschema.create_field(). + +## Usage + +```typescript +useUserSettingsQuery({ selection: { fields: { createdAt: true, id: true, ownerId: true, updatedAt: true } } }) +useUserSettingQuery({ id: '', selection: { fields: { createdAt: true, id: true, ownerId: true, updatedAt: true } } }) +useCreateUserSettingMutation({ selection: { fields: { id: true } } }) +useUpdateUserSettingMutation({ selection: { fields: { id: true } } }) +useDeleteUserSettingMutation({}) +``` + +## Examples + +### List all userSettings + +```typescript +const { data, isLoading } = useUserSettingsQuery({ + selection: { fields: { createdAt: true, id: true, ownerId: true, updatedAt: true } }, +}); +``` + +### Create a userSetting + +```typescript +const { mutate } = useCreateUserSettingMutation({ + selection: { fields: { id: true } }, +}); +mutate({ ownerId: '' }); +``` diff --git a/.agents/skills/hooks-auth/references/user-settings-security.md b/.agents/skills/hooks-auth/references/user-settings-security.md new file mode 100644 index 0000000000..df84230ad1 --- /dev/null +++ b/.agents/skills/hooks-auth/references/user-settings-security.md @@ -0,0 +1,34 @@ +# userSettingsSecurity + + + +Per-user security settings for MFA configuration (separate from user_settings preferences) + +## Usage + +```typescript +useUserSettingsSecuritiesQuery({ selection: { fields: { backupCodesCount: true, createdAt: true, emailMfaEnabled: true, id: true, mfaEnrolledAt: true, mfaLastUsedAt: true, ownerId: true, smsMfaEnabled: true, totpEnabled: true, updatedAt: true } } }) +useUserSettingsSecurityQuery({ id: '', selection: { fields: { backupCodesCount: true, createdAt: true, emailMfaEnabled: true, id: true, mfaEnrolledAt: true, mfaLastUsedAt: true, ownerId: true, smsMfaEnabled: true, totpEnabled: true, updatedAt: true } } }) +useCreateUserSettingsSecurityMutation({ selection: { fields: { id: true } } }) +useUpdateUserSettingsSecurityMutation({ selection: { fields: { id: true } } }) +useDeleteUserSettingsSecurityMutation({}) +``` + +## Examples + +### List all userSettingsSecurities + +```typescript +const { data, isLoading } = useUserSettingsSecuritiesQuery({ + selection: { fields: { backupCodesCount: true, createdAt: true, emailMfaEnabled: true, id: true, mfaEnrolledAt: true, mfaLastUsedAt: true, ownerId: true, smsMfaEnabled: true, totpEnabled: true, updatedAt: true } }, +}); +``` + +### Create a userSettingsSecurity + +```typescript +const { mutate } = useCreateUserSettingsSecurityMutation({ + selection: { fields: { id: true } }, +}); +mutate({ backupCodesCount: '', emailMfaEnabled: '', mfaEnrolledAt: '', mfaLastUsedAt: '', ownerId: '', smsMfaEnabled: '', totpEnabled: '' }); +``` diff --git a/.agents/skills/hooks-compute/SKILL.md b/.agents/skills/hooks-compute/SKILL.md index d233091158..112f666ed7 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 70 tables and 38 custom operations +description: React Query hooks for the compute API — provides typed query and mutation hooks for 119 tables and 60 custom operations --- # hooks-compute -React Query hooks for the compute API — provides typed query and mutation hooks for 70 tables and 38 custom operations +React Query hooks for the compute API — provides typed query and mutation hooks for 119 tables and 60 custom operations ## Usage ```typescript // Import hooks -import { useContentPresetsQuery } from './hooks'; +import { useBuildsQuery } from './hooks'; // Query hooks: useQuery, usesQuery // Mutation hooks: useCreateMutation, useUpdateMutation, useDeleteMutation // Bulk mutation hooks (when enabled): useBulkCreateMutation, useBulkUpsertMutation, etc. -const { data, isLoading } = useContentPresetsQuery({ +const { data, isLoading } = useBuildsQuery({ selection: { fields: { id: true } }, }); ``` @@ -29,7 +29,7 @@ const { data, isLoading } = useContentPresetsQuery({ ### Query records ```typescript -const { data, isLoading } = useContentPresetsQuery({ +const { data, isLoading } = useBuildsQuery({ selection: { fields: { id: true } }, }); ``` @@ -38,7 +38,19 @@ const { data, isLoading } = useContentPresetsQuery({ See the `references/` directory for detailed per-entity API documentation: +- [build](references/build.md) +- [build-step](references/build-step.md) +- [builder-binding](references/builder-binding.md) - [content-preset](references/content-preset.md) +- [database-function-graph](references/database-function-graph.md) +- [database-function-graph-execution](references/database-function-graph-execution.md) +- [database-function-graph-execution-node-state](references/database-function-graph-execution-node-state.md) +- [database-function-graph-execution-output](references/database-function-graph-execution-output.md) +- [database-graph-commit](references/database-graph-commit.md) +- [database-graph-get-all-tree-nodes-record](references/database-graph-get-all-tree-nodes-record.md) +- [database-graph-object](references/database-graph-object.md) +- [database-graph-ref](references/database-graph-ref.md) +- [database-graph-store](references/database-graph-store.md) - [db-preset](references/db-preset.md) - [function-api-binding](references/function-api-binding.md) - [function-capability-binding](references/function-capability-binding.md) @@ -57,6 +69,8 @@ See the `references/` directory for detailed per-entity API documentation: - [function-invocation-attempt](references/function-invocation-attempt.md) - [function-invocation](references/function-invocation.md) - [get-all-tree-nodes-record](references/get-all-tree-nodes-record.md) +- [image](references/image.md) +- [image-grant](references/image-grant.md) - [infra-commit](references/infra-commit.md) - [infra-get-all-tree-nodes-record](references/infra-get-all-tree-nodes-record.md) - [infra-object](references/infra-object.md) @@ -65,6 +79,9 @@ See the `references/` directory for detailed per-entity API documentation: - [integration-provider](references/integration-provider.md) - [namespace](references/namespace.md) - [namespace-event](references/namespace-event.md) +- [platform-build](references/platform-build.md) +- [platform-build-step](references/platform-build-step.md) +- [platform-builder-binding](references/platform-builder-binding.md) - [platform-function-api-binding](references/platform-function-api-binding.md) - [platform-function-capability-binding](references/platform-function-capability-binding.md) - [platform-function-definition](references/platform-function-definition.md) @@ -73,18 +90,36 @@ See the `references/` directory for detailed per-entity API documentation: - [platform-function-execution-log](references/platform-function-execution-log.md) - [platform-function-invocation-attempt](references/platform-function-invocation-attempt.md) - [platform-function-invocation](references/platform-function-invocation.md) +- [platform-image](references/platform-image.md) +- [platform-image-grant](references/platform-image-grant.md) - [platform-infra-commit](references/platform-infra-commit.md) - [platform-infra-get-all-tree-nodes-record](references/platform-infra-get-all-tree-nodes-record.md) - [platform-infra-object](references/platform-infra-object.md) - [platform-infra-ref](references/platform-infra-ref.md) - [platform-infra-store](references/platform-infra-store.md) +- [platform-k-8-s-resource-kind](references/platform-k-8-s-resource-kind.md) +- [platform-k-8-s-spec-rule](references/platform-k-8-s-spec-rule.md) - [platform-namespace](references/platform-namespace.md) - [platform-namespace-event](references/platform-namespace-event.md) +- [platform-proposal-comment](references/platform-proposal-comment.md) +- [platform-proposal](references/platform-proposal.md) +- [platform-proposal-file-view](references/platform-proposal-file-view.md) +- [platform-proposal-reaction](references/platform-proposal-reaction.md) +- [platform-proposal-review](references/platform-proposal-review.md) +- [platform-proposals-chunk](references/platform-proposals-chunk.md) +- [platform-registry-binding](references/platform-registry-binding.md) +- [platform-registry](references/platform-registry.md) +- [platform-registry-grant](references/platform-registry-grant.md) +- [platform-repository](references/platform-repository.md) +- [platform-repository-event](references/platform-repository-event.md) +- [platform-repository-required-check](references/platform-repository-required-check.md) +- [platform-repository-workflow](references/platform-repository-workflow.md) - [platform-resource](references/platform-resource.md) - [platform-resource-declared-capacity](references/platform-resource-declared-capacity.md) - [platform-resource-definition](references/platform-resource-definition.md) - [platform-resource-event](references/platform-resource-event.md) - [platform-resource-installation](references/platform-resource-installation.md) +- [platform-resource-observed-storage](references/platform-resource-observed-storage.md) - [platform-resource-status-check](references/platform-resource-status-check.md) - [platform-resource-usage-log](references/platform-resource-usage-log.md) - [platform-resource-usage-summary](references/platform-resource-usage-summary.md) @@ -94,11 +129,25 @@ See the `references/` directory for detailed per-entity API documentation: - [platform-resources-resolved-requirement](references/platform-resources-resolved-requirement.md) - [platform-webhook-endpoint](references/platform-webhook-endpoint.md) - [platform-webhook-event](references/platform-webhook-event.md) +- [proposal-comment](references/proposal-comment.md) +- [proposal](references/proposal.md) +- [proposal-file-view](references/proposal-file-view.md) +- [proposal-reaction](references/proposal-reaction.md) +- [proposal-review](references/proposal-review.md) +- [proposals-chunk](references/proposals-chunk.md) +- [registry-binding](references/registry-binding.md) +- [registry](references/registry.md) +- [registry-grant](references/registry-grant.md) +- [repository](references/repository.md) +- [repository-event](references/repository-event.md) +- [repository-required-check](references/repository-required-check.md) +- [repository-workflow](references/repository-workflow.md) - [resource](references/resource.md) - [resource-declared-capacity](references/resource-declared-capacity.md) - [resource-definition](references/resource-definition.md) - [resource-event](references/resource-event.md) - [resource-installation](references/resource-installation.md) +- [resource-observed-storage](references/resource-observed-storage.md) - [resource-status-check](references/resource-status-check.md) - [resource-usage-log](references/resource-usage-log.md) - [resource-usage-summary](references/resource-usage-summary.md) @@ -108,12 +157,33 @@ See the `references/` directory for detailed per-entity API documentation: - [resources-resolved-requirement](references/resources-resolved-requirement.md) - [webhook-endpoint](references/webhook-endpoint.md) - [webhook-event](references/webhook-event.md) +- [database-read-function-graph](references/database-read-function-graph.md) - [read-function-graph](references/read-function-graph.md) - [add-edge](references/add-edge.md) - [add-edge-and-save](references/add-edge-and-save.md) - [add-node](references/add-node.md) - [add-node-and-save](references/add-node-and-save.md) +- [approve-node](references/approve-node.md) - [copy-graph](references/copy-graph.md) +- [database-add-edge](references/database-add-edge.md) +- [database-add-edge-and-save](references/database-add-edge-and-save.md) +- [database-add-node](references/database-add-node.md) +- [database-add-node-and-save](references/database-add-node-and-save.md) +- [database-approve-node](references/database-approve-node.md) +- [database-copy-graph](references/database-copy-graph.md) +- [database-create-function-graph](references/database-create-function-graph.md) +- [database-graph-init-empty-repo](references/database-graph-init-empty-repo.md) +- [database-graph-insert-node-at-path](references/database-graph-insert-node-at-path.md) +- [database-graph-insert-nodes-at-paths](references/database-graph-insert-nodes-at-paths.md) +- [database-graph-set-and-commit](references/database-graph-set-and-commit.md) +- [database-graph-set-data-at-path](references/database-graph-set-data-at-path.md) +- [database-graph-set-many-and-commit](references/database-graph-set-many-and-commit.md) +- [database-import-definitions](references/database-import-definitions.md) +- [database-import-graph-json](references/database-import-graph-json.md) +- [database-save-graph](references/database-save-graph.md) +- [database-start-execution](references/database-start-execution.md) +- [database-validate-function-graph](references/database-validate-function-graph.md) +- [function-invocations-create-sync](references/function-invocations-create-sync.md) - [import-definitions](references/import-definitions.md) - [import-graph-json](references/import-graph-json.md) - [infra-init-empty-repo](references/infra-init-empty-repo.md) @@ -125,6 +195,7 @@ See the `references/` directory for detailed per-entity API documentation: - [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-function-invocations-create-sync](references/platform-function-invocations-create-sync.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) diff --git a/.agents/skills/hooks-compute/references/approve-node.md b/.agents/skills/hooks-compute/references/approve-node.md new file mode 100644 index 0000000000..6254757961 --- /dev/null +++ b/.agents/skills/hooks-compute/references/approve-node.md @@ -0,0 +1,20 @@ +# approveNode + + + +React Query mutation hook for approveNode + +## Usage + +```typescript +const { mutate } = useApproveNodeMutation(); mutate({ input: { approved: '', executionId: '', feedback: '', nodeName: '' } }); +``` + +## Examples + +### Use useApproveNodeMutation + +```typescript +const { mutate, isLoading } = useApproveNodeMutation(); +mutate({ input: { approved: '', executionId: '', feedback: '', nodeName: '' } }); +``` diff --git a/.agents/skills/hooks-compute/references/build-step.md b/.agents/skills/hooks-compute/references/build-step.md new file mode 100644 index 0000000000..abe9824aeb --- /dev/null +++ b/.agents/skills/hooks-compute/references/build-step.md @@ -0,0 +1,34 @@ +# buildStep + + + +Partitioned append-only step and test results of a build, keyed into its log object + +## Usage + +```typescript +useBuildStepsQuery({ selection: { fields: { buildId: true, createdByPrincipal: true, databaseId: true, exitCode: true, finishedAt: true, id: true, kind: true, logBytes: true, logOffset: true, name: true, parentSeq: true, recordedAt: true, seq: true, startedAt: true, status: true, summary: true } } }) +useBuildStepQuery({ id: '', selection: { fields: { buildId: true, createdByPrincipal: true, databaseId: true, exitCode: true, finishedAt: true, id: true, kind: true, logBytes: true, logOffset: true, name: true, parentSeq: true, recordedAt: true, seq: true, startedAt: true, status: true, summary: true } } }) +useCreateBuildStepMutation({ selection: { fields: { id: true } } }) +useUpdateBuildStepMutation({ selection: { fields: { id: true } } }) +useDeleteBuildStepMutation({}) +``` + +## Examples + +### List all buildSteps + +```typescript +const { data, isLoading } = useBuildStepsQuery({ + selection: { fields: { buildId: true, createdByPrincipal: true, databaseId: true, exitCode: true, finishedAt: true, id: true, kind: true, logBytes: true, logOffset: true, name: true, parentSeq: true, recordedAt: true, seq: true, startedAt: true, status: true, summary: true } }, +}); +``` + +### Create a buildStep + +```typescript +const { mutate } = useCreateBuildStepMutation({ + selection: { fields: { id: true } }, +}); +mutate({ buildId: '', createdByPrincipal: '', databaseId: '', exitCode: '', finishedAt: '', kind: '', logBytes: '', logOffset: '', name: '', parentSeq: '', recordedAt: '', seq: '', startedAt: '', status: '', summary: '' }); +``` diff --git a/.agents/skills/hooks-compute/references/build.md b/.agents/skills/hooks-compute/references/build.md new file mode 100644 index 0000000000..78ef9abf79 --- /dev/null +++ b/.agents/skills/hooks-compute/references/build.md @@ -0,0 +1,34 @@ +# build + + + +One run of a repository workflow: its commit, its job, and what it produced + +## Usage + +```typescript +useBuildsQuery({ selection: { fields: { actorId: true, attempt: true, commitSha: true, conclusion: true, createdAt: true, createdByPrincipal: true, databaseId: true, eventId: true, finishedAt: true, id: true, imageRef: true, jobId: true, logs: true, matrixKey: true, metadata: true, proposalId: true, ref: true, repositoryId: true, startedAt: true, status: true, updatedAt: true, updatedByPrincipal: true, workflowId: true } } }) +useBuildQuery({ id: '', selection: { fields: { actorId: true, attempt: true, commitSha: true, conclusion: true, createdAt: true, createdByPrincipal: true, databaseId: true, eventId: true, finishedAt: true, id: true, imageRef: true, jobId: true, logs: true, matrixKey: true, metadata: true, proposalId: true, ref: true, repositoryId: true, startedAt: true, status: true, updatedAt: true, updatedByPrincipal: true, workflowId: true } } }) +useCreateBuildMutation({ selection: { fields: { id: true } } }) +useUpdateBuildMutation({ selection: { fields: { id: true } } }) +useDeleteBuildMutation({}) +``` + +## Examples + +### List all builds + +```typescript +const { data, isLoading } = useBuildsQuery({ + selection: { fields: { actorId: true, attempt: true, commitSha: true, conclusion: true, createdAt: true, createdByPrincipal: true, databaseId: true, eventId: true, finishedAt: true, id: true, imageRef: true, jobId: true, logs: true, matrixKey: true, metadata: true, proposalId: true, ref: true, repositoryId: true, startedAt: true, status: true, updatedAt: true, updatedByPrincipal: true, workflowId: true } }, +}); +``` + +### Create a build + +```typescript +const { mutate } = useCreateBuildMutation({ + selection: { fields: { id: true } }, +}); +mutate({ actorId: '', attempt: '', commitSha: '', conclusion: '', createdByPrincipal: '', databaseId: '', eventId: '', finishedAt: '', imageRef: '', jobId: '', logs: '', matrixKey: '', metadata: '', proposalId: '', ref: '', repositoryId: '', startedAt: '', status: '', updatedByPrincipal: '', workflowId: '' }); +``` diff --git a/.agents/skills/hooks-compute/references/builder-binding.md b/.agents/skills/hooks-compute/references/builder-binding.md new file mode 100644 index 0000000000..7c020d2bcc --- /dev/null +++ b/.agents/skills/hooks-compute/references/builder-binding.md @@ -0,0 +1,34 @@ +# builderBinding + + + +Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST + +## Usage + +```typescript +useBuilderBindingsQuery({ selection: { fields: { createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, id: true, installationId: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) +useBuilderBindingQuery({ id: '', selection: { fields: { createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, id: true, installationId: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) +useCreateBuilderBindingMutation({ selection: { fields: { id: true } } }) +useUpdateBuilderBindingMutation({ selection: { fields: { id: true } } }) +useDeleteBuilderBindingMutation({}) +``` + +## Examples + +### List all builderBindings + +```typescript +const { data, isLoading } = useBuilderBindingsQuery({ + selection: { fields: { createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, id: true, installationId: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, +}); +``` + +### Create a builderBinding + +```typescript +const { mutate } = useCreateBuilderBindingMutation({ + selection: { fields: { id: true } }, +}); +mutate({ createdBy: '', createdByPrincipal: '', databaseId: '', installationId: '', lastError: '', metadata: '', namespaceId: '', observedHost: '', realm: '', status: '', updatedBy: '', updatedByPrincipal: '' }); +``` diff --git a/.agents/skills/hooks-compute/references/database-add-edge-and-save.md b/.agents/skills/hooks-compute/references/database-add-edge-and-save.md new file mode 100644 index 0000000000..9b9cafd87a --- /dev/null +++ b/.agents/skills/hooks-compute/references/database-add-edge-and-save.md @@ -0,0 +1,20 @@ +# databaseAddEdgeAndSave + + + +React Query mutation hook for databaseAddEdgeAndSave + +## Usage + +```typescript +const { mutate } = useDatabaseAddEdgeAndSaveMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useDatabaseAddEdgeAndSaveMutation + +```typescript +const { mutate, isLoading } = useDatabaseAddEdgeAndSaveMutation(); +mutate({ input: '' }); +``` diff --git a/.agents/skills/hooks-compute/references/database-add-edge.md b/.agents/skills/hooks-compute/references/database-add-edge.md new file mode 100644 index 0000000000..5506f61f67 --- /dev/null +++ b/.agents/skills/hooks-compute/references/database-add-edge.md @@ -0,0 +1,20 @@ +# databaseAddEdge + + + +React Query mutation hook for databaseAddEdge + +## Usage + +```typescript +const { mutate } = useDatabaseAddEdgeMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useDatabaseAddEdgeMutation + +```typescript +const { mutate, isLoading } = useDatabaseAddEdgeMutation(); +mutate({ input: '' }); +``` diff --git a/.agents/skills/hooks-compute/references/database-add-node-and-save.md b/.agents/skills/hooks-compute/references/database-add-node-and-save.md new file mode 100644 index 0000000000..93c57abcd3 --- /dev/null +++ b/.agents/skills/hooks-compute/references/database-add-node-and-save.md @@ -0,0 +1,20 @@ +# databaseAddNodeAndSave + + + +React Query mutation hook for databaseAddNodeAndSave + +## Usage + +```typescript +const { mutate } = useDatabaseAddNodeAndSaveMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useDatabaseAddNodeAndSaveMutation + +```typescript +const { mutate, isLoading } = useDatabaseAddNodeAndSaveMutation(); +mutate({ input: '' }); +``` diff --git a/.agents/skills/hooks-compute/references/database-add-node.md b/.agents/skills/hooks-compute/references/database-add-node.md new file mode 100644 index 0000000000..383f0c25a9 --- /dev/null +++ b/.agents/skills/hooks-compute/references/database-add-node.md @@ -0,0 +1,20 @@ +# databaseAddNode + + + +React Query mutation hook for databaseAddNode + +## Usage + +```typescript +const { mutate } = useDatabaseAddNodeMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useDatabaseAddNodeMutation + +```typescript +const { mutate, isLoading } = useDatabaseAddNodeMutation(); +mutate({ input: '' }); +``` diff --git a/.agents/skills/hooks-compute/references/database-approve-node.md b/.agents/skills/hooks-compute/references/database-approve-node.md new file mode 100644 index 0000000000..34a8d6ba4e --- /dev/null +++ b/.agents/skills/hooks-compute/references/database-approve-node.md @@ -0,0 +1,20 @@ +# databaseApproveNode + + + +React Query mutation hook for databaseApproveNode + +## Usage + +```typescript +const { mutate } = useDatabaseApproveNodeMutation(); mutate({ input: { approved: '', executionId: '', feedback: '', nodeName: '' } }); +``` + +## Examples + +### Use useDatabaseApproveNodeMutation + +```typescript +const { mutate, isLoading } = useDatabaseApproveNodeMutation(); +mutate({ input: { approved: '', executionId: '', feedback: '', nodeName: '' } }); +``` diff --git a/.agents/skills/hooks-compute/references/database-copy-graph.md b/.agents/skills/hooks-compute/references/database-copy-graph.md new file mode 100644 index 0000000000..0a1cac7370 --- /dev/null +++ b/.agents/skills/hooks-compute/references/database-copy-graph.md @@ -0,0 +1,20 @@ +# databaseCopyGraph + + + +React Query mutation hook for databaseCopyGraph + +## Usage + +```typescript +const { mutate } = useDatabaseCopyGraphMutation(); mutate({ input: { databaseId: '', graphId: '', name: '' } }); +``` + +## Examples + +### Use useDatabaseCopyGraphMutation + +```typescript +const { mutate, isLoading } = useDatabaseCopyGraphMutation(); +mutate({ input: { databaseId: '', graphId: '', name: '' } }); +``` diff --git a/.agents/skills/hooks-compute/references/database-create-function-graph.md b/.agents/skills/hooks-compute/references/database-create-function-graph.md new file mode 100644 index 0000000000..0a7f829c71 --- /dev/null +++ b/.agents/skills/hooks-compute/references/database-create-function-graph.md @@ -0,0 +1,20 @@ +# databaseCreateFunctionGraph + + + +React Query mutation hook for databaseCreateFunctionGraph + +## Usage + +```typescript +const { mutate } = useDatabaseCreateFunctionGraphMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useDatabaseCreateFunctionGraphMutation + +```typescript +const { mutate, isLoading } = useDatabaseCreateFunctionGraphMutation(); +mutate({ input: '' }); +``` diff --git a/.agents/skills/hooks-compute/references/database-function-graph-execution-node-state.md b/.agents/skills/hooks-compute/references/database-function-graph-execution-node-state.md new file mode 100644 index 0000000000..873f4348d2 --- /dev/null +++ b/.agents/skills/hooks-compute/references/database-function-graph-execution-node-state.md @@ -0,0 +1,34 @@ +# databaseFunctionGraphExecutionNodeState + + + +Per-node execution state — tracks individual node lifecycle for debugging + +## Usage + +```typescript +useDatabaseFunctionGraphExecutionNodeStatesQuery({ selection: { fields: { callbackInputs: true, callbackMeta: true, callbackTokenHash: true, completedAt: true, createdAt: true, databaseId: true, errorCode: true, errorMessage: true, executionId: true, expiryDefaultOutput: true, expiryEscalatedAt: true, expiryPolicy: true, id: true, nodeName: true, nodePath: true, outputId: true, startedAt: true, status: true, waitingDeadlineAt: true, waitingOn: true, waitingSince: true } } }) +useDatabaseFunctionGraphExecutionNodeStateQuery({ id: '', selection: { fields: { callbackInputs: true, callbackMeta: true, callbackTokenHash: true, completedAt: true, createdAt: true, databaseId: true, errorCode: true, errorMessage: true, executionId: true, expiryDefaultOutput: true, expiryEscalatedAt: true, expiryPolicy: true, id: true, nodeName: true, nodePath: true, outputId: true, startedAt: true, status: true, waitingDeadlineAt: true, waitingOn: true, waitingSince: true } } }) +useCreateDatabaseFunctionGraphExecutionNodeStateMutation({ selection: { fields: { id: true } } }) +useUpdateDatabaseFunctionGraphExecutionNodeStateMutation({ selection: { fields: { id: true } } }) +useDeleteDatabaseFunctionGraphExecutionNodeStateMutation({}) +``` + +## Examples + +### List all databaseFunctionGraphExecutionNodeStates + +```typescript +const { data, isLoading } = useDatabaseFunctionGraphExecutionNodeStatesQuery({ + selection: { fields: { callbackInputs: true, callbackMeta: true, callbackTokenHash: true, completedAt: true, createdAt: true, databaseId: true, errorCode: true, errorMessage: true, executionId: true, expiryDefaultOutput: true, expiryEscalatedAt: true, expiryPolicy: true, id: true, nodeName: true, nodePath: true, outputId: true, startedAt: true, status: true, waitingDeadlineAt: true, waitingOn: true, waitingSince: true } }, +}); +``` + +### Create a databaseFunctionGraphExecutionNodeState + +```typescript +const { mutate } = useCreateDatabaseFunctionGraphExecutionNodeStateMutation({ + selection: { fields: { id: true } }, +}); +mutate({ callbackInputs: '', callbackMeta: '', callbackTokenHash: '', completedAt: '', databaseId: '', errorCode: '', errorMessage: '', executionId: '', expiryDefaultOutput: '', expiryEscalatedAt: '', expiryPolicy: '', nodeName: '', nodePath: '', outputId: '', startedAt: '', status: '', waitingDeadlineAt: '', waitingOn: '', waitingSince: '' }); +``` diff --git a/.agents/skills/hooks-compute/references/database-function-graph-execution-output.md b/.agents/skills/hooks-compute/references/database-function-graph-execution-output.md new file mode 100644 index 0000000000..70320e4028 --- /dev/null +++ b/.agents/skills/hooks-compute/references/database-function-graph-execution-output.md @@ -0,0 +1,34 @@ +# databaseFunctionGraphExecutionOutput + + + +Content-addressed store for execution outputs — hash-referenced from node_outputs + +## Usage + +```typescript +useDatabaseFunctionGraphExecutionOutputsQuery({ selection: { fields: { createdAt: true, data: true, databaseId: true, hash: true, id: true } } }) +useDatabaseFunctionGraphExecutionOutputQuery({ id: '', selection: { fields: { createdAt: true, data: true, databaseId: true, hash: true, id: true } } }) +useCreateDatabaseFunctionGraphExecutionOutputMutation({ selection: { fields: { id: true } } }) +useUpdateDatabaseFunctionGraphExecutionOutputMutation({ selection: { fields: { id: true } } }) +useDeleteDatabaseFunctionGraphExecutionOutputMutation({}) +``` + +## Examples + +### List all databaseFunctionGraphExecutionOutputs + +```typescript +const { data, isLoading } = useDatabaseFunctionGraphExecutionOutputsQuery({ + selection: { fields: { createdAt: true, data: true, databaseId: true, hash: true, id: true } }, +}); +``` + +### Create a databaseFunctionGraphExecutionOutput + +```typescript +const { mutate } = useCreateDatabaseFunctionGraphExecutionOutputMutation({ + selection: { fields: { id: true } }, +}); +mutate({ data: '', databaseId: '', hash: '' }); +``` diff --git a/.agents/skills/hooks-compute/references/database-function-graph-execution.md b/.agents/skills/hooks-compute/references/database-function-graph-execution.md new file mode 100644 index 0000000000..9bf4a78906 --- /dev/null +++ b/.agents/skills/hooks-compute/references/database-function-graph-execution.md @@ -0,0 +1,34 @@ +# databaseFunctionGraphExecution + + + +Ephemeral execution state for flow graph evaluation + +## Usage + +```typescript +useDatabaseFunctionGraphExecutionsQuery({ selection: { fields: { actorId: true, completedAt: true, currentWave: true, databaseId: true, definitionsCommitId: true, entityId: true, entityType: true, errorCode: true, errorMessage: true, executionPlan: true, graphId: true, id: true, inputPayload: true, invocationCreatedAt: true, invocationId: true, lastProgressAt: true, maxPendingJobs: true, maxTicks: true, nodeOutputs: true, organizationId: true, outputNames: true, outputNode: true, outputPayload: true, outputPort: true, parentExecutionId: true, parentInvocationId: true, parentNodeName: true, principalId: true, startedAt: true, status: true, tickCount: true, timeoutAt: true } } }) +useDatabaseFunctionGraphExecutionQuery({ id: '', selection: { fields: { actorId: true, completedAt: true, currentWave: true, databaseId: true, definitionsCommitId: true, entityId: true, entityType: true, errorCode: true, errorMessage: true, executionPlan: true, graphId: true, id: true, inputPayload: true, invocationCreatedAt: true, invocationId: true, lastProgressAt: true, maxPendingJobs: true, maxTicks: true, nodeOutputs: true, organizationId: true, outputNames: true, outputNode: true, outputPayload: true, outputPort: true, parentExecutionId: true, parentInvocationId: true, parentNodeName: true, principalId: true, startedAt: true, status: true, tickCount: true, timeoutAt: true } } }) +useCreateDatabaseFunctionGraphExecutionMutation({ selection: { fields: { id: true } } }) +useUpdateDatabaseFunctionGraphExecutionMutation({ selection: { fields: { id: true } } }) +useDeleteDatabaseFunctionGraphExecutionMutation({}) +``` + +## Examples + +### List all databaseFunctionGraphExecutions + +```typescript +const { data, isLoading } = useDatabaseFunctionGraphExecutionsQuery({ + selection: { fields: { actorId: true, completedAt: true, currentWave: true, databaseId: true, definitionsCommitId: true, entityId: true, entityType: true, errorCode: true, errorMessage: true, executionPlan: true, graphId: true, id: true, inputPayload: true, invocationCreatedAt: true, invocationId: true, lastProgressAt: true, maxPendingJobs: true, maxTicks: true, nodeOutputs: true, organizationId: true, outputNames: true, outputNode: true, outputPayload: true, outputPort: true, parentExecutionId: true, parentInvocationId: true, parentNodeName: true, principalId: true, startedAt: true, status: true, tickCount: true, timeoutAt: true } }, +}); +``` + +### Create a databaseFunctionGraphExecution + +```typescript +const { mutate } = useCreateDatabaseFunctionGraphExecutionMutation({ + selection: { fields: { id: true } }, +}); +mutate({ actorId: '', completedAt: '', currentWave: '', databaseId: '', definitionsCommitId: '', entityId: '', entityType: '', errorCode: '', errorMessage: '', executionPlan: '', graphId: '', inputPayload: '', invocationCreatedAt: '', invocationId: '', lastProgressAt: '', maxPendingJobs: '', maxTicks: '', nodeOutputs: '', organizationId: '', outputNames: '', outputNode: '', outputPayload: '', outputPort: '', parentExecutionId: '', parentInvocationId: '', parentNodeName: '', principalId: '', startedAt: '', status: '', tickCount: '', timeoutAt: '' }); +``` diff --git a/.agents/skills/hooks-compute/references/database-function-graph.md b/.agents/skills/hooks-compute/references/database-function-graph.md new file mode 100644 index 0000000000..7a6d045cba --- /dev/null +++ b/.agents/skills/hooks-compute/references/database-function-graph.md @@ -0,0 +1,34 @@ +# databaseFunctionGraph + + + +Flow graph definitions — FBP graphs stored in the dedicated graph Merkle store + +## Usage + +```typescript +useDatabaseFunctionGraphsQuery({ selection: { fields: { context: true, createdAt: true, createdBy: true, databaseId: true, definitionsCommitId: true, description: true, id: true, isValid: true, name: true, storeId: true, updatedAt: true, validationErrors: true } } }) +useDatabaseFunctionGraphQuery({ id: '', selection: { fields: { context: true, createdAt: true, createdBy: true, databaseId: true, definitionsCommitId: true, description: true, id: true, isValid: true, name: true, storeId: true, updatedAt: true, validationErrors: true } } }) +useCreateDatabaseFunctionGraphMutation({ selection: { fields: { id: true } } }) +useUpdateDatabaseFunctionGraphMutation({ selection: { fields: { id: true } } }) +useDeleteDatabaseFunctionGraphMutation({}) +``` + +## Examples + +### List all databaseFunctionGraphs + +```typescript +const { data, isLoading } = useDatabaseFunctionGraphsQuery({ + selection: { fields: { context: true, createdAt: true, createdBy: true, databaseId: true, definitionsCommitId: true, description: true, id: true, isValid: true, name: true, storeId: true, updatedAt: true, validationErrors: true } }, +}); +``` + +### Create a databaseFunctionGraph + +```typescript +const { mutate } = useCreateDatabaseFunctionGraphMutation({ + selection: { fields: { id: true } }, +}); +mutate({ context: '', createdBy: '', databaseId: '', definitionsCommitId: '', description: '', isValid: '', name: '', storeId: '', validationErrors: '' }); +``` diff --git a/.agents/skills/hooks-compute/references/database-graph-commit.md b/.agents/skills/hooks-compute/references/database-graph-commit.md new file mode 100644 index 0000000000..10f2a40a94 --- /dev/null +++ b/.agents/skills/hooks-compute/references/database-graph-commit.md @@ -0,0 +1,34 @@ +# databaseGraphCommit + + + +Commit history — each commit snapshots a tree root for a store + +## Usage + +```typescript +useDatabaseGraphCommitsQuery({ selection: { fields: { authorId: true, committerId: true, databaseId: true, date: true, id: true, message: true, parentIds: true, storeId: true, treeId: true } } }) +useDatabaseGraphCommitQuery({ id: '', selection: { fields: { authorId: true, committerId: true, databaseId: true, date: true, id: true, message: true, parentIds: true, storeId: true, treeId: true } } }) +useCreateDatabaseGraphCommitMutation({ selection: { fields: { id: true } } }) +useUpdateDatabaseGraphCommitMutation({ selection: { fields: { id: true } } }) +useDeleteDatabaseGraphCommitMutation({}) +``` + +## Examples + +### List all databaseGraphCommits + +```typescript +const { data, isLoading } = useDatabaseGraphCommitsQuery({ + selection: { fields: { authorId: true, committerId: true, databaseId: true, date: true, id: true, message: true, parentIds: true, storeId: true, treeId: true } }, +}); +``` + +### Create a databaseGraphCommit + +```typescript +const { mutate } = useCreateDatabaseGraphCommitMutation({ + selection: { fields: { id: true } }, +}); +mutate({ authorId: '', committerId: '', databaseId: '', date: '', message: '', parentIds: '', storeId: '', treeId: '' }); +``` diff --git a/.agents/skills/hooks-compute/references/database-graph-get-all-tree-nodes-record.md b/.agents/skills/hooks-compute/references/database-graph-get-all-tree-nodes-record.md new file mode 100644 index 0000000000..b5367ab410 --- /dev/null +++ b/.agents/skills/hooks-compute/references/database-graph-get-all-tree-nodes-record.md @@ -0,0 +1,31 @@ +# databaseGraphGetAllTreeNodesRecord + + + +React Query hooks for DatabaseGraphGetAllTreeNodesRecord data operations + +## Usage + +```typescript +useDatabaseGraphGetAllTreeNodesQuery({ selection: { fields: { data: true, path: true } } }) +useCreateDatabaseGraphGetAllTreeNodesRecordMutation({ selection: { fields: { id: true } } }) +``` + +## Examples + +### List all databaseGraphGetAllTreeNodes + +```typescript +const { data, isLoading } = useDatabaseGraphGetAllTreeNodesQuery({ + selection: { fields: { data: true, path: true } }, +}); +``` + +### Create a databaseGraphGetAllTreeNodesRecord + +```typescript +const { mutate } = useCreateDatabaseGraphGetAllTreeNodesRecordMutation({ + selection: { fields: { id: true } }, +}); +mutate({ data: '', path: '' }); +``` diff --git a/.agents/skills/hooks-compute/references/database-graph-init-empty-repo.md b/.agents/skills/hooks-compute/references/database-graph-init-empty-repo.md new file mode 100644 index 0000000000..73856ee629 --- /dev/null +++ b/.agents/skills/hooks-compute/references/database-graph-init-empty-repo.md @@ -0,0 +1,20 @@ +# databaseGraphInitEmptyRepo + + + +React Query mutation hook for databaseGraphInitEmptyRepo + +## Usage + +```typescript +const { mutate } = useDatabaseGraphInitEmptyRepoMutation(); mutate({ input: { sId: '', storeId: '' } }); +``` + +## Examples + +### Use useDatabaseGraphInitEmptyRepoMutation + +```typescript +const { mutate, isLoading } = useDatabaseGraphInitEmptyRepoMutation(); +mutate({ input: { sId: '', storeId: '' } }); +``` diff --git a/.agents/skills/hooks-compute/references/database-graph-insert-node-at-path.md b/.agents/skills/hooks-compute/references/database-graph-insert-node-at-path.md new file mode 100644 index 0000000000..a0dcd86bf6 --- /dev/null +++ b/.agents/skills/hooks-compute/references/database-graph-insert-node-at-path.md @@ -0,0 +1,20 @@ +# databaseGraphInsertNodeAtPath + + + +React Query mutation hook for databaseGraphInsertNodeAtPath + +## Usage + +```typescript +const { mutate } = useDatabaseGraphInsertNodeAtPathMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useDatabaseGraphInsertNodeAtPathMutation + +```typescript +const { mutate, isLoading } = useDatabaseGraphInsertNodeAtPathMutation(); +mutate({ input: '' }); +``` diff --git a/.agents/skills/hooks-compute/references/database-graph-insert-nodes-at-paths.md b/.agents/skills/hooks-compute/references/database-graph-insert-nodes-at-paths.md new file mode 100644 index 0000000000..edb44fe9fc --- /dev/null +++ b/.agents/skills/hooks-compute/references/database-graph-insert-nodes-at-paths.md @@ -0,0 +1,20 @@ +# databaseGraphInsertNodesAtPaths + + + +React Query mutation hook for databaseGraphInsertNodesAtPaths + +## Usage + +```typescript +const { mutate } = useDatabaseGraphInsertNodesAtPathsMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useDatabaseGraphInsertNodesAtPathsMutation + +```typescript +const { mutate, isLoading } = useDatabaseGraphInsertNodesAtPathsMutation(); +mutate({ input: '' }); +``` diff --git a/.agents/skills/hooks-compute/references/database-graph-object.md b/.agents/skills/hooks-compute/references/database-graph-object.md new file mode 100644 index 0000000000..69c64dd9c3 --- /dev/null +++ b/.agents/skills/hooks-compute/references/database-graph-object.md @@ -0,0 +1,34 @@ +# databaseGraphObject + + + +Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children + +## Usage + +```typescript +useDatabaseGraphObjectsQuery({ selection: { fields: { createdAt: true, data: true, databaseId: true, id: true, kids: true, ktree: true } } }) +useDatabaseGraphObjectQuery({ id: '', selection: { fields: { createdAt: true, data: true, databaseId: true, id: true, kids: true, ktree: true } } }) +useCreateDatabaseGraphObjectMutation({ selection: { fields: { id: true } } }) +useUpdateDatabaseGraphObjectMutation({ selection: { fields: { id: true } } }) +useDeleteDatabaseGraphObjectMutation({}) +``` + +## Examples + +### List all databaseGraphObjects + +```typescript +const { data, isLoading } = useDatabaseGraphObjectsQuery({ + selection: { fields: { createdAt: true, data: true, databaseId: true, id: true, kids: true, ktree: true } }, +}); +``` + +### Create a databaseGraphObject + +```typescript +const { mutate } = useCreateDatabaseGraphObjectMutation({ + selection: { fields: { id: true } }, +}); +mutate({ data: '', databaseId: '', kids: '', ktree: '' }); +``` diff --git a/.agents/skills/hooks-compute/references/database-graph-ref.md b/.agents/skills/hooks-compute/references/database-graph-ref.md new file mode 100644 index 0000000000..c052316fc2 --- /dev/null +++ b/.agents/skills/hooks-compute/references/database-graph-ref.md @@ -0,0 +1,34 @@ +# databaseGraphRef + + + +Branch heads — mutable pointers into the commit chain + +## Usage + +```typescript +useDatabaseGraphRefsQuery({ selection: { fields: { commitId: true, databaseId: true, id: true, name: true, storeId: true } } }) +useDatabaseGraphRefQuery({ id: '', selection: { fields: { commitId: true, databaseId: true, id: true, name: true, storeId: true } } }) +useCreateDatabaseGraphRefMutation({ selection: { fields: { id: true } } }) +useUpdateDatabaseGraphRefMutation({ selection: { fields: { id: true } } }) +useDeleteDatabaseGraphRefMutation({}) +``` + +## Examples + +### List all databaseGraphRefs + +```typescript +const { data, isLoading } = useDatabaseGraphRefsQuery({ + selection: { fields: { commitId: true, databaseId: true, id: true, name: true, storeId: true } }, +}); +``` + +### Create a databaseGraphRef + +```typescript +const { mutate } = useCreateDatabaseGraphRefMutation({ + selection: { fields: { id: true } }, +}); +mutate({ commitId: '', databaseId: '', name: '', storeId: '' }); +``` diff --git a/.agents/skills/hooks-compute/references/database-graph-set-and-commit.md b/.agents/skills/hooks-compute/references/database-graph-set-and-commit.md new file mode 100644 index 0000000000..6ca465f4cd --- /dev/null +++ b/.agents/skills/hooks-compute/references/database-graph-set-and-commit.md @@ -0,0 +1,20 @@ +# databaseGraphSetAndCommit + + + +React Query mutation hook for databaseGraphSetAndCommit + +## Usage + +```typescript +const { mutate } = useDatabaseGraphSetAndCommitMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useDatabaseGraphSetAndCommitMutation + +```typescript +const { mutate, isLoading } = useDatabaseGraphSetAndCommitMutation(); +mutate({ input: '' }); +``` diff --git a/.agents/skills/hooks-compute/references/database-graph-set-data-at-path.md b/.agents/skills/hooks-compute/references/database-graph-set-data-at-path.md new file mode 100644 index 0000000000..ff172450c7 --- /dev/null +++ b/.agents/skills/hooks-compute/references/database-graph-set-data-at-path.md @@ -0,0 +1,20 @@ +# databaseGraphSetDataAtPath + + + +React Query mutation hook for databaseGraphSetDataAtPath + +## Usage + +```typescript +const { mutate } = useDatabaseGraphSetDataAtPathMutation(); mutate({ input: { data: '', path: '', root: '', sId: '' } }); +``` + +## Examples + +### Use useDatabaseGraphSetDataAtPathMutation + +```typescript +const { mutate, isLoading } = useDatabaseGraphSetDataAtPathMutation(); +mutate({ input: { data: '', path: '', root: '', sId: '' } }); +``` diff --git a/.agents/skills/hooks-compute/references/database-graph-set-many-and-commit.md b/.agents/skills/hooks-compute/references/database-graph-set-many-and-commit.md new file mode 100644 index 0000000000..8210348cd4 --- /dev/null +++ b/.agents/skills/hooks-compute/references/database-graph-set-many-and-commit.md @@ -0,0 +1,20 @@ +# databaseGraphSetManyAndCommit + + + +React Query mutation hook for databaseGraphSetManyAndCommit + +## Usage + +```typescript +const { mutate } = useDatabaseGraphSetManyAndCommitMutation(); mutate({ input: { entries: '', message: '', refname: '', sId: '', storeId: '' } }); +``` + +## Examples + +### Use useDatabaseGraphSetManyAndCommitMutation + +```typescript +const { mutate, isLoading } = useDatabaseGraphSetManyAndCommitMutation(); +mutate({ input: { entries: '', message: '', refname: '', sId: '', storeId: '' } }); +``` diff --git a/.agents/skills/hooks-compute/references/database-graph-store.md b/.agents/skills/hooks-compute/references/database-graph-store.md new file mode 100644 index 0000000000..6b7bd5fa63 --- /dev/null +++ b/.agents/skills/hooks-compute/references/database-graph-store.md @@ -0,0 +1,34 @@ +# databaseGraphStore + + + +Named stores — one per version-controlled tree (e.g. one graph, one definition set) + +## Usage + +```typescript +useDatabaseGraphStoresQuery({ selection: { fields: { createdAt: true, databaseId: true, hash: true, id: true, name: true } } }) +useDatabaseGraphStoreQuery({ id: '', selection: { fields: { createdAt: true, databaseId: true, hash: true, id: true, name: true } } }) +useCreateDatabaseGraphStoreMutation({ selection: { fields: { id: true } } }) +useUpdateDatabaseGraphStoreMutation({ selection: { fields: { id: true } } }) +useDeleteDatabaseGraphStoreMutation({}) +``` + +## Examples + +### List all databaseGraphStores + +```typescript +const { data, isLoading } = useDatabaseGraphStoresQuery({ + selection: { fields: { createdAt: true, databaseId: true, hash: true, id: true, name: true } }, +}); +``` + +### Create a databaseGraphStore + +```typescript +const { mutate } = useCreateDatabaseGraphStoreMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', hash: '', name: '' }); +``` diff --git a/.agents/skills/hooks-compute/references/database-import-definitions.md b/.agents/skills/hooks-compute/references/database-import-definitions.md new file mode 100644 index 0000000000..7e97f915b5 --- /dev/null +++ b/.agents/skills/hooks-compute/references/database-import-definitions.md @@ -0,0 +1,20 @@ +# databaseImportDefinitions + + + +React Query mutation hook for databaseImportDefinitions + +## Usage + +```typescript +const { mutate } = useDatabaseImportDefinitionsMutation(); mutate({ input: { contexts: '', graphId: '', sourceCommitId: '', sourceScopeId: '' } }); +``` + +## Examples + +### Use useDatabaseImportDefinitionsMutation + +```typescript +const { mutate, isLoading } = useDatabaseImportDefinitionsMutation(); +mutate({ input: { contexts: '', graphId: '', sourceCommitId: '', sourceScopeId: '' } }); +``` diff --git a/.agents/skills/hooks-compute/references/database-import-graph-json.md b/.agents/skills/hooks-compute/references/database-import-graph-json.md new file mode 100644 index 0000000000..9ce3b899fb --- /dev/null +++ b/.agents/skills/hooks-compute/references/database-import-graph-json.md @@ -0,0 +1,20 @@ +# databaseImportGraphJson + + + +React Query mutation hook for databaseImportGraphJson + +## Usage + +```typescript +const { mutate } = useDatabaseImportGraphJsonMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useDatabaseImportGraphJsonMutation + +```typescript +const { mutate, isLoading } = useDatabaseImportGraphJsonMutation(); +mutate({ input: '' }); +``` diff --git a/.agents/skills/hooks-compute/references/database-read-function-graph.md b/.agents/skills/hooks-compute/references/database-read-function-graph.md new file mode 100644 index 0000000000..d52da31ad6 --- /dev/null +++ b/.agents/skills/hooks-compute/references/database-read-function-graph.md @@ -0,0 +1,19 @@ +# databaseReadFunctionGraph + + + +React Query query hook for databaseReadFunctionGraph + +## Usage + +```typescript +useDatabaseReadFunctionGraphQuery({ graphId: '' }) +``` + +## Examples + +### Use useDatabaseReadFunctionGraphQuery + +```typescript +const { data, isLoading } = useDatabaseReadFunctionGraphQuery({ graphId: '' }); +``` diff --git a/.agents/skills/hooks-compute/references/database-save-graph.md b/.agents/skills/hooks-compute/references/database-save-graph.md new file mode 100644 index 0000000000..8b2e12127d --- /dev/null +++ b/.agents/skills/hooks-compute/references/database-save-graph.md @@ -0,0 +1,20 @@ +# databaseSaveGraph + + + +React Query mutation hook for databaseSaveGraph + +## Usage + +```typescript +const { mutate } = useDatabaseSaveGraphMutation(); mutate({ input: { graphId: '', message: '', rootHash: '' } }); +``` + +## Examples + +### Use useDatabaseSaveGraphMutation + +```typescript +const { mutate, isLoading } = useDatabaseSaveGraphMutation(); +mutate({ input: { graphId: '', message: '', rootHash: '' } }); +``` diff --git a/.agents/skills/hooks-compute/references/database-start-execution.md b/.agents/skills/hooks-compute/references/database-start-execution.md new file mode 100644 index 0000000000..8d55e20273 --- /dev/null +++ b/.agents/skills/hooks-compute/references/database-start-execution.md @@ -0,0 +1,20 @@ +# databaseStartExecution + + + +React Query mutation hook for databaseStartExecution + +## Usage + +```typescript +const { mutate } = useDatabaseStartExecutionMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useDatabaseStartExecutionMutation + +```typescript +const { mutate, isLoading } = useDatabaseStartExecutionMutation(); +mutate({ input: '' }); +``` diff --git a/.agents/skills/hooks-compute/references/database-validate-function-graph.md b/.agents/skills/hooks-compute/references/database-validate-function-graph.md new file mode 100644 index 0000000000..4447088aab --- /dev/null +++ b/.agents/skills/hooks-compute/references/database-validate-function-graph.md @@ -0,0 +1,20 @@ +# databaseValidateFunctionGraph + + + +React Query mutation hook for databaseValidateFunctionGraph + +## Usage + +```typescript +const { mutate } = useDatabaseValidateFunctionGraphMutation(); mutate({ input: { graphId: '' } }); +``` + +## Examples + +### Use useDatabaseValidateFunctionGraphMutation + +```typescript +const { mutate, isLoading } = useDatabaseValidateFunctionGraphMutation(); +mutate({ input: { graphId: '' } }); +``` diff --git a/.agents/skills/hooks-compute/references/function-definition.md b/.agents/skills/hooks-compute/references/function-definition.md index 93cbce3c63..0685edcdb7 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, 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 } } }) +useFunctionDefinitionsQuery({ selection: { fields: { accessChannels: true, anonymousCallable: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdByPrincipal: 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, requiredCapabilities: 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, updatedByPrincipal: true, volatile: true } } }) +useFunctionDefinitionQuery({ id: '', selection: { fields: { accessChannels: true, anonymousCallable: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdByPrincipal: 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, requiredCapabilities: 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, updatedByPrincipal: 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, requiredModules: 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, anonymousCallable: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdByPrincipal: 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, requiredCapabilities: 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, updatedByPrincipal: 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: '', requiredModules: '', requiredSecrets: '', resources: '', runtime: '', scaleMax: '', scaleMin: '', targetFunction: '', targetSchema: '', taskIdentifier: '', timeoutSeconds: '', volatile: '' }); +mutate({ accessChannels: '', anonymousCallable: '', category: '', concurrency: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdByPrincipal: '', databaseId: '', description: '', fnCategory: '', functionColumns: '', graphId: '', icon: '', image: '', inputs: '', integrations: '', isPublished: '', maxAttempts: '', memoryLimitBytes: '', memoryRequestBytes: '', moduleTable: '', name: '', outputs: '', payloadArgs: '', priority: '', props: '', protected: '', publishedAt: '', queueName: '', requiredBuckets: '', requiredCapabilities: '', requiredConfigs: '', requiredModels: '', requiredModules: '', requiredSecrets: '', resources: '', runtime: '', scaleMax: '', scaleMin: '', targetFunction: '', targetSchema: '', taskIdentifier: '', timeoutSeconds: '', updatedByPrincipal: '', volatile: '' }); ``` diff --git a/.agents/skills/hooks-compute/references/function-deployment.md b/.agents/skills/hooks-compute/references/function-deployment.md index d0ac57d720..05f9e068b5 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, 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 } } }) +useFunctionDeploymentsQuery({ selection: { fields: { annotations: true, concurrency: true, createdAt: true, createdByPrincipal: 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, updatedByPrincipal: true } } }) +useFunctionDeploymentQuery({ id: '', selection: { fields: { annotations: true, concurrency: true, createdAt: true, createdByPrincipal: 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, updatedByPrincipal: 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, realm: 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, createdByPrincipal: 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, updatedByPrincipal: 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: '', realm: '', resources: '', revision: '', scaleMax: '', scaleMin: '', serviceName: '', serviceUrl: '', status: '', timeoutSeconds: '' }); +mutate({ annotations: '', concurrency: '', createdByPrincipal: '', databaseId: '', errorCount: '', handlerName: '', image: '', imageVersion: '', labels: '', lastError: '', lastErrorAt: '', namespaceId: '', realm: '', resources: '', revision: '', scaleMax: '', scaleMin: '', serviceName: '', serviceUrl: '', status: '', timeoutSeconds: '', updatedByPrincipal: '' }); ``` diff --git a/.agents/skills/hooks-compute/references/function-graph-execution-node-state.md b/.agents/skills/hooks-compute/references/function-graph-execution-node-state.md index b6d43835fa..132278757e 100644 --- a/.agents/skills/hooks-compute/references/function-graph-execution-node-state.md +++ b/.agents/skills/hooks-compute/references/function-graph-execution-node-state.md @@ -7,8 +7,8 @@ Per-node execution state — tracks individual node lifecycle for debugging ## Usage ```typescript -useFunctionGraphExecutionNodeStatesQuery({ selection: { fields: { callbackInputs: true, callbackMeta: true, callbackTokenHash: true, completedAt: true, createdAt: true, errorCode: true, errorMessage: true, executionId: true, id: true, nodeName: true, nodePath: true, outputId: true, scopeId: true, startedAt: true, status: true } } }) -useFunctionGraphExecutionNodeStateQuery({ id: '', selection: { fields: { callbackInputs: true, callbackMeta: true, callbackTokenHash: true, completedAt: true, createdAt: true, errorCode: true, errorMessage: true, executionId: true, id: true, nodeName: true, nodePath: true, outputId: true, scopeId: true, startedAt: true, status: true } } }) +useFunctionGraphExecutionNodeStatesQuery({ selection: { fields: { callbackInputs: true, callbackMeta: true, callbackTokenHash: true, completedAt: true, createdAt: true, errorCode: true, errorMessage: true, executionId: true, expiryDefaultOutput: true, expiryEscalatedAt: true, expiryPolicy: true, id: true, nodeName: true, nodePath: true, outputId: true, scopeId: true, startedAt: true, status: true, waitingDeadlineAt: true, waitingOn: true, waitingSince: true } } }) +useFunctionGraphExecutionNodeStateQuery({ id: '', selection: { fields: { callbackInputs: true, callbackMeta: true, callbackTokenHash: true, completedAt: true, createdAt: true, errorCode: true, errorMessage: true, executionId: true, expiryDefaultOutput: true, expiryEscalatedAt: true, expiryPolicy: true, id: true, nodeName: true, nodePath: true, outputId: true, scopeId: true, startedAt: true, status: true, waitingDeadlineAt: true, waitingOn: true, waitingSince: true } } }) useCreateFunctionGraphExecutionNodeStateMutation({ selection: { fields: { id: true } } }) useUpdateFunctionGraphExecutionNodeStateMutation({ selection: { fields: { id: true } } }) useDeleteFunctionGraphExecutionNodeStateMutation({}) @@ -20,7 +20,7 @@ useDeleteFunctionGraphExecutionNodeStateMutation({}) ```typescript const { data, isLoading } = useFunctionGraphExecutionNodeStatesQuery({ - selection: { fields: { callbackInputs: true, callbackMeta: true, callbackTokenHash: true, completedAt: true, createdAt: true, errorCode: true, errorMessage: true, executionId: true, id: true, nodeName: true, nodePath: true, outputId: true, scopeId: true, startedAt: true, status: true } }, + selection: { fields: { callbackInputs: true, callbackMeta: true, callbackTokenHash: true, completedAt: true, createdAt: true, errorCode: true, errorMessage: true, executionId: true, expiryDefaultOutput: true, expiryEscalatedAt: true, expiryPolicy: true, id: true, nodeName: true, nodePath: true, outputId: true, scopeId: true, startedAt: true, status: true, waitingDeadlineAt: true, waitingOn: true, waitingSince: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useFunctionGraphExecutionNodeStatesQuery({ const { mutate } = useCreateFunctionGraphExecutionNodeStateMutation({ selection: { fields: { id: true } }, }); -mutate({ callbackInputs: '', callbackMeta: '', callbackTokenHash: '', completedAt: '', errorCode: '', errorMessage: '', executionId: '', nodeName: '', nodePath: '', outputId: '', scopeId: '', startedAt: '', status: '' }); +mutate({ callbackInputs: '', callbackMeta: '', callbackTokenHash: '', completedAt: '', errorCode: '', errorMessage: '', executionId: '', expiryDefaultOutput: '', expiryEscalatedAt: '', expiryPolicy: '', nodeName: '', nodePath: '', outputId: '', scopeId: '', startedAt: '', status: '', waitingDeadlineAt: '', waitingOn: '', waitingSince: '' }); ``` diff --git a/.agents/skills/hooks-compute/references/function-invocation.md b/.agents/skills/hooks-compute/references/function-invocation.md index 3e3c4fb0c0..0b60e17b6a 100644 --- a/.agents/skills/hooks-compute/references/function-invocation.md +++ b/.agents/skills/hooks-compute/references/function-invocation.md @@ -7,8 +7,8 @@ Function invocation log — INSERT to call a function (business-layer, metered). ## Usage ```typescript -useFunctionInvocationsQuery({ selection: { fields: { actorId: true, apiBindingId: true, channel: true, completedAt: true, createdAt: true, databaseId: true, definitionScope: true, durationMs: true, error: true, functionDefinitionId: true, graphExecutionId: true, id: true, jobId: true, parentInvocationId: true, payload: true, provenance: true, result: true, startedAt: true, status: true, taskIdentifier: true } } }) -useFunctionInvocationQuery({ id: '', selection: { fields: { actorId: true, apiBindingId: true, channel: true, completedAt: true, createdAt: true, databaseId: true, definitionScope: true, durationMs: true, error: true, functionDefinitionId: true, graphExecutionId: true, id: true, jobId: true, parentInvocationId: true, payload: true, provenance: true, result: true, startedAt: true, status: true, taskIdentifier: true } } }) +useFunctionInvocationsQuery({ selection: { fields: { actorId: true, apiBindingId: true, channel: true, completedAt: true, createdAt: true, createdByPrincipal: true, databaseId: true, definitionScope: true, durationMs: true, entityId: true, entityType: true, error: true, functionDefinitionId: true, graphExecutionId: true, id: true, jobId: true, organizationId: true, parentInvocationId: true, payload: true, principalId: true, provenance: true, result: true, startedAt: true, status: true, taskIdentifier: true } } }) +useFunctionInvocationQuery({ id: '', selection: { fields: { actorId: true, apiBindingId: true, channel: true, completedAt: true, createdAt: true, createdByPrincipal: true, databaseId: true, definitionScope: true, durationMs: true, entityId: true, entityType: true, error: true, functionDefinitionId: true, graphExecutionId: true, id: true, jobId: true, organizationId: true, parentInvocationId: true, payload: true, principalId: true, provenance: true, result: true, startedAt: true, status: true, taskIdentifier: true } } }) useCreateFunctionInvocationMutation({ selection: { fields: { id: true } } }) useUpdateFunctionInvocationMutation({ selection: { fields: { id: true } } }) useDeleteFunctionInvocationMutation({}) @@ -20,7 +20,7 @@ useDeleteFunctionInvocationMutation({}) ```typescript const { data, isLoading } = useFunctionInvocationsQuery({ - selection: { fields: { actorId: true, apiBindingId: true, channel: true, completedAt: true, createdAt: true, databaseId: true, definitionScope: true, durationMs: true, error: true, functionDefinitionId: true, graphExecutionId: true, id: true, jobId: true, parentInvocationId: true, payload: true, provenance: true, result: true, startedAt: true, status: true, taskIdentifier: true } }, + selection: { fields: { actorId: true, apiBindingId: true, channel: true, completedAt: true, createdAt: true, createdByPrincipal: true, databaseId: true, definitionScope: true, durationMs: true, entityId: true, entityType: true, error: true, functionDefinitionId: true, graphExecutionId: true, id: true, jobId: true, organizationId: true, parentInvocationId: true, payload: true, principalId: true, provenance: true, result: true, startedAt: true, status: true, taskIdentifier: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useFunctionInvocationsQuery({ const { mutate } = useCreateFunctionInvocationMutation({ selection: { fields: { id: true } }, }); -mutate({ actorId: '', apiBindingId: '', channel: '', completedAt: '', databaseId: '', definitionScope: '', durationMs: '', error: '', functionDefinitionId: '', graphExecutionId: '', jobId: '', parentInvocationId: '', payload: '', provenance: '', result: '', startedAt: '', status: '', taskIdentifier: '' }); +mutate({ actorId: '', apiBindingId: '', channel: '', completedAt: '', createdByPrincipal: '', databaseId: '', definitionScope: '', durationMs: '', entityId: '', entityType: '', error: '', functionDefinitionId: '', graphExecutionId: '', jobId: '', organizationId: '', parentInvocationId: '', payload: '', principalId: '', provenance: '', result: '', startedAt: '', status: '', taskIdentifier: '' }); ``` diff --git a/.agents/skills/hooks-compute/references/function-invocations-create-sync.md b/.agents/skills/hooks-compute/references/function-invocations-create-sync.md new file mode 100644 index 0000000000..174a0c7ca3 --- /dev/null +++ b/.agents/skills/hooks-compute/references/function-invocations-create-sync.md @@ -0,0 +1,20 @@ +# functionInvocationsCreateSync + + + +React Query mutation hook for functionInvocationsCreateSync + +## Usage + +```typescript +const { mutate } = useFunctionInvocationsCreateSyncMutation(); mutate({ input: { entityId: '', payload: '', provenance: '', routeBindingId: '', taskIdentifier: '' } }); +``` + +## Examples + +### Use useFunctionInvocationsCreateSyncMutation + +```typescript +const { mutate, isLoading } = useFunctionInvocationsCreateSyncMutation(); +mutate({ input: { entityId: '', payload: '', provenance: '', routeBindingId: '', taskIdentifier: '' } }); +``` diff --git a/.agents/skills/hooks-compute/references/image-grant.md b/.agents/skills/hooks-compute/references/image-grant.md new file mode 100644 index 0000000000..5a695d5553 --- /dev/null +++ b/.agents/skills/hooks-compute/references/image-grant.md @@ -0,0 +1,34 @@ +# imageGrant + + + +Grants that make a catalog image usable by one scope + +## Usage + +```typescript +useImageGrantsQuery({ selection: { fields: { actions: true, createdAt: true, createdByPrincipal: true, databaseId: true, expiresAt: true, grantedBy: true, granteeKey: true, granteeScope: true, id: true, imageId: true, updatedAt: true, updatedByPrincipal: true } } }) +useImageGrantQuery({ id: '', selection: { fields: { actions: true, createdAt: true, createdByPrincipal: true, databaseId: true, expiresAt: true, grantedBy: true, granteeKey: true, granteeScope: true, id: true, imageId: true, updatedAt: true, updatedByPrincipal: true } } }) +useCreateImageGrantMutation({ selection: { fields: { id: true } } }) +useUpdateImageGrantMutation({ selection: { fields: { id: true } } }) +useDeleteImageGrantMutation({}) +``` + +## Examples + +### List all imageGrants + +```typescript +const { data, isLoading } = useImageGrantsQuery({ + selection: { fields: { actions: true, createdAt: true, createdByPrincipal: true, databaseId: true, expiresAt: true, grantedBy: true, granteeKey: true, granteeScope: true, id: true, imageId: true, updatedAt: true, updatedByPrincipal: true } }, +}); +``` + +### Create a imageGrant + +```typescript +const { mutate } = useCreateImageGrantMutation({ + selection: { fields: { id: true } }, +}); +mutate({ actions: '', createdByPrincipal: '', databaseId: '', expiresAt: '', grantedBy: '', granteeKey: '', granteeScope: '', imageId: '', updatedByPrincipal: '' }); +``` diff --git a/.agents/skills/hooks-compute/references/image.md b/.agents/skills/hooks-compute/references/image.md new file mode 100644 index 0000000000..0360b23dac --- /dev/null +++ b/.agents/skills/hooks-compute/references/image.md @@ -0,0 +1,34 @@ +# image + + + +Container image catalog: images available to run as functions, resources, and builds + +## Usage + +```typescript +useImagesQuery({ selection: { fields: { createdAt: true, createdByPrincipal: true, databaseId: true, description: true, digest: true, expiresAt: true, id: true, isPublished: true, labels: true, metadata: true, name: true, ownerId: true, platformOnly: true, registryHost: true, repository: true, runtime: true, tag: true, updatedAt: true, updatedByPrincipal: true } } }) +useImageQuery({ id: '', selection: { fields: { createdAt: true, createdByPrincipal: true, databaseId: true, description: true, digest: true, expiresAt: true, id: true, isPublished: true, labels: true, metadata: true, name: true, ownerId: true, platformOnly: true, registryHost: true, repository: true, runtime: true, tag: true, updatedAt: true, updatedByPrincipal: true } } }) +useCreateImageMutation({ selection: { fields: { id: true } } }) +useUpdateImageMutation({ selection: { fields: { id: true } } }) +useDeleteImageMutation({}) +``` + +## Examples + +### List all images + +```typescript +const { data, isLoading } = useImagesQuery({ + selection: { fields: { createdAt: true, createdByPrincipal: true, databaseId: true, description: true, digest: true, expiresAt: true, id: true, isPublished: true, labels: true, metadata: true, name: true, ownerId: true, platformOnly: true, registryHost: true, repository: true, runtime: true, tag: true, updatedAt: true, updatedByPrincipal: true } }, +}); +``` + +### Create a image + +```typescript +const { mutate } = useCreateImageMutation({ + selection: { fields: { id: true } }, +}); +mutate({ createdByPrincipal: '', databaseId: '', description: '', digest: '', expiresAt: '', isPublished: '', labels: '', metadata: '', name: '', ownerId: '', platformOnly: '', registryHost: '', repository: '', runtime: '', tag: '', updatedByPrincipal: '' }); +``` diff --git a/.agents/skills/hooks-compute/references/namespace.md b/.agents/skills/hooks-compute/references/namespace.md index 54f84c83e2..bab3e3931c 100644 --- a/.agents/skills/hooks-compute/references/namespace.md +++ b/.agents/skills/hooks-compute/references/namespace.md @@ -7,8 +7,8 @@ Logical namespace containers for grouping secrets, config, functions, and other ## Usage ```typescript -useNamespacesQuery({ selection: { fields: { annotations: true, createdAt: true, databaseId: true, description: true, id: true, isActive: true, isManaged: true, labels: true, lastError: true, name: true, namespaceName: true, status: true, updatedAt: true } } }) -useNamespaceQuery({ id: '', selection: { fields: { annotations: true, createdAt: true, databaseId: true, description: true, id: true, isActive: true, isManaged: true, labels: true, lastError: true, name: true, namespaceName: true, status: true, updatedAt: true } } }) +useNamespacesQuery({ selection: { fields: { annotations: true, clusterId: true, createdAt: true, databaseId: true, description: true, id: true, isActive: true, isManaged: true, labels: true, lastError: true, name: true, namespaceName: true, status: true, updatedAt: true } } }) +useNamespaceQuery({ id: '', selection: { fields: { annotations: true, clusterId: true, createdAt: true, databaseId: true, description: true, id: true, isActive: true, isManaged: true, labels: true, lastError: true, name: true, namespaceName: true, status: true, updatedAt: true } } }) useCreateNamespaceMutation({ selection: { fields: { id: true } } }) useUpdateNamespaceMutation({ selection: { fields: { id: true } } }) useDeleteNamespaceMutation({}) @@ -20,7 +20,7 @@ useDeleteNamespaceMutation({}) ```typescript const { data, isLoading } = useNamespacesQuery({ - selection: { fields: { annotations: true, createdAt: true, databaseId: true, description: true, id: true, isActive: true, isManaged: true, labels: true, lastError: true, name: true, namespaceName: true, status: true, updatedAt: true } }, + selection: { fields: { annotations: true, clusterId: true, createdAt: true, databaseId: true, description: true, id: true, isActive: true, isManaged: true, labels: true, lastError: true, name: true, namespaceName: true, status: true, updatedAt: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useNamespacesQuery({ const { mutate } = useCreateNamespaceMutation({ selection: { fields: { id: true } }, }); -mutate({ annotations: '', databaseId: '', description: '', isActive: '', isManaged: '', labels: '', lastError: '', name: '', namespaceName: '', status: '' }); +mutate({ annotations: '', clusterId: '', databaseId: '', description: '', isActive: '', isManaged: '', labels: '', lastError: '', name: '', namespaceName: '', status: '' }); ``` diff --git a/.agents/skills/hooks-compute/references/platform-build-step.md b/.agents/skills/hooks-compute/references/platform-build-step.md new file mode 100644 index 0000000000..f8511b9cde --- /dev/null +++ b/.agents/skills/hooks-compute/references/platform-build-step.md @@ -0,0 +1,34 @@ +# platformBuildStep + + + +Partitioned append-only step and test results of a build, keyed into its log object + +## Usage + +```typescript +usePlatformBuildStepsQuery({ selection: { fields: { buildId: true, createdByPrincipal: true, exitCode: true, finishedAt: true, id: true, kind: true, logBytes: true, logOffset: true, name: true, parentSeq: true, recordedAt: true, seq: true, startedAt: true, status: true, summary: true } } }) +usePlatformBuildStepQuery({ id: '', selection: { fields: { buildId: true, createdByPrincipal: true, exitCode: true, finishedAt: true, id: true, kind: true, logBytes: true, logOffset: true, name: true, parentSeq: true, recordedAt: true, seq: true, startedAt: true, status: true, summary: true } } }) +useCreatePlatformBuildStepMutation({ selection: { fields: { id: true } } }) +useUpdatePlatformBuildStepMutation({ selection: { fields: { id: true } } }) +useDeletePlatformBuildStepMutation({}) +``` + +## Examples + +### List all platformBuildSteps + +```typescript +const { data, isLoading } = usePlatformBuildStepsQuery({ + selection: { fields: { buildId: true, createdByPrincipal: true, exitCode: true, finishedAt: true, id: true, kind: true, logBytes: true, logOffset: true, name: true, parentSeq: true, recordedAt: true, seq: true, startedAt: true, status: true, summary: true } }, +}); +``` + +### Create a platformBuildStep + +```typescript +const { mutate } = useCreatePlatformBuildStepMutation({ + selection: { fields: { id: true } }, +}); +mutate({ buildId: '', createdByPrincipal: '', exitCode: '', finishedAt: '', kind: '', logBytes: '', logOffset: '', name: '', parentSeq: '', recordedAt: '', seq: '', startedAt: '', status: '', summary: '' }); +``` diff --git a/.agents/skills/hooks-compute/references/platform-build.md b/.agents/skills/hooks-compute/references/platform-build.md new file mode 100644 index 0000000000..cf60bcc0e1 --- /dev/null +++ b/.agents/skills/hooks-compute/references/platform-build.md @@ -0,0 +1,34 @@ +# platformBuild + + + +One run of a repository workflow: its commit, its job, and what it produced + +## Usage + +```typescript +usePlatformBuildsQuery({ selection: { fields: { actorId: true, attempt: true, commitSha: true, conclusion: true, createdAt: true, createdByPrincipal: true, eventId: true, finishedAt: true, id: true, imageRef: true, jobId: true, logs: true, matrixKey: true, metadata: true, proposalId: true, ref: true, repositoryId: true, startedAt: true, status: true, updatedAt: true, updatedByPrincipal: true, workflowId: true } } }) +usePlatformBuildQuery({ id: '', selection: { fields: { actorId: true, attempt: true, commitSha: true, conclusion: true, createdAt: true, createdByPrincipal: true, eventId: true, finishedAt: true, id: true, imageRef: true, jobId: true, logs: true, matrixKey: true, metadata: true, proposalId: true, ref: true, repositoryId: true, startedAt: true, status: true, updatedAt: true, updatedByPrincipal: true, workflowId: true } } }) +useCreatePlatformBuildMutation({ selection: { fields: { id: true } } }) +useUpdatePlatformBuildMutation({ selection: { fields: { id: true } } }) +useDeletePlatformBuildMutation({}) +``` + +## Examples + +### List all platformBuilds + +```typescript +const { data, isLoading } = usePlatformBuildsQuery({ + selection: { fields: { actorId: true, attempt: true, commitSha: true, conclusion: true, createdAt: true, createdByPrincipal: true, eventId: true, finishedAt: true, id: true, imageRef: true, jobId: true, logs: true, matrixKey: true, metadata: true, proposalId: true, ref: true, repositoryId: true, startedAt: true, status: true, updatedAt: true, updatedByPrincipal: true, workflowId: true } }, +}); +``` + +### Create a platformBuild + +```typescript +const { mutate } = useCreatePlatformBuildMutation({ + selection: { fields: { id: true } }, +}); +mutate({ actorId: '', attempt: '', commitSha: '', conclusion: '', createdByPrincipal: '', eventId: '', finishedAt: '', imageRef: '', jobId: '', logs: '', matrixKey: '', metadata: '', proposalId: '', ref: '', repositoryId: '', startedAt: '', status: '', updatedByPrincipal: '', workflowId: '' }); +``` diff --git a/.agents/skills/hooks-compute/references/platform-builder-binding.md b/.agents/skills/hooks-compute/references/platform-builder-binding.md new file mode 100644 index 0000000000..fe049dc644 --- /dev/null +++ b/.agents/skills/hooks-compute/references/platform-builder-binding.md @@ -0,0 +1,34 @@ +# platformBuilderBinding + + + +Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST + +## Usage + +```typescript +usePlatformBuilderBindingsQuery({ selection: { fields: { createdAt: true, createdBy: true, createdByPrincipal: true, id: true, installationId: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) +usePlatformBuilderBindingQuery({ id: '', selection: { fields: { createdAt: true, createdBy: true, createdByPrincipal: true, id: true, installationId: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) +useCreatePlatformBuilderBindingMutation({ selection: { fields: { id: true } } }) +useUpdatePlatformBuilderBindingMutation({ selection: { fields: { id: true } } }) +useDeletePlatformBuilderBindingMutation({}) +``` + +## Examples + +### List all platformBuilderBindings + +```typescript +const { data, isLoading } = usePlatformBuilderBindingsQuery({ + selection: { fields: { createdAt: true, createdBy: true, createdByPrincipal: true, id: true, installationId: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, +}); +``` + +### Create a platformBuilderBinding + +```typescript +const { mutate } = useCreatePlatformBuilderBindingMutation({ + selection: { fields: { id: true } }, +}); +mutate({ createdBy: '', createdByPrincipal: '', installationId: '', lastError: '', metadata: '', namespaceId: '', observedHost: '', realm: '', status: '', updatedBy: '', updatedByPrincipal: '' }); +``` diff --git a/.agents/skills/hooks-compute/references/platform-function-definition.md b/.agents/skills/hooks-compute/references/platform-function-definition.md index f23e03dc7b..05b009fa7c 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, 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 } } }) +usePlatformFunctionDefinitionsQuery({ selection: { fields: { accessChannels: true, anonymousCallable: true, billable: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdByPrincipal: 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, requiredCapabilities: 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, updatedByPrincipal: true, volatile: true } } }) +usePlatformFunctionDefinitionQuery({ id: '', selection: { fields: { accessChannels: true, anonymousCallable: true, billable: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdByPrincipal: 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, requiredCapabilities: 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, updatedByPrincipal: 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, 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 } }, + selection: { fields: { accessChannels: true, anonymousCallable: true, billable: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdByPrincipal: 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, requiredCapabilities: 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, updatedByPrincipal: 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: '', requiredModules: '', requiredSecrets: '', resources: '', runtime: '', scaleMax: '', scaleMin: '', system: '', targetFunction: '', targetSchema: '', taskIdentifier: '', timeoutSeconds: '', volatile: '' }); +mutate({ accessChannels: '', anonymousCallable: '', billable: '', category: '', concurrency: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdByPrincipal: '', description: '', fnCategory: '', functionColumns: '', graphId: '', icon: '', image: '', inputs: '', integrations: '', isPublished: '', maxAttempts: '', memoryLimitBytes: '', memoryRequestBytes: '', moduleTable: '', name: '', outputs: '', payloadArgs: '', priority: '', props: '', protected: '', publishedAt: '', queueName: '', requiredBuckets: '', requiredCapabilities: '', requiredConfigs: '', requiredModels: '', requiredModules: '', requiredSecrets: '', resources: '', runtime: '', scaleMax: '', scaleMin: '', system: '', targetFunction: '', targetSchema: '', taskIdentifier: '', timeoutSeconds: '', updatedByPrincipal: '', volatile: '' }); ``` diff --git a/.agents/skills/hooks-compute/references/platform-function-deployment.md b/.agents/skills/hooks-compute/references/platform-function-deployment.md index f263fc6baa..7e9d0289cf 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, 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 } } }) +usePlatformFunctionDeploymentsQuery({ selection: { fields: { annotations: true, concurrency: true, createdAt: true, createdByPrincipal: 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, updatedByPrincipal: true } } }) +usePlatformFunctionDeploymentQuery({ id: '', selection: { fields: { annotations: true, concurrency: true, createdAt: true, createdByPrincipal: 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, updatedByPrincipal: 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, realm: 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, createdByPrincipal: 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, updatedByPrincipal: 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: '', realm: '', resources: '', revision: '', scaleMax: '', scaleMin: '', serviceName: '', serviceUrl: '', status: '', timeoutSeconds: '' }); +mutate({ annotations: '', concurrency: '', createdByPrincipal: '', errorCount: '', handlerName: '', image: '', imageVersion: '', labels: '', lastError: '', lastErrorAt: '', namespaceId: '', realm: '', resources: '', revision: '', scaleMax: '', scaleMin: '', serviceName: '', serviceUrl: '', status: '', timeoutSeconds: '', updatedByPrincipal: '' }); ``` diff --git a/.agents/skills/hooks-compute/references/platform-function-invocation.md b/.agents/skills/hooks-compute/references/platform-function-invocation.md index fb2a396e40..c2628cdaed 100644 --- a/.agents/skills/hooks-compute/references/platform-function-invocation.md +++ b/.agents/skills/hooks-compute/references/platform-function-invocation.md @@ -7,8 +7,8 @@ Function invocation log — INSERT to call a function (business-layer, metered). ## Usage ```typescript -usePlatformFunctionInvocationsQuery({ selection: { fields: { actorId: true, apiBindingId: true, channel: true, completedAt: true, createdAt: true, databaseId: true, definitionScope: true, durationMs: true, error: true, functionDefinitionId: true, graphExecutionId: true, id: true, jobId: true, parentInvocationId: true, payload: true, provenance: true, result: true, startedAt: true, status: true, taskIdentifier: true } } }) -usePlatformFunctionInvocationQuery({ id: '', selection: { fields: { actorId: true, apiBindingId: true, channel: true, completedAt: true, createdAt: true, databaseId: true, definitionScope: true, durationMs: true, error: true, functionDefinitionId: true, graphExecutionId: true, id: true, jobId: true, parentInvocationId: true, payload: true, provenance: true, result: true, startedAt: true, status: true, taskIdentifier: true } } }) +usePlatformFunctionInvocationsQuery({ selection: { fields: { actorId: true, apiBindingId: true, channel: true, completedAt: true, createdAt: true, createdByPrincipal: true, databaseId: true, definitionScope: true, durationMs: true, entityId: true, entityType: true, error: true, functionDefinitionId: true, graphExecutionId: true, id: true, jobId: true, organizationId: true, parentInvocationId: true, payload: true, principalId: true, provenance: true, result: true, startedAt: true, status: true, taskIdentifier: true } } }) +usePlatformFunctionInvocationQuery({ id: '', selection: { fields: { actorId: true, apiBindingId: true, channel: true, completedAt: true, createdAt: true, createdByPrincipal: true, databaseId: true, definitionScope: true, durationMs: true, entityId: true, entityType: true, error: true, functionDefinitionId: true, graphExecutionId: true, id: true, jobId: true, organizationId: true, parentInvocationId: true, payload: true, principalId: true, provenance: true, result: true, startedAt: true, status: true, taskIdentifier: true } } }) useCreatePlatformFunctionInvocationMutation({ selection: { fields: { id: true } } }) useUpdatePlatformFunctionInvocationMutation({ selection: { fields: { id: true } } }) useDeletePlatformFunctionInvocationMutation({}) @@ -20,7 +20,7 @@ useDeletePlatformFunctionInvocationMutation({}) ```typescript const { data, isLoading } = usePlatformFunctionInvocationsQuery({ - selection: { fields: { actorId: true, apiBindingId: true, channel: true, completedAt: true, createdAt: true, databaseId: true, definitionScope: true, durationMs: true, error: true, functionDefinitionId: true, graphExecutionId: true, id: true, jobId: true, parentInvocationId: true, payload: true, provenance: true, result: true, startedAt: true, status: true, taskIdentifier: true } }, + selection: { fields: { actorId: true, apiBindingId: true, channel: true, completedAt: true, createdAt: true, createdByPrincipal: true, databaseId: true, definitionScope: true, durationMs: true, entityId: true, entityType: true, error: true, functionDefinitionId: true, graphExecutionId: true, id: true, jobId: true, organizationId: true, parentInvocationId: true, payload: true, principalId: true, provenance: true, result: true, startedAt: true, status: true, taskIdentifier: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = usePlatformFunctionInvocationsQuery({ const { mutate } = useCreatePlatformFunctionInvocationMutation({ selection: { fields: { id: true } }, }); -mutate({ actorId: '', apiBindingId: '', channel: '', completedAt: '', databaseId: '', definitionScope: '', durationMs: '', error: '', functionDefinitionId: '', graphExecutionId: '', jobId: '', parentInvocationId: '', payload: '', provenance: '', result: '', startedAt: '', status: '', taskIdentifier: '' }); +mutate({ actorId: '', apiBindingId: '', channel: '', completedAt: '', createdByPrincipal: '', databaseId: '', definitionScope: '', durationMs: '', entityId: '', entityType: '', error: '', functionDefinitionId: '', graphExecutionId: '', jobId: '', organizationId: '', parentInvocationId: '', payload: '', principalId: '', provenance: '', result: '', startedAt: '', status: '', taskIdentifier: '' }); ``` diff --git a/.agents/skills/hooks-compute/references/platform-function-invocations-create-sync.md b/.agents/skills/hooks-compute/references/platform-function-invocations-create-sync.md new file mode 100644 index 0000000000..85f2e679bd --- /dev/null +++ b/.agents/skills/hooks-compute/references/platform-function-invocations-create-sync.md @@ -0,0 +1,20 @@ +# platformFunctionInvocationsCreateSync + + + +React Query mutation hook for platformFunctionInvocationsCreateSync + +## Usage + +```typescript +const { mutate } = usePlatformFunctionInvocationsCreateSyncMutation(); mutate({ input: { entityId: '', payload: '', provenance: '', routeBindingId: '', taskIdentifier: '' } }); +``` + +## Examples + +### Use usePlatformFunctionInvocationsCreateSyncMutation + +```typescript +const { mutate, isLoading } = usePlatformFunctionInvocationsCreateSyncMutation(); +mutate({ input: { entityId: '', payload: '', provenance: '', routeBindingId: '', taskIdentifier: '' } }); +``` diff --git a/.agents/skills/hooks-compute/references/platform-image-grant.md b/.agents/skills/hooks-compute/references/platform-image-grant.md new file mode 100644 index 0000000000..9f014013ca --- /dev/null +++ b/.agents/skills/hooks-compute/references/platform-image-grant.md @@ -0,0 +1,34 @@ +# platformImageGrant + + + +Grants that make a catalog image usable by one scope + +## Usage + +```typescript +usePlatformImageGrantsQuery({ selection: { fields: { actions: true, createdAt: true, createdByPrincipal: true, expiresAt: true, grantedBy: true, granteeKey: true, granteeScope: true, id: true, imageId: true, updatedAt: true, updatedByPrincipal: true } } }) +usePlatformImageGrantQuery({ id: '', selection: { fields: { actions: true, createdAt: true, createdByPrincipal: true, expiresAt: true, grantedBy: true, granteeKey: true, granteeScope: true, id: true, imageId: true, updatedAt: true, updatedByPrincipal: true } } }) +useCreatePlatformImageGrantMutation({ selection: { fields: { id: true } } }) +useUpdatePlatformImageGrantMutation({ selection: { fields: { id: true } } }) +useDeletePlatformImageGrantMutation({}) +``` + +## Examples + +### List all platformImageGrants + +```typescript +const { data, isLoading } = usePlatformImageGrantsQuery({ + selection: { fields: { actions: true, createdAt: true, createdByPrincipal: true, expiresAt: true, grantedBy: true, granteeKey: true, granteeScope: true, id: true, imageId: true, updatedAt: true, updatedByPrincipal: true } }, +}); +``` + +### Create a platformImageGrant + +```typescript +const { mutate } = useCreatePlatformImageGrantMutation({ + selection: { fields: { id: true } }, +}); +mutate({ actions: '', createdByPrincipal: '', expiresAt: '', grantedBy: '', granteeKey: '', granteeScope: '', imageId: '', updatedByPrincipal: '' }); +``` diff --git a/.agents/skills/hooks-compute/references/platform-image.md b/.agents/skills/hooks-compute/references/platform-image.md new file mode 100644 index 0000000000..ce710de7f0 --- /dev/null +++ b/.agents/skills/hooks-compute/references/platform-image.md @@ -0,0 +1,34 @@ +# platformImage + + + +Container image catalog: images available to run as functions, resources, and builds + +## Usage + +```typescript +usePlatformImagesQuery({ selection: { fields: { createdAt: true, createdByPrincipal: true, description: true, digest: true, expiresAt: true, id: true, isPublished: true, labels: true, metadata: true, name: true, ownerId: true, platformOnly: true, registryHost: true, repository: true, runtime: true, tag: true, updatedAt: true, updatedByPrincipal: true } } }) +usePlatformImageQuery({ id: '', selection: { fields: { createdAt: true, createdByPrincipal: true, description: true, digest: true, expiresAt: true, id: true, isPublished: true, labels: true, metadata: true, name: true, ownerId: true, platformOnly: true, registryHost: true, repository: true, runtime: true, tag: true, updatedAt: true, updatedByPrincipal: true } } }) +useCreatePlatformImageMutation({ selection: { fields: { id: true } } }) +useUpdatePlatformImageMutation({ selection: { fields: { id: true } } }) +useDeletePlatformImageMutation({}) +``` + +## Examples + +### List all platformImages + +```typescript +const { data, isLoading } = usePlatformImagesQuery({ + selection: { fields: { createdAt: true, createdByPrincipal: true, description: true, digest: true, expiresAt: true, id: true, isPublished: true, labels: true, metadata: true, name: true, ownerId: true, platformOnly: true, registryHost: true, repository: true, runtime: true, tag: true, updatedAt: true, updatedByPrincipal: true } }, +}); +``` + +### Create a platformImage + +```typescript +const { mutate } = useCreatePlatformImageMutation({ + selection: { fields: { id: true } }, +}); +mutate({ createdByPrincipal: '', description: '', digest: '', expiresAt: '', isPublished: '', labels: '', metadata: '', name: '', ownerId: '', platformOnly: '', registryHost: '', repository: '', runtime: '', tag: '', updatedByPrincipal: '' }); +``` diff --git a/.agents/skills/hooks-compute/references/platform-k-8-s-resource-kind.md b/.agents/skills/hooks-compute/references/platform-k-8-s-resource-kind.md new file mode 100644 index 0000000000..8fcb7f396b --- /dev/null +++ b/.agents/skills/hooks-compute/references/platform-k-8-s-resource-kind.md @@ -0,0 +1,34 @@ +# platformK8sResourceKind + + + +Kubernetes kind allow-list for DB-driven resources — merkle-versioned head over the infra store; the admission gate fails closed on kinds without an active row + +## Usage + +```typescript +usePlatformK8sResourceKindsQuery({ selection: { fields: { active: true, commitId: true, createdAt: true, definition: true, description: true, id: true, label: true, slug: true, storeId: true, updatedAt: true } } }) +usePlatformK8sResourceKindQuery({ id: '', selection: { fields: { active: true, commitId: true, createdAt: true, definition: true, description: true, id: true, label: true, slug: true, storeId: true, updatedAt: true } } }) +useCreatePlatformK8sResourceKindMutation({ selection: { fields: { id: true } } }) +useUpdatePlatformK8sResourceKindMutation({ selection: { fields: { id: true } } }) +useDeletePlatformK8sResourceKindMutation({}) +``` + +## Examples + +### List all platformK8sResourceKinds + +```typescript +const { data, isLoading } = usePlatformK8sResourceKindsQuery({ + selection: { fields: { active: true, commitId: true, createdAt: true, definition: true, description: true, id: true, label: true, slug: true, storeId: true, updatedAt: true } }, +}); +``` + +### Create a platformK8sResourceKind + +```typescript +const { mutate } = useCreatePlatformK8sResourceKindMutation({ + selection: { fields: { id: true } }, +}); +mutate({ active: '', commitId: '', definition: '', description: '', label: '', slug: '', storeId: '' }); +``` diff --git a/.agents/skills/hooks-compute/references/platform-k-8-s-spec-rule.md b/.agents/skills/hooks-compute/references/platform-k-8-s-spec-rule.md new file mode 100644 index 0000000000..cb8af57c12 --- /dev/null +++ b/.agents/skills/hooks-compute/references/platform-k-8-s-spec-rule.md @@ -0,0 +1,34 @@ +# platformK8sSpecRule + + + +Spec rulebook for DB-driven resources — merkle-versioned head over the infra store; enforced by the generated admission gate via infra_utils.check_resource_admission + +## Usage + +```typescript +usePlatformK8sSpecRulesQuery({ selection: { fields: { active: true, commitId: true, createdAt: true, definition: true, description: true, id: true, label: true, slug: true, storeId: true, updatedAt: true } } }) +usePlatformK8sSpecRuleQuery({ id: '', selection: { fields: { active: true, commitId: true, createdAt: true, definition: true, description: true, id: true, label: true, slug: true, storeId: true, updatedAt: true } } }) +useCreatePlatformK8sSpecRuleMutation({ selection: { fields: { id: true } } }) +useUpdatePlatformK8sSpecRuleMutation({ selection: { fields: { id: true } } }) +useDeletePlatformK8sSpecRuleMutation({}) +``` + +## Examples + +### List all platformK8sSpecRules + +```typescript +const { data, isLoading } = usePlatformK8sSpecRulesQuery({ + selection: { fields: { active: true, commitId: true, createdAt: true, definition: true, description: true, id: true, label: true, slug: true, storeId: true, updatedAt: true } }, +}); +``` + +### Create a platformK8sSpecRule + +```typescript +const { mutate } = useCreatePlatformK8sSpecRuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ active: '', commitId: '', definition: '', description: '', label: '', slug: '', storeId: '' }); +``` diff --git a/.agents/skills/hooks-compute/references/platform-namespace.md b/.agents/skills/hooks-compute/references/platform-namespace.md index af3ce13de2..ccdad6be48 100644 --- a/.agents/skills/hooks-compute/references/platform-namespace.md +++ b/.agents/skills/hooks-compute/references/platform-namespace.md @@ -7,8 +7,8 @@ Logical namespace containers for grouping secrets, config, functions, and other ## Usage ```typescript -usePlatformNamespacesQuery({ selection: { fields: { annotations: true, createdAt: true, description: true, id: true, isActive: true, isManaged: true, labels: true, lastError: true, name: true, namespaceName: true, status: true, updatedAt: true } } }) -usePlatformNamespaceQuery({ id: '', selection: { fields: { annotations: true, createdAt: true, description: true, id: true, isActive: true, isManaged: true, labels: true, lastError: true, name: true, namespaceName: true, status: true, updatedAt: true } } }) +usePlatformNamespacesQuery({ selection: { fields: { annotations: true, clusterId: true, createdAt: true, description: true, id: true, isActive: true, isManaged: true, labels: true, lastError: true, name: true, namespaceName: true, status: true, updatedAt: true } } }) +usePlatformNamespaceQuery({ id: '', selection: { fields: { annotations: true, clusterId: true, createdAt: true, description: true, id: true, isActive: true, isManaged: true, labels: true, lastError: true, name: true, namespaceName: true, status: true, updatedAt: true } } }) useCreatePlatformNamespaceMutation({ selection: { fields: { id: true } } }) useUpdatePlatformNamespaceMutation({ selection: { fields: { id: true } } }) useDeletePlatformNamespaceMutation({}) @@ -20,7 +20,7 @@ useDeletePlatformNamespaceMutation({}) ```typescript const { data, isLoading } = usePlatformNamespacesQuery({ - selection: { fields: { annotations: true, createdAt: true, description: true, id: true, isActive: true, isManaged: true, labels: true, lastError: true, name: true, namespaceName: true, status: true, updatedAt: true } }, + selection: { fields: { annotations: true, clusterId: true, createdAt: true, description: true, id: true, isActive: true, isManaged: true, labels: true, lastError: true, name: true, namespaceName: true, status: true, updatedAt: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = usePlatformNamespacesQuery({ const { mutate } = useCreatePlatformNamespaceMutation({ selection: { fields: { id: true } }, }); -mutate({ annotations: '', description: '', isActive: '', isManaged: '', labels: '', lastError: '', name: '', namespaceName: '', status: '' }); +mutate({ annotations: '', clusterId: '', description: '', isActive: '', isManaged: '', labels: '', lastError: '', name: '', namespaceName: '', status: '' }); ``` diff --git a/.agents/skills/hooks-compute/references/platform-proposal-comment.md b/.agents/skills/hooks-compute/references/platform-proposal-comment.md new file mode 100644 index 0000000000..96b29d7bac --- /dev/null +++ b/.agents/skills/hooks-compute/references/platform-proposal-comment.md @@ -0,0 +1,34 @@ +# platformProposalComment + + + +Comments on a local proposal, optionally anchored to a line + +## Usage + +```typescript +usePlatformProposalCommentsQuery({ selection: { fields: { actorId: true, attachments: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) +usePlatformProposalCommentQuery({ id: '', selection: { fields: { actorId: true, attachments: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) +useCreatePlatformProposalCommentMutation({ selection: { fields: { id: true } } }) +useUpdatePlatformProposalCommentMutation({ selection: { fields: { id: true } } }) +useDeletePlatformProposalCommentMutation({}) +``` + +## Examples + +### List all platformProposalComments + +```typescript +const { data, isLoading } = usePlatformProposalCommentsQuery({ + selection: { fields: { actorId: true, attachments: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, +}); +``` + +### Create a platformProposalComment + +```typescript +const { mutate } = useCreatePlatformProposalCommentMutation({ + selection: { fields: { id: true } }, +}); +mutate({ actorId: '', attachments: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', line: '', outdatedAt: '', path: '', pathTrgmSimilarity: '', proposalId: '', resolvedAt: '', search: '', searchScore: '', searchTsvRank: '', updatedBy: '', updatedByPrincipal: '' }); +``` diff --git a/.agents/skills/hooks-compute/references/platform-proposal-file-view.md b/.agents/skills/hooks-compute/references/platform-proposal-file-view.md new file mode 100644 index 0000000000..aa6a9c4765 --- /dev/null +++ b/.agents/skills/hooks-compute/references/platform-proposal-file-view.md @@ -0,0 +1,34 @@ +# platformProposalFileView + + + +Files a reviewer has read, pinned to the blob they read + +## Usage + +```typescript +usePlatformProposalFileViewsQuery({ selection: { fields: { blobSha: true, createdAt: true, createdByPrincipal: true, id: true, path: true, proposalId: true, reviewerId: true, updatedAt: true, updatedByPrincipal: true, viewedAt: true } } }) +usePlatformProposalFileViewQuery({ id: '', selection: { fields: { blobSha: true, createdAt: true, createdByPrincipal: true, id: true, path: true, proposalId: true, reviewerId: true, updatedAt: true, updatedByPrincipal: true, viewedAt: true } } }) +useCreatePlatformProposalFileViewMutation({ selection: { fields: { id: true } } }) +useUpdatePlatformProposalFileViewMutation({ selection: { fields: { id: true } } }) +useDeletePlatformProposalFileViewMutation({}) +``` + +## Examples + +### List all platformProposalFileViews + +```typescript +const { data, isLoading } = usePlatformProposalFileViewsQuery({ + selection: { fields: { blobSha: true, createdAt: true, createdByPrincipal: true, id: true, path: true, proposalId: true, reviewerId: true, updatedAt: true, updatedByPrincipal: true, viewedAt: true } }, +}); +``` + +### Create a platformProposalFileView + +```typescript +const { mutate } = useCreatePlatformProposalFileViewMutation({ + selection: { fields: { id: true } }, +}); +mutate({ blobSha: '', createdByPrincipal: '', path: '', proposalId: '', reviewerId: '', updatedByPrincipal: '', viewedAt: '' }); +``` diff --git a/.agents/skills/hooks-compute/references/platform-proposal-reaction.md b/.agents/skills/hooks-compute/references/platform-proposal-reaction.md new file mode 100644 index 0000000000..9290f76b2b --- /dev/null +++ b/.agents/skills/hooks-compute/references/platform-proposal-reaction.md @@ -0,0 +1,34 @@ +# platformProposalReaction + + + +Emoji reactions to a local proposal or one of its comments + +## Usage + +```typescript +usePlatformProposalReactionsQuery({ selection: { fields: { actorId: true, commentId: true, createdAt: true, createdByPrincipal: true, emoji: true, id: true, proposalId: true, updatedAt: true, updatedByPrincipal: true } } }) +usePlatformProposalReactionQuery({ id: '', selection: { fields: { actorId: true, commentId: true, createdAt: true, createdByPrincipal: true, emoji: true, id: true, proposalId: true, updatedAt: true, updatedByPrincipal: true } } }) +useCreatePlatformProposalReactionMutation({ selection: { fields: { id: true } } }) +useUpdatePlatformProposalReactionMutation({ selection: { fields: { id: true } } }) +useDeletePlatformProposalReactionMutation({}) +``` + +## Examples + +### List all platformProposalReactions + +```typescript +const { data, isLoading } = usePlatformProposalReactionsQuery({ + selection: { fields: { actorId: true, commentId: true, createdAt: true, createdByPrincipal: true, emoji: true, id: true, proposalId: true, updatedAt: true, updatedByPrincipal: true } }, +}); +``` + +### Create a platformProposalReaction + +```typescript +const { mutate } = useCreatePlatformProposalReactionMutation({ + selection: { fields: { id: true } }, +}); +mutate({ actorId: '', commentId: '', createdByPrincipal: '', emoji: '', proposalId: '', updatedByPrincipal: '' }); +``` diff --git a/.agents/skills/hooks-compute/references/platform-proposal-review.md b/.agents/skills/hooks-compute/references/platform-proposal-review.md new file mode 100644 index 0000000000..034e1bc7d2 --- /dev/null +++ b/.agents/skills/hooks-compute/references/platform-proposal-review.md @@ -0,0 +1,34 @@ +# platformProposalReview + + + +Review verdicts on a proposal, each pinned to the commit reviewed + +## Usage + +```typescript +usePlatformProposalReviewsQuery({ selection: { fields: { body: true, bodyTrgmSimilarity: true, commitSha: true, commitShaTrgmSimilarity: true, createdAt: true, createdByPrincipal: true, id: true, proposalId: true, reviewerId: true, search: true, searchScore: true, searchTsvRank: true, submittedAt: true, updatedAt: true, updatedByPrincipal: true, verdict: true, verdictTrgmSimilarity: true } } }) +usePlatformProposalReviewQuery({ id: '', selection: { fields: { body: true, bodyTrgmSimilarity: true, commitSha: true, commitShaTrgmSimilarity: true, createdAt: true, createdByPrincipal: true, id: true, proposalId: true, reviewerId: true, search: true, searchScore: true, searchTsvRank: true, submittedAt: true, updatedAt: true, updatedByPrincipal: true, verdict: true, verdictTrgmSimilarity: true } } }) +useCreatePlatformProposalReviewMutation({ selection: { fields: { id: true } } }) +useUpdatePlatformProposalReviewMutation({ selection: { fields: { id: true } } }) +useDeletePlatformProposalReviewMutation({}) +``` + +## Examples + +### List all platformProposalReviews + +```typescript +const { data, isLoading } = usePlatformProposalReviewsQuery({ + selection: { fields: { body: true, bodyTrgmSimilarity: true, commitSha: true, commitShaTrgmSimilarity: true, createdAt: true, createdByPrincipal: true, id: true, proposalId: true, reviewerId: true, search: true, searchScore: true, searchTsvRank: true, submittedAt: true, updatedAt: true, updatedByPrincipal: true, verdict: true, verdictTrgmSimilarity: true } }, +}); +``` + +### Create a platformProposalReview + +```typescript +const { mutate } = useCreatePlatformProposalReviewMutation({ + selection: { fields: { id: true } }, +}); +mutate({ body: '', bodyTrgmSimilarity: '', commitSha: '', commitShaTrgmSimilarity: '', createdByPrincipal: '', proposalId: '', reviewerId: '', search: '', searchScore: '', searchTsvRank: '', submittedAt: '', updatedByPrincipal: '', verdict: '', verdictTrgmSimilarity: '' }); +``` diff --git a/.agents/skills/hooks-compute/references/platform-proposal.md b/.agents/skills/hooks-compute/references/platform-proposal.md new file mode 100644 index 0000000000..a0a959571e --- /dev/null +++ b/.agents/skills/hooks-compute/references/platform-proposal.md @@ -0,0 +1,34 @@ +# platformProposal + + + +Proposals against a repository: issues, changes to merge, discussions and decisions + +## Usage + +```typescript +usePlatformProposalsQuery({ selection: { fields: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, decidedAt: true, dueAt: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) +usePlatformProposalQuery({ id: '', selection: { fields: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, decidedAt: true, dueAt: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) +useCreatePlatformProposalMutation({ selection: { fields: { id: true } } }) +useUpdatePlatformProposalMutation({ selection: { fields: { id: true } } }) +useDeletePlatformProposalMutation({}) +``` + +## Examples + +### List all platformProposals + +```typescript +const { data, isLoading } = usePlatformProposalsQuery({ + selection: { fields: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, decidedAt: true, dueAt: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, +}); +``` + +### Create a platformProposal + +```typescript +const { mutate } = useCreatePlatformProposalMutation({ + selection: { fields: { id: true } }, +}); +mutate({ actorId: '', body: '', bodyTrgmSimilarity: '', closedReason: '', closedReasonTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', decidedAt: '', dueAt: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', kind: '', kindTrgmSimilarity: '', labels: '', mergeCommit: '', mergeCommitTrgmSimilarity: '', mergeMethod: '', mergeMethodTrgmSimilarity: '', mergeRequestedAt: '', mergedAt: '', metadata: '', parentId: '', priority: '', repositoryId: '', resolution: '', resolutionTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', sourceRef: '', sourceRefTrgmSimilarity: '', status: '', statusTrgmSimilarity: '', targetRef: '', targetRefTrgmSimilarity: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }); +``` diff --git a/.agents/skills/hooks-compute/references/platform-proposals-chunk.md b/.agents/skills/hooks-compute/references/platform-proposals-chunk.md new file mode 100644 index 0000000000..6d85b6c4f9 --- /dev/null +++ b/.agents/skills/hooks-compute/references/platform-proposals-chunk.md @@ -0,0 +1,34 @@ +# platformProposalsChunk + + + +React Query hooks for PlatformProposalsChunk data operations + +## Usage + +```typescript +usePlatformProposalsChunksQuery({ selection: { fields: { actorId: true, body: true, chunkIndex: true, createdAt: true, embedding: true, embeddingVectorDistance: true, id: true, metadata: true, platformProposalsId: true, searchScore: true, updatedAt: true } } }) +usePlatformProposalsChunkQuery({ id: '', selection: { fields: { actorId: true, body: true, chunkIndex: true, createdAt: true, embedding: true, embeddingVectorDistance: true, id: true, metadata: true, platformProposalsId: true, searchScore: true, updatedAt: true } } }) +useCreatePlatformProposalsChunkMutation({ selection: { fields: { id: true } } }) +useUpdatePlatformProposalsChunkMutation({ selection: { fields: { id: true } } }) +useDeletePlatformProposalsChunkMutation({}) +``` + +## Examples + +### List all platformProposalsChunks + +```typescript +const { data, isLoading } = usePlatformProposalsChunksQuery({ + selection: { fields: { actorId: true, body: true, chunkIndex: true, createdAt: true, embedding: true, embeddingVectorDistance: true, id: true, metadata: true, platformProposalsId: true, searchScore: true, updatedAt: true } }, +}); +``` + +### Create a platformProposalsChunk + +```typescript +const { mutate } = useCreatePlatformProposalsChunkMutation({ + selection: { fields: { id: true } }, +}); +mutate({ actorId: '', body: '', chunkIndex: '', embedding: '', embeddingVectorDistance: '', metadata: '', platformProposalsId: '', searchScore: '' }); +``` diff --git a/.agents/skills/hooks-compute/references/platform-registry-binding.md b/.agents/skills/hooks-compute/references/platform-registry-binding.md new file mode 100644 index 0000000000..820679257b --- /dev/null +++ b/.agents/skills/hooks-compute/references/platform-registry-binding.md @@ -0,0 +1,34 @@ +# platformRegistryBinding + + + +Binds a namespace to an installed container registry for a lane (realm) — the reconciler projects that registry's credentials into the namespace as an image pull secret + +## Usage + +```typescript +usePlatformRegistryBindingsQuery({ selection: { fields: { createdAt: true, createdBy: true, createdByPrincipal: true, id: true, metadata: true, namespaceId: true, observedCredentialVersion: true, pullSecretName: true, realm: true, registryHost: true, registryId: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) +usePlatformRegistryBindingQuery({ id: '', selection: { fields: { createdAt: true, createdBy: true, createdByPrincipal: true, id: true, metadata: true, namespaceId: true, observedCredentialVersion: true, pullSecretName: true, realm: true, registryHost: true, registryId: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) +useCreatePlatformRegistryBindingMutation({ selection: { fields: { id: true } } }) +useUpdatePlatformRegistryBindingMutation({ selection: { fields: { id: true } } }) +useDeletePlatformRegistryBindingMutation({}) +``` + +## Examples + +### List all platformRegistryBindings + +```typescript +const { data, isLoading } = usePlatformRegistryBindingsQuery({ + selection: { fields: { createdAt: true, createdBy: true, createdByPrincipal: true, id: true, metadata: true, namespaceId: true, observedCredentialVersion: true, pullSecretName: true, realm: true, registryHost: true, registryId: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, +}); +``` + +### Create a platformRegistryBinding + +```typescript +const { mutate } = useCreatePlatformRegistryBindingMutation({ + selection: { fields: { id: true } }, +}); +mutate({ createdBy: '', createdByPrincipal: '', metadata: '', namespaceId: '', observedCredentialVersion: '', pullSecretName: '', realm: '', registryHost: '', registryId: '', status: '', updatedBy: '', updatedByPrincipal: '' }); +``` diff --git a/.agents/skills/hooks-compute/references/platform-registry-grant.md b/.agents/skills/hooks-compute/references/platform-registry-grant.md new file mode 100644 index 0000000000..e0a96f15ee --- /dev/null +++ b/.agents/skills/hooks-compute/references/platform-registry-grant.md @@ -0,0 +1,34 @@ +# platformRegistryGrant + + + +Grants that make a registry usable by one scope + +## Usage + +```typescript +usePlatformRegistryGrantsQuery({ selection: { fields: { actions: true, createdAt: true, createdByPrincipal: true, expiresAt: true, grantedBy: true, granteeKey: true, granteeScope: true, id: true, registryId: true, updatedAt: true, updatedByPrincipal: true } } }) +usePlatformRegistryGrantQuery({ id: '', selection: { fields: { actions: true, createdAt: true, createdByPrincipal: true, expiresAt: true, grantedBy: true, granteeKey: true, granteeScope: true, id: true, registryId: true, updatedAt: true, updatedByPrincipal: true } } }) +useCreatePlatformRegistryGrantMutation({ selection: { fields: { id: true } } }) +useUpdatePlatformRegistryGrantMutation({ selection: { fields: { id: true } } }) +useDeletePlatformRegistryGrantMutation({}) +``` + +## Examples + +### List all platformRegistryGrants + +```typescript +const { data, isLoading } = usePlatformRegistryGrantsQuery({ + selection: { fields: { actions: true, createdAt: true, createdByPrincipal: true, expiresAt: true, grantedBy: true, granteeKey: true, granteeScope: true, id: true, registryId: true, updatedAt: true, updatedByPrincipal: true } }, +}); +``` + +### Create a platformRegistryGrant + +```typescript +const { mutate } = useCreatePlatformRegistryGrantMutation({ + selection: { fields: { id: true } }, +}); +mutate({ actions: '', createdByPrincipal: '', expiresAt: '', grantedBy: '', granteeKey: '', granteeScope: '', registryId: '', updatedByPrincipal: '' }); +``` diff --git a/.agents/skills/hooks-compute/references/platform-registry.md b/.agents/skills/hooks-compute/references/platform-registry.md new file mode 100644 index 0000000000..ea3ddb129b --- /dev/null +++ b/.agents/skills/hooks-compute/references/platform-registry.md @@ -0,0 +1,34 @@ +# platformRegistry + + + +Artifact registries this scope pulls from or pushes to (OCI images, npm packages), platform-run or external + +## Usage + +```typescript +usePlatformRegistriesQuery({ selection: { fields: { authMode: true, basePath: true, createdAt: true, createdByPrincipal: true, credentialSecretName: true, host: true, id: true, installationId: true, isPublished: true, kind: true, labels: true, lastError: true, metadata: true, name: true, platformOnly: true, role: true, status: true, updatedAt: true, updatedByPrincipal: true } } }) +usePlatformRegistryQuery({ id: '', selection: { fields: { authMode: true, basePath: true, createdAt: true, createdByPrincipal: true, credentialSecretName: true, host: true, id: true, installationId: true, isPublished: true, kind: true, labels: true, lastError: true, metadata: true, name: true, platformOnly: true, role: true, status: true, updatedAt: true, updatedByPrincipal: true } } }) +useCreatePlatformRegistryMutation({ selection: { fields: { id: true } } }) +useUpdatePlatformRegistryMutation({ selection: { fields: { id: true } } }) +useDeletePlatformRegistryMutation({}) +``` + +## Examples + +### List all platformRegistries + +```typescript +const { data, isLoading } = usePlatformRegistriesQuery({ + selection: { fields: { authMode: true, basePath: true, createdAt: true, createdByPrincipal: true, credentialSecretName: true, host: true, id: true, installationId: true, isPublished: true, kind: true, labels: true, lastError: true, metadata: true, name: true, platformOnly: true, role: true, status: true, updatedAt: true, updatedByPrincipal: true } }, +}); +``` + +### Create a platformRegistry + +```typescript +const { mutate } = useCreatePlatformRegistryMutation({ + selection: { fields: { id: true } }, +}); +mutate({ authMode: '', basePath: '', createdByPrincipal: '', credentialSecretName: '', host: '', installationId: '', isPublished: '', kind: '', labels: '', lastError: '', metadata: '', name: '', platformOnly: '', role: '', status: '', updatedByPrincipal: '' }); +``` diff --git a/.agents/skills/hooks-compute/references/platform-repository-event.md b/.agents/skills/hooks-compute/references/platform-repository-event.md new file mode 100644 index 0000000000..f9e4a053fb --- /dev/null +++ b/.agents/skills/hooks-compute/references/platform-repository-event.md @@ -0,0 +1,34 @@ +# platformRepositoryEvent + + + +Normalized repository events from local hooks and external providers + +## Usage + +```typescript +usePlatformRepositoryEventsQuery({ selection: { fields: { actorId: true, commitSha: true, createdAt: true, createdByPrincipal: true, deliveryId: true, eventType: true, id: true, metadata: true, payload: true, ref: true, repositoryId: true, updatedAt: true, updatedByPrincipal: true } } }) +usePlatformRepositoryEventQuery({ id: '', selection: { fields: { actorId: true, commitSha: true, createdAt: true, createdByPrincipal: true, deliveryId: true, eventType: true, id: true, metadata: true, payload: true, ref: true, repositoryId: true, updatedAt: true, updatedByPrincipal: true } } }) +useCreatePlatformRepositoryEventMutation({ selection: { fields: { id: true } } }) +useUpdatePlatformRepositoryEventMutation({ selection: { fields: { id: true } } }) +useDeletePlatformRepositoryEventMutation({}) +``` + +## Examples + +### List all platformRepositoryEvents + +```typescript +const { data, isLoading } = usePlatformRepositoryEventsQuery({ + selection: { fields: { actorId: true, commitSha: true, createdAt: true, createdByPrincipal: true, deliveryId: true, eventType: true, id: true, metadata: true, payload: true, ref: true, repositoryId: true, updatedAt: true, updatedByPrincipal: true } }, +}); +``` + +### Create a platformRepositoryEvent + +```typescript +const { mutate } = useCreatePlatformRepositoryEventMutation({ + selection: { fields: { id: true } }, +}); +mutate({ actorId: '', commitSha: '', createdByPrincipal: '', deliveryId: '', eventType: '', metadata: '', payload: '', ref: '', repositoryId: '', updatedByPrincipal: '' }); +``` diff --git a/.agents/skills/hooks-compute/references/platform-repository-required-check.md b/.agents/skills/hooks-compute/references/platform-repository-required-check.md new file mode 100644 index 0000000000..90a8c018dc --- /dev/null +++ b/.agents/skills/hooks-compute/references/platform-repository-required-check.md @@ -0,0 +1,34 @@ +# platformRepositoryRequiredCheck + + + +Workflows required to pass before a repository proposal merges + +## Usage + +```typescript +usePlatformRepositoryRequiredChecksQuery({ selection: { fields: { createdAt: true, id: true, repositoryId: true, updatedAt: true, workflowId: true } } }) +usePlatformRepositoryRequiredCheckQuery({ id: '', selection: { fields: { createdAt: true, id: true, repositoryId: true, updatedAt: true, workflowId: true } } }) +useCreatePlatformRepositoryRequiredCheckMutation({ selection: { fields: { id: true } } }) +useUpdatePlatformRepositoryRequiredCheckMutation({ selection: { fields: { id: true } } }) +useDeletePlatformRepositoryRequiredCheckMutation({}) +``` + +## Examples + +### List all platformRepositoryRequiredChecks + +```typescript +const { data, isLoading } = usePlatformRepositoryRequiredChecksQuery({ + selection: { fields: { createdAt: true, id: true, repositoryId: true, updatedAt: true, workflowId: true } }, +}); +``` + +### Create a platformRepositoryRequiredCheck + +```typescript +const { mutate } = useCreatePlatformRepositoryRequiredCheckMutation({ + selection: { fields: { id: true } }, +}); +mutate({ repositoryId: '', workflowId: '' }); +``` diff --git a/.agents/skills/hooks-compute/references/platform-repository-workflow.md b/.agents/skills/hooks-compute/references/platform-repository-workflow.md new file mode 100644 index 0000000000..9660c2044a --- /dev/null +++ b/.agents/skills/hooks-compute/references/platform-repository-workflow.md @@ -0,0 +1,34 @@ +# platformRepositoryWorkflow + + + +Bindings from a repository event to the flow graph that should run + +## Usage + +```typescript +usePlatformRepositoryWorkflowsQuery({ selection: { fields: { cancelInProgress: true, concurrencyKey: true, createdAt: true, createdBy: true, createdByPrincipal: true, eventType: true, graphId: true, id: true, inputs: true, isEnabled: true, name: true, refPattern: true, repositoryId: true, requiredSecrets: true, slug: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) +usePlatformRepositoryWorkflowQuery({ id: '', selection: { fields: { cancelInProgress: true, concurrencyKey: true, createdAt: true, createdBy: true, createdByPrincipal: true, eventType: true, graphId: true, id: true, inputs: true, isEnabled: true, name: true, refPattern: true, repositoryId: true, requiredSecrets: true, slug: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) +useCreatePlatformRepositoryWorkflowMutation({ selection: { fields: { id: true } } }) +useUpdatePlatformRepositoryWorkflowMutation({ selection: { fields: { id: true } } }) +useDeletePlatformRepositoryWorkflowMutation({}) +``` + +## Examples + +### List all platformRepositoryWorkflows + +```typescript +const { data, isLoading } = usePlatformRepositoryWorkflowsQuery({ + selection: { fields: { cancelInProgress: true, concurrencyKey: true, createdAt: true, createdBy: true, createdByPrincipal: true, eventType: true, graphId: true, id: true, inputs: true, isEnabled: true, name: true, refPattern: true, repositoryId: true, requiredSecrets: true, slug: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, +}); +``` + +### Create a platformRepositoryWorkflow + +```typescript +const { mutate } = useCreatePlatformRepositoryWorkflowMutation({ + selection: { fields: { id: true } }, +}); +mutate({ cancelInProgress: '', concurrencyKey: '', createdBy: '', createdByPrincipal: '', eventType: '', graphId: '', inputs: '', isEnabled: '', name: '', refPattern: '', repositoryId: '', requiredSecrets: '', slug: '', updatedBy: '', updatedByPrincipal: '' }); +``` diff --git a/.agents/skills/hooks-compute/references/platform-repository.md b/.agents/skills/hooks-compute/references/platform-repository.md new file mode 100644 index 0000000000..7cab10e5de --- /dev/null +++ b/.agents/skills/hooks-compute/references/platform-repository.md @@ -0,0 +1,34 @@ +# platformRepository + + + +Source repositories, hosted locally or on an external provider + +## Usage + +```typescript +usePlatformRepositoriesQuery({ selection: { fields: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } } }) +usePlatformRepositoryQuery({ id: '', selection: { fields: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } } }) +useCreatePlatformRepositoryMutation({ selection: { fields: { id: true } } }) +useUpdatePlatformRepositoryMutation({ selection: { fields: { id: true } } }) +useDeletePlatformRepositoryMutation({}) +``` + +## Examples + +### List all platformRepositories + +```typescript +const { data, isLoading } = usePlatformRepositoriesQuery({ + selection: { fields: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } }, +}); +``` + +### Create a platformRepository + +```typescript +const { mutate } = useCreatePlatformRepositoryMutation({ + selection: { fields: { id: true } }, +}); +mutate({ cloneUrl: '', cloneUrlTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', defaultBranch: '', defaultBranchTrgmSimilarity: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', externalId: '', externalIdTrgmSimilarity: '', isArchived: '', metadata: '', name: '', nameTrgmSimilarity: '', ownerId: '', provider: '', providerTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', slug: '', slugTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '', visibility: '', visibilityTrgmSimilarity: '' }); +``` diff --git a/.agents/skills/hooks-compute/references/platform-resource-declared-capacity.md b/.agents/skills/hooks-compute/references/platform-resource-declared-capacity.md index b6bb58d82a..802a3d2f5a 100644 --- a/.agents/skills/hooks-compute/references/platform-resource-declared-capacity.md +++ b/.agents/skills/hooks-compute/references/platform-resource-declared-capacity.md @@ -7,7 +7,7 @@ React Query hooks for PlatformResourceDeclaredCapacity data operations ## Usage ```typescript -usePlatformResourceDeclaredCapacitiesQuery({ selection: { fields: { cpuLimitMillicores: true, cpuRequestMillicores: true, installationId: true, isTransient: true, kind: true, memoryLimitBytes: true, memoryRequestBytes: true, namespaceId: true, podCountMax: true, podCountMin: true, source: true, sourceId: true, storageSizeBytes: true } } }) +usePlatformResourceDeclaredCapacitiesQuery({ selection: { fields: { cpuLimitMillicores: true, cpuRequestMillicores: true, installationId: true, isTransient: true, kind: true, memoryLimitBytes: true, memoryRequestBytes: true, namespaceId: true, podCountMax: true, podCountMin: true, source: true, sourceId: true, storageSizeBytes: true, storageTotalBytes: true } } }) useCreatePlatformResourceDeclaredCapacityMutation({ selection: { fields: { id: true } } }) ``` @@ -17,7 +17,7 @@ useCreatePlatformResourceDeclaredCapacityMutation({ selection: { fields: { id: t ```typescript const { data, isLoading } = usePlatformResourceDeclaredCapacitiesQuery({ - selection: { fields: { cpuLimitMillicores: true, cpuRequestMillicores: true, installationId: true, isTransient: true, kind: true, memoryLimitBytes: true, memoryRequestBytes: true, namespaceId: true, podCountMax: true, podCountMin: true, source: true, sourceId: true, storageSizeBytes: true } }, + selection: { fields: { cpuLimitMillicores: true, cpuRequestMillicores: true, installationId: true, isTransient: true, kind: true, memoryLimitBytes: true, memoryRequestBytes: true, namespaceId: true, podCountMax: true, podCountMin: true, source: true, sourceId: true, storageSizeBytes: true, storageTotalBytes: true } }, }); ``` @@ -27,5 +27,5 @@ const { data, isLoading } = usePlatformResourceDeclaredCapacitiesQuery({ const { mutate } = useCreatePlatformResourceDeclaredCapacityMutation({ selection: { fields: { id: true } }, }); -mutate({ cpuLimitMillicores: '', cpuRequestMillicores: '', installationId: '', isTransient: '', kind: '', memoryLimitBytes: '', memoryRequestBytes: '', namespaceId: '', podCountMax: '', podCountMin: '', source: '', sourceId: '', storageSizeBytes: '' }); +mutate({ cpuLimitMillicores: '', cpuRequestMillicores: '', installationId: '', isTransient: '', kind: '', memoryLimitBytes: '', memoryRequestBytes: '', namespaceId: '', podCountMax: '', podCountMin: '', source: '', sourceId: '', storageSizeBytes: '', storageTotalBytes: '' }); ``` diff --git a/.agents/skills/hooks-compute/references/platform-resource-definition.md b/.agents/skills/hooks-compute/references/platform-resource-definition.md index ad29349664..3ea98424ec 100644 --- a/.agents/skills/hooks-compute/references/platform-resource-definition.md +++ b/.agents/skills/hooks-compute/references/platform-resource-definition.md @@ -7,8 +7,8 @@ Resource definitions — templates for resource kinds declaring default spec and ## Usage ```typescript -usePlatformResourceDefinitionsQuery({ selection: { fields: { annotations: true, createdAt: true, createdBy: true, defaultSpec: true, description: true, id: true, integrations: true, kind: true, labels: true, name: true, namespaceId: true, paramsSchema: true, requiredConfigs: true, requiredSecrets: true, slug: true, stepUpMinAge: true, updatedAt: true, updatedBy: true } } }) -usePlatformResourceDefinitionQuery({ id: '', selection: { fields: { annotations: true, createdAt: true, createdBy: true, defaultSpec: true, description: true, id: true, integrations: true, kind: true, labels: true, name: true, namespaceId: true, paramsSchema: true, requiredConfigs: true, requiredSecrets: true, slug: true, stepUpMinAge: true, updatedAt: true, updatedBy: true } } }) +usePlatformResourceDefinitionsQuery({ selection: { fields: { annotations: true, createdAt: true, createdBy: true, createdByPrincipal: true, defaultSpec: true, description: true, id: true, integrations: true, kind: true, labels: true, name: true, namespaceId: true, paramsSchema: true, requiredConfigs: true, requiredSecrets: true, slug: true, stepUpMinAge: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) +usePlatformResourceDefinitionQuery({ id: '', selection: { fields: { annotations: true, createdAt: true, createdBy: true, createdByPrincipal: true, defaultSpec: true, description: true, id: true, integrations: true, kind: true, labels: true, name: true, namespaceId: true, paramsSchema: true, requiredConfigs: true, requiredSecrets: true, slug: true, stepUpMinAge: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) useCreatePlatformResourceDefinitionMutation({ selection: { fields: { id: true } } }) useUpdatePlatformResourceDefinitionMutation({ selection: { fields: { id: true } } }) useDeletePlatformResourceDefinitionMutation({}) @@ -20,7 +20,7 @@ useDeletePlatformResourceDefinitionMutation({}) ```typescript const { data, isLoading } = usePlatformResourceDefinitionsQuery({ - selection: { fields: { annotations: true, createdAt: true, createdBy: true, defaultSpec: true, description: true, id: true, integrations: true, kind: true, labels: true, name: true, namespaceId: true, paramsSchema: true, requiredConfigs: true, requiredSecrets: true, slug: true, stepUpMinAge: true, updatedAt: true, updatedBy: true } }, + selection: { fields: { annotations: true, createdAt: true, createdBy: true, createdByPrincipal: true, defaultSpec: true, description: true, id: true, integrations: true, kind: true, labels: true, name: true, namespaceId: true, paramsSchema: true, requiredConfigs: true, requiredSecrets: true, slug: true, stepUpMinAge: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = usePlatformResourceDefinitionsQuery({ const { mutate } = useCreatePlatformResourceDefinitionMutation({ selection: { fields: { id: true } }, }); -mutate({ annotations: '', createdBy: '', defaultSpec: '', description: '', integrations: '', kind: '', labels: '', name: '', namespaceId: '', paramsSchema: '', requiredConfigs: '', requiredSecrets: '', slug: '', stepUpMinAge: '', updatedBy: '' }); +mutate({ annotations: '', createdBy: '', createdByPrincipal: '', defaultSpec: '', description: '', integrations: '', kind: '', labels: '', name: '', namespaceId: '', paramsSchema: '', requiredConfigs: '', requiredSecrets: '', slug: '', stepUpMinAge: '', updatedBy: '', updatedByPrincipal: '' }); ``` diff --git a/.agents/skills/hooks-compute/references/platform-resource-installation.md b/.agents/skills/hooks-compute/references/platform-resource-installation.md index b6b7eb6581..cdf7fbb243 100644 --- a/.agents/skills/hooks-compute/references/platform-resource-installation.md +++ b/.agents/skills/hooks-compute/references/platform-resource-installation.md @@ -7,8 +7,8 @@ Installed resource bundle ("release") — groups a set of resources; params are ## Usage ```typescript -usePlatformResourceInstallationsQuery({ selection: { fields: { commitId: true, createdAt: true, createdBy: true, id: true, name: true, namespaceId: true, params: true, revision: true, slug: true, status: true, storeId: true, updatedAt: true, updatedBy: true } } }) -usePlatformResourceInstallationQuery({ id: '', selection: { fields: { commitId: true, createdAt: true, createdBy: true, id: true, name: true, namespaceId: true, params: true, revision: true, slug: true, status: true, storeId: true, updatedAt: true, updatedBy: true } } }) +usePlatformResourceInstallationsQuery({ selection: { fields: { commitId: true, createdAt: true, createdBy: true, createdByPrincipal: true, id: true, name: true, namespaceId: true, params: true, revision: true, slug: true, status: true, storeId: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) +usePlatformResourceInstallationQuery({ id: '', selection: { fields: { commitId: true, createdAt: true, createdBy: true, createdByPrincipal: true, id: true, name: true, namespaceId: true, params: true, revision: true, slug: true, status: true, storeId: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) useCreatePlatformResourceInstallationMutation({ selection: { fields: { id: true } } }) useUpdatePlatformResourceInstallationMutation({ selection: { fields: { id: true } } }) useDeletePlatformResourceInstallationMutation({}) @@ -20,7 +20,7 @@ useDeletePlatformResourceInstallationMutation({}) ```typescript const { data, isLoading } = usePlatformResourceInstallationsQuery({ - selection: { fields: { commitId: true, createdAt: true, createdBy: true, id: true, name: true, namespaceId: true, params: true, revision: true, slug: true, status: true, storeId: true, updatedAt: true, updatedBy: true } }, + selection: { fields: { commitId: true, createdAt: true, createdBy: true, createdByPrincipal: true, id: true, name: true, namespaceId: true, params: true, revision: true, slug: true, status: true, storeId: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = usePlatformResourceInstallationsQuery({ const { mutate } = useCreatePlatformResourceInstallationMutation({ selection: { fields: { id: true } }, }); -mutate({ commitId: '', createdBy: '', name: '', namespaceId: '', params: '', revision: '', slug: '', status: '', storeId: '', updatedBy: '' }); +mutate({ commitId: '', createdBy: '', createdByPrincipal: '', name: '', namespaceId: '', params: '', revision: '', slug: '', status: '', storeId: '', updatedBy: '', updatedByPrincipal: '' }); ``` diff --git a/.agents/skills/hooks-compute/references/platform-resource-observed-storage.md b/.agents/skills/hooks-compute/references/platform-resource-observed-storage.md new file mode 100644 index 0000000000..faa5c6c104 --- /dev/null +++ b/.agents/skills/hooks-compute/references/platform-resource-observed-storage.md @@ -0,0 +1,31 @@ +# platformResourceObservedStorage + + + +React Query hooks for PlatformResourceObservedStorage data operations + +## Usage + +```typescript +usePlatformResourceObservedStoragesQuery({ selection: { fields: { capacity: true, capacityBytes: true, claimName: true, declaredStorageClass: true, declaredStorageSizeBytes: true, declaredStorageTotalBytes: true, installationId: true, isBound: true, kind: true, namespaceId: true, phase: true, requested: true, requestedBytes: true, resourceId: true, resourceStatus: true, slug: true, storageClass: true, storageName: true } } }) +useCreatePlatformResourceObservedStorageMutation({ selection: { fields: { id: true } } }) +``` + +## Examples + +### List all platformResourceObservedStorages + +```typescript +const { data, isLoading } = usePlatformResourceObservedStoragesQuery({ + selection: { fields: { capacity: true, capacityBytes: true, claimName: true, declaredStorageClass: true, declaredStorageSizeBytes: true, declaredStorageTotalBytes: true, installationId: true, isBound: true, kind: true, namespaceId: true, phase: true, requested: true, requestedBytes: true, resourceId: true, resourceStatus: true, slug: true, storageClass: true, storageName: true } }, +}); +``` + +### Create a platformResourceObservedStorage + +```typescript +const { mutate } = useCreatePlatformResourceObservedStorageMutation({ + selection: { fields: { id: true } }, +}); +mutate({ capacity: '', capacityBytes: '', claimName: '', declaredStorageClass: '', declaredStorageSizeBytes: '', declaredStorageTotalBytes: '', installationId: '', isBound: '', kind: '', namespaceId: '', phase: '', requested: '', requestedBytes: '', resourceId: '', resourceStatus: '', slug: '', storageClass: '', storageName: '' }); +``` diff --git a/.agents/skills/hooks-compute/references/platform-resource.md b/.agents/skills/hooks-compute/references/platform-resource.md index 349c1b6dab..594c5ae5f0 100644 --- a/.agents/skills/hooks-compute/references/platform-resource.md +++ b/.agents/skills/hooks-compute/references/platform-resource.md @@ -7,8 +7,8 @@ Unified K8s resource declarations — stores desired state (spec) and observed s ## Usage ```typescript -usePlatformResourcesQuery({ selection: { fields: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, errorCount: true, id: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusObserved: true, storageClass: true, storageSizeBytes: true, updatedAt: true, updatedBy: true } } }) -usePlatformResourceQuery({ id: '', selection: { fields: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, errorCount: true, id: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusObserved: true, storageClass: true, storageSizeBytes: true, updatedAt: true, updatedBy: true } } }) +usePlatformResourcesQuery({ selection: { fields: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) +usePlatformResourceQuery({ id: '', selection: { fields: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) useCreatePlatformResourceMutation({ selection: { fields: { id: true } } }) useUpdatePlatformResourceMutation({ selection: { fields: { id: true } } }) useDeletePlatformResourceMutation({}) @@ -20,7 +20,7 @@ useDeletePlatformResourceMutation({}) ```typescript const { data, isLoading } = usePlatformResourcesQuery({ - selection: { fields: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, errorCount: true, id: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusObserved: true, storageClass: true, storageSizeBytes: true, updatedAt: true, updatedBy: true } }, + selection: { fields: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = usePlatformResourcesQuery({ const { mutate } = useCreatePlatformResourceMutation({ selection: { fields: { id: true } }, }); -mutate({ annotations: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', errorCount: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusObserved: '', storageClass: '', storageSizeBytes: '', updatedBy: '' }); +mutate({ annotations: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', createdByPrincipal: '', errorCount: '', imageRef: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusObserved: '', storageClass: '', storageSizeBytes: '', storageTotalBytes: '', updatedBy: '', updatedByPrincipal: '' }); ``` diff --git a/.agents/skills/hooks-compute/references/platform-resources-health.md b/.agents/skills/hooks-compute/references/platform-resources-health.md index 0c306628ca..21c583cfbb 100644 --- a/.agents/skills/hooks-compute/references/platform-resources-health.md +++ b/.agents/skills/hooks-compute/references/platform-resources-health.md @@ -7,8 +7,8 @@ React Query hooks for PlatformResourcesHealth data operations ## Usage ```typescript -usePlatformResourcesHealthsQuery({ selection: { fields: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, errorCount: true, id: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusDetail: true, statusObserved: true, storageClass: true, storageSizeBytes: true, updatedAt: true, updatedBy: true } } }) -usePlatformResourcesHealthQuery({ id: '', selection: { fields: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, errorCount: true, id: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusDetail: true, statusObserved: true, storageClass: true, storageSizeBytes: true, updatedAt: true, updatedBy: true } } }) +usePlatformResourcesHealthsQuery({ selection: { fields: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusDetail: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) +usePlatformResourcesHealthQuery({ id: '', selection: { fields: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusDetail: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) useCreatePlatformResourcesHealthMutation({ selection: { fields: { id: true } } }) useUpdatePlatformResourcesHealthMutation({ selection: { fields: { id: true } } }) useDeletePlatformResourcesHealthMutation({}) @@ -20,7 +20,7 @@ useDeletePlatformResourcesHealthMutation({}) ```typescript const { data, isLoading } = usePlatformResourcesHealthsQuery({ - selection: { fields: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, errorCount: true, id: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusDetail: true, statusObserved: true, storageClass: true, storageSizeBytes: true, updatedAt: true, updatedBy: true } }, + selection: { fields: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusDetail: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = usePlatformResourcesHealthsQuery({ const { mutate } = useCreatePlatformResourcesHealthMutation({ selection: { fields: { id: true } }, }); -mutate({ annotations: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', errorCount: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusDetail: '', statusObserved: '', storageClass: '', storageSizeBytes: '', updatedBy: '' }); +mutate({ annotations: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', createdByPrincipal: '', errorCount: '', imageRef: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusDetail: '', statusObserved: '', storageClass: '', storageSizeBytes: '', storageTotalBytes: '', updatedBy: '', updatedByPrincipal: '' }); ``` diff --git a/.agents/skills/hooks-compute/references/platform-webhook-endpoint.md b/.agents/skills/hooks-compute/references/platform-webhook-endpoint.md index fbfa3ab2cc..29474ae3fa 100644 --- a/.agents/skills/hooks-compute/references/platform-webhook-endpoint.md +++ b/.agents/skills/hooks-compute/references/platform-webhook-endpoint.md @@ -7,8 +7,8 @@ Webhook route authority: (host, path) -> function task_identifier invoked throug ## Usage ```typescript -usePlatformWebhookEndpointsQuery({ selection: { fields: { active: true, createdAt: true, createdBy: true, functionDefinitionId: true, host: true, id: true, namespaceId: true, path: true, provider: true, replayWindowSeconds: true, signingSecretName: true, updatedAt: true, updatedBy: true } } }) -usePlatformWebhookEndpointQuery({ id: '', selection: { fields: { active: true, createdAt: true, createdBy: true, functionDefinitionId: true, host: true, id: true, namespaceId: true, path: true, provider: true, replayWindowSeconds: true, signingSecretName: true, updatedAt: true, updatedBy: true } } }) +usePlatformWebhookEndpointsQuery({ selection: { fields: { active: true, createdAt: true, createdBy: true, createdByPrincipal: true, functionDefinitionId: true, host: true, id: true, namespaceId: true, path: true, provider: true, replayWindowSeconds: true, signingSecretName: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) +usePlatformWebhookEndpointQuery({ id: '', selection: { fields: { active: true, createdAt: true, createdBy: true, createdByPrincipal: true, functionDefinitionId: true, host: true, id: true, namespaceId: true, path: true, provider: true, replayWindowSeconds: true, signingSecretName: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) useCreatePlatformWebhookEndpointMutation({ selection: { fields: { id: true } } }) useUpdatePlatformWebhookEndpointMutation({ selection: { fields: { id: true } } }) useDeletePlatformWebhookEndpointMutation({}) @@ -20,7 +20,7 @@ useDeletePlatformWebhookEndpointMutation({}) ```typescript const { data, isLoading } = usePlatformWebhookEndpointsQuery({ - selection: { fields: { active: true, createdAt: true, createdBy: true, functionDefinitionId: true, host: true, id: true, namespaceId: true, path: true, provider: true, replayWindowSeconds: true, signingSecretName: true, updatedAt: true, updatedBy: true } }, + selection: { fields: { active: true, createdAt: true, createdBy: true, createdByPrincipal: true, functionDefinitionId: true, host: true, id: true, namespaceId: true, path: true, provider: true, replayWindowSeconds: true, signingSecretName: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = usePlatformWebhookEndpointsQuery({ const { mutate } = useCreatePlatformWebhookEndpointMutation({ selection: { fields: { id: true } }, }); -mutate({ active: '', createdBy: '', functionDefinitionId: '', host: '', namespaceId: '', path: '', provider: '', replayWindowSeconds: '', signingSecretName: '', updatedBy: '' }); +mutate({ active: '', createdBy: '', createdByPrincipal: '', functionDefinitionId: '', host: '', namespaceId: '', path: '', provider: '', replayWindowSeconds: '', signingSecretName: '', updatedBy: '', updatedByPrincipal: '' }); ``` diff --git a/.agents/skills/hooks-compute/references/proposal-comment.md b/.agents/skills/hooks-compute/references/proposal-comment.md new file mode 100644 index 0000000000..43828d4365 --- /dev/null +++ b/.agents/skills/hooks-compute/references/proposal-comment.md @@ -0,0 +1,34 @@ +# proposalComment + + + +Comments on a local proposal, optionally anchored to a line + +## Usage + +```typescript +useProposalCommentsQuery({ selection: { fields: { actorId: true, attachments: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) +useProposalCommentQuery({ id: '', selection: { fields: { actorId: true, attachments: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) +useCreateProposalCommentMutation({ selection: { fields: { id: true } } }) +useUpdateProposalCommentMutation({ selection: { fields: { id: true } } }) +useDeleteProposalCommentMutation({}) +``` + +## Examples + +### List all proposalComments + +```typescript +const { data, isLoading } = useProposalCommentsQuery({ + selection: { fields: { actorId: true, attachments: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, +}); +``` + +### Create a proposalComment + +```typescript +const { mutate } = useCreateProposalCommentMutation({ + selection: { fields: { id: true } }, +}); +mutate({ actorId: '', attachments: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', line: '', outdatedAt: '', path: '', pathTrgmSimilarity: '', proposalId: '', resolvedAt: '', search: '', searchScore: '', searchTsvRank: '', updatedBy: '', updatedByPrincipal: '' }); +``` diff --git a/.agents/skills/hooks-compute/references/proposal-file-view.md b/.agents/skills/hooks-compute/references/proposal-file-view.md new file mode 100644 index 0000000000..b105319809 --- /dev/null +++ b/.agents/skills/hooks-compute/references/proposal-file-view.md @@ -0,0 +1,34 @@ +# proposalFileView + + + +Files a reviewer has read, pinned to the blob they read + +## Usage + +```typescript +useProposalFileViewsQuery({ selection: { fields: { blobSha: true, createdAt: true, createdByPrincipal: true, databaseId: true, id: true, path: true, proposalId: true, reviewerId: true, updatedAt: true, updatedByPrincipal: true, viewedAt: true } } }) +useProposalFileViewQuery({ id: '', selection: { fields: { blobSha: true, createdAt: true, createdByPrincipal: true, databaseId: true, id: true, path: true, proposalId: true, reviewerId: true, updatedAt: true, updatedByPrincipal: true, viewedAt: true } } }) +useCreateProposalFileViewMutation({ selection: { fields: { id: true } } }) +useUpdateProposalFileViewMutation({ selection: { fields: { id: true } } }) +useDeleteProposalFileViewMutation({}) +``` + +## Examples + +### List all proposalFileViews + +```typescript +const { data, isLoading } = useProposalFileViewsQuery({ + selection: { fields: { blobSha: true, createdAt: true, createdByPrincipal: true, databaseId: true, id: true, path: true, proposalId: true, reviewerId: true, updatedAt: true, updatedByPrincipal: true, viewedAt: true } }, +}); +``` + +### Create a proposalFileView + +```typescript +const { mutate } = useCreateProposalFileViewMutation({ + selection: { fields: { id: true } }, +}); +mutate({ blobSha: '', createdByPrincipal: '', databaseId: '', path: '', proposalId: '', reviewerId: '', updatedByPrincipal: '', viewedAt: '' }); +``` diff --git a/.agents/skills/hooks-compute/references/proposal-reaction.md b/.agents/skills/hooks-compute/references/proposal-reaction.md new file mode 100644 index 0000000000..b323e32bc2 --- /dev/null +++ b/.agents/skills/hooks-compute/references/proposal-reaction.md @@ -0,0 +1,34 @@ +# proposalReaction + + + +Emoji reactions to a local proposal or one of its comments + +## Usage + +```typescript +useProposalReactionsQuery({ selection: { fields: { actorId: true, commentId: true, createdAt: true, createdByPrincipal: true, databaseId: true, emoji: true, id: true, proposalId: true, updatedAt: true, updatedByPrincipal: true } } }) +useProposalReactionQuery({ id: '', selection: { fields: { actorId: true, commentId: true, createdAt: true, createdByPrincipal: true, databaseId: true, emoji: true, id: true, proposalId: true, updatedAt: true, updatedByPrincipal: true } } }) +useCreateProposalReactionMutation({ selection: { fields: { id: true } } }) +useUpdateProposalReactionMutation({ selection: { fields: { id: true } } }) +useDeleteProposalReactionMutation({}) +``` + +## Examples + +### List all proposalReactions + +```typescript +const { data, isLoading } = useProposalReactionsQuery({ + selection: { fields: { actorId: true, commentId: true, createdAt: true, createdByPrincipal: true, databaseId: true, emoji: true, id: true, proposalId: true, updatedAt: true, updatedByPrincipal: true } }, +}); +``` + +### Create a proposalReaction + +```typescript +const { mutate } = useCreateProposalReactionMutation({ + selection: { fields: { id: true } }, +}); +mutate({ actorId: '', commentId: '', createdByPrincipal: '', databaseId: '', emoji: '', proposalId: '', updatedByPrincipal: '' }); +``` diff --git a/.agents/skills/hooks-compute/references/proposal-review.md b/.agents/skills/hooks-compute/references/proposal-review.md new file mode 100644 index 0000000000..af911300a6 --- /dev/null +++ b/.agents/skills/hooks-compute/references/proposal-review.md @@ -0,0 +1,34 @@ +# proposalReview + + + +Review verdicts on a proposal, each pinned to the commit reviewed + +## Usage + +```typescript +useProposalReviewsQuery({ selection: { fields: { body: true, bodyTrgmSimilarity: true, commitSha: true, commitShaTrgmSimilarity: true, createdAt: true, createdByPrincipal: true, databaseId: true, id: true, proposalId: true, reviewerId: true, search: true, searchScore: true, searchTsvRank: true, submittedAt: true, updatedAt: true, updatedByPrincipal: true, verdict: true, verdictTrgmSimilarity: true } } }) +useProposalReviewQuery({ id: '', selection: { fields: { body: true, bodyTrgmSimilarity: true, commitSha: true, commitShaTrgmSimilarity: true, createdAt: true, createdByPrincipal: true, databaseId: true, id: true, proposalId: true, reviewerId: true, search: true, searchScore: true, searchTsvRank: true, submittedAt: true, updatedAt: true, updatedByPrincipal: true, verdict: true, verdictTrgmSimilarity: true } } }) +useCreateProposalReviewMutation({ selection: { fields: { id: true } } }) +useUpdateProposalReviewMutation({ selection: { fields: { id: true } } }) +useDeleteProposalReviewMutation({}) +``` + +## Examples + +### List all proposalReviews + +```typescript +const { data, isLoading } = useProposalReviewsQuery({ + selection: { fields: { body: true, bodyTrgmSimilarity: true, commitSha: true, commitShaTrgmSimilarity: true, createdAt: true, createdByPrincipal: true, databaseId: true, id: true, proposalId: true, reviewerId: true, search: true, searchScore: true, searchTsvRank: true, submittedAt: true, updatedAt: true, updatedByPrincipal: true, verdict: true, verdictTrgmSimilarity: true } }, +}); +``` + +### Create a proposalReview + +```typescript +const { mutate } = useCreateProposalReviewMutation({ + selection: { fields: { id: true } }, +}); +mutate({ body: '', bodyTrgmSimilarity: '', commitSha: '', commitShaTrgmSimilarity: '', createdByPrincipal: '', databaseId: '', proposalId: '', reviewerId: '', search: '', searchScore: '', searchTsvRank: '', submittedAt: '', updatedByPrincipal: '', verdict: '', verdictTrgmSimilarity: '' }); +``` diff --git a/.agents/skills/hooks-compute/references/proposal.md b/.agents/skills/hooks-compute/references/proposal.md new file mode 100644 index 0000000000..1dabe08642 --- /dev/null +++ b/.agents/skills/hooks-compute/references/proposal.md @@ -0,0 +1,34 @@ +# proposal + + + +Proposals against a repository: issues, changes to merge, discussions and decisions + +## Usage + +```typescript +useProposalsQuery({ selection: { fields: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, decidedAt: true, dueAt: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) +useProposalQuery({ id: '', selection: { fields: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, decidedAt: true, dueAt: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) +useCreateProposalMutation({ selection: { fields: { id: true } } }) +useUpdateProposalMutation({ selection: { fields: { id: true } } }) +useDeleteProposalMutation({}) +``` + +## Examples + +### List all proposals + +```typescript +const { data, isLoading } = useProposalsQuery({ + selection: { fields: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, decidedAt: true, dueAt: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, +}); +``` + +### Create a proposal + +```typescript +const { mutate } = useCreateProposalMutation({ + selection: { fields: { id: true } }, +}); +mutate({ actorId: '', body: '', bodyTrgmSimilarity: '', closedReason: '', closedReasonTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', decidedAt: '', dueAt: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', kind: '', kindTrgmSimilarity: '', labels: '', mergeCommit: '', mergeCommitTrgmSimilarity: '', mergeMethod: '', mergeMethodTrgmSimilarity: '', mergeRequestedAt: '', mergedAt: '', metadata: '', parentId: '', priority: '', repositoryId: '', resolution: '', resolutionTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', sourceRef: '', sourceRefTrgmSimilarity: '', status: '', statusTrgmSimilarity: '', targetRef: '', targetRefTrgmSimilarity: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }); +``` diff --git a/.agents/skills/hooks-compute/references/proposals-chunk.md b/.agents/skills/hooks-compute/references/proposals-chunk.md new file mode 100644 index 0000000000..919f0535a5 --- /dev/null +++ b/.agents/skills/hooks-compute/references/proposals-chunk.md @@ -0,0 +1,34 @@ +# proposalsChunk + + + +React Query hooks for ProposalsChunk data operations + +## Usage + +```typescript +useProposalsChunksQuery({ selection: { fields: { actorId: true, body: true, chunkIndex: true, createdAt: true, databaseId: true, embedding: true, embeddingVectorDistance: true, id: true, metadata: true, proposalsId: true, searchScore: true, updatedAt: true } } }) +useProposalsChunkQuery({ id: '', selection: { fields: { actorId: true, body: true, chunkIndex: true, createdAt: true, databaseId: true, embedding: true, embeddingVectorDistance: true, id: true, metadata: true, proposalsId: true, searchScore: true, updatedAt: true } } }) +useCreateProposalsChunkMutation({ selection: { fields: { id: true } } }) +useUpdateProposalsChunkMutation({ selection: { fields: { id: true } } }) +useDeleteProposalsChunkMutation({}) +``` + +## Examples + +### List all proposalsChunks + +```typescript +const { data, isLoading } = useProposalsChunksQuery({ + selection: { fields: { actorId: true, body: true, chunkIndex: true, createdAt: true, databaseId: true, embedding: true, embeddingVectorDistance: true, id: true, metadata: true, proposalsId: true, searchScore: true, updatedAt: true } }, +}); +``` + +### Create a proposalsChunk + +```typescript +const { mutate } = useCreateProposalsChunkMutation({ + selection: { fields: { id: true } }, +}); +mutate({ actorId: '', body: '', chunkIndex: '', databaseId: '', embedding: '', embeddingVectorDistance: '', metadata: '', proposalsId: '', searchScore: '' }); +``` diff --git a/.agents/skills/hooks-compute/references/provision-bucket.md b/.agents/skills/hooks-compute/references/provision-bucket.md index e003fc5551..92740fefbd 100644 --- a/.agents/skills/hooks-compute/references/provision-bucket.md +++ b/.agents/skills/hooks-compute/references/provision-bucket.md @@ -2,10 +2,11 @@ -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. +Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. ## Usage diff --git a/.agents/skills/hooks-compute/references/registry-binding.md b/.agents/skills/hooks-compute/references/registry-binding.md new file mode 100644 index 0000000000..218f26f8d1 --- /dev/null +++ b/.agents/skills/hooks-compute/references/registry-binding.md @@ -0,0 +1,34 @@ +# registryBinding + + + +Binds a namespace to an installed container registry for a lane (realm) — the reconciler projects that registry's credentials into the namespace as an image pull secret + +## Usage + +```typescript +useRegistryBindingsQuery({ selection: { fields: { createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, id: true, metadata: true, namespaceId: true, observedCredentialVersion: true, pullSecretName: true, realm: true, registryHost: true, registryId: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) +useRegistryBindingQuery({ id: '', selection: { fields: { createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, id: true, metadata: true, namespaceId: true, observedCredentialVersion: true, pullSecretName: true, realm: true, registryHost: true, registryId: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) +useCreateRegistryBindingMutation({ selection: { fields: { id: true } } }) +useUpdateRegistryBindingMutation({ selection: { fields: { id: true } } }) +useDeleteRegistryBindingMutation({}) +``` + +## Examples + +### List all registryBindings + +```typescript +const { data, isLoading } = useRegistryBindingsQuery({ + selection: { fields: { createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, id: true, metadata: true, namespaceId: true, observedCredentialVersion: true, pullSecretName: true, realm: true, registryHost: true, registryId: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, +}); +``` + +### Create a registryBinding + +```typescript +const { mutate } = useCreateRegistryBindingMutation({ + selection: { fields: { id: true } }, +}); +mutate({ createdBy: '', createdByPrincipal: '', databaseId: '', metadata: '', namespaceId: '', observedCredentialVersion: '', pullSecretName: '', realm: '', registryHost: '', registryId: '', status: '', updatedBy: '', updatedByPrincipal: '' }); +``` diff --git a/.agents/skills/hooks-compute/references/registry-grant.md b/.agents/skills/hooks-compute/references/registry-grant.md new file mode 100644 index 0000000000..62705ea7e6 --- /dev/null +++ b/.agents/skills/hooks-compute/references/registry-grant.md @@ -0,0 +1,34 @@ +# registryGrant + + + +Grants that make a registry usable by one scope + +## Usage + +```typescript +useRegistryGrantsQuery({ selection: { fields: { actions: true, createdAt: true, createdByPrincipal: true, databaseId: true, expiresAt: true, grantedBy: true, granteeKey: true, granteeScope: true, id: true, registryId: true, updatedAt: true, updatedByPrincipal: true } } }) +useRegistryGrantQuery({ id: '', selection: { fields: { actions: true, createdAt: true, createdByPrincipal: true, databaseId: true, expiresAt: true, grantedBy: true, granteeKey: true, granteeScope: true, id: true, registryId: true, updatedAt: true, updatedByPrincipal: true } } }) +useCreateRegistryGrantMutation({ selection: { fields: { id: true } } }) +useUpdateRegistryGrantMutation({ selection: { fields: { id: true } } }) +useDeleteRegistryGrantMutation({}) +``` + +## Examples + +### List all registryGrants + +```typescript +const { data, isLoading } = useRegistryGrantsQuery({ + selection: { fields: { actions: true, createdAt: true, createdByPrincipal: true, databaseId: true, expiresAt: true, grantedBy: true, granteeKey: true, granteeScope: true, id: true, registryId: true, updatedAt: true, updatedByPrincipal: true } }, +}); +``` + +### Create a registryGrant + +```typescript +const { mutate } = useCreateRegistryGrantMutation({ + selection: { fields: { id: true } }, +}); +mutate({ actions: '', createdByPrincipal: '', databaseId: '', expiresAt: '', grantedBy: '', granteeKey: '', granteeScope: '', registryId: '', updatedByPrincipal: '' }); +``` diff --git a/.agents/skills/hooks-compute/references/registry.md b/.agents/skills/hooks-compute/references/registry.md new file mode 100644 index 0000000000..ef280fcb87 --- /dev/null +++ b/.agents/skills/hooks-compute/references/registry.md @@ -0,0 +1,34 @@ +# registry + + + +Artifact registries this scope pulls from or pushes to (OCI images, npm packages), platform-run or external + +## Usage + +```typescript +useRegistriesQuery({ selection: { fields: { authMode: true, basePath: true, createdAt: true, createdByPrincipal: true, credentialSecretName: true, databaseId: true, host: true, id: true, installationId: true, isPublished: true, kind: true, labels: true, lastError: true, metadata: true, name: true, platformOnly: true, role: true, status: true, updatedAt: true, updatedByPrincipal: true } } }) +useRegistryQuery({ id: '', selection: { fields: { authMode: true, basePath: true, createdAt: true, createdByPrincipal: true, credentialSecretName: true, databaseId: true, host: true, id: true, installationId: true, isPublished: true, kind: true, labels: true, lastError: true, metadata: true, name: true, platformOnly: true, role: true, status: true, updatedAt: true, updatedByPrincipal: true } } }) +useCreateRegistryMutation({ selection: { fields: { id: true } } }) +useUpdateRegistryMutation({ selection: { fields: { id: true } } }) +useDeleteRegistryMutation({}) +``` + +## Examples + +### List all registries + +```typescript +const { data, isLoading } = useRegistriesQuery({ + selection: { fields: { authMode: true, basePath: true, createdAt: true, createdByPrincipal: true, credentialSecretName: true, databaseId: true, host: true, id: true, installationId: true, isPublished: true, kind: true, labels: true, lastError: true, metadata: true, name: true, platformOnly: true, role: true, status: true, updatedAt: true, updatedByPrincipal: true } }, +}); +``` + +### Create a registry + +```typescript +const { mutate } = useCreateRegistryMutation({ + selection: { fields: { id: true } }, +}); +mutate({ authMode: '', basePath: '', createdByPrincipal: '', credentialSecretName: '', databaseId: '', host: '', installationId: '', isPublished: '', kind: '', labels: '', lastError: '', metadata: '', name: '', platformOnly: '', role: '', status: '', updatedByPrincipal: '' }); +``` diff --git a/.agents/skills/hooks-compute/references/repository-event.md b/.agents/skills/hooks-compute/references/repository-event.md new file mode 100644 index 0000000000..e259cb8bf7 --- /dev/null +++ b/.agents/skills/hooks-compute/references/repository-event.md @@ -0,0 +1,34 @@ +# repositoryEvent + + + +Normalized repository events from local hooks and external providers + +## Usage + +```typescript +useRepositoryEventsQuery({ selection: { fields: { actorId: true, commitSha: true, createdAt: true, createdByPrincipal: true, databaseId: true, deliveryId: true, eventType: true, id: true, metadata: true, payload: true, ref: true, repositoryId: true, updatedAt: true, updatedByPrincipal: true } } }) +useRepositoryEventQuery({ id: '', selection: { fields: { actorId: true, commitSha: true, createdAt: true, createdByPrincipal: true, databaseId: true, deliveryId: true, eventType: true, id: true, metadata: true, payload: true, ref: true, repositoryId: true, updatedAt: true, updatedByPrincipal: true } } }) +useCreateRepositoryEventMutation({ selection: { fields: { id: true } } }) +useUpdateRepositoryEventMutation({ selection: { fields: { id: true } } }) +useDeleteRepositoryEventMutation({}) +``` + +## Examples + +### List all repositoryEvents + +```typescript +const { data, isLoading } = useRepositoryEventsQuery({ + selection: { fields: { actorId: true, commitSha: true, createdAt: true, createdByPrincipal: true, databaseId: true, deliveryId: true, eventType: true, id: true, metadata: true, payload: true, ref: true, repositoryId: true, updatedAt: true, updatedByPrincipal: true } }, +}); +``` + +### Create a repositoryEvent + +```typescript +const { mutate } = useCreateRepositoryEventMutation({ + selection: { fields: { id: true } }, +}); +mutate({ actorId: '', commitSha: '', createdByPrincipal: '', databaseId: '', deliveryId: '', eventType: '', metadata: '', payload: '', ref: '', repositoryId: '', updatedByPrincipal: '' }); +``` diff --git a/.agents/skills/hooks-compute/references/repository-required-check.md b/.agents/skills/hooks-compute/references/repository-required-check.md new file mode 100644 index 0000000000..b76d86f3b7 --- /dev/null +++ b/.agents/skills/hooks-compute/references/repository-required-check.md @@ -0,0 +1,34 @@ +# repositoryRequiredCheck + + + +Workflows required to pass before a repository proposal merges + +## Usage + +```typescript +useRepositoryRequiredChecksQuery({ selection: { fields: { createdAt: true, databaseId: true, id: true, repositoryId: true, updatedAt: true, workflowId: true } } }) +useRepositoryRequiredCheckQuery({ id: '', selection: { fields: { createdAt: true, databaseId: true, id: true, repositoryId: true, updatedAt: true, workflowId: true } } }) +useCreateRepositoryRequiredCheckMutation({ selection: { fields: { id: true } } }) +useUpdateRepositoryRequiredCheckMutation({ selection: { fields: { id: true } } }) +useDeleteRepositoryRequiredCheckMutation({}) +``` + +## Examples + +### List all repositoryRequiredChecks + +```typescript +const { data, isLoading } = useRepositoryRequiredChecksQuery({ + selection: { fields: { createdAt: true, databaseId: true, id: true, repositoryId: true, updatedAt: true, workflowId: true } }, +}); +``` + +### Create a repositoryRequiredCheck + +```typescript +const { mutate } = useCreateRepositoryRequiredCheckMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', repositoryId: '', workflowId: '' }); +``` diff --git a/.agents/skills/hooks-compute/references/repository-workflow.md b/.agents/skills/hooks-compute/references/repository-workflow.md new file mode 100644 index 0000000000..75b6942af9 --- /dev/null +++ b/.agents/skills/hooks-compute/references/repository-workflow.md @@ -0,0 +1,34 @@ +# repositoryWorkflow + + + +Bindings from a repository event to the flow graph that should run + +## Usage + +```typescript +useRepositoryWorkflowsQuery({ selection: { fields: { cancelInProgress: true, concurrencyKey: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, eventType: true, graphId: true, id: true, inputs: true, isEnabled: true, name: true, refPattern: true, repositoryId: true, requiredSecrets: true, slug: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) +useRepositoryWorkflowQuery({ id: '', selection: { fields: { cancelInProgress: true, concurrencyKey: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, eventType: true, graphId: true, id: true, inputs: true, isEnabled: true, name: true, refPattern: true, repositoryId: true, requiredSecrets: true, slug: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) +useCreateRepositoryWorkflowMutation({ selection: { fields: { id: true } } }) +useUpdateRepositoryWorkflowMutation({ selection: { fields: { id: true } } }) +useDeleteRepositoryWorkflowMutation({}) +``` + +## Examples + +### List all repositoryWorkflows + +```typescript +const { data, isLoading } = useRepositoryWorkflowsQuery({ + selection: { fields: { cancelInProgress: true, concurrencyKey: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, eventType: true, graphId: true, id: true, inputs: true, isEnabled: true, name: true, refPattern: true, repositoryId: true, requiredSecrets: true, slug: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, +}); +``` + +### Create a repositoryWorkflow + +```typescript +const { mutate } = useCreateRepositoryWorkflowMutation({ + selection: { fields: { id: true } }, +}); +mutate({ cancelInProgress: '', concurrencyKey: '', createdBy: '', createdByPrincipal: '', databaseId: '', eventType: '', graphId: '', inputs: '', isEnabled: '', name: '', refPattern: '', repositoryId: '', requiredSecrets: '', slug: '', updatedBy: '', updatedByPrincipal: '' }); +``` diff --git a/.agents/skills/hooks-compute/references/repository.md b/.agents/skills/hooks-compute/references/repository.md new file mode 100644 index 0000000000..30eb2ec3f8 --- /dev/null +++ b/.agents/skills/hooks-compute/references/repository.md @@ -0,0 +1,34 @@ +# repository + + + +Source repositories, hosted locally or on an external provider + +## Usage + +```typescript +useRepositoriesQuery({ selection: { fields: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } } }) +useRepositoryQuery({ id: '', selection: { fields: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } } }) +useCreateRepositoryMutation({ selection: { fields: { id: true } } }) +useUpdateRepositoryMutation({ selection: { fields: { id: true } } }) +useDeleteRepositoryMutation({}) +``` + +## Examples + +### List all repositories + +```typescript +const { data, isLoading } = useRepositoriesQuery({ + selection: { fields: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } }, +}); +``` + +### Create a repository + +```typescript +const { mutate } = useCreateRepositoryMutation({ + selection: { fields: { id: true } }, +}); +mutate({ cloneUrl: '', cloneUrlTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', defaultBranch: '', defaultBranchTrgmSimilarity: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', externalId: '', externalIdTrgmSimilarity: '', isArchived: '', metadata: '', name: '', nameTrgmSimilarity: '', ownerId: '', provider: '', providerTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', slug: '', slugTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '', visibility: '', visibilityTrgmSimilarity: '' }); +``` diff --git a/.agents/skills/hooks-compute/references/resource-declared-capacity.md b/.agents/skills/hooks-compute/references/resource-declared-capacity.md index 0e6fa41d93..e2a64d8ac9 100644 --- a/.agents/skills/hooks-compute/references/resource-declared-capacity.md +++ b/.agents/skills/hooks-compute/references/resource-declared-capacity.md @@ -7,7 +7,7 @@ React Query hooks for ResourceDeclaredCapacity data operations ## Usage ```typescript -useResourceDeclaredCapacitiesQuery({ selection: { fields: { cpuLimitMillicores: true, cpuRequestMillicores: true, installationId: true, isTransient: true, kind: true, memoryLimitBytes: true, memoryRequestBytes: true, namespaceId: true, podCountMax: true, podCountMin: true, source: true, sourceId: true, storageSizeBytes: true } } }) +useResourceDeclaredCapacitiesQuery({ selection: { fields: { cpuLimitMillicores: true, cpuRequestMillicores: true, installationId: true, isTransient: true, kind: true, memoryLimitBytes: true, memoryRequestBytes: true, namespaceId: true, podCountMax: true, podCountMin: true, source: true, sourceId: true, storageSizeBytes: true, storageTotalBytes: true } } }) useCreateResourceDeclaredCapacityMutation({ selection: { fields: { id: true } } }) ``` @@ -17,7 +17,7 @@ useCreateResourceDeclaredCapacityMutation({ selection: { fields: { id: true } } ```typescript const { data, isLoading } = useResourceDeclaredCapacitiesQuery({ - selection: { fields: { cpuLimitMillicores: true, cpuRequestMillicores: true, installationId: true, isTransient: true, kind: true, memoryLimitBytes: true, memoryRequestBytes: true, namespaceId: true, podCountMax: true, podCountMin: true, source: true, sourceId: true, storageSizeBytes: true } }, + selection: { fields: { cpuLimitMillicores: true, cpuRequestMillicores: true, installationId: true, isTransient: true, kind: true, memoryLimitBytes: true, memoryRequestBytes: true, namespaceId: true, podCountMax: true, podCountMin: true, source: true, sourceId: true, storageSizeBytes: true, storageTotalBytes: true } }, }); ``` @@ -27,5 +27,5 @@ const { data, isLoading } = useResourceDeclaredCapacitiesQuery({ const { mutate } = useCreateResourceDeclaredCapacityMutation({ selection: { fields: { id: true } }, }); -mutate({ cpuLimitMillicores: '', cpuRequestMillicores: '', installationId: '', isTransient: '', kind: '', memoryLimitBytes: '', memoryRequestBytes: '', namespaceId: '', podCountMax: '', podCountMin: '', source: '', sourceId: '', storageSizeBytes: '' }); +mutate({ cpuLimitMillicores: '', cpuRequestMillicores: '', installationId: '', isTransient: '', kind: '', memoryLimitBytes: '', memoryRequestBytes: '', namespaceId: '', podCountMax: '', podCountMin: '', source: '', sourceId: '', storageSizeBytes: '', storageTotalBytes: '' }); ``` diff --git a/.agents/skills/hooks-compute/references/resource-definition.md b/.agents/skills/hooks-compute/references/resource-definition.md index 9718e00032..9d62a46a20 100644 --- a/.agents/skills/hooks-compute/references/resource-definition.md +++ b/.agents/skills/hooks-compute/references/resource-definition.md @@ -7,8 +7,8 @@ Resource definitions — templates for resource kinds declaring default spec and ## Usage ```typescript -useResourceDefinitionsQuery({ selection: { fields: { annotations: true, createdAt: true, createdBy: true, databaseId: true, defaultSpec: true, description: true, id: true, integrations: true, kind: true, labels: true, name: true, namespaceId: true, paramsSchema: true, requiredConfigs: true, requiredSecrets: true, slug: true, stepUpMinAge: true, updatedAt: true, updatedBy: true } } }) -useResourceDefinitionQuery({ id: '', selection: { fields: { annotations: true, createdAt: true, createdBy: true, databaseId: true, defaultSpec: true, description: true, id: true, integrations: true, kind: true, labels: true, name: true, namespaceId: true, paramsSchema: true, requiredConfigs: true, requiredSecrets: true, slug: true, stepUpMinAge: true, updatedAt: true, updatedBy: true } } }) +useResourceDefinitionsQuery({ selection: { fields: { annotations: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, defaultSpec: true, description: true, id: true, integrations: true, kind: true, labels: true, name: true, namespaceId: true, paramsSchema: true, requiredConfigs: true, requiredSecrets: true, slug: true, stepUpMinAge: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) +useResourceDefinitionQuery({ id: '', selection: { fields: { annotations: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, defaultSpec: true, description: true, id: true, integrations: true, kind: true, labels: true, name: true, namespaceId: true, paramsSchema: true, requiredConfigs: true, requiredSecrets: true, slug: true, stepUpMinAge: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) useCreateResourceDefinitionMutation({ selection: { fields: { id: true } } }) useUpdateResourceDefinitionMutation({ selection: { fields: { id: true } } }) useDeleteResourceDefinitionMutation({}) @@ -20,7 +20,7 @@ useDeleteResourceDefinitionMutation({}) ```typescript const { data, isLoading } = useResourceDefinitionsQuery({ - selection: { fields: { annotations: true, createdAt: true, createdBy: true, databaseId: true, defaultSpec: true, description: true, id: true, integrations: true, kind: true, labels: true, name: true, namespaceId: true, paramsSchema: true, requiredConfigs: true, requiredSecrets: true, slug: true, stepUpMinAge: true, updatedAt: true, updatedBy: true } }, + selection: { fields: { annotations: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, defaultSpec: true, description: true, id: true, integrations: true, kind: true, labels: true, name: true, namespaceId: true, paramsSchema: true, requiredConfigs: true, requiredSecrets: true, slug: true, stepUpMinAge: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useResourceDefinitionsQuery({ const { mutate } = useCreateResourceDefinitionMutation({ selection: { fields: { id: true } }, }); -mutate({ annotations: '', createdBy: '', databaseId: '', defaultSpec: '', description: '', integrations: '', kind: '', labels: '', name: '', namespaceId: '', paramsSchema: '', requiredConfigs: '', requiredSecrets: '', slug: '', stepUpMinAge: '', updatedBy: '' }); +mutate({ annotations: '', createdBy: '', createdByPrincipal: '', databaseId: '', defaultSpec: '', description: '', integrations: '', kind: '', labels: '', name: '', namespaceId: '', paramsSchema: '', requiredConfigs: '', requiredSecrets: '', slug: '', stepUpMinAge: '', updatedBy: '', updatedByPrincipal: '' }); ``` diff --git a/.agents/skills/hooks-compute/references/resource-installation.md b/.agents/skills/hooks-compute/references/resource-installation.md index ba003347f4..e480002930 100644 --- a/.agents/skills/hooks-compute/references/resource-installation.md +++ b/.agents/skills/hooks-compute/references/resource-installation.md @@ -7,8 +7,8 @@ Installed resource bundle ("release") — groups a set of resources; params are ## Usage ```typescript -useResourceInstallationsQuery({ selection: { fields: { commitId: true, createdAt: true, createdBy: true, databaseId: true, id: true, name: true, namespaceId: true, params: true, revision: true, slug: true, status: true, storeId: true, updatedAt: true, updatedBy: true } } }) -useResourceInstallationQuery({ id: '', selection: { fields: { commitId: true, createdAt: true, createdBy: true, databaseId: true, id: true, name: true, namespaceId: true, params: true, revision: true, slug: true, status: true, storeId: true, updatedAt: true, updatedBy: true } } }) +useResourceInstallationsQuery({ selection: { fields: { commitId: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, id: true, name: true, namespaceId: true, params: true, revision: true, slug: true, status: true, storeId: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) +useResourceInstallationQuery({ id: '', selection: { fields: { commitId: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, id: true, name: true, namespaceId: true, params: true, revision: true, slug: true, status: true, storeId: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) useCreateResourceInstallationMutation({ selection: { fields: { id: true } } }) useUpdateResourceInstallationMutation({ selection: { fields: { id: true } } }) useDeleteResourceInstallationMutation({}) @@ -20,7 +20,7 @@ useDeleteResourceInstallationMutation({}) ```typescript const { data, isLoading } = useResourceInstallationsQuery({ - selection: { fields: { commitId: true, createdAt: true, createdBy: true, databaseId: true, id: true, name: true, namespaceId: true, params: true, revision: true, slug: true, status: true, storeId: true, updatedAt: true, updatedBy: true } }, + selection: { fields: { commitId: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, id: true, name: true, namespaceId: true, params: true, revision: true, slug: true, status: true, storeId: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useResourceInstallationsQuery({ const { mutate } = useCreateResourceInstallationMutation({ selection: { fields: { id: true } }, }); -mutate({ commitId: '', createdBy: '', databaseId: '', name: '', namespaceId: '', params: '', revision: '', slug: '', status: '', storeId: '', updatedBy: '' }); +mutate({ commitId: '', createdBy: '', createdByPrincipal: '', databaseId: '', name: '', namespaceId: '', params: '', revision: '', slug: '', status: '', storeId: '', updatedBy: '', updatedByPrincipal: '' }); ``` diff --git a/.agents/skills/hooks-compute/references/resource-observed-storage.md b/.agents/skills/hooks-compute/references/resource-observed-storage.md new file mode 100644 index 0000000000..c16534b2a5 --- /dev/null +++ b/.agents/skills/hooks-compute/references/resource-observed-storage.md @@ -0,0 +1,31 @@ +# resourceObservedStorage + + + +React Query hooks for ResourceObservedStorage data operations + +## Usage + +```typescript +useResourceObservedStoragesQuery({ selection: { fields: { capacity: true, capacityBytes: true, claimName: true, declaredStorageClass: true, declaredStorageSizeBytes: true, declaredStorageTotalBytes: true, installationId: true, isBound: true, kind: true, namespaceId: true, phase: true, requested: true, requestedBytes: true, resourceId: true, resourceStatus: true, slug: true, storageClass: true, storageName: true } } }) +useCreateResourceObservedStorageMutation({ selection: { fields: { id: true } } }) +``` + +## Examples + +### List all resourceObservedStorages + +```typescript +const { data, isLoading } = useResourceObservedStoragesQuery({ + selection: { fields: { capacity: true, capacityBytes: true, claimName: true, declaredStorageClass: true, declaredStorageSizeBytes: true, declaredStorageTotalBytes: true, installationId: true, isBound: true, kind: true, namespaceId: true, phase: true, requested: true, requestedBytes: true, resourceId: true, resourceStatus: true, slug: true, storageClass: true, storageName: true } }, +}); +``` + +### Create a resourceObservedStorage + +```typescript +const { mutate } = useCreateResourceObservedStorageMutation({ + selection: { fields: { id: true } }, +}); +mutate({ capacity: '', capacityBytes: '', claimName: '', declaredStorageClass: '', declaredStorageSizeBytes: '', declaredStorageTotalBytes: '', installationId: '', isBound: '', kind: '', namespaceId: '', phase: '', requested: '', requestedBytes: '', resourceId: '', resourceStatus: '', slug: '', storageClass: '', storageName: '' }); +``` diff --git a/.agents/skills/hooks-compute/references/resource.md b/.agents/skills/hooks-compute/references/resource.md index f6ccdbefc4..04155304c9 100644 --- a/.agents/skills/hooks-compute/references/resource.md +++ b/.agents/skills/hooks-compute/references/resource.md @@ -7,8 +7,8 @@ Unified K8s resource declarations — stores desired state (spec) and observed s ## Usage ```typescript -useResourcesQuery({ selection: { fields: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, databaseId: true, errorCount: true, id: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusObserved: true, storageClass: true, storageSizeBytes: true, updatedAt: true, updatedBy: true } } }) -useResourceQuery({ id: '', selection: { fields: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, databaseId: true, errorCount: true, id: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusObserved: true, storageClass: true, storageSizeBytes: true, updatedAt: true, updatedBy: true } } }) +useResourcesQuery({ selection: { fields: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) +useResourceQuery({ id: '', selection: { fields: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) useCreateResourceMutation({ selection: { fields: { id: true } } }) useUpdateResourceMutation({ selection: { fields: { id: true } } }) useDeleteResourceMutation({}) @@ -20,7 +20,7 @@ useDeleteResourceMutation({}) ```typescript const { data, isLoading } = useResourcesQuery({ - selection: { fields: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, databaseId: true, errorCount: true, id: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusObserved: true, storageClass: true, storageSizeBytes: true, updatedAt: true, updatedBy: true } }, + selection: { fields: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useResourcesQuery({ const { mutate } = useCreateResourceMutation({ selection: { fields: { id: true } }, }); -mutate({ annotations: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', databaseId: '', errorCount: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusObserved: '', storageClass: '', storageSizeBytes: '', updatedBy: '' }); +mutate({ annotations: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', createdByPrincipal: '', databaseId: '', errorCount: '', imageRef: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusObserved: '', storageClass: '', storageSizeBytes: '', storageTotalBytes: '', updatedBy: '', updatedByPrincipal: '' }); ``` diff --git a/.agents/skills/hooks-compute/references/resources-health.md b/.agents/skills/hooks-compute/references/resources-health.md index 5dcf7107df..014be82473 100644 --- a/.agents/skills/hooks-compute/references/resources-health.md +++ b/.agents/skills/hooks-compute/references/resources-health.md @@ -7,8 +7,8 @@ React Query hooks for ResourcesHealth data operations ## Usage ```typescript -useResourcesHealthsQuery({ selection: { fields: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, databaseId: true, errorCount: true, id: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusDetail: true, statusObserved: true, storageClass: true, storageSizeBytes: true, updatedAt: true, updatedBy: true } } }) -useResourcesHealthQuery({ id: '', selection: { fields: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, databaseId: true, errorCount: true, id: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusDetail: true, statusObserved: true, storageClass: true, storageSizeBytes: true, updatedAt: true, updatedBy: true } } }) +useResourcesHealthsQuery({ selection: { fields: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusDetail: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) +useResourcesHealthQuery({ id: '', selection: { fields: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusDetail: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) useCreateResourcesHealthMutation({ selection: { fields: { id: true } } }) useUpdateResourcesHealthMutation({ selection: { fields: { id: true } } }) useDeleteResourcesHealthMutation({}) @@ -20,7 +20,7 @@ useDeleteResourcesHealthMutation({}) ```typescript const { data, isLoading } = useResourcesHealthsQuery({ - selection: { fields: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, databaseId: true, errorCount: true, id: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusDetail: true, statusObserved: true, storageClass: true, storageSizeBytes: true, updatedAt: true, updatedBy: true } }, + selection: { fields: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusDetail: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useResourcesHealthsQuery({ const { mutate } = useCreateResourcesHealthMutation({ selection: { fields: { id: true } }, }); -mutate({ annotations: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', databaseId: '', errorCount: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusDetail: '', statusObserved: '', storageClass: '', storageSizeBytes: '', updatedBy: '' }); +mutate({ annotations: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', createdByPrincipal: '', databaseId: '', errorCount: '', imageRef: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusDetail: '', statusObserved: '', storageClass: '', storageSizeBytes: '', storageTotalBytes: '', updatedBy: '', updatedByPrincipal: '' }); ``` diff --git a/.agents/skills/hooks-compute/references/webhook-endpoint.md b/.agents/skills/hooks-compute/references/webhook-endpoint.md index 64b146adcb..f68c524c2b 100644 --- a/.agents/skills/hooks-compute/references/webhook-endpoint.md +++ b/.agents/skills/hooks-compute/references/webhook-endpoint.md @@ -7,8 +7,8 @@ Webhook route authority: (host, path) -> function task_identifier invoked throug ## Usage ```typescript -useWebhookEndpointsQuery({ selection: { fields: { active: true, createdAt: true, createdBy: true, databaseId: true, functionDefinitionId: true, host: true, id: true, namespaceId: true, path: true, provider: true, replayWindowSeconds: true, signingSecretName: true, updatedAt: true, updatedBy: true } } }) -useWebhookEndpointQuery({ id: '', selection: { fields: { active: true, createdAt: true, createdBy: true, databaseId: true, functionDefinitionId: true, host: true, id: true, namespaceId: true, path: true, provider: true, replayWindowSeconds: true, signingSecretName: true, updatedAt: true, updatedBy: true } } }) +useWebhookEndpointsQuery({ selection: { fields: { active: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, functionDefinitionId: true, host: true, id: true, namespaceId: true, path: true, provider: true, replayWindowSeconds: true, signingSecretName: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) +useWebhookEndpointQuery({ id: '', selection: { fields: { active: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, functionDefinitionId: true, host: true, id: true, namespaceId: true, path: true, provider: true, replayWindowSeconds: true, signingSecretName: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) useCreateWebhookEndpointMutation({ selection: { fields: { id: true } } }) useUpdateWebhookEndpointMutation({ selection: { fields: { id: true } } }) useDeleteWebhookEndpointMutation({}) @@ -20,7 +20,7 @@ useDeleteWebhookEndpointMutation({}) ```typescript const { data, isLoading } = useWebhookEndpointsQuery({ - selection: { fields: { active: true, createdAt: true, createdBy: true, databaseId: true, functionDefinitionId: true, host: true, id: true, namespaceId: true, path: true, provider: true, replayWindowSeconds: true, signingSecretName: true, updatedAt: true, updatedBy: true } }, + selection: { fields: { active: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, functionDefinitionId: true, host: true, id: true, namespaceId: true, path: true, provider: true, replayWindowSeconds: true, signingSecretName: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useWebhookEndpointsQuery({ const { mutate } = useCreateWebhookEndpointMutation({ selection: { fields: { id: true } }, }); -mutate({ active: '', createdBy: '', databaseId: '', functionDefinitionId: '', host: '', namespaceId: '', path: '', provider: '', replayWindowSeconds: '', signingSecretName: '', updatedBy: '' }); +mutate({ active: '', createdBy: '', createdByPrincipal: '', databaseId: '', functionDefinitionId: '', host: '', namespaceId: '', path: '', provider: '', replayWindowSeconds: '', signingSecretName: '', updatedBy: '', updatedByPrincipal: '' }); ``` diff --git a/.agents/skills/hooks-config/SKILL.md b/.agents/skills/hooks-config/SKILL.md index e55880bf62..4164df9425 100644 --- a/.agents/skills/hooks-config/SKILL.md +++ b/.agents/skills/hooks-config/SKILL.md @@ -1,25 +1,25 @@ --- name: hooks-config -description: React Query hooks for the config API — provides typed query and mutation hooks for 5 tables and 13 custom operations +description: React Query hooks for the config API — provides typed query and mutation hooks for 9 tables and 21 custom operations --- # hooks-config -React Query hooks for the config API — provides typed query and mutation hooks for 5 tables and 13 custom operations +React Query hooks for the config API — provides typed query and mutation hooks for 9 tables and 21 custom operations ## Usage ```typescript // Import hooks -import { useConfigsQuery } from './hooks'; +import { useAppInternalSecretsQuery } from './hooks'; // Query hooks: useQuery, usesQuery // Mutation hooks: useCreateMutation, useUpdateMutation, useDeleteMutation // Bulk mutation hooks (when enabled): useBulkCreateMutation, useBulkUpsertMutation, etc. -const { data, isLoading } = useConfigsQuery({ +const { data, isLoading } = useAppInternalSecretsQuery({ selection: { fields: { id: true } }, }); ``` @@ -29,7 +29,7 @@ const { data, isLoading } = useConfigsQuery({ ### Query records ```typescript -const { data, isLoading } = useConfigsQuery({ +const { data, isLoading } = useAppInternalSecretsQuery({ selection: { fields: { id: true } }, }); ``` @@ -38,15 +38,27 @@ const { data, isLoading } = useConfigsQuery({ See the `references/` directory for detailed per-entity API documentation: +- [app-internal-secret](references/app-internal-secret.md) - [config](references/config.md) +- [internal-config](references/internal-config.md) +- [internal-secret](references/internal-secret.md) - [platform-config](references/platform-config.md) +- [platform-internal-config](references/platform-internal-config.md) - [platform-internal-secret](references/platform-internal-secret.md) - [platform-secret](references/platform-secret.md) - [secret](references/secret.md) +- [internal-secrets-del](references/internal-secrets-del.md) +- [internal-secrets-remove-array](references/internal-secrets-remove-array.md) +- [internal-secrets-rotate](references/internal-secrets-rotate.md) +- [internal-secrets-set](references/internal-secrets-set.md) - [secrets-del](references/secrets-del.md) - [secrets-remove-array](references/secrets-remove-array.md) - [secrets-rotate](references/secrets-rotate.md) - [secrets-set](references/secrets-set.md) +- [app-internal-secrets-del](references/app-internal-secrets-del.md) +- [app-internal-secrets-remove-array](references/app-internal-secrets-remove-array.md) +- [app-internal-secrets-rotate](references/app-internal-secrets-rotate.md) +- [app-internal-secrets-set](references/app-internal-secrets-set.md) - [platform-internal-secrets-del](references/platform-internal-secrets-del.md) - [platform-internal-secrets-remove-array](references/platform-internal-secrets-remove-array.md) - [platform-internal-secrets-rotate](references/platform-internal-secrets-rotate.md) diff --git a/.agents/skills/hooks-config/references/app-internal-secret.md b/.agents/skills/hooks-config/references/app-internal-secret.md new file mode 100644 index 0000000000..6c18c578d1 --- /dev/null +++ b/.agents/skills/hooks-config/references/app-internal-secret.md @@ -0,0 +1,34 @@ +# appInternalSecret + + + +React Query hooks for AppInternalSecret data operations + +## Usage + +```typescript +useAppInternalSecretsQuery({ selection: { fields: { annotations: true, createdAt: true, description: true, id: true, labels: true, name: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } } }) +useAppInternalSecretQuery({ id: '', selection: { fields: { annotations: true, createdAt: true, description: true, id: true, labels: true, name: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } } }) +useCreateAppInternalSecretMutation({ selection: { fields: { id: true } } }) +useUpdateAppInternalSecretMutation({ selection: { fields: { id: true } } }) +useDeleteAppInternalSecretMutation({}) +``` + +## Examples + +### List all appInternalSecrets + +```typescript +const { data, isLoading } = useAppInternalSecretsQuery({ + selection: { fields: { annotations: true, createdAt: true, description: true, id: true, labels: true, name: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } }, +}); +``` + +### Create a appInternalSecret + +```typescript +const { mutate } = useCreateAppInternalSecretMutation({ + selection: { fields: { id: true } }, +}); +mutate({ annotations: '', description: '', labels: '', name: '', realm: '', retiredAt: '', rotatedAt: '' }); +``` diff --git a/.agents/skills/hooks-config/references/app-internal-secrets-del.md b/.agents/skills/hooks-config/references/app-internal-secrets-del.md new file mode 100644 index 0000000000..fbbd9185ab --- /dev/null +++ b/.agents/skills/hooks-config/references/app-internal-secrets-del.md @@ -0,0 +1,20 @@ +# appInternalSecretsDel + + + +React Query mutation hook for appInternalSecretsDel + +## Usage + +```typescript +const { mutate } = useAppInternalSecretsDelMutation(); mutate({ input: { realm: '', secretName: '' } }); +``` + +## Examples + +### Use useAppInternalSecretsDelMutation + +```typescript +const { mutate, isLoading } = useAppInternalSecretsDelMutation(); +mutate({ input: { realm: '', secretName: '' } }); +``` diff --git a/.agents/skills/hooks-config/references/app-internal-secrets-remove-array.md b/.agents/skills/hooks-config/references/app-internal-secrets-remove-array.md new file mode 100644 index 0000000000..4a65fa1c07 --- /dev/null +++ b/.agents/skills/hooks-config/references/app-internal-secrets-remove-array.md @@ -0,0 +1,20 @@ +# appInternalSecretsRemoveArray + + + +React Query mutation hook for appInternalSecretsRemoveArray + +## Usage + +```typescript +const { mutate } = useAppInternalSecretsRemoveArrayMutation(); mutate({ input: { realm: '', secretNames: '' } }); +``` + +## Examples + +### Use useAppInternalSecretsRemoveArrayMutation + +```typescript +const { mutate, isLoading } = useAppInternalSecretsRemoveArrayMutation(); +mutate({ input: { realm: '', secretNames: '' } }); +``` diff --git a/.agents/skills/hooks-config/references/app-internal-secrets-rotate.md b/.agents/skills/hooks-config/references/app-internal-secrets-rotate.md new file mode 100644 index 0000000000..f8abe0c96b --- /dev/null +++ b/.agents/skills/hooks-config/references/app-internal-secrets-rotate.md @@ -0,0 +1,20 @@ +# appInternalSecretsRotate + + + +React Query mutation hook for appInternalSecretsRotate + +## Usage + +```typescript +const { mutate } = useAppInternalSecretsRotateMutation(); mutate({ input: { algo: '', realm: '', secretName: '', secretValue: '' } }); +``` + +## Examples + +### Use useAppInternalSecretsRotateMutation + +```typescript +const { mutate, isLoading } = useAppInternalSecretsRotateMutation(); +mutate({ input: { algo: '', realm: '', secretName: '', secretValue: '' } }); +``` diff --git a/.agents/skills/hooks-config/references/app-internal-secrets-set.md b/.agents/skills/hooks-config/references/app-internal-secrets-set.md new file mode 100644 index 0000000000..e7ef4ee27b --- /dev/null +++ b/.agents/skills/hooks-config/references/app-internal-secrets-set.md @@ -0,0 +1,20 @@ +# appInternalSecretsSet + + + +React Query mutation hook for appInternalSecretsSet + +## Usage + +```typescript +const { mutate } = useAppInternalSecretsSetMutation(); mutate({ input: { algo: '', secretName: '', secretRealm: '', secretValue: '' } }); +``` + +## Examples + +### Use useAppInternalSecretsSetMutation + +```typescript +const { mutate, isLoading } = useAppInternalSecretsSetMutation(); +mutate({ input: { algo: '', secretName: '', secretRealm: '', secretValue: '' } }); +``` diff --git a/.agents/skills/hooks-config/references/config.md b/.agents/skills/hooks-config/references/config.md index 748716b90f..0dd2e35708 100644 --- a/.agents/skills/hooks-config/references/config.md +++ b/.agents/skills/hooks-config/references/config.md @@ -7,8 +7,8 @@ Namespace-backed plaintext key-value config store (like a k8s ConfigMap); admin- ## Usage ```typescript -useConfigsQuery({ selection: { fields: { annotations: true, createdAt: true, databaseId: true, description: true, expiresAt: true, id: true, labels: true, name: true, namespaceId: true, provider: true, realm: true, updatedAt: true, value: true } } }) -useConfigQuery({ id: '', selection: { fields: { annotations: true, createdAt: true, databaseId: true, description: true, expiresAt: true, id: true, labels: true, name: true, namespaceId: true, provider: true, realm: true, updatedAt: true, value: true } } }) +useConfigsQuery({ selection: { fields: { annotations: true, createdAt: true, createdByPrincipal: true, databaseId: true, description: true, expiresAt: true, id: true, labels: true, name: true, namespaceId: true, provider: true, realm: true, updatedAt: true, updatedByPrincipal: true, value: true } } }) +useConfigQuery({ id: '', selection: { fields: { annotations: true, createdAt: true, createdByPrincipal: true, databaseId: true, description: true, expiresAt: true, id: true, labels: true, name: true, namespaceId: true, provider: true, realm: true, updatedAt: true, updatedByPrincipal: true, value: true } } }) useCreateConfigMutation({ selection: { fields: { id: true } } }) useUpdateConfigMutation({ selection: { fields: { id: true } } }) useDeleteConfigMutation({}) @@ -20,7 +20,7 @@ useDeleteConfigMutation({}) ```typescript const { data, isLoading } = useConfigsQuery({ - selection: { fields: { annotations: true, createdAt: true, databaseId: true, description: true, expiresAt: true, id: true, labels: true, name: true, namespaceId: true, provider: true, realm: true, updatedAt: true, value: true } }, + selection: { fields: { annotations: true, createdAt: true, createdByPrincipal: true, databaseId: true, description: true, expiresAt: true, id: true, labels: true, name: true, namespaceId: true, provider: true, realm: true, updatedAt: true, updatedByPrincipal: true, value: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useConfigsQuery({ const { mutate } = useCreateConfigMutation({ selection: { fields: { id: true } }, }); -mutate({ annotations: '', databaseId: '', description: '', expiresAt: '', labels: '', name: '', namespaceId: '', provider: '', realm: '', value: '' }); +mutate({ annotations: '', createdByPrincipal: '', databaseId: '', description: '', expiresAt: '', labels: '', name: '', namespaceId: '', provider: '', realm: '', updatedByPrincipal: '', value: '' }); ``` diff --git a/.agents/skills/hooks-config/references/internal-config.md b/.agents/skills/hooks-config/references/internal-config.md new file mode 100644 index 0000000000..fc45c8a060 --- /dev/null +++ b/.agents/skills/hooks-config/references/internal-config.md @@ -0,0 +1,34 @@ +# internalConfig + + + +-level plaintext key-value config store; database-resident, never projected into Kubernetes + +## Usage + +```typescript +useInternalConfigsQuery({ selection: { fields: { annotations: true, createdAt: true, databaseId: true, description: true, expiresAt: true, id: true, labels: true, name: true, provider: true, realm: true, updatedAt: true, value: true } } }) +useInternalConfigQuery({ id: '', selection: { fields: { annotations: true, createdAt: true, databaseId: true, description: true, expiresAt: true, id: true, labels: true, name: true, provider: true, realm: true, updatedAt: true, value: true } } }) +useCreateInternalConfigMutation({ selection: { fields: { id: true } } }) +useUpdateInternalConfigMutation({ selection: { fields: { id: true } } }) +useDeleteInternalConfigMutation({}) +``` + +## Examples + +### List all internalConfigs + +```typescript +const { data, isLoading } = useInternalConfigsQuery({ + selection: { fields: { annotations: true, createdAt: true, databaseId: true, description: true, expiresAt: true, id: true, labels: true, name: true, provider: true, realm: true, updatedAt: true, value: true } }, +}); +``` + +### Create a internalConfig + +```typescript +const { mutate } = useCreateInternalConfigMutation({ + selection: { fields: { id: true } }, +}); +mutate({ annotations: '', databaseId: '', description: '', expiresAt: '', labels: '', name: '', provider: '', realm: '', value: '' }); +``` diff --git a/.agents/skills/hooks-config/references/internal-secret.md b/.agents/skills/hooks-config/references/internal-secret.md new file mode 100644 index 0000000000..3f1ccf4c46 --- /dev/null +++ b/.agents/skills/hooks-config/references/internal-secret.md @@ -0,0 +1,34 @@ +# internalSecret + + + +React Query hooks for InternalSecret data operations + +## Usage + +```typescript +useInternalSecretsQuery({ selection: { fields: { annotations: true, createdAt: true, databaseId: true, description: true, id: true, labels: true, name: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } } }) +useInternalSecretQuery({ id: '', selection: { fields: { annotations: true, createdAt: true, databaseId: true, description: true, id: true, labels: true, name: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } } }) +useCreateInternalSecretMutation({ selection: { fields: { id: true } } }) +useUpdateInternalSecretMutation({ selection: { fields: { id: true } } }) +useDeleteInternalSecretMutation({}) +``` + +## Examples + +### List all internalSecrets + +```typescript +const { data, isLoading } = useInternalSecretsQuery({ + selection: { fields: { annotations: true, createdAt: true, databaseId: true, description: true, id: true, labels: true, name: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } }, +}); +``` + +### Create a internalSecret + +```typescript +const { mutate } = useCreateInternalSecretMutation({ + selection: { fields: { id: true } }, +}); +mutate({ annotations: '', databaseId: '', description: '', labels: '', name: '', realm: '', retiredAt: '', rotatedAt: '' }); +``` diff --git a/.agents/skills/hooks-config/references/internal-secrets-del.md b/.agents/skills/hooks-config/references/internal-secrets-del.md new file mode 100644 index 0000000000..2e5a2b86a2 --- /dev/null +++ b/.agents/skills/hooks-config/references/internal-secrets-del.md @@ -0,0 +1,20 @@ +# _internalSecretsDel + + + +React Query mutation hook for _internalSecretsDel + +## Usage + +```typescript +const { mutate } = use_internalSecretsDelMutation(); mutate({ input: { databaseId: '', realm: '', secretName: '' } }); +``` + +## Examples + +### Use use_internalSecretsDelMutation + +```typescript +const { mutate, isLoading } = use_internalSecretsDelMutation(); +mutate({ input: { databaseId: '', realm: '', secretName: '' } }); +``` diff --git a/.agents/skills/hooks-config/references/internal-secrets-remove-array.md b/.agents/skills/hooks-config/references/internal-secrets-remove-array.md new file mode 100644 index 0000000000..5a67997b97 --- /dev/null +++ b/.agents/skills/hooks-config/references/internal-secrets-remove-array.md @@ -0,0 +1,20 @@ +# _internalSecretsRemoveArray + + + +React Query mutation hook for _internalSecretsRemoveArray + +## Usage + +```typescript +const { mutate } = use_internalSecretsRemoveArrayMutation(); mutate({ input: { databaseId: '', realm: '', secretNames: '' } }); +``` + +## Examples + +### Use use_internalSecretsRemoveArrayMutation + +```typescript +const { mutate, isLoading } = use_internalSecretsRemoveArrayMutation(); +mutate({ input: { databaseId: '', realm: '', secretNames: '' } }); +``` diff --git a/.agents/skills/hooks-config/references/internal-secrets-rotate.md b/.agents/skills/hooks-config/references/internal-secrets-rotate.md new file mode 100644 index 0000000000..0b21f31657 --- /dev/null +++ b/.agents/skills/hooks-config/references/internal-secrets-rotate.md @@ -0,0 +1,20 @@ +# _internalSecretsRotate + + + +React Query mutation hook for _internalSecretsRotate + +## Usage + +```typescript +const { mutate } = use_internalSecretsRotateMutation(); mutate({ input: { algo: '', databaseId: '', realm: '', secretName: '', secretValue: '' } }); +``` + +## Examples + +### Use use_internalSecretsRotateMutation + +```typescript +const { mutate, isLoading } = use_internalSecretsRotateMutation(); +mutate({ input: { algo: '', databaseId: '', realm: '', secretName: '', secretValue: '' } }); +``` diff --git a/.agents/skills/hooks-config/references/internal-secrets-set.md b/.agents/skills/hooks-config/references/internal-secrets-set.md new file mode 100644 index 0000000000..e13a1438f1 --- /dev/null +++ b/.agents/skills/hooks-config/references/internal-secrets-set.md @@ -0,0 +1,20 @@ +# _internalSecretsSet + + + +React Query mutation hook for _internalSecretsSet + +## Usage + +```typescript +const { mutate } = use_internalSecretsSetMutation(); mutate({ input: { algo: '', scopeDatabaseId: '', secretName: '', secretRealm: '', secretValue: '' } }); +``` + +## Examples + +### Use use_internalSecretsSetMutation + +```typescript +const { mutate, isLoading } = use_internalSecretsSetMutation(); +mutate({ input: { algo: '', scopeDatabaseId: '', secretName: '', secretRealm: '', secretValue: '' } }); +``` diff --git a/.agents/skills/hooks-config/references/platform-config.md b/.agents/skills/hooks-config/references/platform-config.md index ce40b4de8a..b889b46de9 100644 --- a/.agents/skills/hooks-config/references/platform-config.md +++ b/.agents/skills/hooks-config/references/platform-config.md @@ -7,8 +7,8 @@ Namespace-backed plaintext key-value config store (like a k8s ConfigMap); admin- ## Usage ```typescript -usePlatformConfigsQuery({ selection: { fields: { annotations: true, createdAt: true, description: true, expiresAt: true, id: true, labels: true, name: true, namespaceId: true, provider: true, realm: true, updatedAt: true, value: true } } }) -usePlatformConfigQuery({ id: '', selection: { fields: { annotations: true, createdAt: true, description: true, expiresAt: true, id: true, labels: true, name: true, namespaceId: true, provider: true, realm: true, updatedAt: true, value: true } } }) +usePlatformConfigsQuery({ selection: { fields: { annotations: true, createdAt: true, createdByPrincipal: true, description: true, expiresAt: true, id: true, labels: true, name: true, namespaceId: true, provider: true, realm: true, updatedAt: true, updatedByPrincipal: true, value: true } } }) +usePlatformConfigQuery({ id: '', selection: { fields: { annotations: true, createdAt: true, createdByPrincipal: true, description: true, expiresAt: true, id: true, labels: true, name: true, namespaceId: true, provider: true, realm: true, updatedAt: true, updatedByPrincipal: true, value: true } } }) useCreatePlatformConfigMutation({ selection: { fields: { id: true } } }) useUpdatePlatformConfigMutation({ selection: { fields: { id: true } } }) useDeletePlatformConfigMutation({}) @@ -20,7 +20,7 @@ useDeletePlatformConfigMutation({}) ```typescript const { data, isLoading } = usePlatformConfigsQuery({ - selection: { fields: { annotations: true, createdAt: true, description: true, expiresAt: true, id: true, labels: true, name: true, namespaceId: true, provider: true, realm: true, updatedAt: true, value: true } }, + selection: { fields: { annotations: true, createdAt: true, createdByPrincipal: true, description: true, expiresAt: true, id: true, labels: true, name: true, namespaceId: true, provider: true, realm: true, updatedAt: true, updatedByPrincipal: true, value: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = usePlatformConfigsQuery({ const { mutate } = useCreatePlatformConfigMutation({ selection: { fields: { id: true } }, }); -mutate({ annotations: '', description: '', expiresAt: '', labels: '', name: '', namespaceId: '', provider: '', realm: '', value: '' }); +mutate({ annotations: '', createdByPrincipal: '', description: '', expiresAt: '', labels: '', name: '', namespaceId: '', provider: '', realm: '', updatedByPrincipal: '', value: '' }); ``` diff --git a/.agents/skills/hooks-config/references/platform-internal-config.md b/.agents/skills/hooks-config/references/platform-internal-config.md new file mode 100644 index 0000000000..f9ac2c0503 --- /dev/null +++ b/.agents/skills/hooks-config/references/platform-internal-config.md @@ -0,0 +1,34 @@ +# platformInternalConfig + + + +platform-level plaintext key-value config store; database-resident, never projected into Kubernetes + +## Usage + +```typescript +usePlatformInternalConfigsQuery({ selection: { fields: { annotations: true, createdAt: true, description: true, expiresAt: true, id: true, labels: true, name: true, provider: true, realm: true, updatedAt: true, value: true } } }) +usePlatformInternalConfigQuery({ id: '', selection: { fields: { annotations: true, createdAt: true, description: true, expiresAt: true, id: true, labels: true, name: true, provider: true, realm: true, updatedAt: true, value: true } } }) +useCreatePlatformInternalConfigMutation({ selection: { fields: { id: true } } }) +useUpdatePlatformInternalConfigMutation({ selection: { fields: { id: true } } }) +useDeletePlatformInternalConfigMutation({}) +``` + +## Examples + +### List all platformInternalConfigs + +```typescript +const { data, isLoading } = usePlatformInternalConfigsQuery({ + selection: { fields: { annotations: true, createdAt: true, description: true, expiresAt: true, id: true, labels: true, name: true, provider: true, realm: true, updatedAt: true, value: true } }, +}); +``` + +### Create a platformInternalConfig + +```typescript +const { mutate } = useCreatePlatformInternalConfigMutation({ + selection: { fields: { id: true } }, +}); +mutate({ annotations: '', description: '', expiresAt: '', labels: '', name: '', provider: '', realm: '', value: '' }); +``` diff --git a/.agents/skills/hooks-config/references/platform-internal-secret.md b/.agents/skills/hooks-config/references/platform-internal-secret.md index cc99df5b72..d305bbbd27 100644 --- a/.agents/skills/hooks-config/references/platform-internal-secret.md +++ b/.agents/skills/hooks-config/references/platform-internal-secret.md @@ -7,8 +7,8 @@ React Query hooks for PlatformInternalSecret data operations ## Usage ```typescript -usePlatformInternalSecretsQuery({ selection: { fields: { annotations: true, createdAt: true, description: true, id: true, labels: true, name: true, namespaceId: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } } }) -usePlatformInternalSecretQuery({ id: '', selection: { fields: { annotations: true, createdAt: true, description: true, id: true, labels: true, name: true, namespaceId: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } } }) +usePlatformInternalSecretsQuery({ selection: { fields: { annotations: true, createdAt: true, description: true, id: true, labels: true, name: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } } }) +usePlatformInternalSecretQuery({ id: '', selection: { fields: { annotations: true, createdAt: true, description: true, id: true, labels: true, name: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } } }) useCreatePlatformInternalSecretMutation({ selection: { fields: { id: true } } }) useUpdatePlatformInternalSecretMutation({ selection: { fields: { id: true } } }) useDeletePlatformInternalSecretMutation({}) @@ -20,7 +20,7 @@ useDeletePlatformInternalSecretMutation({}) ```typescript const { data, isLoading } = usePlatformInternalSecretsQuery({ - selection: { fields: { annotations: true, createdAt: true, description: true, id: true, labels: true, name: true, namespaceId: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } }, + selection: { fields: { annotations: true, createdAt: true, description: true, id: true, labels: true, name: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = usePlatformInternalSecretsQuery({ const { mutate } = useCreatePlatformInternalSecretMutation({ selection: { fields: { id: true } }, }); -mutate({ annotations: '', description: '', labels: '', name: '', namespaceId: '', realm: '', retiredAt: '', rotatedAt: '' }); +mutate({ annotations: '', description: '', labels: '', name: '', realm: '', retiredAt: '', rotatedAt: '' }); ``` diff --git a/.agents/skills/hooks-config/references/platform-internal-secrets-del.md b/.agents/skills/hooks-config/references/platform-internal-secrets-del.md index 81eda7470f..c8d9e601e7 100644 --- a/.agents/skills/hooks-config/references/platform-internal-secrets-del.md +++ b/.agents/skills/hooks-config/references/platform-internal-secrets-del.md @@ -7,7 +7,7 @@ React Query mutation hook for platformInternalSecretsDel ## Usage ```typescript -const { mutate } = usePlatformInternalSecretsDelMutation(); mutate({ input: { namespaceId: '', realm: '', secretName: '' } }); +const { mutate } = usePlatformInternalSecretsDelMutation(); mutate({ input: { realm: '', secretName: '' } }); ``` ## Examples @@ -16,5 +16,5 @@ const { mutate } = usePlatformInternalSecretsDelMutation(); mutate({ input: { na ```typescript const { mutate, isLoading } = usePlatformInternalSecretsDelMutation(); -mutate({ input: { namespaceId: '', realm: '', secretName: '' } }); +mutate({ input: { realm: '', secretName: '' } }); ``` diff --git a/.agents/skills/hooks-config/references/platform-internal-secrets-remove-array.md b/.agents/skills/hooks-config/references/platform-internal-secrets-remove-array.md index 6df7d42b92..fb16a8f9f4 100644 --- a/.agents/skills/hooks-config/references/platform-internal-secrets-remove-array.md +++ b/.agents/skills/hooks-config/references/platform-internal-secrets-remove-array.md @@ -7,7 +7,7 @@ React Query mutation hook for platformInternalSecretsRemoveArray ## Usage ```typescript -const { mutate } = usePlatformInternalSecretsRemoveArrayMutation(); mutate({ input: { namespaceId: '', realm: '', secretNames: '' } }); +const { mutate } = usePlatformInternalSecretsRemoveArrayMutation(); mutate({ input: { realm: '', secretNames: '' } }); ``` ## Examples @@ -16,5 +16,5 @@ const { mutate } = usePlatformInternalSecretsRemoveArrayMutation(); mutate({ inp ```typescript const { mutate, isLoading } = usePlatformInternalSecretsRemoveArrayMutation(); -mutate({ input: { namespaceId: '', realm: '', secretNames: '' } }); +mutate({ input: { realm: '', secretNames: '' } }); ``` diff --git a/.agents/skills/hooks-config/references/platform-internal-secrets-rotate.md b/.agents/skills/hooks-config/references/platform-internal-secrets-rotate.md index 65cdf46924..094daca867 100644 --- a/.agents/skills/hooks-config/references/platform-internal-secrets-rotate.md +++ b/.agents/skills/hooks-config/references/platform-internal-secrets-rotate.md @@ -7,7 +7,7 @@ React Query mutation hook for platformInternalSecretsRotate ## Usage ```typescript -const { mutate } = usePlatformInternalSecretsRotateMutation(); mutate({ input: { algo: '', namespaceId: '', realm: '', secretName: '', secretValue: '' } }); +const { mutate } = usePlatformInternalSecretsRotateMutation(); mutate({ input: { algo: '', realm: '', secretName: '', secretValue: '' } }); ``` ## Examples @@ -16,5 +16,5 @@ const { mutate } = usePlatformInternalSecretsRotateMutation(); mutate({ input: { ```typescript const { mutate, isLoading } = usePlatformInternalSecretsRotateMutation(); -mutate({ input: { algo: '', namespaceId: '', realm: '', secretName: '', secretValue: '' } }); +mutate({ input: { algo: '', realm: '', secretName: '', secretValue: '' } }); ``` diff --git a/.agents/skills/hooks-config/references/platform-internal-secrets-set.md b/.agents/skills/hooks-config/references/platform-internal-secrets-set.md index 0650f6b0ca..f4ada86b06 100644 --- a/.agents/skills/hooks-config/references/platform-internal-secrets-set.md +++ b/.agents/skills/hooks-config/references/platform-internal-secrets-set.md @@ -7,7 +7,7 @@ React Query mutation hook for platformInternalSecretsSet ## Usage ```typescript -const { mutate } = usePlatformInternalSecretsSetMutation(); mutate({ input: { algo: '', secretName: '', secretNamespaceId: '', secretRealm: '', secretValue: '' } }); +const { mutate } = usePlatformInternalSecretsSetMutation(); mutate({ input: { algo: '', secretName: '', secretRealm: '', secretValue: '' } }); ``` ## Examples @@ -16,5 +16,5 @@ const { mutate } = usePlatformInternalSecretsSetMutation(); mutate({ input: { al ```typescript const { mutate, isLoading } = usePlatformInternalSecretsSetMutation(); -mutate({ input: { algo: '', secretName: '', secretNamespaceId: '', secretRealm: '', secretValue: '' } }); +mutate({ input: { algo: '', secretName: '', secretRealm: '', secretValue: '' } }); ``` diff --git a/.agents/skills/hooks-config/references/provision-bucket.md b/.agents/skills/hooks-config/references/provision-bucket.md index e003fc5551..92740fefbd 100644 --- a/.agents/skills/hooks-config/references/provision-bucket.md +++ b/.agents/skills/hooks-config/references/provision-bucket.md @@ -2,10 +2,11 @@ -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. +Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. ## Usage 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/namespace.md b/.agents/skills/hooks-infra/references/namespace.md index 54f84c83e2..bab3e3931c 100644 --- a/.agents/skills/hooks-infra/references/namespace.md +++ b/.agents/skills/hooks-infra/references/namespace.md @@ -7,8 +7,8 @@ Logical namespace containers for grouping secrets, config, functions, and other ## Usage ```typescript -useNamespacesQuery({ selection: { fields: { annotations: true, createdAt: true, databaseId: true, description: true, id: true, isActive: true, isManaged: true, labels: true, lastError: true, name: true, namespaceName: true, status: true, updatedAt: true } } }) -useNamespaceQuery({ id: '', selection: { fields: { annotations: true, createdAt: true, databaseId: true, description: true, id: true, isActive: true, isManaged: true, labels: true, lastError: true, name: true, namespaceName: true, status: true, updatedAt: true } } }) +useNamespacesQuery({ selection: { fields: { annotations: true, clusterId: true, createdAt: true, databaseId: true, description: true, id: true, isActive: true, isManaged: true, labels: true, lastError: true, name: true, namespaceName: true, status: true, updatedAt: true } } }) +useNamespaceQuery({ id: '', selection: { fields: { annotations: true, clusterId: true, createdAt: true, databaseId: true, description: true, id: true, isActive: true, isManaged: true, labels: true, lastError: true, name: true, namespaceName: true, status: true, updatedAt: true } } }) useCreateNamespaceMutation({ selection: { fields: { id: true } } }) useUpdateNamespaceMutation({ selection: { fields: { id: true } } }) useDeleteNamespaceMutation({}) @@ -20,7 +20,7 @@ useDeleteNamespaceMutation({}) ```typescript const { data, isLoading } = useNamespacesQuery({ - selection: { fields: { annotations: true, createdAt: true, databaseId: true, description: true, id: true, isActive: true, isManaged: true, labels: true, lastError: true, name: true, namespaceName: true, status: true, updatedAt: true } }, + selection: { fields: { annotations: true, clusterId: true, createdAt: true, databaseId: true, description: true, id: true, isActive: true, isManaged: true, labels: true, lastError: true, name: true, namespaceName: true, status: true, updatedAt: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useNamespacesQuery({ const { mutate } = useCreateNamespaceMutation({ selection: { fields: { id: true } }, }); -mutate({ annotations: '', databaseId: '', description: '', isActive: '', isManaged: '', labels: '', lastError: '', name: '', namespaceName: '', status: '' }); +mutate({ annotations: '', clusterId: '', databaseId: '', description: '', isActive: '', isManaged: '', labels: '', lastError: '', name: '', namespaceName: '', status: '' }); ``` 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-infra/references/platform-namespace.md b/.agents/skills/hooks-infra/references/platform-namespace.md index af3ce13de2..ccdad6be48 100644 --- a/.agents/skills/hooks-infra/references/platform-namespace.md +++ b/.agents/skills/hooks-infra/references/platform-namespace.md @@ -7,8 +7,8 @@ Logical namespace containers for grouping secrets, config, functions, and other ## Usage ```typescript -usePlatformNamespacesQuery({ selection: { fields: { annotations: true, createdAt: true, description: true, id: true, isActive: true, isManaged: true, labels: true, lastError: true, name: true, namespaceName: true, status: true, updatedAt: true } } }) -usePlatformNamespaceQuery({ id: '', selection: { fields: { annotations: true, createdAt: true, description: true, id: true, isActive: true, isManaged: true, labels: true, lastError: true, name: true, namespaceName: true, status: true, updatedAt: true } } }) +usePlatformNamespacesQuery({ selection: { fields: { annotations: true, clusterId: true, createdAt: true, description: true, id: true, isActive: true, isManaged: true, labels: true, lastError: true, name: true, namespaceName: true, status: true, updatedAt: true } } }) +usePlatformNamespaceQuery({ id: '', selection: { fields: { annotations: true, clusterId: true, createdAt: true, description: true, id: true, isActive: true, isManaged: true, labels: true, lastError: true, name: true, namespaceName: true, status: true, updatedAt: true } } }) useCreatePlatformNamespaceMutation({ selection: { fields: { id: true } } }) useUpdatePlatformNamespaceMutation({ selection: { fields: { id: true } } }) useDeletePlatformNamespaceMutation({}) @@ -20,7 +20,7 @@ useDeletePlatformNamespaceMutation({}) ```typescript const { data, isLoading } = usePlatformNamespacesQuery({ - selection: { fields: { annotations: true, createdAt: true, description: true, id: true, isActive: true, isManaged: true, labels: true, lastError: true, name: true, namespaceName: true, status: true, updatedAt: true } }, + selection: { fields: { annotations: true, clusterId: true, createdAt: true, description: true, id: true, isActive: true, isManaged: true, labels: true, lastError: true, name: true, namespaceName: true, status: true, updatedAt: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = usePlatformNamespacesQuery({ const { mutate } = useCreatePlatformNamespaceMutation({ selection: { fields: { id: true } }, }); -mutate({ annotations: '', description: '', isActive: '', isManaged: '', labels: '', lastError: '', name: '', namespaceName: '', status: '' }); +mutate({ annotations: '', clusterId: '', description: '', isActive: '', isManaged: '', labels: '', lastError: '', name: '', namespaceName: '', status: '' }); ``` diff --git a/.agents/skills/hooks-infra/references/provision-bucket.md b/.agents/skills/hooks-infra/references/provision-bucket.md index e003fc5551..92740fefbd 100644 --- a/.agents/skills/hooks-infra/references/provision-bucket.md +++ b/.agents/skills/hooks-infra/references/provision-bucket.md @@ -2,10 +2,11 @@ -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. +Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. ## Usage diff --git a/.agents/skills/hooks-modules/SKILL.md b/.agents/skills/hooks-modules/SKILL.md index b07db5d06a..580b928820 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 83 tables and 3 custom operations +description: React Query hooks for the modules API — provides typed query and mutation hooks for 88 tables and 3 custom operations --- # hooks-modules -React Query hooks for the modules API — provides typed query and mutation hooks for 83 tables and 3 custom operations +React Query hooks for the modules API — provides typed query and mutation hooks for 88 tables and 3 custom operations ## Usage @@ -48,8 +48,8 @@ See the `references/` directory for detailed per-entity API documentation: - [blueprint-template](references/blueprint-template.md) - [capabilities-module](references/capabilities-module.md) - [catalog-module](references/catalog-module.md) +- [cluster-module](references/cluster-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) @@ -76,16 +76,19 @@ See the `references/` directory for detailed per-entity API documentation: - [graph-execution-module](references/graph-execution-module.md) - [graph-module](references/graph-module.md) - [hierarchy-module](references/hierarchy-module.md) -- [http-route-module](references/http-route-module.md) - [i-18-n-module](references/i-18-n-module.md) - [identity-providers-module](references/identity-providers-module.md) +- [image-module](references/image-module.md) - [inference-log-module](references/inference-log-module.md) - [infra-config-module](references/infra-config-module.md) - [infra-secrets-module](references/infra-secrets-module.md) - [integration-providers-module](references/integration-providers-module.md) +- [internal-config-module](references/internal-config-module.md) - [internal-secrets-module](references/internal-secrets-module.md) - [invites-module](references/invites-module.md) +- [k-8-s-admission-module](references/k-8-s-admission-module.md) - [limits-module](references/limits-module.md) +- [machine-module](references/machine-module.md) - [membership-types-module](references/membership-types-module.md) - [memberships-module](references/memberships-module.md) - [merkle-store-module](references/merkle-store-module.md) @@ -100,7 +103,9 @@ See the `references/` directory for detailed per-entity API documentation: - [rate-limit-meters-module](references/rate-limit-meters-module.md) - [rate-limits-module](references/rate-limits-module.md) - [realtime-module](references/realtime-module.md) +- [refusal-log-module](references/refusal-log-module.md) - [relation-provision](references/relation-provision.md) +- [repository-module](references/repository-module.md) - [resource-module](references/resource-module.md) - [rls-module](references/rls-module.md) - [route-module](references/route-module.md) diff --git a/.agents/skills/hooks-modules/references/agent-module.md b/.agents/skills/hooks-modules/references/agent-module.md index 7a2db5fb4d..feefe75d09 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, 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 } } }) +useAgentModulesQuery({ selection: { fields: { agentTableId: true, agentTableName: true, apiName: true, databaseId: true, defaultCapabilities: true, defaultVisibility: true, entityField: true, entityTableId: true, eventTableId: true, eventTableName: true, hasAgents: true, hasAttachments: true, hasPlans: true, hasRepositoryResources: true, hasResources: true, hasRuns: 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, resourceRepositoryTableId: true, resourceRepositoryTableName: true, resourceTableId: true, resourceTableName: true, resources: true, runTableId: true, runTableName: true, schemaId: true, scope: true, taskTableId: true, taskTableName: true, threadTableId: true, threadTableName: true, workspaceTableId: true, workspaceTableName: true } } }) +useAgentModuleQuery({ id: '', selection: { fields: { agentTableId: true, agentTableName: true, apiName: true, databaseId: true, defaultCapabilities: true, defaultVisibility: true, entityField: true, entityTableId: true, eventTableId: true, eventTableName: true, hasAgents: true, hasAttachments: true, hasPlans: true, hasRepositoryResources: true, hasResources: true, hasRuns: 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, resourceRepositoryTableId: true, resourceRepositoryTableName: true, resourceTableId: true, resourceTableName: true, resources: true, runTableId: true, runTableName: true, schemaId: true, scope: true, taskTableId: true, taskTableName: true, threadTableId: true, threadTableName: true, workspaceTableId: true, workspaceTableName: 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, 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 } }, + selection: { fields: { agentTableId: true, agentTableName: true, apiName: true, databaseId: true, defaultCapabilities: true, defaultVisibility: true, entityField: true, entityTableId: true, eventTableId: true, eventTableName: true, hasAgents: true, hasAttachments: true, hasPlans: true, hasRepositoryResources: true, hasResources: true, hasRuns: 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, resourceRepositoryTableId: true, resourceRepositoryTableName: true, resourceTableId: true, resourceTableName: true, resources: true, runTableId: true, runTableName: true, schemaId: true, scope: true, taskTableId: true, taskTableName: true, threadTableId: true, threadTableName: true, workspaceTableId: true, workspaceTableName: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useAgentModulesQuery({ const { mutate } = useCreateAgentModuleMutation({ selection: { fields: { id: true } }, }); -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: '' }); +mutate({ agentTableId: '', agentTableName: '', apiName: '', databaseId: '', defaultCapabilities: '', defaultVisibility: '', entityField: '', entityTableId: '', eventTableId: '', eventTableName: '', hasAgents: '', hasAttachments: '', hasPlans: '', hasRepositoryResources: '', hasResources: '', hasRuns: '', messageTableId: '', messageTableName: '', personaTableId: '', personaTableName: '', planTableId: '', planTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', promptsTableId: '', promptsTableName: '', provisions: '', publicSchemaName: '', resourceRepositoryTableId: '', resourceRepositoryTableName: '', resourceTableId: '', resourceTableName: '', resources: '', runTableId: '', runTableName: '', schemaId: '', scope: '', taskTableId: '', taskTableName: '', threadTableId: '', threadTableName: '', workspaceTableId: '', workspaceTableName: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/app-module.md b/.agents/skills/hooks-modules/references/app-module.md index 2d02742242..0f956e0ebf 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, 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 } } }) +useAppModulesQuery({ selection: { fields: { apiName: true, appComponentsTableId: true, appComponentsTableName: true, appStoreIdentitiesTableName: 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, appStoreIdentitiesTableName: 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, 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 } }, + selection: { fields: { apiName: true, appComponentsTableId: true, appComponentsTableName: true, appStoreIdentitiesTableName: 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: '', defaultCapabilities: '', entityField: '', entityTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }); +mutate({ apiName: '', appComponentsTableId: '', appComponentsTableName: '', appStoreIdentitiesTableName: '', 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-provider-module.md b/.agents/skills/hooks-modules/references/billing-provider-module.md index 5980231bee..fd1c900c7f 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, 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 } } }) +useBillingProviderModulesQuery({ selection: { fields: { activatePlanSubscriptionFunction: true, apiName: true, billingCustomersTableId: true, billingCustomersTableName: true, billingDisputesTableId: true, billingDisputesTableName: 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, getActivePlanPricingFunction: true, getBillingCustomerFunction: true, getBillingPriceFunction: true, getBillingProductFunction: true, getBillingSubscriptionFunction: true, getFallbackFreePlanFunction: true, id: true, listPendingUsageSyncFunction: true, markUsageSyncedFunction: true, prefix: true, pricesTableId: true, privateApiName: true, privateSchemaId: true, processBillingEventFunction: true, productsTableId: true, provider: true, recordDisputeFunction: true, recordRefundFunction: true, schemaId: true, subscriptionsTableId: true, sweepOverdueSubscriptionsFunction: true, upsertBillingCustomerFunction: true, upsertBillingPriceFunction: true, upsertBillingProductFunction: true, upsertBillingSubscriptionFunction: true, upsertInvoiceFunction: true } } }) +useBillingProviderModuleQuery({ id: '', selection: { fields: { activatePlanSubscriptionFunction: true, apiName: true, billingCustomersTableId: true, billingCustomersTableName: true, billingDisputesTableId: true, billingDisputesTableName: 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, getActivePlanPricingFunction: true, getBillingCustomerFunction: true, getBillingPriceFunction: true, getBillingProductFunction: true, getBillingSubscriptionFunction: true, getFallbackFreePlanFunction: true, id: true, listPendingUsageSyncFunction: true, markUsageSyncedFunction: true, prefix: true, pricesTableId: true, privateApiName: true, privateSchemaId: true, processBillingEventFunction: true, productsTableId: true, provider: true, recordDisputeFunction: true, recordRefundFunction: true, schemaId: true, subscriptionsTableId: true, sweepOverdueSubscriptionsFunction: true, upsertBillingCustomerFunction: true, upsertBillingPriceFunction: true, upsertBillingProductFunction: true, upsertBillingSubscriptionFunction: 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, 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 } }, + selection: { fields: { activatePlanSubscriptionFunction: true, apiName: true, billingCustomersTableId: true, billingCustomersTableName: true, billingDisputesTableId: true, billingDisputesTableName: 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, getActivePlanPricingFunction: true, getBillingCustomerFunction: true, getBillingPriceFunction: true, getBillingProductFunction: true, getBillingSubscriptionFunction: true, getFallbackFreePlanFunction: true, id: true, listPendingUsageSyncFunction: true, markUsageSyncedFunction: true, prefix: true, pricesTableId: true, privateApiName: true, privateSchemaId: true, processBillingEventFunction: true, productsTableId: true, provider: true, recordDisputeFunction: true, recordRefundFunction: true, schemaId: true, subscriptionsTableId: true, sweepOverdueSubscriptionsFunction: true, upsertBillingCustomerFunction: true, upsertBillingPriceFunction: true, upsertBillingProductFunction: true, upsertBillingSubscriptionFunction: true, upsertInvoiceFunction: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useBillingProviderModulesQuery({ const { mutate } = useCreateBillingProviderModuleMutation({ selection: { fields: { id: true } }, }); -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: '' }); +mutate({ activatePlanSubscriptionFunction: '', apiName: '', billingCustomersTableId: '', billingCustomersTableName: '', billingDisputesTableId: '', billingDisputesTableName: '', billingInvoicesTableId: '', billingInvoicesTableName: '', billingPricesTableId: '', billingPricesTableName: '', billingProductsTableId: '', billingProductsTableName: '', billingRefundsTableId: '', billingRefundsTableName: '', billingSubscriptionsTableId: '', billingSubscriptionsTableName: '', billingWebhookEventsTableId: '', billingWebhookEventsTableName: '', databaseId: '', getActivePlanPricingFunction: '', getBillingCustomerFunction: '', getBillingPriceFunction: '', getBillingProductFunction: '', getBillingSubscriptionFunction: '', getFallbackFreePlanFunction: '', listPendingUsageSyncFunction: '', markUsageSyncedFunction: '', prefix: '', pricesTableId: '', privateApiName: '', privateSchemaId: '', processBillingEventFunction: '', productsTableId: '', provider: '', recordDisputeFunction: '', recordRefundFunction: '', schemaId: '', subscriptionsTableId: '', sweepOverdueSubscriptionsFunction: '', upsertBillingCustomerFunction: '', upsertBillingPriceFunction: '', upsertBillingProductFunction: '', upsertBillingSubscriptionFunction: '', upsertInvoiceFunction: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/catalog-module.md b/.agents/skills/hooks-modules/references/catalog-module.md index ba6b2625c0..2f4a72b07b 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, 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 } } }) +useCatalogModulesQuery({ selection: { fields: { apiName: true, apisTableId: true, apisTableName: true, appStoreIdentitiesTableId: true, appStoreIdentitiesTableName: 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, imagesTableId: true, imagesTableName: true, managedDomainsTableId: true, managedDomainsTableName: true, namespacesTableId: true, namespacesTableName: true, policies: true, privateApiName: true, provisions: true, publicSchemaName: true, redirectsTableId: true, redirectsTableName: 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, appStoreIdentitiesTableId: true, appStoreIdentitiesTableName: 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, imagesTableId: true, imagesTableName: true, managedDomainsTableId: true, managedDomainsTableName: true, namespacesTableId: true, namespacesTableName: true, policies: true, privateApiName: true, provisions: true, publicSchemaName: true, redirectsTableId: true, redirectsTableName: 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, 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 } }, + selection: { fields: { apiName: true, apisTableId: true, apisTableName: true, appStoreIdentitiesTableId: true, appStoreIdentitiesTableName: 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, imagesTableId: true, imagesTableName: true, managedDomainsTableId: true, managedDomainsTableName: true, namespacesTableId: true, namespacesTableName: true, policies: true, privateApiName: true, provisions: true, publicSchemaName: true, redirectsTableId: true, redirectsTableName: 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: '', 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: '' }); +mutate({ apiName: '', apisTableId: '', apisTableName: '', appStoreIdentitiesTableId: '', appStoreIdentitiesTableName: '', appsTableId: '', appsTableName: '', bindingsTableId: '', bindingsTableName: '', bucketsTableId: '', bucketsTableName: '', databaseId: '', defaultCapabilities: '', domainsTableId: '', domainsTableName: '', entityTableId: '', functionsTableId: '', functionsTableName: '', imagesTableId: '', imagesTableName: '', managedDomainsTableId: '', managedDomainsTableName: '', namespacesTableId: '', namespacesTableName: '', policies: '', privateApiName: '', provisions: '', publicSchemaName: '', redirectsTableId: '', redirectsTableName: '', 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/cluster-module.md b/.agents/skills/hooks-modules/references/cluster-module.md new file mode 100644 index 0000000000..03eeb0f1a2 --- /dev/null +++ b/.agents/skills/hooks-modules/references/cluster-module.md @@ -0,0 +1,34 @@ +# clusterModule + + + +React Query hooks for ClusterModule data operations + +## Usage + +```typescript +useClusterModulesQuery({ selection: { fields: { apiName: true, clusterEventsTableId: true, clusterEventsTableName: true, clustersTableId: true, clustersTableName: true, databaseId: true, databasePlacementsTableId: true, databasePlacementsTableName: true, databaseServersTableId: true, databaseServersTableName: true, defaultCapabilities: true, entityField: true, id: true, partitionInterval: true, physicalDatabasesTableId: true, physicalDatabasesTableName: true, policies: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, retention: true, schemaId: true, scope: true } } }) +useClusterModuleQuery({ id: '', selection: { fields: { apiName: true, clusterEventsTableId: true, clusterEventsTableName: true, clustersTableId: true, clustersTableName: true, databaseId: true, databasePlacementsTableId: true, databasePlacementsTableName: true, databaseServersTableId: true, databaseServersTableName: true, defaultCapabilities: true, entityField: true, id: true, partitionInterval: true, physicalDatabasesTableId: true, physicalDatabasesTableName: true, policies: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, retention: true, schemaId: true, scope: true } } }) +useCreateClusterModuleMutation({ selection: { fields: { id: true } } }) +useUpdateClusterModuleMutation({ selection: { fields: { id: true } } }) +useDeleteClusterModuleMutation({}) +``` + +## Examples + +### List all clusterModules + +```typescript +const { data, isLoading } = useClusterModulesQuery({ + selection: { fields: { apiName: true, clusterEventsTableId: true, clusterEventsTableName: true, clustersTableId: true, clustersTableName: true, databaseId: true, databasePlacementsTableId: true, databasePlacementsTableName: true, databaseServersTableId: true, databaseServersTableName: true, defaultCapabilities: true, entityField: true, id: true, partitionInterval: true, physicalDatabasesTableId: true, physicalDatabasesTableName: true, policies: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, retention: true, schemaId: true, scope: true } }, +}); +``` + +### Create a clusterModule + +```typescript +const { mutate } = useCreateClusterModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ apiName: '', clusterEventsTableId: '', clusterEventsTableName: '', clustersTableId: '', clustersTableName: '', databaseId: '', databasePlacementsTableId: '', databasePlacementsTableName: '', databaseServersTableId: '', databaseServersTableName: '', defaultCapabilities: '', entityField: '', partitionInterval: '', physicalDatabasesTableId: '', physicalDatabasesTableName: '', policies: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', retention: '', schemaId: '', scope: '' }); +``` diff --git a/.agents/skills/hooks-modules/references/compute-log-module.md b/.agents/skills/hooks-modules/references/compute-log-module.md index 5ff24ca5c9..a9bbc4e188 100644 --- a/.agents/skills/hooks-modules/references/compute-log-module.md +++ b/.agents/skills/hooks-modules/references/compute-log-module.md @@ -7,8 +7,8 @@ React Query hooks for ComputeLogModule data operations ## Usage ```typescript -useComputeLogModulesQuery({ selection: { fields: { actorFkTableId: true, apiName: true, computeLogTableId: true, computeLogTableName: true, databaseId: true, entityField: true, entityFkTableId: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, schemaId: true, scope: true, usageSummaryTableId: true, usageSummaryTableName: true } } }) -useComputeLogModuleQuery({ id: '', selection: { fields: { actorFkTableId: true, apiName: true, computeLogTableId: true, computeLogTableName: true, databaseId: true, entityField: true, entityFkTableId: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, schemaId: true, scope: true, usageSummaryTableId: true, usageSummaryTableName: true } } }) +useComputeLogModulesQuery({ selection: { fields: { apiName: true, computeLogTableId: true, computeLogTableName: true, databaseId: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, rollupFunctionName: true, schemaId: true, scope: true, usageSummaryTableId: true, usageSummaryTableName: true } } }) +useComputeLogModuleQuery({ id: '', selection: { fields: { apiName: true, computeLogTableId: true, computeLogTableName: true, databaseId: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, rollupFunctionName: true, schemaId: true, scope: true, usageSummaryTableId: true, usageSummaryTableName: true } } }) useCreateComputeLogModuleMutation({ selection: { fields: { id: true } } }) useUpdateComputeLogModuleMutation({ selection: { fields: { id: true } } }) useDeleteComputeLogModuleMutation({}) @@ -20,7 +20,7 @@ useDeleteComputeLogModuleMutation({}) ```typescript const { data, isLoading } = useComputeLogModulesQuery({ - selection: { fields: { actorFkTableId: true, apiName: true, computeLogTableId: true, computeLogTableName: true, databaseId: true, entityField: true, entityFkTableId: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, schemaId: true, scope: true, usageSummaryTableId: true, usageSummaryTableName: true } }, + selection: { fields: { apiName: true, computeLogTableId: true, computeLogTableName: true, databaseId: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, rollupFunctionName: true, schemaId: true, scope: true, usageSummaryTableId: true, usageSummaryTableName: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useComputeLogModulesQuery({ const { mutate } = useCreateComputeLogModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ actorFkTableId: '', apiName: '', computeLogTableId: '', computeLogTableName: '', databaseId: '', entityField: '', entityFkTableId: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', retention: '', schemaId: '', scope: '', usageSummaryTableId: '', usageSummaryTableName: '' }); +mutate({ apiName: '', computeLogTableId: '', computeLogTableName: '', databaseId: '', entityField: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', retention: '', rollupFunctionName: '', schemaId: '', scope: '', usageSummaryTableId: '', usageSummaryTableName: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/construct-blueprint.md b/.agents/skills/hooks-modules/references/construct-blueprint.md index 8e2057c745..cfcd8feaa2 100644 --- a/.agents/skills/hooks-modules/references/construct-blueprint.md +++ b/.agents/skills/hooks-modules/references/construct-blueprint.md @@ -2,7 +2,7 @@ -Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry — provisions entity tables, membership modules, and security. 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. +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). A table entry either names its table (table_name plus optional schema_name) or references one an installed module generated ("module": {"type": "agent", "scope": "org", "table": "message"}), which resolves through the module row's recorded table ids and raises when it matches nothing instead of creating an empty table. After provisioning, optional smart_tags (jsonb object) on the table entry are applied via metaschema.append_table_smart_tags(), and optional smart_tags on individual field entries are applied via metaschema.append_field_smart_tags(). (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] — resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID on success, NULL on failure. ## Usage diff --git a/.agents/skills/hooks-modules/references/database-provision-module.md b/.agents/skills/hooks-modules/references/database-provision-module.md index c0ee4b241f..e09f35feaa 100644 --- a/.agents/skills/hooks-modules/references/database-provision-module.md +++ b/.agents/skills/hooks-modules/references/database-provision-module.md @@ -7,8 +7,8 @@ Tracks database provisioning requests and their status. The BEFORE INSERT trigge ## Usage ```typescript -useDatabaseProvisionModulesQuery({ selection: { fields: { async: true, bootstrapError: true, bootstrapStatus: true, bootstrapUser: true, completedAt: true, createdAt: true, databaseId: true, databaseName: true, domain: true, errorMessage: true, fulfilledAt: true, id: true, modules: true, options: true, ownerId: true, sourceDatabaseId: true, status: true, subdomain: true, updatedAt: true } } }) -useDatabaseProvisionModuleQuery({ id: '', selection: { fields: { async: true, bootstrapError: true, bootstrapStatus: true, bootstrapUser: true, completedAt: true, createdAt: true, databaseId: true, databaseName: true, domain: true, errorMessage: true, fulfilledAt: true, id: true, modules: true, options: true, ownerId: true, sourceDatabaseId: true, status: true, subdomain: true, updatedAt: true } } }) +useDatabaseProvisionModulesQuery({ selection: { fields: { async: true, bootstrapActorId: true, bootstrapError: true, bootstrapStatus: true, bootstrapUser: true, completedAt: true, createdAt: true, databaseId: true, databaseName: true, domain: true, errorMessage: true, fulfilledAt: true, id: true, modules: true, options: true, ownerId: true, sourceDatabaseId: true, status: true, subdomain: true, updatedAt: true } } }) +useDatabaseProvisionModuleQuery({ id: '', selection: { fields: { async: true, bootstrapActorId: true, bootstrapError: true, bootstrapStatus: true, bootstrapUser: true, completedAt: true, createdAt: true, databaseId: true, databaseName: true, domain: true, errorMessage: true, fulfilledAt: true, id: true, modules: true, options: true, ownerId: true, sourceDatabaseId: true, status: true, subdomain: true, updatedAt: true } } }) useCreateDatabaseProvisionModuleMutation({ selection: { fields: { id: true } } }) useUpdateDatabaseProvisionModuleMutation({ selection: { fields: { id: true } } }) useDeleteDatabaseProvisionModuleMutation({}) @@ -20,7 +20,7 @@ useDeleteDatabaseProvisionModuleMutation({}) ```typescript const { data, isLoading } = useDatabaseProvisionModulesQuery({ - selection: { fields: { async: true, bootstrapError: true, bootstrapStatus: true, bootstrapUser: true, completedAt: true, createdAt: true, databaseId: true, databaseName: true, domain: true, errorMessage: true, fulfilledAt: true, id: true, modules: true, options: true, ownerId: true, sourceDatabaseId: true, status: true, subdomain: true, updatedAt: true } }, + selection: { fields: { async: true, bootstrapActorId: true, bootstrapError: true, bootstrapStatus: true, bootstrapUser: true, completedAt: true, createdAt: true, databaseId: true, databaseName: true, domain: true, errorMessage: true, fulfilledAt: true, id: true, modules: true, options: true, ownerId: true, sourceDatabaseId: true, status: true, subdomain: true, updatedAt: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useDatabaseProvisionModulesQuery({ const { mutate } = useCreateDatabaseProvisionModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ async: '', bootstrapError: '', bootstrapStatus: '', bootstrapUser: '', completedAt: '', databaseId: '', databaseName: '', domain: '', errorMessage: '', fulfilledAt: '', modules: '', options: '', ownerId: '', sourceDatabaseId: '', status: '', subdomain: '' }); +mutate({ async: '', bootstrapActorId: '', bootstrapError: '', bootstrapStatus: '', bootstrapUser: '', completedAt: '', databaseId: '', databaseName: '', domain: '', errorMessage: '', fulfilledAt: '', modules: '', options: '', ownerId: '', sourceDatabaseId: '', status: '', subdomain: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/function-module.md b/.agents/skills/hooks-modules/references/function-module.md index 003d49381f..a50b8f4dde 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, 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 } } }) +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, storageKey: 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, storageKey: 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, 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 } }, + 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, storageKey: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useFunctionModulesQuery({ const { mutate } = useCreateFunctionModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ apiName: '', bindingsTableId: '', bindingsTableName: '', capabilityBindingsTableId: '', databaseId: '', defaultCapabilities: '', 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: '', storageKey: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/image-module.md b/.agents/skills/hooks-modules/references/image-module.md new file mode 100644 index 0000000000..fdfc40ada0 --- /dev/null +++ b/.agents/skills/hooks-modules/references/image-module.md @@ -0,0 +1,34 @@ +# imageModule + + + +React Query hooks for ImageModule data operations + +## Usage + +```typescript +useImageModulesQuery({ selection: { fields: { apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, imageGrantsTableId: true, imageGrantsTableName: true, imagesTableId: true, imagesTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, registriesTableId: true, registriesTableName: true, registryGrantsTableId: true, registryGrantsTableName: true, schemaId: true, scope: true } } }) +useImageModuleQuery({ id: '', selection: { fields: { apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, imageGrantsTableId: true, imageGrantsTableName: true, imagesTableId: true, imagesTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, registriesTableId: true, registriesTableName: true, registryGrantsTableId: true, registryGrantsTableName: true, schemaId: true, scope: true } } }) +useCreateImageModuleMutation({ selection: { fields: { id: true } } }) +useUpdateImageModuleMutation({ selection: { fields: { id: true } } }) +useDeleteImageModuleMutation({}) +``` + +## Examples + +### List all imageModules + +```typescript +const { data, isLoading } = useImageModulesQuery({ + selection: { fields: { apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, imageGrantsTableId: true, imageGrantsTableName: true, imagesTableId: true, imagesTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, registriesTableId: true, registriesTableName: true, registryGrantsTableId: true, registryGrantsTableName: true, schemaId: true, scope: true } }, +}); +``` + +### Create a imageModule + +```typescript +const { mutate } = useCreateImageModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ apiName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', imageGrantsTableId: '', imageGrantsTableName: '', imagesTableId: '', imagesTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', registriesTableId: '', registriesTableName: '', registryGrantsTableId: '', registryGrantsTableName: '', schemaId: '', scope: '' }); +``` diff --git a/.agents/skills/hooks-modules/references/inference-log-module.md b/.agents/skills/hooks-modules/references/inference-log-module.md index 61b51314b9..ba2dc5aa95 100644 --- a/.agents/skills/hooks-modules/references/inference-log-module.md +++ b/.agents/skills/hooks-modules/references/inference-log-module.md @@ -7,8 +7,8 @@ React Query hooks for InferenceLogModule data operations ## Usage ```typescript -useInferenceLogModulesQuery({ selection: { fields: { actorFkTableId: true, apiName: true, databaseId: true, entityField: true, entityFkTableId: true, id: true, inferenceLogTableId: true, inferenceLogTableName: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, schemaId: true, scope: true, usageSummaryTableId: true, usageSummaryTableName: true } } }) -useInferenceLogModuleQuery({ id: '', selection: { fields: { actorFkTableId: true, apiName: true, databaseId: true, entityField: true, entityFkTableId: true, id: true, inferenceLogTableId: true, inferenceLogTableName: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, schemaId: true, scope: true, usageSummaryTableId: true, usageSummaryTableName: true } } }) +useInferenceLogModulesQuery({ selection: { fields: { apiName: true, databaseId: true, entityField: true, id: true, inferenceLogTableId: true, inferenceLogTableName: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, rollupFunctionName: true, schemaId: true, scope: true, usageSummaryTableId: true, usageSummaryTableName: true } } }) +useInferenceLogModuleQuery({ id: '', selection: { fields: { apiName: true, databaseId: true, entityField: true, id: true, inferenceLogTableId: true, inferenceLogTableName: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, rollupFunctionName: true, schemaId: true, scope: true, usageSummaryTableId: true, usageSummaryTableName: true } } }) useCreateInferenceLogModuleMutation({ selection: { fields: { id: true } } }) useUpdateInferenceLogModuleMutation({ selection: { fields: { id: true } } }) useDeleteInferenceLogModuleMutation({}) @@ -20,7 +20,7 @@ useDeleteInferenceLogModuleMutation({}) ```typescript const { data, isLoading } = useInferenceLogModulesQuery({ - selection: { fields: { actorFkTableId: true, apiName: true, databaseId: true, entityField: true, entityFkTableId: true, id: true, inferenceLogTableId: true, inferenceLogTableName: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, schemaId: true, scope: true, usageSummaryTableId: true, usageSummaryTableName: true } }, + selection: { fields: { apiName: true, databaseId: true, entityField: true, id: true, inferenceLogTableId: true, inferenceLogTableName: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, rollupFunctionName: true, schemaId: true, scope: true, usageSummaryTableId: true, usageSummaryTableName: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useInferenceLogModulesQuery({ const { mutate } = useCreateInferenceLogModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ actorFkTableId: '', apiName: '', databaseId: '', entityField: '', entityFkTableId: '', inferenceLogTableId: '', inferenceLogTableName: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', retention: '', schemaId: '', scope: '', usageSummaryTableId: '', usageSummaryTableName: '' }); +mutate({ apiName: '', databaseId: '', entityField: '', inferenceLogTableId: '', inferenceLogTableName: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', retention: '', rollupFunctionName: '', schemaId: '', scope: '', usageSummaryTableId: '', usageSummaryTableName: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/internal-config-module.md b/.agents/skills/hooks-modules/references/internal-config-module.md new file mode 100644 index 0000000000..cfcb2bdb84 --- /dev/null +++ b/.agents/skills/hooks-modules/references/internal-config-module.md @@ -0,0 +1,34 @@ +# internalConfigModule + + + +Scope-aware plaintext internal config store. No namespace_module dependency and no K8s synchronization: values are read from the database at invocation time. Configuration that must be projected into a Kubernetes ConfigMap belongs in infra_config_module. + +## Usage + +```typescript +useInternalConfigModulesQuery({ selection: { fields: { apiName: true, databaseId: true, entityField: true, entityTableId: true, id: true, internalConfigTableId: true, internalConfigTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } } }) +useInternalConfigModuleQuery({ id: '', selection: { fields: { apiName: true, databaseId: true, entityField: true, entityTableId: true, id: true, internalConfigTableId: true, internalConfigTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } } }) +useCreateInternalConfigModuleMutation({ selection: { fields: { id: true } } }) +useUpdateInternalConfigModuleMutation({ selection: { fields: { id: true } } }) +useDeleteInternalConfigModuleMutation({}) +``` + +## Examples + +### List all internalConfigModules + +```typescript +const { data, isLoading } = useInternalConfigModulesQuery({ + selection: { fields: { apiName: true, databaseId: true, entityField: true, entityTableId: true, id: true, internalConfigTableId: true, internalConfigTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }, +}); +``` + +### Create a internalConfigModule + +```typescript +const { mutate } = useCreateInternalConfigModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ apiName: '', databaseId: '', entityField: '', entityTableId: '', internalConfigTableId: '', internalConfigTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }); +``` diff --git a/.agents/skills/hooks-modules/references/k-8-s-admission-module.md b/.agents/skills/hooks-modules/references/k-8-s-admission-module.md new file mode 100644 index 0000000000..4f7c3dbd93 --- /dev/null +++ b/.agents/skills/hooks-modules/references/k-8-s-admission-module.md @@ -0,0 +1,34 @@ +# k8sAdmissionModule + + + +Provisions the platform-managed Kubernetes admission catalogs: a kinds table and a spec-rules table, Merkle-versioned through the referenced merkle_store_module, whose rows the generated admission gate on resources/resource_definitions reads. Writes are platform-admin and human-only; every scope reads the one catalog. + +## Usage + +```typescript +useK8sAdmissionModulesQuery({ selection: { fields: { apiName: true, createdAt: true, databaseId: true, entityTableId: true, id: true, k8sResourceKindsTableId: true, k8sSpecRulesTableId: true, merkleStoreModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaId: true, publicSchemaName: true, scope: true, storeName: true } } }) +useK8sAdmissionModuleQuery({ id: '', selection: { fields: { apiName: true, createdAt: true, databaseId: true, entityTableId: true, id: true, k8sResourceKindsTableId: true, k8sSpecRulesTableId: true, merkleStoreModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaId: true, publicSchemaName: true, scope: true, storeName: true } } }) +useCreateK8sAdmissionModuleMutation({ selection: { fields: { id: true } } }) +useUpdateK8sAdmissionModuleMutation({ selection: { fields: { id: true } } }) +useDeleteK8sAdmissionModuleMutation({}) +``` + +## Examples + +### List all k8sAdmissionModules + +```typescript +const { data, isLoading } = useK8sAdmissionModulesQuery({ + selection: { fields: { apiName: true, createdAt: true, databaseId: true, entityTableId: true, id: true, k8sResourceKindsTableId: true, k8sSpecRulesTableId: 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 k8sAdmissionModule + +```typescript +const { mutate } = useCreateK8sAdmissionModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ apiName: '', databaseId: '', entityTableId: '', k8sResourceKindsTableId: '', k8sSpecRulesTableId: '', merkleStoreModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaId: '', publicSchemaName: '', scope: '', storeName: '' }); +``` diff --git a/.agents/skills/hooks-modules/references/machine-module.md b/.agents/skills/hooks-modules/references/machine-module.md new file mode 100644 index 0000000000..4913887695 --- /dev/null +++ b/.agents/skills/hooks-modules/references/machine-module.md @@ -0,0 +1,34 @@ +# machineModule + + + +React Query hooks for MachineModule data operations + +## Usage + +```typescript +useMachineModulesQuery({ selection: { fields: { apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, machineMessagesTableId: true, machineMessagesTableName: true, machineSessionsTableId: true, machineSessionsTableName: true, machinesTableId: true, machinesTableName: true, partitionInterval: true, policies: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, retention: true, schemaId: true, scope: true } } }) +useMachineModuleQuery({ id: '', selection: { fields: { apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, machineMessagesTableId: true, machineMessagesTableName: true, machineSessionsTableId: true, machineSessionsTableName: true, machinesTableId: true, machinesTableName: true, partitionInterval: true, policies: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, retention: true, schemaId: true, scope: true } } }) +useCreateMachineModuleMutation({ selection: { fields: { id: true } } }) +useUpdateMachineModuleMutation({ selection: { fields: { id: true } } }) +useDeleteMachineModuleMutation({}) +``` + +## Examples + +### List all machineModules + +```typescript +const { data, isLoading } = useMachineModulesQuery({ + selection: { fields: { apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, machineMessagesTableId: true, machineMessagesTableName: true, machineSessionsTableId: true, machineSessionsTableName: true, machinesTableId: true, machinesTableName: true, partitionInterval: true, policies: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, retention: true, schemaId: true, scope: true } }, +}); +``` + +### Create a machineModule + +```typescript +const { mutate } = useCreateMachineModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ apiName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', machineMessagesTableId: '', machineMessagesTableName: '', machineSessionsTableId: '', machineSessionsTableName: '', machinesTableId: '', machinesTableName: '', partitionInterval: '', policies: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', retention: '', schemaId: '', scope: '' }); +``` diff --git a/.agents/skills/hooks-modules/references/merkle-store-module.md b/.agents/skills/hooks-modules/references/merkle-store-module.md index a66a1ad8a3..8839fd1b29 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, 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 } } }) +useMerkleStoreModulesQuery({ selection: { fields: { apiName: true, capabilityKey: true, commitTableId: true, createdAt: true, databaseId: true, entityField: true, entityTableId: 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, entityTableId: 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, 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 } }, + selection: { fields: { apiName: true, capabilityKey: true, commitTableId: true, createdAt: true, databaseId: true, entityField: true, entityTableId: 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: '', capabilityKey: '', commitTableId: '', databaseId: '', entityField: '', functionPrefix: '', objectTableId: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', refTableId: '', schemaId: '', scope: '', storeTableId: '' }); +mutate({ apiName: '', capabilityKey: '', commitTableId: '', databaseId: '', entityField: '', entityTableId: '', functionPrefix: '', objectTableId: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', refTableId: '', schemaId: '', scope: '', storeTableId: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/pages-module.md b/.agents/skills/hooks-modules/references/pages-module.md index ce302f033b..4fd09e7500 100644 --- a/.agents/skills/hooks-modules/references/pages-module.md +++ b/.agents/skills/hooks-modules/references/pages-module.md @@ -7,8 +7,8 @@ React Query hooks for PagesModule data operations ## Usage ```typescript -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 } } }) -usePagesModuleQuery({ 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 } } }) +usePagesModulesQuery({ selection: { fields: { apiName: true, createdAt: true, databaseId: true, entityTableId: true, id: true, merkleStoreModuleId: true, pagesTableId: true, policies: true, prefix: true, previewCommitFunctionName: true, previewSetFunctionName: true, previewTokenMintFunctionName: true, previewTokenVerifierFunctionName: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaId: true, publicSchemaName: true, releaseManifestFunctionName: true, scope: true, siteSurfaceModuleId: true, sitesTableId: true, storeNamePrefix: true } } }) +usePagesModuleQuery({ id: '', selection: { fields: { apiName: true, createdAt: true, databaseId: true, entityTableId: true, id: true, merkleStoreModuleId: true, pagesTableId: true, policies: true, prefix: true, previewCommitFunctionName: true, previewSetFunctionName: true, previewTokenMintFunctionName: true, previewTokenVerifierFunctionName: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaId: true, publicSchemaName: true, releaseManifestFunctionName: true, scope: true, siteSurfaceModuleId: true, sitesTableId: true, storeNamePrefix: true } } }) useCreatePagesModuleMutation({ selection: { fields: { id: true } } }) useUpdatePagesModuleMutation({ selection: { fields: { id: true } } }) useDeletePagesModuleMutation({}) @@ -20,7 +20,7 @@ useDeletePagesModuleMutation({}) ```typescript 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 } }, + selection: { fields: { apiName: true, createdAt: true, databaseId: true, entityTableId: true, id: true, merkleStoreModuleId: true, pagesTableId: true, policies: true, prefix: true, previewCommitFunctionName: true, previewSetFunctionName: true, previewTokenMintFunctionName: true, previewTokenVerifierFunctionName: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaId: true, publicSchemaName: true, releaseManifestFunctionName: true, scope: true, siteSurfaceModuleId: true, sitesTableId: true, storeNamePrefix: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = usePagesModulesQuery({ const { mutate } = useCreatePagesModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ apiName: '', databaseId: '', entityTableId: '', merkleStoreModuleId: '', pagesTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaId: '', publicSchemaName: '', scope: '', siteSurfaceModuleId: '', sitesTableId: '', storeNamePrefix: '' }); +mutate({ apiName: '', databaseId: '', entityTableId: '', merkleStoreModuleId: '', pagesTableId: '', policies: '', prefix: '', previewCommitFunctionName: '', previewSetFunctionName: '', previewTokenMintFunctionName: '', previewTokenVerifierFunctionName: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaId: '', publicSchemaName: '', releaseManifestFunctionName: '', scope: '', siteSurfaceModuleId: '', sitesTableId: '', storeNamePrefix: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/principal-auth-module.md b/.agents/skills/hooks-modules/references/principal-auth-module.md index 8e0e3dbab0..d2fed563b9 100644 --- a/.agents/skills/hooks-modules/references/principal-auth-module.md +++ b/.agents/skills/hooks-modules/references/principal-auth-module.md @@ -7,8 +7,8 @@ Provisions the principals subsystem: a principals table, a principal_entities ju ## Usage ```typescript -usePrincipalAuthModulesQuery({ selection: { fields: { apiName: true, auditsTableId: true, createOrgApiKeyFunction: true, createOrgPrincipalFunction: true, createPrincipalFunction: true, databaseId: true, deleteOrgPrincipalFunction: true, deletePrincipalFunction: true, id: true, principalEntitiesTableId: true, principalScopeOverridesTableId: true, principalsTableId: true, principalsTableName: true, revokeOrgApiKeyFunction: true, schemaId: true, sessionCredentialsTableId: true, sessionsTableId: true, usersTableId: true } } }) -usePrincipalAuthModuleQuery({ id: '', selection: { fields: { apiName: true, auditsTableId: true, createOrgApiKeyFunction: true, createOrgPrincipalFunction: true, createPrincipalFunction: true, databaseId: true, deleteOrgPrincipalFunction: true, deletePrincipalFunction: true, id: true, principalEntitiesTableId: true, principalScopeOverridesTableId: true, principalsTableId: true, principalsTableName: true, revokeOrgApiKeyFunction: true, schemaId: true, sessionCredentialsTableId: true, sessionsTableId: true, usersTableId: true } } }) +usePrincipalAuthModulesQuery({ selection: { fields: { apiName: true, auditsTableId: true, createOrgApiKeyFunction: true, createOrgPrincipalFunction: true, createPrincipalFunction: true, databaseId: true, deleteOrgPrincipalFunction: true, deletePrincipalFunction: true, id: true, principalEntitiesTableId: true, principalScopeOverridesTableId: true, principalsTableId: true, principalsTableName: true, privateSchemaId: true, revokeOrgApiKeyFunction: true, schemaId: true, sessionCredentialsTableId: true, sessionsTableId: true, sweepExpiredPrincipalsFunction: true, usersTableId: true } } }) +usePrincipalAuthModuleQuery({ id: '', selection: { fields: { apiName: true, auditsTableId: true, createOrgApiKeyFunction: true, createOrgPrincipalFunction: true, createPrincipalFunction: true, databaseId: true, deleteOrgPrincipalFunction: true, deletePrincipalFunction: true, id: true, principalEntitiesTableId: true, principalScopeOverridesTableId: true, principalsTableId: true, principalsTableName: true, privateSchemaId: true, revokeOrgApiKeyFunction: true, schemaId: true, sessionCredentialsTableId: true, sessionsTableId: true, sweepExpiredPrincipalsFunction: true, usersTableId: true } } }) useCreatePrincipalAuthModuleMutation({ selection: { fields: { id: true } } }) useUpdatePrincipalAuthModuleMutation({ selection: { fields: { id: true } } }) useDeletePrincipalAuthModuleMutation({}) @@ -20,7 +20,7 @@ useDeletePrincipalAuthModuleMutation({}) ```typescript const { data, isLoading } = usePrincipalAuthModulesQuery({ - selection: { fields: { apiName: true, auditsTableId: true, createOrgApiKeyFunction: true, createOrgPrincipalFunction: true, createPrincipalFunction: true, databaseId: true, deleteOrgPrincipalFunction: true, deletePrincipalFunction: true, id: true, principalEntitiesTableId: true, principalScopeOverridesTableId: true, principalsTableId: true, principalsTableName: true, revokeOrgApiKeyFunction: true, schemaId: true, sessionCredentialsTableId: true, sessionsTableId: true, usersTableId: true } }, + selection: { fields: { apiName: true, auditsTableId: true, createOrgApiKeyFunction: true, createOrgPrincipalFunction: true, createPrincipalFunction: true, databaseId: true, deleteOrgPrincipalFunction: true, deletePrincipalFunction: true, id: true, principalEntitiesTableId: true, principalScopeOverridesTableId: true, principalsTableId: true, principalsTableName: true, privateSchemaId: true, revokeOrgApiKeyFunction: true, schemaId: true, sessionCredentialsTableId: true, sessionsTableId: true, sweepExpiredPrincipalsFunction: true, usersTableId: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = usePrincipalAuthModulesQuery({ const { mutate } = useCreatePrincipalAuthModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ apiName: '', auditsTableId: '', createOrgApiKeyFunction: '', createOrgPrincipalFunction: '', createPrincipalFunction: '', databaseId: '', deleteOrgPrincipalFunction: '', deletePrincipalFunction: '', principalEntitiesTableId: '', principalScopeOverridesTableId: '', principalsTableId: '', principalsTableName: '', revokeOrgApiKeyFunction: '', schemaId: '', sessionCredentialsTableId: '', sessionsTableId: '', usersTableId: '' }); +mutate({ apiName: '', auditsTableId: '', createOrgApiKeyFunction: '', createOrgPrincipalFunction: '', createPrincipalFunction: '', databaseId: '', deleteOrgPrincipalFunction: '', deletePrincipalFunction: '', principalEntitiesTableId: '', principalScopeOverridesTableId: '', principalsTableId: '', principalsTableName: '', privateSchemaId: '', revokeOrgApiKeyFunction: '', schemaId: '', sessionCredentialsTableId: '', sessionsTableId: '', sweepExpiredPrincipalsFunction: '', usersTableId: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/provision-bucket.md b/.agents/skills/hooks-modules/references/provision-bucket.md index e003fc5551..92740fefbd 100644 --- a/.agents/skills/hooks-modules/references/provision-bucket.md +++ b/.agents/skills/hooks-modules/references/provision-bucket.md @@ -2,10 +2,11 @@ -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. +Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. ## Usage diff --git a/.agents/skills/hooks-modules/references/refusal-log-module.md b/.agents/skills/hooks-modules/references/refusal-log-module.md new file mode 100644 index 0000000000..b111c22c13 --- /dev/null +++ b/.agents/skills/hooks-modules/references/refusal-log-module.md @@ -0,0 +1,34 @@ +# refusalLogModule + + + +React Query hooks for RefusalLogModule data operations + +## Usage + +```typescript +useRefusalLogModulesQuery({ selection: { fields: { apiName: true, databaseId: true, entityField: true, id: true, logInterval: true, logPremake: true, logRetention: true, logTableId: true, logTableName: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, recordRefusalsFunction: true, rollupRefusalUsageSummaryFunction: true, schemaId: true, scope: true, summaryInterval: true, summaryPremake: true, summaryRetention: true, summaryTableId: true, summaryTableName: true } } }) +useRefusalLogModuleQuery({ id: '', selection: { fields: { apiName: true, databaseId: true, entityField: true, id: true, logInterval: true, logPremake: true, logRetention: true, logTableId: true, logTableName: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, recordRefusalsFunction: true, rollupRefusalUsageSummaryFunction: true, schemaId: true, scope: true, summaryInterval: true, summaryPremake: true, summaryRetention: true, summaryTableId: true, summaryTableName: true } } }) +useCreateRefusalLogModuleMutation({ selection: { fields: { id: true } } }) +useUpdateRefusalLogModuleMutation({ selection: { fields: { id: true } } }) +useDeleteRefusalLogModuleMutation({}) +``` + +## Examples + +### List all refusalLogModules + +```typescript +const { data, isLoading } = useRefusalLogModulesQuery({ + selection: { fields: { apiName: true, databaseId: true, entityField: true, id: true, logInterval: true, logPremake: true, logRetention: true, logTableId: true, logTableName: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, recordRefusalsFunction: true, rollupRefusalUsageSummaryFunction: true, schemaId: true, scope: true, summaryInterval: true, summaryPremake: true, summaryRetention: true, summaryTableId: true, summaryTableName: true } }, +}); +``` + +### Create a refusalLogModule + +```typescript +const { mutate } = useCreateRefusalLogModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ apiName: '', databaseId: '', entityField: '', logInterval: '', logPremake: '', logRetention: '', logTableId: '', logTableName: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', recordRefusalsFunction: '', rollupRefusalUsageSummaryFunction: '', schemaId: '', scope: '', summaryInterval: '', summaryPremake: '', summaryRetention: '', summaryTableId: '', summaryTableName: '' }); +``` diff --git a/.agents/skills/hooks-modules/references/repository-module.md b/.agents/skills/hooks-modules/references/repository-module.md new file mode 100644 index 0000000000..da9914f669 --- /dev/null +++ b/.agents/skills/hooks-modules/references/repository-module.md @@ -0,0 +1,34 @@ +# repositoryModule + + + +React Query hooks for RepositoryModule data operations + +## Usage + +```typescript +useRepositoryModulesQuery({ selection: { fields: { apiName: true, buildStepsTableId: true, buildStepsTableName: true, buildsTableId: true, buildsTableName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, hasAttachments: true, hasBuilds: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, proposalCommentsTableId: true, proposalCommentsTableName: true, proposalFileViewsTableId: true, proposalFileViewsTableName: true, proposalReactionsTableId: true, proposalReactionsTableName: true, proposalReviewsTableId: true, proposalReviewsTableName: true, proposalsTableId: true, proposalsTableName: true, provisions: true, publicSchemaName: true, repositoriesTableId: true, repositoriesTableName: true, repositoryEventsTableId: true, repositoryEventsTableName: true, repositoryRequiredChecksTableId: true, repositoryRequiredChecksTableName: true, schemaId: true, scope: true, search: true, workflowsTableId: true, workflowsTableName: true } } }) +useRepositoryModuleQuery({ id: '', selection: { fields: { apiName: true, buildStepsTableId: true, buildStepsTableName: true, buildsTableId: true, buildsTableName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, hasAttachments: true, hasBuilds: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, proposalCommentsTableId: true, proposalCommentsTableName: true, proposalFileViewsTableId: true, proposalFileViewsTableName: true, proposalReactionsTableId: true, proposalReactionsTableName: true, proposalReviewsTableId: true, proposalReviewsTableName: true, proposalsTableId: true, proposalsTableName: true, provisions: true, publicSchemaName: true, repositoriesTableId: true, repositoriesTableName: true, repositoryEventsTableId: true, repositoryEventsTableName: true, repositoryRequiredChecksTableId: true, repositoryRequiredChecksTableName: true, schemaId: true, scope: true, search: true, workflowsTableId: true, workflowsTableName: true } } }) +useCreateRepositoryModuleMutation({ selection: { fields: { id: true } } }) +useUpdateRepositoryModuleMutation({ selection: { fields: { id: true } } }) +useDeleteRepositoryModuleMutation({}) +``` + +## Examples + +### List all repositoryModules + +```typescript +const { data, isLoading } = useRepositoryModulesQuery({ + selection: { fields: { apiName: true, buildStepsTableId: true, buildStepsTableName: true, buildsTableId: true, buildsTableName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, hasAttachments: true, hasBuilds: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, proposalCommentsTableId: true, proposalCommentsTableName: true, proposalFileViewsTableId: true, proposalFileViewsTableName: true, proposalReactionsTableId: true, proposalReactionsTableName: true, proposalReviewsTableId: true, proposalReviewsTableName: true, proposalsTableId: true, proposalsTableName: true, provisions: true, publicSchemaName: true, repositoriesTableId: true, repositoriesTableName: true, repositoryEventsTableId: true, repositoryEventsTableName: true, repositoryRequiredChecksTableId: true, repositoryRequiredChecksTableName: true, schemaId: true, scope: true, search: true, workflowsTableId: true, workflowsTableName: true } }, +}); +``` + +### Create a repositoryModule + +```typescript +const { mutate } = useCreateRepositoryModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ apiName: '', buildStepsTableId: '', buildStepsTableName: '', buildsTableId: '', buildsTableName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', hasAttachments: '', hasBuilds: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', proposalCommentsTableId: '', proposalCommentsTableName: '', proposalFileViewsTableId: '', proposalFileViewsTableName: '', proposalReactionsTableId: '', proposalReactionsTableName: '', proposalReviewsTableId: '', proposalReviewsTableName: '', proposalsTableId: '', proposalsTableName: '', provisions: '', publicSchemaName: '', repositoriesTableId: '', repositoriesTableName: '', repositoryEventsTableId: '', repositoryEventsTableName: '', repositoryRequiredChecksTableId: '', repositoryRequiredChecksTableName: '', schemaId: '', scope: '', search: '', workflowsTableId: '', workflowsTableName: '' }); +``` diff --git a/.agents/skills/hooks-modules/references/resource-module.md b/.agents/skills/hooks-modules/references/resource-module.md index 2167354cb6..547951ab8c 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, 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 } } }) +useResourceModulesQuery({ selection: { fields: { apiName: true, builderBindingsTableId: true, builderBindingsTableName: 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, registryBindingsTableId: true, registryBindingsTableName: 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, builderBindingsTableId: true, builderBindingsTableName: 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, registryBindingsTableId: true, registryBindingsTableName: 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, 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 } }, + selection: { fields: { apiName: true, builderBindingsTableId: true, builderBindingsTableName: 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, registryBindingsTableId: true, registryBindingsTableName: 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: '', 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: '' }); +mutate({ apiName: '', builderBindingsTableId: '', builderBindingsTableName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', installationStoreName: '', merkleStoreModuleId: '', namespaceModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', registryBindingsTableId: '', registryBindingsTableName: '', 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 31ff546f1b..f45f314d82 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, 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 } } }) +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, redirectsTableId: true, redirectsTableName: true, resolverFunctionName: true, routeBindingsTableId: true, routeBindingsTableName: true, routesTableId: true, routesTableName: true, schemaId: true, scope: true, servingSiteField: true, storageKey: 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, redirectsTableId: true, redirectsTableName: true, resolverFunctionName: true, routeBindingsTableId: true, routeBindingsTableName: true, routesTableId: true, routesTableName: true, schemaId: true, scope: true, servingSiteField: true, storageKey: 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, 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 } }, + 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, redirectsTableId: true, redirectsTableName: true, resolverFunctionName: true, routeBindingsTableId: true, routeBindingsTableName: true, routesTableId: true, routesTableName: true, schemaId: true, scope: true, servingSiteField: true, storageKey: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useRouteModulesQuery({ const { mutate } = useCreateRouteModuleMutation({ selection: { fields: { id: true } }, }); -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: '' }); +mutate({ apiName: '', appLinksFunctionName: '', catalogModuleId: '', databaseId: '', deepLinkFunctionName: '', defaultCapabilities: '', domainModuleId: '', entityField: '', entityTableId: '', hostnameBindingsTableId: '', hostnameBindingsTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', redirectsTableId: '', redirectsTableName: '', resolverFunctionName: '', routeBindingsTableId: '', routeBindingsTableName: '', routesTableId: '', routesTableName: '', schemaId: '', scope: '', servingSiteField: '', storageKey: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/secure-table-provision.md b/.agents/skills/hooks-modules/references/secure-table-provision.md index 08cffbabb0..7b034117be 100644 --- a/.agents/skills/hooks-modules/references/secure-table-provision.md +++ b/.agents/skills/hooks-modules/references/secure-table-provision.md @@ -2,13 +2,13 @@ -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. +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. The target table is addressed by table_id, by table_name, or symbolically by a module reference in module. A row that lists a concern in owns[] replaces that concern on the target table instead of composing with what is already there. ## Usage ```typescript -useSecureTableProvisionsQuery({ selection: { fields: { databaseId: true, fields: true, grants: true, id: true, nodes: true, outFields: true, policies: true, schemaId: true, tableId: true, tableName: true, useRls: true } } }) -useSecureTableProvisionQuery({ id: '', selection: { fields: { databaseId: true, fields: true, grants: true, id: true, nodes: true, outFields: true, policies: true, schemaId: true, tableId: true, tableName: true, useRls: true } } }) +useSecureTableProvisionsQuery({ selection: { fields: { databaseId: true, fields: true, grants: true, id: true, module: true, nodes: true, outFields: true, owns: true, policies: true, schemaId: true, tableId: true, tableName: true, useRls: true } } }) +useSecureTableProvisionQuery({ id: '', selection: { fields: { databaseId: true, fields: true, grants: true, id: true, module: true, nodes: true, outFields: true, owns: true, policies: true, schemaId: true, tableId: true, tableName: true, useRls: true } } }) useCreateSecureTableProvisionMutation({ selection: { fields: { id: true } } }) useUpdateSecureTableProvisionMutation({ selection: { fields: { id: true } } }) useDeleteSecureTableProvisionMutation({}) @@ -20,7 +20,7 @@ useDeleteSecureTableProvisionMutation({}) ```typescript const { data, isLoading } = useSecureTableProvisionsQuery({ - selection: { fields: { databaseId: true, fields: true, grants: true, id: true, nodes: true, outFields: true, policies: true, schemaId: true, tableId: true, tableName: true, useRls: true } }, + selection: { fields: { databaseId: true, fields: true, grants: true, id: true, module: true, nodes: true, outFields: true, owns: true, policies: true, schemaId: true, tableId: true, tableName: true, useRls: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useSecureTableProvisionsQuery({ const { mutate } = useCreateSecureTableProvisionMutation({ selection: { fields: { id: true } }, }); -mutate({ databaseId: '', fields: '', grants: '', nodes: '', outFields: '', policies: '', schemaId: '', tableId: '', tableName: '', useRls: '' }); +mutate({ databaseId: '', fields: '', grants: '', module: '', nodes: '', outFields: '', owns: '', policies: '', schemaId: '', tableId: '', tableName: '', useRls: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/site-surface-module.md b/.agents/skills/hooks-modules/references/site-surface-module.md index 550f573f83..0aec24064c 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, 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 } } }) +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, siteReleasesTableId: true, siteReleasesTableName: true, siteThemesTableId: true, siteThemesTableName: true, siteWebConfigTableId: true, siteWebConfigTableName: true, sitesTableId: true, sitesTableName: true, storageKey: 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, siteReleasesTableId: true, siteReleasesTableName: true, siteThemesTableId: true, siteThemesTableName: true, siteWebConfigTableId: true, siteWebConfigTableName: true, sitesTableId: true, sitesTableName: true, storageKey: 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, 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 } }, + 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, siteReleasesTableId: true, siteReleasesTableName: true, siteThemesTableId: true, siteThemesTableName: true, siteWebConfigTableId: true, siteWebConfigTableName: true, sitesTableId: true, sitesTableName: true, storageKey: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useSiteSurfaceModulesQuery({ const { mutate } = useCreateSiteSurfaceModuleMutation({ selection: { fields: { id: true } }, }); -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: '' }); +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: '', siteReleasesTableId: '', siteReleasesTableName: '', siteThemesTableId: '', siteThemesTableName: '', siteWebConfigTableId: '', siteWebConfigTableName: '', sitesTableId: '', sitesTableName: '', storageKey: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/storage-log-module.md b/.agents/skills/hooks-modules/references/storage-log-module.md index c8cc6ed230..ee5d76203a 100644 --- a/.agents/skills/hooks-modules/references/storage-log-module.md +++ b/.agents/skills/hooks-modules/references/storage-log-module.md @@ -7,8 +7,8 @@ React Query hooks for StorageLogModule data operations ## Usage ```typescript -useStorageLogModulesQuery({ selection: { fields: { actorFkTableId: true, apiName: true, databaseId: true, entityField: true, entityFkTableId: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, schemaId: true, scope: true, storageLogTableId: true, storageLogTableName: true, usageSummaryTableId: true, usageSummaryTableName: true } } }) -useStorageLogModuleQuery({ id: '', selection: { fields: { actorFkTableId: true, apiName: true, databaseId: true, entityField: true, entityFkTableId: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, schemaId: true, scope: true, storageLogTableId: true, storageLogTableName: true, usageSummaryTableId: true, usageSummaryTableName: true } } }) +useStorageLogModulesQuery({ selection: { fields: { apiName: true, databaseId: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, rollupFunctionName: true, schemaId: true, scope: true, storageLogTableId: true, storageLogTableName: true, usageSummaryTableId: true, usageSummaryTableName: true } } }) +useStorageLogModuleQuery({ id: '', selection: { fields: { apiName: true, databaseId: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, rollupFunctionName: true, schemaId: true, scope: true, storageLogTableId: true, storageLogTableName: true, usageSummaryTableId: true, usageSummaryTableName: true } } }) useCreateStorageLogModuleMutation({ selection: { fields: { id: true } } }) useUpdateStorageLogModuleMutation({ selection: { fields: { id: true } } }) useDeleteStorageLogModuleMutation({}) @@ -20,7 +20,7 @@ useDeleteStorageLogModuleMutation({}) ```typescript const { data, isLoading } = useStorageLogModulesQuery({ - selection: { fields: { actorFkTableId: true, apiName: true, databaseId: true, entityField: true, entityFkTableId: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, schemaId: true, scope: true, storageLogTableId: true, storageLogTableName: true, usageSummaryTableId: true, usageSummaryTableName: true } }, + selection: { fields: { apiName: true, databaseId: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, rollupFunctionName: true, schemaId: true, scope: true, storageLogTableId: true, storageLogTableName: true, usageSummaryTableId: true, usageSummaryTableName: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useStorageLogModulesQuery({ const { mutate } = useCreateStorageLogModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ actorFkTableId: '', apiName: '', databaseId: '', entityField: '', entityFkTableId: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', retention: '', schemaId: '', scope: '', storageLogTableId: '', storageLogTableName: '', usageSummaryTableId: '', usageSummaryTableName: '' }); +mutate({ apiName: '', databaseId: '', entityField: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', retention: '', rollupFunctionName: '', schemaId: '', scope: '', storageLogTableId: '', storageLogTableName: '', usageSummaryTableId: '', usageSummaryTableName: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/storage-module.md b/.agents/skills/hooks-modules/references/storage-module.md index 75564c3bb8..deb56cb29d 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, 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 } } }) +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, key: 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, key: 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, 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 } }, + 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, key: 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: '', 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: '' }); +mutate({ allowedOrigins: '', apiName: '', bucketsTableId: '', bucketsTableName: '', cacheTtlSeconds: '', catalogModuleId: '', confirmUploadDelay: '', databaseId: '', defaultCapabilities: '', defaultMaxFileSize: '', downloadUrlExpirySeconds: '', endpoint: '', entityField: '', entityTableId: '', fileEventsTableId: '', filesTableId: '', filesTableName: '', hasAuditLog: '', hasConfirmUpload: '', hasContentHash: '', hasCustomKeys: '', hasPathShares: '', hasVersioning: '', key: '', 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/transfer-log-module.md b/.agents/skills/hooks-modules/references/transfer-log-module.md index 425045d4cc..5ecb9e4077 100644 --- a/.agents/skills/hooks-modules/references/transfer-log-module.md +++ b/.agents/skills/hooks-modules/references/transfer-log-module.md @@ -7,8 +7,8 @@ React Query hooks for TransferLogModule data operations ## Usage ```typescript -useTransferLogModulesQuery({ selection: { fields: { actorFkTableId: true, apiName: true, databaseId: true, entityField: true, entityFkTableId: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, schemaId: true, scope: true, transferLogTableId: true, transferLogTableName: true, usageSummaryTableId: true, usageSummaryTableName: true } } }) -useTransferLogModuleQuery({ id: '', selection: { fields: { actorFkTableId: true, apiName: true, databaseId: true, entityField: true, entityFkTableId: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, schemaId: true, scope: true, transferLogTableId: true, transferLogTableName: true, usageSummaryTableId: true, usageSummaryTableName: true } } }) +useTransferLogModulesQuery({ selection: { fields: { apiName: true, databaseId: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, rollupFunctionName: true, schemaId: true, scope: true, transferLogTableId: true, transferLogTableName: true, usageSummaryTableId: true, usageSummaryTableName: true } } }) +useTransferLogModuleQuery({ id: '', selection: { fields: { apiName: true, databaseId: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, rollupFunctionName: true, schemaId: true, scope: true, transferLogTableId: true, transferLogTableName: true, usageSummaryTableId: true, usageSummaryTableName: true } } }) useCreateTransferLogModuleMutation({ selection: { fields: { id: true } } }) useUpdateTransferLogModuleMutation({ selection: { fields: { id: true } } }) useDeleteTransferLogModuleMutation({}) @@ -20,7 +20,7 @@ useDeleteTransferLogModuleMutation({}) ```typescript const { data, isLoading } = useTransferLogModulesQuery({ - selection: { fields: { actorFkTableId: true, apiName: true, databaseId: true, entityField: true, entityFkTableId: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, schemaId: true, scope: true, transferLogTableId: true, transferLogTableName: true, usageSummaryTableId: true, usageSummaryTableName: true } }, + selection: { fields: { apiName: true, databaseId: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, rollupFunctionName: true, schemaId: true, scope: true, transferLogTableId: true, transferLogTableName: true, usageSummaryTableId: true, usageSummaryTableName: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useTransferLogModulesQuery({ const { mutate } = useCreateTransferLogModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ actorFkTableId: '', apiName: '', databaseId: '', entityField: '', entityFkTableId: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', retention: '', schemaId: '', scope: '', transferLogTableId: '', transferLogTableName: '', usageSummaryTableId: '', usageSummaryTableName: '' }); +mutate({ apiName: '', databaseId: '', entityField: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', retention: '', rollupFunctionName: '', schemaId: '', scope: '', transferLogTableId: '', transferLogTableName: '', usageSummaryTableId: '', usageSummaryTableName: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/user-auth-module.md b/.agents/skills/hooks-modules/references/user-auth-module.md index 7137d074b0..46cde94bcf 100644 --- a/.agents/skills/hooks-modules/references/user-auth-module.md +++ b/.agents/skills/hooks-modules/references/user-auth-module.md @@ -7,8 +7,8 @@ React Query hooks for UserAuthModule data operations ## Usage ```typescript -useUserAuthModulesQuery({ selection: { fields: { apiName: true, auditsTableId: true, auditsTableName: true, checkPasswordFunction: true, databaseId: true, deleteAccountFunction: true, emailsTableId: true, encryptedTableId: true, extendTokenExpires: true, forgotPasswordFunction: true, id: true, privateApiName: true, requestCrossOriginTokenFunction: true, resetPasswordFunction: true, schemaId: true, secretsTableId: true, sendAccountDeletionEmailFunction: true, sendVerificationEmailFunction: true, sessionCredentialsTableId: true, sessionsTableId: true, setPasswordFunction: true, signInCrossOriginFunction: true, signInFunction: true, signOutFunction: true, signUpFunction: true, usersTableId: true, verifyEmailFunction: true, verifyPasswordFunction: true } } }) -useUserAuthModuleQuery({ id: '', selection: { fields: { apiName: true, auditsTableId: true, auditsTableName: true, checkPasswordFunction: true, databaseId: true, deleteAccountFunction: true, emailsTableId: true, encryptedTableId: true, extendTokenExpires: true, forgotPasswordFunction: true, id: true, privateApiName: true, requestCrossOriginTokenFunction: true, resetPasswordFunction: true, schemaId: true, secretsTableId: true, sendAccountDeletionEmailFunction: true, sendVerificationEmailFunction: true, sessionCredentialsTableId: true, sessionsTableId: true, setPasswordFunction: true, signInCrossOriginFunction: true, signInFunction: true, signOutFunction: true, signUpFunction: true, usersTableId: true, verifyEmailFunction: true, verifyPasswordFunction: true } } }) +useUserAuthModulesQuery({ selection: { fields: { apiName: true, auditsTableId: true, auditsTableName: true, checkPasswordFunction: true, databaseId: true, deleteAccountFunction: true, emailsTableId: true, encryptedTableId: true, extendTokenExpires: true, forgotPasswordFunction: true, id: true, privateApiName: true, privateSchemaId: true, requestCrossOriginTokenFunction: true, resetPasswordFunction: true, revokeSessionTreeFunction: true, schemaId: true, secretsTableId: true, sendAccountDeletionEmailFunction: true, sendVerificationEmailFunction: true, sessionCredentialsTableId: true, sessionsTableId: true, setPasswordFunction: true, signInCrossOriginFunction: true, signInFunction: true, signOutFunction: true, signUpFunction: true, sweepExpiredSessionsFunction: true, usersTableId: true, verifyEmailFunction: true, verifyPasswordFunction: true } } }) +useUserAuthModuleQuery({ id: '', selection: { fields: { apiName: true, auditsTableId: true, auditsTableName: true, checkPasswordFunction: true, databaseId: true, deleteAccountFunction: true, emailsTableId: true, encryptedTableId: true, extendTokenExpires: true, forgotPasswordFunction: true, id: true, privateApiName: true, privateSchemaId: true, requestCrossOriginTokenFunction: true, resetPasswordFunction: true, revokeSessionTreeFunction: true, schemaId: true, secretsTableId: true, sendAccountDeletionEmailFunction: true, sendVerificationEmailFunction: true, sessionCredentialsTableId: true, sessionsTableId: true, setPasswordFunction: true, signInCrossOriginFunction: true, signInFunction: true, signOutFunction: true, signUpFunction: true, sweepExpiredSessionsFunction: true, usersTableId: true, verifyEmailFunction: true, verifyPasswordFunction: true } } }) useCreateUserAuthModuleMutation({ selection: { fields: { id: true } } }) useUpdateUserAuthModuleMutation({ selection: { fields: { id: true } } }) useDeleteUserAuthModuleMutation({}) @@ -20,7 +20,7 @@ useDeleteUserAuthModuleMutation({}) ```typescript const { data, isLoading } = useUserAuthModulesQuery({ - selection: { fields: { apiName: true, auditsTableId: true, auditsTableName: true, checkPasswordFunction: true, databaseId: true, deleteAccountFunction: true, emailsTableId: true, encryptedTableId: true, extendTokenExpires: true, forgotPasswordFunction: true, id: true, privateApiName: true, requestCrossOriginTokenFunction: true, resetPasswordFunction: true, schemaId: true, secretsTableId: true, sendAccountDeletionEmailFunction: true, sendVerificationEmailFunction: true, sessionCredentialsTableId: true, sessionsTableId: true, setPasswordFunction: true, signInCrossOriginFunction: true, signInFunction: true, signOutFunction: true, signUpFunction: true, usersTableId: true, verifyEmailFunction: true, verifyPasswordFunction: true } }, + selection: { fields: { apiName: true, auditsTableId: true, auditsTableName: true, checkPasswordFunction: true, databaseId: true, deleteAccountFunction: true, emailsTableId: true, encryptedTableId: true, extendTokenExpires: true, forgotPasswordFunction: true, id: true, privateApiName: true, privateSchemaId: true, requestCrossOriginTokenFunction: true, resetPasswordFunction: true, revokeSessionTreeFunction: true, schemaId: true, secretsTableId: true, sendAccountDeletionEmailFunction: true, sendVerificationEmailFunction: true, sessionCredentialsTableId: true, sessionsTableId: true, setPasswordFunction: true, signInCrossOriginFunction: true, signInFunction: true, signOutFunction: true, signUpFunction: true, sweepExpiredSessionsFunction: true, usersTableId: true, verifyEmailFunction: true, verifyPasswordFunction: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useUserAuthModulesQuery({ const { mutate } = useCreateUserAuthModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ apiName: '', auditsTableId: '', auditsTableName: '', checkPasswordFunction: '', databaseId: '', deleteAccountFunction: '', emailsTableId: '', encryptedTableId: '', extendTokenExpires: '', forgotPasswordFunction: '', privateApiName: '', requestCrossOriginTokenFunction: '', resetPasswordFunction: '', schemaId: '', secretsTableId: '', sendAccountDeletionEmailFunction: '', sendVerificationEmailFunction: '', sessionCredentialsTableId: '', sessionsTableId: '', setPasswordFunction: '', signInCrossOriginFunction: '', signInFunction: '', signOutFunction: '', signUpFunction: '', usersTableId: '', verifyEmailFunction: '', verifyPasswordFunction: '' }); +mutate({ apiName: '', auditsTableId: '', auditsTableName: '', checkPasswordFunction: '', databaseId: '', deleteAccountFunction: '', emailsTableId: '', encryptedTableId: '', extendTokenExpires: '', forgotPasswordFunction: '', privateApiName: '', privateSchemaId: '', requestCrossOriginTokenFunction: '', resetPasswordFunction: '', revokeSessionTreeFunction: '', schemaId: '', secretsTableId: '', sendAccountDeletionEmailFunction: '', sendVerificationEmailFunction: '', sessionCredentialsTableId: '', sessionsTableId: '', setPasswordFunction: '', signInCrossOriginFunction: '', signInFunction: '', signOutFunction: '', signUpFunction: '', sweepExpiredSessionsFunction: '', usersTableId: '', verifyEmailFunction: '', verifyPasswordFunction: '' }); ``` diff --git a/.agents/skills/hooks-objects/references/provision-bucket.md b/.agents/skills/hooks-objects/references/provision-bucket.md index e003fc5551..92740fefbd 100644 --- a/.agents/skills/hooks-objects/references/provision-bucket.md +++ b/.agents/skills/hooks-objects/references/provision-bucket.md @@ -2,10 +2,11 @@ -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. +Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. ## Usage diff --git a/.agents/skills/hooks-remote/SKILL.md b/.agents/skills/hooks-remote/SKILL.md new file mode 100644 index 0000000000..5bc8c15fc0 --- /dev/null +++ b/.agents/skills/hooks-remote/SKILL.md @@ -0,0 +1,45 @@ +--- +name: hooks-remote +description: React Query hooks for the remote API — provides typed query and mutation hooks for 3 tables and 2 custom operations +--- + +# hooks-remote + + + +React Query hooks for the remote API — provides typed query and mutation hooks for 3 tables and 2 custom operations + +## Usage + +```typescript +// Import hooks +import { useMachinesQuery } from './hooks'; + +// Query hooks: useQuery, usesQuery +// Mutation hooks: useCreateMutation, useUpdateMutation, useDeleteMutation +// Bulk mutation hooks (when enabled): useBulkCreateMutation, useBulkUpsertMutation, etc. + +const { data, isLoading } = useMachinesQuery({ + selection: { fields: { id: true } }, +}); +``` + +## Examples + +### Query records + +```typescript +const { data, isLoading } = useMachinesQuery({ + selection: { fields: { id: true } }, +}); +``` + +## References + +See the `references/` directory for detailed per-entity API documentation: + +- [machine](references/machine.md) +- [machine-message](references/machine-message.md) +- [machine-session](references/machine-session.md) +- [machines-enroll](references/machines-enroll.md) +- [provision-bucket](references/provision-bucket.md) diff --git a/.agents/skills/hooks-remote/references/machine-message.md b/.agents/skills/hooks-remote/references/machine-message.md new file mode 100644 index 0000000000..54cf25d527 --- /dev/null +++ b/.agents/skills/hooks-remote/references/machine-message.md @@ -0,0 +1,34 @@ +# machineMessage + + + +Partitioned append-only ledger of session input, output and lifecycle + +## Usage + +```typescript +useMachineMessagesQuery({ selection: { fields: { actorId: true, content: true, createdByPrincipal: true, entityId: true, id: true, kind: true, ownerId: true, recordedAt: true, seq: true, sessionId: true } } }) +useMachineMessageQuery({ id: '', selection: { fields: { actorId: true, content: true, createdByPrincipal: true, entityId: true, id: true, kind: true, ownerId: true, recordedAt: true, seq: true, sessionId: true } } }) +useCreateMachineMessageMutation({ selection: { fields: { id: true } } }) +useUpdateMachineMessageMutation({ selection: { fields: { id: true } } }) +useDeleteMachineMessageMutation({}) +``` + +## Examples + +### List all machineMessages + +```typescript +const { data, isLoading } = useMachineMessagesQuery({ + selection: { fields: { actorId: true, content: true, createdByPrincipal: true, entityId: true, id: true, kind: true, ownerId: true, recordedAt: true, seq: true, sessionId: true } }, +}); +``` + +### Create a machineMessage + +```typescript +const { mutate } = useCreateMachineMessageMutation({ + selection: { fields: { id: true } }, +}); +mutate({ actorId: '', content: '', createdByPrincipal: '', entityId: '', kind: '', ownerId: '', recordedAt: '', seq: '', sessionId: '' }); +``` diff --git a/.agents/skills/hooks-remote/references/machine-session.md b/.agents/skills/hooks-remote/references/machine-session.md new file mode 100644 index 0000000000..6b4e5c9def --- /dev/null +++ b/.agents/skills/hooks-remote/references/machine-session.md @@ -0,0 +1,34 @@ +# machineSession + + + +Command or terminal sessions running on an enrolled machine + +## Usage + +```typescript +useMachineSessionsQuery({ selection: { fields: { agentMode: true, agentSessionRef: true, args: true, cols: true, command: true, createdAt: true, createdBy: true, createdByPrincipal: true, cwd: true, endedAt: true, entityId: true, env: true, exitCode: true, id: true, interactive: true, lastActivityAt: true, lastSeq: true, machineId: true, metadata: true, ownerId: true, pid: true, runId: true, startedAt: true, state: true, termRows: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) +useMachineSessionQuery({ id: '', selection: { fields: { agentMode: true, agentSessionRef: true, args: true, cols: true, command: true, createdAt: true, createdBy: true, createdByPrincipal: true, cwd: true, endedAt: true, entityId: true, env: true, exitCode: true, id: true, interactive: true, lastActivityAt: true, lastSeq: true, machineId: true, metadata: true, ownerId: true, pid: true, runId: true, startedAt: true, state: true, termRows: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) +useCreateMachineSessionMutation({ selection: { fields: { id: true } } }) +useUpdateMachineSessionMutation({ selection: { fields: { id: true } } }) +useDeleteMachineSessionMutation({}) +``` + +## Examples + +### List all machineSessions + +```typescript +const { data, isLoading } = useMachineSessionsQuery({ + selection: { fields: { agentMode: true, agentSessionRef: true, args: true, cols: true, command: true, createdAt: true, createdBy: true, createdByPrincipal: true, cwd: true, endedAt: true, entityId: true, env: true, exitCode: true, id: true, interactive: true, lastActivityAt: true, lastSeq: true, machineId: true, metadata: true, ownerId: true, pid: true, runId: true, startedAt: true, state: true, termRows: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, +}); +``` + +### Create a machineSession + +```typescript +const { mutate } = useCreateMachineSessionMutation({ + selection: { fields: { id: true } }, +}); +mutate({ agentMode: '', agentSessionRef: '', args: '', cols: '', command: '', createdBy: '', createdByPrincipal: '', cwd: '', endedAt: '', entityId: '', env: '', exitCode: '', interactive: '', lastActivityAt: '', lastSeq: '', machineId: '', metadata: '', ownerId: '', pid: '', runId: '', startedAt: '', state: '', termRows: '', updatedBy: '', updatedByPrincipal: '' }); +``` diff --git a/.agents/skills/hooks-remote/references/machine.md b/.agents/skills/hooks-remote/references/machine.md new file mode 100644 index 0000000000..bb6e319102 --- /dev/null +++ b/.agents/skills/hooks-remote/references/machine.md @@ -0,0 +1,34 @@ +# machine + + + +Computers enrolled for remote control, one row per database enrollment + +## Usage + +```typescript +useMachinesQuery({ selection: { fields: { createdAt: true, createdBy: true, createdByPrincipal: true, entityId: true, facts: true, id: true, isShared: true, label: true, lastSeenAt: true, ownerId: true, policy: true, principalId: true, revokedAt: true, tokenHash: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) +useMachineQuery({ id: '', selection: { fields: { createdAt: true, createdBy: true, createdByPrincipal: true, entityId: true, facts: true, id: true, isShared: true, label: true, lastSeenAt: true, ownerId: true, policy: true, principalId: true, revokedAt: true, tokenHash: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) +useCreateMachineMutation({ selection: { fields: { id: true } } }) +useUpdateMachineMutation({ selection: { fields: { id: true } } }) +useDeleteMachineMutation({}) +``` + +## Examples + +### List all machines + +```typescript +const { data, isLoading } = useMachinesQuery({ + selection: { fields: { createdAt: true, createdBy: true, createdByPrincipal: true, entityId: true, facts: true, id: true, isShared: true, label: true, lastSeenAt: true, ownerId: true, policy: true, principalId: true, revokedAt: true, tokenHash: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, +}); +``` + +### Create a machine + +```typescript +const { mutate } = useCreateMachineMutation({ + selection: { fields: { id: true } }, +}); +mutate({ createdBy: '', createdByPrincipal: '', entityId: '', facts: '', isShared: '', label: '', lastSeenAt: '', ownerId: '', policy: '', principalId: '', revokedAt: '', tokenHash: '', updatedBy: '', updatedByPrincipal: '' }); +``` diff --git a/.agents/skills/hooks-remote/references/machines-enroll.md b/.agents/skills/hooks-remote/references/machines-enroll.md new file mode 100644 index 0000000000..8820c25373 --- /dev/null +++ b/.agents/skills/hooks-remote/references/machines-enroll.md @@ -0,0 +1,20 @@ +# machinesEnroll + + + +React Query mutation hook for machinesEnroll + +## Usage + +```typescript +const { mutate } = useMachinesEnrollMutation(); mutate({ input: { entityId: '', isShared: '', label: '', tokenHash: '' } }); +``` + +## Examples + +### Use useMachinesEnrollMutation + +```typescript +const { mutate, isLoading } = useMachinesEnrollMutation(); +mutate({ input: { entityId: '', isShared: '', label: '', tokenHash: '' } }); +``` diff --git a/.agents/skills/hooks-remote/references/provision-bucket.md b/.agents/skills/hooks-remote/references/provision-bucket.md new file mode 100644 index 0000000000..92740fefbd --- /dev/null +++ b/.agents/skills/hooks-remote/references/provision-bucket.md @@ -0,0 +1,24 @@ +# provisionBucket + + + +Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. + +## Usage + +```typescript +const { mutate } = useProvisionBucketMutation(); mutate({ input: { bucketKey: '', ownerId: '' } }); +``` + +## Examples + +### Use useProvisionBucketMutation + +```typescript +const { mutate, isLoading } = useProvisionBucketMutation(); +mutate({ input: { bucketKey: '', ownerId: '' } }); +``` diff --git a/.agents/skills/hooks-storage/SKILL.md b/.agents/skills/hooks-storage/SKILL.md new file mode 100644 index 0000000000..e067a495f2 --- /dev/null +++ b/.agents/skills/hooks-storage/SKILL.md @@ -0,0 +1,51 @@ +--- +name: hooks-storage +description: React Query hooks for the storage API — provides typed query and mutation hooks for 4 tables and 7 custom operations +--- + +# hooks-storage + + + +React Query hooks for the storage API — provides typed query and mutation hooks for 4 tables and 7 custom operations + +## Usage + +```typescript +// Import hooks +import { useBucketsQuery } from './hooks'; + +// Query hooks: useQuery, usesQuery +// Mutation hooks: useCreateMutation, useUpdateMutation, useDeleteMutation +// Bulk mutation hooks (when enabled): useBulkCreateMutation, useBulkUpsertMutation, etc. + +const { data, isLoading } = useBucketsQuery({ + selection: { fields: { id: true } }, +}); +``` + +## Examples + +### Query records + +```typescript +const { data, isLoading } = useBucketsQuery({ + selection: { fields: { id: true } }, +}); +``` + +## References + +See the `references/` directory for detailed per-entity API documentation: + +- [bucket](references/bucket.md) +- [file](references/file.md) +- [platform-bucket](references/platform-bucket.md) +- [platform-file](references/platform-file.md) +- [files-rename](references/files-rename.md) +- [platform-files-rename](references/platform-files-rename.md) +- [provision-bucket](references/provision-bucket.md) +- [upload-file](references/upload-file.md) +- [upload-files](references/upload-files.md) +- [upload-platform-file](references/upload-platform-file.md) +- [upload-platform-files](references/upload-platform-files.md) diff --git a/.agents/skills/hooks-storage/references/bucket.md b/.agents/skills/hooks-storage/references/bucket.md new file mode 100644 index 0000000000..d30b108458 --- /dev/null +++ b/.agents/skills/hooks-storage/references/bucket.md @@ -0,0 +1,34 @@ +# bucket + + + +Logical storage containers that group files with shared access policies and CDN behavior + +## Usage + +```typescript +useBucketsQuery({ selection: { fields: { actorId: true, allowCustomKeys: true, allowedMimeTypes: true, allowedOrigins: true, createdAt: true, databaseId: true, description: true, destinationBucketId: true, id: true, isPublic: true, key: true, maxFileSize: true, physicalName: true, stagingTtl: true, tags: true, type: true, updatedAt: true } } }) +useBucketQuery({ id: '', selection: { fields: { actorId: true, allowCustomKeys: true, allowedMimeTypes: true, allowedOrigins: true, createdAt: true, databaseId: true, description: true, destinationBucketId: true, id: true, isPublic: true, key: true, maxFileSize: true, physicalName: true, stagingTtl: true, tags: true, type: true, updatedAt: true } } }) +useCreateBucketMutation({ selection: { fields: { id: true } } }) +useUpdateBucketMutation({ selection: { fields: { id: true } } }) +useDeleteBucketMutation({}) +``` + +## Examples + +### List all buckets + +```typescript +const { data, isLoading } = useBucketsQuery({ + selection: { fields: { actorId: true, allowCustomKeys: true, allowedMimeTypes: true, allowedOrigins: true, createdAt: true, databaseId: true, description: true, destinationBucketId: true, id: true, isPublic: true, key: true, maxFileSize: true, physicalName: true, stagingTtl: true, tags: true, type: true, updatedAt: true } }, +}); +``` + +### Create a bucket + +```typescript +const { mutate } = useCreateBucketMutation({ + selection: { fields: { id: true } }, +}); +mutate({ actorId: '', allowCustomKeys: '', allowedMimeTypes: '', allowedOrigins: '', databaseId: '', description: '', destinationBucketId: '', isPublic: '', key: '', maxFileSize: '', physicalName: '', stagingTtl: '', tags: '', type: '' }); +``` diff --git a/.agents/skills/hooks-storage/references/file.md b/.agents/skills/hooks-storage/references/file.md new file mode 100644 index 0000000000..a377f4aba8 --- /dev/null +++ b/.agents/skills/hooks-storage/references/file.md @@ -0,0 +1,34 @@ +# file + + + +Individual file records within buckets, with immutable identity fields and mutable metadata + +## Usage + +```typescript +useFilesQuery({ selection: { fields: { actorId: true, bucketId: true, contentHash: true, createdAt: true, databaseId: true, description: true, downloadUrl: true, expiryEnqueuedAt: true, filePath: true, filename: true, id: true, isPublic: true, key: true, mimeType: true, promotedAt: true, size: true, status: true, tags: true, updatedAt: true, upload: true } } }) +useFileQuery({ id: '', selection: { fields: { actorId: true, bucketId: true, contentHash: true, createdAt: true, databaseId: true, description: true, downloadUrl: true, expiryEnqueuedAt: true, filePath: true, filename: true, id: true, isPublic: true, key: true, mimeType: true, promotedAt: true, size: true, status: true, tags: true, updatedAt: true, upload: true } } }) +useCreateFileMutation({ selection: { fields: { id: true } } }) +useUpdateFileMutation({ selection: { fields: { id: true } } }) +useDeleteFileMutation({}) +``` + +## Examples + +### List all files + +```typescript +const { data, isLoading } = useFilesQuery({ + selection: { fields: { actorId: true, bucketId: true, contentHash: true, createdAt: true, databaseId: true, description: true, downloadUrl: true, expiryEnqueuedAt: true, filePath: true, filename: true, id: true, isPublic: true, key: true, mimeType: true, promotedAt: true, size: true, status: true, tags: true, updatedAt: true, upload: true } }, +}); +``` + +### Create a file + +```typescript +const { mutate } = useCreateFileMutation({ + selection: { fields: { id: true } }, +}); +mutate({ actorId: '', bucketId: '', contentHash: '', databaseId: '', description: '', downloadUrl: '', expiryEnqueuedAt: '', filePath: '', filename: '', isPublic: '', key: '', mimeType: '', promotedAt: '', size: '', status: '', tags: '', upload: '' }); +``` diff --git a/.agents/skills/hooks-storage/references/files-rename.md b/.agents/skills/hooks-storage/references/files-rename.md new file mode 100644 index 0000000000..f140240f82 --- /dev/null +++ b/.agents/skills/hooks-storage/references/files-rename.md @@ -0,0 +1,20 @@ +# filesRename + + + +React Query mutation hook for filesRename + +## Usage + +```typescript +const { mutate } = useFilesRenameMutation(); mutate({ input: { fileId: '', newFilename: '' } }); +``` + +## Examples + +### Use useFilesRenameMutation + +```typescript +const { mutate, isLoading } = useFilesRenameMutation(); +mutate({ input: { fileId: '', newFilename: '' } }); +``` diff --git a/.agents/skills/hooks-storage/references/platform-bucket.md b/.agents/skills/hooks-storage/references/platform-bucket.md new file mode 100644 index 0000000000..0c11336c9a --- /dev/null +++ b/.agents/skills/hooks-storage/references/platform-bucket.md @@ -0,0 +1,34 @@ +# platformBucket + + + +Logical storage containers that group files with shared access policies and CDN behavior + +## Usage + +```typescript +usePlatformBucketsQuery({ selection: { fields: { actorId: true, allowCustomKeys: true, allowedMimeTypes: true, allowedOrigins: true, createdAt: true, description: true, destinationBucketId: true, id: true, isPublic: true, key: true, maxFileSize: true, physicalName: true, stagingTtl: true, tags: true, type: true, updatedAt: true } } }) +usePlatformBucketQuery({ id: '', selection: { fields: { actorId: true, allowCustomKeys: true, allowedMimeTypes: true, allowedOrigins: true, createdAt: true, description: true, destinationBucketId: true, id: true, isPublic: true, key: true, maxFileSize: true, physicalName: true, stagingTtl: true, tags: true, type: true, updatedAt: true } } }) +useCreatePlatformBucketMutation({ selection: { fields: { id: true } } }) +useUpdatePlatformBucketMutation({ selection: { fields: { id: true } } }) +useDeletePlatformBucketMutation({}) +``` + +## Examples + +### List all platformBuckets + +```typescript +const { data, isLoading } = usePlatformBucketsQuery({ + selection: { fields: { actorId: true, allowCustomKeys: true, allowedMimeTypes: true, allowedOrigins: true, createdAt: true, description: true, destinationBucketId: true, id: true, isPublic: true, key: true, maxFileSize: true, physicalName: true, stagingTtl: true, tags: true, type: true, updatedAt: true } }, +}); +``` + +### Create a platformBucket + +```typescript +const { mutate } = useCreatePlatformBucketMutation({ + selection: { fields: { id: true } }, +}); +mutate({ actorId: '', allowCustomKeys: '', allowedMimeTypes: '', allowedOrigins: '', description: '', destinationBucketId: '', isPublic: '', key: '', maxFileSize: '', physicalName: '', stagingTtl: '', tags: '', type: '' }); +``` diff --git a/.agents/skills/hooks-storage/references/platform-file.md b/.agents/skills/hooks-storage/references/platform-file.md new file mode 100644 index 0000000000..4ff067bc01 --- /dev/null +++ b/.agents/skills/hooks-storage/references/platform-file.md @@ -0,0 +1,34 @@ +# platformFile + + + +Individual file records within buckets, with immutable identity fields and mutable metadata + +## Usage + +```typescript +usePlatformFilesQuery({ selection: { fields: { actorId: true, bucketId: true, contentHash: true, createdAt: true, description: true, downloadUrl: true, expiryEnqueuedAt: true, filePath: true, filename: true, id: true, isPublic: true, key: true, mimeType: true, promotedAt: true, size: true, status: true, tags: true, updatedAt: true, upload: true } } }) +usePlatformFileQuery({ id: '', selection: { fields: { actorId: true, bucketId: true, contentHash: true, createdAt: true, description: true, downloadUrl: true, expiryEnqueuedAt: true, filePath: true, filename: true, id: true, isPublic: true, key: true, mimeType: true, promotedAt: true, size: true, status: true, tags: true, updatedAt: true, upload: true } } }) +useCreatePlatformFileMutation({ selection: { fields: { id: true } } }) +useUpdatePlatformFileMutation({ selection: { fields: { id: true } } }) +useDeletePlatformFileMutation({}) +``` + +## Examples + +### List all platformFiles + +```typescript +const { data, isLoading } = usePlatformFilesQuery({ + selection: { fields: { actorId: true, bucketId: true, contentHash: true, createdAt: true, description: true, downloadUrl: true, expiryEnqueuedAt: true, filePath: true, filename: true, id: true, isPublic: true, key: true, mimeType: true, promotedAt: true, size: true, status: true, tags: true, updatedAt: true, upload: true } }, +}); +``` + +### Create a platformFile + +```typescript +const { mutate } = useCreatePlatformFileMutation({ + selection: { fields: { id: true } }, +}); +mutate({ actorId: '', bucketId: '', contentHash: '', description: '', downloadUrl: '', expiryEnqueuedAt: '', filePath: '', filename: '', isPublic: '', key: '', mimeType: '', promotedAt: '', size: '', status: '', tags: '', upload: '' }); +``` diff --git a/.agents/skills/hooks-storage/references/platform-files-rename.md b/.agents/skills/hooks-storage/references/platform-files-rename.md new file mode 100644 index 0000000000..996eb53395 --- /dev/null +++ b/.agents/skills/hooks-storage/references/platform-files-rename.md @@ -0,0 +1,20 @@ +# platformFilesRename + + + +React Query mutation hook for platformFilesRename + +## Usage + +```typescript +const { mutate } = usePlatformFilesRenameMutation(); mutate({ input: { fileId: '', newFilename: '' } }); +``` + +## Examples + +### Use usePlatformFilesRenameMutation + +```typescript +const { mutate, isLoading } = usePlatformFilesRenameMutation(); +mutate({ input: { fileId: '', newFilename: '' } }); +``` diff --git a/.agents/skills/hooks-storage/references/provision-bucket.md b/.agents/skills/hooks-storage/references/provision-bucket.md new file mode 100644 index 0000000000..92740fefbd --- /dev/null +++ b/.agents/skills/hooks-storage/references/provision-bucket.md @@ -0,0 +1,24 @@ +# provisionBucket + + + +Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. + +## Usage + +```typescript +const { mutate } = useProvisionBucketMutation(); mutate({ input: { bucketKey: '', ownerId: '' } }); +``` + +## Examples + +### Use useProvisionBucketMutation + +```typescript +const { mutate, isLoading } = useProvisionBucketMutation(); +mutate({ input: { bucketKey: '', ownerId: '' } }); +``` diff --git a/.agents/skills/hooks-storage/references/upload-file.md b/.agents/skills/hooks-storage/references/upload-file.md new file mode 100644 index 0000000000..0aed6e40b8 --- /dev/null +++ b/.agents/skills/hooks-storage/references/upload-file.md @@ -0,0 +1,20 @@ +# uploadFile + + + +Upload a file: resolves the bucket by key, creates the file row, and returns a presigned PUT URL. + +## Usage + +```typescript +const { mutate } = useUploadFileMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useUploadFileMutation + +```typescript +const { mutate, isLoading } = useUploadFileMutation(); +mutate({ input: '' }); +``` diff --git a/.agents/skills/hooks-storage/references/upload-files.md b/.agents/skills/hooks-storage/references/upload-files.md new file mode 100644 index 0000000000..76e752fbbb --- /dev/null +++ b/.agents/skills/hooks-storage/references/upload-files.md @@ -0,0 +1,20 @@ +# uploadFiles + + + +Upload multiple files: resolves the bucket by key, creates file rows, and returns presigned PUT URLs for each. + +## Usage + +```typescript +const { mutate } = useUploadFilesMutation(); mutate({ input: { bucketKey: '', files: '', isPublic: '' } }); +``` + +## Examples + +### Use useUploadFilesMutation + +```typescript +const { mutate, isLoading } = useUploadFilesMutation(); +mutate({ input: { bucketKey: '', files: '', isPublic: '' } }); +``` diff --git a/.agents/skills/hooks-storage/references/upload-platform-file.md b/.agents/skills/hooks-storage/references/upload-platform-file.md new file mode 100644 index 0000000000..5833ef8d7a --- /dev/null +++ b/.agents/skills/hooks-storage/references/upload-platform-file.md @@ -0,0 +1,20 @@ +# uploadPlatformFile + + + +Upload a file: resolves the bucket by key, creates the file row, and returns a presigned PUT URL. + +## Usage + +```typescript +const { mutate } = useUploadPlatformFileMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useUploadPlatformFileMutation + +```typescript +const { mutate, isLoading } = useUploadPlatformFileMutation(); +mutate({ input: '' }); +``` diff --git a/.agents/skills/hooks-storage/references/upload-platform-files.md b/.agents/skills/hooks-storage/references/upload-platform-files.md new file mode 100644 index 0000000000..50b86d89f7 --- /dev/null +++ b/.agents/skills/hooks-storage/references/upload-platform-files.md @@ -0,0 +1,20 @@ +# uploadPlatformFiles + + + +Upload multiple files: resolves the bucket by key, creates file rows, and returns presigned PUT URLs for each. + +## Usage + +```typescript +const { mutate } = useUploadPlatformFilesMutation(); mutate({ input: { bucketKey: '', files: '', isPublic: '' } }); +``` + +## Examples + +### Use useUploadPlatformFilesMutation + +```typescript +const { mutate, isLoading } = useUploadPlatformFilesMutation(); +mutate({ input: { bucketKey: '', files: '', isPublic: '' } }); +``` diff --git a/.agents/skills/hooks-usage/SKILL.md b/.agents/skills/hooks-usage/SKILL.md index 560d3ebc46..98e5769e91 100644 --- a/.agents/skills/hooks-usage/SKILL.md +++ b/.agents/skills/hooks-usage/SKILL.md @@ -1,25 +1,25 @@ --- name: hooks-usage -description: React Query hooks for the usage API — provides typed query and mutation hooks for 38 tables and 16 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 38 tables and 16 custom operations +React Query hooks for the usage API — provides typed query and mutation hooks for 18 tables and 7 custom operations ## Usage ```typescript // Import hooks -import { useAppAchievementRewardsQuery } from './hooks'; +import { useAppLimitCapsQuery } from './hooks'; // Query hooks: useQuery, usesQuery // Mutation hooks: useCreateMutation, useUpdateMutation, useDeleteMutation // Bulk mutation hooks (when enabled): useBulkCreateMutation, useBulkUpsertMutation, etc. -const { data, isLoading } = useAppAchievementRewardsQuery({ +const { data, isLoading } = useAppLimitCapsQuery({ selection: { fields: { id: true } }, }); ``` @@ -29,7 +29,7 @@ const { data, isLoading } = useAppAchievementRewardsQuery({ ### Query records ```typescript -const { data, isLoading } = useAppAchievementRewardsQuery({ +const { data, isLoading } = useAppLimitCapsQuery({ selection: { fields: { id: true } }, }); ``` @@ -38,13 +38,6 @@ const { data, isLoading } = useAppAchievementRewardsQuery({ See the `references/` directory for detailed per-entity API documentation: -- [app-achievement-reward](references/app-achievement-reward.md) -- [app-event-aggregate](references/app-event-aggregate.md) -- [app-event](references/app-event.md) -- [app-event-type](references/app-event-type.md) -- [app-level](references/app-level.md) -- [app-level-grant](references/app-level-grant.md) -- [app-level-requirement](references/app-level-requirement.md) - [app-limit-cap](references/app-limit-cap.md) - [app-limit-caps-default](references/app-limit-caps-default.md) - [app-limit](references/app-limit.md) @@ -55,12 +48,6 @@ See the `references/` directory for detailed per-entity API documentation: - [app-limit-default](references/app-limit-default.md) - [app-limit-event](references/app-limit-event.md) - [app-limit-warning](references/app-limit-warning.md) -- [billing-usage-summary](references/billing-usage-summary.md) -- [ledger](references/ledger.md) -- [meter](references/meter.md) -- [meter-credit](references/meter-credit.md) -- [meter-default](references/meter-default.md) -- [meter-source](references/meter-source.md) - [org-limit-aggregate](references/org-limit-aggregate.md) - [org-limit-cap](references/org-limit-cap.md) - [org-limit-caps-default](references/org-limit-caps-default.md) @@ -69,26 +56,10 @@ 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) -- [plan-cap](references/plan-cap.md) -- [plan](references/plan.md) -- [plan-limit](references/plan-limit.md) -- [plan-meter-limit](references/plan-meter-limit.md) -- [plan-override](references/plan-override.md) -- [plan-pricing](references/plan-pricing.md) -- [plan-subscription](references/plan-subscription.md) - [capture-app-limit-defaults](references/capture-app-limit-defaults.md) - [capture-org-limit-defaults](references/capture-org-limit-defaults.md) -- [capture-trust-ladder](references/capture-trust-ladder.md) -- [events-achieved](references/events-achieved.md) -- [events-required](references/events-required.md) -- [grant-achievement](references/grant-achievement.md) - [provision-bucket](references/provision-bucket.md) -- [recompute-capabilities](references/recompute-capabilities.md) -- [revoke-achievement](references/revoke-achievement.md) - [seed-app-limit-caps-defaults](references/seed-app-limit-caps-defaults.md) - [seed-app-limit-defaults](references/seed-app-limit-defaults.md) -- [seed-meter-defaults](references/seed-meter-defaults.md) - [seed-org-limit-caps-defaults](references/seed-org-limit-caps-defaults.md) - [seed-org-limit-defaults](references/seed-org-limit-defaults.md) -- [seed-plan](references/seed-plan.md) -- [seed-trust-ladder](references/seed-trust-ladder.md) diff --git a/.agents/skills/hooks-usage/references/provision-bucket.md b/.agents/skills/hooks-usage/references/provision-bucket.md index e003fc5551..92740fefbd 100644 --- a/.agents/skills/hooks-usage/references/provision-bucket.md +++ b/.agents/skills/hooks-usage/references/provision-bucket.md @@ -2,10 +2,11 @@ -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. +Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. ## Usage diff --git a/.agents/skills/orm-admin/SKILL.md b/.agents/skills/orm-admin/SKILL.md index 7fec9be40b..6784646f0c 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 42 tables and 12 custom operations +description: ORM client for the admin API — provides typed CRUD operations for 26 tables and 5 custom operations --- # orm-admin -ORM client for the admin API — provides typed CRUD operations for 42 tables and 12 custom operations +ORM client for the admin API — provides typed CRUD operations for 26 tables and 5 custom operations ## Usage @@ -15,7 +15,7 @@ ORM client for the admin API — provides typed CRUD operations for 42 tables an // Import the ORM client import { db } from './orm'; -// Available models: appAdminGrant, appCapability, appCapabilityDefaultCapability, appCapabilityDefault, appCapabilityDefaultGrant, appClaimedInvite, appGrant, appInvite, ... +// 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,27 +38,17 @@ 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](references/app-capability.md) - [app-capability-default-capability](references/app-capability-default-capability.md) -- [app-capability-default](references/app-capability-default.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-membership-profile](references/app-membership-profile.md) - [app-owner-grant](references/app-owner-grant.md) -- [app-profile-capability](references/app-profile-capability.md) -- [app-profile](references/app-profile.md) -- [app-profile-definition-grant](references/app-profile-definition-grant.md) -- [app-profile-grant](references/app-profile-grant.md) -- [app-profile-template](references/app-profile-template.md) - [membership-type](references/membership-type.md) - [org-admin-grant](references/org-admin-grant.md) -- [org-capability](references/org-capability.md) - [org-capability-default-capability](references/org-capability-default-capability.md) -- [org-capability-default](references/org-capability-default.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) @@ -71,22 +61,9 @@ See the `references/` directory for detailed per-entity API documentation: - [org-member-profile](references/org-member-profile.md) - [org-membership](references/org-membership.md) - [org-membership-default](references/org-membership-default.md) -- [org-membership-profile](references/org-membership-profile.md) - [org-membership-setting](references/org-membership-setting.md) - [org-owner-grant](references/org-owner-grant.md) -- [org-profile-capability](references/org-profile-capability.md) -- [org-profile](references/org-profile.md) -- [org-profile-definition-grant](references/org-profile-definition-grant.md) -- [org-profile-grant](references/org-profile-grant.md) -- [org-profile-template](references/org-profile-template.md) -- [app-capabilities-get-by-mask](references/app-capabilities-get-by-mask.md) -- [app-capabilities-get-mask](references/app-capabilities-get-mask.md) -- [app-capabilities-get-mask-by-names](references/app-capabilities-get-mask-by-names.md) -- [app-capabilities-get-padded-mask](references/app-capabilities-get-padded-mask.md) -- [org-capabilities-get-by-mask](references/org-capabilities-get-by-mask.md) -- [org-capabilities-get-mask](references/org-capabilities-get-mask.md) -- [org-capabilities-get-mask-by-names](references/org-capabilities-get-mask-by-names.md) -- [org-capabilities-get-padded-mask](references/org-capabilities-get-padded-mask.md) +- [get-organization-id](references/get-organization-id.md) - [org-is-manager-of](references/org-is-manager-of.md) - [provision-bucket](references/provision-bucket.md) - [submit-app-invite-code](references/submit-app-invite-code.md) diff --git a/.agents/skills/orm-admin/references/app-membership-default.md b/.agents/skills/orm-admin/references/app-membership-default.md index 44bc7b4e46..b535f338d1 100644 --- a/.agents/skills/orm-admin/references/app-membership-default.md +++ b/.agents/skills/orm-admin/references/app-membership-default.md @@ -9,7 +9,7 @@ Default membership settings per entity, controlling initial approval and verific ```typescript db.appMembershipDefault.findMany({ select: { id: true } }).execute() db.appMembershipDefault.findOne({ id: '', select: { id: true } }).execute() -db.appMembershipDefault.create({ data: { createdBy: '', isApproved: '', isVerified: '', updatedBy: '' }, select: { id: true } }).execute() +db.appMembershipDefault.create({ data: { createdBy: '', createdByPrincipal: '', isApproved: '', isVerified: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute() db.appMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute() db.appMembershipDefault.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.appMembershipDefault.findMany({ ```typescript const item = await db.appMembershipDefault.create({ - data: { createdBy: '', isApproved: '', isVerified: '', updatedBy: '' }, + data: { createdBy: '', createdByPrincipal: '', isApproved: '', isVerified: '', updatedBy: '', updatedByPrincipal: '' }, 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 9718d02e1b..3d7c10f14e 100644 --- a/.agents/skills/orm-admin/references/app-membership.md +++ b/.agents/skills/orm-admin/references/app-membership.md @@ -9,7 +9,7 @@ Tracks membership records linking actors to entities with capability bitmasks, o ```typescript db.appMembership.findMany({ select: { id: true } }).execute() db.appMembership.findOne({ id: '', 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.create({ data: { actorId: '', capabilities: '', createdBy: '', createdByPrincipal: '', granted: '', isActive: '', isAdmin: '', isApproved: '', isBanned: '', isDisabled: '', isOwner: '', isVerified: '', profileId: '', updatedBy: '', updatedByPrincipal: '' }, 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: '', capabilities: '', createdBy: '', granted: '', isActive: '', isAdmin: '', isApproved: '', isBanned: '', isDisabled: '', isOwner: '', isVerified: '', profileId: '', updatedBy: '' }, + data: { actorId: '', capabilities: '', createdBy: '', createdByPrincipal: '', granted: '', isActive: '', isAdmin: '', isApproved: '', isBanned: '', isDisabled: '', isOwner: '', isVerified: '', profileId: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-admin/references/get-organization-id.md b/.agents/skills/orm-admin/references/get-organization-id.md new file mode 100644 index 0000000000..a34b6395dd --- /dev/null +++ b/.agents/skills/orm-admin/references/get-organization-id.md @@ -0,0 +1,19 @@ +# getOrganizationId + + + +Execute the getOrganizationId query + +## Usage + +```typescript +db.query.getOrganizationId({ entityId: '', entityType: '' }).execute() +``` + +## Examples + +### Run getOrganizationId + +```typescript +const result = await db.query.getOrganizationId({ entityId: '', entityType: '' }).execute(); +``` diff --git a/.agents/skills/orm-admin/references/org-membership-default.md b/.agents/skills/orm-admin/references/org-membership-default.md index 7b48ec45ab..d79e76a4d1 100644 --- a/.agents/skills/orm-admin/references/org-membership-default.md +++ b/.agents/skills/orm-admin/references/org-membership-default.md @@ -9,7 +9,7 @@ Default membership settings per entity, controlling initial approval and verific ```typescript db.orgMembershipDefault.findMany({ select: { id: true } }).execute() db.orgMembershipDefault.findOne({ id: '', select: { id: true } }).execute() -db.orgMembershipDefault.create({ data: { createdBy: '', entityId: '', isApproved: '', updatedBy: '' }, select: { id: true } }).execute() +db.orgMembershipDefault.create({ data: { createdBy: '', createdByPrincipal: '', entityId: '', isApproved: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute() db.orgMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute() db.orgMembershipDefault.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.orgMembershipDefault.findMany({ ```typescript const item = await db.orgMembershipDefault.create({ - data: { createdBy: '', entityId: '', isApproved: '', updatedBy: '' }, + data: { createdBy: '', createdByPrincipal: '', entityId: '', isApproved: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-admin/references/org-membership-setting.md b/.agents/skills/orm-admin/references/org-membership-setting.md index c2726c1de8..16412e0f36 100644 --- a/.agents/skills/orm-admin/references/org-membership-setting.md +++ b/.agents/skills/orm-admin/references/org-membership-setting.md @@ -9,7 +9,7 @@ Per-entity settings for the memberships module ```typescript db.orgMembershipSetting.findMany({ select: { id: true } }).execute() db.orgMembershipSetting.findOne({ id: '', select: { id: true } }).execute() -db.orgMembershipSetting.create({ data: { allowExternalMembers: '', createChildCascadeAdmins: '', createChildCascadeMembers: '', createChildCascadeOwners: '', createdBy: '', deleteMemberCascadeChildren: '', entityId: '', inviteProfileAssignmentMode: '', limitAllocationMode: '', populateMemberEmail: '', updatedBy: '' }, select: { id: true } }).execute() +db.orgMembershipSetting.create({ data: { allowExternalMembers: '', allowPrincipalOwnedApiKeys: '', createChildCascadeAdmins: '', createChildCascadeMembers: '', createChildCascadeOwners: '', createdBy: '', createdByPrincipal: '', deleteMemberCascadeChildren: '', entityId: '', inviteProfileAssignmentMode: '', limitAllocationMode: '', populateMemberEmail: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute() db.orgMembershipSetting.update({ where: { id: '' }, data: { allowExternalMembers: '' }, select: { id: true } }).execute() db.orgMembershipSetting.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.orgMembershipSetting.findMany({ ```typescript const item = await db.orgMembershipSetting.create({ - data: { allowExternalMembers: '', createChildCascadeAdmins: '', createChildCascadeMembers: '', createChildCascadeOwners: '', createdBy: '', deleteMemberCascadeChildren: '', entityId: '', inviteProfileAssignmentMode: '', limitAllocationMode: '', populateMemberEmail: '', updatedBy: '' }, + data: { allowExternalMembers: '', allowPrincipalOwnedApiKeys: '', createChildCascadeAdmins: '', createChildCascadeMembers: '', createChildCascadeOwners: '', createdBy: '', createdByPrincipal: '', deleteMemberCascadeChildren: '', entityId: '', inviteProfileAssignmentMode: '', limitAllocationMode: '', populateMemberEmail: '', updatedBy: '', updatedByPrincipal: '' }, 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 02700b46bf..dbf8cd3060 100644 --- a/.agents/skills/orm-admin/references/org-membership.md +++ b/.agents/skills/orm-admin/references/org-membership.md @@ -9,7 +9,7 @@ Tracks membership records linking actors to entities with capability bitmasks, o ```typescript db.orgMembership.findMany({ select: { id: true } }).execute() db.orgMembership.findOne({ id: '', 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.create({ data: { actorId: '', capabilities: '', createdBy: '', createdByPrincipal: '', entityId: '', granted: '', isActive: '', isAdmin: '', isApproved: '', isBanned: '', isDisabled: '', isExternal: '', isOwner: '', isReadOnly: '', profileId: '', updatedBy: '', updatedByPrincipal: '' }, 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: '', capabilities: '', createdBy: '', entityId: '', granted: '', isActive: '', isAdmin: '', isApproved: '', isBanned: '', isDisabled: '', isExternal: '', isOwner: '', isReadOnly: '', profileId: '', updatedBy: '' }, + data: { actorId: '', capabilities: '', createdBy: '', createdByPrincipal: '', entityId: '', granted: '', isActive: '', isAdmin: '', isApproved: '', isBanned: '', isDisabled: '', isExternal: '', isOwner: '', isReadOnly: '', profileId: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-admin/references/provision-bucket.md b/.agents/skills/orm-admin/references/provision-bucket.md index a9133530f2..eaefc02f2f 100644 --- a/.agents/skills/orm-admin/references/provision-bucket.md +++ b/.agents/skills/orm-admin/references/provision-bucket.md @@ -2,10 +2,11 @@ -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. +Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. ## Usage diff --git a/.agents/skills/orm-agent/SKILL.md b/.agents/skills/orm-agent/SKILL.md index 4fea972679..17c145b715 100644 --- a/.agents/skills/orm-agent/SKILL.md +++ b/.agents/skills/orm-agent/SKILL.md @@ -1,13 +1,13 @@ --- name: orm-agent -description: ORM client for the agent API — provides typed CRUD operations for 9 tables and 1 custom operations +description: ORM client for the agent API — provides typed CRUD operations for 21 tables and 1 custom operations --- # orm-agent -ORM client for the agent API — provides typed CRUD operations for 9 tables and 1 custom operations +ORM client for the agent API — provides typed CRUD operations for 21 tables and 1 custom operations ## Usage @@ -46,4 +46,16 @@ See the `references/` directory for detailed per-entity API documentation: - [agent-resource](references/agent-resource.md) - [agent-task](references/agent-task.md) - [agent-thread](references/agent-thread.md) +- [platform-agent](references/platform-agent.md) +- [platform-agent-event](references/platform-agent-event.md) +- [platform-agent-message](references/platform-agent-message.md) +- [platform-agent-persona](references/platform-agent-persona.md) +- [platform-agent-plan](references/platform-agent-plan.md) +- [platform-agent-prompt](references/platform-agent-prompt.md) +- [platform-agent-resource-chunk](references/platform-agent-resource-chunk.md) +- [platform-agent-resource](references/platform-agent-resource.md) +- [platform-agent-run](references/platform-agent-run.md) +- [platform-agent-run-workspace](references/platform-agent-run-workspace.md) +- [platform-agent-task](references/platform-agent-task.md) +- [platform-agent-thread](references/platform-agent-thread.md) - [provision-bucket](references/provision-bucket.md) diff --git a/.agents/skills/orm-agent/references/agent-message.md b/.agents/skills/orm-agent/references/agent-message.md index d69abf4787..171603314b 100644 --- a/.agents/skills/orm-agent/references/agent-message.md +++ b/.agents/skills/orm-agent/references/agent-message.md @@ -9,7 +9,7 @@ Message within an agent thread with TextPart/ToolPart jsonb parts ```typescript db.agentMessage.findMany({ select: { id: true } }).execute() db.agentMessage.findOne({ id: '', select: { id: true } }).execute() -db.agentMessage.create({ data: { actorId: '', agentId: '', authorRole: '', databaseId: '', model: '', parts: '', threadId: '' }, select: { id: true } }).execute() +db.agentMessage.create({ data: { actorId: '', agentId: '', authorRole: '', databaseId: '', kind: '', model: '', parts: '', threadId: '', visibility: '' }, select: { id: true } }).execute() db.agentMessage.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute() db.agentMessage.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.agentMessage.findMany({ ```typescript const item = await db.agentMessage.create({ - data: { actorId: '', agentId: '', authorRole: '', databaseId: '', model: '', parts: '', threadId: '' }, + data: { actorId: '', agentId: '', authorRole: '', databaseId: '', kind: '', model: '', parts: '', threadId: '', visibility: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-agent/references/agent-persona.md b/.agents/skills/orm-agent/references/agent-persona.md index dc5b8ed8c2..ec667429f5 100644 --- a/.agents/skills/orm-agent/references/agent-persona.md +++ b/.agents/skills/orm-agent/references/agent-persona.md @@ -9,7 +9,7 @@ Agent persona templates (role, system prompt, default skills/knowledge) ```typescript db.agentPersona.findMany({ select: { id: true } }).execute() db.agentPersona.findOne({ id: '', select: { id: true } }).execute() -db.agentPersona.create({ data: { config: '', createdBy: '', databaseId: '', description: '', isActive: '', name: '', resources: '', slug: '', systemPrompt: '', updatedBy: '' }, select: { id: true } }).execute() +db.agentPersona.create({ data: { config: '', createdBy: '', createdByPrincipal: '', databaseId: '', description: '', isActive: '', name: '', resources: '', slug: '', systemPrompt: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute() db.agentPersona.update({ where: { id: '' }, data: { config: '' }, select: { id: true } }).execute() db.agentPersona.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.agentPersona.findMany({ ```typescript const item = await db.agentPersona.create({ - data: { config: '', createdBy: '', databaseId: '', description: '', isActive: '', name: '', resources: '', slug: '', systemPrompt: '', updatedBy: '' }, + data: { config: '', createdBy: '', createdByPrincipal: '', databaseId: '', description: '', isActive: '', name: '', resources: '', slug: '', systemPrompt: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-agent/references/agent-plan.md b/.agents/skills/orm-agent/references/agent-plan.md index 8243a9097b..b755a996af 100644 --- a/.agents/skills/orm-agent/references/agent-plan.md +++ b/.agents/skills/orm-agent/references/agent-plan.md @@ -9,7 +9,7 @@ Workflow plan attached to an agent thread with ordered tasks and optional approv ```typescript db.agentPlan.findMany({ select: { id: true } }).execute() db.agentPlan.findOne({ id: '', select: { id: true } }).execute() -db.agentPlan.create({ data: { databaseId: '', description: '', ownerId: '', status: '', threadId: '', title: '' }, select: { id: true } }).execute() +db.agentPlan.create({ data: { databaseId: '', description: '', ownerId: '', status: '', threadId: '', title: '', visibility: '' }, select: { id: true } }).execute() db.agentPlan.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() db.agentPlan.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.agentPlan.findMany({ ```typescript const item = await db.agentPlan.create({ - data: { databaseId: '', description: '', ownerId: '', status: '', threadId: '', title: '' }, + data: { databaseId: '', description: '', ownerId: '', status: '', threadId: '', title: '', visibility: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-agent/references/agent-prompt.md b/.agents/skills/orm-agent/references/agent-prompt.md index 6c31c149ff..d6a2a91ec3 100644 --- a/.agents/skills/orm-agent/references/agent-prompt.md +++ b/.agents/skills/orm-agent/references/agent-prompt.md @@ -9,7 +9,7 @@ Shared system prompt templates for agent conversations ```typescript db.agentPrompt.findMany({ select: { id: true } }).execute() db.agentPrompt.findOne({ id: '', select: { id: true } }).execute() -db.agentPrompt.create({ data: { content: '', createdBy: '', databaseId: '', description: '', isDefault: '', metadata: '', name: '', updatedBy: '' }, select: { id: true } }).execute() +db.agentPrompt.create({ data: { content: '', createdBy: '', createdByPrincipal: '', databaseId: '', description: '', isDefault: '', metadata: '', name: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute() db.agentPrompt.update({ where: { id: '' }, data: { content: '' }, select: { id: true } }).execute() db.agentPrompt.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.agentPrompt.findMany({ ```typescript const item = await db.agentPrompt.create({ - data: { content: '', createdBy: '', databaseId: '', description: '', isDefault: '', metadata: '', name: '', updatedBy: '' }, + data: { content: '', createdBy: '', createdByPrincipal: '', databaseId: '', description: '', isDefault: '', metadata: '', name: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-agent/references/agent-resource-chunk.md b/.agents/skills/orm-agent/references/agent-resource-chunk.md index 93651a6aca..1e330a7e7b 100644 --- a/.agents/skills/orm-agent/references/agent-resource-chunk.md +++ b/.agents/skills/orm-agent/references/agent-resource-chunk.md @@ -12,7 +12,7 @@ High-dimensional vector columns for semantic similarity search. Query via the Un ```typescript db.agentResourceChunk.findMany({ select: { id: true } }).execute() db.agentResourceChunk.findOne({ id: '', select: { id: true } }).execute() -db.agentResourceChunk.create({ data: { agentResourceId: '', body: '', chunkIndex: '', embedding: '', embeddingVectorDistance: '', metadata: '', searchScore: '' }, select: { id: true } }).execute() +db.agentResourceChunk.create({ data: { agentResourceId: '', body: '', chunkIndex: '', databaseId: '', embedding: '', embeddingVectorDistance: '', metadata: '', searchScore: '' }, select: { id: true } }).execute() db.agentResourceChunk.update({ where: { id: '' }, data: { agentResourceId: '' }, select: { id: true } }).execute() db.agentResourceChunk.delete({ where: { id: '' } }).execute() ``` @@ -31,7 +31,7 @@ const items = await db.agentResourceChunk.findMany({ ```typescript const item = await db.agentResourceChunk.create({ - data: { agentResourceId: '', body: '', chunkIndex: '', embedding: '', embeddingVectorDistance: '', metadata: '', searchScore: '' }, + data: { agentResourceId: '', body: '', chunkIndex: '', databaseId: '', embedding: '', embeddingVectorDistance: '', metadata: '', searchScore: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-agent/references/agent-resource.md b/.agents/skills/orm-agent/references/agent-resource.md index 4e6e90279b..3a237ea2cc 100644 --- a/.agents/skills/orm-agent/references/agent-resource.md +++ b/.agents/skills/orm-agent/references/agent-resource.md @@ -15,7 +15,7 @@ Fields provided by the Unified Search plugin. Includes full-text search (tsvecto ```typescript db.agentResource.findMany({ select: { id: true } }).execute() db.agentResource.findOne({ id: '', select: { id: true } }).execute() -db.agentResource.create({ data: { archivedAt: '', body: '', bodyTrgmSimilarity: '', createdBy: '', databaseId: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', isActive: '', isArchived: '', keywords: '', kind: '', kindTrgmSimilarity: '', metadata: '', search: '', searchScore: '', searchTsvRank: '', slug: '', title: '', titleTrgmSimilarity: '', updatedBy: '' }, select: { id: true } }).execute() +db.agentResource.create({ data: { archivedAt: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', isActive: '', isArchived: '', keywords: '', kind: '', kindTrgmSimilarity: '', metadata: '', search: '', searchScore: '', searchTsvRank: '', slug: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute() db.agentResource.update({ where: { id: '' }, data: { archivedAt: '' }, select: { id: true } }).execute() db.agentResource.delete({ where: { id: '' } }).execute() ``` @@ -34,7 +34,7 @@ const items = await db.agentResource.findMany({ ```typescript const item = await db.agentResource.create({ - data: { archivedAt: '', body: '', bodyTrgmSimilarity: '', createdBy: '', databaseId: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', isActive: '', isArchived: '', keywords: '', kind: '', kindTrgmSimilarity: '', metadata: '', search: '', searchScore: '', searchTsvRank: '', slug: '', title: '', titleTrgmSimilarity: '', updatedBy: '' }, + data: { archivedAt: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', isActive: '', isArchived: '', keywords: '', kind: '', kindTrgmSimilarity: '', metadata: '', search: '', searchScore: '', searchTsvRank: '', slug: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-agent/references/agent-task.md b/.agents/skills/orm-agent/references/agent-task.md index 42f2b1dba4..f9a6fdf1a8 100644 --- a/.agents/skills/orm-agent/references/agent-task.md +++ b/.agents/skills/orm-agent/references/agent-task.md @@ -9,7 +9,7 @@ Task within a plan, with ordering and optional approval gates ```typescript db.agentTask.findMany({ select: { id: true } }).execute() db.agentTask.findOne({ id: '', select: { id: true } }).execute() -db.agentTask.create({ data: { actorId: '', approvalFeedback: '', approvalStatus: '', approvedAt: '', approvedBy: '', databaseId: '', description: '', error: '', orderIndex: '', planId: '', requiresApproval: '', source: '', status: '' }, select: { id: true } }).execute() +db.agentTask.create({ data: { actorId: '', approvalFeedback: '', approvalStatus: '', approvedAt: '', approvedBy: '', databaseId: '', description: '', error: '', orderIndex: '', planId: '', requiresApproval: '', source: '', status: '', visibility: '' }, select: { id: true } }).execute() db.agentTask.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute() db.agentTask.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.agentTask.findMany({ ```typescript const item = await db.agentTask.create({ - data: { actorId: '', approvalFeedback: '', approvalStatus: '', approvedAt: '', approvedBy: '', databaseId: '', description: '', error: '', orderIndex: '', planId: '', requiresApproval: '', source: '', status: '' }, + data: { actorId: '', approvalFeedback: '', approvalStatus: '', approvedAt: '', approvedBy: '', databaseId: '', description: '', error: '', orderIndex: '', planId: '', requiresApproval: '', source: '', status: '', visibility: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-agent/references/agent-thread.md b/.agents/skills/orm-agent/references/agent-thread.md index bb2a4b8cbb..626f310802 100644 --- a/.agents/skills/orm-agent/references/agent-thread.md +++ b/.agents/skills/orm-agent/references/agent-thread.md @@ -9,7 +9,7 @@ Top-level AI/LLM conversation thread ```typescript db.agentThread.findMany({ select: { id: true } }).execute() db.agentThread.findOne({ id: '', select: { id: true } }).execute() -db.agentThread.create({ data: { agentId: '', archivedAt: '', databaseId: '', isArchived: '', mode: '', model: '', ownerId: '', parentThreadId: '', promptTemplateId: '', status: '', systemPrompt: '', tags: '', title: '' }, select: { id: true } }).execute() +db.agentThread.create({ data: { agentId: '', archivedAt: '', databaseId: '', isArchived: '', mode: '', model: '', ownerId: '', parentThreadId: '', promptTemplateId: '', status: '', systemPrompt: '', tags: '', title: '', visibility: '' }, select: { id: true } }).execute() db.agentThread.update({ where: { id: '' }, data: { agentId: '' }, select: { id: true } }).execute() db.agentThread.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.agentThread.findMany({ ```typescript const item = await db.agentThread.create({ - data: { agentId: '', archivedAt: '', databaseId: '', isArchived: '', mode: '', model: '', ownerId: '', parentThreadId: '', promptTemplateId: '', status: '', systemPrompt: '', tags: '', title: '' }, + data: { agentId: '', archivedAt: '', databaseId: '', isArchived: '', mode: '', model: '', ownerId: '', parentThreadId: '', promptTemplateId: '', status: '', systemPrompt: '', tags: '', title: '', visibility: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-agent/references/platform-agent-event.md b/.agents/skills/orm-agent/references/platform-agent-event.md new file mode 100644 index 0000000000..1b99b7f882 --- /dev/null +++ b/.agents/skills/orm-agent/references/platform-agent-event.md @@ -0,0 +1,34 @@ +# platformAgentEvent + + + +Append-only transcript of an agent run: one agent session entry per row, stored verbatim + +## Usage + +```typescript +db.platformAgentEvent.findMany({ select: { id: true } }).execute() +db.platformAgentEvent.findOne({ id: '', select: { id: true } }).execute() +db.platformAgentEvent.create({ data: { actorId: '', entry: '', recordedAt: '', runId: '', seq: '', transcriptFormat: '', transcriptVersion: '', visibility: '' }, select: { id: true } }).execute() +db.platformAgentEvent.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute() +db.platformAgentEvent.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all platformAgentEvent records + +```typescript +const items = await db.platformAgentEvent.findMany({ + select: { id: true, actorId: true } +}).execute(); +``` + +### Create a platformAgentEvent + +```typescript +const item = await db.platformAgentEvent.create({ + data: { actorId: '', entry: '', recordedAt: '', runId: '', seq: '', transcriptFormat: '', transcriptVersion: '', visibility: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-agent/references/platform-agent-message.md b/.agents/skills/orm-agent/references/platform-agent-message.md new file mode 100644 index 0000000000..cf36a8ba28 --- /dev/null +++ b/.agents/skills/orm-agent/references/platform-agent-message.md @@ -0,0 +1,34 @@ +# platformAgentMessage + + + +Message within an agent thread with TextPart/ToolPart jsonb parts + +## Usage + +```typescript +db.platformAgentMessage.findMany({ select: { id: true } }).execute() +db.platformAgentMessage.findOne({ id: '', select: { id: true } }).execute() +db.platformAgentMessage.create({ data: { actorId: '', agentId: '', authorRole: '', deliveredRunId: '', kind: '', model: '', parts: '', threadId: '', visibility: '' }, select: { id: true } }).execute() +db.platformAgentMessage.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute() +db.platformAgentMessage.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all platformAgentMessage records + +```typescript +const items = await db.platformAgentMessage.findMany({ + select: { id: true, actorId: true } +}).execute(); +``` + +### Create a platformAgentMessage + +```typescript +const item = await db.platformAgentMessage.create({ + data: { actorId: '', agentId: '', authorRole: '', deliveredRunId: '', kind: '', model: '', parts: '', threadId: '', visibility: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-agent/references/platform-agent-persona.md b/.agents/skills/orm-agent/references/platform-agent-persona.md new file mode 100644 index 0000000000..79da1281c2 --- /dev/null +++ b/.agents/skills/orm-agent/references/platform-agent-persona.md @@ -0,0 +1,34 @@ +# platformAgentPersona + + + +Agent persona templates (role, system prompt, default skills/knowledge) + +## Usage + +```typescript +db.platformAgentPersona.findMany({ select: { id: true } }).execute() +db.platformAgentPersona.findOne({ id: '', select: { id: true } }).execute() +db.platformAgentPersona.create({ data: { config: '', createdBy: '', createdByPrincipal: '', description: '', isActive: '', name: '', resources: '', slug: '', systemPrompt: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute() +db.platformAgentPersona.update({ where: { id: '' }, data: { config: '' }, select: { id: true } }).execute() +db.platformAgentPersona.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all platformAgentPersona records + +```typescript +const items = await db.platformAgentPersona.findMany({ + select: { id: true, config: true } +}).execute(); +``` + +### Create a platformAgentPersona + +```typescript +const item = await db.platformAgentPersona.create({ + data: { config: '', createdBy: '', createdByPrincipal: '', description: '', isActive: '', name: '', resources: '', slug: '', systemPrompt: '', updatedBy: '', updatedByPrincipal: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-agent/references/platform-agent-plan.md b/.agents/skills/orm-agent/references/platform-agent-plan.md new file mode 100644 index 0000000000..8cdcc0934e --- /dev/null +++ b/.agents/skills/orm-agent/references/platform-agent-plan.md @@ -0,0 +1,34 @@ +# platformAgentPlan + + + +Workflow plan attached to an agent thread with ordered tasks and optional approval gates + +## Usage + +```typescript +db.platformAgentPlan.findMany({ select: { id: true } }).execute() +db.platformAgentPlan.findOne({ id: '', select: { id: true } }).execute() +db.platformAgentPlan.create({ data: { description: '', ownerId: '', status: '', threadId: '', title: '', visibility: '' }, select: { id: true } }).execute() +db.platformAgentPlan.update({ where: { id: '' }, data: { description: '' }, select: { id: true } }).execute() +db.platformAgentPlan.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all platformAgentPlan records + +```typescript +const items = await db.platformAgentPlan.findMany({ + select: { id: true, description: true } +}).execute(); +``` + +### Create a platformAgentPlan + +```typescript +const item = await db.platformAgentPlan.create({ + data: { description: '', ownerId: '', status: '', threadId: '', title: '', visibility: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-agent/references/platform-agent-prompt.md b/.agents/skills/orm-agent/references/platform-agent-prompt.md new file mode 100644 index 0000000000..fa8036f82a --- /dev/null +++ b/.agents/skills/orm-agent/references/platform-agent-prompt.md @@ -0,0 +1,34 @@ +# platformAgentPrompt + + + +Shared system prompt templates for agent conversations + +## Usage + +```typescript +db.platformAgentPrompt.findMany({ select: { id: true } }).execute() +db.platformAgentPrompt.findOne({ id: '', select: { id: true } }).execute() +db.platformAgentPrompt.create({ data: { content: '', createdBy: '', createdByPrincipal: '', description: '', isDefault: '', metadata: '', name: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute() +db.platformAgentPrompt.update({ where: { id: '' }, data: { content: '' }, select: { id: true } }).execute() +db.platformAgentPrompt.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all platformAgentPrompt records + +```typescript +const items = await db.platformAgentPrompt.findMany({ + select: { id: true, content: true } +}).execute(); +``` + +### Create a platformAgentPrompt + +```typescript +const item = await db.platformAgentPrompt.create({ + data: { content: '', createdBy: '', createdByPrincipal: '', description: '', isDefault: '', metadata: '', name: '', updatedBy: '', updatedByPrincipal: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-agent/references/platform-agent-resource-chunk.md b/.agents/skills/orm-agent/references/platform-agent-resource-chunk.md new file mode 100644 index 0000000000..2b1caeb6b2 --- /dev/null +++ b/.agents/skills/orm-agent/references/platform-agent-resource-chunk.md @@ -0,0 +1,37 @@ +# platformAgentResourceChunk + + + +ORM operations for PlatformAgentResourceChunk records + +**pgvector embedding fields:** `embedding` +High-dimensional vector columns for semantic similarity search. Query via the Unified Search API pgvector adapter using cosine, L2, or inner-product distance. + +## Usage + +```typescript +db.platformAgentResourceChunk.findMany({ select: { id: true } }).execute() +db.platformAgentResourceChunk.findOne({ id: '', select: { id: true } }).execute() +db.platformAgentResourceChunk.create({ data: { body: '', chunkIndex: '', embedding: '', embeddingVectorDistance: '', metadata: '', platformAgentResourceId: '', searchScore: '' }, select: { id: true } }).execute() +db.platformAgentResourceChunk.update({ where: { id: '' }, data: { body: '' }, select: { id: true } }).execute() +db.platformAgentResourceChunk.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all platformAgentResourceChunk records + +```typescript +const items = await db.platformAgentResourceChunk.findMany({ + select: { id: true, body: true } +}).execute(); +``` + +### Create a platformAgentResourceChunk + +```typescript +const item = await db.platformAgentResourceChunk.create({ + data: { body: '', chunkIndex: '', embedding: '', embeddingVectorDistance: '', metadata: '', platformAgentResourceId: '', searchScore: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-agent/references/platform-agent-resource.md b/.agents/skills/orm-agent/references/platform-agent-resource.md new file mode 100644 index 0000000000..8e8d07664f --- /dev/null +++ b/.agents/skills/orm-agent/references/platform-agent-resource.md @@ -0,0 +1,40 @@ +# platformAgentResource + + + +Unified skills and knowledge resources for agent retrieval + +**pgvector embedding fields:** `embedding` +High-dimensional vector columns for semantic similarity search. Query via the Unified Search API pgvector adapter using cosine, L2, or inner-product distance. + +**Unified Search API fields:** `search` +Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. + +## Usage + +```typescript +db.platformAgentResource.findMany({ select: { id: true } }).execute() +db.platformAgentResource.findOne({ id: '', select: { id: true } }).execute() +db.platformAgentResource.create({ data: { archivedAt: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', isActive: '', isArchived: '', keywords: '', kind: '', kindTrgmSimilarity: '', metadata: '', search: '', searchScore: '', searchTsvRank: '', slug: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute() +db.platformAgentResource.update({ where: { id: '' }, data: { archivedAt: '' }, select: { id: true } }).execute() +db.platformAgentResource.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all platformAgentResource records + +```typescript +const items = await db.platformAgentResource.findMany({ + select: { id: true, archivedAt: true } +}).execute(); +``` + +### Create a platformAgentResource + +```typescript +const item = await db.platformAgentResource.create({ + data: { archivedAt: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', isActive: '', isArchived: '', keywords: '', kind: '', kindTrgmSimilarity: '', metadata: '', search: '', searchScore: '', searchTsvRank: '', slug: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-agent/references/platform-agent-run-workspace.md b/.agents/skills/orm-agent/references/platform-agent-run-workspace.md new file mode 100644 index 0000000000..d6ae544b1d --- /dev/null +++ b/.agents/skills/orm-agent/references/platform-agent-run-workspace.md @@ -0,0 +1,34 @@ +# platformAgentRunWorkspace + + + +One repository an agent run works in: its remote, branch, commits and how the work is published + +## Usage + +```typescript +db.platformAgentRunWorkspace.findMany({ select: { id: true } }).execute() +db.platformAgentRunWorkspace.findOne({ id: '', select: { id: true } }).execute() +db.platformAgentRunWorkspace.create({ data: { actorId: '', artifacts: '', baseBranch: '', baseCommit: '', branch: '', clonedAt: '', headCommit: '', lastUsedAt: '', ordinal: '', provider: '', publication: '', repo: '', repositoryId: '', runId: '', state: '', visibility: '' }, select: { id: true } }).execute() +db.platformAgentRunWorkspace.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute() +db.platformAgentRunWorkspace.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all platformAgentRunWorkspace records + +```typescript +const items = await db.platformAgentRunWorkspace.findMany({ + select: { id: true, actorId: true } +}).execute(); +``` + +### Create a platformAgentRunWorkspace + +```typescript +const item = await db.platformAgentRunWorkspace.create({ + data: { actorId: '', artifacts: '', baseBranch: '', baseCommit: '', branch: '', clonedAt: '', headCommit: '', lastUsedAt: '', ordinal: '', provider: '', publication: '', repo: '', repositoryId: '', runId: '', state: '', visibility: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-agent/references/platform-agent-run.md b/.agents/skills/orm-agent/references/platform-agent-run.md new file mode 100644 index 0000000000..dc379353dd --- /dev/null +++ b/.agents/skills/orm-agent/references/platform-agent-run.md @@ -0,0 +1,34 @@ +# platformAgentRun + + + +One supervised agent run of a thread: its placement, workspace, cursor and artifacts + +## Usage + +```typescript +db.platformAgentRun.findMany({ select: { id: true } }).execute() +db.platformAgentRun.findOne({ id: '', select: { id: true } }).execute() +db.platformAgentRun.create({ data: { actorId: '', artifacts: '', attempt: '', baseCommit: '', branch: '', databaseId: '', deadlineAt: '', entityId: '', error: '', executionId: '', finishedAt: '', headCommit: '', lastEventSeq: '', parentRunId: '', placement: '', principalId: '', repoUrl: '', startedAt: '', status: '', threadId: '', tokenUsage: '', totalCost: '', visibility: '' }, select: { id: true } }).execute() +db.platformAgentRun.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute() +db.platformAgentRun.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all platformAgentRun records + +```typescript +const items = await db.platformAgentRun.findMany({ + select: { id: true, actorId: true } +}).execute(); +``` + +### Create a platformAgentRun + +```typescript +const item = await db.platformAgentRun.create({ + data: { actorId: '', artifacts: '', attempt: '', baseCommit: '', branch: '', databaseId: '', deadlineAt: '', entityId: '', error: '', executionId: '', finishedAt: '', headCommit: '', lastEventSeq: '', parentRunId: '', placement: '', principalId: '', repoUrl: '', startedAt: '', status: '', threadId: '', tokenUsage: '', totalCost: '', visibility: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-agent/references/platform-agent-task.md b/.agents/skills/orm-agent/references/platform-agent-task.md new file mode 100644 index 0000000000..47bf57c633 --- /dev/null +++ b/.agents/skills/orm-agent/references/platform-agent-task.md @@ -0,0 +1,34 @@ +# platformAgentTask + + + +Task within a plan, with ordering and optional approval gates + +## Usage + +```typescript +db.platformAgentTask.findMany({ select: { id: true } }).execute() +db.platformAgentTask.findOne({ id: '', select: { id: true } }).execute() +db.platformAgentTask.create({ data: { actorId: '', approvalFeedback: '', approvalStatus: '', approvedAt: '', approvedBy: '', description: '', error: '', orderIndex: '', planId: '', requiresApproval: '', source: '', status: '', visibility: '' }, select: { id: true } }).execute() +db.platformAgentTask.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute() +db.platformAgentTask.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all platformAgentTask records + +```typescript +const items = await db.platformAgentTask.findMany({ + select: { id: true, actorId: true } +}).execute(); +``` + +### Create a platformAgentTask + +```typescript +const item = await db.platformAgentTask.create({ + data: { actorId: '', approvalFeedback: '', approvalStatus: '', approvedAt: '', approvedBy: '', description: '', error: '', orderIndex: '', planId: '', requiresApproval: '', source: '', status: '', visibility: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-agent/references/platform-agent-thread.md b/.agents/skills/orm-agent/references/platform-agent-thread.md new file mode 100644 index 0000000000..fd69304cbc --- /dev/null +++ b/.agents/skills/orm-agent/references/platform-agent-thread.md @@ -0,0 +1,34 @@ +# platformAgentThread + + + +Top-level AI/LLM conversation thread + +## Usage + +```typescript +db.platformAgentThread.findMany({ select: { id: true } }).execute() +db.platformAgentThread.findOne({ id: '', select: { id: true } }).execute() +db.platformAgentThread.create({ data: { agentId: '', archivedAt: '', isArchived: '', mode: '', model: '', ownerId: '', parentThreadId: '', promptTemplateId: '', status: '', systemPrompt: '', tags: '', title: '', visibility: '' }, select: { id: true } }).execute() +db.platformAgentThread.update({ where: { id: '' }, data: { agentId: '' }, select: { id: true } }).execute() +db.platformAgentThread.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all platformAgentThread records + +```typescript +const items = await db.platformAgentThread.findMany({ + select: { id: true, agentId: true } +}).execute(); +``` + +### Create a platformAgentThread + +```typescript +const item = await db.platformAgentThread.create({ + data: { agentId: '', archivedAt: '', isArchived: '', mode: '', model: '', ownerId: '', parentThreadId: '', promptTemplateId: '', status: '', systemPrompt: '', tags: '', title: '', visibility: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-agent/references/platform-agent.md b/.agents/skills/orm-agent/references/platform-agent.md new file mode 100644 index 0000000000..d91d523e8f --- /dev/null +++ b/.agents/skills/orm-agent/references/platform-agent.md @@ -0,0 +1,34 @@ +# platformAgent + + + +Agent instance registry (human-managed or ephemeral sub-agents) + +## Usage + +```typescript +db.platformAgent.findMany({ select: { id: true } }).execute() +db.platformAgent.findOne({ id: '', select: { id: true } }).execute() +db.platformAgent.create({ data: { config: '', isEphemeral: '', name: '', ownerId: '', parentId: '', personaId: '', status: '', systemPrompt: '' }, select: { id: true } }).execute() +db.platformAgent.update({ where: { id: '' }, data: { config: '' }, select: { id: true } }).execute() +db.platformAgent.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all platformAgent records + +```typescript +const items = await db.platformAgent.findMany({ + select: { id: true, config: true } +}).execute(); +``` + +### Create a platformAgent + +```typescript +const item = await db.platformAgent.create({ + data: { config: '', isEphemeral: '', name: '', ownerId: '', parentId: '', personaId: '', status: '', systemPrompt: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-agent/references/provision-bucket.md b/.agents/skills/orm-agent/references/provision-bucket.md index a9133530f2..eaefc02f2f 100644 --- a/.agents/skills/orm-agent/references/provision-bucket.md +++ b/.agents/skills/orm-agent/references/provision-bucket.md @@ -2,10 +2,11 @@ -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. +Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. ## Usage diff --git a/.agents/skills/orm-api/SKILL.md b/.agents/skills/orm-api/SKILL.md index 206677aab1..59f47b7464 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 86 tables and 17 custom operations +description: ORM client for the api API — provides typed CRUD operations for 91 tables and 44 custom operations --- # orm-api -ORM client for the api API — provides typed CRUD operations for 86 tables and 17 custom operations +ORM client for the api API — provides typed CRUD operations for 91 tables and 44 custom operations ## Usage @@ -15,7 +15,7 @@ ORM client for the api API — provides typed CRUD operations for 86 tables and // Import the ORM client import { db } from './orm'; -// Available models: api, apiSchema, apiSetting, appComponent, app, checkConstraint, compositeType, corsSetting, ... +// 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() @@ -40,8 +40,7 @@ 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) -- [app-component](references/app-component.md) -- [app](references/app.md) +- [ast-migration](references/ast-migration.md) - [check-constraint](references/check-constraint.md) - [composite-type](references/composite-type.md) - [cors-setting](references/cors-setting.md) @@ -66,8 +65,9 @@ See the `references/` directory for detailed per-entity API documentation: - [foreign-key-constraint](references/foreign-key-constraint.md) - [full-text-search](references/full-text-search.md) - [function](references/function.md) +- [get-site-previews-record](references/get-site-previews-record.md) - [hostname-binding](references/hostname-binding.md) -- [http-route](references/http-route.md) +- [identity-provider-registry](references/identity-provider-registry.md) - [index](references/index.md) - [managed-domain](references/managed-domain.md) - [node-type-registry](references/node-type-registry.md) @@ -83,6 +83,7 @@ See the `references/` directory for detailed per-entity API documentation: - [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-get-site-previews-record](references/platform-get-site-previews-record.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) @@ -91,11 +92,13 @@ See the `references/` directory for detailed per-entity API documentation: - [platform-site-error-page](references/platform-site-error-page.md) - [platform-site-metadatum](references/platform-site-metadatum.md) - [platform-site-module](references/platform-site-module.md) +- [platform-site-release](references/platform-site-release.md) - [platform-site-theme](references/platform-site-theme.md) - [platform-site-web-config](references/platform-site-web-config.md) - [policy](references/policy.md) - [primary-key-constraint](references/primary-key-constraint.md) - [pubkey-setting](references/pubkey-setting.md) +- [redirect](references/redirect.md) - [rls-setting](references/rls-setting.md) - [route-binding](references/route-binding.md) - [route](references/route.md) @@ -107,9 +110,11 @@ See the `references/` directory for detailed per-entity API documentation: - [site-error-page](references/site-error-page.md) - [site-metadatum](references/site-metadatum.md) - [site-module](references/site-module.md) +- [site-release](references/site-release.md) - [site-theme](references/site-theme.md) - [site-web-config](references/site-web-config.md) - [spatial-relation](references/spatial-relation.md) +- [sql-action](references/sql-action.md) - [table-behavior](references/table-behavior.md) - [table](references/table.md) - [table-grant](references/table-grant.md) @@ -125,18 +130,45 @@ See the `references/` directory for detailed per-entity API documentation: - [webauthn-setting](references/webauthn-setting.md) - [api-schema-names](references/api-schema-names.md) - [apply-registry-defaults](references/apply-registry-defaults.md) +- [get-site-preview-commit](references/get-site-preview-commit.md) +- [get-site-release-manifest](references/get-site-release-manifest.md) +- [page-published](references/page-published.md) +- [platform-get-site-preview-commit](references/platform-get-site-preview-commit.md) +- [platform-get-site-release-manifest](references/platform-get-site-release-manifest.md) +- [platform-page-published](references/platform-page-published.md) +- [platform-sites-deep-link-url](references/platform-sites-deep-link-url.md) +- [platform-sites-site-origin](references/platform-sites-site-origin.md) +- [platform-verify-site-preview-token](references/platform-verify-site-preview-token.md) - [resolve-deep-link](references/resolve-deep-link.md) -- [resolve-http-route](references/resolve-http-route.md) - [resolve-route](references/resolve-route.md) - [resolve-site-app-links](references/resolve-site-app-links.md) +- [sites-deep-link-url](references/sites-deep-link-url.md) +- [sites-site-origin](references/sites-site-origin.md) +- [verify-site-preview-token](references/verify-site-preview-token.md) +- [accept-database-transfer](references/accept-database-transfer.md) - [apply-rls](references/apply-rls.md) -- [apps-install-app](references/apps-install-app.md) -- [apps-uninstall-app](references/apps-uninstall-app.md) -- [apps-upgrade-app](references/apps-upgrade-app.md) +- [cancel-database-transfer](references/cancel-database-transfer.md) +- [delete-site-preview](references/delete-site-preview.md) - [domains-assign-subdomain](references/domains-assign-subdomain.md) +- [mint-site-preview-token](references/mint-site-preview-token.md) +- [pages-install-pages](references/pages-install-pages.md) +- [platform-delete-site-preview](references/platform-delete-site-preview.md) - [platform-domains-assign-subdomain](references/platform-domains-assign-subdomain.md) +- [platform-mint-site-preview-token](references/platform-mint-site-preview-token.md) +- [platform-pages-install-pages](references/platform-pages-install-pages.md) +- [platform-provision-site-preview](references/platform-provision-site-preview.md) +- [platform-set-site-preview](references/platform-set-site-preview.md) +- [platform-site-metadata-install-robots](references/platform-site-metadata-install-robots.md) +- [platform-sites-install-content-preset](references/platform-sites-install-content-preset.md) +- [platform-sites-install-mantra](references/platform-sites-install-mantra.md) - [platform-sites-provision-static-site](references/platform-sites-provision-static-site.md) - [provision-bucket](references/provision-bucket.md) +- [provision-site-preview](references/provision-site-preview.md) +- [reject-database-transfer](references/reject-database-transfer.md) - [request-database](references/request-database.md) - [set-field-order](references/set-field-order.md) +- [set-site-preview](references/set-site-preview.md) +- [site-metadata-install-robots](references/site-metadata-install-robots.md) +- [sites-install-content-preset](references/sites-install-content-preset.md) +- [sites-install-mantra](references/sites-install-mantra.md) - [sites-provision-static-site](references/sites-provision-static-site.md) diff --git a/.agents/skills/orm-api/references/api-setting.md b/.agents/skills/orm-api/references/api-setting.md index 4ba7bf9911..6f883614b8 100644 --- a/.agents/skills/orm-api/references/api-setting.md +++ b/.agents/skills/orm-api/references/api-setting.md @@ -9,7 +9,7 @@ Per-API feature flag overrides; NULL columns inherit from database_settings ```typescript db.apiSetting.findMany({ select: { id: true } }).execute() db.apiSetting.findOne({ id: '', select: { id: true } }).execute() -db.apiSetting.create({ data: { apiId: '', databaseId: '', enableAggregates: '', enableBulk: '', enableConnectionFilter: '', enableDirectUploads: '', enableI18N: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', options: '', statementTimeoutMs: '' }, select: { id: true } }).execute() +db.apiSetting.create({ data: { apiId: '', databaseId: '', enableAggregates: '', enableBulk: '', enableConnectionFilter: '', enableDirectUploads: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }, select: { id: true } }).execute() db.apiSetting.update({ where: { id: '' }, data: { apiId: '' }, select: { id: true } }).execute() db.apiSetting.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.apiSetting.findMany({ ```typescript const item = await db.apiSetting.create({ - data: { apiId: '', databaseId: '', enableAggregates: '', enableBulk: '', enableConnectionFilter: '', enableDirectUploads: '', enableI18N: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', options: '', statementTimeoutMs: '' }, + data: { apiId: '', databaseId: '', enableAggregates: '', enableBulk: '', enableConnectionFilter: '', enableDirectUploads: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-api/references/database-setting.md b/.agents/skills/orm-api/references/database-setting.md index c06f35dcd2..925dd93f40 100644 --- a/.agents/skills/orm-api/references/database-setting.md +++ b/.agents/skills/orm-api/references/database-setting.md @@ -9,7 +9,7 @@ Scope-wide feature flags and settings; controls which platform features are avai ```typescript db.databaseSetting.findMany({ select: { id: true } }).execute() db.databaseSetting.findOne({ id: '', select: { id: true } }).execute() -db.databaseSetting.create({ data: { annotations: '', databaseId: '', enableAggregates: '', enableBulk: '', enableConnectionFilter: '', enableDirectUploads: '', enableI18N: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', labels: '', options: '', statementTimeoutMs: '' }, select: { id: true } }).execute() +db.databaseSetting.create({ data: { annotations: '', databaseId: '', enableAggregates: '', enableBilling: '', enableBulk: '', enableConnectionFilter: '', enableDirectUploads: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', labels: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }, select: { id: true } }).execute() db.databaseSetting.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute() db.databaseSetting.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.databaseSetting.findMany({ ```typescript const item = await db.databaseSetting.create({ - data: { annotations: '', databaseId: '', enableAggregates: '', enableBulk: '', enableConnectionFilter: '', enableDirectUploads: '', enableI18N: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', labels: '', options: '', statementTimeoutMs: '' }, + data: { annotations: '', databaseId: '', enableAggregates: '', enableBilling: '', enableBulk: '', enableConnectionFilter: '', enableDirectUploads: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', labels: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-api/references/delete-site-preview.md b/.agents/skills/orm-api/references/delete-site-preview.md new file mode 100644 index 0000000000..0b3083ac6f --- /dev/null +++ b/.agents/skills/orm-api/references/delete-site-preview.md @@ -0,0 +1,19 @@ +# deleteSitePreview + + + +Execute the deleteSitePreview mutation + +## Usage + +```typescript +db.mutation.deleteSitePreview({ input: { targetName: '', targetSiteId: '' } }).execute() +``` + +## Examples + +### Run deleteSitePreview + +```typescript +const result = await db.mutation.deleteSitePreview({ input: { targetName: '', targetSiteId: '' } }).execute(); +``` diff --git a/.agents/skills/orm-api/references/derive.md b/.agents/skills/orm-api/references/derive.md index 9c85e44a3f..c1d1ab3dc9 100644 --- a/.agents/skills/orm-api/references/derive.md +++ b/.agents/skills/orm-api/references/derive.md @@ -9,7 +9,7 @@ ORM operations for Derive records ```typescript db.derive.findMany({ select: { id: true } }).execute() db.derive.findOne({ id: '', select: { id: true } }).execute() -db.derive.create({ data: { databaseId: '', includeMutations: '', kind: '', policyPrefix: '', sourceTableId: '', tableId: '' }, select: { id: true } }).execute() +db.derive.create({ data: { databaseId: '', includeGrants: '', includeMutations: '', kind: '', policyPrefix: '', sourceTableId: '', tableId: '' }, select: { id: true } }).execute() db.derive.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() db.derive.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.derive.findMany({ ```typescript const item = await db.derive.create({ - data: { databaseId: '', includeMutations: '', kind: '', policyPrefix: '', sourceTableId: '', tableId: '' }, + data: { databaseId: '', includeGrants: '', includeMutations: '', kind: '', policyPrefix: '', sourceTableId: '', tableId: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-api/references/domain.md b/.agents/skills/orm-api/references/domain.md index dcce4253be..aae2d0a5ce 100644 --- a/.agents/skills/orm-api/references/domain.md +++ b/.agents/skills/orm-api/references/domain.md @@ -9,7 +9,7 @@ Fully-qualified hostnames owned by this scope; each row claims its hostname glob ```typescript db.domain.findMany({ select: { id: true } }).execute() db.domain.findOne({ id: '', select: { id: true } }).execute() -db.domain.create({ data: { config: '', databaseId: '', hostname: '', isPublished: '', isWildcard: '', managed: '', parentHostname: '', tlsReadyAt: '', tlsSecretName: '', tlsStatus: '', verificationStatus: '', verifiedAt: '' }, select: { id: true } }).execute() +db.domain.create({ data: { config: '', createdByPrincipal: '', databaseId: '', hostname: '', isPublished: '', isWildcard: '', managed: '', parentHostname: '', tlsReadyAt: '', tlsSecretName: '', tlsStatus: '', updatedByPrincipal: '', verificationStatus: '', verifiedAt: '' }, select: { id: true } }).execute() db.domain.update({ where: { id: '' }, data: { config: '' }, select: { id: true } }).execute() db.domain.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.domain.findMany({ ```typescript const item = await db.domain.create({ - data: { config: '', databaseId: '', hostname: '', isPublished: '', isWildcard: '', managed: '', parentHostname: '', tlsReadyAt: '', tlsSecretName: '', tlsStatus: '', verificationStatus: '', verifiedAt: '' }, + data: { config: '', createdByPrincipal: '', databaseId: '', hostname: '', isPublished: '', isWildcard: '', managed: '', parentHostname: '', tlsReadyAt: '', tlsSecretName: '', tlsStatus: '', updatedByPrincipal: '', verificationStatus: '', verifiedAt: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-api/references/function.md b/.agents/skills/orm-api/references/function.md index da55d1c66c..19e8dc28bf 100644 --- a/.agents/skills/orm-api/references/function.md +++ b/.agents/skills/orm-api/references/function.md @@ -9,8 +9,8 @@ ORM operations for Function records ```typescript db.function.findMany({ select: { id: true } }).execute() db.function.findOne({ id: '', select: { id: true } }).execute() -db.function.create({ data: { databaseId: '', name: '', schemaId: '' }, select: { id: true } }).execute() -db.function.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.function.create({ data: { apiExposed: '', arguments: '', bodyAst: '', category: '', data: '', databaseId: '', functionType: '', isStrict: '', kind: '', name: '', returns: '', schemaId: '', securityInvoker: '', smartTags: '', tags: '', volatility: '' }, select: { id: true } }).execute() +db.function.update({ where: { id: '' }, data: { apiExposed: '' }, select: { id: true } }).execute() db.function.delete({ where: { id: '' } }).execute() ``` @@ -20,7 +20,7 @@ db.function.delete({ where: { id: '' } }).execute() ```typescript const items = await db.function.findMany({ - select: { id: true, databaseId: true } + select: { id: true, apiExposed: true } }).execute(); ``` @@ -28,7 +28,7 @@ const items = await db.function.findMany({ ```typescript const item = await db.function.create({ - data: { databaseId: '', name: '', schemaId: '' }, + data: { apiExposed: '', arguments: '', bodyAst: '', category: '', data: '', databaseId: '', functionType: '', isStrict: '', kind: '', name: '', returns: '', schemaId: '', securityInvoker: '', smartTags: '', tags: '', volatility: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-api/references/get-site-preview-commit.md b/.agents/skills/orm-api/references/get-site-preview-commit.md new file mode 100644 index 0000000000..098f8a20d9 --- /dev/null +++ b/.agents/skills/orm-api/references/get-site-preview-commit.md @@ -0,0 +1,19 @@ +# getSitePreviewCommit + + + +Execute the getSitePreviewCommit query + +## Usage + +```typescript +db.query.getSitePreviewCommit({ targetName: '', targetSiteId: '' }).execute() +``` + +## Examples + +### Run getSitePreviewCommit + +```typescript +const result = await db.query.getSitePreviewCommit({ targetName: '', targetSiteId: '' }).execute(); +``` diff --git a/.agents/skills/orm-api/references/get-site-previews-record.md b/.agents/skills/orm-api/references/get-site-previews-record.md new file mode 100644 index 0000000000..f0e497ea8a --- /dev/null +++ b/.agents/skills/orm-api/references/get-site-previews-record.md @@ -0,0 +1,34 @@ +# getSitePreviewsRecord + + + +ORM operations for GetSitePreviewsRecord records + +## Usage + +```typescript +db.getSitePreviewsRecord.findMany({ select: { id: true } }).execute() +db.getSitePreviewsRecord.findOne({ id: '', select: { id: true } }).execute() +db.getSitePreviewsRecord.create({ data: { commitId: '', name: '' }, select: { id: true } }).execute() +db.getSitePreviewsRecord.update({ where: { id: '' }, data: { commitId: '' }, select: { id: true } }).execute() +db.getSitePreviewsRecord.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all getSitePreviewsRecord records + +```typescript +const items = await db.getSitePreviewsRecord.findMany({ + select: { id: true, commitId: true } +}).execute(); +``` + +### Create a getSitePreviewsRecord + +```typescript +const item = await db.getSitePreviewsRecord.create({ + data: { commitId: '', name: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-api/references/get-site-release-manifest.md b/.agents/skills/orm-api/references/get-site-release-manifest.md new file mode 100644 index 0000000000..69bce0e610 --- /dev/null +++ b/.agents/skills/orm-api/references/get-site-release-manifest.md @@ -0,0 +1,19 @@ +# getSiteReleaseManifest + + + +Execute the getSiteReleaseManifest query + +## Usage + +```typescript +db.query.getSiteReleaseManifest({ targetCommitId: '', targetSiteId: '' }).execute() +``` + +## Examples + +### Run getSiteReleaseManifest + +```typescript +const result = await db.query.getSiteReleaseManifest({ targetCommitId: '', targetSiteId: '' }).execute(); +``` diff --git a/.agents/skills/orm-api/references/identity-provider-registry.md b/.agents/skills/orm-api/references/identity-provider-registry.md new file mode 100644 index 0000000000..edb8cb7420 --- /dev/null +++ b/.agents/skills/orm-api/references/identity-provider-registry.md @@ -0,0 +1,34 @@ +# identityProviderRegistry + + + +ORM operations for IdentityProviderRegistry records + +## Usage + +```typescript +db.identityProviderRegistry.findMany({ select: { id: true } }).execute() +db.identityProviderRegistry.findOne({ slug: '', select: { id: true } }).execute() +db.identityProviderRegistry.create({ data: { authorizationUrl: '', displayName: '', issuerUrl: '', kind: '', scopes: '', tokenUrl: '', userinfoUrl: '' }, select: { id: true } }).execute() +db.identityProviderRegistry.update({ where: { slug: '' }, data: { authorizationUrl: '' }, select: { id: true } }).execute() +db.identityProviderRegistry.delete({ where: { slug: '' } }).execute() +``` + +## Examples + +### List all identityProviderRegistry records + +```typescript +const items = await db.identityProviderRegistry.findMany({ + select: { slug: true, authorizationUrl: true } +}).execute(); +``` + +### Create a identityProviderRegistry + +```typescript +const item = await db.identityProviderRegistry.create({ + data: { authorizationUrl: '', displayName: '', issuerUrl: '', kind: '', scopes: '', tokenUrl: '', userinfoUrl: '' }, + select: { slug: true } +}).execute(); +``` diff --git a/.agents/skills/orm-api/references/index.md b/.agents/skills/orm-api/references/index.md index 31893bf4f2..a16bf5ea55 100644 --- a/.agents/skills/orm-api/references/index.md +++ b/.agents/skills/orm-api/references/index.md @@ -9,7 +9,7 @@ ORM operations for Index records ```typescript db.index.findMany({ select: { id: true } }).execute() db.index.findOne({ id: '', select: { id: true } }).execute() -db.index.create({ data: { accessMethod: '', category: '', databaseId: '', fieldIds: '', includeFieldIds: '', indexParams: '', isUnique: '', name: '', opClasses: '', options: '', smartTags: '', tableId: '', tags: '', whereClause: '' }, select: { id: true } }).execute() +db.index.create({ data: { accessMethod: '', category: '', databaseId: '', fieldIds: '', includeFieldIds: '', indexParams: '', isUnique: '', name: '', nullsNotDistinct: '', opClasses: '', options: '', smartTags: '', tableId: '', tags: '', whereClause: '' }, select: { id: true } }).execute() db.index.update({ where: { id: '' }, data: { accessMethod: '' }, select: { id: true } }).execute() db.index.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.index.findMany({ ```typescript const item = await db.index.create({ - data: { accessMethod: '', category: '', databaseId: '', fieldIds: '', includeFieldIds: '', indexParams: '', isUnique: '', name: '', opClasses: '', options: '', smartTags: '', tableId: '', tags: '', whereClause: '' }, + data: { accessMethod: '', category: '', databaseId: '', fieldIds: '', includeFieldIds: '', indexParams: '', isUnique: '', name: '', nullsNotDistinct: '', opClasses: '', options: '', smartTags: '', tableId: '', tags: '', whereClause: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-api/references/managed-domain.md b/.agents/skills/orm-api/references/managed-domain.md index 751bf0f190..d9ec52f3fa 100644 --- a/.agents/skills/orm-api/references/managed-domain.md +++ b/.agents/skills/orm-api/references/managed-domain.md @@ -9,7 +9,7 @@ Platform-operated hostnames whose DNS and certificate lifecycle the platform dri ```typescript db.managedDomain.findMany({ select: { id: true } }).execute() db.managedDomain.findOne({ id: '', select: { id: true } }).execute() -db.managedDomain.create({ data: { allowPublicUsage: '', annotations: '', certStatus: '', databaseId: '', domain: '', isWildcard: '', tlsReadyAt: '', tlsStatus: '', verificationStatus: '', verifiedAt: '' }, select: { id: true } }).execute() +db.managedDomain.create({ data: { allowPublicUsage: '', annotations: '', certStatus: '', createdByPrincipal: '', databaseId: '', domain: '', isWildcard: '', tlsReadyAt: '', tlsStatus: '', updatedByPrincipal: '', verificationStatus: '', verifiedAt: '' }, select: { id: true } }).execute() db.managedDomain.update({ where: { id: '' }, data: { allowPublicUsage: '' }, select: { id: true } }).execute() db.managedDomain.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.managedDomain.findMany({ ```typescript const item = await db.managedDomain.create({ - data: { allowPublicUsage: '', annotations: '', certStatus: '', databaseId: '', domain: '', isWildcard: '', tlsReadyAt: '', tlsStatus: '', verificationStatus: '', verifiedAt: '' }, + data: { allowPublicUsage: '', annotations: '', certStatus: '', createdByPrincipal: '', databaseId: '', domain: '', isWildcard: '', tlsReadyAt: '', tlsStatus: '', updatedByPrincipal: '', verificationStatus: '', verifiedAt: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-api/references/mint-site-preview-token.md b/.agents/skills/orm-api/references/mint-site-preview-token.md new file mode 100644 index 0000000000..456feab672 --- /dev/null +++ b/.agents/skills/orm-api/references/mint-site-preview-token.md @@ -0,0 +1,19 @@ +# mintSitePreviewToken + + + +Execute the mintSitePreviewToken mutation + +## Usage + +```typescript +db.mutation.mintSitePreviewToken({ input: { siteId: '', target: '', targetKind: '', ttlSeconds: '' } }).execute() +``` + +## Examples + +### Run mintSitePreviewToken + +```typescript +const result = await db.mutation.mintSitePreviewToken({ input: { siteId: '', target: '', targetKind: '', ttlSeconds: '' } }).execute(); +``` diff --git a/.agents/skills/orm-api/references/page-published.md b/.agents/skills/orm-api/references/page-published.md new file mode 100644 index 0000000000..5f87f3f9c7 --- /dev/null +++ b/.agents/skills/orm-api/references/page-published.md @@ -0,0 +1,19 @@ +# pagePublished + + + +Execute the pagePublished query + +## Usage + +```typescript +db.query.pagePublished({ pageSlug: '', targetSiteId: '' }).execute() +``` + +## Examples + +### Run pagePublished + +```typescript +const result = await db.query.pagePublished({ pageSlug: '', targetSiteId: '' }).execute(); +``` diff --git a/.agents/skills/orm-api/references/page.md b/.agents/skills/orm-api/references/page.md index 83d53e2b3d..28d9bb69a2 100644 --- a/.agents/skills/orm-api/references/page.md +++ b/.agents/skills/orm-api/references/page.md @@ -9,7 +9,7 @@ Site-owned page content — merkle-versioned head over the infra store; never a ```typescript db.page.findMany({ select: { id: true } }).execute() db.page.findOne({ id: '', select: { id: true } }).execute() -db.page.create({ data: { commitId: '', content: '', databaseId: '', siteId: '', slug: '', storeId: '' }, select: { id: true } }).execute() +db.page.create({ data: { commitId: '', content: '', databaseId: '', seededFrom: '', siteId: '', slug: '', storeId: '' }, select: { id: true } }).execute() db.page.update({ where: { id: '' }, data: { commitId: '' }, select: { id: true } }).execute() db.page.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.page.findMany({ ```typescript const item = await db.page.create({ - data: { commitId: '', content: '', databaseId: '', siteId: '', slug: '', storeId: '' }, + data: { commitId: '', content: '', databaseId: '', seededFrom: '', siteId: '', slug: '', storeId: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-api/references/pages-install-pages.md b/.agents/skills/orm-api/references/pages-install-pages.md new file mode 100644 index 0000000000..c9cacd77ef --- /dev/null +++ b/.agents/skills/orm-api/references/pages-install-pages.md @@ -0,0 +1,19 @@ +# pagesInstallPages + + + +Execute the pagesInstallPages mutation + +## Usage + +```typescript +db.mutation.pagesInstallPages({ input: { entityId: '', pagesPreset: '', siteId: '' } }).execute() +``` + +## Examples + +### Run pagesInstallPages + +```typescript +const result = await db.mutation.pagesInstallPages({ input: { entityId: '', pagesPreset: '', siteId: '' } }).execute(); +``` diff --git a/.agents/skills/orm-api/references/platform-api-setting.md b/.agents/skills/orm-api/references/platform-api-setting.md index a10182f95d..4a56b02175 100644 --- a/.agents/skills/orm-api/references/platform-api-setting.md +++ b/.agents/skills/orm-api/references/platform-api-setting.md @@ -9,7 +9,7 @@ Per-API feature flag overrides; NULL columns inherit from database_settings ```typescript db.platformApiSetting.findMany({ select: { id: true } }).execute() db.platformApiSetting.findOne({ id: '', select: { id: true } }).execute() -db.platformApiSetting.create({ data: { apiId: '', enableAggregates: '', enableBulk: '', enableConnectionFilter: '', enableDirectUploads: '', enableI18N: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', options: '', statementTimeoutMs: '' }, select: { id: true } }).execute() +db.platformApiSetting.create({ data: { apiId: '', enableAggregates: '', enableBulk: '', enableConnectionFilter: '', enableDirectUploads: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }, select: { id: true } }).execute() db.platformApiSetting.update({ where: { id: '' }, data: { apiId: '' }, select: { id: true } }).execute() db.platformApiSetting.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.platformApiSetting.findMany({ ```typescript const item = await db.platformApiSetting.create({ - data: { apiId: '', enableAggregates: '', enableBulk: '', enableConnectionFilter: '', enableDirectUploads: '', enableI18N: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', options: '', statementTimeoutMs: '' }, + data: { apiId: '', enableAggregates: '', enableBulk: '', enableConnectionFilter: '', enableDirectUploads: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-api/references/platform-delete-site-preview.md b/.agents/skills/orm-api/references/platform-delete-site-preview.md new file mode 100644 index 0000000000..6254c7f7ae --- /dev/null +++ b/.agents/skills/orm-api/references/platform-delete-site-preview.md @@ -0,0 +1,19 @@ +# platformDeleteSitePreview + + + +Execute the platformDeleteSitePreview mutation + +## Usage + +```typescript +db.mutation.platformDeleteSitePreview({ input: { targetName: '', targetSiteId: '' } }).execute() +``` + +## Examples + +### Run platformDeleteSitePreview + +```typescript +const result = await db.mutation.platformDeleteSitePreview({ input: { targetName: '', targetSiteId: '' } }).execute(); +``` diff --git a/.agents/skills/orm-api/references/platform-domain.md b/.agents/skills/orm-api/references/platform-domain.md index 27cfa8076b..16e9c86331 100644 --- a/.agents/skills/orm-api/references/platform-domain.md +++ b/.agents/skills/orm-api/references/platform-domain.md @@ -9,7 +9,7 @@ Fully-qualified hostnames owned by this scope; each row claims its hostname glob ```typescript db.platformDomain.findMany({ select: { id: true } }).execute() db.platformDomain.findOne({ id: '', select: { id: true } }).execute() -db.platformDomain.create({ data: { config: '', hostname: '', isPublished: '', isWildcard: '', managed: '', parentHostname: '', tlsReadyAt: '', tlsSecretName: '', tlsStatus: '', verificationStatus: '', verifiedAt: '' }, select: { id: true } }).execute() +db.platformDomain.create({ data: { config: '', createdByPrincipal: '', hostname: '', isPublished: '', isWildcard: '', managed: '', parentHostname: '', tlsReadyAt: '', tlsSecretName: '', tlsStatus: '', updatedByPrincipal: '', verificationStatus: '', verifiedAt: '' }, select: { id: true } }).execute() db.platformDomain.update({ where: { id: '' }, data: { config: '' }, select: { id: true } }).execute() db.platformDomain.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.platformDomain.findMany({ ```typescript const item = await db.platformDomain.create({ - data: { config: '', hostname: '', isPublished: '', isWildcard: '', managed: '', parentHostname: '', tlsReadyAt: '', tlsSecretName: '', tlsStatus: '', verificationStatus: '', verifiedAt: '' }, + data: { config: '', createdByPrincipal: '', hostname: '', isPublished: '', isWildcard: '', managed: '', parentHostname: '', tlsReadyAt: '', tlsSecretName: '', tlsStatus: '', updatedByPrincipal: '', verificationStatus: '', verifiedAt: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-api/references/platform-get-site-preview-commit.md b/.agents/skills/orm-api/references/platform-get-site-preview-commit.md new file mode 100644 index 0000000000..7c9726adb0 --- /dev/null +++ b/.agents/skills/orm-api/references/platform-get-site-preview-commit.md @@ -0,0 +1,19 @@ +# platformGetSitePreviewCommit + + + +Execute the platformGetSitePreviewCommit query + +## Usage + +```typescript +db.query.platformGetSitePreviewCommit({ targetName: '', targetSiteId: '' }).execute() +``` + +## Examples + +### Run platformGetSitePreviewCommit + +```typescript +const result = await db.query.platformGetSitePreviewCommit({ targetName: '', targetSiteId: '' }).execute(); +``` diff --git a/.agents/skills/orm-api/references/platform-get-site-previews-record.md b/.agents/skills/orm-api/references/platform-get-site-previews-record.md new file mode 100644 index 0000000000..8335467d56 --- /dev/null +++ b/.agents/skills/orm-api/references/platform-get-site-previews-record.md @@ -0,0 +1,34 @@ +# platformGetSitePreviewsRecord + + + +ORM operations for PlatformGetSitePreviewsRecord records + +## Usage + +```typescript +db.platformGetSitePreviewsRecord.findMany({ select: { id: true } }).execute() +db.platformGetSitePreviewsRecord.findOne({ id: '', select: { id: true } }).execute() +db.platformGetSitePreviewsRecord.create({ data: { commitId: '', name: '' }, select: { id: true } }).execute() +db.platformGetSitePreviewsRecord.update({ where: { id: '' }, data: { commitId: '' }, select: { id: true } }).execute() +db.platformGetSitePreviewsRecord.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all platformGetSitePreviewsRecord records + +```typescript +const items = await db.platformGetSitePreviewsRecord.findMany({ + select: { id: true, commitId: true } +}).execute(); +``` + +### Create a platformGetSitePreviewsRecord + +```typescript +const item = await db.platformGetSitePreviewsRecord.create({ + data: { commitId: '', name: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-api/references/platform-get-site-release-manifest.md b/.agents/skills/orm-api/references/platform-get-site-release-manifest.md new file mode 100644 index 0000000000..1b758eef7b --- /dev/null +++ b/.agents/skills/orm-api/references/platform-get-site-release-manifest.md @@ -0,0 +1,19 @@ +# platformGetSiteReleaseManifest + + + +Execute the platformGetSiteReleaseManifest query + +## Usage + +```typescript +db.query.platformGetSiteReleaseManifest({ targetCommitId: '', targetSiteId: '' }).execute() +``` + +## Examples + +### Run platformGetSiteReleaseManifest + +```typescript +const result = await db.query.platformGetSiteReleaseManifest({ targetCommitId: '', targetSiteId: '' }).execute(); +``` diff --git a/.agents/skills/orm-api/references/platform-managed-domain.md b/.agents/skills/orm-api/references/platform-managed-domain.md index b18ead5b7f..0ed864c9c5 100644 --- a/.agents/skills/orm-api/references/platform-managed-domain.md +++ b/.agents/skills/orm-api/references/platform-managed-domain.md @@ -9,7 +9,7 @@ Platform-operated hostnames whose DNS and certificate lifecycle the platform dri ```typescript db.platformManagedDomain.findMany({ select: { id: true } }).execute() db.platformManagedDomain.findOne({ id: '', select: { id: true } }).execute() -db.platformManagedDomain.create({ data: { allowPublicUsage: '', annotations: '', certStatus: '', domain: '', isWildcard: '', tlsReadyAt: '', tlsStatus: '', verificationStatus: '', verifiedAt: '' }, select: { id: true } }).execute() +db.platformManagedDomain.create({ data: { allowPublicUsage: '', annotations: '', certStatus: '', createdByPrincipal: '', domain: '', isWildcard: '', tlsReadyAt: '', tlsStatus: '', updatedByPrincipal: '', verificationStatus: '', verifiedAt: '' }, select: { id: true } }).execute() db.platformManagedDomain.update({ where: { id: '' }, data: { allowPublicUsage: '' }, select: { id: true } }).execute() db.platformManagedDomain.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.platformManagedDomain.findMany({ ```typescript const item = await db.platformManagedDomain.create({ - data: { allowPublicUsage: '', annotations: '', certStatus: '', domain: '', isWildcard: '', tlsReadyAt: '', tlsStatus: '', verificationStatus: '', verifiedAt: '' }, + data: { allowPublicUsage: '', annotations: '', certStatus: '', createdByPrincipal: '', domain: '', isWildcard: '', tlsReadyAt: '', tlsStatus: '', updatedByPrincipal: '', verificationStatus: '', verifiedAt: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-api/references/platform-mint-site-preview-token.md b/.agents/skills/orm-api/references/platform-mint-site-preview-token.md new file mode 100644 index 0000000000..92a1822b23 --- /dev/null +++ b/.agents/skills/orm-api/references/platform-mint-site-preview-token.md @@ -0,0 +1,19 @@ +# platformMintSitePreviewToken + + + +Execute the platformMintSitePreviewToken mutation + +## Usage + +```typescript +db.mutation.platformMintSitePreviewToken({ input: { siteId: '', target: '', targetKind: '', ttlSeconds: '' } }).execute() +``` + +## Examples + +### Run platformMintSitePreviewToken + +```typescript +const result = await db.mutation.platformMintSitePreviewToken({ input: { siteId: '', target: '', targetKind: '', ttlSeconds: '' } }).execute(); +``` diff --git a/.agents/skills/orm-api/references/platform-page-published.md b/.agents/skills/orm-api/references/platform-page-published.md new file mode 100644 index 0000000000..314380fec3 --- /dev/null +++ b/.agents/skills/orm-api/references/platform-page-published.md @@ -0,0 +1,19 @@ +# platformPagePublished + + + +Execute the platformPagePublished query + +## Usage + +```typescript +db.query.platformPagePublished({ pageSlug: '', targetSiteId: '' }).execute() +``` + +## Examples + +### Run platformPagePublished + +```typescript +const result = await db.query.platformPagePublished({ pageSlug: '', targetSiteId: '' }).execute(); +``` diff --git a/.agents/skills/orm-api/references/platform-page.md b/.agents/skills/orm-api/references/platform-page.md index f5061a1360..80b84915cb 100644 --- a/.agents/skills/orm-api/references/platform-page.md +++ b/.agents/skills/orm-api/references/platform-page.md @@ -9,7 +9,7 @@ Site-owned page content — merkle-versioned head over the infra store; never a ```typescript db.platformPage.findMany({ select: { id: true } }).execute() db.platformPage.findOne({ id: '', select: { id: true } }).execute() -db.platformPage.create({ data: { commitId: '', content: '', siteId: '', slug: '', storeId: '' }, select: { id: true } }).execute() +db.platformPage.create({ data: { commitId: '', content: '', seededFrom: '', siteId: '', slug: '', storeId: '' }, select: { id: true } }).execute() db.platformPage.update({ where: { id: '' }, data: { commitId: '' }, select: { id: true } }).execute() db.platformPage.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.platformPage.findMany({ ```typescript const item = await db.platformPage.create({ - data: { commitId: '', content: '', siteId: '', slug: '', storeId: '' }, + data: { commitId: '', content: '', seededFrom: '', siteId: '', slug: '', storeId: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-api/references/platform-pages-install-pages.md b/.agents/skills/orm-api/references/platform-pages-install-pages.md new file mode 100644 index 0000000000..4e03d77f53 --- /dev/null +++ b/.agents/skills/orm-api/references/platform-pages-install-pages.md @@ -0,0 +1,19 @@ +# platformPagesInstallPages + + + +Execute the platformPagesInstallPages mutation + +## Usage + +```typescript +db.mutation.platformPagesInstallPages({ input: { entityId: '', pagesPreset: '', siteId: '' } }).execute() +``` + +## Examples + +### Run platformPagesInstallPages + +```typescript +const result = await db.mutation.platformPagesInstallPages({ input: { entityId: '', pagesPreset: '', siteId: '' } }).execute(); +``` diff --git a/.agents/skills/orm-api/references/platform-provision-site-preview.md b/.agents/skills/orm-api/references/platform-provision-site-preview.md new file mode 100644 index 0000000000..5c09b4e5d0 --- /dev/null +++ b/.agents/skills/orm-api/references/platform-provision-site-preview.md @@ -0,0 +1,19 @@ +# platformProvisionSitePreview + + + +Execute the platformProvisionSitePreview mutation + +## Usage + +```typescript +db.mutation.platformProvisionSitePreview({ input: { apex: '', commitId: '', name: '', siteId: '' } }).execute() +``` + +## Examples + +### Run platformProvisionSitePreview + +```typescript +const result = await db.mutation.platformProvisionSitePreview({ input: { apex: '', commitId: '', name: '', siteId: '' } }).execute(); +``` diff --git a/.agents/skills/orm-api/references/platform-set-site-preview.md b/.agents/skills/orm-api/references/platform-set-site-preview.md new file mode 100644 index 0000000000..e7e4e1552e --- /dev/null +++ b/.agents/skills/orm-api/references/platform-set-site-preview.md @@ -0,0 +1,19 @@ +# platformSetSitePreview + + + +Execute the platformSetSitePreview mutation + +## Usage + +```typescript +db.mutation.platformSetSitePreview({ input: { targetCommitId: '', targetName: '', targetSiteId: '' } }).execute() +``` + +## Examples + +### Run platformSetSitePreview + +```typescript +const result = await db.mutation.platformSetSitePreview({ input: { targetCommitId: '', targetName: '', targetSiteId: '' } }).execute(); +``` diff --git a/.agents/skills/orm-api/references/platform-site-app-link.md b/.agents/skills/orm-api/references/platform-site-app-link.md index f84bbf1951..ef7d7f8255 100644 --- a/.agents/skills/orm-api/references/platform-site-app-link.md +++ b/.agents/skills/orm-api/references/platform-site-app-link.md @@ -2,15 +2,15 @@ -Native-app deep-link association metadata for a site surface (feeds AASA / assetlinks.json generation) +Per-host native-app association for a site surface: which app-owned store identity this host serves, and the path patterns it claims (joined with the store identity to render AASA / assetlinks.json) ## Usage ```typescript db.platformSiteAppLink.findMany({ select: { id: true } }).execute() db.platformSiteAppLink.findOne({ id: '', select: { id: true } }).execute() -db.platformSiteAppLink.create({ data: { appIdentifier: '', pathComponents: '', platform: '', sha256CertFingerprints: '', siteId: '', storeUrl: '', teamId: '', webcredentials: '' }, select: { id: true } }).execute() -db.platformSiteAppLink.update({ where: { id: '' }, data: { appIdentifier: '' }, select: { id: true } }).execute() +db.platformSiteAppLink.create({ data: { appStoreIdentityId: '', pathComponents: '', siteId: '', webcredentials: '' }, select: { id: true } }).execute() +db.platformSiteAppLink.update({ where: { id: '' }, data: { appStoreIdentityId: '' }, select: { id: true } }).execute() db.platformSiteAppLink.delete({ where: { id: '' } }).execute() ``` @@ -20,7 +20,7 @@ db.platformSiteAppLink.delete({ where: { id: '' } }).execute() ```typescript const items = await db.platformSiteAppLink.findMany({ - select: { id: true, appIdentifier: true } + select: { id: true, appStoreIdentityId: true } }).execute(); ``` @@ -28,7 +28,7 @@ const items = await db.platformSiteAppLink.findMany({ ```typescript const item = await db.platformSiteAppLink.create({ - data: { appIdentifier: '', pathComponents: '', platform: '', sha256CertFingerprints: '', siteId: '', storeUrl: '', teamId: '', webcredentials: '' }, + data: { appStoreIdentityId: '', pathComponents: '', siteId: '', webcredentials: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-api/references/platform-site-deep-link.md b/.agents/skills/orm-api/references/platform-site-deep-link.md index 6eb904a3e5..89c6c66cc1 100644 --- a/.agents/skills/orm-api/references/platform-site-deep-link.md +++ b/.agents/skills/orm-api/references/platform-site-deep-link.md @@ -9,7 +9,7 @@ Named, retargetable deep links owned by a site surface (served at the deep-link ```typescript db.platformSiteDeepLink.findMany({ select: { id: true } }).execute() db.platformSiteDeepLink.findOne({ id: '', select: { id: true } }).execute() -db.platformSiteDeepLink.create({ data: { appPath: '', fallbackUrl: '', metadata: '', siteId: '', slug: '', webPath: '' }, select: { id: true } }).execute() +db.platformSiteDeepLink.create({ data: { appPath: '', fallbackUrl: '', metadata: '', pageId: '', siteId: '', slug: '', webPath: '' }, select: { id: true } }).execute() db.platformSiteDeepLink.update({ where: { id: '' }, data: { appPath: '' }, select: { id: true } }).execute() db.platformSiteDeepLink.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.platformSiteDeepLink.findMany({ ```typescript const item = await db.platformSiteDeepLink.create({ - data: { appPath: '', fallbackUrl: '', metadata: '', siteId: '', slug: '', webPath: '' }, + data: { appPath: '', fallbackUrl: '', metadata: '', pageId: '', siteId: '', slug: '', webPath: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-api/references/platform-site-metadata-install-robots.md b/.agents/skills/orm-api/references/platform-site-metadata-install-robots.md new file mode 100644 index 0000000000..9584c0d582 --- /dev/null +++ b/.agents/skills/orm-api/references/platform-site-metadata-install-robots.md @@ -0,0 +1,19 @@ +# platformSiteMetadataInstallRobots + + + +Execute the platformSiteMetadataInstallRobots mutation + +## Usage + +```typescript +db.mutation.platformSiteMetadataInstallRobots({ input: { entityId: '', robotsPreset: '', siteId: '' } }).execute() +``` + +## Examples + +### Run platformSiteMetadataInstallRobots + +```typescript +const result = await db.mutation.platformSiteMetadataInstallRobots({ input: { entityId: '', robotsPreset: '', siteId: '' } }).execute(); +``` diff --git a/.agents/skills/orm-api/references/platform-site-metadatum.md b/.agents/skills/orm-api/references/platform-site-metadatum.md index 7467ebb3fe..bc51cb5a38 100644 --- a/.agents/skills/orm-api/references/platform-site-metadatum.md +++ b/.agents/skills/orm-api/references/platform-site-metadatum.md @@ -9,7 +9,7 @@ SEO and social sharing metadata for a site surface ```typescript db.platformSiteMetadatum.findMany({ select: { id: true } }).execute() db.platformSiteMetadatum.findOne({ id: '', select: { id: true } }).execute() -db.platformSiteMetadatum.create({ data: { appleTouchIcon: '', canonicalUrl: '', commitId: '', description: '', favicon: '', logo: '', ogImage: '', robots: '', siteId: '', storeId: '', title: '' }, select: { id: true } }).execute() +db.platformSiteMetadatum.create({ data: { appleTouchIcon: '', canonicalUrl: '', commitId: '', description: '', favicon: '', logo: '', ogImage: '', robots: '', robotsSeededFrom: '', siteId: '', storeId: '', title: '' }, select: { id: true } }).execute() db.platformSiteMetadatum.update({ where: { id: '' }, data: { appleTouchIcon: '' }, select: { id: true } }).execute() db.platformSiteMetadatum.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.platformSiteMetadatum.findMany({ ```typescript const item = await db.platformSiteMetadatum.create({ - data: { appleTouchIcon: '', canonicalUrl: '', commitId: '', description: '', favicon: '', logo: '', ogImage: '', robots: '', siteId: '', storeId: '', title: '' }, + data: { appleTouchIcon: '', canonicalUrl: '', commitId: '', description: '', favicon: '', logo: '', ogImage: '', robots: '', robotsSeededFrom: '', siteId: '', storeId: '', title: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-api/references/platform-site-release.md b/.agents/skills/orm-api/references/platform-site-release.md new file mode 100644 index 0000000000..8ef7f27bef --- /dev/null +++ b/.agents/skills/orm-api/references/platform-site-release.md @@ -0,0 +1,34 @@ +# platformSiteRelease + + + +Immutable static-site release manifest head, versioned in the site-owned merkle store + +## Usage + +```typescript +db.platformSiteRelease.findMany({ select: { id: true } }).execute() +db.platformSiteRelease.findOne({ id: '', select: { id: true } }).execute() +db.platformSiteRelease.create({ data: { commitId: '', manifest: '', siteId: '', storeId: '' }, select: { id: true } }).execute() +db.platformSiteRelease.update({ where: { id: '' }, data: { commitId: '' }, select: { id: true } }).execute() +db.platformSiteRelease.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all platformSiteRelease records + +```typescript +const items = await db.platformSiteRelease.findMany({ + select: { id: true, commitId: true } +}).execute(); +``` + +### Create a platformSiteRelease + +```typescript +const item = await db.platformSiteRelease.create({ + data: { commitId: '', manifest: '', siteId: '', storeId: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-api/references/platform-site.md b/.agents/skills/orm-api/references/platform-site.md index d36173b50d..fa71d22440 100644 --- a/.agents/skills/orm-api/references/platform-site.md +++ b/.agents/skills/orm-api/references/platform-site.md @@ -9,7 +9,7 @@ Site surfaces exposed by this scope; publication makes a surface bindable from o ```typescript db.platformSite.findMany({ select: { id: true } }).execute() db.platformSite.findOne({ id: '', select: { id: true } }).execute() -db.platformSite.create({ data: { activeCommitId: '', bucketId: '', description: '', installationId: '', installationMemberSlug: '', isPublished: '', name: '', resourceId: '', title: '' }, select: { id: true } }).execute() +db.platformSite.create({ data: { activeCommitId: '', bucketId: '', createdByPrincipal: '', description: '', installationId: '', installationMemberSlug: '', isPublished: '', name: '', resourceId: '', title: '', updatedByPrincipal: '' }, select: { id: true } }).execute() db.platformSite.update({ where: { id: '' }, data: { activeCommitId: '' }, select: { id: true } }).execute() db.platformSite.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.platformSite.findMany({ ```typescript const item = await db.platformSite.create({ - data: { activeCommitId: '', bucketId: '', description: '', installationId: '', installationMemberSlug: '', isPublished: '', name: '', resourceId: '', title: '' }, + data: { activeCommitId: '', bucketId: '', createdByPrincipal: '', description: '', installationId: '', installationMemberSlug: '', isPublished: '', name: '', resourceId: '', title: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-api/references/platform-sites-deep-link-url.md b/.agents/skills/orm-api/references/platform-sites-deep-link-url.md new file mode 100644 index 0000000000..b54a945d51 --- /dev/null +++ b/.agents/skills/orm-api/references/platform-sites-deep-link-url.md @@ -0,0 +1,19 @@ +# platformSitesDeepLinkUrl + + + +Execute the platformSitesDeepLinkUrl query + +## Usage + +```typescript +db.query.platformSitesDeepLinkUrl({ linkSlug: '', targetSiteId: '' }).execute() +``` + +## Examples + +### Run platformSitesDeepLinkUrl + +```typescript +const result = await db.query.platformSitesDeepLinkUrl({ linkSlug: '', targetSiteId: '' }).execute(); +``` diff --git a/.agents/skills/orm-api/references/platform-sites-install-content-preset.md b/.agents/skills/orm-api/references/platform-sites-install-content-preset.md new file mode 100644 index 0000000000..cd9d13030e --- /dev/null +++ b/.agents/skills/orm-api/references/platform-sites-install-content-preset.md @@ -0,0 +1,19 @@ +# platformSitesInstallContentPreset + + + +Execute the platformSitesInstallContentPreset mutation + +## Usage + +```typescript +db.mutation.platformSitesInstallContentPreset({ input: { entityId: '', presetKind: '', presetSlug: '', siteId: '' } }).execute() +``` + +## Examples + +### Run platformSitesInstallContentPreset + +```typescript +const result = await db.mutation.platformSitesInstallContentPreset({ input: { entityId: '', presetKind: '', presetSlug: '', siteId: '' } }).execute(); +``` diff --git a/.agents/skills/orm-api/references/platform-sites-install-mantra.md b/.agents/skills/orm-api/references/platform-sites-install-mantra.md new file mode 100644 index 0000000000..be1ad437d9 --- /dev/null +++ b/.agents/skills/orm-api/references/platform-sites-install-mantra.md @@ -0,0 +1,19 @@ +# platformSitesInstallMantra + + + +Execute the platformSitesInstallMantra mutation + +## Usage + +```typescript +db.mutation.platformSitesInstallMantra({ input: { entityId: '', routePreset: '', siteId: '' } }).execute() +``` + +## Examples + +### Run platformSitesInstallMantra + +```typescript +const result = await db.mutation.platformSitesInstallMantra({ input: { entityId: '', routePreset: '', siteId: '' } }).execute(); +``` diff --git a/.agents/skills/orm-api/references/platform-sites-site-origin.md b/.agents/skills/orm-api/references/platform-sites-site-origin.md new file mode 100644 index 0000000000..898952abf8 --- /dev/null +++ b/.agents/skills/orm-api/references/platform-sites-site-origin.md @@ -0,0 +1,19 @@ +# platformSitesSiteOrigin + + + +Execute the platformSitesSiteOrigin query + +## Usage + +```typescript +db.query.platformSitesSiteOrigin({ targetSiteId: '' }).execute() +``` + +## Examples + +### Run platformSitesSiteOrigin + +```typescript +const result = await db.query.platformSitesSiteOrigin({ targetSiteId: '' }).execute(); +``` diff --git a/.agents/skills/orm-api/references/platform-verify-site-preview-token.md b/.agents/skills/orm-api/references/platform-verify-site-preview-token.md new file mode 100644 index 0000000000..0e264fb784 --- /dev/null +++ b/.agents/skills/orm-api/references/platform-verify-site-preview-token.md @@ -0,0 +1,19 @@ +# platformVerifySitePreviewToken + + + +Execute the platformVerifySitePreviewToken query + +## Usage + +```typescript +db.query.platformVerifySitePreviewToken({ siteId: '', token: '' }).execute() +``` + +## Examples + +### Run platformVerifySitePreviewToken + +```typescript +const result = await db.query.platformVerifySitePreviewToken({ siteId: '', token: '' }).execute(); +``` diff --git a/.agents/skills/orm-api/references/policy.md b/.agents/skills/orm-api/references/policy.md index 475bd634a4..1c90eadb10 100644 --- a/.agents/skills/orm-api/references/policy.md +++ b/.agents/skills/orm-api/references/policy.md @@ -9,7 +9,7 @@ ORM operations for Policy records ```typescript db.policy.findMany({ select: { id: true } }).execute() db.policy.findOne({ id: '', select: { id: true } }).execute() -db.policy.create({ data: { category: '', data: '', databaseId: '', derivedFromPolicyId: '', derivedFromTableId: '', disabled: '', granteeName: '', name: '', permissive: '', policyType: '', privilege: '', smartTags: '', tableId: '', tags: '', withCheck: '' }, select: { id: true } }).execute() +db.policy.create({ data: { category: '', columnRefs: '', data: '', databaseId: '', derivedFromPolicyId: '', derivedFromTableId: '', disabled: '', granteeName: '', name: '', permissive: '', policyType: '', privilege: '', smartTags: '', tableId: '', tags: '', withCheck: '' }, select: { id: true } }).execute() db.policy.update({ where: { id: '' }, data: { category: '' }, select: { id: true } }).execute() db.policy.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.policy.findMany({ ```typescript const item = await db.policy.create({ - data: { category: '', data: '', databaseId: '', derivedFromPolicyId: '', derivedFromTableId: '', disabled: '', granteeName: '', name: '', permissive: '', policyType: '', privilege: '', smartTags: '', tableId: '', tags: '', withCheck: '' }, + data: { category: '', columnRefs: '', data: '', databaseId: '', derivedFromPolicyId: '', derivedFromTableId: '', disabled: '', granteeName: '', name: '', permissive: '', policyType: '', privilege: '', smartTags: '', tableId: '', tags: '', withCheck: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-api/references/provision-bucket.md b/.agents/skills/orm-api/references/provision-bucket.md index a9133530f2..eaefc02f2f 100644 --- a/.agents/skills/orm-api/references/provision-bucket.md +++ b/.agents/skills/orm-api/references/provision-bucket.md @@ -2,10 +2,11 @@ -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. +Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. ## Usage diff --git a/.agents/skills/orm-api/references/provision-site-preview.md b/.agents/skills/orm-api/references/provision-site-preview.md new file mode 100644 index 0000000000..c2b7aab962 --- /dev/null +++ b/.agents/skills/orm-api/references/provision-site-preview.md @@ -0,0 +1,19 @@ +# provisionSitePreview + + + +Execute the provisionSitePreview mutation + +## Usage + +```typescript +db.mutation.provisionSitePreview({ input: { apex: '', commitId: '', name: '', siteId: '' } }).execute() +``` + +## Examples + +### Run provisionSitePreview + +```typescript +const result = await db.mutation.provisionSitePreview({ input: { apex: '', commitId: '', name: '', siteId: '' } }).execute(); +``` diff --git a/.agents/skills/orm-api/references/redirect.md b/.agents/skills/orm-api/references/redirect.md new file mode 100644 index 0000000000..55d69cfddf --- /dev/null +++ b/.agents/skills/orm-api/references/redirect.md @@ -0,0 +1,34 @@ +# redirect + + + +Redirect targets a route can point at; the edge answers with a redirect status instead of a backend + +## Usage + +```typescript +db.redirect.findMany({ select: { id: true } }).execute() +db.redirect.findOne({ id: '', select: { id: true } }).execute() +db.redirect.create({ data: { databaseId: '', name: '', preservePath: '', preserveQuery: '', statusCode: '', toHost: '', toPath: '' }, select: { id: true } }).execute() +db.redirect.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.redirect.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all redirect records + +```typescript +const items = await db.redirect.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a redirect + +```typescript +const item = await db.redirect.create({ + data: { databaseId: '', name: '', preservePath: '', preserveQuery: '', statusCode: '', toHost: '', toPath: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-api/references/request-database.md b/.agents/skills/orm-api/references/request-database.md index 78a6ec95ab..32beb32655 100644 --- a/.agents/skills/orm-api/references/request-database.md +++ b/.agents/skills/orm-api/references/request-database.md @@ -4,11 +4,12 @@ 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. +Pass exactly one of preset_slug or modules. Pass organization_id to have the organization own the database from the start (the caller must be an owner of that organization); the requesting user is still the identity bootstrapped into the new database. Omit it for a personal database. 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); + SELECT * FROM metaschema_public.request_database('team_app', 'example.com', preset_slug := 'full', organization_id := '00000000-0000-0000-0000-000000000000'::uuid); ## Usage diff --git a/.agents/skills/orm-api/references/route-binding.md b/.agents/skills/orm-api/references/route-binding.md index c429f21042..b876fb8e1e 100644 --- a/.agents/skills/orm-api/references/route-binding.md +++ b/.agents/skills/orm-api/references/route-binding.md @@ -9,7 +9,7 @@ Compiled route precedence index maintained by route sync triggers; carries typed ```typescript db.routeBinding.findMany({ select: { id: true } }).execute() db.routeBinding.findOne({ id: '', select: { id: true } }).execute() -db.routeBinding.create({ data: { domainId: '', isActive: '', method: '', path: '', priority: '', targetApiId: '', targetBucketId: '', targetFunctionId: '', targetServiceId: '', targetSiteId: '' }, select: { id: true } }).execute() +db.routeBinding.create({ data: { domainId: '', isActive: '', method: '', path: '', priority: '', servingSiteId: '', targetApiId: '', targetBucketId: '', targetFunctionId: '', targetRedirectId: '', targetServiceId: '', targetSiteId: '' }, select: { id: true } }).execute() db.routeBinding.update({ where: { id: '' }, data: { domainId: '' }, select: { id: true } }).execute() db.routeBinding.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.routeBinding.findMany({ ```typescript const item = await db.routeBinding.create({ - data: { domainId: '', isActive: '', method: '', path: '', priority: '', targetApiId: '', targetBucketId: '', targetFunctionId: '', targetServiceId: '', targetSiteId: '' }, + data: { domainId: '', isActive: '', method: '', path: '', priority: '', servingSiteId: '', targetApiId: '', targetBucketId: '', targetFunctionId: '', targetRedirectId: '', targetServiceId: '', targetSiteId: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-api/references/route.md b/.agents/skills/orm-api/references/route.md index 5376c373c0..1c01a84460 100644 --- a/.agents/skills/orm-api/references/route.md +++ b/.agents/skills/orm-api/references/route.md @@ -9,8 +9,8 @@ Routes binding a domain hostname and path to a typed catalog target ```typescript db.route.findMany({ select: { id: true } }).execute() db.route.findOne({ id: '', select: { id: true } }).execute() -db.route.create({ data: { config: '', databaseId: '', domainId: '', isActive: '', method: '', path: '', priority: '', targetApiId: '', targetBucketId: '', targetFunctionId: '', targetServiceId: '', targetSiteId: '' }, select: { id: true } }).execute() -db.route.update({ where: { id: '' }, data: { config: '' }, select: { id: true } }).execute() +db.route.create({ data: { anonymous: '', config: '', databaseId: '', domainId: '', isActive: '', method: '', path: '', previewRef: '', priority: '', servingSiteId: '', targetApiId: '', targetBucketId: '', targetFunctionId: '', targetRedirectId: '', targetServiceId: '', targetSiteId: '' }, select: { id: true } }).execute() +db.route.update({ where: { id: '' }, data: { anonymous: '' }, select: { id: true } }).execute() db.route.delete({ where: { id: '' } }).execute() ``` @@ -20,7 +20,7 @@ db.route.delete({ where: { id: '' } }).execute() ```typescript const items = await db.route.findMany({ - select: { id: true, config: true } + select: { id: true, anonymous: true } }).execute(); ``` @@ -28,7 +28,7 @@ const items = await db.route.findMany({ ```typescript const item = await db.route.create({ - data: { config: '', databaseId: '', domainId: '', isActive: '', method: '', path: '', priority: '', targetApiId: '', targetBucketId: '', targetFunctionId: '', targetServiceId: '', targetSiteId: '' }, + data: { anonymous: '', config: '', databaseId: '', domainId: '', isActive: '', method: '', path: '', previewRef: '', priority: '', servingSiteId: '', targetApiId: '', targetBucketId: '', targetFunctionId: '', targetRedirectId: '', targetServiceId: '', targetSiteId: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-api/references/set-site-preview.md b/.agents/skills/orm-api/references/set-site-preview.md new file mode 100644 index 0000000000..2341deda6a --- /dev/null +++ b/.agents/skills/orm-api/references/set-site-preview.md @@ -0,0 +1,19 @@ +# setSitePreview + + + +Execute the setSitePreview mutation + +## Usage + +```typescript +db.mutation.setSitePreview({ input: { targetCommitId: '', targetName: '', targetSiteId: '' } }).execute() +``` + +## Examples + +### Run setSitePreview + +```typescript +const result = await db.mutation.setSitePreview({ input: { targetCommitId: '', targetName: '', targetSiteId: '' } }).execute(); +``` diff --git a/.agents/skills/orm-api/references/site-app-link.md b/.agents/skills/orm-api/references/site-app-link.md index 1d66d38f78..cc7fb86946 100644 --- a/.agents/skills/orm-api/references/site-app-link.md +++ b/.agents/skills/orm-api/references/site-app-link.md @@ -2,15 +2,15 @@ -Native-app deep-link association metadata for a site surface (feeds AASA / assetlinks.json generation) +Per-host native-app association for a site surface: which app-owned store identity this host serves, and the path patterns it claims (joined with the store identity to render AASA / assetlinks.json) ## Usage ```typescript db.siteAppLink.findMany({ select: { id: true } }).execute() db.siteAppLink.findOne({ id: '', select: { id: true } }).execute() -db.siteAppLink.create({ data: { appIdentifier: '', databaseId: '', pathComponents: '', platform: '', sha256CertFingerprints: '', siteId: '', storeUrl: '', teamId: '', webcredentials: '' }, select: { id: true } }).execute() -db.siteAppLink.update({ where: { id: '' }, data: { appIdentifier: '' }, select: { id: true } }).execute() +db.siteAppLink.create({ data: { appStoreIdentityId: '', databaseId: '', pathComponents: '', siteId: '', webcredentials: '' }, select: { id: true } }).execute() +db.siteAppLink.update({ where: { id: '' }, data: { appStoreIdentityId: '' }, select: { id: true } }).execute() db.siteAppLink.delete({ where: { id: '' } }).execute() ``` @@ -20,7 +20,7 @@ db.siteAppLink.delete({ where: { id: '' } }).execute() ```typescript const items = await db.siteAppLink.findMany({ - select: { id: true, appIdentifier: true } + select: { id: true, appStoreIdentityId: true } }).execute(); ``` @@ -28,7 +28,7 @@ const items = await db.siteAppLink.findMany({ ```typescript const item = await db.siteAppLink.create({ - data: { appIdentifier: '', databaseId: '', pathComponents: '', platform: '', sha256CertFingerprints: '', siteId: '', storeUrl: '', teamId: '', webcredentials: '' }, + data: { appStoreIdentityId: '', databaseId: '', pathComponents: '', siteId: '', webcredentials: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-api/references/site-deep-link.md b/.agents/skills/orm-api/references/site-deep-link.md index 4e75598e51..fb2163fe6b 100644 --- a/.agents/skills/orm-api/references/site-deep-link.md +++ b/.agents/skills/orm-api/references/site-deep-link.md @@ -9,7 +9,7 @@ Named, retargetable deep links owned by a site surface (served at the deep-link ```typescript db.siteDeepLink.findMany({ select: { id: true } }).execute() db.siteDeepLink.findOne({ id: '', select: { id: true } }).execute() -db.siteDeepLink.create({ data: { appPath: '', databaseId: '', fallbackUrl: '', metadata: '', siteId: '', slug: '', webPath: '' }, select: { id: true } }).execute() +db.siteDeepLink.create({ data: { appPath: '', databaseId: '', fallbackUrl: '', metadata: '', pageId: '', siteId: '', slug: '', webPath: '' }, select: { id: true } }).execute() db.siteDeepLink.update({ where: { id: '' }, data: { appPath: '' }, select: { id: true } }).execute() db.siteDeepLink.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.siteDeepLink.findMany({ ```typescript const item = await db.siteDeepLink.create({ - data: { appPath: '', databaseId: '', fallbackUrl: '', metadata: '', siteId: '', slug: '', webPath: '' }, + data: { appPath: '', databaseId: '', fallbackUrl: '', metadata: '', pageId: '', siteId: '', slug: '', webPath: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-api/references/site-metadata-install-robots.md b/.agents/skills/orm-api/references/site-metadata-install-robots.md new file mode 100644 index 0000000000..0990bf05b6 --- /dev/null +++ b/.agents/skills/orm-api/references/site-metadata-install-robots.md @@ -0,0 +1,19 @@ +# siteMetadataInstallRobots + + + +Execute the siteMetadataInstallRobots mutation + +## Usage + +```typescript +db.mutation.siteMetadataInstallRobots({ input: { entityId: '', robotsPreset: '', siteId: '' } }).execute() +``` + +## Examples + +### Run siteMetadataInstallRobots + +```typescript +const result = await db.mutation.siteMetadataInstallRobots({ input: { entityId: '', robotsPreset: '', siteId: '' } }).execute(); +``` diff --git a/.agents/skills/orm-api/references/site-metadatum.md b/.agents/skills/orm-api/references/site-metadatum.md index 131e456fbf..ab274450fa 100644 --- a/.agents/skills/orm-api/references/site-metadatum.md +++ b/.agents/skills/orm-api/references/site-metadatum.md @@ -9,7 +9,7 @@ SEO and social sharing metadata for a site surface ```typescript db.siteMetadatum.findMany({ select: { id: true } }).execute() db.siteMetadatum.findOne({ id: '', select: { id: true } }).execute() -db.siteMetadatum.create({ data: { appleTouchIcon: '', canonicalUrl: '', commitId: '', databaseId: '', description: '', favicon: '', logo: '', ogImage: '', robots: '', siteId: '', storeId: '', title: '' }, select: { id: true } }).execute() +db.siteMetadatum.create({ data: { appleTouchIcon: '', canonicalUrl: '', commitId: '', databaseId: '', description: '', favicon: '', logo: '', ogImage: '', robots: '', robotsSeededFrom: '', siteId: '', storeId: '', title: '' }, select: { id: true } }).execute() db.siteMetadatum.update({ where: { id: '' }, data: { appleTouchIcon: '' }, select: { id: true } }).execute() db.siteMetadatum.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.siteMetadatum.findMany({ ```typescript const item = await db.siteMetadatum.create({ - data: { appleTouchIcon: '', canonicalUrl: '', commitId: '', databaseId: '', description: '', favicon: '', logo: '', ogImage: '', robots: '', siteId: '', storeId: '', title: '' }, + data: { appleTouchIcon: '', canonicalUrl: '', commitId: '', databaseId: '', description: '', favicon: '', logo: '', ogImage: '', robots: '', robotsSeededFrom: '', siteId: '', storeId: '', title: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-api/references/site-release.md b/.agents/skills/orm-api/references/site-release.md new file mode 100644 index 0000000000..c336a152d1 --- /dev/null +++ b/.agents/skills/orm-api/references/site-release.md @@ -0,0 +1,34 @@ +# siteRelease + + + +Immutable static-site release manifest head, versioned in the site-owned merkle store + +## Usage + +```typescript +db.siteRelease.findMany({ select: { id: true } }).execute() +db.siteRelease.findOne({ id: '', select: { id: true } }).execute() +db.siteRelease.create({ data: { commitId: '', databaseId: '', manifest: '', siteId: '', storeId: '' }, select: { id: true } }).execute() +db.siteRelease.update({ where: { id: '' }, data: { commitId: '' }, select: { id: true } }).execute() +db.siteRelease.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all siteRelease records + +```typescript +const items = await db.siteRelease.findMany({ + select: { id: true, commitId: true } +}).execute(); +``` + +### Create a siteRelease + +```typescript +const item = await db.siteRelease.create({ + data: { commitId: '', databaseId: '', manifest: '', siteId: '', storeId: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-api/references/site.md b/.agents/skills/orm-api/references/site.md index dff3a89d7f..97c2171dcf 100644 --- a/.agents/skills/orm-api/references/site.md +++ b/.agents/skills/orm-api/references/site.md @@ -9,7 +9,7 @@ Site surfaces exposed by this scope; publication makes a surface bindable from o ```typescript db.site.findMany({ select: { id: true } }).execute() db.site.findOne({ id: '', select: { id: true } }).execute() -db.site.create({ data: { activeCommitId: '', bucketId: '', databaseId: '', description: '', installationId: '', installationMemberSlug: '', isPublished: '', name: '', resourceId: '', title: '' }, select: { id: true } }).execute() +db.site.create({ data: { activeCommitId: '', bucketId: '', createdByPrincipal: '', databaseId: '', description: '', installationId: '', installationMemberSlug: '', isPublished: '', name: '', resourceId: '', title: '', updatedByPrincipal: '' }, select: { id: true } }).execute() db.site.update({ where: { id: '' }, data: { activeCommitId: '' }, select: { id: true } }).execute() db.site.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.site.findMany({ ```typescript const item = await db.site.create({ - data: { activeCommitId: '', bucketId: '', databaseId: '', description: '', installationId: '', installationMemberSlug: '', isPublished: '', name: '', resourceId: '', title: '' }, + data: { activeCommitId: '', bucketId: '', createdByPrincipal: '', databaseId: '', description: '', installationId: '', installationMemberSlug: '', isPublished: '', name: '', resourceId: '', title: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-api/references/sites-deep-link-url.md b/.agents/skills/orm-api/references/sites-deep-link-url.md new file mode 100644 index 0000000000..0f28274fdc --- /dev/null +++ b/.agents/skills/orm-api/references/sites-deep-link-url.md @@ -0,0 +1,19 @@ +# sitesDeepLinkUrl + + + +Execute the sitesDeepLinkUrl query + +## Usage + +```typescript +db.query.sitesDeepLinkUrl({ linkSlug: '', targetSiteId: '' }).execute() +``` + +## Examples + +### Run sitesDeepLinkUrl + +```typescript +const result = await db.query.sitesDeepLinkUrl({ linkSlug: '', targetSiteId: '' }).execute(); +``` diff --git a/.agents/skills/orm-api/references/sites-install-content-preset.md b/.agents/skills/orm-api/references/sites-install-content-preset.md new file mode 100644 index 0000000000..f4b9171cd6 --- /dev/null +++ b/.agents/skills/orm-api/references/sites-install-content-preset.md @@ -0,0 +1,19 @@ +# sitesInstallContentPreset + + + +Execute the sitesInstallContentPreset mutation + +## Usage + +```typescript +db.mutation.sitesInstallContentPreset({ input: { entityId: '', presetKind: '', presetSlug: '', siteId: '' } }).execute() +``` + +## Examples + +### Run sitesInstallContentPreset + +```typescript +const result = await db.mutation.sitesInstallContentPreset({ input: { entityId: '', presetKind: '', presetSlug: '', siteId: '' } }).execute(); +``` diff --git a/.agents/skills/orm-api/references/sites-install-mantra.md b/.agents/skills/orm-api/references/sites-install-mantra.md new file mode 100644 index 0000000000..1ffd408894 --- /dev/null +++ b/.agents/skills/orm-api/references/sites-install-mantra.md @@ -0,0 +1,19 @@ +# sitesInstallMantra + + + +Execute the sitesInstallMantra mutation + +## Usage + +```typescript +db.mutation.sitesInstallMantra({ input: { entityId: '', routePreset: '', siteId: '' } }).execute() +``` + +## Examples + +### Run sitesInstallMantra + +```typescript +const result = await db.mutation.sitesInstallMantra({ input: { entityId: '', routePreset: '', siteId: '' } }).execute(); +``` diff --git a/.agents/skills/orm-api/references/sites-site-origin.md b/.agents/skills/orm-api/references/sites-site-origin.md new file mode 100644 index 0000000000..4e2c4eada6 --- /dev/null +++ b/.agents/skills/orm-api/references/sites-site-origin.md @@ -0,0 +1,19 @@ +# sitesSiteOrigin + + + +Execute the sitesSiteOrigin query + +## Usage + +```typescript +db.query.sitesSiteOrigin({ targetSiteId: '' }).execute() +``` + +## Examples + +### Run sitesSiteOrigin + +```typescript +const result = await db.query.sitesSiteOrigin({ targetSiteId: '' }).execute(); +``` diff --git a/.agents/skills/orm-api/references/trigger.md b/.agents/skills/orm-api/references/trigger.md index 8393056a25..fcf39483fa 100644 --- a/.agents/skills/orm-api/references/trigger.md +++ b/.agents/skills/orm-api/references/trigger.md @@ -9,7 +9,7 @@ ORM operations for Trigger records ```typescript db.trigger.findMany({ select: { id: true } }).execute() db.trigger.findOne({ id: '', select: { id: true } }).execute() -db.trigger.create({ data: { category: '', databaseId: '', event: '', functionName: '', name: '', smartTags: '', tableId: '', tags: '' }, select: { id: true } }).execute() +db.trigger.create({ data: { category: '', databaseId: '', event: '', events: '', forEachRow: '', functionId: '', functionName: '', kind: '', name: '', smartTags: '', tableId: '', tags: '', timing: '', whenAst: '' }, select: { id: true } }).execute() db.trigger.update({ where: { id: '' }, data: { category: '' }, select: { id: true } }).execute() db.trigger.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.trigger.findMany({ ```typescript const item = await db.trigger.create({ - data: { category: '', databaseId: '', event: '', functionName: '', name: '', smartTags: '', tableId: '', tags: '' }, + data: { category: '', databaseId: '', event: '', events: '', forEachRow: '', functionId: '', functionName: '', kind: '', name: '', smartTags: '', tableId: '', tags: '', timing: '', whenAst: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-api/references/verify-site-preview-token.md b/.agents/skills/orm-api/references/verify-site-preview-token.md new file mode 100644 index 0000000000..74001fecf5 --- /dev/null +++ b/.agents/skills/orm-api/references/verify-site-preview-token.md @@ -0,0 +1,19 @@ +# verifySitePreviewToken + + + +Execute the verifySitePreviewToken query + +## Usage + +```typescript +db.query.verifySitePreviewToken({ siteId: '', token: '' }).execute() +``` + +## Examples + +### Run verifySitePreviewToken + +```typescript +const result = await db.query.verifySitePreviewToken({ siteId: '', token: '' }).execute(); +``` diff --git a/.agents/skills/orm-auth/SKILL.md b/.agents/skills/orm-auth/SKILL.md index 130c35a603..329e17d32d 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 37 custom operations +description: ORM client for the auth API — provides typed CRUD operations for 15 tables and 55 custom operations --- # orm-auth -ORM client for the auth API — provides typed CRUD operations for 13 tables and 37 custom operations +ORM client for the auth API — provides typed CRUD operations for 15 tables and 55 custom operations ## Usage @@ -49,25 +49,42 @@ See the `references/` directory for detailed per-entity API documentation: - [role-type](references/role-type.md) - [user-connected-account](references/user-connected-account.md) - [user](references/user.md) +- [user-setting](references/user-setting.md) +- [user-settings-security](references/user-settings-security.md) - [webauthn-credential](references/webauthn-credential.md) - [current-ip-address](references/current-ip-address.md) - [current-user](references/current-user.md) - [current-user-agent](references/current-user-agent.md) - [current-user-id](references/current-user-id.md) +- [get-mfa-status](references/get-mfa-status.md) - [require-step-up](references/require-step-up.md) +- [approve-device](references/approve-device.md) - [check-password](references/check-password.md) +- [complete-mfa-challenge](references/complete-mfa-challenge.md) - [confirm-delete-account](references/confirm-delete-account.md) +- [confirm-totp-setup](references/confirm-totp-setup.md) - [create-api-key](references/create-api-key.md) +- [create-child-principal](references/create-child-principal.md) - [create-org-api-key](references/create-org-api-key.md) - [create-org-principal](references/create-org-principal.md) +- [create-principal-from-preset](references/create-principal-from-preset.md) - [delete-org-principal](references/delete-org-principal.md) - [delete-principal](references/delete-principal.md) +- [disable-email-mfa](references/disable-email-mfa.md) +- [disable-sms-mfa](references/disable-sms-mfa.md) +- [disable-totp](references/disable-totp.md) - [disconnect-account](references/disconnect-account.md) +- [enable-email-mfa](references/enable-email-mfa.md) +- [enable-sms-mfa](references/enable-sms-mfa.md) +- [enable-totp](references/enable-totp.md) - [extend-token-expires](references/extend-token-expires.md) - [forgot-password](references/forgot-password.md) +- [generate-backup-codes](references/generate-backup-codes.md) - [link-identity](references/link-identity.md) +- [mint-access-token](references/mint-access-token.md) - [provision-bucket](references/provision-bucket.md) - [provision-new-user](references/provision-new-user.md) +- [refresh-access-token](references/refresh-access-token.md) - [request-cross-origin-token](references/request-cross-origin-token.md) - [reset-password](references/reset-password.md) - [revoke-api-key](references/revoke-api-key.md) @@ -76,6 +93,8 @@ See the `references/` directory for detailed per-entity API documentation: - [send-account-deletion-email](references/send-account-deletion-email.md) - [send-verification-email](references/send-verification-email.md) - [set-password](references/set-password.md) +- [set-principal-entities](references/set-principal-entities.md) +- [set-principal-scope](references/set-principal-scope.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) @@ -84,6 +103,7 @@ See the `references/` directory for detailed per-entity API documentation: - [sign-up](references/sign-up.md) - [sign-up-magic-link](references/sign-up-magic-link.md) - [sign-up-sms](references/sign-up-sms.md) +- [update-principal](references/update-principal.md) - [verify-email](references/verify-email.md) - [verify-password](references/verify-password.md) - [verify-totp](references/verify-totp.md) diff --git a/.agents/skills/orm-auth/references/approve-device.md b/.agents/skills/orm-auth/references/approve-device.md new file mode 100644 index 0000000000..6192ec3ae9 --- /dev/null +++ b/.agents/skills/orm-auth/references/approve-device.md @@ -0,0 +1,19 @@ +# approveDevice + + + +Execute the approveDevice mutation + +## Usage + +```typescript +db.mutation.approveDevice({ input: { approvalToken: '' } }).execute() +``` + +## Examples + +### Run approveDevice + +```typescript +const result = await db.mutation.approveDevice({ input: { approvalToken: '' } }).execute(); +``` diff --git a/.agents/skills/orm-auth/references/audit-log-auth.md b/.agents/skills/orm-auth/references/audit-log-auth.md index a57ecf1d59..e5ba240fb2 100644 --- a/.agents/skills/orm-auth/references/audit-log-auth.md +++ b/.agents/skills/orm-auth/references/audit-log-auth.md @@ -9,7 +9,7 @@ Partitioned append-only audit log of authentication events (sign-in, sign-up, pa ```typescript db.auditLogAuth.findMany({ select: { id: true } }).execute() db.auditLogAuth.findOne({ id: '', select: { id: true } }).execute() -db.auditLogAuth.create({ data: { actorId: '', event: '', ipAddress: '', origin: '', success: '', userAgent: '' }, select: { id: true } }).execute() +db.auditLogAuth.create({ data: { actorId: '', details: '', event: '', ipAddress: '', origin: '', success: '', userAgent: '' }, select: { id: true } }).execute() db.auditLogAuth.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute() db.auditLogAuth.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.auditLogAuth.findMany({ ```typescript const item = await db.auditLogAuth.create({ - data: { actorId: '', event: '', ipAddress: '', origin: '', success: '', userAgent: '' }, + data: { actorId: '', details: '', event: '', ipAddress: '', origin: '', success: '', userAgent: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-auth/references/complete-mfa-challenge.md b/.agents/skills/orm-auth/references/complete-mfa-challenge.md new file mode 100644 index 0000000000..09a5504d49 --- /dev/null +++ b/.agents/skills/orm-auth/references/complete-mfa-challenge.md @@ -0,0 +1,19 @@ +# completeMfaChallenge + + + +Execute the completeMfaChallenge mutation + +## Usage + +```typescript +db.mutation.completeMfaChallenge({ input: '' }).execute() +``` + +## Examples + +### Run completeMfaChallenge + +```typescript +const result = await db.mutation.completeMfaChallenge({ input: '' }).execute(); +``` diff --git a/.agents/skills/orm-auth/references/confirm-totp-setup.md b/.agents/skills/orm-auth/references/confirm-totp-setup.md new file mode 100644 index 0000000000..e76582b790 --- /dev/null +++ b/.agents/skills/orm-auth/references/confirm-totp-setup.md @@ -0,0 +1,19 @@ +# confirmTotpSetup + + + +Execute the confirmTotpSetup mutation + +## Usage + +```typescript +db.mutation.confirmTotpSetup({ input: { totpValue: '' } }).execute() +``` + +## Examples + +### Run confirmTotpSetup + +```typescript +const result = await db.mutation.confirmTotpSetup({ input: { totpValue: '' } }).execute(); +``` diff --git a/.agents/skills/orm-auth/references/create-child-principal.md b/.agents/skills/orm-auth/references/create-child-principal.md new file mode 100644 index 0000000000..8cbad8bd36 --- /dev/null +++ b/.agents/skills/orm-auth/references/create-child-principal.md @@ -0,0 +1,19 @@ +# createChildPrincipal + + + +Execute the createChildPrincipal mutation + +## Usage + +```typescript +db.mutation.createChildPrincipal({ input: '' }).execute() +``` + +## Examples + +### Run createChildPrincipal + +```typescript +const result = await db.mutation.createChildPrincipal({ input: '' }).execute(); +``` diff --git a/.agents/skills/orm-auth/references/create-principal-from-preset.md b/.agents/skills/orm-auth/references/create-principal-from-preset.md new file mode 100644 index 0000000000..4af7731aae --- /dev/null +++ b/.agents/skills/orm-auth/references/create-principal-from-preset.md @@ -0,0 +1,19 @@ +# createPrincipalFromPreset + + + +Execute the createPrincipalFromPreset mutation + +## Usage + +```typescript +db.mutation.createPrincipalFromPreset({ input: { entityIds: '', name: '', overrides: '', slug: '' } }).execute() +``` + +## Examples + +### Run createPrincipalFromPreset + +```typescript +const result = await db.mutation.createPrincipalFromPreset({ input: { entityIds: '', name: '', overrides: '', slug: '' } }).execute(); +``` diff --git a/.agents/skills/orm-auth/references/disable-email-mfa.md b/.agents/skills/orm-auth/references/disable-email-mfa.md new file mode 100644 index 0000000000..597cf23f4e --- /dev/null +++ b/.agents/skills/orm-auth/references/disable-email-mfa.md @@ -0,0 +1,19 @@ +# disableEmailMfa + + + +Execute the disableEmailMfa mutation + +## Usage + +```typescript +db.mutation.disableEmailMfa({ input: '' }).execute() +``` + +## Examples + +### Run disableEmailMfa + +```typescript +const result = await db.mutation.disableEmailMfa({ input: '' }).execute(); +``` diff --git a/.agents/skills/orm-auth/references/disable-sms-mfa.md b/.agents/skills/orm-auth/references/disable-sms-mfa.md new file mode 100644 index 0000000000..641327ce0b --- /dev/null +++ b/.agents/skills/orm-auth/references/disable-sms-mfa.md @@ -0,0 +1,19 @@ +# disableSmsMfa + + + +Execute the disableSmsMfa mutation + +## Usage + +```typescript +db.mutation.disableSmsMfa({ input: '' }).execute() +``` + +## Examples + +### Run disableSmsMfa + +```typescript +const result = await db.mutation.disableSmsMfa({ input: '' }).execute(); +``` diff --git a/.agents/skills/orm-auth/references/disable-totp.md b/.agents/skills/orm-auth/references/disable-totp.md new file mode 100644 index 0000000000..64ddaecf4b --- /dev/null +++ b/.agents/skills/orm-auth/references/disable-totp.md @@ -0,0 +1,19 @@ +# disableTotp + + + +Execute the disableTotp mutation + +## Usage + +```typescript +db.mutation.disableTotp({ input: { totpValue: '' } }).execute() +``` + +## Examples + +### Run disableTotp + +```typescript +const result = await db.mutation.disableTotp({ input: { totpValue: '' } }).execute(); +``` diff --git a/.agents/skills/orm-auth/references/enable-email-mfa.md b/.agents/skills/orm-auth/references/enable-email-mfa.md new file mode 100644 index 0000000000..632c5d5963 --- /dev/null +++ b/.agents/skills/orm-auth/references/enable-email-mfa.md @@ -0,0 +1,19 @@ +# enableEmailMfa + + + +Execute the enableEmailMfa mutation + +## Usage + +```typescript +db.mutation.enableEmailMfa({ input: '' }).execute() +``` + +## Examples + +### Run enableEmailMfa + +```typescript +const result = await db.mutation.enableEmailMfa({ input: '' }).execute(); +``` diff --git a/.agents/skills/orm-auth/references/enable-sms-mfa.md b/.agents/skills/orm-auth/references/enable-sms-mfa.md new file mode 100644 index 0000000000..f46c950a3b --- /dev/null +++ b/.agents/skills/orm-auth/references/enable-sms-mfa.md @@ -0,0 +1,19 @@ +# enableSmsMfa + + + +Execute the enableSmsMfa mutation + +## Usage + +```typescript +db.mutation.enableSmsMfa({ input: '' }).execute() +``` + +## Examples + +### Run enableSmsMfa + +```typescript +const result = await db.mutation.enableSmsMfa({ input: '' }).execute(); +``` diff --git a/.agents/skills/orm-auth/references/enable-totp.md b/.agents/skills/orm-auth/references/enable-totp.md new file mode 100644 index 0000000000..3c54470c6a --- /dev/null +++ b/.agents/skills/orm-auth/references/enable-totp.md @@ -0,0 +1,19 @@ +# enableTotp + + + +Execute the enableTotp mutation + +## Usage + +```typescript +db.mutation.enableTotp({ input: '' }).execute() +``` + +## Examples + +### Run enableTotp + +```typescript +const result = await db.mutation.enableTotp({ input: '' }).execute(); +``` diff --git a/.agents/skills/orm-auth/references/generate-backup-codes.md b/.agents/skills/orm-auth/references/generate-backup-codes.md new file mode 100644 index 0000000000..cc5fa69552 --- /dev/null +++ b/.agents/skills/orm-auth/references/generate-backup-codes.md @@ -0,0 +1,19 @@ +# generateBackupCodes + + + +Execute the generateBackupCodes mutation + +## Usage + +```typescript +db.mutation.generateBackupCodes({ input: '' }).execute() +``` + +## Examples + +### Run generateBackupCodes + +```typescript +const result = await db.mutation.generateBackupCodes({ input: '' }).execute(); +``` diff --git a/.agents/skills/orm-auth/references/get-mfa-status.md b/.agents/skills/orm-auth/references/get-mfa-status.md new file mode 100644 index 0000000000..5020b89110 --- /dev/null +++ b/.agents/skills/orm-auth/references/get-mfa-status.md @@ -0,0 +1,19 @@ +# getMfaStatus + + + +Execute the getMfaStatus query + +## Usage + +```typescript +db.query.getMfaStatus().execute() +``` + +## Examples + +### Run getMfaStatus + +```typescript +const result = await db.query.getMfaStatus().execute(); +``` diff --git a/.agents/skills/orm-auth/references/mint-access-token.md b/.agents/skills/orm-auth/references/mint-access-token.md new file mode 100644 index 0000000000..a3debb953a --- /dev/null +++ b/.agents/skills/orm-auth/references/mint-access-token.md @@ -0,0 +1,19 @@ +# mintAccessToken + + + +Execute the mintAccessToken mutation + +## Usage + +```typescript +db.mutation.mintAccessToken({ input: { accessTtl: '', intent: '', principalId: '' } }).execute() +``` + +## Examples + +### Run mintAccessToken + +```typescript +const result = await db.mutation.mintAccessToken({ input: { accessTtl: '', intent: '', principalId: '' } }).execute(); +``` diff --git a/.agents/skills/orm-auth/references/principal.md b/.agents/skills/orm-auth/references/principal.md index 45f7b1a6d4..3e2f2e3c4a 100644 --- a/.agents/skills/orm-auth/references/principal.md +++ b/.agents/skills/orm-auth/references/principal.md @@ -9,7 +9,7 @@ Scoped sub-identities (API keys and agents) with precomputed SPRT ```typescript db.principal.findMany({ select: { id: true } }).execute() db.principal.findOne({ principalId: '', select: { id: true } }).execute() -db.principal.create({ data: { bypassStepUp: '', id: '', isReadOnly: '', name: '', ownerId: '', useAdminOwner: '', userId: '' }, select: { id: true } }).execute() +db.principal.create({ data: { bypassStepUp: '', createdBySessionId: '', depth: '', expiresAt: '', id: '', isReadOnly: '', name: '', ownerId: '', parentPrincipalId: '', useAdminOwner: '', userId: '' }, select: { id: true } }).execute() db.principal.update({ where: { principalId: '' }, data: { bypassStepUp: '' }, select: { id: true } }).execute() db.principal.delete({ where: { principalId: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.principal.findMany({ ```typescript const item = await db.principal.create({ - data: { bypassStepUp: '', id: '', isReadOnly: '', name: '', ownerId: '', useAdminOwner: '', userId: '' }, + data: { bypassStepUp: '', createdBySessionId: '', depth: '', expiresAt: '', id: '', isReadOnly: '', name: '', ownerId: '', parentPrincipalId: '', useAdminOwner: '', userId: '' }, select: { principalId: true } }).execute(); ``` diff --git a/.agents/skills/orm-auth/references/provision-bucket.md b/.agents/skills/orm-auth/references/provision-bucket.md index a9133530f2..eaefc02f2f 100644 --- a/.agents/skills/orm-auth/references/provision-bucket.md +++ b/.agents/skills/orm-auth/references/provision-bucket.md @@ -2,10 +2,11 @@ -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. +Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. ## Usage diff --git a/.agents/skills/orm-auth/references/refresh-access-token.md b/.agents/skills/orm-auth/references/refresh-access-token.md new file mode 100644 index 0000000000..05934cf6ce --- /dev/null +++ b/.agents/skills/orm-auth/references/refresh-access-token.md @@ -0,0 +1,19 @@ +# refreshAccessToken + + + +Execute the refreshAccessToken mutation + +## Usage + +```typescript +db.mutation.refreshAccessToken({ input: { token: '' } }).execute() +``` + +## Examples + +### Run refreshAccessToken + +```typescript +const result = await db.mutation.refreshAccessToken({ input: { token: '' } }).execute(); +``` diff --git a/.agents/skills/orm-auth/references/set-principal-entities.md b/.agents/skills/orm-auth/references/set-principal-entities.md new file mode 100644 index 0000000000..ebeb269ce9 --- /dev/null +++ b/.agents/skills/orm-auth/references/set-principal-entities.md @@ -0,0 +1,19 @@ +# setPrincipalEntities + + + +Execute the setPrincipalEntities mutation + +## Usage + +```typescript +db.mutation.setPrincipalEntities({ input: { entityIds: '', principalId: '' } }).execute() +``` + +## Examples + +### Run setPrincipalEntities + +```typescript +const result = await db.mutation.setPrincipalEntities({ input: { entityIds: '', principalId: '' } }).execute(); +``` diff --git a/.agents/skills/orm-auth/references/set-principal-scope.md b/.agents/skills/orm-auth/references/set-principal-scope.md new file mode 100644 index 0000000000..7bf940eae1 --- /dev/null +++ b/.agents/skills/orm-auth/references/set-principal-scope.md @@ -0,0 +1,19 @@ +# setPrincipalScope + + + +Execute the setPrincipalScope mutation + +## Usage + +```typescript +db.mutation.setPrincipalScope({ input: '' }).execute() +``` + +## Examples + +### Run setPrincipalScope + +```typescript +const result = await db.mutation.setPrincipalScope({ input: '' }).execute(); +``` diff --git a/.agents/skills/orm-auth/references/update-principal.md b/.agents/skills/orm-auth/references/update-principal.md new file mode 100644 index 0000000000..58d6a62376 --- /dev/null +++ b/.agents/skills/orm-auth/references/update-principal.md @@ -0,0 +1,19 @@ +# updatePrincipal + + + +Execute the updatePrincipal mutation + +## Usage + +```typescript +db.mutation.updatePrincipal({ input: { bypassStepUp: '', isReadOnly: '', name: '', principalId: '', useAdminOwner: '' } }).execute() +``` + +## Examples + +### Run updatePrincipal + +```typescript +const result = await db.mutation.updatePrincipal({ input: { bypassStepUp: '', isReadOnly: '', name: '', principalId: '', useAdminOwner: '' } }).execute(); +``` diff --git a/.agents/skills/orm-auth/references/user-setting.md b/.agents/skills/orm-auth/references/user-setting.md new file mode 100644 index 0000000000..7a2d160efd --- /dev/null +++ b/.agents/skills/orm-auth/references/user-setting.md @@ -0,0 +1,34 @@ +# userSetting + + + +Per-user settings and preferences. Extended by other modules (i18n, notifications, MFA) via metaschema.create_field(). + +## Usage + +```typescript +db.userSetting.findMany({ select: { id: true } }).execute() +db.userSetting.findOne({ id: '', select: { id: true } }).execute() +db.userSetting.create({ data: { ownerId: '' }, select: { id: true } }).execute() +db.userSetting.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute() +db.userSetting.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all userSetting records + +```typescript +const items = await db.userSetting.findMany({ + select: { id: true, ownerId: true } +}).execute(); +``` + +### Create a userSetting + +```typescript +const item = await db.userSetting.create({ + data: { ownerId: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-auth/references/user-settings-security.md b/.agents/skills/orm-auth/references/user-settings-security.md new file mode 100644 index 0000000000..74a127a997 --- /dev/null +++ b/.agents/skills/orm-auth/references/user-settings-security.md @@ -0,0 +1,34 @@ +# userSettingsSecurity + + + +Per-user security settings for MFA configuration (separate from user_settings preferences) + +## Usage + +```typescript +db.userSettingsSecurity.findMany({ select: { id: true } }).execute() +db.userSettingsSecurity.findOne({ id: '', select: { id: true } }).execute() +db.userSettingsSecurity.create({ data: { backupCodesCount: '', emailMfaEnabled: '', mfaEnrolledAt: '', mfaLastUsedAt: '', ownerId: '', smsMfaEnabled: '', totpEnabled: '' }, select: { id: true } }).execute() +db.userSettingsSecurity.update({ where: { id: '' }, data: { backupCodesCount: '' }, select: { id: true } }).execute() +db.userSettingsSecurity.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all userSettingsSecurity records + +```typescript +const items = await db.userSettingsSecurity.findMany({ + select: { id: true, backupCodesCount: true } +}).execute(); +``` + +### Create a userSettingsSecurity + +```typescript +const item = await db.userSettingsSecurity.create({ + data: { backupCodesCount: '', emailMfaEnabled: '', mfaEnrolledAt: '', mfaLastUsedAt: '', ownerId: '', smsMfaEnabled: '', totpEnabled: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-compute/SKILL.md b/.agents/skills/orm-compute/SKILL.md index 2958f34c3a..0b77501324 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 70 tables and 38 custom operations +description: ORM client for the compute API — provides typed CRUD operations for 119 tables and 60 custom operations --- # orm-compute -ORM client for the compute API — provides typed CRUD operations for 70 tables and 38 custom operations +ORM client for the compute API — provides typed CRUD operations for 119 tables and 60 custom operations ## Usage @@ -15,7 +15,7 @@ ORM client for the compute API — provides typed CRUD operations for 70 tables // Import the ORM client import { db } from './orm'; -// Available models: contentPreset, dbPreset, functionApiBinding, functionCapabilityBinding, functionDefinition, functionDeployment, functionDeploymentEvent, functionExecutionLog, ... +// Available models: build, buildStep, builderBinding, contentPreset, databaseFunctionGraph, databaseFunctionGraphExecution, databaseFunctionGraphExecutionNodeState, databaseFunctionGraphExecutionOutput, ... 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.contentPreset.findMany({ +const items = await db.build.findMany({ select: { id: true } }).execute(); ``` @@ -37,7 +37,19 @@ const items = await db.contentPreset.findMany({ See the `references/` directory for detailed per-entity API documentation: +- [build](references/build.md) +- [build-step](references/build-step.md) +- [builder-binding](references/builder-binding.md) - [content-preset](references/content-preset.md) +- [database-function-graph](references/database-function-graph.md) +- [database-function-graph-execution](references/database-function-graph-execution.md) +- [database-function-graph-execution-node-state](references/database-function-graph-execution-node-state.md) +- [database-function-graph-execution-output](references/database-function-graph-execution-output.md) +- [database-graph-commit](references/database-graph-commit.md) +- [database-graph-get-all-tree-nodes-record](references/database-graph-get-all-tree-nodes-record.md) +- [database-graph-object](references/database-graph-object.md) +- [database-graph-ref](references/database-graph-ref.md) +- [database-graph-store](references/database-graph-store.md) - [db-preset](references/db-preset.md) - [function-api-binding](references/function-api-binding.md) - [function-capability-binding](references/function-capability-binding.md) @@ -56,6 +68,8 @@ See the `references/` directory for detailed per-entity API documentation: - [function-invocation-attempt](references/function-invocation-attempt.md) - [function-invocation](references/function-invocation.md) - [get-all-tree-nodes-record](references/get-all-tree-nodes-record.md) +- [image](references/image.md) +- [image-grant](references/image-grant.md) - [infra-commit](references/infra-commit.md) - [infra-get-all-tree-nodes-record](references/infra-get-all-tree-nodes-record.md) - [infra-object](references/infra-object.md) @@ -64,6 +78,9 @@ See the `references/` directory for detailed per-entity API documentation: - [integration-provider](references/integration-provider.md) - [namespace](references/namespace.md) - [namespace-event](references/namespace-event.md) +- [platform-build](references/platform-build.md) +- [platform-build-step](references/platform-build-step.md) +- [platform-builder-binding](references/platform-builder-binding.md) - [platform-function-api-binding](references/platform-function-api-binding.md) - [platform-function-capability-binding](references/platform-function-capability-binding.md) - [platform-function-definition](references/platform-function-definition.md) @@ -72,18 +89,36 @@ See the `references/` directory for detailed per-entity API documentation: - [platform-function-execution-log](references/platform-function-execution-log.md) - [platform-function-invocation-attempt](references/platform-function-invocation-attempt.md) - [platform-function-invocation](references/platform-function-invocation.md) +- [platform-image](references/platform-image.md) +- [platform-image-grant](references/platform-image-grant.md) - [platform-infra-commit](references/platform-infra-commit.md) - [platform-infra-get-all-tree-nodes-record](references/platform-infra-get-all-tree-nodes-record.md) - [platform-infra-object](references/platform-infra-object.md) - [platform-infra-ref](references/platform-infra-ref.md) - [platform-infra-store](references/platform-infra-store.md) +- [platform-k-8-s-resource-kind](references/platform-k-8-s-resource-kind.md) +- [platform-k-8-s-spec-rule](references/platform-k-8-s-spec-rule.md) - [platform-namespace](references/platform-namespace.md) - [platform-namespace-event](references/platform-namespace-event.md) +- [platform-proposal-comment](references/platform-proposal-comment.md) +- [platform-proposal](references/platform-proposal.md) +- [platform-proposal-file-view](references/platform-proposal-file-view.md) +- [platform-proposal-reaction](references/platform-proposal-reaction.md) +- [platform-proposal-review](references/platform-proposal-review.md) +- [platform-proposals-chunk](references/platform-proposals-chunk.md) +- [platform-registry-binding](references/platform-registry-binding.md) +- [platform-registry](references/platform-registry.md) +- [platform-registry-grant](references/platform-registry-grant.md) +- [platform-repository](references/platform-repository.md) +- [platform-repository-event](references/platform-repository-event.md) +- [platform-repository-required-check](references/platform-repository-required-check.md) +- [platform-repository-workflow](references/platform-repository-workflow.md) - [platform-resource](references/platform-resource.md) - [platform-resource-declared-capacity](references/platform-resource-declared-capacity.md) - [platform-resource-definition](references/platform-resource-definition.md) - [platform-resource-event](references/platform-resource-event.md) - [platform-resource-installation](references/platform-resource-installation.md) +- [platform-resource-observed-storage](references/platform-resource-observed-storage.md) - [platform-resource-status-check](references/platform-resource-status-check.md) - [platform-resource-usage-log](references/platform-resource-usage-log.md) - [platform-resource-usage-summary](references/platform-resource-usage-summary.md) @@ -93,11 +128,25 @@ See the `references/` directory for detailed per-entity API documentation: - [platform-resources-resolved-requirement](references/platform-resources-resolved-requirement.md) - [platform-webhook-endpoint](references/platform-webhook-endpoint.md) - [platform-webhook-event](references/platform-webhook-event.md) +- [proposal-comment](references/proposal-comment.md) +- [proposal](references/proposal.md) +- [proposal-file-view](references/proposal-file-view.md) +- [proposal-reaction](references/proposal-reaction.md) +- [proposal-review](references/proposal-review.md) +- [proposals-chunk](references/proposals-chunk.md) +- [registry-binding](references/registry-binding.md) +- [registry](references/registry.md) +- [registry-grant](references/registry-grant.md) +- [repository](references/repository.md) +- [repository-event](references/repository-event.md) +- [repository-required-check](references/repository-required-check.md) +- [repository-workflow](references/repository-workflow.md) - [resource](references/resource.md) - [resource-declared-capacity](references/resource-declared-capacity.md) - [resource-definition](references/resource-definition.md) - [resource-event](references/resource-event.md) - [resource-installation](references/resource-installation.md) +- [resource-observed-storage](references/resource-observed-storage.md) - [resource-status-check](references/resource-status-check.md) - [resource-usage-log](references/resource-usage-log.md) - [resource-usage-summary](references/resource-usage-summary.md) @@ -107,12 +156,33 @@ See the `references/` directory for detailed per-entity API documentation: - [resources-resolved-requirement](references/resources-resolved-requirement.md) - [webhook-endpoint](references/webhook-endpoint.md) - [webhook-event](references/webhook-event.md) +- [database-read-function-graph](references/database-read-function-graph.md) - [read-function-graph](references/read-function-graph.md) - [add-edge](references/add-edge.md) - [add-edge-and-save](references/add-edge-and-save.md) - [add-node](references/add-node.md) - [add-node-and-save](references/add-node-and-save.md) +- [approve-node](references/approve-node.md) - [copy-graph](references/copy-graph.md) +- [database-add-edge](references/database-add-edge.md) +- [database-add-edge-and-save](references/database-add-edge-and-save.md) +- [database-add-node](references/database-add-node.md) +- [database-add-node-and-save](references/database-add-node-and-save.md) +- [database-approve-node](references/database-approve-node.md) +- [database-copy-graph](references/database-copy-graph.md) +- [database-create-function-graph](references/database-create-function-graph.md) +- [database-graph-init-empty-repo](references/database-graph-init-empty-repo.md) +- [database-graph-insert-node-at-path](references/database-graph-insert-node-at-path.md) +- [database-graph-insert-nodes-at-paths](references/database-graph-insert-nodes-at-paths.md) +- [database-graph-set-and-commit](references/database-graph-set-and-commit.md) +- [database-graph-set-data-at-path](references/database-graph-set-data-at-path.md) +- [database-graph-set-many-and-commit](references/database-graph-set-many-and-commit.md) +- [database-import-definitions](references/database-import-definitions.md) +- [database-import-graph-json](references/database-import-graph-json.md) +- [database-save-graph](references/database-save-graph.md) +- [database-start-execution](references/database-start-execution.md) +- [database-validate-function-graph](references/database-validate-function-graph.md) +- [function-invocations-create-sync](references/function-invocations-create-sync.md) - [import-definitions](references/import-definitions.md) - [import-graph-json](references/import-graph-json.md) - [infra-init-empty-repo](references/infra-init-empty-repo.md) @@ -124,6 +194,7 @@ See the `references/` directory for detailed per-entity API documentation: - [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-function-invocations-create-sync](references/platform-function-invocations-create-sync.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) diff --git a/.agents/skills/orm-compute/references/approve-node.md b/.agents/skills/orm-compute/references/approve-node.md new file mode 100644 index 0000000000..9e8454eee5 --- /dev/null +++ b/.agents/skills/orm-compute/references/approve-node.md @@ -0,0 +1,19 @@ +# approveNode + + + +Execute the approveNode mutation + +## Usage + +```typescript +db.mutation.approveNode({ input: { approved: '', executionId: '', feedback: '', nodeName: '' } }).execute() +``` + +## Examples + +### Run approveNode + +```typescript +const result = await db.mutation.approveNode({ input: { approved: '', executionId: '', feedback: '', nodeName: '' } }).execute(); +``` diff --git a/.agents/skills/orm-compute/references/build-step.md b/.agents/skills/orm-compute/references/build-step.md new file mode 100644 index 0000000000..87d4df7fc6 --- /dev/null +++ b/.agents/skills/orm-compute/references/build-step.md @@ -0,0 +1,34 @@ +# buildStep + + + +Partitioned append-only step and test results of a build, keyed into its log object + +## Usage + +```typescript +db.buildStep.findMany({ select: { id: true } }).execute() +db.buildStep.findOne({ id: '', select: { id: true } }).execute() +db.buildStep.create({ data: { buildId: '', createdByPrincipal: '', databaseId: '', exitCode: '', finishedAt: '', kind: '', logBytes: '', logOffset: '', name: '', parentSeq: '', recordedAt: '', seq: '', startedAt: '', status: '', summary: '' }, select: { id: true } }).execute() +db.buildStep.update({ where: { id: '' }, data: { buildId: '' }, select: { id: true } }).execute() +db.buildStep.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all buildStep records + +```typescript +const items = await db.buildStep.findMany({ + select: { id: true, buildId: true } +}).execute(); +``` + +### Create a buildStep + +```typescript +const item = await db.buildStep.create({ + data: { buildId: '', createdByPrincipal: '', databaseId: '', exitCode: '', finishedAt: '', kind: '', logBytes: '', logOffset: '', name: '', parentSeq: '', recordedAt: '', seq: '', startedAt: '', status: '', summary: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-compute/references/build.md b/.agents/skills/orm-compute/references/build.md new file mode 100644 index 0000000000..2aae3fe18b --- /dev/null +++ b/.agents/skills/orm-compute/references/build.md @@ -0,0 +1,34 @@ +# build + + + +One run of a repository workflow: its commit, its job, and what it produced + +## Usage + +```typescript +db.build.findMany({ select: { id: true } }).execute() +db.build.findOne({ id: '', select: { id: true } }).execute() +db.build.create({ data: { actorId: '', attempt: '', commitSha: '', conclusion: '', createdByPrincipal: '', databaseId: '', eventId: '', finishedAt: '', imageRef: '', jobId: '', logs: '', matrixKey: '', metadata: '', proposalId: '', ref: '', repositoryId: '', startedAt: '', status: '', updatedByPrincipal: '', workflowId: '' }, select: { id: true } }).execute() +db.build.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute() +db.build.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all build records + +```typescript +const items = await db.build.findMany({ + select: { id: true, actorId: true } +}).execute(); +``` + +### Create a build + +```typescript +const item = await db.build.create({ + data: { actorId: '', attempt: '', commitSha: '', conclusion: '', createdByPrincipal: '', databaseId: '', eventId: '', finishedAt: '', imageRef: '', jobId: '', logs: '', matrixKey: '', metadata: '', proposalId: '', ref: '', repositoryId: '', startedAt: '', status: '', updatedByPrincipal: '', workflowId: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-compute/references/builder-binding.md b/.agents/skills/orm-compute/references/builder-binding.md new file mode 100644 index 0000000000..e49b1077e6 --- /dev/null +++ b/.agents/skills/orm-compute/references/builder-binding.md @@ -0,0 +1,34 @@ +# builderBinding + + + +Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST + +## Usage + +```typescript +db.builderBinding.findMany({ select: { id: true } }).execute() +db.builderBinding.findOne({ id: '', select: { id: true } }).execute() +db.builderBinding.create({ data: { createdBy: '', createdByPrincipal: '', databaseId: '', installationId: '', lastError: '', metadata: '', namespaceId: '', observedHost: '', realm: '', status: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute() +db.builderBinding.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute() +db.builderBinding.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all builderBinding records + +```typescript +const items = await db.builderBinding.findMany({ + select: { id: true, createdBy: true } +}).execute(); +``` + +### Create a builderBinding + +```typescript +const item = await db.builderBinding.create({ + data: { createdBy: '', createdByPrincipal: '', databaseId: '', installationId: '', lastError: '', metadata: '', namespaceId: '', observedHost: '', realm: '', status: '', updatedBy: '', updatedByPrincipal: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-compute/references/database-add-edge-and-save.md b/.agents/skills/orm-compute/references/database-add-edge-and-save.md new file mode 100644 index 0000000000..f1221e33e7 --- /dev/null +++ b/.agents/skills/orm-compute/references/database-add-edge-and-save.md @@ -0,0 +1,19 @@ +# databaseAddEdgeAndSave + + + +Execute the databaseAddEdgeAndSave mutation + +## Usage + +```typescript +db.mutation.databaseAddEdgeAndSave({ input: '' }).execute() +``` + +## Examples + +### Run databaseAddEdgeAndSave + +```typescript +const result = await db.mutation.databaseAddEdgeAndSave({ input: '' }).execute(); +``` diff --git a/.agents/skills/orm-compute/references/database-add-edge.md b/.agents/skills/orm-compute/references/database-add-edge.md new file mode 100644 index 0000000000..c8a054a247 --- /dev/null +++ b/.agents/skills/orm-compute/references/database-add-edge.md @@ -0,0 +1,19 @@ +# databaseAddEdge + + + +Execute the databaseAddEdge mutation + +## Usage + +```typescript +db.mutation.databaseAddEdge({ input: '' }).execute() +``` + +## Examples + +### Run databaseAddEdge + +```typescript +const result = await db.mutation.databaseAddEdge({ input: '' }).execute(); +``` diff --git a/.agents/skills/orm-compute/references/database-add-node-and-save.md b/.agents/skills/orm-compute/references/database-add-node-and-save.md new file mode 100644 index 0000000000..286fdfbdb6 --- /dev/null +++ b/.agents/skills/orm-compute/references/database-add-node-and-save.md @@ -0,0 +1,19 @@ +# databaseAddNodeAndSave + + + +Execute the databaseAddNodeAndSave mutation + +## Usage + +```typescript +db.mutation.databaseAddNodeAndSave({ input: '' }).execute() +``` + +## Examples + +### Run databaseAddNodeAndSave + +```typescript +const result = await db.mutation.databaseAddNodeAndSave({ input: '' }).execute(); +``` diff --git a/.agents/skills/orm-compute/references/database-add-node.md b/.agents/skills/orm-compute/references/database-add-node.md new file mode 100644 index 0000000000..32be715edb --- /dev/null +++ b/.agents/skills/orm-compute/references/database-add-node.md @@ -0,0 +1,19 @@ +# databaseAddNode + + + +Execute the databaseAddNode mutation + +## Usage + +```typescript +db.mutation.databaseAddNode({ input: '' }).execute() +``` + +## Examples + +### Run databaseAddNode + +```typescript +const result = await db.mutation.databaseAddNode({ input: '' }).execute(); +``` diff --git a/.agents/skills/orm-compute/references/database-approve-node.md b/.agents/skills/orm-compute/references/database-approve-node.md new file mode 100644 index 0000000000..b2c0e42021 --- /dev/null +++ b/.agents/skills/orm-compute/references/database-approve-node.md @@ -0,0 +1,19 @@ +# databaseApproveNode + + + +Execute the databaseApproveNode mutation + +## Usage + +```typescript +db.mutation.databaseApproveNode({ input: { approved: '', executionId: '', feedback: '', nodeName: '' } }).execute() +``` + +## Examples + +### Run databaseApproveNode + +```typescript +const result = await db.mutation.databaseApproveNode({ input: { approved: '', executionId: '', feedback: '', nodeName: '' } }).execute(); +``` diff --git a/.agents/skills/orm-compute/references/database-copy-graph.md b/.agents/skills/orm-compute/references/database-copy-graph.md new file mode 100644 index 0000000000..a44012216a --- /dev/null +++ b/.agents/skills/orm-compute/references/database-copy-graph.md @@ -0,0 +1,19 @@ +# databaseCopyGraph + + + +Execute the databaseCopyGraph mutation + +## Usage + +```typescript +db.mutation.databaseCopyGraph({ input: { databaseId: '', graphId: '', name: '' } }).execute() +``` + +## Examples + +### Run databaseCopyGraph + +```typescript +const result = await db.mutation.databaseCopyGraph({ input: { databaseId: '', graphId: '', name: '' } }).execute(); +``` diff --git a/.agents/skills/orm-compute/references/database-create-function-graph.md b/.agents/skills/orm-compute/references/database-create-function-graph.md new file mode 100644 index 0000000000..43e750d371 --- /dev/null +++ b/.agents/skills/orm-compute/references/database-create-function-graph.md @@ -0,0 +1,19 @@ +# databaseCreateFunctionGraph + + + +Execute the databaseCreateFunctionGraph mutation + +## Usage + +```typescript +db.mutation.databaseCreateFunctionGraph({ input: '' }).execute() +``` + +## Examples + +### Run databaseCreateFunctionGraph + +```typescript +const result = await db.mutation.databaseCreateFunctionGraph({ input: '' }).execute(); +``` diff --git a/.agents/skills/orm-compute/references/database-function-graph-execution-node-state.md b/.agents/skills/orm-compute/references/database-function-graph-execution-node-state.md new file mode 100644 index 0000000000..ec8ca801b9 --- /dev/null +++ b/.agents/skills/orm-compute/references/database-function-graph-execution-node-state.md @@ -0,0 +1,34 @@ +# databaseFunctionGraphExecutionNodeState + + + +Per-node execution state — tracks individual node lifecycle for debugging + +## Usage + +```typescript +db.databaseFunctionGraphExecutionNodeState.findMany({ select: { id: true } }).execute() +db.databaseFunctionGraphExecutionNodeState.findOne({ id: '', select: { id: true } }).execute() +db.databaseFunctionGraphExecutionNodeState.create({ data: { callbackInputs: '', callbackMeta: '', callbackTokenHash: '', completedAt: '', databaseId: '', errorCode: '', errorMessage: '', executionId: '', expiryDefaultOutput: '', expiryEscalatedAt: '', expiryPolicy: '', nodeName: '', nodePath: '', outputId: '', startedAt: '', status: '', waitingDeadlineAt: '', waitingOn: '', waitingSince: '' }, select: { id: true } }).execute() +db.databaseFunctionGraphExecutionNodeState.update({ where: { id: '' }, data: { callbackInputs: '' }, select: { id: true } }).execute() +db.databaseFunctionGraphExecutionNodeState.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all databaseFunctionGraphExecutionNodeState records + +```typescript +const items = await db.databaseFunctionGraphExecutionNodeState.findMany({ + select: { id: true, callbackInputs: true } +}).execute(); +``` + +### Create a databaseFunctionGraphExecutionNodeState + +```typescript +const item = await db.databaseFunctionGraphExecutionNodeState.create({ + data: { callbackInputs: '', callbackMeta: '', callbackTokenHash: '', completedAt: '', databaseId: '', errorCode: '', errorMessage: '', executionId: '', expiryDefaultOutput: '', expiryEscalatedAt: '', expiryPolicy: '', nodeName: '', nodePath: '', outputId: '', startedAt: '', status: '', waitingDeadlineAt: '', waitingOn: '', waitingSince: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-compute/references/database-function-graph-execution-output.md b/.agents/skills/orm-compute/references/database-function-graph-execution-output.md new file mode 100644 index 0000000000..e9ee49c944 --- /dev/null +++ b/.agents/skills/orm-compute/references/database-function-graph-execution-output.md @@ -0,0 +1,34 @@ +# databaseFunctionGraphExecutionOutput + + + +Content-addressed store for execution outputs — hash-referenced from node_outputs + +## Usage + +```typescript +db.databaseFunctionGraphExecutionOutput.findMany({ select: { id: true } }).execute() +db.databaseFunctionGraphExecutionOutput.findOne({ id: '', select: { id: true } }).execute() +db.databaseFunctionGraphExecutionOutput.create({ data: { data: '', databaseId: '', hash: '' }, select: { id: true } }).execute() +db.databaseFunctionGraphExecutionOutput.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute() +db.databaseFunctionGraphExecutionOutput.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all databaseFunctionGraphExecutionOutput records + +```typescript +const items = await db.databaseFunctionGraphExecutionOutput.findMany({ + select: { id: true, data: true } +}).execute(); +``` + +### Create a databaseFunctionGraphExecutionOutput + +```typescript +const item = await db.databaseFunctionGraphExecutionOutput.create({ + data: { data: '', databaseId: '', hash: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-compute/references/database-function-graph-execution.md b/.agents/skills/orm-compute/references/database-function-graph-execution.md new file mode 100644 index 0000000000..54ea0ec0a6 --- /dev/null +++ b/.agents/skills/orm-compute/references/database-function-graph-execution.md @@ -0,0 +1,34 @@ +# databaseFunctionGraphExecution + + + +Ephemeral execution state for flow graph evaluation + +## Usage + +```typescript +db.databaseFunctionGraphExecution.findMany({ select: { id: true } }).execute() +db.databaseFunctionGraphExecution.findOne({ id: '', select: { id: true } }).execute() +db.databaseFunctionGraphExecution.create({ data: { actorId: '', completedAt: '', currentWave: '', databaseId: '', definitionsCommitId: '', entityId: '', entityType: '', errorCode: '', errorMessage: '', executionPlan: '', graphId: '', inputPayload: '', invocationCreatedAt: '', invocationId: '', lastProgressAt: '', maxPendingJobs: '', maxTicks: '', nodeOutputs: '', organizationId: '', outputNames: '', outputNode: '', outputPayload: '', outputPort: '', parentExecutionId: '', parentInvocationId: '', parentNodeName: '', principalId: '', startedAt: '', status: '', tickCount: '', timeoutAt: '' }, select: { id: true } }).execute() +db.databaseFunctionGraphExecution.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute() +db.databaseFunctionGraphExecution.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all databaseFunctionGraphExecution records + +```typescript +const items = await db.databaseFunctionGraphExecution.findMany({ + select: { id: true, actorId: true } +}).execute(); +``` + +### Create a databaseFunctionGraphExecution + +```typescript +const item = await db.databaseFunctionGraphExecution.create({ + data: { actorId: '', completedAt: '', currentWave: '', databaseId: '', definitionsCommitId: '', entityId: '', entityType: '', errorCode: '', errorMessage: '', executionPlan: '', graphId: '', inputPayload: '', invocationCreatedAt: '', invocationId: '', lastProgressAt: '', maxPendingJobs: '', maxTicks: '', nodeOutputs: '', organizationId: '', outputNames: '', outputNode: '', outputPayload: '', outputPort: '', parentExecutionId: '', parentInvocationId: '', parentNodeName: '', principalId: '', startedAt: '', status: '', tickCount: '', timeoutAt: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-compute/references/database-function-graph.md b/.agents/skills/orm-compute/references/database-function-graph.md new file mode 100644 index 0000000000..b0757adae7 --- /dev/null +++ b/.agents/skills/orm-compute/references/database-function-graph.md @@ -0,0 +1,34 @@ +# databaseFunctionGraph + + + +Flow graph definitions — FBP graphs stored in the dedicated graph Merkle store + +## Usage + +```typescript +db.databaseFunctionGraph.findMany({ select: { id: true } }).execute() +db.databaseFunctionGraph.findOne({ id: '', select: { id: true } }).execute() +db.databaseFunctionGraph.create({ data: { context: '', createdBy: '', databaseId: '', definitionsCommitId: '', description: '', isValid: '', name: '', storeId: '', validationErrors: '' }, select: { id: true } }).execute() +db.databaseFunctionGraph.update({ where: { id: '' }, data: { context: '' }, select: { id: true } }).execute() +db.databaseFunctionGraph.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all databaseFunctionGraph records + +```typescript +const items = await db.databaseFunctionGraph.findMany({ + select: { id: true, context: true } +}).execute(); +``` + +### Create a databaseFunctionGraph + +```typescript +const item = await db.databaseFunctionGraph.create({ + data: { context: '', createdBy: '', databaseId: '', definitionsCommitId: '', description: '', isValid: '', name: '', storeId: '', validationErrors: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-compute/references/database-graph-commit.md b/.agents/skills/orm-compute/references/database-graph-commit.md new file mode 100644 index 0000000000..9d351ddea6 --- /dev/null +++ b/.agents/skills/orm-compute/references/database-graph-commit.md @@ -0,0 +1,34 @@ +# databaseGraphCommit + + + +Commit history — each commit snapshots a tree root for a store + +## Usage + +```typescript +db.databaseGraphCommit.findMany({ select: { id: true } }).execute() +db.databaseGraphCommit.findOne({ id: '', select: { id: true } }).execute() +db.databaseGraphCommit.create({ data: { authorId: '', committerId: '', databaseId: '', date: '', message: '', parentIds: '', storeId: '', treeId: '' }, select: { id: true } }).execute() +db.databaseGraphCommit.update({ where: { id: '' }, data: { authorId: '' }, select: { id: true } }).execute() +db.databaseGraphCommit.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all databaseGraphCommit records + +```typescript +const items = await db.databaseGraphCommit.findMany({ + select: { id: true, authorId: true } +}).execute(); +``` + +### Create a databaseGraphCommit + +```typescript +const item = await db.databaseGraphCommit.create({ + data: { authorId: '', committerId: '', databaseId: '', date: '', message: '', parentIds: '', storeId: '', treeId: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-compute/references/database-graph-get-all-tree-nodes-record.md b/.agents/skills/orm-compute/references/database-graph-get-all-tree-nodes-record.md new file mode 100644 index 0000000000..d83ab97956 --- /dev/null +++ b/.agents/skills/orm-compute/references/database-graph-get-all-tree-nodes-record.md @@ -0,0 +1,34 @@ +# databaseGraphGetAllTreeNodesRecord + + + +ORM operations for DatabaseGraphGetAllTreeNodesRecord records + +## Usage + +```typescript +db.databaseGraphGetAllTreeNodesRecord.findMany({ select: { id: true } }).execute() +db.databaseGraphGetAllTreeNodesRecord.findOne({ id: '', select: { id: true } }).execute() +db.databaseGraphGetAllTreeNodesRecord.create({ data: { data: '', path: '' }, select: { id: true } }).execute() +db.databaseGraphGetAllTreeNodesRecord.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute() +db.databaseGraphGetAllTreeNodesRecord.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all databaseGraphGetAllTreeNodesRecord records + +```typescript +const items = await db.databaseGraphGetAllTreeNodesRecord.findMany({ + select: { id: true, data: true } +}).execute(); +``` + +### Create a databaseGraphGetAllTreeNodesRecord + +```typescript +const item = await db.databaseGraphGetAllTreeNodesRecord.create({ + data: { data: '', path: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-compute/references/database-graph-init-empty-repo.md b/.agents/skills/orm-compute/references/database-graph-init-empty-repo.md new file mode 100644 index 0000000000..8660517966 --- /dev/null +++ b/.agents/skills/orm-compute/references/database-graph-init-empty-repo.md @@ -0,0 +1,19 @@ +# databaseGraphInitEmptyRepo + + + +Execute the databaseGraphInitEmptyRepo mutation + +## Usage + +```typescript +db.mutation.databaseGraphInitEmptyRepo({ input: { sId: '', storeId: '' } }).execute() +``` + +## Examples + +### Run databaseGraphInitEmptyRepo + +```typescript +const result = await db.mutation.databaseGraphInitEmptyRepo({ input: { sId: '', storeId: '' } }).execute(); +``` diff --git a/.agents/skills/orm-compute/references/database-graph-insert-node-at-path.md b/.agents/skills/orm-compute/references/database-graph-insert-node-at-path.md new file mode 100644 index 0000000000..9e7044c633 --- /dev/null +++ b/.agents/skills/orm-compute/references/database-graph-insert-node-at-path.md @@ -0,0 +1,19 @@ +# databaseGraphInsertNodeAtPath + + + +Execute the databaseGraphInsertNodeAtPath mutation + +## Usage + +```typescript +db.mutation.databaseGraphInsertNodeAtPath({ input: '' }).execute() +``` + +## Examples + +### Run databaseGraphInsertNodeAtPath + +```typescript +const result = await db.mutation.databaseGraphInsertNodeAtPath({ input: '' }).execute(); +``` diff --git a/.agents/skills/orm-compute/references/database-graph-insert-nodes-at-paths.md b/.agents/skills/orm-compute/references/database-graph-insert-nodes-at-paths.md new file mode 100644 index 0000000000..0b52261df9 --- /dev/null +++ b/.agents/skills/orm-compute/references/database-graph-insert-nodes-at-paths.md @@ -0,0 +1,19 @@ +# databaseGraphInsertNodesAtPaths + + + +Execute the databaseGraphInsertNodesAtPaths mutation + +## Usage + +```typescript +db.mutation.databaseGraphInsertNodesAtPaths({ input: '' }).execute() +``` + +## Examples + +### Run databaseGraphInsertNodesAtPaths + +```typescript +const result = await db.mutation.databaseGraphInsertNodesAtPaths({ input: '' }).execute(); +``` diff --git a/.agents/skills/orm-compute/references/database-graph-object.md b/.agents/skills/orm-compute/references/database-graph-object.md new file mode 100644 index 0000000000..4e098232bd --- /dev/null +++ b/.agents/skills/orm-compute/references/database-graph-object.md @@ -0,0 +1,34 @@ +# databaseGraphObject + + + +Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children + +## Usage + +```typescript +db.databaseGraphObject.findMany({ select: { id: true } }).execute() +db.databaseGraphObject.findOne({ id: '', select: { id: true } }).execute() +db.databaseGraphObject.create({ data: { data: '', databaseId: '', kids: '', ktree: '' }, select: { id: true } }).execute() +db.databaseGraphObject.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute() +db.databaseGraphObject.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all databaseGraphObject records + +```typescript +const items = await db.databaseGraphObject.findMany({ + select: { id: true, data: true } +}).execute(); +``` + +### Create a databaseGraphObject + +```typescript +const item = await db.databaseGraphObject.create({ + data: { data: '', databaseId: '', kids: '', ktree: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-compute/references/database-graph-ref.md b/.agents/skills/orm-compute/references/database-graph-ref.md new file mode 100644 index 0000000000..b2be6fcf5e --- /dev/null +++ b/.agents/skills/orm-compute/references/database-graph-ref.md @@ -0,0 +1,34 @@ +# databaseGraphRef + + + +Branch heads — mutable pointers into the commit chain + +## Usage + +```typescript +db.databaseGraphRef.findMany({ select: { id: true } }).execute() +db.databaseGraphRef.findOne({ id: '', select: { id: true } }).execute() +db.databaseGraphRef.create({ data: { commitId: '', databaseId: '', name: '', storeId: '' }, select: { id: true } }).execute() +db.databaseGraphRef.update({ where: { id: '' }, data: { commitId: '' }, select: { id: true } }).execute() +db.databaseGraphRef.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all databaseGraphRef records + +```typescript +const items = await db.databaseGraphRef.findMany({ + select: { id: true, commitId: true } +}).execute(); +``` + +### Create a databaseGraphRef + +```typescript +const item = await db.databaseGraphRef.create({ + data: { commitId: '', databaseId: '', name: '', storeId: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-compute/references/database-graph-set-and-commit.md b/.agents/skills/orm-compute/references/database-graph-set-and-commit.md new file mode 100644 index 0000000000..a057eb8f07 --- /dev/null +++ b/.agents/skills/orm-compute/references/database-graph-set-and-commit.md @@ -0,0 +1,19 @@ +# databaseGraphSetAndCommit + + + +Execute the databaseGraphSetAndCommit mutation + +## Usage + +```typescript +db.mutation.databaseGraphSetAndCommit({ input: '' }).execute() +``` + +## Examples + +### Run databaseGraphSetAndCommit + +```typescript +const result = await db.mutation.databaseGraphSetAndCommit({ input: '' }).execute(); +``` diff --git a/.agents/skills/orm-compute/references/database-graph-set-data-at-path.md b/.agents/skills/orm-compute/references/database-graph-set-data-at-path.md new file mode 100644 index 0000000000..394d964110 --- /dev/null +++ b/.agents/skills/orm-compute/references/database-graph-set-data-at-path.md @@ -0,0 +1,19 @@ +# databaseGraphSetDataAtPath + + + +Execute the databaseGraphSetDataAtPath mutation + +## Usage + +```typescript +db.mutation.databaseGraphSetDataAtPath({ input: { data: '', path: '', root: '', sId: '' } }).execute() +``` + +## Examples + +### Run databaseGraphSetDataAtPath + +```typescript +const result = await db.mutation.databaseGraphSetDataAtPath({ input: { data: '', path: '', root: '', sId: '' } }).execute(); +``` diff --git a/.agents/skills/orm-compute/references/database-graph-set-many-and-commit.md b/.agents/skills/orm-compute/references/database-graph-set-many-and-commit.md new file mode 100644 index 0000000000..2308aeae20 --- /dev/null +++ b/.agents/skills/orm-compute/references/database-graph-set-many-and-commit.md @@ -0,0 +1,19 @@ +# databaseGraphSetManyAndCommit + + + +Execute the databaseGraphSetManyAndCommit mutation + +## Usage + +```typescript +db.mutation.databaseGraphSetManyAndCommit({ input: { entries: '', message: '', refname: '', sId: '', storeId: '' } }).execute() +``` + +## Examples + +### Run databaseGraphSetManyAndCommit + +```typescript +const result = await db.mutation.databaseGraphSetManyAndCommit({ input: { entries: '', message: '', refname: '', sId: '', storeId: '' } }).execute(); +``` diff --git a/.agents/skills/orm-compute/references/database-graph-store.md b/.agents/skills/orm-compute/references/database-graph-store.md new file mode 100644 index 0000000000..36a6d9fceb --- /dev/null +++ b/.agents/skills/orm-compute/references/database-graph-store.md @@ -0,0 +1,34 @@ +# databaseGraphStore + + + +Named stores — one per version-controlled tree (e.g. one graph, one definition set) + +## Usage + +```typescript +db.databaseGraphStore.findMany({ select: { id: true } }).execute() +db.databaseGraphStore.findOne({ id: '', select: { id: true } }).execute() +db.databaseGraphStore.create({ data: { databaseId: '', hash: '', name: '' }, select: { id: true } }).execute() +db.databaseGraphStore.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.databaseGraphStore.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all databaseGraphStore records + +```typescript +const items = await db.databaseGraphStore.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a databaseGraphStore + +```typescript +const item = await db.databaseGraphStore.create({ + data: { databaseId: '', hash: '', name: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-compute/references/database-import-definitions.md b/.agents/skills/orm-compute/references/database-import-definitions.md new file mode 100644 index 0000000000..2437f0493e --- /dev/null +++ b/.agents/skills/orm-compute/references/database-import-definitions.md @@ -0,0 +1,19 @@ +# databaseImportDefinitions + + + +Execute the databaseImportDefinitions mutation + +## Usage + +```typescript +db.mutation.databaseImportDefinitions({ input: { contexts: '', graphId: '', sourceCommitId: '', sourceScopeId: '' } }).execute() +``` + +## Examples + +### Run databaseImportDefinitions + +```typescript +const result = await db.mutation.databaseImportDefinitions({ input: { contexts: '', graphId: '', sourceCommitId: '', sourceScopeId: '' } }).execute(); +``` diff --git a/.agents/skills/orm-compute/references/database-import-graph-json.md b/.agents/skills/orm-compute/references/database-import-graph-json.md new file mode 100644 index 0000000000..83509270a6 --- /dev/null +++ b/.agents/skills/orm-compute/references/database-import-graph-json.md @@ -0,0 +1,19 @@ +# databaseImportGraphJson + + + +Execute the databaseImportGraphJson mutation + +## Usage + +```typescript +db.mutation.databaseImportGraphJson({ input: '' }).execute() +``` + +## Examples + +### Run databaseImportGraphJson + +```typescript +const result = await db.mutation.databaseImportGraphJson({ input: '' }).execute(); +``` diff --git a/.agents/skills/orm-compute/references/database-read-function-graph.md b/.agents/skills/orm-compute/references/database-read-function-graph.md new file mode 100644 index 0000000000..5e2da9af66 --- /dev/null +++ b/.agents/skills/orm-compute/references/database-read-function-graph.md @@ -0,0 +1,19 @@ +# databaseReadFunctionGraph + + + +Execute the databaseReadFunctionGraph query + +## Usage + +```typescript +db.query.databaseReadFunctionGraph({ graphId: '' }).execute() +``` + +## Examples + +### Run databaseReadFunctionGraph + +```typescript +const result = await db.query.databaseReadFunctionGraph({ graphId: '' }).execute(); +``` diff --git a/.agents/skills/orm-compute/references/database-save-graph.md b/.agents/skills/orm-compute/references/database-save-graph.md new file mode 100644 index 0000000000..a1e9faba15 --- /dev/null +++ b/.agents/skills/orm-compute/references/database-save-graph.md @@ -0,0 +1,19 @@ +# databaseSaveGraph + + + +Execute the databaseSaveGraph mutation + +## Usage + +```typescript +db.mutation.databaseSaveGraph({ input: { graphId: '', message: '', rootHash: '' } }).execute() +``` + +## Examples + +### Run databaseSaveGraph + +```typescript +const result = await db.mutation.databaseSaveGraph({ input: { graphId: '', message: '', rootHash: '' } }).execute(); +``` diff --git a/.agents/skills/orm-compute/references/database-start-execution.md b/.agents/skills/orm-compute/references/database-start-execution.md new file mode 100644 index 0000000000..dbee967926 --- /dev/null +++ b/.agents/skills/orm-compute/references/database-start-execution.md @@ -0,0 +1,19 @@ +# databaseStartExecution + + + +Execute the databaseStartExecution mutation + +## Usage + +```typescript +db.mutation.databaseStartExecution({ input: '' }).execute() +``` + +## Examples + +### Run databaseStartExecution + +```typescript +const result = await db.mutation.databaseStartExecution({ input: '' }).execute(); +``` diff --git a/.agents/skills/orm-compute/references/database-validate-function-graph.md b/.agents/skills/orm-compute/references/database-validate-function-graph.md new file mode 100644 index 0000000000..8332b36938 --- /dev/null +++ b/.agents/skills/orm-compute/references/database-validate-function-graph.md @@ -0,0 +1,19 @@ +# databaseValidateFunctionGraph + + + +Execute the databaseValidateFunctionGraph mutation + +## Usage + +```typescript +db.mutation.databaseValidateFunctionGraph({ input: { graphId: '' } }).execute() +``` + +## Examples + +### Run databaseValidateFunctionGraph + +```typescript +const result = await db.mutation.databaseValidateFunctionGraph({ input: { graphId: '' } }).execute(); +``` diff --git a/.agents/skills/orm-compute/references/function-definition.md b/.agents/skills/orm-compute/references/function-definition.md index f79b1115bd..6c7e432d3c 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: '', requiredModules: '', requiredSecrets: '', resources: '', runtime: '', scaleMax: '', scaleMin: '', targetFunction: '', targetSchema: '', taskIdentifier: '', timeoutSeconds: '', volatile: '' }, select: { id: true } }).execute() +db.functionDefinition.create({ data: { accessChannels: '', anonymousCallable: '', category: '', concurrency: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdByPrincipal: '', databaseId: '', description: '', fnCategory: '', functionColumns: '', graphId: '', icon: '', image: '', inputs: '', integrations: '', isPublished: '', maxAttempts: '', memoryLimitBytes: '', memoryRequestBytes: '', moduleTable: '', name: '', outputs: '', payloadArgs: '', priority: '', props: '', protected: '', publishedAt: '', queueName: '', requiredBuckets: '', requiredCapabilities: '', requiredConfigs: '', requiredModels: '', requiredModules: '', requiredSecrets: '', resources: '', runtime: '', scaleMax: '', scaleMin: '', targetFunction: '', targetSchema: '', taskIdentifier: '', timeoutSeconds: '', updatedByPrincipal: '', 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: '', requiredModules: '', requiredSecrets: '', resources: '', runtime: '', scaleMax: '', scaleMin: '', targetFunction: '', targetSchema: '', taskIdentifier: '', timeoutSeconds: '', volatile: '' }, + data: { accessChannels: '', anonymousCallable: '', category: '', concurrency: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdByPrincipal: '', databaseId: '', description: '', fnCategory: '', functionColumns: '', graphId: '', icon: '', image: '', inputs: '', integrations: '', isPublished: '', maxAttempts: '', memoryLimitBytes: '', memoryRequestBytes: '', moduleTable: '', name: '', outputs: '', payloadArgs: '', priority: '', props: '', protected: '', publishedAt: '', queueName: '', requiredBuckets: '', requiredCapabilities: '', requiredConfigs: '', requiredModels: '', requiredModules: '', requiredSecrets: '', resources: '', runtime: '', scaleMax: '', scaleMin: '', targetFunction: '', targetSchema: '', taskIdentifier: '', timeoutSeconds: '', updatedByPrincipal: '', 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 d5261c1276..ec4d353c12 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: '', realm: '', resources: '', revision: '', scaleMax: '', scaleMin: '', serviceName: '', serviceUrl: '', status: '', timeoutSeconds: '' }, select: { id: true } }).execute() +db.functionDeployment.create({ data: { annotations: '', concurrency: '', createdByPrincipal: '', databaseId: '', errorCount: '', handlerName: '', image: '', imageVersion: '', labels: '', lastError: '', lastErrorAt: '', namespaceId: '', realm: '', resources: '', revision: '', scaleMax: '', scaleMin: '', serviceName: '', serviceUrl: '', status: '', timeoutSeconds: '', updatedByPrincipal: '' }, 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: '', realm: '', resources: '', revision: '', scaleMax: '', scaleMin: '', serviceName: '', serviceUrl: '', status: '', timeoutSeconds: '' }, + data: { annotations: '', concurrency: '', createdByPrincipal: '', databaseId: '', errorCount: '', handlerName: '', image: '', imageVersion: '', labels: '', lastError: '', lastErrorAt: '', namespaceId: '', realm: '', resources: '', revision: '', scaleMax: '', scaleMin: '', serviceName: '', serviceUrl: '', status: '', timeoutSeconds: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-compute/references/function-graph-execution-node-state.md b/.agents/skills/orm-compute/references/function-graph-execution-node-state.md index ff21d6bbed..427d3c6819 100644 --- a/.agents/skills/orm-compute/references/function-graph-execution-node-state.md +++ b/.agents/skills/orm-compute/references/function-graph-execution-node-state.md @@ -9,7 +9,7 @@ Per-node execution state — tracks individual node lifecycle for debugging ```typescript db.functionGraphExecutionNodeState.findMany({ select: { id: true } }).execute() db.functionGraphExecutionNodeState.findOne({ id: '', select: { id: true } }).execute() -db.functionGraphExecutionNodeState.create({ data: { callbackInputs: '', callbackMeta: '', callbackTokenHash: '', completedAt: '', errorCode: '', errorMessage: '', executionId: '', nodeName: '', nodePath: '', outputId: '', scopeId: '', startedAt: '', status: '' }, select: { id: true } }).execute() +db.functionGraphExecutionNodeState.create({ data: { callbackInputs: '', callbackMeta: '', callbackTokenHash: '', completedAt: '', errorCode: '', errorMessage: '', executionId: '', expiryDefaultOutput: '', expiryEscalatedAt: '', expiryPolicy: '', nodeName: '', nodePath: '', outputId: '', scopeId: '', startedAt: '', status: '', waitingDeadlineAt: '', waitingOn: '', waitingSince: '' }, select: { id: true } }).execute() db.functionGraphExecutionNodeState.update({ where: { id: '' }, data: { callbackInputs: '' }, select: { id: true } }).execute() db.functionGraphExecutionNodeState.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.functionGraphExecutionNodeState.findMany({ ```typescript const item = await db.functionGraphExecutionNodeState.create({ - data: { callbackInputs: '', callbackMeta: '', callbackTokenHash: '', completedAt: '', errorCode: '', errorMessage: '', executionId: '', nodeName: '', nodePath: '', outputId: '', scopeId: '', startedAt: '', status: '' }, + data: { callbackInputs: '', callbackMeta: '', callbackTokenHash: '', completedAt: '', errorCode: '', errorMessage: '', executionId: '', expiryDefaultOutput: '', expiryEscalatedAt: '', expiryPolicy: '', nodeName: '', nodePath: '', outputId: '', scopeId: '', startedAt: '', status: '', waitingDeadlineAt: '', waitingOn: '', waitingSince: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-compute/references/function-invocation.md b/.agents/skills/orm-compute/references/function-invocation.md index 4efde3d880..17d6901999 100644 --- a/.agents/skills/orm-compute/references/function-invocation.md +++ b/.agents/skills/orm-compute/references/function-invocation.md @@ -9,7 +9,7 @@ Function invocation log — INSERT to call a function (business-layer, metered). ```typescript db.functionInvocation.findMany({ select: { id: true } }).execute() db.functionInvocation.findOne({ id: '', select: { id: true } }).execute() -db.functionInvocation.create({ data: { actorId: '', apiBindingId: '', channel: '', completedAt: '', databaseId: '', definitionScope: '', durationMs: '', error: '', functionDefinitionId: '', graphExecutionId: '', jobId: '', parentInvocationId: '', payload: '', provenance: '', result: '', startedAt: '', status: '', taskIdentifier: '' }, select: { id: true } }).execute() +db.functionInvocation.create({ data: { actorId: '', apiBindingId: '', channel: '', completedAt: '', createdByPrincipal: '', databaseId: '', definitionScope: '', durationMs: '', entityId: '', entityType: '', error: '', functionDefinitionId: '', graphExecutionId: '', jobId: '', organizationId: '', parentInvocationId: '', payload: '', principalId: '', provenance: '', result: '', startedAt: '', status: '', taskIdentifier: '' }, select: { id: true } }).execute() db.functionInvocation.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute() db.functionInvocation.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.functionInvocation.findMany({ ```typescript const item = await db.functionInvocation.create({ - data: { actorId: '', apiBindingId: '', channel: '', completedAt: '', databaseId: '', definitionScope: '', durationMs: '', error: '', functionDefinitionId: '', graphExecutionId: '', jobId: '', parentInvocationId: '', payload: '', provenance: '', result: '', startedAt: '', status: '', taskIdentifier: '' }, + data: { actorId: '', apiBindingId: '', channel: '', completedAt: '', createdByPrincipal: '', databaseId: '', definitionScope: '', durationMs: '', entityId: '', entityType: '', error: '', functionDefinitionId: '', graphExecutionId: '', jobId: '', organizationId: '', parentInvocationId: '', payload: '', principalId: '', provenance: '', result: '', startedAt: '', status: '', taskIdentifier: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-compute/references/function-invocations-create-sync.md b/.agents/skills/orm-compute/references/function-invocations-create-sync.md new file mode 100644 index 0000000000..dea4f9a1ff --- /dev/null +++ b/.agents/skills/orm-compute/references/function-invocations-create-sync.md @@ -0,0 +1,19 @@ +# functionInvocationsCreateSync + + + +Execute the functionInvocationsCreateSync mutation + +## Usage + +```typescript +db.mutation.functionInvocationsCreateSync({ input: { entityId: '', payload: '', provenance: '', routeBindingId: '', taskIdentifier: '' } }).execute() +``` + +## Examples + +### Run functionInvocationsCreateSync + +```typescript +const result = await db.mutation.functionInvocationsCreateSync({ input: { entityId: '', payload: '', provenance: '', routeBindingId: '', taskIdentifier: '' } }).execute(); +``` diff --git a/.agents/skills/orm-compute/references/image-grant.md b/.agents/skills/orm-compute/references/image-grant.md new file mode 100644 index 0000000000..5eb4ee3536 --- /dev/null +++ b/.agents/skills/orm-compute/references/image-grant.md @@ -0,0 +1,34 @@ +# imageGrant + + + +Grants that make a catalog image usable by one scope + +## Usage + +```typescript +db.imageGrant.findMany({ select: { id: true } }).execute() +db.imageGrant.findOne({ id: '', select: { id: true } }).execute() +db.imageGrant.create({ data: { actions: '', createdByPrincipal: '', databaseId: '', expiresAt: '', grantedBy: '', granteeKey: '', granteeScope: '', imageId: '', updatedByPrincipal: '' }, select: { id: true } }).execute() +db.imageGrant.update({ where: { id: '' }, data: { actions: '' }, select: { id: true } }).execute() +db.imageGrant.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all imageGrant records + +```typescript +const items = await db.imageGrant.findMany({ + select: { id: true, actions: true } +}).execute(); +``` + +### Create a imageGrant + +```typescript +const item = await db.imageGrant.create({ + data: { actions: '', createdByPrincipal: '', databaseId: '', expiresAt: '', grantedBy: '', granteeKey: '', granteeScope: '', imageId: '', updatedByPrincipal: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-compute/references/image.md b/.agents/skills/orm-compute/references/image.md new file mode 100644 index 0000000000..06f4a60535 --- /dev/null +++ b/.agents/skills/orm-compute/references/image.md @@ -0,0 +1,34 @@ +# image + + + +Container image catalog: images available to run as functions, resources, and builds + +## Usage + +```typescript +db.image.findMany({ select: { id: true } }).execute() +db.image.findOne({ id: '', select: { id: true } }).execute() +db.image.create({ data: { createdByPrincipal: '', databaseId: '', description: '', digest: '', expiresAt: '', isPublished: '', labels: '', metadata: '', name: '', ownerId: '', platformOnly: '', registryHost: '', repository: '', runtime: '', tag: '', updatedByPrincipal: '' }, select: { id: true } }).execute() +db.image.update({ where: { id: '' }, data: { createdByPrincipal: '' }, select: { id: true } }).execute() +db.image.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all image records + +```typescript +const items = await db.image.findMany({ + select: { id: true, createdByPrincipal: true } +}).execute(); +``` + +### Create a image + +```typescript +const item = await db.image.create({ + data: { createdByPrincipal: '', databaseId: '', description: '', digest: '', expiresAt: '', isPublished: '', labels: '', metadata: '', name: '', ownerId: '', platformOnly: '', registryHost: '', repository: '', runtime: '', tag: '', updatedByPrincipal: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-compute/references/namespace.md b/.agents/skills/orm-compute/references/namespace.md index 8679b2be5f..62c957ba40 100644 --- a/.agents/skills/orm-compute/references/namespace.md +++ b/.agents/skills/orm-compute/references/namespace.md @@ -9,7 +9,7 @@ Logical namespace containers for grouping secrets, config, functions, and other ```typescript db.namespace.findMany({ select: { id: true } }).execute() db.namespace.findOne({ id: '', select: { id: true } }).execute() -db.namespace.create({ data: { annotations: '', databaseId: '', description: '', isActive: '', isManaged: '', labels: '', lastError: '', name: '', namespaceName: '', status: '' }, select: { id: true } }).execute() +db.namespace.create({ data: { annotations: '', clusterId: '', databaseId: '', description: '', isActive: '', isManaged: '', labels: '', lastError: '', name: '', namespaceName: '', status: '' }, select: { id: true } }).execute() db.namespace.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute() db.namespace.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.namespace.findMany({ ```typescript const item = await db.namespace.create({ - data: { annotations: '', databaseId: '', description: '', isActive: '', isManaged: '', labels: '', lastError: '', name: '', namespaceName: '', status: '' }, + data: { annotations: '', clusterId: '', databaseId: '', description: '', isActive: '', isManaged: '', labels: '', lastError: '', name: '', namespaceName: '', status: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-compute/references/platform-build-step.md b/.agents/skills/orm-compute/references/platform-build-step.md new file mode 100644 index 0000000000..15a8c4f931 --- /dev/null +++ b/.agents/skills/orm-compute/references/platform-build-step.md @@ -0,0 +1,34 @@ +# platformBuildStep + + + +Partitioned append-only step and test results of a build, keyed into its log object + +## Usage + +```typescript +db.platformBuildStep.findMany({ select: { id: true } }).execute() +db.platformBuildStep.findOne({ id: '', select: { id: true } }).execute() +db.platformBuildStep.create({ data: { buildId: '', createdByPrincipal: '', exitCode: '', finishedAt: '', kind: '', logBytes: '', logOffset: '', name: '', parentSeq: '', recordedAt: '', seq: '', startedAt: '', status: '', summary: '' }, select: { id: true } }).execute() +db.platformBuildStep.update({ where: { id: '' }, data: { buildId: '' }, select: { id: true } }).execute() +db.platformBuildStep.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all platformBuildStep records + +```typescript +const items = await db.platformBuildStep.findMany({ + select: { id: true, buildId: true } +}).execute(); +``` + +### Create a platformBuildStep + +```typescript +const item = await db.platformBuildStep.create({ + data: { buildId: '', createdByPrincipal: '', exitCode: '', finishedAt: '', kind: '', logBytes: '', logOffset: '', name: '', parentSeq: '', recordedAt: '', seq: '', startedAt: '', status: '', summary: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-compute/references/platform-build.md b/.agents/skills/orm-compute/references/platform-build.md new file mode 100644 index 0000000000..65524c26f0 --- /dev/null +++ b/.agents/skills/orm-compute/references/platform-build.md @@ -0,0 +1,34 @@ +# platformBuild + + + +One run of a repository workflow: its commit, its job, and what it produced + +## Usage + +```typescript +db.platformBuild.findMany({ select: { id: true } }).execute() +db.platformBuild.findOne({ id: '', select: { id: true } }).execute() +db.platformBuild.create({ data: { actorId: '', attempt: '', commitSha: '', conclusion: '', createdByPrincipal: '', eventId: '', finishedAt: '', imageRef: '', jobId: '', logs: '', matrixKey: '', metadata: '', proposalId: '', ref: '', repositoryId: '', startedAt: '', status: '', updatedByPrincipal: '', workflowId: '' }, select: { id: true } }).execute() +db.platformBuild.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute() +db.platformBuild.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all platformBuild records + +```typescript +const items = await db.platformBuild.findMany({ + select: { id: true, actorId: true } +}).execute(); +``` + +### Create a platformBuild + +```typescript +const item = await db.platformBuild.create({ + data: { actorId: '', attempt: '', commitSha: '', conclusion: '', createdByPrincipal: '', eventId: '', finishedAt: '', imageRef: '', jobId: '', logs: '', matrixKey: '', metadata: '', proposalId: '', ref: '', repositoryId: '', startedAt: '', status: '', updatedByPrincipal: '', workflowId: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-compute/references/platform-builder-binding.md b/.agents/skills/orm-compute/references/platform-builder-binding.md new file mode 100644 index 0000000000..eb1305f80b --- /dev/null +++ b/.agents/skills/orm-compute/references/platform-builder-binding.md @@ -0,0 +1,34 @@ +# platformBuilderBinding + + + +Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST + +## Usage + +```typescript +db.platformBuilderBinding.findMany({ select: { id: true } }).execute() +db.platformBuilderBinding.findOne({ id: '', select: { id: true } }).execute() +db.platformBuilderBinding.create({ data: { createdBy: '', createdByPrincipal: '', installationId: '', lastError: '', metadata: '', namespaceId: '', observedHost: '', realm: '', status: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute() +db.platformBuilderBinding.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute() +db.platformBuilderBinding.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all platformBuilderBinding records + +```typescript +const items = await db.platformBuilderBinding.findMany({ + select: { id: true, createdBy: true } +}).execute(); +``` + +### Create a platformBuilderBinding + +```typescript +const item = await db.platformBuilderBinding.create({ + data: { createdBy: '', createdByPrincipal: '', installationId: '', lastError: '', metadata: '', namespaceId: '', observedHost: '', realm: '', status: '', updatedBy: '', updatedByPrincipal: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-compute/references/platform-function-definition.md b/.agents/skills/orm-compute/references/platform-function-definition.md index 262f1d1ab0..9746d37f35 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: '', requiredModules: '', requiredSecrets: '', resources: '', runtime: '', scaleMax: '', scaleMin: '', system: '', targetFunction: '', targetSchema: '', taskIdentifier: '', timeoutSeconds: '', volatile: '' }, select: { id: true } }).execute() +db.platformFunctionDefinition.create({ data: { accessChannels: '', anonymousCallable: '', billable: '', category: '', concurrency: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdByPrincipal: '', description: '', fnCategory: '', functionColumns: '', graphId: '', icon: '', image: '', inputs: '', integrations: '', isPublished: '', maxAttempts: '', memoryLimitBytes: '', memoryRequestBytes: '', moduleTable: '', name: '', outputs: '', payloadArgs: '', priority: '', props: '', protected: '', publishedAt: '', queueName: '', requiredBuckets: '', requiredCapabilities: '', requiredConfigs: '', requiredModels: '', requiredModules: '', requiredSecrets: '', resources: '', runtime: '', scaleMax: '', scaleMin: '', system: '', targetFunction: '', targetSchema: '', taskIdentifier: '', timeoutSeconds: '', updatedByPrincipal: '', 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: '', requiredModules: '', requiredSecrets: '', resources: '', runtime: '', scaleMax: '', scaleMin: '', system: '', targetFunction: '', targetSchema: '', taskIdentifier: '', timeoutSeconds: '', volatile: '' }, + data: { accessChannels: '', anonymousCallable: '', billable: '', category: '', concurrency: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdByPrincipal: '', description: '', fnCategory: '', functionColumns: '', graphId: '', icon: '', image: '', inputs: '', integrations: '', isPublished: '', maxAttempts: '', memoryLimitBytes: '', memoryRequestBytes: '', moduleTable: '', name: '', outputs: '', payloadArgs: '', priority: '', props: '', protected: '', publishedAt: '', queueName: '', requiredBuckets: '', requiredCapabilities: '', requiredConfigs: '', requiredModels: '', requiredModules: '', requiredSecrets: '', resources: '', runtime: '', scaleMax: '', scaleMin: '', system: '', targetFunction: '', targetSchema: '', taskIdentifier: '', timeoutSeconds: '', updatedByPrincipal: '', 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 e0a3b7df4b..c8265540e5 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: '', realm: '', resources: '', revision: '', scaleMax: '', scaleMin: '', serviceName: '', serviceUrl: '', status: '', timeoutSeconds: '' }, select: { id: true } }).execute() +db.platformFunctionDeployment.create({ data: { annotations: '', concurrency: '', createdByPrincipal: '', errorCount: '', handlerName: '', image: '', imageVersion: '', labels: '', lastError: '', lastErrorAt: '', namespaceId: '', realm: '', resources: '', revision: '', scaleMax: '', scaleMin: '', serviceName: '', serviceUrl: '', status: '', timeoutSeconds: '', updatedByPrincipal: '' }, 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: '', realm: '', resources: '', revision: '', scaleMax: '', scaleMin: '', serviceName: '', serviceUrl: '', status: '', timeoutSeconds: '' }, + data: { annotations: '', concurrency: '', createdByPrincipal: '', errorCount: '', handlerName: '', image: '', imageVersion: '', labels: '', lastError: '', lastErrorAt: '', namespaceId: '', realm: '', resources: '', revision: '', scaleMax: '', scaleMin: '', serviceName: '', serviceUrl: '', status: '', timeoutSeconds: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-compute/references/platform-function-invocation.md b/.agents/skills/orm-compute/references/platform-function-invocation.md index 23b543bf22..812c8c4c33 100644 --- a/.agents/skills/orm-compute/references/platform-function-invocation.md +++ b/.agents/skills/orm-compute/references/platform-function-invocation.md @@ -9,7 +9,7 @@ Function invocation log — INSERT to call a function (business-layer, metered). ```typescript db.platformFunctionInvocation.findMany({ select: { id: true } }).execute() db.platformFunctionInvocation.findOne({ id: '', select: { id: true } }).execute() -db.platformFunctionInvocation.create({ data: { actorId: '', apiBindingId: '', channel: '', completedAt: '', databaseId: '', definitionScope: '', durationMs: '', error: '', functionDefinitionId: '', graphExecutionId: '', jobId: '', parentInvocationId: '', payload: '', provenance: '', result: '', startedAt: '', status: '', taskIdentifier: '' }, select: { id: true } }).execute() +db.platformFunctionInvocation.create({ data: { actorId: '', apiBindingId: '', channel: '', completedAt: '', createdByPrincipal: '', databaseId: '', definitionScope: '', durationMs: '', entityId: '', entityType: '', error: '', functionDefinitionId: '', graphExecutionId: '', jobId: '', organizationId: '', parentInvocationId: '', payload: '', principalId: '', provenance: '', result: '', startedAt: '', status: '', taskIdentifier: '' }, select: { id: true } }).execute() db.platformFunctionInvocation.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute() db.platformFunctionInvocation.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.platformFunctionInvocation.findMany({ ```typescript const item = await db.platformFunctionInvocation.create({ - data: { actorId: '', apiBindingId: '', channel: '', completedAt: '', databaseId: '', definitionScope: '', durationMs: '', error: '', functionDefinitionId: '', graphExecutionId: '', jobId: '', parentInvocationId: '', payload: '', provenance: '', result: '', startedAt: '', status: '', taskIdentifier: '' }, + data: { actorId: '', apiBindingId: '', channel: '', completedAt: '', createdByPrincipal: '', databaseId: '', definitionScope: '', durationMs: '', entityId: '', entityType: '', error: '', functionDefinitionId: '', graphExecutionId: '', jobId: '', organizationId: '', parentInvocationId: '', payload: '', principalId: '', provenance: '', result: '', startedAt: '', status: '', taskIdentifier: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-compute/references/platform-function-invocations-create-sync.md b/.agents/skills/orm-compute/references/platform-function-invocations-create-sync.md new file mode 100644 index 0000000000..5c5d0f3684 --- /dev/null +++ b/.agents/skills/orm-compute/references/platform-function-invocations-create-sync.md @@ -0,0 +1,19 @@ +# platformFunctionInvocationsCreateSync + + + +Execute the platformFunctionInvocationsCreateSync mutation + +## Usage + +```typescript +db.mutation.platformFunctionInvocationsCreateSync({ input: { entityId: '', payload: '', provenance: '', routeBindingId: '', taskIdentifier: '' } }).execute() +``` + +## Examples + +### Run platformFunctionInvocationsCreateSync + +```typescript +const result = await db.mutation.platformFunctionInvocationsCreateSync({ input: { entityId: '', payload: '', provenance: '', routeBindingId: '', taskIdentifier: '' } }).execute(); +``` diff --git a/.agents/skills/orm-compute/references/platform-image-grant.md b/.agents/skills/orm-compute/references/platform-image-grant.md new file mode 100644 index 0000000000..a805ba8e73 --- /dev/null +++ b/.agents/skills/orm-compute/references/platform-image-grant.md @@ -0,0 +1,34 @@ +# platformImageGrant + + + +Grants that make a catalog image usable by one scope + +## Usage + +```typescript +db.platformImageGrant.findMany({ select: { id: true } }).execute() +db.platformImageGrant.findOne({ id: '', select: { id: true } }).execute() +db.platformImageGrant.create({ data: { actions: '', createdByPrincipal: '', expiresAt: '', grantedBy: '', granteeKey: '', granteeScope: '', imageId: '', updatedByPrincipal: '' }, select: { id: true } }).execute() +db.platformImageGrant.update({ where: { id: '' }, data: { actions: '' }, select: { id: true } }).execute() +db.platformImageGrant.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all platformImageGrant records + +```typescript +const items = await db.platformImageGrant.findMany({ + select: { id: true, actions: true } +}).execute(); +``` + +### Create a platformImageGrant + +```typescript +const item = await db.platformImageGrant.create({ + data: { actions: '', createdByPrincipal: '', expiresAt: '', grantedBy: '', granteeKey: '', granteeScope: '', imageId: '', updatedByPrincipal: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-compute/references/platform-image.md b/.agents/skills/orm-compute/references/platform-image.md new file mode 100644 index 0000000000..cab3a619c2 --- /dev/null +++ b/.agents/skills/orm-compute/references/platform-image.md @@ -0,0 +1,34 @@ +# platformImage + + + +Container image catalog: images available to run as functions, resources, and builds + +## Usage + +```typescript +db.platformImage.findMany({ select: { id: true } }).execute() +db.platformImage.findOne({ id: '', select: { id: true } }).execute() +db.platformImage.create({ data: { createdByPrincipal: '', description: '', digest: '', expiresAt: '', isPublished: '', labels: '', metadata: '', name: '', ownerId: '', platformOnly: '', registryHost: '', repository: '', runtime: '', tag: '', updatedByPrincipal: '' }, select: { id: true } }).execute() +db.platformImage.update({ where: { id: '' }, data: { createdByPrincipal: '' }, select: { id: true } }).execute() +db.platformImage.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all platformImage records + +```typescript +const items = await db.platformImage.findMany({ + select: { id: true, createdByPrincipal: true } +}).execute(); +``` + +### Create a platformImage + +```typescript +const item = await db.platformImage.create({ + data: { createdByPrincipal: '', description: '', digest: '', expiresAt: '', isPublished: '', labels: '', metadata: '', name: '', ownerId: '', platformOnly: '', registryHost: '', repository: '', runtime: '', tag: '', updatedByPrincipal: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-compute/references/platform-k-8-s-resource-kind.md b/.agents/skills/orm-compute/references/platform-k-8-s-resource-kind.md new file mode 100644 index 0000000000..96b968f423 --- /dev/null +++ b/.agents/skills/orm-compute/references/platform-k-8-s-resource-kind.md @@ -0,0 +1,34 @@ +# platformK8sResourceKind + + + +Kubernetes kind allow-list for DB-driven resources — merkle-versioned head over the infra store; the admission gate fails closed on kinds without an active row + +## Usage + +```typescript +db.platformK8sResourceKind.findMany({ select: { id: true } }).execute() +db.platformK8sResourceKind.findOne({ id: '', select: { id: true } }).execute() +db.platformK8sResourceKind.create({ data: { active: '', commitId: '', definition: '', description: '', label: '', slug: '', storeId: '' }, select: { id: true } }).execute() +db.platformK8sResourceKind.update({ where: { id: '' }, data: { active: '' }, select: { id: true } }).execute() +db.platformK8sResourceKind.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all platformK8sResourceKind records + +```typescript +const items = await db.platformK8sResourceKind.findMany({ + select: { id: true, active: true } +}).execute(); +``` + +### Create a platformK8sResourceKind + +```typescript +const item = await db.platformK8sResourceKind.create({ + data: { active: '', commitId: '', definition: '', description: '', label: '', slug: '', storeId: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-compute/references/platform-k-8-s-spec-rule.md b/.agents/skills/orm-compute/references/platform-k-8-s-spec-rule.md new file mode 100644 index 0000000000..df41595ae2 --- /dev/null +++ b/.agents/skills/orm-compute/references/platform-k-8-s-spec-rule.md @@ -0,0 +1,34 @@ +# platformK8sSpecRule + + + +Spec rulebook for DB-driven resources — merkle-versioned head over the infra store; enforced by the generated admission gate via infra_utils.check_resource_admission + +## Usage + +```typescript +db.platformK8sSpecRule.findMany({ select: { id: true } }).execute() +db.platformK8sSpecRule.findOne({ id: '', select: { id: true } }).execute() +db.platformK8sSpecRule.create({ data: { active: '', commitId: '', definition: '', description: '', label: '', slug: '', storeId: '' }, select: { id: true } }).execute() +db.platformK8sSpecRule.update({ where: { id: '' }, data: { active: '' }, select: { id: true } }).execute() +db.platformK8sSpecRule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all platformK8sSpecRule records + +```typescript +const items = await db.platformK8sSpecRule.findMany({ + select: { id: true, active: true } +}).execute(); +``` + +### Create a platformK8sSpecRule + +```typescript +const item = await db.platformK8sSpecRule.create({ + data: { active: '', commitId: '', definition: '', description: '', label: '', slug: '', storeId: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-compute/references/platform-namespace.md b/.agents/skills/orm-compute/references/platform-namespace.md index 72303c3166..60aac803d0 100644 --- a/.agents/skills/orm-compute/references/platform-namespace.md +++ b/.agents/skills/orm-compute/references/platform-namespace.md @@ -9,7 +9,7 @@ Logical namespace containers for grouping secrets, config, functions, and other ```typescript db.platformNamespace.findMany({ select: { id: true } }).execute() db.platformNamespace.findOne({ id: '', select: { id: true } }).execute() -db.platformNamespace.create({ data: { annotations: '', description: '', isActive: '', isManaged: '', labels: '', lastError: '', name: '', namespaceName: '', status: '' }, select: { id: true } }).execute() +db.platformNamespace.create({ data: { annotations: '', clusterId: '', description: '', isActive: '', isManaged: '', labels: '', lastError: '', name: '', namespaceName: '', status: '' }, select: { id: true } }).execute() db.platformNamespace.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute() db.platformNamespace.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.platformNamespace.findMany({ ```typescript const item = await db.platformNamespace.create({ - data: { annotations: '', description: '', isActive: '', isManaged: '', labels: '', lastError: '', name: '', namespaceName: '', status: '' }, + data: { annotations: '', clusterId: '', description: '', isActive: '', isManaged: '', labels: '', lastError: '', name: '', namespaceName: '', status: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-compute/references/platform-proposal-comment.md b/.agents/skills/orm-compute/references/platform-proposal-comment.md new file mode 100644 index 0000000000..f1807f8aab --- /dev/null +++ b/.agents/skills/orm-compute/references/platform-proposal-comment.md @@ -0,0 +1,40 @@ +# platformProposalComment + + + +Comments on a local proposal, optionally anchored to a line + +**pgvector embedding fields:** `embedding` +High-dimensional vector columns for semantic similarity search. Query via the Unified Search API pgvector adapter using cosine, L2, or inner-product distance. + +**Unified Search API fields:** `search` +Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. + +## Usage + +```typescript +db.platformProposalComment.findMany({ select: { id: true } }).execute() +db.platformProposalComment.findOne({ id: '', select: { id: true } }).execute() +db.platformProposalComment.create({ data: { actorId: '', attachments: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', line: '', outdatedAt: '', path: '', pathTrgmSimilarity: '', proposalId: '', resolvedAt: '', search: '', searchScore: '', searchTsvRank: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute() +db.platformProposalComment.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute() +db.platformProposalComment.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all platformProposalComment records + +```typescript +const items = await db.platformProposalComment.findMany({ + select: { id: true, actorId: true } +}).execute(); +``` + +### Create a platformProposalComment + +```typescript +const item = await db.platformProposalComment.create({ + data: { actorId: '', attachments: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', line: '', outdatedAt: '', path: '', pathTrgmSimilarity: '', proposalId: '', resolvedAt: '', search: '', searchScore: '', searchTsvRank: '', updatedBy: '', updatedByPrincipal: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-compute/references/platform-proposal-file-view.md b/.agents/skills/orm-compute/references/platform-proposal-file-view.md new file mode 100644 index 0000000000..95842c3bbb --- /dev/null +++ b/.agents/skills/orm-compute/references/platform-proposal-file-view.md @@ -0,0 +1,34 @@ +# platformProposalFileView + + + +Files a reviewer has read, pinned to the blob they read + +## Usage + +```typescript +db.platformProposalFileView.findMany({ select: { id: true } }).execute() +db.platformProposalFileView.findOne({ id: '', select: { id: true } }).execute() +db.platformProposalFileView.create({ data: { blobSha: '', createdByPrincipal: '', path: '', proposalId: '', reviewerId: '', updatedByPrincipal: '', viewedAt: '' }, select: { id: true } }).execute() +db.platformProposalFileView.update({ where: { id: '' }, data: { blobSha: '' }, select: { id: true } }).execute() +db.platformProposalFileView.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all platformProposalFileView records + +```typescript +const items = await db.platformProposalFileView.findMany({ + select: { id: true, blobSha: true } +}).execute(); +``` + +### Create a platformProposalFileView + +```typescript +const item = await db.platformProposalFileView.create({ + data: { blobSha: '', createdByPrincipal: '', path: '', proposalId: '', reviewerId: '', updatedByPrincipal: '', viewedAt: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-compute/references/platform-proposal-reaction.md b/.agents/skills/orm-compute/references/platform-proposal-reaction.md new file mode 100644 index 0000000000..29036fb64c --- /dev/null +++ b/.agents/skills/orm-compute/references/platform-proposal-reaction.md @@ -0,0 +1,34 @@ +# platformProposalReaction + + + +Emoji reactions to a local proposal or one of its comments + +## Usage + +```typescript +db.platformProposalReaction.findMany({ select: { id: true } }).execute() +db.platformProposalReaction.findOne({ id: '', select: { id: true } }).execute() +db.platformProposalReaction.create({ data: { actorId: '', commentId: '', createdByPrincipal: '', emoji: '', proposalId: '', updatedByPrincipal: '' }, select: { id: true } }).execute() +db.platformProposalReaction.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute() +db.platformProposalReaction.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all platformProposalReaction records + +```typescript +const items = await db.platformProposalReaction.findMany({ + select: { id: true, actorId: true } +}).execute(); +``` + +### Create a platformProposalReaction + +```typescript +const item = await db.platformProposalReaction.create({ + data: { actorId: '', commentId: '', createdByPrincipal: '', emoji: '', proposalId: '', updatedByPrincipal: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-compute/references/platform-proposal-review.md b/.agents/skills/orm-compute/references/platform-proposal-review.md new file mode 100644 index 0000000000..0f4e967e4e --- /dev/null +++ b/.agents/skills/orm-compute/references/platform-proposal-review.md @@ -0,0 +1,37 @@ +# platformProposalReview + + + +Review verdicts on a proposal, each pinned to the commit reviewed + +**Unified Search API fields:** `search` +Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. + +## Usage + +```typescript +db.platformProposalReview.findMany({ select: { id: true } }).execute() +db.platformProposalReview.findOne({ id: '', select: { id: true } }).execute() +db.platformProposalReview.create({ data: { body: '', bodyTrgmSimilarity: '', commitSha: '', commitShaTrgmSimilarity: '', createdByPrincipal: '', proposalId: '', reviewerId: '', search: '', searchScore: '', searchTsvRank: '', submittedAt: '', updatedByPrincipal: '', verdict: '', verdictTrgmSimilarity: '' }, select: { id: true } }).execute() +db.platformProposalReview.update({ where: { id: '' }, data: { body: '' }, select: { id: true } }).execute() +db.platformProposalReview.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all platformProposalReview records + +```typescript +const items = await db.platformProposalReview.findMany({ + select: { id: true, body: true } +}).execute(); +``` + +### Create a platformProposalReview + +```typescript +const item = await db.platformProposalReview.create({ + data: { body: '', bodyTrgmSimilarity: '', commitSha: '', commitShaTrgmSimilarity: '', createdByPrincipal: '', proposalId: '', reviewerId: '', search: '', searchScore: '', searchTsvRank: '', submittedAt: '', updatedByPrincipal: '', verdict: '', verdictTrgmSimilarity: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-compute/references/platform-proposal.md b/.agents/skills/orm-compute/references/platform-proposal.md new file mode 100644 index 0000000000..ac7791b4b6 --- /dev/null +++ b/.agents/skills/orm-compute/references/platform-proposal.md @@ -0,0 +1,40 @@ +# platformProposal + + + +Proposals against a repository: issues, changes to merge, discussions and decisions + +**pgvector embedding fields:** `embedding` +High-dimensional vector columns for semantic similarity search. Query via the Unified Search API pgvector adapter using cosine, L2, or inner-product distance. + +**Unified Search API fields:** `search` +Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. + +## Usage + +```typescript +db.platformProposal.findMany({ select: { id: true } }).execute() +db.platformProposal.findOne({ id: '', select: { id: true } }).execute() +db.platformProposal.create({ data: { actorId: '', body: '', bodyTrgmSimilarity: '', closedReason: '', closedReasonTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', decidedAt: '', dueAt: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', kind: '', kindTrgmSimilarity: '', labels: '', mergeCommit: '', mergeCommitTrgmSimilarity: '', mergeMethod: '', mergeMethodTrgmSimilarity: '', mergeRequestedAt: '', mergedAt: '', metadata: '', parentId: '', priority: '', repositoryId: '', resolution: '', resolutionTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', sourceRef: '', sourceRefTrgmSimilarity: '', status: '', statusTrgmSimilarity: '', targetRef: '', targetRefTrgmSimilarity: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute() +db.platformProposal.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute() +db.platformProposal.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all platformProposal records + +```typescript +const items = await db.platformProposal.findMany({ + select: { id: true, actorId: true } +}).execute(); +``` + +### Create a platformProposal + +```typescript +const item = await db.platformProposal.create({ + data: { actorId: '', body: '', bodyTrgmSimilarity: '', closedReason: '', closedReasonTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', decidedAt: '', dueAt: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', kind: '', kindTrgmSimilarity: '', labels: '', mergeCommit: '', mergeCommitTrgmSimilarity: '', mergeMethod: '', mergeMethodTrgmSimilarity: '', mergeRequestedAt: '', mergedAt: '', metadata: '', parentId: '', priority: '', repositoryId: '', resolution: '', resolutionTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', sourceRef: '', sourceRefTrgmSimilarity: '', status: '', statusTrgmSimilarity: '', targetRef: '', targetRefTrgmSimilarity: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-compute/references/platform-proposals-chunk.md b/.agents/skills/orm-compute/references/platform-proposals-chunk.md new file mode 100644 index 0000000000..0622a46f1d --- /dev/null +++ b/.agents/skills/orm-compute/references/platform-proposals-chunk.md @@ -0,0 +1,37 @@ +# platformProposalsChunk + + + +ORM operations for PlatformProposalsChunk records + +**pgvector embedding fields:** `embedding` +High-dimensional vector columns for semantic similarity search. Query via the Unified Search API pgvector adapter using cosine, L2, or inner-product distance. + +## Usage + +```typescript +db.platformProposalsChunk.findMany({ select: { id: true } }).execute() +db.platformProposalsChunk.findOne({ id: '', select: { id: true } }).execute() +db.platformProposalsChunk.create({ data: { actorId: '', body: '', chunkIndex: '', embedding: '', embeddingVectorDistance: '', metadata: '', platformProposalsId: '', searchScore: '' }, select: { id: true } }).execute() +db.platformProposalsChunk.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute() +db.platformProposalsChunk.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all platformProposalsChunk records + +```typescript +const items = await db.platformProposalsChunk.findMany({ + select: { id: true, actorId: true } +}).execute(); +``` + +### Create a platformProposalsChunk + +```typescript +const item = await db.platformProposalsChunk.create({ + data: { actorId: '', body: '', chunkIndex: '', embedding: '', embeddingVectorDistance: '', metadata: '', platformProposalsId: '', searchScore: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-compute/references/platform-registry-binding.md b/.agents/skills/orm-compute/references/platform-registry-binding.md new file mode 100644 index 0000000000..68eac6975d --- /dev/null +++ b/.agents/skills/orm-compute/references/platform-registry-binding.md @@ -0,0 +1,34 @@ +# platformRegistryBinding + + + +Binds a namespace to an installed container registry for a lane (realm) — the reconciler projects that registry's credentials into the namespace as an image pull secret + +## Usage + +```typescript +db.platformRegistryBinding.findMany({ select: { id: true } }).execute() +db.platformRegistryBinding.findOne({ id: '', select: { id: true } }).execute() +db.platformRegistryBinding.create({ data: { createdBy: '', createdByPrincipal: '', metadata: '', namespaceId: '', observedCredentialVersion: '', pullSecretName: '', realm: '', registryHost: '', registryId: '', status: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute() +db.platformRegistryBinding.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute() +db.platformRegistryBinding.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all platformRegistryBinding records + +```typescript +const items = await db.platformRegistryBinding.findMany({ + select: { id: true, createdBy: true } +}).execute(); +``` + +### Create a platformRegistryBinding + +```typescript +const item = await db.platformRegistryBinding.create({ + data: { createdBy: '', createdByPrincipal: '', metadata: '', namespaceId: '', observedCredentialVersion: '', pullSecretName: '', realm: '', registryHost: '', registryId: '', status: '', updatedBy: '', updatedByPrincipal: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-compute/references/platform-registry-grant.md b/.agents/skills/orm-compute/references/platform-registry-grant.md new file mode 100644 index 0000000000..714289d194 --- /dev/null +++ b/.agents/skills/orm-compute/references/platform-registry-grant.md @@ -0,0 +1,34 @@ +# platformRegistryGrant + + + +Grants that make a registry usable by one scope + +## Usage + +```typescript +db.platformRegistryGrant.findMany({ select: { id: true } }).execute() +db.platformRegistryGrant.findOne({ id: '', select: { id: true } }).execute() +db.platformRegistryGrant.create({ data: { actions: '', createdByPrincipal: '', expiresAt: '', grantedBy: '', granteeKey: '', granteeScope: '', registryId: '', updatedByPrincipal: '' }, select: { id: true } }).execute() +db.platformRegistryGrant.update({ where: { id: '' }, data: { actions: '' }, select: { id: true } }).execute() +db.platformRegistryGrant.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all platformRegistryGrant records + +```typescript +const items = await db.platformRegistryGrant.findMany({ + select: { id: true, actions: true } +}).execute(); +``` + +### Create a platformRegistryGrant + +```typescript +const item = await db.platformRegistryGrant.create({ + data: { actions: '', createdByPrincipal: '', expiresAt: '', grantedBy: '', granteeKey: '', granteeScope: '', registryId: '', updatedByPrincipal: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-compute/references/platform-registry.md b/.agents/skills/orm-compute/references/platform-registry.md new file mode 100644 index 0000000000..b1d130c984 --- /dev/null +++ b/.agents/skills/orm-compute/references/platform-registry.md @@ -0,0 +1,34 @@ +# platformRegistry + + + +Artifact registries this scope pulls from or pushes to (OCI images, npm packages), platform-run or external + +## Usage + +```typescript +db.platformRegistry.findMany({ select: { id: true } }).execute() +db.platformRegistry.findOne({ id: '', select: { id: true } }).execute() +db.platformRegistry.create({ data: { authMode: '', basePath: '', createdByPrincipal: '', credentialSecretName: '', host: '', installationId: '', isPublished: '', kind: '', labels: '', lastError: '', metadata: '', name: '', platformOnly: '', role: '', status: '', updatedByPrincipal: '' }, select: { id: true } }).execute() +db.platformRegistry.update({ where: { id: '' }, data: { authMode: '' }, select: { id: true } }).execute() +db.platformRegistry.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all platformRegistry records + +```typescript +const items = await db.platformRegistry.findMany({ + select: { id: true, authMode: true } +}).execute(); +``` + +### Create a platformRegistry + +```typescript +const item = await db.platformRegistry.create({ + data: { authMode: '', basePath: '', createdByPrincipal: '', credentialSecretName: '', host: '', installationId: '', isPublished: '', kind: '', labels: '', lastError: '', metadata: '', name: '', platformOnly: '', role: '', status: '', updatedByPrincipal: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-compute/references/platform-repository-event.md b/.agents/skills/orm-compute/references/platform-repository-event.md new file mode 100644 index 0000000000..c10ca62501 --- /dev/null +++ b/.agents/skills/orm-compute/references/platform-repository-event.md @@ -0,0 +1,34 @@ +# platformRepositoryEvent + + + +Normalized repository events from local hooks and external providers + +## Usage + +```typescript +db.platformRepositoryEvent.findMany({ select: { id: true } }).execute() +db.platformRepositoryEvent.findOne({ id: '', select: { id: true } }).execute() +db.platformRepositoryEvent.create({ data: { actorId: '', commitSha: '', createdByPrincipal: '', deliveryId: '', eventType: '', metadata: '', payload: '', ref: '', repositoryId: '', updatedByPrincipal: '' }, select: { id: true } }).execute() +db.platformRepositoryEvent.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute() +db.platformRepositoryEvent.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all platformRepositoryEvent records + +```typescript +const items = await db.platformRepositoryEvent.findMany({ + select: { id: true, actorId: true } +}).execute(); +``` + +### Create a platformRepositoryEvent + +```typescript +const item = await db.platformRepositoryEvent.create({ + data: { actorId: '', commitSha: '', createdByPrincipal: '', deliveryId: '', eventType: '', metadata: '', payload: '', ref: '', repositoryId: '', updatedByPrincipal: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-compute/references/platform-repository-required-check.md b/.agents/skills/orm-compute/references/platform-repository-required-check.md new file mode 100644 index 0000000000..2b2ca53bac --- /dev/null +++ b/.agents/skills/orm-compute/references/platform-repository-required-check.md @@ -0,0 +1,34 @@ +# platformRepositoryRequiredCheck + + + +Workflows required to pass before a repository proposal merges + +## Usage + +```typescript +db.platformRepositoryRequiredCheck.findMany({ select: { id: true } }).execute() +db.platformRepositoryRequiredCheck.findOne({ id: '', select: { id: true } }).execute() +db.platformRepositoryRequiredCheck.create({ data: { repositoryId: '', workflowId: '' }, select: { id: true } }).execute() +db.platformRepositoryRequiredCheck.update({ where: { id: '' }, data: { repositoryId: '' }, select: { id: true } }).execute() +db.platformRepositoryRequiredCheck.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all platformRepositoryRequiredCheck records + +```typescript +const items = await db.platformRepositoryRequiredCheck.findMany({ + select: { id: true, repositoryId: true } +}).execute(); +``` + +### Create a platformRepositoryRequiredCheck + +```typescript +const item = await db.platformRepositoryRequiredCheck.create({ + data: { repositoryId: '', workflowId: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-compute/references/platform-repository-workflow.md b/.agents/skills/orm-compute/references/platform-repository-workflow.md new file mode 100644 index 0000000000..944d041762 --- /dev/null +++ b/.agents/skills/orm-compute/references/platform-repository-workflow.md @@ -0,0 +1,34 @@ +# platformRepositoryWorkflow + + + +Bindings from a repository event to the flow graph that should run + +## Usage + +```typescript +db.platformRepositoryWorkflow.findMany({ select: { id: true } }).execute() +db.platformRepositoryWorkflow.findOne({ id: '', select: { id: true } }).execute() +db.platformRepositoryWorkflow.create({ data: { cancelInProgress: '', concurrencyKey: '', createdBy: '', createdByPrincipal: '', eventType: '', graphId: '', inputs: '', isEnabled: '', name: '', refPattern: '', repositoryId: '', requiredSecrets: '', slug: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute() +db.platformRepositoryWorkflow.update({ where: { id: '' }, data: { cancelInProgress: '' }, select: { id: true } }).execute() +db.platformRepositoryWorkflow.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all platformRepositoryWorkflow records + +```typescript +const items = await db.platformRepositoryWorkflow.findMany({ + select: { id: true, cancelInProgress: true } +}).execute(); +``` + +### Create a platformRepositoryWorkflow + +```typescript +const item = await db.platformRepositoryWorkflow.create({ + data: { cancelInProgress: '', concurrencyKey: '', createdBy: '', createdByPrincipal: '', eventType: '', graphId: '', inputs: '', isEnabled: '', name: '', refPattern: '', repositoryId: '', requiredSecrets: '', slug: '', updatedBy: '', updatedByPrincipal: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-compute/references/platform-repository.md b/.agents/skills/orm-compute/references/platform-repository.md new file mode 100644 index 0000000000..b5cafd0f7f --- /dev/null +++ b/.agents/skills/orm-compute/references/platform-repository.md @@ -0,0 +1,40 @@ +# platformRepository + + + +Source repositories, hosted locally or on an external provider + +**pgvector embedding fields:** `embedding` +High-dimensional vector columns for semantic similarity search. Query via the Unified Search API pgvector adapter using cosine, L2, or inner-product distance. + +**Unified Search API fields:** `search` +Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. + +## Usage + +```typescript +db.platformRepository.findMany({ select: { id: true } }).execute() +db.platformRepository.findOne({ id: '', select: { id: true } }).execute() +db.platformRepository.create({ data: { cloneUrl: '', cloneUrlTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', defaultBranch: '', defaultBranchTrgmSimilarity: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', externalId: '', externalIdTrgmSimilarity: '', isArchived: '', metadata: '', name: '', nameTrgmSimilarity: '', ownerId: '', provider: '', providerTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', slug: '', slugTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '', visibility: '', visibilityTrgmSimilarity: '' }, select: { id: true } }).execute() +db.platformRepository.update({ where: { id: '' }, data: { cloneUrl: '' }, select: { id: true } }).execute() +db.platformRepository.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all platformRepository records + +```typescript +const items = await db.platformRepository.findMany({ + select: { id: true, cloneUrl: true } +}).execute(); +``` + +### Create a platformRepository + +```typescript +const item = await db.platformRepository.create({ + data: { cloneUrl: '', cloneUrlTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', defaultBranch: '', defaultBranchTrgmSimilarity: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', externalId: '', externalIdTrgmSimilarity: '', isArchived: '', metadata: '', name: '', nameTrgmSimilarity: '', ownerId: '', provider: '', providerTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', slug: '', slugTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '', visibility: '', visibilityTrgmSimilarity: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-compute/references/platform-resource-declared-capacity.md b/.agents/skills/orm-compute/references/platform-resource-declared-capacity.md index 0ee48d4d8b..e684acf225 100644 --- a/.agents/skills/orm-compute/references/platform-resource-declared-capacity.md +++ b/.agents/skills/orm-compute/references/platform-resource-declared-capacity.md @@ -9,7 +9,7 @@ ORM operations for PlatformResourceDeclaredCapacity records ```typescript db.platformResourceDeclaredCapacity.findMany({ select: { id: true } }).execute() db.platformResourceDeclaredCapacity.findOne({ id: '', select: { id: true } }).execute() -db.platformResourceDeclaredCapacity.create({ data: { cpuLimitMillicores: '', cpuRequestMillicores: '', installationId: '', isTransient: '', kind: '', memoryLimitBytes: '', memoryRequestBytes: '', namespaceId: '', podCountMax: '', podCountMin: '', source: '', sourceId: '', storageSizeBytes: '' }, select: { id: true } }).execute() +db.platformResourceDeclaredCapacity.create({ data: { cpuLimitMillicores: '', cpuRequestMillicores: '', installationId: '', isTransient: '', kind: '', memoryLimitBytes: '', memoryRequestBytes: '', namespaceId: '', podCountMax: '', podCountMin: '', source: '', sourceId: '', storageSizeBytes: '', storageTotalBytes: '' }, select: { id: true } }).execute() db.platformResourceDeclaredCapacity.update({ where: { id: '' }, data: { cpuLimitMillicores: '' }, select: { id: true } }).execute() db.platformResourceDeclaredCapacity.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.platformResourceDeclaredCapacity.findMany({ ```typescript const item = await db.platformResourceDeclaredCapacity.create({ - data: { cpuLimitMillicores: '', cpuRequestMillicores: '', installationId: '', isTransient: '', kind: '', memoryLimitBytes: '', memoryRequestBytes: '', namespaceId: '', podCountMax: '', podCountMin: '', source: '', sourceId: '', storageSizeBytes: '' }, + data: { cpuLimitMillicores: '', cpuRequestMillicores: '', installationId: '', isTransient: '', kind: '', memoryLimitBytes: '', memoryRequestBytes: '', namespaceId: '', podCountMax: '', podCountMin: '', source: '', sourceId: '', storageSizeBytes: '', storageTotalBytes: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-compute/references/platform-resource-definition.md b/.agents/skills/orm-compute/references/platform-resource-definition.md index 83d535858f..05eb60450b 100644 --- a/.agents/skills/orm-compute/references/platform-resource-definition.md +++ b/.agents/skills/orm-compute/references/platform-resource-definition.md @@ -9,7 +9,7 @@ Resource definitions — templates for resource kinds declaring default spec and ```typescript db.platformResourceDefinition.findMany({ select: { id: true } }).execute() db.platformResourceDefinition.findOne({ id: '', select: { id: true } }).execute() -db.platformResourceDefinition.create({ data: { annotations: '', createdBy: '', defaultSpec: '', description: '', integrations: '', kind: '', labels: '', name: '', namespaceId: '', paramsSchema: '', requiredConfigs: '', requiredSecrets: '', slug: '', stepUpMinAge: '', updatedBy: '' }, select: { id: true } }).execute() +db.platformResourceDefinition.create({ data: { annotations: '', createdBy: '', createdByPrincipal: '', defaultSpec: '', description: '', integrations: '', kind: '', labels: '', name: '', namespaceId: '', paramsSchema: '', requiredConfigs: '', requiredSecrets: '', slug: '', stepUpMinAge: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute() db.platformResourceDefinition.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute() db.platformResourceDefinition.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.platformResourceDefinition.findMany({ ```typescript const item = await db.platformResourceDefinition.create({ - data: { annotations: '', createdBy: '', defaultSpec: '', description: '', integrations: '', kind: '', labels: '', name: '', namespaceId: '', paramsSchema: '', requiredConfigs: '', requiredSecrets: '', slug: '', stepUpMinAge: '', updatedBy: '' }, + data: { annotations: '', createdBy: '', createdByPrincipal: '', defaultSpec: '', description: '', integrations: '', kind: '', labels: '', name: '', namespaceId: '', paramsSchema: '', requiredConfigs: '', requiredSecrets: '', slug: '', stepUpMinAge: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-compute/references/platform-resource-installation.md b/.agents/skills/orm-compute/references/platform-resource-installation.md index ac24c9b5d1..15b3f9eb1f 100644 --- a/.agents/skills/orm-compute/references/platform-resource-installation.md +++ b/.agents/skills/orm-compute/references/platform-resource-installation.md @@ -9,7 +9,7 @@ Installed resource bundle ("release") — groups a set of resources; params are ```typescript db.platformResourceInstallation.findMany({ select: { id: true } }).execute() db.platformResourceInstallation.findOne({ id: '', select: { id: true } }).execute() -db.platformResourceInstallation.create({ data: { commitId: '', createdBy: '', name: '', namespaceId: '', params: '', revision: '', slug: '', status: '', storeId: '', updatedBy: '' }, select: { id: true } }).execute() +db.platformResourceInstallation.create({ data: { commitId: '', createdBy: '', createdByPrincipal: '', name: '', namespaceId: '', params: '', revision: '', slug: '', status: '', storeId: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute() db.platformResourceInstallation.update({ where: { id: '' }, data: { commitId: '' }, select: { id: true } }).execute() db.platformResourceInstallation.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.platformResourceInstallation.findMany({ ```typescript const item = await db.platformResourceInstallation.create({ - data: { commitId: '', createdBy: '', name: '', namespaceId: '', params: '', revision: '', slug: '', status: '', storeId: '', updatedBy: '' }, + data: { commitId: '', createdBy: '', createdByPrincipal: '', name: '', namespaceId: '', params: '', revision: '', slug: '', status: '', storeId: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-compute/references/platform-resource-observed-storage.md b/.agents/skills/orm-compute/references/platform-resource-observed-storage.md new file mode 100644 index 0000000000..d972742369 --- /dev/null +++ b/.agents/skills/orm-compute/references/platform-resource-observed-storage.md @@ -0,0 +1,34 @@ +# platformResourceObservedStorage + + + +ORM operations for PlatformResourceObservedStorage records + +## Usage + +```typescript +db.platformResourceObservedStorage.findMany({ select: { id: true } }).execute() +db.platformResourceObservedStorage.findOne({ id: '', select: { id: true } }).execute() +db.platformResourceObservedStorage.create({ data: { capacity: '', capacityBytes: '', claimName: '', declaredStorageClass: '', declaredStorageSizeBytes: '', declaredStorageTotalBytes: '', installationId: '', isBound: '', kind: '', namespaceId: '', phase: '', requested: '', requestedBytes: '', resourceId: '', resourceStatus: '', slug: '', storageClass: '', storageName: '' }, select: { id: true } }).execute() +db.platformResourceObservedStorage.update({ where: { id: '' }, data: { capacity: '' }, select: { id: true } }).execute() +db.platformResourceObservedStorage.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all platformResourceObservedStorage records + +```typescript +const items = await db.platformResourceObservedStorage.findMany({ + select: { id: true, capacity: true } +}).execute(); +``` + +### Create a platformResourceObservedStorage + +```typescript +const item = await db.platformResourceObservedStorage.create({ + data: { capacity: '', capacityBytes: '', claimName: '', declaredStorageClass: '', declaredStorageSizeBytes: '', declaredStorageTotalBytes: '', installationId: '', isBound: '', kind: '', namespaceId: '', phase: '', requested: '', requestedBytes: '', resourceId: '', resourceStatus: '', slug: '', storageClass: '', storageName: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-compute/references/platform-resource.md b/.agents/skills/orm-compute/references/platform-resource.md index 009cd7f02e..effc90b98c 100644 --- a/.agents/skills/orm-compute/references/platform-resource.md +++ b/.agents/skills/orm-compute/references/platform-resource.md @@ -9,7 +9,7 @@ Unified K8s resource declarations — stores desired state (spec) and observed s ```typescript db.platformResource.findMany({ select: { id: true } }).execute() db.platformResource.findOne({ id: '', select: { id: true } }).execute() -db.platformResource.create({ data: { annotations: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', errorCount: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusObserved: '', storageClass: '', storageSizeBytes: '', updatedBy: '' }, select: { id: true } }).execute() +db.platformResource.create({ data: { annotations: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', createdByPrincipal: '', errorCount: '', imageRef: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusObserved: '', storageClass: '', storageSizeBytes: '', storageTotalBytes: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute() db.platformResource.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute() db.platformResource.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.platformResource.findMany({ ```typescript const item = await db.platformResource.create({ - data: { annotations: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', errorCount: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusObserved: '', storageClass: '', storageSizeBytes: '', updatedBy: '' }, + data: { annotations: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', createdByPrincipal: '', errorCount: '', imageRef: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusObserved: '', storageClass: '', storageSizeBytes: '', storageTotalBytes: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-compute/references/platform-resources-health.md b/.agents/skills/orm-compute/references/platform-resources-health.md index 13c8966a87..f2a3a0467e 100644 --- a/.agents/skills/orm-compute/references/platform-resources-health.md +++ b/.agents/skills/orm-compute/references/platform-resources-health.md @@ -9,7 +9,7 @@ ORM operations for PlatformResourcesHealth records ```typescript db.platformResourcesHealth.findMany({ select: { id: true } }).execute() db.platformResourcesHealth.findOne({ id: '', select: { id: true } }).execute() -db.platformResourcesHealth.create({ data: { annotations: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', errorCount: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusDetail: '', statusObserved: '', storageClass: '', storageSizeBytes: '', updatedBy: '' }, select: { id: true } }).execute() +db.platformResourcesHealth.create({ data: { annotations: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', createdByPrincipal: '', errorCount: '', imageRef: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusDetail: '', statusObserved: '', storageClass: '', storageSizeBytes: '', storageTotalBytes: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute() db.platformResourcesHealth.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute() db.platformResourcesHealth.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.platformResourcesHealth.findMany({ ```typescript const item = await db.platformResourcesHealth.create({ - data: { annotations: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', errorCount: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusDetail: '', statusObserved: '', storageClass: '', storageSizeBytes: '', updatedBy: '' }, + data: { annotations: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', createdByPrincipal: '', errorCount: '', imageRef: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusDetail: '', statusObserved: '', storageClass: '', storageSizeBytes: '', storageTotalBytes: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-compute/references/platform-webhook-endpoint.md b/.agents/skills/orm-compute/references/platform-webhook-endpoint.md index c50394646a..9cd27c3d4f 100644 --- a/.agents/skills/orm-compute/references/platform-webhook-endpoint.md +++ b/.agents/skills/orm-compute/references/platform-webhook-endpoint.md @@ -9,7 +9,7 @@ Webhook route authority: (host, path) -> function task_identifier invoked throug ```typescript db.platformWebhookEndpoint.findMany({ select: { id: true } }).execute() db.platformWebhookEndpoint.findOne({ id: '', select: { id: true } }).execute() -db.platformWebhookEndpoint.create({ data: { active: '', createdBy: '', functionDefinitionId: '', host: '', namespaceId: '', path: '', provider: '', replayWindowSeconds: '', signingSecretName: '', updatedBy: '' }, select: { id: true } }).execute() +db.platformWebhookEndpoint.create({ data: { active: '', createdBy: '', createdByPrincipal: '', functionDefinitionId: '', host: '', namespaceId: '', path: '', provider: '', replayWindowSeconds: '', signingSecretName: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute() db.platformWebhookEndpoint.update({ where: { id: '' }, data: { active: '' }, select: { id: true } }).execute() db.platformWebhookEndpoint.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.platformWebhookEndpoint.findMany({ ```typescript const item = await db.platformWebhookEndpoint.create({ - data: { active: '', createdBy: '', functionDefinitionId: '', host: '', namespaceId: '', path: '', provider: '', replayWindowSeconds: '', signingSecretName: '', updatedBy: '' }, + data: { active: '', createdBy: '', createdByPrincipal: '', functionDefinitionId: '', host: '', namespaceId: '', path: '', provider: '', replayWindowSeconds: '', signingSecretName: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-compute/references/proposal-comment.md b/.agents/skills/orm-compute/references/proposal-comment.md new file mode 100644 index 0000000000..83de788c02 --- /dev/null +++ b/.agents/skills/orm-compute/references/proposal-comment.md @@ -0,0 +1,40 @@ +# proposalComment + + + +Comments on a local proposal, optionally anchored to a line + +**pgvector embedding fields:** `embedding` +High-dimensional vector columns for semantic similarity search. Query via the Unified Search API pgvector adapter using cosine, L2, or inner-product distance. + +**Unified Search API fields:** `search` +Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. + +## Usage + +```typescript +db.proposalComment.findMany({ select: { id: true } }).execute() +db.proposalComment.findOne({ id: '', select: { id: true } }).execute() +db.proposalComment.create({ data: { actorId: '', attachments: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', line: '', outdatedAt: '', path: '', pathTrgmSimilarity: '', proposalId: '', resolvedAt: '', search: '', searchScore: '', searchTsvRank: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute() +db.proposalComment.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute() +db.proposalComment.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all proposalComment records + +```typescript +const items = await db.proposalComment.findMany({ + select: { id: true, actorId: true } +}).execute(); +``` + +### Create a proposalComment + +```typescript +const item = await db.proposalComment.create({ + data: { actorId: '', attachments: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', line: '', outdatedAt: '', path: '', pathTrgmSimilarity: '', proposalId: '', resolvedAt: '', search: '', searchScore: '', searchTsvRank: '', updatedBy: '', updatedByPrincipal: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-compute/references/proposal-file-view.md b/.agents/skills/orm-compute/references/proposal-file-view.md new file mode 100644 index 0000000000..6327935464 --- /dev/null +++ b/.agents/skills/orm-compute/references/proposal-file-view.md @@ -0,0 +1,34 @@ +# proposalFileView + + + +Files a reviewer has read, pinned to the blob they read + +## Usage + +```typescript +db.proposalFileView.findMany({ select: { id: true } }).execute() +db.proposalFileView.findOne({ id: '', select: { id: true } }).execute() +db.proposalFileView.create({ data: { blobSha: '', createdByPrincipal: '', databaseId: '', path: '', proposalId: '', reviewerId: '', updatedByPrincipal: '', viewedAt: '' }, select: { id: true } }).execute() +db.proposalFileView.update({ where: { id: '' }, data: { blobSha: '' }, select: { id: true } }).execute() +db.proposalFileView.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all proposalFileView records + +```typescript +const items = await db.proposalFileView.findMany({ + select: { id: true, blobSha: true } +}).execute(); +``` + +### Create a proposalFileView + +```typescript +const item = await db.proposalFileView.create({ + data: { blobSha: '', createdByPrincipal: '', databaseId: '', path: '', proposalId: '', reviewerId: '', updatedByPrincipal: '', viewedAt: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-compute/references/proposal-reaction.md b/.agents/skills/orm-compute/references/proposal-reaction.md new file mode 100644 index 0000000000..8119c966c2 --- /dev/null +++ b/.agents/skills/orm-compute/references/proposal-reaction.md @@ -0,0 +1,34 @@ +# proposalReaction + + + +Emoji reactions to a local proposal or one of its comments + +## Usage + +```typescript +db.proposalReaction.findMany({ select: { id: true } }).execute() +db.proposalReaction.findOne({ id: '', select: { id: true } }).execute() +db.proposalReaction.create({ data: { actorId: '', commentId: '', createdByPrincipal: '', databaseId: '', emoji: '', proposalId: '', updatedByPrincipal: '' }, select: { id: true } }).execute() +db.proposalReaction.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute() +db.proposalReaction.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all proposalReaction records + +```typescript +const items = await db.proposalReaction.findMany({ + select: { id: true, actorId: true } +}).execute(); +``` + +### Create a proposalReaction + +```typescript +const item = await db.proposalReaction.create({ + data: { actorId: '', commentId: '', createdByPrincipal: '', databaseId: '', emoji: '', proposalId: '', updatedByPrincipal: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-compute/references/proposal-review.md b/.agents/skills/orm-compute/references/proposal-review.md new file mode 100644 index 0000000000..4c02e93ca1 --- /dev/null +++ b/.agents/skills/orm-compute/references/proposal-review.md @@ -0,0 +1,37 @@ +# proposalReview + + + +Review verdicts on a proposal, each pinned to the commit reviewed + +**Unified Search API fields:** `search` +Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. + +## Usage + +```typescript +db.proposalReview.findMany({ select: { id: true } }).execute() +db.proposalReview.findOne({ id: '', select: { id: true } }).execute() +db.proposalReview.create({ data: { body: '', bodyTrgmSimilarity: '', commitSha: '', commitShaTrgmSimilarity: '', createdByPrincipal: '', databaseId: '', proposalId: '', reviewerId: '', search: '', searchScore: '', searchTsvRank: '', submittedAt: '', updatedByPrincipal: '', verdict: '', verdictTrgmSimilarity: '' }, select: { id: true } }).execute() +db.proposalReview.update({ where: { id: '' }, data: { body: '' }, select: { id: true } }).execute() +db.proposalReview.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all proposalReview records + +```typescript +const items = await db.proposalReview.findMany({ + select: { id: true, body: true } +}).execute(); +``` + +### Create a proposalReview + +```typescript +const item = await db.proposalReview.create({ + data: { body: '', bodyTrgmSimilarity: '', commitSha: '', commitShaTrgmSimilarity: '', createdByPrincipal: '', databaseId: '', proposalId: '', reviewerId: '', search: '', searchScore: '', searchTsvRank: '', submittedAt: '', updatedByPrincipal: '', verdict: '', verdictTrgmSimilarity: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-compute/references/proposal.md b/.agents/skills/orm-compute/references/proposal.md new file mode 100644 index 0000000000..c4851f192a --- /dev/null +++ b/.agents/skills/orm-compute/references/proposal.md @@ -0,0 +1,40 @@ +# proposal + + + +Proposals against a repository: issues, changes to merge, discussions and decisions + +**pgvector embedding fields:** `embedding` +High-dimensional vector columns for semantic similarity search. Query via the Unified Search API pgvector adapter using cosine, L2, or inner-product distance. + +**Unified Search API fields:** `search` +Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. + +## Usage + +```typescript +db.proposal.findMany({ select: { id: true } }).execute() +db.proposal.findOne({ id: '', select: { id: true } }).execute() +db.proposal.create({ data: { actorId: '', body: '', bodyTrgmSimilarity: '', closedReason: '', closedReasonTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', decidedAt: '', dueAt: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', kind: '', kindTrgmSimilarity: '', labels: '', mergeCommit: '', mergeCommitTrgmSimilarity: '', mergeMethod: '', mergeMethodTrgmSimilarity: '', mergeRequestedAt: '', mergedAt: '', metadata: '', parentId: '', priority: '', repositoryId: '', resolution: '', resolutionTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', sourceRef: '', sourceRefTrgmSimilarity: '', status: '', statusTrgmSimilarity: '', targetRef: '', targetRefTrgmSimilarity: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute() +db.proposal.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute() +db.proposal.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all proposal records + +```typescript +const items = await db.proposal.findMany({ + select: { id: true, actorId: true } +}).execute(); +``` + +### Create a proposal + +```typescript +const item = await db.proposal.create({ + data: { actorId: '', body: '', bodyTrgmSimilarity: '', closedReason: '', closedReasonTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', decidedAt: '', dueAt: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', kind: '', kindTrgmSimilarity: '', labels: '', mergeCommit: '', mergeCommitTrgmSimilarity: '', mergeMethod: '', mergeMethodTrgmSimilarity: '', mergeRequestedAt: '', mergedAt: '', metadata: '', parentId: '', priority: '', repositoryId: '', resolution: '', resolutionTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', sourceRef: '', sourceRefTrgmSimilarity: '', status: '', statusTrgmSimilarity: '', targetRef: '', targetRefTrgmSimilarity: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-compute/references/proposals-chunk.md b/.agents/skills/orm-compute/references/proposals-chunk.md new file mode 100644 index 0000000000..3cf6fb7533 --- /dev/null +++ b/.agents/skills/orm-compute/references/proposals-chunk.md @@ -0,0 +1,37 @@ +# proposalsChunk + + + +ORM operations for ProposalsChunk records + +**pgvector embedding fields:** `embedding` +High-dimensional vector columns for semantic similarity search. Query via the Unified Search API pgvector adapter using cosine, L2, or inner-product distance. + +## Usage + +```typescript +db.proposalsChunk.findMany({ select: { id: true } }).execute() +db.proposalsChunk.findOne({ id: '', select: { id: true } }).execute() +db.proposalsChunk.create({ data: { actorId: '', body: '', chunkIndex: '', databaseId: '', embedding: '', embeddingVectorDistance: '', metadata: '', proposalsId: '', searchScore: '' }, select: { id: true } }).execute() +db.proposalsChunk.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute() +db.proposalsChunk.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all proposalsChunk records + +```typescript +const items = await db.proposalsChunk.findMany({ + select: { id: true, actorId: true } +}).execute(); +``` + +### Create a proposalsChunk + +```typescript +const item = await db.proposalsChunk.create({ + data: { actorId: '', body: '', chunkIndex: '', databaseId: '', embedding: '', embeddingVectorDistance: '', metadata: '', proposalsId: '', searchScore: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-compute/references/provision-bucket.md b/.agents/skills/orm-compute/references/provision-bucket.md index a9133530f2..eaefc02f2f 100644 --- a/.agents/skills/orm-compute/references/provision-bucket.md +++ b/.agents/skills/orm-compute/references/provision-bucket.md @@ -2,10 +2,11 @@ -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. +Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. ## Usage diff --git a/.agents/skills/orm-compute/references/registry-binding.md b/.agents/skills/orm-compute/references/registry-binding.md new file mode 100644 index 0000000000..a1cce2791b --- /dev/null +++ b/.agents/skills/orm-compute/references/registry-binding.md @@ -0,0 +1,34 @@ +# registryBinding + + + +Binds a namespace to an installed container registry for a lane (realm) — the reconciler projects that registry's credentials into the namespace as an image pull secret + +## Usage + +```typescript +db.registryBinding.findMany({ select: { id: true } }).execute() +db.registryBinding.findOne({ id: '', select: { id: true } }).execute() +db.registryBinding.create({ data: { createdBy: '', createdByPrincipal: '', databaseId: '', metadata: '', namespaceId: '', observedCredentialVersion: '', pullSecretName: '', realm: '', registryHost: '', registryId: '', status: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute() +db.registryBinding.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute() +db.registryBinding.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all registryBinding records + +```typescript +const items = await db.registryBinding.findMany({ + select: { id: true, createdBy: true } +}).execute(); +``` + +### Create a registryBinding + +```typescript +const item = await db.registryBinding.create({ + data: { createdBy: '', createdByPrincipal: '', databaseId: '', metadata: '', namespaceId: '', observedCredentialVersion: '', pullSecretName: '', realm: '', registryHost: '', registryId: '', status: '', updatedBy: '', updatedByPrincipal: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-compute/references/registry-grant.md b/.agents/skills/orm-compute/references/registry-grant.md new file mode 100644 index 0000000000..a40e65c3f2 --- /dev/null +++ b/.agents/skills/orm-compute/references/registry-grant.md @@ -0,0 +1,34 @@ +# registryGrant + + + +Grants that make a registry usable by one scope + +## Usage + +```typescript +db.registryGrant.findMany({ select: { id: true } }).execute() +db.registryGrant.findOne({ id: '', select: { id: true } }).execute() +db.registryGrant.create({ data: { actions: '', createdByPrincipal: '', databaseId: '', expiresAt: '', grantedBy: '', granteeKey: '', granteeScope: '', registryId: '', updatedByPrincipal: '' }, select: { id: true } }).execute() +db.registryGrant.update({ where: { id: '' }, data: { actions: '' }, select: { id: true } }).execute() +db.registryGrant.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all registryGrant records + +```typescript +const items = await db.registryGrant.findMany({ + select: { id: true, actions: true } +}).execute(); +``` + +### Create a registryGrant + +```typescript +const item = await db.registryGrant.create({ + data: { actions: '', createdByPrincipal: '', databaseId: '', expiresAt: '', grantedBy: '', granteeKey: '', granteeScope: '', registryId: '', updatedByPrincipal: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-compute/references/registry.md b/.agents/skills/orm-compute/references/registry.md new file mode 100644 index 0000000000..81d91d002e --- /dev/null +++ b/.agents/skills/orm-compute/references/registry.md @@ -0,0 +1,34 @@ +# registry + + + +Artifact registries this scope pulls from or pushes to (OCI images, npm packages), platform-run or external + +## Usage + +```typescript +db.registry.findMany({ select: { id: true } }).execute() +db.registry.findOne({ id: '', select: { id: true } }).execute() +db.registry.create({ data: { authMode: '', basePath: '', createdByPrincipal: '', credentialSecretName: '', databaseId: '', host: '', installationId: '', isPublished: '', kind: '', labels: '', lastError: '', metadata: '', name: '', platformOnly: '', role: '', status: '', updatedByPrincipal: '' }, select: { id: true } }).execute() +db.registry.update({ where: { id: '' }, data: { authMode: '' }, select: { id: true } }).execute() +db.registry.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all registry records + +```typescript +const items = await db.registry.findMany({ + select: { id: true, authMode: true } +}).execute(); +``` + +### Create a registry + +```typescript +const item = await db.registry.create({ + data: { authMode: '', basePath: '', createdByPrincipal: '', credentialSecretName: '', databaseId: '', host: '', installationId: '', isPublished: '', kind: '', labels: '', lastError: '', metadata: '', name: '', platformOnly: '', role: '', status: '', updatedByPrincipal: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-compute/references/repository-event.md b/.agents/skills/orm-compute/references/repository-event.md new file mode 100644 index 0000000000..fbf53a7c31 --- /dev/null +++ b/.agents/skills/orm-compute/references/repository-event.md @@ -0,0 +1,34 @@ +# repositoryEvent + + + +Normalized repository events from local hooks and external providers + +## Usage + +```typescript +db.repositoryEvent.findMany({ select: { id: true } }).execute() +db.repositoryEvent.findOne({ id: '', select: { id: true } }).execute() +db.repositoryEvent.create({ data: { actorId: '', commitSha: '', createdByPrincipal: '', databaseId: '', deliveryId: '', eventType: '', metadata: '', payload: '', ref: '', repositoryId: '', updatedByPrincipal: '' }, select: { id: true } }).execute() +db.repositoryEvent.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute() +db.repositoryEvent.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all repositoryEvent records + +```typescript +const items = await db.repositoryEvent.findMany({ + select: { id: true, actorId: true } +}).execute(); +``` + +### Create a repositoryEvent + +```typescript +const item = await db.repositoryEvent.create({ + data: { actorId: '', commitSha: '', createdByPrincipal: '', databaseId: '', deliveryId: '', eventType: '', metadata: '', payload: '', ref: '', repositoryId: '', updatedByPrincipal: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-compute/references/repository-required-check.md b/.agents/skills/orm-compute/references/repository-required-check.md new file mode 100644 index 0000000000..48104966f0 --- /dev/null +++ b/.agents/skills/orm-compute/references/repository-required-check.md @@ -0,0 +1,34 @@ +# repositoryRequiredCheck + + + +Workflows required to pass before a repository proposal merges + +## Usage + +```typescript +db.repositoryRequiredCheck.findMany({ select: { id: true } }).execute() +db.repositoryRequiredCheck.findOne({ id: '', select: { id: true } }).execute() +db.repositoryRequiredCheck.create({ data: { databaseId: '', repositoryId: '', workflowId: '' }, select: { id: true } }).execute() +db.repositoryRequiredCheck.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.repositoryRequiredCheck.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all repositoryRequiredCheck records + +```typescript +const items = await db.repositoryRequiredCheck.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a repositoryRequiredCheck + +```typescript +const item = await db.repositoryRequiredCheck.create({ + data: { databaseId: '', repositoryId: '', workflowId: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-compute/references/repository-workflow.md b/.agents/skills/orm-compute/references/repository-workflow.md new file mode 100644 index 0000000000..ec40a97e1a --- /dev/null +++ b/.agents/skills/orm-compute/references/repository-workflow.md @@ -0,0 +1,34 @@ +# repositoryWorkflow + + + +Bindings from a repository event to the flow graph that should run + +## Usage + +```typescript +db.repositoryWorkflow.findMany({ select: { id: true } }).execute() +db.repositoryWorkflow.findOne({ id: '', select: { id: true } }).execute() +db.repositoryWorkflow.create({ data: { cancelInProgress: '', concurrencyKey: '', createdBy: '', createdByPrincipal: '', databaseId: '', eventType: '', graphId: '', inputs: '', isEnabled: '', name: '', refPattern: '', repositoryId: '', requiredSecrets: '', slug: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute() +db.repositoryWorkflow.update({ where: { id: '' }, data: { cancelInProgress: '' }, select: { id: true } }).execute() +db.repositoryWorkflow.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all repositoryWorkflow records + +```typescript +const items = await db.repositoryWorkflow.findMany({ + select: { id: true, cancelInProgress: true } +}).execute(); +``` + +### Create a repositoryWorkflow + +```typescript +const item = await db.repositoryWorkflow.create({ + data: { cancelInProgress: '', concurrencyKey: '', createdBy: '', createdByPrincipal: '', databaseId: '', eventType: '', graphId: '', inputs: '', isEnabled: '', name: '', refPattern: '', repositoryId: '', requiredSecrets: '', slug: '', updatedBy: '', updatedByPrincipal: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-compute/references/repository.md b/.agents/skills/orm-compute/references/repository.md new file mode 100644 index 0000000000..bc31e9b96e --- /dev/null +++ b/.agents/skills/orm-compute/references/repository.md @@ -0,0 +1,40 @@ +# repository + + + +Source repositories, hosted locally or on an external provider + +**pgvector embedding fields:** `embedding` +High-dimensional vector columns for semantic similarity search. Query via the Unified Search API pgvector adapter using cosine, L2, or inner-product distance. + +**Unified Search API fields:** `search` +Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. + +## Usage + +```typescript +db.repository.findMany({ select: { id: true } }).execute() +db.repository.findOne({ id: '', select: { id: true } }).execute() +db.repository.create({ data: { cloneUrl: '', cloneUrlTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', defaultBranch: '', defaultBranchTrgmSimilarity: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', externalId: '', externalIdTrgmSimilarity: '', isArchived: '', metadata: '', name: '', nameTrgmSimilarity: '', ownerId: '', provider: '', providerTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', slug: '', slugTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '', visibility: '', visibilityTrgmSimilarity: '' }, select: { id: true } }).execute() +db.repository.update({ where: { id: '' }, data: { cloneUrl: '' }, select: { id: true } }).execute() +db.repository.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all repository records + +```typescript +const items = await db.repository.findMany({ + select: { id: true, cloneUrl: true } +}).execute(); +``` + +### Create a repository + +```typescript +const item = await db.repository.create({ + data: { cloneUrl: '', cloneUrlTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', defaultBranch: '', defaultBranchTrgmSimilarity: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', externalId: '', externalIdTrgmSimilarity: '', isArchived: '', metadata: '', name: '', nameTrgmSimilarity: '', ownerId: '', provider: '', providerTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', slug: '', slugTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '', visibility: '', visibilityTrgmSimilarity: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-compute/references/resource-declared-capacity.md b/.agents/skills/orm-compute/references/resource-declared-capacity.md index 064823274f..48f2b8168c 100644 --- a/.agents/skills/orm-compute/references/resource-declared-capacity.md +++ b/.agents/skills/orm-compute/references/resource-declared-capacity.md @@ -9,7 +9,7 @@ ORM operations for ResourceDeclaredCapacity records ```typescript db.resourceDeclaredCapacity.findMany({ select: { id: true } }).execute() db.resourceDeclaredCapacity.findOne({ id: '', select: { id: true } }).execute() -db.resourceDeclaredCapacity.create({ data: { cpuLimitMillicores: '', cpuRequestMillicores: '', installationId: '', isTransient: '', kind: '', memoryLimitBytes: '', memoryRequestBytes: '', namespaceId: '', podCountMax: '', podCountMin: '', source: '', sourceId: '', storageSizeBytes: '' }, select: { id: true } }).execute() +db.resourceDeclaredCapacity.create({ data: { cpuLimitMillicores: '', cpuRequestMillicores: '', installationId: '', isTransient: '', kind: '', memoryLimitBytes: '', memoryRequestBytes: '', namespaceId: '', podCountMax: '', podCountMin: '', source: '', sourceId: '', storageSizeBytes: '', storageTotalBytes: '' }, select: { id: true } }).execute() db.resourceDeclaredCapacity.update({ where: { id: '' }, data: { cpuLimitMillicores: '' }, select: { id: true } }).execute() db.resourceDeclaredCapacity.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.resourceDeclaredCapacity.findMany({ ```typescript const item = await db.resourceDeclaredCapacity.create({ - data: { cpuLimitMillicores: '', cpuRequestMillicores: '', installationId: '', isTransient: '', kind: '', memoryLimitBytes: '', memoryRequestBytes: '', namespaceId: '', podCountMax: '', podCountMin: '', source: '', sourceId: '', storageSizeBytes: '' }, + data: { cpuLimitMillicores: '', cpuRequestMillicores: '', installationId: '', isTransient: '', kind: '', memoryLimitBytes: '', memoryRequestBytes: '', namespaceId: '', podCountMax: '', podCountMin: '', source: '', sourceId: '', storageSizeBytes: '', storageTotalBytes: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-compute/references/resource-definition.md b/.agents/skills/orm-compute/references/resource-definition.md index 66f4865546..f2f587fdee 100644 --- a/.agents/skills/orm-compute/references/resource-definition.md +++ b/.agents/skills/orm-compute/references/resource-definition.md @@ -9,7 +9,7 @@ Resource definitions — templates for resource kinds declaring default spec and ```typescript db.resourceDefinition.findMany({ select: { id: true } }).execute() db.resourceDefinition.findOne({ id: '', select: { id: true } }).execute() -db.resourceDefinition.create({ data: { annotations: '', createdBy: '', databaseId: '', defaultSpec: '', description: '', integrations: '', kind: '', labels: '', name: '', namespaceId: '', paramsSchema: '', requiredConfigs: '', requiredSecrets: '', slug: '', stepUpMinAge: '', updatedBy: '' }, select: { id: true } }).execute() +db.resourceDefinition.create({ data: { annotations: '', createdBy: '', createdByPrincipal: '', databaseId: '', defaultSpec: '', description: '', integrations: '', kind: '', labels: '', name: '', namespaceId: '', paramsSchema: '', requiredConfigs: '', requiredSecrets: '', slug: '', stepUpMinAge: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute() db.resourceDefinition.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute() db.resourceDefinition.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.resourceDefinition.findMany({ ```typescript const item = await db.resourceDefinition.create({ - data: { annotations: '', createdBy: '', databaseId: '', defaultSpec: '', description: '', integrations: '', kind: '', labels: '', name: '', namespaceId: '', paramsSchema: '', requiredConfigs: '', requiredSecrets: '', slug: '', stepUpMinAge: '', updatedBy: '' }, + data: { annotations: '', createdBy: '', createdByPrincipal: '', databaseId: '', defaultSpec: '', description: '', integrations: '', kind: '', labels: '', name: '', namespaceId: '', paramsSchema: '', requiredConfigs: '', requiredSecrets: '', slug: '', stepUpMinAge: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-compute/references/resource-installation.md b/.agents/skills/orm-compute/references/resource-installation.md index eca72b2224..f4fb5d6c0e 100644 --- a/.agents/skills/orm-compute/references/resource-installation.md +++ b/.agents/skills/orm-compute/references/resource-installation.md @@ -9,7 +9,7 @@ Installed resource bundle ("release") — groups a set of resources; params are ```typescript db.resourceInstallation.findMany({ select: { id: true } }).execute() db.resourceInstallation.findOne({ id: '', select: { id: true } }).execute() -db.resourceInstallation.create({ data: { commitId: '', createdBy: '', databaseId: '', name: '', namespaceId: '', params: '', revision: '', slug: '', status: '', storeId: '', updatedBy: '' }, select: { id: true } }).execute() +db.resourceInstallation.create({ data: { commitId: '', createdBy: '', createdByPrincipal: '', databaseId: '', name: '', namespaceId: '', params: '', revision: '', slug: '', status: '', storeId: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute() db.resourceInstallation.update({ where: { id: '' }, data: { commitId: '' }, select: { id: true } }).execute() db.resourceInstallation.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.resourceInstallation.findMany({ ```typescript const item = await db.resourceInstallation.create({ - data: { commitId: '', createdBy: '', databaseId: '', name: '', namespaceId: '', params: '', revision: '', slug: '', status: '', storeId: '', updatedBy: '' }, + data: { commitId: '', createdBy: '', createdByPrincipal: '', databaseId: '', name: '', namespaceId: '', params: '', revision: '', slug: '', status: '', storeId: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-compute/references/resource-observed-storage.md b/.agents/skills/orm-compute/references/resource-observed-storage.md new file mode 100644 index 0000000000..7e716f8195 --- /dev/null +++ b/.agents/skills/orm-compute/references/resource-observed-storage.md @@ -0,0 +1,34 @@ +# resourceObservedStorage + + + +ORM operations for ResourceObservedStorage records + +## Usage + +```typescript +db.resourceObservedStorage.findMany({ select: { id: true } }).execute() +db.resourceObservedStorage.findOne({ id: '', select: { id: true } }).execute() +db.resourceObservedStorage.create({ data: { capacity: '', capacityBytes: '', claimName: '', declaredStorageClass: '', declaredStorageSizeBytes: '', declaredStorageTotalBytes: '', installationId: '', isBound: '', kind: '', namespaceId: '', phase: '', requested: '', requestedBytes: '', resourceId: '', resourceStatus: '', slug: '', storageClass: '', storageName: '' }, select: { id: true } }).execute() +db.resourceObservedStorage.update({ where: { id: '' }, data: { capacity: '' }, select: { id: true } }).execute() +db.resourceObservedStorage.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all resourceObservedStorage records + +```typescript +const items = await db.resourceObservedStorage.findMany({ + select: { id: true, capacity: true } +}).execute(); +``` + +### Create a resourceObservedStorage + +```typescript +const item = await db.resourceObservedStorage.create({ + data: { capacity: '', capacityBytes: '', claimName: '', declaredStorageClass: '', declaredStorageSizeBytes: '', declaredStorageTotalBytes: '', installationId: '', isBound: '', kind: '', namespaceId: '', phase: '', requested: '', requestedBytes: '', resourceId: '', resourceStatus: '', slug: '', storageClass: '', storageName: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-compute/references/resource.md b/.agents/skills/orm-compute/references/resource.md index 5f525e46d8..606fcae990 100644 --- a/.agents/skills/orm-compute/references/resource.md +++ b/.agents/skills/orm-compute/references/resource.md @@ -9,7 +9,7 @@ Unified K8s resource declarations — stores desired state (spec) and observed s ```typescript db.resource.findMany({ select: { id: true } }).execute() db.resource.findOne({ id: '', select: { id: true } }).execute() -db.resource.create({ data: { annotations: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', databaseId: '', errorCount: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusObserved: '', storageClass: '', storageSizeBytes: '', updatedBy: '' }, select: { id: true } }).execute() +db.resource.create({ data: { annotations: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', createdByPrincipal: '', databaseId: '', errorCount: '', imageRef: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusObserved: '', storageClass: '', storageSizeBytes: '', storageTotalBytes: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute() db.resource.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute() db.resource.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.resource.findMany({ ```typescript const item = await db.resource.create({ - data: { annotations: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', databaseId: '', errorCount: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusObserved: '', storageClass: '', storageSizeBytes: '', updatedBy: '' }, + data: { annotations: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', createdByPrincipal: '', databaseId: '', errorCount: '', imageRef: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusObserved: '', storageClass: '', storageSizeBytes: '', storageTotalBytes: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-compute/references/resources-health.md b/.agents/skills/orm-compute/references/resources-health.md index c60364f602..aef5dee277 100644 --- a/.agents/skills/orm-compute/references/resources-health.md +++ b/.agents/skills/orm-compute/references/resources-health.md @@ -9,7 +9,7 @@ ORM operations for ResourcesHealth records ```typescript db.resourcesHealth.findMany({ select: { id: true } }).execute() db.resourcesHealth.findOne({ id: '', select: { id: true } }).execute() -db.resourcesHealth.create({ data: { annotations: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', databaseId: '', errorCount: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusDetail: '', statusObserved: '', storageClass: '', storageSizeBytes: '', updatedBy: '' }, select: { id: true } }).execute() +db.resourcesHealth.create({ data: { annotations: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', createdByPrincipal: '', databaseId: '', errorCount: '', imageRef: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusDetail: '', statusObserved: '', storageClass: '', storageSizeBytes: '', storageTotalBytes: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute() db.resourcesHealth.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute() db.resourcesHealth.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.resourcesHealth.findMany({ ```typescript const item = await db.resourcesHealth.create({ - data: { annotations: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', databaseId: '', errorCount: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusDetail: '', statusObserved: '', storageClass: '', storageSizeBytes: '', updatedBy: '' }, + data: { annotations: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', createdByPrincipal: '', databaseId: '', errorCount: '', imageRef: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusDetail: '', statusObserved: '', storageClass: '', storageSizeBytes: '', storageTotalBytes: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-compute/references/webhook-endpoint.md b/.agents/skills/orm-compute/references/webhook-endpoint.md index 7fdda17dca..01072cac57 100644 --- a/.agents/skills/orm-compute/references/webhook-endpoint.md +++ b/.agents/skills/orm-compute/references/webhook-endpoint.md @@ -9,7 +9,7 @@ Webhook route authority: (host, path) -> function task_identifier invoked throug ```typescript db.webhookEndpoint.findMany({ select: { id: true } }).execute() db.webhookEndpoint.findOne({ id: '', select: { id: true } }).execute() -db.webhookEndpoint.create({ data: { active: '', createdBy: '', databaseId: '', functionDefinitionId: '', host: '', namespaceId: '', path: '', provider: '', replayWindowSeconds: '', signingSecretName: '', updatedBy: '' }, select: { id: true } }).execute() +db.webhookEndpoint.create({ data: { active: '', createdBy: '', createdByPrincipal: '', databaseId: '', functionDefinitionId: '', host: '', namespaceId: '', path: '', provider: '', replayWindowSeconds: '', signingSecretName: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute() db.webhookEndpoint.update({ where: { id: '' }, data: { active: '' }, select: { id: true } }).execute() db.webhookEndpoint.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.webhookEndpoint.findMany({ ```typescript const item = await db.webhookEndpoint.create({ - data: { active: '', createdBy: '', databaseId: '', functionDefinitionId: '', host: '', namespaceId: '', path: '', provider: '', replayWindowSeconds: '', signingSecretName: '', updatedBy: '' }, + data: { active: '', createdBy: '', createdByPrincipal: '', databaseId: '', functionDefinitionId: '', host: '', namespaceId: '', path: '', provider: '', replayWindowSeconds: '', signingSecretName: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-config/SKILL.md b/.agents/skills/orm-config/SKILL.md index 9e72381ce4..52200148ab 100644 --- a/.agents/skills/orm-config/SKILL.md +++ b/.agents/skills/orm-config/SKILL.md @@ -1,13 +1,13 @@ --- name: orm-config -description: ORM client for the config API — provides typed CRUD operations for 5 tables and 13 custom operations +description: ORM client for the config API — provides typed CRUD operations for 9 tables and 21 custom operations --- # orm-config -ORM client for the config API — provides typed CRUD operations for 5 tables and 13 custom operations +ORM client for the config API — provides typed CRUD operations for 9 tables and 21 custom operations ## Usage @@ -15,7 +15,7 @@ ORM client for the config API — provides typed CRUD operations for 5 tables an // Import the ORM client import { db } from './orm'; -// Available models: config, platformConfig, platformInternalSecret, platformSecret, secret +// Available models: appInternalSecret, config, internalConfig, internalSecret, platformConfig, platformInternalConfig, platformInternalSecret, platformSecret, ... 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.config.findMany({ +const items = await db.appInternalSecret.findMany({ select: { id: true } }).execute(); ``` @@ -37,15 +37,27 @@ const items = await db.config.findMany({ See the `references/` directory for detailed per-entity API documentation: +- [app-internal-secret](references/app-internal-secret.md) - [config](references/config.md) +- [internal-config](references/internal-config.md) +- [internal-secret](references/internal-secret.md) - [platform-config](references/platform-config.md) +- [platform-internal-config](references/platform-internal-config.md) - [platform-internal-secret](references/platform-internal-secret.md) - [platform-secret](references/platform-secret.md) - [secret](references/secret.md) +- [internal-secrets-del](references/internal-secrets-del.md) +- [internal-secrets-remove-array](references/internal-secrets-remove-array.md) +- [internal-secrets-rotate](references/internal-secrets-rotate.md) +- [internal-secrets-set](references/internal-secrets-set.md) - [secrets-del](references/secrets-del.md) - [secrets-remove-array](references/secrets-remove-array.md) - [secrets-rotate](references/secrets-rotate.md) - [secrets-set](references/secrets-set.md) +- [app-internal-secrets-del](references/app-internal-secrets-del.md) +- [app-internal-secrets-remove-array](references/app-internal-secrets-remove-array.md) +- [app-internal-secrets-rotate](references/app-internal-secrets-rotate.md) +- [app-internal-secrets-set](references/app-internal-secrets-set.md) - [platform-internal-secrets-del](references/platform-internal-secrets-del.md) - [platform-internal-secrets-remove-array](references/platform-internal-secrets-remove-array.md) - [platform-internal-secrets-rotate](references/platform-internal-secrets-rotate.md) diff --git a/.agents/skills/orm-config/references/app-internal-secret.md b/.agents/skills/orm-config/references/app-internal-secret.md new file mode 100644 index 0000000000..3837d92563 --- /dev/null +++ b/.agents/skills/orm-config/references/app-internal-secret.md @@ -0,0 +1,34 @@ +# appInternalSecret + + + +ORM operations for AppInternalSecret records + +## Usage + +```typescript +db.appInternalSecret.findMany({ select: { id: true } }).execute() +db.appInternalSecret.findOne({ id: '', select: { id: true } }).execute() +db.appInternalSecret.create({ data: { annotations: '', description: '', labels: '', name: '', realm: '', retiredAt: '', rotatedAt: '' }, select: { id: true } }).execute() +db.appInternalSecret.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute() +db.appInternalSecret.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all appInternalSecret records + +```typescript +const items = await db.appInternalSecret.findMany({ + select: { id: true, annotations: true } +}).execute(); +``` + +### Create a appInternalSecret + +```typescript +const item = await db.appInternalSecret.create({ + data: { annotations: '', description: '', labels: '', name: '', realm: '', retiredAt: '', rotatedAt: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-config/references/app-internal-secrets-del.md b/.agents/skills/orm-config/references/app-internal-secrets-del.md new file mode 100644 index 0000000000..60f3b6640a --- /dev/null +++ b/.agents/skills/orm-config/references/app-internal-secrets-del.md @@ -0,0 +1,19 @@ +# appInternalSecretsDel + + + +Execute the appInternalSecretsDel mutation + +## Usage + +```typescript +db.mutation.appInternalSecretsDel({ input: { realm: '', secretName: '' } }).execute() +``` + +## Examples + +### Run appInternalSecretsDel + +```typescript +const result = await db.mutation.appInternalSecretsDel({ input: { realm: '', secretName: '' } }).execute(); +``` diff --git a/.agents/skills/orm-config/references/app-internal-secrets-remove-array.md b/.agents/skills/orm-config/references/app-internal-secrets-remove-array.md new file mode 100644 index 0000000000..9e57184718 --- /dev/null +++ b/.agents/skills/orm-config/references/app-internal-secrets-remove-array.md @@ -0,0 +1,19 @@ +# appInternalSecretsRemoveArray + + + +Execute the appInternalSecretsRemoveArray mutation + +## Usage + +```typescript +db.mutation.appInternalSecretsRemoveArray({ input: { realm: '', secretNames: '' } }).execute() +``` + +## Examples + +### Run appInternalSecretsRemoveArray + +```typescript +const result = await db.mutation.appInternalSecretsRemoveArray({ input: { realm: '', secretNames: '' } }).execute(); +``` diff --git a/.agents/skills/orm-config/references/app-internal-secrets-rotate.md b/.agents/skills/orm-config/references/app-internal-secrets-rotate.md new file mode 100644 index 0000000000..8d0ab2c0a0 --- /dev/null +++ b/.agents/skills/orm-config/references/app-internal-secrets-rotate.md @@ -0,0 +1,19 @@ +# appInternalSecretsRotate + + + +Execute the appInternalSecretsRotate mutation + +## Usage + +```typescript +db.mutation.appInternalSecretsRotate({ input: { algo: '', realm: '', secretName: '', secretValue: '' } }).execute() +``` + +## Examples + +### Run appInternalSecretsRotate + +```typescript +const result = await db.mutation.appInternalSecretsRotate({ input: { algo: '', realm: '', secretName: '', secretValue: '' } }).execute(); +``` diff --git a/.agents/skills/orm-config/references/app-internal-secrets-set.md b/.agents/skills/orm-config/references/app-internal-secrets-set.md new file mode 100644 index 0000000000..ae7500f1a5 --- /dev/null +++ b/.agents/skills/orm-config/references/app-internal-secrets-set.md @@ -0,0 +1,19 @@ +# appInternalSecretsSet + + + +Execute the appInternalSecretsSet mutation + +## Usage + +```typescript +db.mutation.appInternalSecretsSet({ input: { algo: '', secretName: '', secretRealm: '', secretValue: '' } }).execute() +``` + +## Examples + +### Run appInternalSecretsSet + +```typescript +const result = await db.mutation.appInternalSecretsSet({ input: { algo: '', secretName: '', secretRealm: '', secretValue: '' } }).execute(); +``` diff --git a/.agents/skills/orm-config/references/config.md b/.agents/skills/orm-config/references/config.md index 374bef6b0b..d86d10a9d3 100644 --- a/.agents/skills/orm-config/references/config.md +++ b/.agents/skills/orm-config/references/config.md @@ -9,7 +9,7 @@ Namespace-backed plaintext key-value config store (like a k8s ConfigMap); admin- ```typescript db.config.findMany({ select: { id: true } }).execute() db.config.findOne({ id: '', select: { id: true } }).execute() -db.config.create({ data: { annotations: '', databaseId: '', description: '', expiresAt: '', labels: '', name: '', namespaceId: '', provider: '', realm: '', value: '' }, select: { id: true } }).execute() +db.config.create({ data: { annotations: '', createdByPrincipal: '', databaseId: '', description: '', expiresAt: '', labels: '', name: '', namespaceId: '', provider: '', realm: '', updatedByPrincipal: '', value: '' }, select: { id: true } }).execute() db.config.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute() db.config.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.config.findMany({ ```typescript const item = await db.config.create({ - data: { annotations: '', databaseId: '', description: '', expiresAt: '', labels: '', name: '', namespaceId: '', provider: '', realm: '', value: '' }, + data: { annotations: '', createdByPrincipal: '', databaseId: '', description: '', expiresAt: '', labels: '', name: '', namespaceId: '', provider: '', realm: '', updatedByPrincipal: '', value: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-config/references/internal-config.md b/.agents/skills/orm-config/references/internal-config.md new file mode 100644 index 0000000000..8f77eb25cc --- /dev/null +++ b/.agents/skills/orm-config/references/internal-config.md @@ -0,0 +1,34 @@ +# internalConfig + + + +-level plaintext key-value config store; database-resident, never projected into Kubernetes + +## Usage + +```typescript +db.internalConfig.findMany({ select: { id: true } }).execute() +db.internalConfig.findOne({ id: '', select: { id: true } }).execute() +db.internalConfig.create({ data: { annotations: '', databaseId: '', description: '', expiresAt: '', labels: '', name: '', provider: '', realm: '', value: '' }, select: { id: true } }).execute() +db.internalConfig.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute() +db.internalConfig.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all internalConfig records + +```typescript +const items = await db.internalConfig.findMany({ + select: { id: true, annotations: true } +}).execute(); +``` + +### Create a internalConfig + +```typescript +const item = await db.internalConfig.create({ + data: { annotations: '', databaseId: '', description: '', expiresAt: '', labels: '', name: '', provider: '', realm: '', value: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-config/references/internal-secret.md b/.agents/skills/orm-config/references/internal-secret.md new file mode 100644 index 0000000000..1b33b6952c --- /dev/null +++ b/.agents/skills/orm-config/references/internal-secret.md @@ -0,0 +1,34 @@ +# internalSecret + + + +ORM operations for InternalSecret records + +## Usage + +```typescript +db.internalSecret.findMany({ select: { id: true } }).execute() +db.internalSecret.findOne({ id: '', select: { id: true } }).execute() +db.internalSecret.create({ data: { annotations: '', databaseId: '', description: '', labels: '', name: '', realm: '', retiredAt: '', rotatedAt: '' }, select: { id: true } }).execute() +db.internalSecret.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute() +db.internalSecret.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all internalSecret records + +```typescript +const items = await db.internalSecret.findMany({ + select: { id: true, annotations: true } +}).execute(); +``` + +### Create a internalSecret + +```typescript +const item = await db.internalSecret.create({ + data: { annotations: '', databaseId: '', description: '', labels: '', name: '', realm: '', retiredAt: '', rotatedAt: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-config/references/internal-secrets-del.md b/.agents/skills/orm-config/references/internal-secrets-del.md new file mode 100644 index 0000000000..a836c7f766 --- /dev/null +++ b/.agents/skills/orm-config/references/internal-secrets-del.md @@ -0,0 +1,19 @@ +# _internalSecretsDel + + + +Execute the _internalSecretsDel mutation + +## Usage + +```typescript +db.mutation._internalSecretsDel({ input: { databaseId: '', realm: '', secretName: '' } }).execute() +``` + +## Examples + +### Run _internalSecretsDel + +```typescript +const result = await db.mutation._internalSecretsDel({ input: { databaseId: '', realm: '', secretName: '' } }).execute(); +``` diff --git a/.agents/skills/orm-config/references/internal-secrets-remove-array.md b/.agents/skills/orm-config/references/internal-secrets-remove-array.md new file mode 100644 index 0000000000..64ac2086e4 --- /dev/null +++ b/.agents/skills/orm-config/references/internal-secrets-remove-array.md @@ -0,0 +1,19 @@ +# _internalSecretsRemoveArray + + + +Execute the _internalSecretsRemoveArray mutation + +## Usage + +```typescript +db.mutation._internalSecretsRemoveArray({ input: { databaseId: '', realm: '', secretNames: '' } }).execute() +``` + +## Examples + +### Run _internalSecretsRemoveArray + +```typescript +const result = await db.mutation._internalSecretsRemoveArray({ input: { databaseId: '', realm: '', secretNames: '' } }).execute(); +``` diff --git a/.agents/skills/orm-config/references/internal-secrets-rotate.md b/.agents/skills/orm-config/references/internal-secrets-rotate.md new file mode 100644 index 0000000000..1da259ce97 --- /dev/null +++ b/.agents/skills/orm-config/references/internal-secrets-rotate.md @@ -0,0 +1,19 @@ +# _internalSecretsRotate + + + +Execute the _internalSecretsRotate mutation + +## Usage + +```typescript +db.mutation._internalSecretsRotate({ input: { algo: '', databaseId: '', realm: '', secretName: '', secretValue: '' } }).execute() +``` + +## Examples + +### Run _internalSecretsRotate + +```typescript +const result = await db.mutation._internalSecretsRotate({ input: { algo: '', databaseId: '', realm: '', secretName: '', secretValue: '' } }).execute(); +``` diff --git a/.agents/skills/orm-config/references/internal-secrets-set.md b/.agents/skills/orm-config/references/internal-secrets-set.md new file mode 100644 index 0000000000..8b207d1afb --- /dev/null +++ b/.agents/skills/orm-config/references/internal-secrets-set.md @@ -0,0 +1,19 @@ +# _internalSecretsSet + + + +Execute the _internalSecretsSet mutation + +## Usage + +```typescript +db.mutation._internalSecretsSet({ input: { algo: '', scopeDatabaseId: '', secretName: '', secretRealm: '', secretValue: '' } }).execute() +``` + +## Examples + +### Run _internalSecretsSet + +```typescript +const result = await db.mutation._internalSecretsSet({ input: { algo: '', scopeDatabaseId: '', secretName: '', secretRealm: '', secretValue: '' } }).execute(); +``` diff --git a/.agents/skills/orm-config/references/platform-config.md b/.agents/skills/orm-config/references/platform-config.md index 01f1df99cd..c052873596 100644 --- a/.agents/skills/orm-config/references/platform-config.md +++ b/.agents/skills/orm-config/references/platform-config.md @@ -9,7 +9,7 @@ Namespace-backed plaintext key-value config store (like a k8s ConfigMap); admin- ```typescript db.platformConfig.findMany({ select: { id: true } }).execute() db.platformConfig.findOne({ id: '', select: { id: true } }).execute() -db.platformConfig.create({ data: { annotations: '', description: '', expiresAt: '', labels: '', name: '', namespaceId: '', provider: '', realm: '', value: '' }, select: { id: true } }).execute() +db.platformConfig.create({ data: { annotations: '', createdByPrincipal: '', description: '', expiresAt: '', labels: '', name: '', namespaceId: '', provider: '', realm: '', updatedByPrincipal: '', value: '' }, select: { id: true } }).execute() db.platformConfig.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute() db.platformConfig.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.platformConfig.findMany({ ```typescript const item = await db.platformConfig.create({ - data: { annotations: '', description: '', expiresAt: '', labels: '', name: '', namespaceId: '', provider: '', realm: '', value: '' }, + data: { annotations: '', createdByPrincipal: '', description: '', expiresAt: '', labels: '', name: '', namespaceId: '', provider: '', realm: '', updatedByPrincipal: '', value: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-config/references/platform-internal-config.md b/.agents/skills/orm-config/references/platform-internal-config.md new file mode 100644 index 0000000000..dd2f02458a --- /dev/null +++ b/.agents/skills/orm-config/references/platform-internal-config.md @@ -0,0 +1,34 @@ +# platformInternalConfig + + + +platform-level plaintext key-value config store; database-resident, never projected into Kubernetes + +## Usage + +```typescript +db.platformInternalConfig.findMany({ select: { id: true } }).execute() +db.platformInternalConfig.findOne({ id: '', select: { id: true } }).execute() +db.platformInternalConfig.create({ data: { annotations: '', description: '', expiresAt: '', labels: '', name: '', provider: '', realm: '', value: '' }, select: { id: true } }).execute() +db.platformInternalConfig.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute() +db.platformInternalConfig.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all platformInternalConfig records + +```typescript +const items = await db.platformInternalConfig.findMany({ + select: { id: true, annotations: true } +}).execute(); +``` + +### Create a platformInternalConfig + +```typescript +const item = await db.platformInternalConfig.create({ + data: { annotations: '', description: '', expiresAt: '', labels: '', name: '', provider: '', realm: '', value: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-config/references/platform-internal-secret.md b/.agents/skills/orm-config/references/platform-internal-secret.md index baea942b3e..fc1a433bb5 100644 --- a/.agents/skills/orm-config/references/platform-internal-secret.md +++ b/.agents/skills/orm-config/references/platform-internal-secret.md @@ -9,7 +9,7 @@ ORM operations for PlatformInternalSecret records ```typescript db.platformInternalSecret.findMany({ select: { id: true } }).execute() db.platformInternalSecret.findOne({ id: '', select: { id: true } }).execute() -db.platformInternalSecret.create({ data: { annotations: '', description: '', labels: '', name: '', namespaceId: '', realm: '', retiredAt: '', rotatedAt: '' }, select: { id: true } }).execute() +db.platformInternalSecret.create({ data: { annotations: '', description: '', labels: '', name: '', realm: '', retiredAt: '', rotatedAt: '' }, select: { id: true } }).execute() db.platformInternalSecret.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute() db.platformInternalSecret.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.platformInternalSecret.findMany({ ```typescript const item = await db.platformInternalSecret.create({ - data: { annotations: '', description: '', labels: '', name: '', namespaceId: '', realm: '', retiredAt: '', rotatedAt: '' }, + data: { annotations: '', description: '', labels: '', name: '', realm: '', retiredAt: '', rotatedAt: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-config/references/platform-internal-secrets-del.md b/.agents/skills/orm-config/references/platform-internal-secrets-del.md index d80f520dd9..02fb56ded9 100644 --- a/.agents/skills/orm-config/references/platform-internal-secrets-del.md +++ b/.agents/skills/orm-config/references/platform-internal-secrets-del.md @@ -7,7 +7,7 @@ Execute the platformInternalSecretsDel mutation ## Usage ```typescript -db.mutation.platformInternalSecretsDel({ input: { namespaceId: '', realm: '', secretName: '' } }).execute() +db.mutation.platformInternalSecretsDel({ input: { realm: '', secretName: '' } }).execute() ``` ## Examples @@ -15,5 +15,5 @@ db.mutation.platformInternalSecretsDel({ input: { namespaceId: '', realm: ### Run platformInternalSecretsDel ```typescript -const result = await db.mutation.platformInternalSecretsDel({ input: { namespaceId: '', realm: '', secretName: '' } }).execute(); +const result = await db.mutation.platformInternalSecretsDel({ input: { realm: '', secretName: '' } }).execute(); ``` diff --git a/.agents/skills/orm-config/references/platform-internal-secrets-remove-array.md b/.agents/skills/orm-config/references/platform-internal-secrets-remove-array.md index 1e8c2b3c3f..9d852d8281 100644 --- a/.agents/skills/orm-config/references/platform-internal-secrets-remove-array.md +++ b/.agents/skills/orm-config/references/platform-internal-secrets-remove-array.md @@ -7,7 +7,7 @@ Execute the platformInternalSecretsRemoveArray mutation ## Usage ```typescript -db.mutation.platformInternalSecretsRemoveArray({ input: { namespaceId: '', realm: '', secretNames: '' } }).execute() +db.mutation.platformInternalSecretsRemoveArray({ input: { realm: '', secretNames: '' } }).execute() ``` ## Examples @@ -15,5 +15,5 @@ db.mutation.platformInternalSecretsRemoveArray({ input: { namespaceId: '', ### Run platformInternalSecretsRemoveArray ```typescript -const result = await db.mutation.platformInternalSecretsRemoveArray({ input: { namespaceId: '', realm: '', secretNames: '' } }).execute(); +const result = await db.mutation.platformInternalSecretsRemoveArray({ input: { realm: '', secretNames: '' } }).execute(); ``` diff --git a/.agents/skills/orm-config/references/platform-internal-secrets-rotate.md b/.agents/skills/orm-config/references/platform-internal-secrets-rotate.md index ab3be6c572..f54ceaeb6f 100644 --- a/.agents/skills/orm-config/references/platform-internal-secrets-rotate.md +++ b/.agents/skills/orm-config/references/platform-internal-secrets-rotate.md @@ -7,7 +7,7 @@ Execute the platformInternalSecretsRotate mutation ## Usage ```typescript -db.mutation.platformInternalSecretsRotate({ input: { algo: '', namespaceId: '', realm: '', secretName: '', secretValue: '' } }).execute() +db.mutation.platformInternalSecretsRotate({ input: { algo: '', realm: '', secretName: '', secretValue: '' } }).execute() ``` ## Examples @@ -15,5 +15,5 @@ db.mutation.platformInternalSecretsRotate({ input: { algo: '', namespace ### Run platformInternalSecretsRotate ```typescript -const result = await db.mutation.platformInternalSecretsRotate({ input: { algo: '', namespaceId: '', realm: '', secretName: '', secretValue: '' } }).execute(); +const result = await db.mutation.platformInternalSecretsRotate({ input: { algo: '', realm: '', secretName: '', secretValue: '' } }).execute(); ``` diff --git a/.agents/skills/orm-config/references/platform-internal-secrets-set.md b/.agents/skills/orm-config/references/platform-internal-secrets-set.md index 54d49b49ec..5f7de64b1d 100644 --- a/.agents/skills/orm-config/references/platform-internal-secrets-set.md +++ b/.agents/skills/orm-config/references/platform-internal-secrets-set.md @@ -7,7 +7,7 @@ Execute the platformInternalSecretsSet mutation ## Usage ```typescript -db.mutation.platformInternalSecretsSet({ input: { algo: '', secretName: '', secretNamespaceId: '', secretRealm: '', secretValue: '' } }).execute() +db.mutation.platformInternalSecretsSet({ input: { algo: '', secretName: '', secretRealm: '', secretValue: '' } }).execute() ``` ## Examples @@ -15,5 +15,5 @@ db.mutation.platformInternalSecretsSet({ input: { algo: '', secretName: ### Run platformInternalSecretsSet ```typescript -const result = await db.mutation.platformInternalSecretsSet({ input: { algo: '', secretName: '', secretNamespaceId: '', secretRealm: '', secretValue: '' } }).execute(); +const result = await db.mutation.platformInternalSecretsSet({ input: { algo: '', secretName: '', secretRealm: '', secretValue: '' } }).execute(); ``` diff --git a/.agents/skills/orm-config/references/provision-bucket.md b/.agents/skills/orm-config/references/provision-bucket.md index a9133530f2..eaefc02f2f 100644 --- a/.agents/skills/orm-config/references/provision-bucket.md +++ b/.agents/skills/orm-config/references/provision-bucket.md @@ -2,10 +2,11 @@ -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. +Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. ## Usage 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/namespace.md b/.agents/skills/orm-infra/references/namespace.md index 8679b2be5f..62c957ba40 100644 --- a/.agents/skills/orm-infra/references/namespace.md +++ b/.agents/skills/orm-infra/references/namespace.md @@ -9,7 +9,7 @@ Logical namespace containers for grouping secrets, config, functions, and other ```typescript db.namespace.findMany({ select: { id: true } }).execute() db.namespace.findOne({ id: '', select: { id: true } }).execute() -db.namespace.create({ data: { annotations: '', databaseId: '', description: '', isActive: '', isManaged: '', labels: '', lastError: '', name: '', namespaceName: '', status: '' }, select: { id: true } }).execute() +db.namespace.create({ data: { annotations: '', clusterId: '', databaseId: '', description: '', isActive: '', isManaged: '', labels: '', lastError: '', name: '', namespaceName: '', status: '' }, select: { id: true } }).execute() db.namespace.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute() db.namespace.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.namespace.findMany({ ```typescript const item = await db.namespace.create({ - data: { annotations: '', databaseId: '', description: '', isActive: '', isManaged: '', labels: '', lastError: '', name: '', namespaceName: '', status: '' }, + data: { annotations: '', clusterId: '', databaseId: '', description: '', isActive: '', isManaged: '', labels: '', lastError: '', name: '', namespaceName: '', status: '' }, 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-infra/references/platform-namespace.md b/.agents/skills/orm-infra/references/platform-namespace.md index 72303c3166..60aac803d0 100644 --- a/.agents/skills/orm-infra/references/platform-namespace.md +++ b/.agents/skills/orm-infra/references/platform-namespace.md @@ -9,7 +9,7 @@ Logical namespace containers for grouping secrets, config, functions, and other ```typescript db.platformNamespace.findMany({ select: { id: true } }).execute() db.platformNamespace.findOne({ id: '', select: { id: true } }).execute() -db.platformNamespace.create({ data: { annotations: '', description: '', isActive: '', isManaged: '', labels: '', lastError: '', name: '', namespaceName: '', status: '' }, select: { id: true } }).execute() +db.platformNamespace.create({ data: { annotations: '', clusterId: '', description: '', isActive: '', isManaged: '', labels: '', lastError: '', name: '', namespaceName: '', status: '' }, select: { id: true } }).execute() db.platformNamespace.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute() db.platformNamespace.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.platformNamespace.findMany({ ```typescript const item = await db.platformNamespace.create({ - data: { annotations: '', description: '', isActive: '', isManaged: '', labels: '', lastError: '', name: '', namespaceName: '', status: '' }, + data: { annotations: '', clusterId: '', description: '', isActive: '', isManaged: '', labels: '', lastError: '', name: '', namespaceName: '', status: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-infra/references/provision-bucket.md b/.agents/skills/orm-infra/references/provision-bucket.md index a9133530f2..eaefc02f2f 100644 --- a/.agents/skills/orm-infra/references/provision-bucket.md +++ b/.agents/skills/orm-infra/references/provision-bucket.md @@ -2,10 +2,11 @@ -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. +Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. ## Usage diff --git a/.agents/skills/orm-modules/SKILL.md b/.agents/skills/orm-modules/SKILL.md index 748b992fa5..cfd562513a 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 83 tables and 3 custom operations +description: ORM client for the modules API — provides typed CRUD operations for 88 tables and 3 custom operations --- # orm-modules -ORM client for the modules API — provides typed CRUD operations for 83 tables and 3 custom operations +ORM client for the modules API — provides typed CRUD operations for 88 tables and 3 custom operations ## Usage @@ -47,8 +47,8 @@ See the `references/` directory for detailed per-entity API documentation: - [blueprint-template](references/blueprint-template.md) - [capabilities-module](references/capabilities-module.md) - [catalog-module](references/catalog-module.md) +- [cluster-module](references/cluster-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) @@ -75,16 +75,19 @@ See the `references/` directory for detailed per-entity API documentation: - [graph-execution-module](references/graph-execution-module.md) - [graph-module](references/graph-module.md) - [hierarchy-module](references/hierarchy-module.md) -- [http-route-module](references/http-route-module.md) - [i-18-n-module](references/i-18-n-module.md) - [identity-providers-module](references/identity-providers-module.md) +- [image-module](references/image-module.md) - [inference-log-module](references/inference-log-module.md) - [infra-config-module](references/infra-config-module.md) - [infra-secrets-module](references/infra-secrets-module.md) - [integration-providers-module](references/integration-providers-module.md) +- [internal-config-module](references/internal-config-module.md) - [internal-secrets-module](references/internal-secrets-module.md) - [invites-module](references/invites-module.md) +- [k-8-s-admission-module](references/k-8-s-admission-module.md) - [limits-module](references/limits-module.md) +- [machine-module](references/machine-module.md) - [membership-types-module](references/membership-types-module.md) - [memberships-module](references/memberships-module.md) - [merkle-store-module](references/merkle-store-module.md) @@ -99,7 +102,9 @@ See the `references/` directory for detailed per-entity API documentation: - [rate-limit-meters-module](references/rate-limit-meters-module.md) - [rate-limits-module](references/rate-limits-module.md) - [realtime-module](references/realtime-module.md) +- [refusal-log-module](references/refusal-log-module.md) - [relation-provision](references/relation-provision.md) +- [repository-module](references/repository-module.md) - [resource-module](references/resource-module.md) - [rls-module](references/rls-module.md) - [route-module](references/route-module.md) diff --git a/.agents/skills/orm-modules/references/agent-module.md b/.agents/skills/orm-modules/references/agent-module.md index d8d9f9dfb8..3b4a3a318e 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: '', 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.create({ data: { agentTableId: '', agentTableName: '', apiName: '', databaseId: '', defaultCapabilities: '', defaultVisibility: '', entityField: '', entityTableId: '', eventTableId: '', eventTableName: '', hasAgents: '', hasAttachments: '', hasPlans: '', hasRepositoryResources: '', hasResources: '', hasRuns: '', messageTableId: '', messageTableName: '', personaTableId: '', personaTableName: '', planTableId: '', planTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', promptsTableId: '', promptsTableName: '', provisions: '', publicSchemaName: '', resourceRepositoryTableId: '', resourceRepositoryTableName: '', resourceTableId: '', resourceTableName: '', resources: '', runTableId: '', runTableName: '', schemaId: '', scope: '', taskTableId: '', taskTableName: '', threadTableId: '', threadTableName: '', workspaceTableId: '', workspaceTableName: '' }, 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: '', 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: '' }, + data: { agentTableId: '', agentTableName: '', apiName: '', databaseId: '', defaultCapabilities: '', defaultVisibility: '', entityField: '', entityTableId: '', eventTableId: '', eventTableName: '', hasAgents: '', hasAttachments: '', hasPlans: '', hasRepositoryResources: '', hasResources: '', hasRuns: '', messageTableId: '', messageTableName: '', personaTableId: '', personaTableName: '', planTableId: '', planTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', promptsTableId: '', promptsTableName: '', provisions: '', publicSchemaName: '', resourceRepositoryTableId: '', resourceRepositoryTableName: '', resourceTableId: '', resourceTableName: '', resources: '', runTableId: '', runTableName: '', schemaId: '', scope: '', taskTableId: '', taskTableName: '', threadTableId: '', threadTableName: '', workspaceTableId: '', workspaceTableName: '' }, 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 a7c13cf531..3e489a13af 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: '', defaultCapabilities: '', entityField: '', entityTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }, select: { id: true } }).execute() +db.appModule.create({ data: { apiName: '', appComponentsTableId: '', appComponentsTableName: '', appStoreIdentitiesTableName: '', 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: '', defaultCapabilities: '', entityField: '', entityTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }, + data: { apiName: '', appComponentsTableId: '', appComponentsTableName: '', appStoreIdentitiesTableName: '', 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-provider-module.md b/.agents/skills/orm-modules/references/billing-provider-module.md index 182cc6f6a5..f5a11efe80 100644 --- a/.agents/skills/orm-modules/references/billing-provider-module.md +++ b/.agents/skills/orm-modules/references/billing-provider-module.md @@ -9,8 +9,8 @@ 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: '', 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.create({ data: { activatePlanSubscriptionFunction: '', apiName: '', billingCustomersTableId: '', billingCustomersTableName: '', billingDisputesTableId: '', billingDisputesTableName: '', billingInvoicesTableId: '', billingInvoicesTableName: '', billingPricesTableId: '', billingPricesTableName: '', billingProductsTableId: '', billingProductsTableName: '', billingRefundsTableId: '', billingRefundsTableName: '', billingSubscriptionsTableId: '', billingSubscriptionsTableName: '', billingWebhookEventsTableId: '', billingWebhookEventsTableName: '', databaseId: '', getActivePlanPricingFunction: '', getBillingCustomerFunction: '', getBillingPriceFunction: '', getBillingProductFunction: '', getBillingSubscriptionFunction: '', getFallbackFreePlanFunction: '', listPendingUsageSyncFunction: '', markUsageSyncedFunction: '', prefix: '', pricesTableId: '', privateApiName: '', privateSchemaId: '', processBillingEventFunction: '', productsTableId: '', provider: '', recordDisputeFunction: '', recordRefundFunction: '', schemaId: '', subscriptionsTableId: '', sweepOverdueSubscriptionsFunction: '', upsertBillingCustomerFunction: '', upsertBillingPriceFunction: '', upsertBillingProductFunction: '', upsertBillingSubscriptionFunction: '', upsertInvoiceFunction: '' }, select: { id: true } }).execute() +db.billingProviderModule.update({ where: { id: '' }, data: { activatePlanSubscriptionFunction: '' }, select: { id: true } }).execute() db.billingProviderModule.delete({ where: { id: '' } }).execute() ``` @@ -20,7 +20,7 @@ db.billingProviderModule.delete({ where: { id: '' } }).execute() ```typescript const items = await db.billingProviderModule.findMany({ - select: { id: true, apiName: true } + select: { id: true, activatePlanSubscriptionFunction: true } }).execute(); ``` @@ -28,7 +28,7 @@ const items = await db.billingProviderModule.findMany({ ```typescript const item = 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: '' }, + data: { activatePlanSubscriptionFunction: '', apiName: '', billingCustomersTableId: '', billingCustomersTableName: '', billingDisputesTableId: '', billingDisputesTableName: '', billingInvoicesTableId: '', billingInvoicesTableName: '', billingPricesTableId: '', billingPricesTableName: '', billingProductsTableId: '', billingProductsTableName: '', billingRefundsTableId: '', billingRefundsTableName: '', billingSubscriptionsTableId: '', billingSubscriptionsTableName: '', billingWebhookEventsTableId: '', billingWebhookEventsTableName: '', databaseId: '', getActivePlanPricingFunction: '', getBillingCustomerFunction: '', getBillingPriceFunction: '', getBillingProductFunction: '', getBillingSubscriptionFunction: '', getFallbackFreePlanFunction: '', listPendingUsageSyncFunction: '', markUsageSyncedFunction: '', prefix: '', pricesTableId: '', privateApiName: '', privateSchemaId: '', processBillingEventFunction: '', productsTableId: '', provider: '', recordDisputeFunction: '', recordRefundFunction: '', schemaId: '', subscriptionsTableId: '', sweepOverdueSubscriptionsFunction: '', upsertBillingCustomerFunction: '', upsertBillingPriceFunction: '', upsertBillingProductFunction: '', upsertBillingSubscriptionFunction: '', upsertInvoiceFunction: '' }, 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 7598944390..381e09510f 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: '', 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.create({ data: { apiName: '', apisTableId: '', apisTableName: '', appStoreIdentitiesTableId: '', appStoreIdentitiesTableName: '', appsTableId: '', appsTableName: '', bindingsTableId: '', bindingsTableName: '', bucketsTableId: '', bucketsTableName: '', databaseId: '', defaultCapabilities: '', domainsTableId: '', domainsTableName: '', entityTableId: '', functionsTableId: '', functionsTableName: '', imagesTableId: '', imagesTableName: '', managedDomainsTableId: '', managedDomainsTableName: '', namespacesTableId: '', namespacesTableName: '', policies: '', privateApiName: '', provisions: '', publicSchemaName: '', redirectsTableId: '', redirectsTableName: '', 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: '', 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: '' }, + data: { apiName: '', apisTableId: '', apisTableName: '', appStoreIdentitiesTableId: '', appStoreIdentitiesTableName: '', appsTableId: '', appsTableName: '', bindingsTableId: '', bindingsTableName: '', bucketsTableId: '', bucketsTableName: '', databaseId: '', defaultCapabilities: '', domainsTableId: '', domainsTableName: '', entityTableId: '', functionsTableId: '', functionsTableName: '', imagesTableId: '', imagesTableName: '', managedDomainsTableId: '', managedDomainsTableName: '', namespacesTableId: '', namespacesTableName: '', policies: '', privateApiName: '', provisions: '', publicSchemaName: '', redirectsTableId: '', redirectsTableName: '', 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/cluster-module.md b/.agents/skills/orm-modules/references/cluster-module.md new file mode 100644 index 0000000000..62c1097ed9 --- /dev/null +++ b/.agents/skills/orm-modules/references/cluster-module.md @@ -0,0 +1,34 @@ +# clusterModule + + + +ORM operations for ClusterModule records + +## Usage + +```typescript +db.clusterModule.findMany({ select: { id: true } }).execute() +db.clusterModule.findOne({ id: '', select: { id: true } }).execute() +db.clusterModule.create({ data: { apiName: '', clusterEventsTableId: '', clusterEventsTableName: '', clustersTableId: '', clustersTableName: '', databaseId: '', databasePlacementsTableId: '', databasePlacementsTableName: '', databaseServersTableId: '', databaseServersTableName: '', defaultCapabilities: '', entityField: '', partitionInterval: '', physicalDatabasesTableId: '', physicalDatabasesTableName: '', policies: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', retention: '', schemaId: '', scope: '' }, select: { id: true } }).execute() +db.clusterModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute() +db.clusterModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all clusterModule records + +```typescript +const items = await db.clusterModule.findMany({ + select: { id: true, apiName: true } +}).execute(); +``` + +### Create a clusterModule + +```typescript +const item = await db.clusterModule.create({ + data: { apiName: '', clusterEventsTableId: '', clusterEventsTableName: '', clustersTableId: '', clustersTableName: '', databaseId: '', databasePlacementsTableId: '', databasePlacementsTableName: '', databaseServersTableId: '', databaseServersTableName: '', defaultCapabilities: '', entityField: '', partitionInterval: '', physicalDatabasesTableId: '', physicalDatabasesTableName: '', policies: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', retention: '', schemaId: '', scope: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-modules/references/compute-log-module.md b/.agents/skills/orm-modules/references/compute-log-module.md index 0fed8689c9..d6900f253d 100644 --- a/.agents/skills/orm-modules/references/compute-log-module.md +++ b/.agents/skills/orm-modules/references/compute-log-module.md @@ -9,8 +9,8 @@ ORM operations for ComputeLogModule records ```typescript db.computeLogModule.findMany({ select: { id: true } }).execute() db.computeLogModule.findOne({ id: '', select: { id: true } }).execute() -db.computeLogModule.create({ data: { actorFkTableId: '', apiName: '', computeLogTableId: '', computeLogTableName: '', databaseId: '', entityField: '', entityFkTableId: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', retention: '', schemaId: '', scope: '', usageSummaryTableId: '', usageSummaryTableName: '' }, select: { id: true } }).execute() -db.computeLogModule.update({ where: { id: '' }, data: { actorFkTableId: '' }, select: { id: true } }).execute() +db.computeLogModule.create({ data: { apiName: '', computeLogTableId: '', computeLogTableName: '', databaseId: '', entityField: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', retention: '', rollupFunctionName: '', schemaId: '', scope: '', usageSummaryTableId: '', usageSummaryTableName: '' }, select: { id: true } }).execute() +db.computeLogModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute() db.computeLogModule.delete({ where: { id: '' } }).execute() ``` @@ -20,7 +20,7 @@ db.computeLogModule.delete({ where: { id: '' } }).execute() ```typescript const items = await db.computeLogModule.findMany({ - select: { id: true, actorFkTableId: true } + select: { id: true, apiName: true } }).execute(); ``` @@ -28,7 +28,7 @@ const items = await db.computeLogModule.findMany({ ```typescript const item = await db.computeLogModule.create({ - data: { actorFkTableId: '', apiName: '', computeLogTableId: '', computeLogTableName: '', databaseId: '', entityField: '', entityFkTableId: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', retention: '', schemaId: '', scope: '', usageSummaryTableId: '', usageSummaryTableName: '' }, + data: { apiName: '', computeLogTableId: '', computeLogTableName: '', databaseId: '', entityField: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', retention: '', rollupFunctionName: '', schemaId: '', scope: '', usageSummaryTableId: '', usageSummaryTableName: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-modules/references/construct-blueprint.md b/.agents/skills/orm-modules/references/construct-blueprint.md index f36067fbd0..bfed517f3a 100644 --- a/.agents/skills/orm-modules/references/construct-blueprint.md +++ b/.agents/skills/orm-modules/references/construct-blueprint.md @@ -2,7 +2,7 @@ -Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry — provisions entity tables, membership modules, and security. 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. +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). A table entry either names its table (table_name plus optional schema_name) or references one an installed module generated ("module": {"type": "agent", "scope": "org", "table": "message"}), which resolves through the module row's recorded table ids and raises when it matches nothing instead of creating an empty table. After provisioning, optional smart_tags (jsonb object) on the table entry are applied via metaschema.append_table_smart_tags(), and optional smart_tags on individual field entries are applied via metaschema.append_field_smart_tags(). (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] — resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID on success, NULL on failure. ## Usage diff --git a/.agents/skills/orm-modules/references/database-provision-module.md b/.agents/skills/orm-modules/references/database-provision-module.md index 17aeae7388..b9d833b478 100644 --- a/.agents/skills/orm-modules/references/database-provision-module.md +++ b/.agents/skills/orm-modules/references/database-provision-module.md @@ -9,7 +9,7 @@ Tracks database provisioning requests and their status. The BEFORE INSERT trigge ```typescript db.databaseProvisionModule.findMany({ select: { id: true } }).execute() db.databaseProvisionModule.findOne({ id: '', select: { id: true } }).execute() -db.databaseProvisionModule.create({ data: { async: '', bootstrapError: '', bootstrapStatus: '', bootstrapUser: '', completedAt: '', databaseId: '', databaseName: '', domain: '', errorMessage: '', fulfilledAt: '', modules: '', options: '', ownerId: '', sourceDatabaseId: '', status: '', subdomain: '' }, select: { id: true } }).execute() +db.databaseProvisionModule.create({ data: { async: '', bootstrapActorId: '', bootstrapError: '', bootstrapStatus: '', bootstrapUser: '', completedAt: '', databaseId: '', databaseName: '', domain: '', errorMessage: '', fulfilledAt: '', modules: '', options: '', ownerId: '', sourceDatabaseId: '', status: '', subdomain: '' }, select: { id: true } }).execute() db.databaseProvisionModule.update({ where: { id: '' }, data: { async: '' }, select: { id: true } }).execute() db.databaseProvisionModule.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.databaseProvisionModule.findMany({ ```typescript const item = await db.databaseProvisionModule.create({ - data: { async: '', bootstrapError: '', bootstrapStatus: '', bootstrapUser: '', completedAt: '', databaseId: '', databaseName: '', domain: '', errorMessage: '', fulfilledAt: '', modules: '', options: '', ownerId: '', sourceDatabaseId: '', status: '', subdomain: '' }, + data: { async: '', bootstrapActorId: '', bootstrapError: '', bootstrapStatus: '', bootstrapUser: '', completedAt: '', databaseId: '', databaseName: '', domain: '', errorMessage: '', fulfilledAt: '', modules: '', options: '', ownerId: '', sourceDatabaseId: '', status: '', subdomain: '' }, 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 8eda284faa..97ff167ff5 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: '', defaultCapabilities: '', 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: '', storageKey: '' }, 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: '', defaultCapabilities: '', 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: '', storageKey: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-modules/references/image-module.md b/.agents/skills/orm-modules/references/image-module.md new file mode 100644 index 0000000000..b7a1cb9d06 --- /dev/null +++ b/.agents/skills/orm-modules/references/image-module.md @@ -0,0 +1,34 @@ +# imageModule + + + +ORM operations for ImageModule records + +## Usage + +```typescript +db.imageModule.findMany({ select: { id: true } }).execute() +db.imageModule.findOne({ id: '', select: { id: true } }).execute() +db.imageModule.create({ data: { apiName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', imageGrantsTableId: '', imageGrantsTableName: '', imagesTableId: '', imagesTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', registriesTableId: '', registriesTableName: '', registryGrantsTableId: '', registryGrantsTableName: '', schemaId: '', scope: '' }, select: { id: true } }).execute() +db.imageModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute() +db.imageModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all imageModule records + +```typescript +const items = await db.imageModule.findMany({ + select: { id: true, apiName: true } +}).execute(); +``` + +### Create a imageModule + +```typescript +const item = await db.imageModule.create({ + data: { apiName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', imageGrantsTableId: '', imageGrantsTableName: '', imagesTableId: '', imagesTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', registriesTableId: '', registriesTableName: '', registryGrantsTableId: '', registryGrantsTableName: '', schemaId: '', scope: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-modules/references/inference-log-module.md b/.agents/skills/orm-modules/references/inference-log-module.md index 876441ed55..3d365ea09d 100644 --- a/.agents/skills/orm-modules/references/inference-log-module.md +++ b/.agents/skills/orm-modules/references/inference-log-module.md @@ -9,8 +9,8 @@ ORM operations for InferenceLogModule records ```typescript db.inferenceLogModule.findMany({ select: { id: true } }).execute() db.inferenceLogModule.findOne({ id: '', select: { id: true } }).execute() -db.inferenceLogModule.create({ data: { actorFkTableId: '', apiName: '', databaseId: '', entityField: '', entityFkTableId: '', inferenceLogTableId: '', inferenceLogTableName: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', retention: '', schemaId: '', scope: '', usageSummaryTableId: '', usageSummaryTableName: '' }, select: { id: true } }).execute() -db.inferenceLogModule.update({ where: { id: '' }, data: { actorFkTableId: '' }, select: { id: true } }).execute() +db.inferenceLogModule.create({ data: { apiName: '', databaseId: '', entityField: '', inferenceLogTableId: '', inferenceLogTableName: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', retention: '', rollupFunctionName: '', schemaId: '', scope: '', usageSummaryTableId: '', usageSummaryTableName: '' }, select: { id: true } }).execute() +db.inferenceLogModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute() db.inferenceLogModule.delete({ where: { id: '' } }).execute() ``` @@ -20,7 +20,7 @@ db.inferenceLogModule.delete({ where: { id: '' } }).execute() ```typescript const items = await db.inferenceLogModule.findMany({ - select: { id: true, actorFkTableId: true } + select: { id: true, apiName: true } }).execute(); ``` @@ -28,7 +28,7 @@ const items = await db.inferenceLogModule.findMany({ ```typescript const item = await db.inferenceLogModule.create({ - data: { actorFkTableId: '', apiName: '', databaseId: '', entityField: '', entityFkTableId: '', inferenceLogTableId: '', inferenceLogTableName: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', retention: '', schemaId: '', scope: '', usageSummaryTableId: '', usageSummaryTableName: '' }, + data: { apiName: '', databaseId: '', entityField: '', inferenceLogTableId: '', inferenceLogTableName: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', retention: '', rollupFunctionName: '', schemaId: '', scope: '', usageSummaryTableId: '', usageSummaryTableName: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-modules/references/internal-config-module.md b/.agents/skills/orm-modules/references/internal-config-module.md new file mode 100644 index 0000000000..402f93fd21 --- /dev/null +++ b/.agents/skills/orm-modules/references/internal-config-module.md @@ -0,0 +1,34 @@ +# internalConfigModule + + + +Scope-aware plaintext internal config store. No namespace_module dependency and no K8s synchronization: values are read from the database at invocation time. Configuration that must be projected into a Kubernetes ConfigMap belongs in infra_config_module. + +## Usage + +```typescript +db.internalConfigModule.findMany({ select: { id: true } }).execute() +db.internalConfigModule.findOne({ id: '', select: { id: true } }).execute() +db.internalConfigModule.create({ data: { apiName: '', databaseId: '', entityField: '', entityTableId: '', internalConfigTableId: '', internalConfigTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }, select: { id: true } }).execute() +db.internalConfigModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute() +db.internalConfigModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all internalConfigModule records + +```typescript +const items = await db.internalConfigModule.findMany({ + select: { id: true, apiName: true } +}).execute(); +``` + +### Create a internalConfigModule + +```typescript +const item = await db.internalConfigModule.create({ + data: { apiName: '', databaseId: '', entityField: '', entityTableId: '', internalConfigTableId: '', internalConfigTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-modules/references/k-8-s-admission-module.md b/.agents/skills/orm-modules/references/k-8-s-admission-module.md new file mode 100644 index 0000000000..5c4e3e927a --- /dev/null +++ b/.agents/skills/orm-modules/references/k-8-s-admission-module.md @@ -0,0 +1,34 @@ +# k8sAdmissionModule + + + +Provisions the platform-managed Kubernetes admission catalogs: a kinds table and a spec-rules table, Merkle-versioned through the referenced merkle_store_module, whose rows the generated admission gate on resources/resource_definitions reads. Writes are platform-admin and human-only; every scope reads the one catalog. + +## Usage + +```typescript +db.k8sAdmissionModule.findMany({ select: { id: true } }).execute() +db.k8sAdmissionModule.findOne({ id: '', select: { id: true } }).execute() +db.k8sAdmissionModule.create({ data: { apiName: '', databaseId: '', entityTableId: '', k8sResourceKindsTableId: '', k8sSpecRulesTableId: '', merkleStoreModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaId: '', publicSchemaName: '', scope: '', storeName: '' }, select: { id: true } }).execute() +db.k8sAdmissionModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute() +db.k8sAdmissionModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all k8sAdmissionModule records + +```typescript +const items = await db.k8sAdmissionModule.findMany({ + select: { id: true, apiName: true } +}).execute(); +``` + +### Create a k8sAdmissionModule + +```typescript +const item = await db.k8sAdmissionModule.create({ + data: { apiName: '', databaseId: '', entityTableId: '', k8sResourceKindsTableId: '', k8sSpecRulesTableId: '', merkleStoreModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaId: '', publicSchemaName: '', scope: '', storeName: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-modules/references/machine-module.md b/.agents/skills/orm-modules/references/machine-module.md new file mode 100644 index 0000000000..90cf847bd2 --- /dev/null +++ b/.agents/skills/orm-modules/references/machine-module.md @@ -0,0 +1,34 @@ +# machineModule + + + +ORM operations for MachineModule records + +## Usage + +```typescript +db.machineModule.findMany({ select: { id: true } }).execute() +db.machineModule.findOne({ id: '', select: { id: true } }).execute() +db.machineModule.create({ data: { apiName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', machineMessagesTableId: '', machineMessagesTableName: '', machineSessionsTableId: '', machineSessionsTableName: '', machinesTableId: '', machinesTableName: '', partitionInterval: '', policies: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', retention: '', schemaId: '', scope: '' }, select: { id: true } }).execute() +db.machineModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute() +db.machineModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all machineModule records + +```typescript +const items = await db.machineModule.findMany({ + select: { id: true, apiName: true } +}).execute(); +``` + +### Create a machineModule + +```typescript +const item = await db.machineModule.create({ + data: { apiName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', machineMessagesTableId: '', machineMessagesTableName: '', machineSessionsTableId: '', machineSessionsTableName: '', machinesTableId: '', machinesTableName: '', partitionInterval: '', policies: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', retention: '', schemaId: '', scope: '' }, + 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 c8d8f1dc76..7a30308f24 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: '', capabilityKey: '', commitTableId: '', databaseId: '', entityField: '', functionPrefix: '', objectTableId: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', refTableId: '', schemaId: '', scope: '', storeTableId: '' }, select: { id: true } }).execute() +db.merkleStoreModule.create({ data: { apiName: '', capabilityKey: '', commitTableId: '', databaseId: '', entityField: '', entityTableId: '', 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: '', capabilityKey: '', commitTableId: '', databaseId: '', entityField: '', functionPrefix: '', objectTableId: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', refTableId: '', schemaId: '', scope: '', storeTableId: '' }, + data: { apiName: '', capabilityKey: '', commitTableId: '', databaseId: '', entityField: '', entityTableId: '', functionPrefix: '', objectTableId: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', refTableId: '', schemaId: '', scope: '', storeTableId: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-modules/references/pages-module.md b/.agents/skills/orm-modules/references/pages-module.md index 1b8fec717d..5b26cc0053 100644 --- a/.agents/skills/orm-modules/references/pages-module.md +++ b/.agents/skills/orm-modules/references/pages-module.md @@ -9,7 +9,7 @@ ORM operations for PagesModule records ```typescript db.pagesModule.findMany({ select: { id: true } }).execute() db.pagesModule.findOne({ id: '', select: { id: true } }).execute() -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() +db.pagesModule.create({ data: { apiName: '', databaseId: '', entityTableId: '', merkleStoreModuleId: '', pagesTableId: '', policies: '', prefix: '', previewCommitFunctionName: '', previewSetFunctionName: '', previewTokenMintFunctionName: '', previewTokenVerifierFunctionName: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaId: '', publicSchemaName: '', releaseManifestFunctionName: '', scope: '', siteSurfaceModuleId: '', sitesTableId: '', storeNamePrefix: '' }, select: { id: true } }).execute() db.pagesModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute() db.pagesModule.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.pagesModule.findMany({ ```typescript const item = await db.pagesModule.create({ - data: { apiName: '', databaseId: '', entityTableId: '', merkleStoreModuleId: '', pagesTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaId: '', publicSchemaName: '', scope: '', siteSurfaceModuleId: '', sitesTableId: '', storeNamePrefix: '' }, + data: { apiName: '', databaseId: '', entityTableId: '', merkleStoreModuleId: '', pagesTableId: '', policies: '', prefix: '', previewCommitFunctionName: '', previewSetFunctionName: '', previewTokenMintFunctionName: '', previewTokenVerifierFunctionName: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaId: '', publicSchemaName: '', releaseManifestFunctionName: '', scope: '', siteSurfaceModuleId: '', sitesTableId: '', storeNamePrefix: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-modules/references/principal-auth-module.md b/.agents/skills/orm-modules/references/principal-auth-module.md index 528be4f87e..c4226d2e61 100644 --- a/.agents/skills/orm-modules/references/principal-auth-module.md +++ b/.agents/skills/orm-modules/references/principal-auth-module.md @@ -9,7 +9,7 @@ Provisions the principals subsystem: a principals table, a principal_entities ju ```typescript db.principalAuthModule.findMany({ select: { id: true } }).execute() db.principalAuthModule.findOne({ id: '', select: { id: true } }).execute() -db.principalAuthModule.create({ data: { apiName: '', auditsTableId: '', createOrgApiKeyFunction: '', createOrgPrincipalFunction: '', createPrincipalFunction: '', databaseId: '', deleteOrgPrincipalFunction: '', deletePrincipalFunction: '', principalEntitiesTableId: '', principalScopeOverridesTableId: '', principalsTableId: '', principalsTableName: '', revokeOrgApiKeyFunction: '', schemaId: '', sessionCredentialsTableId: '', sessionsTableId: '', usersTableId: '' }, select: { id: true } }).execute() +db.principalAuthModule.create({ data: { apiName: '', auditsTableId: '', createOrgApiKeyFunction: '', createOrgPrincipalFunction: '', createPrincipalFunction: '', databaseId: '', deleteOrgPrincipalFunction: '', deletePrincipalFunction: '', principalEntitiesTableId: '', principalScopeOverridesTableId: '', principalsTableId: '', principalsTableName: '', privateSchemaId: '', revokeOrgApiKeyFunction: '', schemaId: '', sessionCredentialsTableId: '', sessionsTableId: '', sweepExpiredPrincipalsFunction: '', usersTableId: '' }, select: { id: true } }).execute() db.principalAuthModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute() db.principalAuthModule.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.principalAuthModule.findMany({ ```typescript const item = await db.principalAuthModule.create({ - data: { apiName: '', auditsTableId: '', createOrgApiKeyFunction: '', createOrgPrincipalFunction: '', createPrincipalFunction: '', databaseId: '', deleteOrgPrincipalFunction: '', deletePrincipalFunction: '', principalEntitiesTableId: '', principalScopeOverridesTableId: '', principalsTableId: '', principalsTableName: '', revokeOrgApiKeyFunction: '', schemaId: '', sessionCredentialsTableId: '', sessionsTableId: '', usersTableId: '' }, + data: { apiName: '', auditsTableId: '', createOrgApiKeyFunction: '', createOrgPrincipalFunction: '', createPrincipalFunction: '', databaseId: '', deleteOrgPrincipalFunction: '', deletePrincipalFunction: '', principalEntitiesTableId: '', principalScopeOverridesTableId: '', principalsTableId: '', principalsTableName: '', privateSchemaId: '', revokeOrgApiKeyFunction: '', schemaId: '', sessionCredentialsTableId: '', sessionsTableId: '', sweepExpiredPrincipalsFunction: '', usersTableId: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-modules/references/provision-bucket.md b/.agents/skills/orm-modules/references/provision-bucket.md index a9133530f2..eaefc02f2f 100644 --- a/.agents/skills/orm-modules/references/provision-bucket.md +++ b/.agents/skills/orm-modules/references/provision-bucket.md @@ -2,10 +2,11 @@ -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. +Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. ## Usage diff --git a/.agents/skills/orm-modules/references/refusal-log-module.md b/.agents/skills/orm-modules/references/refusal-log-module.md new file mode 100644 index 0000000000..4a1a39b1fb --- /dev/null +++ b/.agents/skills/orm-modules/references/refusal-log-module.md @@ -0,0 +1,34 @@ +# refusalLogModule + + + +ORM operations for RefusalLogModule records + +## Usage + +```typescript +db.refusalLogModule.findMany({ select: { id: true } }).execute() +db.refusalLogModule.findOne({ id: '', select: { id: true } }).execute() +db.refusalLogModule.create({ data: { apiName: '', databaseId: '', entityField: '', logInterval: '', logPremake: '', logRetention: '', logTableId: '', logTableName: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', recordRefusalsFunction: '', rollupRefusalUsageSummaryFunction: '', schemaId: '', scope: '', summaryInterval: '', summaryPremake: '', summaryRetention: '', summaryTableId: '', summaryTableName: '' }, select: { id: true } }).execute() +db.refusalLogModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute() +db.refusalLogModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all refusalLogModule records + +```typescript +const items = await db.refusalLogModule.findMany({ + select: { id: true, apiName: true } +}).execute(); +``` + +### Create a refusalLogModule + +```typescript +const item = await db.refusalLogModule.create({ + data: { apiName: '', databaseId: '', entityField: '', logInterval: '', logPremake: '', logRetention: '', logTableId: '', logTableName: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', recordRefusalsFunction: '', rollupRefusalUsageSummaryFunction: '', schemaId: '', scope: '', summaryInterval: '', summaryPremake: '', summaryRetention: '', summaryTableId: '', summaryTableName: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-modules/references/repository-module.md b/.agents/skills/orm-modules/references/repository-module.md new file mode 100644 index 0000000000..2fd8def986 --- /dev/null +++ b/.agents/skills/orm-modules/references/repository-module.md @@ -0,0 +1,34 @@ +# repositoryModule + + + +ORM operations for RepositoryModule records + +## Usage + +```typescript +db.repositoryModule.findMany({ select: { id: true } }).execute() +db.repositoryModule.findOne({ id: '', select: { id: true } }).execute() +db.repositoryModule.create({ data: { apiName: '', buildStepsTableId: '', buildStepsTableName: '', buildsTableId: '', buildsTableName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', hasAttachments: '', hasBuilds: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', proposalCommentsTableId: '', proposalCommentsTableName: '', proposalFileViewsTableId: '', proposalFileViewsTableName: '', proposalReactionsTableId: '', proposalReactionsTableName: '', proposalReviewsTableId: '', proposalReviewsTableName: '', proposalsTableId: '', proposalsTableName: '', provisions: '', publicSchemaName: '', repositoriesTableId: '', repositoriesTableName: '', repositoryEventsTableId: '', repositoryEventsTableName: '', repositoryRequiredChecksTableId: '', repositoryRequiredChecksTableName: '', schemaId: '', scope: '', search: '', workflowsTableId: '', workflowsTableName: '' }, select: { id: true } }).execute() +db.repositoryModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute() +db.repositoryModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all repositoryModule records + +```typescript +const items = await db.repositoryModule.findMany({ + select: { id: true, apiName: true } +}).execute(); +``` + +### Create a repositoryModule + +```typescript +const item = await db.repositoryModule.create({ + data: { apiName: '', buildStepsTableId: '', buildStepsTableName: '', buildsTableId: '', buildsTableName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', hasAttachments: '', hasBuilds: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', proposalCommentsTableId: '', proposalCommentsTableName: '', proposalFileViewsTableId: '', proposalFileViewsTableName: '', proposalReactionsTableId: '', proposalReactionsTableName: '', proposalReviewsTableId: '', proposalReviewsTableName: '', proposalsTableId: '', proposalsTableName: '', provisions: '', publicSchemaName: '', repositoriesTableId: '', repositoriesTableName: '', repositoryEventsTableId: '', repositoryEventsTableName: '', repositoryRequiredChecksTableId: '', repositoryRequiredChecksTableName: '', schemaId: '', scope: '', search: '', workflowsTableId: '', workflowsTableName: '' }, + 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 07aac1a301..7456fd88b2 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: '', 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.create({ data: { apiName: '', builderBindingsTableId: '', builderBindingsTableName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', installationStoreName: '', merkleStoreModuleId: '', namespaceModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', registryBindingsTableId: '', registryBindingsTableName: '', 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: '', 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: '' }, + data: { apiName: '', builderBindingsTableId: '', builderBindingsTableName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', installationStoreName: '', merkleStoreModuleId: '', namespaceModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', registryBindingsTableId: '', registryBindingsTableName: '', 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 7585795be9..45e2e528cd 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: '', 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.create({ data: { apiName: '', appLinksFunctionName: '', catalogModuleId: '', databaseId: '', deepLinkFunctionName: '', defaultCapabilities: '', domainModuleId: '', entityField: '', entityTableId: '', hostnameBindingsTableId: '', hostnameBindingsTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', redirectsTableId: '', redirectsTableName: '', resolverFunctionName: '', routeBindingsTableId: '', routeBindingsTableName: '', routesTableId: '', routesTableName: '', schemaId: '', scope: '', servingSiteField: '', storageKey: '' }, 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: '', appLinksFunctionName: '', catalogModuleId: '', databaseId: '', deepLinkFunctionName: '', defaultCapabilities: '', 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: '', redirectsTableId: '', redirectsTableName: '', resolverFunctionName: '', routeBindingsTableId: '', routeBindingsTableName: '', routesTableId: '', routesTableName: '', schemaId: '', scope: '', servingSiteField: '', storageKey: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-modules/references/secure-table-provision.md b/.agents/skills/orm-modules/references/secure-table-provision.md index 672bec13e1..a86b9d663c 100644 --- a/.agents/skills/orm-modules/references/secure-table-provision.md +++ b/.agents/skills/orm-modules/references/secure-table-provision.md @@ -2,14 +2,14 @@ -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. +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. The target table is addressed by table_id, by table_name, or symbolically by a module reference in module. A row that lists a concern in owns[] replaces that concern on the target table instead of composing with what is already there. ## Usage ```typescript db.secureTableProvision.findMany({ select: { id: true } }).execute() db.secureTableProvision.findOne({ id: '', select: { id: true } }).execute() -db.secureTableProvision.create({ data: { databaseId: '', fields: '', grants: '', nodes: '', outFields: '', policies: '', schemaId: '', tableId: '', tableName: '', useRls: '' }, select: { id: true } }).execute() +db.secureTableProvision.create({ data: { databaseId: '', fields: '', grants: '', module: '', nodes: '', outFields: '', owns: '', policies: '', schemaId: '', tableId: '', tableName: '', useRls: '' }, select: { id: true } }).execute() db.secureTableProvision.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() db.secureTableProvision.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.secureTableProvision.findMany({ ```typescript const item = await db.secureTableProvision.create({ - data: { databaseId: '', fields: '', grants: '', nodes: '', outFields: '', policies: '', schemaId: '', tableId: '', tableName: '', useRls: '' }, + data: { databaseId: '', fields: '', grants: '', module: '', nodes: '', outFields: '', owns: '', policies: '', schemaId: '', tableId: '', tableName: '', useRls: '' }, 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 509fc9a4f9..8552f4d755 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: '', 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.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: '', siteReleasesTableId: '', siteReleasesTableName: '', siteThemesTableId: '', siteThemesTableName: '', siteWebConfigTableId: '', siteWebConfigTableName: '', sitesTableId: '', sitesTableName: '', storageKey: '' }, 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: '', 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: '' }, + 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: '', siteReleasesTableId: '', siteReleasesTableName: '', siteThemesTableId: '', siteThemesTableName: '', siteWebConfigTableId: '', siteWebConfigTableName: '', sitesTableId: '', sitesTableName: '', storageKey: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-modules/references/storage-log-module.md b/.agents/skills/orm-modules/references/storage-log-module.md index c3ada710da..d6808a3fbc 100644 --- a/.agents/skills/orm-modules/references/storage-log-module.md +++ b/.agents/skills/orm-modules/references/storage-log-module.md @@ -9,8 +9,8 @@ ORM operations for StorageLogModule records ```typescript db.storageLogModule.findMany({ select: { id: true } }).execute() db.storageLogModule.findOne({ id: '', select: { id: true } }).execute() -db.storageLogModule.create({ data: { actorFkTableId: '', apiName: '', databaseId: '', entityField: '', entityFkTableId: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', retention: '', schemaId: '', scope: '', storageLogTableId: '', storageLogTableName: '', usageSummaryTableId: '', usageSummaryTableName: '' }, select: { id: true } }).execute() -db.storageLogModule.update({ where: { id: '' }, data: { actorFkTableId: '' }, select: { id: true } }).execute() +db.storageLogModule.create({ data: { apiName: '', databaseId: '', entityField: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', retention: '', rollupFunctionName: '', schemaId: '', scope: '', storageLogTableId: '', storageLogTableName: '', usageSummaryTableId: '', usageSummaryTableName: '' }, select: { id: true } }).execute() +db.storageLogModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute() db.storageLogModule.delete({ where: { id: '' } }).execute() ``` @@ -20,7 +20,7 @@ db.storageLogModule.delete({ where: { id: '' } }).execute() ```typescript const items = await db.storageLogModule.findMany({ - select: { id: true, actorFkTableId: true } + select: { id: true, apiName: true } }).execute(); ``` @@ -28,7 +28,7 @@ const items = await db.storageLogModule.findMany({ ```typescript const item = await db.storageLogModule.create({ - data: { actorFkTableId: '', apiName: '', databaseId: '', entityField: '', entityFkTableId: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', retention: '', schemaId: '', scope: '', storageLogTableId: '', storageLogTableName: '', usageSummaryTableId: '', usageSummaryTableName: '' }, + data: { apiName: '', databaseId: '', entityField: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', retention: '', rollupFunctionName: '', schemaId: '', scope: '', storageLogTableId: '', storageLogTableName: '', usageSummaryTableId: '', usageSummaryTableName: '' }, 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 f7ae315ba0..2ad969d248 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: '', 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.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: '', key: '', 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: '', 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: '' }, + data: { allowedOrigins: '', apiName: '', bucketsTableId: '', bucketsTableName: '', cacheTtlSeconds: '', catalogModuleId: '', confirmUploadDelay: '', databaseId: '', defaultCapabilities: '', defaultMaxFileSize: '', downloadUrlExpirySeconds: '', endpoint: '', entityField: '', entityTableId: '', fileEventsTableId: '', filesTableId: '', filesTableName: '', hasAuditLog: '', hasConfirmUpload: '', hasContentHash: '', hasCustomKeys: '', hasPathShares: '', hasVersioning: '', key: '', 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/transfer-log-module.md b/.agents/skills/orm-modules/references/transfer-log-module.md index b1ac958d97..1214a0a3d1 100644 --- a/.agents/skills/orm-modules/references/transfer-log-module.md +++ b/.agents/skills/orm-modules/references/transfer-log-module.md @@ -9,8 +9,8 @@ ORM operations for TransferLogModule records ```typescript db.transferLogModule.findMany({ select: { id: true } }).execute() db.transferLogModule.findOne({ id: '', select: { id: true } }).execute() -db.transferLogModule.create({ data: { actorFkTableId: '', apiName: '', databaseId: '', entityField: '', entityFkTableId: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', retention: '', schemaId: '', scope: '', transferLogTableId: '', transferLogTableName: '', usageSummaryTableId: '', usageSummaryTableName: '' }, select: { id: true } }).execute() -db.transferLogModule.update({ where: { id: '' }, data: { actorFkTableId: '' }, select: { id: true } }).execute() +db.transferLogModule.create({ data: { apiName: '', databaseId: '', entityField: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', retention: '', rollupFunctionName: '', schemaId: '', scope: '', transferLogTableId: '', transferLogTableName: '', usageSummaryTableId: '', usageSummaryTableName: '' }, select: { id: true } }).execute() +db.transferLogModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute() db.transferLogModule.delete({ where: { id: '' } }).execute() ``` @@ -20,7 +20,7 @@ db.transferLogModule.delete({ where: { id: '' } }).execute() ```typescript const items = await db.transferLogModule.findMany({ - select: { id: true, actorFkTableId: true } + select: { id: true, apiName: true } }).execute(); ``` @@ -28,7 +28,7 @@ const items = await db.transferLogModule.findMany({ ```typescript const item = await db.transferLogModule.create({ - data: { actorFkTableId: '', apiName: '', databaseId: '', entityField: '', entityFkTableId: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', retention: '', schemaId: '', scope: '', transferLogTableId: '', transferLogTableName: '', usageSummaryTableId: '', usageSummaryTableName: '' }, + data: { apiName: '', databaseId: '', entityField: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', retention: '', rollupFunctionName: '', schemaId: '', scope: '', transferLogTableId: '', transferLogTableName: '', usageSummaryTableId: '', usageSummaryTableName: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-modules/references/user-auth-module.md b/.agents/skills/orm-modules/references/user-auth-module.md index 03fb934d5b..dc6e05113e 100644 --- a/.agents/skills/orm-modules/references/user-auth-module.md +++ b/.agents/skills/orm-modules/references/user-auth-module.md @@ -9,7 +9,7 @@ ORM operations for UserAuthModule records ```typescript db.userAuthModule.findMany({ select: { id: true } }).execute() db.userAuthModule.findOne({ id: '', select: { id: true } }).execute() -db.userAuthModule.create({ data: { apiName: '', auditsTableId: '', auditsTableName: '', checkPasswordFunction: '', databaseId: '', deleteAccountFunction: '', emailsTableId: '', encryptedTableId: '', extendTokenExpires: '', forgotPasswordFunction: '', privateApiName: '', requestCrossOriginTokenFunction: '', resetPasswordFunction: '', schemaId: '', secretsTableId: '', sendAccountDeletionEmailFunction: '', sendVerificationEmailFunction: '', sessionCredentialsTableId: '', sessionsTableId: '', setPasswordFunction: '', signInCrossOriginFunction: '', signInFunction: '', signOutFunction: '', signUpFunction: '', usersTableId: '', verifyEmailFunction: '', verifyPasswordFunction: '' }, select: { id: true } }).execute() +db.userAuthModule.create({ data: { apiName: '', auditsTableId: '', auditsTableName: '', checkPasswordFunction: '', databaseId: '', deleteAccountFunction: '', emailsTableId: '', encryptedTableId: '', extendTokenExpires: '', forgotPasswordFunction: '', privateApiName: '', privateSchemaId: '', requestCrossOriginTokenFunction: '', resetPasswordFunction: '', revokeSessionTreeFunction: '', schemaId: '', secretsTableId: '', sendAccountDeletionEmailFunction: '', sendVerificationEmailFunction: '', sessionCredentialsTableId: '', sessionsTableId: '', setPasswordFunction: '', signInCrossOriginFunction: '', signInFunction: '', signOutFunction: '', signUpFunction: '', sweepExpiredSessionsFunction: '', usersTableId: '', verifyEmailFunction: '', verifyPasswordFunction: '' }, select: { id: true } }).execute() db.userAuthModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute() db.userAuthModule.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.userAuthModule.findMany({ ```typescript const item = await db.userAuthModule.create({ - data: { apiName: '', auditsTableId: '', auditsTableName: '', checkPasswordFunction: '', databaseId: '', deleteAccountFunction: '', emailsTableId: '', encryptedTableId: '', extendTokenExpires: '', forgotPasswordFunction: '', privateApiName: '', requestCrossOriginTokenFunction: '', resetPasswordFunction: '', schemaId: '', secretsTableId: '', sendAccountDeletionEmailFunction: '', sendVerificationEmailFunction: '', sessionCredentialsTableId: '', sessionsTableId: '', setPasswordFunction: '', signInCrossOriginFunction: '', signInFunction: '', signOutFunction: '', signUpFunction: '', usersTableId: '', verifyEmailFunction: '', verifyPasswordFunction: '' }, + data: { apiName: '', auditsTableId: '', auditsTableName: '', checkPasswordFunction: '', databaseId: '', deleteAccountFunction: '', emailsTableId: '', encryptedTableId: '', extendTokenExpires: '', forgotPasswordFunction: '', privateApiName: '', privateSchemaId: '', requestCrossOriginTokenFunction: '', resetPasswordFunction: '', revokeSessionTreeFunction: '', schemaId: '', secretsTableId: '', sendAccountDeletionEmailFunction: '', sendVerificationEmailFunction: '', sessionCredentialsTableId: '', sessionsTableId: '', setPasswordFunction: '', signInCrossOriginFunction: '', signInFunction: '', signOutFunction: '', signUpFunction: '', sweepExpiredSessionsFunction: '', usersTableId: '', verifyEmailFunction: '', verifyPasswordFunction: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-objects/references/provision-bucket.md b/.agents/skills/orm-objects/references/provision-bucket.md index a9133530f2..eaefc02f2f 100644 --- a/.agents/skills/orm-objects/references/provision-bucket.md +++ b/.agents/skills/orm-objects/references/provision-bucket.md @@ -2,10 +2,11 @@ -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. +Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. ## Usage diff --git a/.agents/skills/orm-remote/SKILL.md b/.agents/skills/orm-remote/SKILL.md new file mode 100644 index 0000000000..cc937bceed --- /dev/null +++ b/.agents/skills/orm-remote/SKILL.md @@ -0,0 +1,44 @@ +--- +name: orm-remote +description: ORM client for the remote API — provides typed CRUD operations for 3 tables and 2 custom operations +--- + +# orm-remote + + + +ORM client for the remote API — provides typed CRUD operations for 3 tables and 2 custom operations + +## Usage + +```typescript +// Import the ORM client +import { db } from './orm'; + +// Available models: machine, machineMessage, machineSession +db..findMany({ select: { id: true } }).execute() +db..findOne({ id: '', select: { id: true } }).execute() +db..create({ data: { ... }, select: { id: true } }).execute() +db..update({ where: { id: '' }, data: { ... }, select: { id: true } }).execute() +db..delete({ where: { id: '' } }).execute() +``` + +## Examples + +### Query records + +```typescript +const items = await db.machine.findMany({ + select: { id: true } +}).execute(); +``` + +## References + +See the `references/` directory for detailed per-entity API documentation: + +- [machine](references/machine.md) +- [machine-message](references/machine-message.md) +- [machine-session](references/machine-session.md) +- [machines-enroll](references/machines-enroll.md) +- [provision-bucket](references/provision-bucket.md) diff --git a/.agents/skills/orm-remote/references/machine-message.md b/.agents/skills/orm-remote/references/machine-message.md new file mode 100644 index 0000000000..349c7134db --- /dev/null +++ b/.agents/skills/orm-remote/references/machine-message.md @@ -0,0 +1,34 @@ +# machineMessage + + + +Partitioned append-only ledger of session input, output and lifecycle + +## Usage + +```typescript +db.machineMessage.findMany({ select: { id: true } }).execute() +db.machineMessage.findOne({ id: '', select: { id: true } }).execute() +db.machineMessage.create({ data: { actorId: '', content: '', createdByPrincipal: '', entityId: '', kind: '', ownerId: '', recordedAt: '', seq: '', sessionId: '' }, select: { id: true } }).execute() +db.machineMessage.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute() +db.machineMessage.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all machineMessage records + +```typescript +const items = await db.machineMessage.findMany({ + select: { id: true, actorId: true } +}).execute(); +``` + +### Create a machineMessage + +```typescript +const item = await db.machineMessage.create({ + data: { actorId: '', content: '', createdByPrincipal: '', entityId: '', kind: '', ownerId: '', recordedAt: '', seq: '', sessionId: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-remote/references/machine-session.md b/.agents/skills/orm-remote/references/machine-session.md new file mode 100644 index 0000000000..b5c10ceccd --- /dev/null +++ b/.agents/skills/orm-remote/references/machine-session.md @@ -0,0 +1,34 @@ +# machineSession + + + +Command or terminal sessions running on an enrolled machine + +## Usage + +```typescript +db.machineSession.findMany({ select: { id: true } }).execute() +db.machineSession.findOne({ id: '', select: { id: true } }).execute() +db.machineSession.create({ data: { agentMode: '', agentSessionRef: '', args: '', cols: '', command: '', createdBy: '', createdByPrincipal: '', cwd: '', endedAt: '', entityId: '', env: '', exitCode: '', interactive: '', lastActivityAt: '', lastSeq: '', machineId: '', metadata: '', ownerId: '', pid: '', runId: '', startedAt: '', state: '', termRows: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute() +db.machineSession.update({ where: { id: '' }, data: { agentMode: '' }, select: { id: true } }).execute() +db.machineSession.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all machineSession records + +```typescript +const items = await db.machineSession.findMany({ + select: { id: true, agentMode: true } +}).execute(); +``` + +### Create a machineSession + +```typescript +const item = await db.machineSession.create({ + data: { agentMode: '', agentSessionRef: '', args: '', cols: '', command: '', createdBy: '', createdByPrincipal: '', cwd: '', endedAt: '', entityId: '', env: '', exitCode: '', interactive: '', lastActivityAt: '', lastSeq: '', machineId: '', metadata: '', ownerId: '', pid: '', runId: '', startedAt: '', state: '', termRows: '', updatedBy: '', updatedByPrincipal: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-remote/references/machine.md b/.agents/skills/orm-remote/references/machine.md new file mode 100644 index 0000000000..2040d24628 --- /dev/null +++ b/.agents/skills/orm-remote/references/machine.md @@ -0,0 +1,34 @@ +# machine + + + +Computers enrolled for remote control, one row per database enrollment + +## Usage + +```typescript +db.machine.findMany({ select: { id: true } }).execute() +db.machine.findOne({ id: '', select: { id: true } }).execute() +db.machine.create({ data: { createdBy: '', createdByPrincipal: '', entityId: '', facts: '', isShared: '', label: '', lastSeenAt: '', ownerId: '', policy: '', principalId: '', revokedAt: '', tokenHash: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute() +db.machine.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute() +db.machine.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all machine records + +```typescript +const items = await db.machine.findMany({ + select: { id: true, createdBy: true } +}).execute(); +``` + +### Create a machine + +```typescript +const item = await db.machine.create({ + data: { createdBy: '', createdByPrincipal: '', entityId: '', facts: '', isShared: '', label: '', lastSeenAt: '', ownerId: '', policy: '', principalId: '', revokedAt: '', tokenHash: '', updatedBy: '', updatedByPrincipal: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-remote/references/machines-enroll.md b/.agents/skills/orm-remote/references/machines-enroll.md new file mode 100644 index 0000000000..125ed2ffae --- /dev/null +++ b/.agents/skills/orm-remote/references/machines-enroll.md @@ -0,0 +1,19 @@ +# machinesEnroll + + + +Execute the machinesEnroll mutation + +## Usage + +```typescript +db.mutation.machinesEnroll({ input: { entityId: '', isShared: '', label: '', tokenHash: '' } }).execute() +``` + +## Examples + +### Run machinesEnroll + +```typescript +const result = await db.mutation.machinesEnroll({ input: { entityId: '', isShared: '', label: '', tokenHash: '' } }).execute(); +``` diff --git a/.agents/skills/orm-remote/references/provision-bucket.md b/.agents/skills/orm-remote/references/provision-bucket.md new file mode 100644 index 0000000000..eaefc02f2f --- /dev/null +++ b/.agents/skills/orm-remote/references/provision-bucket.md @@ -0,0 +1,23 @@ +# provisionBucket + + + +Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. + +## Usage + +```typescript +db.mutation.provisionBucket({ input: { bucketKey: '', ownerId: '' } }).execute() +``` + +## Examples + +### Run provisionBucket + +```typescript +const result = await db.mutation.provisionBucket({ input: { bucketKey: '', ownerId: '' } }).execute(); +``` diff --git a/.agents/skills/orm-storage/SKILL.md b/.agents/skills/orm-storage/SKILL.md new file mode 100644 index 0000000000..281d2a2c14 --- /dev/null +++ b/.agents/skills/orm-storage/SKILL.md @@ -0,0 +1,50 @@ +--- +name: orm-storage +description: ORM client for the storage API — provides typed CRUD operations for 4 tables and 7 custom operations +--- + +# orm-storage + + + +ORM client for the storage API — provides typed CRUD operations for 4 tables and 7 custom operations + +## Usage + +```typescript +// Import the ORM client +import { db } from './orm'; + +// Available models: bucket, file, platformBucket, platformFile +db..findMany({ select: { id: true } }).execute() +db..findOne({ id: '', select: { id: true } }).execute() +db..create({ data: { ... }, select: { id: true } }).execute() +db..update({ where: { id: '' }, data: { ... }, select: { id: true } }).execute() +db..delete({ where: { id: '' } }).execute() +``` + +## Examples + +### Query records + +```typescript +const items = await db.bucket.findMany({ + select: { id: true } +}).execute(); +``` + +## References + +See the `references/` directory for detailed per-entity API documentation: + +- [bucket](references/bucket.md) +- [file](references/file.md) +- [platform-bucket](references/platform-bucket.md) +- [platform-file](references/platform-file.md) +- [files-rename](references/files-rename.md) +- [platform-files-rename](references/platform-files-rename.md) +- [provision-bucket](references/provision-bucket.md) +- [upload-file](references/upload-file.md) +- [upload-files](references/upload-files.md) +- [upload-platform-file](references/upload-platform-file.md) +- [upload-platform-files](references/upload-platform-files.md) diff --git a/.agents/skills/orm-storage/references/bucket.md b/.agents/skills/orm-storage/references/bucket.md new file mode 100644 index 0000000000..64d1d95245 --- /dev/null +++ b/.agents/skills/orm-storage/references/bucket.md @@ -0,0 +1,34 @@ +# bucket + + + +Logical storage containers that group files with shared access policies and CDN behavior + +## Usage + +```typescript +db.bucket.findMany({ select: { id: true } }).execute() +db.bucket.findOne({ id: '', select: { id: true } }).execute() +db.bucket.create({ data: { actorId: '', allowCustomKeys: '', allowedMimeTypes: '', allowedOrigins: '', databaseId: '', description: '', destinationBucketId: '', isPublic: '', key: '', maxFileSize: '', physicalName: '', stagingTtl: '', tags: '', type: '' }, select: { id: true } }).execute() +db.bucket.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute() +db.bucket.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all bucket records + +```typescript +const items = await db.bucket.findMany({ + select: { id: true, actorId: true } +}).execute(); +``` + +### Create a bucket + +```typescript +const item = await db.bucket.create({ + data: { actorId: '', allowCustomKeys: '', allowedMimeTypes: '', allowedOrigins: '', databaseId: '', description: '', destinationBucketId: '', isPublic: '', key: '', maxFileSize: '', physicalName: '', stagingTtl: '', tags: '', type: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-storage/references/file.md b/.agents/skills/orm-storage/references/file.md new file mode 100644 index 0000000000..c528fdeb8b --- /dev/null +++ b/.agents/skills/orm-storage/references/file.md @@ -0,0 +1,34 @@ +# file + + + +Individual file records within buckets, with immutable identity fields and mutable metadata + +## Usage + +```typescript +db.file.findMany({ select: { id: true } }).execute() +db.file.findOne({ id: '', select: { id: true } }).execute() +db.file.create({ data: { actorId: '', bucketId: '', contentHash: '', databaseId: '', description: '', downloadUrl: '', expiryEnqueuedAt: '', filePath: '', filename: '', isPublic: '', key: '', mimeType: '', promotedAt: '', size: '', status: '', tags: '', upload: '' }, select: { id: true } }).execute() +db.file.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute() +db.file.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all file records + +```typescript +const items = await db.file.findMany({ + select: { id: true, actorId: true } +}).execute(); +``` + +### Create a file + +```typescript +const item = await db.file.create({ + data: { actorId: '', bucketId: '', contentHash: '', databaseId: '', description: '', downloadUrl: '', expiryEnqueuedAt: '', filePath: '', filename: '', isPublic: '', key: '', mimeType: '', promotedAt: '', size: '', status: '', tags: '', upload: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-storage/references/files-rename.md b/.agents/skills/orm-storage/references/files-rename.md new file mode 100644 index 0000000000..050a86e734 --- /dev/null +++ b/.agents/skills/orm-storage/references/files-rename.md @@ -0,0 +1,19 @@ +# filesRename + + + +Execute the filesRename mutation + +## Usage + +```typescript +db.mutation.filesRename({ input: { fileId: '', newFilename: '' } }).execute() +``` + +## Examples + +### Run filesRename + +```typescript +const result = await db.mutation.filesRename({ input: { fileId: '', newFilename: '' } }).execute(); +``` diff --git a/.agents/skills/orm-storage/references/platform-bucket.md b/.agents/skills/orm-storage/references/platform-bucket.md new file mode 100644 index 0000000000..5518235f61 --- /dev/null +++ b/.agents/skills/orm-storage/references/platform-bucket.md @@ -0,0 +1,34 @@ +# platformBucket + + + +Logical storage containers that group files with shared access policies and CDN behavior + +## Usage + +```typescript +db.platformBucket.findMany({ select: { id: true } }).execute() +db.platformBucket.findOne({ id: '', select: { id: true } }).execute() +db.platformBucket.create({ data: { actorId: '', allowCustomKeys: '', allowedMimeTypes: '', allowedOrigins: '', description: '', destinationBucketId: '', isPublic: '', key: '', maxFileSize: '', physicalName: '', stagingTtl: '', tags: '', type: '' }, select: { id: true } }).execute() +db.platformBucket.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute() +db.platformBucket.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all platformBucket records + +```typescript +const items = await db.platformBucket.findMany({ + select: { id: true, actorId: true } +}).execute(); +``` + +### Create a platformBucket + +```typescript +const item = await db.platformBucket.create({ + data: { actorId: '', allowCustomKeys: '', allowedMimeTypes: '', allowedOrigins: '', description: '', destinationBucketId: '', isPublic: '', key: '', maxFileSize: '', physicalName: '', stagingTtl: '', tags: '', type: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-storage/references/platform-file.md b/.agents/skills/orm-storage/references/platform-file.md new file mode 100644 index 0000000000..66cbc1eaa6 --- /dev/null +++ b/.agents/skills/orm-storage/references/platform-file.md @@ -0,0 +1,34 @@ +# platformFile + + + +Individual file records within buckets, with immutable identity fields and mutable metadata + +## Usage + +```typescript +db.platformFile.findMany({ select: { id: true } }).execute() +db.platformFile.findOne({ id: '', select: { id: true } }).execute() +db.platformFile.create({ data: { actorId: '', bucketId: '', contentHash: '', description: '', downloadUrl: '', expiryEnqueuedAt: '', filePath: '', filename: '', isPublic: '', key: '', mimeType: '', promotedAt: '', size: '', status: '', tags: '', upload: '' }, select: { id: true } }).execute() +db.platformFile.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute() +db.platformFile.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all platformFile records + +```typescript +const items = await db.platformFile.findMany({ + select: { id: true, actorId: true } +}).execute(); +``` + +### Create a platformFile + +```typescript +const item = await db.platformFile.create({ + data: { actorId: '', bucketId: '', contentHash: '', description: '', downloadUrl: '', expiryEnqueuedAt: '', filePath: '', filename: '', isPublic: '', key: '', mimeType: '', promotedAt: '', size: '', status: '', tags: '', upload: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-storage/references/platform-files-rename.md b/.agents/skills/orm-storage/references/platform-files-rename.md new file mode 100644 index 0000000000..44b9d8a3db --- /dev/null +++ b/.agents/skills/orm-storage/references/platform-files-rename.md @@ -0,0 +1,19 @@ +# platformFilesRename + + + +Execute the platformFilesRename mutation + +## Usage + +```typescript +db.mutation.platformFilesRename({ input: { fileId: '', newFilename: '' } }).execute() +``` + +## Examples + +### Run platformFilesRename + +```typescript +const result = await db.mutation.platformFilesRename({ input: { fileId: '', newFilename: '' } }).execute(); +``` diff --git a/.agents/skills/orm-storage/references/provision-bucket.md b/.agents/skills/orm-storage/references/provision-bucket.md new file mode 100644 index 0000000000..eaefc02f2f --- /dev/null +++ b/.agents/skills/orm-storage/references/provision-bucket.md @@ -0,0 +1,23 @@ +# provisionBucket + + + +Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. + +## Usage + +```typescript +db.mutation.provisionBucket({ input: { bucketKey: '', ownerId: '' } }).execute() +``` + +## Examples + +### Run provisionBucket + +```typescript +const result = await db.mutation.provisionBucket({ input: { bucketKey: '', ownerId: '' } }).execute(); +``` diff --git a/.agents/skills/orm-storage/references/upload-file.md b/.agents/skills/orm-storage/references/upload-file.md new file mode 100644 index 0000000000..7513a62a97 --- /dev/null +++ b/.agents/skills/orm-storage/references/upload-file.md @@ -0,0 +1,19 @@ +# uploadFile + + + +Upload a file: resolves the bucket by key, creates the file row, and returns a presigned PUT URL. + +## Usage + +```typescript +db.mutation.uploadFile({ input: '' }).execute() +``` + +## Examples + +### Run uploadFile + +```typescript +const result = await db.mutation.uploadFile({ input: '' }).execute(); +``` diff --git a/.agents/skills/orm-storage/references/upload-files.md b/.agents/skills/orm-storage/references/upload-files.md new file mode 100644 index 0000000000..7be60502e9 --- /dev/null +++ b/.agents/skills/orm-storage/references/upload-files.md @@ -0,0 +1,19 @@ +# uploadFiles + + + +Upload multiple files: resolves the bucket by key, creates file rows, and returns presigned PUT URLs for each. + +## Usage + +```typescript +db.mutation.uploadFiles({ input: { bucketKey: '', files: '', isPublic: '' } }).execute() +``` + +## Examples + +### Run uploadFiles + +```typescript +const result = await db.mutation.uploadFiles({ input: { bucketKey: '', files: '', isPublic: '' } }).execute(); +``` diff --git a/.agents/skills/orm-storage/references/upload-platform-file.md b/.agents/skills/orm-storage/references/upload-platform-file.md new file mode 100644 index 0000000000..e1d34bfb97 --- /dev/null +++ b/.agents/skills/orm-storage/references/upload-platform-file.md @@ -0,0 +1,19 @@ +# uploadPlatformFile + + + +Upload a file: resolves the bucket by key, creates the file row, and returns a presigned PUT URL. + +## Usage + +```typescript +db.mutation.uploadPlatformFile({ input: '' }).execute() +``` + +## Examples + +### Run uploadPlatformFile + +```typescript +const result = await db.mutation.uploadPlatformFile({ input: '' }).execute(); +``` diff --git a/.agents/skills/orm-storage/references/upload-platform-files.md b/.agents/skills/orm-storage/references/upload-platform-files.md new file mode 100644 index 0000000000..fbfa1b5e8f --- /dev/null +++ b/.agents/skills/orm-storage/references/upload-platform-files.md @@ -0,0 +1,19 @@ +# uploadPlatformFiles + + + +Upload multiple files: resolves the bucket by key, creates file rows, and returns presigned PUT URLs for each. + +## Usage + +```typescript +db.mutation.uploadPlatformFiles({ input: { bucketKey: '', files: '', isPublic: '' } }).execute() +``` + +## Examples + +### Run uploadPlatformFiles + +```typescript +const result = await db.mutation.uploadPlatformFiles({ input: { bucketKey: '', files: '', isPublic: '' } }).execute(); +``` diff --git a/.agents/skills/orm-usage/SKILL.md b/.agents/skills/orm-usage/SKILL.md index 9181998157..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 38 tables and 16 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 38 tables and 16 custom operations +ORM client for the usage API — provides typed CRUD operations for 18 tables and 7 custom operations ## Usage @@ -15,7 +15,7 @@ ORM client for the usage API — provides typed CRUD operations for 38 tables an // Import the ORM client import { db } from './orm'; -// Available models: appAchievementReward, appEventAggregate, appEvent, appEventType, appLevel, appLevelGrant, appLevelRequirement, appLimitCap, ... +// Available models: appLimitCap, appLimitCapsDefault, appLimit, appLimitCreditCode, appLimitCreditCodeItem, appLimitCredit, appLimitCreditRedemption, appLimitDefault, ... 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.appAchievementReward.findMany({ +const items = await db.appLimitCap.findMany({ select: { id: true } }).execute(); ``` @@ -37,13 +37,6 @@ const items = await db.appAchievementReward.findMany({ See the `references/` directory for detailed per-entity API documentation: -- [app-achievement-reward](references/app-achievement-reward.md) -- [app-event-aggregate](references/app-event-aggregate.md) -- [app-event](references/app-event.md) -- [app-event-type](references/app-event-type.md) -- [app-level](references/app-level.md) -- [app-level-grant](references/app-level-grant.md) -- [app-level-requirement](references/app-level-requirement.md) - [app-limit-cap](references/app-limit-cap.md) - [app-limit-caps-default](references/app-limit-caps-default.md) - [app-limit](references/app-limit.md) @@ -54,12 +47,6 @@ See the `references/` directory for detailed per-entity API documentation: - [app-limit-default](references/app-limit-default.md) - [app-limit-event](references/app-limit-event.md) - [app-limit-warning](references/app-limit-warning.md) -- [billing-usage-summary](references/billing-usage-summary.md) -- [ledger](references/ledger.md) -- [meter](references/meter.md) -- [meter-credit](references/meter-credit.md) -- [meter-default](references/meter-default.md) -- [meter-source](references/meter-source.md) - [org-limit-aggregate](references/org-limit-aggregate.md) - [org-limit-cap](references/org-limit-cap.md) - [org-limit-caps-default](references/org-limit-caps-default.md) @@ -68,26 +55,10 @@ 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) -- [plan-cap](references/plan-cap.md) -- [plan](references/plan.md) -- [plan-limit](references/plan-limit.md) -- [plan-meter-limit](references/plan-meter-limit.md) -- [plan-override](references/plan-override.md) -- [plan-pricing](references/plan-pricing.md) -- [plan-subscription](references/plan-subscription.md) - [capture-app-limit-defaults](references/capture-app-limit-defaults.md) - [capture-org-limit-defaults](references/capture-org-limit-defaults.md) -- [capture-trust-ladder](references/capture-trust-ladder.md) -- [events-achieved](references/events-achieved.md) -- [events-required](references/events-required.md) -- [grant-achievement](references/grant-achievement.md) - [provision-bucket](references/provision-bucket.md) -- [recompute-capabilities](references/recompute-capabilities.md) -- [revoke-achievement](references/revoke-achievement.md) - [seed-app-limit-caps-defaults](references/seed-app-limit-caps-defaults.md) - [seed-app-limit-defaults](references/seed-app-limit-defaults.md) -- [seed-meter-defaults](references/seed-meter-defaults.md) - [seed-org-limit-caps-defaults](references/seed-org-limit-caps-defaults.md) - [seed-org-limit-defaults](references/seed-org-limit-defaults.md) -- [seed-plan](references/seed-plan.md) -- [seed-trust-ladder](references/seed-trust-ladder.md) diff --git a/.agents/skills/orm-usage/references/provision-bucket.md b/.agents/skills/orm-usage/references/provision-bucket.md index a9133530f2..eaefc02f2f 100644 --- a/.agents/skills/orm-usage/references/provision-bucket.md +++ b/.agents/skills/orm-usage/references/provision-bucket.md @@ -2,10 +2,11 @@ -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. +Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. ## Usage diff --git a/pgpm/export/src/meta-export-tables.json b/pgpm/export/src/meta-export-tables.json index 83efa833ab..40baf327d3 100644 --- a/pgpm/export/src/meta-export-tables.json +++ b/pgpm/export/src/meta-export-tables.json @@ -146,20 +146,25 @@ "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", "table": "catalog_module" }, { - "key": "compute_log_module", + "key": "cluster_module", "schema": "metaschema_modules_public", - "table": "compute_log_module" + "table": "cluster_module" }, { - "key": "config_secrets_user_module", + "key": "compute_log_module", "schema": "metaschema_modules_public", - "table": "config_secrets_user_module" + "table": "compute_log_module" }, { "key": "connected_accounts_module", @@ -226,6 +231,11 @@ "schema": "metaschema_modules_public", "table": "identity_providers_module" }, + { + "key": "image_module", + "schema": "metaschema_modules_public", + "table": "image_module" + }, { "key": "inference_log_module", "schema": "metaschema_modules_public", @@ -246,6 +256,11 @@ "schema": "metaschema_modules_public", "table": "integration_providers_module" }, + { + "key": "internal_config_module", + "schema": "metaschema_modules_public", + "table": "internal_config_module" + }, { "key": "internal_secrets_module", "schema": "metaschema_modules_public", @@ -261,6 +276,11 @@ "schema": "metaschema_modules_public", "table": "limits_module" }, + { + "key": "machine_module", + "schema": "metaschema_modules_public", + "table": "machine_module" + }, { "key": "membership_types_module", "schema": "metaschema_modules_public", @@ -282,9 +302,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", @@ -321,11 +341,21 @@ "schema": "metaschema_modules_public", "table": "realtime_module" }, + { + "key": "refusal_log_module", + "schema": "metaschema_modules_public", + "table": "refusal_log_module" + }, { "key": "relation_provision", "schema": "metaschema_modules_public", "table": "relation_provision" }, + { + "key": "repository_module", + "schema": "metaschema_modules_public", + "table": "repository_module" + }, { "key": "rls_module", "schema": "metaschema_modules_public", @@ -381,6 +411,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 +491,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 +516,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", @@ -481,6 +531,11 @@ "schema": "metaschema_modules_public", "table": "graph_module" }, + { + "key": "k8s_admission_module", + "schema": "metaschema_modules_public", + "table": "k8s_admission_module" + }, { "key": "memberships_module", "schema": "metaschema_modules_public", @@ -502,14 +557,14 @@ "table": "webhook_module" }, { - "key": "graph_execution_module", + "key": "email_sender_module", "schema": "metaschema_modules_public", - "table": "graph_execution_module" + "table": "email_sender_module" }, { - "key": "http_route_module", + "key": "graph_execution_module", "schema": "metaschema_modules_public", - "table": "http_route_module" + "table": "graph_execution_module" }, { "key": "pages_module", @@ -562,9 +617,19 @@ "table": "domains" }, { - "key": "http_routes", + "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": "http_routes" + "table": "email_site_identities" }, { "key": "managed_domains", @@ -581,6 +646,11 @@ "schema": "routing_public", "table": "pubkey_settings" }, + { + "key": "redirects", + "schema": "routing_public", + "table": "redirects" + }, { "key": "rls_settings", "schema": "routing_public", @@ -591,16 +661,6 @@ "schema": "routing_public", "table": "routes" }, - { - "key": "hostname_bindings", - "schema": "routing_public", - "table": "hostname_bindings" - }, - { - "key": "route_bindings", - "schema": "routing_public", - "table": "route_bindings" - }, { "key": "site_app_links", "schema": "routing_public", @@ -626,6 +686,11 @@ "schema": "routing_public", "table": "site_modules" }, + { + "key": "site_releases", + "schema": "routing_public", + "table": "site_releases" + }, { "key": "site_themes", "schema": "routing_public", @@ -651,6 +716,11 @@ "schema": "apps_public", "table": "app_components" }, + { + "key": "app_store_identities", + "schema": "apps_public", + "table": "app_store_identities" + }, { "key": "apps", "schema": "apps_public", @@ -661,6 +731,11 @@ "schema": "catalog_private", "table": "apis" }, + { + "key": "catalog_private.app_store_identities", + "schema": "catalog_private", + "table": "app_store_identities" + }, { "key": "catalog_private.apps", "schema": "catalog_private", @@ -681,11 +756,31 @@ "schema": "catalog_private", "table": "domains" }, + { + "key": "functions", + "schema": "catalog_private", + "table": "functions" + }, + { + "key": "images", + "schema": "catalog_private", + "table": "images" + }, + { + "key": "catalog_private.managed_domains", + "schema": "catalog_private", + "table": "managed_domains" + }, { "key": "namespaces", "schema": "catalog_private", "table": "namespaces" }, + { + "key": "catalog_private.redirects", + "schema": "catalog_private", + "table": "redirects" + }, { "key": "resource_definitions", "schema": "catalog_private", @@ -732,6 +827,10 @@ "created_at", "updated_at" ], + "apps_public.app_store_identities": [ + "created_at", + "updated_at" + ], "apps_public.apps": [ "created_at", "updated_at" @@ -740,6 +839,10 @@ "created_at", "updated_at" ], + "catalog_private.app_store_identities": [ + "created_at", + "updated_at" + ], "catalog_private.apps": [ "created_at", "updated_at" @@ -760,10 +863,22 @@ "created_at", "updated_at" ], + "catalog_private.images": [ + "created_at", + "updated_at" + ], + "catalog_private.managed_domains": [ + "created_at", + "updated_at" + ], "catalog_private.namespaces": [ "created_at", "updated_at" ], + "catalog_private.redirects": [ + "created_at", + "updated_at" + ], "catalog_private.resource_definitions": [ "created_at", "updated_at" @@ -796,6 +911,9 @@ "created_at", "updated_at" ], + "metaschema_modules_public.content_preset_module": [ + "created_at" + ], "metaschema_modules_public.db_preset_module": [ "created_at" ], @@ -808,6 +926,9 @@ "metaschema_modules_public.hierarchy_module": [ "created_at" ], + "metaschema_modules_public.k8s_admission_module": [ + "created_at" + ], "metaschema_modules_public.merkle_store_module": [ "created_at" ], @@ -942,30 +1063,36 @@ "created_at", "updated_at" ], - "routing_public.http_routes": [ + "routing_public.email_identities": [ "created_at", "updated_at" ], - "routing_public.managed_domains": [ + "routing_public.email_provider_accounts": [ "created_at", "updated_at" ], - "routing_public.pubkey_settings": [ + "routing_public.email_site_identities": [ "created_at", "updated_at" ], - "routing_public.rls_settings": [ + "routing_public.managed_domains": [ "created_at", "updated_at" ], - "routing_public.routes": [ + "routing_public.pubkey_settings": [ + "created_at", + "updated_at" + ], + "routing_public.redirects": [ "created_at", "updated_at" ], - "routing_public.hostname_bindings": [ + "routing_public.rls_settings": [ + "created_at", "updated_at" ], - "routing_public.route_bindings": [ + "routing_public.routes": [ + "created_at", "updated_at" ], "routing_public.site_app_links": [ @@ -988,6 +1115,10 @@ "created_at", "updated_at" ], + "routing_public.site_releases": [ + "created_at", + "updated_at" + ], "routing_public.site_themes": [ "created_at", "updated_at" diff --git a/sdk/constructive-cli/README.md b/sdk/constructive-cli/README.md index 8972d56685..d7ace24d15 100644 --- a/sdk/constructive-cli/README.md +++ b/sdk/constructive-cli/README.md @@ -19,4 +19,6 @@ | infra | - | ORM, CLI | [./src/infra/README.md](./src/infra/README.md) | | modules | - | ORM, CLI | [./src/modules/README.md](./src/modules/README.md) | | objects | - | ORM, CLI | [./src/objects/README.md](./src/objects/README.md) | +| remote | - | ORM, CLI | [./src/remote/README.md](./src/remote/README.md) | +| storage | - | ORM, CLI | [./src/storage/README.md](./src/storage/README.md) | | usage | - | ORM, CLI | [./src/usage/README.md](./src/usage/README.md) | diff --git a/sdk/constructive-cli/src/.targets b/sdk/constructive-cli/src/.targets index cf3103f66e..a76617a0f3 100644 --- a/sdk/constructive-cli/src/.targets +++ b/sdk/constructive-cli/src/.targets @@ -1 +1 @@ -["admin","agent","api","auth","compute","config","infra","modules","objects","usage"] +["admin","agent","api","auth","compute","config","infra","modules","objects","remote","storage","usage"] diff --git a/sdk/constructive-cli/src/admin/README.md b/sdk/constructive-cli/src/admin/README.md index 952669294d..9bed64814d 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:** 2 - **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 4f118a6683..cabc4b9beb 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,23 +52,13 @@ 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 | +| `get-organization-id` | getOrganizationId | | `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, -and lifecycle settings. | +| `provision-bucket` | Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. | | `submit-app-invite-code` | submitAppInviteCode | | `submit-org-invite-code` | submitOrgInviteCode | @@ -139,6 +129,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 +224,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,8 +286,10 @@ CRUD operations for AppMembership records. | Field | Type | |-------|------| | `actorId` | UUID | +| `capabilities` | BitString | | `createdAt` | Datetime | | `createdBy` | UUID | +| `createdByPrincipal` | UUID | | `granted` | BitString | | `id` | UUID | | `isActive` | Boolean | @@ -256,13 +299,13 @@ CRUD operations for AppMembership records. | `isDisabled` | Boolean | | `isOwner` | Boolean | | `isVerified` | Boolean | -| `permissions` | BitString | | `profileId` | UUID | | `updatedAt` | Datetime | | `updatedBy` | UUID | +| `updatedByPrincipal` | 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`, `createdByPrincipal`, `granted`, `isActive`, `isAdmin`, `isApproved`, `isBanned`, `isDisabled`, `isOwner`, `isVerified`, `profileId`, `updatedBy`, `updatedByPrincipal` ### `app-membership-default` @@ -283,13 +326,15 @@ CRUD operations for AppMembershipDefault records. |-------|------| | `createdAt` | Datetime | | `createdBy` | UUID | +| `createdByPrincipal` | UUID | | `id` | UUID | | `isApproved` | Boolean | | `isVerified` | Boolean | | `updatedAt` | Datetime | | `updatedBy` | UUID | +| `updatedByPrincipal` | UUID | -**Optional create fields (backend defaults):** `createdBy`, `isApproved`, `isVerified`, `updatedBy` +**Optional create fields (backend defaults):** `createdBy`, `createdByPrincipal`, `isApproved`, `isVerified`, `updatedBy`, `updatedByPrincipal` ### `app-owner-grant` @@ -317,149 +362,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 +467,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 +619,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,8 +744,10 @@ CRUD operations for OrgMembership records. | Field | Type | |-------|------| | `actorId` | UUID | +| `capabilities` | BitString | | `createdAt` | Datetime | | `createdBy` | UUID | +| `createdByPrincipal` | UUID | | `entityId` | UUID | | `granted` | BitString | | `id` | UUID | @@ -757,13 +759,13 @@ CRUD operations for OrgMembership records. | `isExternal` | Boolean | | `isOwner` | Boolean | | `isReadOnly` | Boolean | -| `permissions` | BitString | | `profileId` | UUID | | `updatedAt` | Datetime | | `updatedBy` | UUID | +| `updatedByPrincipal` | 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`, `createdByPrincipal`, `granted`, `isActive`, `isAdmin`, `isApproved`, `isBanned`, `isDisabled`, `isExternal`, `isOwner`, `isReadOnly`, `profileId`, `updatedBy`, `updatedByPrincipal` ### `org-membership-default` @@ -784,14 +786,16 @@ CRUD operations for OrgMembershipDefault records. |-------|------| | `createdAt` | Datetime | | `createdBy` | UUID | +| `createdByPrincipal` | UUID | | `entityId` | UUID | | `id` | UUID | | `isApproved` | Boolean | | `updatedAt` | Datetime | | `updatedBy` | UUID | +| `updatedByPrincipal` | UUID | **Required create fields:** `entityId` -**Optional create fields (backend defaults):** `createdBy`, `isApproved`, `updatedBy` +**Optional create fields (backend defaults):** `createdBy`, `createdByPrincipal`, `isApproved`, `updatedBy`, `updatedByPrincipal` ### `org-membership-setting` @@ -811,11 +815,13 @@ CRUD operations for OrgMembershipSetting records. | Field | Type | |-------|------| | `allowExternalMembers` | Boolean | +| `allowPrincipalOwnedApiKeys` | Boolean | | `createChildCascadeAdmins` | Boolean | | `createChildCascadeMembers` | Boolean | | `createChildCascadeOwners` | Boolean | | `createdAt` | Datetime | | `createdBy` | UUID | +| `createdByPrincipal` | UUID | | `deleteMemberCascadeChildren` | Boolean | | `entityId` | UUID | | `id` | UUID | @@ -824,9 +830,10 @@ CRUD operations for OrgMembershipSetting records. | `populateMemberEmail` | Boolean | | `updatedAt` | Datetime | | `updatedBy` | UUID | +| `updatedByPrincipal` | UUID | **Required create fields:** `entityId` -**Optional create fields (backend defaults):** `allowExternalMembers`, `createChildCascadeAdmins`, `createChildCascadeMembers`, `createChildCascadeOwners`, `createdBy`, `deleteMemberCascadeChildren`, `inviteProfileAssignmentMode`, `limitAllocationMode`, `populateMemberEmail`, `updatedBy` +**Optional create fields (backend defaults):** `allowExternalMembers`, `allowPrincipalOwnedApiKeys`, `createChildCascadeAdmins`, `createChildCascadeMembers`, `createChildCascadeOwners`, `createdBy`, `createdByPrincipal`, `deleteMemberCascadeChildren`, `inviteProfileAssignmentMode`, `limitAllocationMode`, `populateMemberEmail`, `updatedBy`, `updatedByPrincipal` ### `org-owner-grant` @@ -856,156 +863,19 @@ 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` +### `get-organization-id` -Reads and enables pagination through a set of `AppPermission`. +getOrganizationId - **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 | + | `--entityId` | UUID | + | `--entityType` | String | ### `org-is-manager-of` @@ -1021,59 +891,13 @@ 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. -Reads the bucket config via RLS, then creates and configures -the S3 bucket with the appropriate privacy policies, CORS rules, -and lifecycle settings. +Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. - **Type:** mutation - **Arguments:** diff --git a/sdk/constructive-cli/src/admin/cli/commands.ts b/sdk/constructive-cli/src/admin/cli/commands.ts index f0e6c21289..6090ee2d05 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,8 @@ 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 getOrganizationIdCmd from './commands/get-organization-id'; 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 +48,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 +73,14 @@ 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, + 'get-organization-id': getOrganizationIdCmd, '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 get-organization-id getOrganizationId\n org-is-manager-of orgIsManagerOf\n provision-bucket Reconcile an S3 bucket for a logical bucket in the database.\nReads the bucket config via RLS, then enqueues the same\nstorage:provision_bucket job used by the INSERT trigger. This is\nidempotent for an already-reconciled bucket; enqueue failures become\nGraphQL errors.\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-capability-default-capability.ts b/sdk/constructive-cli/src/admin/cli/commands/app-capability-default-capability.ts new file mode 100644 index 0000000000..3903517b27 --- /dev/null +++ b/sdk/constructive-cli/src/admin/cli/commands/app-capability-default-capability.ts @@ -0,0 +1,271 @@ +/** + * CLI commands for AppCapabilityDefaultCapability + * @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 { + 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', + updatedAt: 'string', +}; +const usage = + '\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, + _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 = { + capabilityId: true, + createdAt: true, + id: true, + updatedAt: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs< + AppCapabilityDefaultCapabilitySelect, + AppCapabilityDefaultCapabilityFilter, + AppCapabilityDefaultCapabilityOrderBy + > & { + select: AppCapabilityDefaultCapabilitySelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.appCapabilityDefaultCapability.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 = { + capabilityId: true, + createdAt: true, + id: true, + updatedAt: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs< + AppCapabilityDefaultCapabilitySelect, + AppCapabilityDefaultCapabilityFilter, + AppCapabilityDefaultCapabilityOrderBy + > & { + select: AppCapabilityDefaultCapabilitySelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.appCapabilityDefaultCapability.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.appCapabilityDefaultCapability + .findOne({ + id: answers.id as string, + select: { + capabilityId: true, + createdAt: true, + id: 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: 'capabilityId', + message: 'capabilityId', + required: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateAppCapabilityDefaultCapabilityInput['appCapabilityDefaultCapability']; + const client = getClient(); + const result = await client.appCapabilityDefaultCapability + .create({ + data: { + capabilityId: cleanedData.capabilityId, + }, + select: { + capabilityId: true, + createdAt: true, + id: 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: 'capabilityId', + message: 'capabilityId', + required: false, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as AppCapabilityDefaultCapabilityPatch; + const client = getClient(); + const result = await client.appCapabilityDefaultCapability + .update({ + where: { + id: answers.id as string, + }, + data: { + capabilityId: cleanedData.capabilityId, + }, + select: { + capabilityId: true, + createdAt: true, + id: 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.appCapabilityDefaultCapability + .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-capability-default-grant.ts b/sdk/constructive-cli/src/admin/cli/commands/app-capability-default-grant.ts new file mode 100644 index 0000000000..41aeff7316 --- /dev/null +++ b/sdk/constructive-cli/src/admin/cli/commands/app-capability-default-grant.ts @@ -0,0 +1,315 @@ +/** + * CLI commands for AppCapabilityDefaultGrant + * @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 { + 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', + updatedAt: 'string', +}; +const usage = + '\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, + _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 = { + capabilityId: true, + createdAt: true, + grantorId: true, + id: true, + isGrant: true, + updatedAt: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs< + AppCapabilityDefaultGrantSelect, + AppCapabilityDefaultGrantFilter, + AppCapabilityDefaultGrantOrderBy + > & { + select: AppCapabilityDefaultGrantSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.appCapabilityDefaultGrant.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 = { + capabilityId: true, + createdAt: true, + grantorId: true, + id: true, + isGrant: true, + updatedAt: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs< + AppCapabilityDefaultGrantSelect, + AppCapabilityDefaultGrantFilter, + AppCapabilityDefaultGrantOrderBy + > & { + select: AppCapabilityDefaultGrantSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.appCapabilityDefaultGrant.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.appCapabilityDefaultGrant + .findOne({ + id: answers.id as string, + select: { + capabilityId: true, + createdAt: true, + grantorId: true, + id: true, + isGrant: 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: 'capabilityId', + message: 'capabilityId', + required: true, + }, + { + type: 'text', + name: 'grantorId', + message: 'grantorId', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'isGrant', + message: 'isGrant', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateAppCapabilityDefaultGrantInput['appCapabilityDefaultGrant']; + const client = getClient(); + const result = await client.appCapabilityDefaultGrant + .create({ + data: { + capabilityId: cleanedData.capabilityId, + grantorId: cleanedData.grantorId, + isGrant: cleanedData.isGrant, + }, + select: { + capabilityId: true, + createdAt: true, + grantorId: true, + id: true, + isGrant: 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: 'capabilityId', + message: 'capabilityId', + required: false, + }, + { + type: 'text', + name: 'grantorId', + message: 'grantorId', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'isGrant', + message: 'isGrant', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as AppCapabilityDefaultGrantPatch; + const client = getClient(); + const result = await client.appCapabilityDefaultGrant + .update({ + where: { + id: answers.id as string, + }, + data: { + capabilityId: cleanedData.capabilityId, + grantorId: cleanedData.grantorId, + isGrant: cleanedData.isGrant, + }, + select: { + capabilityId: true, + createdAt: true, + grantorId: true, + id: true, + isGrant: 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.appCapabilityDefaultGrant + .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-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-default.ts b/sdk/constructive-cli/src/admin/cli/commands/app-membership-default.ts index cecf038631..c88f9efa7c 100644 --- a/sdk/constructive-cli/src/admin/cli/commands/app-membership-default.ts +++ b/sdk/constructive-cli/src/admin/cli/commands/app-membership-default.ts @@ -18,11 +18,13 @@ import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { createdAt: 'string', createdBy: 'uuid', + createdByPrincipal: 'uuid', id: 'uuid', isApproved: 'boolean', isVerified: 'boolean', updatedAt: 'string', updatedBy: 'uuid', + updatedByPrincipal: 'uuid', }; const usage = '\napp-membership-default \n\nCommands:\n list List appMembershipDefault records\n find-first Find first matching appMembershipDefault record\n get Get a appMembershipDefault by ID\n create Create a new appMembershipDefault\n update Update an existing appMembershipDefault\n delete Delete a appMembershipDefault\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'; @@ -77,11 +79,13 @@ async function handleList(argv: Partial>, _prompter: Inq const defaultSelect = { createdAt: true, createdBy: true, + createdByPrincipal: true, id: true, isApproved: true, isVerified: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs< @@ -108,11 +112,13 @@ async function handleFindFirst(argv: Partial>, _prompter const defaultSelect = { createdAt: true, createdBy: true, + createdByPrincipal: true, id: true, isApproved: true, isVerified: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs< @@ -151,11 +157,13 @@ async function handleGet(argv: Partial>, prompter: Inqui select: { createdAt: true, createdBy: true, + createdByPrincipal: true, id: true, isApproved: true, isVerified: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }, }) .execute(); @@ -178,6 +186,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, { type: 'boolean', name: 'isApproved', @@ -199,6 +214,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined( @@ -210,18 +232,22 @@ async function handleCreate(argv: Partial>, prompter: In .create({ data: { createdBy: cleanedData.createdBy, + createdByPrincipal: cleanedData.createdByPrincipal, isApproved: cleanedData.isApproved, isVerified: cleanedData.isVerified, updatedBy: cleanedData.updatedBy, + updatedByPrincipal: cleanedData.updatedByPrincipal, }, select: { createdAt: true, createdBy: true, + createdByPrincipal: true, id: true, isApproved: true, isVerified: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }, }) .execute(); @@ -250,6 +276,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, { type: 'boolean', name: 'isApproved', @@ -271,6 +304,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as AppMembershipDefaultPatch; @@ -282,18 +322,22 @@ async function handleUpdate(argv: Partial>, prompter: In }, data: { createdBy: cleanedData.createdBy, + createdByPrincipal: cleanedData.createdByPrincipal, isApproved: cleanedData.isApproved, isVerified: cleanedData.isVerified, updatedBy: cleanedData.updatedBy, + updatedByPrincipal: cleanedData.updatedByPrincipal, }, select: { createdAt: true, createdBy: true, + createdByPrincipal: true, id: true, isApproved: true, isVerified: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }, }) .execute(); 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..41c45c3b53 100644 --- a/sdk/constructive-cli/src/admin/cli/commands/app-membership.ts +++ b/sdk/constructive-cli/src/admin/cli/commands/app-membership.ts @@ -17,8 +17,10 @@ import type { import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { actorId: 'uuid', + capabilities: 'string', createdAt: 'string', createdBy: 'uuid', + createdByPrincipal: 'uuid', granted: 'string', id: 'uuid', isActive: 'boolean', @@ -28,10 +30,10 @@ const fieldSchema: FieldSchema = { isDisabled: 'boolean', isOwner: 'boolean', isVerified: 'boolean', - permissions: 'string', profileId: 'uuid', updatedAt: 'string', updatedBy: 'uuid', + updatedByPrincipal: 'uuid', }; const usage = '\napp-membership \n\nCommands:\n list List appMembership records\n find-first Find first matching appMembership record\n get Get a appMembership by ID\n create Create a new appMembership\n update Update an existing appMembership\n delete Delete a appMembership\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'; @@ -85,8 +87,10 @@ async function handleList(argv: Partial>, _prompter: Inq try { const defaultSelect = { actorId: true, + capabilities: true, createdAt: true, createdBy: true, + createdByPrincipal: true, granted: true, id: true, isActive: true, @@ -96,10 +100,10 @@ async function handleList(argv: Partial>, _prompter: Inq isDisabled: true, isOwner: true, isVerified: true, - permissions: true, profileId: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs & { @@ -121,8 +125,10 @@ async function handleFindFirst(argv: Partial>, _prompter try { const defaultSelect = { actorId: true, + capabilities: true, createdAt: true, createdBy: true, + createdByPrincipal: true, granted: true, id: true, isActive: true, @@ -132,10 +138,10 @@ async function handleFindFirst(argv: Partial>, _prompter isDisabled: true, isOwner: true, isVerified: true, - permissions: true, profileId: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs & { @@ -169,8 +175,10 @@ async function handleGet(argv: Partial>, prompter: Inqui id: answers.id as string, select: { actorId: true, + capabilities: true, createdAt: true, createdBy: true, + createdByPrincipal: true, granted: true, id: true, isActive: true, @@ -180,10 +188,10 @@ async function handleGet(argv: Partial>, prompter: Inqui isDisabled: true, isOwner: true, isVerified: true, - permissions: true, profileId: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }, }) .execute(); @@ -205,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', @@ -212,6 +227,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'granted', @@ -270,22 +292,22 @@ async function handleCreate(argv: Partial>, prompter: In }, { type: 'text', - name: 'permissions', - message: 'permissions', + name: 'profileId', + message: 'profileId', required: false, skipPrompt: true, }, { type: 'text', - name: 'profileId', - message: 'profileId', + name: 'updatedBy', + message: 'updatedBy', required: false, skipPrompt: true, }, { type: 'text', - name: 'updatedBy', - message: 'updatedBy', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', required: false, skipPrompt: true, }, @@ -300,7 +322,9 @@ async function handleCreate(argv: Partial>, prompter: In .create({ data: { actorId: cleanedData.actorId, + capabilities: cleanedData.capabilities, createdBy: cleanedData.createdBy, + createdByPrincipal: cleanedData.createdByPrincipal, granted: cleanedData.granted, isActive: cleanedData.isActive, isAdmin: cleanedData.isAdmin, @@ -309,14 +333,16 @@ 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, + updatedByPrincipal: cleanedData.updatedByPrincipal, }, select: { actorId: true, + capabilities: true, createdAt: true, createdBy: true, + createdByPrincipal: true, granted: true, id: true, isActive: true, @@ -326,10 +352,10 @@ async function handleCreate(argv: Partial>, prompter: In isDisabled: true, isOwner: true, isVerified: true, - permissions: true, profileId: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }, }) .execute(); @@ -357,6 +383,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', @@ -364,6 +397,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'granted', @@ -422,22 +462,22 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'permissions', - message: 'permissions', + name: 'profileId', + message: 'profileId', required: false, skipPrompt: true, }, { type: 'text', - name: 'profileId', - message: 'profileId', + name: 'updatedBy', + message: 'updatedBy', required: false, skipPrompt: true, }, { type: 'text', - name: 'updatedBy', - message: 'updatedBy', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', required: false, skipPrompt: true, }, @@ -452,7 +492,9 @@ async function handleUpdate(argv: Partial>, prompter: In }, data: { actorId: cleanedData.actorId, + capabilities: cleanedData.capabilities, createdBy: cleanedData.createdBy, + createdByPrincipal: cleanedData.createdByPrincipal, granted: cleanedData.granted, isActive: cleanedData.isActive, isAdmin: cleanedData.isAdmin, @@ -461,14 +503,16 @@ 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, + updatedByPrincipal: cleanedData.updatedByPrincipal, }, select: { actorId: true, + capabilities: true, createdAt: true, createdBy: true, + createdByPrincipal: true, granted: true, id: true, isActive: true, @@ -478,10 +522,10 @@ async function handleUpdate(argv: Partial>, prompter: In isDisabled: true, isOwner: true, isVerified: true, - permissions: true, profileId: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }, }) .execute(); diff --git a/sdk/constructive-cli/src/admin/cli/commands/app-permission-default-grant.ts b/sdk/constructive-cli/src/admin/cli/commands/app-permission-default-grant.ts deleted file mode 100644 index dbe5909dd1..0000000000 --- a/sdk/constructive-cli/src/admin/cli/commands/app-permission-default-grant.ts +++ /dev/null @@ -1,315 +0,0 @@ -/** - * CLI commands for AppPermissionDefaultGrant - * @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 { - CreateAppPermissionDefaultGrantInput, - AppPermissionDefaultGrantPatch, - AppPermissionDefaultGrantSelect, - AppPermissionDefaultGrantFilter, - AppPermissionDefaultGrantOrderBy, -} from '../../orm/input-types'; -import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; -const fieldSchema: FieldSchema = { - 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'; -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, - grantorId: true, - id: true, - isGrant: true, - permissionId: true, - updatedAt: true, - }; - const findManyArgs = parseFindManyArgs< - FindManyArgs< - AppPermissionDefaultGrantSelect, - AppPermissionDefaultGrantFilter, - AppPermissionDefaultGrantOrderBy - > & { - select: AppPermissionDefaultGrantSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.appPermissionDefaultGrant.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, - grantorId: true, - id: true, - isGrant: true, - permissionId: true, - updatedAt: true, - }; - const findFirstArgs = parseFindFirstArgs< - FindFirstArgs< - AppPermissionDefaultGrantSelect, - AppPermissionDefaultGrantFilter, - AppPermissionDefaultGrantOrderBy - > & { - select: AppPermissionDefaultGrantSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.appPermissionDefaultGrant.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.appPermissionDefaultGrant - .findOne({ - id: answers.id as string, - select: { - createdAt: true, - grantorId: true, - id: true, - isGrant: true, - permissionId: 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: 'grantorId', - message: 'grantorId', - required: false, - skipPrompt: true, - }, - { - type: 'boolean', - name: 'isGrant', - message: 'isGrant', - 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']; - const client = getClient(); - const result = await client.appPermissionDefaultGrant - .create({ - data: { - grantorId: cleanedData.grantorId, - isGrant: cleanedData.isGrant, - permissionId: cleanedData.permissionId, - }, - select: { - createdAt: true, - grantorId: true, - id: true, - isGrant: true, - permissionId: 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: 'grantorId', - message: 'grantorId', - required: false, - skipPrompt: true, - }, - { - type: 'boolean', - name: 'isGrant', - message: 'isGrant', - 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 client = getClient(); - const result = await client.appPermissionDefaultGrant - .update({ - where: { - id: answers.id as string, - }, - data: { - grantorId: cleanedData.grantorId, - isGrant: cleanedData.isGrant, - permissionId: cleanedData.permissionId, - }, - select: { - createdAt: true, - grantorId: true, - id: true, - isGrant: true, - permissionId: 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.appPermissionDefaultGrant - .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-permission-default-permission.ts b/sdk/constructive-cli/src/admin/cli/commands/app-permission-default-permission.ts deleted file mode 100644 index 56917d715e..0000000000 --- a/sdk/constructive-cli/src/admin/cli/commands/app-permission-default-permission.ts +++ /dev/null @@ -1,271 +0,0 @@ -/** - * CLI commands for AppPermissionDefaultPermission - * @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 { - CreateAppPermissionDefaultPermissionInput, - AppPermissionDefaultPermissionPatch, - AppPermissionDefaultPermissionSelect, - AppPermissionDefaultPermissionFilter, - AppPermissionDefaultPermissionOrderBy, -} from '../../orm/input-types'; -import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; -const fieldSchema: FieldSchema = { - 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'; -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, - id: true, - permissionId: true, - updatedAt: true, - }; - const findManyArgs = parseFindManyArgs< - FindManyArgs< - AppPermissionDefaultPermissionSelect, - AppPermissionDefaultPermissionFilter, - AppPermissionDefaultPermissionOrderBy - > & { - select: AppPermissionDefaultPermissionSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.appPermissionDefaultPermission.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, - id: true, - permissionId: true, - updatedAt: true, - }; - const findFirstArgs = parseFindFirstArgs< - FindFirstArgs< - AppPermissionDefaultPermissionSelect, - AppPermissionDefaultPermissionFilter, - AppPermissionDefaultPermissionOrderBy - > & { - select: AppPermissionDefaultPermissionSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.appPermissionDefaultPermission.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.appPermissionDefaultPermission - .findOne({ - id: answers.id as string, - select: { - createdAt: true, - id: true, - permissionId: 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: 'permissionId', - message: 'permissionId', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreateAppPermissionDefaultPermissionInput['appPermissionDefaultPermission']; - const client = getClient(); - const result = await client.appPermissionDefaultPermission - .create({ - data: { - permissionId: cleanedData.permissionId, - }, - select: { - createdAt: true, - id: true, - permissionId: 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: 'permissionId', - message: 'permissionId', - required: false, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as AppPermissionDefaultPermissionPatch; - const client = getClient(); - const result = await client.appPermissionDefaultPermission - .update({ - where: { - id: answers.id as string, - }, - data: { - permissionId: cleanedData.permissionId, - }, - select: { - createdAt: true, - id: true, - permissionId: 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.appPermissionDefaultPermission - .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-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-permission.ts b/sdk/constructive-cli/src/admin/cli/commands/app-permission.ts deleted file mode 100644 index 75325a49b6..0000000000 --- a/sdk/constructive-cli/src/admin/cli/commands/app-permission.ts +++ /dev/null @@ -1,319 +0,0 @@ -/** - * CLI commands for AppPermission - * @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 { - CreateAppPermissionInput, - AppPermissionPatch, - AppPermissionSelect, - AppPermissionFilter, - AppPermissionOrderBy, -} from '../../orm/input-types'; -import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; -const fieldSchema: FieldSchema = { - bitnum: 'int', - bitstr: 'string', - description: 'string', - id: 'uuid', - name: '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'; -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 = { - bitnum: true, - bitstr: true, - description: true, - id: true, - name: true, - }; - const findManyArgs = parseFindManyArgs< - FindManyArgs & { - select: AppPermissionSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.appPermission.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 = { - bitnum: true, - bitstr: true, - description: true, - id: true, - name: true, - }; - const findFirstArgs = parseFindFirstArgs< - FindFirstArgs & { - select: AppPermissionSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.appPermission.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.appPermission - .findOne({ - id: answers.id as string, - select: { - bitnum: true, - bitstr: true, - description: true, - id: true, - name: 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: 'bitnum', - message: 'bitnum', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'bitstr', - message: 'bitstr', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'description', - message: 'description', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'name', - message: 'name', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreateAppPermissionInput['appPermission']; - const client = getClient(); - const result = await client.appPermission - .create({ - data: { - bitnum: cleanedData.bitnum, - bitstr: cleanedData.bitstr, - description: cleanedData.description, - name: cleanedData.name, - }, - select: { - bitnum: true, - bitstr: true, - description: true, - id: true, - name: 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: 'bitnum', - message: 'bitnum', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'bitstr', - message: 'bitstr', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'description', - message: 'description', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'name', - message: 'name', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as AppPermissionPatch; - const client = getClient(); - const result = await client.appPermission - .update({ - where: { - id: answers.id as string, - }, - data: { - bitnum: cleanedData.bitnum, - bitstr: cleanedData.bitstr, - description: cleanedData.description, - name: cleanedData.name, - }, - select: { - bitnum: true, - bitstr: true, - description: true, - id: true, - name: 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.appPermission - .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-mask.ts b/sdk/constructive-cli/src/admin/cli/commands/app-permissions-get-mask.ts deleted file mode 100644 index f40cf36074..0000000000 --- a/sdk/constructive-cli/src/admin/cli/commands/app-permissions-get-mask.ts +++ /dev/null @@ -1,40 +0,0 @@ -/** - * CLI command for query appPermissionsGetMask - * @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, - _options: CLIOptions -) => { - try { - if (argv.help || argv.h) { - console.log( - 'app-permissions-get-mask - appPermissionsGetMask\n\nUsage: app-permissions-get-mask [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(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed: appPermissionsGetMask'); - 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/get-organization-id.ts b/sdk/constructive-cli/src/admin/cli/commands/get-organization-id.ts new file mode 100644 index 0000000000..27bb814a77 --- /dev/null +++ b/sdk/constructive-cli/src/admin/cli/commands/get-organization-id.ts @@ -0,0 +1,45 @@ +/** + * CLI command for query getOrganizationId + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { CLIOptions, Inquirerer } from 'inquirerer'; +import { getClient } from '../executor'; +import type { GetOrganizationIdVariables } from '../../orm/query'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'get-organization-id - getOrganizationId\n\nUsage: get-organization-id [OPTIONS]\n' + ); + process.exit(0); + } + const answers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'entityId', + message: 'entityId', + }, + { + type: 'text', + name: 'entityType', + message: 'entityType', + }, + ]); + const client = getClient(); + const result = await client.query + .getOrganizationId(answers as unknown as GetOrganizationIdVariables) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: getOrganizationId'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/admin/cli/commands/org-capability-default-capability.ts b/sdk/constructive-cli/src/admin/cli/commands/org-capability-default-capability.ts new file mode 100644 index 0000000000..26ba9f6823 --- /dev/null +++ b/sdk/constructive-cli/src/admin/cli/commands/org-capability-default-capability.ts @@ -0,0 +1,291 @@ +/** + * CLI commands for OrgCapabilityDefaultCapability + * @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 { + 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', + updatedAt: 'string', +}; +const usage = + '\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, + _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 = { + capabilityId: true, + createdAt: true, + entityId: true, + id: true, + updatedAt: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs< + OrgCapabilityDefaultCapabilitySelect, + OrgCapabilityDefaultCapabilityFilter, + OrgCapabilityDefaultCapabilityOrderBy + > & { + select: OrgCapabilityDefaultCapabilitySelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.orgCapabilityDefaultCapability.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 = { + capabilityId: true, + createdAt: true, + entityId: true, + id: true, + updatedAt: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs< + OrgCapabilityDefaultCapabilitySelect, + OrgCapabilityDefaultCapabilityFilter, + OrgCapabilityDefaultCapabilityOrderBy + > & { + select: OrgCapabilityDefaultCapabilitySelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.orgCapabilityDefaultCapability.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.orgCapabilityDefaultCapability + .findOne({ + id: answers.id as string, + select: { + capabilityId: true, + createdAt: true, + entityId: true, + id: 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: 'capabilityId', + message: 'capabilityId', + required: true, + }, + { + type: 'text', + name: 'entityId', + message: 'entityId', + required: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateOrgCapabilityDefaultCapabilityInput['orgCapabilityDefaultCapability']; + const client = getClient(); + const result = await client.orgCapabilityDefaultCapability + .create({ + data: { + capabilityId: cleanedData.capabilityId, + entityId: cleanedData.entityId, + }, + select: { + capabilityId: true, + createdAt: true, + entityId: true, + id: 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: 'capabilityId', + message: 'capabilityId', + required: false, + }, + { + type: 'text', + name: 'entityId', + message: 'entityId', + required: false, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as OrgCapabilityDefaultCapabilityPatch; + const client = getClient(); + const result = await client.orgCapabilityDefaultCapability + .update({ + where: { + id: answers.id as string, + }, + data: { + capabilityId: cleanedData.capabilityId, + entityId: cleanedData.entityId, + }, + select: { + capabilityId: true, + createdAt: true, + entityId: true, + id: 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.orgCapabilityDefaultCapability + .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-capability-default-grant.ts b/sdk/constructive-cli/src/admin/cli/commands/org-capability-default-grant.ts new file mode 100644 index 0000000000..c99f62f2fb --- /dev/null +++ b/sdk/constructive-cli/src/admin/cli/commands/org-capability-default-grant.ts @@ -0,0 +1,335 @@ +/** + * CLI commands for OrgCapabilityDefaultGrant + * @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 { + 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', + updatedAt: 'string', +}; +const usage = + '\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, + _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 = { + capabilityId: true, + createdAt: true, + entityId: true, + grantorId: true, + id: true, + isGrant: true, + updatedAt: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs< + OrgCapabilityDefaultGrantSelect, + OrgCapabilityDefaultGrantFilter, + OrgCapabilityDefaultGrantOrderBy + > & { + select: OrgCapabilityDefaultGrantSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.orgCapabilityDefaultGrant.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 = { + capabilityId: true, + createdAt: true, + entityId: true, + grantorId: true, + id: true, + isGrant: true, + updatedAt: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs< + OrgCapabilityDefaultGrantSelect, + OrgCapabilityDefaultGrantFilter, + OrgCapabilityDefaultGrantOrderBy + > & { + select: OrgCapabilityDefaultGrantSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.orgCapabilityDefaultGrant.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.orgCapabilityDefaultGrant + .findOne({ + id: answers.id as string, + select: { + capabilityId: true, + createdAt: true, + entityId: true, + grantorId: true, + id: true, + isGrant: 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: 'capabilityId', + message: 'capabilityId', + required: true, + }, + { + type: 'text', + name: 'entityId', + message: 'entityId', + required: true, + }, + { + type: 'text', + name: 'grantorId', + message: 'grantorId', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'isGrant', + message: 'isGrant', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateOrgCapabilityDefaultGrantInput['orgCapabilityDefaultGrant']; + const client = getClient(); + const result = await client.orgCapabilityDefaultGrant + .create({ + data: { + capabilityId: cleanedData.capabilityId, + entityId: cleanedData.entityId, + grantorId: cleanedData.grantorId, + isGrant: cleanedData.isGrant, + }, + select: { + capabilityId: true, + createdAt: true, + entityId: true, + grantorId: true, + id: true, + isGrant: 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: 'capabilityId', + message: 'capabilityId', + required: false, + }, + { + type: 'text', + name: 'entityId', + message: 'entityId', + required: false, + }, + { + type: 'text', + name: 'grantorId', + message: 'grantorId', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'isGrant', + message: 'isGrant', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as OrgCapabilityDefaultGrantPatch; + const client = getClient(); + 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, + }, + select: { + capabilityId: true, + createdAt: true, + entityId: true, + grantorId: true, + id: true, + isGrant: 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.orgCapabilityDefaultGrant + .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-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-default.ts b/sdk/constructive-cli/src/admin/cli/commands/org-membership-default.ts index ef6f59f9ec..44e70636a4 100644 --- a/sdk/constructive-cli/src/admin/cli/commands/org-membership-default.ts +++ b/sdk/constructive-cli/src/admin/cli/commands/org-membership-default.ts @@ -18,11 +18,13 @@ import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { createdAt: 'string', createdBy: 'uuid', + createdByPrincipal: 'uuid', entityId: 'uuid', id: 'uuid', isApproved: 'boolean', updatedAt: 'string', updatedBy: 'uuid', + updatedByPrincipal: 'uuid', }; const usage = '\norg-membership-default \n\nCommands:\n list List orgMembershipDefault records\n find-first Find first matching orgMembershipDefault record\n get Get a orgMembershipDefault by ID\n create Create a new orgMembershipDefault\n update Update an existing orgMembershipDefault\n delete Delete a orgMembershipDefault\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'; @@ -77,11 +79,13 @@ async function handleList(argv: Partial>, _prompter: Inq const defaultSelect = { createdAt: true, createdBy: true, + createdByPrincipal: true, entityId: true, id: true, isApproved: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs< @@ -108,11 +112,13 @@ async function handleFindFirst(argv: Partial>, _prompter const defaultSelect = { createdAt: true, createdBy: true, + createdByPrincipal: true, entityId: true, id: true, isApproved: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs< @@ -151,11 +157,13 @@ async function handleGet(argv: Partial>, prompter: Inqui select: { createdAt: true, createdBy: true, + createdByPrincipal: true, entityId: true, id: true, isApproved: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }, }) .execute(); @@ -178,6 +186,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'entityId', @@ -198,6 +213,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined( @@ -209,18 +231,22 @@ async function handleCreate(argv: Partial>, prompter: In .create({ data: { createdBy: cleanedData.createdBy, + createdByPrincipal: cleanedData.createdByPrincipal, entityId: cleanedData.entityId, isApproved: cleanedData.isApproved, updatedBy: cleanedData.updatedBy, + updatedByPrincipal: cleanedData.updatedByPrincipal, }, select: { createdAt: true, createdBy: true, + createdByPrincipal: true, entityId: true, id: true, isApproved: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }, }) .execute(); @@ -249,6 +275,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'entityId', @@ -269,6 +302,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as OrgMembershipDefaultPatch; @@ -280,18 +320,22 @@ async function handleUpdate(argv: Partial>, prompter: In }, data: { createdBy: cleanedData.createdBy, + createdByPrincipal: cleanedData.createdByPrincipal, entityId: cleanedData.entityId, isApproved: cleanedData.isApproved, updatedBy: cleanedData.updatedBy, + updatedByPrincipal: cleanedData.updatedByPrincipal, }, select: { createdAt: true, createdBy: true, + createdByPrincipal: true, entityId: true, id: true, isApproved: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }, }) .execute(); diff --git a/sdk/constructive-cli/src/admin/cli/commands/org-membership-setting.ts b/sdk/constructive-cli/src/admin/cli/commands/org-membership-setting.ts index 56f9068445..c5447b8bf7 100644 --- a/sdk/constructive-cli/src/admin/cli/commands/org-membership-setting.ts +++ b/sdk/constructive-cli/src/admin/cli/commands/org-membership-setting.ts @@ -17,11 +17,13 @@ import type { import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { allowExternalMembers: 'boolean', + allowPrincipalOwnedApiKeys: 'boolean', createChildCascadeAdmins: 'boolean', createChildCascadeMembers: 'boolean', createChildCascadeOwners: 'boolean', createdAt: 'string', createdBy: 'uuid', + createdByPrincipal: 'uuid', deleteMemberCascadeChildren: 'boolean', entityId: 'uuid', id: 'uuid', @@ -30,6 +32,7 @@ const fieldSchema: FieldSchema = { populateMemberEmail: 'boolean', updatedAt: 'string', updatedBy: 'uuid', + updatedByPrincipal: 'uuid', }; const usage = '\norg-membership-setting \n\nCommands:\n list List orgMembershipSetting records\n find-first Find first matching orgMembershipSetting record\n get Get a orgMembershipSetting by ID\n create Create a new orgMembershipSetting\n update Update an existing orgMembershipSetting\n delete Delete a orgMembershipSetting\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'; @@ -83,11 +86,13 @@ async function handleList(argv: Partial>, _prompter: Inq try { const defaultSelect = { allowExternalMembers: true, + allowPrincipalOwnedApiKeys: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, createChildCascadeOwners: true, createdAt: true, createdBy: true, + createdByPrincipal: true, deleteMemberCascadeChildren: true, entityId: true, id: true, @@ -96,6 +101,7 @@ async function handleList(argv: Partial>, _prompter: Inq populateMemberEmail: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs< @@ -121,11 +127,13 @@ async function handleFindFirst(argv: Partial>, _prompter try { const defaultSelect = { allowExternalMembers: true, + allowPrincipalOwnedApiKeys: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, createChildCascadeOwners: true, createdAt: true, createdBy: true, + createdByPrincipal: true, deleteMemberCascadeChildren: true, entityId: true, id: true, @@ -134,6 +142,7 @@ async function handleFindFirst(argv: Partial>, _prompter populateMemberEmail: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs< @@ -171,11 +180,13 @@ async function handleGet(argv: Partial>, prompter: Inqui id: answers.id as string, select: { allowExternalMembers: true, + allowPrincipalOwnedApiKeys: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, createChildCascadeOwners: true, createdAt: true, createdBy: true, + createdByPrincipal: true, deleteMemberCascadeChildren: true, entityId: true, id: true, @@ -184,6 +195,7 @@ async function handleGet(argv: Partial>, prompter: Inqui populateMemberEmail: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }, }) .execute(); @@ -206,6 +218,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'boolean', + name: 'allowPrincipalOwnedApiKeys', + message: 'allowPrincipalOwnedApiKeys', + required: false, + skipPrompt: true, + }, { type: 'boolean', name: 'createChildCascadeAdmins', @@ -234,6 +253,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, { type: 'boolean', name: 'deleteMemberCascadeChildren', @@ -275,6 +301,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined( @@ -286,24 +319,29 @@ async function handleCreate(argv: Partial>, prompter: In .create({ data: { allowExternalMembers: cleanedData.allowExternalMembers, + allowPrincipalOwnedApiKeys: cleanedData.allowPrincipalOwnedApiKeys, createChildCascadeAdmins: cleanedData.createChildCascadeAdmins, createChildCascadeMembers: cleanedData.createChildCascadeMembers, createChildCascadeOwners: cleanedData.createChildCascadeOwners, createdBy: cleanedData.createdBy, + createdByPrincipal: cleanedData.createdByPrincipal, deleteMemberCascadeChildren: cleanedData.deleteMemberCascadeChildren, entityId: cleanedData.entityId, inviteProfileAssignmentMode: cleanedData.inviteProfileAssignmentMode, limitAllocationMode: cleanedData.limitAllocationMode, populateMemberEmail: cleanedData.populateMemberEmail, updatedBy: cleanedData.updatedBy, + updatedByPrincipal: cleanedData.updatedByPrincipal, }, select: { allowExternalMembers: true, + allowPrincipalOwnedApiKeys: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, createChildCascadeOwners: true, createdAt: true, createdBy: true, + createdByPrincipal: true, deleteMemberCascadeChildren: true, entityId: true, id: true, @@ -312,6 +350,7 @@ async function handleCreate(argv: Partial>, prompter: In populateMemberEmail: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }, }) .execute(); @@ -340,6 +379,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'boolean', + name: 'allowPrincipalOwnedApiKeys', + message: 'allowPrincipalOwnedApiKeys', + required: false, + skipPrompt: true, + }, { type: 'boolean', name: 'createChildCascadeAdmins', @@ -368,6 +414,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, { type: 'boolean', name: 'deleteMemberCascadeChildren', @@ -409,6 +462,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as OrgMembershipSettingPatch; @@ -420,24 +480,29 @@ async function handleUpdate(argv: Partial>, prompter: In }, data: { allowExternalMembers: cleanedData.allowExternalMembers, + allowPrincipalOwnedApiKeys: cleanedData.allowPrincipalOwnedApiKeys, createChildCascadeAdmins: cleanedData.createChildCascadeAdmins, createChildCascadeMembers: cleanedData.createChildCascadeMembers, createChildCascadeOwners: cleanedData.createChildCascadeOwners, createdBy: cleanedData.createdBy, + createdByPrincipal: cleanedData.createdByPrincipal, deleteMemberCascadeChildren: cleanedData.deleteMemberCascadeChildren, entityId: cleanedData.entityId, inviteProfileAssignmentMode: cleanedData.inviteProfileAssignmentMode, limitAllocationMode: cleanedData.limitAllocationMode, populateMemberEmail: cleanedData.populateMemberEmail, updatedBy: cleanedData.updatedBy, + updatedByPrincipal: cleanedData.updatedByPrincipal, }, select: { allowExternalMembers: true, + allowPrincipalOwnedApiKeys: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, createChildCascadeOwners: true, createdAt: true, createdBy: true, + createdByPrincipal: true, deleteMemberCascadeChildren: true, entityId: true, id: true, @@ -446,6 +511,7 @@ async function handleUpdate(argv: Partial>, prompter: In populateMemberEmail: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }, }) .execute(); 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..8b3f0ebd7b 100644 --- a/sdk/constructive-cli/src/admin/cli/commands/org-membership.ts +++ b/sdk/constructive-cli/src/admin/cli/commands/org-membership.ts @@ -17,8 +17,10 @@ import type { import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { actorId: 'uuid', + capabilities: 'string', createdAt: 'string', createdBy: 'uuid', + createdByPrincipal: 'uuid', entityId: 'uuid', granted: 'string', id: 'uuid', @@ -30,10 +32,10 @@ const fieldSchema: FieldSchema = { isExternal: 'boolean', isOwner: 'boolean', isReadOnly: 'boolean', - permissions: 'string', profileId: 'uuid', updatedAt: 'string', updatedBy: 'uuid', + updatedByPrincipal: 'uuid', }; const usage = '\norg-membership \n\nCommands:\n list List orgMembership records\n find-first Find first matching orgMembership record\n get Get a orgMembership by ID\n create Create a new orgMembership\n update Update an existing orgMembership\n delete Delete a orgMembership\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'; @@ -87,8 +89,10 @@ async function handleList(argv: Partial>, _prompter: Inq try { const defaultSelect = { actorId: true, + capabilities: true, createdAt: true, createdBy: true, + createdByPrincipal: true, entityId: true, granted: true, id: true, @@ -100,10 +104,10 @@ async function handleList(argv: Partial>, _prompter: Inq isExternal: true, isOwner: true, isReadOnly: true, - permissions: true, profileId: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs & { @@ -125,8 +129,10 @@ async function handleFindFirst(argv: Partial>, _prompter try { const defaultSelect = { actorId: true, + capabilities: true, createdAt: true, createdBy: true, + createdByPrincipal: true, entityId: true, granted: true, id: true, @@ -138,10 +144,10 @@ async function handleFindFirst(argv: Partial>, _prompter isExternal: true, isOwner: true, isReadOnly: true, - permissions: true, profileId: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs & { @@ -175,8 +181,10 @@ async function handleGet(argv: Partial>, prompter: Inqui id: answers.id as string, select: { actorId: true, + capabilities: true, createdAt: true, createdBy: true, + createdByPrincipal: true, entityId: true, granted: true, id: true, @@ -188,10 +196,10 @@ async function handleGet(argv: Partial>, prompter: Inqui isExternal: true, isOwner: true, isReadOnly: true, - permissions: true, profileId: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }, }) .execute(); @@ -213,6 +221,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', @@ -220,6 +235,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'entityId', @@ -291,22 +313,22 @@ async function handleCreate(argv: Partial>, prompter: In }, { type: 'text', - name: 'permissions', - message: 'permissions', + name: 'profileId', + message: 'profileId', required: false, skipPrompt: true, }, { type: 'text', - name: 'profileId', - message: 'profileId', + name: 'updatedBy', + message: 'updatedBy', required: false, skipPrompt: true, }, { type: 'text', - name: 'updatedBy', - message: 'updatedBy', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', required: false, skipPrompt: true, }, @@ -321,7 +343,9 @@ async function handleCreate(argv: Partial>, prompter: In .create({ data: { actorId: cleanedData.actorId, + capabilities: cleanedData.capabilities, createdBy: cleanedData.createdBy, + createdByPrincipal: cleanedData.createdByPrincipal, entityId: cleanedData.entityId, granted: cleanedData.granted, isActive: cleanedData.isActive, @@ -332,14 +356,16 @@ 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, + updatedByPrincipal: cleanedData.updatedByPrincipal, }, select: { actorId: true, + capabilities: true, createdAt: true, createdBy: true, + createdByPrincipal: true, entityId: true, granted: true, id: true, @@ -351,10 +377,10 @@ async function handleCreate(argv: Partial>, prompter: In isExternal: true, isOwner: true, isReadOnly: true, - permissions: true, profileId: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }, }) .execute(); @@ -382,6 +408,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', @@ -389,6 +422,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'entityId', @@ -460,22 +500,22 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'permissions', - message: 'permissions', + name: 'profileId', + message: 'profileId', required: false, skipPrompt: true, }, { type: 'text', - name: 'profileId', - message: 'profileId', + name: 'updatedBy', + message: 'updatedBy', required: false, skipPrompt: true, }, { type: 'text', - name: 'updatedBy', - message: 'updatedBy', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', required: false, skipPrompt: true, }, @@ -490,7 +530,9 @@ async function handleUpdate(argv: Partial>, prompter: In }, data: { actorId: cleanedData.actorId, + capabilities: cleanedData.capabilities, createdBy: cleanedData.createdBy, + createdByPrincipal: cleanedData.createdByPrincipal, entityId: cleanedData.entityId, granted: cleanedData.granted, isActive: cleanedData.isActive, @@ -501,14 +543,16 @@ 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, + updatedByPrincipal: cleanedData.updatedByPrincipal, }, select: { actorId: true, + capabilities: true, createdAt: true, createdBy: true, + createdByPrincipal: true, entityId: true, granted: true, id: true, @@ -520,10 +564,10 @@ async function handleUpdate(argv: Partial>, prompter: In isExternal: true, isOwner: true, isReadOnly: true, - permissions: true, profileId: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }, }) .execute(); diff --git a/sdk/constructive-cli/src/admin/cli/commands/org-permission-default-grant.ts b/sdk/constructive-cli/src/admin/cli/commands/org-permission-default-grant.ts deleted file mode 100644 index 179b90d112..0000000000 --- a/sdk/constructive-cli/src/admin/cli/commands/org-permission-default-grant.ts +++ /dev/null @@ -1,335 +0,0 @@ -/** - * CLI commands for OrgPermissionDefaultGrant - * @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 { - CreateOrgPermissionDefaultGrantInput, - OrgPermissionDefaultGrantPatch, - OrgPermissionDefaultGrantSelect, - OrgPermissionDefaultGrantFilter, - OrgPermissionDefaultGrantOrderBy, -} from '../../orm/input-types'; -import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; -const fieldSchema: FieldSchema = { - 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'; -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, - entityId: true, - grantorId: true, - id: true, - isGrant: true, - permissionId: true, - updatedAt: true, - }; - const findManyArgs = parseFindManyArgs< - FindManyArgs< - OrgPermissionDefaultGrantSelect, - OrgPermissionDefaultGrantFilter, - OrgPermissionDefaultGrantOrderBy - > & { - select: OrgPermissionDefaultGrantSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.orgPermissionDefaultGrant.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, - entityId: true, - grantorId: true, - id: true, - isGrant: true, - permissionId: true, - updatedAt: true, - }; - const findFirstArgs = parseFindFirstArgs< - FindFirstArgs< - OrgPermissionDefaultGrantSelect, - OrgPermissionDefaultGrantFilter, - OrgPermissionDefaultGrantOrderBy - > & { - select: OrgPermissionDefaultGrantSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.orgPermissionDefaultGrant.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.orgPermissionDefaultGrant - .findOne({ - id: answers.id as string, - select: { - createdAt: true, - entityId: true, - grantorId: true, - id: true, - isGrant: true, - permissionId: 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: 'entityId', - message: 'entityId', - required: true, - }, - { - type: 'text', - name: 'grantorId', - message: 'grantorId', - required: false, - skipPrompt: true, - }, - { - type: 'boolean', - name: 'isGrant', - message: 'isGrant', - 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']; - const client = getClient(); - const result = await client.orgPermissionDefaultGrant - .create({ - data: { - entityId: cleanedData.entityId, - grantorId: cleanedData.grantorId, - isGrant: cleanedData.isGrant, - permissionId: cleanedData.permissionId, - }, - select: { - createdAt: true, - entityId: true, - grantorId: true, - id: true, - isGrant: true, - permissionId: 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: 'entityId', - message: 'entityId', - required: false, - }, - { - type: 'text', - name: 'grantorId', - message: 'grantorId', - required: false, - skipPrompt: true, - }, - { - type: 'boolean', - name: 'isGrant', - message: 'isGrant', - 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 client = getClient(); - const result = await client.orgPermissionDefaultGrant - .update({ - where: { - id: answers.id as string, - }, - data: { - entityId: cleanedData.entityId, - grantorId: cleanedData.grantorId, - isGrant: cleanedData.isGrant, - permissionId: cleanedData.permissionId, - }, - select: { - createdAt: true, - entityId: true, - grantorId: true, - id: true, - isGrant: true, - permissionId: 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.orgPermissionDefaultGrant - .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-permission.ts b/sdk/constructive-cli/src/admin/cli/commands/org-permission-default-permission.ts deleted file mode 100644 index 0b1653abf0..0000000000 --- a/sdk/constructive-cli/src/admin/cli/commands/org-permission-default-permission.ts +++ /dev/null @@ -1,291 +0,0 @@ -/** - * CLI commands for OrgPermissionDefaultPermission - * @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 { - CreateOrgPermissionDefaultPermissionInput, - OrgPermissionDefaultPermissionPatch, - OrgPermissionDefaultPermissionSelect, - OrgPermissionDefaultPermissionFilter, - OrgPermissionDefaultPermissionOrderBy, -} from '../../orm/input-types'; -import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; -const fieldSchema: FieldSchema = { - 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'; -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, - entityId: true, - id: true, - permissionId: true, - updatedAt: true, - }; - const findManyArgs = parseFindManyArgs< - FindManyArgs< - OrgPermissionDefaultPermissionSelect, - OrgPermissionDefaultPermissionFilter, - OrgPermissionDefaultPermissionOrderBy - > & { - select: OrgPermissionDefaultPermissionSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.orgPermissionDefaultPermission.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, - entityId: true, - id: true, - permissionId: true, - updatedAt: true, - }; - const findFirstArgs = parseFindFirstArgs< - FindFirstArgs< - OrgPermissionDefaultPermissionSelect, - OrgPermissionDefaultPermissionFilter, - OrgPermissionDefaultPermissionOrderBy - > & { - select: OrgPermissionDefaultPermissionSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.orgPermissionDefaultPermission.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.orgPermissionDefaultPermission - .findOne({ - id: answers.id as string, - select: { - createdAt: true, - entityId: true, - id: true, - permissionId: 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: 'entityId', - message: 'entityId', - required: true, - }, - { - type: 'text', - name: 'permissionId', - message: 'permissionId', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreateOrgPermissionDefaultPermissionInput['orgPermissionDefaultPermission']; - const client = getClient(); - const result = await client.orgPermissionDefaultPermission - .create({ - data: { - entityId: cleanedData.entityId, - permissionId: cleanedData.permissionId, - }, - select: { - createdAt: true, - entityId: true, - id: true, - permissionId: 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: 'entityId', - message: 'entityId', - required: false, - }, - { - type: 'text', - name: 'permissionId', - message: 'permissionId', - required: false, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as OrgPermissionDefaultPermissionPatch; - const client = getClient(); - const result = await client.orgPermissionDefaultPermission - .update({ - where: { - id: answers.id as string, - }, - data: { - entityId: cleanedData.entityId, - permissionId: cleanedData.permissionId, - }, - select: { - createdAt: true, - entityId: true, - id: true, - permissionId: 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.orgPermissionDefaultPermission - .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/admin/cli/commands/org-permission-default.ts deleted file mode 100644 index b0856d28e3..0000000000 --- a/sdk/constructive-cli/src/admin/cli/commands/org-permission-default.ts +++ /dev/null @@ -1,281 +0,0 @@ -/** - * CLI commands for OrgPermissionDefault - * @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 { - CreateOrgPermissionDefaultInput, - OrgPermissionDefaultPatch, - OrgPermissionDefaultSelect, - OrgPermissionDefaultFilter, - OrgPermissionDefaultOrderBy, -} from '../../orm/input-types'; -import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; -const fieldSchema: FieldSchema = { - entityId: 'uuid', - id: 'uuid', - permissions: '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'; -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 = { - entityId: true, - id: true, - permissions: true, - }; - const findManyArgs = parseFindManyArgs< - FindManyArgs< - OrgPermissionDefaultSelect, - OrgPermissionDefaultFilter, - OrgPermissionDefaultOrderBy - > & { - select: OrgPermissionDefaultSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.orgPermissionDefault.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 = { - entityId: true, - id: true, - permissions: true, - }; - const findFirstArgs = parseFindFirstArgs< - FindFirstArgs< - OrgPermissionDefaultSelect, - OrgPermissionDefaultFilter, - OrgPermissionDefaultOrderBy - > & { - select: OrgPermissionDefaultSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.orgPermissionDefault.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.orgPermissionDefault - .findOne({ - id: answers.id as string, - select: { - entityId: true, - 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: 'entityId', - message: 'entityId', - required: true, - }, - { - type: 'text', - name: 'permissions', - message: 'permissions', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreateOrgPermissionDefaultInput['orgPermissionDefault']; - const client = getClient(); - const result = await client.orgPermissionDefault - .create({ - data: { - entityId: cleanedData.entityId, - permissions: cleanedData.permissions, - }, - select: { - entityId: true, - 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: 'entityId', - message: 'entityId', - required: false, - }, - { - type: 'text', - name: 'permissions', - message: 'permissions', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as OrgPermissionDefaultPatch; - const client = getClient(); - const result = await client.orgPermissionDefault - .update({ - where: { - id: answers.id as string, - }, - data: { - entityId: cleanedData.entityId, - permissions: cleanedData.permissions, - }, - select: { - entityId: true, - 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.orgPermissionDefault - .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.ts b/sdk/constructive-cli/src/admin/cli/commands/org-permission.ts deleted file mode 100644 index 997efa2456..0000000000 --- a/sdk/constructive-cli/src/admin/cli/commands/org-permission.ts +++ /dev/null @@ -1,319 +0,0 @@ -/** - * CLI commands for OrgPermission - * @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 { - CreateOrgPermissionInput, - OrgPermissionPatch, - OrgPermissionSelect, - OrgPermissionFilter, - OrgPermissionOrderBy, -} from '../../orm/input-types'; -import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; -const fieldSchema: FieldSchema = { - bitnum: 'int', - bitstr: 'string', - description: 'string', - id: 'uuid', - name: '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'; -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 = { - bitnum: true, - bitstr: true, - description: true, - id: true, - name: true, - }; - const findManyArgs = parseFindManyArgs< - FindManyArgs & { - select: OrgPermissionSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.orgPermission.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 = { - bitnum: true, - bitstr: true, - description: true, - id: true, - name: true, - }; - const findFirstArgs = parseFindFirstArgs< - FindFirstArgs & { - select: OrgPermissionSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.orgPermission.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.orgPermission - .findOne({ - id: answers.id as string, - select: { - bitnum: true, - bitstr: true, - description: true, - id: true, - name: 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: 'bitnum', - message: 'bitnum', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'bitstr', - message: 'bitstr', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'description', - message: 'description', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'name', - message: 'name', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreateOrgPermissionInput['orgPermission']; - const client = getClient(); - const result = await client.orgPermission - .create({ - data: { - bitnum: cleanedData.bitnum, - bitstr: cleanedData.bitstr, - description: cleanedData.description, - name: cleanedData.name, - }, - select: { - bitnum: true, - bitstr: true, - description: true, - id: true, - name: 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: 'bitnum', - message: 'bitnum', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'bitstr', - message: 'bitstr', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'description', - message: 'description', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'name', - message: 'name', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as OrgPermissionPatch; - const client = getClient(); - const result = await client.orgPermission - .update({ - where: { - id: answers.id as string, - }, - data: { - bitnum: cleanedData.bitnum, - bitstr: cleanedData.bitstr, - description: cleanedData.description, - name: cleanedData.name, - }, - select: { - bitnum: true, - bitstr: true, - description: true, - id: true, - name: 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.orgPermission - .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-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-mask.ts b/sdk/constructive-cli/src/admin/cli/commands/org-permissions-get-mask.ts deleted file mode 100644 index 7045bd2006..0000000000 --- a/sdk/constructive-cli/src/admin/cli/commands/org-permissions-get-mask.ts +++ /dev/null @@ -1,40 +0,0 @@ -/** - * CLI command for query orgPermissionsGetMask - * @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, - _options: CLIOptions -) => { - try { - if (argv.help || argv.h) { - console.log( - 'org-permissions-get-mask - orgPermissionsGetMask\n\nUsage: org-permissions-get-mask [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(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed: orgPermissionsGetMask'); - 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/cli/commands/provision-bucket.ts b/sdk/constructive-cli/src/admin/cli/commands/provision-bucket.ts index ecd2e539d5..0c54313d78 100644 --- a/sdk/constructive-cli/src/admin/cli/commands/provision-bucket.ts +++ b/sdk/constructive-cli/src/admin/cli/commands/provision-bucket.ts @@ -16,7 +16,7 @@ export default async ( try { if (argv.help || argv.h) { console.log( - '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\nUsage: provision-bucket [OPTIONS]\n' + 'provision-bucket - Reconcile an S3 bucket for a logical bucket in the database.\nReads the bucket config via RLS, then enqueues the same\nstorage:provision_bucket job used by the INSERT trigger. This is\nidempotent for an already-reconciled bucket; enqueue failures become\nGraphQL errors.\n\nUsage: provision-bucket [OPTIONS]\n' ); process.exit(0); } diff --git a/sdk/constructive-cli/src/admin/orm/README.md b/sdk/constructive-cli/src/admin/orm/README.md index 9873807c11..23761f3cd3 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,8 +271,10 @@ CRUD operations for AppMembership records. | Field | Type | Editable | |-------|------|----------| | `actorId` | UUID | Yes | +| `capabilities` | BitString | Yes | | `createdAt` | Datetime | No | | `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | | `granted` | BitString | Yes | | `id` | UUID | No | | `isActive` | Boolean | Yes | @@ -220,22 +284,22 @@ 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 | +| `updatedByPrincipal` | UUID | Yes | **Operations:** ```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, createdByPrincipal: 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, updatedByPrincipal: 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, createdByPrincipal: 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, updatedByPrincipal: 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: '', createdByPrincipal: '', granted: '', isActive: '', isAdmin: '', isApproved: '', isBanned: '', isDisabled: '', isOwner: '', isVerified: '', profileId: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update const updated = await db.appMembership.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); @@ -254,23 +318,25 @@ CRUD operations for AppMembershipDefault records. |-------|------|----------| | `createdAt` | Datetime | No | | `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | | `id` | UUID | No | | `isApproved` | Boolean | Yes | | `isVerified` | Boolean | Yes | | `updatedAt` | Datetime | No | | `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | **Operations:** ```typescript // List all appMembershipDefault records -const items = await db.appMembershipDefault.findMany({ select: { createdAt: true, createdBy: true, id: true, isApproved: true, isVerified: true, updatedAt: true, updatedBy: true } }).execute(); +const items = await db.appMembershipDefault.findMany({ select: { createdAt: true, createdBy: true, createdByPrincipal: true, id: true, isApproved: true, isVerified: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.appMembershipDefault.findOne({ id: '', select: { createdAt: true, createdBy: true, id: true, isApproved: true, isVerified: true, updatedAt: true, updatedBy: true } }).execute(); +const item = await db.appMembershipDefault.findOne({ id: '', select: { createdAt: true, createdBy: true, createdByPrincipal: true, id: true, isApproved: true, isVerified: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.appMembershipDefault.create({ data: { createdBy: '', isApproved: '', isVerified: '', updatedBy: '' }, select: { id: true } }).execute(); +const created = await db.appMembershipDefault.create({ data: { createdBy: '', createdByPrincipal: '', isApproved: '', isVerified: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update const updated = await db.appMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); @@ -313,178 +379,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(); +// 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.appPermissionDefaultPermission.findOne({ id: '', select: { createdAt: true, id: true, permissionId: true, updatedAt: 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.appPermissionDefaultPermission.create({ data: { permissionId: '' }, select: { id: true } }).execute(); +const created = await db.orgCapabilityDefaultCapability.create({ data: { capabilityId: '', entityId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appPermissionDefaultPermission.update({ where: { id: '' }, data: { permissionId: '' }, select: { id: true } }).execute(); +const updated = await db.orgCapabilityDefaultCapability.update({ where: { id: '' }, data: { capabilityId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appPermissionDefaultPermission.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgCapabilityDefaultCapability.delete({ where: { id: '' } }).execute(); ``` -### `db.membershipType` +### `db.orgCapabilityDefaultGrant` -CRUD operations for MembershipType records. +CRUD operations for OrgCapabilityDefaultGrant 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(); - -// 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(); - -// Create -const created = await db.membershipType.create({ data: { description: '', hasUsersTableEntry: '', name: '', parentMembershipType: '', scope: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.membershipType.update({ where: { id: '' }, data: { description: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.membershipType.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgAdminGrant` - -CRUD operations for OrgAdminGrant records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `actorId` | UUID | Yes | +| `capabilityId` | UUID | Yes | | `createdAt` | Datetime | No | | `entityId` | UUID | Yes | | `grantorId` | UUID | Yes | @@ -495,20 +500,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 +693,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,8 +846,10 @@ CRUD operations for OrgMembership records. | Field | Type | Editable | |-------|------|----------| | `actorId` | UUID | Yes | +| `capabilities` | BitString | Yes | | `createdAt` | Datetime | No | | `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | | `entityId` | UUID | Yes | | `granted` | BitString | Yes | | `id` | UUID | No | @@ -854,22 +861,22 @@ 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 | +| `updatedByPrincipal` | UUID | Yes | **Operations:** ```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, createdByPrincipal: 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, updatedByPrincipal: 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, createdByPrincipal: 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, updatedByPrincipal: 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: '', createdByPrincipal: '', entityId: '', granted: '', isActive: '', isAdmin: '', isApproved: '', isBanned: '', isDisabled: '', isExternal: '', isOwner: '', isReadOnly: '', profileId: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update const updated = await db.orgMembership.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); @@ -888,23 +895,25 @@ CRUD operations for OrgMembershipDefault records. |-------|------|----------| | `createdAt` | Datetime | No | | `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | | `entityId` | UUID | Yes | | `id` | UUID | No | | `isApproved` | Boolean | Yes | | `updatedAt` | Datetime | No | | `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | **Operations:** ```typescript // List all orgMembershipDefault records -const items = await db.orgMembershipDefault.findMany({ select: { createdAt: true, createdBy: true, entityId: true, id: true, isApproved: true, updatedAt: true, updatedBy: true } }).execute(); +const items = await db.orgMembershipDefault.findMany({ select: { createdAt: true, createdBy: true, createdByPrincipal: true, entityId: true, id: true, isApproved: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.orgMembershipDefault.findOne({ id: '', select: { createdAt: true, createdBy: true, entityId: true, id: true, isApproved: true, updatedAt: true, updatedBy: true } }).execute(); +const item = await db.orgMembershipDefault.findOne({ id: '', select: { createdAt: true, createdBy: true, createdByPrincipal: true, entityId: true, id: true, isApproved: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.orgMembershipDefault.create({ data: { createdBy: '', entityId: '', isApproved: '', updatedBy: '' }, select: { id: true } }).execute(); +const created = await db.orgMembershipDefault.create({ data: { createdBy: '', createdByPrincipal: '', entityId: '', isApproved: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update const updated = await db.orgMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); @@ -922,11 +931,13 @@ CRUD operations for OrgMembershipSetting records. | Field | Type | Editable | |-------|------|----------| | `allowExternalMembers` | Boolean | Yes | +| `allowPrincipalOwnedApiKeys` | Boolean | Yes | | `createChildCascadeAdmins` | Boolean | Yes | | `createChildCascadeMembers` | Boolean | Yes | | `createChildCascadeOwners` | Boolean | Yes | | `createdAt` | Datetime | No | | `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | | `deleteMemberCascadeChildren` | Boolean | Yes | | `entityId` | UUID | Yes | | `id` | UUID | No | @@ -935,18 +946,19 @@ CRUD operations for OrgMembershipSetting records. | `populateMemberEmail` | Boolean | Yes | | `updatedAt` | Datetime | No | | `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | **Operations:** ```typescript // List all orgMembershipSetting records -const items = await db.orgMembershipSetting.findMany({ select: { allowExternalMembers: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, createChildCascadeOwners: true, createdAt: true, createdBy: true, deleteMemberCascadeChildren: true, entityId: true, id: true, inviteProfileAssignmentMode: true, limitAllocationMode: true, populateMemberEmail: true, updatedAt: true, updatedBy: true } }).execute(); +const items = await db.orgMembershipSetting.findMany({ select: { allowExternalMembers: true, allowPrincipalOwnedApiKeys: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, createChildCascadeOwners: true, createdAt: true, createdBy: true, createdByPrincipal: true, deleteMemberCascadeChildren: true, entityId: true, id: true, inviteProfileAssignmentMode: true, limitAllocationMode: true, populateMemberEmail: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.orgMembershipSetting.findOne({ id: '', select: { allowExternalMembers: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, createChildCascadeOwners: true, createdAt: true, createdBy: true, deleteMemberCascadeChildren: true, entityId: true, id: true, inviteProfileAssignmentMode: true, limitAllocationMode: true, populateMemberEmail: true, updatedAt: true, updatedBy: true } }).execute(); +const item = await db.orgMembershipSetting.findOne({ id: '', select: { allowExternalMembers: true, allowPrincipalOwnedApiKeys: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, createChildCascadeOwners: true, createdAt: true, createdBy: true, createdByPrincipal: true, deleteMemberCascadeChildren: true, entityId: true, id: true, inviteProfileAssignmentMode: true, limitAllocationMode: true, populateMemberEmail: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.orgMembershipSetting.create({ data: { allowExternalMembers: '', createChildCascadeAdmins: '', createChildCascadeMembers: '', createChildCascadeOwners: '', createdBy: '', deleteMemberCascadeChildren: '', entityId: '', inviteProfileAssignmentMode: '', limitAllocationMode: '', populateMemberEmail: '', updatedBy: '' }, select: { id: true } }).execute(); +const created = await db.orgMembershipSetting.create({ data: { allowExternalMembers: '', allowPrincipalOwnedApiKeys: '', createChildCascadeAdmins: '', createChildCascadeMembers: '', createChildCascadeOwners: '', createdBy: '', createdByPrincipal: '', deleteMemberCascadeChildren: '', entityId: '', inviteProfileAssignmentMode: '', limitAllocationMode: '', populateMemberEmail: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update const updated = await db.orgMembershipSetting.update({ where: { id: '' }, data: { allowExternalMembers: '' }, select: { id: true } }).execute(); @@ -990,201 +1002,22 @@ 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` +### `db.query.getOrganizationId` -Reads and enables pagination through a set of `AppPermission`. +getOrganizationId - **Type:** query - **Arguments:** | Argument | Type | |----------|------| - | `after` | Cursor | - | `first` | Int | - | `mask` | BitString | - | `offset` | Int | + | `entityId` | UUID | + | `entityType` | String | ```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(); +const result = await db.query.getOrganizationId({ entityId: '', entityType: '' }).execute(); ``` ### `db.query.orgIsManagerOf` @@ -1205,75 +1038,13 @@ 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. -Reads the bucket config via RLS, then creates and configures -the S3 bucket with the appropriate privacy policies, CORS rules, -and lifecycle settings. +Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. - **Type:** mutation - **Arguments:** 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..a05796955d 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,16 @@ 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) */ + createdByPrincipal?: string | null; + /** 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,16 +345,16 @@ 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; + updatedByPrincipal?: string | null; } /** Default membership settings per entity, controlling initial approval and verification state for new members */ export interface AppMembershipDefault { createdAt?: string | null; createdBy?: string | null; + createdByPrincipal?: string | null; id: string; /** Whether new members are automatically approved upon joining */ isApproved?: boolean | null; @@ -340,6 +362,7 @@ export interface AppMembershipDefault { isVerified?: boolean | null; updatedAt?: string | null; updatedBy?: string | null; + updatedByPrincipal?: string | null; } /** Records of ownership transfers and grants between members */ export interface AppOwnerGrant { @@ -352,43 +375,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 +403,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 +483,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 +565,18 @@ 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; + createdByPrincipal?: 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,22 +589,22 @@ 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; + updatedByPrincipal?: string | null; } /** Default membership settings per entity, controlling initial approval and verification state for new members */ export interface OrgMembershipDefault { createdAt?: string | null; createdBy?: string | null; + createdByPrincipal?: string | null; /** References the entity these membership defaults apply to */ entityId?: string | null; id: string; @@ -600,11 +612,14 @@ export interface OrgMembershipDefault { isApproved?: boolean | null; updatedAt?: string | null; updatedBy?: string | null; + updatedByPrincipal?: string | null; } /** Per-entity settings for the memberships module */ export interface OrgMembershipSetting { /** Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) */ allowExternalMembers?: boolean | null; + /** Whether principals (agents, API-key identities) may mint API keys and child sessions for this org; requires auth_settings.allow_principal_delegation too */ + allowPrincipalOwnedApiKeys?: boolean | null; /** When a child entity is created, whether to auto-add existing org-level admins as child-entity admins */ createChildCascadeAdmins?: boolean | null; /** When a child entity is created, whether to auto-add existing org-level members (non-admin, non-owner) as child-entity members */ @@ -613,12 +628,13 @@ export interface OrgMembershipSetting { createChildCascadeOwners?: boolean | null; createdAt?: string | null; createdBy?: string | null; + createdByPrincipal?: string | null; /** When a member is deleted, whether to cascade-remove their descendant-entity memberships */ deleteMemberCascadeChildren?: boolean | null; /** 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; @@ -626,6 +642,7 @@ export interface OrgMembershipSetting { populateMemberEmail?: boolean | null; updatedAt?: string | null; updatedBy?: string | null; + updatedByPrincipal?: string | null; } /** Records of ownership transfers and grants between members */ export interface OrgOwnerGrant { @@ -640,49 +657,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 +671,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 +700,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 +713,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 +736,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 +745,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 +769,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,8 +795,10 @@ export type AppInviteSelect = { }; export type AppMembershipSelect = { actorId?: boolean; + capabilities?: boolean; createdAt?: boolean; createdBy?: boolean; + createdByPrincipal?: boolean; granted?: boolean; id?: boolean; isActive?: boolean; @@ -842,19 +808,21 @@ export type AppMembershipSelect = { isDisabled?: boolean; isOwner?: boolean; isVerified?: boolean; - permissions?: boolean; profileId?: boolean; updatedAt?: boolean; updatedBy?: boolean; + updatedByPrincipal?: boolean; }; export type AppMembershipDefaultSelect = { createdAt?: boolean; createdBy?: boolean; + createdByPrincipal?: boolean; id?: boolean; isApproved?: boolean; isVerified?: boolean; updatedAt?: boolean; updatedBy?: boolean; + updatedByPrincipal?: boolean; }; export type AppOwnerGrantSelect = { actorId?: boolean; @@ -864,56 +832,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 +905,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,8 +957,10 @@ export type OrgMemberProfileSelect = { }; export type OrgMembershipSelect = { actorId?: boolean; + capabilities?: boolean; createdAt?: boolean; createdBy?: boolean; + createdByPrincipal?: boolean; entityId?: boolean; granted?: boolean; id?: boolean; @@ -1026,10 +972,10 @@ export type OrgMembershipSelect = { isExternal?: boolean; isOwner?: boolean; isReadOnly?: boolean; - permissions?: boolean; profileId?: boolean; updatedAt?: boolean; updatedBy?: boolean; + updatedByPrincipal?: boolean; orgMemberProfileByMembershipId?: { select: OrgMemberProfileSelect; }; @@ -1037,19 +983,23 @@ export type OrgMembershipSelect = { export type OrgMembershipDefaultSelect = { createdAt?: boolean; createdBy?: boolean; + createdByPrincipal?: boolean; entityId?: boolean; id?: boolean; isApproved?: boolean; updatedAt?: boolean; updatedBy?: boolean; + updatedByPrincipal?: boolean; }; export type OrgMembershipSettingSelect = { allowExternalMembers?: boolean; + allowPrincipalOwnedApiKeys?: boolean; createChildCascadeAdmins?: boolean; createChildCascadeMembers?: boolean; createChildCascadeOwners?: boolean; createdAt?: boolean; createdBy?: boolean; + createdByPrincipal?: boolean; deleteMemberCascadeChildren?: boolean; entityId?: boolean; id?: boolean; @@ -1058,6 +1008,7 @@ export type OrgMembershipSettingSelect = { populateMemberEmail?: boolean; updatedAt?: boolean; updatedBy?: boolean; + updatedByPrincipal?: boolean; }; export type OrgOwnerGrantSelect = { actorId?: boolean; @@ -1068,52 +1019,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 +1040,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 +1099,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 +1113,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,10 +1157,14 @@ 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. */ createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `granted` field. */ granted?: BitStringFilter; /** Filter by the object’s `id` field. */ @@ -1242,14 +1187,14 @@ 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. */ updatedAt?: DatetimeFilter; /** Filter by the object’s `updatedBy` field. */ updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } export interface AppMembershipDefaultFilter { /** Checks for all expressions in this list. */ @@ -1258,6 +1203,8 @@ export interface AppMembershipDefaultFilter { createdAt?: DatetimeFilter; /** Filter by the object’s `createdBy` field. */ createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `isApproved` field. */ @@ -1272,6 +1219,8 @@ export interface AppMembershipDefaultFilter { updatedAt?: DatetimeFilter; /** Filter by the object’s `updatedBy` field. */ updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } export interface AppOwnerGrantFilter { /** Filter by the object’s `actorId` field. */ @@ -1293,49 +1242,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 +1278,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 +1318,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 +1413,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 +1429,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,10 +1527,14 @@ 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. */ createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `entityId` field. */ entityId?: UUIDFilter; /** Filter by the object’s `granted` field. */ @@ -1650,14 +1565,14 @@ 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. */ updatedAt?: DatetimeFilter; /** Filter by the object’s `updatedBy` field. */ updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } export interface OrgMembershipDefaultFilter { /** Checks for all expressions in this list. */ @@ -1666,6 +1581,8 @@ export interface OrgMembershipDefaultFilter { createdAt?: DatetimeFilter; /** Filter by the object’s `createdBy` field. */ createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `entityId` field. */ entityId?: UUIDFilter; /** Filter by the object’s `id` field. */ @@ -1680,10 +1597,14 @@ export interface OrgMembershipDefaultFilter { updatedAt?: DatetimeFilter; /** Filter by the object’s `updatedBy` field. */ updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } export interface OrgMembershipSettingFilter { /** Filter by the object’s `allowExternalMembers` field. */ allowExternalMembers?: BooleanFilter; + /** Filter by the object’s `allowPrincipalOwnedApiKeys` field. */ + allowPrincipalOwnedApiKeys?: BooleanFilter; /** Checks for all expressions in this list. */ and?: OrgMembershipSettingFilter[]; /** Filter by the object’s `createChildCascadeAdmins` field. */ @@ -1696,6 +1617,8 @@ export interface OrgMembershipSettingFilter { createdAt?: DatetimeFilter; /** Filter by the object’s `createdBy` field. */ createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `deleteMemberCascadeChildren` field. */ deleteMemberCascadeChildren?: BooleanFilter; /** Filter by the object’s `entityId` field. */ @@ -1716,6 +1639,8 @@ export interface OrgMembershipSettingFilter { updatedAt?: DatetimeFilter; /** Filter by the object’s `updatedBy` field. */ updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } export interface OrgOwnerGrantFilter { /** Filter by the object’s `actorId` field. */ @@ -1739,90 +1664,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 +1681,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 +1705,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,10 +1780,14 @@ 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' | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'GRANTED_ASC' | 'GRANTED_DESC' | 'ID_ASC' @@ -1934,8 +1807,6 @@ export type AppMembershipOrderBy = | 'IS_VERIFIED_ASC' | 'IS_VERIFIED_DESC' | 'NATURAL' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'PROFILE_ID_ASC' @@ -1943,12 +1814,16 @@ export type AppMembershipOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC'; + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; export type AppMembershipDefaultOrderBy = | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'CREATED_BY_ASC' | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'ID_ASC' | 'ID_DESC' | 'IS_APPROVED_ASC' @@ -1961,7 +1836,9 @@ export type AppMembershipDefaultOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC'; + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; export type AppOwnerGrantOrderBy = | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' @@ -1978,31 +1855,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 +1885,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 +2000,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 +2013,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,10 +2098,14 @@ 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' | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' | 'GRANTED_ASC' @@ -2266,8 +2129,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' @@ -2275,12 +2136,16 @@ export type OrgMembershipOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC'; + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; export type OrgMembershipDefaultOrderBy = | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'CREATED_BY_ASC' | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' | 'ID_ASC' @@ -2293,14 +2158,20 @@ export type OrgMembershipDefaultOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC'; + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; export type OrgMembershipSettingOrderBy = | 'ALLOW_EXTERNAL_MEMBERS_ASC' | 'ALLOW_EXTERNAL_MEMBERS_DESC' + | 'ALLOW_PRINCIPAL_OWNED_API_KEYS_ASC' + | 'ALLOW_PRINCIPAL_OWNED_API_KEYS_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'CREATED_BY_ASC' | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'CREATE_CHILD_CASCADE_ADMINS_ASC' | 'CREATE_CHILD_CASCADE_ADMINS_DESC' | 'CREATE_CHILD_CASCADE_MEMBERS_ASC' @@ -2325,7 +2196,9 @@ export type OrgMembershipSettingOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC'; + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; export type OrgOwnerGrantOrderBy = | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' @@ -2344,62 +2217,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 +2240,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 +2306,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,7 +2370,9 @@ export interface CreateAppMembershipInput { clientMutationId?: string; appMembership: { actorId: string; + capabilities?: string; createdBy?: string; + createdByPrincipal?: string; granted?: string; isActive?: boolean; isAdmin?: boolean; @@ -2522,14 +2381,16 @@ export interface CreateAppMembershipInput { isDisabled?: boolean; isOwner?: boolean; isVerified?: boolean; - permissions?: string; profileId?: string; updatedBy?: string; + updatedByPrincipal?: string; }; } export interface AppMembershipPatch { actorId?: string | null; + capabilities?: string | null; createdBy?: string | null; + createdByPrincipal?: string | null; granted?: string | null; isActive?: boolean | null; isAdmin?: boolean | null; @@ -2538,9 +2399,9 @@ export interface AppMembershipPatch { isDisabled?: boolean | null; isOwner?: boolean | null; isVerified?: boolean | null; - permissions?: string | null; profileId?: string | null; updatedBy?: string | null; + updatedByPrincipal?: string | null; } export interface UpdateAppMembershipInput { clientMutationId?: string; @@ -2555,16 +2416,20 @@ export interface CreateAppMembershipDefaultInput { clientMutationId?: string; appMembershipDefault: { createdBy?: string; + createdByPrincipal?: string; isApproved?: boolean; isVerified?: boolean; updatedBy?: string; + updatedByPrincipal?: string; }; } export interface AppMembershipDefaultPatch { createdBy?: string | null; + createdByPrincipal?: string | null; isApproved?: boolean | null; isVerified?: boolean | null; updatedBy?: string | null; + updatedByPrincipal?: string | null; } export interface UpdateAppMembershipDefaultInput { clientMutationId?: string; @@ -2597,88 +2462,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 +2512,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 +2680,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,7 +2807,9 @@ export interface CreateOrgMembershipInput { clientMutationId?: string; orgMembership: { actorId: string; + capabilities?: string; createdBy?: string; + createdByPrincipal?: string; entityId: string; granted?: string; isActive?: boolean; @@ -2991,14 +2820,16 @@ export interface CreateOrgMembershipInput { isExternal?: boolean; isOwner?: boolean; isReadOnly?: boolean; - permissions?: string; profileId?: string; updatedBy?: string; + updatedByPrincipal?: string; }; } export interface OrgMembershipPatch { actorId?: string | null; + capabilities?: string | null; createdBy?: string | null; + createdByPrincipal?: string | null; entityId?: string | null; granted?: string | null; isActive?: boolean | null; @@ -3009,9 +2840,9 @@ export interface OrgMembershipPatch { isExternal?: boolean | null; isOwner?: boolean | null; isReadOnly?: boolean | null; - permissions?: string | null; profileId?: string | null; updatedBy?: string | null; + updatedByPrincipal?: string | null; } export interface UpdateOrgMembershipInput { clientMutationId?: string; @@ -3026,16 +2857,20 @@ export interface CreateOrgMembershipDefaultInput { clientMutationId?: string; orgMembershipDefault: { createdBy?: string; + createdByPrincipal?: string; entityId: string; isApproved?: boolean; updatedBy?: string; + updatedByPrincipal?: string; }; } export interface OrgMembershipDefaultPatch { createdBy?: string | null; + createdByPrincipal?: string | null; entityId?: string | null; isApproved?: boolean | null; updatedBy?: string | null; + updatedByPrincipal?: string | null; } export interface UpdateOrgMembershipDefaultInput { clientMutationId?: string; @@ -3050,30 +2885,36 @@ export interface CreateOrgMembershipSettingInput { clientMutationId?: string; orgMembershipSetting: { allowExternalMembers?: boolean; + allowPrincipalOwnedApiKeys?: boolean; createChildCascadeAdmins?: boolean; createChildCascadeMembers?: boolean; createChildCascadeOwners?: boolean; createdBy?: string; + createdByPrincipal?: string; deleteMemberCascadeChildren?: boolean; entityId: string; inviteProfileAssignmentMode?: string; limitAllocationMode?: string; populateMemberEmail?: boolean; updatedBy?: string; + updatedByPrincipal?: string; }; } export interface OrgMembershipSettingPatch { allowExternalMembers?: boolean | null; + allowPrincipalOwnedApiKeys?: boolean | null; createChildCascadeAdmins?: boolean | null; createChildCascadeMembers?: boolean | null; createChildCascadeOwners?: boolean | null; createdBy?: string | null; + createdByPrincipal?: string | null; deleteMemberCascadeChildren?: boolean | null; entityId?: string | null; inviteProfileAssignmentMode?: string | null; limitAllocationMode?: string | null; populateMemberEmail?: boolean | null; updatedBy?: string | null; + updatedByPrincipal?: string | null; } export interface UpdateOrgMembershipSettingInput { clientMutationId?: string; @@ -3108,121 +2949,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 +3046,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 +3081,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 +3092,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 +3125,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 +3170,12 @@ 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) */ + createdByPrincipal?: string; + /** 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,16 +3192,16 @@ 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; + updatedByPrincipal?: string; } /** An input for mutations affecting `AppMembershipDefault` */ export interface AppMembershipDefaultInput { createdAt?: string; createdBy?: string; + createdByPrincipal?: string; id?: string; /** Whether new members are automatically approved upon joining */ isApproved?: boolean; @@ -3469,6 +3209,7 @@ export interface AppMembershipDefaultInput { isVerified?: boolean; updatedAt?: string; updatedBy?: string; + updatedByPrincipal?: string; } /** An input for mutations affecting `AppOwnerGrant` */ export interface AppOwnerGrantInput { @@ -3481,43 +3222,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 +3250,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 +3324,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 +3408,14 @@ 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; + createdByPrincipal?: 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,22 +3428,22 @@ 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; + updatedByPrincipal?: string; } /** An input for mutations affecting `OrgMembershipDefault` */ export interface OrgMembershipDefaultInput { createdAt?: string; createdBy?: string; + createdByPrincipal?: string; /** References the entity these membership defaults apply to */ entityId: string; id?: string; @@ -3721,11 +3451,14 @@ export interface OrgMembershipDefaultInput { isApproved?: boolean; updatedAt?: string; updatedBy?: string; + updatedByPrincipal?: string; } /** An input for mutations affecting `OrgMembershipSetting` */ export interface OrgMembershipSettingInput { /** Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) */ allowExternalMembers?: boolean; + /** Whether principals (agents, API-key identities) may mint API keys and child sessions for this org; requires auth_settings.allow_principal_delegation too */ + allowPrincipalOwnedApiKeys?: 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 */ @@ -3734,12 +3467,13 @@ export interface OrgMembershipSettingInput { createChildCascadeOwners?: boolean; createdAt?: string; createdBy?: string; + createdByPrincipal?: string; /** When a member is deleted, whether to cascade-remove their descendant-entity memberships */ deleteMemberCascadeChildren?: boolean; /** 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; @@ -3747,6 +3481,7 @@ export interface OrgMembershipSettingInput { populateMemberEmail?: boolean; updatedAt?: string; updatedBy?: string; + updatedByPrincipal?: string; } /** An input for mutations affecting `OrgOwnerGrant` */ export interface OrgOwnerGrantInput { @@ -3761,453 +3496,21 @@ 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; - /** 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; + /** The logical bucket row that was queued for reconciliation. */ + bucketId: string; + bucketKey: string; + /** The reconciler job enqueued to provision this bucket. */ + jobId: string; + /** The physical bucket name already recorded, or null when reconciliation has not completed. */ + physicalName?: string | null; } export type ProvisionBucketPayloadSelect = { - accessType?: boolean; - bucketName?: boolean; - endpoint?: boolean; - error?: boolean; - provider?: boolean; - success?: boolean; + bucketId?: boolean; + bucketKey?: boolean; + jobId?: boolean; + physicalName?: boolean; }; export interface SubmitAppInviteCodePayload { clientMutationId?: string | null; @@ -4255,18 +3558,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 +3933,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 +4023,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 +4608,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 +4716,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 +4740,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 +4896,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/appPermission.ts b/sdk/constructive-cli/src/admin/orm/models/appPermission.ts deleted file mode 100644 index efa4812398..0000000000 --- a/sdk/constructive-cli/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-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/orgPermission.ts b/sdk/constructive-cli/src/admin/orm/models/orgPermission.ts deleted file mode 100644 index e3aded7147..0000000000 --- a/sdk/constructive-cli/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-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/mutation/index.ts b/sdk/constructive-cli/src/admin/orm/mutation/index.ts index 0e8e613d2e..ea1a4ae835 100644 --- a/sdk/constructive-cli/src/admin/orm/mutation/index.ts +++ b/sdk/constructive-cli/src/admin/orm/mutation/index.ts @@ -20,10 +20,11 @@ import type { import { connectionFieldsMap } from '../input-types'; /** * Variables for provisionBucket - * 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. + * Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. */ export interface ProvisionBucketVariables { input: ProvisionBucketInput; diff --git a/sdk/constructive-cli/src/admin/orm/query/index.ts b/sdk/constructive-cli/src/admin/orm/query/index.ts index 6d5f48130e..f4f0cb1eb5 100644 --- a/sdk/constructive-cli/src/admin/orm/query/index.ts +++ b/sdk/constructive-cli/src/admin/orm/query/index.ts @@ -6,28 +6,10 @@ 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 GetOrganizationIdVariables { + entityId?: string; + entityType?: string; } export interface OrgIsManagerOfVariables { managerId?: string; @@ -35,151 +17,35 @@ export interface OrgIsManagerOfVariables { 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, + getOrganizationId: ( + args: GetOrganizationIdVariables, options?: { select?: Record; } ) => new QueryBuilder<{ - appPermissionsGetByMask: AppPermissionConnection | null; + getOrganizationId: string | null; }>({ client, operation: 'query', - operationName: 'AppPermissionsGetByMask', - fieldName: 'appPermissionsGetByMask', + operationName: 'GetOrganizationId', + fieldName: 'getOrganizationId', ...buildCustomDocument( 'query', - 'AppPermissionsGetByMask', - 'appPermissionsGetByMask', + 'GetOrganizationId', + 'getOrganizationId', 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]', + name: 'entityId', + type: 'UUID', }, - ], - 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', + name: 'entityType', + type: 'String', }, ], connectionFieldsMap, @@ -227,133 +93,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/agent/README.md b/sdk/constructive-cli/src/agent/README.md index 16fede1df0..9ce6c12ebf 100644 --- a/sdk/constructive-cli/src/agent/README.md +++ b/sdk/constructive-cli/src/agent/README.md @@ -8,7 +8,7 @@ ## Overview -- **Tables:** 9 +- **Tables:** 21 - **Custom queries:** 0 - **Custom mutations:** 1 diff --git a/sdk/constructive-cli/src/agent/cli/README.md b/sdk/constructive-cli/src/agent/cli/README.md index 52f2d41415..62ae022711 100644 --- a/sdk/constructive-cli/src/agent/cli/README.md +++ b/sdk/constructive-cli/src/agent/cli/README.md @@ -35,10 +35,23 @@ csdk auth set-token | `agent-resource` | agentResource CRUD operations | | `agent-task` | agentTask CRUD operations | | `agent-thread` | agentThread CRUD operations | -| `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. | +| `platform-agent` | platformAgent CRUD operations | +| `platform-agent-event` | platformAgentEvent CRUD operations | +| `platform-agent-message` | platformAgentMessage CRUD operations | +| `platform-agent-persona` | platformAgentPersona CRUD operations | +| `platform-agent-plan` | platformAgentPlan CRUD operations | +| `platform-agent-prompt` | platformAgentPrompt CRUD operations | +| `platform-agent-resource-chunk` | platformAgentResourceChunk CRUD operations | +| `platform-agent-resource` | platformAgentResource CRUD operations | +| `platform-agent-run` | platformAgentRun CRUD operations | +| `platform-agent-run-workspace` | platformAgentRunWorkspace CRUD operations | +| `platform-agent-task` | platformAgentTask CRUD operations | +| `platform-agent-thread` | platformAgentThread CRUD operations | +| `provision-bucket` | Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. | ## Infrastructure Commands @@ -137,13 +150,15 @@ CRUD operations for AgentMessage records. | `createdAt` | Datetime | | `databaseId` | UUID | | `id` | UUID | +| `kind` | String | | `model` | String | | `parts` | JSON | | `threadId` | UUID | | `updatedAt` | Datetime | +| `visibility` | String | **Required create fields:** `authorRole`, `databaseId`, `threadId` -**Optional create fields (backend defaults):** `actorId`, `agentId`, `model`, `parts` +**Optional create fields (backend defaults):** `actorId`, `agentId`, `kind`, `model`, `parts`, `visibility` ### `agent-persona` @@ -165,6 +180,7 @@ CRUD operations for AgentPersona records. | `config` | JSON | | `createdAt` | Datetime | | `createdBy` | UUID | +| `createdByPrincipal` | UUID | | `databaseId` | UUID | | `description` | String | | `id` | UUID | @@ -175,9 +191,10 @@ CRUD operations for AgentPersona records. | `systemPrompt` | String | | `updatedAt` | Datetime | | `updatedBy` | UUID | +| `updatedByPrincipal` | UUID | **Required create fields:** `databaseId`, `name`, `slug` -**Optional create fields (backend defaults):** `config`, `createdBy`, `description`, `isActive`, `resources`, `systemPrompt`, `updatedBy` +**Optional create fields (backend defaults):** `config`, `createdBy`, `createdByPrincipal`, `description`, `isActive`, `resources`, `systemPrompt`, `updatedBy`, `updatedByPrincipal` ### `agent-plan` @@ -205,9 +222,10 @@ CRUD operations for AgentPlan records. | `threadId` | UUID | | `title` | String | | `updatedAt` | Datetime | +| `visibility` | String | **Required create fields:** `databaseId`, `threadId`, `title` -**Optional create fields (backend defaults):** `description`, `ownerId`, `status` +**Optional create fields (backend defaults):** `description`, `ownerId`, `status`, `visibility` ### `agent-prompt` @@ -229,6 +247,7 @@ CRUD operations for AgentPrompt records. | `content` | String | | `createdAt` | Datetime | | `createdBy` | UUID | +| `createdByPrincipal` | UUID | | `databaseId` | UUID | | `description` | String | | `id` | UUID | @@ -237,9 +256,10 @@ CRUD operations for AgentPrompt records. | `name` | String | | `updatedAt` | Datetime | | `updatedBy` | UUID | +| `updatedByPrincipal` | UUID | **Required create fields:** `content`, `databaseId`, `name` -**Optional create fields (backend defaults):** `createdBy`, `description`, `isDefault`, `metadata`, `updatedBy` +**Optional create fields (backend defaults):** `createdBy`, `createdByPrincipal`, `description`, `isDefault`, `metadata`, `updatedBy`, `updatedByPrincipal` ### `agent-resource-chunk` @@ -263,6 +283,7 @@ CRUD operations for AgentResourceChunk records. | `body` | String | | `chunkIndex` | Int | | `createdAt` | Datetime | +| `databaseId` | UUID | | `embedding` | Vector | | `embeddingVectorDistance` | Float | | `id` | UUID | @@ -271,7 +292,7 @@ CRUD operations for AgentResourceChunk records. | `updatedAt` | Datetime | **Required create fields:** `agentResourceId`, `body` -**Optional create fields (backend defaults):** `chunkIndex`, `embedding`, `metadata` +**Optional create fields (backend defaults):** `chunkIndex`, `databaseId`, `embedding`, `metadata` > **pgvector embedding fields:** `embedding` > High-dimensional vector columns for semantic similarity search. Query via the Unified Search API pgvector adapter using cosine, L2, or inner-product distance. Supports chunk-aware search: set `includeChunks: true` in VectorNearbyInput to transparently query across parent and chunk embeddings, returning the minimum distance. @@ -330,6 +351,7 @@ CRUD operations for AgentResource records. | `bodyTrgmSimilarity` | Float | | `createdAt` | Datetime | | `createdBy` | UUID | +| `createdByPrincipal` | UUID | | `databaseId` | UUID | | `description` | String | | `descriptionTrgmSimilarity` | Float | @@ -351,9 +373,10 @@ CRUD operations for AgentResource records. | `titleTrgmSimilarity` | Float | | `updatedAt` | Datetime | | `updatedBy` | UUID | +| `updatedByPrincipal` | UUID | **Required create fields:** `body`, `databaseId`, `slug`, `title` -**Optional create fields (backend defaults):** `archivedAt`, `createdBy`, `description`, `embedding`, `isActive`, `isArchived`, `keywords`, `kind`, `metadata`, `updatedBy` +**Optional create fields (backend defaults):** `archivedAt`, `createdBy`, `createdByPrincipal`, `description`, `embedding`, `isActive`, `isArchived`, `keywords`, `kind`, `metadata`, `updatedBy`, `updatedByPrincipal` > **pgvector embedding fields:** `embedding` > High-dimensional vector columns for semantic similarity search. Query via the Unified Search API pgvector adapter using cosine, L2, or inner-product distance. Supports chunk-aware search: set `includeChunks: true` in VectorNearbyInput to transparently query across parent and chunk embeddings, returning the minimum distance. @@ -452,9 +475,10 @@ CRUD operations for AgentTask records. | `source` | String | | `status` | String | | `updatedAt` | Datetime | +| `visibility` | String | **Required create fields:** `databaseId`, `description`, `planId` -**Optional create fields (backend defaults):** `actorId`, `approvalFeedback`, `approvalStatus`, `approvedAt`, `approvedBy`, `error`, `orderIndex`, `requiresApproval`, `source`, `status` +**Optional create fields (backend defaults):** `actorId`, `approvalFeedback`, `approvalStatus`, `approvedAt`, `approvedBy`, `error`, `orderIndex`, `requiresApproval`, `source`, `status`, `visibility` ### `agent-thread` @@ -489,18 +513,554 @@ CRUD operations for AgentThread records. | `tags` | String | | `title` | String | | `updatedAt` | Datetime | +| `visibility` | String | **Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `agentId`, `archivedAt`, `isArchived`, `mode`, `model`, `ownerId`, `parentThreadId`, `promptTemplateId`, `status`, `systemPrompt`, `tags`, `title` +**Optional create fields (backend defaults):** `agentId`, `archivedAt`, `isArchived`, `mode`, `model`, `ownerId`, `parentThreadId`, `promptTemplateId`, `status`, `systemPrompt`, `tags`, `title`, `visibility` + +### `platform-agent` + +CRUD operations for PlatformAgent records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all platformAgent records | +| `find-first` | Find first matching platformAgent record | +| `get` | Get a platformAgent by id | +| `create` | Create a new platformAgent | +| `update` | Update an existing platformAgent | +| `delete` | Delete a platformAgent | + +**Fields:** + +| Field | Type | +|-------|------| +| `config` | JSON | +| `createdAt` | Datetime | +| `id` | UUID | +| `isEphemeral` | Boolean | +| `name` | String | +| `ownerId` | UUID | +| `parentId` | UUID | +| `personaId` | UUID | +| `status` | String | +| `systemPrompt` | String | +| `updatedAt` | Datetime | + +**Required create fields:** `name` +**Optional create fields (backend defaults):** `config`, `isEphemeral`, `ownerId`, `parentId`, `personaId`, `status`, `systemPrompt` + +### `platform-agent-event` + +CRUD operations for PlatformAgentEvent records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all platformAgentEvent records | +| `find-first` | Find first matching platformAgentEvent record | +| `get` | Get a platformAgentEvent by id | +| `create` | Create a new platformAgentEvent | +| `update` | Update an existing platformAgentEvent | +| `delete` | Delete a platformAgentEvent | + +**Fields:** + +| Field | Type | +|-------|------| +| `actorId` | UUID | +| `createdAt` | Datetime | +| `entry` | JSON | +| `id` | UUID | +| `recordedAt` | Datetime | +| `runId` | UUID | +| `seq` | Int | +| `transcriptFormat` | String | +| `transcriptVersion` | Int | +| `updatedAt` | Datetime | +| `visibility` | String | + +**Required create fields:** `entry`, `recordedAt`, `runId`, `seq`, `transcriptVersion` +**Optional create fields (backend defaults):** `actorId`, `transcriptFormat`, `visibility` + +### `platform-agent-message` + +CRUD operations for PlatformAgentMessage records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all platformAgentMessage records | +| `find-first` | Find first matching platformAgentMessage record | +| `get` | Get a platformAgentMessage by id | +| `create` | Create a new platformAgentMessage | +| `update` | Update an existing platformAgentMessage | +| `delete` | Delete a platformAgentMessage | + +**Fields:** + +| Field | Type | +|-------|------| +| `actorId` | UUID | +| `agentId` | UUID | +| `authorRole` | String | +| `createdAt` | Datetime | +| `deliveredRunId` | UUID | +| `id` | UUID | +| `kind` | String | +| `model` | String | +| `parts` | JSON | +| `threadId` | UUID | +| `updatedAt` | Datetime | +| `visibility` | String | + +**Required create fields:** `authorRole`, `threadId` +**Optional create fields (backend defaults):** `actorId`, `agentId`, `deliveredRunId`, `kind`, `model`, `parts`, `visibility` + +### `platform-agent-persona` + +CRUD operations for PlatformAgentPersona records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all platformAgentPersona records | +| `find-first` | Find first matching platformAgentPersona record | +| `get` | Get a platformAgentPersona by id | +| `create` | Create a new platformAgentPersona | +| `update` | Update an existing platformAgentPersona | +| `delete` | Delete a platformAgentPersona | + +**Fields:** + +| Field | Type | +|-------|------| +| `config` | JSON | +| `createdAt` | Datetime | +| `createdBy` | UUID | +| `createdByPrincipal` | UUID | +| `description` | String | +| `id` | UUID | +| `isActive` | Boolean | +| `name` | String | +| `resources` | String | +| `slug` | String | +| `systemPrompt` | String | +| `updatedAt` | Datetime | +| `updatedBy` | UUID | +| `updatedByPrincipal` | UUID | + +**Required create fields:** `name`, `slug` +**Optional create fields (backend defaults):** `config`, `createdBy`, `createdByPrincipal`, `description`, `isActive`, `resources`, `systemPrompt`, `updatedBy`, `updatedByPrincipal` + +### `platform-agent-plan` + +CRUD operations for PlatformAgentPlan records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all platformAgentPlan records | +| `find-first` | Find first matching platformAgentPlan record | +| `get` | Get a platformAgentPlan by id | +| `create` | Create a new platformAgentPlan | +| `update` | Update an existing platformAgentPlan | +| `delete` | Delete a platformAgentPlan | + +**Fields:** + +| Field | Type | +|-------|------| +| `createdAt` | Datetime | +| `description` | String | +| `id` | UUID | +| `ownerId` | UUID | +| `status` | String | +| `threadId` | UUID | +| `title` | String | +| `updatedAt` | Datetime | +| `visibility` | String | + +**Required create fields:** `threadId`, `title` +**Optional create fields (backend defaults):** `description`, `ownerId`, `status`, `visibility` + +### `platform-agent-prompt` + +CRUD operations for PlatformAgentPrompt records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all platformAgentPrompt records | +| `find-first` | Find first matching platformAgentPrompt record | +| `get` | Get a platformAgentPrompt by id | +| `create` | Create a new platformAgentPrompt | +| `update` | Update an existing platformAgentPrompt | +| `delete` | Delete a platformAgentPrompt | + +**Fields:** + +| Field | Type | +|-------|------| +| `content` | String | +| `createdAt` | Datetime | +| `createdBy` | UUID | +| `createdByPrincipal` | UUID | +| `description` | String | +| `id` | UUID | +| `isDefault` | Boolean | +| `metadata` | JSON | +| `name` | String | +| `updatedAt` | Datetime | +| `updatedBy` | UUID | +| `updatedByPrincipal` | UUID | + +**Required create fields:** `content`, `name` +**Optional create fields (backend defaults):** `createdBy`, `createdByPrincipal`, `description`, `isDefault`, `metadata`, `updatedBy`, `updatedByPrincipal` + +### `platform-agent-resource-chunk` + +CRUD operations for PlatformAgentResourceChunk records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all platformAgentResourceChunk records | +| `find-first` | Find first matching platformAgentResourceChunk record | +| `search ` | Search platformAgentResourceChunk records | +| `get` | Get a platformAgentResourceChunk by id | +| `create` | Create a new platformAgentResourceChunk | +| `update` | Update an existing platformAgentResourceChunk | +| `delete` | Delete a platformAgentResourceChunk | + +**Fields:** + +| Field | Type | +|-------|------| +| `body` | String | +| `chunkIndex` | Int | +| `createdAt` | Datetime | +| `embedding` | Vector | +| `embeddingVectorDistance` | Float | +| `id` | UUID | +| `metadata` | JSON | +| `platformAgentResourceId` | UUID | +| `searchScore` | Float | +| `updatedAt` | Datetime | + +**Required create fields:** `body`, `platformAgentResourceId` +**Optional create fields (backend defaults):** `chunkIndex`, `embedding`, `metadata` +> **pgvector embedding fields:** `embedding` +> High-dimensional vector columns for semantic similarity search. Query via the Unified Search API pgvector adapter using cosine, L2, or inner-product distance. Supports chunk-aware search: set `includeChunks: true` in VectorNearbyInput to transparently query across parent and chunk embeddings, returning the minimum distance. + +> **Unified Search API fields:** `searchScore` +> Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. + +**Search Examples:** + +*Vector similarity search via `embedding` (manual vector):* +```bash +# Pass a pre-computed vector array via dot-notation +csdk platform-agent-resource-chunk list --where.embedding.vector '[0.1,0.2,0.3]' --where.embedding.distance 1.0 --select title,embeddingVectorDistance +``` + +*Vector semantic search via `embedding` with --auto-embed:* +```bash +# --auto-embed converts text to vectors using the configured embedder (e.g. Ollama nomic-embed-text) +EMBEDDER_PROVIDER=ollama csdk platform-agent-resource-chunk search "semantic query" --auto-embed --select title,embeddingVectorDistance +EMBEDDER_PROVIDER=ollama csdk platform-agent-resource-chunk list --where.embedding.vector "semantic query" --auto-embed --select title,embeddingVectorDistance +``` + +*Create/update with auto-embedded `embedding` via --auto-embed:* +```bash +# --auto-embed on create/update converts text strings in vector fields to embeddings before saving +EMBEDDER_PROVIDER=ollama csdk platform-agent-resource-chunk create --embedding "text to embed" --auto-embed +EMBEDDER_PROVIDER=ollama csdk platform-agent-resource-chunk update --embedding "new text to embed" --auto-embed +``` + +*Search with pagination and field projection:* +```bash +csdk platform-agent-resource-chunk list --where.unifiedSearch "query" --limit 10 --select id,title,searchScore +csdk platform-agent-resource-chunk search "query" --limit 10 --select id,title,searchScore +``` + + +### `platform-agent-resource` + +CRUD operations for PlatformAgentResource records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all platformAgentResource records | +| `find-first` | Find first matching platformAgentResource record | +| `search ` | Search platformAgentResource records | +| `get` | Get a platformAgentResource by id | +| `create` | Create a new platformAgentResource | +| `update` | Update an existing platformAgentResource | +| `delete` | Delete a platformAgentResource | + +**Fields:** + +| Field | Type | +|-------|------| +| `archivedAt` | Datetime | +| `body` | String | +| `bodyTrgmSimilarity` | Float | +| `createdAt` | Datetime | +| `createdBy` | UUID | +| `createdByPrincipal` | UUID | +| `description` | String | +| `descriptionTrgmSimilarity` | Float | +| `embedding` | Vector | +| `embeddingUpdatedAt` | Datetime | +| `embeddingVectorDistance` | Float | +| `id` | UUID | +| `isActive` | Boolean | +| `isArchived` | Boolean | +| `keywords` | String | +| `kind` | String | +| `kindTrgmSimilarity` | Float | +| `metadata` | JSON | +| `search` | FullText | +| `searchScore` | Float | +| `searchTsvRank` | Float | +| `slug` | String | +| `title` | String | +| `titleTrgmSimilarity` | Float | +| `updatedAt` | Datetime | +| `updatedBy` | UUID | +| `updatedByPrincipal` | UUID | + +**Required create fields:** `body`, `slug`, `title` +**Optional create fields (backend defaults):** `archivedAt`, `createdBy`, `createdByPrincipal`, `description`, `embedding`, `isActive`, `isArchived`, `keywords`, `kind`, `metadata`, `updatedBy`, `updatedByPrincipal` +> **pgvector embedding fields:** `embedding` +> High-dimensional vector columns for semantic similarity search. Query via the Unified Search API pgvector adapter using cosine, L2, or inner-product distance. Supports chunk-aware search: set `includeChunks: true` in VectorNearbyInput to transparently query across parent and chunk embeddings, returning the minimum distance. + +> **Unified Search API fields:** `bodyTrgmSimilarity`, `descriptionTrgmSimilarity`, `kindTrgmSimilarity`, `search`, `searchScore`, `titleTrgmSimilarity` +> Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. + +**Search Examples:** + +*Vector similarity search via `embedding` (manual vector):* +```bash +# Pass a pre-computed vector array via dot-notation +csdk platform-agent-resource list --where.embedding.vector '[0.1,0.2,0.3]' --where.embedding.distance 1.0 --select title,embeddingVectorDistance +``` + +*Vector semantic search via `embedding` with --auto-embed:* +```bash +# --auto-embed converts text to vectors using the configured embedder (e.g. Ollama nomic-embed-text) +EMBEDDER_PROVIDER=ollama csdk platform-agent-resource search "semantic query" --auto-embed --select title,embeddingVectorDistance +EMBEDDER_PROVIDER=ollama csdk platform-agent-resource list --where.embedding.vector "semantic query" --auto-embed --select title,embeddingVectorDistance +``` + +*Create/update with auto-embedded `embedding` via --auto-embed:* +```bash +# --auto-embed on create/update converts text strings in vector fields to embeddings before saving +EMBEDDER_PROVIDER=ollama csdk platform-agent-resource create --embedding "text to embed" --auto-embed +EMBEDDER_PROVIDER=ollama csdk platform-agent-resource update --embedding "new text to embed" --auto-embed +``` + +*Fuzzy search via trigram similarity (`trgmBody`):* +```bash +csdk platform-agent-resource list --where.trgmBody.value "approximate query" --where.trgmBody.threshold 0.3 --select title,bodyTrgmSimilarity +``` + +*Fuzzy search via trigram similarity (`trgmDescription`):* +```bash +csdk platform-agent-resource list --where.trgmDescription.value "approximate query" --where.trgmDescription.threshold 0.3 --select title,descriptionTrgmSimilarity +``` + +*Fuzzy search via trigram similarity (`trgmKind`):* +```bash +csdk platform-agent-resource list --where.trgmKind.value "approximate query" --where.trgmKind.threshold 0.3 --select title,kindTrgmSimilarity +``` + +*Full-text search via tsvector (`search`):* +```bash +csdk platform-agent-resource list --where.search "search query" --select title,tsvRank +``` + +*Fuzzy search via trigram similarity (`trgmTitle`):* +```bash +csdk platform-agent-resource list --where.trgmTitle.value "approximate query" --where.trgmTitle.threshold 0.3 --select title,titleTrgmSimilarity +``` + +*Composite search (unifiedSearch dispatches to all text adapters):* +```bash +csdk platform-agent-resource list --where.unifiedSearch "search query" --select title,bodyTrgmSimilarity,descriptionTrgmSimilarity,kindTrgmSimilarity,tsvRank,searchScore,titleTrgmSimilarity +``` + +*Search with pagination and field projection:* +```bash +csdk platform-agent-resource list --where.unifiedSearch "query" --limit 10 --select id,title,searchScore +csdk platform-agent-resource search "query" --limit 10 --select id,title,searchScore +``` + + +### `platform-agent-run` + +CRUD operations for PlatformAgentRun records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all platformAgentRun records | +| `find-first` | Find first matching platformAgentRun record | +| `get` | Get a platformAgentRun by id | +| `create` | Create a new platformAgentRun | +| `update` | Update an existing platformAgentRun | +| `delete` | Delete a platformAgentRun | + +**Fields:** + +| Field | Type | +|-------|------| +| `actorId` | UUID | +| `artifacts` | JSON | +| `attempt` | Int | +| `baseCommit` | String | +| `branch` | String | +| `createdAt` | Datetime | +| `databaseId` | UUID | +| `deadlineAt` | Datetime | +| `entityId` | UUID | +| `error` | String | +| `executionId` | UUID | +| `finishedAt` | Datetime | +| `headCommit` | String | +| `id` | UUID | +| `lastEventSeq` | Int | +| `parentRunId` | UUID | +| `placement` | String | +| `principalId` | UUID | +| `repoUrl` | String | +| `startedAt` | Datetime | +| `status` | String | +| `threadId` | UUID | +| `tokenUsage` | JSON | +| `totalCost` | BigFloat | +| `updatedAt` | Datetime | +| `visibility` | String | + +**Required create fields:** `threadId` +**Optional create fields (backend defaults):** `actorId`, `artifacts`, `attempt`, `baseCommit`, `branch`, `databaseId`, `deadlineAt`, `entityId`, `error`, `executionId`, `finishedAt`, `headCommit`, `lastEventSeq`, `parentRunId`, `placement`, `principalId`, `repoUrl`, `startedAt`, `status`, `tokenUsage`, `totalCost`, `visibility` + +### `platform-agent-run-workspace` + +CRUD operations for PlatformAgentRunWorkspace records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all platformAgentRunWorkspace records | +| `find-first` | Find first matching platformAgentRunWorkspace record | +| `get` | Get a platformAgentRunWorkspace by id | +| `create` | Create a new platformAgentRunWorkspace | +| `update` | Update an existing platformAgentRunWorkspace | +| `delete` | Delete a platformAgentRunWorkspace | + +**Fields:** + +| Field | Type | +|-------|------| +| `actorId` | UUID | +| `artifacts` | JSON | +| `baseBranch` | String | +| `baseCommit` | String | +| `branch` | String | +| `clonedAt` | Datetime | +| `createdAt` | Datetime | +| `headCommit` | String | +| `id` | UUID | +| `lastUsedAt` | Datetime | +| `ordinal` | Int | +| `provider` | String | +| `publication` | String | +| `repo` | String | +| `repositoryId` | UUID | +| `runId` | UUID | +| `state` | String | +| `updatedAt` | Datetime | +| `visibility` | String | + +**Required create fields:** `baseBranch`, `branch`, `provider`, `repo`, `runId` +**Optional create fields (backend defaults):** `actorId`, `artifacts`, `baseCommit`, `clonedAt`, `headCommit`, `lastUsedAt`, `ordinal`, `publication`, `repositoryId`, `state`, `visibility` + +### `platform-agent-task` + +CRUD operations for PlatformAgentTask records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all platformAgentTask records | +| `find-first` | Find first matching platformAgentTask record | +| `get` | Get a platformAgentTask by id | +| `create` | Create a new platformAgentTask | +| `update` | Update an existing platformAgentTask | +| `delete` | Delete a platformAgentTask | + +**Fields:** + +| Field | Type | +|-------|------| +| `actorId` | UUID | +| `approvalFeedback` | String | +| `approvalStatus` | String | +| `approvedAt` | Datetime | +| `approvedBy` | UUID | +| `createdAt` | Datetime | +| `description` | String | +| `error` | String | +| `id` | UUID | +| `orderIndex` | Int | +| `planId` | UUID | +| `requiresApproval` | Boolean | +| `source` | String | +| `status` | String | +| `updatedAt` | Datetime | +| `visibility` | String | + +**Required create fields:** `description`, `planId` +**Optional create fields (backend defaults):** `actorId`, `approvalFeedback`, `approvalStatus`, `approvedAt`, `approvedBy`, `error`, `orderIndex`, `requiresApproval`, `source`, `status`, `visibility` + +### `platform-agent-thread` + +CRUD operations for PlatformAgentThread records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all platformAgentThread records | +| `find-first` | Find first matching platformAgentThread record | +| `get` | Get a platformAgentThread by id | +| `create` | Create a new platformAgentThread | +| `update` | Update an existing platformAgentThread | +| `delete` | Delete a platformAgentThread | + +**Fields:** + +| Field | Type | +|-------|------| +| `agentId` | UUID | +| `archivedAt` | Datetime | +| `createdAt` | Datetime | +| `id` | UUID | +| `isArchived` | Boolean | +| `mode` | String | +| `model` | String | +| `ownerId` | UUID | +| `parentThreadId` | UUID | +| `promptTemplateId` | UUID | +| `status` | String | +| `systemPrompt` | String | +| `tags` | String | +| `title` | String | +| `updatedAt` | Datetime | +| `visibility` | String | + +**Optional create fields (backend defaults):** `agentId`, `archivedAt`, `isArchived`, `mode`, `model`, `ownerId`, `parentThreadId`, `promptTemplateId`, `status`, `systemPrompt`, `tags`, `title`, `visibility` ## Custom Operations ### `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. +Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. - **Type:** mutation - **Arguments:** diff --git a/sdk/constructive-cli/src/agent/cli/commands.ts b/sdk/constructive-cli/src/agent/cli/commands.ts index 1dc3d5c18d..9ace463241 100644 --- a/sdk/constructive-cli/src/agent/cli/commands.ts +++ b/sdk/constructive-cli/src/agent/cli/commands.ts @@ -15,6 +15,18 @@ import agentResourceChunkCmd from './commands/agent-resource-chunk'; import agentResourceCmd from './commands/agent-resource'; import agentTaskCmd from './commands/agent-task'; import agentThreadCmd from './commands/agent-thread'; +import platformAgentCmd from './commands/platform-agent'; +import platformAgentEventCmd from './commands/platform-agent-event'; +import platformAgentMessageCmd from './commands/platform-agent-message'; +import platformAgentPersonaCmd from './commands/platform-agent-persona'; +import platformAgentPlanCmd from './commands/platform-agent-plan'; +import platformAgentPromptCmd from './commands/platform-agent-prompt'; +import platformAgentResourceChunkCmd from './commands/platform-agent-resource-chunk'; +import platformAgentResourceCmd from './commands/platform-agent-resource'; +import platformAgentRunCmd from './commands/platform-agent-run'; +import platformAgentRunWorkspaceCmd from './commands/platform-agent-run-workspace'; +import platformAgentTaskCmd from './commands/platform-agent-task'; +import platformAgentThreadCmd from './commands/platform-agent-thread'; import provisionBucketCmd from './commands/provision-bucket'; const createCommandMap: () => Record< string, @@ -35,10 +47,22 @@ const createCommandMap: () => Record< 'agent-resource': agentResourceCmd, 'agent-task': agentTaskCmd, 'agent-thread': agentThreadCmd, + 'platform-agent': platformAgentCmd, + 'platform-agent-event': platformAgentEventCmd, + 'platform-agent-message': platformAgentMessageCmd, + 'platform-agent-persona': platformAgentPersonaCmd, + 'platform-agent-plan': platformAgentPlanCmd, + 'platform-agent-prompt': platformAgentPromptCmd, + 'platform-agent-resource-chunk': platformAgentResourceChunkCmd, + 'platform-agent-resource': platformAgentResourceCmd, + 'platform-agent-run': platformAgentRunCmd, + 'platform-agent-run-workspace': platformAgentRunWorkspaceCmd, + 'platform-agent-task': platformAgentTaskCmd, + 'platform-agent-thread': platformAgentThreadCmd, 'provision-bucket': provisionBucketCmd, }); const usage = - '\ncsdk \n\nCommands:\n context Manage API contexts\n auth Manage authentication\n agent agent CRUD operations\n agent-message agentMessage CRUD operations\n agent-persona agentPersona CRUD operations\n agent-plan agentPlan CRUD operations\n agent-prompt agentPrompt CRUD operations\n agent-resource-chunk agentResourceChunk CRUD operations\n agent-resource agentResource CRUD operations\n agent-task agentTask CRUD operations\n agent-thread agentThread 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\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 agent CRUD operations\n agent-message agentMessage CRUD operations\n agent-persona agentPersona CRUD operations\n agent-plan agentPlan CRUD operations\n agent-prompt agentPrompt CRUD operations\n agent-resource-chunk agentResourceChunk CRUD operations\n agent-resource agentResource CRUD operations\n agent-task agentTask CRUD operations\n agent-thread agentThread CRUD operations\n platform-agent platformAgent CRUD operations\n platform-agent-event platformAgentEvent CRUD operations\n platform-agent-message platformAgentMessage CRUD operations\n platform-agent-persona platformAgentPersona CRUD operations\n platform-agent-plan platformAgentPlan CRUD operations\n platform-agent-prompt platformAgentPrompt CRUD operations\n platform-agent-resource-chunk platformAgentResourceChunk CRUD operations\n platform-agent-resource platformAgentResource CRUD operations\n platform-agent-run platformAgentRun CRUD operations\n platform-agent-run-workspace platformAgentRunWorkspace CRUD operations\n platform-agent-task platformAgentTask CRUD operations\n platform-agent-thread platformAgentThread CRUD operations\n provision-bucket Reconcile an S3 bucket for a logical bucket in the database.\nReads the bucket config via RLS, then enqueues the same\nstorage:provision_bucket job used by the INSERT trigger. This is\nidempotent for an already-reconciled bucket; enqueue failures become\nGraphQL errors.\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/agent/cli/commands/agent-message.ts b/sdk/constructive-cli/src/agent/cli/commands/agent-message.ts index d827804b2e..86c7e9a950 100644 --- a/sdk/constructive-cli/src/agent/cli/commands/agent-message.ts +++ b/sdk/constructive-cli/src/agent/cli/commands/agent-message.ts @@ -22,10 +22,12 @@ const fieldSchema: FieldSchema = { createdAt: 'string', databaseId: 'uuid', id: 'uuid', + kind: 'string', model: 'string', parts: 'json', threadId: 'uuid', updatedAt: 'string', + visibility: 'string', }; const usage = '\nagent-message \n\nCommands:\n list List agentMessage records\n find-first Find first matching agentMessage record\n get Get a agentMessage by ID\n create Create a new agentMessage\n update Update an existing agentMessage\n delete Delete a agentMessage\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; @@ -84,10 +86,12 @@ async function handleList(argv: Partial>, _prompter: Inq createdAt: true, databaseId: true, id: true, + kind: true, model: true, parts: true, threadId: true, updatedAt: true, + visibility: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs & { @@ -114,10 +118,12 @@ async function handleFindFirst(argv: Partial>, _prompter createdAt: true, databaseId: true, id: true, + kind: true, model: true, parts: true, threadId: true, updatedAt: true, + visibility: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs & { @@ -156,10 +162,12 @@ async function handleGet(argv: Partial>, prompter: Inqui createdAt: true, databaseId: true, id: true, + kind: true, model: true, parts: true, threadId: true, updatedAt: true, + visibility: true, }, }) .execute(); @@ -201,6 +209,13 @@ async function handleCreate(argv: Partial>, prompter: In message: 'databaseId', required: true, }, + { + type: 'text', + name: 'kind', + message: 'kind', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'model', @@ -221,6 +236,13 @@ async function handleCreate(argv: Partial>, prompter: In message: 'threadId', required: true, }, + { + type: 'text', + name: 'visibility', + message: 'visibility', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined( @@ -235,9 +257,11 @@ async function handleCreate(argv: Partial>, prompter: In agentId: cleanedData.agentId, authorRole: cleanedData.authorRole, databaseId: cleanedData.databaseId, + kind: cleanedData.kind, model: cleanedData.model, parts: cleanedData.parts, threadId: cleanedData.threadId, + visibility: cleanedData.visibility, }, select: { actorId: true, @@ -246,10 +270,12 @@ async function handleCreate(argv: Partial>, prompter: In createdAt: true, databaseId: true, id: true, + kind: true, model: true, parts: true, threadId: true, updatedAt: true, + visibility: true, }, }) .execute(); @@ -297,6 +323,13 @@ async function handleUpdate(argv: Partial>, prompter: In message: 'databaseId', required: false, }, + { + type: 'text', + name: 'kind', + message: 'kind', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'model', @@ -317,6 +350,13 @@ async function handleUpdate(argv: Partial>, prompter: In message: 'threadId', required: false, }, + { + type: 'text', + name: 'visibility', + message: 'visibility', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as AgentMessagePatch; @@ -331,9 +371,11 @@ async function handleUpdate(argv: Partial>, prompter: In agentId: cleanedData.agentId, authorRole: cleanedData.authorRole, databaseId: cleanedData.databaseId, + kind: cleanedData.kind, model: cleanedData.model, parts: cleanedData.parts, threadId: cleanedData.threadId, + visibility: cleanedData.visibility, }, select: { actorId: true, @@ -342,10 +384,12 @@ async function handleUpdate(argv: Partial>, prompter: In createdAt: true, databaseId: true, id: true, + kind: true, model: true, parts: true, threadId: true, updatedAt: true, + visibility: true, }, }) .execute(); diff --git a/sdk/constructive-cli/src/agent/cli/commands/agent-persona.ts b/sdk/constructive-cli/src/agent/cli/commands/agent-persona.ts index af640b9410..9af2b3054b 100644 --- a/sdk/constructive-cli/src/agent/cli/commands/agent-persona.ts +++ b/sdk/constructive-cli/src/agent/cli/commands/agent-persona.ts @@ -19,6 +19,7 @@ const fieldSchema: FieldSchema = { config: 'json', createdAt: 'string', createdBy: 'uuid', + createdByPrincipal: 'uuid', databaseId: 'uuid', description: 'string', id: 'uuid', @@ -29,6 +30,7 @@ const fieldSchema: FieldSchema = { systemPrompt: 'string', updatedAt: 'string', updatedBy: 'uuid', + updatedByPrincipal: 'uuid', }; const usage = '\nagent-persona \n\nCommands:\n list List agentPersona records\n find-first Find first matching agentPersona record\n get Get a agentPersona by ID\n create Create a new agentPersona\n update Update an existing agentPersona\n delete Delete a agentPersona\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'; @@ -84,6 +86,7 @@ async function handleList(argv: Partial>, _prompter: Inq config: true, createdAt: true, createdBy: true, + createdByPrincipal: true, databaseId: true, description: true, id: true, @@ -94,6 +97,7 @@ async function handleList(argv: Partial>, _prompter: Inq systemPrompt: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs & { @@ -117,6 +121,7 @@ async function handleFindFirst(argv: Partial>, _prompter config: true, createdAt: true, createdBy: true, + createdByPrincipal: true, databaseId: true, description: true, id: true, @@ -127,6 +132,7 @@ async function handleFindFirst(argv: Partial>, _prompter systemPrompt: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs & { @@ -162,6 +168,7 @@ async function handleGet(argv: Partial>, prompter: Inqui config: true, createdAt: true, createdBy: true, + createdByPrincipal: true, databaseId: true, description: true, id: true, @@ -172,6 +179,7 @@ async function handleGet(argv: Partial>, prompter: Inqui systemPrompt: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }, }) .execute(); @@ -201,6 +209,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'databaseId', @@ -254,6 +269,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined( @@ -266,6 +288,7 @@ async function handleCreate(argv: Partial>, prompter: In data: { config: cleanedData.config, createdBy: cleanedData.createdBy, + createdByPrincipal: cleanedData.createdByPrincipal, databaseId: cleanedData.databaseId, description: cleanedData.description, isActive: cleanedData.isActive, @@ -274,11 +297,13 @@ async function handleCreate(argv: Partial>, prompter: In slug: cleanedData.slug, systemPrompt: cleanedData.systemPrompt, updatedBy: cleanedData.updatedBy, + updatedByPrincipal: cleanedData.updatedByPrincipal, }, select: { config: true, createdAt: true, createdBy: true, + createdByPrincipal: true, databaseId: true, description: true, id: true, @@ -289,6 +314,7 @@ async function handleCreate(argv: Partial>, prompter: In systemPrompt: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }, }) .execute(); @@ -324,6 +350,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'databaseId', @@ -377,6 +410,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as AgentPersonaPatch; @@ -389,6 +429,7 @@ async function handleUpdate(argv: Partial>, prompter: In data: { config: cleanedData.config, createdBy: cleanedData.createdBy, + createdByPrincipal: cleanedData.createdByPrincipal, databaseId: cleanedData.databaseId, description: cleanedData.description, isActive: cleanedData.isActive, @@ -397,11 +438,13 @@ async function handleUpdate(argv: Partial>, prompter: In slug: cleanedData.slug, systemPrompt: cleanedData.systemPrompt, updatedBy: cleanedData.updatedBy, + updatedByPrincipal: cleanedData.updatedByPrincipal, }, select: { config: true, createdAt: true, createdBy: true, + createdByPrincipal: true, databaseId: true, description: true, id: true, @@ -412,6 +455,7 @@ async function handleUpdate(argv: Partial>, prompter: In systemPrompt: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }, }) .execute(); diff --git a/sdk/constructive-cli/src/agent/cli/commands/agent-plan.ts b/sdk/constructive-cli/src/agent/cli/commands/agent-plan.ts index 96fe2c306d..90978d3b63 100644 --- a/sdk/constructive-cli/src/agent/cli/commands/agent-plan.ts +++ b/sdk/constructive-cli/src/agent/cli/commands/agent-plan.ts @@ -25,6 +25,7 @@ const fieldSchema: FieldSchema = { threadId: 'uuid', title: 'string', updatedAt: 'string', + visibility: 'string', }; const usage = '\nagent-plan \n\nCommands:\n list List agentPlan records\n find-first Find first matching agentPlan record\n get Get a agentPlan by ID\n create Create a new agentPlan\n update Update an existing agentPlan\n delete Delete a agentPlan\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'; @@ -86,6 +87,7 @@ async function handleList(argv: Partial>, _prompter: Inq threadId: true, title: true, updatedAt: true, + visibility: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs & { @@ -115,6 +117,7 @@ async function handleFindFirst(argv: Partial>, _prompter threadId: true, title: true, updatedAt: true, + visibility: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs & { @@ -156,6 +159,7 @@ async function handleGet(argv: Partial>, prompter: Inqui threadId: true, title: true, updatedAt: true, + visibility: true, }, }) .execute(); @@ -210,6 +214,13 @@ async function handleCreate(argv: Partial>, prompter: In message: 'title', required: true, }, + { + type: 'text', + name: 'visibility', + message: 'visibility', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as CreateAgentPlanInput['agentPlan']; @@ -223,6 +234,7 @@ async function handleCreate(argv: Partial>, prompter: In status: cleanedData.status, threadId: cleanedData.threadId, title: cleanedData.title, + visibility: cleanedData.visibility, }, select: { createdAt: true, @@ -234,6 +246,7 @@ async function handleCreate(argv: Partial>, prompter: In threadId: true, title: true, updatedAt: true, + visibility: true, }, }) .execute(); @@ -294,6 +307,13 @@ async function handleUpdate(argv: Partial>, prompter: In message: 'title', required: false, }, + { + type: 'text', + name: 'visibility', + message: 'visibility', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as AgentPlanPatch; @@ -310,6 +330,7 @@ async function handleUpdate(argv: Partial>, prompter: In status: cleanedData.status, threadId: cleanedData.threadId, title: cleanedData.title, + visibility: cleanedData.visibility, }, select: { createdAt: true, @@ -321,6 +342,7 @@ async function handleUpdate(argv: Partial>, prompter: In threadId: true, title: true, updatedAt: true, + visibility: true, }, }) .execute(); diff --git a/sdk/constructive-cli/src/agent/cli/commands/agent-prompt.ts b/sdk/constructive-cli/src/agent/cli/commands/agent-prompt.ts index 3a2c835662..d6805d69f6 100644 --- a/sdk/constructive-cli/src/agent/cli/commands/agent-prompt.ts +++ b/sdk/constructive-cli/src/agent/cli/commands/agent-prompt.ts @@ -19,6 +19,7 @@ const fieldSchema: FieldSchema = { content: 'string', createdAt: 'string', createdBy: 'uuid', + createdByPrincipal: 'uuid', databaseId: 'uuid', description: 'string', id: 'uuid', @@ -27,6 +28,7 @@ const fieldSchema: FieldSchema = { name: 'string', updatedAt: 'string', updatedBy: 'uuid', + updatedByPrincipal: 'uuid', }; const usage = '\nagent-prompt \n\nCommands:\n list List agentPrompt records\n find-first Find first matching agentPrompt record\n get Get a agentPrompt by ID\n create Create a new agentPrompt\n update Update an existing agentPrompt\n delete Delete a agentPrompt\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'; @@ -82,6 +84,7 @@ async function handleList(argv: Partial>, _prompter: Inq content: true, createdAt: true, createdBy: true, + createdByPrincipal: true, databaseId: true, description: true, id: true, @@ -90,6 +93,7 @@ async function handleList(argv: Partial>, _prompter: Inq name: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs & { @@ -113,6 +117,7 @@ async function handleFindFirst(argv: Partial>, _prompter content: true, createdAt: true, createdBy: true, + createdByPrincipal: true, databaseId: true, description: true, id: true, @@ -121,6 +126,7 @@ async function handleFindFirst(argv: Partial>, _prompter name: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs & { @@ -156,6 +162,7 @@ async function handleGet(argv: Partial>, prompter: Inqui content: true, createdAt: true, createdBy: true, + createdByPrincipal: true, databaseId: true, description: true, id: true, @@ -164,6 +171,7 @@ async function handleGet(argv: Partial>, prompter: Inqui name: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }, }) .execute(); @@ -192,6 +200,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'databaseId', @@ -232,6 +247,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined( @@ -244,17 +266,20 @@ async function handleCreate(argv: Partial>, prompter: In data: { content: cleanedData.content, createdBy: cleanedData.createdBy, + createdByPrincipal: cleanedData.createdByPrincipal, databaseId: cleanedData.databaseId, description: cleanedData.description, isDefault: cleanedData.isDefault, metadata: cleanedData.metadata, name: cleanedData.name, updatedBy: cleanedData.updatedBy, + updatedByPrincipal: cleanedData.updatedByPrincipal, }, select: { content: true, createdAt: true, createdBy: true, + createdByPrincipal: true, databaseId: true, description: true, id: true, @@ -263,6 +288,7 @@ async function handleCreate(argv: Partial>, prompter: In name: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }, }) .execute(); @@ -297,6 +323,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'databaseId', @@ -337,6 +370,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as AgentPromptPatch; @@ -349,17 +389,20 @@ async function handleUpdate(argv: Partial>, prompter: In data: { content: cleanedData.content, createdBy: cleanedData.createdBy, + createdByPrincipal: cleanedData.createdByPrincipal, databaseId: cleanedData.databaseId, description: cleanedData.description, isDefault: cleanedData.isDefault, metadata: cleanedData.metadata, name: cleanedData.name, updatedBy: cleanedData.updatedBy, + updatedByPrincipal: cleanedData.updatedByPrincipal, }, select: { content: true, createdAt: true, createdBy: true, + createdByPrincipal: true, databaseId: true, description: true, id: true, @@ -368,6 +411,7 @@ async function handleUpdate(argv: Partial>, prompter: In name: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }, }) .execute(); diff --git a/sdk/constructive-cli/src/agent/cli/commands/agent-resource-chunk.ts b/sdk/constructive-cli/src/agent/cli/commands/agent-resource-chunk.ts index 72d33d8895..38befb771d 100644 --- a/sdk/constructive-cli/src/agent/cli/commands/agent-resource-chunk.ts +++ b/sdk/constructive-cli/src/agent/cli/commands/agent-resource-chunk.ts @@ -20,6 +20,7 @@ const fieldSchema: FieldSchema = { body: 'string', chunkIndex: 'int', createdAt: 'string', + databaseId: 'uuid', embedding: 'string', embeddingVectorDistance: 'float', id: 'uuid', @@ -85,6 +86,7 @@ async function handleList(argv: Partial>, _prompter: Inq body: true, chunkIndex: true, createdAt: true, + databaseId: true, embedding: true, id: true, metadata: true, @@ -127,6 +129,7 @@ async function handleFindFirst(argv: Partial>, _prompter body: true, chunkIndex: true, createdAt: true, + databaseId: true, embedding: true, id: true, metadata: true, @@ -179,6 +182,7 @@ async function handleSearch(argv: Partial>, _prompter: I body: true, chunkIndex: true, createdAt: true, + databaseId: true, embedding: true, id: true, metadata: true, @@ -223,6 +227,7 @@ async function handleGet(argv: Partial>, prompter: Inqui body: true, chunkIndex: true, createdAt: true, + databaseId: true, embedding: true, id: true, metadata: true, @@ -261,6 +266,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'embedding', @@ -298,6 +310,7 @@ async function handleCreate(argv: Partial>, prompter: In agentResourceId: cleanedData.agentResourceId, body: cleanedData.body, chunkIndex: cleanedData.chunkIndex, + databaseId: cleanedData.databaseId, embedding: cleanedData.embedding, metadata: cleanedData.metadata, }, @@ -306,6 +319,7 @@ async function handleCreate(argv: Partial>, prompter: In body: true, chunkIndex: true, createdAt: true, + databaseId: true, embedding: true, id: true, metadata: true, @@ -350,6 +364,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'embedding', @@ -387,6 +408,7 @@ async function handleUpdate(argv: Partial>, prompter: In agentResourceId: cleanedData.agentResourceId, body: cleanedData.body, chunkIndex: cleanedData.chunkIndex, + databaseId: cleanedData.databaseId, embedding: cleanedData.embedding, metadata: cleanedData.metadata, }, @@ -395,6 +417,7 @@ async function handleUpdate(argv: Partial>, prompter: In body: true, chunkIndex: true, createdAt: true, + databaseId: true, embedding: true, id: true, metadata: true, diff --git a/sdk/constructive-cli/src/agent/cli/commands/agent-resource.ts b/sdk/constructive-cli/src/agent/cli/commands/agent-resource.ts index 4c5c0dd7ca..0141f622ed 100644 --- a/sdk/constructive-cli/src/agent/cli/commands/agent-resource.ts +++ b/sdk/constructive-cli/src/agent/cli/commands/agent-resource.ts @@ -21,6 +21,7 @@ const fieldSchema: FieldSchema = { bodyTrgmSimilarity: 'float', createdAt: 'string', createdBy: 'uuid', + createdByPrincipal: 'uuid', databaseId: 'uuid', description: 'string', descriptionTrgmSimilarity: 'float', @@ -42,6 +43,7 @@ const fieldSchema: FieldSchema = { titleTrgmSimilarity: 'float', updatedAt: 'string', updatedBy: 'uuid', + updatedByPrincipal: 'uuid', }; import { resolveEmbedder, autoEmbedWhere, autoEmbedInput } from '../embedder'; const usage = @@ -101,6 +103,7 @@ async function handleList(argv: Partial>, _prompter: Inq body: true, createdAt: true, createdBy: true, + createdByPrincipal: true, databaseId: true, description: true, embedding: true, @@ -114,6 +117,7 @@ async function handleList(argv: Partial>, _prompter: Inq title: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs & { @@ -148,6 +152,7 @@ async function handleFindFirst(argv: Partial>, _prompter body: true, createdAt: true, createdBy: true, + createdByPrincipal: true, databaseId: true, description: true, embedding: true, @@ -161,6 +166,7 @@ async function handleFindFirst(argv: Partial>, _prompter title: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs & { @@ -224,6 +230,7 @@ async function handleSearch(argv: Partial>, _prompter: I body: true, createdAt: true, createdBy: true, + createdByPrincipal: true, databaseId: true, description: true, embedding: true, @@ -237,6 +244,7 @@ async function handleSearch(argv: Partial>, _prompter: I title: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs & { @@ -273,6 +281,7 @@ async function handleGet(argv: Partial>, prompter: Inqui body: true, createdAt: true, createdBy: true, + createdByPrincipal: true, databaseId: true, description: true, embedding: true, @@ -286,6 +295,7 @@ async function handleGet(argv: Partial>, prompter: Inqui title: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }, }) .execute(); @@ -321,6 +331,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'databaseId', @@ -395,6 +412,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined( @@ -418,6 +442,7 @@ async function handleCreate(argv: Partial>, prompter: In archivedAt: cleanedData.archivedAt, body: cleanedData.body, createdBy: cleanedData.createdBy, + createdByPrincipal: cleanedData.createdByPrincipal, databaseId: cleanedData.databaseId, description: cleanedData.description, embedding: cleanedData.embedding, @@ -429,12 +454,14 @@ async function handleCreate(argv: Partial>, prompter: In slug: cleanedData.slug, title: cleanedData.title, updatedBy: cleanedData.updatedBy, + updatedByPrincipal: cleanedData.updatedByPrincipal, }, select: { archivedAt: true, body: true, createdAt: true, createdBy: true, + createdByPrincipal: true, databaseId: true, description: true, embedding: true, @@ -448,6 +475,7 @@ async function handleCreate(argv: Partial>, prompter: In title: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }, }) .execute(); @@ -489,6 +517,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'databaseId', @@ -563,6 +598,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as AgentResourcePatch; @@ -586,6 +628,7 @@ async function handleUpdate(argv: Partial>, prompter: In archivedAt: cleanedData.archivedAt, body: cleanedData.body, createdBy: cleanedData.createdBy, + createdByPrincipal: cleanedData.createdByPrincipal, databaseId: cleanedData.databaseId, description: cleanedData.description, embedding: cleanedData.embedding, @@ -597,12 +640,14 @@ async function handleUpdate(argv: Partial>, prompter: In slug: cleanedData.slug, title: cleanedData.title, updatedBy: cleanedData.updatedBy, + updatedByPrincipal: cleanedData.updatedByPrincipal, }, select: { archivedAt: true, body: true, createdAt: true, createdBy: true, + createdByPrincipal: true, databaseId: true, description: true, embedding: true, @@ -616,6 +661,7 @@ async function handleUpdate(argv: Partial>, prompter: In title: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }, }) .execute(); diff --git a/sdk/constructive-cli/src/agent/cli/commands/agent-task.ts b/sdk/constructive-cli/src/agent/cli/commands/agent-task.ts index 2fb62a07af..2422638520 100644 --- a/sdk/constructive-cli/src/agent/cli/commands/agent-task.ts +++ b/sdk/constructive-cli/src/agent/cli/commands/agent-task.ts @@ -32,6 +32,7 @@ const fieldSchema: FieldSchema = { source: 'string', status: 'string', updatedAt: 'string', + visibility: 'string', }; const usage = '\nagent-task \n\nCommands:\n list List agentTask records\n find-first Find first matching agentTask record\n get Get a agentTask by ID\n create Create a new agentTask\n update Update an existing agentTask\n delete Delete a agentTask\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; @@ -100,6 +101,7 @@ async function handleList(argv: Partial>, _prompter: Inq source: true, status: true, updatedAt: true, + visibility: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs & { @@ -136,6 +138,7 @@ async function handleFindFirst(argv: Partial>, _prompter source: true, status: true, updatedAt: true, + visibility: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs & { @@ -184,6 +187,7 @@ async function handleGet(argv: Partial>, prompter: Inqui source: true, status: true, updatedAt: true, + visibility: true, }, }) .execute(); @@ -287,6 +291,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'visibility', + message: 'visibility', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as CreateAgentTaskInput['agentTask']; @@ -307,6 +318,7 @@ async function handleCreate(argv: Partial>, prompter: In requiresApproval: cleanedData.requiresApproval, source: cleanedData.source, status: cleanedData.status, + visibility: cleanedData.visibility, }, select: { actorId: true, @@ -325,6 +337,7 @@ async function handleCreate(argv: Partial>, prompter: In source: true, status: true, updatedAt: true, + visibility: true, }, }) .execute(); @@ -434,6 +447,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'visibility', + message: 'visibility', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as AgentTaskPatch; @@ -457,6 +477,7 @@ async function handleUpdate(argv: Partial>, prompter: In requiresApproval: cleanedData.requiresApproval, source: cleanedData.source, status: cleanedData.status, + visibility: cleanedData.visibility, }, select: { actorId: true, @@ -475,6 +496,7 @@ async function handleUpdate(argv: Partial>, prompter: In source: true, status: true, updatedAt: true, + visibility: true, }, }) .execute(); diff --git a/sdk/constructive-cli/src/agent/cli/commands/agent-thread.ts b/sdk/constructive-cli/src/agent/cli/commands/agent-thread.ts index d905d2ed73..779d3cbba1 100644 --- a/sdk/constructive-cli/src/agent/cli/commands/agent-thread.ts +++ b/sdk/constructive-cli/src/agent/cli/commands/agent-thread.ts @@ -32,6 +32,7 @@ const fieldSchema: FieldSchema = { tags: 'string', title: 'string', updatedAt: 'string', + visibility: 'string', }; const usage = '\nagent-thread \n\nCommands:\n list List agentThread records\n find-first Find first matching agentThread record\n get Get a agentThread by ID\n create Create a new agentThread\n update Update an existing agentThread\n delete Delete a agentThread\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; @@ -100,6 +101,7 @@ async function handleList(argv: Partial>, _prompter: Inq tags: true, title: true, updatedAt: true, + visibility: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs & { @@ -136,6 +138,7 @@ async function handleFindFirst(argv: Partial>, _prompter tags: true, title: true, updatedAt: true, + visibility: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs & { @@ -184,6 +187,7 @@ async function handleGet(argv: Partial>, prompter: Inqui tags: true, title: true, updatedAt: true, + visibility: true, }, }) .execute(); @@ -289,6 +293,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'visibility', + message: 'visibility', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined( @@ -312,6 +323,7 @@ async function handleCreate(argv: Partial>, prompter: In systemPrompt: cleanedData.systemPrompt, tags: cleanedData.tags, title: cleanedData.title, + visibility: cleanedData.visibility, }, select: { agentId: true, @@ -330,6 +342,7 @@ async function handleCreate(argv: Partial>, prompter: In tags: true, title: true, updatedAt: true, + visibility: true, }, }) .execute(); @@ -441,6 +454,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'visibility', + message: 'visibility', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as AgentThreadPatch; @@ -464,6 +484,7 @@ async function handleUpdate(argv: Partial>, prompter: In systemPrompt: cleanedData.systemPrompt, tags: cleanedData.tags, title: cleanedData.title, + visibility: cleanedData.visibility, }, select: { agentId: true, @@ -482,6 +503,7 @@ async function handleUpdate(argv: Partial>, prompter: In tags: true, title: true, updatedAt: true, + visibility: true, }, }) .execute(); diff --git a/sdk/constructive-cli/src/agent/cli/commands/platform-agent-event.ts b/sdk/constructive-cli/src/agent/cli/commands/platform-agent-event.ts new file mode 100644 index 0000000000..6bbd3b8c74 --- /dev/null +++ b/sdk/constructive-cli/src/agent/cli/commands/platform-agent-event.ts @@ -0,0 +1,417 @@ +/** + * CLI commands for PlatformAgentEvent + * @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 { + CreatePlatformAgentEventInput, + PlatformAgentEventPatch, + PlatformAgentEventSelect, + PlatformAgentEventFilter, + PlatformAgentEventOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + actorId: 'uuid', + createdAt: 'string', + entry: 'json', + id: 'uuid', + recordedAt: 'string', + runId: 'uuid', + seq: 'int', + transcriptFormat: 'string', + transcriptVersion: 'int', + updatedAt: 'string', + visibility: 'string', +}; +const usage = + '\nplatform-agent-event \n\nCommands:\n list List platformAgentEvent records\n find-first Find first matching platformAgentEvent record\n get Get a platformAgentEvent by ID\n create Create a new platformAgentEvent\n update Update an existing platformAgentEvent\n delete Delete a platformAgentEvent\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 = { + actorId: true, + createdAt: true, + entry: true, + id: true, + recordedAt: true, + runId: true, + seq: true, + transcriptFormat: true, + transcriptVersion: true, + updatedAt: true, + visibility: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs< + PlatformAgentEventSelect, + PlatformAgentEventFilter, + PlatformAgentEventOrderBy + > & { + select: PlatformAgentEventSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformAgentEvent.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 = { + actorId: true, + createdAt: true, + entry: true, + id: true, + recordedAt: true, + runId: true, + seq: true, + transcriptFormat: true, + transcriptVersion: true, + updatedAt: true, + visibility: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs< + PlatformAgentEventSelect, + PlatformAgentEventFilter, + PlatformAgentEventOrderBy + > & { + select: PlatformAgentEventSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformAgentEvent.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.platformAgentEvent + .findOne({ + id: answers.id as string, + select: { + actorId: true, + createdAt: true, + entry: true, + id: true, + recordedAt: true, + runId: true, + seq: true, + transcriptFormat: true, + transcriptVersion: true, + updatedAt: true, + visibility: 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: 'actorId', + message: 'actorId', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'entry', + message: 'entry', + required: true, + }, + { + type: 'text', + name: 'recordedAt', + message: 'recordedAt', + required: true, + }, + { + type: 'text', + name: 'runId', + message: 'runId', + required: true, + }, + { + type: 'text', + name: 'seq', + message: 'seq', + required: true, + }, + { + type: 'text', + name: 'transcriptFormat', + message: 'transcriptFormat', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'transcriptVersion', + message: 'transcriptVersion', + required: true, + }, + { + type: 'text', + name: 'visibility', + message: 'visibility', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreatePlatformAgentEventInput['platformAgentEvent']; + const client = getClient(); + const result = await client.platformAgentEvent + .create({ + data: { + actorId: cleanedData.actorId, + entry: cleanedData.entry, + recordedAt: cleanedData.recordedAt, + runId: cleanedData.runId, + seq: cleanedData.seq, + transcriptFormat: cleanedData.transcriptFormat, + transcriptVersion: cleanedData.transcriptVersion, + visibility: cleanedData.visibility, + }, + select: { + actorId: true, + createdAt: true, + entry: true, + id: true, + recordedAt: true, + runId: true, + seq: true, + transcriptFormat: true, + transcriptVersion: true, + updatedAt: true, + visibility: 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: 'actorId', + message: 'actorId', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'entry', + message: 'entry', + required: false, + }, + { + type: 'text', + name: 'recordedAt', + message: 'recordedAt', + required: false, + }, + { + type: 'text', + name: 'runId', + message: 'runId', + required: false, + }, + { + type: 'text', + name: 'seq', + message: 'seq', + required: false, + }, + { + type: 'text', + name: 'transcriptFormat', + message: 'transcriptFormat', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'transcriptVersion', + message: 'transcriptVersion', + required: false, + }, + { + type: 'text', + name: 'visibility', + message: 'visibility', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as PlatformAgentEventPatch; + const client = getClient(); + const result = await client.platformAgentEvent + .update({ + where: { + id: answers.id as string, + }, + data: { + actorId: cleanedData.actorId, + entry: cleanedData.entry, + recordedAt: cleanedData.recordedAt, + runId: cleanedData.runId, + seq: cleanedData.seq, + transcriptFormat: cleanedData.transcriptFormat, + transcriptVersion: cleanedData.transcriptVersion, + visibility: cleanedData.visibility, + }, + select: { + actorId: true, + createdAt: true, + entry: true, + id: true, + recordedAt: true, + runId: true, + seq: true, + transcriptFormat: true, + transcriptVersion: true, + updatedAt: true, + visibility: 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.platformAgentEvent + .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/agent/cli/commands/platform-agent-message.ts b/sdk/constructive-cli/src/agent/cli/commands/platform-agent-message.ts new file mode 100644 index 0000000000..abd99f4e8f --- /dev/null +++ b/sdk/constructive-cli/src/agent/cli/commands/platform-agent-message.ts @@ -0,0 +1,445 @@ +/** + * CLI commands for PlatformAgentMessage + * @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 { + CreatePlatformAgentMessageInput, + PlatformAgentMessagePatch, + PlatformAgentMessageSelect, + PlatformAgentMessageFilter, + PlatformAgentMessageOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + actorId: 'uuid', + agentId: 'uuid', + authorRole: 'string', + createdAt: 'string', + deliveredRunId: 'uuid', + id: 'uuid', + kind: 'string', + model: 'string', + parts: 'json', + threadId: 'uuid', + updatedAt: 'string', + visibility: 'string', +}; +const usage = + '\nplatform-agent-message \n\nCommands:\n list List platformAgentMessage records\n find-first Find first matching platformAgentMessage record\n get Get a platformAgentMessage by ID\n create Create a new platformAgentMessage\n update Update an existing platformAgentMessage\n delete Delete a platformAgentMessage\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 = { + actorId: true, + agentId: true, + authorRole: true, + createdAt: true, + deliveredRunId: true, + id: true, + kind: true, + model: true, + parts: true, + threadId: true, + updatedAt: true, + visibility: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs< + PlatformAgentMessageSelect, + PlatformAgentMessageFilter, + PlatformAgentMessageOrderBy + > & { + select: PlatformAgentMessageSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformAgentMessage.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 = { + actorId: true, + agentId: true, + authorRole: true, + createdAt: true, + deliveredRunId: true, + id: true, + kind: true, + model: true, + parts: true, + threadId: true, + updatedAt: true, + visibility: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs< + PlatformAgentMessageSelect, + PlatformAgentMessageFilter, + PlatformAgentMessageOrderBy + > & { + select: PlatformAgentMessageSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformAgentMessage.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.platformAgentMessage + .findOne({ + id: answers.id as string, + select: { + actorId: true, + agentId: true, + authorRole: true, + createdAt: true, + deliveredRunId: true, + id: true, + kind: true, + model: true, + parts: true, + threadId: true, + updatedAt: true, + visibility: 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: 'actorId', + message: 'actorId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'agentId', + message: 'agentId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'authorRole', + message: 'authorRole', + required: true, + }, + { + type: 'text', + name: 'deliveredRunId', + message: 'deliveredRunId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'kind', + message: 'kind', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'model', + message: 'model', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'parts', + message: 'parts', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'threadId', + message: 'threadId', + required: true, + }, + { + type: 'text', + name: 'visibility', + message: 'visibility', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreatePlatformAgentMessageInput['platformAgentMessage']; + const client = getClient(); + const result = await client.platformAgentMessage + .create({ + data: { + actorId: cleanedData.actorId, + agentId: cleanedData.agentId, + authorRole: cleanedData.authorRole, + deliveredRunId: cleanedData.deliveredRunId, + kind: cleanedData.kind, + model: cleanedData.model, + parts: cleanedData.parts, + threadId: cleanedData.threadId, + visibility: cleanedData.visibility, + }, + select: { + actorId: true, + agentId: true, + authorRole: true, + createdAt: true, + deliveredRunId: true, + id: true, + kind: true, + model: true, + parts: true, + threadId: true, + updatedAt: true, + visibility: 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: 'actorId', + message: 'actorId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'agentId', + message: 'agentId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'authorRole', + message: 'authorRole', + required: false, + }, + { + type: 'text', + name: 'deliveredRunId', + message: 'deliveredRunId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'kind', + message: 'kind', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'model', + message: 'model', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'parts', + message: 'parts', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'threadId', + message: 'threadId', + required: false, + }, + { + type: 'text', + name: 'visibility', + message: 'visibility', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as PlatformAgentMessagePatch; + const client = getClient(); + const result = await client.platformAgentMessage + .update({ + where: { + id: answers.id as string, + }, + data: { + actorId: cleanedData.actorId, + agentId: cleanedData.agentId, + authorRole: cleanedData.authorRole, + deliveredRunId: cleanedData.deliveredRunId, + kind: cleanedData.kind, + model: cleanedData.model, + parts: cleanedData.parts, + threadId: cleanedData.threadId, + visibility: cleanedData.visibility, + }, + select: { + actorId: true, + agentId: true, + authorRole: true, + createdAt: true, + deliveredRunId: true, + id: true, + kind: true, + model: true, + parts: true, + threadId: true, + updatedAt: true, + visibility: 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.platformAgentMessage + .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/agent/cli/commands/platform-agent-persona.ts b/sdk/constructive-cli/src/agent/cli/commands/platform-agent-persona.ts new file mode 100644 index 0000000000..0510839829 --- /dev/null +++ b/sdk/constructive-cli/src/agent/cli/commands/platform-agent-persona.ts @@ -0,0 +1,489 @@ +/** + * CLI commands for PlatformAgentPersona + * @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 { + CreatePlatformAgentPersonaInput, + PlatformAgentPersonaPatch, + PlatformAgentPersonaSelect, + PlatformAgentPersonaFilter, + PlatformAgentPersonaOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + config: 'json', + createdAt: 'string', + createdBy: 'uuid', + createdByPrincipal: 'uuid', + description: 'string', + id: 'uuid', + isActive: 'boolean', + name: 'string', + resources: 'string', + slug: 'string', + systemPrompt: 'string', + updatedAt: 'string', + updatedBy: 'uuid', + updatedByPrincipal: 'uuid', +}; +const usage = + '\nplatform-agent-persona \n\nCommands:\n list List platformAgentPersona records\n find-first Find first matching platformAgentPersona record\n get Get a platformAgentPersona by ID\n create Create a new platformAgentPersona\n update Update an existing platformAgentPersona\n delete Delete a platformAgentPersona\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 = { + config: true, + createdAt: true, + createdBy: true, + createdByPrincipal: true, + description: true, + id: true, + isActive: true, + name: true, + resources: true, + slug: true, + systemPrompt: true, + updatedAt: true, + updatedBy: true, + updatedByPrincipal: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs< + PlatformAgentPersonaSelect, + PlatformAgentPersonaFilter, + PlatformAgentPersonaOrderBy + > & { + select: PlatformAgentPersonaSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformAgentPersona.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 = { + config: true, + createdAt: true, + createdBy: true, + createdByPrincipal: true, + description: true, + id: true, + isActive: true, + name: true, + resources: true, + slug: true, + systemPrompt: true, + updatedAt: true, + updatedBy: true, + updatedByPrincipal: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs< + PlatformAgentPersonaSelect, + PlatformAgentPersonaFilter, + PlatformAgentPersonaOrderBy + > & { + select: PlatformAgentPersonaSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformAgentPersona.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.platformAgentPersona + .findOne({ + id: answers.id as string, + select: { + config: true, + createdAt: true, + createdBy: true, + createdByPrincipal: true, + description: true, + id: true, + isActive: true, + name: true, + resources: true, + slug: true, + systemPrompt: true, + updatedAt: true, + updatedBy: true, + updatedByPrincipal: 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: 'json', + name: 'config', + message: 'config', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'createdBy', + message: 'createdBy', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'description', + message: 'description', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'isActive', + message: 'isActive', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'name', + message: 'name', + required: true, + }, + { + type: 'text', + name: 'resources', + message: 'resources', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'slug', + message: 'slug', + required: true, + }, + { + type: 'text', + name: 'systemPrompt', + message: 'systemPrompt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'updatedBy', + message: 'updatedBy', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreatePlatformAgentPersonaInput['platformAgentPersona']; + const client = getClient(); + const result = await client.platformAgentPersona + .create({ + data: { + config: cleanedData.config, + createdBy: cleanedData.createdBy, + createdByPrincipal: cleanedData.createdByPrincipal, + description: cleanedData.description, + isActive: cleanedData.isActive, + name: cleanedData.name, + resources: cleanedData.resources, + slug: cleanedData.slug, + systemPrompt: cleanedData.systemPrompt, + updatedBy: cleanedData.updatedBy, + updatedByPrincipal: cleanedData.updatedByPrincipal, + }, + select: { + config: true, + createdAt: true, + createdBy: true, + createdByPrincipal: true, + description: true, + id: true, + isActive: true, + name: true, + resources: true, + slug: true, + systemPrompt: true, + updatedAt: true, + updatedBy: true, + updatedByPrincipal: 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: 'json', + name: 'config', + message: 'config', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'createdBy', + message: 'createdBy', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'description', + message: 'description', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'isActive', + message: 'isActive', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'name', + message: 'name', + required: false, + }, + { + type: 'text', + name: 'resources', + message: 'resources', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'slug', + message: 'slug', + required: false, + }, + { + type: 'text', + name: 'systemPrompt', + message: 'systemPrompt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'updatedBy', + message: 'updatedBy', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as PlatformAgentPersonaPatch; + const client = getClient(); + const result = await client.platformAgentPersona + .update({ + where: { + id: answers.id as string, + }, + data: { + config: cleanedData.config, + createdBy: cleanedData.createdBy, + createdByPrincipal: cleanedData.createdByPrincipal, + description: cleanedData.description, + isActive: cleanedData.isActive, + name: cleanedData.name, + resources: cleanedData.resources, + slug: cleanedData.slug, + systemPrompt: cleanedData.systemPrompt, + updatedBy: cleanedData.updatedBy, + updatedByPrincipal: cleanedData.updatedByPrincipal, + }, + select: { + config: true, + createdAt: true, + createdBy: true, + createdByPrincipal: true, + description: true, + id: true, + isActive: true, + name: true, + resources: true, + slug: true, + systemPrompt: true, + updatedAt: true, + updatedBy: true, + updatedByPrincipal: 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.platformAgentPersona + .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/agent/cli/commands/platform-agent-plan.ts b/sdk/constructive-cli/src/agent/cli/commands/platform-agent-plan.ts new file mode 100644 index 0000000000..9512fb0a27 --- /dev/null +++ b/sdk/constructive-cli/src/agent/cli/commands/platform-agent-plan.ts @@ -0,0 +1,371 @@ +/** + * CLI commands for PlatformAgentPlan + * @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 { + CreatePlatformAgentPlanInput, + PlatformAgentPlanPatch, + PlatformAgentPlanSelect, + PlatformAgentPlanFilter, + PlatformAgentPlanOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + createdAt: 'string', + description: 'string', + id: 'uuid', + ownerId: 'uuid', + status: 'string', + threadId: 'uuid', + title: 'string', + updatedAt: 'string', + visibility: 'string', +}; +const usage = + '\nplatform-agent-plan \n\nCommands:\n list List platformAgentPlan records\n find-first Find first matching platformAgentPlan record\n get Get a platformAgentPlan by ID\n create Create a new platformAgentPlan\n update Update an existing platformAgentPlan\n delete Delete a platformAgentPlan\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, + description: true, + id: true, + ownerId: true, + status: true, + threadId: true, + title: true, + updatedAt: true, + visibility: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: PlatformAgentPlanSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformAgentPlan.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, + description: true, + id: true, + ownerId: true, + status: true, + threadId: true, + title: true, + updatedAt: true, + visibility: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: PlatformAgentPlanSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformAgentPlan.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.platformAgentPlan + .findOne({ + id: answers.id as string, + select: { + createdAt: true, + description: true, + id: true, + ownerId: true, + status: true, + threadId: true, + title: true, + updatedAt: true, + visibility: 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: 'description', + message: 'description', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'ownerId', + message: 'ownerId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'status', + message: 'status', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'threadId', + message: 'threadId', + required: true, + }, + { + type: 'text', + name: 'title', + message: 'title', + required: true, + }, + { + type: 'text', + name: 'visibility', + message: 'visibility', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreatePlatformAgentPlanInput['platformAgentPlan']; + const client = getClient(); + const result = await client.platformAgentPlan + .create({ + data: { + description: cleanedData.description, + ownerId: cleanedData.ownerId, + status: cleanedData.status, + threadId: cleanedData.threadId, + title: cleanedData.title, + visibility: cleanedData.visibility, + }, + select: { + createdAt: true, + description: true, + id: true, + ownerId: true, + status: true, + threadId: true, + title: true, + updatedAt: true, + visibility: 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: 'description', + message: 'description', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'ownerId', + message: 'ownerId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'status', + message: 'status', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'threadId', + message: 'threadId', + required: false, + }, + { + type: 'text', + name: 'title', + message: 'title', + required: false, + }, + { + type: 'text', + name: 'visibility', + message: 'visibility', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as PlatformAgentPlanPatch; + const client = getClient(); + const result = await client.platformAgentPlan + .update({ + where: { + id: answers.id as string, + }, + data: { + description: cleanedData.description, + ownerId: cleanedData.ownerId, + status: cleanedData.status, + threadId: cleanedData.threadId, + title: cleanedData.title, + visibility: cleanedData.visibility, + }, + select: { + createdAt: true, + description: true, + id: true, + ownerId: true, + status: true, + threadId: true, + title: true, + updatedAt: true, + visibility: 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.platformAgentPlan + .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/agent/cli/commands/platform-agent-prompt.ts b/sdk/constructive-cli/src/agent/cli/commands/platform-agent-prompt.ts new file mode 100644 index 0000000000..587b640f09 --- /dev/null +++ b/sdk/constructive-cli/src/agent/cli/commands/platform-agent-prompt.ts @@ -0,0 +1,445 @@ +/** + * CLI commands for PlatformAgentPrompt + * @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 { + CreatePlatformAgentPromptInput, + PlatformAgentPromptPatch, + PlatformAgentPromptSelect, + PlatformAgentPromptFilter, + PlatformAgentPromptOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + content: 'string', + createdAt: 'string', + createdBy: 'uuid', + createdByPrincipal: 'uuid', + description: 'string', + id: 'uuid', + isDefault: 'boolean', + metadata: 'json', + name: 'string', + updatedAt: 'string', + updatedBy: 'uuid', + updatedByPrincipal: 'uuid', +}; +const usage = + '\nplatform-agent-prompt \n\nCommands:\n list List platformAgentPrompt records\n find-first Find first matching platformAgentPrompt record\n get Get a platformAgentPrompt by ID\n create Create a new platformAgentPrompt\n update Update an existing platformAgentPrompt\n delete Delete a platformAgentPrompt\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 = { + content: true, + createdAt: true, + createdBy: true, + createdByPrincipal: true, + description: true, + id: true, + isDefault: true, + metadata: true, + name: true, + updatedAt: true, + updatedBy: true, + updatedByPrincipal: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs< + PlatformAgentPromptSelect, + PlatformAgentPromptFilter, + PlatformAgentPromptOrderBy + > & { + select: PlatformAgentPromptSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformAgentPrompt.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 = { + content: true, + createdAt: true, + createdBy: true, + createdByPrincipal: true, + description: true, + id: true, + isDefault: true, + metadata: true, + name: true, + updatedAt: true, + updatedBy: true, + updatedByPrincipal: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs< + PlatformAgentPromptSelect, + PlatformAgentPromptFilter, + PlatformAgentPromptOrderBy + > & { + select: PlatformAgentPromptSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformAgentPrompt.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.platformAgentPrompt + .findOne({ + id: answers.id as string, + select: { + content: true, + createdAt: true, + createdBy: true, + createdByPrincipal: true, + description: true, + id: true, + isDefault: true, + metadata: true, + name: true, + updatedAt: true, + updatedBy: true, + updatedByPrincipal: 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: 'content', + message: 'content', + required: true, + }, + { + type: 'text', + name: 'createdBy', + message: 'createdBy', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'description', + message: 'description', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'isDefault', + message: 'isDefault', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'metadata', + message: 'metadata', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'name', + message: 'name', + required: true, + }, + { + type: 'text', + name: 'updatedBy', + message: 'updatedBy', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreatePlatformAgentPromptInput['platformAgentPrompt']; + const client = getClient(); + const result = await client.platformAgentPrompt + .create({ + data: { + content: cleanedData.content, + createdBy: cleanedData.createdBy, + createdByPrincipal: cleanedData.createdByPrincipal, + description: cleanedData.description, + isDefault: cleanedData.isDefault, + metadata: cleanedData.metadata, + name: cleanedData.name, + updatedBy: cleanedData.updatedBy, + updatedByPrincipal: cleanedData.updatedByPrincipal, + }, + select: { + content: true, + createdAt: true, + createdBy: true, + createdByPrincipal: true, + description: true, + id: true, + isDefault: true, + metadata: true, + name: true, + updatedAt: true, + updatedBy: true, + updatedByPrincipal: 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: 'content', + message: 'content', + required: false, + }, + { + type: 'text', + name: 'createdBy', + message: 'createdBy', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'description', + message: 'description', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'isDefault', + message: 'isDefault', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'metadata', + message: 'metadata', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'name', + message: 'name', + required: false, + }, + { + type: 'text', + name: 'updatedBy', + message: 'updatedBy', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as PlatformAgentPromptPatch; + const client = getClient(); + const result = await client.platformAgentPrompt + .update({ + where: { + id: answers.id as string, + }, + data: { + content: cleanedData.content, + createdBy: cleanedData.createdBy, + createdByPrincipal: cleanedData.createdByPrincipal, + description: cleanedData.description, + isDefault: cleanedData.isDefault, + metadata: cleanedData.metadata, + name: cleanedData.name, + updatedBy: cleanedData.updatedBy, + updatedByPrincipal: cleanedData.updatedByPrincipal, + }, + select: { + content: true, + createdAt: true, + createdBy: true, + createdByPrincipal: true, + description: true, + id: true, + isDefault: true, + metadata: true, + name: true, + updatedAt: true, + updatedBy: true, + updatedByPrincipal: 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.platformAgentPrompt + .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/agent/cli/commands/platform-agent-resource-chunk.ts b/sdk/constructive-cli/src/agent/cli/commands/platform-agent-resource-chunk.ts new file mode 100644 index 0000000000..3a0e799010 --- /dev/null +++ b/sdk/constructive-cli/src/agent/cli/commands/platform-agent-resource-chunk.ts @@ -0,0 +1,444 @@ +/** + * CLI commands for PlatformAgentResourceChunk + * @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 { + CreatePlatformAgentResourceChunkInput, + PlatformAgentResourceChunkPatch, + PlatformAgentResourceChunkSelect, + PlatformAgentResourceChunkFilter, + PlatformAgentResourceChunkOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + body: 'string', + chunkIndex: 'int', + createdAt: 'string', + embedding: 'string', + embeddingVectorDistance: 'float', + id: 'uuid', + metadata: 'json', + platformAgentResourceId: 'uuid', + searchScore: 'float', + updatedAt: 'string', +}; +import { resolveEmbedder, autoEmbedWhere, autoEmbedInput } from '../embedder'; +const usage = + '\nplatform-agent-resource-chunk \n\nCommands:\n list List platformAgentResourceChunk records\n find-first Find first matching platformAgentResourceChunk record\n search Search platformAgentResourceChunk records\n get Get a platformAgentResourceChunk by ID\n create Create a new platformAgentResourceChunk\n update Update an existing platformAgentResourceChunk\n\nCreate/Update Options:\n --auto-embed Convert text values in vector fields to embeddings before saving\n delete Delete a platformAgentResourceChunk\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\nSearch Options:\n Search query string (required)\n --limit Max number of records to return\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --orderBy Comma-separated list of ordering values\n --auto-embed Convert text queries to vectors via configured embedder\n\nEmbedding Options (for --auto-embed):\n Set EMBEDDER_PROVIDER=ollama to enable text-to-vector embedding.\n Optional: EMBEDDER_MODEL (default: nomic-embed-text)\n Optional: EMBEDDER_BASE_URL (default: http://localhost:11434)\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', 'search', '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 'search': + return handleSearch(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 = { + body: true, + chunkIndex: true, + createdAt: true, + embedding: true, + id: true, + metadata: true, + platformAgentResourceId: true, + updatedAt: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs< + PlatformAgentResourceChunkSelect, + PlatformAgentResourceChunkFilter, + PlatformAgentResourceChunkOrderBy + > & { + select: PlatformAgentResourceChunkSelect; + } + >(argv, defaultSelect); + if (argv['auto-embed']) { + const embedder = resolveEmbedder(); + if (!embedder) { + console.error( + '--auto-embed requires an embedder. Set EMBEDDER_PROVIDER=ollama (and optionally EMBEDDER_MODEL, EMBEDDER_BASE_URL).' + ); + process.exit(1); + } + findManyArgs.where = await autoEmbedWhere(findManyArgs.where ?? {}, ['embedding'], embedder); + } + const client = getClient(); + const result = await client.platformAgentResourceChunk.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 = { + body: true, + chunkIndex: true, + createdAt: true, + embedding: true, + id: true, + metadata: true, + platformAgentResourceId: true, + updatedAt: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs< + PlatformAgentResourceChunkSelect, + PlatformAgentResourceChunkFilter, + PlatformAgentResourceChunkOrderBy + > & { + select: PlatformAgentResourceChunkSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformAgentResourceChunk.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 handleSearch(argv: Partial>, _prompter: Inquirerer) { + try { + const query = Array.isArray(argv._) && argv._.length > 0 ? String(argv._[0]) : undefined; + if (!query) { + console.error('Error: search requires a argument'); + process.exit(1); + } + const searchWhere = { + embedding: { + vector: query, + }, + }; + if (argv['auto-embed']) { + const embedder = resolveEmbedder(); + if (!embedder) { + console.error( + '--auto-embed requires an embedder. Set EMBEDDER_PROVIDER=ollama (and optionally EMBEDDER_MODEL, EMBEDDER_BASE_URL).' + ); + process.exit(1); + } + await autoEmbedWhere(searchWhere ?? {}, ['embedding'], embedder); + } + const defaultSelect = { + body: true, + chunkIndex: true, + createdAt: true, + embedding: true, + id: true, + metadata: true, + platformAgentResourceId: true, + updatedAt: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs< + PlatformAgentResourceChunkSelect, + PlatformAgentResourceChunkFilter, + PlatformAgentResourceChunkOrderBy + > & { + select: PlatformAgentResourceChunkSelect; + } + >(argv, defaultSelect, searchWhere); + const client = getClient(); + const result = await client.platformAgentResourceChunk.findMany(findManyArgs).execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to search records.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleGet(argv: Partial>, prompter: Inquirerer) { + try { + const answers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + ]); + const client = getClient(); + const result = await client.platformAgentResourceChunk + .findOne({ + id: answers.id as string, + select: { + body: true, + chunkIndex: true, + createdAt: true, + embedding: true, + id: true, + metadata: true, + platformAgentResourceId: 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: 'body', + message: 'body', + required: true, + }, + { + type: 'text', + name: 'chunkIndex', + message: 'chunkIndex', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'embedding', + message: 'embedding', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'metadata', + message: 'metadata', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'platformAgentResourceId', + message: 'platformAgentResourceId', + required: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreatePlatformAgentResourceChunkInput['platformAgentResourceChunk']; + if (argv['auto-embed']) { + const embedder = resolveEmbedder(); + if (!embedder) { + console.error( + '--auto-embed requires an embedder. Set EMBEDDER_PROVIDER=ollama (and optionally EMBEDDER_MODEL, EMBEDDER_BASE_URL).' + ); + process.exit(1); + } + await autoEmbedInput(cleanedData, ['embedding'], embedder); + } + const client = getClient(); + const result = await client.platformAgentResourceChunk + .create({ + data: { + body: cleanedData.body, + chunkIndex: cleanedData.chunkIndex, + embedding: cleanedData.embedding, + metadata: cleanedData.metadata, + platformAgentResourceId: cleanedData.platformAgentResourceId, + }, + select: { + body: true, + chunkIndex: true, + createdAt: true, + embedding: true, + id: true, + metadata: true, + platformAgentResourceId: 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: 'body', + message: 'body', + required: false, + }, + { + type: 'text', + name: 'chunkIndex', + message: 'chunkIndex', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'embedding', + message: 'embedding', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'metadata', + message: 'metadata', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'platformAgentResourceId', + message: 'platformAgentResourceId', + required: false, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as PlatformAgentResourceChunkPatch; + if (argv['auto-embed']) { + const embedder = resolveEmbedder(); + if (!embedder) { + console.error( + '--auto-embed requires an embedder. Set EMBEDDER_PROVIDER=ollama (and optionally EMBEDDER_MODEL, EMBEDDER_BASE_URL).' + ); + process.exit(1); + } + await autoEmbedInput(cleanedData, ['embedding'], embedder); + } + const client = getClient(); + const result = await client.platformAgentResourceChunk + .update({ + where: { + id: answers.id as string, + }, + data: { + body: cleanedData.body, + chunkIndex: cleanedData.chunkIndex, + embedding: cleanedData.embedding, + metadata: cleanedData.metadata, + platformAgentResourceId: cleanedData.platformAgentResourceId, + }, + select: { + body: true, + chunkIndex: true, + createdAt: true, + embedding: true, + id: true, + metadata: true, + platformAgentResourceId: 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.platformAgentResourceChunk + .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/agent/cli/commands/platform-agent-resource.ts b/sdk/constructive-cli/src/agent/cli/commands/platform-agent-resource.ts new file mode 100644 index 0000000000..404dbea326 --- /dev/null +++ b/sdk/constructive-cli/src/agent/cli/commands/platform-agent-resource.ts @@ -0,0 +1,698 @@ +/** + * CLI commands for PlatformAgentResource + * @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 { + CreatePlatformAgentResourceInput, + PlatformAgentResourcePatch, + PlatformAgentResourceSelect, + PlatformAgentResourceFilter, + PlatformAgentResourceOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + archivedAt: 'string', + body: 'string', + bodyTrgmSimilarity: 'float', + createdAt: 'string', + createdBy: 'uuid', + createdByPrincipal: 'uuid', + description: 'string', + descriptionTrgmSimilarity: 'float', + embedding: 'string', + embeddingUpdatedAt: 'string', + embeddingVectorDistance: 'float', + id: 'uuid', + isActive: 'boolean', + isArchived: 'boolean', + keywords: 'string', + kind: 'string', + kindTrgmSimilarity: 'float', + metadata: 'json', + search: 'string', + searchScore: 'float', + searchTsvRank: 'float', + slug: 'string', + title: 'string', + titleTrgmSimilarity: 'float', + updatedAt: 'string', + updatedBy: 'uuid', + updatedByPrincipal: 'uuid', +}; +import { resolveEmbedder, autoEmbedWhere, autoEmbedInput } from '../embedder'; +const usage = + '\nplatform-agent-resource \n\nCommands:\n list List platformAgentResource records\n find-first Find first matching platformAgentResource record\n search Search platformAgentResource records\n get Get a platformAgentResource by ID\n create Create a new platformAgentResource\n update Update an existing platformAgentResource\n\nCreate/Update Options:\n --auto-embed Convert text values in vector fields to embeddings before saving\n delete Delete a platformAgentResource\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\nSearch Options:\n Search query string (required)\n --limit Max number of records to return\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --orderBy Comma-separated list of ordering values\n --auto-embed Convert text queries to vectors via configured embedder\n\nEmbedding Options (for --auto-embed):\n Set EMBEDDER_PROVIDER=ollama to enable text-to-vector embedding.\n Optional: EMBEDDER_MODEL (default: nomic-embed-text)\n Optional: EMBEDDER_BASE_URL (default: http://localhost:11434)\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', 'search', '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 'search': + return handleSearch(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 = { + archivedAt: true, + body: true, + createdAt: true, + createdBy: true, + createdByPrincipal: true, + description: true, + embedding: true, + id: true, + isActive: true, + isArchived: true, + keywords: true, + kind: true, + metadata: true, + slug: true, + title: true, + updatedAt: true, + updatedBy: true, + updatedByPrincipal: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs< + PlatformAgentResourceSelect, + PlatformAgentResourceFilter, + PlatformAgentResourceOrderBy + > & { + select: PlatformAgentResourceSelect; + } + >(argv, defaultSelect); + if (argv['auto-embed']) { + const embedder = resolveEmbedder(); + if (!embedder) { + console.error( + '--auto-embed requires an embedder. Set EMBEDDER_PROVIDER=ollama (and optionally EMBEDDER_MODEL, EMBEDDER_BASE_URL).' + ); + process.exit(1); + } + findManyArgs.where = await autoEmbedWhere(findManyArgs.where ?? {}, ['embedding'], embedder); + } + const client = getClient(); + const result = await client.platformAgentResource.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 = { + archivedAt: true, + body: true, + createdAt: true, + createdBy: true, + createdByPrincipal: true, + description: true, + embedding: true, + id: true, + isActive: true, + isArchived: true, + keywords: true, + kind: true, + metadata: true, + slug: true, + title: true, + updatedAt: true, + updatedBy: true, + updatedByPrincipal: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs< + PlatformAgentResourceSelect, + PlatformAgentResourceFilter, + PlatformAgentResourceOrderBy + > & { + select: PlatformAgentResourceSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformAgentResource.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 handleSearch(argv: Partial>, _prompter: Inquirerer) { + try { + const query = Array.isArray(argv._) && argv._.length > 0 ? String(argv._[0]) : undefined; + if (!query) { + console.error('Error: search requires a argument'); + process.exit(1); + } + const searchWhere = { + embedding: { + vector: query, + }, + trgmBody: { + value: query, + threshold: 0.3, + }, + trgmDescription: { + value: query, + threshold: 0.3, + }, + trgmKind: { + value: query, + threshold: 0.3, + }, + search: { + query, + }, + trgmTitle: { + value: query, + threshold: 0.3, + }, + }; + if (argv['auto-embed']) { + const embedder = resolveEmbedder(); + if (!embedder) { + console.error( + '--auto-embed requires an embedder. Set EMBEDDER_PROVIDER=ollama (and optionally EMBEDDER_MODEL, EMBEDDER_BASE_URL).' + ); + process.exit(1); + } + await autoEmbedWhere(searchWhere ?? {}, ['embedding'], embedder); + } + const defaultSelect = { + archivedAt: true, + body: true, + createdAt: true, + createdBy: true, + createdByPrincipal: true, + description: true, + embedding: true, + id: true, + isActive: true, + isArchived: true, + keywords: true, + kind: true, + metadata: true, + slug: true, + title: true, + updatedAt: true, + updatedBy: true, + updatedByPrincipal: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs< + PlatformAgentResourceSelect, + PlatformAgentResourceFilter, + PlatformAgentResourceOrderBy + > & { + select: PlatformAgentResourceSelect; + } + >(argv, defaultSelect, searchWhere); + const client = getClient(); + const result = await client.platformAgentResource.findMany(findManyArgs).execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to search records.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleGet(argv: Partial>, prompter: Inquirerer) { + try { + const answers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + ]); + const client = getClient(); + const result = await client.platformAgentResource + .findOne({ + id: answers.id as string, + select: { + archivedAt: true, + body: true, + createdAt: true, + createdBy: true, + createdByPrincipal: true, + description: true, + embedding: true, + id: true, + isActive: true, + isArchived: true, + keywords: true, + kind: true, + metadata: true, + slug: true, + title: true, + updatedAt: true, + updatedBy: true, + updatedByPrincipal: 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: 'archivedAt', + message: 'archivedAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'body', + message: 'body', + required: true, + }, + { + type: 'text', + name: 'createdBy', + message: 'createdBy', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'description', + message: 'description', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'embedding', + message: 'embedding', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'isActive', + message: 'isActive', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'isArchived', + message: 'isArchived', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'keywords', + message: 'keywords', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'kind', + message: 'kind', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'metadata', + message: 'metadata', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'slug', + message: 'slug', + required: true, + }, + { + type: 'text', + name: 'title', + message: 'title', + required: true, + }, + { + type: 'text', + name: 'updatedBy', + message: 'updatedBy', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreatePlatformAgentResourceInput['platformAgentResource']; + if (argv['auto-embed']) { + const embedder = resolveEmbedder(); + if (!embedder) { + console.error( + '--auto-embed requires an embedder. Set EMBEDDER_PROVIDER=ollama (and optionally EMBEDDER_MODEL, EMBEDDER_BASE_URL).' + ); + process.exit(1); + } + await autoEmbedInput(cleanedData, ['embedding'], embedder); + } + const client = getClient(); + const result = await client.platformAgentResource + .create({ + data: { + archivedAt: cleanedData.archivedAt, + body: cleanedData.body, + createdBy: cleanedData.createdBy, + createdByPrincipal: cleanedData.createdByPrincipal, + description: cleanedData.description, + embedding: cleanedData.embedding, + isActive: cleanedData.isActive, + isArchived: cleanedData.isArchived, + keywords: cleanedData.keywords, + kind: cleanedData.kind, + metadata: cleanedData.metadata, + slug: cleanedData.slug, + title: cleanedData.title, + updatedBy: cleanedData.updatedBy, + updatedByPrincipal: cleanedData.updatedByPrincipal, + }, + select: { + archivedAt: true, + body: true, + createdAt: true, + createdBy: true, + createdByPrincipal: true, + description: true, + embedding: true, + id: true, + isActive: true, + isArchived: true, + keywords: true, + kind: true, + metadata: true, + slug: true, + title: true, + updatedAt: true, + updatedBy: true, + updatedByPrincipal: 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: 'archivedAt', + message: 'archivedAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'body', + message: 'body', + required: false, + }, + { + type: 'text', + name: 'createdBy', + message: 'createdBy', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'description', + message: 'description', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'embedding', + message: 'embedding', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'isActive', + message: 'isActive', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'isArchived', + message: 'isArchived', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'keywords', + message: 'keywords', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'kind', + message: 'kind', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'metadata', + message: 'metadata', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'slug', + message: 'slug', + required: false, + }, + { + type: 'text', + name: 'title', + message: 'title', + required: false, + }, + { + type: 'text', + name: 'updatedBy', + message: 'updatedBy', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as PlatformAgentResourcePatch; + if (argv['auto-embed']) { + const embedder = resolveEmbedder(); + if (!embedder) { + console.error( + '--auto-embed requires an embedder. Set EMBEDDER_PROVIDER=ollama (and optionally EMBEDDER_MODEL, EMBEDDER_BASE_URL).' + ); + process.exit(1); + } + await autoEmbedInput(cleanedData, ['embedding'], embedder); + } + const client = getClient(); + const result = await client.platformAgentResource + .update({ + where: { + id: answers.id as string, + }, + data: { + archivedAt: cleanedData.archivedAt, + body: cleanedData.body, + createdBy: cleanedData.createdBy, + createdByPrincipal: cleanedData.createdByPrincipal, + description: cleanedData.description, + embedding: cleanedData.embedding, + isActive: cleanedData.isActive, + isArchived: cleanedData.isArchived, + keywords: cleanedData.keywords, + kind: cleanedData.kind, + metadata: cleanedData.metadata, + slug: cleanedData.slug, + title: cleanedData.title, + updatedBy: cleanedData.updatedBy, + updatedByPrincipal: cleanedData.updatedByPrincipal, + }, + select: { + archivedAt: true, + body: true, + createdAt: true, + createdBy: true, + createdByPrincipal: true, + description: true, + embedding: true, + id: true, + isActive: true, + isArchived: true, + keywords: true, + kind: true, + metadata: true, + slug: true, + title: true, + updatedAt: true, + updatedBy: true, + updatedByPrincipal: 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.platformAgentResource + .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/agent/cli/commands/platform-agent-run-workspace.ts b/sdk/constructive-cli/src/agent/cli/commands/platform-agent-run-workspace.ts new file mode 100644 index 0000000000..ac90a979d3 --- /dev/null +++ b/sdk/constructive-cli/src/agent/cli/commands/platform-agent-run-workspace.ts @@ -0,0 +1,593 @@ +/** + * CLI commands for PlatformAgentRunWorkspace + * @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 { + CreatePlatformAgentRunWorkspaceInput, + PlatformAgentRunWorkspacePatch, + PlatformAgentRunWorkspaceSelect, + PlatformAgentRunWorkspaceFilter, + PlatformAgentRunWorkspaceOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + actorId: 'uuid', + artifacts: 'json', + baseBranch: 'string', + baseCommit: 'string', + branch: 'string', + clonedAt: 'string', + createdAt: 'string', + headCommit: 'string', + id: 'uuid', + lastUsedAt: 'string', + ordinal: 'int', + provider: 'string', + publication: 'string', + repo: 'string', + repositoryId: 'uuid', + runId: 'uuid', + state: 'string', + updatedAt: 'string', + visibility: 'string', +}; +const usage = + '\nplatform-agent-run-workspace \n\nCommands:\n list List platformAgentRunWorkspace records\n find-first Find first matching platformAgentRunWorkspace record\n get Get a platformAgentRunWorkspace by ID\n create Create a new platformAgentRunWorkspace\n update Update an existing platformAgentRunWorkspace\n delete Delete a platformAgentRunWorkspace\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 = { + actorId: true, + artifacts: true, + baseBranch: true, + baseCommit: true, + branch: true, + clonedAt: true, + createdAt: true, + headCommit: true, + id: true, + lastUsedAt: true, + ordinal: true, + provider: true, + publication: true, + repo: true, + repositoryId: true, + runId: true, + state: true, + updatedAt: true, + visibility: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs< + PlatformAgentRunWorkspaceSelect, + PlatformAgentRunWorkspaceFilter, + PlatformAgentRunWorkspaceOrderBy + > & { + select: PlatformAgentRunWorkspaceSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformAgentRunWorkspace.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 = { + actorId: true, + artifacts: true, + baseBranch: true, + baseCommit: true, + branch: true, + clonedAt: true, + createdAt: true, + headCommit: true, + id: true, + lastUsedAt: true, + ordinal: true, + provider: true, + publication: true, + repo: true, + repositoryId: true, + runId: true, + state: true, + updatedAt: true, + visibility: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs< + PlatformAgentRunWorkspaceSelect, + PlatformAgentRunWorkspaceFilter, + PlatformAgentRunWorkspaceOrderBy + > & { + select: PlatformAgentRunWorkspaceSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformAgentRunWorkspace.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.platformAgentRunWorkspace + .findOne({ + id: answers.id as string, + select: { + actorId: true, + artifacts: true, + baseBranch: true, + baseCommit: true, + branch: true, + clonedAt: true, + createdAt: true, + headCommit: true, + id: true, + lastUsedAt: true, + ordinal: true, + provider: true, + publication: true, + repo: true, + repositoryId: true, + runId: true, + state: true, + updatedAt: true, + visibility: 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: 'actorId', + message: 'actorId', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'artifacts', + message: 'artifacts', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'baseBranch', + message: 'baseBranch', + required: true, + }, + { + type: 'text', + name: 'baseCommit', + message: 'baseCommit', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'branch', + message: 'branch', + required: true, + }, + { + type: 'text', + name: 'clonedAt', + message: 'clonedAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'headCommit', + message: 'headCommit', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'lastUsedAt', + message: 'lastUsedAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'ordinal', + message: 'ordinal', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'provider', + message: 'provider', + required: true, + }, + { + type: 'text', + name: 'publication', + message: 'publication', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'repo', + message: 'repo', + required: true, + }, + { + type: 'text', + name: 'repositoryId', + message: 'repositoryId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'runId', + message: 'runId', + required: true, + }, + { + type: 'text', + name: 'state', + message: 'state', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'visibility', + message: 'visibility', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreatePlatformAgentRunWorkspaceInput['platformAgentRunWorkspace']; + const client = getClient(); + const result = await client.platformAgentRunWorkspace + .create({ + data: { + actorId: cleanedData.actorId, + artifacts: cleanedData.artifacts, + baseBranch: cleanedData.baseBranch, + baseCommit: cleanedData.baseCommit, + branch: cleanedData.branch, + clonedAt: cleanedData.clonedAt, + headCommit: cleanedData.headCommit, + lastUsedAt: cleanedData.lastUsedAt, + ordinal: cleanedData.ordinal, + provider: cleanedData.provider, + publication: cleanedData.publication, + repo: cleanedData.repo, + repositoryId: cleanedData.repositoryId, + runId: cleanedData.runId, + state: cleanedData.state, + visibility: cleanedData.visibility, + }, + select: { + actorId: true, + artifacts: true, + baseBranch: true, + baseCommit: true, + branch: true, + clonedAt: true, + createdAt: true, + headCommit: true, + id: true, + lastUsedAt: true, + ordinal: true, + provider: true, + publication: true, + repo: true, + repositoryId: true, + runId: true, + state: true, + updatedAt: true, + visibility: 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: 'actorId', + message: 'actorId', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'artifacts', + message: 'artifacts', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'baseBranch', + message: 'baseBranch', + required: false, + }, + { + type: 'text', + name: 'baseCommit', + message: 'baseCommit', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'branch', + message: 'branch', + required: false, + }, + { + type: 'text', + name: 'clonedAt', + message: 'clonedAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'headCommit', + message: 'headCommit', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'lastUsedAt', + message: 'lastUsedAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'ordinal', + message: 'ordinal', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'provider', + message: 'provider', + required: false, + }, + { + type: 'text', + name: 'publication', + message: 'publication', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'repo', + message: 'repo', + required: false, + }, + { + type: 'text', + name: 'repositoryId', + message: 'repositoryId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'runId', + message: 'runId', + required: false, + }, + { + type: 'text', + name: 'state', + message: 'state', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'visibility', + message: 'visibility', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as PlatformAgentRunWorkspacePatch; + const client = getClient(); + const result = await client.platformAgentRunWorkspace + .update({ + where: { + id: answers.id as string, + }, + data: { + actorId: cleanedData.actorId, + artifacts: cleanedData.artifacts, + baseBranch: cleanedData.baseBranch, + baseCommit: cleanedData.baseCommit, + branch: cleanedData.branch, + clonedAt: cleanedData.clonedAt, + headCommit: cleanedData.headCommit, + lastUsedAt: cleanedData.lastUsedAt, + ordinal: cleanedData.ordinal, + provider: cleanedData.provider, + publication: cleanedData.publication, + repo: cleanedData.repo, + repositoryId: cleanedData.repositoryId, + runId: cleanedData.runId, + state: cleanedData.state, + visibility: cleanedData.visibility, + }, + select: { + actorId: true, + artifacts: true, + baseBranch: true, + baseCommit: true, + branch: true, + clonedAt: true, + createdAt: true, + headCommit: true, + id: true, + lastUsedAt: true, + ordinal: true, + provider: true, + publication: true, + repo: true, + repositoryId: true, + runId: true, + state: true, + updatedAt: true, + visibility: 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.platformAgentRunWorkspace + .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/agent/cli/commands/platform-agent-run.ts b/sdk/constructive-cli/src/agent/cli/commands/platform-agent-run.ts new file mode 100644 index 0000000000..08c609fee8 --- /dev/null +++ b/sdk/constructive-cli/src/agent/cli/commands/platform-agent-run.ts @@ -0,0 +1,747 @@ +/** + * CLI commands for PlatformAgentRun + * @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 { + CreatePlatformAgentRunInput, + PlatformAgentRunPatch, + PlatformAgentRunSelect, + PlatformAgentRunFilter, + PlatformAgentRunOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + actorId: 'uuid', + artifacts: 'json', + attempt: 'int', + baseCommit: 'string', + branch: 'string', + createdAt: 'string', + databaseId: 'uuid', + deadlineAt: 'string', + entityId: 'uuid', + error: 'string', + executionId: 'uuid', + finishedAt: 'string', + headCommit: 'string', + id: 'uuid', + lastEventSeq: 'int', + parentRunId: 'uuid', + placement: 'string', + principalId: 'uuid', + repoUrl: 'string', + startedAt: 'string', + status: 'string', + threadId: 'uuid', + tokenUsage: 'json', + totalCost: 'string', + updatedAt: 'string', + visibility: 'string', +}; +const usage = + '\nplatform-agent-run \n\nCommands:\n list List platformAgentRun records\n find-first Find first matching platformAgentRun record\n get Get a platformAgentRun by ID\n create Create a new platformAgentRun\n update Update an existing platformAgentRun\n delete Delete a platformAgentRun\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 = { + actorId: true, + artifacts: true, + attempt: true, + baseCommit: true, + branch: true, + createdAt: true, + databaseId: true, + deadlineAt: true, + entityId: true, + error: true, + executionId: true, + finishedAt: true, + headCommit: true, + id: true, + lastEventSeq: true, + parentRunId: true, + placement: true, + principalId: true, + repoUrl: true, + startedAt: true, + status: true, + threadId: true, + tokenUsage: true, + totalCost: true, + updatedAt: true, + visibility: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: PlatformAgentRunSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformAgentRun.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 = { + actorId: true, + artifacts: true, + attempt: true, + baseCommit: true, + branch: true, + createdAt: true, + databaseId: true, + deadlineAt: true, + entityId: true, + error: true, + executionId: true, + finishedAt: true, + headCommit: true, + id: true, + lastEventSeq: true, + parentRunId: true, + placement: true, + principalId: true, + repoUrl: true, + startedAt: true, + status: true, + threadId: true, + tokenUsage: true, + totalCost: true, + updatedAt: true, + visibility: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: PlatformAgentRunSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformAgentRun.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.platformAgentRun + .findOne({ + id: answers.id as string, + select: { + actorId: true, + artifacts: true, + attempt: true, + baseCommit: true, + branch: true, + createdAt: true, + databaseId: true, + deadlineAt: true, + entityId: true, + error: true, + executionId: true, + finishedAt: true, + headCommit: true, + id: true, + lastEventSeq: true, + parentRunId: true, + placement: true, + principalId: true, + repoUrl: true, + startedAt: true, + status: true, + threadId: true, + tokenUsage: true, + totalCost: true, + updatedAt: true, + visibility: 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: 'actorId', + message: 'actorId', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'artifacts', + message: 'artifacts', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'attempt', + message: 'attempt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'baseCommit', + message: 'baseCommit', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'branch', + message: 'branch', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'deadlineAt', + message: 'deadlineAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'entityId', + message: 'entityId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'error', + message: 'error', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'executionId', + message: 'executionId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'finishedAt', + message: 'finishedAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'headCommit', + message: 'headCommit', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'lastEventSeq', + message: 'lastEventSeq', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'parentRunId', + message: 'parentRunId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'placement', + message: 'placement', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'principalId', + message: 'principalId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'repoUrl', + message: 'repoUrl', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'startedAt', + message: 'startedAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'status', + message: 'status', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'threadId', + message: 'threadId', + required: true, + }, + { + type: 'json', + name: 'tokenUsage', + message: 'tokenUsage', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'totalCost', + message: 'totalCost', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'visibility', + message: 'visibility', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreatePlatformAgentRunInput['platformAgentRun']; + const client = getClient(); + const result = await client.platformAgentRun + .create({ + data: { + actorId: cleanedData.actorId, + artifacts: cleanedData.artifacts, + attempt: cleanedData.attempt, + baseCommit: cleanedData.baseCommit, + branch: cleanedData.branch, + databaseId: cleanedData.databaseId, + deadlineAt: cleanedData.deadlineAt, + entityId: cleanedData.entityId, + error: cleanedData.error, + executionId: cleanedData.executionId, + finishedAt: cleanedData.finishedAt, + headCommit: cleanedData.headCommit, + lastEventSeq: cleanedData.lastEventSeq, + parentRunId: cleanedData.parentRunId, + placement: cleanedData.placement, + principalId: cleanedData.principalId, + repoUrl: cleanedData.repoUrl, + startedAt: cleanedData.startedAt, + status: cleanedData.status, + threadId: cleanedData.threadId, + tokenUsage: cleanedData.tokenUsage, + totalCost: cleanedData.totalCost, + visibility: cleanedData.visibility, + }, + select: { + actorId: true, + artifacts: true, + attempt: true, + baseCommit: true, + branch: true, + createdAt: true, + databaseId: true, + deadlineAt: true, + entityId: true, + error: true, + executionId: true, + finishedAt: true, + headCommit: true, + id: true, + lastEventSeq: true, + parentRunId: true, + placement: true, + principalId: true, + repoUrl: true, + startedAt: true, + status: true, + threadId: true, + tokenUsage: true, + totalCost: true, + updatedAt: true, + visibility: 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: 'actorId', + message: 'actorId', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'artifacts', + message: 'artifacts', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'attempt', + message: 'attempt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'baseCommit', + message: 'baseCommit', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'branch', + message: 'branch', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'deadlineAt', + message: 'deadlineAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'entityId', + message: 'entityId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'error', + message: 'error', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'executionId', + message: 'executionId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'finishedAt', + message: 'finishedAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'headCommit', + message: 'headCommit', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'lastEventSeq', + message: 'lastEventSeq', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'parentRunId', + message: 'parentRunId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'placement', + message: 'placement', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'principalId', + message: 'principalId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'repoUrl', + message: 'repoUrl', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'startedAt', + message: 'startedAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'status', + message: 'status', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'threadId', + message: 'threadId', + required: false, + }, + { + type: 'json', + name: 'tokenUsage', + message: 'tokenUsage', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'totalCost', + message: 'totalCost', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'visibility', + message: 'visibility', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as PlatformAgentRunPatch; + const client = getClient(); + const result = await client.platformAgentRun + .update({ + where: { + id: answers.id as string, + }, + data: { + actorId: cleanedData.actorId, + artifacts: cleanedData.artifacts, + attempt: cleanedData.attempt, + baseCommit: cleanedData.baseCommit, + branch: cleanedData.branch, + databaseId: cleanedData.databaseId, + deadlineAt: cleanedData.deadlineAt, + entityId: cleanedData.entityId, + error: cleanedData.error, + executionId: cleanedData.executionId, + finishedAt: cleanedData.finishedAt, + headCommit: cleanedData.headCommit, + lastEventSeq: cleanedData.lastEventSeq, + parentRunId: cleanedData.parentRunId, + placement: cleanedData.placement, + principalId: cleanedData.principalId, + repoUrl: cleanedData.repoUrl, + startedAt: cleanedData.startedAt, + status: cleanedData.status, + threadId: cleanedData.threadId, + tokenUsage: cleanedData.tokenUsage, + totalCost: cleanedData.totalCost, + visibility: cleanedData.visibility, + }, + select: { + actorId: true, + artifacts: true, + attempt: true, + baseCommit: true, + branch: true, + createdAt: true, + databaseId: true, + deadlineAt: true, + entityId: true, + error: true, + executionId: true, + finishedAt: true, + headCommit: true, + id: true, + lastEventSeq: true, + parentRunId: true, + placement: true, + principalId: true, + repoUrl: true, + startedAt: true, + status: true, + threadId: true, + tokenUsage: true, + totalCost: true, + updatedAt: true, + visibility: 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.platformAgentRun + .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/agent/cli/commands/platform-agent-task.ts b/sdk/constructive-cli/src/agent/cli/commands/platform-agent-task.ts new file mode 100644 index 0000000000..7e2cb758ab --- /dev/null +++ b/sdk/constructive-cli/src/agent/cli/commands/platform-agent-task.ts @@ -0,0 +1,525 @@ +/** + * CLI commands for PlatformAgentTask + * @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 { + CreatePlatformAgentTaskInput, + PlatformAgentTaskPatch, + PlatformAgentTaskSelect, + PlatformAgentTaskFilter, + PlatformAgentTaskOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + actorId: 'uuid', + approvalFeedback: 'string', + approvalStatus: 'string', + approvedAt: 'string', + approvedBy: 'uuid', + createdAt: 'string', + description: 'string', + error: 'string', + id: 'uuid', + orderIndex: 'int', + planId: 'uuid', + requiresApproval: 'boolean', + source: 'string', + status: 'string', + updatedAt: 'string', + visibility: 'string', +}; +const usage = + '\nplatform-agent-task \n\nCommands:\n list List platformAgentTask records\n find-first Find first matching platformAgentTask record\n get Get a platformAgentTask by ID\n create Create a new platformAgentTask\n update Update an existing platformAgentTask\n delete Delete a platformAgentTask\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 = { + actorId: true, + approvalFeedback: true, + approvalStatus: true, + approvedAt: true, + approvedBy: true, + createdAt: true, + description: true, + error: true, + id: true, + orderIndex: true, + planId: true, + requiresApproval: true, + source: true, + status: true, + updatedAt: true, + visibility: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: PlatformAgentTaskSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformAgentTask.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 = { + actorId: true, + approvalFeedback: true, + approvalStatus: true, + approvedAt: true, + approvedBy: true, + createdAt: true, + description: true, + error: true, + id: true, + orderIndex: true, + planId: true, + requiresApproval: true, + source: true, + status: true, + updatedAt: true, + visibility: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: PlatformAgentTaskSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformAgentTask.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.platformAgentTask + .findOne({ + id: answers.id as string, + select: { + actorId: true, + approvalFeedback: true, + approvalStatus: true, + approvedAt: true, + approvedBy: true, + createdAt: true, + description: true, + error: true, + id: true, + orderIndex: true, + planId: true, + requiresApproval: true, + source: true, + status: true, + updatedAt: true, + visibility: 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: 'actorId', + message: 'actorId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'approvalFeedback', + message: 'approvalFeedback', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'approvalStatus', + message: 'approvalStatus', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'approvedAt', + message: 'approvedAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'approvedBy', + message: 'approvedBy', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'description', + message: 'description', + required: true, + }, + { + type: 'text', + name: 'error', + message: 'error', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'orderIndex', + message: 'orderIndex', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'planId', + message: 'planId', + required: true, + }, + { + type: 'boolean', + name: 'requiresApproval', + message: 'requiresApproval', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'source', + message: 'source', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'status', + message: 'status', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'visibility', + message: 'visibility', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreatePlatformAgentTaskInput['platformAgentTask']; + const client = getClient(); + const result = await client.platformAgentTask + .create({ + data: { + actorId: cleanedData.actorId, + approvalFeedback: cleanedData.approvalFeedback, + approvalStatus: cleanedData.approvalStatus, + approvedAt: cleanedData.approvedAt, + approvedBy: cleanedData.approvedBy, + description: cleanedData.description, + error: cleanedData.error, + orderIndex: cleanedData.orderIndex, + planId: cleanedData.planId, + requiresApproval: cleanedData.requiresApproval, + source: cleanedData.source, + status: cleanedData.status, + visibility: cleanedData.visibility, + }, + select: { + actorId: true, + approvalFeedback: true, + approvalStatus: true, + approvedAt: true, + approvedBy: true, + createdAt: true, + description: true, + error: true, + id: true, + orderIndex: true, + planId: true, + requiresApproval: true, + source: true, + status: true, + updatedAt: true, + visibility: 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: 'actorId', + message: 'actorId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'approvalFeedback', + message: 'approvalFeedback', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'approvalStatus', + message: 'approvalStatus', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'approvedAt', + message: 'approvedAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'approvedBy', + message: 'approvedBy', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'description', + message: 'description', + required: false, + }, + { + type: 'text', + name: 'error', + message: 'error', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'orderIndex', + message: 'orderIndex', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'planId', + message: 'planId', + required: false, + }, + { + type: 'boolean', + name: 'requiresApproval', + message: 'requiresApproval', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'source', + message: 'source', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'status', + message: 'status', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'visibility', + message: 'visibility', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as PlatformAgentTaskPatch; + const client = getClient(); + const result = await client.platformAgentTask + .update({ + where: { + id: answers.id as string, + }, + data: { + actorId: cleanedData.actorId, + approvalFeedback: cleanedData.approvalFeedback, + approvalStatus: cleanedData.approvalStatus, + approvedAt: cleanedData.approvedAt, + approvedBy: cleanedData.approvedBy, + description: cleanedData.description, + error: cleanedData.error, + orderIndex: cleanedData.orderIndex, + planId: cleanedData.planId, + requiresApproval: cleanedData.requiresApproval, + source: cleanedData.source, + status: cleanedData.status, + visibility: cleanedData.visibility, + }, + select: { + actorId: true, + approvalFeedback: true, + approvalStatus: true, + approvedAt: true, + approvedBy: true, + createdAt: true, + description: true, + error: true, + id: true, + orderIndex: true, + planId: true, + requiresApproval: true, + source: true, + status: true, + updatedAt: true, + visibility: 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.platformAgentTask + .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/agent/cli/commands/platform-agent-thread.ts b/sdk/constructive-cli/src/agent/cli/commands/platform-agent-thread.ts new file mode 100644 index 0000000000..401a77ffb9 --- /dev/null +++ b/sdk/constructive-cli/src/agent/cli/commands/platform-agent-thread.ts @@ -0,0 +1,537 @@ +/** + * CLI commands for PlatformAgentThread + * @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 { + CreatePlatformAgentThreadInput, + PlatformAgentThreadPatch, + PlatformAgentThreadSelect, + PlatformAgentThreadFilter, + PlatformAgentThreadOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + agentId: 'uuid', + archivedAt: 'string', + createdAt: 'string', + id: 'uuid', + isArchived: 'boolean', + mode: 'string', + model: 'string', + ownerId: 'uuid', + parentThreadId: 'uuid', + promptTemplateId: 'uuid', + status: 'string', + systemPrompt: 'string', + tags: 'string', + title: 'string', + updatedAt: 'string', + visibility: 'string', +}; +const usage = + '\nplatform-agent-thread \n\nCommands:\n list List platformAgentThread records\n find-first Find first matching platformAgentThread record\n get Get a platformAgentThread by ID\n create Create a new platformAgentThread\n update Update an existing platformAgentThread\n delete Delete a platformAgentThread\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 = { + agentId: true, + archivedAt: true, + createdAt: true, + id: true, + isArchived: true, + mode: true, + model: true, + ownerId: true, + parentThreadId: true, + promptTemplateId: true, + status: true, + systemPrompt: true, + tags: true, + title: true, + updatedAt: true, + visibility: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs< + PlatformAgentThreadSelect, + PlatformAgentThreadFilter, + PlatformAgentThreadOrderBy + > & { + select: PlatformAgentThreadSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformAgentThread.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 = { + agentId: true, + archivedAt: true, + createdAt: true, + id: true, + isArchived: true, + mode: true, + model: true, + ownerId: true, + parentThreadId: true, + promptTemplateId: true, + status: true, + systemPrompt: true, + tags: true, + title: true, + updatedAt: true, + visibility: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs< + PlatformAgentThreadSelect, + PlatformAgentThreadFilter, + PlatformAgentThreadOrderBy + > & { + select: PlatformAgentThreadSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformAgentThread.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.platformAgentThread + .findOne({ + id: answers.id as string, + select: { + agentId: true, + archivedAt: true, + createdAt: true, + id: true, + isArchived: true, + mode: true, + model: true, + ownerId: true, + parentThreadId: true, + promptTemplateId: true, + status: true, + systemPrompt: true, + tags: true, + title: true, + updatedAt: true, + visibility: 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: 'agentId', + message: 'agentId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'archivedAt', + message: 'archivedAt', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'isArchived', + message: 'isArchived', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'mode', + message: 'mode', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'model', + message: 'model', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'ownerId', + message: 'ownerId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'parentThreadId', + message: 'parentThreadId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'promptTemplateId', + message: 'promptTemplateId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'status', + message: 'status', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'systemPrompt', + message: 'systemPrompt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'tags', + message: 'tags', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'title', + message: 'title', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'visibility', + message: 'visibility', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreatePlatformAgentThreadInput['platformAgentThread']; + const client = getClient(); + const result = await client.platformAgentThread + .create({ + data: { + agentId: cleanedData.agentId, + archivedAt: cleanedData.archivedAt, + isArchived: cleanedData.isArchived, + mode: cleanedData.mode, + model: cleanedData.model, + ownerId: cleanedData.ownerId, + parentThreadId: cleanedData.parentThreadId, + promptTemplateId: cleanedData.promptTemplateId, + status: cleanedData.status, + systemPrompt: cleanedData.systemPrompt, + tags: cleanedData.tags, + title: cleanedData.title, + visibility: cleanedData.visibility, + }, + select: { + agentId: true, + archivedAt: true, + createdAt: true, + id: true, + isArchived: true, + mode: true, + model: true, + ownerId: true, + parentThreadId: true, + promptTemplateId: true, + status: true, + systemPrompt: true, + tags: true, + title: true, + updatedAt: true, + visibility: 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: 'agentId', + message: 'agentId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'archivedAt', + message: 'archivedAt', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'isArchived', + message: 'isArchived', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'mode', + message: 'mode', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'model', + message: 'model', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'ownerId', + message: 'ownerId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'parentThreadId', + message: 'parentThreadId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'promptTemplateId', + message: 'promptTemplateId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'status', + message: 'status', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'systemPrompt', + message: 'systemPrompt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'tags', + message: 'tags', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'title', + message: 'title', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'visibility', + message: 'visibility', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as PlatformAgentThreadPatch; + const client = getClient(); + const result = await client.platformAgentThread + .update({ + where: { + id: answers.id as string, + }, + data: { + agentId: cleanedData.agentId, + archivedAt: cleanedData.archivedAt, + isArchived: cleanedData.isArchived, + mode: cleanedData.mode, + model: cleanedData.model, + ownerId: cleanedData.ownerId, + parentThreadId: cleanedData.parentThreadId, + promptTemplateId: cleanedData.promptTemplateId, + status: cleanedData.status, + systemPrompt: cleanedData.systemPrompt, + tags: cleanedData.tags, + title: cleanedData.title, + visibility: cleanedData.visibility, + }, + select: { + agentId: true, + archivedAt: true, + createdAt: true, + id: true, + isArchived: true, + mode: true, + model: true, + ownerId: true, + parentThreadId: true, + promptTemplateId: true, + status: true, + systemPrompt: true, + tags: true, + title: true, + updatedAt: true, + visibility: 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.platformAgentThread + .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/agent/cli/commands/platform-agent.ts b/sdk/constructive-cli/src/agent/cli/commands/platform-agent.ts new file mode 100644 index 0000000000..503f4d5c2b --- /dev/null +++ b/sdk/constructive-cli/src/agent/cli/commands/platform-agent.ts @@ -0,0 +1,417 @@ +/** + * CLI commands for PlatformAgent + * @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 { + CreatePlatformAgentInput, + PlatformAgentPatch, + PlatformAgentSelect, + PlatformAgentFilter, + PlatformAgentOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + config: 'json', + createdAt: 'string', + id: 'uuid', + isEphemeral: 'boolean', + name: 'string', + ownerId: 'uuid', + parentId: 'uuid', + personaId: 'uuid', + status: 'string', + systemPrompt: 'string', + updatedAt: 'string', +}; +const usage = + '\nplatform-agent \n\nCommands:\n list List platformAgent records\n find-first Find first matching platformAgent record\n get Get a platformAgent by ID\n create Create a new platformAgent\n update Update an existing platformAgent\n delete Delete a platformAgent\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 = { + config: true, + createdAt: true, + id: true, + isEphemeral: true, + name: true, + ownerId: true, + parentId: true, + personaId: true, + status: true, + systemPrompt: true, + updatedAt: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: PlatformAgentSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformAgent.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 = { + config: true, + createdAt: true, + id: true, + isEphemeral: true, + name: true, + ownerId: true, + parentId: true, + personaId: true, + status: true, + systemPrompt: true, + updatedAt: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: PlatformAgentSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformAgent.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.platformAgent + .findOne({ + id: answers.id as string, + select: { + config: true, + createdAt: true, + id: true, + isEphemeral: true, + name: true, + ownerId: true, + parentId: true, + personaId: true, + status: true, + systemPrompt: 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: 'json', + name: 'config', + message: 'config', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'isEphemeral', + message: 'isEphemeral', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'name', + message: 'name', + required: true, + }, + { + type: 'text', + name: 'ownerId', + message: 'ownerId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'parentId', + message: 'parentId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'personaId', + message: 'personaId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'status', + message: 'status', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'systemPrompt', + message: 'systemPrompt', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreatePlatformAgentInput['platformAgent']; + const client = getClient(); + const result = await client.platformAgent + .create({ + data: { + config: cleanedData.config, + isEphemeral: cleanedData.isEphemeral, + name: cleanedData.name, + ownerId: cleanedData.ownerId, + parentId: cleanedData.parentId, + personaId: cleanedData.personaId, + status: cleanedData.status, + systemPrompt: cleanedData.systemPrompt, + }, + select: { + config: true, + createdAt: true, + id: true, + isEphemeral: true, + name: true, + ownerId: true, + parentId: true, + personaId: true, + status: true, + systemPrompt: 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: 'json', + name: 'config', + message: 'config', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'isEphemeral', + message: 'isEphemeral', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'name', + message: 'name', + required: false, + }, + { + type: 'text', + name: 'ownerId', + message: 'ownerId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'parentId', + message: 'parentId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'personaId', + message: 'personaId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'status', + message: 'status', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'systemPrompt', + message: 'systemPrompt', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as PlatformAgentPatch; + const client = getClient(); + const result = await client.platformAgent + .update({ + where: { + id: answers.id as string, + }, + data: { + config: cleanedData.config, + isEphemeral: cleanedData.isEphemeral, + name: cleanedData.name, + ownerId: cleanedData.ownerId, + parentId: cleanedData.parentId, + personaId: cleanedData.personaId, + status: cleanedData.status, + systemPrompt: cleanedData.systemPrompt, + }, + select: { + config: true, + createdAt: true, + id: true, + isEphemeral: true, + name: true, + ownerId: true, + parentId: true, + personaId: true, + status: true, + systemPrompt: 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.platformAgent + .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/agent/cli/commands/provision-bucket.ts b/sdk/constructive-cli/src/agent/cli/commands/provision-bucket.ts index ecd2e539d5..0c54313d78 100644 --- a/sdk/constructive-cli/src/agent/cli/commands/provision-bucket.ts +++ b/sdk/constructive-cli/src/agent/cli/commands/provision-bucket.ts @@ -16,7 +16,7 @@ export default async ( try { if (argv.help || argv.h) { console.log( - '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\nUsage: provision-bucket [OPTIONS]\n' + 'provision-bucket - Reconcile an S3 bucket for a logical bucket in the database.\nReads the bucket config via RLS, then enqueues the same\nstorage:provision_bucket job used by the INSERT trigger. This is\nidempotent for an already-reconciled bucket; enqueue failures become\nGraphQL errors.\n\nUsage: provision-bucket [OPTIONS]\n' ); process.exit(0); } diff --git a/sdk/constructive-cli/src/agent/orm/README.md b/sdk/constructive-cli/src/agent/orm/README.md index d8403ed6ba..cbba8f46fe 100644 --- a/sdk/constructive-cli/src/agent/orm/README.md +++ b/sdk/constructive-cli/src/agent/orm/README.md @@ -30,6 +30,18 @@ const db = createClient({ | `agentResource` | findMany, findOne, create, update, delete | | `agentTask` | findMany, findOne, create, update, delete | | `agentThread` | findMany, findOne, create, update, delete | +| `platformAgent` | findMany, findOne, create, update, delete | +| `platformAgentEvent` | findMany, findOne, create, update, delete | +| `platformAgentMessage` | findMany, findOne, create, update, delete | +| `platformAgentPersona` | findMany, findOne, create, update, delete | +| `platformAgentPlan` | findMany, findOne, create, update, delete | +| `platformAgentPrompt` | findMany, findOne, create, update, delete | +| `platformAgentResourceChunk` | findMany, findOne, create, update, delete | +| `platformAgentResource` | findMany, findOne, create, update, delete | +| `platformAgentRun` | findMany, findOne, create, update, delete | +| `platformAgentRunWorkspace` | findMany, findOne, create, update, delete | +| `platformAgentTask` | findMany, findOne, create, update, delete | +| `platformAgentThread` | findMany, findOne, create, update, delete | ## Table Operations @@ -87,22 +99,24 @@ CRUD operations for AgentMessage records. | `createdAt` | Datetime | No | | `databaseId` | UUID | Yes | | `id` | UUID | No | +| `kind` | String | Yes | | `model` | String | Yes | | `parts` | JSON | Yes | | `threadId` | UUID | Yes | | `updatedAt` | Datetime | No | +| `visibility` | String | Yes | **Operations:** ```typescript // List all agentMessage records -const items = await db.agentMessage.findMany({ select: { actorId: true, agentId: true, authorRole: true, createdAt: true, databaseId: true, id: true, model: true, parts: true, threadId: true, updatedAt: true } }).execute(); +const items = await db.agentMessage.findMany({ select: { actorId: true, agentId: true, authorRole: true, createdAt: true, databaseId: true, id: true, kind: true, model: true, parts: true, threadId: true, updatedAt: true, visibility: true } }).execute(); // Get one by id -const item = await db.agentMessage.findOne({ id: '', select: { actorId: true, agentId: true, authorRole: true, createdAt: true, databaseId: true, id: true, model: true, parts: true, threadId: true, updatedAt: true } }).execute(); +const item = await db.agentMessage.findOne({ id: '', select: { actorId: true, agentId: true, authorRole: true, createdAt: true, databaseId: true, id: true, kind: true, model: true, parts: true, threadId: true, updatedAt: true, visibility: true } }).execute(); // Create -const created = await db.agentMessage.create({ data: { actorId: '', agentId: '', authorRole: '', databaseId: '', model: '', parts: '', threadId: '' }, select: { id: true } }).execute(); +const created = await db.agentMessage.create({ data: { actorId: '', agentId: '', authorRole: '', databaseId: '', kind: '', model: '', parts: '', threadId: '', visibility: '' }, select: { id: true } }).execute(); // Update const updated = await db.agentMessage.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); @@ -122,6 +136,7 @@ CRUD operations for AgentPersona records. | `config` | JSON | Yes | | `createdAt` | Datetime | No | | `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | | `databaseId` | UUID | Yes | | `description` | String | Yes | | `id` | UUID | No | @@ -132,18 +147,19 @@ CRUD operations for AgentPersona records. | `systemPrompt` | String | Yes | | `updatedAt` | Datetime | No | | `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | **Operations:** ```typescript // List all agentPersona records -const items = await db.agentPersona.findMany({ select: { config: true, createdAt: true, createdBy: true, databaseId: true, description: true, id: true, isActive: true, name: true, resources: true, slug: true, systemPrompt: true, updatedAt: true, updatedBy: true } }).execute(); +const items = await db.agentPersona.findMany({ select: { config: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, description: true, id: true, isActive: true, name: true, resources: true, slug: true, systemPrompt: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.agentPersona.findOne({ id: '', select: { config: true, createdAt: true, createdBy: true, databaseId: true, description: true, id: true, isActive: true, name: true, resources: true, slug: true, systemPrompt: true, updatedAt: true, updatedBy: true } }).execute(); +const item = await db.agentPersona.findOne({ id: '', select: { config: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, description: true, id: true, isActive: true, name: true, resources: true, slug: true, systemPrompt: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.agentPersona.create({ data: { config: '', createdBy: '', databaseId: '', description: '', isActive: '', name: '', resources: '', slug: '', systemPrompt: '', updatedBy: '' }, select: { id: true } }).execute(); +const created = await db.agentPersona.create({ data: { config: '', createdBy: '', createdByPrincipal: '', databaseId: '', description: '', isActive: '', name: '', resources: '', slug: '', systemPrompt: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update const updated = await db.agentPersona.update({ where: { id: '' }, data: { config: '' }, select: { id: true } }).execute(); @@ -169,18 +185,19 @@ CRUD operations for AgentPlan records. | `threadId` | UUID | Yes | | `title` | String | Yes | | `updatedAt` | Datetime | No | +| `visibility` | String | Yes | **Operations:** ```typescript // List all agentPlan records -const items = await db.agentPlan.findMany({ select: { createdAt: true, databaseId: true, description: true, id: true, ownerId: true, status: true, threadId: true, title: true, updatedAt: true } }).execute(); +const items = await db.agentPlan.findMany({ select: { createdAt: true, databaseId: true, description: true, id: true, ownerId: true, status: true, threadId: true, title: true, updatedAt: true, visibility: true } }).execute(); // Get one by id -const item = await db.agentPlan.findOne({ id: '', select: { createdAt: true, databaseId: true, description: true, id: true, ownerId: true, status: true, threadId: true, title: true, updatedAt: true } }).execute(); +const item = await db.agentPlan.findOne({ id: '', select: { createdAt: true, databaseId: true, description: true, id: true, ownerId: true, status: true, threadId: true, title: true, updatedAt: true, visibility: true } }).execute(); // Create -const created = await db.agentPlan.create({ data: { databaseId: '', description: '', ownerId: '', status: '', threadId: '', title: '' }, select: { id: true } }).execute(); +const created = await db.agentPlan.create({ data: { databaseId: '', description: '', ownerId: '', status: '', threadId: '', title: '', visibility: '' }, select: { id: true } }).execute(); // Update const updated = await db.agentPlan.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -200,6 +217,7 @@ CRUD operations for AgentPrompt records. | `content` | String | Yes | | `createdAt` | Datetime | No | | `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | | `databaseId` | UUID | Yes | | `description` | String | Yes | | `id` | UUID | No | @@ -208,18 +226,19 @@ CRUD operations for AgentPrompt records. | `name` | String | Yes | | `updatedAt` | Datetime | No | | `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | **Operations:** ```typescript // List all agentPrompt records -const items = await db.agentPrompt.findMany({ select: { content: true, createdAt: true, createdBy: true, databaseId: true, description: true, id: true, isDefault: true, metadata: true, name: true, updatedAt: true, updatedBy: true } }).execute(); +const items = await db.agentPrompt.findMany({ select: { content: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, description: true, id: true, isDefault: true, metadata: true, name: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.agentPrompt.findOne({ id: '', select: { content: true, createdAt: true, createdBy: true, databaseId: true, description: true, id: true, isDefault: true, metadata: true, name: true, updatedAt: true, updatedBy: true } }).execute(); +const item = await db.agentPrompt.findOne({ id: '', select: { content: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, description: true, id: true, isDefault: true, metadata: true, name: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.agentPrompt.create({ data: { content: '', createdBy: '', databaseId: '', description: '', isDefault: '', metadata: '', name: '', updatedBy: '' }, select: { id: true } }).execute(); +const created = await db.agentPrompt.create({ data: { content: '', createdBy: '', createdByPrincipal: '', databaseId: '', description: '', isDefault: '', metadata: '', name: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update const updated = await db.agentPrompt.update({ where: { id: '' }, data: { content: '' }, select: { id: true } }).execute(); @@ -240,6 +259,7 @@ CRUD operations for AgentResourceChunk records. | `body` | String | Yes | | `chunkIndex` | Int | Yes | | `createdAt` | Datetime | No | +| `databaseId` | UUID | Yes | | `embedding` | Vector | Yes | | `embeddingVectorDistance` | Float | Yes | | `id` | UUID | No | @@ -251,13 +271,13 @@ CRUD operations for AgentResourceChunk records. ```typescript // List all agentResourceChunk records -const items = await db.agentResourceChunk.findMany({ select: { agentResourceId: true, body: true, chunkIndex: true, createdAt: true, embedding: true, embeddingVectorDistance: true, id: true, metadata: true, searchScore: true, updatedAt: true } }).execute(); +const items = await db.agentResourceChunk.findMany({ select: { agentResourceId: true, body: true, chunkIndex: true, createdAt: true, databaseId: true, embedding: true, embeddingVectorDistance: true, id: true, metadata: true, searchScore: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.agentResourceChunk.findOne({ id: '', select: { agentResourceId: true, body: true, chunkIndex: true, createdAt: true, embedding: true, embeddingVectorDistance: true, id: true, metadata: true, searchScore: true, updatedAt: true } }).execute(); +const item = await db.agentResourceChunk.findOne({ id: '', select: { agentResourceId: true, body: true, chunkIndex: true, createdAt: true, databaseId: true, embedding: true, embeddingVectorDistance: true, id: true, metadata: true, searchScore: true, updatedAt: true } }).execute(); // Create -const created = await db.agentResourceChunk.create({ data: { agentResourceId: '', body: '', chunkIndex: '', embedding: '', embeddingVectorDistance: '', metadata: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.agentResourceChunk.create({ data: { agentResourceId: '', body: '', chunkIndex: '', databaseId: '', embedding: '', embeddingVectorDistance: '', metadata: '', searchScore: '' }, select: { id: true } }).execute(); // Update const updated = await db.agentResourceChunk.update({ where: { id: '' }, data: { agentResourceId: '' }, select: { id: true } }).execute(); @@ -282,6 +302,7 @@ CRUD operations for AgentResource records. | `bodyTrgmSimilarity` | Float | Yes | | `createdAt` | Datetime | No | | `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | | `databaseId` | UUID | Yes | | `description` | String | Yes | | `descriptionTrgmSimilarity` | Float | Yes | @@ -303,18 +324,19 @@ CRUD operations for AgentResource records. | `titleTrgmSimilarity` | Float | Yes | | `updatedAt` | Datetime | No | | `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | **Operations:** ```typescript // List all agentResource records -const items = await db.agentResource.findMany({ select: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, databaseId: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true } }).execute(); +const items = await db.agentResource.findMany({ select: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.agentResource.findOne({ id: '', select: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, databaseId: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true } }).execute(); +const item = await db.agentResource.findOne({ id: '', select: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.agentResource.create({ data: { archivedAt: '', body: '', bodyTrgmSimilarity: '', createdBy: '', databaseId: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', isActive: '', isArchived: '', keywords: '', kind: '', kindTrgmSimilarity: '', metadata: '', search: '', searchScore: '', searchTsvRank: '', slug: '', title: '', titleTrgmSimilarity: '', updatedBy: '' }, select: { id: true } }).execute(); +const created = await db.agentResource.create({ data: { archivedAt: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', isActive: '', isArchived: '', keywords: '', kind: '', kindTrgmSimilarity: '', metadata: '', search: '', searchScore: '', searchTsvRank: '', slug: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update const updated = await db.agentResource.update({ where: { id: '' }, data: { archivedAt: '' }, select: { id: true } }).execute(); @@ -353,18 +375,19 @@ CRUD operations for AgentTask records. | `source` | String | Yes | | `status` | String | Yes | | `updatedAt` | Datetime | No | +| `visibility` | String | Yes | **Operations:** ```typescript // List all agentTask records -const items = await db.agentTask.findMany({ select: { actorId: true, approvalFeedback: true, approvalStatus: true, approvedAt: true, approvedBy: true, createdAt: true, databaseId: true, description: true, error: true, id: true, orderIndex: true, planId: true, requiresApproval: true, source: true, status: true, updatedAt: true } }).execute(); +const items = await db.agentTask.findMany({ select: { actorId: true, approvalFeedback: true, approvalStatus: true, approvedAt: true, approvedBy: true, createdAt: true, databaseId: true, description: true, error: true, id: true, orderIndex: true, planId: true, requiresApproval: true, source: true, status: true, updatedAt: true, visibility: true } }).execute(); // Get one by id -const item = await db.agentTask.findOne({ id: '', select: { actorId: true, approvalFeedback: true, approvalStatus: true, approvedAt: true, approvedBy: true, createdAt: true, databaseId: true, description: true, error: true, id: true, orderIndex: true, planId: true, requiresApproval: true, source: true, status: true, updatedAt: true } }).execute(); +const item = await db.agentTask.findOne({ id: '', select: { actorId: true, approvalFeedback: true, approvalStatus: true, approvedAt: true, approvedBy: true, createdAt: true, databaseId: true, description: true, error: true, id: true, orderIndex: true, planId: true, requiresApproval: true, source: true, status: true, updatedAt: true, visibility: true } }).execute(); // Create -const created = await db.agentTask.create({ data: { actorId: '', approvalFeedback: '', approvalStatus: '', approvedAt: '', approvedBy: '', databaseId: '', description: '', error: '', orderIndex: '', planId: '', requiresApproval: '', source: '', status: '' }, select: { id: true } }).execute(); +const created = await db.agentTask.create({ data: { actorId: '', approvalFeedback: '', approvalStatus: '', approvedAt: '', approvedBy: '', databaseId: '', description: '', error: '', orderIndex: '', planId: '', requiresApproval: '', source: '', status: '', visibility: '' }, select: { id: true } }).execute(); // Update const updated = await db.agentTask.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); @@ -397,18 +420,19 @@ CRUD operations for AgentThread records. | `tags` | String | Yes | | `title` | String | Yes | | `updatedAt` | Datetime | No | +| `visibility` | String | Yes | **Operations:** ```typescript // List all agentThread records -const items = await db.agentThread.findMany({ select: { agentId: true, archivedAt: true, createdAt: true, databaseId: true, id: true, isArchived: true, mode: true, model: true, ownerId: true, parentThreadId: true, promptTemplateId: true, status: true, systemPrompt: true, tags: true, title: true, updatedAt: true } }).execute(); +const items = await db.agentThread.findMany({ select: { agentId: true, archivedAt: true, createdAt: true, databaseId: true, id: true, isArchived: true, mode: true, model: true, ownerId: true, parentThreadId: true, promptTemplateId: true, status: true, systemPrompt: true, tags: true, title: true, updatedAt: true, visibility: true } }).execute(); // Get one by id -const item = await db.agentThread.findOne({ id: '', select: { agentId: true, archivedAt: true, createdAt: true, databaseId: true, id: true, isArchived: true, mode: true, model: true, ownerId: true, parentThreadId: true, promptTemplateId: true, status: true, systemPrompt: true, tags: true, title: true, updatedAt: true } }).execute(); +const item = await db.agentThread.findOne({ id: '', select: { agentId: true, archivedAt: true, createdAt: true, databaseId: true, id: true, isArchived: true, mode: true, model: true, ownerId: true, parentThreadId: true, promptTemplateId: true, status: true, systemPrompt: true, tags: true, title: true, updatedAt: true, visibility: true } }).execute(); // Create -const created = await db.agentThread.create({ data: { agentId: '', archivedAt: '', databaseId: '', isArchived: '', mode: '', model: '', ownerId: '', parentThreadId: '', promptTemplateId: '', status: '', systemPrompt: '', tags: '', title: '' }, select: { id: true } }).execute(); +const created = await db.agentThread.create({ data: { agentId: '', archivedAt: '', databaseId: '', isArchived: '', mode: '', model: '', ownerId: '', parentThreadId: '', promptTemplateId: '', status: '', systemPrompt: '', tags: '', title: '', visibility: '' }, select: { id: true } }).execute(); // Update const updated = await db.agentThread.update({ where: { id: '' }, data: { agentId: '' }, select: { id: true } }).execute(); @@ -417,14 +441,543 @@ const updated = await db.agentThread.update({ where: { id: '' }, data: { a const deleted = await db.agentThread.delete({ where: { id: '' } }).execute(); ``` +### `db.platformAgent` + +CRUD operations for PlatformAgent records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `config` | JSON | Yes | +| `createdAt` | Datetime | No | +| `id` | UUID | No | +| `isEphemeral` | Boolean | Yes | +| `name` | String | Yes | +| `ownerId` | UUID | Yes | +| `parentId` | UUID | Yes | +| `personaId` | UUID | Yes | +| `status` | String | Yes | +| `systemPrompt` | String | Yes | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all platformAgent records +const items = await db.platformAgent.findMany({ select: { config: true, createdAt: true, id: true, isEphemeral: true, name: true, ownerId: true, parentId: true, personaId: true, status: true, systemPrompt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.platformAgent.findOne({ id: '', select: { config: true, createdAt: true, id: true, isEphemeral: true, name: true, ownerId: true, parentId: true, personaId: true, status: true, systemPrompt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.platformAgent.create({ data: { config: '', isEphemeral: '', name: '', ownerId: '', parentId: '', personaId: '', status: '', systemPrompt: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformAgent.update({ where: { id: '' }, data: { config: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformAgent.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformAgentEvent` + +CRUD operations for PlatformAgentEvent records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `actorId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `entry` | JSON | Yes | +| `id` | UUID | No | +| `recordedAt` | Datetime | Yes | +| `runId` | UUID | Yes | +| `seq` | Int | Yes | +| `transcriptFormat` | String | Yes | +| `transcriptVersion` | Int | Yes | +| `updatedAt` | Datetime | No | +| `visibility` | String | Yes | + +**Operations:** + +```typescript +// List all platformAgentEvent records +const items = await db.platformAgentEvent.findMany({ select: { actorId: true, createdAt: true, entry: true, id: true, recordedAt: true, runId: true, seq: true, transcriptFormat: true, transcriptVersion: true, updatedAt: true, visibility: true } }).execute(); + +// Get one by id +const item = await db.platformAgentEvent.findOne({ id: '', select: { actorId: true, createdAt: true, entry: true, id: true, recordedAt: true, runId: true, seq: true, transcriptFormat: true, transcriptVersion: true, updatedAt: true, visibility: true } }).execute(); + +// Create +const created = await db.platformAgentEvent.create({ data: { actorId: '', entry: '', recordedAt: '', runId: '', seq: '', transcriptFormat: '', transcriptVersion: '', visibility: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformAgentEvent.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformAgentEvent.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformAgentMessage` + +CRUD operations for PlatformAgentMessage records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `actorId` | UUID | Yes | +| `agentId` | UUID | Yes | +| `authorRole` | String | Yes | +| `createdAt` | Datetime | No | +| `deliveredRunId` | UUID | Yes | +| `id` | UUID | No | +| `kind` | String | Yes | +| `model` | String | Yes | +| `parts` | JSON | Yes | +| `threadId` | UUID | Yes | +| `updatedAt` | Datetime | No | +| `visibility` | String | Yes | + +**Operations:** + +```typescript +// List all platformAgentMessage records +const items = await db.platformAgentMessage.findMany({ select: { actorId: true, agentId: true, authorRole: true, createdAt: true, deliveredRunId: true, id: true, kind: true, model: true, parts: true, threadId: true, updatedAt: true, visibility: true } }).execute(); + +// Get one by id +const item = await db.platformAgentMessage.findOne({ id: '', select: { actorId: true, agentId: true, authorRole: true, createdAt: true, deliveredRunId: true, id: true, kind: true, model: true, parts: true, threadId: true, updatedAt: true, visibility: true } }).execute(); + +// Create +const created = await db.platformAgentMessage.create({ data: { actorId: '', agentId: '', authorRole: '', deliveredRunId: '', kind: '', model: '', parts: '', threadId: '', visibility: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformAgentMessage.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformAgentMessage.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformAgentPersona` + +CRUD operations for PlatformAgentPersona records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `config` | JSON | Yes | +| `createdAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | +| `description` | String | Yes | +| `id` | UUID | No | +| `isActive` | Boolean | Yes | +| `name` | String | Yes | +| `resources` | String | Yes | +| `slug` | String | Yes | +| `systemPrompt` | String | Yes | +| `updatedAt` | Datetime | No | +| `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | + +**Operations:** + +```typescript +// List all platformAgentPersona records +const items = await db.platformAgentPersona.findMany({ select: { config: true, createdAt: true, createdBy: true, createdByPrincipal: true, description: true, id: true, isActive: true, name: true, resources: true, slug: true, systemPrompt: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Get one by id +const item = await db.platformAgentPersona.findOne({ id: '', select: { config: true, createdAt: true, createdBy: true, createdByPrincipal: true, description: true, id: true, isActive: true, name: true, resources: true, slug: true, systemPrompt: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Create +const created = await db.platformAgentPersona.create({ data: { config: '', createdBy: '', createdByPrincipal: '', description: '', isActive: '', name: '', resources: '', slug: '', systemPrompt: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformAgentPersona.update({ where: { id: '' }, data: { config: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformAgentPersona.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformAgentPlan` + +CRUD operations for PlatformAgentPlan records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `createdAt` | Datetime | No | +| `description` | String | Yes | +| `id` | UUID | No | +| `ownerId` | UUID | Yes | +| `status` | String | Yes | +| `threadId` | UUID | Yes | +| `title` | String | Yes | +| `updatedAt` | Datetime | No | +| `visibility` | String | Yes | + +**Operations:** + +```typescript +// List all platformAgentPlan records +const items = await db.platformAgentPlan.findMany({ select: { createdAt: true, description: true, id: true, ownerId: true, status: true, threadId: true, title: true, updatedAt: true, visibility: true } }).execute(); + +// Get one by id +const item = await db.platformAgentPlan.findOne({ id: '', select: { createdAt: true, description: true, id: true, ownerId: true, status: true, threadId: true, title: true, updatedAt: true, visibility: true } }).execute(); + +// Create +const created = await db.platformAgentPlan.create({ data: { description: '', ownerId: '', status: '', threadId: '', title: '', visibility: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformAgentPlan.update({ where: { id: '' }, data: { description: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformAgentPlan.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformAgentPrompt` + +CRUD operations for PlatformAgentPrompt records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `content` | String | Yes | +| `createdAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | +| `description` | String | Yes | +| `id` | UUID | No | +| `isDefault` | Boolean | Yes | +| `metadata` | JSON | Yes | +| `name` | String | Yes | +| `updatedAt` | Datetime | No | +| `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | + +**Operations:** + +```typescript +// List all platformAgentPrompt records +const items = await db.platformAgentPrompt.findMany({ select: { content: true, createdAt: true, createdBy: true, createdByPrincipal: true, description: true, id: true, isDefault: true, metadata: true, name: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Get one by id +const item = await db.platformAgentPrompt.findOne({ id: '', select: { content: true, createdAt: true, createdBy: true, createdByPrincipal: true, description: true, id: true, isDefault: true, metadata: true, name: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Create +const created = await db.platformAgentPrompt.create({ data: { content: '', createdBy: '', createdByPrincipal: '', description: '', isDefault: '', metadata: '', name: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformAgentPrompt.update({ where: { id: '' }, data: { content: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformAgentPrompt.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformAgentResourceChunk` + +CRUD operations for PlatformAgentResourceChunk records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `body` | String | Yes | +| `chunkIndex` | Int | Yes | +| `createdAt` | Datetime | No | +| `embedding` | Vector | Yes | +| `embeddingVectorDistance` | Float | Yes | +| `id` | UUID | No | +| `metadata` | JSON | Yes | +| `platformAgentResourceId` | UUID | Yes | +| `searchScore` | Float | Yes | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all platformAgentResourceChunk records +const items = await db.platformAgentResourceChunk.findMany({ select: { body: true, chunkIndex: true, createdAt: true, embedding: true, embeddingVectorDistance: true, id: true, metadata: true, platformAgentResourceId: true, searchScore: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.platformAgentResourceChunk.findOne({ id: '', select: { body: true, chunkIndex: true, createdAt: true, embedding: true, embeddingVectorDistance: true, id: true, metadata: true, platformAgentResourceId: true, searchScore: true, updatedAt: true } }).execute(); + +// Create +const created = await db.platformAgentResourceChunk.create({ data: { body: '', chunkIndex: '', embedding: '', embeddingVectorDistance: '', metadata: '', platformAgentResourceId: '', searchScore: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformAgentResourceChunk.update({ where: { id: '' }, data: { body: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformAgentResourceChunk.delete({ where: { id: '' } }).execute(); +``` + +> **pgvector embedding fields:** `embedding` +> High-dimensional vector columns for semantic similarity search. Query via the Unified Search API pgvector adapter using cosine, L2, or inner-product distance. + +### `db.platformAgentResource` + +CRUD operations for PlatformAgentResource records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `archivedAt` | Datetime | Yes | +| `body` | String | Yes | +| `bodyTrgmSimilarity` | Float | Yes | +| `createdAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | +| `description` | String | Yes | +| `descriptionTrgmSimilarity` | Float | Yes | +| `embedding` | Vector | Yes | +| `embeddingUpdatedAt` | Datetime | Yes | +| `embeddingVectorDistance` | Float | Yes | +| `id` | UUID | No | +| `isActive` | Boolean | Yes | +| `isArchived` | Boolean | Yes | +| `keywords` | String | Yes | +| `kind` | String | Yes | +| `kindTrgmSimilarity` | Float | Yes | +| `metadata` | JSON | Yes | +| `search` | FullText | Yes | +| `searchScore` | Float | Yes | +| `searchTsvRank` | Float | Yes | +| `slug` | String | Yes | +| `title` | String | Yes | +| `titleTrgmSimilarity` | Float | Yes | +| `updatedAt` | Datetime | No | +| `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | + +**Operations:** + +```typescript +// List all platformAgentResource records +const items = await db.platformAgentResource.findMany({ select: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Get one by id +const item = await db.platformAgentResource.findOne({ id: '', select: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Create +const created = await db.platformAgentResource.create({ data: { archivedAt: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', isActive: '', isArchived: '', keywords: '', kind: '', kindTrgmSimilarity: '', metadata: '', search: '', searchScore: '', searchTsvRank: '', slug: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformAgentResource.update({ where: { id: '' }, data: { archivedAt: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformAgentResource.delete({ where: { id: '' } }).execute(); +``` + +> **pgvector embedding fields:** `embedding` +> High-dimensional vector columns for semantic similarity search. Query via the Unified Search API pgvector adapter using cosine, L2, or inner-product distance. + +> **Unified Search API fields:** `search` +> Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. + +### `db.platformAgentRun` + +CRUD operations for PlatformAgentRun records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `actorId` | UUID | Yes | +| `artifacts` | JSON | Yes | +| `attempt` | Int | Yes | +| `baseCommit` | String | Yes | +| `branch` | String | Yes | +| `createdAt` | Datetime | No | +| `databaseId` | UUID | Yes | +| `deadlineAt` | Datetime | Yes | +| `entityId` | UUID | Yes | +| `error` | String | Yes | +| `executionId` | UUID | Yes | +| `finishedAt` | Datetime | Yes | +| `headCommit` | String | Yes | +| `id` | UUID | No | +| `lastEventSeq` | Int | Yes | +| `parentRunId` | UUID | Yes | +| `placement` | String | Yes | +| `principalId` | UUID | Yes | +| `repoUrl` | String | Yes | +| `startedAt` | Datetime | Yes | +| `status` | String | Yes | +| `threadId` | UUID | Yes | +| `tokenUsage` | JSON | Yes | +| `totalCost` | BigFloat | Yes | +| `updatedAt` | Datetime | No | +| `visibility` | String | Yes | + +**Operations:** + +```typescript +// List all platformAgentRun records +const items = await db.platformAgentRun.findMany({ select: { actorId: true, artifacts: true, attempt: true, baseCommit: true, branch: true, createdAt: true, databaseId: true, deadlineAt: true, entityId: true, error: true, executionId: true, finishedAt: true, headCommit: true, id: true, lastEventSeq: true, parentRunId: true, placement: true, principalId: true, repoUrl: true, startedAt: true, status: true, threadId: true, tokenUsage: true, totalCost: true, updatedAt: true, visibility: true } }).execute(); + +// Get one by id +const item = await db.platformAgentRun.findOne({ id: '', select: { actorId: true, artifacts: true, attempt: true, baseCommit: true, branch: true, createdAt: true, databaseId: true, deadlineAt: true, entityId: true, error: true, executionId: true, finishedAt: true, headCommit: true, id: true, lastEventSeq: true, parentRunId: true, placement: true, principalId: true, repoUrl: true, startedAt: true, status: true, threadId: true, tokenUsage: true, totalCost: true, updatedAt: true, visibility: true } }).execute(); + +// Create +const created = await db.platformAgentRun.create({ data: { actorId: '', artifacts: '', attempt: '', baseCommit: '', branch: '', databaseId: '', deadlineAt: '', entityId: '', error: '', executionId: '', finishedAt: '', headCommit: '', lastEventSeq: '', parentRunId: '', placement: '', principalId: '', repoUrl: '', startedAt: '', status: '', threadId: '', tokenUsage: '', totalCost: '', visibility: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformAgentRun.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformAgentRun.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformAgentRunWorkspace` + +CRUD operations for PlatformAgentRunWorkspace records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `actorId` | UUID | Yes | +| `artifacts` | JSON | Yes | +| `baseBranch` | String | Yes | +| `baseCommit` | String | Yes | +| `branch` | String | Yes | +| `clonedAt` | Datetime | Yes | +| `createdAt` | Datetime | No | +| `headCommit` | String | Yes | +| `id` | UUID | No | +| `lastUsedAt` | Datetime | Yes | +| `ordinal` | Int | Yes | +| `provider` | String | Yes | +| `publication` | String | Yes | +| `repo` | String | Yes | +| `repositoryId` | UUID | Yes | +| `runId` | UUID | Yes | +| `state` | String | Yes | +| `updatedAt` | Datetime | No | +| `visibility` | String | Yes | + +**Operations:** + +```typescript +// List all platformAgentRunWorkspace records +const items = await db.platformAgentRunWorkspace.findMany({ select: { actorId: true, artifacts: true, baseBranch: true, baseCommit: true, branch: true, clonedAt: true, createdAt: true, headCommit: true, id: true, lastUsedAt: true, ordinal: true, provider: true, publication: true, repo: true, repositoryId: true, runId: true, state: true, updatedAt: true, visibility: true } }).execute(); + +// Get one by id +const item = await db.platformAgentRunWorkspace.findOne({ id: '', select: { actorId: true, artifacts: true, baseBranch: true, baseCommit: true, branch: true, clonedAt: true, createdAt: true, headCommit: true, id: true, lastUsedAt: true, ordinal: true, provider: true, publication: true, repo: true, repositoryId: true, runId: true, state: true, updatedAt: true, visibility: true } }).execute(); + +// Create +const created = await db.platformAgentRunWorkspace.create({ data: { actorId: '', artifacts: '', baseBranch: '', baseCommit: '', branch: '', clonedAt: '', headCommit: '', lastUsedAt: '', ordinal: '', provider: '', publication: '', repo: '', repositoryId: '', runId: '', state: '', visibility: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformAgentRunWorkspace.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformAgentRunWorkspace.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformAgentTask` + +CRUD operations for PlatformAgentTask records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `actorId` | UUID | Yes | +| `approvalFeedback` | String | Yes | +| `approvalStatus` | String | Yes | +| `approvedAt` | Datetime | Yes | +| `approvedBy` | UUID | Yes | +| `createdAt` | Datetime | No | +| `description` | String | Yes | +| `error` | String | Yes | +| `id` | UUID | No | +| `orderIndex` | Int | Yes | +| `planId` | UUID | Yes | +| `requiresApproval` | Boolean | Yes | +| `source` | String | Yes | +| `status` | String | Yes | +| `updatedAt` | Datetime | No | +| `visibility` | String | Yes | + +**Operations:** + +```typescript +// List all platformAgentTask records +const items = await db.platformAgentTask.findMany({ select: { actorId: true, approvalFeedback: true, approvalStatus: true, approvedAt: true, approvedBy: true, createdAt: true, description: true, error: true, id: true, orderIndex: true, planId: true, requiresApproval: true, source: true, status: true, updatedAt: true, visibility: true } }).execute(); + +// Get one by id +const item = await db.platformAgentTask.findOne({ id: '', select: { actorId: true, approvalFeedback: true, approvalStatus: true, approvedAt: true, approvedBy: true, createdAt: true, description: true, error: true, id: true, orderIndex: true, planId: true, requiresApproval: true, source: true, status: true, updatedAt: true, visibility: true } }).execute(); + +// Create +const created = await db.platformAgentTask.create({ data: { actorId: '', approvalFeedback: '', approvalStatus: '', approvedAt: '', approvedBy: '', description: '', error: '', orderIndex: '', planId: '', requiresApproval: '', source: '', status: '', visibility: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformAgentTask.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformAgentTask.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformAgentThread` + +CRUD operations for PlatformAgentThread records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `agentId` | UUID | Yes | +| `archivedAt` | Datetime | Yes | +| `createdAt` | Datetime | No | +| `id` | UUID | No | +| `isArchived` | Boolean | Yes | +| `mode` | String | Yes | +| `model` | String | Yes | +| `ownerId` | UUID | Yes | +| `parentThreadId` | UUID | Yes | +| `promptTemplateId` | UUID | Yes | +| `status` | String | Yes | +| `systemPrompt` | String | Yes | +| `tags` | String | Yes | +| `title` | String | Yes | +| `updatedAt` | Datetime | No | +| `visibility` | String | Yes | + +**Operations:** + +```typescript +// List all platformAgentThread records +const items = await db.platformAgentThread.findMany({ select: { agentId: true, archivedAt: true, createdAt: true, id: true, isArchived: true, mode: true, model: true, ownerId: true, parentThreadId: true, promptTemplateId: true, status: true, systemPrompt: true, tags: true, title: true, updatedAt: true, visibility: true } }).execute(); + +// Get one by id +const item = await db.platformAgentThread.findOne({ id: '', select: { agentId: true, archivedAt: true, createdAt: true, id: true, isArchived: true, mode: true, model: true, ownerId: true, parentThreadId: true, promptTemplateId: true, status: true, systemPrompt: true, tags: true, title: true, updatedAt: true, visibility: true } }).execute(); + +// Create +const created = await db.platformAgentThread.create({ data: { agentId: '', archivedAt: '', isArchived: '', mode: '', model: '', ownerId: '', parentThreadId: '', promptTemplateId: '', status: '', systemPrompt: '', tags: '', title: '', visibility: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformAgentThread.update({ where: { id: '' }, data: { agentId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformAgentThread.delete({ where: { id: '' } }).execute(); +``` + ## Custom Operations ### `db.mutation.provisionBucket` -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. +Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. - **Type:** mutation - **Arguments:** diff --git a/sdk/constructive-cli/src/agent/orm/index.ts b/sdk/constructive-cli/src/agent/orm/index.ts index 5ca8fcc3eb..ebb397965b 100644 --- a/sdk/constructive-cli/src/agent/orm/index.ts +++ b/sdk/constructive-cli/src/agent/orm/index.ts @@ -14,6 +14,18 @@ import { AgentResourceChunkModel } from './models/agentResourceChunk'; import { AgentResourceModel } from './models/agentResource'; import { AgentTaskModel } from './models/agentTask'; import { AgentThreadModel } from './models/agentThread'; +import { PlatformAgentModel } from './models/platformAgent'; +import { PlatformAgentEventModel } from './models/platformAgentEvent'; +import { PlatformAgentMessageModel } from './models/platformAgentMessage'; +import { PlatformAgentPersonaModel } from './models/platformAgentPersona'; +import { PlatformAgentPlanModel } from './models/platformAgentPlan'; +import { PlatformAgentPromptModel } from './models/platformAgentPrompt'; +import { PlatformAgentResourceChunkModel } from './models/platformAgentResourceChunk'; +import { PlatformAgentResourceModel } from './models/platformAgentResource'; +import { PlatformAgentRunModel } from './models/platformAgentRun'; +import { PlatformAgentRunWorkspaceModel } from './models/platformAgentRunWorkspace'; +import { PlatformAgentTaskModel } from './models/platformAgentTask'; +import { PlatformAgentThreadModel } from './models/platformAgentThread'; import { createMutationOperations } from './mutation'; export type { OrmClientConfig, QueryResult, GraphQLError, GraphQLAdapter } from './client'; export { GraphQLRequestError, FetchAdapter } from './client'; @@ -56,6 +68,18 @@ export function createClient(config: OrmClientConfig) { agentResource: new AgentResourceModel(client), agentTask: new AgentTaskModel(client), agentThread: new AgentThreadModel(client), + platformAgent: new PlatformAgentModel(client), + platformAgentEvent: new PlatformAgentEventModel(client), + platformAgentMessage: new PlatformAgentMessageModel(client), + platformAgentPersona: new PlatformAgentPersonaModel(client), + platformAgentPlan: new PlatformAgentPlanModel(client), + platformAgentPrompt: new PlatformAgentPromptModel(client), + platformAgentResourceChunk: new PlatformAgentResourceChunkModel(client), + platformAgentResource: new PlatformAgentResourceModel(client), + platformAgentRun: new PlatformAgentRunModel(client), + platformAgentRunWorkspace: new PlatformAgentRunWorkspaceModel(client), + platformAgentTask: new PlatformAgentTaskModel(client), + platformAgentThread: new PlatformAgentThreadModel(client), mutation: createMutationOperations(client), }; } diff --git a/sdk/constructive-cli/src/agent/orm/input-types.ts b/sdk/constructive-cli/src/agent/orm/input-types.ts index dd84bc366e..afbd94a971 100644 --- a/sdk/constructive-cli/src/agent/orm/input-types.ts +++ b/sdk/constructive-cli/src/agent/orm/input-types.ts @@ -267,6 +267,8 @@ export interface AgentMessage { /** Database that owns this resource (database-scoped isolation) */ databaseId?: string | null; id: string; + /** Turn kind: user, assistant, system, or interrupt (arrived mid-run and redirects it) */ + kind?: string | null; /** LLM model that generated this response */ model?: string | null; /** Message content: TextPart and ToolPart array */ @@ -274,6 +276,8 @@ export interface AgentMessage { /** Foreign key to agent_thread */ threadId?: string | null; updatedAt?: string | null; + /** Who may read this message, inherited from the thread */ + visibility?: string | null; } /** Agent persona templates (role, system prompt, default skills/knowledge) */ export interface AgentPersona { @@ -281,6 +285,7 @@ export interface AgentPersona { config?: Record | null; createdAt?: string | null; createdBy?: string | null; + createdByPrincipal?: string | null; /** Database that owns this resource (database-scoped isolation) */ databaseId?: string | null; /** Brief description of this persona role */ @@ -298,6 +303,7 @@ export interface AgentPersona { systemPrompt?: string | null; updatedAt?: string | null; updatedBy?: string | null; + updatedByPrincipal?: string | null; } /** Workflow plan attached to an agent thread with ordered tasks and optional approval gates */ export interface AgentPlan { @@ -316,6 +322,8 @@ export interface AgentPlan { /** Human-readable plan name */ title?: string | null; updatedAt?: string | null; + /** Who may read this plan, inherited from the thread */ + visibility?: string | null; } /** Shared system prompt templates for agent conversations */ export interface AgentPrompt { @@ -323,6 +331,7 @@ export interface AgentPrompt { content?: string | null; createdAt?: string | null; createdBy?: string | null; + createdByPrincipal?: string | null; /** Database that owns this resource (database-scoped isolation) */ databaseId?: string | null; /** What this prompt template is for */ @@ -336,12 +345,15 @@ export interface AgentPrompt { name?: string | null; updatedAt?: string | null; updatedBy?: string | null; + updatedByPrincipal?: string | null; } export interface AgentResourceChunk { agentResourceId?: string | null; body?: string | null; chunkIndex?: number | null; createdAt?: string | null; + /** Policy-required field derived from source table (used by AuthzRelatedEntityMembership) */ + databaseId?: string | null; embedding?: number[] | null; /** VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. */ embeddingVectorDistance?: number | null; @@ -361,6 +373,7 @@ export interface AgentResource { bodyTrgmSimilarity?: number | null; createdAt?: string | null; createdBy?: string | null; + createdByPrincipal?: string | null; /** Database that owns this resource (database-scoped isolation) */ databaseId?: string | null; /** Brief description of this resource */ @@ -397,6 +410,7 @@ export interface AgentResource { titleTrgmSimilarity?: number | null; updatedAt?: string | null; updatedBy?: string | null; + updatedByPrincipal?: string | null; } /** Task within a plan, with ordering and optional approval gates */ export interface AgentTask { @@ -429,6 +443,8 @@ export interface AgentTask { /** Current status of this task */ status?: string | null; updatedAt?: string | null; + /** Who may read this task, inherited from its parent */ + visibility?: string | null; } /** Top-level AI/LLM conversation thread */ export interface AgentThread { @@ -461,6 +477,353 @@ export interface AgentThread { /** Human-readable conversation title */ title?: string | null; updatedAt?: string | null; + /** Who may read this thread: private (owner only) or entity (the scope's members) */ + visibility?: string | null; +} +/** Agent instance registry (human-managed or ephemeral sub-agents) */ +export interface PlatformAgent { + /** Per-instance config overrides (model, temperature, tools) */ + config?: Record | null; + createdAt?: string | null; + id: string; + /** If true, agent is deleted when its spawning thread is deleted */ + isEphemeral?: boolean | null; + /** Display name for this agent instance */ + name?: string | null; + /** Human who owns/manages this agent */ + ownerId?: string | null; + /** Parent agent (for sub-agent delegation hierarchy) */ + parentId?: string | null; + /** Persona template this agent was created from */ + personaId?: string | null; + /** Agent lifecycle status: active, paused, terminated */ + status?: string | null; + /** System prompt override (NULL = inherit from persona) */ + systemPrompt?: string | null; + updatedAt?: string | null; +} +/** Append-only transcript of an agent run: one agent session entry per row, stored verbatim */ +export interface PlatformAgentEvent { + /** User whose run this entry belongs to, inherited from the run */ + actorId?: string | null; + createdAt?: string | null; + /** The agent session entry, verbatim — every rendered surface is a projection of it */ + entry?: Record | null; + id: string; + /** When the writer produced this entry, by its own clock */ + recordedAt?: string | null; + /** Foreign key to agent_run */ + runId?: string | null; + /** Position of this entry in the run, 1-based and gapless */ + seq?: number | null; + /** Transcript format this entry is encoded in */ + transcriptFormat?: string | null; + /** Version of that transcript format this entry was written in */ + transcriptVersion?: number | null; + updatedAt?: string | null; + /** Who may read this entry, inherited from the run */ + visibility?: string | null; +} +/** Message within an agent thread with TextPart/ToolPart jsonb parts */ +export interface PlatformAgentMessage { + /** User who authored this message */ + actorId?: string | null; + /** Agent that authored this message (NULL for human messages) */ + agentId?: string | null; + /** Who authored this message: user or assistant */ + authorRole?: string | null; + createdAt?: string | null; + /** Run that consumed this message; null while it is still queued */ + deliveredRunId?: string | null; + id: string; + /** Turn kind: user, assistant, system, or interrupt (arrived mid-run and redirects it) */ + kind?: string | null; + /** LLM model that generated this response */ + model?: string | null; + /** Message content: TextPart and ToolPart array */ + parts?: Record | null; + /** Foreign key to agent_thread */ + threadId?: string | null; + updatedAt?: string | null; + /** Who may read this message, inherited from the thread */ + visibility?: string | null; +} +/** Agent persona templates (role, system prompt, default skills/knowledge) */ +export interface PlatformAgentPersona { + /** Model preferences, temperature, tool access, constraints */ + config?: Record | null; + createdAt?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + /** Brief description of this persona role */ + description?: string | null; + id: string; + /** Whether this persona is available for use */ + isActive?: boolean | null; + /** Display name for this persona */ + name?: string | null; + /** Slugs of agent_resource entries to link when spawning */ + resources?: string[] | null; + /** Unique human-readable identifier for this persona */ + slug?: string | null; + /** Default system prompt for agents using this persona */ + systemPrompt?: string | null; + updatedAt?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +/** Workflow plan attached to an agent thread with ordered tasks and optional approval gates */ +export interface PlatformAgentPlan { + createdAt?: string | null; + /** Overall goal or context for this plan */ + description?: string | null; + id: string; + /** User who owns this plan */ + ownerId?: string | null; + /** Plan lifecycle: draft, active, completed, failed, cancelled */ + status?: string | null; + /** Foreign key to agent_thread */ + threadId?: string | null; + /** Human-readable plan name */ + title?: string | null; + updatedAt?: string | null; + /** Who may read this plan, inherited from the thread */ + visibility?: string | null; +} +/** Shared system prompt templates for agent conversations */ +export interface PlatformAgentPrompt { + /** The system prompt template content */ + content?: string | null; + createdAt?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + /** What this prompt template is for */ + description?: string | null; + id: string; + /** Whether this is the default prompt for the entity/app */ + isDefault?: boolean | null; + /** Variables, tags, category metadata */ + metadata?: Record | null; + /** Unique name for lookup (e.g. default, code-review, sales-assistant) */ + name?: string | null; + updatedAt?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +export interface PlatformAgentResourceChunk { + body?: string | null; + chunkIndex?: number | null; + createdAt?: string | null; + embedding?: number[] | null; + /** VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. */ + embeddingVectorDistance?: number | null; + id: string; + metadata?: Record | null; + platformAgentResourceId?: string | null; + /** Composite search relevance score (0..1, higher = more relevant). Computed using Reciprocal Rank Fusion (RRF) across all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. */ + searchScore?: number | null; + updatedAt?: string | null; +} +/** Unified skills and knowledge resources for agent retrieval */ +export interface PlatformAgentResource { + /** Timestamp when this record was archived, NULL if active */ + archivedAt?: string | null; + /** Full content (instructions for skills, reference text for knowledge) */ + body?: string | null; + /** TRGM similarity when searching `body`. Returns null when no trgm search filter is active. */ + bodyTrgmSimilarity?: number | null; + createdAt?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + /** Brief description of this resource */ + description?: string | null; + /** TRGM similarity when searching `description`. Returns null when no trgm search filter is active. */ + descriptionTrgmSimilarity?: number | null; + embedding?: number[] | null; + embeddingUpdatedAt?: string | null; + /** VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. */ + embeddingVectorDistance?: number | null; + id: string; + /** Whether this resource is active and retrievable */ + isActive?: boolean | null; + /** Whether this record has been archived by the user */ + isArchived?: boolean | null; + /** Keywords for deterministic retrieval routing */ + keywords?: string[] | null; + /** Resource type: skill, knowledge, or convention */ + kind?: string | null; + /** TRGM similarity when searching `kind`. Returns null when no trgm search filter is active. */ + kindTrgmSimilarity?: number | null; + /** Structured metadata: category, version, author, custom attributes */ + metadata?: Record | null; + search?: string | null; + /** Composite search relevance score (0..1, higher = more relevant). Computed using Reciprocal Rank Fusion (RRF) across all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. */ + searchScore?: number | null; + /** TSV rank when searching `search`. Returns null when no tsv search filter is active. */ + searchTsvRank?: number | null; + /** Unique human-readable identifier for portable references */ + slug?: string | null; + /** Resource name or title */ + title?: string | null; + /** TRGM similarity when searching `title`. Returns null when no trgm search filter is active. */ + titleTrgmSimilarity?: number | null; + updatedAt?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +/** One supervised agent run of a thread: its placement, workspace, cursor and artifacts */ +export interface PlatformAgentRun { + /** User who invoked this run (audit/provenance; billing is entity_id) */ + actorId?: string | null; + /** What the run produced: commits, diffs, pull requests, usage totals */ + artifacts?: Record | null; + /** Attempt number within this run lineage */ + attempt?: number | null; + /** Commit the run started from */ + baseCommit?: string | null; + /** Branch the run commits to */ + branch?: string | null; + createdAt?: string | null; + /** Tenant database this run is attributed to (usage/billing attribution) */ + databaseId?: string | null; + /** When a supervisor should consider this run abandoned */ + deadlineAt?: string | null; + /** Entity billed for this run: an org the actor invoked on behalf of, or the actor themselves */ + entityId?: string | null; + /** Failure reason when status is failed */ + error?: string | null; + /** Execution currently attached to this run, by id and without a foreign key; null when the run holds no compute */ + executionId?: string | null; + /** When the run reached a terminal status */ + finishedAt?: string | null; + /** Commit the run has reached */ + headCommit?: string | null; + id: string; + /** Highest event seq appended for this run; 0 before the first event */ + lastEventSeq?: number | null; + /** Run this one retries, by id and without a foreign key so lineage survives pruning */ + parentRunId?: string | null; + /** Where this run executes: cloud (a job) or local (an embedded host) */ + placement?: string | null; + /** Principal that invoked this run; equals actor_id when the actor acted directly */ + principalId?: string | null; + /** Git remote the run works against — the workspace sync protocol */ + repoUrl?: string | null; + /** When the run began executing */ + startedAt?: string | null; + /** Lifecycle state: pending, running, waiting, idle, interrupted, succeeded, failed, cancelled */ + status?: string | null; + /** Foreign key to agent_thread */ + threadId?: string | null; + /** Token counts this run accumulated, per model, as the runtime reports them; null until settled */ + tokenUsage?: Record | null; + /** Settled cost of this run in the billing currency, summarising its metered rows; null until settled */ + totalCost?: string | null; + updatedAt?: string | null; + /** Who may read this run, inherited from the thread */ + visibility?: string | null; +} +/** One repository an agent run works in: its remote, branch, commits and how the work is published */ +export interface PlatformAgentRunWorkspace { + /** User whose run this workspace belongs to, inherited from the run */ + actorId?: string | null; + /** What publishing this workspace produced: diff stats, a pull request, a stored patch */ + artifacts?: Record | null; + /** Branch the workspace was cut from, and what a pull request merges into */ + baseBranch?: string | null; + /** Commit the workspace was cut from; fixed once recorded */ + baseCommit?: string | null; + /** Branch this run commits to in this repository */ + branch?: string | null; + /** When an execution first cloned this workspace */ + clonedAt?: string | null; + createdAt?: string | null; + /** Commit the work in this repository has reached */ + headCommit?: string | null; + id: string; + /** When an execution last worked in this workspace; what a reclaim policy reads */ + lastUsedAt?: string | null; + /** Position of this workspace among the run's, 1-based and in clone order */ + ordinal?: number | null; + /** Git host this workspace was cloned from, as the runtime names it: github, local */ + provider?: string | null; + /** How the work is published: pull_request, push, patch_artifact or none */ + publication?: string | null; + /** Repository as its provider names it (owner/name) */ + repo?: string | null; + /** Catalog repository this workspace was cloned from, when the platform hosts it */ + repositoryId?: string | null; + /** Foreign key to agent_run */ + runId?: string | null; + /** Whether the tree still exists: active (on disk), cold (reclaimed, restorable from head_commit) or purged */ + state?: string | null; + updatedAt?: string | null; + /** Who may read this workspace, inherited from the run */ + visibility?: string | null; +} +/** Task within a plan, with ordering and optional approval gates */ +export interface PlatformAgentTask { + /** User who authored this task */ + actorId?: string | null; + /** Reviewer feedback or reason for the decision */ + approvalFeedback?: string | null; + /** Approval decision: pending, approved, rejected (NULL if not an approval task) */ + approvalStatus?: string | null; + /** Timestamp of the approval or rejection decision */ + approvedAt?: string | null; + /** User who approved or rejected this task */ + approvedBy?: string | null; + createdAt?: string | null; + /** Natural-language description of the work to do */ + description?: string | null; + /** Error message captured when the task failed */ + error?: string | null; + id: string; + /** Position within the plan (for ordered task lists) */ + orderIndex?: number | null; + /** Foreign key to agent_plan */ + planId?: string | null; + /** Whether this task is an approval gate requiring human decision */ + requiresApproval?: boolean | null; + /** Who created the task: agent or user */ + source?: string | null; + /** Current status of this task */ + status?: string | null; + updatedAt?: string | null; + /** Who may read this task, inherited from its parent */ + visibility?: string | null; +} +/** Top-level AI/LLM conversation thread */ +export interface PlatformAgentThread { + /** Agent instance assigned to this thread */ + agentId?: string | null; + /** Timestamp when this record was archived, NULL if active */ + archivedAt?: string | null; + createdAt?: string | null; + id: string; + /** Whether this record has been archived by the user */ + isArchived?: boolean | null; + /** Conversation mode: ask (plain Q&A) or agent (tool-enabled) */ + mode?: string | null; + /** LLM model id this thread is bound to */ + model?: string | null; + /** User who owns this thread */ + ownerId?: string | null; + /** Parent thread that spawned this sub-conversation */ + parentThreadId?: string | null; + /** Optional FK to a shared prompt template */ + promptTemplateId?: string | null; + /** Current status of this thread */ + status?: string | null; + /** System prompt active for this thread */ + systemPrompt?: string | null; + /** User-defined labels for organizing and filtering threads */ + tags?: string[] | null; + /** Human-readable conversation title */ + title?: string | null; + updatedAt?: string | null; + /** Who may read this thread: private (owner only) or entity (the scope's members) */ + visibility?: string | null; } // ============ Relation Helper Types ============ export interface ConnectionResult { @@ -513,6 +876,58 @@ export interface AgentThreadRelations { agentPlansByThreadId?: ConnectionResult; agentThreadsByParentThreadId?: ConnectionResult; } +export interface PlatformAgentRelations { + parent?: PlatformAgent | null; + persona?: PlatformAgentPersona | null; + childPlatformAgents?: ConnectionResult; + platformAgentMessagesByAgentId?: ConnectionResult; + platformAgentThreadsByAgentId?: ConnectionResult; +} +export interface PlatformAgentEventRelations { + run?: PlatformAgentRun | null; +} +export interface PlatformAgentMessageRelations { + agent?: PlatformAgent | null; + deliveredRun?: PlatformAgentRun | null; + thread?: PlatformAgentThread | null; +} +export interface PlatformAgentPersonaRelations { + platformAgentsByPersonaId?: ConnectionResult; +} +export interface PlatformAgentPlanRelations { + thread?: PlatformAgentThread | null; + platformAgentTasksByPlanId?: ConnectionResult; +} +export interface PlatformAgentPromptRelations { + platformAgentThreadsByPromptTemplateId?: ConnectionResult; +} +export interface PlatformAgentResourceChunkRelations { + platformAgentResource?: PlatformAgentResource | null; +} +export interface PlatformAgentResourceRelations { + platformAgentResourceChunks?: ConnectionResult; +} +export interface PlatformAgentRunRelations { + thread?: PlatformAgentThread | null; + platformAgentEventsByRunId?: ConnectionResult; + platformAgentMessagesByDeliveredRunId?: ConnectionResult; + platformAgentRunWorkspacesByRunId?: ConnectionResult; +} +export interface PlatformAgentRunWorkspaceRelations { + run?: PlatformAgentRun | null; +} +export interface PlatformAgentTaskRelations { + plan?: PlatformAgentPlan | null; +} +export interface PlatformAgentThreadRelations { + agent?: PlatformAgent | null; + parentThread?: PlatformAgentThread | null; + promptTemplate?: PlatformAgentPrompt | null; + platformAgentMessagesByThreadId?: ConnectionResult; + platformAgentPlansByThreadId?: ConnectionResult; + platformAgentRunsByThreadId?: ConnectionResult; + platformAgentThreadsByParentThreadId?: ConnectionResult; +} // ============ Entity Types With Relations ============ export type AgentWithRelations = Agent & AgentRelations; export type AgentMessageWithRelations = AgentMessage & AgentMessageRelations; @@ -523,6 +938,23 @@ export type AgentResourceChunkWithRelations = AgentResourceChunk & AgentResource export type AgentResourceWithRelations = AgentResource & AgentResourceRelations; export type AgentTaskWithRelations = AgentTask & AgentTaskRelations; export type AgentThreadWithRelations = AgentThread & AgentThreadRelations; +export type PlatformAgentWithRelations = PlatformAgent & PlatformAgentRelations; +export type PlatformAgentEventWithRelations = PlatformAgentEvent & PlatformAgentEventRelations; +export type PlatformAgentMessageWithRelations = PlatformAgentMessage & + PlatformAgentMessageRelations; +export type PlatformAgentPersonaWithRelations = PlatformAgentPersona & + PlatformAgentPersonaRelations; +export type PlatformAgentPlanWithRelations = PlatformAgentPlan & PlatformAgentPlanRelations; +export type PlatformAgentPromptWithRelations = PlatformAgentPrompt & PlatformAgentPromptRelations; +export type PlatformAgentResourceChunkWithRelations = PlatformAgentResourceChunk & + PlatformAgentResourceChunkRelations; +export type PlatformAgentResourceWithRelations = PlatformAgentResource & + PlatformAgentResourceRelations; +export type PlatformAgentRunWithRelations = PlatformAgentRun & PlatformAgentRunRelations; +export type PlatformAgentRunWorkspaceWithRelations = PlatformAgentRunWorkspace & + PlatformAgentRunWorkspaceRelations; +export type PlatformAgentTaskWithRelations = PlatformAgentTask & PlatformAgentTaskRelations; +export type PlatformAgentThreadWithRelations = PlatformAgentThread & PlatformAgentThreadRelations; // ============ Entity Select Types ============ export type AgentSelect = { config?: boolean; @@ -569,10 +1001,12 @@ export type AgentMessageSelect = { createdAt?: boolean; databaseId?: boolean; id?: boolean; + kind?: boolean; model?: boolean; parts?: boolean; threadId?: boolean; updatedAt?: boolean; + visibility?: boolean; agent?: { select: AgentSelect; }; @@ -584,6 +1018,7 @@ export type AgentPersonaSelect = { config?: boolean; createdAt?: boolean; createdBy?: boolean; + createdByPrincipal?: boolean; databaseId?: boolean; description?: boolean; id?: boolean; @@ -594,6 +1029,7 @@ export type AgentPersonaSelect = { systemPrompt?: boolean; updatedAt?: boolean; updatedBy?: boolean; + updatedByPrincipal?: boolean; agentsByPersonaId?: { select: AgentSelect; first?: number; @@ -611,6 +1047,7 @@ export type AgentPlanSelect = { threadId?: boolean; title?: boolean; updatedAt?: boolean; + visibility?: boolean; thread?: { select: AgentThreadSelect; }; @@ -625,6 +1062,7 @@ export type AgentPromptSelect = { content?: boolean; createdAt?: boolean; createdBy?: boolean; + createdByPrincipal?: boolean; databaseId?: boolean; description?: boolean; id?: boolean; @@ -633,6 +1071,7 @@ export type AgentPromptSelect = { name?: boolean; updatedAt?: boolean; updatedBy?: boolean; + updatedByPrincipal?: boolean; agentThreadsByPromptTemplateId?: { select: AgentThreadSelect; first?: number; @@ -645,6 +1084,7 @@ export type AgentResourceChunkSelect = { body?: boolean; chunkIndex?: boolean; createdAt?: boolean; + databaseId?: boolean; embedding?: boolean; embeddingVectorDistance?: boolean; id?: boolean; @@ -661,6 +1101,7 @@ export type AgentResourceSelect = { bodyTrgmSimilarity?: boolean; createdAt?: boolean; createdBy?: boolean; + createdByPrincipal?: boolean; databaseId?: boolean; description?: boolean; descriptionTrgmSimilarity?: boolean; @@ -682,6 +1123,7 @@ export type AgentResourceSelect = { titleTrgmSimilarity?: boolean; updatedAt?: boolean; updatedBy?: boolean; + updatedByPrincipal?: boolean; agentResourceChunks?: { select: AgentResourceChunkSelect; first?: number; @@ -706,6 +1148,7 @@ export type AgentTaskSelect = { source?: boolean; status?: boolean; updatedAt?: boolean; + visibility?: boolean; plan?: { select: AgentPlanSelect; }; @@ -727,6 +1170,7 @@ export type AgentThreadSelect = { tags?: boolean; title?: boolean; updatedAt?: boolean; + visibility?: boolean; agent?: { select: AgentSelect; }; @@ -755,20 +1199,353 @@ export type AgentThreadSelect = { orderBy?: AgentThreadOrderBy[]; }; }; -// ============ Table Filter Types ============ -export interface AgentFilter { - /** Filter by the object’s `agentMessages` relation. */ - agentMessages?: AgentToManyAgentMessageFilter; - /** `agentMessages` exist. */ - agentMessagesExist?: boolean; - /** Filter by the object’s `agentThreads` relation. */ - agentThreads?: AgentToManyAgentThreadFilter; - /** `agentThreads` exist. */ - agentThreadsExist?: boolean; - /** Checks for all expressions in this list. */ - and?: AgentFilter[]; - /** Filter by the object’s `childAgents` relation. */ - childAgents?: AgentToManyAgentFilter; +export type PlatformAgentSelect = { + config?: boolean; + createdAt?: boolean; + id?: boolean; + isEphemeral?: boolean; + name?: boolean; + ownerId?: boolean; + parentId?: boolean; + personaId?: boolean; + status?: boolean; + systemPrompt?: boolean; + updatedAt?: boolean; + parent?: { + select: PlatformAgentSelect; + }; + persona?: { + select: PlatformAgentPersonaSelect; + }; + childPlatformAgents?: { + select: PlatformAgentSelect; + first?: number; + filter?: PlatformAgentFilter; + orderBy?: PlatformAgentOrderBy[]; + }; + platformAgentMessagesByAgentId?: { + select: PlatformAgentMessageSelect; + first?: number; + filter?: PlatformAgentMessageFilter; + orderBy?: PlatformAgentMessageOrderBy[]; + }; + platformAgentThreadsByAgentId?: { + select: PlatformAgentThreadSelect; + first?: number; + filter?: PlatformAgentThreadFilter; + orderBy?: PlatformAgentThreadOrderBy[]; + }; +}; +export type PlatformAgentEventSelect = { + actorId?: boolean; + createdAt?: boolean; + entry?: boolean; + id?: boolean; + recordedAt?: boolean; + runId?: boolean; + seq?: boolean; + transcriptFormat?: boolean; + transcriptVersion?: boolean; + updatedAt?: boolean; + visibility?: boolean; + run?: { + select: PlatformAgentRunSelect; + }; +}; +export type PlatformAgentMessageSelect = { + actorId?: boolean; + agentId?: boolean; + authorRole?: boolean; + createdAt?: boolean; + deliveredRunId?: boolean; + id?: boolean; + kind?: boolean; + model?: boolean; + parts?: boolean; + threadId?: boolean; + updatedAt?: boolean; + visibility?: boolean; + agent?: { + select: PlatformAgentSelect; + }; + deliveredRun?: { + select: PlatformAgentRunSelect; + }; + thread?: { + select: PlatformAgentThreadSelect; + }; +}; +export type PlatformAgentPersonaSelect = { + config?: boolean; + createdAt?: boolean; + createdBy?: boolean; + createdByPrincipal?: boolean; + description?: boolean; + id?: boolean; + isActive?: boolean; + name?: boolean; + resources?: boolean; + slug?: boolean; + systemPrompt?: boolean; + updatedAt?: boolean; + updatedBy?: boolean; + updatedByPrincipal?: boolean; + platformAgentsByPersonaId?: { + select: PlatformAgentSelect; + first?: number; + filter?: PlatformAgentFilter; + orderBy?: PlatformAgentOrderBy[]; + }; +}; +export type PlatformAgentPlanSelect = { + createdAt?: boolean; + description?: boolean; + id?: boolean; + ownerId?: boolean; + status?: boolean; + threadId?: boolean; + title?: boolean; + updatedAt?: boolean; + visibility?: boolean; + thread?: { + select: PlatformAgentThreadSelect; + }; + platformAgentTasksByPlanId?: { + select: PlatformAgentTaskSelect; + first?: number; + filter?: PlatformAgentTaskFilter; + orderBy?: PlatformAgentTaskOrderBy[]; + }; +}; +export type PlatformAgentPromptSelect = { + content?: boolean; + createdAt?: boolean; + createdBy?: boolean; + createdByPrincipal?: boolean; + description?: boolean; + id?: boolean; + isDefault?: boolean; + metadata?: boolean; + name?: boolean; + updatedAt?: boolean; + updatedBy?: boolean; + updatedByPrincipal?: boolean; + platformAgentThreadsByPromptTemplateId?: { + select: PlatformAgentThreadSelect; + first?: number; + filter?: PlatformAgentThreadFilter; + orderBy?: PlatformAgentThreadOrderBy[]; + }; +}; +export type PlatformAgentResourceChunkSelect = { + body?: boolean; + chunkIndex?: boolean; + createdAt?: boolean; + embedding?: boolean; + embeddingVectorDistance?: boolean; + id?: boolean; + metadata?: boolean; + platformAgentResourceId?: boolean; + searchScore?: boolean; + updatedAt?: boolean; + platformAgentResource?: { + select: PlatformAgentResourceSelect; + }; +}; +export type PlatformAgentResourceSelect = { + archivedAt?: boolean; + body?: boolean; + bodyTrgmSimilarity?: boolean; + createdAt?: boolean; + createdBy?: boolean; + createdByPrincipal?: boolean; + description?: boolean; + descriptionTrgmSimilarity?: boolean; + embedding?: boolean; + embeddingUpdatedAt?: boolean; + embeddingVectorDistance?: boolean; + id?: boolean; + isActive?: boolean; + isArchived?: boolean; + keywords?: boolean; + kind?: boolean; + kindTrgmSimilarity?: boolean; + metadata?: boolean; + search?: boolean; + searchScore?: boolean; + searchTsvRank?: boolean; + slug?: boolean; + title?: boolean; + titleTrgmSimilarity?: boolean; + updatedAt?: boolean; + updatedBy?: boolean; + updatedByPrincipal?: boolean; + platformAgentResourceChunks?: { + select: PlatformAgentResourceChunkSelect; + first?: number; + filter?: PlatformAgentResourceChunkFilter; + orderBy?: PlatformAgentResourceChunkOrderBy[]; + }; +}; +export type PlatformAgentRunSelect = { + actorId?: boolean; + artifacts?: boolean; + attempt?: boolean; + baseCommit?: boolean; + branch?: boolean; + createdAt?: boolean; + databaseId?: boolean; + deadlineAt?: boolean; + entityId?: boolean; + error?: boolean; + executionId?: boolean; + finishedAt?: boolean; + headCommit?: boolean; + id?: boolean; + lastEventSeq?: boolean; + parentRunId?: boolean; + placement?: boolean; + principalId?: boolean; + repoUrl?: boolean; + startedAt?: boolean; + status?: boolean; + threadId?: boolean; + tokenUsage?: boolean; + totalCost?: boolean; + updatedAt?: boolean; + visibility?: boolean; + thread?: { + select: PlatformAgentThreadSelect; + }; + platformAgentEventsByRunId?: { + select: PlatformAgentEventSelect; + first?: number; + filter?: PlatformAgentEventFilter; + orderBy?: PlatformAgentEventOrderBy[]; + }; + platformAgentMessagesByDeliveredRunId?: { + select: PlatformAgentMessageSelect; + first?: number; + filter?: PlatformAgentMessageFilter; + orderBy?: PlatformAgentMessageOrderBy[]; + }; + platformAgentRunWorkspacesByRunId?: { + select: PlatformAgentRunWorkspaceSelect; + first?: number; + filter?: PlatformAgentRunWorkspaceFilter; + orderBy?: PlatformAgentRunWorkspaceOrderBy[]; + }; +}; +export type PlatformAgentRunWorkspaceSelect = { + actorId?: boolean; + artifacts?: boolean; + baseBranch?: boolean; + baseCommit?: boolean; + branch?: boolean; + clonedAt?: boolean; + createdAt?: boolean; + headCommit?: boolean; + id?: boolean; + lastUsedAt?: boolean; + ordinal?: boolean; + provider?: boolean; + publication?: boolean; + repo?: boolean; + repositoryId?: boolean; + runId?: boolean; + state?: boolean; + updatedAt?: boolean; + visibility?: boolean; + run?: { + select: PlatformAgentRunSelect; + }; +}; +export type PlatformAgentTaskSelect = { + actorId?: boolean; + approvalFeedback?: boolean; + approvalStatus?: boolean; + approvedAt?: boolean; + approvedBy?: boolean; + createdAt?: boolean; + description?: boolean; + error?: boolean; + id?: boolean; + orderIndex?: boolean; + planId?: boolean; + requiresApproval?: boolean; + source?: boolean; + status?: boolean; + updatedAt?: boolean; + visibility?: boolean; + plan?: { + select: PlatformAgentPlanSelect; + }; +}; +export type PlatformAgentThreadSelect = { + agentId?: boolean; + archivedAt?: boolean; + createdAt?: boolean; + id?: boolean; + isArchived?: boolean; + mode?: boolean; + model?: boolean; + ownerId?: boolean; + parentThreadId?: boolean; + promptTemplateId?: boolean; + status?: boolean; + systemPrompt?: boolean; + tags?: boolean; + title?: boolean; + updatedAt?: boolean; + visibility?: boolean; + agent?: { + select: PlatformAgentSelect; + }; + parentThread?: { + select: PlatformAgentThreadSelect; + }; + promptTemplate?: { + select: PlatformAgentPromptSelect; + }; + platformAgentMessagesByThreadId?: { + select: PlatformAgentMessageSelect; + first?: number; + filter?: PlatformAgentMessageFilter; + orderBy?: PlatformAgentMessageOrderBy[]; + }; + platformAgentPlansByThreadId?: { + select: PlatformAgentPlanSelect; + first?: number; + filter?: PlatformAgentPlanFilter; + orderBy?: PlatformAgentPlanOrderBy[]; + }; + platformAgentRunsByThreadId?: { + select: PlatformAgentRunSelect; + first?: number; + filter?: PlatformAgentRunFilter; + orderBy?: PlatformAgentRunOrderBy[]; + }; + platformAgentThreadsByParentThreadId?: { + select: PlatformAgentThreadSelect; + first?: number; + filter?: PlatformAgentThreadFilter; + orderBy?: PlatformAgentThreadOrderBy[]; + }; +}; +// ============ Table Filter Types ============ +export interface AgentFilter { + /** Filter by the object’s `agentMessages` relation. */ + agentMessages?: AgentToManyAgentMessageFilter; + /** `agentMessages` exist. */ + agentMessagesExist?: boolean; + /** Filter by the object’s `agentThreads` relation. */ + agentThreads?: AgentToManyAgentThreadFilter; + /** `agentThreads` exist. */ + agentThreadsExist?: boolean; + /** Checks for all expressions in this list. */ + and?: AgentFilter[]; + /** Filter by the object’s `childAgents` relation. */ + childAgents?: AgentToManyAgentFilter; /** `childAgents` exist. */ childAgentsExist?: boolean; /** Filter by the object’s `config` field. */ @@ -827,6 +1604,8 @@ export interface AgentMessageFilter { databaseId?: UUIDFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; /** Filter by the object’s `model` field. */ model?: StringFilter; /** Negates the expression. */ @@ -841,6 +1620,8 @@ export interface AgentMessageFilter { threadId?: UUIDFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `visibility` field. */ + visibility?: StringFilter; } export interface AgentPersonaFilter { /** Filter by the object’s `agentsByPersonaId` relation. */ @@ -855,6 +1636,8 @@ export interface AgentPersonaFilter { createdAt?: DatetimeFilter; /** Filter by the object’s `createdBy` field. */ createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; /** Filter by the object’s `description` field. */ @@ -879,6 +1662,8 @@ export interface AgentPersonaFilter { updatedAt?: DatetimeFilter; /** Filter by the object’s `updatedBy` field. */ updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } export interface AgentPlanFilter { /** Filter by the object’s `agentTasksByPlanId` relation. */ @@ -911,6 +1696,8 @@ export interface AgentPlanFilter { title?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `visibility` field. */ + visibility?: StringFilter; } export interface AgentPromptFilter { /** Filter by the object’s `agentThreadsByPromptTemplateId` relation. */ @@ -925,6 +1712,8 @@ export interface AgentPromptFilter { createdAt?: DatetimeFilter; /** Filter by the object’s `createdBy` field. */ createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; /** Filter by the object’s `description` field. */ @@ -945,6 +1734,8 @@ export interface AgentPromptFilter { updatedAt?: DatetimeFilter; /** Filter by the object’s `updatedBy` field. */ updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } export interface AgentResourceChunkFilter { /** Filter by the object’s `agentResource` relation. */ @@ -959,6 +1750,8 @@ export interface AgentResourceChunkFilter { chunkIndex?: IntFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; /** Filter by the object’s `id` field. */ @@ -989,6 +1782,8 @@ export interface AgentResourceFilter { createdAt?: DatetimeFilter; /** Filter by the object’s `createdBy` field. */ createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; /** Filter by the object’s `description` field. */ @@ -1041,6 +1836,8 @@ export interface AgentResourceFilter { updatedAt?: DatetimeFilter; /** Filter by the object’s `updatedBy` field. */ updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; /** VECTOR search on the `embedding` column. */ vectorEmbedding?: VectorNearbyInput; } @@ -1085,6 +1882,8 @@ export interface AgentTaskFilter { status?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `visibility` field. */ + visibility?: StringFilter; } export interface AgentThreadFilter { /** Filter by the object’s `agent` relation. */ @@ -1149,50 +1948,948 @@ export interface AgentThreadFilter { title?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `visibility` field. */ + visibility?: StringFilter; } -// ============ OrderBy Types ============ -export type AgentOrderBy = - | 'CONFIG_ASC' - | 'CONFIG_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'IS_EPHEMERAL_ASC' - | 'IS_EPHEMERAL_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'NATURAL' - | 'OWNER_ID_ASC' - | 'OWNER_ID_DESC' - | 'PARENT_ID_ASC' - | 'PARENT_ID_DESC' - | 'PERSONA_ID_ASC' - | 'PERSONA_ID_DESC' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'STATUS_ASC' - | 'STATUS_DESC' - | 'SYSTEM_PROMPT_ASC' - | 'SYSTEM_PROMPT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type AgentMessageOrderBy = - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'AGENT_ID_ASC' - | 'AGENT_ID_DESC' - | 'AUTHOR_ROLE_ASC' - | 'AUTHOR_ROLE_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'MODEL_ASC' +export interface PlatformAgentFilter { + /** Checks for all expressions in this list. */ + and?: PlatformAgentFilter[]; + /** Filter by the object’s `childPlatformAgents` relation. */ + childPlatformAgents?: PlatformAgentToManyPlatformAgentFilter; + /** `childPlatformAgents` exist. */ + childPlatformAgentsExist?: boolean; + /** Filter by the object’s `config` field. */ + config?: JSONFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isEphemeral` field. */ + isEphemeral?: BooleanFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: PlatformAgentFilter; + /** Checks for any expressions in this list. */ + or?: PlatformAgentFilter[]; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `parent` relation. */ + parent?: PlatformAgentFilter; + /** A related `parent` exists. */ + parentExists?: boolean; + /** Filter by the object’s `parentId` field. */ + parentId?: UUIDFilter; + /** Filter by the object’s `persona` relation. */ + persona?: PlatformAgentPersonaFilter; + /** A related `persona` exists. */ + personaExists?: boolean; + /** Filter by the object’s `personaId` field. */ + personaId?: UUIDFilter; + /** Filter by the object’s `platformAgentMessagesByAgentId` relation. */ + platformAgentMessagesByAgentId?: PlatformAgentToManyPlatformAgentMessageFilter; + /** `platformAgentMessagesByAgentId` exist. */ + platformAgentMessagesByAgentIdExist?: boolean; + /** Filter by the object’s `platformAgentThreadsByAgentId` relation. */ + platformAgentThreadsByAgentId?: PlatformAgentToManyPlatformAgentThreadFilter; + /** `platformAgentThreadsByAgentId` exist. */ + platformAgentThreadsByAgentIdExist?: boolean; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `systemPrompt` field. */ + systemPrompt?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} +export interface PlatformAgentEventFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: PlatformAgentEventFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `entry` field. */ + entry?: JSONFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformAgentEventFilter; + /** Checks for any expressions in this list. */ + or?: PlatformAgentEventFilter[]; + /** Filter by the object’s `recordedAt` field. */ + recordedAt?: DatetimeFilter; + /** Filter by the object’s `run` relation. */ + run?: PlatformAgentRunFilter; + /** Filter by the object’s `runId` field. */ + runId?: UUIDFilter; + /** Filter by the object’s `seq` field. */ + seq?: IntFilter; + /** Filter by the object’s `transcriptFormat` field. */ + transcriptFormat?: StringFilter; + /** Filter by the object’s `transcriptVersion` field. */ + transcriptVersion?: IntFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `visibility` field. */ + visibility?: StringFilter; +} +export interface PlatformAgentMessageFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `agent` relation. */ + agent?: PlatformAgentFilter; + /** A related `agent` exists. */ + agentExists?: boolean; + /** Filter by the object’s `agentId` field. */ + agentId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: PlatformAgentMessageFilter[]; + /** Filter by the object’s `authorRole` field. */ + authorRole?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `deliveredRun` relation. */ + deliveredRun?: PlatformAgentRunFilter; + /** A related `deliveredRun` exists. */ + deliveredRunExists?: boolean; + /** Filter by the object’s `deliveredRunId` field. */ + deliveredRunId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `model` field. */ + model?: StringFilter; + /** Negates the expression. */ + not?: PlatformAgentMessageFilter; + /** Checks for any expressions in this list. */ + or?: PlatformAgentMessageFilter[]; + /** Filter by the object’s `parts` field. */ + parts?: JSONFilter; + /** Filter by the object’s `thread` relation. */ + thread?: PlatformAgentThreadFilter; + /** Filter by the object’s `threadId` field. */ + threadId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `visibility` field. */ + visibility?: StringFilter; +} +export interface PlatformAgentPersonaFilter { + /** Checks for all expressions in this list. */ + and?: PlatformAgentPersonaFilter[]; + /** Filter by the object’s `config` field. */ + config?: JSONFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `description` field. */ + description?: 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?: PlatformAgentPersonaFilter; + /** Checks for any expressions in this list. */ + or?: PlatformAgentPersonaFilter[]; + /** Filter by the object’s `platformAgentsByPersonaId` relation. */ + platformAgentsByPersonaId?: PlatformAgentPersonaToManyPlatformAgentFilter; + /** `platformAgentsByPersonaId` exist. */ + platformAgentsByPersonaIdExist?: boolean; + /** Filter by the object’s `resources` field. */ + resources?: StringListFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `systemPrompt` field. */ + systemPrompt?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} +export interface PlatformAgentPlanFilter { + /** Checks for all expressions in this list. */ + and?: PlatformAgentPlanFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformAgentPlanFilter; + /** Checks for any expressions in this list. */ + or?: PlatformAgentPlanFilter[]; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `platformAgentTasksByPlanId` relation. */ + platformAgentTasksByPlanId?: PlatformAgentPlanToManyPlatformAgentTaskFilter; + /** `platformAgentTasksByPlanId` exist. */ + platformAgentTasksByPlanIdExist?: boolean; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `thread` relation. */ + thread?: PlatformAgentThreadFilter; + /** Filter by the object’s `threadId` field. */ + threadId?: UUIDFilter; + /** Filter by the object’s `title` field. */ + title?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `visibility` field. */ + visibility?: StringFilter; +} +export interface PlatformAgentPromptFilter { + /** Checks for all expressions in this list. */ + and?: PlatformAgentPromptFilter[]; + /** Filter by the object’s `content` field. */ + content?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isDefault` field. */ + isDefault?: BooleanFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: PlatformAgentPromptFilter; + /** Checks for any expressions in this list. */ + or?: PlatformAgentPromptFilter[]; + /** Filter by the object’s `platformAgentThreadsByPromptTemplateId` relation. */ + platformAgentThreadsByPromptTemplateId?: PlatformAgentPromptToManyPlatformAgentThreadFilter; + /** `platformAgentThreadsByPromptTemplateId` exist. */ + platformAgentThreadsByPromptTemplateIdExist?: boolean; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} +export interface PlatformAgentResourceChunkFilter { + /** Checks for all expressions in this list. */ + and?: PlatformAgentResourceChunkFilter[]; + /** Filter by the object’s `body` field. */ + body?: StringFilter; + /** Filter by the object’s `chunkIndex` field. */ + chunkIndex?: IntFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `embedding` field. */ + embedding?: VectorFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Negates the expression. */ + not?: PlatformAgentResourceChunkFilter; + /** Checks for any expressions in this list. */ + or?: PlatformAgentResourceChunkFilter[]; + /** Filter by the object’s `platformAgentResource` relation. */ + platformAgentResource?: PlatformAgentResourceFilter; + /** Filter by the object’s `platformAgentResourceId` field. */ + platformAgentResourceId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** VECTOR search on the `embedding` column. */ + vectorEmbedding?: VectorNearbyInput; +} +export interface PlatformAgentResourceFilter { + /** Checks for all expressions in this list. */ + and?: PlatformAgentResourceFilter[]; + /** Filter by the object’s `archivedAt` field. */ + archivedAt?: DatetimeFilter; + /** Filter by the object’s `body` field. */ + body?: StringTrgmFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `description` field. */ + description?: StringTrgmFilter; + /** Filter by the object’s `embedding` field. */ + embedding?: VectorFilter; + /** Filter by the object’s `embeddingUpdatedAt` field. */ + embeddingUpdatedAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; + /** Filter by the object’s `isArchived` field. */ + isArchived?: BooleanFilter; + /** Filter by the object’s `keywords` field. */ + keywords?: StringListFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringTrgmFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Negates the expression. */ + not?: PlatformAgentResourceFilter; + /** Checks for any expressions in this list. */ + or?: PlatformAgentResourceFilter[]; + /** Filter by the object’s `platformAgentResourceChunks` relation. */ + platformAgentResourceChunks?: PlatformAgentResourceToManyPlatformAgentResourceChunkFilter; + /** `platformAgentResourceChunks` exist. */ + platformAgentResourceChunksExist?: boolean; + /** Filter by the object’s `search` field. */ + search?: FullTextFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringTrgmFilter; + /** Filter by the object’s `title` field. */ + title?: StringTrgmFilter; + /** TRGM search on the `body` column. */ + trgmBody?: TrgmSearchInput; + /** TRGM search on the `description` column. */ + trgmDescription?: TrgmSearchInput; + /** TRGM search on the `kind` column. */ + trgmKind?: TrgmSearchInput; + /** TRGM search on the `title` column. */ + trgmTitle?: TrgmSearchInput; + /** TSV search on the `search` column. */ + tsvSearch?: string; + /** + * Composite unified search. Provide a search string and it will be dispatched to + * all text-compatible search algorithms (tsvector, BM25, pg_trgm) + * simultaneously. When the LLM plugin is active, pgvector also participates via + * auto-embedding. Rows matching ANY algorithm are returned. All matching score + * fields are populated. + */ + unifiedSearch?: string; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** VECTOR search on the `embedding` column. */ + vectorEmbedding?: VectorNearbyInput; +} +export interface PlatformAgentRunFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: PlatformAgentRunFilter[]; + /** Filter by the object’s `artifacts` field. */ + artifacts?: JSONFilter; + /** Filter by the object’s `attempt` field. */ + attempt?: IntFilter; + /** Filter by the object’s `baseCommit` field. */ + baseCommit?: StringFilter; + /** Filter by the object’s `branch` field. */ + branch?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `deadlineAt` field. */ + deadlineAt?: DatetimeFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `error` field. */ + error?: StringFilter; + /** Filter by the object’s `executionId` field. */ + executionId?: UUIDFilter; + /** Filter by the object’s `finishedAt` field. */ + finishedAt?: DatetimeFilter; + /** Filter by the object’s `headCommit` field. */ + headCommit?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `lastEventSeq` field. */ + lastEventSeq?: IntFilter; + /** Negates the expression. */ + not?: PlatformAgentRunFilter; + /** Checks for any expressions in this list. */ + or?: PlatformAgentRunFilter[]; + /** Filter by the object’s `parentRunId` field. */ + parentRunId?: UUIDFilter; + /** Filter by the object’s `placement` field. */ + placement?: StringFilter; + /** Filter by the object’s `platformAgentEventsByRunId` relation. */ + platformAgentEventsByRunId?: PlatformAgentRunToManyPlatformAgentEventFilter; + /** `platformAgentEventsByRunId` exist. */ + platformAgentEventsByRunIdExist?: boolean; + /** Filter by the object’s `platformAgentMessagesByDeliveredRunId` relation. */ + platformAgentMessagesByDeliveredRunId?: PlatformAgentRunToManyPlatformAgentMessageFilter; + /** `platformAgentMessagesByDeliveredRunId` exist. */ + platformAgentMessagesByDeliveredRunIdExist?: boolean; + /** Filter by the object’s `platformAgentRunWorkspacesByRunId` relation. */ + platformAgentRunWorkspacesByRunId?: PlatformAgentRunToManyPlatformAgentRunWorkspaceFilter; + /** `platformAgentRunWorkspacesByRunId` exist. */ + platformAgentRunWorkspacesByRunIdExist?: boolean; + /** Filter by the object’s `principalId` field. */ + principalId?: UUIDFilter; + /** Filter by the object’s `repoUrl` field. */ + repoUrl?: StringFilter; + /** Filter by the object’s `startedAt` field. */ + startedAt?: DatetimeFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `thread` relation. */ + thread?: PlatformAgentThreadFilter; + /** Filter by the object’s `threadId` field. */ + threadId?: UUIDFilter; + /** Filter by the object’s `tokenUsage` field. */ + tokenUsage?: JSONFilter; + /** Filter by the object’s `totalCost` field. */ + totalCost?: BigFloatFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `visibility` field. */ + visibility?: StringFilter; +} +export interface PlatformAgentRunWorkspaceFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: PlatformAgentRunWorkspaceFilter[]; + /** Filter by the object’s `artifacts` field. */ + artifacts?: JSONFilter; + /** Filter by the object’s `baseBranch` field. */ + baseBranch?: StringFilter; + /** Filter by the object’s `baseCommit` field. */ + baseCommit?: StringFilter; + /** Filter by the object’s `branch` field. */ + branch?: StringFilter; + /** Filter by the object’s `clonedAt` field. */ + clonedAt?: DatetimeFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `headCommit` field. */ + headCommit?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `lastUsedAt` field. */ + lastUsedAt?: DatetimeFilter; + /** Negates the expression. */ + not?: PlatformAgentRunWorkspaceFilter; + /** Checks for any expressions in this list. */ + or?: PlatformAgentRunWorkspaceFilter[]; + /** Filter by the object’s `ordinal` field. */ + ordinal?: IntFilter; + /** Filter by the object’s `provider` field. */ + provider?: StringFilter; + /** Filter by the object’s `publication` field. */ + publication?: StringFilter; + /** Filter by the object’s `repo` field. */ + repo?: StringFilter; + /** Filter by the object’s `repositoryId` field. */ + repositoryId?: UUIDFilter; + /** Filter by the object’s `run` relation. */ + run?: PlatformAgentRunFilter; + /** Filter by the object’s `runId` field. */ + runId?: UUIDFilter; + /** Filter by the object’s `state` field. */ + state?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `visibility` field. */ + visibility?: StringFilter; +} +export interface PlatformAgentTaskFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: PlatformAgentTaskFilter[]; + /** Filter by the object’s `approvalFeedback` field. */ + approvalFeedback?: StringFilter; + /** Filter by the object’s `approvalStatus` field. */ + approvalStatus?: StringFilter; + /** Filter by the object’s `approvedAt` field. */ + approvedAt?: DatetimeFilter; + /** Filter by the object’s `approvedBy` field. */ + approvedBy?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `error` field. */ + error?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformAgentTaskFilter; + /** Checks for any expressions in this list. */ + or?: PlatformAgentTaskFilter[]; + /** Filter by the object’s `orderIndex` field. */ + orderIndex?: IntFilter; + /** Filter by the object’s `plan` relation. */ + plan?: PlatformAgentPlanFilter; + /** Filter by the object’s `planId` field. */ + planId?: UUIDFilter; + /** Filter by the object’s `requiresApproval` field. */ + requiresApproval?: BooleanFilter; + /** Filter by the object’s `source` field. */ + source?: StringFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `visibility` field. */ + visibility?: StringFilter; +} +export interface PlatformAgentThreadFilter { + /** Filter by the object’s `agent` relation. */ + agent?: PlatformAgentFilter; + /** A related `agent` exists. */ + agentExists?: boolean; + /** Filter by the object’s `agentId` field. */ + agentId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: PlatformAgentThreadFilter[]; + /** Filter by the object’s `archivedAt` field. */ + archivedAt?: DatetimeFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isArchived` field. */ + isArchived?: BooleanFilter; + /** Filter by the object’s `mode` field. */ + mode?: StringFilter; + /** Filter by the object’s `model` field. */ + model?: StringFilter; + /** Negates the expression. */ + not?: PlatformAgentThreadFilter; + /** Checks for any expressions in this list. */ + or?: PlatformAgentThreadFilter[]; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `parentThread` relation. */ + parentThread?: PlatformAgentThreadFilter; + /** A related `parentThread` exists. */ + parentThreadExists?: boolean; + /** Filter by the object’s `parentThreadId` field. */ + parentThreadId?: UUIDFilter; + /** Filter by the object’s `platformAgentMessagesByThreadId` relation. */ + platformAgentMessagesByThreadId?: PlatformAgentThreadToManyPlatformAgentMessageFilter; + /** `platformAgentMessagesByThreadId` exist. */ + platformAgentMessagesByThreadIdExist?: boolean; + /** Filter by the object’s `platformAgentPlansByThreadId` relation. */ + platformAgentPlansByThreadId?: PlatformAgentThreadToManyPlatformAgentPlanFilter; + /** `platformAgentPlansByThreadId` exist. */ + platformAgentPlansByThreadIdExist?: boolean; + /** Filter by the object’s `platformAgentRunsByThreadId` relation. */ + platformAgentRunsByThreadId?: PlatformAgentThreadToManyPlatformAgentRunFilter; + /** `platformAgentRunsByThreadId` exist. */ + platformAgentRunsByThreadIdExist?: boolean; + /** Filter by the object’s `platformAgentThreadsByParentThreadId` relation. */ + platformAgentThreadsByParentThreadId?: PlatformAgentThreadToManyPlatformAgentThreadFilter; + /** `platformAgentThreadsByParentThreadId` exist. */ + platformAgentThreadsByParentThreadIdExist?: boolean; + /** Filter by the object’s `promptTemplate` relation. */ + promptTemplate?: PlatformAgentPromptFilter; + /** A related `promptTemplate` exists. */ + promptTemplateExists?: boolean; + /** Filter by the object’s `promptTemplateId` field. */ + promptTemplateId?: UUIDFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `systemPrompt` field. */ + systemPrompt?: StringFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Filter by the object’s `title` field. */ + title?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `visibility` field. */ + visibility?: StringFilter; +} +// ============ OrderBy Types ============ +export type AgentOrderBy = + | 'CONFIG_ASC' + | 'CONFIG_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_EPHEMERAL_ASC' + | 'IS_EPHEMERAL_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'PARENT_ID_ASC' + | 'PARENT_ID_DESC' + | 'PERSONA_ID_ASC' + | 'PERSONA_ID_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'SYSTEM_PROMPT_ASC' + | 'SYSTEM_PROMPT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type AgentMessageOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'AGENT_ID_ASC' + | 'AGENT_ID_DESC' + | 'AUTHOR_ROLE_ASC' + | 'AUTHOR_ROLE_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'KIND_ASC' + | 'KIND_DESC' + | 'MODEL_ASC' + | 'MODEL_DESC' + | 'NATURAL' + | 'PARTS_ASC' + | 'PARTS_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'THREAD_ID_ASC' + | 'THREAD_ID_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'VISIBILITY_ASC' + | 'VISIBILITY_DESC'; +export type AgentPersonaOrderBy = + | 'CONFIG_ASC' + | 'CONFIG_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_ACTIVE_ASC' + | 'IS_ACTIVE_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'RESOURCES_ASC' + | 'RESOURCES_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'SYSTEM_PROMPT_ASC' + | 'SYSTEM_PROMPT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +export type AgentPlanOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'THREAD_ID_ASC' + | 'THREAD_ID_DESC' + | 'TITLE_ASC' + | 'TITLE_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'VISIBILITY_ASC' + | 'VISIBILITY_DESC'; +export type AgentPromptOrderBy = + | 'CONTENT_ASC' + | 'CONTENT_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_DEFAULT_ASC' + | 'IS_DEFAULT_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +export type AgentResourceChunkOrderBy = + | 'AGENT_RESOURCE_ID_ASC' + | 'AGENT_RESOURCE_ID_DESC' + | 'BODY_ASC' + | 'BODY_DESC' + | 'CHUNK_INDEX_ASC' + | 'CHUNK_INDEX_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'EMBEDDING_ASC' + | 'EMBEDDING_DESC' + | 'EMBEDDING_VECTOR_DISTANCE_ASC' + | 'EMBEDDING_VECTOR_DISTANCE_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'SEARCH_SCORE_ASC' + | 'SEARCH_SCORE_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type AgentResourceOrderBy = + | 'ARCHIVED_AT_ASC' + | 'ARCHIVED_AT_DESC' + | 'BODY_ASC' + | 'BODY_DESC' + | 'BODY_TRGM_SIMILARITY_ASC' + | 'BODY_TRGM_SIMILARITY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'DESCRIPTION_TRGM_SIMILARITY_ASC' + | 'DESCRIPTION_TRGM_SIMILARITY_DESC' + | 'EMBEDDING_ASC' + | 'EMBEDDING_DESC' + | 'EMBEDDING_UPDATED_AT_ASC' + | 'EMBEDDING_UPDATED_AT_DESC' + | 'EMBEDDING_VECTOR_DISTANCE_ASC' + | 'EMBEDDING_VECTOR_DISTANCE_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_ACTIVE_ASC' + | 'IS_ACTIVE_DESC' + | 'IS_ARCHIVED_ASC' + | 'IS_ARCHIVED_DESC' + | 'KEYWORDS_ASC' + | 'KEYWORDS_DESC' + | 'KIND_ASC' + | 'KIND_DESC' + | 'KIND_TRGM_SIMILARITY_ASC' + | 'KIND_TRGM_SIMILARITY_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'SEARCH_ASC' + | 'SEARCH_DESC' + | 'SEARCH_SCORE_ASC' + | 'SEARCH_SCORE_DESC' + | 'SEARCH_TSV_RANK_ASC' + | 'SEARCH_TSV_RANK_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'TITLE_ASC' + | 'TITLE_DESC' + | 'TITLE_TRGM_SIMILARITY_ASC' + | 'TITLE_TRGM_SIMILARITY_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +export type AgentTaskOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'APPROVAL_FEEDBACK_ASC' + | 'APPROVAL_FEEDBACK_DESC' + | 'APPROVAL_STATUS_ASC' + | 'APPROVAL_STATUS_DESC' + | 'APPROVED_AT_ASC' + | 'APPROVED_AT_DESC' + | 'APPROVED_BY_ASC' + | 'APPROVED_BY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'ERROR_ASC' + | 'ERROR_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' + | 'ORDER_INDEX_ASC' + | 'ORDER_INDEX_DESC' + | 'PLAN_ID_ASC' + | 'PLAN_ID_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'REQUIRES_APPROVAL_ASC' + | 'REQUIRES_APPROVAL_DESC' + | 'SOURCE_ASC' + | 'SOURCE_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'VISIBILITY_ASC' + | 'VISIBILITY_DESC'; +export type AgentThreadOrderBy = + | 'AGENT_ID_ASC' + | 'AGENT_ID_DESC' + | 'ARCHIVED_AT_ASC' + | 'ARCHIVED_AT_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_ARCHIVED_ASC' + | 'IS_ARCHIVED_DESC' + | 'MODEL_ASC' + | 'MODEL_DESC' + | 'MODE_ASC' + | 'MODE_DESC' + | 'NATURAL' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'PARENT_THREAD_ID_ASC' + | 'PARENT_THREAD_ID_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PROMPT_TEMPLATE_ID_ASC' + | 'PROMPT_TEMPLATE_ID_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'SYSTEM_PROMPT_ASC' + | 'SYSTEM_PROMPT_DESC' + | 'TAGS_ASC' + | 'TAGS_DESC' + | 'TITLE_ASC' + | 'TITLE_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'VISIBILITY_ASC' + | 'VISIBILITY_DESC'; +export type PlatformAgentOrderBy = + | 'CONFIG_ASC' + | 'CONFIG_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_EPHEMERAL_ASC' + | 'IS_EPHEMERAL_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'PARENT_ID_ASC' + | 'PARENT_ID_DESC' + | 'PERSONA_ID_ASC' + | 'PERSONA_ID_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'SYSTEM_PROMPT_ASC' + | 'SYSTEM_PROMPT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type PlatformAgentEventOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ENTRY_ASC' + | 'ENTRY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'RECORDED_AT_ASC' + | 'RECORDED_AT_DESC' + | 'RUN_ID_ASC' + | 'RUN_ID_DESC' + | 'SEQ_ASC' + | 'SEQ_DESC' + | 'TRANSCRIPT_FORMAT_ASC' + | 'TRANSCRIPT_FORMAT_DESC' + | 'TRANSCRIPT_VERSION_ASC' + | 'TRANSCRIPT_VERSION_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'VISIBILITY_ASC' + | 'VISIBILITY_DESC'; +export type PlatformAgentMessageOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'AGENT_ID_ASC' + | 'AGENT_ID_DESC' + | 'AUTHOR_ROLE_ASC' + | 'AUTHOR_ROLE_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DELIVERED_RUN_ID_ASC' + | 'DELIVERED_RUN_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'KIND_ASC' + | 'KIND_DESC' + | 'MODEL_ASC' | 'MODEL_DESC' | 'NATURAL' | 'PARTS_ASC' @@ -1202,16 +2899,18 @@ export type AgentMessageOrderBy = | 'THREAD_ID_ASC' | 'THREAD_ID_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type AgentPersonaOrderBy = + | 'UPDATED_AT_DESC' + | 'VISIBILITY_ASC' + | 'VISIBILITY_DESC'; +export type PlatformAgentPersonaOrderBy = | 'CONFIG_ASC' | 'CONFIG_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'CREATED_BY_ASC' | 'CREATED_BY_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' | 'ID_ASC' @@ -1232,12 +2931,12 @@ export type AgentPersonaOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC'; -export type AgentPlanOrderBy = + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +export type PlatformAgentPlanOrderBy = | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' | 'ID_ASC' @@ -1254,16 +2953,18 @@ export type AgentPlanOrderBy = | 'TITLE_ASC' | 'TITLE_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type AgentPromptOrderBy = + | 'UPDATED_AT_DESC' + | 'VISIBILITY_ASC' + | 'VISIBILITY_DESC'; +export type PlatformAgentPromptOrderBy = | 'CONTENT_ASC' | 'CONTENT_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'CREATED_BY_ASC' | 'CREATED_BY_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' | 'ID_ASC' @@ -1280,10 +2981,10 @@ export type AgentPromptOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC'; -export type AgentResourceChunkOrderBy = - | 'AGENT_RESOURCE_ID_ASC' - | 'AGENT_RESOURCE_ID_DESC' + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +export type PlatformAgentResourceChunkOrderBy = | 'BODY_ASC' | 'BODY_DESC' | 'CHUNK_INDEX_ASC' @@ -1299,13 +3000,15 @@ export type AgentResourceChunkOrderBy = | 'METADATA_ASC' | 'METADATA_DESC' | 'NATURAL' + | 'PLATFORM_AGENT_RESOURCE_ID_ASC' + | 'PLATFORM_AGENT_RESOURCE_ID_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'SEARCH_SCORE_ASC' | 'SEARCH_SCORE_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type AgentResourceOrderBy = +export type PlatformAgentResourceOrderBy = | 'ARCHIVED_AT_ASC' | 'ARCHIVED_AT_DESC' | 'BODY_ASC' @@ -1316,8 +3019,8 @@ export type AgentResourceOrderBy = | 'CREATED_AT_DESC' | 'CREATED_BY_ASC' | 'CREATED_BY_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' | 'DESCRIPTION_TRGM_SIMILARITY_ASC' @@ -1360,8 +3063,108 @@ export type AgentResourceOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC'; -export type AgentTaskOrderBy = + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +export type PlatformAgentRunOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'ARTIFACTS_ASC' + | 'ARTIFACTS_DESC' + | 'ATTEMPT_ASC' + | 'ATTEMPT_DESC' + | 'BASE_COMMIT_ASC' + | 'BASE_COMMIT_DESC' + | 'BRANCH_ASC' + | 'BRANCH_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DEADLINE_AT_ASC' + | 'DEADLINE_AT_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'ERROR_ASC' + | 'ERROR_DESC' + | 'EXECUTION_ID_ASC' + | 'EXECUTION_ID_DESC' + | 'FINISHED_AT_ASC' + | 'FINISHED_AT_DESC' + | 'HEAD_COMMIT_ASC' + | 'HEAD_COMMIT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'LAST_EVENT_SEQ_ASC' + | 'LAST_EVENT_SEQ_DESC' + | 'NATURAL' + | 'PARENT_RUN_ID_ASC' + | 'PARENT_RUN_ID_DESC' + | 'PLACEMENT_ASC' + | 'PLACEMENT_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PRINCIPAL_ID_ASC' + | 'PRINCIPAL_ID_DESC' + | 'REPO_URL_ASC' + | 'REPO_URL_DESC' + | 'STARTED_AT_ASC' + | 'STARTED_AT_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'THREAD_ID_ASC' + | 'THREAD_ID_DESC' + | 'TOKEN_USAGE_ASC' + | 'TOKEN_USAGE_DESC' + | 'TOTAL_COST_ASC' + | 'TOTAL_COST_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'VISIBILITY_ASC' + | 'VISIBILITY_DESC'; +export type PlatformAgentRunWorkspaceOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'ARTIFACTS_ASC' + | 'ARTIFACTS_DESC' + | 'BASE_BRANCH_ASC' + | 'BASE_BRANCH_DESC' + | 'BASE_COMMIT_ASC' + | 'BASE_COMMIT_DESC' + | 'BRANCH_ASC' + | 'BRANCH_DESC' + | 'CLONED_AT_ASC' + | 'CLONED_AT_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'HEAD_COMMIT_ASC' + | 'HEAD_COMMIT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'LAST_USED_AT_ASC' + | 'LAST_USED_AT_DESC' + | 'NATURAL' + | 'ORDINAL_ASC' + | 'ORDINAL_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PROVIDER_ASC' + | 'PROVIDER_DESC' + | 'PUBLICATION_ASC' + | 'PUBLICATION_DESC' + | 'REPOSITORY_ID_ASC' + | 'REPOSITORY_ID_DESC' + | 'REPO_ASC' + | 'REPO_DESC' + | 'RUN_ID_ASC' + | 'RUN_ID_DESC' + | 'STATE_ASC' + | 'STATE_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'VISIBILITY_ASC' + | 'VISIBILITY_DESC'; +export type PlatformAgentTaskOrderBy = | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'APPROVAL_FEEDBACK_ASC' @@ -1374,8 +3177,6 @@ export type AgentTaskOrderBy = | 'APPROVED_BY_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' | 'ERROR_ASC' @@ -1396,16 +3197,16 @@ export type AgentTaskOrderBy = | 'STATUS_ASC' | 'STATUS_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type AgentThreadOrderBy = + | 'UPDATED_AT_DESC' + | 'VISIBILITY_ASC' + | 'VISIBILITY_DESC'; +export type PlatformAgentThreadOrderBy = | 'AGENT_ID_ASC' | 'AGENT_ID_DESC' | 'ARCHIVED_AT_ASC' | 'ARCHIVED_AT_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' | 'ID_ASC' | 'ID_DESC' | 'IS_ARCHIVED_ASC' @@ -1432,439 +3233,2488 @@ export type AgentThreadOrderBy = | 'TITLE_ASC' | 'TITLE_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; + | 'UPDATED_AT_DESC' + | 'VISIBILITY_ASC' + | 'VISIBILITY_DESC'; // ============ CRUD Input Types ============ export interface CreateAgentInput { clientMutationId?: string; - agent: { - config?: Record; - databaseId: string; - isEphemeral?: boolean; - name: string; + agent: { + config?: Record; + databaseId: string; + isEphemeral?: boolean; + name: string; + ownerId?: string; + parentId?: string; + personaId?: string; + status?: string; + systemPrompt?: string; + }; +} +export interface AgentPatch { + config?: Record | null; + databaseId?: string | null; + isEphemeral?: boolean | null; + name?: string | null; + ownerId?: string | null; + parentId?: string | null; + personaId?: string | null; + status?: string | null; + systemPrompt?: string | null; +} +export interface UpdateAgentInput { + clientMutationId?: string; + id: string; + agentPatch: AgentPatch; +} +export interface DeleteAgentInput { + clientMutationId?: string; + id: string; +} +export interface CreateAgentMessageInput { + clientMutationId?: string; + agentMessage: { + actorId?: string; + agentId?: string; + authorRole: string; + databaseId: string; + kind?: string; + model?: string; + parts?: Record; + threadId: string; + visibility?: string; + }; +} +export interface AgentMessagePatch { + actorId?: string | null; + agentId?: string | null; + authorRole?: string | null; + databaseId?: string | null; + kind?: string | null; + model?: string | null; + parts?: Record | null; + threadId?: string | null; + visibility?: string | null; +} +export interface UpdateAgentMessageInput { + clientMutationId?: string; + id: string; + agentMessagePatch: AgentMessagePatch; +} +export interface DeleteAgentMessageInput { + clientMutationId?: string; + id: string; +} +export interface CreateAgentPersonaInput { + clientMutationId?: string; + agentPersona: { + config?: Record; + createdBy?: string; + createdByPrincipal?: string; + databaseId: string; + description?: string; + isActive?: boolean; + name: string; + resources?: string[]; + slug: string; + systemPrompt?: string; + updatedBy?: string; + updatedByPrincipal?: string; + }; +} +export interface AgentPersonaPatch { + config?: Record | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + databaseId?: string | null; + description?: string | null; + isActive?: boolean | null; + name?: string | null; + resources?: string[] | null; + slug?: string | null; + systemPrompt?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdateAgentPersonaInput { + clientMutationId?: string; + id: string; + agentPersonaPatch: AgentPersonaPatch; +} +export interface DeleteAgentPersonaInput { + clientMutationId?: string; + id: string; +} +export interface CreateAgentPlanInput { + clientMutationId?: string; + agentPlan: { + databaseId: string; + description?: string; + ownerId?: string; + status?: string; + threadId: string; + title: string; + visibility?: string; + }; +} +export interface AgentPlanPatch { + databaseId?: string | null; + description?: string | null; + ownerId?: string | null; + status?: string | null; + threadId?: string | null; + title?: string | null; + visibility?: string | null; +} +export interface UpdateAgentPlanInput { + clientMutationId?: string; + id: string; + agentPlanPatch: AgentPlanPatch; +} +export interface DeleteAgentPlanInput { + clientMutationId?: string; + id: string; +} +export interface CreateAgentPromptInput { + clientMutationId?: string; + agentPrompt: { + content: string; + createdBy?: string; + createdByPrincipal?: string; + databaseId: string; + description?: string; + isDefault?: boolean; + metadata?: Record; + name: string; + updatedBy?: string; + updatedByPrincipal?: string; + }; +} +export interface AgentPromptPatch { + content?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + databaseId?: string | null; + description?: string | null; + isDefault?: boolean | null; + metadata?: Record | null; + name?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdateAgentPromptInput { + clientMutationId?: string; + id: string; + agentPromptPatch: AgentPromptPatch; +} +export interface DeleteAgentPromptInput { + clientMutationId?: string; + id: string; +} +export interface CreateAgentResourceChunkInput { + clientMutationId?: string; + agentResourceChunk: { + agentResourceId: string; + body: string; + chunkIndex?: number; + databaseId?: string; + embedding?: number[]; + embeddingText?: string; + metadata?: Record; + }; +} +export interface AgentResourceChunkPatch { + agentResourceId?: string | null; + body?: string | null; + chunkIndex?: number | null; + databaseId?: string | null; + embedding?: number[] | null; + embeddingText?: string | null; + metadata?: Record | null; +} +export interface UpdateAgentResourceChunkInput { + clientMutationId?: string; + id: string; + agentResourceChunkPatch: AgentResourceChunkPatch; +} +export interface DeleteAgentResourceChunkInput { + clientMutationId?: string; + id: string; +} +export interface CreateAgentResourceInput { + clientMutationId?: string; + agentResource: { + archivedAt?: string; + body: string; + createdBy?: string; + createdByPrincipal?: string; + databaseId: string; + description?: string; + embedding?: number[]; + embeddingText?: string; + isActive?: boolean; + isArchived?: boolean; + keywords?: string[]; + kind?: string; + metadata?: Record; + slug: string; + title: string; + updatedBy?: string; + updatedByPrincipal?: string; + }; +} +export interface AgentResourcePatch { + archivedAt?: string | null; + body?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + databaseId?: string | null; + description?: string | null; + embedding?: number[] | null; + embeddingText?: string | null; + isActive?: boolean | null; + isArchived?: boolean | null; + keywords?: string[] | null; + kind?: string | null; + metadata?: Record | null; + slug?: string | null; + title?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdateAgentResourceInput { + clientMutationId?: string; + id: string; + agentResourcePatch: AgentResourcePatch; +} +export interface DeleteAgentResourceInput { + clientMutationId?: string; + id: string; +} +export interface CreateAgentTaskInput { + clientMutationId?: string; + agentTask: { + actorId?: string; + approvalFeedback?: string; + approvalStatus?: string; + approvedAt?: string; + approvedBy?: string; + databaseId: string; + description: string; + error?: string; + orderIndex?: number; + planId: string; + requiresApproval?: boolean; + source?: string; + status?: string; + visibility?: string; + }; +} +export interface AgentTaskPatch { + actorId?: string | null; + approvalFeedback?: string | null; + approvalStatus?: string | null; + approvedAt?: string | null; + approvedBy?: string | null; + databaseId?: string | null; + description?: string | null; + error?: string | null; + orderIndex?: number | null; + planId?: string | null; + requiresApproval?: boolean | null; + source?: string | null; + status?: string | null; + visibility?: string | null; +} +export interface UpdateAgentTaskInput { + clientMutationId?: string; + id: string; + agentTaskPatch: AgentTaskPatch; +} +export interface DeleteAgentTaskInput { + clientMutationId?: string; + id: string; +} +export interface CreateAgentThreadInput { + clientMutationId?: string; + agentThread: { + agentId?: string; + archivedAt?: string; + databaseId: string; + isArchived?: boolean; + mode?: string; + model?: string; + ownerId?: string; + parentThreadId?: string; + promptTemplateId?: string; + status?: string; + systemPrompt?: string; + tags?: string[]; + title?: string; + visibility?: string; + }; +} +export interface AgentThreadPatch { + agentId?: string | null; + archivedAt?: string | null; + databaseId?: string | null; + isArchived?: boolean | null; + mode?: string | null; + model?: string | null; + ownerId?: string | null; + parentThreadId?: string | null; + promptTemplateId?: string | null; + status?: string | null; + systemPrompt?: string | null; + tags?: string[] | null; + title?: string | null; + visibility?: string | null; +} +export interface UpdateAgentThreadInput { + clientMutationId?: string; + id: string; + agentThreadPatch: AgentThreadPatch; +} +export interface DeleteAgentThreadInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformAgentInput { + clientMutationId?: string; + platformAgent: { + config?: Record; + isEphemeral?: boolean; + name: string; + ownerId?: string; + parentId?: string; + personaId?: string; + status?: string; + systemPrompt?: string; + }; +} +export interface PlatformAgentPatch { + config?: Record | null; + isEphemeral?: boolean | null; + name?: string | null; + ownerId?: string | null; + parentId?: string | null; + personaId?: string | null; + status?: string | null; + systemPrompt?: string | null; +} +export interface UpdatePlatformAgentInput { + clientMutationId?: string; + id: string; + platformAgentPatch: PlatformAgentPatch; +} +export interface DeletePlatformAgentInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformAgentEventInput { + clientMutationId?: string; + platformAgentEvent: { + actorId?: string; + entry: Record; + recordedAt: string; + runId: string; + seq: number; + transcriptFormat?: string; + transcriptVersion: number; + visibility?: string; + }; +} +export interface PlatformAgentEventPatch { + actorId?: string | null; + entry?: Record | null; + recordedAt?: string | null; + runId?: string | null; + seq?: number | null; + transcriptFormat?: string | null; + transcriptVersion?: number | null; + visibility?: string | null; +} +export interface UpdatePlatformAgentEventInput { + clientMutationId?: string; + id: string; + platformAgentEventPatch: PlatformAgentEventPatch; +} +export interface DeletePlatformAgentEventInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformAgentMessageInput { + clientMutationId?: string; + platformAgentMessage: { + actorId?: string; + agentId?: string; + authorRole: string; + deliveredRunId?: string; + kind?: string; + model?: string; + parts?: Record; + threadId: string; + visibility?: string; + }; +} +export interface PlatformAgentMessagePatch { + actorId?: string | null; + agentId?: string | null; + authorRole?: string | null; + deliveredRunId?: string | null; + kind?: string | null; + model?: string | null; + parts?: Record | null; + threadId?: string | null; + visibility?: string | null; +} +export interface UpdatePlatformAgentMessageInput { + clientMutationId?: string; + id: string; + platformAgentMessagePatch: PlatformAgentMessagePatch; +} +export interface DeletePlatformAgentMessageInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformAgentPersonaInput { + clientMutationId?: string; + platformAgentPersona: { + config?: Record; + createdBy?: string; + createdByPrincipal?: string; + description?: string; + isActive?: boolean; + name: string; + resources?: string[]; + slug: string; + systemPrompt?: string; + updatedBy?: string; + updatedByPrincipal?: string; + }; +} +export interface PlatformAgentPersonaPatch { + config?: Record | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + description?: string | null; + isActive?: boolean | null; + name?: string | null; + resources?: string[] | null; + slug?: string | null; + systemPrompt?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdatePlatformAgentPersonaInput { + clientMutationId?: string; + id: string; + platformAgentPersonaPatch: PlatformAgentPersonaPatch; +} +export interface DeletePlatformAgentPersonaInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformAgentPlanInput { + clientMutationId?: string; + platformAgentPlan: { + description?: string; + ownerId?: string; + status?: string; + threadId: string; + title: string; + visibility?: string; + }; +} +export interface PlatformAgentPlanPatch { + description?: string | null; + ownerId?: string | null; + status?: string | null; + threadId?: string | null; + title?: string | null; + visibility?: string | null; +} +export interface UpdatePlatformAgentPlanInput { + clientMutationId?: string; + id: string; + platformAgentPlanPatch: PlatformAgentPlanPatch; +} +export interface DeletePlatformAgentPlanInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformAgentPromptInput { + clientMutationId?: string; + platformAgentPrompt: { + content: string; + createdBy?: string; + createdByPrincipal?: string; + description?: string; + isDefault?: boolean; + metadata?: Record; + name: string; + updatedBy?: string; + updatedByPrincipal?: string; + }; +} +export interface PlatformAgentPromptPatch { + content?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + description?: string | null; + isDefault?: boolean | null; + metadata?: Record | null; + name?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdatePlatformAgentPromptInput { + clientMutationId?: string; + id: string; + platformAgentPromptPatch: PlatformAgentPromptPatch; +} +export interface DeletePlatformAgentPromptInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformAgentResourceChunkInput { + clientMutationId?: string; + platformAgentResourceChunk: { + body: string; + chunkIndex?: number; + embedding?: number[]; + embeddingText?: string; + metadata?: Record; + platformAgentResourceId: string; + }; +} +export interface PlatformAgentResourceChunkPatch { + body?: string | null; + chunkIndex?: number | null; + embedding?: number[] | null; + embeddingText?: string | null; + metadata?: Record | null; + platformAgentResourceId?: string | null; +} +export interface UpdatePlatformAgentResourceChunkInput { + clientMutationId?: string; + id: string; + platformAgentResourceChunkPatch: PlatformAgentResourceChunkPatch; +} +export interface DeletePlatformAgentResourceChunkInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformAgentResourceInput { + clientMutationId?: string; + platformAgentResource: { + archivedAt?: string; + body: string; + createdBy?: string; + createdByPrincipal?: string; + description?: string; + embedding?: number[]; + embeddingText?: string; + isActive?: boolean; + isArchived?: boolean; + keywords?: string[]; + kind?: string; + metadata?: Record; + slug: string; + title: string; + updatedBy?: string; + updatedByPrincipal?: string; + }; +} +export interface PlatformAgentResourcePatch { + archivedAt?: string | null; + body?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + description?: string | null; + embedding?: number[] | null; + embeddingText?: string | null; + isActive?: boolean | null; + isArchived?: boolean | null; + keywords?: string[] | null; + kind?: string | null; + metadata?: Record | null; + slug?: string | null; + title?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdatePlatformAgentResourceInput { + clientMutationId?: string; + id: string; + platformAgentResourcePatch: PlatformAgentResourcePatch; +} +export interface DeletePlatformAgentResourceInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformAgentRunInput { + clientMutationId?: string; + platformAgentRun: { + actorId?: string; + artifacts?: Record; + attempt?: number; + baseCommit?: string; + branch?: string; + databaseId?: string; + deadlineAt?: string; + entityId?: string; + error?: string; + executionId?: string; + finishedAt?: string; + headCommit?: string; + lastEventSeq?: number; + parentRunId?: string; + placement?: string; + principalId?: string; + repoUrl?: string; + startedAt?: string; + status?: string; + threadId: string; + tokenUsage?: Record; + totalCost?: string; + visibility?: string; + }; +} +export interface PlatformAgentRunPatch { + actorId?: string | null; + artifacts?: Record | null; + attempt?: number | null; + baseCommit?: string | null; + branch?: string | null; + databaseId?: string | null; + deadlineAt?: string | null; + entityId?: string | null; + error?: string | null; + executionId?: string | null; + finishedAt?: string | null; + headCommit?: string | null; + lastEventSeq?: number | null; + parentRunId?: string | null; + placement?: string | null; + principalId?: string | null; + repoUrl?: string | null; + startedAt?: string | null; + status?: string | null; + threadId?: string | null; + tokenUsage?: Record | null; + totalCost?: string | null; + visibility?: string | null; +} +export interface UpdatePlatformAgentRunInput { + clientMutationId?: string; + id: string; + platformAgentRunPatch: PlatformAgentRunPatch; +} +export interface DeletePlatformAgentRunInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformAgentRunWorkspaceInput { + clientMutationId?: string; + platformAgentRunWorkspace: { + actorId?: string; + artifacts?: Record; + baseBranch: string; + baseCommit?: string; + branch: string; + clonedAt?: string; + headCommit?: string; + lastUsedAt?: string; + ordinal?: number; + provider: string; + publication?: string; + repo: string; + repositoryId?: string; + runId: string; + state?: string; + visibility?: string; + }; +} +export interface PlatformAgentRunWorkspacePatch { + actorId?: string | null; + artifacts?: Record | null; + baseBranch?: string | null; + baseCommit?: string | null; + branch?: string | null; + clonedAt?: string | null; + headCommit?: string | null; + lastUsedAt?: string | null; + ordinal?: number | null; + provider?: string | null; + publication?: string | null; + repo?: string | null; + repositoryId?: string | null; + runId?: string | null; + state?: string | null; + visibility?: string | null; +} +export interface UpdatePlatformAgentRunWorkspaceInput { + clientMutationId?: string; + id: string; + platformAgentRunWorkspacePatch: PlatformAgentRunWorkspacePatch; +} +export interface DeletePlatformAgentRunWorkspaceInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformAgentTaskInput { + clientMutationId?: string; + platformAgentTask: { + actorId?: string; + approvalFeedback?: string; + approvalStatus?: string; + approvedAt?: string; + approvedBy?: string; + description: string; + error?: string; + orderIndex?: number; + planId: string; + requiresApproval?: boolean; + source?: string; + status?: string; + visibility?: string; + }; +} +export interface PlatformAgentTaskPatch { + actorId?: string | null; + approvalFeedback?: string | null; + approvalStatus?: string | null; + approvedAt?: string | null; + approvedBy?: string | null; + description?: string | null; + error?: string | null; + orderIndex?: number | null; + planId?: string | null; + requiresApproval?: boolean | null; + source?: string | null; + status?: string | null; + visibility?: string | null; +} +export interface UpdatePlatformAgentTaskInput { + clientMutationId?: string; + id: string; + platformAgentTaskPatch: PlatformAgentTaskPatch; +} +export interface DeletePlatformAgentTaskInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformAgentThreadInput { + clientMutationId?: string; + platformAgentThread: { + agentId?: string; + archivedAt?: string; + isArchived?: boolean; + mode?: string; + model?: string; ownerId?: string; - parentId?: string; - personaId?: string; + parentThreadId?: string; + promptTemplateId?: string; status?: string; systemPrompt?: string; + tags?: string[]; + title?: string; + visibility?: string; }; } -export interface AgentPatch { - config?: Record | null; - databaseId?: string | null; - isEphemeral?: boolean | null; - name?: string | null; - ownerId?: string | null; - parentId?: string | null; - personaId?: string | null; - status?: string | null; - systemPrompt?: string | null; +export interface PlatformAgentThreadPatch { + agentId?: string | null; + archivedAt?: string | null; + isArchived?: boolean | null; + mode?: string | null; + model?: string | null; + ownerId?: string | null; + parentThreadId?: string | null; + promptTemplateId?: string | null; + status?: string | null; + systemPrompt?: string | null; + tags?: string[] | null; + title?: string | null; + visibility?: string | null; +} +export interface UpdatePlatformAgentThreadInput { + clientMutationId?: string; + id: string; + platformAgentThreadPatch: PlatformAgentThreadPatch; +} +export interface DeletePlatformAgentThreadInput { + clientMutationId?: string; + id: string; +} +// ============ Connection Fields Map ============ +export const connectionFieldsMap = { + Agent: { + agentMessages: 'AgentMessage', + agentThreads: 'AgentThread', + childAgents: 'Agent', + }, + AgentPersona: { + agentsByPersonaId: 'Agent', + }, + AgentPlan: { + agentTasksByPlanId: 'AgentTask', + }, + AgentPrompt: { + agentThreadsByPromptTemplateId: 'AgentThread', + }, + AgentResource: { + agentResourceChunks: 'AgentResourceChunk', + }, + AgentThread: { + agentMessagesByThreadId: 'AgentMessage', + agentPlansByThreadId: 'AgentPlan', + agentThreadsByParentThreadId: 'AgentThread', + }, + PlatformAgent: { + childPlatformAgents: 'PlatformAgent', + platformAgentMessagesByAgentId: 'PlatformAgentMessage', + platformAgentThreadsByAgentId: 'PlatformAgentThread', + }, + PlatformAgentPersona: { + platformAgentsByPersonaId: 'PlatformAgent', + }, + PlatformAgentPlan: { + platformAgentTasksByPlanId: 'PlatformAgentTask', + }, + PlatformAgentPrompt: { + platformAgentThreadsByPromptTemplateId: 'PlatformAgentThread', + }, + PlatformAgentResource: { + platformAgentResourceChunks: 'PlatformAgentResourceChunk', + }, + PlatformAgentRun: { + platformAgentEventsByRunId: 'PlatformAgentEvent', + platformAgentMessagesByDeliveredRunId: 'PlatformAgentMessage', + platformAgentRunWorkspacesByRunId: 'PlatformAgentRunWorkspace', + }, + PlatformAgentThread: { + platformAgentMessagesByThreadId: 'PlatformAgentMessage', + platformAgentPlansByThreadId: 'PlatformAgentPlan', + platformAgentRunsByThreadId: 'PlatformAgentRun', + platformAgentThreadsByParentThreadId: 'PlatformAgentThread', + }, +} 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; +} +/** A filter to be used against many `AgentMessage` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentToManyAgentMessageFilter { + /** Filters to entities where every related entity matches. */ + every?: AgentMessageFilter; + /** Filters to entities where no related entity matches. */ + none?: AgentMessageFilter; + /** Filters to entities where at least one related entity matches. */ + some?: AgentMessageFilter; +} +/** A filter to be used against many `AgentThread` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentToManyAgentThreadFilter { + /** Filters to entities where every related entity matches. */ + every?: AgentThreadFilter; + /** Filters to entities where no related entity matches. */ + none?: AgentThreadFilter; + /** Filters to entities where at least one related entity matches. */ + some?: AgentThreadFilter; +} +/** A filter to be used against many `Agent` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentToManyAgentFilter { + /** Filters to entities where every related entity matches. */ + every?: AgentFilter; + /** Filters to entities where no related entity matches. */ + none?: AgentFilter; + /** Filters to entities where at least one related entity matches. */ + some?: AgentFilter; +} +/** A filter to be used against many `Agent` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentPersonaToManyAgentFilter { + /** Filters to entities where every related entity matches. */ + every?: AgentFilter; + /** Filters to entities where no related entity matches. */ + none?: AgentFilter; + /** Filters to entities where at least one related entity matches. */ + some?: AgentFilter; +} +/** A filter to be used against many `AgentTask` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentPlanToManyAgentTaskFilter { + /** Filters to entities where every related entity matches. */ + every?: AgentTaskFilter; + /** Filters to entities where no related entity matches. */ + none?: AgentTaskFilter; + /** Filters to entities where at least one related entity matches. */ + some?: AgentTaskFilter; +} +/** A filter to be used against many `AgentThread` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentPromptToManyAgentThreadFilter { + /** Filters to entities where every related entity matches. */ + every?: AgentThreadFilter; + /** Filters to entities where no related entity matches. */ + none?: AgentThreadFilter; + /** Filters to entities where at least one related entity matches. */ + some?: AgentThreadFilter; +} +/** Input for vector similarity search. Provide a query vector, optional metric, and optional max distance threshold. */ +export interface VectorNearbyInput { + /** Maximum distance threshold. Only rows within this distance are returned. */ + distance?: number; + /** When true (default for tables with @hasChunks), transparently queries the chunks table and returns the minimum distance across parent + all chunks. Set to false to only search the parent embedding. */ + includeChunks?: boolean; + /** Similarity metric to use (default: COSINE). */ + metric?: VectorMetric; + /** Natural language text to embed server-side for similarity search. Mutually exclusive with `vector` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + text?: string; + /** Query vector for similarity search. */ + vector: number[]; +} +/** A filter to be used against many `AgentResourceChunk` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentResourceToManyAgentResourceChunkFilter { + /** Filters to entities where every related entity matches. */ + every?: AgentResourceChunkFilter; + /** Filters to entities where no related entity matches. */ + none?: AgentResourceChunkFilter; + /** Filters to entities where at least one related entity matches. */ + some?: AgentResourceChunkFilter; +} +/** A filter to be used against String fields with pg_trgm support. All fields are combined with a logical ‘and.’ */ +export interface StringTrgmFilter { + /** 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; + /** Fuzzy matches using pg_trgm trigram similarity. Tolerates typos and misspellings. */ + similarTo?: TrgmSearchInput; + /** Starts with the specified string (case-sensitive). */ + startsWith?: string; + /** Starts with the specified string (case-insensitive). */ + startsWithInsensitive?: string; + /** Fuzzy matches using pg_trgm word_similarity. Finds the best matching substring within the column value. */ + wordSimilarTo?: TrgmSearchInput; +} +/** Input for pg_trgm fuzzy text matching. Provide a search value and optional similarity threshold. */ +export interface TrgmSearchInput { + /** Minimum similarity threshold (0.0 to 1.0). Higher = stricter matching. Default is 0.3. */ + threshold?: number; + /** The text to fuzzy-match against. Typos and misspellings are tolerated. */ + value: string; +} +/** A filter to be used against many `AgentMessage` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentThreadToManyAgentMessageFilter { + /** Filters to entities where every related entity matches. */ + every?: AgentMessageFilter; + /** Filters to entities where no related entity matches. */ + none?: AgentMessageFilter; + /** Filters to entities where at least one related entity matches. */ + some?: AgentMessageFilter; } -export interface UpdateAgentInput { - clientMutationId?: string; - id: string; - agentPatch: AgentPatch; +/** A filter to be used against many `AgentPlan` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentThreadToManyAgentPlanFilter { + /** Filters to entities where every related entity matches. */ + every?: AgentPlanFilter; + /** Filters to entities where no related entity matches. */ + none?: AgentPlanFilter; + /** Filters to entities where at least one related entity matches. */ + some?: AgentPlanFilter; } -export interface DeleteAgentInput { - clientMutationId?: string; - id: string; +/** A filter to be used against many `AgentThread` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentThreadToManyAgentThreadFilter { + /** Filters to entities where every related entity matches. */ + every?: AgentThreadFilter; + /** Filters to entities where no related entity matches. */ + none?: AgentThreadFilter; + /** Filters to entities where at least one related entity matches. */ + some?: AgentThreadFilter; } -export interface CreateAgentMessageInput { - clientMutationId?: string; - agentMessage: { - actorId?: string; - agentId?: string; - authorRole: string; - databaseId: string; - model?: string; - parts?: Record; - threadId: string; - }; +/** A filter to be used against many `PlatformAgent` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentToManyPlatformAgentFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformAgentFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformAgentFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformAgentFilter; } -export interface AgentMessagePatch { - actorId?: string | null; - agentId?: string | null; - authorRole?: string | null; - databaseId?: string | null; - model?: string | null; - parts?: Record | null; - threadId?: string | null; +/** A filter to be used against many `PlatformAgentMessage` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentToManyPlatformAgentMessageFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformAgentMessageFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformAgentMessageFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformAgentMessageFilter; } -export interface UpdateAgentMessageInput { - clientMutationId?: string; - id: string; - agentMessagePatch: AgentMessagePatch; +/** A filter to be used against many `PlatformAgentThread` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentToManyPlatformAgentThreadFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformAgentThreadFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformAgentThreadFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformAgentThreadFilter; } -export interface DeleteAgentMessageInput { - clientMutationId?: string; - id: string; +/** A filter to be used against many `PlatformAgent` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentPersonaToManyPlatformAgentFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformAgentFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformAgentFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformAgentFilter; } -export interface CreateAgentPersonaInput { - clientMutationId?: string; - agentPersona: { - config?: Record; - createdBy?: string; - databaseId: string; - description?: string; - isActive?: boolean; - name: string; - resources?: string[]; - slug: string; - systemPrompt?: string; - updatedBy?: string; - }; +/** A filter to be used against many `PlatformAgentTask` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentPlanToManyPlatformAgentTaskFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformAgentTaskFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformAgentTaskFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformAgentTaskFilter; } -export interface AgentPersonaPatch { - config?: Record | null; - createdBy?: string | null; - databaseId?: string | null; - description?: string | null; - isActive?: boolean | null; - name?: string | null; - resources?: string[] | null; - slug?: string | null; - systemPrompt?: string | null; - updatedBy?: string | null; +/** A filter to be used against many `PlatformAgentThread` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentPromptToManyPlatformAgentThreadFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformAgentThreadFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformAgentThreadFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformAgentThreadFilter; } -export interface UpdateAgentPersonaInput { - clientMutationId?: string; - id: string; - agentPersonaPatch: AgentPersonaPatch; +/** A filter to be used against many `PlatformAgentResourceChunk` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentResourceToManyPlatformAgentResourceChunkFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformAgentResourceChunkFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformAgentResourceChunkFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformAgentResourceChunkFilter; } -export interface DeleteAgentPersonaInput { - clientMutationId?: string; - id: string; +/** A filter to be used against many `PlatformAgentEvent` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentRunToManyPlatformAgentEventFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformAgentEventFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformAgentEventFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformAgentEventFilter; } -export interface CreateAgentPlanInput { - clientMutationId?: string; - agentPlan: { - databaseId: string; - description?: string; - ownerId?: string; - status?: string; - threadId: string; - title: string; - }; +/** A filter to be used against many `PlatformAgentMessage` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentRunToManyPlatformAgentMessageFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformAgentMessageFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformAgentMessageFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformAgentMessageFilter; } -export interface AgentPlanPatch { - databaseId?: string | null; - description?: string | null; - ownerId?: string | null; - status?: string | null; - threadId?: string | null; - title?: string | null; +/** A filter to be used against many `PlatformAgentRunWorkspace` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentRunToManyPlatformAgentRunWorkspaceFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformAgentRunWorkspaceFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformAgentRunWorkspaceFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformAgentRunWorkspaceFilter; } -export interface UpdateAgentPlanInput { - clientMutationId?: string; - id: string; - agentPlanPatch: AgentPlanPatch; +/** A filter to be used against many `PlatformAgentMessage` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentThreadToManyPlatformAgentMessageFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformAgentMessageFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformAgentMessageFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformAgentMessageFilter; } -export interface DeleteAgentPlanInput { - clientMutationId?: string; - id: string; +/** A filter to be used against many `PlatformAgentPlan` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentThreadToManyPlatformAgentPlanFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformAgentPlanFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformAgentPlanFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformAgentPlanFilter; +} +/** A filter to be used against many `PlatformAgentRun` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentThreadToManyPlatformAgentRunFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformAgentRunFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformAgentRunFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformAgentRunFilter; +} +/** A filter to be used against many `PlatformAgentThread` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentThreadToManyPlatformAgentThreadFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformAgentThreadFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformAgentThreadFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformAgentThreadFilter; +} +/** An input for mutations affecting `Agent` */ +export interface AgentInput { + /** Per-instance config overrides (model, temperature, tools) */ + config?: Record; + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + id?: string; + /** If true, agent is deleted when its spawning thread is deleted */ + isEphemeral?: boolean; + /** Display name for this agent instance */ + name: string; + /** Human who owns/manages this agent */ + ownerId?: string; + /** Parent agent (for sub-agent delegation hierarchy) */ + parentId?: string; + /** Persona template this agent was created from */ + personaId?: string; + /** Agent lifecycle status: active, paused, terminated */ + status?: string; + /** System prompt override (NULL = inherit from persona) */ + systemPrompt?: string; + updatedAt?: string; +} +/** An input for mutations affecting `AgentMessage` */ +export interface AgentMessageInput { + /** User who authored this message */ + actorId?: string; + /** Agent that authored this message (NULL for human messages) */ + agentId?: string; + /** Who authored this message: user or assistant */ + authorRole: string; + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + id?: string; + /** Turn kind: user, assistant, system, or interrupt (arrived mid-run and redirects it) */ + kind?: string; + /** LLM model that generated this response */ + model?: string; + /** Message content: TextPart and ToolPart array */ + parts?: Record; + /** Foreign key to agent_thread */ + threadId: string; + updatedAt?: string; + /** Who may read this message, inherited from the thread */ + visibility?: string; +} +/** An input for mutations affecting `AgentPersona` */ +export interface AgentPersonaInput { + /** Model preferences, temperature, tool access, constraints */ + config?: Record; + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Brief description of this persona role */ + description?: string; + id?: string; + /** Whether this persona is available for use */ + isActive?: boolean; + /** Display name for this persona */ + name: string; + /** Slugs of agent_resource entries to link when spawning */ + resources?: string[]; + /** Unique human-readable identifier for this persona */ + slug: string; + /** Default system prompt for agents using this persona */ + systemPrompt?: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; +} +/** An input for mutations affecting `AgentPlan` */ +export interface AgentPlanInput { + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Overall goal or context for this plan */ + description?: string; + id?: string; + /** User who owns this plan */ + ownerId?: string; + /** Plan lifecycle: draft, active, completed, failed, cancelled */ + status?: string; + /** Foreign key to agent_thread */ + threadId: string; + /** Human-readable plan name */ + title: string; + updatedAt?: string; + /** Who may read this plan, inherited from the thread */ + visibility?: string; +} +/** An input for mutations affecting `AgentPrompt` */ +export interface AgentPromptInput { + /** The system prompt template content */ + content: string; + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** What this prompt template is for */ + description?: string; + id?: string; + /** Whether this is the default prompt for the entity/app */ + isDefault?: boolean; + /** Variables, tags, category metadata */ + metadata?: Record; + /** Unique name for lookup (e.g. default, code-review, sales-assistant) */ + name: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; } -export interface CreateAgentPromptInput { - clientMutationId?: string; - agentPrompt: { - content: string; - createdBy?: string; - databaseId: string; - description?: string; - isDefault?: boolean; - metadata?: Record; - name: string; - updatedBy?: string; - }; +/** An input for mutations affecting `AgentResourceChunk` */ +export interface AgentResourceChunkInput { + agentResourceId: string; + body: string; + chunkIndex?: number; + createdAt?: string; + /** Policy-required field derived from source table (used by AuthzRelatedEntityMembership) */ + databaseId?: string; + embedding?: number[]; + /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + embeddingText?: string; + id?: string; + metadata?: Record; + updatedAt?: string; } -export interface AgentPromptPatch { - content?: string | null; - createdBy?: string | null; - databaseId?: string | null; - description?: string | null; - isDefault?: boolean | null; - metadata?: Record | null; - name?: string | null; - updatedBy?: string | null; +/** An input for mutations affecting `AgentResource` */ +export interface AgentResourceInput { + /** Timestamp when this record was archived, NULL if active */ + archivedAt?: string; + /** Full content (instructions for skills, reference text for knowledge) */ + body: string; + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Brief description of this resource */ + description?: string; + embedding?: number[]; + /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + embeddingText?: string; + id?: string; + /** Whether this resource is active and retrievable */ + isActive?: boolean; + /** Whether this record has been archived by the user */ + isArchived?: boolean; + /** Keywords for deterministic retrieval routing */ + keywords?: string[]; + /** Resource type: skill, knowledge, or convention */ + kind?: string; + /** Structured metadata: category, version, author, custom attributes */ + metadata?: Record; + /** Unique human-readable identifier for portable references */ + slug: string; + /** Resource name or title */ + title: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; } -export interface UpdateAgentPromptInput { - clientMutationId?: string; - id: string; - agentPromptPatch: AgentPromptPatch; +/** An input for mutations affecting `AgentTask` */ +export interface AgentTaskInput { + /** User who authored this task */ + actorId?: string; + /** Reviewer feedback or reason for the decision */ + approvalFeedback?: string; + /** Approval decision: pending, approved, rejected (NULL if not an approval task) */ + approvalStatus?: string; + /** Timestamp of the approval or rejection decision */ + approvedAt?: string; + /** User who approved or rejected this task */ + approvedBy?: string; + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Natural-language description of the work to do */ + description: string; + /** Error message captured when the task failed */ + error?: string; + id?: string; + /** Position within the plan (for ordered task lists) */ + orderIndex?: number; + /** Foreign key to agent_plan */ + planId: string; + /** Whether this task is an approval gate requiring human decision */ + requiresApproval?: boolean; + /** Who created the task: agent or user */ + source?: string; + /** Current status of this task */ + status?: string; + updatedAt?: string; + /** Who may read this task, inherited from its parent */ + visibility?: string; } -export interface DeleteAgentPromptInput { - clientMutationId?: string; - id: string; +/** An input for mutations affecting `AgentThread` */ +export interface AgentThreadInput { + /** Agent instance assigned to this thread */ + agentId?: string; + /** Timestamp when this record was archived, NULL if active */ + archivedAt?: string; + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + id?: string; + /** Whether this record has been archived by the user */ + isArchived?: boolean; + /** Conversation mode: ask (plain Q&A) or agent (tool-enabled) */ + mode?: string; + /** LLM model id this thread is bound to */ + model?: string; + /** User who owns this thread */ + ownerId?: string; + /** Parent thread that spawned this sub-conversation */ + parentThreadId?: string; + /** Optional FK to a shared prompt template */ + promptTemplateId?: string; + /** Current status of this thread */ + status?: string; + /** System prompt active for this thread */ + systemPrompt?: string; + /** User-defined labels for organizing and filtering threads */ + tags?: string[]; + /** Human-readable conversation title */ + title?: string; + updatedAt?: string; + /** Who may read this thread: private (owner only) or entity (the scope's members) */ + visibility?: string; } -export interface CreateAgentResourceChunkInput { - clientMutationId?: string; - agentResourceChunk: { - agentResourceId: string; - body: string; - chunkIndex?: number; - embedding?: number[]; - embeddingText?: string; - metadata?: Record; - }; +/** An input for mutations affecting `PlatformAgent` */ +export interface PlatformAgentInput { + /** Per-instance config overrides (model, temperature, tools) */ + config?: Record; + createdAt?: string; + id?: string; + /** If true, agent is deleted when its spawning thread is deleted */ + isEphemeral?: boolean; + /** Display name for this agent instance */ + name: string; + /** Human who owns/manages this agent */ + ownerId?: string; + /** Parent agent (for sub-agent delegation hierarchy) */ + parentId?: string; + /** Persona template this agent was created from */ + personaId?: string; + /** Agent lifecycle status: active, paused, terminated */ + status?: string; + /** System prompt override (NULL = inherit from persona) */ + systemPrompt?: string; + updatedAt?: string; } -export interface AgentResourceChunkPatch { - agentResourceId?: string | null; - body?: string | null; - chunkIndex?: number | null; - embedding?: number[] | null; - embeddingText?: string | null; - metadata?: Record | null; +/** An input for mutations affecting `PlatformAgentEvent` */ +export interface PlatformAgentEventInput { + /** User whose run this entry belongs to, inherited from the run */ + actorId?: string; + createdAt?: string; + /** The agent session entry, verbatim — every rendered surface is a projection of it */ + entry: Record; + id?: string; + /** When the writer produced this entry, by its own clock */ + recordedAt: string; + /** Foreign key to agent_run */ + runId: string; + /** Position of this entry in the run, 1-based and gapless */ + seq: number; + /** Transcript format this entry is encoded in */ + transcriptFormat?: string; + /** Version of that transcript format this entry was written in */ + transcriptVersion: number; + updatedAt?: string; + /** Who may read this entry, inherited from the run */ + visibility?: string; } -export interface UpdateAgentResourceChunkInput { - clientMutationId?: string; - id: string; - agentResourceChunkPatch: AgentResourceChunkPatch; +/** An input for mutations affecting `PlatformAgentMessage` */ +export interface PlatformAgentMessageInput { + /** User who authored this message */ + actorId?: string; + /** Agent that authored this message (NULL for human messages) */ + agentId?: string; + /** Who authored this message: user or assistant */ + authorRole: string; + createdAt?: string; + /** Run that consumed this message; null while it is still queued */ + deliveredRunId?: string; + id?: string; + /** Turn kind: user, assistant, system, or interrupt (arrived mid-run and redirects it) */ + kind?: string; + /** LLM model that generated this response */ + model?: string; + /** Message content: TextPart and ToolPart array */ + parts?: Record; + /** Foreign key to agent_thread */ + threadId: string; + updatedAt?: string; + /** Who may read this message, inherited from the thread */ + visibility?: string; } -export interface DeleteAgentResourceChunkInput { - clientMutationId?: string; - id: string; +/** An input for mutations affecting `PlatformAgentPersona` */ +export interface PlatformAgentPersonaInput { + /** Model preferences, temperature, tool access, constraints */ + config?: Record; + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** Brief description of this persona role */ + description?: string; + id?: string; + /** Whether this persona is available for use */ + isActive?: boolean; + /** Display name for this persona */ + name: string; + /** Slugs of agent_resource entries to link when spawning */ + resources?: string[]; + /** Unique human-readable identifier for this persona */ + slug: string; + /** Default system prompt for agents using this persona */ + systemPrompt?: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; } -export interface CreateAgentResourceInput { - clientMutationId?: string; - agentResource: { - archivedAt?: string; - body: string; - createdBy?: string; - databaseId: string; - description?: string; - embedding?: number[]; - embeddingText?: string; - isActive?: boolean; - isArchived?: boolean; - keywords?: string[]; - kind?: string; - metadata?: Record; - slug: string; - title: string; - updatedBy?: string; - }; +/** An input for mutations affecting `PlatformAgentPlan` */ +export interface PlatformAgentPlanInput { + createdAt?: string; + /** Overall goal or context for this plan */ + description?: string; + id?: string; + /** User who owns this plan */ + ownerId?: string; + /** Plan lifecycle: draft, active, completed, failed, cancelled */ + status?: string; + /** Foreign key to agent_thread */ + threadId: string; + /** Human-readable plan name */ + title: string; + updatedAt?: string; + /** Who may read this plan, inherited from the thread */ + visibility?: string; } -export interface AgentResourcePatch { - archivedAt?: string | null; - body?: string | null; - createdBy?: string | null; - databaseId?: string | null; - description?: string | null; - embedding?: number[] | null; - embeddingText?: string | null; - isActive?: boolean | null; - isArchived?: boolean | null; - keywords?: string[] | null; - kind?: string | null; - metadata?: Record | null; - slug?: string | null; - title?: string | null; - updatedBy?: string | null; +/** An input for mutations affecting `PlatformAgentPrompt` */ +export interface PlatformAgentPromptInput { + /** The system prompt template content */ + content: string; + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** What this prompt template is for */ + description?: string; + id?: string; + /** Whether this is the default prompt for the entity/app */ + isDefault?: boolean; + /** Variables, tags, category metadata */ + metadata?: Record; + /** Unique name for lookup (e.g. default, code-review, sales-assistant) */ + name: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; } -export interface UpdateAgentResourceInput { - clientMutationId?: string; - id: string; - agentResourcePatch: AgentResourcePatch; +/** An input for mutations affecting `PlatformAgentResourceChunk` */ +export interface PlatformAgentResourceChunkInput { + body: string; + chunkIndex?: number; + createdAt?: string; + embedding?: number[]; + /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + embeddingText?: string; + id?: string; + metadata?: Record; + platformAgentResourceId: string; + updatedAt?: string; } -export interface DeleteAgentResourceInput { - clientMutationId?: string; - id: string; +/** An input for mutations affecting `PlatformAgentResource` */ +export interface PlatformAgentResourceInput { + /** Timestamp when this record was archived, NULL if active */ + archivedAt?: string; + /** Full content (instructions for skills, reference text for knowledge) */ + body: string; + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** Brief description of this resource */ + description?: string; + embedding?: number[]; + /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + embeddingText?: string; + id?: string; + /** Whether this resource is active and retrievable */ + isActive?: boolean; + /** Whether this record has been archived by the user */ + isArchived?: boolean; + /** Keywords for deterministic retrieval routing */ + keywords?: string[]; + /** Resource type: skill, knowledge, or convention */ + kind?: string; + /** Structured metadata: category, version, author, custom attributes */ + metadata?: Record; + /** Unique human-readable identifier for portable references */ + slug: string; + /** Resource name or title */ + title: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; } -export interface CreateAgentTaskInput { - clientMutationId?: string; - agentTask: { - actorId?: string; - approvalFeedback?: string; - approvalStatus?: string; - approvedAt?: string; - approvedBy?: string; - databaseId: string; - description: string; - error?: string; - orderIndex?: number; - planId: string; - requiresApproval?: boolean; - source?: string; - status?: string; - }; +/** An input for mutations affecting `PlatformAgentRun` */ +export interface PlatformAgentRunInput { + /** User who invoked this run (audit/provenance; billing is entity_id) */ + actorId?: string; + /** What the run produced: commits, diffs, pull requests, usage totals */ + artifacts?: Record; + /** Attempt number within this run lineage */ + attempt?: number; + /** Commit the run started from */ + baseCommit?: string; + /** Branch the run commits to */ + branch?: string; + createdAt?: string; + /** Tenant database this run is attributed to (usage/billing attribution) */ + databaseId?: string; + /** When a supervisor should consider this run abandoned */ + deadlineAt?: string; + /** Entity billed for this run: an org the actor invoked on behalf of, or the actor themselves */ + entityId?: string; + /** Failure reason when status is failed */ + error?: string; + /** Execution currently attached to this run, by id and without a foreign key; null when the run holds no compute */ + executionId?: string; + /** When the run reached a terminal status */ + finishedAt?: string; + /** Commit the run has reached */ + headCommit?: string; + id?: string; + /** Highest event seq appended for this run; 0 before the first event */ + lastEventSeq?: number; + /** Run this one retries, by id and without a foreign key so lineage survives pruning */ + parentRunId?: string; + /** Where this run executes: cloud (a job) or local (an embedded host) */ + placement?: string; + /** Principal that invoked this run; equals actor_id when the actor acted directly */ + principalId?: string; + /** Git remote the run works against — the workspace sync protocol */ + repoUrl?: string; + /** When the run began executing */ + startedAt?: string; + /** Lifecycle state: pending, running, waiting, idle, interrupted, succeeded, failed, cancelled */ + status?: string; + /** Foreign key to agent_thread */ + threadId: string; + /** Token counts this run accumulated, per model, as the runtime reports them; null until settled */ + tokenUsage?: Record; + /** Settled cost of this run in the billing currency, summarising its metered rows; null until settled */ + totalCost?: string; + updatedAt?: string; + /** Who may read this run, inherited from the thread */ + visibility?: string; } -export interface AgentTaskPatch { - actorId?: string | null; - approvalFeedback?: string | null; - approvalStatus?: string | null; - approvedAt?: string | null; - approvedBy?: string | null; - databaseId?: string | null; - description?: string | null; - error?: string | null; - orderIndex?: number | null; - planId?: string | null; - requiresApproval?: boolean | null; - source?: string | null; - status?: string | null; +/** An input for mutations affecting `PlatformAgentRunWorkspace` */ +export interface PlatformAgentRunWorkspaceInput { + /** User whose run this workspace belongs to, inherited from the run */ + actorId?: string; + /** What publishing this workspace produced: diff stats, a pull request, a stored patch */ + artifacts?: Record; + /** Branch the workspace was cut from, and what a pull request merges into */ + baseBranch: string; + /** Commit the workspace was cut from; fixed once recorded */ + baseCommit?: string; + /** Branch this run commits to in this repository */ + branch: string; + /** When an execution first cloned this workspace */ + clonedAt?: string; + createdAt?: string; + /** Commit the work in this repository has reached */ + headCommit?: string; + id?: string; + /** When an execution last worked in this workspace; what a reclaim policy reads */ + lastUsedAt?: string; + /** Position of this workspace among the run's, 1-based and in clone order */ + ordinal?: number; + /** Git host this workspace was cloned from, as the runtime names it: github, local */ + provider: string; + /** How the work is published: pull_request, push, patch_artifact or none */ + publication?: string; + /** Repository as its provider names it (owner/name) */ + repo: string; + /** Catalog repository this workspace was cloned from, when the platform hosts it */ + repositoryId?: string; + /** Foreign key to agent_run */ + runId: string; + /** Whether the tree still exists: active (on disk), cold (reclaimed, restorable from head_commit) or purged */ + state?: string; + updatedAt?: string; + /** Who may read this workspace, inherited from the run */ + visibility?: string; } -export interface UpdateAgentTaskInput { - clientMutationId?: string; - id: string; - agentTaskPatch: AgentTaskPatch; +/** An input for mutations affecting `PlatformAgentTask` */ +export interface PlatformAgentTaskInput { + /** User who authored this task */ + actorId?: string; + /** Reviewer feedback or reason for the decision */ + approvalFeedback?: string; + /** Approval decision: pending, approved, rejected (NULL if not an approval task) */ + approvalStatus?: string; + /** Timestamp of the approval or rejection decision */ + approvedAt?: string; + /** User who approved or rejected this task */ + approvedBy?: string; + createdAt?: string; + /** Natural-language description of the work to do */ + description: string; + /** Error message captured when the task failed */ + error?: string; + id?: string; + /** Position within the plan (for ordered task lists) */ + orderIndex?: number; + /** Foreign key to agent_plan */ + planId: string; + /** Whether this task is an approval gate requiring human decision */ + requiresApproval?: boolean; + /** Who created the task: agent or user */ + source?: string; + /** Current status of this task */ + status?: string; + updatedAt?: string; + /** Who may read this task, inherited from its parent */ + visibility?: string; } -export interface DeleteAgentTaskInput { - clientMutationId?: string; - id: string; +/** An input for mutations affecting `PlatformAgentThread` */ +export interface PlatformAgentThreadInput { + /** Agent instance assigned to this thread */ + agentId?: string; + /** Timestamp when this record was archived, NULL if active */ + archivedAt?: string; + createdAt?: string; + id?: string; + /** Whether this record has been archived by the user */ + isArchived?: boolean; + /** Conversation mode: ask (plain Q&A) or agent (tool-enabled) */ + mode?: string; + /** LLM model id this thread is bound to */ + model?: string; + /** User who owns this thread */ + ownerId?: string; + /** Parent thread that spawned this sub-conversation */ + parentThreadId?: string; + /** Optional FK to a shared prompt template */ + promptTemplateId?: string; + /** Current status of this thread */ + status?: string; + /** System prompt active for this thread */ + systemPrompt?: string; + /** User-defined labels for organizing and filtering threads */ + tags?: string[]; + /** Human-readable conversation title */ + title?: string; + updatedAt?: string; + /** Who may read this thread: private (owner only) or entity (the scope's members) */ + visibility?: string; } -export interface CreateAgentThreadInput { - clientMutationId?: string; - agentThread: { - agentId?: string; - archivedAt?: string; - databaseId: string; - isArchived?: boolean; - mode?: string; - model?: string; - ownerId?: string; - parentThreadId?: string; - promptTemplateId?: string; - status?: string; - systemPrompt?: string; - tags?: string[]; - title?: string; - }; +/** A filter to be used against `AgentMessage` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentMessageFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `agent` relation. */ + agent?: AgentFilter; + /** A related `agent` exists. */ + agentExists?: boolean; + /** Filter by the object’s `agentId` field. */ + agentId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: AgentMessageFilter[]; + /** Filter by the object’s `authorRole` field. */ + authorRole?: StringFilter; + /** 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 `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `model` field. */ + model?: StringFilter; + /** Negates the expression. */ + not?: AgentMessageFilter; + /** Checks for any expressions in this list. */ + or?: AgentMessageFilter[]; + /** Filter by the object’s `parts` field. */ + parts?: JSONFilter; + /** Filter by the object’s `thread` relation. */ + thread?: AgentThreadFilter; + /** Filter by the object’s `threadId` field. */ + threadId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `visibility` field. */ + visibility?: StringFilter; +} +/** A filter to be used against `AgentThread` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentThreadFilter { + /** Filter by the object’s `agent` relation. */ + agent?: AgentFilter; + /** A related `agent` exists. */ + agentExists?: boolean; + /** Filter by the object’s `agentId` field. */ + agentId?: UUIDFilter; + /** Filter by the object’s `agentMessagesByThreadId` relation. */ + agentMessagesByThreadId?: AgentThreadToManyAgentMessageFilter; + /** `agentMessagesByThreadId` exist. */ + agentMessagesByThreadIdExist?: boolean; + /** Filter by the object’s `agentPlansByThreadId` relation. */ + agentPlansByThreadId?: AgentThreadToManyAgentPlanFilter; + /** `agentPlansByThreadId` exist. */ + agentPlansByThreadIdExist?: boolean; + /** Filter by the object’s `agentThreadsByParentThreadId` relation. */ + agentThreadsByParentThreadId?: AgentThreadToManyAgentThreadFilter; + /** `agentThreadsByParentThreadId` exist. */ + agentThreadsByParentThreadIdExist?: boolean; + /** Checks for all expressions in this list. */ + and?: AgentThreadFilter[]; + /** Filter by the object’s `archivedAt` field. */ + archivedAt?: DatetimeFilter; + /** 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 `isArchived` field. */ + isArchived?: BooleanFilter; + /** Filter by the object’s `mode` field. */ + mode?: StringFilter; + /** Filter by the object’s `model` field. */ + model?: StringFilter; + /** Negates the expression. */ + not?: AgentThreadFilter; + /** Checks for any expressions in this list. */ + or?: AgentThreadFilter[]; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `parentThread` relation. */ + parentThread?: AgentThreadFilter; + /** A related `parentThread` exists. */ + parentThreadExists?: boolean; + /** Filter by the object’s `parentThreadId` field. */ + parentThreadId?: UUIDFilter; + /** Filter by the object’s `promptTemplate` relation. */ + promptTemplate?: AgentPromptFilter; + /** A related `promptTemplate` exists. */ + promptTemplateExists?: boolean; + /** Filter by the object’s `promptTemplateId` field. */ + promptTemplateId?: UUIDFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `systemPrompt` field. */ + systemPrompt?: StringFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Filter by the object’s `title` field. */ + title?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `visibility` field. */ + visibility?: StringFilter; } -export interface AgentThreadPatch { - agentId?: string | null; - archivedAt?: string | null; - databaseId?: string | null; - isArchived?: boolean | null; - mode?: string | null; - model?: string | null; - ownerId?: string | null; - parentThreadId?: string | null; - promptTemplateId?: string | null; - status?: string | null; - systemPrompt?: string | null; - tags?: string[] | null; - title?: string | null; +/** A filter to be used against `Agent` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentFilter { + /** Filter by the object’s `agentMessages` relation. */ + agentMessages?: AgentToManyAgentMessageFilter; + /** `agentMessages` exist. */ + agentMessagesExist?: boolean; + /** Filter by the object’s `agentThreads` relation. */ + agentThreads?: AgentToManyAgentThreadFilter; + /** `agentThreads` exist. */ + agentThreadsExist?: boolean; + /** Checks for all expressions in this list. */ + and?: AgentFilter[]; + /** Filter by the object’s `childAgents` relation. */ + childAgents?: AgentToManyAgentFilter; + /** `childAgents` exist. */ + childAgentsExist?: boolean; + /** Filter by the object’s `config` field. */ + config?: 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; + /** Filter by the object’s `isEphemeral` field. */ + isEphemeral?: BooleanFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: AgentFilter; + /** Checks for any expressions in this list. */ + or?: AgentFilter[]; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `parent` relation. */ + parent?: AgentFilter; + /** A related `parent` exists. */ + parentExists?: boolean; + /** Filter by the object’s `parentId` field. */ + parentId?: UUIDFilter; + /** Filter by the object’s `persona` relation. */ + persona?: AgentPersonaFilter; + /** A related `persona` exists. */ + personaExists?: boolean; + /** Filter by the object’s `personaId` field. */ + personaId?: UUIDFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `systemPrompt` field. */ + systemPrompt?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; } -export interface UpdateAgentThreadInput { - clientMutationId?: string; - id: string; - agentThreadPatch: AgentThreadPatch; +/** A filter to be used against `AgentTask` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentTaskFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: AgentTaskFilter[]; + /** Filter by the object’s `approvalFeedback` field. */ + approvalFeedback?: StringFilter; + /** Filter by the object’s `approvalStatus` field. */ + approvalStatus?: StringFilter; + /** Filter by the object’s `approvedAt` field. */ + approvedAt?: DatetimeFilter; + /** Filter by the object’s `approvedBy` field. */ + approvedBy?: 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 `error` field. */ + error?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: AgentTaskFilter; + /** Checks for any expressions in this list. */ + or?: AgentTaskFilter[]; + /** Filter by the object’s `orderIndex` field. */ + orderIndex?: IntFilter; + /** Filter by the object’s `plan` relation. */ + plan?: AgentPlanFilter; + /** Filter by the object’s `planId` field. */ + planId?: UUIDFilter; + /** Filter by the object’s `requiresApproval` field. */ + requiresApproval?: BooleanFilter; + /** Filter by the object’s `source` field. */ + source?: StringFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `visibility` field. */ + visibility?: StringFilter; } -export interface DeleteAgentThreadInput { - clientMutationId?: string; - id: string; +/** Similarity metric for vector search */ +export type VectorMetric = 'COSINE' | 'IP' | 'L2'; +/** A filter to be used against `AgentResourceChunk` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentResourceChunkFilter { + /** Filter by the object’s `agentResource` relation. */ + agentResource?: AgentResourceFilter; + /** Filter by the object’s `agentResourceId` field. */ + agentResourceId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: AgentResourceChunkFilter[]; + /** Filter by the object’s `body` field. */ + body?: StringFilter; + /** Filter by the object’s `chunkIndex` field. */ + chunkIndex?: IntFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `embedding` field. */ + embedding?: VectorFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Negates the expression. */ + not?: AgentResourceChunkFilter; + /** Checks for any expressions in this list. */ + or?: AgentResourceChunkFilter[]; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** VECTOR search on the `embedding` column. */ + vectorEmbedding?: VectorNearbyInput; } -// ============ Connection Fields Map ============ -export const connectionFieldsMap = { - Agent: { - agentMessages: 'AgentMessage', - agentThreads: 'AgentThread', - childAgents: 'Agent', - }, - AgentPersona: { - agentsByPersonaId: 'Agent', - }, - AgentPlan: { - agentTasksByPlanId: 'AgentTask', - }, - AgentPrompt: { - agentThreadsByPromptTemplateId: 'AgentThread', - }, - AgentResource: { - agentResourceChunks: 'AgentResourceChunk', - }, - AgentThread: { - agentMessagesByThreadId: 'AgentMessage', - agentPlansByThreadId: 'AgentPlan', - agentThreadsByParentThreadId: 'AgentThread', - }, -} 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; +/** A filter to be used against `AgentPlan` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentPlanFilter { + /** Filter by the object’s `agentTasksByPlanId` relation. */ + agentTasksByPlanId?: AgentPlanToManyAgentTaskFilter; + /** `agentTasksByPlanId` exist. */ + agentTasksByPlanIdExist?: boolean; + /** Checks for all expressions in this list. */ + and?: AgentPlanFilter[]; + /** 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 `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: AgentPlanFilter; + /** Checks for any expressions in this list. */ + or?: AgentPlanFilter[]; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `thread` relation. */ + thread?: AgentThreadFilter; + /** Filter by the object’s `threadId` field. */ + threadId?: UUIDFilter; + /** Filter by the object’s `title` field. */ + title?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `visibility` field. */ + visibility?: StringFilter; } -/** A filter to be used against many `AgentMessage` object types. All fields are combined with a logical ‘and.’ */ -export interface AgentToManyAgentMessageFilter { - /** Filters to entities where every related entity matches. */ - every?: AgentMessageFilter; - /** Filters to entities where no related entity matches. */ - none?: AgentMessageFilter; - /** Filters to entities where at least one related entity matches. */ - some?: AgentMessageFilter; +/** A filter to be used against `PlatformAgent` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentFilter { + /** Checks for all expressions in this list. */ + and?: PlatformAgentFilter[]; + /** Filter by the object’s `childPlatformAgents` relation. */ + childPlatformAgents?: PlatformAgentToManyPlatformAgentFilter; + /** `childPlatformAgents` exist. */ + childPlatformAgentsExist?: boolean; + /** Filter by the object’s `config` field. */ + config?: JSONFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isEphemeral` field. */ + isEphemeral?: BooleanFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: PlatformAgentFilter; + /** Checks for any expressions in this list. */ + or?: PlatformAgentFilter[]; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `parent` relation. */ + parent?: PlatformAgentFilter; + /** A related `parent` exists. */ + parentExists?: boolean; + /** Filter by the object’s `parentId` field. */ + parentId?: UUIDFilter; + /** Filter by the object’s `persona` relation. */ + persona?: PlatformAgentPersonaFilter; + /** A related `persona` exists. */ + personaExists?: boolean; + /** Filter by the object’s `personaId` field. */ + personaId?: UUIDFilter; + /** Filter by the object’s `platformAgentMessagesByAgentId` relation. */ + platformAgentMessagesByAgentId?: PlatformAgentToManyPlatformAgentMessageFilter; + /** `platformAgentMessagesByAgentId` exist. */ + platformAgentMessagesByAgentIdExist?: boolean; + /** Filter by the object’s `platformAgentThreadsByAgentId` relation. */ + platformAgentThreadsByAgentId?: PlatformAgentToManyPlatformAgentThreadFilter; + /** `platformAgentThreadsByAgentId` exist. */ + platformAgentThreadsByAgentIdExist?: boolean; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `systemPrompt` field. */ + systemPrompt?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; } -/** A filter to be used against many `AgentThread` object types. All fields are combined with a logical ‘and.’ */ -export interface AgentToManyAgentThreadFilter { - /** Filters to entities where every related entity matches. */ - every?: AgentThreadFilter; - /** Filters to entities where no related entity matches. */ - none?: AgentThreadFilter; - /** Filters to entities where at least one related entity matches. */ - some?: AgentThreadFilter; +/** A filter to be used against `PlatformAgentMessage` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentMessageFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `agent` relation. */ + agent?: PlatformAgentFilter; + /** A related `agent` exists. */ + agentExists?: boolean; + /** Filter by the object’s `agentId` field. */ + agentId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: PlatformAgentMessageFilter[]; + /** Filter by the object’s `authorRole` field. */ + authorRole?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `deliveredRun` relation. */ + deliveredRun?: PlatformAgentRunFilter; + /** A related `deliveredRun` exists. */ + deliveredRunExists?: boolean; + /** Filter by the object’s `deliveredRunId` field. */ + deliveredRunId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `model` field. */ + model?: StringFilter; + /** Negates the expression. */ + not?: PlatformAgentMessageFilter; + /** Checks for any expressions in this list. */ + or?: PlatformAgentMessageFilter[]; + /** Filter by the object’s `parts` field. */ + parts?: JSONFilter; + /** Filter by the object’s `thread` relation. */ + thread?: PlatformAgentThreadFilter; + /** Filter by the object’s `threadId` field. */ + threadId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `visibility` field. */ + visibility?: StringFilter; } -/** A filter to be used against many `Agent` object types. All fields are combined with a logical ‘and.’ */ -export interface AgentToManyAgentFilter { - /** Filters to entities where every related entity matches. */ - every?: AgentFilter; - /** Filters to entities where no related entity matches. */ - none?: AgentFilter; - /** Filters to entities where at least one related entity matches. */ - some?: AgentFilter; +/** A filter to be used against `PlatformAgentThread` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentThreadFilter { + /** Filter by the object’s `agent` relation. */ + agent?: PlatformAgentFilter; + /** A related `agent` exists. */ + agentExists?: boolean; + /** Filter by the object’s `agentId` field. */ + agentId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: PlatformAgentThreadFilter[]; + /** Filter by the object’s `archivedAt` field. */ + archivedAt?: DatetimeFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isArchived` field. */ + isArchived?: BooleanFilter; + /** Filter by the object’s `mode` field. */ + mode?: StringFilter; + /** Filter by the object’s `model` field. */ + model?: StringFilter; + /** Negates the expression. */ + not?: PlatformAgentThreadFilter; + /** Checks for any expressions in this list. */ + or?: PlatformAgentThreadFilter[]; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `parentThread` relation. */ + parentThread?: PlatformAgentThreadFilter; + /** A related `parentThread` exists. */ + parentThreadExists?: boolean; + /** Filter by the object’s `parentThreadId` field. */ + parentThreadId?: UUIDFilter; + /** Filter by the object’s `platformAgentMessagesByThreadId` relation. */ + platformAgentMessagesByThreadId?: PlatformAgentThreadToManyPlatformAgentMessageFilter; + /** `platformAgentMessagesByThreadId` exist. */ + platformAgentMessagesByThreadIdExist?: boolean; + /** Filter by the object’s `platformAgentPlansByThreadId` relation. */ + platformAgentPlansByThreadId?: PlatformAgentThreadToManyPlatformAgentPlanFilter; + /** `platformAgentPlansByThreadId` exist. */ + platformAgentPlansByThreadIdExist?: boolean; + /** Filter by the object’s `platformAgentRunsByThreadId` relation. */ + platformAgentRunsByThreadId?: PlatformAgentThreadToManyPlatformAgentRunFilter; + /** `platformAgentRunsByThreadId` exist. */ + platformAgentRunsByThreadIdExist?: boolean; + /** Filter by the object’s `platformAgentThreadsByParentThreadId` relation. */ + platformAgentThreadsByParentThreadId?: PlatformAgentThreadToManyPlatformAgentThreadFilter; + /** `platformAgentThreadsByParentThreadId` exist. */ + platformAgentThreadsByParentThreadIdExist?: boolean; + /** Filter by the object’s `promptTemplate` relation. */ + promptTemplate?: PlatformAgentPromptFilter; + /** A related `promptTemplate` exists. */ + promptTemplateExists?: boolean; + /** Filter by the object’s `promptTemplateId` field. */ + promptTemplateId?: UUIDFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `systemPrompt` field. */ + systemPrompt?: StringFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Filter by the object’s `title` field. */ + title?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `visibility` field. */ + visibility?: StringFilter; } -/** A filter to be used against many `Agent` object types. All fields are combined with a logical ‘and.’ */ -export interface AgentPersonaToManyAgentFilter { - /** Filters to entities where every related entity matches. */ - every?: AgentFilter; - /** Filters to entities where no related entity matches. */ - none?: AgentFilter; - /** Filters to entities where at least one related entity matches. */ - some?: AgentFilter; +/** A filter to be used against `PlatformAgentTask` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentTaskFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: PlatformAgentTaskFilter[]; + /** Filter by the object’s `approvalFeedback` field. */ + approvalFeedback?: StringFilter; + /** Filter by the object’s `approvalStatus` field. */ + approvalStatus?: StringFilter; + /** Filter by the object’s `approvedAt` field. */ + approvedAt?: DatetimeFilter; + /** Filter by the object’s `approvedBy` field. */ + approvedBy?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `error` field. */ + error?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformAgentTaskFilter; + /** Checks for any expressions in this list. */ + or?: PlatformAgentTaskFilter[]; + /** Filter by the object’s `orderIndex` field. */ + orderIndex?: IntFilter; + /** Filter by the object’s `plan` relation. */ + plan?: PlatformAgentPlanFilter; + /** Filter by the object’s `planId` field. */ + planId?: UUIDFilter; + /** Filter by the object’s `requiresApproval` field. */ + requiresApproval?: BooleanFilter; + /** Filter by the object’s `source` field. */ + source?: StringFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `visibility` field. */ + visibility?: StringFilter; } -/** A filter to be used against many `AgentTask` object types. All fields are combined with a logical ‘and.’ */ -export interface AgentPlanToManyAgentTaskFilter { - /** Filters to entities where every related entity matches. */ - every?: AgentTaskFilter; - /** Filters to entities where no related entity matches. */ - none?: AgentTaskFilter; - /** Filters to entities where at least one related entity matches. */ - some?: AgentTaskFilter; +/** A filter to be used against `PlatformAgentResourceChunk` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentResourceChunkFilter { + /** Checks for all expressions in this list. */ + and?: PlatformAgentResourceChunkFilter[]; + /** Filter by the object’s `body` field. */ + body?: StringFilter; + /** Filter by the object’s `chunkIndex` field. */ + chunkIndex?: IntFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `embedding` field. */ + embedding?: VectorFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Negates the expression. */ + not?: PlatformAgentResourceChunkFilter; + /** Checks for any expressions in this list. */ + or?: PlatformAgentResourceChunkFilter[]; + /** Filter by the object’s `platformAgentResource` relation. */ + platformAgentResource?: PlatformAgentResourceFilter; + /** Filter by the object’s `platformAgentResourceId` field. */ + platformAgentResourceId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** VECTOR search on the `embedding` column. */ + vectorEmbedding?: VectorNearbyInput; } -/** A filter to be used against many `AgentThread` object types. All fields are combined with a logical ‘and.’ */ -export interface AgentPromptToManyAgentThreadFilter { - /** Filters to entities where every related entity matches. */ - every?: AgentThreadFilter; - /** Filters to entities where no related entity matches. */ - none?: AgentThreadFilter; - /** Filters to entities where at least one related entity matches. */ - some?: AgentThreadFilter; +/** A filter to be used against `PlatformAgentEvent` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentEventFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: PlatformAgentEventFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `entry` field. */ + entry?: JSONFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformAgentEventFilter; + /** Checks for any expressions in this list. */ + or?: PlatformAgentEventFilter[]; + /** Filter by the object’s `recordedAt` field. */ + recordedAt?: DatetimeFilter; + /** Filter by the object’s `run` relation. */ + run?: PlatformAgentRunFilter; + /** Filter by the object’s `runId` field. */ + runId?: UUIDFilter; + /** Filter by the object’s `seq` field. */ + seq?: IntFilter; + /** Filter by the object’s `transcriptFormat` field. */ + transcriptFormat?: StringFilter; + /** Filter by the object’s `transcriptVersion` field. */ + transcriptVersion?: IntFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `visibility` field. */ + visibility?: StringFilter; } -/** Input for vector similarity search. Provide a query vector, optional metric, and optional max distance threshold. */ -export interface VectorNearbyInput { - /** Maximum distance threshold. Only rows within this distance are returned. */ - distance?: number; - /** When true (default for tables with @hasChunks), transparently queries the chunks table and returns the minimum distance across parent + all chunks. Set to false to only search the parent embedding. */ - includeChunks?: boolean; - /** Similarity metric to use (default: COSINE). */ - metric?: VectorMetric; - /** Natural language text to embed server-side for similarity search. Mutually exclusive with `vector` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ - text?: string; - /** Query vector for similarity search. */ - vector: number[]; +/** A filter to be used against `PlatformAgentRunWorkspace` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentRunWorkspaceFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: PlatformAgentRunWorkspaceFilter[]; + /** Filter by the object’s `artifacts` field. */ + artifacts?: JSONFilter; + /** Filter by the object’s `baseBranch` field. */ + baseBranch?: StringFilter; + /** Filter by the object’s `baseCommit` field. */ + baseCommit?: StringFilter; + /** Filter by the object’s `branch` field. */ + branch?: StringFilter; + /** Filter by the object’s `clonedAt` field. */ + clonedAt?: DatetimeFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `headCommit` field. */ + headCommit?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `lastUsedAt` field. */ + lastUsedAt?: DatetimeFilter; + /** Negates the expression. */ + not?: PlatformAgentRunWorkspaceFilter; + /** Checks for any expressions in this list. */ + or?: PlatformAgentRunWorkspaceFilter[]; + /** Filter by the object’s `ordinal` field. */ + ordinal?: IntFilter; + /** Filter by the object’s `provider` field. */ + provider?: StringFilter; + /** Filter by the object’s `publication` field. */ + publication?: StringFilter; + /** Filter by the object’s `repo` field. */ + repo?: StringFilter; + /** Filter by the object’s `repositoryId` field. */ + repositoryId?: UUIDFilter; + /** Filter by the object’s `run` relation. */ + run?: PlatformAgentRunFilter; + /** Filter by the object’s `runId` field. */ + runId?: UUIDFilter; + /** Filter by the object’s `state` field. */ + state?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `visibility` field. */ + visibility?: StringFilter; +} +/** A filter to be used against `PlatformAgentPlan` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentPlanFilter { + /** Checks for all expressions in this list. */ + and?: PlatformAgentPlanFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformAgentPlanFilter; + /** Checks for any expressions in this list. */ + or?: PlatformAgentPlanFilter[]; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `platformAgentTasksByPlanId` relation. */ + platformAgentTasksByPlanId?: PlatformAgentPlanToManyPlatformAgentTaskFilter; + /** `platformAgentTasksByPlanId` exist. */ + platformAgentTasksByPlanIdExist?: boolean; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `thread` relation. */ + thread?: PlatformAgentThreadFilter; + /** Filter by the object’s `threadId` field. */ + threadId?: UUIDFilter; + /** Filter by the object’s `title` field. */ + title?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `visibility` field. */ + visibility?: StringFilter; } -/** A filter to be used against many `AgentResourceChunk` object types. All fields are combined with a logical ‘and.’ */ -export interface AgentResourceToManyAgentResourceChunkFilter { - /** Filters to entities where every related entity matches. */ - every?: AgentResourceChunkFilter; - /** Filters to entities where no related entity matches. */ - none?: AgentResourceChunkFilter; - /** Filters to entities where at least one related entity matches. */ - some?: AgentResourceChunkFilter; +/** A filter to be used against `PlatformAgentRun` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentRunFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: PlatformAgentRunFilter[]; + /** Filter by the object’s `artifacts` field. */ + artifacts?: JSONFilter; + /** Filter by the object’s `attempt` field. */ + attempt?: IntFilter; + /** Filter by the object’s `baseCommit` field. */ + baseCommit?: StringFilter; + /** Filter by the object’s `branch` field. */ + branch?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `deadlineAt` field. */ + deadlineAt?: DatetimeFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `error` field. */ + error?: StringFilter; + /** Filter by the object’s `executionId` field. */ + executionId?: UUIDFilter; + /** Filter by the object’s `finishedAt` field. */ + finishedAt?: DatetimeFilter; + /** Filter by the object’s `headCommit` field. */ + headCommit?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `lastEventSeq` field. */ + lastEventSeq?: IntFilter; + /** Negates the expression. */ + not?: PlatformAgentRunFilter; + /** Checks for any expressions in this list. */ + or?: PlatformAgentRunFilter[]; + /** Filter by the object’s `parentRunId` field. */ + parentRunId?: UUIDFilter; + /** Filter by the object’s `placement` field. */ + placement?: StringFilter; + /** Filter by the object’s `platformAgentEventsByRunId` relation. */ + platformAgentEventsByRunId?: PlatformAgentRunToManyPlatformAgentEventFilter; + /** `platformAgentEventsByRunId` exist. */ + platformAgentEventsByRunIdExist?: boolean; + /** Filter by the object’s `platformAgentMessagesByDeliveredRunId` relation. */ + platformAgentMessagesByDeliveredRunId?: PlatformAgentRunToManyPlatformAgentMessageFilter; + /** `platformAgentMessagesByDeliveredRunId` exist. */ + platformAgentMessagesByDeliveredRunIdExist?: boolean; + /** Filter by the object’s `platformAgentRunWorkspacesByRunId` relation. */ + platformAgentRunWorkspacesByRunId?: PlatformAgentRunToManyPlatformAgentRunWorkspaceFilter; + /** `platformAgentRunWorkspacesByRunId` exist. */ + platformAgentRunWorkspacesByRunIdExist?: boolean; + /** Filter by the object’s `principalId` field. */ + principalId?: UUIDFilter; + /** Filter by the object’s `repoUrl` field. */ + repoUrl?: StringFilter; + /** Filter by the object’s `startedAt` field. */ + startedAt?: DatetimeFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `thread` relation. */ + thread?: PlatformAgentThreadFilter; + /** Filter by the object’s `threadId` field. */ + threadId?: UUIDFilter; + /** Filter by the object’s `tokenUsage` field. */ + tokenUsage?: JSONFilter; + /** Filter by the object’s `totalCost` field. */ + totalCost?: BigFloatFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `visibility` field. */ + visibility?: StringFilter; } -/** A filter to be used against String fields with pg_trgm support. All fields are combined with a logical ‘and.’ */ -export interface StringTrgmFilter { +/** 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 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). */ @@ -1935,527 +5785,487 @@ export interface StringTrgmFilter { notStartsWith?: string; /** Does not start with the specified string (case-insensitive). */ notStartsWithInsensitive?: string; - /** Fuzzy matches using pg_trgm trigram similarity. Tolerates typos and misspellings. */ - similarTo?: TrgmSearchInput; /** Starts with the specified string (case-sensitive). */ startsWith?: string; /** Starts with the specified string (case-insensitive). */ startsWithInsensitive?: string; - /** Fuzzy matches using pg_trgm word_similarity. Finds the best matching substring within the column value. */ - wordSimilarTo?: TrgmSearchInput; -} -/** Input for pg_trgm fuzzy text matching. Provide a search value and optional similarity threshold. */ -export interface TrgmSearchInput { - /** Minimum similarity threshold (0.0 to 1.0). Higher = stricter matching. Default is 0.3. */ - threshold?: number; - /** The text to fuzzy-match against. Typos and misspellings are tolerated. */ - value: string; -} -/** A filter to be used against many `AgentMessage` object types. All fields are combined with a logical ‘and.’ */ -export interface AgentThreadToManyAgentMessageFilter { - /** Filters to entities where every related entity matches. */ - every?: AgentMessageFilter; - /** Filters to entities where no related entity matches. */ - none?: AgentMessageFilter; - /** Filters to entities where at least one related entity matches. */ - some?: AgentMessageFilter; -} -/** A filter to be used against many `AgentPlan` object types. All fields are combined with a logical ‘and.’ */ -export interface AgentThreadToManyAgentPlanFilter { - /** Filters to entities where every related entity matches. */ - every?: AgentPlanFilter; - /** Filters to entities where no related entity matches. */ - none?: AgentPlanFilter; - /** Filters to entities where at least one related entity matches. */ - some?: AgentPlanFilter; -} -/** A filter to be used against many `AgentThread` object types. All fields are combined with a logical ‘and.’ */ -export interface AgentThreadToManyAgentThreadFilter { - /** Filters to entities where every related entity matches. */ - every?: AgentThreadFilter; - /** Filters to entities where no related entity matches. */ - none?: AgentThreadFilter; - /** Filters to entities where at least one related entity matches. */ - some?: AgentThreadFilter; -} -/** An input for mutations affecting `Agent` */ -export interface AgentInput { - /** Per-instance config overrides (model, temperature, tools) */ - config?: Record; - createdAt?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - id?: string; - /** If true, agent is deleted when its spawning thread is deleted */ - isEphemeral?: boolean; - /** Display name for this agent instance */ - name: string; - /** Human who owns/manages this agent */ - ownerId?: string; - /** Parent agent (for sub-agent delegation hierarchy) */ - parentId?: string; - /** Persona template this agent was created from */ - personaId?: string; - /** Agent lifecycle status: active, paused, terminated */ - status?: string; - /** System prompt override (NULL = inherit from persona) */ - systemPrompt?: string; - updatedAt?: string; -} -/** An input for mutations affecting `AgentMessage` */ -export interface AgentMessageInput { - /** User who authored this message */ - actorId?: string; - /** Agent that authored this message (NULL for human messages) */ - agentId?: string; - /** Who authored this message: user or assistant */ - authorRole: string; - createdAt?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - id?: string; - /** LLM model that generated this response */ - model?: string; - /** Message content: TextPart and ToolPart array */ - parts?: Record; - /** Foreign key to agent_thread */ - threadId: string; - updatedAt?: string; -} -/** An input for mutations affecting `AgentPersona` */ -export interface AgentPersonaInput { - /** Model preferences, temperature, tool access, constraints */ - config?: Record; - createdAt?: string; - createdBy?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - /** Brief description of this persona role */ - description?: string; - id?: string; - /** Whether this persona is available for use */ - isActive?: boolean; - /** Display name for this persona */ - name: string; - /** Slugs of agent_resource entries to link when spawning */ - resources?: string[]; - /** Unique human-readable identifier for this persona */ - slug: string; - /** Default system prompt for agents using this persona */ - systemPrompt?: string; - updatedAt?: string; - updatedBy?: string; -} -/** An input for mutations affecting `AgentPlan` */ -export interface AgentPlanInput { - createdAt?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - /** Overall goal or context for this plan */ - description?: string; - id?: string; - /** User who owns this plan */ - ownerId?: string; - /** Plan lifecycle: draft, active, completed, failed, cancelled */ - status?: string; - /** Foreign key to agent_thread */ - threadId: string; - /** Human-readable plan name */ - title: string; - updatedAt?: string; -} -/** An input for mutations affecting `AgentPrompt` */ -export interface AgentPromptInput { - /** The system prompt template content */ - content: string; - createdAt?: string; - createdBy?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - /** What this prompt template is for */ - description?: string; - id?: string; - /** Whether this is the default prompt for the entity/app */ - isDefault?: boolean; - /** Variables, tags, category metadata */ - metadata?: Record; - /** Unique name for lookup (e.g. default, code-review, sales-assistant) */ - name: string; - updatedAt?: string; - updatedBy?: string; -} -/** An input for mutations affecting `AgentResourceChunk` */ -export interface AgentResourceChunkInput { - agentResourceId: string; - body: string; - chunkIndex?: number; - createdAt?: string; - embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ - embeddingText?: string; - id?: string; - metadata?: Record; - updatedAt?: string; } -/** An input for mutations affecting `AgentResource` */ -export interface AgentResourceInput { - /** Timestamp when this record was archived, NULL if active */ - archivedAt?: string; - /** Full content (instructions for skills, reference text for knowledge) */ - body: string; - createdAt?: string; - createdBy?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - /** Brief description of this resource */ - description?: string; - embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ - embeddingText?: string; - id?: string; - /** Whether this resource is active and retrievable */ - isActive?: boolean; - /** Whether this record has been archived by the user */ - isArchived?: boolean; - /** Keywords for deterministic retrieval routing */ - keywords?: string[]; - /** Resource type: skill, knowledge, or convention */ - kind?: string; - /** Structured metadata: category, version, author, custom attributes */ - metadata?: Record; - /** Unique human-readable identifier for portable references */ - slug: string; - /** Resource name or title */ - title: string; - updatedAt?: string; - updatedBy?: string; +/** 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[]; } -/** An input for mutations affecting `AgentTask` */ -export interface AgentTaskInput { - /** User who authored this task */ - actorId?: string; - /** Reviewer feedback or reason for the decision */ - approvalFeedback?: string; - /** Approval decision: pending, approved, rejected (NULL if not an approval task) */ - approvalStatus?: string; - /** Timestamp of the approval or rejection decision */ - approvedAt?: string; - /** User who approved or rejected this task */ - approvedBy?: string; - createdAt?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - /** Natural-language description of the work to do */ - description: string; - /** Error message captured when the task failed */ - error?: string; - id?: string; - /** Position within the plan (for ordered task lists) */ - orderIndex?: number; - /** Foreign key to agent_plan */ - planId: string; - /** Whether this task is an approval gate requiring human decision */ - requiresApproval?: boolean; - /** Who created the task: agent or user */ - source?: string; - /** Current status of this task */ - status?: string; - updatedAt?: string; +/** A filter to be used against JSON fields. All fields are combined with a logical ‘and.’ */ +export interface JSONFilter { + /** Contained by the specified JSON. */ + containedBy?: Record; + /** Contains the specified JSON. */ + contains?: Record; + /** Contains all of the specified keys. */ + containsAllKeys?: string[]; + /** Contains any of the specified keys. */ + containsAnyKeys?: string[]; + /** Contains the specified key. */ + containsKey?: string; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: Record; + /** Equal to the specified value. */ + equalTo?: Record; + /** Greater than the specified value. */ + greaterThan?: Record; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: Record; + /** Included in the specified list. */ + in?: Record[]; + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Less than the specified value. */ + lessThan?: Record; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: Record; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: Record; + /** Not equal to the specified value. */ + notEqualTo?: Record; + /** Not included in the specified list. */ + notIn?: Record[]; } -/** An input for mutations affecting `AgentThread` */ -export interface AgentThreadInput { - /** Agent instance assigned to this thread */ - agentId?: string; - /** Timestamp when this record was archived, NULL if active */ - archivedAt?: string; - createdAt?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - id?: string; - /** Whether this record has been archived by the user */ - isArchived?: boolean; - /** Conversation mode: ask (plain Q&A) or agent (tool-enabled) */ - mode?: string; - /** LLM model id this thread is bound to */ - model?: string; - /** User who owns this thread */ - ownerId?: string; - /** Parent thread that spawned this sub-conversation */ - parentThreadId?: string; - /** Optional FK to a shared prompt template */ - promptTemplateId?: string; - /** Current status of this thread */ - status?: string; - /** System prompt active for this thread */ - systemPrompt?: string; - /** User-defined labels for organizing and filtering threads */ - tags?: string[]; - /** Human-readable conversation title */ - title?: string; - updatedAt?: 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 `AgentMessage` object types. All fields are combined with a logical ‘and.’ */ -export interface AgentMessageFilter { - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `agent` relation. */ - agent?: AgentFilter; - /** A related `agent` exists. */ - agentExists?: boolean; - /** Filter by the object’s `agentId` field. */ - agentId?: UUIDFilter; +/** A filter to be used against `AgentPrompt` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentPromptFilter { + /** Filter by the object’s `agentThreadsByPromptTemplateId` relation. */ + agentThreadsByPromptTemplateId?: AgentPromptToManyAgentThreadFilter; + /** `agentThreadsByPromptTemplateId` exist. */ + agentThreadsByPromptTemplateIdExist?: boolean; /** Checks for all expressions in this list. */ - and?: AgentMessageFilter[]; - /** Filter by the object’s `authorRole` field. */ - authorRole?: StringFilter; + and?: AgentPromptFilter[]; + /** Filter by the object’s `content` field. */ + content?: StringFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `model` field. */ - model?: StringFilter; + /** Filter by the object’s `isDefault` field. */ + isDefault?: BooleanFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; /** Negates the expression. */ - not?: AgentMessageFilter; + not?: AgentPromptFilter; /** Checks for any expressions in this list. */ - or?: AgentMessageFilter[]; - /** Filter by the object’s `parts` field. */ - parts?: JSONFilter; - /** Filter by the object’s `thread` relation. */ - thread?: AgentThreadFilter; - /** Filter by the object’s `threadId` field. */ - threadId?: UUIDFilter; + or?: AgentPromptFilter[]; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -/** A filter to be used against `AgentThread` object types. All fields are combined with a logical ‘and.’ */ -export interface AgentThreadFilter { - /** Filter by the object’s `agent` relation. */ - agent?: AgentFilter; - /** A related `agent` exists. */ - agentExists?: boolean; - /** Filter by the object’s `agentId` field. */ - agentId?: UUIDFilter; - /** Filter by the object’s `agentMessagesByThreadId` relation. */ - agentMessagesByThreadId?: AgentThreadToManyAgentMessageFilter; - /** `agentMessagesByThreadId` exist. */ - agentMessagesByThreadIdExist?: boolean; - /** Filter by the object’s `agentPlansByThreadId` relation. */ - agentPlansByThreadId?: AgentThreadToManyAgentPlanFilter; - /** `agentPlansByThreadId` exist. */ - agentPlansByThreadIdExist?: boolean; - /** Filter by the object’s `agentThreadsByParentThreadId` relation. */ - agentThreadsByParentThreadId?: AgentThreadToManyAgentThreadFilter; - /** `agentThreadsByParentThreadId` exist. */ - agentThreadsByParentThreadIdExist?: boolean; - /** Checks for all expressions in this list. */ - and?: AgentThreadFilter[]; - /** Filter by the object’s `archivedAt` field. */ - archivedAt?: DatetimeFilter; +/** A filter to be used against String List fields. All fields are combined with a logical ‘and.’ */ +export interface StringListFilter { + /** Any array item is equal to the specified value. */ + anyEqualTo?: string; + /** Any array item is greater than the specified value. */ + anyGreaterThan?: string; + /** Any array item is greater than or equal to the specified value. */ + anyGreaterThanOrEqualTo?: string; + /** Any array item is less than the specified value. */ + anyLessThan?: string; + /** Any array item is less than or equal to the specified value. */ + anyLessThanOrEqualTo?: string; + /** Any array item is not equal to the specified value. */ + anyNotEqualTo?: string; + /** Contained by the specified list of values. */ + containedBy?: string[]; + /** Contains the specified list of values. */ + contains?: string[]; + /** 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[]; + /** 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[]; + /** Overlaps the specified list of values. */ + overlaps?: string[]; +} +/** A filter to be used against `AgentPersona` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentPersonaFilter { + /** Filter by the object’s `agentsByPersonaId` relation. */ + agentsByPersonaId?: AgentPersonaToManyAgentFilter; + /** `agentsByPersonaId` exist. */ + agentsByPersonaIdExist?: boolean; + /** Checks for all expressions in this list. */ + and?: AgentPersonaFilter[]; + /** Filter by the object’s `config` field. */ + config?: JSONFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `isArchived` field. */ - isArchived?: BooleanFilter; - /** Filter by the object’s `mode` field. */ - mode?: StringFilter; - /** Filter by the object’s `model` field. */ - model?: StringFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; /** Negates the expression. */ - not?: AgentThreadFilter; + not?: AgentPersonaFilter; /** Checks for any expressions in this list. */ - or?: AgentThreadFilter[]; - /** Filter by the object’s `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `parentThread` relation. */ - parentThread?: AgentThreadFilter; - /** A related `parentThread` exists. */ - parentThreadExists?: boolean; - /** Filter by the object’s `parentThreadId` field. */ - parentThreadId?: UUIDFilter; - /** Filter by the object’s `promptTemplate` relation. */ - promptTemplate?: AgentPromptFilter; - /** A related `promptTemplate` exists. */ - promptTemplateExists?: boolean; - /** Filter by the object’s `promptTemplateId` field. */ - promptTemplateId?: UUIDFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; + or?: AgentPersonaFilter[]; + /** Filter by the object’s `resources` field. */ + resources?: StringListFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; /** Filter by the object’s `systemPrompt` field. */ systemPrompt?: StringFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** 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; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -/** A filter to be used against `Agent` object types. All fields are combined with a logical ‘and.’ */ -export interface AgentFilter { - /** Filter by the object’s `agentMessages` relation. */ - agentMessages?: AgentToManyAgentMessageFilter; - /** `agentMessages` exist. */ - agentMessagesExist?: boolean; - /** Filter by the object’s `agentThreads` relation. */ - agentThreads?: AgentToManyAgentThreadFilter; - /** `agentThreads` exist. */ - agentThreadsExist?: boolean; +/** 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 `AgentResource` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentResourceFilter { + /** Filter by the object’s `agentResourceChunks` relation. */ + agentResourceChunks?: AgentResourceToManyAgentResourceChunkFilter; + /** `agentResourceChunks` exist. */ + agentResourceChunksExist?: boolean; /** Checks for all expressions in this list. */ - and?: AgentFilter[]; - /** Filter by the object’s `childAgents` relation. */ - childAgents?: AgentToManyAgentFilter; - /** `childAgents` exist. */ - childAgentsExist?: boolean; - /** Filter by the object’s `config` field. */ - config?: JSONFilter; + and?: AgentResourceFilter[]; + /** Filter by the object’s `archivedAt` field. */ + archivedAt?: DatetimeFilter; + /** Filter by the object’s `body` field. */ + body?: StringTrgmFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `description` field. */ + description?: StringTrgmFilter; + /** Filter by the object’s `embedding` field. */ + embedding?: VectorFilter; + /** Filter by the object’s `embeddingUpdatedAt` field. */ + embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `isEphemeral` field. */ - isEphemeral?: BooleanFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; + /** Filter by the object’s `isArchived` field. */ + isArchived?: BooleanFilter; + /** Filter by the object’s `keywords` field. */ + keywords?: StringListFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringTrgmFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; /** Negates the expression. */ - not?: AgentFilter; + not?: AgentResourceFilter; /** Checks for any expressions in this list. */ - or?: AgentFilter[]; - /** Filter by the object’s `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `parent` relation. */ - parent?: AgentFilter; - /** A related `parent` exists. */ - parentExists?: boolean; - /** Filter by the object’s `parentId` field. */ - parentId?: UUIDFilter; - /** Filter by the object’s `persona` relation. */ - persona?: AgentPersonaFilter; - /** A related `persona` exists. */ - personaExists?: boolean; - /** Filter by the object’s `personaId` field. */ - personaId?: UUIDFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `systemPrompt` field. */ - systemPrompt?: StringFilter; + or?: AgentResourceFilter[]; + /** Filter by the object’s `search` field. */ + search?: FullTextFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringTrgmFilter; + /** Filter by the object’s `title` field. */ + title?: StringTrgmFilter; + /** TRGM search on the `body` column. */ + trgmBody?: TrgmSearchInput; + /** TRGM search on the `description` column. */ + trgmDescription?: TrgmSearchInput; + /** TRGM search on the `kind` column. */ + trgmKind?: TrgmSearchInput; + /** TRGM search on the `title` column. */ + trgmTitle?: TrgmSearchInput; + /** TSV search on the `search` column. */ + tsvSearch?: string; + /** + * Composite unified search. Provide a search string and it will be dispatched to + * all text-compatible search algorithms (tsvector, BM25, pg_trgm) + * simultaneously. When the LLM plugin is active, pgvector also participates via + * auto-embedding. Rows matching ANY algorithm are returned. All matching score + * fields are populated. + */ + unifiedSearch?: string; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** VECTOR search on the `embedding` column. */ + vectorEmbedding?: VectorNearbyInput; } -/** A filter to be used against `AgentTask` object types. All fields are combined with a logical ‘and.’ */ -export interface AgentTaskFilter { - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; +/** A filter to be used against Vector fields. All fields are combined with a logical ‘and.’ */ +export interface VectorFilter { + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: number[]; + /** Equal to the specified value. */ + equalTo?: number[]; + /** Included in the specified list. */ + in?: number[][]; + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** 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 `PlatformAgentPersona` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentPersonaFilter { /** Checks for all expressions in this list. */ - and?: AgentTaskFilter[]; - /** Filter by the object’s `approvalFeedback` field. */ - approvalFeedback?: StringFilter; - /** Filter by the object’s `approvalStatus` field. */ - approvalStatus?: StringFilter; - /** Filter by the object’s `approvedAt` field. */ - approvedAt?: DatetimeFilter; - /** Filter by the object’s `approvedBy` field. */ - approvedBy?: UUIDFilter; + and?: PlatformAgentPersonaFilter[]; + /** Filter by the object’s `config` field. */ + config?: JSONFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `description` field. */ description?: StringFilter; - /** Filter by the object’s `error` field. */ - error?: 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?: AgentTaskFilter; + not?: PlatformAgentPersonaFilter; /** Checks for any expressions in this list. */ - or?: AgentTaskFilter[]; - /** Filter by the object’s `orderIndex` field. */ - orderIndex?: IntFilter; - /** Filter by the object’s `plan` relation. */ - plan?: AgentPlanFilter; - /** Filter by the object’s `planId` field. */ - planId?: UUIDFilter; - /** Filter by the object’s `requiresApproval` field. */ - requiresApproval?: BooleanFilter; - /** Filter by the object’s `source` field. */ - source?: StringFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; + or?: PlatformAgentPersonaFilter[]; + /** Filter by the object’s `platformAgentsByPersonaId` relation. */ + platformAgentsByPersonaId?: PlatformAgentPersonaToManyPlatformAgentFilter; + /** `platformAgentsByPersonaId` exist. */ + platformAgentsByPersonaIdExist?: boolean; + /** Filter by the object’s `resources` field. */ + resources?: StringListFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `systemPrompt` field. */ + systemPrompt?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -/** Similarity metric for vector search */ -export type VectorMetric = 'COSINE' | 'IP' | 'L2'; -/** A filter to be used against `AgentResourceChunk` object types. All fields are combined with a logical ‘and.’ */ -export interface AgentResourceChunkFilter { - /** Filter by the object’s `agentResource` relation. */ - agentResource?: AgentResourceFilter; - /** Filter by the object’s `agentResourceId` field. */ - agentResourceId?: UUIDFilter; +/** A filter to be used against `PlatformAgentPrompt` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentPromptFilter { /** Checks for all expressions in this list. */ - and?: AgentResourceChunkFilter[]; - /** Filter by the object’s `body` field. */ - body?: StringFilter; - /** Filter by the object’s `chunkIndex` field. */ - chunkIndex?: IntFilter; + and?: PlatformAgentPromptFilter[]; + /** Filter by the object’s `content` field. */ + content?: StringFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; - /** Filter by the object’s `embedding` field. */ - embedding?: VectorFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `isDefault` field. */ + isDefault?: BooleanFilter; /** Filter by the object’s `metadata` field. */ metadata?: JSONFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; /** Negates the expression. */ - not?: AgentResourceChunkFilter; + not?: PlatformAgentPromptFilter; /** Checks for any expressions in this list. */ - or?: AgentResourceChunkFilter[]; + or?: PlatformAgentPromptFilter[]; + /** Filter by the object’s `platformAgentThreadsByPromptTemplateId` relation. */ + platformAgentThreadsByPromptTemplateId?: PlatformAgentPromptToManyPlatformAgentThreadFilter; + /** `platformAgentThreadsByPromptTemplateId` exist. */ + platformAgentThreadsByPromptTemplateIdExist?: boolean; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; - /** VECTOR search on the `embedding` column. */ - vectorEmbedding?: VectorNearbyInput; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -/** A filter to be used against `AgentPlan` object types. All fields are combined with a logical ‘and.’ */ -export interface AgentPlanFilter { - /** Filter by the object’s `agentTasksByPlanId` relation. */ - agentTasksByPlanId?: AgentPlanToManyAgentTaskFilter; - /** `agentTasksByPlanId` exist. */ - agentTasksByPlanIdExist?: boolean; +/** A filter to be used against `PlatformAgentResource` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentResourceFilter { /** Checks for all expressions in this list. */ - and?: AgentPlanFilter[]; + and?: PlatformAgentResourceFilter[]; + /** Filter by the object’s `archivedAt` field. */ + archivedAt?: DatetimeFilter; + /** Filter by the object’s `body` field. */ + body?: StringTrgmFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `description` field. */ - description?: StringFilter; + description?: StringTrgmFilter; + /** Filter by the object’s `embedding` field. */ + embedding?: VectorFilter; + /** Filter by the object’s `embeddingUpdatedAt` field. */ + embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; + /** Filter by the object’s `isArchived` field. */ + isArchived?: BooleanFilter; + /** Filter by the object’s `keywords` field. */ + keywords?: StringListFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringTrgmFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; /** Negates the expression. */ - not?: AgentPlanFilter; + not?: PlatformAgentResourceFilter; /** Checks for any expressions in this list. */ - or?: AgentPlanFilter[]; - /** Filter by the object’s `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `thread` relation. */ - thread?: AgentThreadFilter; - /** Filter by the object’s `threadId` field. */ - threadId?: UUIDFilter; + or?: PlatformAgentResourceFilter[]; + /** Filter by the object’s `platformAgentResourceChunks` relation. */ + platformAgentResourceChunks?: PlatformAgentResourceToManyPlatformAgentResourceChunkFilter; + /** `platformAgentResourceChunks` exist. */ + platformAgentResourceChunksExist?: boolean; + /** Filter by the object’s `search` field. */ + search?: FullTextFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringTrgmFilter; /** Filter by the object’s `title` field. */ - title?: StringFilter; + title?: StringTrgmFilter; + /** TRGM search on the `body` column. */ + trgmBody?: TrgmSearchInput; + /** TRGM search on the `description` column. */ + trgmDescription?: TrgmSearchInput; + /** TRGM search on the `kind` column. */ + trgmKind?: TrgmSearchInput; + /** TRGM search on the `title` column. */ + trgmTitle?: TrgmSearchInput; + /** TSV search on the `search` column. */ + tsvSearch?: string; + /** + * Composite unified search. Provide a search string and it will be dispatched to + * all text-compatible search algorithms (tsvector, BM25, pg_trgm) + * simultaneously. When the LLM plugin is active, pgvector also participates via + * auto-embedding. Rows matching ANY algorithm are returned. All matching score + * fields are populated. + */ + unifiedSearch?: string; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** VECTOR search on the `embedding` column. */ + vectorEmbedding?: VectorNearbyInput; } -/** A filter to be used against UUID fields. All fields are combined with a logical ‘and.’ */ -export interface UUIDFilter { +/** A filter to be used against BigFloat fields. All fields are combined with a logical ‘and.’ */ +export interface BigFloatFilter { /** Not equal to the specified value, treating null like an ordinary value. */ distinctFrom?: string; /** Equal to the specified value. */ @@ -2479,840 +6289,985 @@ export interface UUIDFilter { /** 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 { +/** A filter to be used against FullText fields. All fields are combined with a logical ‘and.’ */ +export interface FullTextFilter { /** 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; + /** Performs a full text search on the field. */ + matches?: 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 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[]; +// ============ Payload/Return Types (for custom operations) ============ +export interface ProvisionBucketPayload { + /** The logical bucket row that was queued for reconciliation. */ + bucketId: string; + bucketKey: string; + /** The reconciler job enqueued to provision this bucket. */ + jobId: string; + /** The physical bucket name already recorded, or null when reconciliation has not completed. */ + physicalName?: string | null; +} +export type ProvisionBucketPayloadSelect = { + bucketId?: boolean; + bucketKey?: boolean; + jobId?: boolean; + physicalName?: boolean; +}; +export interface CreateAgentPayload { + /** The `Agent` that was created by this mutation. */ + agent?: Agent | null; + agentEdge?: AgentEdge | null; + clientMutationId?: string | null; +} +export type CreateAgentPayloadSelect = { + agent?: { + select: AgentSelect; + }; + agentEdge?: { + select: AgentEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface UpdateAgentPayload { + /** The `Agent` that was updated by this mutation. */ + agent?: Agent | null; + agentEdge?: AgentEdge | null; + clientMutationId?: string | null; +} +export type UpdateAgentPayloadSelect = { + agent?: { + select: AgentSelect; + }; + agentEdge?: { + select: AgentEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface DeleteAgentPayload { + /** The `Agent` that was deleted by this mutation. */ + agent?: Agent | null; + agentEdge?: AgentEdge | null; + clientMutationId?: string | null; +} +export type DeleteAgentPayloadSelect = { + agent?: { + select: AgentSelect; + }; + agentEdge?: { + select: AgentEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface CreateAgentMessagePayload { + /** The `AgentMessage` that was created by this mutation. */ + agentMessage?: AgentMessage | null; + agentMessageEdge?: AgentMessageEdge | null; + clientMutationId?: string | null; +} +export type CreateAgentMessagePayloadSelect = { + agentMessage?: { + select: AgentMessageSelect; + }; + agentMessageEdge?: { + select: AgentMessageEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface UpdateAgentMessagePayload { + /** The `AgentMessage` that was updated by this mutation. */ + agentMessage?: AgentMessage | null; + agentMessageEdge?: AgentMessageEdge | null; + clientMutationId?: string | null; +} +export type UpdateAgentMessagePayloadSelect = { + agentMessage?: { + select: AgentMessageSelect; + }; + agentMessageEdge?: { + select: AgentMessageEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface DeleteAgentMessagePayload { + /** The `AgentMessage` that was deleted by this mutation. */ + agentMessage?: AgentMessage | null; + agentMessageEdge?: AgentMessageEdge | null; + clientMutationId?: string | null; +} +export type DeleteAgentMessagePayloadSelect = { + agentMessage?: { + select: AgentMessageSelect; + }; + agentMessageEdge?: { + select: AgentMessageEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface CreateAgentPersonaPayload { + /** The `AgentPersona` that was created by this mutation. */ + agentPersona?: AgentPersona | null; + agentPersonaEdge?: AgentPersonaEdge | null; + clientMutationId?: string | null; +} +export type CreateAgentPersonaPayloadSelect = { + agentPersona?: { + select: AgentPersonaSelect; + }; + agentPersonaEdge?: { + select: AgentPersonaEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface UpdateAgentPersonaPayload { + /** The `AgentPersona` that was updated by this mutation. */ + agentPersona?: AgentPersona | null; + agentPersonaEdge?: AgentPersonaEdge | null; + clientMutationId?: string | null; +} +export type UpdateAgentPersonaPayloadSelect = { + agentPersona?: { + select: AgentPersonaSelect; + }; + agentPersonaEdge?: { + select: AgentPersonaEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface DeleteAgentPersonaPayload { + /** The `AgentPersona` that was deleted by this mutation. */ + agentPersona?: AgentPersona | null; + agentPersonaEdge?: AgentPersonaEdge | null; + clientMutationId?: string | null; } -/** A filter to be used against JSON fields. All fields are combined with a logical ‘and.’ */ -export interface JSONFilter { - /** Contained by the specified JSON. */ - containedBy?: Record; - /** Contains the specified JSON. */ - contains?: Record; - /** Contains all of the specified keys. */ - containsAllKeys?: string[]; - /** Contains any of the specified keys. */ - containsAnyKeys?: string[]; - /** Contains the specified key. */ - containsKey?: string; - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: Record; - /** Equal to the specified value. */ - equalTo?: Record; - /** Greater than the specified value. */ - greaterThan?: Record; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: Record; - /** Included in the specified list. */ - in?: Record[]; - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Less than the specified value. */ - lessThan?: Record; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: Record; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: Record; - /** Not equal to the specified value. */ - notEqualTo?: Record; - /** Not included in the specified list. */ - notIn?: Record[]; +export type DeleteAgentPersonaPayloadSelect = { + agentPersona?: { + select: AgentPersonaSelect; + }; + agentPersonaEdge?: { + select: AgentPersonaEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface CreateAgentPlanPayload { + /** The `AgentPlan` that was created by this mutation. */ + agentPlan?: AgentPlan | null; + agentPlanEdge?: AgentPlanEdge | null; + clientMutationId?: string | null; } -/** 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[]; +export type CreateAgentPlanPayloadSelect = { + agentPlan?: { + select: AgentPlanSelect; + }; + agentPlanEdge?: { + select: AgentPlanEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface UpdateAgentPlanPayload { + /** The `AgentPlan` that was updated by this mutation. */ + agentPlan?: AgentPlan | null; + agentPlanEdge?: AgentPlanEdge | null; + clientMutationId?: string | null; } -/** A filter to be used against `AgentPrompt` object types. All fields are combined with a logical ‘and.’ */ -export interface AgentPromptFilter { - /** Filter by the object’s `agentThreadsByPromptTemplateId` relation. */ - agentThreadsByPromptTemplateId?: AgentPromptToManyAgentThreadFilter; - /** `agentThreadsByPromptTemplateId` exist. */ - agentThreadsByPromptTemplateIdExist?: boolean; - /** Checks for all expressions in this list. */ - and?: AgentPromptFilter[]; - /** Filter by the object’s `content` field. */ - content?: StringFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isDefault` field. */ - isDefault?: BooleanFilter; - /** Filter by the object’s `metadata` field. */ - metadata?: JSONFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Negates the expression. */ - not?: AgentPromptFilter; - /** Checks for any expressions in this list. */ - or?: AgentPromptFilter[]; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; +export type UpdateAgentPlanPayloadSelect = { + agentPlan?: { + select: AgentPlanSelect; + }; + agentPlanEdge?: { + select: AgentPlanEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface DeleteAgentPlanPayload { + /** The `AgentPlan` that was deleted by this mutation. */ + agentPlan?: AgentPlan | null; + agentPlanEdge?: AgentPlanEdge | null; + clientMutationId?: string | null; +} +export type DeleteAgentPlanPayloadSelect = { + agentPlan?: { + select: AgentPlanSelect; + }; + agentPlanEdge?: { + select: AgentPlanEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface CreateAgentPromptPayload { + /** The `AgentPrompt` that was created by this mutation. */ + agentPrompt?: AgentPrompt | null; + agentPromptEdge?: AgentPromptEdge | null; + clientMutationId?: string | null; +} +export type CreateAgentPromptPayloadSelect = { + agentPrompt?: { + select: AgentPromptSelect; + }; + agentPromptEdge?: { + select: AgentPromptEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface UpdateAgentPromptPayload { + /** The `AgentPrompt` that was updated by this mutation. */ + agentPrompt?: AgentPrompt | null; + agentPromptEdge?: AgentPromptEdge | null; + clientMutationId?: string | null; +} +export type UpdateAgentPromptPayloadSelect = { + agentPrompt?: { + select: AgentPromptSelect; + }; + agentPromptEdge?: { + select: AgentPromptEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface DeleteAgentPromptPayload { + /** The `AgentPrompt` that was deleted by this mutation. */ + agentPrompt?: AgentPrompt | null; + agentPromptEdge?: AgentPromptEdge | null; + clientMutationId?: string | null; +} +export type DeleteAgentPromptPayloadSelect = { + agentPrompt?: { + select: AgentPromptSelect; + }; + agentPromptEdge?: { + select: AgentPromptEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface CreateAgentResourceChunkPayload { + /** The `AgentResourceChunk` that was created by this mutation. */ + agentResourceChunk?: AgentResourceChunk | null; + agentResourceChunkEdge?: AgentResourceChunkEdge | null; + clientMutationId?: string | null; +} +export type CreateAgentResourceChunkPayloadSelect = { + agentResourceChunk?: { + select: AgentResourceChunkSelect; + }; + agentResourceChunkEdge?: { + select: AgentResourceChunkEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface UpdateAgentResourceChunkPayload { + /** The `AgentResourceChunk` that was updated by this mutation. */ + agentResourceChunk?: AgentResourceChunk | null; + agentResourceChunkEdge?: AgentResourceChunkEdge | null; + clientMutationId?: string | null; } -/** A filter to be used against String List fields. All fields are combined with a logical ‘and.’ */ -export interface StringListFilter { - /** Any array item is equal to the specified value. */ - anyEqualTo?: string; - /** Any array item is greater than the specified value. */ - anyGreaterThan?: string; - /** Any array item is greater than or equal to the specified value. */ - anyGreaterThanOrEqualTo?: string; - /** Any array item is less than the specified value. */ - anyLessThan?: string; - /** Any array item is less than or equal to the specified value. */ - anyLessThanOrEqualTo?: string; - /** Any array item is not equal to the specified value. */ - anyNotEqualTo?: string; - /** Contained by the specified list of values. */ - containedBy?: string[]; - /** Contains the specified list of values. */ - contains?: string[]; - /** 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[]; - /** 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[]; - /** Overlaps the specified list of values. */ - overlaps?: string[]; +export type UpdateAgentResourceChunkPayloadSelect = { + agentResourceChunk?: { + select: AgentResourceChunkSelect; + }; + agentResourceChunkEdge?: { + select: AgentResourceChunkEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface DeleteAgentResourceChunkPayload { + /** The `AgentResourceChunk` that was deleted by this mutation. */ + agentResourceChunk?: AgentResourceChunk | null; + agentResourceChunkEdge?: AgentResourceChunkEdge | null; + clientMutationId?: string | null; } -/** A filter to be used against `AgentPersona` object types. All fields are combined with a logical ‘and.’ */ -export interface AgentPersonaFilter { - /** Filter by the object’s `agentsByPersonaId` relation. */ - agentsByPersonaId?: AgentPersonaToManyAgentFilter; - /** `agentsByPersonaId` exist. */ - agentsByPersonaIdExist?: boolean; - /** Checks for all expressions in this list. */ - and?: AgentPersonaFilter[]; - /** Filter by the object’s `config` field. */ - config?: JSONFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `description` field. */ - description?: 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?: AgentPersonaFilter; - /** Checks for any expressions in this list. */ - or?: AgentPersonaFilter[]; - /** Filter by the object’s `resources` field. */ - resources?: StringListFilter; - /** Filter by the object’s `slug` field. */ - slug?: StringFilter; - /** Filter by the object’s `systemPrompt` field. */ - systemPrompt?: StringFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; +export type DeleteAgentResourceChunkPayloadSelect = { + agentResourceChunk?: { + select: AgentResourceChunkSelect; + }; + agentResourceChunkEdge?: { + select: AgentResourceChunkEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface CreateAgentResourcePayload { + /** The `AgentResource` that was created by this mutation. */ + agentResource?: AgentResource | null; + agentResourceEdge?: AgentResourceEdge | null; + clientMutationId?: string | null; } -/** 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[]; +export type CreateAgentResourcePayloadSelect = { + agentResource?: { + select: AgentResourceSelect; + }; + agentResourceEdge?: { + select: AgentResourceEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface UpdateAgentResourcePayload { + /** The `AgentResource` that was updated by this mutation. */ + agentResource?: AgentResource | null; + agentResourceEdge?: AgentResourceEdge | null; + clientMutationId?: string | null; } -/** A filter to be used against `AgentResource` object types. All fields are combined with a logical ‘and.’ */ -export interface AgentResourceFilter { - /** Filter by the object’s `agentResourceChunks` relation. */ - agentResourceChunks?: AgentResourceToManyAgentResourceChunkFilter; - /** `agentResourceChunks` exist. */ - agentResourceChunksExist?: boolean; - /** Checks for all expressions in this list. */ - and?: AgentResourceFilter[]; - /** Filter by the object’s `archivedAt` field. */ - archivedAt?: DatetimeFilter; - /** Filter by the object’s `body` field. */ - body?: StringTrgmFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `description` field. */ - description?: StringTrgmFilter; - /** Filter by the object’s `embedding` field. */ - embedding?: VectorFilter; - /** Filter by the object’s `embeddingUpdatedAt` field. */ - embeddingUpdatedAt?: DatetimeFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isActive` field. */ - isActive?: BooleanFilter; - /** Filter by the object’s `isArchived` field. */ - isArchived?: BooleanFilter; - /** Filter by the object’s `keywords` field. */ - keywords?: StringListFilter; - /** Filter by the object’s `kind` field. */ - kind?: StringTrgmFilter; - /** Filter by the object’s `metadata` field. */ - metadata?: JSONFilter; - /** Negates the expression. */ - not?: AgentResourceFilter; - /** Checks for any expressions in this list. */ - or?: AgentResourceFilter[]; - /** Filter by the object’s `search` field. */ - search?: FullTextFilter; - /** Filter by the object’s `slug` field. */ - slug?: StringTrgmFilter; - /** Filter by the object’s `title` field. */ - title?: StringTrgmFilter; - /** TRGM search on the `body` column. */ - trgmBody?: TrgmSearchInput; - /** TRGM search on the `description` column. */ - trgmDescription?: TrgmSearchInput; - /** TRGM search on the `kind` column. */ - trgmKind?: TrgmSearchInput; - /** TRGM search on the `title` column. */ - trgmTitle?: TrgmSearchInput; - /** TSV search on the `search` column. */ - tsvSearch?: string; - /** - * Composite unified search. Provide a search string and it will be dispatched to - * all text-compatible search algorithms (tsvector, BM25, pg_trgm) - * simultaneously. When the LLM plugin is active, pgvector also participates via - * auto-embedding. Rows matching ANY algorithm are returned. All matching score - * fields are populated. - */ - unifiedSearch?: string; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** VECTOR search on the `embedding` column. */ - vectorEmbedding?: VectorNearbyInput; +export type UpdateAgentResourcePayloadSelect = { + agentResource?: { + select: AgentResourceSelect; + }; + agentResourceEdge?: { + select: AgentResourceEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface DeleteAgentResourcePayload { + /** The `AgentResource` that was deleted by this mutation. */ + agentResource?: AgentResource | null; + agentResourceEdge?: AgentResourceEdge | null; + clientMutationId?: string | null; +} +export type DeleteAgentResourcePayloadSelect = { + agentResource?: { + select: AgentResourceSelect; + }; + agentResourceEdge?: { + select: AgentResourceEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface CreateAgentTaskPayload { + /** The `AgentTask` that was created by this mutation. */ + agentTask?: AgentTask | null; + agentTaskEdge?: AgentTaskEdge | null; + clientMutationId?: string | null; +} +export type CreateAgentTaskPayloadSelect = { + agentTask?: { + select: AgentTaskSelect; + }; + agentTaskEdge?: { + select: AgentTaskEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface UpdateAgentTaskPayload { + /** The `AgentTask` that was updated by this mutation. */ + agentTask?: AgentTask | null; + agentTaskEdge?: AgentTaskEdge | null; + clientMutationId?: string | null; } -/** A filter to be used against Vector fields. All fields are combined with a logical ‘and.’ */ -export interface VectorFilter { - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: number[]; - /** Equal to the specified value. */ - equalTo?: number[]; - /** Included in the specified list. */ - in?: number[][]; - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** 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[][]; +export type UpdateAgentTaskPayloadSelect = { + agentTask?: { + select: AgentTaskSelect; + }; + agentTaskEdge?: { + select: AgentTaskEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface DeleteAgentTaskPayload { + /** The `AgentTask` that was deleted by this mutation. */ + agentTask?: AgentTask | null; + agentTaskEdge?: AgentTaskEdge | null; + clientMutationId?: string | null; } -/** A filter to be used against FullText fields. All fields are combined with a logical ‘and.’ */ -export interface FullTextFilter { - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: string; - /** Equal to the specified value. */ - equalTo?: string; - /** Included in the specified list. */ - in?: string[]; - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Performs a full text search on the field. */ - matches?: 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[]; +export type DeleteAgentTaskPayloadSelect = { + agentTask?: { + select: AgentTaskSelect; + }; + agentTaskEdge?: { + select: AgentTaskEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface CreateAgentThreadPayload { + /** The `AgentThread` that was created by this mutation. */ + agentThread?: AgentThread | null; + agentThreadEdge?: AgentThreadEdge | null; + clientMutationId?: string | null; } -// ============ Payload/Return Types (for custom operations) ============ -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 CreateAgentThreadPayloadSelect = { + agentThread?: { + select: AgentThreadSelect; + }; + agentThreadEdge?: { + select: AgentThreadEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface UpdateAgentThreadPayload { + /** The `AgentThread` that was updated by this mutation. */ + agentThread?: AgentThread | null; + agentThreadEdge?: AgentThreadEdge | null; + clientMutationId?: string | null; } -export type ProvisionBucketPayloadSelect = { - accessType?: boolean; - bucketName?: boolean; - endpoint?: boolean; - error?: boolean; - provider?: boolean; - success?: boolean; +export type UpdateAgentThreadPayloadSelect = { + agentThread?: { + select: AgentThreadSelect; + }; + agentThreadEdge?: { + select: AgentThreadEdgeSelect; + }; + clientMutationId?: boolean; }; -export interface CreateAgentPayload { - /** The `Agent` that was created by this mutation. */ - agent?: Agent | null; - agentEdge?: AgentEdge | null; +export interface DeleteAgentThreadPayload { + /** The `AgentThread` that was deleted by this mutation. */ + agentThread?: AgentThread | null; + agentThreadEdge?: AgentThreadEdge | null; clientMutationId?: string | null; } -export type CreateAgentPayloadSelect = { - agent?: { - select: AgentSelect; +export type DeleteAgentThreadPayloadSelect = { + agentThread?: { + select: AgentThreadSelect; }; - agentEdge?: { - select: AgentEdgeSelect; + agentThreadEdge?: { + select: AgentThreadEdgeSelect; }; clientMutationId?: boolean; }; -export interface UpdateAgentPayload { - /** The `Agent` that was updated by this mutation. */ - agent?: Agent | null; - agentEdge?: AgentEdge | null; +export interface CreatePlatformAgentPayload { clientMutationId?: string | null; + /** The `PlatformAgent` that was created by this mutation. */ + platformAgent?: PlatformAgent | null; + platformAgentEdge?: PlatformAgentEdge | null; } -export type UpdateAgentPayloadSelect = { - agent?: { - select: AgentSelect; +export type CreatePlatformAgentPayloadSelect = { + clientMutationId?: boolean; + platformAgent?: { + select: PlatformAgentSelect; }; - agentEdge?: { - select: AgentEdgeSelect; + platformAgentEdge?: { + select: PlatformAgentEdgeSelect; }; +}; +export interface UpdatePlatformAgentPayload { + clientMutationId?: string | null; + /** The `PlatformAgent` that was updated by this mutation. */ + platformAgent?: PlatformAgent | null; + platformAgentEdge?: PlatformAgentEdge | null; +} +export type UpdatePlatformAgentPayloadSelect = { clientMutationId?: boolean; + platformAgent?: { + select: PlatformAgentSelect; + }; + platformAgentEdge?: { + select: PlatformAgentEdgeSelect; + }; }; -export interface DeleteAgentPayload { - /** The `Agent` that was deleted by this mutation. */ - agent?: Agent | null; - agentEdge?: AgentEdge | null; +export interface DeletePlatformAgentPayload { clientMutationId?: string | null; + /** The `PlatformAgent` that was deleted by this mutation. */ + platformAgent?: PlatformAgent | null; + platformAgentEdge?: PlatformAgentEdge | null; } -export type DeleteAgentPayloadSelect = { - agent?: { - select: AgentSelect; +export type DeletePlatformAgentPayloadSelect = { + clientMutationId?: boolean; + platformAgent?: { + select: PlatformAgentSelect; }; - agentEdge?: { - select: AgentEdgeSelect; + platformAgentEdge?: { + select: PlatformAgentEdgeSelect; }; +}; +export interface CreatePlatformAgentEventPayload { + clientMutationId?: string | null; + /** The `PlatformAgentEvent` that was created by this mutation. */ + platformAgentEvent?: PlatformAgentEvent | null; + platformAgentEventEdge?: PlatformAgentEventEdge | null; +} +export type CreatePlatformAgentEventPayloadSelect = { clientMutationId?: boolean; + platformAgentEvent?: { + select: PlatformAgentEventSelect; + }; + platformAgentEventEdge?: { + select: PlatformAgentEventEdgeSelect; + }; }; -export interface CreateAgentMessagePayload { - /** The `AgentMessage` that was created by this mutation. */ - agentMessage?: AgentMessage | null; - agentMessageEdge?: AgentMessageEdge | null; +export interface UpdatePlatformAgentEventPayload { clientMutationId?: string | null; + /** The `PlatformAgentEvent` that was updated by this mutation. */ + platformAgentEvent?: PlatformAgentEvent | null; + platformAgentEventEdge?: PlatformAgentEventEdge | null; } -export type CreateAgentMessagePayloadSelect = { - agentMessage?: { - select: AgentMessageSelect; +export type UpdatePlatformAgentEventPayloadSelect = { + clientMutationId?: boolean; + platformAgentEvent?: { + select: PlatformAgentEventSelect; }; - agentMessageEdge?: { - select: AgentMessageEdgeSelect; + platformAgentEventEdge?: { + select: PlatformAgentEventEdgeSelect; }; +}; +export interface DeletePlatformAgentEventPayload { + clientMutationId?: string | null; + /** The `PlatformAgentEvent` that was deleted by this mutation. */ + platformAgentEvent?: PlatformAgentEvent | null; + platformAgentEventEdge?: PlatformAgentEventEdge | null; +} +export type DeletePlatformAgentEventPayloadSelect = { clientMutationId?: boolean; + platformAgentEvent?: { + select: PlatformAgentEventSelect; + }; + platformAgentEventEdge?: { + select: PlatformAgentEventEdgeSelect; + }; }; -export interface UpdateAgentMessagePayload { - /** The `AgentMessage` that was updated by this mutation. */ - agentMessage?: AgentMessage | null; - agentMessageEdge?: AgentMessageEdge | null; +export interface CreatePlatformAgentMessagePayload { clientMutationId?: string | null; + /** The `PlatformAgentMessage` that was created by this mutation. */ + platformAgentMessage?: PlatformAgentMessage | null; + platformAgentMessageEdge?: PlatformAgentMessageEdge | null; } -export type UpdateAgentMessagePayloadSelect = { - agentMessage?: { - select: AgentMessageSelect; +export type CreatePlatformAgentMessagePayloadSelect = { + clientMutationId?: boolean; + platformAgentMessage?: { + select: PlatformAgentMessageSelect; }; - agentMessageEdge?: { - select: AgentMessageEdgeSelect; + platformAgentMessageEdge?: { + select: PlatformAgentMessageEdgeSelect; }; +}; +export interface UpdatePlatformAgentMessagePayload { + clientMutationId?: string | null; + /** The `PlatformAgentMessage` that was updated by this mutation. */ + platformAgentMessage?: PlatformAgentMessage | null; + platformAgentMessageEdge?: PlatformAgentMessageEdge | null; +} +export type UpdatePlatformAgentMessagePayloadSelect = { clientMutationId?: boolean; + platformAgentMessage?: { + select: PlatformAgentMessageSelect; + }; + platformAgentMessageEdge?: { + select: PlatformAgentMessageEdgeSelect; + }; }; -export interface DeleteAgentMessagePayload { - /** The `AgentMessage` that was deleted by this mutation. */ - agentMessage?: AgentMessage | null; - agentMessageEdge?: AgentMessageEdge | null; +export interface DeletePlatformAgentMessagePayload { clientMutationId?: string | null; + /** The `PlatformAgentMessage` that was deleted by this mutation. */ + platformAgentMessage?: PlatformAgentMessage | null; + platformAgentMessageEdge?: PlatformAgentMessageEdge | null; } -export type DeleteAgentMessagePayloadSelect = { - agentMessage?: { - select: AgentMessageSelect; +export type DeletePlatformAgentMessagePayloadSelect = { + clientMutationId?: boolean; + platformAgentMessage?: { + select: PlatformAgentMessageSelect; }; - agentMessageEdge?: { - select: AgentMessageEdgeSelect; + platformAgentMessageEdge?: { + select: PlatformAgentMessageEdgeSelect; }; +}; +export interface CreatePlatformAgentPersonaPayload { + clientMutationId?: string | null; + /** The `PlatformAgentPersona` that was created by this mutation. */ + platformAgentPersona?: PlatformAgentPersona | null; + platformAgentPersonaEdge?: PlatformAgentPersonaEdge | null; +} +export type CreatePlatformAgentPersonaPayloadSelect = { clientMutationId?: boolean; + platformAgentPersona?: { + select: PlatformAgentPersonaSelect; + }; + platformAgentPersonaEdge?: { + select: PlatformAgentPersonaEdgeSelect; + }; }; -export interface CreateAgentPersonaPayload { - /** The `AgentPersona` that was created by this mutation. */ - agentPersona?: AgentPersona | null; - agentPersonaEdge?: AgentPersonaEdge | null; +export interface UpdatePlatformAgentPersonaPayload { clientMutationId?: string | null; + /** The `PlatformAgentPersona` that was updated by this mutation. */ + platformAgentPersona?: PlatformAgentPersona | null; + platformAgentPersonaEdge?: PlatformAgentPersonaEdge | null; } -export type CreateAgentPersonaPayloadSelect = { - agentPersona?: { - select: AgentPersonaSelect; +export type UpdatePlatformAgentPersonaPayloadSelect = { + clientMutationId?: boolean; + platformAgentPersona?: { + select: PlatformAgentPersonaSelect; }; - agentPersonaEdge?: { - select: AgentPersonaEdgeSelect; + platformAgentPersonaEdge?: { + select: PlatformAgentPersonaEdgeSelect; }; +}; +export interface DeletePlatformAgentPersonaPayload { + clientMutationId?: string | null; + /** The `PlatformAgentPersona` that was deleted by this mutation. */ + platformAgentPersona?: PlatformAgentPersona | null; + platformAgentPersonaEdge?: PlatformAgentPersonaEdge | null; +} +export type DeletePlatformAgentPersonaPayloadSelect = { clientMutationId?: boolean; + platformAgentPersona?: { + select: PlatformAgentPersonaSelect; + }; + platformAgentPersonaEdge?: { + select: PlatformAgentPersonaEdgeSelect; + }; }; -export interface UpdateAgentPersonaPayload { - /** The `AgentPersona` that was updated by this mutation. */ - agentPersona?: AgentPersona | null; - agentPersonaEdge?: AgentPersonaEdge | null; +export interface CreatePlatformAgentPlanPayload { clientMutationId?: string | null; + /** The `PlatformAgentPlan` that was created by this mutation. */ + platformAgentPlan?: PlatformAgentPlan | null; + platformAgentPlanEdge?: PlatformAgentPlanEdge | null; } -export type UpdateAgentPersonaPayloadSelect = { - agentPersona?: { - select: AgentPersonaSelect; +export type CreatePlatformAgentPlanPayloadSelect = { + clientMutationId?: boolean; + platformAgentPlan?: { + select: PlatformAgentPlanSelect; }; - agentPersonaEdge?: { - select: AgentPersonaEdgeSelect; + platformAgentPlanEdge?: { + select: PlatformAgentPlanEdgeSelect; }; +}; +export interface UpdatePlatformAgentPlanPayload { + clientMutationId?: string | null; + /** The `PlatformAgentPlan` that was updated by this mutation. */ + platformAgentPlan?: PlatformAgentPlan | null; + platformAgentPlanEdge?: PlatformAgentPlanEdge | null; +} +export type UpdatePlatformAgentPlanPayloadSelect = { clientMutationId?: boolean; + platformAgentPlan?: { + select: PlatformAgentPlanSelect; + }; + platformAgentPlanEdge?: { + select: PlatformAgentPlanEdgeSelect; + }; }; -export interface DeleteAgentPersonaPayload { - /** The `AgentPersona` that was deleted by this mutation. */ - agentPersona?: AgentPersona | null; - agentPersonaEdge?: AgentPersonaEdge | null; +export interface DeletePlatformAgentPlanPayload { clientMutationId?: string | null; + /** The `PlatformAgentPlan` that was deleted by this mutation. */ + platformAgentPlan?: PlatformAgentPlan | null; + platformAgentPlanEdge?: PlatformAgentPlanEdge | null; } -export type DeleteAgentPersonaPayloadSelect = { - agentPersona?: { - select: AgentPersonaSelect; +export type DeletePlatformAgentPlanPayloadSelect = { + clientMutationId?: boolean; + platformAgentPlan?: { + select: PlatformAgentPlanSelect; }; - agentPersonaEdge?: { - select: AgentPersonaEdgeSelect; + platformAgentPlanEdge?: { + select: PlatformAgentPlanEdgeSelect; }; +}; +export interface CreatePlatformAgentPromptPayload { + clientMutationId?: string | null; + /** The `PlatformAgentPrompt` that was created by this mutation. */ + platformAgentPrompt?: PlatformAgentPrompt | null; + platformAgentPromptEdge?: PlatformAgentPromptEdge | null; +} +export type CreatePlatformAgentPromptPayloadSelect = { clientMutationId?: boolean; + platformAgentPrompt?: { + select: PlatformAgentPromptSelect; + }; + platformAgentPromptEdge?: { + select: PlatformAgentPromptEdgeSelect; + }; }; -export interface CreateAgentPlanPayload { - /** The `AgentPlan` that was created by this mutation. */ - agentPlan?: AgentPlan | null; - agentPlanEdge?: AgentPlanEdge | null; +export interface UpdatePlatformAgentPromptPayload { clientMutationId?: string | null; + /** The `PlatformAgentPrompt` that was updated by this mutation. */ + platformAgentPrompt?: PlatformAgentPrompt | null; + platformAgentPromptEdge?: PlatformAgentPromptEdge | null; } -export type CreateAgentPlanPayloadSelect = { - agentPlan?: { - select: AgentPlanSelect; +export type UpdatePlatformAgentPromptPayloadSelect = { + clientMutationId?: boolean; + platformAgentPrompt?: { + select: PlatformAgentPromptSelect; }; - agentPlanEdge?: { - select: AgentPlanEdgeSelect; + platformAgentPromptEdge?: { + select: PlatformAgentPromptEdgeSelect; }; +}; +export interface DeletePlatformAgentPromptPayload { + clientMutationId?: string | null; + /** The `PlatformAgentPrompt` that was deleted by this mutation. */ + platformAgentPrompt?: PlatformAgentPrompt | null; + platformAgentPromptEdge?: PlatformAgentPromptEdge | null; +} +export type DeletePlatformAgentPromptPayloadSelect = { clientMutationId?: boolean; + platformAgentPrompt?: { + select: PlatformAgentPromptSelect; + }; + platformAgentPromptEdge?: { + select: PlatformAgentPromptEdgeSelect; + }; }; -export interface UpdateAgentPlanPayload { - /** The `AgentPlan` that was updated by this mutation. */ - agentPlan?: AgentPlan | null; - agentPlanEdge?: AgentPlanEdge | null; +export interface CreatePlatformAgentResourceChunkPayload { + clientMutationId?: string | null; + /** The `PlatformAgentResourceChunk` that was created by this mutation. */ + platformAgentResourceChunk?: PlatformAgentResourceChunk | null; + platformAgentResourceChunkEdge?: PlatformAgentResourceChunkEdge | null; +} +export type CreatePlatformAgentResourceChunkPayloadSelect = { + clientMutationId?: boolean; + platformAgentResourceChunk?: { + select: PlatformAgentResourceChunkSelect; + }; + platformAgentResourceChunkEdge?: { + select: PlatformAgentResourceChunkEdgeSelect; + }; +}; +export interface UpdatePlatformAgentResourceChunkPayload { clientMutationId?: string | null; + /** The `PlatformAgentResourceChunk` that was updated by this mutation. */ + platformAgentResourceChunk?: PlatformAgentResourceChunk | null; + platformAgentResourceChunkEdge?: PlatformAgentResourceChunkEdge | null; } -export type UpdateAgentPlanPayloadSelect = { - agentPlan?: { - select: AgentPlanSelect; +export type UpdatePlatformAgentResourceChunkPayloadSelect = { + clientMutationId?: boolean; + platformAgentResourceChunk?: { + select: PlatformAgentResourceChunkSelect; }; - agentPlanEdge?: { - select: AgentPlanEdgeSelect; + platformAgentResourceChunkEdge?: { + select: PlatformAgentResourceChunkEdgeSelect; }; - clientMutationId?: boolean; }; -export interface DeleteAgentPlanPayload { - /** The `AgentPlan` that was deleted by this mutation. */ - agentPlan?: AgentPlan | null; - agentPlanEdge?: AgentPlanEdge | null; +export interface DeletePlatformAgentResourceChunkPayload { clientMutationId?: string | null; + /** The `PlatformAgentResourceChunk` that was deleted by this mutation. */ + platformAgentResourceChunk?: PlatformAgentResourceChunk | null; + platformAgentResourceChunkEdge?: PlatformAgentResourceChunkEdge | null; } -export type DeleteAgentPlanPayloadSelect = { - agentPlan?: { - select: AgentPlanSelect; +export type DeletePlatformAgentResourceChunkPayloadSelect = { + clientMutationId?: boolean; + platformAgentResourceChunk?: { + select: PlatformAgentResourceChunkSelect; }; - agentPlanEdge?: { - select: AgentPlanEdgeSelect; + platformAgentResourceChunkEdge?: { + select: PlatformAgentResourceChunkEdgeSelect; }; - clientMutationId?: boolean; }; -export interface CreateAgentPromptPayload { - /** The `AgentPrompt` that was created by this mutation. */ - agentPrompt?: AgentPrompt | null; - agentPromptEdge?: AgentPromptEdge | null; +export interface CreatePlatformAgentResourcePayload { clientMutationId?: string | null; + /** The `PlatformAgentResource` that was created by this mutation. */ + platformAgentResource?: PlatformAgentResource | null; + platformAgentResourceEdge?: PlatformAgentResourceEdge | null; } -export type CreateAgentPromptPayloadSelect = { - agentPrompt?: { - select: AgentPromptSelect; +export type CreatePlatformAgentResourcePayloadSelect = { + clientMutationId?: boolean; + platformAgentResource?: { + select: PlatformAgentResourceSelect; }; - agentPromptEdge?: { - select: AgentPromptEdgeSelect; + platformAgentResourceEdge?: { + select: PlatformAgentResourceEdgeSelect; }; - clientMutationId?: boolean; }; -export interface UpdateAgentPromptPayload { - /** The `AgentPrompt` that was updated by this mutation. */ - agentPrompt?: AgentPrompt | null; - agentPromptEdge?: AgentPromptEdge | null; +export interface UpdatePlatformAgentResourcePayload { clientMutationId?: string | null; + /** The `PlatformAgentResource` that was updated by this mutation. */ + platformAgentResource?: PlatformAgentResource | null; + platformAgentResourceEdge?: PlatformAgentResourceEdge | null; } -export type UpdateAgentPromptPayloadSelect = { - agentPrompt?: { - select: AgentPromptSelect; +export type UpdatePlatformAgentResourcePayloadSelect = { + clientMutationId?: boolean; + platformAgentResource?: { + select: PlatformAgentResourceSelect; }; - agentPromptEdge?: { - select: AgentPromptEdgeSelect; + platformAgentResourceEdge?: { + select: PlatformAgentResourceEdgeSelect; }; - clientMutationId?: boolean; }; -export interface DeleteAgentPromptPayload { - /** The `AgentPrompt` that was deleted by this mutation. */ - agentPrompt?: AgentPrompt | null; - agentPromptEdge?: AgentPromptEdge | null; +export interface DeletePlatformAgentResourcePayload { clientMutationId?: string | null; + /** The `PlatformAgentResource` that was deleted by this mutation. */ + platformAgentResource?: PlatformAgentResource | null; + platformAgentResourceEdge?: PlatformAgentResourceEdge | null; } -export type DeleteAgentPromptPayloadSelect = { - agentPrompt?: { - select: AgentPromptSelect; +export type DeletePlatformAgentResourcePayloadSelect = { + clientMutationId?: boolean; + platformAgentResource?: { + select: PlatformAgentResourceSelect; }; - agentPromptEdge?: { - select: AgentPromptEdgeSelect; + platformAgentResourceEdge?: { + select: PlatformAgentResourceEdgeSelect; }; - clientMutationId?: boolean; }; -export interface CreateAgentResourceChunkPayload { - /** The `AgentResourceChunk` that was created by this mutation. */ - agentResourceChunk?: AgentResourceChunk | null; - agentResourceChunkEdge?: AgentResourceChunkEdge | null; +export interface CreatePlatformAgentRunPayload { clientMutationId?: string | null; + /** The `PlatformAgentRun` that was created by this mutation. */ + platformAgentRun?: PlatformAgentRun | null; + platformAgentRunEdge?: PlatformAgentRunEdge | null; } -export type CreateAgentResourceChunkPayloadSelect = { - agentResourceChunk?: { - select: AgentResourceChunkSelect; +export type CreatePlatformAgentRunPayloadSelect = { + clientMutationId?: boolean; + platformAgentRun?: { + select: PlatformAgentRunSelect; }; - agentResourceChunkEdge?: { - select: AgentResourceChunkEdgeSelect; + platformAgentRunEdge?: { + select: PlatformAgentRunEdgeSelect; }; - clientMutationId?: boolean; }; -export interface UpdateAgentResourceChunkPayload { - /** The `AgentResourceChunk` that was updated by this mutation. */ - agentResourceChunk?: AgentResourceChunk | null; - agentResourceChunkEdge?: AgentResourceChunkEdge | null; +export interface UpdatePlatformAgentRunPayload { clientMutationId?: string | null; + /** The `PlatformAgentRun` that was updated by this mutation. */ + platformAgentRun?: PlatformAgentRun | null; + platformAgentRunEdge?: PlatformAgentRunEdge | null; } -export type UpdateAgentResourceChunkPayloadSelect = { - agentResourceChunk?: { - select: AgentResourceChunkSelect; +export type UpdatePlatformAgentRunPayloadSelect = { + clientMutationId?: boolean; + platformAgentRun?: { + select: PlatformAgentRunSelect; }; - agentResourceChunkEdge?: { - select: AgentResourceChunkEdgeSelect; + platformAgentRunEdge?: { + select: PlatformAgentRunEdgeSelect; }; - clientMutationId?: boolean; }; -export interface DeleteAgentResourceChunkPayload { - /** The `AgentResourceChunk` that was deleted by this mutation. */ - agentResourceChunk?: AgentResourceChunk | null; - agentResourceChunkEdge?: AgentResourceChunkEdge | null; +export interface DeletePlatformAgentRunPayload { clientMutationId?: string | null; + /** The `PlatformAgentRun` that was deleted by this mutation. */ + platformAgentRun?: PlatformAgentRun | null; + platformAgentRunEdge?: PlatformAgentRunEdge | null; } -export type DeleteAgentResourceChunkPayloadSelect = { - agentResourceChunk?: { - select: AgentResourceChunkSelect; +export type DeletePlatformAgentRunPayloadSelect = { + clientMutationId?: boolean; + platformAgentRun?: { + select: PlatformAgentRunSelect; }; - agentResourceChunkEdge?: { - select: AgentResourceChunkEdgeSelect; + platformAgentRunEdge?: { + select: PlatformAgentRunEdgeSelect; }; - clientMutationId?: boolean; }; -export interface CreateAgentResourcePayload { - /** The `AgentResource` that was created by this mutation. */ - agentResource?: AgentResource | null; - agentResourceEdge?: AgentResourceEdge | null; +export interface CreatePlatformAgentRunWorkspacePayload { clientMutationId?: string | null; + /** The `PlatformAgentRunWorkspace` that was created by this mutation. */ + platformAgentRunWorkspace?: PlatformAgentRunWorkspace | null; + platformAgentRunWorkspaceEdge?: PlatformAgentRunWorkspaceEdge | null; } -export type CreateAgentResourcePayloadSelect = { - agentResource?: { - select: AgentResourceSelect; +export type CreatePlatformAgentRunWorkspacePayloadSelect = { + clientMutationId?: boolean; + platformAgentRunWorkspace?: { + select: PlatformAgentRunWorkspaceSelect; }; - agentResourceEdge?: { - select: AgentResourceEdgeSelect; + platformAgentRunWorkspaceEdge?: { + select: PlatformAgentRunWorkspaceEdgeSelect; }; - clientMutationId?: boolean; }; -export interface UpdateAgentResourcePayload { - /** The `AgentResource` that was updated by this mutation. */ - agentResource?: AgentResource | null; - agentResourceEdge?: AgentResourceEdge | null; +export interface UpdatePlatformAgentRunWorkspacePayload { clientMutationId?: string | null; + /** The `PlatformAgentRunWorkspace` that was updated by this mutation. */ + platformAgentRunWorkspace?: PlatformAgentRunWorkspace | null; + platformAgentRunWorkspaceEdge?: PlatformAgentRunWorkspaceEdge | null; } -export type UpdateAgentResourcePayloadSelect = { - agentResource?: { - select: AgentResourceSelect; +export type UpdatePlatformAgentRunWorkspacePayloadSelect = { + clientMutationId?: boolean; + platformAgentRunWorkspace?: { + select: PlatformAgentRunWorkspaceSelect; }; - agentResourceEdge?: { - select: AgentResourceEdgeSelect; + platformAgentRunWorkspaceEdge?: { + select: PlatformAgentRunWorkspaceEdgeSelect; }; - clientMutationId?: boolean; }; -export interface DeleteAgentResourcePayload { - /** The `AgentResource` that was deleted by this mutation. */ - agentResource?: AgentResource | null; - agentResourceEdge?: AgentResourceEdge | null; +export interface DeletePlatformAgentRunWorkspacePayload { clientMutationId?: string | null; + /** The `PlatformAgentRunWorkspace` that was deleted by this mutation. */ + platformAgentRunWorkspace?: PlatformAgentRunWorkspace | null; + platformAgentRunWorkspaceEdge?: PlatformAgentRunWorkspaceEdge | null; } -export type DeleteAgentResourcePayloadSelect = { - agentResource?: { - select: AgentResourceSelect; +export type DeletePlatformAgentRunWorkspacePayloadSelect = { + clientMutationId?: boolean; + platformAgentRunWorkspace?: { + select: PlatformAgentRunWorkspaceSelect; }; - agentResourceEdge?: { - select: AgentResourceEdgeSelect; + platformAgentRunWorkspaceEdge?: { + select: PlatformAgentRunWorkspaceEdgeSelect; }; - clientMutationId?: boolean; }; -export interface CreateAgentTaskPayload { - /** The `AgentTask` that was created by this mutation. */ - agentTask?: AgentTask | null; - agentTaskEdge?: AgentTaskEdge | null; +export interface CreatePlatformAgentTaskPayload { clientMutationId?: string | null; + /** The `PlatformAgentTask` that was created by this mutation. */ + platformAgentTask?: PlatformAgentTask | null; + platformAgentTaskEdge?: PlatformAgentTaskEdge | null; } -export type CreateAgentTaskPayloadSelect = { - agentTask?: { - select: AgentTaskSelect; +export type CreatePlatformAgentTaskPayloadSelect = { + clientMutationId?: boolean; + platformAgentTask?: { + select: PlatformAgentTaskSelect; }; - agentTaskEdge?: { - select: AgentTaskEdgeSelect; + platformAgentTaskEdge?: { + select: PlatformAgentTaskEdgeSelect; }; - clientMutationId?: boolean; }; -export interface UpdateAgentTaskPayload { - /** The `AgentTask` that was updated by this mutation. */ - agentTask?: AgentTask | null; - agentTaskEdge?: AgentTaskEdge | null; +export interface UpdatePlatformAgentTaskPayload { clientMutationId?: string | null; + /** The `PlatformAgentTask` that was updated by this mutation. */ + platformAgentTask?: PlatformAgentTask | null; + platformAgentTaskEdge?: PlatformAgentTaskEdge | null; } -export type UpdateAgentTaskPayloadSelect = { - agentTask?: { - select: AgentTaskSelect; +export type UpdatePlatformAgentTaskPayloadSelect = { + clientMutationId?: boolean; + platformAgentTask?: { + select: PlatformAgentTaskSelect; }; - agentTaskEdge?: { - select: AgentTaskEdgeSelect; + platformAgentTaskEdge?: { + select: PlatformAgentTaskEdgeSelect; }; - clientMutationId?: boolean; }; -export interface DeleteAgentTaskPayload { - /** The `AgentTask` that was deleted by this mutation. */ - agentTask?: AgentTask | null; - agentTaskEdge?: AgentTaskEdge | null; +export interface DeletePlatformAgentTaskPayload { clientMutationId?: string | null; + /** The `PlatformAgentTask` that was deleted by this mutation. */ + platformAgentTask?: PlatformAgentTask | null; + platformAgentTaskEdge?: PlatformAgentTaskEdge | null; } -export type DeleteAgentTaskPayloadSelect = { - agentTask?: { - select: AgentTaskSelect; +export type DeletePlatformAgentTaskPayloadSelect = { + clientMutationId?: boolean; + platformAgentTask?: { + select: PlatformAgentTaskSelect; }; - agentTaskEdge?: { - select: AgentTaskEdgeSelect; + platformAgentTaskEdge?: { + select: PlatformAgentTaskEdgeSelect; }; - clientMutationId?: boolean; }; -export interface CreateAgentThreadPayload { - /** The `AgentThread` that was created by this mutation. */ - agentThread?: AgentThread | null; - agentThreadEdge?: AgentThreadEdge | null; +export interface CreatePlatformAgentThreadPayload { clientMutationId?: string | null; + /** The `PlatformAgentThread` that was created by this mutation. */ + platformAgentThread?: PlatformAgentThread | null; + platformAgentThreadEdge?: PlatformAgentThreadEdge | null; } -export type CreateAgentThreadPayloadSelect = { - agentThread?: { - select: AgentThreadSelect; +export type CreatePlatformAgentThreadPayloadSelect = { + clientMutationId?: boolean; + platformAgentThread?: { + select: PlatformAgentThreadSelect; }; - agentThreadEdge?: { - select: AgentThreadEdgeSelect; + platformAgentThreadEdge?: { + select: PlatformAgentThreadEdgeSelect; }; - clientMutationId?: boolean; }; -export interface UpdateAgentThreadPayload { - /** The `AgentThread` that was updated by this mutation. */ - agentThread?: AgentThread | null; - agentThreadEdge?: AgentThreadEdge | null; +export interface UpdatePlatformAgentThreadPayload { clientMutationId?: string | null; + /** The `PlatformAgentThread` that was updated by this mutation. */ + platformAgentThread?: PlatformAgentThread | null; + platformAgentThreadEdge?: PlatformAgentThreadEdge | null; } -export type UpdateAgentThreadPayloadSelect = { - agentThread?: { - select: AgentThreadSelect; +export type UpdatePlatformAgentThreadPayloadSelect = { + clientMutationId?: boolean; + platformAgentThread?: { + select: PlatformAgentThreadSelect; }; - agentThreadEdge?: { - select: AgentThreadEdgeSelect; + platformAgentThreadEdge?: { + select: PlatformAgentThreadEdgeSelect; }; - clientMutationId?: boolean; }; -export interface DeleteAgentThreadPayload { - /** The `AgentThread` that was deleted by this mutation. */ - agentThread?: AgentThread | null; - agentThreadEdge?: AgentThreadEdge | null; +export interface DeletePlatformAgentThreadPayload { clientMutationId?: string | null; + /** The `PlatformAgentThread` that was deleted by this mutation. */ + platformAgentThread?: PlatformAgentThread | null; + platformAgentThreadEdge?: PlatformAgentThreadEdge | null; } -export type DeleteAgentThreadPayloadSelect = { - agentThread?: { - select: AgentThreadSelect; +export type DeletePlatformAgentThreadPayloadSelect = { + clientMutationId?: boolean; + platformAgentThread?: { + select: PlatformAgentThreadSelect; }; - agentThreadEdge?: { - select: AgentThreadEdgeSelect; + platformAgentThreadEdge?: { + select: PlatformAgentThreadEdgeSelect; }; - clientMutationId?: boolean; }; /** A `Agent` edge in the connection. */ export interface AgentEdge { @@ -3422,3 +7377,147 @@ export type AgentThreadEdgeSelect = { select: AgentThreadSelect; }; }; +/** A `PlatformAgent` edge in the connection. */ +export interface PlatformAgentEdge { + cursor?: string | null; + /** The `PlatformAgent` at the end of the edge. */ + node?: PlatformAgent | null; +} +export type PlatformAgentEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformAgentSelect; + }; +}; +/** A `PlatformAgentEvent` edge in the connection. */ +export interface PlatformAgentEventEdge { + cursor?: string | null; + /** The `PlatformAgentEvent` at the end of the edge. */ + node?: PlatformAgentEvent | null; +} +export type PlatformAgentEventEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformAgentEventSelect; + }; +}; +/** A `PlatformAgentMessage` edge in the connection. */ +export interface PlatformAgentMessageEdge { + cursor?: string | null; + /** The `PlatformAgentMessage` at the end of the edge. */ + node?: PlatformAgentMessage | null; +} +export type PlatformAgentMessageEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformAgentMessageSelect; + }; +}; +/** A `PlatformAgentPersona` edge in the connection. */ +export interface PlatformAgentPersonaEdge { + cursor?: string | null; + /** The `PlatformAgentPersona` at the end of the edge. */ + node?: PlatformAgentPersona | null; +} +export type PlatformAgentPersonaEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformAgentPersonaSelect; + }; +}; +/** A `PlatformAgentPlan` edge in the connection. */ +export interface PlatformAgentPlanEdge { + cursor?: string | null; + /** The `PlatformAgentPlan` at the end of the edge. */ + node?: PlatformAgentPlan | null; +} +export type PlatformAgentPlanEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformAgentPlanSelect; + }; +}; +/** A `PlatformAgentPrompt` edge in the connection. */ +export interface PlatformAgentPromptEdge { + cursor?: string | null; + /** The `PlatformAgentPrompt` at the end of the edge. */ + node?: PlatformAgentPrompt | null; +} +export type PlatformAgentPromptEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformAgentPromptSelect; + }; +}; +/** A `PlatformAgentResourceChunk` edge in the connection. */ +export interface PlatformAgentResourceChunkEdge { + cursor?: string | null; + /** The `PlatformAgentResourceChunk` at the end of the edge. */ + node?: PlatformAgentResourceChunk | null; +} +export type PlatformAgentResourceChunkEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformAgentResourceChunkSelect; + }; +}; +/** A `PlatformAgentResource` edge in the connection. */ +export interface PlatformAgentResourceEdge { + cursor?: string | null; + /** The `PlatformAgentResource` at the end of the edge. */ + node?: PlatformAgentResource | null; +} +export type PlatformAgentResourceEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformAgentResourceSelect; + }; +}; +/** A `PlatformAgentRun` edge in the connection. */ +export interface PlatformAgentRunEdge { + cursor?: string | null; + /** The `PlatformAgentRun` at the end of the edge. */ + node?: PlatformAgentRun | null; +} +export type PlatformAgentRunEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformAgentRunSelect; + }; +}; +/** A `PlatformAgentRunWorkspace` edge in the connection. */ +export interface PlatformAgentRunWorkspaceEdge { + cursor?: string | null; + /** The `PlatformAgentRunWorkspace` at the end of the edge. */ + node?: PlatformAgentRunWorkspace | null; +} +export type PlatformAgentRunWorkspaceEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformAgentRunWorkspaceSelect; + }; +}; +/** A `PlatformAgentTask` edge in the connection. */ +export interface PlatformAgentTaskEdge { + cursor?: string | null; + /** The `PlatformAgentTask` at the end of the edge. */ + node?: PlatformAgentTask | null; +} +export type PlatformAgentTaskEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformAgentTaskSelect; + }; +}; +/** A `PlatformAgentThread` edge in the connection. */ +export interface PlatformAgentThreadEdge { + cursor?: string | null; + /** The `PlatformAgentThread` at the end of the edge. */ + node?: PlatformAgentThread | null; +} +export type PlatformAgentThreadEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformAgentThreadSelect; + }; +}; diff --git a/sdk/constructive-cli/src/agent/orm/models/index.ts b/sdk/constructive-cli/src/agent/orm/models/index.ts index 4d02471c8a..399c45027a 100644 --- a/sdk/constructive-cli/src/agent/orm/models/index.ts +++ b/sdk/constructive-cli/src/agent/orm/models/index.ts @@ -12,3 +12,15 @@ export { AgentResourceChunkModel } from './agentResourceChunk'; export { AgentResourceModel } from './agentResource'; export { AgentTaskModel } from './agentTask'; export { AgentThreadModel } from './agentThread'; +export { PlatformAgentModel } from './platformAgent'; +export { PlatformAgentEventModel } from './platformAgentEvent'; +export { PlatformAgentMessageModel } from './platformAgentMessage'; +export { PlatformAgentPersonaModel } from './platformAgentPersona'; +export { PlatformAgentPlanModel } from './platformAgentPlan'; +export { PlatformAgentPromptModel } from './platformAgentPrompt'; +export { PlatformAgentResourceChunkModel } from './platformAgentResourceChunk'; +export { PlatformAgentResourceModel } from './platformAgentResource'; +export { PlatformAgentRunModel } from './platformAgentRun'; +export { PlatformAgentRunWorkspaceModel } from './platformAgentRunWorkspace'; +export { PlatformAgentTaskModel } from './platformAgentTask'; +export { PlatformAgentThreadModel } from './platformAgentThread'; diff --git a/sdk/constructive-cli/src/agent/orm/models/platformAgent.ts b/sdk/constructive-cli/src/agent/orm/models/platformAgent.ts new file mode 100644 index 0000000000..fad9efeb9c --- /dev/null +++ b/sdk/constructive-cli/src/agent/orm/models/platformAgent.ts @@ -0,0 +1,245 @@ +/** + * PlatformAgent 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 { + PlatformAgent, + PlatformAgentWithRelations, + PlatformAgentSelect, + PlatformAgentFilter, + PlatformAgentOrderBy, + CreatePlatformAgentInput, + UpdatePlatformAgentInput, + PlatformAgentPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformAgentModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgents: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformAgent', + 'platformAgents', + 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, + }, + 'PlatformAgentFilter', + 'PlatformAgentOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgent', + fieldName: 'platformAgents', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgent: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformAgent', + 'platformAgents', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformAgentFilter', + 'PlatformAgentOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgent', + fieldName: 'platformAgent', + document, + variables, + transform: (data: { + platformAgents?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformAgent: data.platformAgents?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgent: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformAgent', + 'platformAgents', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformAgentFilter', + 'PlatformAgentOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgent', + fieldName: 'platformAgent', + document, + variables, + transform: (data: { + platformAgents?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformAgent: data.platformAgents?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformAgent: { + platformAgent: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformAgent', + 'createPlatformAgent', + 'platformAgent', + args.select, + args.data, + 'CreatePlatformAgentInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgent', + fieldName: 'createPlatformAgent', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformAgentPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformAgent: { + platformAgent: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformAgent', + 'updatePlatformAgent', + 'platformAgent', + args.select, + args.where.id, + args.data, + 'UpdatePlatformAgentInput', + 'id', + 'platformAgentPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgent', + fieldName: 'updatePlatformAgent', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformAgent: { + platformAgent: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformAgent', + 'deletePlatformAgent', + 'platformAgent', + { + id: args.where.id, + }, + 'DeletePlatformAgentInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgent', + fieldName: 'deletePlatformAgent', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/agent/orm/models/platformAgentEvent.ts b/sdk/constructive-cli/src/agent/orm/models/platformAgentEvent.ts new file mode 100644 index 0000000000..b9fb61422a --- /dev/null +++ b/sdk/constructive-cli/src/agent/orm/models/platformAgentEvent.ts @@ -0,0 +1,245 @@ +/** + * PlatformAgentEvent 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 { + PlatformAgentEvent, + PlatformAgentEventWithRelations, + PlatformAgentEventSelect, + PlatformAgentEventFilter, + PlatformAgentEventOrderBy, + CreatePlatformAgentEventInput, + UpdatePlatformAgentEventInput, + PlatformAgentEventPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformAgentEventModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgentEvents: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformAgentEvent', + 'platformAgentEvents', + 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, + }, + 'PlatformAgentEventFilter', + 'PlatformAgentEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgentEvent', + fieldName: 'platformAgentEvents', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgentEvent: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformAgentEvent', + 'platformAgentEvents', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformAgentEventFilter', + 'PlatformAgentEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgentEvent', + fieldName: 'platformAgentEvent', + document, + variables, + transform: (data: { + platformAgentEvents?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformAgentEvent: data.platformAgentEvents?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgentEvent: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformAgentEvent', + 'platformAgentEvents', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformAgentEventFilter', + 'PlatformAgentEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgentEvent', + fieldName: 'platformAgentEvent', + document, + variables, + transform: (data: { + platformAgentEvents?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformAgentEvent: data.platformAgentEvents?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformAgentEvent: { + platformAgentEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformAgentEvent', + 'createPlatformAgentEvent', + 'platformAgentEvent', + args.select, + args.data, + 'CreatePlatformAgentEventInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgentEvent', + fieldName: 'createPlatformAgentEvent', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformAgentEventPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformAgentEvent: { + platformAgentEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformAgentEvent', + 'updatePlatformAgentEvent', + 'platformAgentEvent', + args.select, + args.where.id, + args.data, + 'UpdatePlatformAgentEventInput', + 'id', + 'platformAgentEventPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgentEvent', + fieldName: 'updatePlatformAgentEvent', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformAgentEvent: { + platformAgentEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformAgentEvent', + 'deletePlatformAgentEvent', + 'platformAgentEvent', + { + id: args.where.id, + }, + 'DeletePlatformAgentEventInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgentEvent', + fieldName: 'deletePlatformAgentEvent', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/agent/orm/models/platformAgentMessage.ts b/sdk/constructive-cli/src/agent/orm/models/platformAgentMessage.ts new file mode 100644 index 0000000000..e8187514b3 --- /dev/null +++ b/sdk/constructive-cli/src/agent/orm/models/platformAgentMessage.ts @@ -0,0 +1,247 @@ +/** + * PlatformAgentMessage 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 { + PlatformAgentMessage, + PlatformAgentMessageWithRelations, + PlatformAgentMessageSelect, + PlatformAgentMessageFilter, + PlatformAgentMessageOrderBy, + CreatePlatformAgentMessageInput, + UpdatePlatformAgentMessageInput, + PlatformAgentMessagePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformAgentMessageModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgentMessages: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformAgentMessage', + 'platformAgentMessages', + 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, + }, + 'PlatformAgentMessageFilter', + 'PlatformAgentMessageOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgentMessage', + fieldName: 'platformAgentMessages', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgentMessage: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformAgentMessage', + 'platformAgentMessages', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformAgentMessageFilter', + 'PlatformAgentMessageOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgentMessage', + fieldName: 'platformAgentMessage', + document, + variables, + transform: (data: { + platformAgentMessages?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformAgentMessage: data.platformAgentMessages?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgentMessage: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformAgentMessage', + 'platformAgentMessages', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformAgentMessageFilter', + 'PlatformAgentMessageOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgentMessage', + fieldName: 'platformAgentMessage', + document, + variables, + transform: (data: { + platformAgentMessages?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformAgentMessage: data.platformAgentMessages?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformAgentMessage: { + platformAgentMessage: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformAgentMessage', + 'createPlatformAgentMessage', + 'platformAgentMessage', + args.select, + args.data, + 'CreatePlatformAgentMessageInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgentMessage', + fieldName: 'createPlatformAgentMessage', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformAgentMessagePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformAgentMessage: { + platformAgentMessage: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformAgentMessage', + 'updatePlatformAgentMessage', + 'platformAgentMessage', + args.select, + args.where.id, + args.data, + 'UpdatePlatformAgentMessageInput', + 'id', + 'platformAgentMessagePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgentMessage', + fieldName: 'updatePlatformAgentMessage', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformAgentMessage: { + platformAgentMessage: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformAgentMessage', + 'deletePlatformAgentMessage', + 'platformAgentMessage', + { + id: args.where.id, + }, + 'DeletePlatformAgentMessageInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgentMessage', + fieldName: 'deletePlatformAgentMessage', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/agent/orm/models/platformAgentPersona.ts b/sdk/constructive-cli/src/agent/orm/models/platformAgentPersona.ts new file mode 100644 index 0000000000..7f78da643b --- /dev/null +++ b/sdk/constructive-cli/src/agent/orm/models/platformAgentPersona.ts @@ -0,0 +1,247 @@ +/** + * PlatformAgentPersona 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 { + PlatformAgentPersona, + PlatformAgentPersonaWithRelations, + PlatformAgentPersonaSelect, + PlatformAgentPersonaFilter, + PlatformAgentPersonaOrderBy, + CreatePlatformAgentPersonaInput, + UpdatePlatformAgentPersonaInput, + PlatformAgentPersonaPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformAgentPersonaModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgentPersonas: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformAgentPersona', + 'platformAgentPersonas', + 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, + }, + 'PlatformAgentPersonaFilter', + 'PlatformAgentPersonaOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgentPersona', + fieldName: 'platformAgentPersonas', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgentPersona: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformAgentPersona', + 'platformAgentPersonas', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformAgentPersonaFilter', + 'PlatformAgentPersonaOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgentPersona', + fieldName: 'platformAgentPersona', + document, + variables, + transform: (data: { + platformAgentPersonas?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformAgentPersona: data.platformAgentPersonas?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgentPersona: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformAgentPersona', + 'platformAgentPersonas', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformAgentPersonaFilter', + 'PlatformAgentPersonaOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgentPersona', + fieldName: 'platformAgentPersona', + document, + variables, + transform: (data: { + platformAgentPersonas?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformAgentPersona: data.platformAgentPersonas?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformAgentPersona: { + platformAgentPersona: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformAgentPersona', + 'createPlatformAgentPersona', + 'platformAgentPersona', + args.select, + args.data, + 'CreatePlatformAgentPersonaInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgentPersona', + fieldName: 'createPlatformAgentPersona', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformAgentPersonaPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformAgentPersona: { + platformAgentPersona: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformAgentPersona', + 'updatePlatformAgentPersona', + 'platformAgentPersona', + args.select, + args.where.id, + args.data, + 'UpdatePlatformAgentPersonaInput', + 'id', + 'platformAgentPersonaPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgentPersona', + fieldName: 'updatePlatformAgentPersona', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformAgentPersona: { + platformAgentPersona: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformAgentPersona', + 'deletePlatformAgentPersona', + 'platformAgentPersona', + { + id: args.where.id, + }, + 'DeletePlatformAgentPersonaInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgentPersona', + fieldName: 'deletePlatformAgentPersona', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/agent/orm/models/platformAgentPlan.ts b/sdk/constructive-cli/src/agent/orm/models/platformAgentPlan.ts new file mode 100644 index 0000000000..c029b7a96f --- /dev/null +++ b/sdk/constructive-cli/src/agent/orm/models/platformAgentPlan.ts @@ -0,0 +1,245 @@ +/** + * PlatformAgentPlan 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 { + PlatformAgentPlan, + PlatformAgentPlanWithRelations, + PlatformAgentPlanSelect, + PlatformAgentPlanFilter, + PlatformAgentPlanOrderBy, + CreatePlatformAgentPlanInput, + UpdatePlatformAgentPlanInput, + PlatformAgentPlanPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformAgentPlanModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgentPlans: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformAgentPlan', + 'platformAgentPlans', + 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, + }, + 'PlatformAgentPlanFilter', + 'PlatformAgentPlanOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgentPlan', + fieldName: 'platformAgentPlans', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgentPlan: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformAgentPlan', + 'platformAgentPlans', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformAgentPlanFilter', + 'PlatformAgentPlanOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgentPlan', + fieldName: 'platformAgentPlan', + document, + variables, + transform: (data: { + platformAgentPlans?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformAgentPlan: data.platformAgentPlans?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgentPlan: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformAgentPlan', + 'platformAgentPlans', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformAgentPlanFilter', + 'PlatformAgentPlanOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgentPlan', + fieldName: 'platformAgentPlan', + document, + variables, + transform: (data: { + platformAgentPlans?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformAgentPlan: data.platformAgentPlans?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformAgentPlan: { + platformAgentPlan: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformAgentPlan', + 'createPlatformAgentPlan', + 'platformAgentPlan', + args.select, + args.data, + 'CreatePlatformAgentPlanInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgentPlan', + fieldName: 'createPlatformAgentPlan', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformAgentPlanPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformAgentPlan: { + platformAgentPlan: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformAgentPlan', + 'updatePlatformAgentPlan', + 'platformAgentPlan', + args.select, + args.where.id, + args.data, + 'UpdatePlatformAgentPlanInput', + 'id', + 'platformAgentPlanPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgentPlan', + fieldName: 'updatePlatformAgentPlan', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformAgentPlan: { + platformAgentPlan: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformAgentPlan', + 'deletePlatformAgentPlan', + 'platformAgentPlan', + { + id: args.where.id, + }, + 'DeletePlatformAgentPlanInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgentPlan', + fieldName: 'deletePlatformAgentPlan', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/agent/orm/models/platformAgentPrompt.ts b/sdk/constructive-cli/src/agent/orm/models/platformAgentPrompt.ts new file mode 100644 index 0000000000..3fd42f1d26 --- /dev/null +++ b/sdk/constructive-cli/src/agent/orm/models/platformAgentPrompt.ts @@ -0,0 +1,245 @@ +/** + * PlatformAgentPrompt 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 { + PlatformAgentPrompt, + PlatformAgentPromptWithRelations, + PlatformAgentPromptSelect, + PlatformAgentPromptFilter, + PlatformAgentPromptOrderBy, + CreatePlatformAgentPromptInput, + UpdatePlatformAgentPromptInput, + PlatformAgentPromptPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformAgentPromptModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgentPrompts: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformAgentPrompt', + 'platformAgentPrompts', + 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, + }, + 'PlatformAgentPromptFilter', + 'PlatformAgentPromptOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgentPrompt', + fieldName: 'platformAgentPrompts', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgentPrompt: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformAgentPrompt', + 'platformAgentPrompts', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformAgentPromptFilter', + 'PlatformAgentPromptOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgentPrompt', + fieldName: 'platformAgentPrompt', + document, + variables, + transform: (data: { + platformAgentPrompts?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformAgentPrompt: data.platformAgentPrompts?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgentPrompt: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformAgentPrompt', + 'platformAgentPrompts', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformAgentPromptFilter', + 'PlatformAgentPromptOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgentPrompt', + fieldName: 'platformAgentPrompt', + document, + variables, + transform: (data: { + platformAgentPrompts?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformAgentPrompt: data.platformAgentPrompts?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformAgentPrompt: { + platformAgentPrompt: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformAgentPrompt', + 'createPlatformAgentPrompt', + 'platformAgentPrompt', + args.select, + args.data, + 'CreatePlatformAgentPromptInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgentPrompt', + fieldName: 'createPlatformAgentPrompt', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformAgentPromptPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformAgentPrompt: { + platformAgentPrompt: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformAgentPrompt', + 'updatePlatformAgentPrompt', + 'platformAgentPrompt', + args.select, + args.where.id, + args.data, + 'UpdatePlatformAgentPromptInput', + 'id', + 'platformAgentPromptPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgentPrompt', + fieldName: 'updatePlatformAgentPrompt', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformAgentPrompt: { + platformAgentPrompt: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformAgentPrompt', + 'deletePlatformAgentPrompt', + 'platformAgentPrompt', + { + id: args.where.id, + }, + 'DeletePlatformAgentPromptInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgentPrompt', + fieldName: 'deletePlatformAgentPrompt', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/agent/orm/models/platformAgentResource.ts b/sdk/constructive-cli/src/agent/orm/models/platformAgentResource.ts new file mode 100644 index 0000000000..fe7b5c666d --- /dev/null +++ b/sdk/constructive-cli/src/agent/orm/models/platformAgentResource.ts @@ -0,0 +1,247 @@ +/** + * PlatformAgentResource 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 { + PlatformAgentResource, + PlatformAgentResourceWithRelations, + PlatformAgentResourceSelect, + PlatformAgentResourceFilter, + PlatformAgentResourceOrderBy, + CreatePlatformAgentResourceInput, + UpdatePlatformAgentResourceInput, + PlatformAgentResourcePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformAgentResourceModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgentResources: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformAgentResource', + 'platformAgentResources', + 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, + }, + 'PlatformAgentResourceFilter', + 'PlatformAgentResourceOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgentResource', + fieldName: 'platformAgentResources', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgentResource: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformAgentResource', + 'platformAgentResources', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformAgentResourceFilter', + 'PlatformAgentResourceOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgentResource', + fieldName: 'platformAgentResource', + document, + variables, + transform: (data: { + platformAgentResources?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformAgentResource: data.platformAgentResources?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgentResource: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformAgentResource', + 'platformAgentResources', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformAgentResourceFilter', + 'PlatformAgentResourceOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgentResource', + fieldName: 'platformAgentResource', + document, + variables, + transform: (data: { + platformAgentResources?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformAgentResource: data.platformAgentResources?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformAgentResource: { + platformAgentResource: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformAgentResource', + 'createPlatformAgentResource', + 'platformAgentResource', + args.select, + args.data, + 'CreatePlatformAgentResourceInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgentResource', + fieldName: 'createPlatformAgentResource', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformAgentResourcePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformAgentResource: { + platformAgentResource: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformAgentResource', + 'updatePlatformAgentResource', + 'platformAgentResource', + args.select, + args.where.id, + args.data, + 'UpdatePlatformAgentResourceInput', + 'id', + 'platformAgentResourcePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgentResource', + fieldName: 'updatePlatformAgentResource', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformAgentResource: { + platformAgentResource: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformAgentResource', + 'deletePlatformAgentResource', + 'platformAgentResource', + { + id: args.where.id, + }, + 'DeletePlatformAgentResourceInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgentResource', + fieldName: 'deletePlatformAgentResource', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/agent/orm/models/platformAgentResourceChunk.ts b/sdk/constructive-cli/src/agent/orm/models/platformAgentResourceChunk.ts new file mode 100644 index 0000000000..0eb14fdf90 --- /dev/null +++ b/sdk/constructive-cli/src/agent/orm/models/platformAgentResourceChunk.ts @@ -0,0 +1,253 @@ +/** + * PlatformAgentResourceChunk 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 { + PlatformAgentResourceChunk, + PlatformAgentResourceChunkWithRelations, + PlatformAgentResourceChunkSelect, + PlatformAgentResourceChunkFilter, + PlatformAgentResourceChunkOrderBy, + CreatePlatformAgentResourceChunkInput, + UpdatePlatformAgentResourceChunkInput, + PlatformAgentResourceChunkPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformAgentResourceChunkModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgentResourceChunks: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformAgentResourceChunk', + 'platformAgentResourceChunks', + 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, + }, + 'PlatformAgentResourceChunkFilter', + 'PlatformAgentResourceChunkOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgentResourceChunk', + fieldName: 'platformAgentResourceChunks', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgentResourceChunk: InferSelectResult< + PlatformAgentResourceChunkWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformAgentResourceChunk', + 'platformAgentResourceChunks', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformAgentResourceChunkFilter', + 'PlatformAgentResourceChunkOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgentResourceChunk', + fieldName: 'platformAgentResourceChunk', + document, + variables, + transform: (data: { + platformAgentResourceChunks?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformAgentResourceChunk: data.platformAgentResourceChunks?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgentResourceChunk: InferSelectResult< + PlatformAgentResourceChunkWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformAgentResourceChunk', + 'platformAgentResourceChunks', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformAgentResourceChunkFilter', + 'PlatformAgentResourceChunkOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgentResourceChunk', + fieldName: 'platformAgentResourceChunk', + document, + variables, + transform: (data: { + platformAgentResourceChunks?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformAgentResourceChunk: data.platformAgentResourceChunks?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformAgentResourceChunk: { + platformAgentResourceChunk: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformAgentResourceChunk', + 'createPlatformAgentResourceChunk', + 'platformAgentResourceChunk', + args.select, + args.data, + 'CreatePlatformAgentResourceChunkInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgentResourceChunk', + fieldName: 'createPlatformAgentResourceChunk', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformAgentResourceChunkPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformAgentResourceChunk: { + platformAgentResourceChunk: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformAgentResourceChunk', + 'updatePlatformAgentResourceChunk', + 'platformAgentResourceChunk', + args.select, + args.where.id, + args.data, + 'UpdatePlatformAgentResourceChunkInput', + 'id', + 'platformAgentResourceChunkPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgentResourceChunk', + fieldName: 'updatePlatformAgentResourceChunk', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformAgentResourceChunk: { + platformAgentResourceChunk: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformAgentResourceChunk', + 'deletePlatformAgentResourceChunk', + 'platformAgentResourceChunk', + { + id: args.where.id, + }, + 'DeletePlatformAgentResourceChunkInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgentResourceChunk', + fieldName: 'deletePlatformAgentResourceChunk', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/agent/orm/models/platformAgentRun.ts b/sdk/constructive-cli/src/agent/orm/models/platformAgentRun.ts new file mode 100644 index 0000000000..86de43f916 --- /dev/null +++ b/sdk/constructive-cli/src/agent/orm/models/platformAgentRun.ts @@ -0,0 +1,245 @@ +/** + * PlatformAgentRun 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 { + PlatformAgentRun, + PlatformAgentRunWithRelations, + PlatformAgentRunSelect, + PlatformAgentRunFilter, + PlatformAgentRunOrderBy, + CreatePlatformAgentRunInput, + UpdatePlatformAgentRunInput, + PlatformAgentRunPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformAgentRunModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgentRuns: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformAgentRun', + 'platformAgentRuns', + 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, + }, + 'PlatformAgentRunFilter', + 'PlatformAgentRunOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgentRun', + fieldName: 'platformAgentRuns', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgentRun: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformAgentRun', + 'platformAgentRuns', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformAgentRunFilter', + 'PlatformAgentRunOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgentRun', + fieldName: 'platformAgentRun', + document, + variables, + transform: (data: { + platformAgentRuns?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformAgentRun: data.platformAgentRuns?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgentRun: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformAgentRun', + 'platformAgentRuns', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformAgentRunFilter', + 'PlatformAgentRunOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgentRun', + fieldName: 'platformAgentRun', + document, + variables, + transform: (data: { + platformAgentRuns?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformAgentRun: data.platformAgentRuns?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformAgentRun: { + platformAgentRun: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformAgentRun', + 'createPlatformAgentRun', + 'platformAgentRun', + args.select, + args.data, + 'CreatePlatformAgentRunInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgentRun', + fieldName: 'createPlatformAgentRun', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformAgentRunPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformAgentRun: { + platformAgentRun: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformAgentRun', + 'updatePlatformAgentRun', + 'platformAgentRun', + args.select, + args.where.id, + args.data, + 'UpdatePlatformAgentRunInput', + 'id', + 'platformAgentRunPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgentRun', + fieldName: 'updatePlatformAgentRun', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformAgentRun: { + platformAgentRun: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformAgentRun', + 'deletePlatformAgentRun', + 'platformAgentRun', + { + id: args.where.id, + }, + 'DeletePlatformAgentRunInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgentRun', + fieldName: 'deletePlatformAgentRun', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/agent/orm/models/platformAgentRunWorkspace.ts b/sdk/constructive-cli/src/agent/orm/models/platformAgentRunWorkspace.ts new file mode 100644 index 0000000000..a948ae7f75 --- /dev/null +++ b/sdk/constructive-cli/src/agent/orm/models/platformAgentRunWorkspace.ts @@ -0,0 +1,247 @@ +/** + * PlatformAgentRunWorkspace 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 { + PlatformAgentRunWorkspace, + PlatformAgentRunWorkspaceWithRelations, + PlatformAgentRunWorkspaceSelect, + PlatformAgentRunWorkspaceFilter, + PlatformAgentRunWorkspaceOrderBy, + CreatePlatformAgentRunWorkspaceInput, + UpdatePlatformAgentRunWorkspaceInput, + PlatformAgentRunWorkspacePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformAgentRunWorkspaceModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgentRunWorkspaces: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformAgentRunWorkspace', + 'platformAgentRunWorkspaces', + 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, + }, + 'PlatformAgentRunWorkspaceFilter', + 'PlatformAgentRunWorkspaceOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgentRunWorkspace', + fieldName: 'platformAgentRunWorkspaces', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgentRunWorkspace: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformAgentRunWorkspace', + 'platformAgentRunWorkspaces', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformAgentRunWorkspaceFilter', + 'PlatformAgentRunWorkspaceOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgentRunWorkspace', + fieldName: 'platformAgentRunWorkspace', + document, + variables, + transform: (data: { + platformAgentRunWorkspaces?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformAgentRunWorkspace: data.platformAgentRunWorkspaces?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgentRunWorkspace: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformAgentRunWorkspace', + 'platformAgentRunWorkspaces', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformAgentRunWorkspaceFilter', + 'PlatformAgentRunWorkspaceOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgentRunWorkspace', + fieldName: 'platformAgentRunWorkspace', + document, + variables, + transform: (data: { + platformAgentRunWorkspaces?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformAgentRunWorkspace: data.platformAgentRunWorkspaces?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformAgentRunWorkspace: { + platformAgentRunWorkspace: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformAgentRunWorkspace', + 'createPlatformAgentRunWorkspace', + 'platformAgentRunWorkspace', + args.select, + args.data, + 'CreatePlatformAgentRunWorkspaceInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgentRunWorkspace', + fieldName: 'createPlatformAgentRunWorkspace', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformAgentRunWorkspacePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformAgentRunWorkspace: { + platformAgentRunWorkspace: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformAgentRunWorkspace', + 'updatePlatformAgentRunWorkspace', + 'platformAgentRunWorkspace', + args.select, + args.where.id, + args.data, + 'UpdatePlatformAgentRunWorkspaceInput', + 'id', + 'platformAgentRunWorkspacePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgentRunWorkspace', + fieldName: 'updatePlatformAgentRunWorkspace', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformAgentRunWorkspace: { + platformAgentRunWorkspace: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformAgentRunWorkspace', + 'deletePlatformAgentRunWorkspace', + 'platformAgentRunWorkspace', + { + id: args.where.id, + }, + 'DeletePlatformAgentRunWorkspaceInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgentRunWorkspace', + fieldName: 'deletePlatformAgentRunWorkspace', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/agent/orm/models/platformAgentTask.ts b/sdk/constructive-cli/src/agent/orm/models/platformAgentTask.ts new file mode 100644 index 0000000000..a71fb03e7b --- /dev/null +++ b/sdk/constructive-cli/src/agent/orm/models/platformAgentTask.ts @@ -0,0 +1,245 @@ +/** + * PlatformAgentTask 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 { + PlatformAgentTask, + PlatformAgentTaskWithRelations, + PlatformAgentTaskSelect, + PlatformAgentTaskFilter, + PlatformAgentTaskOrderBy, + CreatePlatformAgentTaskInput, + UpdatePlatformAgentTaskInput, + PlatformAgentTaskPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformAgentTaskModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgentTasks: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformAgentTask', + 'platformAgentTasks', + 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, + }, + 'PlatformAgentTaskFilter', + 'PlatformAgentTaskOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgentTask', + fieldName: 'platformAgentTasks', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgentTask: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformAgentTask', + 'platformAgentTasks', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformAgentTaskFilter', + 'PlatformAgentTaskOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgentTask', + fieldName: 'platformAgentTask', + document, + variables, + transform: (data: { + platformAgentTasks?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformAgentTask: data.platformAgentTasks?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgentTask: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformAgentTask', + 'platformAgentTasks', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformAgentTaskFilter', + 'PlatformAgentTaskOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgentTask', + fieldName: 'platformAgentTask', + document, + variables, + transform: (data: { + platformAgentTasks?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformAgentTask: data.platformAgentTasks?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformAgentTask: { + platformAgentTask: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformAgentTask', + 'createPlatformAgentTask', + 'platformAgentTask', + args.select, + args.data, + 'CreatePlatformAgentTaskInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgentTask', + fieldName: 'createPlatformAgentTask', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformAgentTaskPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformAgentTask: { + platformAgentTask: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformAgentTask', + 'updatePlatformAgentTask', + 'platformAgentTask', + args.select, + args.where.id, + args.data, + 'UpdatePlatformAgentTaskInput', + 'id', + 'platformAgentTaskPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgentTask', + fieldName: 'updatePlatformAgentTask', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformAgentTask: { + platformAgentTask: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformAgentTask', + 'deletePlatformAgentTask', + 'platformAgentTask', + { + id: args.where.id, + }, + 'DeletePlatformAgentTaskInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgentTask', + fieldName: 'deletePlatformAgentTask', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/agent/orm/models/platformAgentThread.ts b/sdk/constructive-cli/src/agent/orm/models/platformAgentThread.ts new file mode 100644 index 0000000000..7738100a6e --- /dev/null +++ b/sdk/constructive-cli/src/agent/orm/models/platformAgentThread.ts @@ -0,0 +1,245 @@ +/** + * PlatformAgentThread 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 { + PlatformAgentThread, + PlatformAgentThreadWithRelations, + PlatformAgentThreadSelect, + PlatformAgentThreadFilter, + PlatformAgentThreadOrderBy, + CreatePlatformAgentThreadInput, + UpdatePlatformAgentThreadInput, + PlatformAgentThreadPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformAgentThreadModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgentThreads: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformAgentThread', + 'platformAgentThreads', + 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, + }, + 'PlatformAgentThreadFilter', + 'PlatformAgentThreadOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgentThread', + fieldName: 'platformAgentThreads', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgentThread: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformAgentThread', + 'platformAgentThreads', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformAgentThreadFilter', + 'PlatformAgentThreadOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgentThread', + fieldName: 'platformAgentThread', + document, + variables, + transform: (data: { + platformAgentThreads?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformAgentThread: data.platformAgentThreads?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgentThread: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformAgentThread', + 'platformAgentThreads', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformAgentThreadFilter', + 'PlatformAgentThreadOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgentThread', + fieldName: 'platformAgentThread', + document, + variables, + transform: (data: { + platformAgentThreads?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformAgentThread: data.platformAgentThreads?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformAgentThread: { + platformAgentThread: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformAgentThread', + 'createPlatformAgentThread', + 'platformAgentThread', + args.select, + args.data, + 'CreatePlatformAgentThreadInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgentThread', + fieldName: 'createPlatformAgentThread', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformAgentThreadPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformAgentThread: { + platformAgentThread: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformAgentThread', + 'updatePlatformAgentThread', + 'platformAgentThread', + args.select, + args.where.id, + args.data, + 'UpdatePlatformAgentThreadInput', + 'id', + 'platformAgentThreadPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgentThread', + fieldName: 'updatePlatformAgentThread', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformAgentThread: { + platformAgentThread: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformAgentThread', + 'deletePlatformAgentThread', + 'platformAgentThread', + { + id: args.where.id, + }, + 'DeletePlatformAgentThreadInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgentThread', + fieldName: 'deletePlatformAgentThread', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/agent/orm/mutation/index.ts b/sdk/constructive-cli/src/agent/orm/mutation/index.ts index 989afbcbd6..5491e16cd0 100644 --- a/sdk/constructive-cli/src/agent/orm/mutation/index.ts +++ b/sdk/constructive-cli/src/agent/orm/mutation/index.ts @@ -14,10 +14,11 @@ import type { import { connectionFieldsMap } from '../input-types'; /** * Variables for provisionBucket - * 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. + * Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. */ export interface ProvisionBucketVariables { input: ProvisionBucketInput; diff --git a/sdk/constructive-cli/src/api/README.md b/sdk/constructive-cli/src/api/README.md index 432f75b198..996e061c82 100644 --- a/sdk/constructive-cli/src/api/README.md +++ b/sdk/constructive-cli/src/api/README.md @@ -8,9 +8,9 @@ ## Overview -- **Tables:** 80 -- **Custom queries:** 6 -- **Custom mutations:** 11 +- **Tables:** 91 +- **Custom queries:** 17 +- **Custom mutations:** 27 **Generators:** ORM, CLI diff --git a/sdk/constructive-cli/src/api/cli/README.md b/sdk/constructive-cli/src/api/cli/README.md index 17c860c371..719e093df4 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 | @@ -51,20 +54,25 @@ csdk auth set-token | `foreign-key-constraint` | foreignKeyConstraint CRUD operations | | `full-text-search` | fullTextSearch CRUD operations | | `function` | function CRUD operations | +| `get-site-previews-record` | getSitePreviewsRecord CRUD operations | | `hostname-binding` | hostnameBinding CRUD operations | -| `http-route` | httpRoute CRUD operations | +| `identity-provider-registry` | identityProviderRegistry CRUD operations | | `index` | index CRUD operations | | `managed-domain` | managedDomain CRUD operations | | `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-get-site-previews-record` | platformGetSitePreviewsRecord CRUD operations | | `platform-managed-domain` | platformManagedDomain CRUD operations | | `platform-page` | platformPage CRUD operations | | `platform-site-app-link` | platformSiteAppLink CRUD operations | @@ -73,11 +81,13 @@ csdk auth set-token | `platform-site-error-page` | platformSiteErrorPage CRUD operations | | `platform-site-metadatum` | platformSiteMetadatum CRUD operations | | `platform-site-module` | platformSiteModule CRUD operations | +| `platform-site-release` | platformSiteRelease CRUD operations | | `platform-site-theme` | platformSiteTheme CRUD operations | | `platform-site-web-config` | platformSiteWebConfig CRUD operations | | `policy` | policy CRUD operations | | `primary-key-constraint` | primaryKeyConstraint CRUD operations | | `pubkey-setting` | pubkeySetting CRUD operations | +| `redirect` | redirect CRUD operations | | `rls-setting` | rlsSetting CRUD operations | | `route-binding` | routeBinding CRUD operations | | `route` | route CRUD operations | @@ -89,6 +99,7 @@ csdk auth set-token | `site-error-page` | siteErrorPage CRUD operations | | `site-metadatum` | siteMetadatum CRUD operations | | `site-module` | siteModule CRUD operations | +| `site-release` | siteRelease CRUD operations | | `site-theme` | siteTheme CRUD operations | | `site-web-config` | siteWebConfig CRUD operations | | `spatial-relation` | spatialRelation CRUD operations | @@ -108,29 +119,58 @@ csdk auth set-token | `webauthn-setting` | webauthnSetting CRUD operations | | `api-schema-names` | apiSchemaNames | | `apply-registry-defaults` | applyRegistryDefaults | +| `get-site-preview-commit` | getSitePreviewCommit | +| `get-site-release-manifest` | getSiteReleaseManifest | +| `page-published` | pagePublished | +| `platform-get-site-preview-commit` | platformGetSitePreviewCommit | +| `platform-get-site-release-manifest` | platformGetSiteReleaseManifest | +| `platform-page-published` | platformPagePublished | +| `platform-sites-deep-link-url` | platformSitesDeepLinkUrl | +| `platform-sites-site-origin` | platformSitesSiteOrigin | +| `platform-verify-site-preview-token` | platformVerifySitePreviewToken | | `resolve-deep-link` | resolveDeepLink | -| `resolve-http-route` | resolveHttpRoute | | `resolve-route` | resolveRoute | | `resolve-site-app-links` | resolveSiteAppLinks | +| `sites-deep-link-url` | sitesDeepLinkUrl | +| `sites-site-origin` | sitesSiteOrigin | +| `verify-site-preview-token` | verifySitePreviewToken | | `accept-database-transfer` | acceptDatabaseTransfer | | `apply-rls` | applyRls | | `cancel-database-transfer` | cancelDatabaseTransfer | +| `delete-site-preview` | deleteSitePreview | | `domains-assign-subdomain` | domainsAssignSubdomain | +| `mint-site-preview-token` | mintSitePreviewToken | +| `pages-install-pages` | pagesInstallPages | +| `platform-delete-site-preview` | platformDeleteSitePreview | | `platform-domains-assign-subdomain` | platformDomainsAssignSubdomain | +| `platform-mint-site-preview-token` | platformMintSitePreviewToken | +| `platform-pages-install-pages` | platformPagesInstallPages | +| `platform-provision-site-preview` | platformProvisionSitePreview | +| `platform-set-site-preview` | platformSetSitePreview | +| `platform-site-metadata-install-robots` | platformSiteMetadataInstallRobots | +| `platform-sites-install-content-preset` | platformSitesInstallContentPreset | +| `platform-sites-install-mantra` | platformSitesInstallMantra | | `platform-sites-provision-static-site` | platformSitesProvisionStaticSite | -| `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-bucket` | Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. | +| `provision-site-preview` | provisionSitePreview | | `reject-database-transfer` | rejectDatabaseTransfer | | `request-database` | 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. +Pass exactly one of preset_slug or modules. Pass organization_id to have the organization own the database from the start (the caller must be an owner of that organization); the requesting user is still the identity bootstrapped into the new database. Omit it for a personal database. 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); | + SELECT * FROM metaschema_public.request_database('my_app', 'example.com', modules := '["users_module", "emails_module"]'::jsonb); + SELECT * FROM metaschema_public.request_database('team_app', 'example.com', preset_slug := 'full', organization_id := '00000000-0000-0000-0000-000000000000'::uuid); | | `set-field-order` | setFieldOrder | +| `set-site-preview` | setSitePreview | +| `site-metadata-install-robots` | siteMetadataInstallRobots | +| `sites-install-content-preset` | sitesInstallContentPreset | +| `sites-install-mantra` | sitesInstallMantra | | `sites-provision-static-site` | sitesProvisionStaticSite | ## Infrastructure Commands @@ -174,6 +214,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. @@ -225,6 +296,7 @@ CRUD operations for ApiSetting records. | `enableConnectionFilter` | Boolean | | `enableDirectUploads` | Boolean | | `enableI18N` | Boolean | +| `enableIntrospection` | Boolean | | `enableLlm` | Boolean | | `enableLtree` | Boolean | | `enableManyToMany` | Boolean | @@ -233,43 +305,22 @@ CRUD operations for ApiSetting records. | `enableRealtime` | Boolean | | `enableSearch` | Boolean | | `id` | UUID | +| `idleInTransactionTimeoutMs` | BigInt | +| `lockTimeoutMs` | BigInt | +| `maxConcurrentRequests` | Int | +| `maxPageSize` | Int | +| `maxQueryCost` | Int | +| `maxQueryDepth` | Int | +| `maxQueueWaitMs` | Int | +| `maxRequestBytes` | Int | | `options` | JSON | +| `rateLimitBurst` | Int | +| `rateLimitRpm` | Int | | `statementTimeoutMs` | BigInt | | `updatedAt` | Datetime | **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` +**Optional create fields (backend defaults):** `enableAggregates`, `enableBulk`, `enableConnectionFilter`, `enableDirectUploads`, `enableI18N`, `enableIntrospection`, `enableLlm`, `enableLtree`, `enableManyToMany`, `enablePostgis`, `enablePresignedUploads`, `enableRealtime`, `enableSearch`, `idleInTransactionTimeoutMs`, `lockTimeoutMs`, `maxConcurrentRequests`, `maxPageSize`, `maxQueryCost`, `maxQueryDepth`, `maxQueueWaitMs`, `maxRequestBytes`, `options`, `rateLimitBurst`, `rateLimitRpm`, `statementTimeoutMs` ### `ast-migration` @@ -446,10 +497,12 @@ CRUD operations for DatabaseSetting records. | `createdAt` | Datetime | | `databaseId` | UUID | | `enableAggregates` | Boolean | +| `enableBilling` | Boolean | | `enableBulk` | Boolean | | `enableConnectionFilter` | Boolean | | `enableDirectUploads` | Boolean | | `enableI18N` | Boolean | +| `enableIntrospection` | Boolean | | `enableLlm` | Boolean | | `enableLtree` | Boolean | | `enableManyToMany` | Boolean | @@ -458,13 +511,23 @@ CRUD operations for DatabaseSetting records. | `enableRealtime` | Boolean | | `enableSearch` | Boolean | | `id` | UUID | +| `idleInTransactionTimeoutMs` | BigInt | | `labels` | JSON | +| `lockTimeoutMs` | BigInt | +| `maxConcurrentRequests` | Int | +| `maxPageSize` | Int | +| `maxQueryCost` | Int | +| `maxQueryDepth` | Int | +| `maxQueueWaitMs` | Int | +| `maxRequestBytes` | Int | | `options` | JSON | +| `rateLimitBurst` | Int | +| `rateLimitRpm` | Int | | `statementTimeoutMs` | BigInt | | `updatedAt` | Datetime | **Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `annotations`, `enableAggregates`, `enableBulk`, `enableConnectionFilter`, `enableDirectUploads`, `enableI18N`, `enableLlm`, `enableLtree`, `enableManyToMany`, `enablePostgis`, `enablePresignedUploads`, `enableRealtime`, `enableSearch`, `labels`, `options`, `statementTimeoutMs` +**Optional create fields (backend defaults):** `annotations`, `enableAggregates`, `enableBilling`, `enableBulk`, `enableConnectionFilter`, `enableDirectUploads`, `enableI18N`, `enableIntrospection`, `enableLlm`, `enableLtree`, `enableManyToMany`, `enablePostgis`, `enablePresignedUploads`, `enableRealtime`, `enableSearch`, `idleInTransactionTimeoutMs`, `labels`, `lockTimeoutMs`, `maxConcurrentRequests`, `maxPageSize`, `maxQueryCost`, `maxQueryDepth`, `maxQueueWaitMs`, `maxRequestBytes`, `options`, `rateLimitBurst`, `rateLimitRpm`, `statementTimeoutMs` ### `database-transfer` @@ -549,6 +612,7 @@ CRUD operations for Derive records. | `createdAt` | Datetime | | `databaseId` | UUID | | `id` | UUID | +| `includeGrants` | Boolean | | `includeMutations` | Boolean | | `kind` | String | | `policyPrefix` | String | @@ -557,7 +621,7 @@ CRUD operations for Derive records. | `updatedAt` | Datetime | **Required create fields:** `kind`, `sourceTableId`, `tableId` -**Optional create fields (backend defaults):** `databaseId`, `includeMutations`, `policyPrefix` +**Optional create fields (backend defaults):** `databaseId`, `includeGrants`, `includeMutations`, `policyPrefix` ### `domain` @@ -578,6 +642,7 @@ CRUD operations for Domain records. |-------|------| | `config` | JSON | | `createdAt` | Datetime | +| `createdByPrincipal` | UUID | | `databaseId` | UUID | | `hostname` | String | | `id` | UUID | @@ -589,11 +654,12 @@ CRUD operations for Domain records. | `tlsSecretName` | String | | `tlsStatus` | String | | `updatedAt` | Datetime | +| `updatedByPrincipal` | UUID | | `verificationStatus` | String | | `verifiedAt` | Datetime | **Required create fields:** `databaseId`, `hostname` -**Optional create fields (backend defaults):** `config`, `isPublished`, `isWildcard`, `managed`, `parentHostname`, `tlsReadyAt`, `tlsSecretName`, `tlsStatus`, `verificationStatus`, `verifiedAt` +**Optional create fields (backend defaults):** `config`, `createdByPrincipal`, `isPublished`, `isWildcard`, `managed`, `parentHostname`, `tlsReadyAt`, `tlsSecretName`, `tlsStatus`, `updatedByPrincipal`, `verificationStatus`, `verifiedAt` ### `domain-event` @@ -698,6 +764,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. @@ -1000,12 +1163,48 @@ CRUD operations for Function records. | Field | Type | |-------|------| +| `apiExposed` | Boolean | +| `arguments` | JSON | +| `bodyAst` | JSON | +| `category` | ObjectCategory | +| `data` | JSON | | `databaseId` | UUID | +| `functionType` | String | | `id` | UUID | +| `isStrict` | Boolean | +| `kind` | String | | `name` | String | +| `returns` | JSON | | `schemaId` | UUID | +| `securityInvoker` | Boolean | +| `smartTags` | JSON | +| `tags` | String | +| `volatility` | String | **Required create fields:** `databaseId`, `name`, `schemaId` +**Optional create fields (backend defaults):** `apiExposed`, `arguments`, `bodyAst`, `category`, `data`, `functionType`, `isStrict`, `kind`, `returns`, `securityInvoker`, `smartTags`, `tags`, `volatility` + +### `get-site-previews-record` + +CRUD operations for GetSitePreviewsRecord records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all getSitePreviewsRecord records | +| `find-first` | Find first matching getSitePreviewsRecord record | +| `get` | Get a getSitePreviewsRecord by id | +| `create` | Create a new getSitePreviewsRecord | +| `update` | Update an existing getSitePreviewsRecord | +| `delete` | Delete a getSitePreviewsRecord | + +**Fields:** + +| Field | Type | +|-------|------| +| `commitId` | UUID | +| `name` | String | + +**Required create fields:** `commitId`, `name` ### `hostname-binding` @@ -1038,39 +1237,34 @@ CRUD operations for HostnameBinding records. **Required create fields:** `domainId`, `hostname` **Optional create fields (backend defaults):** `isWildcard`, `managed`, `parentHostname`, `tlsSecretName`, `tlsStatus`, `verificationStatus` -### `http-route` +### `identity-provider-registry` -CRUD operations for HttpRoute records. +CRUD operations for IdentityProviderRegistry records. | Subcommand | Description | |------------|-------------| -| `list` | List all httpRoute records | -| `find-first` | Find first matching httpRoute record | -| `get` | Get a httpRoute by id | -| `create` | Create a new httpRoute | -| `update` | Update an existing httpRoute | -| `delete` | Delete a httpRoute | +| `list` | List all identityProviderRegistry records | +| `find-first` | Find first matching identityProviderRegistry record | +| `get` | Get a identityProviderRegistry by slug | +| `create` | Create a new identityProviderRegistry | +| `update` | Update an existing identityProviderRegistry | +| `delete` | Delete a identityProviderRegistry | **Fields:** | Field | Type | |-------|------| -| `createdAt` | Datetime | -| `createdBy` | UUID | -| `databaseId` | UUID | -| `domainId` | UUID | -| `id` | UUID | -| `isActive` | Boolean | -| `method` | String | -| `path` | String | -| `priority` | Int | -| `targetId` | UUID | -| `targetKind` | String | -| `updatedAt` | Datetime | -| `updatedBy` | UUID | +| `authorizationUrl` | String | +| `displayName` | String | +| `issuerUrl` | String | +| `kind` | String | +| `scopes` | String | +| `slug` | String | +| `tokenUrl` | String | +| `userinfoUrl` | String | -**Required create fields:** `databaseId`, `domainId`, `targetId`, `targetKind` -**Optional create fields (backend defaults):** `createdBy`, `isActive`, `method`, `path`, `priority`, `updatedBy` +**Required create fields:** `displayName`, `kind` +**Optional create fields (backend defaults):** `authorizationUrl`, `issuerUrl`, `scopes`, `tokenUrl`, `userinfoUrl` ### `index` @@ -1099,6 +1293,7 @@ CRUD operations for Index records. | `indexParams` | JSON | | `isUnique` | Boolean | | `name` | String | +| `nullsNotDistinct` | Boolean | | `opClasses` | String | | `options` | JSON | | `smartTags` | JSON | @@ -1108,7 +1303,7 @@ CRUD operations for Index records. | `whereClause` | JSON | **Required create fields:** `databaseId`, `tableId` -**Optional create fields (backend defaults):** `accessMethod`, `category`, `fieldIds`, `includeFieldIds`, `indexParams`, `isUnique`, `name`, `opClasses`, `options`, `smartTags`, `tags`, `whereClause` +**Optional create fields (backend defaults):** `accessMethod`, `category`, `fieldIds`, `includeFieldIds`, `indexParams`, `isUnique`, `name`, `nullsNotDistinct`, `opClasses`, `options`, `smartTags`, `tags`, `whereClause` ### `managed-domain` @@ -1131,6 +1326,7 @@ CRUD operations for ManagedDomain records. | `annotations` | JSON | | `certStatus` | String | | `createdAt` | Datetime | +| `createdByPrincipal` | UUID | | `databaseId` | UUID | | `domain` | String | | `id` | UUID | @@ -1138,11 +1334,12 @@ CRUD operations for ManagedDomain records. | `tlsReadyAt` | Datetime | | `tlsStatus` | String | | `updatedAt` | Datetime | +| `updatedByPrincipal` | UUID | | `verificationStatus` | String | | `verifiedAt` | Datetime | **Required create fields:** `databaseId`, `domain` -**Optional create fields (backend defaults):** `allowPublicUsage`, `annotations`, `certStatus`, `isWildcard`, `tlsReadyAt`, `tlsStatus`, `verificationStatus`, `verifiedAt` +**Optional create fields (backend defaults):** `allowPublicUsage`, `annotations`, `certStatus`, `createdByPrincipal`, `isWildcard`, `tlsReadyAt`, `tlsStatus`, `updatedByPrincipal`, `verificationStatus`, `verifiedAt` ### `node-type-registry` @@ -1194,13 +1391,14 @@ CRUD operations for Page records. | `createdAt` | Datetime | | `databaseId` | UUID | | `id` | UUID | +| `seededFrom` | JSON | | `siteId` | UUID | | `slug` | String | | `storeId` | UUID | | `updatedAt` | Datetime | **Required create fields:** `content`, `databaseId`, `siteId`, `slug` -**Optional create fields (backend defaults):** `commitId`, `storeId` +**Optional create fields (backend defaults):** `commitId`, `seededFrom`, `storeId` ### `partition` @@ -1236,6 +1434,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. @@ -1285,6 +1513,7 @@ CRUD operations for PlatformApiSetting records. | `enableConnectionFilter` | Boolean | | `enableDirectUploads` | Boolean | | `enableI18N` | Boolean | +| `enableIntrospection` | Boolean | | `enableLlm` | Boolean | | `enableLtree` | Boolean | | `enableManyToMany` | Boolean | @@ -1293,42 +1522,22 @@ CRUD operations for PlatformApiSetting records. | `enableRealtime` | Boolean | | `enableSearch` | Boolean | | `id` | UUID | +| `idleInTransactionTimeoutMs` | BigInt | +| `lockTimeoutMs` | BigInt | +| `maxConcurrentRequests` | Int | +| `maxPageSize` | Int | +| `maxQueryCost` | Int | +| `maxQueryDepth` | Int | +| `maxQueueWaitMs` | Int | +| `maxRequestBytes` | Int | | `options` | JSON | +| `rateLimitBurst` | Int | +| `rateLimitRpm` | Int | | `statementTimeoutMs` | BigInt | | `updatedAt` | Datetime | **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` +**Optional create fields (backend defaults):** `enableAggregates`, `enableBulk`, `enableConnectionFilter`, `enableDirectUploads`, `enableI18N`, `enableIntrospection`, `enableLlm`, `enableLtree`, `enableManyToMany`, `enablePostgis`, `enablePresignedUploads`, `enableRealtime`, `enableSearch`, `idleInTransactionTimeoutMs`, `lockTimeoutMs`, `maxConcurrentRequests`, `maxPageSize`, `maxQueryCost`, `maxQueryDepth`, `maxQueueWaitMs`, `maxRequestBytes`, `options`, `rateLimitBurst`, `rateLimitRpm`, `statementTimeoutMs` ### `platform-cors-setting` @@ -1374,6 +1583,7 @@ CRUD operations for PlatformDomain records. |-------|------| | `config` | JSON | | `createdAt` | Datetime | +| `createdByPrincipal` | UUID | | `hostname` | String | | `id` | UUID | | `isPublished` | Boolean | @@ -1384,11 +1594,12 @@ CRUD operations for PlatformDomain records. | `tlsSecretName` | String | | `tlsStatus` | String | | `updatedAt` | Datetime | +| `updatedByPrincipal` | UUID | | `verificationStatus` | String | | `verifiedAt` | Datetime | **Required create fields:** `hostname` -**Optional create fields (backend defaults):** `config`, `isPublished`, `isWildcard`, `managed`, `parentHostname`, `tlsReadyAt`, `tlsSecretName`, `tlsStatus`, `verificationStatus`, `verifiedAt` +**Optional create fields (backend defaults):** `config`, `createdByPrincipal`, `isPublished`, `isWildcard`, `managed`, `parentHostname`, `tlsReadyAt`, `tlsSecretName`, `tlsStatus`, `updatedByPrincipal`, `verificationStatus`, `verifiedAt` ### `platform-domain-event` @@ -1457,6 +1668,122 @@ 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-get-site-previews-record` + +CRUD operations for PlatformGetSitePreviewsRecord records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all platformGetSitePreviewsRecord records | +| `find-first` | Find first matching platformGetSitePreviewsRecord record | +| `get` | Get a platformGetSitePreviewsRecord by id | +| `create` | Create a new platformGetSitePreviewsRecord | +| `update` | Update an existing platformGetSitePreviewsRecord | +| `delete` | Delete a platformGetSitePreviewsRecord | + +**Fields:** + +| Field | Type | +|-------|------| +| `commitId` | UUID | +| `name` | String | + +**Required create fields:** `commitId`, `name` + ### `platform-managed-domain` CRUD operations for PlatformManagedDomain records. @@ -1478,17 +1805,19 @@ CRUD operations for PlatformManagedDomain records. | `annotations` | JSON | | `certStatus` | String | | `createdAt` | Datetime | +| `createdByPrincipal` | UUID | | `domain` | String | | `id` | UUID | | `isWildcard` | Boolean | | `tlsReadyAt` | Datetime | | `tlsStatus` | String | | `updatedAt` | Datetime | +| `updatedByPrincipal` | UUID | | `verificationStatus` | String | | `verifiedAt` | Datetime | **Required create fields:** `domain` -**Optional create fields (backend defaults):** `allowPublicUsage`, `annotations`, `certStatus`, `isWildcard`, `tlsReadyAt`, `tlsStatus`, `verificationStatus`, `verifiedAt` +**Optional create fields (backend defaults):** `allowPublicUsage`, `annotations`, `certStatus`, `createdByPrincipal`, `isWildcard`, `tlsReadyAt`, `tlsStatus`, `updatedByPrincipal`, `verificationStatus`, `verifiedAt` ### `platform-page` @@ -1511,13 +1840,14 @@ CRUD operations for PlatformPage records. | `content` | JSON | | `createdAt` | Datetime | | `id` | UUID | +| `seededFrom` | JSON | | `siteId` | UUID | | `slug` | String | | `storeId` | UUID | | `updatedAt` | Datetime | **Required create fields:** `content`, `siteId`, `slug` -**Optional create fields (backend defaults):** `commitId`, `storeId` +**Optional create fields (backend defaults):** `commitId`, `seededFrom`, `storeId` ### `platform-site-app-link` @@ -1536,20 +1866,16 @@ CRUD operations for PlatformSiteAppLink records. | Field | Type | |-------|------| -| `appIdentifier` | String | +| `appStoreIdentityId` | UUID | | `createdAt` | Datetime | | `id` | UUID | | `pathComponents` | String | -| `platform` | String | -| `sha256CertFingerprints` | String | | `siteId` | UUID | -| `storeUrl` | String | -| `teamId` | String | | `updatedAt` | Datetime | | `webcredentials` | Boolean | -**Required create fields:** `appIdentifier`, `platform`, `siteId` -**Optional create fields (backend defaults):** `pathComponents`, `sha256CertFingerprints`, `storeUrl`, `teamId`, `webcredentials` +**Required create fields:** `appStoreIdentityId`, `siteId` +**Optional create fields (backend defaults):** `pathComponents`, `webcredentials` ### `platform-site` @@ -1571,6 +1897,7 @@ CRUD operations for PlatformSite records. | `activeCommitId` | UUID | | `bucketId` | UUID | | `createdAt` | Datetime | +| `createdByPrincipal` | UUID | | `description` | String | | `id` | UUID | | `installationId` | UUID | @@ -1580,9 +1907,10 @@ CRUD operations for PlatformSite records. | `resourceId` | UUID | | `title` | String | | `updatedAt` | Datetime | +| `updatedByPrincipal` | UUID | **Required create fields:** `name` -**Optional create fields (backend defaults):** `activeCommitId`, `bucketId`, `description`, `installationId`, `installationMemberSlug`, `isPublished`, `resourceId`, `title` +**Optional create fields (backend defaults):** `activeCommitId`, `bucketId`, `createdByPrincipal`, `description`, `installationId`, `installationMemberSlug`, `isPublished`, `resourceId`, `title`, `updatedByPrincipal` ### `platform-site-deep-link` @@ -1606,13 +1934,14 @@ CRUD operations for PlatformSiteDeepLink records. | `fallbackUrl` | String | | `id` | UUID | | `metadata` | JSON | +| `pageId` | UUID | | `siteId` | UUID | | `slug` | String | | `updatedAt` | Datetime | | `webPath` | String | **Required create fields:** `appPath`, `siteId`, `slug` -**Optional create fields (backend defaults):** `fallbackUrl`, `metadata`, `webPath` +**Optional create fields (backend defaults):** `fallbackUrl`, `metadata`, `pageId`, `webPath` ### `platform-site-error-page` @@ -1667,13 +1996,14 @@ CRUD operations for PlatformSiteMetadatum records. | `logo` | Image | | `ogImage` | Image | | `robots` | String | +| `robotsSeededFrom` | JSON | | `siteId` | UUID | | `storeId` | UUID | | `title` | String | | `updatedAt` | Datetime | **Required create fields:** `siteId` -**Optional create fields (backend defaults):** `appleTouchIcon`, `canonicalUrl`, `commitId`, `description`, `favicon`, `logo`, `ogImage`, `robots`, `storeId`, `title` +**Optional create fields (backend defaults):** `appleTouchIcon`, `canonicalUrl`, `commitId`, `description`, `favicon`, `logo`, `ogImage`, `robots`, `robotsSeededFrom`, `storeId`, `title` ### `platform-site-module` @@ -1704,6 +2034,34 @@ CRUD operations for PlatformSiteModule records. **Required create fields:** `data`, `name`, `siteId` **Optional create fields (backend defaults):** `isEnabled`, `position` +### `platform-site-release` + +CRUD operations for PlatformSiteRelease records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all platformSiteRelease records | +| `find-first` | Find first matching platformSiteRelease record | +| `get` | Get a platformSiteRelease by id | +| `create` | Create a new platformSiteRelease | +| `update` | Update an existing platformSiteRelease | +| `delete` | Delete a platformSiteRelease | + +**Fields:** + +| Field | Type | +|-------|------| +| `commitId` | UUID | +| `createdAt` | Datetime | +| `id` | UUID | +| `manifest` | JSON | +| `siteId` | UUID | +| `storeId` | UUID | +| `updatedAt` | Datetime | + +**Required create fields:** `manifest`, `siteId` +**Optional create fields (backend defaults):** `commitId`, `storeId` + ### `platform-site-theme` CRUD operations for PlatformSiteTheme records. @@ -1781,6 +2139,7 @@ CRUD operations for Policy records. | Field | Type | |-------|------| | `category` | ObjectCategory | +| `columnRefs` | String | | `createdAt` | Datetime | | `data` | JSON | | `databaseId` | UUID | @@ -1800,7 +2159,7 @@ CRUD operations for Policy records. | `withCheck` | JSON | **Required create fields:** `tableId` -**Optional create fields (backend defaults):** `category`, `data`, `databaseId`, `derivedFromPolicyId`, `derivedFromTableId`, `disabled`, `granteeName`, `name`, `permissive`, `policyType`, `privilege`, `smartTags`, `tags`, `withCheck` +**Optional create fields (backend defaults):** `category`, `columnRefs`, `data`, `databaseId`, `derivedFromPolicyId`, `derivedFromTableId`, `disabled`, `granteeName`, `name`, `permissive`, `policyType`, `privilege`, `smartTags`, `tags`, `withCheck` ### `primary-key-constraint` @@ -1869,14 +2228,45 @@ CRUD operations for PubkeySetting records. **Required create fields:** `databaseId` **Optional create fields (backend defaults):** `cryptoNetwork`, `schemaId`, `signInRecordFailureFunctionId`, `signInRequestChallengeFunctionId`, `signInWithChallengeFunctionId`, `signUpWithKeyFunctionId`, `userField` -### `rls-setting` +### `redirect` -CRUD operations for RlsSetting records. +CRUD operations for Redirect records. | Subcommand | Description | |------------|-------------| -| `list` | List all rlsSetting records | -| `find-first` | Find first matching rlsSetting record | +| `list` | List all redirect records | +| `find-first` | Find first matching redirect record | +| `get` | Get a redirect by id | +| `create` | Create a new redirect | +| `update` | Update an existing redirect | +| `delete` | Delete a redirect | + +**Fields:** + +| Field | Type | +|-------|------| +| `createdAt` | Datetime | +| `databaseId` | UUID | +| `id` | UUID | +| `name` | String | +| `preservePath` | Boolean | +| `preserveQuery` | Boolean | +| `statusCode` | Int | +| `toHost` | String | +| `toPath` | String | +| `updatedAt` | Datetime | + +**Required create fields:** `databaseId`, `name`, `toHost` +**Optional create fields (backend defaults):** `preservePath`, `preserveQuery`, `statusCode`, `toPath` + +### `rls-setting` + +CRUD operations for RlsSetting records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all rlsSetting records | +| `find-first` | Find first matching rlsSetting record | | `get` | Get a rlsSetting by id | | `create` | Create a new rlsSetting | | `update` | Update an existing rlsSetting | @@ -1925,15 +2315,17 @@ CRUD operations for RouteBinding records. | `method` | String | | `path` | String | | `priority` | Int | +| `servingSiteId` | UUID | | `targetApiId` | UUID | | `targetBucketId` | UUID | | `targetFunctionId` | UUID | +| `targetRedirectId` | UUID | | `targetServiceId` | UUID | | `targetSiteId` | UUID | | `updatedAt` | Datetime | **Required create fields:** `domainId`, `path` -**Optional create fields (backend defaults):** `isActive`, `method`, `priority`, `targetApiId`, `targetBucketId`, `targetFunctionId`, `targetServiceId`, `targetSiteId` +**Optional create fields (backend defaults):** `isActive`, `method`, `priority`, `servingSiteId`, `targetApiId`, `targetBucketId`, `targetFunctionId`, `targetRedirectId`, `targetServiceId`, `targetSiteId` ### `route` @@ -1952,6 +2344,7 @@ CRUD operations for Route records. | Field | Type | |-------|------| +| `anonymous` | Boolean | | `config` | JSON | | `createdAt` | Datetime | | `databaseId` | UUID | @@ -1960,16 +2353,19 @@ CRUD operations for Route records. | `isActive` | Boolean | | `method` | String | | `path` | String | +| `previewRef` | String | | `priority` | Int | +| `servingSiteId` | UUID | | `targetApiId` | UUID | | `targetBucketId` | UUID | | `targetFunctionId` | UUID | +| `targetRedirectId` | UUID | | `targetServiceId` | UUID | | `targetSiteId` | UUID | | `updatedAt` | Datetime | **Required create fields:** `databaseId`, `domainId` -**Optional create fields (backend defaults):** `config`, `isActive`, `method`, `path`, `priority`, `targetApiId`, `targetBucketId`, `targetFunctionId`, `targetServiceId`, `targetSiteId` +**Optional create fields (backend defaults):** `anonymous`, `config`, `isActive`, `method`, `path`, `previewRef`, `priority`, `servingSiteId`, `targetApiId`, `targetBucketId`, `targetFunctionId`, `targetRedirectId`, `targetServiceId`, `targetSiteId` ### `schema` @@ -2049,21 +2445,17 @@ CRUD operations for SiteAppLink records. | Field | Type | |-------|------| -| `appIdentifier` | String | +| `appStoreIdentityId` | UUID | | `createdAt` | Datetime | | `databaseId` | UUID | | `id` | UUID | | `pathComponents` | String | -| `platform` | String | -| `sha256CertFingerprints` | String | | `siteId` | UUID | -| `storeUrl` | String | -| `teamId` | String | | `updatedAt` | Datetime | | `webcredentials` | Boolean | -**Required create fields:** `appIdentifier`, `databaseId`, `platform`, `siteId` -**Optional create fields (backend defaults):** `pathComponents`, `sha256CertFingerprints`, `storeUrl`, `teamId`, `webcredentials` +**Required create fields:** `appStoreIdentityId`, `databaseId`, `siteId` +**Optional create fields (backend defaults):** `pathComponents`, `webcredentials` ### `site` @@ -2085,6 +2477,7 @@ CRUD operations for Site records. | `activeCommitId` | UUID | | `bucketId` | UUID | | `createdAt` | Datetime | +| `createdByPrincipal` | UUID | | `databaseId` | UUID | | `description` | String | | `id` | UUID | @@ -2095,9 +2488,10 @@ CRUD operations for Site records. | `resourceId` | UUID | | `title` | String | | `updatedAt` | Datetime | +| `updatedByPrincipal` | UUID | **Required create fields:** `databaseId`, `name` -**Optional create fields (backend defaults):** `activeCommitId`, `bucketId`, `description`, `installationId`, `installationMemberSlug`, `isPublished`, `resourceId`, `title` +**Optional create fields (backend defaults):** `activeCommitId`, `bucketId`, `createdByPrincipal`, `description`, `installationId`, `installationMemberSlug`, `isPublished`, `resourceId`, `title`, `updatedByPrincipal` ### `site-deep-link` @@ -2122,13 +2516,14 @@ CRUD operations for SiteDeepLink records. | `fallbackUrl` | String | | `id` | UUID | | `metadata` | JSON | +| `pageId` | UUID | | `siteId` | UUID | | `slug` | String | | `updatedAt` | Datetime | | `webPath` | String | **Required create fields:** `appPath`, `databaseId`, `siteId`, `slug` -**Optional create fields (backend defaults):** `fallbackUrl`, `metadata`, `webPath` +**Optional create fields (backend defaults):** `fallbackUrl`, `metadata`, `pageId`, `webPath` ### `site-error-page` @@ -2185,13 +2580,14 @@ CRUD operations for SiteMetadatum records. | `logo` | Image | | `ogImage` | Image | | `robots` | String | +| `robotsSeededFrom` | JSON | | `siteId` | UUID | | `storeId` | UUID | | `title` | String | | `updatedAt` | Datetime | **Required create fields:** `databaseId`, `siteId` -**Optional create fields (backend defaults):** `appleTouchIcon`, `canonicalUrl`, `commitId`, `description`, `favicon`, `logo`, `ogImage`, `robots`, `storeId`, `title` +**Optional create fields (backend defaults):** `appleTouchIcon`, `canonicalUrl`, `commitId`, `description`, `favicon`, `logo`, `ogImage`, `robots`, `robotsSeededFrom`, `storeId`, `title` ### `site-module` @@ -2223,6 +2619,35 @@ CRUD operations for SiteModule records. **Required create fields:** `data`, `databaseId`, `name`, `siteId` **Optional create fields (backend defaults):** `isEnabled`, `position` +### `site-release` + +CRUD operations for SiteRelease records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all siteRelease records | +| `find-first` | Find first matching siteRelease record | +| `get` | Get a siteRelease by id | +| `create` | Create a new siteRelease | +| `update` | Update an existing siteRelease | +| `delete` | Delete a siteRelease | + +**Fields:** + +| Field | Type | +|-------|------| +| `commitId` | UUID | +| `createdAt` | Datetime | +| `databaseId` | UUID | +| `id` | UUID | +| `manifest` | JSON | +| `siteId` | UUID | +| `storeId` | UUID | +| `updatedAt` | Datetime | + +**Required create fields:** `databaseId`, `manifest`, `siteId` +**Optional create fields (backend defaults):** `commitId`, `storeId` + ### `site-theme` CRUD operations for SiteTheme records. @@ -2475,16 +2900,22 @@ CRUD operations for Trigger records. | `createdAt` | Datetime | | `databaseId` | UUID | | `event` | String | +| `events` | String | +| `forEachRow` | Boolean | +| `functionId` | UUID | | `functionName` | String | | `id` | UUID | +| `kind` | String | | `name` | String | | `smartTags` | JSON | | `tableId` | UUID | | `tags` | String | +| `timing` | String | | `updatedAt` | Datetime | +| `whenAst` | JSON | **Required create fields:** `name`, `tableId` -**Optional create fields (backend defaults):** `category`, `databaseId`, `event`, `functionName`, `smartTags`, `tags` +**Optional create fields (backend defaults):** `category`, `databaseId`, `event`, `events`, `forEachRow`, `functionId`, `functionName`, `kind`, `smartTags`, `tags`, `timing`, `whenAst` ### `trigger-function` @@ -2791,9 +3222,81 @@ applyRegistryDefaults | `--data` | JSON | | `--nodeType` | String | -### `resolve-deep-link` +### `get-site-preview-commit` -resolveDeepLink +getSitePreviewCommit + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--targetName` | String | + | `--targetSiteId` | UUID | + +### `get-site-release-manifest` + +getSiteReleaseManifest + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--targetCommitId` | UUID | + | `--targetSiteId` | UUID | + +### `page-published` + +pagePublished + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--pageSlug` | String | + | `--targetSiteId` | UUID | + +### `platform-get-site-preview-commit` + +platformGetSitePreviewCommit + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--targetName` | String | + | `--targetSiteId` | UUID | + +### `platform-get-site-release-manifest` + +platformGetSiteReleaseManifest + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--targetCommitId` | UUID | + | `--targetSiteId` | UUID | + +### `platform-page-published` + +platformPagePublished + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--pageSlug` | String | + | `--targetSiteId` | UUID | + +### `platform-sites-deep-link-url` + +platformSitesDeepLinkUrl - **Type:** query - **Arguments:** @@ -2803,18 +3306,40 @@ resolveDeepLink | `--linkSlug` | String | | `--targetSiteId` | UUID | -### `resolve-http-route` +### `platform-sites-site-origin` -resolveHttpRoute +platformSitesSiteOrigin - **Type:** query - **Arguments:** | Argument | Type | |----------|------| - | `--requestHost` | String | - | `--requestMethod` | String | - | `--requestPath` | String | + | `--targetSiteId` | UUID | + +### `platform-verify-site-preview-token` + +platformVerifySitePreviewToken + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--siteId` | UUID | + | `--token` | String | + +### `resolve-deep-link` + +resolveDeepLink + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--linkSlug` | String | + | `--targetSiteId` | UUID | ### `resolve-route` @@ -2840,6 +3365,41 @@ resolveSiteAppLinks |----------|------| | `--targetSiteId` | UUID | +### `sites-deep-link-url` + +sitesDeepLinkUrl + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--linkSlug` | String | + | `--targetSiteId` | UUID | + +### `sites-site-origin` + +sitesSiteOrigin + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--targetSiteId` | UUID | + +### `verify-site-preview-token` + +verifySitePreviewToken + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--siteId` | UUID | + | `--token` | String | + ### `accept-database-transfer` acceptDatabaseTransfer @@ -2882,6 +3442,19 @@ cancelDatabaseTransfer | `--input.clientMutationId` | String | | `--input.transferId` | UUID | +### `delete-site-preview` + +deleteSitePreview + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.targetName` | String | + | `--input.targetSiteId` | UUID | + ### `domains-assign-subdomain` domainsAssignSubdomain @@ -2896,6 +3469,48 @@ domainsAssignSubdomain | `--input.label` | String | | `--input.maxAttempts` | Int | +### `mint-site-preview-token` + +mintSitePreviewToken + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.siteId` | UUID | + | `--input.target` | String | + | `--input.targetKind` | String | + | `--input.ttlSeconds` | Int | + +### `pages-install-pages` + +pagesInstallPages + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.entityId` | UUID | + | `--input.pagesPreset` | String | + | `--input.siteId` | UUID | + +### `platform-delete-site-preview` + +platformDeleteSitePreview + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.targetName` | String | + | `--input.targetSiteId` | UUID | + ### `platform-domains-assign-subdomain` platformDomainsAssignSubdomain @@ -2910,6 +3525,107 @@ platformDomainsAssignSubdomain | `--input.label` | String | | `--input.maxAttempts` | Int | +### `platform-mint-site-preview-token` + +platformMintSitePreviewToken + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.siteId` | UUID | + | `--input.target` | String | + | `--input.targetKind` | String | + | `--input.ttlSeconds` | Int | + +### `platform-pages-install-pages` + +platformPagesInstallPages + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.entityId` | UUID | + | `--input.pagesPreset` | String | + | `--input.siteId` | UUID | + +### `platform-provision-site-preview` + +platformProvisionSitePreview + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.apex` | String | + | `--input.clientMutationId` | String | + | `--input.commitId` | UUID | + | `--input.name` | String | + | `--input.siteId` | UUID | + +### `platform-set-site-preview` + +platformSetSitePreview + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.targetCommitId` | UUID | + | `--input.targetName` | String | + | `--input.targetSiteId` | UUID | + +### `platform-site-metadata-install-robots` + +platformSiteMetadataInstallRobots + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.entityId` | UUID | + | `--input.robotsPreset` | String | + | `--input.siteId` | UUID | + +### `platform-sites-install-content-preset` + +platformSitesInstallContentPreset + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.entityId` | UUID | + | `--input.presetKind` | String | + | `--input.presetSlug` | String | + | `--input.siteId` | UUID | + +### `platform-sites-install-mantra` + +platformSitesInstallMantra + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.entityId` | UUID | + | `--input.routePreset` | String | + | `--input.siteId` | UUID | + ### `platform-sites-provision-static-site` platformSitesProvisionStaticSite @@ -2929,10 +3645,11 @@ platformSitesProvisionStaticSite ### `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. +Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. - **Type:** mutation - **Arguments:** @@ -2942,6 +3659,21 @@ and lifecycle settings. | `--input.bucketKey` | String (required) | | `--input.ownerId` | UUID | +### `provision-site-preview` + +provisionSitePreview + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.apex` | String | + | `--input.clientMutationId` | String | + | `--input.commitId` | UUID | + | `--input.name` | String | + | `--input.siteId` | UUID | + ### `reject-database-transfer` rejectDatabaseTransfer @@ -2958,11 +3690,12 @@ rejectDatabaseTransfer 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. +Pass exactly one of preset_slug or modules. Pass organization_id to have the organization own the database from the start (the caller must be an owner of that organization); the requesting user is still the identity bootstrapped into the new database. Omit it for a personal database. 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); + SELECT * FROM metaschema_public.request_database('team_app', 'example.com', preset_slug := 'full', organization_id := '00000000-0000-0000-0000-000000000000'::uuid); - **Type:** mutation - **Arguments:** @@ -2974,6 +3707,7 @@ Example usage: | `--input.domain` | String | | `--input.modules` | JSON | | `--input.options` | JSON | + | `--input.organizationId` | UUID | | `--input.presetSlug` | String | | `--input.subdomain` | String | @@ -2989,6 +3723,63 @@ setFieldOrder | `--input.clientMutationId` | String | | `--input.fieldIds` | UUID | +### `set-site-preview` + +setSitePreview + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.targetCommitId` | UUID | + | `--input.targetName` | String | + | `--input.targetSiteId` | UUID | + +### `site-metadata-install-robots` + +siteMetadataInstallRobots + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.entityId` | UUID | + | `--input.robotsPreset` | String | + | `--input.siteId` | UUID | + +### `sites-install-content-preset` + +sitesInstallContentPreset + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.entityId` | UUID | + | `--input.presetKind` | String | + | `--input.presetSlug` | String | + | `--input.siteId` | UUID | + +### `sites-install-mantra` + +sitesInstallMantra + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.entityId` | UUID | + | `--input.routePreset` | String | + | `--input.siteId` | UUID | + ### `sites-provision-static-site` sitesProvisionStaticSite diff --git a/sdk/constructive-cli/src/api/cli/commands.ts b/sdk/constructive-cli/src/api/cli/commands.ts index d66aadcf71..9bae40e299 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'; @@ -31,20 +34,25 @@ import foreignKeyConstraintBehaviorCmd from './commands/foreign-key-constraint-b import foreignKeyConstraintCmd from './commands/foreign-key-constraint'; import fullTextSearchCmd from './commands/full-text-search'; import functionCmd from './commands/function'; +import getSitePreviewsRecordCmd from './commands/get-site-previews-record'; import hostnameBindingCmd from './commands/hostname-binding'; -import httpRouteCmd from './commands/http-route'; +import identityProviderRegistryCmd from './commands/identity-provider-registry'; import indexCmd from './commands/index'; 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 platformGetSitePreviewsRecordCmd from './commands/platform-get-site-previews-record'; import platformManagedDomainCmd from './commands/platform-managed-domain'; import platformPageCmd from './commands/platform-page'; import platformSiteAppLinkCmd from './commands/platform-site-app-link'; @@ -53,11 +61,13 @@ import platformSiteDeepLinkCmd from './commands/platform-site-deep-link'; import platformSiteErrorPageCmd from './commands/platform-site-error-page'; import platformSiteMetadatumCmd from './commands/platform-site-metadatum'; import platformSiteModuleCmd from './commands/platform-site-module'; +import platformSiteReleaseCmd from './commands/platform-site-release'; import platformSiteThemeCmd from './commands/platform-site-theme'; import platformSiteWebConfigCmd from './commands/platform-site-web-config'; import policyCmd from './commands/policy'; import primaryKeyConstraintCmd from './commands/primary-key-constraint'; import pubkeySettingCmd from './commands/pubkey-setting'; +import redirectCmd from './commands/redirect'; import rlsSettingCmd from './commands/rls-setting'; import routeBindingCmd from './commands/route-binding'; import routeCmd from './commands/route'; @@ -69,6 +79,7 @@ import siteDeepLinkCmd from './commands/site-deep-link'; import siteErrorPageCmd from './commands/site-error-page'; import siteMetadatumCmd from './commands/site-metadatum'; import siteModuleCmd from './commands/site-module'; +import siteReleaseCmd from './commands/site-release'; import siteThemeCmd from './commands/site-theme'; import siteWebConfigCmd from './commands/site-web-config'; import spatialRelationCmd from './commands/spatial-relation'; @@ -88,20 +99,47 @@ import viewTableCmd from './commands/view-table'; import webauthnSettingCmd from './commands/webauthn-setting'; import apiSchemaNamesCmd from './commands/api-schema-names'; import applyRegistryDefaultsCmd from './commands/apply-registry-defaults'; +import getSitePreviewCommitCmd from './commands/get-site-preview-commit'; +import getSiteReleaseManifestCmd from './commands/get-site-release-manifest'; +import pagePublishedCmd from './commands/page-published'; +import platformGetSitePreviewCommitCmd from './commands/platform-get-site-preview-commit'; +import platformGetSiteReleaseManifestCmd from './commands/platform-get-site-release-manifest'; +import platformPagePublishedCmd from './commands/platform-page-published'; +import platformSitesDeepLinkUrlCmd from './commands/platform-sites-deep-link-url'; +import platformSitesSiteOriginCmd from './commands/platform-sites-site-origin'; +import platformVerifySitePreviewTokenCmd from './commands/platform-verify-site-preview-token'; import resolveDeepLinkCmd from './commands/resolve-deep-link'; -import resolveHttpRouteCmd from './commands/resolve-http-route'; import resolveRouteCmd from './commands/resolve-route'; import resolveSiteAppLinksCmd from './commands/resolve-site-app-links'; +import sitesDeepLinkUrlCmd from './commands/sites-deep-link-url'; +import sitesSiteOriginCmd from './commands/sites-site-origin'; +import verifySitePreviewTokenCmd from './commands/verify-site-preview-token'; import acceptDatabaseTransferCmd from './commands/accept-database-transfer'; import applyRlsCmd from './commands/apply-rls'; import cancelDatabaseTransferCmd from './commands/cancel-database-transfer'; +import deleteSitePreviewCmd from './commands/delete-site-preview'; import domainsAssignSubdomainCmd from './commands/domains-assign-subdomain'; +import mintSitePreviewTokenCmd from './commands/mint-site-preview-token'; +import pagesInstallPagesCmd from './commands/pages-install-pages'; +import platformDeleteSitePreviewCmd from './commands/platform-delete-site-preview'; import platformDomainsAssignSubdomainCmd from './commands/platform-domains-assign-subdomain'; +import platformMintSitePreviewTokenCmd from './commands/platform-mint-site-preview-token'; +import platformPagesInstallPagesCmd from './commands/platform-pages-install-pages'; +import platformProvisionSitePreviewCmd from './commands/platform-provision-site-preview'; +import platformSetSitePreviewCmd from './commands/platform-set-site-preview'; +import platformSiteMetadataInstallRobotsCmd from './commands/platform-site-metadata-install-robots'; +import platformSitesInstallContentPresetCmd from './commands/platform-sites-install-content-preset'; +import platformSitesInstallMantraCmd from './commands/platform-sites-install-mantra'; import platformSitesProvisionStaticSiteCmd from './commands/platform-sites-provision-static-site'; import provisionBucketCmd from './commands/provision-bucket'; +import provisionSitePreviewCmd from './commands/provision-site-preview'; import rejectDatabaseTransferCmd from './commands/reject-database-transfer'; import requestDatabaseCmd from './commands/request-database'; import setFieldOrderCmd from './commands/set-field-order'; +import setSitePreviewCmd from './commands/set-site-preview'; +import siteMetadataInstallRobotsCmd from './commands/site-metadata-install-robots'; +import sitesInstallContentPresetCmd from './commands/sites-install-content-preset'; +import sitesInstallMantraCmd from './commands/sites-install-mantra'; import sitesProvisionStaticSiteCmd from './commands/sites-provision-static-site'; const createCommandMap: () => Record< string, @@ -113,9 +151,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 +167,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, @@ -138,20 +179,25 @@ const createCommandMap: () => Record< 'foreign-key-constraint': foreignKeyConstraintCmd, 'full-text-search': fullTextSearchCmd, function: functionCmd, + 'get-site-previews-record': getSitePreviewsRecordCmd, 'hostname-binding': hostnameBindingCmd, - 'http-route': httpRouteCmd, + 'identity-provider-registry': identityProviderRegistryCmd, index: indexCmd, 'managed-domain': managedDomainCmd, '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-get-site-previews-record': platformGetSitePreviewsRecordCmd, 'platform-managed-domain': platformManagedDomainCmd, 'platform-page': platformPageCmd, 'platform-site-app-link': platformSiteAppLinkCmd, @@ -160,11 +206,13 @@ const createCommandMap: () => Record< 'platform-site-error-page': platformSiteErrorPageCmd, 'platform-site-metadatum': platformSiteMetadatumCmd, 'platform-site-module': platformSiteModuleCmd, + 'platform-site-release': platformSiteReleaseCmd, 'platform-site-theme': platformSiteThemeCmd, 'platform-site-web-config': platformSiteWebConfigCmd, policy: policyCmd, 'primary-key-constraint': primaryKeyConstraintCmd, 'pubkey-setting': pubkeySettingCmd, + redirect: redirectCmd, 'rls-setting': rlsSettingCmd, 'route-binding': routeBindingCmd, route: routeCmd, @@ -176,6 +224,7 @@ const createCommandMap: () => Record< 'site-error-page': siteErrorPageCmd, 'site-metadatum': siteMetadatumCmd, 'site-module': siteModuleCmd, + 'site-release': siteReleaseCmd, 'site-theme': siteThemeCmd, 'site-web-config': siteWebConfigCmd, 'spatial-relation': spatialRelationCmd, @@ -195,24 +244,51 @@ const createCommandMap: () => Record< 'webauthn-setting': webauthnSettingCmd, 'api-schema-names': apiSchemaNamesCmd, 'apply-registry-defaults': applyRegistryDefaultsCmd, + 'get-site-preview-commit': getSitePreviewCommitCmd, + 'get-site-release-manifest': getSiteReleaseManifestCmd, + 'page-published': pagePublishedCmd, + 'platform-get-site-preview-commit': platformGetSitePreviewCommitCmd, + 'platform-get-site-release-manifest': platformGetSiteReleaseManifestCmd, + 'platform-page-published': platformPagePublishedCmd, + 'platform-sites-deep-link-url': platformSitesDeepLinkUrlCmd, + 'platform-sites-site-origin': platformSitesSiteOriginCmd, + 'platform-verify-site-preview-token': platformVerifySitePreviewTokenCmd, 'resolve-deep-link': resolveDeepLinkCmd, - 'resolve-http-route': resolveHttpRouteCmd, 'resolve-route': resolveRouteCmd, 'resolve-site-app-links': resolveSiteAppLinksCmd, + 'sites-deep-link-url': sitesDeepLinkUrlCmd, + 'sites-site-origin': sitesSiteOriginCmd, + 'verify-site-preview-token': verifySitePreviewTokenCmd, 'accept-database-transfer': acceptDatabaseTransferCmd, 'apply-rls': applyRlsCmd, 'cancel-database-transfer': cancelDatabaseTransferCmd, + 'delete-site-preview': deleteSitePreviewCmd, 'domains-assign-subdomain': domainsAssignSubdomainCmd, + 'mint-site-preview-token': mintSitePreviewTokenCmd, + 'pages-install-pages': pagesInstallPagesCmd, + 'platform-delete-site-preview': platformDeleteSitePreviewCmd, 'platform-domains-assign-subdomain': platformDomainsAssignSubdomainCmd, + 'platform-mint-site-preview-token': platformMintSitePreviewTokenCmd, + 'platform-pages-install-pages': platformPagesInstallPagesCmd, + 'platform-provision-site-preview': platformProvisionSitePreviewCmd, + 'platform-set-site-preview': platformSetSitePreviewCmd, + 'platform-site-metadata-install-robots': platformSiteMetadataInstallRobotsCmd, + 'platform-sites-install-content-preset': platformSitesInstallContentPresetCmd, + 'platform-sites-install-mantra': platformSitesInstallMantraCmd, 'platform-sites-provision-static-site': platformSitesProvisionStaticSiteCmd, 'provision-bucket': provisionBucketCmd, + 'provision-site-preview': provisionSitePreviewCmd, 'reject-database-transfer': rejectDatabaseTransferCmd, 'request-database': requestDatabaseCmd, 'set-field-order': setFieldOrderCmd, + 'set-site-preview': setSitePreviewCmd, + 'site-metadata-install-robots': siteMetadataInstallRobotsCmd, + 'sites-install-content-preset': sitesInstallContentPresetCmd, + 'sites-install-mantra': sitesInstallMantraCmd, '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 get-site-previews-record getSitePreviewsRecord CRUD operations\n hostname-binding hostnameBinding CRUD operations\n identity-provider-registry identityProviderRegistry 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-get-site-previews-record platformGetSitePreviewsRecord 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-release platformSiteRelease 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 redirect redirect 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-release siteRelease 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 get-site-preview-commit getSitePreviewCommit\n get-site-release-manifest getSiteReleaseManifest\n page-published pagePublished\n platform-get-site-preview-commit platformGetSitePreviewCommit\n platform-get-site-release-manifest platformGetSiteReleaseManifest\n platform-page-published platformPagePublished\n platform-sites-deep-link-url platformSitesDeepLinkUrl\n platform-sites-site-origin platformSitesSiteOrigin\n platform-verify-site-preview-token platformVerifySitePreviewToken\n resolve-deep-link resolveDeepLink\n resolve-route resolveRoute\n resolve-site-app-links resolveSiteAppLinks\n sites-deep-link-url sitesDeepLinkUrl\n sites-site-origin sitesSiteOrigin\n verify-site-preview-token verifySitePreviewToken\n accept-database-transfer acceptDatabaseTransfer\n apply-rls applyRls\n cancel-database-transfer cancelDatabaseTransfer\n delete-site-preview deleteSitePreview\n domains-assign-subdomain domainsAssignSubdomain\n mint-site-preview-token mintSitePreviewToken\n pages-install-pages pagesInstallPages\n platform-delete-site-preview platformDeleteSitePreview\n platform-domains-assign-subdomain platformDomainsAssignSubdomain\n platform-mint-site-preview-token platformMintSitePreviewToken\n platform-pages-install-pages platformPagesInstallPages\n platform-provision-site-preview platformProvisionSitePreview\n platform-set-site-preview platformSetSitePreview\n platform-site-metadata-install-robots platformSiteMetadataInstallRobots\n platform-sites-install-content-preset platformSitesInstallContentPreset\n platform-sites-install-mantra platformSitesInstallMantra\n platform-sites-provision-static-site platformSitesProvisionStaticSite\n provision-bucket Reconcile an S3 bucket for a logical bucket in the database.\nReads the bucket config via RLS, then enqueues the same\nstorage:provision_bucket job used by the INSERT trigger. This is\nidempotent for an already-reconciled bucket; enqueue failures become\nGraphQL errors.\n provision-site-preview provisionSitePreview\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. Pass organization_id to have the organization own the database from the start (the caller must be an owner of that organization); the requesting user is still the identity bootstrapped into the new database. Omit it for a personal database. 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 SELECT * FROM metaschema_public.request_database('team_app', 'example.com', preset_slug := 'full', organization_id := '00000000-0000-0000-0000-000000000000'::uuid);\n set-field-order setFieldOrder\n set-site-preview setSitePreview\n site-metadata-install-robots siteMetadataInstallRobots\n sites-install-content-preset sitesInstallContentPreset\n sites-install-mantra sitesInstallMantra\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/api-setting.ts b/sdk/constructive-cli/src/api/cli/commands/api-setting.ts index 2b923450cb..d1f652b230 100644 --- a/sdk/constructive-cli/src/api/cli/commands/api-setting.ts +++ b/sdk/constructive-cli/src/api/cli/commands/api-setting.ts @@ -24,6 +24,7 @@ const fieldSchema: FieldSchema = { enableConnectionFilter: 'boolean', enableDirectUploads: 'boolean', enableI18N: 'boolean', + enableIntrospection: 'boolean', enableLlm: 'boolean', enableLtree: 'boolean', enableManyToMany: 'boolean', @@ -32,7 +33,17 @@ const fieldSchema: FieldSchema = { enableRealtime: 'boolean', enableSearch: 'boolean', id: 'uuid', + idleInTransactionTimeoutMs: 'int', + lockTimeoutMs: 'int', + maxConcurrentRequests: 'int', + maxPageSize: 'int', + maxQueryCost: 'int', + maxQueryDepth: 'int', + maxQueueWaitMs: 'int', + maxRequestBytes: 'int', options: 'json', + rateLimitBurst: 'int', + rateLimitRpm: 'int', statementTimeoutMs: 'int', updatedAt: 'string', }; @@ -95,6 +106,7 @@ async function handleList(argv: Partial>, _prompter: Inq enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, + enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, @@ -103,7 +115,17 @@ async function handleList(argv: Partial>, _prompter: Inq enableRealtime: true, enableSearch: true, id: true, + idleInTransactionTimeoutMs: true, + lockTimeoutMs: true, + maxConcurrentRequests: true, + maxPageSize: true, + maxQueryCost: true, + maxQueryDepth: true, + maxQueueWaitMs: true, + maxRequestBytes: true, options: true, + rateLimitBurst: true, + rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true, }; @@ -134,6 +156,7 @@ async function handleFindFirst(argv: Partial>, _prompter enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, + enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, @@ -142,7 +165,17 @@ async function handleFindFirst(argv: Partial>, _prompter enableRealtime: true, enableSearch: true, id: true, + idleInTransactionTimeoutMs: true, + lockTimeoutMs: true, + maxConcurrentRequests: true, + maxPageSize: true, + maxQueryCost: true, + maxQueryDepth: true, + maxQueueWaitMs: true, + maxRequestBytes: true, options: true, + rateLimitBurst: true, + rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true, }; @@ -185,6 +218,7 @@ async function handleGet(argv: Partial>, prompter: Inqui enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, + enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, @@ -193,7 +227,17 @@ async function handleGet(argv: Partial>, prompter: Inqui enableRealtime: true, enableSearch: true, id: true, + idleInTransactionTimeoutMs: true, + lockTimeoutMs: true, + maxConcurrentRequests: true, + maxPageSize: true, + maxQueryCost: true, + maxQueryDepth: true, + maxQueueWaitMs: true, + maxRequestBytes: true, options: true, + rateLimitBurst: true, + rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true, }, @@ -258,6 +302,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'boolean', + name: 'enableIntrospection', + message: 'enableIntrospection', + required: false, + skipPrompt: true, + }, { type: 'boolean', name: 'enableLlm', @@ -307,6 +358,62 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'idleInTransactionTimeoutMs', + message: 'idleInTransactionTimeoutMs', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'lockTimeoutMs', + message: 'lockTimeoutMs', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'maxConcurrentRequests', + message: 'maxConcurrentRequests', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'maxPageSize', + message: 'maxPageSize', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'maxQueryCost', + message: 'maxQueryCost', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'maxQueryDepth', + message: 'maxQueryDepth', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'maxQueueWaitMs', + message: 'maxQueueWaitMs', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'maxRequestBytes', + message: 'maxRequestBytes', + required: false, + skipPrompt: true, + }, { type: 'json', name: 'options', @@ -314,6 +421,20 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'rateLimitBurst', + message: 'rateLimitBurst', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'rateLimitRpm', + message: 'rateLimitRpm', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'statementTimeoutMs', @@ -335,6 +456,7 @@ async function handleCreate(argv: Partial>, prompter: In enableConnectionFilter: cleanedData.enableConnectionFilter, enableDirectUploads: cleanedData.enableDirectUploads, enableI18N: cleanedData.enableI18N, + enableIntrospection: cleanedData.enableIntrospection, enableLlm: cleanedData.enableLlm, enableLtree: cleanedData.enableLtree, enableManyToMany: cleanedData.enableManyToMany, @@ -342,7 +464,17 @@ async function handleCreate(argv: Partial>, prompter: In enablePresignedUploads: cleanedData.enablePresignedUploads, enableRealtime: cleanedData.enableRealtime, enableSearch: cleanedData.enableSearch, + idleInTransactionTimeoutMs: cleanedData.idleInTransactionTimeoutMs, + lockTimeoutMs: cleanedData.lockTimeoutMs, + maxConcurrentRequests: cleanedData.maxConcurrentRequests, + maxPageSize: cleanedData.maxPageSize, + maxQueryCost: cleanedData.maxQueryCost, + maxQueryDepth: cleanedData.maxQueryDepth, + maxQueueWaitMs: cleanedData.maxQueueWaitMs, + maxRequestBytes: cleanedData.maxRequestBytes, options: cleanedData.options, + rateLimitBurst: cleanedData.rateLimitBurst, + rateLimitRpm: cleanedData.rateLimitRpm, statementTimeoutMs: cleanedData.statementTimeoutMs, }, select: { @@ -354,6 +486,7 @@ async function handleCreate(argv: Partial>, prompter: In enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, + enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, @@ -362,7 +495,17 @@ async function handleCreate(argv: Partial>, prompter: In enableRealtime: true, enableSearch: true, id: true, + idleInTransactionTimeoutMs: true, + lockTimeoutMs: true, + maxConcurrentRequests: true, + maxPageSize: true, + maxQueryCost: true, + maxQueryDepth: true, + maxQueueWaitMs: true, + maxRequestBytes: true, options: true, + rateLimitBurst: true, + rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true, }, @@ -433,6 +576,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'boolean', + name: 'enableIntrospection', + message: 'enableIntrospection', + required: false, + skipPrompt: true, + }, { type: 'boolean', name: 'enableLlm', @@ -482,6 +632,62 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'idleInTransactionTimeoutMs', + message: 'idleInTransactionTimeoutMs', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'lockTimeoutMs', + message: 'lockTimeoutMs', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'maxConcurrentRequests', + message: 'maxConcurrentRequests', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'maxPageSize', + message: 'maxPageSize', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'maxQueryCost', + message: 'maxQueryCost', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'maxQueryDepth', + message: 'maxQueryDepth', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'maxQueueWaitMs', + message: 'maxQueueWaitMs', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'maxRequestBytes', + message: 'maxRequestBytes', + required: false, + skipPrompt: true, + }, { type: 'json', name: 'options', @@ -489,6 +695,20 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'rateLimitBurst', + message: 'rateLimitBurst', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'rateLimitRpm', + message: 'rateLimitRpm', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'statementTimeoutMs', @@ -513,6 +733,7 @@ async function handleUpdate(argv: Partial>, prompter: In enableConnectionFilter: cleanedData.enableConnectionFilter, enableDirectUploads: cleanedData.enableDirectUploads, enableI18N: cleanedData.enableI18N, + enableIntrospection: cleanedData.enableIntrospection, enableLlm: cleanedData.enableLlm, enableLtree: cleanedData.enableLtree, enableManyToMany: cleanedData.enableManyToMany, @@ -520,7 +741,17 @@ async function handleUpdate(argv: Partial>, prompter: In enablePresignedUploads: cleanedData.enablePresignedUploads, enableRealtime: cleanedData.enableRealtime, enableSearch: cleanedData.enableSearch, + idleInTransactionTimeoutMs: cleanedData.idleInTransactionTimeoutMs, + lockTimeoutMs: cleanedData.lockTimeoutMs, + maxConcurrentRequests: cleanedData.maxConcurrentRequests, + maxPageSize: cleanedData.maxPageSize, + maxQueryCost: cleanedData.maxQueryCost, + maxQueryDepth: cleanedData.maxQueryDepth, + maxQueueWaitMs: cleanedData.maxQueueWaitMs, + maxRequestBytes: cleanedData.maxRequestBytes, options: cleanedData.options, + rateLimitBurst: cleanedData.rateLimitBurst, + rateLimitRpm: cleanedData.rateLimitRpm, statementTimeoutMs: cleanedData.statementTimeoutMs, }, select: { @@ -532,6 +763,7 @@ async function handleUpdate(argv: Partial>, prompter: In enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, + enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, @@ -540,7 +772,17 @@ async function handleUpdate(argv: Partial>, prompter: In enableRealtime: true, enableSearch: true, id: true, + idleInTransactionTimeoutMs: true, + lockTimeoutMs: true, + maxConcurrentRequests: true, + maxPageSize: true, + maxQueryCost: true, + maxQueryDepth: true, + maxQueueWaitMs: true, + maxRequestBytes: true, options: true, + rateLimitBurst: true, + rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true, }, diff --git a/sdk/constructive-cli/src/api/cli/commands/api.ts b/sdk/constructive-cli/src/api/cli/commands/api.ts new file mode 100644 index 0000000000..d7efd0643c --- /dev/null +++ b/sdk/constructive-cli/src/api/cli/commands/api.ts @@ -0,0 +1,390 @@ +/** + * CLI commands for Api + * @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 { + 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', + name: 'string', + roleName: 'string', + updatedAt: 'string', +}; +const usage = + '\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, + _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 = { + anonRole: true, + config: true, + createdAt: true, + databaseId: true, + dbname: true, + id: true, + isPublished: true, + name: true, + roleName: true, + updatedAt: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: ApiSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.api.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 = { + anonRole: true, + config: true, + createdAt: true, + databaseId: true, + dbname: true, + id: true, + isPublished: true, + name: true, + roleName: true, + updatedAt: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: ApiSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.api.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.api + .findOne({ + id: answers.id as string, + select: { + anonRole: true, + config: true, + createdAt: true, + databaseId: true, + dbname: true, + id: true, + isPublished: true, + name: true, + roleName: 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: 'anonRole', + message: 'anonRole', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'config', + message: 'config', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: true, + }, + { + type: 'text', + name: 'dbname', + message: 'dbname', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'isPublished', + message: 'isPublished', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'name', + message: 'name', + required: true, + }, + { + type: 'text', + name: 'roleName', + message: 'roleName', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as CreateApiInput['api']; + const client = getClient(); + 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, + roleName: cleanedData.roleName, + }, + select: { + anonRole: true, + config: true, + createdAt: true, + databaseId: true, + dbname: true, + id: true, + isPublished: true, + name: true, + roleName: 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: 'anonRole', + message: 'anonRole', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'config', + message: 'config', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: false, + }, + { + type: 'text', + name: 'dbname', + message: 'dbname', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'isPublished', + message: 'isPublished', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'name', + message: 'name', + required: false, + }, + { + type: 'text', + name: 'roleName', + message: 'roleName', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as ApiPatch; + const client = getClient(); + const result = await client.api + .update({ + where: { + id: answers.id as string, + }, + data: { + anonRole: cleanedData.anonRole, + config: cleanedData.config, + databaseId: cleanedData.databaseId, + dbname: cleanedData.dbname, + isPublished: cleanedData.isPublished, + name: cleanedData.name, + roleName: cleanedData.roleName, + }, + select: { + anonRole: true, + config: true, + createdAt: true, + databaseId: true, + dbname: true, + id: true, + isPublished: true, + name: true, + roleName: 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.api + .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/apis.ts b/sdk/constructive-cli/src/api/cli/commands/apis.ts deleted file mode 100644 index aadb994945..0000000000 --- a/sdk/constructive-cli/src/api/cli/commands/apis.ts +++ /dev/null @@ -1,390 +0,0 @@ -/** - * CLI commands for Apis - * @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 { - CreateApisInput, - ApisPatch, - ApisSelect, - ApisFilter, - ApisOrderBy, -} 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', - name: 'string', - roleName: 'string', - 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'; -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 = { - anonRole: true, - config: true, - createdAt: true, - databaseId: true, - dbname: true, - id: true, - isPublished: true, - name: true, - roleName: true, - updatedAt: true, - }; - const findManyArgs = parseFindManyArgs< - FindManyArgs & { - select: ApisSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.apis.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 = { - anonRole: true, - config: true, - createdAt: true, - databaseId: true, - dbname: true, - id: true, - isPublished: true, - name: true, - roleName: true, - updatedAt: true, - }; - const findFirstArgs = parseFindFirstArgs< - FindFirstArgs & { - select: ApisSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.apis.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.apis - .findOne({ - id: answers.id as string, - select: { - anonRole: true, - config: true, - createdAt: true, - databaseId: true, - dbname: true, - id: true, - isPublished: true, - name: true, - roleName: 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: 'anonRole', - message: 'anonRole', - required: false, - skipPrompt: true, - }, - { - type: 'json', - name: 'config', - message: 'config', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'databaseId', - message: 'databaseId', - required: true, - }, - { - type: 'text', - name: 'dbname', - message: 'dbname', - required: false, - skipPrompt: true, - }, - { - type: 'boolean', - name: 'isPublished', - message: 'isPublished', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'name', - message: 'name', - required: true, - }, - { - type: 'text', - name: 'roleName', - message: 'roleName', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as CreateApisInput['apis']; - const client = getClient(); - const result = await client.apis - .create({ - data: { - anonRole: cleanedData.anonRole, - config: cleanedData.config, - databaseId: cleanedData.databaseId, - dbname: cleanedData.dbname, - isPublished: cleanedData.isPublished, - name: cleanedData.name, - roleName: cleanedData.roleName, - }, - select: { - anonRole: true, - config: true, - createdAt: true, - databaseId: true, - dbname: true, - id: true, - isPublished: true, - name: true, - roleName: 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: 'anonRole', - message: 'anonRole', - required: false, - skipPrompt: true, - }, - { - type: 'json', - name: 'config', - message: 'config', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'databaseId', - message: 'databaseId', - required: false, - }, - { - type: 'text', - name: 'dbname', - message: 'dbname', - required: false, - skipPrompt: true, - }, - { - type: 'boolean', - name: 'isPublished', - message: 'isPublished', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'name', - message: 'name', - required: false, - }, - { - type: 'text', - name: 'roleName', - message: 'roleName', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as ApisPatch; - const client = getClient(); - const result = await client.apis - .update({ - where: { - id: answers.id as string, - }, - data: { - anonRole: cleanedData.anonRole, - config: cleanedData.config, - databaseId: cleanedData.databaseId, - dbname: cleanedData.dbname, - isPublished: cleanedData.isPublished, - name: cleanedData.name, - roleName: cleanedData.roleName, - }, - select: { - anonRole: true, - config: true, - createdAt: true, - databaseId: true, - dbname: true, - id: true, - isPublished: true, - name: true, - roleName: 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.apis - .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/database-setting.ts b/sdk/constructive-cli/src/api/cli/commands/database-setting.ts index 3f40b396ed..8c9ef11b74 100644 --- a/sdk/constructive-cli/src/api/cli/commands/database-setting.ts +++ b/sdk/constructive-cli/src/api/cli/commands/database-setting.ts @@ -20,10 +20,12 @@ const fieldSchema: FieldSchema = { createdAt: 'string', databaseId: 'uuid', enableAggregates: 'boolean', + enableBilling: 'boolean', enableBulk: 'boolean', enableConnectionFilter: 'boolean', enableDirectUploads: 'boolean', enableI18N: 'boolean', + enableIntrospection: 'boolean', enableLlm: 'boolean', enableLtree: 'boolean', enableManyToMany: 'boolean', @@ -32,8 +34,18 @@ const fieldSchema: FieldSchema = { enableRealtime: 'boolean', enableSearch: 'boolean', id: 'uuid', + idleInTransactionTimeoutMs: 'int', labels: 'json', + lockTimeoutMs: 'int', + maxConcurrentRequests: 'int', + maxPageSize: 'int', + maxQueryCost: 'int', + maxQueryDepth: 'int', + maxQueueWaitMs: 'int', + maxRequestBytes: 'int', options: 'json', + rateLimitBurst: 'int', + rateLimitRpm: 'int', statementTimeoutMs: 'int', updatedAt: 'string', }; @@ -92,10 +104,12 @@ async function handleList(argv: Partial>, _prompter: Inq createdAt: true, databaseId: true, enableAggregates: true, + enableBilling: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, + enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, @@ -104,8 +118,18 @@ async function handleList(argv: Partial>, _prompter: Inq enableRealtime: true, enableSearch: true, id: true, + idleInTransactionTimeoutMs: true, labels: true, + lockTimeoutMs: true, + maxConcurrentRequests: true, + maxPageSize: true, + maxQueryCost: true, + maxQueryDepth: true, + maxQueueWaitMs: true, + maxRequestBytes: true, options: true, + rateLimitBurst: true, + rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true, }; @@ -132,10 +156,12 @@ async function handleFindFirst(argv: Partial>, _prompter createdAt: true, databaseId: true, enableAggregates: true, + enableBilling: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, + enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, @@ -144,8 +170,18 @@ async function handleFindFirst(argv: Partial>, _prompter enableRealtime: true, enableSearch: true, id: true, + idleInTransactionTimeoutMs: true, labels: true, + lockTimeoutMs: true, + maxConcurrentRequests: true, + maxPageSize: true, + maxQueryCost: true, + maxQueryDepth: true, + maxQueueWaitMs: true, + maxRequestBytes: true, options: true, + rateLimitBurst: true, + rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true, }; @@ -184,10 +220,12 @@ async function handleGet(argv: Partial>, prompter: Inqui createdAt: true, databaseId: true, enableAggregates: true, + enableBilling: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, + enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, @@ -196,8 +234,18 @@ async function handleGet(argv: Partial>, prompter: Inqui enableRealtime: true, enableSearch: true, id: true, + idleInTransactionTimeoutMs: true, labels: true, + lockTimeoutMs: true, + maxConcurrentRequests: true, + maxPageSize: true, + maxQueryCost: true, + maxQueryDepth: true, + maxQueueWaitMs: true, + maxRequestBytes: true, options: true, + rateLimitBurst: true, + rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true, }, @@ -235,6 +283,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'boolean', + name: 'enableBilling', + message: 'enableBilling', + required: false, + skipPrompt: true, + }, { type: 'boolean', name: 'enableBulk', @@ -263,6 +318,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'boolean', + name: 'enableIntrospection', + message: 'enableIntrospection', + required: false, + skipPrompt: true, + }, { type: 'boolean', name: 'enableLlm', @@ -312,6 +374,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'idleInTransactionTimeoutMs', + message: 'idleInTransactionTimeoutMs', + required: false, + skipPrompt: true, + }, { type: 'json', name: 'labels', @@ -319,6 +388,55 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'lockTimeoutMs', + message: 'lockTimeoutMs', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'maxConcurrentRequests', + message: 'maxConcurrentRequests', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'maxPageSize', + message: 'maxPageSize', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'maxQueryCost', + message: 'maxQueryCost', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'maxQueryDepth', + message: 'maxQueryDepth', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'maxQueueWaitMs', + message: 'maxQueueWaitMs', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'maxRequestBytes', + message: 'maxRequestBytes', + required: false, + skipPrompt: true, + }, { type: 'json', name: 'options', @@ -326,6 +444,20 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'rateLimitBurst', + message: 'rateLimitBurst', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'rateLimitRpm', + message: 'rateLimitRpm', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'statementTimeoutMs', @@ -346,10 +478,12 @@ async function handleCreate(argv: Partial>, prompter: In annotations: cleanedData.annotations, databaseId: cleanedData.databaseId, enableAggregates: cleanedData.enableAggregates, + enableBilling: cleanedData.enableBilling, enableBulk: cleanedData.enableBulk, enableConnectionFilter: cleanedData.enableConnectionFilter, enableDirectUploads: cleanedData.enableDirectUploads, enableI18N: cleanedData.enableI18N, + enableIntrospection: cleanedData.enableIntrospection, enableLlm: cleanedData.enableLlm, enableLtree: cleanedData.enableLtree, enableManyToMany: cleanedData.enableManyToMany, @@ -357,8 +491,18 @@ async function handleCreate(argv: Partial>, prompter: In enablePresignedUploads: cleanedData.enablePresignedUploads, enableRealtime: cleanedData.enableRealtime, enableSearch: cleanedData.enableSearch, + idleInTransactionTimeoutMs: cleanedData.idleInTransactionTimeoutMs, labels: cleanedData.labels, + lockTimeoutMs: cleanedData.lockTimeoutMs, + maxConcurrentRequests: cleanedData.maxConcurrentRequests, + maxPageSize: cleanedData.maxPageSize, + maxQueryCost: cleanedData.maxQueryCost, + maxQueryDepth: cleanedData.maxQueryDepth, + maxQueueWaitMs: cleanedData.maxQueueWaitMs, + maxRequestBytes: cleanedData.maxRequestBytes, options: cleanedData.options, + rateLimitBurst: cleanedData.rateLimitBurst, + rateLimitRpm: cleanedData.rateLimitRpm, statementTimeoutMs: cleanedData.statementTimeoutMs, }, select: { @@ -366,10 +510,12 @@ async function handleCreate(argv: Partial>, prompter: In createdAt: true, databaseId: true, enableAggregates: true, + enableBilling: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, + enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, @@ -378,8 +524,18 @@ async function handleCreate(argv: Partial>, prompter: In enableRealtime: true, enableSearch: true, id: true, + idleInTransactionTimeoutMs: true, labels: true, + lockTimeoutMs: true, + maxConcurrentRequests: true, + maxPageSize: true, + maxQueryCost: true, + maxQueryDepth: true, + maxQueueWaitMs: true, + maxRequestBytes: true, options: true, + rateLimitBurst: true, + rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true, }, @@ -423,6 +579,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'boolean', + name: 'enableBilling', + message: 'enableBilling', + required: false, + skipPrompt: true, + }, { type: 'boolean', name: 'enableBulk', @@ -451,6 +614,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'boolean', + name: 'enableIntrospection', + message: 'enableIntrospection', + required: false, + skipPrompt: true, + }, { type: 'boolean', name: 'enableLlm', @@ -500,6 +670,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'idleInTransactionTimeoutMs', + message: 'idleInTransactionTimeoutMs', + required: false, + skipPrompt: true, + }, { type: 'json', name: 'labels', @@ -507,6 +684,55 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'lockTimeoutMs', + message: 'lockTimeoutMs', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'maxConcurrentRequests', + message: 'maxConcurrentRequests', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'maxPageSize', + message: 'maxPageSize', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'maxQueryCost', + message: 'maxQueryCost', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'maxQueryDepth', + message: 'maxQueryDepth', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'maxQueueWaitMs', + message: 'maxQueueWaitMs', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'maxRequestBytes', + message: 'maxRequestBytes', + required: false, + skipPrompt: true, + }, { type: 'json', name: 'options', @@ -514,6 +740,20 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'rateLimitBurst', + message: 'rateLimitBurst', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'rateLimitRpm', + message: 'rateLimitRpm', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'statementTimeoutMs', @@ -534,10 +774,12 @@ async function handleUpdate(argv: Partial>, prompter: In annotations: cleanedData.annotations, databaseId: cleanedData.databaseId, enableAggregates: cleanedData.enableAggregates, + enableBilling: cleanedData.enableBilling, enableBulk: cleanedData.enableBulk, enableConnectionFilter: cleanedData.enableConnectionFilter, enableDirectUploads: cleanedData.enableDirectUploads, enableI18N: cleanedData.enableI18N, + enableIntrospection: cleanedData.enableIntrospection, enableLlm: cleanedData.enableLlm, enableLtree: cleanedData.enableLtree, enableManyToMany: cleanedData.enableManyToMany, @@ -545,8 +787,18 @@ async function handleUpdate(argv: Partial>, prompter: In enablePresignedUploads: cleanedData.enablePresignedUploads, enableRealtime: cleanedData.enableRealtime, enableSearch: cleanedData.enableSearch, + idleInTransactionTimeoutMs: cleanedData.idleInTransactionTimeoutMs, labels: cleanedData.labels, + lockTimeoutMs: cleanedData.lockTimeoutMs, + maxConcurrentRequests: cleanedData.maxConcurrentRequests, + maxPageSize: cleanedData.maxPageSize, + maxQueryCost: cleanedData.maxQueryCost, + maxQueryDepth: cleanedData.maxQueryDepth, + maxQueueWaitMs: cleanedData.maxQueueWaitMs, + maxRequestBytes: cleanedData.maxRequestBytes, options: cleanedData.options, + rateLimitBurst: cleanedData.rateLimitBurst, + rateLimitRpm: cleanedData.rateLimitRpm, statementTimeoutMs: cleanedData.statementTimeoutMs, }, select: { @@ -554,10 +806,12 @@ async function handleUpdate(argv: Partial>, prompter: In createdAt: true, databaseId: true, enableAggregates: true, + enableBilling: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, + enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, @@ -566,8 +820,18 @@ async function handleUpdate(argv: Partial>, prompter: In enableRealtime: true, enableSearch: true, id: true, + idleInTransactionTimeoutMs: true, labels: true, + lockTimeoutMs: true, + maxConcurrentRequests: true, + maxPageSize: true, + maxQueryCost: true, + maxQueryDepth: true, + maxQueueWaitMs: true, + maxRequestBytes: true, options: true, + rateLimitBurst: true, + rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true, }, diff --git a/sdk/constructive-cli/src/api/cli/commands/delete-site-preview.ts b/sdk/constructive-cli/src/api/cli/commands/delete-site-preview.ts new file mode 100644 index 0000000000..3e0db949d4 --- /dev/null +++ b/sdk/constructive-cli/src/api/cli/commands/delete-site-preview.ts @@ -0,0 +1,53 @@ +/** + * CLI command for mutation deleteSitePreview + * @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 { DeleteSitePreviewVariables } from '../../orm/mutation'; +import type { DeleteSitePreviewPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'delete-site-preview - deleteSitePreview\n\nUsage: delete-site-preview [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 + .deleteSitePreview( + parsedAnswers as unknown as DeleteSitePreviewVariables, + { + select: selectFields, + } as unknown as { + select: DeleteSitePreviewPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: deleteSitePreview'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/api/cli/commands/derive.ts b/sdk/constructive-cli/src/api/cli/commands/derive.ts index ebe2997cea..e736b681e3 100644 --- a/sdk/constructive-cli/src/api/cli/commands/derive.ts +++ b/sdk/constructive-cli/src/api/cli/commands/derive.ts @@ -19,6 +19,7 @@ const fieldSchema: FieldSchema = { createdAt: 'string', databaseId: 'uuid', id: 'uuid', + includeGrants: 'boolean', includeMutations: 'boolean', kind: 'string', policyPrefix: 'string', @@ -80,6 +81,7 @@ async function handleList(argv: Partial>, _prompter: Inq createdAt: true, databaseId: true, id: true, + includeGrants: true, includeMutations: true, kind: true, policyPrefix: true, @@ -109,6 +111,7 @@ async function handleFindFirst(argv: Partial>, _prompter createdAt: true, databaseId: true, id: true, + includeGrants: true, includeMutations: true, kind: true, policyPrefix: true, @@ -150,6 +153,7 @@ async function handleGet(argv: Partial>, prompter: Inqui createdAt: true, databaseId: true, id: true, + includeGrants: true, includeMutations: true, kind: true, policyPrefix: true, @@ -178,6 +182,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'boolean', + name: 'includeGrants', + message: 'includeGrants', + required: false, + skipPrompt: true, + }, { type: 'boolean', name: 'includeMutations', @@ -218,6 +229,7 @@ async function handleCreate(argv: Partial>, prompter: In .create({ data: { databaseId: cleanedData.databaseId, + includeGrants: cleanedData.includeGrants, includeMutations: cleanedData.includeMutations, kind: cleanedData.kind, policyPrefix: cleanedData.policyPrefix, @@ -228,6 +240,7 @@ async function handleCreate(argv: Partial>, prompter: In createdAt: true, databaseId: true, id: true, + includeGrants: true, includeMutations: true, kind: true, policyPrefix: true, @@ -262,6 +275,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'boolean', + name: 'includeGrants', + message: 'includeGrants', + required: false, + skipPrompt: true, + }, { type: 'boolean', name: 'includeMutations', @@ -305,6 +325,7 @@ async function handleUpdate(argv: Partial>, prompter: In }, data: { databaseId: cleanedData.databaseId, + includeGrants: cleanedData.includeGrants, includeMutations: cleanedData.includeMutations, kind: cleanedData.kind, policyPrefix: cleanedData.policyPrefix, @@ -315,6 +336,7 @@ async function handleUpdate(argv: Partial>, prompter: In createdAt: true, databaseId: true, id: true, + includeGrants: true, includeMutations: true, kind: true, policyPrefix: true, diff --git a/sdk/constructive-cli/src/api/cli/commands/domain.ts b/sdk/constructive-cli/src/api/cli/commands/domain.ts index 0d2659d8ad..8d576c5814 100644 --- a/sdk/constructive-cli/src/api/cli/commands/domain.ts +++ b/sdk/constructive-cli/src/api/cli/commands/domain.ts @@ -18,6 +18,7 @@ import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { config: 'json', createdAt: 'string', + createdByPrincipal: 'uuid', databaseId: 'uuid', hostname: 'string', id: 'uuid', @@ -29,6 +30,7 @@ const fieldSchema: FieldSchema = { tlsSecretName: 'string', tlsStatus: 'string', updatedAt: 'string', + updatedByPrincipal: 'uuid', verificationStatus: 'string', verifiedAt: 'string', }; @@ -85,6 +87,7 @@ async function handleList(argv: Partial>, _prompter: Inq const defaultSelect = { config: true, createdAt: true, + createdByPrincipal: true, databaseId: true, hostname: true, id: true, @@ -96,6 +99,7 @@ async function handleList(argv: Partial>, _prompter: Inq tlsSecretName: true, tlsStatus: true, updatedAt: true, + updatedByPrincipal: true, verificationStatus: true, verifiedAt: true, }; @@ -120,6 +124,7 @@ async function handleFindFirst(argv: Partial>, _prompter const defaultSelect = { config: true, createdAt: true, + createdByPrincipal: true, databaseId: true, hostname: true, id: true, @@ -131,6 +136,7 @@ async function handleFindFirst(argv: Partial>, _prompter tlsSecretName: true, tlsStatus: true, updatedAt: true, + updatedByPrincipal: true, verificationStatus: true, verifiedAt: true, }; @@ -167,6 +173,7 @@ async function handleGet(argv: Partial>, prompter: Inqui select: { config: true, createdAt: true, + createdByPrincipal: true, databaseId: true, hostname: true, id: true, @@ -178,6 +185,7 @@ async function handleGet(argv: Partial>, prompter: Inqui tlsSecretName: true, tlsStatus: true, updatedAt: true, + updatedByPrincipal: true, verificationStatus: true, verifiedAt: true, }, @@ -202,6 +210,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'databaseId', @@ -263,6 +278,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'verificationStatus', @@ -285,6 +307,7 @@ async function handleCreate(argv: Partial>, prompter: In .create({ data: { config: cleanedData.config, + createdByPrincipal: cleanedData.createdByPrincipal, databaseId: cleanedData.databaseId, hostname: cleanedData.hostname, isPublished: cleanedData.isPublished, @@ -294,12 +317,14 @@ async function handleCreate(argv: Partial>, prompter: In tlsReadyAt: cleanedData.tlsReadyAt, tlsSecretName: cleanedData.tlsSecretName, tlsStatus: cleanedData.tlsStatus, + updatedByPrincipal: cleanedData.updatedByPrincipal, verificationStatus: cleanedData.verificationStatus, verifiedAt: cleanedData.verifiedAt, }, select: { config: true, createdAt: true, + createdByPrincipal: true, databaseId: true, hostname: true, id: true, @@ -311,6 +336,7 @@ async function handleCreate(argv: Partial>, prompter: In tlsSecretName: true, tlsStatus: true, updatedAt: true, + updatedByPrincipal: true, verificationStatus: true, verifiedAt: true, }, @@ -341,6 +367,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'databaseId', @@ -402,6 +435,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'verificationStatus', @@ -427,6 +467,7 @@ async function handleUpdate(argv: Partial>, prompter: In }, data: { config: cleanedData.config, + createdByPrincipal: cleanedData.createdByPrincipal, databaseId: cleanedData.databaseId, hostname: cleanedData.hostname, isPublished: cleanedData.isPublished, @@ -436,12 +477,14 @@ async function handleUpdate(argv: Partial>, prompter: In tlsReadyAt: cleanedData.tlsReadyAt, tlsSecretName: cleanedData.tlsSecretName, tlsStatus: cleanedData.tlsStatus, + updatedByPrincipal: cleanedData.updatedByPrincipal, verificationStatus: cleanedData.verificationStatus, verifiedAt: cleanedData.verifiedAt, }, select: { config: true, createdAt: true, + createdByPrincipal: true, databaseId: true, hostname: true, id: true, @@ -453,6 +496,7 @@ async function handleUpdate(argv: Partial>, prompter: In tlsSecretName: true, tlsStatus: true, updatedAt: true, + updatedByPrincipal: true, verificationStatus: true, verifiedAt: true, }, 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/api/cli/commands/email-site-identity.ts b/sdk/constructive-cli/src/api/cli/commands/email-site-identity.ts new file mode 100644 index 0000000000..51bfe46394 --- /dev/null +++ b/sdk/constructive-cli/src/api/cli/commands/email-site-identity.ts @@ -0,0 +1,303 @@ +/** + * CLI commands for EmailSiteIdentity + * @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 { + CreateEmailSiteIdentityInput, + EmailSiteIdentityPatch, + EmailSiteIdentitySelect, + EmailSiteIdentityFilter, + EmailSiteIdentityOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + createdAt: 'string', + databaseId: 'uuid', + emailIdentityId: 'uuid', + id: 'uuid', + siteId: 'uuid', + updatedAt: 'string', +}; +const usage = + '\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, + _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, + emailIdentityId: true, + id: true, + siteId: true, + updatedAt: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: EmailSiteIdentitySelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.emailSiteIdentity.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, + emailIdentityId: true, + id: true, + siteId: true, + updatedAt: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: EmailSiteIdentitySelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.emailSiteIdentity.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.emailSiteIdentity + .findOne({ + id: answers.id as string, + select: { + createdAt: true, + databaseId: 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: 'databaseId', + message: 'databaseId', + required: true, + }, + { + 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 CreateEmailSiteIdentityInput['emailSiteIdentity']; + const client = getClient(); + const result = await client.emailSiteIdentity + .create({ + data: { + databaseId: cleanedData.databaseId, + emailIdentityId: cleanedData.emailIdentityId, + siteId: cleanedData.siteId, + }, + select: { + createdAt: true, + databaseId: 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: 'databaseId', + message: 'databaseId', + required: false, + }, + { + 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 EmailSiteIdentityPatch; + const client = getClient(); + const result = await client.emailSiteIdentity + .update({ + where: { + id: answers.id as string, + }, + data: { + databaseId: cleanedData.databaseId, + emailIdentityId: cleanedData.emailIdentityId, + siteId: cleanedData.siteId, + }, + select: { + createdAt: true, + databaseId: 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.emailSiteIdentity + .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/function.ts b/sdk/constructive-cli/src/api/cli/commands/function.ts index 54ba65cab3..7a60a6ffcf 100644 --- a/sdk/constructive-cli/src/api/cli/commands/function.ts +++ b/sdk/constructive-cli/src/api/cli/commands/function.ts @@ -16,10 +16,23 @@ import type { } from '../../orm/input-types'; import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { + apiExposed: 'boolean', + arguments: 'json', + bodyAst: 'json', + category: 'string', + data: 'json', databaseId: 'uuid', + functionType: 'string', id: 'uuid', + isStrict: 'boolean', + kind: 'string', name: 'string', + returns: 'json', schemaId: 'uuid', + securityInvoker: 'boolean', + smartTags: 'json', + tags: 'string', + volatility: 'string', }; const usage = '\nfunction \n\nCommands:\n list List function records\n find-first Find first matching function record\n get Get a function by ID\n create Create a new function\n update Update an existing function\n delete Delete a function\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'; @@ -72,10 +85,23 @@ async function handleTableSubcommand( async function handleList(argv: Partial>, _prompter: Inquirerer) { try { const defaultSelect = { + apiExposed: true, + arguments: true, + bodyAst: true, + category: true, + data: true, databaseId: true, + functionType: true, id: true, + isStrict: true, + kind: true, name: true, + returns: true, schemaId: true, + securityInvoker: true, + smartTags: true, + tags: true, + volatility: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs & { @@ -96,10 +122,23 @@ async function handleList(argv: Partial>, _prompter: Inq async function handleFindFirst(argv: Partial>, _prompter: Inquirerer) { try { const defaultSelect = { + apiExposed: true, + arguments: true, + bodyAst: true, + category: true, + data: true, databaseId: true, + functionType: true, id: true, + isStrict: true, + kind: true, name: true, + returns: true, schemaId: true, + securityInvoker: true, + smartTags: true, + tags: true, + volatility: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs & { @@ -132,10 +171,23 @@ async function handleGet(argv: Partial>, prompter: Inqui .findOne({ id: answers.id as string, select: { + apiExposed: true, + arguments: true, + bodyAst: true, + category: true, + data: true, databaseId: true, + functionType: true, id: true, + isStrict: true, + kind: true, name: true, + returns: true, schemaId: true, + securityInvoker: true, + smartTags: true, + tags: true, + volatility: true, }, }) .execute(); @@ -151,24 +203,115 @@ async function handleGet(argv: Partial>, prompter: Inqui async function handleCreate(argv: Partial>, prompter: Inquirerer) { try { const rawAnswers = await prompter.prompt(argv, [ + { + type: 'boolean', + name: 'apiExposed', + message: 'apiExposed', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'arguments', + message: 'arguments', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'bodyAst', + message: 'bodyAst', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'category', + message: 'category', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'data', + message: 'data', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'databaseId', message: 'databaseId', required: true, }, + { + type: 'text', + name: 'functionType', + message: 'functionType', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'isStrict', + message: 'isStrict', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'kind', + message: 'kind', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'name', message: 'name', required: true, }, + { + type: 'json', + name: 'returns', + message: 'returns', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'schemaId', message: 'schemaId', required: true, }, + { + type: 'boolean', + name: 'securityInvoker', + message: 'securityInvoker', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'smartTags', + message: 'smartTags', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'tags', + message: 'tags', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'volatility', + message: 'volatility', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as CreateFunctionInput['function']; @@ -176,15 +319,41 @@ async function handleCreate(argv: Partial>, prompter: In const result = await client.function .create({ data: { + apiExposed: cleanedData.apiExposed, + arguments: cleanedData.arguments, + bodyAst: cleanedData.bodyAst, + category: cleanedData.category, + data: cleanedData.data, databaseId: cleanedData.databaseId, + functionType: cleanedData.functionType, + isStrict: cleanedData.isStrict, + kind: cleanedData.kind, name: cleanedData.name, + returns: cleanedData.returns, schemaId: cleanedData.schemaId, + securityInvoker: cleanedData.securityInvoker, + smartTags: cleanedData.smartTags, + tags: cleanedData.tags, + volatility: cleanedData.volatility, }, select: { + apiExposed: true, + arguments: true, + bodyAst: true, + category: true, + data: true, databaseId: true, + functionType: true, id: true, + isStrict: true, + kind: true, name: true, + returns: true, schemaId: true, + securityInvoker: true, + smartTags: true, + tags: true, + volatility: true, }, }) .execute(); @@ -206,24 +375,115 @@ async function handleUpdate(argv: Partial>, prompter: In message: 'id', required: true, }, + { + type: 'boolean', + name: 'apiExposed', + message: 'apiExposed', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'arguments', + message: 'arguments', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'bodyAst', + message: 'bodyAst', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'category', + message: 'category', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'data', + message: 'data', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'databaseId', message: 'databaseId', required: false, }, + { + type: 'text', + name: 'functionType', + message: 'functionType', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'isStrict', + message: 'isStrict', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'kind', + message: 'kind', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'name', message: 'name', required: false, }, + { + type: 'json', + name: 'returns', + message: 'returns', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'schemaId', message: 'schemaId', required: false, }, + { + type: 'boolean', + name: 'securityInvoker', + message: 'securityInvoker', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'smartTags', + message: 'smartTags', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'tags', + message: 'tags', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'volatility', + message: 'volatility', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as FunctionPatch; @@ -234,15 +494,41 @@ async function handleUpdate(argv: Partial>, prompter: In id: answers.id as string, }, data: { + apiExposed: cleanedData.apiExposed, + arguments: cleanedData.arguments, + bodyAst: cleanedData.bodyAst, + category: cleanedData.category, + data: cleanedData.data, databaseId: cleanedData.databaseId, + functionType: cleanedData.functionType, + isStrict: cleanedData.isStrict, + kind: cleanedData.kind, name: cleanedData.name, + returns: cleanedData.returns, schemaId: cleanedData.schemaId, + securityInvoker: cleanedData.securityInvoker, + smartTags: cleanedData.smartTags, + tags: cleanedData.tags, + volatility: cleanedData.volatility, }, select: { + apiExposed: true, + arguments: true, + bodyAst: true, + category: true, + data: true, databaseId: true, + functionType: true, id: true, + isStrict: true, + kind: true, name: true, + returns: true, schemaId: true, + securityInvoker: true, + smartTags: true, + tags: true, + volatility: true, }, }) .execute(); diff --git a/sdk/constructive-cli/src/api/cli/commands/get-site-preview-commit.ts b/sdk/constructive-cli/src/api/cli/commands/get-site-preview-commit.ts new file mode 100644 index 0000000000..b2d3af2d60 --- /dev/null +++ b/sdk/constructive-cli/src/api/cli/commands/get-site-preview-commit.ts @@ -0,0 +1,45 @@ +/** + * CLI command for query getSitePreviewCommit + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { CLIOptions, Inquirerer } from 'inquirerer'; +import { getClient } from '../executor'; +import type { GetSitePreviewCommitVariables } from '../../orm/query'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'get-site-preview-commit - getSitePreviewCommit\n\nUsage: get-site-preview-commit [OPTIONS]\n' + ); + process.exit(0); + } + const answers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'targetName', + message: 'targetName', + }, + { + type: 'text', + name: 'targetSiteId', + message: 'targetSiteId', + }, + ]); + const client = getClient(); + const result = await client.query + .getSitePreviewCommit(answers as unknown as GetSitePreviewCommitVariables) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: getSitePreviewCommit'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/api/cli/commands/get-site-previews-record.ts b/sdk/constructive-cli/src/api/cli/commands/get-site-previews-record.ts new file mode 100644 index 0000000000..c451a67725 --- /dev/null +++ b/sdk/constructive-cli/src/api/cli/commands/get-site-previews-record.ts @@ -0,0 +1,158 @@ +/** + * CLI commands for GetSitePreviewsRecord + * @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 { + CreateGetSitePreviewsRecordInput, + GetSitePreviewsRecordPatch, + GetSitePreviewsRecordSelect, + GetSitePreviewsRecordFilter, + GetSitePreviewsRecordsOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + commitId: 'uuid', + name: 'string', +}; +const usage = + '\nget-site-previews-record \n\nCommands:\n list List getSitePreviewsRecord records\n find-first Find first matching getSitePreviewsRecord record\n create Create a new getSitePreviewsRecord\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', 'create'], + }, + ]); + 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 'create': + return handleCreate(argv, prompter); + default: + console.log(usage); + process.exit(1); + } +} +async function handleList(argv: Partial>, _prompter: Inquirerer) { + try { + const defaultSelect = { + commitId: true, + name: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs< + GetSitePreviewsRecordSelect, + GetSitePreviewsRecordFilter, + GetSitePreviewsRecordsOrderBy + > & { + select: GetSitePreviewsRecordSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.getSitePreviewsRecord.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 = { + commitId: true, + name: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs< + GetSitePreviewsRecordSelect, + GetSitePreviewsRecordFilter, + GetSitePreviewsRecordsOrderBy + > & { + select: GetSitePreviewsRecordSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.getSitePreviewsRecord.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 handleCreate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'commitId', + message: 'commitId', + required: true, + }, + { + type: 'text', + name: 'name', + message: 'name', + required: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateGetSitePreviewsRecordInput['getSitePreviewsRecord']; + const client = getClient(); + const result = await client.getSitePreviewsRecord + .create({ + data: { + commitId: cleanedData.commitId, + name: cleanedData.name, + }, + select: { + commitId: true, + name: 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); + } +} diff --git a/sdk/constructive-cli/src/api/cli/commands/get-site-release-manifest.ts b/sdk/constructive-cli/src/api/cli/commands/get-site-release-manifest.ts new file mode 100644 index 0000000000..13762fbfbf --- /dev/null +++ b/sdk/constructive-cli/src/api/cli/commands/get-site-release-manifest.ts @@ -0,0 +1,45 @@ +/** + * CLI command for query getSiteReleaseManifest + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { CLIOptions, Inquirerer } from 'inquirerer'; +import { getClient } from '../executor'; +import type { GetSiteReleaseManifestVariables } from '../../orm/query'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'get-site-release-manifest - getSiteReleaseManifest\n\nUsage: get-site-release-manifest [OPTIONS]\n' + ); + process.exit(0); + } + const answers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'targetCommitId', + message: 'targetCommitId', + }, + { + type: 'text', + name: 'targetSiteId', + message: 'targetSiteId', + }, + ]); + const client = getClient(); + const result = await client.query + .getSiteReleaseManifest(answers as unknown as GetSiteReleaseManifestVariables) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: getSiteReleaseManifest'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/api/cli/commands/http-route.ts b/sdk/constructive-cli/src/api/cli/commands/http-route.ts deleted file mode 100644 index 62461e7b5a..0000000000 --- a/sdk/constructive-cli/src/api/cli/commands/http-route.ts +++ /dev/null @@ -1,452 +0,0 @@ -/** - * CLI commands for HttpRoute - * @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 { - CreateHttpRouteInput, - HttpRoutePatch, - HttpRouteSelect, - HttpRouteFilter, - HttpRouteOrderBy, -} from '../../orm/input-types'; -import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; -const fieldSchema: FieldSchema = { - createdAt: 'string', - createdBy: 'uuid', - databaseId: 'uuid', - domainId: 'uuid', - id: 'uuid', - isActive: 'boolean', - method: 'string', - path: 'string', - priority: 'int', - targetId: 'uuid', - targetKind: 'string', - updatedAt: 'string', - updatedBy: 'uuid', -}; -const usage = - '\nhttp-route \n\nCommands:\n list List httpRoute records\n find-first Find first matching httpRoute record\n get Get a httpRoute by ID\n create Create a new httpRoute\n update Update an existing httpRoute\n delete Delete a httpRoute\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, - createdBy: true, - databaseId: true, - domainId: true, - id: true, - isActive: true, - method: true, - path: true, - priority: true, - targetId: true, - targetKind: true, - updatedAt: true, - updatedBy: true, - }; - const findManyArgs = parseFindManyArgs< - FindManyArgs & { - select: HttpRouteSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.httpRoute.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, - createdBy: true, - databaseId: true, - domainId: true, - id: true, - isActive: true, - method: true, - path: true, - priority: true, - targetId: true, - targetKind: true, - updatedAt: true, - updatedBy: true, - }; - const findFirstArgs = parseFindFirstArgs< - FindFirstArgs & { - select: HttpRouteSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.httpRoute.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.httpRoute - .findOne({ - id: answers.id as string, - select: { - createdAt: true, - createdBy: true, - databaseId: true, - domainId: true, - id: true, - isActive: true, - method: true, - path: true, - priority: true, - targetId: true, - targetKind: true, - updatedAt: true, - updatedBy: 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: 'createdBy', - message: 'createdBy', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'databaseId', - message: 'databaseId', - required: true, - }, - { - type: 'text', - name: 'domainId', - message: 'domainId', - required: true, - }, - { - type: 'boolean', - name: 'isActive', - message: 'isActive', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'method', - message: 'method', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'path', - message: 'path', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'priority', - message: 'priority', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'targetId', - message: 'targetId', - required: true, - }, - { - type: 'text', - name: 'targetKind', - message: 'targetKind', - required: true, - }, - { - type: 'text', - name: 'updatedBy', - message: 'updatedBy', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as CreateHttpRouteInput['httpRoute']; - const client = getClient(); - const result = await client.httpRoute - .create({ - data: { - createdBy: cleanedData.createdBy, - databaseId: cleanedData.databaseId, - domainId: cleanedData.domainId, - isActive: cleanedData.isActive, - method: cleanedData.method, - path: cleanedData.path, - priority: cleanedData.priority, - targetId: cleanedData.targetId, - targetKind: cleanedData.targetKind, - updatedBy: cleanedData.updatedBy, - }, - select: { - createdAt: true, - createdBy: true, - databaseId: true, - domainId: true, - id: true, - isActive: true, - method: true, - path: true, - priority: true, - targetId: true, - targetKind: true, - updatedAt: true, - updatedBy: 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: 'createdBy', - message: 'createdBy', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'databaseId', - message: 'databaseId', - required: false, - }, - { - type: 'text', - name: 'domainId', - message: 'domainId', - required: false, - }, - { - type: 'boolean', - name: 'isActive', - message: 'isActive', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'method', - message: 'method', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'path', - message: 'path', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'priority', - message: 'priority', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'targetId', - message: 'targetId', - required: false, - }, - { - type: 'text', - name: 'targetKind', - message: 'targetKind', - required: false, - }, - { - type: 'text', - name: 'updatedBy', - message: 'updatedBy', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as HttpRoutePatch; - const client = getClient(); - const result = await client.httpRoute - .update({ - where: { - id: answers.id as string, - }, - data: { - createdBy: cleanedData.createdBy, - databaseId: cleanedData.databaseId, - domainId: cleanedData.domainId, - isActive: cleanedData.isActive, - method: cleanedData.method, - path: cleanedData.path, - priority: cleanedData.priority, - targetId: cleanedData.targetId, - targetKind: cleanedData.targetKind, - updatedBy: cleanedData.updatedBy, - }, - select: { - createdAt: true, - createdBy: true, - databaseId: true, - domainId: true, - id: true, - isActive: true, - method: true, - path: true, - priority: true, - targetId: true, - targetKind: true, - updatedAt: true, - updatedBy: 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.httpRoute - .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/identity-provider-registry.ts b/sdk/constructive-cli/src/api/cli/commands/identity-provider-registry.ts new file mode 100644 index 0000000000..d1eb5d6ebe --- /dev/null +++ b/sdk/constructive-cli/src/api/cli/commands/identity-provider-registry.ts @@ -0,0 +1,396 @@ +/** + * CLI commands for IdentityProviderRegistry + * @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 { + CreateIdentityProviderRegistryInput, + IdentityProviderRegistryPatch, + IdentityProviderRegistrySelect, + IdentityProviderRegistryFilter, + IdentityProviderRegistryOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + authorizationUrl: 'string', + displayName: 'string', + issuerUrl: 'string', + kind: 'string', + scopes: 'string', + slug: 'string', + tokenUrl: 'string', + userinfoUrl: 'string', +}; +const usage = + '\nidentity-provider-registry \n\nCommands:\n list List identityProviderRegistry records\n find-first Find first matching identityProviderRegistry record\n get Get a identityProviderRegistry by ID\n create Create a new identityProviderRegistry\n update Update an existing identityProviderRegistry\n delete Delete a identityProviderRegistry\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 = { + authorizationUrl: true, + displayName: true, + issuerUrl: true, + kind: true, + scopes: true, + slug: true, + tokenUrl: true, + userinfoUrl: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs< + IdentityProviderRegistrySelect, + IdentityProviderRegistryFilter, + IdentityProviderRegistryOrderBy + > & { + select: IdentityProviderRegistrySelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.identityProviderRegistry.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 = { + authorizationUrl: true, + displayName: true, + issuerUrl: true, + kind: true, + scopes: true, + slug: true, + tokenUrl: true, + userinfoUrl: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs< + IdentityProviderRegistrySelect, + IdentityProviderRegistryFilter, + IdentityProviderRegistryOrderBy + > & { + select: IdentityProviderRegistrySelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.identityProviderRegistry.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: 'slug', + message: 'slug', + required: true, + }, + ]); + const client = getClient(); + const result = await client.identityProviderRegistry + .findOne({ + slug: answers.slug as string, + select: { + authorizationUrl: true, + displayName: true, + issuerUrl: true, + kind: true, + scopes: true, + slug: true, + tokenUrl: true, + userinfoUrl: 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: 'authorizationUrl', + message: 'authorizationUrl', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'displayName', + message: 'displayName', + required: true, + }, + { + type: 'text', + name: 'issuerUrl', + message: 'issuerUrl', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'kind', + message: 'kind', + required: true, + }, + { + type: 'text', + name: 'scopes', + message: 'scopes', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'slug', + message: 'slug', + required: true, + }, + { + type: 'text', + name: 'tokenUrl', + message: 'tokenUrl', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'userinfoUrl', + message: 'userinfoUrl', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateIdentityProviderRegistryInput['identityProviderRegistry']; + const client = getClient(); + const result = await client.identityProviderRegistry + .create({ + data: { + authorizationUrl: cleanedData.authorizationUrl, + displayName: cleanedData.displayName, + issuerUrl: cleanedData.issuerUrl, + kind: cleanedData.kind, + scopes: cleanedData.scopes, + slug: cleanedData.slug, + tokenUrl: cleanedData.tokenUrl, + userinfoUrl: cleanedData.userinfoUrl, + }, + select: { + authorizationUrl: true, + displayName: true, + issuerUrl: true, + kind: true, + scopes: true, + slug: true, + tokenUrl: true, + userinfoUrl: 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: 'slug', + message: 'slug', + required: true, + }, + { + type: 'text', + name: 'authorizationUrl', + message: 'authorizationUrl', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'displayName', + message: 'displayName', + required: false, + }, + { + type: 'text', + name: 'issuerUrl', + message: 'issuerUrl', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'kind', + message: 'kind', + required: false, + }, + { + type: 'text', + name: 'scopes', + message: 'scopes', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'tokenUrl', + message: 'tokenUrl', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'userinfoUrl', + message: 'userinfoUrl', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as IdentityProviderRegistryPatch; + const client = getClient(); + const result = await client.identityProviderRegistry + .update({ + where: { + slug: answers.slug as string, + }, + data: { + authorizationUrl: cleanedData.authorizationUrl, + displayName: cleanedData.displayName, + issuerUrl: cleanedData.issuerUrl, + kind: cleanedData.kind, + scopes: cleanedData.scopes, + tokenUrl: cleanedData.tokenUrl, + userinfoUrl: cleanedData.userinfoUrl, + }, + select: { + authorizationUrl: true, + displayName: true, + issuerUrl: true, + kind: true, + scopes: true, + slug: true, + tokenUrl: true, + userinfoUrl: 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: 'slug', + message: 'slug', + required: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const client = getClient(); + const result = await client.identityProviderRegistry + .delete({ + where: { + slug: answers.slug as string, + }, + select: { + slug: 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/index.ts b/sdk/constructive-cli/src/api/cli/commands/index.ts index 2d589d444c..bc39c8aa32 100644 --- a/sdk/constructive-cli/src/api/cli/commands/index.ts +++ b/sdk/constructive-cli/src/api/cli/commands/index.ts @@ -26,6 +26,7 @@ const fieldSchema: FieldSchema = { indexParams: 'json', isUnique: 'boolean', name: 'string', + nullsNotDistinct: 'boolean', opClasses: 'string', options: 'json', smartTags: 'json', @@ -95,6 +96,7 @@ async function handleList(argv: Partial>, _prompter: Inq indexParams: true, isUnique: true, name: true, + nullsNotDistinct: true, opClasses: true, options: true, smartTags: true, @@ -132,6 +134,7 @@ async function handleFindFirst(argv: Partial>, _prompter indexParams: true, isUnique: true, name: true, + nullsNotDistinct: true, opClasses: true, options: true, smartTags: true, @@ -181,6 +184,7 @@ async function handleGet(argv: Partial>, prompter: Inqui indexParams: true, isUnique: true, name: true, + nullsNotDistinct: true, opClasses: true, options: true, smartTags: true, @@ -258,6 +262,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'boolean', + name: 'nullsNotDistinct', + message: 'nullsNotDistinct', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'opClasses', @@ -314,6 +325,7 @@ async function handleCreate(argv: Partial>, prompter: In indexParams: cleanedData.indexParams, isUnique: cleanedData.isUnique, name: cleanedData.name, + nullsNotDistinct: cleanedData.nullsNotDistinct, opClasses: cleanedData.opClasses, options: cleanedData.options, smartTags: cleanedData.smartTags, @@ -332,6 +344,7 @@ async function handleCreate(argv: Partial>, prompter: In indexParams: true, isUnique: true, name: true, + nullsNotDistinct: true, opClasses: true, options: true, smartTags: true, @@ -415,6 +428,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'boolean', + name: 'nullsNotDistinct', + message: 'nullsNotDistinct', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'opClasses', @@ -474,6 +494,7 @@ async function handleUpdate(argv: Partial>, prompter: In indexParams: cleanedData.indexParams, isUnique: cleanedData.isUnique, name: cleanedData.name, + nullsNotDistinct: cleanedData.nullsNotDistinct, opClasses: cleanedData.opClasses, options: cleanedData.options, smartTags: cleanedData.smartTags, @@ -492,6 +513,7 @@ async function handleUpdate(argv: Partial>, prompter: In indexParams: true, isUnique: true, name: true, + nullsNotDistinct: true, opClasses: true, options: true, smartTags: true, diff --git a/sdk/constructive-cli/src/api/cli/commands/managed-domain.ts b/sdk/constructive-cli/src/api/cli/commands/managed-domain.ts index 16a495a347..12c4f69f53 100644 --- a/sdk/constructive-cli/src/api/cli/commands/managed-domain.ts +++ b/sdk/constructive-cli/src/api/cli/commands/managed-domain.ts @@ -20,6 +20,7 @@ const fieldSchema: FieldSchema = { annotations: 'json', certStatus: 'string', createdAt: 'string', + createdByPrincipal: 'uuid', databaseId: 'uuid', domain: 'string', id: 'uuid', @@ -27,6 +28,7 @@ const fieldSchema: FieldSchema = { tlsReadyAt: 'string', tlsStatus: 'string', updatedAt: 'string', + updatedByPrincipal: 'uuid', verificationStatus: 'string', verifiedAt: 'string', }; @@ -85,6 +87,7 @@ async function handleList(argv: Partial>, _prompter: Inq annotations: true, certStatus: true, createdAt: true, + createdByPrincipal: true, databaseId: true, domain: true, id: true, @@ -92,6 +95,7 @@ async function handleList(argv: Partial>, _prompter: Inq tlsReadyAt: true, tlsStatus: true, updatedAt: true, + updatedByPrincipal: true, verificationStatus: true, verifiedAt: true, }; @@ -118,6 +122,7 @@ async function handleFindFirst(argv: Partial>, _prompter annotations: true, certStatus: true, createdAt: true, + createdByPrincipal: true, databaseId: true, domain: true, id: true, @@ -125,6 +130,7 @@ async function handleFindFirst(argv: Partial>, _prompter tlsReadyAt: true, tlsStatus: true, updatedAt: true, + updatedByPrincipal: true, verificationStatus: true, verifiedAt: true, }; @@ -163,6 +169,7 @@ async function handleGet(argv: Partial>, prompter: Inqui annotations: true, certStatus: true, createdAt: true, + createdByPrincipal: true, databaseId: true, domain: true, id: true, @@ -170,6 +177,7 @@ async function handleGet(argv: Partial>, prompter: Inqui tlsReadyAt: true, tlsStatus: true, updatedAt: true, + updatedByPrincipal: true, verificationStatus: true, verifiedAt: true, }, @@ -208,6 +216,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'databaseId', @@ -241,6 +256,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'verificationStatus', @@ -268,11 +290,13 @@ async function handleCreate(argv: Partial>, prompter: In allowPublicUsage: cleanedData.allowPublicUsage, annotations: cleanedData.annotations, certStatus: cleanedData.certStatus, + createdByPrincipal: cleanedData.createdByPrincipal, databaseId: cleanedData.databaseId, domain: cleanedData.domain, isWildcard: cleanedData.isWildcard, tlsReadyAt: cleanedData.tlsReadyAt, tlsStatus: cleanedData.tlsStatus, + updatedByPrincipal: cleanedData.updatedByPrincipal, verificationStatus: cleanedData.verificationStatus, verifiedAt: cleanedData.verifiedAt, }, @@ -281,6 +305,7 @@ async function handleCreate(argv: Partial>, prompter: In annotations: true, certStatus: true, createdAt: true, + createdByPrincipal: true, databaseId: true, domain: true, id: true, @@ -288,6 +313,7 @@ async function handleCreate(argv: Partial>, prompter: In tlsReadyAt: true, tlsStatus: true, updatedAt: true, + updatedByPrincipal: true, verificationStatus: true, verifiedAt: true, }, @@ -332,6 +358,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'databaseId', @@ -365,6 +398,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'verificationStatus', @@ -392,11 +432,13 @@ async function handleUpdate(argv: Partial>, prompter: In allowPublicUsage: cleanedData.allowPublicUsage, annotations: cleanedData.annotations, certStatus: cleanedData.certStatus, + createdByPrincipal: cleanedData.createdByPrincipal, databaseId: cleanedData.databaseId, domain: cleanedData.domain, isWildcard: cleanedData.isWildcard, tlsReadyAt: cleanedData.tlsReadyAt, tlsStatus: cleanedData.tlsStatus, + updatedByPrincipal: cleanedData.updatedByPrincipal, verificationStatus: cleanedData.verificationStatus, verifiedAt: cleanedData.verifiedAt, }, @@ -405,6 +447,7 @@ async function handleUpdate(argv: Partial>, prompter: In annotations: true, certStatus: true, createdAt: true, + createdByPrincipal: true, databaseId: true, domain: true, id: true, @@ -412,6 +455,7 @@ async function handleUpdate(argv: Partial>, prompter: In tlsReadyAt: true, tlsStatus: true, updatedAt: true, + updatedByPrincipal: true, verificationStatus: true, verifiedAt: true, }, diff --git a/sdk/constructive-cli/src/api/cli/commands/mint-site-preview-token.ts b/sdk/constructive-cli/src/api/cli/commands/mint-site-preview-token.ts new file mode 100644 index 0000000000..efd0ff8353 --- /dev/null +++ b/sdk/constructive-cli/src/api/cli/commands/mint-site-preview-token.ts @@ -0,0 +1,53 @@ +/** + * CLI command for mutation mintSitePreviewToken + * @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 { MintSitePreviewTokenVariables } from '../../orm/mutation'; +import type { MintSitePreviewTokenPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'mint-site-preview-token - mintSitePreviewToken\n\nUsage: mint-site-preview-token [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 + .mintSitePreviewToken( + parsedAnswers as unknown as MintSitePreviewTokenVariables, + { + select: selectFields, + } as unknown as { + select: MintSitePreviewTokenPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: mintSitePreviewToken'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/api/cli/commands/page-published.ts b/sdk/constructive-cli/src/api/cli/commands/page-published.ts new file mode 100644 index 0000000000..ef9a81f2b1 --- /dev/null +++ b/sdk/constructive-cli/src/api/cli/commands/page-published.ts @@ -0,0 +1,43 @@ +/** + * CLI command for query pagePublished + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { CLIOptions, Inquirerer } from 'inquirerer'; +import { getClient } from '../executor'; +import type { PagePublishedVariables } from '../../orm/query'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log('page-published - pagePublished\n\nUsage: page-published [OPTIONS]\n'); + process.exit(0); + } + const answers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'pageSlug', + message: 'pageSlug', + }, + { + type: 'text', + name: 'targetSiteId', + message: 'targetSiteId', + }, + ]); + const client = getClient(); + const result = await client.query + .pagePublished(answers as unknown as PagePublishedVariables) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: pagePublished'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/api/cli/commands/page.ts b/sdk/constructive-cli/src/api/cli/commands/page.ts index 8619f71989..6bebf7eda6 100644 --- a/sdk/constructive-cli/src/api/cli/commands/page.ts +++ b/sdk/constructive-cli/src/api/cli/commands/page.ts @@ -21,6 +21,7 @@ const fieldSchema: FieldSchema = { createdAt: 'string', databaseId: 'uuid', id: 'uuid', + seededFrom: 'json', siteId: 'uuid', slug: 'string', storeId: 'uuid', @@ -82,6 +83,7 @@ async function handleList(argv: Partial>, _prompter: Inq createdAt: true, databaseId: true, id: true, + seededFrom: true, siteId: true, slug: true, storeId: true, @@ -111,6 +113,7 @@ async function handleFindFirst(argv: Partial>, _prompter createdAt: true, databaseId: true, id: true, + seededFrom: true, siteId: true, slug: true, storeId: true, @@ -152,6 +155,7 @@ async function handleGet(argv: Partial>, prompter: Inqui createdAt: true, databaseId: true, id: true, + seededFrom: true, siteId: true, slug: true, storeId: true, @@ -190,6 +194,13 @@ async function handleCreate(argv: Partial>, prompter: In message: 'databaseId', required: true, }, + { + type: 'json', + name: 'seededFrom', + message: 'seededFrom', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'siteId', @@ -219,6 +230,7 @@ async function handleCreate(argv: Partial>, prompter: In commitId: cleanedData.commitId, content: cleanedData.content, databaseId: cleanedData.databaseId, + seededFrom: cleanedData.seededFrom, siteId: cleanedData.siteId, slug: cleanedData.slug, storeId: cleanedData.storeId, @@ -229,6 +241,7 @@ async function handleCreate(argv: Partial>, prompter: In createdAt: true, databaseId: true, id: true, + seededFrom: true, siteId: true, slug: true, storeId: true, @@ -273,6 +286,13 @@ async function handleUpdate(argv: Partial>, prompter: In message: 'databaseId', required: false, }, + { + type: 'json', + name: 'seededFrom', + message: 'seededFrom', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'siteId', @@ -305,6 +325,7 @@ async function handleUpdate(argv: Partial>, prompter: In commitId: cleanedData.commitId, content: cleanedData.content, databaseId: cleanedData.databaseId, + seededFrom: cleanedData.seededFrom, siteId: cleanedData.siteId, slug: cleanedData.slug, storeId: cleanedData.storeId, @@ -315,6 +336,7 @@ async function handleUpdate(argv: Partial>, prompter: In createdAt: true, databaseId: true, id: true, + seededFrom: true, siteId: true, slug: true, storeId: true, diff --git a/sdk/constructive-cli/src/api/cli/commands/pages-install-pages.ts b/sdk/constructive-cli/src/api/cli/commands/pages-install-pages.ts new file mode 100644 index 0000000000..4cb83bfa30 --- /dev/null +++ b/sdk/constructive-cli/src/api/cli/commands/pages-install-pages.ts @@ -0,0 +1,53 @@ +/** + * CLI command for mutation pagesInstallPages + * @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 { PagesInstallPagesVariables } from '../../orm/mutation'; +import type { PagesInstallPagesPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'pages-install-pages - pagesInstallPages\n\nUsage: pages-install-pages [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 + .pagesInstallPages( + parsedAnswers as unknown as PagesInstallPagesVariables, + { + select: selectFields, + } as unknown as { + select: PagesInstallPagesPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: pagesInstallPages'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/api/cli/commands/platform-api-setting.ts b/sdk/constructive-cli/src/api/cli/commands/platform-api-setting.ts index 1f37b26245..adeb216356 100644 --- a/sdk/constructive-cli/src/api/cli/commands/platform-api-setting.ts +++ b/sdk/constructive-cli/src/api/cli/commands/platform-api-setting.ts @@ -23,6 +23,7 @@ const fieldSchema: FieldSchema = { enableConnectionFilter: 'boolean', enableDirectUploads: 'boolean', enableI18N: 'boolean', + enableIntrospection: 'boolean', enableLlm: 'boolean', enableLtree: 'boolean', enableManyToMany: 'boolean', @@ -31,7 +32,17 @@ const fieldSchema: FieldSchema = { enableRealtime: 'boolean', enableSearch: 'boolean', id: 'uuid', + idleInTransactionTimeoutMs: 'int', + lockTimeoutMs: 'int', + maxConcurrentRequests: 'int', + maxPageSize: 'int', + maxQueryCost: 'int', + maxQueryDepth: 'int', + maxQueueWaitMs: 'int', + maxRequestBytes: 'int', options: 'json', + rateLimitBurst: 'int', + rateLimitRpm: 'int', statementTimeoutMs: 'int', updatedAt: 'string', }; @@ -93,6 +104,7 @@ async function handleList(argv: Partial>, _prompter: Inq enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, + enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, @@ -101,7 +113,17 @@ async function handleList(argv: Partial>, _prompter: Inq enableRealtime: true, enableSearch: true, id: true, + idleInTransactionTimeoutMs: true, + lockTimeoutMs: true, + maxConcurrentRequests: true, + maxPageSize: true, + maxQueryCost: true, + maxQueryDepth: true, + maxQueueWaitMs: true, + maxRequestBytes: true, options: true, + rateLimitBurst: true, + rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true, }; @@ -135,6 +157,7 @@ async function handleFindFirst(argv: Partial>, _prompter enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, + enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, @@ -143,7 +166,17 @@ async function handleFindFirst(argv: Partial>, _prompter enableRealtime: true, enableSearch: true, id: true, + idleInTransactionTimeoutMs: true, + lockTimeoutMs: true, + maxConcurrentRequests: true, + maxPageSize: true, + maxQueryCost: true, + maxQueryDepth: true, + maxQueueWaitMs: true, + maxRequestBytes: true, options: true, + rateLimitBurst: true, + rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true, }; @@ -189,6 +222,7 @@ async function handleGet(argv: Partial>, prompter: Inqui enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, + enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, @@ -197,7 +231,17 @@ async function handleGet(argv: Partial>, prompter: Inqui enableRealtime: true, enableSearch: true, id: true, + idleInTransactionTimeoutMs: true, + lockTimeoutMs: true, + maxConcurrentRequests: true, + maxPageSize: true, + maxQueryCost: true, + maxQueryDepth: true, + maxQueueWaitMs: true, + maxRequestBytes: true, options: true, + rateLimitBurst: true, + rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true, }, @@ -256,6 +300,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'boolean', + name: 'enableIntrospection', + message: 'enableIntrospection', + required: false, + skipPrompt: true, + }, { type: 'boolean', name: 'enableLlm', @@ -305,6 +356,62 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'idleInTransactionTimeoutMs', + message: 'idleInTransactionTimeoutMs', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'lockTimeoutMs', + message: 'lockTimeoutMs', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'maxConcurrentRequests', + message: 'maxConcurrentRequests', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'maxPageSize', + message: 'maxPageSize', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'maxQueryCost', + message: 'maxQueryCost', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'maxQueryDepth', + message: 'maxQueryDepth', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'maxQueueWaitMs', + message: 'maxQueueWaitMs', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'maxRequestBytes', + message: 'maxRequestBytes', + required: false, + skipPrompt: true, + }, { type: 'json', name: 'options', @@ -312,6 +419,20 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'rateLimitBurst', + message: 'rateLimitBurst', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'rateLimitRpm', + message: 'rateLimitRpm', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'statementTimeoutMs', @@ -335,6 +456,7 @@ async function handleCreate(argv: Partial>, prompter: In enableConnectionFilter: cleanedData.enableConnectionFilter, enableDirectUploads: cleanedData.enableDirectUploads, enableI18N: cleanedData.enableI18N, + enableIntrospection: cleanedData.enableIntrospection, enableLlm: cleanedData.enableLlm, enableLtree: cleanedData.enableLtree, enableManyToMany: cleanedData.enableManyToMany, @@ -342,7 +464,17 @@ async function handleCreate(argv: Partial>, prompter: In enablePresignedUploads: cleanedData.enablePresignedUploads, enableRealtime: cleanedData.enableRealtime, enableSearch: cleanedData.enableSearch, + idleInTransactionTimeoutMs: cleanedData.idleInTransactionTimeoutMs, + lockTimeoutMs: cleanedData.lockTimeoutMs, + maxConcurrentRequests: cleanedData.maxConcurrentRequests, + maxPageSize: cleanedData.maxPageSize, + maxQueryCost: cleanedData.maxQueryCost, + maxQueryDepth: cleanedData.maxQueryDepth, + maxQueueWaitMs: cleanedData.maxQueueWaitMs, + maxRequestBytes: cleanedData.maxRequestBytes, options: cleanedData.options, + rateLimitBurst: cleanedData.rateLimitBurst, + rateLimitRpm: cleanedData.rateLimitRpm, statementTimeoutMs: cleanedData.statementTimeoutMs, }, select: { @@ -353,6 +485,7 @@ async function handleCreate(argv: Partial>, prompter: In enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, + enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, @@ -361,7 +494,17 @@ async function handleCreate(argv: Partial>, prompter: In enableRealtime: true, enableSearch: true, id: true, + idleInTransactionTimeoutMs: true, + lockTimeoutMs: true, + maxConcurrentRequests: true, + maxPageSize: true, + maxQueryCost: true, + maxQueryDepth: true, + maxQueueWaitMs: true, + maxRequestBytes: true, options: true, + rateLimitBurst: true, + rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true, }, @@ -426,6 +569,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'boolean', + name: 'enableIntrospection', + message: 'enableIntrospection', + required: false, + skipPrompt: true, + }, { type: 'boolean', name: 'enableLlm', @@ -475,6 +625,62 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'idleInTransactionTimeoutMs', + message: 'idleInTransactionTimeoutMs', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'lockTimeoutMs', + message: 'lockTimeoutMs', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'maxConcurrentRequests', + message: 'maxConcurrentRequests', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'maxPageSize', + message: 'maxPageSize', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'maxQueryCost', + message: 'maxQueryCost', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'maxQueryDepth', + message: 'maxQueryDepth', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'maxQueueWaitMs', + message: 'maxQueueWaitMs', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'maxRequestBytes', + message: 'maxRequestBytes', + required: false, + skipPrompt: true, + }, { type: 'json', name: 'options', @@ -482,6 +688,20 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'rateLimitBurst', + message: 'rateLimitBurst', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'rateLimitRpm', + message: 'rateLimitRpm', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'statementTimeoutMs', @@ -505,6 +725,7 @@ async function handleUpdate(argv: Partial>, prompter: In enableConnectionFilter: cleanedData.enableConnectionFilter, enableDirectUploads: cleanedData.enableDirectUploads, enableI18N: cleanedData.enableI18N, + enableIntrospection: cleanedData.enableIntrospection, enableLlm: cleanedData.enableLlm, enableLtree: cleanedData.enableLtree, enableManyToMany: cleanedData.enableManyToMany, @@ -512,7 +733,17 @@ async function handleUpdate(argv: Partial>, prompter: In enablePresignedUploads: cleanedData.enablePresignedUploads, enableRealtime: cleanedData.enableRealtime, enableSearch: cleanedData.enableSearch, + idleInTransactionTimeoutMs: cleanedData.idleInTransactionTimeoutMs, + lockTimeoutMs: cleanedData.lockTimeoutMs, + maxConcurrentRequests: cleanedData.maxConcurrentRequests, + maxPageSize: cleanedData.maxPageSize, + maxQueryCost: cleanedData.maxQueryCost, + maxQueryDepth: cleanedData.maxQueryDepth, + maxQueueWaitMs: cleanedData.maxQueueWaitMs, + maxRequestBytes: cleanedData.maxRequestBytes, options: cleanedData.options, + rateLimitBurst: cleanedData.rateLimitBurst, + rateLimitRpm: cleanedData.rateLimitRpm, statementTimeoutMs: cleanedData.statementTimeoutMs, }, select: { @@ -523,6 +754,7 @@ async function handleUpdate(argv: Partial>, prompter: In enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, + enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, @@ -531,7 +763,17 @@ async function handleUpdate(argv: Partial>, prompter: In enableRealtime: true, enableSearch: true, id: true, + idleInTransactionTimeoutMs: true, + lockTimeoutMs: true, + maxConcurrentRequests: true, + maxPageSize: true, + maxQueryCost: true, + maxQueryDepth: true, + maxQueueWaitMs: true, + maxRequestBytes: true, options: true, + rateLimitBurst: true, + rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true, }, diff --git a/sdk/constructive-cli/src/api/cli/commands/platform-api.ts b/sdk/constructive-cli/src/api/cli/commands/platform-api.ts new file mode 100644 index 0000000000..6338ed05c9 --- /dev/null +++ b/sdk/constructive-cli/src/api/cli/commands/platform-api.ts @@ -0,0 +1,373 @@ +/** + * CLI commands for PlatformApi + * @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 { + 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', + dbname: 'string', + id: 'uuid', + isPublished: 'boolean', + name: 'string', + roleName: 'string', + updatedAt: 'string', +}; +const usage = + '\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, + _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 = { + anonRole: true, + config: true, + createdAt: true, + dbname: true, + id: true, + isPublished: true, + name: true, + roleName: true, + updatedAt: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: PlatformApiSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformApi.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 = { + anonRole: true, + config: true, + createdAt: true, + dbname: true, + id: true, + isPublished: true, + name: true, + roleName: true, + updatedAt: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: PlatformApiSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformApi.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.platformApi + .findOne({ + id: answers.id as string, + select: { + anonRole: true, + config: true, + createdAt: true, + dbname: true, + id: true, + isPublished: true, + name: true, + roleName: 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: 'anonRole', + message: 'anonRole', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'config', + message: 'config', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'dbname', + message: 'dbname', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'isPublished', + message: 'isPublished', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'name', + message: 'name', + required: true, + }, + { + type: 'text', + name: 'roleName', + message: 'roleName', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreatePlatformApiInput['platformApi']; + const client = getClient(); + const result = await client.platformApi + .create({ + data: { + anonRole: cleanedData.anonRole, + config: cleanedData.config, + dbname: cleanedData.dbname, + isPublished: cleanedData.isPublished, + name: cleanedData.name, + roleName: cleanedData.roleName, + }, + select: { + anonRole: true, + config: true, + createdAt: true, + dbname: true, + id: true, + isPublished: true, + name: true, + roleName: 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: 'anonRole', + message: 'anonRole', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'config', + message: 'config', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'dbname', + message: 'dbname', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'isPublished', + message: 'isPublished', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'name', + message: 'name', + required: false, + }, + { + type: 'text', + name: 'roleName', + message: 'roleName', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as PlatformApiPatch; + const client = getClient(); + const result = await client.platformApi + .update({ + where: { + id: answers.id as string, + }, + data: { + anonRole: cleanedData.anonRole, + config: cleanedData.config, + dbname: cleanedData.dbname, + isPublished: cleanedData.isPublished, + name: cleanedData.name, + roleName: cleanedData.roleName, + }, + select: { + anonRole: true, + config: true, + createdAt: true, + dbname: true, + id: true, + isPublished: true, + name: true, + roleName: 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.platformApi + .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-apis.ts b/sdk/constructive-cli/src/api/cli/commands/platform-apis.ts deleted file mode 100644 index ebe15c4b82..0000000000 --- a/sdk/constructive-cli/src/api/cli/commands/platform-apis.ts +++ /dev/null @@ -1,373 +0,0 @@ -/** - * CLI commands for PlatformApis - * @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 { - CreatePlatformApisInput, - PlatformApisPatch, - PlatformApisSelect, - PlatformApisFilter, - PlatformApisOrderBy, -} from '../../orm/input-types'; -import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; -const fieldSchema: FieldSchema = { - anonRole: 'string', - config: 'json', - createdAt: 'string', - dbname: 'string', - id: 'uuid', - isPublished: 'boolean', - name: 'string', - roleName: 'string', - 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'; -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 = { - anonRole: true, - config: true, - createdAt: true, - dbname: true, - id: true, - isPublished: true, - name: true, - roleName: true, - updatedAt: true, - }; - const findManyArgs = parseFindManyArgs< - FindManyArgs & { - select: PlatformApisSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.platformApis.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 = { - anonRole: true, - config: true, - createdAt: true, - dbname: true, - id: true, - isPublished: true, - name: true, - roleName: true, - updatedAt: true, - }; - const findFirstArgs = parseFindFirstArgs< - FindFirstArgs & { - select: PlatformApisSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.platformApis.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.platformApis - .findOne({ - id: answers.id as string, - select: { - anonRole: true, - config: true, - createdAt: true, - dbname: true, - id: true, - isPublished: true, - name: true, - roleName: 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: 'anonRole', - message: 'anonRole', - required: false, - skipPrompt: true, - }, - { - type: 'json', - name: 'config', - message: 'config', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'dbname', - message: 'dbname', - required: false, - skipPrompt: true, - }, - { - type: 'boolean', - name: 'isPublished', - message: 'isPublished', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'name', - message: 'name', - required: true, - }, - { - type: 'text', - name: 'roleName', - message: 'roleName', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreatePlatformApisInput['platformApis']; - const client = getClient(); - const result = await client.platformApis - .create({ - data: { - anonRole: cleanedData.anonRole, - config: cleanedData.config, - dbname: cleanedData.dbname, - isPublished: cleanedData.isPublished, - name: cleanedData.name, - roleName: cleanedData.roleName, - }, - select: { - anonRole: true, - config: true, - createdAt: true, - dbname: true, - id: true, - isPublished: true, - name: true, - roleName: 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: 'anonRole', - message: 'anonRole', - required: false, - skipPrompt: true, - }, - { - type: 'json', - name: 'config', - message: 'config', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'dbname', - message: 'dbname', - required: false, - skipPrompt: true, - }, - { - type: 'boolean', - name: 'isPublished', - message: 'isPublished', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'name', - message: 'name', - required: false, - }, - { - type: 'text', - name: 'roleName', - message: 'roleName', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as PlatformApisPatch; - const client = getClient(); - const result = await client.platformApis - .update({ - where: { - id: answers.id as string, - }, - data: { - anonRole: cleanedData.anonRole, - config: cleanedData.config, - dbname: cleanedData.dbname, - isPublished: cleanedData.isPublished, - name: cleanedData.name, - roleName: cleanedData.roleName, - }, - select: { - anonRole: true, - config: true, - createdAt: true, - dbname: true, - id: true, - isPublished: true, - name: true, - roleName: 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.platformApis - .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-delete-site-preview.ts b/sdk/constructive-cli/src/api/cli/commands/platform-delete-site-preview.ts new file mode 100644 index 0000000000..9973425c0b --- /dev/null +++ b/sdk/constructive-cli/src/api/cli/commands/platform-delete-site-preview.ts @@ -0,0 +1,53 @@ +/** + * CLI command for mutation platformDeleteSitePreview + * @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 { PlatformDeleteSitePreviewVariables } from '../../orm/mutation'; +import type { PlatformDeleteSitePreviewPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'platform-delete-site-preview - platformDeleteSitePreview\n\nUsage: platform-delete-site-preview [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 + .platformDeleteSitePreview( + parsedAnswers as unknown as PlatformDeleteSitePreviewVariables, + { + select: selectFields, + } as unknown as { + select: PlatformDeleteSitePreviewPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: platformDeleteSitePreview'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/api/cli/commands/platform-domain.ts b/sdk/constructive-cli/src/api/cli/commands/platform-domain.ts index 5b2e33cc5a..eb2036118c 100644 --- a/sdk/constructive-cli/src/api/cli/commands/platform-domain.ts +++ b/sdk/constructive-cli/src/api/cli/commands/platform-domain.ts @@ -18,6 +18,7 @@ import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { config: 'json', createdAt: 'string', + createdByPrincipal: 'uuid', hostname: 'string', id: 'uuid', isPublished: 'boolean', @@ -28,6 +29,7 @@ const fieldSchema: FieldSchema = { tlsSecretName: 'string', tlsStatus: 'string', updatedAt: 'string', + updatedByPrincipal: 'uuid', verificationStatus: 'string', verifiedAt: 'string', }; @@ -84,6 +86,7 @@ async function handleList(argv: Partial>, _prompter: Inq const defaultSelect = { config: true, createdAt: true, + createdByPrincipal: true, hostname: true, id: true, isPublished: true, @@ -94,6 +97,7 @@ async function handleList(argv: Partial>, _prompter: Inq tlsSecretName: true, tlsStatus: true, updatedAt: true, + updatedByPrincipal: true, verificationStatus: true, verifiedAt: true, }; @@ -118,6 +122,7 @@ async function handleFindFirst(argv: Partial>, _prompter const defaultSelect = { config: true, createdAt: true, + createdByPrincipal: true, hostname: true, id: true, isPublished: true, @@ -128,6 +133,7 @@ async function handleFindFirst(argv: Partial>, _prompter tlsSecretName: true, tlsStatus: true, updatedAt: true, + updatedByPrincipal: true, verificationStatus: true, verifiedAt: true, }; @@ -164,6 +170,7 @@ async function handleGet(argv: Partial>, prompter: Inqui select: { config: true, createdAt: true, + createdByPrincipal: true, hostname: true, id: true, isPublished: true, @@ -174,6 +181,7 @@ async function handleGet(argv: Partial>, prompter: Inqui tlsSecretName: true, tlsStatus: true, updatedAt: true, + updatedByPrincipal: true, verificationStatus: true, verifiedAt: true, }, @@ -198,6 +206,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'hostname', @@ -253,6 +268,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'verificationStatus', @@ -278,6 +300,7 @@ async function handleCreate(argv: Partial>, prompter: In .create({ data: { config: cleanedData.config, + createdByPrincipal: cleanedData.createdByPrincipal, hostname: cleanedData.hostname, isPublished: cleanedData.isPublished, isWildcard: cleanedData.isWildcard, @@ -286,12 +309,14 @@ async function handleCreate(argv: Partial>, prompter: In tlsReadyAt: cleanedData.tlsReadyAt, tlsSecretName: cleanedData.tlsSecretName, tlsStatus: cleanedData.tlsStatus, + updatedByPrincipal: cleanedData.updatedByPrincipal, verificationStatus: cleanedData.verificationStatus, verifiedAt: cleanedData.verifiedAt, }, select: { config: true, createdAt: true, + createdByPrincipal: true, hostname: true, id: true, isPublished: true, @@ -302,6 +327,7 @@ async function handleCreate(argv: Partial>, prompter: In tlsSecretName: true, tlsStatus: true, updatedAt: true, + updatedByPrincipal: true, verificationStatus: true, verifiedAt: true, }, @@ -332,6 +358,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'hostname', @@ -387,6 +420,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'verificationStatus', @@ -412,6 +452,7 @@ async function handleUpdate(argv: Partial>, prompter: In }, data: { config: cleanedData.config, + createdByPrincipal: cleanedData.createdByPrincipal, hostname: cleanedData.hostname, isPublished: cleanedData.isPublished, isWildcard: cleanedData.isWildcard, @@ -420,12 +461,14 @@ async function handleUpdate(argv: Partial>, prompter: In tlsReadyAt: cleanedData.tlsReadyAt, tlsSecretName: cleanedData.tlsSecretName, tlsStatus: cleanedData.tlsStatus, + updatedByPrincipal: cleanedData.updatedByPrincipal, verificationStatus: cleanedData.verificationStatus, verifiedAt: cleanedData.verifiedAt, }, select: { config: true, createdAt: true, + createdByPrincipal: true, hostname: true, id: true, isPublished: true, @@ -436,6 +479,7 @@ async function handleUpdate(argv: Partial>, prompter: In tlsSecretName: true, tlsStatus: true, updatedAt: true, + updatedByPrincipal: true, verificationStatus: true, verifiedAt: true, }, 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/cli/commands/platform-get-site-preview-commit.ts b/sdk/constructive-cli/src/api/cli/commands/platform-get-site-preview-commit.ts new file mode 100644 index 0000000000..5a72791d71 --- /dev/null +++ b/sdk/constructive-cli/src/api/cli/commands/platform-get-site-preview-commit.ts @@ -0,0 +1,45 @@ +/** + * CLI command for query platformGetSitePreviewCommit + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { CLIOptions, Inquirerer } from 'inquirerer'; +import { getClient } from '../executor'; +import type { PlatformGetSitePreviewCommitVariables } from '../../orm/query'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'platform-get-site-preview-commit - platformGetSitePreviewCommit\n\nUsage: platform-get-site-preview-commit [OPTIONS]\n' + ); + process.exit(0); + } + const answers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'targetName', + message: 'targetName', + }, + { + type: 'text', + name: 'targetSiteId', + message: 'targetSiteId', + }, + ]); + const client = getClient(); + const result = await client.query + .platformGetSitePreviewCommit(answers as unknown as PlatformGetSitePreviewCommitVariables) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: platformGetSitePreviewCommit'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/api/cli/commands/platform-get-site-previews-record.ts b/sdk/constructive-cli/src/api/cli/commands/platform-get-site-previews-record.ts new file mode 100644 index 0000000000..c3f9d9b6b0 --- /dev/null +++ b/sdk/constructive-cli/src/api/cli/commands/platform-get-site-previews-record.ts @@ -0,0 +1,158 @@ +/** + * CLI commands for PlatformGetSitePreviewsRecord + * @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 { + CreatePlatformGetSitePreviewsRecordInput, + PlatformGetSitePreviewsRecordPatch, + PlatformGetSitePreviewsRecordSelect, + PlatformGetSitePreviewsRecordFilter, + PlatformGetSitePreviewsRecordsOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + commitId: 'uuid', + name: 'string', +}; +const usage = + '\nplatform-get-site-previews-record \n\nCommands:\n list List platformGetSitePreviewsRecord records\n find-first Find first matching platformGetSitePreviewsRecord record\n create Create a new platformGetSitePreviewsRecord\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', 'create'], + }, + ]); + 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 'create': + return handleCreate(argv, prompter); + default: + console.log(usage); + process.exit(1); + } +} +async function handleList(argv: Partial>, _prompter: Inquirerer) { + try { + const defaultSelect = { + commitId: true, + name: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs< + PlatformGetSitePreviewsRecordSelect, + PlatformGetSitePreviewsRecordFilter, + PlatformGetSitePreviewsRecordsOrderBy + > & { + select: PlatformGetSitePreviewsRecordSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformGetSitePreviewsRecord.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 = { + commitId: true, + name: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs< + PlatformGetSitePreviewsRecordSelect, + PlatformGetSitePreviewsRecordFilter, + PlatformGetSitePreviewsRecordsOrderBy + > & { + select: PlatformGetSitePreviewsRecordSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformGetSitePreviewsRecord.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 handleCreate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'commitId', + message: 'commitId', + required: true, + }, + { + type: 'text', + name: 'name', + message: 'name', + required: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreatePlatformGetSitePreviewsRecordInput['platformGetSitePreviewsRecord']; + const client = getClient(); + const result = await client.platformGetSitePreviewsRecord + .create({ + data: { + commitId: cleanedData.commitId, + name: cleanedData.name, + }, + select: { + commitId: true, + name: 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); + } +} diff --git a/sdk/constructive-cli/src/api/cli/commands/platform-get-site-release-manifest.ts b/sdk/constructive-cli/src/api/cli/commands/platform-get-site-release-manifest.ts new file mode 100644 index 0000000000..c5f0b0a32f --- /dev/null +++ b/sdk/constructive-cli/src/api/cli/commands/platform-get-site-release-manifest.ts @@ -0,0 +1,45 @@ +/** + * CLI command for query platformGetSiteReleaseManifest + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { CLIOptions, Inquirerer } from 'inquirerer'; +import { getClient } from '../executor'; +import type { PlatformGetSiteReleaseManifestVariables } from '../../orm/query'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'platform-get-site-release-manifest - platformGetSiteReleaseManifest\n\nUsage: platform-get-site-release-manifest [OPTIONS]\n' + ); + process.exit(0); + } + const answers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'targetCommitId', + message: 'targetCommitId', + }, + { + type: 'text', + name: 'targetSiteId', + message: 'targetSiteId', + }, + ]); + const client = getClient(); + const result = await client.query + .platformGetSiteReleaseManifest(answers as unknown as PlatformGetSiteReleaseManifestVariables) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: platformGetSiteReleaseManifest'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/api/cli/commands/platform-managed-domain.ts b/sdk/constructive-cli/src/api/cli/commands/platform-managed-domain.ts index afd7d20101..07528518ae 100644 --- a/sdk/constructive-cli/src/api/cli/commands/platform-managed-domain.ts +++ b/sdk/constructive-cli/src/api/cli/commands/platform-managed-domain.ts @@ -20,12 +20,14 @@ const fieldSchema: FieldSchema = { annotations: 'json', certStatus: 'string', createdAt: 'string', + createdByPrincipal: 'uuid', domain: 'string', id: 'uuid', isWildcard: 'boolean', tlsReadyAt: 'string', tlsStatus: 'string', updatedAt: 'string', + updatedByPrincipal: 'uuid', verificationStatus: 'string', verifiedAt: 'string', }; @@ -84,12 +86,14 @@ async function handleList(argv: Partial>, _prompter: Inq annotations: true, certStatus: true, createdAt: true, + createdByPrincipal: true, domain: true, id: true, isWildcard: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, + updatedByPrincipal: true, verificationStatus: true, verifiedAt: true, }; @@ -120,12 +124,14 @@ async function handleFindFirst(argv: Partial>, _prompter annotations: true, certStatus: true, createdAt: true, + createdByPrincipal: true, domain: true, id: true, isWildcard: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, + updatedByPrincipal: true, verificationStatus: true, verifiedAt: true, }; @@ -168,12 +174,14 @@ async function handleGet(argv: Partial>, prompter: Inqui annotations: true, certStatus: true, createdAt: true, + createdByPrincipal: true, domain: true, id: true, isWildcard: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, + updatedByPrincipal: true, verificationStatus: true, verifiedAt: true, }, @@ -212,6 +220,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'domain', @@ -239,6 +254,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'verificationStatus', @@ -266,10 +288,12 @@ async function handleCreate(argv: Partial>, prompter: In allowPublicUsage: cleanedData.allowPublicUsage, annotations: cleanedData.annotations, certStatus: cleanedData.certStatus, + createdByPrincipal: cleanedData.createdByPrincipal, domain: cleanedData.domain, isWildcard: cleanedData.isWildcard, tlsReadyAt: cleanedData.tlsReadyAt, tlsStatus: cleanedData.tlsStatus, + updatedByPrincipal: cleanedData.updatedByPrincipal, verificationStatus: cleanedData.verificationStatus, verifiedAt: cleanedData.verifiedAt, }, @@ -278,12 +302,14 @@ async function handleCreate(argv: Partial>, prompter: In annotations: true, certStatus: true, createdAt: true, + createdByPrincipal: true, domain: true, id: true, isWildcard: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, + updatedByPrincipal: true, verificationStatus: true, verifiedAt: true, }, @@ -328,6 +354,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'domain', @@ -355,6 +388,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'verificationStatus', @@ -382,10 +422,12 @@ async function handleUpdate(argv: Partial>, prompter: In allowPublicUsage: cleanedData.allowPublicUsage, annotations: cleanedData.annotations, certStatus: cleanedData.certStatus, + createdByPrincipal: cleanedData.createdByPrincipal, domain: cleanedData.domain, isWildcard: cleanedData.isWildcard, tlsReadyAt: cleanedData.tlsReadyAt, tlsStatus: cleanedData.tlsStatus, + updatedByPrincipal: cleanedData.updatedByPrincipal, verificationStatus: cleanedData.verificationStatus, verifiedAt: cleanedData.verifiedAt, }, @@ -394,12 +436,14 @@ async function handleUpdate(argv: Partial>, prompter: In annotations: true, certStatus: true, createdAt: true, + createdByPrincipal: true, domain: true, id: true, isWildcard: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, + updatedByPrincipal: true, verificationStatus: true, verifiedAt: true, }, diff --git a/sdk/constructive-cli/src/api/cli/commands/platform-mint-site-preview-token.ts b/sdk/constructive-cli/src/api/cli/commands/platform-mint-site-preview-token.ts new file mode 100644 index 0000000000..e11632a589 --- /dev/null +++ b/sdk/constructive-cli/src/api/cli/commands/platform-mint-site-preview-token.ts @@ -0,0 +1,53 @@ +/** + * CLI command for mutation platformMintSitePreviewToken + * @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 { PlatformMintSitePreviewTokenVariables } from '../../orm/mutation'; +import type { PlatformMintSitePreviewTokenPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'platform-mint-site-preview-token - platformMintSitePreviewToken\n\nUsage: platform-mint-site-preview-token [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 + .platformMintSitePreviewToken( + parsedAnswers as unknown as PlatformMintSitePreviewTokenVariables, + { + select: selectFields, + } as unknown as { + select: PlatformMintSitePreviewTokenPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: platformMintSitePreviewToken'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/api/cli/commands/platform-page-published.ts b/sdk/constructive-cli/src/api/cli/commands/platform-page-published.ts new file mode 100644 index 0000000000..a24087a437 --- /dev/null +++ b/sdk/constructive-cli/src/api/cli/commands/platform-page-published.ts @@ -0,0 +1,45 @@ +/** + * CLI command for query platformPagePublished + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { CLIOptions, Inquirerer } from 'inquirerer'; +import { getClient } from '../executor'; +import type { PlatformPagePublishedVariables } from '../../orm/query'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'platform-page-published - platformPagePublished\n\nUsage: platform-page-published [OPTIONS]\n' + ); + process.exit(0); + } + const answers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'pageSlug', + message: 'pageSlug', + }, + { + type: 'text', + name: 'targetSiteId', + message: 'targetSiteId', + }, + ]); + const client = getClient(); + const result = await client.query + .platformPagePublished(answers as unknown as PlatformPagePublishedVariables) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: platformPagePublished'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/api/cli/commands/platform-page.ts b/sdk/constructive-cli/src/api/cli/commands/platform-page.ts index cbd81a1555..e342af4f64 100644 --- a/sdk/constructive-cli/src/api/cli/commands/platform-page.ts +++ b/sdk/constructive-cli/src/api/cli/commands/platform-page.ts @@ -20,6 +20,7 @@ const fieldSchema: FieldSchema = { content: 'json', createdAt: 'string', id: 'uuid', + seededFrom: 'json', siteId: 'uuid', slug: 'string', storeId: 'uuid', @@ -80,6 +81,7 @@ async function handleList(argv: Partial>, _prompter: Inq content: true, createdAt: true, id: true, + seededFrom: true, siteId: true, slug: true, storeId: true, @@ -108,6 +110,7 @@ async function handleFindFirst(argv: Partial>, _prompter content: true, createdAt: true, id: true, + seededFrom: true, siteId: true, slug: true, storeId: true, @@ -148,6 +151,7 @@ async function handleGet(argv: Partial>, prompter: Inqui content: true, createdAt: true, id: true, + seededFrom: true, siteId: true, slug: true, storeId: true, @@ -180,6 +184,13 @@ async function handleCreate(argv: Partial>, prompter: In message: 'content', required: true, }, + { + type: 'json', + name: 'seededFrom', + message: 'seededFrom', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'siteId', @@ -211,6 +222,7 @@ async function handleCreate(argv: Partial>, prompter: In data: { commitId: cleanedData.commitId, content: cleanedData.content, + seededFrom: cleanedData.seededFrom, siteId: cleanedData.siteId, slug: cleanedData.slug, storeId: cleanedData.storeId, @@ -220,6 +232,7 @@ async function handleCreate(argv: Partial>, prompter: In content: true, createdAt: true, id: true, + seededFrom: true, siteId: true, slug: true, storeId: true, @@ -258,6 +271,13 @@ async function handleUpdate(argv: Partial>, prompter: In message: 'content', required: false, }, + { + type: 'json', + name: 'seededFrom', + message: 'seededFrom', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'siteId', @@ -289,6 +309,7 @@ async function handleUpdate(argv: Partial>, prompter: In data: { commitId: cleanedData.commitId, content: cleanedData.content, + seededFrom: cleanedData.seededFrom, siteId: cleanedData.siteId, slug: cleanedData.slug, storeId: cleanedData.storeId, @@ -298,6 +319,7 @@ async function handleUpdate(argv: Partial>, prompter: In content: true, createdAt: true, id: true, + seededFrom: true, siteId: true, slug: true, storeId: true, diff --git a/sdk/constructive-cli/src/api/cli/commands/platform-pages-install-pages.ts b/sdk/constructive-cli/src/api/cli/commands/platform-pages-install-pages.ts new file mode 100644 index 0000000000..8151b43357 --- /dev/null +++ b/sdk/constructive-cli/src/api/cli/commands/platform-pages-install-pages.ts @@ -0,0 +1,53 @@ +/** + * CLI command for mutation platformPagesInstallPages + * @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 { PlatformPagesInstallPagesVariables } from '../../orm/mutation'; +import type { PlatformPagesInstallPagesPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'platform-pages-install-pages - platformPagesInstallPages\n\nUsage: platform-pages-install-pages [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 + .platformPagesInstallPages( + parsedAnswers as unknown as PlatformPagesInstallPagesVariables, + { + select: selectFields, + } as unknown as { + select: PlatformPagesInstallPagesPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: platformPagesInstallPages'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/api/cli/commands/platform-provision-site-preview.ts b/sdk/constructive-cli/src/api/cli/commands/platform-provision-site-preview.ts new file mode 100644 index 0000000000..176cf0600b --- /dev/null +++ b/sdk/constructive-cli/src/api/cli/commands/platform-provision-site-preview.ts @@ -0,0 +1,53 @@ +/** + * CLI command for mutation platformProvisionSitePreview + * @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 { PlatformProvisionSitePreviewVariables } from '../../orm/mutation'; +import type { PlatformProvisionSitePreviewPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'platform-provision-site-preview - platformProvisionSitePreview\n\nUsage: platform-provision-site-preview [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 + .platformProvisionSitePreview( + parsedAnswers as unknown as PlatformProvisionSitePreviewVariables, + { + select: selectFields, + } as unknown as { + select: PlatformProvisionSitePreviewPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: platformProvisionSitePreview'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/api/cli/commands/platform-set-site-preview.ts b/sdk/constructive-cli/src/api/cli/commands/platform-set-site-preview.ts new file mode 100644 index 0000000000..8732716f26 --- /dev/null +++ b/sdk/constructive-cli/src/api/cli/commands/platform-set-site-preview.ts @@ -0,0 +1,53 @@ +/** + * CLI command for mutation platformSetSitePreview + * @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 { PlatformSetSitePreviewVariables } from '../../orm/mutation'; +import type { PlatformSetSitePreviewPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'platform-set-site-preview - platformSetSitePreview\n\nUsage: platform-set-site-preview [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 + .platformSetSitePreview( + parsedAnswers as unknown as PlatformSetSitePreviewVariables, + { + select: selectFields, + } as unknown as { + select: PlatformSetSitePreviewPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: platformSetSitePreview'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/api/cli/commands/platform-site-app-link.ts b/sdk/constructive-cli/src/api/cli/commands/platform-site-app-link.ts index 2bd0556fa0..0cea1d4c2a 100644 --- a/sdk/constructive-cli/src/api/cli/commands/platform-site-app-link.ts +++ b/sdk/constructive-cli/src/api/cli/commands/platform-site-app-link.ts @@ -16,15 +16,11 @@ import type { } from '../../orm/input-types'; import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { - appIdentifier: 'string', + appStoreIdentityId: 'uuid', createdAt: 'string', id: 'uuid', pathComponents: 'string', - platform: 'string', - sha256CertFingerprints: 'string', siteId: 'uuid', - storeUrl: 'string', - teamId: 'string', updatedAt: 'string', webcredentials: 'boolean', }; @@ -79,15 +75,11 @@ async function handleTableSubcommand( async function handleList(argv: Partial>, _prompter: Inquirerer) { try { const defaultSelect = { - appIdentifier: true, + appStoreIdentityId: true, createdAt: true, id: true, pathComponents: true, - platform: true, - sha256CertFingerprints: true, siteId: true, - storeUrl: true, - teamId: true, updatedAt: true, webcredentials: true, }; @@ -114,15 +106,11 @@ async function handleList(argv: Partial>, _prompter: Inq async function handleFindFirst(argv: Partial>, _prompter: Inquirerer) { try { const defaultSelect = { - appIdentifier: true, + appStoreIdentityId: true, createdAt: true, id: true, pathComponents: true, - platform: true, - sha256CertFingerprints: true, siteId: true, - storeUrl: true, - teamId: true, updatedAt: true, webcredentials: true, }; @@ -161,15 +149,11 @@ async function handleGet(argv: Partial>, prompter: Inqui .findOne({ id: answers.id as string, select: { - appIdentifier: true, + appStoreIdentityId: true, createdAt: true, id: true, pathComponents: true, - platform: true, - sha256CertFingerprints: true, siteId: true, - storeUrl: true, - teamId: true, updatedAt: true, webcredentials: true, }, @@ -189,8 +173,8 @@ async function handleCreate(argv: Partial>, prompter: In const rawAnswers = await prompter.prompt(argv, [ { type: 'text', - name: 'appIdentifier', - message: 'appIdentifier', + name: 'appStoreIdentityId', + message: 'appStoreIdentityId', required: true, }, { @@ -200,39 +184,12 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'text', - name: 'platform', - message: 'platform', - required: true, - }, - { - type: 'text', - name: 'sha256CertFingerprints', - message: 'sha256CertFingerprints', - required: false, - skipPrompt: true, - }, { type: 'text', name: 'siteId', message: 'siteId', required: true, }, - { - type: 'text', - name: 'storeUrl', - message: 'storeUrl', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'teamId', - message: 'teamId', - required: false, - skipPrompt: true, - }, { type: 'boolean', name: 'webcredentials', @@ -250,25 +207,17 @@ async function handleCreate(argv: Partial>, prompter: In const result = await client.platformSiteAppLink .create({ data: { - appIdentifier: cleanedData.appIdentifier, + appStoreIdentityId: cleanedData.appStoreIdentityId, pathComponents: cleanedData.pathComponents, - platform: cleanedData.platform, - sha256CertFingerprints: cleanedData.sha256CertFingerprints, siteId: cleanedData.siteId, - storeUrl: cleanedData.storeUrl, - teamId: cleanedData.teamId, webcredentials: cleanedData.webcredentials, }, select: { - appIdentifier: true, + appStoreIdentityId: true, createdAt: true, id: true, pathComponents: true, - platform: true, - sha256CertFingerprints: true, siteId: true, - storeUrl: true, - teamId: true, updatedAt: true, webcredentials: true, }, @@ -294,8 +243,8 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'appIdentifier', - message: 'appIdentifier', + name: 'appStoreIdentityId', + message: 'appStoreIdentityId', required: false, }, { @@ -305,39 +254,12 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'text', - name: 'platform', - message: 'platform', - required: false, - }, - { - type: 'text', - name: 'sha256CertFingerprints', - message: 'sha256CertFingerprints', - required: false, - skipPrompt: true, - }, { type: 'text', name: 'siteId', message: 'siteId', required: false, }, - { - type: 'text', - name: 'storeUrl', - message: 'storeUrl', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'teamId', - message: 'teamId', - required: false, - skipPrompt: true, - }, { type: 'boolean', name: 'webcredentials', @@ -355,25 +277,17 @@ async function handleUpdate(argv: Partial>, prompter: In id: answers.id as string, }, data: { - appIdentifier: cleanedData.appIdentifier, + appStoreIdentityId: cleanedData.appStoreIdentityId, pathComponents: cleanedData.pathComponents, - platform: cleanedData.platform, - sha256CertFingerprints: cleanedData.sha256CertFingerprints, siteId: cleanedData.siteId, - storeUrl: cleanedData.storeUrl, - teamId: cleanedData.teamId, webcredentials: cleanedData.webcredentials, }, select: { - appIdentifier: true, + appStoreIdentityId: true, createdAt: true, id: true, pathComponents: true, - platform: true, - sha256CertFingerprints: true, siteId: true, - storeUrl: true, - teamId: true, updatedAt: true, webcredentials: true, }, diff --git a/sdk/constructive-cli/src/api/cli/commands/platform-site-deep-link.ts b/sdk/constructive-cli/src/api/cli/commands/platform-site-deep-link.ts index 51dc4207e4..a18e9e10c8 100644 --- a/sdk/constructive-cli/src/api/cli/commands/platform-site-deep-link.ts +++ b/sdk/constructive-cli/src/api/cli/commands/platform-site-deep-link.ts @@ -21,6 +21,7 @@ const fieldSchema: FieldSchema = { fallbackUrl: 'string', id: 'uuid', metadata: 'json', + pageId: 'uuid', siteId: 'uuid', slug: 'string', updatedAt: 'string', @@ -82,6 +83,7 @@ async function handleList(argv: Partial>, _prompter: Inq fallbackUrl: true, id: true, metadata: true, + pageId: true, siteId: true, slug: true, updatedAt: true, @@ -115,6 +117,7 @@ async function handleFindFirst(argv: Partial>, _prompter fallbackUrl: true, id: true, metadata: true, + pageId: true, siteId: true, slug: true, updatedAt: true, @@ -160,6 +163,7 @@ async function handleGet(argv: Partial>, prompter: Inqui fallbackUrl: true, id: true, metadata: true, + pageId: true, siteId: true, slug: true, updatedAt: true, @@ -199,6 +203,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'pageId', + message: 'pageId', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'siteId', @@ -231,6 +242,7 @@ async function handleCreate(argv: Partial>, prompter: In appPath: cleanedData.appPath, fallbackUrl: cleanedData.fallbackUrl, metadata: cleanedData.metadata, + pageId: cleanedData.pageId, siteId: cleanedData.siteId, slug: cleanedData.slug, webPath: cleanedData.webPath, @@ -241,6 +253,7 @@ async function handleCreate(argv: Partial>, prompter: In fallbackUrl: true, id: true, metadata: true, + pageId: true, siteId: true, slug: true, updatedAt: true, @@ -286,6 +299,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'pageId', + message: 'pageId', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'siteId', @@ -318,6 +338,7 @@ async function handleUpdate(argv: Partial>, prompter: In appPath: cleanedData.appPath, fallbackUrl: cleanedData.fallbackUrl, metadata: cleanedData.metadata, + pageId: cleanedData.pageId, siteId: cleanedData.siteId, slug: cleanedData.slug, webPath: cleanedData.webPath, @@ -328,6 +349,7 @@ async function handleUpdate(argv: Partial>, prompter: In fallbackUrl: true, id: true, metadata: true, + pageId: true, siteId: true, slug: true, updatedAt: true, diff --git a/sdk/constructive-cli/src/api/cli/commands/platform-site-metadata-install-robots.ts b/sdk/constructive-cli/src/api/cli/commands/platform-site-metadata-install-robots.ts new file mode 100644 index 0000000000..86cbb71da7 --- /dev/null +++ b/sdk/constructive-cli/src/api/cli/commands/platform-site-metadata-install-robots.ts @@ -0,0 +1,53 @@ +/** + * CLI command for mutation platformSiteMetadataInstallRobots + * @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 { PlatformSiteMetadataInstallRobotsVariables } from '../../orm/mutation'; +import type { PlatformSiteMetadataInstallRobotsPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'platform-site-metadata-install-robots - platformSiteMetadataInstallRobots\n\nUsage: platform-site-metadata-install-robots [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 + .platformSiteMetadataInstallRobots( + parsedAnswers as unknown as PlatformSiteMetadataInstallRobotsVariables, + { + select: selectFields, + } as unknown as { + select: PlatformSiteMetadataInstallRobotsPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: platformSiteMetadataInstallRobots'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/api/cli/commands/platform-site-metadatum.ts b/sdk/constructive-cli/src/api/cli/commands/platform-site-metadatum.ts index 969120806d..3d498d4aa9 100644 --- a/sdk/constructive-cli/src/api/cli/commands/platform-site-metadatum.ts +++ b/sdk/constructive-cli/src/api/cli/commands/platform-site-metadatum.ts @@ -26,6 +26,7 @@ const fieldSchema: FieldSchema = { logo: 'string', ogImage: 'string', robots: 'string', + robotsSeededFrom: 'json', siteId: 'uuid', storeId: 'uuid', title: 'string', @@ -92,6 +93,7 @@ async function handleList(argv: Partial>, _prompter: Inq logo: true, ogImage: true, robots: true, + robotsSeededFrom: true, siteId: true, storeId: true, title: true, @@ -130,6 +132,7 @@ async function handleFindFirst(argv: Partial>, _prompter logo: true, ogImage: true, robots: true, + robotsSeededFrom: true, siteId: true, storeId: true, title: true, @@ -180,6 +183,7 @@ async function handleGet(argv: Partial>, prompter: Inqui logo: true, ogImage: true, robots: true, + robotsSeededFrom: true, siteId: true, storeId: true, title: true, @@ -255,6 +259,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'json', + name: 'robotsSeededFrom', + message: 'robotsSeededFrom', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'siteId', @@ -293,6 +304,7 @@ async function handleCreate(argv: Partial>, prompter: In logo: cleanedData.logo, ogImage: cleanedData.ogImage, robots: cleanedData.robots, + robotsSeededFrom: cleanedData.robotsSeededFrom, siteId: cleanedData.siteId, storeId: cleanedData.storeId, title: cleanedData.title, @@ -308,6 +320,7 @@ async function handleCreate(argv: Partial>, prompter: In logo: true, ogImage: true, robots: true, + robotsSeededFrom: true, siteId: true, storeId: true, title: true, @@ -389,6 +402,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'json', + name: 'robotsSeededFrom', + message: 'robotsSeededFrom', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'siteId', @@ -427,6 +447,7 @@ async function handleUpdate(argv: Partial>, prompter: In logo: cleanedData.logo, ogImage: cleanedData.ogImage, robots: cleanedData.robots, + robotsSeededFrom: cleanedData.robotsSeededFrom, siteId: cleanedData.siteId, storeId: cleanedData.storeId, title: cleanedData.title, @@ -442,6 +463,7 @@ async function handleUpdate(argv: Partial>, prompter: In logo: true, ogImage: true, robots: true, + robotsSeededFrom: true, siteId: true, storeId: true, title: true, diff --git a/sdk/constructive-cli/src/api/cli/commands/platform-site-release.ts b/sdk/constructive-cli/src/api/cli/commands/platform-site-release.ts new file mode 100644 index 0000000000..de947056e3 --- /dev/null +++ b/sdk/constructive-cli/src/api/cli/commands/platform-site-release.ts @@ -0,0 +1,335 @@ +/** + * CLI commands for PlatformSiteRelease + * @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 { + CreatePlatformSiteReleaseInput, + PlatformSiteReleasePatch, + PlatformSiteReleaseSelect, + PlatformSiteReleaseFilter, + PlatformSiteReleaseOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + commitId: 'uuid', + createdAt: 'string', + id: 'uuid', + manifest: 'json', + siteId: 'uuid', + storeId: 'uuid', + updatedAt: 'string', +}; +const usage = + '\nplatform-site-release \n\nCommands:\n list List platformSiteRelease records\n find-first Find first matching platformSiteRelease record\n get Get a platformSiteRelease by ID\n create Create a new platformSiteRelease\n update Update an existing platformSiteRelease\n delete Delete a platformSiteRelease\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 = { + commitId: true, + createdAt: true, + id: true, + manifest: true, + siteId: true, + storeId: true, + updatedAt: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs< + PlatformSiteReleaseSelect, + PlatformSiteReleaseFilter, + PlatformSiteReleaseOrderBy + > & { + select: PlatformSiteReleaseSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformSiteRelease.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 = { + commitId: true, + createdAt: true, + id: true, + manifest: true, + siteId: true, + storeId: true, + updatedAt: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs< + PlatformSiteReleaseSelect, + PlatformSiteReleaseFilter, + PlatformSiteReleaseOrderBy + > & { + select: PlatformSiteReleaseSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformSiteRelease.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.platformSiteRelease + .findOne({ + id: answers.id as string, + select: { + commitId: true, + createdAt: true, + id: true, + manifest: true, + siteId: true, + storeId: 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: 'commitId', + message: 'commitId', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'manifest', + message: 'manifest', + required: true, + }, + { + type: 'text', + name: 'siteId', + message: 'siteId', + required: true, + }, + { + type: 'text', + name: 'storeId', + message: 'storeId', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreatePlatformSiteReleaseInput['platformSiteRelease']; + const client = getClient(); + const result = await client.platformSiteRelease + .create({ + data: { + commitId: cleanedData.commitId, + manifest: cleanedData.manifest, + siteId: cleanedData.siteId, + storeId: cleanedData.storeId, + }, + select: { + commitId: true, + createdAt: true, + id: true, + manifest: true, + siteId: true, + storeId: 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: 'commitId', + message: 'commitId', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'manifest', + message: 'manifest', + required: false, + }, + { + type: 'text', + name: 'siteId', + message: 'siteId', + required: false, + }, + { + type: 'text', + name: 'storeId', + message: 'storeId', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as PlatformSiteReleasePatch; + const client = getClient(); + const result = await client.platformSiteRelease + .update({ + where: { + id: answers.id as string, + }, + data: { + commitId: cleanedData.commitId, + manifest: cleanedData.manifest, + siteId: cleanedData.siteId, + storeId: cleanedData.storeId, + }, + select: { + commitId: true, + createdAt: true, + id: true, + manifest: true, + siteId: true, + storeId: 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.platformSiteRelease + .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-site.ts b/sdk/constructive-cli/src/api/cli/commands/platform-site.ts index 85d1fbc5c1..9036f17e74 100644 --- a/sdk/constructive-cli/src/api/cli/commands/platform-site.ts +++ b/sdk/constructive-cli/src/api/cli/commands/platform-site.ts @@ -19,6 +19,7 @@ const fieldSchema: FieldSchema = { activeCommitId: 'uuid', bucketId: 'uuid', createdAt: 'string', + createdByPrincipal: 'uuid', description: 'string', id: 'uuid', installationId: 'uuid', @@ -28,6 +29,7 @@ const fieldSchema: FieldSchema = { resourceId: 'uuid', title: 'string', updatedAt: 'string', + updatedByPrincipal: 'uuid', }; const usage = '\nplatform-site \n\nCommands:\n list List platformSite records\n find-first Find first matching platformSite record\n get Get a platformSite by ID\n create Create a new platformSite\n update Update an existing platformSite\n delete Delete a platformSite\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'; @@ -83,6 +85,7 @@ async function handleList(argv: Partial>, _prompter: Inq activeCommitId: true, bucketId: true, createdAt: true, + createdByPrincipal: true, description: true, id: true, installationId: true, @@ -92,6 +95,7 @@ async function handleList(argv: Partial>, _prompter: Inq resourceId: true, title: true, updatedAt: true, + updatedByPrincipal: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs & { @@ -115,6 +119,7 @@ async function handleFindFirst(argv: Partial>, _prompter activeCommitId: true, bucketId: true, createdAt: true, + createdByPrincipal: true, description: true, id: true, installationId: true, @@ -124,6 +129,7 @@ async function handleFindFirst(argv: Partial>, _prompter resourceId: true, title: true, updatedAt: true, + updatedByPrincipal: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs & { @@ -159,6 +165,7 @@ async function handleGet(argv: Partial>, prompter: Inqui activeCommitId: true, bucketId: true, createdAt: true, + createdByPrincipal: true, description: true, id: true, installationId: true, @@ -168,6 +175,7 @@ async function handleGet(argv: Partial>, prompter: Inqui resourceId: true, title: true, updatedAt: true, + updatedByPrincipal: true, }, }) .execute(); @@ -197,6 +205,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'description', @@ -245,6 +260,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined( @@ -257,6 +279,7 @@ async function handleCreate(argv: Partial>, prompter: In data: { activeCommitId: cleanedData.activeCommitId, bucketId: cleanedData.bucketId, + createdByPrincipal: cleanedData.createdByPrincipal, description: cleanedData.description, installationId: cleanedData.installationId, installationMemberSlug: cleanedData.installationMemberSlug, @@ -264,11 +287,13 @@ async function handleCreate(argv: Partial>, prompter: In name: cleanedData.name, resourceId: cleanedData.resourceId, title: cleanedData.title, + updatedByPrincipal: cleanedData.updatedByPrincipal, }, select: { activeCommitId: true, bucketId: true, createdAt: true, + createdByPrincipal: true, description: true, id: true, installationId: true, @@ -278,6 +303,7 @@ async function handleCreate(argv: Partial>, prompter: In resourceId: true, title: true, updatedAt: true, + updatedByPrincipal: true, }, }) .execute(); @@ -313,6 +339,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'description', @@ -361,6 +394,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as PlatformSitePatch; @@ -373,6 +413,7 @@ async function handleUpdate(argv: Partial>, prompter: In data: { activeCommitId: cleanedData.activeCommitId, bucketId: cleanedData.bucketId, + createdByPrincipal: cleanedData.createdByPrincipal, description: cleanedData.description, installationId: cleanedData.installationId, installationMemberSlug: cleanedData.installationMemberSlug, @@ -380,11 +421,13 @@ async function handleUpdate(argv: Partial>, prompter: In name: cleanedData.name, resourceId: cleanedData.resourceId, title: cleanedData.title, + updatedByPrincipal: cleanedData.updatedByPrincipal, }, select: { activeCommitId: true, bucketId: true, createdAt: true, + createdByPrincipal: true, description: true, id: true, installationId: true, @@ -394,6 +437,7 @@ async function handleUpdate(argv: Partial>, prompter: In resourceId: true, title: true, updatedAt: true, + updatedByPrincipal: true, }, }) .execute(); diff --git a/sdk/constructive-cli/src/api/cli/commands/platform-sites-deep-link-url.ts b/sdk/constructive-cli/src/api/cli/commands/platform-sites-deep-link-url.ts new file mode 100644 index 0000000000..4d5e584928 --- /dev/null +++ b/sdk/constructive-cli/src/api/cli/commands/platform-sites-deep-link-url.ts @@ -0,0 +1,45 @@ +/** + * CLI command for query platformSitesDeepLinkUrl + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { CLIOptions, Inquirerer } from 'inquirerer'; +import { getClient } from '../executor'; +import type { PlatformSitesDeepLinkUrlVariables } from '../../orm/query'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'platform-sites-deep-link-url - platformSitesDeepLinkUrl\n\nUsage: platform-sites-deep-link-url [OPTIONS]\n' + ); + process.exit(0); + } + const answers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'linkSlug', + message: 'linkSlug', + }, + { + type: 'text', + name: 'targetSiteId', + message: 'targetSiteId', + }, + ]); + const client = getClient(); + const result = await client.query + .platformSitesDeepLinkUrl(answers as unknown as PlatformSitesDeepLinkUrlVariables) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: platformSitesDeepLinkUrl'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/api/cli/commands/platform-sites-install-content-preset.ts b/sdk/constructive-cli/src/api/cli/commands/platform-sites-install-content-preset.ts new file mode 100644 index 0000000000..40a6f54827 --- /dev/null +++ b/sdk/constructive-cli/src/api/cli/commands/platform-sites-install-content-preset.ts @@ -0,0 +1,53 @@ +/** + * CLI command for mutation platformSitesInstallContentPreset + * @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 { PlatformSitesInstallContentPresetVariables } from '../../orm/mutation'; +import type { PlatformSitesInstallContentPresetPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'platform-sites-install-content-preset - platformSitesInstallContentPreset\n\nUsage: platform-sites-install-content-preset [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 + .platformSitesInstallContentPreset( + parsedAnswers as unknown as PlatformSitesInstallContentPresetVariables, + { + select: selectFields, + } as unknown as { + select: PlatformSitesInstallContentPresetPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: platformSitesInstallContentPreset'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/api/cli/commands/platform-sites-install-mantra.ts b/sdk/constructive-cli/src/api/cli/commands/platform-sites-install-mantra.ts new file mode 100644 index 0000000000..e41417e97d --- /dev/null +++ b/sdk/constructive-cli/src/api/cli/commands/platform-sites-install-mantra.ts @@ -0,0 +1,53 @@ +/** + * CLI command for mutation platformSitesInstallMantra + * @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 { PlatformSitesInstallMantraVariables } from '../../orm/mutation'; +import type { PlatformSitesInstallMantraPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'platform-sites-install-mantra - platformSitesInstallMantra\n\nUsage: platform-sites-install-mantra [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 + .platformSitesInstallMantra( + parsedAnswers as unknown as PlatformSitesInstallMantraVariables, + { + select: selectFields, + } as unknown as { + select: PlatformSitesInstallMantraPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: platformSitesInstallMantra'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/api/cli/commands/platform-sites-site-origin.ts b/sdk/constructive-cli/src/api/cli/commands/platform-sites-site-origin.ts new file mode 100644 index 0000000000..50e045cd53 --- /dev/null +++ b/sdk/constructive-cli/src/api/cli/commands/platform-sites-site-origin.ts @@ -0,0 +1,40 @@ +/** + * CLI command for query platformSitesSiteOrigin + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { CLIOptions, Inquirerer } from 'inquirerer'; +import { getClient } from '../executor'; +import type { PlatformSitesSiteOriginVariables } from '../../orm/query'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'platform-sites-site-origin - platformSitesSiteOrigin\n\nUsage: platform-sites-site-origin [OPTIONS]\n' + ); + process.exit(0); + } + const answers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'targetSiteId', + message: 'targetSiteId', + }, + ]); + const client = getClient(); + const result = await client.query + .platformSitesSiteOrigin(answers as unknown as PlatformSitesSiteOriginVariables) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: platformSitesSiteOrigin'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/api/cli/commands/platform-verify-site-preview-token.ts b/sdk/constructive-cli/src/api/cli/commands/platform-verify-site-preview-token.ts new file mode 100644 index 0000000000..b5dc2c4ff3 --- /dev/null +++ b/sdk/constructive-cli/src/api/cli/commands/platform-verify-site-preview-token.ts @@ -0,0 +1,45 @@ +/** + * CLI command for query platformVerifySitePreviewToken + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { CLIOptions, Inquirerer } from 'inquirerer'; +import { getClient } from '../executor'; +import type { PlatformVerifySitePreviewTokenVariables } from '../../orm/query'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'platform-verify-site-preview-token - platformVerifySitePreviewToken\n\nUsage: platform-verify-site-preview-token [OPTIONS]\n' + ); + process.exit(0); + } + const answers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'siteId', + message: 'siteId', + }, + { + type: 'text', + name: 'token', + message: 'token', + }, + ]); + const client = getClient(); + const result = await client.query + .platformVerifySitePreviewToken(answers as unknown as PlatformVerifySitePreviewTokenVariables) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: platformVerifySitePreviewToken'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/api/cli/commands/policy.ts b/sdk/constructive-cli/src/api/cli/commands/policy.ts index 45086a11c8..4c5bf6e5bb 100644 --- a/sdk/constructive-cli/src/api/cli/commands/policy.ts +++ b/sdk/constructive-cli/src/api/cli/commands/policy.ts @@ -17,6 +17,7 @@ import type { import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { category: 'string', + columnRefs: 'string', createdAt: 'string', data: 'json', databaseId: 'uuid', @@ -87,6 +88,7 @@ async function handleList(argv: Partial>, _prompter: Inq try { const defaultSelect = { category: true, + columnRefs: true, createdAt: true, data: true, databaseId: true, @@ -125,6 +127,7 @@ async function handleFindFirst(argv: Partial>, _prompter try { const defaultSelect = { category: true, + columnRefs: true, createdAt: true, data: true, databaseId: true, @@ -175,6 +178,7 @@ async function handleGet(argv: Partial>, prompter: Inqui id: answers.id as string, select: { category: true, + columnRefs: true, createdAt: true, data: true, databaseId: true, @@ -214,6 +218,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'columnRefs', + message: 'columnRefs', + required: false, + skipPrompt: true, + }, { type: 'json', name: 'data', @@ -319,6 +330,7 @@ async function handleCreate(argv: Partial>, prompter: In .create({ data: { category: cleanedData.category, + columnRefs: cleanedData.columnRefs, data: cleanedData.data, databaseId: cleanedData.databaseId, derivedFromPolicyId: cleanedData.derivedFromPolicyId, @@ -336,6 +348,7 @@ async function handleCreate(argv: Partial>, prompter: In }, select: { category: true, + columnRefs: true, createdAt: true, data: true, databaseId: true, @@ -381,6 +394,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'columnRefs', + message: 'columnRefs', + required: false, + skipPrompt: true, + }, { type: 'json', name: 'data', @@ -489,6 +509,7 @@ async function handleUpdate(argv: Partial>, prompter: In }, data: { category: cleanedData.category, + columnRefs: cleanedData.columnRefs, data: cleanedData.data, databaseId: cleanedData.databaseId, derivedFromPolicyId: cleanedData.derivedFromPolicyId, @@ -506,6 +527,7 @@ async function handleUpdate(argv: Partial>, prompter: In }, select: { category: true, + columnRefs: true, createdAt: true, data: true, databaseId: true, diff --git a/sdk/constructive-cli/src/api/cli/commands/provision-bucket.ts b/sdk/constructive-cli/src/api/cli/commands/provision-bucket.ts index ecd2e539d5..0c54313d78 100644 --- a/sdk/constructive-cli/src/api/cli/commands/provision-bucket.ts +++ b/sdk/constructive-cli/src/api/cli/commands/provision-bucket.ts @@ -16,7 +16,7 @@ export default async ( try { if (argv.help || argv.h) { console.log( - '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\nUsage: provision-bucket [OPTIONS]\n' + 'provision-bucket - Reconcile an S3 bucket for a logical bucket in the database.\nReads the bucket config via RLS, then enqueues the same\nstorage:provision_bucket job used by the INSERT trigger. This is\nidempotent for an already-reconciled bucket; enqueue failures become\nGraphQL errors.\n\nUsage: provision-bucket [OPTIONS]\n' ); process.exit(0); } diff --git a/sdk/constructive-cli/src/api/cli/commands/provision-site-preview.ts b/sdk/constructive-cli/src/api/cli/commands/provision-site-preview.ts new file mode 100644 index 0000000000..cb5f321927 --- /dev/null +++ b/sdk/constructive-cli/src/api/cli/commands/provision-site-preview.ts @@ -0,0 +1,53 @@ +/** + * CLI command for mutation provisionSitePreview + * @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 { ProvisionSitePreviewVariables } from '../../orm/mutation'; +import type { ProvisionSitePreviewPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'provision-site-preview - provisionSitePreview\n\nUsage: provision-site-preview [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 + .provisionSitePreview( + parsedAnswers as unknown as ProvisionSitePreviewVariables, + { + select: selectFields, + } as unknown as { + select: ProvisionSitePreviewPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: provisionSitePreview'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/api/cli/commands/redirect.ts b/sdk/constructive-cli/src/api/cli/commands/redirect.ts new file mode 100644 index 0000000000..425e8f2fd0 --- /dev/null +++ b/sdk/constructive-cli/src/api/cli/commands/redirect.ts @@ -0,0 +1,388 @@ +/** + * CLI commands for Redirect + * @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 { + CreateRedirectInput, + RedirectPatch, + RedirectSelect, + RedirectFilter, + RedirectOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + createdAt: 'string', + databaseId: 'uuid', + id: 'uuid', + name: 'string', + preservePath: 'boolean', + preserveQuery: 'boolean', + statusCode: 'int', + toHost: 'string', + toPath: 'string', + updatedAt: 'string', +}; +const usage = + '\nredirect \n\nCommands:\n list List redirect records\n find-first Find first matching redirect record\n get Get a redirect by ID\n create Create a new redirect\n update Update an existing redirect\n delete Delete a redirect\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, + id: true, + name: true, + preservePath: true, + preserveQuery: true, + statusCode: true, + toHost: true, + toPath: true, + updatedAt: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: RedirectSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.redirect.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, + id: true, + name: true, + preservePath: true, + preserveQuery: true, + statusCode: true, + toHost: true, + toPath: true, + updatedAt: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: RedirectSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.redirect.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.redirect + .findOne({ + id: answers.id as string, + select: { + createdAt: true, + databaseId: true, + id: true, + name: true, + preservePath: true, + preserveQuery: true, + statusCode: true, + toHost: true, + toPath: 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: 'name', + message: 'name', + required: true, + }, + { + type: 'boolean', + name: 'preservePath', + message: 'preservePath', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'preserveQuery', + message: 'preserveQuery', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'statusCode', + message: 'statusCode', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'toHost', + message: 'toHost', + required: true, + }, + { + type: 'text', + name: 'toPath', + message: 'toPath', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as CreateRedirectInput['redirect']; + const client = getClient(); + const result = await client.redirect + .create({ + data: { + databaseId: cleanedData.databaseId, + name: cleanedData.name, + preservePath: cleanedData.preservePath, + preserveQuery: cleanedData.preserveQuery, + statusCode: cleanedData.statusCode, + toHost: cleanedData.toHost, + toPath: cleanedData.toPath, + }, + select: { + createdAt: true, + databaseId: true, + id: true, + name: true, + preservePath: true, + preserveQuery: true, + statusCode: true, + toHost: true, + toPath: 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: 'name', + message: 'name', + required: false, + }, + { + type: 'boolean', + name: 'preservePath', + message: 'preservePath', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'preserveQuery', + message: 'preserveQuery', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'statusCode', + message: 'statusCode', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'toHost', + message: 'toHost', + required: false, + }, + { + type: 'text', + name: 'toPath', + message: 'toPath', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as RedirectPatch; + const client = getClient(); + const result = await client.redirect + .update({ + where: { + id: answers.id as string, + }, + data: { + databaseId: cleanedData.databaseId, + name: cleanedData.name, + preservePath: cleanedData.preservePath, + preserveQuery: cleanedData.preserveQuery, + statusCode: cleanedData.statusCode, + toHost: cleanedData.toHost, + toPath: cleanedData.toPath, + }, + select: { + createdAt: true, + databaseId: true, + id: true, + name: true, + preservePath: true, + preserveQuery: true, + statusCode: true, + toHost: true, + toPath: 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.redirect + .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/request-database.ts b/sdk/constructive-cli/src/api/cli/commands/request-database.ts index 00e2f1489b..0ffe879eb7 100644 --- a/sdk/constructive-cli/src/api/cli/commands/request-database.ts +++ b/sdk/constructive-cli/src/api/cli/commands/request-database.ts @@ -16,7 +16,7 @@ export default async ( try { if (argv.help || argv.h) { console.log( - "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\nUsage: request-database [OPTIONS]\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. Pass organization_id to have the organization own the database from the start (the caller must be an owner of that organization); the requesting user is still the identity bootstrapped into the new database. Omit it for a personal database. 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 SELECT * FROM metaschema_public.request_database('team_app', 'example.com', preset_slug := 'full', organization_id := '00000000-0000-0000-0000-000000000000'::uuid);\n\nUsage: request-database [OPTIONS]\n" ); process.exit(0); } diff --git a/sdk/constructive-cli/src/api/cli/commands/resolve-http-route.ts b/sdk/constructive-cli/src/api/cli/commands/resolve-http-route.ts deleted file mode 100644 index 3ca1265841..0000000000 --- a/sdk/constructive-cli/src/api/cli/commands/resolve-http-route.ts +++ /dev/null @@ -1,58 +0,0 @@ -/** - * CLI command for query resolveHttpRoute - * @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 { ResolveHttpRouteVariables } from '../../orm/query'; -import type { ResolveHttpRouteRecordSelect } from '../../orm/input-types'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - try { - if (argv.help || argv.h) { - console.log('resolve-http-route - resolveHttpRoute\n\nUsage: resolve-http-route [OPTIONS]\n'); - process.exit(0); - } - const answers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'requestHost', - message: 'requestHost', - }, - { - type: 'text', - name: 'requestMethod', - message: 'requestMethod', - }, - { - type: 'text', - name: 'requestPath', - message: 'requestPath', - }, - ]); - const client = getClient(); - const selectFields = buildSelectFromPaths((argv.select as string) ?? ''); - const result = await client.query - .resolveHttpRoute( - answers as unknown as ResolveHttpRouteVariables, - { - select: selectFields, - } as unknown as { - select: ResolveHttpRouteRecordSelect; - } - ) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed: resolveHttpRoute'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -}; diff --git a/sdk/constructive-cli/src/api/cli/commands/route-binding.ts b/sdk/constructive-cli/src/api/cli/commands/route-binding.ts index cf55b26c01..bb62d9067b 100644 --- a/sdk/constructive-cli/src/api/cli/commands/route-binding.ts +++ b/sdk/constructive-cli/src/api/cli/commands/route-binding.ts @@ -22,9 +22,11 @@ const fieldSchema: FieldSchema = { method: 'string', path: 'string', priority: 'int', + servingSiteId: 'uuid', targetApiId: 'uuid', targetBucketId: 'uuid', targetFunctionId: 'uuid', + targetRedirectId: 'uuid', targetServiceId: 'uuid', targetSiteId: 'uuid', updatedAt: 'string', @@ -86,9 +88,11 @@ async function handleList(argv: Partial>, _prompter: Inq method: true, path: true, priority: true, + servingSiteId: true, targetApiId: true, targetBucketId: true, targetFunctionId: true, + targetRedirectId: true, targetServiceId: true, targetSiteId: true, updatedAt: true, @@ -118,9 +122,11 @@ async function handleFindFirst(argv: Partial>, _prompter method: true, path: true, priority: true, + servingSiteId: true, targetApiId: true, targetBucketId: true, targetFunctionId: true, + targetRedirectId: true, targetServiceId: true, targetSiteId: true, updatedAt: true, @@ -162,9 +168,11 @@ async function handleGet(argv: Partial>, prompter: Inqui method: true, path: true, priority: true, + servingSiteId: true, targetApiId: true, targetBucketId: true, targetFunctionId: true, + targetRedirectId: true, targetServiceId: true, targetSiteId: true, updatedAt: true, @@ -216,6 +224,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'servingSiteId', + message: 'servingSiteId', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'targetApiId', @@ -237,6 +252,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'targetRedirectId', + message: 'targetRedirectId', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'targetServiceId', @@ -266,9 +288,11 @@ async function handleCreate(argv: Partial>, prompter: In method: cleanedData.method, path: cleanedData.path, priority: cleanedData.priority, + servingSiteId: cleanedData.servingSiteId, targetApiId: cleanedData.targetApiId, targetBucketId: cleanedData.targetBucketId, targetFunctionId: cleanedData.targetFunctionId, + targetRedirectId: cleanedData.targetRedirectId, targetServiceId: cleanedData.targetServiceId, targetSiteId: cleanedData.targetSiteId, }, @@ -279,9 +303,11 @@ async function handleCreate(argv: Partial>, prompter: In method: true, path: true, priority: true, + servingSiteId: true, targetApiId: true, targetBucketId: true, targetFunctionId: true, + targetRedirectId: true, targetServiceId: true, targetSiteId: true, updatedAt: true, @@ -339,6 +365,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'servingSiteId', + message: 'servingSiteId', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'targetApiId', @@ -360,6 +393,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'targetRedirectId', + message: 'targetRedirectId', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'targetServiceId', @@ -389,9 +429,11 @@ async function handleUpdate(argv: Partial>, prompter: In method: cleanedData.method, path: cleanedData.path, priority: cleanedData.priority, + servingSiteId: cleanedData.servingSiteId, targetApiId: cleanedData.targetApiId, targetBucketId: cleanedData.targetBucketId, targetFunctionId: cleanedData.targetFunctionId, + targetRedirectId: cleanedData.targetRedirectId, targetServiceId: cleanedData.targetServiceId, targetSiteId: cleanedData.targetSiteId, }, @@ -402,9 +444,11 @@ async function handleUpdate(argv: Partial>, prompter: In method: true, path: true, priority: true, + servingSiteId: true, targetApiId: true, targetBucketId: true, targetFunctionId: true, + targetRedirectId: true, targetServiceId: true, targetSiteId: true, updatedAt: true, diff --git a/sdk/constructive-cli/src/api/cli/commands/route.ts b/sdk/constructive-cli/src/api/cli/commands/route.ts index 4f1db98aa4..d9f4baca0b 100644 --- a/sdk/constructive-cli/src/api/cli/commands/route.ts +++ b/sdk/constructive-cli/src/api/cli/commands/route.ts @@ -16,6 +16,7 @@ import type { } from '../../orm/input-types'; import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { + anonymous: 'boolean', config: 'json', createdAt: 'string', databaseId: 'uuid', @@ -24,10 +25,13 @@ const fieldSchema: FieldSchema = { isActive: 'boolean', method: 'string', path: 'string', + previewRef: 'string', priority: 'int', + servingSiteId: 'uuid', targetApiId: 'uuid', targetBucketId: 'uuid', targetFunctionId: 'uuid', + targetRedirectId: 'uuid', targetServiceId: 'uuid', targetSiteId: 'uuid', updatedAt: 'string', @@ -83,6 +87,7 @@ async function handleTableSubcommand( async function handleList(argv: Partial>, _prompter: Inquirerer) { try { const defaultSelect = { + anonymous: true, config: true, createdAt: true, databaseId: true, @@ -91,10 +96,13 @@ async function handleList(argv: Partial>, _prompter: Inq isActive: true, method: true, path: true, + previewRef: true, priority: true, + servingSiteId: true, targetApiId: true, targetBucketId: true, targetFunctionId: true, + targetRedirectId: true, targetServiceId: true, targetSiteId: true, updatedAt: true, @@ -118,6 +126,7 @@ async function handleList(argv: Partial>, _prompter: Inq async function handleFindFirst(argv: Partial>, _prompter: Inquirerer) { try { const defaultSelect = { + anonymous: true, config: true, createdAt: true, databaseId: true, @@ -126,10 +135,13 @@ async function handleFindFirst(argv: Partial>, _prompter isActive: true, method: true, path: true, + previewRef: true, priority: true, + servingSiteId: true, targetApiId: true, targetBucketId: true, targetFunctionId: true, + targetRedirectId: true, targetServiceId: true, targetSiteId: true, updatedAt: true, @@ -165,6 +177,7 @@ async function handleGet(argv: Partial>, prompter: Inqui .findOne({ id: answers.id as string, select: { + anonymous: true, config: true, createdAt: true, databaseId: true, @@ -173,10 +186,13 @@ async function handleGet(argv: Partial>, prompter: Inqui isActive: true, method: true, path: true, + previewRef: true, priority: true, + servingSiteId: true, targetApiId: true, targetBucketId: true, targetFunctionId: true, + targetRedirectId: true, targetServiceId: true, targetSiteId: true, updatedAt: true, @@ -195,6 +211,13 @@ async function handleGet(argv: Partial>, prompter: Inqui async function handleCreate(argv: Partial>, prompter: Inquirerer) { try { const rawAnswers = await prompter.prompt(argv, [ + { + type: 'boolean', + name: 'anonymous', + message: 'anonymous', + required: false, + skipPrompt: true, + }, { type: 'json', name: 'config', @@ -235,6 +258,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'previewRef', + message: 'previewRef', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'priority', @@ -242,6 +272,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'servingSiteId', + message: 'servingSiteId', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'targetApiId', @@ -263,6 +300,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'targetRedirectId', + message: 'targetRedirectId', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'targetServiceId', @@ -284,20 +328,25 @@ async function handleCreate(argv: Partial>, prompter: In const result = await client.route .create({ data: { + anonymous: cleanedData.anonymous, config: cleanedData.config, databaseId: cleanedData.databaseId, domainId: cleanedData.domainId, isActive: cleanedData.isActive, method: cleanedData.method, path: cleanedData.path, + previewRef: cleanedData.previewRef, priority: cleanedData.priority, + servingSiteId: cleanedData.servingSiteId, targetApiId: cleanedData.targetApiId, targetBucketId: cleanedData.targetBucketId, targetFunctionId: cleanedData.targetFunctionId, + targetRedirectId: cleanedData.targetRedirectId, targetServiceId: cleanedData.targetServiceId, targetSiteId: cleanedData.targetSiteId, }, select: { + anonymous: true, config: true, createdAt: true, databaseId: true, @@ -306,10 +355,13 @@ async function handleCreate(argv: Partial>, prompter: In isActive: true, method: true, path: true, + previewRef: true, priority: true, + servingSiteId: true, targetApiId: true, targetBucketId: true, targetFunctionId: true, + targetRedirectId: true, targetServiceId: true, targetSiteId: true, updatedAt: true, @@ -334,6 +386,13 @@ async function handleUpdate(argv: Partial>, prompter: In message: 'id', required: true, }, + { + type: 'boolean', + name: 'anonymous', + message: 'anonymous', + required: false, + skipPrompt: true, + }, { type: 'json', name: 'config', @@ -374,6 +433,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'previewRef', + message: 'previewRef', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'priority', @@ -381,6 +447,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'servingSiteId', + message: 'servingSiteId', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'targetApiId', @@ -402,6 +475,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'targetRedirectId', + message: 'targetRedirectId', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'targetServiceId', @@ -426,20 +506,25 @@ async function handleUpdate(argv: Partial>, prompter: In id: answers.id as string, }, data: { + anonymous: cleanedData.anonymous, config: cleanedData.config, databaseId: cleanedData.databaseId, domainId: cleanedData.domainId, isActive: cleanedData.isActive, method: cleanedData.method, path: cleanedData.path, + previewRef: cleanedData.previewRef, priority: cleanedData.priority, + servingSiteId: cleanedData.servingSiteId, targetApiId: cleanedData.targetApiId, targetBucketId: cleanedData.targetBucketId, targetFunctionId: cleanedData.targetFunctionId, + targetRedirectId: cleanedData.targetRedirectId, targetServiceId: cleanedData.targetServiceId, targetSiteId: cleanedData.targetSiteId, }, select: { + anonymous: true, config: true, createdAt: true, databaseId: true, @@ -448,10 +533,13 @@ async function handleUpdate(argv: Partial>, prompter: In isActive: true, method: true, path: true, + previewRef: true, priority: true, + servingSiteId: true, targetApiId: true, targetBucketId: true, targetFunctionId: true, + targetRedirectId: true, targetServiceId: true, targetSiteId: true, updatedAt: true, diff --git a/sdk/constructive-cli/src/api/cli/commands/set-site-preview.ts b/sdk/constructive-cli/src/api/cli/commands/set-site-preview.ts new file mode 100644 index 0000000000..04012c7b95 --- /dev/null +++ b/sdk/constructive-cli/src/api/cli/commands/set-site-preview.ts @@ -0,0 +1,51 @@ +/** + * CLI command for mutation setSitePreview + * @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 { SetSitePreviewVariables } from '../../orm/mutation'; +import type { SetSitePreviewPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log('set-site-preview - setSitePreview\n\nUsage: set-site-preview [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 + .setSitePreview( + parsedAnswers as unknown as SetSitePreviewVariables, + { + select: selectFields, + } as unknown as { + select: SetSitePreviewPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: setSitePreview'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/api/cli/commands/site-app-link.ts b/sdk/constructive-cli/src/api/cli/commands/site-app-link.ts index bbfd625505..b3f40ae61f 100644 --- a/sdk/constructive-cli/src/api/cli/commands/site-app-link.ts +++ b/sdk/constructive-cli/src/api/cli/commands/site-app-link.ts @@ -16,16 +16,12 @@ import type { } from '../../orm/input-types'; import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { - appIdentifier: 'string', + appStoreIdentityId: 'uuid', createdAt: 'string', databaseId: 'uuid', id: 'uuid', pathComponents: 'string', - platform: 'string', - sha256CertFingerprints: 'string', siteId: 'uuid', - storeUrl: 'string', - teamId: 'string', updatedAt: 'string', webcredentials: 'boolean', }; @@ -80,16 +76,12 @@ async function handleTableSubcommand( async function handleList(argv: Partial>, _prompter: Inquirerer) { try { const defaultSelect = { - appIdentifier: true, + appStoreIdentityId: true, createdAt: true, databaseId: true, id: true, pathComponents: true, - platform: true, - sha256CertFingerprints: true, siteId: true, - storeUrl: true, - teamId: true, updatedAt: true, webcredentials: true, }; @@ -112,16 +104,12 @@ async function handleList(argv: Partial>, _prompter: Inq async function handleFindFirst(argv: Partial>, _prompter: Inquirerer) { try { const defaultSelect = { - appIdentifier: true, + appStoreIdentityId: true, createdAt: true, databaseId: true, id: true, pathComponents: true, - platform: true, - sha256CertFingerprints: true, siteId: true, - storeUrl: true, - teamId: true, updatedAt: true, webcredentials: true, }; @@ -156,16 +144,12 @@ async function handleGet(argv: Partial>, prompter: Inqui .findOne({ id: answers.id as string, select: { - appIdentifier: true, + appStoreIdentityId: true, createdAt: true, databaseId: true, id: true, pathComponents: true, - platform: true, - sha256CertFingerprints: true, siteId: true, - storeUrl: true, - teamId: true, updatedAt: true, webcredentials: true, }, @@ -185,8 +169,8 @@ async function handleCreate(argv: Partial>, prompter: In const rawAnswers = await prompter.prompt(argv, [ { type: 'text', - name: 'appIdentifier', - message: 'appIdentifier', + name: 'appStoreIdentityId', + message: 'appStoreIdentityId', required: true, }, { @@ -202,39 +186,12 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'text', - name: 'platform', - message: 'platform', - required: true, - }, - { - type: 'text', - name: 'sha256CertFingerprints', - message: 'sha256CertFingerprints', - required: false, - skipPrompt: true, - }, { type: 'text', name: 'siteId', message: 'siteId', required: true, }, - { - type: 'text', - name: 'storeUrl', - message: 'storeUrl', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'teamId', - message: 'teamId', - required: false, - skipPrompt: true, - }, { type: 'boolean', name: 'webcredentials', @@ -252,27 +209,19 @@ async function handleCreate(argv: Partial>, prompter: In const result = await client.siteAppLink .create({ data: { - appIdentifier: cleanedData.appIdentifier, + appStoreIdentityId: cleanedData.appStoreIdentityId, databaseId: cleanedData.databaseId, pathComponents: cleanedData.pathComponents, - platform: cleanedData.platform, - sha256CertFingerprints: cleanedData.sha256CertFingerprints, siteId: cleanedData.siteId, - storeUrl: cleanedData.storeUrl, - teamId: cleanedData.teamId, webcredentials: cleanedData.webcredentials, }, select: { - appIdentifier: true, + appStoreIdentityId: true, createdAt: true, databaseId: true, id: true, pathComponents: true, - platform: true, - sha256CertFingerprints: true, siteId: true, - storeUrl: true, - teamId: true, updatedAt: true, webcredentials: true, }, @@ -298,8 +247,8 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'appIdentifier', - message: 'appIdentifier', + name: 'appStoreIdentityId', + message: 'appStoreIdentityId', required: false, }, { @@ -315,39 +264,12 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'text', - name: 'platform', - message: 'platform', - required: false, - }, - { - type: 'text', - name: 'sha256CertFingerprints', - message: 'sha256CertFingerprints', - required: false, - skipPrompt: true, - }, { type: 'text', name: 'siteId', message: 'siteId', required: false, }, - { - type: 'text', - name: 'storeUrl', - message: 'storeUrl', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'teamId', - message: 'teamId', - required: false, - skipPrompt: true, - }, { type: 'boolean', name: 'webcredentials', @@ -365,27 +287,19 @@ async function handleUpdate(argv: Partial>, prompter: In id: answers.id as string, }, data: { - appIdentifier: cleanedData.appIdentifier, + appStoreIdentityId: cleanedData.appStoreIdentityId, databaseId: cleanedData.databaseId, pathComponents: cleanedData.pathComponents, - platform: cleanedData.platform, - sha256CertFingerprints: cleanedData.sha256CertFingerprints, siteId: cleanedData.siteId, - storeUrl: cleanedData.storeUrl, - teamId: cleanedData.teamId, webcredentials: cleanedData.webcredentials, }, select: { - appIdentifier: true, + appStoreIdentityId: true, createdAt: true, databaseId: true, id: true, pathComponents: true, - platform: true, - sha256CertFingerprints: true, siteId: true, - storeUrl: true, - teamId: true, updatedAt: true, webcredentials: true, }, diff --git a/sdk/constructive-cli/src/api/cli/commands/site-deep-link.ts b/sdk/constructive-cli/src/api/cli/commands/site-deep-link.ts index aa9a0e4cbc..f62e6dd276 100644 --- a/sdk/constructive-cli/src/api/cli/commands/site-deep-link.ts +++ b/sdk/constructive-cli/src/api/cli/commands/site-deep-link.ts @@ -22,6 +22,7 @@ const fieldSchema: FieldSchema = { fallbackUrl: 'string', id: 'uuid', metadata: 'json', + pageId: 'uuid', siteId: 'uuid', slug: 'string', updatedAt: 'string', @@ -84,6 +85,7 @@ async function handleList(argv: Partial>, _prompter: Inq fallbackUrl: true, id: true, metadata: true, + pageId: true, siteId: true, slug: true, updatedAt: true, @@ -114,6 +116,7 @@ async function handleFindFirst(argv: Partial>, _prompter fallbackUrl: true, id: true, metadata: true, + pageId: true, siteId: true, slug: true, updatedAt: true, @@ -156,6 +159,7 @@ async function handleGet(argv: Partial>, prompter: Inqui fallbackUrl: true, id: true, metadata: true, + pageId: true, siteId: true, slug: true, updatedAt: true, @@ -201,6 +205,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'pageId', + message: 'pageId', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'siteId', @@ -234,6 +245,7 @@ async function handleCreate(argv: Partial>, prompter: In databaseId: cleanedData.databaseId, fallbackUrl: cleanedData.fallbackUrl, metadata: cleanedData.metadata, + pageId: cleanedData.pageId, siteId: cleanedData.siteId, slug: cleanedData.slug, webPath: cleanedData.webPath, @@ -245,6 +257,7 @@ async function handleCreate(argv: Partial>, prompter: In fallbackUrl: true, id: true, metadata: true, + pageId: true, siteId: true, slug: true, updatedAt: true, @@ -296,6 +309,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'pageId', + message: 'pageId', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'siteId', @@ -329,6 +349,7 @@ async function handleUpdate(argv: Partial>, prompter: In databaseId: cleanedData.databaseId, fallbackUrl: cleanedData.fallbackUrl, metadata: cleanedData.metadata, + pageId: cleanedData.pageId, siteId: cleanedData.siteId, slug: cleanedData.slug, webPath: cleanedData.webPath, @@ -340,6 +361,7 @@ async function handleUpdate(argv: Partial>, prompter: In fallbackUrl: true, id: true, metadata: true, + pageId: true, siteId: true, slug: true, updatedAt: true, diff --git a/sdk/constructive-cli/src/api/cli/commands/site-metadata-install-robots.ts b/sdk/constructive-cli/src/api/cli/commands/site-metadata-install-robots.ts new file mode 100644 index 0000000000..97d4fd00f3 --- /dev/null +++ b/sdk/constructive-cli/src/api/cli/commands/site-metadata-install-robots.ts @@ -0,0 +1,53 @@ +/** + * CLI command for mutation siteMetadataInstallRobots + * @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 { SiteMetadataInstallRobotsVariables } from '../../orm/mutation'; +import type { SiteMetadataInstallRobotsPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'site-metadata-install-robots - siteMetadataInstallRobots\n\nUsage: site-metadata-install-robots [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 + .siteMetadataInstallRobots( + parsedAnswers as unknown as SiteMetadataInstallRobotsVariables, + { + select: selectFields, + } as unknown as { + select: SiteMetadataInstallRobotsPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: siteMetadataInstallRobots'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/api/cli/commands/site-metadatum.ts b/sdk/constructive-cli/src/api/cli/commands/site-metadatum.ts index 84b41ba3a9..7bc2be1a76 100644 --- a/sdk/constructive-cli/src/api/cli/commands/site-metadatum.ts +++ b/sdk/constructive-cli/src/api/cli/commands/site-metadatum.ts @@ -27,6 +27,7 @@ const fieldSchema: FieldSchema = { logo: 'string', ogImage: 'string', robots: 'string', + robotsSeededFrom: 'json', siteId: 'uuid', storeId: 'uuid', title: 'string', @@ -94,6 +95,7 @@ async function handleList(argv: Partial>, _prompter: Inq logo: true, ogImage: true, robots: true, + robotsSeededFrom: true, siteId: true, storeId: true, title: true, @@ -129,6 +131,7 @@ async function handleFindFirst(argv: Partial>, _prompter logo: true, ogImage: true, robots: true, + robotsSeededFrom: true, siteId: true, storeId: true, title: true, @@ -176,6 +179,7 @@ async function handleGet(argv: Partial>, prompter: Inqui logo: true, ogImage: true, robots: true, + robotsSeededFrom: true, siteId: true, storeId: true, title: true, @@ -257,6 +261,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'json', + name: 'robotsSeededFrom', + message: 'robotsSeededFrom', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'siteId', @@ -296,6 +307,7 @@ async function handleCreate(argv: Partial>, prompter: In logo: cleanedData.logo, ogImage: cleanedData.ogImage, robots: cleanedData.robots, + robotsSeededFrom: cleanedData.robotsSeededFrom, siteId: cleanedData.siteId, storeId: cleanedData.storeId, title: cleanedData.title, @@ -312,6 +324,7 @@ async function handleCreate(argv: Partial>, prompter: In logo: true, ogImage: true, robots: true, + robotsSeededFrom: true, siteId: true, storeId: true, title: true, @@ -399,6 +412,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'json', + name: 'robotsSeededFrom', + message: 'robotsSeededFrom', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'siteId', @@ -438,6 +458,7 @@ async function handleUpdate(argv: Partial>, prompter: In logo: cleanedData.logo, ogImage: cleanedData.ogImage, robots: cleanedData.robots, + robotsSeededFrom: cleanedData.robotsSeededFrom, siteId: cleanedData.siteId, storeId: cleanedData.storeId, title: cleanedData.title, @@ -454,6 +475,7 @@ async function handleUpdate(argv: Partial>, prompter: In logo: true, ogImage: true, robots: true, + robotsSeededFrom: true, siteId: true, storeId: true, title: true, diff --git a/sdk/constructive-cli/src/api/cli/commands/site-release.ts b/sdk/constructive-cli/src/api/cli/commands/site-release.ts new file mode 100644 index 0000000000..47268fcc8c --- /dev/null +++ b/sdk/constructive-cli/src/api/cli/commands/site-release.ts @@ -0,0 +1,347 @@ +/** + * CLI commands for SiteRelease + * @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 { + CreateSiteReleaseInput, + SiteReleasePatch, + SiteReleaseSelect, + SiteReleaseFilter, + SiteReleaseOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + commitId: 'uuid', + createdAt: 'string', + databaseId: 'uuid', + id: 'uuid', + manifest: 'json', + siteId: 'uuid', + storeId: 'uuid', + updatedAt: 'string', +}; +const usage = + '\nsite-release \n\nCommands:\n list List siteRelease records\n find-first Find first matching siteRelease record\n get Get a siteRelease by ID\n create Create a new siteRelease\n update Update an existing siteRelease\n delete Delete a siteRelease\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 = { + commitId: true, + createdAt: true, + databaseId: true, + id: true, + manifest: true, + siteId: true, + storeId: true, + updatedAt: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: SiteReleaseSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.siteRelease.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 = { + commitId: true, + createdAt: true, + databaseId: true, + id: true, + manifest: true, + siteId: true, + storeId: true, + updatedAt: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: SiteReleaseSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.siteRelease.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.siteRelease + .findOne({ + id: answers.id as string, + select: { + commitId: true, + createdAt: true, + databaseId: true, + id: true, + manifest: true, + siteId: true, + storeId: 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: 'commitId', + message: 'commitId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: true, + }, + { + type: 'json', + name: 'manifest', + message: 'manifest', + required: true, + }, + { + type: 'text', + name: 'siteId', + message: 'siteId', + required: true, + }, + { + type: 'text', + name: 'storeId', + message: 'storeId', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateSiteReleaseInput['siteRelease']; + const client = getClient(); + const result = await client.siteRelease + .create({ + data: { + commitId: cleanedData.commitId, + databaseId: cleanedData.databaseId, + manifest: cleanedData.manifest, + siteId: cleanedData.siteId, + storeId: cleanedData.storeId, + }, + select: { + commitId: true, + createdAt: true, + databaseId: true, + id: true, + manifest: true, + siteId: true, + storeId: 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: 'commitId', + message: 'commitId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: false, + }, + { + type: 'json', + name: 'manifest', + message: 'manifest', + required: false, + }, + { + type: 'text', + name: 'siteId', + message: 'siteId', + required: false, + }, + { + type: 'text', + name: 'storeId', + message: 'storeId', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as SiteReleasePatch; + const client = getClient(); + const result = await client.siteRelease + .update({ + where: { + id: answers.id as string, + }, + data: { + commitId: cleanedData.commitId, + databaseId: cleanedData.databaseId, + manifest: cleanedData.manifest, + siteId: cleanedData.siteId, + storeId: cleanedData.storeId, + }, + select: { + commitId: true, + createdAt: true, + databaseId: true, + id: true, + manifest: true, + siteId: true, + storeId: 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.siteRelease + .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/site.ts b/sdk/constructive-cli/src/api/cli/commands/site.ts index 192fad9203..d6a436adc7 100644 --- a/sdk/constructive-cli/src/api/cli/commands/site.ts +++ b/sdk/constructive-cli/src/api/cli/commands/site.ts @@ -19,6 +19,7 @@ const fieldSchema: FieldSchema = { activeCommitId: 'uuid', bucketId: 'uuid', createdAt: 'string', + createdByPrincipal: 'uuid', databaseId: 'uuid', description: 'string', id: 'uuid', @@ -29,6 +30,7 @@ const fieldSchema: FieldSchema = { resourceId: 'uuid', title: 'string', updatedAt: 'string', + updatedByPrincipal: 'uuid', }; const usage = '\nsite \n\nCommands:\n list List site records\n find-first Find first matching site record\n get Get a site by ID\n create Create a new site\n update Update an existing site\n delete Delete a site\n\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'; @@ -84,6 +86,7 @@ async function handleList(argv: Partial>, _prompter: Inq activeCommitId: true, bucketId: true, createdAt: true, + createdByPrincipal: true, databaseId: true, description: true, id: true, @@ -94,6 +97,7 @@ async function handleList(argv: Partial>, _prompter: Inq resourceId: true, title: true, updatedAt: true, + updatedByPrincipal: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs & { @@ -117,6 +121,7 @@ async function handleFindFirst(argv: Partial>, _prompter activeCommitId: true, bucketId: true, createdAt: true, + createdByPrincipal: true, databaseId: true, description: true, id: true, @@ -127,6 +132,7 @@ async function handleFindFirst(argv: Partial>, _prompter resourceId: true, title: true, updatedAt: true, + updatedByPrincipal: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs & { @@ -162,6 +168,7 @@ async function handleGet(argv: Partial>, prompter: Inqui activeCommitId: true, bucketId: true, createdAt: true, + createdByPrincipal: true, databaseId: true, description: true, id: true, @@ -172,6 +179,7 @@ async function handleGet(argv: Partial>, prompter: Inqui resourceId: true, title: true, updatedAt: true, + updatedByPrincipal: true, }, }) .execute(); @@ -201,6 +209,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'databaseId', @@ -255,6 +270,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as CreateSiteInput['site']; @@ -264,6 +286,7 @@ async function handleCreate(argv: Partial>, prompter: In data: { activeCommitId: cleanedData.activeCommitId, bucketId: cleanedData.bucketId, + createdByPrincipal: cleanedData.createdByPrincipal, databaseId: cleanedData.databaseId, description: cleanedData.description, installationId: cleanedData.installationId, @@ -272,11 +295,13 @@ async function handleCreate(argv: Partial>, prompter: In name: cleanedData.name, resourceId: cleanedData.resourceId, title: cleanedData.title, + updatedByPrincipal: cleanedData.updatedByPrincipal, }, select: { activeCommitId: true, bucketId: true, createdAt: true, + createdByPrincipal: true, databaseId: true, description: true, id: true, @@ -287,6 +312,7 @@ async function handleCreate(argv: Partial>, prompter: In resourceId: true, title: true, updatedAt: true, + updatedByPrincipal: true, }, }) .execute(); @@ -322,6 +348,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'databaseId', @@ -376,6 +409,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as SitePatch; @@ -388,6 +428,7 @@ async function handleUpdate(argv: Partial>, prompter: In data: { activeCommitId: cleanedData.activeCommitId, bucketId: cleanedData.bucketId, + createdByPrincipal: cleanedData.createdByPrincipal, databaseId: cleanedData.databaseId, description: cleanedData.description, installationId: cleanedData.installationId, @@ -396,11 +437,13 @@ async function handleUpdate(argv: Partial>, prompter: In name: cleanedData.name, resourceId: cleanedData.resourceId, title: cleanedData.title, + updatedByPrincipal: cleanedData.updatedByPrincipal, }, select: { activeCommitId: true, bucketId: true, createdAt: true, + createdByPrincipal: true, databaseId: true, description: true, id: true, @@ -411,6 +454,7 @@ async function handleUpdate(argv: Partial>, prompter: In resourceId: true, title: true, updatedAt: true, + updatedByPrincipal: true, }, }) .execute(); diff --git a/sdk/constructive-cli/src/api/cli/commands/sites-deep-link-url.ts b/sdk/constructive-cli/src/api/cli/commands/sites-deep-link-url.ts new file mode 100644 index 0000000000..f8c43ac6fa --- /dev/null +++ b/sdk/constructive-cli/src/api/cli/commands/sites-deep-link-url.ts @@ -0,0 +1,45 @@ +/** + * CLI command for query sitesDeepLinkUrl + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { CLIOptions, Inquirerer } from 'inquirerer'; +import { getClient } from '../executor'; +import type { SitesDeepLinkUrlVariables } from '../../orm/query'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'sites-deep-link-url - sitesDeepLinkUrl\n\nUsage: sites-deep-link-url [OPTIONS]\n' + ); + process.exit(0); + } + const answers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'linkSlug', + message: 'linkSlug', + }, + { + type: 'text', + name: 'targetSiteId', + message: 'targetSiteId', + }, + ]); + const client = getClient(); + const result = await client.query + .sitesDeepLinkUrl(answers as unknown as SitesDeepLinkUrlVariables) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: sitesDeepLinkUrl'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/api/cli/commands/sites-install-content-preset.ts b/sdk/constructive-cli/src/api/cli/commands/sites-install-content-preset.ts new file mode 100644 index 0000000000..6a744b4764 --- /dev/null +++ b/sdk/constructive-cli/src/api/cli/commands/sites-install-content-preset.ts @@ -0,0 +1,53 @@ +/** + * CLI command for mutation sitesInstallContentPreset + * @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 { SitesInstallContentPresetVariables } from '../../orm/mutation'; +import type { SitesInstallContentPresetPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'sites-install-content-preset - sitesInstallContentPreset\n\nUsage: sites-install-content-preset [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 + .sitesInstallContentPreset( + parsedAnswers as unknown as SitesInstallContentPresetVariables, + { + select: selectFields, + } as unknown as { + select: SitesInstallContentPresetPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: sitesInstallContentPreset'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/api/cli/commands/sites-install-mantra.ts b/sdk/constructive-cli/src/api/cli/commands/sites-install-mantra.ts new file mode 100644 index 0000000000..c08190aaf0 --- /dev/null +++ b/sdk/constructive-cli/src/api/cli/commands/sites-install-mantra.ts @@ -0,0 +1,53 @@ +/** + * CLI command for mutation sitesInstallMantra + * @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 { SitesInstallMantraVariables } from '../../orm/mutation'; +import type { SitesInstallMantraPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'sites-install-mantra - sitesInstallMantra\n\nUsage: sites-install-mantra [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 + .sitesInstallMantra( + parsedAnswers as unknown as SitesInstallMantraVariables, + { + select: selectFields, + } as unknown as { + select: SitesInstallMantraPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: sitesInstallMantra'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/api/cli/commands/sites-site-origin.ts b/sdk/constructive-cli/src/api/cli/commands/sites-site-origin.ts new file mode 100644 index 0000000000..a322ab30e6 --- /dev/null +++ b/sdk/constructive-cli/src/api/cli/commands/sites-site-origin.ts @@ -0,0 +1,38 @@ +/** + * CLI command for query sitesSiteOrigin + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { CLIOptions, Inquirerer } from 'inquirerer'; +import { getClient } from '../executor'; +import type { SitesSiteOriginVariables } from '../../orm/query'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log('sites-site-origin - sitesSiteOrigin\n\nUsage: sites-site-origin [OPTIONS]\n'); + process.exit(0); + } + const answers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'targetSiteId', + message: 'targetSiteId', + }, + ]); + const client = getClient(); + const result = await client.query + .sitesSiteOrigin(answers as unknown as SitesSiteOriginVariables) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: sitesSiteOrigin'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/api/cli/commands/trigger.ts b/sdk/constructive-cli/src/api/cli/commands/trigger.ts index c4d55507eb..2c3327ca26 100644 --- a/sdk/constructive-cli/src/api/cli/commands/trigger.ts +++ b/sdk/constructive-cli/src/api/cli/commands/trigger.ts @@ -20,13 +20,19 @@ const fieldSchema: FieldSchema = { createdAt: 'string', databaseId: 'uuid', event: 'string', + events: 'string', + forEachRow: 'boolean', + functionId: 'uuid', functionName: 'string', id: 'uuid', + kind: 'string', name: 'string', smartTags: 'json', tableId: 'uuid', tags: 'string', + timing: 'string', updatedAt: 'string', + whenAst: 'json', }; const usage = '\ntrigger \n\nCommands:\n list List trigger records\n find-first Find first matching trigger record\n get Get a trigger by ID\n create Create a new trigger\n update Update an existing trigger\n delete Delete a trigger\n\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'; @@ -83,13 +89,19 @@ async function handleList(argv: Partial>, _prompter: Inq createdAt: true, databaseId: true, event: true, + events: true, + forEachRow: true, + functionId: true, functionName: true, id: true, + kind: true, name: true, smartTags: true, tableId: true, tags: true, + timing: true, updatedAt: true, + whenAst: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs & { @@ -114,13 +126,19 @@ async function handleFindFirst(argv: Partial>, _prompter createdAt: true, databaseId: true, event: true, + events: true, + forEachRow: true, + functionId: true, functionName: true, id: true, + kind: true, name: true, smartTags: true, tableId: true, tags: true, + timing: true, updatedAt: true, + whenAst: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs & { @@ -157,13 +175,19 @@ async function handleGet(argv: Partial>, prompter: Inqui createdAt: true, databaseId: true, event: true, + events: true, + forEachRow: true, + functionId: true, functionName: true, id: true, + kind: true, name: true, smartTags: true, tableId: true, tags: true, + timing: true, updatedAt: true, + whenAst: true, }, }) .execute(); @@ -200,6 +224,27 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'events', + message: 'events', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'forEachRow', + message: 'forEachRow', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'functionId', + message: 'functionId', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'functionName', @@ -207,6 +252,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'kind', + message: 'kind', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'name', @@ -233,6 +285,20 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'timing', + message: 'timing', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'whenAst', + message: 'whenAst', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as CreateTriggerInput['trigger']; @@ -243,24 +309,36 @@ async function handleCreate(argv: Partial>, prompter: In category: cleanedData.category, databaseId: cleanedData.databaseId, event: cleanedData.event, + events: cleanedData.events, + forEachRow: cleanedData.forEachRow, + functionId: cleanedData.functionId, functionName: cleanedData.functionName, + kind: cleanedData.kind, name: cleanedData.name, smartTags: cleanedData.smartTags, tableId: cleanedData.tableId, tags: cleanedData.tags, + timing: cleanedData.timing, + whenAst: cleanedData.whenAst, }, select: { category: true, createdAt: true, databaseId: true, event: true, + events: true, + forEachRow: true, + functionId: true, functionName: true, id: true, + kind: true, name: true, smartTags: true, tableId: true, tags: true, + timing: true, updatedAt: true, + whenAst: true, }, }) .execute(); @@ -303,6 +381,27 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'events', + message: 'events', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'forEachRow', + message: 'forEachRow', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'functionId', + message: 'functionId', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'functionName', @@ -310,6 +409,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'kind', + message: 'kind', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'name', @@ -336,6 +442,20 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'timing', + message: 'timing', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'whenAst', + message: 'whenAst', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as TriggerPatch; @@ -349,24 +469,36 @@ async function handleUpdate(argv: Partial>, prompter: In category: cleanedData.category, databaseId: cleanedData.databaseId, event: cleanedData.event, + events: cleanedData.events, + forEachRow: cleanedData.forEachRow, + functionId: cleanedData.functionId, functionName: cleanedData.functionName, + kind: cleanedData.kind, name: cleanedData.name, smartTags: cleanedData.smartTags, tableId: cleanedData.tableId, tags: cleanedData.tags, + timing: cleanedData.timing, + whenAst: cleanedData.whenAst, }, select: { category: true, createdAt: true, databaseId: true, event: true, + events: true, + forEachRow: true, + functionId: true, functionName: true, id: true, + kind: true, name: true, smartTags: true, tableId: true, tags: true, + timing: true, updatedAt: true, + whenAst: true, }, }) .execute(); diff --git a/sdk/constructive-cli/src/api/cli/commands/verify-site-preview-token.ts b/sdk/constructive-cli/src/api/cli/commands/verify-site-preview-token.ts new file mode 100644 index 0000000000..2cd9995f5e --- /dev/null +++ b/sdk/constructive-cli/src/api/cli/commands/verify-site-preview-token.ts @@ -0,0 +1,45 @@ +/** + * CLI command for query verifySitePreviewToken + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { CLIOptions, Inquirerer } from 'inquirerer'; +import { getClient } from '../executor'; +import type { VerifySitePreviewTokenVariables } from '../../orm/query'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'verify-site-preview-token - verifySitePreviewToken\n\nUsage: verify-site-preview-token [OPTIONS]\n' + ); + process.exit(0); + } + const answers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'siteId', + message: 'siteId', + }, + { + type: 'text', + name: 'token', + message: 'token', + }, + ]); + const client = getClient(); + const result = await client.query + .verifySitePreviewToken(answers as unknown as VerifySitePreviewTokenVariables) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: verifySitePreviewToken'); + 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 b54112ba5a..95c893dcb5 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 | @@ -46,20 +49,25 @@ const db = createClient({ | `foreignKeyConstraint` | findMany, findOne, create, update, delete | | `fullTextSearch` | findMany, findOne, create, update, delete | | `function` | findMany, findOne, create, update, delete | +| `getSitePreviewsRecord` | findMany, findOne, create, update, delete | | `hostnameBinding` | findMany, findOne, create, update, delete | -| `httpRoute` | findMany, findOne, create, update, delete | +| `identityProviderRegistry` | findMany, findOne, create, update, delete | | `index` | findMany, findOne, create, update, delete | | `managedDomain` | findMany, findOne, create, update, delete | | `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 | +| `platformGetSitePreviewsRecord` | findMany, findOne, create, update, delete | | `platformManagedDomain` | findMany, findOne, create, update, delete | | `platformPage` | findMany, findOne, create, update, delete | | `platformSiteAppLink` | findMany, findOne, create, update, delete | @@ -68,11 +76,13 @@ const db = createClient({ | `platformSiteErrorPage` | findMany, findOne, create, update, delete | | `platformSiteMetadatum` | findMany, findOne, create, update, delete | | `platformSiteModule` | findMany, findOne, create, update, delete | +| `platformSiteRelease` | findMany, findOne, create, update, delete | | `platformSiteTheme` | findMany, findOne, create, update, delete | | `platformSiteWebConfig` | findMany, findOne, create, update, delete | | `policy` | findMany, findOne, create, update, delete | | `primaryKeyConstraint` | findMany, findOne, create, update, delete | | `pubkeySetting` | findMany, findOne, create, update, delete | +| `redirect` | findMany, findOne, create, update, delete | | `rlsSetting` | findMany, findOne, create, update, delete | | `routeBinding` | findMany, findOne, create, update, delete | | `route` | findMany, findOne, create, update, delete | @@ -84,6 +94,7 @@ const db = createClient({ | `siteErrorPage` | findMany, findOne, create, update, delete | | `siteMetadatum` | findMany, findOne, create, update, delete | | `siteModule` | findMany, findOne, create, update, delete | +| `siteRelease` | findMany, findOne, create, update, delete | | `siteTheme` | findMany, findOne, create, update, delete | | `siteWebConfig` | findMany, findOne, create, update, delete | | `spatialRelation` | findMany, findOne, create, update, delete | @@ -104,6 +115,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. @@ -154,6 +203,7 @@ CRUD operations for ApiSetting records. | `enableConnectionFilter` | Boolean | Yes | | `enableDirectUploads` | Boolean | Yes | | `enableI18N` | Boolean | Yes | +| `enableIntrospection` | Boolean | Yes | | `enableLlm` | Boolean | Yes | | `enableLtree` | Boolean | Yes | | `enableManyToMany` | Boolean | Yes | @@ -162,7 +212,17 @@ CRUD operations for ApiSetting records. | `enableRealtime` | Boolean | Yes | | `enableSearch` | Boolean | Yes | | `id` | UUID | No | +| `idleInTransactionTimeoutMs` | BigInt | Yes | +| `lockTimeoutMs` | BigInt | Yes | +| `maxConcurrentRequests` | Int | Yes | +| `maxPageSize` | Int | Yes | +| `maxQueryCost` | Int | Yes | +| `maxQueryDepth` | Int | Yes | +| `maxQueueWaitMs` | Int | Yes | +| `maxRequestBytes` | Int | Yes | | `options` | JSON | Yes | +| `rateLimitBurst` | Int | Yes | +| `rateLimitRpm` | Int | Yes | | `statementTimeoutMs` | BigInt | Yes | | `updatedAt` | Datetime | No | @@ -170,13 +230,13 @@ CRUD operations for ApiSetting records. ```typescript // List all apiSetting records -const items = await db.apiSetting.findMany({ select: { apiId: true, createdAt: true, databaseId: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, options: true, statementTimeoutMs: true, updatedAt: true } }).execute(); +const items = await db.apiSetting.findMany({ select: { apiId: true, createdAt: true, databaseId: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.apiSetting.findOne({ id: '', select: { apiId: true, createdAt: true, databaseId: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, options: true, statementTimeoutMs: true, updatedAt: true } }).execute(); +const item = await db.apiSetting.findOne({ id: '', select: { apiId: true, createdAt: true, databaseId: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }).execute(); // Create -const created = await db.apiSetting.create({ data: { apiId: '', databaseId: '', enableAggregates: '', enableBulk: '', enableConnectionFilter: '', enableDirectUploads: '', enableI18N: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', options: '', statementTimeoutMs: '' }, select: { id: true } }).execute(); +const created = await db.apiSetting.create({ data: { apiId: '', databaseId: '', enableAggregates: '', enableBulk: '', enableConnectionFilter: '', enableDirectUploads: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }, select: { id: true } }).execute(); // Update const updated = await db.apiSetting.update({ where: { id: '' }, data: { apiId: '' }, select: { id: true } }).execute(); @@ -185,44 +245,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. @@ -426,10 +448,12 @@ CRUD operations for DatabaseSetting records. | `createdAt` | Datetime | No | | `databaseId` | UUID | Yes | | `enableAggregates` | Boolean | Yes | +| `enableBilling` | Boolean | Yes | | `enableBulk` | Boolean | Yes | | `enableConnectionFilter` | Boolean | Yes | | `enableDirectUploads` | Boolean | Yes | | `enableI18N` | Boolean | Yes | +| `enableIntrospection` | Boolean | Yes | | `enableLlm` | Boolean | Yes | | `enableLtree` | Boolean | Yes | | `enableManyToMany` | Boolean | Yes | @@ -438,8 +462,18 @@ CRUD operations for DatabaseSetting records. | `enableRealtime` | Boolean | Yes | | `enableSearch` | Boolean | Yes | | `id` | UUID | No | +| `idleInTransactionTimeoutMs` | BigInt | Yes | | `labels` | JSON | Yes | +| `lockTimeoutMs` | BigInt | Yes | +| `maxConcurrentRequests` | Int | Yes | +| `maxPageSize` | Int | Yes | +| `maxQueryCost` | Int | Yes | +| `maxQueryDepth` | Int | Yes | +| `maxQueueWaitMs` | Int | Yes | +| `maxRequestBytes` | Int | Yes | | `options` | JSON | Yes | +| `rateLimitBurst` | Int | Yes | +| `rateLimitRpm` | Int | Yes | | `statementTimeoutMs` | BigInt | Yes | | `updatedAt` | Datetime | No | @@ -447,13 +481,13 @@ CRUD operations for DatabaseSetting records. ```typescript // List all databaseSetting records -const items = await db.databaseSetting.findMany({ select: { annotations: true, createdAt: true, databaseId: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, labels: true, options: true, statementTimeoutMs: true, updatedAt: true } }).execute(); +const items = await db.databaseSetting.findMany({ select: { annotations: true, createdAt: true, databaseId: true, enableAggregates: true, enableBilling: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, labels: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.databaseSetting.findOne({ id: '', select: { annotations: true, createdAt: true, databaseId: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, labels: true, options: true, statementTimeoutMs: true, updatedAt: true } }).execute(); +const item = await db.databaseSetting.findOne({ id: '', select: { annotations: true, createdAt: true, databaseId: true, enableAggregates: true, enableBilling: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, labels: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }).execute(); // Create -const created = await db.databaseSetting.create({ data: { annotations: '', databaseId: '', enableAggregates: '', enableBulk: '', enableConnectionFilter: '', enableDirectUploads: '', enableI18N: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', labels: '', options: '', statementTimeoutMs: '' }, select: { id: true } }).execute(); +const created = await db.databaseSetting.create({ data: { annotations: '', databaseId: '', enableAggregates: '', enableBilling: '', enableBulk: '', enableConnectionFilter: '', enableDirectUploads: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', labels: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }, select: { id: true } }).execute(); // Update const updated = await db.databaseSetting.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); @@ -550,6 +584,7 @@ CRUD operations for Derive records. | `createdAt` | Datetime | No | | `databaseId` | UUID | Yes | | `id` | UUID | No | +| `includeGrants` | Boolean | Yes | | `includeMutations` | Boolean | Yes | | `kind` | String | Yes | | `policyPrefix` | String | Yes | @@ -561,13 +596,13 @@ CRUD operations for Derive records. ```typescript // List all derive records -const items = await db.derive.findMany({ select: { createdAt: true, databaseId: true, id: true, includeMutations: true, kind: true, policyPrefix: true, sourceTableId: true, tableId: true, updatedAt: true } }).execute(); +const items = await db.derive.findMany({ select: { createdAt: true, databaseId: true, id: true, includeGrants: true, includeMutations: true, kind: true, policyPrefix: true, sourceTableId: true, tableId: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.derive.findOne({ id: '', select: { createdAt: true, databaseId: true, id: true, includeMutations: true, kind: true, policyPrefix: true, sourceTableId: true, tableId: true, updatedAt: true } }).execute(); +const item = await db.derive.findOne({ id: '', select: { createdAt: true, databaseId: true, id: true, includeGrants: true, includeMutations: true, kind: true, policyPrefix: true, sourceTableId: true, tableId: true, updatedAt: true } }).execute(); // Create -const created = await db.derive.create({ data: { databaseId: '', includeMutations: '', kind: '', policyPrefix: '', sourceTableId: '', tableId: '' }, select: { id: true } }).execute(); +const created = await db.derive.create({ data: { databaseId: '', includeGrants: '', includeMutations: '', kind: '', policyPrefix: '', sourceTableId: '', tableId: '' }, select: { id: true } }).execute(); // Update const updated = await db.derive.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -586,6 +621,7 @@ CRUD operations for Domain records. |-------|------|----------| | `config` | JSON | Yes | | `createdAt` | Datetime | No | +| `createdByPrincipal` | UUID | Yes | | `databaseId` | UUID | Yes | | `hostname` | String | Yes | | `id` | UUID | No | @@ -597,6 +633,7 @@ CRUD operations for Domain records. | `tlsSecretName` | String | Yes | | `tlsStatus` | String | Yes | | `updatedAt` | Datetime | No | +| `updatedByPrincipal` | UUID | Yes | | `verificationStatus` | String | Yes | | `verifiedAt` | Datetime | Yes | @@ -604,13 +641,13 @@ CRUD operations for Domain records. ```typescript // List all domain records -const items = await db.domain.findMany({ select: { config: true, createdAt: true, databaseId: true, hostname: true, id: true, isPublished: true, isWildcard: true, managed: true, parentHostname: true, tlsReadyAt: true, tlsSecretName: true, tlsStatus: true, updatedAt: true, verificationStatus: true, verifiedAt: true } }).execute(); +const items = await db.domain.findMany({ select: { config: true, createdAt: true, createdByPrincipal: true, databaseId: true, hostname: true, id: true, isPublished: true, isWildcard: true, managed: true, parentHostname: true, tlsReadyAt: true, tlsSecretName: true, tlsStatus: true, updatedAt: true, updatedByPrincipal: true, verificationStatus: true, verifiedAt: true } }).execute(); // Get one by id -const item = await db.domain.findOne({ id: '', select: { config: true, createdAt: true, databaseId: true, hostname: true, id: true, isPublished: true, isWildcard: true, managed: true, parentHostname: true, tlsReadyAt: true, tlsSecretName: true, tlsStatus: true, updatedAt: true, verificationStatus: true, verifiedAt: true } }).execute(); +const item = await db.domain.findOne({ id: '', select: { config: true, createdAt: true, createdByPrincipal: true, databaseId: true, hostname: true, id: true, isPublished: true, isWildcard: true, managed: true, parentHostname: true, tlsReadyAt: true, tlsSecretName: true, tlsStatus: true, updatedAt: true, updatedByPrincipal: true, verificationStatus: true, verifiedAt: true } }).execute(); // Create -const created = await db.domain.create({ data: { config: '', databaseId: '', hostname: '', isPublished: '', isWildcard: '', managed: '', parentHostname: '', tlsReadyAt: '', tlsSecretName: '', tlsStatus: '', verificationStatus: '', verifiedAt: '' }, select: { id: true } }).execute(); +const created = await db.domain.create({ data: { config: '', createdByPrincipal: '', databaseId: '', hostname: '', isPublished: '', isWildcard: '', managed: '', parentHostname: '', tlsReadyAt: '', tlsSecretName: '', tlsStatus: '', updatedByPrincipal: '', verificationStatus: '', verifiedAt: '' }, select: { id: true } }).execute(); // Update const updated = await db.domain.update({ where: { id: '' }, data: { config: '' }, select: { id: true } }).execute(); @@ -743,6 +780,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. @@ -1092,30 +1248,73 @@ CRUD operations for Function records. | Field | Type | Editable | |-------|------|----------| +| `apiExposed` | Boolean | Yes | +| `arguments` | JSON | Yes | +| `bodyAst` | JSON | Yes | +| `category` | ObjectCategory | Yes | +| `data` | JSON | Yes | | `databaseId` | UUID | Yes | +| `functionType` | String | Yes | | `id` | UUID | No | +| `isStrict` | Boolean | Yes | +| `kind` | String | Yes | | `name` | String | Yes | +| `returns` | JSON | Yes | | `schemaId` | UUID | Yes | +| `securityInvoker` | Boolean | Yes | +| `smartTags` | JSON | Yes | +| `tags` | String | Yes | +| `volatility` | String | Yes | **Operations:** ```typescript // List all function records -const items = await db.function.findMany({ select: { databaseId: true, id: true, name: true, schemaId: true } }).execute(); +const items = await db.function.findMany({ select: { apiExposed: true, arguments: true, bodyAst: true, category: true, data: true, databaseId: true, functionType: true, id: true, isStrict: true, kind: true, name: true, returns: true, schemaId: true, securityInvoker: true, smartTags: true, tags: true, volatility: true } }).execute(); // Get one by id -const item = await db.function.findOne({ id: '', select: { databaseId: true, id: true, name: true, schemaId: true } }).execute(); +const item = await db.function.findOne({ id: '', select: { apiExposed: true, arguments: true, bodyAst: true, category: true, data: true, databaseId: true, functionType: true, id: true, isStrict: true, kind: true, name: true, returns: true, schemaId: true, securityInvoker: true, smartTags: true, tags: true, volatility: true } }).execute(); // Create -const created = await db.function.create({ data: { databaseId: '', name: '', schemaId: '' }, select: { id: true } }).execute(); +const created = await db.function.create({ data: { apiExposed: '', arguments: '', bodyAst: '', category: '', data: '', databaseId: '', functionType: '', isStrict: '', kind: '', name: '', returns: '', schemaId: '', securityInvoker: '', smartTags: '', tags: '', volatility: '' }, select: { id: true } }).execute(); // Update -const updated = await db.function.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.function.update({ where: { id: '' }, data: { apiExposed: '' }, select: { id: true } }).execute(); // Delete const deleted = await db.function.delete({ where: { id: '' } }).execute(); ``` +### `db.getSitePreviewsRecord` + +CRUD operations for GetSitePreviewsRecord records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `commitId` | UUID | Yes | +| `name` | String | Yes | + +**Operations:** + +```typescript +// List all getSitePreviewsRecord records +const items = await db.getSitePreviewsRecord.findMany({ select: { commitId: true, name: true } }).execute(); + +// Get one by id +const item = await db.getSitePreviewsRecord.findOne({ id: '', select: { commitId: true, name: true } }).execute(); + +// Create +const created = await db.getSitePreviewsRecord.create({ data: { commitId: '', name: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.getSitePreviewsRecord.update({ where: { id: '' }, data: { commitId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.getSitePreviewsRecord.delete({ where: { id: '' } }).execute(); +``` + ### `db.hostnameBinding` CRUD operations for HostnameBinding records. @@ -1154,45 +1353,40 @@ const updated = await db.hostnameBinding.update({ where: { id: '' }, data: const deleted = await db.hostnameBinding.delete({ where: { id: '' } }).execute(); ``` -### `db.httpRoute` +### `db.identityProviderRegistry` -CRUD operations for HttpRoute records. +CRUD operations for IdentityProviderRegistry records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `createdAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `databaseId` | UUID | Yes | -| `domainId` | UUID | Yes | -| `id` | UUID | No | -| `isActive` | Boolean | Yes | -| `method` | String | Yes | -| `path` | String | Yes | -| `priority` | Int | Yes | -| `targetId` | UUID | Yes | -| `targetKind` | String | Yes | -| `updatedAt` | Datetime | No | -| `updatedBy` | UUID | Yes | +| `authorizationUrl` | String | Yes | +| `displayName` | String | Yes | +| `issuerUrl` | String | Yes | +| `kind` | String | Yes | +| `scopes` | String | Yes | +| `slug` | String | No | +| `tokenUrl` | String | Yes | +| `userinfoUrl` | String | Yes | **Operations:** ```typescript -// List all httpRoute records -const items = await db.httpRoute.findMany({ select: { createdAt: true, createdBy: true, databaseId: true, domainId: true, id: true, isActive: true, method: true, path: true, priority: true, targetId: true, targetKind: true, updatedAt: true, updatedBy: true } }).execute(); +// List all identityProviderRegistry records +const items = await db.identityProviderRegistry.findMany({ select: { authorizationUrl: true, displayName: true, issuerUrl: true, kind: true, scopes: true, slug: true, tokenUrl: true, userinfoUrl: true } }).execute(); -// Get one by id -const item = await db.httpRoute.findOne({ id: '', select: { createdAt: true, createdBy: true, databaseId: true, domainId: true, id: true, isActive: true, method: true, path: true, priority: true, targetId: true, targetKind: true, updatedAt: true, updatedBy: true } }).execute(); +// Get one by slug +const item = await db.identityProviderRegistry.findOne({ slug: '', select: { authorizationUrl: true, displayName: true, issuerUrl: true, kind: true, scopes: true, slug: true, tokenUrl: true, userinfoUrl: true } }).execute(); // Create -const created = await db.httpRoute.create({ data: { createdBy: '', databaseId: '', domainId: '', isActive: '', method: '', path: '', priority: '', targetId: '', targetKind: '', updatedBy: '' }, select: { id: true } }).execute(); +const created = await db.identityProviderRegistry.create({ data: { authorizationUrl: '', displayName: '', issuerUrl: '', kind: '', scopes: '', tokenUrl: '', userinfoUrl: '' }, select: { slug: true } }).execute(); // Update -const updated = await db.httpRoute.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); +const updated = await db.identityProviderRegistry.update({ where: { slug: '' }, data: { authorizationUrl: '' }, select: { slug: true } }).execute(); // Delete -const deleted = await db.httpRoute.delete({ where: { id: '' } }).execute(); +const deleted = await db.identityProviderRegistry.delete({ where: { slug: '' } }).execute(); ``` ### `db.index` @@ -1213,6 +1407,7 @@ CRUD operations for Index records. | `indexParams` | JSON | Yes | | `isUnique` | Boolean | Yes | | `name` | String | Yes | +| `nullsNotDistinct` | Boolean | Yes | | `opClasses` | String | Yes | | `options` | JSON | Yes | | `smartTags` | JSON | Yes | @@ -1225,13 +1420,13 @@ CRUD operations for Index records. ```typescript // List all index records -const items = await db.index.findMany({ select: { accessMethod: true, category: true, createdAt: true, databaseId: true, fieldIds: true, id: true, includeFieldIds: true, indexParams: true, isUnique: true, name: true, opClasses: true, options: true, smartTags: true, tableId: true, tags: true, updatedAt: true, whereClause: true } }).execute(); +const items = await db.index.findMany({ select: { accessMethod: true, category: true, createdAt: true, databaseId: true, fieldIds: true, id: true, includeFieldIds: true, indexParams: true, isUnique: true, name: true, nullsNotDistinct: true, opClasses: true, options: true, smartTags: true, tableId: true, tags: true, updatedAt: true, whereClause: true } }).execute(); // Get one by id -const item = await db.index.findOne({ id: '', select: { accessMethod: true, category: true, createdAt: true, databaseId: true, fieldIds: true, id: true, includeFieldIds: true, indexParams: true, isUnique: true, name: true, opClasses: true, options: true, smartTags: true, tableId: true, tags: true, updatedAt: true, whereClause: true } }).execute(); +const item = await db.index.findOne({ id: '', select: { accessMethod: true, category: true, createdAt: true, databaseId: true, fieldIds: true, id: true, includeFieldIds: true, indexParams: true, isUnique: true, name: true, nullsNotDistinct: true, opClasses: true, options: true, smartTags: true, tableId: true, tags: true, updatedAt: true, whereClause: true } }).execute(); // Create -const created = await db.index.create({ data: { accessMethod: '', category: '', databaseId: '', fieldIds: '', includeFieldIds: '', indexParams: '', isUnique: '', name: '', opClasses: '', options: '', smartTags: '', tableId: '', tags: '', whereClause: '' }, select: { id: true } }).execute(); +const created = await db.index.create({ data: { accessMethod: '', category: '', databaseId: '', fieldIds: '', includeFieldIds: '', indexParams: '', isUnique: '', name: '', nullsNotDistinct: '', opClasses: '', options: '', smartTags: '', tableId: '', tags: '', whereClause: '' }, select: { id: true } }).execute(); // Update const updated = await db.index.update({ where: { id: '' }, data: { accessMethod: '' }, select: { id: true } }).execute(); @@ -1252,6 +1447,7 @@ CRUD operations for ManagedDomain records. | `annotations` | JSON | Yes | | `certStatus` | String | Yes | | `createdAt` | Datetime | No | +| `createdByPrincipal` | UUID | Yes | | `databaseId` | UUID | Yes | | `domain` | String | Yes | | `id` | UUID | No | @@ -1259,6 +1455,7 @@ CRUD operations for ManagedDomain records. | `tlsReadyAt` | Datetime | Yes | | `tlsStatus` | String | Yes | | `updatedAt` | Datetime | No | +| `updatedByPrincipal` | UUID | Yes | | `verificationStatus` | String | Yes | | `verifiedAt` | Datetime | Yes | @@ -1266,13 +1463,13 @@ CRUD operations for ManagedDomain records. ```typescript // List all managedDomain records -const items = await db.managedDomain.findMany({ select: { allowPublicUsage: true, annotations: true, certStatus: true, createdAt: true, databaseId: true, domain: true, id: true, isWildcard: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, verificationStatus: true, verifiedAt: true } }).execute(); +const items = await db.managedDomain.findMany({ select: { allowPublicUsage: true, annotations: true, certStatus: true, createdAt: true, createdByPrincipal: true, databaseId: true, domain: true, id: true, isWildcard: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, updatedByPrincipal: true, verificationStatus: true, verifiedAt: true } }).execute(); // Get one by id -const item = await db.managedDomain.findOne({ id: '', select: { allowPublicUsage: true, annotations: true, certStatus: true, createdAt: true, databaseId: true, domain: true, id: true, isWildcard: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, verificationStatus: true, verifiedAt: true } }).execute(); +const item = await db.managedDomain.findOne({ id: '', select: { allowPublicUsage: true, annotations: true, certStatus: true, createdAt: true, createdByPrincipal: true, databaseId: true, domain: true, id: true, isWildcard: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, updatedByPrincipal: true, verificationStatus: true, verifiedAt: true } }).execute(); // Create -const created = await db.managedDomain.create({ data: { allowPublicUsage: '', annotations: '', certStatus: '', databaseId: '', domain: '', isWildcard: '', tlsReadyAt: '', tlsStatus: '', verificationStatus: '', verifiedAt: '' }, select: { id: true } }).execute(); +const created = await db.managedDomain.create({ data: { allowPublicUsage: '', annotations: '', certStatus: '', createdByPrincipal: '', databaseId: '', domain: '', isWildcard: '', tlsReadyAt: '', tlsStatus: '', updatedByPrincipal: '', verificationStatus: '', verifiedAt: '' }, select: { id: true } }).execute(); // Update const updated = await db.managedDomain.update({ where: { id: '' }, data: { allowPublicUsage: '' }, select: { id: true } }).execute(); @@ -1329,6 +1526,7 @@ CRUD operations for Page records. | `createdAt` | Datetime | No | | `databaseId` | UUID | Yes | | `id` | UUID | No | +| `seededFrom` | JSON | Yes | | `siteId` | UUID | Yes | | `slug` | String | Yes | | `storeId` | UUID | Yes | @@ -1338,13 +1536,13 @@ CRUD operations for Page records. ```typescript // List all page records -const items = await db.page.findMany({ select: { commitId: true, content: true, createdAt: true, databaseId: true, id: true, siteId: true, slug: true, storeId: true, updatedAt: true } }).execute(); +const items = await db.page.findMany({ select: { commitId: true, content: true, createdAt: true, databaseId: true, id: true, seededFrom: true, siteId: true, slug: true, storeId: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.page.findOne({ id: '', select: { commitId: true, content: true, createdAt: true, databaseId: true, id: true, siteId: true, slug: true, storeId: true, updatedAt: true } }).execute(); +const item = await db.page.findOne({ id: '', select: { commitId: true, content: true, createdAt: true, databaseId: true, id: true, seededFrom: true, siteId: true, slug: true, storeId: true, updatedAt: true } }).execute(); // Create -const created = await db.page.create({ data: { commitId: '', content: '', databaseId: '', siteId: '', slug: '', storeId: '' }, select: { id: true } }).execute(); +const created = await db.page.create({ data: { commitId: '', content: '', databaseId: '', seededFrom: '', siteId: '', slug: '', storeId: '' }, select: { id: true } }).execute(); // Update const updated = await db.page.update({ where: { id: '' }, data: { commitId: '' }, select: { id: true } }).execute(); @@ -1394,6 +1592,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. @@ -1442,6 +1677,7 @@ CRUD operations for PlatformApiSetting records. | `enableConnectionFilter` | Boolean | Yes | | `enableDirectUploads` | Boolean | Yes | | `enableI18N` | Boolean | Yes | +| `enableIntrospection` | Boolean | Yes | | `enableLlm` | Boolean | Yes | | `enableLtree` | Boolean | Yes | | `enableManyToMany` | Boolean | Yes | @@ -1450,7 +1686,17 @@ CRUD operations for PlatformApiSetting records. | `enableRealtime` | Boolean | Yes | | `enableSearch` | Boolean | Yes | | `id` | UUID | No | +| `idleInTransactionTimeoutMs` | BigInt | Yes | +| `lockTimeoutMs` | BigInt | Yes | +| `maxConcurrentRequests` | Int | Yes | +| `maxPageSize` | Int | Yes | +| `maxQueryCost` | Int | Yes | +| `maxQueryDepth` | Int | Yes | +| `maxQueueWaitMs` | Int | Yes | +| `maxRequestBytes` | Int | Yes | | `options` | JSON | Yes | +| `rateLimitBurst` | Int | Yes | +| `rateLimitRpm` | Int | Yes | | `statementTimeoutMs` | BigInt | Yes | | `updatedAt` | Datetime | No | @@ -1458,13 +1704,13 @@ CRUD operations for PlatformApiSetting records. ```typescript // List all platformApiSetting records -const items = await db.platformApiSetting.findMany({ select: { apiId: true, createdAt: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, options: true, statementTimeoutMs: true, updatedAt: true } }).execute(); +const items = await db.platformApiSetting.findMany({ select: { apiId: true, createdAt: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.platformApiSetting.findOne({ id: '', select: { apiId: true, createdAt: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, options: true, statementTimeoutMs: true, updatedAt: true } }).execute(); +const item = await db.platformApiSetting.findOne({ id: '', select: { apiId: true, createdAt: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }).execute(); // Create -const created = await db.platformApiSetting.create({ data: { apiId: '', enableAggregates: '', enableBulk: '', enableConnectionFilter: '', enableDirectUploads: '', enableI18N: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', options: '', statementTimeoutMs: '' }, select: { id: true } }).execute(); +const created = await db.platformApiSetting.create({ data: { apiId: '', enableAggregates: '', enableBulk: '', enableConnectionFilter: '', enableDirectUploads: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformApiSetting.update({ where: { id: '' }, data: { apiId: '' }, select: { id: true } }).execute(); @@ -1473,43 +1719,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. @@ -1553,6 +1762,7 @@ CRUD operations for PlatformDomain records. |-------|------|----------| | `config` | JSON | Yes | | `createdAt` | Datetime | No | +| `createdByPrincipal` | UUID | Yes | | `hostname` | String | Yes | | `id` | UUID | No | | `isPublished` | Boolean | Yes | @@ -1563,6 +1773,7 @@ CRUD operations for PlatformDomain records. | `tlsSecretName` | String | Yes | | `tlsStatus` | String | Yes | | `updatedAt` | Datetime | No | +| `updatedByPrincipal` | UUID | Yes | | `verificationStatus` | String | Yes | | `verifiedAt` | Datetime | Yes | @@ -1570,13 +1781,13 @@ CRUD operations for PlatformDomain records. ```typescript // List all platformDomain records -const items = await db.platformDomain.findMany({ select: { config: true, createdAt: true, hostname: true, id: true, isPublished: true, isWildcard: true, managed: true, parentHostname: true, tlsReadyAt: true, tlsSecretName: true, tlsStatus: true, updatedAt: true, verificationStatus: true, verifiedAt: true } }).execute(); +const items = await db.platformDomain.findMany({ select: { config: true, createdAt: true, createdByPrincipal: true, hostname: true, id: true, isPublished: true, isWildcard: true, managed: true, parentHostname: true, tlsReadyAt: true, tlsSecretName: true, tlsStatus: true, updatedAt: true, updatedByPrincipal: true, verificationStatus: true, verifiedAt: true } }).execute(); // Get one by id -const item = await db.platformDomain.findOne({ id: '', select: { config: true, createdAt: true, hostname: true, id: true, isPublished: true, isWildcard: true, managed: true, parentHostname: true, tlsReadyAt: true, tlsSecretName: true, tlsStatus: true, updatedAt: true, verificationStatus: true, verifiedAt: true } }).execute(); +const item = await db.platformDomain.findOne({ id: '', select: { config: true, createdAt: true, createdByPrincipal: true, hostname: true, id: true, isPublished: true, isWildcard: true, managed: true, parentHostname: true, tlsReadyAt: true, tlsSecretName: true, tlsStatus: true, updatedAt: true, updatedByPrincipal: true, verificationStatus: true, verifiedAt: true } }).execute(); // Create -const created = await db.platformDomain.create({ data: { config: '', hostname: '', isPublished: '', isWildcard: '', managed: '', parentHostname: '', tlsReadyAt: '', tlsSecretName: '', tlsStatus: '', verificationStatus: '', verifiedAt: '' }, select: { id: true } }).execute(); +const created = await db.platformDomain.create({ data: { config: '', createdByPrincipal: '', hostname: '', isPublished: '', isWildcard: '', managed: '', parentHostname: '', tlsReadyAt: '', tlsSecretName: '', tlsStatus: '', updatedByPrincipal: '', verificationStatus: '', verifiedAt: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformDomain.update({ where: { id: '' }, data: { config: '' }, select: { id: true } }).execute(); @@ -1666,59 +1877,208 @@ const updated = await db.platformDomainVerification.update({ where: { id: '' } }).execute(); ``` -### `db.platformManagedDomain` +### `db.platformEmailIdentity` -CRUD operations for PlatformManagedDomain records. +CRUD operations for PlatformEmailIdentity records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `allowPublicUsage` | Boolean | Yes | -| `annotations` | JSON | Yes | -| `certStatus` | String | Yes | | `createdAt` | Datetime | No | -| `domain` | String | Yes | +| `fromAddress` | String | Yes | +| `fromName` | String | Yes | | `id` | UUID | No | -| `isWildcard` | Boolean | Yes | -| `tlsReadyAt` | Datetime | Yes | -| `tlsStatus` | String | Yes | +| `isActive` | Boolean | Yes | +| `isDefault` | Boolean | Yes | +| `name` | String | Yes | +| `providerAccountId` | UUID | Yes | +| `replyToAddress` | String | Yes | +| `supportAddress` | String | Yes | +| `transportMode` | String | Yes | | `updatedAt` | Datetime | No | -| `verificationStatus` | String | Yes | -| `verifiedAt` | Datetime | Yes | **Operations:** ```typescript -// List all platformManagedDomain records -const items = await db.platformManagedDomain.findMany({ select: { allowPublicUsage: true, annotations: true, certStatus: true, createdAt: true, domain: true, id: true, isWildcard: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, verificationStatus: true, verifiedAt: true } }).execute(); +// 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.platformManagedDomain.findOne({ id: '', select: { allowPublicUsage: true, annotations: true, certStatus: true, createdAt: true, domain: true, id: true, isWildcard: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, verificationStatus: true, verifiedAt: true } }).execute(); +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.platformManagedDomain.create({ data: { allowPublicUsage: '', annotations: '', certStatus: '', domain: '', isWildcard: '', tlsReadyAt: '', tlsStatus: '', verificationStatus: '', verifiedAt: '' }, select: { id: true } }).execute(); +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.platformManagedDomain.update({ where: { id: '' }, data: { allowPublicUsage: '' }, select: { id: true } }).execute(); +const updated = await db.platformEmailIdentity.update({ where: { id: '' }, data: { fromAddress: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformManagedDomain.delete({ where: { id: '' } }).execute(); +const deleted = await db.platformEmailIdentity.delete({ where: { id: '' } }).execute(); ``` -### `db.platformPage` +### `db.platformEmailProviderAccount` -CRUD operations for PlatformPage records. +CRUD operations for PlatformEmailProviderAccount records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `commitId` | UUID | Yes | -| `content` | JSON | Yes | +| `apiBaseUrl` | String | Yes | | `createdAt` | Datetime | No | +| `credentialsSecretName` | String | Yes | | `id` | UUID | No | -| `siteId` | UUID | Yes | +| `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.platformGetSitePreviewsRecord` + +CRUD operations for PlatformGetSitePreviewsRecord records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `commitId` | UUID | Yes | +| `name` | String | Yes | + +**Operations:** + +```typescript +// List all platformGetSitePreviewsRecord records +const items = await db.platformGetSitePreviewsRecord.findMany({ select: { commitId: true, name: true } }).execute(); + +// Get one by id +const item = await db.platformGetSitePreviewsRecord.findOne({ id: '', select: { commitId: true, name: true } }).execute(); + +// Create +const created = await db.platformGetSitePreviewsRecord.create({ data: { commitId: '', name: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformGetSitePreviewsRecord.update({ where: { id: '' }, data: { commitId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformGetSitePreviewsRecord.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformManagedDomain` + +CRUD operations for PlatformManagedDomain records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `allowPublicUsage` | Boolean | Yes | +| `annotations` | JSON | Yes | +| `certStatus` | String | Yes | +| `createdAt` | Datetime | No | +| `createdByPrincipal` | UUID | Yes | +| `domain` | String | Yes | +| `id` | UUID | No | +| `isWildcard` | Boolean | Yes | +| `tlsReadyAt` | Datetime | Yes | +| `tlsStatus` | String | Yes | +| `updatedAt` | Datetime | No | +| `updatedByPrincipal` | UUID | Yes | +| `verificationStatus` | String | Yes | +| `verifiedAt` | Datetime | Yes | + +**Operations:** + +```typescript +// List all platformManagedDomain records +const items = await db.platformManagedDomain.findMany({ select: { allowPublicUsage: true, annotations: true, certStatus: true, createdAt: true, createdByPrincipal: true, domain: true, id: true, isWildcard: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, updatedByPrincipal: true, verificationStatus: true, verifiedAt: true } }).execute(); + +// Get one by id +const item = await db.platformManagedDomain.findOne({ id: '', select: { allowPublicUsage: true, annotations: true, certStatus: true, createdAt: true, createdByPrincipal: true, domain: true, id: true, isWildcard: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, updatedByPrincipal: true, verificationStatus: true, verifiedAt: true } }).execute(); + +// Create +const created = await db.platformManagedDomain.create({ data: { allowPublicUsage: '', annotations: '', certStatus: '', createdByPrincipal: '', domain: '', isWildcard: '', tlsReadyAt: '', tlsStatus: '', updatedByPrincipal: '', verificationStatus: '', verifiedAt: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformManagedDomain.update({ where: { id: '' }, data: { allowPublicUsage: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformManagedDomain.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformPage` + +CRUD operations for PlatformPage records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `commitId` | UUID | Yes | +| `content` | JSON | Yes | +| `createdAt` | Datetime | No | +| `id` | UUID | No | +| `seededFrom` | JSON | Yes | +| `siteId` | UUID | Yes | | `slug` | String | Yes | | `storeId` | UUID | Yes | | `updatedAt` | Datetime | No | @@ -1727,13 +2087,13 @@ CRUD operations for PlatformPage records. ```typescript // List all platformPage records -const items = await db.platformPage.findMany({ select: { commitId: true, content: true, createdAt: true, id: true, siteId: true, slug: true, storeId: true, updatedAt: true } }).execute(); +const items = await db.platformPage.findMany({ select: { commitId: true, content: true, createdAt: true, id: true, seededFrom: true, siteId: true, slug: true, storeId: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.platformPage.findOne({ id: '', select: { commitId: true, content: true, createdAt: true, id: true, siteId: true, slug: true, storeId: true, updatedAt: true } }).execute(); +const item = await db.platformPage.findOne({ id: '', select: { commitId: true, content: true, createdAt: true, id: true, seededFrom: true, siteId: true, slug: true, storeId: true, updatedAt: true } }).execute(); // Create -const created = await db.platformPage.create({ data: { commitId: '', content: '', siteId: '', slug: '', storeId: '' }, select: { id: true } }).execute(); +const created = await db.platformPage.create({ data: { commitId: '', content: '', seededFrom: '', siteId: '', slug: '', storeId: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformPage.update({ where: { id: '' }, data: { commitId: '' }, select: { id: true } }).execute(); @@ -1750,15 +2110,11 @@ CRUD operations for PlatformSiteAppLink records. | Field | Type | Editable | |-------|------|----------| -| `appIdentifier` | String | Yes | +| `appStoreIdentityId` | UUID | Yes | | `createdAt` | Datetime | No | | `id` | UUID | No | | `pathComponents` | String | Yes | -| `platform` | String | Yes | -| `sha256CertFingerprints` | String | Yes | | `siteId` | UUID | Yes | -| `storeUrl` | String | Yes | -| `teamId` | String | Yes | | `updatedAt` | Datetime | No | | `webcredentials` | Boolean | Yes | @@ -1766,16 +2122,16 @@ CRUD operations for PlatformSiteAppLink records. ```typescript // List all platformSiteAppLink records -const items = await db.platformSiteAppLink.findMany({ select: { appIdentifier: true, createdAt: true, id: true, pathComponents: true, platform: true, sha256CertFingerprints: true, siteId: true, storeUrl: true, teamId: true, updatedAt: true, webcredentials: true } }).execute(); +const items = await db.platformSiteAppLink.findMany({ select: { appStoreIdentityId: true, createdAt: true, id: true, pathComponents: true, siteId: true, updatedAt: true, webcredentials: true } }).execute(); // Get one by id -const item = await db.platformSiteAppLink.findOne({ id: '', select: { appIdentifier: true, createdAt: true, id: true, pathComponents: true, platform: true, sha256CertFingerprints: true, siteId: true, storeUrl: true, teamId: true, updatedAt: true, webcredentials: true } }).execute(); +const item = await db.platformSiteAppLink.findOne({ id: '', select: { appStoreIdentityId: true, createdAt: true, id: true, pathComponents: true, siteId: true, updatedAt: true, webcredentials: true } }).execute(); // Create -const created = await db.platformSiteAppLink.create({ data: { appIdentifier: '', pathComponents: '', platform: '', sha256CertFingerprints: '', siteId: '', storeUrl: '', teamId: '', webcredentials: '' }, select: { id: true } }).execute(); +const created = await db.platformSiteAppLink.create({ data: { appStoreIdentityId: '', pathComponents: '', siteId: '', webcredentials: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformSiteAppLink.update({ where: { id: '' }, data: { appIdentifier: '' }, select: { id: true } }).execute(); +const updated = await db.platformSiteAppLink.update({ where: { id: '' }, data: { appStoreIdentityId: '' }, select: { id: true } }).execute(); // Delete const deleted = await db.platformSiteAppLink.delete({ where: { id: '' } }).execute(); @@ -1792,6 +2148,7 @@ CRUD operations for PlatformSite records. | `activeCommitId` | UUID | Yes | | `bucketId` | UUID | Yes | | `createdAt` | Datetime | No | +| `createdByPrincipal` | UUID | Yes | | `description` | String | Yes | | `id` | UUID | No | | `installationId` | UUID | Yes | @@ -1801,18 +2158,19 @@ CRUD operations for PlatformSite records. | `resourceId` | UUID | Yes | | `title` | String | Yes | | `updatedAt` | Datetime | No | +| `updatedByPrincipal` | UUID | Yes | **Operations:** ```typescript // List all platformSite records -const items = await db.platformSite.findMany({ select: { activeCommitId: true, bucketId: true, createdAt: true, description: true, id: true, installationId: true, installationMemberSlug: true, isPublished: true, name: true, resourceId: true, title: true, updatedAt: true } }).execute(); +const items = await db.platformSite.findMany({ select: { activeCommitId: true, bucketId: true, createdAt: true, createdByPrincipal: true, description: true, id: true, installationId: true, installationMemberSlug: true, isPublished: true, name: true, resourceId: true, title: true, updatedAt: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.platformSite.findOne({ id: '', select: { activeCommitId: true, bucketId: true, createdAt: true, description: true, id: true, installationId: true, installationMemberSlug: true, isPublished: true, name: true, resourceId: true, title: true, updatedAt: true } }).execute(); +const item = await db.platformSite.findOne({ id: '', select: { activeCommitId: true, bucketId: true, createdAt: true, createdByPrincipal: true, description: true, id: true, installationId: true, installationMemberSlug: true, isPublished: true, name: true, resourceId: true, title: true, updatedAt: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.platformSite.create({ data: { activeCommitId: '', bucketId: '', description: '', installationId: '', installationMemberSlug: '', isPublished: '', name: '', resourceId: '', title: '' }, select: { id: true } }).execute(); +const created = await db.platformSite.create({ data: { activeCommitId: '', bucketId: '', createdByPrincipal: '', description: '', installationId: '', installationMemberSlug: '', isPublished: '', name: '', resourceId: '', title: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformSite.update({ where: { id: '' }, data: { activeCommitId: '' }, select: { id: true } }).execute(); @@ -1834,6 +2192,7 @@ CRUD operations for PlatformSiteDeepLink records. | `fallbackUrl` | String | Yes | | `id` | UUID | No | | `metadata` | JSON | Yes | +| `pageId` | UUID | Yes | | `siteId` | UUID | Yes | | `slug` | String | Yes | | `updatedAt` | Datetime | No | @@ -1843,13 +2202,13 @@ CRUD operations for PlatformSiteDeepLink records. ```typescript // List all platformSiteDeepLink records -const items = await db.platformSiteDeepLink.findMany({ select: { appPath: true, createdAt: true, fallbackUrl: true, id: true, metadata: true, siteId: true, slug: true, updatedAt: true, webPath: true } }).execute(); +const items = await db.platformSiteDeepLink.findMany({ select: { appPath: true, createdAt: true, fallbackUrl: true, id: true, metadata: true, pageId: true, siteId: true, slug: true, updatedAt: true, webPath: true } }).execute(); // Get one by id -const item = await db.platformSiteDeepLink.findOne({ id: '', select: { appPath: true, createdAt: true, fallbackUrl: true, id: true, metadata: true, siteId: true, slug: true, updatedAt: true, webPath: true } }).execute(); +const item = await db.platformSiteDeepLink.findOne({ id: '', select: { appPath: true, createdAt: true, fallbackUrl: true, id: true, metadata: true, pageId: true, siteId: true, slug: true, updatedAt: true, webPath: true } }).execute(); // Create -const created = await db.platformSiteDeepLink.create({ data: { appPath: '', fallbackUrl: '', metadata: '', siteId: '', slug: '', webPath: '' }, select: { id: true } }).execute(); +const created = await db.platformSiteDeepLink.create({ data: { appPath: '', fallbackUrl: '', metadata: '', pageId: '', siteId: '', slug: '', webPath: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformSiteDeepLink.update({ where: { id: '' }, data: { appPath: '' }, select: { id: true } }).execute(); @@ -1910,6 +2269,7 @@ CRUD operations for PlatformSiteMetadatum records. | `logo` | ConstructiveInternalTypeImage | Yes | | `ogImage` | ConstructiveInternalTypeImage | Yes | | `robots` | String | Yes | +| `robotsSeededFrom` | JSON | Yes | | `siteId` | UUID | Yes | | `storeId` | UUID | Yes | | `title` | String | Yes | @@ -1919,13 +2279,13 @@ CRUD operations for PlatformSiteMetadatum records. ```typescript // List all platformSiteMetadatum records -const items = await db.platformSiteMetadatum.findMany({ select: { appleTouchIcon: true, canonicalUrl: true, commitId: true, createdAt: true, description: true, favicon: true, id: true, logo: true, ogImage: true, robots: true, siteId: true, storeId: true, title: true, updatedAt: true } }).execute(); +const items = await db.platformSiteMetadatum.findMany({ select: { appleTouchIcon: true, canonicalUrl: true, commitId: true, createdAt: true, description: true, favicon: true, id: true, logo: true, ogImage: true, robots: true, robotsSeededFrom: true, siteId: true, storeId: true, title: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.platformSiteMetadatum.findOne({ id: '', select: { appleTouchIcon: true, canonicalUrl: true, commitId: true, createdAt: true, description: true, favicon: true, id: true, logo: true, ogImage: true, robots: true, siteId: true, storeId: true, title: true, updatedAt: true } }).execute(); +const item = await db.platformSiteMetadatum.findOne({ id: '', select: { appleTouchIcon: true, canonicalUrl: true, commitId: true, createdAt: true, description: true, favicon: true, id: true, logo: true, ogImage: true, robots: true, robotsSeededFrom: true, siteId: true, storeId: true, title: true, updatedAt: true } }).execute(); // Create -const created = await db.platformSiteMetadatum.create({ data: { appleTouchIcon: '', canonicalUrl: '', commitId: '', description: '', favicon: '', logo: '', ogImage: '', robots: '', siteId: '', storeId: '', title: '' }, select: { id: true } }).execute(); +const created = await db.platformSiteMetadatum.create({ data: { appleTouchIcon: '', canonicalUrl: '', commitId: '', description: '', favicon: '', logo: '', ogImage: '', robots: '', robotsSeededFrom: '', siteId: '', storeId: '', title: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformSiteMetadatum.update({ where: { id: '' }, data: { appleTouchIcon: '' }, select: { id: true } }).execute(); @@ -1970,6 +2330,41 @@ const updated = await db.platformSiteModule.update({ where: { id: '' }, da const deleted = await db.platformSiteModule.delete({ where: { id: '' } }).execute(); ``` +### `db.platformSiteRelease` + +CRUD operations for PlatformSiteRelease records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `commitId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `id` | UUID | No | +| `manifest` | JSON | Yes | +| `siteId` | UUID | Yes | +| `storeId` | UUID | Yes | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all platformSiteRelease records +const items = await db.platformSiteRelease.findMany({ select: { commitId: true, createdAt: true, id: true, manifest: true, siteId: true, storeId: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.platformSiteRelease.findOne({ id: '', select: { commitId: true, createdAt: true, id: true, manifest: true, siteId: true, storeId: true, updatedAt: true } }).execute(); + +// Create +const created = await db.platformSiteRelease.create({ data: { commitId: '', manifest: '', siteId: '', storeId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformSiteRelease.update({ where: { id: '' }, data: { commitId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformSiteRelease.delete({ where: { id: '' } }).execute(); +``` + ### `db.platformSiteTheme` CRUD operations for PlatformSiteTheme records. @@ -2052,6 +2447,7 @@ CRUD operations for Policy records. | Field | Type | Editable | |-------|------|----------| | `category` | ObjectCategory | Yes | +| `columnRefs` | String | Yes | | `createdAt` | Datetime | No | | `data` | JSON | Yes | | `databaseId` | UUID | Yes | @@ -2074,13 +2470,13 @@ CRUD operations for Policy records. ```typescript // List all policy records -const items = await db.policy.findMany({ select: { category: true, createdAt: true, data: true, databaseId: true, derivedFromPolicyId: true, derivedFromTableId: true, disabled: true, granteeName: true, id: true, name: true, permissive: true, policyType: true, privilege: true, smartTags: true, tableId: true, tags: true, updatedAt: true, withCheck: true } }).execute(); +const items = await db.policy.findMany({ select: { category: true, columnRefs: true, createdAt: true, data: true, databaseId: true, derivedFromPolicyId: true, derivedFromTableId: true, disabled: true, granteeName: true, id: true, name: true, permissive: true, policyType: true, privilege: true, smartTags: true, tableId: true, tags: true, updatedAt: true, withCheck: true } }).execute(); // Get one by id -const item = await db.policy.findOne({ id: '', select: { category: true, createdAt: true, data: true, databaseId: true, derivedFromPolicyId: true, derivedFromTableId: true, disabled: true, granteeName: true, id: true, name: true, permissive: true, policyType: true, privilege: true, smartTags: true, tableId: true, tags: true, updatedAt: true, withCheck: true } }).execute(); +const item = await db.policy.findOne({ id: '', select: { category: true, columnRefs: true, createdAt: true, data: true, databaseId: true, derivedFromPolicyId: true, derivedFromTableId: true, disabled: true, granteeName: true, id: true, name: true, permissive: true, policyType: true, privilege: true, smartTags: true, tableId: true, tags: true, updatedAt: true, withCheck: true } }).execute(); // Create -const created = await db.policy.create({ data: { category: '', data: '', databaseId: '', derivedFromPolicyId: '', derivedFromTableId: '', disabled: '', granteeName: '', name: '', permissive: '', policyType: '', privilege: '', smartTags: '', tableId: '', tags: '', withCheck: '' }, select: { id: true } }).execute(); +const created = await db.policy.create({ data: { category: '', columnRefs: '', data: '', databaseId: '', derivedFromPolicyId: '', derivedFromTableId: '', disabled: '', granteeName: '', name: '', permissive: '', policyType: '', privilege: '', smartTags: '', tableId: '', tags: '', withCheck: '' }, select: { id: true } }).execute(); // Update const updated = await db.policy.update({ where: { id: '' }, data: { category: '' }, select: { id: true } }).execute(); @@ -2170,6 +2566,44 @@ const updated = await db.pubkeySetting.update({ where: { id: '' }, data: { const deleted = await db.pubkeySetting.delete({ where: { id: '' } }).execute(); ``` +### `db.redirect` + +CRUD operations for Redirect records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `createdAt` | Datetime | No | +| `databaseId` | UUID | Yes | +| `id` | UUID | No | +| `name` | String | Yes | +| `preservePath` | Boolean | Yes | +| `preserveQuery` | Boolean | Yes | +| `statusCode` | Int | Yes | +| `toHost` | String | Yes | +| `toPath` | String | Yes | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all redirect records +const items = await db.redirect.findMany({ select: { createdAt: true, databaseId: true, id: true, name: true, preservePath: true, preserveQuery: true, statusCode: true, toHost: true, toPath: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.redirect.findOne({ id: '', select: { createdAt: true, databaseId: true, id: true, name: true, preservePath: true, preserveQuery: true, statusCode: true, toHost: true, toPath: true, updatedAt: true } }).execute(); + +// Create +const created = await db.redirect.create({ data: { databaseId: '', name: '', preservePath: '', preserveQuery: '', statusCode: '', toHost: '', toPath: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.redirect.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.redirect.delete({ where: { id: '' } }).execute(); +``` + ### `db.rlsSetting` CRUD operations for RlsSetting records. @@ -2224,9 +2658,11 @@ CRUD operations for RouteBinding records. | `method` | String | Yes | | `path` | String | Yes | | `priority` | Int | Yes | +| `servingSiteId` | UUID | Yes | | `targetApiId` | UUID | Yes | | `targetBucketId` | UUID | Yes | | `targetFunctionId` | UUID | Yes | +| `targetRedirectId` | UUID | Yes | | `targetServiceId` | UUID | Yes | | `targetSiteId` | UUID | Yes | | `updatedAt` | Datetime | No | @@ -2235,13 +2671,13 @@ CRUD operations for RouteBinding records. ```typescript // List all routeBinding records -const items = await db.routeBinding.findMany({ select: { domainId: true, id: true, isActive: true, method: true, path: true, priority: true, targetApiId: true, targetBucketId: true, targetFunctionId: true, targetServiceId: true, targetSiteId: true, updatedAt: true } }).execute(); +const items = await db.routeBinding.findMany({ select: { domainId: true, id: true, isActive: true, method: true, path: true, priority: true, servingSiteId: true, targetApiId: true, targetBucketId: true, targetFunctionId: true, targetRedirectId: true, targetServiceId: true, targetSiteId: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.routeBinding.findOne({ id: '', select: { domainId: true, id: true, isActive: true, method: true, path: true, priority: true, targetApiId: true, targetBucketId: true, targetFunctionId: true, targetServiceId: true, targetSiteId: true, updatedAt: true } }).execute(); +const item = await db.routeBinding.findOne({ id: '', select: { domainId: true, id: true, isActive: true, method: true, path: true, priority: true, servingSiteId: true, targetApiId: true, targetBucketId: true, targetFunctionId: true, targetRedirectId: true, targetServiceId: true, targetSiteId: true, updatedAt: true } }).execute(); // Create -const created = await db.routeBinding.create({ data: { domainId: '', isActive: '', method: '', path: '', priority: '', targetApiId: '', targetBucketId: '', targetFunctionId: '', targetServiceId: '', targetSiteId: '' }, select: { id: true } }).execute(); +const created = await db.routeBinding.create({ data: { domainId: '', isActive: '', method: '', path: '', priority: '', servingSiteId: '', targetApiId: '', targetBucketId: '', targetFunctionId: '', targetRedirectId: '', targetServiceId: '', targetSiteId: '' }, select: { id: true } }).execute(); // Update const updated = await db.routeBinding.update({ where: { id: '' }, data: { domainId: '' }, select: { id: true } }).execute(); @@ -2258,6 +2694,7 @@ CRUD operations for Route records. | Field | Type | Editable | |-------|------|----------| +| `anonymous` | Boolean | Yes | | `config` | JSON | Yes | | `createdAt` | Datetime | No | | `databaseId` | UUID | Yes | @@ -2266,10 +2703,13 @@ CRUD operations for Route records. | `isActive` | Boolean | Yes | | `method` | String | Yes | | `path` | String | Yes | +| `previewRef` | String | Yes | | `priority` | Int | Yes | +| `servingSiteId` | UUID | Yes | | `targetApiId` | UUID | Yes | | `targetBucketId` | UUID | Yes | | `targetFunctionId` | UUID | Yes | +| `targetRedirectId` | UUID | Yes | | `targetServiceId` | UUID | Yes | | `targetSiteId` | UUID | Yes | | `updatedAt` | Datetime | No | @@ -2278,16 +2718,16 @@ CRUD operations for Route records. ```typescript // List all route records -const items = await db.route.findMany({ select: { config: true, createdAt: true, databaseId: true, domainId: true, id: true, isActive: true, method: true, path: true, priority: true, targetApiId: true, targetBucketId: true, targetFunctionId: true, targetServiceId: true, targetSiteId: true, updatedAt: true } }).execute(); +const items = await db.route.findMany({ select: { anonymous: true, config: true, createdAt: true, databaseId: true, domainId: true, id: true, isActive: true, method: true, path: true, previewRef: true, priority: true, servingSiteId: true, targetApiId: true, targetBucketId: true, targetFunctionId: true, targetRedirectId: true, targetServiceId: true, targetSiteId: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.route.findOne({ id: '', select: { config: true, createdAt: true, databaseId: true, domainId: true, id: true, isActive: true, method: true, path: true, priority: true, targetApiId: true, targetBucketId: true, targetFunctionId: true, targetServiceId: true, targetSiteId: true, updatedAt: true } }).execute(); +const item = await db.route.findOne({ id: '', select: { anonymous: true, config: true, createdAt: true, databaseId: true, domainId: true, id: true, isActive: true, method: true, path: true, previewRef: true, priority: true, servingSiteId: true, targetApiId: true, targetBucketId: true, targetFunctionId: true, targetRedirectId: true, targetServiceId: true, targetSiteId: true, updatedAt: true } }).execute(); // Create -const created = await db.route.create({ data: { config: '', databaseId: '', domainId: '', isActive: '', method: '', path: '', priority: '', targetApiId: '', targetBucketId: '', targetFunctionId: '', targetServiceId: '', targetSiteId: '' }, select: { id: true } }).execute(); +const created = await db.route.create({ data: { anonymous: '', config: '', databaseId: '', domainId: '', isActive: '', method: '', path: '', previewRef: '', priority: '', servingSiteId: '', targetApiId: '', targetBucketId: '', targetFunctionId: '', targetRedirectId: '', targetServiceId: '', targetSiteId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.route.update({ where: { id: '' }, data: { config: '' }, select: { id: true } }).execute(); +const updated = await db.route.update({ where: { id: '' }, data: { anonymous: '' }, select: { id: true } }).execute(); // Delete const deleted = await db.route.delete({ where: { id: '' } }).execute(); @@ -2376,16 +2816,12 @@ CRUD operations for SiteAppLink records. | Field | Type | Editable | |-------|------|----------| -| `appIdentifier` | String | Yes | +| `appStoreIdentityId` | UUID | Yes | | `createdAt` | Datetime | No | | `databaseId` | UUID | Yes | | `id` | UUID | No | | `pathComponents` | String | Yes | -| `platform` | String | Yes | -| `sha256CertFingerprints` | String | Yes | | `siteId` | UUID | Yes | -| `storeUrl` | String | Yes | -| `teamId` | String | Yes | | `updatedAt` | Datetime | No | | `webcredentials` | Boolean | Yes | @@ -2393,16 +2829,16 @@ CRUD operations for SiteAppLink records. ```typescript // List all siteAppLink records -const items = await db.siteAppLink.findMany({ select: { appIdentifier: true, createdAt: true, databaseId: true, id: true, pathComponents: true, platform: true, sha256CertFingerprints: true, siteId: true, storeUrl: true, teamId: true, updatedAt: true, webcredentials: true } }).execute(); +const items = await db.siteAppLink.findMany({ select: { appStoreIdentityId: true, createdAt: true, databaseId: true, id: true, pathComponents: true, siteId: true, updatedAt: true, webcredentials: true } }).execute(); // Get one by id -const item = await db.siteAppLink.findOne({ id: '', select: { appIdentifier: true, createdAt: true, databaseId: true, id: true, pathComponents: true, platform: true, sha256CertFingerprints: true, siteId: true, storeUrl: true, teamId: true, updatedAt: true, webcredentials: true } }).execute(); +const item = await db.siteAppLink.findOne({ id: '', select: { appStoreIdentityId: true, createdAt: true, databaseId: true, id: true, pathComponents: true, siteId: true, updatedAt: true, webcredentials: true } }).execute(); // Create -const created = await db.siteAppLink.create({ data: { appIdentifier: '', databaseId: '', pathComponents: '', platform: '', sha256CertFingerprints: '', siteId: '', storeUrl: '', teamId: '', webcredentials: '' }, select: { id: true } }).execute(); +const created = await db.siteAppLink.create({ data: { appStoreIdentityId: '', databaseId: '', pathComponents: '', siteId: '', webcredentials: '' }, select: { id: true } }).execute(); // Update -const updated = await db.siteAppLink.update({ where: { id: '' }, data: { appIdentifier: '' }, select: { id: true } }).execute(); +const updated = await db.siteAppLink.update({ where: { id: '' }, data: { appStoreIdentityId: '' }, select: { id: true } }).execute(); // Delete const deleted = await db.siteAppLink.delete({ where: { id: '' } }).execute(); @@ -2419,6 +2855,7 @@ CRUD operations for Site records. | `activeCommitId` | UUID | Yes | | `bucketId` | UUID | Yes | | `createdAt` | Datetime | No | +| `createdByPrincipal` | UUID | Yes | | `databaseId` | UUID | Yes | | `description` | String | Yes | | `id` | UUID | No | @@ -2429,18 +2866,19 @@ CRUD operations for Site records. | `resourceId` | UUID | Yes | | `title` | String | Yes | | `updatedAt` | Datetime | No | +| `updatedByPrincipal` | UUID | Yes | **Operations:** ```typescript // List all site records -const items = await db.site.findMany({ select: { activeCommitId: true, bucketId: true, createdAt: true, databaseId: true, description: true, id: true, installationId: true, installationMemberSlug: true, isPublished: true, name: true, resourceId: true, title: true, updatedAt: true } }).execute(); +const items = await db.site.findMany({ select: { activeCommitId: true, bucketId: true, createdAt: true, createdByPrincipal: true, databaseId: true, description: true, id: true, installationId: true, installationMemberSlug: true, isPublished: true, name: true, resourceId: true, title: true, updatedAt: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.site.findOne({ id: '', select: { activeCommitId: true, bucketId: true, createdAt: true, databaseId: true, description: true, id: true, installationId: true, installationMemberSlug: true, isPublished: true, name: true, resourceId: true, title: true, updatedAt: true } }).execute(); +const item = await db.site.findOne({ id: '', select: { activeCommitId: true, bucketId: true, createdAt: true, createdByPrincipal: true, databaseId: true, description: true, id: true, installationId: true, installationMemberSlug: true, isPublished: true, name: true, resourceId: true, title: true, updatedAt: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.site.create({ data: { activeCommitId: '', bucketId: '', databaseId: '', description: '', installationId: '', installationMemberSlug: '', isPublished: '', name: '', resourceId: '', title: '' }, select: { id: true } }).execute(); +const created = await db.site.create({ data: { activeCommitId: '', bucketId: '', createdByPrincipal: '', databaseId: '', description: '', installationId: '', installationMemberSlug: '', isPublished: '', name: '', resourceId: '', title: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update const updated = await db.site.update({ where: { id: '' }, data: { activeCommitId: '' }, select: { id: true } }).execute(); @@ -2463,6 +2901,7 @@ CRUD operations for SiteDeepLink records. | `fallbackUrl` | String | Yes | | `id` | UUID | No | | `metadata` | JSON | Yes | +| `pageId` | UUID | Yes | | `siteId` | UUID | Yes | | `slug` | String | Yes | | `updatedAt` | Datetime | No | @@ -2472,13 +2911,13 @@ CRUD operations for SiteDeepLink records. ```typescript // List all siteDeepLink records -const items = await db.siteDeepLink.findMany({ select: { appPath: true, createdAt: true, databaseId: true, fallbackUrl: true, id: true, metadata: true, siteId: true, slug: true, updatedAt: true, webPath: true } }).execute(); +const items = await db.siteDeepLink.findMany({ select: { appPath: true, createdAt: true, databaseId: true, fallbackUrl: true, id: true, metadata: true, pageId: true, siteId: true, slug: true, updatedAt: true, webPath: true } }).execute(); // Get one by id -const item = await db.siteDeepLink.findOne({ id: '', select: { appPath: true, createdAt: true, databaseId: true, fallbackUrl: true, id: true, metadata: true, siteId: true, slug: true, updatedAt: true, webPath: true } }).execute(); +const item = await db.siteDeepLink.findOne({ id: '', select: { appPath: true, createdAt: true, databaseId: true, fallbackUrl: true, id: true, metadata: true, pageId: true, siteId: true, slug: true, updatedAt: true, webPath: true } }).execute(); // Create -const created = await db.siteDeepLink.create({ data: { appPath: '', databaseId: '', fallbackUrl: '', metadata: '', siteId: '', slug: '', webPath: '' }, select: { id: true } }).execute(); +const created = await db.siteDeepLink.create({ data: { appPath: '', databaseId: '', fallbackUrl: '', metadata: '', pageId: '', siteId: '', slug: '', webPath: '' }, select: { id: true } }).execute(); // Update const updated = await db.siteDeepLink.update({ where: { id: '' }, data: { appPath: '' }, select: { id: true } }).execute(); @@ -2541,6 +2980,7 @@ CRUD operations for SiteMetadatum records. | `logo` | ConstructiveInternalTypeImage | Yes | | `ogImage` | ConstructiveInternalTypeImage | Yes | | `robots` | String | Yes | +| `robotsSeededFrom` | JSON | Yes | | `siteId` | UUID | Yes | | `storeId` | UUID | Yes | | `title` | String | Yes | @@ -2550,13 +2990,13 @@ CRUD operations for SiteMetadatum records. ```typescript // List all siteMetadatum records -const items = await db.siteMetadatum.findMany({ select: { appleTouchIcon: true, canonicalUrl: true, commitId: true, createdAt: true, databaseId: true, description: true, favicon: true, id: true, logo: true, ogImage: true, robots: true, siteId: true, storeId: true, title: true, updatedAt: true } }).execute(); +const items = await db.siteMetadatum.findMany({ select: { appleTouchIcon: true, canonicalUrl: true, commitId: true, createdAt: true, databaseId: true, description: true, favicon: true, id: true, logo: true, ogImage: true, robots: true, robotsSeededFrom: true, siteId: true, storeId: true, title: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.siteMetadatum.findOne({ id: '', select: { appleTouchIcon: true, canonicalUrl: true, commitId: true, createdAt: true, databaseId: true, description: true, favicon: true, id: true, logo: true, ogImage: true, robots: true, siteId: true, storeId: true, title: true, updatedAt: true } }).execute(); +const item = await db.siteMetadatum.findOne({ id: '', select: { appleTouchIcon: true, canonicalUrl: true, commitId: true, createdAt: true, databaseId: true, description: true, favicon: true, id: true, logo: true, ogImage: true, robots: true, robotsSeededFrom: true, siteId: true, storeId: true, title: true, updatedAt: true } }).execute(); // Create -const created = await db.siteMetadatum.create({ data: { appleTouchIcon: '', canonicalUrl: '', commitId: '', databaseId: '', description: '', favicon: '', logo: '', ogImage: '', robots: '', siteId: '', storeId: '', title: '' }, select: { id: true } }).execute(); +const created = await db.siteMetadatum.create({ data: { appleTouchIcon: '', canonicalUrl: '', commitId: '', databaseId: '', description: '', favicon: '', logo: '', ogImage: '', robots: '', robotsSeededFrom: '', siteId: '', storeId: '', title: '' }, select: { id: true } }).execute(); // Update const updated = await db.siteMetadatum.update({ where: { id: '' }, data: { appleTouchIcon: '' }, select: { id: true } }).execute(); @@ -2602,6 +3042,42 @@ const updated = await db.siteModule.update({ where: { id: '' }, data: { da const deleted = await db.siteModule.delete({ where: { id: '' } }).execute(); ``` +### `db.siteRelease` + +CRUD operations for SiteRelease records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `commitId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `databaseId` | UUID | Yes | +| `id` | UUID | No | +| `manifest` | JSON | Yes | +| `siteId` | UUID | Yes | +| `storeId` | UUID | Yes | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all siteRelease records +const items = await db.siteRelease.findMany({ select: { commitId: true, createdAt: true, databaseId: true, id: true, manifest: true, siteId: true, storeId: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.siteRelease.findOne({ id: '', select: { commitId: true, createdAt: true, databaseId: true, id: true, manifest: true, siteId: true, storeId: true, updatedAt: true } }).execute(); + +// Create +const created = await db.siteRelease.create({ data: { commitId: '', databaseId: '', manifest: '', siteId: '', storeId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.siteRelease.update({ where: { id: '' }, data: { commitId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.siteRelease.delete({ where: { id: '' } }).execute(); +``` + ### `db.siteTheme` CRUD operations for SiteTheme records. @@ -2895,25 +3371,31 @@ CRUD operations for Trigger records. | `createdAt` | Datetime | No | | `databaseId` | UUID | Yes | | `event` | String | Yes | +| `events` | String | Yes | +| `forEachRow` | Boolean | Yes | +| `functionId` | UUID | Yes | | `functionName` | String | Yes | | `id` | UUID | No | +| `kind` | String | Yes | | `name` | String | Yes | | `smartTags` | JSON | Yes | | `tableId` | UUID | Yes | | `tags` | String | Yes | +| `timing` | String | Yes | | `updatedAt` | Datetime | No | +| `whenAst` | JSON | Yes | **Operations:** ```typescript // List all trigger records -const items = await db.trigger.findMany({ select: { category: true, createdAt: true, databaseId: true, event: true, functionName: true, id: true, name: true, smartTags: true, tableId: true, tags: true, updatedAt: true } }).execute(); +const items = await db.trigger.findMany({ select: { category: true, createdAt: true, databaseId: true, event: true, events: true, forEachRow: true, functionId: true, functionName: true, id: true, kind: true, name: true, smartTags: true, tableId: true, tags: true, timing: true, updatedAt: true, whenAst: true } }).execute(); // Get one by id -const item = await db.trigger.findOne({ id: '', select: { category: true, createdAt: true, databaseId: true, event: true, functionName: true, id: true, name: true, smartTags: true, tableId: true, tags: true, updatedAt: true } }).execute(); +const item = await db.trigger.findOne({ id: '', select: { category: true, createdAt: true, databaseId: true, event: true, events: true, forEachRow: true, functionId: true, functionName: true, id: true, kind: true, name: true, smartTags: true, tableId: true, tags: true, timing: true, updatedAt: true, whenAst: true } }).execute(); // Create -const created = await db.trigger.create({ data: { category: '', databaseId: '', event: '', functionName: '', name: '', smartTags: '', tableId: '', tags: '' }, select: { id: true } }).execute(); +const created = await db.trigger.create({ data: { category: '', databaseId: '', event: '', events: '', forEachRow: '', functionId: '', functionName: '', kind: '', name: '', smartTags: '', tableId: '', tags: '', timing: '', whenAst: '' }, select: { id: true } }).execute(); // Update const updated = await db.trigger.update({ where: { id: '' }, data: { category: '' }, select: { id: true } }).execute(); @@ -3298,9 +3780,105 @@ applyRegistryDefaults const result = await db.query.applyRegistryDefaults({ data: '', nodeType: '' }).execute(); ``` -### `db.query.resolveDeepLink` +### `db.query.getSitePreviewCommit` -resolveDeepLink +getSitePreviewCommit + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `targetName` | String | + | `targetSiteId` | UUID | + +```typescript +const result = await db.query.getSitePreviewCommit({ targetName: '', targetSiteId: '' }).execute(); +``` + +### `db.query.getSiteReleaseManifest` + +getSiteReleaseManifest + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `targetCommitId` | UUID | + | `targetSiteId` | UUID | + +```typescript +const result = await db.query.getSiteReleaseManifest({ targetCommitId: '', targetSiteId: '' }).execute(); +``` + +### `db.query.pagePublished` + +pagePublished + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `pageSlug` | String | + | `targetSiteId` | UUID | + +```typescript +const result = await db.query.pagePublished({ pageSlug: '', targetSiteId: '' }).execute(); +``` + +### `db.query.platformGetSitePreviewCommit` + +platformGetSitePreviewCommit + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `targetName` | String | + | `targetSiteId` | UUID | + +```typescript +const result = await db.query.platformGetSitePreviewCommit({ targetName: '', targetSiteId: '' }).execute(); +``` + +### `db.query.platformGetSiteReleaseManifest` + +platformGetSiteReleaseManifest + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `targetCommitId` | UUID | + | `targetSiteId` | UUID | + +```typescript +const result = await db.query.platformGetSiteReleaseManifest({ targetCommitId: '', targetSiteId: '' }).execute(); +``` + +### `db.query.platformPagePublished` + +platformPagePublished + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `pageSlug` | String | + | `targetSiteId` | UUID | + +```typescript +const result = await db.query.platformPagePublished({ pageSlug: '', targetSiteId: '' }).execute(); +``` + +### `db.query.platformSitesDeepLinkUrl` + +platformSitesDeepLinkUrl - **Type:** query - **Arguments:** @@ -3311,24 +3889,54 @@ resolveDeepLink | `targetSiteId` | UUID | ```typescript -const result = await db.query.resolveDeepLink({ linkSlug: '', targetSiteId: '' }).execute(); +const result = await db.query.platformSitesDeepLinkUrl({ linkSlug: '', targetSiteId: '' }).execute(); ``` -### `db.query.resolveHttpRoute` +### `db.query.platformSitesSiteOrigin` -resolveHttpRoute +platformSitesSiteOrigin - **Type:** query - **Arguments:** | Argument | Type | |----------|------| - | `requestHost` | String | - | `requestMethod` | String | - | `requestPath` | String | + | `targetSiteId` | UUID | + +```typescript +const result = await db.query.platformSitesSiteOrigin({ targetSiteId: '' }).execute(); +``` + +### `db.query.platformVerifySitePreviewToken` + +platformVerifySitePreviewToken + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `siteId` | UUID | + | `token` | String | + +```typescript +const result = await db.query.platformVerifySitePreviewToken({ siteId: '', token: '' }).execute(); +``` + +### `db.query.resolveDeepLink` + +resolveDeepLink + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `linkSlug` | String | + | `targetSiteId` | UUID | ```typescript -const result = await db.query.resolveHttpRoute({ requestHost: '', requestMethod: '', requestPath: '' }).execute(); +const result = await db.query.resolveDeepLink({ linkSlug: '', targetSiteId: '' }).execute(); ``` ### `db.query.resolveRoute` @@ -3363,6 +3971,53 @@ resolveSiteAppLinks const result = await db.query.resolveSiteAppLinks({ targetSiteId: '' }).execute(); ``` +### `db.query.sitesDeepLinkUrl` + +sitesDeepLinkUrl + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `linkSlug` | String | + | `targetSiteId` | UUID | + +```typescript +const result = await db.query.sitesDeepLinkUrl({ linkSlug: '', targetSiteId: '' }).execute(); +``` + +### `db.query.sitesSiteOrigin` + +sitesSiteOrigin + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `targetSiteId` | UUID | + +```typescript +const result = await db.query.sitesSiteOrigin({ targetSiteId: '' }).execute(); +``` + +### `db.query.verifySitePreviewToken` + +verifySitePreviewToken + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `siteId` | UUID | + | `token` | String | + +```typescript +const result = await db.query.verifySitePreviewToken({ siteId: '', token: '' }).execute(); +``` + ### `db.mutation.acceptDatabaseTransfer` acceptDatabaseTransfer @@ -3408,6 +4063,21 @@ cancelDatabaseTransfer const result = await db.mutation.cancelDatabaseTransfer({ input: { transferId: '' } }).execute(); ``` +### `db.mutation.deleteSitePreview` + +deleteSitePreview + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | DeleteSitePreviewInput (required) | + +```typescript +const result = await db.mutation.deleteSitePreview({ input: { targetName: '', targetSiteId: '' } }).execute(); +``` + ### `db.mutation.domainsAssignSubdomain` domainsAssignSubdomain @@ -3423,6 +4093,51 @@ domainsAssignSubdomain const result = await db.mutation.domainsAssignSubdomain({ input: { apex: '', label: '', maxAttempts: '' } }).execute(); ``` +### `db.mutation.mintSitePreviewToken` + +mintSitePreviewToken + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | MintSitePreviewTokenInput (required) | + +```typescript +const result = await db.mutation.mintSitePreviewToken({ input: { siteId: '', target: '', targetKind: '', ttlSeconds: '' } }).execute(); +``` + +### `db.mutation.pagesInstallPages` + +pagesInstallPages + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | PagesInstallPagesInput (required) | + +```typescript +const result = await db.mutation.pagesInstallPages({ input: { entityId: '', pagesPreset: '', siteId: '' } }).execute(); +``` + +### `db.mutation.platformDeleteSitePreview` + +platformDeleteSitePreview + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | PlatformDeleteSitePreviewInput (required) | + +```typescript +const result = await db.mutation.platformDeleteSitePreview({ input: { targetName: '', targetSiteId: '' } }).execute(); +``` + ### `db.mutation.platformDomainsAssignSubdomain` platformDomainsAssignSubdomain @@ -3438,6 +4153,111 @@ platformDomainsAssignSubdomain const result = await db.mutation.platformDomainsAssignSubdomain({ input: { apex: '', label: '', maxAttempts: '' } }).execute(); ``` +### `db.mutation.platformMintSitePreviewToken` + +platformMintSitePreviewToken + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | PlatformMintSitePreviewTokenInput (required) | + +```typescript +const result = await db.mutation.platformMintSitePreviewToken({ input: { siteId: '', target: '', targetKind: '', ttlSeconds: '' } }).execute(); +``` + +### `db.mutation.platformPagesInstallPages` + +platformPagesInstallPages + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | PlatformPagesInstallPagesInput (required) | + +```typescript +const result = await db.mutation.platformPagesInstallPages({ input: { entityId: '', pagesPreset: '', siteId: '' } }).execute(); +``` + +### `db.mutation.platformProvisionSitePreview` + +platformProvisionSitePreview + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | PlatformProvisionSitePreviewInput (required) | + +```typescript +const result = await db.mutation.platformProvisionSitePreview({ input: { apex: '', commitId: '', name: '', siteId: '' } }).execute(); +``` + +### `db.mutation.platformSetSitePreview` + +platformSetSitePreview + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | PlatformSetSitePreviewInput (required) | + +```typescript +const result = await db.mutation.platformSetSitePreview({ input: { targetCommitId: '', targetName: '', targetSiteId: '' } }).execute(); +``` + +### `db.mutation.platformSiteMetadataInstallRobots` + +platformSiteMetadataInstallRobots + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | PlatformSiteMetadataInstallRobotsInput (required) | + +```typescript +const result = await db.mutation.platformSiteMetadataInstallRobots({ input: { entityId: '', robotsPreset: '', siteId: '' } }).execute(); +``` + +### `db.mutation.platformSitesInstallContentPreset` + +platformSitesInstallContentPreset + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | PlatformSitesInstallContentPresetInput (required) | + +```typescript +const result = await db.mutation.platformSitesInstallContentPreset({ input: { entityId: '', presetKind: '', presetSlug: '', siteId: '' } }).execute(); +``` + +### `db.mutation.platformSitesInstallMantra` + +platformSitesInstallMantra + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | PlatformSitesInstallMantraInput (required) | + +```typescript +const result = await db.mutation.platformSitesInstallMantra({ input: { entityId: '', routePreset: '', siteId: '' } }).execute(); +``` + ### `db.mutation.platformSitesProvisionStaticSite` platformSitesProvisionStaticSite @@ -3455,10 +4275,11 @@ const result = await db.mutation.platformSitesProvisionStaticSite({ input: '', ownerId: '' } }).execute(); ``` +### `db.mutation.provisionSitePreview` + +provisionSitePreview + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | ProvisionSitePreviewInput (required) | + +```typescript +const result = await db.mutation.provisionSitePreview({ input: { apex: '', commitId: '', name: '', siteId: '' } }).execute(); +``` + ### `db.mutation.rejectDatabaseTransfer` rejectDatabaseTransfer @@ -3490,11 +4326,12 @@ const result = await db.mutation.rejectDatabaseTransfer({ input: { transferId: ' 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. +Pass exactly one of preset_slug or modules. Pass organization_id to have the organization own the database from the start (the caller must be an owner of that organization); the requesting user is still the identity bootstrapped into the new database. Omit it for a personal database. 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); + SELECT * FROM metaschema_public.request_database('team_app', 'example.com', preset_slug := 'full', organization_id := '00000000-0000-0000-0000-000000000000'::uuid); - **Type:** mutation - **Arguments:** @@ -3522,6 +4359,66 @@ setFieldOrder const result = await db.mutation.setFieldOrder({ input: { fieldIds: '' } }).execute(); ``` +### `db.mutation.setSitePreview` + +setSitePreview + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SetSitePreviewInput (required) | + +```typescript +const result = await db.mutation.setSitePreview({ input: { targetCommitId: '', targetName: '', targetSiteId: '' } }).execute(); +``` + +### `db.mutation.siteMetadataInstallRobots` + +siteMetadataInstallRobots + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SiteMetadataInstallRobotsInput (required) | + +```typescript +const result = await db.mutation.siteMetadataInstallRobots({ input: { entityId: '', robotsPreset: '', siteId: '' } }).execute(); +``` + +### `db.mutation.sitesInstallContentPreset` + +sitesInstallContentPreset + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SitesInstallContentPresetInput (required) | + +```typescript +const result = await db.mutation.sitesInstallContentPreset({ input: { entityId: '', presetKind: '', presetSlug: '', siteId: '' } }).execute(); +``` + +### `db.mutation.sitesInstallMantra` + +sitesInstallMantra + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SitesInstallMantraInput (required) | + +```typescript +const result = await db.mutation.sitesInstallMantra({ input: { entityId: '', routePreset: '', siteId: '' } }).execute(); +``` + ### `db.mutation.sitesProvisionStaticSite` sitesProvisionStaticSite diff --git a/sdk/constructive-cli/src/api/orm/index.ts b/sdk/constructive-cli/src/api/orm/index.ts index 98c5108b79..fb9f4c5b7e 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'; @@ -30,20 +33,25 @@ import { ForeignKeyConstraintBehaviorModel } from './models/foreignKeyConstraint import { ForeignKeyConstraintModel } from './models/foreignKeyConstraint'; import { FullTextSearchModel } from './models/fullTextSearch'; import { FunctionModel } from './models/function'; +import { GetSitePreviewsRecordModel } from './models/getSitePreviewsRecord'; import { HostnameBindingModel } from './models/hostnameBinding'; -import { HttpRouteModel } from './models/httpRoute'; +import { IdentityProviderRegistryModel } from './models/identityProviderRegistry'; import { IndexModel } from './models/index'; 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 { PlatformGetSitePreviewsRecordModel } from './models/platformGetSitePreviewsRecord'; import { PlatformManagedDomainModel } from './models/platformManagedDomain'; import { PlatformPageModel } from './models/platformPage'; import { PlatformSiteAppLinkModel } from './models/platformSiteAppLink'; @@ -52,11 +60,13 @@ import { PlatformSiteDeepLinkModel } from './models/platformSiteDeepLink'; import { PlatformSiteErrorPageModel } from './models/platformSiteErrorPage'; import { PlatformSiteMetadatumModel } from './models/platformSiteMetadatum'; import { PlatformSiteModuleModel } from './models/platformSiteModule'; +import { PlatformSiteReleaseModel } from './models/platformSiteRelease'; import { PlatformSiteThemeModel } from './models/platformSiteTheme'; import { PlatformSiteWebConfigModel } from './models/platformSiteWebConfig'; import { PolicyModel } from './models/policy'; import { PrimaryKeyConstraintModel } from './models/primaryKeyConstraint'; import { PubkeySettingModel } from './models/pubkeySetting'; +import { RedirectModel } from './models/redirect'; import { RlsSettingModel } from './models/rlsSetting'; import { RouteBindingModel } from './models/routeBinding'; import { RouteModel } from './models/route'; @@ -68,6 +78,7 @@ import { SiteDeepLinkModel } from './models/siteDeepLink'; import { SiteErrorPageModel } from './models/siteErrorPage'; import { SiteMetadatumModel } from './models/siteMetadatum'; import { SiteModuleModel } from './models/siteModule'; +import { SiteReleaseModel } from './models/siteRelease'; import { SiteThemeModel } from './models/siteTheme'; import { SiteWebConfigModel } from './models/siteWebConfig'; import { SpatialRelationModel } from './models/spatialRelation'; @@ -120,9 +131,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 +147,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), @@ -145,20 +159,25 @@ export function createClient(config: OrmClientConfig) { foreignKeyConstraint: new ForeignKeyConstraintModel(client), fullTextSearch: new FullTextSearchModel(client), function: new FunctionModel(client), + getSitePreviewsRecord: new GetSitePreviewsRecordModel(client), hostnameBinding: new HostnameBindingModel(client), - httpRoute: new HttpRouteModel(client), + identityProviderRegistry: new IdentityProviderRegistryModel(client), index: new IndexModel(client), managedDomain: new ManagedDomainModel(client), 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), + platformGetSitePreviewsRecord: new PlatformGetSitePreviewsRecordModel(client), platformManagedDomain: new PlatformManagedDomainModel(client), platformPage: new PlatformPageModel(client), platformSiteAppLink: new PlatformSiteAppLinkModel(client), @@ -167,11 +186,13 @@ export function createClient(config: OrmClientConfig) { platformSiteErrorPage: new PlatformSiteErrorPageModel(client), platformSiteMetadatum: new PlatformSiteMetadatumModel(client), platformSiteModule: new PlatformSiteModuleModel(client), + platformSiteRelease: new PlatformSiteReleaseModel(client), platformSiteTheme: new PlatformSiteThemeModel(client), platformSiteWebConfig: new PlatformSiteWebConfigModel(client), policy: new PolicyModel(client), primaryKeyConstraint: new PrimaryKeyConstraintModel(client), pubkeySetting: new PubkeySettingModel(client), + redirect: new RedirectModel(client), rlsSetting: new RlsSettingModel(client), routeBinding: new RouteBindingModel(client), route: new RouteModel(client), @@ -183,6 +204,7 @@ export function createClient(config: OrmClientConfig) { siteErrorPage: new SiteErrorPageModel(client), siteMetadatum: new SiteMetadatumModel(client), siteModule: new SiteModuleModel(client), + siteRelease: new SiteReleaseModel(client), siteTheme: new SiteThemeModel(client), siteWebConfig: new SiteWebConfigModel(client), spatialRelation: new SpatialRelationModel(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..258cd246b2 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; @@ -265,6 +285,8 @@ export interface ApiSetting { enableDirectUploads?: boolean | null; /** Override: enable internationalization plugin (NULL = inherit from database_settings) */ enableI18N?: boolean | null; + /** Override: enable GraphQL schema introspection queries (NULL = inherit from database_settings) */ + enableIntrospection?: boolean | null; /** Override: enable LLM/AI integration features (NULL = inherit from database_settings) */ enableLlm?: boolean | null; /** Override: enable ltree hierarchical data type (NULL = inherit from database_settings) */ @@ -280,32 +302,32 @@ export interface ApiSetting { /** Override: enable unified search (NULL = inherit from database_settings) */ enableSearch?: boolean | null; id: string; + /** Override: idle-in-transaction timeout in milliseconds (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + idleInTransactionTimeoutMs?: string | null; + /** Override: lock acquisition timeout in milliseconds (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + lockTimeoutMs?: string | null; + /** Override: maximum concurrently executing GraphQL requests (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + maxConcurrentRequests?: number | null; + /** Override: maximum page size for connection queries (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + maxPageSize?: number | null; + /** Override: maximum GraphQL query cost (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + maxQueryCost?: number | null; + /** Override: maximum GraphQL query depth (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + maxQueryDepth?: number | null; + /** Override: maximum time in milliseconds a request may wait for a concurrency slot (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + maxQueueWaitMs?: number | null; + /** Override: maximum request body size in bytes (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + maxRequestBytes?: number | null; /** Extensible JSON for additional per-API settings that do not have dedicated columns */ options?: Record | null; + /** Override: rate-limit burst allowance (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + rateLimitBurst?: number | null; + /** Override: request rate limit in requests per minute (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + rateLimitRpm?: number | null; /** Override: GraphQL statement timeout in milliseconds (NULL = inherit from database_settings). Clamped by the plan cap at read time. */ 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; @@ -380,6 +402,8 @@ export interface DatabaseSetting { databaseId?: string | null; /** Enable aggregate queries (sum, avg, min, max, etc.) in the GraphQL API */ enableAggregates?: boolean | null; + /** Enable billing: financial provider actions (customer/subscription/usage sync, overdue sweep) are refused while false. Activation gate for the billing rollout — flipped only after billing:doctor passes. */ + enableBilling?: boolean | null; /** Enable bulk mutation operations (insert, upsert, update, delete) in the GraphQL API */ enableBulk?: boolean | null; /** Enable connection filter (where argument) in the GraphQL API */ @@ -388,6 +412,8 @@ export interface DatabaseSetting { enableDirectUploads?: boolean | null; /** Enable internationalization plugin (localeStrings field, translation table discovery) in the GraphQL API */ enableI18N?: boolean | null; + /** Enable GraphQL schema introspection queries in the GraphQL API. A tenant may only ever lower a bound, so the stored default is the permissive end: turning introspection off is the opt-in. */ + enableIntrospection?: boolean | null; /** Enable LLM/AI integration features in the GraphQL API */ enableLlm?: boolean | null; /** Enable ltree hierarchical data type support in the GraphQL API */ @@ -403,10 +429,30 @@ export interface DatabaseSetting { /** Enable unified search (tsvector, BM25, pg_trgm, pgvector) in the GraphQL API */ enableSearch?: boolean | null; id: string; + /** Scope-wide default idle-in-transaction timeout in milliseconds; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. */ + idleInTransactionTimeoutMs?: string | null; /** Key/value pairs for selecting and filtering settings */ labels?: Record | null; + /** Scope-wide default lock acquisition timeout in milliseconds; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. */ + lockTimeoutMs?: string | null; + /** Scope-wide default maximum concurrently executing GraphQL requests; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. */ + maxConcurrentRequests?: number | null; + /** Scope-wide default maximum page size for connection queries; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. */ + maxPageSize?: number | null; + /** Scope-wide default maximum GraphQL query cost; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. */ + maxQueryCost?: number | null; + /** Scope-wide default maximum GraphQL query depth; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. */ + maxQueryDepth?: number | null; + /** Scope-wide default maximum time in milliseconds a request may wait for a concurrency slot; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. */ + maxQueueWaitMs?: number | null; + /** Scope-wide default maximum request body size in bytes; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. */ + maxRequestBytes?: number | null; /** Extensible JSON for additional settings that do not have dedicated columns */ options?: Record | null; + /** Scope-wide default rate-limit burst allowance; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. */ + rateLimitBurst?: number | null; + /** Scope-wide default request rate limit in requests per minute; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. */ + rateLimitRpm?: number | null; /** Scope-wide default GraphQL statement timeout in milliseconds; NULL inherits the platform default. Clamped by the plan cap at read time. */ statementTimeoutMs?: string | null; updatedAt?: string | null; @@ -440,6 +486,7 @@ export interface Derive { createdAt?: string | null; databaseId?: string | null; id: string; + includeGrants?: boolean | null; includeMutations?: boolean | null; kind?: string | null; policyPrefix?: string | null; @@ -452,6 +499,7 @@ export interface Domain { /** Module-specific configuration for this hostname */ config?: Record | null; createdAt?: string | null; + createdByPrincipal?: string | null; /** Database that owns this resource (database-scoped isolation) */ databaseId?: string | null; /** Lowercase fully-qualified hostname; wildcards use the *.parent form */ @@ -472,6 +520,7 @@ export interface Domain { /** Certificate lifecycle state for this hostname */ tlsStatus?: string | null; updatedAt?: string | null; + updatedByPrincipal?: string | null; /** Ownership verification state of this hostname */ verificationStatus?: string | null; /** When ownership verification last succeeded */ @@ -479,7 +528,7 @@ export interface Domain { } /** Audit trail of domain lifecycle events */ export interface DomainEvent { - /** User who triggered this event, if any */ + /** User who triggered this event; NULL only when no human actor was proven */ actorId?: string | null; createdAt?: string | null; /** Database that owns this resource (database-scoped isolation) */ @@ -546,6 +595,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; @@ -680,10 +799,27 @@ export interface FullTextSearch { weights?: string[] | null; } export interface Function { + apiExposed?: boolean | null; + arguments?: Record | null; + bodyAst?: Record | null; + category?: ObjectCategory | null; + data?: Record | null; databaseId?: string | null; + functionType?: string | null; id: string; + isStrict?: boolean | null; + kind?: string | null; name?: string | null; + returns?: Record | null; schemaId?: string | null; + securityInvoker?: boolean | null; + smartTags?: Record | null; + tags?: string[] | null; + volatility?: string | null; +} +export interface GetSitePreviewsRecord { + commitId?: string | null; + name?: string | null; } /** Compiled hostname index maintained by domain sync triggers; read only through the resolver */ export interface HostnameBinding { @@ -707,29 +843,15 @@ export interface HostnameBinding { /** Ownership verification state compiled from the domain row */ verificationStatus?: string | null; } -/** Request-time HTTP routing authority: registered domain plus path prefix and optional method to a typed target */ -export interface HttpRoute { - createdAt?: string | null; - createdBy?: string | null; - /** Database that owns this resource (database-scoped isolation) */ - databaseId?: string | null; - /** Registered host in the scoped routing domains table */ - domainId?: string | null; - id: string; - /** Whether the resolver may select this route */ - isActive?: boolean | null; - /** Optional uppercase HTTP method; NULL matches every method */ - method?: string | null; - /** Normalized request path prefix; longest matching prefix wins */ - path?: string | null; - /** Tie-break precedence after path length and method specificity */ - priority?: number | null; - /** Target row of the type named by target_kind; existence enforced by trigger */ - targetId?: string | null; - /** Discriminator selecting the type of target_id */ - targetKind?: string | null; - updatedAt?: string | null; - updatedBy?: string | null; +export interface IdentityProviderRegistry { + authorizationUrl?: string | null; + displayName?: string | null; + issuerUrl?: string | null; + kind?: string | null; + scopes?: string[] | null; + slug?: string | null; + tokenUrl?: string | null; + userinfoUrl?: string | null; } export interface Index { accessMethod?: string | null; @@ -742,6 +864,7 @@ export interface Index { indexParams?: Record | null; isUnique?: boolean | null; name?: string | null; + nullsNotDistinct?: boolean | null; opClasses?: string[] | null; options?: Record | null; smartTags?: Record | null; @@ -759,6 +882,7 @@ export interface ManagedDomain { /** Certificate issuance state for this managed hostname */ certStatus?: string | null; createdAt?: string | null; + createdByPrincipal?: string | null; /** Database that owns this resource (database-scoped isolation) */ databaseId?: string | null; /** Lowercase fully-qualified managed hostname; wildcards use the *.parent form */ @@ -771,6 +895,7 @@ export interface ManagedDomain { /** TLS provisioning state for this managed hostname */ tlsStatus?: string | null; updatedAt?: string | null; + updatedByPrincipal?: string | null; /** DNS ownership verification state of this managed hostname */ verificationStatus?: string | null; /** When ownership verification last succeeded */ @@ -797,6 +922,8 @@ export interface Page { databaseId?: string | null; /** Unique page identifier */ id: string; + /** Provenance of a seeded page: the content preset (kind, slug, catalog commit_id) it was installed from, or NULL when authored directly */ + seededFrom?: Record | null; /** Site surface this page belongs to; each site owns its own infra store and pages live at path [page, slug] within it */ siteId?: string | null; /** Page slug (unique per site) */ @@ -821,6 +948,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 */ @@ -846,6 +991,8 @@ export interface PlatformApiSetting { enableDirectUploads?: boolean | null; /** Override: enable internationalization plugin (NULL = inherit from database_settings) */ enableI18N?: boolean | null; + /** Override: enable GraphQL schema introspection queries (NULL = inherit from database_settings) */ + enableIntrospection?: boolean | null; /** Override: enable LLM/AI integration features (NULL = inherit from database_settings) */ enableLlm?: boolean | null; /** Override: enable ltree hierarchical data type (NULL = inherit from database_settings) */ @@ -861,30 +1008,32 @@ export interface PlatformApiSetting { /** Override: enable unified search (NULL = inherit from database_settings) */ enableSearch?: boolean | null; id: string; + /** Override: idle-in-transaction timeout in milliseconds (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + idleInTransactionTimeoutMs?: string | null; + /** Override: lock acquisition timeout in milliseconds (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + lockTimeoutMs?: string | null; + /** Override: maximum concurrently executing GraphQL requests (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + maxConcurrentRequests?: number | null; + /** Override: maximum page size for connection queries (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + maxPageSize?: number | null; + /** Override: maximum GraphQL query cost (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + maxQueryCost?: number | null; + /** Override: maximum GraphQL query depth (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + maxQueryDepth?: number | null; + /** Override: maximum time in milliseconds a request may wait for a concurrency slot (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + maxQueueWaitMs?: number | null; + /** Override: maximum request body size in bytes (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + maxRequestBytes?: number | null; /** Extensible JSON for additional per-API settings that do not have dedicated columns */ options?: Record | null; + /** Override: rate-limit burst allowance (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + rateLimitBurst?: number | null; + /** Override: request rate limit in requests per minute (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + rateLimitRpm?: number | null; /** Override: GraphQL statement timeout in milliseconds (NULL = inherit from database_settings). Clamped by the plan cap at read time. */ 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) */ @@ -900,6 +1049,7 @@ export interface PlatformDomain { /** Module-specific configuration for this hostname */ config?: Record | null; createdAt?: string | null; + createdByPrincipal?: string | null; /** Lowercase fully-qualified hostname; wildcards use the *.parent form */ hostname?: string | null; id: string; @@ -918,6 +1068,7 @@ export interface PlatformDomain { /** Certificate lifecycle state for this hostname */ tlsStatus?: string | null; updatedAt?: string | null; + updatedByPrincipal?: string | null; /** Ownership verification state of this hostname */ verificationStatus?: string | null; /** When ownership verification last succeeded */ @@ -925,7 +1076,7 @@ export interface PlatformDomain { } /** Audit trail of domain lifecycle events */ export interface PlatformDomainEvent { - /** User who triggered this event, if any */ + /** User who triggered this event; NULL only when no human actor was proven */ actorId?: string | null; createdAt?: string | null; /** Scoped domain this event belongs to */ @@ -973,6 +1124,74 @@ 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; +} +export interface PlatformGetSitePreviewsRecord { + commitId?: string | null; + name?: 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 */ @@ -982,6 +1201,7 @@ export interface PlatformManagedDomain { /** Certificate issuance state for this managed hostname */ certStatus?: string | null; createdAt?: string | null; + createdByPrincipal?: string | null; /** Lowercase fully-qualified managed hostname; wildcards use the *.parent form */ domain?: string | null; id: string; @@ -992,6 +1212,7 @@ export interface PlatformManagedDomain { /** TLS provisioning state for this managed hostname */ tlsStatus?: string | null; updatedAt?: string | null; + updatedByPrincipal?: string | null; /** DNS ownership verification state of this managed hostname */ verificationStatus?: string | null; /** When ownership verification last succeeded */ @@ -1007,6 +1228,8 @@ export interface PlatformPage { createdAt?: string | null; /** Unique page identifier */ id: string; + /** Provenance of a seeded page: the content preset (kind, slug, catalog commit_id) it was installed from, or NULL when authored directly */ + seededFrom?: Record | null; /** Site surface this page belongs to; each site owns its own infra store and pages live at path [page, slug] within it */ siteId?: string | null; /** Page slug (unique per site) */ @@ -1016,24 +1239,16 @@ export interface PlatformPage { /** Timestamp of last modification */ updatedAt?: string | null; } -/** Native-app deep-link association metadata for a site surface (feeds AASA / assetlinks.json generation) */ +/** Per-host native-app association for a site surface: which app-owned store identity this host serves, and the path patterns it claims (joined with the store identity to render AASA / assetlinks.json) */ export interface PlatformSiteAppLink { - /** App identifier: iOS bundle id or Android package name */ - appIdentifier?: string | null; + /** App-owned store identity this association serves (app_store_identities row in this scope's app plane; the association carries no store facts of its own) */ + appStoreIdentityId?: string | null; createdAt?: string | null; id: string; /** Path patterns this association applies to (AASA paths / Android intent-filter paths) */ pathComponents?: string[] | null; - /** Target platform for this association (ios, android) */ - platform?: string | null; - /** Android signing certificate SHA-256 fingerprints for assetlinks.json */ - sha256CertFingerprints?: string[] | null; /** Site surface this app-link association belongs to */ siteId?: string | null; - /** App/Play store URL for this app (used by install banners and fallbacks) */ - storeUrl?: string | null; - /** Apple Developer team id (iOS); combined with app_identifier to form the AASA appID */ - teamId?: string | null; updatedAt?: string | null; /** Whether to emit the webcredentials service (iOS shared-web-credentials / password autofill) */ webcredentials?: boolean | null; @@ -1042,13 +1257,14 @@ export interface PlatformSiteAppLink { export interface PlatformSite { /** Infra-store commit pinned as the live page content for this site (manual publish pointer; NULL = nothing published yet) */ activeCommitId?: string | null; - /** Catalog bucket that backs this site (static content store; exactly one of bucket_id/resource_id) */ + /** Bucket that backs this site (static content store; exactly one of bucket_id/resource_id) */ bucketId?: string | null; createdAt?: string | null; + createdByPrincipal?: string | null; /** Human-readable site description */ description?: string | null; id: string; - /** Catalog resource_installation (release) that backs this site; the servable member is named by installation_member_slug (exactly one of bucket_id/resource_id/installation_id) */ + /** Resource installation (release) that backs this site; the servable member is named by installation_member_slug (exactly one of bucket_id/resource_id/installation_id) */ installationId?: string | null; /** Slug of the release member (a Service resource) that serves this site; set iff installation_id is set */ installationMemberSlug?: string | null; @@ -1056,11 +1272,12 @@ export interface PlatformSite { isPublished?: boolean | null; /** Owner-local site surface name */ name?: string | null; - /** Catalog resource/service that backs this site (SSR/app Service pinned to one concrete resource row; exactly one of bucket_id/resource_id/installation_id) */ + /** Resource/service that backs this site (SSR/app Service pinned to one concrete resource row; exactly one of bucket_id/resource_id/installation_id) */ resourceId?: string | null; /** Human-readable site title */ title?: string | null; updatedAt?: string | null; + updatedByPrincipal?: string | null; } /** Named, retargetable deep links owned by a site surface (served at the deep-link path prefix; app interception via site_app_links) */ export interface PlatformSiteDeepLink { @@ -1072,6 +1289,8 @@ export interface PlatformSiteDeepLink { id: string; /** Additional link metadata (campaign/UTM parameters, escape hatch) */ metadata?: Record | null; + /** Page this link's web_path resolves to (soft reference into the pages module; NULL for external or non-page targets) */ + pageId?: string | null; /** Site surface this deep link belongs to (the hostname plane that serves it) */ siteId?: string | null; /** Link name unique per site; addressed at the deep-link path prefix (e.g. /l/) */ @@ -1112,6 +1331,8 @@ export interface PlatformSiteMetadatum { ogImage?: ConstructiveInternalTypeImage | null; /** robots meta directive (e.g. index,follow / noindex,nofollow) */ robots?: string | null; + /** Provenance of the robots value: the content preset (kind, slug, catalog commit_id) an install applied, or NULL when it was authored directly */ + robotsSeededFrom?: Record | null; /** Site surface this metadata belongs to */ siteId?: string | null; /** Infra Merkle store holding this row's history (stamped by the versioned trigger) */ @@ -1136,6 +1357,20 @@ export interface PlatformSiteModule { siteId?: string | null; updatedAt?: string | null; } +/** Immutable static-site release manifest head, versioned in the site-owned merkle store */ +export interface PlatformSiteRelease { + /** Infra store commit for the current content (stamped by the versioned trigger on every write) */ + commitId?: string | null; + createdAt?: string | null; + id: string; + /** Release manifest: {"files":{"":{"hash":"<64-hex sha256>","content_type":"...","size":123}},"file_count":N,"total_bytes":N} */ + manifest?: Record | null; + /** Site surface this release manifest belongs to */ + siteId?: string | null; + /** Infra Merkle store holding this row's history (stamped by the versioned trigger) */ + storeId?: string | null; + updatedAt?: string | null; +} /** Theme (colors, fonts, design tokens) for a site surface */ export interface PlatformSiteTheme { /** Infra store commit for the current content (stamped by the versioned trigger on every write) */ @@ -1172,6 +1407,8 @@ export interface PlatformSiteWebConfig { } export interface Policy { category?: ObjectCategory | null; + /** Columns of this policy's table that its expression filters on. Stamped when the policy is derived onto a companion table, so a consumer needing those columns (e.g. a chunking worker copying them from the parent row) reads them here instead of re-walking the node type's parameter schema. */ + columnRefs?: string[] | null; createdAt?: string | null; data?: Record | null; databaseId?: string | null; @@ -1229,6 +1466,26 @@ export interface PubkeySetting { /** Field name used to identify the user in crypto auth functions */ userField?: string | null; } +/** Redirect targets a route can point at; the edge answers with a redirect status instead of a backend */ +export interface Redirect { + createdAt?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; + id: string; + /** Owner-local name for this redirect */ + name?: string | null; + /** Whether the incoming path is appended to the destination */ + preservePath?: boolean | null; + /** Whether the incoming query string is carried to the destination */ + preserveQuery?: boolean | null; + /** HTTP redirect status the edge answers with (301, 302, 307 or 308) */ + statusCode?: number | null; + /** Destination hostname the edge redirects to */ + toHost?: string | null; + /** Destination path; NULL keeps the incoming path (see preserve_path) */ + toPath?: string | null; + updatedAt?: string | null; +} /** RLS module runtime configuration; typed references to the authenticate/current_role function plumbing */ export interface RlsSetting { /** Reference to the authenticate function (FK to metaschema_public.function) */ @@ -1266,12 +1523,16 @@ export interface RouteBinding { path?: string | null; /** Priority compiled from the source route */ priority?: number | null; + /** Site whose surface the source route serves; NULL when it serves no site */ + servingSiteId?: string | null; /** Api catalog row the source route targets */ targetApiId?: string | null; /** Bucket catalog row the source route targets */ targetBucketId?: string | null; /** Function catalog row the source route targets */ targetFunctionId?: string | null; + /** Redirect catalog row the source route targets */ + targetRedirectId?: string | null; /** Resource catalog row (a Service resource) the source route targets */ targetServiceId?: string | null; /** Site catalog row the source route targets */ @@ -1281,6 +1542,8 @@ export interface RouteBinding { } /** Routes binding a domain hostname and path to a typed catalog target */ export interface Route { + /** Whether this route answers callers with no identity. Requires the target function to declare anonymous_callable; default false = an identity is required */ + anonymous?: boolean | null; /** Route metadata; target configuration is read live from the typed catalog, never copied here */ config?: Record | null; createdAt?: string | null; @@ -1295,17 +1558,23 @@ export interface Route { method?: string | null; /** Path prefix this route matches; must begin with / and carry no trailing slash */ path?: string | null; + /** The site preview this route serves; NULL serves the site's published release */ + previewRef?: string | null; /** Higher priority wins between otherwise-equal matches */ priority?: number | null; - /** Api catalog row this route targets; must be owner-matched or visible cross-scope */ + /** Site whose surface this route serves; the serving lane renders as this site. NULL when the route serves no site */ + servingSiteId?: string | null; + /** Api surface this route targets; must be this scope's own api */ targetApiId?: string | null; - /** Bucket catalog row this route targets; must be a public bucket that is owner-matched or visible cross-scope */ + /** Bucket this route targets; must be a public bucket in this scope's own storage plane */ targetBucketId?: string | null; - /** Function catalog row this route targets; must be owner-matched or visible cross-scope */ + /** Function this route targets; must be this scope's own function */ targetFunctionId?: string | null; - /** Resource catalog row (a Service resource) this route targets; must be owner-matched or visible cross-scope */ + /** Redirect this route targets; the edge answers with a redirect status instead of proxying a backend */ + targetRedirectId?: string | null; + /** Resource (a Service resource) this route targets; must be this scope's own resource */ targetServiceId?: string | null; - /** Site catalog row this route targets; must be owner-matched or visible cross-scope */ + /** Site surface this route targets; must be this scope's own site */ targetSiteId?: string | null; updatedAt?: string | null; } @@ -1332,26 +1601,18 @@ export interface SchemaGrant { schemaId?: string | null; updatedAt?: string | null; } -/** Native-app deep-link association metadata for a site surface (feeds AASA / assetlinks.json generation) */ +/** Per-host native-app association for a site surface: which app-owned store identity this host serves, and the path patterns it claims (joined with the store identity to render AASA / assetlinks.json) */ export interface SiteAppLink { - /** App identifier: iOS bundle id or Android package name */ - appIdentifier?: string | null; + /** App-owned store identity this association serves (app_store_identities row in this scope's app plane; the association carries no store facts of its own) */ + appStoreIdentityId?: string | null; createdAt?: string | null; /** Database that owns this resource (database-scoped isolation) */ databaseId?: string | null; id: string; /** Path patterns this association applies to (AASA paths / Android intent-filter paths) */ pathComponents?: string[] | null; - /** Target platform for this association (ios, android) */ - platform?: string | null; - /** Android signing certificate SHA-256 fingerprints for assetlinks.json */ - sha256CertFingerprints?: string[] | null; /** Site surface this app-link association belongs to */ siteId?: string | null; - /** App/Play store URL for this app (used by install banners and fallbacks) */ - storeUrl?: string | null; - /** Apple Developer team id (iOS); combined with app_identifier to form the AASA appID */ - teamId?: string | null; updatedAt?: string | null; /** Whether to emit the webcredentials service (iOS shared-web-credentials / password autofill) */ webcredentials?: boolean | null; @@ -1360,15 +1621,16 @@ export interface SiteAppLink { export interface Site { /** Infra-store commit pinned as the live page content for this site (manual publish pointer; NULL = nothing published yet) */ activeCommitId?: string | null; - /** Catalog bucket that backs this site (static content store; exactly one of bucket_id/resource_id) */ + /** Bucket that backs this site (static content store; exactly one of bucket_id/resource_id) */ bucketId?: string | null; createdAt?: string | null; + createdByPrincipal?: string | null; /** Database that owns this resource (database-scoped isolation) */ databaseId?: string | null; /** Human-readable site description */ description?: string | null; id: string; - /** Catalog resource_installation (release) that backs this site; the servable member is named by installation_member_slug (exactly one of bucket_id/resource_id/installation_id) */ + /** Resource installation (release) that backs this site; the servable member is named by installation_member_slug (exactly one of bucket_id/resource_id/installation_id) */ installationId?: string | null; /** Slug of the release member (a Service resource) that serves this site; set iff installation_id is set */ installationMemberSlug?: string | null; @@ -1376,11 +1638,12 @@ export interface Site { isPublished?: boolean | null; /** Owner-local site surface name */ name?: string | null; - /** Catalog resource/service that backs this site (SSR/app Service pinned to one concrete resource row; exactly one of bucket_id/resource_id/installation_id) */ + /** Resource/service that backs this site (SSR/app Service pinned to one concrete resource row; exactly one of bucket_id/resource_id/installation_id) */ resourceId?: string | null; /** Human-readable site title */ title?: string | null; updatedAt?: string | null; + updatedByPrincipal?: string | null; } /** Named, retargetable deep links owned by a site surface (served at the deep-link path prefix; app interception via site_app_links) */ export interface SiteDeepLink { @@ -1394,6 +1657,8 @@ export interface SiteDeepLink { id: string; /** Additional link metadata (campaign/UTM parameters, escape hatch) */ metadata?: Record | null; + /** Page this link's web_path resolves to (soft reference into the pages module; NULL for external or non-page targets) */ + pageId?: string | null; /** Site surface this deep link belongs to (the hostname plane that serves it) */ siteId?: string | null; /** Link name unique per site; addressed at the deep-link path prefix (e.g. /l/) */ @@ -1438,6 +1703,8 @@ export interface SiteMetadatum { ogImage?: ConstructiveInternalTypeImage | null; /** robots meta directive (e.g. index,follow / noindex,nofollow) */ robots?: string | null; + /** Provenance of the robots value: the content preset (kind, slug, catalog commit_id) an install applied, or NULL when it was authored directly */ + robotsSeededFrom?: Record | null; /** Site surface this metadata belongs to */ siteId?: string | null; /** Infra Merkle store holding this row's history (stamped by the versioned trigger) */ @@ -1464,6 +1731,22 @@ export interface SiteModule { siteId?: string | null; updatedAt?: string | null; } +/** Immutable static-site release manifest head, versioned in the site-owned merkle store */ +export interface SiteRelease { + /** Infra store commit for the current content (stamped by the versioned trigger on every write) */ + commitId?: string | null; + createdAt?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; + id: string; + /** Release manifest: {"files":{"":{"hash":"<64-hex sha256>","content_type":"...","size":123}},"file_count":N,"total_bytes":N} */ + manifest?: Record | null; + /** Site surface this release manifest belongs to */ + siteId?: string | null; + /** Infra Merkle store holding this row's history (stamped by the versioned trigger) */ + storeId?: string | null; + updatedAt?: string | null; +} /** Theme (colors, fonts, design tokens) for a site surface */ export interface SiteTheme { /** Infra store commit for the current content (stamped by the versioned trigger on every write) */ @@ -1584,13 +1867,19 @@ export interface Trigger { createdAt?: string | null; databaseId?: string | null; event?: string | null; + events?: string[] | null; + forEachRow?: boolean | null; + functionId?: string | null; functionName?: string | null; id: string; + kind?: string | null; name?: string | null; smartTags?: Record | null; tableId?: string | null; tags?: string[] | null; + timing?: string | null; updatedAt?: string | null; + whenAst?: Record | null; } export interface TriggerFunction { code?: string | null; @@ -1736,17 +2025,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 +2047,7 @@ export interface CompositeTypeRelations { schema?: Schema | null; } export interface CorsSettingRelations { - api?: Apis | null; + api?: Api | null; } export interface DatabaseRelations { checkConstraints?: ConnectionResult; @@ -1812,7 +2101,6 @@ export interface DeriveRelations { export interface DomainRelations { domainEvents?: ConnectionResult; domainVerifications?: ConnectionResult; - httpRoutes?: ConnectionResult; routes?: ConnectionResult; } export interface DomainEventRelations { @@ -1828,6 +2116,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; @@ -1874,11 +2173,11 @@ export interface FullTextSearchRelations { export interface FunctionRelations { database?: Database | null; schema?: Schema | null; + triggers?: ConnectionResult; } +export interface GetSitePreviewsRecordRelations {} export interface HostnameBindingRelations {} -export interface HttpRouteRelations { - domain?: Domain | null; -} +export interface IdentityProviderRegistryRelations {} export interface IndexRelations { database?: Database | null; table?: Table | null; @@ -1896,20 +2195,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 +2223,18 @@ 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 PlatformGetSitePreviewsRecordRelations {} export interface PlatformManagedDomainRelations { platformDomainEventsByManagedDomainId?: ConnectionResult; platformDomainVerificationsByManagedDomainId?: ConnectionResult; @@ -1935,7 +2246,9 @@ export interface PlatformSiteAppLinkRelations { site?: PlatformSite | null; } export interface PlatformSiteRelations { + platformEmailSiteIdentityBySiteId?: PlatformEmailSiteIdentity | null; platformSiteMetadatumBySiteId?: PlatformSiteMetadatum | null; + platformSiteReleaseBySiteId?: PlatformSiteRelease | null; platformSiteWebConfigBySiteId?: PlatformSiteWebConfig | null; platformPagesBySiteId?: ConnectionResult; platformSiteAppLinksBySiteId?: ConnectionResult; @@ -1956,6 +2269,9 @@ export interface PlatformSiteMetadatumRelations { export interface PlatformSiteModuleRelations { site?: PlatformSite | null; } +export interface PlatformSiteReleaseRelations { + site?: PlatformSite | null; +} export interface PlatformSiteThemeRelations { site?: PlatformSite | null; } @@ -1979,6 +2295,9 @@ export interface PubkeySettingRelations { signInWithChallengeFunction?: Function | null; signUpWithKeyFunction?: Function | null; } +export interface RedirectRelations { + routesByTargetRedirectId?: ConnectionResult; +} export interface RlsSettingRelations { authenticateFunction?: Function | null; authenticateSchema?: Schema | null; @@ -1992,6 +2311,10 @@ export interface RlsSettingRelations { export interface RouteBindingRelations {} export interface RouteRelations { domain?: Domain | null; + servingSite?: Site | null; + targetApi?: Api | null; + targetRedirect?: Redirect | null; + targetSite?: Site | null; } export interface SchemaRelations { database?: Database | null; @@ -2014,9 +2337,12 @@ export interface SiteAppLinkRelations { site?: Site | null; } export interface SiteRelations { + emailSiteIdentity?: EmailSiteIdentity | null; siteMetadatum?: SiteMetadatum | null; + siteRelease?: SiteRelease | null; siteWebConfig?: SiteWebConfig | null; pages?: ConnectionResult; + routesByServingSiteId?: ConnectionResult; siteAppLinks?: ConnectionResult; siteDeepLinks?: ConnectionResult; siteErrorPages?: ConnectionResult; @@ -2035,6 +2361,9 @@ export interface SiteMetadatumRelations { export interface SiteModuleRelations { site?: Site | null; } +export interface SiteReleaseRelations { + site?: Site | null; +} export interface SiteThemeRelations { site?: Site | null; } @@ -2087,6 +2416,7 @@ export interface TableGrantRelations { } export interface TriggerRelations { database?: Database | null; + function?: Function | null; table?: Table | null; } export interface TriggerFunctionRelations { @@ -2139,9 +2469,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 +2485,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; @@ -2166,21 +2500,32 @@ export type ForeignKeyConstraintWithRelations = ForeignKeyConstraint & ForeignKeyConstraintRelations; export type FullTextSearchWithRelations = FullTextSearch & FullTextSearchRelations; export type FunctionWithRelations = Function & FunctionRelations; +export type GetSitePreviewsRecordWithRelations = GetSitePreviewsRecord & + GetSitePreviewsRecordRelations; export type HostnameBindingWithRelations = HostnameBinding & HostnameBindingRelations; -export type HttpRouteWithRelations = HttpRoute & HttpRouteRelations; +export type IdentityProviderRegistryWithRelations = IdentityProviderRegistry & + IdentityProviderRegistryRelations; export type IndexWithRelations = Index & IndexRelations; 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 PlatformGetSitePreviewsRecordWithRelations = PlatformGetSitePreviewsRecord & + PlatformGetSitePreviewsRecordRelations; export type PlatformManagedDomainWithRelations = PlatformManagedDomain & PlatformManagedDomainRelations; export type PlatformPageWithRelations = PlatformPage & PlatformPageRelations; @@ -2193,6 +2538,7 @@ export type PlatformSiteErrorPageWithRelations = PlatformSiteErrorPage & export type PlatformSiteMetadatumWithRelations = PlatformSiteMetadatum & PlatformSiteMetadatumRelations; export type PlatformSiteModuleWithRelations = PlatformSiteModule & PlatformSiteModuleRelations; +export type PlatformSiteReleaseWithRelations = PlatformSiteRelease & PlatformSiteReleaseRelations; export type PlatformSiteThemeWithRelations = PlatformSiteTheme & PlatformSiteThemeRelations; export type PlatformSiteWebConfigWithRelations = PlatformSiteWebConfig & PlatformSiteWebConfigRelations; @@ -2200,6 +2546,7 @@ export type PolicyWithRelations = Policy & PolicyRelations; export type PrimaryKeyConstraintWithRelations = PrimaryKeyConstraint & PrimaryKeyConstraintRelations; export type PubkeySettingWithRelations = PubkeySetting & PubkeySettingRelations; +export type RedirectWithRelations = Redirect & RedirectRelations; export type RlsSettingWithRelations = RlsSetting & RlsSettingRelations; export type RouteBindingWithRelations = RouteBinding & RouteBindingRelations; export type RouteWithRelations = Route & RouteRelations; @@ -2211,6 +2558,7 @@ export type SiteDeepLinkWithRelations = SiteDeepLink & SiteDeepLinkRelations; export type SiteErrorPageWithRelations = SiteErrorPage & SiteErrorPageRelations; export type SiteMetadatumWithRelations = SiteMetadatum & SiteMetadatumRelations; export type SiteModuleWithRelations = SiteModule & SiteModuleRelations; +export type SiteReleaseWithRelations = SiteRelease & SiteReleaseRelations; export type SiteThemeWithRelations = SiteTheme & SiteThemeRelations; export type SiteWebConfigWithRelations = SiteWebConfig & SiteWebConfigRelations; export type SpatialRelationWithRelations = SpatialRelation & SpatialRelationRelations; @@ -2230,6 +2578,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 +2613,7 @@ export type ApiSchemaSelect = { schemaId?: boolean; updatedAt?: boolean; api?: { - select: ApisSelect; + select: ApiSelect; }; schema?: { select: SchemaSelect; @@ -2253,6 +2628,7 @@ export type ApiSettingSelect = { enableConnectionFilter?: boolean; enableDirectUploads?: boolean; enableI18N?: boolean; + enableIntrospection?: boolean; enableLlm?: boolean; enableLtree?: boolean; enableManyToMany?: boolean; @@ -2261,38 +2637,21 @@ export type ApiSettingSelect = { enableRealtime?: boolean; enableSearch?: boolean; id?: boolean; + idleInTransactionTimeoutMs?: boolean; + lockTimeoutMs?: boolean; + maxConcurrentRequests?: boolean; + maxPageSize?: boolean; + maxQueryCost?: boolean; + maxQueryDepth?: boolean; + maxQueueWaitMs?: boolean; + maxRequestBytes?: boolean; options?: boolean; + rateLimitBurst?: boolean; + rateLimitRpm?: boolean; 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 +2717,7 @@ export type CorsSettingSelect = { id?: boolean; updatedAt?: boolean; api?: { - select: ApisSelect; + select: ApiSelect; }; }; export type DatabaseSelect = { @@ -2580,10 +2939,12 @@ export type DatabaseSettingSelect = { createdAt?: boolean; databaseId?: boolean; enableAggregates?: boolean; + enableBilling?: boolean; enableBulk?: boolean; enableConnectionFilter?: boolean; enableDirectUploads?: boolean; enableI18N?: boolean; + enableIntrospection?: boolean; enableLlm?: boolean; enableLtree?: boolean; enableManyToMany?: boolean; @@ -2592,8 +2953,18 @@ export type DatabaseSettingSelect = { enableRealtime?: boolean; enableSearch?: boolean; id?: boolean; + idleInTransactionTimeoutMs?: boolean; labels?: boolean; + lockTimeoutMs?: boolean; + maxConcurrentRequests?: boolean; + maxPageSize?: boolean; + maxQueryCost?: boolean; + maxQueryDepth?: boolean; + maxQueueWaitMs?: boolean; + maxRequestBytes?: boolean; options?: boolean; + rateLimitBurst?: boolean; + rateLimitRpm?: boolean; statementTimeoutMs?: boolean; updatedAt?: boolean; }; @@ -2635,6 +3006,7 @@ export type DeriveSelect = { createdAt?: boolean; databaseId?: boolean; id?: boolean; + includeGrants?: boolean; includeMutations?: boolean; kind?: boolean; policyPrefix?: boolean; @@ -2654,6 +3026,7 @@ export type DeriveSelect = { export type DomainSelect = { config?: boolean; createdAt?: boolean; + createdByPrincipal?: boolean; databaseId?: boolean; hostname?: boolean; id?: boolean; @@ -2665,6 +3038,7 @@ export type DomainSelect = { tlsSecretName?: boolean; tlsStatus?: boolean; updatedAt?: boolean; + updatedByPrincipal?: boolean; verificationStatus?: boolean; verifiedAt?: boolean; domainEvents?: { @@ -2679,12 +3053,6 @@ export type DomainSelect = { filter?: DomainVerificationFilter; orderBy?: DomainVerificationOrderBy[]; }; - httpRoutes?: { - select: HttpRouteSelect; - first?: number; - filter?: HttpRouteFilter; - orderBy?: HttpRouteOrderBy[]; - }; routes?: { select: RouteSelect; first?: number; @@ -2759,17 +3127,79 @@ export type DomainVerificationSelect = { select: ManagedDomainSelect; }; }; -export type EmbeddingChunkSelect = { - chunkOverlap?: boolean; - chunkSize?: boolean; - chunkStrategy?: boolean; - chunkingTaskName?: boolean; - chunksTableId?: boolean; - chunksTableName?: boolean; - contentFieldName?: boolean; +export type EmailIdentitySelect = { createdAt?: boolean; databaseId?: boolean; - dimensions?: 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; + chunkStrategy?: boolean; + chunkingTaskName?: boolean; + chunksTableId?: boolean; + chunksTableName?: boolean; + contentFieldName?: boolean; + createdAt?: boolean; + databaseId?: boolean; + dimensions?: boolean; embeddingFieldId?: boolean; embeddingModel?: boolean; embeddingProvider?: boolean; @@ -2995,16 +3425,39 @@ export type FullTextSearchSelect = { }; }; export type FunctionSelect = { + apiExposed?: boolean; + arguments?: boolean; + bodyAst?: boolean; + category?: boolean; + data?: boolean; databaseId?: boolean; + functionType?: boolean; id?: boolean; + isStrict?: boolean; + kind?: boolean; name?: boolean; + returns?: boolean; schemaId?: boolean; + securityInvoker?: boolean; + smartTags?: boolean; + tags?: boolean; + volatility?: boolean; database?: { select: DatabaseSelect; }; schema?: { select: SchemaSelect; }; + triggers?: { + select: TriggerSelect; + first?: number; + filter?: TriggerFilter; + orderBy?: TriggerOrderBy[]; + }; +}; +export type GetSitePreviewsRecordSelect = { + commitId?: boolean; + name?: boolean; }; export type HostnameBindingSelect = { domainId?: boolean; @@ -3018,23 +3471,15 @@ export type HostnameBindingSelect = { updatedAt?: boolean; verificationStatus?: boolean; }; -export type HttpRouteSelect = { - createdAt?: boolean; - createdBy?: boolean; - databaseId?: boolean; - domainId?: boolean; - id?: boolean; - isActive?: boolean; - method?: boolean; - path?: boolean; - priority?: boolean; - targetId?: boolean; - targetKind?: boolean; - updatedAt?: boolean; - updatedBy?: boolean; - domain?: { - select: DomainSelect; - }; +export type IdentityProviderRegistrySelect = { + authorizationUrl?: boolean; + displayName?: boolean; + issuerUrl?: boolean; + kind?: boolean; + scopes?: boolean; + slug?: boolean; + tokenUrl?: boolean; + userinfoUrl?: boolean; }; export type IndexSelect = { accessMethod?: boolean; @@ -3047,6 +3492,7 @@ export type IndexSelect = { indexParams?: boolean; isUnique?: boolean; name?: boolean; + nullsNotDistinct?: boolean; opClasses?: boolean; options?: boolean; smartTags?: boolean; @@ -3066,6 +3512,7 @@ export type ManagedDomainSelect = { annotations?: boolean; certStatus?: boolean; createdAt?: boolean; + createdByPrincipal?: boolean; databaseId?: boolean; domain?: boolean; id?: boolean; @@ -3073,6 +3520,7 @@ export type ManagedDomainSelect = { tlsReadyAt?: boolean; tlsStatus?: boolean; updatedAt?: boolean; + updatedByPrincipal?: boolean; verificationStatus?: boolean; verifiedAt?: boolean; domainEvents?: { @@ -3103,6 +3551,7 @@ export type PageSelect = { createdAt?: boolean; databaseId?: boolean; id?: boolean; + seededFrom?: boolean; siteId?: boolean; slug?: boolean; storeId?: boolean; @@ -3135,6 +3584,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 +3614,7 @@ export type PlatformApiSchemaSelect = { schemaId?: boolean; updatedAt?: boolean; api?: { - select: PlatformApisSelect; + select: PlatformApiSelect; }; schema?: { select: SchemaSelect; @@ -3156,6 +3628,7 @@ export type PlatformApiSettingSelect = { enableConnectionFilter?: boolean; enableDirectUploads?: boolean; enableI18N?: boolean; + enableIntrospection?: boolean; enableLlm?: boolean; enableLtree?: boolean; enableManyToMany?: boolean; @@ -3164,34 +3637,21 @@ export type PlatformApiSettingSelect = { enableRealtime?: boolean; enableSearch?: boolean; id?: boolean; + idleInTransactionTimeoutMs?: boolean; + lockTimeoutMs?: boolean; + maxConcurrentRequests?: boolean; + maxPageSize?: boolean; + maxQueryCost?: boolean; + maxQueryDepth?: boolean; + maxQueueWaitMs?: boolean; + maxRequestBytes?: boolean; options?: boolean; + rateLimitBurst?: boolean; + rateLimitRpm?: boolean; 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,12 +3661,13 @@ export type PlatformCorsSettingSelect = { id?: boolean; updatedAt?: boolean; api?: { - select: PlatformApisSelect; + select: PlatformApiSelect; }; }; export type PlatformDomainSelect = { config?: boolean; createdAt?: boolean; + createdByPrincipal?: boolean; hostname?: boolean; id?: boolean; isPublished?: boolean; @@ -3217,6 +3678,7 @@ export type PlatformDomainSelect = { tlsSecretName?: boolean; tlsStatus?: boolean; updatedAt?: boolean; + updatedByPrincipal?: boolean; verificationStatus?: boolean; verifiedAt?: boolean; platformDomainEventsByDomainId?: { @@ -3276,17 +3738,82 @@ 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 PlatformGetSitePreviewsRecordSelect = { + commitId?: boolean; + name?: boolean; +}; export type PlatformManagedDomainSelect = { allowPublicUsage?: boolean; annotations?: boolean; certStatus?: boolean; createdAt?: boolean; + createdByPrincipal?: boolean; domain?: boolean; id?: boolean; isWildcard?: boolean; tlsReadyAt?: boolean; tlsStatus?: boolean; updatedAt?: boolean; + updatedByPrincipal?: boolean; verificationStatus?: boolean; verifiedAt?: boolean; platformDomainEventsByManagedDomainId?: { @@ -3307,6 +3834,7 @@ export type PlatformPageSelect = { content?: boolean; createdAt?: boolean; id?: boolean; + seededFrom?: boolean; siteId?: boolean; slug?: boolean; storeId?: boolean; @@ -3316,15 +3844,11 @@ export type PlatformPageSelect = { }; }; export type PlatformSiteAppLinkSelect = { - appIdentifier?: boolean; + appStoreIdentityId?: boolean; createdAt?: boolean; id?: boolean; pathComponents?: boolean; - platform?: boolean; - sha256CertFingerprints?: boolean; siteId?: boolean; - storeUrl?: boolean; - teamId?: boolean; updatedAt?: boolean; webcredentials?: boolean; site?: { @@ -3335,6 +3859,7 @@ export type PlatformSiteSelect = { activeCommitId?: boolean; bucketId?: boolean; createdAt?: boolean; + createdByPrincipal?: boolean; description?: boolean; id?: boolean; installationId?: boolean; @@ -3344,9 +3869,16 @@ export type PlatformSiteSelect = { resourceId?: boolean; title?: boolean; updatedAt?: boolean; + updatedByPrincipal?: boolean; + platformEmailSiteIdentityBySiteId?: { + select: PlatformEmailSiteIdentitySelect; + }; platformSiteMetadatumBySiteId?: { select: PlatformSiteMetadatumSelect; }; + platformSiteReleaseBySiteId?: { + select: PlatformSiteReleaseSelect; + }; platformSiteWebConfigBySiteId?: { select: PlatformSiteWebConfigSelect; }; @@ -3393,6 +3925,7 @@ export type PlatformSiteDeepLinkSelect = { fallbackUrl?: boolean; id?: boolean; metadata?: boolean; + pageId?: boolean; siteId?: boolean; slug?: boolean; updatedAt?: boolean; @@ -3423,6 +3956,7 @@ export type PlatformSiteMetadatumSelect = { logo?: boolean; ogImage?: boolean; robots?: boolean; + robotsSeededFrom?: boolean; siteId?: boolean; storeId?: boolean; title?: boolean; @@ -3444,6 +3978,18 @@ export type PlatformSiteModuleSelect = { select: PlatformSiteSelect; }; }; +export type PlatformSiteReleaseSelect = { + commitId?: boolean; + createdAt?: boolean; + id?: boolean; + manifest?: boolean; + siteId?: boolean; + storeId?: boolean; + updatedAt?: boolean; + site?: { + select: PlatformSiteSelect; + }; +}; export type PlatformSiteThemeSelect = { commitId?: boolean; createdAt?: boolean; @@ -3473,6 +4019,7 @@ export type PlatformSiteWebConfigSelect = { }; export type PolicySelect = { category?: boolean; + columnRefs?: boolean; createdAt?: boolean; data?: boolean; databaseId?: boolean; @@ -3553,6 +4100,24 @@ export type PubkeySettingSelect = { select: FunctionSelect; }; }; +export type RedirectSelect = { + createdAt?: boolean; + databaseId?: boolean; + id?: boolean; + name?: boolean; + preservePath?: boolean; + preserveQuery?: boolean; + statusCode?: boolean; + toHost?: boolean; + toPath?: boolean; + updatedAt?: boolean; + routesByTargetRedirectId?: { + select: RouteSelect; + first?: number; + filter?: RouteFilter; + orderBy?: RouteOrderBy[]; + }; +}; export type RlsSettingSelect = { authenticateFunctionId?: boolean; authenticateSchemaId?: boolean; @@ -3598,14 +4163,17 @@ export type RouteBindingSelect = { method?: boolean; path?: boolean; priority?: boolean; + servingSiteId?: boolean; targetApiId?: boolean; targetBucketId?: boolean; targetFunctionId?: boolean; + targetRedirectId?: boolean; targetServiceId?: boolean; targetSiteId?: boolean; updatedAt?: boolean; }; export type RouteSelect = { + anonymous?: boolean; config?: boolean; createdAt?: boolean; databaseId?: boolean; @@ -3614,16 +4182,31 @@ export type RouteSelect = { isActive?: boolean; method?: boolean; path?: boolean; + previewRef?: boolean; priority?: boolean; + servingSiteId?: boolean; targetApiId?: boolean; targetBucketId?: boolean; targetFunctionId?: boolean; + targetRedirectId?: boolean; targetServiceId?: boolean; targetSiteId?: boolean; updatedAt?: boolean; domain?: { select: DomainSelect; }; + servingSite?: { + select: SiteSelect; + }; + targetApi?: { + select: ApiSelect; + }; + targetRedirect?: { + select: RedirectSelect; + }; + targetSite?: { + select: SiteSelect; + }; }; export type SchemaSelect = { apiExposure?: boolean; @@ -3718,16 +4301,12 @@ export type SchemaGrantSelect = { }; }; export type SiteAppLinkSelect = { - appIdentifier?: boolean; + appStoreIdentityId?: boolean; createdAt?: boolean; databaseId?: boolean; id?: boolean; pathComponents?: boolean; - platform?: boolean; - sha256CertFingerprints?: boolean; siteId?: boolean; - storeUrl?: boolean; - teamId?: boolean; updatedAt?: boolean; webcredentials?: boolean; site?: { @@ -3738,6 +4317,7 @@ export type SiteSelect = { activeCommitId?: boolean; bucketId?: boolean; createdAt?: boolean; + createdByPrincipal?: boolean; databaseId?: boolean; description?: boolean; id?: boolean; @@ -3748,9 +4328,16 @@ export type SiteSelect = { resourceId?: boolean; title?: boolean; updatedAt?: boolean; + updatedByPrincipal?: boolean; + emailSiteIdentity?: { + select: EmailSiteIdentitySelect; + }; siteMetadatum?: { select: SiteMetadatumSelect; }; + siteRelease?: { + select: SiteReleaseSelect; + }; siteWebConfig?: { select: SiteWebConfigSelect; }; @@ -3760,6 +4347,12 @@ export type SiteSelect = { filter?: PageFilter; orderBy?: PageOrderBy[]; }; + routesByServingSiteId?: { + select: RouteSelect; + first?: number; + filter?: RouteFilter; + orderBy?: RouteOrderBy[]; + }; siteAppLinks?: { select: SiteAppLinkSelect; first?: number; @@ -3798,6 +4391,7 @@ export type SiteDeepLinkSelect = { fallbackUrl?: boolean; id?: boolean; metadata?: boolean; + pageId?: boolean; siteId?: boolean; slug?: boolean; updatedAt?: boolean; @@ -3830,6 +4424,7 @@ export type SiteMetadatumSelect = { logo?: boolean; ogImage?: boolean; robots?: boolean; + robotsSeededFrom?: boolean; siteId?: boolean; storeId?: boolean; title?: boolean; @@ -3852,6 +4447,19 @@ export type SiteModuleSelect = { select: SiteSelect; }; }; +export type SiteReleaseSelect = { + commitId?: boolean; + createdAt?: boolean; + databaseId?: boolean; + id?: boolean; + manifest?: boolean; + siteId?: boolean; + storeId?: boolean; + updatedAt?: boolean; + site?: { + select: SiteSelect; + }; +}; export type SiteThemeSelect = { commitId?: boolean; createdAt?: boolean; @@ -4133,16 +4741,25 @@ export type TriggerSelect = { createdAt?: boolean; databaseId?: boolean; event?: boolean; + events?: boolean; + forEachRow?: boolean; + functionId?: boolean; functionName?: boolean; id?: boolean; + kind?: boolean; name?: boolean; smartTags?: boolean; tableId?: boolean; tags?: boolean; + timing?: boolean; updatedAt?: boolean; + whenAst?: boolean; database?: { select: DatabaseSelect; }; + function?: { + select: FunctionSelect; + }; table?: { select: TableSelect; }; @@ -4365,11 +4982,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 +5050,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. */ @@ -4410,6 +5067,8 @@ export interface ApiSettingFilter { enableDirectUploads?: BooleanFilter; /** Filter by the object’s `enableI18N` field. */ enableI18N?: BooleanFilter; + /** Filter by the object’s `enableIntrospection` field. */ + enableIntrospection?: BooleanFilter; /** Filter by the object’s `enableLlm` field. */ enableLlm?: BooleanFilter; /** Filter by the object’s `enableLtree` field. */ @@ -4426,57 +5085,37 @@ export interface ApiSettingFilter { enableSearch?: BooleanFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `idleInTransactionTimeoutMs` field. */ + idleInTransactionTimeoutMs?: BigIntFilter; + /** Filter by the object’s `lockTimeoutMs` field. */ + lockTimeoutMs?: BigIntFilter; + /** Filter by the object’s `maxConcurrentRequests` field. */ + maxConcurrentRequests?: IntFilter; + /** Filter by the object’s `maxPageSize` field. */ + maxPageSize?: IntFilter; + /** Filter by the object’s `maxQueryCost` field. */ + maxQueryCost?: IntFilter; + /** Filter by the object’s `maxQueryDepth` field. */ + maxQueryDepth?: IntFilter; + /** Filter by the object’s `maxQueueWaitMs` field. */ + maxQueueWaitMs?: IntFilter; + /** Filter by the object’s `maxRequestBytes` field. */ + maxRequestBytes?: IntFilter; /** Negates the expression. */ not?: ApiSettingFilter; /** Filter by the object’s `options` field. */ options?: JSONFilter; /** Checks for any expressions in this list. */ or?: ApiSettingFilter[]; + /** Filter by the object’s `rateLimitBurst` field. */ + rateLimitBurst?: IntFilter; + /** Filter by the object’s `rateLimitRpm` field. */ + rateLimitRpm?: IntFilter; /** Filter by the object’s `statementTimeoutMs` field. */ statementTimeoutMs?: BigIntFilter; /** 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 +5228,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. */ @@ -4778,6 +5417,8 @@ export interface DatabaseSettingFilter { databaseId?: UUIDFilter; /** Filter by the object’s `enableAggregates` field. */ enableAggregates?: BooleanFilter; + /** Filter by the object’s `enableBilling` field. */ + enableBilling?: BooleanFilter; /** Filter by the object’s `enableBulk` field. */ enableBulk?: BooleanFilter; /** Filter by the object’s `enableConnectionFilter` field. */ @@ -4786,6 +5427,8 @@ export interface DatabaseSettingFilter { enableDirectUploads?: BooleanFilter; /** Filter by the object’s `enableI18N` field. */ enableI18N?: BooleanFilter; + /** Filter by the object’s `enableIntrospection` field. */ + enableIntrospection?: BooleanFilter; /** Filter by the object’s `enableLlm` field. */ enableLlm?: BooleanFilter; /** Filter by the object’s `enableLtree` field. */ @@ -4802,14 +5445,34 @@ export interface DatabaseSettingFilter { enableSearch?: BooleanFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `idleInTransactionTimeoutMs` field. */ + idleInTransactionTimeoutMs?: BigIntFilter; /** Filter by the object’s `labels` field. */ labels?: JSONFilter; + /** Filter by the object’s `lockTimeoutMs` field. */ + lockTimeoutMs?: BigIntFilter; + /** Filter by the object’s `maxConcurrentRequests` field. */ + maxConcurrentRequests?: IntFilter; + /** Filter by the object’s `maxPageSize` field. */ + maxPageSize?: IntFilter; + /** Filter by the object’s `maxQueryCost` field. */ + maxQueryCost?: IntFilter; + /** Filter by the object’s `maxQueryDepth` field. */ + maxQueryDepth?: IntFilter; + /** Filter by the object’s `maxQueueWaitMs` field. */ + maxQueueWaitMs?: IntFilter; + /** Filter by the object’s `maxRequestBytes` field. */ + maxRequestBytes?: IntFilter; /** Negates the expression. */ not?: DatabaseSettingFilter; /** Filter by the object’s `options` field. */ options?: JSONFilter; /** Checks for any expressions in this list. */ or?: DatabaseSettingFilter[]; + /** Filter by the object’s `rateLimitBurst` field. */ + rateLimitBurst?: IntFilter; + /** Filter by the object’s `rateLimitRpm` field. */ + rateLimitRpm?: IntFilter; /** Filter by the object’s `statementTimeoutMs` field. */ statementTimeoutMs?: BigIntFilter; /** Filter by the object’s `updatedAt` field. */ @@ -4890,6 +5553,8 @@ export interface DeriveFilter { databaseId?: UUIDFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `includeGrants` field. */ + includeGrants?: BooleanFilter; /** Filter by the object’s `includeMutations` field. */ includeMutations?: BooleanFilter; /** Filter by the object’s `kind` field. */ @@ -4918,6 +5583,8 @@ export interface DomainFilter { config?: JSONFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; /** Filter by the object’s `domainEvents` relation. */ @@ -4930,10 +5597,6 @@ export interface DomainFilter { domainVerificationsExist?: boolean; /** Filter by the object’s `hostname` field. */ hostname?: StringFilter; - /** Filter by the object’s `httpRoutes` relation. */ - httpRoutes?: DomainToManyHttpRouteFilter; - /** `httpRoutes` exist. */ - httpRoutesExist?: boolean; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `isPublished` field. */ @@ -4960,6 +5623,8 @@ export interface DomainFilter { tlsStatus?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; /** Filter by the object’s `verificationStatus` field. */ verificationStatus?: StringFilter; /** Filter by the object’s `verifiedAt` field. */ @@ -5093,15 +5758,125 @@ export interface DomainVerificationFilter { /** Filter by the object’s `verifiedAt` field. */ verifiedAt?: DatetimeFilter; } -export interface EmbeddingChunkFilter { +export interface 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; + 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[]; + /** 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. */ @@ -5468,22 +6243,59 @@ export interface FullTextSearchFilter { export interface FunctionFilter { /** Checks for all expressions in this list. */ and?: FunctionFilter[]; + /** Filter by the object’s `apiExposed` field. */ + apiExposed?: BooleanFilter; + /** Filter by the object’s `arguments` field. */ + arguments?: JSONFilter; + /** Filter by the object’s `bodyAst` field. */ + bodyAst?: JSONFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `data` field. */ + data?: JSONFilter; /** Filter by the object’s `database` relation. */ database?: DatabaseFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `functionType` field. */ + functionType?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `isStrict` field. */ + isStrict?: BooleanFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; /** Negates the expression. */ not?: FunctionFilter; /** Checks for any expressions in this list. */ or?: FunctionFilter[]; + /** Filter by the object’s `returns` field. */ + returns?: JSONFilter; /** Filter by the object’s `schema` relation. */ schema?: SchemaFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; + /** Filter by the object’s `securityInvoker` field. */ + securityInvoker?: BooleanFilter; + /** Filter by the object’s `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Filter by the object’s `triggers` relation. */ + triggers?: FunctionToManyTriggerFilter; + /** `triggers` exist. */ + triggersExist?: boolean; + /** Filter by the object’s `volatility` field. */ + volatility?: StringFilter; +} +export interface GetSitePreviewsRecordFilter { + commitId?: UUIDFilter; + name?: StringFilter; + and?: GetSitePreviewsRecordFilter[]; + or?: GetSitePreviewsRecordFilter[]; + not?: GetSitePreviewsRecordFilter; } export interface HostnameBindingFilter { /** Checks for all expressions in this list. */ @@ -5513,41 +6325,29 @@ export interface HostnameBindingFilter { /** Filter by the object’s `verificationStatus` field. */ verificationStatus?: StringFilter; } -export interface HttpRouteFilter { +export interface IdentityProviderRegistryFilter { /** Checks for all expressions in this list. */ - and?: HttpRouteFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `domain` relation. */ - domain?: DomainFilter; - /** Filter by the object’s `domainId` field. */ - domainId?: 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; + and?: IdentityProviderRegistryFilter[]; + /** Filter by the object’s `authorizationUrl` field. */ + authorizationUrl?: StringFilter; + /** Filter by the object’s `displayName` field. */ + displayName?: StringFilter; + /** Filter by the object’s `issuerUrl` field. */ + issuerUrl?: StringFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; /** Negates the expression. */ - not?: HttpRouteFilter; + not?: IdentityProviderRegistryFilter; /** 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; - /** Filter by the object’s `targetId` field. */ - targetId?: UUIDFilter; - /** Filter by the object’s `targetKind` field. */ - targetKind?: StringFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; + or?: IdentityProviderRegistryFilter[]; + /** Filter by the object’s `scopes` field. */ + scopes?: StringListFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `tokenUrl` field. */ + tokenUrl?: StringFilter; + /** Filter by the object’s `userinfoUrl` field. */ + userinfoUrl?: StringFilter; } export interface IndexFilter { /** Filter by the object’s `accessMethod` field. */ @@ -5576,6 +6376,8 @@ export interface IndexFilter { name?: StringFilter; /** Negates the expression. */ not?: IndexFilter; + /** Filter by the object’s `nullsNotDistinct` field. */ + nullsNotDistinct?: BooleanFilter; /** Filter by the object’s `opClasses` field. */ opClasses?: StringListFilter; /** Filter by the object’s `options` field. */ @@ -5606,6 +6408,8 @@ export interface ManagedDomainFilter { certStatus?: StringFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; /** Filter by the object’s `domain` field. */ @@ -5632,6 +6436,8 @@ export interface ManagedDomainFilter { tlsStatus?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; /** Filter by the object’s `verificationStatus` field. */ verificationStatus?: StringFilter; /** Filter by the object’s `verifiedAt` field. */ @@ -5676,6 +6482,8 @@ export interface PageFilter { not?: PageFilter; /** Checks for any expressions in this list. */ or?: PageFilter[]; + /** Filter by the object’s `seededFrom` field. */ + seededFrom?: JSONFilter; /** Filter by the object’s `site` relation. */ site?: SiteFilter; /** Filter by the object’s `siteId` field. */ @@ -5727,11 +6535,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 +6599,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. */ @@ -5768,6 +6614,8 @@ export interface PlatformApiSettingFilter { enableDirectUploads?: BooleanFilter; /** Filter by the object’s `enableI18N` field. */ enableI18N?: BooleanFilter; + /** Filter by the object’s `enableIntrospection` field. */ + enableIntrospection?: BooleanFilter; /** Filter by the object’s `enableLlm` field. */ enableLlm?: BooleanFilter; /** Filter by the object’s `enableLtree` field. */ @@ -5784,62 +6632,44 @@ export interface PlatformApiSettingFilter { enableSearch?: BooleanFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `idleInTransactionTimeoutMs` field. */ + idleInTransactionTimeoutMs?: BigIntFilter; + /** Filter by the object’s `lockTimeoutMs` field. */ + lockTimeoutMs?: BigIntFilter; + /** Filter by the object’s `maxConcurrentRequests` field. */ + maxConcurrentRequests?: IntFilter; + /** Filter by the object’s `maxPageSize` field. */ + maxPageSize?: IntFilter; + /** Filter by the object’s `maxQueryCost` field. */ + maxQueryCost?: IntFilter; + /** Filter by the object’s `maxQueryDepth` field. */ + maxQueryDepth?: IntFilter; + /** Filter by the object’s `maxQueueWaitMs` field. */ + maxQueueWaitMs?: IntFilter; + /** Filter by the object’s `maxRequestBytes` field. */ + maxRequestBytes?: IntFilter; /** Negates the expression. */ not?: PlatformApiSettingFilter; /** Filter by the object’s `options` field. */ options?: JSONFilter; /** Checks for any expressions in this list. */ or?: PlatformApiSettingFilter[]; + /** Filter by the object’s `rateLimitBurst` field. */ + rateLimitBurst?: IntFilter; + /** Filter by the object’s `rateLimitRpm` field. */ + rateLimitRpm?: IntFilter; /** Filter by the object’s `statementTimeoutMs` field. */ statementTimeoutMs?: BigIntFilter; /** 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. */ @@ -5862,6 +6692,8 @@ export interface PlatformDomainFilter { config?: JSONFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `hostname` field. */ hostname?: StringFilter; /** Filter by the object’s `id` field. */ @@ -5894,6 +6726,8 @@ export interface PlatformDomainFilter { tlsStatus?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; /** Filter by the object’s `verificationStatus` field. */ verificationStatus?: StringFilter; /** Filter by the object’s `verifiedAt` field. */ @@ -5985,6 +6819,117 @@ 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 PlatformGetSitePreviewsRecordFilter { + commitId?: UUIDFilter; + name?: StringFilter; + and?: PlatformGetSitePreviewsRecordFilter[]; + or?: PlatformGetSitePreviewsRecordFilter[]; + not?: PlatformGetSitePreviewsRecordFilter; +} export interface PlatformManagedDomainFilter { /** Filter by the object’s `allowPublicUsage` field. */ allowPublicUsage?: BooleanFilter; @@ -5996,6 +6941,8 @@ export interface PlatformManagedDomainFilter { certStatus?: StringFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `domain` field. */ domain?: StringFilter; /** Filter by the object’s `id` field. */ @@ -6020,6 +6967,8 @@ export interface PlatformManagedDomainFilter { tlsStatus?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; /** Filter by the object’s `verificationStatus` field. */ verificationStatus?: StringFilter; /** Filter by the object’s `verifiedAt` field. */ @@ -6040,6 +6989,8 @@ export interface PlatformPageFilter { not?: PlatformPageFilter; /** Checks for any expressions in this list. */ or?: PlatformPageFilter[]; + /** Filter by the object’s `seededFrom` field. */ + seededFrom?: JSONFilter; /** Filter by the object’s `site` relation. */ site?: PlatformSiteFilter; /** Filter by the object’s `siteId` field. */ @@ -6054,8 +7005,8 @@ export interface PlatformPageFilter { export interface PlatformSiteAppLinkFilter { /** Checks for all expressions in this list. */ and?: PlatformSiteAppLinkFilter[]; - /** Filter by the object’s `appIdentifier` field. */ - appIdentifier?: StringFilter; + /** Filter by the object’s `appStoreIdentityId` field. */ + appStoreIdentityId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -6066,18 +7017,10 @@ export interface PlatformSiteAppLinkFilter { or?: PlatformSiteAppLinkFilter[]; /** Filter by the object’s `pathComponents` field. */ pathComponents?: StringListFilter; - /** Filter by the object’s `platform` field. */ - platform?: StringFilter; - /** Filter by the object’s `sha256CertFingerprints` field. */ - sha256CertFingerprints?: StringListFilter; /** Filter by the object’s `site` relation. */ site?: PlatformSiteFilter; /** Filter by the object’s `siteId` field. */ siteId?: UUIDFilter; - /** Filter by the object’s `storeUrl` field. */ - storeUrl?: StringFilter; - /** Filter by the object’s `teamId` field. */ - teamId?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; /** Filter by the object’s `webcredentials` field. */ @@ -6092,6 +7035,8 @@ export interface PlatformSiteFilter { bucketId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `description` field. */ description?: StringFilter; /** Filter by the object’s `id` field. */ @@ -6108,6 +7053,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. */ @@ -6132,6 +7081,10 @@ export interface PlatformSiteFilter { platformSiteModulesBySiteId?: PlatformSiteToManyPlatformSiteModuleFilter; /** `platformSiteModulesBySiteId` exist. */ platformSiteModulesBySiteIdExist?: boolean; + /** Filter by the object’s `platformSiteReleaseBySiteId` relation. */ + platformSiteReleaseBySiteId?: PlatformSiteReleaseFilter; + /** A related `platformSiteReleaseBySiteId` exists. */ + platformSiteReleaseBySiteIdExists?: boolean; /** Filter by the object’s `platformSiteThemesBySiteId` relation. */ platformSiteThemesBySiteId?: PlatformSiteToManyPlatformSiteThemeFilter; /** `platformSiteThemesBySiteId` exist. */ @@ -6146,6 +7099,8 @@ export interface PlatformSiteFilter { title?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } export interface PlatformSiteDeepLinkFilter { /** Checks for all expressions in this list. */ @@ -6164,6 +7119,8 @@ export interface PlatformSiteDeepLinkFilter { not?: PlatformSiteDeepLinkFilter; /** Checks for any expressions in this list. */ or?: PlatformSiteDeepLinkFilter[]; + /** Filter by the object’s `pageId` field. */ + pageId?: UUIDFilter; /** Filter by the object’s `site` relation. */ site?: PlatformSiteFilter; /** Filter by the object’s `siteId` field. */ @@ -6224,6 +7181,8 @@ export interface PlatformSiteMetadatumFilter { or?: PlatformSiteMetadatumFilter[]; /** Filter by the object’s `robots` field. */ robots?: StringFilter; + /** Filter by the object’s `robotsSeededFrom` field. */ + robotsSeededFrom?: JSONFilter; /** Filter by the object’s `site` relation. */ site?: PlatformSiteFilter; /** Filter by the object’s `siteId` field. */ @@ -6259,6 +7218,30 @@ export interface PlatformSiteModuleFilter { /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } +export interface PlatformSiteReleaseFilter { + /** Checks for all expressions in this list. */ + and?: PlatformSiteReleaseFilter[]; + /** Filter by the object’s `commitId` field. */ + commitId?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `manifest` field. */ + manifest?: JSONFilter; + /** Negates the expression. */ + not?: PlatformSiteReleaseFilter; + /** Checks for any expressions in this list. */ + or?: PlatformSiteReleaseFilter[]; + /** Filter by the object’s `site` relation. */ + site?: PlatformSiteFilter; + /** Filter by the object’s `siteId` field. */ + siteId?: UUIDFilter; + /** Filter by the object’s `storeId` field. */ + storeId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} export interface PlatformSiteThemeFilter { /** Checks for all expressions in this list. */ and?: PlatformSiteThemeFilter[]; @@ -6318,6 +7301,8 @@ export interface PolicyFilter { and?: PolicyFilter[]; /** Filter by the object’s `category` field. */ category?: ObjectCategoryFilter; + /** Filter by the object’s `columnRefs` field. */ + columnRefs?: StringListFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `data` field. */ @@ -6459,6 +7444,38 @@ export interface PubkeySettingFilter { /** Filter by the object’s `userField` field. */ userField?: StringFilter; } +export interface RedirectFilter { + /** Checks for all expressions in this list. */ + and?: RedirectFilter[]; + /** 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 `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: RedirectFilter; + /** Checks for any expressions in this list. */ + or?: RedirectFilter[]; + /** Filter by the object’s `preservePath` field. */ + preservePath?: BooleanFilter; + /** Filter by the object’s `preserveQuery` field. */ + preserveQuery?: BooleanFilter; + /** Filter by the object’s `routesByTargetRedirectId` relation. */ + routesByTargetRedirectId?: RedirectToManyRouteFilter; + /** `routesByTargetRedirectId` exist. */ + routesByTargetRedirectIdExist?: boolean; + /** Filter by the object’s `statusCode` field. */ + statusCode?: IntFilter; + /** Filter by the object’s `toHost` field. */ + toHost?: StringFilter; + /** Filter by the object’s `toPath` field. */ + toPath?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} export interface RlsSettingFilter { /** Checks for all expressions in this list. */ and?: RlsSettingFilter[]; @@ -6542,12 +7559,16 @@ export interface RouteBindingFilter { path?: StringFilter; /** Filter by the object’s `priority` field. */ priority?: IntFilter; + /** Filter by the object’s `servingSiteId` field. */ + servingSiteId?: UUIDFilter; /** Filter by the object’s `targetApiId` field. */ targetApiId?: UUIDFilter; /** Filter by the object’s `targetBucketId` field. */ targetBucketId?: UUIDFilter; /** Filter by the object’s `targetFunctionId` field. */ targetFunctionId?: UUIDFilter; + /** Filter by the object’s `targetRedirectId` field. */ + targetRedirectId?: UUIDFilter; /** Filter by the object’s `targetServiceId` field. */ targetServiceId?: UUIDFilter; /** Filter by the object’s `targetSiteId` field. */ @@ -6558,6 +7579,8 @@ export interface RouteBindingFilter { export interface RouteFilter { /** Checks for all expressions in this list. */ and?: RouteFilter[]; + /** Filter by the object’s `anonymous` field. */ + anonymous?: BooleanFilter; /** Filter by the object’s `config` field. */ config?: JSONFilter; /** Filter by the object’s `createdAt` field. */ @@ -6580,16 +7603,38 @@ export interface RouteFilter { or?: RouteFilter[]; /** Filter by the object’s `path` field. */ path?: StringFilter; + /** Filter by the object’s `previewRef` field. */ + previewRef?: StringFilter; /** Filter by the object’s `priority` field. */ priority?: IntFilter; + /** Filter by the object’s `servingSite` relation. */ + servingSite?: SiteFilter; + /** A related `servingSite` exists. */ + servingSiteExists?: boolean; + /** Filter by the object’s `servingSiteId` field. */ + servingSiteId?: UUIDFilter; + /** Filter by the object’s `targetApi` relation. */ + targetApi?: ApiFilter; + /** A related `targetApi` exists. */ + targetApiExists?: boolean; /** Filter by the object’s `targetApiId` field. */ targetApiId?: UUIDFilter; /** Filter by the object’s `targetBucketId` field. */ targetBucketId?: UUIDFilter; /** Filter by the object’s `targetFunctionId` field. */ targetFunctionId?: UUIDFilter; + /** Filter by the object’s `targetRedirect` relation. */ + targetRedirect?: RedirectFilter; + /** A related `targetRedirect` exists. */ + targetRedirectExists?: boolean; + /** Filter by the object’s `targetRedirectId` field. */ + targetRedirectId?: UUIDFilter; /** Filter by the object’s `targetServiceId` field. */ targetServiceId?: UUIDFilter; + /** Filter by the object’s `targetSite` relation. */ + targetSite?: SiteFilter; + /** A related `targetSite` exists. */ + targetSiteExists?: boolean; /** Filter by the object’s `targetSiteId` field. */ targetSiteId?: UUIDFilter; /** Filter by the object’s `updatedAt` field. */ @@ -6698,8 +7743,8 @@ export interface SchemaGrantFilter { export interface SiteAppLinkFilter { /** Checks for all expressions in this list. */ and?: SiteAppLinkFilter[]; - /** Filter by the object’s `appIdentifier` field. */ - appIdentifier?: StringFilter; + /** Filter by the object’s `appStoreIdentityId` field. */ + appStoreIdentityId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `databaseId` field. */ @@ -6712,18 +7757,10 @@ export interface SiteAppLinkFilter { or?: SiteAppLinkFilter[]; /** Filter by the object’s `pathComponents` field. */ pathComponents?: StringListFilter; - /** Filter by the object’s `platform` field. */ - platform?: StringFilter; - /** Filter by the object’s `sha256CertFingerprints` field. */ - sha256CertFingerprints?: StringListFilter; /** Filter by the object’s `site` relation. */ site?: SiteFilter; /** Filter by the object’s `siteId` field. */ siteId?: UUIDFilter; - /** Filter by the object’s `storeUrl` field. */ - storeUrl?: StringFilter; - /** Filter by the object’s `teamId` field. */ - teamId?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; /** Filter by the object’s `webcredentials` field. */ @@ -6738,10 +7775,16 @@ export interface SiteFilter { bucketId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** 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. */ @@ -6762,6 +7805,10 @@ export interface SiteFilter { pagesExist?: boolean; /** Filter by the object’s `resourceId` field. */ resourceId?: UUIDFilter; + /** Filter by the object’s `routesByServingSiteId` relation. */ + routesByServingSiteId?: SiteToManyRouteFilter; + /** `routesByServingSiteId` exist. */ + routesByServingSiteIdExist?: boolean; /** Filter by the object’s `siteAppLinks` relation. */ siteAppLinks?: SiteToManySiteAppLinkFilter; /** `siteAppLinks` exist. */ @@ -6782,6 +7829,10 @@ export interface SiteFilter { siteModules?: SiteToManySiteModuleFilter; /** `siteModules` exist. */ siteModulesExist?: boolean; + /** Filter by the object’s `siteRelease` relation. */ + siteRelease?: SiteReleaseFilter; + /** A related `siteRelease` exists. */ + siteReleaseExists?: boolean; /** Filter by the object’s `siteThemes` relation. */ siteThemes?: SiteToManySiteThemeFilter; /** `siteThemes` exist. */ @@ -6794,6 +7845,8 @@ export interface SiteFilter { title?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } export interface SiteDeepLinkFilter { /** Checks for all expressions in this list. */ @@ -6814,6 +7867,8 @@ export interface SiteDeepLinkFilter { not?: SiteDeepLinkFilter; /** Checks for any expressions in this list. */ or?: SiteDeepLinkFilter[]; + /** Filter by the object’s `pageId` field. */ + pageId?: UUIDFilter; /** Filter by the object’s `site` relation. */ site?: SiteFilter; /** Filter by the object’s `siteId` field. */ @@ -6878,6 +7933,8 @@ export interface SiteMetadatumFilter { or?: SiteMetadatumFilter[]; /** Filter by the object’s `robots` field. */ robots?: StringFilter; + /** Filter by the object’s `robotsSeededFrom` field. */ + robotsSeededFrom?: JSONFilter; /** Filter by the object’s `site` relation. */ site?: SiteFilter; /** Filter by the object’s `siteId` field. */ @@ -6915,9 +7972,9 @@ export interface SiteModuleFilter { /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } -export interface SiteThemeFilter { +export interface SiteReleaseFilter { /** Checks for all expressions in this list. */ - and?: SiteThemeFilter[]; + and?: SiteReleaseFilter[]; /** Filter by the object’s `commitId` field. */ commitId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ @@ -6926,21 +7983,47 @@ export interface SiteThemeFilter { databaseId?: UUIDFilter; /** 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; + /** Filter by the object’s `manifest` field. */ + manifest?: JSONFilter; /** Negates the expression. */ - not?: SiteThemeFilter; + not?: SiteReleaseFilter; /** Checks for any expressions in this list. */ - or?: SiteThemeFilter[]; + or?: SiteReleaseFilter[]; /** 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 `theme` field. */ + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} +export interface SiteThemeFilter { + /** Checks for all expressions in this list. */ + and?: SiteThemeFilter[]; + /** 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 `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?: SiteThemeFilter; + /** Checks for any expressions in this list. */ + or?: SiteThemeFilter[]; + /** 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 `theme` field. */ theme?: JSONFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; @@ -7274,10 +8357,22 @@ export interface TriggerFilter { databaseId?: UUIDFilter; /** Filter by the object’s `event` field. */ event?: StringFilter; + /** Filter by the object’s `events` field. */ + events?: StringListFilter; + /** Filter by the object’s `forEachRow` field. */ + forEachRow?: BooleanFilter; + /** Filter by the object’s `function` relation. */ + function?: FunctionFilter; + /** A related `function` exists. */ + functionExists?: boolean; + /** Filter by the object’s `functionId` field. */ + functionId?: UUIDFilter; /** Filter by the object’s `functionName` field. */ functionName?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; /** Negates the expression. */ @@ -7292,8 +8387,12 @@ export interface TriggerFilter { tableId?: UUIDFilter; /** Filter by the object’s `tags` field. */ tags?: StringListFilter; + /** Filter by the object’s `timing` field. */ + timing?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `whenAst` field. */ + whenAst?: JSONFilter; } export interface TriggerFunctionFilter { /** Checks for all expressions in this list. */ @@ -7642,6 +8741,30 @@ export interface WebauthnSettingFilter { userFieldId?: UUIDFilter; } // ============ OrderBy Types ============ +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'; export type ApiSchemaOrderBy = | 'API_ID_ASC' | 'API_ID_DESC' @@ -7675,6 +8798,8 @@ export type ApiSettingOrderBy = | 'ENABLE_DIRECT_UPLOADS_DESC' | 'ENABLE_I18N_ASC' | 'ENABLE_I18N_DESC' + | 'ENABLE_INTROSPECTION_ASC' + | 'ENABLE_INTROSPECTION_DESC' | 'ENABLE_LLM_ASC' | 'ENABLE_LLM_DESC' | 'ENABLE_LTREE_ASC' @@ -7689,41 +8814,37 @@ export type ApiSettingOrderBy = | 'ENABLE_REALTIME_DESC' | 'ENABLE_SEARCH_ASC' | 'ENABLE_SEARCH_DESC' + | 'IDLE_IN_TRANSACTION_TIMEOUT_MS_ASC' + | 'IDLE_IN_TRANSACTION_TIMEOUT_MS_DESC' | 'ID_ASC' | 'ID_DESC' + | 'LOCK_TIMEOUT_MS_ASC' + | 'LOCK_TIMEOUT_MS_DESC' + | 'MAX_CONCURRENT_REQUESTS_ASC' + | 'MAX_CONCURRENT_REQUESTS_DESC' + | 'MAX_PAGE_SIZE_ASC' + | 'MAX_PAGE_SIZE_DESC' + | 'MAX_QUERY_COST_ASC' + | 'MAX_QUERY_COST_DESC' + | 'MAX_QUERY_DEPTH_ASC' + | 'MAX_QUERY_DEPTH_DESC' + | 'MAX_QUEUE_WAIT_MS_ASC' + | 'MAX_QUEUE_WAIT_MS_DESC' + | 'MAX_REQUEST_BYTES_ASC' + | 'MAX_REQUEST_BYTES_DESC' | 'NATURAL' | 'OPTIONS_ASC' | 'OPTIONS_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' + | 'RATE_LIMIT_BURST_ASC' + | 'RATE_LIMIT_BURST_DESC' + | 'RATE_LIMIT_RPM_ASC' + | 'RATE_LIMIT_RPM_DESC' | 'STATEMENT_TIMEOUT_MS_ASC' | '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' @@ -7853,6 +8974,8 @@ export type DatabaseSettingOrderBy = | 'DATABASE_ID_DESC' | 'ENABLE_AGGREGATES_ASC' | 'ENABLE_AGGREGATES_DESC' + | 'ENABLE_BILLING_ASC' + | 'ENABLE_BILLING_DESC' | 'ENABLE_BULK_ASC' | 'ENABLE_BULK_DESC' | 'ENABLE_CONNECTION_FILTER_ASC' @@ -7861,6 +8984,8 @@ export type DatabaseSettingOrderBy = | 'ENABLE_DIRECT_UPLOADS_DESC' | 'ENABLE_I18N_ASC' | 'ENABLE_I18N_DESC' + | 'ENABLE_INTROSPECTION_ASC' + | 'ENABLE_INTROSPECTION_DESC' | 'ENABLE_LLM_ASC' | 'ENABLE_LLM_DESC' | 'ENABLE_LTREE_ASC' @@ -7875,15 +9000,35 @@ export type DatabaseSettingOrderBy = | 'ENABLE_REALTIME_DESC' | 'ENABLE_SEARCH_ASC' | 'ENABLE_SEARCH_DESC' + | 'IDLE_IN_TRANSACTION_TIMEOUT_MS_ASC' + | 'IDLE_IN_TRANSACTION_TIMEOUT_MS_DESC' | 'ID_ASC' | 'ID_DESC' | 'LABELS_ASC' | 'LABELS_DESC' + | 'LOCK_TIMEOUT_MS_ASC' + | 'LOCK_TIMEOUT_MS_DESC' + | 'MAX_CONCURRENT_REQUESTS_ASC' + | 'MAX_CONCURRENT_REQUESTS_DESC' + | 'MAX_PAGE_SIZE_ASC' + | 'MAX_PAGE_SIZE_DESC' + | 'MAX_QUERY_COST_ASC' + | 'MAX_QUERY_COST_DESC' + | 'MAX_QUERY_DEPTH_ASC' + | 'MAX_QUERY_DEPTH_DESC' + | 'MAX_QUEUE_WAIT_MS_ASC' + | 'MAX_QUEUE_WAIT_MS_DESC' + | 'MAX_REQUEST_BYTES_ASC' + | 'MAX_REQUEST_BYTES_DESC' | 'NATURAL' | 'OPTIONS_ASC' | 'OPTIONS_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' + | 'RATE_LIMIT_BURST_ASC' + | 'RATE_LIMIT_BURST_DESC' + | 'RATE_LIMIT_RPM_ASC' + | 'RATE_LIMIT_RPM_DESC' | 'STATEMENT_TIMEOUT_MS_ASC' | 'STATEMENT_TIMEOUT_MS_DESC' | 'UPDATED_AT_ASC' @@ -7945,6 +9090,8 @@ export type DeriveOrderBy = | 'DATABASE_ID_DESC' | 'ID_ASC' | 'ID_DESC' + | 'INCLUDE_GRANTS_ASC' + | 'INCLUDE_GRANTS_DESC' | 'INCLUDE_MUTATIONS_ASC' | 'INCLUDE_MUTATIONS_DESC' | 'KIND_ASC' @@ -7965,6 +9112,8 @@ export type DomainOrderBy = | 'CONFIG_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'HOSTNAME_ASC' @@ -7990,6 +9139,8 @@ export type DomainOrderBy = | 'TLS_STATUS_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC' | 'VERIFICATION_STATUS_ASC' | 'VERIFICATION_STATUS_DESC' | 'VERIFIED_AT_ASC' @@ -8086,6 +9237,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' @@ -8353,17 +9586,51 @@ export type FullTextSearchOrderBy = | 'WEIGHTS_ASC' | 'WEIGHTS_DESC'; export type FunctionOrderBy = + | 'API_EXPOSED_ASC' + | 'API_EXPOSED_DESC' + | 'ARGUMENTS_ASC' + | 'ARGUMENTS_DESC' + | 'BODY_AST_ASC' + | 'BODY_AST_DESC' + | 'CATEGORY_ASC' + | 'CATEGORY_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'DATA_ASC' + | 'DATA_DESC' + | 'FUNCTION_TYPE_ASC' + | 'FUNCTION_TYPE_DESC' | 'ID_ASC' | 'ID_DESC' + | 'IS_STRICT_ASC' + | 'IS_STRICT_DESC' + | 'KIND_ASC' + | 'KIND_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' + | 'RETURNS_ASC' + | 'RETURNS_DESC' | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC'; + | 'SCHEMA_ID_DESC' + | 'SECURITY_INVOKER_ASC' + | 'SECURITY_INVOKER_DESC' + | 'SMART_TAGS_ASC' + | 'SMART_TAGS_DESC' + | 'TAGS_ASC' + | 'TAGS_DESC' + | 'VOLATILITY_ASC' + | 'VOLATILITY_DESC'; +export type GetSitePreviewsRecordsOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'COMMIT_ID_ASC' + | 'COMMIT_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC'; export type HostnameBindingOrderBy = | 'DOMAIN_ID_ASC' | 'DOMAIN_ID_DESC' @@ -8388,36 +9655,26 @@ export type HostnameBindingOrderBy = | 'UPDATED_AT_DESC' | 'VERIFICATION_STATUS_ASC' | 'VERIFICATION_STATUS_DESC'; -export type 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' +export type IdentityProviderRegistryOrderBy = + | 'AUTHORIZATION_URL_ASC' + | 'AUTHORIZATION_URL_DESC' + | 'DISPLAY_NAME_ASC' + | 'DISPLAY_NAME_DESC' + | 'ISSUER_URL_ASC' + | 'ISSUER_URL_DESC' + | 'KIND_ASC' + | 'KIND_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'; + | 'SCOPES_ASC' + | 'SCOPES_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'TOKEN_URL_ASC' + | 'TOKEN_URL_DESC' + | 'USERINFO_URL_ASC' + | 'USERINFO_URL_DESC'; export type IndexOrderBy = | 'ACCESS_METHOD_ASC' | 'ACCESS_METHOD_DESC' @@ -8440,6 +9697,8 @@ export type IndexOrderBy = | 'NAME_ASC' | 'NAME_DESC' | 'NATURAL' + | 'NULLS_NOT_DISTINCT_ASC' + | 'NULLS_NOT_DISTINCT_DESC' | 'OPTIONS_ASC' | 'OPTIONS_DESC' | 'OP_CLASSES_ASC' @@ -8465,6 +9724,8 @@ export type ManagedDomainOrderBy = | 'CERT_STATUS_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'DOMAIN_ASC' @@ -8482,6 +9743,8 @@ export type ManagedDomainOrderBy = | 'TLS_STATUS_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC' | 'VERIFICATION_STATUS_ASC' | 'VERIFICATION_STATUS_DESC' | 'VERIFIED_AT_ASC' @@ -8518,6 +9781,8 @@ export type PageOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' + | 'SEEDED_FROM_ASC' + | 'SEEDED_FROM_DESC' | 'SITE_ID_ASC' | 'SITE_ID_DESC' | 'SLUG_ASC' @@ -8556,6 +9821,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' @@ -8585,6 +9872,8 @@ export type PlatformApiSettingOrderBy = | 'ENABLE_DIRECT_UPLOADS_DESC' | 'ENABLE_I18N_ASC' | 'ENABLE_I18N_DESC' + | 'ENABLE_INTROSPECTION_ASC' + | 'ENABLE_INTROSPECTION_DESC' | 'ENABLE_LLM_ASC' | 'ENABLE_LLM_DESC' | 'ENABLE_LTREE_ASC' @@ -8599,39 +9888,37 @@ export type PlatformApiSettingOrderBy = | 'ENABLE_REALTIME_DESC' | 'ENABLE_SEARCH_ASC' | 'ENABLE_SEARCH_DESC' + | 'IDLE_IN_TRANSACTION_TIMEOUT_MS_ASC' + | 'IDLE_IN_TRANSACTION_TIMEOUT_MS_DESC' | 'ID_ASC' | 'ID_DESC' + | 'LOCK_TIMEOUT_MS_ASC' + | 'LOCK_TIMEOUT_MS_DESC' + | 'MAX_CONCURRENT_REQUESTS_ASC' + | 'MAX_CONCURRENT_REQUESTS_DESC' + | 'MAX_PAGE_SIZE_ASC' + | 'MAX_PAGE_SIZE_DESC' + | 'MAX_QUERY_COST_ASC' + | 'MAX_QUERY_COST_DESC' + | 'MAX_QUERY_DEPTH_ASC' + | 'MAX_QUERY_DEPTH_DESC' + | 'MAX_QUEUE_WAIT_MS_ASC' + | 'MAX_QUEUE_WAIT_MS_DESC' + | 'MAX_REQUEST_BYTES_ASC' + | 'MAX_REQUEST_BYTES_DESC' | 'NATURAL' | 'OPTIONS_ASC' | 'OPTIONS_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' + | 'RATE_LIMIT_BURST_ASC' + | 'RATE_LIMIT_BURST_DESC' + | 'RATE_LIMIT_RPM_ASC' + | 'RATE_LIMIT_RPM_DESC' | 'STATEMENT_TIMEOUT_MS_ASC' | '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' @@ -8651,6 +9938,8 @@ export type PlatformDomainOrderBy = | 'CONFIG_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'HOSTNAME_ASC' | 'HOSTNAME_DESC' | 'ID_ASC' @@ -8674,6 +9963,8 @@ export type PlatformDomainOrderBy = | 'TLS_STATUS_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC' | 'VERIFICATION_STATUS_ASC' | 'VERIFICATION_STATUS_DESC' | 'VERIFIED_AT_ASC' @@ -8736,6 +10027,90 @@ 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 PlatformGetSitePreviewsRecordsOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'COMMIT_ID_ASC' + | 'COMMIT_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC'; export type PlatformManagedDomainOrderBy = | 'ALLOW_PUBLIC_USAGE_ASC' | 'ALLOW_PUBLIC_USAGE_DESC' @@ -8745,6 +10120,8 @@ export type PlatformManagedDomainOrderBy = | 'CERT_STATUS_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'DOMAIN_ASC' | 'DOMAIN_DESC' | 'ID_ASC' @@ -8760,6 +10137,8 @@ export type PlatformManagedDomainOrderBy = | 'TLS_STATUS_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC' | 'VERIFICATION_STATUS_ASC' | 'VERIFICATION_STATUS_DESC' | 'VERIFIED_AT_ASC' @@ -8776,6 +10155,8 @@ export type PlatformPageOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' + | 'SEEDED_FROM_ASC' + | 'SEEDED_FROM_DESC' | 'SITE_ID_ASC' | 'SITE_ID_DESC' | 'SLUG_ASC' @@ -8785,8 +10166,8 @@ export type PlatformPageOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; export type PlatformSiteAppLinkOrderBy = - | 'APP_IDENTIFIER_ASC' - | 'APP_IDENTIFIER_DESC' + | 'APP_STORE_IDENTITY_ID_ASC' + | 'APP_STORE_IDENTITY_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'ID_ASC' @@ -8794,18 +10175,10 @@ export type PlatformSiteAppLinkOrderBy = | 'NATURAL' | 'PATH_COMPONENTS_ASC' | 'PATH_COMPONENTS_DESC' - | 'PLATFORM_ASC' - | 'PLATFORM_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'SHA256_CERT_FINGERPRINTS_ASC' - | 'SHA256_CERT_FINGERPRINTS_DESC' | 'SITE_ID_ASC' | 'SITE_ID_DESC' - | 'STORE_URL_ASC' - | 'STORE_URL_DESC' - | 'TEAM_ID_ASC' - | 'TEAM_ID_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'WEBCREDENTIALS_ASC' @@ -8817,6 +10190,8 @@ export type PlatformSiteOrderBy = | 'BUCKET_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' | 'ID_ASC' @@ -8837,7 +10212,9 @@ export type PlatformSiteOrderBy = | 'TITLE_ASC' | 'TITLE_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; export type PlatformSiteDeepLinkOrderBy = | 'APP_PATH_ASC' | 'APP_PATH_DESC' @@ -8850,6 +10227,8 @@ export type PlatformSiteDeepLinkOrderBy = | 'METADATA_ASC' | 'METADATA_DESC' | 'NATURAL' + | 'PAGE_ID_ASC' + | 'PAGE_ID_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'SITE_ID_ASC' @@ -8900,6 +10279,8 @@ export type PlatformSiteMetadatumOrderBy = | 'PRIMARY_KEY_DESC' | 'ROBOTS_ASC' | 'ROBOTS_DESC' + | 'ROBOTS_SEEDED_FROM_ASC' + | 'ROBOTS_SEEDED_FROM_DESC' | 'SITE_ID_ASC' | 'SITE_ID_DESC' | 'STORE_ID_ASC' @@ -8928,15 +10309,33 @@ export type PlatformSiteModuleOrderBy = | 'SITE_ID_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type PlatformSiteThemeOrderBy = +export type PlatformSiteReleaseOrderBy = | 'COMMIT_ID_ASC' | 'COMMIT_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'ID_ASC' | 'ID_DESC' - | 'IS_ACTIVE_ASC' - | 'IS_ACTIVE_DESC' + | 'MANIFEST_ASC' + | 'MANIFEST_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'SITE_ID_ASC' + | 'SITE_ID_DESC' + | 'STORE_ID_ASC' + | 'STORE_ID_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type PlatformSiteThemeOrderBy = + | 'COMMIT_ID_ASC' + | 'COMMIT_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_ACTIVE_ASC' + | 'IS_ACTIVE_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'NATURAL' @@ -8973,6 +10372,8 @@ export type PlatformSiteWebConfigOrderBy = export type PolicyOrderBy = | 'CATEGORY_ASC' | 'CATEGORY_DESC' + | 'COLUMN_REFS_ASC' + | 'COLUMN_REFS_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'DATABASE_ID_ASC' @@ -9068,6 +10469,30 @@ export type PubkeySettingOrderBy = | 'UPDATED_AT_DESC' | 'USER_FIELD_ASC' | 'USER_FIELD_DESC'; +export type RedirectOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'PRESERVE_PATH_ASC' + | 'PRESERVE_PATH_DESC' + | 'PRESERVE_QUERY_ASC' + | 'PRESERVE_QUERY_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'STATUS_CODE_ASC' + | 'STATUS_CODE_DESC' + | 'TO_HOST_ASC' + | 'TO_HOST_DESC' + | 'TO_PATH_ASC' + | 'TO_PATH_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; export type RlsSettingOrderBy = | 'AUTHENTICATE_FUNCTION_ID_ASC' | 'AUTHENTICATE_FUNCTION_ID_DESC' @@ -9112,12 +10537,16 @@ export type RouteBindingOrderBy = | 'PRIMARY_KEY_DESC' | 'PRIORITY_ASC' | 'PRIORITY_DESC' + | 'SERVING_SITE_ID_ASC' + | 'SERVING_SITE_ID_DESC' | 'TARGET_API_ID_ASC' | 'TARGET_API_ID_DESC' | 'TARGET_BUCKET_ID_ASC' | 'TARGET_BUCKET_ID_DESC' | 'TARGET_FUNCTION_ID_ASC' | 'TARGET_FUNCTION_ID_DESC' + | 'TARGET_REDIRECT_ID_ASC' + | 'TARGET_REDIRECT_ID_DESC' | 'TARGET_SERVICE_ID_ASC' | 'TARGET_SERVICE_ID_DESC' | 'TARGET_SITE_ID_ASC' @@ -9125,6 +10554,8 @@ export type RouteBindingOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; export type RouteOrderBy = + | 'ANONYMOUS_ASC' + | 'ANONYMOUS_DESC' | 'CONFIG_ASC' | 'CONFIG_DESC' | 'CREATED_AT_ASC' @@ -9142,16 +10573,22 @@ export type RouteOrderBy = | 'NATURAL' | 'PATH_ASC' | 'PATH_DESC' + | 'PREVIEW_REF_ASC' + | 'PREVIEW_REF_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'PRIORITY_ASC' | 'PRIORITY_DESC' + | 'SERVING_SITE_ID_ASC' + | 'SERVING_SITE_ID_DESC' | 'TARGET_API_ID_ASC' | 'TARGET_API_ID_DESC' | 'TARGET_BUCKET_ID_ASC' | 'TARGET_BUCKET_ID_DESC' | 'TARGET_FUNCTION_ID_ASC' | 'TARGET_FUNCTION_ID_DESC' + | 'TARGET_REDIRECT_ID_ASC' + | 'TARGET_REDIRECT_ID_DESC' | 'TARGET_SERVICE_ID_ASC' | 'TARGET_SERVICE_ID_DESC' | 'TARGET_SITE_ID_ASC' @@ -9205,8 +10642,8 @@ export type SchemaGrantOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; export type SiteAppLinkOrderBy = - | 'APP_IDENTIFIER_ASC' - | 'APP_IDENTIFIER_DESC' + | 'APP_STORE_IDENTITY_ID_ASC' + | 'APP_STORE_IDENTITY_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'DATABASE_ID_ASC' @@ -9216,18 +10653,10 @@ export type SiteAppLinkOrderBy = | 'NATURAL' | 'PATH_COMPONENTS_ASC' | 'PATH_COMPONENTS_DESC' - | 'PLATFORM_ASC' - | 'PLATFORM_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'SHA256_CERT_FINGERPRINTS_ASC' - | 'SHA256_CERT_FINGERPRINTS_DESC' | 'SITE_ID_ASC' | 'SITE_ID_DESC' - | 'STORE_URL_ASC' - | 'STORE_URL_DESC' - | 'TEAM_ID_ASC' - | 'TEAM_ID_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'WEBCREDENTIALS_ASC' @@ -9239,6 +10668,8 @@ export type SiteOrderBy = | 'BUCKET_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'DESCRIPTION_ASC' @@ -9261,7 +10692,9 @@ export type SiteOrderBy = | 'TITLE_ASC' | 'TITLE_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; export type SiteDeepLinkOrderBy = | 'APP_PATH_ASC' | 'APP_PATH_DESC' @@ -9276,6 +10709,8 @@ export type SiteDeepLinkOrderBy = | 'METADATA_ASC' | 'METADATA_DESC' | 'NATURAL' + | 'PAGE_ID_ASC' + | 'PAGE_ID_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'SITE_ID_ASC' @@ -9330,6 +10765,8 @@ export type SiteMetadatumOrderBy = | 'PRIMARY_KEY_DESC' | 'ROBOTS_ASC' | 'ROBOTS_DESC' + | 'ROBOTS_SEEDED_FROM_ASC' + | 'ROBOTS_SEEDED_FROM_DESC' | 'SITE_ID_ASC' | 'SITE_ID_DESC' | 'STORE_ID_ASC' @@ -9360,6 +10797,26 @@ export type SiteModuleOrderBy = | 'SITE_ID_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; +export type SiteReleaseOrderBy = + | 'COMMIT_ID_ASC' + | 'COMMIT_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'MANIFEST_ASC' + | 'MANIFEST_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'SITE_ID_ASC' + | 'SITE_ID_DESC' + | 'STORE_ID_ASC' + | 'STORE_ID_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; export type SiteThemeOrderBy = | 'COMMIT_ID_ASC' | 'COMMIT_ID_DESC' @@ -9563,12 +11020,20 @@ export type TriggerOrderBy = | 'CREATED_AT_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'EVENTS_ASC' + | 'EVENTS_DESC' | 'EVENT_ASC' | 'EVENT_DESC' + | 'FOR_EACH_ROW_ASC' + | 'FOR_EACH_ROW_DESC' + | 'FUNCTION_ID_ASC' + | 'FUNCTION_ID_DESC' | 'FUNCTION_NAME_ASC' | 'FUNCTION_NAME_DESC' | 'ID_ASC' | 'ID_DESC' + | 'KIND_ASC' + | 'KIND_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'NATURAL' @@ -9580,8 +11045,12 @@ export type TriggerOrderBy = | 'TABLE_ID_DESC' | 'TAGS_ASC' | 'TAGS_DESC' + | 'TIMING_ASC' + | 'TIMING_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; + | 'UPDATED_AT_DESC' + | 'WHEN_AST_ASC' + | 'WHEN_AST_DESC'; export type TriggerFunctionOrderBy = | 'CODE_ASC' | 'CODE_DESC' @@ -9801,6 +11270,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: { @@ -9833,6 +11332,7 @@ export interface CreateApiSettingInput { enableConnectionFilter?: boolean; enableDirectUploads?: boolean; enableI18N?: boolean; + enableIntrospection?: boolean; enableLlm?: boolean; enableLtree?: boolean; enableManyToMany?: boolean; @@ -9840,7 +11340,17 @@ export interface CreateApiSettingInput { enablePresignedUploads?: boolean; enableRealtime?: boolean; enableSearch?: boolean; + idleInTransactionTimeoutMs?: string; + lockTimeoutMs?: string; + maxConcurrentRequests?: number; + maxPageSize?: number; + maxQueryCost?: number; + maxQueryDepth?: number; + maxQueueWaitMs?: number; + maxRequestBytes?: number; options?: Record; + rateLimitBurst?: number; + rateLimitRpm?: number; statementTimeoutMs?: string; }; } @@ -9852,6 +11362,7 @@ export interface ApiSettingPatch { enableConnectionFilter?: boolean | null; enableDirectUploads?: boolean | null; enableI18N?: boolean | null; + enableIntrospection?: boolean | null; enableLlm?: boolean | null; enableLtree?: boolean | null; enableManyToMany?: boolean | null; @@ -9859,7 +11370,17 @@ export interface ApiSettingPatch { enablePresignedUploads?: boolean | null; enableRealtime?: boolean | null; enableSearch?: boolean | null; + idleInTransactionTimeoutMs?: string | null; + lockTimeoutMs?: string | null; + maxConcurrentRequests?: number | null; + maxPageSize?: number | null; + maxQueryCost?: number | null; + maxQueryDepth?: number | null; + maxQueueWaitMs?: number | null; + maxRequestBytes?: number | null; options?: Record | null; + rateLimitBurst?: number | null; + rateLimitRpm?: number | null; statementTimeoutMs?: string | null; } export interface UpdateApiSettingInput { @@ -9871,36 +11392,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: { @@ -10065,10 +11556,12 @@ export interface CreateDatabaseSettingInput { annotations?: Record; databaseId: string; enableAggregates?: boolean; + enableBilling?: boolean; enableBulk?: boolean; enableConnectionFilter?: boolean; enableDirectUploads?: boolean; enableI18N?: boolean; + enableIntrospection?: boolean; enableLlm?: boolean; enableLtree?: boolean; enableManyToMany?: boolean; @@ -10076,8 +11569,18 @@ export interface CreateDatabaseSettingInput { enablePresignedUploads?: boolean; enableRealtime?: boolean; enableSearch?: boolean; + idleInTransactionTimeoutMs?: string; labels?: Record; + lockTimeoutMs?: string; + maxConcurrentRequests?: number; + maxPageSize?: number; + maxQueryCost?: number; + maxQueryDepth?: number; + maxQueueWaitMs?: number; + maxRequestBytes?: number; options?: Record; + rateLimitBurst?: number; + rateLimitRpm?: number; statementTimeoutMs?: string; }; } @@ -10085,10 +11588,12 @@ export interface DatabaseSettingPatch { annotations?: Record | null; databaseId?: string | null; enableAggregates?: boolean | null; + enableBilling?: boolean | null; enableBulk?: boolean | null; enableConnectionFilter?: boolean | null; enableDirectUploads?: boolean | null; enableI18N?: boolean | null; + enableIntrospection?: boolean | null; enableLlm?: boolean | null; enableLtree?: boolean | null; enableManyToMany?: boolean | null; @@ -10096,8 +11601,18 @@ export interface DatabaseSettingPatch { enablePresignedUploads?: boolean | null; enableRealtime?: boolean | null; enableSearch?: boolean | null; + idleInTransactionTimeoutMs?: string | null; labels?: Record | null; + lockTimeoutMs?: string | null; + maxConcurrentRequests?: number | null; + maxPageSize?: number | null; + maxQueryCost?: number | null; + maxQueryDepth?: number | null; + maxQueueWaitMs?: number | null; + maxRequestBytes?: number | null; options?: Record | null; + rateLimitBurst?: number | null; + rateLimitRpm?: number | null; statementTimeoutMs?: string | null; } export interface UpdateDatabaseSettingInput { @@ -10179,6 +11694,7 @@ export interface CreateDeriveInput { clientMutationId?: string; derive: { databaseId?: string; + includeGrants?: boolean; includeMutations?: boolean; kind: string; policyPrefix?: string; @@ -10188,6 +11704,7 @@ export interface CreateDeriveInput { } export interface DerivePatch { databaseId?: string | null; + includeGrants?: boolean | null; includeMutations?: boolean | null; kind?: string | null; policyPrefix?: string | null; @@ -10207,6 +11724,7 @@ export interface CreateDomainInput { clientMutationId?: string; domain: { config?: Record; + createdByPrincipal?: string; databaseId: string; hostname: string; isPublished?: boolean; @@ -10216,12 +11734,14 @@ export interface CreateDomainInput { tlsReadyAt?: string; tlsSecretName?: string; tlsStatus?: string; + updatedByPrincipal?: string; verificationStatus?: string; verifiedAt?: string; }; } export interface DomainPatch { config?: Record | null; + createdByPrincipal?: string | null; databaseId?: string | null; hostname?: string | null; isPublished?: boolean | null; @@ -10231,6 +11751,7 @@ export interface DomainPatch { tlsReadyAt?: string | null; tlsSecretName?: string | null; tlsStatus?: string | null; + updatedByPrincipal?: string | null; verificationStatus?: string | null; verifiedAt?: string | null; } @@ -10357,6 +11878,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: { @@ -10678,15 +12299,41 @@ export interface DeleteFullTextSearchInput { export interface CreateFunctionInput { clientMutationId?: string; function: { + apiExposed?: boolean; + arguments?: Record; + bodyAst?: Record; + category?: ObjectCategory; + data?: Record; databaseId: string; + functionType?: string; + isStrict?: boolean; + kind?: string; name: string; + returns?: Record; schemaId: string; + securityInvoker?: boolean; + smartTags?: Record; + tags?: string[]; + volatility?: string; }; } export interface FunctionPatch { + apiExposed?: boolean | null; + arguments?: Record | null; + bodyAst?: Record | null; + category?: ObjectCategory | null; + data?: Record | null; databaseId?: string | null; + functionType?: string | null; + isStrict?: boolean | null; + kind?: string | null; name?: string | null; + returns?: Record | null; schemaId?: string | null; + securityInvoker?: boolean | null; + smartTags?: Record | null; + tags?: string[] | null; + volatility?: string | null; } export interface UpdateFunctionInput { clientMutationId?: string; @@ -10697,6 +12344,26 @@ export interface DeleteFunctionInput { clientMutationId?: string; id: string; } +export interface CreateGetSitePreviewsRecordInput { + clientMutationId?: string; + getSitePreviewsRecord: { + commitId: string; + name?: string; + }; +} +export interface GetSitePreviewsRecordPatch { + commitId?: string | null; + name?: string | null; +} +export interface UpdateGetSitePreviewsRecordInput { + clientMutationId?: string; + id: string; + getSitePreviewsRecordPatch: GetSitePreviewsRecordPatch; +} +export interface DeleteGetSitePreviewsRecordInput { + clientMutationId?: string; + id: string; +} export interface CreateHostnameBindingInput { clientMutationId?: string; hostnameBinding: { @@ -10729,41 +12396,37 @@ export interface DeleteHostnameBindingInput { clientMutationId?: string; id: string; } -export interface CreateHttpRouteInput { +export interface CreateIdentityProviderRegistryInput { clientMutationId?: string; - httpRoute: { - createdBy?: string; - databaseId: string; - domainId: string; - isActive?: boolean; - method?: string; - path?: string; - priority?: number; - targetId: string; - targetKind: string; - updatedBy?: string; + identityProviderRegistry: { + authorizationUrl?: string; + displayName: string; + issuerUrl?: string; + kind: string; + scopes?: string[]; + slug: string; + tokenUrl?: string; + userinfoUrl?: string; }; } -export interface HttpRoutePatch { - createdBy?: string | null; - databaseId?: string | null; - domainId?: string | null; - isActive?: boolean | null; - method?: string | null; - path?: string | null; - priority?: number | null; - targetId?: string | null; - targetKind?: string | null; - updatedBy?: string | null; +export interface IdentityProviderRegistryPatch { + authorizationUrl?: string | null; + displayName?: string | null; + issuerUrl?: string | null; + kind?: string | null; + scopes?: string[] | null; + slug?: string | null; + tokenUrl?: string | null; + userinfoUrl?: string | null; } -export interface UpdateHttpRouteInput { +export interface UpdateIdentityProviderRegistryInput { clientMutationId?: string; - id: string; - httpRoutePatch: HttpRoutePatch; + slug: string; + identityProviderRegistryPatch: IdentityProviderRegistryPatch; } -export interface DeleteHttpRouteInput { +export interface DeleteIdentityProviderRegistryInput { clientMutationId?: string; - id: string; + slug: string; } export interface CreateIndexInput { clientMutationId?: string; @@ -10776,6 +12439,7 @@ export interface CreateIndexInput { indexParams?: Record; isUnique?: boolean; name?: string; + nullsNotDistinct?: boolean; opClasses?: string[]; options?: Record; smartTags?: Record; @@ -10793,6 +12457,7 @@ export interface IndexPatch { indexParams?: Record | null; isUnique?: boolean | null; name?: string | null; + nullsNotDistinct?: boolean | null; opClasses?: string[] | null; options?: Record | null; smartTags?: Record | null; @@ -10815,11 +12480,13 @@ export interface CreateManagedDomainInput { allowPublicUsage?: boolean; annotations?: Record; certStatus?: string; + createdByPrincipal?: string; databaseId: string; domain: string; isWildcard?: boolean; tlsReadyAt?: string; tlsStatus?: string; + updatedByPrincipal?: string; verificationStatus?: string; verifiedAt?: string; }; @@ -10828,11 +12495,13 @@ export interface ManagedDomainPatch { allowPublicUsage?: boolean | null; annotations?: Record | null; certStatus?: string | null; + createdByPrincipal?: string | null; databaseId?: string | null; domain?: string | null; isWildcard?: boolean | null; tlsReadyAt?: string | null; tlsStatus?: string | null; + updatedByPrincipal?: string | null; verificationStatus?: string | null; verifiedAt?: string | null; } @@ -10881,6 +12550,7 @@ export interface CreatePageInput { commitId?: string; content: Record; databaseId: string; + seededFrom?: Record; siteId: string; slug: string; storeId?: string; @@ -10890,6 +12560,7 @@ export interface PagePatch { commitId?: string | null; content?: Record | null; databaseId?: string | null; + seededFrom?: Record | null; siteId?: string | null; slug?: string | null; storeId?: string | null; @@ -10939,6 +12610,34 @@ export interface DeletePartitionInput { clientMutationId?: string; id: string; } +export interface CreatePlatformApiInput { + clientMutationId?: 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: { @@ -10968,6 +12667,7 @@ export interface CreatePlatformApiSettingInput { enableConnectionFilter?: boolean; enableDirectUploads?: boolean; enableI18N?: boolean; + enableIntrospection?: boolean; enableLlm?: boolean; enableLtree?: boolean; enableManyToMany?: boolean; @@ -10975,7 +12675,17 @@ export interface CreatePlatformApiSettingInput { enablePresignedUploads?: boolean; enableRealtime?: boolean; enableSearch?: boolean; + idleInTransactionTimeoutMs?: string; + lockTimeoutMs?: string; + maxConcurrentRequests?: number; + maxPageSize?: number; + maxQueryCost?: number; + maxQueryDepth?: number; + maxQueueWaitMs?: number; + maxRequestBytes?: number; options?: Record; + rateLimitBurst?: number; + rateLimitRpm?: number; statementTimeoutMs?: string; }; } @@ -10986,6 +12696,7 @@ export interface PlatformApiSettingPatch { enableConnectionFilter?: boolean | null; enableDirectUploads?: boolean | null; enableI18N?: boolean | null; + enableIntrospection?: boolean | null; enableLlm?: boolean | null; enableLtree?: boolean | null; enableManyToMany?: boolean | null; @@ -10993,7 +12704,17 @@ export interface PlatformApiSettingPatch { enablePresignedUploads?: boolean | null; enableRealtime?: boolean | null; enableSearch?: boolean | null; + idleInTransactionTimeoutMs?: string | null; + lockTimeoutMs?: string | null; + maxConcurrentRequests?: number | null; + maxPageSize?: number | null; + maxQueryCost?: number | null; + maxQueryDepth?: number | null; + maxQueueWaitMs?: number | null; + maxRequestBytes?: number | null; options?: Record | null; + rateLimitBurst?: number | null; + rateLimitRpm?: number | null; statementTimeoutMs?: string | null; } export interface UpdatePlatformApiSettingInput { @@ -11005,34 +12726,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: { @@ -11057,6 +12750,7 @@ export interface CreatePlatformDomainInput { clientMutationId?: string; platformDomain: { config?: Record; + createdByPrincipal?: string; hostname: string; isPublished?: boolean; isWildcard?: boolean; @@ -11065,12 +12759,14 @@ export interface CreatePlatformDomainInput { tlsReadyAt?: string; tlsSecretName?: string; tlsStatus?: string; + updatedByPrincipal?: string; verificationStatus?: string; verifiedAt?: string; }; } export interface PlatformDomainPatch { config?: Record | null; + createdByPrincipal?: string | null; hostname?: string | null; isPublished?: boolean | null; isWildcard?: boolean | null; @@ -11079,6 +12775,7 @@ export interface PlatformDomainPatch { tlsReadyAt?: string | null; tlsSecretName?: string | null; tlsStatus?: string | null; + updatedByPrincipal?: string | null; verificationStatus?: string | null; verifiedAt?: string | null; } @@ -11161,28 +12858,146 @@ export interface DeletePlatformDomainVerificationInput { clientMutationId?: string; id: string; } -export interface CreatePlatformManagedDomainInput { +export interface CreatePlatformEmailIdentityInput { clientMutationId?: string; - platformManagedDomain: { - allowPublicUsage?: boolean; - annotations?: Record; - certStatus?: string; - domain: string; - isWildcard?: boolean; - tlsReadyAt?: string; - tlsStatus?: string; - verificationStatus?: string; - verifiedAt?: string; + platformEmailIdentity: { + fromAddress: string; + fromName?: string; + isActive?: boolean; + isDefault?: boolean; + name: string; + providerAccountId?: string; + replyToAddress?: string; + supportAddress?: string; + transportMode?: string; }; } -export interface PlatformManagedDomainPatch { - allowPublicUsage?: boolean | null; - annotations?: Record | null; - certStatus?: string | null; - domain?: string | null; +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 CreatePlatformGetSitePreviewsRecordInput { + clientMutationId?: string; + platformGetSitePreviewsRecord: { + commitId: string; + name?: string; + }; +} +export interface PlatformGetSitePreviewsRecordPatch { + commitId?: string | null; + name?: string | null; +} +export interface UpdatePlatformGetSitePreviewsRecordInput { + clientMutationId?: string; + id: string; + platformGetSitePreviewsRecordPatch: PlatformGetSitePreviewsRecordPatch; +} +export interface DeletePlatformGetSitePreviewsRecordInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformManagedDomainInput { + clientMutationId?: string; + platformManagedDomain: { + allowPublicUsage?: boolean; + annotations?: Record; + certStatus?: string; + createdByPrincipal?: string; + domain: string; + isWildcard?: boolean; + tlsReadyAt?: string; + tlsStatus?: string; + updatedByPrincipal?: string; + verificationStatus?: string; + verifiedAt?: string; + }; +} +export interface PlatformManagedDomainPatch { + allowPublicUsage?: boolean | null; + annotations?: Record | null; + certStatus?: string | null; + createdByPrincipal?: string | null; + domain?: string | null; isWildcard?: boolean | null; tlsReadyAt?: string | null; tlsStatus?: string | null; + updatedByPrincipal?: string | null; verificationStatus?: string | null; verifiedAt?: string | null; } @@ -11200,6 +13015,7 @@ export interface CreatePlatformPageInput { platformPage: { commitId?: string; content: Record; + seededFrom?: Record; siteId: string; slug: string; storeId?: string; @@ -11208,6 +13024,7 @@ export interface CreatePlatformPageInput { export interface PlatformPagePatch { commitId?: string | null; content?: Record | null; + seededFrom?: Record | null; siteId?: string | null; slug?: string | null; storeId?: string | null; @@ -11224,24 +13041,16 @@ export interface DeletePlatformPageInput { export interface CreatePlatformSiteAppLinkInput { clientMutationId?: string; platformSiteAppLink: { - appIdentifier: string; + appStoreIdentityId: string; pathComponents?: string[]; - platform: string; - sha256CertFingerprints?: string[]; siteId: string; - storeUrl?: string; - teamId?: string; webcredentials?: boolean; }; } export interface PlatformSiteAppLinkPatch { - appIdentifier?: string | null; + appStoreIdentityId?: string | null; pathComponents?: string[] | null; - platform?: string | null; - sha256CertFingerprints?: string[] | null; siteId?: string | null; - storeUrl?: string | null; - teamId?: string | null; webcredentials?: boolean | null; } export interface UpdatePlatformSiteAppLinkInput { @@ -11258,6 +13067,7 @@ export interface CreatePlatformSiteInput { platformSite: { activeCommitId?: string; bucketId?: string; + createdByPrincipal?: string; description?: string; installationId?: string; installationMemberSlug?: string; @@ -11265,11 +13075,13 @@ export interface CreatePlatformSiteInput { name: string; resourceId?: string; title?: string; + updatedByPrincipal?: string; }; } export interface PlatformSitePatch { activeCommitId?: string | null; bucketId?: string | null; + createdByPrincipal?: string | null; description?: string | null; installationId?: string | null; installationMemberSlug?: string | null; @@ -11277,6 +13089,7 @@ export interface PlatformSitePatch { name?: string | null; resourceId?: string | null; title?: string | null; + updatedByPrincipal?: string | null; } export interface UpdatePlatformSiteInput { clientMutationId?: string; @@ -11293,6 +13106,7 @@ export interface CreatePlatformSiteDeepLinkInput { appPath: string; fallbackUrl?: string; metadata?: Record; + pageId?: string; siteId: string; slug: string; webPath?: string; @@ -11302,6 +13116,7 @@ export interface PlatformSiteDeepLinkPatch { appPath?: string | null; fallbackUrl?: string | null; metadata?: Record | null; + pageId?: string | null; siteId?: string | null; slug?: string | null; webPath?: string | null; @@ -11348,6 +13163,7 @@ export interface CreatePlatformSiteMetadatumInput { logo?: ConstructiveInternalTypeImage; ogImage?: ConstructiveInternalTypeImage; robots?: string; + robotsSeededFrom?: Record; siteId: string; storeId?: string; title?: string; @@ -11366,6 +13182,7 @@ export interface PlatformSiteMetadatumPatch { ogImage?: ConstructiveInternalTypeImage | null; ogImageUpload?: File | null; robots?: string | null; + robotsSeededFrom?: Record | null; siteId?: string | null; storeId?: string | null; title?: string | null; @@ -11405,6 +13222,30 @@ export interface DeletePlatformSiteModuleInput { clientMutationId?: string; id: string; } +export interface CreatePlatformSiteReleaseInput { + clientMutationId?: string; + platformSiteRelease: { + commitId?: string; + manifest: Record; + siteId: string; + storeId?: string; + }; +} +export interface PlatformSiteReleasePatch { + commitId?: string | null; + manifest?: Record | null; + siteId?: string | null; + storeId?: string | null; +} +export interface UpdatePlatformSiteReleaseInput { + clientMutationId?: string; + id: string; + platformSiteReleasePatch: PlatformSiteReleasePatch; +} +export interface DeletePlatformSiteReleaseInput { + clientMutationId?: string; + id: string; +} export interface CreatePlatformSiteThemeInput { clientMutationId?: string; platformSiteTheme: { @@ -11463,6 +13304,7 @@ export interface CreatePolicyInput { clientMutationId?: string; policy: { category?: ObjectCategory; + columnRefs?: string[]; data?: Record; databaseId?: string; derivedFromPolicyId?: string; @@ -11481,6 +13323,7 @@ export interface CreatePolicyInput { } export interface PolicyPatch { category?: ObjectCategory | null; + columnRefs?: string[] | null; data?: Record | null; databaseId?: string | null; derivedFromPolicyId?: string | null; @@ -11575,6 +13418,36 @@ export interface DeletePubkeySettingInput { clientMutationId?: string; id: string; } +export interface CreateRedirectInput { + clientMutationId?: string; + redirect: { + databaseId: string; + name: string; + preservePath?: boolean; + preserveQuery?: boolean; + statusCode?: number; + toHost: string; + toPath?: string; + }; +} +export interface RedirectPatch { + databaseId?: string | null; + name?: string | null; + preservePath?: boolean | null; + preserveQuery?: boolean | null; + statusCode?: number | null; + toHost?: string | null; + toPath?: string | null; +} +export interface UpdateRedirectInput { + clientMutationId?: string; + id: string; + redirectPatch: RedirectPatch; +} +export interface DeleteRedirectInput { + clientMutationId?: string; + id: string; +} export interface CreateRlsSettingInput { clientMutationId?: string; rlsSetting: { @@ -11617,9 +13490,11 @@ export interface CreateRouteBindingInput { method?: string; path: string; priority?: number; + servingSiteId?: string; targetApiId?: string; targetBucketId?: string; targetFunctionId?: string; + targetRedirectId?: string; targetServiceId?: string; targetSiteId?: string; }; @@ -11630,9 +13505,11 @@ export interface RouteBindingPatch { method?: string | null; path?: string | null; priority?: number | null; + servingSiteId?: string | null; targetApiId?: string | null; targetBucketId?: string | null; targetFunctionId?: string | null; + targetRedirectId?: string | null; targetServiceId?: string | null; targetSiteId?: string | null; } @@ -11648,31 +13525,39 @@ export interface DeleteRouteBindingInput { export interface CreateRouteInput { clientMutationId?: string; route: { + anonymous?: boolean; config?: Record; databaseId: string; domainId: string; isActive?: boolean; method?: string; path?: string; + previewRef?: string; priority?: number; + servingSiteId?: string; targetApiId?: string; targetBucketId?: string; targetFunctionId?: string; + targetRedirectId?: string; targetServiceId?: string; targetSiteId?: string; }; } export interface RoutePatch { + anonymous?: boolean | null; config?: Record | null; databaseId?: string | null; domainId?: string | null; isActive?: boolean | null; method?: string | null; path?: string | null; + previewRef?: string | null; priority?: number | null; + servingSiteId?: string | null; targetApiId?: string | null; targetBucketId?: string | null; targetFunctionId?: string | null; + targetRedirectId?: string | null; targetServiceId?: string | null; targetSiteId?: string | null; } @@ -11746,26 +13631,18 @@ export interface DeleteSchemaGrantInput { export interface CreateSiteAppLinkInput { clientMutationId?: string; siteAppLink: { - appIdentifier: string; + appStoreIdentityId: string; databaseId: string; pathComponents?: string[]; - platform: string; - sha256CertFingerprints?: string[]; siteId: string; - storeUrl?: string; - teamId?: string; webcredentials?: boolean; }; } export interface SiteAppLinkPatch { - appIdentifier?: string | null; + appStoreIdentityId?: string | null; databaseId?: string | null; pathComponents?: string[] | null; - platform?: string | null; - sha256CertFingerprints?: string[] | null; siteId?: string | null; - storeUrl?: string | null; - teamId?: string | null; webcredentials?: boolean | null; } export interface UpdateSiteAppLinkInput { @@ -11782,6 +13659,7 @@ export interface CreateSiteInput { site: { activeCommitId?: string; bucketId?: string; + createdByPrincipal?: string; databaseId: string; description?: string; installationId?: string; @@ -11790,11 +13668,13 @@ export interface CreateSiteInput { name: string; resourceId?: string; title?: string; + updatedByPrincipal?: string; }; } export interface SitePatch { activeCommitId?: string | null; bucketId?: string | null; + createdByPrincipal?: string | null; databaseId?: string | null; description?: string | null; installationId?: string | null; @@ -11803,6 +13683,7 @@ export interface SitePatch { name?: string | null; resourceId?: string | null; title?: string | null; + updatedByPrincipal?: string | null; } export interface UpdateSiteInput { clientMutationId?: string; @@ -11820,6 +13701,7 @@ export interface CreateSiteDeepLinkInput { databaseId: string; fallbackUrl?: string; metadata?: Record; + pageId?: string; siteId: string; slug: string; webPath?: string; @@ -11830,6 +13712,7 @@ export interface SiteDeepLinkPatch { databaseId?: string | null; fallbackUrl?: string | null; metadata?: Record | null; + pageId?: string | null; siteId?: string | null; slug?: string | null; webPath?: string | null; @@ -11879,6 +13762,7 @@ export interface CreateSiteMetadatumInput { logo?: ConstructiveInternalTypeImage; ogImage?: ConstructiveInternalTypeImage; robots?: string; + robotsSeededFrom?: Record; siteId: string; storeId?: string; title?: string; @@ -11898,6 +13782,7 @@ export interface SiteMetadatumPatch { ogImage?: ConstructiveInternalTypeImage | null; ogImageUpload?: File | null; robots?: string | null; + robotsSeededFrom?: Record | null; siteId?: string | null; storeId?: string | null; title?: string | null; @@ -11939,6 +13824,32 @@ export interface DeleteSiteModuleInput { clientMutationId?: string; id: string; } +export interface CreateSiteReleaseInput { + clientMutationId?: string; + siteRelease: { + commitId?: string; + databaseId: string; + manifest: Record; + siteId: string; + storeId?: string; + }; +} +export interface SiteReleasePatch { + commitId?: string | null; + databaseId?: string | null; + manifest?: Record | null; + siteId?: string | null; + storeId?: string | null; +} +export interface UpdateSiteReleaseInput { + clientMutationId?: string; + id: string; + siteReleasePatch: SiteReleasePatch; +} +export interface DeleteSiteReleaseInput { + clientMutationId?: string; + id: string; +} export interface CreateSiteThemeInput { clientMutationId?: string; siteTheme: { @@ -12187,22 +14098,34 @@ export interface CreateTriggerInput { category?: ObjectCategory; databaseId?: string; event?: string; + events?: string[]; + forEachRow?: boolean; + functionId?: string; functionName?: string; + kind?: string; name: string; smartTags?: Record; tableId: string; tags?: string[]; + timing?: string; + whenAst?: Record; }; } export interface TriggerPatch { category?: ObjectCategory | null; databaseId?: string | null; event?: string | null; + events?: string[] | null; + forEachRow?: boolean | null; + functionId?: string | null; functionName?: string | null; + kind?: string | null; name?: string | null; smartTags?: Record | null; tableId?: string | null; tags?: string[] | null; + timing?: string | null; + whenAst?: Record | null; } export interface UpdateTriggerInput { clientMutationId?: string; @@ -12503,9 +14426,9 @@ export interface DeleteWebauthnSettingInput { } // ============ Connection Fields Map ============ export const connectionFieldsMap = { - Apis: { - apiSchemasByApiId: 'ApiSchema', - corsSettingsByApiId: 'CorsSetting', + Api: { + apiSchemas: 'ApiSchema', + corsSettings: 'CorsSetting', }, Database: { checkConstraints: 'CheckConstraint', @@ -12546,9 +14469,14 @@ export const connectionFieldsMap = { Domain: { domainEvents: 'DomainEvent', domainVerifications: 'DomainVerification', - httpRoutes: 'HttpRoute', routes: 'Route', }, + EmailIdentity: { + emailSiteIdentities: 'EmailSiteIdentity', + }, + EmailProviderAccount: { + emailIdentitiesByProviderAccountId: 'EmailIdentity', + }, Field: { embeddingChunksByEmbeddingFieldId: 'EmbeddingChunk', embeddingChunksByParentFkFieldId: 'EmbeddingChunk', @@ -12560,17 +14488,26 @@ export const connectionFieldsMap = { ForeignKeyConstraint: { foreignKeyConstraintBehaviors: 'ForeignKeyConstraintBehavior', }, + Function: { + triggers: 'Trigger', + }, ManagedDomain: { domainEvents: 'DomainEvent', domainVerifications: 'DomainVerification', }, - PlatformApis: { + PlatformApi: { platformApiSchemasByApiId: 'PlatformApiSchema', }, PlatformDomain: { platformDomainEventsByDomainId: 'PlatformDomainEvent', platformDomainVerificationsByDomainId: 'PlatformDomainVerification', }, + PlatformEmailIdentity: { + platformEmailSiteIdentitiesByEmailIdentityId: 'PlatformEmailSiteIdentity', + }, + PlatformEmailProviderAccount: { + platformEmailIdentitiesByProviderAccountId: 'PlatformEmailIdentity', + }, PlatformManagedDomain: { platformDomainEventsByManagedDomainId: 'PlatformDomainEvent', platformDomainVerificationsByManagedDomainId: 'PlatformDomainVerification', @@ -12583,6 +14520,9 @@ export const connectionFieldsMap = { platformSiteModulesBySiteId: 'PlatformSiteModule', platformSiteThemesBySiteId: 'PlatformSiteTheme', }, + Redirect: { + routesByTargetRedirectId: 'Route', + }, Schema: { apiSchemas: 'ApiSchema', compositeTypes: 'CompositeType', @@ -12597,6 +14537,7 @@ export const connectionFieldsMap = { }, Site: { pages: 'Page', + routesByServingSiteId: 'Route', siteAppLinks: 'SiteAppLink', siteDeepLinks: 'SiteDeepLink', siteErrorPages: 'SiteErrorPage', @@ -12656,18 +14597,86 @@ export interface CancelDatabaseTransferInput { clientMutationId?: string; transferId?: string; } +export interface DeleteSitePreviewInput { + clientMutationId?: string; + targetName?: string; + targetSiteId?: string; +} export interface DomainsAssignSubdomainInput { apex?: string; clientMutationId?: string; label?: string; maxAttempts?: number; } +export interface MintSitePreviewTokenInput { + clientMutationId?: string; + siteId?: string; + target?: string; + targetKind?: string; + ttlSeconds?: number; +} +export interface PagesInstallPagesInput { + clientMutationId?: string; + entityId?: string; + pagesPreset?: string; + siteId?: string; +} +export interface PlatformDeleteSitePreviewInput { + clientMutationId?: string; + targetName?: string; + targetSiteId?: string; +} export interface PlatformDomainsAssignSubdomainInput { apex?: string; clientMutationId?: string; label?: string; maxAttempts?: number; } +export interface PlatformMintSitePreviewTokenInput { + clientMutationId?: string; + siteId?: string; + target?: string; + targetKind?: string; + ttlSeconds?: number; +} +export interface PlatformPagesInstallPagesInput { + clientMutationId?: string; + entityId?: string; + pagesPreset?: string; + siteId?: string; +} +export interface PlatformProvisionSitePreviewInput { + apex?: string; + clientMutationId?: string; + commitId?: string; + name?: string; + siteId?: string; +} +export interface PlatformSetSitePreviewInput { + clientMutationId?: string; + targetCommitId?: string; + targetName?: string; + targetSiteId?: string; +} +export interface PlatformSiteMetadataInstallRobotsInput { + clientMutationId?: string; + entityId?: string; + robotsPreset?: string; + siteId?: string; +} +export interface PlatformSitesInstallContentPresetInput { + clientMutationId?: string; + entityId?: string; + presetKind?: string; + presetSlug?: string; + siteId?: string; +} +export interface PlatformSitesInstallMantraInput { + clientMutationId?: string; + entityId?: string; + routePreset?: string; + siteId?: string; +} export interface PlatformSitesProvisionStaticSiteInput { apex?: string; clientMutationId?: string; @@ -12686,6 +14695,13 @@ export interface ProvisionBucketInput { */ ownerId?: string; } +export interface ProvisionSitePreviewInput { + apex?: string; + clientMutationId?: string; + commitId?: string; + name?: string; + siteId?: string; +} export interface RejectDatabaseTransferInput { clientMutationId?: string; transferId?: string; @@ -12696,6 +14712,7 @@ export interface RequestDatabaseInput { domain?: string; modules?: Record; options?: Record; + organizationId?: string; presetSlug?: string; subdomain?: string; } @@ -12703,6 +14720,31 @@ export interface SetFieldOrderInput { clientMutationId?: string; fieldIds?: string[]; } +export interface SetSitePreviewInput { + clientMutationId?: string; + targetCommitId?: string; + targetName?: string; + targetSiteId?: string; +} +export interface SiteMetadataInstallRobotsInput { + clientMutationId?: string; + entityId?: string; + robotsPreset?: string; + siteId?: string; +} +export interface SitesInstallContentPresetInput { + clientMutationId?: string; + entityId?: string; + presetKind?: string; + presetSlug?: string; + siteId?: string; +} +export interface SitesInstallMantraInput { + clientMutationId?: string; + entityId?: string; + routePreset?: string; + siteId?: string; +} export interface SitesProvisionStaticSiteInput { apex?: string; clientMutationId?: string; @@ -12713,7 +14755,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 +14764,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. */ @@ -13079,15 +15121,6 @@ export interface DomainToManyDomainVerificationFilter { /** Filters to entities where at least one related entity matches. */ some?: DomainVerificationFilter; } -/** A filter to be used against many `HttpRoute` object types. All fields are combined with a logical ‘and.’ */ -export interface DomainToManyHttpRouteFilter { - /** Filters to entities where every related entity matches. */ - every?: HttpRouteFilter; - /** Filters to entities where no related entity matches. */ - none?: HttpRouteFilter; - /** Filters to entities where at least one related entity matches. */ - some?: HttpRouteFilter; -} /** A filter to be used against many `Route` object types. All fields are combined with a logical ‘and.’ */ export interface DomainToManyRouteFilter { /** Filters to entities where every related entity matches. */ @@ -13097,6 +15130,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. */ @@ -13142,6 +15193,15 @@ export interface ForeignKeyConstraintToManyForeignKeyConstraintBehaviorFilter { /** Filters to entities where at least one related entity matches. */ some?: ForeignKeyConstraintBehaviorFilter; } +/** A filter to be used against many `Trigger` object types. All fields are combined with a logical ‘and.’ */ +export interface FunctionToManyTriggerFilter { + /** Filters to entities where every related entity matches. */ + every?: TriggerFilter; + /** Filters to entities where no related entity matches. */ + none?: TriggerFilter; + /** Filters to entities where at least one related entity matches. */ + some?: TriggerFilter; +} /** A filter to be used against many `DomainEvent` object types. All fields are combined with a logical ‘and.’ */ export interface ManagedDomainToManyDomainEventFilter { /** Filters to entities where every related entity matches. */ @@ -13161,7 +15221,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 +15247,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. */ @@ -13294,6 +15372,15 @@ export interface ConstructiveInternalTypeImageFilter { /** Not included in the specified list. */ notIn?: ConstructiveInternalTypeImage[]; } +/** A filter to be used against many `Route` object types. All fields are combined with a logical ‘and.’ */ +export interface RedirectToManyRouteFilter { + /** Filters to entities where every related entity matches. */ + every?: RouteFilter; + /** Filters to entities where no related entity matches. */ + none?: RouteFilter; + /** Filters to entities where at least one related entity matches. */ + some?: RouteFilter; +} /** A filter to be used against ApiExposureLevel fields. All fields are combined with a logical ‘and.’ */ export interface ApiExposureLevelFilter { /** Not equal to the specified value, treating null like an ordinary value. */ @@ -13418,6 +15505,15 @@ export interface SiteToManyPageFilter { /** Filters to entities where at least one related entity matches. */ some?: PageFilter; } +/** A filter to be used against many `Route` object types. All fields are combined with a logical ‘and.’ */ +export interface SiteToManyRouteFilter { + /** Filters to entities where every related entity matches. */ + every?: RouteFilter; + /** Filters to entities where no related entity matches. */ + none?: RouteFilter; + /** Filters to entities where at least one related entity matches. */ + some?: RouteFilter; +} /** A filter to be used against many `SiteAppLink` object types. All fields are combined with a logical ‘and.’ */ export interface SiteToManySiteAppLinkFilter { /** Filters to entities where every related entity matches. */ @@ -13670,6 +15766,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 */ @@ -13699,6 +15815,8 @@ export interface ApiSettingInput { enableDirectUploads?: boolean; /** Override: enable internationalization plugin (NULL = inherit from database_settings) */ enableI18N?: boolean; + /** Override: enable GraphQL schema introspection queries (NULL = inherit from database_settings) */ + enableIntrospection?: 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) */ @@ -13714,32 +15832,32 @@ export interface ApiSettingInput { /** Override: enable unified search (NULL = inherit from database_settings) */ enableSearch?: boolean; id?: string; + /** Override: idle-in-transaction timeout in milliseconds (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + idleInTransactionTimeoutMs?: string; + /** Override: lock acquisition timeout in milliseconds (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + lockTimeoutMs?: string; + /** Override: maximum concurrently executing GraphQL requests (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + maxConcurrentRequests?: number; + /** Override: maximum page size for connection queries (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + maxPageSize?: number; + /** Override: maximum GraphQL query cost (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + maxQueryCost?: number; + /** Override: maximum GraphQL query depth (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + maxQueryDepth?: number; + /** Override: maximum time in milliseconds a request may wait for a concurrency slot (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + maxQueueWaitMs?: number; + /** Override: maximum request body size in bytes (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + maxRequestBytes?: number; /** Extensible JSON for additional per-API settings that do not have dedicated columns */ options?: Record; + /** Override: rate-limit burst allowance (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + rateLimitBurst?: number; + /** Override: request rate limit in requests per minute (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + rateLimitRpm?: number; /** Override: GraphQL statement timeout in milliseconds (NULL = inherit from database_settings). Clamped by the plan cap at read time. */ 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; @@ -13802,6 +15920,8 @@ export interface DatabaseSettingInput { databaseId: string; /** Enable aggregate queries (sum, avg, min, max, etc.) in the GraphQL API */ enableAggregates?: boolean; + /** Enable billing: financial provider actions (customer/subscription/usage sync, overdue sweep) are refused while false. Activation gate for the billing rollout — flipped only after billing:doctor passes. */ + enableBilling?: boolean; /** Enable bulk mutation operations (insert, upsert, update, delete) in the GraphQL API */ enableBulk?: boolean; /** Enable connection filter (where argument) in the GraphQL API */ @@ -13810,6 +15930,8 @@ export interface DatabaseSettingInput { enableDirectUploads?: boolean; /** Enable internationalization plugin (localeStrings field, translation table discovery) in the GraphQL API */ enableI18N?: boolean; + /** Enable GraphQL schema introspection queries in the GraphQL API. A tenant may only ever lower a bound, so the stored default is the permissive end: turning introspection off is the opt-in. */ + enableIntrospection?: boolean; /** Enable LLM/AI integration features in the GraphQL API */ enableLlm?: boolean; /** Enable ltree hierarchical data type support in the GraphQL API */ @@ -13825,10 +15947,30 @@ export interface DatabaseSettingInput { /** Enable unified search (tsvector, BM25, pg_trgm, pgvector) in the GraphQL API */ enableSearch?: boolean; id?: string; + /** Scope-wide default idle-in-transaction timeout in milliseconds; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. */ + idleInTransactionTimeoutMs?: string; /** Key/value pairs for selecting and filtering settings */ labels?: Record; + /** Scope-wide default lock acquisition timeout in milliseconds; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. */ + lockTimeoutMs?: string; + /** Scope-wide default maximum concurrently executing GraphQL requests; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. */ + maxConcurrentRequests?: number; + /** Scope-wide default maximum page size for connection queries; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. */ + maxPageSize?: number; + /** Scope-wide default maximum GraphQL query cost; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. */ + maxQueryCost?: number; + /** Scope-wide default maximum GraphQL query depth; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. */ + maxQueryDepth?: number; + /** Scope-wide default maximum time in milliseconds a request may wait for a concurrency slot; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. */ + maxQueueWaitMs?: number; + /** Scope-wide default maximum request body size in bytes; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. */ + maxRequestBytes?: number; /** Extensible JSON for additional settings that do not have dedicated columns */ options?: Record; + /** Scope-wide default rate-limit burst allowance; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. */ + rateLimitBurst?: number; + /** Scope-wide default request rate limit in requests per minute; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. */ + rateLimitRpm?: number; /** Scope-wide default GraphQL statement timeout in milliseconds; NULL inherits the platform default. Clamped by the plan cap at read time. */ statementTimeoutMs?: string; updatedAt?: string; @@ -13865,6 +16007,7 @@ export interface DeriveInput { createdAt?: string; databaseId?: string; id?: string; + includeGrants?: boolean; includeMutations?: boolean; kind: string; policyPrefix?: string; @@ -13877,6 +16020,7 @@ export interface DomainInput { /** Module-specific configuration for this hostname */ config?: Record; createdAt?: string; + createdByPrincipal?: string; /** Database that owns this resource (database-scoped isolation) */ databaseId: string; /** Lowercase fully-qualified hostname; wildcards use the *.parent form */ @@ -13897,6 +16041,7 @@ export interface DomainInput { /** Certificate lifecycle state for this hostname */ tlsStatus?: string; updatedAt?: string; + updatedByPrincipal?: string; /** Ownership verification state of this hostname */ verificationStatus?: string; /** When ownership verification last succeeded */ @@ -13904,7 +16049,7 @@ export interface DomainInput { } /** An input for mutations affecting `DomainEvent` */ export interface DomainEventInput { - /** User who triggered this event, if any */ + /** User who triggered this event; NULL only when no human actor was proven */ actorId?: string; createdAt?: string; /** Database that owns this resource (database-scoped isolation) */ @@ -13972,17 +16117,87 @@ export interface DomainVerificationInput { /** When this challenge succeeded */ verifiedAt?: string; } -/** An input for mutations affecting `EmbeddingChunk` */ -export interface EmbeddingChunkInput { - chunkOverlap?: number; - chunkSize?: number; - chunkStrategy?: string; - chunkingTaskName?: string; - chunksTableId?: string; - chunksTableName?: string; - contentFieldName?: string; +/** An input for mutations affecting `EmailIdentity` */ +export interface EmailIdentityInput { createdAt?: string; - databaseId?: 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; + chunkSize?: number; + chunkStrategy?: string; + chunkingTaskName?: string; + chunksTableId?: string; + chunksTableName?: string; + contentFieldName?: string; + createdAt?: string; + databaseId?: string; dimensions?: number; embeddingFieldId?: string; embeddingModel?: string; @@ -14115,10 +16330,23 @@ export interface FullTextSearchInput { } /** An input for mutations affecting `Function` */ export interface FunctionInput { + apiExposed?: boolean; + arguments?: Record; + bodyAst?: Record; + category?: ObjectCategory; + data?: Record; databaseId: string; + functionType?: string; id?: string; + isStrict?: boolean; + kind?: string; name: string; + returns?: Record; schemaId: string; + securityInvoker?: boolean; + smartTags?: Record; + tags?: string[]; + volatility?: string; } /** An input for mutations affecting `HostnameBinding` */ export interface HostnameBindingInput { @@ -14142,29 +16370,16 @@ export interface HostnameBindingInput { /** Ownership verification state compiled from the domain row */ verificationStatus?: string; } -/** An input for mutations affecting `HttpRoute` */ -export interface HttpRouteInput { - createdAt?: string; - createdBy?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - /** Registered host in the scoped routing domains table */ - domainId: string; - id?: string; - /** 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?: number; - /** Target row of the type named by target_kind; existence enforced by trigger */ - targetId: string; - /** Discriminator selecting the type of target_id */ - targetKind: string; - updatedAt?: string; - updatedBy?: string; +/** An input for mutations affecting `IdentityProviderRegistry` */ +export interface IdentityProviderRegistryInput { + authorizationUrl?: string; + displayName: string; + issuerUrl?: string; + kind: string; + scopes?: string[]; + slug: string; + tokenUrl?: string; + userinfoUrl?: string; } /** An input for mutations affecting `Index` */ export interface IndexInput { @@ -14178,6 +16393,7 @@ export interface IndexInput { indexParams?: Record; isUnique?: boolean; name?: string; + nullsNotDistinct?: boolean; opClasses?: string[]; options?: Record; smartTags?: Record; @@ -14195,6 +16411,7 @@ export interface ManagedDomainInput { /** Certificate issuance state for this managed hostname */ certStatus?: string; createdAt?: string; + createdByPrincipal?: string; /** Database that owns this resource (database-scoped isolation) */ databaseId: string; /** Lowercase fully-qualified managed hostname; wildcards use the *.parent form */ @@ -14207,6 +16424,7 @@ export interface ManagedDomainInput { /** TLS provisioning state for this managed hostname */ tlsStatus?: string; updatedAt?: string; + updatedByPrincipal?: string; /** DNS ownership verification state of this managed hostname */ verificationStatus?: string; /** When ownership verification last succeeded */ @@ -14234,6 +16452,8 @@ export interface PageInput { databaseId: string; /** Unique page identifier */ id?: string; + /** Provenance of a seeded page: the content preset (kind, slug, catalog commit_id) it was installed from, or NULL when authored directly */ + seededFrom?: Record; /** Site surface this page belongs to; each site owns its own infra store and pages live at path [page, slug] within it */ siteId: string; /** Page slug (unique per site) */ @@ -14259,6 +16479,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 */ @@ -14284,6 +16522,8 @@ export interface PlatformApiSettingInput { enableDirectUploads?: boolean; /** Override: enable internationalization plugin (NULL = inherit from database_settings) */ enableI18N?: boolean; + /** Override: enable GraphQL schema introspection queries (NULL = inherit from database_settings) */ + enableIntrospection?: 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) */ @@ -14299,30 +16539,32 @@ export interface PlatformApiSettingInput { /** Override: enable unified search (NULL = inherit from database_settings) */ enableSearch?: boolean; id?: string; + /** Override: idle-in-transaction timeout in milliseconds (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + idleInTransactionTimeoutMs?: string; + /** Override: lock acquisition timeout in milliseconds (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + lockTimeoutMs?: string; + /** Override: maximum concurrently executing GraphQL requests (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + maxConcurrentRequests?: number; + /** Override: maximum page size for connection queries (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + maxPageSize?: number; + /** Override: maximum GraphQL query cost (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + maxQueryCost?: number; + /** Override: maximum GraphQL query depth (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + maxQueryDepth?: number; + /** Override: maximum time in milliseconds a request may wait for a concurrency slot (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + maxQueueWaitMs?: number; + /** Override: maximum request body size in bytes (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + maxRequestBytes?: number; /** Extensible JSON for additional per-API settings that do not have dedicated columns */ options?: Record; + /** Override: rate-limit burst allowance (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + rateLimitBurst?: number; + /** Override: request rate limit in requests per minute (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + rateLimitRpm?: number; /** Override: GraphQL statement timeout in milliseconds (NULL = inherit from database_settings). Clamped by the plan cap at read time. */ 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) */ @@ -14338,6 +16580,7 @@ export interface PlatformDomainInput { /** Module-specific configuration for this hostname */ config?: Record; createdAt?: string; + createdByPrincipal?: string; /** Lowercase fully-qualified hostname; wildcards use the *.parent form */ hostname: string; id?: string; @@ -14356,6 +16599,7 @@ export interface PlatformDomainInput { /** Certificate lifecycle state for this hostname */ tlsStatus?: string; updatedAt?: string; + updatedByPrincipal?: string; /** Ownership verification state of this hostname */ verificationStatus?: string; /** When ownership verification last succeeded */ @@ -14363,7 +16607,7 @@ export interface PlatformDomainInput { } /** An input for mutations affecting `PlatformDomainEvent` */ export interface PlatformDomainEventInput { - /** User who triggered this event, if any */ + /** User who triggered this event; NULL only when no human actor was proven */ actorId?: string; createdAt?: string; /** Scoped domain this event belongs to */ @@ -14411,6 +16655,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 */ @@ -14420,6 +16728,7 @@ export interface PlatformManagedDomainInput { /** Certificate issuance state for this managed hostname */ certStatus?: string; createdAt?: string; + createdByPrincipal?: string; /** Lowercase fully-qualified managed hostname; wildcards use the *.parent form */ domain: string; id?: string; @@ -14430,6 +16739,7 @@ export interface PlatformManagedDomainInput { /** TLS provisioning state for this managed hostname */ tlsStatus?: string; updatedAt?: string; + updatedByPrincipal?: string; /** DNS ownership verification state of this managed hostname */ verificationStatus?: string; /** When ownership verification last succeeded */ @@ -14445,6 +16755,8 @@ export interface PlatformPageInput { createdAt?: string; /** Unique page identifier */ id?: string; + /** Provenance of a seeded page: the content preset (kind, slug, catalog commit_id) it was installed from, or NULL when authored directly */ + seededFrom?: Record; /** Site surface this page belongs to; each site owns its own infra store and pages live at path [page, slug] within it */ siteId: string; /** Page slug (unique per site) */ @@ -14456,22 +16768,14 @@ export interface PlatformPageInput { } /** An input for mutations affecting `PlatformSiteAppLink` */ export interface PlatformSiteAppLinkInput { - /** App identifier: iOS bundle id or Android package name */ - appIdentifier: string; + /** App-owned store identity this association serves (app_store_identities row in this scope's app plane; the association carries no store facts of its own) */ + appStoreIdentityId: string; createdAt?: string; id?: string; /** Path patterns this association applies to (AASA paths / Android intent-filter paths) */ pathComponents?: string[]; - /** Target platform for this association (ios, android) */ - platform: string; - /** Android signing certificate SHA-256 fingerprints for assetlinks.json */ - sha256CertFingerprints?: string[]; /** Site surface this app-link association belongs to */ siteId: string; - /** App/Play store URL for this app (used by install banners and fallbacks) */ - storeUrl?: string; - /** Apple Developer team id (iOS); combined with app_identifier to form the AASA appID */ - teamId?: string; updatedAt?: string; /** Whether to emit the webcredentials service (iOS shared-web-credentials / password autofill) */ webcredentials?: boolean; @@ -14480,13 +16784,14 @@ export interface PlatformSiteAppLinkInput { export interface PlatformSiteInput { /** Infra-store commit pinned as the live page content for this site (manual publish pointer; NULL = nothing published yet) */ activeCommitId?: string; - /** Catalog bucket that backs this site (static content store; exactly one of bucket_id/resource_id) */ + /** Bucket that backs this site (static content store; exactly one of bucket_id/resource_id) */ bucketId?: string; createdAt?: string; + createdByPrincipal?: string; /** Human-readable site description */ description?: string; id?: string; - /** Catalog resource_installation (release) that backs this site; the servable member is named by installation_member_slug (exactly one of bucket_id/resource_id/installation_id) */ + /** Resource installation (release) that backs this site; the servable member is named by installation_member_slug (exactly one of bucket_id/resource_id/installation_id) */ installationId?: string; /** Slug of the release member (a Service resource) that serves this site; set iff installation_id is set */ installationMemberSlug?: string; @@ -14494,11 +16799,12 @@ export interface PlatformSiteInput { isPublished?: boolean; /** Owner-local site surface name */ name: string; - /** Catalog resource/service that backs this site (SSR/app Service pinned to one concrete resource row; exactly one of bucket_id/resource_id/installation_id) */ + /** Resource/service that backs this site (SSR/app Service pinned to one concrete resource row; exactly one of bucket_id/resource_id/installation_id) */ resourceId?: string; /** Human-readable site title */ title?: string; updatedAt?: string; + updatedByPrincipal?: string; } /** An input for mutations affecting `PlatformSiteDeepLink` */ export interface PlatformSiteDeepLinkInput { @@ -14510,6 +16816,8 @@ export interface PlatformSiteDeepLinkInput { id?: string; /** Additional link metadata (campaign/UTM parameters, escape hatch) */ metadata?: Record; + /** Page this link's web_path resolves to (soft reference into the pages module; NULL for external or non-page targets) */ + pageId?: string; /** Site surface this deep link belongs to (the hostname plane that serves it) */ siteId: string; /** Link name unique per site; addressed at the deep-link path prefix (e.g. /l/) */ @@ -14550,6 +16858,8 @@ export interface PlatformSiteMetadatumInput { ogImage?: ConstructiveInternalTypeImage; /** robots meta directive (e.g. index,follow / noindex,nofollow) */ robots?: string; + /** Provenance of the robots value: the content preset (kind, slug, catalog commit_id) an install applied, or NULL when it was authored directly */ + robotsSeededFrom?: Record; /** Site surface this metadata belongs to */ siteId: string; /** Infra Merkle store holding this row's history (stamped by the versioned trigger) */ @@ -14574,6 +16884,20 @@ export interface PlatformSiteModuleInput { siteId: string; updatedAt?: string; } +/** An input for mutations affecting `PlatformSiteRelease` */ +export interface PlatformSiteReleaseInput { + /** Infra store commit for the current content (stamped by the versioned trigger on every write) */ + commitId?: string; + createdAt?: string; + id?: string; + /** Release manifest: {"files":{"":{"hash":"<64-hex sha256>","content_type":"...","size":123}},"file_count":N,"total_bytes":N} */ + manifest: Record; + /** Site surface this release manifest belongs to */ + siteId: string; + /** Infra Merkle store holding this row's history (stamped by the versioned trigger) */ + storeId?: string; + updatedAt?: string; +} /** An input for mutations affecting `PlatformSiteTheme` */ export interface PlatformSiteThemeInput { /** Infra store commit for the current content (stamped by the versioned trigger on every write) */ @@ -14611,6 +16935,8 @@ export interface PlatformSiteWebConfigInput { /** An input for mutations affecting `Policy` */ export interface PolicyInput { category?: ObjectCategory; + /** Columns of this policy's table that its expression filters on. Stamped when the policy is derived onto a companion table, so a consumer needing those columns (e.g. a chunking worker copying them from the parent row) reads them here instead of re-walking the node type's parameter schema. */ + columnRefs?: string[]; createdAt?: string; data?: Record; databaseId?: string; @@ -14669,6 +16995,26 @@ export interface PubkeySettingInput { /** Field name used to identify the user in crypto auth functions */ userField?: string; } +/** An input for mutations affecting `Redirect` */ +export interface RedirectInput { + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + id?: string; + /** Owner-local name for this redirect */ + name: string; + /** Whether the incoming path is appended to the destination */ + preservePath?: boolean; + /** Whether the incoming query string is carried to the destination */ + preserveQuery?: boolean; + /** HTTP redirect status the edge answers with (301, 302, 307 or 308) */ + statusCode?: number; + /** Destination hostname the edge redirects to */ + toHost: string; + /** Destination path; NULL keeps the incoming path (see preserve_path) */ + toPath?: string; + updatedAt?: string; +} /** An input for mutations affecting `RlsSetting` */ export interface RlsSettingInput { /** Reference to the authenticate function (FK to metaschema_public.function) */ @@ -14706,12 +17052,16 @@ export interface RouteBindingInput { path: string; /** Priority compiled from the source route */ priority?: number; + /** Site whose surface the source route serves; NULL when it serves no site */ + servingSiteId?: string; /** Api catalog row the source route targets */ targetApiId?: string; /** Bucket catalog row the source route targets */ targetBucketId?: string; /** Function catalog row the source route targets */ targetFunctionId?: string; + /** Redirect catalog row the source route targets */ + targetRedirectId?: string; /** Resource catalog row (a Service resource) the source route targets */ targetServiceId?: string; /** Site catalog row the source route targets */ @@ -14721,6 +17071,8 @@ export interface RouteBindingInput { } /** An input for mutations affecting `Route` */ export interface RouteInput { + /** Whether this route answers callers with no identity. Requires the target function to declare anonymous_callable; default false = an identity is required */ + anonymous?: boolean; /** Route metadata; target configuration is read live from the typed catalog, never copied here */ config?: Record; createdAt?: string; @@ -14735,17 +17087,23 @@ export interface RouteInput { method?: string; /** Path prefix this route matches; must begin with / and carry no trailing slash */ path?: string; + /** The site preview this route serves; NULL serves the site's published release */ + previewRef?: string; /** Higher priority wins between otherwise-equal matches */ priority?: number; - /** Api catalog row this route targets; must be owner-matched or visible cross-scope */ + /** Site whose surface this route serves; the serving lane renders as this site. NULL when the route serves no site */ + servingSiteId?: string; + /** Api surface this route targets; must be this scope's own api */ targetApiId?: string; - /** Bucket catalog row this route targets; must be a public bucket that is owner-matched or visible cross-scope */ + /** Bucket this route targets; must be a public bucket in this scope's own storage plane */ targetBucketId?: string; - /** Function catalog row this route targets; must be owner-matched or visible cross-scope */ + /** Function this route targets; must be this scope's own function */ targetFunctionId?: string; - /** Resource catalog row (a Service resource) this route targets; must be owner-matched or visible cross-scope */ + /** Redirect this route targets; the edge answers with a redirect status instead of proxying a backend */ + targetRedirectId?: string; + /** Resource (a Service resource) this route targets; must be this scope's own resource */ targetServiceId?: string; - /** Site catalog row this route targets; must be owner-matched or visible cross-scope */ + /** Site surface this route targets; must be this scope's own site */ targetSiteId?: string; updatedAt?: string; } @@ -14776,24 +17134,16 @@ export interface SchemaGrantInput { } /** An input for mutations affecting `SiteAppLink` */ export interface SiteAppLinkInput { - /** App identifier: iOS bundle id or Android package name */ - appIdentifier: string; + /** App-owned store identity this association serves (app_store_identities row in this scope's app plane; the association carries no store facts of its own) */ + appStoreIdentityId: string; createdAt?: string; /** Database that owns this resource (database-scoped isolation) */ databaseId: string; id?: string; /** Path patterns this association applies to (AASA paths / Android intent-filter paths) */ pathComponents?: string[]; - /** Target platform for this association (ios, android) */ - platform: string; - /** Android signing certificate SHA-256 fingerprints for assetlinks.json */ - sha256CertFingerprints?: string[]; /** Site surface this app-link association belongs to */ siteId: string; - /** App/Play store URL for this app (used by install banners and fallbacks) */ - storeUrl?: string; - /** Apple Developer team id (iOS); combined with app_identifier to form the AASA appID */ - teamId?: string; updatedAt?: string; /** Whether to emit the webcredentials service (iOS shared-web-credentials / password autofill) */ webcredentials?: boolean; @@ -14802,15 +17152,16 @@ export interface SiteAppLinkInput { export interface SiteInput { /** Infra-store commit pinned as the live page content for this site (manual publish pointer; NULL = nothing published yet) */ activeCommitId?: string; - /** Catalog bucket that backs this site (static content store; exactly one of bucket_id/resource_id) */ + /** Bucket that backs this site (static content store; exactly one of bucket_id/resource_id) */ bucketId?: string; createdAt?: string; + createdByPrincipal?: string; /** Database that owns this resource (database-scoped isolation) */ databaseId: string; /** Human-readable site description */ description?: string; id?: string; - /** Catalog resource_installation (release) that backs this site; the servable member is named by installation_member_slug (exactly one of bucket_id/resource_id/installation_id) */ + /** Resource installation (release) that backs this site; the servable member is named by installation_member_slug (exactly one of bucket_id/resource_id/installation_id) */ installationId?: string; /** Slug of the release member (a Service resource) that serves this site; set iff installation_id is set */ installationMemberSlug?: string; @@ -14818,11 +17169,12 @@ export interface SiteInput { isPublished?: boolean; /** Owner-local site surface name */ name: string; - /** Catalog resource/service that backs this site (SSR/app Service pinned to one concrete resource row; exactly one of bucket_id/resource_id/installation_id) */ + /** Resource/service that backs this site (SSR/app Service pinned to one concrete resource row; exactly one of bucket_id/resource_id/installation_id) */ resourceId?: string; /** Human-readable site title */ title?: string; updatedAt?: string; + updatedByPrincipal?: string; } /** An input for mutations affecting `SiteDeepLink` */ export interface SiteDeepLinkInput { @@ -14836,6 +17188,8 @@ export interface SiteDeepLinkInput { id?: string; /** Additional link metadata (campaign/UTM parameters, escape hatch) */ metadata?: Record; + /** Page this link's web_path resolves to (soft reference into the pages module; NULL for external or non-page targets) */ + pageId?: string; /** Site surface this deep link belongs to (the hostname plane that serves it) */ siteId: string; /** Link name unique per site; addressed at the deep-link path prefix (e.g. /l/) */ @@ -14880,6 +17234,8 @@ export interface SiteMetadatumInput { ogImage?: ConstructiveInternalTypeImage; /** robots meta directive (e.g. index,follow / noindex,nofollow) */ robots?: string; + /** Provenance of the robots value: the content preset (kind, slug, catalog commit_id) an install applied, or NULL when it was authored directly */ + robotsSeededFrom?: Record; /** Site surface this metadata belongs to */ siteId: string; /** Infra Merkle store holding this row's history (stamped by the versioned trigger) */ @@ -14906,6 +17262,22 @@ export interface SiteModuleInput { siteId: string; updatedAt?: string; } +/** An input for mutations affecting `SiteRelease` */ +export interface SiteReleaseInput { + /** Infra store commit for the current content (stamped by the versioned trigger on every write) */ + commitId?: string; + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + id?: string; + /** Release manifest: {"files":{"":{"hash":"<64-hex sha256>","content_type":"...","size":123}},"file_count":N,"total_bytes":N} */ + manifest: Record; + /** Site surface this release manifest belongs to */ + siteId: string; + /** Infra Merkle store holding this row's history (stamped by the versioned trigger) */ + storeId?: string; + updatedAt?: string; +} /** An input for mutations affecting `SiteTheme` */ export interface SiteThemeInput { /** Infra store commit for the current content (stamped by the versioned trigger on every write) */ @@ -15016,13 +17388,19 @@ export interface TriggerInput { createdAt?: string; databaseId?: string; event?: string; + events?: string[]; + forEachRow?: boolean; + functionId?: string; functionName?: string; id?: string; + kind?: string; name: string; smartTags?: Record; tableId: string; tags?: string[]; + timing?: string; updatedAt?: string; + whenAst?: Record; } /** An input for mutations affecting `TriggerFunction` */ export interface TriggerFunctionInput { @@ -15166,7 +17544,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 +17571,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. */ @@ -15363,6 +17741,8 @@ export interface DeriveFilter { databaseId?: UUIDFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `includeGrants` field. */ + includeGrants?: BooleanFilter; /** Filter by the object’s `includeMutations` field. */ includeMutations?: BooleanFilter; /** Filter by the object’s `kind` field. */ @@ -15807,22 +18187,52 @@ export interface FullTextSearchFilter { export interface FunctionFilter { /** Checks for all expressions in this list. */ and?: FunctionFilter[]; + /** Filter by the object’s `apiExposed` field. */ + apiExposed?: BooleanFilter; + /** Filter by the object’s `arguments` field. */ + arguments?: JSONFilter; + /** Filter by the object’s `bodyAst` field. */ + bodyAst?: JSONFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `data` field. */ + data?: JSONFilter; /** Filter by the object’s `database` relation. */ database?: DatabaseFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `functionType` field. */ + functionType?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `isStrict` field. */ + isStrict?: BooleanFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; /** Negates the expression. */ not?: FunctionFilter; /** Checks for any expressions in this list. */ or?: FunctionFilter[]; + /** Filter by the object’s `returns` field. */ + returns?: JSONFilter; /** Filter by the object’s `schema` relation. */ schema?: SchemaFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; + /** Filter by the object’s `securityInvoker` field. */ + securityInvoker?: BooleanFilter; + /** Filter by the object’s `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Filter by the object’s `triggers` relation. */ + triggers?: FunctionToManyTriggerFilter; + /** `triggers` exist. */ + triggersExist?: boolean; + /** Filter by the object’s `volatility` field. */ + volatility?: StringFilter; } /** A filter to be used against `Index` object types. All fields are combined with a logical ‘and.’ */ export interface IndexFilter { @@ -15852,6 +18262,8 @@ export interface IndexFilter { name?: StringFilter; /** Negates the expression. */ not?: IndexFilter; + /** Filter by the object’s `nullsNotDistinct` field. */ + nullsNotDistinct?: BooleanFilter; /** Filter by the object’s `opClasses` field. */ opClasses?: StringListFilter; /** Filter by the object’s `options` field. */ @@ -15918,6 +18330,8 @@ export interface PolicyFilter { and?: PolicyFilter[]; /** Filter by the object’s `category` field. */ category?: ObjectCategoryFilter; + /** Filter by the object’s `columnRefs` field. */ + columnRefs?: StringListFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `data` field. */ @@ -16409,10 +18823,22 @@ export interface TriggerFilter { databaseId?: UUIDFilter; /** Filter by the object’s `event` field. */ event?: StringFilter; + /** Filter by the object’s `events` field. */ + events?: StringListFilter; + /** Filter by the object’s `forEachRow` field. */ + forEachRow?: BooleanFilter; + /** Filter by the object’s `function` relation. */ + function?: FunctionFilter; + /** A related `function` exists. */ + functionExists?: boolean; + /** Filter by the object’s `functionId` field. */ + functionId?: UUIDFilter; /** Filter by the object’s `functionName` field. */ functionName?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; /** Negates the expression. */ @@ -16427,8 +18853,12 @@ export interface TriggerFilter { tableId?: UUIDFilter; /** Filter by the object’s `tags` field. */ tags?: StringListFilter; + /** Filter by the object’s `timing` field. */ + timing?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `whenAst` field. */ + whenAst?: JSONFilter; } /** A filter to be used against `UniqueConstraintBehavior` object types. All fields are combined with a logical ‘and.’ */ export interface UniqueConstraintBehaviorFilter { @@ -16769,47 +19199,12 @@ export interface DomainVerificationFilter { /** Filter by the object’s `verifiedAt` field. */ verifiedAt?: DatetimeFilter; } -/** A filter to be used against `HttpRoute` object types. All fields are combined with a logical ‘and.’ */ -export interface HttpRouteFilter { - /** Checks for all expressions in this list. */ - and?: HttpRouteFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `domain` relation. */ - domain?: DomainFilter; - /** Filter by the object’s `domainId` field. */ - domainId?: 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; - /** Negates the expression. */ - not?: HttpRouteFilter; - /** 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; - /** Filter by the object’s `targetId` field. */ - targetId?: UUIDFilter; - /** Filter by the object’s `targetKind` field. */ - targetKind?: StringFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; -} /** A filter to be used against `Route` object types. All fields are combined with a logical ‘and.’ */ export interface RouteFilter { /** Checks for all expressions in this list. */ and?: RouteFilter[]; + /** Filter by the object’s `anonymous` field. */ + anonymous?: BooleanFilter; /** Filter by the object’s `config` field. */ config?: JSONFilter; /** Filter by the object’s `createdAt` field. */ @@ -16832,27 +19227,117 @@ export interface RouteFilter { or?: RouteFilter[]; /** Filter by the object’s `path` field. */ path?: StringFilter; + /** Filter by the object’s `previewRef` field. */ + previewRef?: StringFilter; /** Filter by the object’s `priority` field. */ priority?: IntFilter; + /** Filter by the object’s `servingSite` relation. */ + servingSite?: SiteFilter; + /** A related `servingSite` exists. */ + servingSiteExists?: boolean; + /** Filter by the object’s `servingSiteId` field. */ + servingSiteId?: UUIDFilter; + /** Filter by the object’s `targetApi` relation. */ + targetApi?: ApiFilter; + /** A related `targetApi` exists. */ + targetApiExists?: boolean; /** Filter by the object’s `targetApiId` field. */ targetApiId?: UUIDFilter; /** Filter by the object’s `targetBucketId` field. */ targetBucketId?: UUIDFilter; /** Filter by the object’s `targetFunctionId` field. */ targetFunctionId?: UUIDFilter; + /** Filter by the object’s `targetRedirect` relation. */ + targetRedirect?: RedirectFilter; + /** A related `targetRedirect` exists. */ + targetRedirectExists?: boolean; + /** Filter by the object’s `targetRedirectId` field. */ + targetRedirectId?: UUIDFilter; /** Filter by the object’s `targetServiceId` field. */ targetServiceId?: UUIDFilter; + /** Filter by the object’s `targetSite` relation. */ + targetSite?: SiteFilter; + /** A related `targetSite` exists. */ + targetSiteExists?: boolean; /** Filter by the object’s `targetSiteId` field. */ targetSiteId?: UUIDFilter; /** 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,6 +19443,70 @@ export interface PlatformDomainVerificationFilter { /** Filter by the object’s `verifiedAt` field. */ verifiedAt?: DatetimeFilter; } +/** 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; +} +/** 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. */ @@ -16974,6 +19523,8 @@ export interface PlatformPageFilter { not?: PlatformPageFilter; /** Checks for any expressions in this list. */ or?: PlatformPageFilter[]; + /** Filter by the object’s `seededFrom` field. */ + seededFrom?: JSONFilter; /** Filter by the object’s `site` relation. */ site?: PlatformSiteFilter; /** Filter by the object’s `siteId` field. */ @@ -16989,8 +19540,8 @@ export interface PlatformPageFilter { export interface PlatformSiteAppLinkFilter { /** Checks for all expressions in this list. */ and?: PlatformSiteAppLinkFilter[]; - /** Filter by the object’s `appIdentifier` field. */ - appIdentifier?: StringFilter; + /** Filter by the object’s `appStoreIdentityId` field. */ + appStoreIdentityId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -17001,18 +19552,10 @@ export interface PlatformSiteAppLinkFilter { or?: PlatformSiteAppLinkFilter[]; /** Filter by the object’s `pathComponents` field. */ pathComponents?: StringListFilter; - /** Filter by the object’s `platform` field. */ - platform?: StringFilter; - /** Filter by the object’s `sha256CertFingerprints` field. */ - sha256CertFingerprints?: StringListFilter; /** Filter by the object’s `site` relation. */ site?: PlatformSiteFilter; /** Filter by the object’s `siteId` field. */ siteId?: UUIDFilter; - /** Filter by the object’s `storeUrl` field. */ - storeUrl?: StringFilter; - /** Filter by the object’s `teamId` field. */ - teamId?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; /** Filter by the object’s `webcredentials` field. */ @@ -17036,6 +19579,8 @@ export interface PlatformSiteDeepLinkFilter { not?: PlatformSiteDeepLinkFilter; /** Checks for any expressions in this list. */ or?: PlatformSiteDeepLinkFilter[]; + /** Filter by the object’s `pageId` field. */ + pageId?: UUIDFilter; /** Filter by the object’s `site` relation. */ site?: PlatformSiteFilter; /** Filter by the object’s `siteId` field. */ @@ -17142,6 +19687,8 @@ export interface PageFilter { not?: PageFilter; /** Checks for any expressions in this list. */ or?: PageFilter[]; + /** Filter by the object’s `seededFrom` field. */ + seededFrom?: JSONFilter; /** Filter by the object’s `site` relation. */ site?: SiteFilter; /** Filter by the object’s `siteId` field. */ @@ -17157,8 +19704,8 @@ export interface PageFilter { export interface SiteAppLinkFilter { /** Checks for all expressions in this list. */ and?: SiteAppLinkFilter[]; - /** Filter by the object’s `appIdentifier` field. */ - appIdentifier?: StringFilter; + /** Filter by the object’s `appStoreIdentityId` field. */ + appStoreIdentityId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `databaseId` field. */ @@ -17171,18 +19718,10 @@ export interface SiteAppLinkFilter { or?: SiteAppLinkFilter[]; /** Filter by the object’s `pathComponents` field. */ pathComponents?: StringListFilter; - /** Filter by the object’s `platform` field. */ - platform?: StringFilter; - /** Filter by the object’s `sha256CertFingerprints` field. */ - sha256CertFingerprints?: StringListFilter; /** Filter by the object’s `site` relation. */ site?: SiteFilter; /** Filter by the object’s `siteId` field. */ siteId?: UUIDFilter; - /** Filter by the object’s `storeUrl` field. */ - storeUrl?: StringFilter; - /** Filter by the object’s `teamId` field. */ - teamId?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; /** Filter by the object’s `webcredentials` field. */ @@ -17208,6 +19747,8 @@ export interface SiteDeepLinkFilter { not?: SiteDeepLinkFilter; /** Checks for any expressions in this list. */ or?: SiteDeepLinkFilter[]; + /** Filter by the object’s `pageId` field. */ + pageId?: UUIDFilter; /** Filter by the object’s `site` relation. */ site?: SiteFilter; /** Filter by the object’s `siteId` field. */ @@ -17302,26 +19843,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 +19876,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. */ @@ -17827,6 +20368,8 @@ export interface DomainFilter { config?: JSONFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; /** Filter by the object’s `domainEvents` relation. */ @@ -17839,10 +20382,6 @@ export interface DomainFilter { domainVerificationsExist?: boolean; /** Filter by the object’s `hostname` field. */ hostname?: StringFilter; - /** Filter by the object’s `httpRoutes` relation. */ - httpRoutes?: DomainToManyHttpRouteFilter; - /** `httpRoutes` exist. */ - httpRoutesExist?: boolean; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `isPublished` field. */ @@ -17869,6 +20408,8 @@ export interface DomainFilter { tlsStatus?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; /** Filter by the object’s `verificationStatus` field. */ verificationStatus?: StringFilter; /** Filter by the object’s `verifiedAt` field. */ @@ -17886,6 +20427,8 @@ export interface ManagedDomainFilter { certStatus?: StringFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; /** Filter by the object’s `domain` field. */ @@ -17912,35 +20455,198 @@ export interface ManagedDomainFilter { tlsStatus?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; /** Filter by the object’s `verificationStatus` field. */ verificationStatus?: StringFilter; /** 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[]; - /** Filter by the object’s `anonRole` field. */ - anonRole?: StringFilter; - /** Filter by the object’s `config` field. */ - config?: JSONFilter; + 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 `dbname` field. */ - dbname?: StringFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** 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?: PlatformApisFilter; + not?: SiteFilter; /** Checks for any expressions in this list. */ - or?: PlatformApisFilter[]; + 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 `routesByServingSiteId` relation. */ + routesByServingSiteId?: SiteToManyRouteFilter; + /** `routesByServingSiteId` exist. */ + routesByServingSiteIdExist?: boolean; + /** 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 `siteRelease` relation. */ + siteRelease?: SiteReleaseFilter; + /** A related `siteRelease` exists. */ + siteReleaseExists?: 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; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} +/** A filter to be used against `Redirect` object types. All fields are combined with a logical ‘and.’ */ +export interface RedirectFilter { + /** Checks for all expressions in this list. */ + and?: RedirectFilter[]; + /** 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 `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: RedirectFilter; + /** Checks for any expressions in this list. */ + or?: RedirectFilter[]; + /** Filter by the object’s `preservePath` field. */ + preservePath?: BooleanFilter; + /** Filter by the object’s `preserveQuery` field. */ + preserveQuery?: BooleanFilter; + /** Filter by the object’s `routesByTargetRedirectId` relation. */ + routesByTargetRedirectId?: RedirectToManyRouteFilter; + /** `routesByTargetRedirectId` exist. */ + routesByTargetRedirectIdExist?: boolean; + /** Filter by the object’s `statusCode` field. */ + statusCode?: IntFilter; + /** Filter by the object’s `toHost` field. */ + toHost?: StringFilter; + /** Filter by the object’s `toPath` field. */ + toPath?: 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. */ + 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?: PlatformApisToManyPlatformApiSchemaFilter; + platformApiSchemasByApiId?: PlatformApiToManyPlatformApiSchemaFilter; /** `platformApiSchemasByApiId` exist. */ platformApiSchemasByApiIdExist?: boolean; /** Filter by the object’s `platformApiSettingByApiId` relation. */ @@ -17964,6 +20670,8 @@ export interface PlatformDomainFilter { config?: JSONFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `hostname` field. */ hostname?: StringFilter; /** Filter by the object’s `id` field. */ @@ -17996,6 +20704,8 @@ export interface PlatformDomainFilter { tlsStatus?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; /** Filter by the object’s `verificationStatus` field. */ verificationStatus?: StringFilter; /** Filter by the object’s `verifiedAt` field. */ @@ -18013,6 +20723,8 @@ export interface PlatformManagedDomainFilter { certStatus?: StringFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `domain` field. */ domain?: StringFilter; /** Filter by the object’s `id` field. */ @@ -18037,6 +20749,8 @@ export interface PlatformManagedDomainFilter { tlsStatus?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; /** Filter by the object’s `verificationStatus` field. */ verificationStatus?: StringFilter; /** Filter by the object’s `verifiedAt` field. */ @@ -18052,6 +20766,8 @@ export interface PlatformSiteFilter { bucketId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `description` field. */ description?: StringFilter; /** Filter by the object’s `id` field. */ @@ -18068,6 +20784,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. */ @@ -18092,6 +20812,10 @@ export interface PlatformSiteFilter { platformSiteModulesBySiteId?: PlatformSiteToManyPlatformSiteModuleFilter; /** `platformSiteModulesBySiteId` exist. */ platformSiteModulesBySiteIdExist?: boolean; + /** Filter by the object’s `platformSiteReleaseBySiteId` relation. */ + platformSiteReleaseBySiteId?: PlatformSiteReleaseFilter; + /** A related `platformSiteReleaseBySiteId` exists. */ + platformSiteReleaseBySiteIdExists?: boolean; /** Filter by the object’s `platformSiteThemesBySiteId` relation. */ platformSiteThemesBySiteId?: PlatformSiteToManyPlatformSiteThemeFilter; /** `platformSiteThemesBySiteId` exist. */ @@ -18106,80 +20830,58 @@ export interface PlatformSiteFilter { title?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -/** 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. */ @@ -18196,6 +20898,8 @@ export interface ApiSettingFilter { enableDirectUploads?: BooleanFilter; /** Filter by the object’s `enableI18N` field. */ enableI18N?: BooleanFilter; + /** Filter by the object’s `enableIntrospection` field. */ + enableIntrospection?: BooleanFilter; /** Filter by the object’s `enableLlm` field. */ enableLlm?: BooleanFilter; /** Filter by the object’s `enableLtree` field. */ @@ -18212,23 +20916,142 @@ export interface ApiSettingFilter { enableSearch?: BooleanFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `idleInTransactionTimeoutMs` field. */ + idleInTransactionTimeoutMs?: BigIntFilter; + /** Filter by the object’s `lockTimeoutMs` field. */ + lockTimeoutMs?: BigIntFilter; + /** Filter by the object’s `maxConcurrentRequests` field. */ + maxConcurrentRequests?: IntFilter; + /** Filter by the object’s `maxPageSize` field. */ + maxPageSize?: IntFilter; + /** Filter by the object’s `maxQueryCost` field. */ + maxQueryCost?: IntFilter; + /** Filter by the object’s `maxQueryDepth` field. */ + maxQueryDepth?: IntFilter; + /** Filter by the object’s `maxQueueWaitMs` field. */ + maxQueueWaitMs?: IntFilter; + /** Filter by the object’s `maxRequestBytes` field. */ + maxRequestBytes?: IntFilter; /** Negates the expression. */ not?: ApiSettingFilter; /** Filter by the object’s `options` field. */ options?: JSONFilter; /** Checks for any expressions in this list. */ or?: ApiSettingFilter[]; + /** Filter by the object’s `rateLimitBurst` field. */ + rateLimitBurst?: IntFilter; + /** Filter by the object’s `rateLimitRpm` field. */ + rateLimitRpm?: IntFilter; /** Filter by the object’s `statementTimeoutMs` field. */ statementTimeoutMs?: BigIntFilter; /** 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 `robotsSeededFrom` field. */ + robotsSeededFrom?: JSONFilter; + /** 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 `SiteRelease` object types. All fields are combined with a logical ‘and.’ */ +export interface SiteReleaseFilter { + /** Checks for all expressions in this list. */ + and?: SiteReleaseFilter[]; + /** 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 `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `manifest` field. */ + manifest?: JSONFilter; + /** Negates the expression. */ + not?: SiteReleaseFilter; + /** Checks for any expressions in this list. */ + or?: SiteReleaseFilter[]; + /** 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 `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. */ @@ -18243,6 +21066,8 @@ export interface PlatformApiSettingFilter { enableDirectUploads?: BooleanFilter; /** Filter by the object’s `enableI18N` field. */ enableI18N?: BooleanFilter; + /** Filter by the object’s `enableIntrospection` field. */ + enableIntrospection?: BooleanFilter; /** Filter by the object’s `enableLlm` field. */ enableLlm?: BooleanFilter; /** Filter by the object’s `enableLtree` field. */ @@ -18259,12 +21084,32 @@ export interface PlatformApiSettingFilter { enableSearch?: BooleanFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `idleInTransactionTimeoutMs` field. */ + idleInTransactionTimeoutMs?: BigIntFilter; + /** Filter by the object’s `lockTimeoutMs` field. */ + lockTimeoutMs?: BigIntFilter; + /** Filter by the object’s `maxConcurrentRequests` field. */ + maxConcurrentRequests?: IntFilter; + /** Filter by the object’s `maxPageSize` field. */ + maxPageSize?: IntFilter; + /** Filter by the object’s `maxQueryCost` field. */ + maxQueryCost?: IntFilter; + /** Filter by the object’s `maxQueryDepth` field. */ + maxQueryDepth?: IntFilter; + /** Filter by the object’s `maxQueueWaitMs` field. */ + maxQueueWaitMs?: IntFilter; + /** Filter by the object’s `maxRequestBytes` field. */ + maxRequestBytes?: IntFilter; /** Negates the expression. */ not?: PlatformApiSettingFilter; /** Filter by the object’s `options` field. */ options?: JSONFilter; /** Checks for any expressions in this list. */ or?: PlatformApiSettingFilter[]; + /** Filter by the object’s `rateLimitBurst` field. */ + rateLimitBurst?: IntFilter; + /** Filter by the object’s `rateLimitRpm` field. */ + rateLimitRpm?: IntFilter; /** Filter by the object’s `statementTimeoutMs` field. */ statementTimeoutMs?: BigIntFilter; /** Filter by the object’s `updatedAt` field. */ @@ -18277,7 +21122,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. */ @@ -18321,6 +21166,8 @@ export interface PlatformSiteMetadatumFilter { or?: PlatformSiteMetadatumFilter[]; /** Filter by the object’s `robots` field. */ robots?: StringFilter; + /** Filter by the object’s `robotsSeededFrom` field. */ + robotsSeededFrom?: JSONFilter; /** Filter by the object’s `site` relation. */ site?: PlatformSiteFilter; /** Filter by the object’s `siteId` field. */ @@ -18332,84 +21179,39 @@ export interface PlatformSiteMetadatumFilter { /** 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 { +/** A filter to be used against `PlatformSiteRelease` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformSiteReleaseFilter { /** 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; + and?: PlatformSiteReleaseFilter[]; /** 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; + /** Filter by the object’s `manifest` field. */ + manifest?: JSONFilter; /** Negates the expression. */ - not?: SiteMetadatumFilter; - /** Filter by the object’s `ogImage` field. */ - ogImage?: ConstructiveInternalTypeImageFilter; + not?: PlatformSiteReleaseFilter; /** Checks for any expressions in this list. */ - or?: SiteMetadatumFilter[]; - /** Filter by the object’s `robots` field. */ - robots?: StringFilter; + or?: PlatformSiteReleaseFilter[]; /** 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 `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 +21219,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. */ @@ -18455,24 +21257,6 @@ export interface BigIntFilter { notIn?: string[]; } // ============ Payload/Return Types (for custom operations) ============ -export interface ResolveHttpRouteRecord { - databaseId?: string | null; - domainId?: string | null; - matchedPath?: string | null; - method?: string | null; - routeId?: string | null; - targetId?: string | null; - targetKind?: string | null; -} -export type ResolveHttpRouteRecordSelect = { - databaseId?: boolean; - domainId?: boolean; - matchedPath?: boolean; - method?: boolean; - routeId?: boolean; - targetId?: boolean; - targetKind?: boolean; -}; export interface ResolveRouteRecord { domainId?: string | null; hostname?: string | null; @@ -18533,6 +21317,12 @@ export type CancelDatabaseTransferPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface DeleteSitePreviewPayload { + clientMutationId?: string | null; +} +export type DeleteSitePreviewPayloadSelect = { + clientMutationId?: boolean; +}; export interface DomainsAssignSubdomainPayload { clientMutationId?: string | null; domainEdge?: DomainEdge | null; @@ -18547,6 +21337,30 @@ export type DomainsAssignSubdomainPayloadSelect = { select: DomainSelect; }; }; +export interface MintSitePreviewTokenPayload { + clientMutationId?: string | null; + result?: MintSitePreviewTokenRecord[] | null; +} +export type MintSitePreviewTokenPayloadSelect = { + clientMutationId?: boolean; + result?: { + select: MintSitePreviewTokenRecordSelect; + }; +}; +export interface PagesInstallPagesPayload { + clientMutationId?: string | null; + result?: Record | null; +} +export type PagesInstallPagesPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface PlatformDeleteSitePreviewPayload { + clientMutationId?: string | null; +} +export type PlatformDeleteSitePreviewPayloadSelect = { + clientMutationId?: boolean; +}; export interface PlatformDomainsAssignSubdomainPayload { clientMutationId?: string | null; platformDomainEdge?: PlatformDomainEdge | null; @@ -18561,6 +21375,72 @@ export type PlatformDomainsAssignSubdomainPayloadSelect = { select: PlatformDomainSelect; }; }; +export interface PlatformMintSitePreviewTokenPayload { + clientMutationId?: string | null; + result?: PlatformMintSitePreviewTokenRecord[] | null; +} +export type PlatformMintSitePreviewTokenPayloadSelect = { + clientMutationId?: boolean; + result?: { + select: PlatformMintSitePreviewTokenRecordSelect; + }; +}; +export interface PlatformPagesInstallPagesPayload { + clientMutationId?: string | null; + result?: Record | null; +} +export type PlatformPagesInstallPagesPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface PlatformProvisionSitePreviewPayload { + clientMutationId?: string | null; + result?: PlatformRoute | null; +} +export type PlatformProvisionSitePreviewPayloadSelect = { + clientMutationId?: boolean; + result?: { + select: PlatformRouteSelect; + }; +}; +export interface PlatformSetSitePreviewPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type PlatformSetSitePreviewPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface PlatformSiteMetadataInstallRobotsPayload { + clientMutationId?: string | null; + result?: Record | null; +} +export type PlatformSiteMetadataInstallRobotsPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface PlatformSitesInstallContentPresetPayload { + clientMutationId?: string | null; + result?: Record | null; +} +export type PlatformSitesInstallContentPresetPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface PlatformSitesInstallMantraPayload { + clientMutationId?: string | null; + platformSiteEdge?: PlatformSiteEdge | null; + result?: PlatformSite | null; +} +export type PlatformSitesInstallMantraPayloadSelect = { + clientMutationId?: boolean; + platformSiteEdge?: { + select: PlatformSiteEdgeSelect; + }; + result?: { + select: PlatformSiteSelect; + }; +}; export interface PlatformSitesProvisionStaticSitePayload { clientMutationId?: string | null; result?: PlatformRoute | null; @@ -18572,60 +21452,154 @@ export type PlatformSitesProvisionStaticSitePayloadSelect = { }; }; 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; + /** The logical bucket row that was queued for reconciliation. */ + bucketId: string; + bucketKey: string; + /** The reconciler job enqueued to provision this bucket. */ + jobId: string; + /** The physical bucket name already recorded, or null when reconciliation has not completed. */ + physicalName?: string | null; } export type ProvisionBucketPayloadSelect = { - accessType?: boolean; - bucketName?: boolean; - endpoint?: boolean; - error?: boolean; - provider?: boolean; - success?: boolean; + bucketId?: boolean; + bucketKey?: boolean; + jobId?: boolean; + physicalName?: boolean; +}; +export interface ProvisionSitePreviewPayload { + clientMutationId?: string | null; + result?: Route | null; + routeEdge?: RouteEdge | null; +} +export type ProvisionSitePreviewPayloadSelect = { + clientMutationId?: boolean; + result?: { + select: RouteSelect; + }; + routeEdge?: { + select: RouteEdgeSelect; + }; +}; +export interface RejectDatabaseTransferPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type RejectDatabaseTransferPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface RequestDatabasePayload { + clientMutationId?: string | null; + result?: DatabaseProvisionModule | null; +} +export type RequestDatabasePayloadSelect = { + clientMutationId?: boolean; + result?: { + select: DatabaseProvisionModuleSelect; + }; +}; +export interface SetFieldOrderPayload { + clientMutationId?: string | null; +} +export type SetFieldOrderPayloadSelect = { + clientMutationId?: boolean; +}; +export interface SetSitePreviewPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type SetSitePreviewPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; }; -export interface RejectDatabaseTransferPayload { +export interface SiteMetadataInstallRobotsPayload { clientMutationId?: string | null; - result?: boolean | null; + result?: Record | null; } -export type RejectDatabaseTransferPayloadSelect = { +export type SiteMetadataInstallRobotsPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; -export interface RequestDatabasePayload { +export interface SitesInstallContentPresetPayload { clientMutationId?: string | null; - result?: DatabaseProvisionModule | null; + result?: Record | null; } -export type RequestDatabasePayloadSelect = { +export type SitesInstallContentPresetPayloadSelect = { clientMutationId?: boolean; - result?: { - select: DatabaseProvisionModuleSelect; - }; + result?: boolean; }; -export interface SetFieldOrderPayload { +export interface SitesInstallMantraPayload { clientMutationId?: string | null; + result?: Site | null; + siteEdge?: SiteEdge | null; } -export type SetFieldOrderPayloadSelect = { +export type SitesInstallMantraPayloadSelect = { clientMutationId?: boolean; + result?: { + select: SiteSelect; + }; + siteEdge?: { + select: SiteEdgeSelect; + }; }; export interface SitesProvisionStaticSitePayload { clientMutationId?: string | null; - result?: PlatformRoute | null; + result?: Route | null; + routeEdge?: RouteEdge | null; } export type SitesProvisionStaticSitePayloadSelect = { clientMutationId?: boolean; result?: { - select: PlatformRouteSelect; + select: RouteSelect; + }; + routeEdge?: { + select: RouteEdgeSelect; + }; +}; +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. */ @@ -18717,51 +21691,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 +22231,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. */ @@ -19752,49 +22816,49 @@ export type DeleteHostnameBindingPayloadSelect = { select: HostnameBindingEdgeSelect; }; }; -export interface CreateHttpRoutePayload { +export interface CreateIdentityProviderRegistryPayload { clientMutationId?: string | null; - /** The `HttpRoute` that was created by this mutation. */ - httpRoute?: HttpRoute | null; - httpRouteEdge?: HttpRouteEdge | null; + /** The `IdentityProviderRegistry` that was created by this mutation. */ + identityProviderRegistry?: IdentityProviderRegistry | null; + identityProviderRegistryEdge?: IdentityProviderRegistryEdge | null; } -export type CreateHttpRoutePayloadSelect = { +export type CreateIdentityProviderRegistryPayloadSelect = { clientMutationId?: boolean; - httpRoute?: { - select: HttpRouteSelect; + identityProviderRegistry?: { + select: IdentityProviderRegistrySelect; }; - httpRouteEdge?: { - select: HttpRouteEdgeSelect; + identityProviderRegistryEdge?: { + select: IdentityProviderRegistryEdgeSelect; }; }; -export interface UpdateHttpRoutePayload { +export interface UpdateIdentityProviderRegistryPayload { clientMutationId?: string | null; - /** The `HttpRoute` that was updated by this mutation. */ - httpRoute?: HttpRoute | null; - httpRouteEdge?: HttpRouteEdge | null; + /** The `IdentityProviderRegistry` that was updated by this mutation. */ + identityProviderRegistry?: IdentityProviderRegistry | null; + identityProviderRegistryEdge?: IdentityProviderRegistryEdge | null; } -export type UpdateHttpRoutePayloadSelect = { +export type UpdateIdentityProviderRegistryPayloadSelect = { clientMutationId?: boolean; - httpRoute?: { - select: HttpRouteSelect; + identityProviderRegistry?: { + select: IdentityProviderRegistrySelect; }; - httpRouteEdge?: { - select: HttpRouteEdgeSelect; + identityProviderRegistryEdge?: { + select: IdentityProviderRegistryEdgeSelect; }; }; -export interface DeleteHttpRoutePayload { +export interface DeleteIdentityProviderRegistryPayload { clientMutationId?: string | null; - /** The `HttpRoute` that was deleted by this mutation. */ - httpRoute?: HttpRoute | null; - httpRouteEdge?: HttpRouteEdge | null; + /** The `IdentityProviderRegistry` that was deleted by this mutation. */ + identityProviderRegistry?: IdentityProviderRegistry | null; + identityProviderRegistryEdge?: IdentityProviderRegistryEdge | null; } -export type DeleteHttpRoutePayloadSelect = { +export type DeleteIdentityProviderRegistryPayloadSelect = { clientMutationId?: boolean; - httpRoute?: { - select: HttpRouteSelect; + identityProviderRegistry?: { + select: IdentityProviderRegistrySelect; }; - httpRouteEdge?: { - select: HttpRouteEdgeSelect; + identityProviderRegistryEdge?: { + select: IdentityProviderRegistryEdgeSelect; }; }; export interface CreateIndexPayload { @@ -20022,6 +23086,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 +23221,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. */ @@ -20264,77 +23328,212 @@ export type CreatePlatformDomainEventPayloadSelect = { }; export interface UpdatePlatformDomainEventPayload { clientMutationId?: string | null; - /** The `PlatformDomainEvent` that was updated by this mutation. */ - platformDomainEvent?: PlatformDomainEvent | null; - platformDomainEventEdge?: PlatformDomainEventEdge | null; + /** The `PlatformDomainEvent` that was updated by this mutation. */ + platformDomainEvent?: PlatformDomainEvent | null; + platformDomainEventEdge?: PlatformDomainEventEdge | null; +} +export type UpdatePlatformDomainEventPayloadSelect = { + clientMutationId?: boolean; + platformDomainEvent?: { + select: PlatformDomainEventSelect; + }; + platformDomainEventEdge?: { + select: PlatformDomainEventEdgeSelect; + }; +}; +export interface DeletePlatformDomainEventPayload { + clientMutationId?: string | null; + /** The `PlatformDomainEvent` that was deleted by this mutation. */ + platformDomainEvent?: PlatformDomainEvent | null; + platformDomainEventEdge?: PlatformDomainEventEdge | null; +} +export type DeletePlatformDomainEventPayloadSelect = { + clientMutationId?: boolean; + platformDomainEvent?: { + select: PlatformDomainEventSelect; + }; + platformDomainEventEdge?: { + select: PlatformDomainEventEdgeSelect; + }; +}; +export interface CreatePlatformDomainVerificationPayload { + clientMutationId?: string | null; + /** The `PlatformDomainVerification` that was created by this mutation. */ + platformDomainVerification?: PlatformDomainVerification | null; + platformDomainVerificationEdge?: PlatformDomainVerificationEdge | null; +} +export type CreatePlatformDomainVerificationPayloadSelect = { + clientMutationId?: boolean; + platformDomainVerification?: { + select: PlatformDomainVerificationSelect; + }; + platformDomainVerificationEdge?: { + select: PlatformDomainVerificationEdgeSelect; + }; +}; +export interface UpdatePlatformDomainVerificationPayload { + clientMutationId?: string | null; + /** The `PlatformDomainVerification` that was updated by this mutation. */ + platformDomainVerification?: PlatformDomainVerification | null; + platformDomainVerificationEdge?: PlatformDomainVerificationEdge | null; +} +export type UpdatePlatformDomainVerificationPayloadSelect = { + clientMutationId?: boolean; + platformDomainVerification?: { + select: PlatformDomainVerificationSelect; + }; + platformDomainVerificationEdge?: { + select: PlatformDomainVerificationEdgeSelect; + }; +}; +export interface DeletePlatformDomainVerificationPayload { + clientMutationId?: string | null; + /** The `PlatformDomainVerification` that was deleted by this mutation. */ + platformDomainVerification?: PlatformDomainVerification | null; + platformDomainVerificationEdge?: PlatformDomainVerificationEdge | null; +} +export type DeletePlatformDomainVerificationPayloadSelect = { + clientMutationId?: boolean; + platformDomainVerification?: { + select: PlatformDomainVerificationSelect; + }; + platformDomainVerificationEdge?: { + 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 UpdatePlatformDomainEventPayloadSelect = { +export type UpdatePlatformEmailProviderAccountPayloadSelect = { clientMutationId?: boolean; - platformDomainEvent?: { - select: PlatformDomainEventSelect; + platformEmailProviderAccount?: { + select: PlatformEmailProviderAccountSelect; }; - platformDomainEventEdge?: { - select: PlatformDomainEventEdgeSelect; + platformEmailProviderAccountEdge?: { + select: PlatformEmailProviderAccountEdgeSelect; }; }; -export interface DeletePlatformDomainEventPayload { +export interface DeletePlatformEmailProviderAccountPayload { clientMutationId?: string | null; - /** The `PlatformDomainEvent` that was deleted by this mutation. */ - platformDomainEvent?: PlatformDomainEvent | null; - platformDomainEventEdge?: PlatformDomainEventEdge | null; + /** The `PlatformEmailProviderAccount` that was deleted by this mutation. */ + platformEmailProviderAccount?: PlatformEmailProviderAccount | null; + platformEmailProviderAccountEdge?: PlatformEmailProviderAccountEdge | null; } -export type DeletePlatformDomainEventPayloadSelect = { +export type DeletePlatformEmailProviderAccountPayloadSelect = { clientMutationId?: boolean; - platformDomainEvent?: { - select: PlatformDomainEventSelect; + platformEmailProviderAccount?: { + select: PlatformEmailProviderAccountSelect; }; - platformDomainEventEdge?: { - select: PlatformDomainEventEdgeSelect; + platformEmailProviderAccountEdge?: { + select: PlatformEmailProviderAccountEdgeSelect; }; }; -export interface CreatePlatformDomainVerificationPayload { +export interface CreatePlatformEmailSiteIdentityPayload { clientMutationId?: string | null; - /** The `PlatformDomainVerification` that was created by this mutation. */ - platformDomainVerification?: PlatformDomainVerification | null; - platformDomainVerificationEdge?: PlatformDomainVerificationEdge | null; + /** The `PlatformEmailSiteIdentity` that was created by this mutation. */ + platformEmailSiteIdentity?: PlatformEmailSiteIdentity | null; + platformEmailSiteIdentityEdge?: PlatformEmailSiteIdentityEdge | null; } -export type CreatePlatformDomainVerificationPayloadSelect = { +export type CreatePlatformEmailSiteIdentityPayloadSelect = { clientMutationId?: boolean; - platformDomainVerification?: { - select: PlatformDomainVerificationSelect; + platformEmailSiteIdentity?: { + select: PlatformEmailSiteIdentitySelect; }; - platformDomainVerificationEdge?: { - select: PlatformDomainVerificationEdgeSelect; + platformEmailSiteIdentityEdge?: { + select: PlatformEmailSiteIdentityEdgeSelect; }; }; -export interface UpdatePlatformDomainVerificationPayload { +export interface UpdatePlatformEmailSiteIdentityPayload { clientMutationId?: string | null; - /** The `PlatformDomainVerification` that was updated by this mutation. */ - platformDomainVerification?: PlatformDomainVerification | null; - platformDomainVerificationEdge?: PlatformDomainVerificationEdge | null; + /** The `PlatformEmailSiteIdentity` that was updated by this mutation. */ + platformEmailSiteIdentity?: PlatformEmailSiteIdentity | null; + platformEmailSiteIdentityEdge?: PlatformEmailSiteIdentityEdge | null; } -export type UpdatePlatformDomainVerificationPayloadSelect = { +export type UpdatePlatformEmailSiteIdentityPayloadSelect = { clientMutationId?: boolean; - platformDomainVerification?: { - select: PlatformDomainVerificationSelect; + platformEmailSiteIdentity?: { + select: PlatformEmailSiteIdentitySelect; }; - platformDomainVerificationEdge?: { - select: PlatformDomainVerificationEdgeSelect; + platformEmailSiteIdentityEdge?: { + select: PlatformEmailSiteIdentityEdgeSelect; }; }; -export interface DeletePlatformDomainVerificationPayload { +export interface DeletePlatformEmailSiteIdentityPayload { clientMutationId?: string | null; - /** The `PlatformDomainVerification` that was deleted by this mutation. */ - platformDomainVerification?: PlatformDomainVerification | null; - platformDomainVerificationEdge?: PlatformDomainVerificationEdge | null; + /** The `PlatformEmailSiteIdentity` that was deleted by this mutation. */ + platformEmailSiteIdentity?: PlatformEmailSiteIdentity | null; + platformEmailSiteIdentityEdge?: PlatformEmailSiteIdentityEdge | null; } -export type DeletePlatformDomainVerificationPayloadSelect = { +export type DeletePlatformEmailSiteIdentityPayloadSelect = { clientMutationId?: boolean; - platformDomainVerification?: { - select: PlatformDomainVerificationSelect; + platformEmailSiteIdentity?: { + select: PlatformEmailSiteIdentitySelect; }; - platformDomainVerificationEdge?: { - select: PlatformDomainVerificationEdgeSelect; + platformEmailSiteIdentityEdge?: { + select: PlatformEmailSiteIdentityEdgeSelect; }; }; export interface CreatePlatformManagedDomainPayload { @@ -20697,6 +23896,51 @@ export type DeletePlatformSiteModulePayloadSelect = { select: PlatformSiteModuleEdgeSelect; }; }; +export interface CreatePlatformSiteReleasePayload { + clientMutationId?: string | null; + /** The `PlatformSiteRelease` that was created by this mutation. */ + platformSiteRelease?: PlatformSiteRelease | null; + platformSiteReleaseEdge?: PlatformSiteReleaseEdge | null; +} +export type CreatePlatformSiteReleasePayloadSelect = { + clientMutationId?: boolean; + platformSiteRelease?: { + select: PlatformSiteReleaseSelect; + }; + platformSiteReleaseEdge?: { + select: PlatformSiteReleaseEdgeSelect; + }; +}; +export interface UpdatePlatformSiteReleasePayload { + clientMutationId?: string | null; + /** The `PlatformSiteRelease` that was updated by this mutation. */ + platformSiteRelease?: PlatformSiteRelease | null; + platformSiteReleaseEdge?: PlatformSiteReleaseEdge | null; +} +export type UpdatePlatformSiteReleasePayloadSelect = { + clientMutationId?: boolean; + platformSiteRelease?: { + select: PlatformSiteReleaseSelect; + }; + platformSiteReleaseEdge?: { + select: PlatformSiteReleaseEdgeSelect; + }; +}; +export interface DeletePlatformSiteReleasePayload { + clientMutationId?: string | null; + /** The `PlatformSiteRelease` that was deleted by this mutation. */ + platformSiteRelease?: PlatformSiteRelease | null; + platformSiteReleaseEdge?: PlatformSiteReleaseEdge | null; +} +export type DeletePlatformSiteReleasePayloadSelect = { + clientMutationId?: boolean; + platformSiteRelease?: { + select: PlatformSiteReleaseSelect; + }; + platformSiteReleaseEdge?: { + select: PlatformSiteReleaseEdgeSelect; + }; +}; export interface CreatePlatformSiteThemePayload { clientMutationId?: string | null; /** The `PlatformSiteTheme` that was created by this mutation. */ @@ -20922,6 +24166,51 @@ export type DeletePubkeySettingPayloadSelect = { select: PubkeySettingEdgeSelect; }; }; +export interface CreateRedirectPayload { + clientMutationId?: string | null; + /** The `Redirect` that was created by this mutation. */ + redirect?: Redirect | null; + redirectEdge?: RedirectEdge | null; +} +export type CreateRedirectPayloadSelect = { + clientMutationId?: boolean; + redirect?: { + select: RedirectSelect; + }; + redirectEdge?: { + select: RedirectEdgeSelect; + }; +}; +export interface UpdateRedirectPayload { + clientMutationId?: string | null; + /** The `Redirect` that was updated by this mutation. */ + redirect?: Redirect | null; + redirectEdge?: RedirectEdge | null; +} +export type UpdateRedirectPayloadSelect = { + clientMutationId?: boolean; + redirect?: { + select: RedirectSelect; + }; + redirectEdge?: { + select: RedirectEdgeSelect; + }; +}; +export interface DeleteRedirectPayload { + clientMutationId?: string | null; + /** The `Redirect` that was deleted by this mutation. */ + redirect?: Redirect | null; + redirectEdge?: RedirectEdge | null; +} +export type DeleteRedirectPayloadSelect = { + clientMutationId?: boolean; + redirect?: { + select: RedirectSelect; + }; + redirectEdge?: { + select: RedirectEdgeSelect; + }; +}; export interface CreateRlsSettingPayload { clientMutationId?: string | null; /** The `RlsSetting` that was created by this mutation. */ @@ -21417,6 +24706,51 @@ export type DeleteSiteModulePayloadSelect = { select: SiteModuleEdgeSelect; }; }; +export interface CreateSiteReleasePayload { + clientMutationId?: string | null; + /** The `SiteRelease` that was created by this mutation. */ + siteRelease?: SiteRelease | null; + siteReleaseEdge?: SiteReleaseEdge | null; +} +export type CreateSiteReleasePayloadSelect = { + clientMutationId?: boolean; + siteRelease?: { + select: SiteReleaseSelect; + }; + siteReleaseEdge?: { + select: SiteReleaseEdgeSelect; + }; +}; +export interface UpdateSiteReleasePayload { + clientMutationId?: string | null; + /** The `SiteRelease` that was updated by this mutation. */ + siteRelease?: SiteRelease | null; + siteReleaseEdge?: SiteReleaseEdge | null; +} +export type UpdateSiteReleasePayloadSelect = { + clientMutationId?: boolean; + siteRelease?: { + select: SiteReleaseSelect; + }; + siteReleaseEdge?: { + select: SiteReleaseEdgeSelect; + }; +}; +export interface DeleteSiteReleasePayload { + clientMutationId?: string | null; + /** The `SiteRelease` that was deleted by this mutation. */ + siteRelease?: SiteRelease | null; + siteReleaseEdge?: SiteReleaseEdge | null; +} +export type DeleteSiteReleasePayloadSelect = { + clientMutationId?: boolean; + siteRelease?: { + select: SiteReleaseSelect; + }; + siteReleaseEdge?: { + select: SiteReleaseEdgeSelect; + }; +}; export interface CreateSiteThemePayload { clientMutationId?: string | null; /** The `SiteTheme` that was created by this mutation. */ @@ -22149,6 +25483,14 @@ export type DomainEdgeSelect = { select: DomainSelect; }; }; +export interface MintSitePreviewTokenRecord { + expiresAt?: string | null; + token?: string | null; +} +export type MintSitePreviewTokenRecordSelect = { + expiresAt?: boolean; + token?: boolean; +}; /** A `PlatformDomain` edge in the connection. */ export interface PlatformDomainEdge { cursor?: string | null; @@ -22161,8 +25503,18 @@ export type PlatformDomainEdgeSelect = { select: PlatformDomainSelect; }; }; +export interface PlatformMintSitePreviewTokenRecord { + expiresAt?: string | null; + token?: string | null; +} +export type PlatformMintSitePreviewTokenRecordSelect = { + expiresAt?: boolean; + token?: boolean; +}; /** Routes binding a domain hostname and path to a typed catalog target */ export interface PlatformRoute { + /** Whether this route answers callers with no identity. Requires the target function to declare anonymous_callable; default false = an identity is required */ + anonymous: boolean; /** Route metadata; target configuration is read live from the typed catalog, never copied here */ config?: Record | null; createdAt?: string | null; @@ -22175,21 +25527,28 @@ export interface PlatformRoute { method?: string | null; /** Path prefix this route matches; must begin with / and carry no trailing slash */ path: string; + /** The site preview this route serves; NULL serves the site's published release */ + previewRef?: string | null; /** Higher priority wins between otherwise-equal matches */ priority: number; - /** Api catalog row this route targets; must be owner-matched or visible cross-scope */ + /** Site whose surface this route serves; the serving lane renders as this site. NULL when the route serves no site */ + servingSiteId?: string | null; + /** Api surface this route targets; must be this scope's own api */ targetApiId?: string | null; - /** Bucket catalog row this route targets; must be a public bucket that is owner-matched or visible cross-scope */ + /** Bucket this route targets; must be a public bucket in this scope's own storage plane */ targetBucketId?: string | null; - /** Function catalog row this route targets; must be owner-matched or visible cross-scope */ + /** Function this route targets; must be this scope's own function */ targetFunctionId?: string | null; - /** Resource catalog row (a Service resource) this route targets; must be owner-matched or visible cross-scope */ + /** Redirect this route targets; the edge answers with a redirect status instead of proxying a backend */ + targetRedirectId?: string | null; + /** Resource (a Service resource) this route targets; must be this scope's own resource */ targetServiceId?: string | null; - /** Site catalog row this route targets; must be owner-matched or visible cross-scope */ + /** Site surface this route targets; must be this scope's own site */ targetSiteId?: string | null; updatedAt?: string | null; } export type PlatformRouteSelect = { + anonymous?: boolean; config?: boolean; createdAt?: boolean; domainId?: boolean; @@ -22197,23 +25556,52 @@ export type PlatformRouteSelect = { isActive?: boolean; method?: boolean; path?: boolean; + previewRef?: boolean; priority?: boolean; + servingSiteId?: boolean; targetApiId?: boolean; targetBucketId?: boolean; targetFunctionId?: boolean; + targetRedirectId?: boolean; targetServiceId?: boolean; targetSiteId?: boolean; updatedAt?: boolean; }; +/** A `PlatformSite` edge in the connection. */ +export interface PlatformSiteEdge { + cursor?: string | null; + /** The `PlatformSite` at the end of the edge. */ + node?: PlatformSite | null; +} +export type PlatformSiteEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformSiteSelect; + }; +}; +/** A `Route` edge in the connection. */ +export interface RouteEdge { + cursor?: string | null; + /** The `Route` at the end of the edge. */ + node?: Route | null; +} +export type RouteEdgeSelect = { + cursor?: boolean; + node?: { + select: RouteSelect; + }; +}; /** 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 */ async: boolean; + /** The user whose identity is copied into the new database. Defaults to owner_id when NULL; set explicitly when owner_id is an organization */ + bootstrapActorId?: string | null; /** Error message from the most recent failed bootstrap attempt */ bootstrapError?: string | null; /** Status of the deferred owner bootstrap job: not_requested, pending, completed, or failed */ bootstrapStatus: string; - /** When true, copies the owner user and password hash from source database to the newly provisioned database */ + /** When true, copies the bootstrap user and password hash from source database to the newly provisioned database */ bootstrapUser: boolean; completedAt?: string | null; createdAt: string; @@ -22227,11 +25615,11 @@ 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; - /** UUID of the user who owns this database */ + /** UUID of the entity that owns this database: a user, or an organization for an org-owned request */ ownerId: string; /** The database the owner user is copied from during bootstrap (captured from JWT context at provision time) */ sourceDatabaseId?: string | null; @@ -22243,6 +25631,7 @@ export interface DatabaseProvisionModule { } export type DatabaseProvisionModuleSelect = { async?: boolean; + bootstrapActorId?: boolean; bootstrapError?: boolean; bootstrapStatus?: boolean; bootstrapUser?: boolean; @@ -22262,6 +25651,30 @@ export type DatabaseProvisionModuleSelect = { subdomain?: boolean; updatedAt?: boolean; }; +/** A `Site` edge in the connection. */ +export interface SiteEdge { + cursor?: string | null; + /** The `Site` at the end of the edge. */ + node?: Site | null; +} +export type SiteEdgeSelect = { + cursor?: boolean; + node?: { + select: SiteSelect; + }; +}; +/** 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 +25699,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 +25831,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; @@ -22550,16 +25987,16 @@ export type HostnameBindingEdgeSelect = { select: HostnameBindingSelect; }; }; -/** A `HttpRoute` edge in the connection. */ -export interface HttpRouteEdge { +/** A `IdentityProviderRegistry` edge in the connection. */ +export interface IdentityProviderRegistryEdge { cursor?: string | null; - /** The `HttpRoute` at the end of the edge. */ - node?: HttpRoute | null; + /** The `IdentityProviderRegistry` at the end of the edge. */ + node?: IdentityProviderRegistry | null; } -export type HttpRouteEdgeSelect = { +export type IdentityProviderRegistryEdgeSelect = { cursor?: boolean; node?: { - select: HttpRouteSelect; + select: IdentityProviderRegistrySelect; }; }; /** A `Index` edge in the connection. */ @@ -22622,6 +26059,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 +26095,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 +26131,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; @@ -22730,18 +26203,6 @@ export type PlatformSiteAppLinkEdgeSelect = { select: PlatformSiteAppLinkSelect; }; }; -/** A `PlatformSite` edge in the connection. */ -export interface PlatformSiteEdge { - cursor?: string | null; - /** The `PlatformSite` at the end of the edge. */ - node?: PlatformSite | null; -} -export type PlatformSiteEdgeSelect = { - cursor?: boolean; - node?: { - select: PlatformSiteSelect; - }; -}; /** A `PlatformSiteDeepLink` edge in the connection. */ export interface PlatformSiteDeepLinkEdge { cursor?: string | null; @@ -22790,6 +26251,18 @@ export type PlatformSiteModuleEdgeSelect = { select: PlatformSiteModuleSelect; }; }; +/** A `PlatformSiteRelease` edge in the connection. */ +export interface PlatformSiteReleaseEdge { + cursor?: string | null; + /** The `PlatformSiteRelease` at the end of the edge. */ + node?: PlatformSiteRelease | null; +} +export type PlatformSiteReleaseEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformSiteReleaseSelect; + }; +}; /** A `PlatformSiteTheme` edge in the connection. */ export interface PlatformSiteThemeEdge { cursor?: string | null; @@ -22850,6 +26323,18 @@ export type PubkeySettingEdgeSelect = { select: PubkeySettingSelect; }; }; +/** A `Redirect` edge in the connection. */ +export interface RedirectEdge { + cursor?: string | null; + /** The `Redirect` at the end of the edge. */ + node?: Redirect | null; +} +export type RedirectEdgeSelect = { + cursor?: boolean; + node?: { + select: RedirectSelect; + }; +}; /** A `RlsSetting` edge in the connection. */ export interface RlsSettingEdge { cursor?: string | null; @@ -22874,18 +26359,6 @@ export type RouteBindingEdgeSelect = { select: RouteBindingSelect; }; }; -/** A `Route` edge in the connection. */ -export interface RouteEdge { - cursor?: string | null; - /** The `Route` at the end of the edge. */ - node?: Route | null; -} -export type RouteEdgeSelect = { - cursor?: boolean; - node?: { - select: RouteSelect; - }; -}; /** A `Schema` edge in the connection. */ export interface SchemaEdge { cursor?: string | null; @@ -22922,18 +26395,6 @@ export type SiteAppLinkEdgeSelect = { select: SiteAppLinkSelect; }; }; -/** A `Site` edge in the connection. */ -export interface SiteEdge { - cursor?: string | null; - /** The `Site` at the end of the edge. */ - node?: Site | null; -} -export type SiteEdgeSelect = { - cursor?: boolean; - node?: { - select: SiteSelect; - }; -}; /** A `SiteDeepLink` edge in the connection. */ export interface SiteDeepLinkEdge { cursor?: string | null; @@ -22982,6 +26443,18 @@ export type SiteModuleEdgeSelect = { select: SiteModuleSelect; }; }; +/** A `SiteRelease` edge in the connection. */ +export interface SiteReleaseEdge { + cursor?: string | null; + /** The `SiteRelease` at the end of the edge. */ + node?: SiteRelease | null; +} +export type SiteReleaseEdgeSelect = { + cursor?: boolean; + node?: { + select: SiteReleaseSelect; + }; +}; /** A `SiteTheme` edge in the connection. */ export interface SiteThemeEdge { cursor?: string | null; diff --git a/sdk/constructive-cli/src/api/orm/models/api.ts b/sdk/constructive-cli/src/api/orm/models/api.ts new file mode 100644 index 0000000000..4d60695731 --- /dev/null +++ b/sdk/constructive-cli/src/api/orm/models/api.ts @@ -0,0 +1,245 @@ +/** + * Api 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 { + Api, + ApiWithRelations, + ApiSelect, + ApiFilter, + ApiOrderBy, + CreateApiInput, + UpdateApiInput, + ApiPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class ApiModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + apis: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'Api', + 'apis', + 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, + }, + 'ApiFilter', + 'ApiOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Api', + fieldName: 'apis', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + api: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'Api', + 'apis', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'ApiFilter', + 'ApiOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Api', + fieldName: 'api', + document, + variables, + transform: (data: { + apis?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + api: data.apis?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + api: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'Api', + 'apis', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'ApiFilter', + 'ApiOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Api', + fieldName: 'api', + document, + variables, + transform: (data: { + apis?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + api: data.apis?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createApi: { + api: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'Api', + 'createApi', + 'api', + args.select, + args.data, + 'CreateApiInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Api', + fieldName: 'createApi', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + ApiPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateApi: { + api: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'Api', + 'updateApi', + 'api', + args.select, + args.where.id, + args.data, + 'UpdateApiInput', + 'id', + 'apiPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Api', + fieldName: 'updateApi', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteApi: { + api: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'Api', + 'deleteApi', + 'api', + { + id: args.where.id, + }, + 'DeleteApiInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Api', + fieldName: 'deleteApi', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/api/orm/models/apis.ts b/sdk/constructive-cli/src/api/orm/models/apis.ts deleted file mode 100644 index a62444db0f..0000000000 --- a/sdk/constructive-cli/src/api/orm/models/apis.ts +++ /dev/null @@ -1,245 +0,0 @@ -/** - * Apis 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 { - Apis, - ApisWithRelations, - ApisSelect, - ApisFilter, - ApisOrderBy, - CreateApisInput, - UpdateApisInput, - ApisPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class ApisModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - apises: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'Apis', - 'apises', - 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, - }, - 'ApisFilter', - 'ApisOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'Apis', - fieldName: 'apises', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - apis: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'Apis', - 'apises', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'ApisFilter', - 'ApisOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'Apis', - fieldName: 'apis', - document, - variables, - transform: (data: { - apises?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - apis: data.apises?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - apis: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'Apis', - 'apises', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'ApisFilter', - 'ApisOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'Apis', - fieldName: 'apis', - document, - variables, - transform: (data: { - apises?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - apis: data.apises?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createApis: { - apis: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'Apis', - 'createApis', - 'apis', - args.select, - args.data, - 'CreateApisInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'Apis', - fieldName: 'createApis', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - ApisPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateApis: { - apis: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'Apis', - 'updateApis', - 'apis', - args.select, - args.where.id, - args.data, - 'UpdateApisInput', - 'id', - 'apisPatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'Apis', - fieldName: 'updateApis', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteApis: { - apis: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'Apis', - 'deleteApis', - 'apis', - { - id: args.where.id, - }, - 'DeleteApisInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'Apis', - fieldName: 'deleteApis', - 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/getSitePreviewsRecord.ts b/sdk/constructive-cli/src/api/orm/models/getSitePreviewsRecord.ts new file mode 100644 index 0000000000..dc2c778221 --- /dev/null +++ b/sdk/constructive-cli/src/api/orm/models/getSitePreviewsRecord.ts @@ -0,0 +1,134 @@ +/** + * GetSitePreviewsRecord 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 { + GetSitePreviewsRecord, + GetSitePreviewsRecordWithRelations, + GetSitePreviewsRecordSelect, + GetSitePreviewsRecordFilter, + GetSitePreviewsRecordsOrderBy, + CreateGetSitePreviewsRecordInput, + UpdateGetSitePreviewsRecordInput, + GetSitePreviewsRecordPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class GetSitePreviewsRecordModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + getSitePreviews: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'GetSitePreviewsRecord', + 'getSitePreviews', + 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, + }, + 'GetSitePreviewsRecordFilter', + 'GetSitePreviewsRecordsOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'GetSitePreviewsRecord', + fieldName: 'getSitePreviews', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + getSitePreviewsRecord: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'GetSitePreviewsRecord', + 'getSitePreviews', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'GetSitePreviewsRecordFilter', + 'GetSitePreviewsRecordsOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'GetSitePreviewsRecord', + fieldName: 'getSitePreviewsRecord', + document, + variables, + transform: (data: { + getSitePreviews?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + getSitePreviewsRecord: data.getSitePreviews?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createGetSitePreviewsRecord: { + getSitePreviewsRecord: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'GetSitePreviewsRecord', + 'createGetSitePreviewsRecord', + 'getSitePreviewsRecord', + args.select, + args.data, + 'CreateGetSitePreviewsRecordInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'GetSitePreviewsRecord', + fieldName: 'createGetSitePreviewsRecord', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/api/orm/models/httpRoute.ts b/sdk/constructive-cli/src/api/orm/models/httpRoute.ts deleted file mode 100644 index 0af2bf2fac..0000000000 --- a/sdk/constructive-cli/src/api/orm/models/httpRoute.ts +++ /dev/null @@ -1,245 +0,0 @@ -/** - * HttpRoute 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 { - HttpRoute, - HttpRouteWithRelations, - HttpRouteSelect, - HttpRouteFilter, - HttpRouteOrderBy, - CreateHttpRouteInput, - UpdateHttpRouteInput, - HttpRoutePatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class HttpRouteModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - httpRoutes: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'HttpRoute', - 'httpRoutes', - 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, - }, - 'HttpRouteFilter', - 'HttpRouteOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'HttpRoute', - fieldName: 'httpRoutes', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - httpRoute: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'HttpRoute', - 'httpRoutes', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'HttpRouteFilter', - 'HttpRouteOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'HttpRoute', - fieldName: 'httpRoute', - document, - variables, - transform: (data: { - httpRoutes?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - httpRoute: data.httpRoutes?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - httpRoute: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'HttpRoute', - 'httpRoutes', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'HttpRouteFilter', - 'HttpRouteOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'HttpRoute', - fieldName: 'httpRoute', - document, - variables, - transform: (data: { - httpRoutes?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - httpRoute: data.httpRoutes?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createHttpRoute: { - httpRoute: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'HttpRoute', - 'createHttpRoute', - 'httpRoute', - args.select, - args.data, - 'CreateHttpRouteInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'HttpRoute', - fieldName: 'createHttpRoute', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - HttpRoutePatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateHttpRoute: { - httpRoute: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'HttpRoute', - 'updateHttpRoute', - 'httpRoute', - args.select, - args.where.id, - args.data, - 'UpdateHttpRouteInput', - 'id', - 'httpRoutePatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'HttpRoute', - fieldName: 'updateHttpRoute', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteHttpRoute: { - httpRoute: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'HttpRoute', - 'deleteHttpRoute', - 'httpRoute', - { - id: args.where.id, - }, - 'DeleteHttpRouteInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'HttpRoute', - fieldName: 'deleteHttpRoute', - document, - variables, - }); - } -} diff --git a/sdk/constructive-cli/src/api/orm/models/identityProviderRegistry.ts b/sdk/constructive-cli/src/api/orm/models/identityProviderRegistry.ts new file mode 100644 index 0000000000..5c314ea984 --- /dev/null +++ b/sdk/constructive-cli/src/api/orm/models/identityProviderRegistry.ts @@ -0,0 +1,247 @@ +/** + * IdentityProviderRegistry 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 { + IdentityProviderRegistry, + IdentityProviderRegistryWithRelations, + IdentityProviderRegistrySelect, + IdentityProviderRegistryFilter, + IdentityProviderRegistryOrderBy, + CreateIdentityProviderRegistryInput, + UpdateIdentityProviderRegistryInput, + IdentityProviderRegistryPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class IdentityProviderRegistryModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + identityProviderRegistries: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'IdentityProviderRegistry', + 'identityProviderRegistries', + 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, + }, + 'IdentityProviderRegistryFilter', + 'IdentityProviderRegistryOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'IdentityProviderRegistry', + fieldName: 'identityProviderRegistries', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + identityProviderRegistry: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'IdentityProviderRegistry', + 'identityProviderRegistries', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'IdentityProviderRegistryFilter', + 'IdentityProviderRegistryOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'IdentityProviderRegistry', + fieldName: 'identityProviderRegistry', + document, + variables, + transform: (data: { + identityProviderRegistries?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + identityProviderRegistry: data.identityProviderRegistries?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + slug: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + identityProviderRegistry: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'IdentityProviderRegistry', + 'identityProviderRegistries', + args.select, + { + where: { + slug: { + equalTo: args.slug, + }, + }, + first: 1, + }, + 'IdentityProviderRegistryFilter', + 'IdentityProviderRegistryOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'IdentityProviderRegistry', + fieldName: 'identityProviderRegistry', + document, + variables, + transform: (data: { + identityProviderRegistries?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + identityProviderRegistry: data.identityProviderRegistries?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createIdentityProviderRegistry: { + identityProviderRegistry: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'IdentityProviderRegistry', + 'createIdentityProviderRegistry', + 'identityProviderRegistry', + args.select, + args.data, + 'CreateIdentityProviderRegistryInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'IdentityProviderRegistry', + fieldName: 'createIdentityProviderRegistry', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + slug: string; + }, + IdentityProviderRegistryPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateIdentityProviderRegistry: { + identityProviderRegistry: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'IdentityProviderRegistry', + 'updateIdentityProviderRegistry', + 'identityProviderRegistry', + args.select, + args.where.slug, + args.data, + 'UpdateIdentityProviderRegistryInput', + 'slug', + 'identityProviderRegistryPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'IdentityProviderRegistry', + fieldName: 'updateIdentityProviderRegistry', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + slug: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteIdentityProviderRegistry: { + identityProviderRegistry: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'IdentityProviderRegistry', + 'deleteIdentityProviderRegistry', + 'identityProviderRegistry', + { + slug: args.where.slug, + }, + 'DeleteIdentityProviderRegistryInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'IdentityProviderRegistry', + fieldName: 'deleteIdentityProviderRegistry', + 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..0dde470052 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'; @@ -28,20 +31,25 @@ export { ForeignKeyConstraintBehaviorModel } from './foreignKeyConstraintBehavio export { ForeignKeyConstraintModel } from './foreignKeyConstraint'; export { FullTextSearchModel } from './fullTextSearch'; export { FunctionModel } from './function'; +export { GetSitePreviewsRecordModel } from './getSitePreviewsRecord'; export { HostnameBindingModel } from './hostnameBinding'; -export { HttpRouteModel } from './httpRoute'; +export { IdentityProviderRegistryModel } from './identityProviderRegistry'; export { IndexModel } from './indexModel'; 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 { PlatformGetSitePreviewsRecordModel } from './platformGetSitePreviewsRecord'; export { PlatformManagedDomainModel } from './platformManagedDomain'; export { PlatformPageModel } from './platformPage'; export { PlatformSiteAppLinkModel } from './platformSiteAppLink'; @@ -50,11 +58,13 @@ export { PlatformSiteDeepLinkModel } from './platformSiteDeepLink'; export { PlatformSiteErrorPageModel } from './platformSiteErrorPage'; export { PlatformSiteMetadatumModel } from './platformSiteMetadatum'; export { PlatformSiteModuleModel } from './platformSiteModule'; +export { PlatformSiteReleaseModel } from './platformSiteRelease'; export { PlatformSiteThemeModel } from './platformSiteTheme'; export { PlatformSiteWebConfigModel } from './platformSiteWebConfig'; export { PolicyModel } from './policy'; export { PrimaryKeyConstraintModel } from './primaryKeyConstraint'; export { PubkeySettingModel } from './pubkeySetting'; +export { RedirectModel } from './redirect'; export { RlsSettingModel } from './rlsSetting'; export { RouteBindingModel } from './routeBinding'; export { RouteModel } from './route'; @@ -66,6 +76,7 @@ export { SiteDeepLinkModel } from './siteDeepLink'; export { SiteErrorPageModel } from './siteErrorPage'; export { SiteMetadatumModel } from './siteMetadatum'; export { SiteModuleModel } from './siteModule'; +export { SiteReleaseModel } from './siteRelease'; export { SiteThemeModel } from './siteTheme'; export { SiteWebConfigModel } from './siteWebConfig'; export { SpatialRelationModel } from './spatialRelation'; diff --git a/sdk/constructive-cli/src/api/orm/models/platformApi.ts b/sdk/constructive-cli/src/api/orm/models/platformApi.ts new file mode 100644 index 0000000000..3eee59e6c8 --- /dev/null +++ b/sdk/constructive-cli/src/api/orm/models/platformApi.ts @@ -0,0 +1,245 @@ +/** + * PlatformApi 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 { + PlatformApi, + PlatformApiWithRelations, + PlatformApiSelect, + PlatformApiFilter, + PlatformApiOrderBy, + CreatePlatformApiInput, + UpdatePlatformApiInput, + PlatformApiPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformApiModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformApis: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformApi', + 'platformApis', + 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, + }, + 'PlatformApiFilter', + 'PlatformApiOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformApi', + fieldName: 'platformApis', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformApi: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformApi', + 'platformApis', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformApiFilter', + 'PlatformApiOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformApi', + fieldName: 'platformApi', + document, + variables, + transform: (data: { + platformApis?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformApi: data.platformApis?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformApi: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformApi', + 'platformApis', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformApiFilter', + 'PlatformApiOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformApi', + fieldName: 'platformApi', + document, + variables, + transform: (data: { + platformApis?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformApi: data.platformApis?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformApi: { + platformApi: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformApi', + 'createPlatformApi', + 'platformApi', + args.select, + args.data, + 'CreatePlatformApiInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformApi', + fieldName: 'createPlatformApi', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformApiPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformApi: { + platformApi: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformApi', + 'updatePlatformApi', + 'platformApi', + args.select, + args.where.id, + args.data, + 'UpdatePlatformApiInput', + 'id', + 'platformApiPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformApi', + fieldName: 'updatePlatformApi', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformApi: { + platformApi: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformApi', + 'deletePlatformApi', + 'platformApi', + { + id: args.where.id, + }, + 'DeletePlatformApiInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformApi', + fieldName: 'deletePlatformApi', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/api/orm/models/platformApis.ts b/sdk/constructive-cli/src/api/orm/models/platformApis.ts deleted file mode 100644 index 43cd25c9d2..0000000000 --- a/sdk/constructive-cli/src/api/orm/models/platformApis.ts +++ /dev/null @@ -1,245 +0,0 @@ -/** - * PlatformApis 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 { - PlatformApis, - PlatformApisWithRelations, - PlatformApisSelect, - PlatformApisFilter, - PlatformApisOrderBy, - CreatePlatformApisInput, - UpdatePlatformApisInput, - PlatformApisPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class PlatformApisModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - platformApises: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'PlatformApis', - 'platformApises', - 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, - }, - 'PlatformApisFilter', - 'PlatformApisOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'PlatformApis', - fieldName: 'platformApises', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - platformApis: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'PlatformApis', - 'platformApises', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'PlatformApisFilter', - 'PlatformApisOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'PlatformApis', - fieldName: 'platformApis', - document, - variables, - transform: (data: { - platformApises?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - platformApis: data.platformApises?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - platformApis: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'PlatformApis', - 'platformApises', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'PlatformApisFilter', - 'PlatformApisOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'PlatformApis', - fieldName: 'platformApis', - document, - variables, - transform: (data: { - platformApises?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - platformApis: data.platformApises?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPlatformApis: { - platformApis: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PlatformApis', - 'createPlatformApis', - 'platformApis', - args.select, - args.data, - 'CreatePlatformApisInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlatformApis', - fieldName: 'createPlatformApis', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - PlatformApisPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updatePlatformApis: { - platformApis: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'PlatformApis', - 'updatePlatformApis', - 'platformApis', - args.select, - args.where.id, - args.data, - 'UpdatePlatformApisInput', - 'id', - 'platformApisPatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlatformApis', - fieldName: 'updatePlatformApis', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deletePlatformApis: { - platformApis: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'PlatformApis', - 'deletePlatformApis', - 'platformApis', - { - id: args.where.id, - }, - 'DeletePlatformApisInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlatformApis', - fieldName: 'deletePlatformApis', - 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/api/orm/models/platformGetSitePreviewsRecord.ts b/sdk/constructive-cli/src/api/orm/models/platformGetSitePreviewsRecord.ts new file mode 100644 index 0000000000..b2282eaa16 --- /dev/null +++ b/sdk/constructive-cli/src/api/orm/models/platformGetSitePreviewsRecord.ts @@ -0,0 +1,153 @@ +/** + * PlatformGetSitePreviewsRecord 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 { + PlatformGetSitePreviewsRecord, + PlatformGetSitePreviewsRecordWithRelations, + PlatformGetSitePreviewsRecordSelect, + PlatformGetSitePreviewsRecordFilter, + PlatformGetSitePreviewsRecordsOrderBy, + CreatePlatformGetSitePreviewsRecordInput, + UpdatePlatformGetSitePreviewsRecordInput, + PlatformGetSitePreviewsRecordPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformGetSitePreviewsRecordModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs< + S, + PlatformGetSitePreviewsRecordFilter, + PlatformGetSitePreviewsRecordsOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformGetSitePreviews: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformGetSitePreviewsRecord', + 'platformGetSitePreviews', + 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, + }, + 'PlatformGetSitePreviewsRecordFilter', + 'PlatformGetSitePreviewsRecordsOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformGetSitePreviewsRecord', + fieldName: 'platformGetSitePreviews', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs< + S, + PlatformGetSitePreviewsRecordFilter, + PlatformGetSitePreviewsRecordsOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformGetSitePreviewsRecord: InferSelectResult< + PlatformGetSitePreviewsRecordWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformGetSitePreviewsRecord', + 'platformGetSitePreviews', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformGetSitePreviewsRecordFilter', + 'PlatformGetSitePreviewsRecordsOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformGetSitePreviewsRecord', + fieldName: 'platformGetSitePreviewsRecord', + document, + variables, + transform: (data: { + platformGetSitePreviews?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformGetSitePreviewsRecord: data.platformGetSitePreviews?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs< + S, + CreatePlatformGetSitePreviewsRecordInput['platformGetSitePreviewsRecord'] + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformGetSitePreviewsRecord: { + platformGetSitePreviewsRecord: InferSelectResult< + PlatformGetSitePreviewsRecordWithRelations, + S + >; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformGetSitePreviewsRecord', + 'createPlatformGetSitePreviewsRecord', + 'platformGetSitePreviewsRecord', + args.select, + args.data, + 'CreatePlatformGetSitePreviewsRecordInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformGetSitePreviewsRecord', + fieldName: 'createPlatformGetSitePreviewsRecord', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/api/orm/models/platformSiteRelease.ts b/sdk/constructive-cli/src/api/orm/models/platformSiteRelease.ts new file mode 100644 index 0000000000..cf973ae971 --- /dev/null +++ b/sdk/constructive-cli/src/api/orm/models/platformSiteRelease.ts @@ -0,0 +1,245 @@ +/** + * PlatformSiteRelease 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 { + PlatformSiteRelease, + PlatformSiteReleaseWithRelations, + PlatformSiteReleaseSelect, + PlatformSiteReleaseFilter, + PlatformSiteReleaseOrderBy, + CreatePlatformSiteReleaseInput, + UpdatePlatformSiteReleaseInput, + PlatformSiteReleasePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformSiteReleaseModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformSiteReleases: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformSiteRelease', + 'platformSiteReleases', + 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, + }, + 'PlatformSiteReleaseFilter', + 'PlatformSiteReleaseOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformSiteRelease', + fieldName: 'platformSiteReleases', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformSiteRelease: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformSiteRelease', + 'platformSiteReleases', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformSiteReleaseFilter', + 'PlatformSiteReleaseOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformSiteRelease', + fieldName: 'platformSiteRelease', + document, + variables, + transform: (data: { + platformSiteReleases?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformSiteRelease: data.platformSiteReleases?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformSiteRelease: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformSiteRelease', + 'platformSiteReleases', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformSiteReleaseFilter', + 'PlatformSiteReleaseOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformSiteRelease', + fieldName: 'platformSiteRelease', + document, + variables, + transform: (data: { + platformSiteReleases?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformSiteRelease: data.platformSiteReleases?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformSiteRelease: { + platformSiteRelease: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformSiteRelease', + 'createPlatformSiteRelease', + 'platformSiteRelease', + args.select, + args.data, + 'CreatePlatformSiteReleaseInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformSiteRelease', + fieldName: 'createPlatformSiteRelease', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformSiteReleasePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformSiteRelease: { + platformSiteRelease: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformSiteRelease', + 'updatePlatformSiteRelease', + 'platformSiteRelease', + args.select, + args.where.id, + args.data, + 'UpdatePlatformSiteReleaseInput', + 'id', + 'platformSiteReleasePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformSiteRelease', + fieldName: 'updatePlatformSiteRelease', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformSiteRelease: { + platformSiteRelease: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformSiteRelease', + 'deletePlatformSiteRelease', + 'platformSiteRelease', + { + id: args.where.id, + }, + 'DeletePlatformSiteReleaseInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformSiteRelease', + fieldName: 'deletePlatformSiteRelease', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/api/orm/models/redirect.ts b/sdk/constructive-cli/src/api/orm/models/redirect.ts new file mode 100644 index 0000000000..87cfd5f9c5 --- /dev/null +++ b/sdk/constructive-cli/src/api/orm/models/redirect.ts @@ -0,0 +1,245 @@ +/** + * Redirect 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 { + Redirect, + RedirectWithRelations, + RedirectSelect, + RedirectFilter, + RedirectOrderBy, + CreateRedirectInput, + UpdateRedirectInput, + RedirectPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class RedirectModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + redirects: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'Redirect', + 'redirects', + 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, + }, + 'RedirectFilter', + 'RedirectOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Redirect', + fieldName: 'redirects', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + redirect: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'Redirect', + 'redirects', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'RedirectFilter', + 'RedirectOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Redirect', + fieldName: 'redirect', + document, + variables, + transform: (data: { + redirects?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + redirect: data.redirects?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + redirect: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'Redirect', + 'redirects', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'RedirectFilter', + 'RedirectOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Redirect', + fieldName: 'redirect', + document, + variables, + transform: (data: { + redirects?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + redirect: data.redirects?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createRedirect: { + redirect: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'Redirect', + 'createRedirect', + 'redirect', + args.select, + args.data, + 'CreateRedirectInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Redirect', + fieldName: 'createRedirect', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + RedirectPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateRedirect: { + redirect: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'Redirect', + 'updateRedirect', + 'redirect', + args.select, + args.where.id, + args.data, + 'UpdateRedirectInput', + 'id', + 'redirectPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Redirect', + fieldName: 'updateRedirect', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteRedirect: { + redirect: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'Redirect', + 'deleteRedirect', + 'redirect', + { + id: args.where.id, + }, + 'DeleteRedirectInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Redirect', + fieldName: 'deleteRedirect', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/api/orm/models/siteRelease.ts b/sdk/constructive-cli/src/api/orm/models/siteRelease.ts new file mode 100644 index 0000000000..25953aa204 --- /dev/null +++ b/sdk/constructive-cli/src/api/orm/models/siteRelease.ts @@ -0,0 +1,245 @@ +/** + * SiteRelease 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 { + SiteRelease, + SiteReleaseWithRelations, + SiteReleaseSelect, + SiteReleaseFilter, + SiteReleaseOrderBy, + CreateSiteReleaseInput, + UpdateSiteReleaseInput, + SiteReleasePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class SiteReleaseModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + siteReleases: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'SiteRelease', + 'siteReleases', + 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, + }, + 'SiteReleaseFilter', + 'SiteReleaseOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'SiteRelease', + fieldName: 'siteReleases', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + siteRelease: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'SiteRelease', + 'siteReleases', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'SiteReleaseFilter', + 'SiteReleaseOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'SiteRelease', + fieldName: 'siteRelease', + document, + variables, + transform: (data: { + siteReleases?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + siteRelease: data.siteReleases?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + siteRelease: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'SiteRelease', + 'siteReleases', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'SiteReleaseFilter', + 'SiteReleaseOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'SiteRelease', + fieldName: 'siteRelease', + document, + variables, + transform: (data: { + siteReleases?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + siteRelease: data.siteReleases?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createSiteRelease: { + siteRelease: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'SiteRelease', + 'createSiteRelease', + 'siteRelease', + args.select, + args.data, + 'CreateSiteReleaseInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'SiteRelease', + fieldName: 'createSiteRelease', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + SiteReleasePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateSiteRelease: { + siteRelease: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'SiteRelease', + 'updateSiteRelease', + 'siteRelease', + args.select, + args.where.id, + args.data, + 'UpdateSiteReleaseInput', + 'id', + 'siteReleasePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'SiteRelease', + fieldName: 'updateSiteRelease', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteSiteRelease: { + siteRelease: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'SiteRelease', + 'deleteSiteRelease', + 'siteRelease', + { + id: args.where.id, + }, + 'DeleteSiteReleaseInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'SiteRelease', + fieldName: 'deleteSiteRelease', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/api/orm/mutation/index.ts b/sdk/constructive-cli/src/api/orm/mutation/index.ts index 2629f518b2..94888543cf 100644 --- a/sdk/constructive-cli/src/api/orm/mutation/index.ts +++ b/sdk/constructive-cli/src/api/orm/mutation/index.ts @@ -10,35 +10,83 @@ import type { AcceptDatabaseTransferInput, ApplyRlsInput, CancelDatabaseTransferInput, + DeleteSitePreviewInput, DomainsAssignSubdomainInput, + MintSitePreviewTokenInput, + PagesInstallPagesInput, + PlatformDeleteSitePreviewInput, PlatformDomainsAssignSubdomainInput, + PlatformMintSitePreviewTokenInput, + PlatformPagesInstallPagesInput, + PlatformProvisionSitePreviewInput, + PlatformSetSitePreviewInput, + PlatformSiteMetadataInstallRobotsInput, + PlatformSitesInstallContentPresetInput, + PlatformSitesInstallMantraInput, PlatformSitesProvisionStaticSiteInput, ProvisionBucketInput, + ProvisionSitePreviewInput, RejectDatabaseTransferInput, RequestDatabaseInput, SetFieldOrderInput, + SetSitePreviewInput, + SiteMetadataInstallRobotsInput, + SitesInstallContentPresetInput, + SitesInstallMantraInput, SitesProvisionStaticSiteInput, AcceptDatabaseTransferPayload, ApplyRlsPayload, CancelDatabaseTransferPayload, + DeleteSitePreviewPayload, DomainsAssignSubdomainPayload, + MintSitePreviewTokenPayload, + PagesInstallPagesPayload, + PlatformDeleteSitePreviewPayload, PlatformDomainsAssignSubdomainPayload, + PlatformMintSitePreviewTokenPayload, + PlatformPagesInstallPagesPayload, + PlatformProvisionSitePreviewPayload, + PlatformSetSitePreviewPayload, + PlatformSiteMetadataInstallRobotsPayload, + PlatformSitesInstallContentPresetPayload, + PlatformSitesInstallMantraPayload, PlatformSitesProvisionStaticSitePayload, ProvisionBucketPayload, + ProvisionSitePreviewPayload, RejectDatabaseTransferPayload, RequestDatabasePayload, SetFieldOrderPayload, + SetSitePreviewPayload, + SiteMetadataInstallRobotsPayload, + SitesInstallContentPresetPayload, + SitesInstallMantraPayload, SitesProvisionStaticSitePayload, AcceptDatabaseTransferPayloadSelect, ApplyRlsPayloadSelect, CancelDatabaseTransferPayloadSelect, + DeleteSitePreviewPayloadSelect, DomainsAssignSubdomainPayloadSelect, + MintSitePreviewTokenPayloadSelect, + PagesInstallPagesPayloadSelect, + PlatformDeleteSitePreviewPayloadSelect, PlatformDomainsAssignSubdomainPayloadSelect, + PlatformMintSitePreviewTokenPayloadSelect, + PlatformPagesInstallPagesPayloadSelect, + PlatformProvisionSitePreviewPayloadSelect, + PlatformSetSitePreviewPayloadSelect, + PlatformSiteMetadataInstallRobotsPayloadSelect, + PlatformSitesInstallContentPresetPayloadSelect, + PlatformSitesInstallMantraPayloadSelect, PlatformSitesProvisionStaticSitePayloadSelect, ProvisionBucketPayloadSelect, + ProvisionSitePreviewPayloadSelect, RejectDatabaseTransferPayloadSelect, RequestDatabasePayloadSelect, SetFieldOrderPayloadSelect, + SetSitePreviewPayloadSelect, + SiteMetadataInstallRobotsPayloadSelect, + SitesInstallContentPresetPayloadSelect, + SitesInstallMantraPayloadSelect, SitesProvisionStaticSitePayloadSelect, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; @@ -51,25 +99,62 @@ export interface ApplyRlsVariables { export interface CancelDatabaseTransferVariables { input: CancelDatabaseTransferInput; } +export interface DeleteSitePreviewVariables { + input: DeleteSitePreviewInput; +} export interface DomainsAssignSubdomainVariables { input: DomainsAssignSubdomainInput; } +export interface MintSitePreviewTokenVariables { + input: MintSitePreviewTokenInput; +} +export interface PagesInstallPagesVariables { + input: PagesInstallPagesInput; +} +export interface PlatformDeleteSitePreviewVariables { + input: PlatformDeleteSitePreviewInput; +} export interface PlatformDomainsAssignSubdomainVariables { input: PlatformDomainsAssignSubdomainInput; } +export interface PlatformMintSitePreviewTokenVariables { + input: PlatformMintSitePreviewTokenInput; +} +export interface PlatformPagesInstallPagesVariables { + input: PlatformPagesInstallPagesInput; +} +export interface PlatformProvisionSitePreviewVariables { + input: PlatformProvisionSitePreviewInput; +} +export interface PlatformSetSitePreviewVariables { + input: PlatformSetSitePreviewInput; +} +export interface PlatformSiteMetadataInstallRobotsVariables { + input: PlatformSiteMetadataInstallRobotsInput; +} +export interface PlatformSitesInstallContentPresetVariables { + input: PlatformSitesInstallContentPresetInput; +} +export interface PlatformSitesInstallMantraVariables { + input: PlatformSitesInstallMantraInput; +} export interface PlatformSitesProvisionStaticSiteVariables { input: PlatformSitesProvisionStaticSiteInput; } /** * Variables for provisionBucket - * 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. + * Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. */ export interface ProvisionBucketVariables { input: ProvisionBucketInput; } +export interface ProvisionSitePreviewVariables { + input: ProvisionSitePreviewInput; +} export interface RejectDatabaseTransferVariables { input: RejectDatabaseTransferInput; } @@ -77,11 +162,12 @@ export interface RejectDatabaseTransferVariables { * Variables for requestDatabase * 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. +Pass exactly one of preset_slug or modules. Pass organization_id to have the organization own the database from the start (the caller must be an owner of that organization); the requesting user is still the identity bootstrapped into the new database. Omit it for a personal database. 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); + SELECT * FROM metaschema_public.request_database('team_app', 'example.com', preset_slug := 'full', organization_id := '00000000-0000-0000-0000-000000000000'::uuid); */ export interface RequestDatabaseVariables { input: RequestDatabaseInput; @@ -89,6 +175,18 @@ export interface RequestDatabaseVariables { export interface SetFieldOrderVariables { input: SetFieldOrderInput; } +export interface SetSitePreviewVariables { + input: SetSitePreviewInput; +} +export interface SiteMetadataInstallRobotsVariables { + input: SiteMetadataInstallRobotsInput; +} +export interface SitesInstallContentPresetVariables { + input: SitesInstallContentPresetInput; +} +export interface SitesInstallMantraVariables { + input: SitesInstallMantraInput; +} export interface SitesProvisionStaticSiteVariables { input: SitesProvisionStaticSiteInput; } @@ -181,6 +279,35 @@ export function createMutationOperations(client: OrmClient) { 'CancelDatabaseTransferPayload' ), }), + deleteSitePreview: ( + args: DeleteSitePreviewVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + deleteSitePreview: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'DeleteSitePreview', + fieldName: 'deleteSitePreview', + ...buildCustomDocument( + 'mutation', + 'DeleteSitePreview', + 'deleteSitePreview', + options.select, + args, + [ + { + name: 'input', + type: 'DeleteSitePreviewInput!', + }, + ], + connectionFieldsMap, + 'DeleteSitePreviewPayload' + ), + }), domainsAssignSubdomain: ( args: DomainsAssignSubdomainVariables, options: { @@ -210,6 +337,93 @@ export function createMutationOperations(client: OrmClient) { 'DomainsAssignSubdomainPayload' ), }), + mintSitePreviewToken: ( + args: MintSitePreviewTokenVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + mintSitePreviewToken: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'MintSitePreviewToken', + fieldName: 'mintSitePreviewToken', + ...buildCustomDocument( + 'mutation', + 'MintSitePreviewToken', + 'mintSitePreviewToken', + options.select, + args, + [ + { + name: 'input', + type: 'MintSitePreviewTokenInput!', + }, + ], + connectionFieldsMap, + 'MintSitePreviewTokenPayload' + ), + }), + pagesInstallPages: ( + args: PagesInstallPagesVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + pagesInstallPages: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'PagesInstallPages', + fieldName: 'pagesInstallPages', + ...buildCustomDocument( + 'mutation', + 'PagesInstallPages', + 'pagesInstallPages', + options.select, + args, + [ + { + name: 'input', + type: 'PagesInstallPagesInput!', + }, + ], + connectionFieldsMap, + 'PagesInstallPagesPayload' + ), + }), + platformDeleteSitePreview: ( + args: PlatformDeleteSitePreviewVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + platformDeleteSitePreview: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'PlatformDeleteSitePreview', + fieldName: 'platformDeleteSitePreview', + ...buildCustomDocument( + 'mutation', + 'PlatformDeleteSitePreview', + 'platformDeleteSitePreview', + options.select, + args, + [ + { + name: 'input', + type: 'PlatformDeleteSitePreviewInput!', + }, + ], + connectionFieldsMap, + 'PlatformDeleteSitePreviewPayload' + ), + }), platformDomainsAssignSubdomain: ( args: PlatformDomainsAssignSubdomainVariables, options: { @@ -242,6 +456,221 @@ export function createMutationOperations(client: OrmClient) { 'PlatformDomainsAssignSubdomainPayload' ), }), + platformMintSitePreviewToken: ( + args: PlatformMintSitePreviewTokenVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + platformMintSitePreviewToken: InferSelectResult< + PlatformMintSitePreviewTokenPayload, + S + > | null; + }>({ + client, + operation: 'mutation', + operationName: 'PlatformMintSitePreviewToken', + fieldName: 'platformMintSitePreviewToken', + ...buildCustomDocument( + 'mutation', + 'PlatformMintSitePreviewToken', + 'platformMintSitePreviewToken', + options.select, + args, + [ + { + name: 'input', + type: 'PlatformMintSitePreviewTokenInput!', + }, + ], + connectionFieldsMap, + 'PlatformMintSitePreviewTokenPayload' + ), + }), + platformPagesInstallPages: ( + args: PlatformPagesInstallPagesVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + platformPagesInstallPages: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'PlatformPagesInstallPages', + fieldName: 'platformPagesInstallPages', + ...buildCustomDocument( + 'mutation', + 'PlatformPagesInstallPages', + 'platformPagesInstallPages', + options.select, + args, + [ + { + name: 'input', + type: 'PlatformPagesInstallPagesInput!', + }, + ], + connectionFieldsMap, + 'PlatformPagesInstallPagesPayload' + ), + }), + platformProvisionSitePreview: ( + args: PlatformProvisionSitePreviewVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + platformProvisionSitePreview: InferSelectResult< + PlatformProvisionSitePreviewPayload, + S + > | null; + }>({ + client, + operation: 'mutation', + operationName: 'PlatformProvisionSitePreview', + fieldName: 'platformProvisionSitePreview', + ...buildCustomDocument( + 'mutation', + 'PlatformProvisionSitePreview', + 'platformProvisionSitePreview', + options.select, + args, + [ + { + name: 'input', + type: 'PlatformProvisionSitePreviewInput!', + }, + ], + connectionFieldsMap, + 'PlatformProvisionSitePreviewPayload' + ), + }), + platformSetSitePreview: ( + args: PlatformSetSitePreviewVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + platformSetSitePreview: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'PlatformSetSitePreview', + fieldName: 'platformSetSitePreview', + ...buildCustomDocument( + 'mutation', + 'PlatformSetSitePreview', + 'platformSetSitePreview', + options.select, + args, + [ + { + name: 'input', + type: 'PlatformSetSitePreviewInput!', + }, + ], + connectionFieldsMap, + 'PlatformSetSitePreviewPayload' + ), + }), + platformSiteMetadataInstallRobots: ( + args: PlatformSiteMetadataInstallRobotsVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + platformSiteMetadataInstallRobots: InferSelectResult< + PlatformSiteMetadataInstallRobotsPayload, + S + > | null; + }>({ + client, + operation: 'mutation', + operationName: 'PlatformSiteMetadataInstallRobots', + fieldName: 'platformSiteMetadataInstallRobots', + ...buildCustomDocument( + 'mutation', + 'PlatformSiteMetadataInstallRobots', + 'platformSiteMetadataInstallRobots', + options.select, + args, + [ + { + name: 'input', + type: 'PlatformSiteMetadataInstallRobotsInput!', + }, + ], + connectionFieldsMap, + 'PlatformSiteMetadataInstallRobotsPayload' + ), + }), + platformSitesInstallContentPreset: ( + args: PlatformSitesInstallContentPresetVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + platformSitesInstallContentPreset: InferSelectResult< + PlatformSitesInstallContentPresetPayload, + S + > | null; + }>({ + client, + operation: 'mutation', + operationName: 'PlatformSitesInstallContentPreset', + fieldName: 'platformSitesInstallContentPreset', + ...buildCustomDocument( + 'mutation', + 'PlatformSitesInstallContentPreset', + 'platformSitesInstallContentPreset', + options.select, + args, + [ + { + name: 'input', + type: 'PlatformSitesInstallContentPresetInput!', + }, + ], + connectionFieldsMap, + 'PlatformSitesInstallContentPresetPayload' + ), + }), + platformSitesInstallMantra: ( + args: PlatformSitesInstallMantraVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + platformSitesInstallMantra: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'PlatformSitesInstallMantra', + fieldName: 'platformSitesInstallMantra', + ...buildCustomDocument( + 'mutation', + 'PlatformSitesInstallMantra', + 'platformSitesInstallMantra', + options.select, + args, + [ + { + name: 'input', + type: 'PlatformSitesInstallMantraInput!', + }, + ], + connectionFieldsMap, + 'PlatformSitesInstallMantraPayload' + ), + }), platformSitesProvisionStaticSite: ( args: PlatformSitesProvisionStaticSiteVariables, options: { @@ -303,6 +732,35 @@ export function createMutationOperations(client: OrmClient) { 'ProvisionBucketPayload' ), }), + provisionSitePreview: ( + args: ProvisionSitePreviewVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + provisionSitePreview: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'ProvisionSitePreview', + fieldName: 'provisionSitePreview', + ...buildCustomDocument( + 'mutation', + 'ProvisionSitePreview', + 'provisionSitePreview', + options.select, + args, + [ + { + name: 'input', + type: 'ProvisionSitePreviewInput!', + }, + ], + connectionFieldsMap, + 'ProvisionSitePreviewPayload' + ), + }), rejectDatabaseTransfer: ( args: RejectDatabaseTransferVariables, options: { @@ -390,6 +848,122 @@ export function createMutationOperations(client: OrmClient) { 'SetFieldOrderPayload' ), }), + setSitePreview: ( + args: SetSitePreviewVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + setSitePreview: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SetSitePreview', + fieldName: 'setSitePreview', + ...buildCustomDocument( + 'mutation', + 'SetSitePreview', + 'setSitePreview', + options.select, + args, + [ + { + name: 'input', + type: 'SetSitePreviewInput!', + }, + ], + connectionFieldsMap, + 'SetSitePreviewPayload' + ), + }), + siteMetadataInstallRobots: ( + args: SiteMetadataInstallRobotsVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + siteMetadataInstallRobots: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SiteMetadataInstallRobots', + fieldName: 'siteMetadataInstallRobots', + ...buildCustomDocument( + 'mutation', + 'SiteMetadataInstallRobots', + 'siteMetadataInstallRobots', + options.select, + args, + [ + { + name: 'input', + type: 'SiteMetadataInstallRobotsInput!', + }, + ], + connectionFieldsMap, + 'SiteMetadataInstallRobotsPayload' + ), + }), + sitesInstallContentPreset: ( + args: SitesInstallContentPresetVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + sitesInstallContentPreset: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SitesInstallContentPreset', + fieldName: 'sitesInstallContentPreset', + ...buildCustomDocument( + 'mutation', + 'SitesInstallContentPreset', + 'sitesInstallContentPreset', + options.select, + args, + [ + { + name: 'input', + type: 'SitesInstallContentPresetInput!', + }, + ], + connectionFieldsMap, + 'SitesInstallContentPresetPayload' + ), + }), + sitesInstallMantra: ( + args: SitesInstallMantraVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + sitesInstallMantra: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SitesInstallMantra', + fieldName: 'sitesInstallMantra', + ...buildCustomDocument( + 'mutation', + 'SitesInstallMantra', + 'sitesInstallMantra', + options.select, + args, + [ + { + name: 'input', + type: 'SitesInstallMantraInput!', + }, + ], + connectionFieldsMap, + 'SitesInstallMantraPayload' + ), + }), sitesProvisionStaticSite: ( args: SitesProvisionStaticSiteVariables, options: { diff --git a/sdk/constructive-cli/src/api/orm/query/index.ts b/sdk/constructive-cli/src/api/orm/query/index.ts index 1d38cd7001..0c2a655e71 100644 --- a/sdk/constructive-cli/src/api/orm/query/index.ts +++ b/sdk/constructive-cli/src/api/orm/query/index.ts @@ -6,12 +6,7 @@ import { OrmClient } from '../client'; import { QueryBuilder, buildCustomDocument } from '../query-builder'; import type { InferSelectResult, StrictSelect } from '../select-types'; -import type { - ResolveHttpRouteRecord, - ResolveRouteRecord, - ResolveHttpRouteRecordSelect, - ResolveRouteRecordSelect, -} from '../input-types'; +import type { ResolveRouteRecord, ResolveRouteRecordSelect } from '../input-types'; import { connectionFieldsMap } from '../input-types'; export interface ApiSchemaNamesVariables { targetApiId?: string; @@ -20,14 +15,44 @@ export interface ApplyRegistryDefaultsVariables { data?: unknown; nodeType?: string; } -export interface ResolveDeepLinkVariables { +export interface GetSitePreviewCommitVariables { + targetName?: string; + targetSiteId?: string; +} +export interface GetSiteReleaseManifestVariables { + targetCommitId?: string; + targetSiteId?: string; +} +export interface PagePublishedVariables { + pageSlug?: string; + targetSiteId?: string; +} +export interface PlatformGetSitePreviewCommitVariables { + targetName?: string; + targetSiteId?: string; +} +export interface PlatformGetSiteReleaseManifestVariables { + targetCommitId?: string; + targetSiteId?: string; +} +export interface PlatformPagePublishedVariables { + pageSlug?: string; + targetSiteId?: string; +} +export interface PlatformSitesDeepLinkUrlVariables { linkSlug?: string; targetSiteId?: string; } -export interface ResolveHttpRouteVariables { - requestHost?: string; - requestMethod?: string; - requestPath?: string; +export interface PlatformSitesSiteOriginVariables { + targetSiteId?: string; +} +export interface PlatformVerifySitePreviewTokenVariables { + siteId?: string; + token?: string; +} +export interface ResolveDeepLinkVariables { + linkSlug?: string; + targetSiteId?: string; } export interface ResolveRouteVariables { requestHost?: string; @@ -37,6 +62,17 @@ export interface ResolveRouteVariables { export interface ResolveSiteAppLinksVariables { targetSiteId?: string; } +export interface SitesDeepLinkUrlVariables { + linkSlug?: string; + targetSiteId?: string; +} +export interface SitesSiteOriginVariables { + targetSiteId?: string; +} +export interface VerifySitePreviewTokenVariables { + siteId?: string; + token?: string; +} export function createQueryOperations(client: OrmClient) { return { apiSchemaNames: ( @@ -101,28 +137,28 @@ export function createQueryOperations(client: OrmClient) { undefined ), }), - resolveDeepLink: ( - args: ResolveDeepLinkVariables, + getSitePreviewCommit: ( + args: GetSitePreviewCommitVariables, options?: { select?: Record; } ) => new QueryBuilder<{ - resolveDeepLink: unknown | null; + getSitePreviewCommit: string | null; }>({ client, operation: 'query', - operationName: 'ResolveDeepLink', - fieldName: 'resolveDeepLink', + operationName: 'GetSitePreviewCommit', + fieldName: 'getSitePreviewCommit', ...buildCustomDocument( 'query', - 'ResolveDeepLink', - 'resolveDeepLink', + 'GetSitePreviewCommit', + 'getSitePreviewCommit', options?.select, args, [ { - name: 'linkSlug', + name: 'targetName', type: 'String', }, { @@ -134,41 +170,297 @@ export function createQueryOperations(client: OrmClient) { undefined ), }), - resolveHttpRoute: ( - args: ResolveHttpRouteVariables, - options: { - select: S; - } & StrictSelect + getSiteReleaseManifest: ( + args: GetSiteReleaseManifestVariables, + options?: { + select?: Record; + } ) => new QueryBuilder<{ - resolveHttpRoute: InferSelectResult | null; + getSiteReleaseManifest: unknown | null; }>({ client, operation: 'query', - operationName: 'ResolveHttpRoute', - fieldName: 'resolveHttpRoute', + operationName: 'GetSiteReleaseManifest', + fieldName: 'getSiteReleaseManifest', ...buildCustomDocument( 'query', - 'ResolveHttpRoute', - 'resolveHttpRoute', - options.select, + 'GetSiteReleaseManifest', + 'getSiteReleaseManifest', + options?.select, args, [ { - name: 'requestHost', + name: 'targetCommitId', + type: 'UUID', + }, + { + name: 'targetSiteId', + type: 'UUID', + }, + ], + connectionFieldsMap, + undefined + ), + }), + pagePublished: ( + args: PagePublishedVariables, + options?: { + select?: Record; + } + ) => + new QueryBuilder<{ + pagePublished: unknown | null; + }>({ + client, + operation: 'query', + operationName: 'PagePublished', + fieldName: 'pagePublished', + ...buildCustomDocument( + 'query', + 'PagePublished', + 'pagePublished', + options?.select, + args, + [ + { + name: 'pageSlug', type: 'String', }, { - name: 'requestMethod', + name: 'targetSiteId', + type: 'UUID', + }, + ], + connectionFieldsMap, + undefined + ), + }), + platformGetSitePreviewCommit: ( + args: PlatformGetSitePreviewCommitVariables, + options?: { + select?: Record; + } + ) => + new QueryBuilder<{ + platformGetSitePreviewCommit: string | null; + }>({ + client, + operation: 'query', + operationName: 'PlatformGetSitePreviewCommit', + fieldName: 'platformGetSitePreviewCommit', + ...buildCustomDocument( + 'query', + 'PlatformGetSitePreviewCommit', + 'platformGetSitePreviewCommit', + options?.select, + args, + [ + { + name: 'targetName', type: 'String', }, { - name: 'requestPath', + name: 'targetSiteId', + type: 'UUID', + }, + ], + connectionFieldsMap, + undefined + ), + }), + platformGetSiteReleaseManifest: ( + args: PlatformGetSiteReleaseManifestVariables, + options?: { + select?: Record; + } + ) => + new QueryBuilder<{ + platformGetSiteReleaseManifest: unknown | null; + }>({ + client, + operation: 'query', + operationName: 'PlatformGetSiteReleaseManifest', + fieldName: 'platformGetSiteReleaseManifest', + ...buildCustomDocument( + 'query', + 'PlatformGetSiteReleaseManifest', + 'platformGetSiteReleaseManifest', + options?.select, + args, + [ + { + name: 'targetCommitId', + type: 'UUID', + }, + { + name: 'targetSiteId', + type: 'UUID', + }, + ], + connectionFieldsMap, + undefined + ), + }), + platformPagePublished: ( + args: PlatformPagePublishedVariables, + options?: { + select?: Record; + } + ) => + new QueryBuilder<{ + platformPagePublished: unknown | null; + }>({ + client, + operation: 'query', + operationName: 'PlatformPagePublished', + fieldName: 'platformPagePublished', + ...buildCustomDocument( + 'query', + 'PlatformPagePublished', + 'platformPagePublished', + options?.select, + args, + [ + { + name: 'pageSlug', + type: 'String', + }, + { + name: 'targetSiteId', + type: 'UUID', + }, + ], + connectionFieldsMap, + undefined + ), + }), + platformSitesDeepLinkUrl: ( + args: PlatformSitesDeepLinkUrlVariables, + options?: { + select?: Record; + } + ) => + new QueryBuilder<{ + platformSitesDeepLinkUrl: string | null; + }>({ + client, + operation: 'query', + operationName: 'PlatformSitesDeepLinkUrl', + fieldName: 'platformSitesDeepLinkUrl', + ...buildCustomDocument( + 'query', + 'PlatformSitesDeepLinkUrl', + 'platformSitesDeepLinkUrl', + options?.select, + args, + [ + { + name: 'linkSlug', type: 'String', }, + { + name: 'targetSiteId', + type: 'UUID', + }, ], connectionFieldsMap, - 'ResolveHttpRouteRecord' + undefined + ), + }), + platformSitesSiteOrigin: ( + args: PlatformSitesSiteOriginVariables, + options?: { + select?: Record; + } + ) => + new QueryBuilder<{ + platformSitesSiteOrigin: string | null; + }>({ + client, + operation: 'query', + operationName: 'PlatformSitesSiteOrigin', + fieldName: 'platformSitesSiteOrigin', + ...buildCustomDocument( + 'query', + 'PlatformSitesSiteOrigin', + 'platformSitesSiteOrigin', + options?.select, + args, + [ + { + name: 'targetSiteId', + type: 'UUID', + }, + ], + connectionFieldsMap, + undefined + ), + }), + platformVerifySitePreviewToken: ( + args: PlatformVerifySitePreviewTokenVariables, + options?: { + select?: Record; + } + ) => + new QueryBuilder<{ + platformVerifySitePreviewToken: string | null; + }>({ + client, + operation: 'query', + operationName: 'PlatformVerifySitePreviewToken', + fieldName: 'platformVerifySitePreviewToken', + ...buildCustomDocument( + 'query', + 'PlatformVerifySitePreviewToken', + 'platformVerifySitePreviewToken', + options?.select, + args, + [ + { + name: 'siteId', + type: 'UUID', + }, + { + name: 'token', + type: 'String', + }, + ], + connectionFieldsMap, + undefined + ), + }), + resolveDeepLink: ( + args: ResolveDeepLinkVariables, + options?: { + select?: Record; + } + ) => + new QueryBuilder<{ + resolveDeepLink: unknown | null; + }>({ + client, + operation: 'query', + operationName: 'ResolveDeepLink', + fieldName: 'resolveDeepLink', + ...buildCustomDocument( + 'query', + 'ResolveDeepLink', + 'resolveDeepLink', + options?.select, + args, + [ + { + name: 'linkSlug', + type: 'String', + }, + { + name: 'targetSiteId', + type: 'UUID', + }, + ], + connectionFieldsMap, + undefined ), }), resolveRoute: ( @@ -237,5 +529,100 @@ export function createQueryOperations(client: OrmClient) { undefined ), }), + sitesDeepLinkUrl: ( + args: SitesDeepLinkUrlVariables, + options?: { + select?: Record; + } + ) => + new QueryBuilder<{ + sitesDeepLinkUrl: string | null; + }>({ + client, + operation: 'query', + operationName: 'SitesDeepLinkUrl', + fieldName: 'sitesDeepLinkUrl', + ...buildCustomDocument( + 'query', + 'SitesDeepLinkUrl', + 'sitesDeepLinkUrl', + options?.select, + args, + [ + { + name: 'linkSlug', + type: 'String', + }, + { + name: 'targetSiteId', + type: 'UUID', + }, + ], + connectionFieldsMap, + undefined + ), + }), + sitesSiteOrigin: ( + args: SitesSiteOriginVariables, + options?: { + select?: Record; + } + ) => + new QueryBuilder<{ + sitesSiteOrigin: string | null; + }>({ + client, + operation: 'query', + operationName: 'SitesSiteOrigin', + fieldName: 'sitesSiteOrigin', + ...buildCustomDocument( + 'query', + 'SitesSiteOrigin', + 'sitesSiteOrigin', + options?.select, + args, + [ + { + name: 'targetSiteId', + type: 'UUID', + }, + ], + connectionFieldsMap, + undefined + ), + }), + verifySitePreviewToken: ( + args: VerifySitePreviewTokenVariables, + options?: { + select?: Record; + } + ) => + new QueryBuilder<{ + verifySitePreviewToken: string | null; + }>({ + client, + operation: 'query', + operationName: 'VerifySitePreviewToken', + fieldName: 'verifySitePreviewToken', + ...buildCustomDocument( + 'query', + 'VerifySitePreviewToken', + 'verifySitePreviewToken', + options?.select, + args, + [ + { + name: 'siteId', + type: 'UUID', + }, + { + name: 'token', + type: 'String', + }, + ], + connectionFieldsMap, + undefined + ), + }), }; } diff --git a/sdk/constructive-cli/src/auth/README.md b/sdk/constructive-cli/src/auth/README.md index 18f3c6520c..9775eb5648 100644 --- a/sdk/constructive-cli/src/auth/README.md +++ b/sdk/constructive-cli/src/auth/README.md @@ -8,9 +8,9 @@ ## Overview -- **Tables:** 13 -- **Custom queries:** 5 -- **Custom mutations:** 30 +- **Tables:** 15 +- **Custom queries:** 6 +- **Custom mutations:** 49 **Generators:** ORM, CLI diff --git a/sdk/constructive-cli/src/auth/cli/README.md b/sdk/constructive-cli/src/auth/cli/README.md index 9344a8d22d..192e1c0fdc 100644 --- a/sdk/constructive-cli/src/auth/cli/README.md +++ b/sdk/constructive-cli/src/auth/cli/README.md @@ -38,28 +38,46 @@ csdk auth set-token | `role-type` | roleType CRUD operations | | `user-connected-account` | userConnectedAccount CRUD operations | | `user` | user CRUD operations | +| `user-setting` | userSetting CRUD operations | +| `user-settings-security` | userSettingsSecurity CRUD operations | | `webauthn-credential` | webauthnCredential CRUD operations | | `current-ip-address` | currentIpAddress | | `current-user` | currentUser | | `current-user-agent` | currentUserAgent | | `current-user-id` | currentUserId | +| `get-mfa-status` | getMfaStatus | | `require-step-up` | requireStepUp | +| `approve-device` | approveDevice | | `check-password` | checkPassword | +| `complete-mfa-challenge` | completeMfaChallenge | | `confirm-delete-account` | confirmDeleteAccount | +| `confirm-totp-setup` | confirmTotpSetup | | `create-api-key` | createApiKey | +| `create-child-principal` | createChildPrincipal | | `create-org-api-key` | createOrgApiKey | | `create-org-principal` | createOrgPrincipal | +| `create-principal-from-preset` | createPrincipalFromPreset | | `delete-org-principal` | deleteOrgPrincipal | | `delete-principal` | deletePrincipal | +| `disable-email-mfa` | disableEmailMfa | +| `disable-sms-mfa` | disableSmsMfa | +| `disable-totp` | disableTotp | | `disconnect-account` | disconnectAccount | +| `enable-email-mfa` | enableEmailMfa | +| `enable-sms-mfa` | enableSmsMfa | +| `enable-totp` | enableTotp | | `extend-token-expires` | extendTokenExpires | | `forgot-password` | forgotPassword | +| `generate-backup-codes` | generateBackupCodes | | `link-identity` | linkIdentity | -| `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. | +| `mint-access-token` | mintAccessToken | +| `provision-bucket` | Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. | | `provision-new-user` | provisionNewUser | +| `refresh-access-token` | refreshAccessToken | | `request-cross-origin-token` | requestCrossOriginToken | | `reset-password` | resetPassword | | `revoke-api-key` | revokeApiKey | @@ -68,12 +86,17 @@ and lifecycle settings. | | `send-account-deletion-email` | sendAccountDeletionEmail | | `send-verification-email` | sendVerificationEmail | | `set-password` | setPassword | +| `set-principal-entities` | setPrincipalEntities | +| `set-principal-scope` | setPrincipalScope | | `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 | +| `update-principal` | updatePrincipal | | `verify-email` | verifyEmail | | `verify-password` | verifyPassword | | `verify-totp` | verifyTotp | @@ -138,6 +161,7 @@ CRUD operations for AuditLogAuth records. |-------|------| | `actorId` | UUID | | `createdAt` | Datetime | +| `details` | JSON | | `event` | String | | `id` | UUID | | `ipAddress` | InternetAddress | @@ -146,7 +170,7 @@ CRUD operations for AuditLogAuth records. | `userAgent` | String | **Required create fields:** `event`, `success` -**Optional create fields (backend defaults):** `actorId`, `ipAddress`, `origin`, `userAgent` +**Optional create fields (backend defaults):** `actorId`, `details`, `ipAddress`, `origin`, `userAgent` ### `crypto-address` @@ -311,15 +335,19 @@ CRUD operations for Principal records. |-------|------| | `bypassStepUp` | Boolean | | `createdAt` | Datetime | +| `createdBySessionId` | UUID | +| `depth` | Int | +| `expiresAt` | Datetime | | `id` | UUID | | `isReadOnly` | Boolean | | `name` | String | | `ownerId` | UUID | +| `parentPrincipalId` | UUID | | `updatedAt` | Datetime | | `useAdminOwner` | Boolean | | `userId` | UUID | -**Required create fields:** `bypassStepUp`, `id`, `isReadOnly`, `name`, `ownerId`, `useAdminOwner`, `userId` +**Required create fields:** `bypassStepUp`, `createdBySessionId`, `depth`, `expiresAt`, `id`, `isReadOnly`, `name`, `ownerId`, `parentPrincipalId`, `useAdminOwner`, `userId` ### `principal-entity` @@ -484,6 +512,60 @@ csdk user search "query" --limit 10 --select id,title,searchScore ``` +### `user-setting` + +CRUD operations for UserSetting records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all userSetting records | +| `find-first` | Find first matching userSetting record | +| `get` | Get a userSetting by id | +| `create` | Create a new userSetting | +| `update` | Update an existing userSetting | +| `delete` | Delete a userSetting | + +**Fields:** + +| Field | Type | +|-------|------| +| `createdAt` | Datetime | +| `id` | UUID | +| `ownerId` | UUID | +| `updatedAt` | Datetime | + +**Optional create fields (backend defaults):** `ownerId` + +### `user-settings-security` + +CRUD operations for UserSettingsSecurity records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all userSettingsSecurity records | +| `find-first` | Find first matching userSettingsSecurity record | +| `get` | Get a userSettingsSecurity by id | +| `create` | Create a new userSettingsSecurity | +| `update` | Update an existing userSettingsSecurity | +| `delete` | Delete a userSettingsSecurity | + +**Fields:** + +| Field | Type | +|-------|------| +| `backupCodesCount` | Int | +| `createdAt` | Datetime | +| `emailMfaEnabled` | Boolean | +| `id` | UUID | +| `mfaEnrolledAt` | Datetime | +| `mfaLastUsedAt` | Datetime | +| `ownerId` | UUID | +| `smsMfaEnabled` | Boolean | +| `totpEnabled` | Boolean | +| `updatedAt` | Datetime | + +**Optional create fields (backend defaults):** `backupCodesCount`, `emailMfaEnabled`, `mfaEnrolledAt`, `mfaLastUsedAt`, `ownerId`, `smsMfaEnabled`, `totpEnabled` + ### `webauthn-credential` CRUD operations for WebauthnCredential records. @@ -549,6 +631,13 @@ currentUserId - **Type:** query - **Arguments:** none +### `get-mfa-status` + +getMfaStatus + +- **Type:** query +- **Arguments:** none + ### `require-step-up` requireStepUp @@ -560,6 +649,18 @@ requireStepUp |----------|------| | `--stepUpType` | String | +### `approve-device` + +approveDevice + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.approvalToken` | String (required) | + | `--input.clientMutationId` | String | + ### `check-password` checkPassword @@ -572,6 +673,26 @@ checkPassword | `--input.clientMutationId` | String | | `--input.password` | String | +### `complete-mfa-challenge` + +completeMfaChallenge + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.authMethod` | String | + | `--input.clientMutationId` | String | + | `--input.credentialKind` | String | + | `--input.deviceToken` | String | + | `--input.mfaChallengeToken` | String | + | `--input.mfaMethod` | String | + | `--input.rememberMe` | Boolean | + | `--input.totpCode` | String | + | `--input.trustDevice` | Boolean | + | `--input.userId` | UUID | + ### `confirm-delete-account` confirmDeleteAccount @@ -585,6 +706,18 @@ confirmDeleteAccount | `--input.token` | String | | `--input.userId` | UUID | +### `confirm-totp-setup` + +confirmTotpSetup + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.totpValue` | String (required) | + ### `create-api-key` createApiKey @@ -601,6 +734,24 @@ createApiKey | `--input.mfaLevel` | String | | `--input.principalId` | UUID | +### `create-child-principal` + +createChildPrincipal + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.allowedMask` | BitString | + | `--input.clientMutationId` | String | + | `--input.entityIds` | UUID | + | `--input.expiresAt` | Datetime | + | `--input.intent` | String | + | `--input.isReadOnly` | Boolean | + | `--input.name` | String | + | `--input.parentPrincipalId` | UUID | + ### `create-org-api-key` createOrgApiKey @@ -634,6 +785,21 @@ createOrgPrincipal | `--input.orgId` | UUID | | `--input.useAdminOwner` | Boolean | +### `create-principal-from-preset` + +createPrincipalFromPreset + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.entityIds` | UUID | + | `--input.name` | String | + | `--input.overrides` | JSON | + | `--input.slug` | String | + ### `delete-org-principal` deleteOrgPrincipal @@ -658,6 +824,40 @@ deletePrincipal | `--input.clientMutationId` | String | | `--input.principalId` | UUID | +### `disable-email-mfa` + +disableEmailMfa + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + +### `disable-sms-mfa` + +disableSmsMfa + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + +### `disable-totp` + +disableTotp + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.totpValue` | String (required) | + ### `disconnect-account` disconnectAccount @@ -670,6 +870,39 @@ disconnectAccount | `--input.accountId` | UUID (required) | | `--input.clientMutationId` | String | +### `enable-email-mfa` + +enableEmailMfa + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + +### `enable-sms-mfa` + +enableSmsMfa + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + +### `enable-totp` + +enableTotp + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + ### `extend-token-expires` extendTokenExpires @@ -694,6 +927,17 @@ forgotPassword | `--input.clientMutationId` | String | | `--input.email` | Email | +### `generate-backup-codes` + +generateBackupCodes + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + ### `link-identity` linkIdentity @@ -708,12 +952,27 @@ linkIdentity | `--input.identifier` | String (required) | | `--input.service` | String (required) | +### `mint-access-token` + +mintAccessToken + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.accessTtl` | IntervalInput | + | `--input.clientMutationId` | String | + | `--input.intent` | String | + | `--input.principalId` | UUID | + ### `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. +Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. - **Type:** mutation - **Arguments:** @@ -736,6 +995,18 @@ provisionNewUser | `--input.email` | String | | `--input.password` | String | +### `refresh-access-token` + +refreshAccessToken + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.token` | String | + ### `request-cross-origin-token` requestCrossOriginToken @@ -838,6 +1109,36 @@ setPassword | `--input.currentPassword` | String | | `--input.newPassword` | String | +### `set-principal-entities` + +setPrincipalEntities + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.entityIds` | UUID | + | `--input.principalId` | UUID | + +### `set-principal-scope` + +setPrincipalScope + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.allowedMask` | BitString | + | `--input.clientMutationId` | String | + | `--input.isActive` | Boolean | + | `--input.isReadOnly` | Boolean | + | `--input.membershipType` | Int | + | `--input.principalId` | UUID | + | `--input.useAdminOwner` | Boolean | + ### `sign-in` signIn @@ -868,6 +1169,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 +1228,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 @@ -928,6 +1259,22 @@ signUpSms | `--input.phone` | String | | `--input.rememberMe` | Boolean | +### `update-principal` + +updatePrincipal + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.bypassStepUp` | Boolean | + | `--input.clientMutationId` | String | + | `--input.isReadOnly` | Boolean | + | `--input.name` | String | + | `--input.principalId` | UUID | + | `--input.useAdminOwner` | Boolean | + ### `verify-email` verifyEmail diff --git a/sdk/constructive-cli/src/auth/cli/commands.ts b/sdk/constructive-cli/src/auth/cli/commands.ts index dfbdf380c0..6aa5f274f2 100644 --- a/sdk/constructive-cli/src/auth/cli/commands.ts +++ b/sdk/constructive-cli/src/auth/cli/commands.ts @@ -18,25 +18,42 @@ import principalScopeOverrideCmd from './commands/principal-scope-override'; import roleTypeCmd from './commands/role-type'; import userConnectedAccountCmd from './commands/user-connected-account'; import userCmd from './commands/user'; +import userSettingCmd from './commands/user-setting'; +import userSettingsSecurityCmd from './commands/user-settings-security'; import webauthnCredentialCmd from './commands/webauthn-credential'; import currentIpAddressCmd from './commands/current-ip-address'; import currentUserCmd from './commands/current-user'; import currentUserAgentCmd from './commands/current-user-agent'; import currentUserIdCmd from './commands/current-user-id'; +import getMfaStatusCmd from './commands/get-mfa-status'; import requireStepUpCmd from './commands/require-step-up'; +import approveDeviceCmd from './commands/approve-device'; import checkPasswordCmd from './commands/check-password'; +import completeMfaChallengeCmd from './commands/complete-mfa-challenge'; import confirmDeleteAccountCmd from './commands/confirm-delete-account'; +import confirmTotpSetupCmd from './commands/confirm-totp-setup'; import createApiKeyCmd from './commands/create-api-key'; +import createChildPrincipalCmd from './commands/create-child-principal'; import createOrgApiKeyCmd from './commands/create-org-api-key'; import createOrgPrincipalCmd from './commands/create-org-principal'; +import createPrincipalFromPresetCmd from './commands/create-principal-from-preset'; import deleteOrgPrincipalCmd from './commands/delete-org-principal'; import deletePrincipalCmd from './commands/delete-principal'; +import disableEmailMfaCmd from './commands/disable-email-mfa'; +import disableSmsMfaCmd from './commands/disable-sms-mfa'; +import disableTotpCmd from './commands/disable-totp'; import disconnectAccountCmd from './commands/disconnect-account'; +import enableEmailMfaCmd from './commands/enable-email-mfa'; +import enableSmsMfaCmd from './commands/enable-sms-mfa'; +import enableTotpCmd from './commands/enable-totp'; import extendTokenExpiresCmd from './commands/extend-token-expires'; import forgotPasswordCmd from './commands/forgot-password'; +import generateBackupCodesCmd from './commands/generate-backup-codes'; import linkIdentityCmd from './commands/link-identity'; +import mintAccessTokenCmd from './commands/mint-access-token'; import provisionBucketCmd from './commands/provision-bucket'; import provisionNewUserCmd from './commands/provision-new-user'; +import refreshAccessTokenCmd from './commands/refresh-access-token'; import requestCrossOriginTokenCmd from './commands/request-cross-origin-token'; import resetPasswordCmd from './commands/reset-password'; import revokeApiKeyCmd from './commands/revoke-api-key'; @@ -45,12 +62,17 @@ import revokeSessionCmd from './commands/revoke-session'; import sendAccountDeletionEmailCmd from './commands/send-account-deletion-email'; import sendVerificationEmailCmd from './commands/send-verification-email'; import setPasswordCmd from './commands/set-password'; +import setPrincipalEntitiesCmd from './commands/set-principal-entities'; +import setPrincipalScopeCmd from './commands/set-principal-scope'; 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 updatePrincipalCmd from './commands/update-principal'; import verifyEmailCmd from './commands/verify-email'; import verifyPasswordCmd from './commands/verify-password'; import verifyTotpCmd from './commands/verify-totp'; @@ -76,25 +98,42 @@ const createCommandMap: () => Record< 'role-type': roleTypeCmd, 'user-connected-account': userConnectedAccountCmd, user: userCmd, + 'user-setting': userSettingCmd, + 'user-settings-security': userSettingsSecurityCmd, 'webauthn-credential': webauthnCredentialCmd, 'current-ip-address': currentIpAddressCmd, 'current-user': currentUserCmd, 'current-user-agent': currentUserAgentCmd, 'current-user-id': currentUserIdCmd, + 'get-mfa-status': getMfaStatusCmd, 'require-step-up': requireStepUpCmd, + 'approve-device': approveDeviceCmd, 'check-password': checkPasswordCmd, + 'complete-mfa-challenge': completeMfaChallengeCmd, 'confirm-delete-account': confirmDeleteAccountCmd, + 'confirm-totp-setup': confirmTotpSetupCmd, 'create-api-key': createApiKeyCmd, + 'create-child-principal': createChildPrincipalCmd, 'create-org-api-key': createOrgApiKeyCmd, 'create-org-principal': createOrgPrincipalCmd, + 'create-principal-from-preset': createPrincipalFromPresetCmd, 'delete-org-principal': deleteOrgPrincipalCmd, 'delete-principal': deletePrincipalCmd, + 'disable-email-mfa': disableEmailMfaCmd, + 'disable-sms-mfa': disableSmsMfaCmd, + 'disable-totp': disableTotpCmd, 'disconnect-account': disconnectAccountCmd, + 'enable-email-mfa': enableEmailMfaCmd, + 'enable-sms-mfa': enableSmsMfaCmd, + 'enable-totp': enableTotpCmd, 'extend-token-expires': extendTokenExpiresCmd, 'forgot-password': forgotPasswordCmd, + 'generate-backup-codes': generateBackupCodesCmd, 'link-identity': linkIdentityCmd, + 'mint-access-token': mintAccessTokenCmd, 'provision-bucket': provisionBucketCmd, 'provision-new-user': provisionNewUserCmd, + 'refresh-access-token': refreshAccessTokenCmd, 'request-cross-origin-token': requestCrossOriginTokenCmd, 'reset-password': resetPasswordCmd, 'revoke-api-key': revokeApiKeyCmd, @@ -103,18 +142,23 @@ const createCommandMap: () => Record< 'send-account-deletion-email': sendAccountDeletionEmailCmd, 'send-verification-email': sendVerificationEmailCmd, 'set-password': setPasswordCmd, + 'set-principal-entities': setPrincipalEntitiesCmd, + 'set-principal-scope': setPrincipalScopeCmd, '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, + 'update-principal': updatePrincipalCmd, '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 user-setting userSetting CRUD operations\n user-settings-security userSettingsSecurity 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 get-mfa-status getMfaStatus\n require-step-up requireStepUp\n approve-device approveDevice\n check-password checkPassword\n complete-mfa-challenge completeMfaChallenge\n confirm-delete-account confirmDeleteAccount\n confirm-totp-setup confirmTotpSetup\n create-api-key createApiKey\n create-child-principal createChildPrincipal\n create-org-api-key createOrgApiKey\n create-org-principal createOrgPrincipal\n create-principal-from-preset createPrincipalFromPreset\n delete-org-principal deleteOrgPrincipal\n delete-principal deletePrincipal\n disable-email-mfa disableEmailMfa\n disable-sms-mfa disableSmsMfa\n disable-totp disableTotp\n disconnect-account disconnectAccount\n enable-email-mfa enableEmailMfa\n enable-sms-mfa enableSmsMfa\n enable-totp enableTotp\n extend-token-expires extendTokenExpires\n forgot-password forgotPassword\n generate-backup-codes generateBackupCodes\n link-identity linkIdentity\n mint-access-token mintAccessToken\n provision-bucket Reconcile an S3 bucket for a logical bucket in the database.\nReads the bucket config via RLS, then enqueues the same\nstorage:provision_bucket job used by the INSERT trigger. This is\nidempotent for an already-reconciled bucket; enqueue failures become\nGraphQL errors.\n provision-new-user provisionNewUser\n refresh-access-token refreshAccessToken\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 set-principal-entities setPrincipalEntities\n set-principal-scope setPrincipalScope\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 update-principal updatePrincipal\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/approve-device.ts b/sdk/constructive-cli/src/auth/cli/commands/approve-device.ts new file mode 100644 index 0000000000..df2038db3b --- /dev/null +++ b/sdk/constructive-cli/src/auth/cli/commands/approve-device.ts @@ -0,0 +1,51 @@ +/** + * CLI command for mutation approveDevice + * @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 { ApproveDeviceVariables } from '../../orm/mutation'; +import type { ApproveDevicePayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log('approve-device - approveDevice\n\nUsage: approve-device [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 + .approveDevice( + parsedAnswers as unknown as ApproveDeviceVariables, + { + select: selectFields, + } as unknown as { + select: ApproveDevicePayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: approveDevice'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/auth/cli/commands/audit-log-auth.ts b/sdk/constructive-cli/src/auth/cli/commands/audit-log-auth.ts index 711a4522ae..1f074c1c7e 100644 --- a/sdk/constructive-cli/src/auth/cli/commands/audit-log-auth.ts +++ b/sdk/constructive-cli/src/auth/cli/commands/audit-log-auth.ts @@ -18,6 +18,7 @@ import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { actorId: 'uuid', createdAt: 'string', + details: 'json', event: 'string', id: 'uuid', ipAddress: 'string', @@ -78,6 +79,7 @@ async function handleList(argv: Partial>, _prompter: Inq const defaultSelect = { actorId: true, createdAt: true, + details: true, event: true, id: true, ipAddress: true, @@ -106,6 +108,7 @@ async function handleFindFirst(argv: Partial>, _prompter const defaultSelect = { actorId: true, createdAt: true, + details: true, event: true, id: true, ipAddress: true, @@ -146,6 +149,7 @@ async function handleGet(argv: Partial>, prompter: Inqui select: { actorId: true, createdAt: true, + details: true, event: true, id: true, ipAddress: true, @@ -174,6 +178,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'json', + name: 'details', + message: 'details', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'event', @@ -218,6 +229,7 @@ async function handleCreate(argv: Partial>, prompter: In .create({ data: { actorId: cleanedData.actorId, + details: cleanedData.details, event: cleanedData.event, ipAddress: cleanedData.ipAddress, origin: cleanedData.origin, @@ -227,6 +239,7 @@ async function handleCreate(argv: Partial>, prompter: In select: { actorId: true, createdAt: true, + details: true, event: true, id: true, ipAddress: true, @@ -267,6 +280,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'json', + name: 'details', + message: 'details', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'event', @@ -312,6 +332,7 @@ async function handleUpdate(argv: Partial>, prompter: In }, data: { actorId: cleanedData.actorId, + details: cleanedData.details, event: cleanedData.event, ipAddress: cleanedData.ipAddress, origin: cleanedData.origin, @@ -321,6 +342,7 @@ async function handleUpdate(argv: Partial>, prompter: In select: { actorId: true, createdAt: true, + details: true, event: true, id: true, ipAddress: true, diff --git a/sdk/constructive-cli/src/auth/cli/commands/complete-mfa-challenge.ts b/sdk/constructive-cli/src/auth/cli/commands/complete-mfa-challenge.ts new file mode 100644 index 0000000000..9ff2b87b9a --- /dev/null +++ b/sdk/constructive-cli/src/auth/cli/commands/complete-mfa-challenge.ts @@ -0,0 +1,53 @@ +/** + * CLI command for mutation completeMfaChallenge + * @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 { CompleteMfaChallengeVariables } from '../../orm/mutation'; +import type { CompleteMfaChallengePayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'complete-mfa-challenge - completeMfaChallenge\n\nUsage: complete-mfa-challenge [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 + .completeMfaChallenge( + parsedAnswers as unknown as CompleteMfaChallengeVariables, + { + select: selectFields, + } as unknown as { + select: CompleteMfaChallengePayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: completeMfaChallenge'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/auth/cli/commands/confirm-totp-setup.ts b/sdk/constructive-cli/src/auth/cli/commands/confirm-totp-setup.ts new file mode 100644 index 0000000000..00daef1784 --- /dev/null +++ b/sdk/constructive-cli/src/auth/cli/commands/confirm-totp-setup.ts @@ -0,0 +1,51 @@ +/** + * CLI command for mutation confirmTotpSetup + * @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 { ConfirmTotpSetupVariables } from '../../orm/mutation'; +import type { ConfirmTotpSetupPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log('confirm-totp-setup - confirmTotpSetup\n\nUsage: confirm-totp-setup [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 + .confirmTotpSetup( + parsedAnswers as unknown as ConfirmTotpSetupVariables, + { + select: selectFields, + } as unknown as { + select: ConfirmTotpSetupPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: confirmTotpSetup'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/auth/cli/commands/create-child-principal.ts b/sdk/constructive-cli/src/auth/cli/commands/create-child-principal.ts new file mode 100644 index 0000000000..69e40fb8b3 --- /dev/null +++ b/sdk/constructive-cli/src/auth/cli/commands/create-child-principal.ts @@ -0,0 +1,53 @@ +/** + * CLI command for mutation createChildPrincipal + * @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 { CreateChildPrincipalVariables } from '../../orm/mutation'; +import type { CreateChildPrincipalPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'create-child-principal - createChildPrincipal\n\nUsage: create-child-principal [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 + .createChildPrincipal( + parsedAnswers as unknown as CreateChildPrincipalVariables, + { + select: selectFields, + } as unknown as { + select: CreateChildPrincipalPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: createChildPrincipal'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/auth/cli/commands/create-principal-from-preset.ts b/sdk/constructive-cli/src/auth/cli/commands/create-principal-from-preset.ts new file mode 100644 index 0000000000..1b92774f46 --- /dev/null +++ b/sdk/constructive-cli/src/auth/cli/commands/create-principal-from-preset.ts @@ -0,0 +1,53 @@ +/** + * CLI command for mutation createPrincipalFromPreset + * @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 { CreatePrincipalFromPresetVariables } from '../../orm/mutation'; +import type { CreatePrincipalFromPresetPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'create-principal-from-preset - createPrincipalFromPreset\n\nUsage: create-principal-from-preset [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 + .createPrincipalFromPreset( + parsedAnswers as unknown as CreatePrincipalFromPresetVariables, + { + select: selectFields, + } as unknown as { + select: CreatePrincipalFromPresetPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: createPrincipalFromPreset'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/auth/cli/commands/disable-email-mfa.ts b/sdk/constructive-cli/src/auth/cli/commands/disable-email-mfa.ts new file mode 100644 index 0000000000..3d526ac154 --- /dev/null +++ b/sdk/constructive-cli/src/auth/cli/commands/disable-email-mfa.ts @@ -0,0 +1,51 @@ +/** + * CLI command for mutation disableEmailMfa + * @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 { DisableEmailMfaVariables } from '../../orm/mutation'; +import type { DisableEmailMfaPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log('disable-email-mfa - disableEmailMfa\n\nUsage: disable-email-mfa [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 + .disableEmailMfa( + parsedAnswers as unknown as DisableEmailMfaVariables, + { + select: selectFields, + } as unknown as { + select: DisableEmailMfaPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: disableEmailMfa'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/auth/cli/commands/disable-sms-mfa.ts b/sdk/constructive-cli/src/auth/cli/commands/disable-sms-mfa.ts new file mode 100644 index 0000000000..b27f558ac8 --- /dev/null +++ b/sdk/constructive-cli/src/auth/cli/commands/disable-sms-mfa.ts @@ -0,0 +1,51 @@ +/** + * CLI command for mutation disableSmsMfa + * @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 { DisableSmsMfaVariables } from '../../orm/mutation'; +import type { DisableSmsMfaPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log('disable-sms-mfa - disableSmsMfa\n\nUsage: disable-sms-mfa [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 + .disableSmsMfa( + parsedAnswers as unknown as DisableSmsMfaVariables, + { + select: selectFields, + } as unknown as { + select: DisableSmsMfaPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: disableSmsMfa'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/auth/cli/commands/disable-totp.ts b/sdk/constructive-cli/src/auth/cli/commands/disable-totp.ts new file mode 100644 index 0000000000..a33203ca20 --- /dev/null +++ b/sdk/constructive-cli/src/auth/cli/commands/disable-totp.ts @@ -0,0 +1,51 @@ +/** + * CLI command for mutation disableTotp + * @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 { DisableTotpVariables } from '../../orm/mutation'; +import type { DisableTotpPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log('disable-totp - disableTotp\n\nUsage: disable-totp [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 + .disableTotp( + parsedAnswers as unknown as DisableTotpVariables, + { + select: selectFields, + } as unknown as { + select: DisableTotpPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: disableTotp'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/auth/cli/commands/enable-email-mfa.ts b/sdk/constructive-cli/src/auth/cli/commands/enable-email-mfa.ts new file mode 100644 index 0000000000..891e86b030 --- /dev/null +++ b/sdk/constructive-cli/src/auth/cli/commands/enable-email-mfa.ts @@ -0,0 +1,51 @@ +/** + * CLI command for mutation enableEmailMfa + * @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 { EnableEmailMfaVariables } from '../../orm/mutation'; +import type { EnableEmailMfaPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log('enable-email-mfa - enableEmailMfa\n\nUsage: enable-email-mfa [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 + .enableEmailMfa( + parsedAnswers as unknown as EnableEmailMfaVariables, + { + select: selectFields, + } as unknown as { + select: EnableEmailMfaPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: enableEmailMfa'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/auth/cli/commands/enable-sms-mfa.ts b/sdk/constructive-cli/src/auth/cli/commands/enable-sms-mfa.ts new file mode 100644 index 0000000000..f0956eb41d --- /dev/null +++ b/sdk/constructive-cli/src/auth/cli/commands/enable-sms-mfa.ts @@ -0,0 +1,51 @@ +/** + * CLI command for mutation enableSmsMfa + * @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 { EnableSmsMfaVariables } from '../../orm/mutation'; +import type { EnableSmsMfaPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log('enable-sms-mfa - enableSmsMfa\n\nUsage: enable-sms-mfa [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 + .enableSmsMfa( + parsedAnswers as unknown as EnableSmsMfaVariables, + { + select: selectFields, + } as unknown as { + select: EnableSmsMfaPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: enableSmsMfa'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/auth/cli/commands/enable-totp.ts b/sdk/constructive-cli/src/auth/cli/commands/enable-totp.ts new file mode 100644 index 0000000000..ecf72076b9 --- /dev/null +++ b/sdk/constructive-cli/src/auth/cli/commands/enable-totp.ts @@ -0,0 +1,51 @@ +/** + * CLI command for mutation enableTotp + * @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 { EnableTotpVariables } from '../../orm/mutation'; +import type { EnableTotpPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log('enable-totp - enableTotp\n\nUsage: enable-totp [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 + .enableTotp( + parsedAnswers as unknown as EnableTotpVariables, + { + select: selectFields, + } as unknown as { + select: EnableTotpPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: enableTotp'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/auth/cli/commands/generate-backup-codes.ts b/sdk/constructive-cli/src/auth/cli/commands/generate-backup-codes.ts new file mode 100644 index 0000000000..718f473571 --- /dev/null +++ b/sdk/constructive-cli/src/auth/cli/commands/generate-backup-codes.ts @@ -0,0 +1,53 @@ +/** + * CLI command for mutation generateBackupCodes + * @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 { GenerateBackupCodesVariables } from '../../orm/mutation'; +import type { GenerateBackupCodesPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'generate-backup-codes - generateBackupCodes\n\nUsage: generate-backup-codes [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 + .generateBackupCodes( + parsedAnswers as unknown as GenerateBackupCodesVariables, + { + select: selectFields, + } as unknown as { + select: GenerateBackupCodesPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: generateBackupCodes'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/auth/cli/commands/get-mfa-status.ts b/sdk/constructive-cli/src/auth/cli/commands/get-mfa-status.ts new file mode 100644 index 0000000000..5bf569688f --- /dev/null +++ b/sdk/constructive-cli/src/auth/cli/commands/get-mfa-status.ts @@ -0,0 +1,37 @@ +/** + * CLI command for query getMfaStatus + * @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 { GetMfaStatusRecordSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log('get-mfa-status - getMfaStatus\n\nUsage: get-mfa-status [OPTIONS]\n'); + process.exit(0); + } + const client = getClient(); + const selectFields = buildSelectFromPaths((argv.select as string) ?? ''); + const result = await client.query + .getMfaStatus({ + select: selectFields, + } as unknown as { + select: GetMfaStatusRecordSelect; + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: getMfaStatus'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/auth/cli/commands/mint-access-token.ts b/sdk/constructive-cli/src/auth/cli/commands/mint-access-token.ts new file mode 100644 index 0000000000..ec953be892 --- /dev/null +++ b/sdk/constructive-cli/src/auth/cli/commands/mint-access-token.ts @@ -0,0 +1,51 @@ +/** + * CLI command for mutation mintAccessToken + * @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 { MintAccessTokenVariables } from '../../orm/mutation'; +import type { MintAccessTokenPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log('mint-access-token - mintAccessToken\n\nUsage: mint-access-token [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 + .mintAccessToken( + parsedAnswers as unknown as MintAccessTokenVariables, + { + select: selectFields, + } as unknown as { + select: MintAccessTokenPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: mintAccessToken'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/auth/cli/commands/principal-entity.ts b/sdk/constructive-cli/src/auth/cli/commands/principal-entity.ts index 92a03b1442..4a8ac9da18 100644 --- a/sdk/constructive-cli/src/auth/cli/commands/principal-entity.ts +++ b/sdk/constructive-cli/src/auth/cli/commands/principal-entity.ts @@ -24,7 +24,7 @@ const fieldSchema: FieldSchema = { updatedAt: 'string', }; const usage = - '\nprincipal-entity \n\nCommands:\n list List principalEntity records\n find-first Find first matching principalEntity record\n get Get a principalEntity by ID\n create Create a new principalEntity\n update Update an existing principalEntity\n delete Delete a principalEntity\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'; + '\nprincipal-entity \n\nCommands:\n list List principalEntity records\n find-first Find first matching principalEntity record\n create Create a new principalEntity\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, @@ -41,7 +41,7 @@ export default async ( type: 'autocomplete', name: 'subcommand', message: 'What do you want to do?', - options: ['list', 'find-first', 'get', 'create', 'update', 'delete'], + options: ['list', 'find-first', 'create'], }, ]); return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); @@ -58,14 +58,8 @@ async function handleTableSubcommand( return handleList(argv, prompter); case 'find-first': return handleFindFirst(argv, prompter); - case 'get': - return handleGet(argv, prompter); case 'create': return handleCreate(argv, prompter); - case 'update': - return handleUpdate(argv, prompter); - case 'delete': - return handleDelete(argv, prompter); default: console.log(usage); process.exit(1); @@ -123,39 +117,6 @@ async function handleFindFirst(argv: Partial>, _prompter process.exit(1); } } -async function handleGet(argv: Partial>, prompter: Inquirerer) { - try { - const answers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'id', - message: 'id', - required: true, - }, - ]); - const client = getClient(); - const result = await client.principalEntity - .findOne({ - id: answers.id as string, - select: { - createdAt: true, - entityId: true, - id: true, - ownerId: true, - principalId: 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, [ @@ -210,94 +171,3 @@ async function handleCreate(argv: Partial>, prompter: In process.exit(1); } } -async function handleUpdate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'id', - message: 'id', - required: true, - }, - { - type: 'text', - name: 'entityId', - message: 'entityId', - required: false, - }, - { - type: 'text', - name: 'ownerId', - message: 'ownerId', - required: false, - }, - { - type: 'text', - name: 'principalId', - message: 'principalId', - required: false, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as PrincipalEntityPatch; - const client = getClient(); - const result = await client.principalEntity - .update({ - where: { - id: answers.id as string, - }, - data: { - entityId: cleanedData.entityId, - ownerId: cleanedData.ownerId, - principalId: cleanedData.principalId, - }, - select: { - createdAt: true, - entityId: true, - id: true, - ownerId: true, - principalId: 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.principalEntity - .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/auth/cli/commands/principal.ts b/sdk/constructive-cli/src/auth/cli/commands/principal.ts index b41834d4ba..cf15b04405 100644 --- a/sdk/constructive-cli/src/auth/cli/commands/principal.ts +++ b/sdk/constructive-cli/src/auth/cli/commands/principal.ts @@ -18,10 +18,14 @@ import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { bypassStepUp: 'boolean', createdAt: 'string', + createdBySessionId: 'uuid', + depth: 'int', + expiresAt: 'string', id: 'uuid', isReadOnly: 'boolean', name: 'string', ownerId: 'uuid', + parentPrincipalId: 'uuid', updatedAt: 'string', useAdminOwner: 'boolean', userId: 'uuid', @@ -73,10 +77,14 @@ async function handleList(argv: Partial>, _prompter: Inq const defaultSelect = { bypassStepUp: true, createdAt: true, + createdBySessionId: true, + depth: true, + expiresAt: true, id: true, isReadOnly: true, name: true, ownerId: true, + parentPrincipalId: true, updatedAt: true, useAdminOwner: true, userId: true, @@ -102,10 +110,14 @@ async function handleFindFirst(argv: Partial>, _prompter const defaultSelect = { bypassStepUp: true, createdAt: true, + createdBySessionId: true, + depth: true, + expiresAt: true, id: true, isReadOnly: true, name: true, ownerId: true, + parentPrincipalId: true, updatedAt: true, useAdminOwner: true, userId: true, @@ -135,6 +147,24 @@ async function handleCreate(argv: Partial>, prompter: In message: 'bypassStepUp', required: true, }, + { + type: 'text', + name: 'createdBySessionId', + message: 'createdBySessionId', + required: true, + }, + { + type: 'text', + name: 'depth', + message: 'depth', + required: true, + }, + { + type: 'text', + name: 'expiresAt', + message: 'expiresAt', + required: true, + }, { type: 'boolean', name: 'isReadOnly', @@ -153,6 +183,12 @@ async function handleCreate(argv: Partial>, prompter: In message: 'ownerId', required: true, }, + { + type: 'text', + name: 'parentPrincipalId', + message: 'parentPrincipalId', + required: true, + }, { type: 'boolean', name: 'useAdminOwner', @@ -173,19 +209,27 @@ async function handleCreate(argv: Partial>, prompter: In .create({ data: { bypassStepUp: cleanedData.bypassStepUp, + createdBySessionId: cleanedData.createdBySessionId, + depth: cleanedData.depth, + expiresAt: cleanedData.expiresAt, isReadOnly: cleanedData.isReadOnly, name: cleanedData.name, ownerId: cleanedData.ownerId, + parentPrincipalId: cleanedData.parentPrincipalId, useAdminOwner: cleanedData.useAdminOwner, userId: cleanedData.userId, }, select: { bypassStepUp: true, createdAt: true, + createdBySessionId: true, + depth: true, + expiresAt: true, id: true, isReadOnly: true, name: true, ownerId: true, + parentPrincipalId: true, updatedAt: true, useAdminOwner: true, userId: true, diff --git a/sdk/constructive-cli/src/auth/cli/commands/provision-bucket.ts b/sdk/constructive-cli/src/auth/cli/commands/provision-bucket.ts index ecd2e539d5..0c54313d78 100644 --- a/sdk/constructive-cli/src/auth/cli/commands/provision-bucket.ts +++ b/sdk/constructive-cli/src/auth/cli/commands/provision-bucket.ts @@ -16,7 +16,7 @@ export default async ( try { if (argv.help || argv.h) { console.log( - '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\nUsage: provision-bucket [OPTIONS]\n' + 'provision-bucket - Reconcile an S3 bucket for a logical bucket in the database.\nReads the bucket config via RLS, then enqueues the same\nstorage:provision_bucket job used by the INSERT trigger. This is\nidempotent for an already-reconciled bucket; enqueue failures become\nGraphQL errors.\n\nUsage: provision-bucket [OPTIONS]\n' ); process.exit(0); } diff --git a/sdk/constructive-cli/src/auth/cli/commands/refresh-access-token.ts b/sdk/constructive-cli/src/auth/cli/commands/refresh-access-token.ts new file mode 100644 index 0000000000..15d4730b34 --- /dev/null +++ b/sdk/constructive-cli/src/auth/cli/commands/refresh-access-token.ts @@ -0,0 +1,53 @@ +/** + * CLI command for mutation refreshAccessToken + * @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 { RefreshAccessTokenVariables } from '../../orm/mutation'; +import type { RefreshAccessTokenPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'refresh-access-token - refreshAccessToken\n\nUsage: refresh-access-token [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 + .refreshAccessToken( + parsedAnswers as unknown as RefreshAccessTokenVariables, + { + select: selectFields, + } as unknown as { + select: RefreshAccessTokenPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: refreshAccessToken'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/auth/cli/commands/set-principal-entities.ts b/sdk/constructive-cli/src/auth/cli/commands/set-principal-entities.ts new file mode 100644 index 0000000000..1bb83c5498 --- /dev/null +++ b/sdk/constructive-cli/src/auth/cli/commands/set-principal-entities.ts @@ -0,0 +1,53 @@ +/** + * CLI command for mutation setPrincipalEntities + * @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 { SetPrincipalEntitiesVariables } from '../../orm/mutation'; +import type { SetPrincipalEntitiesPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'set-principal-entities - setPrincipalEntities\n\nUsage: set-principal-entities [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 + .setPrincipalEntities( + parsedAnswers as unknown as SetPrincipalEntitiesVariables, + { + select: selectFields, + } as unknown as { + select: SetPrincipalEntitiesPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: setPrincipalEntities'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/auth/cli/commands/set-principal-scope.ts b/sdk/constructive-cli/src/auth/cli/commands/set-principal-scope.ts new file mode 100644 index 0000000000..1f8b4c3f51 --- /dev/null +++ b/sdk/constructive-cli/src/auth/cli/commands/set-principal-scope.ts @@ -0,0 +1,53 @@ +/** + * CLI command for mutation setPrincipalScope + * @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 { SetPrincipalScopeVariables } from '../../orm/mutation'; +import type { SetPrincipalScopePayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'set-principal-scope - setPrincipalScope\n\nUsage: set-principal-scope [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 + .setPrincipalScope( + parsedAnswers as unknown as SetPrincipalScopeVariables, + { + select: selectFields, + } as unknown as { + select: SetPrincipalScopePayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: setPrincipalScope'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; 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/cli/commands/update-principal.ts b/sdk/constructive-cli/src/auth/cli/commands/update-principal.ts new file mode 100644 index 0000000000..1a76fa44fa --- /dev/null +++ b/sdk/constructive-cli/src/auth/cli/commands/update-principal.ts @@ -0,0 +1,51 @@ +/** + * CLI command for mutation updatePrincipal + * @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 { UpdatePrincipalVariables } from '../../orm/mutation'; +import type { UpdatePrincipalPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log('update-principal - updatePrincipal\n\nUsage: update-principal [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 + .updatePrincipal( + parsedAnswers as unknown as UpdatePrincipalVariables, + { + select: selectFields, + } as unknown as { + select: UpdatePrincipalPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: updatePrincipal'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/auth/cli/commands/user-setting.ts b/sdk/constructive-cli/src/auth/cli/commands/user-setting.ts new file mode 100644 index 0000000000..a21f7cb90f --- /dev/null +++ b/sdk/constructive-cli/src/auth/cli/commands/user-setting.ts @@ -0,0 +1,265 @@ +/** + * CLI commands for UserSetting + * @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 { + CreateUserSettingInput, + UserSettingPatch, + UserSettingSelect, + UserSettingFilter, + UserSettingOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + createdAt: 'string', + id: 'uuid', + ownerId: 'uuid', + updatedAt: 'string', +}; +const usage = + '\nuser-setting \n\nCommands:\n list List userSetting records\n find-first Find first matching userSetting record\n get Get a userSetting by ID\n create Create a new userSetting\n update Update an existing userSetting\n delete Delete a userSetting\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, + id: true, + ownerId: true, + updatedAt: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: UserSettingSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.userSetting.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, + id: true, + ownerId: true, + updatedAt: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: UserSettingSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.userSetting.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.userSetting + .findOne({ + id: answers.id as string, + select: { + createdAt: true, + id: true, + ownerId: true, + updatedAt: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Record not found.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleCreate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'ownerId', + message: 'ownerId', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateUserSettingInput['userSetting']; + const client = getClient(); + const result = await client.userSetting + .create({ + data: { + ownerId: cleanedData.ownerId, + }, + select: { + createdAt: true, + id: true, + ownerId: true, + updatedAt: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to create record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleUpdate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + { + type: 'text', + name: 'ownerId', + message: 'ownerId', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as UserSettingPatch; + const client = getClient(); + const result = await client.userSetting + .update({ + where: { + id: answers.id as string, + }, + data: { + ownerId: cleanedData.ownerId, + }, + select: { + createdAt: true, + id: true, + ownerId: 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.userSetting + .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/auth/cli/commands/user-settings-security.ts b/sdk/constructive-cli/src/auth/cli/commands/user-settings-security.ts new file mode 100644 index 0000000000..e9158ec1af --- /dev/null +++ b/sdk/constructive-cli/src/auth/cli/commands/user-settings-security.ts @@ -0,0 +1,405 @@ +/** + * CLI commands for UserSettingsSecurity + * @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 { + CreateUserSettingsSecurityInput, + UserSettingsSecurityPatch, + UserSettingsSecuritySelect, + UserSettingsSecurityFilter, + UserSettingsSecurityOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + backupCodesCount: 'int', + createdAt: 'string', + emailMfaEnabled: 'boolean', + id: 'uuid', + mfaEnrolledAt: 'string', + mfaLastUsedAt: 'string', + ownerId: 'uuid', + smsMfaEnabled: 'boolean', + totpEnabled: 'boolean', + updatedAt: 'string', +}; +const usage = + '\nuser-settings-security \n\nCommands:\n list List userSettingsSecurity records\n find-first Find first matching userSettingsSecurity record\n get Get a userSettingsSecurity by ID\n create Create a new userSettingsSecurity\n update Update an existing userSettingsSecurity\n delete Delete a userSettingsSecurity\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 = { + backupCodesCount: true, + createdAt: true, + emailMfaEnabled: true, + id: true, + mfaEnrolledAt: true, + mfaLastUsedAt: true, + ownerId: true, + smsMfaEnabled: true, + totpEnabled: true, + updatedAt: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs< + UserSettingsSecuritySelect, + UserSettingsSecurityFilter, + UserSettingsSecurityOrderBy + > & { + select: UserSettingsSecuritySelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.userSettingsSecurity.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 = { + backupCodesCount: true, + createdAt: true, + emailMfaEnabled: true, + id: true, + mfaEnrolledAt: true, + mfaLastUsedAt: true, + ownerId: true, + smsMfaEnabled: true, + totpEnabled: true, + updatedAt: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs< + UserSettingsSecuritySelect, + UserSettingsSecurityFilter, + UserSettingsSecurityOrderBy + > & { + select: UserSettingsSecuritySelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.userSettingsSecurity.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.userSettingsSecurity + .findOne({ + id: answers.id as string, + select: { + backupCodesCount: true, + createdAt: true, + emailMfaEnabled: true, + id: true, + mfaEnrolledAt: true, + mfaLastUsedAt: true, + ownerId: true, + smsMfaEnabled: true, + totpEnabled: 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: 'backupCodesCount', + message: 'backupCodesCount', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'emailMfaEnabled', + message: 'emailMfaEnabled', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'mfaEnrolledAt', + message: 'mfaEnrolledAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'mfaLastUsedAt', + message: 'mfaLastUsedAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'ownerId', + message: 'ownerId', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'smsMfaEnabled', + message: 'smsMfaEnabled', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'totpEnabled', + message: 'totpEnabled', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateUserSettingsSecurityInput['userSettingsSecurity']; + const client = getClient(); + const result = await client.userSettingsSecurity + .create({ + data: { + backupCodesCount: cleanedData.backupCodesCount, + emailMfaEnabled: cleanedData.emailMfaEnabled, + mfaEnrolledAt: cleanedData.mfaEnrolledAt, + mfaLastUsedAt: cleanedData.mfaLastUsedAt, + ownerId: cleanedData.ownerId, + smsMfaEnabled: cleanedData.smsMfaEnabled, + totpEnabled: cleanedData.totpEnabled, + }, + select: { + backupCodesCount: true, + createdAt: true, + emailMfaEnabled: true, + id: true, + mfaEnrolledAt: true, + mfaLastUsedAt: true, + ownerId: true, + smsMfaEnabled: true, + totpEnabled: 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: 'backupCodesCount', + message: 'backupCodesCount', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'emailMfaEnabled', + message: 'emailMfaEnabled', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'mfaEnrolledAt', + message: 'mfaEnrolledAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'mfaLastUsedAt', + message: 'mfaLastUsedAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'ownerId', + message: 'ownerId', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'smsMfaEnabled', + message: 'smsMfaEnabled', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'totpEnabled', + message: 'totpEnabled', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as UserSettingsSecurityPatch; + const client = getClient(); + const result = await client.userSettingsSecurity + .update({ + where: { + id: answers.id as string, + }, + data: { + backupCodesCount: cleanedData.backupCodesCount, + emailMfaEnabled: cleanedData.emailMfaEnabled, + mfaEnrolledAt: cleanedData.mfaEnrolledAt, + mfaLastUsedAt: cleanedData.mfaLastUsedAt, + ownerId: cleanedData.ownerId, + smsMfaEnabled: cleanedData.smsMfaEnabled, + totpEnabled: cleanedData.totpEnabled, + }, + select: { + backupCodesCount: true, + createdAt: true, + emailMfaEnabled: true, + id: true, + mfaEnrolledAt: true, + mfaLastUsedAt: true, + ownerId: true, + smsMfaEnabled: true, + totpEnabled: 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.userSettingsSecurity + .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/auth/orm/README.md b/sdk/constructive-cli/src/auth/orm/README.md index ab879dfcce..431112c14e 100644 --- a/sdk/constructive-cli/src/auth/orm/README.md +++ b/sdk/constructive-cli/src/auth/orm/README.md @@ -33,6 +33,8 @@ const db = createClient({ | `roleType` | findMany, findOne, create, update, delete | | `userConnectedAccount` | findMany, findOne, create, update, delete | | `user` | findMany, findOne, create, update, delete | +| `userSetting` | findMany, findOne, create, update, delete | +| `userSettingsSecurity` | findMany, findOne, create, update, delete | | `webauthnCredential` | findMany, findOne, create, update, delete | ## Table Operations @@ -47,6 +49,7 @@ CRUD operations for AuditLogAuth records. |-------|------|----------| | `actorId` | UUID | Yes | | `createdAt` | Datetime | No | +| `details` | JSON | Yes | | `event` | String | Yes | | `id` | UUID | No | | `ipAddress` | InternetAddress | Yes | @@ -58,13 +61,13 @@ CRUD operations for AuditLogAuth records. ```typescript // List all auditLogAuth records -const items = await db.auditLogAuth.findMany({ select: { actorId: true, createdAt: true, event: true, id: true, ipAddress: true, origin: true, success: true, userAgent: true } }).execute(); +const items = await db.auditLogAuth.findMany({ select: { actorId: true, createdAt: true, details: true, event: true, id: true, ipAddress: true, origin: true, success: true, userAgent: true } }).execute(); // Get one by id -const item = await db.auditLogAuth.findOne({ id: '', select: { actorId: true, createdAt: true, event: true, id: true, ipAddress: true, origin: true, success: true, userAgent: true } }).execute(); +const item = await db.auditLogAuth.findOne({ id: '', select: { actorId: true, createdAt: true, details: true, event: true, id: true, ipAddress: true, origin: true, success: true, userAgent: true } }).execute(); // Create -const created = await db.auditLogAuth.create({ data: { actorId: '', event: '', ipAddress: '', origin: '', success: '', userAgent: '' }, select: { id: true } }).execute(); +const created = await db.auditLogAuth.create({ data: { actorId: '', details: '', event: '', ipAddress: '', origin: '', success: '', userAgent: '' }, select: { id: true } }).execute(); // Update const updated = await db.auditLogAuth.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); @@ -264,10 +267,14 @@ CRUD operations for Principal records. |-------|------|----------| | `bypassStepUp` | Boolean | Yes | | `createdAt` | Datetime | No | +| `createdBySessionId` | UUID | Yes | +| `depth` | Int | Yes | +| `expiresAt` | Datetime | Yes | | `id` | UUID | Yes | | `isReadOnly` | Boolean | Yes | | `name` | String | Yes | | `ownerId` | UUID | Yes | +| `parentPrincipalId` | UUID | Yes | | `updatedAt` | Datetime | No | | `useAdminOwner` | Boolean | Yes | | `userId` | UUID | Yes | @@ -276,13 +283,13 @@ CRUD operations for Principal records. ```typescript // List all principal records -const items = await db.principal.findMany({ select: { bypassStepUp: true, createdAt: true, id: true, isReadOnly: true, name: true, ownerId: true, updatedAt: true, useAdminOwner: true, userId: true } }).execute(); +const items = await db.principal.findMany({ select: { bypassStepUp: true, createdAt: true, createdBySessionId: true, depth: true, expiresAt: true, id: true, isReadOnly: true, name: true, ownerId: true, parentPrincipalId: true, updatedAt: true, useAdminOwner: true, userId: true } }).execute(); // Get one by principalId -const item = await db.principal.findOne({ principalId: '', select: { bypassStepUp: true, createdAt: true, id: true, isReadOnly: true, name: true, ownerId: true, updatedAt: true, useAdminOwner: true, userId: true } }).execute(); +const item = await db.principal.findOne({ principalId: '', select: { bypassStepUp: true, createdAt: true, createdBySessionId: true, depth: true, expiresAt: true, id: true, isReadOnly: true, name: true, ownerId: true, parentPrincipalId: true, updatedAt: true, useAdminOwner: true, userId: true } }).execute(); // Create -const created = await db.principal.create({ data: { bypassStepUp: '', id: '', isReadOnly: '', name: '', ownerId: '', useAdminOwner: '', userId: '' }, select: { principalId: true } }).execute(); +const created = await db.principal.create({ data: { bypassStepUp: '', createdBySessionId: '', depth: '', expiresAt: '', id: '', isReadOnly: '', name: '', ownerId: '', parentPrincipalId: '', useAdminOwner: '', userId: '' }, select: { principalId: true } }).execute(); // Update const updated = await db.principal.update({ where: { principalId: '' }, data: { bypassStepUp: '' }, select: { principalId: true } }).execute(); @@ -470,6 +477,76 @@ const deleted = await db.user.delete({ where: { id: '' } }).execute(); > **Unified Search API fields:** `searchTsv` > Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. +### `db.userSetting` + +CRUD operations for UserSetting records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `createdAt` | Datetime | No | +| `id` | UUID | No | +| `ownerId` | UUID | Yes | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all userSetting records +const items = await db.userSetting.findMany({ select: { createdAt: true, id: true, ownerId: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.userSetting.findOne({ id: '', select: { createdAt: true, id: true, ownerId: true, updatedAt: true } }).execute(); + +// Create +const created = await db.userSetting.create({ data: { ownerId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.userSetting.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.userSetting.delete({ where: { id: '' } }).execute(); +``` + +### `db.userSettingsSecurity` + +CRUD operations for UserSettingsSecurity records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `backupCodesCount` | Int | Yes | +| `createdAt` | Datetime | No | +| `emailMfaEnabled` | Boolean | Yes | +| `id` | UUID | No | +| `mfaEnrolledAt` | Datetime | Yes | +| `mfaLastUsedAt` | Datetime | Yes | +| `ownerId` | UUID | Yes | +| `smsMfaEnabled` | Boolean | Yes | +| `totpEnabled` | Boolean | Yes | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all userSettingsSecurity records +const items = await db.userSettingsSecurity.findMany({ select: { backupCodesCount: true, createdAt: true, emailMfaEnabled: true, id: true, mfaEnrolledAt: true, mfaLastUsedAt: true, ownerId: true, smsMfaEnabled: true, totpEnabled: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.userSettingsSecurity.findOne({ id: '', select: { backupCodesCount: true, createdAt: true, emailMfaEnabled: true, id: true, mfaEnrolledAt: true, mfaLastUsedAt: true, ownerId: true, smsMfaEnabled: true, totpEnabled: true, updatedAt: true } }).execute(); + +// Create +const created = await db.userSettingsSecurity.create({ data: { backupCodesCount: '', emailMfaEnabled: '', mfaEnrolledAt: '', mfaLastUsedAt: '', ownerId: '', smsMfaEnabled: '', totpEnabled: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.userSettingsSecurity.update({ where: { id: '' }, data: { backupCodesCount: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.userSettingsSecurity.delete({ where: { id: '' } }).execute(); +``` + ### `db.webauthnCredential` CRUD operations for WebauthnCredential records. @@ -558,6 +635,17 @@ currentUserId const result = await db.query.currentUserId().execute(); ``` +### `db.query.getMfaStatus` + +getMfaStatus + +- **Type:** query +- **Arguments:** none + +```typescript +const result = await db.query.getMfaStatus().execute(); +``` + ### `db.query.requireStepUp` requireStepUp @@ -573,6 +661,21 @@ requireStepUp const result = await db.query.requireStepUp({ stepUpType: '' }).execute(); ``` +### `db.mutation.approveDevice` + +approveDevice + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | ApproveDeviceInput (required) | + +```typescript +const result = await db.mutation.approveDevice({ input: { approvalToken: '' } }).execute(); +``` + ### `db.mutation.checkPassword` checkPassword @@ -588,6 +691,21 @@ checkPassword const result = await db.mutation.checkPassword({ input: { password: '' } }).execute(); ``` +### `db.mutation.completeMfaChallenge` + +completeMfaChallenge + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | CompleteMfaChallengeInput (required) | + +```typescript +const result = await db.mutation.completeMfaChallenge({ input: '' }).execute(); +``` + ### `db.mutation.confirmDeleteAccount` confirmDeleteAccount @@ -603,6 +721,21 @@ confirmDeleteAccount const result = await db.mutation.confirmDeleteAccount({ input: { token: '', userId: '' } }).execute(); ``` +### `db.mutation.confirmTotpSetup` + +confirmTotpSetup + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | ConfirmTotpSetupInput (required) | + +```typescript +const result = await db.mutation.confirmTotpSetup({ input: { totpValue: '' } }).execute(); +``` + ### `db.mutation.createApiKey` createApiKey @@ -618,6 +751,21 @@ createApiKey const result = await db.mutation.createApiKey({ input: { accessLevel: '', expiresIn: '', keyName: '', mfaLevel: '', principalId: '' } }).execute(); ``` +### `db.mutation.createChildPrincipal` + +createChildPrincipal + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | CreateChildPrincipalInput (required) | + +```typescript +const result = await db.mutation.createChildPrincipal({ input: '' }).execute(); +``` + ### `db.mutation.createOrgApiKey` createOrgApiKey @@ -648,6 +796,21 @@ createOrgPrincipal const result = await db.mutation.createOrgPrincipal({ input: { bypassStepUp: '', isReadOnly: '', name: '', orgId: '', useAdminOwner: '' } }).execute(); ``` +### `db.mutation.createPrincipalFromPreset` + +createPrincipalFromPreset + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | CreatePrincipalFromPresetInput (required) | + +```typescript +const result = await db.mutation.createPrincipalFromPreset({ input: { entityIds: '', name: '', overrides: '', slug: '' } }).execute(); +``` + ### `db.mutation.deleteOrgPrincipal` deleteOrgPrincipal @@ -678,6 +841,51 @@ deletePrincipal const result = await db.mutation.deletePrincipal({ input: { principalId: '' } }).execute(); ``` +### `db.mutation.disableEmailMfa` + +disableEmailMfa + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | DisableEmailMfaInput (required) | + +```typescript +const result = await db.mutation.disableEmailMfa({ input: '' }).execute(); +``` + +### `db.mutation.disableSmsMfa` + +disableSmsMfa + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | DisableSmsMfaInput (required) | + +```typescript +const result = await db.mutation.disableSmsMfa({ input: '' }).execute(); +``` + +### `db.mutation.disableTotp` + +disableTotp + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | DisableTotpInput (required) | + +```typescript +const result = await db.mutation.disableTotp({ input: { totpValue: '' } }).execute(); +``` + ### `db.mutation.disconnectAccount` disconnectAccount @@ -693,6 +901,51 @@ disconnectAccount const result = await db.mutation.disconnectAccount({ input: { accountId: '' } }).execute(); ``` +### `db.mutation.enableEmailMfa` + +enableEmailMfa + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | EnableEmailMfaInput (required) | + +```typescript +const result = await db.mutation.enableEmailMfa({ input: '' }).execute(); +``` + +### `db.mutation.enableSmsMfa` + +enableSmsMfa + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | EnableSmsMfaInput (required) | + +```typescript +const result = await db.mutation.enableSmsMfa({ input: '' }).execute(); +``` + +### `db.mutation.enableTotp` + +enableTotp + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | EnableTotpInput (required) | + +```typescript +const result = await db.mutation.enableTotp({ input: '' }).execute(); +``` + ### `db.mutation.extendTokenExpires` extendTokenExpires @@ -723,6 +976,21 @@ forgotPassword const result = await db.mutation.forgotPassword({ input: { email: '' } }).execute(); ``` +### `db.mutation.generateBackupCodes` + +generateBackupCodes + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | GenerateBackupCodesInput (required) | + +```typescript +const result = await db.mutation.generateBackupCodes({ input: '' }).execute(); +``` + ### `db.mutation.linkIdentity` linkIdentity @@ -738,12 +1006,28 @@ linkIdentity const result = await db.mutation.linkIdentity({ input: { details: '', identifier: '', service: '' } }).execute(); ``` +### `db.mutation.mintAccessToken` + +mintAccessToken + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | MintAccessTokenInput (required) | + +```typescript +const result = await db.mutation.mintAccessToken({ input: { accessTtl: '', intent: '', principalId: '' } }).execute(); +``` + ### `db.mutation.provisionBucket` -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. +Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. - **Type:** mutation - **Arguments:** @@ -771,6 +1055,21 @@ provisionNewUser const result = await db.mutation.provisionNewUser({ input: { email: '', password: '' } }).execute(); ``` +### `db.mutation.refreshAccessToken` + +refreshAccessToken + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | RefreshAccessTokenInput (required) | + +```typescript +const result = await db.mutation.refreshAccessToken({ input: { token: '' } }).execute(); +``` + ### `db.mutation.requestCrossOriginToken` requestCrossOriginToken @@ -891,6 +1190,36 @@ setPassword const result = await db.mutation.setPassword({ input: { currentPassword: '', newPassword: '' } }).execute(); ``` +### `db.mutation.setPrincipalEntities` + +setPrincipalEntities + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SetPrincipalEntitiesInput (required) | + +```typescript +const result = await db.mutation.setPrincipalEntities({ input: { entityIds: '', principalId: '' } }).execute(); +``` + +### `db.mutation.setPrincipalScope` + +setPrincipalScope + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SetPrincipalScopeInput (required) | + +```typescript +const result = await db.mutation.setPrincipalScope({ input: '' }).execute(); +``` + ### `db.mutation.signIn` signIn @@ -921,6 +1250,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 +1310,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 @@ -981,6 +1340,21 @@ signUpSms const result = await db.mutation.signUpSms({ input: { code: '', credentialKind: '', deviceToken: '', phone: '', rememberMe: '' } }).execute(); ``` +### `db.mutation.updatePrincipal` + +updatePrincipal + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | UpdatePrincipalInput (required) | + +```typescript +const result = await db.mutation.updatePrincipal({ input: { bypassStepUp: '', isReadOnly: '', name: '', principalId: '', useAdminOwner: '' } }).execute(); +``` + ### `db.mutation.verifyEmail` verifyEmail diff --git a/sdk/constructive-cli/src/auth/orm/index.ts b/sdk/constructive-cli/src/auth/orm/index.ts index b677b5b306..60da7f9b43 100644 --- a/sdk/constructive-cli/src/auth/orm/index.ts +++ b/sdk/constructive-cli/src/auth/orm/index.ts @@ -17,6 +17,8 @@ import { PrincipalScopeOverrideModel } from './models/principalScopeOverride'; import { RoleTypeModel } from './models/roleType'; import { UserConnectedAccountModel } from './models/userConnectedAccount'; import { UserModel } from './models/user'; +import { UserSettingModel } from './models/userSetting'; +import { UserSettingsSecurityModel } from './models/userSettingsSecurity'; import { WebauthnCredentialModel } from './models/webauthnCredential'; import { createQueryOperations } from './query'; import { createMutationOperations } from './mutation'; @@ -65,6 +67,8 @@ export function createClient(config: OrmClientConfig) { roleType: new RoleTypeModel(client), userConnectedAccount: new UserConnectedAccountModel(client), user: new UserModel(client), + userSetting: new UserSettingModel(client), + userSettingsSecurity: new UserSettingsSecurityModel(client), webauthnCredential: new WebauthnCredentialModel(client), query: createQueryOperations(client), mutation: createMutationOperations(client), diff --git a/sdk/constructive-cli/src/auth/orm/input-types.ts b/sdk/constructive-cli/src/auth/orm/input-types.ts index b59a65f3f1..3885b35aa7 100644 --- a/sdk/constructive-cli/src/auth/orm/input-types.ts +++ b/sdk/constructive-cli/src/auth/orm/input-types.ts @@ -241,6 +241,8 @@ export interface AuditLogAuth { /** User who performed the authentication action; NULL if user was deleted */ actorId?: string | null; createdAt?: string | null; + /** Event-specific structured payload (e.g. preset slug and catalog commit id for create_principal_from_preset) */ + details?: Record | null; /** Type of authentication event (e.g. sign_in, sign_up, password_change, verify_email) */ event?: string | null; /** Unique identifier for each audit event (uuidv7 provides temporal ordering) */ @@ -306,7 +308,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 +318,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; @@ -326,6 +328,12 @@ export interface Principal { /** Whether this principal bypasses MFA step-up requirements */ bypassStepUp?: boolean | null; createdAt?: string | null; + /** Session that minted this child principal; NULL for principals created outside a session chain */ + createdBySessionId?: string | null; + /** Depth of this principal below its owner-derived root (0 for standing principals), bounded by auth_settings.max_principal_depth */ + depth?: number | null; + /** When this ephemeral child principal expires; NULL for standing principals */ + expiresAt?: string | null; id: string; /** Whether this principal is restricted to read-only operations */ isReadOnly?: boolean | null; @@ -333,6 +341,8 @@ export interface Principal { name?: string | null; /** The human user who owns and manages this principal */ ownerId?: string | null; + /** Principal this child principal derives its authority from; NULL for principals that derive from owner_id */ + parentPrincipalId?: string | null; updatedAt?: string | null; /** Whether this principal inherits admin/owner privileges from the owner */ useAdminOwner?: boolean | null; @@ -351,9 +361,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; @@ -399,6 +409,32 @@ export interface User { updatedAt?: string | null; username?: string | null; } +/** Per-user settings and preferences. Extended by other modules (i18n, notifications, MFA) via metaschema.create_field(). */ +export interface UserSetting { + createdAt?: string | null; + id: string; + ownerId?: string | null; + updatedAt?: string | null; +} +/** Per-user security settings for MFA configuration (separate from user_settings preferences) */ +export interface UserSettingsSecurity { + /** Number of remaining unused backup codes */ + backupCodesCount?: number | null; + createdAt?: string | null; + /** Whether email-based MFA codes are active for this user */ + emailMfaEnabled?: boolean | null; + id: string; + /** When the first MFA method was enabled */ + mfaEnrolledAt?: string | null; + /** When MFA was last successfully verified */ + mfaLastUsedAt?: string | null; + ownerId?: string | null; + /** Whether SMS-based MFA codes are active for this user */ + smsMfaEnabled?: boolean | null; + /** Whether TOTP (authenticator app) MFA is active for this user */ + totpEnabled?: boolean | null; + updatedAt?: string | null; +} /** WebAuthn/passkey credentials owned by users. One row per registered authenticator (security key, device biometric, synced passkey). Schema mirrors SimpleWebAuthn's canonical Passkey object. */ export interface WebauthnCredential { /** Whether this credential is eligible for backup (syncing) per the authenticator's flags at registration. */ @@ -455,7 +491,9 @@ export interface PhoneNumberRelations { } export interface PrincipalRelations { owner?: User | null; + parentPrincipal?: Principal | null; user?: User | null; + child_principals?: ConnectionResult; principalEntities?: ConnectionResult; principalScopeOverrides?: ConnectionResult; } @@ -470,6 +508,8 @@ export interface PrincipalScopeOverrideRelations { export interface RoleTypeRelations {} export interface UserConnectedAccountRelations {} export interface UserRelations { + ownedUserSetting?: UserSetting | null; + ownedUserSettingsSecurity?: UserSettingsSecurity | null; roleType?: RoleType | null; authAuditLog?: ConnectionResult; cryptoAddresses?: ConnectionResult; @@ -479,6 +519,12 @@ export interface UserRelations { scopedPrincipals?: ConnectionResult; webauthnCredentials?: ConnectionResult; } +export interface UserSettingRelations { + owner?: User | null; +} +export interface UserSettingsSecurityRelations { + owner?: User | null; +} export interface WebauthnCredentialRelations { owner?: User | null; } @@ -497,11 +543,15 @@ export type RoleTypeWithRelations = RoleType & RoleTypeRelations; export type UserConnectedAccountWithRelations = UserConnectedAccount & UserConnectedAccountRelations; export type UserWithRelations = User & UserRelations; +export type UserSettingWithRelations = UserSetting & UserSettingRelations; +export type UserSettingsSecurityWithRelations = UserSettingsSecurity & + UserSettingsSecurityRelations; export type WebauthnCredentialWithRelations = WebauthnCredential & WebauthnCredentialRelations; // ============ Entity Select Types ============ export type AuditLogAuthSelect = { actorId?: boolean; createdAt?: boolean; + details?: boolean; event?: boolean; id?: boolean; ipAddress?: boolean; @@ -575,19 +625,32 @@ export type PhoneNumberSelect = { export type PrincipalSelect = { bypassStepUp?: boolean; createdAt?: boolean; + createdBySessionId?: boolean; + depth?: boolean; + expiresAt?: boolean; id?: boolean; isReadOnly?: boolean; name?: boolean; ownerId?: boolean; + parentPrincipalId?: boolean; updatedAt?: boolean; useAdminOwner?: boolean; userId?: boolean; owner?: { select: UserSelect; }; + parentPrincipal?: { + select: PrincipalSelect; + }; user?: { select: UserSelect; }; + child_principals?: { + select: PrincipalSelect; + first?: number; + filter?: PrincipalFilter; + orderBy?: PrincipalOrderBy[]; + }; principalEntities?: { select: PrincipalEntitySelect; first?: number; @@ -658,6 +721,12 @@ export type UserSelect = { type?: boolean; updatedAt?: boolean; username?: boolean; + ownedUserSetting?: { + select: UserSettingSelect; + }; + ownedUserSettingsSecurity?: { + select: UserSettingsSecuritySelect; + }; roleType?: { select: RoleTypeSelect; }; @@ -704,6 +773,30 @@ export type UserSelect = { orderBy?: WebauthnCredentialOrderBy[]; }; }; +export type UserSettingSelect = { + createdAt?: boolean; + id?: boolean; + ownerId?: boolean; + updatedAt?: boolean; + owner?: { + select: UserSelect; + }; +}; +export type UserSettingsSecuritySelect = { + backupCodesCount?: boolean; + createdAt?: boolean; + emailMfaEnabled?: boolean; + id?: boolean; + mfaEnrolledAt?: boolean; + mfaLastUsedAt?: boolean; + ownerId?: boolean; + smsMfaEnabled?: boolean; + totpEnabled?: boolean; + updatedAt?: boolean; + owner?: { + select: UserSelect; + }; +}; export type WebauthnCredentialSelect = { backupEligible?: boolean; backupState?: boolean; @@ -735,6 +828,8 @@ export interface AuditLogAuthFilter { and?: AuditLogAuthFilter[]; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `details` field. */ + details?: JSONFilter; /** Filter by the object’s `event` field. */ event?: StringFilter; /** Filter by the object’s `id` field. */ @@ -885,8 +980,18 @@ export interface PrincipalFilter { and?: PrincipalFilter[]; /** Filter by the object’s `bypassStepUp` field. */ bypassStepUp?: BooleanFilter; + /** Filter by the object’s `child_principals` relation. */ + child_principals?: PrincipalToManyPrincipalFilter; + /** `child_principals` exist. */ + child_principalsExist?: boolean; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBySessionId` field. */ + createdBySessionId?: UUIDFilter; + /** Filter by the object’s `depth` field. */ + depth?: IntFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `isReadOnly` field. */ @@ -901,6 +1006,12 @@ export interface PrincipalFilter { owner?: UserFilter; /** Filter by the object’s `ownerId` field. */ ownerId?: UUIDFilter; + /** Filter by the object’s `parentPrincipal` relation. */ + parentPrincipal?: PrincipalFilter; + /** A related `parentPrincipal` exists. */ + parentPrincipalExists?: boolean; + /** Filter by the object’s `parentPrincipalId` field. */ + parentPrincipalId?: UUIDFilter; /** Filter by the object’s `principalEntities` relation. */ principalEntities?: PrincipalToManyPrincipalEntityFilter; /** `principalEntities` exist. */ @@ -1033,6 +1144,14 @@ export interface UserFilter { not?: UserFilter; /** Checks for any expressions in this list. */ or?: UserFilter[]; + /** Filter by the object’s `ownedUserSetting` relation. */ + ownedUserSetting?: UserSettingFilter; + /** A related `ownedUserSetting` exists. */ + ownedUserSettingExists?: boolean; + /** Filter by the object’s `ownedUserSettingsSecurity` relation. */ + ownedUserSettingsSecurity?: UserSettingsSecurityFilter; + /** A related `ownedUserSettingsSecurity` exists. */ + ownedUserSettingsSecurityExists?: boolean; /** Filter by the object’s `phoneNumbers` relation. */ phoneNumbers?: UserToManyPhoneNumberFilter; /** `phoneNumbers` exist. */ @@ -1074,6 +1193,54 @@ export interface UserFilter { /** `webauthnCredentials` exist. */ webauthnCredentialsExist?: boolean; } +export interface UserSettingFilter { + /** Checks for all expressions in this list. */ + and?: UserSettingFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: UserSettingFilter; + /** Checks for any expressions in this list. */ + or?: UserSettingFilter[]; + /** Filter by the object’s `owner` relation. */ + owner?: UserFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} +export interface UserSettingsSecurityFilter { + /** Checks for all expressions in this list. */ + and?: UserSettingsSecurityFilter[]; + /** Filter by the object’s `backupCodesCount` field. */ + backupCodesCount?: IntFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `emailMfaEnabled` field. */ + emailMfaEnabled?: BooleanFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `mfaEnrolledAt` field. */ + mfaEnrolledAt?: DatetimeFilter; + /** Filter by the object’s `mfaLastUsedAt` field. */ + mfaLastUsedAt?: DatetimeFilter; + /** Negates the expression. */ + not?: UserSettingsSecurityFilter; + /** Checks for any expressions in this list. */ + or?: UserSettingsSecurityFilter[]; + /** Filter by the object’s `owner` relation. */ + owner?: UserFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `smsMfaEnabled` field. */ + smsMfaEnabled?: BooleanFilter; + /** Filter by the object’s `totpEnabled` field. */ + totpEnabled?: BooleanFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} export interface WebauthnCredentialFilter { /** Checks for all expressions in this list. */ and?: WebauthnCredentialFilter[]; @@ -1118,6 +1285,8 @@ export type AuditLogAuthOrderBy = | 'ACTOR_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' + | 'DETAILS_ASC' + | 'DETAILS_DESC' | 'EVENT_ASC' | 'EVENT_DESC' | 'ID_ASC' @@ -1236,6 +1405,12 @@ export type PrincipalOrderBy = | 'BYPASS_STEP_UP_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' + | 'CREATED_BY_SESSION_ID_ASC' + | 'CREATED_BY_SESSION_ID_DESC' + | 'DEPTH_ASC' + | 'DEPTH_DESC' + | 'EXPIRES_AT_ASC' + | 'EXPIRES_AT_DESC' | 'ID_ASC' | 'ID_DESC' | 'IS_READ_ONLY_ASC' @@ -1245,6 +1420,8 @@ export type PrincipalOrderBy = | 'NATURAL' | 'OWNER_ID_ASC' | 'OWNER_ID_DESC' + | 'PARENT_PRINCIPAL_ID_ASC' + | 'PARENT_PRINCIPAL_ID_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'UPDATED_AT_ASC' @@ -1343,6 +1520,42 @@ export type UserOrderBy = | 'UPDATED_AT_DESC' | 'USERNAME_ASC' | 'USERNAME_DESC'; +export type UserSettingOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type UserSettingsSecurityOrderBy = + | 'BACKUP_CODES_COUNT_ASC' + | 'BACKUP_CODES_COUNT_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'EMAIL_MFA_ENABLED_ASC' + | 'EMAIL_MFA_ENABLED_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'MFA_ENROLLED_AT_ASC' + | 'MFA_ENROLLED_AT_DESC' + | 'MFA_LAST_USED_AT_ASC' + | 'MFA_LAST_USED_AT_DESC' + | 'NATURAL' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'SMS_MFA_ENABLED_ASC' + | 'SMS_MFA_ENABLED_DESC' + | 'TOTP_ENABLED_ASC' + | 'TOTP_ENABLED_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; export type WebauthnCredentialOrderBy = | 'BACKUP_ELIGIBLE_ASC' | 'BACKUP_ELIGIBLE_DESC' @@ -1380,6 +1593,7 @@ export interface CreateAuditLogAuthInput { clientMutationId?: string; auditLogAuth: { actorId?: string; + details?: Record; event: string; ipAddress?: string; origin?: ConstructiveInternalTypeOrigin; @@ -1389,6 +1603,7 @@ export interface CreateAuditLogAuthInput { } export interface AuditLogAuthPatch { actorId?: string | null; + details?: Record | null; event?: string | null; ipAddress?: string | null; origin?: ConstructiveInternalTypeOrigin | null; @@ -1546,18 +1761,26 @@ export interface CreatePrincipalInput { clientMutationId?: string; principal: { bypassStepUp?: boolean; + createdBySessionId: string; + depth?: number; + expiresAt?: string; isReadOnly?: boolean; name?: string; ownerId: string; + parentPrincipalId: string; useAdminOwner?: boolean; userId: string; }; } export interface PrincipalPatch { bypassStepUp?: boolean | null; + createdBySessionId?: string | null; + depth?: number | null; + expiresAt?: string | null; isReadOnly?: boolean | null; name?: string | null; ownerId?: string | null; + parentPrincipalId?: string | null; useAdminOwner?: boolean | null; userId?: string | null; } @@ -1689,6 +1912,54 @@ export interface DeleteUserInput { clientMutationId?: string; id: string; } +export interface CreateUserSettingInput { + clientMutationId?: string; + userSetting: { + ownerId?: string; + }; +} +export interface UserSettingPatch { + ownerId?: string | null; +} +export interface UpdateUserSettingInput { + clientMutationId?: string; + id: string; + userSettingPatch: UserSettingPatch; +} +export interface DeleteUserSettingInput { + clientMutationId?: string; + id: string; +} +export interface CreateUserSettingsSecurityInput { + clientMutationId?: string; + userSettingsSecurity: { + backupCodesCount?: number; + emailMfaEnabled?: boolean; + mfaEnrolledAt?: string; + mfaLastUsedAt?: string; + ownerId?: string; + smsMfaEnabled?: boolean; + totpEnabled?: boolean; + }; +} +export interface UserSettingsSecurityPatch { + backupCodesCount?: number | null; + emailMfaEnabled?: boolean | null; + mfaEnrolledAt?: string | null; + mfaLastUsedAt?: string | null; + ownerId?: string | null; + smsMfaEnabled?: boolean | null; + totpEnabled?: boolean | null; +} +export interface UpdateUserSettingsSecurityInput { + clientMutationId?: string; + id: string; + userSettingsSecurityPatch: UserSettingsSecurityPatch; +} +export interface DeleteUserSettingsSecurityInput { + clientMutationId?: string; + id: string; +} export interface CreateWebauthnCredentialInput { clientMutationId?: string; webauthnCredential: { @@ -1730,6 +2001,7 @@ export interface DeleteWebauthnCredentialInput { // ============ Connection Fields Map ============ export const connectionFieldsMap = { Principal: { + child_principals: 'Principal', principalEntities: 'PrincipalEntity', principalScopeOverrides: 'PrincipalScopeOverride', }, @@ -1744,15 +2016,35 @@ export const connectionFieldsMap = { }, } as Record>; // ============ Custom Input Types (from schema) ============ +export interface ApproveDeviceInput { + approvalToken: string; + clientMutationId?: string; +} export interface CheckPasswordInput { clientMutationId?: string; password?: string; } +export interface CompleteMfaChallengeInput { + authMethod?: string; + clientMutationId?: string; + credentialKind?: string; + deviceToken?: string; + mfaChallengeToken?: string; + mfaMethod?: string; + rememberMe?: boolean; + totpCode?: string; + trustDevice?: boolean; + userId?: string; +} export interface ConfirmDeleteAccountInput { clientMutationId?: string; token?: string; userId?: string; } +export interface ConfirmTotpSetupInput { + clientMutationId?: string; + totpValue: string; +} export interface CreateApiKeyInput { accessLevel?: string; clientMutationId?: string; @@ -1761,6 +2053,16 @@ export interface CreateApiKeyInput { mfaLevel?: string; principalId?: string; } +export interface CreateChildPrincipalInput { + allowedMask?: string; + clientMutationId?: string; + entityIds?: string[]; + expiresAt?: string; + intent?: string; + isReadOnly?: boolean; + name?: string; + parentPrincipalId?: string; +} export interface CreateOrgApiKeyInput { accessLevel?: string; clientMutationId?: string; @@ -1778,14 +2080,40 @@ export interface CreateOrgPrincipalInput { orgId?: string; useAdminOwner?: boolean; } +export interface CreatePrincipalFromPresetInput { + clientMutationId?: string; + entityIds?: string[]; + name?: string; + overrides?: Record; + slug?: string; +} export interface DeleteOrgPrincipalInput { clientMutationId?: string; principalId?: string; } +export interface DisableEmailMfaInput { + clientMutationId?: string; +} +export interface DisableSmsMfaInput { + clientMutationId?: string; +} +export interface DisableTotpInput { + clientMutationId?: string; + totpValue: string; +} export interface DisconnectAccountInput { accountId: string; clientMutationId?: string; } +export interface EnableEmailMfaInput { + clientMutationId?: string; +} +export interface EnableSmsMfaInput { + clientMutationId?: string; +} +export interface EnableTotpInput { + clientMutationId?: string; +} export interface ExtendTokenExpiresInput { amount?: IntervalInput; clientMutationId?: string; @@ -1794,12 +2122,21 @@ export interface ForgotPasswordInput { clientMutationId?: string; email?: ConstructiveInternalTypeEmail; } +export interface GenerateBackupCodesInput { + clientMutationId?: string; +} export interface LinkIdentityInput { clientMutationId?: string; details?: Record; identifier: string; service: string; } +export interface MintAccessTokenInput { + accessTtl?: IntervalInput; + clientMutationId?: string; + intent?: string; + principalId?: string; +} export interface ProvisionBucketInput { /** The logical bucket key (e.g., "public", "private") */ bucketKey: string; @@ -1814,6 +2151,10 @@ export interface ProvisionNewUserInput { email?: string; password?: string; } +export interface RefreshAccessTokenInput { + clientMutationId?: string; + token?: string; +} export interface RequestCrossOriginTokenInput { clientMutationId?: string; email?: string; @@ -1852,6 +2193,20 @@ export interface SetPasswordInput { currentPassword?: string; newPassword?: string; } +export interface SetPrincipalEntitiesInput { + clientMutationId?: string; + entityIds?: string[]; + principalId?: string; +} +export interface SetPrincipalScopeInput { + allowedMask?: string; + clientMutationId?: string; + isActive?: boolean; + isReadOnly?: boolean; + membershipType?: number; + principalId?: string; + useAdminOwner?: boolean; +} export interface SignInInput { clientMutationId?: string; credentialKind?: string; @@ -1866,6 +2221,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 +2248,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; @@ -2061,6 +2430,15 @@ export interface ConstructiveInternalTypeEmailFilter { /** Starts with the specified string (case-insensitive). */ startsWithInsensitive?: ConstructiveInternalTypeEmail; } +/** A filter to be used against many `Principal` object types. All fields are combined with a logical ‘and.’ */ +export interface PrincipalToManyPrincipalFilter { + /** Filters to entities where every related entity matches. */ + every?: PrincipalFilter; + /** Filters to entities where no related entity matches. */ + none?: PrincipalFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PrincipalFilter; +} /** A filter to be used against many `PrincipalEntity` object types. All fields are combined with a logical ‘and.’ */ export interface PrincipalToManyPrincipalEntityFilter { /** Filters to entities where every related entity matches. */ @@ -2287,6 +2665,8 @@ export interface AuditLogAuthInput { /** User who performed the authentication action; NULL if user was deleted */ actorId?: string; createdAt?: string; + /** Event-specific structured payload (e.g. preset slug and catalog commit id for create_principal_from_preset) */ + details?: Record; /** Type of authentication event (e.g. sign_in, sign_up, password_change, verify_email) */ event: string; /** Unique identifier for each audit event (uuidv7 provides temporal ordering) */ @@ -2332,7 +2712,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,23 +2722,11 @@ 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; } -/** An input for mutations affecting `PrincipalEntity` */ -export interface PrincipalEntityInput { - createdAt?: string; - /** The organization this principal is scoped to */ - entityId: string; - id?: string; - /** Denormalized owner_id from principals table for RLS */ - ownerId: string; - /** The principal this scoping row belongs to */ - principalId: string; - updatedAt?: string; -} /** An input for mutations affecting `RoleType` */ export interface RoleTypeInput { id: number; @@ -2374,6 +2742,32 @@ export interface UserInput { updatedAt?: string; username?: string; } +/** An input for mutations affecting `UserSetting` */ +export interface UserSettingInput { + createdAt?: string; + id?: string; + ownerId?: string; + updatedAt?: string; +} +/** An input for mutations affecting `UserSettingsSecurity` */ +export interface UserSettingsSecurityInput { + /** Number of remaining unused backup codes */ + backupCodesCount?: number; + createdAt?: string; + /** Whether email-based MFA codes are active for this user */ + emailMfaEnabled?: boolean; + id?: string; + /** When the first MFA method was enabled */ + mfaEnrolledAt?: string; + /** When MFA was last successfully verified */ + mfaLastUsedAt?: string; + ownerId?: string; + /** Whether SMS-based MFA codes are active for this user */ + smsMfaEnabled?: boolean; + /** Whether TOTP (authenticator app) MFA is active for this user */ + totpEnabled?: boolean; + updatedAt?: string; +} /** An input for mutations affecting `WebauthnCredential` */ export interface WebauthnCredentialInput { /** Whether this credential is eligible for backup (syncing) per the authenticator's flags at registration. */ @@ -2420,34 +2814,89 @@ export interface IntervalInput { /** A quantity of years. */ years?: number; } -/** A filter to be used against `PrincipalEntity` object types. All fields are combined with a logical ‘and.’ */ -export interface PrincipalEntityFilter { +/** A filter to be used against `Principal` object types. All fields are combined with a logical ‘and.’ */ +export interface PrincipalFilter { /** Checks for all expressions in this list. */ - and?: PrincipalEntityFilter[]; + and?: PrincipalFilter[]; + /** Filter by the object’s `bypassStepUp` field. */ + bypassStepUp?: BooleanFilter; + /** Filter by the object’s `child_principals` relation. */ + child_principals?: PrincipalToManyPrincipalFilter; + /** `child_principals` exist. */ + child_principalsExist?: boolean; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; + /** Filter by the object’s `createdBySessionId` field. */ + createdBySessionId?: UUIDFilter; + /** Filter by the object’s `depth` field. */ + depth?: IntFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `isReadOnly` field. */ + isReadOnly?: BooleanFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; /** Negates the expression. */ - not?: PrincipalEntityFilter; + not?: PrincipalFilter; /** Checks for any expressions in this list. */ - or?: PrincipalEntityFilter[]; + or?: PrincipalFilter[]; /** Filter by the object’s `owner` relation. */ owner?: UserFilter; /** Filter by the object’s `ownerId` field. */ ownerId?: UUIDFilter; - /** Filter by the object’s `principal` relation. */ - principal?: PrincipalFilter; - /** Filter by the object’s `principalId` field. */ - principalId?: UUIDFilter; + /** Filter by the object’s `parentPrincipal` relation. */ + parentPrincipal?: PrincipalFilter; + /** A related `parentPrincipal` exists. */ + parentPrincipalExists?: boolean; + /** Filter by the object’s `parentPrincipalId` field. */ + parentPrincipalId?: UUIDFilter; + /** Filter by the object’s `principalEntities` relation. */ + principalEntities?: PrincipalToManyPrincipalEntityFilter; + /** `principalEntities` exist. */ + principalEntitiesExist?: boolean; + /** Filter by the object’s `principalScopeOverrides` relation. */ + principalScopeOverrides?: PrincipalToManyPrincipalScopeOverrideFilter; + /** `principalScopeOverrides` exist. */ + principalScopeOverridesExist?: boolean; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; -} -/** A filter to be used against `PrincipalScopeOverride` object types. All fields are combined with a logical ‘and.’ */ + /** Filter by the object’s `useAdminOwner` field. */ + useAdminOwner?: BooleanFilter; + /** Filter by the object’s `user` relation. */ + user?: UserFilter; + /** Filter by the object’s `userId` field. */ + userId?: UUIDFilter; +} +/** A filter to be used against `PrincipalEntity` object types. All fields are combined with a logical ‘and.’ */ +export interface PrincipalEntityFilter { + /** Checks for all expressions in this list. */ + and?: PrincipalEntityFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `entity` relation. */ + entity?: UserFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: PrincipalEntityFilter; + /** Checks for any expressions in this list. */ + or?: PrincipalEntityFilter[]; + /** Filter by the object’s `owner` relation. */ + owner?: UserFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `principal` relation. */ + principal?: PrincipalFilter; + /** Filter by the object’s `principalId` field. */ + principalId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} +/** A filter to be used against `PrincipalScopeOverride` object types. All fields are combined with a logical ‘and.’ */ export interface PrincipalScopeOverrideFilter { /** Filter by the object’s `allowedMask` field. */ allowedMask?: BitStringFilter; @@ -2488,6 +2937,8 @@ export interface AuditLogAuthFilter { and?: AuditLogAuthFilter[]; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `details` field. */ + details?: JSONFilter; /** Filter by the object’s `event` field. */ event?: StringFilter; /** Filter by the object’s `id` field. */ @@ -2588,45 +3039,6 @@ export interface PhoneNumberFilter { /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } -/** A filter to be used against `Principal` object types. All fields are combined with a logical ‘and.’ */ -export interface PrincipalFilter { - /** Checks for all expressions in this list. */ - and?: PrincipalFilter[]; - /** Filter by the object’s `bypassStepUp` field. */ - bypassStepUp?: BooleanFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isReadOnly` field. */ - isReadOnly?: BooleanFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Negates the expression. */ - not?: PrincipalFilter; - /** Checks for any expressions in this list. */ - or?: PrincipalFilter[]; - /** Filter by the object’s `owner` relation. */ - owner?: UserFilter; - /** Filter by the object’s `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `principalEntities` relation. */ - principalEntities?: PrincipalToManyPrincipalEntityFilter; - /** `principalEntities` exist. */ - principalEntitiesExist?: boolean; - /** Filter by the object’s `principalScopeOverrides` relation. */ - principalScopeOverrides?: PrincipalToManyPrincipalScopeOverrideFilter; - /** `principalScopeOverrides` exist. */ - principalScopeOverridesExist?: boolean; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `useAdminOwner` field. */ - useAdminOwner?: BooleanFilter; - /** Filter by the object’s `user` relation. */ - user?: UserFilter; - /** Filter by the object’s `userId` field. */ - userId?: UUIDFilter; -} /** A filter to be used against `WebauthnCredential` object types. All fields are combined with a logical ‘and.’ */ export interface WebauthnCredentialFilter { /** Checks for all expressions in this list. */ @@ -2666,100 +3078,33 @@ export interface WebauthnCredentialFilter { /** Filter by the object’s `webauthnUserId` field. */ webauthnUserId?: StringFilter; } -/** A filter to be used against Datetime fields. All fields are combined with a logical ‘and.’ */ -export interface DatetimeFilter { +/** 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?: string; + distinctFrom?: boolean; /** Equal to the specified value. */ - equalTo?: string; + equalTo?: boolean; /** Greater than the specified value. */ - greaterThan?: string; + greaterThan?: boolean; /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: string; + greaterThanOrEqualTo?: boolean; /** Included in the specified list. */ - in?: string[]; + in?: boolean[]; /** Is null (if `true` is specified) or is not null (if `false` is specified). */ isNull?: boolean; /** Less than the specified value. */ - lessThan?: string; + lessThan?: boolean; /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: string; + lessThanOrEqualTo?: boolean; /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: string; + notDistinctFrom?: boolean; /** Not equal to the specified value. */ - notEqualTo?: string; + notEqualTo?: boolean; /** Not included in the specified list. */ - notIn?: string[]; -} -/** A filter to be used against `User` object types. All fields are combined with a logical ‘and.’ */ -export interface UserFilter { - /** Checks for all expressions in this list. */ - and?: UserFilter[]; - /** Filter by the object’s `authAuditLog` relation. */ - authAuditLog?: UserToManyAuditLogAuthFilter; - /** `authAuditLog` exist. */ - authAuditLogExist?: boolean; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `cryptoAddresses` relation. */ - cryptoAddresses?: UserToManyCryptoAddressFilter; - /** `cryptoAddresses` exist. */ - cryptoAddressesExist?: boolean; - /** Filter by the object’s `displayName` field. */ - displayName?: StringTrgmFilter; - /** Filter by the object’s `emails` relation. */ - emails?: UserToManyEmailFilter; - /** `emails` exist. */ - emailsExist?: boolean; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Negates the expression. */ - not?: UserFilter; - /** Checks for any expressions in this list. */ - or?: UserFilter[]; - /** Filter by the object’s `phoneNumbers` relation. */ - phoneNumbers?: UserToManyPhoneNumberFilter; - /** `phoneNumbers` exist. */ - phoneNumbersExist?: boolean; - /** Filter by the object’s `principals` relation. */ - principals?: UserToManyPrincipalFilter; - /** `principals` exist. */ - principalsExist?: boolean; - /** Filter by the object’s `profilePicture` field. */ - profilePicture?: ConstructiveInternalTypeImageFilter; - /** Filter by the object’s `roleType` relation. */ - roleType?: RoleTypeFilter; - /** Filter by the object’s `scopedPrincipals` relation. */ - scopedPrincipals?: UserToManyPrincipalEntityFilter; - /** `scopedPrincipals` exist. */ - scopedPrincipalsExist?: boolean; - /** Filter by the object’s `searchTsv` field. */ - searchTsv?: FullTextFilter; - /** TRGM search on the `display_name` column. */ - trgmDisplayName?: TrgmSearchInput; - /** TSV search on the `search_tsv` column. */ - tsvSearchTsv?: string; - /** Filter by the object’s `type` field. */ - type?: IntFilter; - /** - * Composite unified search. Provide a search string and it will be dispatched to - * all text-compatible search algorithms (tsvector, BM25, pg_trgm) - * simultaneously. When the LLM plugin is active, pgvector also participates via - * auto-embedding. Rows matching ANY algorithm are returned. All matching score - * fields are populated. - */ - unifiedSearch?: string; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `username` field. */ - username?: StringTrgmFilter; - /** Filter by the object’s `webauthnCredentials` relation. */ - webauthnCredentials?: UserToManyWebauthnCredentialFilter; - /** `webauthnCredentials` exist. */ - webauthnCredentialsExist?: boolean; + notIn?: boolean[]; } -/** A filter to be used against UUID fields. All fields are combined with a logical ‘and.’ */ -export interface UUIDFilter { +/** 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. */ @@ -2783,8 +3128,8 @@ export interface UUIDFilter { /** Not included in the specified list. */ notIn?: string[]; } -/** A filter to be used against BitString fields. All fields are combined with a logical ‘and.’ */ -export interface BitStringFilter { +/** 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. */ @@ -2808,31 +3153,6 @@ export interface BitStringFilter { /** 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 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. */ @@ -2935,6 +3255,141 @@ export interface StringFilter { /** Starts with the specified string (case-insensitive). */ startsWithInsensitive?: string; } +/** A filter to be used against `User` object types. All fields are combined with a logical ‘and.’ */ +export interface UserFilter { + /** Checks for all expressions in this list. */ + and?: UserFilter[]; + /** Filter by the object’s `authAuditLog` relation. */ + authAuditLog?: UserToManyAuditLogAuthFilter; + /** `authAuditLog` exist. */ + authAuditLogExist?: boolean; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `cryptoAddresses` relation. */ + cryptoAddresses?: UserToManyCryptoAddressFilter; + /** `cryptoAddresses` exist. */ + cryptoAddressesExist?: boolean; + /** Filter by the object’s `displayName` field. */ + displayName?: StringTrgmFilter; + /** Filter by the object’s `emails` relation. */ + emails?: UserToManyEmailFilter; + /** `emails` exist. */ + emailsExist?: boolean; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: UserFilter; + /** Checks for any expressions in this list. */ + or?: UserFilter[]; + /** Filter by the object’s `ownedUserSetting` relation. */ + ownedUserSetting?: UserSettingFilter; + /** A related `ownedUserSetting` exists. */ + ownedUserSettingExists?: boolean; + /** Filter by the object’s `ownedUserSettingsSecurity` relation. */ + ownedUserSettingsSecurity?: UserSettingsSecurityFilter; + /** A related `ownedUserSettingsSecurity` exists. */ + ownedUserSettingsSecurityExists?: boolean; + /** Filter by the object’s `phoneNumbers` relation. */ + phoneNumbers?: UserToManyPhoneNumberFilter; + /** `phoneNumbers` exist. */ + phoneNumbersExist?: boolean; + /** Filter by the object’s `principals` relation. */ + principals?: UserToManyPrincipalFilter; + /** `principals` exist. */ + principalsExist?: boolean; + /** Filter by the object’s `profilePicture` field. */ + profilePicture?: ConstructiveInternalTypeImageFilter; + /** Filter by the object’s `roleType` relation. */ + roleType?: RoleTypeFilter; + /** Filter by the object’s `scopedPrincipals` relation. */ + scopedPrincipals?: UserToManyPrincipalEntityFilter; + /** `scopedPrincipals` exist. */ + scopedPrincipalsExist?: boolean; + /** Filter by the object’s `searchTsv` field. */ + searchTsv?: FullTextFilter; + /** TRGM search on the `display_name` column. */ + trgmDisplayName?: TrgmSearchInput; + /** TSV search on the `search_tsv` column. */ + tsvSearchTsv?: string; + /** Filter by the object’s `type` field. */ + type?: IntFilter; + /** + * Composite unified search. Provide a search string and it will be dispatched to + * all text-compatible search algorithms (tsvector, BM25, pg_trgm) + * simultaneously. When the LLM plugin is active, pgvector also participates via + * auto-embedding. Rows matching ANY algorithm are returned. All matching score + * fields are populated. + */ + unifiedSearch?: string; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `username` field. */ + username?: StringTrgmFilter; + /** Filter by the object’s `webauthnCredentials` relation. */ + webauthnCredentials?: UserToManyWebauthnCredentialFilter; + /** `webauthnCredentials` exist. */ + webauthnCredentialsExist?: boolean; +} +/** 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 JSON fields. All fields are combined with a logical ‘and.’ */ +export interface JSONFilter { + /** Contained by the specified JSON. */ + containedBy?: Record; + /** Contains the specified JSON. */ + contains?: Record; + /** Contains all of the specified keys. */ + containsAllKeys?: string[]; + /** Contains any of the specified keys. */ + containsAnyKeys?: string[]; + /** Contains the specified key. */ + containsKey?: string; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: Record; + /** Equal to the specified value. */ + equalTo?: Record; + /** Greater than the specified value. */ + greaterThan?: Record; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: Record; + /** Included in the specified list. */ + in?: Record[]; + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Less than the specified value. */ + lessThan?: Record; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: Record; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: Record; + /** Not equal to the specified value. */ + notEqualTo?: Record; + /** Not included in the specified list. */ + notIn?: Record[]; +} /** A filter to be used against InternetAddress fields. All fields are combined with a logical ‘and.’ */ export interface InternetAddressFilter { /** Contained by the specified internet address. */ @@ -3034,6 +3489,56 @@ export interface StringListFilter { /** Overlaps the specified list of values. */ overlaps?: string[]; } +/** A filter to be used against `UserSetting` object types. All fields are combined with a logical ‘and.’ */ +export interface UserSettingFilter { + /** Checks for all expressions in this list. */ + and?: UserSettingFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: UserSettingFilter; + /** Checks for any expressions in this list. */ + or?: UserSettingFilter[]; + /** Filter by the object’s `owner` relation. */ + owner?: UserFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} +/** A filter to be used against `UserSettingsSecurity` object types. All fields are combined with a logical ‘and.’ */ +export interface UserSettingsSecurityFilter { + /** Checks for all expressions in this list. */ + and?: UserSettingsSecurityFilter[]; + /** Filter by the object’s `backupCodesCount` field. */ + backupCodesCount?: IntFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `emailMfaEnabled` field. */ + emailMfaEnabled?: BooleanFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `mfaEnrolledAt` field. */ + mfaEnrolledAt?: DatetimeFilter; + /** Filter by the object’s `mfaLastUsedAt` field. */ + mfaLastUsedAt?: DatetimeFilter; + /** Negates the expression. */ + not?: UserSettingsSecurityFilter; + /** Checks for any expressions in this list. */ + or?: UserSettingsSecurityFilter[]; + /** Filter by the object’s `owner` relation. */ + owner?: UserFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `smsMfaEnabled` field. */ + smsMfaEnabled?: BooleanFilter; + /** Filter by the object’s `totpEnabled` field. */ + totpEnabled?: BooleanFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} /** A filter to be used against `RoleType` object types. All fields are combined with a logical ‘and.’ */ export interface RoleTypeFilter { /** Checks for all expressions in this list. */ @@ -3067,12 +3572,42 @@ export interface FullTextFilter { notIn?: string[]; } // ============ Payload/Return Types (for custom operations) ============ +export interface GetMfaStatusRecord { + backupCodesCount?: number | null; + emailMfaEnabled?: boolean | null; + smsMfaEnabled?: boolean | null; + totpEnabled?: boolean | null; +} +export type GetMfaStatusRecordSelect = { + backupCodesCount?: boolean; + emailMfaEnabled?: boolean; + smsMfaEnabled?: boolean; + totpEnabled?: boolean; +}; +export interface ApproveDevicePayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type ApproveDevicePayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; export interface CheckPasswordPayload { clientMutationId?: string | null; } export type CheckPasswordPayloadSelect = { clientMutationId?: boolean; }; +export interface CompleteMfaChallengePayload { + clientMutationId?: string | null; + result?: CompleteMfaChallengeRecord | null; +} +export type CompleteMfaChallengePayloadSelect = { + clientMutationId?: boolean; + result?: { + select: CompleteMfaChallengeRecordSelect; + }; +}; export interface ConfirmDeleteAccountPayload { clientMutationId?: string | null; result?: boolean | null; @@ -3081,6 +3616,14 @@ export type ConfirmDeleteAccountPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface ConfirmTotpSetupPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type ConfirmTotpSetupPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; export interface CreateApiKeyPayload { clientMutationId?: string | null; result?: CreateApiKeyRecord | null; @@ -3091,6 +3634,14 @@ export type CreateApiKeyPayloadSelect = { select: CreateApiKeyRecordSelect; }; }; +export interface CreateChildPrincipalPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type CreateChildPrincipalPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; export interface CreateOrgApiKeyPayload { clientMutationId?: string | null; result?: CreateOrgApiKeyRecord | null; @@ -3109,6 +3660,14 @@ export type CreateOrgPrincipalPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface CreatePrincipalFromPresetPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type CreatePrincipalFromPresetPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; export interface DeleteOrgPrincipalPayload { clientMutationId?: string | null; result?: boolean | null; @@ -3125,6 +3684,30 @@ export type DeletePrincipalPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface DisableEmailMfaPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type DisableEmailMfaPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface DisableSmsMfaPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type DisableSmsMfaPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface DisableTotpPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type DisableTotpPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; export interface DisconnectAccountPayload { clientMutationId?: string | null; result?: boolean | null; @@ -3133,6 +3716,30 @@ export type DisconnectAccountPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface EnableEmailMfaPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type EnableEmailMfaPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface EnableSmsMfaPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type EnableSmsMfaPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface EnableTotpPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type EnableTotpPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; export interface ExtendTokenExpiresPayload { clientMutationId?: string | null; result?: ExtendTokenExpiresRecord[] | null; @@ -3149,6 +3756,14 @@ export interface ForgotPasswordPayload { export type ForgotPasswordPayloadSelect = { clientMutationId?: boolean; }; +export interface GenerateBackupCodesPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type GenerateBackupCodesPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; export interface LinkIdentityPayload { clientMutationId?: string | null; result?: boolean | null; @@ -3157,27 +3772,30 @@ export type LinkIdentityPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface MintAccessTokenPayload { + clientMutationId?: string | null; + result?: MintAccessTokenRecord | null; +} +export type MintAccessTokenPayloadSelect = { + clientMutationId?: boolean; + result?: { + select: MintAccessTokenRecordSelect; + }; +}; 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; + /** The logical bucket row that was queued for reconciliation. */ + bucketId: string; + bucketKey: string; + /** The reconciler job enqueued to provision this bucket. */ + jobId: string; + /** The physical bucket name already recorded, or null when reconciliation has not completed. */ + physicalName?: string | null; } export type ProvisionBucketPayloadSelect = { - accessType?: boolean; - bucketName?: boolean; - endpoint?: boolean; - error?: boolean; - provider?: boolean; - success?: boolean; + bucketId?: boolean; + bucketKey?: boolean; + jobId?: boolean; + physicalName?: boolean; }; export interface ProvisionNewUserPayload { clientMutationId?: string | null; @@ -3187,6 +3805,16 @@ export type ProvisionNewUserPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface RefreshAccessTokenPayload { + clientMutationId?: string | null; + result?: RefreshAccessTokenRecord | null; +} +export type RefreshAccessTokenPayloadSelect = { + clientMutationId?: boolean; + result?: { + select: RefreshAccessTokenRecordSelect; + }; +}; export interface RequestCrossOriginTokenPayload { clientMutationId?: string | null; result?: string | null; @@ -3251,6 +3879,22 @@ export type SetPasswordPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface SetPrincipalEntitiesPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type SetPrincipalEntitiesPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface SetPrincipalScopePayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type SetPrincipalScopePayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; export interface SignInPayload { clientMutationId?: string | null; result?: SignInRecord | null; @@ -3271,6 +3915,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 +3951,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; @@ -3307,6 +3971,14 @@ export type SignUpSmsPayloadSelect = { select: SignUpSmsRecordSelect; }; }; +export interface UpdatePrincipalPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type UpdatePrincipalPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; export interface VerifyEmailPayload { clientMutationId?: string | null; result?: boolean | null; @@ -3519,51 +4191,6 @@ export type CreatePrincipalPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; -export interface CreatePrincipalEntityPayload { - clientMutationId?: string | null; - /** The `PrincipalEntity` that was created by this mutation. */ - principalEntity?: PrincipalEntity | null; - principalEntityEdge?: PrincipalEntityEdge | null; -} -export type CreatePrincipalEntityPayloadSelect = { - clientMutationId?: boolean; - principalEntity?: { - select: PrincipalEntitySelect; - }; - principalEntityEdge?: { - select: PrincipalEntityEdgeSelect; - }; -}; -export interface UpdatePrincipalEntityPayload { - clientMutationId?: string | null; - /** The `PrincipalEntity` that was updated by this mutation. */ - principalEntity?: PrincipalEntity | null; - principalEntityEdge?: PrincipalEntityEdge | null; -} -export type UpdatePrincipalEntityPayloadSelect = { - clientMutationId?: boolean; - principalEntity?: { - select: PrincipalEntitySelect; - }; - principalEntityEdge?: { - select: PrincipalEntityEdgeSelect; - }; -}; -export interface DeletePrincipalEntityPayload { - clientMutationId?: string | null; - /** The `PrincipalEntity` that was deleted by this mutation. */ - principalEntity?: PrincipalEntity | null; - principalEntityEdge?: PrincipalEntityEdge | null; -} -export type DeletePrincipalEntityPayloadSelect = { - clientMutationId?: boolean; - principalEntity?: { - select: PrincipalEntitySelect; - }; - principalEntityEdge?: { - select: PrincipalEntityEdgeSelect; - }; -}; export interface CreateRoleTypePayload { clientMutationId?: string | null; /** The `RoleType` that was created by this mutation. */ @@ -3654,6 +4281,96 @@ export type DeleteUserPayloadSelect = { select: UserEdgeSelect; }; }; +export interface CreateUserSettingPayload { + clientMutationId?: string | null; + /** The `UserSetting` that was created by this mutation. */ + userSetting?: UserSetting | null; + userSettingEdge?: UserSettingEdge | null; +} +export type CreateUserSettingPayloadSelect = { + clientMutationId?: boolean; + userSetting?: { + select: UserSettingSelect; + }; + userSettingEdge?: { + select: UserSettingEdgeSelect; + }; +}; +export interface UpdateUserSettingPayload { + clientMutationId?: string | null; + /** The `UserSetting` that was updated by this mutation. */ + userSetting?: UserSetting | null; + userSettingEdge?: UserSettingEdge | null; +} +export type UpdateUserSettingPayloadSelect = { + clientMutationId?: boolean; + userSetting?: { + select: UserSettingSelect; + }; + userSettingEdge?: { + select: UserSettingEdgeSelect; + }; +}; +export interface DeleteUserSettingPayload { + clientMutationId?: string | null; + /** The `UserSetting` that was deleted by this mutation. */ + userSetting?: UserSetting | null; + userSettingEdge?: UserSettingEdge | null; +} +export type DeleteUserSettingPayloadSelect = { + clientMutationId?: boolean; + userSetting?: { + select: UserSettingSelect; + }; + userSettingEdge?: { + select: UserSettingEdgeSelect; + }; +}; +export interface CreateUserSettingsSecurityPayload { + clientMutationId?: string | null; + /** The `UserSettingsSecurity` that was created by this mutation. */ + userSettingsSecurity?: UserSettingsSecurity | null; + userSettingsSecurityEdge?: UserSettingsSecurityEdge | null; +} +export type CreateUserSettingsSecurityPayloadSelect = { + clientMutationId?: boolean; + userSettingsSecurity?: { + select: UserSettingsSecuritySelect; + }; + userSettingsSecurityEdge?: { + select: UserSettingsSecurityEdgeSelect; + }; +}; +export interface UpdateUserSettingsSecurityPayload { + clientMutationId?: string | null; + /** The `UserSettingsSecurity` that was updated by this mutation. */ + userSettingsSecurity?: UserSettingsSecurity | null; + userSettingsSecurityEdge?: UserSettingsSecurityEdge | null; +} +export type UpdateUserSettingsSecurityPayloadSelect = { + clientMutationId?: boolean; + userSettingsSecurity?: { + select: UserSettingsSecuritySelect; + }; + userSettingsSecurityEdge?: { + select: UserSettingsSecurityEdgeSelect; + }; +}; +export interface DeleteUserSettingsSecurityPayload { + clientMutationId?: string | null; + /** The `UserSettingsSecurity` that was deleted by this mutation. */ + userSettingsSecurity?: UserSettingsSecurity | null; + userSettingsSecurityEdge?: UserSettingsSecurityEdge | null; +} +export type DeleteUserSettingsSecurityPayloadSelect = { + clientMutationId?: boolean; + userSettingsSecurity?: { + select: UserSettingsSecuritySelect; + }; + userSettingsSecurityEdge?: { + select: UserSettingsSecurityEdgeSelect; + }; +}; export interface CreateWebauthnCredentialPayload { clientMutationId?: string | null; /** The `WebauthnCredential` that was created by this mutation. */ @@ -3699,6 +4416,24 @@ export type DeleteWebauthnCredentialPayloadSelect = { select: WebauthnCredentialEdgeSelect; }; }; +export interface CompleteMfaChallengeRecord { + accessToken?: string | null; + accessTokenExpiresAt?: string | null; + deviceApprovalRequired?: boolean | null; + id?: string | null; + isVerified?: boolean | null; + outDeviceToken?: string | null; + outUserId?: string | null; +} +export type CompleteMfaChallengeRecordSelect = { + accessToken?: boolean; + accessTokenExpiresAt?: boolean; + deviceApprovalRequired?: boolean; + id?: boolean; + isVerified?: boolean; + outDeviceToken?: boolean; + outUserId?: boolean; +}; export interface CreateApiKeyRecord { apiKey?: string | null; expiresAt?: string | null; @@ -3729,23 +4464,59 @@ export type ExtendTokenExpiresRecordSelect = { id?: boolean; sessionId?: boolean; }; +export interface MintAccessTokenRecord { + accessExpiresAt?: string | null; + accessToken?: string | null; + principalUserId?: string | null; + refreshExpiresAt?: string | null; + refreshToken?: string | null; + sessionId?: string | null; +} +export type MintAccessTokenRecordSelect = { + accessExpiresAt?: boolean; + accessToken?: boolean; + principalUserId?: boolean; + refreshExpiresAt?: boolean; + refreshToken?: boolean; + sessionId?: boolean; +}; +export interface RefreshAccessTokenRecord { + accessExpiresAt?: string | null; + accessToken?: string | null; + principalUserId?: string | null; + refreshExpiresAt?: string | null; + refreshToken?: string | null; + sessionId?: string | null; +} +export type RefreshAccessTokenRecordSelect = { + accessExpiresAt?: boolean; + accessToken?: boolean; + principalUserId?: boolean; + refreshExpiresAt?: boolean; + refreshToken?: boolean; + sessionId?: boolean; +}; export interface SignInRecord { accessToken?: string | null; accessTokenExpiresAt?: string | null; + deviceApprovalRequired?: boolean | null; id?: string | null; isVerified?: boolean | null; mfaChallengeToken?: string | null; mfaRequired?: boolean | null; + outDeviceToken?: string | null; totpEnabled?: boolean | null; userId?: string | null; } export type SignInRecordSelect = { accessToken?: boolean; accessTokenExpiresAt?: boolean; + deviceApprovalRequired?: boolean; id?: boolean; isVerified?: boolean; mfaChallengeToken?: boolean; mfaRequired?: boolean; + outDeviceToken?: boolean; totpEnabled?: boolean; userId?: boolean; }; @@ -3765,14 +4536,32 @@ export type SignInCrossOriginRecordSelect = { totpEnabled?: boolean; userId?: boolean; }; +export interface SignInMagicLinkRecord { + accessToken?: string | null; + accessTokenExpiresAt?: string | null; + deviceApprovalRequired?: boolean | null; + outDeviceToken?: string | null; + userId?: string | null; +} +export type SignInMagicLinkRecordSelect = { + accessToken?: boolean; + accessTokenExpiresAt?: boolean; + deviceApprovalRequired?: boolean; + outDeviceToken?: boolean; + userId?: boolean; +}; export interface SignInSmsOtpRecord { accessToken?: string | null; accessTokenExpiresAt?: string | null; + deviceApprovalRequired?: boolean | null; + outDeviceToken?: string | null; userId?: string | null; } export type SignInSmsOtpRecordSelect = { accessToken?: boolean; accessTokenExpiresAt?: boolean; + deviceApprovalRequired?: boolean; + outDeviceToken?: boolean; userId?: boolean; }; export interface SignUpRecord { @@ -3780,6 +4569,7 @@ export interface SignUpRecord { accessTokenExpiresAt?: string | null; id?: string | null; isVerified?: boolean | null; + outDeviceToken?: string | null; totpEnabled?: boolean | null; userId?: string | null; } @@ -3788,17 +4578,32 @@ export type SignUpRecordSelect = { accessTokenExpiresAt?: boolean; id?: boolean; isVerified?: boolean; + outDeviceToken?: boolean; totpEnabled?: boolean; userId?: boolean; }; +export interface SignUpMagicLinkRecord { + accessToken?: string | null; + accessTokenExpiresAt?: string | null; + outDeviceToken?: string | null; + userId?: string | null; +} +export type SignUpMagicLinkRecordSelect = { + accessToken?: boolean; + accessTokenExpiresAt?: boolean; + outDeviceToken?: boolean; + userId?: boolean; +}; export interface SignUpSmsRecord { accessToken?: string | null; accessTokenExpiresAt?: string | null; + outDeviceToken?: string | null; userId?: string | null; } export type SignUpSmsRecordSelect = { accessToken?: boolean; accessTokenExpiresAt?: boolean; + outDeviceToken?: boolean; userId?: boolean; }; /** A `AuditLogAuth` edge in the connection. */ @@ -3849,18 +4654,6 @@ export type PhoneNumberEdgeSelect = { select: PhoneNumberSelect; }; }; -/** A `PrincipalEntity` edge in the connection. */ -export interface PrincipalEntityEdge { - cursor?: string | null; - /** The `PrincipalEntity` at the end of the edge. */ - node?: PrincipalEntity | null; -} -export type PrincipalEntityEdgeSelect = { - cursor?: boolean; - node?: { - select: PrincipalEntitySelect; - }; -}; /** A `RoleType` edge in the connection. */ export interface RoleTypeEdge { cursor?: string | null; @@ -3885,6 +4678,30 @@ export type UserEdgeSelect = { select: UserSelect; }; }; +/** A `UserSetting` edge in the connection. */ +export interface UserSettingEdge { + cursor?: string | null; + /** The `UserSetting` at the end of the edge. */ + node?: UserSetting | null; +} +export type UserSettingEdgeSelect = { + cursor?: boolean; + node?: { + select: UserSettingSelect; + }; +}; +/** A `UserSettingsSecurity` edge in the connection. */ +export interface UserSettingsSecurityEdge { + cursor?: string | null; + /** The `UserSettingsSecurity` at the end of the edge. */ + node?: UserSettingsSecurity | null; +} +export type UserSettingsSecurityEdgeSelect = { + cursor?: boolean; + node?: { + select: UserSettingsSecuritySelect; + }; +}; /** A `WebauthnCredential` edge in the connection. */ export interface WebauthnCredentialEdge { cursor?: string | null; diff --git a/sdk/constructive-cli/src/auth/orm/models/index.ts b/sdk/constructive-cli/src/auth/orm/models/index.ts index 16f584ff03..32994d8c84 100644 --- a/sdk/constructive-cli/src/auth/orm/models/index.ts +++ b/sdk/constructive-cli/src/auth/orm/models/index.ts @@ -15,4 +15,6 @@ export { PrincipalScopeOverrideModel } from './principalScopeOverride'; export { RoleTypeModel } from './roleType'; export { UserConnectedAccountModel } from './userConnectedAccount'; export { UserModel } from './user'; +export { UserSettingModel } from './userSetting'; +export { UserSettingsSecurityModel } from './userSettingsSecurity'; export { WebauthnCredentialModel } from './webauthnCredential'; diff --git a/sdk/constructive-cli/src/auth/orm/models/principalEntity.ts b/sdk/constructive-cli/src/auth/orm/models/principalEntity.ts index 0c265501f5..516e110743 100644 --- a/sdk/constructive-cli/src/auth/orm/models/principalEntity.ts +++ b/sdk/constructive-cli/src/auth/orm/models/principalEntity.ts @@ -171,75 +171,4 @@ export class PrincipalEntityModel { variables, }); } - update( - args: UpdateArgs< - S, - { - id: string; - }, - PrincipalEntityPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updatePrincipalEntity: { - principalEntity: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'PrincipalEntity', - 'updatePrincipalEntity', - 'principalEntity', - args.select, - args.where.id, - args.data, - 'UpdatePrincipalEntityInput', - 'id', - 'principalEntityPatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PrincipalEntity', - fieldName: 'updatePrincipalEntity', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deletePrincipalEntity: { - principalEntity: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'PrincipalEntity', - 'deletePrincipalEntity', - 'principalEntity', - { - id: args.where.id, - }, - 'DeletePrincipalEntityInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PrincipalEntity', - fieldName: 'deletePrincipalEntity', - document, - variables, - }); - } } diff --git a/sdk/constructive-cli/src/auth/orm/models/userSetting.ts b/sdk/constructive-cli/src/auth/orm/models/userSetting.ts new file mode 100644 index 0000000000..7a880e40e5 --- /dev/null +++ b/sdk/constructive-cli/src/auth/orm/models/userSetting.ts @@ -0,0 +1,245 @@ +/** + * UserSetting 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 { + UserSetting, + UserSettingWithRelations, + UserSettingSelect, + UserSettingFilter, + UserSettingOrderBy, + CreateUserSettingInput, + UpdateUserSettingInput, + UserSettingPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class UserSettingModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + userSettings: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'UserSetting', + 'userSettings', + 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, + }, + 'UserSettingFilter', + 'UserSettingOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'UserSetting', + fieldName: 'userSettings', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + userSetting: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'UserSetting', + 'userSettings', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'UserSettingFilter', + 'UserSettingOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'UserSetting', + fieldName: 'userSetting', + document, + variables, + transform: (data: { + userSettings?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + userSetting: data.userSettings?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + userSetting: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'UserSetting', + 'userSettings', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'UserSettingFilter', + 'UserSettingOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'UserSetting', + fieldName: 'userSetting', + document, + variables, + transform: (data: { + userSettings?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + userSetting: data.userSettings?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createUserSetting: { + userSetting: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'UserSetting', + 'createUserSetting', + 'userSetting', + args.select, + args.data, + 'CreateUserSettingInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'UserSetting', + fieldName: 'createUserSetting', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + UserSettingPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateUserSetting: { + userSetting: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'UserSetting', + 'updateUserSetting', + 'userSetting', + args.select, + args.where.id, + args.data, + 'UpdateUserSettingInput', + 'id', + 'userSettingPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'UserSetting', + fieldName: 'updateUserSetting', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteUserSetting: { + userSetting: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'UserSetting', + 'deleteUserSetting', + 'userSetting', + { + id: args.where.id, + }, + 'DeleteUserSettingInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'UserSetting', + fieldName: 'deleteUserSetting', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/auth/orm/models/userSettingsSecurity.ts b/sdk/constructive-cli/src/auth/orm/models/userSettingsSecurity.ts new file mode 100644 index 0000000000..c5965bf3ff --- /dev/null +++ b/sdk/constructive-cli/src/auth/orm/models/userSettingsSecurity.ts @@ -0,0 +1,247 @@ +/** + * UserSettingsSecurity 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 { + UserSettingsSecurity, + UserSettingsSecurityWithRelations, + UserSettingsSecuritySelect, + UserSettingsSecurityFilter, + UserSettingsSecurityOrderBy, + CreateUserSettingsSecurityInput, + UpdateUserSettingsSecurityInput, + UserSettingsSecurityPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class UserSettingsSecurityModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + userSettingsSecurities: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'UserSettingsSecurity', + 'userSettingsSecurities', + 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, + }, + 'UserSettingsSecurityFilter', + 'UserSettingsSecurityOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'UserSettingsSecurity', + fieldName: 'userSettingsSecurities', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + userSettingsSecurity: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'UserSettingsSecurity', + 'userSettingsSecurities', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'UserSettingsSecurityFilter', + 'UserSettingsSecurityOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'UserSettingsSecurity', + fieldName: 'userSettingsSecurity', + document, + variables, + transform: (data: { + userSettingsSecurities?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + userSettingsSecurity: data.userSettingsSecurities?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + userSettingsSecurity: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'UserSettingsSecurity', + 'userSettingsSecurities', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'UserSettingsSecurityFilter', + 'UserSettingsSecurityOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'UserSettingsSecurity', + fieldName: 'userSettingsSecurity', + document, + variables, + transform: (data: { + userSettingsSecurities?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + userSettingsSecurity: data.userSettingsSecurities?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createUserSettingsSecurity: { + userSettingsSecurity: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'UserSettingsSecurity', + 'createUserSettingsSecurity', + 'userSettingsSecurity', + args.select, + args.data, + 'CreateUserSettingsSecurityInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'UserSettingsSecurity', + fieldName: 'createUserSettingsSecurity', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + UserSettingsSecurityPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateUserSettingsSecurity: { + userSettingsSecurity: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'UserSettingsSecurity', + 'updateUserSettingsSecurity', + 'userSettingsSecurity', + args.select, + args.where.id, + args.data, + 'UpdateUserSettingsSecurityInput', + 'id', + 'userSettingsSecurityPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'UserSettingsSecurity', + fieldName: 'updateUserSettingsSecurity', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteUserSettingsSecurity: { + userSettingsSecurity: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'UserSettingsSecurity', + 'deleteUserSettingsSecurity', + 'userSettingsSecurity', + { + id: args.where.id, + }, + 'DeleteUserSettingsSecurityInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'UserSettingsSecurity', + fieldName: 'deleteUserSettingsSecurity', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/auth/orm/mutation/index.ts b/sdk/constructive-cli/src/auth/orm/mutation/index.ts index ae0973c7fb..fdaa7b9a5f 100644 --- a/sdk/constructive-cli/src/auth/orm/mutation/index.ts +++ b/sdk/constructive-cli/src/auth/orm/mutation/index.ts @@ -7,19 +7,33 @@ import { OrmClient } from '../client'; import { QueryBuilder, buildCustomDocument } from '../query-builder'; import type { InferSelectResult, StrictSelect } from '../select-types'; import type { + ApproveDeviceInput, CheckPasswordInput, + CompleteMfaChallengeInput, ConfirmDeleteAccountInput, + ConfirmTotpSetupInput, CreateApiKeyInput, + CreateChildPrincipalInput, CreateOrgApiKeyInput, CreateOrgPrincipalInput, + CreatePrincipalFromPresetInput, DeleteOrgPrincipalInput, DeletePrincipalInput, + DisableEmailMfaInput, + DisableSmsMfaInput, + DisableTotpInput, DisconnectAccountInput, + EnableEmailMfaInput, + EnableSmsMfaInput, + EnableTotpInput, ExtendTokenExpiresInput, ForgotPasswordInput, + GenerateBackupCodesInput, LinkIdentityInput, + MintAccessTokenInput, ProvisionBucketInput, ProvisionNewUserInput, + RefreshAccessTokenInput, RequestCrossOriginTokenInput, ResetPasswordInput, RevokeApiKeyInput, @@ -28,28 +42,47 @@ import type { SendAccountDeletionEmailInput, SendVerificationEmailInput, SetPasswordInput, + SetPrincipalEntitiesInput, + SetPrincipalScopeInput, SignInInput, SignInCrossOriginInput, + SignInMagicLinkInput, SignInSmsOtpInput, SignOutInput, SignUpInput, + SignUpMagicLinkInput, SignUpSmsInput, + UpdatePrincipalInput, VerifyEmailInput, VerifyPasswordInput, VerifyTotpInput, + ApproveDevicePayload, CheckPasswordPayload, + CompleteMfaChallengePayload, ConfirmDeleteAccountPayload, + ConfirmTotpSetupPayload, CreateApiKeyPayload, + CreateChildPrincipalPayload, CreateOrgApiKeyPayload, CreateOrgPrincipalPayload, + CreatePrincipalFromPresetPayload, DeleteOrgPrincipalPayload, DeletePrincipalPayload, + DisableEmailMfaPayload, + DisableSmsMfaPayload, + DisableTotpPayload, DisconnectAccountPayload, + EnableEmailMfaPayload, + EnableSmsMfaPayload, + EnableTotpPayload, ExtendTokenExpiresPayload, ForgotPasswordPayload, + GenerateBackupCodesPayload, LinkIdentityPayload, + MintAccessTokenPayload, ProvisionBucketPayload, ProvisionNewUserPayload, + RefreshAccessTokenPayload, RequestCrossOriginTokenPayload, ResetPasswordPayload, RevokeApiKeyPayload, @@ -58,28 +91,47 @@ import type { SendAccountDeletionEmailPayload, SendVerificationEmailPayload, SetPasswordPayload, + SetPrincipalEntitiesPayload, + SetPrincipalScopePayload, SignInPayload, SignInCrossOriginPayload, + SignInMagicLinkPayload, SignInSmsOtpPayload, SignOutPayload, SignUpPayload, + SignUpMagicLinkPayload, SignUpSmsPayload, + UpdatePrincipalPayload, VerifyEmailPayload, VerifyPasswordPayload, VerifyTotpPayload, + ApproveDevicePayloadSelect, CheckPasswordPayloadSelect, + CompleteMfaChallengePayloadSelect, ConfirmDeleteAccountPayloadSelect, + ConfirmTotpSetupPayloadSelect, CreateApiKeyPayloadSelect, + CreateChildPrincipalPayloadSelect, CreateOrgApiKeyPayloadSelect, CreateOrgPrincipalPayloadSelect, + CreatePrincipalFromPresetPayloadSelect, DeleteOrgPrincipalPayloadSelect, DeletePrincipalPayloadSelect, + DisableEmailMfaPayloadSelect, + DisableSmsMfaPayloadSelect, + DisableTotpPayloadSelect, DisconnectAccountPayloadSelect, + EnableEmailMfaPayloadSelect, + EnableSmsMfaPayloadSelect, + EnableTotpPayloadSelect, ExtendTokenExpiresPayloadSelect, ForgotPasswordPayloadSelect, + GenerateBackupCodesPayloadSelect, LinkIdentityPayloadSelect, + MintAccessTokenPayloadSelect, ProvisionBucketPayloadSelect, ProvisionNewUserPayloadSelect, + RefreshAccessTokenPayloadSelect, RequestCrossOriginTokenPayloadSelect, ResetPasswordPayloadSelect, RevokeApiKeyPayloadSelect, @@ -88,56 +140,101 @@ import type { SendAccountDeletionEmailPayloadSelect, SendVerificationEmailPayloadSelect, SetPasswordPayloadSelect, + SetPrincipalEntitiesPayloadSelect, + SetPrincipalScopePayloadSelect, SignInPayloadSelect, SignInCrossOriginPayloadSelect, + SignInMagicLinkPayloadSelect, SignInSmsOtpPayloadSelect, SignOutPayloadSelect, SignUpPayloadSelect, + SignUpMagicLinkPayloadSelect, SignUpSmsPayloadSelect, + UpdatePrincipalPayloadSelect, VerifyEmailPayloadSelect, VerifyPasswordPayloadSelect, VerifyTotpPayloadSelect, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; +export interface ApproveDeviceVariables { + input: ApproveDeviceInput; +} export interface CheckPasswordVariables { input: CheckPasswordInput; } +export interface CompleteMfaChallengeVariables { + input: CompleteMfaChallengeInput; +} export interface ConfirmDeleteAccountVariables { input: ConfirmDeleteAccountInput; } +export interface ConfirmTotpSetupVariables { + input: ConfirmTotpSetupInput; +} export interface CreateApiKeyVariables { input: CreateApiKeyInput; } +export interface CreateChildPrincipalVariables { + input: CreateChildPrincipalInput; +} export interface CreateOrgApiKeyVariables { input: CreateOrgApiKeyInput; } export interface CreateOrgPrincipalVariables { input: CreateOrgPrincipalInput; } +export interface CreatePrincipalFromPresetVariables { + input: CreatePrincipalFromPresetInput; +} export interface DeleteOrgPrincipalVariables { input: DeleteOrgPrincipalInput; } export interface DeletePrincipalVariables { input: DeletePrincipalInput; } +export interface DisableEmailMfaVariables { + input: DisableEmailMfaInput; +} +export interface DisableSmsMfaVariables { + input: DisableSmsMfaInput; +} +export interface DisableTotpVariables { + input: DisableTotpInput; +} export interface DisconnectAccountVariables { input: DisconnectAccountInput; } +export interface EnableEmailMfaVariables { + input: EnableEmailMfaInput; +} +export interface EnableSmsMfaVariables { + input: EnableSmsMfaInput; +} +export interface EnableTotpVariables { + input: EnableTotpInput; +} export interface ExtendTokenExpiresVariables { input: ExtendTokenExpiresInput; } export interface ForgotPasswordVariables { input: ForgotPasswordInput; } +export interface GenerateBackupCodesVariables { + input: GenerateBackupCodesInput; +} export interface LinkIdentityVariables { input: LinkIdentityInput; } +export interface MintAccessTokenVariables { + input: MintAccessTokenInput; +} /** * Variables for provisionBucket - * 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. + * Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. */ export interface ProvisionBucketVariables { input: ProvisionBucketInput; @@ -145,6 +242,9 @@ export interface ProvisionBucketVariables { export interface ProvisionNewUserVariables { input: ProvisionNewUserInput; } +export interface RefreshAccessTokenVariables { + input: RefreshAccessTokenInput; +} export interface RequestCrossOriginTokenVariables { input: RequestCrossOriginTokenInput; } @@ -169,12 +269,21 @@ export interface SendVerificationEmailVariables { export interface SetPasswordVariables { input: SetPasswordInput; } +export interface SetPrincipalEntitiesVariables { + input: SetPrincipalEntitiesInput; +} +export interface SetPrincipalScopeVariables { + input: SetPrincipalScopeInput; +} export interface SignInVariables { input: SignInInput; } export interface SignInCrossOriginVariables { input: SignInCrossOriginInput; } +export interface SignInMagicLinkVariables { + input: SignInMagicLinkInput; +} export interface SignInSmsOtpVariables { input: SignInSmsOtpInput; } @@ -184,9 +293,15 @@ export interface SignOutVariables { export interface SignUpVariables { input: SignUpInput; } +export interface SignUpMagicLinkVariables { + input: SignUpMagicLinkInput; +} export interface SignUpSmsVariables { input: SignUpSmsInput; } +export interface UpdatePrincipalVariables { + input: UpdatePrincipalInput; +} export interface VerifyEmailVariables { input: VerifyEmailInput; } @@ -198,6 +313,35 @@ export interface VerifyTotpVariables { } export function createMutationOperations(client: OrmClient) { return { + approveDevice: ( + args: ApproveDeviceVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + approveDevice: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'ApproveDevice', + fieldName: 'approveDevice', + ...buildCustomDocument( + 'mutation', + 'ApproveDevice', + 'approveDevice', + options.select, + args, + [ + { + name: 'input', + type: 'ApproveDeviceInput!', + }, + ], + connectionFieldsMap, + 'ApproveDevicePayload' + ), + }), checkPassword: ( args: CheckPasswordVariables, options: { @@ -227,6 +371,35 @@ export function createMutationOperations(client: OrmClient) { 'CheckPasswordPayload' ), }), + completeMfaChallenge: ( + args: CompleteMfaChallengeVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + completeMfaChallenge: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'CompleteMfaChallenge', + fieldName: 'completeMfaChallenge', + ...buildCustomDocument( + 'mutation', + 'CompleteMfaChallenge', + 'completeMfaChallenge', + options.select, + args, + [ + { + name: 'input', + type: 'CompleteMfaChallengeInput!', + }, + ], + connectionFieldsMap, + 'CompleteMfaChallengePayload' + ), + }), confirmDeleteAccount: ( args: ConfirmDeleteAccountVariables, options: { @@ -256,6 +429,35 @@ export function createMutationOperations(client: OrmClient) { 'ConfirmDeleteAccountPayload' ), }), + confirmTotpSetup: ( + args: ConfirmTotpSetupVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + confirmTotpSetup: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'ConfirmTotpSetup', + fieldName: 'confirmTotpSetup', + ...buildCustomDocument( + 'mutation', + 'ConfirmTotpSetup', + 'confirmTotpSetup', + options.select, + args, + [ + { + name: 'input', + type: 'ConfirmTotpSetupInput!', + }, + ], + connectionFieldsMap, + 'ConfirmTotpSetupPayload' + ), + }), createApiKey: ( args: CreateApiKeyVariables, options: { @@ -285,6 +487,35 @@ export function createMutationOperations(client: OrmClient) { 'CreateApiKeyPayload' ), }), + createChildPrincipal: ( + args: CreateChildPrincipalVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + createChildPrincipal: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'CreateChildPrincipal', + fieldName: 'createChildPrincipal', + ...buildCustomDocument( + 'mutation', + 'CreateChildPrincipal', + 'createChildPrincipal', + options.select, + args, + [ + { + name: 'input', + type: 'CreateChildPrincipalInput!', + }, + ], + connectionFieldsMap, + 'CreateChildPrincipalPayload' + ), + }), createOrgApiKey: ( args: CreateOrgApiKeyVariables, options: { @@ -343,6 +574,35 @@ export function createMutationOperations(client: OrmClient) { 'CreateOrgPrincipalPayload' ), }), + createPrincipalFromPreset: ( + args: CreatePrincipalFromPresetVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + createPrincipalFromPreset: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'CreatePrincipalFromPreset', + fieldName: 'createPrincipalFromPreset', + ...buildCustomDocument( + 'mutation', + 'CreatePrincipalFromPreset', + 'createPrincipalFromPreset', + options.select, + args, + [ + { + name: 'input', + type: 'CreatePrincipalFromPresetInput!', + }, + ], + connectionFieldsMap, + 'CreatePrincipalFromPresetPayload' + ), + }), deleteOrgPrincipal: ( args: DeleteOrgPrincipalVariables, options: { @@ -401,6 +661,93 @@ export function createMutationOperations(client: OrmClient) { 'DeletePrincipalPayload' ), }), + disableEmailMfa: ( + args: DisableEmailMfaVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + disableEmailMfa: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'DisableEmailMfa', + fieldName: 'disableEmailMfa', + ...buildCustomDocument( + 'mutation', + 'DisableEmailMfa', + 'disableEmailMfa', + options.select, + args, + [ + { + name: 'input', + type: 'DisableEmailMfaInput!', + }, + ], + connectionFieldsMap, + 'DisableEmailMfaPayload' + ), + }), + disableSmsMfa: ( + args: DisableSmsMfaVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + disableSmsMfa: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'DisableSmsMfa', + fieldName: 'disableSmsMfa', + ...buildCustomDocument( + 'mutation', + 'DisableSmsMfa', + 'disableSmsMfa', + options.select, + args, + [ + { + name: 'input', + type: 'DisableSmsMfaInput!', + }, + ], + connectionFieldsMap, + 'DisableSmsMfaPayload' + ), + }), + disableTotp: ( + args: DisableTotpVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + disableTotp: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'DisableTotp', + fieldName: 'disableTotp', + ...buildCustomDocument( + 'mutation', + 'DisableTotp', + 'disableTotp', + options.select, + args, + [ + { + name: 'input', + type: 'DisableTotpInput!', + }, + ], + connectionFieldsMap, + 'DisableTotpPayload' + ), + }), disconnectAccount: ( args: DisconnectAccountVariables, options: { @@ -430,6 +777,93 @@ export function createMutationOperations(client: OrmClient) { 'DisconnectAccountPayload' ), }), + enableEmailMfa: ( + args: EnableEmailMfaVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + enableEmailMfa: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'EnableEmailMfa', + fieldName: 'enableEmailMfa', + ...buildCustomDocument( + 'mutation', + 'EnableEmailMfa', + 'enableEmailMfa', + options.select, + args, + [ + { + name: 'input', + type: 'EnableEmailMfaInput!', + }, + ], + connectionFieldsMap, + 'EnableEmailMfaPayload' + ), + }), + enableSmsMfa: ( + args: EnableSmsMfaVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + enableSmsMfa: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'EnableSmsMfa', + fieldName: 'enableSmsMfa', + ...buildCustomDocument( + 'mutation', + 'EnableSmsMfa', + 'enableSmsMfa', + options.select, + args, + [ + { + name: 'input', + type: 'EnableSmsMfaInput!', + }, + ], + connectionFieldsMap, + 'EnableSmsMfaPayload' + ), + }), + enableTotp: ( + args: EnableTotpVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + enableTotp: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'EnableTotp', + fieldName: 'enableTotp', + ...buildCustomDocument( + 'mutation', + 'EnableTotp', + 'enableTotp', + options.select, + args, + [ + { + name: 'input', + type: 'EnableTotpInput!', + }, + ], + connectionFieldsMap, + 'EnableTotpPayload' + ), + }), extendTokenExpires: ( args: ExtendTokenExpiresVariables, options: { @@ -488,6 +922,35 @@ export function createMutationOperations(client: OrmClient) { 'ForgotPasswordPayload' ), }), + generateBackupCodes: ( + args: GenerateBackupCodesVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + generateBackupCodes: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'GenerateBackupCodes', + fieldName: 'generateBackupCodes', + ...buildCustomDocument( + 'mutation', + 'GenerateBackupCodes', + 'generateBackupCodes', + options.select, + args, + [ + { + name: 'input', + type: 'GenerateBackupCodesInput!', + }, + ], + connectionFieldsMap, + 'GenerateBackupCodesPayload' + ), + }), linkIdentity: ( args: LinkIdentityVariables, options: { @@ -517,6 +980,35 @@ export function createMutationOperations(client: OrmClient) { 'LinkIdentityPayload' ), }), + mintAccessToken: ( + args: MintAccessTokenVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + mintAccessToken: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'MintAccessToken', + fieldName: 'mintAccessToken', + ...buildCustomDocument( + 'mutation', + 'MintAccessToken', + 'mintAccessToken', + options.select, + args, + [ + { + name: 'input', + type: 'MintAccessTokenInput!', + }, + ], + connectionFieldsMap, + 'MintAccessTokenPayload' + ), + }), provisionBucket: ( args: ProvisionBucketVariables, options: { @@ -575,6 +1067,35 @@ export function createMutationOperations(client: OrmClient) { 'ProvisionNewUserPayload' ), }), + refreshAccessToken: ( + args: RefreshAccessTokenVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + refreshAccessToken: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'RefreshAccessToken', + fieldName: 'refreshAccessToken', + ...buildCustomDocument( + 'mutation', + 'RefreshAccessToken', + 'refreshAccessToken', + options.select, + args, + [ + { + name: 'input', + type: 'RefreshAccessTokenInput!', + }, + ], + connectionFieldsMap, + 'RefreshAccessTokenPayload' + ), + }), requestCrossOriginToken: ( args: RequestCrossOriginTokenVariables, options: { @@ -807,6 +1328,64 @@ export function createMutationOperations(client: OrmClient) { 'SetPasswordPayload' ), }), + setPrincipalEntities: ( + args: SetPrincipalEntitiesVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + setPrincipalEntities: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SetPrincipalEntities', + fieldName: 'setPrincipalEntities', + ...buildCustomDocument( + 'mutation', + 'SetPrincipalEntities', + 'setPrincipalEntities', + options.select, + args, + [ + { + name: 'input', + type: 'SetPrincipalEntitiesInput!', + }, + ], + connectionFieldsMap, + 'SetPrincipalEntitiesPayload' + ), + }), + setPrincipalScope: ( + args: SetPrincipalScopeVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + setPrincipalScope: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SetPrincipalScope', + fieldName: 'setPrincipalScope', + ...buildCustomDocument( + 'mutation', + 'SetPrincipalScope', + 'setPrincipalScope', + options.select, + args, + [ + { + name: 'input', + type: 'SetPrincipalScopeInput!', + }, + ], + connectionFieldsMap, + 'SetPrincipalScopePayload' + ), + }), signIn: ( args: SignInVariables, options: { @@ -865,6 +1444,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 +1560,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: { @@ -981,6 +1618,35 @@ export function createMutationOperations(client: OrmClient) { 'SignUpSmsPayload' ), }), + updatePrincipal: ( + args: UpdatePrincipalVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + updatePrincipal: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'UpdatePrincipal', + fieldName: 'updatePrincipal', + ...buildCustomDocument( + 'mutation', + 'UpdatePrincipal', + 'updatePrincipal', + options.select, + args, + [ + { + name: 'input', + type: 'UpdatePrincipalInput!', + }, + ], + connectionFieldsMap, + 'UpdatePrincipalPayload' + ), + }), verifyEmail: ( args: VerifyEmailVariables, options: { diff --git a/sdk/constructive-cli/src/auth/orm/query/index.ts b/sdk/constructive-cli/src/auth/orm/query/index.ts index d13999f7b4..671fb80d21 100644 --- a/sdk/constructive-cli/src/auth/orm/query/index.ts +++ b/sdk/constructive-cli/src/auth/orm/query/index.ts @@ -6,7 +6,12 @@ import { OrmClient } from '../client'; import { QueryBuilder, buildCustomDocument } from '../query-builder'; import type { InferSelectResult, StrictSelect } from '../select-types'; -import type { User, UserSelect } from '../input-types'; +import type { + User, + GetMfaStatusRecord, + UserSelect, + GetMfaStatusRecordSelect, +} from '../input-types'; import { connectionFieldsMap } from '../input-types'; export interface RequireStepUpVariables { stepUpType?: string; @@ -93,6 +98,29 @@ export function createQueryOperations(client: OrmClient) { undefined ), }), + getMfaStatus: ( + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + getMfaStatus: InferSelectResult | null; + }>({ + client, + operation: 'query', + operationName: 'GetMfaStatus', + fieldName: 'getMfaStatus', + ...buildCustomDocument( + 'query', + 'GetMfaStatus', + 'getMfaStatus', + options.select, + undefined, + [], + connectionFieldsMap, + 'GetMfaStatusRecord' + ), + }), requireStepUp: ( args: RequireStepUpVariables, options?: { diff --git a/sdk/constructive-cli/src/compute/README.md b/sdk/constructive-cli/src/compute/README.md index 8d1e651e73..9b90e898f4 100644 --- a/sdk/constructive-cli/src/compute/README.md +++ b/sdk/constructive-cli/src/compute/README.md @@ -8,9 +8,9 @@ ## Overview -- **Tables:** 69 -- **Custom queries:** 1 -- **Custom mutations:** 28 +- **Tables:** 119 +- **Custom queries:** 2 +- **Custom mutations:** 58 **Generators:** ORM, CLI diff --git a/sdk/constructive-cli/src/compute/cli/README.md b/sdk/constructive-cli/src/compute/cli/README.md index 7d579e017c..e117b18576 100644 --- a/sdk/constructive-cli/src/compute/cli/README.md +++ b/sdk/constructive-cli/src/compute/cli/README.md @@ -26,6 +26,19 @@ csdk auth set-token | `context` | Manage API contexts (endpoints) | | `auth` | Manage authentication tokens | | `config` | Manage config key-value store (per-context) | +| `build` | build CRUD operations | +| `build-step` | buildStep CRUD operations | +| `builder-binding` | builderBinding CRUD operations | +| `content-preset` | contentPreset CRUD operations | +| `database-function-graph` | databaseFunctionGraph CRUD operations | +| `database-function-graph-execution` | databaseFunctionGraphExecution CRUD operations | +| `database-function-graph-execution-node-state` | databaseFunctionGraphExecutionNodeState CRUD operations | +| `database-function-graph-execution-output` | databaseFunctionGraphExecutionOutput CRUD operations | +| `database-graph-commit` | databaseGraphCommit CRUD operations | +| `database-graph-get-all-tree-nodes-record` | databaseGraphGetAllTreeNodesRecord CRUD operations | +| `database-graph-object` | databaseGraphObject CRUD operations | +| `database-graph-ref` | databaseGraphRef CRUD operations | +| `database-graph-store` | databaseGraphStore CRUD operations | | `db-preset` | dbPreset CRUD operations | | `function-api-binding` | functionApiBinding CRUD operations | | `function-capability-binding` | functionCapabilityBinding CRUD operations | @@ -44,6 +57,8 @@ csdk auth set-token | `function-invocation-attempt` | functionInvocationAttempt CRUD operations | | `function-invocation` | functionInvocation CRUD operations | | `get-all-tree-nodes-record` | getAllTreeNodesRecord CRUD operations | +| `image` | image CRUD operations | +| `image-grant` | imageGrant CRUD operations | | `infra-commit` | infraCommit CRUD operations | | `infra-get-all-tree-nodes-record` | infraGetAllTreeNodesRecord CRUD operations | | `infra-object` | infraObject CRUD operations | @@ -52,6 +67,9 @@ csdk auth set-token | `integration-provider` | integrationProvider CRUD operations | | `namespace` | namespace CRUD operations | | `namespace-event` | namespaceEvent CRUD operations | +| `platform-build` | platformBuild CRUD operations | +| `platform-build-step` | platformBuildStep CRUD operations | +| `platform-builder-binding` | platformBuilderBinding CRUD operations | | `platform-function-api-binding` | platformFunctionApiBinding CRUD operations | | `platform-function-capability-binding` | platformFunctionCapabilityBinding CRUD operations | | `platform-function-definition` | platformFunctionDefinition CRUD operations | @@ -60,18 +78,36 @@ csdk auth set-token | `platform-function-execution-log` | platformFunctionExecutionLog CRUD operations | | `platform-function-invocation-attempt` | platformFunctionInvocationAttempt CRUD operations | | `platform-function-invocation` | platformFunctionInvocation CRUD operations | +| `platform-image` | platformImage CRUD operations | +| `platform-image-grant` | platformImageGrant CRUD operations | | `platform-infra-commit` | platformInfraCommit CRUD operations | | `platform-infra-get-all-tree-nodes-record` | platformInfraGetAllTreeNodesRecord CRUD operations | | `platform-infra-object` | platformInfraObject CRUD operations | | `platform-infra-ref` | platformInfraRef CRUD operations | | `platform-infra-store` | platformInfraStore CRUD operations | +| `platform-k-8-s-resource-kind` | platformK8sResourceKind CRUD operations | +| `platform-k-8-s-spec-rule` | platformK8sSpecRule CRUD operations | | `platform-namespace` | platformNamespace CRUD operations | | `platform-namespace-event` | platformNamespaceEvent CRUD operations | +| `platform-proposal-comment` | platformProposalComment CRUD operations | +| `platform-proposal` | platformProposal CRUD operations | +| `platform-proposal-file-view` | platformProposalFileView CRUD operations | +| `platform-proposal-reaction` | platformProposalReaction CRUD operations | +| `platform-proposal-review` | platformProposalReview CRUD operations | +| `platform-proposals-chunk` | platformProposalsChunk CRUD operations | +| `platform-registry-binding` | platformRegistryBinding CRUD operations | +| `platform-registry` | platformRegistry CRUD operations | +| `platform-registry-grant` | platformRegistryGrant CRUD operations | +| `platform-repository` | platformRepository CRUD operations | +| `platform-repository-event` | platformRepositoryEvent CRUD operations | +| `platform-repository-required-check` | platformRepositoryRequiredCheck CRUD operations | +| `platform-repository-workflow` | platformRepositoryWorkflow CRUD operations | | `platform-resource` | platformResource CRUD operations | | `platform-resource-declared-capacity` | platformResourceDeclaredCapacity CRUD operations | | `platform-resource-definition` | platformResourceDefinition CRUD operations | | `platform-resource-event` | platformResourceEvent CRUD operations | | `platform-resource-installation` | platformResourceInstallation CRUD operations | +| `platform-resource-observed-storage` | platformResourceObservedStorage CRUD operations | | `platform-resource-status-check` | platformResourceStatusCheck CRUD operations | | `platform-resource-usage-log` | platformResourceUsageLog CRUD operations | | `platform-resource-usage-summary` | platformResourceUsageSummary CRUD operations | @@ -81,11 +117,25 @@ csdk auth set-token | `platform-resources-resolved-requirement` | platformResourcesResolvedRequirement CRUD operations | | `platform-webhook-endpoint` | platformWebhookEndpoint CRUD operations | | `platform-webhook-event` | platformWebhookEvent CRUD operations | +| `proposal-comment` | proposalComment CRUD operations | +| `proposal` | proposal CRUD operations | +| `proposal-file-view` | proposalFileView CRUD operations | +| `proposal-reaction` | proposalReaction CRUD operations | +| `proposal-review` | proposalReview CRUD operations | +| `proposals-chunk` | proposalsChunk CRUD operations | +| `registry-binding` | registryBinding CRUD operations | +| `registry` | registry CRUD operations | +| `registry-grant` | registryGrant CRUD operations | +| `repository` | repository CRUD operations | +| `repository-event` | repositoryEvent CRUD operations | +| `repository-required-check` | repositoryRequiredCheck CRUD operations | +| `repository-workflow` | repositoryWorkflow CRUD operations | | `resource` | resource CRUD operations | | `resource-declared-capacity` | resourceDeclaredCapacity CRUD operations | | `resource-definition` | resourceDefinition CRUD operations | | `resource-event` | resourceEvent CRUD operations | | `resource-installation` | resourceInstallation CRUD operations | +| `resource-observed-storage` | resourceObservedStorage CRUD operations | | `resource-status-check` | resourceStatusCheck CRUD operations | | `resource-usage-log` | resourceUsageLog CRUD operations | | `resource-usage-summary` | resourceUsageSummary CRUD operations | @@ -95,36 +145,68 @@ csdk auth set-token | `resources-resolved-requirement` | resourcesResolvedRequirement CRUD operations | | `webhook-endpoint` | webhookEndpoint CRUD operations | | `webhook-event` | webhookEvent CRUD operations | +| `database-read-function-graph` | databaseReadFunctionGraph | | `read-function-graph` | readFunctionGraph | | `add-edge` | addEdge | | `add-edge-and-save` | addEdgeAndSave | | `add-node` | addNode | | `add-node-and-save` | addNodeAndSave | +| `approve-node` | approveNode | | `copy-graph` | copyGraph | +| `database-add-edge` | databaseAddEdge | +| `database-add-edge-and-save` | databaseAddEdgeAndSave | +| `database-add-node` | databaseAddNode | +| `database-add-node-and-save` | databaseAddNodeAndSave | +| `database-approve-node` | databaseApproveNode | +| `database-copy-graph` | databaseCopyGraph | +| `database-create-function-graph` | databaseCreateFunctionGraph | +| `database-graph-init-empty-repo` | databaseGraphInitEmptyRepo | +| `database-graph-insert-node-at-path` | databaseGraphInsertNodeAtPath | +| `database-graph-insert-nodes-at-paths` | databaseGraphInsertNodesAtPaths | +| `database-graph-set-and-commit` | databaseGraphSetAndCommit | +| `database-graph-set-data-at-path` | databaseGraphSetDataAtPath | +| `database-graph-set-many-and-commit` | databaseGraphSetManyAndCommit | +| `database-import-definitions` | databaseImportDefinitions | +| `database-import-graph-json` | databaseImportGraphJson | +| `database-save-graph` | databaseSaveGraph | +| `database-start-execution` | databaseStartExecution | +| `database-validate-function-graph` | databaseValidateFunctionGraph | +| `function-invocations-create-sync` | functionInvocationsCreateSync | | `import-definitions` | importDefinitions | | `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-function-invocations-create-sync` | platformFunctionInvocationsCreateSync | | `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 | | `platform-resource-installations-upgrade` | platformResourceInstallationsUpgrade | -| `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-bucket` | Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. | | `resource-installations-install` | resourceInstallationsInstall | | `resource-installations-rollback` | resourceInstallationsRollback | | `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,275 +251,319 @@ Variables are scoped to the active context and stored at `~/.csdk/config/`. ## Table Commands -### `db-preset` +### `build` -CRUD operations for DbPreset records. +CRUD operations for Build records. | Subcommand | Description | |------------|-------------| -| `list` | List all dbPreset records | -| `find-first` | Find first matching dbPreset record | -| `get` | Get a dbPreset by id | -| `create` | Create a new dbPreset | -| `update` | Update an existing dbPreset | -| `delete` | Delete a dbPreset | +| `list` | List all build records | +| `find-first` | Find first matching build record | +| `get` | Get a build by id | +| `create` | Create a new build | +| `update` | Update an existing build | +| `delete` | Delete a build | **Fields:** | Field | Type | |-------|------| -| `active` | Boolean | -| `commitId` | UUID | +| `actorId` | UUID | +| `attempt` | Int | +| `commitSha` | String | +| `conclusion` | String | | `createdAt` | Datetime | -| `definition` | JSON | -| `description` | String | +| `createdByPrincipal` | UUID | +| `databaseId` | UUID | +| `eventId` | UUID | +| `finishedAt` | Datetime | | `id` | UUID | -| `label` | String | -| `modulesHash` | UUID | -| `slug` | String | -| `storeId` | UUID | +| `imageRef` | String | +| `jobId` | BigInt | +| `logs` | Upload | +| `matrixKey` | String | +| `metadata` | JSON | +| `proposalId` | UUID | +| `ref` | String | +| `repositoryId` | UUID | +| `startedAt` | Datetime | +| `status` | String | | `updatedAt` | Datetime | +| `updatedByPrincipal` | UUID | +| `workflowId` | UUID | -**Required create fields:** `definition`, `slug` -**Optional create fields (backend defaults):** `active`, `commitId`, `description`, `label`, `modulesHash`, `storeId` +**Required create fields:** `databaseId`, `repositoryId` +**Optional create fields (backend defaults):** `actorId`, `attempt`, `commitSha`, `conclusion`, `createdByPrincipal`, `eventId`, `finishedAt`, `imageRef`, `jobId`, `logs`, `matrixKey`, `metadata`, `proposalId`, `ref`, `startedAt`, `status`, `updatedByPrincipal`, `workflowId` -### `function-api-binding` +### `build-step` -CRUD operations for FunctionApiBinding records. +CRUD operations for BuildStep records. | Subcommand | Description | |------------|-------------| -| `list` | List all functionApiBinding records | -| `find-first` | Find first matching functionApiBinding record | -| `get` | Get a functionApiBinding by id | -| `create` | Create a new functionApiBinding | -| `update` | Update an existing functionApiBinding | -| `delete` | Delete a functionApiBinding | +| `list` | List all buildStep records | +| `find-first` | Find first matching buildStep record | +| `get` | Get a buildStep by id | +| `create` | Create a new buildStep | +| `update` | Update an existing buildStep | +| `delete` | Delete a buildStep | **Fields:** | Field | Type | |-------|------| -| `alias` | String | -| `apiId` | UUID | -| `config` | JSON | -| `createdAt` | Datetime | -| `functionDefinitionId` | UUID | +| `buildId` | UUID | +| `createdByPrincipal` | UUID | +| `databaseId` | UUID | +| `exitCode` | Int | +| `finishedAt` | Datetime | | `id` | UUID | -| `updatedAt` | Datetime | +| `kind` | String | +| `logBytes` | BigInt | +| `logOffset` | BigInt | +| `name` | String | +| `parentSeq` | Int | +| `recordedAt` | Datetime | +| `seq` | Int | +| `startedAt` | Datetime | +| `status` | String | +| `summary` | JSON | -**Required create fields:** `apiId`, `functionDefinitionId` -**Optional create fields (backend defaults):** `alias`, `config` +**Required create fields:** `buildId`, `databaseId`, `name`, `seq` +**Optional create fields (backend defaults):** `createdByPrincipal`, `exitCode`, `finishedAt`, `kind`, `logBytes`, `logOffset`, `parentSeq`, `recordedAt`, `startedAt`, `status`, `summary` -### `function-capability-binding` +### `builder-binding` -CRUD operations for FunctionCapabilityBinding records. +CRUD operations for BuilderBinding records. | Subcommand | Description | |------------|-------------| -| `list` | List all functionCapabilityBinding records | -| `find-first` | Find first matching functionCapabilityBinding record | -| `get` | Get a functionCapabilityBinding by id | -| `create` | Create a new functionCapabilityBinding | -| `update` | Update an existing functionCapabilityBinding | -| `delete` | Delete a functionCapabilityBinding | +| `list` | List all builderBinding records | +| `find-first` | Find first matching builderBinding record | +| `get` | Get a builderBinding by id | +| `create` | Create a new builderBinding | +| `update` | Update an existing builderBinding | +| `delete` | Delete a builderBinding | **Fields:** | Field | Type | |-------|------| -| `bucketId` | UUID | | `createdAt` | Datetime | +| `createdBy` | UUID | +| `createdByPrincipal` | UUID | | `databaseId` | UUID | -| `functionId` | UUID | -| `graphId` | UUID | | `id` | UUID | -| `key` | String | -| `lifecycle` | String | +| `installationId` | UUID | +| `lastError` | String | | `metadata` | JSON | +| `namespaceId` | UUID | +| `observedHost` | String | +| `realm` | String | +| `status` | String | | `updatedAt` | Datetime | +| `updatedBy` | UUID | +| `updatedByPrincipal` | UUID | -**Required create fields:** `databaseId`, `lifecycle` -**Optional create fields (backend defaults):** `bucketId`, `functionId`, `graphId`, `key`, `metadata` +**Required create fields:** `databaseId`, `installationId`, `namespaceId` +**Optional create fields (backend defaults):** `createdBy`, `createdByPrincipal`, `lastError`, `metadata`, `observedHost`, `realm`, `status`, `updatedBy`, `updatedByPrincipal` -### `function-definition` +### `content-preset` -CRUD operations for FunctionDefinition records. +CRUD operations for ContentPreset records. | Subcommand | Description | |------------|-------------| -| `list` | List all functionDefinition records | -| `find-first` | Find first matching functionDefinition record | -| `get` | Get a functionDefinition by id | -| `create` | Create a new functionDefinition | -| `update` | Update an existing functionDefinition | -| `delete` | Delete a functionDefinition | +| `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 | |-------|------| -| `accessChannels` | String | -| `category` | String | -| `concurrency` | Int | -| `cpuLimitMillicores` | BigInt | -| `cpuRequestMillicores` | BigInt | +| `active` | Boolean | +| `commitId` | UUID | | `createdAt` | Datetime | -| `databaseId` | UUID | +| `definition` | JSON | | `description` | String | -| `fnCategory` | String | -| `functionColumns` | JSON | -| `graphId` | UUID | -| `icon` | String | | `id` | UUID | -| `image` | String | -| `inputs` | JSON | -| `integrations` | String | -| `isPublished` | Boolean | -| `maxAttempts` | Int | -| `memoryLimitBytes` | BigInt | -| `memoryRequestBytes` | BigInt | -| `moduleTable` | String | -| `name` | String | -| `outputs` | JSON | -| `payloadArgs` | JSON | -| `priority` | Int | -| `props` | JSON | -| `protected` | Boolean | -| `publishedAt` | Datetime | -| `queueName` | String | -| `requiredBuckets` | String | -| `requiredConfigs` | ResourceRequirement | -| `requiredModels` | String | -| `requiredSecrets` | ResourceRequirement | -| `resources` | JSON | -| `runtime` | String | -| `scaleMax` | Int | -| `scaleMin` | Int | -| `targetFunction` | String | -| `targetSchema` | String | -| `taskIdentifier` | String | -| `timeoutSeconds` | Int | +| `kind` | String | +| `label` | String | +| `slug` | String | +| `storeId` | UUID | | `updatedAt` | Datetime | -| `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` +**Required create fields:** `definition`, `kind`, `slug` +**Optional create fields (backend defaults):** `active`, `commitId`, `description`, `label`, `storeId` -### `function-deployment` +### `database-function-graph` -CRUD operations for FunctionDeployment records. +CRUD operations for DatabaseFunctionGraph records. | Subcommand | Description | |------------|-------------| -| `list` | List all functionDeployment records | -| `find-first` | Find first matching functionDeployment record | -| `get` | Get a functionDeployment by id | -| `create` | Create a new functionDeployment | -| `update` | Update an existing functionDeployment | -| `delete` | Delete a functionDeployment | +| `list` | List all databaseFunctionGraph records | +| `find-first` | Find first matching databaseFunctionGraph record | +| `get` | Get a databaseFunctionGraph by id | +| `create` | Create a new databaseFunctionGraph | +| `update` | Update an existing databaseFunctionGraph | +| `delete` | Delete a databaseFunctionGraph | **Fields:** | Field | Type | |-------|------| -| `annotations` | JSON | -| `concurrency` | Int | +| `context` | String | | `createdAt` | Datetime | +| `createdBy` | UUID | | `databaseId` | UUID | -| `errorCount` | Int | -| `handlerName` | String | +| `definitionsCommitId` | UUID | +| `description` | String | | `id` | UUID | -| `image` | String | -| `imageVersion` | String | -| `labels` | JSON | -| `lastError` | String | -| `lastErrorAt` | Datetime | -| `namespaceId` | UUID | -| `resources` | JSON | -| `revision` | Int | -| `scaleMax` | Int | -| `scaleMin` | Int | -| `serviceName` | String | -| `serviceUrl` | String | -| `status` | String | -| `timeoutSeconds` | Int | +| `isValid` | Boolean | +| `name` | String | +| `storeId` | UUID | | `updatedAt` | Datetime | +| `validationErrors` | JSON | -**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` +**Required create fields:** `context`, `createdBy`, `databaseId`, `definitionsCommitId`, `description`, `isValid`, `name`, `storeId`, `validationErrors` -### `function-deployment-event` +### `database-function-graph-execution` -CRUD operations for FunctionDeploymentEvent records. +CRUD operations for DatabaseFunctionGraphExecution records. | Subcommand | Description | |------------|-------------| -| `list` | List all functionDeploymentEvent records | -| `find-first` | Find first matching functionDeploymentEvent record | -| `get` | Get a functionDeploymentEvent by id | -| `create` | Create a new functionDeploymentEvent | -| `update` | Update an existing functionDeploymentEvent | -| `delete` | Delete a functionDeploymentEvent | +| `list` | List all databaseFunctionGraphExecution records | +| `find-first` | Find first matching databaseFunctionGraphExecution record | +| `get` | Get a databaseFunctionGraphExecution by id | +| `create` | Create a new databaseFunctionGraphExecution | +| `update` | Update an existing databaseFunctionGraphExecution | +| `delete` | Delete a databaseFunctionGraphExecution | **Fields:** | Field | Type | |-------|------| | `actorId` | UUID | +| `completedAt` | Datetime | +| `currentWave` | Int | +| `databaseId` | UUID | +| `definitionsCommitId` | UUID | +| `entityId` | UUID | +| `entityType` | String | +| `errorCode` | String | +| `errorMessage` | String | +| `executionPlan` | JSON | +| `graphId` | UUID | +| `id` | UUID | +| `inputPayload` | JSON | +| `invocationCreatedAt` | Datetime | +| `invocationId` | UUID | +| `lastProgressAt` | Datetime | +| `maxPendingJobs` | Int | +| `maxTicks` | Int | +| `nodeOutputs` | JSON | +| `organizationId` | UUID | +| `outputNames` | String | +| `outputNode` | String | +| `outputPayload` | JSON | +| `outputPort` | String | +| `parentExecutionId` | UUID | +| `parentInvocationId` | UUID | +| `parentNodeName` | String | +| `principalId` | UUID | +| `startedAt` | Datetime | +| `status` | String | +| `tickCount` | Int | +| `timeoutAt` | Datetime | + +**Required create fields:** `databaseId`, `graphId` +**Optional create fields (backend defaults):** `actorId`, `completedAt`, `currentWave`, `definitionsCommitId`, `entityId`, `entityType`, `errorCode`, `errorMessage`, `executionPlan`, `inputPayload`, `invocationCreatedAt`, `invocationId`, `lastProgressAt`, `maxPendingJobs`, `maxTicks`, `nodeOutputs`, `organizationId`, `outputNames`, `outputNode`, `outputPayload`, `outputPort`, `parentExecutionId`, `parentInvocationId`, `parentNodeName`, `principalId`, `startedAt`, `status`, `tickCount`, `timeoutAt` + +### `database-function-graph-execution-node-state` + +CRUD operations for DatabaseFunctionGraphExecutionNodeState records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all databaseFunctionGraphExecutionNodeState records | +| `find-first` | Find first matching databaseFunctionGraphExecutionNodeState record | +| `get` | Get a databaseFunctionGraphExecutionNodeState by id | +| `create` | Create a new databaseFunctionGraphExecutionNodeState | +| `update` | Update an existing databaseFunctionGraphExecutionNodeState | +| `delete` | Delete a databaseFunctionGraphExecutionNodeState | + +**Fields:** + +| Field | Type | +|-------|------| +| `callbackInputs` | JSON | +| `callbackMeta` | JSON | +| `callbackTokenHash` | String | +| `completedAt` | Datetime | | `createdAt` | Datetime | | `databaseId` | UUID | -| `deploymentId` | UUID | -| `eventType` | String | +| `errorCode` | String | +| `errorMessage` | String | +| `executionId` | UUID | +| `expiryDefaultOutput` | JSON | +| `expiryEscalatedAt` | Datetime | +| `expiryPolicy` | String | | `id` | UUID | -| `message` | String | -| `metadata` | JSON | +| `nodeName` | String | +| `nodePath` | String | +| `outputId` | UUID | +| `startedAt` | Datetime | +| `status` | String | +| `waitingDeadlineAt` | Datetime | +| `waitingOn` | String | +| `waitingSince` | Datetime | -**Required create fields:** `databaseId`, `deploymentId`, `eventType` -**Optional create fields (backend defaults):** `actorId`, `message`, `metadata` +**Required create fields:** `databaseId`, `executionId`, `nodeName` +**Optional create fields (backend defaults):** `callbackInputs`, `callbackMeta`, `callbackTokenHash`, `completedAt`, `errorCode`, `errorMessage`, `expiryDefaultOutput`, `expiryEscalatedAt`, `expiryPolicy`, `nodePath`, `outputId`, `startedAt`, `status`, `waitingDeadlineAt`, `waitingOn`, `waitingSince` -### `function-execution-log` +### `database-function-graph-execution-output` -CRUD operations for FunctionExecutionLog records. +CRUD operations for DatabaseFunctionGraphExecutionOutput records. | Subcommand | Description | |------------|-------------| -| `list` | List all functionExecutionLog records | -| `find-first` | Find first matching functionExecutionLog record | -| `get` | Get a functionExecutionLog by id | -| `create` | Create a new functionExecutionLog | -| `update` | Update an existing functionExecutionLog | -| `delete` | Delete a functionExecutionLog | +| `list` | List all databaseFunctionGraphExecutionOutput records | +| `find-first` | Find first matching databaseFunctionGraphExecutionOutput record | +| `get` | Get a databaseFunctionGraphExecutionOutput by id | +| `create` | Create a new databaseFunctionGraphExecutionOutput | +| `update` | Update an existing databaseFunctionGraphExecutionOutput | +| `delete` | Delete a databaseFunctionGraphExecutionOutput | **Fields:** | Field | Type | |-------|------| -| `actorId` | UUID | | `createdAt` | Datetime | +| `data` | JSON | | `databaseId` | UUID | +| `hash` | Base64EncodedBinary | | `id` | UUID | -| `invocationId` | UUID | -| `logLevel` | String | -| `message` | String | -| `metadata` | JSON | -| `taskIdentifier` | String | -**Required create fields:** `databaseId`, `message` -**Optional create fields (backend defaults):** `actorId`, `invocationId`, `logLevel`, `metadata`, `taskIdentifier` +**Required create fields:** `data`, `databaseId`, `hash` -### `function-graph-commit` +### `database-graph-commit` -CRUD operations for FunctionGraphCommit records. +CRUD operations for DatabaseGraphCommit records. | Subcommand | Description | |------------|-------------| -| `list` | List all functionGraphCommit records | -| `find-first` | Find first matching functionGraphCommit record | -| `get` | Get a functionGraphCommit by id | -| `create` | Create a new functionGraphCommit | -| `update` | Update an existing functionGraphCommit | -| `delete` | Delete a functionGraphCommit | +| `list` | List all databaseGraphCommit records | +| `find-first` | Find first matching databaseGraphCommit record | +| `get` | Get a databaseGraphCommit by id | +| `create` | Create a new databaseGraphCommit | +| `update` | Update an existing databaseGraphCommit | +| `delete` | Delete a databaseGraphCommit | **Fields:** @@ -445,874 +571,831 @@ CRUD operations for FunctionGraphCommit records. |-------|------| | `authorId` | UUID | | `committerId` | UUID | +| `databaseId` | UUID | | `date` | Datetime | | `id` | UUID | | `message` | String | | `parentIds` | UUID | -| `scopeId` | UUID | | `storeId` | UUID | | `treeId` | UUID | -**Required create fields:** `scopeId`, `storeId` +**Required create fields:** `databaseId`, `storeId` **Optional create fields (backend defaults):** `authorId`, `committerId`, `date`, `message`, `parentIds`, `treeId` -### `function-graph` - -CRUD operations for FunctionGraph records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all functionGraph records | -| `find-first` | Find first matching functionGraph record | -| `get` | Get a functionGraph by id | -| `create` | Create a new functionGraph | -| `update` | Update an existing functionGraph | -| `delete` | Delete a functionGraph | - -**Fields:** - -| Field | Type | -|-------|------| -| `context` | String | -| `createdAt` | Datetime | -| `createdBy` | UUID | -| `definitionsCommitId` | UUID | -| `description` | String | -| `id` | UUID | -| `isValid` | Boolean | -| `name` | String | -| `scopeId` | UUID | -| `storeId` | UUID | -| `updatedAt` | Datetime | -| `validationErrors` | JSON | - -**Required create fields:** `context`, `createdBy`, `definitionsCommitId`, `description`, `isValid`, `name`, `scopeId`, `storeId`, `validationErrors` - -### `function-graph-execution` +### `database-graph-get-all-tree-nodes-record` -CRUD operations for FunctionGraphExecution records. +CRUD operations for DatabaseGraphGetAllTreeNodesRecord records. | Subcommand | Description | |------------|-------------| -| `list` | List all functionGraphExecution records | -| `find-first` | Find first matching functionGraphExecution record | -| `get` | Get a functionGraphExecution by id | -| `create` | Create a new functionGraphExecution | -| `update` | Update an existing functionGraphExecution | -| `delete` | Delete a functionGraphExecution | +| `list` | List all databaseGraphGetAllTreeNodesRecord records | +| `find-first` | Find first matching databaseGraphGetAllTreeNodesRecord record | +| `get` | Get a databaseGraphGetAllTreeNodesRecord by id | +| `create` | Create a new databaseGraphGetAllTreeNodesRecord | +| `update` | Update an existing databaseGraphGetAllTreeNodesRecord | +| `delete` | Delete a databaseGraphGetAllTreeNodesRecord | **Fields:** | Field | Type | |-------|------| -| `actorId` | UUID | -| `completedAt` | Datetime | -| `currentWave` | Int | -| `definitionsCommitId` | UUID | -| `entityId` | UUID | -| `entityType` | String | -| `errorCode` | String | -| `errorMessage` | String | -| `executionPlan` | JSON | -| `graphId` | UUID | -| `id` | UUID | -| `inputPayload` | JSON | -| `invocationCreatedAt` | Datetime | -| `invocationId` | UUID | -| `lastProgressAt` | Datetime | -| `maxPendingJobs` | Int | -| `maxTicks` | Int | -| `nodeOutputs` | JSON | -| `organizationId` | UUID | -| `outputNames` | String | -| `outputNode` | String | -| `outputPayload` | JSON | -| `outputPort` | String | -| `parentExecutionId` | UUID | -| `parentInvocationId` | UUID | -| `parentNodeName` | String | -| `principalId` | UUID | -| `scopeId` | UUID | -| `startedAt` | Datetime | -| `status` | String | -| `tickCount` | Int | -| `timeoutAt` | Datetime | +| `data` | JSON | +| `path` | String | -**Required create fields:** `graphId`, `scopeId` -**Optional create fields (backend defaults):** `actorId`, `completedAt`, `currentWave`, `definitionsCommitId`, `entityId`, `entityType`, `errorCode`, `errorMessage`, `executionPlan`, `inputPayload`, `invocationCreatedAt`, `invocationId`, `lastProgressAt`, `maxPendingJobs`, `maxTicks`, `nodeOutputs`, `organizationId`, `outputNames`, `outputNode`, `outputPayload`, `outputPort`, `parentExecutionId`, `parentInvocationId`, `parentNodeName`, `principalId`, `startedAt`, `status`, `tickCount`, `timeoutAt` +**Required create fields:** `data`, `path` -### `function-graph-execution-node-state` +### `database-graph-object` -CRUD operations for FunctionGraphExecutionNodeState records. +CRUD operations for DatabaseGraphObject records. | Subcommand | Description | |------------|-------------| -| `list` | List all functionGraphExecutionNodeState records | -| `find-first` | Find first matching functionGraphExecutionNodeState record | -| `get` | Get a functionGraphExecutionNodeState by id | -| `create` | Create a new functionGraphExecutionNodeState | -| `update` | Update an existing functionGraphExecutionNodeState | -| `delete` | Delete a functionGraphExecutionNodeState | +| `list` | List all databaseGraphObject records | +| `find-first` | Find first matching databaseGraphObject record | +| `get` | Get a databaseGraphObject by id | +| `create` | Create a new databaseGraphObject | +| `update` | Update an existing databaseGraphObject | +| `delete` | Delete a databaseGraphObject | **Fields:** | Field | Type | |-------|------| -| `callbackInputs` | JSON | -| `callbackMeta` | JSON | -| `callbackTokenHash` | String | -| `completedAt` | Datetime | | `createdAt` | Datetime | -| `errorCode` | String | -| `errorMessage` | String | -| `executionId` | UUID | +| `data` | JSON | +| `databaseId` | UUID | | `id` | UUID | -| `nodeName` | String | -| `nodePath` | String | -| `outputId` | UUID | -| `scopeId` | UUID | -| `startedAt` | Datetime | -| `status` | String | +| `kids` | UUID | +| `ktree` | String | -**Required create fields:** `executionId`, `nodeName`, `scopeId` -**Optional create fields (backend defaults):** `callbackInputs`, `callbackMeta`, `callbackTokenHash`, `completedAt`, `errorCode`, `errorMessage`, `nodePath`, `outputId`, `startedAt`, `status` +**Required create fields:** `databaseId` +**Optional create fields (backend defaults):** `data`, `kids`, `ktree` -### `function-graph-execution-output` +### `database-graph-ref` -CRUD operations for FunctionGraphExecutionOutput records. +CRUD operations for DatabaseGraphRef records. | Subcommand | Description | |------------|-------------| -| `list` | List all functionGraphExecutionOutput records | -| `find-first` | Find first matching functionGraphExecutionOutput record | -| `get` | Get a functionGraphExecutionOutput by id | -| `create` | Create a new functionGraphExecutionOutput | -| `update` | Update an existing functionGraphExecutionOutput | -| `delete` | Delete a functionGraphExecutionOutput | +| `list` | List all databaseGraphRef records | +| `find-first` | Find first matching databaseGraphRef record | +| `get` | Get a databaseGraphRef by id | +| `create` | Create a new databaseGraphRef | +| `update` | Update an existing databaseGraphRef | +| `delete` | Delete a databaseGraphRef | **Fields:** | Field | Type | |-------|------| -| `createdAt` | Datetime | -| `data` | JSON | -| `hash` | Base64EncodedBinary | +| `commitId` | UUID | +| `databaseId` | UUID | | `id` | UUID | -| `scopeId` | UUID | +| `name` | String | +| `storeId` | UUID | -**Required create fields:** `data`, `hash`, `scopeId` +**Required create fields:** `databaseId`, `name`, `storeId` +**Optional create fields (backend defaults):** `commitId` -### `function-graph-object` +### `database-graph-store` -CRUD operations for FunctionGraphObject records. +CRUD operations for DatabaseGraphStore records. | Subcommand | Description | |------------|-------------| -| `list` | List all functionGraphObject records | -| `find-first` | Find first matching functionGraphObject record | -| `get` | Get a functionGraphObject by id | -| `create` | Create a new functionGraphObject | -| `update` | Update an existing functionGraphObject | -| `delete` | Delete a functionGraphObject | +| `list` | List all databaseGraphStore records | +| `find-first` | Find first matching databaseGraphStore record | +| `get` | Get a databaseGraphStore by id | +| `create` | Create a new databaseGraphStore | +| `update` | Update an existing databaseGraphStore | +| `delete` | Delete a databaseGraphStore | **Fields:** | Field | Type | |-------|------| | `createdAt` | Datetime | -| `data` | JSON | +| `databaseId` | UUID | +| `hash` | UUID | | `id` | UUID | -| `kids` | UUID | -| `ktree` | String | -| `scopeId` | UUID | +| `name` | String | -**Required create fields:** `scopeId` -**Optional create fields (backend defaults):** `data`, `kids`, `ktree` +**Required create fields:** `databaseId`, `name` +**Optional create fields (backend defaults):** `hash` -### `function-graph-ref` +### `db-preset` -CRUD operations for FunctionGraphRef records. +CRUD operations for DbPreset records. | Subcommand | Description | |------------|-------------| -| `list` | List all functionGraphRef records | -| `find-first` | Find first matching functionGraphRef record | -| `get` | Get a functionGraphRef by id | -| `create` | Create a new functionGraphRef | -| `update` | Update an existing functionGraphRef | -| `delete` | Delete a functionGraphRef | +| `list` | List all dbPreset records | +| `find-first` | Find first matching dbPreset record | +| `get` | Get a dbPreset by id | +| `create` | Create a new dbPreset | +| `update` | Update an existing dbPreset | +| `delete` | Delete a dbPreset | **Fields:** | Field | Type | |-------|------| +| `active` | Boolean | | `commitId` | UUID | +| `createdAt` | Datetime | +| `definition` | JSON | +| `description` | String | | `id` | UUID | -| `name` | String | -| `scopeId` | UUID | +| `label` | String | +| `modulesHash` | UUID | +| `slug` | String | | `storeId` | UUID | +| `updatedAt` | Datetime | -**Required create fields:** `name`, `scopeId`, `storeId` -**Optional create fields (backend defaults):** `commitId` +**Required create fields:** `definition`, `slug` +**Optional create fields (backend defaults):** `active`, `commitId`, `description`, `label`, `modulesHash`, `storeId` -### `function-graph-store` +### `function-api-binding` -CRUD operations for FunctionGraphStore records. +CRUD operations for FunctionApiBinding records. | Subcommand | Description | |------------|-------------| -| `list` | List all functionGraphStore records | -| `find-first` | Find first matching functionGraphStore record | -| `get` | Get a functionGraphStore by id | -| `create` | Create a new functionGraphStore | -| `update` | Update an existing functionGraphStore | -| `delete` | Delete a functionGraphStore | +| `list` | List all functionApiBinding records | +| `find-first` | Find first matching functionApiBinding record | +| `get` | Get a functionApiBinding by id | +| `create` | Create a new functionApiBinding | +| `update` | Update an existing functionApiBinding | +| `delete` | Delete a functionApiBinding | **Fields:** | Field | Type | |-------|------| +| `alias` | String | +| `apiId` | UUID | +| `config` | JSON | | `createdAt` | Datetime | -| `hash` | UUID | +| `functionDefinitionId` | UUID | | `id` | UUID | -| `name` | String | -| `scopeId` | UUID | +| `updatedAt` | Datetime | -**Required create fields:** `name`, `scopeId` -**Optional create fields (backend defaults):** `hash` +**Required create fields:** `apiId`, `functionDefinitionId` +**Optional create fields (backend defaults):** `alias`, `config` -### `function-invocation-attempt` +### `function-capability-binding` -CRUD operations for FunctionInvocationAttempt records. +CRUD operations for FunctionCapabilityBinding records. | Subcommand | Description | |------------|-------------| -| `list` | List all functionInvocationAttempt records | -| `find-first` | Find first matching functionInvocationAttempt record | -| `get` | Get a functionInvocationAttempt by id | -| `create` | Create a new functionInvocationAttempt | -| `update` | Update an existing functionInvocationAttempt | -| `delete` | Delete a functionInvocationAttempt | +| `list` | List all functionCapabilityBinding records | +| `find-first` | Find first matching functionCapabilityBinding record | +| `get` | Get a functionCapabilityBinding by id | +| `create` | Create a new functionCapabilityBinding | +| `update` | Update an existing functionCapabilityBinding | +| `delete` | Delete a functionCapabilityBinding | **Fields:** | Field | Type | |-------|------| -| `actorId` | UUID | -| `attempt` | Int | +| `bucketId` | UUID | | `createdAt` | Datetime | | `databaseId` | UUID | -| `durationMs` | Int | -| `error` | String | -| `errorDetail` | JSON | +| `functionId` | UUID | +| `graphId` | UUID | | `id` | UUID | -| `invocationCreatedAt` | Datetime | -| `invocationId` | UUID | -| `startedAt` | Datetime | -| `success` | Boolean | -| `taskIdentifier` | String | +| `key` | String | +| `lifecycle` | String | +| `metadata` | JSON | +| `updatedAt` | Datetime | -**Required create fields:** `attempt`, `databaseId`, `invocationCreatedAt`, `invocationId`, `success`, `taskIdentifier` -**Optional create fields (backend defaults):** `actorId`, `durationMs`, `error`, `errorDetail`, `startedAt` +**Required create fields:** `databaseId`, `lifecycle` +**Optional create fields (backend defaults):** `bucketId`, `functionId`, `graphId`, `key`, `metadata` -### `function-invocation` +### `function-definition` -CRUD operations for FunctionInvocation records. +CRUD operations for FunctionDefinition records. | Subcommand | Description | |------------|-------------| -| `list` | List all functionInvocation records | -| `find-first` | Find first matching functionInvocation record | -| `get` | Get a functionInvocation by id | -| `create` | Create a new functionInvocation | -| `update` | Update an existing functionInvocation | -| `delete` | Delete a functionInvocation | +| `list` | List all functionDefinition records | +| `find-first` | Find first matching functionDefinition record | +| `get` | Get a functionDefinition by id | +| `create` | Create a new functionDefinition | +| `update` | Update an existing functionDefinition | +| `delete` | Delete a functionDefinition | **Fields:** | Field | Type | |-------|------| -| `actorId` | UUID | -| `apiBindingId` | UUID | -| `channel` | String | -| `completedAt` | Datetime | +| `accessChannels` | String | +| `anonymousCallable` | Boolean | +| `category` | String | +| `concurrency` | Int | +| `cpuLimitMillicores` | BigInt | +| `cpuRequestMillicores` | BigInt | | `createdAt` | Datetime | +| `createdByPrincipal` | UUID | | `databaseId` | UUID | -| `definitionScope` | String | -| `durationMs` | Int | -| `error` | String | -| `functionDefinitionId` | UUID | -| `graphExecutionId` | UUID | +| `description` | String | +| `fnCategory` | String | +| `functionColumns` | JSON | +| `graphId` | UUID | +| `icon` | String | | `id` | UUID | -| `jobId` | BigInt | -| `parentInvocationId` | UUID | -| `payload` | JSON | -| `provenance` | JSON | -| `result` | JSON | -| `startedAt` | Datetime | -| `status` | String | +| `image` | String | +| `inputs` | JSON | +| `integrations` | String | +| `isPublished` | Boolean | +| `maxAttempts` | Int | +| `memoryLimitBytes` | BigInt | +| `memoryRequestBytes` | BigInt | +| `moduleTable` | String | +| `name` | String | +| `outputs` | JSON | +| `payloadArgs` | JSON | +| `priority` | Int | +| `props` | JSON | +| `protected` | Boolean | +| `publishedAt` | Datetime | +| `queueName` | String | +| `requiredBuckets` | String | +| `requiredCapabilities` | JSON | +| `requiredConfigs` | ResourceRequirement | +| `requiredModels` | String | +| `requiredModules` | String | +| `requiredSecrets` | ResourceRequirement | +| `resources` | JSON | +| `runtime` | String | +| `scaleMax` | Int | +| `scaleMin` | Int | +| `targetFunction` | String | +| `targetSchema` | String | | `taskIdentifier` | String | +| `timeoutSeconds` | Int | +| `updatedAt` | Datetime | +| `updatedByPrincipal` | UUID | +| `volatile` | Boolean | -**Required create fields:** `databaseId`, `taskIdentifier` -**Optional create fields (backend defaults):** `actorId`, `apiBindingId`, `channel`, `completedAt`, `definitionScope`, `durationMs`, `error`, `functionDefinitionId`, `graphExecutionId`, `jobId`, `parentInvocationId`, `payload`, `provenance`, `result`, `startedAt`, `status` +**Required create fields:** `category`, `databaseId`, `name` +**Optional create fields (backend defaults):** `accessChannels`, `anonymousCallable`, `concurrency`, `createdByPrincipal`, `description`, `fnCategory`, `functionColumns`, `graphId`, `icon`, `image`, `inputs`, `integrations`, `isPublished`, `maxAttempts`, `moduleTable`, `outputs`, `payloadArgs`, `priority`, `props`, `protected`, `publishedAt`, `queueName`, `requiredBuckets`, `requiredCapabilities`, `requiredConfigs`, `requiredModels`, `requiredModules`, `requiredSecrets`, `resources`, `runtime`, `scaleMax`, `scaleMin`, `targetFunction`, `targetSchema`, `timeoutSeconds`, `updatedByPrincipal`, `volatile` -### `get-all-tree-nodes-record` +### `function-deployment` -CRUD operations for GetAllTreeNodesRecord records. +CRUD operations for FunctionDeployment records. | Subcommand | Description | |------------|-------------| -| `list` | List all getAllTreeNodesRecord records | -| `find-first` | Find first matching getAllTreeNodesRecord record | -| `get` | Get a getAllTreeNodesRecord by id | -| `create` | Create a new getAllTreeNodesRecord | -| `update` | Update an existing getAllTreeNodesRecord | -| `delete` | Delete a getAllTreeNodesRecord | +| `list` | List all functionDeployment records | +| `find-first` | Find first matching functionDeployment record | +| `get` | Get a functionDeployment by id | +| `create` | Create a new functionDeployment | +| `update` | Update an existing functionDeployment | +| `delete` | Delete a functionDeployment | **Fields:** | Field | Type | |-------|------| -| `data` | JSON | -| `path` | String | +| `annotations` | JSON | +| `concurrency` | Int | +| `createdAt` | Datetime | +| `createdByPrincipal` | UUID | +| `databaseId` | UUID | +| `errorCount` | Int | +| `handlerName` | String | +| `id` | UUID | +| `image` | String | +| `imageVersion` | String | +| `labels` | JSON | +| `lastError` | String | +| `lastErrorAt` | Datetime | +| `namespaceId` | UUID | +| `realm` | String | +| `resources` | JSON | +| `revision` | Int | +| `scaleMax` | Int | +| `scaleMin` | Int | +| `serviceName` | String | +| `serviceUrl` | String | +| `status` | String | +| `timeoutSeconds` | Int | +| `updatedAt` | Datetime | +| `updatedByPrincipal` | UUID | -**Required create fields:** `data`, `path` +**Required create fields:** `databaseId`, `image`, `namespaceId` +**Optional create fields (backend defaults):** `annotations`, `concurrency`, `createdByPrincipal`, `errorCount`, `handlerName`, `imageVersion`, `labels`, `lastError`, `lastErrorAt`, `realm`, `resources`, `revision`, `scaleMax`, `scaleMin`, `serviceName`, `serviceUrl`, `status`, `timeoutSeconds`, `updatedByPrincipal` -### `infra-commit` +### `function-deployment-event` -CRUD operations for InfraCommit records. +CRUD operations for FunctionDeploymentEvent records. | Subcommand | Description | |------------|-------------| -| `list` | List all infraCommit records | -| `find-first` | Find first matching infraCommit record | -| `get` | Get a infraCommit by id | -| `create` | Create a new infraCommit | -| `update` | Update an existing infraCommit | -| `delete` | Delete a infraCommit | +| `list` | List all functionDeploymentEvent records | +| `find-first` | Find first matching functionDeploymentEvent record | +| `get` | Get a functionDeploymentEvent by id | +| `create` | Create a new functionDeploymentEvent | +| `update` | Update an existing functionDeploymentEvent | +| `delete` | Delete a functionDeploymentEvent | **Fields:** | Field | Type | |-------|------| -| `authorId` | UUID | -| `committerId` | UUID | +| `actorId` | UUID | +| `createdAt` | Datetime | | `databaseId` | UUID | -| `date` | Datetime | +| `deploymentId` | UUID | +| `eventType` | String | | `id` | UUID | | `message` | String | -| `parentIds` | UUID | -| `storeId` | UUID | -| `treeId` | UUID | - -**Required create fields:** `databaseId`, `storeId` -**Optional create fields (backend defaults):** `authorId`, `committerId`, `date`, `message`, `parentIds`, `treeId` - -### `infra-get-all-tree-nodes-record` - -CRUD operations for InfraGetAllTreeNodesRecord records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all infraGetAllTreeNodesRecord records | -| `find-first` | Find first matching infraGetAllTreeNodesRecord record | -| `get` | Get a infraGetAllTreeNodesRecord by id | -| `create` | Create a new infraGetAllTreeNodesRecord | -| `update` | Update an existing infraGetAllTreeNodesRecord | -| `delete` | Delete a infraGetAllTreeNodesRecord | - -**Fields:** - -| Field | Type | -|-------|------| -| `data` | JSON | -| `path` | String | +| `metadata` | JSON | -**Required create fields:** `data`, `path` +**Required create fields:** `databaseId`, `deploymentId`, `eventType` +**Optional create fields (backend defaults):** `actorId`, `message`, `metadata` -### `infra-object` +### `function-execution-log` -CRUD operations for InfraObject records. +CRUD operations for FunctionExecutionLog records. | Subcommand | Description | |------------|-------------| -| `list` | List all infraObject records | -| `find-first` | Find first matching infraObject record | -| `get` | Get a infraObject by id | -| `create` | Create a new infraObject | -| `update` | Update an existing infraObject | -| `delete` | Delete a infraObject | +| `list` | List all functionExecutionLog records | +| `find-first` | Find first matching functionExecutionLog record | +| `get` | Get a functionExecutionLog by id | +| `create` | Create a new functionExecutionLog | +| `update` | Update an existing functionExecutionLog | +| `delete` | Delete a functionExecutionLog | **Fields:** | Field | Type | |-------|------| +| `actorId` | UUID | | `createdAt` | Datetime | -| `data` | JSON | | `databaseId` | UUID | | `id` | UUID | -| `kids` | UUID | -| `ktree` | String | +| `invocationId` | UUID | +| `logLevel` | String | +| `message` | String | +| `metadata` | JSON | +| `taskIdentifier` | String | -**Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `data`, `kids`, `ktree` +**Required create fields:** `databaseId`, `message` +**Optional create fields (backend defaults):** `actorId`, `invocationId`, `logLevel`, `metadata`, `taskIdentifier` -### `infra-ref` +### `function-graph-commit` -CRUD operations for InfraRef records. +CRUD operations for FunctionGraphCommit records. | Subcommand | Description | |------------|-------------| -| `list` | List all infraRef records | -| `find-first` | Find first matching infraRef record | -| `get` | Get a infraRef by id | -| `create` | Create a new infraRef | -| `update` | Update an existing infraRef | -| `delete` | Delete a infraRef | +| `list` | List all functionGraphCommit records | +| `find-first` | Find first matching functionGraphCommit record | +| `get` | Get a functionGraphCommit by id | +| `create` | Create a new functionGraphCommit | +| `update` | Update an existing functionGraphCommit | +| `delete` | Delete a functionGraphCommit | **Fields:** | Field | Type | |-------|------| -| `commitId` | UUID | -| `databaseId` | UUID | +| `authorId` | UUID | +| `committerId` | UUID | +| `date` | Datetime | | `id` | UUID | -| `name` | String | +| `message` | String | +| `parentIds` | UUID | +| `scopeId` | UUID | | `storeId` | UUID | +| `treeId` | UUID | -**Required create fields:** `databaseId`, `name`, `storeId` -**Optional create fields (backend defaults):** `commitId` +**Required create fields:** `scopeId`, `storeId` +**Optional create fields (backend defaults):** `authorId`, `committerId`, `date`, `message`, `parentIds`, `treeId` -### `infra-store` +### `function-graph` -CRUD operations for InfraStore records. +CRUD operations for FunctionGraph records. | Subcommand | Description | |------------|-------------| -| `list` | List all infraStore records | -| `find-first` | Find first matching infraStore record | -| `get` | Get a infraStore by id | -| `create` | Create a new infraStore | -| `update` | Update an existing infraStore | -| `delete` | Delete a infraStore | +| `list` | List all functionGraph records | +| `find-first` | Find first matching functionGraph record | +| `get` | Get a functionGraph by id | +| `create` | Create a new functionGraph | +| `update` | Update an existing functionGraph | +| `delete` | Delete a functionGraph | **Fields:** | Field | Type | |-------|------| +| `context` | String | | `createdAt` | Datetime | -| `databaseId` | UUID | -| `hash` | UUID | +| `createdBy` | UUID | +| `definitionsCommitId` | UUID | +| `description` | String | | `id` | UUID | +| `isValid` | Boolean | | `name` | String | +| `scopeId` | UUID | +| `storeId` | UUID | +| `updatedAt` | Datetime | +| `validationErrors` | JSON | -**Required create fields:** `databaseId`, `name` -**Optional create fields (backend defaults):** `hash` +**Required create fields:** `context`, `createdBy`, `definitionsCommitId`, `description`, `isValid`, `name`, `scopeId`, `storeId`, `validationErrors` -### `integration-provider` +### `function-graph-execution` -CRUD operations for IntegrationProvider records. +CRUD operations for FunctionGraphExecution records. | Subcommand | Description | |------------|-------------| -| `list` | List all integrationProvider records | -| `find-first` | Find first matching integrationProvider record | -| `get` | Get a integrationProvider by id | -| `create` | Create a new integrationProvider | -| `update` | Update an existing integrationProvider | -| `delete` | Delete a integrationProvider | +| `list` | List all functionGraphExecution records | +| `find-first` | Find first matching functionGraphExecution record | +| `get` | Get a functionGraphExecution by id | +| `create` | Create a new functionGraphExecution | +| `update` | Update an existing functionGraphExecution | +| `delete` | Delete a functionGraphExecution | **Fields:** | Field | Type | |-------|------| -| `brand` | JSON | -| `category` | String | -| `createdAt` | Datetime | -| `description` | String | -| `icon` | String | +| `actorId` | UUID | +| `completedAt` | Datetime | +| `currentWave` | Int | +| `definitionsCommitId` | UUID | +| `entityId` | UUID | +| `entityType` | String | +| `errorCode` | String | +| `errorMessage` | String | +| `executionPlan` | JSON | +| `graphId` | UUID | | `id` | UUID | -| `logo` | Image | -| `name` | String | -| `requiredConfigs` | ResourceRequirement | -| `requiredSecrets` | ResourceRequirement | -| `slug` | String | -| `updatedAt` | Datetime | +| `inputPayload` | JSON | +| `invocationCreatedAt` | Datetime | +| `invocationId` | UUID | +| `lastProgressAt` | Datetime | +| `maxPendingJobs` | Int | +| `maxTicks` | Int | +| `nodeOutputs` | JSON | +| `organizationId` | UUID | +| `outputNames` | String | +| `outputNode` | String | +| `outputPayload` | JSON | +| `outputPort` | String | +| `parentExecutionId` | UUID | +| `parentInvocationId` | UUID | +| `parentNodeName` | String | +| `principalId` | UUID | +| `scopeId` | UUID | +| `startedAt` | Datetime | +| `status` | String | +| `tickCount` | Int | +| `timeoutAt` | Datetime | -**Required create fields:** `name`, `slug` -**Optional create fields (backend defaults):** `brand`, `category`, `description`, `icon`, `logo`, `requiredConfigs`, `requiredSecrets` +**Required create fields:** `graphId`, `scopeId` +**Optional create fields (backend defaults):** `actorId`, `completedAt`, `currentWave`, `definitionsCommitId`, `entityId`, `entityType`, `errorCode`, `errorMessage`, `executionPlan`, `inputPayload`, `invocationCreatedAt`, `invocationId`, `lastProgressAt`, `maxPendingJobs`, `maxTicks`, `nodeOutputs`, `organizationId`, `outputNames`, `outputNode`, `outputPayload`, `outputPort`, `parentExecutionId`, `parentInvocationId`, `parentNodeName`, `principalId`, `startedAt`, `status`, `tickCount`, `timeoutAt` -### `namespace` +### `function-graph-execution-node-state` -CRUD operations for Namespace records. +CRUD operations for FunctionGraphExecutionNodeState records. | Subcommand | Description | |------------|-------------| -| `list` | List all namespace records | -| `find-first` | Find first matching namespace record | -| `get` | Get a namespace by id | -| `create` | Create a new namespace | -| `update` | Update an existing namespace | -| `delete` | Delete a namespace | +| `list` | List all functionGraphExecutionNodeState records | +| `find-first` | Find first matching functionGraphExecutionNodeState record | +| `get` | Get a functionGraphExecutionNodeState by id | +| `create` | Create a new functionGraphExecutionNodeState | +| `update` | Update an existing functionGraphExecutionNodeState | +| `delete` | Delete a functionGraphExecutionNodeState | **Fields:** | Field | Type | |-------|------| -| `annotations` | JSON | +| `callbackInputs` | JSON | +| `callbackMeta` | JSON | +| `callbackTokenHash` | String | +| `completedAt` | Datetime | | `createdAt` | Datetime | -| `databaseId` | UUID | -| `description` | String | +| `errorCode` | String | +| `errorMessage` | String | +| `executionId` | UUID | +| `expiryDefaultOutput` | JSON | +| `expiryEscalatedAt` | Datetime | +| `expiryPolicy` | String | | `id` | UUID | -| `isActive` | Boolean | -| `isManaged` | Boolean | -| `labels` | JSON | -| `lastError` | String | -| `name` | String | -| `namespaceName` | String | +| `nodeName` | String | +| `nodePath` | String | +| `outputId` | UUID | +| `scopeId` | UUID | +| `startedAt` | Datetime | | `status` | String | -| `updatedAt` | Datetime | +| `waitingDeadlineAt` | Datetime | +| `waitingOn` | String | +| `waitingSince` | Datetime | -**Required create fields:** `databaseId`, `name`, `namespaceName` -**Optional create fields (backend defaults):** `annotations`, `description`, `isActive`, `isManaged`, `labels`, `lastError`, `status` +**Required create fields:** `executionId`, `nodeName`, `scopeId` +**Optional create fields (backend defaults):** `callbackInputs`, `callbackMeta`, `callbackTokenHash`, `completedAt`, `errorCode`, `errorMessage`, `expiryDefaultOutput`, `expiryEscalatedAt`, `expiryPolicy`, `nodePath`, `outputId`, `startedAt`, `status`, `waitingDeadlineAt`, `waitingOn`, `waitingSince` -### `namespace-event` +### `function-graph-execution-output` -CRUD operations for NamespaceEvent records. +CRUD operations for FunctionGraphExecutionOutput records. | Subcommand | Description | |------------|-------------| -| `list` | List all namespaceEvent records | -| `find-first` | Find first matching namespaceEvent record | -| `get` | Get a namespaceEvent by id | -| `create` | Create a new namespaceEvent | -| `update` | Update an existing namespaceEvent | -| `delete` | Delete a namespaceEvent | +| `list` | List all functionGraphExecutionOutput records | +| `find-first` | Find first matching functionGraphExecutionOutput record | +| `get` | Get a functionGraphExecutionOutput by id | +| `create` | Create a new functionGraphExecutionOutput | +| `update` | Update an existing functionGraphExecutionOutput | +| `delete` | Delete a functionGraphExecutionOutput | **Fields:** | Field | Type | |-------|------| -| `actorId` | UUID | | `createdAt` | Datetime | -| `databaseId` | UUID | -| `eventType` | String | +| `data` | JSON | +| `hash` | Base64EncodedBinary | | `id` | UUID | -| `message` | String | -| `metadata` | JSON | -| `namespaceId` | UUID | +| `scopeId` | UUID | -**Required create fields:** `databaseId`, `eventType`, `namespaceId` -**Optional create fields (backend defaults):** `actorId`, `message`, `metadata` +**Required create fields:** `data`, `hash`, `scopeId` -### `platform-function-api-binding` +### `function-graph-object` -CRUD operations for PlatformFunctionApiBinding records. +CRUD operations for FunctionGraphObject records. | Subcommand | Description | |------------|-------------| -| `list` | List all platformFunctionApiBinding records | -| `find-first` | Find first matching platformFunctionApiBinding record | -| `get` | Get a platformFunctionApiBinding by id | -| `create` | Create a new platformFunctionApiBinding | -| `update` | Update an existing platformFunctionApiBinding | -| `delete` | Delete a platformFunctionApiBinding | +| `list` | List all functionGraphObject records | +| `find-first` | Find first matching functionGraphObject record | +| `get` | Get a functionGraphObject by id | +| `create` | Create a new functionGraphObject | +| `update` | Update an existing functionGraphObject | +| `delete` | Delete a functionGraphObject | **Fields:** | Field | Type | |-------|------| -| `alias` | String | -| `apiId` | UUID | -| `config` | JSON | | `createdAt` | Datetime | -| `functionDefinitionId` | UUID | +| `data` | JSON | | `id` | UUID | -| `updatedAt` | Datetime | +| `kids` | UUID | +| `ktree` | String | +| `scopeId` | UUID | -**Required create fields:** `apiId`, `functionDefinitionId` -**Optional create fields (backend defaults):** `alias`, `config` +**Required create fields:** `scopeId` +**Optional create fields (backend defaults):** `data`, `kids`, `ktree` -### `platform-function-capability-binding` +### `function-graph-ref` -CRUD operations for PlatformFunctionCapabilityBinding records. +CRUD operations for FunctionGraphRef records. | Subcommand | Description | |------------|-------------| -| `list` | List all platformFunctionCapabilityBinding records | -| `find-first` | Find first matching platformFunctionCapabilityBinding record | -| `get` | Get a platformFunctionCapabilityBinding by id | -| `create` | Create a new platformFunctionCapabilityBinding | -| `update` | Update an existing platformFunctionCapabilityBinding | -| `delete` | Delete a platformFunctionCapabilityBinding | +| `list` | List all functionGraphRef records | +| `find-first` | Find first matching functionGraphRef record | +| `get` | Get a functionGraphRef by id | +| `create` | Create a new functionGraphRef | +| `update` | Update an existing functionGraphRef | +| `delete` | Delete a functionGraphRef | **Fields:** | Field | Type | |-------|------| -| `bucketId` | UUID | -| `createdAt` | Datetime | -| `functionId` | UUID | -| `graphId` | UUID | +| `commitId` | UUID | | `id` | UUID | -| `key` | String | -| `lifecycle` | String | -| `metadata` | JSON | -| `updatedAt` | Datetime | +| `name` | String | +| `scopeId` | UUID | +| `storeId` | UUID | -**Required create fields:** `lifecycle` -**Optional create fields (backend defaults):** `bucketId`, `functionId`, `graphId`, `key`, `metadata` +**Required create fields:** `name`, `scopeId`, `storeId` +**Optional create fields (backend defaults):** `commitId` -### `platform-function-definition` +### `function-graph-store` -CRUD operations for PlatformFunctionDefinition records. +CRUD operations for FunctionGraphStore records. | Subcommand | Description | |------------|-------------| -| `list` | List all platformFunctionDefinition records | -| `find-first` | Find first matching platformFunctionDefinition record | -| `get` | Get a platformFunctionDefinition by id | -| `create` | Create a new platformFunctionDefinition | -| `update` | Update an existing platformFunctionDefinition | -| `delete` | Delete a platformFunctionDefinition | +| `list` | List all functionGraphStore records | +| `find-first` | Find first matching functionGraphStore record | +| `get` | Get a functionGraphStore by id | +| `create` | Create a new functionGraphStore | +| `update` | Update an existing functionGraphStore | +| `delete` | Delete a functionGraphStore | **Fields:** | Field | Type | |-------|------| -| `accessChannels` | String | -| `billable` | Boolean | -| `category` | String | -| `concurrency` | Int | -| `cpuLimitMillicores` | BigInt | -| `cpuRequestMillicores` | BigInt | | `createdAt` | Datetime | -| `description` | String | -| `fnCategory` | String | -| `functionColumns` | JSON | -| `graphId` | UUID | -| `icon` | String | +| `hash` | UUID | | `id` | UUID | -| `image` | String | -| `inputs` | JSON | -| `integrations` | String | -| `isPublished` | Boolean | -| `maxAttempts` | Int | -| `memoryLimitBytes` | BigInt | -| `memoryRequestBytes` | BigInt | -| `moduleTable` | String | | `name` | String | -| `outputs` | JSON | -| `payloadArgs` | JSON | -| `priority` | Int | -| `props` | JSON | -| `protected` | Boolean | -| `publishedAt` | Datetime | -| `queueName` | String | -| `requiredBuckets` | String | -| `requiredConfigs` | ResourceRequirement | -| `requiredModels` | String | -| `requiredSecrets` | ResourceRequirement | -| `resources` | JSON | -| `runtime` | String | -| `scaleMax` | Int | -| `scaleMin` | Int | -| `system` | Boolean | -| `targetFunction` | String | -| `targetSchema` | String | -| `taskIdentifier` | String | -| `timeoutSeconds` | Int | -| `updatedAt` | Datetime | -| `volatile` | Boolean | +| `scopeId` | UUID | -**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` +**Required create fields:** `name`, `scopeId` +**Optional create fields (backend defaults):** `hash` -### `platform-function-deployment` +### `function-invocation-attempt` -CRUD operations for PlatformFunctionDeployment records. +CRUD operations for FunctionInvocationAttempt records. | Subcommand | Description | |------------|-------------| -| `list` | List all platformFunctionDeployment records | -| `find-first` | Find first matching platformFunctionDeployment record | -| `get` | Get a platformFunctionDeployment by id | -| `create` | Create a new platformFunctionDeployment | -| `update` | Update an existing platformFunctionDeployment | -| `delete` | Delete a platformFunctionDeployment | +| `list` | List all functionInvocationAttempt records | +| `find-first` | Find first matching functionInvocationAttempt record | +| `get` | Get a functionInvocationAttempt by id | +| `create` | Create a new functionInvocationAttempt | +| `update` | Update an existing functionInvocationAttempt | +| `delete` | Delete a functionInvocationAttempt | **Fields:** | Field | Type | |-------|------| -| `annotations` | JSON | -| `concurrency` | Int | -| `createdAt` | Datetime | -| `errorCount` | Int | -| `handlerName` | String | +| `actorId` | UUID | +| `attempt` | Int | +| `createdAt` | Datetime | +| `databaseId` | UUID | +| `durationMs` | Int | +| `error` | String | +| `errorDetail` | JSON | | `id` | UUID | -| `image` | String | -| `imageVersion` | String | -| `labels` | JSON | -| `lastError` | String | -| `lastErrorAt` | Datetime | -| `namespaceId` | UUID | -| `resources` | JSON | -| `revision` | Int | -| `scaleMax` | Int | -| `scaleMin` | Int | -| `serviceName` | String | -| `serviceUrl` | String | -| `status` | String | -| `timeoutSeconds` | Int | -| `updatedAt` | Datetime | +| `invocationCreatedAt` | Datetime | +| `invocationId` | UUID | +| `startedAt` | Datetime | +| `success` | Boolean | +| `taskIdentifier` | String | -**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` +**Required create fields:** `attempt`, `databaseId`, `invocationCreatedAt`, `invocationId`, `success`, `taskIdentifier` +**Optional create fields (backend defaults):** `actorId`, `durationMs`, `error`, `errorDetail`, `startedAt` -### `platform-function-deployment-event` +### `function-invocation` -CRUD operations for PlatformFunctionDeploymentEvent records. +CRUD operations for FunctionInvocation records. | Subcommand | Description | |------------|-------------| -| `list` | List all platformFunctionDeploymentEvent records | -| `find-first` | Find first matching platformFunctionDeploymentEvent record | -| `get` | Get a platformFunctionDeploymentEvent by id | -| `create` | Create a new platformFunctionDeploymentEvent | -| `update` | Update an existing platformFunctionDeploymentEvent | -| `delete` | Delete a platformFunctionDeploymentEvent | +| `list` | List all functionInvocation records | +| `find-first` | Find first matching functionInvocation record | +| `get` | Get a functionInvocation by id | +| `create` | Create a new functionInvocation | +| `update` | Update an existing functionInvocation | +| `delete` | Delete a functionInvocation | **Fields:** | Field | Type | |-------|------| | `actorId` | UUID | +| `apiBindingId` | UUID | +| `channel` | String | +| `completedAt` | Datetime | | `createdAt` | Datetime | -| `deploymentId` | UUID | -| `eventType` | String | +| `createdByPrincipal` | UUID | +| `databaseId` | UUID | +| `definitionScope` | String | +| `durationMs` | Int | +| `entityId` | UUID | +| `entityType` | String | +| `error` | String | +| `functionDefinitionId` | UUID | +| `graphExecutionId` | UUID | | `id` | UUID | -| `message` | String | -| `metadata` | JSON | +| `jobId` | BigInt | +| `organizationId` | UUID | +| `parentInvocationId` | UUID | +| `payload` | JSON | +| `principalId` | UUID | +| `provenance` | JSON | +| `result` | JSON | +| `startedAt` | Datetime | +| `status` | String | +| `taskIdentifier` | String | -**Required create fields:** `deploymentId`, `eventType` -**Optional create fields (backend defaults):** `actorId`, `message`, `metadata` +**Required create fields:** `channel`, `databaseId`, `taskIdentifier` +**Optional create fields (backend defaults):** `actorId`, `apiBindingId`, `completedAt`, `createdByPrincipal`, `definitionScope`, `durationMs`, `entityId`, `entityType`, `error`, `functionDefinitionId`, `graphExecutionId`, `jobId`, `organizationId`, `parentInvocationId`, `payload`, `principalId`, `provenance`, `result`, `startedAt`, `status` -### `platform-function-execution-log` +### `get-all-tree-nodes-record` -CRUD operations for PlatformFunctionExecutionLog records. +CRUD operations for GetAllTreeNodesRecord records. | Subcommand | Description | |------------|-------------| -| `list` | List all platformFunctionExecutionLog records | -| `find-first` | Find first matching platformFunctionExecutionLog record | -| `get` | Get a platformFunctionExecutionLog by id | -| `create` | Create a new platformFunctionExecutionLog | -| `update` | Update an existing platformFunctionExecutionLog | -| `delete` | Delete a platformFunctionExecutionLog | +| `list` | List all getAllTreeNodesRecord records | +| `find-first` | Find first matching getAllTreeNodesRecord record | +| `get` | Get a getAllTreeNodesRecord by id | +| `create` | Create a new getAllTreeNodesRecord | +| `update` | Update an existing getAllTreeNodesRecord | +| `delete` | Delete a getAllTreeNodesRecord | **Fields:** | Field | Type | |-------|------| -| `actorId` | UUID | -| `createdAt` | Datetime | -| `id` | UUID | -| `invocationId` | UUID | -| `logLevel` | String | -| `message` | String | -| `metadata` | JSON | -| `taskIdentifier` | String | +| `data` | JSON | +| `path` | String | -**Required create fields:** `message` -**Optional create fields (backend defaults):** `actorId`, `invocationId`, `logLevel`, `metadata`, `taskIdentifier` +**Required create fields:** `data`, `path` -### `platform-function-invocation-attempt` +### `image` -CRUD operations for PlatformFunctionInvocationAttempt records. +CRUD operations for Image records. | Subcommand | Description | |------------|-------------| -| `list` | List all platformFunctionInvocationAttempt records | -| `find-first` | Find first matching platformFunctionInvocationAttempt record | -| `get` | Get a platformFunctionInvocationAttempt by id | -| `create` | Create a new platformFunctionInvocationAttempt | -| `update` | Update an existing platformFunctionInvocationAttempt | -| `delete` | Delete a platformFunctionInvocationAttempt | +| `list` | List all image records | +| `find-first` | Find first matching image record | +| `get` | Get a image by id | +| `create` | Create a new image | +| `update` | Update an existing image | +| `delete` | Delete a image | **Fields:** | Field | Type | |-------|------| -| `actorId` | UUID | -| `attempt` | Int | | `createdAt` | Datetime | -| `durationMs` | Int | -| `error` | String | -| `errorDetail` | JSON | +| `createdByPrincipal` | UUID | +| `databaseId` | UUID | +| `description` | String | +| `digest` | String | +| `expiresAt` | Datetime | | `id` | UUID | -| `invocationCreatedAt` | Datetime | -| `invocationId` | UUID | -| `startedAt` | Datetime | -| `success` | Boolean | -| `taskIdentifier` | String | +| `isPublished` | Boolean | +| `labels` | JSON | +| `metadata` | JSON | +| `name` | String | +| `ownerId` | UUID | +| `platformOnly` | Boolean | +| `registryHost` | String | +| `repository` | String | +| `runtime` | String | +| `tag` | String | +| `updatedAt` | Datetime | +| `updatedByPrincipal` | UUID | -**Required create fields:** `attempt`, `invocationCreatedAt`, `invocationId`, `success`, `taskIdentifier` -**Optional create fields (backend defaults):** `actorId`, `durationMs`, `error`, `errorDetail`, `startedAt` +**Required create fields:** `databaseId`, `name`, `repository` +**Optional create fields (backend defaults):** `createdByPrincipal`, `description`, `digest`, `expiresAt`, `isPublished`, `labels`, `metadata`, `ownerId`, `platformOnly`, `registryHost`, `runtime`, `tag`, `updatedByPrincipal` -### `platform-function-invocation` +### `image-grant` -CRUD operations for PlatformFunctionInvocation records. +CRUD operations for ImageGrant records. | Subcommand | Description | |------------|-------------| -| `list` | List all platformFunctionInvocation records | -| `find-first` | Find first matching platformFunctionInvocation record | -| `get` | Get a platformFunctionInvocation by id | -| `create` | Create a new platformFunctionInvocation | -| `update` | Update an existing platformFunctionInvocation | -| `delete` | Delete a platformFunctionInvocation | +| `list` | List all imageGrant records | +| `find-first` | Find first matching imageGrant record | +| `get` | Get a imageGrant by id | +| `create` | Create a new imageGrant | +| `update` | Update an existing imageGrant | +| `delete` | Delete a imageGrant | **Fields:** | Field | Type | |-------|------| -| `actorId` | UUID | -| `apiBindingId` | UUID | -| `channel` | String | -| `completedAt` | Datetime | +| `actions` | String | | `createdAt` | Datetime | +| `createdByPrincipal` | UUID | | `databaseId` | UUID | -| `definitionScope` | String | -| `durationMs` | Int | -| `error` | String | -| `functionDefinitionId` | UUID | -| `graphExecutionId` | UUID | +| `expiresAt` | Datetime | +| `grantedBy` | UUID | +| `granteeKey` | UUID | +| `granteeScope` | String | | `id` | UUID | -| `jobId` | BigInt | -| `parentInvocationId` | UUID | -| `payload` | JSON | -| `provenance` | JSON | -| `result` | JSON | -| `startedAt` | Datetime | -| `status` | String | -| `taskIdentifier` | String | +| `imageId` | UUID | +| `updatedAt` | Datetime | +| `updatedByPrincipal` | UUID | -**Required create fields:** `taskIdentifier` -**Optional create fields (backend defaults):** `actorId`, `apiBindingId`, `channel`, `completedAt`, `databaseId`, `definitionScope`, `durationMs`, `error`, `functionDefinitionId`, `graphExecutionId`, `jobId`, `parentInvocationId`, `payload`, `provenance`, `result`, `startedAt`, `status` +**Required create fields:** `databaseId`, `granteeKey`, `granteeScope`, `imageId` +**Optional create fields (backend defaults):** `actions`, `createdByPrincipal`, `expiresAt`, `grantedBy`, `updatedByPrincipal` -### `platform-infra-commit` +### `infra-commit` -CRUD operations for PlatformInfraCommit records. +CRUD operations for InfraCommit records. | Subcommand | Description | |------------|-------------| -| `list` | List all platformInfraCommit records | -| `find-first` | Find first matching platformInfraCommit record | -| `get` | Get a platformInfraCommit by id | -| `create` | Create a new platformInfraCommit | -| `update` | Update an existing platformInfraCommit | -| `delete` | Delete a platformInfraCommit | +| `list` | List all infraCommit records | +| `find-first` | Find first matching infraCommit record | +| `get` | Get a infraCommit by id | +| `create` | Create a new infraCommit | +| `update` | Update an existing infraCommit | +| `delete` | Delete a infraCommit | **Fields:** @@ -1320,29 +1403,29 @@ CRUD operations for PlatformInfraCommit records. |-------|------| | `authorId` | UUID | | `committerId` | UUID | +| `databaseId` | UUID | | `date` | Datetime | | `id` | UUID | | `message` | String | | `parentIds` | UUID | -| `scopeId` | UUID | | `storeId` | UUID | | `treeId` | UUID | -**Required create fields:** `scopeId`, `storeId` +**Required create fields:** `databaseId`, `storeId` **Optional create fields (backend defaults):** `authorId`, `committerId`, `date`, `message`, `parentIds`, `treeId` -### `platform-infra-get-all-tree-nodes-record` +### `infra-get-all-tree-nodes-record` -CRUD operations for PlatformInfraGetAllTreeNodesRecord records. +CRUD operations for InfraGetAllTreeNodesRecord records. | Subcommand | Description | |------------|-------------| -| `list` | List all platformInfraGetAllTreeNodesRecord records | -| `find-first` | Find first matching platformInfraGetAllTreeNodesRecord record | -| `get` | Get a platformInfraGetAllTreeNodesRecord by id | -| `create` | Create a new platformInfraGetAllTreeNodesRecord | -| `update` | Update an existing platformInfraGetAllTreeNodesRecord | -| `delete` | Delete a platformInfraGetAllTreeNodesRecord | +| `list` | List all infraGetAllTreeNodesRecord records | +| `find-first` | Find first matching infraGetAllTreeNodesRecord record | +| `get` | Get a infraGetAllTreeNodesRecord by id | +| `create` | Create a new infraGetAllTreeNodesRecord | +| `update` | Update an existing infraGetAllTreeNodesRecord | +| `delete` | Delete a infraGetAllTreeNodesRecord | **Fields:** @@ -1353,18 +1436,18 @@ CRUD operations for PlatformInfraGetAllTreeNodesRecord records. **Required create fields:** `data`, `path` -### `platform-infra-object` +### `infra-object` -CRUD operations for PlatformInfraObject records. +CRUD operations for InfraObject records. | Subcommand | Description | |------------|-------------| -| `list` | List all platformInfraObject records | -| `find-first` | Find first matching platformInfraObject record | -| `get` | Get a platformInfraObject by id | -| `create` | Create a new platformInfraObject | -| `update` | Update an existing platformInfraObject | -| `delete` | Delete a platformInfraObject | +| `list` | List all infraObject records | +| `find-first` | Find first matching infraObject record | +| `get` | Get a infraObject by id | +| `create` | Create a new infraObject | +| `update` | Update an existing infraObject | +| `delete` | Delete a infraObject | **Fields:** @@ -1372,85 +1455,120 @@ CRUD operations for PlatformInfraObject records. |-------|------| | `createdAt` | Datetime | | `data` | JSON | +| `databaseId` | UUID | | `id` | UUID | | `kids` | UUID | | `ktree` | String | -| `scopeId` | UUID | -**Required create fields:** `scopeId` +**Required create fields:** `databaseId` **Optional create fields (backend defaults):** `data`, `kids`, `ktree` -### `platform-infra-ref` +### `infra-ref` -CRUD operations for PlatformInfraRef records. +CRUD operations for InfraRef records. | Subcommand | Description | |------------|-------------| -| `list` | List all platformInfraRef records | -| `find-first` | Find first matching platformInfraRef record | -| `get` | Get a platformInfraRef by id | -| `create` | Create a new platformInfraRef | -| `update` | Update an existing platformInfraRef | -| `delete` | Delete a platformInfraRef | +| `list` | List all infraRef records | +| `find-first` | Find first matching infraRef record | +| `get` | Get a infraRef by id | +| `create` | Create a new infraRef | +| `update` | Update an existing infraRef | +| `delete` | Delete a infraRef | **Fields:** | Field | Type | |-------|------| | `commitId` | UUID | +| `databaseId` | UUID | | `id` | UUID | | `name` | String | -| `scopeId` | UUID | | `storeId` | UUID | -**Required create fields:** `name`, `scopeId`, `storeId` +**Required create fields:** `databaseId`, `name`, `storeId` **Optional create fields (backend defaults):** `commitId` -### `platform-infra-store` +### `infra-store` -CRUD operations for PlatformInfraStore records. +CRUD operations for InfraStore records. | Subcommand | Description | |------------|-------------| -| `list` | List all platformInfraStore records | -| `find-first` | Find first matching platformInfraStore record | -| `get` | Get a platformInfraStore by id | -| `create` | Create a new platformInfraStore | -| `update` | Update an existing platformInfraStore | -| `delete` | Delete a platformInfraStore | +| `list` | List all infraStore records | +| `find-first` | Find first matching infraStore record | +| `get` | Get a infraStore by id | +| `create` | Create a new infraStore | +| `update` | Update an existing infraStore | +| `delete` | Delete a infraStore | **Fields:** | Field | Type | |-------|------| | `createdAt` | Datetime | +| `databaseId` | UUID | | `hash` | UUID | | `id` | UUID | | `name` | String | -| `scopeId` | UUID | -**Required create fields:** `name`, `scopeId` +**Required create fields:** `databaseId`, `name` **Optional create fields (backend defaults):** `hash` -### `platform-namespace` +### `integration-provider` -CRUD operations for PlatformNamespace records. +CRUD operations for IntegrationProvider records. | Subcommand | Description | |------------|-------------| -| `list` | List all platformNamespace records | -| `find-first` | Find first matching platformNamespace record | -| `get` | Get a platformNamespace by id | -| `create` | Create a new platformNamespace | -| `update` | Update an existing platformNamespace | -| `delete` | Delete a platformNamespace | +| `list` | List all integrationProvider records | +| `find-first` | Find first matching integrationProvider record | +| `get` | Get a integrationProvider by id | +| `create` | Create a new integrationProvider | +| `update` | Update an existing integrationProvider | +| `delete` | Delete a integrationProvider | + +**Fields:** + +| Field | Type | +|-------|------| +| `brand` | JSON | +| `category` | String | +| `createdAt` | Datetime | +| `description` | String | +| `icon` | String | +| `id` | UUID | +| `logo` | Image | +| `name` | String | +| `requiredConfigs` | ResourceRequirement | +| `requiredSecrets` | ResourceRequirement | +| `slug` | String | +| `updatedAt` | Datetime | + +**Required create fields:** `name`, `slug` +**Optional create fields (backend defaults):** `brand`, `category`, `description`, `icon`, `logo`, `requiredConfigs`, `requiredSecrets` + +### `namespace` + +CRUD operations for Namespace records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all namespace records | +| `find-first` | Find first matching namespace record | +| `get` | Get a namespace by id | +| `create` | Create a new namespace | +| `update` | Update an existing namespace | +| `delete` | Delete a namespace | **Fields:** | Field | Type | |-------|------| | `annotations` | JSON | +| `clusterId` | UUID | | `createdAt` | Datetime | +| `databaseId` | UUID | | `description` | String | | `id` | UUID | | `isActive` | Boolean | @@ -1462,21 +1580,21 @@ CRUD operations for PlatformNamespace records. | `status` | String | | `updatedAt` | Datetime | -**Required create fields:** `name`, `namespaceName` -**Optional create fields (backend defaults):** `annotations`, `description`, `isActive`, `isManaged`, `labels`, `lastError`, `status` +**Required create fields:** `databaseId`, `name`, `namespaceName` +**Optional create fields (backend defaults):** `annotations`, `clusterId`, `description`, `isActive`, `isManaged`, `labels`, `lastError`, `status` -### `platform-namespace-event` +### `namespace-event` -CRUD operations for PlatformNamespaceEvent records. +CRUD operations for NamespaceEvent records. | Subcommand | Description | |------------|-------------| -| `list` | List all platformNamespaceEvent records | -| `find-first` | Find first matching platformNamespaceEvent record | -| `get` | Get a platformNamespaceEvent by id | -| `create` | Create a new platformNamespaceEvent | -| `update` | Update an existing platformNamespaceEvent | -| `delete` | Delete a platformNamespaceEvent | +| `list` | List all namespaceEvent records | +| `find-first` | Find first matching namespaceEvent record | +| `get` | Get a namespaceEvent by id | +| `create` | Create a new namespaceEvent | +| `update` | Update an existing namespaceEvent | +| `delete` | Delete a namespaceEvent | **Fields:** @@ -1484,1017 +1602,3838 @@ CRUD operations for PlatformNamespaceEvent records. |-------|------| | `actorId` | UUID | | `createdAt` | Datetime | +| `databaseId` | UUID | | `eventType` | String | | `id` | UUID | | `message` | String | | `metadata` | JSON | | `namespaceId` | UUID | -**Required create fields:** `eventType`, `namespaceId` +**Required create fields:** `databaseId`, `eventType`, `namespaceId` **Optional create fields (backend defaults):** `actorId`, `message`, `metadata` -### `platform-resource` +### `platform-build` -CRUD operations for PlatformResource records. +CRUD operations for PlatformBuild records. | Subcommand | Description | |------------|-------------| -| `list` | List all platformResource records | -| `find-first` | Find first matching platformResource record | -| `get` | Get a platformResource by id | -| `create` | Create a new platformResource | -| `update` | Update an existing platformResource | -| `delete` | Delete a platformResource | +| `list` | List all platformBuild records | +| `find-first` | Find first matching platformBuild record | +| `get` | Get a platformBuild by id | +| `create` | Create a new platformBuild | +| `update` | Update an existing platformBuild | +| `delete` | Delete a platformBuild | **Fields:** | Field | Type | |-------|------| -| `annotations` | JSON | -| `cpuLimitMillicores` | BigInt | -| `cpuRequestMillicores` | BigInt | +| `actorId` | UUID | +| `attempt` | Int | +| `commitSha` | String | +| `conclusion` | String | | `createdAt` | Datetime | -| `createdBy` | UUID | -| `errorCount` | Int | +| `createdByPrincipal` | UUID | +| `eventId` | UUID | +| `finishedAt` | Datetime | | `id` | UUID | -| `installationId` | UUID | -| `integrations` | String | -| `kind` | String | -| `labels` | JSON | -| `lastError` | String | -| `lastHeartbeatAt` | Datetime | -| `memoryLimitBytes` | BigInt | -| `memoryRequestBytes` | BigInt | -| `name` | String | -| `namespaceId` | UUID | -| `realm` | String | -| `replicas` | Int | -| `requiredConfigs` | ResourceRequirement | -| `requiredSecrets` | ResourceRequirement | -| `resourceDefinitionId` | UUID | -| `slug` | String | -| `spec` | JSON | +| `imageRef` | String | +| `jobId` | BigInt | +| `logs` | Upload | +| `matrixKey` | String | +| `metadata` | JSON | +| `proposalId` | UUID | +| `ref` | String | +| `repositoryId` | UUID | +| `startedAt` | Datetime | | `status` | String | -| `statusObserved` | JSON | -| `storageClass` | String | -| `storageSizeBytes` | BigInt | | `updatedAt` | Datetime | -| `updatedBy` | UUID | +| `updatedByPrincipal` | UUID | +| `workflowId` | UUID | -**Required create fields:** `kind`, `name`, `namespaceId`, `slug` -**Optional create fields (backend defaults):** `annotations`, `createdBy`, `errorCount`, `installationId`, `integrations`, `labels`, `lastError`, `lastHeartbeatAt`, `realm`, `requiredConfigs`, `requiredSecrets`, `resourceDefinitionId`, `spec`, `status`, `statusObserved`, `updatedBy` +**Required create fields:** `repositoryId` +**Optional create fields (backend defaults):** `actorId`, `attempt`, `commitSha`, `conclusion`, `createdByPrincipal`, `eventId`, `finishedAt`, `imageRef`, `jobId`, `logs`, `matrixKey`, `metadata`, `proposalId`, `ref`, `startedAt`, `status`, `updatedByPrincipal`, `workflowId` -### `platform-resource-declared-capacity` +### `platform-build-step` -CRUD operations for PlatformResourceDeclaredCapacity records. +CRUD operations for PlatformBuildStep records. | Subcommand | Description | |------------|-------------| -| `list` | List all platformResourceDeclaredCapacity records | -| `find-first` | Find first matching platformResourceDeclaredCapacity record | -| `get` | Get a platformResourceDeclaredCapacity by id | -| `create` | Create a new platformResourceDeclaredCapacity | -| `update` | Update an existing platformResourceDeclaredCapacity | -| `delete` | Delete a platformResourceDeclaredCapacity | +| `list` | List all platformBuildStep records | +| `find-first` | Find first matching platformBuildStep record | +| `get` | Get a platformBuildStep by id | +| `create` | Create a new platformBuildStep | +| `update` | Update an existing platformBuildStep | +| `delete` | Delete a platformBuildStep | **Fields:** | Field | Type | |-------|------| -| `cpuLimitMillicores` | BigInt | -| `cpuRequestMillicores` | BigInt | -| `installationId` | UUID | -| `isTransient` | Boolean | +| `buildId` | UUID | +| `createdByPrincipal` | UUID | +| `exitCode` | Int | +| `finishedAt` | Datetime | +| `id` | UUID | | `kind` | String | -| `memoryLimitBytes` | BigInt | -| `memoryRequestBytes` | BigInt | -| `namespaceId` | UUID | -| `podCountMax` | Int | -| `podCountMin` | Int | -| `source` | String | -| `sourceId` | UUID | -| `storageSizeBytes` | BigInt | +| `logBytes` | BigInt | +| `logOffset` | BigInt | +| `name` | String | +| `parentSeq` | Int | +| `recordedAt` | Datetime | +| `seq` | Int | +| `startedAt` | Datetime | +| `status` | String | +| `summary` | JSON | -**Required create fields:** `cpuLimitMillicores`, `cpuRequestMillicores`, `installationId`, `isTransient`, `kind`, `memoryLimitBytes`, `memoryRequestBytes`, `namespaceId`, `podCountMax`, `podCountMin`, `source`, `sourceId`, `storageSizeBytes` +**Required create fields:** `buildId`, `name`, `seq` +**Optional create fields (backend defaults):** `createdByPrincipal`, `exitCode`, `finishedAt`, `kind`, `logBytes`, `logOffset`, `parentSeq`, `recordedAt`, `startedAt`, `status`, `summary` -### `platform-resource-definition` +### `platform-builder-binding` -CRUD operations for PlatformResourceDefinition records. +CRUD operations for PlatformBuilderBinding records. | Subcommand | Description | |------------|-------------| -| `list` | List all platformResourceDefinition records | -| `find-first` | Find first matching platformResourceDefinition record | -| `get` | Get a platformResourceDefinition by id | -| `create` | Create a new platformResourceDefinition | -| `update` | Update an existing platformResourceDefinition | -| `delete` | Delete a platformResourceDefinition | +| `list` | List all platformBuilderBinding records | +| `find-first` | Find first matching platformBuilderBinding record | +| `get` | Get a platformBuilderBinding by id | +| `create` | Create a new platformBuilderBinding | +| `update` | Update an existing platformBuilderBinding | +| `delete` | Delete a platformBuilderBinding | **Fields:** | Field | Type | |-------|------| -| `annotations` | JSON | | `createdAt` | Datetime | | `createdBy` | UUID | -| `defaultSpec` | JSON | -| `description` | String | +| `createdByPrincipal` | UUID | | `id` | UUID | -| `integrations` | String | -| `kind` | String | -| `labels` | JSON | -| `name` | String | +| `installationId` | UUID | +| `lastError` | String | +| `metadata` | JSON | | `namespaceId` | UUID | -| `paramsSchema` | JSON | -| `requiredConfigs` | ResourceRequirement | -| `requiredSecrets` | ResourceRequirement | -| `slug` | String | -| `stepUpMinAge` | Interval | +| `observedHost` | String | +| `realm` | String | +| `status` | String | | `updatedAt` | Datetime | | `updatedBy` | UUID | +| `updatedByPrincipal` | UUID | -**Required create fields:** `kind`, `name`, `namespaceId`, `slug` -**Optional create fields (backend defaults):** `annotations`, `createdBy`, `defaultSpec`, `description`, `integrations`, `labels`, `paramsSchema`, `requiredConfigs`, `requiredSecrets`, `stepUpMinAge`, `updatedBy` +**Required create fields:** `installationId`, `namespaceId` +**Optional create fields (backend defaults):** `createdBy`, `createdByPrincipal`, `lastError`, `metadata`, `observedHost`, `realm`, `status`, `updatedBy`, `updatedByPrincipal` -### `platform-resource-event` +### `platform-function-api-binding` -CRUD operations for PlatformResourceEvent records. +CRUD operations for PlatformFunctionApiBinding records. | Subcommand | Description | |------------|-------------| -| `list` | List all platformResourceEvent records | -| `find-first` | Find first matching platformResourceEvent record | -| `get` | Get a platformResourceEvent by id | -| `create` | Create a new platformResourceEvent | -| `update` | Update an existing platformResourceEvent | -| `delete` | Delete a platformResourceEvent | +| `list` | List all platformFunctionApiBinding records | +| `find-first` | Find first matching platformFunctionApiBinding record | +| `get` | Get a platformFunctionApiBinding by id | +| `create` | Create a new platformFunctionApiBinding | +| `update` | Update an existing platformFunctionApiBinding | +| `delete` | Delete a platformFunctionApiBinding | **Fields:** | Field | Type | |-------|------| -| `actorId` | UUID | +| `alias` | String | +| `apiId` | UUID | +| `config` | JSON | | `createdAt` | Datetime | -| `eventType` | String | +| `functionDefinitionId` | UUID | | `id` | UUID | -| `message` | String | -| `metadata` | JSON | -| `resourceId` | UUID | +| `updatedAt` | Datetime | -**Required create fields:** `eventType`, `resourceId` -**Optional create fields (backend defaults):** `actorId`, `message`, `metadata` +**Required create fields:** `apiId`, `functionDefinitionId` +**Optional create fields (backend defaults):** `alias`, `config` -### `platform-resource-installation` +### `platform-function-capability-binding` -CRUD operations for PlatformResourceInstallation records. +CRUD operations for PlatformFunctionCapabilityBinding records. | Subcommand | Description | |------------|-------------| -| `list` | List all platformResourceInstallation records | -| `find-first` | Find first matching platformResourceInstallation record | -| `get` | Get a platformResourceInstallation by id | -| `create` | Create a new platformResourceInstallation | -| `update` | Update an existing platformResourceInstallation | -| `delete` | Delete a platformResourceInstallation | +| `list` | List all platformFunctionCapabilityBinding records | +| `find-first` | Find first matching platformFunctionCapabilityBinding record | +| `get` | Get a platformFunctionCapabilityBinding by id | +| `create` | Create a new platformFunctionCapabilityBinding | +| `update` | Update an existing platformFunctionCapabilityBinding | +| `delete` | Delete a platformFunctionCapabilityBinding | **Fields:** | Field | Type | |-------|------| -| `commitId` | UUID | +| `bucketId` | UUID | | `createdAt` | Datetime | -| `createdBy` | UUID | +| `functionId` | UUID | +| `graphId` | UUID | | `id` | UUID | -| `name` | String | -| `namespaceId` | UUID | -| `params` | JSON | -| `revision` | Int | -| `slug` | String | -| `status` | String | -| `storeId` | UUID | +| `key` | String | +| `lifecycle` | String | +| `metadata` | JSON | | `updatedAt` | Datetime | -| `updatedBy` | UUID | -**Required create fields:** `name`, `namespaceId`, `slug` -**Optional create fields (backend defaults):** `commitId`, `createdBy`, `params`, `revision`, `status`, `storeId`, `updatedBy` +**Required create fields:** `lifecycle` +**Optional create fields (backend defaults):** `bucketId`, `functionId`, `graphId`, `key`, `metadata` -### `platform-resource-status-check` +### `platform-function-definition` -CRUD operations for PlatformResourceStatusCheck records. +CRUD operations for PlatformFunctionDefinition records. | Subcommand | Description | |------------|-------------| -| `list` | List all platformResourceStatusCheck records | -| `find-first` | Find first matching platformResourceStatusCheck record | -| `get` | Get a platformResourceStatusCheck by id | -| `create` | Create a new platformResourceStatusCheck | -| `update` | Update an existing platformResourceStatusCheck | -| `delete` | Delete a platformResourceStatusCheck | +| `list` | List all platformFunctionDefinition records | +| `find-first` | Find first matching platformFunctionDefinition record | +| `get` | Get a platformFunctionDefinition by id | +| `create` | Create a new platformFunctionDefinition | +| `update` | Update an existing platformFunctionDefinition | +| `delete` | Delete a platformFunctionDefinition | **Fields:** | Field | Type | |-------|------| -| `completedAt` | Datetime | +| `accessChannels` | String | +| `anonymousCallable` | Boolean | +| `billable` | Boolean | +| `category` | String | +| `concurrency` | Int | +| `cpuLimitMillicores` | BigInt | +| `cpuRequestMillicores` | BigInt | +| `createdAt` | Datetime | +| `createdByPrincipal` | UUID | +| `description` | String | +| `fnCategory` | String | +| `functionColumns` | JSON | +| `graphId` | UUID | +| `icon` | String | | `id` | UUID | -| `requestedAt` | Datetime | -| `requestedBy` | UUID | -| `resourceId` | UUID | -| `result` | JSON | -| `status` | String | +| `image` | String | +| `inputs` | JSON | +| `integrations` | String | +| `isPublished` | Boolean | +| `maxAttempts` | Int | +| `memoryLimitBytes` | BigInt | +| `memoryRequestBytes` | BigInt | +| `moduleTable` | String | +| `name` | String | +| `outputs` | JSON | +| `payloadArgs` | JSON | +| `priority` | Int | +| `props` | JSON | +| `protected` | Boolean | +| `publishedAt` | Datetime | +| `queueName` | String | +| `requiredBuckets` | String | +| `requiredCapabilities` | JSON | +| `requiredConfigs` | ResourceRequirement | +| `requiredModels` | String | +| `requiredModules` | String | +| `requiredSecrets` | ResourceRequirement | +| `resources` | JSON | +| `runtime` | String | +| `scaleMax` | Int | +| `scaleMin` | Int | +| `system` | Boolean | +| `targetFunction` | String | +| `targetSchema` | String | +| `taskIdentifier` | String | +| `timeoutSeconds` | Int | +| `updatedAt` | Datetime | +| `updatedByPrincipal` | UUID | +| `volatile` | Boolean | -**Required create fields:** `resourceId` -**Optional create fields (backend defaults):** `completedAt`, `requestedAt`, `requestedBy`, `result`, `status` +**Required create fields:** `category`, `name` +**Optional create fields (backend defaults):** `accessChannels`, `anonymousCallable`, `billable`, `concurrency`, `createdByPrincipal`, `description`, `fnCategory`, `functionColumns`, `graphId`, `icon`, `image`, `inputs`, `integrations`, `isPublished`, `maxAttempts`, `moduleTable`, `outputs`, `payloadArgs`, `priority`, `props`, `protected`, `publishedAt`, `queueName`, `requiredBuckets`, `requiredCapabilities`, `requiredConfigs`, `requiredModels`, `requiredModules`, `requiredSecrets`, `resources`, `runtime`, `scaleMax`, `scaleMin`, `system`, `targetFunction`, `targetSchema`, `timeoutSeconds`, `updatedByPrincipal`, `volatile` -### `platform-resource-usage-log` +### `platform-function-deployment` -CRUD operations for PlatformResourceUsageLog records. +CRUD operations for PlatformFunctionDeployment records. | Subcommand | Description | |------------|-------------| -| `list` | List all platformResourceUsageLog records | -| `find-first` | Find first matching platformResourceUsageLog record | -| `get` | Get a platformResourceUsageLog by id | -| `create` | Create a new platformResourceUsageLog | -| `update` | Update an existing platformResourceUsageLog | -| `delete` | Delete a platformResourceUsageLog | +| `list` | List all platformFunctionDeployment records | +| `find-first` | Find first matching platformFunctionDeployment record | +| `get` | Get a platformFunctionDeployment by id | +| `create` | Create a new platformFunctionDeployment | +| `update` | Update an existing platformFunctionDeployment | +| `delete` | Delete a platformFunctionDeployment | **Fields:** | Field | Type | |-------|------| -| `cpuMillicores` | BigInt | +| `annotations` | JSON | +| `concurrency` | Int | +| `createdAt` | Datetime | +| `createdByPrincipal` | UUID | +| `errorCount` | Int | +| `handlerName` | String | | `id` | UUID | -| `intervalSeconds` | Int | -| `memoryBytes` | BigInt | -| `metrics` | JSON | +| `image` | String | +| `imageVersion` | String | +| `labels` | JSON | +| `lastError` | String | +| `lastErrorAt` | Datetime | | `namespaceId` | UUID | -| `resourceId` | UUID | -| `sampledAt` | Datetime | -| `source` | String | +| `realm` | String | +| `resources` | JSON | +| `revision` | Int | +| `scaleMax` | Int | +| `scaleMin` | Int | +| `serviceName` | String | +| `serviceUrl` | String | +| `status` | String | +| `timeoutSeconds` | Int | +| `updatedAt` | Datetime | +| `updatedByPrincipal` | UUID | -**Required create fields:** `intervalSeconds`, `namespaceId`, `source` -**Optional create fields (backend defaults):** `cpuMillicores`, `memoryBytes`, `metrics`, `resourceId`, `sampledAt` +**Required create fields:** `image`, `namespaceId` +**Optional create fields (backend defaults):** `annotations`, `concurrency`, `createdByPrincipal`, `errorCount`, `handlerName`, `imageVersion`, `labels`, `lastError`, `lastErrorAt`, `realm`, `resources`, `revision`, `scaleMax`, `scaleMin`, `serviceName`, `serviceUrl`, `status`, `timeoutSeconds`, `updatedByPrincipal` -### `platform-resource-usage-summary` +### `platform-function-deployment-event` -CRUD operations for PlatformResourceUsageSummary records. +CRUD operations for PlatformFunctionDeploymentEvent records. | Subcommand | Description | |------------|-------------| -| `list` | List all platformResourceUsageSummary records | -| `find-first` | Find first matching platformResourceUsageSummary record | -| `get` | Get a platformResourceUsageSummary by id | -| `create` | Create a new platformResourceUsageSummary | -| `update` | Update an existing platformResourceUsageSummary | -| `delete` | Delete a platformResourceUsageSummary | +| `list` | List all platformFunctionDeploymentEvent records | +| `find-first` | Find first matching platformFunctionDeploymentEvent record | +| `get` | Get a platformFunctionDeploymentEvent by id | +| `create` | Create a new platformFunctionDeploymentEvent | +| `update` | Update an existing platformFunctionDeploymentEvent | +| `delete` | Delete a platformFunctionDeploymentEvent | **Fields:** | Field | Type | |-------|------| -| `date` | Date | -| `gbSeconds` | BigFloat | +| `actorId` | UUID | +| `createdAt` | Datetime | +| `deploymentId` | UUID | +| `eventType` | String | | `id` | UUID | -| `maxCpuMillicores` | BigInt | -| `maxMemoryBytes` | BigInt | -| `namespaceId` | UUID | -| `resourceId` | UUID | -| `runtimeSeconds` | BigInt | -| `sampleCount` | Int | +| `message` | String | +| `metadata` | JSON | -**Required create fields:** `date`, `namespaceId` -**Optional create fields (backend defaults):** `gbSeconds`, `maxCpuMillicores`, `maxMemoryBytes`, `resourceId`, `runtimeSeconds`, `sampleCount` +**Required create fields:** `deploymentId`, `eventType` +**Optional create fields (backend defaults):** `actorId`, `message`, `metadata` -### `platform-resource-utilization` +### `platform-function-execution-log` -CRUD operations for PlatformResourceUtilization records. +CRUD operations for PlatformFunctionExecutionLog records. | Subcommand | Description | |------------|-------------| -| `list` | List all platformResourceUtilization records | -| `find-first` | Find first matching platformResourceUtilization record | -| `get` | Get a platformResourceUtilization by id | -| `create` | Create a new platformResourceUtilization | -| `update` | Update an existing platformResourceUtilization | -| `delete` | Delete a platformResourceUtilization | +| `list` | List all platformFunctionExecutionLog records | +| `find-first` | Find first matching platformFunctionExecutionLog record | +| `get` | Get a platformFunctionExecutionLog by id | +| `create` | Create a new platformFunctionExecutionLog | +| `update` | Update an existing platformFunctionExecutionLog | +| `delete` | Delete a platformFunctionExecutionLog | **Fields:** | Field | Type | |-------|------| -| `avgMemoryBytes` | BigInt | -| `cpuLimitMillicores` | BigInt | -| `cpuPeakUtilization` | BigFloat | -| `cpuRequestHeadroomMillicores` | BigInt | -| `cpuRequestMillicores` | BigInt | -| `date` | Date | -| `gbSeconds` | BigFloat | -| `kind` | String | -| `maxCpuMillicores` | BigInt | -| `maxMemoryBytes` | BigInt | -| `memoryLimitBytes` | BigInt | -| `memoryPeakUtilization` | BigFloat | -| `memoryRequestBytes` | BigInt | -| `memoryRequestHeadroomBytes` | BigInt | -| `namespaceId` | UUID | -| `replicas` | Int | -| `resourceId` | UUID | -| `runtimeSeconds` | BigInt | -| `sampleCount` | Int | +| `actorId` | UUID | +| `createdAt` | Datetime | +| `id` | UUID | +| `invocationId` | UUID | +| `logLevel` | String | +| `message` | String | +| `metadata` | JSON | +| `taskIdentifier` | String | -**Required create fields:** `avgMemoryBytes`, `cpuLimitMillicores`, `cpuPeakUtilization`, `cpuRequestHeadroomMillicores`, `cpuRequestMillicores`, `date`, `gbSeconds`, `kind`, `maxCpuMillicores`, `maxMemoryBytes`, `memoryLimitBytes`, `memoryPeakUtilization`, `memoryRequestBytes`, `memoryRequestHeadroomBytes`, `namespaceId`, `replicas`, `resourceId`, `runtimeSeconds`, `sampleCount` +**Required create fields:** `message` +**Optional create fields (backend defaults):** `actorId`, `invocationId`, `logLevel`, `metadata`, `taskIdentifier` -### `platform-resources-health` +### `platform-function-invocation-attempt` -CRUD operations for PlatformResourcesHealth records. +CRUD operations for PlatformFunctionInvocationAttempt records. | Subcommand | Description | |------------|-------------| -| `list` | List all platformResourcesHealth records | -| `find-first` | Find first matching platformResourcesHealth record | -| `get` | Get a platformResourcesHealth by id | -| `create` | Create a new platformResourcesHealth | -| `update` | Update an existing platformResourcesHealth | -| `delete` | Delete a platformResourcesHealth | +| `list` | List all platformFunctionInvocationAttempt records | +| `find-first` | Find first matching platformFunctionInvocationAttempt record | +| `get` | Get a platformFunctionInvocationAttempt by id | +| `create` | Create a new platformFunctionInvocationAttempt | +| `update` | Update an existing platformFunctionInvocationAttempt | +| `delete` | Delete a platformFunctionInvocationAttempt | **Fields:** | Field | Type | |-------|------| -| `annotations` | JSON | -| `cpuLimitMillicores` | BigInt | -| `cpuRequestMillicores` | BigInt | +| `actorId` | UUID | +| `attempt` | Int | | `createdAt` | Datetime | -| `createdBy` | UUID | -| `errorCount` | Int | +| `durationMs` | Int | +| `error` | String | +| `errorDetail` | JSON | | `id` | UUID | -| `installationId` | UUID | -| `integrations` | String | -| `kind` | String | -| `labels` | JSON | -| `lastError` | String | -| `lastHeartbeatAt` | Datetime | -| `memoryLimitBytes` | BigInt | -| `memoryRequestBytes` | BigInt | -| `name` | String | -| `namespaceId` | UUID | -| `realm` | String | -| `replicas` | Int | -| `requiredConfigs` | ResourceRequirement | -| `requiredSecrets` | ResourceRequirement | -| `resourceDefinitionId` | UUID | -| `slug` | String | -| `spec` | JSON | -| `status` | String | -| `statusDetail` | String | -| `statusObserved` | JSON | -| `storageClass` | String | -| `storageSizeBytes` | BigInt | -| `updatedAt` | Datetime | -| `updatedBy` | UUID | +| `invocationCreatedAt` | Datetime | +| `invocationId` | UUID | +| `startedAt` | Datetime | +| `success` | Boolean | +| `taskIdentifier` | String | -**Required create fields:** `annotations`, `cpuLimitMillicores`, `cpuRequestMillicores`, `createdBy`, `errorCount`, `installationId`, `integrations`, `kind`, `labels`, `lastError`, `lastHeartbeatAt`, `memoryLimitBytes`, `memoryRequestBytes`, `name`, `namespaceId`, `realm`, `replicas`, `requiredConfigs`, `requiredSecrets`, `resourceDefinitionId`, `slug`, `spec`, `status`, `statusDetail`, `statusObserved`, `storageClass`, `storageSizeBytes`, `updatedBy` +**Required create fields:** `attempt`, `invocationCreatedAt`, `invocationId`, `success`, `taskIdentifier` +**Optional create fields (backend defaults):** `actorId`, `durationMs`, `error`, `errorDetail`, `startedAt` -### `platform-resources-requirements-state` +### `platform-function-invocation` -CRUD operations for PlatformResourcesRequirementsState records. +CRUD operations for PlatformFunctionInvocation records. | Subcommand | Description | |------------|-------------| -| `list` | List all platformResourcesRequirementsState records | -| `find-first` | Find first matching platformResourcesRequirementsState record | -| `get` | Get a platformResourcesRequirementsState by id | -| `create` | Create a new platformResourcesRequirementsState | -| `update` | Update an existing platformResourcesRequirementsState | -| `delete` | Delete a platformResourcesRequirementsState | +| `list` | List all platformFunctionInvocation records | +| `find-first` | Find first matching platformFunctionInvocation record | +| `get` | Get a platformFunctionInvocation by id | +| `create` | Create a new platformFunctionInvocation | +| `update` | Update an existing platformFunctionInvocation | +| `delete` | Delete a platformFunctionInvocation | **Fields:** | Field | Type | |-------|------| -| `configHash` | String | -| `configObjectName` | String | -| `requirementsHash` | String | -| `resourceId` | UUID | -| `secretsHash` | String | -| `secretsObjectName` | String | -| `slug` | String | - -**Required create fields:** `configHash`, `configObjectName`, `requirementsHash`, `resourceId`, `secretsHash`, `secretsObjectName`, `slug` - -### `platform-resources-resolved-requirement` - -CRUD operations for PlatformResourcesResolvedRequirement records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all platformResourcesResolvedRequirement records | -| `find-first` | Find first matching platformResourcesResolvedRequirement record | -| `get` | Get a platformResourcesResolvedRequirement by id | -| `create` | Create a new platformResourcesResolvedRequirement | -| `update` | Update an existing platformResourcesResolvedRequirement | -| `delete` | Delete a platformResourcesResolvedRequirement | - -**Fields:** - -| Field | Type | -|-------|------| -| `atomId` | UUID | -| `configObjectName` | String | -| `name` | String | -| `namespaceId` | UUID | -| `present` | Boolean | -| `realm` | String | -| `required` | Boolean | -| `requirementKind` | String | -| `resourceId` | UUID | -| `secretsObjectName` | String | -| `slug` | String | +| `actorId` | UUID | +| `apiBindingId` | UUID | +| `channel` | String | +| `completedAt` | Datetime | +| `createdAt` | Datetime | +| `createdByPrincipal` | UUID | +| `databaseId` | UUID | +| `definitionScope` | String | +| `durationMs` | Int | +| `entityId` | UUID | +| `entityType` | String | +| `error` | String | +| `functionDefinitionId` | UUID | +| `graphExecutionId` | UUID | +| `id` | UUID | +| `jobId` | BigInt | +| `organizationId` | UUID | +| `parentInvocationId` | UUID | +| `payload` | JSON | +| `principalId` | UUID | +| `provenance` | JSON | +| `result` | JSON | +| `startedAt` | Datetime | +| `status` | String | +| `taskIdentifier` | String | -**Required create fields:** `atomId`, `configObjectName`, `name`, `namespaceId`, `present`, `realm`, `required`, `requirementKind`, `resourceId`, `secretsObjectName`, `slug` +**Required create fields:** `channel`, `taskIdentifier` +**Optional create fields (backend defaults):** `actorId`, `apiBindingId`, `completedAt`, `createdByPrincipal`, `databaseId`, `definitionScope`, `durationMs`, `entityId`, `entityType`, `error`, `functionDefinitionId`, `graphExecutionId`, `jobId`, `organizationId`, `parentInvocationId`, `payload`, `principalId`, `provenance`, `result`, `startedAt`, `status` -### `platform-webhook-endpoint` +### `platform-image` -CRUD operations for PlatformWebhookEndpoint records. +CRUD operations for PlatformImage records. | Subcommand | Description | |------------|-------------| -| `list` | List all platformWebhookEndpoint records | -| `find-first` | Find first matching platformWebhookEndpoint record | -| `get` | Get a platformWebhookEndpoint by id | -| `create` | Create a new platformWebhookEndpoint | -| `update` | Update an existing platformWebhookEndpoint | -| `delete` | Delete a platformWebhookEndpoint | +| `list` | List all platformImage records | +| `find-first` | Find first matching platformImage record | +| `get` | Get a platformImage by id | +| `create` | Create a new platformImage | +| `update` | Update an existing platformImage | +| `delete` | Delete a platformImage | **Fields:** | Field | Type | |-------|------| -| `active` | Boolean | | `createdAt` | Datetime | -| `createdBy` | UUID | -| `functionDefinitionId` | UUID | -| `host` | String | +| `createdByPrincipal` | UUID | +| `description` | String | +| `digest` | String | +| `expiresAt` | Datetime | | `id` | UUID | -| `namespaceId` | UUID | -| `path` | String | -| `provider` | String | -| `replayWindowSeconds` | Int | -| `signingSecretName` | String | +| `isPublished` | Boolean | +| `labels` | JSON | +| `metadata` | JSON | +| `name` | String | +| `ownerId` | UUID | +| `platformOnly` | Boolean | +| `registryHost` | String | +| `repository` | String | +| `runtime` | String | +| `tag` | String | | `updatedAt` | Datetime | -| `updatedBy` | UUID | +| `updatedByPrincipal` | UUID | -**Required create fields:** `functionDefinitionId`, `host`, `namespaceId`, `path`, `signingSecretName` -**Optional create fields (backend defaults):** `active`, `createdBy`, `provider`, `replayWindowSeconds`, `updatedBy` +**Required create fields:** `name`, `repository` +**Optional create fields (backend defaults):** `createdByPrincipal`, `description`, `digest`, `expiresAt`, `isPublished`, `labels`, `metadata`, `ownerId`, `platformOnly`, `registryHost`, `runtime`, `tag`, `updatedByPrincipal` -### `platform-webhook-event` +### `platform-image-grant` -CRUD operations for PlatformWebhookEvent records. +CRUD operations for PlatformImageGrant records. | Subcommand | Description | |------------|-------------| -| `list` | List all platformWebhookEvent records | -| `find-first` | Find first matching platformWebhookEvent record | -| `get` | Get a platformWebhookEvent by id | -| `create` | Create a new platformWebhookEvent | -| `update` | Update an existing platformWebhookEvent | -| `delete` | Delete a platformWebhookEvent | +| `list` | List all platformImageGrant records | +| `find-first` | Find first matching platformImageGrant record | +| `get` | Get a platformImageGrant by id | +| `create` | Create a new platformImageGrant | +| `update` | Update an existing platformImageGrant | +| `delete` | Delete a platformImageGrant | **Fields:** | Field | Type | |-------|------| +| `actions` | String | | `createdAt` | Datetime | -| `endpointId` | UUID | -| `error` | String | -| `externalEventId` | String | +| `createdByPrincipal` | UUID | +| `expiresAt` | Datetime | +| `grantedBy` | UUID | +| `granteeKey` | UUID | +| `granteeScope` | String | | `id` | UUID | -| `invocationCreatedAt` | Datetime | -| `invocationId` | UUID | -| `payload` | JSON | -| `provider` | String | -| `providerTimestamp` | Datetime | -| `status` | String | +| `imageId` | UUID | | `updatedAt` | Datetime | +| `updatedByPrincipal` | UUID | -**Required create fields:** `endpointId`, `externalEventId`, `provider` -**Optional create fields (backend defaults):** `error`, `invocationCreatedAt`, `invocationId`, `payload`, `providerTimestamp`, `status` +**Required create fields:** `granteeKey`, `granteeScope`, `imageId` +**Optional create fields (backend defaults):** `actions`, `createdByPrincipal`, `expiresAt`, `grantedBy`, `updatedByPrincipal` -### `resource` +### `platform-infra-commit` -CRUD operations for Resource records. +CRUD operations for PlatformInfraCommit records. | Subcommand | Description | |------------|-------------| -| `list` | List all resource records | -| `find-first` | Find first matching resource record | -| `get` | Get a resource by id | -| `create` | Create a new resource | -| `update` | Update an existing resource | -| `delete` | Delete a resource | +| `list` | List all platformInfraCommit records | +| `find-first` | Find first matching platformInfraCommit record | +| `get` | Get a platformInfraCommit by id | +| `create` | Create a new platformInfraCommit | +| `update` | Update an existing platformInfraCommit | +| `delete` | Delete a platformInfraCommit | **Fields:** | Field | Type | |-------|------| -| `annotations` | JSON | -| `cpuLimitMillicores` | BigInt | -| `cpuRequestMillicores` | BigInt | -| `createdAt` | Datetime | -| `createdBy` | UUID | -| `databaseId` | UUID | -| `errorCount` | Int | +| `authorId` | UUID | +| `committerId` | UUID | +| `date` | Datetime | | `id` | UUID | -| `installationId` | UUID | -| `integrations` | String | -| `kind` | String | -| `labels` | JSON | -| `lastError` | String | -| `lastHeartbeatAt` | Datetime | -| `memoryLimitBytes` | BigInt | -| `memoryRequestBytes` | BigInt | -| `name` | String | -| `namespaceId` | UUID | -| `realm` | String | -| `replicas` | Int | -| `requiredConfigs` | ResourceRequirement | -| `requiredSecrets` | ResourceRequirement | -| `resourceDefinitionId` | UUID | -| `slug` | String | -| `spec` | JSON | -| `status` | String | -| `statusObserved` | JSON | -| `storageClass` | String | -| `storageSizeBytes` | BigInt | -| `updatedAt` | Datetime | -| `updatedBy` | UUID | +| `message` | String | +| `parentIds` | UUID | +| `scopeId` | UUID | +| `storeId` | UUID | +| `treeId` | UUID | -**Required create fields:** `databaseId`, `kind`, `name`, `namespaceId`, `slug` -**Optional create fields (backend defaults):** `annotations`, `createdBy`, `errorCount`, `installationId`, `integrations`, `labels`, `lastError`, `lastHeartbeatAt`, `realm`, `requiredConfigs`, `requiredSecrets`, `resourceDefinitionId`, `spec`, `status`, `statusObserved`, `updatedBy` +**Required create fields:** `scopeId`, `storeId` +**Optional create fields (backend defaults):** `authorId`, `committerId`, `date`, `message`, `parentIds`, `treeId` -### `resource-declared-capacity` +### `platform-infra-get-all-tree-nodes-record` -CRUD operations for ResourceDeclaredCapacity records. +CRUD operations for PlatformInfraGetAllTreeNodesRecord records. | Subcommand | Description | |------------|-------------| -| `list` | List all resourceDeclaredCapacity records | -| `find-first` | Find first matching resourceDeclaredCapacity record | -| `get` | Get a resourceDeclaredCapacity by id | -| `create` | Create a new resourceDeclaredCapacity | -| `update` | Update an existing resourceDeclaredCapacity | -| `delete` | Delete a resourceDeclaredCapacity | +| `list` | List all platformInfraGetAllTreeNodesRecord records | +| `find-first` | Find first matching platformInfraGetAllTreeNodesRecord record | +| `get` | Get a platformInfraGetAllTreeNodesRecord by id | +| `create` | Create a new platformInfraGetAllTreeNodesRecord | +| `update` | Update an existing platformInfraGetAllTreeNodesRecord | +| `delete` | Delete a platformInfraGetAllTreeNodesRecord | **Fields:** | Field | Type | |-------|------| -| `cpuLimitMillicores` | BigInt | -| `cpuRequestMillicores` | BigInt | -| `installationId` | UUID | -| `isTransient` | Boolean | -| `kind` | String | -| `memoryLimitBytes` | BigInt | -| `memoryRequestBytes` | BigInt | -| `namespaceId` | UUID | -| `podCountMax` | Int | -| `podCountMin` | Int | -| `source` | String | -| `sourceId` | UUID | -| `storageSizeBytes` | BigInt | +| `data` | JSON | +| `path` | String | -**Required create fields:** `cpuLimitMillicores`, `cpuRequestMillicores`, `installationId`, `isTransient`, `kind`, `memoryLimitBytes`, `memoryRequestBytes`, `namespaceId`, `podCountMax`, `podCountMin`, `source`, `sourceId`, `storageSizeBytes` +**Required create fields:** `data`, `path` -### `resource-definition` +### `platform-infra-object` -CRUD operations for ResourceDefinition records. +CRUD operations for PlatformInfraObject records. | Subcommand | Description | |------------|-------------| -| `list` | List all resourceDefinition records | -| `find-first` | Find first matching resourceDefinition record | -| `get` | Get a resourceDefinition by id | -| `create` | Create a new resourceDefinition | -| `update` | Update an existing resourceDefinition | -| `delete` | Delete a resourceDefinition | +| `list` | List all platformInfraObject records | +| `find-first` | Find first matching platformInfraObject record | +| `get` | Get a platformInfraObject by id | +| `create` | Create a new platformInfraObject | +| `update` | Update an existing platformInfraObject | +| `delete` | Delete a platformInfraObject | **Fields:** | Field | Type | |-------|------| -| `annotations` | JSON | | `createdAt` | Datetime | -| `createdBy` | UUID | -| `databaseId` | UUID | -| `defaultSpec` | JSON | -| `description` | String | +| `data` | JSON | | `id` | UUID | -| `integrations` | String | -| `kind` | String | -| `labels` | JSON | -| `name` | String | -| `namespaceId` | UUID | -| `paramsSchema` | JSON | -| `requiredConfigs` | ResourceRequirement | -| `requiredSecrets` | ResourceRequirement | -| `slug` | String | -| `stepUpMinAge` | Interval | -| `updatedAt` | Datetime | -| `updatedBy` | UUID | +| `kids` | UUID | +| `ktree` | String | +| `scopeId` | UUID | -**Required create fields:** `databaseId`, `kind`, `name`, `namespaceId`, `slug` -**Optional create fields (backend defaults):** `annotations`, `createdBy`, `defaultSpec`, `description`, `integrations`, `labels`, `paramsSchema`, `requiredConfigs`, `requiredSecrets`, `stepUpMinAge`, `updatedBy` +**Required create fields:** `scopeId` +**Optional create fields (backend defaults):** `data`, `kids`, `ktree` -### `resource-event` +### `platform-infra-ref` -CRUD operations for ResourceEvent records. +CRUD operations for PlatformInfraRef records. | Subcommand | Description | |------------|-------------| -| `list` | List all resourceEvent records | -| `find-first` | Find first matching resourceEvent record | -| `get` | Get a resourceEvent by id | -| `create` | Create a new resourceEvent | -| `update` | Update an existing resourceEvent | -| `delete` | Delete a resourceEvent | +| `list` | List all platformInfraRef records | +| `find-first` | Find first matching platformInfraRef record | +| `get` | Get a platformInfraRef by id | +| `create` | Create a new platformInfraRef | +| `update` | Update an existing platformInfraRef | +| `delete` | Delete a platformInfraRef | **Fields:** | Field | Type | |-------|------| -| `actorId` | UUID | -| `createdAt` | Datetime | -| `databaseId` | UUID | -| `eventType` | String | +| `commitId` | UUID | | `id` | UUID | -| `message` | String | -| `metadata` | JSON | -| `resourceId` | UUID | +| `name` | String | +| `scopeId` | UUID | +| `storeId` | UUID | -**Required create fields:** `databaseId`, `eventType`, `resourceId` -**Optional create fields (backend defaults):** `actorId`, `message`, `metadata` +**Required create fields:** `name`, `scopeId`, `storeId` +**Optional create fields (backend defaults):** `commitId` -### `resource-installation` +### `platform-infra-store` -CRUD operations for ResourceInstallation records. +CRUD operations for PlatformInfraStore records. | Subcommand | Description | |------------|-------------| -| `list` | List all resourceInstallation records | -| `find-first` | Find first matching resourceInstallation record | -| `get` | Get a resourceInstallation by id | -| `create` | Create a new resourceInstallation | -| `update` | Update an existing resourceInstallation | -| `delete` | Delete a resourceInstallation | +| `list` | List all platformInfraStore records | +| `find-first` | Find first matching platformInfraStore record | +| `get` | Get a platformInfraStore by id | +| `create` | Create a new platformInfraStore | +| `update` | Update an existing platformInfraStore | +| `delete` | Delete a platformInfraStore | **Fields:** | Field | Type | |-------|------| -| `commitId` | UUID | | `createdAt` | Datetime | -| `createdBy` | UUID | -| `databaseId` | UUID | +| `hash` | UUID | | `id` | UUID | | `name` | String | -| `namespaceId` | UUID | -| `params` | JSON | -| `revision` | Int | -| `slug` | String | -| `status` | String | -| `storeId` | UUID | -| `updatedAt` | Datetime | -| `updatedBy` | UUID | +| `scopeId` | UUID | -**Required create fields:** `databaseId`, `name`, `namespaceId`, `slug` -**Optional create fields (backend defaults):** `commitId`, `createdBy`, `params`, `revision`, `status`, `storeId`, `updatedBy` +**Required create fields:** `name`, `scopeId` +**Optional create fields (backend defaults):** `hash` -### `resource-status-check` +### `platform-k-8-s-resource-kind` -CRUD operations for ResourceStatusCheck records. +CRUD operations for PlatformK8sResourceKind records. | Subcommand | Description | |------------|-------------| -| `list` | List all resourceStatusCheck records | -| `find-first` | Find first matching resourceStatusCheck record | -| `get` | Get a resourceStatusCheck by id | -| `create` | Create a new resourceStatusCheck | -| `update` | Update an existing resourceStatusCheck | -| `delete` | Delete a resourceStatusCheck | +| `list` | List all platformK8sResourceKind records | +| `find-first` | Find first matching platformK8sResourceKind record | +| `get` | Get a platformK8sResourceKind by id | +| `create` | Create a new platformK8sResourceKind | +| `update` | Update an existing platformK8sResourceKind | +| `delete` | Delete a platformK8sResourceKind | **Fields:** | Field | Type | |-------|------| -| `completedAt` | Datetime | -| `databaseId` | UUID | +| `active` | Boolean | +| `commitId` | UUID | +| `createdAt` | Datetime | +| `definition` | JSON | +| `description` | String | | `id` | UUID | -| `requestedAt` | Datetime | -| `requestedBy` | UUID | -| `resourceId` | UUID | -| `result` | JSON | -| `status` | String | +| `label` | String | +| `slug` | String | +| `storeId` | UUID | +| `updatedAt` | Datetime | -**Required create fields:** `databaseId`, `resourceId` -**Optional create fields (backend defaults):** `completedAt`, `requestedAt`, `requestedBy`, `result`, `status` +**Required create fields:** `definition`, `slug` +**Optional create fields (backend defaults):** `active`, `commitId`, `description`, `label`, `storeId` -### `resource-usage-log` +### `platform-k-8-s-spec-rule` -CRUD operations for ResourceUsageLog records. +CRUD operations for PlatformK8sSpecRule records. | Subcommand | Description | |------------|-------------| -| `list` | List all resourceUsageLog records | -| `find-first` | Find first matching resourceUsageLog record | -| `get` | Get a resourceUsageLog by id | -| `create` | Create a new resourceUsageLog | -| `update` | Update an existing resourceUsageLog | -| `delete` | Delete a resourceUsageLog | +| `list` | List all platformK8sSpecRule records | +| `find-first` | Find first matching platformK8sSpecRule record | +| `get` | Get a platformK8sSpecRule by id | +| `create` | Create a new platformK8sSpecRule | +| `update` | Update an existing platformK8sSpecRule | +| `delete` | Delete a platformK8sSpecRule | **Fields:** | Field | Type | |-------|------| -| `cpuMillicores` | BigInt | -| `databaseId` | UUID | +| `active` | Boolean | +| `commitId` | UUID | +| `createdAt` | Datetime | +| `definition` | JSON | +| `description` | String | | `id` | UUID | -| `intervalSeconds` | Int | -| `memoryBytes` | BigInt | -| `metrics` | JSON | -| `namespaceId` | UUID | -| `resourceId` | UUID | -| `sampledAt` | Datetime | -| `source` | String | +| `label` | String | +| `slug` | String | +| `storeId` | UUID | +| `updatedAt` | Datetime | -**Required create fields:** `databaseId`, `intervalSeconds`, `namespaceId`, `source` -**Optional create fields (backend defaults):** `cpuMillicores`, `memoryBytes`, `metrics`, `resourceId`, `sampledAt` +**Required create fields:** `definition`, `slug` +**Optional create fields (backend defaults):** `active`, `commitId`, `description`, `label`, `storeId` -### `resource-usage-summary` +### `platform-namespace` -CRUD operations for ResourceUsageSummary records. +CRUD operations for PlatformNamespace records. | Subcommand | Description | |------------|-------------| -| `list` | List all resourceUsageSummary records | -| `find-first` | Find first matching resourceUsageSummary record | -| `get` | Get a resourceUsageSummary by id | -| `create` | Create a new resourceUsageSummary | -| `update` | Update an existing resourceUsageSummary | -| `delete` | Delete a resourceUsageSummary | +| `list` | List all platformNamespace records | +| `find-first` | Find first matching platformNamespace record | +| `get` | Get a platformNamespace by id | +| `create` | Create a new platformNamespace | +| `update` | Update an existing platformNamespace | +| `delete` | Delete a platformNamespace | **Fields:** | Field | Type | |-------|------| -| `databaseId` | UUID | -| `date` | Date | -| `gbSeconds` | BigFloat | +| `annotations` | JSON | +| `clusterId` | UUID | +| `createdAt` | Datetime | +| `description` | String | | `id` | UUID | -| `maxCpuMillicores` | BigInt | -| `maxMemoryBytes` | BigInt | -| `namespaceId` | UUID | -| `resourceId` | UUID | -| `runtimeSeconds` | BigInt | -| `sampleCount` | Int | +| `isActive` | Boolean | +| `isManaged` | Boolean | +| `labels` | JSON | +| `lastError` | String | +| `name` | String | +| `namespaceName` | String | +| `status` | String | +| `updatedAt` | Datetime | -**Required create fields:** `databaseId`, `date`, `namespaceId` -**Optional create fields (backend defaults):** `gbSeconds`, `maxCpuMillicores`, `maxMemoryBytes`, `resourceId`, `runtimeSeconds`, `sampleCount` +**Required create fields:** `name`, `namespaceName` +**Optional create fields (backend defaults):** `annotations`, `clusterId`, `description`, `isActive`, `isManaged`, `labels`, `lastError`, `status` -### `resource-utilization` +### `platform-namespace-event` -CRUD operations for ResourceUtilization records. +CRUD operations for PlatformNamespaceEvent records. | Subcommand | Description | |------------|-------------| -| `list` | List all resourceUtilization records | -| `find-first` | Find first matching resourceUtilization record | -| `get` | Get a resourceUtilization by id | -| `create` | Create a new resourceUtilization | -| `update` | Update an existing resourceUtilization | -| `delete` | Delete a resourceUtilization | +| `list` | List all platformNamespaceEvent records | +| `find-first` | Find first matching platformNamespaceEvent record | +| `get` | Get a platformNamespaceEvent by id | +| `create` | Create a new platformNamespaceEvent | +| `update` | Update an existing platformNamespaceEvent | +| `delete` | Delete a platformNamespaceEvent | **Fields:** | Field | Type | |-------|------| -| `avgMemoryBytes` | BigInt | -| `cpuLimitMillicores` | BigInt | -| `cpuPeakUtilization` | BigFloat | -| `cpuRequestHeadroomMillicores` | BigInt | -| `cpuRequestMillicores` | BigInt | -| `date` | Date | -| `gbSeconds` | BigFloat | -| `kind` | String | -| `maxCpuMillicores` | BigInt | -| `maxMemoryBytes` | BigInt | -| `memoryLimitBytes` | BigInt | -| `memoryPeakUtilization` | BigFloat | -| `memoryRequestBytes` | BigInt | -| `memoryRequestHeadroomBytes` | BigInt | +| `actorId` | UUID | +| `createdAt` | Datetime | +| `eventType` | String | +| `id` | UUID | +| `message` | String | +| `metadata` | JSON | | `namespaceId` | UUID | -| `replicas` | Int | -| `resourceId` | UUID | -| `runtimeSeconds` | BigInt | -| `sampleCount` | Int | -**Required create fields:** `avgMemoryBytes`, `cpuLimitMillicores`, `cpuPeakUtilization`, `cpuRequestHeadroomMillicores`, `cpuRequestMillicores`, `date`, `gbSeconds`, `kind`, `maxCpuMillicores`, `maxMemoryBytes`, `memoryLimitBytes`, `memoryPeakUtilization`, `memoryRequestBytes`, `memoryRequestHeadroomBytes`, `namespaceId`, `replicas`, `resourceId`, `runtimeSeconds`, `sampleCount` +**Required create fields:** `eventType`, `namespaceId` +**Optional create fields (backend defaults):** `actorId`, `message`, `metadata` -### `resources-health` +### `platform-proposal-comment` -CRUD operations for ResourcesHealth records. +CRUD operations for PlatformProposalComment records. | Subcommand | Description | |------------|-------------| -| `list` | List all resourcesHealth records | -| `find-first` | Find first matching resourcesHealth record | -| `get` | Get a resourcesHealth by id | -| `create` | Create a new resourcesHealth | -| `update` | Update an existing resourcesHealth | -| `delete` | Delete a resourcesHealth | +| `list` | List all platformProposalComment records | +| `find-first` | Find first matching platformProposalComment record | +| `search ` | Search platformProposalComment records | +| `get` | Get a platformProposalComment by id | +| `create` | Create a new platformProposalComment | +| `update` | Update an existing platformProposalComment | +| `delete` | Delete a platformProposalComment | **Fields:** | Field | Type | |-------|------| -| `annotations` | JSON | -| `cpuLimitMillicores` | BigInt | -| `cpuRequestMillicores` | BigInt | +| `actorId` | UUID | +| `attachments` | Upload | +| `body` | String | +| `bodyTrgmSimilarity` | Float | | `createdAt` | Datetime | | `createdBy` | UUID | -| `databaseId` | UUID | -| `errorCount` | Int | +| `createdByPrincipal` | UUID | +| `embedding` | Vector | +| `embeddingUpdatedAt` | Datetime | +| `embeddingVectorDistance` | Float | | `id` | UUID | -| `installationId` | UUID | -| `integrations` | String | -| `kind` | String | -| `labels` | JSON | -| `lastError` | String | -| `lastHeartbeatAt` | Datetime | -| `memoryLimitBytes` | BigInt | -| `memoryRequestBytes` | BigInt | -| `name` | String | -| `namespaceId` | UUID | -| `realm` | String | -| `replicas` | Int | -| `requiredConfigs` | ResourceRequirement | -| `requiredSecrets` | ResourceRequirement | -| `resourceDefinitionId` | UUID | -| `slug` | String | -| `spec` | JSON | -| `status` | String | -| `statusDetail` | String | -| `statusObserved` | JSON | -| `storageClass` | String | -| `storageSizeBytes` | BigInt | +| `line` | Int | +| `outdatedAt` | Datetime | +| `path` | String | +| `pathTrgmSimilarity` | Float | +| `proposalId` | UUID | +| `resolvedAt` | Datetime | +| `search` | FullText | +| `searchScore` | Float | +| `searchTsvRank` | Float | | `updatedAt` | Datetime | | `updatedBy` | UUID | +| `updatedByPrincipal` | UUID | -**Required create fields:** `annotations`, `cpuLimitMillicores`, `cpuRequestMillicores`, `createdBy`, `databaseId`, `errorCount`, `installationId`, `integrations`, `kind`, `labels`, `lastError`, `lastHeartbeatAt`, `memoryLimitBytes`, `memoryRequestBytes`, `name`, `namespaceId`, `realm`, `replicas`, `requiredConfigs`, `requiredSecrets`, `resourceDefinitionId`, `slug`, `spec`, `status`, `statusDetail`, `statusObserved`, `storageClass`, `storageSizeBytes`, `updatedBy` +**Required create fields:** `body`, `proposalId` +**Optional create fields (backend defaults):** `actorId`, `attachments`, `createdBy`, `createdByPrincipal`, `embedding`, `line`, `outdatedAt`, `path`, `resolvedAt`, `updatedBy`, `updatedByPrincipal` +> **pgvector embedding fields:** `embedding` +> High-dimensional vector columns for semantic similarity search. Query via the Unified Search API pgvector adapter using cosine, L2, or inner-product distance. Supports chunk-aware search: set `includeChunks: true` in VectorNearbyInput to transparently query across parent and chunk embeddings, returning the minimum distance. -### `resources-requirements-state` +> **Unified Search API fields:** `bodyTrgmSimilarity`, `pathTrgmSimilarity`, `search`, `searchScore` +> Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. -CRUD operations for ResourcesRequirementsState records. +**Search Examples:** -| Subcommand | Description | -|------------|-------------| -| `list` | List all resourcesRequirementsState records | -| `find-first` | Find first matching resourcesRequirementsState record | -| `get` | Get a resourcesRequirementsState by id | -| `create` | Create a new resourcesRequirementsState | -| `update` | Update an existing resourcesRequirementsState | -| `delete` | Delete a resourcesRequirementsState | +*Vector similarity search via `embedding` (manual vector):* +```bash +# Pass a pre-computed vector array via dot-notation +csdk platform-proposal-comment list --where.embedding.vector '[0.1,0.2,0.3]' --where.embedding.distance 1.0 --select title,embeddingVectorDistance +``` -**Fields:** +*Vector semantic search via `embedding` with --auto-embed:* +```bash +# --auto-embed converts text to vectors using the configured embedder (e.g. Ollama nomic-embed-text) +EMBEDDER_PROVIDER=ollama csdk platform-proposal-comment search "semantic query" --auto-embed --select title,embeddingVectorDistance +EMBEDDER_PROVIDER=ollama csdk platform-proposal-comment list --where.embedding.vector "semantic query" --auto-embed --select title,embeddingVectorDistance +``` -| Field | Type | -|-------|------| -| `configHash` | String | -| `configObjectName` | String | -| `requirementsHash` | String | -| `resourceId` | UUID | -| `secretsHash` | String | -| `secretsObjectName` | String | -| `slug` | String | +*Create/update with auto-embedded `embedding` via --auto-embed:* +```bash +# --auto-embed on create/update converts text strings in vector fields to embeddings before saving +EMBEDDER_PROVIDER=ollama csdk platform-proposal-comment create --embedding "text to embed" --auto-embed +EMBEDDER_PROVIDER=ollama csdk platform-proposal-comment update --embedding "new text to embed" --auto-embed +``` -**Required create fields:** `configHash`, `configObjectName`, `requirementsHash`, `resourceId`, `secretsHash`, `secretsObjectName`, `slug` +*Fuzzy search via trigram similarity (`trgmBody`):* +```bash +csdk platform-proposal-comment list --where.trgmBody.value "approximate query" --where.trgmBody.threshold 0.3 --select title,bodyTrgmSimilarity +``` -### `resources-resolved-requirement` +*Fuzzy search via trigram similarity (`trgmPath`):* +```bash +csdk platform-proposal-comment list --where.trgmPath.value "approximate query" --where.trgmPath.threshold 0.3 --select title,pathTrgmSimilarity +``` -CRUD operations for ResourcesResolvedRequirement records. +*Full-text search via tsvector (`search`):* +```bash +csdk platform-proposal-comment list --where.search "search query" --select title,tsvRank +``` + +*Composite search (unifiedSearch dispatches to all text adapters):* +```bash +csdk platform-proposal-comment list --where.unifiedSearch "search query" --select title,bodyTrgmSimilarity,pathTrgmSimilarity,tsvRank,searchScore +``` + +*Search with pagination and field projection:* +```bash +csdk platform-proposal-comment list --where.unifiedSearch "query" --limit 10 --select id,title,searchScore +csdk platform-proposal-comment search "query" --limit 10 --select id,title,searchScore +``` + + +### `platform-proposal` + +CRUD operations for PlatformProposal records. | Subcommand | Description | |------------|-------------| -| `list` | List all resourcesResolvedRequirement records | -| `find-first` | Find first matching resourcesResolvedRequirement record | -| `get` | Get a resourcesResolvedRequirement by id | -| `create` | Create a new resourcesResolvedRequirement | -| `update` | Update an existing resourcesResolvedRequirement | -| `delete` | Delete a resourcesResolvedRequirement | +| `list` | List all platformProposal records | +| `find-first` | Find first matching platformProposal record | +| `search ` | Search platformProposal records | +| `get` | Get a platformProposal by id | +| `create` | Create a new platformProposal | +| `update` | Update an existing platformProposal | +| `delete` | Delete a platformProposal | **Fields:** | Field | Type | |-------|------| -| `atomId` | UUID | -| `configObjectName` | String | -| `name` | String | -| `namespaceId` | UUID | -| `present` | Boolean | -| `realm` | String | -| `required` | Boolean | -| `requirementKind` | String | -| `resourceId` | UUID | -| `secretsObjectName` | String | -| `slug` | String | +| `actorId` | UUID | +| `body` | String | +| `bodyTrgmSimilarity` | Float | +| `closedReason` | String | +| `closedReasonTrgmSimilarity` | Float | +| `createdAt` | Datetime | +| `createdBy` | UUID | +| `createdByPrincipal` | UUID | +| `decidedAt` | Datetime | +| `dueAt` | Datetime | +| `embedding` | Vector | +| `embeddingUpdatedAt` | Datetime | +| `embeddingVectorDistance` | Float | +| `id` | UUID | +| `kind` | String | +| `kindTrgmSimilarity` | Float | +| `labels` | String | +| `mergeCommit` | String | +| `mergeCommitTrgmSimilarity` | Float | +| `mergeMethod` | String | +| `mergeMethodTrgmSimilarity` | Float | +| `mergeRequestedAt` | Datetime | +| `mergedAt` | Datetime | +| `metadata` | JSON | +| `parentId` | UUID | +| `priority` | BigFloat | +| `repositoryId` | UUID | +| `resolution` | String | +| `resolutionTrgmSimilarity` | Float | +| `search` | FullText | +| `searchScore` | Float | +| `searchTsvRank` | Float | +| `sourceRef` | String | +| `sourceRefTrgmSimilarity` | Float | +| `status` | String | +| `statusTrgmSimilarity` | Float | +| `targetRef` | String | +| `targetRefTrgmSimilarity` | Float | +| `title` | String | +| `titleTrgmSimilarity` | Float | +| `updatedAt` | Datetime | +| `updatedBy` | UUID | +| `updatedByPrincipal` | UUID | -**Required create fields:** `atomId`, `configObjectName`, `name`, `namespaceId`, `present`, `realm`, `required`, `requirementKind`, `resourceId`, `secretsObjectName`, `slug` +**Required create fields:** `repositoryId`, `title` +**Optional create fields (backend defaults):** `actorId`, `body`, `closedReason`, `createdBy`, `createdByPrincipal`, `decidedAt`, `dueAt`, `embedding`, `kind`, `labels`, `mergeCommit`, `mergeMethod`, `mergeRequestedAt`, `mergedAt`, `metadata`, `parentId`, `priority`, `resolution`, `sourceRef`, `status`, `targetRef`, `updatedBy`, `updatedByPrincipal` +> **pgvector embedding fields:** `embedding` +> High-dimensional vector columns for semantic similarity search. Query via the Unified Search API pgvector adapter using cosine, L2, or inner-product distance. Supports chunk-aware search: set `includeChunks: true` in VectorNearbyInput to transparently query across parent and chunk embeddings, returning the minimum distance. -### `webhook-endpoint` +> **Unified Search API fields:** `bodyTrgmSimilarity`, `closedReasonTrgmSimilarity`, `kindTrgmSimilarity`, `mergeCommitTrgmSimilarity`, `mergeMethodTrgmSimilarity`, `resolutionTrgmSimilarity`, `search`, `searchScore`, `sourceRefTrgmSimilarity`, `statusTrgmSimilarity`, `targetRefTrgmSimilarity`, `titleTrgmSimilarity` +> Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. -CRUD operations for WebhookEndpoint records. +**Search Examples:** + +*Vector similarity search via `embedding` (manual vector):* +```bash +# Pass a pre-computed vector array via dot-notation +csdk platform-proposal list --where.embedding.vector '[0.1,0.2,0.3]' --where.embedding.distance 1.0 --select title,embeddingVectorDistance +``` + +*Vector semantic search via `embedding` with --auto-embed:* +```bash +# --auto-embed converts text to vectors using the configured embedder (e.g. Ollama nomic-embed-text) +EMBEDDER_PROVIDER=ollama csdk platform-proposal search "semantic query" --auto-embed --select title,embeddingVectorDistance +EMBEDDER_PROVIDER=ollama csdk platform-proposal list --where.embedding.vector "semantic query" --auto-embed --select title,embeddingVectorDistance +``` + +*Create/update with auto-embedded `embedding` via --auto-embed:* +```bash +# --auto-embed on create/update converts text strings in vector fields to embeddings before saving +EMBEDDER_PROVIDER=ollama csdk platform-proposal create --embedding "text to embed" --auto-embed +EMBEDDER_PROVIDER=ollama csdk platform-proposal update --embedding "new text to embed" --auto-embed +``` + +*Fuzzy search via trigram similarity (`trgmBody`):* +```bash +csdk platform-proposal list --where.trgmBody.value "approximate query" --where.trgmBody.threshold 0.3 --select title,bodyTrgmSimilarity +``` + +*Fuzzy search via trigram similarity (`trgmClosedReason`):* +```bash +csdk platform-proposal list --where.trgmClosedReason.value "approximate query" --where.trgmClosedReason.threshold 0.3 --select title,closedReasonTrgmSimilarity +``` + +*Fuzzy search via trigram similarity (`trgmKind`):* +```bash +csdk platform-proposal list --where.trgmKind.value "approximate query" --where.trgmKind.threshold 0.3 --select title,kindTrgmSimilarity +``` + +*Fuzzy search via trigram similarity (`trgmMergeCommit`):* +```bash +csdk platform-proposal list --where.trgmMergeCommit.value "approximate query" --where.trgmMergeCommit.threshold 0.3 --select title,mergeCommitTrgmSimilarity +``` + +*Fuzzy search via trigram similarity (`trgmMergeMethod`):* +```bash +csdk platform-proposal list --where.trgmMergeMethod.value "approximate query" --where.trgmMergeMethod.threshold 0.3 --select title,mergeMethodTrgmSimilarity +``` + +*Fuzzy search via trigram similarity (`trgmResolution`):* +```bash +csdk platform-proposal list --where.trgmResolution.value "approximate query" --where.trgmResolution.threshold 0.3 --select title,resolutionTrgmSimilarity +``` + +*Full-text search via tsvector (`search`):* +```bash +csdk platform-proposal list --where.search "search query" --select title,tsvRank +``` + +*Fuzzy search via trigram similarity (`trgmSourceRef`):* +```bash +csdk platform-proposal list --where.trgmSourceRef.value "approximate query" --where.trgmSourceRef.threshold 0.3 --select title,sourceRefTrgmSimilarity +``` + +*Fuzzy search via trigram similarity (`trgmStatus`):* +```bash +csdk platform-proposal list --where.trgmStatus.value "approximate query" --where.trgmStatus.threshold 0.3 --select title,statusTrgmSimilarity +``` + +*Fuzzy search via trigram similarity (`trgmTargetRef`):* +```bash +csdk platform-proposal list --where.trgmTargetRef.value "approximate query" --where.trgmTargetRef.threshold 0.3 --select title,targetRefTrgmSimilarity +``` + +*Fuzzy search via trigram similarity (`trgmTitle`):* +```bash +csdk platform-proposal list --where.trgmTitle.value "approximate query" --where.trgmTitle.threshold 0.3 --select title,titleTrgmSimilarity +``` + +*Composite search (unifiedSearch dispatches to all text adapters):* +```bash +csdk platform-proposal list --where.unifiedSearch "search query" --select title,bodyTrgmSimilarity,closedReasonTrgmSimilarity,kindTrgmSimilarity,mergeCommitTrgmSimilarity,mergeMethodTrgmSimilarity,resolutionTrgmSimilarity,tsvRank,searchScore,sourceRefTrgmSimilarity,statusTrgmSimilarity,targetRefTrgmSimilarity,titleTrgmSimilarity +``` + +*Search with pagination and field projection:* +```bash +csdk platform-proposal list --where.unifiedSearch "query" --limit 10 --select id,title,searchScore +csdk platform-proposal search "query" --limit 10 --select id,title,searchScore +``` + + +### `platform-proposal-file-view` + +CRUD operations for PlatformProposalFileView records. | Subcommand | Description | |------------|-------------| -| `list` | List all webhookEndpoint records | -| `find-first` | Find first matching webhookEndpoint record | -| `get` | Get a webhookEndpoint by id | -| `create` | Create a new webhookEndpoint | -| `update` | Update an existing webhookEndpoint | -| `delete` | Delete a webhookEndpoint | +| `list` | List all platformProposalFileView records | +| `find-first` | Find first matching platformProposalFileView record | +| `get` | Get a platformProposalFileView by id | +| `create` | Create a new platformProposalFileView | +| `update` | Update an existing platformProposalFileView | +| `delete` | Delete a platformProposalFileView | + +**Fields:** + +| Field | Type | +|-------|------| +| `blobSha` | String | +| `createdAt` | Datetime | +| `createdByPrincipal` | UUID | +| `id` | UUID | +| `path` | String | +| `proposalId` | UUID | +| `reviewerId` | UUID | +| `updatedAt` | Datetime | +| `updatedByPrincipal` | UUID | +| `viewedAt` | Datetime | + +**Required create fields:** `blobSha`, `path`, `proposalId`, `reviewerId` +**Optional create fields (backend defaults):** `createdByPrincipal`, `updatedByPrincipal`, `viewedAt` + +### `platform-proposal-reaction` + +CRUD operations for PlatformProposalReaction records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all platformProposalReaction records | +| `find-first` | Find first matching platformProposalReaction record | +| `get` | Get a platformProposalReaction by id | +| `create` | Create a new platformProposalReaction | +| `update` | Update an existing platformProposalReaction | +| `delete` | Delete a platformProposalReaction | + +**Fields:** + +| Field | Type | +|-------|------| +| `actorId` | UUID | +| `commentId` | UUID | +| `createdAt` | Datetime | +| `createdByPrincipal` | UUID | +| `emoji` | String | +| `id` | UUID | +| `proposalId` | UUID | +| `updatedAt` | Datetime | +| `updatedByPrincipal` | UUID | + +**Required create fields:** `actorId`, `emoji`, `proposalId` +**Optional create fields (backend defaults):** `commentId`, `createdByPrincipal`, `updatedByPrincipal` + +### `platform-proposal-review` + +CRUD operations for PlatformProposalReview records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all platformProposalReview records | +| `find-first` | Find first matching platformProposalReview record | +| `search ` | Search platformProposalReview records | +| `get` | Get a platformProposalReview by id | +| `create` | Create a new platformProposalReview | +| `update` | Update an existing platformProposalReview | +| `delete` | Delete a platformProposalReview | + +**Fields:** + +| Field | Type | +|-------|------| +| `body` | String | +| `bodyTrgmSimilarity` | Float | +| `commitSha` | String | +| `commitShaTrgmSimilarity` | Float | +| `createdAt` | Datetime | +| `createdByPrincipal` | UUID | +| `id` | UUID | +| `proposalId` | UUID | +| `reviewerId` | UUID | +| `search` | FullText | +| `searchScore` | Float | +| `searchTsvRank` | Float | +| `submittedAt` | Datetime | +| `updatedAt` | Datetime | +| `updatedByPrincipal` | UUID | +| `verdict` | String | +| `verdictTrgmSimilarity` | Float | + +**Required create fields:** `commitSha`, `proposalId`, `reviewerId`, `verdict` +**Optional create fields (backend defaults):** `body`, `createdByPrincipal`, `submittedAt`, `updatedByPrincipal` +> **Unified Search API fields:** `bodyTrgmSimilarity`, `commitShaTrgmSimilarity`, `search`, `searchScore`, `verdictTrgmSimilarity` +> Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. + +**Search Examples:** + +*Fuzzy search via trigram similarity (`trgmBody`):* +```bash +csdk platform-proposal-review list --where.trgmBody.value "approximate query" --where.trgmBody.threshold 0.3 --select title,bodyTrgmSimilarity +``` + +*Fuzzy search via trigram similarity (`trgmCommitSha`):* +```bash +csdk platform-proposal-review list --where.trgmCommitSha.value "approximate query" --where.trgmCommitSha.threshold 0.3 --select title,commitShaTrgmSimilarity +``` + +*Full-text search via tsvector (`search`):* +```bash +csdk platform-proposal-review list --where.search "search query" --select title,tsvRank +``` + +*Fuzzy search via trigram similarity (`trgmVerdict`):* +```bash +csdk platform-proposal-review list --where.trgmVerdict.value "approximate query" --where.trgmVerdict.threshold 0.3 --select title,verdictTrgmSimilarity +``` + +*Composite search (unifiedSearch dispatches to all text adapters):* +```bash +csdk platform-proposal-review list --where.unifiedSearch "search query" --select title,bodyTrgmSimilarity,commitShaTrgmSimilarity,tsvRank,searchScore,verdictTrgmSimilarity +``` + +*Search with pagination and field projection:* +```bash +csdk platform-proposal-review list --where.unifiedSearch "query" --limit 10 --select id,title,searchScore +csdk platform-proposal-review search "query" --limit 10 --select id,title,searchScore +``` + + +### `platform-proposals-chunk` + +CRUD operations for PlatformProposalsChunk records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all platformProposalsChunk records | +| `find-first` | Find first matching platformProposalsChunk record | +| `search ` | Search platformProposalsChunk records | +| `get` | Get a platformProposalsChunk by id | +| `create` | Create a new platformProposalsChunk | +| `update` | Update an existing platformProposalsChunk | +| `delete` | Delete a platformProposalsChunk | + +**Fields:** + +| Field | Type | +|-------|------| +| `actorId` | UUID | +| `body` | String | +| `chunkIndex` | Int | +| `createdAt` | Datetime | +| `embedding` | Vector | +| `embeddingVectorDistance` | Float | +| `id` | UUID | +| `metadata` | JSON | +| `platformProposalsId` | UUID | +| `searchScore` | Float | +| `updatedAt` | Datetime | + +**Required create fields:** `body`, `platformProposalsId` +**Optional create fields (backend defaults):** `actorId`, `chunkIndex`, `embedding`, `metadata` +> **pgvector embedding fields:** `embedding` +> High-dimensional vector columns for semantic similarity search. Query via the Unified Search API pgvector adapter using cosine, L2, or inner-product distance. Supports chunk-aware search: set `includeChunks: true` in VectorNearbyInput to transparently query across parent and chunk embeddings, returning the minimum distance. + +> **Unified Search API fields:** `searchScore` +> Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. + +**Search Examples:** + +*Vector similarity search via `embedding` (manual vector):* +```bash +# Pass a pre-computed vector array via dot-notation +csdk platform-proposals-chunk list --where.embedding.vector '[0.1,0.2,0.3]' --where.embedding.distance 1.0 --select title,embeddingVectorDistance +``` + +*Vector semantic search via `embedding` with --auto-embed:* +```bash +# --auto-embed converts text to vectors using the configured embedder (e.g. Ollama nomic-embed-text) +EMBEDDER_PROVIDER=ollama csdk platform-proposals-chunk search "semantic query" --auto-embed --select title,embeddingVectorDistance +EMBEDDER_PROVIDER=ollama csdk platform-proposals-chunk list --where.embedding.vector "semantic query" --auto-embed --select title,embeddingVectorDistance +``` + +*Create/update with auto-embedded `embedding` via --auto-embed:* +```bash +# --auto-embed on create/update converts text strings in vector fields to embeddings before saving +EMBEDDER_PROVIDER=ollama csdk platform-proposals-chunk create --embedding "text to embed" --auto-embed +EMBEDDER_PROVIDER=ollama csdk platform-proposals-chunk update --embedding "new text to embed" --auto-embed +``` + +*Search with pagination and field projection:* +```bash +csdk platform-proposals-chunk list --where.unifiedSearch "query" --limit 10 --select id,title,searchScore +csdk platform-proposals-chunk search "query" --limit 10 --select id,title,searchScore +``` + + +### `platform-registry-binding` + +CRUD operations for PlatformRegistryBinding records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all platformRegistryBinding records | +| `find-first` | Find first matching platformRegistryBinding record | +| `get` | Get a platformRegistryBinding by id | +| `create` | Create a new platformRegistryBinding | +| `update` | Update an existing platformRegistryBinding | +| `delete` | Delete a platformRegistryBinding | **Fields:** | Field | Type | |-------|------| -| `active` | Boolean | | `createdAt` | Datetime | | `createdBy` | UUID | -| `databaseId` | UUID | -| `functionDefinitionId` | UUID | -| `host` | String | +| `createdByPrincipal` | UUID | | `id` | UUID | +| `metadata` | JSON | | `namespaceId` | UUID | -| `path` | String | +| `observedCredentialVersion` | String | +| `pullSecretName` | String | +| `realm` | String | +| `registryHost` | String | +| `registryId` | UUID | +| `status` | String | +| `updatedAt` | Datetime | +| `updatedBy` | UUID | +| `updatedByPrincipal` | UUID | + +**Required create fields:** `namespaceId`, `registryHost`, `registryId` +**Optional create fields (backend defaults):** `createdBy`, `createdByPrincipal`, `metadata`, `observedCredentialVersion`, `pullSecretName`, `realm`, `status`, `updatedBy`, `updatedByPrincipal` + +### `platform-registry` + +CRUD operations for PlatformRegistry records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all platformRegistry records | +| `find-first` | Find first matching platformRegistry record | +| `get` | Get a platformRegistry by id | +| `create` | Create a new platformRegistry | +| `update` | Update an existing platformRegistry | +| `delete` | Delete a platformRegistry | + +**Fields:** + +| Field | Type | +|-------|------| +| `authMode` | String | +| `basePath` | String | +| `createdAt` | Datetime | +| `createdByPrincipal` | UUID | +| `credentialSecretName` | String | +| `host` | String | +| `id` | UUID | +| `installationId` | UUID | +| `isPublished` | Boolean | +| `kind` | String | +| `labels` | JSON | +| `lastError` | String | +| `metadata` | JSON | +| `name` | String | +| `platformOnly` | Boolean | +| `role` | String | +| `status` | String | +| `updatedAt` | Datetime | +| `updatedByPrincipal` | UUID | + +**Required create fields:** `kind`, `name` +**Optional create fields (backend defaults):** `authMode`, `basePath`, `createdByPrincipal`, `credentialSecretName`, `host`, `installationId`, `isPublished`, `labels`, `lastError`, `metadata`, `platformOnly`, `role`, `status`, `updatedByPrincipal` + +### `platform-registry-grant` + +CRUD operations for PlatformRegistryGrant records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all platformRegistryGrant records | +| `find-first` | Find first matching platformRegistryGrant record | +| `get` | Get a platformRegistryGrant by id | +| `create` | Create a new platformRegistryGrant | +| `update` | Update an existing platformRegistryGrant | +| `delete` | Delete a platformRegistryGrant | + +**Fields:** + +| Field | Type | +|-------|------| +| `actions` | String | +| `createdAt` | Datetime | +| `createdByPrincipal` | UUID | +| `expiresAt` | Datetime | +| `grantedBy` | UUID | +| `granteeKey` | UUID | +| `granteeScope` | String | +| `id` | UUID | +| `registryId` | UUID | +| `updatedAt` | Datetime | +| `updatedByPrincipal` | UUID | + +**Required create fields:** `granteeKey`, `granteeScope`, `registryId` +**Optional create fields (backend defaults):** `actions`, `createdByPrincipal`, `expiresAt`, `grantedBy`, `updatedByPrincipal` + +### `platform-repository` + +CRUD operations for PlatformRepository records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all platformRepository records | +| `find-first` | Find first matching platformRepository record | +| `search ` | Search platformRepository records | +| `get` | Get a platformRepository by id | +| `create` | Create a new platformRepository | +| `update` | Update an existing platformRepository | +| `delete` | Delete a platformRepository | + +**Fields:** + +| Field | Type | +|-------|------| +| `cloneUrl` | String | +| `cloneUrlTrgmSimilarity` | Float | +| `createdAt` | Datetime | +| `createdBy` | UUID | +| `createdByPrincipal` | UUID | +| `defaultBranch` | String | +| `defaultBranchTrgmSimilarity` | Float | +| `description` | String | +| `descriptionTrgmSimilarity` | Float | +| `embedding` | Vector | +| `embeddingUpdatedAt` | Datetime | +| `embeddingVectorDistance` | Float | +| `externalId` | String | +| `externalIdTrgmSimilarity` | Float | +| `id` | UUID | +| `isArchived` | Boolean | +| `metadata` | JSON | +| `name` | String | +| `nameTrgmSimilarity` | Float | +| `ownerId` | UUID | | `provider` | String | -| `replayWindowSeconds` | Int | -| `signingSecretName` | String | +| `providerTrgmSimilarity` | Float | +| `search` | FullText | +| `searchScore` | Float | +| `searchTsvRank` | Float | +| `slug` | String | +| `slugTrgmSimilarity` | Float | | `updatedAt` | Datetime | | `updatedBy` | UUID | +| `updatedByPrincipal` | UUID | +| `visibility` | String | +| `visibilityTrgmSimilarity` | Float | + +**Required create fields:** `name`, `slug` +**Optional create fields (backend defaults):** `cloneUrl`, `createdBy`, `createdByPrincipal`, `defaultBranch`, `description`, `embedding`, `externalId`, `isArchived`, `metadata`, `ownerId`, `provider`, `updatedBy`, `updatedByPrincipal`, `visibility` +> **pgvector embedding fields:** `embedding` +> High-dimensional vector columns for semantic similarity search. Query via the Unified Search API pgvector adapter using cosine, L2, or inner-product distance. Supports chunk-aware search: set `includeChunks: true` in VectorNearbyInput to transparently query across parent and chunk embeddings, returning the minimum distance. + +> **Unified Search API fields:** `cloneUrlTrgmSimilarity`, `defaultBranchTrgmSimilarity`, `descriptionTrgmSimilarity`, `externalIdTrgmSimilarity`, `nameTrgmSimilarity`, `providerTrgmSimilarity`, `search`, `searchScore`, `slugTrgmSimilarity`, `visibilityTrgmSimilarity` +> Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. + +**Search Examples:** + +*Vector similarity search via `embedding` (manual vector):* +```bash +# Pass a pre-computed vector array via dot-notation +csdk platform-repository list --where.embedding.vector '[0.1,0.2,0.3]' --where.embedding.distance 1.0 --select title,embeddingVectorDistance +``` + +*Vector semantic search via `embedding` with --auto-embed:* +```bash +# --auto-embed converts text to vectors using the configured embedder (e.g. Ollama nomic-embed-text) +EMBEDDER_PROVIDER=ollama csdk platform-repository search "semantic query" --auto-embed --select title,embeddingVectorDistance +EMBEDDER_PROVIDER=ollama csdk platform-repository list --where.embedding.vector "semantic query" --auto-embed --select title,embeddingVectorDistance +``` + +*Create/update with auto-embedded `embedding` via --auto-embed:* +```bash +# --auto-embed on create/update converts text strings in vector fields to embeddings before saving +EMBEDDER_PROVIDER=ollama csdk platform-repository create --embedding "text to embed" --auto-embed +EMBEDDER_PROVIDER=ollama csdk platform-repository update --embedding "new text to embed" --auto-embed +``` + +*Fuzzy search via trigram similarity (`trgmCloneUrl`):* +```bash +csdk platform-repository list --where.trgmCloneUrl.value "approximate query" --where.trgmCloneUrl.threshold 0.3 --select title,cloneUrlTrgmSimilarity +``` + +*Fuzzy search via trigram similarity (`trgmDefaultBranch`):* +```bash +csdk platform-repository list --where.trgmDefaultBranch.value "approximate query" --where.trgmDefaultBranch.threshold 0.3 --select title,defaultBranchTrgmSimilarity +``` + +*Fuzzy search via trigram similarity (`trgmDescription`):* +```bash +csdk platform-repository list --where.trgmDescription.value "approximate query" --where.trgmDescription.threshold 0.3 --select title,descriptionTrgmSimilarity +``` + +*Fuzzy search via trigram similarity (`trgmExternalId`):* +```bash +csdk platform-repository list --where.trgmExternalId.value "approximate query" --where.trgmExternalId.threshold 0.3 --select title,externalIdTrgmSimilarity +``` + +*Fuzzy search via trigram similarity (`trgmName`):* +```bash +csdk platform-repository list --where.trgmName.value "approximate query" --where.trgmName.threshold 0.3 --select title,nameTrgmSimilarity +``` + +*Fuzzy search via trigram similarity (`trgmProvider`):* +```bash +csdk platform-repository list --where.trgmProvider.value "approximate query" --where.trgmProvider.threshold 0.3 --select title,providerTrgmSimilarity +``` + +*Full-text search via tsvector (`search`):* +```bash +csdk platform-repository list --where.search "search query" --select title,tsvRank +``` + +*Fuzzy search via trigram similarity (`trgmSlug`):* +```bash +csdk platform-repository list --where.trgmSlug.value "approximate query" --where.trgmSlug.threshold 0.3 --select title,slugTrgmSimilarity +``` + +*Fuzzy search via trigram similarity (`trgmVisibility`):* +```bash +csdk platform-repository list --where.trgmVisibility.value "approximate query" --where.trgmVisibility.threshold 0.3 --select title,visibilityTrgmSimilarity +``` + +*Composite search (unifiedSearch dispatches to all text adapters):* +```bash +csdk platform-repository list --where.unifiedSearch "search query" --select title,cloneUrlTrgmSimilarity,defaultBranchTrgmSimilarity,descriptionTrgmSimilarity,externalIdTrgmSimilarity,nameTrgmSimilarity,providerTrgmSimilarity,tsvRank,searchScore,slugTrgmSimilarity,visibilityTrgmSimilarity +``` + +*Search with pagination and field projection:* +```bash +csdk platform-repository list --where.unifiedSearch "query" --limit 10 --select id,title,searchScore +csdk platform-repository search "query" --limit 10 --select id,title,searchScore +``` + + +### `platform-repository-event` + +CRUD operations for PlatformRepositoryEvent records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all platformRepositoryEvent records | +| `find-first` | Find first matching platformRepositoryEvent record | +| `get` | Get a platformRepositoryEvent by id | +| `create` | Create a new platformRepositoryEvent | +| `update` | Update an existing platformRepositoryEvent | +| `delete` | Delete a platformRepositoryEvent | + +**Fields:** + +| Field | Type | +|-------|------| +| `actorId` | UUID | +| `commitSha` | String | +| `createdAt` | Datetime | +| `createdByPrincipal` | UUID | +| `deliveryId` | String | +| `eventType` | String | +| `id` | UUID | +| `metadata` | JSON | +| `payload` | JSON | +| `ref` | String | +| `repositoryId` | UUID | +| `updatedAt` | Datetime | +| `updatedByPrincipal` | UUID | + +**Required create fields:** `eventType`, `repositoryId` +**Optional create fields (backend defaults):** `actorId`, `commitSha`, `createdByPrincipal`, `deliveryId`, `metadata`, `payload`, `ref`, `updatedByPrincipal` + +### `platform-repository-required-check` + +CRUD operations for PlatformRepositoryRequiredCheck records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all platformRepositoryRequiredCheck records | +| `find-first` | Find first matching platformRepositoryRequiredCheck record | +| `get` | Get a platformRepositoryRequiredCheck by id | +| `create` | Create a new platformRepositoryRequiredCheck | +| `update` | Update an existing platformRepositoryRequiredCheck | +| `delete` | Delete a platformRepositoryRequiredCheck | + +**Fields:** + +| Field | Type | +|-------|------| +| `createdAt` | Datetime | +| `id` | UUID | +| `repositoryId` | UUID | +| `updatedAt` | Datetime | +| `workflowId` | UUID | + +**Required create fields:** `repositoryId`, `workflowId` + +### `platform-repository-workflow` + +CRUD operations for PlatformRepositoryWorkflow records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all platformRepositoryWorkflow records | +| `find-first` | Find first matching platformRepositoryWorkflow record | +| `get` | Get a platformRepositoryWorkflow by id | +| `create` | Create a new platformRepositoryWorkflow | +| `update` | Update an existing platformRepositoryWorkflow | +| `delete` | Delete a platformRepositoryWorkflow | + +**Fields:** + +| Field | Type | +|-------|------| +| `cancelInProgress` | Boolean | +| `concurrencyKey` | String | +| `createdAt` | Datetime | +| `createdBy` | UUID | +| `createdByPrincipal` | UUID | +| `eventType` | String | +| `graphId` | UUID | +| `id` | UUID | +| `inputs` | JSON | +| `isEnabled` | Boolean | +| `name` | String | +| `refPattern` | String | +| `repositoryId` | UUID | +| `requiredSecrets` | String | +| `slug` | String | +| `updatedAt` | Datetime | +| `updatedBy` | UUID | +| `updatedByPrincipal` | UUID | + +**Required create fields:** `eventType`, `name`, `repositoryId`, `slug` +**Optional create fields (backend defaults):** `cancelInProgress`, `concurrencyKey`, `createdBy`, `createdByPrincipal`, `graphId`, `inputs`, `isEnabled`, `refPattern`, `requiredSecrets`, `updatedBy`, `updatedByPrincipal` + +### `platform-resource` + +CRUD operations for PlatformResource records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all platformResource records | +| `find-first` | Find first matching platformResource record | +| `get` | Get a platformResource by id | +| `create` | Create a new platformResource | +| `update` | Update an existing platformResource | +| `delete` | Delete a platformResource | + +**Fields:** + +| Field | Type | +|-------|------| +| `annotations` | JSON | +| `cpuLimitMillicores` | BigInt | +| `cpuRequestMillicores` | BigInt | +| `createdAt` | Datetime | +| `createdBy` | UUID | +| `createdByPrincipal` | UUID | +| `errorCount` | Int | +| `id` | UUID | +| `imageRef` | String | +| `installationId` | UUID | +| `integrations` | String | +| `kind` | String | +| `labels` | JSON | +| `lastError` | String | +| `lastHeartbeatAt` | Datetime | +| `memoryLimitBytes` | BigInt | +| `memoryRequestBytes` | BigInt | +| `name` | String | +| `namespaceId` | UUID | +| `realm` | String | +| `replicas` | Int | +| `requiredConfigs` | ResourceRequirement | +| `requiredSecrets` | ResourceRequirement | +| `resourceDefinitionId` | UUID | +| `slug` | String | +| `spec` | JSON | +| `status` | String | +| `statusObserved` | JSON | +| `storageClass` | String | +| `storageSizeBytes` | BigInt | +| `storageTotalBytes` | BigInt | +| `updatedAt` | Datetime | +| `updatedBy` | UUID | +| `updatedByPrincipal` | UUID | + +**Required create fields:** `kind`, `name`, `namespaceId`, `slug` +**Optional create fields (backend defaults):** `annotations`, `createdBy`, `createdByPrincipal`, `errorCount`, `imageRef`, `installationId`, `integrations`, `labels`, `lastError`, `lastHeartbeatAt`, `realm`, `requiredConfigs`, `requiredSecrets`, `resourceDefinitionId`, `spec`, `status`, `statusObserved`, `updatedBy`, `updatedByPrincipal` + +### `platform-resource-declared-capacity` + +CRUD operations for PlatformResourceDeclaredCapacity records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all platformResourceDeclaredCapacity records | +| `find-first` | Find first matching platformResourceDeclaredCapacity record | +| `get` | Get a platformResourceDeclaredCapacity by id | +| `create` | Create a new platformResourceDeclaredCapacity | +| `update` | Update an existing platformResourceDeclaredCapacity | +| `delete` | Delete a platformResourceDeclaredCapacity | + +**Fields:** + +| Field | Type | +|-------|------| +| `cpuLimitMillicores` | BigInt | +| `cpuRequestMillicores` | BigInt | +| `installationId` | UUID | +| `isTransient` | Boolean | +| `kind` | String | +| `memoryLimitBytes` | BigInt | +| `memoryRequestBytes` | BigInt | +| `namespaceId` | UUID | +| `podCountMax` | Int | +| `podCountMin` | Int | +| `source` | String | +| `sourceId` | UUID | +| `storageSizeBytes` | BigInt | +| `storageTotalBytes` | BigInt | + +**Required create fields:** `cpuLimitMillicores`, `cpuRequestMillicores`, `installationId`, `isTransient`, `kind`, `memoryLimitBytes`, `memoryRequestBytes`, `namespaceId`, `podCountMax`, `podCountMin`, `source`, `sourceId`, `storageSizeBytes`, `storageTotalBytes` + +### `platform-resource-definition` + +CRUD operations for PlatformResourceDefinition records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all platformResourceDefinition records | +| `find-first` | Find first matching platformResourceDefinition record | +| `get` | Get a platformResourceDefinition by id | +| `create` | Create a new platformResourceDefinition | +| `update` | Update an existing platformResourceDefinition | +| `delete` | Delete a platformResourceDefinition | + +**Fields:** + +| Field | Type | +|-------|------| +| `annotations` | JSON | +| `createdAt` | Datetime | +| `createdBy` | UUID | +| `createdByPrincipal` | UUID | +| `defaultSpec` | JSON | +| `description` | String | +| `id` | UUID | +| `integrations` | String | +| `kind` | String | +| `labels` | JSON | +| `name` | String | +| `namespaceId` | UUID | +| `paramsSchema` | JSON | +| `requiredConfigs` | ResourceRequirement | +| `requiredSecrets` | ResourceRequirement | +| `slug` | String | +| `stepUpMinAge` | Interval | +| `updatedAt` | Datetime | +| `updatedBy` | UUID | +| `updatedByPrincipal` | UUID | + +**Required create fields:** `kind`, `name`, `namespaceId`, `slug` +**Optional create fields (backend defaults):** `annotations`, `createdBy`, `createdByPrincipal`, `defaultSpec`, `description`, `integrations`, `labels`, `paramsSchema`, `requiredConfigs`, `requiredSecrets`, `stepUpMinAge`, `updatedBy`, `updatedByPrincipal` + +### `platform-resource-event` + +CRUD operations for PlatformResourceEvent records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all platformResourceEvent records | +| `find-first` | Find first matching platformResourceEvent record | +| `get` | Get a platformResourceEvent by id | +| `create` | Create a new platformResourceEvent | +| `update` | Update an existing platformResourceEvent | +| `delete` | Delete a platformResourceEvent | + +**Fields:** + +| Field | Type | +|-------|------| +| `actorId` | UUID | +| `createdAt` | Datetime | +| `eventType` | String | +| `id` | UUID | +| `message` | String | +| `metadata` | JSON | +| `resourceId` | UUID | + +**Required create fields:** `eventType`, `resourceId` +**Optional create fields (backend defaults):** `actorId`, `message`, `metadata` + +### `platform-resource-installation` + +CRUD operations for PlatformResourceInstallation records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all platformResourceInstallation records | +| `find-first` | Find first matching platformResourceInstallation record | +| `get` | Get a platformResourceInstallation by id | +| `create` | Create a new platformResourceInstallation | +| `update` | Update an existing platformResourceInstallation | +| `delete` | Delete a platformResourceInstallation | + +**Fields:** + +| Field | Type | +|-------|------| +| `commitId` | UUID | +| `createdAt` | Datetime | +| `createdBy` | UUID | +| `createdByPrincipal` | UUID | +| `id` | UUID | +| `name` | String | +| `namespaceId` | UUID | +| `params` | JSON | +| `revision` | Int | +| `slug` | String | +| `status` | String | +| `storeId` | UUID | +| `updatedAt` | Datetime | +| `updatedBy` | UUID | +| `updatedByPrincipal` | UUID | + +**Required create fields:** `name`, `namespaceId`, `slug` +**Optional create fields (backend defaults):** `commitId`, `createdBy`, `createdByPrincipal`, `params`, `revision`, `status`, `storeId`, `updatedBy`, `updatedByPrincipal` + +### `platform-resource-observed-storage` + +CRUD operations for PlatformResourceObservedStorage records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all platformResourceObservedStorage records | +| `find-first` | Find first matching platformResourceObservedStorage record | +| `get` | Get a platformResourceObservedStorage by id | +| `create` | Create a new platformResourceObservedStorage | +| `update` | Update an existing platformResourceObservedStorage | +| `delete` | Delete a platformResourceObservedStorage | + +**Fields:** + +| Field | Type | +|-------|------| +| `capacity` | String | +| `capacityBytes` | BigInt | +| `claimName` | String | +| `declaredStorageClass` | String | +| `declaredStorageSizeBytes` | BigInt | +| `declaredStorageTotalBytes` | BigInt | +| `installationId` | UUID | +| `isBound` | Boolean | +| `kind` | String | +| `namespaceId` | UUID | +| `phase` | String | +| `requested` | String | +| `requestedBytes` | BigInt | +| `resourceId` | UUID | +| `resourceStatus` | String | +| `slug` | String | +| `storageClass` | String | +| `storageName` | String | + +**Required create fields:** `capacity`, `capacityBytes`, `claimName`, `declaredStorageClass`, `declaredStorageSizeBytes`, `declaredStorageTotalBytes`, `installationId`, `isBound`, `kind`, `namespaceId`, `phase`, `requested`, `requestedBytes`, `resourceId`, `resourceStatus`, `slug`, `storageClass`, `storageName` + +### `platform-resource-status-check` + +CRUD operations for PlatformResourceStatusCheck records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all platformResourceStatusCheck records | +| `find-first` | Find first matching platformResourceStatusCheck record | +| `get` | Get a platformResourceStatusCheck by id | +| `create` | Create a new platformResourceStatusCheck | +| `update` | Update an existing platformResourceStatusCheck | +| `delete` | Delete a platformResourceStatusCheck | + +**Fields:** + +| Field | Type | +|-------|------| +| `completedAt` | Datetime | +| `id` | UUID | +| `requestedAt` | Datetime | +| `requestedBy` | UUID | +| `resourceId` | UUID | +| `result` | JSON | +| `status` | String | + +**Required create fields:** `resourceId` +**Optional create fields (backend defaults):** `completedAt`, `requestedAt`, `requestedBy`, `result`, `status` + +### `platform-resource-usage-log` + +CRUD operations for PlatformResourceUsageLog records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all platformResourceUsageLog records | +| `find-first` | Find first matching platformResourceUsageLog record | +| `get` | Get a platformResourceUsageLog by id | +| `create` | Create a new platformResourceUsageLog | +| `update` | Update an existing platformResourceUsageLog | +| `delete` | Delete a platformResourceUsageLog | + +**Fields:** + +| Field | Type | +|-------|------| +| `cpuMillicores` | BigInt | +| `id` | UUID | +| `intervalSeconds` | Int | +| `memoryBytes` | BigInt | +| `metrics` | JSON | +| `namespaceId` | UUID | +| `resourceId` | UUID | +| `sampledAt` | Datetime | +| `source` | String | + +**Required create fields:** `intervalSeconds`, `namespaceId`, `source` +**Optional create fields (backend defaults):** `cpuMillicores`, `memoryBytes`, `metrics`, `resourceId`, `sampledAt` + +### `platform-resource-usage-summary` + +CRUD operations for PlatformResourceUsageSummary records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all platformResourceUsageSummary records | +| `find-first` | Find first matching platformResourceUsageSummary record | +| `get` | Get a platformResourceUsageSummary by id | +| `create` | Create a new platformResourceUsageSummary | +| `update` | Update an existing platformResourceUsageSummary | +| `delete` | Delete a platformResourceUsageSummary | + +**Fields:** + +| Field | Type | +|-------|------| +| `date` | Date | +| `gbSeconds` | BigFloat | +| `id` | UUID | +| `maxCpuMillicores` | BigInt | +| `maxMemoryBytes` | BigInt | +| `namespaceId` | UUID | +| `resourceId` | UUID | +| `runtimeSeconds` | BigInt | +| `sampleCount` | Int | + +**Required create fields:** `date`, `namespaceId` +**Optional create fields (backend defaults):** `gbSeconds`, `maxCpuMillicores`, `maxMemoryBytes`, `resourceId`, `runtimeSeconds`, `sampleCount` + +### `platform-resource-utilization` + +CRUD operations for PlatformResourceUtilization records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all platformResourceUtilization records | +| `find-first` | Find first matching platformResourceUtilization record | +| `get` | Get a platformResourceUtilization by id | +| `create` | Create a new platformResourceUtilization | +| `update` | Update an existing platformResourceUtilization | +| `delete` | Delete a platformResourceUtilization | + +**Fields:** + +| Field | Type | +|-------|------| +| `avgMemoryBytes` | BigInt | +| `cpuLimitMillicores` | BigInt | +| `cpuPeakUtilization` | BigFloat | +| `cpuRequestHeadroomMillicores` | BigInt | +| `cpuRequestMillicores` | BigInt | +| `date` | Date | +| `gbSeconds` | BigFloat | +| `kind` | String | +| `maxCpuMillicores` | BigInt | +| `maxMemoryBytes` | BigInt | +| `memoryLimitBytes` | BigInt | +| `memoryPeakUtilization` | BigFloat | +| `memoryRequestBytes` | BigInt | +| `memoryRequestHeadroomBytes` | BigInt | +| `namespaceId` | UUID | +| `replicas` | Int | +| `resourceId` | UUID | +| `runtimeSeconds` | BigInt | +| `sampleCount` | Int | + +**Required create fields:** `avgMemoryBytes`, `cpuLimitMillicores`, `cpuPeakUtilization`, `cpuRequestHeadroomMillicores`, `cpuRequestMillicores`, `date`, `gbSeconds`, `kind`, `maxCpuMillicores`, `maxMemoryBytes`, `memoryLimitBytes`, `memoryPeakUtilization`, `memoryRequestBytes`, `memoryRequestHeadroomBytes`, `namespaceId`, `replicas`, `resourceId`, `runtimeSeconds`, `sampleCount` + +### `platform-resources-health` + +CRUD operations for PlatformResourcesHealth records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all platformResourcesHealth records | +| `find-first` | Find first matching platformResourcesHealth record | +| `get` | Get a platformResourcesHealth by id | +| `create` | Create a new platformResourcesHealth | +| `update` | Update an existing platformResourcesHealth | +| `delete` | Delete a platformResourcesHealth | + +**Fields:** + +| Field | Type | +|-------|------| +| `annotations` | JSON | +| `cpuLimitMillicores` | BigInt | +| `cpuRequestMillicores` | BigInt | +| `createdAt` | Datetime | +| `createdBy` | UUID | +| `createdByPrincipal` | UUID | +| `errorCount` | Int | +| `id` | UUID | +| `imageRef` | String | +| `installationId` | UUID | +| `integrations` | String | +| `kind` | String | +| `labels` | JSON | +| `lastError` | String | +| `lastHeartbeatAt` | Datetime | +| `memoryLimitBytes` | BigInt | +| `memoryRequestBytes` | BigInt | +| `name` | String | +| `namespaceId` | UUID | +| `realm` | String | +| `replicas` | Int | +| `requiredConfigs` | ResourceRequirement | +| `requiredSecrets` | ResourceRequirement | +| `resourceDefinitionId` | UUID | +| `slug` | String | +| `spec` | JSON | +| `status` | String | +| `statusDetail` | String | +| `statusObserved` | JSON | +| `storageClass` | String | +| `storageSizeBytes` | BigInt | +| `storageTotalBytes` | BigInt | +| `updatedAt` | Datetime | +| `updatedBy` | UUID | +| `updatedByPrincipal` | UUID | + +**Required create fields:** `annotations`, `cpuLimitMillicores`, `cpuRequestMillicores`, `createdBy`, `createdByPrincipal`, `errorCount`, `imageRef`, `installationId`, `integrations`, `kind`, `labels`, `lastError`, `lastHeartbeatAt`, `memoryLimitBytes`, `memoryRequestBytes`, `name`, `namespaceId`, `realm`, `replicas`, `requiredConfigs`, `requiredSecrets`, `resourceDefinitionId`, `slug`, `spec`, `status`, `statusDetail`, `statusObserved`, `storageClass`, `storageSizeBytes`, `storageTotalBytes`, `updatedBy`, `updatedByPrincipal` + +### `platform-resources-requirements-state` + +CRUD operations for PlatformResourcesRequirementsState records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all platformResourcesRequirementsState records | +| `find-first` | Find first matching platformResourcesRequirementsState record | +| `get` | Get a platformResourcesRequirementsState by id | +| `create` | Create a new platformResourcesRequirementsState | +| `update` | Update an existing platformResourcesRequirementsState | +| `delete` | Delete a platformResourcesRequirementsState | + +**Fields:** + +| Field | Type | +|-------|------| +| `configHash` | String | +| `configObjectName` | String | +| `requirementsHash` | String | +| `resourceId` | UUID | +| `secretsHash` | String | +| `secretsObjectName` | String | +| `slug` | String | + +**Required create fields:** `configHash`, `configObjectName`, `requirementsHash`, `resourceId`, `secretsHash`, `secretsObjectName`, `slug` + +### `platform-resources-resolved-requirement` + +CRUD operations for PlatformResourcesResolvedRequirement records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all platformResourcesResolvedRequirement records | +| `find-first` | Find first matching platformResourcesResolvedRequirement record | +| `get` | Get a platformResourcesResolvedRequirement by id | +| `create` | Create a new platformResourcesResolvedRequirement | +| `update` | Update an existing platformResourcesResolvedRequirement | +| `delete` | Delete a platformResourcesResolvedRequirement | + +**Fields:** + +| Field | Type | +|-------|------| +| `atomId` | UUID | +| `configObjectName` | String | +| `name` | String | +| `namespaceId` | UUID | +| `present` | Boolean | +| `realm` | String | +| `required` | Boolean | +| `requirementKind` | String | +| `resourceId` | UUID | +| `secretsObjectName` | String | +| `slug` | String | + +**Required create fields:** `atomId`, `configObjectName`, `name`, `namespaceId`, `present`, `realm`, `required`, `requirementKind`, `resourceId`, `secretsObjectName`, `slug` + +### `platform-webhook-endpoint` + +CRUD operations for PlatformWebhookEndpoint records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all platformWebhookEndpoint records | +| `find-first` | Find first matching platformWebhookEndpoint record | +| `get` | Get a platformWebhookEndpoint by id | +| `create` | Create a new platformWebhookEndpoint | +| `update` | Update an existing platformWebhookEndpoint | +| `delete` | Delete a platformWebhookEndpoint | + +**Fields:** + +| Field | Type | +|-------|------| +| `active` | Boolean | +| `createdAt` | Datetime | +| `createdBy` | UUID | +| `createdByPrincipal` | UUID | +| `functionDefinitionId` | UUID | +| `host` | String | +| `id` | UUID | +| `namespaceId` | UUID | +| `path` | String | +| `provider` | String | +| `replayWindowSeconds` | Int | +| `signingSecretName` | String | +| `updatedAt` | Datetime | +| `updatedBy` | UUID | +| `updatedByPrincipal` | UUID | + +**Required create fields:** `functionDefinitionId`, `host`, `namespaceId`, `path`, `signingSecretName` +**Optional create fields (backend defaults):** `active`, `createdBy`, `createdByPrincipal`, `provider`, `replayWindowSeconds`, `updatedBy`, `updatedByPrincipal` + +### `platform-webhook-event` + +CRUD operations for PlatformWebhookEvent records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all platformWebhookEvent records | +| `find-first` | Find first matching platformWebhookEvent record | +| `get` | Get a platformWebhookEvent by id | +| `create` | Create a new platformWebhookEvent | +| `update` | Update an existing platformWebhookEvent | +| `delete` | Delete a platformWebhookEvent | + +**Fields:** + +| Field | Type | +|-------|------| +| `createdAt` | Datetime | +| `endpointId` | UUID | +| `error` | String | +| `externalEventId` | String | +| `id` | UUID | +| `invocationCreatedAt` | Datetime | +| `invocationId` | UUID | +| `payload` | JSON | +| `provider` | String | +| `providerTimestamp` | Datetime | +| `status` | String | +| `updatedAt` | Datetime | + +**Required create fields:** `endpointId`, `externalEventId`, `provider` +**Optional create fields (backend defaults):** `error`, `invocationCreatedAt`, `invocationId`, `payload`, `providerTimestamp`, `status` + +### `proposal-comment` + +CRUD operations for ProposalComment records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all proposalComment records | +| `find-first` | Find first matching proposalComment record | +| `search ` | Search proposalComment records | +| `get` | Get a proposalComment by id | +| `create` | Create a new proposalComment | +| `update` | Update an existing proposalComment | +| `delete` | Delete a proposalComment | + +**Fields:** + +| Field | Type | +|-------|------| +| `actorId` | UUID | +| `attachments` | Upload | +| `body` | String | +| `bodyTrgmSimilarity` | Float | +| `createdAt` | Datetime | +| `createdBy` | UUID | +| `createdByPrincipal` | UUID | +| `databaseId` | UUID | +| `embedding` | Vector | +| `embeddingUpdatedAt` | Datetime | +| `embeddingVectorDistance` | Float | +| `id` | UUID | +| `line` | Int | +| `outdatedAt` | Datetime | +| `path` | String | +| `pathTrgmSimilarity` | Float | +| `proposalId` | UUID | +| `resolvedAt` | Datetime | +| `search` | FullText | +| `searchScore` | Float | +| `searchTsvRank` | Float | +| `updatedAt` | Datetime | +| `updatedBy` | UUID | +| `updatedByPrincipal` | UUID | + +**Required create fields:** `body`, `databaseId`, `proposalId` +**Optional create fields (backend defaults):** `actorId`, `attachments`, `createdBy`, `createdByPrincipal`, `embedding`, `line`, `outdatedAt`, `path`, `resolvedAt`, `updatedBy`, `updatedByPrincipal` +> **pgvector embedding fields:** `embedding` +> High-dimensional vector columns for semantic similarity search. Query via the Unified Search API pgvector adapter using cosine, L2, or inner-product distance. Supports chunk-aware search: set `includeChunks: true` in VectorNearbyInput to transparently query across parent and chunk embeddings, returning the minimum distance. + +> **Unified Search API fields:** `bodyTrgmSimilarity`, `pathTrgmSimilarity`, `search`, `searchScore` +> Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. + +**Search Examples:** + +*Vector similarity search via `embedding` (manual vector):* +```bash +# Pass a pre-computed vector array via dot-notation +csdk proposal-comment list --where.embedding.vector '[0.1,0.2,0.3]' --where.embedding.distance 1.0 --select title,embeddingVectorDistance +``` + +*Vector semantic search via `embedding` with --auto-embed:* +```bash +# --auto-embed converts text to vectors using the configured embedder (e.g. Ollama nomic-embed-text) +EMBEDDER_PROVIDER=ollama csdk proposal-comment search "semantic query" --auto-embed --select title,embeddingVectorDistance +EMBEDDER_PROVIDER=ollama csdk proposal-comment list --where.embedding.vector "semantic query" --auto-embed --select title,embeddingVectorDistance +``` + +*Create/update with auto-embedded `embedding` via --auto-embed:* +```bash +# --auto-embed on create/update converts text strings in vector fields to embeddings before saving +EMBEDDER_PROVIDER=ollama csdk proposal-comment create --embedding "text to embed" --auto-embed +EMBEDDER_PROVIDER=ollama csdk proposal-comment update --embedding "new text to embed" --auto-embed +``` + +*Fuzzy search via trigram similarity (`trgmBody`):* +```bash +csdk proposal-comment list --where.trgmBody.value "approximate query" --where.trgmBody.threshold 0.3 --select title,bodyTrgmSimilarity +``` + +*Fuzzy search via trigram similarity (`trgmPath`):* +```bash +csdk proposal-comment list --where.trgmPath.value "approximate query" --where.trgmPath.threshold 0.3 --select title,pathTrgmSimilarity +``` + +*Full-text search via tsvector (`search`):* +```bash +csdk proposal-comment list --where.search "search query" --select title,tsvRank +``` + +*Composite search (unifiedSearch dispatches to all text adapters):* +```bash +csdk proposal-comment list --where.unifiedSearch "search query" --select title,bodyTrgmSimilarity,pathTrgmSimilarity,tsvRank,searchScore +``` + +*Search with pagination and field projection:* +```bash +csdk proposal-comment list --where.unifiedSearch "query" --limit 10 --select id,title,searchScore +csdk proposal-comment search "query" --limit 10 --select id,title,searchScore +``` + + +### `proposal` + +CRUD operations for Proposal records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all proposal records | +| `find-first` | Find first matching proposal record | +| `search ` | Search proposal records | +| `get` | Get a proposal by id | +| `create` | Create a new proposal | +| `update` | Update an existing proposal | +| `delete` | Delete a proposal | + +**Fields:** + +| Field | Type | +|-------|------| +| `actorId` | UUID | +| `body` | String | +| `bodyTrgmSimilarity` | Float | +| `closedReason` | String | +| `closedReasonTrgmSimilarity` | Float | +| `createdAt` | Datetime | +| `createdBy` | UUID | +| `createdByPrincipal` | UUID | +| `databaseId` | UUID | +| `decidedAt` | Datetime | +| `dueAt` | Datetime | +| `embedding` | Vector | +| `embeddingUpdatedAt` | Datetime | +| `embeddingVectorDistance` | Float | +| `id` | UUID | +| `kind` | String | +| `kindTrgmSimilarity` | Float | +| `labels` | String | +| `mergeCommit` | String | +| `mergeCommitTrgmSimilarity` | Float | +| `mergeMethod` | String | +| `mergeMethodTrgmSimilarity` | Float | +| `mergeRequestedAt` | Datetime | +| `mergedAt` | Datetime | +| `metadata` | JSON | +| `parentId` | UUID | +| `priority` | BigFloat | +| `repositoryId` | UUID | +| `resolution` | String | +| `resolutionTrgmSimilarity` | Float | +| `search` | FullText | +| `searchScore` | Float | +| `searchTsvRank` | Float | +| `sourceRef` | String | +| `sourceRefTrgmSimilarity` | Float | +| `status` | String | +| `statusTrgmSimilarity` | Float | +| `targetRef` | String | +| `targetRefTrgmSimilarity` | Float | +| `title` | String | +| `titleTrgmSimilarity` | Float | +| `updatedAt` | Datetime | +| `updatedBy` | UUID | +| `updatedByPrincipal` | UUID | + +**Required create fields:** `databaseId`, `repositoryId`, `title` +**Optional create fields (backend defaults):** `actorId`, `body`, `closedReason`, `createdBy`, `createdByPrincipal`, `decidedAt`, `dueAt`, `embedding`, `kind`, `labels`, `mergeCommit`, `mergeMethod`, `mergeRequestedAt`, `mergedAt`, `metadata`, `parentId`, `priority`, `resolution`, `sourceRef`, `status`, `targetRef`, `updatedBy`, `updatedByPrincipal` +> **pgvector embedding fields:** `embedding` +> High-dimensional vector columns for semantic similarity search. Query via the Unified Search API pgvector adapter using cosine, L2, or inner-product distance. Supports chunk-aware search: set `includeChunks: true` in VectorNearbyInput to transparently query across parent and chunk embeddings, returning the minimum distance. + +> **Unified Search API fields:** `bodyTrgmSimilarity`, `closedReasonTrgmSimilarity`, `kindTrgmSimilarity`, `mergeCommitTrgmSimilarity`, `mergeMethodTrgmSimilarity`, `resolutionTrgmSimilarity`, `search`, `searchScore`, `sourceRefTrgmSimilarity`, `statusTrgmSimilarity`, `targetRefTrgmSimilarity`, `titleTrgmSimilarity` +> Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. + +**Search Examples:** + +*Vector similarity search via `embedding` (manual vector):* +```bash +# Pass a pre-computed vector array via dot-notation +csdk proposal list --where.embedding.vector '[0.1,0.2,0.3]' --where.embedding.distance 1.0 --select title,embeddingVectorDistance +``` + +*Vector semantic search via `embedding` with --auto-embed:* +```bash +# --auto-embed converts text to vectors using the configured embedder (e.g. Ollama nomic-embed-text) +EMBEDDER_PROVIDER=ollama csdk proposal search "semantic query" --auto-embed --select title,embeddingVectorDistance +EMBEDDER_PROVIDER=ollama csdk proposal list --where.embedding.vector "semantic query" --auto-embed --select title,embeddingVectorDistance +``` + +*Create/update with auto-embedded `embedding` via --auto-embed:* +```bash +# --auto-embed on create/update converts text strings in vector fields to embeddings before saving +EMBEDDER_PROVIDER=ollama csdk proposal create --embedding "text to embed" --auto-embed +EMBEDDER_PROVIDER=ollama csdk proposal update --embedding "new text to embed" --auto-embed +``` + +*Fuzzy search via trigram similarity (`trgmBody`):* +```bash +csdk proposal list --where.trgmBody.value "approximate query" --where.trgmBody.threshold 0.3 --select title,bodyTrgmSimilarity +``` + +*Fuzzy search via trigram similarity (`trgmClosedReason`):* +```bash +csdk proposal list --where.trgmClosedReason.value "approximate query" --where.trgmClosedReason.threshold 0.3 --select title,closedReasonTrgmSimilarity +``` + +*Fuzzy search via trigram similarity (`trgmKind`):* +```bash +csdk proposal list --where.trgmKind.value "approximate query" --where.trgmKind.threshold 0.3 --select title,kindTrgmSimilarity +``` + +*Fuzzy search via trigram similarity (`trgmMergeCommit`):* +```bash +csdk proposal list --where.trgmMergeCommit.value "approximate query" --where.trgmMergeCommit.threshold 0.3 --select title,mergeCommitTrgmSimilarity +``` + +*Fuzzy search via trigram similarity (`trgmMergeMethod`):* +```bash +csdk proposal list --where.trgmMergeMethod.value "approximate query" --where.trgmMergeMethod.threshold 0.3 --select title,mergeMethodTrgmSimilarity +``` + +*Fuzzy search via trigram similarity (`trgmResolution`):* +```bash +csdk proposal list --where.trgmResolution.value "approximate query" --where.trgmResolution.threshold 0.3 --select title,resolutionTrgmSimilarity +``` + +*Full-text search via tsvector (`search`):* +```bash +csdk proposal list --where.search "search query" --select title,tsvRank +``` + +*Fuzzy search via trigram similarity (`trgmSourceRef`):* +```bash +csdk proposal list --where.trgmSourceRef.value "approximate query" --where.trgmSourceRef.threshold 0.3 --select title,sourceRefTrgmSimilarity +``` + +*Fuzzy search via trigram similarity (`trgmStatus`):* +```bash +csdk proposal list --where.trgmStatus.value "approximate query" --where.trgmStatus.threshold 0.3 --select title,statusTrgmSimilarity +``` + +*Fuzzy search via trigram similarity (`trgmTargetRef`):* +```bash +csdk proposal list --where.trgmTargetRef.value "approximate query" --where.trgmTargetRef.threshold 0.3 --select title,targetRefTrgmSimilarity +``` + +*Fuzzy search via trigram similarity (`trgmTitle`):* +```bash +csdk proposal list --where.trgmTitle.value "approximate query" --where.trgmTitle.threshold 0.3 --select title,titleTrgmSimilarity +``` + +*Composite search (unifiedSearch dispatches to all text adapters):* +```bash +csdk proposal list --where.unifiedSearch "search query" --select title,bodyTrgmSimilarity,closedReasonTrgmSimilarity,kindTrgmSimilarity,mergeCommitTrgmSimilarity,mergeMethodTrgmSimilarity,resolutionTrgmSimilarity,tsvRank,searchScore,sourceRefTrgmSimilarity,statusTrgmSimilarity,targetRefTrgmSimilarity,titleTrgmSimilarity +``` + +*Search with pagination and field projection:* +```bash +csdk proposal list --where.unifiedSearch "query" --limit 10 --select id,title,searchScore +csdk proposal search "query" --limit 10 --select id,title,searchScore +``` + + +### `proposal-file-view` + +CRUD operations for ProposalFileView records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all proposalFileView records | +| `find-first` | Find first matching proposalFileView record | +| `get` | Get a proposalFileView by id | +| `create` | Create a new proposalFileView | +| `update` | Update an existing proposalFileView | +| `delete` | Delete a proposalFileView | + +**Fields:** + +| Field | Type | +|-------|------| +| `blobSha` | String | +| `createdAt` | Datetime | +| `createdByPrincipal` | UUID | +| `databaseId` | UUID | +| `id` | UUID | +| `path` | String | +| `proposalId` | UUID | +| `reviewerId` | UUID | +| `updatedAt` | Datetime | +| `updatedByPrincipal` | UUID | +| `viewedAt` | Datetime | + +**Required create fields:** `blobSha`, `databaseId`, `path`, `proposalId`, `reviewerId` +**Optional create fields (backend defaults):** `createdByPrincipal`, `updatedByPrincipal`, `viewedAt` + +### `proposal-reaction` + +CRUD operations for ProposalReaction records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all proposalReaction records | +| `find-first` | Find first matching proposalReaction record | +| `get` | Get a proposalReaction by id | +| `create` | Create a new proposalReaction | +| `update` | Update an existing proposalReaction | +| `delete` | Delete a proposalReaction | + +**Fields:** + +| Field | Type | +|-------|------| +| `actorId` | UUID | +| `commentId` | UUID | +| `createdAt` | Datetime | +| `createdByPrincipal` | UUID | +| `databaseId` | UUID | +| `emoji` | String | +| `id` | UUID | +| `proposalId` | UUID | +| `updatedAt` | Datetime | +| `updatedByPrincipal` | UUID | + +**Required create fields:** `actorId`, `databaseId`, `emoji`, `proposalId` +**Optional create fields (backend defaults):** `commentId`, `createdByPrincipal`, `updatedByPrincipal` + +### `proposal-review` + +CRUD operations for ProposalReview records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all proposalReview records | +| `find-first` | Find first matching proposalReview record | +| `search ` | Search proposalReview records | +| `get` | Get a proposalReview by id | +| `create` | Create a new proposalReview | +| `update` | Update an existing proposalReview | +| `delete` | Delete a proposalReview | + +**Fields:** + +| Field | Type | +|-------|------| +| `body` | String | +| `bodyTrgmSimilarity` | Float | +| `commitSha` | String | +| `commitShaTrgmSimilarity` | Float | +| `createdAt` | Datetime | +| `createdByPrincipal` | UUID | +| `databaseId` | UUID | +| `id` | UUID | +| `proposalId` | UUID | +| `reviewerId` | UUID | +| `search` | FullText | +| `searchScore` | Float | +| `searchTsvRank` | Float | +| `submittedAt` | Datetime | +| `updatedAt` | Datetime | +| `updatedByPrincipal` | UUID | +| `verdict` | String | +| `verdictTrgmSimilarity` | Float | + +**Required create fields:** `commitSha`, `databaseId`, `proposalId`, `reviewerId`, `verdict` +**Optional create fields (backend defaults):** `body`, `createdByPrincipal`, `submittedAt`, `updatedByPrincipal` +> **Unified Search API fields:** `bodyTrgmSimilarity`, `commitShaTrgmSimilarity`, `search`, `searchScore`, `verdictTrgmSimilarity` +> Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. + +**Search Examples:** + +*Fuzzy search via trigram similarity (`trgmBody`):* +```bash +csdk proposal-review list --where.trgmBody.value "approximate query" --where.trgmBody.threshold 0.3 --select title,bodyTrgmSimilarity +``` + +*Fuzzy search via trigram similarity (`trgmCommitSha`):* +```bash +csdk proposal-review list --where.trgmCommitSha.value "approximate query" --where.trgmCommitSha.threshold 0.3 --select title,commitShaTrgmSimilarity +``` + +*Full-text search via tsvector (`search`):* +```bash +csdk proposal-review list --where.search "search query" --select title,tsvRank +``` + +*Fuzzy search via trigram similarity (`trgmVerdict`):* +```bash +csdk proposal-review list --where.trgmVerdict.value "approximate query" --where.trgmVerdict.threshold 0.3 --select title,verdictTrgmSimilarity +``` + +*Composite search (unifiedSearch dispatches to all text adapters):* +```bash +csdk proposal-review list --where.unifiedSearch "search query" --select title,bodyTrgmSimilarity,commitShaTrgmSimilarity,tsvRank,searchScore,verdictTrgmSimilarity +``` + +*Search with pagination and field projection:* +```bash +csdk proposal-review list --where.unifiedSearch "query" --limit 10 --select id,title,searchScore +csdk proposal-review search "query" --limit 10 --select id,title,searchScore +``` + + +### `proposals-chunk` + +CRUD operations for ProposalsChunk records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all proposalsChunk records | +| `find-first` | Find first matching proposalsChunk record | +| `search ` | Search proposalsChunk records | +| `get` | Get a proposalsChunk by id | +| `create` | Create a new proposalsChunk | +| `update` | Update an existing proposalsChunk | +| `delete` | Delete a proposalsChunk | + +**Fields:** + +| Field | Type | +|-------|------| +| `actorId` | UUID | +| `body` | String | +| `chunkIndex` | Int | +| `createdAt` | Datetime | +| `databaseId` | UUID | +| `embedding` | Vector | +| `embeddingVectorDistance` | Float | +| `id` | UUID | +| `metadata` | JSON | +| `proposalsId` | UUID | +| `searchScore` | Float | +| `updatedAt` | Datetime | + +**Required create fields:** `body`, `proposalsId` +**Optional create fields (backend defaults):** `actorId`, `chunkIndex`, `databaseId`, `embedding`, `metadata` +> **pgvector embedding fields:** `embedding` +> High-dimensional vector columns for semantic similarity search. Query via the Unified Search API pgvector adapter using cosine, L2, or inner-product distance. Supports chunk-aware search: set `includeChunks: true` in VectorNearbyInput to transparently query across parent and chunk embeddings, returning the minimum distance. + +> **Unified Search API fields:** `searchScore` +> Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. + +**Search Examples:** + +*Vector similarity search via `embedding` (manual vector):* +```bash +# Pass a pre-computed vector array via dot-notation +csdk proposals-chunk list --where.embedding.vector '[0.1,0.2,0.3]' --where.embedding.distance 1.0 --select title,embeddingVectorDistance +``` + +*Vector semantic search via `embedding` with --auto-embed:* +```bash +# --auto-embed converts text to vectors using the configured embedder (e.g. Ollama nomic-embed-text) +EMBEDDER_PROVIDER=ollama csdk proposals-chunk search "semantic query" --auto-embed --select title,embeddingVectorDistance +EMBEDDER_PROVIDER=ollama csdk proposals-chunk list --where.embedding.vector "semantic query" --auto-embed --select title,embeddingVectorDistance +``` + +*Create/update with auto-embedded `embedding` via --auto-embed:* +```bash +# --auto-embed on create/update converts text strings in vector fields to embeddings before saving +EMBEDDER_PROVIDER=ollama csdk proposals-chunk create --embedding "text to embed" --auto-embed +EMBEDDER_PROVIDER=ollama csdk proposals-chunk update --embedding "new text to embed" --auto-embed +``` + +*Search with pagination and field projection:* +```bash +csdk proposals-chunk list --where.unifiedSearch "query" --limit 10 --select id,title,searchScore +csdk proposals-chunk search "query" --limit 10 --select id,title,searchScore +``` + + +### `registry-binding` + +CRUD operations for RegistryBinding records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all registryBinding records | +| `find-first` | Find first matching registryBinding record | +| `get` | Get a registryBinding by id | +| `create` | Create a new registryBinding | +| `update` | Update an existing registryBinding | +| `delete` | Delete a registryBinding | + +**Fields:** + +| Field | Type | +|-------|------| +| `createdAt` | Datetime | +| `createdBy` | UUID | +| `createdByPrincipal` | UUID | +| `databaseId` | UUID | +| `id` | UUID | +| `metadata` | JSON | +| `namespaceId` | UUID | +| `observedCredentialVersion` | String | +| `pullSecretName` | String | +| `realm` | String | +| `registryHost` | String | +| `registryId` | UUID | +| `status` | String | +| `updatedAt` | Datetime | +| `updatedBy` | UUID | +| `updatedByPrincipal` | UUID | + +**Required create fields:** `databaseId`, `namespaceId`, `registryHost`, `registryId` +**Optional create fields (backend defaults):** `createdBy`, `createdByPrincipal`, `metadata`, `observedCredentialVersion`, `pullSecretName`, `realm`, `status`, `updatedBy`, `updatedByPrincipal` + +### `registry` + +CRUD operations for Registry records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all registry records | +| `find-first` | Find first matching registry record | +| `get` | Get a registry by id | +| `create` | Create a new registry | +| `update` | Update an existing registry | +| `delete` | Delete a registry | + +**Fields:** + +| Field | Type | +|-------|------| +| `authMode` | String | +| `basePath` | String | +| `createdAt` | Datetime | +| `createdByPrincipal` | UUID | +| `credentialSecretName` | String | +| `databaseId` | UUID | +| `host` | String | +| `id` | UUID | +| `installationId` | UUID | +| `isPublished` | Boolean | +| `kind` | String | +| `labels` | JSON | +| `lastError` | String | +| `metadata` | JSON | +| `name` | String | +| `platformOnly` | Boolean | +| `role` | String | +| `status` | String | +| `updatedAt` | Datetime | +| `updatedByPrincipal` | UUID | + +**Required create fields:** `databaseId`, `kind`, `name` +**Optional create fields (backend defaults):** `authMode`, `basePath`, `createdByPrincipal`, `credentialSecretName`, `host`, `installationId`, `isPublished`, `labels`, `lastError`, `metadata`, `platformOnly`, `role`, `status`, `updatedByPrincipal` + +### `registry-grant` + +CRUD operations for RegistryGrant records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all registryGrant records | +| `find-first` | Find first matching registryGrant record | +| `get` | Get a registryGrant by id | +| `create` | Create a new registryGrant | +| `update` | Update an existing registryGrant | +| `delete` | Delete a registryGrant | + +**Fields:** + +| Field | Type | +|-------|------| +| `actions` | String | +| `createdAt` | Datetime | +| `createdByPrincipal` | UUID | +| `databaseId` | UUID | +| `expiresAt` | Datetime | +| `grantedBy` | UUID | +| `granteeKey` | UUID | +| `granteeScope` | String | +| `id` | UUID | +| `registryId` | UUID | +| `updatedAt` | Datetime | +| `updatedByPrincipal` | UUID | + +**Required create fields:** `databaseId`, `granteeKey`, `granteeScope`, `registryId` +**Optional create fields (backend defaults):** `actions`, `createdByPrincipal`, `expiresAt`, `grantedBy`, `updatedByPrincipal` + +### `repository` + +CRUD operations for Repository records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all repository records | +| `find-first` | Find first matching repository record | +| `search ` | Search repository records | +| `get` | Get a repository by id | +| `create` | Create a new repository | +| `update` | Update an existing repository | +| `delete` | Delete a repository | + +**Fields:** + +| Field | Type | +|-------|------| +| `cloneUrl` | String | +| `cloneUrlTrgmSimilarity` | Float | +| `createdAt` | Datetime | +| `createdBy` | UUID | +| `createdByPrincipal` | UUID | +| `databaseId` | UUID | +| `defaultBranch` | String | +| `defaultBranchTrgmSimilarity` | Float | +| `description` | String | +| `descriptionTrgmSimilarity` | Float | +| `embedding` | Vector | +| `embeddingUpdatedAt` | Datetime | +| `embeddingVectorDistance` | Float | +| `externalId` | String | +| `externalIdTrgmSimilarity` | Float | +| `id` | UUID | +| `isArchived` | Boolean | +| `metadata` | JSON | +| `name` | String | +| `nameTrgmSimilarity` | Float | +| `ownerId` | UUID | +| `provider` | String | +| `providerTrgmSimilarity` | Float | +| `search` | FullText | +| `searchScore` | Float | +| `searchTsvRank` | Float | +| `slug` | String | +| `slugTrgmSimilarity` | Float | +| `updatedAt` | Datetime | +| `updatedBy` | UUID | +| `updatedByPrincipal` | UUID | +| `visibility` | String | +| `visibilityTrgmSimilarity` | Float | + +**Required create fields:** `databaseId`, `name`, `slug` +**Optional create fields (backend defaults):** `cloneUrl`, `createdBy`, `createdByPrincipal`, `defaultBranch`, `description`, `embedding`, `externalId`, `isArchived`, `metadata`, `ownerId`, `provider`, `updatedBy`, `updatedByPrincipal`, `visibility` +> **pgvector embedding fields:** `embedding` +> High-dimensional vector columns for semantic similarity search. Query via the Unified Search API pgvector adapter using cosine, L2, or inner-product distance. Supports chunk-aware search: set `includeChunks: true` in VectorNearbyInput to transparently query across parent and chunk embeddings, returning the minimum distance. + +> **Unified Search API fields:** `cloneUrlTrgmSimilarity`, `defaultBranchTrgmSimilarity`, `descriptionTrgmSimilarity`, `externalIdTrgmSimilarity`, `nameTrgmSimilarity`, `providerTrgmSimilarity`, `search`, `searchScore`, `slugTrgmSimilarity`, `visibilityTrgmSimilarity` +> Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. + +**Search Examples:** + +*Vector similarity search via `embedding` (manual vector):* +```bash +# Pass a pre-computed vector array via dot-notation +csdk repository list --where.embedding.vector '[0.1,0.2,0.3]' --where.embedding.distance 1.0 --select title,embeddingVectorDistance +``` + +*Vector semantic search via `embedding` with --auto-embed:* +```bash +# --auto-embed converts text to vectors using the configured embedder (e.g. Ollama nomic-embed-text) +EMBEDDER_PROVIDER=ollama csdk repository search "semantic query" --auto-embed --select title,embeddingVectorDistance +EMBEDDER_PROVIDER=ollama csdk repository list --where.embedding.vector "semantic query" --auto-embed --select title,embeddingVectorDistance +``` + +*Create/update with auto-embedded `embedding` via --auto-embed:* +```bash +# --auto-embed on create/update converts text strings in vector fields to embeddings before saving +EMBEDDER_PROVIDER=ollama csdk repository create --embedding "text to embed" --auto-embed +EMBEDDER_PROVIDER=ollama csdk repository update --embedding "new text to embed" --auto-embed +``` + +*Fuzzy search via trigram similarity (`trgmCloneUrl`):* +```bash +csdk repository list --where.trgmCloneUrl.value "approximate query" --where.trgmCloneUrl.threshold 0.3 --select title,cloneUrlTrgmSimilarity +``` + +*Fuzzy search via trigram similarity (`trgmDefaultBranch`):* +```bash +csdk repository list --where.trgmDefaultBranch.value "approximate query" --where.trgmDefaultBranch.threshold 0.3 --select title,defaultBranchTrgmSimilarity +``` + +*Fuzzy search via trigram similarity (`trgmDescription`):* +```bash +csdk repository list --where.trgmDescription.value "approximate query" --where.trgmDescription.threshold 0.3 --select title,descriptionTrgmSimilarity +``` + +*Fuzzy search via trigram similarity (`trgmExternalId`):* +```bash +csdk repository list --where.trgmExternalId.value "approximate query" --where.trgmExternalId.threshold 0.3 --select title,externalIdTrgmSimilarity +``` + +*Fuzzy search via trigram similarity (`trgmName`):* +```bash +csdk repository list --where.trgmName.value "approximate query" --where.trgmName.threshold 0.3 --select title,nameTrgmSimilarity +``` + +*Fuzzy search via trigram similarity (`trgmProvider`):* +```bash +csdk repository list --where.trgmProvider.value "approximate query" --where.trgmProvider.threshold 0.3 --select title,providerTrgmSimilarity +``` + +*Full-text search via tsvector (`search`):* +```bash +csdk repository list --where.search "search query" --select title,tsvRank +``` + +*Fuzzy search via trigram similarity (`trgmSlug`):* +```bash +csdk repository list --where.trgmSlug.value "approximate query" --where.trgmSlug.threshold 0.3 --select title,slugTrgmSimilarity +``` + +*Fuzzy search via trigram similarity (`trgmVisibility`):* +```bash +csdk repository list --where.trgmVisibility.value "approximate query" --where.trgmVisibility.threshold 0.3 --select title,visibilityTrgmSimilarity +``` + +*Composite search (unifiedSearch dispatches to all text adapters):* +```bash +csdk repository list --where.unifiedSearch "search query" --select title,cloneUrlTrgmSimilarity,defaultBranchTrgmSimilarity,descriptionTrgmSimilarity,externalIdTrgmSimilarity,nameTrgmSimilarity,providerTrgmSimilarity,tsvRank,searchScore,slugTrgmSimilarity,visibilityTrgmSimilarity +``` + +*Search with pagination and field projection:* +```bash +csdk repository list --where.unifiedSearch "query" --limit 10 --select id,title,searchScore +csdk repository search "query" --limit 10 --select id,title,searchScore +``` + + +### `repository-event` + +CRUD operations for RepositoryEvent records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all repositoryEvent records | +| `find-first` | Find first matching repositoryEvent record | +| `get` | Get a repositoryEvent by id | +| `create` | Create a new repositoryEvent | +| `update` | Update an existing repositoryEvent | +| `delete` | Delete a repositoryEvent | + +**Fields:** + +| Field | Type | +|-------|------| +| `actorId` | UUID | +| `commitSha` | String | +| `createdAt` | Datetime | +| `createdByPrincipal` | UUID | +| `databaseId` | UUID | +| `deliveryId` | String | +| `eventType` | String | +| `id` | UUID | +| `metadata` | JSON | +| `payload` | JSON | +| `ref` | String | +| `repositoryId` | UUID | +| `updatedAt` | Datetime | +| `updatedByPrincipal` | UUID | + +**Required create fields:** `databaseId`, `eventType`, `repositoryId` +**Optional create fields (backend defaults):** `actorId`, `commitSha`, `createdByPrincipal`, `deliveryId`, `metadata`, `payload`, `ref`, `updatedByPrincipal` + +### `repository-required-check` + +CRUD operations for RepositoryRequiredCheck records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all repositoryRequiredCheck records | +| `find-first` | Find first matching repositoryRequiredCheck record | +| `get` | Get a repositoryRequiredCheck by id | +| `create` | Create a new repositoryRequiredCheck | +| `update` | Update an existing repositoryRequiredCheck | +| `delete` | Delete a repositoryRequiredCheck | + +**Fields:** + +| Field | Type | +|-------|------| +| `createdAt` | Datetime | +| `databaseId` | UUID | +| `id` | UUID | +| `repositoryId` | UUID | +| `updatedAt` | Datetime | +| `workflowId` | UUID | + +**Required create fields:** `databaseId`, `repositoryId`, `workflowId` + +### `repository-workflow` + +CRUD operations for RepositoryWorkflow records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all repositoryWorkflow records | +| `find-first` | Find first matching repositoryWorkflow record | +| `get` | Get a repositoryWorkflow by id | +| `create` | Create a new repositoryWorkflow | +| `update` | Update an existing repositoryWorkflow | +| `delete` | Delete a repositoryWorkflow | + +**Fields:** + +| Field | Type | +|-------|------| +| `cancelInProgress` | Boolean | +| `concurrencyKey` | String | +| `createdAt` | Datetime | +| `createdBy` | UUID | +| `createdByPrincipal` | UUID | +| `databaseId` | UUID | +| `eventType` | String | +| `graphId` | UUID | +| `id` | UUID | +| `inputs` | JSON | +| `isEnabled` | Boolean | +| `name` | String | +| `refPattern` | String | +| `repositoryId` | UUID | +| `requiredSecrets` | String | +| `slug` | String | +| `updatedAt` | Datetime | +| `updatedBy` | UUID | +| `updatedByPrincipal` | UUID | + +**Required create fields:** `databaseId`, `eventType`, `name`, `repositoryId`, `slug` +**Optional create fields (backend defaults):** `cancelInProgress`, `concurrencyKey`, `createdBy`, `createdByPrincipal`, `graphId`, `inputs`, `isEnabled`, `refPattern`, `requiredSecrets`, `updatedBy`, `updatedByPrincipal` + +### `resource` + +CRUD operations for Resource records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all resource records | +| `find-first` | Find first matching resource record | +| `get` | Get a resource by id | +| `create` | Create a new resource | +| `update` | Update an existing resource | +| `delete` | Delete a resource | + +**Fields:** + +| Field | Type | +|-------|------| +| `annotations` | JSON | +| `cpuLimitMillicores` | BigInt | +| `cpuRequestMillicores` | BigInt | +| `createdAt` | Datetime | +| `createdBy` | UUID | +| `createdByPrincipal` | UUID | +| `databaseId` | UUID | +| `errorCount` | Int | +| `id` | UUID | +| `imageRef` | String | +| `installationId` | UUID | +| `integrations` | String | +| `kind` | String | +| `labels` | JSON | +| `lastError` | String | +| `lastHeartbeatAt` | Datetime | +| `memoryLimitBytes` | BigInt | +| `memoryRequestBytes` | BigInt | +| `name` | String | +| `namespaceId` | UUID | +| `realm` | String | +| `replicas` | Int | +| `requiredConfigs` | ResourceRequirement | +| `requiredSecrets` | ResourceRequirement | +| `resourceDefinitionId` | UUID | +| `slug` | String | +| `spec` | JSON | +| `status` | String | +| `statusObserved` | JSON | +| `storageClass` | String | +| `storageSizeBytes` | BigInt | +| `storageTotalBytes` | BigInt | +| `updatedAt` | Datetime | +| `updatedBy` | UUID | +| `updatedByPrincipal` | UUID | + +**Required create fields:** `databaseId`, `kind`, `name`, `namespaceId`, `slug` +**Optional create fields (backend defaults):** `annotations`, `createdBy`, `createdByPrincipal`, `errorCount`, `imageRef`, `installationId`, `integrations`, `labels`, `lastError`, `lastHeartbeatAt`, `realm`, `requiredConfigs`, `requiredSecrets`, `resourceDefinitionId`, `spec`, `status`, `statusObserved`, `updatedBy`, `updatedByPrincipal` + +### `resource-declared-capacity` + +CRUD operations for ResourceDeclaredCapacity records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all resourceDeclaredCapacity records | +| `find-first` | Find first matching resourceDeclaredCapacity record | +| `get` | Get a resourceDeclaredCapacity by id | +| `create` | Create a new resourceDeclaredCapacity | +| `update` | Update an existing resourceDeclaredCapacity | +| `delete` | Delete a resourceDeclaredCapacity | + +**Fields:** + +| Field | Type | +|-------|------| +| `cpuLimitMillicores` | BigInt | +| `cpuRequestMillicores` | BigInt | +| `installationId` | UUID | +| `isTransient` | Boolean | +| `kind` | String | +| `memoryLimitBytes` | BigInt | +| `memoryRequestBytes` | BigInt | +| `namespaceId` | UUID | +| `podCountMax` | Int | +| `podCountMin` | Int | +| `source` | String | +| `sourceId` | UUID | +| `storageSizeBytes` | BigInt | +| `storageTotalBytes` | BigInt | + +**Required create fields:** `cpuLimitMillicores`, `cpuRequestMillicores`, `installationId`, `isTransient`, `kind`, `memoryLimitBytes`, `memoryRequestBytes`, `namespaceId`, `podCountMax`, `podCountMin`, `source`, `sourceId`, `storageSizeBytes`, `storageTotalBytes` + +### `resource-definition` + +CRUD operations for ResourceDefinition records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all resourceDefinition records | +| `find-first` | Find first matching resourceDefinition record | +| `get` | Get a resourceDefinition by id | +| `create` | Create a new resourceDefinition | +| `update` | Update an existing resourceDefinition | +| `delete` | Delete a resourceDefinition | + +**Fields:** + +| Field | Type | +|-------|------| +| `annotations` | JSON | +| `createdAt` | Datetime | +| `createdBy` | UUID | +| `createdByPrincipal` | UUID | +| `databaseId` | UUID | +| `defaultSpec` | JSON | +| `description` | String | +| `id` | UUID | +| `integrations` | String | +| `kind` | String | +| `labels` | JSON | +| `name` | String | +| `namespaceId` | UUID | +| `paramsSchema` | JSON | +| `requiredConfigs` | ResourceRequirement | +| `requiredSecrets` | ResourceRequirement | +| `slug` | String | +| `stepUpMinAge` | Interval | +| `updatedAt` | Datetime | +| `updatedBy` | UUID | +| `updatedByPrincipal` | UUID | + +**Required create fields:** `databaseId`, `kind`, `name`, `namespaceId`, `slug` +**Optional create fields (backend defaults):** `annotations`, `createdBy`, `createdByPrincipal`, `defaultSpec`, `description`, `integrations`, `labels`, `paramsSchema`, `requiredConfigs`, `requiredSecrets`, `stepUpMinAge`, `updatedBy`, `updatedByPrincipal` + +### `resource-event` + +CRUD operations for ResourceEvent records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all resourceEvent records | +| `find-first` | Find first matching resourceEvent record | +| `get` | Get a resourceEvent by id | +| `create` | Create a new resourceEvent | +| `update` | Update an existing resourceEvent | +| `delete` | Delete a resourceEvent | + +**Fields:** + +| Field | Type | +|-------|------| +| `actorId` | UUID | +| `createdAt` | Datetime | +| `databaseId` | UUID | +| `eventType` | String | +| `id` | UUID | +| `message` | String | +| `metadata` | JSON | +| `resourceId` | UUID | + +**Required create fields:** `databaseId`, `eventType`, `resourceId` +**Optional create fields (backend defaults):** `actorId`, `message`, `metadata` + +### `resource-installation` + +CRUD operations for ResourceInstallation records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all resourceInstallation records | +| `find-first` | Find first matching resourceInstallation record | +| `get` | Get a resourceInstallation by id | +| `create` | Create a new resourceInstallation | +| `update` | Update an existing resourceInstallation | +| `delete` | Delete a resourceInstallation | + +**Fields:** + +| Field | Type | +|-------|------| +| `commitId` | UUID | +| `createdAt` | Datetime | +| `createdBy` | UUID | +| `createdByPrincipal` | UUID | +| `databaseId` | UUID | +| `id` | UUID | +| `name` | String | +| `namespaceId` | UUID | +| `params` | JSON | +| `revision` | Int | +| `slug` | String | +| `status` | String | +| `storeId` | UUID | +| `updatedAt` | Datetime | +| `updatedBy` | UUID | +| `updatedByPrincipal` | UUID | + +**Required create fields:** `databaseId`, `name`, `namespaceId`, `slug` +**Optional create fields (backend defaults):** `commitId`, `createdBy`, `createdByPrincipal`, `params`, `revision`, `status`, `storeId`, `updatedBy`, `updatedByPrincipal` + +### `resource-observed-storage` + +CRUD operations for ResourceObservedStorage records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all resourceObservedStorage records | +| `find-first` | Find first matching resourceObservedStorage record | +| `get` | Get a resourceObservedStorage by id | +| `create` | Create a new resourceObservedStorage | +| `update` | Update an existing resourceObservedStorage | +| `delete` | Delete a resourceObservedStorage | + +**Fields:** + +| Field | Type | +|-------|------| +| `capacity` | String | +| `capacityBytes` | BigInt | +| `claimName` | String | +| `declaredStorageClass` | String | +| `declaredStorageSizeBytes` | BigInt | +| `declaredStorageTotalBytes` | BigInt | +| `installationId` | UUID | +| `isBound` | Boolean | +| `kind` | String | +| `namespaceId` | UUID | +| `phase` | String | +| `requested` | String | +| `requestedBytes` | BigInt | +| `resourceId` | UUID | +| `resourceStatus` | String | +| `slug` | String | +| `storageClass` | String | +| `storageName` | String | + +**Required create fields:** `capacity`, `capacityBytes`, `claimName`, `declaredStorageClass`, `declaredStorageSizeBytes`, `declaredStorageTotalBytes`, `installationId`, `isBound`, `kind`, `namespaceId`, `phase`, `requested`, `requestedBytes`, `resourceId`, `resourceStatus`, `slug`, `storageClass`, `storageName` + +### `resource-status-check` + +CRUD operations for ResourceStatusCheck records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all resourceStatusCheck records | +| `find-first` | Find first matching resourceStatusCheck record | +| `get` | Get a resourceStatusCheck by id | +| `create` | Create a new resourceStatusCheck | +| `update` | Update an existing resourceStatusCheck | +| `delete` | Delete a resourceStatusCheck | + +**Fields:** + +| Field | Type | +|-------|------| +| `completedAt` | Datetime | +| `databaseId` | UUID | +| `id` | UUID | +| `requestedAt` | Datetime | +| `requestedBy` | UUID | +| `resourceId` | UUID | +| `result` | JSON | +| `status` | String | + +**Required create fields:** `databaseId`, `resourceId` +**Optional create fields (backend defaults):** `completedAt`, `requestedAt`, `requestedBy`, `result`, `status` + +### `resource-usage-log` + +CRUD operations for ResourceUsageLog records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all resourceUsageLog records | +| `find-first` | Find first matching resourceUsageLog record | +| `get` | Get a resourceUsageLog by id | +| `create` | Create a new resourceUsageLog | +| `update` | Update an existing resourceUsageLog | +| `delete` | Delete a resourceUsageLog | + +**Fields:** + +| Field | Type | +|-------|------| +| `cpuMillicores` | BigInt | +| `databaseId` | UUID | +| `id` | UUID | +| `intervalSeconds` | Int | +| `memoryBytes` | BigInt | +| `metrics` | JSON | +| `namespaceId` | UUID | +| `resourceId` | UUID | +| `sampledAt` | Datetime | +| `source` | String | + +**Required create fields:** `databaseId`, `intervalSeconds`, `namespaceId`, `source` +**Optional create fields (backend defaults):** `cpuMillicores`, `memoryBytes`, `metrics`, `resourceId`, `sampledAt` + +### `resource-usage-summary` + +CRUD operations for ResourceUsageSummary records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all resourceUsageSummary records | +| `find-first` | Find first matching resourceUsageSummary record | +| `get` | Get a resourceUsageSummary by id | +| `create` | Create a new resourceUsageSummary | +| `update` | Update an existing resourceUsageSummary | +| `delete` | Delete a resourceUsageSummary | + +**Fields:** + +| Field | Type | +|-------|------| +| `databaseId` | UUID | +| `date` | Date | +| `gbSeconds` | BigFloat | +| `id` | UUID | +| `maxCpuMillicores` | BigInt | +| `maxMemoryBytes` | BigInt | +| `namespaceId` | UUID | +| `resourceId` | UUID | +| `runtimeSeconds` | BigInt | +| `sampleCount` | Int | + +**Required create fields:** `databaseId`, `date`, `namespaceId` +**Optional create fields (backend defaults):** `gbSeconds`, `maxCpuMillicores`, `maxMemoryBytes`, `resourceId`, `runtimeSeconds`, `sampleCount` + +### `resource-utilization` + +CRUD operations for ResourceUtilization records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all resourceUtilization records | +| `find-first` | Find first matching resourceUtilization record | +| `get` | Get a resourceUtilization by id | +| `create` | Create a new resourceUtilization | +| `update` | Update an existing resourceUtilization | +| `delete` | Delete a resourceUtilization | + +**Fields:** + +| Field | Type | +|-------|------| +| `avgMemoryBytes` | BigInt | +| `cpuLimitMillicores` | BigInt | +| `cpuPeakUtilization` | BigFloat | +| `cpuRequestHeadroomMillicores` | BigInt | +| `cpuRequestMillicores` | BigInt | +| `date` | Date | +| `gbSeconds` | BigFloat | +| `kind` | String | +| `maxCpuMillicores` | BigInt | +| `maxMemoryBytes` | BigInt | +| `memoryLimitBytes` | BigInt | +| `memoryPeakUtilization` | BigFloat | +| `memoryRequestBytes` | BigInt | +| `memoryRequestHeadroomBytes` | BigInt | +| `namespaceId` | UUID | +| `replicas` | Int | +| `resourceId` | UUID | +| `runtimeSeconds` | BigInt | +| `sampleCount` | Int | + +**Required create fields:** `avgMemoryBytes`, `cpuLimitMillicores`, `cpuPeakUtilization`, `cpuRequestHeadroomMillicores`, `cpuRequestMillicores`, `date`, `gbSeconds`, `kind`, `maxCpuMillicores`, `maxMemoryBytes`, `memoryLimitBytes`, `memoryPeakUtilization`, `memoryRequestBytes`, `memoryRequestHeadroomBytes`, `namespaceId`, `replicas`, `resourceId`, `runtimeSeconds`, `sampleCount` + +### `resources-health` + +CRUD operations for ResourcesHealth records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all resourcesHealth records | +| `find-first` | Find first matching resourcesHealth record | +| `get` | Get a resourcesHealth by id | +| `create` | Create a new resourcesHealth | +| `update` | Update an existing resourcesHealth | +| `delete` | Delete a resourcesHealth | + +**Fields:** + +| Field | Type | +|-------|------| +| `annotations` | JSON | +| `cpuLimitMillicores` | BigInt | +| `cpuRequestMillicores` | BigInt | +| `createdAt` | Datetime | +| `createdBy` | UUID | +| `createdByPrincipal` | UUID | +| `databaseId` | UUID | +| `errorCount` | Int | +| `id` | UUID | +| `imageRef` | String | +| `installationId` | UUID | +| `integrations` | String | +| `kind` | String | +| `labels` | JSON | +| `lastError` | String | +| `lastHeartbeatAt` | Datetime | +| `memoryLimitBytes` | BigInt | +| `memoryRequestBytes` | BigInt | +| `name` | String | +| `namespaceId` | UUID | +| `realm` | String | +| `replicas` | Int | +| `requiredConfigs` | ResourceRequirement | +| `requiredSecrets` | ResourceRequirement | +| `resourceDefinitionId` | UUID | +| `slug` | String | +| `spec` | JSON | +| `status` | String | +| `statusDetail` | String | +| `statusObserved` | JSON | +| `storageClass` | String | +| `storageSizeBytes` | BigInt | +| `storageTotalBytes` | BigInt | +| `updatedAt` | Datetime | +| `updatedBy` | UUID | +| `updatedByPrincipal` | UUID | + +**Required create fields:** `annotations`, `cpuLimitMillicores`, `cpuRequestMillicores`, `createdBy`, `createdByPrincipal`, `databaseId`, `errorCount`, `imageRef`, `installationId`, `integrations`, `kind`, `labels`, `lastError`, `lastHeartbeatAt`, `memoryLimitBytes`, `memoryRequestBytes`, `name`, `namespaceId`, `realm`, `replicas`, `requiredConfigs`, `requiredSecrets`, `resourceDefinitionId`, `slug`, `spec`, `status`, `statusDetail`, `statusObserved`, `storageClass`, `storageSizeBytes`, `storageTotalBytes`, `updatedBy`, `updatedByPrincipal` + +### `resources-requirements-state` + +CRUD operations for ResourcesRequirementsState records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all resourcesRequirementsState records | +| `find-first` | Find first matching resourcesRequirementsState record | +| `get` | Get a resourcesRequirementsState by id | +| `create` | Create a new resourcesRequirementsState | +| `update` | Update an existing resourcesRequirementsState | +| `delete` | Delete a resourcesRequirementsState | + +**Fields:** + +| Field | Type | +|-------|------| +| `configHash` | String | +| `configObjectName` | String | +| `requirementsHash` | String | +| `resourceId` | UUID | +| `secretsHash` | String | +| `secretsObjectName` | String | +| `slug` | String | + +**Required create fields:** `configHash`, `configObjectName`, `requirementsHash`, `resourceId`, `secretsHash`, `secretsObjectName`, `slug` + +### `resources-resolved-requirement` + +CRUD operations for ResourcesResolvedRequirement records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all resourcesResolvedRequirement records | +| `find-first` | Find first matching resourcesResolvedRequirement record | +| `get` | Get a resourcesResolvedRequirement by id | +| `create` | Create a new resourcesResolvedRequirement | +| `update` | Update an existing resourcesResolvedRequirement | +| `delete` | Delete a resourcesResolvedRequirement | + +**Fields:** + +| Field | Type | +|-------|------| +| `atomId` | UUID | +| `configObjectName` | String | +| `name` | String | +| `namespaceId` | UUID | +| `present` | Boolean | +| `realm` | String | +| `required` | Boolean | +| `requirementKind` | String | +| `resourceId` | UUID | +| `secretsObjectName` | String | +| `slug` | String | + +**Required create fields:** `atomId`, `configObjectName`, `name`, `namespaceId`, `present`, `realm`, `required`, `requirementKind`, `resourceId`, `secretsObjectName`, `slug` + +### `webhook-endpoint` + +CRUD operations for WebhookEndpoint records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all webhookEndpoint records | +| `find-first` | Find first matching webhookEndpoint record | +| `get` | Get a webhookEndpoint by id | +| `create` | Create a new webhookEndpoint | +| `update` | Update an existing webhookEndpoint | +| `delete` | Delete a webhookEndpoint | + +**Fields:** + +| Field | Type | +|-------|------| +| `active` | Boolean | +| `createdAt` | Datetime | +| `createdBy` | UUID | +| `createdByPrincipal` | UUID | +| `databaseId` | UUID | +| `functionDefinitionId` | UUID | +| `host` | String | +| `id` | UUID | +| `namespaceId` | UUID | +| `path` | String | +| `provider` | String | +| `replayWindowSeconds` | Int | +| `signingSecretName` | String | +| `updatedAt` | Datetime | +| `updatedBy` | UUID | +| `updatedByPrincipal` | UUID | + +**Required create fields:** `databaseId`, `functionDefinitionId`, `host`, `namespaceId`, `path`, `signingSecretName` +**Optional create fields (backend defaults):** `active`, `createdBy`, `createdByPrincipal`, `provider`, `replayWindowSeconds`, `updatedBy`, `updatedByPrincipal` + +### `webhook-event` + +CRUD operations for WebhookEvent records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all webhookEvent records | +| `find-first` | Find first matching webhookEvent record | +| `get` | Get a webhookEvent by id | +| `create` | Create a new webhookEvent | +| `update` | Update an existing webhookEvent | +| `delete` | Delete a webhookEvent | + +**Fields:** + +| Field | Type | +|-------|------| +| `createdAt` | Datetime | +| `databaseId` | UUID | +| `endpointId` | UUID | +| `error` | String | +| `externalEventId` | String | +| `id` | UUID | +| `invocationCreatedAt` | Datetime | +| `invocationId` | UUID | +| `payload` | JSON | +| `provider` | String | +| `providerTimestamp` | Datetime | +| `status` | String | +| `updatedAt` | Datetime | + +**Required create fields:** `databaseId`, `endpointId`, `externalEventId`, `provider` +**Optional create fields (backend defaults):** `error`, `invocationCreatedAt`, `invocationId`, `payload`, `providerTimestamp`, `status` + +## Custom Operations + +### `database-read-function-graph` + +databaseReadFunctionGraph + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--graphId` | UUID | + +### `read-function-graph` + +readFunctionGraph + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--graphId` | UUID | + +### `add-edge` + +addEdge + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.context` | String | + | `--input.dstNode` | String | + | `--input.dstPort` | String | + | `--input.graphName` | String | + | `--input.rootHash` | UUID | + | `--input.scopeId` | UUID | + | `--input.srcNode` | String | + | `--input.srcPort` | String | + +### `add-edge-and-save` + +addEdgeAndSave + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.dstNode` | String | + | `--input.dstPort` | String | + | `--input.graphId` | UUID | + | `--input.message` | String | + | `--input.srcNode` | String | + | `--input.srcPort` | String | + +### `add-node` + +addNode + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.context` | String | + | `--input.graphName` | String | + | `--input.meta` | JSON | + | `--input.nodeName` | String | + | `--input.nodeType` | String | + | `--input.props` | JSON | + | `--input.rootHash` | UUID | + | `--input.scopeId` | UUID | + +### `add-node-and-save` + +addNodeAndSave + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.graphId` | UUID | + | `--input.message` | String | + | `--input.meta` | JSON | + | `--input.nodeName` | String | + | `--input.nodeType` | String | + | `--input.props` | JSON | + +### `approve-node` + +approveNode + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.approved` | Boolean | + | `--input.clientMutationId` | String | + | `--input.executionId` | UUID | + | `--input.feedback` | JSON | + | `--input.nodeName` | String | + +### `copy-graph` + +copyGraph + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.graphId` | UUID | + | `--input.name` | String | + | `--input.scopeId` | UUID | + +### `database-add-edge` + +databaseAddEdge + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.context` | String | + | `--input.databaseId` | UUID | + | `--input.dstNode` | String | + | `--input.dstPort` | String | + | `--input.graphName` | String | + | `--input.rootHash` | UUID | + | `--input.srcNode` | String | + | `--input.srcPort` | String | + +### `database-add-edge-and-save` + +databaseAddEdgeAndSave + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.dstNode` | String | + | `--input.dstPort` | String | + | `--input.graphId` | UUID | + | `--input.message` | String | + | `--input.srcNode` | String | + | `--input.srcPort` | String | + +### `database-add-node` + +databaseAddNode + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.context` | String | + | `--input.databaseId` | UUID | + | `--input.graphName` | String | + | `--input.meta` | JSON | + | `--input.nodeName` | String | + | `--input.nodeType` | String | + | `--input.props` | JSON | + | `--input.rootHash` | UUID | + +### `database-add-node-and-save` + +databaseAddNodeAndSave + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.graphId` | UUID | + | `--input.message` | String | + | `--input.meta` | JSON | + | `--input.nodeName` | String | + | `--input.nodeType` | String | + | `--input.props` | JSON | + +### `database-approve-node` + +databaseApproveNode + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.approved` | Boolean | + | `--input.clientMutationId` | String | + | `--input.executionId` | UUID | + | `--input.feedback` | JSON | + | `--input.nodeName` | String | + +### `database-copy-graph` + +databaseCopyGraph + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.databaseId` | UUID | + | `--input.graphId` | UUID | + | `--input.name` | String | + +### `database-create-function-graph` + +databaseCreateFunctionGraph + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.context` | String | + | `--input.createdBy` | UUID | + | `--input.databaseId` | UUID | + | `--input.definitionsCommitId` | UUID | + | `--input.description` | String | + | `--input.name` | String | + +### `database-graph-init-empty-repo` + +databaseGraphInitEmptyRepo + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.sId` | UUID | + | `--input.storeId` | UUID | + +### `database-graph-insert-node-at-path` + +databaseGraphInsertNodeAtPath + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.data` | JSON | + | `--input.kids` | UUID | + | `--input.ktree` | String | + | `--input.path` | String | + | `--input.root` | UUID | + | `--input.sId` | UUID | + +### `database-graph-insert-nodes-at-paths` + +databaseGraphInsertNodesAtPaths + +- **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 | -**Required create fields:** `databaseId`, `functionDefinitionId`, `host`, `namespaceId`, `path`, `signingSecretName` -**Optional create fields (backend defaults):** `active`, `createdBy`, `provider`, `replayWindowSeconds`, `updatedBy` +### `database-graph-set-and-commit` -### `webhook-event` +databaseGraphSetAndCommit -CRUD operations for WebhookEvent records. +- **Type:** mutation +- **Arguments:** -| Subcommand | Description | -|------------|-------------| -| `list` | List all webhookEvent records | -| `find-first` | Find first matching webhookEvent record | -| `get` | Get a webhookEvent by id | -| `create` | Create a new webhookEvent | -| `update` | Update an existing webhookEvent | -| `delete` | Delete a webhookEvent | + | 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 | -**Fields:** +### `database-graph-set-data-at-path` -| Field | Type | -|-------|------| -| `createdAt` | Datetime | -| `databaseId` | UUID | -| `endpointId` | UUID | -| `error` | String | -| `externalEventId` | String | -| `id` | UUID | -| `invocationCreatedAt` | Datetime | -| `invocationId` | UUID | -| `payload` | JSON | -| `provider` | String | -| `providerTimestamp` | Datetime | -| `status` | String | -| `updatedAt` | Datetime | +databaseGraphSetDataAtPath -**Required create fields:** `databaseId`, `endpointId`, `externalEventId`, `provider` -**Optional create fields (backend defaults):** `error`, `invocationCreatedAt`, `invocationId`, `payload`, `providerTimestamp`, `status` +- **Type:** mutation +- **Arguments:** -## Custom Operations + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.data` | JSON | + | `--input.path` | String | + | `--input.root` | UUID | + | `--input.sId` | UUID | -### `read-function-graph` +### `database-graph-set-many-and-commit` -readFunctionGraph +databaseGraphSetManyAndCommit -- **Type:** query +- **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `--graphId` | UUID | + | `--input.clientMutationId` | String | + | `--input.entries` | JSON | + | `--input.message` | String | + | `--input.refname` | String | + | `--input.sId` | UUID | + | `--input.storeId` | UUID | -### `add-edge` +### `database-import-definitions` -addEdge +databaseImportDefinitions + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.contexts` | String | + | `--input.graphId` | UUID | + | `--input.sourceCommitId` | UUID | + | `--input.sourceScopeId` | UUID | + +### `database-import-graph-json` + +databaseImportGraphJson - **Type:** mutation - **Arguments:** @@ -2503,17 +5442,16 @@ addEdge |----------|------| | `--input.clientMutationId` | String | | `--input.context` | String | - | `--input.dstNode` | String | - | `--input.dstPort` | String | - | `--input.graphName` | String | - | `--input.rootHash` | UUID | - | `--input.scopeId` | UUID | - | `--input.srcNode` | String | - | `--input.srcPort` | String | + | `--input.createdBy` | UUID | + | `--input.databaseId` | UUID | + | `--input.definitionsCommitId` | UUID | + | `--input.description` | String | + | `--input.graphJson` | JSON | + | `--input.name` | String | -### `add-edge-and-save` +### `database-save-graph` -addEdgeAndSave +databaseSaveGraph - **Type:** mutation - **Arguments:** @@ -2521,16 +5459,13 @@ addEdgeAndSave | Argument | Type | |----------|------| | `--input.clientMutationId` | String | - | `--input.dstNode` | String | - | `--input.dstPort` | String | | `--input.graphId` | UUID | | `--input.message` | String | - | `--input.srcNode` | String | - | `--input.srcPort` | String | + | `--input.rootHash` | UUID | -### `add-node` +### `database-start-execution` -addNode +databaseStartExecution - **Type:** mutation - **Arguments:** @@ -2538,18 +5473,20 @@ addNode | Argument | Type | |----------|------| | `--input.clientMutationId` | String | - | `--input.context` | String | - | `--input.graphName` | String | - | `--input.meta` | JSON | - | `--input.nodeName` | String | - | `--input.nodeType` | String | - | `--input.props` | JSON | - | `--input.rootHash` | UUID | - | `--input.scopeId` | UUID | + | `--input.graphId` | UUID | + | `--input.inputPayload` | JSON | + | `--input.maxPendingJobs` | Int | + | `--input.maxTicks` | Int | + | `--input.outputNames` | String | + | `--input.outputNode` | String | + | `--input.outputPort` | String | + | `--input.parentExecutionId` | UUID | + | `--input.parentNodeName` | String | + | `--input.timeoutInterval` | IntervalInput | -### `add-node-and-save` +### `database-validate-function-graph` -addNodeAndSave +databaseValidateFunctionGraph - **Type:** mutation - **Arguments:** @@ -2558,15 +5495,10 @@ addNodeAndSave |----------|------| | `--input.clientMutationId` | String | | `--input.graphId` | UUID | - | `--input.message` | String | - | `--input.meta` | JSON | - | `--input.nodeName` | String | - | `--input.nodeType` | String | - | `--input.props` | JSON | -### `copy-graph` +### `function-invocations-create-sync` -copyGraph +functionInvocationsCreateSync - **Type:** mutation - **Arguments:** @@ -2574,9 +5506,11 @@ copyGraph | Argument | Type | |----------|------| | `--input.clientMutationId` | String | - | `--input.graphId` | UUID | - | `--input.name` | String | - | `--input.scopeId` | UUID | + | `--input.entityId` | UUID | + | `--input.payload` | JSON | + | `--input.provenance` | JSON | + | `--input.routeBindingId` | UUID | + | `--input.taskIdentifier` | String | ### `import-definitions` @@ -2641,6 +5575,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 +5626,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 +5672,39 @@ 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-function-invocations-create-sync` + +platformFunctionInvocationsCreateSync + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.entityId` | UUID | + | `--input.payload` | JSON | + | `--input.provenance` | JSON | + | `--input.routeBindingId` | UUID | + | `--input.taskIdentifier` | String | + ### `platform-infra-init-empty-repo` platformInfraInitEmptyRepo @@ -2716,6 +5735,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 +5786,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 @@ -2787,10 +5858,11 @@ platformResourceInstallationsUpgrade ### `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. +Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. - **Type:** mutation - **Arguments:** @@ -2868,6 +5940,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 +5974,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..11fef90d2d 100644 --- a/sdk/constructive-cli/src/compute/cli/commands.ts +++ b/sdk/constructive-cli/src/compute/cli/commands.ts @@ -6,6 +6,19 @@ import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; import contextCmd from './commands/context'; import authCmd from './commands/auth'; +import buildCmd from './commands/build'; +import buildStepCmd from './commands/build-step'; +import builderBindingCmd from './commands/builder-binding'; +import contentPresetCmd from './commands/content-preset'; +import databaseFunctionGraphCmd from './commands/database-function-graph'; +import databaseFunctionGraphExecutionCmd from './commands/database-function-graph-execution'; +import databaseFunctionGraphExecutionNodeStateCmd from './commands/database-function-graph-execution-node-state'; +import databaseFunctionGraphExecutionOutputCmd from './commands/database-function-graph-execution-output'; +import databaseGraphCommitCmd from './commands/database-graph-commit'; +import databaseGraphGetAllTreeNodesRecordCmd from './commands/database-graph-get-all-tree-nodes-record'; +import databaseGraphObjectCmd from './commands/database-graph-object'; +import databaseGraphRefCmd from './commands/database-graph-ref'; +import databaseGraphStoreCmd from './commands/database-graph-store'; import dbPresetCmd from './commands/db-preset'; import functionApiBindingCmd from './commands/function-api-binding'; import functionCapabilityBindingCmd from './commands/function-capability-binding'; @@ -24,6 +37,8 @@ import functionGraphStoreCmd from './commands/function-graph-store'; import functionInvocationAttemptCmd from './commands/function-invocation-attempt'; import functionInvocationCmd from './commands/function-invocation'; import getAllTreeNodesRecordCmd from './commands/get-all-tree-nodes-record'; +import imageCmd from './commands/image'; +import imageGrantCmd from './commands/image-grant'; import infraCommitCmd from './commands/infra-commit'; import infraGetAllTreeNodesRecordCmd from './commands/infra-get-all-tree-nodes-record'; import infraObjectCmd from './commands/infra-object'; @@ -32,6 +47,9 @@ import infraStoreCmd from './commands/infra-store'; import integrationProviderCmd from './commands/integration-provider'; import namespaceCmd from './commands/namespace'; import namespaceEventCmd from './commands/namespace-event'; +import platformBuildCmd from './commands/platform-build'; +import platformBuildStepCmd from './commands/platform-build-step'; +import platformBuilderBindingCmd from './commands/platform-builder-binding'; import platformFunctionApiBindingCmd from './commands/platform-function-api-binding'; import platformFunctionCapabilityBindingCmd from './commands/platform-function-capability-binding'; import platformFunctionDefinitionCmd from './commands/platform-function-definition'; @@ -40,18 +58,36 @@ import platformFunctionDeploymentEventCmd from './commands/platform-function-dep import platformFunctionExecutionLogCmd from './commands/platform-function-execution-log'; import platformFunctionInvocationAttemptCmd from './commands/platform-function-invocation-attempt'; import platformFunctionInvocationCmd from './commands/platform-function-invocation'; +import platformImageCmd from './commands/platform-image'; +import platformImageGrantCmd from './commands/platform-image-grant'; import platformInfraCommitCmd from './commands/platform-infra-commit'; import platformInfraGetAllTreeNodesRecordCmd from './commands/platform-infra-get-all-tree-nodes-record'; import platformInfraObjectCmd from './commands/platform-infra-object'; import platformInfraRefCmd from './commands/platform-infra-ref'; import platformInfraStoreCmd from './commands/platform-infra-store'; +import platformK8sResourceKindCmd from './commands/platform-k-8-s-resource-kind'; +import platformK8sSpecRuleCmd from './commands/platform-k-8-s-spec-rule'; import platformNamespaceCmd from './commands/platform-namespace'; import platformNamespaceEventCmd from './commands/platform-namespace-event'; +import platformProposalCommentCmd from './commands/platform-proposal-comment'; +import platformProposalCmd from './commands/platform-proposal'; +import platformProposalFileViewCmd from './commands/platform-proposal-file-view'; +import platformProposalReactionCmd from './commands/platform-proposal-reaction'; +import platformProposalReviewCmd from './commands/platform-proposal-review'; +import platformProposalsChunkCmd from './commands/platform-proposals-chunk'; +import platformRegistryBindingCmd from './commands/platform-registry-binding'; +import platformRegistryCmd from './commands/platform-registry'; +import platformRegistryGrantCmd from './commands/platform-registry-grant'; +import platformRepositoryCmd from './commands/platform-repository'; +import platformRepositoryEventCmd from './commands/platform-repository-event'; +import platformRepositoryRequiredCheckCmd from './commands/platform-repository-required-check'; +import platformRepositoryWorkflowCmd from './commands/platform-repository-workflow'; import platformResourceCmd from './commands/platform-resource'; import platformResourceDeclaredCapacityCmd from './commands/platform-resource-declared-capacity'; import platformResourceDefinitionCmd from './commands/platform-resource-definition'; import platformResourceEventCmd from './commands/platform-resource-event'; import platformResourceInstallationCmd from './commands/platform-resource-installation'; +import platformResourceObservedStorageCmd from './commands/platform-resource-observed-storage'; import platformResourceStatusCheckCmd from './commands/platform-resource-status-check'; import platformResourceUsageLogCmd from './commands/platform-resource-usage-log'; import platformResourceUsageSummaryCmd from './commands/platform-resource-usage-summary'; @@ -61,11 +97,25 @@ import platformResourcesRequirementsStateCmd from './commands/platform-resources import platformResourcesResolvedRequirementCmd from './commands/platform-resources-resolved-requirement'; import platformWebhookEndpointCmd from './commands/platform-webhook-endpoint'; import platformWebhookEventCmd from './commands/platform-webhook-event'; +import proposalCommentCmd from './commands/proposal-comment'; +import proposalCmd from './commands/proposal'; +import proposalFileViewCmd from './commands/proposal-file-view'; +import proposalReactionCmd from './commands/proposal-reaction'; +import proposalReviewCmd from './commands/proposal-review'; +import proposalsChunkCmd from './commands/proposals-chunk'; +import registryBindingCmd from './commands/registry-binding'; +import registryCmd from './commands/registry'; +import registryGrantCmd from './commands/registry-grant'; +import repositoryCmd from './commands/repository'; +import repositoryEventCmd from './commands/repository-event'; +import repositoryRequiredCheckCmd from './commands/repository-required-check'; +import repositoryWorkflowCmd from './commands/repository-workflow'; import resourceCmd from './commands/resource'; import resourceDeclaredCapacityCmd from './commands/resource-declared-capacity'; import resourceDefinitionCmd from './commands/resource-definition'; import resourceEventCmd from './commands/resource-event'; import resourceInstallationCmd from './commands/resource-installation'; +import resourceObservedStorageCmd from './commands/resource-observed-storage'; import resourceStatusCheckCmd from './commands/resource-status-check'; import resourceUsageLogCmd from './commands/resource-usage-log'; import resourceUsageSummaryCmd from './commands/resource-usage-summary'; @@ -75,22 +125,51 @@ import resourcesRequirementsStateCmd from './commands/resources-requirements-sta import resourcesResolvedRequirementCmd from './commands/resources-resolved-requirement'; import webhookEndpointCmd from './commands/webhook-endpoint'; import webhookEventCmd from './commands/webhook-event'; +import databaseReadFunctionGraphCmd from './commands/database-read-function-graph'; import readFunctionGraphCmd from './commands/read-function-graph'; import addEdgeCmd from './commands/add-edge'; import addEdgeAndSaveCmd from './commands/add-edge-and-save'; import addNodeCmd from './commands/add-node'; import addNodeAndSaveCmd from './commands/add-node-and-save'; +import approveNodeCmd from './commands/approve-node'; import copyGraphCmd from './commands/copy-graph'; +import databaseAddEdgeCmd from './commands/database-add-edge'; +import databaseAddEdgeAndSaveCmd from './commands/database-add-edge-and-save'; +import databaseAddNodeCmd from './commands/database-add-node'; +import databaseAddNodeAndSaveCmd from './commands/database-add-node-and-save'; +import databaseApproveNodeCmd from './commands/database-approve-node'; +import databaseCopyGraphCmd from './commands/database-copy-graph'; +import databaseCreateFunctionGraphCmd from './commands/database-create-function-graph'; +import databaseGraphInitEmptyRepoCmd from './commands/database-graph-init-empty-repo'; +import databaseGraphInsertNodeAtPathCmd from './commands/database-graph-insert-node-at-path'; +import databaseGraphInsertNodesAtPathsCmd from './commands/database-graph-insert-nodes-at-paths'; +import databaseGraphSetAndCommitCmd from './commands/database-graph-set-and-commit'; +import databaseGraphSetDataAtPathCmd from './commands/database-graph-set-data-at-path'; +import databaseGraphSetManyAndCommitCmd from './commands/database-graph-set-many-and-commit'; +import databaseImportDefinitionsCmd from './commands/database-import-definitions'; +import databaseImportGraphJsonCmd from './commands/database-import-graph-json'; +import databaseSaveGraphCmd from './commands/database-save-graph'; +import databaseStartExecutionCmd from './commands/database-start-execution'; +import databaseValidateFunctionGraphCmd from './commands/database-validate-function-graph'; +import functionInvocationsCreateSyncCmd from './commands/function-invocations-create-sync'; 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 platformFunctionInvocationsCreateSyncCmd from './commands/platform-function-invocations-create-sync'; 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 +180,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 +195,19 @@ const createCommandMap: () => Record< > = () => ({ context: contextCmd, auth: authCmd, + build: buildCmd, + 'build-step': buildStepCmd, + 'builder-binding': builderBindingCmd, + 'content-preset': contentPresetCmd, + 'database-function-graph': databaseFunctionGraphCmd, + 'database-function-graph-execution': databaseFunctionGraphExecutionCmd, + 'database-function-graph-execution-node-state': databaseFunctionGraphExecutionNodeStateCmd, + 'database-function-graph-execution-output': databaseFunctionGraphExecutionOutputCmd, + 'database-graph-commit': databaseGraphCommitCmd, + 'database-graph-get-all-tree-nodes-record': databaseGraphGetAllTreeNodesRecordCmd, + 'database-graph-object': databaseGraphObjectCmd, + 'database-graph-ref': databaseGraphRefCmd, + 'database-graph-store': databaseGraphStoreCmd, 'db-preset': dbPresetCmd, 'function-api-binding': functionApiBindingCmd, 'function-capability-binding': functionCapabilityBindingCmd, @@ -132,6 +226,8 @@ const createCommandMap: () => Record< 'function-invocation-attempt': functionInvocationAttemptCmd, 'function-invocation': functionInvocationCmd, 'get-all-tree-nodes-record': getAllTreeNodesRecordCmd, + image: imageCmd, + 'image-grant': imageGrantCmd, 'infra-commit': infraCommitCmd, 'infra-get-all-tree-nodes-record': infraGetAllTreeNodesRecordCmd, 'infra-object': infraObjectCmd, @@ -140,6 +236,9 @@ const createCommandMap: () => Record< 'integration-provider': integrationProviderCmd, namespace: namespaceCmd, 'namespace-event': namespaceEventCmd, + 'platform-build': platformBuildCmd, + 'platform-build-step': platformBuildStepCmd, + 'platform-builder-binding': platformBuilderBindingCmd, 'platform-function-api-binding': platformFunctionApiBindingCmd, 'platform-function-capability-binding': platformFunctionCapabilityBindingCmd, 'platform-function-definition': platformFunctionDefinitionCmd, @@ -148,18 +247,36 @@ const createCommandMap: () => Record< 'platform-function-execution-log': platformFunctionExecutionLogCmd, 'platform-function-invocation-attempt': platformFunctionInvocationAttemptCmd, 'platform-function-invocation': platformFunctionInvocationCmd, + 'platform-image': platformImageCmd, + 'platform-image-grant': platformImageGrantCmd, 'platform-infra-commit': platformInfraCommitCmd, 'platform-infra-get-all-tree-nodes-record': platformInfraGetAllTreeNodesRecordCmd, 'platform-infra-object': platformInfraObjectCmd, 'platform-infra-ref': platformInfraRefCmd, 'platform-infra-store': platformInfraStoreCmd, + 'platform-k-8-s-resource-kind': platformK8sResourceKindCmd, + 'platform-k-8-s-spec-rule': platformK8sSpecRuleCmd, 'platform-namespace': platformNamespaceCmd, 'platform-namespace-event': platformNamespaceEventCmd, + 'platform-proposal-comment': platformProposalCommentCmd, + 'platform-proposal': platformProposalCmd, + 'platform-proposal-file-view': platformProposalFileViewCmd, + 'platform-proposal-reaction': platformProposalReactionCmd, + 'platform-proposal-review': platformProposalReviewCmd, + 'platform-proposals-chunk': platformProposalsChunkCmd, + 'platform-registry-binding': platformRegistryBindingCmd, + 'platform-registry': platformRegistryCmd, + 'platform-registry-grant': platformRegistryGrantCmd, + 'platform-repository': platformRepositoryCmd, + 'platform-repository-event': platformRepositoryEventCmd, + 'platform-repository-required-check': platformRepositoryRequiredCheckCmd, + 'platform-repository-workflow': platformRepositoryWorkflowCmd, 'platform-resource': platformResourceCmd, 'platform-resource-declared-capacity': platformResourceDeclaredCapacityCmd, 'platform-resource-definition': platformResourceDefinitionCmd, 'platform-resource-event': platformResourceEventCmd, 'platform-resource-installation': platformResourceInstallationCmd, + 'platform-resource-observed-storage': platformResourceObservedStorageCmd, 'platform-resource-status-check': platformResourceStatusCheckCmd, 'platform-resource-usage-log': platformResourceUsageLogCmd, 'platform-resource-usage-summary': platformResourceUsageSummaryCmd, @@ -169,11 +286,25 @@ const createCommandMap: () => Record< 'platform-resources-resolved-requirement': platformResourcesResolvedRequirementCmd, 'platform-webhook-endpoint': platformWebhookEndpointCmd, 'platform-webhook-event': platformWebhookEventCmd, + 'proposal-comment': proposalCommentCmd, + proposal: proposalCmd, + 'proposal-file-view': proposalFileViewCmd, + 'proposal-reaction': proposalReactionCmd, + 'proposal-review': proposalReviewCmd, + 'proposals-chunk': proposalsChunkCmd, + 'registry-binding': registryBindingCmd, + registry: registryCmd, + 'registry-grant': registryGrantCmd, + repository: repositoryCmd, + 'repository-event': repositoryEventCmd, + 'repository-required-check': repositoryRequiredCheckCmd, + 'repository-workflow': repositoryWorkflowCmd, resource: resourceCmd, 'resource-declared-capacity': resourceDeclaredCapacityCmd, 'resource-definition': resourceDefinitionCmd, 'resource-event': resourceEventCmd, 'resource-installation': resourceInstallationCmd, + 'resource-observed-storage': resourceObservedStorageCmd, 'resource-status-check': resourceStatusCheckCmd, 'resource-usage-log': resourceUsageLogCmd, 'resource-usage-summary': resourceUsageSummaryCmd, @@ -183,22 +314,51 @@ const createCommandMap: () => Record< 'resources-resolved-requirement': resourcesResolvedRequirementCmd, 'webhook-endpoint': webhookEndpointCmd, 'webhook-event': webhookEventCmd, + 'database-read-function-graph': databaseReadFunctionGraphCmd, 'read-function-graph': readFunctionGraphCmd, 'add-edge': addEdgeCmd, 'add-edge-and-save': addEdgeAndSaveCmd, 'add-node': addNodeCmd, 'add-node-and-save': addNodeAndSaveCmd, + 'approve-node': approveNodeCmd, 'copy-graph': copyGraphCmd, + 'database-add-edge': databaseAddEdgeCmd, + 'database-add-edge-and-save': databaseAddEdgeAndSaveCmd, + 'database-add-node': databaseAddNodeCmd, + 'database-add-node-and-save': databaseAddNodeAndSaveCmd, + 'database-approve-node': databaseApproveNodeCmd, + 'database-copy-graph': databaseCopyGraphCmd, + 'database-create-function-graph': databaseCreateFunctionGraphCmd, + 'database-graph-init-empty-repo': databaseGraphInitEmptyRepoCmd, + 'database-graph-insert-node-at-path': databaseGraphInsertNodeAtPathCmd, + 'database-graph-insert-nodes-at-paths': databaseGraphInsertNodesAtPathsCmd, + 'database-graph-set-and-commit': databaseGraphSetAndCommitCmd, + 'database-graph-set-data-at-path': databaseGraphSetDataAtPathCmd, + 'database-graph-set-many-and-commit': databaseGraphSetManyAndCommitCmd, + 'database-import-definitions': databaseImportDefinitionsCmd, + 'database-import-graph-json': databaseImportGraphJsonCmd, + 'database-save-graph': databaseSaveGraphCmd, + 'database-start-execution': databaseStartExecutionCmd, + 'database-validate-function-graph': databaseValidateFunctionGraphCmd, + 'function-invocations-create-sync': functionInvocationsCreateSyncCmd, 'import-definitions': importDefinitionsCmd, '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-function-invocations-create-sync': platformFunctionInvocationsCreateSyncCmd, '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 +369,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 build build CRUD operations\n build-step buildStep CRUD operations\n builder-binding builderBinding CRUD operations\n content-preset contentPreset CRUD operations\n database-function-graph databaseFunctionGraph CRUD operations\n database-function-graph-execution databaseFunctionGraphExecution CRUD operations\n database-function-graph-execution-node-state databaseFunctionGraphExecutionNodeState CRUD operations\n database-function-graph-execution-output databaseFunctionGraphExecutionOutput CRUD operations\n database-graph-commit databaseGraphCommit CRUD operations\n database-graph-get-all-tree-nodes-record databaseGraphGetAllTreeNodesRecord CRUD operations\n database-graph-object databaseGraphObject CRUD operations\n database-graph-ref databaseGraphRef CRUD operations\n database-graph-store databaseGraphStore 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 image image CRUD operations\n image-grant imageGrant 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-build platformBuild CRUD operations\n platform-build-step platformBuildStep CRUD operations\n platform-builder-binding platformBuilderBinding 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-image platformImage CRUD operations\n platform-image-grant platformImageGrant 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-k-8-s-resource-kind platformK8sResourceKind CRUD operations\n platform-k-8-s-spec-rule platformK8sSpecRule CRUD operations\n platform-namespace platformNamespace CRUD operations\n platform-namespace-event platformNamespaceEvent CRUD operations\n platform-proposal-comment platformProposalComment CRUD operations\n platform-proposal platformProposal CRUD operations\n platform-proposal-file-view platformProposalFileView CRUD operations\n platform-proposal-reaction platformProposalReaction CRUD operations\n platform-proposal-review platformProposalReview CRUD operations\n platform-proposals-chunk platformProposalsChunk CRUD operations\n platform-registry-binding platformRegistryBinding CRUD operations\n platform-registry platformRegistry CRUD operations\n platform-registry-grant platformRegistryGrant CRUD operations\n platform-repository platformRepository CRUD operations\n platform-repository-event platformRepositoryEvent CRUD operations\n platform-repository-required-check platformRepositoryRequiredCheck CRUD operations\n platform-repository-workflow platformRepositoryWorkflow 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-observed-storage platformResourceObservedStorage 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 proposal-comment proposalComment CRUD operations\n proposal proposal CRUD operations\n proposal-file-view proposalFileView CRUD operations\n proposal-reaction proposalReaction CRUD operations\n proposal-review proposalReview CRUD operations\n proposals-chunk proposalsChunk CRUD operations\n registry-binding registryBinding CRUD operations\n registry registry CRUD operations\n registry-grant registryGrant CRUD operations\n repository repository CRUD operations\n repository-event repositoryEvent CRUD operations\n repository-required-check repositoryRequiredCheck CRUD operations\n repository-workflow repositoryWorkflow 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-observed-storage resourceObservedStorage 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 database-read-function-graph databaseReadFunctionGraph\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 approve-node approveNode\n copy-graph copyGraph\n database-add-edge databaseAddEdge\n database-add-edge-and-save databaseAddEdgeAndSave\n database-add-node databaseAddNode\n database-add-node-and-save databaseAddNodeAndSave\n database-approve-node databaseApproveNode\n database-copy-graph databaseCopyGraph\n database-create-function-graph databaseCreateFunctionGraph\n database-graph-init-empty-repo databaseGraphInitEmptyRepo\n database-graph-insert-node-at-path databaseGraphInsertNodeAtPath\n database-graph-insert-nodes-at-paths databaseGraphInsertNodesAtPaths\n database-graph-set-and-commit databaseGraphSetAndCommit\n database-graph-set-data-at-path databaseGraphSetDataAtPath\n database-graph-set-many-and-commit databaseGraphSetManyAndCommit\n database-import-definitions databaseImportDefinitions\n database-import-graph-json databaseImportGraphJson\n database-save-graph databaseSaveGraph\n database-start-execution databaseStartExecution\n database-validate-function-graph databaseValidateFunctionGraph\n function-invocations-create-sync functionInvocationsCreateSync\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-function-invocations-create-sync platformFunctionInvocationsCreateSync\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 Reconcile an S3 bucket for a logical bucket in the database.\nReads the bucket config via RLS, then enqueues the same\nstorage:provision_bucket job used by the INSERT trigger. This is\nidempotent for an already-reconciled bucket; enqueue failures become\nGraphQL errors.\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/compute/cli/commands/approve-node.ts b/sdk/constructive-cli/src/compute/cli/commands/approve-node.ts new file mode 100644 index 0000000000..cbfc87c67f --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/approve-node.ts @@ -0,0 +1,51 @@ +/** + * CLI command for mutation approveNode + * @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 { ApproveNodeVariables } from '../../orm/mutation'; +import type { ApproveNodePayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log('approve-node - approveNode\n\nUsage: approve-node [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 + .approveNode( + parsedAnswers as unknown as ApproveNodeVariables, + { + select: selectFields, + } as unknown as { + select: ApproveNodePayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: approveNode'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/compute/cli/commands/build-step.ts b/sdk/constructive-cli/src/compute/cli/commands/build-step.ts new file mode 100644 index 0000000000..b605c15a3f --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/build-step.ts @@ -0,0 +1,556 @@ +/** + * CLI commands for BuildStep + * @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 { + CreateBuildStepInput, + BuildStepPatch, + BuildStepSelect, + BuildStepFilter, + BuildStepOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + buildId: 'uuid', + createdByPrincipal: 'uuid', + databaseId: 'uuid', + exitCode: 'int', + finishedAt: 'string', + id: 'uuid', + kind: 'string', + logBytes: 'int', + logOffset: 'int', + name: 'string', + parentSeq: 'int', + recordedAt: 'string', + seq: 'int', + startedAt: 'string', + status: 'string', + summary: 'json', +}; +const usage = + '\nbuild-step \n\nCommands:\n list List buildStep records\n find-first Find first matching buildStep record\n get Get a buildStep by ID\n create Create a new buildStep\n update Update an existing buildStep\n delete Delete a buildStep\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 = { + buildId: true, + createdByPrincipal: true, + databaseId: true, + exitCode: true, + finishedAt: true, + id: true, + kind: true, + logBytes: true, + logOffset: true, + name: true, + parentSeq: true, + recordedAt: true, + seq: true, + startedAt: true, + status: true, + summary: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: BuildStepSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.buildStep.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 = { + buildId: true, + createdByPrincipal: true, + databaseId: true, + exitCode: true, + finishedAt: true, + id: true, + kind: true, + logBytes: true, + logOffset: true, + name: true, + parentSeq: true, + recordedAt: true, + seq: true, + startedAt: true, + status: true, + summary: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: BuildStepSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.buildStep.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.buildStep + .findOne({ + id: answers.id as string, + select: { + buildId: true, + createdByPrincipal: true, + databaseId: true, + exitCode: true, + finishedAt: true, + id: true, + kind: true, + logBytes: true, + logOffset: true, + name: true, + parentSeq: true, + recordedAt: true, + seq: true, + startedAt: true, + status: true, + summary: 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: 'buildId', + message: 'buildId', + required: true, + }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: true, + }, + { + type: 'text', + name: 'exitCode', + message: 'exitCode', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'finishedAt', + message: 'finishedAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'kind', + message: 'kind', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'logBytes', + message: 'logBytes', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'logOffset', + message: 'logOffset', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'name', + message: 'name', + required: true, + }, + { + type: 'text', + name: 'parentSeq', + message: 'parentSeq', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'recordedAt', + message: 'recordedAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'seq', + message: 'seq', + required: true, + }, + { + type: 'text', + name: 'startedAt', + message: 'startedAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'status', + message: 'status', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'summary', + message: 'summary', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as CreateBuildStepInput['buildStep']; + const client = getClient(); + const result = await client.buildStep + .create({ + data: { + buildId: cleanedData.buildId, + createdByPrincipal: cleanedData.createdByPrincipal, + databaseId: cleanedData.databaseId, + exitCode: cleanedData.exitCode, + finishedAt: cleanedData.finishedAt, + kind: cleanedData.kind, + logBytes: cleanedData.logBytes, + logOffset: cleanedData.logOffset, + name: cleanedData.name, + parentSeq: cleanedData.parentSeq, + recordedAt: cleanedData.recordedAt, + seq: cleanedData.seq, + startedAt: cleanedData.startedAt, + status: cleanedData.status, + summary: cleanedData.summary, + }, + select: { + buildId: true, + createdByPrincipal: true, + databaseId: true, + exitCode: true, + finishedAt: true, + id: true, + kind: true, + logBytes: true, + logOffset: true, + name: true, + parentSeq: true, + recordedAt: true, + seq: true, + startedAt: true, + status: true, + summary: 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: 'recordedAt', + message: 'recordedAt', + required: true, + }, + { + type: 'text', + name: 'buildId', + message: 'buildId', + required: false, + }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: false, + }, + { + type: 'text', + name: 'exitCode', + message: 'exitCode', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'finishedAt', + message: 'finishedAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'kind', + message: 'kind', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'logBytes', + message: 'logBytes', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'logOffset', + message: 'logOffset', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'name', + message: 'name', + required: false, + }, + { + type: 'text', + name: 'parentSeq', + message: 'parentSeq', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'seq', + message: 'seq', + required: false, + }, + { + type: 'text', + name: 'startedAt', + message: 'startedAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'status', + message: 'status', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'summary', + message: 'summary', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as BuildStepPatch; + const client = getClient(); + const result = await client.buildStep + .update({ + where: { + id: answers.id as string, + recordedAt: answers.recordedAt as string, + }, + data: { + buildId: cleanedData.buildId, + createdByPrincipal: cleanedData.createdByPrincipal, + databaseId: cleanedData.databaseId, + exitCode: cleanedData.exitCode, + finishedAt: cleanedData.finishedAt, + kind: cleanedData.kind, + logBytes: cleanedData.logBytes, + logOffset: cleanedData.logOffset, + name: cleanedData.name, + parentSeq: cleanedData.parentSeq, + seq: cleanedData.seq, + startedAt: cleanedData.startedAt, + status: cleanedData.status, + summary: cleanedData.summary, + }, + select: { + buildId: true, + createdByPrincipal: true, + databaseId: true, + exitCode: true, + finishedAt: true, + id: true, + kind: true, + logBytes: true, + logOffset: true, + name: true, + parentSeq: true, + recordedAt: true, + seq: true, + startedAt: true, + status: true, + summary: 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, + }, + { + type: 'text', + name: 'recordedAt', + message: 'recordedAt', + required: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const client = getClient(); + const result = await client.buildStep + .delete({ + where: { + id: answers.id as string, + recordedAt: answers.recordedAt 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/compute/cli/commands/build.ts b/sdk/constructive-cli/src/compute/cli/commands/build.ts new file mode 100644 index 0000000000..ce51d7b7bd --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/build.ts @@ -0,0 +1,676 @@ +/** + * CLI commands for Build + * @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 { + CreateBuildInput, + BuildPatch, + BuildSelect, + BuildFilter, + BuildOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + actorId: 'uuid', + attempt: 'int', + commitSha: 'string', + conclusion: 'string', + createdAt: 'string', + createdByPrincipal: 'uuid', + databaseId: 'uuid', + eventId: 'uuid', + finishedAt: 'string', + id: 'uuid', + imageRef: 'string', + jobId: 'int', + logs: 'string', + matrixKey: 'string', + metadata: 'json', + proposalId: 'uuid', + ref: 'string', + repositoryId: 'uuid', + startedAt: 'string', + status: 'string', + updatedAt: 'string', + updatedByPrincipal: 'uuid', + workflowId: 'uuid', +}; +const usage = + '\nbuild \n\nCommands:\n list List build records\n find-first Find first matching build record\n get Get a build by ID\n create Create a new build\n update Update an existing build\n delete Delete a build\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 = { + actorId: true, + attempt: true, + commitSha: true, + conclusion: true, + createdAt: true, + createdByPrincipal: true, + databaseId: true, + eventId: true, + finishedAt: true, + id: true, + imageRef: true, + jobId: true, + logs: true, + matrixKey: true, + metadata: true, + proposalId: true, + ref: true, + repositoryId: true, + startedAt: true, + status: true, + updatedAt: true, + updatedByPrincipal: true, + workflowId: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: BuildSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.build.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 = { + actorId: true, + attempt: true, + commitSha: true, + conclusion: true, + createdAt: true, + createdByPrincipal: true, + databaseId: true, + eventId: true, + finishedAt: true, + id: true, + imageRef: true, + jobId: true, + logs: true, + matrixKey: true, + metadata: true, + proposalId: true, + ref: true, + repositoryId: true, + startedAt: true, + status: true, + updatedAt: true, + updatedByPrincipal: true, + workflowId: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: BuildSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.build.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.build + .findOne({ + id: answers.id as string, + select: { + actorId: true, + attempt: true, + commitSha: true, + conclusion: true, + createdAt: true, + createdByPrincipal: true, + databaseId: true, + eventId: true, + finishedAt: true, + id: true, + imageRef: true, + jobId: true, + logs: true, + matrixKey: true, + metadata: true, + proposalId: true, + ref: true, + repositoryId: true, + startedAt: true, + status: true, + updatedAt: true, + updatedByPrincipal: true, + workflowId: 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: 'actorId', + message: 'actorId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'attempt', + message: 'attempt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'commitSha', + message: 'commitSha', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'conclusion', + message: 'conclusion', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: true, + }, + { + type: 'text', + name: 'eventId', + message: 'eventId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'finishedAt', + message: 'finishedAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'imageRef', + message: 'imageRef', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'jobId', + message: 'jobId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'logs', + message: 'logs', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'matrixKey', + message: 'matrixKey', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'metadata', + message: 'metadata', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'proposalId', + message: 'proposalId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'ref', + message: 'ref', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'repositoryId', + message: 'repositoryId', + required: true, + }, + { + type: 'text', + name: 'startedAt', + message: 'startedAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'status', + message: 'status', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'workflowId', + message: 'workflowId', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as CreateBuildInput['build']; + const client = getClient(); + const result = await client.build + .create({ + data: { + actorId: cleanedData.actorId, + attempt: cleanedData.attempt, + commitSha: cleanedData.commitSha, + conclusion: cleanedData.conclusion, + createdByPrincipal: cleanedData.createdByPrincipal, + databaseId: cleanedData.databaseId, + eventId: cleanedData.eventId, + finishedAt: cleanedData.finishedAt, + imageRef: cleanedData.imageRef, + jobId: cleanedData.jobId, + logs: cleanedData.logs, + matrixKey: cleanedData.matrixKey, + metadata: cleanedData.metadata, + proposalId: cleanedData.proposalId, + ref: cleanedData.ref, + repositoryId: cleanedData.repositoryId, + startedAt: cleanedData.startedAt, + status: cleanedData.status, + updatedByPrincipal: cleanedData.updatedByPrincipal, + workflowId: cleanedData.workflowId, + }, + select: { + actorId: true, + attempt: true, + commitSha: true, + conclusion: true, + createdAt: true, + createdByPrincipal: true, + databaseId: true, + eventId: true, + finishedAt: true, + id: true, + imageRef: true, + jobId: true, + logs: true, + matrixKey: true, + metadata: true, + proposalId: true, + ref: true, + repositoryId: true, + startedAt: true, + status: true, + updatedAt: true, + updatedByPrincipal: true, + workflowId: 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: 'actorId', + message: 'actorId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'attempt', + message: 'attempt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'commitSha', + message: 'commitSha', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'conclusion', + message: 'conclusion', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: false, + }, + { + type: 'text', + name: 'eventId', + message: 'eventId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'finishedAt', + message: 'finishedAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'imageRef', + message: 'imageRef', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'jobId', + message: 'jobId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'logs', + message: 'logs', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'matrixKey', + message: 'matrixKey', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'metadata', + message: 'metadata', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'proposalId', + message: 'proposalId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'ref', + message: 'ref', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'repositoryId', + message: 'repositoryId', + required: false, + }, + { + type: 'text', + name: 'startedAt', + message: 'startedAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'status', + message: 'status', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'workflowId', + message: 'workflowId', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as BuildPatch; + const client = getClient(); + const result = await client.build + .update({ + where: { + id: answers.id as string, + }, + data: { + actorId: cleanedData.actorId, + attempt: cleanedData.attempt, + commitSha: cleanedData.commitSha, + conclusion: cleanedData.conclusion, + createdByPrincipal: cleanedData.createdByPrincipal, + databaseId: cleanedData.databaseId, + eventId: cleanedData.eventId, + finishedAt: cleanedData.finishedAt, + imageRef: cleanedData.imageRef, + jobId: cleanedData.jobId, + logs: cleanedData.logs, + matrixKey: cleanedData.matrixKey, + metadata: cleanedData.metadata, + proposalId: cleanedData.proposalId, + ref: cleanedData.ref, + repositoryId: cleanedData.repositoryId, + startedAt: cleanedData.startedAt, + status: cleanedData.status, + updatedByPrincipal: cleanedData.updatedByPrincipal, + workflowId: cleanedData.workflowId, + }, + select: { + actorId: true, + attempt: true, + commitSha: true, + conclusion: true, + createdAt: true, + createdByPrincipal: true, + databaseId: true, + eventId: true, + finishedAt: true, + id: true, + imageRef: true, + jobId: true, + logs: true, + matrixKey: true, + metadata: true, + proposalId: true, + ref: true, + repositoryId: true, + startedAt: true, + status: true, + updatedAt: true, + updatedByPrincipal: true, + workflowId: 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.build + .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/compute/cli/commands/builder-binding.ts b/sdk/constructive-cli/src/compute/cli/commands/builder-binding.ts new file mode 100644 index 0000000000..2e0f437fce --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/builder-binding.ts @@ -0,0 +1,501 @@ +/** + * CLI commands for BuilderBinding + * @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 { + CreateBuilderBindingInput, + BuilderBindingPatch, + BuilderBindingSelect, + BuilderBindingFilter, + BuilderBindingOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + createdAt: 'string', + createdBy: 'uuid', + createdByPrincipal: 'uuid', + databaseId: 'uuid', + id: 'uuid', + installationId: 'uuid', + lastError: 'string', + metadata: 'json', + namespaceId: 'uuid', + observedHost: 'string', + realm: 'string', + status: 'string', + updatedAt: 'string', + updatedBy: 'uuid', + updatedByPrincipal: 'uuid', +}; +const usage = + '\nbuilder-binding \n\nCommands:\n list List builderBinding records\n find-first Find first matching builderBinding record\n get Get a builderBinding by ID\n create Create a new builderBinding\n update Update an existing builderBinding\n delete Delete a builderBinding\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, + createdBy: true, + createdByPrincipal: true, + databaseId: true, + id: true, + installationId: true, + lastError: true, + metadata: true, + namespaceId: true, + observedHost: true, + realm: true, + status: true, + updatedAt: true, + updatedBy: true, + updatedByPrincipal: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: BuilderBindingSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.builderBinding.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, + createdBy: true, + createdByPrincipal: true, + databaseId: true, + id: true, + installationId: true, + lastError: true, + metadata: true, + namespaceId: true, + observedHost: true, + realm: true, + status: true, + updatedAt: true, + updatedBy: true, + updatedByPrincipal: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: BuilderBindingSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.builderBinding.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.builderBinding + .findOne({ + id: answers.id as string, + select: { + createdAt: true, + createdBy: true, + createdByPrincipal: true, + databaseId: true, + id: true, + installationId: true, + lastError: true, + metadata: true, + namespaceId: true, + observedHost: true, + realm: true, + status: true, + updatedAt: true, + updatedBy: true, + updatedByPrincipal: 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: 'createdBy', + message: 'createdBy', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: true, + }, + { + type: 'text', + name: 'installationId', + message: 'installationId', + required: true, + }, + { + type: 'text', + name: 'lastError', + message: 'lastError', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'metadata', + message: 'metadata', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'namespaceId', + message: 'namespaceId', + required: true, + }, + { + type: 'text', + name: 'observedHost', + message: 'observedHost', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'realm', + message: 'realm', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'status', + message: 'status', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'updatedBy', + message: 'updatedBy', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateBuilderBindingInput['builderBinding']; + const client = getClient(); + const result = await client.builderBinding + .create({ + data: { + createdBy: cleanedData.createdBy, + createdByPrincipal: cleanedData.createdByPrincipal, + databaseId: cleanedData.databaseId, + installationId: cleanedData.installationId, + lastError: cleanedData.lastError, + metadata: cleanedData.metadata, + namespaceId: cleanedData.namespaceId, + observedHost: cleanedData.observedHost, + realm: cleanedData.realm, + status: cleanedData.status, + updatedBy: cleanedData.updatedBy, + updatedByPrincipal: cleanedData.updatedByPrincipal, + }, + select: { + createdAt: true, + createdBy: true, + createdByPrincipal: true, + databaseId: true, + id: true, + installationId: true, + lastError: true, + metadata: true, + namespaceId: true, + observedHost: true, + realm: true, + status: true, + updatedAt: true, + updatedBy: true, + updatedByPrincipal: 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: 'createdBy', + message: 'createdBy', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: false, + }, + { + type: 'text', + name: 'installationId', + message: 'installationId', + required: false, + }, + { + type: 'text', + name: 'lastError', + message: 'lastError', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'metadata', + message: 'metadata', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'namespaceId', + message: 'namespaceId', + required: false, + }, + { + type: 'text', + name: 'observedHost', + message: 'observedHost', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'realm', + message: 'realm', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'status', + message: 'status', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'updatedBy', + message: 'updatedBy', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as BuilderBindingPatch; + const client = getClient(); + const result = await client.builderBinding + .update({ + where: { + id: answers.id as string, + }, + data: { + createdBy: cleanedData.createdBy, + createdByPrincipal: cleanedData.createdByPrincipal, + databaseId: cleanedData.databaseId, + installationId: cleanedData.installationId, + lastError: cleanedData.lastError, + metadata: cleanedData.metadata, + namespaceId: cleanedData.namespaceId, + observedHost: cleanedData.observedHost, + realm: cleanedData.realm, + status: cleanedData.status, + updatedBy: cleanedData.updatedBy, + updatedByPrincipal: cleanedData.updatedByPrincipal, + }, + select: { + createdAt: true, + createdBy: true, + createdByPrincipal: true, + databaseId: true, + id: true, + installationId: true, + lastError: true, + metadata: true, + namespaceId: true, + observedHost: true, + realm: true, + status: true, + updatedAt: true, + updatedBy: true, + updatedByPrincipal: 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.builderBinding + .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/compute/cli/commands/content-preset.ts b/sdk/constructive-cli/src/compute/cli/commands/content-preset.ts new file mode 100644 index 0000000000..806af4a770 --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/content-preset.ts @@ -0,0 +1,413 @@ +/** + * CLI commands for ContentPreset + * @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 { + CreateContentPresetInput, + ContentPresetPatch, + ContentPresetSelect, + ContentPresetFilter, + ContentPresetOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + active: 'boolean', + commitId: 'uuid', + createdAt: 'string', + definition: 'json', + description: 'string', + id: 'uuid', + kind: 'string', + label: 'string', + slug: 'string', + storeId: 'uuid', + updatedAt: 'string', +}; +const usage = + '\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, + _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 = { + active: true, + commitId: true, + createdAt: true, + definition: true, + description: true, + id: true, + kind: true, + label: true, + slug: true, + storeId: true, + updatedAt: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: ContentPresetSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.contentPreset.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 = { + active: true, + commitId: true, + createdAt: true, + definition: true, + description: true, + id: true, + kind: true, + label: true, + slug: true, + storeId: true, + updatedAt: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: ContentPresetSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.contentPreset.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.contentPreset + .findOne({ + id: answers.id as string, + select: { + active: true, + commitId: true, + createdAt: true, + definition: true, + description: true, + id: true, + kind: true, + label: true, + slug: true, + storeId: 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: 'boolean', + name: 'active', + message: 'active', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'commitId', + message: 'commitId', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'definition', + message: 'definition', + required: true, + }, + { + type: 'text', + name: 'description', + message: 'description', + required: false, + skipPrompt: true, + }, + { + type: 'text', + 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, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateContentPresetInput['contentPreset']; + const client = getClient(); + const result = await client.contentPreset + .create({ + data: { + active: cleanedData.active, + commitId: cleanedData.commitId, + definition: cleanedData.definition, + description: cleanedData.description, + kind: cleanedData.kind, + label: cleanedData.label, + slug: cleanedData.slug, + storeId: cleanedData.storeId, + }, + select: { + active: true, + commitId: true, + createdAt: true, + definition: true, + description: true, + id: true, + kind: true, + label: true, + slug: true, + storeId: 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: 'boolean', + name: 'active', + message: 'active', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'commitId', + message: 'commitId', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'definition', + message: 'definition', + required: false, + }, + { + type: 'text', + name: 'description', + message: 'description', + required: false, + skipPrompt: true, + }, + { + type: 'text', + 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 ContentPresetPatch; + const client = getClient(); + const result = await client.contentPreset + .update({ + where: { + id: answers.id as string, + }, + data: { + active: cleanedData.active, + commitId: cleanedData.commitId, + definition: cleanedData.definition, + description: cleanedData.description, + kind: cleanedData.kind, + label: cleanedData.label, + slug: cleanedData.slug, + storeId: cleanedData.storeId, + }, + select: { + active: true, + commitId: true, + createdAt: true, + definition: true, + description: true, + id: true, + kind: true, + label: true, + slug: true, + storeId: 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.contentPreset + .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/compute/cli/commands/database-add-edge-and-save.ts b/sdk/constructive-cli/src/compute/cli/commands/database-add-edge-and-save.ts new file mode 100644 index 0000000000..bb711be3e0 --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/database-add-edge-and-save.ts @@ -0,0 +1,53 @@ +/** + * CLI command for mutation databaseAddEdgeAndSave + * @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 { DatabaseAddEdgeAndSaveVariables } from '../../orm/mutation'; +import type { DatabaseAddEdgeAndSavePayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'database-add-edge-and-save - databaseAddEdgeAndSave\n\nUsage: database-add-edge-and-save [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 + .databaseAddEdgeAndSave( + parsedAnswers as unknown as DatabaseAddEdgeAndSaveVariables, + { + select: selectFields, + } as unknown as { + select: DatabaseAddEdgeAndSavePayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: databaseAddEdgeAndSave'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/compute/cli/commands/database-add-edge.ts b/sdk/constructive-cli/src/compute/cli/commands/database-add-edge.ts new file mode 100644 index 0000000000..1f20e08ca5 --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/database-add-edge.ts @@ -0,0 +1,51 @@ +/** + * CLI command for mutation databaseAddEdge + * @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 { DatabaseAddEdgeVariables } from '../../orm/mutation'; +import type { DatabaseAddEdgePayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log('database-add-edge - databaseAddEdge\n\nUsage: database-add-edge [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 + .databaseAddEdge( + parsedAnswers as unknown as DatabaseAddEdgeVariables, + { + select: selectFields, + } as unknown as { + select: DatabaseAddEdgePayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: databaseAddEdge'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/compute/cli/commands/database-add-node-and-save.ts b/sdk/constructive-cli/src/compute/cli/commands/database-add-node-and-save.ts new file mode 100644 index 0000000000..c82573d434 --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/database-add-node-and-save.ts @@ -0,0 +1,53 @@ +/** + * CLI command for mutation databaseAddNodeAndSave + * @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 { DatabaseAddNodeAndSaveVariables } from '../../orm/mutation'; +import type { DatabaseAddNodeAndSavePayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'database-add-node-and-save - databaseAddNodeAndSave\n\nUsage: database-add-node-and-save [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 + .databaseAddNodeAndSave( + parsedAnswers as unknown as DatabaseAddNodeAndSaveVariables, + { + select: selectFields, + } as unknown as { + select: DatabaseAddNodeAndSavePayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: databaseAddNodeAndSave'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/compute/cli/commands/database-add-node.ts b/sdk/constructive-cli/src/compute/cli/commands/database-add-node.ts new file mode 100644 index 0000000000..8925d25ff9 --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/database-add-node.ts @@ -0,0 +1,51 @@ +/** + * CLI command for mutation databaseAddNode + * @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 { DatabaseAddNodeVariables } from '../../orm/mutation'; +import type { DatabaseAddNodePayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log('database-add-node - databaseAddNode\n\nUsage: database-add-node [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 + .databaseAddNode( + parsedAnswers as unknown as DatabaseAddNodeVariables, + { + select: selectFields, + } as unknown as { + select: DatabaseAddNodePayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: databaseAddNode'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/compute/cli/commands/database-approve-node.ts b/sdk/constructive-cli/src/compute/cli/commands/database-approve-node.ts new file mode 100644 index 0000000000..4ddb9f9ac6 --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/database-approve-node.ts @@ -0,0 +1,53 @@ +/** + * CLI command for mutation databaseApproveNode + * @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 { DatabaseApproveNodeVariables } from '../../orm/mutation'; +import type { DatabaseApproveNodePayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'database-approve-node - databaseApproveNode\n\nUsage: database-approve-node [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 + .databaseApproveNode( + parsedAnswers as unknown as DatabaseApproveNodeVariables, + { + select: selectFields, + } as unknown as { + select: DatabaseApproveNodePayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: databaseApproveNode'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/compute/cli/commands/database-copy-graph.ts b/sdk/constructive-cli/src/compute/cli/commands/database-copy-graph.ts new file mode 100644 index 0000000000..fc934d68e9 --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/database-copy-graph.ts @@ -0,0 +1,53 @@ +/** + * CLI command for mutation databaseCopyGraph + * @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 { DatabaseCopyGraphVariables } from '../../orm/mutation'; +import type { DatabaseCopyGraphPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'database-copy-graph - databaseCopyGraph\n\nUsage: database-copy-graph [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 + .databaseCopyGraph( + parsedAnswers as unknown as DatabaseCopyGraphVariables, + { + select: selectFields, + } as unknown as { + select: DatabaseCopyGraphPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: databaseCopyGraph'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/compute/cli/commands/database-create-function-graph.ts b/sdk/constructive-cli/src/compute/cli/commands/database-create-function-graph.ts new file mode 100644 index 0000000000..c28c2e55cf --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/database-create-function-graph.ts @@ -0,0 +1,53 @@ +/** + * CLI command for mutation databaseCreateFunctionGraph + * @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 { DatabaseCreateFunctionGraphVariables } from '../../orm/mutation'; +import type { DatabaseCreateFunctionGraphPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'database-create-function-graph - databaseCreateFunctionGraph\n\nUsage: database-create-function-graph [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 + .databaseCreateFunctionGraph( + parsedAnswers as unknown as DatabaseCreateFunctionGraphVariables, + { + select: selectFields, + } as unknown as { + select: DatabaseCreateFunctionGraphPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: databaseCreateFunctionGraph'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/compute/cli/commands/database-function-graph-execution-node-state.ts b/sdk/constructive-cli/src/compute/cli/commands/database-function-graph-execution-node-state.ts new file mode 100644 index 0000000000..4235a8dd75 --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/database-function-graph-execution-node-state.ts @@ -0,0 +1,678 @@ +/** + * CLI commands for DatabaseFunctionGraphExecutionNodeState + * @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 { + CreateDatabaseFunctionGraphExecutionNodeStateInput, + DatabaseFunctionGraphExecutionNodeStatePatch, + DatabaseFunctionGraphExecutionNodeStateSelect, + DatabaseFunctionGraphExecutionNodeStateFilter, + DatabaseFunctionGraphExecutionNodeStateOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + callbackInputs: 'json', + callbackMeta: 'json', + callbackTokenHash: 'string', + completedAt: 'string', + createdAt: 'string', + databaseId: 'uuid', + errorCode: 'string', + errorMessage: 'string', + executionId: 'uuid', + expiryDefaultOutput: 'json', + expiryEscalatedAt: 'string', + expiryPolicy: 'string', + id: 'uuid', + nodeName: 'string', + nodePath: 'string', + outputId: 'uuid', + startedAt: 'string', + status: 'string', + waitingDeadlineAt: 'string', + waitingOn: 'string', + waitingSince: 'string', +}; +const usage = + '\ndatabase-function-graph-execution-node-state \n\nCommands:\n list List databaseFunctionGraphExecutionNodeState records\n find-first Find first matching databaseFunctionGraphExecutionNodeState record\n get Get a databaseFunctionGraphExecutionNodeState by ID\n create Create a new databaseFunctionGraphExecutionNodeState\n update Update an existing databaseFunctionGraphExecutionNodeState\n delete Delete a databaseFunctionGraphExecutionNodeState\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 = { + callbackInputs: true, + callbackMeta: true, + callbackTokenHash: true, + completedAt: true, + createdAt: true, + databaseId: true, + errorCode: true, + errorMessage: true, + executionId: true, + expiryDefaultOutput: true, + expiryEscalatedAt: true, + expiryPolicy: true, + id: true, + nodeName: true, + nodePath: true, + outputId: true, + startedAt: true, + status: true, + waitingDeadlineAt: true, + waitingOn: true, + waitingSince: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs< + DatabaseFunctionGraphExecutionNodeStateSelect, + DatabaseFunctionGraphExecutionNodeStateFilter, + DatabaseFunctionGraphExecutionNodeStateOrderBy + > & { + select: DatabaseFunctionGraphExecutionNodeStateSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.databaseFunctionGraphExecutionNodeState + .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 = { + callbackInputs: true, + callbackMeta: true, + callbackTokenHash: true, + completedAt: true, + createdAt: true, + databaseId: true, + errorCode: true, + errorMessage: true, + executionId: true, + expiryDefaultOutput: true, + expiryEscalatedAt: true, + expiryPolicy: true, + id: true, + nodeName: true, + nodePath: true, + outputId: true, + startedAt: true, + status: true, + waitingDeadlineAt: true, + waitingOn: true, + waitingSince: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs< + DatabaseFunctionGraphExecutionNodeStateSelect, + DatabaseFunctionGraphExecutionNodeStateFilter, + DatabaseFunctionGraphExecutionNodeStateOrderBy + > & { + select: DatabaseFunctionGraphExecutionNodeStateSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.databaseFunctionGraphExecutionNodeState + .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.databaseFunctionGraphExecutionNodeState + .findOne({ + id: answers.id as string, + select: { + callbackInputs: true, + callbackMeta: true, + callbackTokenHash: true, + completedAt: true, + createdAt: true, + databaseId: true, + errorCode: true, + errorMessage: true, + executionId: true, + expiryDefaultOutput: true, + expiryEscalatedAt: true, + expiryPolicy: true, + id: true, + nodeName: true, + nodePath: true, + outputId: true, + startedAt: true, + status: true, + waitingDeadlineAt: true, + waitingOn: true, + waitingSince: 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: 'json', + name: 'callbackInputs', + message: 'callbackInputs', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'callbackMeta', + message: 'callbackMeta', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'callbackTokenHash', + message: 'callbackTokenHash', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'completedAt', + message: 'completedAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: true, + }, + { + type: 'text', + name: 'errorCode', + message: 'errorCode', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'errorMessage', + message: 'errorMessage', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'executionId', + message: 'executionId', + required: true, + }, + { + type: 'json', + name: 'expiryDefaultOutput', + message: 'expiryDefaultOutput', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'expiryEscalatedAt', + message: 'expiryEscalatedAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'expiryPolicy', + message: 'expiryPolicy', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'nodeName', + message: 'nodeName', + required: true, + }, + { + type: 'text', + name: 'nodePath', + message: 'nodePath', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'outputId', + message: 'outputId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'startedAt', + message: 'startedAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'status', + message: 'status', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'waitingDeadlineAt', + message: 'waitingDeadlineAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'waitingOn', + message: 'waitingOn', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'waitingSince', + message: 'waitingSince', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateDatabaseFunctionGraphExecutionNodeStateInput['databaseFunctionGraphExecutionNodeState']; + const client = getClient(); + const result = await client.databaseFunctionGraphExecutionNodeState + .create({ + data: { + callbackInputs: cleanedData.callbackInputs, + callbackMeta: cleanedData.callbackMeta, + callbackTokenHash: cleanedData.callbackTokenHash, + completedAt: cleanedData.completedAt, + databaseId: cleanedData.databaseId, + errorCode: cleanedData.errorCode, + errorMessage: cleanedData.errorMessage, + executionId: cleanedData.executionId, + expiryDefaultOutput: cleanedData.expiryDefaultOutput, + expiryEscalatedAt: cleanedData.expiryEscalatedAt, + expiryPolicy: cleanedData.expiryPolicy, + nodeName: cleanedData.nodeName, + nodePath: cleanedData.nodePath, + outputId: cleanedData.outputId, + startedAt: cleanedData.startedAt, + status: cleanedData.status, + waitingDeadlineAt: cleanedData.waitingDeadlineAt, + waitingOn: cleanedData.waitingOn, + waitingSince: cleanedData.waitingSince, + }, + select: { + callbackInputs: true, + callbackMeta: true, + callbackTokenHash: true, + completedAt: true, + createdAt: true, + databaseId: true, + errorCode: true, + errorMessage: true, + executionId: true, + expiryDefaultOutput: true, + expiryEscalatedAt: true, + expiryPolicy: true, + id: true, + nodeName: true, + nodePath: true, + outputId: true, + startedAt: true, + status: true, + waitingDeadlineAt: true, + waitingOn: true, + waitingSince: 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: 'createdAt', + message: 'createdAt', + required: true, + }, + { + type: 'json', + name: 'callbackInputs', + message: 'callbackInputs', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'callbackMeta', + message: 'callbackMeta', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'callbackTokenHash', + message: 'callbackTokenHash', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'completedAt', + message: 'completedAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: false, + }, + { + type: 'text', + name: 'errorCode', + message: 'errorCode', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'errorMessage', + message: 'errorMessage', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'executionId', + message: 'executionId', + required: false, + }, + { + type: 'json', + name: 'expiryDefaultOutput', + message: 'expiryDefaultOutput', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'expiryEscalatedAt', + message: 'expiryEscalatedAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'expiryPolicy', + message: 'expiryPolicy', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'nodeName', + message: 'nodeName', + required: false, + }, + { + type: 'text', + name: 'nodePath', + message: 'nodePath', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'outputId', + message: 'outputId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'startedAt', + message: 'startedAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'status', + message: 'status', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'waitingDeadlineAt', + message: 'waitingDeadlineAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'waitingOn', + message: 'waitingOn', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'waitingSince', + message: 'waitingSince', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as DatabaseFunctionGraphExecutionNodeStatePatch; + const client = getClient(); + const result = await client.databaseFunctionGraphExecutionNodeState + .update({ + where: { + id: answers.id as string, + createdAt: answers.createdAt as string, + }, + data: { + callbackInputs: cleanedData.callbackInputs, + callbackMeta: cleanedData.callbackMeta, + callbackTokenHash: cleanedData.callbackTokenHash, + completedAt: cleanedData.completedAt, + databaseId: cleanedData.databaseId, + errorCode: cleanedData.errorCode, + errorMessage: cleanedData.errorMessage, + executionId: cleanedData.executionId, + expiryDefaultOutput: cleanedData.expiryDefaultOutput, + expiryEscalatedAt: cleanedData.expiryEscalatedAt, + expiryPolicy: cleanedData.expiryPolicy, + nodeName: cleanedData.nodeName, + nodePath: cleanedData.nodePath, + outputId: cleanedData.outputId, + startedAt: cleanedData.startedAt, + status: cleanedData.status, + waitingDeadlineAt: cleanedData.waitingDeadlineAt, + waitingOn: cleanedData.waitingOn, + waitingSince: cleanedData.waitingSince, + }, + select: { + callbackInputs: true, + callbackMeta: true, + callbackTokenHash: true, + completedAt: true, + createdAt: true, + databaseId: true, + errorCode: true, + errorMessage: true, + executionId: true, + expiryDefaultOutput: true, + expiryEscalatedAt: true, + expiryPolicy: true, + id: true, + nodeName: true, + nodePath: true, + outputId: true, + startedAt: true, + status: true, + waitingDeadlineAt: true, + waitingOn: true, + waitingSince: 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, + }, + { + type: 'text', + name: 'createdAt', + message: 'createdAt', + required: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const client = getClient(); + const result = await client.databaseFunctionGraphExecutionNodeState + .delete({ + where: { + id: answers.id as string, + createdAt: answers.createdAt 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/compute/cli/commands/database-function-graph-execution-output.ts b/sdk/constructive-cli/src/compute/cli/commands/database-function-graph-execution-output.ts new file mode 100644 index 0000000000..4f72fa12fa --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/database-function-graph-execution-output.ts @@ -0,0 +1,326 @@ +/** + * CLI commands for DatabaseFunctionGraphExecutionOutput + * @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 { + CreateDatabaseFunctionGraphExecutionOutputInput, + DatabaseFunctionGraphExecutionOutputPatch, + DatabaseFunctionGraphExecutionOutputSelect, + DatabaseFunctionGraphExecutionOutputFilter, + DatabaseFunctionGraphExecutionOutputOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + createdAt: 'string', + data: 'json', + databaseId: 'uuid', + hash: 'string', + id: 'uuid', +}; +const usage = + '\ndatabase-function-graph-execution-output \n\nCommands:\n list List databaseFunctionGraphExecutionOutput records\n find-first Find first matching databaseFunctionGraphExecutionOutput record\n get Get a databaseFunctionGraphExecutionOutput by ID\n create Create a new databaseFunctionGraphExecutionOutput\n update Update an existing databaseFunctionGraphExecutionOutput\n delete Delete a databaseFunctionGraphExecutionOutput\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, + data: true, + databaseId: true, + hash: true, + id: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs< + DatabaseFunctionGraphExecutionOutputSelect, + DatabaseFunctionGraphExecutionOutputFilter, + DatabaseFunctionGraphExecutionOutputOrderBy + > & { + select: DatabaseFunctionGraphExecutionOutputSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.databaseFunctionGraphExecutionOutput + .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, + data: true, + databaseId: true, + hash: true, + id: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs< + DatabaseFunctionGraphExecutionOutputSelect, + DatabaseFunctionGraphExecutionOutputFilter, + DatabaseFunctionGraphExecutionOutputOrderBy + > & { + select: DatabaseFunctionGraphExecutionOutputSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.databaseFunctionGraphExecutionOutput + .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.databaseFunctionGraphExecutionOutput + .findOne({ + id: answers.id as string, + select: { + createdAt: true, + data: true, + databaseId: true, + hash: true, + id: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Record not found.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleCreate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'json', + name: 'data', + message: 'data', + required: true, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: true, + }, + { + type: 'text', + name: 'hash', + message: 'hash', + required: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateDatabaseFunctionGraphExecutionOutputInput['databaseFunctionGraphExecutionOutput']; + const client = getClient(); + const result = await client.databaseFunctionGraphExecutionOutput + .create({ + data: { + data: cleanedData.data, + databaseId: cleanedData.databaseId, + hash: cleanedData.hash, + }, + select: { + createdAt: true, + data: true, + databaseId: true, + hash: true, + id: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to create record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleUpdate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + { + type: 'text', + name: 'createdAt', + message: 'createdAt', + required: true, + }, + { + type: 'json', + name: 'data', + message: 'data', + required: false, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: false, + }, + { + type: 'text', + name: 'hash', + message: 'hash', + required: false, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as DatabaseFunctionGraphExecutionOutputPatch; + const client = getClient(); + const result = await client.databaseFunctionGraphExecutionOutput + .update({ + where: { + id: answers.id as string, + createdAt: answers.createdAt as string, + }, + data: { + data: cleanedData.data, + databaseId: cleanedData.databaseId, + hash: cleanedData.hash, + }, + select: { + createdAt: true, + data: true, + databaseId: true, + hash: true, + id: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to update record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleDelete(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + { + type: 'text', + name: 'createdAt', + message: 'createdAt', + required: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const client = getClient(); + const result = await client.databaseFunctionGraphExecutionOutput + .delete({ + where: { + id: answers.id as string, + createdAt: answers.createdAt 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/compute/cli/commands/database-function-graph-execution.ts b/sdk/constructive-cli/src/compute/cli/commands/database-function-graph-execution.ts new file mode 100644 index 0000000000..523992183f --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/database-function-graph-execution.ts @@ -0,0 +1,923 @@ +/** + * CLI commands for DatabaseFunctionGraphExecution + * @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 { + CreateDatabaseFunctionGraphExecutionInput, + DatabaseFunctionGraphExecutionPatch, + DatabaseFunctionGraphExecutionSelect, + DatabaseFunctionGraphExecutionFilter, + DatabaseFunctionGraphExecutionOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + actorId: 'uuid', + completedAt: 'string', + currentWave: 'int', + databaseId: 'uuid', + definitionsCommitId: 'uuid', + entityId: 'uuid', + entityType: 'string', + errorCode: 'string', + errorMessage: 'string', + executionPlan: 'json', + graphId: 'uuid', + id: 'uuid', + inputPayload: 'json', + invocationCreatedAt: 'string', + invocationId: 'uuid', + lastProgressAt: 'string', + maxPendingJobs: 'int', + maxTicks: 'int', + nodeOutputs: 'json', + organizationId: 'uuid', + outputNames: 'string', + outputNode: 'string', + outputPayload: 'json', + outputPort: 'string', + parentExecutionId: 'uuid', + parentInvocationId: 'uuid', + parentNodeName: 'string', + principalId: 'uuid', + startedAt: 'string', + status: 'string', + tickCount: 'int', + timeoutAt: 'string', +}; +const usage = + '\ndatabase-function-graph-execution \n\nCommands:\n list List databaseFunctionGraphExecution records\n find-first Find first matching databaseFunctionGraphExecution record\n get Get a databaseFunctionGraphExecution by ID\n create Create a new databaseFunctionGraphExecution\n update Update an existing databaseFunctionGraphExecution\n delete Delete a databaseFunctionGraphExecution\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 = { + actorId: true, + completedAt: true, + currentWave: true, + databaseId: true, + definitionsCommitId: true, + entityId: true, + entityType: true, + errorCode: true, + errorMessage: true, + executionPlan: true, + graphId: true, + id: true, + inputPayload: true, + invocationCreatedAt: true, + invocationId: true, + lastProgressAt: true, + maxPendingJobs: true, + maxTicks: true, + nodeOutputs: true, + organizationId: true, + outputNames: true, + outputNode: true, + outputPayload: true, + outputPort: true, + parentExecutionId: true, + parentInvocationId: true, + parentNodeName: true, + principalId: true, + startedAt: true, + status: true, + tickCount: true, + timeoutAt: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs< + DatabaseFunctionGraphExecutionSelect, + DatabaseFunctionGraphExecutionFilter, + DatabaseFunctionGraphExecutionOrderBy + > & { + select: DatabaseFunctionGraphExecutionSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.databaseFunctionGraphExecution.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 = { + actorId: true, + completedAt: true, + currentWave: true, + databaseId: true, + definitionsCommitId: true, + entityId: true, + entityType: true, + errorCode: true, + errorMessage: true, + executionPlan: true, + graphId: true, + id: true, + inputPayload: true, + invocationCreatedAt: true, + invocationId: true, + lastProgressAt: true, + maxPendingJobs: true, + maxTicks: true, + nodeOutputs: true, + organizationId: true, + outputNames: true, + outputNode: true, + outputPayload: true, + outputPort: true, + parentExecutionId: true, + parentInvocationId: true, + parentNodeName: true, + principalId: true, + startedAt: true, + status: true, + tickCount: true, + timeoutAt: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs< + DatabaseFunctionGraphExecutionSelect, + DatabaseFunctionGraphExecutionFilter, + DatabaseFunctionGraphExecutionOrderBy + > & { + select: DatabaseFunctionGraphExecutionSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.databaseFunctionGraphExecution.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.databaseFunctionGraphExecution + .findOne({ + id: answers.id as string, + select: { + actorId: true, + completedAt: true, + currentWave: true, + databaseId: true, + definitionsCommitId: true, + entityId: true, + entityType: true, + errorCode: true, + errorMessage: true, + executionPlan: true, + graphId: true, + id: true, + inputPayload: true, + invocationCreatedAt: true, + invocationId: true, + lastProgressAt: true, + maxPendingJobs: true, + maxTicks: true, + nodeOutputs: true, + organizationId: true, + outputNames: true, + outputNode: true, + outputPayload: true, + outputPort: true, + parentExecutionId: true, + parentInvocationId: true, + parentNodeName: true, + principalId: true, + startedAt: true, + status: true, + tickCount: true, + timeoutAt: 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: 'actorId', + message: 'actorId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'completedAt', + message: 'completedAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'currentWave', + message: 'currentWave', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: true, + }, + { + type: 'text', + name: 'definitionsCommitId', + message: 'definitionsCommitId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'entityId', + message: 'entityId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'entityType', + message: 'entityType', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'errorCode', + message: 'errorCode', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'errorMessage', + message: 'errorMessage', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'executionPlan', + message: 'executionPlan', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'graphId', + message: 'graphId', + required: true, + }, + { + type: 'json', + name: 'inputPayload', + message: 'inputPayload', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'invocationCreatedAt', + message: 'invocationCreatedAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'invocationId', + message: 'invocationId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'lastProgressAt', + message: 'lastProgressAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'maxPendingJobs', + message: 'maxPendingJobs', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'maxTicks', + message: 'maxTicks', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'nodeOutputs', + message: 'nodeOutputs', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'organizationId', + message: 'organizationId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'outputNames', + message: 'outputNames', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'outputNode', + message: 'outputNode', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'outputPayload', + message: 'outputPayload', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'outputPort', + message: 'outputPort', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'parentExecutionId', + message: 'parentExecutionId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'parentInvocationId', + message: 'parentInvocationId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'parentNodeName', + message: 'parentNodeName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'principalId', + message: 'principalId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'startedAt', + message: 'startedAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'status', + message: 'status', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'tickCount', + message: 'tickCount', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'timeoutAt', + message: 'timeoutAt', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateDatabaseFunctionGraphExecutionInput['databaseFunctionGraphExecution']; + const client = getClient(); + const result = await client.databaseFunctionGraphExecution + .create({ + data: { + actorId: cleanedData.actorId, + completedAt: cleanedData.completedAt, + currentWave: cleanedData.currentWave, + databaseId: cleanedData.databaseId, + definitionsCommitId: cleanedData.definitionsCommitId, + entityId: cleanedData.entityId, + entityType: cleanedData.entityType, + errorCode: cleanedData.errorCode, + errorMessage: cleanedData.errorMessage, + executionPlan: cleanedData.executionPlan, + graphId: cleanedData.graphId, + inputPayload: cleanedData.inputPayload, + invocationCreatedAt: cleanedData.invocationCreatedAt, + invocationId: cleanedData.invocationId, + lastProgressAt: cleanedData.lastProgressAt, + maxPendingJobs: cleanedData.maxPendingJobs, + maxTicks: cleanedData.maxTicks, + nodeOutputs: cleanedData.nodeOutputs, + organizationId: cleanedData.organizationId, + outputNames: cleanedData.outputNames, + outputNode: cleanedData.outputNode, + outputPayload: cleanedData.outputPayload, + outputPort: cleanedData.outputPort, + parentExecutionId: cleanedData.parentExecutionId, + parentInvocationId: cleanedData.parentInvocationId, + parentNodeName: cleanedData.parentNodeName, + principalId: cleanedData.principalId, + startedAt: cleanedData.startedAt, + status: cleanedData.status, + tickCount: cleanedData.tickCount, + timeoutAt: cleanedData.timeoutAt, + }, + select: { + actorId: true, + completedAt: true, + currentWave: true, + databaseId: true, + definitionsCommitId: true, + entityId: true, + entityType: true, + errorCode: true, + errorMessage: true, + executionPlan: true, + graphId: true, + id: true, + inputPayload: true, + invocationCreatedAt: true, + invocationId: true, + lastProgressAt: true, + maxPendingJobs: true, + maxTicks: true, + nodeOutputs: true, + organizationId: true, + outputNames: true, + outputNode: true, + outputPayload: true, + outputPort: true, + parentExecutionId: true, + parentInvocationId: true, + parentNodeName: true, + principalId: true, + startedAt: true, + status: true, + tickCount: true, + timeoutAt: 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: 'startedAt', + message: 'startedAt', + required: true, + }, + { + type: 'text', + name: 'actorId', + message: 'actorId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'completedAt', + message: 'completedAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'currentWave', + message: 'currentWave', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: false, + }, + { + type: 'text', + name: 'definitionsCommitId', + message: 'definitionsCommitId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'entityId', + message: 'entityId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'entityType', + message: 'entityType', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'errorCode', + message: 'errorCode', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'errorMessage', + message: 'errorMessage', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'executionPlan', + message: 'executionPlan', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'graphId', + message: 'graphId', + required: false, + }, + { + type: 'json', + name: 'inputPayload', + message: 'inputPayload', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'invocationCreatedAt', + message: 'invocationCreatedAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'invocationId', + message: 'invocationId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'lastProgressAt', + message: 'lastProgressAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'maxPendingJobs', + message: 'maxPendingJobs', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'maxTicks', + message: 'maxTicks', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'nodeOutputs', + message: 'nodeOutputs', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'organizationId', + message: 'organizationId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'outputNames', + message: 'outputNames', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'outputNode', + message: 'outputNode', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'outputPayload', + message: 'outputPayload', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'outputPort', + message: 'outputPort', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'parentExecutionId', + message: 'parentExecutionId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'parentInvocationId', + message: 'parentInvocationId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'parentNodeName', + message: 'parentNodeName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'principalId', + message: 'principalId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'status', + message: 'status', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'tickCount', + message: 'tickCount', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'timeoutAt', + message: 'timeoutAt', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as DatabaseFunctionGraphExecutionPatch; + const client = getClient(); + const result = await client.databaseFunctionGraphExecution + .update({ + where: { + id: answers.id as string, + startedAt: answers.startedAt as string, + }, + data: { + actorId: cleanedData.actorId, + completedAt: cleanedData.completedAt, + currentWave: cleanedData.currentWave, + databaseId: cleanedData.databaseId, + definitionsCommitId: cleanedData.definitionsCommitId, + entityId: cleanedData.entityId, + entityType: cleanedData.entityType, + errorCode: cleanedData.errorCode, + errorMessage: cleanedData.errorMessage, + executionPlan: cleanedData.executionPlan, + graphId: cleanedData.graphId, + inputPayload: cleanedData.inputPayload, + invocationCreatedAt: cleanedData.invocationCreatedAt, + invocationId: cleanedData.invocationId, + lastProgressAt: cleanedData.lastProgressAt, + maxPendingJobs: cleanedData.maxPendingJobs, + maxTicks: cleanedData.maxTicks, + nodeOutputs: cleanedData.nodeOutputs, + organizationId: cleanedData.organizationId, + outputNames: cleanedData.outputNames, + outputNode: cleanedData.outputNode, + outputPayload: cleanedData.outputPayload, + outputPort: cleanedData.outputPort, + parentExecutionId: cleanedData.parentExecutionId, + parentInvocationId: cleanedData.parentInvocationId, + parentNodeName: cleanedData.parentNodeName, + principalId: cleanedData.principalId, + status: cleanedData.status, + tickCount: cleanedData.tickCount, + timeoutAt: cleanedData.timeoutAt, + }, + select: { + actorId: true, + completedAt: true, + currentWave: true, + databaseId: true, + definitionsCommitId: true, + entityId: true, + entityType: true, + errorCode: true, + errorMessage: true, + executionPlan: true, + graphId: true, + id: true, + inputPayload: true, + invocationCreatedAt: true, + invocationId: true, + lastProgressAt: true, + maxPendingJobs: true, + maxTicks: true, + nodeOutputs: true, + organizationId: true, + outputNames: true, + outputNode: true, + outputPayload: true, + outputPort: true, + parentExecutionId: true, + parentInvocationId: true, + parentNodeName: true, + principalId: true, + startedAt: true, + status: true, + tickCount: true, + timeoutAt: 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, + }, + { + type: 'text', + name: 'startedAt', + message: 'startedAt', + required: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const client = getClient(); + const result = await client.databaseFunctionGraphExecution + .delete({ + where: { + id: answers.id as string, + startedAt: answers.startedAt 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/compute/cli/commands/database-function-graph.ts b/sdk/constructive-cli/src/compute/cli/commands/database-function-graph.ts new file mode 100644 index 0000000000..aecc43c3f5 --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/database-function-graph.ts @@ -0,0 +1,431 @@ +/** + * CLI commands for DatabaseFunctionGraph + * @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 { + CreateDatabaseFunctionGraphInput, + DatabaseFunctionGraphPatch, + DatabaseFunctionGraphSelect, + DatabaseFunctionGraphFilter, + DatabaseFunctionGraphOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + context: 'string', + createdAt: 'string', + createdBy: 'uuid', + databaseId: 'uuid', + definitionsCommitId: 'uuid', + description: 'string', + id: 'uuid', + isValid: 'boolean', + name: 'string', + storeId: 'uuid', + updatedAt: 'string', + validationErrors: 'json', +}; +const usage = + '\ndatabase-function-graph \n\nCommands:\n list List databaseFunctionGraph records\n find-first Find first matching databaseFunctionGraph record\n get Get a databaseFunctionGraph by ID\n create Create a new databaseFunctionGraph\n update Update an existing databaseFunctionGraph\n delete Delete a databaseFunctionGraph\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 = { + context: true, + createdAt: true, + createdBy: true, + databaseId: true, + definitionsCommitId: true, + description: true, + id: true, + isValid: true, + name: true, + storeId: true, + updatedAt: true, + validationErrors: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs< + DatabaseFunctionGraphSelect, + DatabaseFunctionGraphFilter, + DatabaseFunctionGraphOrderBy + > & { + select: DatabaseFunctionGraphSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.databaseFunctionGraph.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 = { + context: true, + createdAt: true, + createdBy: true, + databaseId: true, + definitionsCommitId: true, + description: true, + id: true, + isValid: true, + name: true, + storeId: true, + updatedAt: true, + validationErrors: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs< + DatabaseFunctionGraphSelect, + DatabaseFunctionGraphFilter, + DatabaseFunctionGraphOrderBy + > & { + select: DatabaseFunctionGraphSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.databaseFunctionGraph.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.databaseFunctionGraph + .findOne({ + id: answers.id as string, + select: { + context: true, + createdAt: true, + createdBy: true, + databaseId: true, + definitionsCommitId: true, + description: true, + id: true, + isValid: true, + name: true, + storeId: true, + updatedAt: true, + validationErrors: 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: 'context', + message: 'context', + required: true, + }, + { + type: 'text', + name: 'createdBy', + message: 'createdBy', + required: true, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: true, + }, + { + type: 'text', + name: 'definitionsCommitId', + message: 'definitionsCommitId', + required: true, + }, + { + type: 'text', + name: 'description', + message: 'description', + required: true, + }, + { + type: 'boolean', + name: 'isValid', + message: 'isValid', + required: true, + }, + { + type: 'text', + name: 'name', + message: 'name', + required: true, + }, + { + type: 'text', + name: 'storeId', + message: 'storeId', + required: true, + }, + { + type: 'json', + name: 'validationErrors', + message: 'validationErrors', + required: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateDatabaseFunctionGraphInput['databaseFunctionGraph']; + const client = getClient(); + const result = await client.databaseFunctionGraph + .create({ + data: { + context: cleanedData.context, + createdBy: cleanedData.createdBy, + databaseId: cleanedData.databaseId, + definitionsCommitId: cleanedData.definitionsCommitId, + description: cleanedData.description, + isValid: cleanedData.isValid, + name: cleanedData.name, + storeId: cleanedData.storeId, + validationErrors: cleanedData.validationErrors, + }, + select: { + context: true, + createdAt: true, + createdBy: true, + databaseId: true, + definitionsCommitId: true, + description: true, + id: true, + isValid: true, + name: true, + storeId: true, + updatedAt: true, + validationErrors: 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: 'context', + message: 'context', + required: false, + }, + { + type: 'text', + name: 'createdBy', + message: 'createdBy', + required: false, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: false, + }, + { + type: 'text', + name: 'definitionsCommitId', + message: 'definitionsCommitId', + required: false, + }, + { + type: 'text', + name: 'description', + message: 'description', + required: false, + }, + { + type: 'boolean', + name: 'isValid', + message: 'isValid', + required: false, + }, + { + type: 'text', + name: 'name', + message: 'name', + required: false, + }, + { + type: 'text', + name: 'storeId', + message: 'storeId', + required: false, + }, + { + type: 'json', + name: 'validationErrors', + message: 'validationErrors', + required: false, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as DatabaseFunctionGraphPatch; + const client = getClient(); + const result = await client.databaseFunctionGraph + .update({ + where: { + id: answers.id as string, + }, + data: { + context: cleanedData.context, + createdBy: cleanedData.createdBy, + databaseId: cleanedData.databaseId, + definitionsCommitId: cleanedData.definitionsCommitId, + description: cleanedData.description, + isValid: cleanedData.isValid, + name: cleanedData.name, + storeId: cleanedData.storeId, + validationErrors: cleanedData.validationErrors, + }, + select: { + context: true, + createdAt: true, + createdBy: true, + databaseId: true, + definitionsCommitId: true, + description: true, + id: true, + isValid: true, + name: true, + storeId: true, + updatedAt: true, + validationErrors: 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.databaseFunctionGraph + .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/compute/cli/commands/database-graph-commit.ts b/sdk/constructive-cli/src/compute/cli/commands/database-graph-commit.ts new file mode 100644 index 0000000000..16f686827b --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/database-graph-commit.ts @@ -0,0 +1,418 @@ +/** + * CLI commands for DatabaseGraphCommit + * @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 { + CreateDatabaseGraphCommitInput, + DatabaseGraphCommitPatch, + DatabaseGraphCommitSelect, + DatabaseGraphCommitFilter, + DatabaseGraphCommitOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + authorId: 'uuid', + committerId: 'uuid', + databaseId: 'uuid', + date: 'string', + id: 'uuid', + message: 'string', + parentIds: 'uuid', + storeId: 'uuid', + treeId: 'uuid', +}; +const usage = + '\ndatabase-graph-commit \n\nCommands:\n list List databaseGraphCommit records\n find-first Find first matching databaseGraphCommit record\n get Get a databaseGraphCommit by ID\n create Create a new databaseGraphCommit\n update Update an existing databaseGraphCommit\n delete Delete a databaseGraphCommit\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 = { + authorId: true, + committerId: true, + databaseId: true, + date: true, + id: true, + message: true, + parentIds: true, + storeId: true, + treeId: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs< + DatabaseGraphCommitSelect, + DatabaseGraphCommitFilter, + DatabaseGraphCommitOrderBy + > & { + select: DatabaseGraphCommitSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.databaseGraphCommit.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 = { + authorId: true, + committerId: true, + databaseId: true, + date: true, + id: true, + message: true, + parentIds: true, + storeId: true, + treeId: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs< + DatabaseGraphCommitSelect, + DatabaseGraphCommitFilter, + DatabaseGraphCommitOrderBy + > & { + select: DatabaseGraphCommitSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.databaseGraphCommit.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.databaseGraphCommit + .findOne({ + id: answers.id as string, + select: { + authorId: true, + committerId: true, + databaseId: true, + date: true, + id: true, + message: true, + parentIds: true, + storeId: true, + treeId: 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: 'authorId', + message: 'authorId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'committerId', + message: 'committerId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: true, + }, + { + type: 'text', + name: 'date', + message: 'date', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'message', + message: 'message', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'parentIds', + message: 'parentIds', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'storeId', + message: 'storeId', + required: true, + }, + { + type: 'text', + name: 'treeId', + message: 'treeId', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateDatabaseGraphCommitInput['databaseGraphCommit']; + const client = getClient(); + const result = await client.databaseGraphCommit + .create({ + data: { + authorId: cleanedData.authorId, + committerId: cleanedData.committerId, + databaseId: cleanedData.databaseId, + date: cleanedData.date, + message: cleanedData.message, + parentIds: cleanedData.parentIds, + storeId: cleanedData.storeId, + treeId: cleanedData.treeId, + }, + select: { + authorId: true, + committerId: true, + databaseId: true, + date: true, + id: true, + message: true, + parentIds: true, + storeId: true, + treeId: 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: true, + }, + { + type: 'text', + name: 'authorId', + message: 'authorId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'committerId', + message: 'committerId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'date', + message: 'date', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'message', + message: 'message', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'parentIds', + message: 'parentIds', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'storeId', + message: 'storeId', + required: false, + }, + { + type: 'text', + name: 'treeId', + message: 'treeId', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as DatabaseGraphCommitPatch; + const client = getClient(); + const result = await client.databaseGraphCommit + .update({ + where: { + id: answers.id as string, + databaseId: answers.databaseId as string, + }, + data: { + authorId: cleanedData.authorId, + committerId: cleanedData.committerId, + date: cleanedData.date, + message: cleanedData.message, + parentIds: cleanedData.parentIds, + storeId: cleanedData.storeId, + treeId: cleanedData.treeId, + }, + select: { + authorId: true, + committerId: true, + databaseId: true, + date: true, + id: true, + message: true, + parentIds: true, + storeId: true, + treeId: 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, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const client = getClient(); + const result = await client.databaseGraphCommit + .delete({ + where: { + id: answers.id as string, + databaseId: answers.databaseId 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/compute/cli/commands/database-graph-get-all-tree-nodes-record.ts b/sdk/constructive-cli/src/compute/cli/commands/database-graph-get-all-tree-nodes-record.ts new file mode 100644 index 0000000000..dfe58474b3 --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/database-graph-get-all-tree-nodes-record.ts @@ -0,0 +1,160 @@ +/** + * CLI commands for DatabaseGraphGetAllTreeNodesRecord + * @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 { + CreateDatabaseGraphGetAllTreeNodesRecordInput, + DatabaseGraphGetAllTreeNodesRecordPatch, + DatabaseGraphGetAllTreeNodesRecordSelect, + DatabaseGraphGetAllTreeNodesRecordFilter, + DatabaseGraphGetAllTreeNodesRecordsOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + data: 'json', + path: 'string', +}; +const usage = + '\ndatabase-graph-get-all-tree-nodes-record \n\nCommands:\n list List databaseGraphGetAllTreeNodesRecord records\n find-first Find first matching databaseGraphGetAllTreeNodesRecord record\n create Create a new databaseGraphGetAllTreeNodesRecord\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', 'create'], + }, + ]); + 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 'create': + return handleCreate(argv, prompter); + default: + console.log(usage); + process.exit(1); + } +} +async function handleList(argv: Partial>, _prompter: Inquirerer) { + try { + const defaultSelect = { + data: true, + path: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs< + DatabaseGraphGetAllTreeNodesRecordSelect, + DatabaseGraphGetAllTreeNodesRecordFilter, + DatabaseGraphGetAllTreeNodesRecordsOrderBy + > & { + select: DatabaseGraphGetAllTreeNodesRecordSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.databaseGraphGetAllTreeNodesRecord.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 = { + data: true, + path: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs< + DatabaseGraphGetAllTreeNodesRecordSelect, + DatabaseGraphGetAllTreeNodesRecordFilter, + DatabaseGraphGetAllTreeNodesRecordsOrderBy + > & { + select: DatabaseGraphGetAllTreeNodesRecordSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.databaseGraphGetAllTreeNodesRecord + .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 handleCreate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'json', + name: 'data', + message: 'data', + required: true, + }, + { + type: 'text', + name: 'path', + message: 'path', + required: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateDatabaseGraphGetAllTreeNodesRecordInput['databaseGraphGetAllTreeNodesRecord']; + const client = getClient(); + const result = await client.databaseGraphGetAllTreeNodesRecord + .create({ + data: { + data: cleanedData.data, + path: cleanedData.path, + }, + select: { + data: true, + path: 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); + } +} diff --git a/sdk/constructive-cli/src/compute/cli/commands/database-graph-init-empty-repo.ts b/sdk/constructive-cli/src/compute/cli/commands/database-graph-init-empty-repo.ts new file mode 100644 index 0000000000..444d7018b2 --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/database-graph-init-empty-repo.ts @@ -0,0 +1,53 @@ +/** + * CLI command for mutation databaseGraphInitEmptyRepo + * @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 { DatabaseGraphInitEmptyRepoVariables } from '../../orm/mutation'; +import type { DatabaseGraphInitEmptyRepoPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'database-graph-init-empty-repo - databaseGraphInitEmptyRepo\n\nUsage: database-graph-init-empty-repo [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 + .databaseGraphInitEmptyRepo( + parsedAnswers as unknown as DatabaseGraphInitEmptyRepoVariables, + { + select: selectFields, + } as unknown as { + select: DatabaseGraphInitEmptyRepoPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: databaseGraphInitEmptyRepo'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/compute/cli/commands/database-graph-insert-node-at-path.ts b/sdk/constructive-cli/src/compute/cli/commands/database-graph-insert-node-at-path.ts new file mode 100644 index 0000000000..cf3b3b483d --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/database-graph-insert-node-at-path.ts @@ -0,0 +1,53 @@ +/** + * CLI command for mutation databaseGraphInsertNodeAtPath + * @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 { DatabaseGraphInsertNodeAtPathVariables } from '../../orm/mutation'; +import type { DatabaseGraphInsertNodeAtPathPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'database-graph-insert-node-at-path - databaseGraphInsertNodeAtPath\n\nUsage: database-graph-insert-node-at-path [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 + .databaseGraphInsertNodeAtPath( + parsedAnswers as unknown as DatabaseGraphInsertNodeAtPathVariables, + { + select: selectFields, + } as unknown as { + select: DatabaseGraphInsertNodeAtPathPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: databaseGraphInsertNodeAtPath'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/compute/cli/commands/database-graph-insert-nodes-at-paths.ts b/sdk/constructive-cli/src/compute/cli/commands/database-graph-insert-nodes-at-paths.ts new file mode 100644 index 0000000000..504cefd862 --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/database-graph-insert-nodes-at-paths.ts @@ -0,0 +1,53 @@ +/** + * CLI command for mutation databaseGraphInsertNodesAtPaths + * @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 { DatabaseGraphInsertNodesAtPathsVariables } from '../../orm/mutation'; +import type { DatabaseGraphInsertNodesAtPathsPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'database-graph-insert-nodes-at-paths - databaseGraphInsertNodesAtPaths\n\nUsage: database-graph-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 + .databaseGraphInsertNodesAtPaths( + parsedAnswers as unknown as DatabaseGraphInsertNodesAtPathsVariables, + { + select: selectFields, + } as unknown as { + select: DatabaseGraphInsertNodesAtPathsPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: databaseGraphInsertNodesAtPaths'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/compute/cli/commands/database-graph-object.ts b/sdk/constructive-cli/src/compute/cli/commands/database-graph-object.ts new file mode 100644 index 0000000000..fe16a45b9b --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/database-graph-object.ts @@ -0,0 +1,338 @@ +/** + * CLI commands for DatabaseGraphObject + * @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 { + CreateDatabaseGraphObjectInput, + DatabaseGraphObjectPatch, + DatabaseGraphObjectSelect, + DatabaseGraphObjectFilter, + DatabaseGraphObjectOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + createdAt: 'string', + data: 'json', + databaseId: 'uuid', + id: 'uuid', + kids: 'uuid', + ktree: 'string', +}; +const usage = + '\ndatabase-graph-object \n\nCommands:\n list List databaseGraphObject records\n find-first Find first matching databaseGraphObject record\n get Get a databaseGraphObject by ID\n create Create a new databaseGraphObject\n update Update an existing databaseGraphObject\n delete Delete a databaseGraphObject\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, + data: true, + databaseId: true, + id: true, + kids: true, + ktree: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs< + DatabaseGraphObjectSelect, + DatabaseGraphObjectFilter, + DatabaseGraphObjectOrderBy + > & { + select: DatabaseGraphObjectSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.databaseGraphObject.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, + data: true, + databaseId: true, + id: true, + kids: true, + ktree: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs< + DatabaseGraphObjectSelect, + DatabaseGraphObjectFilter, + DatabaseGraphObjectOrderBy + > & { + select: DatabaseGraphObjectSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.databaseGraphObject.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.databaseGraphObject + .findOne({ + id: answers.id as string, + select: { + createdAt: true, + data: true, + databaseId: true, + id: true, + kids: true, + ktree: 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: 'json', + name: 'data', + message: 'data', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: true, + }, + { + type: 'text', + name: 'kids', + message: 'kids', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'ktree', + message: 'ktree', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateDatabaseGraphObjectInput['databaseGraphObject']; + const client = getClient(); + const result = await client.databaseGraphObject + .create({ + data: { + data: cleanedData.data, + databaseId: cleanedData.databaseId, + kids: cleanedData.kids, + ktree: cleanedData.ktree, + }, + select: { + createdAt: true, + data: true, + databaseId: true, + id: true, + kids: true, + ktree: 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: true, + }, + { + type: 'json', + name: 'data', + message: 'data', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'kids', + message: 'kids', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'ktree', + message: 'ktree', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as DatabaseGraphObjectPatch; + const client = getClient(); + const result = await client.databaseGraphObject + .update({ + where: { + id: answers.id as string, + databaseId: answers.databaseId as string, + }, + data: { + data: cleanedData.data, + kids: cleanedData.kids, + ktree: cleanedData.ktree, + }, + select: { + createdAt: true, + data: true, + databaseId: true, + id: true, + kids: true, + ktree: 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, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const client = getClient(); + const result = await client.databaseGraphObject + .delete({ + where: { + id: answers.id as string, + databaseId: answers.databaseId 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/compute/cli/commands/database-graph-ref.ts b/sdk/constructive-cli/src/compute/cli/commands/database-graph-ref.ts new file mode 100644 index 0000000000..b521bb6100 --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/database-graph-ref.ts @@ -0,0 +1,320 @@ +/** + * CLI commands for DatabaseGraphRef + * @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 { + CreateDatabaseGraphRefInput, + DatabaseGraphRefPatch, + DatabaseGraphRefSelect, + DatabaseGraphRefFilter, + DatabaseGraphRefOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + commitId: 'uuid', + databaseId: 'uuid', + id: 'uuid', + name: 'string', + storeId: 'uuid', +}; +const usage = + '\ndatabase-graph-ref \n\nCommands:\n list List databaseGraphRef records\n find-first Find first matching databaseGraphRef record\n get Get a databaseGraphRef by ID\n create Create a new databaseGraphRef\n update Update an existing databaseGraphRef\n delete Delete a databaseGraphRef\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 = { + commitId: true, + databaseId: true, + id: true, + name: true, + storeId: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: DatabaseGraphRefSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.databaseGraphRef.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 = { + commitId: true, + databaseId: true, + id: true, + name: true, + storeId: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: DatabaseGraphRefSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.databaseGraphRef.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.databaseGraphRef + .findOne({ + id: answers.id as string, + select: { + commitId: true, + databaseId: true, + id: true, + name: true, + storeId: 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: 'commitId', + message: 'commitId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: true, + }, + { + type: 'text', + name: 'name', + message: 'name', + required: true, + }, + { + type: 'text', + name: 'storeId', + message: 'storeId', + required: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateDatabaseGraphRefInput['databaseGraphRef']; + const client = getClient(); + const result = await client.databaseGraphRef + .create({ + data: { + commitId: cleanedData.commitId, + databaseId: cleanedData.databaseId, + name: cleanedData.name, + storeId: cleanedData.storeId, + }, + select: { + commitId: true, + databaseId: true, + id: true, + name: true, + storeId: 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: true, + }, + { + type: 'text', + name: 'commitId', + message: 'commitId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'name', + message: 'name', + required: false, + }, + { + type: 'text', + name: 'storeId', + message: 'storeId', + required: false, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as DatabaseGraphRefPatch; + const client = getClient(); + const result = await client.databaseGraphRef + .update({ + where: { + id: answers.id as string, + databaseId: answers.databaseId as string, + }, + data: { + commitId: cleanedData.commitId, + name: cleanedData.name, + storeId: cleanedData.storeId, + }, + select: { + commitId: true, + databaseId: true, + id: true, + name: true, + storeId: 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, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const client = getClient(); + const result = await client.databaseGraphRef + .delete({ + where: { + id: answers.id as string, + databaseId: answers.databaseId 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/compute/cli/commands/database-graph-set-and-commit.ts b/sdk/constructive-cli/src/compute/cli/commands/database-graph-set-and-commit.ts new file mode 100644 index 0000000000..168418f70e --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/database-graph-set-and-commit.ts @@ -0,0 +1,53 @@ +/** + * CLI command for mutation databaseGraphSetAndCommit + * @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 { DatabaseGraphSetAndCommitVariables } from '../../orm/mutation'; +import type { DatabaseGraphSetAndCommitPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'database-graph-set-and-commit - databaseGraphSetAndCommit\n\nUsage: database-graph-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 + .databaseGraphSetAndCommit( + parsedAnswers as unknown as DatabaseGraphSetAndCommitVariables, + { + select: selectFields, + } as unknown as { + select: DatabaseGraphSetAndCommitPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: databaseGraphSetAndCommit'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/compute/cli/commands/database-graph-set-data-at-path.ts b/sdk/constructive-cli/src/compute/cli/commands/database-graph-set-data-at-path.ts new file mode 100644 index 0000000000..dce5e11735 --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/database-graph-set-data-at-path.ts @@ -0,0 +1,53 @@ +/** + * CLI command for mutation databaseGraphSetDataAtPath + * @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 { DatabaseGraphSetDataAtPathVariables } from '../../orm/mutation'; +import type { DatabaseGraphSetDataAtPathPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'database-graph-set-data-at-path - databaseGraphSetDataAtPath\n\nUsage: database-graph-set-data-at-path [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 + .databaseGraphSetDataAtPath( + parsedAnswers as unknown as DatabaseGraphSetDataAtPathVariables, + { + select: selectFields, + } as unknown as { + select: DatabaseGraphSetDataAtPathPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: databaseGraphSetDataAtPath'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/compute/cli/commands/database-graph-set-many-and-commit.ts b/sdk/constructive-cli/src/compute/cli/commands/database-graph-set-many-and-commit.ts new file mode 100644 index 0000000000..68db08d8cc --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/database-graph-set-many-and-commit.ts @@ -0,0 +1,53 @@ +/** + * CLI command for mutation databaseGraphSetManyAndCommit + * @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 { DatabaseGraphSetManyAndCommitVariables } from '../../orm/mutation'; +import type { DatabaseGraphSetManyAndCommitPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'database-graph-set-many-and-commit - databaseGraphSetManyAndCommit\n\nUsage: database-graph-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 + .databaseGraphSetManyAndCommit( + parsedAnswers as unknown as DatabaseGraphSetManyAndCommitVariables, + { + select: selectFields, + } as unknown as { + select: DatabaseGraphSetManyAndCommitPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: databaseGraphSetManyAndCommit'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/compute/cli/commands/database-graph-store.ts b/sdk/constructive-cli/src/compute/cli/commands/database-graph-store.ts new file mode 100644 index 0000000000..64d1dbe923 --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/database-graph-store.ts @@ -0,0 +1,307 @@ +/** + * CLI commands for DatabaseGraphStore + * @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 { + CreateDatabaseGraphStoreInput, + DatabaseGraphStorePatch, + DatabaseGraphStoreSelect, + DatabaseGraphStoreFilter, + DatabaseGraphStoreOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + createdAt: 'string', + databaseId: 'uuid', + hash: 'uuid', + id: 'uuid', + name: 'string', +}; +const usage = + '\ndatabase-graph-store \n\nCommands:\n list List databaseGraphStore records\n find-first Find first matching databaseGraphStore record\n get Get a databaseGraphStore by ID\n create Create a new databaseGraphStore\n update Update an existing databaseGraphStore\n delete Delete a databaseGraphStore\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, + hash: true, + id: true, + name: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs< + DatabaseGraphStoreSelect, + DatabaseGraphStoreFilter, + DatabaseGraphStoreOrderBy + > & { + select: DatabaseGraphStoreSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.databaseGraphStore.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, + hash: true, + id: true, + name: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs< + DatabaseGraphStoreSelect, + DatabaseGraphStoreFilter, + DatabaseGraphStoreOrderBy + > & { + select: DatabaseGraphStoreSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.databaseGraphStore.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.databaseGraphStore + .findOne({ + id: answers.id as string, + select: { + createdAt: true, + databaseId: true, + hash: true, + id: true, + name: 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: 'hash', + message: 'hash', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'name', + message: 'name', + required: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateDatabaseGraphStoreInput['databaseGraphStore']; + const client = getClient(); + const result = await client.databaseGraphStore + .create({ + data: { + databaseId: cleanedData.databaseId, + hash: cleanedData.hash, + name: cleanedData.name, + }, + select: { + createdAt: true, + databaseId: true, + hash: true, + id: true, + name: 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: 'hash', + message: 'hash', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'name', + message: 'name', + required: false, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as DatabaseGraphStorePatch; + const client = getClient(); + const result = await client.databaseGraphStore + .update({ + where: { + id: answers.id as string, + }, + data: { + databaseId: cleanedData.databaseId, + hash: cleanedData.hash, + name: cleanedData.name, + }, + select: { + createdAt: true, + databaseId: true, + hash: true, + id: true, + name: 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.databaseGraphStore + .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/compute/cli/commands/database-import-definitions.ts b/sdk/constructive-cli/src/compute/cli/commands/database-import-definitions.ts new file mode 100644 index 0000000000..ad573799f9 --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/database-import-definitions.ts @@ -0,0 +1,53 @@ +/** + * CLI command for mutation databaseImportDefinitions + * @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 { DatabaseImportDefinitionsVariables } from '../../orm/mutation'; +import type { DatabaseImportDefinitionsPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'database-import-definitions - databaseImportDefinitions\n\nUsage: database-import-definitions [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 + .databaseImportDefinitions( + parsedAnswers as unknown as DatabaseImportDefinitionsVariables, + { + select: selectFields, + } as unknown as { + select: DatabaseImportDefinitionsPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: databaseImportDefinitions'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/compute/cli/commands/database-import-graph-json.ts b/sdk/constructive-cli/src/compute/cli/commands/database-import-graph-json.ts new file mode 100644 index 0000000000..ff2b0347ba --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/database-import-graph-json.ts @@ -0,0 +1,53 @@ +/** + * CLI command for mutation databaseImportGraphJson + * @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 { DatabaseImportGraphJsonVariables } from '../../orm/mutation'; +import type { DatabaseImportGraphJsonPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'database-import-graph-json - databaseImportGraphJson\n\nUsage: database-import-graph-json [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 + .databaseImportGraphJson( + parsedAnswers as unknown as DatabaseImportGraphJsonVariables, + { + select: selectFields, + } as unknown as { + select: DatabaseImportGraphJsonPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: databaseImportGraphJson'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/compute/cli/commands/database-read-function-graph.ts b/sdk/constructive-cli/src/compute/cli/commands/database-read-function-graph.ts new file mode 100644 index 0000000000..88b949e7a9 --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/database-read-function-graph.ts @@ -0,0 +1,40 @@ +/** + * CLI command for query databaseReadFunctionGraph + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { CLIOptions, Inquirerer } from 'inquirerer'; +import { getClient } from '../executor'; +import type { DatabaseReadFunctionGraphVariables } from '../../orm/query'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'database-read-function-graph - databaseReadFunctionGraph\n\nUsage: database-read-function-graph [OPTIONS]\n' + ); + process.exit(0); + } + const answers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'graphId', + message: 'graphId', + }, + ]); + const client = getClient(); + const result = await client.query + .databaseReadFunctionGraph(answers as unknown as DatabaseReadFunctionGraphVariables) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: databaseReadFunctionGraph'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/compute/cli/commands/database-save-graph.ts b/sdk/constructive-cli/src/compute/cli/commands/database-save-graph.ts new file mode 100644 index 0000000000..35fa4c7029 --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/database-save-graph.ts @@ -0,0 +1,53 @@ +/** + * CLI command for mutation databaseSaveGraph + * @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 { DatabaseSaveGraphVariables } from '../../orm/mutation'; +import type { DatabaseSaveGraphPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'database-save-graph - databaseSaveGraph\n\nUsage: database-save-graph [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 + .databaseSaveGraph( + parsedAnswers as unknown as DatabaseSaveGraphVariables, + { + select: selectFields, + } as unknown as { + select: DatabaseSaveGraphPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: databaseSaveGraph'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/compute/cli/commands/database-start-execution.ts b/sdk/constructive-cli/src/compute/cli/commands/database-start-execution.ts new file mode 100644 index 0000000000..be4d6b8294 --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/database-start-execution.ts @@ -0,0 +1,53 @@ +/** + * CLI command for mutation databaseStartExecution + * @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 { DatabaseStartExecutionVariables } from '../../orm/mutation'; +import type { DatabaseStartExecutionPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'database-start-execution - databaseStartExecution\n\nUsage: database-start-execution [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 + .databaseStartExecution( + parsedAnswers as unknown as DatabaseStartExecutionVariables, + { + select: selectFields, + } as unknown as { + select: DatabaseStartExecutionPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: databaseStartExecution'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/compute/cli/commands/database-validate-function-graph.ts b/sdk/constructive-cli/src/compute/cli/commands/database-validate-function-graph.ts new file mode 100644 index 0000000000..8501e92d2b --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/database-validate-function-graph.ts @@ -0,0 +1,53 @@ +/** + * CLI command for mutation databaseValidateFunctionGraph + * @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 { DatabaseValidateFunctionGraphVariables } from '../../orm/mutation'; +import type { DatabaseValidateFunctionGraphPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'database-validate-function-graph - databaseValidateFunctionGraph\n\nUsage: database-validate-function-graph [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 + .databaseValidateFunctionGraph( + parsedAnswers as unknown as DatabaseValidateFunctionGraphVariables, + { + select: selectFields, + } as unknown as { + select: DatabaseValidateFunctionGraphPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: databaseValidateFunctionGraph'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; 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..b96bf8fb38 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/function-definition.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/function-definition.ts @@ -17,11 +17,13 @@ import type { import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { accessChannels: 'string', + anonymousCallable: 'boolean', category: 'string', concurrency: 'int', cpuLimitMillicores: 'int', cpuRequestMillicores: 'int', createdAt: 'string', + createdByPrincipal: 'uuid', databaseId: 'uuid', description: 'string', fnCategory: 'string', @@ -46,8 +48,10 @@ const fieldSchema: FieldSchema = { publishedAt: 'string', queueName: 'string', requiredBuckets: 'string', + requiredCapabilities: 'json', requiredConfigs: 'string', requiredModels: 'string', + requiredModules: 'string', requiredSecrets: 'string', resources: 'json', runtime: 'string', @@ -58,6 +62,7 @@ const fieldSchema: FieldSchema = { taskIdentifier: 'string', timeoutSeconds: 'int', updatedAt: 'string', + updatedByPrincipal: 'uuid', volatile: 'boolean', }; const usage = @@ -112,9 +117,11 @@ async function handleList(argv: Partial>, _prompter: Inq try { const defaultSelect = { accessChannels: true, + anonymousCallable: true, category: true, concurrency: true, createdAt: true, + createdByPrincipal: true, databaseId: true, description: true, fnCategory: true, @@ -137,8 +144,10 @@ async function handleList(argv: Partial>, _prompter: Inq publishedAt: true, queueName: true, requiredBuckets: true, + requiredCapabilities: true, requiredConfigs: true, requiredModels: true, + requiredModules: true, requiredSecrets: true, resources: true, runtime: true, @@ -148,6 +157,7 @@ async function handleList(argv: Partial>, _prompter: Inq targetSchema: true, timeoutSeconds: true, updatedAt: true, + updatedByPrincipal: true, volatile: true, }; const findManyArgs = parseFindManyArgs< @@ -174,9 +184,11 @@ async function handleFindFirst(argv: Partial>, _prompter try { const defaultSelect = { accessChannels: true, + anonymousCallable: true, category: true, concurrency: true, createdAt: true, + createdByPrincipal: true, databaseId: true, description: true, fnCategory: true, @@ -199,8 +211,10 @@ async function handleFindFirst(argv: Partial>, _prompter publishedAt: true, queueName: true, requiredBuckets: true, + requiredCapabilities: true, requiredConfigs: true, requiredModels: true, + requiredModules: true, requiredSecrets: true, resources: true, runtime: true, @@ -210,6 +224,7 @@ async function handleFindFirst(argv: Partial>, _prompter targetSchema: true, timeoutSeconds: true, updatedAt: true, + updatedByPrincipal: true, volatile: true, }; const findFirstArgs = parseFindFirstArgs< @@ -248,9 +263,11 @@ async function handleGet(argv: Partial>, prompter: Inqui id: answers.id as string, select: { accessChannels: true, + anonymousCallable: true, category: true, concurrency: true, createdAt: true, + createdByPrincipal: true, databaseId: true, description: true, fnCategory: true, @@ -273,8 +290,10 @@ async function handleGet(argv: Partial>, prompter: Inqui publishedAt: true, queueName: true, requiredBuckets: true, + requiredCapabilities: true, requiredConfigs: true, requiredModels: true, + requiredModules: true, requiredSecrets: true, resources: true, runtime: true, @@ -284,6 +303,7 @@ async function handleGet(argv: Partial>, prompter: Inqui targetSchema: true, timeoutSeconds: true, updatedAt: true, + updatedByPrincipal: true, volatile: true, }, }) @@ -307,6 +327,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'boolean', + name: 'anonymousCallable', + message: 'anonymousCallable', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'category', @@ -320,6 +347,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'databaseId', @@ -465,6 +499,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'json', + name: 'requiredCapabilities', + message: 'requiredCapabilities', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'requiredConfigs', @@ -479,6 +520,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', @@ -535,6 +583,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, { type: 'boolean', name: 'volatile', @@ -553,8 +608,10 @@ async function handleCreate(argv: Partial>, prompter: In .create({ data: { accessChannels: cleanedData.accessChannels, + anonymousCallable: cleanedData.anonymousCallable, category: cleanedData.category, concurrency: cleanedData.concurrency, + createdByPrincipal: cleanedData.createdByPrincipal, databaseId: cleanedData.databaseId, description: cleanedData.description, fnCategory: cleanedData.fnCategory, @@ -576,8 +633,10 @@ async function handleCreate(argv: Partial>, prompter: In publishedAt: cleanedData.publishedAt, queueName: cleanedData.queueName, requiredBuckets: cleanedData.requiredBuckets, + requiredCapabilities: cleanedData.requiredCapabilities, requiredConfigs: cleanedData.requiredConfigs, requiredModels: cleanedData.requiredModels, + requiredModules: cleanedData.requiredModules, requiredSecrets: cleanedData.requiredSecrets, resources: cleanedData.resources, runtime: cleanedData.runtime, @@ -586,13 +645,16 @@ async function handleCreate(argv: Partial>, prompter: In targetFunction: cleanedData.targetFunction, targetSchema: cleanedData.targetSchema, timeoutSeconds: cleanedData.timeoutSeconds, + updatedByPrincipal: cleanedData.updatedByPrincipal, volatile: cleanedData.volatile, }, select: { accessChannels: true, + anonymousCallable: true, category: true, concurrency: true, createdAt: true, + createdByPrincipal: true, databaseId: true, description: true, fnCategory: true, @@ -615,8 +677,10 @@ async function handleCreate(argv: Partial>, prompter: In publishedAt: true, queueName: true, requiredBuckets: true, + requiredCapabilities: true, requiredConfigs: true, requiredModels: true, + requiredModules: true, requiredSecrets: true, resources: true, runtime: true, @@ -626,6 +690,7 @@ async function handleCreate(argv: Partial>, prompter: In targetSchema: true, timeoutSeconds: true, updatedAt: true, + updatedByPrincipal: true, volatile: true, }, }) @@ -655,6 +720,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'boolean', + name: 'anonymousCallable', + message: 'anonymousCallable', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'category', @@ -668,6 +740,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'databaseId', @@ -813,6 +892,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'json', + name: 'requiredCapabilities', + message: 'requiredCapabilities', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'requiredConfigs', @@ -827,6 +913,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', @@ -883,6 +976,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, { type: 'boolean', name: 'volatile', @@ -901,8 +1001,10 @@ async function handleUpdate(argv: Partial>, prompter: In }, data: { accessChannels: cleanedData.accessChannels, + anonymousCallable: cleanedData.anonymousCallable, category: cleanedData.category, concurrency: cleanedData.concurrency, + createdByPrincipal: cleanedData.createdByPrincipal, databaseId: cleanedData.databaseId, description: cleanedData.description, fnCategory: cleanedData.fnCategory, @@ -924,8 +1026,10 @@ async function handleUpdate(argv: Partial>, prompter: In publishedAt: cleanedData.publishedAt, queueName: cleanedData.queueName, requiredBuckets: cleanedData.requiredBuckets, + requiredCapabilities: cleanedData.requiredCapabilities, requiredConfigs: cleanedData.requiredConfigs, requiredModels: cleanedData.requiredModels, + requiredModules: cleanedData.requiredModules, requiredSecrets: cleanedData.requiredSecrets, resources: cleanedData.resources, runtime: cleanedData.runtime, @@ -934,13 +1038,16 @@ async function handleUpdate(argv: Partial>, prompter: In targetFunction: cleanedData.targetFunction, targetSchema: cleanedData.targetSchema, timeoutSeconds: cleanedData.timeoutSeconds, + updatedByPrincipal: cleanedData.updatedByPrincipal, volatile: cleanedData.volatile, }, select: { accessChannels: true, + anonymousCallable: true, category: true, concurrency: true, createdAt: true, + createdByPrincipal: true, databaseId: true, description: true, fnCategory: true, @@ -963,8 +1070,10 @@ async function handleUpdate(argv: Partial>, prompter: In publishedAt: true, queueName: true, requiredBuckets: true, + requiredCapabilities: true, requiredConfigs: true, requiredModels: true, + requiredModules: true, requiredSecrets: true, resources: true, runtime: true, @@ -974,6 +1083,7 @@ async function handleUpdate(argv: Partial>, prompter: In targetSchema: true, timeoutSeconds: true, updatedAt: true, + updatedByPrincipal: true, volatile: 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..ee17f47a77 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/function-deployment.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/function-deployment.ts @@ -19,6 +19,7 @@ const fieldSchema: FieldSchema = { annotations: 'json', concurrency: 'int', createdAt: 'string', + createdByPrincipal: 'uuid', databaseId: 'uuid', errorCount: 'int', handlerName: 'string', @@ -29,6 +30,7 @@ const fieldSchema: FieldSchema = { lastError: 'string', lastErrorAt: 'string', namespaceId: 'uuid', + realm: 'string', resources: 'json', revision: 'int', scaleMax: 'int', @@ -38,6 +40,7 @@ const fieldSchema: FieldSchema = { status: 'string', timeoutSeconds: 'int', updatedAt: 'string', + updatedByPrincipal: 'uuid', }; const usage = '\nfunction-deployment \n\nCommands:\n list List functionDeployment records\n find-first Find first matching functionDeployment record\n get Get a functionDeployment by ID\n create Create a new functionDeployment\n update Update an existing functionDeployment\n delete Delete a functionDeployment\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,6 +96,7 @@ async function handleList(argv: Partial>, _prompter: Inq annotations: true, concurrency: true, createdAt: true, + createdByPrincipal: true, databaseId: true, errorCount: true, handlerName: true, @@ -103,6 +107,7 @@ async function handleList(argv: Partial>, _prompter: Inq lastError: true, lastErrorAt: true, namespaceId: true, + realm: true, resources: true, revision: true, scaleMax: true, @@ -112,6 +117,7 @@ async function handleList(argv: Partial>, _prompter: Inq status: true, timeoutSeconds: true, updatedAt: true, + updatedByPrincipal: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs< @@ -139,6 +145,7 @@ async function handleFindFirst(argv: Partial>, _prompter annotations: true, concurrency: true, createdAt: true, + createdByPrincipal: true, databaseId: true, errorCount: true, handlerName: true, @@ -149,6 +156,7 @@ async function handleFindFirst(argv: Partial>, _prompter lastError: true, lastErrorAt: true, namespaceId: true, + realm: true, resources: true, revision: true, scaleMax: true, @@ -158,6 +166,7 @@ async function handleFindFirst(argv: Partial>, _prompter status: true, timeoutSeconds: true, updatedAt: true, + updatedByPrincipal: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs< @@ -197,6 +206,7 @@ async function handleGet(argv: Partial>, prompter: Inqui annotations: true, concurrency: true, createdAt: true, + createdByPrincipal: true, databaseId: true, errorCount: true, handlerName: true, @@ -207,6 +217,7 @@ async function handleGet(argv: Partial>, prompter: Inqui lastError: true, lastErrorAt: true, namespaceId: true, + realm: true, resources: true, revision: true, scaleMax: true, @@ -216,6 +227,7 @@ async function handleGet(argv: Partial>, prompter: Inqui status: true, timeoutSeconds: true, updatedAt: true, + updatedByPrincipal: true, }, }) .execute(); @@ -245,6 +257,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'databaseId', @@ -305,6 +324,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', @@ -361,6 +387,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined( @@ -373,6 +406,7 @@ async function handleCreate(argv: Partial>, prompter: In data: { annotations: cleanedData.annotations, concurrency: cleanedData.concurrency, + createdByPrincipal: cleanedData.createdByPrincipal, databaseId: cleanedData.databaseId, errorCount: cleanedData.errorCount, handlerName: cleanedData.handlerName, @@ -382,6 +416,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, @@ -390,11 +425,13 @@ async function handleCreate(argv: Partial>, prompter: In serviceUrl: cleanedData.serviceUrl, status: cleanedData.status, timeoutSeconds: cleanedData.timeoutSeconds, + updatedByPrincipal: cleanedData.updatedByPrincipal, }, select: { annotations: true, concurrency: true, createdAt: true, + createdByPrincipal: true, databaseId: true, errorCount: true, handlerName: true, @@ -405,6 +442,7 @@ async function handleCreate(argv: Partial>, prompter: In lastError: true, lastErrorAt: true, namespaceId: true, + realm: true, resources: true, revision: true, scaleMax: true, @@ -414,6 +452,7 @@ async function handleCreate(argv: Partial>, prompter: In status: true, timeoutSeconds: true, updatedAt: true, + updatedByPrincipal: true, }, }) .execute(); @@ -449,6 +488,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'databaseId', @@ -509,6 +555,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', @@ -565,6 +618,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as FunctionDeploymentPatch; @@ -577,6 +637,7 @@ async function handleUpdate(argv: Partial>, prompter: In data: { annotations: cleanedData.annotations, concurrency: cleanedData.concurrency, + createdByPrincipal: cleanedData.createdByPrincipal, databaseId: cleanedData.databaseId, errorCount: cleanedData.errorCount, handlerName: cleanedData.handlerName, @@ -586,6 +647,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, @@ -594,11 +656,13 @@ async function handleUpdate(argv: Partial>, prompter: In serviceUrl: cleanedData.serviceUrl, status: cleanedData.status, timeoutSeconds: cleanedData.timeoutSeconds, + updatedByPrincipal: cleanedData.updatedByPrincipal, }, select: { annotations: true, concurrency: true, createdAt: true, + createdByPrincipal: true, databaseId: true, errorCount: true, handlerName: true, @@ -609,6 +673,7 @@ async function handleUpdate(argv: Partial>, prompter: In lastError: true, lastErrorAt: true, namespaceId: true, + realm: true, resources: true, revision: true, scaleMax: true, @@ -618,6 +683,7 @@ async function handleUpdate(argv: Partial>, prompter: In status: true, timeoutSeconds: true, updatedAt: true, + updatedByPrincipal: true, }, }) .execute(); diff --git a/sdk/constructive-cli/src/compute/cli/commands/function-graph-execution-node-state.ts b/sdk/constructive-cli/src/compute/cli/commands/function-graph-execution-node-state.ts index 906bb7ea95..68fea3a8d7 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/function-graph-execution-node-state.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/function-graph-execution-node-state.ts @@ -24,6 +24,9 @@ const fieldSchema: FieldSchema = { errorCode: 'string', errorMessage: 'string', executionId: 'uuid', + expiryDefaultOutput: 'json', + expiryEscalatedAt: 'string', + expiryPolicy: 'string', id: 'uuid', nodeName: 'string', nodePath: 'string', @@ -31,6 +34,9 @@ const fieldSchema: FieldSchema = { scopeId: 'uuid', startedAt: 'string', status: 'string', + waitingDeadlineAt: 'string', + waitingOn: 'string', + waitingSince: 'string', }; const usage = '\nfunction-graph-execution-node-state \n\nCommands:\n list List functionGraphExecutionNodeState records\n find-first Find first matching functionGraphExecutionNodeState record\n get Get a functionGraphExecutionNodeState by ID\n create Create a new functionGraphExecutionNodeState\n update Update an existing functionGraphExecutionNodeState\n delete Delete a functionGraphExecutionNodeState\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'; @@ -91,6 +97,9 @@ async function handleList(argv: Partial>, _prompter: Inq errorCode: true, errorMessage: true, executionId: true, + expiryDefaultOutput: true, + expiryEscalatedAt: true, + expiryPolicy: true, id: true, nodeName: true, nodePath: true, @@ -98,6 +107,9 @@ async function handleList(argv: Partial>, _prompter: Inq scopeId: true, startedAt: true, status: true, + waitingDeadlineAt: true, + waitingOn: true, + waitingSince: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs< @@ -130,6 +142,9 @@ async function handleFindFirst(argv: Partial>, _prompter errorCode: true, errorMessage: true, executionId: true, + expiryDefaultOutput: true, + expiryEscalatedAt: true, + expiryPolicy: true, id: true, nodeName: true, nodePath: true, @@ -137,6 +152,9 @@ async function handleFindFirst(argv: Partial>, _prompter scopeId: true, startedAt: true, status: true, + waitingDeadlineAt: true, + waitingOn: true, + waitingSince: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs< @@ -181,6 +199,9 @@ async function handleGet(argv: Partial>, prompter: Inqui errorCode: true, errorMessage: true, executionId: true, + expiryDefaultOutput: true, + expiryEscalatedAt: true, + expiryPolicy: true, id: true, nodeName: true, nodePath: true, @@ -188,6 +209,9 @@ async function handleGet(argv: Partial>, prompter: Inqui scopeId: true, startedAt: true, status: true, + waitingDeadlineAt: true, + waitingOn: true, + waitingSince: true, }, }) .execute(); @@ -251,6 +275,27 @@ async function handleCreate(argv: Partial>, prompter: In message: 'executionId', required: true, }, + { + type: 'json', + name: 'expiryDefaultOutput', + message: 'expiryDefaultOutput', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'expiryEscalatedAt', + message: 'expiryEscalatedAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'expiryPolicy', + message: 'expiryPolicy', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'nodeName', @@ -291,6 +336,27 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'waitingDeadlineAt', + message: 'waitingDeadlineAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'waitingOn', + message: 'waitingOn', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'waitingSince', + message: 'waitingSince', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined( @@ -308,12 +374,18 @@ async function handleCreate(argv: Partial>, prompter: In errorCode: cleanedData.errorCode, errorMessage: cleanedData.errorMessage, executionId: cleanedData.executionId, + expiryDefaultOutput: cleanedData.expiryDefaultOutput, + expiryEscalatedAt: cleanedData.expiryEscalatedAt, + expiryPolicy: cleanedData.expiryPolicy, nodeName: cleanedData.nodeName, nodePath: cleanedData.nodePath, outputId: cleanedData.outputId, scopeId: cleanedData.scopeId, startedAt: cleanedData.startedAt, status: cleanedData.status, + waitingDeadlineAt: cleanedData.waitingDeadlineAt, + waitingOn: cleanedData.waitingOn, + waitingSince: cleanedData.waitingSince, }, select: { callbackInputs: true, @@ -324,6 +396,9 @@ async function handleCreate(argv: Partial>, prompter: In errorCode: true, errorMessage: true, executionId: true, + expiryDefaultOutput: true, + expiryEscalatedAt: true, + expiryPolicy: true, id: true, nodeName: true, nodePath: true, @@ -331,6 +406,9 @@ async function handleCreate(argv: Partial>, prompter: In scopeId: true, startedAt: true, status: true, + waitingDeadlineAt: true, + waitingOn: true, + waitingSince: true, }, }) .execute(); @@ -406,6 +484,27 @@ async function handleUpdate(argv: Partial>, prompter: In message: 'executionId', required: false, }, + { + type: 'json', + name: 'expiryDefaultOutput', + message: 'expiryDefaultOutput', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'expiryEscalatedAt', + message: 'expiryEscalatedAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'expiryPolicy', + message: 'expiryPolicy', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'nodeName', @@ -446,6 +545,27 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'waitingDeadlineAt', + message: 'waitingDeadlineAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'waitingOn', + message: 'waitingOn', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'waitingSince', + message: 'waitingSince', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined( @@ -467,12 +587,18 @@ async function handleUpdate(argv: Partial>, prompter: In errorCode: cleanedData.errorCode, errorMessage: cleanedData.errorMessage, executionId: cleanedData.executionId, + expiryDefaultOutput: cleanedData.expiryDefaultOutput, + expiryEscalatedAt: cleanedData.expiryEscalatedAt, + expiryPolicy: cleanedData.expiryPolicy, nodeName: cleanedData.nodeName, nodePath: cleanedData.nodePath, outputId: cleanedData.outputId, scopeId: cleanedData.scopeId, startedAt: cleanedData.startedAt, status: cleanedData.status, + waitingDeadlineAt: cleanedData.waitingDeadlineAt, + waitingOn: cleanedData.waitingOn, + waitingSince: cleanedData.waitingSince, }, select: { callbackInputs: true, @@ -483,6 +609,9 @@ async function handleUpdate(argv: Partial>, prompter: In errorCode: true, errorMessage: true, executionId: true, + expiryDefaultOutput: true, + expiryEscalatedAt: true, + expiryPolicy: true, id: true, nodeName: true, nodePath: true, @@ -490,6 +619,9 @@ async function handleUpdate(argv: Partial>, prompter: In scopeId: true, startedAt: true, status: true, + waitingDeadlineAt: true, + waitingOn: true, + waitingSince: true, }, }) .execute(); diff --git a/sdk/constructive-cli/src/compute/cli/commands/function-invocation.ts b/sdk/constructive-cli/src/compute/cli/commands/function-invocation.ts index 28fb06f960..bb33451f00 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/function-invocation.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/function-invocation.ts @@ -21,16 +21,21 @@ const fieldSchema: FieldSchema = { channel: 'string', completedAt: 'string', createdAt: 'string', + createdByPrincipal: 'uuid', databaseId: 'uuid', definitionScope: 'string', durationMs: 'int', + entityId: 'uuid', + entityType: 'string', error: 'string', functionDefinitionId: 'uuid', graphExecutionId: 'uuid', id: 'uuid', jobId: 'int', + organizationId: 'uuid', parentInvocationId: 'uuid', payload: 'json', + principalId: 'uuid', provenance: 'json', result: 'json', startedAt: 'string', @@ -93,16 +98,21 @@ async function handleList(argv: Partial>, _prompter: Inq channel: true, completedAt: true, createdAt: true, + createdByPrincipal: true, databaseId: true, definitionScope: true, durationMs: true, + entityId: true, + entityType: true, error: true, functionDefinitionId: true, graphExecutionId: true, id: true, jobId: true, + organizationId: true, parentInvocationId: true, payload: true, + principalId: true, provenance: true, result: true, startedAt: true, @@ -137,16 +147,21 @@ async function handleFindFirst(argv: Partial>, _prompter channel: true, completedAt: true, createdAt: true, + createdByPrincipal: true, databaseId: true, definitionScope: true, durationMs: true, + entityId: true, + entityType: true, error: true, functionDefinitionId: true, graphExecutionId: true, id: true, jobId: true, + organizationId: true, parentInvocationId: true, payload: true, + principalId: true, provenance: true, result: true, startedAt: true, @@ -193,16 +208,21 @@ async function handleGet(argv: Partial>, prompter: Inqui channel: true, completedAt: true, createdAt: true, + createdByPrincipal: true, databaseId: true, definitionScope: true, durationMs: true, + entityId: true, + entityType: true, error: true, functionDefinitionId: true, graphExecutionId: true, id: true, jobId: true, + organizationId: true, parentInvocationId: true, payload: true, + principalId: true, provenance: true, result: true, startedAt: true, @@ -241,8 +261,7 @@ async function handleCreate(argv: Partial>, prompter: In type: 'text', name: 'channel', message: 'channel', - required: false, - skipPrompt: true, + required: true, }, { type: 'text', @@ -251,6 +270,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'databaseId', @@ -271,6 +297,20 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'entityId', + message: 'entityId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'entityType', + message: 'entityType', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'error', @@ -299,6 +339,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'organizationId', + message: 'organizationId', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'parentInvocationId', @@ -313,6 +360,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'principalId', + message: 'principalId', + required: false, + skipPrompt: true, + }, { type: 'json', name: 'provenance', @@ -361,15 +415,20 @@ async function handleCreate(argv: Partial>, prompter: In apiBindingId: cleanedData.apiBindingId, channel: cleanedData.channel, completedAt: cleanedData.completedAt, + createdByPrincipal: cleanedData.createdByPrincipal, databaseId: cleanedData.databaseId, definitionScope: cleanedData.definitionScope, durationMs: cleanedData.durationMs, + entityId: cleanedData.entityId, + entityType: cleanedData.entityType, error: cleanedData.error, functionDefinitionId: cleanedData.functionDefinitionId, graphExecutionId: cleanedData.graphExecutionId, jobId: cleanedData.jobId, + organizationId: cleanedData.organizationId, parentInvocationId: cleanedData.parentInvocationId, payload: cleanedData.payload, + principalId: cleanedData.principalId, provenance: cleanedData.provenance, result: cleanedData.result, startedAt: cleanedData.startedAt, @@ -382,16 +441,21 @@ async function handleCreate(argv: Partial>, prompter: In channel: true, completedAt: true, createdAt: true, + createdByPrincipal: true, databaseId: true, definitionScope: true, durationMs: true, + entityId: true, + entityType: true, error: true, functionDefinitionId: true, graphExecutionId: true, id: true, jobId: true, + organizationId: true, parentInvocationId: true, payload: true, + principalId: true, provenance: true, result: true, startedAt: true, @@ -443,7 +507,6 @@ async function handleUpdate(argv: Partial>, prompter: In name: 'channel', message: 'channel', required: false, - skipPrompt: true, }, { type: 'text', @@ -452,6 +515,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'databaseId', @@ -472,6 +542,20 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'entityId', + message: 'entityId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'entityType', + message: 'entityType', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'error', @@ -500,6 +584,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'organizationId', + message: 'organizationId', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'parentInvocationId', @@ -514,6 +605,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'principalId', + message: 'principalId', + required: false, + skipPrompt: true, + }, { type: 'json', name: 'provenance', @@ -563,15 +661,20 @@ async function handleUpdate(argv: Partial>, prompter: In apiBindingId: cleanedData.apiBindingId, channel: cleanedData.channel, completedAt: cleanedData.completedAt, + createdByPrincipal: cleanedData.createdByPrincipal, databaseId: cleanedData.databaseId, definitionScope: cleanedData.definitionScope, durationMs: cleanedData.durationMs, + entityId: cleanedData.entityId, + entityType: cleanedData.entityType, error: cleanedData.error, functionDefinitionId: cleanedData.functionDefinitionId, graphExecutionId: cleanedData.graphExecutionId, jobId: cleanedData.jobId, + organizationId: cleanedData.organizationId, parentInvocationId: cleanedData.parentInvocationId, payload: cleanedData.payload, + principalId: cleanedData.principalId, provenance: cleanedData.provenance, result: cleanedData.result, startedAt: cleanedData.startedAt, @@ -584,16 +687,21 @@ async function handleUpdate(argv: Partial>, prompter: In channel: true, completedAt: true, createdAt: true, + createdByPrincipal: true, databaseId: true, definitionScope: true, durationMs: true, + entityId: true, + entityType: true, error: true, functionDefinitionId: true, graphExecutionId: true, id: true, jobId: true, + organizationId: true, parentInvocationId: true, payload: true, + principalId: true, provenance: true, result: true, startedAt: true, diff --git a/sdk/constructive-cli/src/compute/cli/commands/function-invocations-create-sync.ts b/sdk/constructive-cli/src/compute/cli/commands/function-invocations-create-sync.ts new file mode 100644 index 0000000000..255f1c1118 --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/function-invocations-create-sync.ts @@ -0,0 +1,53 @@ +/** + * CLI command for mutation functionInvocationsCreateSync + * @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 { FunctionInvocationsCreateSyncVariables } from '../../orm/mutation'; +import type { FunctionInvocationsCreateSyncPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'function-invocations-create-sync - functionInvocationsCreateSync\n\nUsage: function-invocations-create-sync [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 + .functionInvocationsCreateSync( + parsedAnswers as unknown as FunctionInvocationsCreateSyncVariables, + { + select: selectFields, + } as unknown as { + select: FunctionInvocationsCreateSyncPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: functionInvocationsCreateSync'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/compute/cli/commands/image-grant.ts b/sdk/constructive-cli/src/compute/cli/commands/image-grant.ts new file mode 100644 index 0000000000..ae358a1225 --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/image-grant.ts @@ -0,0 +1,430 @@ +/** + * CLI commands for ImageGrant + * @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 { + CreateImageGrantInput, + ImageGrantPatch, + ImageGrantSelect, + ImageGrantFilter, + ImageGrantOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + actions: 'string', + createdAt: 'string', + createdByPrincipal: 'uuid', + databaseId: 'uuid', + expiresAt: 'string', + grantedBy: 'uuid', + granteeKey: 'uuid', + granteeScope: 'string', + id: 'uuid', + imageId: 'uuid', + updatedAt: 'string', + updatedByPrincipal: 'uuid', +}; +const usage = + '\nimage-grant \n\nCommands:\n list List imageGrant records\n find-first Find first matching imageGrant record\n get Get a imageGrant by ID\n create Create a new imageGrant\n update Update an existing imageGrant\n delete Delete a imageGrant\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 = { + actions: true, + createdAt: true, + createdByPrincipal: true, + databaseId: true, + expiresAt: true, + grantedBy: true, + granteeKey: true, + granteeScope: true, + id: true, + imageId: true, + updatedAt: true, + updatedByPrincipal: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: ImageGrantSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.imageGrant.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 = { + actions: true, + createdAt: true, + createdByPrincipal: true, + databaseId: true, + expiresAt: true, + grantedBy: true, + granteeKey: true, + granteeScope: true, + id: true, + imageId: true, + updatedAt: true, + updatedByPrincipal: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: ImageGrantSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.imageGrant.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.imageGrant + .findOne({ + id: answers.id as string, + select: { + actions: true, + createdAt: true, + createdByPrincipal: true, + databaseId: true, + expiresAt: true, + grantedBy: true, + granteeKey: true, + granteeScope: true, + id: true, + imageId: true, + updatedAt: true, + updatedByPrincipal: 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: 'actions', + message: 'actions', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: true, + }, + { + type: 'text', + name: 'expiresAt', + message: 'expiresAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'grantedBy', + message: 'grantedBy', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'granteeKey', + message: 'granteeKey', + required: true, + }, + { + type: 'text', + name: 'granteeScope', + message: 'granteeScope', + required: true, + }, + { + type: 'text', + name: 'imageId', + message: 'imageId', + required: true, + }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as CreateImageGrantInput['imageGrant']; + const client = getClient(); + const result = await client.imageGrant + .create({ + data: { + actions: cleanedData.actions, + createdByPrincipal: cleanedData.createdByPrincipal, + databaseId: cleanedData.databaseId, + expiresAt: cleanedData.expiresAt, + grantedBy: cleanedData.grantedBy, + granteeKey: cleanedData.granteeKey, + granteeScope: cleanedData.granteeScope, + imageId: cleanedData.imageId, + updatedByPrincipal: cleanedData.updatedByPrincipal, + }, + select: { + actions: true, + createdAt: true, + createdByPrincipal: true, + databaseId: true, + expiresAt: true, + grantedBy: true, + granteeKey: true, + granteeScope: true, + id: true, + imageId: true, + updatedAt: true, + updatedByPrincipal: 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: 'actions', + message: 'actions', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: false, + }, + { + type: 'text', + name: 'expiresAt', + message: 'expiresAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'grantedBy', + message: 'grantedBy', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'granteeKey', + message: 'granteeKey', + required: false, + }, + { + type: 'text', + name: 'granteeScope', + message: 'granteeScope', + required: false, + }, + { + type: 'text', + name: 'imageId', + message: 'imageId', + required: false, + }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as ImageGrantPatch; + const client = getClient(); + const result = await client.imageGrant + .update({ + where: { + id: answers.id as string, + }, + data: { + actions: cleanedData.actions, + createdByPrincipal: cleanedData.createdByPrincipal, + databaseId: cleanedData.databaseId, + expiresAt: cleanedData.expiresAt, + grantedBy: cleanedData.grantedBy, + granteeKey: cleanedData.granteeKey, + granteeScope: cleanedData.granteeScope, + imageId: cleanedData.imageId, + updatedByPrincipal: cleanedData.updatedByPrincipal, + }, + select: { + actions: true, + createdAt: true, + createdByPrincipal: true, + databaseId: true, + expiresAt: true, + grantedBy: true, + granteeKey: true, + granteeScope: true, + id: true, + imageId: true, + updatedAt: true, + updatedByPrincipal: 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.imageGrant + .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/compute/cli/commands/image.ts b/sdk/constructive-cli/src/compute/cli/commands/image.ts new file mode 100644 index 0000000000..c933e1d412 --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/image.ts @@ -0,0 +1,586 @@ +/** + * CLI commands for Image + * @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 { + CreateImageInput, + ImagePatch, + ImageSelect, + ImageFilter, + ImageOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + createdAt: 'string', + createdByPrincipal: 'uuid', + databaseId: 'uuid', + description: 'string', + digest: 'string', + expiresAt: 'string', + id: 'uuid', + isPublished: 'boolean', + labels: 'json', + metadata: 'json', + name: 'string', + ownerId: 'uuid', + platformOnly: 'boolean', + registryHost: 'string', + repository: 'string', + runtime: 'string', + tag: 'string', + updatedAt: 'string', + updatedByPrincipal: 'uuid', +}; +const usage = + '\nimage \n\nCommands:\n list List image records\n find-first Find first matching image record\n get Get a image by ID\n create Create a new image\n update Update an existing image\n delete Delete a image\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, + createdByPrincipal: true, + databaseId: true, + description: true, + digest: true, + expiresAt: true, + id: true, + isPublished: true, + labels: true, + metadata: true, + name: true, + ownerId: true, + platformOnly: true, + registryHost: true, + repository: true, + runtime: true, + tag: true, + updatedAt: true, + updatedByPrincipal: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: ImageSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.image.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, + createdByPrincipal: true, + databaseId: true, + description: true, + digest: true, + expiresAt: true, + id: true, + isPublished: true, + labels: true, + metadata: true, + name: true, + ownerId: true, + platformOnly: true, + registryHost: true, + repository: true, + runtime: true, + tag: true, + updatedAt: true, + updatedByPrincipal: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: ImageSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.image.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.image + .findOne({ + id: answers.id as string, + select: { + createdAt: true, + createdByPrincipal: true, + databaseId: true, + description: true, + digest: true, + expiresAt: true, + id: true, + isPublished: true, + labels: true, + metadata: true, + name: true, + ownerId: true, + platformOnly: true, + registryHost: true, + repository: true, + runtime: true, + tag: true, + updatedAt: true, + updatedByPrincipal: 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: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: true, + }, + { + type: 'text', + name: 'description', + message: 'description', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'digest', + message: 'digest', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'expiresAt', + message: 'expiresAt', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'isPublished', + message: 'isPublished', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'labels', + message: 'labels', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'metadata', + message: 'metadata', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'name', + message: 'name', + required: true, + }, + { + type: 'text', + name: 'ownerId', + message: 'ownerId', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'platformOnly', + message: 'platformOnly', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'registryHost', + message: 'registryHost', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'repository', + message: 'repository', + required: true, + }, + { + type: 'text', + name: 'runtime', + message: 'runtime', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'tag', + message: 'tag', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as CreateImageInput['image']; + const client = getClient(); + const result = await client.image + .create({ + data: { + createdByPrincipal: cleanedData.createdByPrincipal, + databaseId: cleanedData.databaseId, + description: cleanedData.description, + digest: cleanedData.digest, + expiresAt: cleanedData.expiresAt, + isPublished: cleanedData.isPublished, + labels: cleanedData.labels, + metadata: cleanedData.metadata, + name: cleanedData.name, + ownerId: cleanedData.ownerId, + platformOnly: cleanedData.platformOnly, + registryHost: cleanedData.registryHost, + repository: cleanedData.repository, + runtime: cleanedData.runtime, + tag: cleanedData.tag, + updatedByPrincipal: cleanedData.updatedByPrincipal, + }, + select: { + createdAt: true, + createdByPrincipal: true, + databaseId: true, + description: true, + digest: true, + expiresAt: true, + id: true, + isPublished: true, + labels: true, + metadata: true, + name: true, + ownerId: true, + platformOnly: true, + registryHost: true, + repository: true, + runtime: true, + tag: true, + updatedAt: true, + updatedByPrincipal: 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: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: false, + }, + { + type: 'text', + name: 'description', + message: 'description', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'digest', + message: 'digest', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'expiresAt', + message: 'expiresAt', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'isPublished', + message: 'isPublished', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'labels', + message: 'labels', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'metadata', + message: 'metadata', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'name', + message: 'name', + required: false, + }, + { + type: 'text', + name: 'ownerId', + message: 'ownerId', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'platformOnly', + message: 'platformOnly', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'registryHost', + message: 'registryHost', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'repository', + message: 'repository', + required: false, + }, + { + type: 'text', + name: 'runtime', + message: 'runtime', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'tag', + message: 'tag', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as ImagePatch; + const client = getClient(); + const result = await client.image + .update({ + where: { + id: answers.id as string, + }, + data: { + createdByPrincipal: cleanedData.createdByPrincipal, + databaseId: cleanedData.databaseId, + description: cleanedData.description, + digest: cleanedData.digest, + expiresAt: cleanedData.expiresAt, + isPublished: cleanedData.isPublished, + labels: cleanedData.labels, + metadata: cleanedData.metadata, + name: cleanedData.name, + ownerId: cleanedData.ownerId, + platformOnly: cleanedData.platformOnly, + registryHost: cleanedData.registryHost, + repository: cleanedData.repository, + runtime: cleanedData.runtime, + tag: cleanedData.tag, + updatedByPrincipal: cleanedData.updatedByPrincipal, + }, + select: { + createdAt: true, + createdByPrincipal: true, + databaseId: true, + description: true, + digest: true, + expiresAt: true, + id: true, + isPublished: true, + labels: true, + metadata: true, + name: true, + ownerId: true, + platformOnly: true, + registryHost: true, + repository: true, + runtime: true, + tag: true, + updatedAt: true, + updatedByPrincipal: 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.image + .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/compute/cli/commands/infra-insert-nodes-at-paths.ts b/sdk/constructive-cli/src/compute/cli/commands/infra-insert-nodes-at-paths.ts new file mode 100644 index 0000000000..ac31ecd67c --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/infra-insert-nodes-at-paths.ts @@ -0,0 +1,53 @@ +/** + * 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 { InfraInsertNodesAtPathsVariables } from '../../orm/mutation'; +import type { InfraInsertNodesAtPathsPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'infra-insert-nodes-at-paths - infraInsertNodesAtPaths\n\nUsage: 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 + .infraInsertNodesAtPaths( + parsedAnswers as unknown as InfraInsertNodesAtPathsVariables, + { + select: selectFields, + } as unknown as { + select: InfraInsertNodesAtPathsPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: infraInsertNodesAtPaths'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/compute/cli/commands/infra-set-and-commit.ts b/sdk/constructive-cli/src/compute/cli/commands/infra-set-and-commit.ts new file mode 100644 index 0000000000..8a96f988da --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/infra-set-and-commit.ts @@ -0,0 +1,53 @@ +/** + * 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 { InfraSetAndCommitVariables } from '../../orm/mutation'; +import type { InfraSetAndCommitPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'infra-set-and-commit - infraSetAndCommit\n\nUsage: 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 + .infraSetAndCommit( + parsedAnswers as unknown as InfraSetAndCommitVariables, + { + select: selectFields, + } as unknown as { + select: InfraSetAndCommitPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: infraSetAndCommit'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/compute/cli/commands/infra-set-many-and-commit.ts b/sdk/constructive-cli/src/compute/cli/commands/infra-set-many-and-commit.ts new file mode 100644 index 0000000000..43af0d53ce --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/infra-set-many-and-commit.ts @@ -0,0 +1,53 @@ +/** + * 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 { InfraSetManyAndCommitVariables } from '../../orm/mutation'; +import type { InfraSetManyAndCommitPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'infra-set-many-and-commit - infraSetManyAndCommit\n\nUsage: 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 + .infraSetManyAndCommit( + parsedAnswers as unknown as InfraSetManyAndCommitVariables, + { + select: selectFields, + } as unknown as { + select: InfraSetManyAndCommitPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: infraSetManyAndCommit'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; 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/namespace.ts b/sdk/constructive-cli/src/compute/cli/commands/namespace.ts index 8250becd02..c7f3d5839e 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/namespace.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/namespace.ts @@ -17,6 +17,7 @@ import type { import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { annotations: 'json', + clusterId: 'uuid', createdAt: 'string', databaseId: 'uuid', description: 'string', @@ -82,6 +83,7 @@ async function handleList(argv: Partial>, _prompter: Inq try { const defaultSelect = { annotations: true, + clusterId: true, createdAt: true, databaseId: true, description: true, @@ -115,6 +117,7 @@ async function handleFindFirst(argv: Partial>, _prompter try { const defaultSelect = { annotations: true, + clusterId: true, createdAt: true, databaseId: true, description: true, @@ -160,6 +163,7 @@ async function handleGet(argv: Partial>, prompter: Inqui id: answers.id as string, select: { annotations: true, + clusterId: true, createdAt: true, databaseId: true, description: true, @@ -194,6 +198,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'clusterId', + message: 'clusterId', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'databaseId', @@ -262,6 +273,7 @@ async function handleCreate(argv: Partial>, prompter: In .create({ data: { annotations: cleanedData.annotations, + clusterId: cleanedData.clusterId, databaseId: cleanedData.databaseId, description: cleanedData.description, isActive: cleanedData.isActive, @@ -274,6 +286,7 @@ async function handleCreate(argv: Partial>, prompter: In }, select: { annotations: true, + clusterId: true, createdAt: true, databaseId: true, description: true, @@ -314,6 +327,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'clusterId', + message: 'clusterId', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'databaseId', @@ -385,6 +405,7 @@ async function handleUpdate(argv: Partial>, prompter: In }, data: { annotations: cleanedData.annotations, + clusterId: cleanedData.clusterId, databaseId: cleanedData.databaseId, description: cleanedData.description, isActive: cleanedData.isActive, @@ -397,6 +418,7 @@ async function handleUpdate(argv: Partial>, prompter: In }, select: { annotations: true, + clusterId: true, createdAt: true, databaseId: true, description: true, diff --git a/sdk/constructive-cli/src/compute/cli/commands/platform-build-step.ts b/sdk/constructive-cli/src/compute/cli/commands/platform-build-step.ts new file mode 100644 index 0000000000..dc0844df34 --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/platform-build-step.ts @@ -0,0 +1,539 @@ +/** + * CLI commands for PlatformBuildStep + * @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 { + CreatePlatformBuildStepInput, + PlatformBuildStepPatch, + PlatformBuildStepSelect, + PlatformBuildStepFilter, + PlatformBuildStepOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + buildId: 'uuid', + createdByPrincipal: 'uuid', + exitCode: 'int', + finishedAt: 'string', + id: 'uuid', + kind: 'string', + logBytes: 'int', + logOffset: 'int', + name: 'string', + parentSeq: 'int', + recordedAt: 'string', + seq: 'int', + startedAt: 'string', + status: 'string', + summary: 'json', +}; +const usage = + '\nplatform-build-step \n\nCommands:\n list List platformBuildStep records\n find-first Find first matching platformBuildStep record\n get Get a platformBuildStep by ID\n create Create a new platformBuildStep\n update Update an existing platformBuildStep\n delete Delete a platformBuildStep\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 = { + buildId: true, + createdByPrincipal: true, + exitCode: true, + finishedAt: true, + id: true, + kind: true, + logBytes: true, + logOffset: true, + name: true, + parentSeq: true, + recordedAt: true, + seq: true, + startedAt: true, + status: true, + summary: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: PlatformBuildStepSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformBuildStep.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 = { + buildId: true, + createdByPrincipal: true, + exitCode: true, + finishedAt: true, + id: true, + kind: true, + logBytes: true, + logOffset: true, + name: true, + parentSeq: true, + recordedAt: true, + seq: true, + startedAt: true, + status: true, + summary: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: PlatformBuildStepSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformBuildStep.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.platformBuildStep + .findOne({ + id: answers.id as string, + select: { + buildId: true, + createdByPrincipal: true, + exitCode: true, + finishedAt: true, + id: true, + kind: true, + logBytes: true, + logOffset: true, + name: true, + parentSeq: true, + recordedAt: true, + seq: true, + startedAt: true, + status: true, + summary: 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: 'buildId', + message: 'buildId', + required: true, + }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'exitCode', + message: 'exitCode', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'finishedAt', + message: 'finishedAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'kind', + message: 'kind', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'logBytes', + message: 'logBytes', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'logOffset', + message: 'logOffset', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'name', + message: 'name', + required: true, + }, + { + type: 'text', + name: 'parentSeq', + message: 'parentSeq', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'recordedAt', + message: 'recordedAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'seq', + message: 'seq', + required: true, + }, + { + type: 'text', + name: 'startedAt', + message: 'startedAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'status', + message: 'status', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'summary', + message: 'summary', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreatePlatformBuildStepInput['platformBuildStep']; + const client = getClient(); + const result = await client.platformBuildStep + .create({ + data: { + buildId: cleanedData.buildId, + createdByPrincipal: cleanedData.createdByPrincipal, + exitCode: cleanedData.exitCode, + finishedAt: cleanedData.finishedAt, + kind: cleanedData.kind, + logBytes: cleanedData.logBytes, + logOffset: cleanedData.logOffset, + name: cleanedData.name, + parentSeq: cleanedData.parentSeq, + recordedAt: cleanedData.recordedAt, + seq: cleanedData.seq, + startedAt: cleanedData.startedAt, + status: cleanedData.status, + summary: cleanedData.summary, + }, + select: { + buildId: true, + createdByPrincipal: true, + exitCode: true, + finishedAt: true, + id: true, + kind: true, + logBytes: true, + logOffset: true, + name: true, + parentSeq: true, + recordedAt: true, + seq: true, + startedAt: true, + status: true, + summary: 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: 'recordedAt', + message: 'recordedAt', + required: true, + }, + { + type: 'text', + name: 'buildId', + message: 'buildId', + required: false, + }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'exitCode', + message: 'exitCode', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'finishedAt', + message: 'finishedAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'kind', + message: 'kind', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'logBytes', + message: 'logBytes', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'logOffset', + message: 'logOffset', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'name', + message: 'name', + required: false, + }, + { + type: 'text', + name: 'parentSeq', + message: 'parentSeq', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'seq', + message: 'seq', + required: false, + }, + { + type: 'text', + name: 'startedAt', + message: 'startedAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'status', + message: 'status', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'summary', + message: 'summary', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as PlatformBuildStepPatch; + const client = getClient(); + const result = await client.platformBuildStep + .update({ + where: { + id: answers.id as string, + recordedAt: answers.recordedAt as string, + }, + data: { + buildId: cleanedData.buildId, + createdByPrincipal: cleanedData.createdByPrincipal, + exitCode: cleanedData.exitCode, + finishedAt: cleanedData.finishedAt, + kind: cleanedData.kind, + logBytes: cleanedData.logBytes, + logOffset: cleanedData.logOffset, + name: cleanedData.name, + parentSeq: cleanedData.parentSeq, + seq: cleanedData.seq, + startedAt: cleanedData.startedAt, + status: cleanedData.status, + summary: cleanedData.summary, + }, + select: { + buildId: true, + createdByPrincipal: true, + exitCode: true, + finishedAt: true, + id: true, + kind: true, + logBytes: true, + logOffset: true, + name: true, + parentSeq: true, + recordedAt: true, + seq: true, + startedAt: true, + status: true, + summary: 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, + }, + { + type: 'text', + name: 'recordedAt', + message: 'recordedAt', + required: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const client = getClient(); + const result = await client.platformBuildStep + .delete({ + where: { + id: answers.id as string, + recordedAt: answers.recordedAt 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/compute/cli/commands/platform-build.ts b/sdk/constructive-cli/src/compute/cli/commands/platform-build.ts new file mode 100644 index 0000000000..41f5e875cf --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/platform-build.ts @@ -0,0 +1,659 @@ +/** + * CLI commands for PlatformBuild + * @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 { + CreatePlatformBuildInput, + PlatformBuildPatch, + PlatformBuildSelect, + PlatformBuildFilter, + PlatformBuildOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + actorId: 'uuid', + attempt: 'int', + commitSha: 'string', + conclusion: 'string', + createdAt: 'string', + createdByPrincipal: 'uuid', + eventId: 'uuid', + finishedAt: 'string', + id: 'uuid', + imageRef: 'string', + jobId: 'int', + logs: 'string', + matrixKey: 'string', + metadata: 'json', + proposalId: 'uuid', + ref: 'string', + repositoryId: 'uuid', + startedAt: 'string', + status: 'string', + updatedAt: 'string', + updatedByPrincipal: 'uuid', + workflowId: 'uuid', +}; +const usage = + '\nplatform-build \n\nCommands:\n list List platformBuild records\n find-first Find first matching platformBuild record\n get Get a platformBuild by ID\n create Create a new platformBuild\n update Update an existing platformBuild\n delete Delete a platformBuild\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 = { + actorId: true, + attempt: true, + commitSha: true, + conclusion: true, + createdAt: true, + createdByPrincipal: true, + eventId: true, + finishedAt: true, + id: true, + imageRef: true, + jobId: true, + logs: true, + matrixKey: true, + metadata: true, + proposalId: true, + ref: true, + repositoryId: true, + startedAt: true, + status: true, + updatedAt: true, + updatedByPrincipal: true, + workflowId: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: PlatformBuildSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformBuild.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 = { + actorId: true, + attempt: true, + commitSha: true, + conclusion: true, + createdAt: true, + createdByPrincipal: true, + eventId: true, + finishedAt: true, + id: true, + imageRef: true, + jobId: true, + logs: true, + matrixKey: true, + metadata: true, + proposalId: true, + ref: true, + repositoryId: true, + startedAt: true, + status: true, + updatedAt: true, + updatedByPrincipal: true, + workflowId: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: PlatformBuildSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformBuild.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.platformBuild + .findOne({ + id: answers.id as string, + select: { + actorId: true, + attempt: true, + commitSha: true, + conclusion: true, + createdAt: true, + createdByPrincipal: true, + eventId: true, + finishedAt: true, + id: true, + imageRef: true, + jobId: true, + logs: true, + matrixKey: true, + metadata: true, + proposalId: true, + ref: true, + repositoryId: true, + startedAt: true, + status: true, + updatedAt: true, + updatedByPrincipal: true, + workflowId: 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: 'actorId', + message: 'actorId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'attempt', + message: 'attempt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'commitSha', + message: 'commitSha', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'conclusion', + message: 'conclusion', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'eventId', + message: 'eventId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'finishedAt', + message: 'finishedAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'imageRef', + message: 'imageRef', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'jobId', + message: 'jobId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'logs', + message: 'logs', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'matrixKey', + message: 'matrixKey', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'metadata', + message: 'metadata', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'proposalId', + message: 'proposalId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'ref', + message: 'ref', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'repositoryId', + message: 'repositoryId', + required: true, + }, + { + type: 'text', + name: 'startedAt', + message: 'startedAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'status', + message: 'status', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'workflowId', + message: 'workflowId', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreatePlatformBuildInput['platformBuild']; + const client = getClient(); + const result = await client.platformBuild + .create({ + data: { + actorId: cleanedData.actorId, + attempt: cleanedData.attempt, + commitSha: cleanedData.commitSha, + conclusion: cleanedData.conclusion, + createdByPrincipal: cleanedData.createdByPrincipal, + eventId: cleanedData.eventId, + finishedAt: cleanedData.finishedAt, + imageRef: cleanedData.imageRef, + jobId: cleanedData.jobId, + logs: cleanedData.logs, + matrixKey: cleanedData.matrixKey, + metadata: cleanedData.metadata, + proposalId: cleanedData.proposalId, + ref: cleanedData.ref, + repositoryId: cleanedData.repositoryId, + startedAt: cleanedData.startedAt, + status: cleanedData.status, + updatedByPrincipal: cleanedData.updatedByPrincipal, + workflowId: cleanedData.workflowId, + }, + select: { + actorId: true, + attempt: true, + commitSha: true, + conclusion: true, + createdAt: true, + createdByPrincipal: true, + eventId: true, + finishedAt: true, + id: true, + imageRef: true, + jobId: true, + logs: true, + matrixKey: true, + metadata: true, + proposalId: true, + ref: true, + repositoryId: true, + startedAt: true, + status: true, + updatedAt: true, + updatedByPrincipal: true, + workflowId: 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: 'actorId', + message: 'actorId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'attempt', + message: 'attempt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'commitSha', + message: 'commitSha', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'conclusion', + message: 'conclusion', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'eventId', + message: 'eventId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'finishedAt', + message: 'finishedAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'imageRef', + message: 'imageRef', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'jobId', + message: 'jobId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'logs', + message: 'logs', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'matrixKey', + message: 'matrixKey', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'metadata', + message: 'metadata', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'proposalId', + message: 'proposalId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'ref', + message: 'ref', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'repositoryId', + message: 'repositoryId', + required: false, + }, + { + type: 'text', + name: 'startedAt', + message: 'startedAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'status', + message: 'status', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'workflowId', + message: 'workflowId', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as PlatformBuildPatch; + const client = getClient(); + const result = await client.platformBuild + .update({ + where: { + id: answers.id as string, + }, + data: { + actorId: cleanedData.actorId, + attempt: cleanedData.attempt, + commitSha: cleanedData.commitSha, + conclusion: cleanedData.conclusion, + createdByPrincipal: cleanedData.createdByPrincipal, + eventId: cleanedData.eventId, + finishedAt: cleanedData.finishedAt, + imageRef: cleanedData.imageRef, + jobId: cleanedData.jobId, + logs: cleanedData.logs, + matrixKey: cleanedData.matrixKey, + metadata: cleanedData.metadata, + proposalId: cleanedData.proposalId, + ref: cleanedData.ref, + repositoryId: cleanedData.repositoryId, + startedAt: cleanedData.startedAt, + status: cleanedData.status, + updatedByPrincipal: cleanedData.updatedByPrincipal, + workflowId: cleanedData.workflowId, + }, + select: { + actorId: true, + attempt: true, + commitSha: true, + conclusion: true, + createdAt: true, + createdByPrincipal: true, + eventId: true, + finishedAt: true, + id: true, + imageRef: true, + jobId: true, + logs: true, + matrixKey: true, + metadata: true, + proposalId: true, + ref: true, + repositoryId: true, + startedAt: true, + status: true, + updatedAt: true, + updatedByPrincipal: true, + workflowId: 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.platformBuild + .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/compute/cli/commands/platform-builder-binding.ts b/sdk/constructive-cli/src/compute/cli/commands/platform-builder-binding.ts new file mode 100644 index 0000000000..a58bb731f5 --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/platform-builder-binding.ts @@ -0,0 +1,489 @@ +/** + * CLI commands for PlatformBuilderBinding + * @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 { + CreatePlatformBuilderBindingInput, + PlatformBuilderBindingPatch, + PlatformBuilderBindingSelect, + PlatformBuilderBindingFilter, + PlatformBuilderBindingOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + createdAt: 'string', + createdBy: 'uuid', + createdByPrincipal: 'uuid', + id: 'uuid', + installationId: 'uuid', + lastError: 'string', + metadata: 'json', + namespaceId: 'uuid', + observedHost: 'string', + realm: 'string', + status: 'string', + updatedAt: 'string', + updatedBy: 'uuid', + updatedByPrincipal: 'uuid', +}; +const usage = + '\nplatform-builder-binding \n\nCommands:\n list List platformBuilderBinding records\n find-first Find first matching platformBuilderBinding record\n get Get a platformBuilderBinding by ID\n create Create a new platformBuilderBinding\n update Update an existing platformBuilderBinding\n delete Delete a platformBuilderBinding\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, + createdBy: true, + createdByPrincipal: true, + id: true, + installationId: true, + lastError: true, + metadata: true, + namespaceId: true, + observedHost: true, + realm: true, + status: true, + updatedAt: true, + updatedBy: true, + updatedByPrincipal: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs< + PlatformBuilderBindingSelect, + PlatformBuilderBindingFilter, + PlatformBuilderBindingOrderBy + > & { + select: PlatformBuilderBindingSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformBuilderBinding.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, + createdBy: true, + createdByPrincipal: true, + id: true, + installationId: true, + lastError: true, + metadata: true, + namespaceId: true, + observedHost: true, + realm: true, + status: true, + updatedAt: true, + updatedBy: true, + updatedByPrincipal: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs< + PlatformBuilderBindingSelect, + PlatformBuilderBindingFilter, + PlatformBuilderBindingOrderBy + > & { + select: PlatformBuilderBindingSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformBuilderBinding.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.platformBuilderBinding + .findOne({ + id: answers.id as string, + select: { + createdAt: true, + createdBy: true, + createdByPrincipal: true, + id: true, + installationId: true, + lastError: true, + metadata: true, + namespaceId: true, + observedHost: true, + realm: true, + status: true, + updatedAt: true, + updatedBy: true, + updatedByPrincipal: 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: 'createdBy', + message: 'createdBy', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'installationId', + message: 'installationId', + required: true, + }, + { + type: 'text', + name: 'lastError', + message: 'lastError', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'metadata', + message: 'metadata', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'namespaceId', + message: 'namespaceId', + required: true, + }, + { + type: 'text', + name: 'observedHost', + message: 'observedHost', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'realm', + message: 'realm', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'status', + message: 'status', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'updatedBy', + message: 'updatedBy', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreatePlatformBuilderBindingInput['platformBuilderBinding']; + const client = getClient(); + const result = await client.platformBuilderBinding + .create({ + data: { + createdBy: cleanedData.createdBy, + createdByPrincipal: cleanedData.createdByPrincipal, + installationId: cleanedData.installationId, + lastError: cleanedData.lastError, + metadata: cleanedData.metadata, + namespaceId: cleanedData.namespaceId, + observedHost: cleanedData.observedHost, + realm: cleanedData.realm, + status: cleanedData.status, + updatedBy: cleanedData.updatedBy, + updatedByPrincipal: cleanedData.updatedByPrincipal, + }, + select: { + createdAt: true, + createdBy: true, + createdByPrincipal: true, + id: true, + installationId: true, + lastError: true, + metadata: true, + namespaceId: true, + observedHost: true, + realm: true, + status: true, + updatedAt: true, + updatedBy: true, + updatedByPrincipal: 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: 'createdBy', + message: 'createdBy', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'installationId', + message: 'installationId', + required: false, + }, + { + type: 'text', + name: 'lastError', + message: 'lastError', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'metadata', + message: 'metadata', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'namespaceId', + message: 'namespaceId', + required: false, + }, + { + type: 'text', + name: 'observedHost', + message: 'observedHost', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'realm', + message: 'realm', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'status', + message: 'status', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'updatedBy', + message: 'updatedBy', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as PlatformBuilderBindingPatch; + const client = getClient(); + const result = await client.platformBuilderBinding + .update({ + where: { + id: answers.id as string, + }, + data: { + createdBy: cleanedData.createdBy, + createdByPrincipal: cleanedData.createdByPrincipal, + installationId: cleanedData.installationId, + lastError: cleanedData.lastError, + metadata: cleanedData.metadata, + namespaceId: cleanedData.namespaceId, + observedHost: cleanedData.observedHost, + realm: cleanedData.realm, + status: cleanedData.status, + updatedBy: cleanedData.updatedBy, + updatedByPrincipal: cleanedData.updatedByPrincipal, + }, + select: { + createdAt: true, + createdBy: true, + createdByPrincipal: true, + id: true, + installationId: true, + lastError: true, + metadata: true, + namespaceId: true, + observedHost: true, + realm: true, + status: true, + updatedAt: true, + updatedBy: true, + updatedByPrincipal: 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.platformBuilderBinding + .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/compute/cli/commands/platform-function-definition.ts b/sdk/constructive-cli/src/compute/cli/commands/platform-function-definition.ts index 66df7440ef..382ffb7b4e 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 @@ -17,12 +17,14 @@ import type { import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { accessChannels: 'string', + anonymousCallable: 'boolean', billable: 'boolean', category: 'string', concurrency: 'int', cpuLimitMillicores: 'int', cpuRequestMillicores: 'int', createdAt: 'string', + createdByPrincipal: 'uuid', description: 'string', fnCategory: 'string', functionColumns: 'json', @@ -46,8 +48,10 @@ const fieldSchema: FieldSchema = { publishedAt: 'string', queueName: 'string', requiredBuckets: 'string', + requiredCapabilities: 'json', requiredConfigs: 'string', requiredModels: 'string', + requiredModules: 'string', requiredSecrets: 'string', resources: 'json', runtime: 'string', @@ -59,6 +63,7 @@ const fieldSchema: FieldSchema = { taskIdentifier: 'string', timeoutSeconds: 'int', updatedAt: 'string', + updatedByPrincipal: 'uuid', volatile: 'boolean', }; const usage = @@ -113,10 +118,12 @@ async function handleList(argv: Partial>, _prompter: Inq try { const defaultSelect = { accessChannels: true, + anonymousCallable: true, billable: true, category: true, concurrency: true, createdAt: true, + createdByPrincipal: true, description: true, fnCategory: true, functionColumns: true, @@ -138,8 +145,10 @@ async function handleList(argv: Partial>, _prompter: Inq publishedAt: true, queueName: true, requiredBuckets: true, + requiredCapabilities: true, requiredConfigs: true, requiredModels: true, + requiredModules: true, requiredSecrets: true, resources: true, runtime: true, @@ -150,6 +159,7 @@ async function handleList(argv: Partial>, _prompter: Inq targetSchema: true, timeoutSeconds: true, updatedAt: true, + updatedByPrincipal: true, volatile: true, }; const findManyArgs = parseFindManyArgs< @@ -176,10 +186,12 @@ async function handleFindFirst(argv: Partial>, _prompter try { const defaultSelect = { accessChannels: true, + anonymousCallable: true, billable: true, category: true, concurrency: true, createdAt: true, + createdByPrincipal: true, description: true, fnCategory: true, functionColumns: true, @@ -201,8 +213,10 @@ async function handleFindFirst(argv: Partial>, _prompter publishedAt: true, queueName: true, requiredBuckets: true, + requiredCapabilities: true, requiredConfigs: true, requiredModels: true, + requiredModules: true, requiredSecrets: true, resources: true, runtime: true, @@ -213,6 +227,7 @@ async function handleFindFirst(argv: Partial>, _prompter targetSchema: true, timeoutSeconds: true, updatedAt: true, + updatedByPrincipal: true, volatile: true, }; const findFirstArgs = parseFindFirstArgs< @@ -251,10 +266,12 @@ async function handleGet(argv: Partial>, prompter: Inqui id: answers.id as string, select: { accessChannels: true, + anonymousCallable: true, billable: true, category: true, concurrency: true, createdAt: true, + createdByPrincipal: true, description: true, fnCategory: true, functionColumns: true, @@ -276,8 +293,10 @@ async function handleGet(argv: Partial>, prompter: Inqui publishedAt: true, queueName: true, requiredBuckets: true, + requiredCapabilities: true, requiredConfigs: true, requiredModels: true, + requiredModules: true, requiredSecrets: true, resources: true, runtime: true, @@ -288,6 +307,7 @@ async function handleGet(argv: Partial>, prompter: Inqui targetSchema: true, timeoutSeconds: true, updatedAt: true, + updatedByPrincipal: true, volatile: true, }, }) @@ -311,6 +331,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'boolean', + name: 'anonymousCallable', + message: 'anonymousCallable', + required: false, + skipPrompt: true, + }, { type: 'boolean', name: 'billable', @@ -331,6 +358,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'description', @@ -470,6 +504,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'json', + name: 'requiredCapabilities', + message: 'requiredCapabilities', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'requiredConfigs', @@ -484,6 +525,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', @@ -547,6 +595,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, { type: 'boolean', name: 'volatile', @@ -565,9 +620,11 @@ async function handleCreate(argv: Partial>, prompter: In .create({ data: { accessChannels: cleanedData.accessChannels, + anonymousCallable: cleanedData.anonymousCallable, billable: cleanedData.billable, category: cleanedData.category, concurrency: cleanedData.concurrency, + createdByPrincipal: cleanedData.createdByPrincipal, description: cleanedData.description, fnCategory: cleanedData.fnCategory, functionColumns: cleanedData.functionColumns, @@ -588,8 +645,10 @@ async function handleCreate(argv: Partial>, prompter: In publishedAt: cleanedData.publishedAt, queueName: cleanedData.queueName, requiredBuckets: cleanedData.requiredBuckets, + requiredCapabilities: cleanedData.requiredCapabilities, requiredConfigs: cleanedData.requiredConfigs, requiredModels: cleanedData.requiredModels, + requiredModules: cleanedData.requiredModules, requiredSecrets: cleanedData.requiredSecrets, resources: cleanedData.resources, runtime: cleanedData.runtime, @@ -599,14 +658,17 @@ async function handleCreate(argv: Partial>, prompter: In targetFunction: cleanedData.targetFunction, targetSchema: cleanedData.targetSchema, timeoutSeconds: cleanedData.timeoutSeconds, + updatedByPrincipal: cleanedData.updatedByPrincipal, volatile: cleanedData.volatile, }, select: { accessChannels: true, + anonymousCallable: true, billable: true, category: true, concurrency: true, createdAt: true, + createdByPrincipal: true, description: true, fnCategory: true, functionColumns: true, @@ -628,8 +690,10 @@ async function handleCreate(argv: Partial>, prompter: In publishedAt: true, queueName: true, requiredBuckets: true, + requiredCapabilities: true, requiredConfigs: true, requiredModels: true, + requiredModules: true, requiredSecrets: true, resources: true, runtime: true, @@ -640,6 +704,7 @@ async function handleCreate(argv: Partial>, prompter: In targetSchema: true, timeoutSeconds: true, updatedAt: true, + updatedByPrincipal: true, volatile: true, }, }) @@ -669,6 +734,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'boolean', + name: 'anonymousCallable', + message: 'anonymousCallable', + required: false, + skipPrompt: true, + }, { type: 'boolean', name: 'billable', @@ -689,6 +761,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'description', @@ -828,6 +907,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'json', + name: 'requiredCapabilities', + message: 'requiredCapabilities', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'requiredConfigs', @@ -842,6 +928,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', @@ -905,6 +998,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, { type: 'boolean', name: 'volatile', @@ -923,9 +1023,11 @@ async function handleUpdate(argv: Partial>, prompter: In }, data: { accessChannels: cleanedData.accessChannels, + anonymousCallable: cleanedData.anonymousCallable, billable: cleanedData.billable, category: cleanedData.category, concurrency: cleanedData.concurrency, + createdByPrincipal: cleanedData.createdByPrincipal, description: cleanedData.description, fnCategory: cleanedData.fnCategory, functionColumns: cleanedData.functionColumns, @@ -946,8 +1048,10 @@ async function handleUpdate(argv: Partial>, prompter: In publishedAt: cleanedData.publishedAt, queueName: cleanedData.queueName, requiredBuckets: cleanedData.requiredBuckets, + requiredCapabilities: cleanedData.requiredCapabilities, requiredConfigs: cleanedData.requiredConfigs, requiredModels: cleanedData.requiredModels, + requiredModules: cleanedData.requiredModules, requiredSecrets: cleanedData.requiredSecrets, resources: cleanedData.resources, runtime: cleanedData.runtime, @@ -957,14 +1061,17 @@ async function handleUpdate(argv: Partial>, prompter: In targetFunction: cleanedData.targetFunction, targetSchema: cleanedData.targetSchema, timeoutSeconds: cleanedData.timeoutSeconds, + updatedByPrincipal: cleanedData.updatedByPrincipal, volatile: cleanedData.volatile, }, select: { accessChannels: true, + anonymousCallable: true, billable: true, category: true, concurrency: true, createdAt: true, + createdByPrincipal: true, description: true, fnCategory: true, functionColumns: true, @@ -986,8 +1093,10 @@ async function handleUpdate(argv: Partial>, prompter: In publishedAt: true, queueName: true, requiredBuckets: true, + requiredCapabilities: true, requiredConfigs: true, requiredModels: true, + requiredModules: true, requiredSecrets: true, resources: true, runtime: true, @@ -998,6 +1107,7 @@ async function handleUpdate(argv: Partial>, prompter: In targetSchema: true, timeoutSeconds: true, updatedAt: true, + updatedByPrincipal: true, volatile: 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..566adc1a38 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 @@ -19,6 +19,7 @@ const fieldSchema: FieldSchema = { annotations: 'json', concurrency: 'int', createdAt: 'string', + createdByPrincipal: 'uuid', errorCount: 'int', handlerName: 'string', id: 'uuid', @@ -28,6 +29,7 @@ const fieldSchema: FieldSchema = { lastError: 'string', lastErrorAt: 'string', namespaceId: 'uuid', + realm: 'string', resources: 'json', revision: 'int', scaleMax: 'int', @@ -37,6 +39,7 @@ const fieldSchema: FieldSchema = { status: 'string', timeoutSeconds: 'int', updatedAt: 'string', + updatedByPrincipal: 'uuid', }; const usage = '\nplatform-function-deployment \n\nCommands:\n list List platformFunctionDeployment records\n find-first Find first matching platformFunctionDeployment record\n get Get a platformFunctionDeployment by ID\n create Create a new platformFunctionDeployment\n update Update an existing platformFunctionDeployment\n delete Delete a platformFunctionDeployment\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'; @@ -92,6 +95,7 @@ async function handleList(argv: Partial>, _prompter: Inq annotations: true, concurrency: true, createdAt: true, + createdByPrincipal: true, errorCount: true, handlerName: true, id: true, @@ -101,6 +105,7 @@ async function handleList(argv: Partial>, _prompter: Inq lastError: true, lastErrorAt: true, namespaceId: true, + realm: true, resources: true, revision: true, scaleMax: true, @@ -110,6 +115,7 @@ async function handleList(argv: Partial>, _prompter: Inq status: true, timeoutSeconds: true, updatedAt: true, + updatedByPrincipal: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs< @@ -137,6 +143,7 @@ async function handleFindFirst(argv: Partial>, _prompter annotations: true, concurrency: true, createdAt: true, + createdByPrincipal: true, errorCount: true, handlerName: true, id: true, @@ -146,6 +153,7 @@ async function handleFindFirst(argv: Partial>, _prompter lastError: true, lastErrorAt: true, namespaceId: true, + realm: true, resources: true, revision: true, scaleMax: true, @@ -155,6 +163,7 @@ async function handleFindFirst(argv: Partial>, _prompter status: true, timeoutSeconds: true, updatedAt: true, + updatedByPrincipal: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs< @@ -194,6 +203,7 @@ async function handleGet(argv: Partial>, prompter: Inqui annotations: true, concurrency: true, createdAt: true, + createdByPrincipal: true, errorCount: true, handlerName: true, id: true, @@ -203,6 +213,7 @@ async function handleGet(argv: Partial>, prompter: Inqui lastError: true, lastErrorAt: true, namespaceId: true, + realm: true, resources: true, revision: true, scaleMax: true, @@ -212,6 +223,7 @@ async function handleGet(argv: Partial>, prompter: Inqui status: true, timeoutSeconds: true, updatedAt: true, + updatedByPrincipal: true, }, }) .execute(); @@ -241,6 +253,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'errorCount', @@ -295,6 +314,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', @@ -351,6 +377,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined( @@ -363,6 +396,7 @@ async function handleCreate(argv: Partial>, prompter: In data: { annotations: cleanedData.annotations, concurrency: cleanedData.concurrency, + createdByPrincipal: cleanedData.createdByPrincipal, errorCount: cleanedData.errorCount, handlerName: cleanedData.handlerName, image: cleanedData.image, @@ -371,6 +405,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, @@ -379,11 +414,13 @@ async function handleCreate(argv: Partial>, prompter: In serviceUrl: cleanedData.serviceUrl, status: cleanedData.status, timeoutSeconds: cleanedData.timeoutSeconds, + updatedByPrincipal: cleanedData.updatedByPrincipal, }, select: { annotations: true, concurrency: true, createdAt: true, + createdByPrincipal: true, errorCount: true, handlerName: true, id: true, @@ -393,6 +430,7 @@ async function handleCreate(argv: Partial>, prompter: In lastError: true, lastErrorAt: true, namespaceId: true, + realm: true, resources: true, revision: true, scaleMax: true, @@ -402,6 +440,7 @@ async function handleCreate(argv: Partial>, prompter: In status: true, timeoutSeconds: true, updatedAt: true, + updatedByPrincipal: true, }, }) .execute(); @@ -437,6 +476,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'errorCount', @@ -491,6 +537,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', @@ -547,6 +600,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as PlatformFunctionDeploymentPatch; @@ -559,6 +619,7 @@ async function handleUpdate(argv: Partial>, prompter: In data: { annotations: cleanedData.annotations, concurrency: cleanedData.concurrency, + createdByPrincipal: cleanedData.createdByPrincipal, errorCount: cleanedData.errorCount, handlerName: cleanedData.handlerName, image: cleanedData.image, @@ -567,6 +628,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, @@ -575,11 +637,13 @@ async function handleUpdate(argv: Partial>, prompter: In serviceUrl: cleanedData.serviceUrl, status: cleanedData.status, timeoutSeconds: cleanedData.timeoutSeconds, + updatedByPrincipal: cleanedData.updatedByPrincipal, }, select: { annotations: true, concurrency: true, createdAt: true, + createdByPrincipal: true, errorCount: true, handlerName: true, id: true, @@ -589,6 +653,7 @@ async function handleUpdate(argv: Partial>, prompter: In lastError: true, lastErrorAt: true, namespaceId: true, + realm: true, resources: true, revision: true, scaleMax: true, @@ -598,6 +663,7 @@ async function handleUpdate(argv: Partial>, prompter: In status: true, timeoutSeconds: true, updatedAt: true, + updatedByPrincipal: true, }, }) .execute(); diff --git a/sdk/constructive-cli/src/compute/cli/commands/platform-function-invocation.ts b/sdk/constructive-cli/src/compute/cli/commands/platform-function-invocation.ts index f37f7300ae..ccdab0b105 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/platform-function-invocation.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/platform-function-invocation.ts @@ -21,16 +21,21 @@ const fieldSchema: FieldSchema = { channel: 'string', completedAt: 'string', createdAt: 'string', + createdByPrincipal: 'uuid', databaseId: 'uuid', definitionScope: 'string', durationMs: 'int', + entityId: 'uuid', + entityType: 'string', error: 'string', functionDefinitionId: 'uuid', graphExecutionId: 'uuid', id: 'uuid', jobId: 'int', + organizationId: 'uuid', parentInvocationId: 'uuid', payload: 'json', + principalId: 'uuid', provenance: 'json', result: 'json', startedAt: 'string', @@ -93,16 +98,21 @@ async function handleList(argv: Partial>, _prompter: Inq channel: true, completedAt: true, createdAt: true, + createdByPrincipal: true, databaseId: true, definitionScope: true, durationMs: true, + entityId: true, + entityType: true, error: true, functionDefinitionId: true, graphExecutionId: true, id: true, jobId: true, + organizationId: true, parentInvocationId: true, payload: true, + principalId: true, provenance: true, result: true, startedAt: true, @@ -137,16 +147,21 @@ async function handleFindFirst(argv: Partial>, _prompter channel: true, completedAt: true, createdAt: true, + createdByPrincipal: true, databaseId: true, definitionScope: true, durationMs: true, + entityId: true, + entityType: true, error: true, functionDefinitionId: true, graphExecutionId: true, id: true, jobId: true, + organizationId: true, parentInvocationId: true, payload: true, + principalId: true, provenance: true, result: true, startedAt: true, @@ -193,16 +208,21 @@ async function handleGet(argv: Partial>, prompter: Inqui channel: true, completedAt: true, createdAt: true, + createdByPrincipal: true, databaseId: true, definitionScope: true, durationMs: true, + entityId: true, + entityType: true, error: true, functionDefinitionId: true, graphExecutionId: true, id: true, jobId: true, + organizationId: true, parentInvocationId: true, payload: true, + principalId: true, provenance: true, result: true, startedAt: true, @@ -241,8 +261,7 @@ async function handleCreate(argv: Partial>, prompter: In type: 'text', name: 'channel', message: 'channel', - required: false, - skipPrompt: true, + required: true, }, { type: 'text', @@ -251,6 +270,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'databaseId', @@ -272,6 +298,20 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'entityId', + message: 'entityId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'entityType', + message: 'entityType', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'error', @@ -300,6 +340,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'organizationId', + message: 'organizationId', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'parentInvocationId', @@ -314,6 +361,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'principalId', + message: 'principalId', + required: false, + skipPrompt: true, + }, { type: 'json', name: 'provenance', @@ -362,15 +416,20 @@ async function handleCreate(argv: Partial>, prompter: In apiBindingId: cleanedData.apiBindingId, channel: cleanedData.channel, completedAt: cleanedData.completedAt, + createdByPrincipal: cleanedData.createdByPrincipal, databaseId: cleanedData.databaseId, definitionScope: cleanedData.definitionScope, durationMs: cleanedData.durationMs, + entityId: cleanedData.entityId, + entityType: cleanedData.entityType, error: cleanedData.error, functionDefinitionId: cleanedData.functionDefinitionId, graphExecutionId: cleanedData.graphExecutionId, jobId: cleanedData.jobId, + organizationId: cleanedData.organizationId, parentInvocationId: cleanedData.parentInvocationId, payload: cleanedData.payload, + principalId: cleanedData.principalId, provenance: cleanedData.provenance, result: cleanedData.result, startedAt: cleanedData.startedAt, @@ -383,16 +442,21 @@ async function handleCreate(argv: Partial>, prompter: In channel: true, completedAt: true, createdAt: true, + createdByPrincipal: true, databaseId: true, definitionScope: true, durationMs: true, + entityId: true, + entityType: true, error: true, functionDefinitionId: true, graphExecutionId: true, id: true, jobId: true, + organizationId: true, parentInvocationId: true, payload: true, + principalId: true, provenance: true, result: true, startedAt: true, @@ -444,7 +508,6 @@ async function handleUpdate(argv: Partial>, prompter: In name: 'channel', message: 'channel', required: false, - skipPrompt: true, }, { type: 'text', @@ -453,6 +516,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'databaseId', @@ -474,6 +544,20 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'entityId', + message: 'entityId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'entityType', + message: 'entityType', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'error', @@ -502,6 +586,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'organizationId', + message: 'organizationId', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'parentInvocationId', @@ -516,6 +607,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'principalId', + message: 'principalId', + required: false, + skipPrompt: true, + }, { type: 'json', name: 'provenance', @@ -565,15 +663,20 @@ async function handleUpdate(argv: Partial>, prompter: In apiBindingId: cleanedData.apiBindingId, channel: cleanedData.channel, completedAt: cleanedData.completedAt, + createdByPrincipal: cleanedData.createdByPrincipal, databaseId: cleanedData.databaseId, definitionScope: cleanedData.definitionScope, durationMs: cleanedData.durationMs, + entityId: cleanedData.entityId, + entityType: cleanedData.entityType, error: cleanedData.error, functionDefinitionId: cleanedData.functionDefinitionId, graphExecutionId: cleanedData.graphExecutionId, jobId: cleanedData.jobId, + organizationId: cleanedData.organizationId, parentInvocationId: cleanedData.parentInvocationId, payload: cleanedData.payload, + principalId: cleanedData.principalId, provenance: cleanedData.provenance, result: cleanedData.result, startedAt: cleanedData.startedAt, @@ -586,16 +689,21 @@ async function handleUpdate(argv: Partial>, prompter: In channel: true, completedAt: true, createdAt: true, + createdByPrincipal: true, databaseId: true, definitionScope: true, durationMs: true, + entityId: true, + entityType: true, error: true, functionDefinitionId: true, graphExecutionId: true, id: true, jobId: true, + organizationId: true, parentInvocationId: true, payload: true, + principalId: true, provenance: true, result: true, startedAt: true, diff --git a/sdk/constructive-cli/src/compute/cli/commands/platform-function-invocations-create-sync.ts b/sdk/constructive-cli/src/compute/cli/commands/platform-function-invocations-create-sync.ts new file mode 100644 index 0000000000..567a9b71b9 --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/platform-function-invocations-create-sync.ts @@ -0,0 +1,53 @@ +/** + * CLI command for mutation platformFunctionInvocationsCreateSync + * @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 { PlatformFunctionInvocationsCreateSyncVariables } from '../../orm/mutation'; +import type { PlatformFunctionInvocationsCreateSyncPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'platform-function-invocations-create-sync - platformFunctionInvocationsCreateSync\n\nUsage: platform-function-invocations-create-sync [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 + .platformFunctionInvocationsCreateSync( + parsedAnswers as unknown as PlatformFunctionInvocationsCreateSyncVariables, + { + select: selectFields, + } as unknown as { + select: PlatformFunctionInvocationsCreateSyncPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: platformFunctionInvocationsCreateSync'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/compute/cli/commands/platform-image-grant.ts b/sdk/constructive-cli/src/compute/cli/commands/platform-image-grant.ts new file mode 100644 index 0000000000..5a72c04f97 --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/platform-image-grant.ts @@ -0,0 +1,421 @@ +/** + * CLI commands for PlatformImageGrant + * @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 { + CreatePlatformImageGrantInput, + PlatformImageGrantPatch, + PlatformImageGrantSelect, + PlatformImageGrantFilter, + PlatformImageGrantOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + actions: 'string', + createdAt: 'string', + createdByPrincipal: 'uuid', + expiresAt: 'string', + grantedBy: 'uuid', + granteeKey: 'uuid', + granteeScope: 'string', + id: 'uuid', + imageId: 'uuid', + updatedAt: 'string', + updatedByPrincipal: 'uuid', +}; +const usage = + '\nplatform-image-grant \n\nCommands:\n list List platformImageGrant records\n find-first Find first matching platformImageGrant record\n get Get a platformImageGrant by ID\n create Create a new platformImageGrant\n update Update an existing platformImageGrant\n delete Delete a platformImageGrant\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 = { + actions: true, + createdAt: true, + createdByPrincipal: true, + expiresAt: true, + grantedBy: true, + granteeKey: true, + granteeScope: true, + id: true, + imageId: true, + updatedAt: true, + updatedByPrincipal: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs< + PlatformImageGrantSelect, + PlatformImageGrantFilter, + PlatformImageGrantOrderBy + > & { + select: PlatformImageGrantSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformImageGrant.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 = { + actions: true, + createdAt: true, + createdByPrincipal: true, + expiresAt: true, + grantedBy: true, + granteeKey: true, + granteeScope: true, + id: true, + imageId: true, + updatedAt: true, + updatedByPrincipal: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs< + PlatformImageGrantSelect, + PlatformImageGrantFilter, + PlatformImageGrantOrderBy + > & { + select: PlatformImageGrantSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformImageGrant.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.platformImageGrant + .findOne({ + id: answers.id as string, + select: { + actions: true, + createdAt: true, + createdByPrincipal: true, + expiresAt: true, + grantedBy: true, + granteeKey: true, + granteeScope: true, + id: true, + imageId: true, + updatedAt: true, + updatedByPrincipal: 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: 'actions', + message: 'actions', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'expiresAt', + message: 'expiresAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'grantedBy', + message: 'grantedBy', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'granteeKey', + message: 'granteeKey', + required: true, + }, + { + type: 'text', + name: 'granteeScope', + message: 'granteeScope', + required: true, + }, + { + type: 'text', + name: 'imageId', + message: 'imageId', + required: true, + }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreatePlatformImageGrantInput['platformImageGrant']; + const client = getClient(); + const result = await client.platformImageGrant + .create({ + data: { + actions: cleanedData.actions, + createdByPrincipal: cleanedData.createdByPrincipal, + expiresAt: cleanedData.expiresAt, + grantedBy: cleanedData.grantedBy, + granteeKey: cleanedData.granteeKey, + granteeScope: cleanedData.granteeScope, + imageId: cleanedData.imageId, + updatedByPrincipal: cleanedData.updatedByPrincipal, + }, + select: { + actions: true, + createdAt: true, + createdByPrincipal: true, + expiresAt: true, + grantedBy: true, + granteeKey: true, + granteeScope: true, + id: true, + imageId: true, + updatedAt: true, + updatedByPrincipal: 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: 'actions', + message: 'actions', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'expiresAt', + message: 'expiresAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'grantedBy', + message: 'grantedBy', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'granteeKey', + message: 'granteeKey', + required: false, + }, + { + type: 'text', + name: 'granteeScope', + message: 'granteeScope', + required: false, + }, + { + type: 'text', + name: 'imageId', + message: 'imageId', + required: false, + }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as PlatformImageGrantPatch; + const client = getClient(); + const result = await client.platformImageGrant + .update({ + where: { + id: answers.id as string, + }, + data: { + actions: cleanedData.actions, + createdByPrincipal: cleanedData.createdByPrincipal, + expiresAt: cleanedData.expiresAt, + grantedBy: cleanedData.grantedBy, + granteeKey: cleanedData.granteeKey, + granteeScope: cleanedData.granteeScope, + imageId: cleanedData.imageId, + updatedByPrincipal: cleanedData.updatedByPrincipal, + }, + select: { + actions: true, + createdAt: true, + createdByPrincipal: true, + expiresAt: true, + grantedBy: true, + granteeKey: true, + granteeScope: true, + id: true, + imageId: true, + updatedAt: true, + updatedByPrincipal: 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.platformImageGrant + .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/compute/cli/commands/platform-image.ts b/sdk/constructive-cli/src/compute/cli/commands/platform-image.ts new file mode 100644 index 0000000000..b446549af4 --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/platform-image.ts @@ -0,0 +1,569 @@ +/** + * CLI commands for PlatformImage + * @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 { + CreatePlatformImageInput, + PlatformImagePatch, + PlatformImageSelect, + PlatformImageFilter, + PlatformImageOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + createdAt: 'string', + createdByPrincipal: 'uuid', + description: 'string', + digest: 'string', + expiresAt: 'string', + id: 'uuid', + isPublished: 'boolean', + labels: 'json', + metadata: 'json', + name: 'string', + ownerId: 'uuid', + platformOnly: 'boolean', + registryHost: 'string', + repository: 'string', + runtime: 'string', + tag: 'string', + updatedAt: 'string', + updatedByPrincipal: 'uuid', +}; +const usage = + '\nplatform-image \n\nCommands:\n list List platformImage records\n find-first Find first matching platformImage record\n get Get a platformImage by ID\n create Create a new platformImage\n update Update an existing platformImage\n delete Delete a platformImage\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, + createdByPrincipal: true, + description: true, + digest: true, + expiresAt: true, + id: true, + isPublished: true, + labels: true, + metadata: true, + name: true, + ownerId: true, + platformOnly: true, + registryHost: true, + repository: true, + runtime: true, + tag: true, + updatedAt: true, + updatedByPrincipal: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: PlatformImageSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformImage.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, + createdByPrincipal: true, + description: true, + digest: true, + expiresAt: true, + id: true, + isPublished: true, + labels: true, + metadata: true, + name: true, + ownerId: true, + platformOnly: true, + registryHost: true, + repository: true, + runtime: true, + tag: true, + updatedAt: true, + updatedByPrincipal: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: PlatformImageSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformImage.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.platformImage + .findOne({ + id: answers.id as string, + select: { + createdAt: true, + createdByPrincipal: true, + description: true, + digest: true, + expiresAt: true, + id: true, + isPublished: true, + labels: true, + metadata: true, + name: true, + ownerId: true, + platformOnly: true, + registryHost: true, + repository: true, + runtime: true, + tag: true, + updatedAt: true, + updatedByPrincipal: 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: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'description', + message: 'description', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'digest', + message: 'digest', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'expiresAt', + message: 'expiresAt', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'isPublished', + message: 'isPublished', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'labels', + message: 'labels', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'metadata', + message: 'metadata', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'name', + message: 'name', + required: true, + }, + { + type: 'text', + name: 'ownerId', + message: 'ownerId', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'platformOnly', + message: 'platformOnly', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'registryHost', + message: 'registryHost', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'repository', + message: 'repository', + required: true, + }, + { + type: 'text', + name: 'runtime', + message: 'runtime', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'tag', + message: 'tag', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreatePlatformImageInput['platformImage']; + const client = getClient(); + const result = await client.platformImage + .create({ + data: { + createdByPrincipal: cleanedData.createdByPrincipal, + description: cleanedData.description, + digest: cleanedData.digest, + expiresAt: cleanedData.expiresAt, + isPublished: cleanedData.isPublished, + labels: cleanedData.labels, + metadata: cleanedData.metadata, + name: cleanedData.name, + ownerId: cleanedData.ownerId, + platformOnly: cleanedData.platformOnly, + registryHost: cleanedData.registryHost, + repository: cleanedData.repository, + runtime: cleanedData.runtime, + tag: cleanedData.tag, + updatedByPrincipal: cleanedData.updatedByPrincipal, + }, + select: { + createdAt: true, + createdByPrincipal: true, + description: true, + digest: true, + expiresAt: true, + id: true, + isPublished: true, + labels: true, + metadata: true, + name: true, + ownerId: true, + platformOnly: true, + registryHost: true, + repository: true, + runtime: true, + tag: true, + updatedAt: true, + updatedByPrincipal: 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: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'description', + message: 'description', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'digest', + message: 'digest', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'expiresAt', + message: 'expiresAt', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'isPublished', + message: 'isPublished', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'labels', + message: 'labels', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'metadata', + message: 'metadata', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'name', + message: 'name', + required: false, + }, + { + type: 'text', + name: 'ownerId', + message: 'ownerId', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'platformOnly', + message: 'platformOnly', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'registryHost', + message: 'registryHost', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'repository', + message: 'repository', + required: false, + }, + { + type: 'text', + name: 'runtime', + message: 'runtime', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'tag', + message: 'tag', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as PlatformImagePatch; + const client = getClient(); + const result = await client.platformImage + .update({ + where: { + id: answers.id as string, + }, + data: { + createdByPrincipal: cleanedData.createdByPrincipal, + description: cleanedData.description, + digest: cleanedData.digest, + expiresAt: cleanedData.expiresAt, + isPublished: cleanedData.isPublished, + labels: cleanedData.labels, + metadata: cleanedData.metadata, + name: cleanedData.name, + ownerId: cleanedData.ownerId, + platformOnly: cleanedData.platformOnly, + registryHost: cleanedData.registryHost, + repository: cleanedData.repository, + runtime: cleanedData.runtime, + tag: cleanedData.tag, + updatedByPrincipal: cleanedData.updatedByPrincipal, + }, + select: { + createdAt: true, + createdByPrincipal: true, + description: true, + digest: true, + expiresAt: true, + id: true, + isPublished: true, + labels: true, + metadata: true, + name: true, + ownerId: true, + platformOnly: true, + registryHost: true, + repository: true, + runtime: true, + tag: true, + updatedAt: true, + updatedByPrincipal: 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.platformImage + .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/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/compute/cli/commands/platform-infra-set-and-commit.ts b/sdk/constructive-cli/src/compute/cli/commands/platform-infra-set-and-commit.ts new file mode 100644 index 0000000000..444f633f00 --- /dev/null +++ b/sdk/constructive-cli/src/compute/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/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/platform-k-8-s-resource-kind.ts b/sdk/constructive-cli/src/compute/cli/commands/platform-k-8-s-resource-kind.ts new file mode 100644 index 0000000000..c6d56cce7b --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/platform-k-8-s-resource-kind.ts @@ -0,0 +1,401 @@ +/** + * CLI commands for PlatformK8sResourceKind + * @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 { + CreatePlatformK8sResourceKindInput, + PlatformK8sResourceKindPatch, + PlatformK8sResourceKindSelect, + PlatformK8sResourceKindFilter, + PlatformK8sResourceKindOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + active: 'boolean', + commitId: 'uuid', + createdAt: 'string', + definition: 'json', + description: 'string', + id: 'uuid', + label: 'string', + slug: 'string', + storeId: 'uuid', + updatedAt: 'string', +}; +const usage = + '\nplatform-k-8-s-resource-kind \n\nCommands:\n list List platformK8sResourceKind records\n find-first Find first matching platformK8sResourceKind record\n get Get a platformK8sResourceKind by ID\n create Create a new platformK8sResourceKind\n update Update an existing platformK8sResourceKind\n delete Delete a platformK8sResourceKind\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 = { + active: true, + commitId: true, + createdAt: true, + definition: true, + description: true, + id: true, + label: true, + slug: true, + storeId: true, + updatedAt: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs< + PlatformK8sResourceKindSelect, + PlatformK8sResourceKindFilter, + PlatformK8sResourceKindOrderBy + > & { + select: PlatformK8sResourceKindSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformK8sResourceKind.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 = { + active: true, + commitId: true, + createdAt: true, + definition: true, + description: true, + id: true, + label: true, + slug: true, + storeId: true, + updatedAt: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs< + PlatformK8sResourceKindSelect, + PlatformK8sResourceKindFilter, + PlatformK8sResourceKindOrderBy + > & { + select: PlatformK8sResourceKindSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformK8sResourceKind.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.platformK8sResourceKind + .findOne({ + id: answers.id as string, + select: { + active: true, + commitId: true, + createdAt: true, + definition: true, + description: true, + id: true, + label: true, + slug: true, + storeId: 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: 'boolean', + name: 'active', + message: 'active', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'commitId', + message: 'commitId', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'definition', + message: 'definition', + required: true, + }, + { + type: 'text', + name: 'description', + message: 'description', + required: false, + skipPrompt: 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, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreatePlatformK8sResourceKindInput['platformK8sResourceKind']; + const client = getClient(); + const result = await client.platformK8sResourceKind + .create({ + data: { + active: cleanedData.active, + commitId: cleanedData.commitId, + definition: cleanedData.definition, + description: cleanedData.description, + label: cleanedData.label, + slug: cleanedData.slug, + storeId: cleanedData.storeId, + }, + select: { + active: true, + commitId: true, + createdAt: true, + definition: true, + description: true, + id: true, + label: true, + slug: true, + storeId: 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: 'boolean', + name: 'active', + message: 'active', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'commitId', + message: 'commitId', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'definition', + message: 'definition', + required: false, + }, + { + type: 'text', + name: 'description', + message: 'description', + required: false, + skipPrompt: true, + }, + { + 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 PlatformK8sResourceKindPatch; + const client = getClient(); + const result = await client.platformK8sResourceKind + .update({ + where: { + id: answers.id as string, + }, + data: { + active: cleanedData.active, + commitId: cleanedData.commitId, + definition: cleanedData.definition, + description: cleanedData.description, + label: cleanedData.label, + slug: cleanedData.slug, + storeId: cleanedData.storeId, + }, + select: { + active: true, + commitId: true, + createdAt: true, + definition: true, + description: true, + id: true, + label: true, + slug: true, + storeId: 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.platformK8sResourceKind + .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/compute/cli/commands/platform-k-8-s-spec-rule.ts b/sdk/constructive-cli/src/compute/cli/commands/platform-k-8-s-spec-rule.ts new file mode 100644 index 0000000000..7abddb824b --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/platform-k-8-s-spec-rule.ts @@ -0,0 +1,401 @@ +/** + * CLI commands for PlatformK8sSpecRule + * @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 { + CreatePlatformK8sSpecRuleInput, + PlatformK8sSpecRulePatch, + PlatformK8sSpecRuleSelect, + PlatformK8sSpecRuleFilter, + PlatformK8sSpecRuleOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + active: 'boolean', + commitId: 'uuid', + createdAt: 'string', + definition: 'json', + description: 'string', + id: 'uuid', + label: 'string', + slug: 'string', + storeId: 'uuid', + updatedAt: 'string', +}; +const usage = + '\nplatform-k-8-s-spec-rule \n\nCommands:\n list List platformK8sSpecRule records\n find-first Find first matching platformK8sSpecRule record\n get Get a platformK8sSpecRule by ID\n create Create a new platformK8sSpecRule\n update Update an existing platformK8sSpecRule\n delete Delete a platformK8sSpecRule\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 = { + active: true, + commitId: true, + createdAt: true, + definition: true, + description: true, + id: true, + label: true, + slug: true, + storeId: true, + updatedAt: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs< + PlatformK8sSpecRuleSelect, + PlatformK8sSpecRuleFilter, + PlatformK8sSpecRuleOrderBy + > & { + select: PlatformK8sSpecRuleSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformK8sSpecRule.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 = { + active: true, + commitId: true, + createdAt: true, + definition: true, + description: true, + id: true, + label: true, + slug: true, + storeId: true, + updatedAt: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs< + PlatformK8sSpecRuleSelect, + PlatformK8sSpecRuleFilter, + PlatformK8sSpecRuleOrderBy + > & { + select: PlatformK8sSpecRuleSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformK8sSpecRule.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.platformK8sSpecRule + .findOne({ + id: answers.id as string, + select: { + active: true, + commitId: true, + createdAt: true, + definition: true, + description: true, + id: true, + label: true, + slug: true, + storeId: 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: 'boolean', + name: 'active', + message: 'active', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'commitId', + message: 'commitId', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'definition', + message: 'definition', + required: true, + }, + { + type: 'text', + name: 'description', + message: 'description', + required: false, + skipPrompt: 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, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreatePlatformK8sSpecRuleInput['platformK8sSpecRule']; + const client = getClient(); + const result = await client.platformK8sSpecRule + .create({ + data: { + active: cleanedData.active, + commitId: cleanedData.commitId, + definition: cleanedData.definition, + description: cleanedData.description, + label: cleanedData.label, + slug: cleanedData.slug, + storeId: cleanedData.storeId, + }, + select: { + active: true, + commitId: true, + createdAt: true, + definition: true, + description: true, + id: true, + label: true, + slug: true, + storeId: 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: 'boolean', + name: 'active', + message: 'active', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'commitId', + message: 'commitId', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'definition', + message: 'definition', + required: false, + }, + { + type: 'text', + name: 'description', + message: 'description', + required: false, + skipPrompt: true, + }, + { + 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 PlatformK8sSpecRulePatch; + const client = getClient(); + const result = await client.platformK8sSpecRule + .update({ + where: { + id: answers.id as string, + }, + data: { + active: cleanedData.active, + commitId: cleanedData.commitId, + definition: cleanedData.definition, + description: cleanedData.description, + label: cleanedData.label, + slug: cleanedData.slug, + storeId: cleanedData.storeId, + }, + select: { + active: true, + commitId: true, + createdAt: true, + definition: true, + description: true, + id: true, + label: true, + slug: true, + storeId: 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.platformK8sSpecRule + .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/compute/cli/commands/platform-namespace.ts b/sdk/constructive-cli/src/compute/cli/commands/platform-namespace.ts index e005043d68..113b116862 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/platform-namespace.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/platform-namespace.ts @@ -17,6 +17,7 @@ import type { import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { annotations: 'json', + clusterId: 'uuid', createdAt: 'string', description: 'string', id: 'uuid', @@ -81,6 +82,7 @@ async function handleList(argv: Partial>, _prompter: Inq try { const defaultSelect = { annotations: true, + clusterId: true, createdAt: true, description: true, id: true, @@ -113,6 +115,7 @@ async function handleFindFirst(argv: Partial>, _prompter try { const defaultSelect = { annotations: true, + clusterId: true, createdAt: true, description: true, id: true, @@ -157,6 +160,7 @@ async function handleGet(argv: Partial>, prompter: Inqui id: answers.id as string, select: { annotations: true, + clusterId: true, createdAt: true, description: true, id: true, @@ -190,6 +194,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'clusterId', + message: 'clusterId', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'description', @@ -255,6 +266,7 @@ async function handleCreate(argv: Partial>, prompter: In .create({ data: { annotations: cleanedData.annotations, + clusterId: cleanedData.clusterId, description: cleanedData.description, isActive: cleanedData.isActive, isManaged: cleanedData.isManaged, @@ -266,6 +278,7 @@ async function handleCreate(argv: Partial>, prompter: In }, select: { annotations: true, + clusterId: true, createdAt: true, description: true, id: true, @@ -305,6 +318,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'clusterId', + message: 'clusterId', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'description', @@ -370,6 +390,7 @@ async function handleUpdate(argv: Partial>, prompter: In }, data: { annotations: cleanedData.annotations, + clusterId: cleanedData.clusterId, description: cleanedData.description, isActive: cleanedData.isActive, isManaged: cleanedData.isManaged, @@ -381,6 +402,7 @@ async function handleUpdate(argv: Partial>, prompter: In }, select: { annotations: true, + clusterId: true, createdAt: true, description: true, id: true, diff --git a/sdk/constructive-cli/src/compute/cli/commands/platform-proposal-comment.ts b/sdk/constructive-cli/src/compute/cli/commands/platform-proposal-comment.ts new file mode 100644 index 0000000000..dff5e671ed --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/platform-proposal-comment.ts @@ -0,0 +1,644 @@ +/** + * CLI commands for PlatformProposalComment + * @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 { + CreatePlatformProposalCommentInput, + PlatformProposalCommentPatch, + PlatformProposalCommentSelect, + PlatformProposalCommentFilter, + PlatformProposalCommentOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + actorId: 'uuid', + attachments: 'string', + body: 'string', + bodyTrgmSimilarity: 'float', + createdAt: 'string', + createdBy: 'uuid', + createdByPrincipal: 'uuid', + embedding: 'string', + embeddingUpdatedAt: 'string', + embeddingVectorDistance: 'float', + id: 'uuid', + line: 'int', + outdatedAt: 'string', + path: 'string', + pathTrgmSimilarity: 'float', + proposalId: 'uuid', + resolvedAt: 'string', + search: 'string', + searchScore: 'float', + searchTsvRank: 'float', + updatedAt: 'string', + updatedBy: 'uuid', + updatedByPrincipal: 'uuid', +}; +import { resolveEmbedder, autoEmbedWhere, autoEmbedInput } from '../embedder'; +const usage = + '\nplatform-proposal-comment \n\nCommands:\n list List platformProposalComment records\n find-first Find first matching platformProposalComment record\n search Search platformProposalComment records\n get Get a platformProposalComment by ID\n create Create a new platformProposalComment\n update Update an existing platformProposalComment\n\nCreate/Update Options:\n --auto-embed Convert text values in vector fields to embeddings before saving\n delete Delete a platformProposalComment\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\nSearch Options:\n Search query string (required)\n --limit Max number of records to return\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --orderBy Comma-separated list of ordering values\n --auto-embed Convert text queries to vectors via configured embedder\n\nEmbedding Options (for --auto-embed):\n Set EMBEDDER_PROVIDER=ollama to enable text-to-vector embedding.\n Optional: EMBEDDER_MODEL (default: nomic-embed-text)\n Optional: EMBEDDER_BASE_URL (default: http://localhost:11434)\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', 'search', '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 'search': + return handleSearch(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 = { + actorId: true, + attachments: true, + body: true, + createdAt: true, + createdBy: true, + createdByPrincipal: true, + embedding: true, + id: true, + line: true, + outdatedAt: true, + path: true, + proposalId: true, + resolvedAt: true, + updatedAt: true, + updatedBy: true, + updatedByPrincipal: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs< + PlatformProposalCommentSelect, + PlatformProposalCommentFilter, + PlatformProposalCommentOrderBy + > & { + select: PlatformProposalCommentSelect; + } + >(argv, defaultSelect); + if (argv['auto-embed']) { + const embedder = resolveEmbedder(); + if (!embedder) { + console.error( + '--auto-embed requires an embedder. Set EMBEDDER_PROVIDER=ollama (and optionally EMBEDDER_MODEL, EMBEDDER_BASE_URL).' + ); + process.exit(1); + } + findManyArgs.where = await autoEmbedWhere(findManyArgs.where ?? {}, ['embedding'], embedder); + } + const client = getClient(); + const result = await client.platformProposalComment.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 = { + actorId: true, + attachments: true, + body: true, + createdAt: true, + createdBy: true, + createdByPrincipal: true, + embedding: true, + id: true, + line: true, + outdatedAt: true, + path: true, + proposalId: true, + resolvedAt: true, + updatedAt: true, + updatedBy: true, + updatedByPrincipal: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs< + PlatformProposalCommentSelect, + PlatformProposalCommentFilter, + PlatformProposalCommentOrderBy + > & { + select: PlatformProposalCommentSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformProposalComment.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 handleSearch(argv: Partial>, _prompter: Inquirerer) { + try { + const query = Array.isArray(argv._) && argv._.length > 0 ? String(argv._[0]) : undefined; + if (!query) { + console.error('Error: search requires a argument'); + process.exit(1); + } + const searchWhere = { + embedding: { + vector: query, + }, + trgmBody: { + value: query, + threshold: 0.3, + }, + trgmPath: { + value: query, + threshold: 0.3, + }, + search: { + query, + }, + }; + if (argv['auto-embed']) { + const embedder = resolveEmbedder(); + if (!embedder) { + console.error( + '--auto-embed requires an embedder. Set EMBEDDER_PROVIDER=ollama (and optionally EMBEDDER_MODEL, EMBEDDER_BASE_URL).' + ); + process.exit(1); + } + await autoEmbedWhere(searchWhere ?? {}, ['embedding'], embedder); + } + const defaultSelect = { + actorId: true, + attachments: true, + body: true, + createdAt: true, + createdBy: true, + createdByPrincipal: true, + embedding: true, + id: true, + line: true, + outdatedAt: true, + path: true, + proposalId: true, + resolvedAt: true, + updatedAt: true, + updatedBy: true, + updatedByPrincipal: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs< + PlatformProposalCommentSelect, + PlatformProposalCommentFilter, + PlatformProposalCommentOrderBy + > & { + select: PlatformProposalCommentSelect; + } + >(argv, defaultSelect, searchWhere); + const client = getClient(); + const result = await client.platformProposalComment.findMany(findManyArgs).execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to search records.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleGet(argv: Partial>, prompter: Inquirerer) { + try { + const answers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + ]); + const client = getClient(); + const result = await client.platformProposalComment + .findOne({ + id: answers.id as string, + select: { + actorId: true, + attachments: true, + body: true, + createdAt: true, + createdBy: true, + createdByPrincipal: true, + embedding: true, + id: true, + line: true, + outdatedAt: true, + path: true, + proposalId: true, + resolvedAt: true, + updatedAt: true, + updatedBy: true, + updatedByPrincipal: 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: 'actorId', + message: 'actorId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'attachments', + message: 'attachments', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'body', + message: 'body', + required: true, + }, + { + type: 'text', + name: 'createdBy', + message: 'createdBy', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'embedding', + message: 'embedding', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'line', + message: 'line', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'outdatedAt', + message: 'outdatedAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'path', + message: 'path', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'proposalId', + message: 'proposalId', + required: true, + }, + { + type: 'text', + name: 'resolvedAt', + message: 'resolvedAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'updatedBy', + message: 'updatedBy', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreatePlatformProposalCommentInput['platformProposalComment']; + if (argv['auto-embed']) { + const embedder = resolveEmbedder(); + if (!embedder) { + console.error( + '--auto-embed requires an embedder. Set EMBEDDER_PROVIDER=ollama (and optionally EMBEDDER_MODEL, EMBEDDER_BASE_URL).' + ); + process.exit(1); + } + await autoEmbedInput(cleanedData, ['embedding'], embedder); + } + const client = getClient(); + const result = await client.platformProposalComment + .create({ + data: { + actorId: cleanedData.actorId, + attachments: cleanedData.attachments, + body: cleanedData.body, + createdBy: cleanedData.createdBy, + createdByPrincipal: cleanedData.createdByPrincipal, + embedding: cleanedData.embedding, + line: cleanedData.line, + outdatedAt: cleanedData.outdatedAt, + path: cleanedData.path, + proposalId: cleanedData.proposalId, + resolvedAt: cleanedData.resolvedAt, + updatedBy: cleanedData.updatedBy, + updatedByPrincipal: cleanedData.updatedByPrincipal, + }, + select: { + actorId: true, + attachments: true, + body: true, + createdAt: true, + createdBy: true, + createdByPrincipal: true, + embedding: true, + id: true, + line: true, + outdatedAt: true, + path: true, + proposalId: true, + resolvedAt: true, + updatedAt: true, + updatedBy: true, + updatedByPrincipal: 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: 'actorId', + message: 'actorId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'attachments', + message: 'attachments', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'body', + message: 'body', + required: false, + }, + { + type: 'text', + name: 'createdBy', + message: 'createdBy', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'embedding', + message: 'embedding', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'line', + message: 'line', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'outdatedAt', + message: 'outdatedAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'path', + message: 'path', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'proposalId', + message: 'proposalId', + required: false, + }, + { + type: 'text', + name: 'resolvedAt', + message: 'resolvedAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'updatedBy', + message: 'updatedBy', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as PlatformProposalCommentPatch; + if (argv['auto-embed']) { + const embedder = resolveEmbedder(); + if (!embedder) { + console.error( + '--auto-embed requires an embedder. Set EMBEDDER_PROVIDER=ollama (and optionally EMBEDDER_MODEL, EMBEDDER_BASE_URL).' + ); + process.exit(1); + } + await autoEmbedInput(cleanedData, ['embedding'], embedder); + } + const client = getClient(); + const result = await client.platformProposalComment + .update({ + where: { + id: answers.id as string, + }, + data: { + actorId: cleanedData.actorId, + attachments: cleanedData.attachments, + body: cleanedData.body, + createdBy: cleanedData.createdBy, + createdByPrincipal: cleanedData.createdByPrincipal, + embedding: cleanedData.embedding, + line: cleanedData.line, + outdatedAt: cleanedData.outdatedAt, + path: cleanedData.path, + proposalId: cleanedData.proposalId, + resolvedAt: cleanedData.resolvedAt, + updatedBy: cleanedData.updatedBy, + updatedByPrincipal: cleanedData.updatedByPrincipal, + }, + select: { + actorId: true, + attachments: true, + body: true, + createdAt: true, + createdBy: true, + createdByPrincipal: true, + embedding: true, + id: true, + line: true, + outdatedAt: true, + path: true, + proposalId: true, + resolvedAt: true, + updatedAt: true, + updatedBy: true, + updatedByPrincipal: 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.platformProposalComment + .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/compute/cli/commands/platform-proposal-file-view.ts b/sdk/constructive-cli/src/compute/cli/commands/platform-proposal-file-view.ts new file mode 100644 index 0000000000..111b998b99 --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/platform-proposal-file-view.ts @@ -0,0 +1,397 @@ +/** + * CLI commands for PlatformProposalFileView + * @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 { + CreatePlatformProposalFileViewInput, + PlatformProposalFileViewPatch, + PlatformProposalFileViewSelect, + PlatformProposalFileViewFilter, + PlatformProposalFileViewOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + blobSha: 'string', + createdAt: 'string', + createdByPrincipal: 'uuid', + id: 'uuid', + path: 'string', + proposalId: 'uuid', + reviewerId: 'uuid', + updatedAt: 'string', + updatedByPrincipal: 'uuid', + viewedAt: 'string', +}; +const usage = + '\nplatform-proposal-file-view \n\nCommands:\n list List platformProposalFileView records\n find-first Find first matching platformProposalFileView record\n get Get a platformProposalFileView by ID\n create Create a new platformProposalFileView\n update Update an existing platformProposalFileView\n delete Delete a platformProposalFileView\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 = { + blobSha: true, + createdAt: true, + createdByPrincipal: true, + id: true, + path: true, + proposalId: true, + reviewerId: true, + updatedAt: true, + updatedByPrincipal: true, + viewedAt: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs< + PlatformProposalFileViewSelect, + PlatformProposalFileViewFilter, + PlatformProposalFileViewOrderBy + > & { + select: PlatformProposalFileViewSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformProposalFileView.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 = { + blobSha: true, + createdAt: true, + createdByPrincipal: true, + id: true, + path: true, + proposalId: true, + reviewerId: true, + updatedAt: true, + updatedByPrincipal: true, + viewedAt: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs< + PlatformProposalFileViewSelect, + PlatformProposalFileViewFilter, + PlatformProposalFileViewOrderBy + > & { + select: PlatformProposalFileViewSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformProposalFileView.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.platformProposalFileView + .findOne({ + id: answers.id as string, + select: { + blobSha: true, + createdAt: true, + createdByPrincipal: true, + id: true, + path: true, + proposalId: true, + reviewerId: true, + updatedAt: true, + updatedByPrincipal: true, + viewedAt: 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: 'blobSha', + message: 'blobSha', + required: true, + }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'path', + message: 'path', + required: true, + }, + { + type: 'text', + name: 'proposalId', + message: 'proposalId', + required: true, + }, + { + type: 'text', + name: 'reviewerId', + message: 'reviewerId', + required: true, + }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'viewedAt', + message: 'viewedAt', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreatePlatformProposalFileViewInput['platformProposalFileView']; + const client = getClient(); + const result = await client.platformProposalFileView + .create({ + data: { + blobSha: cleanedData.blobSha, + createdByPrincipal: cleanedData.createdByPrincipal, + path: cleanedData.path, + proposalId: cleanedData.proposalId, + reviewerId: cleanedData.reviewerId, + updatedByPrincipal: cleanedData.updatedByPrincipal, + viewedAt: cleanedData.viewedAt, + }, + select: { + blobSha: true, + createdAt: true, + createdByPrincipal: true, + id: true, + path: true, + proposalId: true, + reviewerId: true, + updatedAt: true, + updatedByPrincipal: true, + viewedAt: 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: 'blobSha', + message: 'blobSha', + required: false, + }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'path', + message: 'path', + required: false, + }, + { + type: 'text', + name: 'proposalId', + message: 'proposalId', + required: false, + }, + { + type: 'text', + name: 'reviewerId', + message: 'reviewerId', + required: false, + }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'viewedAt', + message: 'viewedAt', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as PlatformProposalFileViewPatch; + const client = getClient(); + const result = await client.platformProposalFileView + .update({ + where: { + id: answers.id as string, + }, + data: { + blobSha: cleanedData.blobSha, + createdByPrincipal: cleanedData.createdByPrincipal, + path: cleanedData.path, + proposalId: cleanedData.proposalId, + reviewerId: cleanedData.reviewerId, + updatedByPrincipal: cleanedData.updatedByPrincipal, + viewedAt: cleanedData.viewedAt, + }, + select: { + blobSha: true, + createdAt: true, + createdByPrincipal: true, + id: true, + path: true, + proposalId: true, + reviewerId: true, + updatedAt: true, + updatedByPrincipal: true, + viewedAt: 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.platformProposalFileView + .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/compute/cli/commands/platform-proposal-reaction.ts b/sdk/constructive-cli/src/compute/cli/commands/platform-proposal-reaction.ts new file mode 100644 index 0000000000..b0cb287e2d --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/platform-proposal-reaction.ts @@ -0,0 +1,377 @@ +/** + * CLI commands for PlatformProposalReaction + * @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 { + CreatePlatformProposalReactionInput, + PlatformProposalReactionPatch, + PlatformProposalReactionSelect, + PlatformProposalReactionFilter, + PlatformProposalReactionOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + actorId: 'uuid', + commentId: 'uuid', + createdAt: 'string', + createdByPrincipal: 'uuid', + emoji: 'string', + id: 'uuid', + proposalId: 'uuid', + updatedAt: 'string', + updatedByPrincipal: 'uuid', +}; +const usage = + '\nplatform-proposal-reaction \n\nCommands:\n list List platformProposalReaction records\n find-first Find first matching platformProposalReaction record\n get Get a platformProposalReaction by ID\n create Create a new platformProposalReaction\n update Update an existing platformProposalReaction\n delete Delete a platformProposalReaction\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 = { + actorId: true, + commentId: true, + createdAt: true, + createdByPrincipal: true, + emoji: true, + id: true, + proposalId: true, + updatedAt: true, + updatedByPrincipal: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs< + PlatformProposalReactionSelect, + PlatformProposalReactionFilter, + PlatformProposalReactionOrderBy + > & { + select: PlatformProposalReactionSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformProposalReaction.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 = { + actorId: true, + commentId: true, + createdAt: true, + createdByPrincipal: true, + emoji: true, + id: true, + proposalId: true, + updatedAt: true, + updatedByPrincipal: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs< + PlatformProposalReactionSelect, + PlatformProposalReactionFilter, + PlatformProposalReactionOrderBy + > & { + select: PlatformProposalReactionSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformProposalReaction.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.platformProposalReaction + .findOne({ + id: answers.id as string, + select: { + actorId: true, + commentId: true, + createdAt: true, + createdByPrincipal: true, + emoji: true, + id: true, + proposalId: true, + updatedAt: true, + updatedByPrincipal: 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: 'actorId', + message: 'actorId', + required: true, + }, + { + type: 'text', + name: 'commentId', + message: 'commentId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'emoji', + message: 'emoji', + required: true, + }, + { + type: 'text', + name: 'proposalId', + message: 'proposalId', + required: true, + }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreatePlatformProposalReactionInput['platformProposalReaction']; + const client = getClient(); + const result = await client.platformProposalReaction + .create({ + data: { + actorId: cleanedData.actorId, + commentId: cleanedData.commentId, + createdByPrincipal: cleanedData.createdByPrincipal, + emoji: cleanedData.emoji, + proposalId: cleanedData.proposalId, + updatedByPrincipal: cleanedData.updatedByPrincipal, + }, + select: { + actorId: true, + commentId: true, + createdAt: true, + createdByPrincipal: true, + emoji: true, + id: true, + proposalId: true, + updatedAt: true, + updatedByPrincipal: 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: 'actorId', + message: 'actorId', + required: false, + }, + { + type: 'text', + name: 'commentId', + message: 'commentId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'emoji', + message: 'emoji', + required: false, + }, + { + type: 'text', + name: 'proposalId', + message: 'proposalId', + required: false, + }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as PlatformProposalReactionPatch; + const client = getClient(); + const result = await client.platformProposalReaction + .update({ + where: { + id: answers.id as string, + }, + data: { + actorId: cleanedData.actorId, + commentId: cleanedData.commentId, + createdByPrincipal: cleanedData.createdByPrincipal, + emoji: cleanedData.emoji, + proposalId: cleanedData.proposalId, + updatedByPrincipal: cleanedData.updatedByPrincipal, + }, + select: { + actorId: true, + commentId: true, + createdAt: true, + createdByPrincipal: true, + emoji: true, + id: true, + proposalId: true, + updatedAt: true, + updatedByPrincipal: 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.platformProposalReaction + .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/compute/cli/commands/platform-proposal-review.ts b/sdk/constructive-cli/src/compute/cli/commands/platform-proposal-review.ts new file mode 100644 index 0000000000..f784ff1701 --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/platform-proposal-review.ts @@ -0,0 +1,484 @@ +/** + * CLI commands for PlatformProposalReview + * @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 { + CreatePlatformProposalReviewInput, + PlatformProposalReviewPatch, + PlatformProposalReviewSelect, + PlatformProposalReviewFilter, + PlatformProposalReviewOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + body: 'string', + bodyTrgmSimilarity: 'float', + commitSha: 'string', + commitShaTrgmSimilarity: 'float', + createdAt: 'string', + createdByPrincipal: 'uuid', + id: 'uuid', + proposalId: 'uuid', + reviewerId: 'uuid', + search: 'string', + searchScore: 'float', + searchTsvRank: 'float', + submittedAt: 'string', + updatedAt: 'string', + updatedByPrincipal: 'uuid', + verdict: 'string', + verdictTrgmSimilarity: 'float', +}; +const usage = + '\nplatform-proposal-review \n\nCommands:\n list List platformProposalReview records\n find-first Find first matching platformProposalReview record\n search Search platformProposalReview records\n get Get a platformProposalReview by ID\n create Create a new platformProposalReview\n update Update an existing platformProposalReview\n delete Delete a platformProposalReview\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\nSearch Options:\n Search query string (required)\n --limit Max number of records to return\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --orderBy Comma-separated list of ordering values\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', 'search', '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 'search': + return handleSearch(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 = { + body: true, + commitSha: true, + createdAt: true, + createdByPrincipal: true, + id: true, + proposalId: true, + reviewerId: true, + submittedAt: true, + updatedAt: true, + updatedByPrincipal: true, + verdict: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs< + PlatformProposalReviewSelect, + PlatformProposalReviewFilter, + PlatformProposalReviewOrderBy + > & { + select: PlatformProposalReviewSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformProposalReview.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 = { + body: true, + commitSha: true, + createdAt: true, + createdByPrincipal: true, + id: true, + proposalId: true, + reviewerId: true, + submittedAt: true, + updatedAt: true, + updatedByPrincipal: true, + verdict: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs< + PlatformProposalReviewSelect, + PlatformProposalReviewFilter, + PlatformProposalReviewOrderBy + > & { + select: PlatformProposalReviewSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformProposalReview.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 handleSearch(argv: Partial>, _prompter: Inquirerer) { + try { + const query = Array.isArray(argv._) && argv._.length > 0 ? String(argv._[0]) : undefined; + if (!query) { + console.error('Error: search requires a argument'); + process.exit(1); + } + const searchWhere = { + trgmBody: { + value: query, + threshold: 0.3, + }, + trgmCommitSha: { + value: query, + threshold: 0.3, + }, + search: { + query, + }, + trgmVerdict: { + value: query, + threshold: 0.3, + }, + }; + const defaultSelect = { + body: true, + commitSha: true, + createdAt: true, + createdByPrincipal: true, + id: true, + proposalId: true, + reviewerId: true, + submittedAt: true, + updatedAt: true, + updatedByPrincipal: true, + verdict: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs< + PlatformProposalReviewSelect, + PlatformProposalReviewFilter, + PlatformProposalReviewOrderBy + > & { + select: PlatformProposalReviewSelect; + } + >(argv, defaultSelect, searchWhere); + const client = getClient(); + const result = await client.platformProposalReview.findMany(findManyArgs).execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to search records.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleGet(argv: Partial>, prompter: Inquirerer) { + try { + const answers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + ]); + const client = getClient(); + const result = await client.platformProposalReview + .findOne({ + id: answers.id as string, + select: { + body: true, + commitSha: true, + createdAt: true, + createdByPrincipal: true, + id: true, + proposalId: true, + reviewerId: true, + submittedAt: true, + updatedAt: true, + updatedByPrincipal: true, + verdict: 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: 'body', + message: 'body', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'commitSha', + message: 'commitSha', + required: true, + }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'proposalId', + message: 'proposalId', + required: true, + }, + { + type: 'text', + name: 'reviewerId', + message: 'reviewerId', + required: true, + }, + { + type: 'text', + name: 'submittedAt', + message: 'submittedAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'verdict', + message: 'verdict', + required: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreatePlatformProposalReviewInput['platformProposalReview']; + const client = getClient(); + const result = await client.platformProposalReview + .create({ + data: { + body: cleanedData.body, + commitSha: cleanedData.commitSha, + createdByPrincipal: cleanedData.createdByPrincipal, + proposalId: cleanedData.proposalId, + reviewerId: cleanedData.reviewerId, + submittedAt: cleanedData.submittedAt, + updatedByPrincipal: cleanedData.updatedByPrincipal, + verdict: cleanedData.verdict, + }, + select: { + body: true, + commitSha: true, + createdAt: true, + createdByPrincipal: true, + id: true, + proposalId: true, + reviewerId: true, + submittedAt: true, + updatedAt: true, + updatedByPrincipal: true, + verdict: 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: 'body', + message: 'body', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'commitSha', + message: 'commitSha', + required: false, + }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'proposalId', + message: 'proposalId', + required: false, + }, + { + type: 'text', + name: 'reviewerId', + message: 'reviewerId', + required: false, + }, + { + type: 'text', + name: 'submittedAt', + message: 'submittedAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'verdict', + message: 'verdict', + required: false, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as PlatformProposalReviewPatch; + const client = getClient(); + const result = await client.platformProposalReview + .update({ + where: { + id: answers.id as string, + }, + data: { + body: cleanedData.body, + commitSha: cleanedData.commitSha, + createdByPrincipal: cleanedData.createdByPrincipal, + proposalId: cleanedData.proposalId, + reviewerId: cleanedData.reviewerId, + submittedAt: cleanedData.submittedAt, + updatedByPrincipal: cleanedData.updatedByPrincipal, + verdict: cleanedData.verdict, + }, + select: { + body: true, + commitSha: true, + createdAt: true, + createdByPrincipal: true, + id: true, + proposalId: true, + reviewerId: true, + submittedAt: true, + updatedAt: true, + updatedByPrincipal: true, + verdict: 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.platformProposalReview + .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/compute/cli/commands/platform-proposal.ts b/sdk/constructive-cli/src/compute/cli/commands/platform-proposal.ts new file mode 100644 index 0000000000..f5aea1030a --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/platform-proposal.ts @@ -0,0 +1,948 @@ +/** + * CLI commands for PlatformProposal + * @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 { + CreatePlatformProposalInput, + PlatformProposalPatch, + PlatformProposalSelect, + PlatformProposalFilter, + PlatformProposalOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + actorId: 'uuid', + body: 'string', + bodyTrgmSimilarity: 'float', + closedReason: 'string', + closedReasonTrgmSimilarity: 'float', + createdAt: 'string', + createdBy: 'uuid', + createdByPrincipal: 'uuid', + decidedAt: 'string', + dueAt: 'string', + embedding: 'string', + embeddingUpdatedAt: 'string', + embeddingVectorDistance: 'float', + id: 'uuid', + kind: 'string', + kindTrgmSimilarity: 'float', + labels: 'string', + mergeCommit: 'string', + mergeCommitTrgmSimilarity: 'float', + mergeMethod: 'string', + mergeMethodTrgmSimilarity: 'float', + mergeRequestedAt: 'string', + mergedAt: 'string', + metadata: 'json', + parentId: 'uuid', + priority: 'string', + repositoryId: 'uuid', + resolution: 'string', + resolutionTrgmSimilarity: 'float', + search: 'string', + searchScore: 'float', + searchTsvRank: 'float', + sourceRef: 'string', + sourceRefTrgmSimilarity: 'float', + status: 'string', + statusTrgmSimilarity: 'float', + targetRef: 'string', + targetRefTrgmSimilarity: 'float', + title: 'string', + titleTrgmSimilarity: 'float', + updatedAt: 'string', + updatedBy: 'uuid', + updatedByPrincipal: 'uuid', +}; +import { resolveEmbedder, autoEmbedWhere, autoEmbedInput } from '../embedder'; +const usage = + '\nplatform-proposal \n\nCommands:\n list List platformProposal records\n find-first Find first matching platformProposal record\n search Search platformProposal records\n get Get a platformProposal by ID\n create Create a new platformProposal\n update Update an existing platformProposal\n\nCreate/Update Options:\n --auto-embed Convert text values in vector fields to embeddings before saving\n delete Delete a platformProposal\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\nSearch Options:\n Search query string (required)\n --limit Max number of records to return\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --orderBy Comma-separated list of ordering values\n --auto-embed Convert text queries to vectors via configured embedder\n\nEmbedding Options (for --auto-embed):\n Set EMBEDDER_PROVIDER=ollama to enable text-to-vector embedding.\n Optional: EMBEDDER_MODEL (default: nomic-embed-text)\n Optional: EMBEDDER_BASE_URL (default: http://localhost:11434)\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', 'search', '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 'search': + return handleSearch(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 = { + actorId: true, + body: true, + closedReason: true, + createdAt: true, + createdBy: true, + createdByPrincipal: true, + decidedAt: true, + dueAt: true, + embedding: true, + id: true, + kind: true, + labels: true, + mergeCommit: true, + mergeMethod: true, + mergeRequestedAt: true, + mergedAt: true, + metadata: true, + parentId: true, + priority: true, + repositoryId: true, + resolution: true, + sourceRef: true, + status: true, + targetRef: true, + title: true, + updatedAt: true, + updatedBy: true, + updatedByPrincipal: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: PlatformProposalSelect; + } + >(argv, defaultSelect); + if (argv['auto-embed']) { + const embedder = resolveEmbedder(); + if (!embedder) { + console.error( + '--auto-embed requires an embedder. Set EMBEDDER_PROVIDER=ollama (and optionally EMBEDDER_MODEL, EMBEDDER_BASE_URL).' + ); + process.exit(1); + } + findManyArgs.where = await autoEmbedWhere(findManyArgs.where ?? {}, ['embedding'], embedder); + } + const client = getClient(); + const result = await client.platformProposal.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 = { + actorId: true, + body: true, + closedReason: true, + createdAt: true, + createdBy: true, + createdByPrincipal: true, + decidedAt: true, + dueAt: true, + embedding: true, + id: true, + kind: true, + labels: true, + mergeCommit: true, + mergeMethod: true, + mergeRequestedAt: true, + mergedAt: true, + metadata: true, + parentId: true, + priority: true, + repositoryId: true, + resolution: true, + sourceRef: true, + status: true, + targetRef: true, + title: true, + updatedAt: true, + updatedBy: true, + updatedByPrincipal: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: PlatformProposalSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformProposal.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 handleSearch(argv: Partial>, _prompter: Inquirerer) { + try { + const query = Array.isArray(argv._) && argv._.length > 0 ? String(argv._[0]) : undefined; + if (!query) { + console.error('Error: search requires a argument'); + process.exit(1); + } + const searchWhere = { + embedding: { + vector: query, + }, + trgmBody: { + value: query, + threshold: 0.3, + }, + trgmClosedReason: { + value: query, + threshold: 0.3, + }, + trgmKind: { + value: query, + threshold: 0.3, + }, + trgmMergeCommit: { + value: query, + threshold: 0.3, + }, + trgmMergeMethod: { + value: query, + threshold: 0.3, + }, + trgmResolution: { + value: query, + threshold: 0.3, + }, + search: { + query, + }, + trgmSourceRef: { + value: query, + threshold: 0.3, + }, + trgmStatus: { + value: query, + threshold: 0.3, + }, + trgmTargetRef: { + value: query, + threshold: 0.3, + }, + trgmTitle: { + value: query, + threshold: 0.3, + }, + }; + if (argv['auto-embed']) { + const embedder = resolveEmbedder(); + if (!embedder) { + console.error( + '--auto-embed requires an embedder. Set EMBEDDER_PROVIDER=ollama (and optionally EMBEDDER_MODEL, EMBEDDER_BASE_URL).' + ); + process.exit(1); + } + await autoEmbedWhere(searchWhere ?? {}, ['embedding'], embedder); + } + const defaultSelect = { + actorId: true, + body: true, + closedReason: true, + createdAt: true, + createdBy: true, + createdByPrincipal: true, + decidedAt: true, + dueAt: true, + embedding: true, + id: true, + kind: true, + labels: true, + mergeCommit: true, + mergeMethod: true, + mergeRequestedAt: true, + mergedAt: true, + metadata: true, + parentId: true, + priority: true, + repositoryId: true, + resolution: true, + sourceRef: true, + status: true, + targetRef: true, + title: true, + updatedAt: true, + updatedBy: true, + updatedByPrincipal: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: PlatformProposalSelect; + } + >(argv, defaultSelect, searchWhere); + const client = getClient(); + const result = await client.platformProposal.findMany(findManyArgs).execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to search records.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleGet(argv: Partial>, prompter: Inquirerer) { + try { + const answers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + ]); + const client = getClient(); + const result = await client.platformProposal + .findOne({ + id: answers.id as string, + select: { + actorId: true, + body: true, + closedReason: true, + createdAt: true, + createdBy: true, + createdByPrincipal: true, + decidedAt: true, + dueAt: true, + embedding: true, + id: true, + kind: true, + labels: true, + mergeCommit: true, + mergeMethod: true, + mergeRequestedAt: true, + mergedAt: true, + metadata: true, + parentId: true, + priority: true, + repositoryId: true, + resolution: true, + sourceRef: true, + status: true, + targetRef: true, + title: true, + updatedAt: true, + updatedBy: true, + updatedByPrincipal: 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: 'actorId', + message: 'actorId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'body', + message: 'body', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'closedReason', + message: 'closedReason', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'createdBy', + message: 'createdBy', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'decidedAt', + message: 'decidedAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'dueAt', + message: 'dueAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'embedding', + message: 'embedding', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'kind', + message: 'kind', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'labels', + message: 'labels', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'mergeCommit', + message: 'mergeCommit', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'mergeMethod', + message: 'mergeMethod', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'mergeRequestedAt', + message: 'mergeRequestedAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'mergedAt', + message: 'mergedAt', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'metadata', + message: 'metadata', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'parentId', + message: 'parentId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'priority', + message: 'priority', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'repositoryId', + message: 'repositoryId', + required: true, + }, + { + type: 'text', + name: 'resolution', + message: 'resolution', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'sourceRef', + message: 'sourceRef', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'status', + message: 'status', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'targetRef', + message: 'targetRef', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'title', + message: 'title', + required: true, + }, + { + type: 'text', + name: 'updatedBy', + message: 'updatedBy', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreatePlatformProposalInput['platformProposal']; + if (argv['auto-embed']) { + const embedder = resolveEmbedder(); + if (!embedder) { + console.error( + '--auto-embed requires an embedder. Set EMBEDDER_PROVIDER=ollama (and optionally EMBEDDER_MODEL, EMBEDDER_BASE_URL).' + ); + process.exit(1); + } + await autoEmbedInput(cleanedData, ['embedding'], embedder); + } + const client = getClient(); + const result = await client.platformProposal + .create({ + data: { + actorId: cleanedData.actorId, + body: cleanedData.body, + closedReason: cleanedData.closedReason, + createdBy: cleanedData.createdBy, + createdByPrincipal: cleanedData.createdByPrincipal, + decidedAt: cleanedData.decidedAt, + dueAt: cleanedData.dueAt, + embedding: cleanedData.embedding, + kind: cleanedData.kind, + labels: cleanedData.labels, + mergeCommit: cleanedData.mergeCommit, + mergeMethod: cleanedData.mergeMethod, + mergeRequestedAt: cleanedData.mergeRequestedAt, + mergedAt: cleanedData.mergedAt, + metadata: cleanedData.metadata, + parentId: cleanedData.parentId, + priority: cleanedData.priority, + repositoryId: cleanedData.repositoryId, + resolution: cleanedData.resolution, + sourceRef: cleanedData.sourceRef, + status: cleanedData.status, + targetRef: cleanedData.targetRef, + title: cleanedData.title, + updatedBy: cleanedData.updatedBy, + updatedByPrincipal: cleanedData.updatedByPrincipal, + }, + select: { + actorId: true, + body: true, + closedReason: true, + createdAt: true, + createdBy: true, + createdByPrincipal: true, + decidedAt: true, + dueAt: true, + embedding: true, + id: true, + kind: true, + labels: true, + mergeCommit: true, + mergeMethod: true, + mergeRequestedAt: true, + mergedAt: true, + metadata: true, + parentId: true, + priority: true, + repositoryId: true, + resolution: true, + sourceRef: true, + status: true, + targetRef: true, + title: true, + updatedAt: true, + updatedBy: true, + updatedByPrincipal: 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: 'actorId', + message: 'actorId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'body', + message: 'body', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'closedReason', + message: 'closedReason', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'createdBy', + message: 'createdBy', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'decidedAt', + message: 'decidedAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'dueAt', + message: 'dueAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'embedding', + message: 'embedding', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'kind', + message: 'kind', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'labels', + message: 'labels', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'mergeCommit', + message: 'mergeCommit', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'mergeMethod', + message: 'mergeMethod', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'mergeRequestedAt', + message: 'mergeRequestedAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'mergedAt', + message: 'mergedAt', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'metadata', + message: 'metadata', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'parentId', + message: 'parentId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'priority', + message: 'priority', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'repositoryId', + message: 'repositoryId', + required: false, + }, + { + type: 'text', + name: 'resolution', + message: 'resolution', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'sourceRef', + message: 'sourceRef', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'status', + message: 'status', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'targetRef', + message: 'targetRef', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'title', + message: 'title', + required: false, + }, + { + type: 'text', + name: 'updatedBy', + message: 'updatedBy', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as PlatformProposalPatch; + if (argv['auto-embed']) { + const embedder = resolveEmbedder(); + if (!embedder) { + console.error( + '--auto-embed requires an embedder. Set EMBEDDER_PROVIDER=ollama (and optionally EMBEDDER_MODEL, EMBEDDER_BASE_URL).' + ); + process.exit(1); + } + await autoEmbedInput(cleanedData, ['embedding'], embedder); + } + const client = getClient(); + const result = await client.platformProposal + .update({ + where: { + id: answers.id as string, + }, + data: { + actorId: cleanedData.actorId, + body: cleanedData.body, + closedReason: cleanedData.closedReason, + createdBy: cleanedData.createdBy, + createdByPrincipal: cleanedData.createdByPrincipal, + decidedAt: cleanedData.decidedAt, + dueAt: cleanedData.dueAt, + embedding: cleanedData.embedding, + kind: cleanedData.kind, + labels: cleanedData.labels, + mergeCommit: cleanedData.mergeCommit, + mergeMethod: cleanedData.mergeMethod, + mergeRequestedAt: cleanedData.mergeRequestedAt, + mergedAt: cleanedData.mergedAt, + metadata: cleanedData.metadata, + parentId: cleanedData.parentId, + priority: cleanedData.priority, + repositoryId: cleanedData.repositoryId, + resolution: cleanedData.resolution, + sourceRef: cleanedData.sourceRef, + status: cleanedData.status, + targetRef: cleanedData.targetRef, + title: cleanedData.title, + updatedBy: cleanedData.updatedBy, + updatedByPrincipal: cleanedData.updatedByPrincipal, + }, + select: { + actorId: true, + body: true, + closedReason: true, + createdAt: true, + createdBy: true, + createdByPrincipal: true, + decidedAt: true, + dueAt: true, + embedding: true, + id: true, + kind: true, + labels: true, + mergeCommit: true, + mergeMethod: true, + mergeRequestedAt: true, + mergedAt: true, + metadata: true, + parentId: true, + priority: true, + repositoryId: true, + resolution: true, + sourceRef: true, + status: true, + targetRef: true, + title: true, + updatedAt: true, + updatedBy: true, + updatedByPrincipal: 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.platformProposal + .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/compute/cli/commands/platform-proposals-chunk.ts b/sdk/constructive-cli/src/compute/cli/commands/platform-proposals-chunk.ts new file mode 100644 index 0000000000..7019f4dab6 --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/platform-proposals-chunk.ts @@ -0,0 +1,467 @@ +/** + * CLI commands for PlatformProposalsChunk + * @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 { + CreatePlatformProposalsChunkInput, + PlatformProposalsChunkPatch, + PlatformProposalsChunkSelect, + PlatformProposalsChunkFilter, + PlatformProposalsChunkOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + actorId: 'uuid', + body: 'string', + chunkIndex: 'int', + createdAt: 'string', + embedding: 'string', + embeddingVectorDistance: 'float', + id: 'uuid', + metadata: 'json', + platformProposalsId: 'uuid', + searchScore: 'float', + updatedAt: 'string', +}; +import { resolveEmbedder, autoEmbedWhere, autoEmbedInput } from '../embedder'; +const usage = + '\nplatform-proposals-chunk \n\nCommands:\n list List platformProposalsChunk records\n find-first Find first matching platformProposalsChunk record\n search Search platformProposalsChunk records\n get Get a platformProposalsChunk by ID\n create Create a new platformProposalsChunk\n update Update an existing platformProposalsChunk\n\nCreate/Update Options:\n --auto-embed Convert text values in vector fields to embeddings before saving\n delete Delete a platformProposalsChunk\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\nSearch Options:\n Search query string (required)\n --limit Max number of records to return\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --orderBy Comma-separated list of ordering values\n --auto-embed Convert text queries to vectors via configured embedder\n\nEmbedding Options (for --auto-embed):\n Set EMBEDDER_PROVIDER=ollama to enable text-to-vector embedding.\n Optional: EMBEDDER_MODEL (default: nomic-embed-text)\n Optional: EMBEDDER_BASE_URL (default: http://localhost:11434)\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', 'search', '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 'search': + return handleSearch(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 = { + actorId: true, + body: true, + chunkIndex: true, + createdAt: true, + embedding: true, + id: true, + metadata: true, + platformProposalsId: true, + updatedAt: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs< + PlatformProposalsChunkSelect, + PlatformProposalsChunkFilter, + PlatformProposalsChunkOrderBy + > & { + select: PlatformProposalsChunkSelect; + } + >(argv, defaultSelect); + if (argv['auto-embed']) { + const embedder = resolveEmbedder(); + if (!embedder) { + console.error( + '--auto-embed requires an embedder. Set EMBEDDER_PROVIDER=ollama (and optionally EMBEDDER_MODEL, EMBEDDER_BASE_URL).' + ); + process.exit(1); + } + findManyArgs.where = await autoEmbedWhere(findManyArgs.where ?? {}, ['embedding'], embedder); + } + const client = getClient(); + const result = await client.platformProposalsChunk.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 = { + actorId: true, + body: true, + chunkIndex: true, + createdAt: true, + embedding: true, + id: true, + metadata: true, + platformProposalsId: true, + updatedAt: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs< + PlatformProposalsChunkSelect, + PlatformProposalsChunkFilter, + PlatformProposalsChunkOrderBy + > & { + select: PlatformProposalsChunkSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformProposalsChunk.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 handleSearch(argv: Partial>, _prompter: Inquirerer) { + try { + const query = Array.isArray(argv._) && argv._.length > 0 ? String(argv._[0]) : undefined; + if (!query) { + console.error('Error: search requires a argument'); + process.exit(1); + } + const searchWhere = { + embedding: { + vector: query, + }, + }; + if (argv['auto-embed']) { + const embedder = resolveEmbedder(); + if (!embedder) { + console.error( + '--auto-embed requires an embedder. Set EMBEDDER_PROVIDER=ollama (and optionally EMBEDDER_MODEL, EMBEDDER_BASE_URL).' + ); + process.exit(1); + } + await autoEmbedWhere(searchWhere ?? {}, ['embedding'], embedder); + } + const defaultSelect = { + actorId: true, + body: true, + chunkIndex: true, + createdAt: true, + embedding: true, + id: true, + metadata: true, + platformProposalsId: true, + updatedAt: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs< + PlatformProposalsChunkSelect, + PlatformProposalsChunkFilter, + PlatformProposalsChunkOrderBy + > & { + select: PlatformProposalsChunkSelect; + } + >(argv, defaultSelect, searchWhere); + const client = getClient(); + const result = await client.platformProposalsChunk.findMany(findManyArgs).execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to search records.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleGet(argv: Partial>, prompter: Inquirerer) { + try { + const answers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + ]); + const client = getClient(); + const result = await client.platformProposalsChunk + .findOne({ + id: answers.id as string, + select: { + actorId: true, + body: true, + chunkIndex: true, + createdAt: true, + embedding: true, + id: true, + metadata: true, + platformProposalsId: 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: 'actorId', + message: 'actorId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'body', + message: 'body', + required: true, + }, + { + type: 'text', + name: 'chunkIndex', + message: 'chunkIndex', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'embedding', + message: 'embedding', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'metadata', + message: 'metadata', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'platformProposalsId', + message: 'platformProposalsId', + required: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreatePlatformProposalsChunkInput['platformProposalsChunk']; + if (argv['auto-embed']) { + const embedder = resolveEmbedder(); + if (!embedder) { + console.error( + '--auto-embed requires an embedder. Set EMBEDDER_PROVIDER=ollama (and optionally EMBEDDER_MODEL, EMBEDDER_BASE_URL).' + ); + process.exit(1); + } + await autoEmbedInput(cleanedData, ['embedding'], embedder); + } + const client = getClient(); + const result = await client.platformProposalsChunk + .create({ + data: { + actorId: cleanedData.actorId, + body: cleanedData.body, + chunkIndex: cleanedData.chunkIndex, + embedding: cleanedData.embedding, + metadata: cleanedData.metadata, + platformProposalsId: cleanedData.platformProposalsId, + }, + select: { + actorId: true, + body: true, + chunkIndex: true, + createdAt: true, + embedding: true, + id: true, + metadata: true, + platformProposalsId: 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: 'actorId', + message: 'actorId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'body', + message: 'body', + required: false, + }, + { + type: 'text', + name: 'chunkIndex', + message: 'chunkIndex', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'embedding', + message: 'embedding', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'metadata', + message: 'metadata', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'platformProposalsId', + message: 'platformProposalsId', + required: false, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as PlatformProposalsChunkPatch; + if (argv['auto-embed']) { + const embedder = resolveEmbedder(); + if (!embedder) { + console.error( + '--auto-embed requires an embedder. Set EMBEDDER_PROVIDER=ollama (and optionally EMBEDDER_MODEL, EMBEDDER_BASE_URL).' + ); + process.exit(1); + } + await autoEmbedInput(cleanedData, ['embedding'], embedder); + } + const client = getClient(); + const result = await client.platformProposalsChunk + .update({ + where: { + id: answers.id as string, + }, + data: { + actorId: cleanedData.actorId, + body: cleanedData.body, + chunkIndex: cleanedData.chunkIndex, + embedding: cleanedData.embedding, + metadata: cleanedData.metadata, + platformProposalsId: cleanedData.platformProposalsId, + }, + select: { + actorId: true, + body: true, + chunkIndex: true, + createdAt: true, + embedding: true, + id: true, + metadata: true, + platformProposalsId: 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.platformProposalsChunk + .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/compute/cli/commands/platform-registry-binding.ts b/sdk/constructive-cli/src/compute/cli/commands/platform-registry-binding.ts new file mode 100644 index 0000000000..9dec55e2d2 --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/platform-registry-binding.ts @@ -0,0 +1,509 @@ +/** + * CLI commands for PlatformRegistryBinding + * @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 { + CreatePlatformRegistryBindingInput, + PlatformRegistryBindingPatch, + PlatformRegistryBindingSelect, + PlatformRegistryBindingFilter, + PlatformRegistryBindingOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + createdAt: 'string', + createdBy: 'uuid', + createdByPrincipal: 'uuid', + id: 'uuid', + metadata: 'json', + namespaceId: 'uuid', + observedCredentialVersion: 'string', + pullSecretName: 'string', + realm: 'string', + registryHost: 'string', + registryId: 'uuid', + status: 'string', + updatedAt: 'string', + updatedBy: 'uuid', + updatedByPrincipal: 'uuid', +}; +const usage = + '\nplatform-registry-binding \n\nCommands:\n list List platformRegistryBinding records\n find-first Find first matching platformRegistryBinding record\n get Get a platformRegistryBinding by ID\n create Create a new platformRegistryBinding\n update Update an existing platformRegistryBinding\n delete Delete a platformRegistryBinding\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, + createdBy: true, + createdByPrincipal: true, + id: true, + metadata: true, + namespaceId: true, + observedCredentialVersion: true, + pullSecretName: true, + realm: true, + registryHost: true, + registryId: true, + status: true, + updatedAt: true, + updatedBy: true, + updatedByPrincipal: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs< + PlatformRegistryBindingSelect, + PlatformRegistryBindingFilter, + PlatformRegistryBindingOrderBy + > & { + select: PlatformRegistryBindingSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformRegistryBinding.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, + createdBy: true, + createdByPrincipal: true, + id: true, + metadata: true, + namespaceId: true, + observedCredentialVersion: true, + pullSecretName: true, + realm: true, + registryHost: true, + registryId: true, + status: true, + updatedAt: true, + updatedBy: true, + updatedByPrincipal: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs< + PlatformRegistryBindingSelect, + PlatformRegistryBindingFilter, + PlatformRegistryBindingOrderBy + > & { + select: PlatformRegistryBindingSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformRegistryBinding.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.platformRegistryBinding + .findOne({ + id: answers.id as string, + select: { + createdAt: true, + createdBy: true, + createdByPrincipal: true, + id: true, + metadata: true, + namespaceId: true, + observedCredentialVersion: true, + pullSecretName: true, + realm: true, + registryHost: true, + registryId: true, + status: true, + updatedAt: true, + updatedBy: true, + updatedByPrincipal: 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: 'createdBy', + message: 'createdBy', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'metadata', + message: 'metadata', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'namespaceId', + message: 'namespaceId', + required: true, + }, + { + type: 'text', + name: 'observedCredentialVersion', + message: 'observedCredentialVersion', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'pullSecretName', + message: 'pullSecretName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'realm', + message: 'realm', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'registryHost', + message: 'registryHost', + required: true, + }, + { + type: 'text', + name: 'registryId', + message: 'registryId', + required: true, + }, + { + type: 'text', + name: 'status', + message: 'status', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'updatedBy', + message: 'updatedBy', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreatePlatformRegistryBindingInput['platformRegistryBinding']; + const client = getClient(); + const result = await client.platformRegistryBinding + .create({ + data: { + createdBy: cleanedData.createdBy, + createdByPrincipal: cleanedData.createdByPrincipal, + metadata: cleanedData.metadata, + namespaceId: cleanedData.namespaceId, + observedCredentialVersion: cleanedData.observedCredentialVersion, + pullSecretName: cleanedData.pullSecretName, + realm: cleanedData.realm, + registryHost: cleanedData.registryHost, + registryId: cleanedData.registryId, + status: cleanedData.status, + updatedBy: cleanedData.updatedBy, + updatedByPrincipal: cleanedData.updatedByPrincipal, + }, + select: { + createdAt: true, + createdBy: true, + createdByPrincipal: true, + id: true, + metadata: true, + namespaceId: true, + observedCredentialVersion: true, + pullSecretName: true, + realm: true, + registryHost: true, + registryId: true, + status: true, + updatedAt: true, + updatedBy: true, + updatedByPrincipal: 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: 'createdBy', + message: 'createdBy', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'metadata', + message: 'metadata', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'namespaceId', + message: 'namespaceId', + required: false, + }, + { + type: 'text', + name: 'observedCredentialVersion', + message: 'observedCredentialVersion', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'pullSecretName', + message: 'pullSecretName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'realm', + message: 'realm', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'registryHost', + message: 'registryHost', + required: false, + }, + { + type: 'text', + name: 'registryId', + message: 'registryId', + required: false, + }, + { + type: 'text', + name: 'status', + message: 'status', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'updatedBy', + message: 'updatedBy', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as PlatformRegistryBindingPatch; + const client = getClient(); + const result = await client.platformRegistryBinding + .update({ + where: { + id: answers.id as string, + }, + data: { + createdBy: cleanedData.createdBy, + createdByPrincipal: cleanedData.createdByPrincipal, + metadata: cleanedData.metadata, + namespaceId: cleanedData.namespaceId, + observedCredentialVersion: cleanedData.observedCredentialVersion, + pullSecretName: cleanedData.pullSecretName, + realm: cleanedData.realm, + registryHost: cleanedData.registryHost, + registryId: cleanedData.registryId, + status: cleanedData.status, + updatedBy: cleanedData.updatedBy, + updatedByPrincipal: cleanedData.updatedByPrincipal, + }, + select: { + createdAt: true, + createdBy: true, + createdByPrincipal: true, + id: true, + metadata: true, + namespaceId: true, + observedCredentialVersion: true, + pullSecretName: true, + realm: true, + registryHost: true, + registryId: true, + status: true, + updatedAt: true, + updatedBy: true, + updatedByPrincipal: 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.platformRegistryBinding + .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/compute/cli/commands/platform-registry-grant.ts b/sdk/constructive-cli/src/compute/cli/commands/platform-registry-grant.ts new file mode 100644 index 0000000000..de05a061ab --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/platform-registry-grant.ts @@ -0,0 +1,421 @@ +/** + * CLI commands for PlatformRegistryGrant + * @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 { + CreatePlatformRegistryGrantInput, + PlatformRegistryGrantPatch, + PlatformRegistryGrantSelect, + PlatformRegistryGrantFilter, + PlatformRegistryGrantOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + actions: 'string', + createdAt: 'string', + createdByPrincipal: 'uuid', + expiresAt: 'string', + grantedBy: 'uuid', + granteeKey: 'uuid', + granteeScope: 'string', + id: 'uuid', + registryId: 'uuid', + updatedAt: 'string', + updatedByPrincipal: 'uuid', +}; +const usage = + '\nplatform-registry-grant \n\nCommands:\n list List platformRegistryGrant records\n find-first Find first matching platformRegistryGrant record\n get Get a platformRegistryGrant by ID\n create Create a new platformRegistryGrant\n update Update an existing platformRegistryGrant\n delete Delete a platformRegistryGrant\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 = { + actions: true, + createdAt: true, + createdByPrincipal: true, + expiresAt: true, + grantedBy: true, + granteeKey: true, + granteeScope: true, + id: true, + registryId: true, + updatedAt: true, + updatedByPrincipal: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs< + PlatformRegistryGrantSelect, + PlatformRegistryGrantFilter, + PlatformRegistryGrantOrderBy + > & { + select: PlatformRegistryGrantSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformRegistryGrant.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 = { + actions: true, + createdAt: true, + createdByPrincipal: true, + expiresAt: true, + grantedBy: true, + granteeKey: true, + granteeScope: true, + id: true, + registryId: true, + updatedAt: true, + updatedByPrincipal: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs< + PlatformRegistryGrantSelect, + PlatformRegistryGrantFilter, + PlatformRegistryGrantOrderBy + > & { + select: PlatformRegistryGrantSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformRegistryGrant.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.platformRegistryGrant + .findOne({ + id: answers.id as string, + select: { + actions: true, + createdAt: true, + createdByPrincipal: true, + expiresAt: true, + grantedBy: true, + granteeKey: true, + granteeScope: true, + id: true, + registryId: true, + updatedAt: true, + updatedByPrincipal: 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: 'actions', + message: 'actions', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'expiresAt', + message: 'expiresAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'grantedBy', + message: 'grantedBy', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'granteeKey', + message: 'granteeKey', + required: true, + }, + { + type: 'text', + name: 'granteeScope', + message: 'granteeScope', + required: true, + }, + { + type: 'text', + name: 'registryId', + message: 'registryId', + required: true, + }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreatePlatformRegistryGrantInput['platformRegistryGrant']; + const client = getClient(); + const result = await client.platformRegistryGrant + .create({ + data: { + actions: cleanedData.actions, + createdByPrincipal: cleanedData.createdByPrincipal, + expiresAt: cleanedData.expiresAt, + grantedBy: cleanedData.grantedBy, + granteeKey: cleanedData.granteeKey, + granteeScope: cleanedData.granteeScope, + registryId: cleanedData.registryId, + updatedByPrincipal: cleanedData.updatedByPrincipal, + }, + select: { + actions: true, + createdAt: true, + createdByPrincipal: true, + expiresAt: true, + grantedBy: true, + granteeKey: true, + granteeScope: true, + id: true, + registryId: true, + updatedAt: true, + updatedByPrincipal: 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: 'actions', + message: 'actions', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'expiresAt', + message: 'expiresAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'grantedBy', + message: 'grantedBy', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'granteeKey', + message: 'granteeKey', + required: false, + }, + { + type: 'text', + name: 'granteeScope', + message: 'granteeScope', + required: false, + }, + { + type: 'text', + name: 'registryId', + message: 'registryId', + required: false, + }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as PlatformRegistryGrantPatch; + const client = getClient(); + const result = await client.platformRegistryGrant + .update({ + where: { + id: answers.id as string, + }, + data: { + actions: cleanedData.actions, + createdByPrincipal: cleanedData.createdByPrincipal, + expiresAt: cleanedData.expiresAt, + grantedBy: cleanedData.grantedBy, + granteeKey: cleanedData.granteeKey, + granteeScope: cleanedData.granteeScope, + registryId: cleanedData.registryId, + updatedByPrincipal: cleanedData.updatedByPrincipal, + }, + select: { + actions: true, + createdAt: true, + createdByPrincipal: true, + expiresAt: true, + grantedBy: true, + granteeKey: true, + granteeScope: true, + id: true, + registryId: true, + updatedAt: true, + updatedByPrincipal: 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.platformRegistryGrant + .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/compute/cli/commands/platform-registry.ts b/sdk/constructive-cli/src/compute/cli/commands/platform-registry.ts new file mode 100644 index 0000000000..9b4d090a07 --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/platform-registry.ts @@ -0,0 +1,591 @@ +/** + * CLI commands for PlatformRegistry + * @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 { + CreatePlatformRegistryInput, + PlatformRegistryPatch, + PlatformRegistrySelect, + PlatformRegistryFilter, + PlatformRegistryOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + authMode: 'string', + basePath: 'string', + createdAt: 'string', + createdByPrincipal: 'uuid', + credentialSecretName: 'string', + host: 'string', + id: 'uuid', + installationId: 'uuid', + isPublished: 'boolean', + kind: 'string', + labels: 'json', + lastError: 'string', + metadata: 'json', + name: 'string', + platformOnly: 'boolean', + role: 'string', + status: 'string', + updatedAt: 'string', + updatedByPrincipal: 'uuid', +}; +const usage = + '\nplatform-registry \n\nCommands:\n list List platformRegistry records\n find-first Find first matching platformRegistry record\n get Get a platformRegistry by ID\n create Create a new platformRegistry\n update Update an existing platformRegistry\n delete Delete a platformRegistry\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 = { + authMode: true, + basePath: true, + createdAt: true, + createdByPrincipal: true, + credentialSecretName: true, + host: true, + id: true, + installationId: true, + isPublished: true, + kind: true, + labels: true, + lastError: true, + metadata: true, + name: true, + platformOnly: true, + role: true, + status: true, + updatedAt: true, + updatedByPrincipal: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: PlatformRegistrySelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformRegistry.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 = { + authMode: true, + basePath: true, + createdAt: true, + createdByPrincipal: true, + credentialSecretName: true, + host: true, + id: true, + installationId: true, + isPublished: true, + kind: true, + labels: true, + lastError: true, + metadata: true, + name: true, + platformOnly: true, + role: true, + status: true, + updatedAt: true, + updatedByPrincipal: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: PlatformRegistrySelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformRegistry.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.platformRegistry + .findOne({ + id: answers.id as string, + select: { + authMode: true, + basePath: true, + createdAt: true, + createdByPrincipal: true, + credentialSecretName: true, + host: true, + id: true, + installationId: true, + isPublished: true, + kind: true, + labels: true, + lastError: true, + metadata: true, + name: true, + platformOnly: true, + role: true, + status: true, + updatedAt: true, + updatedByPrincipal: 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: 'authMode', + message: 'authMode', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'basePath', + message: 'basePath', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'credentialSecretName', + message: 'credentialSecretName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'host', + message: 'host', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'installationId', + message: 'installationId', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'isPublished', + message: 'isPublished', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'kind', + message: 'kind', + required: true, + }, + { + type: 'json', + name: 'labels', + message: 'labels', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'lastError', + message: 'lastError', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'metadata', + message: 'metadata', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'name', + message: 'name', + required: true, + }, + { + type: 'boolean', + name: 'platformOnly', + message: 'platformOnly', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'role', + message: 'role', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'status', + message: 'status', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreatePlatformRegistryInput['platformRegistry']; + const client = getClient(); + const result = await client.platformRegistry + .create({ + data: { + authMode: cleanedData.authMode, + basePath: cleanedData.basePath, + createdByPrincipal: cleanedData.createdByPrincipal, + credentialSecretName: cleanedData.credentialSecretName, + host: cleanedData.host, + installationId: cleanedData.installationId, + isPublished: cleanedData.isPublished, + kind: cleanedData.kind, + labels: cleanedData.labels, + lastError: cleanedData.lastError, + metadata: cleanedData.metadata, + name: cleanedData.name, + platformOnly: cleanedData.platformOnly, + role: cleanedData.role, + status: cleanedData.status, + updatedByPrincipal: cleanedData.updatedByPrincipal, + }, + select: { + authMode: true, + basePath: true, + createdAt: true, + createdByPrincipal: true, + credentialSecretName: true, + host: true, + id: true, + installationId: true, + isPublished: true, + kind: true, + labels: true, + lastError: true, + metadata: true, + name: true, + platformOnly: true, + role: true, + status: true, + updatedAt: true, + updatedByPrincipal: 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: 'authMode', + message: 'authMode', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'basePath', + message: 'basePath', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'credentialSecretName', + message: 'credentialSecretName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'host', + message: 'host', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'installationId', + message: 'installationId', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'isPublished', + message: 'isPublished', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'kind', + message: 'kind', + required: false, + }, + { + type: 'json', + name: 'labels', + message: 'labels', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'lastError', + message: 'lastError', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'metadata', + message: 'metadata', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'name', + message: 'name', + required: false, + }, + { + type: 'boolean', + name: 'platformOnly', + message: 'platformOnly', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'role', + message: 'role', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'status', + message: 'status', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as PlatformRegistryPatch; + const client = getClient(); + const result = await client.platformRegistry + .update({ + where: { + id: answers.id as string, + }, + data: { + authMode: cleanedData.authMode, + basePath: cleanedData.basePath, + createdByPrincipal: cleanedData.createdByPrincipal, + credentialSecretName: cleanedData.credentialSecretName, + host: cleanedData.host, + installationId: cleanedData.installationId, + isPublished: cleanedData.isPublished, + kind: cleanedData.kind, + labels: cleanedData.labels, + lastError: cleanedData.lastError, + metadata: cleanedData.metadata, + name: cleanedData.name, + platformOnly: cleanedData.platformOnly, + role: cleanedData.role, + status: cleanedData.status, + updatedByPrincipal: cleanedData.updatedByPrincipal, + }, + select: { + authMode: true, + basePath: true, + createdAt: true, + createdByPrincipal: true, + credentialSecretName: true, + host: true, + id: true, + installationId: true, + isPublished: true, + kind: true, + labels: true, + lastError: true, + metadata: true, + name: true, + platformOnly: true, + role: true, + status: true, + updatedAt: true, + updatedByPrincipal: 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.platformRegistry + .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/compute/cli/commands/platform-repository-event.ts b/sdk/constructive-cli/src/compute/cli/commands/platform-repository-event.ts new file mode 100644 index 0000000000..15c4acb44b --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/platform-repository-event.ts @@ -0,0 +1,467 @@ +/** + * CLI commands for PlatformRepositoryEvent + * @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 { + CreatePlatformRepositoryEventInput, + PlatformRepositoryEventPatch, + PlatformRepositoryEventSelect, + PlatformRepositoryEventFilter, + PlatformRepositoryEventOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + actorId: 'uuid', + commitSha: 'string', + createdAt: 'string', + createdByPrincipal: 'uuid', + deliveryId: 'string', + eventType: 'string', + id: 'uuid', + metadata: 'json', + payload: 'json', + ref: 'string', + repositoryId: 'uuid', + updatedAt: 'string', + updatedByPrincipal: 'uuid', +}; +const usage = + '\nplatform-repository-event \n\nCommands:\n list List platformRepositoryEvent records\n find-first Find first matching platformRepositoryEvent record\n get Get a platformRepositoryEvent by ID\n create Create a new platformRepositoryEvent\n update Update an existing platformRepositoryEvent\n delete Delete a platformRepositoryEvent\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 = { + actorId: true, + commitSha: true, + createdAt: true, + createdByPrincipal: true, + deliveryId: true, + eventType: true, + id: true, + metadata: true, + payload: true, + ref: true, + repositoryId: true, + updatedAt: true, + updatedByPrincipal: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs< + PlatformRepositoryEventSelect, + PlatformRepositoryEventFilter, + PlatformRepositoryEventOrderBy + > & { + select: PlatformRepositoryEventSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformRepositoryEvent.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 = { + actorId: true, + commitSha: true, + createdAt: true, + createdByPrincipal: true, + deliveryId: true, + eventType: true, + id: true, + metadata: true, + payload: true, + ref: true, + repositoryId: true, + updatedAt: true, + updatedByPrincipal: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs< + PlatformRepositoryEventSelect, + PlatformRepositoryEventFilter, + PlatformRepositoryEventOrderBy + > & { + select: PlatformRepositoryEventSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformRepositoryEvent.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.platformRepositoryEvent + .findOne({ + id: answers.id as string, + select: { + actorId: true, + commitSha: true, + createdAt: true, + createdByPrincipal: true, + deliveryId: true, + eventType: true, + id: true, + metadata: true, + payload: true, + ref: true, + repositoryId: true, + updatedAt: true, + updatedByPrincipal: 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: 'actorId', + message: 'actorId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'commitSha', + message: 'commitSha', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'deliveryId', + message: 'deliveryId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'eventType', + message: 'eventType', + required: true, + }, + { + type: 'json', + name: 'metadata', + message: 'metadata', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'payload', + message: 'payload', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'ref', + message: 'ref', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'repositoryId', + message: 'repositoryId', + required: true, + }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreatePlatformRepositoryEventInput['platformRepositoryEvent']; + const client = getClient(); + const result = await client.platformRepositoryEvent + .create({ + data: { + actorId: cleanedData.actorId, + commitSha: cleanedData.commitSha, + createdByPrincipal: cleanedData.createdByPrincipal, + deliveryId: cleanedData.deliveryId, + eventType: cleanedData.eventType, + metadata: cleanedData.metadata, + payload: cleanedData.payload, + ref: cleanedData.ref, + repositoryId: cleanedData.repositoryId, + updatedByPrincipal: cleanedData.updatedByPrincipal, + }, + select: { + actorId: true, + commitSha: true, + createdAt: true, + createdByPrincipal: true, + deliveryId: true, + eventType: true, + id: true, + metadata: true, + payload: true, + ref: true, + repositoryId: true, + updatedAt: true, + updatedByPrincipal: 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: 'actorId', + message: 'actorId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'commitSha', + message: 'commitSha', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'deliveryId', + message: 'deliveryId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'eventType', + message: 'eventType', + required: false, + }, + { + type: 'json', + name: 'metadata', + message: 'metadata', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'payload', + message: 'payload', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'ref', + message: 'ref', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'repositoryId', + message: 'repositoryId', + required: false, + }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as PlatformRepositoryEventPatch; + const client = getClient(); + const result = await client.platformRepositoryEvent + .update({ + where: { + id: answers.id as string, + }, + data: { + actorId: cleanedData.actorId, + commitSha: cleanedData.commitSha, + createdByPrincipal: cleanedData.createdByPrincipal, + deliveryId: cleanedData.deliveryId, + eventType: cleanedData.eventType, + metadata: cleanedData.metadata, + payload: cleanedData.payload, + ref: cleanedData.ref, + repositoryId: cleanedData.repositoryId, + updatedByPrincipal: cleanedData.updatedByPrincipal, + }, + select: { + actorId: true, + commitSha: true, + createdAt: true, + createdByPrincipal: true, + deliveryId: true, + eventType: true, + id: true, + metadata: true, + payload: true, + ref: true, + repositoryId: true, + updatedAt: true, + updatedByPrincipal: 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.platformRepositoryEvent + .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/compute/cli/commands/platform-repository-required-check.ts b/sdk/constructive-cli/src/compute/cli/commands/platform-repository-required-check.ts new file mode 100644 index 0000000000..4e7970d0bb --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/platform-repository-required-check.ts @@ -0,0 +1,294 @@ +/** + * CLI commands for PlatformRepositoryRequiredCheck + * @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 { + CreatePlatformRepositoryRequiredCheckInput, + PlatformRepositoryRequiredCheckPatch, + PlatformRepositoryRequiredCheckSelect, + PlatformRepositoryRequiredCheckFilter, + PlatformRepositoryRequiredCheckOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + createdAt: 'string', + id: 'uuid', + repositoryId: 'uuid', + updatedAt: 'string', + workflowId: 'uuid', +}; +const usage = + '\nplatform-repository-required-check \n\nCommands:\n list List platformRepositoryRequiredCheck records\n find-first Find first matching platformRepositoryRequiredCheck record\n get Get a platformRepositoryRequiredCheck by ID\n create Create a new platformRepositoryRequiredCheck\n update Update an existing platformRepositoryRequiredCheck\n delete Delete a platformRepositoryRequiredCheck\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, + id: true, + repositoryId: true, + updatedAt: true, + workflowId: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs< + PlatformRepositoryRequiredCheckSelect, + PlatformRepositoryRequiredCheckFilter, + PlatformRepositoryRequiredCheckOrderBy + > & { + select: PlatformRepositoryRequiredCheckSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformRepositoryRequiredCheck.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, + id: true, + repositoryId: true, + updatedAt: true, + workflowId: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs< + PlatformRepositoryRequiredCheckSelect, + PlatformRepositoryRequiredCheckFilter, + PlatformRepositoryRequiredCheckOrderBy + > & { + select: PlatformRepositoryRequiredCheckSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformRepositoryRequiredCheck.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.platformRepositoryRequiredCheck + .findOne({ + id: answers.id as string, + select: { + createdAt: true, + id: true, + repositoryId: true, + updatedAt: true, + workflowId: 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: 'repositoryId', + message: 'repositoryId', + required: true, + }, + { + type: 'text', + name: 'workflowId', + message: 'workflowId', + required: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreatePlatformRepositoryRequiredCheckInput['platformRepositoryRequiredCheck']; + const client = getClient(); + const result = await client.platformRepositoryRequiredCheck + .create({ + data: { + repositoryId: cleanedData.repositoryId, + workflowId: cleanedData.workflowId, + }, + select: { + createdAt: true, + id: true, + repositoryId: true, + updatedAt: true, + workflowId: 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: 'repositoryId', + message: 'repositoryId', + required: false, + }, + { + type: 'text', + name: 'workflowId', + message: 'workflowId', + required: false, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as PlatformRepositoryRequiredCheckPatch; + const client = getClient(); + const result = await client.platformRepositoryRequiredCheck + .update({ + where: { + id: answers.id as string, + }, + data: { + repositoryId: cleanedData.repositoryId, + workflowId: cleanedData.workflowId, + }, + select: { + createdAt: true, + id: true, + repositoryId: true, + updatedAt: true, + workflowId: 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.platformRepositoryRequiredCheck + .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/compute/cli/commands/platform-repository-workflow.ts b/sdk/constructive-cli/src/compute/cli/commands/platform-repository-workflow.ts new file mode 100644 index 0000000000..37389aa4b1 --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/platform-repository-workflow.ts @@ -0,0 +1,573 @@ +/** + * CLI commands for PlatformRepositoryWorkflow + * @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 { + CreatePlatformRepositoryWorkflowInput, + PlatformRepositoryWorkflowPatch, + PlatformRepositoryWorkflowSelect, + PlatformRepositoryWorkflowFilter, + PlatformRepositoryWorkflowOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + cancelInProgress: 'boolean', + concurrencyKey: 'string', + createdAt: 'string', + createdBy: 'uuid', + createdByPrincipal: 'uuid', + eventType: 'string', + graphId: 'uuid', + id: 'uuid', + inputs: 'json', + isEnabled: 'boolean', + name: 'string', + refPattern: 'string', + repositoryId: 'uuid', + requiredSecrets: 'string', + slug: 'string', + updatedAt: 'string', + updatedBy: 'uuid', + updatedByPrincipal: 'uuid', +}; +const usage = + '\nplatform-repository-workflow \n\nCommands:\n list List platformRepositoryWorkflow records\n find-first Find first matching platformRepositoryWorkflow record\n get Get a platformRepositoryWorkflow by ID\n create Create a new platformRepositoryWorkflow\n update Update an existing platformRepositoryWorkflow\n delete Delete a platformRepositoryWorkflow\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 = { + cancelInProgress: true, + concurrencyKey: true, + createdAt: true, + createdBy: true, + createdByPrincipal: true, + eventType: true, + graphId: true, + id: true, + inputs: true, + isEnabled: true, + name: true, + refPattern: true, + repositoryId: true, + requiredSecrets: true, + slug: true, + updatedAt: true, + updatedBy: true, + updatedByPrincipal: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs< + PlatformRepositoryWorkflowSelect, + PlatformRepositoryWorkflowFilter, + PlatformRepositoryWorkflowOrderBy + > & { + select: PlatformRepositoryWorkflowSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformRepositoryWorkflow.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 = { + cancelInProgress: true, + concurrencyKey: true, + createdAt: true, + createdBy: true, + createdByPrincipal: true, + eventType: true, + graphId: true, + id: true, + inputs: true, + isEnabled: true, + name: true, + refPattern: true, + repositoryId: true, + requiredSecrets: true, + slug: true, + updatedAt: true, + updatedBy: true, + updatedByPrincipal: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs< + PlatformRepositoryWorkflowSelect, + PlatformRepositoryWorkflowFilter, + PlatformRepositoryWorkflowOrderBy + > & { + select: PlatformRepositoryWorkflowSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformRepositoryWorkflow.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.platformRepositoryWorkflow + .findOne({ + id: answers.id as string, + select: { + cancelInProgress: true, + concurrencyKey: true, + createdAt: true, + createdBy: true, + createdByPrincipal: true, + eventType: true, + graphId: true, + id: true, + inputs: true, + isEnabled: true, + name: true, + refPattern: true, + repositoryId: true, + requiredSecrets: true, + slug: true, + updatedAt: true, + updatedBy: true, + updatedByPrincipal: 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: 'boolean', + name: 'cancelInProgress', + message: 'cancelInProgress', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'concurrencyKey', + message: 'concurrencyKey', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'createdBy', + message: 'createdBy', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'eventType', + message: 'eventType', + required: true, + }, + { + type: 'text', + name: 'graphId', + message: 'graphId', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'inputs', + message: 'inputs', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'isEnabled', + message: 'isEnabled', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'name', + message: 'name', + required: true, + }, + { + type: 'text', + name: 'refPattern', + message: 'refPattern', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'repositoryId', + message: 'repositoryId', + required: true, + }, + { + type: 'text', + name: 'requiredSecrets', + message: 'requiredSecrets', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'slug', + message: 'slug', + required: true, + }, + { + type: 'text', + name: 'updatedBy', + message: 'updatedBy', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreatePlatformRepositoryWorkflowInput['platformRepositoryWorkflow']; + const client = getClient(); + const result = await client.platformRepositoryWorkflow + .create({ + data: { + cancelInProgress: cleanedData.cancelInProgress, + concurrencyKey: cleanedData.concurrencyKey, + createdBy: cleanedData.createdBy, + createdByPrincipal: cleanedData.createdByPrincipal, + eventType: cleanedData.eventType, + graphId: cleanedData.graphId, + inputs: cleanedData.inputs, + isEnabled: cleanedData.isEnabled, + name: cleanedData.name, + refPattern: cleanedData.refPattern, + repositoryId: cleanedData.repositoryId, + requiredSecrets: cleanedData.requiredSecrets, + slug: cleanedData.slug, + updatedBy: cleanedData.updatedBy, + updatedByPrincipal: cleanedData.updatedByPrincipal, + }, + select: { + cancelInProgress: true, + concurrencyKey: true, + createdAt: true, + createdBy: true, + createdByPrincipal: true, + eventType: true, + graphId: true, + id: true, + inputs: true, + isEnabled: true, + name: true, + refPattern: true, + repositoryId: true, + requiredSecrets: true, + slug: true, + updatedAt: true, + updatedBy: true, + updatedByPrincipal: 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: 'boolean', + name: 'cancelInProgress', + message: 'cancelInProgress', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'concurrencyKey', + message: 'concurrencyKey', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'createdBy', + message: 'createdBy', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'eventType', + message: 'eventType', + required: false, + }, + { + type: 'text', + name: 'graphId', + message: 'graphId', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'inputs', + message: 'inputs', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'isEnabled', + message: 'isEnabled', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'name', + message: 'name', + required: false, + }, + { + type: 'text', + name: 'refPattern', + message: 'refPattern', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'repositoryId', + message: 'repositoryId', + required: false, + }, + { + type: 'text', + name: 'requiredSecrets', + message: 'requiredSecrets', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'slug', + message: 'slug', + required: false, + }, + { + type: 'text', + name: 'updatedBy', + message: 'updatedBy', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as PlatformRepositoryWorkflowPatch; + const client = getClient(); + const result = await client.platformRepositoryWorkflow + .update({ + where: { + id: answers.id as string, + }, + data: { + cancelInProgress: cleanedData.cancelInProgress, + concurrencyKey: cleanedData.concurrencyKey, + createdBy: cleanedData.createdBy, + createdByPrincipal: cleanedData.createdByPrincipal, + eventType: cleanedData.eventType, + graphId: cleanedData.graphId, + inputs: cleanedData.inputs, + isEnabled: cleanedData.isEnabled, + name: cleanedData.name, + refPattern: cleanedData.refPattern, + repositoryId: cleanedData.repositoryId, + requiredSecrets: cleanedData.requiredSecrets, + slug: cleanedData.slug, + updatedBy: cleanedData.updatedBy, + updatedByPrincipal: cleanedData.updatedByPrincipal, + }, + select: { + cancelInProgress: true, + concurrencyKey: true, + createdAt: true, + createdBy: true, + createdByPrincipal: true, + eventType: true, + graphId: true, + id: true, + inputs: true, + isEnabled: true, + name: true, + refPattern: true, + repositoryId: true, + requiredSecrets: true, + slug: true, + updatedAt: true, + updatedBy: true, + updatedByPrincipal: 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.platformRepositoryWorkflow + .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/compute/cli/commands/platform-repository.ts b/sdk/constructive-cli/src/compute/cli/commands/platform-repository.ts new file mode 100644 index 0000000000..de65dc3034 --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/platform-repository.ts @@ -0,0 +1,743 @@ +/** + * CLI commands for PlatformRepository + * @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 { + CreatePlatformRepositoryInput, + PlatformRepositoryPatch, + PlatformRepositorySelect, + PlatformRepositoryFilter, + PlatformRepositoryOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + cloneUrl: 'string', + cloneUrlTrgmSimilarity: 'float', + createdAt: 'string', + createdBy: 'uuid', + createdByPrincipal: 'uuid', + defaultBranch: 'string', + defaultBranchTrgmSimilarity: 'float', + description: 'string', + descriptionTrgmSimilarity: 'float', + embedding: 'string', + embeddingUpdatedAt: 'string', + embeddingVectorDistance: 'float', + externalId: 'string', + externalIdTrgmSimilarity: 'float', + id: 'uuid', + isArchived: 'boolean', + metadata: 'json', + name: 'string', + nameTrgmSimilarity: 'float', + ownerId: 'uuid', + provider: 'string', + providerTrgmSimilarity: 'float', + search: 'string', + searchScore: 'float', + searchTsvRank: 'float', + slug: 'string', + slugTrgmSimilarity: 'float', + updatedAt: 'string', + updatedBy: 'uuid', + updatedByPrincipal: 'uuid', + visibility: 'string', + visibilityTrgmSimilarity: 'float', +}; +import { resolveEmbedder, autoEmbedWhere, autoEmbedInput } from '../embedder'; +const usage = + '\nplatform-repository \n\nCommands:\n list List platformRepository records\n find-first Find first matching platformRepository record\n search Search platformRepository records\n get Get a platformRepository by ID\n create Create a new platformRepository\n update Update an existing platformRepository\n\nCreate/Update Options:\n --auto-embed Convert text values in vector fields to embeddings before saving\n delete Delete a platformRepository\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\nSearch Options:\n Search query string (required)\n --limit Max number of records to return\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --orderBy Comma-separated list of ordering values\n --auto-embed Convert text queries to vectors via configured embedder\n\nEmbedding Options (for --auto-embed):\n Set EMBEDDER_PROVIDER=ollama to enable text-to-vector embedding.\n Optional: EMBEDDER_MODEL (default: nomic-embed-text)\n Optional: EMBEDDER_BASE_URL (default: http://localhost:11434)\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', 'search', '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 'search': + return handleSearch(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 = { + cloneUrl: true, + createdAt: true, + createdBy: true, + createdByPrincipal: true, + defaultBranch: true, + description: true, + embedding: true, + externalId: true, + id: true, + isArchived: true, + metadata: true, + name: true, + ownerId: true, + provider: true, + slug: true, + updatedAt: true, + updatedBy: true, + updatedByPrincipal: true, + visibility: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs< + PlatformRepositorySelect, + PlatformRepositoryFilter, + PlatformRepositoryOrderBy + > & { + select: PlatformRepositorySelect; + } + >(argv, defaultSelect); + if (argv['auto-embed']) { + const embedder = resolveEmbedder(); + if (!embedder) { + console.error( + '--auto-embed requires an embedder. Set EMBEDDER_PROVIDER=ollama (and optionally EMBEDDER_MODEL, EMBEDDER_BASE_URL).' + ); + process.exit(1); + } + findManyArgs.where = await autoEmbedWhere(findManyArgs.where ?? {}, ['embedding'], embedder); + } + const client = getClient(); + const result = await client.platformRepository.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 = { + cloneUrl: true, + createdAt: true, + createdBy: true, + createdByPrincipal: true, + defaultBranch: true, + description: true, + embedding: true, + externalId: true, + id: true, + isArchived: true, + metadata: true, + name: true, + ownerId: true, + provider: true, + slug: true, + updatedAt: true, + updatedBy: true, + updatedByPrincipal: true, + visibility: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs< + PlatformRepositorySelect, + PlatformRepositoryFilter, + PlatformRepositoryOrderBy + > & { + select: PlatformRepositorySelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformRepository.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 handleSearch(argv: Partial>, _prompter: Inquirerer) { + try { + const query = Array.isArray(argv._) && argv._.length > 0 ? String(argv._[0]) : undefined; + if (!query) { + console.error('Error: search requires a argument'); + process.exit(1); + } + const searchWhere = { + embedding: { + vector: query, + }, + trgmCloneUrl: { + value: query, + threshold: 0.3, + }, + trgmDefaultBranch: { + value: query, + threshold: 0.3, + }, + trgmDescription: { + value: query, + threshold: 0.3, + }, + trgmExternalId: { + value: query, + threshold: 0.3, + }, + trgmName: { + value: query, + threshold: 0.3, + }, + trgmProvider: { + value: query, + threshold: 0.3, + }, + search: { + query, + }, + trgmSlug: { + value: query, + threshold: 0.3, + }, + trgmVisibility: { + value: query, + threshold: 0.3, + }, + }; + if (argv['auto-embed']) { + const embedder = resolveEmbedder(); + if (!embedder) { + console.error( + '--auto-embed requires an embedder. Set EMBEDDER_PROVIDER=ollama (and optionally EMBEDDER_MODEL, EMBEDDER_BASE_URL).' + ); + process.exit(1); + } + await autoEmbedWhere(searchWhere ?? {}, ['embedding'], embedder); + } + const defaultSelect = { + cloneUrl: true, + createdAt: true, + createdBy: true, + createdByPrincipal: true, + defaultBranch: true, + description: true, + embedding: true, + externalId: true, + id: true, + isArchived: true, + metadata: true, + name: true, + ownerId: true, + provider: true, + slug: true, + updatedAt: true, + updatedBy: true, + updatedByPrincipal: true, + visibility: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs< + PlatformRepositorySelect, + PlatformRepositoryFilter, + PlatformRepositoryOrderBy + > & { + select: PlatformRepositorySelect; + } + >(argv, defaultSelect, searchWhere); + const client = getClient(); + const result = await client.platformRepository.findMany(findManyArgs).execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to search records.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleGet(argv: Partial>, prompter: Inquirerer) { + try { + const answers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + ]); + const client = getClient(); + const result = await client.platformRepository + .findOne({ + id: answers.id as string, + select: { + cloneUrl: true, + createdAt: true, + createdBy: true, + createdByPrincipal: true, + defaultBranch: true, + description: true, + embedding: true, + externalId: true, + id: true, + isArchived: true, + metadata: true, + name: true, + ownerId: true, + provider: true, + slug: true, + updatedAt: true, + updatedBy: true, + updatedByPrincipal: true, + visibility: 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: 'cloneUrl', + message: 'cloneUrl', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'createdBy', + message: 'createdBy', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'defaultBranch', + message: 'defaultBranch', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'description', + message: 'description', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'embedding', + message: 'embedding', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'externalId', + message: 'externalId', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'isArchived', + message: 'isArchived', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'metadata', + message: 'metadata', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'name', + message: 'name', + required: true, + }, + { + type: 'text', + name: 'ownerId', + message: 'ownerId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'provider', + message: 'provider', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'slug', + message: 'slug', + required: true, + }, + { + type: 'text', + name: 'updatedBy', + message: 'updatedBy', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'visibility', + message: 'visibility', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreatePlatformRepositoryInput['platformRepository']; + if (argv['auto-embed']) { + const embedder = resolveEmbedder(); + if (!embedder) { + console.error( + '--auto-embed requires an embedder. Set EMBEDDER_PROVIDER=ollama (and optionally EMBEDDER_MODEL, EMBEDDER_BASE_URL).' + ); + process.exit(1); + } + await autoEmbedInput(cleanedData, ['embedding'], embedder); + } + const client = getClient(); + const result = await client.platformRepository + .create({ + data: { + cloneUrl: cleanedData.cloneUrl, + createdBy: cleanedData.createdBy, + createdByPrincipal: cleanedData.createdByPrincipal, + defaultBranch: cleanedData.defaultBranch, + description: cleanedData.description, + embedding: cleanedData.embedding, + externalId: cleanedData.externalId, + isArchived: cleanedData.isArchived, + metadata: cleanedData.metadata, + name: cleanedData.name, + ownerId: cleanedData.ownerId, + provider: cleanedData.provider, + slug: cleanedData.slug, + updatedBy: cleanedData.updatedBy, + updatedByPrincipal: cleanedData.updatedByPrincipal, + visibility: cleanedData.visibility, + }, + select: { + cloneUrl: true, + createdAt: true, + createdBy: true, + createdByPrincipal: true, + defaultBranch: true, + description: true, + embedding: true, + externalId: true, + id: true, + isArchived: true, + metadata: true, + name: true, + ownerId: true, + provider: true, + slug: true, + updatedAt: true, + updatedBy: true, + updatedByPrincipal: true, + visibility: 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: 'cloneUrl', + message: 'cloneUrl', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'createdBy', + message: 'createdBy', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'defaultBranch', + message: 'defaultBranch', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'description', + message: 'description', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'embedding', + message: 'embedding', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'externalId', + message: 'externalId', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'isArchived', + message: 'isArchived', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'metadata', + message: 'metadata', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'name', + message: 'name', + required: false, + }, + { + type: 'text', + name: 'ownerId', + message: 'ownerId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'provider', + message: 'provider', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'slug', + message: 'slug', + required: false, + }, + { + type: 'text', + name: 'updatedBy', + message: 'updatedBy', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'visibility', + message: 'visibility', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as PlatformRepositoryPatch; + if (argv['auto-embed']) { + const embedder = resolveEmbedder(); + if (!embedder) { + console.error( + '--auto-embed requires an embedder. Set EMBEDDER_PROVIDER=ollama (and optionally EMBEDDER_MODEL, EMBEDDER_BASE_URL).' + ); + process.exit(1); + } + await autoEmbedInput(cleanedData, ['embedding'], embedder); + } + const client = getClient(); + const result = await client.platformRepository + .update({ + where: { + id: answers.id as string, + }, + data: { + cloneUrl: cleanedData.cloneUrl, + createdBy: cleanedData.createdBy, + createdByPrincipal: cleanedData.createdByPrincipal, + defaultBranch: cleanedData.defaultBranch, + description: cleanedData.description, + embedding: cleanedData.embedding, + externalId: cleanedData.externalId, + isArchived: cleanedData.isArchived, + metadata: cleanedData.metadata, + name: cleanedData.name, + ownerId: cleanedData.ownerId, + provider: cleanedData.provider, + slug: cleanedData.slug, + updatedBy: cleanedData.updatedBy, + updatedByPrincipal: cleanedData.updatedByPrincipal, + visibility: cleanedData.visibility, + }, + select: { + cloneUrl: true, + createdAt: true, + createdBy: true, + createdByPrincipal: true, + defaultBranch: true, + description: true, + embedding: true, + externalId: true, + id: true, + isArchived: true, + metadata: true, + name: true, + ownerId: true, + provider: true, + slug: true, + updatedAt: true, + updatedBy: true, + updatedByPrincipal: true, + visibility: 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.platformRepository + .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/compute/cli/commands/platform-resource-declared-capacity.ts b/sdk/constructive-cli/src/compute/cli/commands/platform-resource-declared-capacity.ts index 47b79a0b91..f75ec770cd 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/platform-resource-declared-capacity.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/platform-resource-declared-capacity.ts @@ -29,6 +29,7 @@ const fieldSchema: FieldSchema = { source: 'string', sourceId: 'uuid', storageSizeBytes: 'int', + storageTotalBytes: 'int', }; const usage = '\nplatform-resource-declared-capacity \n\nCommands:\n list List platformResourceDeclaredCapacity records\n find-first Find first matching platformResourceDeclaredCapacity record\n create Create a new platformResourceDeclaredCapacity\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'; @@ -88,6 +89,7 @@ async function handleList(argv: Partial>, _prompter: Inq source: true, sourceId: true, storageSizeBytes: true, + storageTotalBytes: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs< @@ -125,6 +127,7 @@ async function handleFindFirst(argv: Partial>, _prompter source: true, sourceId: true, storageSizeBytes: true, + storageTotalBytes: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs< @@ -227,6 +230,12 @@ async function handleCreate(argv: Partial>, prompter: In message: 'storageSizeBytes', required: true, }, + { + type: 'text', + name: 'storageTotalBytes', + message: 'storageTotalBytes', + required: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined( @@ -250,6 +259,7 @@ async function handleCreate(argv: Partial>, prompter: In source: cleanedData.source, sourceId: cleanedData.sourceId, storageSizeBytes: cleanedData.storageSizeBytes, + storageTotalBytes: cleanedData.storageTotalBytes, }, select: { cpuLimitMillicores: true, @@ -265,6 +275,7 @@ async function handleCreate(argv: Partial>, prompter: In source: true, sourceId: true, storageSizeBytes: true, + storageTotalBytes: true, }, }) .execute(); diff --git a/sdk/constructive-cli/src/compute/cli/commands/platform-resource-definition.ts b/sdk/constructive-cli/src/compute/cli/commands/platform-resource-definition.ts index 03fa2c7e65..dab84defbe 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/platform-resource-definition.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/platform-resource-definition.ts @@ -19,6 +19,7 @@ const fieldSchema: FieldSchema = { annotations: 'json', createdAt: 'string', createdBy: 'uuid', + createdByPrincipal: 'uuid', defaultSpec: 'json', description: 'string', id: 'uuid', @@ -34,6 +35,7 @@ const fieldSchema: FieldSchema = { stepUpMinAge: 'string', updatedAt: 'string', updatedBy: 'uuid', + updatedByPrincipal: 'uuid', }; const usage = '\nplatform-resource-definition \n\nCommands:\n list List platformResourceDefinition records\n find-first Find first matching platformResourceDefinition record\n get Get a platformResourceDefinition by ID\n create Create a new platformResourceDefinition\n update Update an existing platformResourceDefinition\n delete Delete a platformResourceDefinition\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'; @@ -89,6 +91,7 @@ async function handleList(argv: Partial>, _prompter: Inq annotations: true, createdAt: true, createdBy: true, + createdByPrincipal: true, defaultSpec: true, description: true, id: true, @@ -104,6 +107,7 @@ async function handleList(argv: Partial>, _prompter: Inq stepUpMinAge: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs< @@ -131,6 +135,7 @@ async function handleFindFirst(argv: Partial>, _prompter annotations: true, createdAt: true, createdBy: true, + createdByPrincipal: true, defaultSpec: true, description: true, id: true, @@ -146,6 +151,7 @@ async function handleFindFirst(argv: Partial>, _prompter stepUpMinAge: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs< @@ -185,6 +191,7 @@ async function handleGet(argv: Partial>, prompter: Inqui annotations: true, createdAt: true, createdBy: true, + createdByPrincipal: true, defaultSpec: true, description: true, id: true, @@ -200,6 +207,7 @@ async function handleGet(argv: Partial>, prompter: Inqui stepUpMinAge: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }, }) .execute(); @@ -229,6 +237,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, { type: 'json', name: 'defaultSpec', @@ -316,6 +331,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined( @@ -328,6 +350,7 @@ async function handleCreate(argv: Partial>, prompter: In data: { annotations: cleanedData.annotations, createdBy: cleanedData.createdBy, + createdByPrincipal: cleanedData.createdByPrincipal, defaultSpec: cleanedData.defaultSpec, description: cleanedData.description, integrations: cleanedData.integrations, @@ -341,11 +364,13 @@ async function handleCreate(argv: Partial>, prompter: In slug: cleanedData.slug, stepUpMinAge: cleanedData.stepUpMinAge, updatedBy: cleanedData.updatedBy, + updatedByPrincipal: cleanedData.updatedByPrincipal, }, select: { annotations: true, createdAt: true, createdBy: true, + createdByPrincipal: true, defaultSpec: true, description: true, id: true, @@ -361,6 +386,7 @@ async function handleCreate(argv: Partial>, prompter: In stepUpMinAge: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }, }) .execute(); @@ -396,6 +422,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, { type: 'json', name: 'defaultSpec', @@ -483,6 +516,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as PlatformResourceDefinitionPatch; @@ -495,6 +535,7 @@ async function handleUpdate(argv: Partial>, prompter: In data: { annotations: cleanedData.annotations, createdBy: cleanedData.createdBy, + createdByPrincipal: cleanedData.createdByPrincipal, defaultSpec: cleanedData.defaultSpec, description: cleanedData.description, integrations: cleanedData.integrations, @@ -508,11 +549,13 @@ async function handleUpdate(argv: Partial>, prompter: In slug: cleanedData.slug, stepUpMinAge: cleanedData.stepUpMinAge, updatedBy: cleanedData.updatedBy, + updatedByPrincipal: cleanedData.updatedByPrincipal, }, select: { annotations: true, createdAt: true, createdBy: true, + createdByPrincipal: true, defaultSpec: true, description: true, id: true, @@ -528,6 +571,7 @@ async function handleUpdate(argv: Partial>, prompter: In stepUpMinAge: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }, }) .execute(); diff --git a/sdk/constructive-cli/src/compute/cli/commands/platform-resource-installation.ts b/sdk/constructive-cli/src/compute/cli/commands/platform-resource-installation.ts index 7eb39400f8..76f61a2206 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/platform-resource-installation.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/platform-resource-installation.ts @@ -19,6 +19,7 @@ const fieldSchema: FieldSchema = { commitId: 'uuid', createdAt: 'string', createdBy: 'uuid', + createdByPrincipal: 'uuid', id: 'uuid', name: 'string', namespaceId: 'uuid', @@ -29,6 +30,7 @@ const fieldSchema: FieldSchema = { storeId: 'uuid', updatedAt: 'string', updatedBy: 'uuid', + updatedByPrincipal: 'uuid', }; const usage = '\nplatform-resource-installation \n\nCommands:\n list List platformResourceInstallation records\n find-first Find first matching platformResourceInstallation record\n get Get a platformResourceInstallation by ID\n create Create a new platformResourceInstallation\n update Update an existing platformResourceInstallation\n delete Delete a platformResourceInstallation\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'; @@ -84,6 +86,7 @@ async function handleList(argv: Partial>, _prompter: Inq commitId: true, createdAt: true, createdBy: true, + createdByPrincipal: true, id: true, name: true, namespaceId: true, @@ -94,6 +97,7 @@ async function handleList(argv: Partial>, _prompter: Inq storeId: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs< @@ -121,6 +125,7 @@ async function handleFindFirst(argv: Partial>, _prompter commitId: true, createdAt: true, createdBy: true, + createdByPrincipal: true, id: true, name: true, namespaceId: true, @@ -131,6 +136,7 @@ async function handleFindFirst(argv: Partial>, _prompter storeId: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs< @@ -170,6 +176,7 @@ async function handleGet(argv: Partial>, prompter: Inqui commitId: true, createdAt: true, createdBy: true, + createdByPrincipal: true, id: true, name: true, namespaceId: true, @@ -180,6 +187,7 @@ async function handleGet(argv: Partial>, prompter: Inqui storeId: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }, }) .execute(); @@ -209,6 +217,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'name', @@ -262,6 +277,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined( @@ -274,6 +296,7 @@ async function handleCreate(argv: Partial>, prompter: In data: { commitId: cleanedData.commitId, createdBy: cleanedData.createdBy, + createdByPrincipal: cleanedData.createdByPrincipal, name: cleanedData.name, namespaceId: cleanedData.namespaceId, params: cleanedData.params, @@ -282,11 +305,13 @@ async function handleCreate(argv: Partial>, prompter: In status: cleanedData.status, storeId: cleanedData.storeId, updatedBy: cleanedData.updatedBy, + updatedByPrincipal: cleanedData.updatedByPrincipal, }, select: { commitId: true, createdAt: true, createdBy: true, + createdByPrincipal: true, id: true, name: true, namespaceId: true, @@ -297,6 +322,7 @@ async function handleCreate(argv: Partial>, prompter: In storeId: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }, }) .execute(); @@ -332,6 +358,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'name', @@ -385,6 +418,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as PlatformResourceInstallationPatch; @@ -397,6 +437,7 @@ async function handleUpdate(argv: Partial>, prompter: In data: { commitId: cleanedData.commitId, createdBy: cleanedData.createdBy, + createdByPrincipal: cleanedData.createdByPrincipal, name: cleanedData.name, namespaceId: cleanedData.namespaceId, params: cleanedData.params, @@ -405,11 +446,13 @@ async function handleUpdate(argv: Partial>, prompter: In status: cleanedData.status, storeId: cleanedData.storeId, updatedBy: cleanedData.updatedBy, + updatedByPrincipal: cleanedData.updatedByPrincipal, }, select: { commitId: true, createdAt: true, createdBy: true, + createdByPrincipal: true, id: true, name: true, namespaceId: true, @@ -420,6 +463,7 @@ async function handleUpdate(argv: Partial>, prompter: In storeId: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }, }) .execute(); diff --git a/sdk/constructive-cli/src/compute/cli/commands/platform-resource-observed-storage.ts b/sdk/constructive-cli/src/compute/cli/commands/platform-resource-observed-storage.ts new file mode 100644 index 0000000000..6e739bbb6c --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/platform-resource-observed-storage.ts @@ -0,0 +1,334 @@ +/** + * CLI commands for PlatformResourceObservedStorage + * @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 { + CreatePlatformResourceObservedStorageInput, + PlatformResourceObservedStoragePatch, + PlatformResourceObservedStorageSelect, + PlatformResourceObservedStorageFilter, + PlatformResourceObservedStorageOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + capacity: 'string', + capacityBytes: 'int', + claimName: 'string', + declaredStorageClass: 'string', + declaredStorageSizeBytes: 'int', + declaredStorageTotalBytes: 'int', + installationId: 'uuid', + isBound: 'boolean', + kind: 'string', + namespaceId: 'uuid', + phase: 'string', + requested: 'string', + requestedBytes: 'int', + resourceId: 'uuid', + resourceStatus: 'string', + slug: 'string', + storageClass: 'string', + storageName: 'string', +}; +const usage = + '\nplatform-resource-observed-storage \n\nCommands:\n list List platformResourceObservedStorage records\n find-first Find first matching platformResourceObservedStorage record\n create Create a new platformResourceObservedStorage\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', 'create'], + }, + ]); + 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 'create': + return handleCreate(argv, prompter); + default: + console.log(usage); + process.exit(1); + } +} +async function handleList(argv: Partial>, _prompter: Inquirerer) { + try { + const defaultSelect = { + capacity: true, + capacityBytes: true, + claimName: true, + declaredStorageClass: true, + declaredStorageSizeBytes: true, + declaredStorageTotalBytes: true, + installationId: true, + isBound: true, + kind: true, + namespaceId: true, + phase: true, + requested: true, + requestedBytes: true, + resourceId: true, + resourceStatus: true, + slug: true, + storageClass: true, + storageName: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs< + PlatformResourceObservedStorageSelect, + PlatformResourceObservedStorageFilter, + PlatformResourceObservedStorageOrderBy + > & { + select: PlatformResourceObservedStorageSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformResourceObservedStorage.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 = { + capacity: true, + capacityBytes: true, + claimName: true, + declaredStorageClass: true, + declaredStorageSizeBytes: true, + declaredStorageTotalBytes: true, + installationId: true, + isBound: true, + kind: true, + namespaceId: true, + phase: true, + requested: true, + requestedBytes: true, + resourceId: true, + resourceStatus: true, + slug: true, + storageClass: true, + storageName: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs< + PlatformResourceObservedStorageSelect, + PlatformResourceObservedStorageFilter, + PlatformResourceObservedStorageOrderBy + > & { + select: PlatformResourceObservedStorageSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformResourceObservedStorage.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 handleCreate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'capacity', + message: 'capacity', + required: true, + }, + { + type: 'text', + name: 'capacityBytes', + message: 'capacityBytes', + required: true, + }, + { + type: 'text', + name: 'claimName', + message: 'claimName', + required: true, + }, + { + type: 'text', + name: 'declaredStorageClass', + message: 'declaredStorageClass', + required: true, + }, + { + type: 'text', + name: 'declaredStorageSizeBytes', + message: 'declaredStorageSizeBytes', + required: true, + }, + { + type: 'text', + name: 'declaredStorageTotalBytes', + message: 'declaredStorageTotalBytes', + required: true, + }, + { + type: 'text', + name: 'installationId', + message: 'installationId', + required: true, + }, + { + type: 'boolean', + name: 'isBound', + message: 'isBound', + required: true, + }, + { + type: 'text', + name: 'kind', + message: 'kind', + required: true, + }, + { + type: 'text', + name: 'namespaceId', + message: 'namespaceId', + required: true, + }, + { + type: 'text', + name: 'phase', + message: 'phase', + required: true, + }, + { + type: 'text', + name: 'requested', + message: 'requested', + required: true, + }, + { + type: 'text', + name: 'requestedBytes', + message: 'requestedBytes', + required: true, + }, + { + type: 'text', + name: 'resourceId', + message: 'resourceId', + required: true, + }, + { + type: 'text', + name: 'resourceStatus', + message: 'resourceStatus', + required: true, + }, + { + type: 'text', + name: 'slug', + message: 'slug', + required: true, + }, + { + type: 'text', + name: 'storageClass', + message: 'storageClass', + required: true, + }, + { + type: 'text', + name: 'storageName', + message: 'storageName', + required: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreatePlatformResourceObservedStorageInput['platformResourceObservedStorage']; + const client = getClient(); + const result = await client.platformResourceObservedStorage + .create({ + data: { + capacity: cleanedData.capacity, + capacityBytes: cleanedData.capacityBytes, + claimName: cleanedData.claimName, + declaredStorageClass: cleanedData.declaredStorageClass, + declaredStorageSizeBytes: cleanedData.declaredStorageSizeBytes, + declaredStorageTotalBytes: cleanedData.declaredStorageTotalBytes, + installationId: cleanedData.installationId, + isBound: cleanedData.isBound, + kind: cleanedData.kind, + namespaceId: cleanedData.namespaceId, + phase: cleanedData.phase, + requested: cleanedData.requested, + requestedBytes: cleanedData.requestedBytes, + resourceId: cleanedData.resourceId, + resourceStatus: cleanedData.resourceStatus, + slug: cleanedData.slug, + storageClass: cleanedData.storageClass, + storageName: cleanedData.storageName, + }, + select: { + capacity: true, + capacityBytes: true, + claimName: true, + declaredStorageClass: true, + declaredStorageSizeBytes: true, + declaredStorageTotalBytes: true, + installationId: true, + isBound: true, + kind: true, + namespaceId: true, + phase: true, + requested: true, + requestedBytes: true, + resourceId: true, + resourceStatus: true, + slug: true, + storageClass: true, + storageName: 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); + } +} diff --git a/sdk/constructive-cli/src/compute/cli/commands/platform-resource.ts b/sdk/constructive-cli/src/compute/cli/commands/platform-resource.ts index 1b845a0ef3..ae41c20f2d 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/platform-resource.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/platform-resource.ts @@ -21,8 +21,10 @@ const fieldSchema: FieldSchema = { cpuRequestMillicores: 'int', createdAt: 'string', createdBy: 'uuid', + createdByPrincipal: 'uuid', errorCount: 'int', id: 'uuid', + imageRef: 'string', installationId: 'uuid', integrations: 'string', kind: 'string', @@ -44,8 +46,10 @@ const fieldSchema: FieldSchema = { statusObserved: 'json', storageClass: 'string', storageSizeBytes: 'int', + storageTotalBytes: 'int', updatedAt: 'string', updatedBy: 'uuid', + updatedByPrincipal: 'uuid', }; const usage = '\nplatform-resource \n\nCommands:\n list List platformResource records\n find-first Find first matching platformResource record\n get Get a platformResource by ID\n create Create a new platformResource\n update Update an existing platformResource\n delete Delete a platformResource\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'; @@ -101,8 +105,10 @@ async function handleList(argv: Partial>, _prompter: Inq annotations: true, createdAt: true, createdBy: true, + createdByPrincipal: true, errorCount: true, id: true, + imageRef: true, installationId: true, integrations: true, kind: true, @@ -121,6 +127,7 @@ async function handleList(argv: Partial>, _prompter: Inq statusObserved: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs & { @@ -144,8 +151,10 @@ async function handleFindFirst(argv: Partial>, _prompter annotations: true, createdAt: true, createdBy: true, + createdByPrincipal: true, errorCount: true, id: true, + imageRef: true, installationId: true, integrations: true, kind: true, @@ -164,6 +173,7 @@ async function handleFindFirst(argv: Partial>, _prompter statusObserved: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs & { @@ -199,8 +209,10 @@ async function handleGet(argv: Partial>, prompter: Inqui annotations: true, createdAt: true, createdBy: true, + createdByPrincipal: true, errorCount: true, id: true, + imageRef: true, installationId: true, integrations: true, kind: true, @@ -219,6 +231,7 @@ async function handleGet(argv: Partial>, prompter: Inqui statusObserved: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }, }) .execute(); @@ -248,6 +261,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'errorCount', @@ -255,6 +275,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'imageRef', + message: 'imageRef', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'installationId', @@ -370,6 +397,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined( @@ -382,7 +416,9 @@ async function handleCreate(argv: Partial>, prompter: In data: { annotations: cleanedData.annotations, createdBy: cleanedData.createdBy, + createdByPrincipal: cleanedData.createdByPrincipal, errorCount: cleanedData.errorCount, + imageRef: cleanedData.imageRef, installationId: cleanedData.installationId, integrations: cleanedData.integrations, kind: cleanedData.kind, @@ -400,13 +436,16 @@ async function handleCreate(argv: Partial>, prompter: In status: cleanedData.status, statusObserved: cleanedData.statusObserved, updatedBy: cleanedData.updatedBy, + updatedByPrincipal: cleanedData.updatedByPrincipal, }, select: { annotations: true, createdAt: true, createdBy: true, + createdByPrincipal: true, errorCount: true, id: true, + imageRef: true, installationId: true, integrations: true, kind: true, @@ -425,6 +464,7 @@ async function handleCreate(argv: Partial>, prompter: In statusObserved: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }, }) .execute(); @@ -460,6 +500,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'errorCount', @@ -467,6 +514,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'imageRef', + message: 'imageRef', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'installationId', @@ -582,6 +636,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as PlatformResourcePatch; @@ -594,7 +655,9 @@ async function handleUpdate(argv: Partial>, prompter: In data: { annotations: cleanedData.annotations, createdBy: cleanedData.createdBy, + createdByPrincipal: cleanedData.createdByPrincipal, errorCount: cleanedData.errorCount, + imageRef: cleanedData.imageRef, installationId: cleanedData.installationId, integrations: cleanedData.integrations, kind: cleanedData.kind, @@ -612,13 +675,16 @@ async function handleUpdate(argv: Partial>, prompter: In status: cleanedData.status, statusObserved: cleanedData.statusObserved, updatedBy: cleanedData.updatedBy, + updatedByPrincipal: cleanedData.updatedByPrincipal, }, select: { annotations: true, createdAt: true, createdBy: true, + createdByPrincipal: true, errorCount: true, id: true, + imageRef: true, installationId: true, integrations: true, kind: true, @@ -637,6 +703,7 @@ async function handleUpdate(argv: Partial>, prompter: In statusObserved: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }, }) .execute(); diff --git a/sdk/constructive-cli/src/compute/cli/commands/platform-resources-health.ts b/sdk/constructive-cli/src/compute/cli/commands/platform-resources-health.ts index cfbf06a8f3..cea3a6b3c7 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/platform-resources-health.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/platform-resources-health.ts @@ -21,8 +21,10 @@ const fieldSchema: FieldSchema = { cpuRequestMillicores: 'int', createdAt: 'string', createdBy: 'uuid', + createdByPrincipal: 'uuid', errorCount: 'int', id: 'uuid', + imageRef: 'string', installationId: 'uuid', integrations: 'string', kind: 'string', @@ -45,8 +47,10 @@ const fieldSchema: FieldSchema = { statusObserved: 'json', storageClass: 'string', storageSizeBytes: 'int', + storageTotalBytes: 'int', updatedAt: 'string', updatedBy: 'uuid', + updatedByPrincipal: 'uuid', }; const usage = '\nplatform-resources-health \n\nCommands:\n list List platformResourcesHealth records\n find-first Find first matching platformResourcesHealth record\n create Create a new platformResourcesHealth\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'; @@ -98,8 +102,10 @@ async function handleList(argv: Partial>, _prompter: Inq cpuRequestMillicores: true, createdAt: true, createdBy: true, + createdByPrincipal: true, errorCount: true, id: true, + imageRef: true, installationId: true, integrations: true, kind: true, @@ -122,8 +128,10 @@ async function handleList(argv: Partial>, _prompter: Inq statusObserved: true, storageClass: true, storageSizeBytes: true, + storageTotalBytes: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs< @@ -153,8 +161,10 @@ async function handleFindFirst(argv: Partial>, _prompter cpuRequestMillicores: true, createdAt: true, createdBy: true, + createdByPrincipal: true, errorCount: true, id: true, + imageRef: true, installationId: true, integrations: true, kind: true, @@ -177,8 +187,10 @@ async function handleFindFirst(argv: Partial>, _prompter statusObserved: true, storageClass: true, storageSizeBytes: true, + storageTotalBytes: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs< @@ -227,12 +239,24 @@ async function handleCreate(argv: Partial>, prompter: In message: 'createdBy', required: true, }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: true, + }, { type: 'text', name: 'errorCount', message: 'errorCount', required: true, }, + { + type: 'text', + name: 'imageRef', + message: 'imageRef', + required: true, + }, { type: 'text', name: 'installationId', @@ -365,12 +389,24 @@ async function handleCreate(argv: Partial>, prompter: In message: 'storageSizeBytes', required: true, }, + { + type: 'text', + name: 'storageTotalBytes', + message: 'storageTotalBytes', + required: true, + }, { type: 'text', name: 'updatedBy', message: 'updatedBy', required: true, }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined( @@ -385,7 +421,9 @@ async function handleCreate(argv: Partial>, prompter: In cpuLimitMillicores: cleanedData.cpuLimitMillicores, cpuRequestMillicores: cleanedData.cpuRequestMillicores, createdBy: cleanedData.createdBy, + createdByPrincipal: cleanedData.createdByPrincipal, errorCount: cleanedData.errorCount, + imageRef: cleanedData.imageRef, installationId: cleanedData.installationId, integrations: cleanedData.integrations, kind: cleanedData.kind, @@ -408,7 +446,9 @@ async function handleCreate(argv: Partial>, prompter: In statusObserved: cleanedData.statusObserved, storageClass: cleanedData.storageClass, storageSizeBytes: cleanedData.storageSizeBytes, + storageTotalBytes: cleanedData.storageTotalBytes, updatedBy: cleanedData.updatedBy, + updatedByPrincipal: cleanedData.updatedByPrincipal, }, select: { annotations: true, @@ -416,8 +456,10 @@ async function handleCreate(argv: Partial>, prompter: In cpuRequestMillicores: true, createdAt: true, createdBy: true, + createdByPrincipal: true, errorCount: true, id: true, + imageRef: true, installationId: true, integrations: true, kind: true, @@ -440,8 +482,10 @@ async function handleCreate(argv: Partial>, prompter: In statusObserved: true, storageClass: true, storageSizeBytes: true, + storageTotalBytes: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }, }) .execute(); diff --git a/sdk/constructive-cli/src/compute/cli/commands/platform-webhook-endpoint.ts b/sdk/constructive-cli/src/compute/cli/commands/platform-webhook-endpoint.ts index 6775ec1d2e..0506d80a98 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/platform-webhook-endpoint.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/platform-webhook-endpoint.ts @@ -19,6 +19,7 @@ const fieldSchema: FieldSchema = { active: 'boolean', createdAt: 'string', createdBy: 'uuid', + createdByPrincipal: 'uuid', functionDefinitionId: 'uuid', host: 'string', id: 'uuid', @@ -29,6 +30,7 @@ const fieldSchema: FieldSchema = { signingSecretName: 'string', updatedAt: 'string', updatedBy: 'uuid', + updatedByPrincipal: 'uuid', }; const usage = '\nplatform-webhook-endpoint \n\nCommands:\n list List platformWebhookEndpoint records\n find-first Find first matching platformWebhookEndpoint record\n get Get a platformWebhookEndpoint by ID\n create Create a new platformWebhookEndpoint\n update Update an existing platformWebhookEndpoint\n delete Delete a platformWebhookEndpoint\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'; @@ -84,6 +86,7 @@ async function handleList(argv: Partial>, _prompter: Inq active: true, createdAt: true, createdBy: true, + createdByPrincipal: true, functionDefinitionId: true, host: true, id: true, @@ -94,6 +97,7 @@ async function handleList(argv: Partial>, _prompter: Inq signingSecretName: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs< @@ -121,6 +125,7 @@ async function handleFindFirst(argv: Partial>, _prompter active: true, createdAt: true, createdBy: true, + createdByPrincipal: true, functionDefinitionId: true, host: true, id: true, @@ -131,6 +136,7 @@ async function handleFindFirst(argv: Partial>, _prompter signingSecretName: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs< @@ -170,6 +176,7 @@ async function handleGet(argv: Partial>, prompter: Inqui active: true, createdAt: true, createdBy: true, + createdByPrincipal: true, functionDefinitionId: true, host: true, id: true, @@ -180,6 +187,7 @@ async function handleGet(argv: Partial>, prompter: Inqui signingSecretName: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }, }) .execute(); @@ -209,6 +217,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'functionDefinitionId', @@ -260,6 +275,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined( @@ -272,6 +294,7 @@ async function handleCreate(argv: Partial>, prompter: In data: { active: cleanedData.active, createdBy: cleanedData.createdBy, + createdByPrincipal: cleanedData.createdByPrincipal, functionDefinitionId: cleanedData.functionDefinitionId, host: cleanedData.host, namespaceId: cleanedData.namespaceId, @@ -280,11 +303,13 @@ async function handleCreate(argv: Partial>, prompter: In replayWindowSeconds: cleanedData.replayWindowSeconds, signingSecretName: cleanedData.signingSecretName, updatedBy: cleanedData.updatedBy, + updatedByPrincipal: cleanedData.updatedByPrincipal, }, select: { active: true, createdAt: true, createdBy: true, + createdByPrincipal: true, functionDefinitionId: true, host: true, id: true, @@ -295,6 +320,7 @@ async function handleCreate(argv: Partial>, prompter: In signingSecretName: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }, }) .execute(); @@ -330,6 +356,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'functionDefinitionId', @@ -381,6 +414,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as PlatformWebhookEndpointPatch; @@ -393,6 +433,7 @@ async function handleUpdate(argv: Partial>, prompter: In data: { active: cleanedData.active, createdBy: cleanedData.createdBy, + createdByPrincipal: cleanedData.createdByPrincipal, functionDefinitionId: cleanedData.functionDefinitionId, host: cleanedData.host, namespaceId: cleanedData.namespaceId, @@ -401,11 +442,13 @@ async function handleUpdate(argv: Partial>, prompter: In replayWindowSeconds: cleanedData.replayWindowSeconds, signingSecretName: cleanedData.signingSecretName, updatedBy: cleanedData.updatedBy, + updatedByPrincipal: cleanedData.updatedByPrincipal, }, select: { active: true, createdAt: true, createdBy: true, + createdByPrincipal: true, functionDefinitionId: true, host: true, id: true, @@ -416,6 +459,7 @@ async function handleUpdate(argv: Partial>, prompter: In signingSecretName: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }, }) .execute(); diff --git a/sdk/constructive-cli/src/compute/cli/commands/proposal-comment.ts b/sdk/constructive-cli/src/compute/cli/commands/proposal-comment.ts new file mode 100644 index 0000000000..9254888dd6 --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/proposal-comment.ts @@ -0,0 +1,653 @@ +/** + * CLI commands for ProposalComment + * @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 { + CreateProposalCommentInput, + ProposalCommentPatch, + ProposalCommentSelect, + ProposalCommentFilter, + ProposalCommentOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + actorId: 'uuid', + attachments: 'string', + body: 'string', + bodyTrgmSimilarity: 'float', + createdAt: 'string', + createdBy: 'uuid', + createdByPrincipal: 'uuid', + databaseId: 'uuid', + embedding: 'string', + embeddingUpdatedAt: 'string', + embeddingVectorDistance: 'float', + id: 'uuid', + line: 'int', + outdatedAt: 'string', + path: 'string', + pathTrgmSimilarity: 'float', + proposalId: 'uuid', + resolvedAt: 'string', + search: 'string', + searchScore: 'float', + searchTsvRank: 'float', + updatedAt: 'string', + updatedBy: 'uuid', + updatedByPrincipal: 'uuid', +}; +import { resolveEmbedder, autoEmbedWhere, autoEmbedInput } from '../embedder'; +const usage = + '\nproposal-comment \n\nCommands:\n list List proposalComment records\n find-first Find first matching proposalComment record\n search Search proposalComment records\n get Get a proposalComment by ID\n create Create a new proposalComment\n update Update an existing proposalComment\n\nCreate/Update Options:\n --auto-embed Convert text values in vector fields to embeddings before saving\n delete Delete a proposalComment\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\nSearch Options:\n Search query string (required)\n --limit Max number of records to return\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --orderBy Comma-separated list of ordering values\n --auto-embed Convert text queries to vectors via configured embedder\n\nEmbedding Options (for --auto-embed):\n Set EMBEDDER_PROVIDER=ollama to enable text-to-vector embedding.\n Optional: EMBEDDER_MODEL (default: nomic-embed-text)\n Optional: EMBEDDER_BASE_URL (default: http://localhost:11434)\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', 'search', '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 'search': + return handleSearch(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 = { + actorId: true, + attachments: true, + body: true, + createdAt: true, + createdBy: true, + createdByPrincipal: true, + databaseId: true, + embedding: true, + id: true, + line: true, + outdatedAt: true, + path: true, + proposalId: true, + resolvedAt: true, + updatedAt: true, + updatedBy: true, + updatedByPrincipal: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: ProposalCommentSelect; + } + >(argv, defaultSelect); + if (argv['auto-embed']) { + const embedder = resolveEmbedder(); + if (!embedder) { + console.error( + '--auto-embed requires an embedder. Set EMBEDDER_PROVIDER=ollama (and optionally EMBEDDER_MODEL, EMBEDDER_BASE_URL).' + ); + process.exit(1); + } + findManyArgs.where = await autoEmbedWhere(findManyArgs.where ?? {}, ['embedding'], embedder); + } + const client = getClient(); + const result = await client.proposalComment.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 = { + actorId: true, + attachments: true, + body: true, + createdAt: true, + createdBy: true, + createdByPrincipal: true, + databaseId: true, + embedding: true, + id: true, + line: true, + outdatedAt: true, + path: true, + proposalId: true, + resolvedAt: true, + updatedAt: true, + updatedBy: true, + updatedByPrincipal: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: ProposalCommentSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.proposalComment.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 handleSearch(argv: Partial>, _prompter: Inquirerer) { + try { + const query = Array.isArray(argv._) && argv._.length > 0 ? String(argv._[0]) : undefined; + if (!query) { + console.error('Error: search requires a argument'); + process.exit(1); + } + const searchWhere = { + embedding: { + vector: query, + }, + trgmBody: { + value: query, + threshold: 0.3, + }, + trgmPath: { + value: query, + threshold: 0.3, + }, + search: { + query, + }, + }; + if (argv['auto-embed']) { + const embedder = resolveEmbedder(); + if (!embedder) { + console.error( + '--auto-embed requires an embedder. Set EMBEDDER_PROVIDER=ollama (and optionally EMBEDDER_MODEL, EMBEDDER_BASE_URL).' + ); + process.exit(1); + } + await autoEmbedWhere(searchWhere ?? {}, ['embedding'], embedder); + } + const defaultSelect = { + actorId: true, + attachments: true, + body: true, + createdAt: true, + createdBy: true, + createdByPrincipal: true, + databaseId: true, + embedding: true, + id: true, + line: true, + outdatedAt: true, + path: true, + proposalId: true, + resolvedAt: true, + updatedAt: true, + updatedBy: true, + updatedByPrincipal: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: ProposalCommentSelect; + } + >(argv, defaultSelect, searchWhere); + const client = getClient(); + const result = await client.proposalComment.findMany(findManyArgs).execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to search records.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleGet(argv: Partial>, prompter: Inquirerer) { + try { + const answers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + ]); + const client = getClient(); + const result = await client.proposalComment + .findOne({ + id: answers.id as string, + select: { + actorId: true, + attachments: true, + body: true, + createdAt: true, + createdBy: true, + createdByPrincipal: true, + databaseId: true, + embedding: true, + id: true, + line: true, + outdatedAt: true, + path: true, + proposalId: true, + resolvedAt: true, + updatedAt: true, + updatedBy: true, + updatedByPrincipal: 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: 'actorId', + message: 'actorId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'attachments', + message: 'attachments', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'body', + message: 'body', + required: true, + }, + { + type: 'text', + name: 'createdBy', + message: 'createdBy', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: true, + }, + { + type: 'text', + name: 'embedding', + message: 'embedding', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'line', + message: 'line', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'outdatedAt', + message: 'outdatedAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'path', + message: 'path', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'proposalId', + message: 'proposalId', + required: true, + }, + { + type: 'text', + name: 'resolvedAt', + message: 'resolvedAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'updatedBy', + message: 'updatedBy', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateProposalCommentInput['proposalComment']; + if (argv['auto-embed']) { + const embedder = resolveEmbedder(); + if (!embedder) { + console.error( + '--auto-embed requires an embedder. Set EMBEDDER_PROVIDER=ollama (and optionally EMBEDDER_MODEL, EMBEDDER_BASE_URL).' + ); + process.exit(1); + } + await autoEmbedInput(cleanedData, ['embedding'], embedder); + } + const client = getClient(); + const result = await client.proposalComment + .create({ + data: { + actorId: cleanedData.actorId, + attachments: cleanedData.attachments, + body: cleanedData.body, + createdBy: cleanedData.createdBy, + createdByPrincipal: cleanedData.createdByPrincipal, + databaseId: cleanedData.databaseId, + embedding: cleanedData.embedding, + line: cleanedData.line, + outdatedAt: cleanedData.outdatedAt, + path: cleanedData.path, + proposalId: cleanedData.proposalId, + resolvedAt: cleanedData.resolvedAt, + updatedBy: cleanedData.updatedBy, + updatedByPrincipal: cleanedData.updatedByPrincipal, + }, + select: { + actorId: true, + attachments: true, + body: true, + createdAt: true, + createdBy: true, + createdByPrincipal: true, + databaseId: true, + embedding: true, + id: true, + line: true, + outdatedAt: true, + path: true, + proposalId: true, + resolvedAt: true, + updatedAt: true, + updatedBy: true, + updatedByPrincipal: 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: 'actorId', + message: 'actorId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'attachments', + message: 'attachments', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'body', + message: 'body', + required: false, + }, + { + type: 'text', + name: 'createdBy', + message: 'createdBy', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: false, + }, + { + type: 'text', + name: 'embedding', + message: 'embedding', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'line', + message: 'line', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'outdatedAt', + message: 'outdatedAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'path', + message: 'path', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'proposalId', + message: 'proposalId', + required: false, + }, + { + type: 'text', + name: 'resolvedAt', + message: 'resolvedAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'updatedBy', + message: 'updatedBy', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as ProposalCommentPatch; + if (argv['auto-embed']) { + const embedder = resolveEmbedder(); + if (!embedder) { + console.error( + '--auto-embed requires an embedder. Set EMBEDDER_PROVIDER=ollama (and optionally EMBEDDER_MODEL, EMBEDDER_BASE_URL).' + ); + process.exit(1); + } + await autoEmbedInput(cleanedData, ['embedding'], embedder); + } + const client = getClient(); + const result = await client.proposalComment + .update({ + where: { + id: answers.id as string, + }, + data: { + actorId: cleanedData.actorId, + attachments: cleanedData.attachments, + body: cleanedData.body, + createdBy: cleanedData.createdBy, + createdByPrincipal: cleanedData.createdByPrincipal, + databaseId: cleanedData.databaseId, + embedding: cleanedData.embedding, + line: cleanedData.line, + outdatedAt: cleanedData.outdatedAt, + path: cleanedData.path, + proposalId: cleanedData.proposalId, + resolvedAt: cleanedData.resolvedAt, + updatedBy: cleanedData.updatedBy, + updatedByPrincipal: cleanedData.updatedByPrincipal, + }, + select: { + actorId: true, + attachments: true, + body: true, + createdAt: true, + createdBy: true, + createdByPrincipal: true, + databaseId: true, + embedding: true, + id: true, + line: true, + outdatedAt: true, + path: true, + proposalId: true, + resolvedAt: true, + updatedAt: true, + updatedBy: true, + updatedByPrincipal: 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.proposalComment + .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/compute/cli/commands/proposal-file-view.ts b/sdk/constructive-cli/src/compute/cli/commands/proposal-file-view.ts new file mode 100644 index 0000000000..16fdae3781 --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/proposal-file-view.ts @@ -0,0 +1,409 @@ +/** + * CLI commands for ProposalFileView + * @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 { + CreateProposalFileViewInput, + ProposalFileViewPatch, + ProposalFileViewSelect, + ProposalFileViewFilter, + ProposalFileViewOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + blobSha: 'string', + createdAt: 'string', + createdByPrincipal: 'uuid', + databaseId: 'uuid', + id: 'uuid', + path: 'string', + proposalId: 'uuid', + reviewerId: 'uuid', + updatedAt: 'string', + updatedByPrincipal: 'uuid', + viewedAt: 'string', +}; +const usage = + '\nproposal-file-view \n\nCommands:\n list List proposalFileView records\n find-first Find first matching proposalFileView record\n get Get a proposalFileView by ID\n create Create a new proposalFileView\n update Update an existing proposalFileView\n delete Delete a proposalFileView\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 = { + blobSha: true, + createdAt: true, + createdByPrincipal: true, + databaseId: true, + id: true, + path: true, + proposalId: true, + reviewerId: true, + updatedAt: true, + updatedByPrincipal: true, + viewedAt: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: ProposalFileViewSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.proposalFileView.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 = { + blobSha: true, + createdAt: true, + createdByPrincipal: true, + databaseId: true, + id: true, + path: true, + proposalId: true, + reviewerId: true, + updatedAt: true, + updatedByPrincipal: true, + viewedAt: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: ProposalFileViewSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.proposalFileView.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.proposalFileView + .findOne({ + id: answers.id as string, + select: { + blobSha: true, + createdAt: true, + createdByPrincipal: true, + databaseId: true, + id: true, + path: true, + proposalId: true, + reviewerId: true, + updatedAt: true, + updatedByPrincipal: true, + viewedAt: 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: 'blobSha', + message: 'blobSha', + required: true, + }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: true, + }, + { + type: 'text', + name: 'path', + message: 'path', + required: true, + }, + { + type: 'text', + name: 'proposalId', + message: 'proposalId', + required: true, + }, + { + type: 'text', + name: 'reviewerId', + message: 'reviewerId', + required: true, + }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'viewedAt', + message: 'viewedAt', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateProposalFileViewInput['proposalFileView']; + const client = getClient(); + const result = await client.proposalFileView + .create({ + data: { + blobSha: cleanedData.blobSha, + createdByPrincipal: cleanedData.createdByPrincipal, + databaseId: cleanedData.databaseId, + path: cleanedData.path, + proposalId: cleanedData.proposalId, + reviewerId: cleanedData.reviewerId, + updatedByPrincipal: cleanedData.updatedByPrincipal, + viewedAt: cleanedData.viewedAt, + }, + select: { + blobSha: true, + createdAt: true, + createdByPrincipal: true, + databaseId: true, + id: true, + path: true, + proposalId: true, + reviewerId: true, + updatedAt: true, + updatedByPrincipal: true, + viewedAt: 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: 'blobSha', + message: 'blobSha', + required: false, + }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: false, + }, + { + type: 'text', + name: 'path', + message: 'path', + required: false, + }, + { + type: 'text', + name: 'proposalId', + message: 'proposalId', + required: false, + }, + { + type: 'text', + name: 'reviewerId', + message: 'reviewerId', + required: false, + }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'viewedAt', + message: 'viewedAt', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as ProposalFileViewPatch; + const client = getClient(); + const result = await client.proposalFileView + .update({ + where: { + id: answers.id as string, + }, + data: { + blobSha: cleanedData.blobSha, + createdByPrincipal: cleanedData.createdByPrincipal, + databaseId: cleanedData.databaseId, + path: cleanedData.path, + proposalId: cleanedData.proposalId, + reviewerId: cleanedData.reviewerId, + updatedByPrincipal: cleanedData.updatedByPrincipal, + viewedAt: cleanedData.viewedAt, + }, + select: { + blobSha: true, + createdAt: true, + createdByPrincipal: true, + databaseId: true, + id: true, + path: true, + proposalId: true, + reviewerId: true, + updatedAt: true, + updatedByPrincipal: true, + viewedAt: 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.proposalFileView + .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/compute/cli/commands/proposal-reaction.ts b/sdk/constructive-cli/src/compute/cli/commands/proposal-reaction.ts new file mode 100644 index 0000000000..94dd7e7367 --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/proposal-reaction.ts @@ -0,0 +1,389 @@ +/** + * CLI commands for ProposalReaction + * @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 { + CreateProposalReactionInput, + ProposalReactionPatch, + ProposalReactionSelect, + ProposalReactionFilter, + ProposalReactionOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + actorId: 'uuid', + commentId: 'uuid', + createdAt: 'string', + createdByPrincipal: 'uuid', + databaseId: 'uuid', + emoji: 'string', + id: 'uuid', + proposalId: 'uuid', + updatedAt: 'string', + updatedByPrincipal: 'uuid', +}; +const usage = + '\nproposal-reaction \n\nCommands:\n list List proposalReaction records\n find-first Find first matching proposalReaction record\n get Get a proposalReaction by ID\n create Create a new proposalReaction\n update Update an existing proposalReaction\n delete Delete a proposalReaction\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 = { + actorId: true, + commentId: true, + createdAt: true, + createdByPrincipal: true, + databaseId: true, + emoji: true, + id: true, + proposalId: true, + updatedAt: true, + updatedByPrincipal: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: ProposalReactionSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.proposalReaction.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 = { + actorId: true, + commentId: true, + createdAt: true, + createdByPrincipal: true, + databaseId: true, + emoji: true, + id: true, + proposalId: true, + updatedAt: true, + updatedByPrincipal: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: ProposalReactionSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.proposalReaction.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.proposalReaction + .findOne({ + id: answers.id as string, + select: { + actorId: true, + commentId: true, + createdAt: true, + createdByPrincipal: true, + databaseId: true, + emoji: true, + id: true, + proposalId: true, + updatedAt: true, + updatedByPrincipal: 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: 'actorId', + message: 'actorId', + required: true, + }, + { + type: 'text', + name: 'commentId', + message: 'commentId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: true, + }, + { + type: 'text', + name: 'emoji', + message: 'emoji', + required: true, + }, + { + type: 'text', + name: 'proposalId', + message: 'proposalId', + required: true, + }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateProposalReactionInput['proposalReaction']; + const client = getClient(); + const result = await client.proposalReaction + .create({ + data: { + actorId: cleanedData.actorId, + commentId: cleanedData.commentId, + createdByPrincipal: cleanedData.createdByPrincipal, + databaseId: cleanedData.databaseId, + emoji: cleanedData.emoji, + proposalId: cleanedData.proposalId, + updatedByPrincipal: cleanedData.updatedByPrincipal, + }, + select: { + actorId: true, + commentId: true, + createdAt: true, + createdByPrincipal: true, + databaseId: true, + emoji: true, + id: true, + proposalId: true, + updatedAt: true, + updatedByPrincipal: 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: 'actorId', + message: 'actorId', + required: false, + }, + { + type: 'text', + name: 'commentId', + message: 'commentId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: false, + }, + { + type: 'text', + name: 'emoji', + message: 'emoji', + required: false, + }, + { + type: 'text', + name: 'proposalId', + message: 'proposalId', + required: false, + }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as ProposalReactionPatch; + const client = getClient(); + const result = await client.proposalReaction + .update({ + where: { + id: answers.id as string, + }, + data: { + actorId: cleanedData.actorId, + commentId: cleanedData.commentId, + createdByPrincipal: cleanedData.createdByPrincipal, + databaseId: cleanedData.databaseId, + emoji: cleanedData.emoji, + proposalId: cleanedData.proposalId, + updatedByPrincipal: cleanedData.updatedByPrincipal, + }, + select: { + actorId: true, + commentId: true, + createdAt: true, + createdByPrincipal: true, + databaseId: true, + emoji: true, + id: true, + proposalId: true, + updatedAt: true, + updatedByPrincipal: 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.proposalReaction + .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/compute/cli/commands/proposal-review.ts b/sdk/constructive-cli/src/compute/cli/commands/proposal-review.ts new file mode 100644 index 0000000000..21652edea1 --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/proposal-review.ts @@ -0,0 +1,493 @@ +/** + * CLI commands for ProposalReview + * @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 { + CreateProposalReviewInput, + ProposalReviewPatch, + ProposalReviewSelect, + ProposalReviewFilter, + ProposalReviewOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + body: 'string', + bodyTrgmSimilarity: 'float', + commitSha: 'string', + commitShaTrgmSimilarity: 'float', + createdAt: 'string', + createdByPrincipal: 'uuid', + databaseId: 'uuid', + id: 'uuid', + proposalId: 'uuid', + reviewerId: 'uuid', + search: 'string', + searchScore: 'float', + searchTsvRank: 'float', + submittedAt: 'string', + updatedAt: 'string', + updatedByPrincipal: 'uuid', + verdict: 'string', + verdictTrgmSimilarity: 'float', +}; +const usage = + '\nproposal-review \n\nCommands:\n list List proposalReview records\n find-first Find first matching proposalReview record\n search Search proposalReview records\n get Get a proposalReview by ID\n create Create a new proposalReview\n update Update an existing proposalReview\n delete Delete a proposalReview\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\nSearch Options:\n Search query string (required)\n --limit Max number of records to return\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --orderBy Comma-separated list of ordering values\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', 'search', '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 'search': + return handleSearch(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 = { + body: true, + commitSha: true, + createdAt: true, + createdByPrincipal: true, + databaseId: true, + id: true, + proposalId: true, + reviewerId: true, + submittedAt: true, + updatedAt: true, + updatedByPrincipal: true, + verdict: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: ProposalReviewSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.proposalReview.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 = { + body: true, + commitSha: true, + createdAt: true, + createdByPrincipal: true, + databaseId: true, + id: true, + proposalId: true, + reviewerId: true, + submittedAt: true, + updatedAt: true, + updatedByPrincipal: true, + verdict: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: ProposalReviewSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.proposalReview.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 handleSearch(argv: Partial>, _prompter: Inquirerer) { + try { + const query = Array.isArray(argv._) && argv._.length > 0 ? String(argv._[0]) : undefined; + if (!query) { + console.error('Error: search requires a argument'); + process.exit(1); + } + const searchWhere = { + trgmBody: { + value: query, + threshold: 0.3, + }, + trgmCommitSha: { + value: query, + threshold: 0.3, + }, + search: { + query, + }, + trgmVerdict: { + value: query, + threshold: 0.3, + }, + }; + const defaultSelect = { + body: true, + commitSha: true, + createdAt: true, + createdByPrincipal: true, + databaseId: true, + id: true, + proposalId: true, + reviewerId: true, + submittedAt: true, + updatedAt: true, + updatedByPrincipal: true, + verdict: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: ProposalReviewSelect; + } + >(argv, defaultSelect, searchWhere); + const client = getClient(); + const result = await client.proposalReview.findMany(findManyArgs).execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to search records.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleGet(argv: Partial>, prompter: Inquirerer) { + try { + const answers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + ]); + const client = getClient(); + const result = await client.proposalReview + .findOne({ + id: answers.id as string, + select: { + body: true, + commitSha: true, + createdAt: true, + createdByPrincipal: true, + databaseId: true, + id: true, + proposalId: true, + reviewerId: true, + submittedAt: true, + updatedAt: true, + updatedByPrincipal: true, + verdict: 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: 'body', + message: 'body', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'commitSha', + message: 'commitSha', + required: true, + }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: true, + }, + { + type: 'text', + name: 'proposalId', + message: 'proposalId', + required: true, + }, + { + type: 'text', + name: 'reviewerId', + message: 'reviewerId', + required: true, + }, + { + type: 'text', + name: 'submittedAt', + message: 'submittedAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'verdict', + message: 'verdict', + required: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateProposalReviewInput['proposalReview']; + const client = getClient(); + const result = await client.proposalReview + .create({ + data: { + body: cleanedData.body, + commitSha: cleanedData.commitSha, + createdByPrincipal: cleanedData.createdByPrincipal, + databaseId: cleanedData.databaseId, + proposalId: cleanedData.proposalId, + reviewerId: cleanedData.reviewerId, + submittedAt: cleanedData.submittedAt, + updatedByPrincipal: cleanedData.updatedByPrincipal, + verdict: cleanedData.verdict, + }, + select: { + body: true, + commitSha: true, + createdAt: true, + createdByPrincipal: true, + databaseId: true, + id: true, + proposalId: true, + reviewerId: true, + submittedAt: true, + updatedAt: true, + updatedByPrincipal: true, + verdict: 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: 'body', + message: 'body', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'commitSha', + message: 'commitSha', + required: false, + }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: false, + }, + { + type: 'text', + name: 'proposalId', + message: 'proposalId', + required: false, + }, + { + type: 'text', + name: 'reviewerId', + message: 'reviewerId', + required: false, + }, + { + type: 'text', + name: 'submittedAt', + message: 'submittedAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'verdict', + message: 'verdict', + required: false, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as ProposalReviewPatch; + const client = getClient(); + const result = await client.proposalReview + .update({ + where: { + id: answers.id as string, + }, + data: { + body: cleanedData.body, + commitSha: cleanedData.commitSha, + createdByPrincipal: cleanedData.createdByPrincipal, + databaseId: cleanedData.databaseId, + proposalId: cleanedData.proposalId, + reviewerId: cleanedData.reviewerId, + submittedAt: cleanedData.submittedAt, + updatedByPrincipal: cleanedData.updatedByPrincipal, + verdict: cleanedData.verdict, + }, + select: { + body: true, + commitSha: true, + createdAt: true, + createdByPrincipal: true, + databaseId: true, + id: true, + proposalId: true, + reviewerId: true, + submittedAt: true, + updatedAt: true, + updatedByPrincipal: true, + verdict: 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.proposalReview + .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/compute/cli/commands/proposal.ts b/sdk/constructive-cli/src/compute/cli/commands/proposal.ts new file mode 100644 index 0000000000..941e26fb48 --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/proposal.ts @@ -0,0 +1,966 @@ +/** + * CLI commands for Proposal + * @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 { + CreateProposalInput, + ProposalPatch, + ProposalSelect, + ProposalFilter, + ProposalOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + actorId: 'uuid', + body: 'string', + bodyTrgmSimilarity: 'float', + closedReason: 'string', + closedReasonTrgmSimilarity: 'float', + createdAt: 'string', + createdBy: 'uuid', + createdByPrincipal: 'uuid', + databaseId: 'uuid', + decidedAt: 'string', + dueAt: 'string', + embedding: 'string', + embeddingUpdatedAt: 'string', + embeddingVectorDistance: 'float', + id: 'uuid', + kind: 'string', + kindTrgmSimilarity: 'float', + labels: 'string', + mergeCommit: 'string', + mergeCommitTrgmSimilarity: 'float', + mergeMethod: 'string', + mergeMethodTrgmSimilarity: 'float', + mergeRequestedAt: 'string', + mergedAt: 'string', + metadata: 'json', + parentId: 'uuid', + priority: 'string', + repositoryId: 'uuid', + resolution: 'string', + resolutionTrgmSimilarity: 'float', + search: 'string', + searchScore: 'float', + searchTsvRank: 'float', + sourceRef: 'string', + sourceRefTrgmSimilarity: 'float', + status: 'string', + statusTrgmSimilarity: 'float', + targetRef: 'string', + targetRefTrgmSimilarity: 'float', + title: 'string', + titleTrgmSimilarity: 'float', + updatedAt: 'string', + updatedBy: 'uuid', + updatedByPrincipal: 'uuid', +}; +import { resolveEmbedder, autoEmbedWhere, autoEmbedInput } from '../embedder'; +const usage = + '\nproposal \n\nCommands:\n list List proposal records\n find-first Find first matching proposal record\n search Search proposal records\n get Get a proposal by ID\n create Create a new proposal\n update Update an existing proposal\n\nCreate/Update Options:\n --auto-embed Convert text values in vector fields to embeddings before saving\n delete Delete a proposal\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\nSearch Options:\n Search query string (required)\n --limit Max number of records to return\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --orderBy Comma-separated list of ordering values\n --auto-embed Convert text queries to vectors via configured embedder\n\nEmbedding Options (for --auto-embed):\n Set EMBEDDER_PROVIDER=ollama to enable text-to-vector embedding.\n Optional: EMBEDDER_MODEL (default: nomic-embed-text)\n Optional: EMBEDDER_BASE_URL (default: http://localhost:11434)\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', 'search', '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 'search': + return handleSearch(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 = { + actorId: true, + body: true, + closedReason: true, + createdAt: true, + createdBy: true, + createdByPrincipal: true, + databaseId: true, + decidedAt: true, + dueAt: true, + embedding: true, + id: true, + kind: true, + labels: true, + mergeCommit: true, + mergeMethod: true, + mergeRequestedAt: true, + mergedAt: true, + metadata: true, + parentId: true, + priority: true, + repositoryId: true, + resolution: true, + sourceRef: true, + status: true, + targetRef: true, + title: true, + updatedAt: true, + updatedBy: true, + updatedByPrincipal: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: ProposalSelect; + } + >(argv, defaultSelect); + if (argv['auto-embed']) { + const embedder = resolveEmbedder(); + if (!embedder) { + console.error( + '--auto-embed requires an embedder. Set EMBEDDER_PROVIDER=ollama (and optionally EMBEDDER_MODEL, EMBEDDER_BASE_URL).' + ); + process.exit(1); + } + findManyArgs.where = await autoEmbedWhere(findManyArgs.where ?? {}, ['embedding'], embedder); + } + const client = getClient(); + const result = await client.proposal.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 = { + actorId: true, + body: true, + closedReason: true, + createdAt: true, + createdBy: true, + createdByPrincipal: true, + databaseId: true, + decidedAt: true, + dueAt: true, + embedding: true, + id: true, + kind: true, + labels: true, + mergeCommit: true, + mergeMethod: true, + mergeRequestedAt: true, + mergedAt: true, + metadata: true, + parentId: true, + priority: true, + repositoryId: true, + resolution: true, + sourceRef: true, + status: true, + targetRef: true, + title: true, + updatedAt: true, + updatedBy: true, + updatedByPrincipal: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: ProposalSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.proposal.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 handleSearch(argv: Partial>, _prompter: Inquirerer) { + try { + const query = Array.isArray(argv._) && argv._.length > 0 ? String(argv._[0]) : undefined; + if (!query) { + console.error('Error: search requires a argument'); + process.exit(1); + } + const searchWhere = { + embedding: { + vector: query, + }, + trgmBody: { + value: query, + threshold: 0.3, + }, + trgmClosedReason: { + value: query, + threshold: 0.3, + }, + trgmKind: { + value: query, + threshold: 0.3, + }, + trgmMergeCommit: { + value: query, + threshold: 0.3, + }, + trgmMergeMethod: { + value: query, + threshold: 0.3, + }, + trgmResolution: { + value: query, + threshold: 0.3, + }, + search: { + query, + }, + trgmSourceRef: { + value: query, + threshold: 0.3, + }, + trgmStatus: { + value: query, + threshold: 0.3, + }, + trgmTargetRef: { + value: query, + threshold: 0.3, + }, + trgmTitle: { + value: query, + threshold: 0.3, + }, + }; + if (argv['auto-embed']) { + const embedder = resolveEmbedder(); + if (!embedder) { + console.error( + '--auto-embed requires an embedder. Set EMBEDDER_PROVIDER=ollama (and optionally EMBEDDER_MODEL, EMBEDDER_BASE_URL).' + ); + process.exit(1); + } + await autoEmbedWhere(searchWhere ?? {}, ['embedding'], embedder); + } + const defaultSelect = { + actorId: true, + body: true, + closedReason: true, + createdAt: true, + createdBy: true, + createdByPrincipal: true, + databaseId: true, + decidedAt: true, + dueAt: true, + embedding: true, + id: true, + kind: true, + labels: true, + mergeCommit: true, + mergeMethod: true, + mergeRequestedAt: true, + mergedAt: true, + metadata: true, + parentId: true, + priority: true, + repositoryId: true, + resolution: true, + sourceRef: true, + status: true, + targetRef: true, + title: true, + updatedAt: true, + updatedBy: true, + updatedByPrincipal: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: ProposalSelect; + } + >(argv, defaultSelect, searchWhere); + const client = getClient(); + const result = await client.proposal.findMany(findManyArgs).execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to search records.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleGet(argv: Partial>, prompter: Inquirerer) { + try { + const answers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + ]); + const client = getClient(); + const result = await client.proposal + .findOne({ + id: answers.id as string, + select: { + actorId: true, + body: true, + closedReason: true, + createdAt: true, + createdBy: true, + createdByPrincipal: true, + databaseId: true, + decidedAt: true, + dueAt: true, + embedding: true, + id: true, + kind: true, + labels: true, + mergeCommit: true, + mergeMethod: true, + mergeRequestedAt: true, + mergedAt: true, + metadata: true, + parentId: true, + priority: true, + repositoryId: true, + resolution: true, + sourceRef: true, + status: true, + targetRef: true, + title: true, + updatedAt: true, + updatedBy: true, + updatedByPrincipal: 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: 'actorId', + message: 'actorId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'body', + message: 'body', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'closedReason', + message: 'closedReason', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'createdBy', + message: 'createdBy', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: true, + }, + { + type: 'text', + name: 'decidedAt', + message: 'decidedAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'dueAt', + message: 'dueAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'embedding', + message: 'embedding', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'kind', + message: 'kind', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'labels', + message: 'labels', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'mergeCommit', + message: 'mergeCommit', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'mergeMethod', + message: 'mergeMethod', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'mergeRequestedAt', + message: 'mergeRequestedAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'mergedAt', + message: 'mergedAt', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'metadata', + message: 'metadata', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'parentId', + message: 'parentId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'priority', + message: 'priority', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'repositoryId', + message: 'repositoryId', + required: true, + }, + { + type: 'text', + name: 'resolution', + message: 'resolution', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'sourceRef', + message: 'sourceRef', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'status', + message: 'status', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'targetRef', + message: 'targetRef', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'title', + message: 'title', + required: true, + }, + { + type: 'text', + name: 'updatedBy', + message: 'updatedBy', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as CreateProposalInput['proposal']; + if (argv['auto-embed']) { + const embedder = resolveEmbedder(); + if (!embedder) { + console.error( + '--auto-embed requires an embedder. Set EMBEDDER_PROVIDER=ollama (and optionally EMBEDDER_MODEL, EMBEDDER_BASE_URL).' + ); + process.exit(1); + } + await autoEmbedInput(cleanedData, ['embedding'], embedder); + } + const client = getClient(); + const result = await client.proposal + .create({ + data: { + actorId: cleanedData.actorId, + body: cleanedData.body, + closedReason: cleanedData.closedReason, + createdBy: cleanedData.createdBy, + createdByPrincipal: cleanedData.createdByPrincipal, + databaseId: cleanedData.databaseId, + decidedAt: cleanedData.decidedAt, + dueAt: cleanedData.dueAt, + embedding: cleanedData.embedding, + kind: cleanedData.kind, + labels: cleanedData.labels, + mergeCommit: cleanedData.mergeCommit, + mergeMethod: cleanedData.mergeMethod, + mergeRequestedAt: cleanedData.mergeRequestedAt, + mergedAt: cleanedData.mergedAt, + metadata: cleanedData.metadata, + parentId: cleanedData.parentId, + priority: cleanedData.priority, + repositoryId: cleanedData.repositoryId, + resolution: cleanedData.resolution, + sourceRef: cleanedData.sourceRef, + status: cleanedData.status, + targetRef: cleanedData.targetRef, + title: cleanedData.title, + updatedBy: cleanedData.updatedBy, + updatedByPrincipal: cleanedData.updatedByPrincipal, + }, + select: { + actorId: true, + body: true, + closedReason: true, + createdAt: true, + createdBy: true, + createdByPrincipal: true, + databaseId: true, + decidedAt: true, + dueAt: true, + embedding: true, + id: true, + kind: true, + labels: true, + mergeCommit: true, + mergeMethod: true, + mergeRequestedAt: true, + mergedAt: true, + metadata: true, + parentId: true, + priority: true, + repositoryId: true, + resolution: true, + sourceRef: true, + status: true, + targetRef: true, + title: true, + updatedAt: true, + updatedBy: true, + updatedByPrincipal: 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: 'actorId', + message: 'actorId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'body', + message: 'body', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'closedReason', + message: 'closedReason', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'createdBy', + message: 'createdBy', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: false, + }, + { + type: 'text', + name: 'decidedAt', + message: 'decidedAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'dueAt', + message: 'dueAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'embedding', + message: 'embedding', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'kind', + message: 'kind', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'labels', + message: 'labels', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'mergeCommit', + message: 'mergeCommit', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'mergeMethod', + message: 'mergeMethod', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'mergeRequestedAt', + message: 'mergeRequestedAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'mergedAt', + message: 'mergedAt', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'metadata', + message: 'metadata', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'parentId', + message: 'parentId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'priority', + message: 'priority', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'repositoryId', + message: 'repositoryId', + required: false, + }, + { + type: 'text', + name: 'resolution', + message: 'resolution', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'sourceRef', + message: 'sourceRef', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'status', + message: 'status', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'targetRef', + message: 'targetRef', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'title', + message: 'title', + required: false, + }, + { + type: 'text', + name: 'updatedBy', + message: 'updatedBy', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as ProposalPatch; + if (argv['auto-embed']) { + const embedder = resolveEmbedder(); + if (!embedder) { + console.error( + '--auto-embed requires an embedder. Set EMBEDDER_PROVIDER=ollama (and optionally EMBEDDER_MODEL, EMBEDDER_BASE_URL).' + ); + process.exit(1); + } + await autoEmbedInput(cleanedData, ['embedding'], embedder); + } + const client = getClient(); + const result = await client.proposal + .update({ + where: { + id: answers.id as string, + }, + data: { + actorId: cleanedData.actorId, + body: cleanedData.body, + closedReason: cleanedData.closedReason, + createdBy: cleanedData.createdBy, + createdByPrincipal: cleanedData.createdByPrincipal, + databaseId: cleanedData.databaseId, + decidedAt: cleanedData.decidedAt, + dueAt: cleanedData.dueAt, + embedding: cleanedData.embedding, + kind: cleanedData.kind, + labels: cleanedData.labels, + mergeCommit: cleanedData.mergeCommit, + mergeMethod: cleanedData.mergeMethod, + mergeRequestedAt: cleanedData.mergeRequestedAt, + mergedAt: cleanedData.mergedAt, + metadata: cleanedData.metadata, + parentId: cleanedData.parentId, + priority: cleanedData.priority, + repositoryId: cleanedData.repositoryId, + resolution: cleanedData.resolution, + sourceRef: cleanedData.sourceRef, + status: cleanedData.status, + targetRef: cleanedData.targetRef, + title: cleanedData.title, + updatedBy: cleanedData.updatedBy, + updatedByPrincipal: cleanedData.updatedByPrincipal, + }, + select: { + actorId: true, + body: true, + closedReason: true, + createdAt: true, + createdBy: true, + createdByPrincipal: true, + databaseId: true, + decidedAt: true, + dueAt: true, + embedding: true, + id: true, + kind: true, + labels: true, + mergeCommit: true, + mergeMethod: true, + mergeRequestedAt: true, + mergedAt: true, + metadata: true, + parentId: true, + priority: true, + repositoryId: true, + resolution: true, + sourceRef: true, + status: true, + targetRef: true, + title: true, + updatedAt: true, + updatedBy: true, + updatedByPrincipal: 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.proposal + .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/compute/cli/commands/proposals-chunk.ts b/sdk/constructive-cli/src/compute/cli/commands/proposals-chunk.ts new file mode 100644 index 0000000000..53ead3fad5 --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/proposals-chunk.ts @@ -0,0 +1,478 @@ +/** + * CLI commands for ProposalsChunk + * @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 { + CreateProposalsChunkInput, + ProposalsChunkPatch, + ProposalsChunkSelect, + ProposalsChunkFilter, + ProposalsChunkOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + actorId: 'uuid', + body: 'string', + chunkIndex: 'int', + createdAt: 'string', + databaseId: 'uuid', + embedding: 'string', + embeddingVectorDistance: 'float', + id: 'uuid', + metadata: 'json', + proposalsId: 'uuid', + searchScore: 'float', + updatedAt: 'string', +}; +import { resolveEmbedder, autoEmbedWhere, autoEmbedInput } from '../embedder'; +const usage = + '\nproposals-chunk \n\nCommands:\n list List proposalsChunk records\n find-first Find first matching proposalsChunk record\n search Search proposalsChunk records\n get Get a proposalsChunk by ID\n create Create a new proposalsChunk\n update Update an existing proposalsChunk\n\nCreate/Update Options:\n --auto-embed Convert text values in vector fields to embeddings before saving\n delete Delete a proposalsChunk\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\nSearch Options:\n Search query string (required)\n --limit Max number of records to return\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --orderBy Comma-separated list of ordering values\n --auto-embed Convert text queries to vectors via configured embedder\n\nEmbedding Options (for --auto-embed):\n Set EMBEDDER_PROVIDER=ollama to enable text-to-vector embedding.\n Optional: EMBEDDER_MODEL (default: nomic-embed-text)\n Optional: EMBEDDER_BASE_URL (default: http://localhost:11434)\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', 'search', '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 'search': + return handleSearch(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 = { + actorId: true, + body: true, + chunkIndex: true, + createdAt: true, + databaseId: true, + embedding: true, + id: true, + metadata: true, + proposalsId: true, + updatedAt: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: ProposalsChunkSelect; + } + >(argv, defaultSelect); + if (argv['auto-embed']) { + const embedder = resolveEmbedder(); + if (!embedder) { + console.error( + '--auto-embed requires an embedder. Set EMBEDDER_PROVIDER=ollama (and optionally EMBEDDER_MODEL, EMBEDDER_BASE_URL).' + ); + process.exit(1); + } + findManyArgs.where = await autoEmbedWhere(findManyArgs.where ?? {}, ['embedding'], embedder); + } + const client = getClient(); + const result = await client.proposalsChunk.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 = { + actorId: true, + body: true, + chunkIndex: true, + createdAt: true, + databaseId: true, + embedding: true, + id: true, + metadata: true, + proposalsId: true, + updatedAt: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: ProposalsChunkSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.proposalsChunk.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 handleSearch(argv: Partial>, _prompter: Inquirerer) { + try { + const query = Array.isArray(argv._) && argv._.length > 0 ? String(argv._[0]) : undefined; + if (!query) { + console.error('Error: search requires a argument'); + process.exit(1); + } + const searchWhere = { + embedding: { + vector: query, + }, + }; + if (argv['auto-embed']) { + const embedder = resolveEmbedder(); + if (!embedder) { + console.error( + '--auto-embed requires an embedder. Set EMBEDDER_PROVIDER=ollama (and optionally EMBEDDER_MODEL, EMBEDDER_BASE_URL).' + ); + process.exit(1); + } + await autoEmbedWhere(searchWhere ?? {}, ['embedding'], embedder); + } + const defaultSelect = { + actorId: true, + body: true, + chunkIndex: true, + createdAt: true, + databaseId: true, + embedding: true, + id: true, + metadata: true, + proposalsId: true, + updatedAt: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: ProposalsChunkSelect; + } + >(argv, defaultSelect, searchWhere); + const client = getClient(); + const result = await client.proposalsChunk.findMany(findManyArgs).execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to search records.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleGet(argv: Partial>, prompter: Inquirerer) { + try { + const answers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + ]); + const client = getClient(); + const result = await client.proposalsChunk + .findOne({ + id: answers.id as string, + select: { + actorId: true, + body: true, + chunkIndex: true, + createdAt: true, + databaseId: true, + embedding: true, + id: true, + metadata: true, + proposalsId: 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: 'actorId', + message: 'actorId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'body', + message: 'body', + required: true, + }, + { + type: 'text', + name: 'chunkIndex', + message: 'chunkIndex', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'embedding', + message: 'embedding', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'metadata', + message: 'metadata', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'proposalsId', + message: 'proposalsId', + required: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateProposalsChunkInput['proposalsChunk']; + if (argv['auto-embed']) { + const embedder = resolveEmbedder(); + if (!embedder) { + console.error( + '--auto-embed requires an embedder. Set EMBEDDER_PROVIDER=ollama (and optionally EMBEDDER_MODEL, EMBEDDER_BASE_URL).' + ); + process.exit(1); + } + await autoEmbedInput(cleanedData, ['embedding'], embedder); + } + const client = getClient(); + const result = await client.proposalsChunk + .create({ + data: { + actorId: cleanedData.actorId, + body: cleanedData.body, + chunkIndex: cleanedData.chunkIndex, + databaseId: cleanedData.databaseId, + embedding: cleanedData.embedding, + metadata: cleanedData.metadata, + proposalsId: cleanedData.proposalsId, + }, + select: { + actorId: true, + body: true, + chunkIndex: true, + createdAt: true, + databaseId: true, + embedding: true, + id: true, + metadata: true, + proposalsId: 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: 'actorId', + message: 'actorId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'body', + message: 'body', + required: false, + }, + { + type: 'text', + name: 'chunkIndex', + message: 'chunkIndex', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'embedding', + message: 'embedding', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'metadata', + message: 'metadata', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'proposalsId', + message: 'proposalsId', + required: false, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as ProposalsChunkPatch; + if (argv['auto-embed']) { + const embedder = resolveEmbedder(); + if (!embedder) { + console.error( + '--auto-embed requires an embedder. Set EMBEDDER_PROVIDER=ollama (and optionally EMBEDDER_MODEL, EMBEDDER_BASE_URL).' + ); + process.exit(1); + } + await autoEmbedInput(cleanedData, ['embedding'], embedder); + } + const client = getClient(); + const result = await client.proposalsChunk + .update({ + where: { + id: answers.id as string, + }, + data: { + actorId: cleanedData.actorId, + body: cleanedData.body, + chunkIndex: cleanedData.chunkIndex, + databaseId: cleanedData.databaseId, + embedding: cleanedData.embedding, + metadata: cleanedData.metadata, + proposalsId: cleanedData.proposalsId, + }, + select: { + actorId: true, + body: true, + chunkIndex: true, + createdAt: true, + databaseId: true, + embedding: true, + id: true, + metadata: true, + proposalsId: 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.proposalsChunk + .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/compute/cli/commands/provision-bucket.ts b/sdk/constructive-cli/src/compute/cli/commands/provision-bucket.ts index ecd2e539d5..0c54313d78 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/provision-bucket.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/provision-bucket.ts @@ -16,7 +16,7 @@ export default async ( try { if (argv.help || argv.h) { console.log( - '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\nUsage: provision-bucket [OPTIONS]\n' + 'provision-bucket - Reconcile an S3 bucket for a logical bucket in the database.\nReads the bucket config via RLS, then enqueues the same\nstorage:provision_bucket job used by the INSERT trigger. This is\nidempotent for an already-reconciled bucket; enqueue failures become\nGraphQL errors.\n\nUsage: provision-bucket [OPTIONS]\n' ); process.exit(0); } diff --git a/sdk/constructive-cli/src/compute/cli/commands/registry-binding.ts b/sdk/constructive-cli/src/compute/cli/commands/registry-binding.ts new file mode 100644 index 0000000000..82352ac8d7 --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/registry-binding.ts @@ -0,0 +1,521 @@ +/** + * CLI commands for RegistryBinding + * @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 { + CreateRegistryBindingInput, + RegistryBindingPatch, + RegistryBindingSelect, + RegistryBindingFilter, + RegistryBindingOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + createdAt: 'string', + createdBy: 'uuid', + createdByPrincipal: 'uuid', + databaseId: 'uuid', + id: 'uuid', + metadata: 'json', + namespaceId: 'uuid', + observedCredentialVersion: 'string', + pullSecretName: 'string', + realm: 'string', + registryHost: 'string', + registryId: 'uuid', + status: 'string', + updatedAt: 'string', + updatedBy: 'uuid', + updatedByPrincipal: 'uuid', +}; +const usage = + '\nregistry-binding \n\nCommands:\n list List registryBinding records\n find-first Find first matching registryBinding record\n get Get a registryBinding by ID\n create Create a new registryBinding\n update Update an existing registryBinding\n delete Delete a registryBinding\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, + createdBy: true, + createdByPrincipal: true, + databaseId: true, + id: true, + metadata: true, + namespaceId: true, + observedCredentialVersion: true, + pullSecretName: true, + realm: true, + registryHost: true, + registryId: true, + status: true, + updatedAt: true, + updatedBy: true, + updatedByPrincipal: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: RegistryBindingSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.registryBinding.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, + createdBy: true, + createdByPrincipal: true, + databaseId: true, + id: true, + metadata: true, + namespaceId: true, + observedCredentialVersion: true, + pullSecretName: true, + realm: true, + registryHost: true, + registryId: true, + status: true, + updatedAt: true, + updatedBy: true, + updatedByPrincipal: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: RegistryBindingSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.registryBinding.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.registryBinding + .findOne({ + id: answers.id as string, + select: { + createdAt: true, + createdBy: true, + createdByPrincipal: true, + databaseId: true, + id: true, + metadata: true, + namespaceId: true, + observedCredentialVersion: true, + pullSecretName: true, + realm: true, + registryHost: true, + registryId: true, + status: true, + updatedAt: true, + updatedBy: true, + updatedByPrincipal: 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: 'createdBy', + message: 'createdBy', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: true, + }, + { + type: 'json', + name: 'metadata', + message: 'metadata', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'namespaceId', + message: 'namespaceId', + required: true, + }, + { + type: 'text', + name: 'observedCredentialVersion', + message: 'observedCredentialVersion', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'pullSecretName', + message: 'pullSecretName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'realm', + message: 'realm', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'registryHost', + message: 'registryHost', + required: true, + }, + { + type: 'text', + name: 'registryId', + message: 'registryId', + required: true, + }, + { + type: 'text', + name: 'status', + message: 'status', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'updatedBy', + message: 'updatedBy', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateRegistryBindingInput['registryBinding']; + const client = getClient(); + const result = await client.registryBinding + .create({ + data: { + createdBy: cleanedData.createdBy, + createdByPrincipal: cleanedData.createdByPrincipal, + databaseId: cleanedData.databaseId, + metadata: cleanedData.metadata, + namespaceId: cleanedData.namespaceId, + observedCredentialVersion: cleanedData.observedCredentialVersion, + pullSecretName: cleanedData.pullSecretName, + realm: cleanedData.realm, + registryHost: cleanedData.registryHost, + registryId: cleanedData.registryId, + status: cleanedData.status, + updatedBy: cleanedData.updatedBy, + updatedByPrincipal: cleanedData.updatedByPrincipal, + }, + select: { + createdAt: true, + createdBy: true, + createdByPrincipal: true, + databaseId: true, + id: true, + metadata: true, + namespaceId: true, + observedCredentialVersion: true, + pullSecretName: true, + realm: true, + registryHost: true, + registryId: true, + status: true, + updatedAt: true, + updatedBy: true, + updatedByPrincipal: 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: 'createdBy', + message: 'createdBy', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: false, + }, + { + type: 'json', + name: 'metadata', + message: 'metadata', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'namespaceId', + message: 'namespaceId', + required: false, + }, + { + type: 'text', + name: 'observedCredentialVersion', + message: 'observedCredentialVersion', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'pullSecretName', + message: 'pullSecretName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'realm', + message: 'realm', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'registryHost', + message: 'registryHost', + required: false, + }, + { + type: 'text', + name: 'registryId', + message: 'registryId', + required: false, + }, + { + type: 'text', + name: 'status', + message: 'status', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'updatedBy', + message: 'updatedBy', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as RegistryBindingPatch; + const client = getClient(); + const result = await client.registryBinding + .update({ + where: { + id: answers.id as string, + }, + data: { + createdBy: cleanedData.createdBy, + createdByPrincipal: cleanedData.createdByPrincipal, + databaseId: cleanedData.databaseId, + metadata: cleanedData.metadata, + namespaceId: cleanedData.namespaceId, + observedCredentialVersion: cleanedData.observedCredentialVersion, + pullSecretName: cleanedData.pullSecretName, + realm: cleanedData.realm, + registryHost: cleanedData.registryHost, + registryId: cleanedData.registryId, + status: cleanedData.status, + updatedBy: cleanedData.updatedBy, + updatedByPrincipal: cleanedData.updatedByPrincipal, + }, + select: { + createdAt: true, + createdBy: true, + createdByPrincipal: true, + databaseId: true, + id: true, + metadata: true, + namespaceId: true, + observedCredentialVersion: true, + pullSecretName: true, + realm: true, + registryHost: true, + registryId: true, + status: true, + updatedAt: true, + updatedBy: true, + updatedByPrincipal: 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.registryBinding + .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/compute/cli/commands/registry-grant.ts b/sdk/constructive-cli/src/compute/cli/commands/registry-grant.ts new file mode 100644 index 0000000000..b0e6e046c7 --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/registry-grant.ts @@ -0,0 +1,433 @@ +/** + * CLI commands for RegistryGrant + * @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 { + CreateRegistryGrantInput, + RegistryGrantPatch, + RegistryGrantSelect, + RegistryGrantFilter, + RegistryGrantOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + actions: 'string', + createdAt: 'string', + createdByPrincipal: 'uuid', + databaseId: 'uuid', + expiresAt: 'string', + grantedBy: 'uuid', + granteeKey: 'uuid', + granteeScope: 'string', + id: 'uuid', + registryId: 'uuid', + updatedAt: 'string', + updatedByPrincipal: 'uuid', +}; +const usage = + '\nregistry-grant \n\nCommands:\n list List registryGrant records\n find-first Find first matching registryGrant record\n get Get a registryGrant by ID\n create Create a new registryGrant\n update Update an existing registryGrant\n delete Delete a registryGrant\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 = { + actions: true, + createdAt: true, + createdByPrincipal: true, + databaseId: true, + expiresAt: true, + grantedBy: true, + granteeKey: true, + granteeScope: true, + id: true, + registryId: true, + updatedAt: true, + updatedByPrincipal: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: RegistryGrantSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.registryGrant.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 = { + actions: true, + createdAt: true, + createdByPrincipal: true, + databaseId: true, + expiresAt: true, + grantedBy: true, + granteeKey: true, + granteeScope: true, + id: true, + registryId: true, + updatedAt: true, + updatedByPrincipal: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: RegistryGrantSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.registryGrant.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.registryGrant + .findOne({ + id: answers.id as string, + select: { + actions: true, + createdAt: true, + createdByPrincipal: true, + databaseId: true, + expiresAt: true, + grantedBy: true, + granteeKey: true, + granteeScope: true, + id: true, + registryId: true, + updatedAt: true, + updatedByPrincipal: 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: 'actions', + message: 'actions', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: true, + }, + { + type: 'text', + name: 'expiresAt', + message: 'expiresAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'grantedBy', + message: 'grantedBy', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'granteeKey', + message: 'granteeKey', + required: true, + }, + { + type: 'text', + name: 'granteeScope', + message: 'granteeScope', + required: true, + }, + { + type: 'text', + name: 'registryId', + message: 'registryId', + required: true, + }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateRegistryGrantInput['registryGrant']; + const client = getClient(); + const result = await client.registryGrant + .create({ + data: { + actions: cleanedData.actions, + createdByPrincipal: cleanedData.createdByPrincipal, + databaseId: cleanedData.databaseId, + expiresAt: cleanedData.expiresAt, + grantedBy: cleanedData.grantedBy, + granteeKey: cleanedData.granteeKey, + granteeScope: cleanedData.granteeScope, + registryId: cleanedData.registryId, + updatedByPrincipal: cleanedData.updatedByPrincipal, + }, + select: { + actions: true, + createdAt: true, + createdByPrincipal: true, + databaseId: true, + expiresAt: true, + grantedBy: true, + granteeKey: true, + granteeScope: true, + id: true, + registryId: true, + updatedAt: true, + updatedByPrincipal: 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: 'actions', + message: 'actions', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: false, + }, + { + type: 'text', + name: 'expiresAt', + message: 'expiresAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'grantedBy', + message: 'grantedBy', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'granteeKey', + message: 'granteeKey', + required: false, + }, + { + type: 'text', + name: 'granteeScope', + message: 'granteeScope', + required: false, + }, + { + type: 'text', + name: 'registryId', + message: 'registryId', + required: false, + }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as RegistryGrantPatch; + const client = getClient(); + const result = await client.registryGrant + .update({ + where: { + id: answers.id as string, + }, + data: { + actions: cleanedData.actions, + createdByPrincipal: cleanedData.createdByPrincipal, + databaseId: cleanedData.databaseId, + expiresAt: cleanedData.expiresAt, + grantedBy: cleanedData.grantedBy, + granteeKey: cleanedData.granteeKey, + granteeScope: cleanedData.granteeScope, + registryId: cleanedData.registryId, + updatedByPrincipal: cleanedData.updatedByPrincipal, + }, + select: { + actions: true, + createdAt: true, + createdByPrincipal: true, + databaseId: true, + expiresAt: true, + grantedBy: true, + granteeKey: true, + granteeScope: true, + id: true, + registryId: true, + updatedAt: true, + updatedByPrincipal: 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.registryGrant + .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/compute/cli/commands/registry.ts b/sdk/constructive-cli/src/compute/cli/commands/registry.ts new file mode 100644 index 0000000000..3be70bd4c3 --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/registry.ts @@ -0,0 +1,608 @@ +/** + * CLI commands for Registry + * @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 { + CreateRegistryInput, + RegistryPatch, + RegistrySelect, + RegistryFilter, + RegistryOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + authMode: 'string', + basePath: 'string', + createdAt: 'string', + createdByPrincipal: 'uuid', + credentialSecretName: 'string', + databaseId: 'uuid', + host: 'string', + id: 'uuid', + installationId: 'uuid', + isPublished: 'boolean', + kind: 'string', + labels: 'json', + lastError: 'string', + metadata: 'json', + name: 'string', + platformOnly: 'boolean', + role: 'string', + status: 'string', + updatedAt: 'string', + updatedByPrincipal: 'uuid', +}; +const usage = + '\nregistry \n\nCommands:\n list List registry records\n find-first Find first matching registry record\n get Get a registry by ID\n create Create a new registry\n update Update an existing registry\n delete Delete a registry\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 = { + authMode: true, + basePath: true, + createdAt: true, + createdByPrincipal: true, + credentialSecretName: true, + databaseId: true, + host: true, + id: true, + installationId: true, + isPublished: true, + kind: true, + labels: true, + lastError: true, + metadata: true, + name: true, + platformOnly: true, + role: true, + status: true, + updatedAt: true, + updatedByPrincipal: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: RegistrySelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.registry.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 = { + authMode: true, + basePath: true, + createdAt: true, + createdByPrincipal: true, + credentialSecretName: true, + databaseId: true, + host: true, + id: true, + installationId: true, + isPublished: true, + kind: true, + labels: true, + lastError: true, + metadata: true, + name: true, + platformOnly: true, + role: true, + status: true, + updatedAt: true, + updatedByPrincipal: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: RegistrySelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.registry.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.registry + .findOne({ + id: answers.id as string, + select: { + authMode: true, + basePath: true, + createdAt: true, + createdByPrincipal: true, + credentialSecretName: true, + databaseId: true, + host: true, + id: true, + installationId: true, + isPublished: true, + kind: true, + labels: true, + lastError: true, + metadata: true, + name: true, + platformOnly: true, + role: true, + status: true, + updatedAt: true, + updatedByPrincipal: 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: 'authMode', + message: 'authMode', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'basePath', + message: 'basePath', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'credentialSecretName', + message: 'credentialSecretName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: true, + }, + { + type: 'text', + name: 'host', + message: 'host', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'installationId', + message: 'installationId', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'isPublished', + message: 'isPublished', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'kind', + message: 'kind', + required: true, + }, + { + type: 'json', + name: 'labels', + message: 'labels', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'lastError', + message: 'lastError', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'metadata', + message: 'metadata', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'name', + message: 'name', + required: true, + }, + { + type: 'boolean', + name: 'platformOnly', + message: 'platformOnly', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'role', + message: 'role', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'status', + message: 'status', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as CreateRegistryInput['registry']; + const client = getClient(); + const result = await client.registry + .create({ + data: { + authMode: cleanedData.authMode, + basePath: cleanedData.basePath, + createdByPrincipal: cleanedData.createdByPrincipal, + credentialSecretName: cleanedData.credentialSecretName, + databaseId: cleanedData.databaseId, + host: cleanedData.host, + installationId: cleanedData.installationId, + isPublished: cleanedData.isPublished, + kind: cleanedData.kind, + labels: cleanedData.labels, + lastError: cleanedData.lastError, + metadata: cleanedData.metadata, + name: cleanedData.name, + platformOnly: cleanedData.platformOnly, + role: cleanedData.role, + status: cleanedData.status, + updatedByPrincipal: cleanedData.updatedByPrincipal, + }, + select: { + authMode: true, + basePath: true, + createdAt: true, + createdByPrincipal: true, + credentialSecretName: true, + databaseId: true, + host: true, + id: true, + installationId: true, + isPublished: true, + kind: true, + labels: true, + lastError: true, + metadata: true, + name: true, + platformOnly: true, + role: true, + status: true, + updatedAt: true, + updatedByPrincipal: 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: 'authMode', + message: 'authMode', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'basePath', + message: 'basePath', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'credentialSecretName', + message: 'credentialSecretName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: false, + }, + { + type: 'text', + name: 'host', + message: 'host', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'installationId', + message: 'installationId', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'isPublished', + message: 'isPublished', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'kind', + message: 'kind', + required: false, + }, + { + type: 'json', + name: 'labels', + message: 'labels', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'lastError', + message: 'lastError', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'metadata', + message: 'metadata', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'name', + message: 'name', + required: false, + }, + { + type: 'boolean', + name: 'platformOnly', + message: 'platformOnly', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'role', + message: 'role', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'status', + message: 'status', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as RegistryPatch; + const client = getClient(); + const result = await client.registry + .update({ + where: { + id: answers.id as string, + }, + data: { + authMode: cleanedData.authMode, + basePath: cleanedData.basePath, + createdByPrincipal: cleanedData.createdByPrincipal, + credentialSecretName: cleanedData.credentialSecretName, + databaseId: cleanedData.databaseId, + host: cleanedData.host, + installationId: cleanedData.installationId, + isPublished: cleanedData.isPublished, + kind: cleanedData.kind, + labels: cleanedData.labels, + lastError: cleanedData.lastError, + metadata: cleanedData.metadata, + name: cleanedData.name, + platformOnly: cleanedData.platformOnly, + role: cleanedData.role, + status: cleanedData.status, + updatedByPrincipal: cleanedData.updatedByPrincipal, + }, + select: { + authMode: true, + basePath: true, + createdAt: true, + createdByPrincipal: true, + credentialSecretName: true, + databaseId: true, + host: true, + id: true, + installationId: true, + isPublished: true, + kind: true, + labels: true, + lastError: true, + metadata: true, + name: true, + platformOnly: true, + role: true, + status: true, + updatedAt: true, + updatedByPrincipal: 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.registry + .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/compute/cli/commands/repository-event.ts b/sdk/constructive-cli/src/compute/cli/commands/repository-event.ts new file mode 100644 index 0000000000..9e9ecae774 --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/repository-event.ts @@ -0,0 +1,479 @@ +/** + * CLI commands for RepositoryEvent + * @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 { + CreateRepositoryEventInput, + RepositoryEventPatch, + RepositoryEventSelect, + RepositoryEventFilter, + RepositoryEventOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + actorId: 'uuid', + commitSha: 'string', + createdAt: 'string', + createdByPrincipal: 'uuid', + databaseId: 'uuid', + deliveryId: 'string', + eventType: 'string', + id: 'uuid', + metadata: 'json', + payload: 'json', + ref: 'string', + repositoryId: 'uuid', + updatedAt: 'string', + updatedByPrincipal: 'uuid', +}; +const usage = + '\nrepository-event \n\nCommands:\n list List repositoryEvent records\n find-first Find first matching repositoryEvent record\n get Get a repositoryEvent by ID\n create Create a new repositoryEvent\n update Update an existing repositoryEvent\n delete Delete a repositoryEvent\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 = { + actorId: true, + commitSha: true, + createdAt: true, + createdByPrincipal: true, + databaseId: true, + deliveryId: true, + eventType: true, + id: true, + metadata: true, + payload: true, + ref: true, + repositoryId: true, + updatedAt: true, + updatedByPrincipal: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: RepositoryEventSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.repositoryEvent.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 = { + actorId: true, + commitSha: true, + createdAt: true, + createdByPrincipal: true, + databaseId: true, + deliveryId: true, + eventType: true, + id: true, + metadata: true, + payload: true, + ref: true, + repositoryId: true, + updatedAt: true, + updatedByPrincipal: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: RepositoryEventSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.repositoryEvent.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.repositoryEvent + .findOne({ + id: answers.id as string, + select: { + actorId: true, + commitSha: true, + createdAt: true, + createdByPrincipal: true, + databaseId: true, + deliveryId: true, + eventType: true, + id: true, + metadata: true, + payload: true, + ref: true, + repositoryId: true, + updatedAt: true, + updatedByPrincipal: 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: 'actorId', + message: 'actorId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'commitSha', + message: 'commitSha', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: true, + }, + { + type: 'text', + name: 'deliveryId', + message: 'deliveryId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'eventType', + message: 'eventType', + required: true, + }, + { + type: 'json', + name: 'metadata', + message: 'metadata', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'payload', + message: 'payload', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'ref', + message: 'ref', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'repositoryId', + message: 'repositoryId', + required: true, + }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateRepositoryEventInput['repositoryEvent']; + const client = getClient(); + const result = await client.repositoryEvent + .create({ + data: { + actorId: cleanedData.actorId, + commitSha: cleanedData.commitSha, + createdByPrincipal: cleanedData.createdByPrincipal, + databaseId: cleanedData.databaseId, + deliveryId: cleanedData.deliveryId, + eventType: cleanedData.eventType, + metadata: cleanedData.metadata, + payload: cleanedData.payload, + ref: cleanedData.ref, + repositoryId: cleanedData.repositoryId, + updatedByPrincipal: cleanedData.updatedByPrincipal, + }, + select: { + actorId: true, + commitSha: true, + createdAt: true, + createdByPrincipal: true, + databaseId: true, + deliveryId: true, + eventType: true, + id: true, + metadata: true, + payload: true, + ref: true, + repositoryId: true, + updatedAt: true, + updatedByPrincipal: 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: 'actorId', + message: 'actorId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'commitSha', + message: 'commitSha', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: false, + }, + { + type: 'text', + name: 'deliveryId', + message: 'deliveryId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'eventType', + message: 'eventType', + required: false, + }, + { + type: 'json', + name: 'metadata', + message: 'metadata', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'payload', + message: 'payload', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'ref', + message: 'ref', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'repositoryId', + message: 'repositoryId', + required: false, + }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as RepositoryEventPatch; + const client = getClient(); + const result = await client.repositoryEvent + .update({ + where: { + id: answers.id as string, + }, + data: { + actorId: cleanedData.actorId, + commitSha: cleanedData.commitSha, + createdByPrincipal: cleanedData.createdByPrincipal, + databaseId: cleanedData.databaseId, + deliveryId: cleanedData.deliveryId, + eventType: cleanedData.eventType, + metadata: cleanedData.metadata, + payload: cleanedData.payload, + ref: cleanedData.ref, + repositoryId: cleanedData.repositoryId, + updatedByPrincipal: cleanedData.updatedByPrincipal, + }, + select: { + actorId: true, + commitSha: true, + createdAt: true, + createdByPrincipal: true, + databaseId: true, + deliveryId: true, + eventType: true, + id: true, + metadata: true, + payload: true, + ref: true, + repositoryId: true, + updatedAt: true, + updatedByPrincipal: 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.repositoryEvent + .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/compute/cli/commands/repository-required-check.ts b/sdk/constructive-cli/src/compute/cli/commands/repository-required-check.ts new file mode 100644 index 0000000000..04b3a2ddcf --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/repository-required-check.ts @@ -0,0 +1,311 @@ +/** + * CLI commands for RepositoryRequiredCheck + * @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 { + CreateRepositoryRequiredCheckInput, + RepositoryRequiredCheckPatch, + RepositoryRequiredCheckSelect, + RepositoryRequiredCheckFilter, + RepositoryRequiredCheckOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + createdAt: 'string', + databaseId: 'uuid', + id: 'uuid', + repositoryId: 'uuid', + updatedAt: 'string', + workflowId: 'uuid', +}; +const usage = + '\nrepository-required-check \n\nCommands:\n list List repositoryRequiredCheck records\n find-first Find first matching repositoryRequiredCheck record\n get Get a repositoryRequiredCheck by ID\n create Create a new repositoryRequiredCheck\n update Update an existing repositoryRequiredCheck\n delete Delete a repositoryRequiredCheck\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, + id: true, + repositoryId: true, + updatedAt: true, + workflowId: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs< + RepositoryRequiredCheckSelect, + RepositoryRequiredCheckFilter, + RepositoryRequiredCheckOrderBy + > & { + select: RepositoryRequiredCheckSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.repositoryRequiredCheck.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, + id: true, + repositoryId: true, + updatedAt: true, + workflowId: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs< + RepositoryRequiredCheckSelect, + RepositoryRequiredCheckFilter, + RepositoryRequiredCheckOrderBy + > & { + select: RepositoryRequiredCheckSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.repositoryRequiredCheck.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.repositoryRequiredCheck + .findOne({ + id: answers.id as string, + select: { + createdAt: true, + databaseId: true, + id: true, + repositoryId: true, + updatedAt: true, + workflowId: 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: 'repositoryId', + message: 'repositoryId', + required: true, + }, + { + type: 'text', + name: 'workflowId', + message: 'workflowId', + required: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateRepositoryRequiredCheckInput['repositoryRequiredCheck']; + const client = getClient(); + const result = await client.repositoryRequiredCheck + .create({ + data: { + databaseId: cleanedData.databaseId, + repositoryId: cleanedData.repositoryId, + workflowId: cleanedData.workflowId, + }, + select: { + createdAt: true, + databaseId: true, + id: true, + repositoryId: true, + updatedAt: true, + workflowId: 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: 'repositoryId', + message: 'repositoryId', + required: false, + }, + { + type: 'text', + name: 'workflowId', + message: 'workflowId', + required: false, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as RepositoryRequiredCheckPatch; + const client = getClient(); + const result = await client.repositoryRequiredCheck + .update({ + where: { + id: answers.id as string, + }, + data: { + databaseId: cleanedData.databaseId, + repositoryId: cleanedData.repositoryId, + workflowId: cleanedData.workflowId, + }, + select: { + createdAt: true, + databaseId: true, + id: true, + repositoryId: true, + updatedAt: true, + workflowId: 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.repositoryRequiredCheck + .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/compute/cli/commands/repository-workflow.ts b/sdk/constructive-cli/src/compute/cli/commands/repository-workflow.ts new file mode 100644 index 0000000000..90ddb22f1d --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/repository-workflow.ts @@ -0,0 +1,593 @@ +/** + * CLI commands for RepositoryWorkflow + * @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 { + CreateRepositoryWorkflowInput, + RepositoryWorkflowPatch, + RepositoryWorkflowSelect, + RepositoryWorkflowFilter, + RepositoryWorkflowOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + cancelInProgress: 'boolean', + concurrencyKey: 'string', + createdAt: 'string', + createdBy: 'uuid', + createdByPrincipal: 'uuid', + databaseId: 'uuid', + eventType: 'string', + graphId: 'uuid', + id: 'uuid', + inputs: 'json', + isEnabled: 'boolean', + name: 'string', + refPattern: 'string', + repositoryId: 'uuid', + requiredSecrets: 'string', + slug: 'string', + updatedAt: 'string', + updatedBy: 'uuid', + updatedByPrincipal: 'uuid', +}; +const usage = + '\nrepository-workflow \n\nCommands:\n list List repositoryWorkflow records\n find-first Find first matching repositoryWorkflow record\n get Get a repositoryWorkflow by ID\n create Create a new repositoryWorkflow\n update Update an existing repositoryWorkflow\n delete Delete a repositoryWorkflow\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 = { + cancelInProgress: true, + concurrencyKey: true, + createdAt: true, + createdBy: true, + createdByPrincipal: true, + databaseId: true, + eventType: true, + graphId: true, + id: true, + inputs: true, + isEnabled: true, + name: true, + refPattern: true, + repositoryId: true, + requiredSecrets: true, + slug: true, + updatedAt: true, + updatedBy: true, + updatedByPrincipal: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs< + RepositoryWorkflowSelect, + RepositoryWorkflowFilter, + RepositoryWorkflowOrderBy + > & { + select: RepositoryWorkflowSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.repositoryWorkflow.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 = { + cancelInProgress: true, + concurrencyKey: true, + createdAt: true, + createdBy: true, + createdByPrincipal: true, + databaseId: true, + eventType: true, + graphId: true, + id: true, + inputs: true, + isEnabled: true, + name: true, + refPattern: true, + repositoryId: true, + requiredSecrets: true, + slug: true, + updatedAt: true, + updatedBy: true, + updatedByPrincipal: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs< + RepositoryWorkflowSelect, + RepositoryWorkflowFilter, + RepositoryWorkflowOrderBy + > & { + select: RepositoryWorkflowSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.repositoryWorkflow.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.repositoryWorkflow + .findOne({ + id: answers.id as string, + select: { + cancelInProgress: true, + concurrencyKey: true, + createdAt: true, + createdBy: true, + createdByPrincipal: true, + databaseId: true, + eventType: true, + graphId: true, + id: true, + inputs: true, + isEnabled: true, + name: true, + refPattern: true, + repositoryId: true, + requiredSecrets: true, + slug: true, + updatedAt: true, + updatedBy: true, + updatedByPrincipal: 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: 'boolean', + name: 'cancelInProgress', + message: 'cancelInProgress', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'concurrencyKey', + message: 'concurrencyKey', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'createdBy', + message: 'createdBy', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: true, + }, + { + type: 'text', + name: 'eventType', + message: 'eventType', + required: true, + }, + { + type: 'text', + name: 'graphId', + message: 'graphId', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'inputs', + message: 'inputs', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'isEnabled', + message: 'isEnabled', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'name', + message: 'name', + required: true, + }, + { + type: 'text', + name: 'refPattern', + message: 'refPattern', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'repositoryId', + message: 'repositoryId', + required: true, + }, + { + type: 'text', + name: 'requiredSecrets', + message: 'requiredSecrets', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'slug', + message: 'slug', + required: true, + }, + { + type: 'text', + name: 'updatedBy', + message: 'updatedBy', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateRepositoryWorkflowInput['repositoryWorkflow']; + const client = getClient(); + const result = await client.repositoryWorkflow + .create({ + data: { + cancelInProgress: cleanedData.cancelInProgress, + concurrencyKey: cleanedData.concurrencyKey, + createdBy: cleanedData.createdBy, + createdByPrincipal: cleanedData.createdByPrincipal, + databaseId: cleanedData.databaseId, + eventType: cleanedData.eventType, + graphId: cleanedData.graphId, + inputs: cleanedData.inputs, + isEnabled: cleanedData.isEnabled, + name: cleanedData.name, + refPattern: cleanedData.refPattern, + repositoryId: cleanedData.repositoryId, + requiredSecrets: cleanedData.requiredSecrets, + slug: cleanedData.slug, + updatedBy: cleanedData.updatedBy, + updatedByPrincipal: cleanedData.updatedByPrincipal, + }, + select: { + cancelInProgress: true, + concurrencyKey: true, + createdAt: true, + createdBy: true, + createdByPrincipal: true, + databaseId: true, + eventType: true, + graphId: true, + id: true, + inputs: true, + isEnabled: true, + name: true, + refPattern: true, + repositoryId: true, + requiredSecrets: true, + slug: true, + updatedAt: true, + updatedBy: true, + updatedByPrincipal: 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: 'boolean', + name: 'cancelInProgress', + message: 'cancelInProgress', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'concurrencyKey', + message: 'concurrencyKey', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'createdBy', + message: 'createdBy', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: false, + }, + { + type: 'text', + name: 'eventType', + message: 'eventType', + required: false, + }, + { + type: 'text', + name: 'graphId', + message: 'graphId', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'inputs', + message: 'inputs', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'isEnabled', + message: 'isEnabled', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'name', + message: 'name', + required: false, + }, + { + type: 'text', + name: 'refPattern', + message: 'refPattern', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'repositoryId', + message: 'repositoryId', + required: false, + }, + { + type: 'text', + name: 'requiredSecrets', + message: 'requiredSecrets', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'slug', + message: 'slug', + required: false, + }, + { + type: 'text', + name: 'updatedBy', + message: 'updatedBy', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as RepositoryWorkflowPatch; + const client = getClient(); + const result = await client.repositoryWorkflow + .update({ + where: { + id: answers.id as string, + }, + data: { + cancelInProgress: cleanedData.cancelInProgress, + concurrencyKey: cleanedData.concurrencyKey, + createdBy: cleanedData.createdBy, + createdByPrincipal: cleanedData.createdByPrincipal, + databaseId: cleanedData.databaseId, + eventType: cleanedData.eventType, + graphId: cleanedData.graphId, + inputs: cleanedData.inputs, + isEnabled: cleanedData.isEnabled, + name: cleanedData.name, + refPattern: cleanedData.refPattern, + repositoryId: cleanedData.repositoryId, + requiredSecrets: cleanedData.requiredSecrets, + slug: cleanedData.slug, + updatedBy: cleanedData.updatedBy, + updatedByPrincipal: cleanedData.updatedByPrincipal, + }, + select: { + cancelInProgress: true, + concurrencyKey: true, + createdAt: true, + createdBy: true, + createdByPrincipal: true, + databaseId: true, + eventType: true, + graphId: true, + id: true, + inputs: true, + isEnabled: true, + name: true, + refPattern: true, + repositoryId: true, + requiredSecrets: true, + slug: true, + updatedAt: true, + updatedBy: true, + updatedByPrincipal: 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.repositoryWorkflow + .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/compute/cli/commands/repository.ts b/sdk/constructive-cli/src/compute/cli/commands/repository.ts new file mode 100644 index 0000000000..84be0a6415 --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/repository.ts @@ -0,0 +1,749 @@ +/** + * CLI commands for Repository + * @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 { + CreateRepositoryInput, + RepositoryPatch, + RepositorySelect, + RepositoryFilter, + RepositoryOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + cloneUrl: 'string', + cloneUrlTrgmSimilarity: 'float', + createdAt: 'string', + createdBy: 'uuid', + createdByPrincipal: 'uuid', + databaseId: 'uuid', + defaultBranch: 'string', + defaultBranchTrgmSimilarity: 'float', + description: 'string', + descriptionTrgmSimilarity: 'float', + embedding: 'string', + embeddingUpdatedAt: 'string', + embeddingVectorDistance: 'float', + externalId: 'string', + externalIdTrgmSimilarity: 'float', + id: 'uuid', + isArchived: 'boolean', + metadata: 'json', + name: 'string', + nameTrgmSimilarity: 'float', + ownerId: 'uuid', + provider: 'string', + providerTrgmSimilarity: 'float', + search: 'string', + searchScore: 'float', + searchTsvRank: 'float', + slug: 'string', + slugTrgmSimilarity: 'float', + updatedAt: 'string', + updatedBy: 'uuid', + updatedByPrincipal: 'uuid', + visibility: 'string', + visibilityTrgmSimilarity: 'float', +}; +import { resolveEmbedder, autoEmbedWhere, autoEmbedInput } from '../embedder'; +const usage = + '\nrepository \n\nCommands:\n list List repository records\n find-first Find first matching repository record\n search Search repository records\n get Get a repository by ID\n create Create a new repository\n update Update an existing repository\n\nCreate/Update Options:\n --auto-embed Convert text values in vector fields to embeddings before saving\n delete Delete a repository\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\nSearch Options:\n Search query string (required)\n --limit Max number of records to return\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --orderBy Comma-separated list of ordering values\n --auto-embed Convert text queries to vectors via configured embedder\n\nEmbedding Options (for --auto-embed):\n Set EMBEDDER_PROVIDER=ollama to enable text-to-vector embedding.\n Optional: EMBEDDER_MODEL (default: nomic-embed-text)\n Optional: EMBEDDER_BASE_URL (default: http://localhost:11434)\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', 'search', '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 'search': + return handleSearch(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 = { + cloneUrl: true, + createdAt: true, + createdBy: true, + createdByPrincipal: true, + databaseId: true, + defaultBranch: true, + description: true, + embedding: true, + externalId: true, + id: true, + isArchived: true, + metadata: true, + name: true, + ownerId: true, + provider: true, + slug: true, + updatedAt: true, + updatedBy: true, + updatedByPrincipal: true, + visibility: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: RepositorySelect; + } + >(argv, defaultSelect); + if (argv['auto-embed']) { + const embedder = resolveEmbedder(); + if (!embedder) { + console.error( + '--auto-embed requires an embedder. Set EMBEDDER_PROVIDER=ollama (and optionally EMBEDDER_MODEL, EMBEDDER_BASE_URL).' + ); + process.exit(1); + } + findManyArgs.where = await autoEmbedWhere(findManyArgs.where ?? {}, ['embedding'], embedder); + } + const client = getClient(); + const result = await client.repository.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 = { + cloneUrl: true, + createdAt: true, + createdBy: true, + createdByPrincipal: true, + databaseId: true, + defaultBranch: true, + description: true, + embedding: true, + externalId: true, + id: true, + isArchived: true, + metadata: true, + name: true, + ownerId: true, + provider: true, + slug: true, + updatedAt: true, + updatedBy: true, + updatedByPrincipal: true, + visibility: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: RepositorySelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.repository.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 handleSearch(argv: Partial>, _prompter: Inquirerer) { + try { + const query = Array.isArray(argv._) && argv._.length > 0 ? String(argv._[0]) : undefined; + if (!query) { + console.error('Error: search requires a argument'); + process.exit(1); + } + const searchWhere = { + embedding: { + vector: query, + }, + trgmCloneUrl: { + value: query, + threshold: 0.3, + }, + trgmDefaultBranch: { + value: query, + threshold: 0.3, + }, + trgmDescription: { + value: query, + threshold: 0.3, + }, + trgmExternalId: { + value: query, + threshold: 0.3, + }, + trgmName: { + value: query, + threshold: 0.3, + }, + trgmProvider: { + value: query, + threshold: 0.3, + }, + search: { + query, + }, + trgmSlug: { + value: query, + threshold: 0.3, + }, + trgmVisibility: { + value: query, + threshold: 0.3, + }, + }; + if (argv['auto-embed']) { + const embedder = resolveEmbedder(); + if (!embedder) { + console.error( + '--auto-embed requires an embedder. Set EMBEDDER_PROVIDER=ollama (and optionally EMBEDDER_MODEL, EMBEDDER_BASE_URL).' + ); + process.exit(1); + } + await autoEmbedWhere(searchWhere ?? {}, ['embedding'], embedder); + } + const defaultSelect = { + cloneUrl: true, + createdAt: true, + createdBy: true, + createdByPrincipal: true, + databaseId: true, + defaultBranch: true, + description: true, + embedding: true, + externalId: true, + id: true, + isArchived: true, + metadata: true, + name: true, + ownerId: true, + provider: true, + slug: true, + updatedAt: true, + updatedBy: true, + updatedByPrincipal: true, + visibility: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: RepositorySelect; + } + >(argv, defaultSelect, searchWhere); + const client = getClient(); + const result = await client.repository.findMany(findManyArgs).execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to search records.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleGet(argv: Partial>, prompter: Inquirerer) { + try { + const answers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + ]); + const client = getClient(); + const result = await client.repository + .findOne({ + id: answers.id as string, + select: { + cloneUrl: true, + createdAt: true, + createdBy: true, + createdByPrincipal: true, + databaseId: true, + defaultBranch: true, + description: true, + embedding: true, + externalId: true, + id: true, + isArchived: true, + metadata: true, + name: true, + ownerId: true, + provider: true, + slug: true, + updatedAt: true, + updatedBy: true, + updatedByPrincipal: true, + visibility: 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: 'cloneUrl', + message: 'cloneUrl', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'createdBy', + message: 'createdBy', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: true, + }, + { + type: 'text', + name: 'defaultBranch', + message: 'defaultBranch', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'description', + message: 'description', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'embedding', + message: 'embedding', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'externalId', + message: 'externalId', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'isArchived', + message: 'isArchived', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'metadata', + message: 'metadata', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'name', + message: 'name', + required: true, + }, + { + type: 'text', + name: 'ownerId', + message: 'ownerId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'provider', + message: 'provider', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'slug', + message: 'slug', + required: true, + }, + { + type: 'text', + name: 'updatedBy', + message: 'updatedBy', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'visibility', + message: 'visibility', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as CreateRepositoryInput['repository']; + if (argv['auto-embed']) { + const embedder = resolveEmbedder(); + if (!embedder) { + console.error( + '--auto-embed requires an embedder. Set EMBEDDER_PROVIDER=ollama (and optionally EMBEDDER_MODEL, EMBEDDER_BASE_URL).' + ); + process.exit(1); + } + await autoEmbedInput(cleanedData, ['embedding'], embedder); + } + const client = getClient(); + const result = await client.repository + .create({ + data: { + cloneUrl: cleanedData.cloneUrl, + createdBy: cleanedData.createdBy, + createdByPrincipal: cleanedData.createdByPrincipal, + databaseId: cleanedData.databaseId, + defaultBranch: cleanedData.defaultBranch, + description: cleanedData.description, + embedding: cleanedData.embedding, + externalId: cleanedData.externalId, + isArchived: cleanedData.isArchived, + metadata: cleanedData.metadata, + name: cleanedData.name, + ownerId: cleanedData.ownerId, + provider: cleanedData.provider, + slug: cleanedData.slug, + updatedBy: cleanedData.updatedBy, + updatedByPrincipal: cleanedData.updatedByPrincipal, + visibility: cleanedData.visibility, + }, + select: { + cloneUrl: true, + createdAt: true, + createdBy: true, + createdByPrincipal: true, + databaseId: true, + defaultBranch: true, + description: true, + embedding: true, + externalId: true, + id: true, + isArchived: true, + metadata: true, + name: true, + ownerId: true, + provider: true, + slug: true, + updatedAt: true, + updatedBy: true, + updatedByPrincipal: true, + visibility: 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: 'cloneUrl', + message: 'cloneUrl', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'createdBy', + message: 'createdBy', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: false, + }, + { + type: 'text', + name: 'defaultBranch', + message: 'defaultBranch', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'description', + message: 'description', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'embedding', + message: 'embedding', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'externalId', + message: 'externalId', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'isArchived', + message: 'isArchived', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'metadata', + message: 'metadata', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'name', + message: 'name', + required: false, + }, + { + type: 'text', + name: 'ownerId', + message: 'ownerId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'provider', + message: 'provider', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'slug', + message: 'slug', + required: false, + }, + { + type: 'text', + name: 'updatedBy', + message: 'updatedBy', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'visibility', + message: 'visibility', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as RepositoryPatch; + if (argv['auto-embed']) { + const embedder = resolveEmbedder(); + if (!embedder) { + console.error( + '--auto-embed requires an embedder. Set EMBEDDER_PROVIDER=ollama (and optionally EMBEDDER_MODEL, EMBEDDER_BASE_URL).' + ); + process.exit(1); + } + await autoEmbedInput(cleanedData, ['embedding'], embedder); + } + const client = getClient(); + const result = await client.repository + .update({ + where: { + id: answers.id as string, + }, + data: { + cloneUrl: cleanedData.cloneUrl, + createdBy: cleanedData.createdBy, + createdByPrincipal: cleanedData.createdByPrincipal, + databaseId: cleanedData.databaseId, + defaultBranch: cleanedData.defaultBranch, + description: cleanedData.description, + embedding: cleanedData.embedding, + externalId: cleanedData.externalId, + isArchived: cleanedData.isArchived, + metadata: cleanedData.metadata, + name: cleanedData.name, + ownerId: cleanedData.ownerId, + provider: cleanedData.provider, + slug: cleanedData.slug, + updatedBy: cleanedData.updatedBy, + updatedByPrincipal: cleanedData.updatedByPrincipal, + visibility: cleanedData.visibility, + }, + select: { + cloneUrl: true, + createdAt: true, + createdBy: true, + createdByPrincipal: true, + databaseId: true, + defaultBranch: true, + description: true, + embedding: true, + externalId: true, + id: true, + isArchived: true, + metadata: true, + name: true, + ownerId: true, + provider: true, + slug: true, + updatedAt: true, + updatedBy: true, + updatedByPrincipal: true, + visibility: 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.repository + .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/compute/cli/commands/resource-declared-capacity.ts b/sdk/constructive-cli/src/compute/cli/commands/resource-declared-capacity.ts index 90de479b7f..19c05f90f9 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/resource-declared-capacity.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/resource-declared-capacity.ts @@ -29,6 +29,7 @@ const fieldSchema: FieldSchema = { source: 'string', sourceId: 'uuid', storageSizeBytes: 'int', + storageTotalBytes: 'int', }; const usage = '\nresource-declared-capacity \n\nCommands:\n list List resourceDeclaredCapacity records\n find-first Find first matching resourceDeclaredCapacity record\n create Create a new resourceDeclaredCapacity\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'; @@ -88,6 +89,7 @@ async function handleList(argv: Partial>, _prompter: Inq source: true, sourceId: true, storageSizeBytes: true, + storageTotalBytes: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs< @@ -125,6 +127,7 @@ async function handleFindFirst(argv: Partial>, _prompter source: true, sourceId: true, storageSizeBytes: true, + storageTotalBytes: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs< @@ -227,6 +230,12 @@ async function handleCreate(argv: Partial>, prompter: In message: 'storageSizeBytes', required: true, }, + { + type: 'text', + name: 'storageTotalBytes', + message: 'storageTotalBytes', + required: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined( @@ -250,6 +259,7 @@ async function handleCreate(argv: Partial>, prompter: In source: cleanedData.source, sourceId: cleanedData.sourceId, storageSizeBytes: cleanedData.storageSizeBytes, + storageTotalBytes: cleanedData.storageTotalBytes, }, select: { cpuLimitMillicores: true, @@ -265,6 +275,7 @@ async function handleCreate(argv: Partial>, prompter: In source: true, sourceId: true, storageSizeBytes: true, + storageTotalBytes: true, }, }) .execute(); diff --git a/sdk/constructive-cli/src/compute/cli/commands/resource-definition.ts b/sdk/constructive-cli/src/compute/cli/commands/resource-definition.ts index e045a99374..206a3dfd1e 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/resource-definition.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/resource-definition.ts @@ -19,6 +19,7 @@ const fieldSchema: FieldSchema = { annotations: 'json', createdAt: 'string', createdBy: 'uuid', + createdByPrincipal: 'uuid', databaseId: 'uuid', defaultSpec: 'json', description: 'string', @@ -35,6 +36,7 @@ const fieldSchema: FieldSchema = { stepUpMinAge: 'string', updatedAt: 'string', updatedBy: 'uuid', + updatedByPrincipal: 'uuid', }; const usage = '\nresource-definition \n\nCommands:\n list List resourceDefinition records\n find-first Find first matching resourceDefinition record\n get Get a resourceDefinition by ID\n create Create a new resourceDefinition\n update Update an existing resourceDefinition\n delete Delete a resourceDefinition\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'; @@ -90,6 +92,7 @@ async function handleList(argv: Partial>, _prompter: Inq annotations: true, createdAt: true, createdBy: true, + createdByPrincipal: true, databaseId: true, defaultSpec: true, description: true, @@ -106,6 +109,7 @@ async function handleList(argv: Partial>, _prompter: Inq stepUpMinAge: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs< @@ -133,6 +137,7 @@ async function handleFindFirst(argv: Partial>, _prompter annotations: true, createdAt: true, createdBy: true, + createdByPrincipal: true, databaseId: true, defaultSpec: true, description: true, @@ -149,6 +154,7 @@ async function handleFindFirst(argv: Partial>, _prompter stepUpMinAge: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs< @@ -188,6 +194,7 @@ async function handleGet(argv: Partial>, prompter: Inqui annotations: true, createdAt: true, createdBy: true, + createdByPrincipal: true, databaseId: true, defaultSpec: true, description: true, @@ -204,6 +211,7 @@ async function handleGet(argv: Partial>, prompter: Inqui stepUpMinAge: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }, }) .execute(); @@ -233,6 +241,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'databaseId', @@ -326,6 +341,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined( @@ -338,6 +360,7 @@ async function handleCreate(argv: Partial>, prompter: In data: { annotations: cleanedData.annotations, createdBy: cleanedData.createdBy, + createdByPrincipal: cleanedData.createdByPrincipal, databaseId: cleanedData.databaseId, defaultSpec: cleanedData.defaultSpec, description: cleanedData.description, @@ -352,11 +375,13 @@ async function handleCreate(argv: Partial>, prompter: In slug: cleanedData.slug, stepUpMinAge: cleanedData.stepUpMinAge, updatedBy: cleanedData.updatedBy, + updatedByPrincipal: cleanedData.updatedByPrincipal, }, select: { annotations: true, createdAt: true, createdBy: true, + createdByPrincipal: true, databaseId: true, defaultSpec: true, description: true, @@ -373,6 +398,7 @@ async function handleCreate(argv: Partial>, prompter: In stepUpMinAge: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }, }) .execute(); @@ -408,6 +434,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'databaseId', @@ -501,6 +534,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as ResourceDefinitionPatch; @@ -513,6 +553,7 @@ async function handleUpdate(argv: Partial>, prompter: In data: { annotations: cleanedData.annotations, createdBy: cleanedData.createdBy, + createdByPrincipal: cleanedData.createdByPrincipal, databaseId: cleanedData.databaseId, defaultSpec: cleanedData.defaultSpec, description: cleanedData.description, @@ -527,11 +568,13 @@ async function handleUpdate(argv: Partial>, prompter: In slug: cleanedData.slug, stepUpMinAge: cleanedData.stepUpMinAge, updatedBy: cleanedData.updatedBy, + updatedByPrincipal: cleanedData.updatedByPrincipal, }, select: { annotations: true, createdAt: true, createdBy: true, + createdByPrincipal: true, databaseId: true, defaultSpec: true, description: true, @@ -548,6 +591,7 @@ async function handleUpdate(argv: Partial>, prompter: In stepUpMinAge: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }, }) .execute(); diff --git a/sdk/constructive-cli/src/compute/cli/commands/resource-installation.ts b/sdk/constructive-cli/src/compute/cli/commands/resource-installation.ts index f301b72201..d061cb7959 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/resource-installation.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/resource-installation.ts @@ -19,6 +19,7 @@ const fieldSchema: FieldSchema = { commitId: 'uuid', createdAt: 'string', createdBy: 'uuid', + createdByPrincipal: 'uuid', databaseId: 'uuid', id: 'uuid', name: 'string', @@ -30,6 +31,7 @@ const fieldSchema: FieldSchema = { storeId: 'uuid', updatedAt: 'string', updatedBy: 'uuid', + updatedByPrincipal: 'uuid', }; const usage = '\nresource-installation \n\nCommands:\n list List resourceInstallation records\n find-first Find first matching resourceInstallation record\n get Get a resourceInstallation by ID\n create Create a new resourceInstallation\n update Update an existing resourceInstallation\n delete Delete a resourceInstallation\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'; @@ -85,6 +87,7 @@ async function handleList(argv: Partial>, _prompter: Inq commitId: true, createdAt: true, createdBy: true, + createdByPrincipal: true, databaseId: true, id: true, name: true, @@ -96,6 +99,7 @@ async function handleList(argv: Partial>, _prompter: Inq storeId: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs< @@ -123,6 +127,7 @@ async function handleFindFirst(argv: Partial>, _prompter commitId: true, createdAt: true, createdBy: true, + createdByPrincipal: true, databaseId: true, id: true, name: true, @@ -134,6 +139,7 @@ async function handleFindFirst(argv: Partial>, _prompter storeId: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs< @@ -173,6 +179,7 @@ async function handleGet(argv: Partial>, prompter: Inqui commitId: true, createdAt: true, createdBy: true, + createdByPrincipal: true, databaseId: true, id: true, name: true, @@ -184,6 +191,7 @@ async function handleGet(argv: Partial>, prompter: Inqui storeId: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }, }) .execute(); @@ -213,6 +221,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'databaseId', @@ -272,6 +287,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined( @@ -284,6 +306,7 @@ async function handleCreate(argv: Partial>, prompter: In data: { commitId: cleanedData.commitId, createdBy: cleanedData.createdBy, + createdByPrincipal: cleanedData.createdByPrincipal, databaseId: cleanedData.databaseId, name: cleanedData.name, namespaceId: cleanedData.namespaceId, @@ -293,11 +316,13 @@ async function handleCreate(argv: Partial>, prompter: In status: cleanedData.status, storeId: cleanedData.storeId, updatedBy: cleanedData.updatedBy, + updatedByPrincipal: cleanedData.updatedByPrincipal, }, select: { commitId: true, createdAt: true, createdBy: true, + createdByPrincipal: true, databaseId: true, id: true, name: true, @@ -309,6 +334,7 @@ async function handleCreate(argv: Partial>, prompter: In storeId: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }, }) .execute(); @@ -344,6 +370,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'databaseId', @@ -403,6 +436,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as ResourceInstallationPatch; @@ -415,6 +455,7 @@ async function handleUpdate(argv: Partial>, prompter: In data: { commitId: cleanedData.commitId, createdBy: cleanedData.createdBy, + createdByPrincipal: cleanedData.createdByPrincipal, databaseId: cleanedData.databaseId, name: cleanedData.name, namespaceId: cleanedData.namespaceId, @@ -424,11 +465,13 @@ async function handleUpdate(argv: Partial>, prompter: In status: cleanedData.status, storeId: cleanedData.storeId, updatedBy: cleanedData.updatedBy, + updatedByPrincipal: cleanedData.updatedByPrincipal, }, select: { commitId: true, createdAt: true, createdBy: true, + createdByPrincipal: true, databaseId: true, id: true, name: true, @@ -440,6 +483,7 @@ async function handleUpdate(argv: Partial>, prompter: In storeId: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }, }) .execute(); diff --git a/sdk/constructive-cli/src/compute/cli/commands/resource-observed-storage.ts b/sdk/constructive-cli/src/compute/cli/commands/resource-observed-storage.ts new file mode 100644 index 0000000000..3e7dad23c7 --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/resource-observed-storage.ts @@ -0,0 +1,334 @@ +/** + * CLI commands for ResourceObservedStorage + * @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 { + CreateResourceObservedStorageInput, + ResourceObservedStoragePatch, + ResourceObservedStorageSelect, + ResourceObservedStorageFilter, + ResourceObservedStorageOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + capacity: 'string', + capacityBytes: 'int', + claimName: 'string', + declaredStorageClass: 'string', + declaredStorageSizeBytes: 'int', + declaredStorageTotalBytes: 'int', + installationId: 'uuid', + isBound: 'boolean', + kind: 'string', + namespaceId: 'uuid', + phase: 'string', + requested: 'string', + requestedBytes: 'int', + resourceId: 'uuid', + resourceStatus: 'string', + slug: 'string', + storageClass: 'string', + storageName: 'string', +}; +const usage = + '\nresource-observed-storage \n\nCommands:\n list List resourceObservedStorage records\n find-first Find first matching resourceObservedStorage record\n create Create a new resourceObservedStorage\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', 'create'], + }, + ]); + 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 'create': + return handleCreate(argv, prompter); + default: + console.log(usage); + process.exit(1); + } +} +async function handleList(argv: Partial>, _prompter: Inquirerer) { + try { + const defaultSelect = { + capacity: true, + capacityBytes: true, + claimName: true, + declaredStorageClass: true, + declaredStorageSizeBytes: true, + declaredStorageTotalBytes: true, + installationId: true, + isBound: true, + kind: true, + namespaceId: true, + phase: true, + requested: true, + requestedBytes: true, + resourceId: true, + resourceStatus: true, + slug: true, + storageClass: true, + storageName: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs< + ResourceObservedStorageSelect, + ResourceObservedStorageFilter, + ResourceObservedStorageOrderBy + > & { + select: ResourceObservedStorageSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.resourceObservedStorage.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 = { + capacity: true, + capacityBytes: true, + claimName: true, + declaredStorageClass: true, + declaredStorageSizeBytes: true, + declaredStorageTotalBytes: true, + installationId: true, + isBound: true, + kind: true, + namespaceId: true, + phase: true, + requested: true, + requestedBytes: true, + resourceId: true, + resourceStatus: true, + slug: true, + storageClass: true, + storageName: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs< + ResourceObservedStorageSelect, + ResourceObservedStorageFilter, + ResourceObservedStorageOrderBy + > & { + select: ResourceObservedStorageSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.resourceObservedStorage.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 handleCreate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'capacity', + message: 'capacity', + required: true, + }, + { + type: 'text', + name: 'capacityBytes', + message: 'capacityBytes', + required: true, + }, + { + type: 'text', + name: 'claimName', + message: 'claimName', + required: true, + }, + { + type: 'text', + name: 'declaredStorageClass', + message: 'declaredStorageClass', + required: true, + }, + { + type: 'text', + name: 'declaredStorageSizeBytes', + message: 'declaredStorageSizeBytes', + required: true, + }, + { + type: 'text', + name: 'declaredStorageTotalBytes', + message: 'declaredStorageTotalBytes', + required: true, + }, + { + type: 'text', + name: 'installationId', + message: 'installationId', + required: true, + }, + { + type: 'boolean', + name: 'isBound', + message: 'isBound', + required: true, + }, + { + type: 'text', + name: 'kind', + message: 'kind', + required: true, + }, + { + type: 'text', + name: 'namespaceId', + message: 'namespaceId', + required: true, + }, + { + type: 'text', + name: 'phase', + message: 'phase', + required: true, + }, + { + type: 'text', + name: 'requested', + message: 'requested', + required: true, + }, + { + type: 'text', + name: 'requestedBytes', + message: 'requestedBytes', + required: true, + }, + { + type: 'text', + name: 'resourceId', + message: 'resourceId', + required: true, + }, + { + type: 'text', + name: 'resourceStatus', + message: 'resourceStatus', + required: true, + }, + { + type: 'text', + name: 'slug', + message: 'slug', + required: true, + }, + { + type: 'text', + name: 'storageClass', + message: 'storageClass', + required: true, + }, + { + type: 'text', + name: 'storageName', + message: 'storageName', + required: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateResourceObservedStorageInput['resourceObservedStorage']; + const client = getClient(); + const result = await client.resourceObservedStorage + .create({ + data: { + capacity: cleanedData.capacity, + capacityBytes: cleanedData.capacityBytes, + claimName: cleanedData.claimName, + declaredStorageClass: cleanedData.declaredStorageClass, + declaredStorageSizeBytes: cleanedData.declaredStorageSizeBytes, + declaredStorageTotalBytes: cleanedData.declaredStorageTotalBytes, + installationId: cleanedData.installationId, + isBound: cleanedData.isBound, + kind: cleanedData.kind, + namespaceId: cleanedData.namespaceId, + phase: cleanedData.phase, + requested: cleanedData.requested, + requestedBytes: cleanedData.requestedBytes, + resourceId: cleanedData.resourceId, + resourceStatus: cleanedData.resourceStatus, + slug: cleanedData.slug, + storageClass: cleanedData.storageClass, + storageName: cleanedData.storageName, + }, + select: { + capacity: true, + capacityBytes: true, + claimName: true, + declaredStorageClass: true, + declaredStorageSizeBytes: true, + declaredStorageTotalBytes: true, + installationId: true, + isBound: true, + kind: true, + namespaceId: true, + phase: true, + requested: true, + requestedBytes: true, + resourceId: true, + resourceStatus: true, + slug: true, + storageClass: true, + storageName: 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); + } +} diff --git a/sdk/constructive-cli/src/compute/cli/commands/resource.ts b/sdk/constructive-cli/src/compute/cli/commands/resource.ts index b890b4c7a0..46118319cb 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/resource.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/resource.ts @@ -21,9 +21,11 @@ const fieldSchema: FieldSchema = { cpuRequestMillicores: 'int', createdAt: 'string', createdBy: 'uuid', + createdByPrincipal: 'uuid', databaseId: 'uuid', errorCount: 'int', id: 'uuid', + imageRef: 'string', installationId: 'uuid', integrations: 'string', kind: 'string', @@ -45,8 +47,10 @@ const fieldSchema: FieldSchema = { statusObserved: 'json', storageClass: 'string', storageSizeBytes: 'int', + storageTotalBytes: 'int', updatedAt: 'string', updatedBy: 'uuid', + updatedByPrincipal: 'uuid', }; const usage = '\nresource \n\nCommands:\n list List resource records\n find-first Find first matching resource record\n get Get a resource by ID\n create Create a new resource\n update Update an existing resource\n delete Delete a resource\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'; @@ -102,9 +106,11 @@ async function handleList(argv: Partial>, _prompter: Inq annotations: true, createdAt: true, createdBy: true, + createdByPrincipal: true, databaseId: true, errorCount: true, id: true, + imageRef: true, installationId: true, integrations: true, kind: true, @@ -123,6 +129,7 @@ async function handleList(argv: Partial>, _prompter: Inq statusObserved: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs & { @@ -146,9 +153,11 @@ async function handleFindFirst(argv: Partial>, _prompter annotations: true, createdAt: true, createdBy: true, + createdByPrincipal: true, databaseId: true, errorCount: true, id: true, + imageRef: true, installationId: true, integrations: true, kind: true, @@ -167,6 +176,7 @@ async function handleFindFirst(argv: Partial>, _prompter statusObserved: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs & { @@ -202,9 +212,11 @@ async function handleGet(argv: Partial>, prompter: Inqui annotations: true, createdAt: true, createdBy: true, + createdByPrincipal: true, databaseId: true, errorCount: true, id: true, + imageRef: true, installationId: true, integrations: true, kind: true, @@ -223,6 +235,7 @@ async function handleGet(argv: Partial>, prompter: Inqui statusObserved: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }, }) .execute(); @@ -252,6 +265,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'databaseId', @@ -265,6 +285,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'imageRef', + message: 'imageRef', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'installationId', @@ -380,6 +407,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as CreateResourceInput['resource']; @@ -389,8 +423,10 @@ async function handleCreate(argv: Partial>, prompter: In data: { annotations: cleanedData.annotations, createdBy: cleanedData.createdBy, + createdByPrincipal: cleanedData.createdByPrincipal, databaseId: cleanedData.databaseId, errorCount: cleanedData.errorCount, + imageRef: cleanedData.imageRef, installationId: cleanedData.installationId, integrations: cleanedData.integrations, kind: cleanedData.kind, @@ -408,14 +444,17 @@ async function handleCreate(argv: Partial>, prompter: In status: cleanedData.status, statusObserved: cleanedData.statusObserved, updatedBy: cleanedData.updatedBy, + updatedByPrincipal: cleanedData.updatedByPrincipal, }, select: { annotations: true, createdAt: true, createdBy: true, + createdByPrincipal: true, databaseId: true, errorCount: true, id: true, + imageRef: true, installationId: true, integrations: true, kind: true, @@ -434,6 +473,7 @@ async function handleCreate(argv: Partial>, prompter: In statusObserved: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }, }) .execute(); @@ -469,6 +509,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'databaseId', @@ -482,6 +529,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'imageRef', + message: 'imageRef', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'installationId', @@ -597,6 +651,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as ResourcePatch; @@ -609,8 +670,10 @@ async function handleUpdate(argv: Partial>, prompter: In data: { annotations: cleanedData.annotations, createdBy: cleanedData.createdBy, + createdByPrincipal: cleanedData.createdByPrincipal, databaseId: cleanedData.databaseId, errorCount: cleanedData.errorCount, + imageRef: cleanedData.imageRef, installationId: cleanedData.installationId, integrations: cleanedData.integrations, kind: cleanedData.kind, @@ -628,14 +691,17 @@ async function handleUpdate(argv: Partial>, prompter: In status: cleanedData.status, statusObserved: cleanedData.statusObserved, updatedBy: cleanedData.updatedBy, + updatedByPrincipal: cleanedData.updatedByPrincipal, }, select: { annotations: true, createdAt: true, createdBy: true, + createdByPrincipal: true, databaseId: true, errorCount: true, id: true, + imageRef: true, installationId: true, integrations: true, kind: true, @@ -654,6 +720,7 @@ async function handleUpdate(argv: Partial>, prompter: In statusObserved: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }, }) .execute(); diff --git a/sdk/constructive-cli/src/compute/cli/commands/resources-health.ts b/sdk/constructive-cli/src/compute/cli/commands/resources-health.ts index 778271ff5a..e8f1d1a366 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/resources-health.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/resources-health.ts @@ -21,9 +21,11 @@ const fieldSchema: FieldSchema = { cpuRequestMillicores: 'int', createdAt: 'string', createdBy: 'uuid', + createdByPrincipal: 'uuid', databaseId: 'uuid', errorCount: 'int', id: 'uuid', + imageRef: 'string', installationId: 'uuid', integrations: 'string', kind: 'string', @@ -46,8 +48,10 @@ const fieldSchema: FieldSchema = { statusObserved: 'json', storageClass: 'string', storageSizeBytes: 'int', + storageTotalBytes: 'int', updatedAt: 'string', updatedBy: 'uuid', + updatedByPrincipal: 'uuid', }; const usage = '\nresources-health \n\nCommands:\n list List resourcesHealth records\n find-first Find first matching resourcesHealth record\n create Create a new resourcesHealth\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'; @@ -99,9 +103,11 @@ async function handleList(argv: Partial>, _prompter: Inq cpuRequestMillicores: true, createdAt: true, createdBy: true, + createdByPrincipal: true, databaseId: true, errorCount: true, id: true, + imageRef: true, installationId: true, integrations: true, kind: true, @@ -124,8 +130,10 @@ async function handleList(argv: Partial>, _prompter: Inq statusObserved: true, storageClass: true, storageSizeBytes: true, + storageTotalBytes: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs & { @@ -151,9 +159,11 @@ async function handleFindFirst(argv: Partial>, _prompter cpuRequestMillicores: true, createdAt: true, createdBy: true, + createdByPrincipal: true, databaseId: true, errorCount: true, id: true, + imageRef: true, installationId: true, integrations: true, kind: true, @@ -176,8 +186,10 @@ async function handleFindFirst(argv: Partial>, _prompter statusObserved: true, storageClass: true, storageSizeBytes: true, + storageTotalBytes: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs & { @@ -222,6 +234,12 @@ async function handleCreate(argv: Partial>, prompter: In message: 'createdBy', required: true, }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: true, + }, { type: 'text', name: 'databaseId', @@ -234,6 +252,12 @@ async function handleCreate(argv: Partial>, prompter: In message: 'errorCount', required: true, }, + { + type: 'text', + name: 'imageRef', + message: 'imageRef', + required: true, + }, { type: 'text', name: 'installationId', @@ -366,12 +390,24 @@ async function handleCreate(argv: Partial>, prompter: In message: 'storageSizeBytes', required: true, }, + { + type: 'text', + name: 'storageTotalBytes', + message: 'storageTotalBytes', + required: true, + }, { type: 'text', name: 'updatedBy', message: 'updatedBy', required: true, }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined( @@ -386,8 +422,10 @@ async function handleCreate(argv: Partial>, prompter: In cpuLimitMillicores: cleanedData.cpuLimitMillicores, cpuRequestMillicores: cleanedData.cpuRequestMillicores, createdBy: cleanedData.createdBy, + createdByPrincipal: cleanedData.createdByPrincipal, databaseId: cleanedData.databaseId, errorCount: cleanedData.errorCount, + imageRef: cleanedData.imageRef, installationId: cleanedData.installationId, integrations: cleanedData.integrations, kind: cleanedData.kind, @@ -410,7 +448,9 @@ async function handleCreate(argv: Partial>, prompter: In statusObserved: cleanedData.statusObserved, storageClass: cleanedData.storageClass, storageSizeBytes: cleanedData.storageSizeBytes, + storageTotalBytes: cleanedData.storageTotalBytes, updatedBy: cleanedData.updatedBy, + updatedByPrincipal: cleanedData.updatedByPrincipal, }, select: { annotations: true, @@ -418,9 +458,11 @@ async function handleCreate(argv: Partial>, prompter: In cpuRequestMillicores: true, createdAt: true, createdBy: true, + createdByPrincipal: true, databaseId: true, errorCount: true, id: true, + imageRef: true, installationId: true, integrations: true, kind: true, @@ -443,8 +485,10 @@ async function handleCreate(argv: Partial>, prompter: In statusObserved: true, storageClass: true, storageSizeBytes: true, + storageTotalBytes: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }, }) .execute(); 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/cli/commands/webhook-endpoint.ts b/sdk/constructive-cli/src/compute/cli/commands/webhook-endpoint.ts index 9eb2e627e1..370c865bf5 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/webhook-endpoint.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/webhook-endpoint.ts @@ -19,6 +19,7 @@ const fieldSchema: FieldSchema = { active: 'boolean', createdAt: 'string', createdBy: 'uuid', + createdByPrincipal: 'uuid', databaseId: 'uuid', functionDefinitionId: 'uuid', host: 'string', @@ -30,6 +31,7 @@ const fieldSchema: FieldSchema = { signingSecretName: 'string', updatedAt: 'string', updatedBy: 'uuid', + updatedByPrincipal: 'uuid', }; const usage = '\nwebhook-endpoint \n\nCommands:\n list List webhookEndpoint records\n find-first Find first matching webhookEndpoint record\n get Get a webhookEndpoint by ID\n create Create a new webhookEndpoint\n update Update an existing webhookEndpoint\n delete Delete a webhookEndpoint\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'; @@ -85,6 +87,7 @@ async function handleList(argv: Partial>, _prompter: Inq active: true, createdAt: true, createdBy: true, + createdByPrincipal: true, databaseId: true, functionDefinitionId: true, host: true, @@ -96,6 +99,7 @@ async function handleList(argv: Partial>, _prompter: Inq signingSecretName: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs & { @@ -119,6 +123,7 @@ async function handleFindFirst(argv: Partial>, _prompter active: true, createdAt: true, createdBy: true, + createdByPrincipal: true, databaseId: true, functionDefinitionId: true, host: true, @@ -130,6 +135,7 @@ async function handleFindFirst(argv: Partial>, _prompter signingSecretName: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs & { @@ -165,6 +171,7 @@ async function handleGet(argv: Partial>, prompter: Inqui active: true, createdAt: true, createdBy: true, + createdByPrincipal: true, databaseId: true, functionDefinitionId: true, host: true, @@ -176,6 +183,7 @@ async function handleGet(argv: Partial>, prompter: Inqui signingSecretName: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }, }) .execute(); @@ -205,6 +213,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'databaseId', @@ -262,6 +277,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined( @@ -274,6 +296,7 @@ async function handleCreate(argv: Partial>, prompter: In data: { active: cleanedData.active, createdBy: cleanedData.createdBy, + createdByPrincipal: cleanedData.createdByPrincipal, databaseId: cleanedData.databaseId, functionDefinitionId: cleanedData.functionDefinitionId, host: cleanedData.host, @@ -283,11 +306,13 @@ async function handleCreate(argv: Partial>, prompter: In replayWindowSeconds: cleanedData.replayWindowSeconds, signingSecretName: cleanedData.signingSecretName, updatedBy: cleanedData.updatedBy, + updatedByPrincipal: cleanedData.updatedByPrincipal, }, select: { active: true, createdAt: true, createdBy: true, + createdByPrincipal: true, databaseId: true, functionDefinitionId: true, host: true, @@ -299,6 +324,7 @@ async function handleCreate(argv: Partial>, prompter: In signingSecretName: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }, }) .execute(); @@ -334,6 +360,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'databaseId', @@ -391,6 +424,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as WebhookEndpointPatch; @@ -403,6 +443,7 @@ async function handleUpdate(argv: Partial>, prompter: In data: { active: cleanedData.active, createdBy: cleanedData.createdBy, + createdByPrincipal: cleanedData.createdByPrincipal, databaseId: cleanedData.databaseId, functionDefinitionId: cleanedData.functionDefinitionId, host: cleanedData.host, @@ -412,11 +453,13 @@ async function handleUpdate(argv: Partial>, prompter: In replayWindowSeconds: cleanedData.replayWindowSeconds, signingSecretName: cleanedData.signingSecretName, updatedBy: cleanedData.updatedBy, + updatedByPrincipal: cleanedData.updatedByPrincipal, }, select: { active: true, createdAt: true, createdBy: true, + createdByPrincipal: true, databaseId: true, functionDefinitionId: true, host: true, @@ -428,6 +471,7 @@ async function handleUpdate(argv: Partial>, prompter: In signingSecretName: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }, }) .execute(); diff --git a/sdk/constructive-cli/src/compute/cli/embedder.ts b/sdk/constructive-cli/src/compute/cli/embedder.ts new file mode 100644 index 0000000000..dfd92fb46d --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/embedder.ts @@ -0,0 +1,174 @@ +/** + * CLI embedder — pluggable text-to-vector embedding for search commands + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +// ─── Types ─────────────────────────────────────────────────────────────────── + +export type EmbedderFunction = (text: string) => Promise; + +export interface EmbedderConfig { + /** Provider name: 'ollama' or 'custom' */ + provider: string; + /** Model identifier (e.g. 'nomic-embed-text') */ + model?: string; + /** Base URL for the provider (e.g. 'http://localhost:11434' for Ollama) */ + baseUrl?: string; +} + +// ─── Built-in Ollama Provider ──────────────────────────────────────────────── + +function createOllamaEmbedder( + baseUrl: string = 'http://localhost:11434', + model: string = 'nomic-embed-text' +): EmbedderFunction { + let clientP: + | Promise<{ + generateEmbedding: (text: string, model: string) => Promise<{ embedding: number[] }>; + }> + | undefined; + return async (text: string): Promise => { + if (!clientP) { + clientP = import('@agentic-kit/ollama') + .then((m) => new m.default(baseUrl)) + .catch(() => { + throw new Error( + 'The ollama embedder requires @agentic-kit/ollama. Install it: npm i @agentic-kit/ollama' + ); + }); + } + const client = await clientP; + const result = await client.generateEmbedding(text, model); + return result.embedding; + }; +} + +// ─── Embedder Resolution ───────────────────────────────────────────────────── + +/** + * Resolve an embedder function from environment variables or appstash config. + * + * Resolution order: + * 1. EMBEDDER_PROVIDER env var (+ EMBEDDER_MODEL, EMBEDDER_BASE_URL) + * 2. appstash config keys: embedder.provider, embedder.model, embedder.baseUrl + * 3. null (no embedder configured) + * + * @param store - Optional appstash config store for reading persisted config + * @returns An EmbedderFunction or null if no embedder is configured + */ +export function resolveEmbedder(store?: { + getVar: (key: string) => string | undefined; +}): EmbedderFunction | null { + // 1. Check environment variables first + const envProvider = process.env.EMBEDDER_PROVIDER; + if (envProvider) { + return buildEmbedder({ + provider: envProvider, + model: process.env.EMBEDDER_MODEL, + baseUrl: process.env.EMBEDDER_BASE_URL, + }); + } + + // 2. Check appstash config + if (store) { + const configProvider = store.getVar('embedder.provider'); + if (configProvider) { + return buildEmbedder({ + provider: configProvider, + model: store.getVar('embedder.model'), + baseUrl: store.getVar('embedder.baseUrl'), + }); + } + } + + // 3. No embedder configured + return null; +} + +/** + * Build an embedder function from a config object. + */ +function buildEmbedder(config: EmbedderConfig): EmbedderFunction | null { + switch (config.provider) { + case 'ollama': + return createOllamaEmbedder(config.baseUrl, config.model); + default: + console.error(`Unknown embedder provider: '${config.provider}'. Supported: ollama`); + return null; + } +} + +/** + * Auto-embed text values in vector where-clause fields. + * + * When --auto-embed is passed, any vector field in the where clause that + * contains a text string (instead of a float array) will be converted to + * an embedding vector using the configured embedder. + * + * @param where - The where clause object (mutated in place) + * @param vectorFieldNames - Names of vector embedding fields (e.g. ['vectorEmbedding']) + * @param embedder - The resolved embedder function + * @returns The modified where clause + */ +export async function autoEmbedWhere( + where: T, + vectorFieldNames: string[], + embedder: EmbedderFunction +): Promise { + const rec = where as unknown as Record; + for (const fieldName of vectorFieldNames) { + const fieldValue = rec[fieldName]; + if (fieldValue && typeof fieldValue === 'object') { + const input = fieldValue as Record; + // If 'vector' is a string, embed it + if (typeof input.vector === 'string') { + const text = input.vector; + const embedding = await embedder(text); + input.vector = embedding; + } + } else if (typeof fieldValue === 'string') { + // Shorthand: --where.vectorEmbedding "text" with --auto-embed + // becomes { vector: [embedded], metric: 'COSINE' } + const embedding = await embedder(fieldValue); + rec[fieldName] = { vector: embedding }; + } + } + return where; +} + +/** + * Auto-embed text values in mutation input data (create/update). + * + * When --auto-embed is passed on create or update, any vector field in + * the input data that contains a text string will be converted to an + * embedding vector using the configured embedder. + * + * Usage: + * csdk article create --input.embedding "Machine learning concepts" --auto-embed + * csdk article update --id xxx --input.embedding "Updated description" --auto-embed + * + * This is a CLI-only convenience — in production, database triggers or + * a job queue should handle embedding generation. + * + * @param data - The mutation input data object (mutated in place) + * @param vectorFieldNames - Names of vector embedding fields (e.g. ['embedding']) + * @param embedder - The resolved embedder function + * @returns The modified data object with text values replaced by vectors + */ +export async function autoEmbedInput( + data: T, + vectorFieldNames: string[], + embedder: EmbedderFunction +): Promise { + const rec = data as unknown as Record; + for (const fieldName of vectorFieldNames) { + const fieldValue = rec[fieldName]; + if (typeof fieldValue === 'string') { + // Text string → embed to vector array + const embedding = await embedder(fieldValue); + rec[fieldName] = embedding; + } + // If it's already an array (pre-computed vector), leave it as-is + } + return data; +} diff --git a/sdk/constructive-cli/src/compute/orm/README.md b/sdk/constructive-cli/src/compute/orm/README.md index ec9d2f855d..2ffc724fdb 100644 --- a/sdk/constructive-cli/src/compute/orm/README.md +++ b/sdk/constructive-cli/src/compute/orm/README.md @@ -21,6 +21,19 @@ const db = createClient({ | Model | Operations | |-------|------------| +| `build` | findMany, findOne, create, update, delete | +| `buildStep` | findMany, findOne, create, update, delete | +| `builderBinding` | findMany, findOne, create, update, delete | +| `contentPreset` | findMany, findOne, create, update, delete | +| `databaseFunctionGraph` | findMany, findOne, create, update, delete | +| `databaseFunctionGraphExecution` | findMany, findOne, create, update, delete | +| `databaseFunctionGraphExecutionNodeState` | findMany, findOne, create, update, delete | +| `databaseFunctionGraphExecutionOutput` | findMany, findOne, create, update, delete | +| `databaseGraphCommit` | findMany, findOne, create, update, delete | +| `databaseGraphGetAllTreeNodesRecord` | findMany, findOne, create, update, delete | +| `databaseGraphObject` | findMany, findOne, create, update, delete | +| `databaseGraphRef` | findMany, findOne, create, update, delete | +| `databaseGraphStore` | findMany, findOne, create, update, delete | | `dbPreset` | findMany, findOne, create, update, delete | | `functionApiBinding` | findMany, findOne, create, update, delete | | `functionCapabilityBinding` | findMany, findOne, create, update, delete | @@ -39,6 +52,8 @@ const db = createClient({ | `functionInvocationAttempt` | findMany, findOne, create, update, delete | | `functionInvocation` | findMany, findOne, create, update, delete | | `getAllTreeNodesRecord` | findMany, findOne, create, update, delete | +| `image` | findMany, findOne, create, update, delete | +| `imageGrant` | findMany, findOne, create, update, delete | | `infraCommit` | findMany, findOne, create, update, delete | | `infraGetAllTreeNodesRecord` | findMany, findOne, create, update, delete | | `infraObject` | findMany, findOne, create, update, delete | @@ -47,6 +62,9 @@ const db = createClient({ | `integrationProvider` | findMany, findOne, create, update, delete | | `namespace` | findMany, findOne, create, update, delete | | `namespaceEvent` | findMany, findOne, create, update, delete | +| `platformBuild` | findMany, findOne, create, update, delete | +| `platformBuildStep` | findMany, findOne, create, update, delete | +| `platformBuilderBinding` | findMany, findOne, create, update, delete | | `platformFunctionApiBinding` | findMany, findOne, create, update, delete | | `platformFunctionCapabilityBinding` | findMany, findOne, create, update, delete | | `platformFunctionDefinition` | findMany, findOne, create, update, delete | @@ -55,18 +73,36 @@ const db = createClient({ | `platformFunctionExecutionLog` | findMany, findOne, create, update, delete | | `platformFunctionInvocationAttempt` | findMany, findOne, create, update, delete | | `platformFunctionInvocation` | findMany, findOne, create, update, delete | +| `platformImage` | findMany, findOne, create, update, delete | +| `platformImageGrant` | findMany, findOne, create, update, delete | | `platformInfraCommit` | findMany, findOne, create, update, delete | | `platformInfraGetAllTreeNodesRecord` | findMany, findOne, create, update, delete | | `platformInfraObject` | findMany, findOne, create, update, delete | | `platformInfraRef` | findMany, findOne, create, update, delete | | `platformInfraStore` | findMany, findOne, create, update, delete | +| `platformK8sResourceKind` | findMany, findOne, create, update, delete | +| `platformK8sSpecRule` | findMany, findOne, create, update, delete | | `platformNamespace` | findMany, findOne, create, update, delete | | `platformNamespaceEvent` | findMany, findOne, create, update, delete | +| `platformProposalComment` | findMany, findOne, create, update, delete | +| `platformProposal` | findMany, findOne, create, update, delete | +| `platformProposalFileView` | findMany, findOne, create, update, delete | +| `platformProposalReaction` | findMany, findOne, create, update, delete | +| `platformProposalReview` | findMany, findOne, create, update, delete | +| `platformProposalsChunk` | findMany, findOne, create, update, delete | +| `platformRegistryBinding` | findMany, findOne, create, update, delete | +| `platformRegistry` | findMany, findOne, create, update, delete | +| `platformRegistryGrant` | findMany, findOne, create, update, delete | +| `platformRepository` | findMany, findOne, create, update, delete | +| `platformRepositoryEvent` | findMany, findOne, create, update, delete | +| `platformRepositoryRequiredCheck` | findMany, findOne, create, update, delete | +| `platformRepositoryWorkflow` | findMany, findOne, create, update, delete | | `platformResource` | findMany, findOne, create, update, delete | | `platformResourceDeclaredCapacity` | findMany, findOne, create, update, delete | | `platformResourceDefinition` | findMany, findOne, create, update, delete | | `platformResourceEvent` | findMany, findOne, create, update, delete | | `platformResourceInstallation` | findMany, findOne, create, update, delete | +| `platformResourceObservedStorage` | findMany, findOne, create, update, delete | | `platformResourceStatusCheck` | findMany, findOne, create, update, delete | | `platformResourceUsageLog` | findMany, findOne, create, update, delete | | `platformResourceUsageSummary` | findMany, findOne, create, update, delete | @@ -76,11 +112,25 @@ const db = createClient({ | `platformResourcesResolvedRequirement` | findMany, findOne, create, update, delete | | `platformWebhookEndpoint` | findMany, findOne, create, update, delete | | `platformWebhookEvent` | findMany, findOne, create, update, delete | +| `proposalComment` | findMany, findOne, create, update, delete | +| `proposal` | findMany, findOne, create, update, delete | +| `proposalFileView` | findMany, findOne, create, update, delete | +| `proposalReaction` | findMany, findOne, create, update, delete | +| `proposalReview` | findMany, findOne, create, update, delete | +| `proposalsChunk` | findMany, findOne, create, update, delete | +| `registryBinding` | findMany, findOne, create, update, delete | +| `registry` | findMany, findOne, create, update, delete | +| `registryGrant` | findMany, findOne, create, update, delete | +| `repository` | findMany, findOne, create, update, delete | +| `repositoryEvent` | findMany, findOne, create, update, delete | +| `repositoryRequiredCheck` | findMany, findOne, create, update, delete | +| `repositoryWorkflow` | findMany, findOne, create, update, delete | | `resource` | findMany, findOne, create, update, delete | | `resourceDeclaredCapacity` | findMany, findOne, create, update, delete | | `resourceDefinition` | findMany, findOne, create, update, delete | | `resourceEvent` | findMany, findOne, create, update, delete | | `resourceInstallation` | findMany, findOne, create, update, delete | +| `resourceObservedStorage` | findMany, findOne, create, update, delete | | `resourceStatusCheck` | findMany, findOne, create, update, delete | | `resourceUsageLog` | findMany, findOne, create, update, delete | | `resourceUsageSummary` | findMany, findOne, create, update, delete | @@ -93,1557 +143,1595 @@ const db = createClient({ ## Table Operations -### `db.dbPreset` +### `db.build` -CRUD operations for DbPreset records. +CRUD operations for Build records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `active` | Boolean | Yes | -| `commitId` | UUID | Yes | +| `actorId` | UUID | Yes | +| `attempt` | Int | Yes | +| `commitSha` | String | Yes | +| `conclusion` | String | Yes | | `createdAt` | Datetime | No | -| `definition` | JSON | Yes | -| `description` | String | Yes | +| `createdByPrincipal` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `eventId` | UUID | Yes | +| `finishedAt` | Datetime | Yes | | `id` | UUID | No | -| `label` | String | Yes | -| `modulesHash` | UUID | Yes | -| `slug` | String | Yes | -| `storeId` | UUID | Yes | +| `imageRef` | String | Yes | +| `jobId` | BigInt | Yes | +| `logs` | ConstructiveInternalTypeUpload | Yes | +| `matrixKey` | String | Yes | +| `metadata` | JSON | Yes | +| `proposalId` | UUID | Yes | +| `ref` | String | Yes | +| `repositoryId` | UUID | Yes | +| `startedAt` | Datetime | Yes | +| `status` | String | Yes | | `updatedAt` | Datetime | No | +| `updatedByPrincipal` | UUID | Yes | +| `workflowId` | UUID | Yes | **Operations:** ```typescript -// List all dbPreset records -const items = await db.dbPreset.findMany({ select: { active: true, commitId: true, createdAt: true, definition: true, description: true, id: true, label: true, modulesHash: true, slug: true, storeId: true, updatedAt: true } }).execute(); +// List all build records +const items = await db.build.findMany({ select: { actorId: true, attempt: true, commitSha: true, conclusion: true, createdAt: true, createdByPrincipal: true, databaseId: true, eventId: true, finishedAt: true, id: true, imageRef: true, jobId: true, logs: true, matrixKey: true, metadata: true, proposalId: true, ref: true, repositoryId: true, startedAt: true, status: true, updatedAt: true, updatedByPrincipal: true, workflowId: true } }).execute(); // Get one by id -const item = await db.dbPreset.findOne({ id: '', select: { active: true, commitId: true, createdAt: true, definition: true, description: true, id: true, label: true, modulesHash: true, slug: true, storeId: true, updatedAt: true } }).execute(); +const item = await db.build.findOne({ id: '', select: { actorId: true, attempt: true, commitSha: true, conclusion: true, createdAt: true, createdByPrincipal: true, databaseId: true, eventId: true, finishedAt: true, id: true, imageRef: true, jobId: true, logs: true, matrixKey: true, metadata: true, proposalId: true, ref: true, repositoryId: true, startedAt: true, status: true, updatedAt: true, updatedByPrincipal: true, workflowId: true } }).execute(); // Create -const created = await db.dbPreset.create({ data: { active: '', commitId: '', definition: '', description: '', label: '', modulesHash: '', slug: '', storeId: '' }, select: { id: true } }).execute(); +const created = await db.build.create({ data: { actorId: '', attempt: '', commitSha: '', conclusion: '', createdByPrincipal: '', databaseId: '', eventId: '', finishedAt: '', imageRef: '', jobId: '', logs: '', matrixKey: '', metadata: '', proposalId: '', ref: '', repositoryId: '', startedAt: '', status: '', updatedByPrincipal: '', workflowId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.dbPreset.update({ where: { id: '' }, data: { active: '' }, select: { id: true } }).execute(); +const updated = await db.build.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.dbPreset.delete({ where: { id: '' } }).execute(); +const deleted = await db.build.delete({ where: { id: '' } }).execute(); ``` -### `db.functionApiBinding` +### `db.buildStep` -CRUD operations for FunctionApiBinding records. +CRUD operations for BuildStep records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `alias` | String | Yes | -| `apiId` | UUID | Yes | -| `config` | JSON | Yes | -| `createdAt` | Datetime | No | -| `functionDefinitionId` | UUID | Yes | +| `buildId` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `exitCode` | Int | Yes | +| `finishedAt` | Datetime | Yes | | `id` | UUID | No | -| `updatedAt` | Datetime | No | +| `kind` | String | Yes | +| `logBytes` | BigInt | Yes | +| `logOffset` | BigInt | Yes | +| `name` | String | Yes | +| `parentSeq` | Int | Yes | +| `recordedAt` | Datetime | Yes | +| `seq` | Int | Yes | +| `startedAt` | Datetime | Yes | +| `status` | String | Yes | +| `summary` | JSON | Yes | **Operations:** ```typescript -// List all functionApiBinding records -const items = await db.functionApiBinding.findMany({ select: { alias: true, apiId: true, config: true, createdAt: true, functionDefinitionId: true, id: true, updatedAt: true } }).execute(); +// List all buildStep records +const items = await db.buildStep.findMany({ select: { buildId: true, createdByPrincipal: true, databaseId: true, exitCode: true, finishedAt: true, id: true, kind: true, logBytes: true, logOffset: true, name: true, parentSeq: true, recordedAt: true, seq: true, startedAt: true, status: true, summary: true } }).execute(); // Get one by id -const item = await db.functionApiBinding.findOne({ id: '', select: { alias: true, apiId: true, config: true, createdAt: true, functionDefinitionId: true, id: true, updatedAt: true } }).execute(); +const item = await db.buildStep.findOne({ id: '', select: { buildId: true, createdByPrincipal: true, databaseId: true, exitCode: true, finishedAt: true, id: true, kind: true, logBytes: true, logOffset: true, name: true, parentSeq: true, recordedAt: true, seq: true, startedAt: true, status: true, summary: true } }).execute(); // Create -const created = await db.functionApiBinding.create({ data: { alias: '', apiId: '', config: '', functionDefinitionId: '' }, select: { id: true } }).execute(); +const created = await db.buildStep.create({ data: { buildId: '', createdByPrincipal: '', databaseId: '', exitCode: '', finishedAt: '', kind: '', logBytes: '', logOffset: '', name: '', parentSeq: '', recordedAt: '', seq: '', startedAt: '', status: '', summary: '' }, select: { id: true } }).execute(); // Update -const updated = await db.functionApiBinding.update({ where: { id: '' }, data: { alias: '' }, select: { id: true } }).execute(); +const updated = await db.buildStep.update({ where: { id: '' }, data: { buildId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionApiBinding.delete({ where: { id: '' } }).execute(); +const deleted = await db.buildStep.delete({ where: { id: '' } }).execute(); ``` -### `db.functionCapabilityBinding` +### `db.builderBinding` -CRUD operations for FunctionCapabilityBinding records. +CRUD operations for BuilderBinding records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `bucketId` | UUID | Yes | | `createdAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | | `databaseId` | UUID | Yes | -| `functionId` | UUID | Yes | -| `graphId` | UUID | Yes | | `id` | UUID | No | -| `key` | String | Yes | -| `lifecycle` | String | Yes | +| `installationId` | UUID | Yes | +| `lastError` | String | Yes | | `metadata` | JSON | Yes | +| `namespaceId` | UUID | Yes | +| `observedHost` | String | Yes | +| `realm` | String | Yes | +| `status` | String | Yes | | `updatedAt` | Datetime | No | +| `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | **Operations:** ```typescript -// List all functionCapabilityBinding records -const items = await db.functionCapabilityBinding.findMany({ select: { bucketId: true, createdAt: true, databaseId: true, functionId: true, graphId: true, id: true, key: true, lifecycle: true, metadata: true, updatedAt: true } }).execute(); +// List all builderBinding records +const items = await db.builderBinding.findMany({ select: { createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, id: true, installationId: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.functionCapabilityBinding.findOne({ id: '', select: { bucketId: true, createdAt: true, databaseId: true, functionId: true, graphId: true, id: true, key: true, lifecycle: true, metadata: true, updatedAt: true } }).execute(); +const item = await db.builderBinding.findOne({ id: '', select: { createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, id: true, installationId: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.functionCapabilityBinding.create({ data: { bucketId: '', databaseId: '', functionId: '', graphId: '', key: '', lifecycle: '', metadata: '' }, select: { id: true } }).execute(); +const created = await db.builderBinding.create({ data: { createdBy: '', createdByPrincipal: '', databaseId: '', installationId: '', lastError: '', metadata: '', namespaceId: '', observedHost: '', realm: '', status: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update -const updated = await db.functionCapabilityBinding.update({ where: { id: '' }, data: { bucketId: '' }, select: { id: true } }).execute(); +const updated = await db.builderBinding.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionCapabilityBinding.delete({ where: { id: '' } }).execute(); +const deleted = await db.builderBinding.delete({ where: { id: '' } }).execute(); ``` -### `db.functionDefinition` +### `db.contentPreset` -CRUD operations for FunctionDefinition records. +CRUD operations for ContentPreset records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `accessChannels` | String | Yes | -| `category` | String | Yes | -| `concurrency` | Int | Yes | -| `cpuLimitMillicores` | BigInt | Yes | -| `cpuRequestMillicores` | BigInt | Yes | +| `active` | Boolean | Yes | +| `commitId` | UUID | Yes | | `createdAt` | Datetime | No | -| `databaseId` | UUID | Yes | +| `definition` | JSON | Yes | | `description` | String | Yes | -| `fnCategory` | String | Yes | -| `functionColumns` | JSON | Yes | -| `graphId` | UUID | Yes | -| `icon` | String | Yes | | `id` | UUID | No | -| `image` | String | Yes | -| `inputs` | JSON | Yes | -| `integrations` | String | Yes | -| `isPublished` | Boolean | Yes | -| `maxAttempts` | Int | Yes | -| `memoryLimitBytes` | BigInt | Yes | -| `memoryRequestBytes` | BigInt | Yes | -| `moduleTable` | String | Yes | -| `name` | String | Yes | -| `outputs` | JSON | Yes | -| `payloadArgs` | JSON | Yes | -| `priority` | Int | Yes | -| `props` | JSON | Yes | -| `protected` | Boolean | Yes | -| `publishedAt` | Datetime | Yes | -| `queueName` | String | Yes | -| `requiredBuckets` | String | Yes | -| `requiredConfigs` | ResourceRequirement | Yes | -| `requiredModels` | String | Yes | -| `requiredSecrets` | ResourceRequirement | Yes | -| `resources` | JSON | Yes | -| `runtime` | String | Yes | -| `scaleMax` | Int | Yes | -| `scaleMin` | Int | Yes | -| `targetFunction` | String | Yes | -| `targetSchema` | String | Yes | -| `taskIdentifier` | String | Yes | -| `timeoutSeconds` | Int | Yes | +| `kind` | String | Yes | +| `label` | String | Yes | +| `slug` | String | Yes | +| `storeId` | UUID | Yes | | `updatedAt` | Datetime | No | -| `volatile` | Boolean | Yes | **Operations:** ```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(); +// 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.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.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.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.contentPreset.create({ data: { active: '', commitId: '', definition: '', description: '', kind: '', label: '', slug: '', storeId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.functionDefinition.update({ where: { id: '' }, data: { accessChannels: '' }, select: { id: true } }).execute(); +const updated = await db.contentPreset.update({ where: { id: '' }, data: { active: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionDefinition.delete({ where: { id: '' } }).execute(); +const deleted = await db.contentPreset.delete({ where: { id: '' } }).execute(); ``` -### `db.functionDeployment` +### `db.databaseFunctionGraph` -CRUD operations for FunctionDeployment records. +CRUD operations for DatabaseFunctionGraph records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `annotations` | JSON | Yes | -| `concurrency` | Int | Yes | +| `context` | String | Yes | | `createdAt` | Datetime | No | +| `createdBy` | UUID | Yes | | `databaseId` | UUID | Yes | -| `errorCount` | Int | Yes | -| `handlerName` | String | Yes | +| `definitionsCommitId` | UUID | Yes | +| `description` | String | Yes | | `id` | UUID | No | -| `image` | String | Yes | -| `imageVersion` | String | Yes | -| `labels` | JSON | Yes | -| `lastError` | String | Yes | -| `lastErrorAt` | Datetime | Yes | -| `namespaceId` | UUID | Yes | -| `resources` | JSON | Yes | -| `revision` | Int | Yes | -| `scaleMax` | Int | Yes | -| `scaleMin` | Int | Yes | -| `serviceName` | String | Yes | -| `serviceUrl` | String | Yes | -| `status` | String | Yes | -| `timeoutSeconds` | Int | Yes | +| `isValid` | Boolean | Yes | +| `name` | String | Yes | +| `storeId` | UUID | Yes | | `updatedAt` | Datetime | No | +| `validationErrors` | JSON | Yes | **Operations:** ```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(); +// List all databaseFunctionGraph records +const items = await db.databaseFunctionGraph.findMany({ select: { context: true, createdAt: true, createdBy: true, databaseId: true, definitionsCommitId: true, description: true, id: true, isValid: true, name: true, storeId: true, updatedAt: true, validationErrors: 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.databaseFunctionGraph.findOne({ id: '', select: { context: true, createdAt: true, createdBy: true, databaseId: true, definitionsCommitId: true, description: true, id: true, isValid: true, name: true, storeId: true, updatedAt: true, validationErrors: 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.databaseFunctionGraph.create({ data: { context: '', createdBy: '', databaseId: '', definitionsCommitId: '', description: '', isValid: '', name: '', storeId: '', validationErrors: '' }, select: { id: true } }).execute(); // Update -const updated = await db.functionDeployment.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); +const updated = await db.databaseFunctionGraph.update({ where: { id: '' }, data: { context: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionDeployment.delete({ where: { id: '' } }).execute(); +const deleted = await db.databaseFunctionGraph.delete({ where: { id: '' } }).execute(); ``` -### `db.functionDeploymentEvent` +### `db.databaseFunctionGraphExecution` -CRUD operations for FunctionDeploymentEvent records. +CRUD operations for DatabaseFunctionGraphExecution records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `actorId` | UUID | Yes | -| `createdAt` | Datetime | No | +| `completedAt` | Datetime | Yes | +| `currentWave` | Int | Yes | | `databaseId` | UUID | Yes | -| `deploymentId` | UUID | Yes | -| `eventType` | String | Yes | +| `definitionsCommitId` | UUID | Yes | +| `entityId` | UUID | Yes | +| `entityType` | String | Yes | +| `errorCode` | String | Yes | +| `errorMessage` | String | Yes | +| `executionPlan` | JSON | Yes | +| `graphId` | UUID | Yes | | `id` | UUID | No | -| `message` | String | Yes | -| `metadata` | JSON | Yes | +| `inputPayload` | JSON | Yes | +| `invocationCreatedAt` | Datetime | Yes | +| `invocationId` | UUID | Yes | +| `lastProgressAt` | Datetime | Yes | +| `maxPendingJobs` | Int | Yes | +| `maxTicks` | Int | Yes | +| `nodeOutputs` | JSON | Yes | +| `organizationId` | UUID | Yes | +| `outputNames` | String | Yes | +| `outputNode` | String | Yes | +| `outputPayload` | JSON | Yes | +| `outputPort` | String | Yes | +| `parentExecutionId` | UUID | Yes | +| `parentInvocationId` | UUID | Yes | +| `parentNodeName` | String | Yes | +| `principalId` | UUID | Yes | +| `startedAt` | Datetime | Yes | +| `status` | String | Yes | +| `tickCount` | Int | Yes | +| `timeoutAt` | Datetime | Yes | **Operations:** ```typescript -// List all functionDeploymentEvent records -const items = await db.functionDeploymentEvent.findMany({ select: { actorId: true, createdAt: true, databaseId: true, deploymentId: true, eventType: true, id: true, message: true, metadata: true } }).execute(); +// List all databaseFunctionGraphExecution records +const items = await db.databaseFunctionGraphExecution.findMany({ select: { actorId: true, completedAt: true, currentWave: true, databaseId: true, definitionsCommitId: true, entityId: true, entityType: true, errorCode: true, errorMessage: true, executionPlan: true, graphId: true, id: true, inputPayload: true, invocationCreatedAt: true, invocationId: true, lastProgressAt: true, maxPendingJobs: true, maxTicks: true, nodeOutputs: true, organizationId: true, outputNames: true, outputNode: true, outputPayload: true, outputPort: true, parentExecutionId: true, parentInvocationId: true, parentNodeName: true, principalId: true, startedAt: true, status: true, tickCount: true, timeoutAt: true } }).execute(); // Get one by id -const item = await db.functionDeploymentEvent.findOne({ id: '', select: { actorId: true, createdAt: true, databaseId: true, deploymentId: true, eventType: true, id: true, message: true, metadata: true } }).execute(); +const item = await db.databaseFunctionGraphExecution.findOne({ id: '', select: { actorId: true, completedAt: true, currentWave: true, databaseId: true, definitionsCommitId: true, entityId: true, entityType: true, errorCode: true, errorMessage: true, executionPlan: true, graphId: true, id: true, inputPayload: true, invocationCreatedAt: true, invocationId: true, lastProgressAt: true, maxPendingJobs: true, maxTicks: true, nodeOutputs: true, organizationId: true, outputNames: true, outputNode: true, outputPayload: true, outputPort: true, parentExecutionId: true, parentInvocationId: true, parentNodeName: true, principalId: true, startedAt: true, status: true, tickCount: true, timeoutAt: true } }).execute(); // Create -const created = await db.functionDeploymentEvent.create({ data: { actorId: '', databaseId: '', deploymentId: '', eventType: '', message: '', metadata: '' }, select: { id: true } }).execute(); +const created = await db.databaseFunctionGraphExecution.create({ data: { actorId: '', completedAt: '', currentWave: '', databaseId: '', definitionsCommitId: '', entityId: '', entityType: '', errorCode: '', errorMessage: '', executionPlan: '', graphId: '', inputPayload: '', invocationCreatedAt: '', invocationId: '', lastProgressAt: '', maxPendingJobs: '', maxTicks: '', nodeOutputs: '', organizationId: '', outputNames: '', outputNode: '', outputPayload: '', outputPort: '', parentExecutionId: '', parentInvocationId: '', parentNodeName: '', principalId: '', startedAt: '', status: '', tickCount: '', timeoutAt: '' }, select: { id: true } }).execute(); // Update -const updated = await db.functionDeploymentEvent.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); +const updated = await db.databaseFunctionGraphExecution.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionDeploymentEvent.delete({ where: { id: '' } }).execute(); +const deleted = await db.databaseFunctionGraphExecution.delete({ where: { id: '' } }).execute(); ``` -### `db.functionExecutionLog` +### `db.databaseFunctionGraphExecutionNodeState` -CRUD operations for FunctionExecutionLog records. +CRUD operations for DatabaseFunctionGraphExecutionNodeState records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `actorId` | UUID | Yes | +| `callbackInputs` | JSON | Yes | +| `callbackMeta` | JSON | Yes | +| `callbackTokenHash` | String | Yes | +| `completedAt` | Datetime | Yes | | `createdAt` | Datetime | No | | `databaseId` | UUID | Yes | +| `errorCode` | String | Yes | +| `errorMessage` | String | Yes | +| `executionId` | UUID | Yes | +| `expiryDefaultOutput` | JSON | Yes | +| `expiryEscalatedAt` | Datetime | Yes | +| `expiryPolicy` | String | Yes | | `id` | UUID | No | -| `invocationId` | UUID | Yes | -| `logLevel` | String | Yes | -| `message` | String | Yes | -| `metadata` | JSON | Yes | -| `taskIdentifier` | String | Yes | +| `nodeName` | String | Yes | +| `nodePath` | String | Yes | +| `outputId` | UUID | Yes | +| `startedAt` | Datetime | Yes | +| `status` | String | Yes | +| `waitingDeadlineAt` | Datetime | Yes | +| `waitingOn` | String | Yes | +| `waitingSince` | Datetime | Yes | **Operations:** ```typescript -// List all functionExecutionLog records -const items = await db.functionExecutionLog.findMany({ select: { actorId: true, createdAt: true, databaseId: true, id: true, invocationId: true, logLevel: true, message: true, metadata: true, taskIdentifier: true } }).execute(); +// List all databaseFunctionGraphExecutionNodeState records +const items = await db.databaseFunctionGraphExecutionNodeState.findMany({ select: { callbackInputs: true, callbackMeta: true, callbackTokenHash: true, completedAt: true, createdAt: true, databaseId: true, errorCode: true, errorMessage: true, executionId: true, expiryDefaultOutput: true, expiryEscalatedAt: true, expiryPolicy: true, id: true, nodeName: true, nodePath: true, outputId: true, startedAt: true, status: true, waitingDeadlineAt: true, waitingOn: true, waitingSince: true } }).execute(); // Get one by id -const item = await db.functionExecutionLog.findOne({ id: '', select: { actorId: true, createdAt: true, databaseId: true, id: true, invocationId: true, logLevel: true, message: true, metadata: true, taskIdentifier: true } }).execute(); +const item = await db.databaseFunctionGraphExecutionNodeState.findOne({ id: '', select: { callbackInputs: true, callbackMeta: true, callbackTokenHash: true, completedAt: true, createdAt: true, databaseId: true, errorCode: true, errorMessage: true, executionId: true, expiryDefaultOutput: true, expiryEscalatedAt: true, expiryPolicy: true, id: true, nodeName: true, nodePath: true, outputId: true, startedAt: true, status: true, waitingDeadlineAt: true, waitingOn: true, waitingSince: true } }).execute(); // Create -const created = await db.functionExecutionLog.create({ data: { actorId: '', databaseId: '', invocationId: '', logLevel: '', message: '', metadata: '', taskIdentifier: '' }, select: { id: true } }).execute(); +const created = await db.databaseFunctionGraphExecutionNodeState.create({ data: { callbackInputs: '', callbackMeta: '', callbackTokenHash: '', completedAt: '', databaseId: '', errorCode: '', errorMessage: '', executionId: '', expiryDefaultOutput: '', expiryEscalatedAt: '', expiryPolicy: '', nodeName: '', nodePath: '', outputId: '', startedAt: '', status: '', waitingDeadlineAt: '', waitingOn: '', waitingSince: '' }, select: { id: true } }).execute(); // Update -const updated = await db.functionExecutionLog.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); +const updated = await db.databaseFunctionGraphExecutionNodeState.update({ where: { id: '' }, data: { callbackInputs: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionExecutionLog.delete({ where: { id: '' } }).execute(); +const deleted = await db.databaseFunctionGraphExecutionNodeState.delete({ where: { id: '' } }).execute(); ``` -### `db.functionGraphCommit` +### `db.databaseFunctionGraphExecutionOutput` -CRUD operations for FunctionGraphCommit records. +CRUD operations for DatabaseFunctionGraphExecutionOutput records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `authorId` | UUID | Yes | -| `committerId` | UUID | Yes | -| `date` | Datetime | Yes | +| `createdAt` | Datetime | No | +| `data` | JSON | Yes | +| `databaseId` | UUID | Yes | +| `hash` | Base64EncodedBinary | Yes | | `id` | UUID | No | -| `message` | String | Yes | -| `parentIds` | UUID | Yes | -| `scopeId` | UUID | Yes | -| `storeId` | UUID | Yes | -| `treeId` | UUID | Yes | **Operations:** ```typescript -// List all functionGraphCommit records -const items = await db.functionGraphCommit.findMany({ select: { authorId: true, committerId: true, date: true, id: true, message: true, parentIds: true, scopeId: true, storeId: true, treeId: true } }).execute(); +// List all databaseFunctionGraphExecutionOutput records +const items = await db.databaseFunctionGraphExecutionOutput.findMany({ select: { createdAt: true, data: true, databaseId: true, hash: true, id: true } }).execute(); // Get one by id -const item = await db.functionGraphCommit.findOne({ id: '', select: { authorId: true, committerId: true, date: true, id: true, message: true, parentIds: true, scopeId: true, storeId: true, treeId: true } }).execute(); +const item = await db.databaseFunctionGraphExecutionOutput.findOne({ id: '', select: { createdAt: true, data: true, databaseId: true, hash: true, id: true } }).execute(); // Create -const created = await db.functionGraphCommit.create({ data: { authorId: '', committerId: '', date: '', message: '', parentIds: '', scopeId: '', storeId: '', treeId: '' }, select: { id: true } }).execute(); +const created = await db.databaseFunctionGraphExecutionOutput.create({ data: { data: '', databaseId: '', hash: '' }, select: { id: true } }).execute(); // Update -const updated = await db.functionGraphCommit.update({ where: { id: '' }, data: { authorId: '' }, select: { id: true } }).execute(); +const updated = await db.databaseFunctionGraphExecutionOutput.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionGraphCommit.delete({ where: { id: '' } }).execute(); +const deleted = await db.databaseFunctionGraphExecutionOutput.delete({ where: { id: '' } }).execute(); ``` -### `db.functionGraph` +### `db.databaseGraphCommit` -CRUD operations for FunctionGraph records. +CRUD operations for DatabaseGraphCommit records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `context` | String | Yes | -| `createdAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `definitionsCommitId` | UUID | Yes | -| `description` | String | Yes | +| `authorId` | UUID | Yes | +| `committerId` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `date` | Datetime | Yes | | `id` | UUID | No | -| `isValid` | Boolean | Yes | -| `name` | String | Yes | -| `scopeId` | UUID | Yes | +| `message` | String | Yes | +| `parentIds` | UUID | Yes | | `storeId` | UUID | Yes | -| `updatedAt` | Datetime | No | -| `validationErrors` | JSON | Yes | +| `treeId` | UUID | Yes | **Operations:** ```typescript -// List all functionGraph records -const items = await db.functionGraph.findMany({ select: { context: true, createdAt: true, createdBy: true, definitionsCommitId: true, description: true, id: true, isValid: true, name: true, scopeId: true, storeId: true, updatedAt: true, validationErrors: true } }).execute(); +// List all databaseGraphCommit records +const items = await db.databaseGraphCommit.findMany({ select: { authorId: true, committerId: true, databaseId: true, date: true, id: true, message: true, parentIds: true, storeId: true, treeId: true } }).execute(); // Get one by id -const item = await db.functionGraph.findOne({ id: '', select: { context: true, createdAt: true, createdBy: true, definitionsCommitId: true, description: true, id: true, isValid: true, name: true, scopeId: true, storeId: true, updatedAt: true, validationErrors: true } }).execute(); +const item = await db.databaseGraphCommit.findOne({ id: '', select: { authorId: true, committerId: true, databaseId: true, date: true, id: true, message: true, parentIds: true, storeId: true, treeId: true } }).execute(); // Create -const created = await db.functionGraph.create({ data: { context: '', createdBy: '', definitionsCommitId: '', description: '', isValid: '', name: '', scopeId: '', storeId: '', validationErrors: '' }, select: { id: true } }).execute(); +const created = await db.databaseGraphCommit.create({ data: { authorId: '', committerId: '', databaseId: '', date: '', message: '', parentIds: '', storeId: '', treeId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.functionGraph.update({ where: { id: '' }, data: { context: '' }, select: { id: true } }).execute(); +const updated = await db.databaseGraphCommit.update({ where: { id: '' }, data: { authorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionGraph.delete({ where: { id: '' } }).execute(); +const deleted = await db.databaseGraphCommit.delete({ where: { id: '' } }).execute(); ``` -### `db.functionGraphExecution` +### `db.databaseGraphGetAllTreeNodesRecord` -CRUD operations for FunctionGraphExecution records. +CRUD operations for DatabaseGraphGetAllTreeNodesRecord records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `actorId` | UUID | Yes | -| `completedAt` | Datetime | Yes | -| `currentWave` | Int | Yes | -| `definitionsCommitId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `entityType` | String | Yes | -| `errorCode` | String | Yes | -| `errorMessage` | String | Yes | -| `executionPlan` | JSON | Yes | -| `graphId` | UUID | Yes | -| `id` | UUID | No | -| `inputPayload` | JSON | Yes | -| `invocationCreatedAt` | Datetime | Yes | -| `invocationId` | UUID | Yes | -| `lastProgressAt` | Datetime | Yes | -| `maxPendingJobs` | Int | Yes | -| `maxTicks` | Int | Yes | -| `nodeOutputs` | JSON | Yes | -| `organizationId` | UUID | Yes | -| `outputNames` | String | Yes | -| `outputNode` | String | Yes | -| `outputPayload` | JSON | Yes | -| `outputPort` | String | Yes | -| `parentExecutionId` | UUID | Yes | -| `parentInvocationId` | UUID | Yes | -| `parentNodeName` | String | Yes | -| `principalId` | UUID | Yes | -| `scopeId` | UUID | Yes | -| `startedAt` | Datetime | Yes | -| `status` | String | Yes | -| `tickCount` | Int | Yes | -| `timeoutAt` | Datetime | Yes | +| `data` | JSON | Yes | +| `path` | String | Yes | **Operations:** ```typescript -// List all functionGraphExecution records -const items = await db.functionGraphExecution.findMany({ select: { actorId: true, completedAt: true, currentWave: true, definitionsCommitId: true, entityId: true, entityType: true, errorCode: true, errorMessage: true, executionPlan: true, graphId: true, id: true, inputPayload: true, invocationCreatedAt: true, invocationId: true, lastProgressAt: true, maxPendingJobs: true, maxTicks: true, nodeOutputs: true, organizationId: true, outputNames: true, outputNode: true, outputPayload: true, outputPort: true, parentExecutionId: true, parentInvocationId: true, parentNodeName: true, principalId: true, scopeId: true, startedAt: true, status: true, tickCount: true, timeoutAt: true } }).execute(); +// List all databaseGraphGetAllTreeNodesRecord records +const items = await db.databaseGraphGetAllTreeNodesRecord.findMany({ select: { data: true, path: true } }).execute(); // Get one by id -const item = await db.functionGraphExecution.findOne({ id: '', select: { actorId: true, completedAt: true, currentWave: true, definitionsCommitId: true, entityId: true, entityType: true, errorCode: true, errorMessage: true, executionPlan: true, graphId: true, id: true, inputPayload: true, invocationCreatedAt: true, invocationId: true, lastProgressAt: true, maxPendingJobs: true, maxTicks: true, nodeOutputs: true, organizationId: true, outputNames: true, outputNode: true, outputPayload: true, outputPort: true, parentExecutionId: true, parentInvocationId: true, parentNodeName: true, principalId: true, scopeId: true, startedAt: true, status: true, tickCount: true, timeoutAt: true } }).execute(); +const item = await db.databaseGraphGetAllTreeNodesRecord.findOne({ id: '', select: { data: true, path: true } }).execute(); // Create -const created = await db.functionGraphExecution.create({ data: { actorId: '', completedAt: '', currentWave: '', definitionsCommitId: '', entityId: '', entityType: '', errorCode: '', errorMessage: '', executionPlan: '', graphId: '', inputPayload: '', invocationCreatedAt: '', invocationId: '', lastProgressAt: '', maxPendingJobs: '', maxTicks: '', nodeOutputs: '', organizationId: '', outputNames: '', outputNode: '', outputPayload: '', outputPort: '', parentExecutionId: '', parentInvocationId: '', parentNodeName: '', principalId: '', scopeId: '', startedAt: '', status: '', tickCount: '', timeoutAt: '' }, select: { id: true } }).execute(); +const created = await db.databaseGraphGetAllTreeNodesRecord.create({ data: { data: '', path: '' }, select: { id: true } }).execute(); // Update -const updated = await db.functionGraphExecution.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); +const updated = await db.databaseGraphGetAllTreeNodesRecord.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionGraphExecution.delete({ where: { id: '' } }).execute(); +const deleted = await db.databaseGraphGetAllTreeNodesRecord.delete({ where: { id: '' } }).execute(); ``` -### `db.functionGraphExecutionNodeState` +### `db.databaseGraphObject` -CRUD operations for FunctionGraphExecutionNodeState records. +CRUD operations for DatabaseGraphObject records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `callbackInputs` | JSON | Yes | -| `callbackMeta` | JSON | Yes | -| `callbackTokenHash` | String | Yes | -| `completedAt` | Datetime | Yes | | `createdAt` | Datetime | No | -| `errorCode` | String | Yes | -| `errorMessage` | String | Yes | -| `executionId` | UUID | Yes | +| `data` | JSON | Yes | +| `databaseId` | UUID | Yes | | `id` | UUID | No | -| `nodeName` | String | Yes | -| `nodePath` | String | Yes | -| `outputId` | UUID | Yes | -| `scopeId` | UUID | Yes | -| `startedAt` | Datetime | Yes | -| `status` | String | Yes | +| `kids` | UUID | Yes | +| `ktree` | String | Yes | **Operations:** ```typescript -// List all functionGraphExecutionNodeState records -const items = await db.functionGraphExecutionNodeState.findMany({ select: { callbackInputs: true, callbackMeta: true, callbackTokenHash: true, completedAt: true, createdAt: true, errorCode: true, errorMessage: true, executionId: true, id: true, nodeName: true, nodePath: true, outputId: true, scopeId: true, startedAt: true, status: true } }).execute(); +// List all databaseGraphObject records +const items = await db.databaseGraphObject.findMany({ select: { createdAt: true, data: true, databaseId: true, id: true, kids: true, ktree: true } }).execute(); // Get one by id -const item = await db.functionGraphExecutionNodeState.findOne({ id: '', select: { callbackInputs: true, callbackMeta: true, callbackTokenHash: true, completedAt: true, createdAt: true, errorCode: true, errorMessage: true, executionId: true, id: true, nodeName: true, nodePath: true, outputId: true, scopeId: true, startedAt: true, status: true } }).execute(); +const item = await db.databaseGraphObject.findOne({ id: '', select: { createdAt: true, data: true, databaseId: true, id: true, kids: true, ktree: true } }).execute(); // Create -const created = await db.functionGraphExecutionNodeState.create({ data: { callbackInputs: '', callbackMeta: '', callbackTokenHash: '', completedAt: '', errorCode: '', errorMessage: '', executionId: '', nodeName: '', nodePath: '', outputId: '', scopeId: '', startedAt: '', status: '' }, select: { id: true } }).execute(); +const created = await db.databaseGraphObject.create({ data: { data: '', databaseId: '', kids: '', ktree: '' }, select: { id: true } }).execute(); // Update -const updated = await db.functionGraphExecutionNodeState.update({ where: { id: '' }, data: { callbackInputs: '' }, select: { id: true } }).execute(); +const updated = await db.databaseGraphObject.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionGraphExecutionNodeState.delete({ where: { id: '' } }).execute(); +const deleted = await db.databaseGraphObject.delete({ where: { id: '' } }).execute(); ``` -### `db.functionGraphExecutionOutput` +### `db.databaseGraphRef` -CRUD operations for FunctionGraphExecutionOutput records. +CRUD operations for DatabaseGraphRef records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `createdAt` | Datetime | No | -| `data` | JSON | Yes | -| `hash` | Base64EncodedBinary | Yes | +| `commitId` | UUID | Yes | +| `databaseId` | UUID | Yes | | `id` | UUID | No | -| `scopeId` | UUID | Yes | +| `name` | String | Yes | +| `storeId` | UUID | Yes | **Operations:** ```typescript -// List all functionGraphExecutionOutput records -const items = await db.functionGraphExecutionOutput.findMany({ select: { createdAt: true, data: true, hash: true, id: true, scopeId: true } }).execute(); +// List all databaseGraphRef records +const items = await db.databaseGraphRef.findMany({ select: { commitId: true, databaseId: true, id: true, name: true, storeId: true } }).execute(); // Get one by id -const item = await db.functionGraphExecutionOutput.findOne({ id: '', select: { createdAt: true, data: true, hash: true, id: true, scopeId: true } }).execute(); +const item = await db.databaseGraphRef.findOne({ id: '', select: { commitId: true, databaseId: true, id: true, name: true, storeId: true } }).execute(); // Create -const created = await db.functionGraphExecutionOutput.create({ data: { data: '', hash: '', scopeId: '' }, select: { id: true } }).execute(); +const created = await db.databaseGraphRef.create({ data: { commitId: '', databaseId: '', name: '', storeId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.functionGraphExecutionOutput.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); +const updated = await db.databaseGraphRef.update({ where: { id: '' }, data: { commitId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionGraphExecutionOutput.delete({ where: { id: '' } }).execute(); +const deleted = await db.databaseGraphRef.delete({ where: { id: '' } }).execute(); ``` -### `db.functionGraphObject` +### `db.databaseGraphStore` -CRUD operations for FunctionGraphObject records. +CRUD operations for DatabaseGraphStore records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `createdAt` | Datetime | No | -| `data` | JSON | Yes | +| `databaseId` | UUID | Yes | +| `hash` | UUID | Yes | | `id` | UUID | No | -| `kids` | UUID | Yes | -| `ktree` | String | Yes | -| `scopeId` | UUID | Yes | +| `name` | String | Yes | **Operations:** ```typescript -// List all functionGraphObject records -const items = await db.functionGraphObject.findMany({ select: { createdAt: true, data: true, id: true, kids: true, ktree: true, scopeId: true } }).execute(); +// List all databaseGraphStore records +const items = await db.databaseGraphStore.findMany({ select: { createdAt: true, databaseId: true, hash: true, id: true, name: true } }).execute(); // Get one by id -const item = await db.functionGraphObject.findOne({ id: '', select: { createdAt: true, data: true, id: true, kids: true, ktree: true, scopeId: true } }).execute(); +const item = await db.databaseGraphStore.findOne({ id: '', select: { createdAt: true, databaseId: true, hash: true, id: true, name: true } }).execute(); // Create -const created = await db.functionGraphObject.create({ data: { data: '', kids: '', ktree: '', scopeId: '' }, select: { id: true } }).execute(); +const created = await db.databaseGraphStore.create({ data: { databaseId: '', hash: '', name: '' }, select: { id: true } }).execute(); // Update -const updated = await db.functionGraphObject.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); +const updated = await db.databaseGraphStore.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionGraphObject.delete({ where: { id: '' } }).execute(); +const deleted = await db.databaseGraphStore.delete({ where: { id: '' } }).execute(); ``` -### `db.functionGraphRef` +### `db.dbPreset` -CRUD operations for FunctionGraphRef records. +CRUD operations for DbPreset records. **Fields:** | Field | Type | Editable | |-------|------|----------| +| `active` | Boolean | Yes | | `commitId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `definition` | JSON | Yes | +| `description` | String | Yes | | `id` | UUID | No | -| `name` | String | Yes | -| `scopeId` | UUID | Yes | +| `label` | String | Yes | +| `modulesHash` | UUID | Yes | +| `slug` | String | Yes | | `storeId` | UUID | Yes | +| `updatedAt` | Datetime | No | **Operations:** ```typescript -// List all functionGraphRef records -const items = await db.functionGraphRef.findMany({ select: { commitId: true, id: true, name: true, scopeId: true, storeId: true } }).execute(); +// List all dbPreset records +const items = await db.dbPreset.findMany({ select: { active: true, commitId: true, createdAt: true, definition: true, description: true, id: true, label: true, modulesHash: true, slug: true, storeId: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.functionGraphRef.findOne({ id: '', select: { commitId: true, id: true, name: true, scopeId: true, storeId: true } }).execute(); +const item = await db.dbPreset.findOne({ id: '', select: { active: true, commitId: true, createdAt: true, definition: true, description: true, id: true, label: true, modulesHash: true, slug: true, storeId: true, updatedAt: true } }).execute(); // Create -const created = await db.functionGraphRef.create({ data: { commitId: '', name: '', scopeId: '', storeId: '' }, select: { id: true } }).execute(); +const created = await db.dbPreset.create({ data: { active: '', commitId: '', definition: '', description: '', label: '', modulesHash: '', slug: '', storeId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.functionGraphRef.update({ where: { id: '' }, data: { commitId: '' }, select: { id: true } }).execute(); +const updated = await db.dbPreset.update({ where: { id: '' }, data: { active: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionGraphRef.delete({ where: { id: '' } }).execute(); +const deleted = await db.dbPreset.delete({ where: { id: '' } }).execute(); ``` -### `db.functionGraphStore` +### `db.functionApiBinding` -CRUD operations for FunctionGraphStore records. +CRUD operations for FunctionApiBinding records. **Fields:** | Field | Type | Editable | |-------|------|----------| +| `alias` | String | Yes | +| `apiId` | UUID | Yes | +| `config` | JSON | Yes | | `createdAt` | Datetime | No | -| `hash` | UUID | Yes | +| `functionDefinitionId` | UUID | Yes | | `id` | UUID | No | -| `name` | String | Yes | -| `scopeId` | UUID | Yes | +| `updatedAt` | Datetime | No | **Operations:** ```typescript -// List all functionGraphStore records -const items = await db.functionGraphStore.findMany({ select: { createdAt: true, hash: true, id: true, name: true, scopeId: true } }).execute(); +// List all functionApiBinding records +const items = await db.functionApiBinding.findMany({ select: { alias: true, apiId: true, config: true, createdAt: true, functionDefinitionId: true, id: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.functionGraphStore.findOne({ id: '', select: { createdAt: true, hash: true, id: true, name: true, scopeId: true } }).execute(); +const item = await db.functionApiBinding.findOne({ id: '', select: { alias: true, apiId: true, config: true, createdAt: true, functionDefinitionId: true, id: true, updatedAt: true } }).execute(); // Create -const created = await db.functionGraphStore.create({ data: { hash: '', name: '', scopeId: '' }, select: { id: true } }).execute(); +const created = await db.functionApiBinding.create({ data: { alias: '', apiId: '', config: '', functionDefinitionId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.functionGraphStore.update({ where: { id: '' }, data: { hash: '' }, select: { id: true } }).execute(); +const updated = await db.functionApiBinding.update({ where: { id: '' }, data: { alias: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionGraphStore.delete({ where: { id: '' } }).execute(); +const deleted = await db.functionApiBinding.delete({ where: { id: '' } }).execute(); ``` -### `db.functionInvocationAttempt` +### `db.functionCapabilityBinding` -CRUD operations for FunctionInvocationAttempt records. +CRUD operations for FunctionCapabilityBinding records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `actorId` | UUID | Yes | -| `attempt` | Int | Yes | +| `bucketId` | UUID | Yes | | `createdAt` | Datetime | No | | `databaseId` | UUID | Yes | -| `durationMs` | Int | Yes | -| `error` | String | Yes | -| `errorDetail` | JSON | Yes | +| `functionId` | UUID | Yes | +| `graphId` | UUID | Yes | | `id` | UUID | No | -| `invocationCreatedAt` | Datetime | Yes | -| `invocationId` | UUID | Yes | -| `startedAt` | Datetime | Yes | -| `success` | Boolean | Yes | -| `taskIdentifier` | String | Yes | +| `key` | String | Yes | +| `lifecycle` | String | Yes | +| `metadata` | JSON | Yes | +| `updatedAt` | Datetime | No | **Operations:** ```typescript -// List all functionInvocationAttempt records -const items = await db.functionInvocationAttempt.findMany({ select: { actorId: true, attempt: true, createdAt: true, databaseId: true, durationMs: true, error: true, errorDetail: true, id: true, invocationCreatedAt: true, invocationId: true, startedAt: true, success: true, taskIdentifier: true } }).execute(); +// List all functionCapabilityBinding records +const items = await db.functionCapabilityBinding.findMany({ select: { bucketId: true, createdAt: true, databaseId: true, functionId: true, graphId: true, id: true, key: true, lifecycle: true, metadata: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.functionInvocationAttempt.findOne({ id: '', select: { actorId: true, attempt: true, createdAt: true, databaseId: true, durationMs: true, error: true, errorDetail: true, id: true, invocationCreatedAt: true, invocationId: true, startedAt: true, success: true, taskIdentifier: true } }).execute(); +const item = await db.functionCapabilityBinding.findOne({ id: '', select: { bucketId: true, createdAt: true, databaseId: true, functionId: true, graphId: true, id: true, key: true, lifecycle: true, metadata: true, updatedAt: true } }).execute(); // Create -const created = await db.functionInvocationAttempt.create({ data: { actorId: '', attempt: '', databaseId: '', durationMs: '', error: '', errorDetail: '', invocationCreatedAt: '', invocationId: '', startedAt: '', success: '', taskIdentifier: '' }, select: { id: true } }).execute(); +const created = await db.functionCapabilityBinding.create({ data: { bucketId: '', databaseId: '', functionId: '', graphId: '', key: '', lifecycle: '', metadata: '' }, select: { id: true } }).execute(); // Update -const updated = await db.functionInvocationAttempt.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); +const updated = await db.functionCapabilityBinding.update({ where: { id: '' }, data: { bucketId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionInvocationAttempt.delete({ where: { id: '' } }).execute(); +const deleted = await db.functionCapabilityBinding.delete({ where: { id: '' } }).execute(); ``` -### `db.functionInvocation` +### `db.functionDefinition` -CRUD operations for FunctionInvocation records. +CRUD operations for FunctionDefinition records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `actorId` | UUID | Yes | -| `apiBindingId` | UUID | Yes | -| `channel` | String | Yes | -| `completedAt` | Datetime | Yes | +| `accessChannels` | String | Yes | +| `anonymousCallable` | Boolean | Yes | +| `category` | String | Yes | +| `concurrency` | Int | Yes | +| `cpuLimitMillicores` | BigInt | Yes | +| `cpuRequestMillicores` | BigInt | Yes | | `createdAt` | Datetime | No | +| `createdByPrincipal` | UUID | Yes | | `databaseId` | UUID | Yes | -| `definitionScope` | String | Yes | -| `durationMs` | Int | Yes | -| `error` | String | Yes | -| `functionDefinitionId` | UUID | Yes | -| `graphExecutionId` | UUID | Yes | +| `description` | String | Yes | +| `fnCategory` | String | Yes | +| `functionColumns` | JSON | Yes | +| `graphId` | UUID | Yes | +| `icon` | String | Yes | | `id` | UUID | No | -| `jobId` | BigInt | Yes | -| `parentInvocationId` | UUID | Yes | -| `payload` | JSON | Yes | -| `provenance` | JSON | Yes | -| `result` | JSON | Yes | -| `startedAt` | Datetime | Yes | -| `status` | String | Yes | +| `image` | String | Yes | +| `inputs` | JSON | Yes | +| `integrations` | String | Yes | +| `isPublished` | Boolean | Yes | +| `maxAttempts` | Int | Yes | +| `memoryLimitBytes` | BigInt | Yes | +| `memoryRequestBytes` | BigInt | Yes | +| `moduleTable` | String | Yes | +| `name` | String | Yes | +| `outputs` | JSON | Yes | +| `payloadArgs` | JSON | Yes | +| `priority` | Int | Yes | +| `props` | JSON | Yes | +| `protected` | Boolean | Yes | +| `publishedAt` | Datetime | Yes | +| `queueName` | String | Yes | +| `requiredBuckets` | String | Yes | +| `requiredCapabilities` | JSON | Yes | +| `requiredConfigs` | ResourceRequirement | Yes | +| `requiredModels` | String | Yes | +| `requiredModules` | String | Yes | +| `requiredSecrets` | ResourceRequirement | Yes | +| `resources` | JSON | Yes | +| `runtime` | String | Yes | +| `scaleMax` | Int | Yes | +| `scaleMin` | Int | Yes | +| `targetFunction` | String | Yes | +| `targetSchema` | String | Yes | | `taskIdentifier` | String | Yes | +| `timeoutSeconds` | Int | Yes | +| `updatedAt` | Datetime | No | +| `updatedByPrincipal` | UUID | Yes | +| `volatile` | Boolean | Yes | **Operations:** ```typescript -// List all functionInvocation records -const items = await db.functionInvocation.findMany({ select: { actorId: true, apiBindingId: true, channel: true, completedAt: true, createdAt: true, databaseId: true, definitionScope: true, durationMs: true, error: true, functionDefinitionId: true, graphExecutionId: true, id: true, jobId: true, parentInvocationId: true, payload: true, provenance: true, result: true, startedAt: true, status: true, taskIdentifier: true } }).execute(); +// List all functionDefinition records +const items = await db.functionDefinition.findMany({ select: { accessChannels: true, anonymousCallable: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdByPrincipal: 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, requiredCapabilities: 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, updatedByPrincipal: true, volatile: true } }).execute(); // Get one by id -const item = await db.functionInvocation.findOne({ id: '', select: { actorId: true, apiBindingId: true, channel: true, completedAt: true, createdAt: true, databaseId: true, definitionScope: true, durationMs: true, error: true, functionDefinitionId: true, graphExecutionId: true, id: true, jobId: true, parentInvocationId: true, payload: true, provenance: true, result: true, startedAt: true, status: true, taskIdentifier: true } }).execute(); +const item = await db.functionDefinition.findOne({ id: '', select: { accessChannels: true, anonymousCallable: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdByPrincipal: 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, requiredCapabilities: 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, updatedByPrincipal: true, volatile: true } }).execute(); // Create -const created = await db.functionInvocation.create({ data: { actorId: '', apiBindingId: '', channel: '', completedAt: '', databaseId: '', definitionScope: '', durationMs: '', error: '', functionDefinitionId: '', graphExecutionId: '', jobId: '', parentInvocationId: '', payload: '', provenance: '', result: '', startedAt: '', status: '', taskIdentifier: '' }, select: { id: true } }).execute(); +const created = await db.functionDefinition.create({ data: { accessChannels: '', anonymousCallable: '', category: '', concurrency: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdByPrincipal: '', databaseId: '', description: '', fnCategory: '', functionColumns: '', graphId: '', icon: '', image: '', inputs: '', integrations: '', isPublished: '', maxAttempts: '', memoryLimitBytes: '', memoryRequestBytes: '', moduleTable: '', name: '', outputs: '', payloadArgs: '', priority: '', props: '', protected: '', publishedAt: '', queueName: '', requiredBuckets: '', requiredCapabilities: '', requiredConfigs: '', requiredModels: '', requiredModules: '', requiredSecrets: '', resources: '', runtime: '', scaleMax: '', scaleMin: '', targetFunction: '', targetSchema: '', taskIdentifier: '', timeoutSeconds: '', updatedByPrincipal: '', volatile: '' }, select: { id: true } }).execute(); // Update -const updated = await db.functionInvocation.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); +const updated = await db.functionDefinition.update({ where: { id: '' }, data: { accessChannels: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionInvocation.delete({ where: { id: '' } }).execute(); +const deleted = await db.functionDefinition.delete({ where: { id: '' } }).execute(); ``` -### `db.getAllTreeNodesRecord` +### `db.functionDeployment` -CRUD operations for GetAllTreeNodesRecord records. +CRUD operations for FunctionDeployment records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `data` | JSON | Yes | -| `path` | String | Yes | - -**Operations:** - -```typescript -// List all getAllTreeNodesRecord records -const items = await db.getAllTreeNodesRecord.findMany({ select: { data: true, path: true } }).execute(); +| `annotations` | JSON | Yes | +| `concurrency` | Int | Yes | +| `createdAt` | Datetime | No | +| `createdByPrincipal` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `errorCount` | Int | Yes | +| `handlerName` | String | Yes | +| `id` | UUID | No | +| `image` | String | Yes | +| `imageVersion` | String | Yes | +| `labels` | JSON | Yes | +| `lastError` | String | Yes | +| `lastErrorAt` | Datetime | Yes | +| `namespaceId` | UUID | Yes | +| `realm` | String | Yes | +| `resources` | JSON | Yes | +| `revision` | Int | Yes | +| `scaleMax` | Int | Yes | +| `scaleMin` | Int | Yes | +| `serviceName` | String | Yes | +| `serviceUrl` | String | Yes | +| `status` | String | Yes | +| `timeoutSeconds` | Int | Yes | +| `updatedAt` | Datetime | No | +| `updatedByPrincipal` | UUID | Yes | + +**Operations:** + +```typescript +// List all functionDeployment records +const items = await db.functionDeployment.findMany({ select: { annotations: true, concurrency: true, createdAt: true, createdByPrincipal: 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, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.getAllTreeNodesRecord.findOne({ id: '', select: { data: true, path: true } }).execute(); +const item = await db.functionDeployment.findOne({ id: '', select: { annotations: true, concurrency: true, createdAt: true, createdByPrincipal: 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, updatedByPrincipal: true } }).execute(); // Create -const created = await db.getAllTreeNodesRecord.create({ data: { data: '', path: '' }, select: { id: true } }).execute(); +const created = await db.functionDeployment.create({ data: { annotations: '', concurrency: '', createdByPrincipal: '', databaseId: '', errorCount: '', handlerName: '', image: '', imageVersion: '', labels: '', lastError: '', lastErrorAt: '', namespaceId: '', realm: '', resources: '', revision: '', scaleMax: '', scaleMin: '', serviceName: '', serviceUrl: '', status: '', timeoutSeconds: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update -const updated = await db.getAllTreeNodesRecord.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); +const updated = await db.functionDeployment.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.getAllTreeNodesRecord.delete({ where: { id: '' } }).execute(); +const deleted = await db.functionDeployment.delete({ where: { id: '' } }).execute(); ``` -### `db.infraCommit` +### `db.functionDeploymentEvent` -CRUD operations for InfraCommit records. +CRUD operations for FunctionDeploymentEvent records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `authorId` | UUID | Yes | -| `committerId` | UUID | Yes | +| `actorId` | UUID | Yes | +| `createdAt` | Datetime | No | | `databaseId` | UUID | Yes | -| `date` | Datetime | Yes | +| `deploymentId` | UUID | Yes | +| `eventType` | String | Yes | | `id` | UUID | No | | `message` | String | Yes | -| `parentIds` | UUID | Yes | -| `storeId` | UUID | Yes | -| `treeId` | UUID | Yes | +| `metadata` | JSON | Yes | **Operations:** ```typescript -// List all infraCommit records -const items = await db.infraCommit.findMany({ select: { authorId: true, committerId: true, databaseId: true, date: true, id: true, message: true, parentIds: true, storeId: true, treeId: true } }).execute(); +// List all functionDeploymentEvent records +const items = await db.functionDeploymentEvent.findMany({ select: { actorId: true, createdAt: true, databaseId: true, deploymentId: true, eventType: true, id: true, message: true, metadata: true } }).execute(); // Get one by id -const item = await db.infraCommit.findOne({ id: '', select: { authorId: true, committerId: true, databaseId: true, date: true, id: true, message: true, parentIds: true, storeId: true, treeId: true } }).execute(); +const item = await db.functionDeploymentEvent.findOne({ id: '', select: { actorId: true, createdAt: true, databaseId: true, deploymentId: true, eventType: true, id: true, message: true, metadata: true } }).execute(); // Create -const created = await db.infraCommit.create({ data: { authorId: '', committerId: '', databaseId: '', date: '', message: '', parentIds: '', storeId: '', treeId: '' }, select: { id: true } }).execute(); +const created = await db.functionDeploymentEvent.create({ data: { actorId: '', databaseId: '', deploymentId: '', eventType: '', message: '', metadata: '' }, select: { id: true } }).execute(); // Update -const updated = await db.infraCommit.update({ where: { id: '' }, data: { authorId: '' }, select: { id: true } }).execute(); +const updated = await db.functionDeploymentEvent.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.infraCommit.delete({ where: { id: '' } }).execute(); +const deleted = await db.functionDeploymentEvent.delete({ where: { id: '' } }).execute(); ``` -### `db.infraGetAllTreeNodesRecord` +### `db.functionExecutionLog` -CRUD operations for InfraGetAllTreeNodesRecord records. +CRUD operations for FunctionExecutionLog records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `data` | JSON | Yes | -| `path` | String | Yes | +| `actorId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `databaseId` | UUID | Yes | +| `id` | UUID | No | +| `invocationId` | UUID | Yes | +| `logLevel` | String | Yes | +| `message` | String | Yes | +| `metadata` | JSON | Yes | +| `taskIdentifier` | String | Yes | **Operations:** ```typescript -// List all infraGetAllTreeNodesRecord records -const items = await db.infraGetAllTreeNodesRecord.findMany({ select: { data: true, path: true } }).execute(); +// List all functionExecutionLog records +const items = await db.functionExecutionLog.findMany({ select: { actorId: true, createdAt: true, databaseId: true, id: true, invocationId: true, logLevel: true, message: true, metadata: true, taskIdentifier: true } }).execute(); // Get one by id -const item = await db.infraGetAllTreeNodesRecord.findOne({ id: '', select: { data: true, path: true } }).execute(); +const item = await db.functionExecutionLog.findOne({ id: '', select: { actorId: true, createdAt: true, databaseId: true, id: true, invocationId: true, logLevel: true, message: true, metadata: true, taskIdentifier: true } }).execute(); // Create -const created = await db.infraGetAllTreeNodesRecord.create({ data: { data: '', path: '' }, select: { id: true } }).execute(); +const created = await db.functionExecutionLog.create({ data: { actorId: '', databaseId: '', invocationId: '', logLevel: '', message: '', metadata: '', taskIdentifier: '' }, select: { id: true } }).execute(); // Update -const updated = await db.infraGetAllTreeNodesRecord.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); +const updated = await db.functionExecutionLog.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.infraGetAllTreeNodesRecord.delete({ where: { id: '' } }).execute(); +const deleted = await db.functionExecutionLog.delete({ where: { id: '' } }).execute(); ``` -### `db.infraObject` +### `db.functionGraphCommit` -CRUD operations for InfraObject records. +CRUD operations for FunctionGraphCommit records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `createdAt` | Datetime | No | -| `data` | JSON | Yes | -| `databaseId` | UUID | Yes | +| `authorId` | UUID | Yes | +| `committerId` | UUID | Yes | +| `date` | Datetime | Yes | | `id` | UUID | No | -| `kids` | UUID | Yes | -| `ktree` | String | Yes | +| `message` | String | Yes | +| `parentIds` | UUID | Yes | +| `scopeId` | UUID | Yes | +| `storeId` | UUID | Yes | +| `treeId` | UUID | Yes | **Operations:** ```typescript -// List all infraObject records -const items = await db.infraObject.findMany({ select: { createdAt: true, data: true, databaseId: true, id: true, kids: true, ktree: true } }).execute(); +// List all functionGraphCommit records +const items = await db.functionGraphCommit.findMany({ select: { authorId: true, committerId: true, date: true, id: true, message: true, parentIds: true, scopeId: true, storeId: true, treeId: true } }).execute(); // Get one by id -const item = await db.infraObject.findOne({ id: '', select: { createdAt: true, data: true, databaseId: true, id: true, kids: true, ktree: true } }).execute(); +const item = await db.functionGraphCommit.findOne({ id: '', select: { authorId: true, committerId: true, date: true, id: true, message: true, parentIds: true, scopeId: true, storeId: true, treeId: true } }).execute(); // Create -const created = await db.infraObject.create({ data: { data: '', databaseId: '', kids: '', ktree: '' }, select: { id: true } }).execute(); +const created = await db.functionGraphCommit.create({ data: { authorId: '', committerId: '', date: '', message: '', parentIds: '', scopeId: '', storeId: '', treeId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.infraObject.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); +const updated = await db.functionGraphCommit.update({ where: { id: '' }, data: { authorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.infraObject.delete({ where: { id: '' } }).execute(); +const deleted = await db.functionGraphCommit.delete({ where: { id: '' } }).execute(); ``` -### `db.infraRef` +### `db.functionGraph` -CRUD operations for InfraRef records. +CRUD operations for FunctionGraph records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `commitId` | UUID | Yes | -| `databaseId` | UUID | Yes | +| `context` | String | Yes | +| `createdAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `definitionsCommitId` | UUID | Yes | +| `description` | String | Yes | | `id` | UUID | No | +| `isValid` | Boolean | Yes | | `name` | String | Yes | +| `scopeId` | UUID | Yes | | `storeId` | UUID | Yes | +| `updatedAt` | Datetime | No | +| `validationErrors` | JSON | Yes | **Operations:** ```typescript -// List all infraRef records -const items = await db.infraRef.findMany({ select: { commitId: true, databaseId: true, id: true, name: true, storeId: true } }).execute(); +// List all functionGraph records +const items = await db.functionGraph.findMany({ select: { context: true, createdAt: true, createdBy: true, definitionsCommitId: true, description: true, id: true, isValid: true, name: true, scopeId: true, storeId: true, updatedAt: true, validationErrors: true } }).execute(); // Get one by id -const item = await db.infraRef.findOne({ id: '', select: { commitId: true, databaseId: true, id: true, name: true, storeId: true } }).execute(); +const item = await db.functionGraph.findOne({ id: '', select: { context: true, createdAt: true, createdBy: true, definitionsCommitId: true, description: true, id: true, isValid: true, name: true, scopeId: true, storeId: true, updatedAt: true, validationErrors: true } }).execute(); // Create -const created = await db.infraRef.create({ data: { commitId: '', databaseId: '', name: '', storeId: '' }, select: { id: true } }).execute(); +const created = await db.functionGraph.create({ data: { context: '', createdBy: '', definitionsCommitId: '', description: '', isValid: '', name: '', scopeId: '', storeId: '', validationErrors: '' }, select: { id: true } }).execute(); // Update -const updated = await db.infraRef.update({ where: { id: '' }, data: { commitId: '' }, select: { id: true } }).execute(); +const updated = await db.functionGraph.update({ where: { id: '' }, data: { context: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.infraRef.delete({ where: { id: '' } }).execute(); +const deleted = await db.functionGraph.delete({ where: { id: '' } }).execute(); ``` -### `db.infraStore` +### `db.functionGraphExecution` -CRUD operations for InfraStore records. +CRUD operations for FunctionGraphExecution records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `createdAt` | Datetime | No | -| `databaseId` | UUID | Yes | -| `hash` | UUID | Yes | +| `actorId` | UUID | Yes | +| `completedAt` | Datetime | Yes | +| `currentWave` | Int | Yes | +| `definitionsCommitId` | UUID | Yes | +| `entityId` | UUID | Yes | +| `entityType` | String | Yes | +| `errorCode` | String | Yes | +| `errorMessage` | String | Yes | +| `executionPlan` | JSON | Yes | +| `graphId` | UUID | Yes | | `id` | UUID | No | -| `name` | String | Yes | +| `inputPayload` | JSON | Yes | +| `invocationCreatedAt` | Datetime | Yes | +| `invocationId` | UUID | Yes | +| `lastProgressAt` | Datetime | Yes | +| `maxPendingJobs` | Int | Yes | +| `maxTicks` | Int | Yes | +| `nodeOutputs` | JSON | Yes | +| `organizationId` | UUID | Yes | +| `outputNames` | String | Yes | +| `outputNode` | String | Yes | +| `outputPayload` | JSON | Yes | +| `outputPort` | String | Yes | +| `parentExecutionId` | UUID | Yes | +| `parentInvocationId` | UUID | Yes | +| `parentNodeName` | String | Yes | +| `principalId` | UUID | Yes | +| `scopeId` | UUID | Yes | +| `startedAt` | Datetime | Yes | +| `status` | String | Yes | +| `tickCount` | Int | Yes | +| `timeoutAt` | Datetime | Yes | **Operations:** ```typescript -// List all infraStore records -const items = await db.infraStore.findMany({ select: { createdAt: true, databaseId: true, hash: true, id: true, name: true } }).execute(); +// List all functionGraphExecution records +const items = await db.functionGraphExecution.findMany({ select: { actorId: true, completedAt: true, currentWave: true, definitionsCommitId: true, entityId: true, entityType: true, errorCode: true, errorMessage: true, executionPlan: true, graphId: true, id: true, inputPayload: true, invocationCreatedAt: true, invocationId: true, lastProgressAt: true, maxPendingJobs: true, maxTicks: true, nodeOutputs: true, organizationId: true, outputNames: true, outputNode: true, outputPayload: true, outputPort: true, parentExecutionId: true, parentInvocationId: true, parentNodeName: true, principalId: true, scopeId: true, startedAt: true, status: true, tickCount: true, timeoutAt: true } }).execute(); // Get one by id -const item = await db.infraStore.findOne({ id: '', select: { createdAt: true, databaseId: true, hash: true, id: true, name: true } }).execute(); +const item = await db.functionGraphExecution.findOne({ id: '', select: { actorId: true, completedAt: true, currentWave: true, definitionsCommitId: true, entityId: true, entityType: true, errorCode: true, errorMessage: true, executionPlan: true, graphId: true, id: true, inputPayload: true, invocationCreatedAt: true, invocationId: true, lastProgressAt: true, maxPendingJobs: true, maxTicks: true, nodeOutputs: true, organizationId: true, outputNames: true, outputNode: true, outputPayload: true, outputPort: true, parentExecutionId: true, parentInvocationId: true, parentNodeName: true, principalId: true, scopeId: true, startedAt: true, status: true, tickCount: true, timeoutAt: true } }).execute(); // Create -const created = await db.infraStore.create({ data: { databaseId: '', hash: '', name: '' }, select: { id: true } }).execute(); +const created = await db.functionGraphExecution.create({ data: { actorId: '', completedAt: '', currentWave: '', definitionsCommitId: '', entityId: '', entityType: '', errorCode: '', errorMessage: '', executionPlan: '', graphId: '', inputPayload: '', invocationCreatedAt: '', invocationId: '', lastProgressAt: '', maxPendingJobs: '', maxTicks: '', nodeOutputs: '', organizationId: '', outputNames: '', outputNode: '', outputPayload: '', outputPort: '', parentExecutionId: '', parentInvocationId: '', parentNodeName: '', principalId: '', scopeId: '', startedAt: '', status: '', tickCount: '', timeoutAt: '' }, select: { id: true } }).execute(); // Update -const updated = await db.infraStore.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.functionGraphExecution.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.infraStore.delete({ where: { id: '' } }).execute(); +const deleted = await db.functionGraphExecution.delete({ where: { id: '' } }).execute(); ``` -### `db.integrationProvider` +### `db.functionGraphExecutionNodeState` -CRUD operations for IntegrationProvider records. +CRUD operations for FunctionGraphExecutionNodeState records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `brand` | JSON | Yes | -| `category` | String | Yes | +| `callbackInputs` | JSON | Yes | +| `callbackMeta` | JSON | Yes | +| `callbackTokenHash` | String | Yes | +| `completedAt` | Datetime | Yes | | `createdAt` | Datetime | No | -| `description` | String | Yes | -| `icon` | String | Yes | +| `errorCode` | String | Yes | +| `errorMessage` | String | Yes | +| `executionId` | UUID | Yes | +| `expiryDefaultOutput` | JSON | Yes | +| `expiryEscalatedAt` | Datetime | Yes | +| `expiryPolicy` | String | Yes | | `id` | UUID | No | -| `logo` | ConstructiveInternalTypeImage | Yes | -| `name` | String | Yes | -| `requiredConfigs` | ResourceRequirement | Yes | -| `requiredSecrets` | ResourceRequirement | Yes | -| `slug` | String | Yes | -| `updatedAt` | Datetime | No | +| `nodeName` | String | Yes | +| `nodePath` | String | Yes | +| `outputId` | UUID | Yes | +| `scopeId` | UUID | Yes | +| `startedAt` | Datetime | Yes | +| `status` | String | Yes | +| `waitingDeadlineAt` | Datetime | Yes | +| `waitingOn` | String | Yes | +| `waitingSince` | Datetime | Yes | **Operations:** ```typescript -// List all integrationProvider records -const items = await db.integrationProvider.findMany({ select: { brand: true, category: true, createdAt: true, description: true, icon: true, id: true, logo: true, name: true, requiredConfigs: true, requiredSecrets: true, slug: true, updatedAt: true } }).execute(); +// List all functionGraphExecutionNodeState records +const items = await db.functionGraphExecutionNodeState.findMany({ select: { callbackInputs: true, callbackMeta: true, callbackTokenHash: true, completedAt: true, createdAt: true, errorCode: true, errorMessage: true, executionId: true, expiryDefaultOutput: true, expiryEscalatedAt: true, expiryPolicy: true, id: true, nodeName: true, nodePath: true, outputId: true, scopeId: true, startedAt: true, status: true, waitingDeadlineAt: true, waitingOn: true, waitingSince: true } }).execute(); // Get one by id -const item = await db.integrationProvider.findOne({ id: '', select: { brand: true, category: true, createdAt: true, description: true, icon: true, id: true, logo: true, name: true, requiredConfigs: true, requiredSecrets: true, slug: true, updatedAt: true } }).execute(); +const item = await db.functionGraphExecutionNodeState.findOne({ id: '', select: { callbackInputs: true, callbackMeta: true, callbackTokenHash: true, completedAt: true, createdAt: true, errorCode: true, errorMessage: true, executionId: true, expiryDefaultOutput: true, expiryEscalatedAt: true, expiryPolicy: true, id: true, nodeName: true, nodePath: true, outputId: true, scopeId: true, startedAt: true, status: true, waitingDeadlineAt: true, waitingOn: true, waitingSince: true } }).execute(); // Create -const created = await db.integrationProvider.create({ data: { brand: '', category: '', description: '', icon: '', logo: '', name: '', requiredConfigs: '', requiredSecrets: '', slug: '' }, select: { id: true } }).execute(); +const created = await db.functionGraphExecutionNodeState.create({ data: { callbackInputs: '', callbackMeta: '', callbackTokenHash: '', completedAt: '', errorCode: '', errorMessage: '', executionId: '', expiryDefaultOutput: '', expiryEscalatedAt: '', expiryPolicy: '', nodeName: '', nodePath: '', outputId: '', scopeId: '', startedAt: '', status: '', waitingDeadlineAt: '', waitingOn: '', waitingSince: '' }, select: { id: true } }).execute(); // Update -const updated = await db.integrationProvider.update({ where: { id: '' }, data: { brand: '' }, select: { id: true } }).execute(); +const updated = await db.functionGraphExecutionNodeState.update({ where: { id: '' }, data: { callbackInputs: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.integrationProvider.delete({ where: { id: '' } }).execute(); +const deleted = await db.functionGraphExecutionNodeState.delete({ where: { id: '' } }).execute(); ``` -### `db.namespace` +### `db.functionGraphExecutionOutput` -CRUD operations for Namespace records. +CRUD operations for FunctionGraphExecutionOutput records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `annotations` | JSON | Yes | | `createdAt` | Datetime | No | -| `databaseId` | UUID | Yes | -| `description` | String | Yes | +| `data` | JSON | Yes | +| `hash` | Base64EncodedBinary | Yes | | `id` | UUID | No | -| `isActive` | Boolean | Yes | -| `isManaged` | Boolean | Yes | -| `labels` | JSON | Yes | -| `lastError` | String | Yes | -| `name` | String | Yes | -| `namespaceName` | String | Yes | -| `status` | String | Yes | -| `updatedAt` | Datetime | No | +| `scopeId` | UUID | Yes | **Operations:** ```typescript -// List all namespace records -const items = await db.namespace.findMany({ select: { annotations: true, createdAt: true, databaseId: true, description: true, id: true, isActive: true, isManaged: true, labels: true, lastError: true, name: true, namespaceName: true, status: true, updatedAt: true } }).execute(); +// List all functionGraphExecutionOutput records +const items = await db.functionGraphExecutionOutput.findMany({ select: { createdAt: true, data: true, hash: true, id: true, scopeId: true } }).execute(); // Get one by id -const item = await db.namespace.findOne({ id: '', select: { annotations: true, createdAt: true, databaseId: true, description: true, id: true, isActive: true, isManaged: true, labels: true, lastError: true, name: true, namespaceName: true, status: true, updatedAt: true } }).execute(); +const item = await db.functionGraphExecutionOutput.findOne({ id: '', select: { createdAt: true, data: true, hash: true, id: true, scopeId: true } }).execute(); // Create -const created = await db.namespace.create({ data: { annotations: '', databaseId: '', description: '', isActive: '', isManaged: '', labels: '', lastError: '', name: '', namespaceName: '', status: '' }, select: { id: true } }).execute(); +const created = await db.functionGraphExecutionOutput.create({ data: { data: '', hash: '', scopeId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.namespace.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); +const updated = await db.functionGraphExecutionOutput.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.namespace.delete({ where: { id: '' } }).execute(); +const deleted = await db.functionGraphExecutionOutput.delete({ where: { id: '' } }).execute(); ``` -### `db.namespaceEvent` +### `db.functionGraphObject` -CRUD operations for NamespaceEvent records. +CRUD operations for FunctionGraphObject records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `actorId` | UUID | Yes | | `createdAt` | Datetime | No | -| `databaseId` | UUID | Yes | -| `eventType` | String | Yes | +| `data` | JSON | Yes | | `id` | UUID | No | -| `message` | String | Yes | -| `metadata` | JSON | Yes | -| `namespaceId` | UUID | Yes | +| `kids` | UUID | Yes | +| `ktree` | String | Yes | +| `scopeId` | UUID | Yes | **Operations:** ```typescript -// List all namespaceEvent records -const items = await db.namespaceEvent.findMany({ select: { actorId: true, createdAt: true, databaseId: true, eventType: true, id: true, message: true, metadata: true, namespaceId: true } }).execute(); +// List all functionGraphObject records +const items = await db.functionGraphObject.findMany({ select: { createdAt: true, data: true, id: true, kids: true, ktree: true, scopeId: true } }).execute(); // Get one by id -const item = await db.namespaceEvent.findOne({ id: '', select: { actorId: true, createdAt: true, databaseId: true, eventType: true, id: true, message: true, metadata: true, namespaceId: true } }).execute(); +const item = await db.functionGraphObject.findOne({ id: '', select: { createdAt: true, data: true, id: true, kids: true, ktree: true, scopeId: true } }).execute(); // Create -const created = await db.namespaceEvent.create({ data: { actorId: '', databaseId: '', eventType: '', message: '', metadata: '', namespaceId: '' }, select: { id: true } }).execute(); +const created = await db.functionGraphObject.create({ data: { data: '', kids: '', ktree: '', scopeId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.namespaceEvent.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); +const updated = await db.functionGraphObject.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.namespaceEvent.delete({ where: { id: '' } }).execute(); +const deleted = await db.functionGraphObject.delete({ where: { id: '' } }).execute(); ``` -### `db.platformFunctionApiBinding` +### `db.functionGraphRef` -CRUD operations for PlatformFunctionApiBinding records. +CRUD operations for FunctionGraphRef records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `alias` | String | Yes | -| `apiId` | UUID | Yes | -| `config` | JSON | Yes | -| `createdAt` | Datetime | No | -| `functionDefinitionId` | UUID | Yes | +| `commitId` | UUID | Yes | | `id` | UUID | No | -| `updatedAt` | Datetime | No | +| `name` | String | Yes | +| `scopeId` | UUID | Yes | +| `storeId` | UUID | Yes | **Operations:** ```typescript -// List all platformFunctionApiBinding records -const items = await db.platformFunctionApiBinding.findMany({ select: { alias: true, apiId: true, config: true, createdAt: true, functionDefinitionId: true, id: true, updatedAt: true } }).execute(); +// List all functionGraphRef records +const items = await db.functionGraphRef.findMany({ select: { commitId: true, id: true, name: true, scopeId: true, storeId: true } }).execute(); // Get one by id -const item = await db.platformFunctionApiBinding.findOne({ id: '', select: { alias: true, apiId: true, config: true, createdAt: true, functionDefinitionId: true, id: true, updatedAt: true } }).execute(); +const item = await db.functionGraphRef.findOne({ id: '', select: { commitId: true, id: true, name: true, scopeId: true, storeId: true } }).execute(); // Create -const created = await db.platformFunctionApiBinding.create({ data: { alias: '', apiId: '', config: '', functionDefinitionId: '' }, select: { id: true } }).execute(); +const created = await db.functionGraphRef.create({ data: { commitId: '', name: '', scopeId: '', storeId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformFunctionApiBinding.update({ where: { id: '' }, data: { alias: '' }, select: { id: true } }).execute(); +const updated = await db.functionGraphRef.update({ where: { id: '' }, data: { commitId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformFunctionApiBinding.delete({ where: { id: '' } }).execute(); +const deleted = await db.functionGraphRef.delete({ where: { id: '' } }).execute(); ``` -### `db.platformFunctionCapabilityBinding` +### `db.functionGraphStore` -CRUD operations for PlatformFunctionCapabilityBinding records. +CRUD operations for FunctionGraphStore records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `bucketId` | UUID | Yes | | `createdAt` | Datetime | No | -| `functionId` | UUID | Yes | -| `graphId` | UUID | Yes | +| `hash` | UUID | Yes | | `id` | UUID | No | -| `key` | String | Yes | -| `lifecycle` | String | Yes | -| `metadata` | JSON | Yes | -| `updatedAt` | Datetime | No | +| `name` | String | Yes | +| `scopeId` | UUID | Yes | **Operations:** ```typescript -// List all platformFunctionCapabilityBinding records -const items = await db.platformFunctionCapabilityBinding.findMany({ select: { bucketId: true, createdAt: true, functionId: true, graphId: true, id: true, key: true, lifecycle: true, metadata: true, updatedAt: true } }).execute(); +// List all functionGraphStore records +const items = await db.functionGraphStore.findMany({ select: { createdAt: true, hash: true, id: true, name: true, scopeId: true } }).execute(); // Get one by id -const item = await db.platformFunctionCapabilityBinding.findOne({ id: '', select: { bucketId: true, createdAt: true, functionId: true, graphId: true, id: true, key: true, lifecycle: true, metadata: true, updatedAt: true } }).execute(); +const item = await db.functionGraphStore.findOne({ id: '', select: { createdAt: true, hash: true, id: true, name: true, scopeId: true } }).execute(); // Create -const created = await db.platformFunctionCapabilityBinding.create({ data: { bucketId: '', functionId: '', graphId: '', key: '', lifecycle: '', metadata: '' }, select: { id: true } }).execute(); +const created = await db.functionGraphStore.create({ data: { hash: '', name: '', scopeId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformFunctionCapabilityBinding.update({ where: { id: '' }, data: { bucketId: '' }, select: { id: true } }).execute(); +const updated = await db.functionGraphStore.update({ where: { id: '' }, data: { hash: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformFunctionCapabilityBinding.delete({ where: { id: '' } }).execute(); +const deleted = await db.functionGraphStore.delete({ where: { id: '' } }).execute(); ``` -### `db.platformFunctionDefinition` +### `db.functionInvocationAttempt` -CRUD operations for PlatformFunctionDefinition records. +CRUD operations for FunctionInvocationAttempt records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `accessChannels` | String | Yes | -| `billable` | Boolean | Yes | -| `category` | String | Yes | -| `concurrency` | Int | Yes | -| `cpuLimitMillicores` | BigInt | Yes | -| `cpuRequestMillicores` | BigInt | Yes | +| `actorId` | UUID | Yes | +| `attempt` | Int | Yes | | `createdAt` | Datetime | No | -| `description` | String | Yes | -| `fnCategory` | String | Yes | -| `functionColumns` | JSON | Yes | -| `graphId` | UUID | Yes | -| `icon` | String | Yes | +| `databaseId` | UUID | Yes | +| `durationMs` | Int | Yes | +| `error` | String | Yes | +| `errorDetail` | JSON | Yes | | `id` | UUID | No | -| `image` | String | Yes | -| `inputs` | JSON | Yes | -| `integrations` | String | Yes | -| `isPublished` | Boolean | Yes | -| `maxAttempts` | Int | Yes | -| `memoryLimitBytes` | BigInt | Yes | -| `memoryRequestBytes` | BigInt | Yes | -| `moduleTable` | String | Yes | -| `name` | String | Yes | -| `outputs` | JSON | Yes | -| `payloadArgs` | JSON | Yes | -| `priority` | Int | Yes | -| `props` | JSON | Yes | -| `protected` | Boolean | Yes | -| `publishedAt` | Datetime | Yes | -| `queueName` | String | Yes | -| `requiredBuckets` | String | Yes | -| `requiredConfigs` | ResourceRequirement | Yes | -| `requiredModels` | String | Yes | -| `requiredSecrets` | ResourceRequirement | Yes | -| `resources` | JSON | Yes | -| `runtime` | String | Yes | -| `scaleMax` | Int | Yes | -| `scaleMin` | Int | Yes | -| `system` | Boolean | Yes | -| `targetFunction` | String | Yes | -| `targetSchema` | String | Yes | +| `invocationCreatedAt` | Datetime | Yes | +| `invocationId` | UUID | Yes | +| `startedAt` | Datetime | Yes | +| `success` | Boolean | Yes | | `taskIdentifier` | String | Yes | -| `timeoutSeconds` | Int | Yes | -| `updatedAt` | Datetime | No | -| `volatile` | Boolean | Yes | **Operations:** ```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(); +// List all functionInvocationAttempt records +const items = await db.functionInvocationAttempt.findMany({ select: { actorId: true, attempt: true, createdAt: true, databaseId: true, durationMs: true, error: true, errorDetail: true, id: true, invocationCreatedAt: true, invocationId: true, startedAt: true, success: true, taskIdentifier: 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.functionInvocationAttempt.findOne({ id: '', select: { actorId: true, attempt: true, createdAt: true, databaseId: true, durationMs: true, error: true, errorDetail: true, id: true, invocationCreatedAt: true, invocationId: true, startedAt: true, success: true, taskIdentifier: 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.functionInvocationAttempt.create({ data: { actorId: '', attempt: '', databaseId: '', durationMs: '', error: '', errorDetail: '', invocationCreatedAt: '', invocationId: '', startedAt: '', success: '', taskIdentifier: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformFunctionDefinition.update({ where: { id: '' }, data: { accessChannels: '' }, select: { id: true } }).execute(); +const updated = await db.functionInvocationAttempt.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformFunctionDefinition.delete({ where: { id: '' } }).execute(); +const deleted = await db.functionInvocationAttempt.delete({ where: { id: '' } }).execute(); ``` -### `db.platformFunctionDeployment` +### `db.functionInvocation` -CRUD operations for PlatformFunctionDeployment records. +CRUD operations for FunctionInvocation records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `annotations` | JSON | Yes | -| `concurrency` | Int | Yes | +| `actorId` | UUID | Yes | +| `apiBindingId` | UUID | Yes | +| `channel` | String | Yes | +| `completedAt` | Datetime | Yes | | `createdAt` | Datetime | No | -| `errorCount` | Int | Yes | -| `handlerName` | String | Yes | +| `createdByPrincipal` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `definitionScope` | String | Yes | +| `durationMs` | Int | Yes | +| `entityId` | UUID | Yes | +| `entityType` | String | Yes | +| `error` | String | Yes | +| `functionDefinitionId` | UUID | Yes | +| `graphExecutionId` | UUID | Yes | | `id` | UUID | No | -| `image` | String | Yes | -| `imageVersion` | String | Yes | -| `labels` | JSON | Yes | -| `lastError` | String | Yes | -| `lastErrorAt` | Datetime | Yes | -| `namespaceId` | UUID | Yes | -| `resources` | JSON | Yes | -| `revision` | Int | Yes | -| `scaleMax` | Int | Yes | -| `scaleMin` | Int | Yes | -| `serviceName` | String | Yes | -| `serviceUrl` | String | Yes | +| `jobId` | BigInt | Yes | +| `organizationId` | UUID | Yes | +| `parentInvocationId` | UUID | Yes | +| `payload` | JSON | Yes | +| `principalId` | UUID | Yes | +| `provenance` | JSON | Yes | +| `result` | JSON | Yes | +| `startedAt` | Datetime | Yes | | `status` | String | Yes | -| `timeoutSeconds` | Int | Yes | -| `updatedAt` | Datetime | No | +| `taskIdentifier` | String | Yes | **Operations:** ```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(); +// List all functionInvocation records +const items = await db.functionInvocation.findMany({ select: { actorId: true, apiBindingId: true, channel: true, completedAt: true, createdAt: true, createdByPrincipal: true, databaseId: true, definitionScope: true, durationMs: true, entityId: true, entityType: true, error: true, functionDefinitionId: true, graphExecutionId: true, id: true, jobId: true, organizationId: true, parentInvocationId: true, payload: true, principalId: true, provenance: true, result: true, startedAt: true, status: true, taskIdentifier: 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.functionInvocation.findOne({ id: '', select: { actorId: true, apiBindingId: true, channel: true, completedAt: true, createdAt: true, createdByPrincipal: true, databaseId: true, definitionScope: true, durationMs: true, entityId: true, entityType: true, error: true, functionDefinitionId: true, graphExecutionId: true, id: true, jobId: true, organizationId: true, parentInvocationId: true, payload: true, principalId: true, provenance: true, result: true, startedAt: true, status: true, taskIdentifier: 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.functionInvocation.create({ data: { actorId: '', apiBindingId: '', channel: '', completedAt: '', createdByPrincipal: '', databaseId: '', definitionScope: '', durationMs: '', entityId: '', entityType: '', error: '', functionDefinitionId: '', graphExecutionId: '', jobId: '', organizationId: '', parentInvocationId: '', payload: '', principalId: '', provenance: '', result: '', startedAt: '', status: '', taskIdentifier: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformFunctionDeployment.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); +const updated = await db.functionInvocation.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformFunctionDeployment.delete({ where: { id: '' } }).execute(); +const deleted = await db.functionInvocation.delete({ where: { id: '' } }).execute(); ``` -### `db.platformFunctionDeploymentEvent` +### `db.getAllTreeNodesRecord` -CRUD operations for PlatformFunctionDeploymentEvent records. +CRUD operations for GetAllTreeNodesRecord records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `actorId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `deploymentId` | UUID | Yes | -| `eventType` | String | Yes | -| `id` | UUID | No | -| `message` | String | Yes | -| `metadata` | JSON | Yes | +| `data` | JSON | Yes | +| `path` | String | Yes | **Operations:** ```typescript -// List all platformFunctionDeploymentEvent records -const items = await db.platformFunctionDeploymentEvent.findMany({ select: { actorId: true, createdAt: true, deploymentId: true, eventType: true, id: true, message: true, metadata: true } }).execute(); +// List all getAllTreeNodesRecord records +const items = await db.getAllTreeNodesRecord.findMany({ select: { data: true, path: true } }).execute(); // Get one by id -const item = await db.platformFunctionDeploymentEvent.findOne({ id: '', select: { actorId: true, createdAt: true, deploymentId: true, eventType: true, id: true, message: true, metadata: true } }).execute(); +const item = await db.getAllTreeNodesRecord.findOne({ id: '', select: { data: true, path: true } }).execute(); // Create -const created = await db.platformFunctionDeploymentEvent.create({ data: { actorId: '', deploymentId: '', eventType: '', message: '', metadata: '' }, select: { id: true } }).execute(); +const created = await db.getAllTreeNodesRecord.create({ data: { data: '', path: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformFunctionDeploymentEvent.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); +const updated = await db.getAllTreeNodesRecord.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformFunctionDeploymentEvent.delete({ where: { id: '' } }).execute(); +const deleted = await db.getAllTreeNodesRecord.delete({ where: { id: '' } }).execute(); ``` -### `db.platformFunctionExecutionLog` +### `db.image` -CRUD operations for PlatformFunctionExecutionLog records. +CRUD operations for Image records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `actorId` | UUID | Yes | | `createdAt` | Datetime | No | +| `createdByPrincipal` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `description` | String | Yes | +| `digest` | String | Yes | +| `expiresAt` | Datetime | Yes | | `id` | UUID | No | -| `invocationId` | UUID | Yes | -| `logLevel` | String | Yes | -| `message` | String | Yes | +| `isPublished` | Boolean | Yes | +| `labels` | JSON | Yes | | `metadata` | JSON | Yes | -| `taskIdentifier` | String | Yes | +| `name` | String | Yes | +| `ownerId` | UUID | Yes | +| `platformOnly` | Boolean | Yes | +| `registryHost` | String | Yes | +| `repository` | String | Yes | +| `runtime` | String | Yes | +| `tag` | String | Yes | +| `updatedAt` | Datetime | No | +| `updatedByPrincipal` | UUID | Yes | **Operations:** ```typescript -// List all platformFunctionExecutionLog records -const items = await db.platformFunctionExecutionLog.findMany({ select: { actorId: true, createdAt: true, id: true, invocationId: true, logLevel: true, message: true, metadata: true, taskIdentifier: true } }).execute(); +// List all image records +const items = await db.image.findMany({ select: { createdAt: true, createdByPrincipal: true, databaseId: true, description: true, digest: true, expiresAt: true, id: true, isPublished: true, labels: true, metadata: true, name: true, ownerId: true, platformOnly: true, registryHost: true, repository: true, runtime: true, tag: true, updatedAt: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.platformFunctionExecutionLog.findOne({ id: '', select: { actorId: true, createdAt: true, id: true, invocationId: true, logLevel: true, message: true, metadata: true, taskIdentifier: true } }).execute(); +const item = await db.image.findOne({ id: '', select: { createdAt: true, createdByPrincipal: true, databaseId: true, description: true, digest: true, expiresAt: true, id: true, isPublished: true, labels: true, metadata: true, name: true, ownerId: true, platformOnly: true, registryHost: true, repository: true, runtime: true, tag: true, updatedAt: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.platformFunctionExecutionLog.create({ data: { actorId: '', invocationId: '', logLevel: '', message: '', metadata: '', taskIdentifier: '' }, select: { id: true } }).execute(); +const created = await db.image.create({ data: { createdByPrincipal: '', databaseId: '', description: '', digest: '', expiresAt: '', isPublished: '', labels: '', metadata: '', name: '', ownerId: '', platformOnly: '', registryHost: '', repository: '', runtime: '', tag: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformFunctionExecutionLog.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); +const updated = await db.image.update({ where: { id: '' }, data: { createdByPrincipal: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformFunctionExecutionLog.delete({ where: { id: '' } }).execute(); +const deleted = await db.image.delete({ where: { id: '' } }).execute(); ``` -### `db.platformFunctionInvocationAttempt` +### `db.imageGrant` -CRUD operations for PlatformFunctionInvocationAttempt records. +CRUD operations for ImageGrant records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `actorId` | UUID | Yes | -| `attempt` | Int | Yes | +| `actions` | String | Yes | | `createdAt` | Datetime | No | -| `durationMs` | Int | Yes | -| `error` | String | Yes | -| `errorDetail` | JSON | Yes | +| `createdByPrincipal` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `expiresAt` | Datetime | Yes | +| `grantedBy` | UUID | Yes | +| `granteeKey` | UUID | Yes | +| `granteeScope` | String | Yes | | `id` | UUID | No | -| `invocationCreatedAt` | Datetime | Yes | -| `invocationId` | UUID | Yes | -| `startedAt` | Datetime | Yes | -| `success` | Boolean | Yes | -| `taskIdentifier` | String | Yes | +| `imageId` | UUID | Yes | +| `updatedAt` | Datetime | No | +| `updatedByPrincipal` | UUID | Yes | **Operations:** ```typescript -// List all platformFunctionInvocationAttempt records -const items = await db.platformFunctionInvocationAttempt.findMany({ select: { actorId: true, attempt: true, createdAt: true, durationMs: true, error: true, errorDetail: true, id: true, invocationCreatedAt: true, invocationId: true, startedAt: true, success: true, taskIdentifier: true } }).execute(); +// List all imageGrant records +const items = await db.imageGrant.findMany({ select: { actions: true, createdAt: true, createdByPrincipal: true, databaseId: true, expiresAt: true, grantedBy: true, granteeKey: true, granteeScope: true, id: true, imageId: true, updatedAt: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.platformFunctionInvocationAttempt.findOne({ id: '', select: { actorId: true, attempt: true, createdAt: true, durationMs: true, error: true, errorDetail: true, id: true, invocationCreatedAt: true, invocationId: true, startedAt: true, success: true, taskIdentifier: true } }).execute(); +const item = await db.imageGrant.findOne({ id: '', select: { actions: true, createdAt: true, createdByPrincipal: true, databaseId: true, expiresAt: true, grantedBy: true, granteeKey: true, granteeScope: true, id: true, imageId: true, updatedAt: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.platformFunctionInvocationAttempt.create({ data: { actorId: '', attempt: '', durationMs: '', error: '', errorDetail: '', invocationCreatedAt: '', invocationId: '', startedAt: '', success: '', taskIdentifier: '' }, select: { id: true } }).execute(); +const created = await db.imageGrant.create({ data: { actions: '', createdByPrincipal: '', databaseId: '', expiresAt: '', grantedBy: '', granteeKey: '', granteeScope: '', imageId: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformFunctionInvocationAttempt.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); +const updated = await db.imageGrant.update({ where: { id: '' }, data: { actions: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformFunctionInvocationAttempt.delete({ where: { id: '' } }).execute(); +const deleted = await db.imageGrant.delete({ where: { id: '' } }).execute(); ``` -### `db.platformFunctionInvocation` +### `db.infraCommit` -CRUD operations for PlatformFunctionInvocation records. +CRUD operations for InfraCommit records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `actorId` | UUID | Yes | -| `apiBindingId` | UUID | Yes | -| `channel` | String | Yes | -| `completedAt` | Datetime | Yes | -| `createdAt` | Datetime | No | +| `authorId` | UUID | Yes | +| `committerId` | UUID | Yes | | `databaseId` | UUID | Yes | -| `definitionScope` | String | Yes | -| `durationMs` | Int | Yes | -| `error` | String | Yes | -| `functionDefinitionId` | UUID | Yes | -| `graphExecutionId` | UUID | Yes | +| `date` | Datetime | Yes | | `id` | UUID | No | -| `jobId` | BigInt | Yes | -| `parentInvocationId` | UUID | Yes | -| `payload` | JSON | Yes | -| `provenance` | JSON | Yes | -| `result` | JSON | Yes | -| `startedAt` | Datetime | Yes | -| `status` | String | Yes | -| `taskIdentifier` | String | Yes | +| `message` | String | Yes | +| `parentIds` | UUID | Yes | +| `storeId` | UUID | Yes | +| `treeId` | UUID | Yes | **Operations:** ```typescript -// List all platformFunctionInvocation records -const items = await db.platformFunctionInvocation.findMany({ select: { actorId: true, apiBindingId: true, channel: true, completedAt: true, createdAt: true, databaseId: true, definitionScope: true, durationMs: true, error: true, functionDefinitionId: true, graphExecutionId: true, id: true, jobId: true, parentInvocationId: true, payload: true, provenance: true, result: true, startedAt: true, status: true, taskIdentifier: true } }).execute(); +// List all infraCommit records +const items = await db.infraCommit.findMany({ select: { authorId: true, committerId: true, databaseId: true, date: true, id: true, message: true, parentIds: true, storeId: true, treeId: true } }).execute(); // Get one by id -const item = await db.platformFunctionInvocation.findOne({ id: '', select: { actorId: true, apiBindingId: true, channel: true, completedAt: true, createdAt: true, databaseId: true, definitionScope: true, durationMs: true, error: true, functionDefinitionId: true, graphExecutionId: true, id: true, jobId: true, parentInvocationId: true, payload: true, provenance: true, result: true, startedAt: true, status: true, taskIdentifier: true } }).execute(); +const item = await db.infraCommit.findOne({ id: '', select: { authorId: true, committerId: true, databaseId: true, date: true, id: true, message: true, parentIds: true, storeId: true, treeId: true } }).execute(); // Create -const created = await db.platformFunctionInvocation.create({ data: { actorId: '', apiBindingId: '', channel: '', completedAt: '', databaseId: '', definitionScope: '', durationMs: '', error: '', functionDefinitionId: '', graphExecutionId: '', jobId: '', parentInvocationId: '', payload: '', provenance: '', result: '', startedAt: '', status: '', taskIdentifier: '' }, select: { id: true } }).execute(); +const created = await db.infraCommit.create({ data: { authorId: '', committerId: '', databaseId: '', date: '', message: '', parentIds: '', storeId: '', treeId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformFunctionInvocation.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); +const updated = await db.infraCommit.update({ where: { id: '' }, data: { authorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformFunctionInvocation.delete({ where: { id: '' } }).execute(); +const deleted = await db.infraCommit.delete({ where: { id: '' } }).execute(); ``` -### `db.platformInfraCommit` +### `db.infraGetAllTreeNodesRecord` -CRUD operations for PlatformInfraCommit records. +CRUD operations for InfraGetAllTreeNodesRecord records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `authorId` | UUID | Yes | -| `committerId` | UUID | Yes | -| `date` | Datetime | Yes | -| `id` | UUID | No | -| `message` | String | Yes | -| `parentIds` | UUID | Yes | -| `scopeId` | UUID | Yes | -| `storeId` | UUID | Yes | -| `treeId` | UUID | Yes | +| `data` | JSON | Yes | +| `path` | String | Yes | **Operations:** ```typescript -// List all platformInfraCommit records -const items = await db.platformInfraCommit.findMany({ select: { authorId: true, committerId: true, date: true, id: true, message: true, parentIds: true, scopeId: true, storeId: true, treeId: true } }).execute(); +// List all infraGetAllTreeNodesRecord records +const items = await db.infraGetAllTreeNodesRecord.findMany({ select: { data: true, path: true } }).execute(); // Get one by id -const item = await db.platformInfraCommit.findOne({ id: '', select: { authorId: true, committerId: true, date: true, id: true, message: true, parentIds: true, scopeId: true, storeId: true, treeId: true } }).execute(); +const item = await db.infraGetAllTreeNodesRecord.findOne({ id: '', select: { data: true, path: true } }).execute(); // Create -const created = await db.platformInfraCommit.create({ data: { authorId: '', committerId: '', date: '', message: '', parentIds: '', scopeId: '', storeId: '', treeId: '' }, select: { id: true } }).execute(); +const created = await db.infraGetAllTreeNodesRecord.create({ data: { data: '', path: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformInfraCommit.update({ where: { id: '' }, data: { authorId: '' }, select: { id: true } }).execute(); +const updated = await db.infraGetAllTreeNodesRecord.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformInfraCommit.delete({ where: { id: '' } }).execute(); +const deleted = await db.infraGetAllTreeNodesRecord.delete({ where: { id: '' } }).execute(); ``` -### `db.platformInfraGetAllTreeNodesRecord` +### `db.infraObject` -CRUD operations for PlatformInfraGetAllTreeNodesRecord records. +CRUD operations for InfraObject records. **Fields:** | Field | Type | Editable | |-------|------|----------| +| `createdAt` | Datetime | No | | `data` | JSON | Yes | -| `path` | String | Yes | +| `databaseId` | UUID | Yes | +| `id` | UUID | No | +| `kids` | UUID | Yes | +| `ktree` | String | Yes | **Operations:** ```typescript -// List all platformInfraGetAllTreeNodesRecord records -const items = await db.platformInfraGetAllTreeNodesRecord.findMany({ select: { data: true, path: true } }).execute(); +// List all infraObject records +const items = await db.infraObject.findMany({ select: { createdAt: true, data: true, databaseId: true, id: true, kids: true, ktree: true } }).execute(); // Get one by id -const item = await db.platformInfraGetAllTreeNodesRecord.findOne({ id: '', select: { data: true, path: true } }).execute(); +const item = await db.infraObject.findOne({ id: '', select: { createdAt: true, data: true, databaseId: true, id: true, kids: true, ktree: true } }).execute(); // Create -const created = await db.platformInfraGetAllTreeNodesRecord.create({ data: { data: '', path: '' }, select: { id: true } }).execute(); +const created = await db.infraObject.create({ data: { data: '', databaseId: '', kids: '', ktree: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformInfraGetAllTreeNodesRecord.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); +const updated = await db.infraObject.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformInfraGetAllTreeNodesRecord.delete({ where: { id: '' } }).execute(); +const deleted = await db.infraObject.delete({ where: { id: '' } }).execute(); ``` -### `db.platformInfraObject` +### `db.infraRef` -CRUD operations for PlatformInfraObject records. +CRUD operations for InfraRef records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `createdAt` | Datetime | No | -| `data` | JSON | Yes | +| `commitId` | UUID | Yes | +| `databaseId` | UUID | Yes | | `id` | UUID | No | -| `kids` | UUID | Yes | -| `ktree` | String | Yes | -| `scopeId` | UUID | Yes | +| `name` | String | Yes | +| `storeId` | UUID | Yes | **Operations:** ```typescript -// List all platformInfraObject records -const items = await db.platformInfraObject.findMany({ select: { createdAt: true, data: true, id: true, kids: true, ktree: true, scopeId: true } }).execute(); +// List all infraRef records +const items = await db.infraRef.findMany({ select: { commitId: true, databaseId: true, id: true, name: true, storeId: true } }).execute(); // Get one by id -const item = await db.platformInfraObject.findOne({ id: '', select: { createdAt: true, data: true, id: true, kids: true, ktree: true, scopeId: true } }).execute(); +const item = await db.infraRef.findOne({ id: '', select: { commitId: true, databaseId: true, id: true, name: true, storeId: true } }).execute(); // Create -const created = await db.platformInfraObject.create({ data: { data: '', kids: '', ktree: '', scopeId: '' }, select: { id: true } }).execute(); +const created = await db.infraRef.create({ data: { commitId: '', databaseId: '', name: '', storeId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformInfraObject.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); +const updated = await db.infraRef.update({ where: { id: '' }, data: { commitId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformInfraObject.delete({ where: { id: '' } }).execute(); +const deleted = await db.infraRef.delete({ where: { id: '' } }).execute(); ``` -### `db.platformInfraRef` +### `db.infraStore` -CRUD operations for PlatformInfraRef records. +CRUD operations for InfraStore records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `commitId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `databaseId` | UUID | Yes | +| `hash` | UUID | Yes | | `id` | UUID | No | | `name` | String | Yes | -| `scopeId` | UUID | Yes | -| `storeId` | UUID | Yes | **Operations:** ```typescript -// List all platformInfraRef records -const items = await db.platformInfraRef.findMany({ select: { commitId: true, id: true, name: true, scopeId: true, storeId: true } }).execute(); +// List all infraStore records +const items = await db.infraStore.findMany({ select: { createdAt: true, databaseId: true, hash: true, id: true, name: true } }).execute(); // Get one by id -const item = await db.platformInfraRef.findOne({ id: '', select: { commitId: true, id: true, name: true, scopeId: true, storeId: true } }).execute(); +const item = await db.infraStore.findOne({ id: '', select: { createdAt: true, databaseId: true, hash: true, id: true, name: true } }).execute(); // Create -const created = await db.platformInfraRef.create({ data: { commitId: '', name: '', scopeId: '', storeId: '' }, select: { id: true } }).execute(); +const created = await db.infraStore.create({ data: { databaseId: '', hash: '', name: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformInfraRef.update({ where: { id: '' }, data: { commitId: '' }, select: { id: true } }).execute(); +const updated = await db.infraStore.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformInfraRef.delete({ where: { id: '' } }).execute(); +const deleted = await db.infraStore.delete({ where: { id: '' } }).execute(); ``` -### `db.platformInfraStore` +### `db.integrationProvider` -CRUD operations for PlatformInfraStore records. +CRUD operations for IntegrationProvider records. **Fields:** | Field | Type | Editable | |-------|------|----------| +| `brand` | JSON | Yes | +| `category` | String | Yes | | `createdAt` | Datetime | No | -| `hash` | UUID | Yes | +| `description` | String | Yes | +| `icon` | String | Yes | | `id` | UUID | No | +| `logo` | ConstructiveInternalTypeImage | Yes | | `name` | String | Yes | -| `scopeId` | UUID | Yes | +| `requiredConfigs` | ResourceRequirement | Yes | +| `requiredSecrets` | ResourceRequirement | Yes | +| `slug` | String | Yes | +| `updatedAt` | Datetime | No | **Operations:** ```typescript -// List all platformInfraStore records -const items = await db.platformInfraStore.findMany({ select: { createdAt: true, hash: true, id: true, name: true, scopeId: true } }).execute(); +// List all integrationProvider records +const items = await db.integrationProvider.findMany({ select: { brand: true, category: true, createdAt: true, description: true, icon: true, id: true, logo: true, name: true, requiredConfigs: true, requiredSecrets: true, slug: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.platformInfraStore.findOne({ id: '', select: { createdAt: true, hash: true, id: true, name: true, scopeId: true } }).execute(); +const item = await db.integrationProvider.findOne({ id: '', select: { brand: true, category: true, createdAt: true, description: true, icon: true, id: true, logo: true, name: true, requiredConfigs: true, requiredSecrets: true, slug: true, updatedAt: true } }).execute(); // Create -const created = await db.platformInfraStore.create({ data: { hash: '', name: '', scopeId: '' }, select: { id: true } }).execute(); +const created = await db.integrationProvider.create({ data: { brand: '', category: '', description: '', icon: '', logo: '', name: '', requiredConfigs: '', requiredSecrets: '', slug: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformInfraStore.update({ where: { id: '' }, data: { hash: '' }, select: { id: true } }).execute(); +const updated = await db.integrationProvider.update({ where: { id: '' }, data: { brand: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformInfraStore.delete({ where: { id: '' } }).execute(); +const deleted = await db.integrationProvider.delete({ where: { id: '' } }).execute(); ``` -### `db.platformNamespace` +### `db.namespace` -CRUD operations for PlatformNamespace records. +CRUD operations for Namespace records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `annotations` | JSON | Yes | +| `clusterId` | UUID | Yes | | `createdAt` | Datetime | No | +| `databaseId` | UUID | Yes | | `description` | String | Yes | | `id` | UUID | No | | `isActive` | Boolean | Yes | @@ -1658,25 +1746,25 @@ CRUD operations for PlatformNamespace records. **Operations:** ```typescript -// List all platformNamespace records -const items = await db.platformNamespace.findMany({ select: { annotations: true, createdAt: true, description: true, id: true, isActive: true, isManaged: true, labels: true, lastError: true, name: true, namespaceName: true, status: true, updatedAt: true } }).execute(); +// List all namespace records +const items = await db.namespace.findMany({ select: { annotations: true, clusterId: true, createdAt: true, databaseId: true, description: true, id: true, isActive: true, isManaged: true, labels: true, lastError: true, name: true, namespaceName: true, status: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.platformNamespace.findOne({ id: '', select: { annotations: true, createdAt: true, description: true, id: true, isActive: true, isManaged: true, labels: true, lastError: true, name: true, namespaceName: true, status: true, updatedAt: true } }).execute(); +const item = await db.namespace.findOne({ id: '', select: { annotations: true, clusterId: true, createdAt: true, databaseId: true, description: true, id: true, isActive: true, isManaged: true, labels: true, lastError: true, name: true, namespaceName: true, status: true, updatedAt: true } }).execute(); // Create -const created = await db.platformNamespace.create({ data: { annotations: '', description: '', isActive: '', isManaged: '', labels: '', lastError: '', name: '', namespaceName: '', status: '' }, select: { id: true } }).execute(); +const created = await db.namespace.create({ data: { annotations: '', clusterId: '', databaseId: '', description: '', isActive: '', isManaged: '', labels: '', lastError: '', name: '', namespaceName: '', status: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformNamespace.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); +const updated = await db.namespace.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformNamespace.delete({ where: { id: '' } }).execute(); +const deleted = await db.namespace.delete({ where: { id: '' } }).execute(); ``` -### `db.platformNamespaceEvent` +### `db.namespaceEvent` -CRUD operations for PlatformNamespaceEvent records. +CRUD operations for NamespaceEvent records. **Fields:** @@ -1684,6 +1772,7 @@ CRUD operations for PlatformNamespaceEvent records. |-------|------|----------| | `actorId` | UUID | Yes | | `createdAt` | Datetime | No | +| `databaseId` | UUID | Yes | | `eventType` | String | Yes | | `id` | UUID | No | | `message` | String | Yes | @@ -1693,1304 +1782,3886 @@ CRUD operations for PlatformNamespaceEvent records. **Operations:** ```typescript -// List all platformNamespaceEvent records -const items = await db.platformNamespaceEvent.findMany({ select: { actorId: true, createdAt: true, eventType: true, id: true, message: true, metadata: true, namespaceId: true } }).execute(); +// List all namespaceEvent records +const items = await db.namespaceEvent.findMany({ select: { actorId: true, createdAt: true, databaseId: true, eventType: true, id: true, message: true, metadata: true, namespaceId: true } }).execute(); // Get one by id -const item = await db.platformNamespaceEvent.findOne({ id: '', select: { actorId: true, createdAt: true, eventType: true, id: true, message: true, metadata: true, namespaceId: true } }).execute(); +const item = await db.namespaceEvent.findOne({ id: '', select: { actorId: true, createdAt: true, databaseId: true, eventType: true, id: true, message: true, metadata: true, namespaceId: true } }).execute(); // Create -const created = await db.platformNamespaceEvent.create({ data: { actorId: '', eventType: '', message: '', metadata: '', namespaceId: '' }, select: { id: true } }).execute(); +const created = await db.namespaceEvent.create({ data: { actorId: '', databaseId: '', eventType: '', message: '', metadata: '', namespaceId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformNamespaceEvent.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); +const updated = await db.namespaceEvent.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformNamespaceEvent.delete({ where: { id: '' } }).execute(); +const deleted = await db.namespaceEvent.delete({ where: { id: '' } }).execute(); ``` -### `db.platformResource` +### `db.platformBuild` -CRUD operations for PlatformResource records. +CRUD operations for PlatformBuild records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `annotations` | JSON | Yes | -| `cpuLimitMillicores` | BigInt | Yes | -| `cpuRequestMillicores` | BigInt | Yes | +| `actorId` | UUID | Yes | +| `attempt` | Int | Yes | +| `commitSha` | String | Yes | +| `conclusion` | String | Yes | | `createdAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `errorCount` | Int | Yes | +| `createdByPrincipal` | UUID | Yes | +| `eventId` | UUID | Yes | +| `finishedAt` | Datetime | Yes | | `id` | UUID | No | -| `installationId` | UUID | Yes | -| `integrations` | String | Yes | -| `kind` | String | Yes | -| `labels` | JSON | Yes | -| `lastError` | String | Yes | -| `lastHeartbeatAt` | Datetime | Yes | -| `memoryLimitBytes` | BigInt | Yes | -| `memoryRequestBytes` | BigInt | Yes | -| `name` | String | Yes | -| `namespaceId` | UUID | Yes | -| `realm` | String | Yes | -| `replicas` | Int | Yes | -| `requiredConfigs` | ResourceRequirement | Yes | -| `requiredSecrets` | ResourceRequirement | Yes | -| `resourceDefinitionId` | UUID | Yes | -| `slug` | String | Yes | -| `spec` | JSON | Yes | +| `imageRef` | String | Yes | +| `jobId` | BigInt | Yes | +| `logs` | ConstructiveInternalTypeUpload | Yes | +| `matrixKey` | String | Yes | +| `metadata` | JSON | Yes | +| `proposalId` | UUID | Yes | +| `ref` | String | Yes | +| `repositoryId` | UUID | Yes | +| `startedAt` | Datetime | Yes | | `status` | String | Yes | -| `statusObserved` | JSON | Yes | -| `storageClass` | String | Yes | -| `storageSizeBytes` | BigInt | Yes | | `updatedAt` | Datetime | No | -| `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | +| `workflowId` | UUID | Yes | **Operations:** ```typescript -// List all platformResource records -const items = await db.platformResource.findMany({ select: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, errorCount: true, id: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusObserved: true, storageClass: true, storageSizeBytes: true, updatedAt: true, updatedBy: true } }).execute(); +// List all platformBuild records +const items = await db.platformBuild.findMany({ select: { actorId: true, attempt: true, commitSha: true, conclusion: true, createdAt: true, createdByPrincipal: true, eventId: true, finishedAt: true, id: true, imageRef: true, jobId: true, logs: true, matrixKey: true, metadata: true, proposalId: true, ref: true, repositoryId: true, startedAt: true, status: true, updatedAt: true, updatedByPrincipal: true, workflowId: true } }).execute(); // Get one by id -const item = await db.platformResource.findOne({ id: '', select: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, errorCount: true, id: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusObserved: true, storageClass: true, storageSizeBytes: true, updatedAt: true, updatedBy: true } }).execute(); +const item = await db.platformBuild.findOne({ id: '', select: { actorId: true, attempt: true, commitSha: true, conclusion: true, createdAt: true, createdByPrincipal: true, eventId: true, finishedAt: true, id: true, imageRef: true, jobId: true, logs: true, matrixKey: true, metadata: true, proposalId: true, ref: true, repositoryId: true, startedAt: true, status: true, updatedAt: true, updatedByPrincipal: true, workflowId: true } }).execute(); // Create -const created = await db.platformResource.create({ data: { annotations: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', errorCount: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusObserved: '', storageClass: '', storageSizeBytes: '', updatedBy: '' }, select: { id: true } }).execute(); +const created = await db.platformBuild.create({ data: { actorId: '', attempt: '', commitSha: '', conclusion: '', createdByPrincipal: '', eventId: '', finishedAt: '', imageRef: '', jobId: '', logs: '', matrixKey: '', metadata: '', proposalId: '', ref: '', repositoryId: '', startedAt: '', status: '', updatedByPrincipal: '', workflowId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformResource.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); +const updated = await db.platformBuild.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformResource.delete({ where: { id: '' } }).execute(); +const deleted = await db.platformBuild.delete({ where: { id: '' } }).execute(); ``` -### `db.platformResourceDeclaredCapacity` +### `db.platformBuildStep` -CRUD operations for PlatformResourceDeclaredCapacity records. +CRUD operations for PlatformBuildStep records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `cpuLimitMillicores` | BigInt | Yes | -| `cpuRequestMillicores` | BigInt | Yes | -| `installationId` | UUID | Yes | -| `isTransient` | Boolean | Yes | +| `buildId` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | +| `exitCode` | Int | Yes | +| `finishedAt` | Datetime | Yes | +| `id` | UUID | No | | `kind` | String | Yes | -| `memoryLimitBytes` | BigInt | Yes | -| `memoryRequestBytes` | BigInt | Yes | -| `namespaceId` | UUID | Yes | -| `podCountMax` | Int | Yes | -| `podCountMin` | Int | Yes | -| `source` | String | Yes | -| `sourceId` | UUID | Yes | -| `storageSizeBytes` | BigInt | Yes | +| `logBytes` | BigInt | Yes | +| `logOffset` | BigInt | Yes | +| `name` | String | Yes | +| `parentSeq` | Int | Yes | +| `recordedAt` | Datetime | Yes | +| `seq` | Int | Yes | +| `startedAt` | Datetime | Yes | +| `status` | String | Yes | +| `summary` | JSON | Yes | **Operations:** ```typescript -// List all platformResourceDeclaredCapacity records -const items = await db.platformResourceDeclaredCapacity.findMany({ select: { cpuLimitMillicores: true, cpuRequestMillicores: true, installationId: true, isTransient: true, kind: true, memoryLimitBytes: true, memoryRequestBytes: true, namespaceId: true, podCountMax: true, podCountMin: true, source: true, sourceId: true, storageSizeBytes: true } }).execute(); +// List all platformBuildStep records +const items = await db.platformBuildStep.findMany({ select: { buildId: true, createdByPrincipal: true, exitCode: true, finishedAt: true, id: true, kind: true, logBytes: true, logOffset: true, name: true, parentSeq: true, recordedAt: true, seq: true, startedAt: true, status: true, summary: true } }).execute(); // Get one by id -const item = await db.platformResourceDeclaredCapacity.findOne({ id: '', select: { cpuLimitMillicores: true, cpuRequestMillicores: true, installationId: true, isTransient: true, kind: true, memoryLimitBytes: true, memoryRequestBytes: true, namespaceId: true, podCountMax: true, podCountMin: true, source: true, sourceId: true, storageSizeBytes: true } }).execute(); +const item = await db.platformBuildStep.findOne({ id: '', select: { buildId: true, createdByPrincipal: true, exitCode: true, finishedAt: true, id: true, kind: true, logBytes: true, logOffset: true, name: true, parentSeq: true, recordedAt: true, seq: true, startedAt: true, status: true, summary: true } }).execute(); // Create -const created = await db.platformResourceDeclaredCapacity.create({ data: { cpuLimitMillicores: '', cpuRequestMillicores: '', installationId: '', isTransient: '', kind: '', memoryLimitBytes: '', memoryRequestBytes: '', namespaceId: '', podCountMax: '', podCountMin: '', source: '', sourceId: '', storageSizeBytes: '' }, select: { id: true } }).execute(); +const created = await db.platformBuildStep.create({ data: { buildId: '', createdByPrincipal: '', exitCode: '', finishedAt: '', kind: '', logBytes: '', logOffset: '', name: '', parentSeq: '', recordedAt: '', seq: '', startedAt: '', status: '', summary: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformResourceDeclaredCapacity.update({ where: { id: '' }, data: { cpuLimitMillicores: '' }, select: { id: true } }).execute(); +const updated = await db.platformBuildStep.update({ where: { id: '' }, data: { buildId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformResourceDeclaredCapacity.delete({ where: { id: '' } }).execute(); +const deleted = await db.platformBuildStep.delete({ where: { id: '' } }).execute(); ``` -### `db.platformResourceDefinition` +### `db.platformBuilderBinding` -CRUD operations for PlatformResourceDefinition records. +CRUD operations for PlatformBuilderBinding records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `annotations` | JSON | Yes | | `createdAt` | Datetime | No | | `createdBy` | UUID | Yes | -| `defaultSpec` | JSON | Yes | -| `description` | String | Yes | +| `createdByPrincipal` | UUID | Yes | | `id` | UUID | No | -| `integrations` | String | Yes | -| `kind` | String | Yes | -| `labels` | JSON | Yes | -| `name` | String | Yes | +| `installationId` | UUID | Yes | +| `lastError` | String | Yes | +| `metadata` | JSON | Yes | | `namespaceId` | UUID | Yes | -| `paramsSchema` | JSON | Yes | -| `requiredConfigs` | ResourceRequirement | Yes | -| `requiredSecrets` | ResourceRequirement | Yes | -| `slug` | String | Yes | -| `stepUpMinAge` | Interval | Yes | +| `observedHost` | String | Yes | +| `realm` | String | Yes | +| `status` | String | Yes | | `updatedAt` | Datetime | No | | `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | **Operations:** ```typescript -// List all platformResourceDefinition records -const items = await db.platformResourceDefinition.findMany({ select: { annotations: true, createdAt: true, createdBy: true, defaultSpec: true, description: true, id: true, integrations: true, kind: true, labels: true, name: true, namespaceId: true, paramsSchema: true, requiredConfigs: true, requiredSecrets: true, slug: true, stepUpMinAge: true, updatedAt: true, updatedBy: true } }).execute(); +// List all platformBuilderBinding records +const items = await db.platformBuilderBinding.findMany({ select: { createdAt: true, createdBy: true, createdByPrincipal: true, id: true, installationId: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.platformResourceDefinition.findOne({ id: '', select: { annotations: true, createdAt: true, createdBy: true, defaultSpec: true, description: true, id: true, integrations: true, kind: true, labels: true, name: true, namespaceId: true, paramsSchema: true, requiredConfigs: true, requiredSecrets: true, slug: true, stepUpMinAge: true, updatedAt: true, updatedBy: true } }).execute(); +const item = await db.platformBuilderBinding.findOne({ id: '', select: { createdAt: true, createdBy: true, createdByPrincipal: true, id: true, installationId: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.platformResourceDefinition.create({ data: { annotations: '', createdBy: '', defaultSpec: '', description: '', integrations: '', kind: '', labels: '', name: '', namespaceId: '', paramsSchema: '', requiredConfigs: '', requiredSecrets: '', slug: '', stepUpMinAge: '', updatedBy: '' }, select: { id: true } }).execute(); +const created = await db.platformBuilderBinding.create({ data: { createdBy: '', createdByPrincipal: '', installationId: '', lastError: '', metadata: '', namespaceId: '', observedHost: '', realm: '', status: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformResourceDefinition.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); +const updated = await db.platformBuilderBinding.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformResourceDefinition.delete({ where: { id: '' } }).execute(); +const deleted = await db.platformBuilderBinding.delete({ where: { id: '' } }).execute(); ``` -### `db.platformResourceEvent` +### `db.platformFunctionApiBinding` -CRUD operations for PlatformResourceEvent records. +CRUD operations for PlatformFunctionApiBinding records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `actorId` | UUID | Yes | +| `alias` | String | Yes | +| `apiId` | UUID | Yes | +| `config` | JSON | Yes | | `createdAt` | Datetime | No | -| `eventType` | String | Yes | +| `functionDefinitionId` | UUID | Yes | | `id` | UUID | No | -| `message` | String | Yes | -| `metadata` | JSON | Yes | -| `resourceId` | UUID | Yes | +| `updatedAt` | Datetime | No | **Operations:** ```typescript -// List all platformResourceEvent records -const items = await db.platformResourceEvent.findMany({ select: { actorId: true, createdAt: true, eventType: true, id: true, message: true, metadata: true, resourceId: true } }).execute(); +// List all platformFunctionApiBinding records +const items = await db.platformFunctionApiBinding.findMany({ select: { alias: true, apiId: true, config: true, createdAt: true, functionDefinitionId: true, id: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.platformResourceEvent.findOne({ id: '', select: { actorId: true, createdAt: true, eventType: true, id: true, message: true, metadata: true, resourceId: true } }).execute(); +const item = await db.platformFunctionApiBinding.findOne({ id: '', select: { alias: true, apiId: true, config: true, createdAt: true, functionDefinitionId: true, id: true, updatedAt: true } }).execute(); // Create -const created = await db.platformResourceEvent.create({ data: { actorId: '', eventType: '', message: '', metadata: '', resourceId: '' }, select: { id: true } }).execute(); +const created = await db.platformFunctionApiBinding.create({ data: { alias: '', apiId: '', config: '', functionDefinitionId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformResourceEvent.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); +const updated = await db.platformFunctionApiBinding.update({ where: { id: '' }, data: { alias: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformResourceEvent.delete({ where: { id: '' } }).execute(); +const deleted = await db.platformFunctionApiBinding.delete({ where: { id: '' } }).execute(); ``` -### `db.platformResourceInstallation` +### `db.platformFunctionCapabilityBinding` -CRUD operations for PlatformResourceInstallation records. +CRUD operations for PlatformFunctionCapabilityBinding records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `commitId` | UUID | Yes | +| `bucketId` | UUID | Yes | | `createdAt` | Datetime | No | -| `createdBy` | UUID | Yes | +| `functionId` | UUID | Yes | +| `graphId` | UUID | Yes | | `id` | UUID | No | -| `name` | String | Yes | -| `namespaceId` | UUID | Yes | -| `params` | JSON | Yes | -| `revision` | Int | Yes | -| `slug` | String | Yes | -| `status` | String | Yes | -| `storeId` | UUID | Yes | +| `key` | String | Yes | +| `lifecycle` | String | Yes | +| `metadata` | JSON | Yes | | `updatedAt` | Datetime | No | -| `updatedBy` | UUID | Yes | **Operations:** ```typescript -// List all platformResourceInstallation records -const items = await db.platformResourceInstallation.findMany({ select: { commitId: true, createdAt: true, createdBy: true, id: true, name: true, namespaceId: true, params: true, revision: true, slug: true, status: true, storeId: true, updatedAt: true, updatedBy: true } }).execute(); +// List all platformFunctionCapabilityBinding records +const items = await db.platformFunctionCapabilityBinding.findMany({ select: { bucketId: true, createdAt: true, functionId: true, graphId: true, id: true, key: true, lifecycle: true, metadata: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.platformResourceInstallation.findOne({ id: '', select: { commitId: true, createdAt: true, createdBy: true, id: true, name: true, namespaceId: true, params: true, revision: true, slug: true, status: true, storeId: true, updatedAt: true, updatedBy: true } }).execute(); +const item = await db.platformFunctionCapabilityBinding.findOne({ id: '', select: { bucketId: true, createdAt: true, functionId: true, graphId: true, id: true, key: true, lifecycle: true, metadata: true, updatedAt: true } }).execute(); // Create -const created = await db.platformResourceInstallation.create({ data: { commitId: '', createdBy: '', name: '', namespaceId: '', params: '', revision: '', slug: '', status: '', storeId: '', updatedBy: '' }, select: { id: true } }).execute(); +const created = await db.platformFunctionCapabilityBinding.create({ data: { bucketId: '', functionId: '', graphId: '', key: '', lifecycle: '', metadata: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformResourceInstallation.update({ where: { id: '' }, data: { commitId: '' }, select: { id: true } }).execute(); +const updated = await db.platformFunctionCapabilityBinding.update({ where: { id: '' }, data: { bucketId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformResourceInstallation.delete({ where: { id: '' } }).execute(); +const deleted = await db.platformFunctionCapabilityBinding.delete({ where: { id: '' } }).execute(); ``` -### `db.platformResourceStatusCheck` +### `db.platformFunctionDefinition` -CRUD operations for PlatformResourceStatusCheck records. +CRUD operations for PlatformFunctionDefinition records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `completedAt` | Datetime | Yes | +| `accessChannels` | String | Yes | +| `anonymousCallable` | Boolean | Yes | +| `billable` | Boolean | Yes | +| `category` | String | Yes | +| `concurrency` | Int | Yes | +| `cpuLimitMillicores` | BigInt | Yes | +| `cpuRequestMillicores` | BigInt | Yes | +| `createdAt` | Datetime | No | +| `createdByPrincipal` | UUID | Yes | +| `description` | String | Yes | +| `fnCategory` | String | Yes | +| `functionColumns` | JSON | Yes | +| `graphId` | UUID | Yes | +| `icon` | String | Yes | | `id` | UUID | No | -| `requestedAt` | Datetime | Yes | -| `requestedBy` | UUID | Yes | -| `resourceId` | UUID | Yes | -| `result` | JSON | Yes | -| `status` | String | Yes | +| `image` | String | Yes | +| `inputs` | JSON | Yes | +| `integrations` | String | Yes | +| `isPublished` | Boolean | Yes | +| `maxAttempts` | Int | Yes | +| `memoryLimitBytes` | BigInt | Yes | +| `memoryRequestBytes` | BigInt | Yes | +| `moduleTable` | String | Yes | +| `name` | String | Yes | +| `outputs` | JSON | Yes | +| `payloadArgs` | JSON | Yes | +| `priority` | Int | Yes | +| `props` | JSON | Yes | +| `protected` | Boolean | Yes | +| `publishedAt` | Datetime | Yes | +| `queueName` | String | Yes | +| `requiredBuckets` | String | Yes | +| `requiredCapabilities` | JSON | Yes | +| `requiredConfigs` | ResourceRequirement | Yes | +| `requiredModels` | String | Yes | +| `requiredModules` | String | Yes | +| `requiredSecrets` | ResourceRequirement | Yes | +| `resources` | JSON | Yes | +| `runtime` | String | Yes | +| `scaleMax` | Int | Yes | +| `scaleMin` | Int | Yes | +| `system` | Boolean | Yes | +| `targetFunction` | String | Yes | +| `targetSchema` | String | Yes | +| `taskIdentifier` | String | Yes | +| `timeoutSeconds` | Int | Yes | +| `updatedAt` | Datetime | No | +| `updatedByPrincipal` | UUID | Yes | +| `volatile` | Boolean | Yes | **Operations:** ```typescript -// List all platformResourceStatusCheck records -const items = await db.platformResourceStatusCheck.findMany({ select: { completedAt: true, id: true, requestedAt: true, requestedBy: true, resourceId: true, result: true, status: true } }).execute(); +// List all platformFunctionDefinition records +const items = await db.platformFunctionDefinition.findMany({ select: { accessChannels: true, anonymousCallable: true, billable: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdByPrincipal: 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, requiredCapabilities: 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, updatedByPrincipal: true, volatile: true } }).execute(); // Get one by id -const item = await db.platformResourceStatusCheck.findOne({ id: '', select: { completedAt: true, id: true, requestedAt: true, requestedBy: true, resourceId: true, result: true, status: true } }).execute(); +const item = await db.platformFunctionDefinition.findOne({ id: '', select: { accessChannels: true, anonymousCallable: true, billable: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdByPrincipal: 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, requiredCapabilities: 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, updatedByPrincipal: true, volatile: true } }).execute(); // Create -const created = await db.platformResourceStatusCheck.create({ data: { completedAt: '', requestedAt: '', requestedBy: '', resourceId: '', result: '', status: '' }, select: { id: true } }).execute(); +const created = await db.platformFunctionDefinition.create({ data: { accessChannels: '', anonymousCallable: '', billable: '', category: '', concurrency: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdByPrincipal: '', description: '', fnCategory: '', functionColumns: '', graphId: '', icon: '', image: '', inputs: '', integrations: '', isPublished: '', maxAttempts: '', memoryLimitBytes: '', memoryRequestBytes: '', moduleTable: '', name: '', outputs: '', payloadArgs: '', priority: '', props: '', protected: '', publishedAt: '', queueName: '', requiredBuckets: '', requiredCapabilities: '', requiredConfigs: '', requiredModels: '', requiredModules: '', requiredSecrets: '', resources: '', runtime: '', scaleMax: '', scaleMin: '', system: '', targetFunction: '', targetSchema: '', taskIdentifier: '', timeoutSeconds: '', updatedByPrincipal: '', volatile: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformResourceStatusCheck.update({ where: { id: '' }, data: { completedAt: '' }, select: { id: true } }).execute(); +const updated = await db.platformFunctionDefinition.update({ where: { id: '' }, data: { accessChannels: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformResourceStatusCheck.delete({ where: { id: '' } }).execute(); +const deleted = await db.platformFunctionDefinition.delete({ where: { id: '' } }).execute(); ``` -### `db.platformResourceUsageLog` +### `db.platformFunctionDeployment` -CRUD operations for PlatformResourceUsageLog records. +CRUD operations for PlatformFunctionDeployment records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `cpuMillicores` | BigInt | Yes | +| `annotations` | JSON | Yes | +| `concurrency` | Int | Yes | +| `createdAt` | Datetime | No | +| `createdByPrincipal` | UUID | Yes | +| `errorCount` | Int | Yes | +| `handlerName` | String | Yes | | `id` | UUID | No | -| `intervalSeconds` | Int | Yes | -| `memoryBytes` | BigInt | Yes | -| `metrics` | JSON | Yes | +| `image` | String | Yes | +| `imageVersion` | String | Yes | +| `labels` | JSON | Yes | +| `lastError` | String | Yes | +| `lastErrorAt` | Datetime | Yes | | `namespaceId` | UUID | Yes | -| `resourceId` | UUID | Yes | -| `sampledAt` | Datetime | Yes | -| `source` | String | Yes | +| `realm` | String | Yes | +| `resources` | JSON | Yes | +| `revision` | Int | Yes | +| `scaleMax` | Int | Yes | +| `scaleMin` | Int | Yes | +| `serviceName` | String | Yes | +| `serviceUrl` | String | Yes | +| `status` | String | Yes | +| `timeoutSeconds` | Int | Yes | +| `updatedAt` | Datetime | No | +| `updatedByPrincipal` | UUID | Yes | **Operations:** ```typescript -// List all platformResourceUsageLog records -const items = await db.platformResourceUsageLog.findMany({ select: { cpuMillicores: true, id: true, intervalSeconds: true, memoryBytes: true, metrics: true, namespaceId: true, resourceId: true, sampledAt: true, source: true } }).execute(); +// List all platformFunctionDeployment records +const items = await db.platformFunctionDeployment.findMany({ select: { annotations: true, concurrency: true, createdAt: true, createdByPrincipal: 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, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.platformResourceUsageLog.findOne({ id: '', select: { cpuMillicores: true, id: true, intervalSeconds: true, memoryBytes: true, metrics: true, namespaceId: true, resourceId: true, sampledAt: true, source: true } }).execute(); +const item = await db.platformFunctionDeployment.findOne({ id: '', select: { annotations: true, concurrency: true, createdAt: true, createdByPrincipal: 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, updatedByPrincipal: true } }).execute(); // Create -const created = await db.platformResourceUsageLog.create({ data: { cpuMillicores: '', intervalSeconds: '', memoryBytes: '', metrics: '', namespaceId: '', resourceId: '', sampledAt: '', source: '' }, select: { id: true } }).execute(); +const created = await db.platformFunctionDeployment.create({ data: { annotations: '', concurrency: '', createdByPrincipal: '', errorCount: '', handlerName: '', image: '', imageVersion: '', labels: '', lastError: '', lastErrorAt: '', namespaceId: '', realm: '', resources: '', revision: '', scaleMax: '', scaleMin: '', serviceName: '', serviceUrl: '', status: '', timeoutSeconds: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformResourceUsageLog.update({ where: { id: '' }, data: { cpuMillicores: '' }, select: { id: true } }).execute(); +const updated = await db.platformFunctionDeployment.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformResourceUsageLog.delete({ where: { id: '' } }).execute(); +const deleted = await db.platformFunctionDeployment.delete({ where: { id: '' } }).execute(); ``` -### `db.platformResourceUsageSummary` +### `db.platformFunctionDeploymentEvent` -CRUD operations for PlatformResourceUsageSummary records. +CRUD operations for PlatformFunctionDeploymentEvent records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `date` | Date | Yes | -| `gbSeconds` | BigFloat | Yes | +| `actorId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `deploymentId` | UUID | Yes | +| `eventType` | String | Yes | | `id` | UUID | No | -| `maxCpuMillicores` | BigInt | Yes | -| `maxMemoryBytes` | BigInt | Yes | -| `namespaceId` | UUID | Yes | -| `resourceId` | UUID | Yes | -| `runtimeSeconds` | BigInt | Yes | -| `sampleCount` | Int | Yes | +| `message` | String | Yes | +| `metadata` | JSON | Yes | **Operations:** ```typescript -// List all platformResourceUsageSummary records -const items = await db.platformResourceUsageSummary.findMany({ select: { date: true, gbSeconds: true, id: true, maxCpuMillicores: true, maxMemoryBytes: true, namespaceId: true, resourceId: true, runtimeSeconds: true, sampleCount: true } }).execute(); +// List all platformFunctionDeploymentEvent records +const items = await db.platformFunctionDeploymentEvent.findMany({ select: { actorId: true, createdAt: true, deploymentId: true, eventType: true, id: true, message: true, metadata: true } }).execute(); // Get one by id -const item = await db.platformResourceUsageSummary.findOne({ id: '', select: { date: true, gbSeconds: true, id: true, maxCpuMillicores: true, maxMemoryBytes: true, namespaceId: true, resourceId: true, runtimeSeconds: true, sampleCount: true } }).execute(); +const item = await db.platformFunctionDeploymentEvent.findOne({ id: '', select: { actorId: true, createdAt: true, deploymentId: true, eventType: true, id: true, message: true, metadata: true } }).execute(); // Create -const created = await db.platformResourceUsageSummary.create({ data: { date: '', gbSeconds: '', maxCpuMillicores: '', maxMemoryBytes: '', namespaceId: '', resourceId: '', runtimeSeconds: '', sampleCount: '' }, select: { id: true } }).execute(); +const created = await db.platformFunctionDeploymentEvent.create({ data: { actorId: '', deploymentId: '', eventType: '', message: '', metadata: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformResourceUsageSummary.update({ where: { id: '' }, data: { date: '' }, select: { id: true } }).execute(); +const updated = await db.platformFunctionDeploymentEvent.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformResourceUsageSummary.delete({ where: { id: '' } }).execute(); +const deleted = await db.platformFunctionDeploymentEvent.delete({ where: { id: '' } }).execute(); ``` -### `db.platformResourceUtilization` +### `db.platformFunctionExecutionLog` -CRUD operations for PlatformResourceUtilization records. +CRUD operations for PlatformFunctionExecutionLog records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `avgMemoryBytes` | BigInt | Yes | -| `cpuLimitMillicores` | BigInt | Yes | -| `cpuPeakUtilization` | BigFloat | Yes | -| `cpuRequestHeadroomMillicores` | BigInt | Yes | -| `cpuRequestMillicores` | BigInt | Yes | -| `date` | Date | Yes | -| `gbSeconds` | BigFloat | Yes | -| `kind` | String | Yes | -| `maxCpuMillicores` | BigInt | Yes | -| `maxMemoryBytes` | BigInt | Yes | -| `memoryLimitBytes` | BigInt | Yes | -| `memoryPeakUtilization` | BigFloat | Yes | -| `memoryRequestBytes` | BigInt | Yes | -| `memoryRequestHeadroomBytes` | BigInt | Yes | -| `namespaceId` | UUID | Yes | -| `replicas` | Int | Yes | -| `resourceId` | UUID | Yes | -| `runtimeSeconds` | BigInt | Yes | -| `sampleCount` | Int | Yes | +| `actorId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `id` | UUID | No | +| `invocationId` | UUID | Yes | +| `logLevel` | String | Yes | +| `message` | String | Yes | +| `metadata` | JSON | Yes | +| `taskIdentifier` | String | Yes | **Operations:** ```typescript -// List all platformResourceUtilization records -const items = await db.platformResourceUtilization.findMany({ select: { avgMemoryBytes: true, cpuLimitMillicores: true, cpuPeakUtilization: true, cpuRequestHeadroomMillicores: true, cpuRequestMillicores: true, date: true, gbSeconds: true, kind: true, maxCpuMillicores: true, maxMemoryBytes: true, memoryLimitBytes: true, memoryPeakUtilization: true, memoryRequestBytes: true, memoryRequestHeadroomBytes: true, namespaceId: true, replicas: true, resourceId: true, runtimeSeconds: true, sampleCount: true } }).execute(); +// List all platformFunctionExecutionLog records +const items = await db.platformFunctionExecutionLog.findMany({ select: { actorId: true, createdAt: true, id: true, invocationId: true, logLevel: true, message: true, metadata: true, taskIdentifier: true } }).execute(); // Get one by id -const item = await db.platformResourceUtilization.findOne({ id: '', select: { avgMemoryBytes: true, cpuLimitMillicores: true, cpuPeakUtilization: true, cpuRequestHeadroomMillicores: true, cpuRequestMillicores: true, date: true, gbSeconds: true, kind: true, maxCpuMillicores: true, maxMemoryBytes: true, memoryLimitBytes: true, memoryPeakUtilization: true, memoryRequestBytes: true, memoryRequestHeadroomBytes: true, namespaceId: true, replicas: true, resourceId: true, runtimeSeconds: true, sampleCount: true } }).execute(); +const item = await db.platformFunctionExecutionLog.findOne({ id: '', select: { actorId: true, createdAt: true, id: true, invocationId: true, logLevel: true, message: true, metadata: true, taskIdentifier: true } }).execute(); // Create -const created = await db.platformResourceUtilization.create({ data: { avgMemoryBytes: '', cpuLimitMillicores: '', cpuPeakUtilization: '', cpuRequestHeadroomMillicores: '', cpuRequestMillicores: '', date: '', gbSeconds: '', kind: '', maxCpuMillicores: '', maxMemoryBytes: '', memoryLimitBytes: '', memoryPeakUtilization: '', memoryRequestBytes: '', memoryRequestHeadroomBytes: '', namespaceId: '', replicas: '', resourceId: '', runtimeSeconds: '', sampleCount: '' }, select: { id: true } }).execute(); +const created = await db.platformFunctionExecutionLog.create({ data: { actorId: '', invocationId: '', logLevel: '', message: '', metadata: '', taskIdentifier: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformResourceUtilization.update({ where: { id: '' }, data: { avgMemoryBytes: '' }, select: { id: true } }).execute(); +const updated = await db.platformFunctionExecutionLog.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformResourceUtilization.delete({ where: { id: '' } }).execute(); +const deleted = await db.platformFunctionExecutionLog.delete({ where: { id: '' } }).execute(); ``` -### `db.platformResourcesHealth` +### `db.platformFunctionInvocationAttempt` -CRUD operations for PlatformResourcesHealth records. +CRUD operations for PlatformFunctionInvocationAttempt records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `annotations` | JSON | Yes | -| `cpuLimitMillicores` | BigInt | Yes | -| `cpuRequestMillicores` | BigInt | Yes | +| `actorId` | UUID | Yes | +| `attempt` | Int | Yes | | `createdAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `errorCount` | Int | Yes | -| `id` | UUID | No | -| `installationId` | UUID | Yes | -| `integrations` | String | Yes | -| `kind` | String | Yes | -| `labels` | JSON | Yes | -| `lastError` | String | Yes | -| `lastHeartbeatAt` | Datetime | Yes | -| `memoryLimitBytes` | BigInt | Yes | -| `memoryRequestBytes` | BigInt | Yes | -| `name` | String | Yes | -| `namespaceId` | UUID | Yes | -| `realm` | String | Yes | -| `replicas` | Int | Yes | -| `requiredConfigs` | ResourceRequirement | Yes | -| `requiredSecrets` | ResourceRequirement | Yes | -| `resourceDefinitionId` | UUID | Yes | -| `slug` | String | Yes | -| `spec` | JSON | Yes | -| `status` | String | Yes | -| `statusDetail` | String | Yes | -| `statusObserved` | JSON | Yes | -| `storageClass` | String | Yes | -| `storageSizeBytes` | BigInt | Yes | -| `updatedAt` | Datetime | No | -| `updatedBy` | UUID | Yes | +| `durationMs` | Int | Yes | +| `error` | String | Yes | +| `errorDetail` | JSON | Yes | +| `id` | UUID | No | +| `invocationCreatedAt` | Datetime | Yes | +| `invocationId` | UUID | Yes | +| `startedAt` | Datetime | Yes | +| `success` | Boolean | Yes | +| `taskIdentifier` | String | Yes | **Operations:** ```typescript -// List all platformResourcesHealth records -const items = await db.platformResourcesHealth.findMany({ select: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, errorCount: true, id: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusDetail: true, statusObserved: true, storageClass: true, storageSizeBytes: true, updatedAt: true, updatedBy: true } }).execute(); +// List all platformFunctionInvocationAttempt records +const items = await db.platformFunctionInvocationAttempt.findMany({ select: { actorId: true, attempt: true, createdAt: true, durationMs: true, error: true, errorDetail: true, id: true, invocationCreatedAt: true, invocationId: true, startedAt: true, success: true, taskIdentifier: true } }).execute(); // Get one by id -const item = await db.platformResourcesHealth.findOne({ id: '', select: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, errorCount: true, id: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusDetail: true, statusObserved: true, storageClass: true, storageSizeBytes: true, updatedAt: true, updatedBy: true } }).execute(); +const item = await db.platformFunctionInvocationAttempt.findOne({ id: '', select: { actorId: true, attempt: true, createdAt: true, durationMs: true, error: true, errorDetail: true, id: true, invocationCreatedAt: true, invocationId: true, startedAt: true, success: true, taskIdentifier: true } }).execute(); // Create -const created = await db.platformResourcesHealth.create({ data: { annotations: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', errorCount: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusDetail: '', statusObserved: '', storageClass: '', storageSizeBytes: '', updatedBy: '' }, select: { id: true } }).execute(); +const created = await db.platformFunctionInvocationAttempt.create({ data: { actorId: '', attempt: '', durationMs: '', error: '', errorDetail: '', invocationCreatedAt: '', invocationId: '', startedAt: '', success: '', taskIdentifier: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformResourcesHealth.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); +const updated = await db.platformFunctionInvocationAttempt.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformResourcesHealth.delete({ where: { id: '' } }).execute(); +const deleted = await db.platformFunctionInvocationAttempt.delete({ where: { id: '' } }).execute(); ``` -### `db.platformResourcesRequirementsState` +### `db.platformFunctionInvocation` -CRUD operations for PlatformResourcesRequirementsState records. +CRUD operations for PlatformFunctionInvocation records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `configHash` | String | Yes | -| `configObjectName` | String | Yes | -| `requirementsHash` | String | Yes | -| `resourceId` | UUID | Yes | -| `secretsHash` | String | Yes | -| `secretsObjectName` | String | Yes | -| `slug` | String | Yes | +| `actorId` | UUID | Yes | +| `apiBindingId` | UUID | Yes | +| `channel` | String | Yes | +| `completedAt` | Datetime | Yes | +| `createdAt` | Datetime | No | +| `createdByPrincipal` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `definitionScope` | String | Yes | +| `durationMs` | Int | Yes | +| `entityId` | UUID | Yes | +| `entityType` | String | Yes | +| `error` | String | Yes | +| `functionDefinitionId` | UUID | Yes | +| `graphExecutionId` | UUID | Yes | +| `id` | UUID | No | +| `jobId` | BigInt | Yes | +| `organizationId` | UUID | Yes | +| `parentInvocationId` | UUID | Yes | +| `payload` | JSON | Yes | +| `principalId` | UUID | Yes | +| `provenance` | JSON | Yes | +| `result` | JSON | Yes | +| `startedAt` | Datetime | Yes | +| `status` | String | Yes | +| `taskIdentifier` | String | Yes | **Operations:** ```typescript -// List all platformResourcesRequirementsState records -const items = await db.platformResourcesRequirementsState.findMany({ select: { configHash: true, configObjectName: true, requirementsHash: true, resourceId: true, secretsHash: true, secretsObjectName: true, slug: true } }).execute(); +// List all platformFunctionInvocation records +const items = await db.platformFunctionInvocation.findMany({ select: { actorId: true, apiBindingId: true, channel: true, completedAt: true, createdAt: true, createdByPrincipal: true, databaseId: true, definitionScope: true, durationMs: true, entityId: true, entityType: true, error: true, functionDefinitionId: true, graphExecutionId: true, id: true, jobId: true, organizationId: true, parentInvocationId: true, payload: true, principalId: true, provenance: true, result: true, startedAt: true, status: true, taskIdentifier: true } }).execute(); // Get one by id -const item = await db.platformResourcesRequirementsState.findOne({ id: '', select: { configHash: true, configObjectName: true, requirementsHash: true, resourceId: true, secretsHash: true, secretsObjectName: true, slug: true } }).execute(); +const item = await db.platformFunctionInvocation.findOne({ id: '', select: { actorId: true, apiBindingId: true, channel: true, completedAt: true, createdAt: true, createdByPrincipal: true, databaseId: true, definitionScope: true, durationMs: true, entityId: true, entityType: true, error: true, functionDefinitionId: true, graphExecutionId: true, id: true, jobId: true, organizationId: true, parentInvocationId: true, payload: true, principalId: true, provenance: true, result: true, startedAt: true, status: true, taskIdentifier: true } }).execute(); // Create -const created = await db.platformResourcesRequirementsState.create({ data: { configHash: '', configObjectName: '', requirementsHash: '', resourceId: '', secretsHash: '', secretsObjectName: '', slug: '' }, select: { id: true } }).execute(); +const created = await db.platformFunctionInvocation.create({ data: { actorId: '', apiBindingId: '', channel: '', completedAt: '', createdByPrincipal: '', databaseId: '', definitionScope: '', durationMs: '', entityId: '', entityType: '', error: '', functionDefinitionId: '', graphExecutionId: '', jobId: '', organizationId: '', parentInvocationId: '', payload: '', principalId: '', provenance: '', result: '', startedAt: '', status: '', taskIdentifier: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformResourcesRequirementsState.update({ where: { id: '' }, data: { configHash: '' }, select: { id: true } }).execute(); +const updated = await db.platformFunctionInvocation.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformResourcesRequirementsState.delete({ where: { id: '' } }).execute(); +const deleted = await db.platformFunctionInvocation.delete({ where: { id: '' } }).execute(); ``` -### `db.platformResourcesResolvedRequirement` +### `db.platformImage` -CRUD operations for PlatformResourcesResolvedRequirement records. +CRUD operations for PlatformImage records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `atomId` | UUID | Yes | -| `configObjectName` | String | Yes | +| `createdAt` | Datetime | No | +| `createdByPrincipal` | UUID | Yes | +| `description` | String | Yes | +| `digest` | String | Yes | +| `expiresAt` | Datetime | Yes | +| `id` | UUID | No | +| `isPublished` | Boolean | Yes | +| `labels` | JSON | Yes | +| `metadata` | JSON | Yes | | `name` | String | Yes | -| `namespaceId` | UUID | Yes | -| `present` | Boolean | Yes | -| `realm` | String | Yes | -| `required` | Boolean | Yes | -| `requirementKind` | String | Yes | -| `resourceId` | UUID | Yes | -| `secretsObjectName` | String | Yes | -| `slug` | String | Yes | +| `ownerId` | UUID | Yes | +| `platformOnly` | Boolean | Yes | +| `registryHost` | String | Yes | +| `repository` | String | Yes | +| `runtime` | String | Yes | +| `tag` | String | Yes | +| `updatedAt` | Datetime | No | +| `updatedByPrincipal` | UUID | Yes | **Operations:** ```typescript -// List all platformResourcesResolvedRequirement records -const items = await db.platformResourcesResolvedRequirement.findMany({ select: { atomId: true, configObjectName: true, name: true, namespaceId: true, present: true, realm: true, required: true, requirementKind: true, resourceId: true, secretsObjectName: true, slug: true } }).execute(); +// List all platformImage records +const items = await db.platformImage.findMany({ select: { createdAt: true, createdByPrincipal: true, description: true, digest: true, expiresAt: true, id: true, isPublished: true, labels: true, metadata: true, name: true, ownerId: true, platformOnly: true, registryHost: true, repository: true, runtime: true, tag: true, updatedAt: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.platformResourcesResolvedRequirement.findOne({ id: '', select: { atomId: true, configObjectName: true, name: true, namespaceId: true, present: true, realm: true, required: true, requirementKind: true, resourceId: true, secretsObjectName: true, slug: true } }).execute(); +const item = await db.platformImage.findOne({ id: '', select: { createdAt: true, createdByPrincipal: true, description: true, digest: true, expiresAt: true, id: true, isPublished: true, labels: true, metadata: true, name: true, ownerId: true, platformOnly: true, registryHost: true, repository: true, runtime: true, tag: true, updatedAt: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.platformResourcesResolvedRequirement.create({ data: { atomId: '', configObjectName: '', name: '', namespaceId: '', present: '', realm: '', required: '', requirementKind: '', resourceId: '', secretsObjectName: '', slug: '' }, select: { id: true } }).execute(); +const created = await db.platformImage.create({ data: { createdByPrincipal: '', description: '', digest: '', expiresAt: '', isPublished: '', labels: '', metadata: '', name: '', ownerId: '', platformOnly: '', registryHost: '', repository: '', runtime: '', tag: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformResourcesResolvedRequirement.update({ where: { id: '' }, data: { atomId: '' }, select: { id: true } }).execute(); +const updated = await db.platformImage.update({ where: { id: '' }, data: { createdByPrincipal: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformResourcesResolvedRequirement.delete({ where: { id: '' } }).execute(); +const deleted = await db.platformImage.delete({ where: { id: '' } }).execute(); ``` -### `db.platformWebhookEndpoint` +### `db.platformImageGrant` -CRUD operations for PlatformWebhookEndpoint records. +CRUD operations for PlatformImageGrant records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `active` | Boolean | Yes | +| `actions` | String | Yes | | `createdAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `functionDefinitionId` | UUID | Yes | -| `host` | String | Yes | +| `createdByPrincipal` | UUID | Yes | +| `expiresAt` | Datetime | Yes | +| `grantedBy` | UUID | Yes | +| `granteeKey` | UUID | Yes | +| `granteeScope` | String | Yes | | `id` | UUID | No | -| `namespaceId` | UUID | Yes | -| `path` | String | Yes | -| `provider` | String | Yes | -| `replayWindowSeconds` | Int | Yes | -| `signingSecretName` | String | Yes | +| `imageId` | UUID | Yes | | `updatedAt` | Datetime | No | -| `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | **Operations:** ```typescript -// List all platformWebhookEndpoint records -const items = await db.platformWebhookEndpoint.findMany({ select: { active: true, createdAt: true, createdBy: true, functionDefinitionId: true, host: true, id: true, namespaceId: true, path: true, provider: true, replayWindowSeconds: true, signingSecretName: true, updatedAt: true, updatedBy: true } }).execute(); +// List all platformImageGrant records +const items = await db.platformImageGrant.findMany({ select: { actions: true, createdAt: true, createdByPrincipal: true, expiresAt: true, grantedBy: true, granteeKey: true, granteeScope: true, id: true, imageId: true, updatedAt: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.platformWebhookEndpoint.findOne({ id: '', select: { active: true, createdAt: true, createdBy: true, functionDefinitionId: true, host: true, id: true, namespaceId: true, path: true, provider: true, replayWindowSeconds: true, signingSecretName: true, updatedAt: true, updatedBy: true } }).execute(); +const item = await db.platformImageGrant.findOne({ id: '', select: { actions: true, createdAt: true, createdByPrincipal: true, expiresAt: true, grantedBy: true, granteeKey: true, granteeScope: true, id: true, imageId: true, updatedAt: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.platformWebhookEndpoint.create({ data: { active: '', createdBy: '', functionDefinitionId: '', host: '', namespaceId: '', path: '', provider: '', replayWindowSeconds: '', signingSecretName: '', updatedBy: '' }, select: { id: true } }).execute(); +const created = await db.platformImageGrant.create({ data: { actions: '', createdByPrincipal: '', expiresAt: '', grantedBy: '', granteeKey: '', granteeScope: '', imageId: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformWebhookEndpoint.update({ where: { id: '' }, data: { active: '' }, select: { id: true } }).execute(); +const updated = await db.platformImageGrant.update({ where: { id: '' }, data: { actions: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformWebhookEndpoint.delete({ where: { id: '' } }).execute(); +const deleted = await db.platformImageGrant.delete({ where: { id: '' } }).execute(); ``` -### `db.platformWebhookEvent` +### `db.platformInfraCommit` -CRUD operations for PlatformWebhookEvent records. +CRUD operations for PlatformInfraCommit records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `createdAt` | Datetime | No | -| `endpointId` | UUID | Yes | -| `error` | String | Yes | -| `externalEventId` | String | Yes | +| `authorId` | UUID | Yes | +| `committerId` | UUID | Yes | +| `date` | Datetime | Yes | | `id` | UUID | No | -| `invocationCreatedAt` | Datetime | Yes | -| `invocationId` | UUID | Yes | -| `payload` | JSON | Yes | -| `provider` | String | Yes | -| `providerTimestamp` | Datetime | Yes | -| `status` | String | Yes | -| `updatedAt` | Datetime | No | +| `message` | String | Yes | +| `parentIds` | UUID | Yes | +| `scopeId` | UUID | Yes | +| `storeId` | UUID | Yes | +| `treeId` | UUID | Yes | **Operations:** ```typescript -// List all platformWebhookEvent records -const items = await db.platformWebhookEvent.findMany({ select: { createdAt: true, endpointId: true, error: true, externalEventId: true, id: true, invocationCreatedAt: true, invocationId: true, payload: true, provider: true, providerTimestamp: true, status: true, updatedAt: true } }).execute(); +// List all platformInfraCommit records +const items = await db.platformInfraCommit.findMany({ select: { authorId: true, committerId: true, date: true, id: true, message: true, parentIds: true, scopeId: true, storeId: true, treeId: true } }).execute(); // Get one by id -const item = await db.platformWebhookEvent.findOne({ id: '', select: { createdAt: true, endpointId: true, error: true, externalEventId: true, id: true, invocationCreatedAt: true, invocationId: true, payload: true, provider: true, providerTimestamp: true, status: true, updatedAt: true } }).execute(); +const item = await db.platformInfraCommit.findOne({ id: '', select: { authorId: true, committerId: true, date: true, id: true, message: true, parentIds: true, scopeId: true, storeId: true, treeId: true } }).execute(); // Create -const created = await db.platformWebhookEvent.create({ data: { endpointId: '', error: '', externalEventId: '', invocationCreatedAt: '', invocationId: '', payload: '', provider: '', providerTimestamp: '', status: '' }, select: { id: true } }).execute(); +const created = await db.platformInfraCommit.create({ data: { authorId: '', committerId: '', date: '', message: '', parentIds: '', scopeId: '', storeId: '', treeId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformWebhookEvent.update({ where: { id: '' }, data: { endpointId: '' }, select: { id: true } }).execute(); +const updated = await db.platformInfraCommit.update({ where: { id: '' }, data: { authorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformWebhookEvent.delete({ where: { id: '' } }).execute(); +const deleted = await db.platformInfraCommit.delete({ where: { id: '' } }).execute(); ``` -### `db.resource` +### `db.platformInfraGetAllTreeNodesRecord` -CRUD operations for Resource records. +CRUD operations for PlatformInfraGetAllTreeNodesRecord records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `annotations` | JSON | Yes | -| `cpuLimitMillicores` | BigInt | Yes | -| `cpuRequestMillicores` | BigInt | Yes | -| `createdAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `databaseId` | UUID | Yes | -| `errorCount` | Int | Yes | -| `id` | UUID | No | -| `installationId` | UUID | Yes | -| `integrations` | String | Yes | -| `kind` | String | Yes | -| `labels` | JSON | Yes | -| `lastError` | String | Yes | -| `lastHeartbeatAt` | Datetime | Yes | -| `memoryLimitBytes` | BigInt | Yes | -| `memoryRequestBytes` | BigInt | Yes | -| `name` | String | Yes | -| `namespaceId` | UUID | Yes | -| `realm` | String | Yes | -| `replicas` | Int | Yes | -| `requiredConfigs` | ResourceRequirement | Yes | -| `requiredSecrets` | ResourceRequirement | Yes | -| `resourceDefinitionId` | UUID | Yes | -| `slug` | String | Yes | -| `spec` | JSON | Yes | -| `status` | String | Yes | -| `statusObserved` | JSON | Yes | -| `storageClass` | String | Yes | -| `storageSizeBytes` | BigInt | Yes | -| `updatedAt` | Datetime | No | -| `updatedBy` | UUID | Yes | +| `data` | JSON | Yes | +| `path` | String | Yes | **Operations:** ```typescript -// List all resource records -const items = await db.resource.findMany({ select: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, databaseId: true, errorCount: true, id: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusObserved: true, storageClass: true, storageSizeBytes: true, updatedAt: true, updatedBy: true } }).execute(); +// List all platformInfraGetAllTreeNodesRecord records +const items = await db.platformInfraGetAllTreeNodesRecord.findMany({ select: { data: true, path: true } }).execute(); // Get one by id -const item = await db.resource.findOne({ id: '', select: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, databaseId: true, errorCount: true, id: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusObserved: true, storageClass: true, storageSizeBytes: true, updatedAt: true, updatedBy: true } }).execute(); +const item = await db.platformInfraGetAllTreeNodesRecord.findOne({ id: '', select: { data: true, path: true } }).execute(); // Create -const created = await db.resource.create({ data: { annotations: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', databaseId: '', errorCount: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusObserved: '', storageClass: '', storageSizeBytes: '', updatedBy: '' }, select: { id: true } }).execute(); +const created = await db.platformInfraGetAllTreeNodesRecord.create({ data: { data: '', path: '' }, select: { id: true } }).execute(); // Update -const updated = await db.resource.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); +const updated = await db.platformInfraGetAllTreeNodesRecord.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.resource.delete({ where: { id: '' } }).execute(); +const deleted = await db.platformInfraGetAllTreeNodesRecord.delete({ where: { id: '' } }).execute(); ``` -### `db.resourceDeclaredCapacity` +### `db.platformInfraObject` -CRUD operations for ResourceDeclaredCapacity records. +CRUD operations for PlatformInfraObject records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `cpuLimitMillicores` | BigInt | Yes | -| `cpuRequestMillicores` | BigInt | Yes | -| `installationId` | UUID | Yes | -| `isTransient` | Boolean | Yes | -| `kind` | String | Yes | -| `memoryLimitBytes` | BigInt | Yes | -| `memoryRequestBytes` | BigInt | Yes | -| `namespaceId` | UUID | Yes | -| `podCountMax` | Int | Yes | -| `podCountMin` | Int | Yes | -| `source` | String | Yes | -| `sourceId` | UUID | Yes | -| `storageSizeBytes` | BigInt | Yes | +| `createdAt` | Datetime | No | +| `data` | JSON | Yes | +| `id` | UUID | No | +| `kids` | UUID | Yes | +| `ktree` | String | Yes | +| `scopeId` | UUID | Yes | **Operations:** ```typescript -// List all resourceDeclaredCapacity records -const items = await db.resourceDeclaredCapacity.findMany({ select: { cpuLimitMillicores: true, cpuRequestMillicores: true, installationId: true, isTransient: true, kind: true, memoryLimitBytes: true, memoryRequestBytes: true, namespaceId: true, podCountMax: true, podCountMin: true, source: true, sourceId: true, storageSizeBytes: true } }).execute(); +// List all platformInfraObject records +const items = await db.platformInfraObject.findMany({ select: { createdAt: true, data: true, id: true, kids: true, ktree: true, scopeId: true } }).execute(); // Get one by id -const item = await db.resourceDeclaredCapacity.findOne({ id: '', select: { cpuLimitMillicores: true, cpuRequestMillicores: true, installationId: true, isTransient: true, kind: true, memoryLimitBytes: true, memoryRequestBytes: true, namespaceId: true, podCountMax: true, podCountMin: true, source: true, sourceId: true, storageSizeBytes: true } }).execute(); +const item = await db.platformInfraObject.findOne({ id: '', select: { createdAt: true, data: true, id: true, kids: true, ktree: true, scopeId: true } }).execute(); // Create -const created = await db.resourceDeclaredCapacity.create({ data: { cpuLimitMillicores: '', cpuRequestMillicores: '', installationId: '', isTransient: '', kind: '', memoryLimitBytes: '', memoryRequestBytes: '', namespaceId: '', podCountMax: '', podCountMin: '', source: '', sourceId: '', storageSizeBytes: '' }, select: { id: true } }).execute(); +const created = await db.platformInfraObject.create({ data: { data: '', kids: '', ktree: '', scopeId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.resourceDeclaredCapacity.update({ where: { id: '' }, data: { cpuLimitMillicores: '' }, select: { id: true } }).execute(); +const updated = await db.platformInfraObject.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.resourceDeclaredCapacity.delete({ where: { id: '' } }).execute(); +const deleted = await db.platformInfraObject.delete({ where: { id: '' } }).execute(); ``` -### `db.resourceDefinition` +### `db.platformInfraRef` -CRUD operations for ResourceDefinition records. +CRUD operations for PlatformInfraRef records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `annotations` | JSON | Yes | -| `createdAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `databaseId` | UUID | Yes | -| `defaultSpec` | JSON | Yes | -| `description` | String | Yes | +| `commitId` | UUID | Yes | | `id` | UUID | No | -| `integrations` | String | Yes | -| `kind` | String | Yes | -| `labels` | JSON | Yes | | `name` | String | Yes | -| `namespaceId` | UUID | Yes | -| `paramsSchema` | JSON | Yes | -| `requiredConfigs` | ResourceRequirement | Yes | -| `requiredSecrets` | ResourceRequirement | Yes | -| `slug` | String | Yes | -| `stepUpMinAge` | Interval | Yes | -| `updatedAt` | Datetime | No | -| `updatedBy` | UUID | Yes | +| `scopeId` | UUID | Yes | +| `storeId` | UUID | Yes | **Operations:** ```typescript -// List all resourceDefinition records -const items = await db.resourceDefinition.findMany({ select: { annotations: true, createdAt: true, createdBy: true, databaseId: true, defaultSpec: true, description: true, id: true, integrations: true, kind: true, labels: true, name: true, namespaceId: true, paramsSchema: true, requiredConfigs: true, requiredSecrets: true, slug: true, stepUpMinAge: true, updatedAt: true, updatedBy: true } }).execute(); +// List all platformInfraRef records +const items = await db.platformInfraRef.findMany({ select: { commitId: true, id: true, name: true, scopeId: true, storeId: true } }).execute(); // Get one by id -const item = await db.resourceDefinition.findOne({ id: '', select: { annotations: true, createdAt: true, createdBy: true, databaseId: true, defaultSpec: true, description: true, id: true, integrations: true, kind: true, labels: true, name: true, namespaceId: true, paramsSchema: true, requiredConfigs: true, requiredSecrets: true, slug: true, stepUpMinAge: true, updatedAt: true, updatedBy: true } }).execute(); +const item = await db.platformInfraRef.findOne({ id: '', select: { commitId: true, id: true, name: true, scopeId: true, storeId: true } }).execute(); // Create -const created = await db.resourceDefinition.create({ data: { annotations: '', createdBy: '', databaseId: '', defaultSpec: '', description: '', integrations: '', kind: '', labels: '', name: '', namespaceId: '', paramsSchema: '', requiredConfigs: '', requiredSecrets: '', slug: '', stepUpMinAge: '', updatedBy: '' }, select: { id: true } }).execute(); +const created = await db.platformInfraRef.create({ data: { commitId: '', name: '', scopeId: '', storeId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.resourceDefinition.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); +const updated = await db.platformInfraRef.update({ where: { id: '' }, data: { commitId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.resourceDefinition.delete({ where: { id: '' } }).execute(); +const deleted = await db.platformInfraRef.delete({ where: { id: '' } }).execute(); ``` -### `db.resourceEvent` +### `db.platformInfraStore` -CRUD operations for ResourceEvent records. +CRUD operations for PlatformInfraStore records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `actorId` | UUID | Yes | | `createdAt` | Datetime | No | -| `databaseId` | UUID | Yes | -| `eventType` | String | Yes | +| `hash` | UUID | Yes | | `id` | UUID | No | -| `message` | String | Yes | -| `metadata` | JSON | Yes | -| `resourceId` | UUID | Yes | +| `name` | String | Yes | +| `scopeId` | UUID | Yes | **Operations:** ```typescript -// List all resourceEvent records -const items = await db.resourceEvent.findMany({ select: { actorId: true, createdAt: true, databaseId: true, eventType: true, id: true, message: true, metadata: true, resourceId: true } }).execute(); +// List all platformInfraStore records +const items = await db.platformInfraStore.findMany({ select: { createdAt: true, hash: true, id: true, name: true, scopeId: true } }).execute(); // Get one by id -const item = await db.resourceEvent.findOne({ id: '', select: { actorId: true, createdAt: true, databaseId: true, eventType: true, id: true, message: true, metadata: true, resourceId: true } }).execute(); +const item = await db.platformInfraStore.findOne({ id: '', select: { createdAt: true, hash: true, id: true, name: true, scopeId: true } }).execute(); // Create -const created = await db.resourceEvent.create({ data: { actorId: '', databaseId: '', eventType: '', message: '', metadata: '', resourceId: '' }, select: { id: true } }).execute(); +const created = await db.platformInfraStore.create({ data: { hash: '', name: '', scopeId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.resourceEvent.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); +const updated = await db.platformInfraStore.update({ where: { id: '' }, data: { hash: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.resourceEvent.delete({ where: { id: '' } }).execute(); +const deleted = await db.platformInfraStore.delete({ where: { id: '' } }).execute(); ``` -### `db.resourceInstallation` +### `db.platformK8sResourceKind` -CRUD operations for ResourceInstallation records. +CRUD operations for PlatformK8sResourceKind records. **Fields:** | Field | Type | Editable | |-------|------|----------| +| `active` | Boolean | Yes | | `commitId` | UUID | Yes | | `createdAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `databaseId` | UUID | Yes | +| `definition` | JSON | Yes | +| `description` | String | Yes | | `id` | UUID | No | -| `name` | String | Yes | -| `namespaceId` | UUID | Yes | -| `params` | JSON | Yes | -| `revision` | Int | Yes | +| `label` | String | Yes | | `slug` | String | Yes | -| `status` | String | Yes | | `storeId` | UUID | Yes | | `updatedAt` | Datetime | No | -| `updatedBy` | UUID | Yes | **Operations:** ```typescript -// List all resourceInstallation records -const items = await db.resourceInstallation.findMany({ select: { commitId: true, createdAt: true, createdBy: true, databaseId: true, id: true, name: true, namespaceId: true, params: true, revision: true, slug: true, status: true, storeId: true, updatedAt: true, updatedBy: true } }).execute(); +// List all platformK8sResourceKind records +const items = await db.platformK8sResourceKind.findMany({ select: { active: true, commitId: true, createdAt: true, definition: true, description: true, id: true, label: true, slug: true, storeId: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.resourceInstallation.findOne({ id: '', select: { commitId: true, createdAt: true, createdBy: true, databaseId: true, id: true, name: true, namespaceId: true, params: true, revision: true, slug: true, status: true, storeId: true, updatedAt: true, updatedBy: true } }).execute(); +const item = await db.platformK8sResourceKind.findOne({ id: '', select: { active: true, commitId: true, createdAt: true, definition: true, description: true, id: true, label: true, slug: true, storeId: true, updatedAt: true } }).execute(); // Create -const created = await db.resourceInstallation.create({ data: { commitId: '', createdBy: '', databaseId: '', name: '', namespaceId: '', params: '', revision: '', slug: '', status: '', storeId: '', updatedBy: '' }, select: { id: true } }).execute(); +const created = await db.platformK8sResourceKind.create({ data: { active: '', commitId: '', definition: '', description: '', label: '', slug: '', storeId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.resourceInstallation.update({ where: { id: '' }, data: { commitId: '' }, select: { id: true } }).execute(); +const updated = await db.platformK8sResourceKind.update({ where: { id: '' }, data: { active: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.resourceInstallation.delete({ where: { id: '' } }).execute(); +const deleted = await db.platformK8sResourceKind.delete({ where: { id: '' } }).execute(); ``` -### `db.resourceStatusCheck` +### `db.platformK8sSpecRule` -CRUD operations for ResourceStatusCheck records. +CRUD operations for PlatformK8sSpecRule records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `completedAt` | Datetime | Yes | -| `databaseId` | UUID | Yes | +| `active` | Boolean | Yes | +| `commitId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `definition` | JSON | Yes | +| `description` | String | Yes | | `id` | UUID | No | -| `requestedAt` | Datetime | Yes | -| `requestedBy` | UUID | Yes | -| `resourceId` | UUID | Yes | -| `result` | JSON | Yes | -| `status` | String | Yes | +| `label` | String | Yes | +| `slug` | String | Yes | +| `storeId` | UUID | Yes | +| `updatedAt` | Datetime | No | **Operations:** ```typescript -// List all resourceStatusCheck records -const items = await db.resourceStatusCheck.findMany({ select: { completedAt: true, databaseId: true, id: true, requestedAt: true, requestedBy: true, resourceId: true, result: true, status: true } }).execute(); +// List all platformK8sSpecRule records +const items = await db.platformK8sSpecRule.findMany({ select: { active: true, commitId: true, createdAt: true, definition: true, description: true, id: true, label: true, slug: true, storeId: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.resourceStatusCheck.findOne({ id: '', select: { completedAt: true, databaseId: true, id: true, requestedAt: true, requestedBy: true, resourceId: true, result: true, status: true } }).execute(); +const item = await db.platformK8sSpecRule.findOne({ id: '', select: { active: true, commitId: true, createdAt: true, definition: true, description: true, id: true, label: true, slug: true, storeId: true, updatedAt: true } }).execute(); // Create -const created = await db.resourceStatusCheck.create({ data: { completedAt: '', databaseId: '', requestedAt: '', requestedBy: '', resourceId: '', result: '', status: '' }, select: { id: true } }).execute(); +const created = await db.platformK8sSpecRule.create({ data: { active: '', commitId: '', definition: '', description: '', label: '', slug: '', storeId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.resourceStatusCheck.update({ where: { id: '' }, data: { completedAt: '' }, select: { id: true } }).execute(); +const updated = await db.platformK8sSpecRule.update({ where: { id: '' }, data: { active: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.resourceStatusCheck.delete({ where: { id: '' } }).execute(); +const deleted = await db.platformK8sSpecRule.delete({ where: { id: '' } }).execute(); ``` -### `db.resourceUsageLog` +### `db.platformNamespace` -CRUD operations for ResourceUsageLog records. +CRUD operations for PlatformNamespace records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `cpuMillicores` | BigInt | Yes | -| `databaseId` | UUID | Yes | +| `annotations` | JSON | Yes | +| `clusterId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `description` | String | Yes | | `id` | UUID | No | -| `intervalSeconds` | Int | Yes | -| `memoryBytes` | BigInt | Yes | -| `metrics` | JSON | Yes | -| `namespaceId` | UUID | Yes | -| `resourceId` | UUID | Yes | -| `sampledAt` | Datetime | Yes | -| `source` | String | Yes | +| `isActive` | Boolean | Yes | +| `isManaged` | Boolean | Yes | +| `labels` | JSON | Yes | +| `lastError` | String | Yes | +| `name` | String | Yes | +| `namespaceName` | String | Yes | +| `status` | String | Yes | +| `updatedAt` | Datetime | No | **Operations:** ```typescript -// List all resourceUsageLog records -const items = await db.resourceUsageLog.findMany({ select: { cpuMillicores: true, databaseId: true, id: true, intervalSeconds: true, memoryBytes: true, metrics: true, namespaceId: true, resourceId: true, sampledAt: true, source: true } }).execute(); +// List all platformNamespace records +const items = await db.platformNamespace.findMany({ select: { annotations: true, clusterId: true, createdAt: true, description: true, id: true, isActive: true, isManaged: true, labels: true, lastError: true, name: true, namespaceName: true, status: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.resourceUsageLog.findOne({ id: '', select: { cpuMillicores: true, databaseId: true, id: true, intervalSeconds: true, memoryBytes: true, metrics: true, namespaceId: true, resourceId: true, sampledAt: true, source: true } }).execute(); +const item = await db.platformNamespace.findOne({ id: '', select: { annotations: true, clusterId: true, createdAt: true, description: true, id: true, isActive: true, isManaged: true, labels: true, lastError: true, name: true, namespaceName: true, status: true, updatedAt: true } }).execute(); // Create -const created = await db.resourceUsageLog.create({ data: { cpuMillicores: '', databaseId: '', intervalSeconds: '', memoryBytes: '', metrics: '', namespaceId: '', resourceId: '', sampledAt: '', source: '' }, select: { id: true } }).execute(); +const created = await db.platformNamespace.create({ data: { annotations: '', clusterId: '', description: '', isActive: '', isManaged: '', labels: '', lastError: '', name: '', namespaceName: '', status: '' }, select: { id: true } }).execute(); // Update -const updated = await db.resourceUsageLog.update({ where: { id: '' }, data: { cpuMillicores: '' }, select: { id: true } }).execute(); +const updated = await db.platformNamespace.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.resourceUsageLog.delete({ where: { id: '' } }).execute(); +const deleted = await db.platformNamespace.delete({ where: { id: '' } }).execute(); ``` -### `db.resourceUsageSummary` +### `db.platformNamespaceEvent` -CRUD operations for ResourceUsageSummary records. +CRUD operations for PlatformNamespaceEvent records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `databaseId` | UUID | Yes | -| `date` | Date | Yes | -| `gbSeconds` | BigFloat | Yes | +| `actorId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `eventType` | String | Yes | | `id` | UUID | No | -| `maxCpuMillicores` | BigInt | Yes | -| `maxMemoryBytes` | BigInt | Yes | +| `message` | String | Yes | +| `metadata` | JSON | Yes | | `namespaceId` | UUID | Yes | -| `resourceId` | UUID | Yes | -| `runtimeSeconds` | BigInt | Yes | -| `sampleCount` | Int | Yes | **Operations:** ```typescript -// List all resourceUsageSummary records -const items = await db.resourceUsageSummary.findMany({ select: { databaseId: true, date: true, gbSeconds: true, id: true, maxCpuMillicores: true, maxMemoryBytes: true, namespaceId: true, resourceId: true, runtimeSeconds: true, sampleCount: true } }).execute(); +// List all platformNamespaceEvent records +const items = await db.platformNamespaceEvent.findMany({ select: { actorId: true, createdAt: true, eventType: true, id: true, message: true, metadata: true, namespaceId: true } }).execute(); // Get one by id -const item = await db.resourceUsageSummary.findOne({ id: '', select: { databaseId: true, date: true, gbSeconds: true, id: true, maxCpuMillicores: true, maxMemoryBytes: true, namespaceId: true, resourceId: true, runtimeSeconds: true, sampleCount: true } }).execute(); +const item = await db.platformNamespaceEvent.findOne({ id: '', select: { actorId: true, createdAt: true, eventType: true, id: true, message: true, metadata: true, namespaceId: true } }).execute(); // Create -const created = await db.resourceUsageSummary.create({ data: { databaseId: '', date: '', gbSeconds: '', maxCpuMillicores: '', maxMemoryBytes: '', namespaceId: '', resourceId: '', runtimeSeconds: '', sampleCount: '' }, select: { id: true } }).execute(); +const created = await db.platformNamespaceEvent.create({ data: { actorId: '', eventType: '', message: '', metadata: '', namespaceId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.resourceUsageSummary.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.platformNamespaceEvent.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.resourceUsageSummary.delete({ where: { id: '' } }).execute(); +const deleted = await db.platformNamespaceEvent.delete({ where: { id: '' } }).execute(); ``` -### `db.resourceUtilization` +### `db.platformProposalComment` -CRUD operations for ResourceUtilization records. +CRUD operations for PlatformProposalComment records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `avgMemoryBytes` | BigInt | Yes | -| `cpuLimitMillicores` | BigInt | Yes | -| `cpuPeakUtilization` | BigFloat | Yes | -| `cpuRequestHeadroomMillicores` | BigInt | Yes | -| `cpuRequestMillicores` | BigInt | Yes | -| `date` | Date | Yes | -| `gbSeconds` | BigFloat | Yes | -| `kind` | String | Yes | -| `maxCpuMillicores` | BigInt | Yes | -| `maxMemoryBytes` | BigInt | Yes | -| `memoryLimitBytes` | BigInt | Yes | -| `memoryPeakUtilization` | BigFloat | Yes | -| `memoryRequestBytes` | BigInt | Yes | -| `memoryRequestHeadroomBytes` | BigInt | Yes | -| `namespaceId` | UUID | Yes | -| `replicas` | Int | Yes | -| `resourceId` | UUID | Yes | -| `runtimeSeconds` | BigInt | Yes | -| `sampleCount` | Int | Yes | +| `actorId` | UUID | Yes | +| `attachments` | ConstructiveInternalTypeUpload | Yes | +| `body` | String | Yes | +| `bodyTrgmSimilarity` | Float | Yes | +| `createdAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | +| `embedding` | Vector | Yes | +| `embeddingUpdatedAt` | Datetime | Yes | +| `embeddingVectorDistance` | Float | Yes | +| `id` | UUID | No | +| `line` | Int | Yes | +| `outdatedAt` | Datetime | Yes | +| `path` | String | Yes | +| `pathTrgmSimilarity` | Float | Yes | +| `proposalId` | UUID | Yes | +| `resolvedAt` | Datetime | Yes | +| `search` | FullText | Yes | +| `searchScore` | Float | Yes | +| `searchTsvRank` | Float | Yes | +| `updatedAt` | Datetime | No | +| `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | **Operations:** ```typescript -// List all resourceUtilization records -const items = await db.resourceUtilization.findMany({ select: { avgMemoryBytes: true, cpuLimitMillicores: true, cpuPeakUtilization: true, cpuRequestHeadroomMillicores: true, cpuRequestMillicores: true, date: true, gbSeconds: true, kind: true, maxCpuMillicores: true, maxMemoryBytes: true, memoryLimitBytes: true, memoryPeakUtilization: true, memoryRequestBytes: true, memoryRequestHeadroomBytes: true, namespaceId: true, replicas: true, resourceId: true, runtimeSeconds: true, sampleCount: true } }).execute(); +// List all platformProposalComment records +const items = await db.platformProposalComment.findMany({ select: { actorId: true, attachments: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.resourceUtilization.findOne({ id: '', select: { avgMemoryBytes: true, cpuLimitMillicores: true, cpuPeakUtilization: true, cpuRequestHeadroomMillicores: true, cpuRequestMillicores: true, date: true, gbSeconds: true, kind: true, maxCpuMillicores: true, maxMemoryBytes: true, memoryLimitBytes: true, memoryPeakUtilization: true, memoryRequestBytes: true, memoryRequestHeadroomBytes: true, namespaceId: true, replicas: true, resourceId: true, runtimeSeconds: true, sampleCount: true } }).execute(); +const item = await db.platformProposalComment.findOne({ id: '', select: { actorId: true, attachments: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.resourceUtilization.create({ data: { avgMemoryBytes: '', cpuLimitMillicores: '', cpuPeakUtilization: '', cpuRequestHeadroomMillicores: '', cpuRequestMillicores: '', date: '', gbSeconds: '', kind: '', maxCpuMillicores: '', maxMemoryBytes: '', memoryLimitBytes: '', memoryPeakUtilization: '', memoryRequestBytes: '', memoryRequestHeadroomBytes: '', namespaceId: '', replicas: '', resourceId: '', runtimeSeconds: '', sampleCount: '' }, select: { id: true } }).execute(); +const created = await db.platformProposalComment.create({ data: { actorId: '', attachments: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', line: '', outdatedAt: '', path: '', pathTrgmSimilarity: '', proposalId: '', resolvedAt: '', search: '', searchScore: '', searchTsvRank: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update -const updated = await db.resourceUtilization.update({ where: { id: '' }, data: { avgMemoryBytes: '' }, select: { id: true } }).execute(); +const updated = await db.platformProposalComment.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.resourceUtilization.delete({ where: { id: '' } }).execute(); +const deleted = await db.platformProposalComment.delete({ where: { id: '' } }).execute(); ``` -### `db.resourcesHealth` +> **pgvector embedding fields:** `embedding` +> High-dimensional vector columns for semantic similarity search. Query via the Unified Search API pgvector adapter using cosine, L2, or inner-product distance. -CRUD operations for ResourcesHealth records. +> **Unified Search API fields:** `search` +> Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. + +### `db.platformProposal` + +CRUD operations for PlatformProposal records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `annotations` | JSON | Yes | -| `cpuLimitMillicores` | BigInt | Yes | -| `cpuRequestMillicores` | BigInt | Yes | +| `actorId` | UUID | Yes | +| `body` | String | Yes | +| `bodyTrgmSimilarity` | Float | Yes | +| `closedReason` | String | Yes | +| `closedReasonTrgmSimilarity` | Float | Yes | | `createdAt` | Datetime | No | | `createdBy` | UUID | Yes | -| `databaseId` | UUID | Yes | -| `errorCount` | Int | Yes | +| `createdByPrincipal` | UUID | Yes | +| `decidedAt` | Datetime | Yes | +| `dueAt` | Datetime | Yes | +| `embedding` | Vector | Yes | +| `embeddingUpdatedAt` | Datetime | Yes | +| `embeddingVectorDistance` | Float | Yes | | `id` | UUID | No | -| `installationId` | UUID | Yes | -| `integrations` | String | Yes | | `kind` | String | Yes | -| `labels` | JSON | Yes | -| `lastError` | String | Yes | -| `lastHeartbeatAt` | Datetime | Yes | -| `memoryLimitBytes` | BigInt | Yes | -| `memoryRequestBytes` | BigInt | Yes | -| `name` | String | Yes | -| `namespaceId` | UUID | Yes | -| `realm` | String | Yes | -| `replicas` | Int | Yes | -| `requiredConfigs` | ResourceRequirement | Yes | -| `requiredSecrets` | ResourceRequirement | Yes | -| `resourceDefinitionId` | UUID | Yes | -| `slug` | String | Yes | -| `spec` | JSON | Yes | +| `kindTrgmSimilarity` | Float | Yes | +| `labels` | String | Yes | +| `mergeCommit` | String | Yes | +| `mergeCommitTrgmSimilarity` | Float | Yes | +| `mergeMethod` | String | Yes | +| `mergeMethodTrgmSimilarity` | Float | Yes | +| `mergeRequestedAt` | Datetime | Yes | +| `mergedAt` | Datetime | Yes | +| `metadata` | JSON | Yes | +| `parentId` | UUID | Yes | +| `priority` | BigFloat | Yes | +| `repositoryId` | UUID | Yes | +| `resolution` | String | Yes | +| `resolutionTrgmSimilarity` | Float | Yes | +| `search` | FullText | Yes | +| `searchScore` | Float | Yes | +| `searchTsvRank` | Float | Yes | +| `sourceRef` | String | Yes | +| `sourceRefTrgmSimilarity` | Float | Yes | | `status` | String | Yes | -| `statusDetail` | String | Yes | -| `statusObserved` | JSON | Yes | -| `storageClass` | String | Yes | -| `storageSizeBytes` | BigInt | Yes | +| `statusTrgmSimilarity` | Float | Yes | +| `targetRef` | String | Yes | +| `targetRefTrgmSimilarity` | Float | Yes | +| `title` | String | Yes | +| `titleTrgmSimilarity` | Float | Yes | | `updatedAt` | Datetime | No | | `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | **Operations:** ```typescript -// List all resourcesHealth records -const items = await db.resourcesHealth.findMany({ select: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, databaseId: true, errorCount: true, id: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusDetail: true, statusObserved: true, storageClass: true, storageSizeBytes: true, updatedAt: true, updatedBy: true } }).execute(); +// List all platformProposal records +const items = await db.platformProposal.findMany({ select: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, decidedAt: true, dueAt: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.resourcesHealth.findOne({ id: '', select: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, databaseId: true, errorCount: true, id: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusDetail: true, statusObserved: true, storageClass: true, storageSizeBytes: true, updatedAt: true, updatedBy: true } }).execute(); +const item = await db.platformProposal.findOne({ id: '', select: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, decidedAt: true, dueAt: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.resourcesHealth.create({ data: { annotations: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', databaseId: '', errorCount: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusDetail: '', statusObserved: '', storageClass: '', storageSizeBytes: '', updatedBy: '' }, select: { id: true } }).execute(); +const created = await db.platformProposal.create({ data: { actorId: '', body: '', bodyTrgmSimilarity: '', closedReason: '', closedReasonTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', decidedAt: '', dueAt: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', kind: '', kindTrgmSimilarity: '', labels: '', mergeCommit: '', mergeCommitTrgmSimilarity: '', mergeMethod: '', mergeMethodTrgmSimilarity: '', mergeRequestedAt: '', mergedAt: '', metadata: '', parentId: '', priority: '', repositoryId: '', resolution: '', resolutionTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', sourceRef: '', sourceRefTrgmSimilarity: '', status: '', statusTrgmSimilarity: '', targetRef: '', targetRefTrgmSimilarity: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update -const updated = await db.resourcesHealth.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); +const updated = await db.platformProposal.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.resourcesHealth.delete({ where: { id: '' } }).execute(); +const deleted = await db.platformProposal.delete({ where: { id: '' } }).execute(); ``` -### `db.resourcesRequirementsState` +> **pgvector embedding fields:** `embedding` +> High-dimensional vector columns for semantic similarity search. Query via the Unified Search API pgvector adapter using cosine, L2, or inner-product distance. -CRUD operations for ResourcesRequirementsState records. +> **Unified Search API fields:** `search` +> Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. + +### `db.platformProposalFileView` + +CRUD operations for PlatformProposalFileView records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `configHash` | String | Yes | -| `configObjectName` | String | Yes | -| `requirementsHash` | String | Yes | -| `resourceId` | UUID | Yes | -| `secretsHash` | String | Yes | -| `secretsObjectName` | String | Yes | -| `slug` | String | Yes | +| `blobSha` | String | Yes | +| `createdAt` | Datetime | No | +| `createdByPrincipal` | UUID | Yes | +| `id` | UUID | No | +| `path` | String | Yes | +| `proposalId` | UUID | Yes | +| `reviewerId` | UUID | Yes | +| `updatedAt` | Datetime | No | +| `updatedByPrincipal` | UUID | Yes | +| `viewedAt` | Datetime | Yes | **Operations:** ```typescript -// List all resourcesRequirementsState records -const items = await db.resourcesRequirementsState.findMany({ select: { configHash: true, configObjectName: true, requirementsHash: true, resourceId: true, secretsHash: true, secretsObjectName: true, slug: true } }).execute(); +// List all platformProposalFileView records +const items = await db.platformProposalFileView.findMany({ select: { blobSha: true, createdAt: true, createdByPrincipal: true, id: true, path: true, proposalId: true, reviewerId: true, updatedAt: true, updatedByPrincipal: true, viewedAt: true } }).execute(); // Get one by id -const item = await db.resourcesRequirementsState.findOne({ id: '', select: { configHash: true, configObjectName: true, requirementsHash: true, resourceId: true, secretsHash: true, secretsObjectName: true, slug: true } }).execute(); +const item = await db.platformProposalFileView.findOne({ id: '', select: { blobSha: true, createdAt: true, createdByPrincipal: true, id: true, path: true, proposalId: true, reviewerId: true, updatedAt: true, updatedByPrincipal: true, viewedAt: true } }).execute(); // Create -const created = await db.resourcesRequirementsState.create({ data: { configHash: '', configObjectName: '', requirementsHash: '', resourceId: '', secretsHash: '', secretsObjectName: '', slug: '' }, select: { id: true } }).execute(); +const created = await db.platformProposalFileView.create({ data: { blobSha: '', createdByPrincipal: '', path: '', proposalId: '', reviewerId: '', updatedByPrincipal: '', viewedAt: '' }, select: { id: true } }).execute(); // Update -const updated = await db.resourcesRequirementsState.update({ where: { id: '' }, data: { configHash: '' }, select: { id: true } }).execute(); +const updated = await db.platformProposalFileView.update({ where: { id: '' }, data: { blobSha: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.resourcesRequirementsState.delete({ where: { id: '' } }).execute(); +const deleted = await db.platformProposalFileView.delete({ where: { id: '' } }).execute(); ``` -### `db.resourcesResolvedRequirement` +### `db.platformProposalReaction` + +CRUD operations for PlatformProposalReaction records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `actorId` | UUID | Yes | +| `commentId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `createdByPrincipal` | UUID | Yes | +| `emoji` | String | Yes | +| `id` | UUID | No | +| `proposalId` | UUID | Yes | +| `updatedAt` | Datetime | No | +| `updatedByPrincipal` | UUID | Yes | + +**Operations:** + +```typescript +// List all platformProposalReaction records +const items = await db.platformProposalReaction.findMany({ select: { actorId: true, commentId: true, createdAt: true, createdByPrincipal: true, emoji: true, id: true, proposalId: true, updatedAt: true, updatedByPrincipal: true } }).execute(); + +// Get one by id +const item = await db.platformProposalReaction.findOne({ id: '', select: { actorId: true, commentId: true, createdAt: true, createdByPrincipal: true, emoji: true, id: true, proposalId: true, updatedAt: true, updatedByPrincipal: true } }).execute(); + +// Create +const created = await db.platformProposalReaction.create({ data: { actorId: '', commentId: '', createdByPrincipal: '', emoji: '', proposalId: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformProposalReaction.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformProposalReaction.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformProposalReview` + +CRUD operations for PlatformProposalReview records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `body` | String | Yes | +| `bodyTrgmSimilarity` | Float | Yes | +| `commitSha` | String | Yes | +| `commitShaTrgmSimilarity` | Float | Yes | +| `createdAt` | Datetime | No | +| `createdByPrincipal` | UUID | Yes | +| `id` | UUID | No | +| `proposalId` | UUID | Yes | +| `reviewerId` | UUID | Yes | +| `search` | FullText | Yes | +| `searchScore` | Float | Yes | +| `searchTsvRank` | Float | Yes | +| `submittedAt` | Datetime | Yes | +| `updatedAt` | Datetime | No | +| `updatedByPrincipal` | UUID | Yes | +| `verdict` | String | Yes | +| `verdictTrgmSimilarity` | Float | Yes | + +**Operations:** + +```typescript +// List all platformProposalReview records +const items = await db.platformProposalReview.findMany({ select: { body: true, bodyTrgmSimilarity: true, commitSha: true, commitShaTrgmSimilarity: true, createdAt: true, createdByPrincipal: true, id: true, proposalId: true, reviewerId: true, search: true, searchScore: true, searchTsvRank: true, submittedAt: true, updatedAt: true, updatedByPrincipal: true, verdict: true, verdictTrgmSimilarity: true } }).execute(); + +// Get one by id +const item = await db.platformProposalReview.findOne({ id: '', select: { body: true, bodyTrgmSimilarity: true, commitSha: true, commitShaTrgmSimilarity: true, createdAt: true, createdByPrincipal: true, id: true, proposalId: true, reviewerId: true, search: true, searchScore: true, searchTsvRank: true, submittedAt: true, updatedAt: true, updatedByPrincipal: true, verdict: true, verdictTrgmSimilarity: true } }).execute(); + +// Create +const created = await db.platformProposalReview.create({ data: { body: '', bodyTrgmSimilarity: '', commitSha: '', commitShaTrgmSimilarity: '', createdByPrincipal: '', proposalId: '', reviewerId: '', search: '', searchScore: '', searchTsvRank: '', submittedAt: '', updatedByPrincipal: '', verdict: '', verdictTrgmSimilarity: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformProposalReview.update({ where: { id: '' }, data: { body: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformProposalReview.delete({ where: { id: '' } }).execute(); +``` + +> **Unified Search API fields:** `search` +> Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. + +### `db.platformProposalsChunk` + +CRUD operations for PlatformProposalsChunk records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `actorId` | UUID | Yes | +| `body` | String | Yes | +| `chunkIndex` | Int | Yes | +| `createdAt` | Datetime | No | +| `embedding` | Vector | Yes | +| `embeddingVectorDistance` | Float | Yes | +| `id` | UUID | No | +| `metadata` | JSON | Yes | +| `platformProposalsId` | UUID | Yes | +| `searchScore` | Float | Yes | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all platformProposalsChunk records +const items = await db.platformProposalsChunk.findMany({ select: { actorId: true, body: true, chunkIndex: true, createdAt: true, embedding: true, embeddingVectorDistance: true, id: true, metadata: true, platformProposalsId: true, searchScore: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.platformProposalsChunk.findOne({ id: '', select: { actorId: true, body: true, chunkIndex: true, createdAt: true, embedding: true, embeddingVectorDistance: true, id: true, metadata: true, platformProposalsId: true, searchScore: true, updatedAt: true } }).execute(); + +// Create +const created = await db.platformProposalsChunk.create({ data: { actorId: '', body: '', chunkIndex: '', embedding: '', embeddingVectorDistance: '', metadata: '', platformProposalsId: '', searchScore: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformProposalsChunk.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformProposalsChunk.delete({ where: { id: '' } }).execute(); +``` + +> **pgvector embedding fields:** `embedding` +> High-dimensional vector columns for semantic similarity search. Query via the Unified Search API pgvector adapter using cosine, L2, or inner-product distance. + +### `db.platformRegistryBinding` + +CRUD operations for PlatformRegistryBinding records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `createdAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | +| `id` | UUID | No | +| `metadata` | JSON | Yes | +| `namespaceId` | UUID | Yes | +| `observedCredentialVersion` | String | Yes | +| `pullSecretName` | String | Yes | +| `realm` | String | Yes | +| `registryHost` | String | Yes | +| `registryId` | UUID | Yes | +| `status` | String | Yes | +| `updatedAt` | Datetime | No | +| `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | + +**Operations:** + +```typescript +// List all platformRegistryBinding records +const items = await db.platformRegistryBinding.findMany({ select: { createdAt: true, createdBy: true, createdByPrincipal: true, id: true, metadata: true, namespaceId: true, observedCredentialVersion: true, pullSecretName: true, realm: true, registryHost: true, registryId: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Get one by id +const item = await db.platformRegistryBinding.findOne({ id: '', select: { createdAt: true, createdBy: true, createdByPrincipal: true, id: true, metadata: true, namespaceId: true, observedCredentialVersion: true, pullSecretName: true, realm: true, registryHost: true, registryId: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Create +const created = await db.platformRegistryBinding.create({ data: { createdBy: '', createdByPrincipal: '', metadata: '', namespaceId: '', observedCredentialVersion: '', pullSecretName: '', realm: '', registryHost: '', registryId: '', status: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformRegistryBinding.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformRegistryBinding.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformRegistry` + +CRUD operations for PlatformRegistry records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `authMode` | String | Yes | +| `basePath` | String | Yes | +| `createdAt` | Datetime | No | +| `createdByPrincipal` | UUID | Yes | +| `credentialSecretName` | String | Yes | +| `host` | String | Yes | +| `id` | UUID | No | +| `installationId` | UUID | Yes | +| `isPublished` | Boolean | Yes | +| `kind` | String | Yes | +| `labels` | JSON | Yes | +| `lastError` | String | Yes | +| `metadata` | JSON | Yes | +| `name` | String | Yes | +| `platformOnly` | Boolean | Yes | +| `role` | String | Yes | +| `status` | String | Yes | +| `updatedAt` | Datetime | No | +| `updatedByPrincipal` | UUID | Yes | + +**Operations:** + +```typescript +// List all platformRegistry records +const items = await db.platformRegistry.findMany({ select: { authMode: true, basePath: true, createdAt: true, createdByPrincipal: true, credentialSecretName: true, host: true, id: true, installationId: true, isPublished: true, kind: true, labels: true, lastError: true, metadata: true, name: true, platformOnly: true, role: true, status: true, updatedAt: true, updatedByPrincipal: true } }).execute(); + +// Get one by id +const item = await db.platformRegistry.findOne({ id: '', select: { authMode: true, basePath: true, createdAt: true, createdByPrincipal: true, credentialSecretName: true, host: true, id: true, installationId: true, isPublished: true, kind: true, labels: true, lastError: true, metadata: true, name: true, platformOnly: true, role: true, status: true, updatedAt: true, updatedByPrincipal: true } }).execute(); + +// Create +const created = await db.platformRegistry.create({ data: { authMode: '', basePath: '', createdByPrincipal: '', credentialSecretName: '', host: '', installationId: '', isPublished: '', kind: '', labels: '', lastError: '', metadata: '', name: '', platformOnly: '', role: '', status: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformRegistry.update({ where: { id: '' }, data: { authMode: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformRegistry.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformRegistryGrant` + +CRUD operations for PlatformRegistryGrant records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `actions` | String | Yes | +| `createdAt` | Datetime | No | +| `createdByPrincipal` | UUID | Yes | +| `expiresAt` | Datetime | Yes | +| `grantedBy` | UUID | Yes | +| `granteeKey` | UUID | Yes | +| `granteeScope` | String | Yes | +| `id` | UUID | No | +| `registryId` | UUID | Yes | +| `updatedAt` | Datetime | No | +| `updatedByPrincipal` | UUID | Yes | + +**Operations:** + +```typescript +// List all platformRegistryGrant records +const items = await db.platformRegistryGrant.findMany({ select: { actions: true, createdAt: true, createdByPrincipal: true, expiresAt: true, grantedBy: true, granteeKey: true, granteeScope: true, id: true, registryId: true, updatedAt: true, updatedByPrincipal: true } }).execute(); + +// Get one by id +const item = await db.platformRegistryGrant.findOne({ id: '', select: { actions: true, createdAt: true, createdByPrincipal: true, expiresAt: true, grantedBy: true, granteeKey: true, granteeScope: true, id: true, registryId: true, updatedAt: true, updatedByPrincipal: true } }).execute(); + +// Create +const created = await db.platformRegistryGrant.create({ data: { actions: '', createdByPrincipal: '', expiresAt: '', grantedBy: '', granteeKey: '', granteeScope: '', registryId: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformRegistryGrant.update({ where: { id: '' }, data: { actions: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformRegistryGrant.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformRepository` + +CRUD operations for PlatformRepository records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `cloneUrl` | String | Yes | +| `cloneUrlTrgmSimilarity` | Float | Yes | +| `createdAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | +| `defaultBranch` | String | Yes | +| `defaultBranchTrgmSimilarity` | Float | Yes | +| `description` | String | Yes | +| `descriptionTrgmSimilarity` | Float | Yes | +| `embedding` | Vector | Yes | +| `embeddingUpdatedAt` | Datetime | Yes | +| `embeddingVectorDistance` | Float | Yes | +| `externalId` | String | Yes | +| `externalIdTrgmSimilarity` | Float | Yes | +| `id` | UUID | No | +| `isArchived` | Boolean | Yes | +| `metadata` | JSON | Yes | +| `name` | String | Yes | +| `nameTrgmSimilarity` | Float | Yes | +| `ownerId` | UUID | Yes | +| `provider` | String | Yes | +| `providerTrgmSimilarity` | Float | Yes | +| `search` | FullText | Yes | +| `searchScore` | Float | Yes | +| `searchTsvRank` | Float | Yes | +| `slug` | String | Yes | +| `slugTrgmSimilarity` | Float | Yes | +| `updatedAt` | Datetime | No | +| `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | +| `visibility` | String | Yes | +| `visibilityTrgmSimilarity` | Float | Yes | + +**Operations:** + +```typescript +// List all platformRepository records +const items = await db.platformRepository.findMany({ select: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } }).execute(); + +// Get one by id +const item = await db.platformRepository.findOne({ id: '', select: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } }).execute(); + +// Create +const created = await db.platformRepository.create({ data: { cloneUrl: '', cloneUrlTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', defaultBranch: '', defaultBranchTrgmSimilarity: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', externalId: '', externalIdTrgmSimilarity: '', isArchived: '', metadata: '', name: '', nameTrgmSimilarity: '', ownerId: '', provider: '', providerTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', slug: '', slugTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '', visibility: '', visibilityTrgmSimilarity: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformRepository.update({ where: { id: '' }, data: { cloneUrl: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformRepository.delete({ where: { id: '' } }).execute(); +``` + +> **pgvector embedding fields:** `embedding` +> High-dimensional vector columns for semantic similarity search. Query via the Unified Search API pgvector adapter using cosine, L2, or inner-product distance. + +> **Unified Search API fields:** `search` +> Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. + +### `db.platformRepositoryEvent` + +CRUD operations for PlatformRepositoryEvent records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `actorId` | UUID | Yes | +| `commitSha` | String | Yes | +| `createdAt` | Datetime | No | +| `createdByPrincipal` | UUID | Yes | +| `deliveryId` | String | Yes | +| `eventType` | String | Yes | +| `id` | UUID | No | +| `metadata` | JSON | Yes | +| `payload` | JSON | Yes | +| `ref` | String | Yes | +| `repositoryId` | UUID | Yes | +| `updatedAt` | Datetime | No | +| `updatedByPrincipal` | UUID | Yes | + +**Operations:** + +```typescript +// List all platformRepositoryEvent records +const items = await db.platformRepositoryEvent.findMany({ select: { actorId: true, commitSha: true, createdAt: true, createdByPrincipal: true, deliveryId: true, eventType: true, id: true, metadata: true, payload: true, ref: true, repositoryId: true, updatedAt: true, updatedByPrincipal: true } }).execute(); + +// Get one by id +const item = await db.platformRepositoryEvent.findOne({ id: '', select: { actorId: true, commitSha: true, createdAt: true, createdByPrincipal: true, deliveryId: true, eventType: true, id: true, metadata: true, payload: true, ref: true, repositoryId: true, updatedAt: true, updatedByPrincipal: true } }).execute(); + +// Create +const created = await db.platformRepositoryEvent.create({ data: { actorId: '', commitSha: '', createdByPrincipal: '', deliveryId: '', eventType: '', metadata: '', payload: '', ref: '', repositoryId: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformRepositoryEvent.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformRepositoryEvent.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformRepositoryRequiredCheck` + +CRUD operations for PlatformRepositoryRequiredCheck records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `createdAt` | Datetime | No | +| `id` | UUID | No | +| `repositoryId` | UUID | Yes | +| `updatedAt` | Datetime | No | +| `workflowId` | UUID | Yes | + +**Operations:** + +```typescript +// List all platformRepositoryRequiredCheck records +const items = await db.platformRepositoryRequiredCheck.findMany({ select: { createdAt: true, id: true, repositoryId: true, updatedAt: true, workflowId: true } }).execute(); + +// Get one by id +const item = await db.platformRepositoryRequiredCheck.findOne({ id: '', select: { createdAt: true, id: true, repositoryId: true, updatedAt: true, workflowId: true } }).execute(); + +// Create +const created = await db.platformRepositoryRequiredCheck.create({ data: { repositoryId: '', workflowId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformRepositoryRequiredCheck.update({ where: { id: '' }, data: { repositoryId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformRepositoryRequiredCheck.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformRepositoryWorkflow` + +CRUD operations for PlatformRepositoryWorkflow records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `cancelInProgress` | Boolean | Yes | +| `concurrencyKey` | String | Yes | +| `createdAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | +| `eventType` | String | Yes | +| `graphId` | UUID | Yes | +| `id` | UUID | No | +| `inputs` | JSON | Yes | +| `isEnabled` | Boolean | Yes | +| `name` | String | Yes | +| `refPattern` | String | Yes | +| `repositoryId` | UUID | Yes | +| `requiredSecrets` | String | Yes | +| `slug` | String | Yes | +| `updatedAt` | Datetime | No | +| `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | + +**Operations:** + +```typescript +// List all platformRepositoryWorkflow records +const items = await db.platformRepositoryWorkflow.findMany({ select: { cancelInProgress: true, concurrencyKey: true, createdAt: true, createdBy: true, createdByPrincipal: true, eventType: true, graphId: true, id: true, inputs: true, isEnabled: true, name: true, refPattern: true, repositoryId: true, requiredSecrets: true, slug: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Get one by id +const item = await db.platformRepositoryWorkflow.findOne({ id: '', select: { cancelInProgress: true, concurrencyKey: true, createdAt: true, createdBy: true, createdByPrincipal: true, eventType: true, graphId: true, id: true, inputs: true, isEnabled: true, name: true, refPattern: true, repositoryId: true, requiredSecrets: true, slug: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Create +const created = await db.platformRepositoryWorkflow.create({ data: { cancelInProgress: '', concurrencyKey: '', createdBy: '', createdByPrincipal: '', eventType: '', graphId: '', inputs: '', isEnabled: '', name: '', refPattern: '', repositoryId: '', requiredSecrets: '', slug: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformRepositoryWorkflow.update({ where: { id: '' }, data: { cancelInProgress: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformRepositoryWorkflow.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformResource` + +CRUD operations for PlatformResource records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `annotations` | JSON | Yes | +| `cpuLimitMillicores` | BigInt | Yes | +| `cpuRequestMillicores` | BigInt | Yes | +| `createdAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | +| `errorCount` | Int | Yes | +| `id` | UUID | No | +| `imageRef` | String | Yes | +| `installationId` | UUID | Yes | +| `integrations` | String | Yes | +| `kind` | String | Yes | +| `labels` | JSON | Yes | +| `lastError` | String | Yes | +| `lastHeartbeatAt` | Datetime | Yes | +| `memoryLimitBytes` | BigInt | Yes | +| `memoryRequestBytes` | BigInt | Yes | +| `name` | String | Yes | +| `namespaceId` | UUID | Yes | +| `realm` | String | Yes | +| `replicas` | Int | Yes | +| `requiredConfigs` | ResourceRequirement | Yes | +| `requiredSecrets` | ResourceRequirement | Yes | +| `resourceDefinitionId` | UUID | Yes | +| `slug` | String | Yes | +| `spec` | JSON | Yes | +| `status` | String | Yes | +| `statusObserved` | JSON | Yes | +| `storageClass` | String | Yes | +| `storageSizeBytes` | BigInt | Yes | +| `storageTotalBytes` | BigInt | Yes | +| `updatedAt` | Datetime | No | +| `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | + +**Operations:** + +```typescript +// List all platformResource records +const items = await db.platformResource.findMany({ select: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Get one by id +const item = await db.platformResource.findOne({ id: '', select: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Create +const created = await db.platformResource.create({ data: { annotations: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', createdByPrincipal: '', errorCount: '', imageRef: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusObserved: '', storageClass: '', storageSizeBytes: '', storageTotalBytes: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformResource.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformResource.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformResourceDeclaredCapacity` + +CRUD operations for PlatformResourceDeclaredCapacity records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `cpuLimitMillicores` | BigInt | Yes | +| `cpuRequestMillicores` | BigInt | Yes | +| `installationId` | UUID | Yes | +| `isTransient` | Boolean | Yes | +| `kind` | String | Yes | +| `memoryLimitBytes` | BigInt | Yes | +| `memoryRequestBytes` | BigInt | Yes | +| `namespaceId` | UUID | Yes | +| `podCountMax` | Int | Yes | +| `podCountMin` | Int | Yes | +| `source` | String | Yes | +| `sourceId` | UUID | Yes | +| `storageSizeBytes` | BigInt | Yes | +| `storageTotalBytes` | BigInt | Yes | + +**Operations:** + +```typescript +// List all platformResourceDeclaredCapacity records +const items = await db.platformResourceDeclaredCapacity.findMany({ select: { cpuLimitMillicores: true, cpuRequestMillicores: true, installationId: true, isTransient: true, kind: true, memoryLimitBytes: true, memoryRequestBytes: true, namespaceId: true, podCountMax: true, podCountMin: true, source: true, sourceId: true, storageSizeBytes: true, storageTotalBytes: true } }).execute(); + +// Get one by id +const item = await db.platformResourceDeclaredCapacity.findOne({ id: '', select: { cpuLimitMillicores: true, cpuRequestMillicores: true, installationId: true, isTransient: true, kind: true, memoryLimitBytes: true, memoryRequestBytes: true, namespaceId: true, podCountMax: true, podCountMin: true, source: true, sourceId: true, storageSizeBytes: true, storageTotalBytes: true } }).execute(); + +// Create +const created = await db.platformResourceDeclaredCapacity.create({ data: { cpuLimitMillicores: '', cpuRequestMillicores: '', installationId: '', isTransient: '', kind: '', memoryLimitBytes: '', memoryRequestBytes: '', namespaceId: '', podCountMax: '', podCountMin: '', source: '', sourceId: '', storageSizeBytes: '', storageTotalBytes: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformResourceDeclaredCapacity.update({ where: { id: '' }, data: { cpuLimitMillicores: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformResourceDeclaredCapacity.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformResourceDefinition` + +CRUD operations for PlatformResourceDefinition records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `annotations` | JSON | Yes | +| `createdAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | +| `defaultSpec` | JSON | Yes | +| `description` | String | Yes | +| `id` | UUID | No | +| `integrations` | String | Yes | +| `kind` | String | Yes | +| `labels` | JSON | Yes | +| `name` | String | Yes | +| `namespaceId` | UUID | Yes | +| `paramsSchema` | JSON | Yes | +| `requiredConfigs` | ResourceRequirement | Yes | +| `requiredSecrets` | ResourceRequirement | Yes | +| `slug` | String | Yes | +| `stepUpMinAge` | Interval | Yes | +| `updatedAt` | Datetime | No | +| `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | + +**Operations:** + +```typescript +// List all platformResourceDefinition records +const items = await db.platformResourceDefinition.findMany({ select: { annotations: true, createdAt: true, createdBy: true, createdByPrincipal: true, defaultSpec: true, description: true, id: true, integrations: true, kind: true, labels: true, name: true, namespaceId: true, paramsSchema: true, requiredConfigs: true, requiredSecrets: true, slug: true, stepUpMinAge: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Get one by id +const item = await db.platformResourceDefinition.findOne({ id: '', select: { annotations: true, createdAt: true, createdBy: true, createdByPrincipal: true, defaultSpec: true, description: true, id: true, integrations: true, kind: true, labels: true, name: true, namespaceId: true, paramsSchema: true, requiredConfigs: true, requiredSecrets: true, slug: true, stepUpMinAge: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Create +const created = await db.platformResourceDefinition.create({ data: { annotations: '', createdBy: '', createdByPrincipal: '', defaultSpec: '', description: '', integrations: '', kind: '', labels: '', name: '', namespaceId: '', paramsSchema: '', requiredConfigs: '', requiredSecrets: '', slug: '', stepUpMinAge: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformResourceDefinition.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformResourceDefinition.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformResourceEvent` + +CRUD operations for PlatformResourceEvent records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `actorId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `eventType` | String | Yes | +| `id` | UUID | No | +| `message` | String | Yes | +| `metadata` | JSON | Yes | +| `resourceId` | UUID | Yes | + +**Operations:** + +```typescript +// List all platformResourceEvent records +const items = await db.platformResourceEvent.findMany({ select: { actorId: true, createdAt: true, eventType: true, id: true, message: true, metadata: true, resourceId: true } }).execute(); + +// Get one by id +const item = await db.platformResourceEvent.findOne({ id: '', select: { actorId: true, createdAt: true, eventType: true, id: true, message: true, metadata: true, resourceId: true } }).execute(); + +// Create +const created = await db.platformResourceEvent.create({ data: { actorId: '', eventType: '', message: '', metadata: '', resourceId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformResourceEvent.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformResourceEvent.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformResourceInstallation` + +CRUD operations for PlatformResourceInstallation records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `commitId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | +| `id` | UUID | No | +| `name` | String | Yes | +| `namespaceId` | UUID | Yes | +| `params` | JSON | Yes | +| `revision` | Int | Yes | +| `slug` | String | Yes | +| `status` | String | Yes | +| `storeId` | UUID | Yes | +| `updatedAt` | Datetime | No | +| `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | + +**Operations:** + +```typescript +// List all platformResourceInstallation records +const items = await db.platformResourceInstallation.findMany({ select: { commitId: true, createdAt: true, createdBy: true, createdByPrincipal: true, id: true, name: true, namespaceId: true, params: true, revision: true, slug: true, status: true, storeId: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Get one by id +const item = await db.platformResourceInstallation.findOne({ id: '', select: { commitId: true, createdAt: true, createdBy: true, createdByPrincipal: true, id: true, name: true, namespaceId: true, params: true, revision: true, slug: true, status: true, storeId: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Create +const created = await db.platformResourceInstallation.create({ data: { commitId: '', createdBy: '', createdByPrincipal: '', name: '', namespaceId: '', params: '', revision: '', slug: '', status: '', storeId: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformResourceInstallation.update({ where: { id: '' }, data: { commitId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformResourceInstallation.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformResourceObservedStorage` + +CRUD operations for PlatformResourceObservedStorage records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `capacity` | String | Yes | +| `capacityBytes` | BigInt | Yes | +| `claimName` | String | Yes | +| `declaredStorageClass` | String | Yes | +| `declaredStorageSizeBytes` | BigInt | Yes | +| `declaredStorageTotalBytes` | BigInt | Yes | +| `installationId` | UUID | Yes | +| `isBound` | Boolean | Yes | +| `kind` | String | Yes | +| `namespaceId` | UUID | Yes | +| `phase` | String | Yes | +| `requested` | String | Yes | +| `requestedBytes` | BigInt | Yes | +| `resourceId` | UUID | Yes | +| `resourceStatus` | String | Yes | +| `slug` | String | Yes | +| `storageClass` | String | Yes | +| `storageName` | String | Yes | + +**Operations:** + +```typescript +// List all platformResourceObservedStorage records +const items = await db.platformResourceObservedStorage.findMany({ select: { capacity: true, capacityBytes: true, claimName: true, declaredStorageClass: true, declaredStorageSizeBytes: true, declaredStorageTotalBytes: true, installationId: true, isBound: true, kind: true, namespaceId: true, phase: true, requested: true, requestedBytes: true, resourceId: true, resourceStatus: true, slug: true, storageClass: true, storageName: true } }).execute(); + +// Get one by id +const item = await db.platformResourceObservedStorage.findOne({ id: '', select: { capacity: true, capacityBytes: true, claimName: true, declaredStorageClass: true, declaredStorageSizeBytes: true, declaredStorageTotalBytes: true, installationId: true, isBound: true, kind: true, namespaceId: true, phase: true, requested: true, requestedBytes: true, resourceId: true, resourceStatus: true, slug: true, storageClass: true, storageName: true } }).execute(); + +// Create +const created = await db.platformResourceObservedStorage.create({ data: { capacity: '', capacityBytes: '', claimName: '', declaredStorageClass: '', declaredStorageSizeBytes: '', declaredStorageTotalBytes: '', installationId: '', isBound: '', kind: '', namespaceId: '', phase: '', requested: '', requestedBytes: '', resourceId: '', resourceStatus: '', slug: '', storageClass: '', storageName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformResourceObservedStorage.update({ where: { id: '' }, data: { capacity: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformResourceObservedStorage.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformResourceStatusCheck` + +CRUD operations for PlatformResourceStatusCheck records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `completedAt` | Datetime | Yes | +| `id` | UUID | No | +| `requestedAt` | Datetime | Yes | +| `requestedBy` | UUID | Yes | +| `resourceId` | UUID | Yes | +| `result` | JSON | Yes | +| `status` | String | Yes | + +**Operations:** + +```typescript +// List all platformResourceStatusCheck records +const items = await db.platformResourceStatusCheck.findMany({ select: { completedAt: true, id: true, requestedAt: true, requestedBy: true, resourceId: true, result: true, status: true } }).execute(); + +// Get one by id +const item = await db.platformResourceStatusCheck.findOne({ id: '', select: { completedAt: true, id: true, requestedAt: true, requestedBy: true, resourceId: true, result: true, status: true } }).execute(); + +// Create +const created = await db.platformResourceStatusCheck.create({ data: { completedAt: '', requestedAt: '', requestedBy: '', resourceId: '', result: '', status: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformResourceStatusCheck.update({ where: { id: '' }, data: { completedAt: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformResourceStatusCheck.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformResourceUsageLog` + +CRUD operations for PlatformResourceUsageLog records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `cpuMillicores` | BigInt | Yes | +| `id` | UUID | No | +| `intervalSeconds` | Int | Yes | +| `memoryBytes` | BigInt | Yes | +| `metrics` | JSON | Yes | +| `namespaceId` | UUID | Yes | +| `resourceId` | UUID | Yes | +| `sampledAt` | Datetime | Yes | +| `source` | String | Yes | + +**Operations:** + +```typescript +// List all platformResourceUsageLog records +const items = await db.platformResourceUsageLog.findMany({ select: { cpuMillicores: true, id: true, intervalSeconds: true, memoryBytes: true, metrics: true, namespaceId: true, resourceId: true, sampledAt: true, source: true } }).execute(); + +// Get one by id +const item = await db.platformResourceUsageLog.findOne({ id: '', select: { cpuMillicores: true, id: true, intervalSeconds: true, memoryBytes: true, metrics: true, namespaceId: true, resourceId: true, sampledAt: true, source: true } }).execute(); + +// Create +const created = await db.platformResourceUsageLog.create({ data: { cpuMillicores: '', intervalSeconds: '', memoryBytes: '', metrics: '', namespaceId: '', resourceId: '', sampledAt: '', source: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformResourceUsageLog.update({ where: { id: '' }, data: { cpuMillicores: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformResourceUsageLog.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformResourceUsageSummary` + +CRUD operations for PlatformResourceUsageSummary records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `date` | Date | Yes | +| `gbSeconds` | BigFloat | Yes | +| `id` | UUID | No | +| `maxCpuMillicores` | BigInt | Yes | +| `maxMemoryBytes` | BigInt | Yes | +| `namespaceId` | UUID | Yes | +| `resourceId` | UUID | Yes | +| `runtimeSeconds` | BigInt | Yes | +| `sampleCount` | Int | Yes | + +**Operations:** + +```typescript +// List all platformResourceUsageSummary records +const items = await db.platformResourceUsageSummary.findMany({ select: { date: true, gbSeconds: true, id: true, maxCpuMillicores: true, maxMemoryBytes: true, namespaceId: true, resourceId: true, runtimeSeconds: true, sampleCount: true } }).execute(); + +// Get one by id +const item = await db.platformResourceUsageSummary.findOne({ id: '', select: { date: true, gbSeconds: true, id: true, maxCpuMillicores: true, maxMemoryBytes: true, namespaceId: true, resourceId: true, runtimeSeconds: true, sampleCount: true } }).execute(); + +// Create +const created = await db.platformResourceUsageSummary.create({ data: { date: '', gbSeconds: '', maxCpuMillicores: '', maxMemoryBytes: '', namespaceId: '', resourceId: '', runtimeSeconds: '', sampleCount: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformResourceUsageSummary.update({ where: { id: '' }, data: { date: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformResourceUsageSummary.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformResourceUtilization` + +CRUD operations for PlatformResourceUtilization records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `avgMemoryBytes` | BigInt | Yes | +| `cpuLimitMillicores` | BigInt | Yes | +| `cpuPeakUtilization` | BigFloat | Yes | +| `cpuRequestHeadroomMillicores` | BigInt | Yes | +| `cpuRequestMillicores` | BigInt | Yes | +| `date` | Date | Yes | +| `gbSeconds` | BigFloat | Yes | +| `kind` | String | Yes | +| `maxCpuMillicores` | BigInt | Yes | +| `maxMemoryBytes` | BigInt | Yes | +| `memoryLimitBytes` | BigInt | Yes | +| `memoryPeakUtilization` | BigFloat | Yes | +| `memoryRequestBytes` | BigInt | Yes | +| `memoryRequestHeadroomBytes` | BigInt | Yes | +| `namespaceId` | UUID | Yes | +| `replicas` | Int | Yes | +| `resourceId` | UUID | Yes | +| `runtimeSeconds` | BigInt | Yes | +| `sampleCount` | Int | Yes | + +**Operations:** + +```typescript +// List all platformResourceUtilization records +const items = await db.platformResourceUtilization.findMany({ select: { avgMemoryBytes: true, cpuLimitMillicores: true, cpuPeakUtilization: true, cpuRequestHeadroomMillicores: true, cpuRequestMillicores: true, date: true, gbSeconds: true, kind: true, maxCpuMillicores: true, maxMemoryBytes: true, memoryLimitBytes: true, memoryPeakUtilization: true, memoryRequestBytes: true, memoryRequestHeadroomBytes: true, namespaceId: true, replicas: true, resourceId: true, runtimeSeconds: true, sampleCount: true } }).execute(); + +// Get one by id +const item = await db.platformResourceUtilization.findOne({ id: '', select: { avgMemoryBytes: true, cpuLimitMillicores: true, cpuPeakUtilization: true, cpuRequestHeadroomMillicores: true, cpuRequestMillicores: true, date: true, gbSeconds: true, kind: true, maxCpuMillicores: true, maxMemoryBytes: true, memoryLimitBytes: true, memoryPeakUtilization: true, memoryRequestBytes: true, memoryRequestHeadroomBytes: true, namespaceId: true, replicas: true, resourceId: true, runtimeSeconds: true, sampleCount: true } }).execute(); + +// Create +const created = await db.platformResourceUtilization.create({ data: { avgMemoryBytes: '', cpuLimitMillicores: '', cpuPeakUtilization: '', cpuRequestHeadroomMillicores: '', cpuRequestMillicores: '', date: '', gbSeconds: '', kind: '', maxCpuMillicores: '', maxMemoryBytes: '', memoryLimitBytes: '', memoryPeakUtilization: '', memoryRequestBytes: '', memoryRequestHeadroomBytes: '', namespaceId: '', replicas: '', resourceId: '', runtimeSeconds: '', sampleCount: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformResourceUtilization.update({ where: { id: '' }, data: { avgMemoryBytes: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformResourceUtilization.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformResourcesHealth` + +CRUD operations for PlatformResourcesHealth records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `annotations` | JSON | Yes | +| `cpuLimitMillicores` | BigInt | Yes | +| `cpuRequestMillicores` | BigInt | Yes | +| `createdAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | +| `errorCount` | Int | Yes | +| `id` | UUID | No | +| `imageRef` | String | Yes | +| `installationId` | UUID | Yes | +| `integrations` | String | Yes | +| `kind` | String | Yes | +| `labels` | JSON | Yes | +| `lastError` | String | Yes | +| `lastHeartbeatAt` | Datetime | Yes | +| `memoryLimitBytes` | BigInt | Yes | +| `memoryRequestBytes` | BigInt | Yes | +| `name` | String | Yes | +| `namespaceId` | UUID | Yes | +| `realm` | String | Yes | +| `replicas` | Int | Yes | +| `requiredConfigs` | ResourceRequirement | Yes | +| `requiredSecrets` | ResourceRequirement | Yes | +| `resourceDefinitionId` | UUID | Yes | +| `slug` | String | Yes | +| `spec` | JSON | Yes | +| `status` | String | Yes | +| `statusDetail` | String | Yes | +| `statusObserved` | JSON | Yes | +| `storageClass` | String | Yes | +| `storageSizeBytes` | BigInt | Yes | +| `storageTotalBytes` | BigInt | Yes | +| `updatedAt` | Datetime | No | +| `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | + +**Operations:** + +```typescript +// List all platformResourcesHealth records +const items = await db.platformResourcesHealth.findMany({ select: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusDetail: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Get one by id +const item = await db.platformResourcesHealth.findOne({ id: '', select: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusDetail: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Create +const created = await db.platformResourcesHealth.create({ data: { annotations: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', createdByPrincipal: '', errorCount: '', imageRef: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusDetail: '', statusObserved: '', storageClass: '', storageSizeBytes: '', storageTotalBytes: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformResourcesHealth.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformResourcesHealth.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformResourcesRequirementsState` + +CRUD operations for PlatformResourcesRequirementsState records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `configHash` | String | Yes | +| `configObjectName` | String | Yes | +| `requirementsHash` | String | Yes | +| `resourceId` | UUID | Yes | +| `secretsHash` | String | Yes | +| `secretsObjectName` | String | Yes | +| `slug` | String | Yes | + +**Operations:** + +```typescript +// List all platformResourcesRequirementsState records +const items = await db.platformResourcesRequirementsState.findMany({ select: { configHash: true, configObjectName: true, requirementsHash: true, resourceId: true, secretsHash: true, secretsObjectName: true, slug: true } }).execute(); + +// Get one by id +const item = await db.platformResourcesRequirementsState.findOne({ id: '', select: { configHash: true, configObjectName: true, requirementsHash: true, resourceId: true, secretsHash: true, secretsObjectName: true, slug: true } }).execute(); + +// Create +const created = await db.platformResourcesRequirementsState.create({ data: { configHash: '', configObjectName: '', requirementsHash: '', resourceId: '', secretsHash: '', secretsObjectName: '', slug: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformResourcesRequirementsState.update({ where: { id: '' }, data: { configHash: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformResourcesRequirementsState.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformResourcesResolvedRequirement` + +CRUD operations for PlatformResourcesResolvedRequirement records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `atomId` | UUID | Yes | +| `configObjectName` | String | Yes | +| `name` | String | Yes | +| `namespaceId` | UUID | Yes | +| `present` | Boolean | Yes | +| `realm` | String | Yes | +| `required` | Boolean | Yes | +| `requirementKind` | String | Yes | +| `resourceId` | UUID | Yes | +| `secretsObjectName` | String | Yes | +| `slug` | String | Yes | + +**Operations:** + +```typescript +// List all platformResourcesResolvedRequirement records +const items = await db.platformResourcesResolvedRequirement.findMany({ select: { atomId: true, configObjectName: true, name: true, namespaceId: true, present: true, realm: true, required: true, requirementKind: true, resourceId: true, secretsObjectName: true, slug: true } }).execute(); + +// Get one by id +const item = await db.platformResourcesResolvedRequirement.findOne({ id: '', select: { atomId: true, configObjectName: true, name: true, namespaceId: true, present: true, realm: true, required: true, requirementKind: true, resourceId: true, secretsObjectName: true, slug: true } }).execute(); + +// Create +const created = await db.platformResourcesResolvedRequirement.create({ data: { atomId: '', configObjectName: '', name: '', namespaceId: '', present: '', realm: '', required: '', requirementKind: '', resourceId: '', secretsObjectName: '', slug: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformResourcesResolvedRequirement.update({ where: { id: '' }, data: { atomId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformResourcesResolvedRequirement.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformWebhookEndpoint` + +CRUD operations for PlatformWebhookEndpoint records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `active` | Boolean | Yes | +| `createdAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | +| `functionDefinitionId` | UUID | Yes | +| `host` | String | Yes | +| `id` | UUID | No | +| `namespaceId` | UUID | Yes | +| `path` | String | Yes | +| `provider` | String | Yes | +| `replayWindowSeconds` | Int | Yes | +| `signingSecretName` | String | Yes | +| `updatedAt` | Datetime | No | +| `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | + +**Operations:** + +```typescript +// List all platformWebhookEndpoint records +const items = await db.platformWebhookEndpoint.findMany({ select: { active: true, createdAt: true, createdBy: true, createdByPrincipal: true, functionDefinitionId: true, host: true, id: true, namespaceId: true, path: true, provider: true, replayWindowSeconds: true, signingSecretName: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Get one by id +const item = await db.platformWebhookEndpoint.findOne({ id: '', select: { active: true, createdAt: true, createdBy: true, createdByPrincipal: true, functionDefinitionId: true, host: true, id: true, namespaceId: true, path: true, provider: true, replayWindowSeconds: true, signingSecretName: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Create +const created = await db.platformWebhookEndpoint.create({ data: { active: '', createdBy: '', createdByPrincipal: '', functionDefinitionId: '', host: '', namespaceId: '', path: '', provider: '', replayWindowSeconds: '', signingSecretName: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformWebhookEndpoint.update({ where: { id: '' }, data: { active: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformWebhookEndpoint.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformWebhookEvent` + +CRUD operations for PlatformWebhookEvent records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `createdAt` | Datetime | No | +| `endpointId` | UUID | Yes | +| `error` | String | Yes | +| `externalEventId` | String | Yes | +| `id` | UUID | No | +| `invocationCreatedAt` | Datetime | Yes | +| `invocationId` | UUID | Yes | +| `payload` | JSON | Yes | +| `provider` | String | Yes | +| `providerTimestamp` | Datetime | Yes | +| `status` | String | Yes | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all platformWebhookEvent records +const items = await db.platformWebhookEvent.findMany({ select: { createdAt: true, endpointId: true, error: true, externalEventId: true, id: true, invocationCreatedAt: true, invocationId: true, payload: true, provider: true, providerTimestamp: true, status: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.platformWebhookEvent.findOne({ id: '', select: { createdAt: true, endpointId: true, error: true, externalEventId: true, id: true, invocationCreatedAt: true, invocationId: true, payload: true, provider: true, providerTimestamp: true, status: true, updatedAt: true } }).execute(); + +// Create +const created = await db.platformWebhookEvent.create({ data: { endpointId: '', error: '', externalEventId: '', invocationCreatedAt: '', invocationId: '', payload: '', provider: '', providerTimestamp: '', status: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformWebhookEvent.update({ where: { id: '' }, data: { endpointId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformWebhookEvent.delete({ where: { id: '' } }).execute(); +``` + +### `db.proposalComment` + +CRUD operations for ProposalComment records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `actorId` | UUID | Yes | +| `attachments` | ConstructiveInternalTypeUpload | Yes | +| `body` | String | Yes | +| `bodyTrgmSimilarity` | Float | Yes | +| `createdAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `embedding` | Vector | Yes | +| `embeddingUpdatedAt` | Datetime | Yes | +| `embeddingVectorDistance` | Float | Yes | +| `id` | UUID | No | +| `line` | Int | Yes | +| `outdatedAt` | Datetime | Yes | +| `path` | String | Yes | +| `pathTrgmSimilarity` | Float | Yes | +| `proposalId` | UUID | Yes | +| `resolvedAt` | Datetime | Yes | +| `search` | FullText | Yes | +| `searchScore` | Float | Yes | +| `searchTsvRank` | Float | Yes | +| `updatedAt` | Datetime | No | +| `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | + +**Operations:** + +```typescript +// List all proposalComment records +const items = await db.proposalComment.findMany({ select: { actorId: true, attachments: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Get one by id +const item = await db.proposalComment.findOne({ id: '', select: { actorId: true, attachments: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Create +const created = await db.proposalComment.create({ data: { actorId: '', attachments: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', line: '', outdatedAt: '', path: '', pathTrgmSimilarity: '', proposalId: '', resolvedAt: '', search: '', searchScore: '', searchTsvRank: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.proposalComment.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.proposalComment.delete({ where: { id: '' } }).execute(); +``` + +> **pgvector embedding fields:** `embedding` +> High-dimensional vector columns for semantic similarity search. Query via the Unified Search API pgvector adapter using cosine, L2, or inner-product distance. + +> **Unified Search API fields:** `search` +> Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. + +### `db.proposal` + +CRUD operations for Proposal records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `actorId` | UUID | Yes | +| `body` | String | Yes | +| `bodyTrgmSimilarity` | Float | Yes | +| `closedReason` | String | Yes | +| `closedReasonTrgmSimilarity` | Float | Yes | +| `createdAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `decidedAt` | Datetime | Yes | +| `dueAt` | Datetime | Yes | +| `embedding` | Vector | Yes | +| `embeddingUpdatedAt` | Datetime | Yes | +| `embeddingVectorDistance` | Float | Yes | +| `id` | UUID | No | +| `kind` | String | Yes | +| `kindTrgmSimilarity` | Float | Yes | +| `labels` | String | Yes | +| `mergeCommit` | String | Yes | +| `mergeCommitTrgmSimilarity` | Float | Yes | +| `mergeMethod` | String | Yes | +| `mergeMethodTrgmSimilarity` | Float | Yes | +| `mergeRequestedAt` | Datetime | Yes | +| `mergedAt` | Datetime | Yes | +| `metadata` | JSON | Yes | +| `parentId` | UUID | Yes | +| `priority` | BigFloat | Yes | +| `repositoryId` | UUID | Yes | +| `resolution` | String | Yes | +| `resolutionTrgmSimilarity` | Float | Yes | +| `search` | FullText | Yes | +| `searchScore` | Float | Yes | +| `searchTsvRank` | Float | Yes | +| `sourceRef` | String | Yes | +| `sourceRefTrgmSimilarity` | Float | Yes | +| `status` | String | Yes | +| `statusTrgmSimilarity` | Float | Yes | +| `targetRef` | String | Yes | +| `targetRefTrgmSimilarity` | Float | Yes | +| `title` | String | Yes | +| `titleTrgmSimilarity` | Float | Yes | +| `updatedAt` | Datetime | No | +| `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | + +**Operations:** + +```typescript +// List all proposal records +const items = await db.proposal.findMany({ select: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, decidedAt: true, dueAt: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Get one by id +const item = await db.proposal.findOne({ id: '', select: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, decidedAt: true, dueAt: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Create +const created = await db.proposal.create({ data: { actorId: '', body: '', bodyTrgmSimilarity: '', closedReason: '', closedReasonTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', decidedAt: '', dueAt: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', kind: '', kindTrgmSimilarity: '', labels: '', mergeCommit: '', mergeCommitTrgmSimilarity: '', mergeMethod: '', mergeMethodTrgmSimilarity: '', mergeRequestedAt: '', mergedAt: '', metadata: '', parentId: '', priority: '', repositoryId: '', resolution: '', resolutionTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', sourceRef: '', sourceRefTrgmSimilarity: '', status: '', statusTrgmSimilarity: '', targetRef: '', targetRefTrgmSimilarity: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.proposal.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.proposal.delete({ where: { id: '' } }).execute(); +``` + +> **pgvector embedding fields:** `embedding` +> High-dimensional vector columns for semantic similarity search. Query via the Unified Search API pgvector adapter using cosine, L2, or inner-product distance. + +> **Unified Search API fields:** `search` +> Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. + +### `db.proposalFileView` + +CRUD operations for ProposalFileView records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `blobSha` | String | Yes | +| `createdAt` | Datetime | No | +| `createdByPrincipal` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `id` | UUID | No | +| `path` | String | Yes | +| `proposalId` | UUID | Yes | +| `reviewerId` | UUID | Yes | +| `updatedAt` | Datetime | No | +| `updatedByPrincipal` | UUID | Yes | +| `viewedAt` | Datetime | Yes | + +**Operations:** + +```typescript +// List all proposalFileView records +const items = await db.proposalFileView.findMany({ select: { blobSha: true, createdAt: true, createdByPrincipal: true, databaseId: true, id: true, path: true, proposalId: true, reviewerId: true, updatedAt: true, updatedByPrincipal: true, viewedAt: true } }).execute(); + +// Get one by id +const item = await db.proposalFileView.findOne({ id: '', select: { blobSha: true, createdAt: true, createdByPrincipal: true, databaseId: true, id: true, path: true, proposalId: true, reviewerId: true, updatedAt: true, updatedByPrincipal: true, viewedAt: true } }).execute(); + +// Create +const created = await db.proposalFileView.create({ data: { blobSha: '', createdByPrincipal: '', databaseId: '', path: '', proposalId: '', reviewerId: '', updatedByPrincipal: '', viewedAt: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.proposalFileView.update({ where: { id: '' }, data: { blobSha: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.proposalFileView.delete({ where: { id: '' } }).execute(); +``` + +### `db.proposalReaction` + +CRUD operations for ProposalReaction records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `actorId` | UUID | Yes | +| `commentId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `createdByPrincipal` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `emoji` | String | Yes | +| `id` | UUID | No | +| `proposalId` | UUID | Yes | +| `updatedAt` | Datetime | No | +| `updatedByPrincipal` | UUID | Yes | + +**Operations:** + +```typescript +// List all proposalReaction records +const items = await db.proposalReaction.findMany({ select: { actorId: true, commentId: true, createdAt: true, createdByPrincipal: true, databaseId: true, emoji: true, id: true, proposalId: true, updatedAt: true, updatedByPrincipal: true } }).execute(); + +// Get one by id +const item = await db.proposalReaction.findOne({ id: '', select: { actorId: true, commentId: true, createdAt: true, createdByPrincipal: true, databaseId: true, emoji: true, id: true, proposalId: true, updatedAt: true, updatedByPrincipal: true } }).execute(); + +// Create +const created = await db.proposalReaction.create({ data: { actorId: '', commentId: '', createdByPrincipal: '', databaseId: '', emoji: '', proposalId: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.proposalReaction.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.proposalReaction.delete({ where: { id: '' } }).execute(); +``` + +### `db.proposalReview` + +CRUD operations for ProposalReview records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `body` | String | Yes | +| `bodyTrgmSimilarity` | Float | Yes | +| `commitSha` | String | Yes | +| `commitShaTrgmSimilarity` | Float | Yes | +| `createdAt` | Datetime | No | +| `createdByPrincipal` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `id` | UUID | No | +| `proposalId` | UUID | Yes | +| `reviewerId` | UUID | Yes | +| `search` | FullText | Yes | +| `searchScore` | Float | Yes | +| `searchTsvRank` | Float | Yes | +| `submittedAt` | Datetime | Yes | +| `updatedAt` | Datetime | No | +| `updatedByPrincipal` | UUID | Yes | +| `verdict` | String | Yes | +| `verdictTrgmSimilarity` | Float | Yes | + +**Operations:** + +```typescript +// List all proposalReview records +const items = await db.proposalReview.findMany({ select: { body: true, bodyTrgmSimilarity: true, commitSha: true, commitShaTrgmSimilarity: true, createdAt: true, createdByPrincipal: true, databaseId: true, id: true, proposalId: true, reviewerId: true, search: true, searchScore: true, searchTsvRank: true, submittedAt: true, updatedAt: true, updatedByPrincipal: true, verdict: true, verdictTrgmSimilarity: true } }).execute(); + +// Get one by id +const item = await db.proposalReview.findOne({ id: '', select: { body: true, bodyTrgmSimilarity: true, commitSha: true, commitShaTrgmSimilarity: true, createdAt: true, createdByPrincipal: true, databaseId: true, id: true, proposalId: true, reviewerId: true, search: true, searchScore: true, searchTsvRank: true, submittedAt: true, updatedAt: true, updatedByPrincipal: true, verdict: true, verdictTrgmSimilarity: true } }).execute(); + +// Create +const created = await db.proposalReview.create({ data: { body: '', bodyTrgmSimilarity: '', commitSha: '', commitShaTrgmSimilarity: '', createdByPrincipal: '', databaseId: '', proposalId: '', reviewerId: '', search: '', searchScore: '', searchTsvRank: '', submittedAt: '', updatedByPrincipal: '', verdict: '', verdictTrgmSimilarity: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.proposalReview.update({ where: { id: '' }, data: { body: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.proposalReview.delete({ where: { id: '' } }).execute(); +``` + +> **Unified Search API fields:** `search` +> Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. + +### `db.proposalsChunk` + +CRUD operations for ProposalsChunk records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `actorId` | UUID | Yes | +| `body` | String | Yes | +| `chunkIndex` | Int | Yes | +| `createdAt` | Datetime | No | +| `databaseId` | UUID | Yes | +| `embedding` | Vector | Yes | +| `embeddingVectorDistance` | Float | Yes | +| `id` | UUID | No | +| `metadata` | JSON | Yes | +| `proposalsId` | UUID | Yes | +| `searchScore` | Float | Yes | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all proposalsChunk records +const items = await db.proposalsChunk.findMany({ select: { actorId: true, body: true, chunkIndex: true, createdAt: true, databaseId: true, embedding: true, embeddingVectorDistance: true, id: true, metadata: true, proposalsId: true, searchScore: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.proposalsChunk.findOne({ id: '', select: { actorId: true, body: true, chunkIndex: true, createdAt: true, databaseId: true, embedding: true, embeddingVectorDistance: true, id: true, metadata: true, proposalsId: true, searchScore: true, updatedAt: true } }).execute(); + +// Create +const created = await db.proposalsChunk.create({ data: { actorId: '', body: '', chunkIndex: '', databaseId: '', embedding: '', embeddingVectorDistance: '', metadata: '', proposalsId: '', searchScore: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.proposalsChunk.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.proposalsChunk.delete({ where: { id: '' } }).execute(); +``` + +> **pgvector embedding fields:** `embedding` +> High-dimensional vector columns for semantic similarity search. Query via the Unified Search API pgvector adapter using cosine, L2, or inner-product distance. + +### `db.registryBinding` + +CRUD operations for RegistryBinding records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `createdAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `id` | UUID | No | +| `metadata` | JSON | Yes | +| `namespaceId` | UUID | Yes | +| `observedCredentialVersion` | String | Yes | +| `pullSecretName` | String | Yes | +| `realm` | String | Yes | +| `registryHost` | String | Yes | +| `registryId` | UUID | Yes | +| `status` | String | Yes | +| `updatedAt` | Datetime | No | +| `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | + +**Operations:** + +```typescript +// List all registryBinding records +const items = await db.registryBinding.findMany({ select: { createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, id: true, metadata: true, namespaceId: true, observedCredentialVersion: true, pullSecretName: true, realm: true, registryHost: true, registryId: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Get one by id +const item = await db.registryBinding.findOne({ id: '', select: { createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, id: true, metadata: true, namespaceId: true, observedCredentialVersion: true, pullSecretName: true, realm: true, registryHost: true, registryId: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Create +const created = await db.registryBinding.create({ data: { createdBy: '', createdByPrincipal: '', databaseId: '', metadata: '', namespaceId: '', observedCredentialVersion: '', pullSecretName: '', realm: '', registryHost: '', registryId: '', status: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.registryBinding.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.registryBinding.delete({ where: { id: '' } }).execute(); +``` + +### `db.registry` + +CRUD operations for Registry records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `authMode` | String | Yes | +| `basePath` | String | Yes | +| `createdAt` | Datetime | No | +| `createdByPrincipal` | UUID | Yes | +| `credentialSecretName` | String | Yes | +| `databaseId` | UUID | Yes | +| `host` | String | Yes | +| `id` | UUID | No | +| `installationId` | UUID | Yes | +| `isPublished` | Boolean | Yes | +| `kind` | String | Yes | +| `labels` | JSON | Yes | +| `lastError` | String | Yes | +| `metadata` | JSON | Yes | +| `name` | String | Yes | +| `platformOnly` | Boolean | Yes | +| `role` | String | Yes | +| `status` | String | Yes | +| `updatedAt` | Datetime | No | +| `updatedByPrincipal` | UUID | Yes | + +**Operations:** + +```typescript +// List all registry records +const items = await db.registry.findMany({ select: { authMode: true, basePath: true, createdAt: true, createdByPrincipal: true, credentialSecretName: true, databaseId: true, host: true, id: true, installationId: true, isPublished: true, kind: true, labels: true, lastError: true, metadata: true, name: true, platformOnly: true, role: true, status: true, updatedAt: true, updatedByPrincipal: true } }).execute(); + +// Get one by id +const item = await db.registry.findOne({ id: '', select: { authMode: true, basePath: true, createdAt: true, createdByPrincipal: true, credentialSecretName: true, databaseId: true, host: true, id: true, installationId: true, isPublished: true, kind: true, labels: true, lastError: true, metadata: true, name: true, platformOnly: true, role: true, status: true, updatedAt: true, updatedByPrincipal: true } }).execute(); + +// Create +const created = await db.registry.create({ data: { authMode: '', basePath: '', createdByPrincipal: '', credentialSecretName: '', databaseId: '', host: '', installationId: '', isPublished: '', kind: '', labels: '', lastError: '', metadata: '', name: '', platformOnly: '', role: '', status: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.registry.update({ where: { id: '' }, data: { authMode: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.registry.delete({ where: { id: '' } }).execute(); +``` + +### `db.registryGrant` + +CRUD operations for RegistryGrant records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `actions` | String | Yes | +| `createdAt` | Datetime | No | +| `createdByPrincipal` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `expiresAt` | Datetime | Yes | +| `grantedBy` | UUID | Yes | +| `granteeKey` | UUID | Yes | +| `granteeScope` | String | Yes | +| `id` | UUID | No | +| `registryId` | UUID | Yes | +| `updatedAt` | Datetime | No | +| `updatedByPrincipal` | UUID | Yes | + +**Operations:** + +```typescript +// List all registryGrant records +const items = await db.registryGrant.findMany({ select: { actions: true, createdAt: true, createdByPrincipal: true, databaseId: true, expiresAt: true, grantedBy: true, granteeKey: true, granteeScope: true, id: true, registryId: true, updatedAt: true, updatedByPrincipal: true } }).execute(); + +// Get one by id +const item = await db.registryGrant.findOne({ id: '', select: { actions: true, createdAt: true, createdByPrincipal: true, databaseId: true, expiresAt: true, grantedBy: true, granteeKey: true, granteeScope: true, id: true, registryId: true, updatedAt: true, updatedByPrincipal: true } }).execute(); + +// Create +const created = await db.registryGrant.create({ data: { actions: '', createdByPrincipal: '', databaseId: '', expiresAt: '', grantedBy: '', granteeKey: '', granteeScope: '', registryId: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.registryGrant.update({ where: { id: '' }, data: { actions: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.registryGrant.delete({ where: { id: '' } }).execute(); +``` + +### `db.repository` + +CRUD operations for Repository records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `cloneUrl` | String | Yes | +| `cloneUrlTrgmSimilarity` | Float | Yes | +| `createdAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `defaultBranch` | String | Yes | +| `defaultBranchTrgmSimilarity` | Float | Yes | +| `description` | String | Yes | +| `descriptionTrgmSimilarity` | Float | Yes | +| `embedding` | Vector | Yes | +| `embeddingUpdatedAt` | Datetime | Yes | +| `embeddingVectorDistance` | Float | Yes | +| `externalId` | String | Yes | +| `externalIdTrgmSimilarity` | Float | Yes | +| `id` | UUID | No | +| `isArchived` | Boolean | Yes | +| `metadata` | JSON | Yes | +| `name` | String | Yes | +| `nameTrgmSimilarity` | Float | Yes | +| `ownerId` | UUID | Yes | +| `provider` | String | Yes | +| `providerTrgmSimilarity` | Float | Yes | +| `search` | FullText | Yes | +| `searchScore` | Float | Yes | +| `searchTsvRank` | Float | Yes | +| `slug` | String | Yes | +| `slugTrgmSimilarity` | Float | Yes | +| `updatedAt` | Datetime | No | +| `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | +| `visibility` | String | Yes | +| `visibilityTrgmSimilarity` | Float | Yes | + +**Operations:** + +```typescript +// List all repository records +const items = await db.repository.findMany({ select: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } }).execute(); + +// Get one by id +const item = await db.repository.findOne({ id: '', select: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } }).execute(); + +// Create +const created = await db.repository.create({ data: { cloneUrl: '', cloneUrlTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', defaultBranch: '', defaultBranchTrgmSimilarity: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', externalId: '', externalIdTrgmSimilarity: '', isArchived: '', metadata: '', name: '', nameTrgmSimilarity: '', ownerId: '', provider: '', providerTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', slug: '', slugTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '', visibility: '', visibilityTrgmSimilarity: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.repository.update({ where: { id: '' }, data: { cloneUrl: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.repository.delete({ where: { id: '' } }).execute(); +``` + +> **pgvector embedding fields:** `embedding` +> High-dimensional vector columns for semantic similarity search. Query via the Unified Search API pgvector adapter using cosine, L2, or inner-product distance. + +> **Unified Search API fields:** `search` +> Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. + +### `db.repositoryEvent` + +CRUD operations for RepositoryEvent records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `actorId` | UUID | Yes | +| `commitSha` | String | Yes | +| `createdAt` | Datetime | No | +| `createdByPrincipal` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `deliveryId` | String | Yes | +| `eventType` | String | Yes | +| `id` | UUID | No | +| `metadata` | JSON | Yes | +| `payload` | JSON | Yes | +| `ref` | String | Yes | +| `repositoryId` | UUID | Yes | +| `updatedAt` | Datetime | No | +| `updatedByPrincipal` | UUID | Yes | + +**Operations:** + +```typescript +// List all repositoryEvent records +const items = await db.repositoryEvent.findMany({ select: { actorId: true, commitSha: true, createdAt: true, createdByPrincipal: true, databaseId: true, deliveryId: true, eventType: true, id: true, metadata: true, payload: true, ref: true, repositoryId: true, updatedAt: true, updatedByPrincipal: true } }).execute(); + +// Get one by id +const item = await db.repositoryEvent.findOne({ id: '', select: { actorId: true, commitSha: true, createdAt: true, createdByPrincipal: true, databaseId: true, deliveryId: true, eventType: true, id: true, metadata: true, payload: true, ref: true, repositoryId: true, updatedAt: true, updatedByPrincipal: true } }).execute(); + +// Create +const created = await db.repositoryEvent.create({ data: { actorId: '', commitSha: '', createdByPrincipal: '', databaseId: '', deliveryId: '', eventType: '', metadata: '', payload: '', ref: '', repositoryId: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.repositoryEvent.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.repositoryEvent.delete({ where: { id: '' } }).execute(); +``` + +### `db.repositoryRequiredCheck` + +CRUD operations for RepositoryRequiredCheck records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `createdAt` | Datetime | No | +| `databaseId` | UUID | Yes | +| `id` | UUID | No | +| `repositoryId` | UUID | Yes | +| `updatedAt` | Datetime | No | +| `workflowId` | UUID | Yes | + +**Operations:** + +```typescript +// List all repositoryRequiredCheck records +const items = await db.repositoryRequiredCheck.findMany({ select: { createdAt: true, databaseId: true, id: true, repositoryId: true, updatedAt: true, workflowId: true } }).execute(); + +// Get one by id +const item = await db.repositoryRequiredCheck.findOne({ id: '', select: { createdAt: true, databaseId: true, id: true, repositoryId: true, updatedAt: true, workflowId: true } }).execute(); + +// Create +const created = await db.repositoryRequiredCheck.create({ data: { databaseId: '', repositoryId: '', workflowId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.repositoryRequiredCheck.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.repositoryRequiredCheck.delete({ where: { id: '' } }).execute(); +``` + +### `db.repositoryWorkflow` + +CRUD operations for RepositoryWorkflow records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `cancelInProgress` | Boolean | Yes | +| `concurrencyKey` | String | Yes | +| `createdAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `eventType` | String | Yes | +| `graphId` | UUID | Yes | +| `id` | UUID | No | +| `inputs` | JSON | Yes | +| `isEnabled` | Boolean | Yes | +| `name` | String | Yes | +| `refPattern` | String | Yes | +| `repositoryId` | UUID | Yes | +| `requiredSecrets` | String | Yes | +| `slug` | String | Yes | +| `updatedAt` | Datetime | No | +| `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | + +**Operations:** + +```typescript +// List all repositoryWorkflow records +const items = await db.repositoryWorkflow.findMany({ select: { cancelInProgress: true, concurrencyKey: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, eventType: true, graphId: true, id: true, inputs: true, isEnabled: true, name: true, refPattern: true, repositoryId: true, requiredSecrets: true, slug: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Get one by id +const item = await db.repositoryWorkflow.findOne({ id: '', select: { cancelInProgress: true, concurrencyKey: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, eventType: true, graphId: true, id: true, inputs: true, isEnabled: true, name: true, refPattern: true, repositoryId: true, requiredSecrets: true, slug: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Create +const created = await db.repositoryWorkflow.create({ data: { cancelInProgress: '', concurrencyKey: '', createdBy: '', createdByPrincipal: '', databaseId: '', eventType: '', graphId: '', inputs: '', isEnabled: '', name: '', refPattern: '', repositoryId: '', requiredSecrets: '', slug: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.repositoryWorkflow.update({ where: { id: '' }, data: { cancelInProgress: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.repositoryWorkflow.delete({ where: { id: '' } }).execute(); +``` + +### `db.resource` + +CRUD operations for Resource records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `annotations` | JSON | Yes | +| `cpuLimitMillicores` | BigInt | Yes | +| `cpuRequestMillicores` | BigInt | Yes | +| `createdAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `errorCount` | Int | Yes | +| `id` | UUID | No | +| `imageRef` | String | Yes | +| `installationId` | UUID | Yes | +| `integrations` | String | Yes | +| `kind` | String | Yes | +| `labels` | JSON | Yes | +| `lastError` | String | Yes | +| `lastHeartbeatAt` | Datetime | Yes | +| `memoryLimitBytes` | BigInt | Yes | +| `memoryRequestBytes` | BigInt | Yes | +| `name` | String | Yes | +| `namespaceId` | UUID | Yes | +| `realm` | String | Yes | +| `replicas` | Int | Yes | +| `requiredConfigs` | ResourceRequirement | Yes | +| `requiredSecrets` | ResourceRequirement | Yes | +| `resourceDefinitionId` | UUID | Yes | +| `slug` | String | Yes | +| `spec` | JSON | Yes | +| `status` | String | Yes | +| `statusObserved` | JSON | Yes | +| `storageClass` | String | Yes | +| `storageSizeBytes` | BigInt | Yes | +| `storageTotalBytes` | BigInt | Yes | +| `updatedAt` | Datetime | No | +| `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | + +**Operations:** + +```typescript +// List all resource records +const items = await db.resource.findMany({ select: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Get one by id +const item = await db.resource.findOne({ id: '', select: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Create +const created = await db.resource.create({ data: { annotations: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', createdByPrincipal: '', databaseId: '', errorCount: '', imageRef: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusObserved: '', storageClass: '', storageSizeBytes: '', storageTotalBytes: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.resource.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.resource.delete({ where: { id: '' } }).execute(); +``` + +### `db.resourceDeclaredCapacity` + +CRUD operations for ResourceDeclaredCapacity records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `cpuLimitMillicores` | BigInt | Yes | +| `cpuRequestMillicores` | BigInt | Yes | +| `installationId` | UUID | Yes | +| `isTransient` | Boolean | Yes | +| `kind` | String | Yes | +| `memoryLimitBytes` | BigInt | Yes | +| `memoryRequestBytes` | BigInt | Yes | +| `namespaceId` | UUID | Yes | +| `podCountMax` | Int | Yes | +| `podCountMin` | Int | Yes | +| `source` | String | Yes | +| `sourceId` | UUID | Yes | +| `storageSizeBytes` | BigInt | Yes | +| `storageTotalBytes` | BigInt | Yes | + +**Operations:** + +```typescript +// List all resourceDeclaredCapacity records +const items = await db.resourceDeclaredCapacity.findMany({ select: { cpuLimitMillicores: true, cpuRequestMillicores: true, installationId: true, isTransient: true, kind: true, memoryLimitBytes: true, memoryRequestBytes: true, namespaceId: true, podCountMax: true, podCountMin: true, source: true, sourceId: true, storageSizeBytes: true, storageTotalBytes: true } }).execute(); + +// Get one by id +const item = await db.resourceDeclaredCapacity.findOne({ id: '', select: { cpuLimitMillicores: true, cpuRequestMillicores: true, installationId: true, isTransient: true, kind: true, memoryLimitBytes: true, memoryRequestBytes: true, namespaceId: true, podCountMax: true, podCountMin: true, source: true, sourceId: true, storageSizeBytes: true, storageTotalBytes: true } }).execute(); + +// Create +const created = await db.resourceDeclaredCapacity.create({ data: { cpuLimitMillicores: '', cpuRequestMillicores: '', installationId: '', isTransient: '', kind: '', memoryLimitBytes: '', memoryRequestBytes: '', namespaceId: '', podCountMax: '', podCountMin: '', source: '', sourceId: '', storageSizeBytes: '', storageTotalBytes: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.resourceDeclaredCapacity.update({ where: { id: '' }, data: { cpuLimitMillicores: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.resourceDeclaredCapacity.delete({ where: { id: '' } }).execute(); +``` + +### `db.resourceDefinition` + +CRUD operations for ResourceDefinition records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `annotations` | JSON | Yes | +| `createdAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `defaultSpec` | JSON | Yes | +| `description` | String | Yes | +| `id` | UUID | No | +| `integrations` | String | Yes | +| `kind` | String | Yes | +| `labels` | JSON | Yes | +| `name` | String | Yes | +| `namespaceId` | UUID | Yes | +| `paramsSchema` | JSON | Yes | +| `requiredConfigs` | ResourceRequirement | Yes | +| `requiredSecrets` | ResourceRequirement | Yes | +| `slug` | String | Yes | +| `stepUpMinAge` | Interval | Yes | +| `updatedAt` | Datetime | No | +| `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | + +**Operations:** + +```typescript +// List all resourceDefinition records +const items = await db.resourceDefinition.findMany({ select: { annotations: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, defaultSpec: true, description: true, id: true, integrations: true, kind: true, labels: true, name: true, namespaceId: true, paramsSchema: true, requiredConfigs: true, requiredSecrets: true, slug: true, stepUpMinAge: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Get one by id +const item = await db.resourceDefinition.findOne({ id: '', select: { annotations: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, defaultSpec: true, description: true, id: true, integrations: true, kind: true, labels: true, name: true, namespaceId: true, paramsSchema: true, requiredConfigs: true, requiredSecrets: true, slug: true, stepUpMinAge: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Create +const created = await db.resourceDefinition.create({ data: { annotations: '', createdBy: '', createdByPrincipal: '', databaseId: '', defaultSpec: '', description: '', integrations: '', kind: '', labels: '', name: '', namespaceId: '', paramsSchema: '', requiredConfigs: '', requiredSecrets: '', slug: '', stepUpMinAge: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.resourceDefinition.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.resourceDefinition.delete({ where: { id: '' } }).execute(); +``` + +### `db.resourceEvent` + +CRUD operations for ResourceEvent records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `actorId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `databaseId` | UUID | Yes | +| `eventType` | String | Yes | +| `id` | UUID | No | +| `message` | String | Yes | +| `metadata` | JSON | Yes | +| `resourceId` | UUID | Yes | + +**Operations:** + +```typescript +// List all resourceEvent records +const items = await db.resourceEvent.findMany({ select: { actorId: true, createdAt: true, databaseId: true, eventType: true, id: true, message: true, metadata: true, resourceId: true } }).execute(); + +// Get one by id +const item = await db.resourceEvent.findOne({ id: '', select: { actorId: true, createdAt: true, databaseId: true, eventType: true, id: true, message: true, metadata: true, resourceId: true } }).execute(); + +// Create +const created = await db.resourceEvent.create({ data: { actorId: '', databaseId: '', eventType: '', message: '', metadata: '', resourceId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.resourceEvent.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.resourceEvent.delete({ where: { id: '' } }).execute(); +``` + +### `db.resourceInstallation` + +CRUD operations for ResourceInstallation records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `commitId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `id` | UUID | No | +| `name` | String | Yes | +| `namespaceId` | UUID | Yes | +| `params` | JSON | Yes | +| `revision` | Int | Yes | +| `slug` | String | Yes | +| `status` | String | Yes | +| `storeId` | UUID | Yes | +| `updatedAt` | Datetime | No | +| `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | + +**Operations:** + +```typescript +// List all resourceInstallation records +const items = await db.resourceInstallation.findMany({ select: { commitId: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, id: true, name: true, namespaceId: true, params: true, revision: true, slug: true, status: true, storeId: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Get one by id +const item = await db.resourceInstallation.findOne({ id: '', select: { commitId: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, id: true, name: true, namespaceId: true, params: true, revision: true, slug: true, status: true, storeId: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Create +const created = await db.resourceInstallation.create({ data: { commitId: '', createdBy: '', createdByPrincipal: '', databaseId: '', name: '', namespaceId: '', params: '', revision: '', slug: '', status: '', storeId: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.resourceInstallation.update({ where: { id: '' }, data: { commitId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.resourceInstallation.delete({ where: { id: '' } }).execute(); +``` + +### `db.resourceObservedStorage` + +CRUD operations for ResourceObservedStorage records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `capacity` | String | Yes | +| `capacityBytes` | BigInt | Yes | +| `claimName` | String | Yes | +| `declaredStorageClass` | String | Yes | +| `declaredStorageSizeBytes` | BigInt | Yes | +| `declaredStorageTotalBytes` | BigInt | Yes | +| `installationId` | UUID | Yes | +| `isBound` | Boolean | Yes | +| `kind` | String | Yes | +| `namespaceId` | UUID | Yes | +| `phase` | String | Yes | +| `requested` | String | Yes | +| `requestedBytes` | BigInt | Yes | +| `resourceId` | UUID | Yes | +| `resourceStatus` | String | Yes | +| `slug` | String | Yes | +| `storageClass` | String | Yes | +| `storageName` | String | Yes | + +**Operations:** + +```typescript +// List all resourceObservedStorage records +const items = await db.resourceObservedStorage.findMany({ select: { capacity: true, capacityBytes: true, claimName: true, declaredStorageClass: true, declaredStorageSizeBytes: true, declaredStorageTotalBytes: true, installationId: true, isBound: true, kind: true, namespaceId: true, phase: true, requested: true, requestedBytes: true, resourceId: true, resourceStatus: true, slug: true, storageClass: true, storageName: true } }).execute(); + +// Get one by id +const item = await db.resourceObservedStorage.findOne({ id: '', select: { capacity: true, capacityBytes: true, claimName: true, declaredStorageClass: true, declaredStorageSizeBytes: true, declaredStorageTotalBytes: true, installationId: true, isBound: true, kind: true, namespaceId: true, phase: true, requested: true, requestedBytes: true, resourceId: true, resourceStatus: true, slug: true, storageClass: true, storageName: true } }).execute(); + +// Create +const created = await db.resourceObservedStorage.create({ data: { capacity: '', capacityBytes: '', claimName: '', declaredStorageClass: '', declaredStorageSizeBytes: '', declaredStorageTotalBytes: '', installationId: '', isBound: '', kind: '', namespaceId: '', phase: '', requested: '', requestedBytes: '', resourceId: '', resourceStatus: '', slug: '', storageClass: '', storageName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.resourceObservedStorage.update({ where: { id: '' }, data: { capacity: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.resourceObservedStorage.delete({ where: { id: '' } }).execute(); +``` + +### `db.resourceStatusCheck` + +CRUD operations for ResourceStatusCheck records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `completedAt` | Datetime | Yes | +| `databaseId` | UUID | Yes | +| `id` | UUID | No | +| `requestedAt` | Datetime | Yes | +| `requestedBy` | UUID | Yes | +| `resourceId` | UUID | Yes | +| `result` | JSON | Yes | +| `status` | String | Yes | + +**Operations:** + +```typescript +// List all resourceStatusCheck records +const items = await db.resourceStatusCheck.findMany({ select: { completedAt: true, databaseId: true, id: true, requestedAt: true, requestedBy: true, resourceId: true, result: true, status: true } }).execute(); + +// Get one by id +const item = await db.resourceStatusCheck.findOne({ id: '', select: { completedAt: true, databaseId: true, id: true, requestedAt: true, requestedBy: true, resourceId: true, result: true, status: true } }).execute(); + +// Create +const created = await db.resourceStatusCheck.create({ data: { completedAt: '', databaseId: '', requestedAt: '', requestedBy: '', resourceId: '', result: '', status: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.resourceStatusCheck.update({ where: { id: '' }, data: { completedAt: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.resourceStatusCheck.delete({ where: { id: '' } }).execute(); +``` + +### `db.resourceUsageLog` + +CRUD operations for ResourceUsageLog records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `cpuMillicores` | BigInt | Yes | +| `databaseId` | UUID | Yes | +| `id` | UUID | No | +| `intervalSeconds` | Int | Yes | +| `memoryBytes` | BigInt | Yes | +| `metrics` | JSON | Yes | +| `namespaceId` | UUID | Yes | +| `resourceId` | UUID | Yes | +| `sampledAt` | Datetime | Yes | +| `source` | String | Yes | + +**Operations:** + +```typescript +// List all resourceUsageLog records +const items = await db.resourceUsageLog.findMany({ select: { cpuMillicores: true, databaseId: true, id: true, intervalSeconds: true, memoryBytes: true, metrics: true, namespaceId: true, resourceId: true, sampledAt: true, source: true } }).execute(); + +// Get one by id +const item = await db.resourceUsageLog.findOne({ id: '', select: { cpuMillicores: true, databaseId: true, id: true, intervalSeconds: true, memoryBytes: true, metrics: true, namespaceId: true, resourceId: true, sampledAt: true, source: true } }).execute(); + +// Create +const created = await db.resourceUsageLog.create({ data: { cpuMillicores: '', databaseId: '', intervalSeconds: '', memoryBytes: '', metrics: '', namespaceId: '', resourceId: '', sampledAt: '', source: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.resourceUsageLog.update({ where: { id: '' }, data: { cpuMillicores: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.resourceUsageLog.delete({ where: { id: '' } }).execute(); +``` + +### `db.resourceUsageSummary` + +CRUD operations for ResourceUsageSummary records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `databaseId` | UUID | Yes | +| `date` | Date | Yes | +| `gbSeconds` | BigFloat | Yes | +| `id` | UUID | No | +| `maxCpuMillicores` | BigInt | Yes | +| `maxMemoryBytes` | BigInt | Yes | +| `namespaceId` | UUID | Yes | +| `resourceId` | UUID | Yes | +| `runtimeSeconds` | BigInt | Yes | +| `sampleCount` | Int | Yes | + +**Operations:** + +```typescript +// List all resourceUsageSummary records +const items = await db.resourceUsageSummary.findMany({ select: { databaseId: true, date: true, gbSeconds: true, id: true, maxCpuMillicores: true, maxMemoryBytes: true, namespaceId: true, resourceId: true, runtimeSeconds: true, sampleCount: true } }).execute(); + +// Get one by id +const item = await db.resourceUsageSummary.findOne({ id: '', select: { databaseId: true, date: true, gbSeconds: true, id: true, maxCpuMillicores: true, maxMemoryBytes: true, namespaceId: true, resourceId: true, runtimeSeconds: true, sampleCount: true } }).execute(); + +// Create +const created = await db.resourceUsageSummary.create({ data: { databaseId: '', date: '', gbSeconds: '', maxCpuMillicores: '', maxMemoryBytes: '', namespaceId: '', resourceId: '', runtimeSeconds: '', sampleCount: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.resourceUsageSummary.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.resourceUsageSummary.delete({ where: { id: '' } }).execute(); +``` + +### `db.resourceUtilization` + +CRUD operations for ResourceUtilization records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `avgMemoryBytes` | BigInt | Yes | +| `cpuLimitMillicores` | BigInt | Yes | +| `cpuPeakUtilization` | BigFloat | Yes | +| `cpuRequestHeadroomMillicores` | BigInt | Yes | +| `cpuRequestMillicores` | BigInt | Yes | +| `date` | Date | Yes | +| `gbSeconds` | BigFloat | Yes | +| `kind` | String | Yes | +| `maxCpuMillicores` | BigInt | Yes | +| `maxMemoryBytes` | BigInt | Yes | +| `memoryLimitBytes` | BigInt | Yes | +| `memoryPeakUtilization` | BigFloat | Yes | +| `memoryRequestBytes` | BigInt | Yes | +| `memoryRequestHeadroomBytes` | BigInt | Yes | +| `namespaceId` | UUID | Yes | +| `replicas` | Int | Yes | +| `resourceId` | UUID | Yes | +| `runtimeSeconds` | BigInt | Yes | +| `sampleCount` | Int | Yes | + +**Operations:** + +```typescript +// List all resourceUtilization records +const items = await db.resourceUtilization.findMany({ select: { avgMemoryBytes: true, cpuLimitMillicores: true, cpuPeakUtilization: true, cpuRequestHeadroomMillicores: true, cpuRequestMillicores: true, date: true, gbSeconds: true, kind: true, maxCpuMillicores: true, maxMemoryBytes: true, memoryLimitBytes: true, memoryPeakUtilization: true, memoryRequestBytes: true, memoryRequestHeadroomBytes: true, namespaceId: true, replicas: true, resourceId: true, runtimeSeconds: true, sampleCount: true } }).execute(); + +// Get one by id +const item = await db.resourceUtilization.findOne({ id: '', select: { avgMemoryBytes: true, cpuLimitMillicores: true, cpuPeakUtilization: true, cpuRequestHeadroomMillicores: true, cpuRequestMillicores: true, date: true, gbSeconds: true, kind: true, maxCpuMillicores: true, maxMemoryBytes: true, memoryLimitBytes: true, memoryPeakUtilization: true, memoryRequestBytes: true, memoryRequestHeadroomBytes: true, namespaceId: true, replicas: true, resourceId: true, runtimeSeconds: true, sampleCount: true } }).execute(); + +// Create +const created = await db.resourceUtilization.create({ data: { avgMemoryBytes: '', cpuLimitMillicores: '', cpuPeakUtilization: '', cpuRequestHeadroomMillicores: '', cpuRequestMillicores: '', date: '', gbSeconds: '', kind: '', maxCpuMillicores: '', maxMemoryBytes: '', memoryLimitBytes: '', memoryPeakUtilization: '', memoryRequestBytes: '', memoryRequestHeadroomBytes: '', namespaceId: '', replicas: '', resourceId: '', runtimeSeconds: '', sampleCount: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.resourceUtilization.update({ where: { id: '' }, data: { avgMemoryBytes: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.resourceUtilization.delete({ where: { id: '' } }).execute(); +``` + +### `db.resourcesHealth` + +CRUD operations for ResourcesHealth records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `annotations` | JSON | Yes | +| `cpuLimitMillicores` | BigInt | Yes | +| `cpuRequestMillicores` | BigInt | Yes | +| `createdAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `errorCount` | Int | Yes | +| `id` | UUID | No | +| `imageRef` | String | Yes | +| `installationId` | UUID | Yes | +| `integrations` | String | Yes | +| `kind` | String | Yes | +| `labels` | JSON | Yes | +| `lastError` | String | Yes | +| `lastHeartbeatAt` | Datetime | Yes | +| `memoryLimitBytes` | BigInt | Yes | +| `memoryRequestBytes` | BigInt | Yes | +| `name` | String | Yes | +| `namespaceId` | UUID | Yes | +| `realm` | String | Yes | +| `replicas` | Int | Yes | +| `requiredConfigs` | ResourceRequirement | Yes | +| `requiredSecrets` | ResourceRequirement | Yes | +| `resourceDefinitionId` | UUID | Yes | +| `slug` | String | Yes | +| `spec` | JSON | Yes | +| `status` | String | Yes | +| `statusDetail` | String | Yes | +| `statusObserved` | JSON | Yes | +| `storageClass` | String | Yes | +| `storageSizeBytes` | BigInt | Yes | +| `storageTotalBytes` | BigInt | Yes | +| `updatedAt` | Datetime | No | +| `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | + +**Operations:** + +```typescript +// List all resourcesHealth records +const items = await db.resourcesHealth.findMany({ select: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusDetail: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Get one by id +const item = await db.resourcesHealth.findOne({ id: '', select: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusDetail: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Create +const created = await db.resourcesHealth.create({ data: { annotations: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', createdByPrincipal: '', databaseId: '', errorCount: '', imageRef: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusDetail: '', statusObserved: '', storageClass: '', storageSizeBytes: '', storageTotalBytes: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.resourcesHealth.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.resourcesHealth.delete({ where: { id: '' } }).execute(); +``` + +### `db.resourcesRequirementsState` + +CRUD operations for ResourcesRequirementsState records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `configHash` | String | Yes | +| `configObjectName` | String | Yes | +| `requirementsHash` | String | Yes | +| `resourceId` | UUID | Yes | +| `secretsHash` | String | Yes | +| `secretsObjectName` | String | Yes | +| `slug` | String | Yes | + +**Operations:** + +```typescript +// List all resourcesRequirementsState records +const items = await db.resourcesRequirementsState.findMany({ select: { configHash: true, configObjectName: true, requirementsHash: true, resourceId: true, secretsHash: true, secretsObjectName: true, slug: true } }).execute(); + +// Get one by id +const item = await db.resourcesRequirementsState.findOne({ id: '', select: { configHash: true, configObjectName: true, requirementsHash: true, resourceId: true, secretsHash: true, secretsObjectName: true, slug: true } }).execute(); + +// Create +const created = await db.resourcesRequirementsState.create({ data: { configHash: '', configObjectName: '', requirementsHash: '', resourceId: '', secretsHash: '', secretsObjectName: '', slug: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.resourcesRequirementsState.update({ where: { id: '' }, data: { configHash: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.resourcesRequirementsState.delete({ where: { id: '' } }).execute(); +``` + +### `db.resourcesResolvedRequirement` + +CRUD operations for ResourcesResolvedRequirement records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `atomId` | UUID | Yes | +| `configObjectName` | String | Yes | +| `name` | String | Yes | +| `namespaceId` | UUID | Yes | +| `present` | Boolean | Yes | +| `realm` | String | Yes | +| `required` | Boolean | Yes | +| `requirementKind` | String | Yes | +| `resourceId` | UUID | Yes | +| `secretsObjectName` | String | Yes | +| `slug` | String | Yes | + +**Operations:** + +```typescript +// List all resourcesResolvedRequirement records +const items = await db.resourcesResolvedRequirement.findMany({ select: { atomId: true, configObjectName: true, name: true, namespaceId: true, present: true, realm: true, required: true, requirementKind: true, resourceId: true, secretsObjectName: true, slug: true } }).execute(); + +// Get one by id +const item = await db.resourcesResolvedRequirement.findOne({ id: '', select: { atomId: true, configObjectName: true, name: true, namespaceId: true, present: true, realm: true, required: true, requirementKind: true, resourceId: true, secretsObjectName: true, slug: true } }).execute(); + +// Create +const created = await db.resourcesResolvedRequirement.create({ data: { atomId: '', configObjectName: '', name: '', namespaceId: '', present: '', realm: '', required: '', requirementKind: '', resourceId: '', secretsObjectName: '', slug: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.resourcesResolvedRequirement.update({ where: { id: '' }, data: { atomId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.resourcesResolvedRequirement.delete({ where: { id: '' } }).execute(); +``` + +### `db.webhookEndpoint` + +CRUD operations for WebhookEndpoint records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `active` | Boolean | Yes | +| `createdAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `functionDefinitionId` | UUID | Yes | +| `host` | String | Yes | +| `id` | UUID | No | +| `namespaceId` | UUID | Yes | +| `path` | String | Yes | +| `provider` | String | Yes | +| `replayWindowSeconds` | Int | Yes | +| `signingSecretName` | String | Yes | +| `updatedAt` | Datetime | No | +| `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | + +**Operations:** + +```typescript +// List all webhookEndpoint records +const items = await db.webhookEndpoint.findMany({ select: { active: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, functionDefinitionId: true, host: true, id: true, namespaceId: true, path: true, provider: true, replayWindowSeconds: true, signingSecretName: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Get one by id +const item = await db.webhookEndpoint.findOne({ id: '', select: { active: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, functionDefinitionId: true, host: true, id: true, namespaceId: true, path: true, provider: true, replayWindowSeconds: true, signingSecretName: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Create +const created = await db.webhookEndpoint.create({ data: { active: '', createdBy: '', createdByPrincipal: '', databaseId: '', functionDefinitionId: '', host: '', namespaceId: '', path: '', provider: '', replayWindowSeconds: '', signingSecretName: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.webhookEndpoint.update({ where: { id: '' }, data: { active: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.webhookEndpoint.delete({ where: { id: '' } }).execute(); +``` + +### `db.webhookEvent` + +CRUD operations for WebhookEvent records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `createdAt` | Datetime | No | +| `databaseId` | UUID | Yes | +| `endpointId` | UUID | Yes | +| `error` | String | Yes | +| `externalEventId` | String | Yes | +| `id` | UUID | No | +| `invocationCreatedAt` | Datetime | Yes | +| `invocationId` | UUID | Yes | +| `payload` | JSON | Yes | +| `provider` | String | Yes | +| `providerTimestamp` | Datetime | Yes | +| `status` | String | Yes | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all webhookEvent records +const items = await db.webhookEvent.findMany({ select: { createdAt: true, databaseId: true, endpointId: true, error: true, externalEventId: true, id: true, invocationCreatedAt: true, invocationId: true, payload: true, provider: true, providerTimestamp: true, status: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.webhookEvent.findOne({ id: '', select: { createdAt: true, databaseId: true, endpointId: true, error: true, externalEventId: true, id: true, invocationCreatedAt: true, invocationId: true, payload: true, provider: true, providerTimestamp: true, status: true, updatedAt: true } }).execute(); + +// Create +const created = await db.webhookEvent.create({ data: { databaseId: '', endpointId: '', error: '', externalEventId: '', invocationCreatedAt: '', invocationId: '', payload: '', provider: '', providerTimestamp: '', status: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.webhookEvent.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.webhookEvent.delete({ where: { id: '' } }).execute(); +``` + +## Custom Operations + +### `db.query.databaseReadFunctionGraph` + +databaseReadFunctionGraph + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `graphId` | UUID | + +```typescript +const result = await db.query.databaseReadFunctionGraph({ graphId: '' }).execute(); +``` + +### `db.query.readFunctionGraph` + +readFunctionGraph + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `graphId` | UUID | + +```typescript +const result = await db.query.readFunctionGraph({ graphId: '' }).execute(); +``` + +### `db.mutation.addEdge` + +addEdge + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | AddEdgeInput (required) | + +```typescript +const result = await db.mutation.addEdge({ input: '' }).execute(); +``` + +### `db.mutation.addEdgeAndSave` + +addEdgeAndSave + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | AddEdgeAndSaveInput (required) | + +```typescript +const result = await db.mutation.addEdgeAndSave({ input: '' }).execute(); +``` + +### `db.mutation.addNode` + +addNode + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | AddNodeInput (required) | + +```typescript +const result = await db.mutation.addNode({ input: '' }).execute(); +``` + +### `db.mutation.addNodeAndSave` + +addNodeAndSave + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | AddNodeAndSaveInput (required) | + +```typescript +const result = await db.mutation.addNodeAndSave({ input: '' }).execute(); +``` + +### `db.mutation.approveNode` + +approveNode + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | ApproveNodeInput (required) | + +```typescript +const result = await db.mutation.approveNode({ input: { approved: '', executionId: '', feedback: '', nodeName: '' } }).execute(); +``` + +### `db.mutation.copyGraph` + +copyGraph + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | CopyGraphInput (required) | + +```typescript +const result = await db.mutation.copyGraph({ input: { graphId: '', name: '', scopeId: '' } }).execute(); +``` + +### `db.mutation.databaseAddEdge` + +databaseAddEdge + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | DatabaseAddEdgeInput (required) | + +```typescript +const result = await db.mutation.databaseAddEdge({ input: '' }).execute(); +``` + +### `db.mutation.databaseAddEdgeAndSave` + +databaseAddEdgeAndSave + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | DatabaseAddEdgeAndSaveInput (required) | + +```typescript +const result = await db.mutation.databaseAddEdgeAndSave({ input: '' }).execute(); +``` + +### `db.mutation.databaseAddNode` + +databaseAddNode + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | DatabaseAddNodeInput (required) | + +```typescript +const result = await db.mutation.databaseAddNode({ input: '' }).execute(); +``` + +### `db.mutation.databaseAddNodeAndSave` + +databaseAddNodeAndSave + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | DatabaseAddNodeAndSaveInput (required) | + +```typescript +const result = await db.mutation.databaseAddNodeAndSave({ input: '' }).execute(); +``` + +### `db.mutation.databaseApproveNode` + +databaseApproveNode + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | DatabaseApproveNodeInput (required) | + +```typescript +const result = await db.mutation.databaseApproveNode({ input: { approved: '', executionId: '', feedback: '', nodeName: '' } }).execute(); +``` + +### `db.mutation.databaseCopyGraph` + +databaseCopyGraph + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | DatabaseCopyGraphInput (required) | + +```typescript +const result = await db.mutation.databaseCopyGraph({ input: { databaseId: '', graphId: '', name: '' } }).execute(); +``` + +### `db.mutation.databaseCreateFunctionGraph` + +databaseCreateFunctionGraph + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | DatabaseCreateFunctionGraphInput (required) | + +```typescript +const result = await db.mutation.databaseCreateFunctionGraph({ input: '' }).execute(); +``` -CRUD operations for ResourcesResolvedRequirement records. +### `db.mutation.databaseGraphInitEmptyRepo` -**Fields:** +databaseGraphInitEmptyRepo -| Field | Type | Editable | -|-------|------|----------| -| `atomId` | UUID | Yes | -| `configObjectName` | String | Yes | -| `name` | String | Yes | -| `namespaceId` | UUID | Yes | -| `present` | Boolean | Yes | -| `realm` | String | Yes | -| `required` | Boolean | Yes | -| `requirementKind` | String | Yes | -| `resourceId` | UUID | Yes | -| `secretsObjectName` | String | Yes | -| `slug` | String | Yes | +- **Type:** mutation +- **Arguments:** -**Operations:** + | Argument | Type | + |----------|------| + | `input` | DatabaseGraphInitEmptyRepoInput (required) | ```typescript -// List all resourcesResolvedRequirement records -const items = await db.resourcesResolvedRequirement.findMany({ select: { atomId: true, configObjectName: true, name: true, namespaceId: true, present: true, realm: true, required: true, requirementKind: true, resourceId: true, secretsObjectName: true, slug: true } }).execute(); +const result = await db.mutation.databaseGraphInitEmptyRepo({ input: { sId: '', storeId: '' } }).execute(); +``` -// Get one by id -const item = await db.resourcesResolvedRequirement.findOne({ id: '', select: { atomId: true, configObjectName: true, name: true, namespaceId: true, present: true, realm: true, required: true, requirementKind: true, resourceId: true, secretsObjectName: true, slug: true } }).execute(); +### `db.mutation.databaseGraphInsertNodeAtPath` -// Create -const created = await db.resourcesResolvedRequirement.create({ data: { atomId: '', configObjectName: '', name: '', namespaceId: '', present: '', realm: '', required: '', requirementKind: '', resourceId: '', secretsObjectName: '', slug: '' }, select: { id: true } }).execute(); +databaseGraphInsertNodeAtPath -// Update -const updated = await db.resourcesResolvedRequirement.update({ where: { id: '' }, data: { atomId: '' }, select: { id: true } }).execute(); +- **Type:** mutation +- **Arguments:** -// Delete -const deleted = await db.resourcesResolvedRequirement.delete({ where: { id: '' } }).execute(); -``` + | Argument | Type | + |----------|------| + | `input` | DatabaseGraphInsertNodeAtPathInput (required) | -### `db.webhookEndpoint` +```typescript +const result = await db.mutation.databaseGraphInsertNodeAtPath({ input: '' }).execute(); +``` -CRUD operations for WebhookEndpoint records. +### `db.mutation.databaseGraphInsertNodesAtPaths` -**Fields:** +databaseGraphInsertNodesAtPaths -| Field | Type | Editable | -|-------|------|----------| -| `active` | Boolean | Yes | -| `createdAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `databaseId` | UUID | Yes | -| `functionDefinitionId` | UUID | Yes | -| `host` | String | Yes | -| `id` | UUID | No | -| `namespaceId` | UUID | Yes | -| `path` | String | Yes | -| `provider` | String | Yes | -| `replayWindowSeconds` | Int | Yes | -| `signingSecretName` | String | Yes | -| `updatedAt` | Datetime | No | -| `updatedBy` | UUID | Yes | +- **Type:** mutation +- **Arguments:** -**Operations:** + | Argument | Type | + |----------|------| + | `input` | DatabaseGraphInsertNodesAtPathsInput (required) | ```typescript -// List all webhookEndpoint records -const items = await db.webhookEndpoint.findMany({ select: { active: true, createdAt: true, createdBy: true, databaseId: true, functionDefinitionId: true, host: true, id: true, namespaceId: true, path: true, provider: true, replayWindowSeconds: true, signingSecretName: true, updatedAt: true, updatedBy: true } }).execute(); +const result = await db.mutation.databaseGraphInsertNodesAtPaths({ input: '' }).execute(); +``` -// Get one by id -const item = await db.webhookEndpoint.findOne({ id: '', select: { active: true, createdAt: true, createdBy: true, databaseId: true, functionDefinitionId: true, host: true, id: true, namespaceId: true, path: true, provider: true, replayWindowSeconds: true, signingSecretName: true, updatedAt: true, updatedBy: true } }).execute(); +### `db.mutation.databaseGraphSetAndCommit` -// Create -const created = await db.webhookEndpoint.create({ data: { active: '', createdBy: '', databaseId: '', functionDefinitionId: '', host: '', namespaceId: '', path: '', provider: '', replayWindowSeconds: '', signingSecretName: '', updatedBy: '' }, select: { id: true } }).execute(); +databaseGraphSetAndCommit -// Update -const updated = await db.webhookEndpoint.update({ where: { id: '' }, data: { active: '' }, select: { id: true } }).execute(); +- **Type:** mutation +- **Arguments:** -// Delete -const deleted = await db.webhookEndpoint.delete({ where: { id: '' } }).execute(); -``` + | Argument | Type | + |----------|------| + | `input` | DatabaseGraphSetAndCommitInput (required) | -### `db.webhookEvent` +```typescript +const result = await db.mutation.databaseGraphSetAndCommit({ input: '' }).execute(); +``` -CRUD operations for WebhookEvent records. +### `db.mutation.databaseGraphSetDataAtPath` -**Fields:** +databaseGraphSetDataAtPath -| Field | Type | Editable | -|-------|------|----------| -| `createdAt` | Datetime | No | -| `databaseId` | UUID | Yes | -| `endpointId` | UUID | Yes | -| `error` | String | Yes | -| `externalEventId` | String | Yes | -| `id` | UUID | No | -| `invocationCreatedAt` | Datetime | Yes | -| `invocationId` | UUID | Yes | -| `payload` | JSON | Yes | -| `provider` | String | Yes | -| `providerTimestamp` | Datetime | Yes | -| `status` | String | Yes | -| `updatedAt` | Datetime | No | +- **Type:** mutation +- **Arguments:** -**Operations:** + | Argument | Type | + |----------|------| + | `input` | DatabaseGraphSetDataAtPathInput (required) | ```typescript -// List all webhookEvent records -const items = await db.webhookEvent.findMany({ select: { createdAt: true, databaseId: true, endpointId: true, error: true, externalEventId: true, id: true, invocationCreatedAt: true, invocationId: true, payload: true, provider: true, providerTimestamp: true, status: true, updatedAt: true } }).execute(); +const result = await db.mutation.databaseGraphSetDataAtPath({ input: { data: '', path: '', root: '', sId: '' } }).execute(); +``` -// Get one by id -const item = await db.webhookEvent.findOne({ id: '', select: { createdAt: true, databaseId: true, endpointId: true, error: true, externalEventId: true, id: true, invocationCreatedAt: true, invocationId: true, payload: true, provider: true, providerTimestamp: true, status: true, updatedAt: true } }).execute(); +### `db.mutation.databaseGraphSetManyAndCommit` -// Create -const created = await db.webhookEvent.create({ data: { databaseId: '', endpointId: '', error: '', externalEventId: '', invocationCreatedAt: '', invocationId: '', payload: '', provider: '', providerTimestamp: '', status: '' }, select: { id: true } }).execute(); +databaseGraphSetManyAndCommit -// Update -const updated = await db.webhookEvent.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +- **Type:** mutation +- **Arguments:** -// Delete -const deleted = await db.webhookEvent.delete({ where: { id: '' } }).execute(); -``` + | Argument | Type | + |----------|------| + | `input` | DatabaseGraphSetManyAndCommitInput (required) | -## Custom Operations +```typescript +const result = await db.mutation.databaseGraphSetManyAndCommit({ input: { entries: '', message: '', refname: '', sId: '', storeId: '' } }).execute(); +``` -### `db.query.readFunctionGraph` +### `db.mutation.databaseImportDefinitions` -readFunctionGraph +databaseImportDefinitions -- **Type:** query +- **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `graphId` | UUID | + | `input` | DatabaseImportDefinitionsInput (required) | ```typescript -const result = await db.query.readFunctionGraph({ graphId: '' }).execute(); +const result = await db.mutation.databaseImportDefinitions({ input: { contexts: '', graphId: '', sourceCommitId: '', sourceScopeId: '' } }).execute(); ``` -### `db.mutation.addEdge` +### `db.mutation.databaseImportGraphJson` -addEdge +databaseImportGraphJson - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | AddEdgeInput (required) | + | `input` | DatabaseImportGraphJsonInput (required) | ```typescript -const result = await db.mutation.addEdge({ input: '' }).execute(); +const result = await db.mutation.databaseImportGraphJson({ input: '' }).execute(); ``` -### `db.mutation.addEdgeAndSave` +### `db.mutation.databaseSaveGraph` -addEdgeAndSave +databaseSaveGraph - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | AddEdgeAndSaveInput (required) | + | `input` | DatabaseSaveGraphInput (required) | ```typescript -const result = await db.mutation.addEdgeAndSave({ input: '' }).execute(); +const result = await db.mutation.databaseSaveGraph({ input: { graphId: '', message: '', rootHash: '' } }).execute(); ``` -### `db.mutation.addNode` +### `db.mutation.databaseStartExecution` -addNode +databaseStartExecution - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | AddNodeInput (required) | + | `input` | DatabaseStartExecutionInput (required) | ```typescript -const result = await db.mutation.addNode({ input: '' }).execute(); +const result = await db.mutation.databaseStartExecution({ input: '' }).execute(); ``` -### `db.mutation.addNodeAndSave` +### `db.mutation.databaseValidateFunctionGraph` -addNodeAndSave +databaseValidateFunctionGraph - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | AddNodeAndSaveInput (required) | + | `input` | DatabaseValidateFunctionGraphInput (required) | ```typescript -const result = await db.mutation.addNodeAndSave({ input: '' }).execute(); +const result = await db.mutation.databaseValidateFunctionGraph({ input: { graphId: '' } }).execute(); ``` -### `db.mutation.copyGraph` +### `db.mutation.functionInvocationsCreateSync` -copyGraph +functionInvocationsCreateSync - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | CopyGraphInput (required) | + | `input` | FunctionInvocationsCreateSyncInput (required) | ```typescript -const result = await db.mutation.copyGraph({ input: { graphId: '', name: '', scopeId: '' } }).execute(); +const result = await db.mutation.functionInvocationsCreateSync({ input: { entityId: '', payload: '', provenance: '', routeBindingId: '', taskIdentifier: '' } }).execute(); ``` ### `db.mutation.importDefinitions` @@ -3053,6 +5724,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 +5769,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 +5814,36 @@ 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.platformFunctionInvocationsCreateSync` + +platformFunctionInvocationsCreateSync + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | PlatformFunctionInvocationsCreateSyncInput (required) | + +```typescript +const result = await db.mutation.platformFunctionInvocationsCreateSync({ input: { entityId: '', payload: '', provenance: '', routeBindingId: '', taskIdentifier: '' } }).execute(); +``` + ### `db.mutation.platformInfraInitEmptyRepo` platformInfraInitEmptyRepo @@ -3128,6 +5874,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 +5919,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 @@ -3205,10 +5996,11 @@ const result = await db.mutation.platformResourceInstallationsUpgrade({ input: { ### `db.mutation.provisionBucket` -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. +Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. - **Type:** mutation - **Arguments:** @@ -3296,6 +6088,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 +6118,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..49ca8f7c16 100644 --- a/sdk/constructive-cli/src/compute/orm/index.ts +++ b/sdk/constructive-cli/src/compute/orm/index.ts @@ -5,6 +5,19 @@ */ import { OrmClient } from './client'; import type { OrmClientConfig } from './client'; +import { BuildModel } from './models/build'; +import { BuildStepModel } from './models/buildStep'; +import { BuilderBindingModel } from './models/builderBinding'; +import { ContentPresetModel } from './models/contentPreset'; +import { DatabaseFunctionGraphModel } from './models/databaseFunctionGraph'; +import { DatabaseFunctionGraphExecutionModel } from './models/databaseFunctionGraphExecution'; +import { DatabaseFunctionGraphExecutionNodeStateModel } from './models/databaseFunctionGraphExecutionNodeState'; +import { DatabaseFunctionGraphExecutionOutputModel } from './models/databaseFunctionGraphExecutionOutput'; +import { DatabaseGraphCommitModel } from './models/databaseGraphCommit'; +import { DatabaseGraphGetAllTreeNodesRecordModel } from './models/databaseGraphGetAllTreeNodesRecord'; +import { DatabaseGraphObjectModel } from './models/databaseGraphObject'; +import { DatabaseGraphRefModel } from './models/databaseGraphRef'; +import { DatabaseGraphStoreModel } from './models/databaseGraphStore'; import { DbPresetModel } from './models/dbPreset'; import { FunctionApiBindingModel } from './models/functionApiBinding'; import { FunctionCapabilityBindingModel } from './models/functionCapabilityBinding'; @@ -23,6 +36,8 @@ import { FunctionGraphStoreModel } from './models/functionGraphStore'; import { FunctionInvocationAttemptModel } from './models/functionInvocationAttempt'; import { FunctionInvocationModel } from './models/functionInvocation'; import { GetAllTreeNodesRecordModel } from './models/getAllTreeNodesRecord'; +import { ImageModel } from './models/image'; +import { ImageGrantModel } from './models/imageGrant'; import { InfraCommitModel } from './models/infraCommit'; import { InfraGetAllTreeNodesRecordModel } from './models/infraGetAllTreeNodesRecord'; import { InfraObjectModel } from './models/infraObject'; @@ -31,6 +46,9 @@ import { InfraStoreModel } from './models/infraStore'; import { IntegrationProviderModel } from './models/integrationProvider'; import { NamespaceModel } from './models/namespace'; import { NamespaceEventModel } from './models/namespaceEvent'; +import { PlatformBuildModel } from './models/platformBuild'; +import { PlatformBuildStepModel } from './models/platformBuildStep'; +import { PlatformBuilderBindingModel } from './models/platformBuilderBinding'; import { PlatformFunctionApiBindingModel } from './models/platformFunctionApiBinding'; import { PlatformFunctionCapabilityBindingModel } from './models/platformFunctionCapabilityBinding'; import { PlatformFunctionDefinitionModel } from './models/platformFunctionDefinition'; @@ -39,18 +57,36 @@ import { PlatformFunctionDeploymentEventModel } from './models/platformFunctionD import { PlatformFunctionExecutionLogModel } from './models/platformFunctionExecutionLog'; import { PlatformFunctionInvocationAttemptModel } from './models/platformFunctionInvocationAttempt'; import { PlatformFunctionInvocationModel } from './models/platformFunctionInvocation'; +import { PlatformImageModel } from './models/platformImage'; +import { PlatformImageGrantModel } from './models/platformImageGrant'; import { PlatformInfraCommitModel } from './models/platformInfraCommit'; import { PlatformInfraGetAllTreeNodesRecordModel } from './models/platformInfraGetAllTreeNodesRecord'; import { PlatformInfraObjectModel } from './models/platformInfraObject'; import { PlatformInfraRefModel } from './models/platformInfraRef'; import { PlatformInfraStoreModel } from './models/platformInfraStore'; +import { PlatformK8sResourceKindModel } from './models/platformK8sResourceKind'; +import { PlatformK8sSpecRuleModel } from './models/platformK8sSpecRule'; import { PlatformNamespaceModel } from './models/platformNamespace'; import { PlatformNamespaceEventModel } from './models/platformNamespaceEvent'; +import { PlatformProposalCommentModel } from './models/platformProposalComment'; +import { PlatformProposalModel } from './models/platformProposal'; +import { PlatformProposalFileViewModel } from './models/platformProposalFileView'; +import { PlatformProposalReactionModel } from './models/platformProposalReaction'; +import { PlatformProposalReviewModel } from './models/platformProposalReview'; +import { PlatformProposalsChunkModel } from './models/platformProposalsChunk'; +import { PlatformRegistryBindingModel } from './models/platformRegistryBinding'; +import { PlatformRegistryModel } from './models/platformRegistry'; +import { PlatformRegistryGrantModel } from './models/platformRegistryGrant'; +import { PlatformRepositoryModel } from './models/platformRepository'; +import { PlatformRepositoryEventModel } from './models/platformRepositoryEvent'; +import { PlatformRepositoryRequiredCheckModel } from './models/platformRepositoryRequiredCheck'; +import { PlatformRepositoryWorkflowModel } from './models/platformRepositoryWorkflow'; import { PlatformResourceModel } from './models/platformResource'; import { PlatformResourceDeclaredCapacityModel } from './models/platformResourceDeclaredCapacity'; import { PlatformResourceDefinitionModel } from './models/platformResourceDefinition'; import { PlatformResourceEventModel } from './models/platformResourceEvent'; import { PlatformResourceInstallationModel } from './models/platformResourceInstallation'; +import { PlatformResourceObservedStorageModel } from './models/platformResourceObservedStorage'; import { PlatformResourceStatusCheckModel } from './models/platformResourceStatusCheck'; import { PlatformResourceUsageLogModel } from './models/platformResourceUsageLog'; import { PlatformResourceUsageSummaryModel } from './models/platformResourceUsageSummary'; @@ -60,11 +96,25 @@ import { PlatformResourcesRequirementsStateModel } from './models/platformResour import { PlatformResourcesResolvedRequirementModel } from './models/platformResourcesResolvedRequirement'; import { PlatformWebhookEndpointModel } from './models/platformWebhookEndpoint'; import { PlatformWebhookEventModel } from './models/platformWebhookEvent'; +import { ProposalCommentModel } from './models/proposalComment'; +import { ProposalModel } from './models/proposal'; +import { ProposalFileViewModel } from './models/proposalFileView'; +import { ProposalReactionModel } from './models/proposalReaction'; +import { ProposalReviewModel } from './models/proposalReview'; +import { ProposalsChunkModel } from './models/proposalsChunk'; +import { RegistryBindingModel } from './models/registryBinding'; +import { RegistryModel } from './models/registry'; +import { RegistryGrantModel } from './models/registryGrant'; +import { RepositoryModel } from './models/repository'; +import { RepositoryEventModel } from './models/repositoryEvent'; +import { RepositoryRequiredCheckModel } from './models/repositoryRequiredCheck'; +import { RepositoryWorkflowModel } from './models/repositoryWorkflow'; import { ResourceModel } from './models/resource'; import { ResourceDeclaredCapacityModel } from './models/resourceDeclaredCapacity'; import { ResourceDefinitionModel } from './models/resourceDefinition'; import { ResourceEventModel } from './models/resourceEvent'; import { ResourceInstallationModel } from './models/resourceInstallation'; +import { ResourceObservedStorageModel } from './models/resourceObservedStorage'; import { ResourceStatusCheckModel } from './models/resourceStatusCheck'; import { ResourceUsageLogModel } from './models/resourceUsageLog'; import { ResourceUsageSummaryModel } from './models/resourceUsageSummary'; @@ -109,6 +159,21 @@ export { createMutationOperations } from './mutation'; export function createClient(config: OrmClientConfig) { const client = new OrmClient(config); return { + build: new BuildModel(client), + buildStep: new BuildStepModel(client), + builderBinding: new BuilderBindingModel(client), + contentPreset: new ContentPresetModel(client), + databaseFunctionGraph: new DatabaseFunctionGraphModel(client), + databaseFunctionGraphExecution: new DatabaseFunctionGraphExecutionModel(client), + databaseFunctionGraphExecutionNodeState: new DatabaseFunctionGraphExecutionNodeStateModel( + client + ), + databaseFunctionGraphExecutionOutput: new DatabaseFunctionGraphExecutionOutputModel(client), + databaseGraphCommit: new DatabaseGraphCommitModel(client), + databaseGraphGetAllTreeNodesRecord: new DatabaseGraphGetAllTreeNodesRecordModel(client), + databaseGraphObject: new DatabaseGraphObjectModel(client), + databaseGraphRef: new DatabaseGraphRefModel(client), + databaseGraphStore: new DatabaseGraphStoreModel(client), dbPreset: new DbPresetModel(client), functionApiBinding: new FunctionApiBindingModel(client), functionCapabilityBinding: new FunctionCapabilityBindingModel(client), @@ -127,6 +192,8 @@ export function createClient(config: OrmClientConfig) { functionInvocationAttempt: new FunctionInvocationAttemptModel(client), functionInvocation: new FunctionInvocationModel(client), getAllTreeNodesRecord: new GetAllTreeNodesRecordModel(client), + image: new ImageModel(client), + imageGrant: new ImageGrantModel(client), infraCommit: new InfraCommitModel(client), infraGetAllTreeNodesRecord: new InfraGetAllTreeNodesRecordModel(client), infraObject: new InfraObjectModel(client), @@ -135,6 +202,9 @@ export function createClient(config: OrmClientConfig) { integrationProvider: new IntegrationProviderModel(client), namespace: new NamespaceModel(client), namespaceEvent: new NamespaceEventModel(client), + platformBuild: new PlatformBuildModel(client), + platformBuildStep: new PlatformBuildStepModel(client), + platformBuilderBinding: new PlatformBuilderBindingModel(client), platformFunctionApiBinding: new PlatformFunctionApiBindingModel(client), platformFunctionCapabilityBinding: new PlatformFunctionCapabilityBindingModel(client), platformFunctionDefinition: new PlatformFunctionDefinitionModel(client), @@ -143,18 +213,36 @@ export function createClient(config: OrmClientConfig) { platformFunctionExecutionLog: new PlatformFunctionExecutionLogModel(client), platformFunctionInvocationAttempt: new PlatformFunctionInvocationAttemptModel(client), platformFunctionInvocation: new PlatformFunctionInvocationModel(client), + platformImage: new PlatformImageModel(client), + platformImageGrant: new PlatformImageGrantModel(client), platformInfraCommit: new PlatformInfraCommitModel(client), platformInfraGetAllTreeNodesRecord: new PlatformInfraGetAllTreeNodesRecordModel(client), platformInfraObject: new PlatformInfraObjectModel(client), platformInfraRef: new PlatformInfraRefModel(client), platformInfraStore: new PlatformInfraStoreModel(client), + platformK8sResourceKind: new PlatformK8sResourceKindModel(client), + platformK8sSpecRule: new PlatformK8sSpecRuleModel(client), platformNamespace: new PlatformNamespaceModel(client), platformNamespaceEvent: new PlatformNamespaceEventModel(client), + platformProposalComment: new PlatformProposalCommentModel(client), + platformProposal: new PlatformProposalModel(client), + platformProposalFileView: new PlatformProposalFileViewModel(client), + platformProposalReaction: new PlatformProposalReactionModel(client), + platformProposalReview: new PlatformProposalReviewModel(client), + platformProposalsChunk: new PlatformProposalsChunkModel(client), + platformRegistryBinding: new PlatformRegistryBindingModel(client), + platformRegistry: new PlatformRegistryModel(client), + platformRegistryGrant: new PlatformRegistryGrantModel(client), + platformRepository: new PlatformRepositoryModel(client), + platformRepositoryEvent: new PlatformRepositoryEventModel(client), + platformRepositoryRequiredCheck: new PlatformRepositoryRequiredCheckModel(client), + platformRepositoryWorkflow: new PlatformRepositoryWorkflowModel(client), platformResource: new PlatformResourceModel(client), platformResourceDeclaredCapacity: new PlatformResourceDeclaredCapacityModel(client), platformResourceDefinition: new PlatformResourceDefinitionModel(client), platformResourceEvent: new PlatformResourceEventModel(client), platformResourceInstallation: new PlatformResourceInstallationModel(client), + platformResourceObservedStorage: new PlatformResourceObservedStorageModel(client), platformResourceStatusCheck: new PlatformResourceStatusCheckModel(client), platformResourceUsageLog: new PlatformResourceUsageLogModel(client), platformResourceUsageSummary: new PlatformResourceUsageSummaryModel(client), @@ -164,11 +252,25 @@ export function createClient(config: OrmClientConfig) { platformResourcesResolvedRequirement: new PlatformResourcesResolvedRequirementModel(client), platformWebhookEndpoint: new PlatformWebhookEndpointModel(client), platformWebhookEvent: new PlatformWebhookEventModel(client), + proposalComment: new ProposalCommentModel(client), + proposal: new ProposalModel(client), + proposalFileView: new ProposalFileViewModel(client), + proposalReaction: new ProposalReactionModel(client), + proposalReview: new ProposalReviewModel(client), + proposalsChunk: new ProposalsChunkModel(client), + registryBinding: new RegistryBindingModel(client), + registry: new RegistryModel(client), + registryGrant: new RegistryGrantModel(client), + repository: new RepositoryModel(client), + repositoryEvent: new RepositoryEventModel(client), + repositoryRequiredCheck: new RepositoryRequiredCheckModel(client), + repositoryWorkflow: new RepositoryWorkflowModel(client), resource: new ResourceModel(client), resourceDeclaredCapacity: new ResourceDeclaredCapacityModel(client), resourceDefinition: new ResourceDefinitionModel(client), resourceEvent: new ResourceEventModel(client), resourceInstallation: new ResourceInstallationModel(client), + resourceObservedStorage: new ResourceObservedStorageModel(client), resourceStatusCheck: new ResourceStatusCheckModel(client), resourceUsageLog: new ResourceUsageLogModel(client), resourceUsageSummary: new ResourceUsageSummaryModel(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..93713ee6d9 100644 --- a/sdk/constructive-cli/src/compute/orm/input-types.ts +++ b/sdk/constructive-cli/src/compute/orm/input-types.ts @@ -233,9 +233,358 @@ export interface UUIDListFilter { // ============ Custom Scalar Types ============ export type Base64EncodedBinary = unknown; export type ConstructiveInternalTypeImage = unknown; +export type ConstructiveInternalTypeUpload = unknown; export type ResourceRequirement = unknown; -/** Database provisioning preset catalog — merkle-versioned head over the infra store */ +/** One run of a repository workflow: its commit, its job, and what it produced */ // ============ Entity Types ============ +export interface Build { + /** Authenticated actor this build is attributed to; NULL only when no human actor was proven */ + actorId?: string | null; + /** Retry attempt number for this workflow, commit, and matrix shard */ + attempt?: number | null; + /** Commit this build built */ + commitSha?: string | null; + /** Verdict: NULL while pending/running, then success, failure, neutral, cancelled, skipped, timed_out, or action_required */ + conclusion?: string | null; + createdAt?: string | null; + createdByPrincipal?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; + /** Event that triggered this build (NULL for a manual build) */ + eventId?: string | null; + /** When the build reached a terminal status */ + finishedAt?: string | null; + id: string; + /** Image reference this build produced (registry host/repository:tag; NULL when the build produced no image) */ + imageRef?: string | null; + /** app_jobs row running this build */ + jobId?: string | null; + /** Build log object in storage; step rows slice it by byte range */ + logs?: ConstructiveInternalTypeUpload | null; + /** Matrix shard identity; NULL for a non-matrix build */ + matrixKey?: string | null; + /** Build detail (step results, durations, failure reason) */ + metadata?: Record | null; + /** Proposal this build checks (NULL for builds not tied to a proposal) */ + proposalId?: string | null; + /** Ref this build built */ + ref?: string | null; + /** Repository this build is of */ + repositoryId?: string | null; + /** When the build began running */ + startedAt?: string | null; + /** Lifecycle: pending, running, succeeded, failed, cancelled */ + status?: string | null; + updatedAt?: string | null; + updatedByPrincipal?: string | null; + /** Workflow whose firing produced this build (NULL for a manual build) */ + workflowId?: string | null; +} +/** Partitioned append-only step and test results of a build, keyed into its log object */ +export interface BuildStep { + /** Build these results belong to */ + buildId?: string | null; + /** Acting principal (agent, API key, or user) who created this record */ + createdByPrincipal?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; + /** Process exit code of a step (NULL for a test result) */ + exitCode?: number | null; + /** When this step or test finished */ + finishedAt?: string | null; + /** Unique identifier (uuidv7 provides temporal ordering) */ + id: string; + /** What this row is: step, or test */ + kind?: string | null; + /** Byte length of this row's output in the build log object */ + logBytes?: string | null; + /** Byte offset of this row's output in the build log object */ + logOffset?: string | null; + /** Step name, or the test's fully qualified name */ + name?: string | null; + /** Sequence of the step that reported this test (NULL for a step itself) */ + parentSeq?: number | null; + /** When the result was recorded (partition key) */ + recordedAt?: string | null; + /** Position within the build, monotonically increasing across steps and their tests */ + seq?: number | null; + /** When this step or test began */ + startedAt?: string | null; + /** Outcome: running, succeeded, failed, skipped, cancelled */ + status?: string | null; + /** Parsed detail: failure message, assertion diff, counts, annotations */ + summary?: Record | null; +} +/** Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST */ +export interface BuilderBinding { + createdAt?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; + id: string; + /** BuildKit resource installation serving this binding; may belong to another resource scope */ + installationId?: string | null; + /** Most recent projection failure */ + lastError?: string | null; + /** Reconciler detail (projection timestamps and diagnostics) */ + metadata?: Record | null; + /** Namespace whose builds use this BuildKit installation */ + namespaceId?: string | null; + /** BuildKit address last projected into the namespace (NULL = never projected) */ + observedHost?: string | null; + /** Lane this binding applies to (NULL = the scope's default lane) */ + realm?: string | null; + /** Projection state of BUILDKIT_HOST: pending, active, failed */ + status?: string | null; + updatedAt?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +/** Seed-content preset catalog (limit defaults, trust ladders, ...) — merkle-versioned head over the infra store */ +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; +} +/** Flow graph definitions — FBP graphs stored in the dedicated graph Merkle store */ +export interface DatabaseFunctionGraph { + /** Evaluator/runtime context (function, js, sql, system) */ + context?: string | null; + /** Timestamp of graph creation */ + createdAt?: string | null; + /** Actor who created this graph */ + createdBy?: string | null; + /** Database scope for multi-tenant isolation */ + databaseId?: string | null; + /** Pinned definitions store commit for deterministic evaluation */ + definitionsCommitId?: string | null; + /** Human-readable description of the graph */ + description?: string | null; + /** Unique graph identifier */ + id: string; + /** Whether graph passes structural validation */ + isValid?: boolean | null; + /** Graph name (unique per database) */ + name?: string | null; + /** Graph store (Merkle store) holding the graph definition */ + storeId?: string | null; + /** Timestamp of last modification */ + updatedAt?: string | null; + /** Array of validation error objects when is_valid = false */ + validationErrors?: Record | null; +} +/** Ephemeral execution state for flow graph evaluation */ +export interface DatabaseFunctionGraphExecution { + /** User actor propagated to asynchronous graph jobs */ + actorId?: string | null; + /** Execution completion timestamp */ + completedAt?: string | null; + /** Index into execution_plan — tick only processes this wave */ + currentWave?: number | null; + /** Database scope for multi-tenant isolation */ + databaseId?: string | null; + /** Pinned definitions store commit for deterministic evaluation */ + definitionsCommitId?: string | null; + /** Entity context propagated to asynchronous graph jobs */ + entityId?: string | null; + /** Scope discriminator propagated to asynchronous graph jobs */ + entityType?: string | null; + /** Machine-readable error code when status = failed */ + errorCode?: string | null; + /** Human-readable error description when status = failed */ + errorMessage?: string | null; + /** Pre-computed topological sort as array of wave objects */ + executionPlan?: Record | null; + /** FK to the graph definition being executed */ + graphId?: string | null; + /** Unique execution identifier */ + id: string; + /** Initial inputs provided at invocation time */ + inputPayload?: Record | null; + /** Partition coordinate for the function invocation that launched this graph execution */ + invocationCreatedAt?: string | null; + /** Function invocation that launched this top-level graph execution */ + invocationId?: string | null; + /** Timestamp of the last real progress (node enqueue, node output, completion) — drives the activity-debounced watchdog */ + lastProgressAt?: string | null; + /** Maximum pending jobs before execution is failed (default 50) */ + maxPendingJobs?: number | null; + /** Maximum ticks before execution is failed (default 100) */ + maxTicks?: number | null; + /** Map of node_name → execution output id (content-addressed hash reference) */ + nodeOutputs?: Record | null; + /** Organization context propagated to asynchronous graph jobs */ + organizationId?: string | null; + /** Selected graphOutput portName values; NULL or empty returns all graph outputs */ + outputNames?: string[] | null; + /** Target output boundary node name to resolve; NULL derives completion from the graph's graphOutput nodes */ + outputNode?: string | null; + /** Final result extracted from terminal output node */ + outputPayload?: Record | null; + /** Target output port name (default: value) */ + outputPort?: string | null; + /** Parent execution when this is a sub-execution */ + parentExecutionId?: string | null; + /** Function invocation parent assigned to node invocations spawned by this execution */ + parentInvocationId?: string | null; + /** Node name in parent execution that spawned this sub-execution */ + parentNodeName?: string | null; + /** Principal identity propagated to asynchronous graph jobs */ + principalId?: string | null; + /** Execution start timestamp */ + startedAt?: string | null; + /** Lifecycle: pending → running → completed/failed/cancelled */ + status?: string | null; + /** Number of evaluate_step ticks executed */ + tickCount?: number | null; + /** Absolute deadline — execution fails if still running after this time */ + timeoutAt?: string | null; +} +/** Per-node execution state — tracks individual node lifecycle for debugging */ +export interface DatabaseFunctionGraphExecutionNodeState { + /** Snapshot of the node's resolved inputs for resource-runtime nodes — served by the node gateway GET /inputs endpoint */ + callbackInputs?: Record | null; + /** Metering/attribution context stamped at resource dispatch (namespace_id, task_identifier, entity_id, scope, resource identity, dispatched_at, attempt) — lets the node gateway settle and attribute without extra lookups */ + callbackMeta?: Record | null; + /** SHA-256 hex digest of the node callback token — set for resource-runtime nodes so the node gateway can authenticate result/error/heartbeat callbacks */ + callbackTokenHash?: string | null; + /** Timestamp when the node finished (success or failure) */ + completedAt?: string | null; + /** Timestamp of node state creation (partition key) */ + createdAt?: string | null; + /** Database scope for multi-tenant isolation */ + databaseId?: string | null; + /** Machine-readable error code when status = failed */ + errorCode?: string | null; + /** Human-readable error description when status = failed */ + errorMessage?: string | null; + /** FK to the parent graph execution */ + executionId?: string | null; + /** Declared output applied by the default_answer expiry policy */ + expiryDefaultOutput?: Record | null; + /** When the escalate expiry policy fired — guards the one-time extension */ + expiryEscalatedAt?: string | null; + /** Declared expiry behaviour when waiting_deadline_at passes unanswered: fail (fail the execution), default_answer (settle with expiry_default_output), or escalate (notify and extend once) */ + expiryPolicy?: string | null; + /** Unique node state identifier */ + id: string; + /** Name of the node within the graph (e.g. send-email1) */ + nodeName?: string | null; + /** Full merkle tree path to this node (e.g. {function,graphs,myflow,nodes,send-email1}) — enables subnet hierarchy tracking */ + nodePath?: string[] | null; + /** FK to execution_outputs — content-addressed output blob for this node */ + outputId?: string | null; + /** Timestamp when the node began executing */ + startedAt?: string | null; + /** Node lifecycle: pending → queued → running → completed/failed/cancelled */ + status?: string | null; + /** When the declared expiry policy applies to the still-unanswered node */ + waitingDeadlineAt?: string | null; + /** What class of external reporter settles this node: human (a person answers) or external (webhook/adapter). NULL for nodes with an active workload */ + waitingOn?: string | null; + /** When the node parked awaiting its external report */ + waitingSince?: string | null; +} +/** Content-addressed store for execution outputs — hash-referenced from node_outputs */ +export interface DatabaseFunctionGraphExecutionOutput { + /** Timestamp of output creation */ + createdAt?: string | null; + /** The actual output payload from a completed node */ + data?: Record | null; + /** Database scope for multi-tenant isolation */ + databaseId?: string | null; + /** SHA-256 hash of the data JSONB — content-addressed deduplication */ + hash?: Base64EncodedBinary | null; + /** Unique execution output identifier */ + id: string; +} +/** Commit history — each commit snapshots a tree root for a store */ +export interface DatabaseGraphCommit { + /** User who authored the changes */ + authorId?: string | null; + /** User who committed (may differ from author) */ + committerId?: string | null; + /** Database scope for multi-tenant isolation */ + databaseId?: string | null; + /** Commit timestamp */ + date?: string | null; + /** Unique commit identifier */ + id: string; + /** Optional commit message */ + message?: string | null; + /** Parent commit IDs (supports merge commits) */ + parentIds?: string[] | null; + /** Store this commit belongs to */ + storeId?: string | null; + /** Root object ID of the tree snapshot at this commit */ + treeId?: string | null; +} +export interface DatabaseGraphGetAllTreeNodesRecord { + data?: Record | null; + path?: string[] | null; +} +/** Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children */ +export interface DatabaseGraphObject { + /** Timestamp of object creation */ + createdAt?: string | null; + /** Payload data for this object node */ + data?: Record | null; + /** Database scope for multi-tenant isolation */ + databaseId?: string | null; + /** Content-addressed UUID v5 — deterministic hash of (data, kids, ktree) */ + id: string; + /** Ordered array of child object IDs */ + kids?: string[] | null; + /** Ordered array of child path names (parallel to kids) */ + ktree?: string[] | null; +} +/** Branch heads — mutable pointers into the commit chain */ +export interface DatabaseGraphRef { + /** Commit this ref points to */ + commitId?: string | null; + /** Database scope for multi-tenant isolation */ + databaseId?: string | null; + /** Unique ref identifier */ + id: string; + /** Ref name (e.g. HEAD, main) */ + name?: string | null; + /** Store this ref belongs to */ + storeId?: string | null; +} +/** Named stores — one per version-controlled tree (e.g. one graph, one definition set) */ +export interface DatabaseGraphStore { + /** Timestamp of store creation */ + createdAt?: string | null; + /** Database scope for multi-tenant isolation */ + databaseId?: string | null; + /** Current root object hash of this store */ + hash?: string | null; + /** Unique store identifier */ + id: string; + /** Human-readable store name */ + name?: 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,8 +645,10 @@ 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; + /** Whether this function consents to run for a caller with no identity (a sign-in surface, a public page). Anonymous execution additionally requires the matched route to declare anonymous access. Default false = an identity is required. */ + anonymousCallable?: boolean | null; /** Function task category (e.g. email, embed, chunk, custom) */ category?: string | null; /** Knative containerConcurrency — max concurrent requests per pod instance */ @@ -307,6 +658,7 @@ export interface FunctionDefinition { /** Requested CPU in millicores, derived from resources.requests.cpu (NULL if unset/invalid) */ cpuRequestMillicores?: string | null; createdAt?: string | null; + createdByPrincipal?: string | null; /** Database that owns this resource (database-scoped isolation) */ databaseId?: string | null; /** Human-readable description of what this function does */ @@ -352,17 +704,21 @@ 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; + /** Capability providers the handler declared in handler.json requires.capabilities, as an array of {name, version, declaration}. NULL when the handler declares none, which mounts the full platform set. */ + requiredCapabilities?: Record | 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}} */ resources?: Record | null; - /** Execution mode: http (Knative Service dispatch), inline (in-process in compute worker), handler (registered infrastructure handler), sql (generic SQL dispatch via a trusted direct target or module-resolved function names), resource (Kubernetes Job via the resource module with node-gateway callbacks), or graph (existing flow graph referenced by graph_id) */ + /** Execution mode: http (Knative Service dispatch), inline (in-process in compute worker), handler (registered infrastructure handler), sql (generic SQL dispatch via a trusted direct target or module-resolved function names), resource (Kubernetes Job via the resource module with node-gateway callbacks), graph (existing flow graph referenced by graph_id), or human (parks the node awaiting a person's answer through approve_node) */ runtime?: string | null; /** Maximum pod count for Knative autoscaling (maxScale) */ scaleMax?: number | null; @@ -377,6 +733,7 @@ export interface FunctionDefinition { /** Knative request timeout in seconds */ timeoutSeconds?: number | null; updatedAt?: string | null; + updatedByPrincipal?: string | null; /** Whether this function has side effects and cannot be cached or memoized */ volatile?: boolean | null; } @@ -387,6 +744,7 @@ export interface FunctionDeployment { /** Max concurrent requests per pod (NULL = inherit from definition) */ concurrency?: number | null; createdAt?: string | null; + createdByPrincipal?: string | null; /** Database that owns this resource (database-scoped isolation) */ databaseId?: string | null; /** Cumulative error count for this deployment */ @@ -406,6 +764,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) */ @@ -423,10 +783,11 @@ export interface FunctionDeployment { /** Request timeout override in seconds (NULL = inherit from definition) */ timeoutSeconds?: number | null; updatedAt?: string | null; + updatedByPrincipal?: string | null; } /** Deployment lifecycle events — audit log of provisioning, scaling, and failure events */ export interface FunctionDeploymentEvent { - /** User who triggered this event (NULL for system/automated) */ + /** User who triggered this event; NULL only when no human actor was proven */ actorId?: string | null; /** Event timestamp (partition key) */ createdAt?: string | null; @@ -445,7 +806,7 @@ export interface FunctionDeploymentEvent { } /** Function execution logs — structured console output per invocation */ export interface FunctionExecutionLog { - /** User who triggered the execution (NULL for system/cron) */ + /** User who triggered the execution; NULL only when no human actor was proven */ actorId?: string | null; /** Log entry timestamp (partition key) */ createdAt?: string | null; @@ -597,6 +958,12 @@ export interface FunctionGraphExecutionNodeState { errorMessage?: string | null; /** FK to the parent graph execution */ executionId?: string | null; + /** Declared output applied by the default_answer expiry policy */ + expiryDefaultOutput?: Record | null; + /** When the escalate expiry policy fired — guards the one-time extension */ + expiryEscalatedAt?: string | null; + /** Declared expiry behaviour when waiting_deadline_at passes unanswered: fail (fail the execution), default_answer (settle with expiry_default_output), or escalate (notify and extend once) */ + expiryPolicy?: string | null; /** Unique node state identifier */ id: string; /** Name of the node within the graph (e.g. send-email1) */ @@ -609,8 +976,14 @@ export interface FunctionGraphExecutionNodeState { scopeId?: string | null; /** Timestamp when the node began executing */ startedAt?: string | null; - /** Node lifecycle: pending → queued → running → completed/failed */ + /** Node lifecycle: pending → queued → running → completed/failed/cancelled */ status?: string | null; + /** When the declared expiry policy applies to the still-unanswered node */ + waitingDeadlineAt?: string | null; + /** What class of external reporter settles this node: human (a person answers) or external (webhook/adapter). NULL for nodes with an active workload */ + waitingOn?: string | null; + /** When the node parked awaiting its external report */ + waitingSince?: string | null; } /** Content-addressed store for execution outputs — hash-referenced from node_outputs */ export interface FunctionGraphExecutionOutput { @@ -668,7 +1041,7 @@ export interface FunctionGraphStore { } /** Function invocation attempts — one row per worker attempt (including failed retries) with duration and error detail */ export interface FunctionInvocationAttempt { - /** Who triggered the invocation (NULL for system/cron) */ + /** Who triggered the invocation; NULL only when no human actor was proven */ actorId?: string | null; /** 1-based attempt number for this invocation */ attempt?: number | null; @@ -697,22 +1070,28 @@ export interface FunctionInvocationAttempt { } /** Function invocation log — INSERT to call a function (business-layer, metered). Linked to definitions via function_definition_id FK, with task_identifier as the denormalized routing/audit slug. */ export interface FunctionInvocation { - /** Who triggered the invocation (NULL for system/cron) */ + /** Who triggered the invocation; NULL only when no human actor was proven */ actorId?: string | null; /** API binding this invocation arrived through (NULL for cron/graph/system/worker paths) */ apiBindingId?: string | null; - /** Invocation trigger channel: api, graph, cron, sync, webhook, or worker */ + /** Invocation trigger channel: api, graph, cron, sync, webhook, trigger, or worker */ channel?: string | null; /** When execution completed */ completedAt?: string | null; /** Invocation creation timestamp (partition key) */ createdAt?: string | null; + /** Acting principal (agent, API key, or user) who created this record */ + createdByPrincipal?: string | null; /** Database that owns this resource (database-scoped isolation) */ databaseId?: string | null; /** Scope that owns function_definition_id (e.g. app/org/database/platform) — the per-scope definitions table the resolver selected */ definitionScope?: string | null; /** Wall-clock execution time in milliseconds */ durationMs?: number | null; + /** Entity identity propagated with the invocation */ + entityId?: string | null; + /** Entity type propagated with the invocation */ + entityType?: string | null; /** Error message when status is failed, or the reason the run was skipped when status is skipped */ error?: string | null; /** Function definition this invocation ran (soft cross-scope ref; paired with definition_scope). task_identifier stays as the audit slug. */ @@ -723,10 +1102,14 @@ export interface FunctionInvocation { id: string; /** FK to app_jobs.jobs — the underlying transport */ jobId?: string | null; + /** Organization identity propagated with the invocation */ + organizationId?: string | null; /** Parent invocation when this is a child node of a flow graph execution */ parentInvocationId?: string | null; /** Function input payload */ payload?: Record | null; + /** Principal identity that triggered the invocation */ + principalId?: string | null; /** Non-secret channel-specific invocation provenance (route/binding/event identifiers only) */ provenance?: Record | null; /** Function return value (success) or structured error (failure) */ @@ -742,7 +1125,65 @@ export interface GetAllTreeNodesRecord { data?: Record | null; path?: string[] | null; } -/** Commit history — each commit snapshots a tree root for a store */ +/** Container image catalog: images available to run as functions, resources, and builds */ +export interface Image { + createdAt?: string | null; + createdByPrincipal?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; + /** Human-readable description of what this image runs */ + description?: string | null; + /** Content address (sha256:...) pinning this image, when known */ + digest?: string | null; + /** When this catalog row becomes eligible for retention cleanup (NULL = kept forever) */ + expiresAt?: string | null; + id: string; + /** Whether this image is published for use by any scope */ + isPublished?: boolean | null; + /** Labels for selecting images (architecture, capabilities, lane) */ + labels?: Record | null; + /** Freeform metadata (build provenance, source repository, SBOM pointer) */ + metadata?: Record | null; + /** Human-readable image name (e.g. node-runtime) */ + name?: string | null; + /** User who registered this catalog row */ + ownerId?: string | null; + /** Whether this image is reserved for platform-internal use */ + platformOnly?: boolean | null; + /** Registry host serving this image (NULL means the platform default registry) */ + registryHost?: string | null; + /** Repository path within the registry (e.g. constructiveio/worker) */ + repository?: string | null; + /** Runtime this image implements (e.g. nodejs, python, custom) */ + runtime?: string | null; + /** Mutable tag this row addresses */ + tag?: string | null; + updatedAt?: string | null; + updatedByPrincipal?: string | null; +} +/** Grants that make a catalog image usable by one scope */ +export interface ImageGrant { + /** Registry actions this grant allows (pull, push, delete) */ + actions?: string[] | null; + createdAt?: string | null; + createdByPrincipal?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; + /** When this grant stops applying (NULL never expires) */ + expiresAt?: string | null; + /** User who issued this grant */ + grantedBy?: string | null; + /** Scope key of the grantee (a database_id or an entity_id) */ + granteeKey?: string | null; + /** Scope tier of the grantee (database, org, app, platform) */ + granteeScope?: string | null; + id: string; + /** Catalog image this grant applies to */ + imageId?: string | null; + updatedAt?: string | null; + updatedByPrincipal?: string | null; +} +/** Commit history — each commit snapshots a tree root for a store */ export interface InfraCommit { /** User who authored the changes */ authorId?: string | null; @@ -836,6 +1277,8 @@ export interface IntegrationProvider { export interface Namespace { /** Freeform metadata for tooling and operational notes */ annotations?: Record | null; + /** Cluster this namespace is projected onto; NULL = the cluster the reconciler runs in */ + clusterId?: string | null; createdAt?: string | null; /** Database that owns this resource (database-scoped isolation) */ databaseId?: string | null; @@ -860,7 +1303,7 @@ export interface Namespace { } /** Namespace lifecycle events — audit log of creation, activation, deactivation, label changes */ export interface NamespaceEvent { - /** User who triggered this event (NULL for system/automated) */ + /** User who triggered this event; NULL only when no human actor was proven */ actorId?: string | null; /** Event timestamp (partition key) */ createdAt?: string | null; @@ -877,6 +1320,105 @@ export interface NamespaceEvent { /** Namespace this event belongs to */ namespaceId?: string | null; } +/** One run of a repository workflow: its commit, its job, and what it produced */ +export interface PlatformBuild { + /** Authenticated actor this build is attributed to; NULL only when no human actor was proven */ + actorId?: string | null; + /** Retry attempt number for this workflow, commit, and matrix shard */ + attempt?: number | null; + /** Commit this build built */ + commitSha?: string | null; + /** Verdict: NULL while pending/running, then success, failure, neutral, cancelled, skipped, timed_out, or action_required */ + conclusion?: string | null; + createdAt?: string | null; + createdByPrincipal?: string | null; + /** Event that triggered this build (NULL for a manual build) */ + eventId?: string | null; + /** When the build reached a terminal status */ + finishedAt?: string | null; + id: string; + /** Image reference this build produced (registry host/repository:tag; NULL when the build produced no image) */ + imageRef?: string | null; + /** app_jobs row running this build */ + jobId?: string | null; + /** Build log object in storage; step rows slice it by byte range */ + logs?: ConstructiveInternalTypeUpload | null; + /** Matrix shard identity; NULL for a non-matrix build */ + matrixKey?: string | null; + /** Build detail (step results, durations, failure reason) */ + metadata?: Record | null; + /** Proposal this build checks (NULL for builds not tied to a proposal) */ + proposalId?: string | null; + /** Ref this build built */ + ref?: string | null; + /** Repository this build is of */ + repositoryId?: string | null; + /** When the build began running */ + startedAt?: string | null; + /** Lifecycle: pending, running, succeeded, failed, cancelled */ + status?: string | null; + updatedAt?: string | null; + updatedByPrincipal?: string | null; + /** Workflow whose firing produced this build (NULL for a manual build) */ + workflowId?: string | null; +} +/** Partitioned append-only step and test results of a build, keyed into its log object */ +export interface PlatformBuildStep { + /** Build these results belong to */ + buildId?: string | null; + /** Acting principal (agent, API key, or user) who created this record */ + createdByPrincipal?: string | null; + /** Process exit code of a step (NULL for a test result) */ + exitCode?: number | null; + /** When this step or test finished */ + finishedAt?: string | null; + /** Unique identifier (uuidv7 provides temporal ordering) */ + id: string; + /** What this row is: step, or test */ + kind?: string | null; + /** Byte length of this row's output in the build log object */ + logBytes?: string | null; + /** Byte offset of this row's output in the build log object */ + logOffset?: string | null; + /** Step name, or the test's fully qualified name */ + name?: string | null; + /** Sequence of the step that reported this test (NULL for a step itself) */ + parentSeq?: number | null; + /** When the result was recorded (partition key) */ + recordedAt?: string | null; + /** Position within the build, monotonically increasing across steps and their tests */ + seq?: number | null; + /** When this step or test began */ + startedAt?: string | null; + /** Outcome: running, succeeded, failed, skipped, cancelled */ + status?: string | null; + /** Parsed detail: failure message, assertion diff, counts, annotations */ + summary?: Record | null; +} +/** Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST */ +export interface PlatformBuilderBinding { + createdAt?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + id: string; + /** BuildKit resource installation serving this binding; may belong to another resource scope */ + installationId?: string | null; + /** Most recent projection failure */ + lastError?: string | null; + /** Reconciler detail (projection timestamps and diagnostics) */ + metadata?: Record | null; + /** Namespace whose builds use this BuildKit installation */ + namespaceId?: string | null; + /** BuildKit address last projected into the namespace (NULL = never projected) */ + observedHost?: string | null; + /** Lane this binding applies to (NULL = the scope's default lane) */ + realm?: string | null; + /** Projection state of BUILDKIT_HOST: pending, active, failed */ + status?: string | null; + updatedAt?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} /** Join table binding function definitions to API endpoints with per-binding alias and config */ export interface PlatformFunctionApiBinding { /** Binding alias (e.g. default, staging, production) */ @@ -911,8 +1453,10 @@ 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 this function consents to run for a caller with no identity (a sign-in surface, a public page). Anonymous execution additionally requires the matched route to declare anonymous access. Default false = an identity is required. */ + anonymousCallable?: boolean | null; /** Whether executions are metered through the invocation ledger and billing quota gate */ billable?: boolean | null; /** Function task category (e.g. email, embed, chunk, custom) */ @@ -924,6 +1468,7 @@ export interface PlatformFunctionDefinition { /** Requested CPU in millicores, derived from resources.requests.cpu (NULL if unset/invalid) */ cpuRequestMillicores?: string | null; createdAt?: string | null; + createdByPrincipal?: string | null; /** Human-readable description of what this function does */ description?: string | null; /** Palette grouping category (e.g. email, data, ai, custom) */ @@ -967,17 +1512,21 @@ 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; + /** Capability providers the handler declared in handler.json requires.capabilities, as an array of {name, version, declaration}. NULL when the handler declares none, which mounts the full platform set. */ + requiredCapabilities?: Record | 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}} */ resources?: Record | null; - /** Execution mode: http (Knative Service dispatch), inline (in-process in compute worker), handler (registered infrastructure handler), sql (generic SQL dispatch via a trusted direct target or module-resolved function names), resource (Kubernetes Job via the resource module with node-gateway callbacks), or graph (existing flow graph referenced by graph_id) */ + /** Execution mode: http (Knative Service dispatch), inline (in-process in compute worker), handler (registered infrastructure handler), sql (generic SQL dispatch via a trusted direct target or module-resolved function names), resource (Kubernetes Job via the resource module with node-gateway callbacks), graph (existing flow graph referenced by graph_id), or human (parks the node awaiting a person's answer through approve_node) */ runtime?: string | null; /** Maximum pod count for Knative autoscaling (maxScale) */ scaleMax?: number | null; @@ -994,6 +1543,7 @@ export interface PlatformFunctionDefinition { /** Knative request timeout in seconds */ timeoutSeconds?: number | null; updatedAt?: string | null; + updatedByPrincipal?: string | null; /** Whether this function has side effects and cannot be cached or memoized */ volatile?: boolean | null; } @@ -1004,6 +1554,7 @@ export interface PlatformFunctionDeployment { /** Max concurrent requests per pod (NULL = inherit from definition) */ concurrency?: number | null; createdAt?: string | null; + createdByPrincipal?: string | null; /** Cumulative error count for this deployment */ errorCount?: number | null; /** Handler directory name (e.g. email, document) — used as FN_HANDLER_NAME in combined-image mode to select the entry point */ @@ -1021,6 +1572,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) */ @@ -1038,10 +1591,11 @@ export interface PlatformFunctionDeployment { /** Request timeout override in seconds (NULL = inherit from definition) */ timeoutSeconds?: number | null; updatedAt?: string | null; + updatedByPrincipal?: string | null; } /** Deployment lifecycle events — audit log of provisioning, scaling, and failure events */ export interface PlatformFunctionDeploymentEvent { - /** User who triggered this event (NULL for system/automated) */ + /** User who triggered this event; NULL only when no human actor was proven */ actorId?: string | null; /** Event timestamp (partition key) */ createdAt?: string | null; @@ -1058,7 +1612,7 @@ export interface PlatformFunctionDeploymentEvent { } /** Function execution logs — structured console output per invocation */ export interface PlatformFunctionExecutionLog { - /** User who triggered the execution (NULL for system/cron) */ + /** User who triggered the execution; NULL only when no human actor was proven */ actorId?: string | null; /** Log entry timestamp (partition key) */ createdAt?: string | null; @@ -1077,7 +1631,7 @@ export interface PlatformFunctionExecutionLog { } /** Function invocation attempts — one row per worker attempt (including failed retries) with duration and error detail */ export interface PlatformFunctionInvocationAttempt { - /** Who triggered the invocation (NULL for system/cron) */ + /** Who triggered the invocation; NULL only when no human actor was proven */ actorId?: string | null; /** 1-based attempt number for this invocation */ attempt?: number | null; @@ -1104,22 +1658,28 @@ export interface PlatformFunctionInvocationAttempt { } /** Function invocation log — INSERT to call a function (business-layer, metered). Linked to definitions via function_definition_id FK, with task_identifier as the denormalized routing/audit slug. */ export interface PlatformFunctionInvocation { - /** Who triggered the invocation (NULL for system/cron) */ + /** Who triggered the invocation; NULL only when no human actor was proven */ actorId?: string | null; /** API binding this invocation arrived through (NULL for cron/graph/system/worker paths) */ apiBindingId?: string | null; - /** Invocation trigger channel: api, graph, cron, sync, webhook, or worker */ + /** Invocation trigger channel: api, graph, cron, sync, webhook, trigger, or worker */ channel?: string | null; /** When execution completed */ completedAt?: string | null; /** Invocation creation timestamp (partition key) */ createdAt?: string | null; + /** Acting principal (agent, API key, or user) who created this record */ + createdByPrincipal?: string | null; /** Database this invocation is attributed to (usage/billing attribution) */ databaseId?: string | null; /** Scope that owns function_definition_id (e.g. app/org/database/platform) — the per-scope definitions table the resolver selected */ definitionScope?: string | null; /** Wall-clock execution time in milliseconds */ durationMs?: number | null; + /** Entity identity propagated with the invocation */ + entityId?: string | null; + /** Entity type propagated with the invocation */ + entityType?: string | null; /** Error message when status is failed, or the reason the run was skipped when status is skipped */ error?: string | null; /** Function definition this invocation ran (soft cross-scope ref; paired with definition_scope). task_identifier stays as the audit slug. */ @@ -1130,10 +1690,14 @@ export interface PlatformFunctionInvocation { id: string; /** FK to app_jobs.jobs — the underlying transport */ jobId?: string | null; + /** Organization identity propagated with the invocation */ + organizationId?: string | null; /** Parent invocation when this is a child node of a flow graph execution */ parentInvocationId?: string | null; /** Function input payload */ payload?: Record | null; + /** Principal identity that triggered the invocation */ + principalId?: string | null; /** Non-secret channel-specific invocation provenance (route/binding/event identifiers only) */ provenance?: Record | null; /** Function return value (success) or structured error (failure) */ @@ -1145,6 +1709,60 @@ export interface PlatformFunctionInvocation { /** Function routing slug (category:name). Denormalized from the definition — must match the row referenced by function_definition_id when that is set. */ taskIdentifier?: string | null; } +/** Container image catalog: images available to run as functions, resources, and builds */ +export interface PlatformImage { + createdAt?: string | null; + createdByPrincipal?: string | null; + /** Human-readable description of what this image runs */ + description?: string | null; + /** Content address (sha256:...) pinning this image, when known */ + digest?: string | null; + /** When this catalog row becomes eligible for retention cleanup (NULL = kept forever) */ + expiresAt?: string | null; + id: string; + /** Whether this image is published for use by any scope */ + isPublished?: boolean | null; + /** Labels for selecting images (architecture, capabilities, lane) */ + labels?: Record | null; + /** Freeform metadata (build provenance, source repository, SBOM pointer) */ + metadata?: Record | null; + /** Human-readable image name (e.g. node-runtime) */ + name?: string | null; + /** User who registered this catalog row */ + ownerId?: string | null; + /** Whether this image is reserved for platform-internal use */ + platformOnly?: boolean | null; + /** Registry host serving this image (NULL means the platform default registry) */ + registryHost?: string | null; + /** Repository path within the registry (e.g. constructiveio/worker) */ + repository?: string | null; + /** Runtime this image implements (e.g. nodejs, python, custom) */ + runtime?: string | null; + /** Mutable tag this row addresses */ + tag?: string | null; + updatedAt?: string | null; + updatedByPrincipal?: string | null; +} +/** Grants that make a catalog image usable by one scope */ +export interface PlatformImageGrant { + /** Registry actions this grant allows (pull, push, delete) */ + actions?: string[] | null; + createdAt?: string | null; + createdByPrincipal?: string | null; + /** When this grant stops applying (NULL never expires) */ + expiresAt?: string | null; + /** User who issued this grant */ + grantedBy?: string | null; + /** Scope key of the grantee (a database_id or an entity_id) */ + granteeKey?: string | null; + /** Scope tier of the grantee (database, org, app, platform) */ + granteeScope?: string | null; + id: string; + /** Catalog image this grant applies to */ + imageId?: string | null; + updatedAt?: string | null; + updatedByPrincipal?: string | null; +} /** Commit history — each commit snapshots a tree root for a store */ export interface PlatformInfraCommit { /** User who authored the changes */ @@ -1211,10 +1829,58 @@ export interface PlatformInfraStore { /** Opaque store partition key for the global tier */ scopeId?: string | null; } +/** Kubernetes kind allow-list for DB-driven resources — merkle-versioned head over the infra store; the admission gate fails closed on kinds without an active row */ +export interface PlatformK8sResourceKind { + /** Whether the admission gate consults this row; deactivating a kind row denies the kind (fail closed) */ + active?: boolean | null; + /** Infra store commit for the current definition (stamped by the versioned trigger on every write) */ + commitId?: string | null; + /** Timestamp of policy creation */ + createdAt?: string | null; + /** Kind policy: {allowed, allowed_scopes?, notes} — the readily-cached head; history lives in the infra store */ + definition?: Record | null; + /** Human-readable description of the kind policy */ + description?: string | null; + /** Unique kind policy identifier */ + id: string; + /** Human-readable kind policy name */ + label?: string | null; + /** Kubernetes kind this policy governs (e.g. Deployment); the policy's path in the infra tree is [k8s_resource_kind, slug] */ + slug?: string | null; + /** Infra Merkle store holding this policy's history (stamped by the versioned trigger) */ + storeId?: string | null; + /** Timestamp of last modification */ + updatedAt?: string | null; +} +/** Spec rulebook for DB-driven resources — merkle-versioned head over the infra store; enforced by the generated admission gate via infra_utils.check_resource_admission */ +export interface PlatformK8sSpecRule { + /** Whether the admission gate enforces this rule; rules are disabled here rather than deleted so history stays intact */ + active?: boolean | null; + /** Infra store commit for the current definition (stamped by the versioned trigger on every write) */ + commitId?: string | null; + /** Timestamp of rule creation */ + createdAt?: string | null; + /** Rule definition: {rule_type, kind?, match, notes?} — the readily-cached head; history lives in the infra store */ + definition?: Record | null; + /** Human-readable description of the rule */ + description?: string | null; + /** Unique spec rule identifier */ + id: string; + /** Human-readable rule name */ + label?: string | null; + /** Rule slug (unique per scope); the rule's path in the infra tree is [k8s_spec_rule, slug] */ + slug?: string | null; + /** Infra Merkle store holding this rule's history (stamped by the versioned trigger) */ + storeId?: string | null; + /** Timestamp of last modification */ + updatedAt?: string | null; +} /** Logical namespace containers for grouping secrets, config, functions, and other resources */ export interface PlatformNamespace { /** Freeform metadata for tooling and operational notes */ annotations?: Record | null; + /** Cluster this namespace is projected onto; NULL = the cluster the reconciler runs in */ + clusterId?: string | null; createdAt?: string | null; /** Optional human-readable description of this namespace */ description?: string | null; @@ -1237,7 +1903,7 @@ export interface PlatformNamespace { } /** Namespace lifecycle events — audit log of creation, activation, deactivation, label changes */ export interface PlatformNamespaceEvent { - /** User who triggered this event (NULL for system/automated) */ + /** User who triggered this event; NULL only when no human actor was proven */ actorId?: string | null; /** Event timestamp (partition key) */ createdAt?: string | null; @@ -1252,6 +1918,410 @@ export interface PlatformNamespaceEvent { /** Namespace this event belongs to */ namespaceId?: string | null; } +/** Comments on a local proposal, optionally anchored to a line */ +export interface PlatformProposalComment { + /** Actor who wrote the comment; NULL only when no human actor was proven */ + actorId?: string | null; + /** Files referenced by the comment body, in the order they were attached */ + attachments?: ConstructiveInternalTypeUpload[] | null; + /** Comment text */ + body?: string | null; + /** TRGM similarity when searching `body`. Returns null when no trgm search filter is active. */ + bodyTrgmSimilarity?: number | null; + createdAt?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + embedding?: number[] | null; + embeddingUpdatedAt?: string | null; + /** VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. */ + embeddingVectorDistance?: number | null; + id: string; + /** Line within path the comment is anchored to */ + line?: number | null; + /** When the anchored range this comment pointed at vanished from the diff */ + outdatedAt?: string | null; + /** File the comment is anchored to (NULL for a comment on the proposal) */ + path?: string | null; + /** TRGM similarity when searching `path`. Returns null when no trgm search filter is active. */ + pathTrgmSimilarity?: number | null; + /** Proposal being commented on */ + proposalId?: string | null; + /** When this comment was marked resolved */ + resolvedAt?: string | null; + search?: string | null; + /** Composite search relevance score (0..1, higher = more relevant). Computed using Reciprocal Rank Fusion (RRF) across all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. */ + searchScore?: number | null; + /** TSV rank when searching `search`. Returns null when no tsv search filter is active. */ + searchTsvRank?: number | null; + updatedAt?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +/** Proposals against a repository: issues, changes to merge, discussions and decisions */ +export interface PlatformProposal { + /** Actor who opened the proposal; NULL only when no human actor was proven */ + actorId?: string | null; + /** Description of the proposed change */ + body?: string | null; + /** TRGM similarity when searching `body`. Returns null when no trgm search filter is active. */ + bodyTrgmSimilarity?: number | null; + /** Why this was closed: completed, not_planned, duplicate, superseded */ + closedReason?: string | null; + /** TRGM similarity when searching `closedReason`. Returns null when no trgm search filter is active. */ + closedReasonTrgmSimilarity?: number | null; + createdAt?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + /** When the decision was taken (NULL while the question is open) */ + decidedAt?: string | null; + /** When this is wanted by (NULL when nothing is promised) */ + dueAt?: string | null; + embedding?: number[] | null; + embeddingUpdatedAt?: string | null; + /** VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. */ + embeddingVectorDistance?: number | null; + id: string; + /** issue (a report or plan), change (merge one ref into another), discussion (an open question), decision (a question answered) */ + kind?: string | null; + /** TRGM similarity when searching `kind`. Returns null when no trgm search filter is active. */ + kindTrgmSimilarity?: number | null; + /** Labels for filtering and grouping (a board is a query over kind, status and these) */ + labels?: string[] | null; + /** Commit the merge produced */ + mergeCommit?: string | null; + /** TRGM similarity when searching `mergeCommit`. Returns null when no trgm search filter is active. */ + mergeCommitTrgmSimilarity?: number | null; + /** How to merge when eligible: merge, squash, rebase */ + mergeMethod?: string | null; + /** TRGM similarity when searching `mergeMethod`. Returns null when no trgm search filter is active. */ + mergeMethodTrgmSimilarity?: number | null; + /** When merge-when-green was requested (NULL when no merge is pending) */ + mergeRequestedAt?: string | null; + /** When the merge completed */ + mergedAt?: string | null; + /** Review detail (reviewers, labels, checks summary) */ + metadata?: Record | null; + /** Proposal this one hangs under: an epic, or the discussion a decision came out of */ + parentId?: string | null; + /** Manual order within a board column, sparse so an insert between two rows moves one row (NULL when unranked) */ + priority?: string | null; + /** Repository this proposal is against */ + repositoryId?: string | null; + /** What was decided (for kind = decision; NULL while the question is open) */ + resolution?: string | null; + /** TRGM similarity when searching `resolution`. Returns null when no trgm search filter is active. */ + resolutionTrgmSimilarity?: number | null; + search?: string | null; + /** Composite search relevance score (0..1, higher = more relevant). Computed using Reciprocal Rank Fusion (RRF) across all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. */ + searchScore?: number | null; + /** TSV rank when searching `search`. Returns null when no tsv search filter is active. */ + searchTsvRank?: number | null; + /** Ref holding the proposed commits (NULL unless kind is change) */ + sourceRef?: string | null; + /** TRGM similarity when searching `sourceRef`. Returns null when no trgm search filter is active. */ + sourceRefTrgmSimilarity?: number | null; + /** Lifecycle state: draft, open, merged, closed */ + status?: string | null; + /** TRGM similarity when searching `status`. Returns null when no trgm search filter is active. */ + statusTrgmSimilarity?: number | null; + /** Ref the commits are proposed for (NULL unless kind is change) */ + targetRef?: string | null; + /** TRGM similarity when searching `targetRef`. Returns null when no trgm search filter is active. */ + targetRefTrgmSimilarity?: number | null; + /** What this proposal does */ + title?: string | null; + /** TRGM similarity when searching `title`. Returns null when no trgm search filter is active. */ + titleTrgmSimilarity?: number | null; + updatedAt?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +/** Files a reviewer has read, pinned to the blob they read */ +export interface PlatformProposalFileView { + /** Blob the reviewer read, which is what makes the mark survive a rebase or go stale */ + blobSha?: string | null; + createdAt?: string | null; + createdByPrincipal?: string | null; + id: string; + /** Path of the file as the diff named it */ + path?: string | null; + /** Proposal the file belongs to */ + proposalId?: string | null; + /** Actor who read the file */ + reviewerId?: string | null; + updatedAt?: string | null; + updatedByPrincipal?: string | null; + /** When the file was marked read */ + viewedAt?: string | null; +} +/** Emoji reactions to a local proposal or one of its comments */ +export interface PlatformProposalReaction { + /** Actor who reacted */ + actorId?: string | null; + /** Comment being reacted to (NULL for a reaction to the proposal itself) */ + commentId?: string | null; + createdAt?: string | null; + createdByPrincipal?: string | null; + /** Reaction shortcode (+1, eyes, rocket) */ + emoji?: string | null; + id: string; + /** Proposal the reaction belongs to */ + proposalId?: string | null; + updatedAt?: string | null; + updatedByPrincipal?: string | null; +} +/** Review verdicts on a proposal, each pinned to the commit reviewed */ +export interface PlatformProposalReview { + /** Summary the reviewer submitted with the verdict */ + body?: string | null; + /** TRGM similarity when searching `body`. Returns null when no trgm search filter is active. */ + bodyTrgmSimilarity?: number | null; + /** Head commit this verdict was submitted against */ + commitSha?: string | null; + /** TRGM similarity when searching `commitSha`. Returns null when no trgm search filter is active. */ + commitShaTrgmSimilarity?: number | null; + createdAt?: string | null; + createdByPrincipal?: string | null; + id: string; + /** Proposal being reviewed */ + proposalId?: string | null; + /** Actor who submitted the verdict */ + reviewerId?: string | null; + search?: string | null; + /** Composite search relevance score (0..1, higher = more relevant). Computed using Reciprocal Rank Fusion (RRF) across all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. */ + searchScore?: number | null; + /** TSV rank when searching `search`. Returns null when no tsv search filter is active. */ + searchTsvRank?: number | null; + /** When the verdict was submitted */ + submittedAt?: string | null; + updatedAt?: string | null; + updatedByPrincipal?: string | null; + /** approve, reject or comment (a review that gates nothing) */ + verdict?: string | null; + /** TRGM similarity when searching `verdict`. Returns null when no trgm search filter is active. */ + verdictTrgmSimilarity?: number | null; +} +export interface PlatformProposalsChunk { + /** Policy-required field derived from source table (used by AuthzComposite) */ + actorId?: string | null; + body?: string | null; + chunkIndex?: number | null; + createdAt?: string | null; + embedding?: number[] | null; + /** VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. */ + embeddingVectorDistance?: number | null; + id: string; + metadata?: Record | null; + platformProposalsId?: string | null; + /** Composite search relevance score (0..1, higher = more relevant). Computed using Reciprocal Rank Fusion (RRF) across all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. */ + searchScore?: number | null; + updatedAt?: string | null; +} +/** Binds a namespace to an installed container registry for a lane (realm) — the reconciler projects that registry's credentials into the namespace as an image pull secret */ +export interface PlatformRegistryBinding { + createdAt?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + id: string; + /** Reconciler detail (last error, projection timestamps) */ + metadata?: Record | null; + /** Namespace the registry credentials are projected into */ + namespaceId?: string | null; + /** Registry credential version last projected into the namespace (NULL = never projected) */ + observedCredentialVersion?: string | null; + /** Name of the image pull secret the reconciler writes into the namespace */ + pullSecretName?: string | null; + /** Lane this binding applies to (NULL = the scope's default lane) */ + realm?: string | null; + /** Registry host this binding's credentials authenticate to (what kubelet matches image references against) */ + registryHost?: string | null; + /** Registry endpoint (in this scope's registry catalog) the namespace pulls from */ + registryId?: string | null; + /** Projection state of the pull secret: pending, active, failed */ + status?: string | null; + updatedAt?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +/** Artifact registries this scope pulls from or pushes to (OCI images, npm packages), platform-run or external */ +export interface PlatformRegistry { + /** How a client authenticates to this registry (none, basic, token) */ + authMode?: string | null; + /** Path prefix within the host (npm scope, OCI project); NULL = the host root */ + basePath?: string | null; + createdAt?: string | null; + createdByPrincipal?: string | null; + /** Name of the infra secret carrying this registry's credential (NULL when auth_mode = none) */ + credentialSecretName?: string | null; + /** Registry host, without a scheme (e.g. ghcr.io, registry.npmjs.org); required unless role is source, where it is the optional requested host and is stamped with the provisioned one */ + host?: string | null; + id: string; + /** Resource installation running this registry (NULL for an external registry) */ + installationId?: string | null; + /** Whether this registry is published for use by any scope */ + isPublished?: boolean | null; + /** Artifact ecosystem this registry serves (oci, npm) */ + kind?: string | null; + /** Labels for selecting registries (lane, region, mirror role) */ + labels?: Record | null; + /** Message from the last failed provision/deprovision attempt (NULL when healthy) */ + lastError?: string | null; + /** Freeform metadata (mirror-of pointer, rate limits, contact) */ + metadata?: Record | null; + /** Human-readable registry name (e.g. github-container-registry) */ + name?: string | null; + /** Whether this registry is reserved for platform-internal use */ + platformOnly?: boolean | null; + /** Role in this scope: source (the push target), cache (read-through mirror), external (pull only) */ + role?: string | null; + /** Provisioning state (pending, provisioning, active, failed); rows the platform does not create are active on insert */ + status?: string | null; + updatedAt?: string | null; + updatedByPrincipal?: string | null; +} +/** Grants that make a registry usable by one scope */ +export interface PlatformRegistryGrant { + /** Endpoint actions this grant allows (read, write) */ + actions?: string[] | null; + createdAt?: string | null; + createdByPrincipal?: string | null; + /** When this grant stops applying (NULL never expires) */ + expiresAt?: string | null; + /** User who issued this grant */ + grantedBy?: string | null; + /** Scope key of the grantee (a database_id or an entity_id) */ + granteeKey?: string | null; + /** Scope tier of the grantee (database, org, app, platform) */ + granteeScope?: string | null; + id: string; + /** Registry this grant applies to */ + registryId?: string | null; + updatedAt?: string | null; + updatedByPrincipal?: string | null; +} +/** Source repositories, hosted locally or on an external provider */ +export interface PlatformRepository { + /** URL a workspace clones from (NULL until the repository is provisioned) */ + cloneUrl?: string | null; + /** TRGM similarity when searching `cloneUrl`. Returns null when no trgm search filter is active. */ + cloneUrlTrgmSimilarity?: number | null; + createdAt?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + /** Branch a clone checks out and a proposal targets by default */ + defaultBranch?: string | null; + /** TRGM similarity when searching `defaultBranch`. Returns null when no trgm search filter is active. */ + defaultBranchTrgmSimilarity?: number | null; + /** What this repository holds */ + description?: string | null; + /** TRGM similarity when searching `description`. Returns null when no trgm search filter is active. */ + descriptionTrgmSimilarity?: number | null; + embedding?: number[] | null; + embeddingUpdatedAt?: string | null; + /** VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. */ + embeddingVectorDistance?: number | null; + /** Identifier of this repository in the external provider (NULL for local) */ + externalId?: string | null; + /** TRGM similarity when searching `externalId`. Returns null when no trgm search filter is active. */ + externalIdTrgmSimilarity?: number | null; + id: string; + /** Whether this repository is retired: readable, not written to */ + isArchived?: boolean | null; + /** Provider detail (installation id, topics, external URLs) */ + metadata?: Record | null; + /** Human-readable repository name */ + name?: string | null; + /** TRGM similarity when searching `name`. Returns null when no trgm search filter is active. */ + nameTrgmSimilarity?: number | null; + /** User who owns this repository */ + ownerId?: string | null; + /** Where the repository lives: local (platform git server) or github */ + provider?: string | null; + /** TRGM similarity when searching `provider`. Returns null when no trgm search filter is active. */ + providerTrgmSimilarity?: number | null; + search?: string | null; + /** Composite search relevance score (0..1, higher = more relevant). Computed using Reciprocal Rank Fusion (RRF) across all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. */ + searchScore?: number | null; + /** TSV rank when searching `search`. Returns null when no tsv search filter is active. */ + searchTsvRank?: number | null; + /** URL-safe identifier, unique within the owning scope */ + slug?: string | null; + /** TRGM similarity when searching `slug`. Returns null when no trgm search filter is active. */ + slugTrgmSimilarity?: number | null; + updatedAt?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; + /** Read reach: private (owner), internal (scope members), public (any authenticated actor) */ + visibility?: string | null; + /** TRGM similarity when searching `visibility`. Returns null when no trgm search filter is active. */ + visibilityTrgmSimilarity?: number | null; +} +/** Normalized repository events from local hooks and external providers */ +export interface PlatformRepositoryEvent { + /** Authenticated actor behind the event (NULL when only the sending system was proven) */ + actorId?: string | null; + /** Commit the ref points at after the event */ + commitSha?: string | null; + createdAt?: string | null; + createdByPrincipal?: string | null; + /** Provider delivery identifier, for redelivery dedupe (NULL for local hooks) */ + deliveryId?: string | null; + /** What happened: push, tag, pr_open, pr_merge, proposal_comment, manual */ + eventType?: string | null; + id: string; + /** Unverified provider detail (payload login, commit author, external URLs) */ + metadata?: Record | null; + /** Normalized event body the workflows read */ + payload?: Record | null; + /** Git ref the event concerns (refs/heads/main) */ + ref?: string | null; + /** Repository this event happened to */ + repositoryId?: string | null; + updatedAt?: string | null; + updatedByPrincipal?: string | null; +} +/** Workflows required to pass before a repository proposal merges */ +export interface PlatformRepositoryRequiredCheck { + createdAt?: string | null; + id: string; + /** Repository whose merge gate requires this workflow */ + repositoryId?: string | null; + updatedAt?: string | null; + /** Workflow identity required by this repository gate */ + workflowId?: string | null; +} +/** Bindings from a repository event to the flow graph that should run */ +export interface PlatformRepositoryWorkflow { + /** Whether a new build cancels a running build with the same concurrency key instead of queueing */ + cancelInProgress?: boolean | null; + /** Builds of this workflow sharing this key run one at a time (NULL = unlimited) */ + concurrencyKey?: string | null; + createdAt?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + /** Event type that fires this workflow */ + eventType?: string | null; + /** Flow graph to run when this workflow fires */ + graphId?: string | null; + id: string; + /** Static inputs merged into the graph run alongside the event */ + inputs?: Record | null; + /** Whether matching events fire this workflow */ + isEnabled?: boolean | null; + /** Human-readable workflow name */ + name?: string | null; + /** Glob the event ref must match (NULL matches any ref) */ + refPattern?: string | null; + /** Repository whose events this workflow listens to */ + repositoryId?: string | null; + /** Secret names this workflow's builds may resolve, intersected with the build lane's realm */ + requiredSecrets?: string[] | null; + /** URL-safe identifier, unique within the repository */ + slug?: string | null; + updatedAt?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} /** Unified K8s resource declarations — stores desired state (spec) and observed state (status) for all resource kinds within a namespace */ export interface PlatformResource { /** Freeform metadata for tooling and operational notes */ @@ -1262,9 +2332,12 @@ export interface PlatformResource { cpuRequestMillicores?: string | null; createdAt?: string | null; createdBy?: string | null; + createdByPrincipal?: string | null; /** Cumulative error count for this resource */ errorCount?: number | null; id: string; + /** Pinned image reference this resource runs (registry host/repository:tag or @digest), written by promotion; NULL means spec.image decides */ + imageRef?: string | null; /** Installation ("release") this resource belongs to (NULL for standalone resources) */ installationId?: string | null; /** Provider slugs (e.g. mailgun, postgres) associated with this resource. The UI uses this to auto-fill required_secrets and required_configs from integration_providers. */ @@ -1303,12 +2376,15 @@ export interface PlatformResource { status?: string | null; /** Observed state from K8s — populated by handlers after reconciliation (service_url, clone_url, replicas, etc.) */ statusObserved?: Record | null; - /** Storage class/tier, derived from spec.storage_class (StatefulSet; NULL if unset) */ + /** Storage class/tier, derived from the legacy spec.storage_class else spec.storage[0].class (NULL if unset) */ storageClass?: string | null; - /** Persistent volume size in bytes, derived from spec.storage_size (StatefulSet; NULL if unset/invalid) */ + /** Declared persistent volume bytes per pod, summed over spec.storage[] plus the legacy spec.storage_size (NULL if none declared) */ storageSizeBytes?: string | null; + /** Total declared persistent volume bytes for the resource: per-pod bytes times replicas for StatefulSet (per-ordinal claims), per-pod bytes otherwise (claims shared across replicas) */ + storageTotalBytes?: string | null; updatedAt?: string | null; updatedBy?: string | null; + updatedByPrincipal?: string | null; } export interface PlatformResourceDeclaredCapacity { cpuLimitMillicores?: string | null; @@ -1324,6 +2400,7 @@ export interface PlatformResourceDeclaredCapacity { source?: string | null; sourceId?: string | null; storageSizeBytes?: string | null; + storageTotalBytes?: string | null; } /** Resource definitions — templates for resource kinds declaring default spec and secret/config requirements */ export interface PlatformResourceDefinition { @@ -1331,6 +2408,7 @@ export interface PlatformResourceDefinition { annotations?: Record | null; createdAt?: string | null; createdBy?: string | null; + createdByPrincipal?: string | null; /** Template spec for creating resource instances of this kind */ defaultSpec?: Record | null; /** What this resource definition provides */ @@ -1358,10 +2436,11 @@ export interface PlatformResourceDefinition { stepUpMinAge?: string | null; updatedAt?: string | null; updatedBy?: string | null; + updatedByPrincipal?: string | null; } /** Resource lifecycle events — audit log of provisioning, updates, and failure events */ export interface PlatformResourceEvent { - /** User who triggered this event (NULL for system/automated) */ + /** User who triggered this event; NULL only when no human actor was proven */ actorId?: string | null; /** Event timestamp (partition key) */ createdAt?: string | null; @@ -1382,6 +2461,7 @@ export interface PlatformResourceInstallation { commitId?: string | null; createdAt?: string | null; createdBy?: string | null; + createdByPrincipal?: string | null; id: string; /** Human-readable release name */ name?: string | null; @@ -1399,6 +2479,27 @@ export interface PlatformResourceInstallation { storeId?: string | null; updatedAt?: string | null; updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +export interface PlatformResourceObservedStorage { + capacity?: string | null; + capacityBytes?: string | null; + claimName?: string | null; + declaredStorageClass?: string | null; + declaredStorageSizeBytes?: string | null; + declaredStorageTotalBytes?: string | null; + installationId?: string | null; + isBound?: boolean | null; + kind?: string | null; + namespaceId?: string | null; + phase?: string | null; + requested?: string | null; + requestedBytes?: string | null; + resourceId?: string | null; + resourceStatus?: string | null; + slug?: string | null; + storageClass?: string | null; + storageName?: string | null; } /** On-demand resource status checks — diagnostic snapshots from the runtime (K8s status, conditions, log tails) */ export interface PlatformResourceStatusCheck { @@ -1486,8 +2587,10 @@ export interface PlatformResourcesHealth { cpuRequestMillicores?: string | null; createdAt?: string | null; createdBy?: string | null; + createdByPrincipal?: string | null; errorCount?: number | null; id: string; + imageRef?: string | null; installationId?: string | null; integrations?: string[] | null; kind?: string | null; @@ -1510,8 +2613,10 @@ export interface PlatformResourcesHealth { statusObserved?: Record | null; storageClass?: string | null; storageSizeBytes?: string | null; + storageTotalBytes?: string | null; updatedAt?: string | null; updatedBy?: string | null; + updatedByPrincipal?: string | null; } export interface PlatformResourcesRequirementsState { configHash?: string | null; @@ -1541,6 +2646,7 @@ export interface PlatformWebhookEndpoint { active?: boolean | null; createdAt?: string | null; createdBy?: string | null; + createdByPrincipal?: string | null; /** Same-scope function definition invoked on delivery. The function must list the webhook channel in access_channels. */ functionDefinitionId?: string | null; /** Inbound Host header this endpoint matches (normalized lower-case, no port) */ @@ -1558,6 +2664,7 @@ export interface PlatformWebhookEndpoint { signingSecretName?: string | null; updatedAt?: string | null; updatedBy?: string | null; + updatedByPrincipal?: string | null; } /** Durable webhook acceptance log — one row per accepted delivery, deduplicated on (endpoint_id, external_event_id), linked to the pending function invocation it enqueued */ export interface PlatformWebhookEvent { @@ -1583,72 +2690,508 @@ export interface PlatformWebhookEvent { status?: string | null; updatedAt?: string | null; } -/** Unified K8s resource declarations — stores desired state (spec) and observed state (status) for all resource kinds within a namespace */ -export interface Resource { - /** Freeform metadata for tooling and operational notes */ - annotations?: Record | null; - /** CPU limit in millicores, derived from spec.resources.limits.cpu (NULL if unset/invalid) */ - cpuLimitMillicores?: string | null; - /** Requested CPU in millicores, derived from spec.resources.requests.cpu (NULL if unset/invalid) */ - cpuRequestMillicores?: string | null; +/** Comments on a local proposal, optionally anchored to a line */ +export interface ProposalComment { + /** Actor who wrote the comment; NULL only when no human actor was proven */ + actorId?: string | null; + /** Files referenced by the comment body, in the order they were attached */ + attachments?: ConstructiveInternalTypeUpload[] | null; + /** Comment text */ + body?: string | null; + /** TRGM similarity when searching `body`. Returns null when no trgm search filter is active. */ + bodyTrgmSimilarity?: number | null; createdAt?: string | null; createdBy?: string | null; + createdByPrincipal?: string | null; /** Database that owns this resource (database-scoped isolation) */ databaseId?: string | null; - /** Cumulative error count for this resource */ - errorCount?: number | null; + embedding?: number[] | null; + embeddingUpdatedAt?: string | null; + /** VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. */ + embeddingVectorDistance?: number | null; id: string; - /** Installation ("release") this resource belongs to (NULL for standalone resources) */ - installationId?: string | null; - /** Provider slugs (e.g. mailgun, postgres) associated with this resource. The UI uses this to auto-fill required_secrets and required_configs from integration_providers. */ - integrations?: string[] | null; - /** Resource kind: Deployment, StatefulSet, Job, Service, Ingress, Certificate, ClusterIssuer */ + /** Line within path the comment is anchored to */ + line?: number | null; + /** When the anchored range this comment pointed at vanished from the diff */ + outdatedAt?: string | null; + /** File the comment is anchored to (NULL for a comment on the proposal) */ + path?: string | null; + /** TRGM similarity when searching `path`. Returns null when no trgm search filter is active. */ + pathTrgmSimilarity?: number | null; + /** Proposal being commented on */ + proposalId?: string | null; + /** When this comment was marked resolved */ + resolvedAt?: string | null; + search?: string | null; + /** Composite search relevance score (0..1, higher = more relevant). Computed using Reciprocal Rank Fusion (RRF) across all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. */ + searchScore?: number | null; + /** TSV rank when searching `search`. Returns null when no tsv search filter is active. */ + searchTsvRank?: number | null; + updatedAt?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +/** Proposals against a repository: issues, changes to merge, discussions and decisions */ +export interface Proposal { + /** Actor who opened the proposal; NULL only when no human actor was proven */ + actorId?: string | null; + /** Description of the proposed change */ + body?: string | null; + /** TRGM similarity when searching `body`. Returns null when no trgm search filter is active. */ + bodyTrgmSimilarity?: number | null; + /** Why this was closed: completed, not_planned, duplicate, superseded */ + closedReason?: string | null; + /** TRGM similarity when searching `closedReason`. Returns null when no trgm search filter is active. */ + closedReasonTrgmSimilarity?: number | null; + createdAt?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; + /** When the decision was taken (NULL while the question is open) */ + decidedAt?: string | null; + /** When this is wanted by (NULL when nothing is promised) */ + dueAt?: string | null; + embedding?: number[] | null; + embeddingUpdatedAt?: string | null; + /** VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. */ + embeddingVectorDistance?: number | null; + id: string; + /** issue (a report or plan), change (merge one ref into another), discussion (an open question), decision (a question answered) */ kind?: string | null; - /** Key/value pairs for selecting and filtering resources */ - labels?: Record | null; - /** Most recent provisioning or runtime error message */ - lastError?: string | null; - /** Last time a usage heartbeat was received for this resource (NULL until first heartbeat) */ - lastHeartbeatAt?: string | null; - /** Memory limit in bytes, derived from spec.resources.limits.memory (NULL if unset/invalid) */ - memoryLimitBytes?: string | null; - /** Requested memory in bytes, derived from spec.resources.requests.memory (NULL if unset/invalid) */ - memoryRequestBytes?: string | null; - /** Human-readable resource name */ - name?: string | null; - /** Namespace this resource belongs to (security boundary, maps to K8s namespace) */ - namespaceId?: string | null; - /** Config/secret realm this resource resolves against. Per key, the realm-specific atom wins over the NULL-realm default. NULL = the default lane. */ - realm?: string | null; - /** Desired pod count, derived from spec.replicas — the multiplier for total requested capacity (NULL if unset/invalid) */ - replicas?: number | null; - /** Embedded config requirements: array of (name, required, provider) tuples — extends the linked definition's requirements. provider is the integration slug this requirement belongs to, if any. */ - requiredConfigs?: ResourceRequirement[] | null; - /** Embedded secret requirements: array of (name, required, provider) tuples — extends the linked definition's requirements. provider is the integration slug this requirement belongs to, if any. */ - requiredSecrets?: ResourceRequirement[] | null; - /** Definition template this resource was created from (NULL for standalone resources) */ - resourceDefinitionId?: string | null; - /** URL-safe identifier, unique within (namespace_id, kind) */ - slug?: string | null; - /** Desired state — kind-specific configuration (image, ports, resources, etc.). Opaque to DB; validated by K8s. */ - spec?: Record | null; - /** Resource lifecycle status: pending, provisioning, active, completed, failed, draining, deleting */ + /** TRGM similarity when searching `kind`. Returns null when no trgm search filter is active. */ + kindTrgmSimilarity?: number | null; + /** Labels for filtering and grouping (a board is a query over kind, status and these) */ + labels?: string[] | null; + /** Commit the merge produced */ + mergeCommit?: string | null; + /** TRGM similarity when searching `mergeCommit`. Returns null when no trgm search filter is active. */ + mergeCommitTrgmSimilarity?: number | null; + /** How to merge when eligible: merge, squash, rebase */ + mergeMethod?: string | null; + /** TRGM similarity when searching `mergeMethod`. Returns null when no trgm search filter is active. */ + mergeMethodTrgmSimilarity?: number | null; + /** When merge-when-green was requested (NULL when no merge is pending) */ + mergeRequestedAt?: string | null; + /** When the merge completed */ + mergedAt?: string | null; + /** Review detail (reviewers, labels, checks summary) */ + metadata?: Record | null; + /** Proposal this one hangs under: an epic, or the discussion a decision came out of */ + parentId?: string | null; + /** Manual order within a board column, sparse so an insert between two rows moves one row (NULL when unranked) */ + priority?: string | null; + /** Repository this proposal is against */ + repositoryId?: string | null; + /** What was decided (for kind = decision; NULL while the question is open) */ + resolution?: string | null; + /** TRGM similarity when searching `resolution`. Returns null when no trgm search filter is active. */ + resolutionTrgmSimilarity?: number | null; + search?: string | null; + /** Composite search relevance score (0..1, higher = more relevant). Computed using Reciprocal Rank Fusion (RRF) across all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. */ + searchScore?: number | null; + /** TSV rank when searching `search`. Returns null when no tsv search filter is active. */ + searchTsvRank?: number | null; + /** Ref holding the proposed commits (NULL unless kind is change) */ + sourceRef?: string | null; + /** TRGM similarity when searching `sourceRef`. Returns null when no trgm search filter is active. */ + sourceRefTrgmSimilarity?: number | null; + /** Lifecycle state: draft, open, merged, closed */ status?: string | null; - /** Observed state from K8s — populated by handlers after reconciliation (service_url, clone_url, replicas, etc.) */ - statusObserved?: Record | null; - /** Storage class/tier, derived from spec.storage_class (StatefulSet; NULL if unset) */ - storageClass?: string | null; - /** Persistent volume size in bytes, derived from spec.storage_size (StatefulSet; NULL if unset/invalid) */ - storageSizeBytes?: string | null; + /** TRGM similarity when searching `status`. Returns null when no trgm search filter is active. */ + statusTrgmSimilarity?: number | null; + /** Ref the commits are proposed for (NULL unless kind is change) */ + targetRef?: string | null; + /** TRGM similarity when searching `targetRef`. Returns null when no trgm search filter is active. */ + targetRefTrgmSimilarity?: number | null; + /** What this proposal does */ + title?: string | null; + /** TRGM similarity when searching `title`. Returns null when no trgm search filter is active. */ + titleTrgmSimilarity?: number | null; updatedAt?: string | null; updatedBy?: string | null; + updatedByPrincipal?: string | null; } -export interface ResourceDeclaredCapacity { - cpuLimitMillicores?: string | null; - cpuRequestMillicores?: string | null; - installationId?: string | null; - isTransient?: boolean | null; - kind?: string | null; +/** Files a reviewer has read, pinned to the blob they read */ +export interface ProposalFileView { + /** Blob the reviewer read, which is what makes the mark survive a rebase or go stale */ + blobSha?: string | null; + createdAt?: string | null; + createdByPrincipal?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; + id: string; + /** Path of the file as the diff named it */ + path?: string | null; + /** Proposal the file belongs to */ + proposalId?: string | null; + /** Actor who read the file */ + reviewerId?: string | null; + updatedAt?: string | null; + updatedByPrincipal?: string | null; + /** When the file was marked read */ + viewedAt?: string | null; +} +/** Emoji reactions to a local proposal or one of its comments */ +export interface ProposalReaction { + /** Actor who reacted */ + actorId?: string | null; + /** Comment being reacted to (NULL for a reaction to the proposal itself) */ + commentId?: string | null; + createdAt?: string | null; + createdByPrincipal?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; + /** Reaction shortcode (+1, eyes, rocket) */ + emoji?: string | null; + id: string; + /** Proposal the reaction belongs to */ + proposalId?: string | null; + updatedAt?: string | null; + updatedByPrincipal?: string | null; +} +/** Review verdicts on a proposal, each pinned to the commit reviewed */ +export interface ProposalReview { + /** Summary the reviewer submitted with the verdict */ + body?: string | null; + /** TRGM similarity when searching `body`. Returns null when no trgm search filter is active. */ + bodyTrgmSimilarity?: number | null; + /** Head commit this verdict was submitted against */ + commitSha?: string | null; + /** TRGM similarity when searching `commitSha`. Returns null when no trgm search filter is active. */ + commitShaTrgmSimilarity?: number | null; + createdAt?: string | null; + createdByPrincipal?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; + id: string; + /** Proposal being reviewed */ + proposalId?: string | null; + /** Actor who submitted the verdict */ + reviewerId?: string | null; + search?: string | null; + /** Composite search relevance score (0..1, higher = more relevant). Computed using Reciprocal Rank Fusion (RRF) across all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. */ + searchScore?: number | null; + /** TSV rank when searching `search`. Returns null when no tsv search filter is active. */ + searchTsvRank?: number | null; + /** When the verdict was submitted */ + submittedAt?: string | null; + updatedAt?: string | null; + updatedByPrincipal?: string | null; + /** approve, reject or comment (a review that gates nothing) */ + verdict?: string | null; + /** TRGM similarity when searching `verdict`. Returns null when no trgm search filter is active. */ + verdictTrgmSimilarity?: number | null; +} +export interface ProposalsChunk { + /** Policy-required field derived from source table (used by AuthzComposite) */ + actorId?: string | null; + body?: string | null; + chunkIndex?: number | null; + createdAt?: string | null; + /** Policy-required field derived from source table (used by AuthzRelatedEntityMembership) */ + databaseId?: string | null; + embedding?: number[] | null; + /** VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. */ + embeddingVectorDistance?: number | null; + id: string; + metadata?: Record | null; + proposalsId?: string | null; + /** Composite search relevance score (0..1, higher = more relevant). Computed using Reciprocal Rank Fusion (RRF) across all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. */ + searchScore?: number | null; + updatedAt?: string | null; +} +/** Binds a namespace to an installed container registry for a lane (realm) — the reconciler projects that registry's credentials into the namespace as an image pull secret */ +export interface RegistryBinding { + createdAt?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; + id: string; + /** Reconciler detail (last error, projection timestamps) */ + metadata?: Record | null; + /** Namespace the registry credentials are projected into */ + namespaceId?: string | null; + /** Registry credential version last projected into the namespace (NULL = never projected) */ + observedCredentialVersion?: string | null; + /** Name of the image pull secret the reconciler writes into the namespace */ + pullSecretName?: string | null; + /** Lane this binding applies to (NULL = the scope's default lane) */ + realm?: string | null; + /** Registry host this binding's credentials authenticate to (what kubelet matches image references against) */ + registryHost?: string | null; + /** Registry endpoint (in this scope's registry catalog) the namespace pulls from */ + registryId?: string | null; + /** Projection state of the pull secret: pending, active, failed */ + status?: string | null; + updatedAt?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +/** Artifact registries this scope pulls from or pushes to (OCI images, npm packages), platform-run or external */ +export interface Registry { + /** How a client authenticates to this registry (none, basic, token) */ + authMode?: string | null; + /** Path prefix within the host (npm scope, OCI project); NULL = the host root */ + basePath?: string | null; + createdAt?: string | null; + createdByPrincipal?: string | null; + /** Name of the infra secret carrying this registry's credential (NULL when auth_mode = none) */ + credentialSecretName?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; + /** Registry host, without a scheme (e.g. ghcr.io, registry.npmjs.org); required unless role is source, where it is the optional requested host and is stamped with the provisioned one */ + host?: string | null; + id: string; + /** Resource installation running this registry (NULL for an external registry) */ + installationId?: string | null; + /** Whether this registry is published for use by any scope */ + isPublished?: boolean | null; + /** Artifact ecosystem this registry serves (oci, npm) */ + kind?: string | null; + /** Labels for selecting registries (lane, region, mirror role) */ + labels?: Record | null; + /** Message from the last failed provision/deprovision attempt (NULL when healthy) */ + lastError?: string | null; + /** Freeform metadata (mirror-of pointer, rate limits, contact) */ + metadata?: Record | null; + /** Human-readable registry name (e.g. github-container-registry) */ + name?: string | null; + /** Whether this registry is reserved for platform-internal use */ + platformOnly?: boolean | null; + /** Role in this scope: source (the push target), cache (read-through mirror), external (pull only) */ + role?: string | null; + /** Provisioning state (pending, provisioning, active, failed); rows the platform does not create are active on insert */ + status?: string | null; + updatedAt?: string | null; + updatedByPrincipal?: string | null; +} +/** Grants that make a registry usable by one scope */ +export interface RegistryGrant { + /** Endpoint actions this grant allows (read, write) */ + actions?: string[] | null; + createdAt?: string | null; + createdByPrincipal?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; + /** When this grant stops applying (NULL never expires) */ + expiresAt?: string | null; + /** User who issued this grant */ + grantedBy?: string | null; + /** Scope key of the grantee (a database_id or an entity_id) */ + granteeKey?: string | null; + /** Scope tier of the grantee (database, org, app, platform) */ + granteeScope?: string | null; + id: string; + /** Registry this grant applies to */ + registryId?: string | null; + updatedAt?: string | null; + updatedByPrincipal?: string | null; +} +/** Source repositories, hosted locally or on an external provider */ +export interface Repository { + /** URL a workspace clones from (NULL until the repository is provisioned) */ + cloneUrl?: string | null; + /** TRGM similarity when searching `cloneUrl`. Returns null when no trgm search filter is active. */ + cloneUrlTrgmSimilarity?: number | null; + createdAt?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; + /** Branch a clone checks out and a proposal targets by default */ + defaultBranch?: string | null; + /** TRGM similarity when searching `defaultBranch`. Returns null when no trgm search filter is active. */ + defaultBranchTrgmSimilarity?: number | null; + /** What this repository holds */ + description?: string | null; + /** TRGM similarity when searching `description`. Returns null when no trgm search filter is active. */ + descriptionTrgmSimilarity?: number | null; + embedding?: number[] | null; + embeddingUpdatedAt?: string | null; + /** VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. */ + embeddingVectorDistance?: number | null; + /** Identifier of this repository in the external provider (NULL for local) */ + externalId?: string | null; + /** TRGM similarity when searching `externalId`. Returns null when no trgm search filter is active. */ + externalIdTrgmSimilarity?: number | null; + id: string; + /** Whether this repository is retired: readable, not written to */ + isArchived?: boolean | null; + /** Provider detail (installation id, topics, external URLs) */ + metadata?: Record | null; + /** Human-readable repository name */ + name?: string | null; + /** TRGM similarity when searching `name`. Returns null when no trgm search filter is active. */ + nameTrgmSimilarity?: number | null; + /** User who owns this repository */ + ownerId?: string | null; + /** Where the repository lives: local (platform git server) or github */ + provider?: string | null; + /** TRGM similarity when searching `provider`. Returns null when no trgm search filter is active. */ + providerTrgmSimilarity?: number | null; + search?: string | null; + /** Composite search relevance score (0..1, higher = more relevant). Computed using Reciprocal Rank Fusion (RRF) across all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. */ + searchScore?: number | null; + /** TSV rank when searching `search`. Returns null when no tsv search filter is active. */ + searchTsvRank?: number | null; + /** URL-safe identifier, unique within the owning scope */ + slug?: string | null; + /** TRGM similarity when searching `slug`. Returns null when no trgm search filter is active. */ + slugTrgmSimilarity?: number | null; + updatedAt?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; + /** Read reach: private (owner), internal (scope members), public (any authenticated actor) */ + visibility?: string | null; + /** TRGM similarity when searching `visibility`. Returns null when no trgm search filter is active. */ + visibilityTrgmSimilarity?: number | null; +} +/** Normalized repository events from local hooks and external providers */ +export interface RepositoryEvent { + /** Authenticated actor behind the event (NULL when only the sending system was proven) */ + actorId?: string | null; + /** Commit the ref points at after the event */ + commitSha?: string | null; + createdAt?: string | null; + createdByPrincipal?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; + /** Provider delivery identifier, for redelivery dedupe (NULL for local hooks) */ + deliveryId?: string | null; + /** What happened: push, tag, pr_open, pr_merge, proposal_comment, manual */ + eventType?: string | null; + id: string; + /** Unverified provider detail (payload login, commit author, external URLs) */ + metadata?: Record | null; + /** Normalized event body the workflows read */ + payload?: Record | null; + /** Git ref the event concerns (refs/heads/main) */ + ref?: string | null; + /** Repository this event happened to */ + repositoryId?: string | null; + updatedAt?: string | null; + updatedByPrincipal?: string | null; +} +/** Workflows required to pass before a repository proposal merges */ +export interface RepositoryRequiredCheck { + createdAt?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; + id: string; + /** Repository whose merge gate requires this workflow */ + repositoryId?: string | null; + updatedAt?: string | null; + /** Workflow identity required by this repository gate */ + workflowId?: string | null; +} +/** Bindings from a repository event to the flow graph that should run */ +export interface RepositoryWorkflow { + /** Whether a new build cancels a running build with the same concurrency key instead of queueing */ + cancelInProgress?: boolean | null; + /** Builds of this workflow sharing this key run one at a time (NULL = unlimited) */ + concurrencyKey?: string | null; + createdAt?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; + /** Event type that fires this workflow */ + eventType?: string | null; + /** Flow graph to run when this workflow fires */ + graphId?: string | null; + id: string; + /** Static inputs merged into the graph run alongside the event */ + inputs?: Record | null; + /** Whether matching events fire this workflow */ + isEnabled?: boolean | null; + /** Human-readable workflow name */ + name?: string | null; + /** Glob the event ref must match (NULL matches any ref) */ + refPattern?: string | null; + /** Repository whose events this workflow listens to */ + repositoryId?: string | null; + /** Secret names this workflow's builds may resolve, intersected with the build lane's realm */ + requiredSecrets?: string[] | null; + /** URL-safe identifier, unique within the repository */ + slug?: string | null; + updatedAt?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +/** Unified K8s resource declarations — stores desired state (spec) and observed state (status) for all resource kinds within a namespace */ +export interface Resource { + /** Freeform metadata for tooling and operational notes */ + annotations?: Record | null; + /** CPU limit in millicores, derived from spec.resources.limits.cpu (NULL if unset/invalid) */ + cpuLimitMillicores?: string | null; + /** Requested CPU in millicores, derived from spec.resources.requests.cpu (NULL if unset/invalid) */ + cpuRequestMillicores?: string | null; + createdAt?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; + /** Cumulative error count for this resource */ + errorCount?: number | null; + id: string; + /** Pinned image reference this resource runs (registry host/repository:tag or @digest), written by promotion; NULL means spec.image decides */ + imageRef?: string | null; + /** Installation ("release") this resource belongs to (NULL for standalone resources) */ + installationId?: string | null; + /** Provider slugs (e.g. mailgun, postgres) associated with this resource. The UI uses this to auto-fill required_secrets and required_configs from integration_providers. */ + integrations?: string[] | null; + /** Resource kind: Deployment, StatefulSet, Job, Service, Ingress, Certificate, ClusterIssuer */ + kind?: string | null; + /** Key/value pairs for selecting and filtering resources */ + labels?: Record | null; + /** Most recent provisioning or runtime error message */ + lastError?: string | null; + /** Last time a usage heartbeat was received for this resource (NULL until first heartbeat) */ + lastHeartbeatAt?: string | null; + /** Memory limit in bytes, derived from spec.resources.limits.memory (NULL if unset/invalid) */ + memoryLimitBytes?: string | null; + /** Requested memory in bytes, derived from spec.resources.requests.memory (NULL if unset/invalid) */ + memoryRequestBytes?: string | null; + /** Human-readable resource name */ + name?: string | null; + /** Namespace this resource belongs to (security boundary, maps to K8s namespace) */ + namespaceId?: string | null; + /** Config/secret realm this resource resolves against. Per key, the realm-specific atom wins over the NULL-realm default. NULL = the default lane. */ + realm?: string | null; + /** Desired pod count, derived from spec.replicas — the multiplier for total requested capacity (NULL if unset/invalid) */ + replicas?: number | null; + /** Embedded config requirements: array of (name, required, provider) tuples — extends the linked definition's requirements. provider is the integration slug this requirement belongs to, if any. */ + requiredConfigs?: ResourceRequirement[] | null; + /** Embedded secret requirements: array of (name, required, provider) tuples — extends the linked definition's requirements. provider is the integration slug this requirement belongs to, if any. */ + requiredSecrets?: ResourceRequirement[] | null; + /** Definition template this resource was created from (NULL for standalone resources) */ + resourceDefinitionId?: string | null; + /** URL-safe identifier, unique within (namespace_id, kind) */ + slug?: string | null; + /** Desired state — kind-specific configuration (image, ports, resources, etc.). Opaque to DB; validated by K8s. */ + spec?: Record | null; + /** Resource lifecycle status: pending, provisioning, active, completed, failed, draining, deleting */ + status?: string | null; + /** Observed state from K8s — populated by handlers after reconciliation (service_url, clone_url, replicas, etc.) */ + statusObserved?: Record | null; + /** Storage class/tier, derived from the legacy spec.storage_class else spec.storage[0].class (NULL if unset) */ + storageClass?: string | null; + /** Declared persistent volume bytes per pod, summed over spec.storage[] plus the legacy spec.storage_size (NULL if none declared) */ + storageSizeBytes?: string | null; + /** Total declared persistent volume bytes for the resource: per-pod bytes times replicas for StatefulSet (per-ordinal claims), per-pod bytes otherwise (claims shared across replicas) */ + storageTotalBytes?: string | null; + updatedAt?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +export interface ResourceDeclaredCapacity { + cpuLimitMillicores?: string | null; + cpuRequestMillicores?: string | null; + installationId?: string | null; + isTransient?: boolean | null; + kind?: string | null; memoryLimitBytes?: string | null; memoryRequestBytes?: string | null; namespaceId?: string | null; @@ -1657,6 +3200,7 @@ export interface ResourceDeclaredCapacity { source?: string | null; sourceId?: string | null; storageSizeBytes?: string | null; + storageTotalBytes?: string | null; } /** Resource definitions — templates for resource kinds declaring default spec and secret/config requirements */ export interface ResourceDefinition { @@ -1664,6 +3208,7 @@ export interface ResourceDefinition { annotations?: Record | null; createdAt?: string | null; createdBy?: string | null; + createdByPrincipal?: string | null; /** Database that owns this resource (database-scoped isolation) */ databaseId?: string | null; /** Template spec for creating resource instances of this kind */ @@ -1693,10 +3238,11 @@ export interface ResourceDefinition { stepUpMinAge?: string | null; updatedAt?: string | null; updatedBy?: string | null; + updatedByPrincipal?: string | null; } /** Resource lifecycle events — audit log of provisioning, updates, and failure events */ export interface ResourceEvent { - /** User who triggered this event (NULL for system/automated) */ + /** User who triggered this event; NULL only when no human actor was proven */ actorId?: string | null; /** Event timestamp (partition key) */ createdAt?: string | null; @@ -1719,6 +3265,7 @@ export interface ResourceInstallation { commitId?: string | null; createdAt?: string | null; createdBy?: string | null; + createdByPrincipal?: string | null; /** Database that owns this resource (database-scoped isolation) */ databaseId?: string | null; id: string; @@ -1738,6 +3285,27 @@ export interface ResourceInstallation { storeId?: string | null; updatedAt?: string | null; updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +export interface ResourceObservedStorage { + capacity?: string | null; + capacityBytes?: string | null; + claimName?: string | null; + declaredStorageClass?: string | null; + declaredStorageSizeBytes?: string | null; + declaredStorageTotalBytes?: string | null; + installationId?: string | null; + isBound?: boolean | null; + kind?: string | null; + namespaceId?: string | null; + phase?: string | null; + requested?: string | null; + requestedBytes?: string | null; + resourceId?: string | null; + resourceStatus?: string | null; + slug?: string | null; + storageClass?: string | null; + storageName?: string | null; } /** On-demand resource status checks — diagnostic snapshots from the runtime (K8s status, conditions, log tails) */ export interface ResourceStatusCheck { @@ -1831,9 +3399,11 @@ export interface ResourcesHealth { cpuRequestMillicores?: string | null; createdAt?: string | null; createdBy?: string | null; + createdByPrincipal?: string | null; databaseId?: string | null; errorCount?: number | null; id: string; + imageRef?: string | null; installationId?: string | null; integrations?: string[] | null; kind?: string | null; @@ -1856,8 +3426,10 @@ export interface ResourcesHealth { statusObserved?: Record | null; storageClass?: string | null; storageSizeBytes?: string | null; + storageTotalBytes?: string | null; updatedAt?: string | null; updatedBy?: string | null; + updatedByPrincipal?: string | null; } export interface ResourcesRequirementsState { configHash?: string | null; @@ -1887,6 +3459,7 @@ export interface WebhookEndpoint { active?: boolean | null; createdAt?: string | null; createdBy?: string | null; + createdByPrincipal?: string | null; /** Database that owns this resource (database-scoped isolation) */ databaseId?: string | null; /** Same-scope function definition invoked on delivery. The function must list the webhook channel in access_channels. */ @@ -1906,6 +3479,7 @@ export interface WebhookEndpoint { signingSecretName?: string | null; updatedAt?: string | null; updatedBy?: string | null; + updatedByPrincipal?: string | null; } /** Durable webhook acceptance log — one row per accepted delivery, deduplicated on (endpoint_id, external_event_id), linked to the pending function invocation it enqueued */ export interface WebhookEvent { @@ -1946,6 +3520,32 @@ export interface PageInfo { endCursor?: string | null; } // ============ Entity Relation Types ============ +export interface BuildRelations { + event?: RepositoryEvent | null; + proposal?: Proposal | null; + repository?: Repository | null; + workflow?: RepositoryWorkflow | null; +} +export interface BuildStepRelations {} +export interface BuilderBindingRelations { + namespace?: Namespace | null; +} +export interface ContentPresetRelations {} +export interface DatabaseFunctionGraphRelations { + databaseFunctionGraphExecutionsByGraphId?: ConnectionResult; + functionDefinitionsByGraphId?: ConnectionResult; + repositoryWorkflowsByGraphId?: ConnectionResult; +} +export interface DatabaseFunctionGraphExecutionRelations { + graph?: DatabaseFunctionGraph | null; +} +export interface DatabaseFunctionGraphExecutionNodeStateRelations {} +export interface DatabaseFunctionGraphExecutionOutputRelations {} +export interface DatabaseGraphCommitRelations {} +export interface DatabaseGraphGetAllTreeNodesRecordRelations {} +export interface DatabaseGraphObjectRelations {} +export interface DatabaseGraphRefRelations {} +export interface DatabaseGraphStoreRelations {} export interface DbPresetRelations {} export interface FunctionApiBindingRelations { functionDefinition?: FunctionDefinition | null; @@ -1955,6 +3555,7 @@ export interface FunctionCapabilityBindingRelations { function?: FunctionDefinition | null; } export interface FunctionDefinitionRelations { + graph?: DatabaseFunctionGraph | null; functionApiBindings?: ConnectionResult; functionCapabilityBindingsByFunctionId?: ConnectionResult; webhookEndpoints?: ConnectionResult; @@ -1968,6 +3569,7 @@ export interface FunctionGraphCommitRelations {} export interface FunctionGraphRelations { functionGraphExecutionsByGraphId?: ConnectionResult; platformFunctionDefinitionsByGraphId?: ConnectionResult; + platformRepositoryWorkflowsByGraphId?: ConnectionResult; } export interface FunctionGraphExecutionRelations { graph?: FunctionGraph | null; @@ -1982,6 +3584,12 @@ export interface FunctionInvocationRelations { apiBinding?: FunctionApiBinding | null; } export interface GetAllTreeNodesRecordRelations {} +export interface ImageRelations { + imageGrants?: ConnectionResult; +} +export interface ImageGrantRelations { + image?: Image | null; +} export interface InfraCommitRelations {} export interface InfraGetAllTreeNodesRecordRelations {} export interface InfraObjectRelations {} @@ -1989,13 +3597,25 @@ export interface InfraRefRelations {} export interface InfraStoreRelations {} export interface IntegrationProviderRelations {} export interface NamespaceRelations { + builderBindings?: ConnectionResult; functionDeployments?: ConnectionResult; + registryBindings?: ConnectionResult; resourceDefinitions?: ConnectionResult; resourceInstallations?: ConnectionResult; resources?: ConnectionResult; webhookEndpoints?: ConnectionResult; } export interface NamespaceEventRelations {} +export interface PlatformBuildRelations { + event?: PlatformRepositoryEvent | null; + proposal?: PlatformProposal | null; + repository?: PlatformRepository | null; + workflow?: PlatformRepositoryWorkflow | null; +} +export interface PlatformBuildStepRelations {} +export interface PlatformBuilderBindingRelations { + namespace?: PlatformNamespace | null; +} export interface PlatformFunctionApiBindingRelations { functionDefinition?: PlatformFunctionDefinition | null; platformFunctionInvocationsByApiBindingId?: ConnectionResult; @@ -2018,19 +3638,90 @@ export interface PlatformFunctionInvocationAttemptRelations {} export interface PlatformFunctionInvocationRelations { apiBinding?: PlatformFunctionApiBinding | null; } +export interface PlatformImageRelations { + platformImageGrantsByImageId?: ConnectionResult; +} +export interface PlatformImageGrantRelations { + image?: PlatformImage | null; +} export interface PlatformInfraCommitRelations {} export interface PlatformInfraGetAllTreeNodesRecordRelations {} export interface PlatformInfraObjectRelations {} export interface PlatformInfraRefRelations {} export interface PlatformInfraStoreRelations {} +export interface PlatformK8sResourceKindRelations {} +export interface PlatformK8sSpecRuleRelations {} export interface PlatformNamespaceRelations { + platformBuilderBindingsByNamespaceId?: ConnectionResult; platformFunctionDeploymentsByNamespaceId?: ConnectionResult; + platformRegistryBindingsByNamespaceId?: ConnectionResult; platformResourceDefinitionsByNamespaceId?: ConnectionResult; platformResourceInstallationsByNamespaceId?: ConnectionResult; platformResourcesByNamespaceId?: ConnectionResult; platformWebhookEndpointsByNamespaceId?: ConnectionResult; } export interface PlatformNamespaceEventRelations {} +export interface PlatformProposalCommentRelations { + proposal?: PlatformProposal | null; + platformProposalReactionsByCommentId?: ConnectionResult; +} +export interface PlatformProposalRelations { + parent?: PlatformProposal | null; + repository?: PlatformRepository | null; + childPlatformProposals?: ConnectionResult; + platformBuildsByProposalId?: ConnectionResult; + platformProposalCommentsByProposalId?: ConnectionResult; + platformProposalFileViewsByProposalId?: ConnectionResult; + platformProposalReactionsByProposalId?: ConnectionResult; + platformProposalReviewsByProposalId?: ConnectionResult; + platformProposalsChunksByPlatformProposalsId?: ConnectionResult; +} +export interface PlatformProposalFileViewRelations { + proposal?: PlatformProposal | null; +} +export interface PlatformProposalReactionRelations { + comment?: PlatformProposalComment | null; + proposal?: PlatformProposal | null; +} +export interface PlatformProposalReviewRelations { + proposal?: PlatformProposal | null; +} +export interface PlatformProposalsChunkRelations { + platformProposals?: PlatformProposal | null; +} +export interface PlatformRegistryBindingRelations { + namespace?: PlatformNamespace | null; + registry?: PlatformRegistry | null; +} +export interface PlatformRegistryRelations { + installation?: PlatformResourceInstallation | null; + platformRegistryBindingsByRegistryId?: ConnectionResult; + platformRegistryGrantsByRegistryId?: ConnectionResult; +} +export interface PlatformRegistryGrantRelations { + registry?: PlatformRegistry | null; +} +export interface PlatformRepositoryRelations { + platformBuildsByRepositoryId?: ConnectionResult; + platformProposalsByRepositoryId?: ConnectionResult; + platformRepositoryEventsByRepositoryId?: ConnectionResult; + platformRepositoryRequiredChecksByRepositoryId?: ConnectionResult; + platformRepositoryWorkflowsByRepositoryId?: ConnectionResult; +} +export interface PlatformRepositoryEventRelations { + repository?: PlatformRepository | null; + platformBuildsByEventId?: ConnectionResult; +} +export interface PlatformRepositoryRequiredCheckRelations { + repository?: PlatformRepository | null; + workflow?: PlatformRepositoryWorkflow | null; +} +export interface PlatformRepositoryWorkflowRelations { + graph?: FunctionGraph | null; + repository?: PlatformRepository | null; + platformBuildsByWorkflowId?: ConnectionResult; + platformRepositoryRequiredChecksByWorkflowId?: ConnectionResult; +} export interface PlatformResourceRelations { installation?: PlatformResourceInstallation | null; namespace?: PlatformNamespace | null; @@ -2045,8 +3736,10 @@ export interface PlatformResourceDefinitionRelations { export interface PlatformResourceEventRelations {} export interface PlatformResourceInstallationRelations { namespace?: PlatformNamespace | null; + platformRegistriesByInstallationId?: ConnectionResult; platformResourcesByInstallationId?: ConnectionResult; } +export interface PlatformResourceObservedStorageRelations {} export interface PlatformResourceStatusCheckRelations { resource?: PlatformResource | null; } @@ -2064,6 +3757,67 @@ export interface PlatformWebhookEndpointRelations { export interface PlatformWebhookEventRelations { endpoint?: PlatformWebhookEndpoint | null; } +export interface ProposalCommentRelations { + proposal?: Proposal | null; + proposalReactionsByCommentId?: ConnectionResult; +} +export interface ProposalRelations { + parent?: Proposal | null; + repository?: Repository | null; + builds?: ConnectionResult; + childProposals?: ConnectionResult; + proposalComments?: ConnectionResult; + proposalFileViews?: ConnectionResult; + proposalReactions?: ConnectionResult; + proposalReviews?: ConnectionResult; + proposalsChunksByProposalsId?: ConnectionResult; +} +export interface ProposalFileViewRelations { + proposal?: Proposal | null; +} +export interface ProposalReactionRelations { + comment?: ProposalComment | null; + proposal?: Proposal | null; +} +export interface ProposalReviewRelations { + proposal?: Proposal | null; +} +export interface ProposalsChunkRelations { + proposals?: Proposal | null; +} +export interface RegistryBindingRelations { + namespace?: Namespace | null; + registry?: Registry | null; +} +export interface RegistryRelations { + installation?: ResourceInstallation | null; + registryBindings?: ConnectionResult; + registryGrants?: ConnectionResult; +} +export interface RegistryGrantRelations { + registry?: Registry | null; +} +export interface RepositoryRelations { + builds?: ConnectionResult; + proposals?: ConnectionResult; + repositoryEvents?: ConnectionResult; + repositoryRequiredChecks?: ConnectionResult; + repositoryWorkflows?: ConnectionResult; +} +export interface RepositoryEventRelations { + repository?: Repository | null; + buildsByEventId?: ConnectionResult; +} +export interface RepositoryRequiredCheckRelations { + repository?: Repository | null; + workflow?: RepositoryWorkflow | null; +} +export interface RepositoryWorkflowRelations { + graph?: DatabaseFunctionGraph | null; + repository?: Repository | null; + buildsByWorkflowId?: ConnectionResult; + repositoryRequiredChecksByWorkflowId?: ConnectionResult; +} export interface ResourceRelations { installation?: ResourceInstallation | null; namespace?: Namespace | null; @@ -2078,8 +3832,10 @@ export interface ResourceDefinitionRelations { export interface ResourceEventRelations {} export interface ResourceInstallationRelations { namespace?: Namespace | null; + registriesByInstallationId?: ConnectionResult; resourcesByInstallationId?: ConnectionResult; } +export interface ResourceObservedStorageRelations {} export interface ResourceStatusCheckRelations { resource?: Resource | null; } @@ -2098,6 +3854,24 @@ export interface WebhookEventRelations { endpoint?: WebhookEndpoint | null; } // ============ Entity Types With Relations ============ +export type BuildWithRelations = Build & BuildRelations; +export type BuildStepWithRelations = BuildStep & BuildStepRelations; +export type BuilderBindingWithRelations = BuilderBinding & BuilderBindingRelations; +export type ContentPresetWithRelations = ContentPreset & ContentPresetRelations; +export type DatabaseFunctionGraphWithRelations = DatabaseFunctionGraph & + DatabaseFunctionGraphRelations; +export type DatabaseFunctionGraphExecutionWithRelations = DatabaseFunctionGraphExecution & + DatabaseFunctionGraphExecutionRelations; +export type DatabaseFunctionGraphExecutionNodeStateWithRelations = + DatabaseFunctionGraphExecutionNodeState & DatabaseFunctionGraphExecutionNodeStateRelations; +export type DatabaseFunctionGraphExecutionOutputWithRelations = + DatabaseFunctionGraphExecutionOutput & DatabaseFunctionGraphExecutionOutputRelations; +export type DatabaseGraphCommitWithRelations = DatabaseGraphCommit & DatabaseGraphCommitRelations; +export type DatabaseGraphGetAllTreeNodesRecordWithRelations = DatabaseGraphGetAllTreeNodesRecord & + DatabaseGraphGetAllTreeNodesRecordRelations; +export type DatabaseGraphObjectWithRelations = DatabaseGraphObject & DatabaseGraphObjectRelations; +export type DatabaseGraphRefWithRelations = DatabaseGraphRef & DatabaseGraphRefRelations; +export type DatabaseGraphStoreWithRelations = DatabaseGraphStore & DatabaseGraphStoreRelations; export type DbPresetWithRelations = DbPreset & DbPresetRelations; export type FunctionApiBindingWithRelations = FunctionApiBinding & FunctionApiBindingRelations; export type FunctionCapabilityBindingWithRelations = FunctionCapabilityBinding & @@ -2124,6 +3898,8 @@ export type FunctionInvocationAttemptWithRelations = FunctionInvocationAttempt & export type FunctionInvocationWithRelations = FunctionInvocation & FunctionInvocationRelations; export type GetAllTreeNodesRecordWithRelations = GetAllTreeNodesRecord & GetAllTreeNodesRecordRelations; +export type ImageWithRelations = Image & ImageRelations; +export type ImageGrantWithRelations = ImageGrant & ImageGrantRelations; export type InfraCommitWithRelations = InfraCommit & InfraCommitRelations; export type InfraGetAllTreeNodesRecordWithRelations = InfraGetAllTreeNodesRecord & InfraGetAllTreeNodesRecordRelations; @@ -2133,6 +3909,10 @@ export type InfraStoreWithRelations = InfraStore & InfraStoreRelations; export type IntegrationProviderWithRelations = IntegrationProvider & IntegrationProviderRelations; export type NamespaceWithRelations = Namespace & NamespaceRelations; export type NamespaceEventWithRelations = NamespaceEvent & NamespaceEventRelations; +export type PlatformBuildWithRelations = PlatformBuild & PlatformBuildRelations; +export type PlatformBuildStepWithRelations = PlatformBuildStep & PlatformBuildStepRelations; +export type PlatformBuilderBindingWithRelations = PlatformBuilderBinding & + PlatformBuilderBindingRelations; export type PlatformFunctionApiBindingWithRelations = PlatformFunctionApiBinding & PlatformFunctionApiBindingRelations; export type PlatformFunctionCapabilityBindingWithRelations = PlatformFunctionCapabilityBinding & @@ -2149,15 +3929,43 @@ export type PlatformFunctionInvocationAttemptWithRelations = PlatformFunctionInv PlatformFunctionInvocationAttemptRelations; export type PlatformFunctionInvocationWithRelations = PlatformFunctionInvocation & PlatformFunctionInvocationRelations; +export type PlatformImageWithRelations = PlatformImage & PlatformImageRelations; +export type PlatformImageGrantWithRelations = PlatformImageGrant & PlatformImageGrantRelations; export type PlatformInfraCommitWithRelations = PlatformInfraCommit & PlatformInfraCommitRelations; export type PlatformInfraGetAllTreeNodesRecordWithRelations = PlatformInfraGetAllTreeNodesRecord & PlatformInfraGetAllTreeNodesRecordRelations; export type PlatformInfraObjectWithRelations = PlatformInfraObject & PlatformInfraObjectRelations; export type PlatformInfraRefWithRelations = PlatformInfraRef & PlatformInfraRefRelations; export type PlatformInfraStoreWithRelations = PlatformInfraStore & PlatformInfraStoreRelations; +export type PlatformK8sResourceKindWithRelations = PlatformK8sResourceKind & + PlatformK8sResourceKindRelations; +export type PlatformK8sSpecRuleWithRelations = PlatformK8sSpecRule & PlatformK8sSpecRuleRelations; export type PlatformNamespaceWithRelations = PlatformNamespace & PlatformNamespaceRelations; export type PlatformNamespaceEventWithRelations = PlatformNamespaceEvent & PlatformNamespaceEventRelations; +export type PlatformProposalCommentWithRelations = PlatformProposalComment & + PlatformProposalCommentRelations; +export type PlatformProposalWithRelations = PlatformProposal & PlatformProposalRelations; +export type PlatformProposalFileViewWithRelations = PlatformProposalFileView & + PlatformProposalFileViewRelations; +export type PlatformProposalReactionWithRelations = PlatformProposalReaction & + PlatformProposalReactionRelations; +export type PlatformProposalReviewWithRelations = PlatformProposalReview & + PlatformProposalReviewRelations; +export type PlatformProposalsChunkWithRelations = PlatformProposalsChunk & + PlatformProposalsChunkRelations; +export type PlatformRegistryBindingWithRelations = PlatformRegistryBinding & + PlatformRegistryBindingRelations; +export type PlatformRegistryWithRelations = PlatformRegistry & PlatformRegistryRelations; +export type PlatformRegistryGrantWithRelations = PlatformRegistryGrant & + PlatformRegistryGrantRelations; +export type PlatformRepositoryWithRelations = PlatformRepository & PlatformRepositoryRelations; +export type PlatformRepositoryEventWithRelations = PlatformRepositoryEvent & + PlatformRepositoryEventRelations; +export type PlatformRepositoryRequiredCheckWithRelations = PlatformRepositoryRequiredCheck & + PlatformRepositoryRequiredCheckRelations; +export type PlatformRepositoryWorkflowWithRelations = PlatformRepositoryWorkflow & + PlatformRepositoryWorkflowRelations; export type PlatformResourceWithRelations = PlatformResource & PlatformResourceRelations; export type PlatformResourceDeclaredCapacityWithRelations = PlatformResourceDeclaredCapacity & PlatformResourceDeclaredCapacityRelations; @@ -2167,6 +3975,8 @@ export type PlatformResourceEventWithRelations = PlatformResourceEvent & PlatformResourceEventRelations; export type PlatformResourceInstallationWithRelations = PlatformResourceInstallation & PlatformResourceInstallationRelations; +export type PlatformResourceObservedStorageWithRelations = PlatformResourceObservedStorage & + PlatformResourceObservedStorageRelations; export type PlatformResourceStatusCheckWithRelations = PlatformResourceStatusCheck & PlatformResourceStatusCheckRelations; export type PlatformResourceUsageLogWithRelations = PlatformResourceUsageLog & @@ -2185,6 +3995,20 @@ export type PlatformWebhookEndpointWithRelations = PlatformWebhookEndpoint & PlatformWebhookEndpointRelations; export type PlatformWebhookEventWithRelations = PlatformWebhookEvent & PlatformWebhookEventRelations; +export type ProposalCommentWithRelations = ProposalComment & ProposalCommentRelations; +export type ProposalWithRelations = Proposal & ProposalRelations; +export type ProposalFileViewWithRelations = ProposalFileView & ProposalFileViewRelations; +export type ProposalReactionWithRelations = ProposalReaction & ProposalReactionRelations; +export type ProposalReviewWithRelations = ProposalReview & ProposalReviewRelations; +export type ProposalsChunkWithRelations = ProposalsChunk & ProposalsChunkRelations; +export type RegistryBindingWithRelations = RegistryBinding & RegistryBindingRelations; +export type RegistryWithRelations = Registry & RegistryRelations; +export type RegistryGrantWithRelations = RegistryGrant & RegistryGrantRelations; +export type RepositoryWithRelations = Repository & RepositoryRelations; +export type RepositoryEventWithRelations = RepositoryEvent & RepositoryEventRelations; +export type RepositoryRequiredCheckWithRelations = RepositoryRequiredCheck & + RepositoryRequiredCheckRelations; +export type RepositoryWorkflowWithRelations = RepositoryWorkflow & RepositoryWorkflowRelations; export type ResourceWithRelations = Resource & ResourceRelations; export type ResourceDeclaredCapacityWithRelations = ResourceDeclaredCapacity & ResourceDeclaredCapacityRelations; @@ -2192,6 +4016,8 @@ export type ResourceDefinitionWithRelations = ResourceDefinition & ResourceDefin export type ResourceEventWithRelations = ResourceEvent & ResourceEventRelations; export type ResourceInstallationWithRelations = ResourceInstallation & ResourceInstallationRelations; +export type ResourceObservedStorageWithRelations = ResourceObservedStorage & + ResourceObservedStorageRelations; export type ResourceStatusCheckWithRelations = ResourceStatusCheck & ResourceStatusCheckRelations; export type ResourceUsageLogWithRelations = ResourceUsageLog & ResourceUsageLogRelations; export type ResourceUsageSummaryWithRelations = ResourceUsageSummary & @@ -2205,30 +4031,254 @@ export type ResourcesResolvedRequirementWithRelations = ResourcesResolvedRequire export type WebhookEndpointWithRelations = WebhookEndpoint & WebhookEndpointRelations; export type WebhookEventWithRelations = WebhookEvent & WebhookEventRelations; // ============ Entity Select Types ============ -export type DbPresetSelect = { +export type BuildSelect = { + actorId?: boolean; + attempt?: boolean; + commitSha?: boolean; + conclusion?: boolean; + createdAt?: boolean; + createdByPrincipal?: boolean; + databaseId?: boolean; + eventId?: boolean; + finishedAt?: boolean; + id?: boolean; + imageRef?: boolean; + jobId?: boolean; + logs?: boolean; + matrixKey?: boolean; + metadata?: boolean; + proposalId?: boolean; + ref?: boolean; + repositoryId?: boolean; + startedAt?: boolean; + status?: boolean; + updatedAt?: boolean; + updatedByPrincipal?: boolean; + workflowId?: boolean; + event?: { + select: RepositoryEventSelect; + }; + proposal?: { + select: ProposalSelect; + }; + repository?: { + select: RepositorySelect; + }; + workflow?: { + select: RepositoryWorkflowSelect; + }; +}; +export type BuildStepSelect = { + buildId?: boolean; + createdByPrincipal?: boolean; + databaseId?: boolean; + exitCode?: boolean; + finishedAt?: boolean; + id?: boolean; + kind?: boolean; + logBytes?: boolean; + logOffset?: boolean; + name?: boolean; + parentSeq?: boolean; + recordedAt?: boolean; + seq?: boolean; + startedAt?: boolean; + status?: boolean; + summary?: boolean; +}; +export type BuilderBindingSelect = { + createdAt?: boolean; + createdBy?: boolean; + createdByPrincipal?: boolean; + databaseId?: boolean; + id?: boolean; + installationId?: boolean; + lastError?: boolean; + metadata?: boolean; + namespaceId?: boolean; + observedHost?: boolean; + realm?: boolean; + status?: boolean; + updatedAt?: boolean; + updatedBy?: boolean; + updatedByPrincipal?: boolean; + namespace?: { + select: NamespaceSelect; + }; +}; +export type ContentPresetSelect = { active?: boolean; commitId?: boolean; createdAt?: boolean; definition?: boolean; description?: boolean; id?: boolean; + kind?: boolean; label?: boolean; - modulesHash?: boolean; slug?: boolean; storeId?: boolean; updatedAt?: boolean; }; -export type FunctionApiBindingSelect = { - alias?: boolean; - apiId?: boolean; - config?: boolean; +export type DatabaseFunctionGraphSelect = { + context?: boolean; createdAt?: boolean; - functionDefinitionId?: boolean; + createdBy?: boolean; + databaseId?: boolean; + definitionsCommitId?: boolean; + description?: boolean; id?: boolean; + isValid?: boolean; + name?: boolean; + storeId?: boolean; updatedAt?: boolean; - functionDefinition?: { - select: FunctionDefinitionSelect; - }; + validationErrors?: boolean; + databaseFunctionGraphExecutionsByGraphId?: { + select: DatabaseFunctionGraphExecutionSelect; + first?: number; + filter?: DatabaseFunctionGraphExecutionFilter; + orderBy?: DatabaseFunctionGraphExecutionOrderBy[]; + }; + functionDefinitionsByGraphId?: { + select: FunctionDefinitionSelect; + first?: number; + filter?: FunctionDefinitionFilter; + orderBy?: FunctionDefinitionOrderBy[]; + }; + repositoryWorkflowsByGraphId?: { + select: RepositoryWorkflowSelect; + first?: number; + filter?: RepositoryWorkflowFilter; + orderBy?: RepositoryWorkflowOrderBy[]; + }; +}; +export type DatabaseFunctionGraphExecutionSelect = { + actorId?: boolean; + completedAt?: boolean; + currentWave?: boolean; + databaseId?: boolean; + definitionsCommitId?: boolean; + entityId?: boolean; + entityType?: boolean; + errorCode?: boolean; + errorMessage?: boolean; + executionPlan?: boolean; + graphId?: boolean; + id?: boolean; + inputPayload?: boolean; + invocationCreatedAt?: boolean; + invocationId?: boolean; + lastProgressAt?: boolean; + maxPendingJobs?: boolean; + maxTicks?: boolean; + nodeOutputs?: boolean; + organizationId?: boolean; + outputNames?: boolean; + outputNode?: boolean; + outputPayload?: boolean; + outputPort?: boolean; + parentExecutionId?: boolean; + parentInvocationId?: boolean; + parentNodeName?: boolean; + principalId?: boolean; + startedAt?: boolean; + status?: boolean; + tickCount?: boolean; + timeoutAt?: boolean; + graph?: { + select: DatabaseFunctionGraphSelect; + }; +}; +export type DatabaseFunctionGraphExecutionNodeStateSelect = { + callbackInputs?: boolean; + callbackMeta?: boolean; + callbackTokenHash?: boolean; + completedAt?: boolean; + createdAt?: boolean; + databaseId?: boolean; + errorCode?: boolean; + errorMessage?: boolean; + executionId?: boolean; + expiryDefaultOutput?: boolean; + expiryEscalatedAt?: boolean; + expiryPolicy?: boolean; + id?: boolean; + nodeName?: boolean; + nodePath?: boolean; + outputId?: boolean; + startedAt?: boolean; + status?: boolean; + waitingDeadlineAt?: boolean; + waitingOn?: boolean; + waitingSince?: boolean; +}; +export type DatabaseFunctionGraphExecutionOutputSelect = { + createdAt?: boolean; + data?: boolean; + databaseId?: boolean; + hash?: boolean; + id?: boolean; +}; +export type DatabaseGraphCommitSelect = { + authorId?: boolean; + committerId?: boolean; + databaseId?: boolean; + date?: boolean; + id?: boolean; + message?: boolean; + parentIds?: boolean; + storeId?: boolean; + treeId?: boolean; +}; +export type DatabaseGraphGetAllTreeNodesRecordSelect = { + data?: boolean; + path?: boolean; +}; +export type DatabaseGraphObjectSelect = { + createdAt?: boolean; + data?: boolean; + databaseId?: boolean; + id?: boolean; + kids?: boolean; + ktree?: boolean; +}; +export type DatabaseGraphRefSelect = { + commitId?: boolean; + databaseId?: boolean; + id?: boolean; + name?: boolean; + storeId?: boolean; +}; +export type DatabaseGraphStoreSelect = { + createdAt?: boolean; + databaseId?: boolean; + hash?: boolean; + id?: boolean; + name?: boolean; +}; +export type DbPresetSelect = { + active?: boolean; + commitId?: boolean; + createdAt?: boolean; + definition?: boolean; + description?: boolean; + id?: boolean; + label?: boolean; + modulesHash?: boolean; + slug?: boolean; + storeId?: boolean; + updatedAt?: boolean; +}; +export type FunctionApiBindingSelect = { + alias?: boolean; + apiId?: boolean; + config?: boolean; + createdAt?: boolean; + functionDefinitionId?: boolean; + id?: boolean; + updatedAt?: boolean; + functionDefinition?: { + select: FunctionDefinitionSelect; + }; functionInvocationsByApiBindingId?: { select: FunctionInvocationSelect; first?: number; @@ -2253,11 +4303,13 @@ export type FunctionCapabilityBindingSelect = { }; export type FunctionDefinitionSelect = { accessChannels?: boolean; + anonymousCallable?: boolean; category?: boolean; concurrency?: boolean; cpuLimitMillicores?: boolean; cpuRequestMillicores?: boolean; createdAt?: boolean; + createdByPrincipal?: boolean; databaseId?: boolean; description?: boolean; fnCategory?: boolean; @@ -2282,8 +4334,10 @@ export type FunctionDefinitionSelect = { publishedAt?: boolean; queueName?: boolean; requiredBuckets?: boolean; + requiredCapabilities?: boolean; requiredConfigs?: boolean; requiredModels?: boolean; + requiredModules?: boolean; requiredSecrets?: boolean; resources?: boolean; runtime?: boolean; @@ -2294,7 +4348,11 @@ export type FunctionDefinitionSelect = { taskIdentifier?: boolean; timeoutSeconds?: boolean; updatedAt?: boolean; + updatedByPrincipal?: boolean; volatile?: boolean; + graph?: { + select: DatabaseFunctionGraphSelect; + }; functionApiBindings?: { select: FunctionApiBindingSelect; first?: number; @@ -2318,6 +4376,7 @@ export type FunctionDeploymentSelect = { annotations?: boolean; concurrency?: boolean; createdAt?: boolean; + createdByPrincipal?: boolean; databaseId?: boolean; errorCount?: boolean; handlerName?: boolean; @@ -2328,6 +4387,7 @@ export type FunctionDeploymentSelect = { lastError?: boolean; lastErrorAt?: boolean; namespaceId?: boolean; + realm?: boolean; resources?: boolean; revision?: boolean; scaleMax?: boolean; @@ -2337,6 +4397,7 @@ export type FunctionDeploymentSelect = { status?: boolean; timeoutSeconds?: boolean; updatedAt?: boolean; + updatedByPrincipal?: boolean; namespace?: { select: NamespaceSelect; }; @@ -2398,6 +4459,12 @@ export type FunctionGraphSelect = { filter?: PlatformFunctionDefinitionFilter; orderBy?: PlatformFunctionDefinitionOrderBy[]; }; + platformRepositoryWorkflowsByGraphId?: { + select: PlatformRepositoryWorkflowSelect; + first?: number; + filter?: PlatformRepositoryWorkflowFilter; + orderBy?: PlatformRepositoryWorkflowOrderBy[]; + }; }; export type FunctionGraphExecutionSelect = { actorId?: boolean; @@ -2445,6 +4512,9 @@ export type FunctionGraphExecutionNodeStateSelect = { errorCode?: boolean; errorMessage?: boolean; executionId?: boolean; + expiryDefaultOutput?: boolean; + expiryEscalatedAt?: boolean; + expiryPolicy?: boolean; id?: boolean; nodeName?: boolean; nodePath?: boolean; @@ -2452,6 +4522,9 @@ export type FunctionGraphExecutionNodeStateSelect = { scopeId?: boolean; startedAt?: boolean; status?: boolean; + waitingDeadlineAt?: boolean; + waitingOn?: boolean; + waitingSince?: boolean; }; export type FunctionGraphExecutionOutputSelect = { createdAt?: boolean; @@ -2503,16 +4576,21 @@ export type FunctionInvocationSelect = { channel?: boolean; completedAt?: boolean; createdAt?: boolean; + createdByPrincipal?: boolean; databaseId?: boolean; definitionScope?: boolean; durationMs?: boolean; + entityId?: boolean; + entityType?: boolean; error?: boolean; functionDefinitionId?: boolean; graphExecutionId?: boolean; id?: boolean; jobId?: boolean; + organizationId?: boolean; parentInvocationId?: boolean; payload?: boolean; + principalId?: boolean; provenance?: boolean; result?: boolean; startedAt?: boolean; @@ -2526,6 +4604,50 @@ export type GetAllTreeNodesRecordSelect = { data?: boolean; path?: boolean; }; +export type ImageSelect = { + createdAt?: boolean; + createdByPrincipal?: boolean; + databaseId?: boolean; + description?: boolean; + digest?: boolean; + expiresAt?: boolean; + id?: boolean; + isPublished?: boolean; + labels?: boolean; + metadata?: boolean; + name?: boolean; + ownerId?: boolean; + platformOnly?: boolean; + registryHost?: boolean; + repository?: boolean; + runtime?: boolean; + tag?: boolean; + updatedAt?: boolean; + updatedByPrincipal?: boolean; + imageGrants?: { + select: ImageGrantSelect; + first?: number; + filter?: ImageGrantFilter; + orderBy?: ImageGrantOrderBy[]; + }; +}; +export type ImageGrantSelect = { + actions?: boolean; + createdAt?: boolean; + createdByPrincipal?: boolean; + databaseId?: boolean; + expiresAt?: boolean; + grantedBy?: boolean; + granteeKey?: boolean; + granteeScope?: boolean; + id?: boolean; + imageId?: boolean; + updatedAt?: boolean; + updatedByPrincipal?: boolean; + image?: { + select: ImageSelect; + }; +}; export type InfraCommitSelect = { authorId?: boolean; committerId?: boolean; @@ -2579,6 +4701,7 @@ export type IntegrationProviderSelect = { }; export type NamespaceSelect = { annotations?: boolean; + clusterId?: boolean; createdAt?: boolean; databaseId?: boolean; description?: boolean; @@ -2591,12 +4714,24 @@ export type NamespaceSelect = { namespaceName?: boolean; status?: boolean; updatedAt?: boolean; + builderBindings?: { + select: BuilderBindingSelect; + first?: number; + filter?: BuilderBindingFilter; + orderBy?: BuilderBindingOrderBy[]; + }; functionDeployments?: { select: FunctionDeploymentSelect; first?: number; filter?: FunctionDeploymentFilter; orderBy?: FunctionDeploymentOrderBy[]; }; + registryBindings?: { + select: RegistryBindingSelect; + first?: number; + filter?: RegistryBindingFilter; + orderBy?: RegistryBindingOrderBy[]; + }; resourceDefinitions?: { select: ResourceDefinitionSelect; first?: number; @@ -2632,6 +4767,78 @@ export type NamespaceEventSelect = { metadata?: boolean; namespaceId?: boolean; }; +export type PlatformBuildSelect = { + actorId?: boolean; + attempt?: boolean; + commitSha?: boolean; + conclusion?: boolean; + createdAt?: boolean; + createdByPrincipal?: boolean; + eventId?: boolean; + finishedAt?: boolean; + id?: boolean; + imageRef?: boolean; + jobId?: boolean; + logs?: boolean; + matrixKey?: boolean; + metadata?: boolean; + proposalId?: boolean; + ref?: boolean; + repositoryId?: boolean; + startedAt?: boolean; + status?: boolean; + updatedAt?: boolean; + updatedByPrincipal?: boolean; + workflowId?: boolean; + event?: { + select: PlatformRepositoryEventSelect; + }; + proposal?: { + select: PlatformProposalSelect; + }; + repository?: { + select: PlatformRepositorySelect; + }; + workflow?: { + select: PlatformRepositoryWorkflowSelect; + }; +}; +export type PlatformBuildStepSelect = { + buildId?: boolean; + createdByPrincipal?: boolean; + exitCode?: boolean; + finishedAt?: boolean; + id?: boolean; + kind?: boolean; + logBytes?: boolean; + logOffset?: boolean; + name?: boolean; + parentSeq?: boolean; + recordedAt?: boolean; + seq?: boolean; + startedAt?: boolean; + status?: boolean; + summary?: boolean; +}; +export type PlatformBuilderBindingSelect = { + createdAt?: boolean; + createdBy?: boolean; + createdByPrincipal?: boolean; + id?: boolean; + installationId?: boolean; + lastError?: boolean; + metadata?: boolean; + namespaceId?: boolean; + observedHost?: boolean; + realm?: boolean; + status?: boolean; + updatedAt?: boolean; + updatedBy?: boolean; + updatedByPrincipal?: boolean; + namespace?: { + select: PlatformNamespaceSelect; + }; +}; export type PlatformFunctionApiBindingSelect = { alias?: boolean; apiId?: boolean; @@ -2666,12 +4873,14 @@ export type PlatformFunctionCapabilityBindingSelect = { }; export type PlatformFunctionDefinitionSelect = { accessChannels?: boolean; + anonymousCallable?: boolean; billable?: boolean; category?: boolean; concurrency?: boolean; cpuLimitMillicores?: boolean; cpuRequestMillicores?: boolean; createdAt?: boolean; + createdByPrincipal?: boolean; description?: boolean; fnCategory?: boolean; functionColumns?: boolean; @@ -2695,8 +4904,10 @@ export type PlatformFunctionDefinitionSelect = { publishedAt?: boolean; queueName?: boolean; requiredBuckets?: boolean; + requiredCapabilities?: boolean; requiredConfigs?: boolean; requiredModels?: boolean; + requiredModules?: boolean; requiredSecrets?: boolean; resources?: boolean; runtime?: boolean; @@ -2708,6 +4919,7 @@ export type PlatformFunctionDefinitionSelect = { taskIdentifier?: boolean; timeoutSeconds?: boolean; updatedAt?: boolean; + updatedByPrincipal?: boolean; volatile?: boolean; graph?: { select: FunctionGraphSelect; @@ -2735,6 +4947,7 @@ export type PlatformFunctionDeploymentSelect = { annotations?: boolean; concurrency?: boolean; createdAt?: boolean; + createdByPrincipal?: boolean; errorCount?: boolean; handlerName?: boolean; id?: boolean; @@ -2744,6 +4957,7 @@ export type PlatformFunctionDeploymentSelect = { lastError?: boolean; lastErrorAt?: boolean; namespaceId?: boolean; + realm?: boolean; resources?: boolean; revision?: boolean; scaleMax?: boolean; @@ -2753,6 +4967,7 @@ export type PlatformFunctionDeploymentSelect = { status?: boolean; timeoutSeconds?: boolean; updatedAt?: boolean; + updatedByPrincipal?: boolean; namespace?: { select: PlatformNamespaceSelect; }; @@ -2796,16 +5011,21 @@ export type PlatformFunctionInvocationSelect = { channel?: boolean; completedAt?: boolean; createdAt?: boolean; + createdByPrincipal?: boolean; databaseId?: boolean; definitionScope?: boolean; durationMs?: boolean; + entityId?: boolean; + entityType?: boolean; error?: boolean; functionDefinitionId?: boolean; graphExecutionId?: boolean; id?: boolean; jobId?: boolean; + organizationId?: boolean; parentInvocationId?: boolean; payload?: boolean; + principalId?: boolean; provenance?: boolean; result?: boolean; startedAt?: boolean; @@ -2815,6 +5035,48 @@ export type PlatformFunctionInvocationSelect = { select: PlatformFunctionApiBindingSelect; }; }; +export type PlatformImageSelect = { + createdAt?: boolean; + createdByPrincipal?: boolean; + description?: boolean; + digest?: boolean; + expiresAt?: boolean; + id?: boolean; + isPublished?: boolean; + labels?: boolean; + metadata?: boolean; + name?: boolean; + ownerId?: boolean; + platformOnly?: boolean; + registryHost?: boolean; + repository?: boolean; + runtime?: boolean; + tag?: boolean; + updatedAt?: boolean; + updatedByPrincipal?: boolean; + platformImageGrantsByImageId?: { + select: PlatformImageGrantSelect; + first?: number; + filter?: PlatformImageGrantFilter; + orderBy?: PlatformImageGrantOrderBy[]; + }; +}; +export type PlatformImageGrantSelect = { + actions?: boolean; + createdAt?: boolean; + createdByPrincipal?: boolean; + expiresAt?: boolean; + grantedBy?: boolean; + granteeKey?: boolean; + granteeScope?: boolean; + id?: boolean; + imageId?: boolean; + updatedAt?: boolean; + updatedByPrincipal?: boolean; + image?: { + select: PlatformImageSelect; + }; +}; export type PlatformInfraCommitSelect = { authorId?: boolean; committerId?: boolean; @@ -2852,8 +5114,33 @@ export type PlatformInfraStoreSelect = { name?: boolean; scopeId?: boolean; }; +export type PlatformK8sResourceKindSelect = { + active?: boolean; + commitId?: boolean; + createdAt?: boolean; + definition?: boolean; + description?: boolean; + id?: boolean; + label?: boolean; + slug?: boolean; + storeId?: boolean; + updatedAt?: boolean; +}; +export type PlatformK8sSpecRuleSelect = { + active?: boolean; + commitId?: boolean; + createdAt?: boolean; + definition?: boolean; + description?: boolean; + id?: boolean; + label?: boolean; + slug?: boolean; + storeId?: boolean; + updatedAt?: boolean; +}; export type PlatformNamespaceSelect = { annotations?: boolean; + clusterId?: boolean; createdAt?: boolean; description?: boolean; id?: boolean; @@ -2865,12 +5152,24 @@ export type PlatformNamespaceSelect = { namespaceName?: boolean; status?: boolean; updatedAt?: boolean; + platformBuilderBindingsByNamespaceId?: { + select: PlatformBuilderBindingSelect; + first?: number; + filter?: PlatformBuilderBindingFilter; + orderBy?: PlatformBuilderBindingOrderBy[]; + }; platformFunctionDeploymentsByNamespaceId?: { select: PlatformFunctionDeploymentSelect; first?: number; filter?: PlatformFunctionDeploymentFilter; orderBy?: PlatformFunctionDeploymentOrderBy[]; }; + platformRegistryBindingsByNamespaceId?: { + select: PlatformRegistryBindingSelect; + first?: number; + filter?: PlatformRegistryBindingFilter; + orderBy?: PlatformRegistryBindingOrderBy[]; + }; platformResourceDefinitionsByNamespaceId?: { select: PlatformResourceDefinitionSelect; first?: number; @@ -2905,16 +5204,429 @@ export type PlatformNamespaceEventSelect = { metadata?: boolean; namespaceId?: boolean; }; -export type PlatformResourceSelect = { - annotations?: boolean; - cpuLimitMillicores?: boolean; - cpuRequestMillicores?: boolean; +export type PlatformProposalCommentSelect = { + actorId?: boolean; + attachments?: boolean; + body?: boolean; + bodyTrgmSimilarity?: boolean; createdAt?: boolean; createdBy?: boolean; - errorCount?: boolean; + createdByPrincipal?: boolean; + embedding?: boolean; + embeddingUpdatedAt?: boolean; + embeddingVectorDistance?: boolean; + id?: boolean; + line?: boolean; + outdatedAt?: boolean; + path?: boolean; + pathTrgmSimilarity?: boolean; + proposalId?: boolean; + resolvedAt?: boolean; + search?: boolean; + searchScore?: boolean; + searchTsvRank?: boolean; + updatedAt?: boolean; + updatedBy?: boolean; + updatedByPrincipal?: boolean; + proposal?: { + select: PlatformProposalSelect; + }; + platformProposalReactionsByCommentId?: { + select: PlatformProposalReactionSelect; + first?: number; + filter?: PlatformProposalReactionFilter; + orderBy?: PlatformProposalReactionOrderBy[]; + }; +}; +export type PlatformProposalSelect = { + actorId?: boolean; + body?: boolean; + bodyTrgmSimilarity?: boolean; + closedReason?: boolean; + closedReasonTrgmSimilarity?: boolean; + createdAt?: boolean; + createdBy?: boolean; + createdByPrincipal?: boolean; + decidedAt?: boolean; + dueAt?: boolean; + embedding?: boolean; + embeddingUpdatedAt?: boolean; + embeddingVectorDistance?: boolean; id?: boolean; - installationId?: boolean; - integrations?: boolean; + kind?: boolean; + kindTrgmSimilarity?: boolean; + labels?: boolean; + mergeCommit?: boolean; + mergeCommitTrgmSimilarity?: boolean; + mergeMethod?: boolean; + mergeMethodTrgmSimilarity?: boolean; + mergeRequestedAt?: boolean; + mergedAt?: boolean; + metadata?: boolean; + parentId?: boolean; + priority?: boolean; + repositoryId?: boolean; + resolution?: boolean; + resolutionTrgmSimilarity?: boolean; + search?: boolean; + searchScore?: boolean; + searchTsvRank?: boolean; + sourceRef?: boolean; + sourceRefTrgmSimilarity?: boolean; + status?: boolean; + statusTrgmSimilarity?: boolean; + targetRef?: boolean; + targetRefTrgmSimilarity?: boolean; + title?: boolean; + titleTrgmSimilarity?: boolean; + updatedAt?: boolean; + updatedBy?: boolean; + updatedByPrincipal?: boolean; + parent?: { + select: PlatformProposalSelect; + }; + repository?: { + select: PlatformRepositorySelect; + }; + childPlatformProposals?: { + select: PlatformProposalSelect; + first?: number; + filter?: PlatformProposalFilter; + orderBy?: PlatformProposalOrderBy[]; + }; + platformBuildsByProposalId?: { + select: PlatformBuildSelect; + first?: number; + filter?: PlatformBuildFilter; + orderBy?: PlatformBuildOrderBy[]; + }; + platformProposalCommentsByProposalId?: { + select: PlatformProposalCommentSelect; + first?: number; + filter?: PlatformProposalCommentFilter; + orderBy?: PlatformProposalCommentOrderBy[]; + }; + platformProposalFileViewsByProposalId?: { + select: PlatformProposalFileViewSelect; + first?: number; + filter?: PlatformProposalFileViewFilter; + orderBy?: PlatformProposalFileViewOrderBy[]; + }; + platformProposalReactionsByProposalId?: { + select: PlatformProposalReactionSelect; + first?: number; + filter?: PlatformProposalReactionFilter; + orderBy?: PlatformProposalReactionOrderBy[]; + }; + platformProposalReviewsByProposalId?: { + select: PlatformProposalReviewSelect; + first?: number; + filter?: PlatformProposalReviewFilter; + orderBy?: PlatformProposalReviewOrderBy[]; + }; + platformProposalsChunksByPlatformProposalsId?: { + select: PlatformProposalsChunkSelect; + first?: number; + filter?: PlatformProposalsChunkFilter; + orderBy?: PlatformProposalsChunkOrderBy[]; + }; +}; +export type PlatformProposalFileViewSelect = { + blobSha?: boolean; + createdAt?: boolean; + createdByPrincipal?: boolean; + id?: boolean; + path?: boolean; + proposalId?: boolean; + reviewerId?: boolean; + updatedAt?: boolean; + updatedByPrincipal?: boolean; + viewedAt?: boolean; + proposal?: { + select: PlatformProposalSelect; + }; +}; +export type PlatformProposalReactionSelect = { + actorId?: boolean; + commentId?: boolean; + createdAt?: boolean; + createdByPrincipal?: boolean; + emoji?: boolean; + id?: boolean; + proposalId?: boolean; + updatedAt?: boolean; + updatedByPrincipal?: boolean; + comment?: { + select: PlatformProposalCommentSelect; + }; + proposal?: { + select: PlatformProposalSelect; + }; +}; +export type PlatformProposalReviewSelect = { + body?: boolean; + bodyTrgmSimilarity?: boolean; + commitSha?: boolean; + commitShaTrgmSimilarity?: boolean; + createdAt?: boolean; + createdByPrincipal?: boolean; + id?: boolean; + proposalId?: boolean; + reviewerId?: boolean; + search?: boolean; + searchScore?: boolean; + searchTsvRank?: boolean; + submittedAt?: boolean; + updatedAt?: boolean; + updatedByPrincipal?: boolean; + verdict?: boolean; + verdictTrgmSimilarity?: boolean; + proposal?: { + select: PlatformProposalSelect; + }; +}; +export type PlatformProposalsChunkSelect = { + actorId?: boolean; + body?: boolean; + chunkIndex?: boolean; + createdAt?: boolean; + embedding?: boolean; + embeddingVectorDistance?: boolean; + id?: boolean; + metadata?: boolean; + platformProposalsId?: boolean; + searchScore?: boolean; + updatedAt?: boolean; + platformProposals?: { + select: PlatformProposalSelect; + }; +}; +export type PlatformRegistryBindingSelect = { + createdAt?: boolean; + createdBy?: boolean; + createdByPrincipal?: boolean; + id?: boolean; + metadata?: boolean; + namespaceId?: boolean; + observedCredentialVersion?: boolean; + pullSecretName?: boolean; + realm?: boolean; + registryHost?: boolean; + registryId?: boolean; + status?: boolean; + updatedAt?: boolean; + updatedBy?: boolean; + updatedByPrincipal?: boolean; + namespace?: { + select: PlatformNamespaceSelect; + }; + registry?: { + select: PlatformRegistrySelect; + }; +}; +export type PlatformRegistrySelect = { + authMode?: boolean; + basePath?: boolean; + createdAt?: boolean; + createdByPrincipal?: boolean; + credentialSecretName?: boolean; + host?: boolean; + id?: boolean; + installationId?: boolean; + isPublished?: boolean; + kind?: boolean; + labels?: boolean; + lastError?: boolean; + metadata?: boolean; + name?: boolean; + platformOnly?: boolean; + role?: boolean; + status?: boolean; + updatedAt?: boolean; + updatedByPrincipal?: boolean; + installation?: { + select: PlatformResourceInstallationSelect; + }; + platformRegistryBindingsByRegistryId?: { + select: PlatformRegistryBindingSelect; + first?: number; + filter?: PlatformRegistryBindingFilter; + orderBy?: PlatformRegistryBindingOrderBy[]; + }; + platformRegistryGrantsByRegistryId?: { + select: PlatformRegistryGrantSelect; + first?: number; + filter?: PlatformRegistryGrantFilter; + orderBy?: PlatformRegistryGrantOrderBy[]; + }; +}; +export type PlatformRegistryGrantSelect = { + actions?: boolean; + createdAt?: boolean; + createdByPrincipal?: boolean; + expiresAt?: boolean; + grantedBy?: boolean; + granteeKey?: boolean; + granteeScope?: boolean; + id?: boolean; + registryId?: boolean; + updatedAt?: boolean; + updatedByPrincipal?: boolean; + registry?: { + select: PlatformRegistrySelect; + }; +}; +export type PlatformRepositorySelect = { + cloneUrl?: boolean; + cloneUrlTrgmSimilarity?: boolean; + createdAt?: boolean; + createdBy?: boolean; + createdByPrincipal?: boolean; + defaultBranch?: boolean; + defaultBranchTrgmSimilarity?: boolean; + description?: boolean; + descriptionTrgmSimilarity?: boolean; + embedding?: boolean; + embeddingUpdatedAt?: boolean; + embeddingVectorDistance?: boolean; + externalId?: boolean; + externalIdTrgmSimilarity?: boolean; + id?: boolean; + isArchived?: boolean; + metadata?: boolean; + name?: boolean; + nameTrgmSimilarity?: boolean; + ownerId?: boolean; + provider?: boolean; + providerTrgmSimilarity?: boolean; + search?: boolean; + searchScore?: boolean; + searchTsvRank?: boolean; + slug?: boolean; + slugTrgmSimilarity?: boolean; + updatedAt?: boolean; + updatedBy?: boolean; + updatedByPrincipal?: boolean; + visibility?: boolean; + visibilityTrgmSimilarity?: boolean; + platformBuildsByRepositoryId?: { + select: PlatformBuildSelect; + first?: number; + filter?: PlatformBuildFilter; + orderBy?: PlatformBuildOrderBy[]; + }; + platformProposalsByRepositoryId?: { + select: PlatformProposalSelect; + first?: number; + filter?: PlatformProposalFilter; + orderBy?: PlatformProposalOrderBy[]; + }; + platformRepositoryEventsByRepositoryId?: { + select: PlatformRepositoryEventSelect; + first?: number; + filter?: PlatformRepositoryEventFilter; + orderBy?: PlatformRepositoryEventOrderBy[]; + }; + platformRepositoryRequiredChecksByRepositoryId?: { + select: PlatformRepositoryRequiredCheckSelect; + first?: number; + filter?: PlatformRepositoryRequiredCheckFilter; + orderBy?: PlatformRepositoryRequiredCheckOrderBy[]; + }; + platformRepositoryWorkflowsByRepositoryId?: { + select: PlatformRepositoryWorkflowSelect; + first?: number; + filter?: PlatformRepositoryWorkflowFilter; + orderBy?: PlatformRepositoryWorkflowOrderBy[]; + }; +}; +export type PlatformRepositoryEventSelect = { + actorId?: boolean; + commitSha?: boolean; + createdAt?: boolean; + createdByPrincipal?: boolean; + deliveryId?: boolean; + eventType?: boolean; + id?: boolean; + metadata?: boolean; + payload?: boolean; + ref?: boolean; + repositoryId?: boolean; + updatedAt?: boolean; + updatedByPrincipal?: boolean; + repository?: { + select: PlatformRepositorySelect; + }; + platformBuildsByEventId?: { + select: PlatformBuildSelect; + first?: number; + filter?: PlatformBuildFilter; + orderBy?: PlatformBuildOrderBy[]; + }; +}; +export type PlatformRepositoryRequiredCheckSelect = { + createdAt?: boolean; + id?: boolean; + repositoryId?: boolean; + updatedAt?: boolean; + workflowId?: boolean; + repository?: { + select: PlatformRepositorySelect; + }; + workflow?: { + select: PlatformRepositoryWorkflowSelect; + }; +}; +export type PlatformRepositoryWorkflowSelect = { + cancelInProgress?: boolean; + concurrencyKey?: boolean; + createdAt?: boolean; + createdBy?: boolean; + createdByPrincipal?: boolean; + eventType?: boolean; + graphId?: boolean; + id?: boolean; + inputs?: boolean; + isEnabled?: boolean; + name?: boolean; + refPattern?: boolean; + repositoryId?: boolean; + requiredSecrets?: boolean; + slug?: boolean; + updatedAt?: boolean; + updatedBy?: boolean; + updatedByPrincipal?: boolean; + graph?: { + select: FunctionGraphSelect; + }; + repository?: { + select: PlatformRepositorySelect; + }; + platformBuildsByWorkflowId?: { + select: PlatformBuildSelect; + first?: number; + filter?: PlatformBuildFilter; + orderBy?: PlatformBuildOrderBy[]; + }; + platformRepositoryRequiredChecksByWorkflowId?: { + select: PlatformRepositoryRequiredCheckSelect; + first?: number; + filter?: PlatformRepositoryRequiredCheckFilter; + orderBy?: PlatformRepositoryRequiredCheckOrderBy[]; + }; +}; +export type PlatformResourceSelect = { + annotations?: boolean; + cpuLimitMillicores?: boolean; + cpuRequestMillicores?: boolean; + createdAt?: boolean; + createdBy?: boolean; + createdByPrincipal?: boolean; + errorCount?: boolean; + id?: boolean; + imageRef?: boolean; + installationId?: boolean; + integrations?: boolean; kind?: boolean; labels?: boolean; lastError?: boolean; @@ -2934,8 +5646,10 @@ export type PlatformResourceSelect = { statusObserved?: boolean; storageClass?: boolean; storageSizeBytes?: boolean; + storageTotalBytes?: boolean; updatedAt?: boolean; updatedBy?: boolean; + updatedByPrincipal?: boolean; installation?: { select: PlatformResourceInstallationSelect; }; @@ -2966,11 +5680,13 @@ export type PlatformResourceDeclaredCapacitySelect = { source?: boolean; sourceId?: boolean; storageSizeBytes?: boolean; + storageTotalBytes?: boolean; }; export type PlatformResourceDefinitionSelect = { annotations?: boolean; createdAt?: boolean; createdBy?: boolean; + createdByPrincipal?: boolean; defaultSpec?: boolean; description?: boolean; id?: boolean; @@ -2986,6 +5702,7 @@ export type PlatformResourceDefinitionSelect = { stepUpMinAge?: boolean; updatedAt?: boolean; updatedBy?: boolean; + updatedByPrincipal?: boolean; namespace?: { select: PlatformNamespaceSelect; }; @@ -3009,6 +5726,7 @@ export type PlatformResourceInstallationSelect = { commitId?: boolean; createdAt?: boolean; createdBy?: boolean; + createdByPrincipal?: boolean; id?: boolean; name?: boolean; namespaceId?: boolean; @@ -3019,9 +5737,16 @@ export type PlatformResourceInstallationSelect = { storeId?: boolean; updatedAt?: boolean; updatedBy?: boolean; + updatedByPrincipal?: boolean; namespace?: { select: PlatformNamespaceSelect; }; + platformRegistriesByInstallationId?: { + select: PlatformRegistrySelect; + first?: number; + filter?: PlatformRegistryFilter; + orderBy?: PlatformRegistryOrderBy[]; + }; platformResourcesByInstallationId?: { select: PlatformResourceSelect; first?: number; @@ -3029,6 +5754,26 @@ export type PlatformResourceInstallationSelect = { orderBy?: PlatformResourceOrderBy[]; }; }; +export type PlatformResourceObservedStorageSelect = { + capacity?: boolean; + capacityBytes?: boolean; + claimName?: boolean; + declaredStorageClass?: boolean; + declaredStorageSizeBytes?: boolean; + declaredStorageTotalBytes?: boolean; + installationId?: boolean; + isBound?: boolean; + kind?: boolean; + namespaceId?: boolean; + phase?: boolean; + requested?: boolean; + requestedBytes?: boolean; + resourceId?: boolean; + resourceStatus?: boolean; + slug?: boolean; + storageClass?: boolean; + storageName?: boolean; +}; export type PlatformResourceStatusCheckSelect = { completedAt?: boolean; id?: boolean; @@ -3090,8 +5835,10 @@ export type PlatformResourcesHealthSelect = { cpuRequestMillicores?: boolean; createdAt?: boolean; createdBy?: boolean; + createdByPrincipal?: boolean; errorCount?: boolean; id?: boolean; + imageRef?: boolean; installationId?: boolean; integrations?: boolean; kind?: boolean; @@ -3114,8 +5861,10 @@ export type PlatformResourcesHealthSelect = { statusObserved?: boolean; storageClass?: boolean; storageSizeBytes?: boolean; + storageTotalBytes?: boolean; updatedAt?: boolean; updatedBy?: boolean; + updatedByPrincipal?: boolean; }; export type PlatformResourcesRequirementsStateSelect = { configHash?: boolean; @@ -3143,6 +5892,7 @@ export type PlatformWebhookEndpointSelect = { active?: boolean; createdAt?: boolean; createdBy?: boolean; + createdByPrincipal?: boolean; functionDefinitionId?: boolean; host?: boolean; id?: boolean; @@ -3153,6 +5903,7 @@ export type PlatformWebhookEndpointSelect = { signingSecretName?: boolean; updatedAt?: boolean; updatedBy?: boolean; + updatedByPrincipal?: boolean; functionDefinition?: { select: PlatformFunctionDefinitionSelect; }; @@ -3183,100 +5934,531 @@ export type PlatformWebhookEventSelect = { select: PlatformWebhookEndpointSelect; }; }; -export type ResourceSelect = { - annotations?: boolean; - cpuLimitMillicores?: boolean; - cpuRequestMillicores?: boolean; +export type ProposalCommentSelect = { + actorId?: boolean; + attachments?: boolean; + body?: boolean; + bodyTrgmSimilarity?: boolean; createdAt?: boolean; createdBy?: boolean; + createdByPrincipal?: boolean; databaseId?: boolean; - errorCount?: boolean; + embedding?: boolean; + embeddingUpdatedAt?: boolean; + embeddingVectorDistance?: boolean; id?: boolean; - installationId?: boolean; - integrations?: boolean; - kind?: boolean; - labels?: boolean; - lastError?: boolean; - lastHeartbeatAt?: boolean; - memoryLimitBytes?: boolean; - memoryRequestBytes?: boolean; - name?: boolean; - namespaceId?: boolean; - realm?: boolean; - replicas?: boolean; - requiredConfigs?: boolean; - requiredSecrets?: boolean; - resourceDefinitionId?: boolean; - slug?: boolean; - spec?: boolean; - status?: boolean; - statusObserved?: boolean; - storageClass?: boolean; - storageSizeBytes?: boolean; + line?: boolean; + outdatedAt?: boolean; + path?: boolean; + pathTrgmSimilarity?: boolean; + proposalId?: boolean; + resolvedAt?: boolean; + search?: boolean; + searchScore?: boolean; + searchTsvRank?: boolean; updatedAt?: boolean; updatedBy?: boolean; - installation?: { - select: ResourceInstallationSelect; - }; - namespace?: { - select: NamespaceSelect; - }; - resourceDefinition?: { - select: ResourceDefinitionSelect; + updatedByPrincipal?: boolean; + proposal?: { + select: ProposalSelect; }; - resourceStatusChecks?: { - select: ResourceStatusCheckSelect; + proposalReactionsByCommentId?: { + select: ProposalReactionSelect; first?: number; - filter?: ResourceStatusCheckFilter; - orderBy?: ResourceStatusCheckOrderBy[]; + filter?: ProposalReactionFilter; + orderBy?: ProposalReactionOrderBy[]; }; }; -export type ResourceDeclaredCapacitySelect = { - cpuLimitMillicores?: boolean; - cpuRequestMillicores?: boolean; - installationId?: boolean; - isTransient?: boolean; - kind?: boolean; - memoryLimitBytes?: boolean; - memoryRequestBytes?: boolean; - namespaceId?: boolean; - podCountMax?: boolean; - podCountMin?: boolean; - source?: boolean; - sourceId?: boolean; - storageSizeBytes?: boolean; -}; -export type ResourceDefinitionSelect = { - annotations?: boolean; +export type ProposalSelect = { + actorId?: boolean; + body?: boolean; + bodyTrgmSimilarity?: boolean; + closedReason?: boolean; + closedReasonTrgmSimilarity?: boolean; createdAt?: boolean; createdBy?: boolean; + createdByPrincipal?: boolean; databaseId?: boolean; - defaultSpec?: boolean; - description?: boolean; + decidedAt?: boolean; + dueAt?: boolean; + embedding?: boolean; + embeddingUpdatedAt?: boolean; + embeddingVectorDistance?: boolean; id?: boolean; - integrations?: boolean; kind?: boolean; + kindTrgmSimilarity?: boolean; labels?: boolean; - name?: boolean; - namespaceId?: boolean; - paramsSchema?: boolean; - requiredConfigs?: boolean; - requiredSecrets?: boolean; - slug?: boolean; - stepUpMinAge?: boolean; + mergeCommit?: boolean; + mergeCommitTrgmSimilarity?: boolean; + mergeMethod?: boolean; + mergeMethodTrgmSimilarity?: boolean; + mergeRequestedAt?: boolean; + mergedAt?: boolean; + metadata?: boolean; + parentId?: boolean; + priority?: boolean; + repositoryId?: boolean; + resolution?: boolean; + resolutionTrgmSimilarity?: boolean; + search?: boolean; + searchScore?: boolean; + searchTsvRank?: boolean; + sourceRef?: boolean; + sourceRefTrgmSimilarity?: boolean; + status?: boolean; + statusTrgmSimilarity?: boolean; + targetRef?: boolean; + targetRefTrgmSimilarity?: boolean; + title?: boolean; + titleTrgmSimilarity?: boolean; updatedAt?: boolean; updatedBy?: boolean; - namespace?: { - select: NamespaceSelect; + updatedByPrincipal?: boolean; + parent?: { + select: ProposalSelect; }; - resources?: { - select: ResourceSelect; + repository?: { + select: RepositorySelect; + }; + builds?: { + select: BuildSelect; first?: number; - filter?: ResourceFilter; - orderBy?: ResourceOrderBy[]; + filter?: BuildFilter; + orderBy?: BuildOrderBy[]; + }; + childProposals?: { + select: ProposalSelect; + first?: number; + filter?: ProposalFilter; + orderBy?: ProposalOrderBy[]; + }; + proposalComments?: { + select: ProposalCommentSelect; + first?: number; + filter?: ProposalCommentFilter; + orderBy?: ProposalCommentOrderBy[]; + }; + proposalFileViews?: { + select: ProposalFileViewSelect; + first?: number; + filter?: ProposalFileViewFilter; + orderBy?: ProposalFileViewOrderBy[]; + }; + proposalReactions?: { + select: ProposalReactionSelect; + first?: number; + filter?: ProposalReactionFilter; + orderBy?: ProposalReactionOrderBy[]; + }; + proposalReviews?: { + select: ProposalReviewSelect; + first?: number; + filter?: ProposalReviewFilter; + orderBy?: ProposalReviewOrderBy[]; + }; + proposalsChunksByProposalsId?: { + select: ProposalsChunkSelect; + first?: number; + filter?: ProposalsChunkFilter; + orderBy?: ProposalsChunkOrderBy[]; }; }; -export type ResourceEventSelect = { +export type ProposalFileViewSelect = { + blobSha?: boolean; + createdAt?: boolean; + createdByPrincipal?: boolean; + databaseId?: boolean; + id?: boolean; + path?: boolean; + proposalId?: boolean; + reviewerId?: boolean; + updatedAt?: boolean; + updatedByPrincipal?: boolean; + viewedAt?: boolean; + proposal?: { + select: ProposalSelect; + }; +}; +export type ProposalReactionSelect = { + actorId?: boolean; + commentId?: boolean; + createdAt?: boolean; + createdByPrincipal?: boolean; + databaseId?: boolean; + emoji?: boolean; + id?: boolean; + proposalId?: boolean; + updatedAt?: boolean; + updatedByPrincipal?: boolean; + comment?: { + select: ProposalCommentSelect; + }; + proposal?: { + select: ProposalSelect; + }; +}; +export type ProposalReviewSelect = { + body?: boolean; + bodyTrgmSimilarity?: boolean; + commitSha?: boolean; + commitShaTrgmSimilarity?: boolean; + createdAt?: boolean; + createdByPrincipal?: boolean; + databaseId?: boolean; + id?: boolean; + proposalId?: boolean; + reviewerId?: boolean; + search?: boolean; + searchScore?: boolean; + searchTsvRank?: boolean; + submittedAt?: boolean; + updatedAt?: boolean; + updatedByPrincipal?: boolean; + verdict?: boolean; + verdictTrgmSimilarity?: boolean; + proposal?: { + select: ProposalSelect; + }; +}; +export type ProposalsChunkSelect = { + actorId?: boolean; + body?: boolean; + chunkIndex?: boolean; + createdAt?: boolean; + databaseId?: boolean; + embedding?: boolean; + embeddingVectorDistance?: boolean; + id?: boolean; + metadata?: boolean; + proposalsId?: boolean; + searchScore?: boolean; + updatedAt?: boolean; + proposals?: { + select: ProposalSelect; + }; +}; +export type RegistryBindingSelect = { + createdAt?: boolean; + createdBy?: boolean; + createdByPrincipal?: boolean; + databaseId?: boolean; + id?: boolean; + metadata?: boolean; + namespaceId?: boolean; + observedCredentialVersion?: boolean; + pullSecretName?: boolean; + realm?: boolean; + registryHost?: boolean; + registryId?: boolean; + status?: boolean; + updatedAt?: boolean; + updatedBy?: boolean; + updatedByPrincipal?: boolean; + namespace?: { + select: NamespaceSelect; + }; + registry?: { + select: RegistrySelect; + }; +}; +export type RegistrySelect = { + authMode?: boolean; + basePath?: boolean; + createdAt?: boolean; + createdByPrincipal?: boolean; + credentialSecretName?: boolean; + databaseId?: boolean; + host?: boolean; + id?: boolean; + installationId?: boolean; + isPublished?: boolean; + kind?: boolean; + labels?: boolean; + lastError?: boolean; + metadata?: boolean; + name?: boolean; + platformOnly?: boolean; + role?: boolean; + status?: boolean; + updatedAt?: boolean; + updatedByPrincipal?: boolean; + installation?: { + select: ResourceInstallationSelect; + }; + registryBindings?: { + select: RegistryBindingSelect; + first?: number; + filter?: RegistryBindingFilter; + orderBy?: RegistryBindingOrderBy[]; + }; + registryGrants?: { + select: RegistryGrantSelect; + first?: number; + filter?: RegistryGrantFilter; + orderBy?: RegistryGrantOrderBy[]; + }; +}; +export type RegistryGrantSelect = { + actions?: boolean; + createdAt?: boolean; + createdByPrincipal?: boolean; + databaseId?: boolean; + expiresAt?: boolean; + grantedBy?: boolean; + granteeKey?: boolean; + granteeScope?: boolean; + id?: boolean; + registryId?: boolean; + updatedAt?: boolean; + updatedByPrincipal?: boolean; + registry?: { + select: RegistrySelect; + }; +}; +export type RepositorySelect = { + cloneUrl?: boolean; + cloneUrlTrgmSimilarity?: boolean; + createdAt?: boolean; + createdBy?: boolean; + createdByPrincipal?: boolean; + databaseId?: boolean; + defaultBranch?: boolean; + defaultBranchTrgmSimilarity?: boolean; + description?: boolean; + descriptionTrgmSimilarity?: boolean; + embedding?: boolean; + embeddingUpdatedAt?: boolean; + embeddingVectorDistance?: boolean; + externalId?: boolean; + externalIdTrgmSimilarity?: boolean; + id?: boolean; + isArchived?: boolean; + metadata?: boolean; + name?: boolean; + nameTrgmSimilarity?: boolean; + ownerId?: boolean; + provider?: boolean; + providerTrgmSimilarity?: boolean; + search?: boolean; + searchScore?: boolean; + searchTsvRank?: boolean; + slug?: boolean; + slugTrgmSimilarity?: boolean; + updatedAt?: boolean; + updatedBy?: boolean; + updatedByPrincipal?: boolean; + visibility?: boolean; + visibilityTrgmSimilarity?: boolean; + builds?: { + select: BuildSelect; + first?: number; + filter?: BuildFilter; + orderBy?: BuildOrderBy[]; + }; + proposals?: { + select: ProposalSelect; + first?: number; + filter?: ProposalFilter; + orderBy?: ProposalOrderBy[]; + }; + repositoryEvents?: { + select: RepositoryEventSelect; + first?: number; + filter?: RepositoryEventFilter; + orderBy?: RepositoryEventOrderBy[]; + }; + repositoryRequiredChecks?: { + select: RepositoryRequiredCheckSelect; + first?: number; + filter?: RepositoryRequiredCheckFilter; + orderBy?: RepositoryRequiredCheckOrderBy[]; + }; + repositoryWorkflows?: { + select: RepositoryWorkflowSelect; + first?: number; + filter?: RepositoryWorkflowFilter; + orderBy?: RepositoryWorkflowOrderBy[]; + }; +}; +export type RepositoryEventSelect = { + actorId?: boolean; + commitSha?: boolean; + createdAt?: boolean; + createdByPrincipal?: boolean; + databaseId?: boolean; + deliveryId?: boolean; + eventType?: boolean; + id?: boolean; + metadata?: boolean; + payload?: boolean; + ref?: boolean; + repositoryId?: boolean; + updatedAt?: boolean; + updatedByPrincipal?: boolean; + repository?: { + select: RepositorySelect; + }; + buildsByEventId?: { + select: BuildSelect; + first?: number; + filter?: BuildFilter; + orderBy?: BuildOrderBy[]; + }; +}; +export type RepositoryRequiredCheckSelect = { + createdAt?: boolean; + databaseId?: boolean; + id?: boolean; + repositoryId?: boolean; + updatedAt?: boolean; + workflowId?: boolean; + repository?: { + select: RepositorySelect; + }; + workflow?: { + select: RepositoryWorkflowSelect; + }; +}; +export type RepositoryWorkflowSelect = { + cancelInProgress?: boolean; + concurrencyKey?: boolean; + createdAt?: boolean; + createdBy?: boolean; + createdByPrincipal?: boolean; + databaseId?: boolean; + eventType?: boolean; + graphId?: boolean; + id?: boolean; + inputs?: boolean; + isEnabled?: boolean; + name?: boolean; + refPattern?: boolean; + repositoryId?: boolean; + requiredSecrets?: boolean; + slug?: boolean; + updatedAt?: boolean; + updatedBy?: boolean; + updatedByPrincipal?: boolean; + graph?: { + select: DatabaseFunctionGraphSelect; + }; + repository?: { + select: RepositorySelect; + }; + buildsByWorkflowId?: { + select: BuildSelect; + first?: number; + filter?: BuildFilter; + orderBy?: BuildOrderBy[]; + }; + repositoryRequiredChecksByWorkflowId?: { + select: RepositoryRequiredCheckSelect; + first?: number; + filter?: RepositoryRequiredCheckFilter; + orderBy?: RepositoryRequiredCheckOrderBy[]; + }; +}; +export type ResourceSelect = { + annotations?: boolean; + cpuLimitMillicores?: boolean; + cpuRequestMillicores?: boolean; + createdAt?: boolean; + createdBy?: boolean; + createdByPrincipal?: boolean; + databaseId?: boolean; + errorCount?: boolean; + id?: boolean; + imageRef?: boolean; + installationId?: boolean; + integrations?: boolean; + kind?: boolean; + labels?: boolean; + lastError?: boolean; + lastHeartbeatAt?: boolean; + memoryLimitBytes?: boolean; + memoryRequestBytes?: boolean; + name?: boolean; + namespaceId?: boolean; + realm?: boolean; + replicas?: boolean; + requiredConfigs?: boolean; + requiredSecrets?: boolean; + resourceDefinitionId?: boolean; + slug?: boolean; + spec?: boolean; + status?: boolean; + statusObserved?: boolean; + storageClass?: boolean; + storageSizeBytes?: boolean; + storageTotalBytes?: boolean; + updatedAt?: boolean; + updatedBy?: boolean; + updatedByPrincipal?: boolean; + installation?: { + select: ResourceInstallationSelect; + }; + namespace?: { + select: NamespaceSelect; + }; + resourceDefinition?: { + select: ResourceDefinitionSelect; + }; + resourceStatusChecks?: { + select: ResourceStatusCheckSelect; + first?: number; + filter?: ResourceStatusCheckFilter; + orderBy?: ResourceStatusCheckOrderBy[]; + }; +}; +export type ResourceDeclaredCapacitySelect = { + cpuLimitMillicores?: boolean; + cpuRequestMillicores?: boolean; + installationId?: boolean; + isTransient?: boolean; + kind?: boolean; + memoryLimitBytes?: boolean; + memoryRequestBytes?: boolean; + namespaceId?: boolean; + podCountMax?: boolean; + podCountMin?: boolean; + source?: boolean; + sourceId?: boolean; + storageSizeBytes?: boolean; + storageTotalBytes?: boolean; +}; +export type ResourceDefinitionSelect = { + annotations?: boolean; + createdAt?: boolean; + createdBy?: boolean; + createdByPrincipal?: boolean; + databaseId?: boolean; + defaultSpec?: boolean; + description?: boolean; + id?: boolean; + integrations?: boolean; + kind?: boolean; + labels?: boolean; + name?: boolean; + namespaceId?: boolean; + paramsSchema?: boolean; + requiredConfigs?: boolean; + requiredSecrets?: boolean; + slug?: boolean; + stepUpMinAge?: boolean; + updatedAt?: boolean; + updatedBy?: boolean; + updatedByPrincipal?: boolean; + namespace?: { + select: NamespaceSelect; + }; + resources?: { + select: ResourceSelect; + first?: number; + filter?: ResourceFilter; + orderBy?: ResourceOrderBy[]; + }; +}; +export type ResourceEventSelect = { actorId?: boolean; createdAt?: boolean; databaseId?: boolean; @@ -3290,6 +6472,7 @@ export type ResourceInstallationSelect = { commitId?: boolean; createdAt?: boolean; createdBy?: boolean; + createdByPrincipal?: boolean; databaseId?: boolean; id?: boolean; name?: boolean; @@ -3301,9 +6484,16 @@ export type ResourceInstallationSelect = { storeId?: boolean; updatedAt?: boolean; updatedBy?: boolean; + updatedByPrincipal?: boolean; namespace?: { select: NamespaceSelect; }; + registriesByInstallationId?: { + select: RegistrySelect; + first?: number; + filter?: RegistryFilter; + orderBy?: RegistryOrderBy[]; + }; resourcesByInstallationId?: { select: ResourceSelect; first?: number; @@ -3311,6 +6501,26 @@ export type ResourceInstallationSelect = { orderBy?: ResourceOrderBy[]; }; }; +export type ResourceObservedStorageSelect = { + capacity?: boolean; + capacityBytes?: boolean; + claimName?: boolean; + declaredStorageClass?: boolean; + declaredStorageSizeBytes?: boolean; + declaredStorageTotalBytes?: boolean; + installationId?: boolean; + isBound?: boolean; + kind?: boolean; + namespaceId?: boolean; + phase?: boolean; + requested?: boolean; + requestedBytes?: boolean; + resourceId?: boolean; + resourceStatus?: boolean; + slug?: boolean; + storageClass?: boolean; + storageName?: boolean; +}; export type ResourceStatusCheckSelect = { completedAt?: boolean; databaseId?: boolean; @@ -3375,9 +6585,11 @@ export type ResourcesHealthSelect = { cpuRequestMillicores?: boolean; createdAt?: boolean; createdBy?: boolean; + createdByPrincipal?: boolean; databaseId?: boolean; errorCount?: boolean; id?: boolean; + imageRef?: boolean; installationId?: boolean; integrations?: boolean; kind?: boolean; @@ -3400,8 +6612,10 @@ export type ResourcesHealthSelect = { statusObserved?: boolean; storageClass?: boolean; storageSizeBytes?: boolean; + storageTotalBytes?: boolean; updatedAt?: boolean; updatedBy?: boolean; + updatedByPrincipal?: boolean; }; export type ResourcesRequirementsStateSelect = { configHash?: boolean; @@ -3429,6 +6643,7 @@ export type WebhookEndpointSelect = { active?: boolean; createdAt?: boolean; createdBy?: boolean; + createdByPrincipal?: boolean; databaseId?: boolean; functionDefinitionId?: boolean; host?: boolean; @@ -3440,6 +6655,7 @@ export type WebhookEndpointSelect = { signingSecretName?: boolean; updatedAt?: boolean; updatedBy?: boolean; + updatedByPrincipal?: boolean; functionDefinition?: { select: FunctionDefinitionSelect; }; @@ -3472,377 +6688,239 @@ export type WebhookEventSelect = { }; }; // ============ Table Filter Types ============ -export interface DbPresetFilter { - /** Filter by the object’s `active` field. */ - active?: BooleanFilter; +export interface BuildFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: DbPresetFilter[]; - /** Filter by the object’s `commitId` field. */ - commitId?: UUIDFilter; + and?: BuildFilter[]; + /** Filter by the object’s `attempt` field. */ + attempt?: IntFilter; + /** Filter by the object’s `commitSha` field. */ + commitSha?: StringFilter; + /** Filter by the object’s `conclusion` field. */ + conclusion?: StringFilter; /** 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 `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `event` relation. */ + event?: RepositoryEventFilter; + /** A related `event` exists. */ + eventExists?: boolean; + /** Filter by the object’s `eventId` field. */ + eventId?: UUIDFilter; + /** Filter by the object’s `finishedAt` field. */ + finishedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `label` field. */ - label?: StringFilter; - /** Filter by the object’s `modulesHash` field. */ - modulesHash?: UUIDFilter; - /** Negates the expression. */ - not?: DbPresetFilter; + /** Filter by the object’s `imageRef` field. */ + imageRef?: StringFilter; + /** Filter by the object’s `jobId` field. */ + jobId?: BigIntFilter; + /** Filter by the object’s `logs` field. */ + logs?: ConstructiveInternalTypeUploadFilter; + /** Filter by the object’s `matrixKey` field. */ + matrixKey?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Negates the expression. */ + not?: BuildFilter; /** Checks for any expressions in this list. */ - or?: DbPresetFilter[]; - /** Filter by the object’s `slug` field. */ - slug?: StringFilter; - /** Filter by the object’s `storeId` field. */ - storeId?: UUIDFilter; + or?: BuildFilter[]; + /** Filter by the object’s `proposal` relation. */ + proposal?: ProposalFilter; + /** A related `proposal` exists. */ + proposalExists?: boolean; + /** Filter by the object’s `proposalId` field. */ + proposalId?: UUIDFilter; + /** Filter by the object’s `ref` field. */ + ref?: StringFilter; + /** Filter by the object’s `repository` relation. */ + repository?: RepositoryFilter; + /** Filter by the object’s `repositoryId` field. */ + repositoryId?: UUIDFilter; + /** Filter by the object’s `startedAt` field. */ + startedAt?: DatetimeFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; -} -export interface FunctionApiBindingFilter { - /** Filter by the object’s `alias` field. */ - alias?: StringFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** Filter by the object’s `workflow` relation. */ + workflow?: RepositoryWorkflowFilter; + /** A related `workflow` exists. */ + workflowExists?: boolean; + /** Filter by the object’s `workflowId` field. */ + workflowId?: UUIDFilter; +} +export interface BuildStepFilter { /** Checks for all expressions in this list. */ - and?: FunctionApiBindingFilter[]; - /** 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 `functionDefinition` relation. */ - functionDefinition?: FunctionDefinitionFilter; - /** Filter by the object’s `functionDefinitionId` field. */ - functionDefinitionId?: UUIDFilter; - /** Filter by the object’s `functionInvocationsByApiBindingId` relation. */ - functionInvocationsByApiBindingId?: FunctionApiBindingToManyFunctionInvocationFilter; - /** `functionInvocationsByApiBindingId` exist. */ - functionInvocationsByApiBindingIdExist?: boolean; + and?: BuildStepFilter[]; + /** Filter by the object’s `buildId` field. */ + buildId?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `exitCode` field. */ + exitCode?: IntFilter; + /** Filter by the object’s `finishedAt` field. */ + finishedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `logBytes` field. */ + logBytes?: BigIntFilter; + /** Filter by the object’s `logOffset` field. */ + logOffset?: BigIntFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; /** Negates the expression. */ - not?: FunctionApiBindingFilter; + not?: BuildStepFilter; /** Checks for any expressions in this list. */ - or?: FunctionApiBindingFilter[]; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; + or?: BuildStepFilter[]; + /** Filter by the object’s `parentSeq` field. */ + parentSeq?: IntFilter; + /** Filter by the object’s `recordedAt` field. */ + recordedAt?: DatetimeFilter; + /** Filter by the object’s `seq` field. */ + seq?: IntFilter; + /** Filter by the object’s `startedAt` field. */ + startedAt?: DatetimeFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `summary` field. */ + summary?: JSONFilter; } -export interface FunctionCapabilityBindingFilter { +export interface BuilderBindingFilter { /** Checks for all expressions in this list. */ - and?: FunctionCapabilityBindingFilter[]; - /** Filter by the object’s `bucketId` field. */ - bucketId?: UUIDFilter; + and?: BuilderBindingFilter[]; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `function` relation. */ - function?: FunctionDefinitionFilter; - /** A related `function` exists. */ - functionExists?: boolean; - /** Filter by the object’s `functionId` field. */ - functionId?: UUIDFilter; - /** Filter by the object’s `graphId` field. */ - graphId?: UUIDFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `key` field. */ - key?: StringFilter; - /** Filter by the object’s `lifecycle` field. */ - lifecycle?: StringFilter; + /** Filter by the object’s `installationId` field. */ + installationId?: UUIDFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; /** Filter by the object’s `metadata` field. */ metadata?: JSONFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; /** Negates the expression. */ - not?: FunctionCapabilityBindingFilter; + not?: BuilderBindingFilter; + /** Filter by the object’s `observedHost` field. */ + observedHost?: StringFilter; /** Checks for any expressions in this list. */ - or?: FunctionCapabilityBindingFilter[]; + or?: BuilderBindingFilter[]; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface FunctionDefinitionFilter { - /** Filter by the object’s `accessChannels` field. */ - accessChannels?: StringListFilter; +export interface ContentPresetFilter { + /** Filter by the object’s `active` field. */ + active?: BooleanFilter; /** Checks for all expressions in this list. */ - and?: FunctionDefinitionFilter[]; - /** Filter by the object’s `category` field. */ - category?: StringFilter; - /** Filter by the object’s `concurrency` field. */ - concurrency?: IntFilter; - /** Filter by the object’s `cpuLimitMillicores` field. */ - cpuLimitMillicores?: BigIntFilter; - /** Filter by the object’s `cpuRequestMillicores` field. */ - cpuRequestMillicores?: BigIntFilter; + 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 `databaseId` field. */ - databaseId?: UUIDFilter; + /** Filter by the object’s `definition` field. */ + definition?: JSONFilter; /** Filter by the object’s `description` field. */ description?: StringFilter; - /** Filter by the object’s `fnCategory` field. */ - fnCategory?: StringFilter; - /** Filter by the object’s `functionApiBindings` relation. */ - functionApiBindings?: FunctionDefinitionToManyFunctionApiBindingFilter; - /** `functionApiBindings` exist. */ - functionApiBindingsExist?: boolean; - /** Filter by the object’s `functionCapabilityBindingsByFunctionId` relation. */ - functionCapabilityBindingsByFunctionId?: FunctionDefinitionToManyFunctionCapabilityBindingFilter; - /** `functionCapabilityBindingsByFunctionId` exist. */ - functionCapabilityBindingsByFunctionIdExist?: boolean; - /** Filter by the object’s `functionColumns` field. */ - functionColumns?: JSONFilter; - /** Filter by the object’s `graphId` field. */ - graphId?: UUIDFilter; - /** Filter by the object’s `icon` field. */ - icon?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `image` field. */ - image?: StringFilter; - /** Filter by the object’s `inputs` field. */ - inputs?: JSONFilter; - /** Filter by the object’s `integrations` field. */ - integrations?: StringListFilter; - /** Filter by the object’s `isPublished` field. */ - isPublished?: BooleanFilter; - /** Filter by the object’s `maxAttempts` field. */ - maxAttempts?: IntFilter; - /** Filter by the object’s `memoryLimitBytes` field. */ - memoryLimitBytes?: BigIntFilter; - /** Filter by the object’s `memoryRequestBytes` field. */ - memoryRequestBytes?: BigIntFilter; - /** Filter by the object’s `moduleTable` field. */ - moduleTable?: StringFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `label` field. */ + label?: StringFilter; /** Negates the expression. */ - not?: FunctionDefinitionFilter; + not?: ContentPresetFilter; /** Checks for any expressions in this list. */ - or?: FunctionDefinitionFilter[]; - /** Filter by the object’s `outputs` field. */ - outputs?: JSONFilter; - /** Filter by the object’s `payloadArgs` field. */ - payloadArgs?: JSONFilter; - /** Filter by the object’s `priority` field. */ - priority?: IntFilter; - /** Filter by the object’s `props` field. */ - props?: JSONFilter; - /** Filter by the object’s `protected` field. */ - protected?: BooleanFilter; - /** Filter by the object’s `publishedAt` field. */ - publishedAt?: DatetimeFilter; - /** Filter by the object’s `queueName` field. */ - queueName?: StringFilter; - /** Filter by the object’s `requiredBuckets` field. */ - requiredBuckets?: StringListFilter; - /** Filter by the object’s `requiredModels` field. */ - requiredModels?: StringListFilter; - /** Filter by the object’s `resources` field. */ - resources?: JSONFilter; - /** Filter by the object’s `runtime` field. */ - runtime?: StringFilter; - /** Filter by the object’s `scaleMax` field. */ - scaleMax?: IntFilter; - /** Filter by the object’s `scaleMin` field. */ - scaleMin?: IntFilter; - /** Filter by the object’s `targetFunction` field. */ - targetFunction?: StringFilter; - /** Filter by the object’s `targetSchema` field. */ - targetSchema?: StringFilter; - /** Filter by the object’s `taskIdentifier` field. */ - taskIdentifier?: StringFilter; - /** Filter by the object’s `timeoutSeconds` field. */ - timeoutSeconds?: IntFilter; + 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; - /** Filter by the object’s `volatile` field. */ - volatile?: BooleanFilter; - /** Filter by the object’s `webhookEndpoints` relation. */ - webhookEndpoints?: FunctionDefinitionToManyWebhookEndpointFilter; - /** `webhookEndpoints` exist. */ - webhookEndpointsExist?: boolean; } -export interface FunctionDeploymentFilter { +export interface DatabaseFunctionGraphFilter { /** Checks for all expressions in this list. */ - and?: FunctionDeploymentFilter[]; - /** Filter by the object’s `annotations` field. */ - annotations?: JSONFilter; - /** Filter by the object’s `concurrency` field. */ - concurrency?: IntFilter; + and?: DatabaseFunctionGraphFilter[]; + /** Filter by the object’s `context` field. */ + context?: StringFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `databaseFunctionGraphExecutionsByGraphId` relation. */ + databaseFunctionGraphExecutionsByGraphId?: DatabaseFunctionGraphToManyDatabaseFunctionGraphExecutionFilter; + /** `databaseFunctionGraphExecutionsByGraphId` exist. */ + databaseFunctionGraphExecutionsByGraphIdExist?: boolean; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `errorCount` field. */ - errorCount?: IntFilter; - /** Filter by the object’s `handlerName` field. */ - handlerName?: StringFilter; + /** Filter by the object’s `definitionsCommitId` field. */ + definitionsCommitId?: UUIDFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `functionDefinitionsByGraphId` relation. */ + functionDefinitionsByGraphId?: DatabaseFunctionGraphToManyFunctionDefinitionFilter; + /** `functionDefinitionsByGraphId` exist. */ + functionDefinitionsByGraphIdExist?: boolean; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `image` field. */ - image?: StringFilter; - /** Filter by the object’s `imageVersion` field. */ - imageVersion?: StringFilter; - /** Filter by the object’s `labels` field. */ - labels?: JSONFilter; - /** Filter by the object’s `lastError` field. */ - lastError?: StringFilter; - /** Filter by the object’s `lastErrorAt` field. */ - lastErrorAt?: DatetimeFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; + /** Filter by the object’s `isValid` field. */ + isValid?: BooleanFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; /** Negates the expression. */ - not?: FunctionDeploymentFilter; + not?: DatabaseFunctionGraphFilter; /** Checks for any expressions in this list. */ - or?: FunctionDeploymentFilter[]; - /** Filter by the object’s `resources` field. */ - resources?: JSONFilter; - /** Filter by the object’s `revision` field. */ - revision?: IntFilter; - /** Filter by the object’s `scaleMax` field. */ - scaleMax?: IntFilter; - /** Filter by the object’s `scaleMin` field. */ - scaleMin?: IntFilter; - /** Filter by the object’s `serviceName` field. */ - serviceName?: StringFilter; - /** Filter by the object’s `serviceUrl` field. */ - serviceUrl?: StringFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `timeoutSeconds` field. */ - timeoutSeconds?: IntFilter; + or?: DatabaseFunctionGraphFilter[]; + /** Filter by the object’s `repositoryWorkflowsByGraphId` relation. */ + repositoryWorkflowsByGraphId?: DatabaseFunctionGraphToManyRepositoryWorkflowFilter; + /** `repositoryWorkflowsByGraphId` exist. */ + repositoryWorkflowsByGraphIdExist?: boolean; + /** Filter by the object’s `storeId` field. */ + storeId?: UUIDFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `validationErrors` field. */ + validationErrors?: JSONFilter; } -export interface FunctionDeploymentEventFilter { +export interface DatabaseFunctionGraphExecutionFilter { /** Filter by the object’s `actorId` field. */ actorId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: FunctionDeploymentEventFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; + and?: DatabaseFunctionGraphExecutionFilter[]; + /** Filter by the object’s `completedAt` field. */ + completedAt?: DatetimeFilter; + /** Filter by the object’s `currentWave` field. */ + currentWave?: IntFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `deploymentId` field. */ - deploymentId?: UUIDFilter; - /** Filter by the object’s `eventType` field. */ - eventType?: StringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `message` field. */ - message?: StringFilter; - /** Filter by the object’s `metadata` field. */ - metadata?: JSONFilter; - /** Negates the expression. */ - not?: FunctionDeploymentEventFilter; - /** Checks for any expressions in this list. */ - or?: FunctionDeploymentEventFilter[]; -} -export interface FunctionExecutionLogFilter { - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: FunctionExecutionLogFilter[]; - /** 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 `invocationId` field. */ - invocationId?: UUIDFilter; - /** Filter by the object’s `logLevel` field. */ - logLevel?: StringFilter; - /** Filter by the object’s `message` field. */ - message?: StringFilter; - /** Filter by the object’s `metadata` field. */ - metadata?: JSONFilter; - /** Negates the expression. */ - not?: FunctionExecutionLogFilter; - /** Checks for any expressions in this list. */ - or?: FunctionExecutionLogFilter[]; - /** Filter by the object’s `taskIdentifier` field. */ - taskIdentifier?: StringFilter; -} -export interface FunctionGraphCommitFilter { - /** Checks for all expressions in this list. */ - and?: FunctionGraphCommitFilter[]; - /** Filter by the object’s `authorId` field. */ - authorId?: UUIDFilter; - /** Filter by the object’s `committerId` field. */ - committerId?: UUIDFilter; - /** Filter by the object’s `date` field. */ - date?: DatetimeFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `message` field. */ - message?: StringFilter; - /** Negates the expression. */ - not?: FunctionGraphCommitFilter; - /** Checks for any expressions in this list. */ - or?: FunctionGraphCommitFilter[]; - /** Filter by the object’s `parentIds` field. */ - parentIds?: UUIDListFilter; - /** Filter by the object’s `scopeId` field. */ - scopeId?: UUIDFilter; - /** Filter by the object’s `storeId` field. */ - storeId?: UUIDFilter; - /** Filter by the object’s `treeId` field. */ - treeId?: UUIDFilter; -} -export interface FunctionGraphFilter { - /** Checks for all expressions in this list. */ - and?: FunctionGraphFilter[]; - /** Filter by the object’s `context` field. */ - context?: StringFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `definitionsCommitId` field. */ - definitionsCommitId?: UUIDFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `functionGraphExecutionsByGraphId` relation. */ - functionGraphExecutionsByGraphId?: FunctionGraphToManyFunctionGraphExecutionFilter; - /** `functionGraphExecutionsByGraphId` exist. */ - functionGraphExecutionsByGraphIdExist?: boolean; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isValid` field. */ - isValid?: BooleanFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Negates the expression. */ - not?: FunctionGraphFilter; - /** Checks for any expressions in this list. */ - or?: FunctionGraphFilter[]; - /** Filter by the object’s `platformFunctionDefinitionsByGraphId` relation. */ - platformFunctionDefinitionsByGraphId?: FunctionGraphToManyPlatformFunctionDefinitionFilter; - /** `platformFunctionDefinitionsByGraphId` exist. */ - platformFunctionDefinitionsByGraphIdExist?: boolean; - /** Filter by the object’s `scopeId` field. */ - scopeId?: UUIDFilter; - /** Filter by the object’s `storeId` field. */ - storeId?: UUIDFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `validationErrors` field. */ - validationErrors?: JSONFilter; -} -export interface FunctionGraphExecutionFilter { - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: FunctionGraphExecutionFilter[]; - /** Filter by the object’s `completedAt` field. */ - completedAt?: DatetimeFilter; - /** Filter by the object’s `currentWave` field. */ - currentWave?: IntFilter; /** Filter by the object’s `definitionsCommitId` field. */ definitionsCommitId?: UUIDFilter; /** Filter by the object’s `entityId` field. */ @@ -3856,7 +6934,7 @@ export interface FunctionGraphExecutionFilter { /** Filter by the object’s `executionPlan` field. */ executionPlan?: JSONFilter; /** Filter by the object’s `graph` relation. */ - graph?: FunctionGraphFilter; + graph?: DatabaseFunctionGraphFilter; /** Filter by the object’s `graphId` field. */ graphId?: UUIDFilter; /** Filter by the object’s `id` field. */ @@ -3876,9 +6954,9 @@ export interface FunctionGraphExecutionFilter { /** Filter by the object’s `nodeOutputs` field. */ nodeOutputs?: JSONFilter; /** Negates the expression. */ - not?: FunctionGraphExecutionFilter; + not?: DatabaseFunctionGraphExecutionFilter; /** Checks for any expressions in this list. */ - or?: FunctionGraphExecutionFilter[]; + or?: DatabaseFunctionGraphExecutionFilter[]; /** Filter by the object’s `organizationId` field. */ organizationId?: UUIDFilter; /** Filter by the object’s `outputNames` field. */ @@ -3897,8 +6975,6 @@ export interface FunctionGraphExecutionFilter { parentNodeName?: StringFilter; /** Filter by the object’s `principalId` field. */ principalId?: UUIDFilter; - /** Filter by the object’s `scopeId` field. */ - scopeId?: UUIDFilter; /** Filter by the object’s `startedAt` field. */ startedAt?: DatetimeFilter; /** Filter by the object’s `status` field. */ @@ -3908,9 +6984,9 @@ export interface FunctionGraphExecutionFilter { /** Filter by the object’s `timeoutAt` field. */ timeoutAt?: DatetimeFilter; } -export interface FunctionGraphExecutionNodeStateFilter { +export interface DatabaseFunctionGraphExecutionNodeStateFilter { /** Checks for all expressions in this list. */ - and?: FunctionGraphExecutionNodeStateFilter[]; + and?: DatabaseFunctionGraphExecutionNodeStateFilter[]; /** Filter by the object’s `callbackInputs` field. */ callbackInputs?: JSONFilter; /** Filter by the object’s `callbackMeta` field. */ @@ -3921,12 +6997,20 @@ export interface FunctionGraphExecutionNodeStateFilter { completedAt?: DatetimeFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; /** Filter by the object’s `errorCode` field. */ errorCode?: StringFilter; /** Filter by the object’s `errorMessage` field. */ errorMessage?: StringFilter; /** Filter by the object’s `executionId` field. */ executionId?: UUIDFilter; + /** Filter by the object’s `expiryDefaultOutput` field. */ + expiryDefaultOutput?: JSONFilter; + /** Filter by the object’s `expiryEscalatedAt` field. */ + expiryEscalatedAt?: DatetimeFilter; + /** Filter by the object’s `expiryPolicy` field. */ + expiryPolicy?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `nodeName` field. */ @@ -3934,43 +7018,82 @@ export interface FunctionGraphExecutionNodeStateFilter { /** Filter by the object’s `nodePath` field. */ nodePath?: StringListFilter; /** Negates the expression. */ - not?: FunctionGraphExecutionNodeStateFilter; + not?: DatabaseFunctionGraphExecutionNodeStateFilter; /** Checks for any expressions in this list. */ - or?: FunctionGraphExecutionNodeStateFilter[]; + or?: DatabaseFunctionGraphExecutionNodeStateFilter[]; /** Filter by the object’s `outputId` field. */ outputId?: UUIDFilter; - /** Filter by the object’s `scopeId` field. */ - scopeId?: UUIDFilter; /** Filter by the object’s `startedAt` field. */ startedAt?: DatetimeFilter; /** Filter by the object’s `status` field. */ status?: StringFilter; -} -export interface FunctionGraphExecutionOutputFilter { + /** Filter by the object’s `waitingDeadlineAt` field. */ + waitingDeadlineAt?: DatetimeFilter; + /** Filter by the object’s `waitingOn` field. */ + waitingOn?: StringFilter; + /** Filter by the object’s `waitingSince` field. */ + waitingSince?: DatetimeFilter; +} +export interface DatabaseFunctionGraphExecutionOutputFilter { /** Checks for all expressions in this list. */ - and?: FunctionGraphExecutionOutputFilter[]; + and?: DatabaseFunctionGraphExecutionOutputFilter[]; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `data` field. */ data?: JSONFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; /** Filter by the object’s `hash` field. */ hash?: Base64EncodedBinaryFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Negates the expression. */ - not?: FunctionGraphExecutionOutputFilter; + not?: DatabaseFunctionGraphExecutionOutputFilter; /** Checks for any expressions in this list. */ - or?: FunctionGraphExecutionOutputFilter[]; - /** Filter by the object’s `scopeId` field. */ - scopeId?: UUIDFilter; + or?: DatabaseFunctionGraphExecutionOutputFilter[]; } -export interface FunctionGraphObjectFilter { +export interface DatabaseGraphCommitFilter { /** Checks for all expressions in this list. */ - and?: FunctionGraphObjectFilter[]; + and?: DatabaseGraphCommitFilter[]; + /** Filter by the object’s `authorId` field. */ + authorId?: UUIDFilter; + /** Filter by the object’s `committerId` field. */ + committerId?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `date` field. */ + date?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `message` field. */ + message?: StringFilter; + /** Negates the expression. */ + not?: DatabaseGraphCommitFilter; + /** Checks for any expressions in this list. */ + or?: DatabaseGraphCommitFilter[]; + /** Filter by the object’s `parentIds` field. */ + parentIds?: UUIDListFilter; + /** Filter by the object’s `storeId` field. */ + storeId?: UUIDFilter; + /** Filter by the object’s `treeId` field. */ + treeId?: UUIDFilter; +} +export interface DatabaseGraphGetAllTreeNodesRecordFilter { + data?: JSONFilter; + path?: StringListFilter; + and?: DatabaseGraphGetAllTreeNodesRecordFilter[]; + or?: DatabaseGraphGetAllTreeNodesRecordFilter[]; + not?: DatabaseGraphGetAllTreeNodesRecordFilter; +} +export interface DatabaseGraphObjectFilter { + /** Checks for all expressions in this list. */ + and?: DatabaseGraphObjectFilter[]; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `data` field. */ data?: JSONFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `kids` field. */ @@ -3978,35 +7101,35 @@ export interface FunctionGraphObjectFilter { /** Filter by the object’s `ktree` field. */ ktree?: StringListFilter; /** Negates the expression. */ - not?: FunctionGraphObjectFilter; + not?: DatabaseGraphObjectFilter; /** Checks for any expressions in this list. */ - or?: FunctionGraphObjectFilter[]; - /** Filter by the object’s `scopeId` field. */ - scopeId?: UUIDFilter; + or?: DatabaseGraphObjectFilter[]; } -export interface FunctionGraphRefFilter { +export interface DatabaseGraphRefFilter { /** Checks for all expressions in this list. */ - and?: FunctionGraphRefFilter[]; + and?: DatabaseGraphRefFilter[]; /** Filter by the object’s `commitId` field. */ commitId?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; /** Negates the expression. */ - not?: FunctionGraphRefFilter; + not?: DatabaseGraphRefFilter; /** Checks for any expressions in this list. */ - or?: FunctionGraphRefFilter[]; - /** Filter by the object’s `scopeId` field. */ - scopeId?: UUIDFilter; + or?: DatabaseGraphRefFilter[]; /** Filter by the object’s `storeId` field. */ storeId?: UUIDFilter; } -export interface FunctionGraphStoreFilter { +export interface DatabaseGraphStoreFilter { /** Checks for all expressions in this list. */ - and?: FunctionGraphStoreFilter[]; + and?: DatabaseGraphStoreFilter[]; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; /** Filter by the object’s `hash` field. */ hash?: UUIDFilter; /** Filter by the object’s `id` field. */ @@ -4014,285 +7137,287 @@ export interface FunctionGraphStoreFilter { /** Filter by the object’s `name` field. */ name?: StringFilter; /** Negates the expression. */ - not?: FunctionGraphStoreFilter; + not?: DatabaseGraphStoreFilter; /** Checks for any expressions in this list. */ - or?: FunctionGraphStoreFilter[]; - /** Filter by the object’s `scopeId` field. */ - scopeId?: UUIDFilter; + or?: DatabaseGraphStoreFilter[]; } -export interface FunctionInvocationAttemptFilter { - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; +export interface DbPresetFilter { + /** Filter by the object’s `active` field. */ + active?: BooleanFilter; /** Checks for all expressions in this list. */ - and?: FunctionInvocationAttemptFilter[]; - /** Filter by the object’s `attempt` field. */ - attempt?: IntFilter; + and?: DbPresetFilter[]; + /** 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 `durationMs` field. */ - durationMs?: IntFilter; - /** Filter by the object’s `error` field. */ - error?: StringFilter; - /** Filter by the object’s `errorDetail` field. */ - errorDetail?: JSONFilter; + /** 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 `invocationCreatedAt` field. */ - invocationCreatedAt?: DatetimeFilter; - /** Filter by the object’s `invocationId` field. */ - invocationId?: UUIDFilter; + /** Filter by the object’s `label` field. */ + label?: StringFilter; + /** Filter by the object’s `modulesHash` field. */ + modulesHash?: UUIDFilter; /** Negates the expression. */ - not?: FunctionInvocationAttemptFilter; + not?: DbPresetFilter; /** Checks for any expressions in this list. */ - or?: FunctionInvocationAttemptFilter[]; - /** Filter by the object’s `startedAt` field. */ - startedAt?: DatetimeFilter; - /** Filter by the object’s `success` field. */ - success?: BooleanFilter; - /** Filter by the object’s `taskIdentifier` field. */ - taskIdentifier?: StringFilter; + or?: DbPresetFilter[]; + /** 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 FunctionInvocationFilter { - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; +export interface FunctionApiBindingFilter { + /** Filter by the object’s `alias` field. */ + alias?: StringFilter; /** Checks for all expressions in this list. */ - and?: FunctionInvocationFilter[]; - /** Filter by the object’s `apiBinding` relation. */ - apiBinding?: FunctionApiBindingFilter; - /** A related `apiBinding` exists. */ - apiBindingExists?: boolean; - /** Filter by the object’s `apiBindingId` field. */ - apiBindingId?: UUIDFilter; - /** Filter by the object’s `channel` field. */ - channel?: StringFilter; - /** Filter by the object’s `completedAt` field. */ - completedAt?: DatetimeFilter; + and?: FunctionApiBindingFilter[]; + /** 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 `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `definitionScope` field. */ - definitionScope?: StringFilter; - /** Filter by the object’s `durationMs` field. */ - durationMs?: IntFilter; - /** Filter by the object’s `error` field. */ - error?: StringFilter; + /** Filter by the object’s `functionDefinition` relation. */ + functionDefinition?: FunctionDefinitionFilter; /** Filter by the object’s `functionDefinitionId` field. */ functionDefinitionId?: UUIDFilter; - /** Filter by the object’s `graphExecutionId` field. */ - graphExecutionId?: UUIDFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `jobId` field. */ - jobId?: BigIntFilter; - /** Negates the expression. */ - not?: FunctionInvocationFilter; - /** Checks for any expressions in this list. */ - or?: FunctionInvocationFilter[]; - /** Filter by the object’s `parentInvocationId` field. */ - parentInvocationId?: UUIDFilter; - /** Filter by the object’s `payload` field. */ - payload?: JSONFilter; - /** Filter by the object’s `provenance` field. */ - provenance?: JSONFilter; - /** Filter by the object’s `result` field. */ - result?: JSONFilter; - /** Filter by the object’s `startedAt` field. */ - startedAt?: DatetimeFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `taskIdentifier` field. */ - taskIdentifier?: StringFilter; -} -export interface GetAllTreeNodesRecordFilter { - data?: JSONFilter; - path?: StringListFilter; - and?: GetAllTreeNodesRecordFilter[]; - or?: GetAllTreeNodesRecordFilter[]; - not?: GetAllTreeNodesRecordFilter; -} -export interface InfraCommitFilter { - /** Checks for all expressions in this list. */ - and?: InfraCommitFilter[]; - /** Filter by the object’s `authorId` field. */ - authorId?: UUIDFilter; - /** Filter by the object’s `committerId` field. */ - committerId?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `date` field. */ - date?: DatetimeFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `message` field. */ - message?: StringFilter; - /** Negates the expression. */ - not?: InfraCommitFilter; - /** Checks for any expressions in this list. */ - or?: InfraCommitFilter[]; - /** Filter by the object’s `parentIds` field. */ - parentIds?: UUIDListFilter; - /** Filter by the object’s `storeId` field. */ - storeId?: UUIDFilter; - /** Filter by the object’s `treeId` field. */ - treeId?: UUIDFilter; -} -export interface InfraGetAllTreeNodesRecordFilter { - data?: JSONFilter; - path?: StringListFilter; - and?: InfraGetAllTreeNodesRecordFilter[]; - or?: InfraGetAllTreeNodesRecordFilter[]; - not?: InfraGetAllTreeNodesRecordFilter; -} -export interface InfraObjectFilter { - /** Checks for all expressions in this list. */ - and?: InfraObjectFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `data` field. */ - data?: JSONFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `kids` field. */ - kids?: UUIDListFilter; - /** Filter by the object’s `ktree` field. */ - ktree?: StringListFilter; - /** Negates the expression. */ - not?: InfraObjectFilter; - /** Checks for any expressions in this list. */ - or?: InfraObjectFilter[]; -} -export interface InfraRefFilter { - /** Checks for all expressions in this list. */ - and?: InfraRefFilter[]; - /** Filter by the object’s `commitId` field. */ - commitId?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; + /** Filter by the object’s `functionInvocationsByApiBindingId` relation. */ + functionInvocationsByApiBindingId?: FunctionApiBindingToManyFunctionInvocationFilter; + /** `functionInvocationsByApiBindingId` exist. */ + functionInvocationsByApiBindingIdExist?: boolean; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; /** Negates the expression. */ - not?: InfraRefFilter; + not?: FunctionApiBindingFilter; /** Checks for any expressions in this list. */ - or?: InfraRefFilter[]; - /** Filter by the object’s `storeId` field. */ - storeId?: UUIDFilter; + or?: FunctionApiBindingFilter[]; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; } -export interface InfraStoreFilter { +export interface FunctionCapabilityBindingFilter { /** Checks for all expressions in this list. */ - and?: InfraStoreFilter[]; + and?: FunctionCapabilityBindingFilter[]; + /** 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 `hash` field. */ - hash?: UUIDFilter; + /** Filter by the object’s `function` relation. */ + function?: FunctionDefinitionFilter; + /** A related `function` exists. */ + functionExists?: boolean; + /** Filter by the object’s `functionId` field. */ + functionId?: UUIDFilter; + /** Filter by the object’s `graphId` field. */ + graphId?: UUIDFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; + /** Filter by the object’s `key` field. */ + key?: StringFilter; + /** Filter by the object’s `lifecycle` field. */ + lifecycle?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; /** Negates the expression. */ - not?: InfraStoreFilter; + not?: FunctionCapabilityBindingFilter; /** Checks for any expressions in this list. */ - or?: InfraStoreFilter[]; + or?: FunctionCapabilityBindingFilter[]; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; } -export interface IntegrationProviderFilter { +export interface FunctionDefinitionFilter { + /** Filter by the object’s `accessChannels` field. */ + accessChannels?: StringListFilter; /** Checks for all expressions in this list. */ - and?: IntegrationProviderFilter[]; - /** Filter by the object’s `brand` field. */ - brand?: JSONFilter; + and?: FunctionDefinitionFilter[]; + /** Filter by the object’s `anonymousCallable` field. */ + anonymousCallable?: BooleanFilter; /** Filter by the object’s `category` field. */ category?: StringFilter; + /** Filter by the object’s `concurrency` field. */ + concurrency?: IntFilter; + /** Filter by the object’s `cpuLimitMillicores` field. */ + cpuLimitMillicores?: BigIntFilter; + /** Filter by the object’s `cpuRequestMillicores` field. */ + cpuRequestMillicores?: BigIntFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; /** Filter by the object’s `description` field. */ description?: StringFilter; + /** Filter by the object’s `fnCategory` field. */ + fnCategory?: StringFilter; + /** Filter by the object’s `functionApiBindings` relation. */ + functionApiBindings?: FunctionDefinitionToManyFunctionApiBindingFilter; + /** `functionApiBindings` exist. */ + functionApiBindingsExist?: boolean; + /** Filter by the object’s `functionCapabilityBindingsByFunctionId` relation. */ + functionCapabilityBindingsByFunctionId?: FunctionDefinitionToManyFunctionCapabilityBindingFilter; + /** `functionCapabilityBindingsByFunctionId` exist. */ + functionCapabilityBindingsByFunctionIdExist?: boolean; + /** Filter by the object’s `functionColumns` field. */ + functionColumns?: JSONFilter; + /** Filter by the object’s `graph` relation. */ + graph?: DatabaseFunctionGraphFilter; + /** A related `graph` exists. */ + graphExists?: boolean; + /** Filter by the object’s `graphId` field. */ + graphId?: UUIDFilter; /** Filter by the object’s `icon` field. */ icon?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `logo` field. */ - logo?: ConstructiveInternalTypeImageFilter; + /** Filter by the object’s `image` field. */ + image?: StringFilter; + /** Filter by the object’s `inputs` field. */ + inputs?: JSONFilter; + /** Filter by the object’s `integrations` field. */ + integrations?: StringListFilter; + /** Filter by the object’s `isPublished` field. */ + isPublished?: BooleanFilter; + /** Filter by the object’s `maxAttempts` field. */ + maxAttempts?: IntFilter; + /** Filter by the object’s `memoryLimitBytes` field. */ + memoryLimitBytes?: BigIntFilter; + /** Filter by the object’s `memoryRequestBytes` field. */ + memoryRequestBytes?: BigIntFilter; + /** Filter by the object’s `moduleTable` field. */ + moduleTable?: StringFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; /** Negates the expression. */ - not?: IntegrationProviderFilter; + not?: FunctionDefinitionFilter; /** Checks for any expressions in this list. */ - or?: IntegrationProviderFilter[]; - /** Filter by the object’s `slug` field. */ - slug?: StringFilter; + or?: FunctionDefinitionFilter[]; + /** Filter by the object’s `outputs` field. */ + outputs?: JSONFilter; + /** Filter by the object’s `payloadArgs` field. */ + payloadArgs?: JSONFilter; + /** Filter by the object’s `priority` field. */ + priority?: IntFilter; + /** Filter by the object’s `props` field. */ + props?: JSONFilter; + /** Filter by the object’s `protected` field. */ + protected?: BooleanFilter; + /** Filter by the object’s `publishedAt` field. */ + publishedAt?: DatetimeFilter; + /** Filter by the object’s `queueName` field. */ + queueName?: StringFilter; + /** Filter by the object’s `requiredBuckets` field. */ + requiredBuckets?: StringListFilter; + /** Filter by the object’s `requiredCapabilities` field. */ + requiredCapabilities?: JSONFilter; + /** 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. */ + runtime?: StringFilter; + /** Filter by the object’s `scaleMax` field. */ + scaleMax?: IntFilter; + /** Filter by the object’s `scaleMin` field. */ + scaleMin?: IntFilter; + /** Filter by the object’s `targetFunction` field. */ + targetFunction?: StringFilter; + /** Filter by the object’s `targetSchema` field. */ + targetSchema?: StringFilter; + /** Filter by the object’s `taskIdentifier` field. */ + taskIdentifier?: StringFilter; + /** Filter by the object’s `timeoutSeconds` field. */ + timeoutSeconds?: IntFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** Filter by the object’s `volatile` field. */ + volatile?: BooleanFilter; + /** Filter by the object’s `webhookEndpoints` relation. */ + webhookEndpoints?: FunctionDefinitionToManyWebhookEndpointFilter; + /** `webhookEndpoints` exist. */ + webhookEndpointsExist?: boolean; } -export interface NamespaceFilter { +export interface FunctionDeploymentFilter { /** Checks for all expressions in this list. */ - and?: NamespaceFilter[]; + and?: FunctionDeploymentFilter[]; /** Filter by the object’s `annotations` field. */ annotations?: JSONFilter; + /** Filter by the object’s `concurrency` field. */ + concurrency?: IntFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `functionDeployments` relation. */ - functionDeployments?: NamespaceToManyFunctionDeploymentFilter; - /** `functionDeployments` exist. */ - functionDeploymentsExist?: boolean; + /** Filter by the object’s `errorCount` field. */ + errorCount?: IntFilter; + /** Filter by the object’s `handlerName` field. */ + handlerName?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `isActive` field. */ - isActive?: BooleanFilter; - /** Filter by the object’s `isManaged` field. */ - isManaged?: BooleanFilter; + /** Filter by the object’s `image` field. */ + image?: StringFilter; + /** Filter by the object’s `imageVersion` field. */ + imageVersion?: StringFilter; /** Filter by the object’s `labels` field. */ labels?: JSONFilter; /** Filter by the object’s `lastError` field. */ lastError?: StringFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `namespaceName` field. */ - namespaceName?: StringFilter; + /** Filter by the object’s `lastErrorAt` field. */ + lastErrorAt?: DatetimeFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; /** Negates the expression. */ - not?: NamespaceFilter; + not?: FunctionDeploymentFilter; /** Checks for any expressions in this list. */ - or?: NamespaceFilter[]; - /** Filter by the object’s `resourceDefinitions` relation. */ - resourceDefinitions?: NamespaceToManyResourceDefinitionFilter; - /** `resourceDefinitions` exist. */ - resourceDefinitionsExist?: boolean; - /** Filter by the object’s `resourceInstallations` relation. */ - resourceInstallations?: NamespaceToManyResourceInstallationFilter; - /** `resourceInstallations` exist. */ - resourceInstallationsExist?: boolean; - /** Filter by the object’s `resources` relation. */ - resources?: NamespaceToManyResourceFilter; - /** `resources` exist. */ - resourcesExist?: boolean; + 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. */ + revision?: IntFilter; + /** Filter by the object’s `scaleMax` field. */ + scaleMax?: IntFilter; + /** Filter by the object’s `scaleMin` field. */ + scaleMin?: IntFilter; + /** Filter by the object’s `serviceName` field. */ + serviceName?: StringFilter; + /** Filter by the object’s `serviceUrl` field. */ + serviceUrl?: StringFilter; /** Filter by the object’s `status` field. */ status?: StringFilter; + /** Filter by the object’s `timeoutSeconds` field. */ + timeoutSeconds?: IntFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; - /** Filter by the object’s `webhookEndpoints` relation. */ - webhookEndpoints?: NamespaceToManyWebhookEndpointFilter; - /** `webhookEndpoints` exist. */ - webhookEndpointsExist?: boolean; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface NamespaceEventFilter { +export interface FunctionDeploymentEventFilter { /** Filter by the object’s `actorId` field. */ actorId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: NamespaceEventFilter[]; + and?: FunctionDeploymentEventFilter[]; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `deploymentId` field. */ + deploymentId?: UUIDFilter; /** Filter by the object’s `eventType` field. */ eventType?: StringFilter; /** Filter by the object’s `id` field. */ @@ -4301,286 +7426,316 @@ export interface NamespaceEventFilter { message?: StringFilter; /** Filter by the object’s `metadata` field. */ metadata?: JSONFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; /** Negates the expression. */ - not?: NamespaceEventFilter; + not?: FunctionDeploymentEventFilter; /** Checks for any expressions in this list. */ - or?: NamespaceEventFilter[]; + or?: FunctionDeploymentEventFilter[]; } -export interface PlatformFunctionApiBindingFilter { - /** Filter by the object’s `alias` field. */ - alias?: StringFilter; +export interface FunctionExecutionLogFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: PlatformFunctionApiBindingFilter[]; - /** Filter by the object’s `apiId` field. */ - apiId?: UUIDFilter; - /** Filter by the object’s `config` field. */ - config?: JSONFilter; + and?: FunctionExecutionLogFilter[]; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; - /** Filter by the object’s `functionDefinition` relation. */ - functionDefinition?: PlatformFunctionDefinitionFilter; - /** Filter by the object’s `functionDefinitionId` field. */ - functionDefinitionId?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `invocationId` field. */ + invocationId?: UUIDFilter; + /** Filter by the object’s `logLevel` field. */ + logLevel?: StringFilter; + /** Filter by the object’s `message` field. */ + message?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; /** Negates the expression. */ - not?: PlatformFunctionApiBindingFilter; + not?: FunctionExecutionLogFilter; /** Checks for any expressions in this list. */ - or?: PlatformFunctionApiBindingFilter[]; - /** Filter by the object’s `platformFunctionInvocationsByApiBindingId` relation. */ - platformFunctionInvocationsByApiBindingId?: PlatformFunctionApiBindingToManyPlatformFunctionInvocationFilter; - /** `platformFunctionInvocationsByApiBindingId` exist. */ - platformFunctionInvocationsByApiBindingIdExist?: boolean; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; + or?: FunctionExecutionLogFilter[]; + /** Filter by the object’s `taskIdentifier` field. */ + taskIdentifier?: StringFilter; } -export interface PlatformFunctionCapabilityBindingFilter { +export interface FunctionGraphCommitFilter { /** Checks for all expressions in this list. */ - and?: PlatformFunctionCapabilityBindingFilter[]; - /** Filter by the object’s `bucketId` field. */ - bucketId?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `function` relation. */ - function?: PlatformFunctionDefinitionFilter; - /** A related `function` exists. */ - functionExists?: boolean; - /** Filter by the object’s `functionId` field. */ - functionId?: UUIDFilter; - /** Filter by the object’s `graphId` field. */ - graphId?: UUIDFilter; + and?: FunctionGraphCommitFilter[]; + /** Filter by the object’s `authorId` field. */ + authorId?: UUIDFilter; + /** Filter by the object’s `committerId` field. */ + committerId?: UUIDFilter; + /** Filter by the object’s `date` field. */ + date?: DatetimeFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `key` field. */ - key?: StringFilter; - /** Filter by the object’s `lifecycle` field. */ - lifecycle?: StringFilter; - /** Filter by the object’s `metadata` field. */ - metadata?: JSONFilter; + /** Filter by the object’s `message` field. */ + message?: StringFilter; /** Negates the expression. */ - not?: PlatformFunctionCapabilityBindingFilter; + not?: FunctionGraphCommitFilter; /** Checks for any expressions in this list. */ - or?: PlatformFunctionCapabilityBindingFilter[]; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; + or?: FunctionGraphCommitFilter[]; + /** Filter by the object’s `parentIds` field. */ + parentIds?: UUIDListFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; + /** Filter by the object’s `storeId` field. */ + storeId?: UUIDFilter; + /** Filter by the object’s `treeId` field. */ + treeId?: UUIDFilter; } -export interface PlatformFunctionDefinitionFilter { - /** Filter by the object’s `accessChannels` field. */ - accessChannels?: StringListFilter; +export interface FunctionGraphFilter { /** Checks for all expressions in this list. */ - and?: PlatformFunctionDefinitionFilter[]; - /** Filter by the object’s `billable` field. */ - billable?: BooleanFilter; - /** Filter by the object’s `category` field. */ - category?: StringFilter; - /** Filter by the object’s `concurrency` field. */ - concurrency?: IntFilter; - /** Filter by the object’s `cpuLimitMillicores` field. */ - cpuLimitMillicores?: BigIntFilter; - /** Filter by the object’s `cpuRequestMillicores` field. */ - cpuRequestMillicores?: BigIntFilter; + and?: FunctionGraphFilter[]; + /** Filter by the object’s `context` field. */ + context?: StringFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `definitionsCommitId` field. */ + definitionsCommitId?: UUIDFilter; /** Filter by the object’s `description` field. */ description?: StringFilter; - /** Filter by the object’s `fnCategory` field. */ - fnCategory?: StringFilter; - /** Filter by the object’s `functionColumns` field. */ - functionColumns?: JSONFilter; - /** Filter by the object’s `graph` relation. */ - graph?: FunctionGraphFilter; - /** A related `graph` exists. */ - graphExists?: boolean; - /** Filter by the object’s `graphId` field. */ - graphId?: UUIDFilter; - /** Filter by the object’s `icon` field. */ - icon?: StringFilter; + /** Filter by the object’s `functionGraphExecutionsByGraphId` relation. */ + functionGraphExecutionsByGraphId?: FunctionGraphToManyFunctionGraphExecutionFilter; + /** `functionGraphExecutionsByGraphId` exist. */ + functionGraphExecutionsByGraphIdExist?: boolean; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `image` field. */ - image?: StringFilter; - /** Filter by the object’s `inputs` field. */ - inputs?: JSONFilter; - /** Filter by the object’s `integrations` field. */ - integrations?: StringListFilter; - /** Filter by the object’s `isPublished` field. */ - isPublished?: BooleanFilter; - /** Filter by the object’s `maxAttempts` field. */ - maxAttempts?: IntFilter; - /** Filter by the object’s `memoryLimitBytes` field. */ - memoryLimitBytes?: BigIntFilter; - /** Filter by the object’s `memoryRequestBytes` field. */ - memoryRequestBytes?: BigIntFilter; - /** Filter by the object’s `moduleTable` field. */ - moduleTable?: StringFilter; + /** Filter by the object’s `isValid` field. */ + isValid?: BooleanFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; /** Negates the expression. */ - not?: PlatformFunctionDefinitionFilter; + not?: FunctionGraphFilter; /** Checks for any expressions in this list. */ - or?: PlatformFunctionDefinitionFilter[]; - /** Filter by the object’s `outputs` field. */ - outputs?: JSONFilter; - /** Filter by the object’s `payloadArgs` field. */ - payloadArgs?: JSONFilter; - /** Filter by the object’s `platformFunctionApiBindingsByFunctionDefinitionId` relation. */ - platformFunctionApiBindingsByFunctionDefinitionId?: PlatformFunctionDefinitionToManyPlatformFunctionApiBindingFilter; - /** `platformFunctionApiBindingsByFunctionDefinitionId` exist. */ - platformFunctionApiBindingsByFunctionDefinitionIdExist?: boolean; - /** Filter by the object’s `platformFunctionCapabilityBindingsByFunctionId` relation. */ - platformFunctionCapabilityBindingsByFunctionId?: PlatformFunctionDefinitionToManyPlatformFunctionCapabilityBindingFilter; - /** `platformFunctionCapabilityBindingsByFunctionId` exist. */ - platformFunctionCapabilityBindingsByFunctionIdExist?: boolean; - /** Filter by the object’s `platformWebhookEndpointsByFunctionDefinitionId` relation. */ - platformWebhookEndpointsByFunctionDefinitionId?: PlatformFunctionDefinitionToManyPlatformWebhookEndpointFilter; - /** `platformWebhookEndpointsByFunctionDefinitionId` exist. */ - platformWebhookEndpointsByFunctionDefinitionIdExist?: boolean; - /** Filter by the object’s `priority` field. */ - priority?: IntFilter; - /** Filter by the object’s `props` field. */ - props?: JSONFilter; - /** Filter by the object’s `protected` field. */ - protected?: BooleanFilter; - /** Filter by the object’s `publishedAt` field. */ - publishedAt?: DatetimeFilter; - /** Filter by the object’s `queueName` field. */ - queueName?: StringFilter; - /** Filter by the object’s `requiredBuckets` field. */ - requiredBuckets?: StringListFilter; - /** Filter by the object’s `requiredModels` field. */ - requiredModels?: StringListFilter; - /** Filter by the object’s `resources` field. */ - resources?: JSONFilter; - /** Filter by the object’s `runtime` field. */ - runtime?: StringFilter; - /** Filter by the object’s `scaleMax` field. */ - scaleMax?: IntFilter; - /** Filter by the object’s `scaleMin` field. */ - scaleMin?: IntFilter; - /** Filter by the object’s `system` field. */ - system?: BooleanFilter; - /** Filter by the object’s `targetFunction` field. */ - targetFunction?: StringFilter; - /** Filter by the object’s `targetSchema` field. */ - targetSchema?: StringFilter; - /** Filter by the object’s `taskIdentifier` field. */ - taskIdentifier?: StringFilter; - /** Filter by the object’s `timeoutSeconds` field. */ - timeoutSeconds?: IntFilter; - /** Filter by the object’s `updatedAt` field. */ + or?: FunctionGraphFilter[]; + /** Filter by the object’s `platformFunctionDefinitionsByGraphId` relation. */ + platformFunctionDefinitionsByGraphId?: FunctionGraphToManyPlatformFunctionDefinitionFilter; + /** `platformFunctionDefinitionsByGraphId` exist. */ + platformFunctionDefinitionsByGraphIdExist?: boolean; + /** Filter by the object’s `platformRepositoryWorkflowsByGraphId` relation. */ + platformRepositoryWorkflowsByGraphId?: FunctionGraphToManyPlatformRepositoryWorkflowFilter; + /** `platformRepositoryWorkflowsByGraphId` exist. */ + platformRepositoryWorkflowsByGraphIdExist?: boolean; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; + /** Filter by the object’s `storeId` field. */ + storeId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; - /** Filter by the object’s `volatile` field. */ - volatile?: BooleanFilter; + /** Filter by the object’s `validationErrors` field. */ + validationErrors?: JSONFilter; } -export interface PlatformFunctionDeploymentFilter { +export interface FunctionGraphExecutionFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: PlatformFunctionDeploymentFilter[]; - /** Filter by the object’s `annotations` field. */ - annotations?: JSONFilter; - /** Filter by the object’s `concurrency` field. */ - concurrency?: IntFilter; + and?: FunctionGraphExecutionFilter[]; + /** Filter by the object’s `completedAt` field. */ + completedAt?: DatetimeFilter; + /** Filter by the object’s `currentWave` field. */ + currentWave?: IntFilter; + /** Filter by the object’s `definitionsCommitId` field. */ + definitionsCommitId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `entityType` field. */ + entityType?: StringFilter; + /** Filter by the object’s `errorCode` field. */ + errorCode?: StringFilter; + /** Filter by the object’s `errorMessage` field. */ + errorMessage?: StringFilter; + /** Filter by the object’s `executionPlan` field. */ + executionPlan?: JSONFilter; + /** Filter by the object’s `graph` relation. */ + graph?: FunctionGraphFilter; + /** Filter by the object’s `graphId` field. */ + graphId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `inputPayload` field. */ + inputPayload?: JSONFilter; + /** Filter by the object’s `invocationCreatedAt` field. */ + invocationCreatedAt?: DatetimeFilter; + /** Filter by the object’s `invocationId` field. */ + invocationId?: UUIDFilter; + /** Filter by the object’s `lastProgressAt` field. */ + lastProgressAt?: DatetimeFilter; + /** Filter by the object’s `maxPendingJobs` field. */ + maxPendingJobs?: IntFilter; + /** Filter by the object’s `maxTicks` field. */ + maxTicks?: IntFilter; + /** Filter by the object’s `nodeOutputs` field. */ + nodeOutputs?: JSONFilter; + /** Negates the expression. */ + not?: FunctionGraphExecutionFilter; + /** Checks for any expressions in this list. */ + or?: FunctionGraphExecutionFilter[]; + /** Filter by the object’s `organizationId` field. */ + organizationId?: UUIDFilter; + /** Filter by the object’s `outputNames` field. */ + outputNames?: StringListFilter; + /** Filter by the object’s `outputNode` field. */ + outputNode?: StringFilter; + /** Filter by the object’s `outputPayload` field. */ + outputPayload?: JSONFilter; + /** Filter by the object’s `outputPort` field. */ + outputPort?: StringFilter; + /** Filter by the object’s `parentExecutionId` field. */ + parentExecutionId?: UUIDFilter; + /** Filter by the object’s `parentInvocationId` field. */ + parentInvocationId?: UUIDFilter; + /** Filter by the object’s `parentNodeName` field. */ + parentNodeName?: StringFilter; + /** Filter by the object’s `principalId` field. */ + principalId?: UUIDFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; + /** Filter by the object’s `startedAt` field. */ + startedAt?: DatetimeFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `tickCount` field. */ + tickCount?: IntFilter; + /** Filter by the object’s `timeoutAt` field. */ + timeoutAt?: DatetimeFilter; +} +export interface FunctionGraphExecutionNodeStateFilter { + /** Checks for all expressions in this list. */ + and?: FunctionGraphExecutionNodeStateFilter[]; + /** Filter by the object’s `callbackInputs` field. */ + callbackInputs?: JSONFilter; + /** Filter by the object’s `callbackMeta` field. */ + callbackMeta?: JSONFilter; + /** Filter by the object’s `callbackTokenHash` field. */ + callbackTokenHash?: StringFilter; + /** Filter by the object’s `completedAt` field. */ + completedAt?: DatetimeFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; - /** Filter by the object’s `errorCount` field. */ - errorCount?: IntFilter; - /** Filter by the object’s `handlerName` field. */ - handlerName?: StringFilter; + /** Filter by the object’s `errorCode` field. */ + errorCode?: StringFilter; + /** Filter by the object’s `errorMessage` field. */ + errorMessage?: StringFilter; + /** Filter by the object’s `executionId` field. */ + executionId?: UUIDFilter; + /** Filter by the object’s `expiryDefaultOutput` field. */ + expiryDefaultOutput?: JSONFilter; + /** Filter by the object’s `expiryEscalatedAt` field. */ + expiryEscalatedAt?: DatetimeFilter; + /** Filter by the object’s `expiryPolicy` field. */ + expiryPolicy?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `image` field. */ - image?: StringFilter; - /** Filter by the object’s `imageVersion` field. */ - imageVersion?: StringFilter; - /** Filter by the object’s `labels` field. */ - labels?: JSONFilter; - /** Filter by the object’s `lastError` field. */ - lastError?: StringFilter; - /** Filter by the object’s `lastErrorAt` field. */ - lastErrorAt?: DatetimeFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: PlatformNamespaceFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; + /** Filter by the object’s `nodeName` field. */ + nodeName?: StringFilter; + /** Filter by the object’s `nodePath` field. */ + nodePath?: StringListFilter; /** Negates the expression. */ - not?: PlatformFunctionDeploymentFilter; + not?: FunctionGraphExecutionNodeStateFilter; /** Checks for any expressions in this list. */ - or?: PlatformFunctionDeploymentFilter[]; - /** Filter by the object’s `resources` field. */ - resources?: JSONFilter; - /** Filter by the object’s `revision` field. */ - revision?: IntFilter; - /** Filter by the object’s `scaleMax` field. */ - scaleMax?: IntFilter; - /** Filter by the object’s `scaleMin` field. */ - scaleMin?: IntFilter; - /** Filter by the object’s `serviceName` field. */ - serviceName?: StringFilter; - /** Filter by the object’s `serviceUrl` field. */ - serviceUrl?: StringFilter; + or?: FunctionGraphExecutionNodeStateFilter[]; + /** Filter by the object’s `outputId` field. */ + outputId?: UUIDFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; + /** Filter by the object’s `startedAt` field. */ + startedAt?: DatetimeFilter; /** Filter by the object’s `status` field. */ status?: StringFilter; - /** Filter by the object’s `timeoutSeconds` field. */ - timeoutSeconds?: IntFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; + /** Filter by the object’s `waitingDeadlineAt` field. */ + waitingDeadlineAt?: DatetimeFilter; + /** Filter by the object’s `waitingOn` field. */ + waitingOn?: StringFilter; + /** Filter by the object’s `waitingSince` field. */ + waitingSince?: DatetimeFilter; } -export interface PlatformFunctionDeploymentEventFilter { - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; +export interface FunctionGraphExecutionOutputFilter { /** Checks for all expressions in this list. */ - and?: PlatformFunctionDeploymentEventFilter[]; + and?: FunctionGraphExecutionOutputFilter[]; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; - /** Filter by the object’s `deploymentId` field. */ - deploymentId?: UUIDFilter; - /** Filter by the object’s `eventType` field. */ - eventType?: StringFilter; + /** Filter by the object’s `data` field. */ + data?: JSONFilter; + /** Filter by the object’s `hash` field. */ + hash?: Base64EncodedBinaryFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `message` field. */ - message?: StringFilter; - /** Filter by the object’s `metadata` field. */ - metadata?: JSONFilter; /** Negates the expression. */ - not?: PlatformFunctionDeploymentEventFilter; + not?: FunctionGraphExecutionOutputFilter; /** Checks for any expressions in this list. */ - or?: PlatformFunctionDeploymentEventFilter[]; + or?: FunctionGraphExecutionOutputFilter[]; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; } -export interface PlatformFunctionExecutionLogFilter { - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; +export interface FunctionGraphObjectFilter { /** Checks for all expressions in this list. */ - and?: PlatformFunctionExecutionLogFilter[]; + and?: FunctionGraphObjectFilter[]; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `data` field. */ + data?: JSONFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `invocationId` field. */ - invocationId?: UUIDFilter; - /** Filter by the object’s `logLevel` field. */ - logLevel?: StringFilter; - /** Filter by the object’s `message` field. */ - message?: StringFilter; - /** Filter by the object’s `metadata` field. */ - metadata?: JSONFilter; + /** Filter by the object’s `kids` field. */ + kids?: UUIDListFilter; + /** Filter by the object’s `ktree` field. */ + ktree?: StringListFilter; /** Negates the expression. */ - not?: PlatformFunctionExecutionLogFilter; + not?: FunctionGraphObjectFilter; /** Checks for any expressions in this list. */ - or?: PlatformFunctionExecutionLogFilter[]; - /** Filter by the object’s `taskIdentifier` field. */ - taskIdentifier?: StringFilter; + or?: FunctionGraphObjectFilter[]; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; } -export interface PlatformFunctionInvocationAttemptFilter { +export interface FunctionGraphRefFilter { + /** Checks for all expressions in this list. */ + and?: FunctionGraphRefFilter[]; + /** Filter by the object’s `commitId` field. */ + commitId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: FunctionGraphRefFilter; + /** Checks for any expressions in this list. */ + or?: FunctionGraphRefFilter[]; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; + /** Filter by the object’s `storeId` field. */ + storeId?: UUIDFilter; +} +export interface FunctionGraphStoreFilter { + /** Checks for all expressions in this list. */ + and?: FunctionGraphStoreFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `hash` field. */ + hash?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: FunctionGraphStoreFilter; + /** Checks for any expressions in this list. */ + or?: FunctionGraphStoreFilter[]; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; +} +export interface FunctionInvocationAttemptFilter { /** Filter by the object’s `actorId` field. */ actorId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: PlatformFunctionInvocationAttemptFilter[]; + and?: FunctionInvocationAttemptFilter[]; /** Filter by the object’s `attempt` field. */ attempt?: IntFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; /** Filter by the object’s `durationMs` field. */ durationMs?: IntFilter; /** Filter by the object’s `error` field. */ @@ -4594,9 +7749,9 @@ export interface PlatformFunctionInvocationAttemptFilter { /** Filter by the object’s `invocationId` field. */ invocationId?: UUIDFilter; /** Negates the expression. */ - not?: PlatformFunctionInvocationAttemptFilter; + not?: FunctionInvocationAttemptFilter; /** Checks for any expressions in this list. */ - or?: PlatformFunctionInvocationAttemptFilter[]; + or?: FunctionInvocationAttemptFilter[]; /** Filter by the object’s `startedAt` field. */ startedAt?: DatetimeFilter; /** Filter by the object’s `success` field. */ @@ -4604,13 +7759,13 @@ export interface PlatformFunctionInvocationAttemptFilter { /** Filter by the object’s `taskIdentifier` field. */ taskIdentifier?: StringFilter; } -export interface PlatformFunctionInvocationFilter { +export interface FunctionInvocationFilter { /** Filter by the object’s `actorId` field. */ actorId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: PlatformFunctionInvocationFilter[]; + and?: FunctionInvocationFilter[]; /** Filter by the object’s `apiBinding` relation. */ - apiBinding?: PlatformFunctionApiBindingFilter; + apiBinding?: FunctionApiBindingFilter; /** A related `apiBinding` exists. */ apiBindingExists?: boolean; /** Filter by the object’s `apiBindingId` field. */ @@ -4621,12 +7776,18 @@ export interface PlatformFunctionInvocationFilter { completedAt?: DatetimeFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; /** Filter by the object’s `definitionScope` field. */ definitionScope?: StringFilter; /** Filter by the object’s `durationMs` field. */ durationMs?: IntFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `entityType` field. */ + entityType?: StringFilter; /** Filter by the object’s `error` field. */ error?: StringFilter; /** Filter by the object’s `functionDefinitionId` field. */ @@ -4638,13 +7799,17 @@ export interface PlatformFunctionInvocationFilter { /** Filter by the object’s `jobId` field. */ jobId?: BigIntFilter; /** Negates the expression. */ - not?: PlatformFunctionInvocationFilter; + not?: FunctionInvocationFilter; /** Checks for any expressions in this list. */ - or?: PlatformFunctionInvocationFilter[]; + or?: FunctionInvocationFilter[]; + /** Filter by the object’s `organizationId` field. */ + organizationId?: UUIDFilter; /** Filter by the object’s `parentInvocationId` field. */ parentInvocationId?: UUIDFilter; /** Filter by the object’s `payload` field. */ payload?: JSONFilter; + /** Filter by the object’s `principalId` field. */ + principalId?: UUIDFilter; /** Filter by the object’s `provenance` field. */ provenance?: JSONFilter; /** Filter by the object’s `result` field. */ @@ -4656,13 +7821,106 @@ export interface PlatformFunctionInvocationFilter { /** Filter by the object’s `taskIdentifier` field. */ taskIdentifier?: StringFilter; } -export interface PlatformInfraCommitFilter { +export interface GetAllTreeNodesRecordFilter { + data?: JSONFilter; + path?: StringListFilter; + and?: GetAllTreeNodesRecordFilter[]; + or?: GetAllTreeNodesRecordFilter[]; + not?: GetAllTreeNodesRecordFilter; +} +export interface ImageFilter { /** Checks for all expressions in this list. */ - and?: PlatformInfraCommitFilter[]; + and?: ImageFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `digest` field. */ + digest?: StringFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `imageGrants` relation. */ + imageGrants?: ImageToManyImageGrantFilter; + /** `imageGrants` exist. */ + imageGrantsExist?: boolean; + /** Filter by the object’s `isPublished` field. */ + isPublished?: BooleanFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: ImageFilter; + /** Checks for any expressions in this list. */ + or?: ImageFilter[]; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `platformOnly` field. */ + platformOnly?: BooleanFilter; + /** Filter by the object’s `registryHost` field. */ + registryHost?: StringFilter; + /** Filter by the object’s `repository` field. */ + repository?: StringFilter; + /** Filter by the object’s `runtime` field. */ + runtime?: StringFilter; + /** Filter by the object’s `tag` field. */ + tag?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} +export interface ImageGrantFilter { + /** Filter by the object’s `actions` field. */ + actions?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: ImageGrantFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; + /** Filter by the object’s `grantedBy` field. */ + grantedBy?: UUIDFilter; + /** Filter by the object’s `granteeKey` field. */ + granteeKey?: UUIDFilter; + /** Filter by the object’s `granteeScope` field. */ + granteeScope?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `image` relation. */ + image?: ImageFilter; + /** Filter by the object’s `imageId` field. */ + imageId?: UUIDFilter; + /** Negates the expression. */ + not?: ImageGrantFilter; + /** Checks for any expressions in this list. */ + or?: ImageGrantFilter[]; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} +export interface InfraCommitFilter { + /** Checks for all expressions in this list. */ + and?: InfraCommitFilter[]; /** Filter by the object’s `authorId` field. */ authorId?: UUIDFilter; /** Filter by the object’s `committerId` field. */ committerId?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; /** Filter by the object’s `date` field. */ date?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -4670,32 +7928,32 @@ export interface PlatformInfraCommitFilter { /** Filter by the object’s `message` field. */ message?: StringFilter; /** Negates the expression. */ - not?: PlatformInfraCommitFilter; + not?: InfraCommitFilter; /** Checks for any expressions in this list. */ - or?: PlatformInfraCommitFilter[]; + or?: InfraCommitFilter[]; /** Filter by the object’s `parentIds` field. */ parentIds?: UUIDListFilter; - /** Filter by the object’s `scopeId` field. */ - scopeId?: UUIDFilter; /** Filter by the object’s `storeId` field. */ storeId?: UUIDFilter; /** Filter by the object’s `treeId` field. */ treeId?: UUIDFilter; } -export interface PlatformInfraGetAllTreeNodesRecordFilter { +export interface InfraGetAllTreeNodesRecordFilter { data?: JSONFilter; path?: StringListFilter; - and?: PlatformInfraGetAllTreeNodesRecordFilter[]; - or?: PlatformInfraGetAllTreeNodesRecordFilter[]; - not?: PlatformInfraGetAllTreeNodesRecordFilter; + and?: InfraGetAllTreeNodesRecordFilter[]; + or?: InfraGetAllTreeNodesRecordFilter[]; + not?: InfraGetAllTreeNodesRecordFilter; } -export interface PlatformInfraObjectFilter { +export interface InfraObjectFilter { /** Checks for all expressions in this list. */ - and?: PlatformInfraObjectFilter[]; + and?: InfraObjectFilter[]; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `data` field. */ data?: JSONFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `kids` field. */ @@ -4703,35 +7961,35 @@ export interface PlatformInfraObjectFilter { /** Filter by the object’s `ktree` field. */ ktree?: StringListFilter; /** Negates the expression. */ - not?: PlatformInfraObjectFilter; + not?: InfraObjectFilter; /** Checks for any expressions in this list. */ - or?: PlatformInfraObjectFilter[]; - /** Filter by the object’s `scopeId` field. */ - scopeId?: UUIDFilter; + or?: InfraObjectFilter[]; } -export interface PlatformInfraRefFilter { +export interface InfraRefFilter { /** Checks for all expressions in this list. */ - and?: PlatformInfraRefFilter[]; + and?: InfraRefFilter[]; /** Filter by the object’s `commitId` field. */ commitId?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; /** Negates the expression. */ - not?: PlatformInfraRefFilter; + not?: InfraRefFilter; /** Checks for any expressions in this list. */ - or?: PlatformInfraRefFilter[]; - /** Filter by the object’s `scopeId` field. */ - scopeId?: UUIDFilter; + or?: InfraRefFilter[]; /** Filter by the object’s `storeId` field. */ storeId?: UUIDFilter; } -export interface PlatformInfraStoreFilter { +export interface InfraStoreFilter { /** Checks for all expressions in this list. */ - and?: PlatformInfraStoreFilter[]; + and?: InfraStoreFilter[]; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; /** Filter by the object’s `hash` field. */ hash?: UUIDFilter; /** Filter by the object’s `id` field. */ @@ -4739,21 +7997,59 @@ export interface PlatformInfraStoreFilter { /** Filter by the object’s `name` field. */ name?: StringFilter; /** Negates the expression. */ - not?: PlatformInfraStoreFilter; + not?: InfraStoreFilter; /** Checks for any expressions in this list. */ - or?: PlatformInfraStoreFilter[]; - /** Filter by the object’s `scopeId` field. */ - scopeId?: UUIDFilter; + or?: InfraStoreFilter[]; } -export interface PlatformNamespaceFilter { +export interface IntegrationProviderFilter { /** Checks for all expressions in this list. */ - and?: PlatformNamespaceFilter[]; + and?: IntegrationProviderFilter[]; + /** Filter by the object’s `brand` field. */ + brand?: JSONFilter; + /** Filter by the object’s `category` field. */ + category?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `icon` field. */ + icon?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `logo` field. */ + logo?: ConstructiveInternalTypeImageFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: IntegrationProviderFilter; + /** Checks for any expressions in this list. */ + or?: IntegrationProviderFilter[]; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} +export interface NamespaceFilter { + /** Checks for all expressions in this list. */ + and?: NamespaceFilter[]; /** Filter by the object’s `annotations` field. */ annotations?: JSONFilter; + /** Filter by the object’s `builderBindings` relation. */ + builderBindings?: NamespaceToManyBuilderBindingFilter; + /** `builderBindings` exist. */ + builderBindingsExist?: boolean; + /** Filter by the object’s `clusterId` field. */ + clusterId?: 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 `functionDeployments` relation. */ + functionDeployments?: NamespaceToManyFunctionDeploymentFilter; + /** `functionDeployments` exist. */ + functionDeploymentsExist?: boolean; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `isActive` field. */ @@ -4769,41 +8065,43 @@ export interface PlatformNamespaceFilter { /** Filter by the object’s `namespaceName` field. */ namespaceName?: StringFilter; /** Negates the expression. */ - not?: PlatformNamespaceFilter; + not?: NamespaceFilter; /** Checks for any expressions in this list. */ - or?: PlatformNamespaceFilter[]; - /** Filter by the object’s `platformFunctionDeploymentsByNamespaceId` relation. */ - platformFunctionDeploymentsByNamespaceId?: PlatformNamespaceToManyPlatformFunctionDeploymentFilter; - /** `platformFunctionDeploymentsByNamespaceId` exist. */ - platformFunctionDeploymentsByNamespaceIdExist?: boolean; - /** Filter by the object’s `platformResourceDefinitionsByNamespaceId` relation. */ - platformResourceDefinitionsByNamespaceId?: PlatformNamespaceToManyPlatformResourceDefinitionFilter; - /** `platformResourceDefinitionsByNamespaceId` exist. */ - platformResourceDefinitionsByNamespaceIdExist?: boolean; - /** Filter by the object’s `platformResourceInstallationsByNamespaceId` relation. */ - platformResourceInstallationsByNamespaceId?: PlatformNamespaceToManyPlatformResourceInstallationFilter; - /** `platformResourceInstallationsByNamespaceId` exist. */ - platformResourceInstallationsByNamespaceIdExist?: boolean; - /** Filter by the object’s `platformResourcesByNamespaceId` relation. */ - platformResourcesByNamespaceId?: PlatformNamespaceToManyPlatformResourceFilter; - /** `platformResourcesByNamespaceId` exist. */ - platformResourcesByNamespaceIdExist?: boolean; - /** Filter by the object’s `platformWebhookEndpointsByNamespaceId` relation. */ - platformWebhookEndpointsByNamespaceId?: PlatformNamespaceToManyPlatformWebhookEndpointFilter; - /** `platformWebhookEndpointsByNamespaceId` exist. */ - platformWebhookEndpointsByNamespaceIdExist?: boolean; + or?: NamespaceFilter[]; + /** Filter by the object’s `registryBindings` relation. */ + registryBindings?: NamespaceToManyRegistryBindingFilter; + /** `registryBindings` exist. */ + registryBindingsExist?: boolean; + /** Filter by the object’s `resourceDefinitions` relation. */ + resourceDefinitions?: NamespaceToManyResourceDefinitionFilter; + /** `resourceDefinitions` exist. */ + resourceDefinitionsExist?: boolean; + /** Filter by the object’s `resourceInstallations` relation. */ + resourceInstallations?: NamespaceToManyResourceInstallationFilter; + /** `resourceInstallations` exist. */ + resourceInstallationsExist?: boolean; + /** Filter by the object’s `resources` relation. */ + resources?: NamespaceToManyResourceFilter; + /** `resources` exist. */ + resourcesExist?: boolean; /** Filter by the object’s `status` field. */ status?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `webhookEndpoints` relation. */ + webhookEndpoints?: NamespaceToManyWebhookEndpointFilter; + /** `webhookEndpoints` exist. */ + webhookEndpointsExist?: boolean; } -export interface PlatformNamespaceEventFilter { +export interface NamespaceEventFilter { /** Filter by the object’s `actorId` field. */ actorId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: PlatformNamespaceEventFilter[]; + and?: NamespaceEventFilter[]; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; /** Filter by the object’s `eventType` field. */ eventType?: StringFilter; /** Filter by the object’s `id` field. */ @@ -4815,525 +8113,447 @@ export interface PlatformNamespaceEventFilter { /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ - not?: PlatformNamespaceEventFilter; + not?: NamespaceEventFilter; /** Checks for any expressions in this list. */ - or?: PlatformNamespaceEventFilter[]; + or?: NamespaceEventFilter[]; } -export interface PlatformResourceFilter { +export interface PlatformBuildFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: PlatformResourceFilter[]; - /** Filter by the object’s `annotations` field. */ - annotations?: JSONFilter; - /** Filter by the object’s `cpuLimitMillicores` field. */ - cpuLimitMillicores?: BigIntFilter; - /** Filter by the object’s `cpuRequestMillicores` field. */ - cpuRequestMillicores?: BigIntFilter; + and?: PlatformBuildFilter[]; + /** Filter by the object’s `attempt` field. */ + attempt?: IntFilter; + /** Filter by the object’s `commitSha` field. */ + commitSha?: StringFilter; + /** Filter by the object’s `conclusion` field. */ + conclusion?: StringFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `errorCount` field. */ - errorCount?: IntFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `event` relation. */ + event?: PlatformRepositoryEventFilter; + /** A related `event` exists. */ + eventExists?: boolean; + /** Filter by the object’s `eventId` field. */ + eventId?: UUIDFilter; + /** Filter by the object’s `finishedAt` field. */ + finishedAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `imageRef` field. */ + imageRef?: StringFilter; + /** Filter by the object’s `jobId` field. */ + jobId?: BigIntFilter; + /** Filter by the object’s `logs` field. */ + logs?: ConstructiveInternalTypeUploadFilter; + /** Filter by the object’s `matrixKey` field. */ + matrixKey?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Negates the expression. */ + not?: PlatformBuildFilter; + /** Checks for any expressions in this list. */ + or?: PlatformBuildFilter[]; + /** Filter by the object’s `proposal` relation. */ + proposal?: PlatformProposalFilter; + /** A related `proposal` exists. */ + proposalExists?: boolean; + /** Filter by the object’s `proposalId` field. */ + proposalId?: UUIDFilter; + /** Filter by the object’s `ref` field. */ + ref?: StringFilter; + /** Filter by the object’s `repository` relation. */ + repository?: PlatformRepositoryFilter; + /** Filter by the object’s `repositoryId` field. */ + repositoryId?: UUIDFilter; + /** Filter by the object’s `startedAt` field. */ + startedAt?: DatetimeFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** Filter by the object’s `workflow` relation. */ + workflow?: PlatformRepositoryWorkflowFilter; + /** A related `workflow` exists. */ + workflowExists?: boolean; + /** Filter by the object’s `workflowId` field. */ + workflowId?: UUIDFilter; +} +export interface PlatformBuildStepFilter { + /** Checks for all expressions in this list. */ + and?: PlatformBuildStepFilter[]; + /** Filter by the object’s `buildId` field. */ + buildId?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `exitCode` field. */ + exitCode?: IntFilter; + /** Filter by the object’s `finishedAt` field. */ + finishedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `installation` relation. */ - installation?: PlatformResourceInstallationFilter; - /** A related `installation` exists. */ - installationExists?: boolean; - /** Filter by the object’s `installationId` field. */ - installationId?: UUIDFilter; - /** Filter by the object’s `integrations` field. */ - integrations?: StringListFilter; /** Filter by the object’s `kind` field. */ kind?: StringFilter; - /** Filter by the object’s `labels` field. */ - labels?: JSONFilter; - /** Filter by the object’s `lastError` field. */ - lastError?: StringFilter; - /** Filter by the object’s `lastHeartbeatAt` field. */ - lastHeartbeatAt?: DatetimeFilter; - /** Filter by the object’s `memoryLimitBytes` field. */ - memoryLimitBytes?: BigIntFilter; - /** Filter by the object’s `memoryRequestBytes` field. */ - memoryRequestBytes?: BigIntFilter; + /** Filter by the object’s `logBytes` field. */ + logBytes?: BigIntFilter; + /** Filter by the object’s `logOffset` field. */ + logOffset?: BigIntFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: PlatformNamespaceFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; /** Negates the expression. */ - not?: PlatformResourceFilter; + not?: PlatformBuildStepFilter; /** Checks for any expressions in this list. */ - or?: PlatformResourceFilter[]; - /** Filter by the object’s `platformResourceStatusChecksByResourceId` relation. */ - platformResourceStatusChecksByResourceId?: PlatformResourceToManyPlatformResourceStatusCheckFilter; - /** `platformResourceStatusChecksByResourceId` exist. */ - platformResourceStatusChecksByResourceIdExist?: boolean; - /** Filter by the object’s `realm` field. */ - realm?: StringFilter; - /** Filter by the object’s `replicas` field. */ - replicas?: IntFilter; - /** Filter by the object’s `resourceDefinition` relation. */ - resourceDefinition?: PlatformResourceDefinitionFilter; - /** A related `resourceDefinition` exists. */ - resourceDefinitionExists?: boolean; - /** Filter by the object’s `resourceDefinitionId` field. */ - resourceDefinitionId?: UUIDFilter; - /** Filter by the object’s `slug` field. */ - slug?: StringFilter; - /** Filter by the object’s `spec` field. */ - spec?: JSONFilter; + or?: PlatformBuildStepFilter[]; + /** Filter by the object’s `parentSeq` field. */ + parentSeq?: IntFilter; + /** Filter by the object’s `recordedAt` field. */ + recordedAt?: DatetimeFilter; + /** Filter by the object’s `seq` field. */ + seq?: IntFilter; + /** Filter by the object’s `startedAt` field. */ + startedAt?: DatetimeFilter; /** Filter by the object’s `status` field. */ status?: StringFilter; - /** Filter by the object’s `statusObserved` field. */ - statusObserved?: JSONFilter; - /** Filter by the object’s `storageClass` field. */ - storageClass?: StringFilter; - /** Filter by the object’s `storageSizeBytes` field. */ - storageSizeBytes?: BigIntFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; -} -export interface PlatformResourceDeclaredCapacityFilter { - /** Checks for all expressions in this list. */ - and?: PlatformResourceDeclaredCapacityFilter[]; - /** Filter by the object’s `cpuLimitMillicores` field. */ - cpuLimitMillicores?: BigIntFilter; - /** Filter by the object’s `cpuRequestMillicores` field. */ - cpuRequestMillicores?: BigIntFilter; - /** Filter by the object’s `installationId` field. */ - installationId?: UUIDFilter; - /** Filter by the object’s `isTransient` field. */ - isTransient?: BooleanFilter; - /** Filter by the object’s `kind` field. */ - kind?: StringFilter; - /** Filter by the object’s `memoryLimitBytes` field. */ - memoryLimitBytes?: BigIntFilter; - /** Filter by the object’s `memoryRequestBytes` field. */ - memoryRequestBytes?: BigIntFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; - /** Negates the expression. */ - not?: PlatformResourceDeclaredCapacityFilter; - /** Checks for any expressions in this list. */ - or?: PlatformResourceDeclaredCapacityFilter[]; - /** Filter by the object’s `podCountMax` field. */ - podCountMax?: IntFilter; - /** Filter by the object’s `podCountMin` field. */ - podCountMin?: IntFilter; - /** Filter by the object’s `source` field. */ - source?: StringFilter; - /** Filter by the object’s `sourceId` field. */ - sourceId?: UUIDFilter; - /** Filter by the object’s `storageSizeBytes` field. */ - storageSizeBytes?: BigIntFilter; + /** Filter by the object’s `summary` field. */ + summary?: JSONFilter; } -export interface PlatformResourceDefinitionFilter { +export interface PlatformBuilderBindingFilter { /** Checks for all expressions in this list. */ - and?: PlatformResourceDefinitionFilter[]; - /** Filter by the object’s `annotations` field. */ - annotations?: JSONFilter; + and?: PlatformBuilderBindingFilter[]; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `createdBy` field. */ createdBy?: UUIDFilter; - /** Filter by the object’s `defaultSpec` field. */ - defaultSpec?: JSONFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `integrations` field. */ - integrations?: StringListFilter; - /** Filter by the object’s `kind` field. */ - kind?: StringFilter; - /** Filter by the object’s `labels` field. */ - labels?: JSONFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; + /** Filter by the object’s `installationId` field. */ + installationId?: UUIDFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; /** Filter by the object’s `namespace` relation. */ namespace?: PlatformNamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ - not?: PlatformResourceDefinitionFilter; + not?: PlatformBuilderBindingFilter; + /** Filter by the object’s `observedHost` field. */ + observedHost?: StringFilter; /** Checks for any expressions in this list. */ - or?: PlatformResourceDefinitionFilter[]; - /** Filter by the object’s `paramsSchema` field. */ - paramsSchema?: JSONFilter; - /** Filter by the object’s `platformResourcesByResourceDefinitionId` relation. */ - platformResourcesByResourceDefinitionId?: PlatformResourceDefinitionToManyPlatformResourceFilter; - /** `platformResourcesByResourceDefinitionId` exist. */ - platformResourcesByResourceDefinitionIdExist?: boolean; - /** Filter by the object’s `slug` field. */ - slug?: StringFilter; - /** Filter by the object’s `stepUpMinAge` field. */ - stepUpMinAge?: IntervalFilter; + or?: PlatformBuilderBindingFilter[]; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; /** Filter by the object’s `updatedBy` field. */ updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface PlatformResourceEventFilter { - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; +export interface PlatformFunctionApiBindingFilter { + /** Filter by the object’s `alias` field. */ + alias?: StringFilter; /** Checks for all expressions in this list. */ - and?: PlatformResourceEventFilter[]; + and?: PlatformFunctionApiBindingFilter[]; + /** 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 `eventType` field. */ - eventType?: StringFilter; + /** Filter by the object’s `functionDefinition` relation. */ + functionDefinition?: PlatformFunctionDefinitionFilter; + /** Filter by the object’s `functionDefinitionId` field. */ + functionDefinitionId?: UUIDFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `message` field. */ - message?: StringFilter; - /** Filter by the object’s `metadata` field. */ - metadata?: JSONFilter; /** Negates the expression. */ - not?: PlatformResourceEventFilter; + not?: PlatformFunctionApiBindingFilter; /** Checks for any expressions in this list. */ - or?: PlatformResourceEventFilter[]; - /** Filter by the object’s `resourceId` field. */ - resourceId?: UUIDFilter; + or?: PlatformFunctionApiBindingFilter[]; + /** Filter by the object’s `platformFunctionInvocationsByApiBindingId` relation. */ + platformFunctionInvocationsByApiBindingId?: PlatformFunctionApiBindingToManyPlatformFunctionInvocationFilter; + /** `platformFunctionInvocationsByApiBindingId` exist. */ + platformFunctionInvocationsByApiBindingIdExist?: boolean; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; } -export interface PlatformResourceInstallationFilter { +export interface PlatformFunctionCapabilityBindingFilter { /** Checks for all expressions in this list. */ - and?: PlatformResourceInstallationFilter[]; - /** Filter by the object’s `commitId` field. */ - commitId?: UUIDFilter; + and?: PlatformFunctionCapabilityBindingFilter[]; + /** Filter by the object’s `bucketId` field. */ + bucketId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; + /** Filter by the object’s `function` relation. */ + function?: PlatformFunctionDefinitionFilter; + /** A related `function` exists. */ + functionExists?: boolean; + /** Filter by the object’s `functionId` field. */ + functionId?: UUIDFilter; + /** Filter by the object’s `graphId` field. */ + graphId?: UUIDFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: PlatformNamespaceFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; + /** Filter by the object’s `key` field. */ + key?: StringFilter; + /** Filter by the object’s `lifecycle` field. */ + lifecycle?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; /** Negates the expression. */ - not?: PlatformResourceInstallationFilter; + not?: PlatformFunctionCapabilityBindingFilter; /** Checks for any expressions in this list. */ - or?: PlatformResourceInstallationFilter[]; - /** Filter by the object’s `params` field. */ - params?: JSONFilter; - /** Filter by the object’s `platformResourcesByInstallationId` relation. */ - platformResourcesByInstallationId?: PlatformResourceInstallationToManyPlatformResourceFilter; - /** `platformResourcesByInstallationId` exist. */ - platformResourcesByInstallationIdExist?: boolean; - /** Filter by the object’s `revision` field. */ - revision?: IntFilter; - /** Filter by the object’s `slug` field. */ - slug?: StringFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `storeId` field. */ - storeId?: UUIDFilter; + or?: PlatformFunctionCapabilityBindingFilter[]; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; } -export interface PlatformResourceStatusCheckFilter { +export interface PlatformFunctionDefinitionFilter { + /** Filter by the object’s `accessChannels` field. */ + accessChannels?: StringListFilter; /** Checks for all expressions in this list. */ - and?: PlatformResourceStatusCheckFilter[]; - /** Filter by the object’s `completedAt` field. */ - completedAt?: DatetimeFilter; + and?: PlatformFunctionDefinitionFilter[]; + /** Filter by the object’s `anonymousCallable` field. */ + anonymousCallable?: BooleanFilter; + /** Filter by the object’s `billable` field. */ + billable?: BooleanFilter; + /** Filter by the object’s `category` field. */ + category?: StringFilter; + /** Filter by the object’s `concurrency` field. */ + concurrency?: IntFilter; + /** Filter by the object’s `cpuLimitMillicores` field. */ + cpuLimitMillicores?: BigIntFilter; + /** Filter by the object’s `cpuRequestMillicores` field. */ + cpuRequestMillicores?: BigIntFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `fnCategory` field. */ + fnCategory?: StringFilter; + /** Filter by the object’s `functionColumns` field. */ + functionColumns?: JSONFilter; + /** Filter by the object’s `graph` relation. */ + graph?: FunctionGraphFilter; + /** A related `graph` exists. */ + graphExists?: boolean; + /** Filter by the object’s `graphId` field. */ + graphId?: UUIDFilter; + /** Filter by the object’s `icon` field. */ + icon?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `image` field. */ + image?: StringFilter; + /** Filter by the object’s `inputs` field. */ + inputs?: JSONFilter; + /** Filter by the object’s `integrations` field. */ + integrations?: StringListFilter; + /** Filter by the object’s `isPublished` field. */ + isPublished?: BooleanFilter; + /** Filter by the object’s `maxAttempts` field. */ + maxAttempts?: IntFilter; + /** Filter by the object’s `memoryLimitBytes` field. */ + memoryLimitBytes?: BigIntFilter; + /** Filter by the object’s `memoryRequestBytes` field. */ + memoryRequestBytes?: BigIntFilter; + /** Filter by the object’s `moduleTable` field. */ + moduleTable?: StringFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; /** Negates the expression. */ - not?: PlatformResourceStatusCheckFilter; + not?: PlatformFunctionDefinitionFilter; /** Checks for any expressions in this list. */ - or?: PlatformResourceStatusCheckFilter[]; - /** Filter by the object’s `requestedAt` field. */ - requestedAt?: DatetimeFilter; - /** Filter by the object’s `requestedBy` field. */ - requestedBy?: UUIDFilter; - /** Filter by the object’s `resource` relation. */ - resource?: PlatformResourceFilter; - /** Filter by the object’s `resourceId` field. */ - resourceId?: UUIDFilter; - /** Filter by the object’s `result` field. */ - result?: JSONFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; -} -export interface PlatformResourceUsageLogFilter { - /** Checks for all expressions in this list. */ - and?: PlatformResourceUsageLogFilter[]; - /** Filter by the object’s `cpuMillicores` field. */ - cpuMillicores?: BigIntFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `intervalSeconds` field. */ - intervalSeconds?: IntFilter; - /** Filter by the object’s `memoryBytes` field. */ - memoryBytes?: BigIntFilter; - /** Filter by the object’s `metrics` field. */ - metrics?: JSONFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; - /** Negates the expression. */ - not?: PlatformResourceUsageLogFilter; - /** Checks for any expressions in this list. */ - or?: PlatformResourceUsageLogFilter[]; - /** Filter by the object’s `resourceId` field. */ - resourceId?: UUIDFilter; - /** Filter by the object’s `sampledAt` field. */ - sampledAt?: DatetimeFilter; - /** Filter by the object’s `source` field. */ - source?: StringFilter; -} -export interface PlatformResourceUsageSummaryFilter { - /** Checks for all expressions in this list. */ - and?: PlatformResourceUsageSummaryFilter[]; - /** Filter by the object’s `date` field. */ - date?: DateFilter; - /** Filter by the object’s `gbSeconds` field. */ - gbSeconds?: BigFloatFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `maxCpuMillicores` field. */ - maxCpuMillicores?: BigIntFilter; - /** Filter by the object’s `maxMemoryBytes` field. */ - maxMemoryBytes?: BigIntFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; - /** Negates the expression. */ - not?: PlatformResourceUsageSummaryFilter; - /** Checks for any expressions in this list. */ - or?: PlatformResourceUsageSummaryFilter[]; - /** Filter by the object’s `resourceId` field. */ - resourceId?: UUIDFilter; - /** Filter by the object’s `runtimeSeconds` field. */ - runtimeSeconds?: BigIntFilter; - /** Filter by the object’s `sampleCount` field. */ - sampleCount?: IntFilter; -} -export interface PlatformResourceUtilizationFilter { - /** Checks for all expressions in this list. */ - and?: PlatformResourceUtilizationFilter[]; - /** Filter by the object’s `avgMemoryBytes` field. */ - avgMemoryBytes?: BigIntFilter; - /** Filter by the object’s `cpuLimitMillicores` field. */ - cpuLimitMillicores?: BigIntFilter; - /** Filter by the object’s `cpuPeakUtilization` field. */ - cpuPeakUtilization?: BigFloatFilter; - /** Filter by the object’s `cpuRequestHeadroomMillicores` field. */ - cpuRequestHeadroomMillicores?: BigIntFilter; - /** Filter by the object’s `cpuRequestMillicores` field. */ - cpuRequestMillicores?: BigIntFilter; - /** Filter by the object’s `date` field. */ - date?: DateFilter; - /** Filter by the object’s `gbSeconds` field. */ - gbSeconds?: BigFloatFilter; - /** Filter by the object’s `kind` field. */ - kind?: StringFilter; - /** Filter by the object’s `maxCpuMillicores` field. */ - maxCpuMillicores?: BigIntFilter; - /** Filter by the object’s `maxMemoryBytes` field. */ - maxMemoryBytes?: BigIntFilter; - /** Filter by the object’s `memoryLimitBytes` field. */ - memoryLimitBytes?: BigIntFilter; - /** Filter by the object’s `memoryPeakUtilization` field. */ - memoryPeakUtilization?: BigFloatFilter; - /** Filter by the object’s `memoryRequestBytes` field. */ - memoryRequestBytes?: BigIntFilter; - /** Filter by the object’s `memoryRequestHeadroomBytes` field. */ - memoryRequestHeadroomBytes?: BigIntFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; - /** Negates the expression. */ - not?: PlatformResourceUtilizationFilter; - /** Checks for any expressions in this list. */ - or?: PlatformResourceUtilizationFilter[]; - /** Filter by the object’s `replicas` field. */ - replicas?: IntFilter; - /** Filter by the object’s `resourceId` field. */ - resourceId?: UUIDFilter; - /** Filter by the object’s `runtimeSeconds` field. */ - runtimeSeconds?: BigIntFilter; - /** Filter by the object’s `sampleCount` field. */ - sampleCount?: IntFilter; + or?: PlatformFunctionDefinitionFilter[]; + /** Filter by the object’s `outputs` field. */ + outputs?: JSONFilter; + /** Filter by the object’s `payloadArgs` field. */ + payloadArgs?: JSONFilter; + /** Filter by the object’s `platformFunctionApiBindingsByFunctionDefinitionId` relation. */ + platformFunctionApiBindingsByFunctionDefinitionId?: PlatformFunctionDefinitionToManyPlatformFunctionApiBindingFilter; + /** `platformFunctionApiBindingsByFunctionDefinitionId` exist. */ + platformFunctionApiBindingsByFunctionDefinitionIdExist?: boolean; + /** Filter by the object’s `platformFunctionCapabilityBindingsByFunctionId` relation. */ + platformFunctionCapabilityBindingsByFunctionId?: PlatformFunctionDefinitionToManyPlatformFunctionCapabilityBindingFilter; + /** `platformFunctionCapabilityBindingsByFunctionId` exist. */ + platformFunctionCapabilityBindingsByFunctionIdExist?: boolean; + /** Filter by the object’s `platformWebhookEndpointsByFunctionDefinitionId` relation. */ + platformWebhookEndpointsByFunctionDefinitionId?: PlatformFunctionDefinitionToManyPlatformWebhookEndpointFilter; + /** `platformWebhookEndpointsByFunctionDefinitionId` exist. */ + platformWebhookEndpointsByFunctionDefinitionIdExist?: boolean; + /** Filter by the object’s `priority` field. */ + priority?: IntFilter; + /** Filter by the object’s `props` field. */ + props?: JSONFilter; + /** Filter by the object’s `protected` field. */ + protected?: BooleanFilter; + /** Filter by the object’s `publishedAt` field. */ + publishedAt?: DatetimeFilter; + /** Filter by the object’s `queueName` field. */ + queueName?: StringFilter; + /** Filter by the object’s `requiredBuckets` field. */ + requiredBuckets?: StringListFilter; + /** Filter by the object’s `requiredCapabilities` field. */ + requiredCapabilities?: JSONFilter; + /** 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. */ + runtime?: StringFilter; + /** Filter by the object’s `scaleMax` field. */ + scaleMax?: IntFilter; + /** Filter by the object’s `scaleMin` field. */ + scaleMin?: IntFilter; + /** Filter by the object’s `system` field. */ + system?: BooleanFilter; + /** Filter by the object’s `targetFunction` field. */ + targetFunction?: StringFilter; + /** Filter by the object’s `targetSchema` field. */ + targetSchema?: StringFilter; + /** Filter by the object’s `taskIdentifier` field. */ + taskIdentifier?: StringFilter; + /** Filter by the object’s `timeoutSeconds` field. */ + timeoutSeconds?: IntFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** Filter by the object’s `volatile` field. */ + volatile?: BooleanFilter; } -export interface PlatformResourcesHealthFilter { +export interface PlatformFunctionDeploymentFilter { /** Checks for all expressions in this list. */ - and?: PlatformResourcesHealthFilter[]; + and?: PlatformFunctionDeploymentFilter[]; /** Filter by the object’s `annotations` field. */ annotations?: JSONFilter; - /** Filter by the object’s `cpuLimitMillicores` field. */ - cpuLimitMillicores?: BigIntFilter; - /** Filter by the object’s `cpuRequestMillicores` field. */ - cpuRequestMillicores?: BigIntFilter; + /** Filter by the object’s `concurrency` field. */ + concurrency?: IntFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `errorCount` field. */ errorCount?: IntFilter; + /** Filter by the object’s `handlerName` field. */ + handlerName?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `installationId` field. */ - installationId?: UUIDFilter; - /** Filter by the object’s `integrations` field. */ - integrations?: StringListFilter; - /** Filter by the object’s `kind` field. */ - kind?: StringFilter; + /** Filter by the object’s `image` field. */ + image?: StringFilter; + /** Filter by the object’s `imageVersion` field. */ + imageVersion?: StringFilter; /** Filter by the object’s `labels` field. */ labels?: JSONFilter; /** Filter by the object’s `lastError` field. */ lastError?: StringFilter; - /** Filter by the object’s `lastHeartbeatAt` field. */ - lastHeartbeatAt?: DatetimeFilter; - /** Filter by the object’s `memoryLimitBytes` field. */ - memoryLimitBytes?: BigIntFilter; - /** Filter by the object’s `memoryRequestBytes` field. */ - memoryRequestBytes?: BigIntFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; + /** Filter by the object’s `lastErrorAt` field. */ + lastErrorAt?: DatetimeFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: PlatformNamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ - not?: PlatformResourcesHealthFilter; + not?: PlatformFunctionDeploymentFilter; /** Checks for any expressions in this list. */ - or?: PlatformResourcesHealthFilter[]; + or?: PlatformFunctionDeploymentFilter[]; /** Filter by the object’s `realm` field. */ realm?: StringFilter; - /** Filter by the object’s `replicas` field. */ - replicas?: IntFilter; - /** Filter by the object’s `resourceDefinitionId` field. */ - resourceDefinitionId?: UUIDFilter; - /** Filter by the object’s `slug` field. */ - slug?: StringFilter; - /** Filter by the object’s `spec` field. */ - spec?: JSONFilter; + /** Filter by the object’s `resources` field. */ + resources?: JSONFilter; + /** Filter by the object’s `revision` field. */ + revision?: IntFilter; + /** Filter by the object’s `scaleMax` field. */ + scaleMax?: IntFilter; + /** Filter by the object’s `scaleMin` field. */ + scaleMin?: IntFilter; + /** Filter by the object’s `serviceName` field. */ + serviceName?: StringFilter; + /** Filter by the object’s `serviceUrl` field. */ + serviceUrl?: StringFilter; /** Filter by the object’s `status` field. */ status?: StringFilter; - /** Filter by the object’s `statusDetail` field. */ - statusDetail?: StringFilter; - /** Filter by the object’s `statusObserved` field. */ - statusObserved?: JSONFilter; - /** Filter by the object’s `storageClass` field. */ - storageClass?: StringFilter; - /** Filter by the object’s `storageSizeBytes` field. */ - storageSizeBytes?: BigIntFilter; + /** Filter by the object’s `timeoutSeconds` field. */ + timeoutSeconds?: IntFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface PlatformResourcesRequirementsStateFilter { +export interface PlatformFunctionDeploymentEventFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: PlatformResourcesRequirementsStateFilter[]; - /** Filter by the object’s `configHash` field. */ - configHash?: StringFilter; - /** Filter by the object’s `configObjectName` field. */ - configObjectName?: StringFilter; + and?: PlatformFunctionDeploymentEventFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `deploymentId` field. */ + deploymentId?: UUIDFilter; + /** Filter by the object’s `eventType` field. */ + eventType?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `message` field. */ + message?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; /** Negates the expression. */ - not?: PlatformResourcesRequirementsStateFilter; + not?: PlatformFunctionDeploymentEventFilter; /** Checks for any expressions in this list. */ - or?: PlatformResourcesRequirementsStateFilter[]; - /** Filter by the object’s `requirementsHash` field. */ - requirementsHash?: StringFilter; - /** Filter by the object’s `resourceId` field. */ - resourceId?: UUIDFilter; - /** Filter by the object’s `secretsHash` field. */ - secretsHash?: StringFilter; - /** Filter by the object’s `secretsObjectName` field. */ - secretsObjectName?: StringFilter; - /** Filter by the object’s `slug` field. */ - slug?: StringFilter; -} -export interface PlatformResourcesResolvedRequirementFilter { - /** Checks for all expressions in this list. */ - and?: PlatformResourcesResolvedRequirementFilter[]; - /** Filter by the object’s `atomId` field. */ - atomId?: UUIDFilter; - /** Filter by the object’s `configObjectName` field. */ - configObjectName?: StringFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; - /** Negates the expression. */ - not?: PlatformResourcesResolvedRequirementFilter; - /** Checks for any expressions in this list. */ - or?: PlatformResourcesResolvedRequirementFilter[]; - /** Filter by the object’s `present` field. */ - present?: BooleanFilter; - /** Filter by the object’s `realm` field. */ - realm?: StringFilter; - /** Filter by the object’s `required` field. */ - required?: BooleanFilter; - /** Filter by the object’s `requirementKind` field. */ - requirementKind?: StringFilter; - /** Filter by the object’s `resourceId` field. */ - resourceId?: UUIDFilter; - /** Filter by the object’s `secretsObjectName` field. */ - secretsObjectName?: StringFilter; - /** Filter by the object’s `slug` field. */ - slug?: StringFilter; + or?: PlatformFunctionDeploymentEventFilter[]; } -export interface PlatformWebhookEndpointFilter { - /** Filter by the object’s `active` field. */ - active?: BooleanFilter; +export interface PlatformFunctionExecutionLogFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: PlatformWebhookEndpointFilter[]; + and?: PlatformFunctionExecutionLogFilter[]; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `functionDefinition` relation. */ - functionDefinition?: PlatformFunctionDefinitionFilter; - /** Filter by the object’s `functionDefinitionId` field. */ - functionDefinitionId?: UUIDFilter; - /** Filter by the object’s `host` field. */ - host?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: PlatformNamespaceFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; + /** Filter by the object’s `invocationId` field. */ + invocationId?: UUIDFilter; + /** Filter by the object’s `logLevel` field. */ + logLevel?: StringFilter; + /** Filter by the object’s `message` field. */ + message?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; /** Negates the expression. */ - not?: PlatformWebhookEndpointFilter; + not?: PlatformFunctionExecutionLogFilter; /** Checks for any expressions in this list. */ - or?: PlatformWebhookEndpointFilter[]; - /** Filter by the object’s `path` field. */ - path?: StringFilter; - /** Filter by the object’s `platformWebhookEventsByEndpointId` relation. */ - platformWebhookEventsByEndpointId?: PlatformWebhookEndpointToManyPlatformWebhookEventFilter; - /** `platformWebhookEventsByEndpointId` exist. */ - platformWebhookEventsByEndpointIdExist?: boolean; - /** Filter by the object’s `provider` field. */ - provider?: StringFilter; - /** Filter by the object’s `replayWindowSeconds` field. */ - replayWindowSeconds?: IntFilter; - /** Filter by the object’s `signingSecretName` field. */ - signingSecretName?: StringFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; + or?: PlatformFunctionExecutionLogFilter[]; + /** Filter by the object’s `taskIdentifier` field. */ + taskIdentifier?: StringFilter; } -export interface PlatformWebhookEventFilter { +export interface PlatformFunctionInvocationAttemptFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: PlatformWebhookEventFilter[]; + and?: PlatformFunctionInvocationAttemptFilter[]; + /** Filter by the object’s `attempt` field. */ + attempt?: IntFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; - /** Filter by the object’s `endpoint` relation. */ - endpoint?: PlatformWebhookEndpointFilter; - /** Filter by the object’s `endpointId` field. */ - endpointId?: UUIDFilter; + /** Filter by the object’s `durationMs` field. */ + durationMs?: IntFilter; /** Filter by the object’s `error` field. */ error?: StringFilter; - /** Filter by the object’s `externalEventId` field. */ - externalEventId?: StringFilter; + /** Filter by the object’s `errorDetail` field. */ + errorDetail?: JSONFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `invocationCreatedAt` field. */ @@ -5341,792 +8561,4211 @@ export interface PlatformWebhookEventFilter { /** Filter by the object’s `invocationId` field. */ invocationId?: UUIDFilter; /** Negates the expression. */ - not?: PlatformWebhookEventFilter; + not?: PlatformFunctionInvocationAttemptFilter; /** Checks for any expressions in this list. */ - or?: PlatformWebhookEventFilter[]; + or?: PlatformFunctionInvocationAttemptFilter[]; + /** Filter by the object’s `startedAt` field. */ + startedAt?: DatetimeFilter; + /** Filter by the object’s `success` field. */ + success?: BooleanFilter; + /** Filter by the object’s `taskIdentifier` field. */ + taskIdentifier?: StringFilter; +} +export interface PlatformFunctionInvocationFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: PlatformFunctionInvocationFilter[]; + /** Filter by the object’s `apiBinding` relation. */ + apiBinding?: PlatformFunctionApiBindingFilter; + /** A related `apiBinding` exists. */ + apiBindingExists?: boolean; + /** Filter by the object’s `apiBindingId` field. */ + apiBindingId?: UUIDFilter; + /** Filter by the object’s `channel` field. */ + channel?: StringFilter; + /** Filter by the object’s `completedAt` field. */ + completedAt?: DatetimeFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `definitionScope` field. */ + definitionScope?: StringFilter; + /** Filter by the object’s `durationMs` field. */ + durationMs?: IntFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `entityType` field. */ + entityType?: StringFilter; + /** Filter by the object’s `error` field. */ + error?: StringFilter; + /** Filter by the object’s `functionDefinitionId` field. */ + functionDefinitionId?: UUIDFilter; + /** Filter by the object’s `graphExecutionId` field. */ + graphExecutionId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `jobId` field. */ + jobId?: BigIntFilter; + /** Negates the expression. */ + not?: PlatformFunctionInvocationFilter; + /** Checks for any expressions in this list. */ + or?: PlatformFunctionInvocationFilter[]; + /** Filter by the object’s `organizationId` field. */ + organizationId?: UUIDFilter; + /** Filter by the object’s `parentInvocationId` field. */ + parentInvocationId?: UUIDFilter; /** Filter by the object’s `payload` field. */ payload?: JSONFilter; - /** Filter by the object’s `provider` field. */ - provider?: StringFilter; - /** Filter by the object’s `providerTimestamp` field. */ - providerTimestamp?: DatetimeFilter; + /** Filter by the object’s `principalId` field. */ + principalId?: UUIDFilter; + /** Filter by the object’s `provenance` field. */ + provenance?: JSONFilter; + /** Filter by the object’s `result` field. */ + result?: JSONFilter; + /** Filter by the object’s `startedAt` field. */ + startedAt?: DatetimeFilter; /** Filter by the object’s `status` field. */ status?: StringFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; + /** Filter by the object’s `taskIdentifier` field. */ + taskIdentifier?: StringFilter; } -export interface ResourceFilter { +export interface PlatformImageFilter { /** Checks for all expressions in this list. */ - and?: ResourceFilter[]; - /** Filter by the object’s `annotations` field. */ - annotations?: JSONFilter; - /** Filter by the object’s `cpuLimitMillicores` field. */ - cpuLimitMillicores?: BigIntFilter; - /** Filter by the object’s `cpuRequestMillicores` field. */ - cpuRequestMillicores?: BigIntFilter; + and?: PlatformImageFilter[]; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `errorCount` field. */ - errorCount?: IntFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `digest` field. */ + digest?: StringFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `installation` relation. */ - installation?: ResourceInstallationFilter; - /** A related `installation` exists. */ - installationExists?: boolean; - /** Filter by the object’s `installationId` field. */ - installationId?: UUIDFilter; - /** Filter by the object’s `integrations` field. */ - integrations?: StringListFilter; - /** Filter by the object’s `kind` field. */ - kind?: StringFilter; + /** Filter by the object’s `isPublished` field. */ + isPublished?: BooleanFilter; /** Filter by the object’s `labels` field. */ labels?: JSONFilter; - /** Filter by the object’s `lastError` field. */ - lastError?: StringFilter; - /** Filter by the object’s `lastHeartbeatAt` field. */ - lastHeartbeatAt?: DatetimeFilter; - /** Filter by the object’s `memoryLimitBytes` field. */ - memoryLimitBytes?: BigIntFilter; - /** Filter by the object’s `memoryRequestBytes` field. */ - memoryRequestBytes?: BigIntFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; /** Negates the expression. */ - not?: ResourceFilter; + not?: PlatformImageFilter; /** Checks for any expressions in this list. */ - or?: ResourceFilter[]; - /** Filter by the object’s `realm` field. */ - realm?: StringFilter; - /** Filter by the object’s `replicas` field. */ - replicas?: IntFilter; - /** Filter by the object’s `resourceDefinition` relation. */ - resourceDefinition?: ResourceDefinitionFilter; - /** A related `resourceDefinition` exists. */ - resourceDefinitionExists?: boolean; - /** Filter by the object’s `resourceDefinitionId` field. */ - resourceDefinitionId?: UUIDFilter; - /** Filter by the object’s `resourceStatusChecks` relation. */ - resourceStatusChecks?: ResourceToManyResourceStatusCheckFilter; - /** `resourceStatusChecks` exist. */ - resourceStatusChecksExist?: boolean; - /** Filter by the object’s `slug` field. */ - slug?: StringFilter; - /** Filter by the object’s `spec` field. */ - spec?: JSONFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `statusObserved` field. */ - statusObserved?: JSONFilter; - /** Filter by the object’s `storageClass` field. */ - storageClass?: StringFilter; - /** Filter by the object’s `storageSizeBytes` field. */ - storageSizeBytes?: BigIntFilter; + or?: PlatformImageFilter[]; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `platformImageGrantsByImageId` relation. */ + platformImageGrantsByImageId?: PlatformImageToManyPlatformImageGrantFilter; + /** `platformImageGrantsByImageId` exist. */ + platformImageGrantsByImageIdExist?: boolean; + /** Filter by the object’s `platformOnly` field. */ + platformOnly?: BooleanFilter; + /** Filter by the object’s `registryHost` field. */ + registryHost?: StringFilter; + /** Filter by the object’s `repository` field. */ + repository?: StringFilter; + /** Filter by the object’s `runtime` field. */ + runtime?: StringFilter; + /** Filter by the object’s `tag` field. */ + tag?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface ResourceDeclaredCapacityFilter { +export interface PlatformImageGrantFilter { + /** Filter by the object’s `actions` field. */ + actions?: StringListFilter; /** Checks for all expressions in this list. */ - and?: ResourceDeclaredCapacityFilter[]; - /** Filter by the object’s `cpuLimitMillicores` field. */ - cpuLimitMillicores?: BigIntFilter; - /** Filter by the object’s `cpuRequestMillicores` field. */ - cpuRequestMillicores?: BigIntFilter; - /** Filter by the object’s `installationId` field. */ - installationId?: UUIDFilter; - /** Filter by the object’s `isTransient` field. */ - isTransient?: BooleanFilter; - /** Filter by the object’s `kind` field. */ - kind?: StringFilter; - /** Filter by the object’s `memoryLimitBytes` field. */ - memoryLimitBytes?: BigIntFilter; - /** Filter by the object’s `memoryRequestBytes` field. */ - memoryRequestBytes?: BigIntFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; + and?: PlatformImageGrantFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; + /** Filter by the object’s `grantedBy` field. */ + grantedBy?: UUIDFilter; + /** Filter by the object’s `granteeKey` field. */ + granteeKey?: UUIDFilter; + /** Filter by the object’s `granteeScope` field. */ + granteeScope?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `image` relation. */ + image?: PlatformImageFilter; + /** Filter by the object’s `imageId` field. */ + imageId?: UUIDFilter; /** Negates the expression. */ - not?: ResourceDeclaredCapacityFilter; + not?: PlatformImageGrantFilter; /** Checks for any expressions in this list. */ - or?: ResourceDeclaredCapacityFilter[]; - /** Filter by the object’s `podCountMax` field. */ - podCountMax?: IntFilter; - /** Filter by the object’s `podCountMin` field. */ - podCountMin?: IntFilter; - /** Filter by the object’s `source` field. */ - source?: StringFilter; - /** Filter by the object’s `sourceId` field. */ - sourceId?: UUIDFilter; - /** Filter by the object’s `storageSizeBytes` field. */ - storageSizeBytes?: BigIntFilter; + or?: PlatformImageGrantFilter[]; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface ResourceDefinitionFilter { +export interface PlatformInfraCommitFilter { /** Checks for all expressions in this list. */ - and?: ResourceDefinitionFilter[]; - /** Filter by the object’s `annotations` field. */ - annotations?: JSONFilter; + and?: PlatformInfraCommitFilter[]; + /** Filter by the object’s `authorId` field. */ + authorId?: UUIDFilter; + /** Filter by the object’s `committerId` field. */ + committerId?: UUIDFilter; + /** Filter by the object’s `date` field. */ + date?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `message` field. */ + message?: StringFilter; + /** Negates the expression. */ + not?: PlatformInfraCommitFilter; + /** Checks for any expressions in this list. */ + or?: PlatformInfraCommitFilter[]; + /** Filter by the object’s `parentIds` field. */ + parentIds?: UUIDListFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; + /** Filter by the object’s `storeId` field. */ + storeId?: UUIDFilter; + /** Filter by the object’s `treeId` field. */ + treeId?: UUIDFilter; +} +export interface PlatformInfraGetAllTreeNodesRecordFilter { + data?: JSONFilter; + path?: StringListFilter; + and?: PlatformInfraGetAllTreeNodesRecordFilter[]; + or?: PlatformInfraGetAllTreeNodesRecordFilter[]; + not?: PlatformInfraGetAllTreeNodesRecordFilter; +} +export interface PlatformInfraObjectFilter { + /** Checks for all expressions in this list. */ + and?: PlatformInfraObjectFilter[]; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `defaultSpec` field. */ - defaultSpec?: JSONFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; + /** Filter by the object’s `data` field. */ + data?: JSONFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `kids` field. */ + kids?: UUIDListFilter; + /** Filter by the object’s `ktree` field. */ + ktree?: StringListFilter; + /** Negates the expression. */ + not?: PlatformInfraObjectFilter; + /** Checks for any expressions in this list. */ + or?: PlatformInfraObjectFilter[]; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; +} +export interface PlatformInfraRefFilter { + /** Checks for all expressions in this list. */ + and?: PlatformInfraRefFilter[]; + /** Filter by the object’s `commitId` field. */ + commitId?: UUIDFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `integrations` field. */ - integrations?: StringListFilter; - /** Filter by the object’s `kind` field. */ - kind?: StringFilter; - /** Filter by the object’s `labels` field. */ - labels?: JSONFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; /** Negates the expression. */ - not?: ResourceDefinitionFilter; + not?: PlatformInfraRefFilter; /** Checks for any expressions in this list. */ - or?: ResourceDefinitionFilter[]; - /** Filter by the object’s `paramsSchema` field. */ - paramsSchema?: JSONFilter; - /** Filter by the object’s `resources` relation. */ - resources?: ResourceDefinitionToManyResourceFilter; - /** `resources` exist. */ - resourcesExist?: boolean; - /** Filter by the object’s `slug` field. */ - slug?: StringFilter; - /** Filter by the object’s `stepUpMinAge` field. */ - stepUpMinAge?: IntervalFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; + or?: PlatformInfraRefFilter[]; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; + /** Filter by the object’s `storeId` field. */ + storeId?: UUIDFilter; } -export interface ResourceEventFilter { - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; +export interface PlatformInfraStoreFilter { /** Checks for all expressions in this list. */ - and?: ResourceEventFilter[]; + and?: PlatformInfraStoreFilter[]; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `eventType` field. */ - eventType?: StringFilter; + /** Filter by the object’s `hash` field. */ + hash?: UUIDFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `message` field. */ - message?: StringFilter; - /** Filter by the object’s `metadata` field. */ - metadata?: JSONFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; /** Negates the expression. */ - not?: ResourceEventFilter; + not?: PlatformInfraStoreFilter; /** Checks for any expressions in this list. */ - or?: ResourceEventFilter[]; - /** Filter by the object’s `resourceId` field. */ - resourceId?: UUIDFilter; + or?: PlatformInfraStoreFilter[]; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; } -export interface ResourceInstallationFilter { +export interface PlatformK8sResourceKindFilter { + /** Filter by the object’s `active` field. */ + active?: BooleanFilter; /** Checks for all expressions in this list. */ - and?: ResourceInstallationFilter[]; + and?: PlatformK8sResourceKindFilter[]; /** Filter by the object’s `commitId` field. */ commitId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; + /** 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 `name` field. */ - name?: StringFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; + /** Filter by the object’s `label` field. */ + label?: StringFilter; /** Negates the expression. */ - not?: ResourceInstallationFilter; + not?: PlatformK8sResourceKindFilter; /** Checks for any expressions in this list. */ - or?: ResourceInstallationFilter[]; - /** Filter by the object’s `params` field. */ - params?: JSONFilter; - /** Filter by the object’s `resourcesByInstallationId` relation. */ - resourcesByInstallationId?: ResourceInstallationToManyResourceFilter; - /** `resourcesByInstallationId` exist. */ - resourcesByInstallationIdExist?: boolean; - /** Filter by the object’s `revision` field. */ - revision?: IntFilter; + or?: PlatformK8sResourceKindFilter[]; /** Filter by the object’s `slug` field. */ slug?: StringFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; /** Filter by the object’s `storeId` field. */ storeId?: UUIDFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; } -export interface ResourceStatusCheckFilter { +export interface PlatformK8sSpecRuleFilter { + /** Filter by the object’s `active` field. */ + active?: BooleanFilter; /** Checks for all expressions in this list. */ - and?: ResourceStatusCheckFilter[]; - /** Filter by the object’s `completedAt` field. */ - completedAt?: DatetimeFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; + and?: PlatformK8sSpecRuleFilter[]; + /** 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 `label` field. */ + label?: StringFilter; /** Negates the expression. */ - not?: ResourceStatusCheckFilter; + not?: PlatformK8sSpecRuleFilter; /** Checks for any expressions in this list. */ - or?: ResourceStatusCheckFilter[]; - /** Filter by the object’s `requestedAt` field. */ - requestedAt?: DatetimeFilter; - /** Filter by the object’s `requestedBy` field. */ - requestedBy?: UUIDFilter; - /** Filter by the object’s `resource` relation. */ - resource?: ResourceFilter; - /** Filter by the object’s `resourceId` field. */ - resourceId?: UUIDFilter; - /** Filter by the object’s `result` field. */ - result?: JSONFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; + or?: PlatformK8sSpecRuleFilter[]; + /** 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 ResourceUsageLogFilter { +export interface PlatformNamespaceFilter { /** Checks for all expressions in this list. */ - and?: ResourceUsageLogFilter[]; - /** Filter by the object’s `cpuMillicores` field. */ - cpuMillicores?: BigIntFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; + and?: PlatformNamespaceFilter[]; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Filter by the object’s `clusterId` field. */ + clusterId?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `intervalSeconds` field. */ - intervalSeconds?: IntFilter; - /** Filter by the object’s `memoryBytes` field. */ - memoryBytes?: BigIntFilter; - /** Filter by the object’s `metrics` field. */ - metrics?: JSONFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; - /** Negates the expression. */ - not?: ResourceUsageLogFilter; - /** Checks for any expressions in this list. */ - or?: ResourceUsageLogFilter[]; - /** Filter by the object’s `resourceId` field. */ - resourceId?: UUIDFilter; - /** Filter by the object’s `sampledAt` field. */ - sampledAt?: DatetimeFilter; - /** Filter by the object’s `source` field. */ - source?: StringFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; + /** Filter by the object’s `isManaged` field. */ + isManaged?: BooleanFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `namespaceName` field. */ + namespaceName?: StringFilter; + /** Negates the expression. */ + not?: PlatformNamespaceFilter; + /** Checks for any expressions in this list. */ + or?: PlatformNamespaceFilter[]; + /** Filter by the object’s `platformBuilderBindingsByNamespaceId` relation. */ + platformBuilderBindingsByNamespaceId?: PlatformNamespaceToManyPlatformBuilderBindingFilter; + /** `platformBuilderBindingsByNamespaceId` exist. */ + platformBuilderBindingsByNamespaceIdExist?: boolean; + /** Filter by the object’s `platformFunctionDeploymentsByNamespaceId` relation. */ + platformFunctionDeploymentsByNamespaceId?: PlatformNamespaceToManyPlatformFunctionDeploymentFilter; + /** `platformFunctionDeploymentsByNamespaceId` exist. */ + platformFunctionDeploymentsByNamespaceIdExist?: boolean; + /** Filter by the object’s `platformRegistryBindingsByNamespaceId` relation. */ + platformRegistryBindingsByNamespaceId?: PlatformNamespaceToManyPlatformRegistryBindingFilter; + /** `platformRegistryBindingsByNamespaceId` exist. */ + platformRegistryBindingsByNamespaceIdExist?: boolean; + /** Filter by the object’s `platformResourceDefinitionsByNamespaceId` relation. */ + platformResourceDefinitionsByNamespaceId?: PlatformNamespaceToManyPlatformResourceDefinitionFilter; + /** `platformResourceDefinitionsByNamespaceId` exist. */ + platformResourceDefinitionsByNamespaceIdExist?: boolean; + /** Filter by the object’s `platformResourceInstallationsByNamespaceId` relation. */ + platformResourceInstallationsByNamespaceId?: PlatformNamespaceToManyPlatformResourceInstallationFilter; + /** `platformResourceInstallationsByNamespaceId` exist. */ + platformResourceInstallationsByNamespaceIdExist?: boolean; + /** Filter by the object’s `platformResourcesByNamespaceId` relation. */ + platformResourcesByNamespaceId?: PlatformNamespaceToManyPlatformResourceFilter; + /** `platformResourcesByNamespaceId` exist. */ + platformResourcesByNamespaceIdExist?: boolean; + /** Filter by the object’s `platformWebhookEndpointsByNamespaceId` relation. */ + platformWebhookEndpointsByNamespaceId?: PlatformNamespaceToManyPlatformWebhookEndpointFilter; + /** `platformWebhookEndpointsByNamespaceId` exist. */ + platformWebhookEndpointsByNamespaceIdExist?: boolean; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; } -export interface ResourceUsageSummaryFilter { +export interface PlatformNamespaceEventFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: ResourceUsageSummaryFilter[]; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `date` field. */ - date?: DateFilter; - /** Filter by the object’s `gbSeconds` field. */ - gbSeconds?: BigFloatFilter; + and?: PlatformNamespaceEventFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `eventType` field. */ + eventType?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `maxCpuMillicores` field. */ - maxCpuMillicores?: BigIntFilter; - /** Filter by the object’s `maxMemoryBytes` field. */ - maxMemoryBytes?: BigIntFilter; + /** Filter by the object’s `message` field. */ + message?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ - not?: ResourceUsageSummaryFilter; + not?: PlatformNamespaceEventFilter; /** Checks for any expressions in this list. */ - or?: ResourceUsageSummaryFilter[]; - /** Filter by the object’s `resourceId` field. */ - resourceId?: UUIDFilter; - /** Filter by the object’s `runtimeSeconds` field. */ - runtimeSeconds?: BigIntFilter; - /** Filter by the object’s `sampleCount` field. */ - sampleCount?: IntFilter; + or?: PlatformNamespaceEventFilter[]; } -export interface ResourceUtilizationFilter { +export interface PlatformProposalCommentFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: ResourceUtilizationFilter[]; - /** Filter by the object’s `avgMemoryBytes` field. */ - avgMemoryBytes?: BigIntFilter; - /** Filter by the object’s `cpuLimitMillicores` field. */ - cpuLimitMillicores?: BigIntFilter; - /** Filter by the object’s `cpuPeakUtilization` field. */ - cpuPeakUtilization?: BigFloatFilter; - /** Filter by the object’s `cpuRequestHeadroomMillicores` field. */ - cpuRequestHeadroomMillicores?: BigIntFilter; - /** Filter by the object’s `cpuRequestMillicores` field. */ - cpuRequestMillicores?: BigIntFilter; - /** Filter by the object’s `date` field. */ - date?: DateFilter; - /** Filter by the object’s `gbSeconds` field. */ - gbSeconds?: BigFloatFilter; - /** Filter by the object’s `kind` field. */ - kind?: StringFilter; - /** Filter by the object’s `maxCpuMillicores` field. */ - maxCpuMillicores?: BigIntFilter; - /** Filter by the object’s `maxMemoryBytes` field. */ - maxMemoryBytes?: BigIntFilter; - /** Filter by the object’s `memoryLimitBytes` field. */ - memoryLimitBytes?: BigIntFilter; - /** Filter by the object’s `memoryPeakUtilization` field. */ - memoryPeakUtilization?: BigFloatFilter; - /** Filter by the object’s `memoryRequestBytes` field. */ - memoryRequestBytes?: BigIntFilter; - /** Filter by the object’s `memoryRequestHeadroomBytes` field. */ - memoryRequestHeadroomBytes?: BigIntFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; + and?: PlatformProposalCommentFilter[]; + /** Filter by the object’s `attachments` field. */ + attachments?: ConstructiveInternalTypeUploadListFilter; + /** Filter by the object’s `body` field. */ + body?: StringTrgmFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `embedding` field. */ + embedding?: VectorFilter; + /** Filter by the object’s `embeddingUpdatedAt` field. */ + embeddingUpdatedAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `line` field. */ + line?: IntFilter; /** Negates the expression. */ - not?: ResourceUtilizationFilter; + not?: PlatformProposalCommentFilter; /** Checks for any expressions in this list. */ - or?: ResourceUtilizationFilter[]; - /** Filter by the object’s `replicas` field. */ - replicas?: IntFilter; - /** Filter by the object’s `resourceId` field. */ - resourceId?: UUIDFilter; - /** Filter by the object’s `runtimeSeconds` field. */ - runtimeSeconds?: BigIntFilter; - /** Filter by the object’s `sampleCount` field. */ - sampleCount?: IntFilter; + or?: PlatformProposalCommentFilter[]; + /** Filter by the object’s `outdatedAt` field. */ + outdatedAt?: DatetimeFilter; + /** Filter by the object’s `path` field. */ + path?: StringTrgmFilter; + /** Filter by the object’s `platformProposalReactionsByCommentId` relation. */ + platformProposalReactionsByCommentId?: PlatformProposalCommentToManyPlatformProposalReactionFilter; + /** `platformProposalReactionsByCommentId` exist. */ + platformProposalReactionsByCommentIdExist?: boolean; + /** Filter by the object’s `proposal` relation. */ + proposal?: PlatformProposalFilter; + /** Filter by the object’s `proposalId` field. */ + proposalId?: UUIDFilter; + /** Filter by the object’s `resolvedAt` field. */ + resolvedAt?: DatetimeFilter; + /** Filter by the object’s `search` field. */ + search?: FullTextFilter; + /** TRGM search on the `body` column. */ + trgmBody?: TrgmSearchInput; + /** TRGM search on the `path` column. */ + trgmPath?: TrgmSearchInput; + /** TSV search on the `search` column. */ + tsvSearch?: string; + /** + * Composite unified search. Provide a search string and it will be dispatched to + * all text-compatible search algorithms (tsvector, BM25, pg_trgm) + * simultaneously. When the LLM plugin is active, pgvector also participates via + * auto-embedding. Rows matching ANY algorithm are returned. All matching score + * fields are populated. + */ + unifiedSearch?: string; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** VECTOR search on the `embedding` column. */ + vectorEmbedding?: VectorNearbyInput; } -export interface ResourcesHealthFilter { +export interface PlatformProposalFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: ResourcesHealthFilter[]; - /** Filter by the object’s `annotations` field. */ - annotations?: JSONFilter; - /** Filter by the object’s `cpuLimitMillicores` field. */ - cpuLimitMillicores?: BigIntFilter; - /** Filter by the object’s `cpuRequestMillicores` field. */ - cpuRequestMillicores?: BigIntFilter; + and?: PlatformProposalFilter[]; + /** Filter by the object’s `body` field. */ + body?: StringTrgmFilter; + /** Filter by the object’s `childPlatformProposals` relation. */ + childPlatformProposals?: PlatformProposalToManyPlatformProposalFilter; + /** `childPlatformProposals` exist. */ + childPlatformProposalsExist?: boolean; + /** Filter by the object’s `closedReason` field. */ + closedReason?: StringTrgmFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `createdBy` field. */ createdBy?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `errorCount` field. */ - errorCount?: IntFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `decidedAt` field. */ + decidedAt?: DatetimeFilter; + /** Filter by the object’s `dueAt` field. */ + dueAt?: DatetimeFilter; + /** Filter by the object’s `embedding` field. */ + embedding?: VectorFilter; + /** Filter by the object’s `embeddingUpdatedAt` field. */ + embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `installationId` field. */ - installationId?: UUIDFilter; - /** Filter by the object’s `integrations` field. */ - integrations?: StringListFilter; /** Filter by the object’s `kind` field. */ - kind?: StringFilter; + kind?: StringTrgmFilter; /** Filter by the object’s `labels` field. */ - labels?: JSONFilter; - /** Filter by the object’s `lastError` field. */ - lastError?: StringFilter; - /** Filter by the object’s `lastHeartbeatAt` field. */ - lastHeartbeatAt?: DatetimeFilter; - /** Filter by the object’s `memoryLimitBytes` field. */ - memoryLimitBytes?: BigIntFilter; - /** Filter by the object’s `memoryRequestBytes` field. */ - memoryRequestBytes?: BigIntFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; + labels?: StringListFilter; + /** Filter by the object’s `mergeCommit` field. */ + mergeCommit?: StringTrgmFilter; + /** Filter by the object’s `mergeMethod` field. */ + mergeMethod?: StringTrgmFilter; + /** Filter by the object’s `mergeRequestedAt` field. */ + mergeRequestedAt?: DatetimeFilter; + /** Filter by the object’s `mergedAt` field. */ + mergedAt?: DatetimeFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; /** Negates the expression. */ - not?: ResourcesHealthFilter; + not?: PlatformProposalFilter; /** Checks for any expressions in this list. */ - or?: ResourcesHealthFilter[]; - /** Filter by the object’s `realm` field. */ - realm?: StringFilter; - /** Filter by the object’s `replicas` field. */ - replicas?: IntFilter; - /** Filter by the object’s `resourceDefinitionId` field. */ - resourceDefinitionId?: UUIDFilter; - /** Filter by the object’s `slug` field. */ - slug?: StringFilter; - /** Filter by the object’s `spec` field. */ - spec?: JSONFilter; + or?: PlatformProposalFilter[]; + /** Filter by the object’s `parent` relation. */ + parent?: PlatformProposalFilter; + /** A related `parent` exists. */ + parentExists?: boolean; + /** Filter by the object’s `parentId` field. */ + parentId?: UUIDFilter; + /** Filter by the object’s `platformBuildsByProposalId` relation. */ + platformBuildsByProposalId?: PlatformProposalToManyPlatformBuildFilter; + /** `platformBuildsByProposalId` exist. */ + platformBuildsByProposalIdExist?: boolean; + /** Filter by the object’s `platformProposalCommentsByProposalId` relation. */ + platformProposalCommentsByProposalId?: PlatformProposalToManyPlatformProposalCommentFilter; + /** `platformProposalCommentsByProposalId` exist. */ + platformProposalCommentsByProposalIdExist?: boolean; + /** Filter by the object’s `platformProposalFileViewsByProposalId` relation. */ + platformProposalFileViewsByProposalId?: PlatformProposalToManyPlatformProposalFileViewFilter; + /** `platformProposalFileViewsByProposalId` exist. */ + platformProposalFileViewsByProposalIdExist?: boolean; + /** Filter by the object’s `platformProposalReactionsByProposalId` relation. */ + platformProposalReactionsByProposalId?: PlatformProposalToManyPlatformProposalReactionFilter; + /** `platformProposalReactionsByProposalId` exist. */ + platformProposalReactionsByProposalIdExist?: boolean; + /** Filter by the object’s `platformProposalReviewsByProposalId` relation. */ + platformProposalReviewsByProposalId?: PlatformProposalToManyPlatformProposalReviewFilter; + /** `platformProposalReviewsByProposalId` exist. */ + platformProposalReviewsByProposalIdExist?: boolean; + /** Filter by the object’s `platformProposalsChunksByPlatformProposalsId` relation. */ + platformProposalsChunksByPlatformProposalsId?: PlatformProposalToManyPlatformProposalsChunkFilter; + /** `platformProposalsChunksByPlatformProposalsId` exist. */ + platformProposalsChunksByPlatformProposalsIdExist?: boolean; + /** Filter by the object’s `priority` field. */ + priority?: BigFloatFilter; + /** Filter by the object’s `repository` relation. */ + repository?: PlatformRepositoryFilter; + /** Filter by the object’s `repositoryId` field. */ + repositoryId?: UUIDFilter; + /** Filter by the object’s `resolution` field. */ + resolution?: StringTrgmFilter; + /** Filter by the object’s `search` field. */ + search?: FullTextFilter; + /** Filter by the object’s `sourceRef` field. */ + sourceRef?: StringTrgmFilter; /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `statusDetail` field. */ - statusDetail?: StringFilter; - /** Filter by the object’s `statusObserved` field. */ - statusObserved?: JSONFilter; - /** Filter by the object’s `storageClass` field. */ - storageClass?: StringFilter; - /** Filter by the object’s `storageSizeBytes` field. */ - storageSizeBytes?: BigIntFilter; + status?: StringTrgmFilter; + /** Filter by the object’s `targetRef` field. */ + targetRef?: StringTrgmFilter; + /** Filter by the object’s `title` field. */ + title?: StringTrgmFilter; + /** TRGM search on the `body` column. */ + trgmBody?: TrgmSearchInput; + /** TRGM search on the `closed_reason` column. */ + trgmClosedReason?: TrgmSearchInput; + /** TRGM search on the `kind` column. */ + trgmKind?: TrgmSearchInput; + /** TRGM search on the `merge_commit` column. */ + trgmMergeCommit?: TrgmSearchInput; + /** TRGM search on the `merge_method` column. */ + trgmMergeMethod?: TrgmSearchInput; + /** TRGM search on the `resolution` column. */ + trgmResolution?: TrgmSearchInput; + /** TRGM search on the `source_ref` column. */ + trgmSourceRef?: TrgmSearchInput; + /** TRGM search on the `status` column. */ + trgmStatus?: TrgmSearchInput; + /** TRGM search on the `target_ref` column. */ + trgmTargetRef?: TrgmSearchInput; + /** TRGM search on the `title` column. */ + trgmTitle?: TrgmSearchInput; + /** TSV search on the `search` column. */ + tsvSearch?: string; + /** + * Composite unified search. Provide a search string and it will be dispatched to + * all text-compatible search algorithms (tsvector, BM25, pg_trgm) + * simultaneously. When the LLM plugin is active, pgvector also participates via + * auto-embedding. Rows matching ANY algorithm are returned. All matching score + * fields are populated. + */ + unifiedSearch?: string; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; /** Filter by the object’s `updatedBy` field. */ updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** VECTOR search on the `embedding` column. */ + vectorEmbedding?: VectorNearbyInput; } -export interface ResourcesRequirementsStateFilter { +export interface PlatformProposalFileViewFilter { /** Checks for all expressions in this list. */ - and?: ResourcesRequirementsStateFilter[]; - /** Filter by the object’s `configHash` field. */ - configHash?: StringFilter; - /** Filter by the object’s `configObjectName` field. */ - configObjectName?: StringFilter; + and?: PlatformProposalFileViewFilter[]; + /** Filter by the object’s `blobSha` field. */ + blobSha?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; /** Negates the expression. */ - not?: ResourcesRequirementsStateFilter; + not?: PlatformProposalFileViewFilter; /** Checks for any expressions in this list. */ - or?: ResourcesRequirementsStateFilter[]; - /** Filter by the object’s `requirementsHash` field. */ - requirementsHash?: StringFilter; - /** Filter by the object’s `resourceId` field. */ - resourceId?: UUIDFilter; - /** Filter by the object’s `secretsHash` field. */ - secretsHash?: StringFilter; - /** Filter by the object’s `secretsObjectName` field. */ - secretsObjectName?: StringFilter; - /** Filter by the object’s `slug` field. */ - slug?: StringFilter; + or?: PlatformProposalFileViewFilter[]; + /** Filter by the object’s `path` field. */ + path?: StringFilter; + /** Filter by the object’s `proposal` relation. */ + proposal?: PlatformProposalFilter; + /** Filter by the object’s `proposalId` field. */ + proposalId?: UUIDFilter; + /** Filter by the object’s `reviewerId` field. */ + reviewerId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** Filter by the object’s `viewedAt` field. */ + viewedAt?: DatetimeFilter; } -export interface ResourcesResolvedRequirementFilter { +export interface PlatformProposalReactionFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: ResourcesResolvedRequirementFilter[]; - /** Filter by the object’s `atomId` field. */ - atomId?: UUIDFilter; - /** Filter by the object’s `configObjectName` field. */ - configObjectName?: StringFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; + and?: PlatformProposalReactionFilter[]; + /** Filter by the object’s `comment` relation. */ + comment?: PlatformProposalCommentFilter; + /** A related `comment` exists. */ + commentExists?: boolean; + /** Filter by the object’s `commentId` field. */ + commentId?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `emoji` field. */ + emoji?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; /** Negates the expression. */ - not?: ResourcesResolvedRequirementFilter; + not?: PlatformProposalReactionFilter; /** Checks for any expressions in this list. */ - or?: ResourcesResolvedRequirementFilter[]; - /** Filter by the object’s `present` field. */ - present?: BooleanFilter; - /** Filter by the object’s `realm` field. */ - realm?: StringFilter; - /** Filter by the object’s `required` field. */ - required?: BooleanFilter; - /** Filter by the object’s `requirementKind` field. */ - requirementKind?: StringFilter; - /** Filter by the object’s `resourceId` field. */ - resourceId?: UUIDFilter; - /** Filter by the object’s `secretsObjectName` field. */ - secretsObjectName?: StringFilter; - /** Filter by the object’s `slug` field. */ - slug?: StringFilter; + or?: PlatformProposalReactionFilter[]; + /** Filter by the object’s `proposal` relation. */ + proposal?: PlatformProposalFilter; + /** Filter by the object’s `proposalId` field. */ + proposalId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface WebhookEndpointFilter { - /** Filter by the object’s `active` field. */ - active?: BooleanFilter; +export interface PlatformProposalReviewFilter { /** Checks for all expressions in this list. */ - and?: WebhookEndpointFilter[]; + and?: PlatformProposalReviewFilter[]; + /** Filter by the object’s `body` field. */ + body?: StringTrgmFilter; + /** Filter by the object’s `commitSha` field. */ + commitSha?: StringTrgmFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `functionDefinition` relation. */ - functionDefinition?: FunctionDefinitionFilter; - /** Filter by the object’s `functionDefinitionId` field. */ - functionDefinitionId?: UUIDFilter; - /** Filter by the object’s `host` field. */ - host?: StringFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformProposalReviewFilter; + /** Checks for any expressions in this list. */ + or?: PlatformProposalReviewFilter[]; + /** Filter by the object’s `proposal` relation. */ + proposal?: PlatformProposalFilter; + /** Filter by the object’s `proposalId` field. */ + proposalId?: UUIDFilter; + /** Filter by the object’s `reviewerId` field. */ + reviewerId?: UUIDFilter; + /** Filter by the object’s `search` field. */ + search?: FullTextFilter; + /** Filter by the object’s `submittedAt` field. */ + submittedAt?: DatetimeFilter; + /** TRGM search on the `body` column. */ + trgmBody?: TrgmSearchInput; + /** TRGM search on the `commit_sha` column. */ + trgmCommitSha?: TrgmSearchInput; + /** TRGM search on the `verdict` column. */ + trgmVerdict?: TrgmSearchInput; + /** TSV search on the `search` column. */ + tsvSearch?: string; + /** + * Composite unified search. Provide a search string and it will be dispatched to + * all text-compatible search algorithms (tsvector, BM25, pg_trgm) + * simultaneously. When the LLM plugin is active, pgvector also participates via + * auto-embedding. Rows matching ANY algorithm are returned. All matching score + * fields are populated. + */ + unifiedSearch?: string; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** Filter by the object’s `verdict` field. */ + verdict?: StringTrgmFilter; +} +export interface PlatformProposalsChunkFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: PlatformProposalsChunkFilter[]; + /** Filter by the object’s `body` field. */ + body?: StringFilter; + /** Filter by the object’s `chunkIndex` field. */ + chunkIndex?: IntFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `embedding` field. */ + embedding?: VectorFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Negates the expression. */ + not?: PlatformProposalsChunkFilter; + /** Checks for any expressions in this list. */ + or?: PlatformProposalsChunkFilter[]; + /** Filter by the object’s `platformProposals` relation. */ + platformProposals?: PlatformProposalFilter; + /** Filter by the object’s `platformProposalsId` field. */ + platformProposalsId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** VECTOR search on the `embedding` column. */ + vectorEmbedding?: VectorNearbyInput; +} +export interface PlatformRegistryBindingFilter { + /** Checks for all expressions in this list. */ + and?: PlatformRegistryBindingFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; + namespace?: PlatformNamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ - not?: WebhookEndpointFilter; + not?: PlatformRegistryBindingFilter; + /** Filter by the object’s `observedCredentialVersion` field. */ + observedCredentialVersion?: StringFilter; /** Checks for any expressions in this list. */ - or?: WebhookEndpointFilter[]; - /** Filter by the object’s `path` field. */ - path?: StringFilter; - /** Filter by the object’s `provider` field. */ - provider?: StringFilter; - /** Filter by the object’s `replayWindowSeconds` field. */ - replayWindowSeconds?: IntFilter; - /** Filter by the object’s `signingSecretName` field. */ - signingSecretName?: StringFilter; + or?: PlatformRegistryBindingFilter[]; + /** Filter by the object’s `pullSecretName` field. */ + pullSecretName?: StringFilter; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; + /** Filter by the object’s `registry` relation. */ + registry?: PlatformRegistryFilter; + /** Filter by the object’s `registryHost` field. */ + registryHost?: StringFilter; + /** Filter by the object’s `registryId` field. */ + registryId?: UUIDFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; /** Filter by the object’s `updatedBy` field. */ updatedBy?: UUIDFilter; - /** Filter by the object’s `webhookEventsByEndpointId` relation. */ - webhookEventsByEndpointId?: WebhookEndpointToManyWebhookEventFilter; - /** `webhookEventsByEndpointId` exist. */ - webhookEventsByEndpointIdExist?: boolean; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface WebhookEventFilter { +export interface PlatformRegistryFilter { /** Checks for all expressions in this list. */ - and?: WebhookEventFilter[]; + and?: PlatformRegistryFilter[]; + /** Filter by the object’s `authMode` field. */ + authMode?: StringFilter; + /** Filter by the object’s `basePath` field. */ + basePath?: StringFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `endpoint` relation. */ - endpoint?: WebhookEndpointFilter; - /** Filter by the object’s `endpointId` field. */ - endpointId?: UUIDFilter; - /** Filter by the object’s `error` field. */ - error?: StringFilter; - /** Filter by the object’s `externalEventId` field. */ - externalEventId?: StringFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `credentialSecretName` field. */ + credentialSecretName?: StringFilter; + /** Filter by the object’s `host` field. */ + host?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `invocationCreatedAt` field. */ - invocationCreatedAt?: DatetimeFilter; - /** Filter by the object’s `invocationId` field. */ - invocationId?: UUIDFilter; + /** Filter by the object’s `installation` relation. */ + installation?: PlatformResourceInstallationFilter; + /** A related `installation` exists. */ + installationExists?: boolean; + /** Filter by the object’s `installationId` field. */ + installationId?: UUIDFilter; + /** Filter by the object’s `isPublished` field. */ + isPublished?: BooleanFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; /** Negates the expression. */ - not?: WebhookEventFilter; + not?: PlatformRegistryFilter; /** Checks for any expressions in this list. */ - or?: WebhookEventFilter[]; - /** Filter by the object’s `payload` field. */ - payload?: JSONFilter; - /** Filter by the object’s `provider` field. */ - provider?: StringFilter; - /** Filter by the object’s `providerTimestamp` field. */ - providerTimestamp?: DatetimeFilter; + or?: PlatformRegistryFilter[]; + /** Filter by the object’s `platformOnly` field. */ + platformOnly?: BooleanFilter; + /** Filter by the object’s `platformRegistryBindingsByRegistryId` relation. */ + platformRegistryBindingsByRegistryId?: PlatformRegistryToManyPlatformRegistryBindingFilter; + /** `platformRegistryBindingsByRegistryId` exist. */ + platformRegistryBindingsByRegistryIdExist?: boolean; + /** Filter by the object’s `platformRegistryGrantsByRegistryId` relation. */ + platformRegistryGrantsByRegistryId?: PlatformRegistryToManyPlatformRegistryGrantFilter; + /** `platformRegistryGrantsByRegistryId` exist. */ + platformRegistryGrantsByRegistryIdExist?: boolean; + /** Filter by the object’s `role` field. */ + role?: StringFilter; /** Filter by the object’s `status` field. */ status?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -// ============ OrderBy Types ============ -export type DbPresetOrderBy = - | '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' - | 'LABEL_ASC' - | 'LABEL_DESC' - | 'MODULES_HASH_ASC' - | 'MODULES_HASH_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 FunctionApiBindingOrderBy = - | 'ALIAS_ASC' - | 'ALIAS_DESC' - | 'API_ID_ASC' - | 'API_ID_DESC' - | 'CONFIG_ASC' - | 'CONFIG_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'FUNCTION_DEFINITION_ID_ASC' - | 'FUNCTION_DEFINITION_ID_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type FunctionCapabilityBindingOrderBy = - | 'BUCKET_ID_ASC' - | 'BUCKET_ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'FUNCTION_ID_ASC' - | 'FUNCTION_ID_DESC' - | 'GRAPH_ID_ASC' - | 'GRAPH_ID_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'KEY_ASC' - | 'KEY_DESC' - | 'LIFECYCLE_ASC' - | 'LIFECYCLE_DESC' - | 'METADATA_ASC' - | 'METADATA_DESC' - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type FunctionDefinitionOrderBy = - | 'ACCESS_CHANNELS_ASC' - | 'ACCESS_CHANNELS_DESC' - | 'CATEGORY_ASC' - | 'CATEGORY_DESC' - | 'CONCURRENCY_ASC' - | 'CONCURRENCY_DESC' - | 'CPU_LIMIT_MILLICORES_ASC' - | 'CPU_LIMIT_MILLICORES_DESC' - | 'CPU_REQUEST_MILLICORES_ASC' - | 'CPU_REQUEST_MILLICORES_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'FN_CATEGORY_ASC' - | 'FN_CATEGORY_DESC' - | 'FUNCTION_COLUMNS_ASC' - | 'FUNCTION_COLUMNS_DESC' - | 'GRAPH_ID_ASC' - | 'GRAPH_ID_DESC' - | 'ICON_ASC' - | 'ICON_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'IMAGE_ASC' - | 'IMAGE_DESC' - | 'INPUTS_ASC' - | 'INPUTS_DESC' - | 'INTEGRATIONS_ASC' - | 'INTEGRATIONS_DESC' - | 'IS_PUBLISHED_ASC' - | 'IS_PUBLISHED_DESC' - | 'MAX_ATTEMPTS_ASC' - | 'MAX_ATTEMPTS_DESC' - | 'MEMORY_LIMIT_BYTES_ASC' - | 'MEMORY_LIMIT_BYTES_DESC' - | 'MEMORY_REQUEST_BYTES_ASC' - | 'MEMORY_REQUEST_BYTES_DESC' - | 'MODULE_TABLE_ASC' - | 'MODULE_TABLE_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'NATURAL' - | 'OUTPUTS_ASC' - | 'OUTPUTS_DESC' - | 'PAYLOAD_ARGS_ASC' - | 'PAYLOAD_ARGS_DESC' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'PRIORITY_ASC' - | 'PRIORITY_DESC' - | 'PROPS_ASC' - | 'PROPS_DESC' - | 'PROTECTED_ASC' - | 'PROTECTED_DESC' - | 'PUBLISHED_AT_ASC' - | 'PUBLISHED_AT_DESC' - | 'QUEUE_NAME_ASC' - | 'QUEUE_NAME_DESC' - | 'REQUIRED_BUCKETS_ASC' - | 'REQUIRED_BUCKETS_DESC' - | 'REQUIRED_CONFIGS_ASC' - | 'REQUIRED_CONFIGS_DESC' - | 'REQUIRED_MODELS_ASC' - | 'REQUIRED_MODELS_DESC' - | 'REQUIRED_SECRETS_ASC' - | 'REQUIRED_SECRETS_DESC' - | 'RESOURCES_ASC' - | 'RESOURCES_DESC' - | 'RUNTIME_ASC' - | 'RUNTIME_DESC' - | 'SCALE_MAX_ASC' - | 'SCALE_MAX_DESC' - | 'SCALE_MIN_ASC' - | 'SCALE_MIN_DESC' - | 'TARGET_FUNCTION_ASC' - | 'TARGET_FUNCTION_DESC' - | 'TARGET_SCHEMA_ASC' - | 'TARGET_SCHEMA_DESC' - | 'TASK_IDENTIFIER_ASC' - | 'TASK_IDENTIFIER_DESC' - | 'TIMEOUT_SECONDS_ASC' +export interface PlatformRegistryGrantFilter { + /** Filter by the object’s `actions` field. */ + actions?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: PlatformRegistryGrantFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; + /** Filter by the object’s `grantedBy` field. */ + grantedBy?: UUIDFilter; + /** Filter by the object’s `granteeKey` field. */ + granteeKey?: UUIDFilter; + /** Filter by the object’s `granteeScope` field. */ + granteeScope?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformRegistryGrantFilter; + /** Checks for any expressions in this list. */ + or?: PlatformRegistryGrantFilter[]; + /** Filter by the object’s `registry` relation. */ + registry?: PlatformRegistryFilter; + /** Filter by the object’s `registryId` field. */ + registryId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} +export interface PlatformRepositoryFilter { + /** Checks for all expressions in this list. */ + and?: PlatformRepositoryFilter[]; + /** Filter by the object’s `cloneUrl` field. */ + cloneUrl?: StringTrgmFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `defaultBranch` field. */ + defaultBranch?: StringTrgmFilter; + /** Filter by the object’s `description` field. */ + description?: StringTrgmFilter; + /** Filter by the object’s `embedding` field. */ + embedding?: VectorFilter; + /** Filter by the object’s `embeddingUpdatedAt` field. */ + embeddingUpdatedAt?: DatetimeFilter; + /** Filter by the object’s `externalId` field. */ + externalId?: StringTrgmFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isArchived` field. */ + isArchived?: BooleanFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `name` field. */ + name?: StringTrgmFilter; + /** Negates the expression. */ + not?: PlatformRepositoryFilter; + /** Checks for any expressions in this list. */ + or?: PlatformRepositoryFilter[]; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `platformBuildsByRepositoryId` relation. */ + platformBuildsByRepositoryId?: PlatformRepositoryToManyPlatformBuildFilter; + /** `platformBuildsByRepositoryId` exist. */ + platformBuildsByRepositoryIdExist?: boolean; + /** Filter by the object’s `platformProposalsByRepositoryId` relation. */ + platformProposalsByRepositoryId?: PlatformRepositoryToManyPlatformProposalFilter; + /** `platformProposalsByRepositoryId` exist. */ + platformProposalsByRepositoryIdExist?: boolean; + /** Filter by the object’s `platformRepositoryEventsByRepositoryId` relation. */ + platformRepositoryEventsByRepositoryId?: PlatformRepositoryToManyPlatformRepositoryEventFilter; + /** `platformRepositoryEventsByRepositoryId` exist. */ + platformRepositoryEventsByRepositoryIdExist?: boolean; + /** Filter by the object’s `platformRepositoryRequiredChecksByRepositoryId` relation. */ + platformRepositoryRequiredChecksByRepositoryId?: PlatformRepositoryToManyPlatformRepositoryRequiredCheckFilter; + /** `platformRepositoryRequiredChecksByRepositoryId` exist. */ + platformRepositoryRequiredChecksByRepositoryIdExist?: boolean; + /** Filter by the object’s `platformRepositoryWorkflowsByRepositoryId` relation. */ + platformRepositoryWorkflowsByRepositoryId?: PlatformRepositoryToManyPlatformRepositoryWorkflowFilter; + /** `platformRepositoryWorkflowsByRepositoryId` exist. */ + platformRepositoryWorkflowsByRepositoryIdExist?: boolean; + /** Filter by the object’s `provider` field. */ + provider?: StringTrgmFilter; + /** Filter by the object’s `search` field. */ + search?: FullTextFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringTrgmFilter; + /** TRGM search on the `clone_url` column. */ + trgmCloneUrl?: TrgmSearchInput; + /** TRGM search on the `default_branch` column. */ + trgmDefaultBranch?: TrgmSearchInput; + /** TRGM search on the `description` column. */ + trgmDescription?: TrgmSearchInput; + /** TRGM search on the `external_id` column. */ + trgmExternalId?: TrgmSearchInput; + /** TRGM search on the `name` column. */ + trgmName?: TrgmSearchInput; + /** TRGM search on the `provider` column. */ + trgmProvider?: TrgmSearchInput; + /** TRGM search on the `slug` column. */ + trgmSlug?: TrgmSearchInput; + /** TRGM search on the `visibility` column. */ + trgmVisibility?: TrgmSearchInput; + /** TSV search on the `search` column. */ + tsvSearch?: string; + /** + * Composite unified search. Provide a search string and it will be dispatched to + * all text-compatible search algorithms (tsvector, BM25, pg_trgm) + * simultaneously. When the LLM plugin is active, pgvector also participates via + * auto-embedding. Rows matching ANY algorithm are returned. All matching score + * fields are populated. + */ + unifiedSearch?: string; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** VECTOR search on the `embedding` column. */ + vectorEmbedding?: VectorNearbyInput; + /** Filter by the object’s `visibility` field. */ + visibility?: StringTrgmFilter; +} +export interface PlatformRepositoryEventFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: PlatformRepositoryEventFilter[]; + /** Filter by the object’s `commitSha` field. */ + commitSha?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `deliveryId` field. */ + deliveryId?: StringFilter; + /** Filter by the object’s `eventType` field. */ + eventType?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Negates the expression. */ + not?: PlatformRepositoryEventFilter; + /** Checks for any expressions in this list. */ + or?: PlatformRepositoryEventFilter[]; + /** Filter by the object’s `payload` field. */ + payload?: JSONFilter; + /** Filter by the object’s `platformBuildsByEventId` relation. */ + platformBuildsByEventId?: PlatformRepositoryEventToManyPlatformBuildFilter; + /** `platformBuildsByEventId` exist. */ + platformBuildsByEventIdExist?: boolean; + /** Filter by the object’s `ref` field. */ + ref?: StringFilter; + /** Filter by the object’s `repository` relation. */ + repository?: PlatformRepositoryFilter; + /** Filter by the object’s `repositoryId` field. */ + repositoryId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} +export interface PlatformRepositoryRequiredCheckFilter { + /** Checks for all expressions in this list. */ + and?: PlatformRepositoryRequiredCheckFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformRepositoryRequiredCheckFilter; + /** Checks for any expressions in this list. */ + or?: PlatformRepositoryRequiredCheckFilter[]; + /** Filter by the object’s `repository` relation. */ + repository?: PlatformRepositoryFilter; + /** Filter by the object’s `repositoryId` field. */ + repositoryId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `workflow` relation. */ + workflow?: PlatformRepositoryWorkflowFilter; + /** Filter by the object’s `workflowId` field. */ + workflowId?: UUIDFilter; +} +export interface PlatformRepositoryWorkflowFilter { + /** Checks for all expressions in this list. */ + and?: PlatformRepositoryWorkflowFilter[]; + /** Filter by the object’s `cancelInProgress` field. */ + cancelInProgress?: BooleanFilter; + /** Filter by the object’s `concurrencyKey` field. */ + concurrencyKey?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `eventType` field. */ + eventType?: StringFilter; + /** Filter by the object’s `graph` relation. */ + graph?: FunctionGraphFilter; + /** A related `graph` exists. */ + graphExists?: boolean; + /** Filter by the object’s `graphId` field. */ + graphId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `inputs` field. */ + inputs?: JSONFilter; + /** Filter by the object’s `isEnabled` field. */ + isEnabled?: BooleanFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: PlatformRepositoryWorkflowFilter; + /** Checks for any expressions in this list. */ + or?: PlatformRepositoryWorkflowFilter[]; + /** Filter by the object’s `platformBuildsByWorkflowId` relation. */ + platformBuildsByWorkflowId?: PlatformRepositoryWorkflowToManyPlatformBuildFilter; + /** `platformBuildsByWorkflowId` exist. */ + platformBuildsByWorkflowIdExist?: boolean; + /** Filter by the object’s `platformRepositoryRequiredChecksByWorkflowId` relation. */ + platformRepositoryRequiredChecksByWorkflowId?: PlatformRepositoryWorkflowToManyPlatformRepositoryRequiredCheckFilter; + /** `platformRepositoryRequiredChecksByWorkflowId` exist. */ + platformRepositoryRequiredChecksByWorkflowIdExist?: boolean; + /** Filter by the object’s `refPattern` field. */ + refPattern?: StringFilter; + /** Filter by the object’s `repository` relation. */ + repository?: PlatformRepositoryFilter; + /** Filter by the object’s `repositoryId` field. */ + repositoryId?: UUIDFilter; + /** Filter by the object’s `requiredSecrets` field. */ + requiredSecrets?: StringListFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} +export interface PlatformResourceFilter { + /** Checks for all expressions in this list. */ + and?: PlatformResourceFilter[]; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Filter by the object’s `cpuLimitMillicores` field. */ + cpuLimitMillicores?: BigIntFilter; + /** Filter by the object’s `cpuRequestMillicores` field. */ + cpuRequestMillicores?: BigIntFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `errorCount` field. */ + errorCount?: IntFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `imageRef` field. */ + imageRef?: StringFilter; + /** Filter by the object’s `installation` relation. */ + installation?: PlatformResourceInstallationFilter; + /** A related `installation` exists. */ + installationExists?: boolean; + /** Filter by the object’s `installationId` field. */ + installationId?: UUIDFilter; + /** Filter by the object’s `integrations` field. */ + integrations?: StringListFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `lastHeartbeatAt` field. */ + lastHeartbeatAt?: DatetimeFilter; + /** Filter by the object’s `memoryLimitBytes` field. */ + memoryLimitBytes?: BigIntFilter; + /** Filter by the object’s `memoryRequestBytes` field. */ + memoryRequestBytes?: BigIntFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: PlatformNamespaceFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformResourceFilter; + /** Checks for any expressions in this list. */ + or?: PlatformResourceFilter[]; + /** Filter by the object’s `platformResourceStatusChecksByResourceId` relation. */ + platformResourceStatusChecksByResourceId?: PlatformResourceToManyPlatformResourceStatusCheckFilter; + /** `platformResourceStatusChecksByResourceId` exist. */ + platformResourceStatusChecksByResourceIdExist?: boolean; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; + /** Filter by the object’s `replicas` field. */ + replicas?: IntFilter; + /** Filter by the object’s `resourceDefinition` relation. */ + resourceDefinition?: PlatformResourceDefinitionFilter; + /** A related `resourceDefinition` exists. */ + resourceDefinitionExists?: boolean; + /** Filter by the object’s `resourceDefinitionId` field. */ + resourceDefinitionId?: UUIDFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `spec` field. */ + spec?: JSONFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `statusObserved` field. */ + statusObserved?: JSONFilter; + /** Filter by the object’s `storageClass` field. */ + storageClass?: StringFilter; + /** Filter by the object’s `storageSizeBytes` field. */ + storageSizeBytes?: BigIntFilter; + /** Filter by the object’s `storageTotalBytes` field. */ + storageTotalBytes?: BigIntFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} +export interface PlatformResourceDeclaredCapacityFilter { + /** Checks for all expressions in this list. */ + and?: PlatformResourceDeclaredCapacityFilter[]; + /** Filter by the object’s `cpuLimitMillicores` field. */ + cpuLimitMillicores?: BigIntFilter; + /** Filter by the object’s `cpuRequestMillicores` field. */ + cpuRequestMillicores?: BigIntFilter; + /** Filter by the object’s `installationId` field. */ + installationId?: UUIDFilter; + /** Filter by the object’s `isTransient` field. */ + isTransient?: BooleanFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `memoryLimitBytes` field. */ + memoryLimitBytes?: BigIntFilter; + /** Filter by the object’s `memoryRequestBytes` field. */ + memoryRequestBytes?: BigIntFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformResourceDeclaredCapacityFilter; + /** Checks for any expressions in this list. */ + or?: PlatformResourceDeclaredCapacityFilter[]; + /** Filter by the object’s `podCountMax` field. */ + podCountMax?: IntFilter; + /** Filter by the object’s `podCountMin` field. */ + podCountMin?: IntFilter; + /** Filter by the object’s `source` field. */ + source?: StringFilter; + /** Filter by the object’s `sourceId` field. */ + sourceId?: UUIDFilter; + /** Filter by the object’s `storageSizeBytes` field. */ + storageSizeBytes?: BigIntFilter; + /** Filter by the object’s `storageTotalBytes` field. */ + storageTotalBytes?: BigIntFilter; +} +export interface PlatformResourceDefinitionFilter { + /** Checks for all expressions in this list. */ + and?: PlatformResourceDefinitionFilter[]; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `defaultSpec` field. */ + defaultSpec?: JSONFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `integrations` field. */ + integrations?: StringListFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: PlatformNamespaceFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformResourceDefinitionFilter; + /** Checks for any expressions in this list. */ + or?: PlatformResourceDefinitionFilter[]; + /** Filter by the object’s `paramsSchema` field. */ + paramsSchema?: JSONFilter; + /** Filter by the object’s `platformResourcesByResourceDefinitionId` relation. */ + platformResourcesByResourceDefinitionId?: PlatformResourceDefinitionToManyPlatformResourceFilter; + /** `platformResourcesByResourceDefinitionId` exist. */ + platformResourcesByResourceDefinitionIdExist?: boolean; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `stepUpMinAge` field. */ + stepUpMinAge?: IntervalFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} +export interface PlatformResourceEventFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: PlatformResourceEventFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `eventType` field. */ + eventType?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `message` field. */ + message?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Negates the expression. */ + not?: PlatformResourceEventFilter; + /** Checks for any expressions in this list. */ + or?: PlatformResourceEventFilter[]; + /** Filter by the object’s `resourceId` field. */ + resourceId?: UUIDFilter; +} +export interface PlatformResourceInstallationFilter { + /** Checks for all expressions in this list. */ + and?: PlatformResourceInstallationFilter[]; + /** Filter by the object’s `commitId` field. */ + commitId?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: PlatformNamespaceFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformResourceInstallationFilter; + /** Checks for any expressions in this list. */ + or?: PlatformResourceInstallationFilter[]; + /** Filter by the object’s `params` field. */ + params?: JSONFilter; + /** Filter by the object’s `platformRegistriesByInstallationId` relation. */ + platformRegistriesByInstallationId?: PlatformResourceInstallationToManyPlatformRegistryFilter; + /** `platformRegistriesByInstallationId` exist. */ + platformRegistriesByInstallationIdExist?: boolean; + /** Filter by the object’s `platformResourcesByInstallationId` relation. */ + platformResourcesByInstallationId?: PlatformResourceInstallationToManyPlatformResourceFilter; + /** `platformResourcesByInstallationId` exist. */ + platformResourcesByInstallationIdExist?: boolean; + /** Filter by the object’s `revision` field. */ + revision?: IntFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `storeId` field. */ + storeId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} +export interface PlatformResourceObservedStorageFilter { + /** Checks for all expressions in this list. */ + and?: PlatformResourceObservedStorageFilter[]; + /** Filter by the object’s `capacity` field. */ + capacity?: StringFilter; + /** Filter by the object’s `capacityBytes` field. */ + capacityBytes?: BigIntFilter; + /** Filter by the object’s `claimName` field. */ + claimName?: StringFilter; + /** Filter by the object’s `declaredStorageClass` field. */ + declaredStorageClass?: StringFilter; + /** Filter by the object’s `declaredStorageSizeBytes` field. */ + declaredStorageSizeBytes?: BigIntFilter; + /** Filter by the object’s `declaredStorageTotalBytes` field. */ + declaredStorageTotalBytes?: BigIntFilter; + /** Filter by the object’s `installationId` field. */ + installationId?: UUIDFilter; + /** Filter by the object’s `isBound` field. */ + isBound?: BooleanFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformResourceObservedStorageFilter; + /** Checks for any expressions in this list. */ + or?: PlatformResourceObservedStorageFilter[]; + /** Filter by the object’s `phase` field. */ + phase?: StringFilter; + /** Filter by the object’s `requested` field. */ + requested?: StringFilter; + /** Filter by the object’s `requestedBytes` field. */ + requestedBytes?: BigIntFilter; + /** Filter by the object’s `resourceId` field. */ + resourceId?: UUIDFilter; + /** Filter by the object’s `resourceStatus` field. */ + resourceStatus?: StringFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `storageClass` field. */ + storageClass?: StringFilter; + /** Filter by the object’s `storageName` field. */ + storageName?: StringFilter; +} +export interface PlatformResourceStatusCheckFilter { + /** Checks for all expressions in this list. */ + and?: PlatformResourceStatusCheckFilter[]; + /** Filter by the object’s `completedAt` field. */ + completedAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformResourceStatusCheckFilter; + /** Checks for any expressions in this list. */ + or?: PlatformResourceStatusCheckFilter[]; + /** Filter by the object’s `requestedAt` field. */ + requestedAt?: DatetimeFilter; + /** Filter by the object’s `requestedBy` field. */ + requestedBy?: UUIDFilter; + /** Filter by the object’s `resource` relation. */ + resource?: PlatformResourceFilter; + /** Filter by the object’s `resourceId` field. */ + resourceId?: UUIDFilter; + /** Filter by the object’s `result` field. */ + result?: JSONFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; +} +export interface PlatformResourceUsageLogFilter { + /** Checks for all expressions in this list. */ + and?: PlatformResourceUsageLogFilter[]; + /** Filter by the object’s `cpuMillicores` field. */ + cpuMillicores?: BigIntFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `intervalSeconds` field. */ + intervalSeconds?: IntFilter; + /** Filter by the object’s `memoryBytes` field. */ + memoryBytes?: BigIntFilter; + /** Filter by the object’s `metrics` field. */ + metrics?: JSONFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformResourceUsageLogFilter; + /** Checks for any expressions in this list. */ + or?: PlatformResourceUsageLogFilter[]; + /** Filter by the object’s `resourceId` field. */ + resourceId?: UUIDFilter; + /** Filter by the object’s `sampledAt` field. */ + sampledAt?: DatetimeFilter; + /** Filter by the object’s `source` field. */ + source?: StringFilter; +} +export interface PlatformResourceUsageSummaryFilter { + /** Checks for all expressions in this list. */ + and?: PlatformResourceUsageSummaryFilter[]; + /** Filter by the object’s `date` field. */ + date?: DateFilter; + /** Filter by the object’s `gbSeconds` field. */ + gbSeconds?: BigFloatFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `maxCpuMillicores` field. */ + maxCpuMillicores?: BigIntFilter; + /** Filter by the object’s `maxMemoryBytes` field. */ + maxMemoryBytes?: BigIntFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformResourceUsageSummaryFilter; + /** Checks for any expressions in this list. */ + or?: PlatformResourceUsageSummaryFilter[]; + /** Filter by the object’s `resourceId` field. */ + resourceId?: UUIDFilter; + /** Filter by the object’s `runtimeSeconds` field. */ + runtimeSeconds?: BigIntFilter; + /** Filter by the object’s `sampleCount` field. */ + sampleCount?: IntFilter; +} +export interface PlatformResourceUtilizationFilter { + /** Checks for all expressions in this list. */ + and?: PlatformResourceUtilizationFilter[]; + /** Filter by the object’s `avgMemoryBytes` field. */ + avgMemoryBytes?: BigIntFilter; + /** Filter by the object’s `cpuLimitMillicores` field. */ + cpuLimitMillicores?: BigIntFilter; + /** Filter by the object’s `cpuPeakUtilization` field. */ + cpuPeakUtilization?: BigFloatFilter; + /** Filter by the object’s `cpuRequestHeadroomMillicores` field. */ + cpuRequestHeadroomMillicores?: BigIntFilter; + /** Filter by the object’s `cpuRequestMillicores` field. */ + cpuRequestMillicores?: BigIntFilter; + /** Filter by the object’s `date` field. */ + date?: DateFilter; + /** Filter by the object’s `gbSeconds` field. */ + gbSeconds?: BigFloatFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `maxCpuMillicores` field. */ + maxCpuMillicores?: BigIntFilter; + /** Filter by the object’s `maxMemoryBytes` field. */ + maxMemoryBytes?: BigIntFilter; + /** Filter by the object’s `memoryLimitBytes` field. */ + memoryLimitBytes?: BigIntFilter; + /** Filter by the object’s `memoryPeakUtilization` field. */ + memoryPeakUtilization?: BigFloatFilter; + /** Filter by the object’s `memoryRequestBytes` field. */ + memoryRequestBytes?: BigIntFilter; + /** Filter by the object’s `memoryRequestHeadroomBytes` field. */ + memoryRequestHeadroomBytes?: BigIntFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformResourceUtilizationFilter; + /** Checks for any expressions in this list. */ + or?: PlatformResourceUtilizationFilter[]; + /** Filter by the object’s `replicas` field. */ + replicas?: IntFilter; + /** Filter by the object’s `resourceId` field. */ + resourceId?: UUIDFilter; + /** Filter by the object’s `runtimeSeconds` field. */ + runtimeSeconds?: BigIntFilter; + /** Filter by the object’s `sampleCount` field. */ + sampleCount?: IntFilter; +} +export interface PlatformResourcesHealthFilter { + /** Checks for all expressions in this list. */ + and?: PlatformResourcesHealthFilter[]; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Filter by the object’s `cpuLimitMillicores` field. */ + cpuLimitMillicores?: BigIntFilter; + /** Filter by the object’s `cpuRequestMillicores` field. */ + cpuRequestMillicores?: BigIntFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `errorCount` field. */ + errorCount?: IntFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `imageRef` field. */ + imageRef?: StringFilter; + /** Filter by the object’s `installationId` field. */ + installationId?: UUIDFilter; + /** Filter by the object’s `integrations` field. */ + integrations?: StringListFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `lastHeartbeatAt` field. */ + lastHeartbeatAt?: DatetimeFilter; + /** Filter by the object’s `memoryLimitBytes` field. */ + memoryLimitBytes?: BigIntFilter; + /** Filter by the object’s `memoryRequestBytes` field. */ + memoryRequestBytes?: BigIntFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformResourcesHealthFilter; + /** Checks for any expressions in this list. */ + or?: PlatformResourcesHealthFilter[]; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; + /** Filter by the object’s `replicas` field. */ + replicas?: IntFilter; + /** Filter by the object’s `resourceDefinitionId` field. */ + resourceDefinitionId?: UUIDFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `spec` field. */ + spec?: JSONFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `statusDetail` field. */ + statusDetail?: StringFilter; + /** Filter by the object’s `statusObserved` field. */ + statusObserved?: JSONFilter; + /** Filter by the object’s `storageClass` field. */ + storageClass?: StringFilter; + /** Filter by the object’s `storageSizeBytes` field. */ + storageSizeBytes?: BigIntFilter; + /** Filter by the object’s `storageTotalBytes` field. */ + storageTotalBytes?: BigIntFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} +export interface PlatformResourcesRequirementsStateFilter { + /** Checks for all expressions in this list. */ + and?: PlatformResourcesRequirementsStateFilter[]; + /** Filter by the object’s `configHash` field. */ + configHash?: StringFilter; + /** Filter by the object’s `configObjectName` field. */ + configObjectName?: StringFilter; + /** Negates the expression. */ + not?: PlatformResourcesRequirementsStateFilter; + /** Checks for any expressions in this list. */ + or?: PlatformResourcesRequirementsStateFilter[]; + /** Filter by the object’s `requirementsHash` field. */ + requirementsHash?: StringFilter; + /** Filter by the object’s `resourceId` field. */ + resourceId?: UUIDFilter; + /** Filter by the object’s `secretsHash` field. */ + secretsHash?: StringFilter; + /** Filter by the object’s `secretsObjectName` field. */ + secretsObjectName?: StringFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; +} +export interface PlatformResourcesResolvedRequirementFilter { + /** Checks for all expressions in this list. */ + and?: PlatformResourcesResolvedRequirementFilter[]; + /** Filter by the object’s `atomId` field. */ + atomId?: UUIDFilter; + /** Filter by the object’s `configObjectName` field. */ + configObjectName?: StringFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformResourcesResolvedRequirementFilter; + /** Checks for any expressions in this list. */ + or?: PlatformResourcesResolvedRequirementFilter[]; + /** Filter by the object’s `present` field. */ + present?: BooleanFilter; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; + /** Filter by the object’s `required` field. */ + required?: BooleanFilter; + /** Filter by the object’s `requirementKind` field. */ + requirementKind?: StringFilter; + /** Filter by the object’s `resourceId` field. */ + resourceId?: UUIDFilter; + /** Filter by the object’s `secretsObjectName` field. */ + secretsObjectName?: StringFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; +} +export interface PlatformWebhookEndpointFilter { + /** Filter by the object’s `active` field. */ + active?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: PlatformWebhookEndpointFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `functionDefinition` relation. */ + functionDefinition?: PlatformFunctionDefinitionFilter; + /** Filter by the object’s `functionDefinitionId` field. */ + functionDefinitionId?: UUIDFilter; + /** Filter by the object’s `host` field. */ + host?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: PlatformNamespaceFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformWebhookEndpointFilter; + /** Checks for any expressions in this list. */ + or?: PlatformWebhookEndpointFilter[]; + /** Filter by the object’s `path` field. */ + path?: StringFilter; + /** Filter by the object’s `platformWebhookEventsByEndpointId` relation. */ + platformWebhookEventsByEndpointId?: PlatformWebhookEndpointToManyPlatformWebhookEventFilter; + /** `platformWebhookEventsByEndpointId` exist. */ + platformWebhookEventsByEndpointIdExist?: boolean; + /** Filter by the object’s `provider` field. */ + provider?: StringFilter; + /** Filter by the object’s `replayWindowSeconds` field. */ + replayWindowSeconds?: IntFilter; + /** Filter by the object’s `signingSecretName` field. */ + signingSecretName?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} +export interface PlatformWebhookEventFilter { + /** Checks for all expressions in this list. */ + and?: PlatformWebhookEventFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `endpoint` relation. */ + endpoint?: PlatformWebhookEndpointFilter; + /** Filter by the object’s `endpointId` field. */ + endpointId?: UUIDFilter; + /** Filter by the object’s `error` field. */ + error?: StringFilter; + /** Filter by the object’s `externalEventId` field. */ + externalEventId?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `invocationCreatedAt` field. */ + invocationCreatedAt?: DatetimeFilter; + /** Filter by the object’s `invocationId` field. */ + invocationId?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformWebhookEventFilter; + /** Checks for any expressions in this list. */ + or?: PlatformWebhookEventFilter[]; + /** Filter by the object’s `payload` field. */ + payload?: JSONFilter; + /** Filter by the object’s `provider` field. */ + provider?: StringFilter; + /** Filter by the object’s `providerTimestamp` field. */ + providerTimestamp?: DatetimeFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} +export interface ProposalCommentFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: ProposalCommentFilter[]; + /** Filter by the object’s `attachments` field. */ + attachments?: ConstructiveInternalTypeUploadListFilter; + /** Filter by the object’s `body` field. */ + body?: StringTrgmFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `embedding` field. */ + embedding?: VectorFilter; + /** Filter by the object’s `embeddingUpdatedAt` field. */ + embeddingUpdatedAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `line` field. */ + line?: IntFilter; + /** Negates the expression. */ + not?: ProposalCommentFilter; + /** Checks for any expressions in this list. */ + or?: ProposalCommentFilter[]; + /** Filter by the object’s `outdatedAt` field. */ + outdatedAt?: DatetimeFilter; + /** Filter by the object’s `path` field. */ + path?: StringTrgmFilter; + /** Filter by the object’s `proposal` relation. */ + proposal?: ProposalFilter; + /** Filter by the object’s `proposalId` field. */ + proposalId?: UUIDFilter; + /** Filter by the object’s `proposalReactionsByCommentId` relation. */ + proposalReactionsByCommentId?: ProposalCommentToManyProposalReactionFilter; + /** `proposalReactionsByCommentId` exist. */ + proposalReactionsByCommentIdExist?: boolean; + /** Filter by the object’s `resolvedAt` field. */ + resolvedAt?: DatetimeFilter; + /** Filter by the object’s `search` field. */ + search?: FullTextFilter; + /** TRGM search on the `body` column. */ + trgmBody?: TrgmSearchInput; + /** TRGM search on the `path` column. */ + trgmPath?: TrgmSearchInput; + /** TSV search on the `search` column. */ + tsvSearch?: string; + /** + * Composite unified search. Provide a search string and it will be dispatched to + * all text-compatible search algorithms (tsvector, BM25, pg_trgm) + * simultaneously. When the LLM plugin is active, pgvector also participates via + * auto-embedding. Rows matching ANY algorithm are returned. All matching score + * fields are populated. + */ + unifiedSearch?: string; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** VECTOR search on the `embedding` column. */ + vectorEmbedding?: VectorNearbyInput; +} +export interface ProposalFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: ProposalFilter[]; + /** Filter by the object’s `body` field. */ + body?: StringTrgmFilter; + /** Filter by the object’s `builds` relation. */ + builds?: ProposalToManyBuildFilter; + /** `builds` exist. */ + buildsExist?: boolean; + /** Filter by the object’s `childProposals` relation. */ + childProposals?: ProposalToManyProposalFilter; + /** `childProposals` exist. */ + childProposalsExist?: boolean; + /** Filter by the object’s `closedReason` field. */ + closedReason?: StringTrgmFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `decidedAt` field. */ + decidedAt?: DatetimeFilter; + /** Filter by the object’s `dueAt` field. */ + dueAt?: DatetimeFilter; + /** Filter by the object’s `embedding` field. */ + embedding?: VectorFilter; + /** Filter by the object’s `embeddingUpdatedAt` field. */ + embeddingUpdatedAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringTrgmFilter; + /** Filter by the object’s `labels` field. */ + labels?: StringListFilter; + /** Filter by the object’s `mergeCommit` field. */ + mergeCommit?: StringTrgmFilter; + /** Filter by the object’s `mergeMethod` field. */ + mergeMethod?: StringTrgmFilter; + /** Filter by the object’s `mergeRequestedAt` field. */ + mergeRequestedAt?: DatetimeFilter; + /** Filter by the object’s `mergedAt` field. */ + mergedAt?: DatetimeFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Negates the expression. */ + not?: ProposalFilter; + /** Checks for any expressions in this list. */ + or?: ProposalFilter[]; + /** Filter by the object’s `parent` relation. */ + parent?: ProposalFilter; + /** A related `parent` exists. */ + parentExists?: boolean; + /** Filter by the object’s `parentId` field. */ + parentId?: UUIDFilter; + /** Filter by the object’s `priority` field. */ + priority?: BigFloatFilter; + /** Filter by the object’s `proposalComments` relation. */ + proposalComments?: ProposalToManyProposalCommentFilter; + /** `proposalComments` exist. */ + proposalCommentsExist?: boolean; + /** Filter by the object’s `proposalFileViews` relation. */ + proposalFileViews?: ProposalToManyProposalFileViewFilter; + /** `proposalFileViews` exist. */ + proposalFileViewsExist?: boolean; + /** Filter by the object’s `proposalReactions` relation. */ + proposalReactions?: ProposalToManyProposalReactionFilter; + /** `proposalReactions` exist. */ + proposalReactionsExist?: boolean; + /** Filter by the object’s `proposalReviews` relation. */ + proposalReviews?: ProposalToManyProposalReviewFilter; + /** `proposalReviews` exist. */ + proposalReviewsExist?: boolean; + /** Filter by the object’s `proposalsChunksByProposalsId` relation. */ + proposalsChunksByProposalsId?: ProposalToManyProposalsChunkFilter; + /** `proposalsChunksByProposalsId` exist. */ + proposalsChunksByProposalsIdExist?: boolean; + /** Filter by the object’s `repository` relation. */ + repository?: RepositoryFilter; + /** Filter by the object’s `repositoryId` field. */ + repositoryId?: UUIDFilter; + /** Filter by the object’s `resolution` field. */ + resolution?: StringTrgmFilter; + /** Filter by the object’s `search` field. */ + search?: FullTextFilter; + /** Filter by the object’s `sourceRef` field. */ + sourceRef?: StringTrgmFilter; + /** Filter by the object’s `status` field. */ + status?: StringTrgmFilter; + /** Filter by the object’s `targetRef` field. */ + targetRef?: StringTrgmFilter; + /** Filter by the object’s `title` field. */ + title?: StringTrgmFilter; + /** TRGM search on the `body` column. */ + trgmBody?: TrgmSearchInput; + /** TRGM search on the `closed_reason` column. */ + trgmClosedReason?: TrgmSearchInput; + /** TRGM search on the `kind` column. */ + trgmKind?: TrgmSearchInput; + /** TRGM search on the `merge_commit` column. */ + trgmMergeCommit?: TrgmSearchInput; + /** TRGM search on the `merge_method` column. */ + trgmMergeMethod?: TrgmSearchInput; + /** TRGM search on the `resolution` column. */ + trgmResolution?: TrgmSearchInput; + /** TRGM search on the `source_ref` column. */ + trgmSourceRef?: TrgmSearchInput; + /** TRGM search on the `status` column. */ + trgmStatus?: TrgmSearchInput; + /** TRGM search on the `target_ref` column. */ + trgmTargetRef?: TrgmSearchInput; + /** TRGM search on the `title` column. */ + trgmTitle?: TrgmSearchInput; + /** TSV search on the `search` column. */ + tsvSearch?: string; + /** + * Composite unified search. Provide a search string and it will be dispatched to + * all text-compatible search algorithms (tsvector, BM25, pg_trgm) + * simultaneously. When the LLM plugin is active, pgvector also participates via + * auto-embedding. Rows matching ANY algorithm are returned. All matching score + * fields are populated. + */ + unifiedSearch?: string; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** VECTOR search on the `embedding` column. */ + vectorEmbedding?: VectorNearbyInput; +} +export interface ProposalFileViewFilter { + /** Checks for all expressions in this list. */ + and?: ProposalFileViewFilter[]; + /** Filter by the object’s `blobSha` field. */ + blobSha?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: ProposalFileViewFilter; + /** Checks for any expressions in this list. */ + or?: ProposalFileViewFilter[]; + /** Filter by the object’s `path` field. */ + path?: StringFilter; + /** Filter by the object’s `proposal` relation. */ + proposal?: ProposalFilter; + /** Filter by the object’s `proposalId` field. */ + proposalId?: UUIDFilter; + /** Filter by the object’s `reviewerId` field. */ + reviewerId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** Filter by the object’s `viewedAt` field. */ + viewedAt?: DatetimeFilter; +} +export interface ProposalReactionFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: ProposalReactionFilter[]; + /** Filter by the object’s `comment` relation. */ + comment?: ProposalCommentFilter; + /** A related `comment` exists. */ + commentExists?: boolean; + /** Filter by the object’s `commentId` field. */ + commentId?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `emoji` field. */ + emoji?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: ProposalReactionFilter; + /** Checks for any expressions in this list. */ + or?: ProposalReactionFilter[]; + /** Filter by the object’s `proposal` relation. */ + proposal?: ProposalFilter; + /** Filter by the object’s `proposalId` field. */ + proposalId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} +export interface ProposalReviewFilter { + /** Checks for all expressions in this list. */ + and?: ProposalReviewFilter[]; + /** Filter by the object’s `body` field. */ + body?: StringTrgmFilter; + /** Filter by the object’s `commitSha` field. */ + commitSha?: StringTrgmFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: ProposalReviewFilter; + /** Checks for any expressions in this list. */ + or?: ProposalReviewFilter[]; + /** Filter by the object’s `proposal` relation. */ + proposal?: ProposalFilter; + /** Filter by the object’s `proposalId` field. */ + proposalId?: UUIDFilter; + /** Filter by the object’s `reviewerId` field. */ + reviewerId?: UUIDFilter; + /** Filter by the object’s `search` field. */ + search?: FullTextFilter; + /** Filter by the object’s `submittedAt` field. */ + submittedAt?: DatetimeFilter; + /** TRGM search on the `body` column. */ + trgmBody?: TrgmSearchInput; + /** TRGM search on the `commit_sha` column. */ + trgmCommitSha?: TrgmSearchInput; + /** TRGM search on the `verdict` column. */ + trgmVerdict?: TrgmSearchInput; + /** TSV search on the `search` column. */ + tsvSearch?: string; + /** + * Composite unified search. Provide a search string and it will be dispatched to + * all text-compatible search algorithms (tsvector, BM25, pg_trgm) + * simultaneously. When the LLM plugin is active, pgvector also participates via + * auto-embedding. Rows matching ANY algorithm are returned. All matching score + * fields are populated. + */ + unifiedSearch?: string; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** Filter by the object’s `verdict` field. */ + verdict?: StringTrgmFilter; +} +export interface ProposalsChunkFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: ProposalsChunkFilter[]; + /** Filter by the object’s `body` field. */ + body?: StringFilter; + /** Filter by the object’s `chunkIndex` field. */ + chunkIndex?: IntFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `embedding` field. */ + embedding?: VectorFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Negates the expression. */ + not?: ProposalsChunkFilter; + /** Checks for any expressions in this list. */ + or?: ProposalsChunkFilter[]; + /** Filter by the object’s `proposals` relation. */ + proposals?: ProposalFilter; + /** Filter by the object’s `proposalsId` field. */ + proposalsId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** VECTOR search on the `embedding` column. */ + vectorEmbedding?: VectorNearbyInput; +} +export interface RegistryBindingFilter { + /** Checks for all expressions in this list. */ + and?: RegistryBindingFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: RegistryBindingFilter; + /** Filter by the object’s `observedCredentialVersion` field. */ + observedCredentialVersion?: StringFilter; + /** Checks for any expressions in this list. */ + or?: RegistryBindingFilter[]; + /** Filter by the object’s `pullSecretName` field. */ + pullSecretName?: StringFilter; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; + /** Filter by the object’s `registry` relation. */ + registry?: RegistryFilter; + /** Filter by the object’s `registryHost` field. */ + registryHost?: StringFilter; + /** Filter by the object’s `registryId` field. */ + registryId?: UUIDFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} +export interface RegistryFilter { + /** Checks for all expressions in this list. */ + and?: RegistryFilter[]; + /** Filter by the object’s `authMode` field. */ + authMode?: StringFilter; + /** Filter by the object’s `basePath` field. */ + basePath?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `credentialSecretName` field. */ + credentialSecretName?: StringFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `host` field. */ + host?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `installation` relation. */ + installation?: ResourceInstallationFilter; + /** A related `installation` exists. */ + installationExists?: boolean; + /** Filter by the object’s `installationId` field. */ + installationId?: UUIDFilter; + /** Filter by the object’s `isPublished` field. */ + isPublished?: BooleanFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: RegistryFilter; + /** Checks for any expressions in this list. */ + or?: RegistryFilter[]; + /** Filter by the object’s `platformOnly` field. */ + platformOnly?: BooleanFilter; + /** Filter by the object’s `registryBindings` relation. */ + registryBindings?: RegistryToManyRegistryBindingFilter; + /** `registryBindings` exist. */ + registryBindingsExist?: boolean; + /** Filter by the object’s `registryGrants` relation. */ + registryGrants?: RegistryToManyRegistryGrantFilter; + /** `registryGrants` exist. */ + registryGrantsExist?: boolean; + /** Filter by the object’s `role` field. */ + role?: StringFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} +export interface RegistryGrantFilter { + /** Filter by the object’s `actions` field. */ + actions?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: RegistryGrantFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; + /** Filter by the object’s `grantedBy` field. */ + grantedBy?: UUIDFilter; + /** Filter by the object’s `granteeKey` field. */ + granteeKey?: UUIDFilter; + /** Filter by the object’s `granteeScope` field. */ + granteeScope?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: RegistryGrantFilter; + /** Checks for any expressions in this list. */ + or?: RegistryGrantFilter[]; + /** Filter by the object’s `registry` relation. */ + registry?: RegistryFilter; + /** Filter by the object’s `registryId` field. */ + registryId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} +export interface RepositoryFilter { + /** Checks for all expressions in this list. */ + and?: RepositoryFilter[]; + /** Filter by the object’s `builds` relation. */ + builds?: RepositoryToManyBuildFilter; + /** `builds` exist. */ + buildsExist?: boolean; + /** Filter by the object’s `cloneUrl` field. */ + cloneUrl?: StringTrgmFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `defaultBranch` field. */ + defaultBranch?: StringTrgmFilter; + /** Filter by the object’s `description` field. */ + description?: StringTrgmFilter; + /** Filter by the object’s `embedding` field. */ + embedding?: VectorFilter; + /** Filter by the object’s `embeddingUpdatedAt` field. */ + embeddingUpdatedAt?: DatetimeFilter; + /** Filter by the object’s `externalId` field. */ + externalId?: StringTrgmFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isArchived` field. */ + isArchived?: BooleanFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `name` field. */ + name?: StringTrgmFilter; + /** Negates the expression. */ + not?: RepositoryFilter; + /** Checks for any expressions in this list. */ + or?: RepositoryFilter[]; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `proposals` relation. */ + proposals?: RepositoryToManyProposalFilter; + /** `proposals` exist. */ + proposalsExist?: boolean; + /** Filter by the object’s `provider` field. */ + provider?: StringTrgmFilter; + /** Filter by the object’s `repositoryEvents` relation. */ + repositoryEvents?: RepositoryToManyRepositoryEventFilter; + /** `repositoryEvents` exist. */ + repositoryEventsExist?: boolean; + /** Filter by the object’s `repositoryRequiredChecks` relation. */ + repositoryRequiredChecks?: RepositoryToManyRepositoryRequiredCheckFilter; + /** `repositoryRequiredChecks` exist. */ + repositoryRequiredChecksExist?: boolean; + /** Filter by the object’s `repositoryWorkflows` relation. */ + repositoryWorkflows?: RepositoryToManyRepositoryWorkflowFilter; + /** `repositoryWorkflows` exist. */ + repositoryWorkflowsExist?: boolean; + /** Filter by the object’s `search` field. */ + search?: FullTextFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringTrgmFilter; + /** TRGM search on the `clone_url` column. */ + trgmCloneUrl?: TrgmSearchInput; + /** TRGM search on the `default_branch` column. */ + trgmDefaultBranch?: TrgmSearchInput; + /** TRGM search on the `description` column. */ + trgmDescription?: TrgmSearchInput; + /** TRGM search on the `external_id` column. */ + trgmExternalId?: TrgmSearchInput; + /** TRGM search on the `name` column. */ + trgmName?: TrgmSearchInput; + /** TRGM search on the `provider` column. */ + trgmProvider?: TrgmSearchInput; + /** TRGM search on the `slug` column. */ + trgmSlug?: TrgmSearchInput; + /** TRGM search on the `visibility` column. */ + trgmVisibility?: TrgmSearchInput; + /** TSV search on the `search` column. */ + tsvSearch?: string; + /** + * Composite unified search. Provide a search string and it will be dispatched to + * all text-compatible search algorithms (tsvector, BM25, pg_trgm) + * simultaneously. When the LLM plugin is active, pgvector also participates via + * auto-embedding. Rows matching ANY algorithm are returned. All matching score + * fields are populated. + */ + unifiedSearch?: string; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** VECTOR search on the `embedding` column. */ + vectorEmbedding?: VectorNearbyInput; + /** Filter by the object’s `visibility` field. */ + visibility?: StringTrgmFilter; +} +export interface RepositoryEventFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: RepositoryEventFilter[]; + /** Filter by the object’s `buildsByEventId` relation. */ + buildsByEventId?: RepositoryEventToManyBuildFilter; + /** `buildsByEventId` exist. */ + buildsByEventIdExist?: boolean; + /** Filter by the object’s `commitSha` field. */ + commitSha?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `deliveryId` field. */ + deliveryId?: StringFilter; + /** Filter by the object’s `eventType` field. */ + eventType?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Negates the expression. */ + not?: RepositoryEventFilter; + /** Checks for any expressions in this list. */ + or?: RepositoryEventFilter[]; + /** Filter by the object’s `payload` field. */ + payload?: JSONFilter; + /** Filter by the object’s `ref` field. */ + ref?: StringFilter; + /** Filter by the object’s `repository` relation. */ + repository?: RepositoryFilter; + /** Filter by the object’s `repositoryId` field. */ + repositoryId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} +export interface RepositoryRequiredCheckFilter { + /** Checks for all expressions in this list. */ + and?: RepositoryRequiredCheckFilter[]; + /** 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?: RepositoryRequiredCheckFilter; + /** Checks for any expressions in this list. */ + or?: RepositoryRequiredCheckFilter[]; + /** Filter by the object’s `repository` relation. */ + repository?: RepositoryFilter; + /** Filter by the object’s `repositoryId` field. */ + repositoryId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `workflow` relation. */ + workflow?: RepositoryWorkflowFilter; + /** Filter by the object’s `workflowId` field. */ + workflowId?: UUIDFilter; +} +export interface RepositoryWorkflowFilter { + /** Checks for all expressions in this list. */ + and?: RepositoryWorkflowFilter[]; + /** Filter by the object’s `buildsByWorkflowId` relation. */ + buildsByWorkflowId?: RepositoryWorkflowToManyBuildFilter; + /** `buildsByWorkflowId` exist. */ + buildsByWorkflowIdExist?: boolean; + /** Filter by the object’s `cancelInProgress` field. */ + cancelInProgress?: BooleanFilter; + /** Filter by the object’s `concurrencyKey` field. */ + concurrencyKey?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `eventType` field. */ + eventType?: StringFilter; + /** Filter by the object’s `graph` relation. */ + graph?: DatabaseFunctionGraphFilter; + /** A related `graph` exists. */ + graphExists?: boolean; + /** Filter by the object’s `graphId` field. */ + graphId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `inputs` field. */ + inputs?: JSONFilter; + /** Filter by the object’s `isEnabled` field. */ + isEnabled?: BooleanFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: RepositoryWorkflowFilter; + /** Checks for any expressions in this list. */ + or?: RepositoryWorkflowFilter[]; + /** Filter by the object’s `refPattern` field. */ + refPattern?: StringFilter; + /** Filter by the object’s `repository` relation. */ + repository?: RepositoryFilter; + /** Filter by the object’s `repositoryId` field. */ + repositoryId?: UUIDFilter; + /** Filter by the object’s `repositoryRequiredChecksByWorkflowId` relation. */ + repositoryRequiredChecksByWorkflowId?: RepositoryWorkflowToManyRepositoryRequiredCheckFilter; + /** `repositoryRequiredChecksByWorkflowId` exist. */ + repositoryRequiredChecksByWorkflowIdExist?: boolean; + /** Filter by the object’s `requiredSecrets` field. */ + requiredSecrets?: StringListFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} +export interface ResourceFilter { + /** Checks for all expressions in this list. */ + and?: ResourceFilter[]; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Filter by the object’s `cpuLimitMillicores` field. */ + cpuLimitMillicores?: BigIntFilter; + /** Filter by the object’s `cpuRequestMillicores` field. */ + cpuRequestMillicores?: BigIntFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `errorCount` field. */ + errorCount?: IntFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `imageRef` field. */ + imageRef?: StringFilter; + /** Filter by the object’s `installation` relation. */ + installation?: ResourceInstallationFilter; + /** A related `installation` exists. */ + installationExists?: boolean; + /** Filter by the object’s `installationId` field. */ + installationId?: UUIDFilter; + /** Filter by the object’s `integrations` field. */ + integrations?: StringListFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `lastHeartbeatAt` field. */ + lastHeartbeatAt?: DatetimeFilter; + /** Filter by the object’s `memoryLimitBytes` field. */ + memoryLimitBytes?: BigIntFilter; + /** Filter by the object’s `memoryRequestBytes` field. */ + memoryRequestBytes?: BigIntFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: ResourceFilter; + /** Checks for any expressions in this list. */ + or?: ResourceFilter[]; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; + /** Filter by the object’s `replicas` field. */ + replicas?: IntFilter; + /** Filter by the object’s `resourceDefinition` relation. */ + resourceDefinition?: ResourceDefinitionFilter; + /** A related `resourceDefinition` exists. */ + resourceDefinitionExists?: boolean; + /** Filter by the object’s `resourceDefinitionId` field. */ + resourceDefinitionId?: UUIDFilter; + /** Filter by the object’s `resourceStatusChecks` relation. */ + resourceStatusChecks?: ResourceToManyResourceStatusCheckFilter; + /** `resourceStatusChecks` exist. */ + resourceStatusChecksExist?: boolean; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `spec` field. */ + spec?: JSONFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `statusObserved` field. */ + statusObserved?: JSONFilter; + /** Filter by the object’s `storageClass` field. */ + storageClass?: StringFilter; + /** Filter by the object’s `storageSizeBytes` field. */ + storageSizeBytes?: BigIntFilter; + /** Filter by the object’s `storageTotalBytes` field. */ + storageTotalBytes?: BigIntFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} +export interface ResourceDeclaredCapacityFilter { + /** Checks for all expressions in this list. */ + and?: ResourceDeclaredCapacityFilter[]; + /** Filter by the object’s `cpuLimitMillicores` field. */ + cpuLimitMillicores?: BigIntFilter; + /** Filter by the object’s `cpuRequestMillicores` field. */ + cpuRequestMillicores?: BigIntFilter; + /** Filter by the object’s `installationId` field. */ + installationId?: UUIDFilter; + /** Filter by the object’s `isTransient` field. */ + isTransient?: BooleanFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `memoryLimitBytes` field. */ + memoryLimitBytes?: BigIntFilter; + /** Filter by the object’s `memoryRequestBytes` field. */ + memoryRequestBytes?: BigIntFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: ResourceDeclaredCapacityFilter; + /** Checks for any expressions in this list. */ + or?: ResourceDeclaredCapacityFilter[]; + /** Filter by the object’s `podCountMax` field. */ + podCountMax?: IntFilter; + /** Filter by the object’s `podCountMin` field. */ + podCountMin?: IntFilter; + /** Filter by the object’s `source` field. */ + source?: StringFilter; + /** Filter by the object’s `sourceId` field. */ + sourceId?: UUIDFilter; + /** Filter by the object’s `storageSizeBytes` field. */ + storageSizeBytes?: BigIntFilter; + /** Filter by the object’s `storageTotalBytes` field. */ + storageTotalBytes?: BigIntFilter; +} +export interface ResourceDefinitionFilter { + /** Checks for all expressions in this list. */ + and?: ResourceDefinitionFilter[]; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `defaultSpec` field. */ + defaultSpec?: JSONFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `integrations` field. */ + integrations?: StringListFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: ResourceDefinitionFilter; + /** Checks for any expressions in this list. */ + or?: ResourceDefinitionFilter[]; + /** Filter by the object’s `paramsSchema` field. */ + paramsSchema?: JSONFilter; + /** Filter by the object’s `resources` relation. */ + resources?: ResourceDefinitionToManyResourceFilter; + /** `resources` exist. */ + resourcesExist?: boolean; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `stepUpMinAge` field. */ + stepUpMinAge?: IntervalFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} +export interface ResourceEventFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: ResourceEventFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `eventType` field. */ + eventType?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `message` field. */ + message?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Negates the expression. */ + not?: ResourceEventFilter; + /** Checks for any expressions in this list. */ + or?: ResourceEventFilter[]; + /** Filter by the object’s `resourceId` field. */ + resourceId?: UUIDFilter; +} +export interface ResourceInstallationFilter { + /** Checks for all expressions in this list. */ + and?: ResourceInstallationFilter[]; + /** Filter by the object’s `commitId` field. */ + commitId?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: ResourceInstallationFilter; + /** Checks for any expressions in this list. */ + or?: ResourceInstallationFilter[]; + /** Filter by the object’s `params` field. */ + params?: JSONFilter; + /** Filter by the object’s `registriesByInstallationId` relation. */ + registriesByInstallationId?: ResourceInstallationToManyRegistryFilter; + /** `registriesByInstallationId` exist. */ + registriesByInstallationIdExist?: boolean; + /** Filter by the object’s `resourcesByInstallationId` relation. */ + resourcesByInstallationId?: ResourceInstallationToManyResourceFilter; + /** `resourcesByInstallationId` exist. */ + resourcesByInstallationIdExist?: boolean; + /** Filter by the object’s `revision` field. */ + revision?: IntFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `storeId` field. */ + storeId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} +export interface ResourceObservedStorageFilter { + /** Checks for all expressions in this list. */ + and?: ResourceObservedStorageFilter[]; + /** Filter by the object’s `capacity` field. */ + capacity?: StringFilter; + /** Filter by the object’s `capacityBytes` field. */ + capacityBytes?: BigIntFilter; + /** Filter by the object’s `claimName` field. */ + claimName?: StringFilter; + /** Filter by the object’s `declaredStorageClass` field. */ + declaredStorageClass?: StringFilter; + /** Filter by the object’s `declaredStorageSizeBytes` field. */ + declaredStorageSizeBytes?: BigIntFilter; + /** Filter by the object’s `declaredStorageTotalBytes` field. */ + declaredStorageTotalBytes?: BigIntFilter; + /** Filter by the object’s `installationId` field. */ + installationId?: UUIDFilter; + /** Filter by the object’s `isBound` field. */ + isBound?: BooleanFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: ResourceObservedStorageFilter; + /** Checks for any expressions in this list. */ + or?: ResourceObservedStorageFilter[]; + /** Filter by the object’s `phase` field. */ + phase?: StringFilter; + /** Filter by the object’s `requested` field. */ + requested?: StringFilter; + /** Filter by the object’s `requestedBytes` field. */ + requestedBytes?: BigIntFilter; + /** Filter by the object’s `resourceId` field. */ + resourceId?: UUIDFilter; + /** Filter by the object’s `resourceStatus` field. */ + resourceStatus?: StringFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `storageClass` field. */ + storageClass?: StringFilter; + /** Filter by the object’s `storageName` field. */ + storageName?: StringFilter; +} +export interface ResourceStatusCheckFilter { + /** Checks for all expressions in this list. */ + and?: ResourceStatusCheckFilter[]; + /** Filter by the object’s `completedAt` field. */ + completedAt?: DatetimeFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: ResourceStatusCheckFilter; + /** Checks for any expressions in this list. */ + or?: ResourceStatusCheckFilter[]; + /** Filter by the object’s `requestedAt` field. */ + requestedAt?: DatetimeFilter; + /** Filter by the object’s `requestedBy` field. */ + requestedBy?: UUIDFilter; + /** Filter by the object’s `resource` relation. */ + resource?: ResourceFilter; + /** Filter by the object’s `resourceId` field. */ + resourceId?: UUIDFilter; + /** Filter by the object’s `result` field. */ + result?: JSONFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; +} +export interface ResourceUsageLogFilter { + /** Checks for all expressions in this list. */ + and?: ResourceUsageLogFilter[]; + /** Filter by the object’s `cpuMillicores` field. */ + cpuMillicores?: BigIntFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `intervalSeconds` field. */ + intervalSeconds?: IntFilter; + /** Filter by the object’s `memoryBytes` field. */ + memoryBytes?: BigIntFilter; + /** Filter by the object’s `metrics` field. */ + metrics?: JSONFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: ResourceUsageLogFilter; + /** Checks for any expressions in this list. */ + or?: ResourceUsageLogFilter[]; + /** Filter by the object’s `resourceId` field. */ + resourceId?: UUIDFilter; + /** Filter by the object’s `sampledAt` field. */ + sampledAt?: DatetimeFilter; + /** Filter by the object’s `source` field. */ + source?: StringFilter; +} +export interface ResourceUsageSummaryFilter { + /** Checks for all expressions in this list. */ + and?: ResourceUsageSummaryFilter[]; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `date` field. */ + date?: DateFilter; + /** Filter by the object’s `gbSeconds` field. */ + gbSeconds?: BigFloatFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `maxCpuMillicores` field. */ + maxCpuMillicores?: BigIntFilter; + /** Filter by the object’s `maxMemoryBytes` field. */ + maxMemoryBytes?: BigIntFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: ResourceUsageSummaryFilter; + /** Checks for any expressions in this list. */ + or?: ResourceUsageSummaryFilter[]; + /** Filter by the object’s `resourceId` field. */ + resourceId?: UUIDFilter; + /** Filter by the object’s `runtimeSeconds` field. */ + runtimeSeconds?: BigIntFilter; + /** Filter by the object’s `sampleCount` field. */ + sampleCount?: IntFilter; +} +export interface ResourceUtilizationFilter { + /** Checks for all expressions in this list. */ + and?: ResourceUtilizationFilter[]; + /** Filter by the object’s `avgMemoryBytes` field. */ + avgMemoryBytes?: BigIntFilter; + /** Filter by the object’s `cpuLimitMillicores` field. */ + cpuLimitMillicores?: BigIntFilter; + /** Filter by the object’s `cpuPeakUtilization` field. */ + cpuPeakUtilization?: BigFloatFilter; + /** Filter by the object’s `cpuRequestHeadroomMillicores` field. */ + cpuRequestHeadroomMillicores?: BigIntFilter; + /** Filter by the object’s `cpuRequestMillicores` field. */ + cpuRequestMillicores?: BigIntFilter; + /** Filter by the object’s `date` field. */ + date?: DateFilter; + /** Filter by the object’s `gbSeconds` field. */ + gbSeconds?: BigFloatFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `maxCpuMillicores` field. */ + maxCpuMillicores?: BigIntFilter; + /** Filter by the object’s `maxMemoryBytes` field. */ + maxMemoryBytes?: BigIntFilter; + /** Filter by the object’s `memoryLimitBytes` field. */ + memoryLimitBytes?: BigIntFilter; + /** Filter by the object’s `memoryPeakUtilization` field. */ + memoryPeakUtilization?: BigFloatFilter; + /** Filter by the object’s `memoryRequestBytes` field. */ + memoryRequestBytes?: BigIntFilter; + /** Filter by the object’s `memoryRequestHeadroomBytes` field. */ + memoryRequestHeadroomBytes?: BigIntFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: ResourceUtilizationFilter; + /** Checks for any expressions in this list. */ + or?: ResourceUtilizationFilter[]; + /** Filter by the object’s `replicas` field. */ + replicas?: IntFilter; + /** Filter by the object’s `resourceId` field. */ + resourceId?: UUIDFilter; + /** Filter by the object’s `runtimeSeconds` field. */ + runtimeSeconds?: BigIntFilter; + /** Filter by the object’s `sampleCount` field. */ + sampleCount?: IntFilter; +} +export interface ResourcesHealthFilter { + /** Checks for all expressions in this list. */ + and?: ResourcesHealthFilter[]; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Filter by the object’s `cpuLimitMillicores` field. */ + cpuLimitMillicores?: BigIntFilter; + /** Filter by the object’s `cpuRequestMillicores` field. */ + cpuRequestMillicores?: BigIntFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `errorCount` field. */ + errorCount?: IntFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `imageRef` field. */ + imageRef?: StringFilter; + /** Filter by the object’s `installationId` field. */ + installationId?: UUIDFilter; + /** Filter by the object’s `integrations` field. */ + integrations?: StringListFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `lastHeartbeatAt` field. */ + lastHeartbeatAt?: DatetimeFilter; + /** Filter by the object’s `memoryLimitBytes` field. */ + memoryLimitBytes?: BigIntFilter; + /** Filter by the object’s `memoryRequestBytes` field. */ + memoryRequestBytes?: BigIntFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: ResourcesHealthFilter; + /** Checks for any expressions in this list. */ + or?: ResourcesHealthFilter[]; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; + /** Filter by the object’s `replicas` field. */ + replicas?: IntFilter; + /** Filter by the object’s `resourceDefinitionId` field. */ + resourceDefinitionId?: UUIDFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `spec` field. */ + spec?: JSONFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `statusDetail` field. */ + statusDetail?: StringFilter; + /** Filter by the object’s `statusObserved` field. */ + statusObserved?: JSONFilter; + /** Filter by the object’s `storageClass` field. */ + storageClass?: StringFilter; + /** Filter by the object’s `storageSizeBytes` field. */ + storageSizeBytes?: BigIntFilter; + /** Filter by the object’s `storageTotalBytes` field. */ + storageTotalBytes?: BigIntFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} +export interface ResourcesRequirementsStateFilter { + /** Checks for all expressions in this list. */ + and?: ResourcesRequirementsStateFilter[]; + /** Filter by the object’s `configHash` field. */ + configHash?: StringFilter; + /** Filter by the object’s `configObjectName` field. */ + configObjectName?: StringFilter; + /** Negates the expression. */ + not?: ResourcesRequirementsStateFilter; + /** Checks for any expressions in this list. */ + or?: ResourcesRequirementsStateFilter[]; + /** Filter by the object’s `requirementsHash` field. */ + requirementsHash?: StringFilter; + /** Filter by the object’s `resourceId` field. */ + resourceId?: UUIDFilter; + /** Filter by the object’s `secretsHash` field. */ + secretsHash?: StringFilter; + /** Filter by the object’s `secretsObjectName` field. */ + secretsObjectName?: StringFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; +} +export interface ResourcesResolvedRequirementFilter { + /** Checks for all expressions in this list. */ + and?: ResourcesResolvedRequirementFilter[]; + /** Filter by the object’s `atomId` field. */ + atomId?: UUIDFilter; + /** Filter by the object’s `configObjectName` field. */ + configObjectName?: StringFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: ResourcesResolvedRequirementFilter; + /** Checks for any expressions in this list. */ + or?: ResourcesResolvedRequirementFilter[]; + /** Filter by the object’s `present` field. */ + present?: BooleanFilter; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; + /** Filter by the object’s `required` field. */ + required?: BooleanFilter; + /** Filter by the object’s `requirementKind` field. */ + requirementKind?: StringFilter; + /** Filter by the object’s `resourceId` field. */ + resourceId?: UUIDFilter; + /** Filter by the object’s `secretsObjectName` field. */ + secretsObjectName?: StringFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; +} +export interface WebhookEndpointFilter { + /** Filter by the object’s `active` field. */ + active?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: WebhookEndpointFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `functionDefinition` relation. */ + functionDefinition?: FunctionDefinitionFilter; + /** Filter by the object’s `functionDefinitionId` field. */ + functionDefinitionId?: UUIDFilter; + /** Filter by the object’s `host` field. */ + host?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: WebhookEndpointFilter; + /** Checks for any expressions in this list. */ + or?: WebhookEndpointFilter[]; + /** Filter by the object’s `path` field. */ + path?: StringFilter; + /** Filter by the object’s `provider` field. */ + provider?: StringFilter; + /** Filter by the object’s `replayWindowSeconds` field. */ + replayWindowSeconds?: IntFilter; + /** Filter by the object’s `signingSecretName` field. */ + signingSecretName?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** Filter by the object’s `webhookEventsByEndpointId` relation. */ + webhookEventsByEndpointId?: WebhookEndpointToManyWebhookEventFilter; + /** `webhookEventsByEndpointId` exist. */ + webhookEventsByEndpointIdExist?: boolean; +} +export interface WebhookEventFilter { + /** Checks for all expressions in this list. */ + and?: WebhookEventFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `endpoint` relation. */ + endpoint?: WebhookEndpointFilter; + /** Filter by the object’s `endpointId` field. */ + endpointId?: UUIDFilter; + /** Filter by the object’s `error` field. */ + error?: StringFilter; + /** Filter by the object’s `externalEventId` field. */ + externalEventId?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `invocationCreatedAt` field. */ + invocationCreatedAt?: DatetimeFilter; + /** Filter by the object’s `invocationId` field. */ + invocationId?: UUIDFilter; + /** Negates the expression. */ + not?: WebhookEventFilter; + /** Checks for any expressions in this list. */ + or?: WebhookEventFilter[]; + /** Filter by the object’s `payload` field. */ + payload?: JSONFilter; + /** Filter by the object’s `provider` field. */ + provider?: StringFilter; + /** Filter by the object’s `providerTimestamp` field. */ + providerTimestamp?: DatetimeFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} +// ============ OrderBy Types ============ +export type BuildOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'ATTEMPT_ASC' + | 'ATTEMPT_DESC' + | 'COMMIT_SHA_ASC' + | 'COMMIT_SHA_DESC' + | 'CONCLUSION_ASC' + | 'CONCLUSION_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'EVENT_ID_ASC' + | 'EVENT_ID_DESC' + | 'FINISHED_AT_ASC' + | 'FINISHED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IMAGE_REF_ASC' + | 'IMAGE_REF_DESC' + | 'JOB_ID_ASC' + | 'JOB_ID_DESC' + | 'LOGS_ASC' + | 'LOGS_DESC' + | 'MATRIX_KEY_ASC' + | 'MATRIX_KEY_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PROPOSAL_ID_ASC' + | 'PROPOSAL_ID_DESC' + | 'REF_ASC' + | 'REF_DESC' + | 'REPOSITORY_ID_ASC' + | 'REPOSITORY_ID_DESC' + | 'STARTED_AT_ASC' + | 'STARTED_AT_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC' + | 'WORKFLOW_ID_ASC' + | 'WORKFLOW_ID_DESC'; +export type BuildStepOrderBy = + | 'BUILD_ID_ASC' + | 'BUILD_ID_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'EXIT_CODE_ASC' + | 'EXIT_CODE_DESC' + | 'FINISHED_AT_ASC' + | 'FINISHED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'KIND_ASC' + | 'KIND_DESC' + | 'LOG_BYTES_ASC' + | 'LOG_BYTES_DESC' + | 'LOG_OFFSET_ASC' + | 'LOG_OFFSET_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'PARENT_SEQ_ASC' + | 'PARENT_SEQ_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'RECORDED_AT_ASC' + | 'RECORDED_AT_DESC' + | 'SEQ_ASC' + | 'SEQ_DESC' + | 'STARTED_AT_ASC' + | 'STARTED_AT_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'SUMMARY_ASC' + | 'SUMMARY_DESC'; +export type BuilderBindingOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'INSTALLATION_ID_ASC' + | 'INSTALLATION_ID_DESC' + | 'LAST_ERROR_ASC' + | 'LAST_ERROR_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'NATURAL' + | 'OBSERVED_HOST_ASC' + | 'OBSERVED_HOST_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'REALM_ASC' + | 'REALM_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +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 DatabaseFunctionGraphOrderBy = + | 'CONTEXT_ASC' + | 'CONTEXT_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DEFINITIONS_COMMIT_ID_ASC' + | 'DEFINITIONS_COMMIT_ID_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_VALID_ASC' + | 'IS_VALID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'STORE_ID_ASC' + | 'STORE_ID_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'VALIDATION_ERRORS_ASC' + | 'VALIDATION_ERRORS_DESC'; +export type DatabaseFunctionGraphExecutionOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'COMPLETED_AT_ASC' + | 'COMPLETED_AT_DESC' + | 'CURRENT_WAVE_ASC' + | 'CURRENT_WAVE_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DEFINITIONS_COMMIT_ID_ASC' + | 'DEFINITIONS_COMMIT_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'ENTITY_TYPE_ASC' + | 'ENTITY_TYPE_DESC' + | 'ERROR_CODE_ASC' + | 'ERROR_CODE_DESC' + | 'ERROR_MESSAGE_ASC' + | 'ERROR_MESSAGE_DESC' + | 'EXECUTION_PLAN_ASC' + | 'EXECUTION_PLAN_DESC' + | 'GRAPH_ID_ASC' + | 'GRAPH_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'INPUT_PAYLOAD_ASC' + | 'INPUT_PAYLOAD_DESC' + | 'INVOCATION_CREATED_AT_ASC' + | 'INVOCATION_CREATED_AT_DESC' + | 'INVOCATION_ID_ASC' + | 'INVOCATION_ID_DESC' + | 'LAST_PROGRESS_AT_ASC' + | 'LAST_PROGRESS_AT_DESC' + | 'MAX_PENDING_JOBS_ASC' + | 'MAX_PENDING_JOBS_DESC' + | 'MAX_TICKS_ASC' + | 'MAX_TICKS_DESC' + | 'NATURAL' + | 'NODE_OUTPUTS_ASC' + | 'NODE_OUTPUTS_DESC' + | 'ORGANIZATION_ID_ASC' + | 'ORGANIZATION_ID_DESC' + | 'OUTPUT_NAMES_ASC' + | 'OUTPUT_NAMES_DESC' + | 'OUTPUT_NODE_ASC' + | 'OUTPUT_NODE_DESC' + | 'OUTPUT_PAYLOAD_ASC' + | 'OUTPUT_PAYLOAD_DESC' + | 'OUTPUT_PORT_ASC' + | 'OUTPUT_PORT_DESC' + | 'PARENT_EXECUTION_ID_ASC' + | 'PARENT_EXECUTION_ID_DESC' + | 'PARENT_INVOCATION_ID_ASC' + | 'PARENT_INVOCATION_ID_DESC' + | 'PARENT_NODE_NAME_ASC' + | 'PARENT_NODE_NAME_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PRINCIPAL_ID_ASC' + | 'PRINCIPAL_ID_DESC' + | 'STARTED_AT_ASC' + | 'STARTED_AT_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'TICK_COUNT_ASC' + | 'TICK_COUNT_DESC' + | 'TIMEOUT_AT_ASC' + | 'TIMEOUT_AT_DESC'; +export type DatabaseFunctionGraphExecutionNodeStateOrderBy = + | 'CALLBACK_INPUTS_ASC' + | 'CALLBACK_INPUTS_DESC' + | 'CALLBACK_META_ASC' + | 'CALLBACK_META_DESC' + | 'CALLBACK_TOKEN_HASH_ASC' + | 'CALLBACK_TOKEN_HASH_DESC' + | 'COMPLETED_AT_ASC' + | 'COMPLETED_AT_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ERROR_CODE_ASC' + | 'ERROR_CODE_DESC' + | 'ERROR_MESSAGE_ASC' + | 'ERROR_MESSAGE_DESC' + | 'EXECUTION_ID_ASC' + | 'EXECUTION_ID_DESC' + | 'EXPIRY_DEFAULT_OUTPUT_ASC' + | 'EXPIRY_DEFAULT_OUTPUT_DESC' + | 'EXPIRY_ESCALATED_AT_ASC' + | 'EXPIRY_ESCALATED_AT_DESC' + | 'EXPIRY_POLICY_ASC' + | 'EXPIRY_POLICY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' + | 'NODE_NAME_ASC' + | 'NODE_NAME_DESC' + | 'NODE_PATH_ASC' + | 'NODE_PATH_DESC' + | 'OUTPUT_ID_ASC' + | 'OUTPUT_ID_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'STARTED_AT_ASC' + | 'STARTED_AT_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'WAITING_DEADLINE_AT_ASC' + | 'WAITING_DEADLINE_AT_DESC' + | 'WAITING_ON_ASC' + | 'WAITING_ON_DESC' + | 'WAITING_SINCE_ASC' + | 'WAITING_SINCE_DESC'; +export type DatabaseFunctionGraphExecutionOutputOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DATA_ASC' + | 'DATA_DESC' + | 'HASH_ASC' + | 'HASH_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC'; +export type DatabaseGraphCommitOrderBy = + | 'AUTHOR_ID_ASC' + | 'AUTHOR_ID_DESC' + | 'COMMITTER_ID_ASC' + | 'COMMITTER_ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DATE_ASC' + | 'DATE_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'MESSAGE_ASC' + | 'MESSAGE_DESC' + | 'NATURAL' + | 'PARENT_IDS_ASC' + | 'PARENT_IDS_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'STORE_ID_ASC' + | 'STORE_ID_DESC' + | 'TREE_ID_ASC' + | 'TREE_ID_DESC'; +export type DatabaseGraphGetAllTreeNodesRecordsOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'DATA_ASC' + | 'DATA_DESC' + | 'PATH_ASC' + | 'PATH_DESC'; +export type DatabaseGraphObjectOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DATA_ASC' + | 'DATA_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'KIDS_ASC' + | 'KIDS_DESC' + | 'KTREE_ASC' + | 'KTREE_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC'; +export type DatabaseGraphRefOrderBy = + | 'COMMIT_ID_ASC' + | 'COMMIT_ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'STORE_ID_ASC' + | 'STORE_ID_DESC'; +export type DatabaseGraphStoreOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'HASH_ASC' + | 'HASH_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC'; +export type DbPresetOrderBy = + | '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' + | 'LABEL_ASC' + | 'LABEL_DESC' + | 'MODULES_HASH_ASC' + | 'MODULES_HASH_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 FunctionApiBindingOrderBy = + | 'ALIAS_ASC' + | 'ALIAS_DESC' + | 'API_ID_ASC' + | 'API_ID_DESC' + | 'CONFIG_ASC' + | 'CONFIG_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'FUNCTION_DEFINITION_ID_ASC' + | 'FUNCTION_DEFINITION_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type FunctionCapabilityBindingOrderBy = + | 'BUCKET_ID_ASC' + | 'BUCKET_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'FUNCTION_ID_ASC' + | 'FUNCTION_ID_DESC' + | 'GRAPH_ID_ASC' + | 'GRAPH_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'KEY_ASC' + | 'KEY_DESC' + | 'LIFECYCLE_ASC' + | 'LIFECYCLE_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type FunctionDefinitionOrderBy = + | 'ACCESS_CHANNELS_ASC' + | 'ACCESS_CHANNELS_DESC' + | 'ANONYMOUS_CALLABLE_ASC' + | 'ANONYMOUS_CALLABLE_DESC' + | 'CATEGORY_ASC' + | 'CATEGORY_DESC' + | 'CONCURRENCY_ASC' + | 'CONCURRENCY_DESC' + | 'CPU_LIMIT_MILLICORES_ASC' + | 'CPU_LIMIT_MILLICORES_DESC' + | 'CPU_REQUEST_MILLICORES_ASC' + | 'CPU_REQUEST_MILLICORES_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'FN_CATEGORY_ASC' + | 'FN_CATEGORY_DESC' + | 'FUNCTION_COLUMNS_ASC' + | 'FUNCTION_COLUMNS_DESC' + | 'GRAPH_ID_ASC' + | 'GRAPH_ID_DESC' + | 'ICON_ASC' + | 'ICON_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IMAGE_ASC' + | 'IMAGE_DESC' + | 'INPUTS_ASC' + | 'INPUTS_DESC' + | 'INTEGRATIONS_ASC' + | 'INTEGRATIONS_DESC' + | 'IS_PUBLISHED_ASC' + | 'IS_PUBLISHED_DESC' + | 'MAX_ATTEMPTS_ASC' + | 'MAX_ATTEMPTS_DESC' + | 'MEMORY_LIMIT_BYTES_ASC' + | 'MEMORY_LIMIT_BYTES_DESC' + | 'MEMORY_REQUEST_BYTES_ASC' + | 'MEMORY_REQUEST_BYTES_DESC' + | 'MODULE_TABLE_ASC' + | 'MODULE_TABLE_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'OUTPUTS_ASC' + | 'OUTPUTS_DESC' + | 'PAYLOAD_ARGS_ASC' + | 'PAYLOAD_ARGS_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PRIORITY_ASC' + | 'PRIORITY_DESC' + | 'PROPS_ASC' + | 'PROPS_DESC' + | 'PROTECTED_ASC' + | 'PROTECTED_DESC' + | 'PUBLISHED_AT_ASC' + | 'PUBLISHED_AT_DESC' + | 'QUEUE_NAME_ASC' + | 'QUEUE_NAME_DESC' + | 'REQUIRED_BUCKETS_ASC' + | 'REQUIRED_BUCKETS_DESC' + | 'REQUIRED_CAPABILITIES_ASC' + | 'REQUIRED_CAPABILITIES_DESC' + | 'REQUIRED_CONFIGS_ASC' + | 'REQUIRED_CONFIGS_DESC' + | 'REQUIRED_MODELS_ASC' + | 'REQUIRED_MODELS_DESC' + | 'REQUIRED_MODULES_ASC' + | 'REQUIRED_MODULES_DESC' + | 'REQUIRED_SECRETS_ASC' + | 'REQUIRED_SECRETS_DESC' + | 'RESOURCES_ASC' + | 'RESOURCES_DESC' + | 'RUNTIME_ASC' + | 'RUNTIME_DESC' + | 'SCALE_MAX_ASC' + | 'SCALE_MAX_DESC' + | 'SCALE_MIN_ASC' + | 'SCALE_MIN_DESC' + | 'TARGET_FUNCTION_ASC' + | 'TARGET_FUNCTION_DESC' + | 'TARGET_SCHEMA_ASC' + | 'TARGET_SCHEMA_DESC' + | 'TASK_IDENTIFIER_ASC' + | 'TASK_IDENTIFIER_DESC' + | 'TIMEOUT_SECONDS_ASC' + | 'TIMEOUT_SECONDS_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC' + | 'VOLATILE_ASC' + | 'VOLATILE_DESC'; +export type FunctionDeploymentOrderBy = + | 'ANNOTATIONS_ASC' + | 'ANNOTATIONS_DESC' + | 'CONCURRENCY_ASC' + | 'CONCURRENCY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ERROR_COUNT_ASC' + | 'ERROR_COUNT_DESC' + | 'HANDLER_NAME_ASC' + | 'HANDLER_NAME_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IMAGE_ASC' + | 'IMAGE_DESC' + | 'IMAGE_VERSION_ASC' + | 'IMAGE_VERSION_DESC' + | 'LABELS_ASC' + | 'LABELS_DESC' + | 'LAST_ERROR_ASC' + | 'LAST_ERROR_AT_ASC' + | 'LAST_ERROR_AT_DESC' + | 'LAST_ERROR_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'REALM_ASC' + | 'REALM_DESC' + | 'RESOURCES_ASC' + | 'RESOURCES_DESC' + | 'REVISION_ASC' + | 'REVISION_DESC' + | 'SCALE_MAX_ASC' + | 'SCALE_MAX_DESC' + | 'SCALE_MIN_ASC' + | 'SCALE_MIN_DESC' + | 'SERVICE_NAME_ASC' + | 'SERVICE_NAME_DESC' + | 'SERVICE_URL_ASC' + | 'SERVICE_URL_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'TIMEOUT_SECONDS_ASC' | 'TIMEOUT_SECONDS_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' - | 'VOLATILE_ASC' - | 'VOLATILE_DESC'; -export type FunctionDeploymentOrderBy = + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +export type FunctionDeploymentEventOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DEPLOYMENT_ID_ASC' + | 'DEPLOYMENT_ID_DESC' + | 'EVENT_TYPE_ASC' + | 'EVENT_TYPE_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'MESSAGE_ASC' + | 'MESSAGE_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC'; +export type FunctionExecutionLogOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'INVOCATION_ID_ASC' + | 'INVOCATION_ID_DESC' + | 'LOG_LEVEL_ASC' + | 'LOG_LEVEL_DESC' + | 'MESSAGE_ASC' + | 'MESSAGE_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'TASK_IDENTIFIER_ASC' + | 'TASK_IDENTIFIER_DESC'; +export type FunctionGraphCommitOrderBy = + | 'AUTHOR_ID_ASC' + | 'AUTHOR_ID_DESC' + | 'COMMITTER_ID_ASC' + | 'COMMITTER_ID_DESC' + | 'DATE_ASC' + | 'DATE_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'MESSAGE_ASC' + | 'MESSAGE_DESC' + | 'NATURAL' + | 'PARENT_IDS_ASC' + | 'PARENT_IDS_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' + | 'STORE_ID_ASC' + | 'STORE_ID_DESC' + | 'TREE_ID_ASC' + | 'TREE_ID_DESC'; +export type FunctionGraphOrderBy = + | 'CONTEXT_ASC' + | 'CONTEXT_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'DEFINITIONS_COMMIT_ID_ASC' + | 'DEFINITIONS_COMMIT_ID_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_VALID_ASC' + | 'IS_VALID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' + | 'STORE_ID_ASC' + | 'STORE_ID_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'VALIDATION_ERRORS_ASC' + | 'VALIDATION_ERRORS_DESC'; +export type FunctionGraphExecutionOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'COMPLETED_AT_ASC' + | 'COMPLETED_AT_DESC' + | 'CURRENT_WAVE_ASC' + | 'CURRENT_WAVE_DESC' + | 'DEFINITIONS_COMMIT_ID_ASC' + | 'DEFINITIONS_COMMIT_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'ENTITY_TYPE_ASC' + | 'ENTITY_TYPE_DESC' + | 'ERROR_CODE_ASC' + | 'ERROR_CODE_DESC' + | 'ERROR_MESSAGE_ASC' + | 'ERROR_MESSAGE_DESC' + | 'EXECUTION_PLAN_ASC' + | 'EXECUTION_PLAN_DESC' + | 'GRAPH_ID_ASC' + | 'GRAPH_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'INPUT_PAYLOAD_ASC' + | 'INPUT_PAYLOAD_DESC' + | 'INVOCATION_CREATED_AT_ASC' + | 'INVOCATION_CREATED_AT_DESC' + | 'INVOCATION_ID_ASC' + | 'INVOCATION_ID_DESC' + | 'LAST_PROGRESS_AT_ASC' + | 'LAST_PROGRESS_AT_DESC' + | 'MAX_PENDING_JOBS_ASC' + | 'MAX_PENDING_JOBS_DESC' + | 'MAX_TICKS_ASC' + | 'MAX_TICKS_DESC' + | 'NATURAL' + | 'NODE_OUTPUTS_ASC' + | 'NODE_OUTPUTS_DESC' + | 'ORGANIZATION_ID_ASC' + | 'ORGANIZATION_ID_DESC' + | 'OUTPUT_NAMES_ASC' + | 'OUTPUT_NAMES_DESC' + | 'OUTPUT_NODE_ASC' + | 'OUTPUT_NODE_DESC' + | 'OUTPUT_PAYLOAD_ASC' + | 'OUTPUT_PAYLOAD_DESC' + | 'OUTPUT_PORT_ASC' + | 'OUTPUT_PORT_DESC' + | 'PARENT_EXECUTION_ID_ASC' + | 'PARENT_EXECUTION_ID_DESC' + | 'PARENT_INVOCATION_ID_ASC' + | 'PARENT_INVOCATION_ID_DESC' + | 'PARENT_NODE_NAME_ASC' + | 'PARENT_NODE_NAME_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PRINCIPAL_ID_ASC' + | 'PRINCIPAL_ID_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' + | 'STARTED_AT_ASC' + | 'STARTED_AT_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'TICK_COUNT_ASC' + | 'TICK_COUNT_DESC' + | 'TIMEOUT_AT_ASC' + | 'TIMEOUT_AT_DESC'; +export type FunctionGraphExecutionNodeStateOrderBy = + | 'CALLBACK_INPUTS_ASC' + | 'CALLBACK_INPUTS_DESC' + | 'CALLBACK_META_ASC' + | 'CALLBACK_META_DESC' + | 'CALLBACK_TOKEN_HASH_ASC' + | 'CALLBACK_TOKEN_HASH_DESC' + | 'COMPLETED_AT_ASC' + | 'COMPLETED_AT_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ERROR_CODE_ASC' + | 'ERROR_CODE_DESC' + | 'ERROR_MESSAGE_ASC' + | 'ERROR_MESSAGE_DESC' + | 'EXECUTION_ID_ASC' + | 'EXECUTION_ID_DESC' + | 'EXPIRY_DEFAULT_OUTPUT_ASC' + | 'EXPIRY_DEFAULT_OUTPUT_DESC' + | 'EXPIRY_ESCALATED_AT_ASC' + | 'EXPIRY_ESCALATED_AT_DESC' + | 'EXPIRY_POLICY_ASC' + | 'EXPIRY_POLICY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' + | 'NODE_NAME_ASC' + | 'NODE_NAME_DESC' + | 'NODE_PATH_ASC' + | 'NODE_PATH_DESC' + | 'OUTPUT_ID_ASC' + | 'OUTPUT_ID_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' + | 'STARTED_AT_ASC' + | 'STARTED_AT_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'WAITING_DEADLINE_AT_ASC' + | 'WAITING_DEADLINE_AT_DESC' + | 'WAITING_ON_ASC' + | 'WAITING_ON_DESC' + | 'WAITING_SINCE_ASC' + | 'WAITING_SINCE_DESC'; +export type FunctionGraphExecutionOutputOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATA_ASC' + | 'DATA_DESC' + | 'HASH_ASC' + | 'HASH_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC'; +export type FunctionGraphObjectOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATA_ASC' + | 'DATA_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'KIDS_ASC' + | 'KIDS_DESC' + | 'KTREE_ASC' + | 'KTREE_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC'; +export type FunctionGraphRefOrderBy = + | 'COMMIT_ID_ASC' + | 'COMMIT_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' + | 'STORE_ID_ASC' + | 'STORE_ID_DESC'; +export type FunctionGraphStoreOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'HASH_ASC' + | 'HASH_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC'; +export type FunctionInvocationAttemptOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'ATTEMPT_ASC' + | 'ATTEMPT_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DURATION_MS_ASC' + | 'DURATION_MS_DESC' + | 'ERROR_ASC' + | 'ERROR_DESC' + | 'ERROR_DETAIL_ASC' + | 'ERROR_DETAIL_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'INVOCATION_CREATED_AT_ASC' + | 'INVOCATION_CREATED_AT_DESC' + | 'INVOCATION_ID_ASC' + | 'INVOCATION_ID_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'STARTED_AT_ASC' + | 'STARTED_AT_DESC' + | 'SUCCESS_ASC' + | 'SUCCESS_DESC' + | 'TASK_IDENTIFIER_ASC' + | 'TASK_IDENTIFIER_DESC'; +export type FunctionInvocationOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'API_BINDING_ID_ASC' + | 'API_BINDING_ID_DESC' + | 'CHANNEL_ASC' + | 'CHANNEL_DESC' + | 'COMPLETED_AT_ASC' + | 'COMPLETED_AT_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DEFINITION_SCOPE_ASC' + | 'DEFINITION_SCOPE_DESC' + | 'DURATION_MS_ASC' + | 'DURATION_MS_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'ENTITY_TYPE_ASC' + | 'ENTITY_TYPE_DESC' + | 'ERROR_ASC' + | 'ERROR_DESC' + | 'FUNCTION_DEFINITION_ID_ASC' + | 'FUNCTION_DEFINITION_ID_DESC' + | 'GRAPH_EXECUTION_ID_ASC' + | 'GRAPH_EXECUTION_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'JOB_ID_ASC' + | 'JOB_ID_DESC' + | 'NATURAL' + | 'ORGANIZATION_ID_ASC' + | 'ORGANIZATION_ID_DESC' + | 'PARENT_INVOCATION_ID_ASC' + | 'PARENT_INVOCATION_ID_DESC' + | 'PAYLOAD_ASC' + | 'PAYLOAD_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PRINCIPAL_ID_ASC' + | 'PRINCIPAL_ID_DESC' + | 'PROVENANCE_ASC' + | 'PROVENANCE_DESC' + | 'RESULT_ASC' + | 'RESULT_DESC' + | 'STARTED_AT_ASC' + | 'STARTED_AT_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'TASK_IDENTIFIER_ASC' + | 'TASK_IDENTIFIER_DESC'; +export type GetAllTreeNodesRecordsOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'DATA_ASC' + | 'DATA_DESC' + | 'PATH_ASC' + | 'PATH_DESC'; +export type ImageOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'DIGEST_ASC' + | 'DIGEST_DESC' + | 'EXPIRES_AT_ASC' + | 'EXPIRES_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_PUBLISHED_ASC' + | 'IS_PUBLISHED_DESC' + | 'LABELS_ASC' + | 'LABELS_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'PLATFORM_ONLY_ASC' + | 'PLATFORM_ONLY_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'REGISTRY_HOST_ASC' + | 'REGISTRY_HOST_DESC' + | 'REPOSITORY_ASC' + | 'REPOSITORY_DESC' + | 'RUNTIME_ASC' + | 'RUNTIME_DESC' + | 'TAG_ASC' + | 'TAG_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +export type ImageGrantOrderBy = + | 'ACTIONS_ASC' + | 'ACTIONS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'EXPIRES_AT_ASC' + | 'EXPIRES_AT_DESC' + | 'GRANTED_BY_ASC' + | 'GRANTED_BY_DESC' + | 'GRANTEE_KEY_ASC' + | 'GRANTEE_KEY_DESC' + | 'GRANTEE_SCOPE_ASC' + | 'GRANTEE_SCOPE_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IMAGE_ID_ASC' + | 'IMAGE_ID_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +export type InfraCommitOrderBy = + | 'AUTHOR_ID_ASC' + | 'AUTHOR_ID_DESC' + | 'COMMITTER_ID_ASC' + | 'COMMITTER_ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DATE_ASC' + | 'DATE_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'MESSAGE_ASC' + | 'MESSAGE_DESC' + | 'NATURAL' + | 'PARENT_IDS_ASC' + | 'PARENT_IDS_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'STORE_ID_ASC' + | 'STORE_ID_DESC' + | 'TREE_ID_ASC' + | 'TREE_ID_DESC'; +export type InfraGetAllTreeNodesRecordsOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'DATA_ASC' + | 'DATA_DESC' + | 'PATH_ASC' + | 'PATH_DESC'; +export type InfraObjectOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DATA_ASC' + | 'DATA_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'KIDS_ASC' + | 'KIDS_DESC' + | 'KTREE_ASC' + | 'KTREE_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC'; +export type InfraRefOrderBy = + | 'COMMIT_ID_ASC' + | 'COMMIT_ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'STORE_ID_ASC' + | 'STORE_ID_DESC'; +export type InfraStoreOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'HASH_ASC' + | 'HASH_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC'; +export type IntegrationProviderOrderBy = + | 'BRAND_ASC' + | 'BRAND_DESC' + | 'CATEGORY_ASC' + | 'CATEGORY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'ICON_ASC' + | 'ICON_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'LOGO_ASC' + | 'LOGO_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'REQUIRED_CONFIGS_ASC' + | 'REQUIRED_CONFIGS_DESC' + | 'REQUIRED_SECRETS_ASC' + | 'REQUIRED_SECRETS_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type NamespaceOrderBy = | 'ANNOTATIONS_ASC' | 'ANNOTATIONS_DESC' - | 'CONCURRENCY_ASC' - | 'CONCURRENCY_DESC' + | 'CLUSTER_ID_ASC' + | 'CLUSTER_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'ERROR_COUNT_ASC' - | 'ERROR_COUNT_DESC' - | 'HANDLER_NAME_ASC' - | 'HANDLER_NAME_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' | 'ID_ASC' | 'ID_DESC' - | 'IMAGE_ASC' - | 'IMAGE_DESC' - | 'IMAGE_VERSION_ASC' - | 'IMAGE_VERSION_DESC' + | 'IS_ACTIVE_ASC' + | 'IS_ACTIVE_DESC' + | 'IS_MANAGED_ASC' + | 'IS_MANAGED_DESC' | 'LABELS_ASC' | 'LABELS_DESC' | 'LAST_ERROR_ASC' - | 'LAST_ERROR_AT_ASC' - | 'LAST_ERROR_AT_DESC' | 'LAST_ERROR_DESC' - | 'NAMESPACE_ID_ASC' - | 'NAMESPACE_ID_DESC' + | 'NAMESPACE_NAME_ASC' + | 'NAMESPACE_NAME_DESC' + | 'NAME_ASC' + | 'NAME_DESC' | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'RESOURCES_ASC' - | 'RESOURCES_DESC' - | 'REVISION_ASC' - | 'REVISION_DESC' - | 'SCALE_MAX_ASC' - | 'SCALE_MAX_DESC' - | 'SCALE_MIN_ASC' - | 'SCALE_MIN_DESC' - | 'SERVICE_NAME_ASC' - | 'SERVICE_NAME_DESC' - | 'SERVICE_URL_ASC' - | 'SERVICE_URL_DESC' | 'STATUS_ASC' | 'STATUS_DESC' - | 'TIMEOUT_SECONDS_ASC' - | 'TIMEOUT_SECONDS_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type FunctionDeploymentEventOrderBy = +export type NamespaceEventOrderBy = | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DEPLOYMENT_ID_ASC' - | 'DEPLOYMENT_ID_DESC' | 'EVENT_TYPE_ASC' | 'EVENT_TYPE_DESC' | 'ID_ASC' @@ -6135,250 +12774,364 @@ export type FunctionDeploymentEventOrderBy = | 'MESSAGE_DESC' | 'METADATA_ASC' | 'METADATA_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC'; -export type FunctionExecutionLogOrderBy = +export type PlatformBuildOrderBy = | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' + | 'ATTEMPT_ASC' + | 'ATTEMPT_DESC' + | 'COMMIT_SHA_ASC' + | 'COMMIT_SHA_DESC' + | 'CONCLUSION_ASC' + | 'CONCLUSION_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'EVENT_ID_ASC' + | 'EVENT_ID_DESC' + | 'FINISHED_AT_ASC' + | 'FINISHED_AT_DESC' | 'ID_ASC' | 'ID_DESC' - | 'INVOCATION_ID_ASC' - | 'INVOCATION_ID_DESC' - | 'LOG_LEVEL_ASC' - | 'LOG_LEVEL_DESC' - | 'MESSAGE_ASC' - | 'MESSAGE_DESC' + | 'IMAGE_REF_ASC' + | 'IMAGE_REF_DESC' + | 'JOB_ID_ASC' + | 'JOB_ID_DESC' + | 'LOGS_ASC' + | 'LOGS_DESC' + | 'MATRIX_KEY_ASC' + | 'MATRIX_KEY_DESC' | 'METADATA_ASC' | 'METADATA_DESC' | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'TASK_IDENTIFIER_ASC' - | 'TASK_IDENTIFIER_DESC'; -export type FunctionGraphCommitOrderBy = - | 'AUTHOR_ID_ASC' - | 'AUTHOR_ID_DESC' - | 'COMMITTER_ID_ASC' - | 'COMMITTER_ID_DESC' - | 'DATE_ASC' - | 'DATE_DESC' + | 'PROPOSAL_ID_ASC' + | 'PROPOSAL_ID_DESC' + | 'REF_ASC' + | 'REF_DESC' + | 'REPOSITORY_ID_ASC' + | 'REPOSITORY_ID_DESC' + | 'STARTED_AT_ASC' + | 'STARTED_AT_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC' + | 'WORKFLOW_ID_ASC' + | 'WORKFLOW_ID_DESC'; +export type PlatformBuildStepOrderBy = + | 'BUILD_ID_ASC' + | 'BUILD_ID_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'EXIT_CODE_ASC' + | 'EXIT_CODE_DESC' + | 'FINISHED_AT_ASC' + | 'FINISHED_AT_DESC' | 'ID_ASC' | 'ID_DESC' - | 'MESSAGE_ASC' - | 'MESSAGE_DESC' + | 'KIND_ASC' + | 'KIND_DESC' + | 'LOG_BYTES_ASC' + | 'LOG_BYTES_DESC' + | 'LOG_OFFSET_ASC' + | 'LOG_OFFSET_DESC' + | 'NAME_ASC' + | 'NAME_DESC' | 'NATURAL' - | 'PARENT_IDS_ASC' - | 'PARENT_IDS_DESC' + | 'PARENT_SEQ_ASC' + | 'PARENT_SEQ_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'SCOPE_ID_ASC' - | 'SCOPE_ID_DESC' - | 'STORE_ID_ASC' - | 'STORE_ID_DESC' - | 'TREE_ID_ASC' - | 'TREE_ID_DESC'; -export type FunctionGraphOrderBy = - | 'CONTEXT_ASC' - | 'CONTEXT_DESC' + | 'RECORDED_AT_ASC' + | 'RECORDED_AT_DESC' + | 'SEQ_ASC' + | 'SEQ_DESC' + | 'STARTED_AT_ASC' + | 'STARTED_AT_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'SUMMARY_ASC' + | 'SUMMARY_DESC'; +export type PlatformBuilderBindingOrderBy = | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'DEFINITIONS_COMMIT_ID_ASC' - | 'DEFINITIONS_COMMIT_ID_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' + | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'ID_ASC' | 'ID_DESC' - | 'IS_VALID_ASC' - | 'IS_VALID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' + | 'INSTALLATION_ID_ASC' + | 'INSTALLATION_ID_DESC' + | 'LAST_ERROR_ASC' + | 'LAST_ERROR_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' | 'NATURAL' + | 'OBSERVED_HOST_ASC' + | 'OBSERVED_HOST_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'SCOPE_ID_ASC' - | 'SCOPE_ID_DESC' - | 'STORE_ID_ASC' - | 'STORE_ID_DESC' + | 'REALM_ASC' + | 'REALM_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' - | 'VALIDATION_ERRORS_ASC' - | 'VALIDATION_ERRORS_DESC'; -export type FunctionGraphExecutionOrderBy = - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'COMPLETED_AT_ASC' - | 'COMPLETED_AT_DESC' - | 'CURRENT_WAVE_ASC' - | 'CURRENT_WAVE_DESC' - | 'DEFINITIONS_COMMIT_ID_ASC' - | 'DEFINITIONS_COMMIT_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'ENTITY_TYPE_ASC' - | 'ENTITY_TYPE_DESC' - | 'ERROR_CODE_ASC' - | 'ERROR_CODE_DESC' - | 'ERROR_MESSAGE_ASC' - | 'ERROR_MESSAGE_DESC' - | 'EXECUTION_PLAN_ASC' - | 'EXECUTION_PLAN_DESC' - | 'GRAPH_ID_ASC' - | 'GRAPH_ID_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +export type PlatformFunctionApiBindingOrderBy = + | 'ALIAS_ASC' + | 'ALIAS_DESC' + | 'API_ID_ASC' + | 'API_ID_DESC' + | 'CONFIG_ASC' + | 'CONFIG_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'FUNCTION_DEFINITION_ID_ASC' + | 'FUNCTION_DEFINITION_ID_DESC' | 'ID_ASC' | 'ID_DESC' - | 'INPUT_PAYLOAD_ASC' - | 'INPUT_PAYLOAD_DESC' - | 'INVOCATION_CREATED_AT_ASC' - | 'INVOCATION_CREATED_AT_DESC' - | 'INVOCATION_ID_ASC' - | 'INVOCATION_ID_DESC' - | 'LAST_PROGRESS_AT_ASC' - | 'LAST_PROGRESS_AT_DESC' - | 'MAX_PENDING_JOBS_ASC' - | 'MAX_PENDING_JOBS_DESC' - | 'MAX_TICKS_ASC' - | 'MAX_TICKS_DESC' | 'NATURAL' - | 'NODE_OUTPUTS_ASC' - | 'NODE_OUTPUTS_DESC' - | 'ORGANIZATION_ID_ASC' - | 'ORGANIZATION_ID_DESC' - | 'OUTPUT_NAMES_ASC' - | 'OUTPUT_NAMES_DESC' - | 'OUTPUT_NODE_ASC' - | 'OUTPUT_NODE_DESC' - | 'OUTPUT_PAYLOAD_ASC' - | 'OUTPUT_PAYLOAD_DESC' - | 'OUTPUT_PORT_ASC' - | 'OUTPUT_PORT_DESC' - | 'PARENT_EXECUTION_ID_ASC' - | 'PARENT_EXECUTION_ID_DESC' - | 'PARENT_INVOCATION_ID_ASC' - | 'PARENT_INVOCATION_ID_DESC' - | 'PARENT_NODE_NAME_ASC' - | 'PARENT_NODE_NAME_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'PRINCIPAL_ID_ASC' - | 'PRINCIPAL_ID_DESC' - | 'SCOPE_ID_ASC' - | 'SCOPE_ID_DESC' - | 'STARTED_AT_ASC' - | 'STARTED_AT_DESC' - | 'STATUS_ASC' - | 'STATUS_DESC' - | 'TICK_COUNT_ASC' - | 'TICK_COUNT_DESC' - | 'TIMEOUT_AT_ASC' - | 'TIMEOUT_AT_DESC'; -export type FunctionGraphExecutionNodeStateOrderBy = - | 'CALLBACK_INPUTS_ASC' - | 'CALLBACK_INPUTS_DESC' - | 'CALLBACK_META_ASC' - | 'CALLBACK_META_DESC' - | 'CALLBACK_TOKEN_HASH_ASC' - | 'CALLBACK_TOKEN_HASH_DESC' - | 'COMPLETED_AT_ASC' - | 'COMPLETED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type PlatformFunctionCapabilityBindingOrderBy = + | 'BUCKET_ID_ASC' + | 'BUCKET_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' - | 'ERROR_CODE_ASC' - | 'ERROR_CODE_DESC' - | 'ERROR_MESSAGE_ASC' - | 'ERROR_MESSAGE_DESC' - | 'EXECUTION_ID_ASC' - | 'EXECUTION_ID_DESC' + | 'FUNCTION_ID_ASC' + | 'FUNCTION_ID_DESC' + | 'GRAPH_ID_ASC' + | 'GRAPH_ID_DESC' | 'ID_ASC' | 'ID_DESC' + | 'KEY_ASC' + | 'KEY_DESC' + | 'LIFECYCLE_ASC' + | 'LIFECYCLE_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' | 'NATURAL' - | 'NODE_NAME_ASC' - | 'NODE_NAME_DESC' - | 'NODE_PATH_ASC' - | 'NODE_PATH_DESC' - | 'OUTPUT_ID_ASC' - | 'OUTPUT_ID_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'SCOPE_ID_ASC' - | 'SCOPE_ID_DESC' - | 'STARTED_AT_ASC' - | 'STARTED_AT_DESC' - | 'STATUS_ASC' - | 'STATUS_DESC'; -export type FunctionGraphExecutionOutputOrderBy = + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type PlatformFunctionDefinitionOrderBy = + | 'ACCESS_CHANNELS_ASC' + | 'ACCESS_CHANNELS_DESC' + | 'ANONYMOUS_CALLABLE_ASC' + | 'ANONYMOUS_CALLABLE_DESC' + | 'BILLABLE_ASC' + | 'BILLABLE_DESC' + | 'CATEGORY_ASC' + | 'CATEGORY_DESC' + | 'CONCURRENCY_ASC' + | 'CONCURRENCY_DESC' + | 'CPU_LIMIT_MILLICORES_ASC' + | 'CPU_LIMIT_MILLICORES_DESC' + | 'CPU_REQUEST_MILLICORES_ASC' + | 'CPU_REQUEST_MILLICORES_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' - | 'DATA_ASC' - | 'DATA_DESC' - | 'HASH_ASC' - | 'HASH_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'FN_CATEGORY_ASC' + | 'FN_CATEGORY_DESC' + | 'FUNCTION_COLUMNS_ASC' + | 'FUNCTION_COLUMNS_DESC' + | 'GRAPH_ID_ASC' + | 'GRAPH_ID_DESC' + | 'ICON_ASC' + | 'ICON_DESC' | 'ID_ASC' | 'ID_DESC' + | 'IMAGE_ASC' + | 'IMAGE_DESC' + | 'INPUTS_ASC' + | 'INPUTS_DESC' + | 'INTEGRATIONS_ASC' + | 'INTEGRATIONS_DESC' + | 'IS_PUBLISHED_ASC' + | 'IS_PUBLISHED_DESC' + | 'MAX_ATTEMPTS_ASC' + | 'MAX_ATTEMPTS_DESC' + | 'MEMORY_LIMIT_BYTES_ASC' + | 'MEMORY_LIMIT_BYTES_DESC' + | 'MEMORY_REQUEST_BYTES_ASC' + | 'MEMORY_REQUEST_BYTES_DESC' + | 'MODULE_TABLE_ASC' + | 'MODULE_TABLE_DESC' + | 'NAME_ASC' + | 'NAME_DESC' | 'NATURAL' + | 'OUTPUTS_ASC' + | 'OUTPUTS_DESC' + | 'PAYLOAD_ARGS_ASC' + | 'PAYLOAD_ARGS_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'SCOPE_ID_ASC' - | 'SCOPE_ID_DESC'; -export type FunctionGraphObjectOrderBy = + | 'PRIORITY_ASC' + | 'PRIORITY_DESC' + | 'PROPS_ASC' + | 'PROPS_DESC' + | 'PROTECTED_ASC' + | 'PROTECTED_DESC' + | 'PUBLISHED_AT_ASC' + | 'PUBLISHED_AT_DESC' + | 'QUEUE_NAME_ASC' + | 'QUEUE_NAME_DESC' + | 'REQUIRED_BUCKETS_ASC' + | 'REQUIRED_BUCKETS_DESC' + | 'REQUIRED_CAPABILITIES_ASC' + | 'REQUIRED_CAPABILITIES_DESC' + | 'REQUIRED_CONFIGS_ASC' + | 'REQUIRED_CONFIGS_DESC' + | 'REQUIRED_MODELS_ASC' + | 'REQUIRED_MODELS_DESC' + | 'REQUIRED_MODULES_ASC' + | 'REQUIRED_MODULES_DESC' + | 'REQUIRED_SECRETS_ASC' + | 'REQUIRED_SECRETS_DESC' + | 'RESOURCES_ASC' + | 'RESOURCES_DESC' + | 'RUNTIME_ASC' + | 'RUNTIME_DESC' + | 'SCALE_MAX_ASC' + | 'SCALE_MAX_DESC' + | 'SCALE_MIN_ASC' + | 'SCALE_MIN_DESC' + | 'SYSTEM_ASC' + | 'SYSTEM_DESC' + | 'TARGET_FUNCTION_ASC' + | 'TARGET_FUNCTION_DESC' + | 'TARGET_SCHEMA_ASC' + | 'TARGET_SCHEMA_DESC' + | 'TASK_IDENTIFIER_ASC' + | 'TASK_IDENTIFIER_DESC' + | 'TIMEOUT_SECONDS_ASC' + | 'TIMEOUT_SECONDS_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC' + | 'VOLATILE_ASC' + | 'VOLATILE_DESC'; +export type PlatformFunctionDeploymentOrderBy = + | 'ANNOTATIONS_ASC' + | 'ANNOTATIONS_DESC' + | 'CONCURRENCY_ASC' + | 'CONCURRENCY_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' - | 'DATA_ASC' - | 'DATA_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'ERROR_COUNT_ASC' + | 'ERROR_COUNT_DESC' + | 'HANDLER_NAME_ASC' + | 'HANDLER_NAME_DESC' | 'ID_ASC' | 'ID_DESC' - | 'KIDS_ASC' - | 'KIDS_DESC' - | 'KTREE_ASC' - | 'KTREE_DESC' + | 'IMAGE_ASC' + | 'IMAGE_DESC' + | 'IMAGE_VERSION_ASC' + | 'IMAGE_VERSION_DESC' + | 'LABELS_ASC' + | 'LABELS_DESC' + | 'LAST_ERROR_ASC' + | 'LAST_ERROR_AT_ASC' + | 'LAST_ERROR_AT_DESC' + | 'LAST_ERROR_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'SCOPE_ID_ASC' - | 'SCOPE_ID_DESC'; -export type FunctionGraphRefOrderBy = - | 'COMMIT_ID_ASC' - | 'COMMIT_ID_DESC' + | 'REALM_ASC' + | 'REALM_DESC' + | 'RESOURCES_ASC' + | 'RESOURCES_DESC' + | 'REVISION_ASC' + | 'REVISION_DESC' + | 'SCALE_MAX_ASC' + | 'SCALE_MAX_DESC' + | 'SCALE_MIN_ASC' + | 'SCALE_MIN_DESC' + | 'SERVICE_NAME_ASC' + | 'SERVICE_NAME_DESC' + | 'SERVICE_URL_ASC' + | 'SERVICE_URL_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'TIMEOUT_SECONDS_ASC' + | 'TIMEOUT_SECONDS_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +export type PlatformFunctionDeploymentEventOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DEPLOYMENT_ID_ASC' + | 'DEPLOYMENT_ID_DESC' + | 'EVENT_TYPE_ASC' + | 'EVENT_TYPE_DESC' | 'ID_ASC' | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' + | 'MESSAGE_ASC' + | 'MESSAGE_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' | 'NATURAL' | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'SCOPE_ID_ASC' - | 'SCOPE_ID_DESC' - | 'STORE_ID_ASC' - | 'STORE_ID_DESC'; -export type FunctionGraphStoreOrderBy = + | 'PRIMARY_KEY_DESC'; +export type PlatformFunctionExecutionLogOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' - | 'HASH_ASC' - | 'HASH_DESC' | 'ID_ASC' | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' + | 'INVOCATION_ID_ASC' + | 'INVOCATION_ID_DESC' + | 'LOG_LEVEL_ASC' + | 'LOG_LEVEL_DESC' + | 'MESSAGE_ASC' + | 'MESSAGE_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'SCOPE_ID_ASC' - | 'SCOPE_ID_DESC'; -export type FunctionInvocationAttemptOrderBy = + | 'TASK_IDENTIFIER_ASC' + | 'TASK_IDENTIFIER_DESC'; +export type PlatformFunctionInvocationAttemptOrderBy = | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'ATTEMPT_ASC' | 'ATTEMPT_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' | 'DURATION_MS_ASC' | 'DURATION_MS_DESC' | 'ERROR_ASC' @@ -6400,7 +13153,7 @@ export type FunctionInvocationAttemptOrderBy = | 'SUCCESS_DESC' | 'TASK_IDENTIFIER_ASC' | 'TASK_IDENTIFIER_DESC'; -export type FunctionInvocationOrderBy = +export type PlatformFunctionInvocationOrderBy = | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'API_BINDING_ID_ASC' @@ -6411,12 +13164,18 @@ export type FunctionInvocationOrderBy = | 'COMPLETED_AT_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'DEFINITION_SCOPE_ASC' | 'DEFINITION_SCOPE_DESC' | 'DURATION_MS_ASC' | 'DURATION_MS_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'ENTITY_TYPE_ASC' + | 'ENTITY_TYPE_DESC' | 'ERROR_ASC' | 'ERROR_DESC' | 'FUNCTION_DEFINITION_ID_ASC' @@ -6428,12 +13187,16 @@ export type FunctionInvocationOrderBy = | 'JOB_ID_ASC' | 'JOB_ID_DESC' | 'NATURAL' + | 'ORGANIZATION_ID_ASC' + | 'ORGANIZATION_ID_DESC' | 'PARENT_INVOCATION_ID_ASC' | 'PARENT_INVOCATION_ID_DESC' | 'PAYLOAD_ASC' | 'PAYLOAD_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' + | 'PRINCIPAL_ID_ASC' + | 'PRINCIPAL_ID_DESC' | 'PROVENANCE_ASC' | 'PROVENANCE_DESC' | 'RESULT_ASC' @@ -6444,21 +13207,77 @@ export type FunctionInvocationOrderBy = | 'STATUS_DESC' | 'TASK_IDENTIFIER_ASC' | 'TASK_IDENTIFIER_DESC'; -export type GetAllTreeNodesRecordsOrderBy = +export type PlatformImageOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'DIGEST_ASC' + | 'DIGEST_DESC' + | 'EXPIRES_AT_ASC' + | 'EXPIRES_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_PUBLISHED_ASC' + | 'IS_PUBLISHED_DESC' + | 'LABELS_ASC' + | 'LABELS_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'PLATFORM_ONLY_ASC' + | 'PLATFORM_ONLY_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' + | 'REGISTRY_HOST_ASC' + | 'REGISTRY_HOST_DESC' + | 'REPOSITORY_ASC' + | 'REPOSITORY_DESC' + | 'RUNTIME_ASC' + | 'RUNTIME_DESC' + | 'TAG_ASC' + | 'TAG_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +export type PlatformImageGrantOrderBy = + | 'ACTIONS_ASC' + | 'ACTIONS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'EXPIRES_AT_ASC' + | 'EXPIRES_AT_DESC' + | 'GRANTED_BY_ASC' + | 'GRANTED_BY_DESC' + | 'GRANTEE_KEY_ASC' + | 'GRANTEE_KEY_DESC' + | 'GRANTEE_SCOPE_ASC' + | 'GRANTEE_SCOPE_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IMAGE_ID_ASC' + | 'IMAGE_ID_DESC' | 'NATURAL' - | 'DATA_ASC' - | 'DATA_DESC' - | 'PATH_ASC' - | 'PATH_DESC'; -export type InfraCommitOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +export type PlatformInfraCommitOrderBy = | 'AUTHOR_ID_ASC' | 'AUTHOR_ID_DESC' | 'COMMITTER_ID_ASC' | 'COMMITTER_ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' | 'DATE_ASC' | 'DATE_DESC' | 'ID_ASC' @@ -6470,11 +13289,13 @@ export type InfraCommitOrderBy = | 'PARENT_IDS_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' | 'STORE_ID_ASC' | 'STORE_ID_DESC' | 'TREE_ID_ASC' | 'TREE_ID_DESC'; -export type InfraGetAllTreeNodesRecordsOrderBy = +export type PlatformInfraGetAllTreeNodesRecordsOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'NATURAL' @@ -6482,11 +13303,9 @@ export type InfraGetAllTreeNodesRecordsOrderBy = | 'DATA_DESC' | 'PATH_ASC' | 'PATH_DESC'; -export type InfraObjectOrderBy = +export type PlatformInfraObjectOrderBy = | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' | 'DATA_ASC' | 'DATA_DESC' | 'ID_ASC' @@ -6497,12 +13316,12 @@ export type InfraObjectOrderBy = | 'KTREE_DESC' | 'NATURAL' | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC'; -export type InfraRefOrderBy = + | 'PRIMARY_KEY_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC'; +export type PlatformInfraRefOrderBy = | 'COMMIT_ID_ASC' | 'COMMIT_ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' @@ -6510,13 +13329,13 @@ export type InfraRefOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' | 'STORE_ID_ASC' | 'STORE_ID_DESC'; -export type InfraStoreOrderBy = +export type PlatformInfraStoreOrderBy = | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' | 'HASH_ASC' | 'HASH_DESC' | 'ID_ASC' @@ -6525,42 +13344,64 @@ export type InfraStoreOrderBy = | 'NAME_DESC' | 'NATURAL' | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC'; -export type IntegrationProviderOrderBy = - | 'BRAND_ASC' - | 'BRAND_DESC' - | 'CATEGORY_ASC' - | 'CATEGORY_DESC' + | 'PRIMARY_KEY_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC'; +export type PlatformK8sResourceKindOrderBy = + | 'ACTIVE_ASC' + | 'ACTIVE_DESC' + | 'COMMIT_ID_ASC' + | 'COMMIT_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' + | 'DEFINITION_ASC' + | 'DEFINITION_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' - | 'ICON_ASC' - | 'ICON_DESC' | 'ID_ASC' | 'ID_DESC' - | 'LOGO_ASC' - | 'LOGO_DESC' - | 'NAME_ASC' - | 'NAME_DESC' + | 'LABEL_ASC' + | 'LABEL_DESC' | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'REQUIRED_CONFIGS_ASC' - | 'REQUIRED_CONFIGS_DESC' - | 'REQUIRED_SECRETS_ASC' - | 'REQUIRED_SECRETS_DESC' | 'SLUG_ASC' | 'SLUG_DESC' + | 'STORE_ID_ASC' + | 'STORE_ID_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type NamespaceOrderBy = +export type PlatformK8sSpecRuleOrderBy = + | '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' + | '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 PlatformNamespaceOrderBy = | 'ANNOTATIONS_ASC' | 'ANNOTATIONS_DESC' + | 'CLUSTER_ID_ASC' + | 'CLUSTER_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' | 'ID_ASC' @@ -6571,448 +13412,880 @@ export type NamespaceOrderBy = | 'IS_MANAGED_DESC' | 'LABELS_ASC' | 'LABELS_DESC' - | 'LAST_ERROR_ASC' - | 'LAST_ERROR_DESC' - | 'NAMESPACE_NAME_ASC' - | 'NAMESPACE_NAME_DESC' - | 'NAME_ASC' - | 'NAME_DESC' + | 'LAST_ERROR_ASC' + | 'LAST_ERROR_DESC' + | 'NAMESPACE_NAME_ASC' + | 'NAMESPACE_NAME_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type PlatformNamespaceEventOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'EVENT_TYPE_ASC' + | 'EVENT_TYPE_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'MESSAGE_ASC' + | 'MESSAGE_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC'; +export type PlatformProposalCommentOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'ATTACHMENTS_ASC' + | 'ATTACHMENTS_DESC' + | 'BODY_ASC' + | 'BODY_DESC' + | 'BODY_TRGM_SIMILARITY_ASC' + | 'BODY_TRGM_SIMILARITY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'EMBEDDING_ASC' + | 'EMBEDDING_DESC' + | 'EMBEDDING_UPDATED_AT_ASC' + | 'EMBEDDING_UPDATED_AT_DESC' + | 'EMBEDDING_VECTOR_DISTANCE_ASC' + | 'EMBEDDING_VECTOR_DISTANCE_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'LINE_ASC' + | 'LINE_DESC' + | 'NATURAL' + | 'OUTDATED_AT_ASC' + | 'OUTDATED_AT_DESC' + | 'PATH_ASC' + | 'PATH_DESC' + | 'PATH_TRGM_SIMILARITY_ASC' + | 'PATH_TRGM_SIMILARITY_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PROPOSAL_ID_ASC' + | 'PROPOSAL_ID_DESC' + | 'RESOLVED_AT_ASC' + | 'RESOLVED_AT_DESC' + | 'SEARCH_ASC' + | 'SEARCH_DESC' + | 'SEARCH_SCORE_ASC' + | 'SEARCH_SCORE_DESC' + | 'SEARCH_TSV_RANK_ASC' + | 'SEARCH_TSV_RANK_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +export type PlatformProposalOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'BODY_ASC' + | 'BODY_DESC' + | 'BODY_TRGM_SIMILARITY_ASC' + | 'BODY_TRGM_SIMILARITY_DESC' + | 'CLOSED_REASON_ASC' + | 'CLOSED_REASON_DESC' + | 'CLOSED_REASON_TRGM_SIMILARITY_ASC' + | 'CLOSED_REASON_TRGM_SIMILARITY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DECIDED_AT_ASC' + | 'DECIDED_AT_DESC' + | 'DUE_AT_ASC' + | 'DUE_AT_DESC' + | 'EMBEDDING_ASC' + | 'EMBEDDING_DESC' + | 'EMBEDDING_UPDATED_AT_ASC' + | 'EMBEDDING_UPDATED_AT_DESC' + | 'EMBEDDING_VECTOR_DISTANCE_ASC' + | 'EMBEDDING_VECTOR_DISTANCE_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'KIND_ASC' + | 'KIND_DESC' + | 'KIND_TRGM_SIMILARITY_ASC' + | 'KIND_TRGM_SIMILARITY_DESC' + | 'LABELS_ASC' + | 'LABELS_DESC' + | 'MERGED_AT_ASC' + | 'MERGED_AT_DESC' + | 'MERGE_COMMIT_ASC' + | 'MERGE_COMMIT_DESC' + | 'MERGE_COMMIT_TRGM_SIMILARITY_ASC' + | 'MERGE_COMMIT_TRGM_SIMILARITY_DESC' + | 'MERGE_METHOD_ASC' + | 'MERGE_METHOD_DESC' + | 'MERGE_METHOD_TRGM_SIMILARITY_ASC' + | 'MERGE_METHOD_TRGM_SIMILARITY_DESC' + | 'MERGE_REQUESTED_AT_ASC' + | 'MERGE_REQUESTED_AT_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' | 'NATURAL' + | 'PARENT_ID_ASC' + | 'PARENT_ID_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' + | 'PRIORITY_ASC' + | 'PRIORITY_DESC' + | 'REPOSITORY_ID_ASC' + | 'REPOSITORY_ID_DESC' + | 'RESOLUTION_ASC' + | 'RESOLUTION_DESC' + | 'RESOLUTION_TRGM_SIMILARITY_ASC' + | 'RESOLUTION_TRGM_SIMILARITY_DESC' + | 'SEARCH_ASC' + | 'SEARCH_DESC' + | 'SEARCH_SCORE_ASC' + | 'SEARCH_SCORE_DESC' + | 'SEARCH_TSV_RANK_ASC' + | 'SEARCH_TSV_RANK_DESC' + | 'SOURCE_REF_ASC' + | 'SOURCE_REF_DESC' + | 'SOURCE_REF_TRGM_SIMILARITY_ASC' + | 'SOURCE_REF_TRGM_SIMILARITY_DESC' | 'STATUS_ASC' | 'STATUS_DESC' + | 'STATUS_TRGM_SIMILARITY_ASC' + | 'STATUS_TRGM_SIMILARITY_DESC' + | 'TARGET_REF_ASC' + | 'TARGET_REF_DESC' + | 'TARGET_REF_TRGM_SIMILARITY_ASC' + | 'TARGET_REF_TRGM_SIMILARITY_DESC' + | 'TITLE_ASC' + | 'TITLE_DESC' + | 'TITLE_TRGM_SIMILARITY_ASC' + | 'TITLE_TRGM_SIMILARITY_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type NamespaceEventOrderBy = + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +export type PlatformProposalFileViewOrderBy = + | 'BLOB_SHA_ASC' + | 'BLOB_SHA_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' + | 'PATH_ASC' + | 'PATH_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PROPOSAL_ID_ASC' + | 'PROPOSAL_ID_DESC' + | 'REVIEWER_ID_ASC' + | 'REVIEWER_ID_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC' + | 'VIEWED_AT_ASC' + | 'VIEWED_AT_DESC'; +export type PlatformProposalReactionOrderBy = | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' + | 'COMMENT_ID_ASC' + | 'COMMENT_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'EVENT_TYPE_ASC' - | 'EVENT_TYPE_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'EMOJI_ASC' + | 'EMOJI_DESC' | 'ID_ASC' | 'ID_DESC' - | 'MESSAGE_ASC' - | 'MESSAGE_DESC' - | 'METADATA_ASC' - | 'METADATA_DESC' - | 'NAMESPACE_ID_ASC' - | 'NAMESPACE_ID_DESC' | 'NATURAL' | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC'; -export type PlatformFunctionApiBindingOrderBy = - | 'ALIAS_ASC' - | 'ALIAS_DESC' - | 'API_ID_ASC' - | 'API_ID_DESC' - | 'CONFIG_ASC' - | 'CONFIG_DESC' + | 'PRIMARY_KEY_DESC' + | 'PROPOSAL_ID_ASC' + | 'PROPOSAL_ID_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +export type PlatformProposalReviewOrderBy = + | 'BODY_ASC' + | 'BODY_DESC' + | 'BODY_TRGM_SIMILARITY_ASC' + | 'BODY_TRGM_SIMILARITY_DESC' + | 'COMMIT_SHA_ASC' + | 'COMMIT_SHA_DESC' + | 'COMMIT_SHA_TRGM_SIMILARITY_ASC' + | 'COMMIT_SHA_TRGM_SIMILARITY_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' - | 'FUNCTION_DEFINITION_ID_ASC' - | 'FUNCTION_DEFINITION_ID_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'ID_ASC' | 'ID_DESC' | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' + | 'PROPOSAL_ID_ASC' + | 'PROPOSAL_ID_DESC' + | 'REVIEWER_ID_ASC' + | 'REVIEWER_ID_DESC' + | 'SEARCH_ASC' + | 'SEARCH_DESC' + | 'SEARCH_SCORE_ASC' + | 'SEARCH_SCORE_DESC' + | 'SEARCH_TSV_RANK_ASC' + | 'SEARCH_TSV_RANK_DESC' + | 'SUBMITTED_AT_ASC' + | 'SUBMITTED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type PlatformFunctionCapabilityBindingOrderBy = - | 'BUCKET_ID_ASC' - | 'BUCKET_ID_DESC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC' + | 'VERDICT_ASC' + | 'VERDICT_DESC' + | 'VERDICT_TRGM_SIMILARITY_ASC' + | 'VERDICT_TRGM_SIMILARITY_DESC'; +export type PlatformProposalsChunkOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'BODY_ASC' + | 'BODY_DESC' + | 'CHUNK_INDEX_ASC' + | 'CHUNK_INDEX_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' - | 'FUNCTION_ID_ASC' - | 'FUNCTION_ID_DESC' - | 'GRAPH_ID_ASC' - | 'GRAPH_ID_DESC' + | 'EMBEDDING_ASC' + | 'EMBEDDING_DESC' + | 'EMBEDDING_VECTOR_DISTANCE_ASC' + | 'EMBEDDING_VECTOR_DISTANCE_DESC' | 'ID_ASC' | 'ID_DESC' - | 'KEY_ASC' - | 'KEY_DESC' - | 'LIFECYCLE_ASC' - | 'LIFECYCLE_DESC' | 'METADATA_ASC' | 'METADATA_DESC' | 'NATURAL' + | 'PLATFORM_PROPOSALS_ID_ASC' + | 'PLATFORM_PROPOSALS_ID_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' + | 'SEARCH_SCORE_ASC' + | 'SEARCH_SCORE_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type PlatformFunctionDefinitionOrderBy = - | 'ACCESS_CHANNELS_ASC' - | 'ACCESS_CHANNELS_DESC' - | 'BILLABLE_ASC' - | 'BILLABLE_DESC' - | 'CATEGORY_ASC' - | 'CATEGORY_DESC' - | 'CONCURRENCY_ASC' - | 'CONCURRENCY_DESC' - | 'CPU_LIMIT_MILLICORES_ASC' - | 'CPU_LIMIT_MILLICORES_DESC' - | 'CPU_REQUEST_MILLICORES_ASC' - | 'CPU_REQUEST_MILLICORES_DESC' +export type PlatformRegistryBindingOrderBy = | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'FN_CATEGORY_ASC' - | 'FN_CATEGORY_DESC' - | 'FUNCTION_COLUMNS_ASC' - | 'FUNCTION_COLUMNS_DESC' - | 'GRAPH_ID_ASC' - | 'GRAPH_ID_DESC' - | 'ICON_ASC' - | 'ICON_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'ID_ASC' | 'ID_DESC' - | 'IMAGE_ASC' - | 'IMAGE_DESC' - | 'INPUTS_ASC' - | 'INPUTS_DESC' - | 'INTEGRATIONS_ASC' - | 'INTEGRATIONS_DESC' - | 'IS_PUBLISHED_ASC' - | 'IS_PUBLISHED_DESC' - | 'MAX_ATTEMPTS_ASC' - | 'MAX_ATTEMPTS_DESC' - | 'MEMORY_LIMIT_BYTES_ASC' - | 'MEMORY_LIMIT_BYTES_DESC' - | 'MEMORY_REQUEST_BYTES_ASC' - | 'MEMORY_REQUEST_BYTES_DESC' - | 'MODULE_TABLE_ASC' - | 'MODULE_TABLE_DESC' - | 'NAME_ASC' - | 'NAME_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' | 'NATURAL' - | 'OUTPUTS_ASC' - | 'OUTPUTS_DESC' - | 'PAYLOAD_ARGS_ASC' - | 'PAYLOAD_ARGS_DESC' + | 'OBSERVED_CREDENTIAL_VERSION_ASC' + | 'OBSERVED_CREDENTIAL_VERSION_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'PRIORITY_ASC' - | 'PRIORITY_DESC' - | 'PROPS_ASC' - | 'PROPS_DESC' - | 'PROTECTED_ASC' - | 'PROTECTED_DESC' - | 'PUBLISHED_AT_ASC' - | 'PUBLISHED_AT_DESC' - | 'QUEUE_NAME_ASC' - | 'QUEUE_NAME_DESC' - | 'REQUIRED_BUCKETS_ASC' - | 'REQUIRED_BUCKETS_DESC' - | 'REQUIRED_CONFIGS_ASC' - | 'REQUIRED_CONFIGS_DESC' - | 'REQUIRED_MODELS_ASC' - | 'REQUIRED_MODELS_DESC' - | 'REQUIRED_SECRETS_ASC' - | 'REQUIRED_SECRETS_DESC' - | 'RESOURCES_ASC' - | 'RESOURCES_DESC' - | 'RUNTIME_ASC' - | 'RUNTIME_DESC' - | 'SCALE_MAX_ASC' - | 'SCALE_MAX_DESC' - | 'SCALE_MIN_ASC' - | 'SCALE_MIN_DESC' - | 'SYSTEM_ASC' - | 'SYSTEM_DESC' - | 'TARGET_FUNCTION_ASC' - | 'TARGET_FUNCTION_DESC' - | 'TARGET_SCHEMA_ASC' - | 'TARGET_SCHEMA_DESC' - | 'TASK_IDENTIFIER_ASC' - | 'TASK_IDENTIFIER_DESC' - | 'TIMEOUT_SECONDS_ASC' - | 'TIMEOUT_SECONDS_DESC' + | 'PULL_SECRET_NAME_ASC' + | 'PULL_SECRET_NAME_DESC' + | 'REALM_ASC' + | 'REALM_DESC' + | 'REGISTRY_HOST_ASC' + | 'REGISTRY_HOST_DESC' + | 'REGISTRY_ID_ASC' + | 'REGISTRY_ID_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' - | 'VOLATILE_ASC' - | 'VOLATILE_DESC'; -export type PlatformFunctionDeploymentOrderBy = - | 'ANNOTATIONS_ASC' - | 'ANNOTATIONS_DESC' - | 'CONCURRENCY_ASC' - | 'CONCURRENCY_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +export type PlatformRegistryOrderBy = + | 'AUTH_MODE_ASC' + | 'AUTH_MODE_DESC' + | 'BASE_PATH_ASC' + | 'BASE_PATH_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' - | 'ERROR_COUNT_ASC' - | 'ERROR_COUNT_DESC' - | 'HANDLER_NAME_ASC' - | 'HANDLER_NAME_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'CREDENTIAL_SECRET_NAME_ASC' + | 'CREDENTIAL_SECRET_NAME_DESC' + | 'HOST_ASC' + | 'HOST_DESC' | 'ID_ASC' | 'ID_DESC' - | 'IMAGE_ASC' - | 'IMAGE_DESC' - | 'IMAGE_VERSION_ASC' - | 'IMAGE_VERSION_DESC' + | 'INSTALLATION_ID_ASC' + | 'INSTALLATION_ID_DESC' + | 'IS_PUBLISHED_ASC' + | 'IS_PUBLISHED_DESC' + | 'KIND_ASC' + | 'KIND_DESC' | 'LABELS_ASC' | 'LABELS_DESC' | 'LAST_ERROR_ASC' - | 'LAST_ERROR_AT_ASC' - | 'LAST_ERROR_AT_DESC' | 'LAST_ERROR_DESC' - | 'NAMESPACE_ID_ASC' - | 'NAMESPACE_ID_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'NAME_ASC' + | 'NAME_DESC' | 'NATURAL' + | 'PLATFORM_ONLY_ASC' + | 'PLATFORM_ONLY_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'RESOURCES_ASC' - | 'RESOURCES_DESC' - | 'REVISION_ASC' - | 'REVISION_DESC' - | 'SCALE_MAX_ASC' - | 'SCALE_MAX_DESC' - | 'SCALE_MIN_ASC' - | 'SCALE_MIN_DESC' - | 'SERVICE_NAME_ASC' - | 'SERVICE_NAME_DESC' - | 'SERVICE_URL_ASC' - | 'SERVICE_URL_DESC' + | 'ROLE_ASC' + | 'ROLE_DESC' | 'STATUS_ASC' | 'STATUS_DESC' - | 'TIMEOUT_SECONDS_ASC' - | 'TIMEOUT_SECONDS_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type PlatformFunctionDeploymentEventOrderBy = - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +export type PlatformRegistryGrantOrderBy = + | 'ACTIONS_ASC' + | 'ACTIONS_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' - | 'DEPLOYMENT_ID_ASC' - | 'DEPLOYMENT_ID_DESC' - | 'EVENT_TYPE_ASC' - | 'EVENT_TYPE_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'EXPIRES_AT_ASC' + | 'EXPIRES_AT_DESC' + | 'GRANTED_BY_ASC' + | 'GRANTED_BY_DESC' + | 'GRANTEE_KEY_ASC' + | 'GRANTEE_KEY_DESC' + | 'GRANTEE_SCOPE_ASC' + | 'GRANTEE_SCOPE_DESC' | 'ID_ASC' | 'ID_DESC' - | 'MESSAGE_ASC' - | 'MESSAGE_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'REGISTRY_ID_ASC' + | 'REGISTRY_ID_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +export type PlatformRepositoryOrderBy = + | 'CLONE_URL_ASC' + | 'CLONE_URL_DESC' + | 'CLONE_URL_TRGM_SIMILARITY_ASC' + | 'CLONE_URL_TRGM_SIMILARITY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DEFAULT_BRANCH_ASC' + | 'DEFAULT_BRANCH_DESC' + | 'DEFAULT_BRANCH_TRGM_SIMILARITY_ASC' + | 'DEFAULT_BRANCH_TRGM_SIMILARITY_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'DESCRIPTION_TRGM_SIMILARITY_ASC' + | 'DESCRIPTION_TRGM_SIMILARITY_DESC' + | 'EMBEDDING_ASC' + | 'EMBEDDING_DESC' + | 'EMBEDDING_UPDATED_AT_ASC' + | 'EMBEDDING_UPDATED_AT_DESC' + | 'EMBEDDING_VECTOR_DISTANCE_ASC' + | 'EMBEDDING_VECTOR_DISTANCE_DESC' + | 'EXTERNAL_ID_ASC' + | 'EXTERNAL_ID_DESC' + | 'EXTERNAL_ID_TRGM_SIMILARITY_ASC' + | 'EXTERNAL_ID_TRGM_SIMILARITY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_ARCHIVED_ASC' + | 'IS_ARCHIVED_DESC' | 'METADATA_ASC' | 'METADATA_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NAME_TRGM_SIMILARITY_ASC' + | 'NAME_TRGM_SIMILARITY_DESC' | 'NATURAL' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC'; -export type PlatformFunctionExecutionLogOrderBy = + | 'PRIMARY_KEY_DESC' + | 'PROVIDER_ASC' + | 'PROVIDER_DESC' + | 'PROVIDER_TRGM_SIMILARITY_ASC' + | 'PROVIDER_TRGM_SIMILARITY_DESC' + | 'SEARCH_ASC' + | 'SEARCH_DESC' + | 'SEARCH_SCORE_ASC' + | 'SEARCH_SCORE_DESC' + | 'SEARCH_TSV_RANK_ASC' + | 'SEARCH_TSV_RANK_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'SLUG_TRGM_SIMILARITY_ASC' + | 'SLUG_TRGM_SIMILARITY_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC' + | 'VISIBILITY_ASC' + | 'VISIBILITY_DESC' + | 'VISIBILITY_TRGM_SIMILARITY_ASC' + | 'VISIBILITY_TRGM_SIMILARITY_DESC'; +export type PlatformRepositoryEventOrderBy = | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' + | 'COMMIT_SHA_ASC' + | 'COMMIT_SHA_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DELIVERY_ID_ASC' + | 'DELIVERY_ID_DESC' + | 'EVENT_TYPE_ASC' + | 'EVENT_TYPE_DESC' | 'ID_ASC' | 'ID_DESC' - | 'INVOCATION_ID_ASC' - | 'INVOCATION_ID_DESC' - | 'LOG_LEVEL_ASC' - | 'LOG_LEVEL_DESC' - | 'MESSAGE_ASC' - | 'MESSAGE_DESC' | 'METADATA_ASC' | 'METADATA_DESC' | 'NATURAL' + | 'PAYLOAD_ASC' + | 'PAYLOAD_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'REF_ASC' + | 'REF_DESC' + | 'REPOSITORY_ID_ASC' + | 'REPOSITORY_ID_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +export type PlatformRepositoryRequiredCheckOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'TASK_IDENTIFIER_ASC' - | 'TASK_IDENTIFIER_DESC'; -export type PlatformFunctionInvocationAttemptOrderBy = - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'ATTEMPT_ASC' - | 'ATTEMPT_DESC' + | 'REPOSITORY_ID_ASC' + | 'REPOSITORY_ID_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'WORKFLOW_ID_ASC' + | 'WORKFLOW_ID_DESC'; +export type PlatformRepositoryWorkflowOrderBy = + | 'CANCEL_IN_PROGRESS_ASC' + | 'CANCEL_IN_PROGRESS_DESC' + | 'CONCURRENCY_KEY_ASC' + | 'CONCURRENCY_KEY_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' - | 'DURATION_MS_ASC' - | 'DURATION_MS_DESC' - | 'ERROR_ASC' - | 'ERROR_DESC' - | 'ERROR_DETAIL_ASC' - | 'ERROR_DETAIL_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'EVENT_TYPE_ASC' + | 'EVENT_TYPE_DESC' + | 'GRAPH_ID_ASC' + | 'GRAPH_ID_DESC' | 'ID_ASC' | 'ID_DESC' - | 'INVOCATION_CREATED_AT_ASC' - | 'INVOCATION_CREATED_AT_DESC' - | 'INVOCATION_ID_ASC' - | 'INVOCATION_ID_DESC' + | 'INPUTS_ASC' + | 'INPUTS_DESC' + | 'IS_ENABLED_ASC' + | 'IS_ENABLED_DESC' + | 'NAME_ASC' + | 'NAME_DESC' | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'STARTED_AT_ASC' - | 'STARTED_AT_DESC' - | 'SUCCESS_ASC' - | 'SUCCESS_DESC' - | 'TASK_IDENTIFIER_ASC' - | 'TASK_IDENTIFIER_DESC'; -export type PlatformFunctionInvocationOrderBy = - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'API_BINDING_ID_ASC' - | 'API_BINDING_ID_DESC' - | 'CHANNEL_ASC' - | 'CHANNEL_DESC' - | 'COMPLETED_AT_ASC' - | 'COMPLETED_AT_DESC' + | 'REF_PATTERN_ASC' + | 'REF_PATTERN_DESC' + | 'REPOSITORY_ID_ASC' + | 'REPOSITORY_ID_DESC' + | 'REQUIRED_SECRETS_ASC' + | 'REQUIRED_SECRETS_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +export type PlatformResourceOrderBy = + | 'ANNOTATIONS_ASC' + | 'ANNOTATIONS_DESC' + | 'CPU_LIMIT_MILLICORES_ASC' + | 'CPU_LIMIT_MILLICORES_DESC' + | 'CPU_REQUEST_MILLICORES_ASC' + | 'CPU_REQUEST_MILLICORES_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'DEFINITION_SCOPE_ASC' - | 'DEFINITION_SCOPE_DESC' - | 'DURATION_MS_ASC' - | 'DURATION_MS_DESC' - | 'ERROR_ASC' - | 'ERROR_DESC' - | 'FUNCTION_DEFINITION_ID_ASC' - | 'FUNCTION_DEFINITION_ID_DESC' - | 'GRAPH_EXECUTION_ID_ASC' - | 'GRAPH_EXECUTION_ID_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'ERROR_COUNT_ASC' + | 'ERROR_COUNT_DESC' | 'ID_ASC' | 'ID_DESC' - | 'JOB_ID_ASC' - | 'JOB_ID_DESC' + | 'IMAGE_REF_ASC' + | 'IMAGE_REF_DESC' + | 'INSTALLATION_ID_ASC' + | 'INSTALLATION_ID_DESC' + | 'INTEGRATIONS_ASC' + | 'INTEGRATIONS_DESC' + | 'KIND_ASC' + | 'KIND_DESC' + | 'LABELS_ASC' + | 'LABELS_DESC' + | 'LAST_ERROR_ASC' + | 'LAST_ERROR_DESC' + | 'LAST_HEARTBEAT_AT_ASC' + | 'LAST_HEARTBEAT_AT_DESC' + | 'MEMORY_LIMIT_BYTES_ASC' + | 'MEMORY_LIMIT_BYTES_DESC' + | 'MEMORY_REQUEST_BYTES_ASC' + | 'MEMORY_REQUEST_BYTES_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' | 'NATURAL' - | 'PARENT_INVOCATION_ID_ASC' - | 'PARENT_INVOCATION_ID_DESC' - | 'PAYLOAD_ASC' - | 'PAYLOAD_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'PROVENANCE_ASC' - | 'PROVENANCE_DESC' - | 'RESULT_ASC' - | 'RESULT_DESC' - | 'STARTED_AT_ASC' - | 'STARTED_AT_DESC' + | 'REALM_ASC' + | 'REALM_DESC' + | 'REPLICAS_ASC' + | 'REPLICAS_DESC' + | 'REQUIRED_CONFIGS_ASC' + | 'REQUIRED_CONFIGS_DESC' + | 'REQUIRED_SECRETS_ASC' + | 'REQUIRED_SECRETS_DESC' + | 'RESOURCE_DEFINITION_ID_ASC' + | 'RESOURCE_DEFINITION_ID_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'SPEC_ASC' + | 'SPEC_DESC' | 'STATUS_ASC' | 'STATUS_DESC' - | 'TASK_IDENTIFIER_ASC' - | 'TASK_IDENTIFIER_DESC'; -export type PlatformInfraCommitOrderBy = - | 'AUTHOR_ID_ASC' - | 'AUTHOR_ID_DESC' - | 'COMMITTER_ID_ASC' - | 'COMMITTER_ID_DESC' - | 'DATE_ASC' - | 'DATE_DESC' + | 'STATUS_OBSERVED_ASC' + | 'STATUS_OBSERVED_DESC' + | 'STORAGE_CLASS_ASC' + | 'STORAGE_CLASS_DESC' + | 'STORAGE_SIZE_BYTES_ASC' + | 'STORAGE_SIZE_BYTES_DESC' + | 'STORAGE_TOTAL_BYTES_ASC' + | 'STORAGE_TOTAL_BYTES_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +export type PlatformResourceDeclaredCapacityOrderBy = + | 'CPU_LIMIT_MILLICORES_ASC' + | 'CPU_LIMIT_MILLICORES_DESC' + | 'CPU_REQUEST_MILLICORES_ASC' + | 'CPU_REQUEST_MILLICORES_DESC' + | 'INSTALLATION_ID_ASC' + | 'INSTALLATION_ID_DESC' + | 'IS_TRANSIENT_ASC' + | 'IS_TRANSIENT_DESC' + | 'KIND_ASC' + | 'KIND_DESC' + | 'MEMORY_LIMIT_BYTES_ASC' + | 'MEMORY_LIMIT_BYTES_DESC' + | 'MEMORY_REQUEST_BYTES_ASC' + | 'MEMORY_REQUEST_BYTES_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'NATURAL' + | 'POD_COUNT_MAX_ASC' + | 'POD_COUNT_MAX_DESC' + | 'POD_COUNT_MIN_ASC' + | 'POD_COUNT_MIN_DESC' + | 'SOURCE_ASC' + | 'SOURCE_DESC' + | 'SOURCE_ID_ASC' + | 'SOURCE_ID_DESC' + | 'STORAGE_SIZE_BYTES_ASC' + | 'STORAGE_SIZE_BYTES_DESC' + | 'STORAGE_TOTAL_BYTES_ASC' + | 'STORAGE_TOTAL_BYTES_DESC'; +export type PlatformResourceDefinitionOrderBy = + | 'ANNOTATIONS_ASC' + | 'ANNOTATIONS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DEFAULT_SPEC_ASC' + | 'DEFAULT_SPEC_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' | 'ID_ASC' | 'ID_DESC' - | 'MESSAGE_ASC' - | 'MESSAGE_DESC' + | 'INTEGRATIONS_ASC' + | 'INTEGRATIONS_DESC' + | 'KIND_ASC' + | 'KIND_DESC' + | 'LABELS_ASC' + | 'LABELS_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' | 'NATURAL' - | 'PARENT_IDS_ASC' - | 'PARENT_IDS_DESC' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'SCOPE_ID_ASC' - | 'SCOPE_ID_DESC' - | 'STORE_ID_ASC' - | 'STORE_ID_DESC' - | 'TREE_ID_ASC' - | 'TREE_ID_DESC'; -export type PlatformInfraGetAllTreeNodesRecordsOrderBy = + | 'PARAMS_SCHEMA_ASC' + | 'PARAMS_SCHEMA_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' - | 'DATA_ASC' - | 'DATA_DESC' - | 'PATH_ASC' - | 'PATH_DESC'; -export type PlatformInfraObjectOrderBy = + | 'REQUIRED_CONFIGS_ASC' + | 'REQUIRED_CONFIGS_DESC' + | 'REQUIRED_SECRETS_ASC' + | 'REQUIRED_SECRETS_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'STEP_UP_MIN_AGE_ASC' + | 'STEP_UP_MIN_AGE_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +export type PlatformResourceEventOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' - | 'DATA_ASC' - | 'DATA_DESC' + | 'EVENT_TYPE_ASC' + | 'EVENT_TYPE_DESC' | 'ID_ASC' | 'ID_DESC' - | 'KIDS_ASC' - | 'KIDS_DESC' - | 'KTREE_ASC' - | 'KTREE_DESC' + | 'MESSAGE_ASC' + | 'MESSAGE_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'SCOPE_ID_ASC' - | 'SCOPE_ID_DESC'; -export type PlatformInfraRefOrderBy = + | 'RESOURCE_ID_ASC' + | 'RESOURCE_ID_DESC'; +export type PlatformResourceInstallationOrderBy = | 'COMMIT_ID_ASC' | 'COMMIT_ID_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'SCOPE_ID_ASC' - | 'SCOPE_ID_DESC' - | 'STORE_ID_ASC' - | 'STORE_ID_DESC'; -export type PlatformInfraStoreOrderBy = | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' - | 'HASH_ASC' - | 'HASH_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'ID_ASC' | 'ID_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'NATURAL' + | 'PARAMS_ASC' + | 'PARAMS_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'SCOPE_ID_ASC' - | 'SCOPE_ID_DESC'; -export type PlatformNamespaceOrderBy = - | 'ANNOTATIONS_ASC' - | 'ANNOTATIONS_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' + | 'REVISION_ASC' + | 'REVISION_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'STORE_ID_ASC' + | 'STORE_ID_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +export type PlatformResourceObservedStorageOrderBy = + | 'CAPACITY_ASC' + | 'CAPACITY_BYTES_ASC' + | 'CAPACITY_BYTES_DESC' + | 'CAPACITY_DESC' + | 'CLAIM_NAME_ASC' + | 'CLAIM_NAME_DESC' + | 'DECLARED_STORAGE_CLASS_ASC' + | 'DECLARED_STORAGE_CLASS_DESC' + | 'DECLARED_STORAGE_SIZE_BYTES_ASC' + | 'DECLARED_STORAGE_SIZE_BYTES_DESC' + | 'DECLARED_STORAGE_TOTAL_BYTES_ASC' + | 'DECLARED_STORAGE_TOTAL_BYTES_DESC' + | 'INSTALLATION_ID_ASC' + | 'INSTALLATION_ID_DESC' + | 'IS_BOUND_ASC' + | 'IS_BOUND_DESC' + | 'KIND_ASC' + | 'KIND_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'NATURAL' + | 'PHASE_ASC' + | 'PHASE_DESC' + | 'REQUESTED_ASC' + | 'REQUESTED_BYTES_ASC' + | 'REQUESTED_BYTES_DESC' + | 'REQUESTED_DESC' + | 'RESOURCE_ID_ASC' + | 'RESOURCE_ID_DESC' + | 'RESOURCE_STATUS_ASC' + | 'RESOURCE_STATUS_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'STORAGE_CLASS_ASC' + | 'STORAGE_CLASS_DESC' + | 'STORAGE_NAME_ASC' + | 'STORAGE_NAME_DESC'; +export type PlatformResourceStatusCheckOrderBy = + | 'COMPLETED_AT_ASC' + | 'COMPLETED_AT_DESC' | 'ID_ASC' | 'ID_DESC' - | 'IS_ACTIVE_ASC' - | 'IS_ACTIVE_DESC' - | 'IS_MANAGED_ASC' - | 'IS_MANAGED_DESC' - | 'LABELS_ASC' - | 'LABELS_DESC' - | 'LAST_ERROR_ASC' - | 'LAST_ERROR_DESC' - | 'NAMESPACE_NAME_ASC' - | 'NAMESPACE_NAME_DESC' - | 'NAME_ASC' - | 'NAME_DESC' | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' + | 'REQUESTED_AT_ASC' + | 'REQUESTED_AT_DESC' + | 'REQUESTED_BY_ASC' + | 'REQUESTED_BY_DESC' + | 'RESOURCE_ID_ASC' + | 'RESOURCE_ID_DESC' + | 'RESULT_ASC' + | 'RESULT_DESC' | 'STATUS_ASC' - | 'STATUS_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type PlatformNamespaceEventOrderBy = - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'EVENT_TYPE_ASC' - | 'EVENT_TYPE_DESC' + | 'STATUS_DESC'; +export type PlatformResourceUsageLogOrderBy = + | 'CPU_MILLICORES_ASC' + | 'CPU_MILLICORES_DESC' | 'ID_ASC' | 'ID_DESC' - | 'MESSAGE_ASC' - | 'MESSAGE_DESC' - | 'METADATA_ASC' - | 'METADATA_DESC' + | 'INTERVAL_SECONDS_ASC' + | 'INTERVAL_SECONDS_DESC' + | 'MEMORY_BYTES_ASC' + | 'MEMORY_BYTES_DESC' + | 'METRICS_ASC' + | 'METRICS_DESC' | 'NAMESPACE_ID_ASC' | 'NAMESPACE_ID_DESC' | 'NATURAL' | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC'; -export type PlatformResourceOrderBy = + | 'PRIMARY_KEY_DESC' + | 'RESOURCE_ID_ASC' + | 'RESOURCE_ID_DESC' + | 'SAMPLED_AT_ASC' + | 'SAMPLED_AT_DESC' + | 'SOURCE_ASC' + | 'SOURCE_DESC'; +export type PlatformResourceUsageSummaryOrderBy = + | 'DATE_ASC' + | 'DATE_DESC' + | 'GB_SECONDS_ASC' + | 'GB_SECONDS_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'MAX_CPU_MILLICORES_ASC' + | 'MAX_CPU_MILLICORES_DESC' + | 'MAX_MEMORY_BYTES_ASC' + | 'MAX_MEMORY_BYTES_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'RESOURCE_ID_ASC' + | 'RESOURCE_ID_DESC' + | 'RUNTIME_SECONDS_ASC' + | 'RUNTIME_SECONDS_DESC' + | 'SAMPLE_COUNT_ASC' + | 'SAMPLE_COUNT_DESC'; +export type PlatformResourceUtilizationOrderBy = + | 'AVG_MEMORY_BYTES_ASC' + | 'AVG_MEMORY_BYTES_DESC' + | 'CPU_LIMIT_MILLICORES_ASC' + | 'CPU_LIMIT_MILLICORES_DESC' + | 'CPU_PEAK_UTILIZATION_ASC' + | 'CPU_PEAK_UTILIZATION_DESC' + | 'CPU_REQUEST_HEADROOM_MILLICORES_ASC' + | 'CPU_REQUEST_HEADROOM_MILLICORES_DESC' + | 'CPU_REQUEST_MILLICORES_ASC' + | 'CPU_REQUEST_MILLICORES_DESC' + | 'DATE_ASC' + | 'DATE_DESC' + | 'GB_SECONDS_ASC' + | 'GB_SECONDS_DESC' + | 'KIND_ASC' + | 'KIND_DESC' + | 'MAX_CPU_MILLICORES_ASC' + | 'MAX_CPU_MILLICORES_DESC' + | 'MAX_MEMORY_BYTES_ASC' + | 'MAX_MEMORY_BYTES_DESC' + | 'MEMORY_LIMIT_BYTES_ASC' + | 'MEMORY_LIMIT_BYTES_DESC' + | 'MEMORY_PEAK_UTILIZATION_ASC' + | 'MEMORY_PEAK_UTILIZATION_DESC' + | 'MEMORY_REQUEST_BYTES_ASC' + | 'MEMORY_REQUEST_BYTES_DESC' + | 'MEMORY_REQUEST_HEADROOM_BYTES_ASC' + | 'MEMORY_REQUEST_HEADROOM_BYTES_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'NATURAL' + | 'REPLICAS_ASC' + | 'REPLICAS_DESC' + | 'RESOURCE_ID_ASC' + | 'RESOURCE_ID_DESC' + | 'RUNTIME_SECONDS_ASC' + | 'RUNTIME_SECONDS_DESC' + | 'SAMPLE_COUNT_ASC' + | 'SAMPLE_COUNT_DESC'; +export type PlatformResourcesHealthOrderBy = | 'ANNOTATIONS_ASC' | 'ANNOTATIONS_DESC' | 'CPU_LIMIT_MILLICORES_ASC' @@ -7023,10 +14296,14 @@ export type PlatformResourceOrderBy = | 'CREATED_AT_DESC' | 'CREATED_BY_ASC' | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'ERROR_COUNT_ASC' | 'ERROR_COUNT_DESC' | 'ID_ASC' | 'ID_DESC' + | 'IMAGE_REF_ASC' + | 'IMAGE_REF_DESC' | 'INSTALLATION_ID_ASC' | 'INSTALLATION_ID_DESC' | 'INTEGRATIONS_ASC' @@ -7048,8 +14325,6 @@ export type PlatformResourceOrderBy = | 'NAME_ASC' | 'NAME_DESC' | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' | 'REALM_ASC' | 'REALM_DESC' | 'REPLICAS_ASC' @@ -7066,396 +14341,654 @@ export type PlatformResourceOrderBy = | 'SPEC_DESC' | 'STATUS_ASC' | 'STATUS_DESC' + | 'STATUS_DETAIL_ASC' + | 'STATUS_DETAIL_DESC' | 'STATUS_OBSERVED_ASC' | 'STATUS_OBSERVED_DESC' | 'STORAGE_CLASS_ASC' | 'STORAGE_CLASS_DESC' | 'STORAGE_SIZE_BYTES_ASC' | 'STORAGE_SIZE_BYTES_DESC' + | 'STORAGE_TOTAL_BYTES_ASC' + | 'STORAGE_TOTAL_BYTES_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +export type PlatformResourcesRequirementsStateOrderBy = + | 'CONFIG_HASH_ASC' + | 'CONFIG_HASH_DESC' + | 'CONFIG_OBJECT_NAME_ASC' + | 'CONFIG_OBJECT_NAME_DESC' + | 'NATURAL' + | 'REQUIREMENTS_HASH_ASC' + | 'REQUIREMENTS_HASH_DESC' + | 'RESOURCE_ID_ASC' + | 'RESOURCE_ID_DESC' + | 'SECRETS_HASH_ASC' + | 'SECRETS_HASH_DESC' + | 'SECRETS_OBJECT_NAME_ASC' + | 'SECRETS_OBJECT_NAME_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC'; +export type PlatformResourcesResolvedRequirementOrderBy = + | 'ATOM_ID_ASC' + | 'ATOM_ID_DESC' + | 'CONFIG_OBJECT_NAME_ASC' + | 'CONFIG_OBJECT_NAME_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'PRESENT_ASC' + | 'PRESENT_DESC' + | 'REALM_ASC' + | 'REALM_DESC' + | 'REQUIRED_ASC' + | 'REQUIRED_DESC' + | 'REQUIREMENT_KIND_ASC' + | 'REQUIREMENT_KIND_DESC' + | 'RESOURCE_ID_ASC' + | 'RESOURCE_ID_DESC' + | 'SECRETS_OBJECT_NAME_ASC' + | 'SECRETS_OBJECT_NAME_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC'; +export type PlatformWebhookEndpointOrderBy = + | 'ACTIVE_ASC' + | 'ACTIVE_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'FUNCTION_DEFINITION_ID_ASC' + | 'FUNCTION_DEFINITION_ID_DESC' + | 'HOST_ASC' + | 'HOST_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'NATURAL' + | 'PATH_ASC' + | 'PATH_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PROVIDER_ASC' + | 'PROVIDER_DESC' + | 'REPLAY_WINDOW_SECONDS_ASC' + | 'REPLAY_WINDOW_SECONDS_DESC' + | 'SIGNING_SECRET_NAME_ASC' + | 'SIGNING_SECRET_NAME_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +export type PlatformWebhookEventOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ENDPOINT_ID_ASC' + | 'ENDPOINT_ID_DESC' + | 'ERROR_ASC' + | 'ERROR_DESC' + | 'EXTERNAL_EVENT_ID_ASC' + | 'EXTERNAL_EVENT_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'INVOCATION_CREATED_AT_ASC' + | 'INVOCATION_CREATED_AT_DESC' + | 'INVOCATION_ID_ASC' + | 'INVOCATION_ID_DESC' + | 'NATURAL' + | 'PAYLOAD_ASC' + | 'PAYLOAD_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PROVIDER_ASC' + | 'PROVIDER_DESC' + | 'PROVIDER_TIMESTAMP_ASC' + | 'PROVIDER_TIMESTAMP_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type ProposalCommentOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'ATTACHMENTS_ASC' + | 'ATTACHMENTS_DESC' + | 'BODY_ASC' + | 'BODY_DESC' + | 'BODY_TRGM_SIMILARITY_ASC' + | 'BODY_TRGM_SIMILARITY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'EMBEDDING_ASC' + | 'EMBEDDING_DESC' + | 'EMBEDDING_UPDATED_AT_ASC' + | 'EMBEDDING_UPDATED_AT_DESC' + | 'EMBEDDING_VECTOR_DISTANCE_ASC' + | 'EMBEDDING_VECTOR_DISTANCE_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'LINE_ASC' + | 'LINE_DESC' + | 'NATURAL' + | 'OUTDATED_AT_ASC' + | 'OUTDATED_AT_DESC' + | 'PATH_ASC' + | 'PATH_DESC' + | 'PATH_TRGM_SIMILARITY_ASC' + | 'PATH_TRGM_SIMILARITY_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PROPOSAL_ID_ASC' + | 'PROPOSAL_ID_DESC' + | 'RESOLVED_AT_ASC' + | 'RESOLVED_AT_DESC' + | 'SEARCH_ASC' + | 'SEARCH_DESC' + | 'SEARCH_SCORE_ASC' + | 'SEARCH_SCORE_DESC' + | 'SEARCH_TSV_RANK_ASC' + | 'SEARCH_TSV_RANK_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC'; -export type PlatformResourceDeclaredCapacityOrderBy = - | 'CPU_LIMIT_MILLICORES_ASC' - | 'CPU_LIMIT_MILLICORES_DESC' - | 'CPU_REQUEST_MILLICORES_ASC' - | 'CPU_REQUEST_MILLICORES_DESC' - | 'INSTALLATION_ID_ASC' - | 'INSTALLATION_ID_DESC' - | 'IS_TRANSIENT_ASC' - | 'IS_TRANSIENT_DESC' - | 'KIND_ASC' - | 'KIND_DESC' - | 'MEMORY_LIMIT_BYTES_ASC' - | 'MEMORY_LIMIT_BYTES_DESC' - | 'MEMORY_REQUEST_BYTES_ASC' - | 'MEMORY_REQUEST_BYTES_DESC' - | 'NAMESPACE_ID_ASC' - | 'NAMESPACE_ID_DESC' - | 'NATURAL' - | 'POD_COUNT_MAX_ASC' - | 'POD_COUNT_MAX_DESC' - | 'POD_COUNT_MIN_ASC' - | 'POD_COUNT_MIN_DESC' - | 'SOURCE_ASC' - | 'SOURCE_DESC' - | 'SOURCE_ID_ASC' - | 'SOURCE_ID_DESC' - | 'STORAGE_SIZE_BYTES_ASC' - | 'STORAGE_SIZE_BYTES_DESC'; -export type PlatformResourceDefinitionOrderBy = - | 'ANNOTATIONS_ASC' - | 'ANNOTATIONS_DESC' + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +export type ProposalOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'BODY_ASC' + | 'BODY_DESC' + | 'BODY_TRGM_SIMILARITY_ASC' + | 'BODY_TRGM_SIMILARITY_DESC' + | 'CLOSED_REASON_ASC' + | 'CLOSED_REASON_DESC' + | 'CLOSED_REASON_TRGM_SIMILARITY_ASC' + | 'CLOSED_REASON_TRGM_SIMILARITY_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'CREATED_BY_ASC' | 'CREATED_BY_DESC' - | 'DEFAULT_SPEC_ASC' - | 'DEFAULT_SPEC_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DECIDED_AT_ASC' + | 'DECIDED_AT_DESC' + | 'DUE_AT_ASC' + | 'DUE_AT_DESC' + | 'EMBEDDING_ASC' + | 'EMBEDDING_DESC' + | 'EMBEDDING_UPDATED_AT_ASC' + | 'EMBEDDING_UPDATED_AT_DESC' + | 'EMBEDDING_VECTOR_DISTANCE_ASC' + | 'EMBEDDING_VECTOR_DISTANCE_DESC' | 'ID_ASC' | 'ID_DESC' - | 'INTEGRATIONS_ASC' - | 'INTEGRATIONS_DESC' | 'KIND_ASC' | 'KIND_DESC' + | 'KIND_TRGM_SIMILARITY_ASC' + | 'KIND_TRGM_SIMILARITY_DESC' | 'LABELS_ASC' | 'LABELS_DESC' - | 'NAMESPACE_ID_ASC' - | 'NAMESPACE_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' + | 'MERGED_AT_ASC' + | 'MERGED_AT_DESC' + | 'MERGE_COMMIT_ASC' + | 'MERGE_COMMIT_DESC' + | 'MERGE_COMMIT_TRGM_SIMILARITY_ASC' + | 'MERGE_COMMIT_TRGM_SIMILARITY_DESC' + | 'MERGE_METHOD_ASC' + | 'MERGE_METHOD_DESC' + | 'MERGE_METHOD_TRGM_SIMILARITY_ASC' + | 'MERGE_METHOD_TRGM_SIMILARITY_DESC' + | 'MERGE_REQUESTED_AT_ASC' + | 'MERGE_REQUESTED_AT_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' | 'NATURAL' - | 'PARAMS_SCHEMA_ASC' - | 'PARAMS_SCHEMA_DESC' + | 'PARENT_ID_ASC' + | 'PARENT_ID_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'REQUIRED_CONFIGS_ASC' - | 'REQUIRED_CONFIGS_DESC' - | 'REQUIRED_SECRETS_ASC' - | 'REQUIRED_SECRETS_DESC' - | 'SLUG_ASC' - | 'SLUG_DESC' - | 'STEP_UP_MIN_AGE_ASC' - | 'STEP_UP_MIN_AGE_DESC' + | 'PRIORITY_ASC' + | 'PRIORITY_DESC' + | 'REPOSITORY_ID_ASC' + | 'REPOSITORY_ID_DESC' + | 'RESOLUTION_ASC' + | 'RESOLUTION_DESC' + | 'RESOLUTION_TRGM_SIMILARITY_ASC' + | 'RESOLUTION_TRGM_SIMILARITY_DESC' + | 'SEARCH_ASC' + | 'SEARCH_DESC' + | 'SEARCH_SCORE_ASC' + | 'SEARCH_SCORE_DESC' + | 'SEARCH_TSV_RANK_ASC' + | 'SEARCH_TSV_RANK_DESC' + | 'SOURCE_REF_ASC' + | 'SOURCE_REF_DESC' + | 'SOURCE_REF_TRGM_SIMILARITY_ASC' + | 'SOURCE_REF_TRGM_SIMILARITY_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'STATUS_TRGM_SIMILARITY_ASC' + | 'STATUS_TRGM_SIMILARITY_DESC' + | 'TARGET_REF_ASC' + | 'TARGET_REF_DESC' + | 'TARGET_REF_TRGM_SIMILARITY_ASC' + | 'TARGET_REF_TRGM_SIMILARITY_DESC' + | 'TITLE_ASC' + | 'TITLE_DESC' + | 'TITLE_TRGM_SIMILARITY_ASC' + | 'TITLE_TRGM_SIMILARITY_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC'; -export type PlatformResourceEventOrderBy = - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +export type ProposalFileViewOrderBy = + | 'BLOB_SHA_ASC' + | 'BLOB_SHA_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' - | 'EVENT_TYPE_ASC' - | 'EVENT_TYPE_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' | 'ID_ASC' | 'ID_DESC' - | 'MESSAGE_ASC' - | 'MESSAGE_DESC' - | 'METADATA_ASC' - | 'METADATA_DESC' | 'NATURAL' + | 'PATH_ASC' + | 'PATH_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'RESOURCE_ID_ASC' - | 'RESOURCE_ID_DESC'; -export type PlatformResourceInstallationOrderBy = - | 'COMMIT_ID_ASC' - | 'COMMIT_ID_DESC' + | 'PROPOSAL_ID_ASC' + | 'PROPOSAL_ID_DESC' + | 'REVIEWER_ID_ASC' + | 'REVIEWER_ID_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC' + | 'VIEWED_AT_ASC' + | 'VIEWED_AT_DESC'; +export type ProposalReactionOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'COMMENT_ID_ASC' + | 'COMMENT_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'EMOJI_ASC' + | 'EMOJI_DESC' | 'ID_ASC' | 'ID_DESC' - | 'NAMESPACE_ID_ASC' - | 'NAMESPACE_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' | 'NATURAL' - | 'PARAMS_ASC' - | 'PARAMS_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'REVISION_ASC' - | 'REVISION_DESC' - | 'SLUG_ASC' - | 'SLUG_DESC' - | 'STATUS_ASC' - | 'STATUS_DESC' - | 'STORE_ID_ASC' - | 'STORE_ID_DESC' + | 'PROPOSAL_ID_ASC' + | 'PROPOSAL_ID_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC'; -export type PlatformResourceStatusCheckOrderBy = - | 'COMPLETED_AT_ASC' - | 'COMPLETED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +export type ProposalReviewOrderBy = + | 'BODY_ASC' + | 'BODY_DESC' + | 'BODY_TRGM_SIMILARITY_ASC' + | 'BODY_TRGM_SIMILARITY_DESC' + | 'COMMIT_SHA_ASC' + | 'COMMIT_SHA_DESC' + | 'COMMIT_SHA_TRGM_SIMILARITY_ASC' + | 'COMMIT_SHA_TRGM_SIMILARITY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' | 'ID_ASC' | 'ID_DESC' | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'REQUESTED_AT_ASC' - | 'REQUESTED_AT_DESC' - | 'REQUESTED_BY_ASC' - | 'REQUESTED_BY_DESC' - | 'RESOURCE_ID_ASC' - | 'RESOURCE_ID_DESC' - | 'RESULT_ASC' - | 'RESULT_DESC' - | 'STATUS_ASC' - | 'STATUS_DESC'; -export type PlatformResourceUsageLogOrderBy = - | 'CPU_MILLICORES_ASC' - | 'CPU_MILLICORES_DESC' + | 'PROPOSAL_ID_ASC' + | 'PROPOSAL_ID_DESC' + | 'REVIEWER_ID_ASC' + | 'REVIEWER_ID_DESC' + | 'SEARCH_ASC' + | 'SEARCH_DESC' + | 'SEARCH_SCORE_ASC' + | 'SEARCH_SCORE_DESC' + | 'SEARCH_TSV_RANK_ASC' + | 'SEARCH_TSV_RANK_DESC' + | 'SUBMITTED_AT_ASC' + | 'SUBMITTED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC' + | 'VERDICT_ASC' + | 'VERDICT_DESC' + | 'VERDICT_TRGM_SIMILARITY_ASC' + | 'VERDICT_TRGM_SIMILARITY_DESC'; +export type ProposalsChunkOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'BODY_ASC' + | 'BODY_DESC' + | 'CHUNK_INDEX_ASC' + | 'CHUNK_INDEX_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'EMBEDDING_ASC' + | 'EMBEDDING_DESC' + | 'EMBEDDING_VECTOR_DISTANCE_ASC' + | 'EMBEDDING_VECTOR_DISTANCE_DESC' | 'ID_ASC' | 'ID_DESC' - | 'INTERVAL_SECONDS_ASC' - | 'INTERVAL_SECONDS_DESC' - | 'MEMORY_BYTES_ASC' - | 'MEMORY_BYTES_DESC' - | 'METRICS_ASC' - | 'METRICS_DESC' - | 'NAMESPACE_ID_ASC' - | 'NAMESPACE_ID_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'RESOURCE_ID_ASC' - | 'RESOURCE_ID_DESC' - | 'SAMPLED_AT_ASC' - | 'SAMPLED_AT_DESC' - | 'SOURCE_ASC' - | 'SOURCE_DESC'; -export type PlatformResourceUsageSummaryOrderBy = - | 'DATE_ASC' - | 'DATE_DESC' - | 'GB_SECONDS_ASC' - | 'GB_SECONDS_DESC' + | 'PROPOSALS_ID_ASC' + | 'PROPOSALS_ID_DESC' + | 'SEARCH_SCORE_ASC' + | 'SEARCH_SCORE_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type RegistryBindingOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' | 'ID_ASC' | 'ID_DESC' - | 'MAX_CPU_MILLICORES_ASC' - | 'MAX_CPU_MILLICORES_DESC' - | 'MAX_MEMORY_BYTES_ASC' - | 'MAX_MEMORY_BYTES_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' | 'NAMESPACE_ID_ASC' | 'NAMESPACE_ID_DESC' | 'NATURAL' + | 'OBSERVED_CREDENTIAL_VERSION_ASC' + | 'OBSERVED_CREDENTIAL_VERSION_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'RESOURCE_ID_ASC' - | 'RESOURCE_ID_DESC' - | 'RUNTIME_SECONDS_ASC' - | 'RUNTIME_SECONDS_DESC' - | 'SAMPLE_COUNT_ASC' - | 'SAMPLE_COUNT_DESC'; -export type PlatformResourceUtilizationOrderBy = - | 'AVG_MEMORY_BYTES_ASC' - | 'AVG_MEMORY_BYTES_DESC' - | 'CPU_LIMIT_MILLICORES_ASC' - | 'CPU_LIMIT_MILLICORES_DESC' - | 'CPU_PEAK_UTILIZATION_ASC' - | 'CPU_PEAK_UTILIZATION_DESC' - | 'CPU_REQUEST_HEADROOM_MILLICORES_ASC' - | 'CPU_REQUEST_HEADROOM_MILLICORES_DESC' - | 'CPU_REQUEST_MILLICORES_ASC' - | 'CPU_REQUEST_MILLICORES_DESC' - | 'DATE_ASC' - | 'DATE_DESC' - | 'GB_SECONDS_ASC' - | 'GB_SECONDS_DESC' - | 'KIND_ASC' - | 'KIND_DESC' - | 'MAX_CPU_MILLICORES_ASC' - | 'MAX_CPU_MILLICORES_DESC' - | 'MAX_MEMORY_BYTES_ASC' - | 'MAX_MEMORY_BYTES_DESC' - | 'MEMORY_LIMIT_BYTES_ASC' - | 'MEMORY_LIMIT_BYTES_DESC' - | 'MEMORY_PEAK_UTILIZATION_ASC' - | 'MEMORY_PEAK_UTILIZATION_DESC' - | 'MEMORY_REQUEST_BYTES_ASC' - | 'MEMORY_REQUEST_BYTES_DESC' - | 'MEMORY_REQUEST_HEADROOM_BYTES_ASC' - | 'MEMORY_REQUEST_HEADROOM_BYTES_DESC' - | 'NAMESPACE_ID_ASC' - | 'NAMESPACE_ID_DESC' - | 'NATURAL' - | 'REPLICAS_ASC' - | 'REPLICAS_DESC' - | 'RESOURCE_ID_ASC' - | 'RESOURCE_ID_DESC' - | 'RUNTIME_SECONDS_ASC' - | 'RUNTIME_SECONDS_DESC' - | 'SAMPLE_COUNT_ASC' - | 'SAMPLE_COUNT_DESC'; -export type PlatformResourcesHealthOrderBy = - | 'ANNOTATIONS_ASC' - | 'ANNOTATIONS_DESC' - | 'CPU_LIMIT_MILLICORES_ASC' - | 'CPU_LIMIT_MILLICORES_DESC' - | 'CPU_REQUEST_MILLICORES_ASC' - | 'CPU_REQUEST_MILLICORES_DESC' + | 'PULL_SECRET_NAME_ASC' + | 'PULL_SECRET_NAME_DESC' + | 'REALM_ASC' + | 'REALM_DESC' + | 'REGISTRY_HOST_ASC' + | 'REGISTRY_HOST_DESC' + | 'REGISTRY_ID_ASC' + | 'REGISTRY_ID_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +export type RegistryOrderBy = + | 'AUTH_MODE_ASC' + | 'AUTH_MODE_DESC' + | 'BASE_PATH_ASC' + | 'BASE_PATH_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'ERROR_COUNT_ASC' - | 'ERROR_COUNT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'CREDENTIAL_SECRET_NAME_ASC' + | 'CREDENTIAL_SECRET_NAME_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'HOST_ASC' + | 'HOST_DESC' | 'ID_ASC' | 'ID_DESC' | 'INSTALLATION_ID_ASC' | 'INSTALLATION_ID_DESC' - | 'INTEGRATIONS_ASC' - | 'INTEGRATIONS_DESC' + | 'IS_PUBLISHED_ASC' + | 'IS_PUBLISHED_DESC' | 'KIND_ASC' | 'KIND_DESC' | 'LABELS_ASC' | 'LABELS_DESC' | 'LAST_ERROR_ASC' | 'LAST_ERROR_DESC' - | 'LAST_HEARTBEAT_AT_ASC' - | 'LAST_HEARTBEAT_AT_DESC' - | 'MEMORY_LIMIT_BYTES_ASC' - | 'MEMORY_LIMIT_BYTES_DESC' - | 'MEMORY_REQUEST_BYTES_ASC' - | 'MEMORY_REQUEST_BYTES_DESC' - | 'NAMESPACE_ID_ASC' - | 'NAMESPACE_ID_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'NATURAL' - | 'REALM_ASC' - | 'REALM_DESC' - | 'REPLICAS_ASC' - | 'REPLICAS_DESC' - | 'REQUIRED_CONFIGS_ASC' - | 'REQUIRED_CONFIGS_DESC' - | 'REQUIRED_SECRETS_ASC' - | 'REQUIRED_SECRETS_DESC' - | 'RESOURCE_DEFINITION_ID_ASC' - | 'RESOURCE_DEFINITION_ID_DESC' - | 'SLUG_ASC' - | 'SLUG_DESC' - | 'SPEC_ASC' - | 'SPEC_DESC' + | 'PLATFORM_ONLY_ASC' + | 'PLATFORM_ONLY_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ROLE_ASC' + | 'ROLE_DESC' | 'STATUS_ASC' | 'STATUS_DESC' - | 'STATUS_DETAIL_ASC' - | 'STATUS_DETAIL_DESC' - | 'STATUS_OBSERVED_ASC' - | 'STATUS_OBSERVED_DESC' - | 'STORAGE_CLASS_ASC' - | 'STORAGE_CLASS_DESC' - | 'STORAGE_SIZE_BYTES_ASC' - | 'STORAGE_SIZE_BYTES_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC'; -export type PlatformResourcesRequirementsStateOrderBy = - | 'CONFIG_HASH_ASC' - | 'CONFIG_HASH_DESC' - | 'CONFIG_OBJECT_NAME_ASC' - | 'CONFIG_OBJECT_NAME_DESC' - | 'NATURAL' - | 'REQUIREMENTS_HASH_ASC' - | 'REQUIREMENTS_HASH_DESC' - | 'RESOURCE_ID_ASC' - | 'RESOURCE_ID_DESC' - | 'SECRETS_HASH_ASC' - | 'SECRETS_HASH_DESC' - | 'SECRETS_OBJECT_NAME_ASC' - | 'SECRETS_OBJECT_NAME_DESC' - | 'SLUG_ASC' - | 'SLUG_DESC'; -export type PlatformResourcesResolvedRequirementOrderBy = - | 'ATOM_ID_ASC' - | 'ATOM_ID_DESC' - | 'CONFIG_OBJECT_NAME_ASC' - | 'CONFIG_OBJECT_NAME_DESC' - | 'NAMESPACE_ID_ASC' - | 'NAMESPACE_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +export type RegistryGrantOrderBy = + | 'ACTIONS_ASC' + | 'ACTIONS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'EXPIRES_AT_ASC' + | 'EXPIRES_AT_DESC' + | 'GRANTED_BY_ASC' + | 'GRANTED_BY_DESC' + | 'GRANTEE_KEY_ASC' + | 'GRANTEE_KEY_DESC' + | 'GRANTEE_SCOPE_ASC' + | 'GRANTEE_SCOPE_DESC' + | 'ID_ASC' + | 'ID_DESC' | 'NATURAL' - | 'PRESENT_ASC' - | 'PRESENT_DESC' - | 'REALM_ASC' - | 'REALM_DESC' - | 'REQUIRED_ASC' - | 'REQUIRED_DESC' - | 'REQUIREMENT_KIND_ASC' - | 'REQUIREMENT_KIND_DESC' - | 'RESOURCE_ID_ASC' - | 'RESOURCE_ID_DESC' - | 'SECRETS_OBJECT_NAME_ASC' - | 'SECRETS_OBJECT_NAME_DESC' - | 'SLUG_ASC' - | 'SLUG_DESC'; -export type PlatformWebhookEndpointOrderBy = - | 'ACTIVE_ASC' - | 'ACTIVE_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'REGISTRY_ID_ASC' + | 'REGISTRY_ID_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +export type RepositoryOrderBy = + | 'CLONE_URL_ASC' + | 'CLONE_URL_DESC' + | 'CLONE_URL_TRGM_SIMILARITY_ASC' + | 'CLONE_URL_TRGM_SIMILARITY_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'CREATED_BY_ASC' | 'CREATED_BY_DESC' - | 'FUNCTION_DEFINITION_ID_ASC' - | 'FUNCTION_DEFINITION_ID_DESC' - | 'HOST_ASC' - | 'HOST_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DEFAULT_BRANCH_ASC' + | 'DEFAULT_BRANCH_DESC' + | 'DEFAULT_BRANCH_TRGM_SIMILARITY_ASC' + | 'DEFAULT_BRANCH_TRGM_SIMILARITY_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'DESCRIPTION_TRGM_SIMILARITY_ASC' + | 'DESCRIPTION_TRGM_SIMILARITY_DESC' + | 'EMBEDDING_ASC' + | 'EMBEDDING_DESC' + | 'EMBEDDING_UPDATED_AT_ASC' + | 'EMBEDDING_UPDATED_AT_DESC' + | 'EMBEDDING_VECTOR_DISTANCE_ASC' + | 'EMBEDDING_VECTOR_DISTANCE_DESC' + | 'EXTERNAL_ID_ASC' + | 'EXTERNAL_ID_DESC' + | 'EXTERNAL_ID_TRGM_SIMILARITY_ASC' + | 'EXTERNAL_ID_TRGM_SIMILARITY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'NAMESPACE_ID_ASC' - | 'NAMESPACE_ID_DESC' + | 'IS_ARCHIVED_ASC' + | 'IS_ARCHIVED_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NAME_TRGM_SIMILARITY_ASC' + | 'NAME_TRGM_SIMILARITY_DESC' | 'NATURAL' - | 'PATH_ASC' - | 'PATH_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'PROVIDER_ASC' | 'PROVIDER_DESC' - | 'REPLAY_WINDOW_SECONDS_ASC' - | 'REPLAY_WINDOW_SECONDS_DESC' - | 'SIGNING_SECRET_NAME_ASC' - | 'SIGNING_SECRET_NAME_DESC' + | 'PROVIDER_TRGM_SIMILARITY_ASC' + | 'PROVIDER_TRGM_SIMILARITY_DESC' + | 'SEARCH_ASC' + | 'SEARCH_DESC' + | 'SEARCH_SCORE_ASC' + | 'SEARCH_SCORE_DESC' + | 'SEARCH_TSV_RANK_ASC' + | 'SEARCH_TSV_RANK_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'SLUG_TRGM_SIMILARITY_ASC' + | 'SLUG_TRGM_SIMILARITY_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC'; -export type PlatformWebhookEventOrderBy = + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC' + | 'VISIBILITY_ASC' + | 'VISIBILITY_DESC' + | 'VISIBILITY_TRGM_SIMILARITY_ASC' + | 'VISIBILITY_TRGM_SIMILARITY_DESC'; +export type RepositoryEventOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'COMMIT_SHA_ASC' + | 'COMMIT_SHA_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' - | 'ENDPOINT_ID_ASC' - | 'ENDPOINT_ID_DESC' - | 'ERROR_ASC' - | 'ERROR_DESC' - | 'EXTERNAL_EVENT_ID_ASC' - | 'EXTERNAL_EVENT_ID_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DELIVERY_ID_ASC' + | 'DELIVERY_ID_DESC' + | 'EVENT_TYPE_ASC' + | 'EVENT_TYPE_DESC' | 'ID_ASC' | 'ID_DESC' - | 'INVOCATION_CREATED_AT_ASC' - | 'INVOCATION_CREATED_AT_DESC' - | 'INVOCATION_ID_ASC' - | 'INVOCATION_ID_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' | 'NATURAL' | 'PAYLOAD_ASC' | 'PAYLOAD_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'PROVIDER_ASC' - | 'PROVIDER_DESC' - | 'PROVIDER_TIMESTAMP_ASC' - | 'PROVIDER_TIMESTAMP_DESC' - | 'STATUS_ASC' - | 'STATUS_DESC' + | 'REF_ASC' + | 'REF_DESC' + | 'REPOSITORY_ID_ASC' + | 'REPOSITORY_ID_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +export type RepositoryRequiredCheckOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'REPOSITORY_ID_ASC' + | 'REPOSITORY_ID_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'WORKFLOW_ID_ASC' + | 'WORKFLOW_ID_DESC'; +export type RepositoryWorkflowOrderBy = + | 'CANCEL_IN_PROGRESS_ASC' + | 'CANCEL_IN_PROGRESS_DESC' + | 'CONCURRENCY_KEY_ASC' + | 'CONCURRENCY_KEY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'EVENT_TYPE_ASC' + | 'EVENT_TYPE_DESC' + | 'GRAPH_ID_ASC' + | 'GRAPH_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'INPUTS_ASC' + | 'INPUTS_DESC' + | 'IS_ENABLED_ASC' + | 'IS_ENABLED_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'REF_PATTERN_ASC' + | 'REF_PATTERN_DESC' + | 'REPOSITORY_ID_ASC' + | 'REPOSITORY_ID_DESC' + | 'REQUIRED_SECRETS_ASC' + | 'REQUIRED_SECRETS_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; export type ResourceOrderBy = | 'ANNOTATIONS_ASC' | 'ANNOTATIONS_DESC' @@ -7467,12 +15000,16 @@ export type ResourceOrderBy = | 'CREATED_AT_DESC' | 'CREATED_BY_ASC' | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'ERROR_COUNT_ASC' | 'ERROR_COUNT_DESC' | 'ID_ASC' | 'ID_DESC' + | 'IMAGE_REF_ASC' + | 'IMAGE_REF_DESC' | 'INSTALLATION_ID_ASC' | 'INSTALLATION_ID_DESC' | 'INTEGRATIONS_ASC' @@ -7518,10 +15055,14 @@ export type ResourceOrderBy = | 'STORAGE_CLASS_DESC' | 'STORAGE_SIZE_BYTES_ASC' | 'STORAGE_SIZE_BYTES_DESC' + | 'STORAGE_TOTAL_BYTES_ASC' + | 'STORAGE_TOTAL_BYTES_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC'; + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; export type ResourceDeclaredCapacityOrderBy = | 'CPU_LIMIT_MILLICORES_ASC' | 'CPU_LIMIT_MILLICORES_DESC' @@ -7549,7 +15090,9 @@ export type ResourceDeclaredCapacityOrderBy = | 'SOURCE_ID_ASC' | 'SOURCE_ID_DESC' | 'STORAGE_SIZE_BYTES_ASC' - | 'STORAGE_SIZE_BYTES_DESC'; + | 'STORAGE_SIZE_BYTES_DESC' + | 'STORAGE_TOTAL_BYTES_ASC' + | 'STORAGE_TOTAL_BYTES_DESC'; export type ResourceDefinitionOrderBy = | 'ANNOTATIONS_ASC' | 'ANNOTATIONS_DESC' @@ -7557,6 +15100,8 @@ export type ResourceDefinitionOrderBy = | 'CREATED_AT_DESC' | 'CREATED_BY_ASC' | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'DEFAULT_SPEC_ASC' @@ -7591,7 +15136,9 @@ export type ResourceDefinitionOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC'; + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; export type ResourceEventOrderBy = | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' @@ -7619,6 +15166,8 @@ export type ResourceInstallationOrderBy = | 'CREATED_AT_DESC' | 'CREATED_BY_ASC' | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'ID_ASC' @@ -7643,7 +15192,47 @@ export type ResourceInstallationOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC'; + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +export type ResourceObservedStorageOrderBy = + | 'CAPACITY_ASC' + | 'CAPACITY_BYTES_ASC' + | 'CAPACITY_BYTES_DESC' + | 'CAPACITY_DESC' + | 'CLAIM_NAME_ASC' + | 'CLAIM_NAME_DESC' + | 'DECLARED_STORAGE_CLASS_ASC' + | 'DECLARED_STORAGE_CLASS_DESC' + | 'DECLARED_STORAGE_SIZE_BYTES_ASC' + | 'DECLARED_STORAGE_SIZE_BYTES_DESC' + | 'DECLARED_STORAGE_TOTAL_BYTES_ASC' + | 'DECLARED_STORAGE_TOTAL_BYTES_DESC' + | 'INSTALLATION_ID_ASC' + | 'INSTALLATION_ID_DESC' + | 'IS_BOUND_ASC' + | 'IS_BOUND_DESC' + | 'KIND_ASC' + | 'KIND_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'NATURAL' + | 'PHASE_ASC' + | 'PHASE_DESC' + | 'REQUESTED_ASC' + | 'REQUESTED_BYTES_ASC' + | 'REQUESTED_BYTES_DESC' + | 'REQUESTED_DESC' + | 'RESOURCE_ID_ASC' + | 'RESOURCE_ID_DESC' + | 'RESOURCE_STATUS_ASC' + | 'RESOURCE_STATUS_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'STORAGE_CLASS_ASC' + | 'STORAGE_CLASS_DESC' + | 'STORAGE_NAME_ASC' + | 'STORAGE_NAME_DESC'; export type ResourceStatusCheckOrderBy = | 'COMPLETED_AT_ASC' | 'COMPLETED_AT_DESC' @@ -7763,12 +15352,16 @@ export type ResourcesHealthOrderBy = | 'CREATED_AT_DESC' | 'CREATED_BY_ASC' | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'ERROR_COUNT_ASC' | 'ERROR_COUNT_DESC' | 'ID_ASC' | 'ID_DESC' + | 'IMAGE_REF_ASC' + | 'IMAGE_REF_DESC' | 'INSTALLATION_ID_ASC' | 'INSTALLATION_ID_DESC' | 'INTEGRATIONS_ASC' @@ -7814,10 +15407,14 @@ export type ResourcesHealthOrderBy = | 'STORAGE_CLASS_DESC' | 'STORAGE_SIZE_BYTES_ASC' | 'STORAGE_SIZE_BYTES_DESC' + | 'STORAGE_TOTAL_BYTES_ASC' + | 'STORAGE_TOTAL_BYTES_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC'; + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; export type ResourcesRequirementsStateOrderBy = | 'CONFIG_HASH_ASC' | 'CONFIG_HASH_DESC' @@ -7865,6 +15462,8 @@ export type WebhookEndpointOrderBy = | 'CREATED_AT_DESC' | 'CREATED_BY_ASC' | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'FUNCTION_DEFINITION_ID_ASC' @@ -7889,7 +15488,9 @@ export type WebhookEndpointOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC'; + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; export type WebhookEventOrderBy = | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' @@ -7921,8530 +15522,17441 @@ export type WebhookEventOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; // ============ CRUD Input Types ============ +export interface CreateBuildInput { + clientMutationId?: string; + build: { + actorId?: string; + attempt?: number; + commitSha?: string; + conclusion?: string; + createdByPrincipal?: string; + databaseId: string; + eventId?: string; + finishedAt?: string; + imageRef?: string; + jobId?: string; + logs?: ConstructiveInternalTypeUpload; + matrixKey?: string; + metadata?: Record; + proposalId?: string; + ref?: string; + repositoryId: string; + startedAt?: string; + status?: string; + updatedByPrincipal?: string; + workflowId?: string; + }; +} +export interface BuildPatch { + actorId?: string | null; + attempt?: number | null; + commitSha?: string | null; + conclusion?: string | null; + createdByPrincipal?: string | null; + databaseId?: string | null; + eventId?: string | null; + finishedAt?: string | null; + imageRef?: string | null; + jobId?: string | null; + logs?: ConstructiveInternalTypeUpload | null; + logsUpload?: File | null; + matrixKey?: string | null; + metadata?: Record | null; + proposalId?: string | null; + ref?: string | null; + repositoryId?: string | null; + startedAt?: string | null; + status?: string | null; + updatedByPrincipal?: string | null; + workflowId?: string | null; +} +export interface UpdateBuildInput { + clientMutationId?: string; + id: string; + buildPatch: BuildPatch; +} +export interface DeleteBuildInput { + clientMutationId?: string; + id: string; +} +export interface CreateBuildStepInput { + clientMutationId?: string; + buildStep: { + buildId: string; + createdByPrincipal?: string; + databaseId: string; + exitCode?: number; + finishedAt?: string; + kind?: string; + logBytes?: string; + logOffset?: string; + name: string; + parentSeq?: number; + recordedAt?: string; + seq: number; + startedAt?: string; + status?: string; + summary?: Record; + }; +} +export interface BuildStepPatch { + buildId?: string | null; + createdByPrincipal?: string | null; + databaseId?: string | null; + exitCode?: number | null; + finishedAt?: string | null; + kind?: string | null; + logBytes?: string | null; + logOffset?: string | null; + name?: string | null; + parentSeq?: number | null; + recordedAt?: string | null; + seq?: number | null; + startedAt?: string | null; + status?: string | null; + summary?: Record | null; +} +export interface UpdateBuildStepInput { + clientMutationId?: string; + id: string; + buildStepPatch: BuildStepPatch; +} +export interface DeleteBuildStepInput { + clientMutationId?: string; + id: string; +} +export interface CreateBuilderBindingInput { + clientMutationId?: string; + builderBinding: { + createdBy?: string; + createdByPrincipal?: string; + databaseId: string; + installationId: string; + lastError?: string; + metadata?: Record; + namespaceId: string; + observedHost?: string; + realm?: string; + status?: string; + updatedBy?: string; + updatedByPrincipal?: string; + }; +} +export interface BuilderBindingPatch { + createdBy?: string | null; + createdByPrincipal?: string | null; + databaseId?: string | null; + installationId?: string | null; + lastError?: string | null; + metadata?: Record | null; + namespaceId?: string | null; + observedHost?: string | null; + realm?: string | null; + status?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdateBuilderBindingInput { + clientMutationId?: string; + id: string; + builderBindingPatch: BuilderBindingPatch; +} +export interface DeleteBuilderBindingInput { + clientMutationId?: string; + id: string; +} +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 CreateDatabaseFunctionGraphInput { + clientMutationId?: string; + databaseFunctionGraph: { + context?: string; + createdBy?: string; + databaseId: string; + definitionsCommitId: string; + description?: string; + isValid?: boolean; + name?: string; + storeId: string; + validationErrors?: Record; + }; +} +export interface DatabaseFunctionGraphPatch { + context?: string | null; + createdBy?: string | null; + databaseId?: string | null; + definitionsCommitId?: string | null; + description?: string | null; + isValid?: boolean | null; + name?: string | null; + storeId?: string | null; + validationErrors?: Record | null; +} +export interface UpdateDatabaseFunctionGraphInput { + clientMutationId?: string; + id: string; + databaseFunctionGraphPatch: DatabaseFunctionGraphPatch; +} +export interface DeleteDatabaseFunctionGraphInput { + clientMutationId?: string; + id: string; +} +export interface CreateDatabaseFunctionGraphExecutionInput { + clientMutationId?: string; + databaseFunctionGraphExecution: { + actorId?: string; + completedAt?: string; + currentWave?: number; + databaseId: string; + definitionsCommitId?: string; + entityId?: string; + entityType?: string; + errorCode?: string; + errorMessage?: string; + executionPlan?: Record; + graphId: string; + inputPayload?: Record; + invocationCreatedAt?: string; + invocationId?: string; + lastProgressAt?: string; + maxPendingJobs?: number; + maxTicks?: number; + nodeOutputs?: Record; + organizationId?: string; + outputNames?: string[]; + outputNode?: string; + outputPayload?: Record; + outputPort?: string; + parentExecutionId?: string; + parentInvocationId?: string; + parentNodeName?: string; + principalId?: string; + startedAt?: string; + status?: string; + tickCount?: number; + timeoutAt?: string; + }; +} +export interface DatabaseFunctionGraphExecutionPatch { + actorId?: string | null; + completedAt?: string | null; + currentWave?: number | null; + databaseId?: string | null; + definitionsCommitId?: string | null; + entityId?: string | null; + entityType?: string | null; + errorCode?: string | null; + errorMessage?: string | null; + executionPlan?: Record | null; + graphId?: string | null; + inputPayload?: Record | null; + invocationCreatedAt?: string | null; + invocationId?: string | null; + lastProgressAt?: string | null; + maxPendingJobs?: number | null; + maxTicks?: number | null; + nodeOutputs?: Record | null; + organizationId?: string | null; + outputNames?: string[] | null; + outputNode?: string | null; + outputPayload?: Record | null; + outputPort?: string | null; + parentExecutionId?: string | null; + parentInvocationId?: string | null; + parentNodeName?: string | null; + principalId?: string | null; + startedAt?: string | null; + status?: string | null; + tickCount?: number | null; + timeoutAt?: string | null; +} +export interface UpdateDatabaseFunctionGraphExecutionInput { + clientMutationId?: string; + id: string; + databaseFunctionGraphExecutionPatch: DatabaseFunctionGraphExecutionPatch; +} +export interface DeleteDatabaseFunctionGraphExecutionInput { + clientMutationId?: string; + id: string; +} +export interface CreateDatabaseFunctionGraphExecutionNodeStateInput { + clientMutationId?: string; + databaseFunctionGraphExecutionNodeState: { + callbackInputs?: Record; + callbackMeta?: Record; + callbackTokenHash?: string; + completedAt?: string; + databaseId: string; + errorCode?: string; + errorMessage?: string; + executionId: string; + expiryDefaultOutput?: Record; + expiryEscalatedAt?: string; + expiryPolicy?: string; + nodeName: string; + nodePath?: string[]; + outputId?: string; + startedAt?: string; + status?: string; + waitingDeadlineAt?: string; + waitingOn?: string; + waitingSince?: string; + }; +} +export interface DatabaseFunctionGraphExecutionNodeStatePatch { + callbackInputs?: Record | null; + callbackMeta?: Record | null; + callbackTokenHash?: string | null; + completedAt?: string | null; + databaseId?: string | null; + errorCode?: string | null; + errorMessage?: string | null; + executionId?: string | null; + expiryDefaultOutput?: Record | null; + expiryEscalatedAt?: string | null; + expiryPolicy?: string | null; + nodeName?: string | null; + nodePath?: string[] | null; + outputId?: string | null; + startedAt?: string | null; + status?: string | null; + waitingDeadlineAt?: string | null; + waitingOn?: string | null; + waitingSince?: string | null; +} +export interface UpdateDatabaseFunctionGraphExecutionNodeStateInput { + clientMutationId?: string; + id: string; + databaseFunctionGraphExecutionNodeStatePatch: DatabaseFunctionGraphExecutionNodeStatePatch; +} +export interface DeleteDatabaseFunctionGraphExecutionNodeStateInput { + clientMutationId?: string; + id: string; +} +export interface CreateDatabaseFunctionGraphExecutionOutputInput { + clientMutationId?: string; + databaseFunctionGraphExecutionOutput: { + data: Record; + databaseId: string; + hash: Base64EncodedBinary; + }; +} +export interface DatabaseFunctionGraphExecutionOutputPatch { + data?: Record | null; + databaseId?: string | null; + hash?: Base64EncodedBinary | null; +} +export interface UpdateDatabaseFunctionGraphExecutionOutputInput { + clientMutationId?: string; + id: string; + databaseFunctionGraphExecutionOutputPatch: DatabaseFunctionGraphExecutionOutputPatch; +} +export interface DeleteDatabaseFunctionGraphExecutionOutputInput { + clientMutationId?: string; + id: string; +} +export interface CreateDatabaseGraphCommitInput { + clientMutationId?: string; + databaseGraphCommit: { + authorId?: string; + committerId?: string; + databaseId: string; + date?: string; + message?: string; + parentIds?: string[]; + storeId: string; + treeId?: string; + }; +} +export interface DatabaseGraphCommitPatch { + authorId?: string | null; + committerId?: string | null; + databaseId?: string | null; + date?: string | null; + message?: string | null; + parentIds?: string[] | null; + storeId?: string | null; + treeId?: string | null; +} +export interface UpdateDatabaseGraphCommitInput { + clientMutationId?: string; + id: string; + databaseGraphCommitPatch: DatabaseGraphCommitPatch; +} +export interface DeleteDatabaseGraphCommitInput { + clientMutationId?: string; + id: string; +} +export interface CreateDatabaseGraphGetAllTreeNodesRecordInput { + clientMutationId?: string; + databaseGraphGetAllTreeNodesRecord: { + data?: Record; + path?: string[]; + }; +} +export interface DatabaseGraphGetAllTreeNodesRecordPatch { + data?: Record | null; + path?: string[] | null; +} +export interface UpdateDatabaseGraphGetAllTreeNodesRecordInput { + clientMutationId?: string; + id: string; + databaseGraphGetAllTreeNodesRecordPatch: DatabaseGraphGetAllTreeNodesRecordPatch; +} +export interface DeleteDatabaseGraphGetAllTreeNodesRecordInput { + clientMutationId?: string; + id: string; +} +export interface CreateDatabaseGraphObjectInput { + clientMutationId?: string; + databaseGraphObject: { + data?: Record; + databaseId: string; + kids?: string[]; + ktree?: string[]; + }; +} +export interface DatabaseGraphObjectPatch { + data?: Record | null; + databaseId?: string | null; + kids?: string[] | null; + ktree?: string[] | null; +} +export interface UpdateDatabaseGraphObjectInput { + clientMutationId?: string; + id: string; + databaseGraphObjectPatch: DatabaseGraphObjectPatch; +} +export interface DeleteDatabaseGraphObjectInput { + clientMutationId?: string; + id: string; +} +export interface CreateDatabaseGraphRefInput { + clientMutationId?: string; + databaseGraphRef: { + commitId?: string; + databaseId: string; + name: string; + storeId: string; + }; +} +export interface DatabaseGraphRefPatch { + commitId?: string | null; + databaseId?: string | null; + name?: string | null; + storeId?: string | null; +} +export interface UpdateDatabaseGraphRefInput { + clientMutationId?: string; + id: string; + databaseGraphRefPatch: DatabaseGraphRefPatch; +} +export interface DeleteDatabaseGraphRefInput { + clientMutationId?: string; + id: string; +} +export interface CreateDatabaseGraphStoreInput { + clientMutationId?: string; + databaseGraphStore: { + databaseId: string; + hash?: string; + name: string; + }; +} +export interface DatabaseGraphStorePatch { + databaseId?: string | null; + hash?: string | null; + name?: string | null; +} +export interface UpdateDatabaseGraphStoreInput { + clientMutationId?: string; + id: string; + databaseGraphStorePatch: DatabaseGraphStorePatch; +} +export interface DeleteDatabaseGraphStoreInput { + clientMutationId?: string; + id: string; +} export interface CreateDbPresetInput { clientMutationId?: string; - dbPreset: { - active?: boolean; - commitId?: string; - definition: Record; - description?: string; - label?: string; - modulesHash?: string; - slug: string; - storeId?: string; - }; + dbPreset: { + active?: boolean; + commitId?: string; + definition: Record; + description?: string; + label?: string; + modulesHash?: string; + slug: string; + storeId?: string; + }; +} +export interface DbPresetPatch { + active?: boolean | null; + commitId?: string | null; + definition?: Record | null; + description?: string | null; + label?: string | null; + modulesHash?: string | null; + slug?: string | null; + storeId?: string | null; +} +export interface UpdateDbPresetInput { + clientMutationId?: string; + id: string; + dbPresetPatch: DbPresetPatch; +} +export interface DeleteDbPresetInput { + clientMutationId?: string; + id: string; +} +export interface CreateFunctionApiBindingInput { + clientMutationId?: string; + functionApiBinding: { + alias?: string; + apiId: string; + config?: Record; + functionDefinitionId: string; + }; +} +export interface FunctionApiBindingPatch { + alias?: string | null; + apiId?: string | null; + config?: Record | null; + functionDefinitionId?: string | null; +} +export interface UpdateFunctionApiBindingInput { + clientMutationId?: string; + id: string; + functionApiBindingPatch: FunctionApiBindingPatch; +} +export interface DeleteFunctionApiBindingInput { + clientMutationId?: string; + id: string; +} +export interface CreateFunctionCapabilityBindingInput { + clientMutationId?: string; + functionCapabilityBinding: { + bucketId?: string; + databaseId: string; + functionId?: string; + graphId?: string; + key?: string; + lifecycle: string; + metadata?: Record; + }; +} +export interface FunctionCapabilityBindingPatch { + bucketId?: string | null; + databaseId?: string | null; + functionId?: string | null; + graphId?: string | null; + key?: string | null; + lifecycle?: string | null; + metadata?: Record | null; +} +export interface UpdateFunctionCapabilityBindingInput { + clientMutationId?: string; + id: string; + functionCapabilityBindingPatch: FunctionCapabilityBindingPatch; +} +export interface DeleteFunctionCapabilityBindingInput { + clientMutationId?: string; + id: string; +} +export interface CreateFunctionDefinitionInput { + clientMutationId?: string; + functionDefinition: { + accessChannels?: string[]; + anonymousCallable?: boolean; + category: string; + concurrency?: number; + createdByPrincipal?: string; + databaseId: string; + description?: string; + fnCategory?: string; + functionColumns?: Record; + graphId?: string; + icon?: string; + image?: string; + inputs?: Record; + integrations?: string[]; + isPublished?: boolean; + maxAttempts?: number; + moduleTable?: string; + name: string; + outputs?: Record; + payloadArgs?: Record; + priority?: number; + props?: Record; + protected?: boolean; + publishedAt?: string; + queueName?: string; + requiredBuckets?: string[]; + requiredCapabilities?: Record; + requiredConfigs?: ResourceRequirementInput[]; + requiredModels?: string[]; + requiredModules?: string[]; + requiredSecrets?: ResourceRequirementInput[]; + resources?: Record; + runtime?: string; + scaleMax?: number; + scaleMin?: number; + targetFunction?: string; + targetSchema?: string; + timeoutSeconds?: number; + updatedByPrincipal?: string; + volatile?: boolean; + }; +} +export interface FunctionDefinitionPatch { + accessChannels?: string[] | null; + anonymousCallable?: boolean | null; + category?: string | null; + concurrency?: number | null; + createdByPrincipal?: string | null; + databaseId?: string | null; + description?: string | null; + fnCategory?: string | null; + functionColumns?: Record | null; + graphId?: string | null; + icon?: string | null; + image?: string | null; + inputs?: Record | null; + integrations?: string[] | null; + isPublished?: boolean | null; + maxAttempts?: number | null; + moduleTable?: string | null; + name?: string | null; + outputs?: Record | null; + payloadArgs?: Record | null; + priority?: number | null; + props?: Record | null; + protected?: boolean | null; + publishedAt?: string | null; + queueName?: string | null; + requiredBuckets?: string[] | null; + requiredCapabilities?: Record | null; + requiredConfigs?: ResourceRequirementInput[] | null; + requiredModels?: string[] | null; + requiredModules?: string[] | null; + requiredSecrets?: ResourceRequirementInput[] | null; + resources?: Record | null; + runtime?: string | null; + scaleMax?: number | null; + scaleMin?: number | null; + targetFunction?: string | null; + targetSchema?: string | null; + timeoutSeconds?: number | null; + updatedByPrincipal?: string | null; + volatile?: boolean | null; +} +export interface UpdateFunctionDefinitionInput { + clientMutationId?: string; + id: string; + functionDefinitionPatch: FunctionDefinitionPatch; +} +export interface DeleteFunctionDefinitionInput { + clientMutationId?: string; + id: string; +} +export interface CreateFunctionDeploymentInput { + clientMutationId?: string; + functionDeployment: { + annotations?: Record; + concurrency?: number; + createdByPrincipal?: string; + databaseId: string; + errorCount?: number; + handlerName?: string; + image: string; + imageVersion?: string; + labels?: Record; + lastError?: string; + lastErrorAt?: string; + namespaceId: string; + realm?: string; + resources?: Record; + revision?: number; + scaleMax?: number; + scaleMin?: number; + serviceName?: string; + serviceUrl?: string; + status?: string; + timeoutSeconds?: number; + updatedByPrincipal?: string; + }; +} +export interface FunctionDeploymentPatch { + annotations?: Record | null; + concurrency?: number | null; + createdByPrincipal?: string | null; + databaseId?: string | null; + errorCount?: number | null; + handlerName?: string | null; + image?: string | null; + imageVersion?: string | null; + labels?: Record | null; + lastError?: string | null; + lastErrorAt?: string | null; + namespaceId?: string | null; + realm?: string | null; + resources?: Record | null; + revision?: number | null; + scaleMax?: number | null; + scaleMin?: number | null; + serviceName?: string | null; + serviceUrl?: string | null; + status?: string | null; + timeoutSeconds?: number | null; + updatedByPrincipal?: string | null; +} +export interface UpdateFunctionDeploymentInput { + clientMutationId?: string; + id: string; + functionDeploymentPatch: FunctionDeploymentPatch; +} +export interface DeleteFunctionDeploymentInput { + clientMutationId?: string; + id: string; +} +export interface CreateFunctionDeploymentEventInput { + clientMutationId?: string; + functionDeploymentEvent: { + actorId?: string; + databaseId: string; + deploymentId: string; + eventType: string; + message?: string; + metadata?: Record; + }; +} +export interface FunctionDeploymentEventPatch { + actorId?: string | null; + databaseId?: string | null; + deploymentId?: string | null; + eventType?: string | null; + message?: string | null; + metadata?: Record | null; +} +export interface UpdateFunctionDeploymentEventInput { + clientMutationId?: string; + id: string; + functionDeploymentEventPatch: FunctionDeploymentEventPatch; +} +export interface DeleteFunctionDeploymentEventInput { + clientMutationId?: string; + id: string; +} +export interface CreateFunctionExecutionLogInput { + clientMutationId?: string; + functionExecutionLog: { + actorId?: string; + databaseId: string; + invocationId?: string; + logLevel?: string; + message: string; + metadata?: Record; + taskIdentifier?: string; + }; +} +export interface FunctionExecutionLogPatch { + actorId?: string | null; + databaseId?: string | null; + invocationId?: string | null; + logLevel?: string | null; + message?: string | null; + metadata?: Record | null; + taskIdentifier?: string | null; +} +export interface UpdateFunctionExecutionLogInput { + clientMutationId?: string; + id: string; + functionExecutionLogPatch: FunctionExecutionLogPatch; +} +export interface DeleteFunctionExecutionLogInput { + clientMutationId?: string; + id: string; +} +export interface CreateFunctionGraphCommitInput { + clientMutationId?: string; + functionGraphCommit: { + authorId?: string; + committerId?: string; + date?: string; + message?: string; + parentIds?: string[]; + scopeId: string; + storeId: string; + treeId?: string; + }; +} +export interface FunctionGraphCommitPatch { + authorId?: string | null; + committerId?: string | null; + date?: string | null; + message?: string | null; + parentIds?: string[] | null; + scopeId?: string | null; + storeId?: string | null; + treeId?: string | null; +} +export interface UpdateFunctionGraphCommitInput { + clientMutationId?: string; + id: string; + functionGraphCommitPatch: FunctionGraphCommitPatch; +} +export interface DeleteFunctionGraphCommitInput { + clientMutationId?: string; + id: string; +} +export interface CreateFunctionGraphInput { + clientMutationId?: string; + functionGraph: { + context?: string; + createdBy?: string; + definitionsCommitId: string; + description?: string; + isValid?: boolean; + name?: string; + scopeId: string; + storeId: string; + validationErrors?: Record; + }; +} +export interface FunctionGraphPatch { + context?: string | null; + createdBy?: string | null; + definitionsCommitId?: string | null; + description?: string | null; + isValid?: boolean | null; + name?: string | null; + scopeId?: string | null; + storeId?: string | null; + validationErrors?: Record | null; +} +export interface UpdateFunctionGraphInput { + clientMutationId?: string; + id: string; + functionGraphPatch: FunctionGraphPatch; +} +export interface DeleteFunctionGraphInput { + clientMutationId?: string; + id: string; +} +export interface CreateFunctionGraphExecutionInput { + clientMutationId?: string; + functionGraphExecution: { + actorId?: string; + completedAt?: string; + currentWave?: number; + definitionsCommitId?: string; + entityId?: string; + entityType?: string; + errorCode?: string; + errorMessage?: string; + executionPlan?: Record; + graphId: string; + inputPayload?: Record; + invocationCreatedAt?: string; + invocationId?: string; + lastProgressAt?: string; + maxPendingJobs?: number; + maxTicks?: number; + nodeOutputs?: Record; + organizationId?: string; + outputNames?: string[]; + outputNode?: string; + outputPayload?: Record; + outputPort?: string; + parentExecutionId?: string; + parentInvocationId?: string; + parentNodeName?: string; + principalId?: string; + scopeId: string; + startedAt?: string; + status?: string; + tickCount?: number; + timeoutAt?: string; + }; +} +export interface FunctionGraphExecutionPatch { + actorId?: string | null; + completedAt?: string | null; + currentWave?: number | null; + definitionsCommitId?: string | null; + entityId?: string | null; + entityType?: string | null; + errorCode?: string | null; + errorMessage?: string | null; + executionPlan?: Record | null; + graphId?: string | null; + inputPayload?: Record | null; + invocationCreatedAt?: string | null; + invocationId?: string | null; + lastProgressAt?: string | null; + maxPendingJobs?: number | null; + maxTicks?: number | null; + nodeOutputs?: Record | null; + organizationId?: string | null; + outputNames?: string[] | null; + outputNode?: string | null; + outputPayload?: Record | null; + outputPort?: string | null; + parentExecutionId?: string | null; + parentInvocationId?: string | null; + parentNodeName?: string | null; + principalId?: string | null; + scopeId?: string | null; + startedAt?: string | null; + status?: string | null; + tickCount?: number | null; + timeoutAt?: string | null; +} +export interface UpdateFunctionGraphExecutionInput { + clientMutationId?: string; + id: string; + functionGraphExecutionPatch: FunctionGraphExecutionPatch; +} +export interface DeleteFunctionGraphExecutionInput { + clientMutationId?: string; + id: string; +} +export interface CreateFunctionGraphExecutionNodeStateInput { + clientMutationId?: string; + functionGraphExecutionNodeState: { + callbackInputs?: Record; + callbackMeta?: Record; + callbackTokenHash?: string; + completedAt?: string; + errorCode?: string; + errorMessage?: string; + executionId: string; + expiryDefaultOutput?: Record; + expiryEscalatedAt?: string; + expiryPolicy?: string; + nodeName: string; + nodePath?: string[]; + outputId?: string; + scopeId: string; + startedAt?: string; + status?: string; + waitingDeadlineAt?: string; + waitingOn?: string; + waitingSince?: string; + }; +} +export interface FunctionGraphExecutionNodeStatePatch { + callbackInputs?: Record | null; + callbackMeta?: Record | null; + callbackTokenHash?: string | null; + completedAt?: string | null; + errorCode?: string | null; + errorMessage?: string | null; + executionId?: string | null; + expiryDefaultOutput?: Record | null; + expiryEscalatedAt?: string | null; + expiryPolicy?: string | null; + nodeName?: string | null; + nodePath?: string[] | null; + outputId?: string | null; + scopeId?: string | null; + startedAt?: string | null; + status?: string | null; + waitingDeadlineAt?: string | null; + waitingOn?: string | null; + waitingSince?: string | null; +} +export interface UpdateFunctionGraphExecutionNodeStateInput { + clientMutationId?: string; + id: string; + functionGraphExecutionNodeStatePatch: FunctionGraphExecutionNodeStatePatch; +} +export interface DeleteFunctionGraphExecutionNodeStateInput { + clientMutationId?: string; + id: string; +} +export interface CreateFunctionGraphExecutionOutputInput { + clientMutationId?: string; + functionGraphExecutionOutput: { + data: Record; + hash: Base64EncodedBinary; + scopeId: string; + }; +} +export interface FunctionGraphExecutionOutputPatch { + data?: Record | null; + hash?: Base64EncodedBinary | null; + scopeId?: string | null; +} +export interface UpdateFunctionGraphExecutionOutputInput { + clientMutationId?: string; + id: string; + functionGraphExecutionOutputPatch: FunctionGraphExecutionOutputPatch; +} +export interface DeleteFunctionGraphExecutionOutputInput { + clientMutationId?: string; + id: string; +} +export interface CreateFunctionGraphObjectInput { + clientMutationId?: string; + functionGraphObject: { + data?: Record; + kids?: string[]; + ktree?: string[]; + scopeId: string; + }; +} +export interface FunctionGraphObjectPatch { + data?: Record | null; + kids?: string[] | null; + ktree?: string[] | null; + scopeId?: string | null; +} +export interface UpdateFunctionGraphObjectInput { + clientMutationId?: string; + id: string; + functionGraphObjectPatch: FunctionGraphObjectPatch; +} +export interface DeleteFunctionGraphObjectInput { + clientMutationId?: string; + id: string; +} +export interface CreateFunctionGraphRefInput { + clientMutationId?: string; + functionGraphRef: { + commitId?: string; + name: string; + scopeId: string; + storeId: string; + }; +} +export interface FunctionGraphRefPatch { + commitId?: string | null; + name?: string | null; + scopeId?: string | null; + storeId?: string | null; +} +export interface UpdateFunctionGraphRefInput { + clientMutationId?: string; + id: string; + functionGraphRefPatch: FunctionGraphRefPatch; +} +export interface DeleteFunctionGraphRefInput { + clientMutationId?: string; + id: string; +} +export interface CreateFunctionGraphStoreInput { + clientMutationId?: string; + functionGraphStore: { + hash?: string; + name: string; + scopeId: string; + }; +} +export interface FunctionGraphStorePatch { + hash?: string | null; + name?: string | null; + scopeId?: string | null; +} +export interface UpdateFunctionGraphStoreInput { + clientMutationId?: string; + id: string; + functionGraphStorePatch: FunctionGraphStorePatch; +} +export interface DeleteFunctionGraphStoreInput { + clientMutationId?: string; + id: string; +} +export interface CreateFunctionInvocationAttemptInput { + clientMutationId?: string; + functionInvocationAttempt: { + actorId?: string; + attempt: number; + databaseId: string; + durationMs?: number; + error?: string; + errorDetail?: Record; + invocationCreatedAt: string; + invocationId: string; + startedAt?: string; + success: boolean; + taskIdentifier: string; + }; +} +export interface FunctionInvocationAttemptPatch { + actorId?: string | null; + attempt?: number | null; + databaseId?: string | null; + durationMs?: number | null; + error?: string | null; + errorDetail?: Record | null; + invocationCreatedAt?: string | null; + invocationId?: string | null; + startedAt?: string | null; + success?: boolean | null; + taskIdentifier?: string | null; +} +export interface UpdateFunctionInvocationAttemptInput { + clientMutationId?: string; + id: string; + functionInvocationAttemptPatch: FunctionInvocationAttemptPatch; +} +export interface DeleteFunctionInvocationAttemptInput { + clientMutationId?: string; + id: string; +} +export interface CreateFunctionInvocationInput { + clientMutationId?: string; + functionInvocation: { + actorId?: string; + apiBindingId?: string; + channel: string; + completedAt?: string; + createdByPrincipal?: string; + databaseId: string; + definitionScope?: string; + durationMs?: number; + entityId?: string; + entityType?: string; + error?: string; + functionDefinitionId?: string; + graphExecutionId?: string; + jobId?: string; + organizationId?: string; + parentInvocationId?: string; + payload?: Record; + principalId?: string; + provenance?: Record; + result?: Record; + startedAt?: string; + status?: string; + taskIdentifier: string; + }; +} +export interface FunctionInvocationPatch { + actorId?: string | null; + apiBindingId?: string | null; + channel?: string | null; + completedAt?: string | null; + createdByPrincipal?: string | null; + databaseId?: string | null; + definitionScope?: string | null; + durationMs?: number | null; + entityId?: string | null; + entityType?: string | null; + error?: string | null; + functionDefinitionId?: string | null; + graphExecutionId?: string | null; + jobId?: string | null; + organizationId?: string | null; + parentInvocationId?: string | null; + payload?: Record | null; + principalId?: string | null; + provenance?: Record | null; + result?: Record | null; + startedAt?: string | null; + status?: string | null; + taskIdentifier?: string | null; +} +export interface UpdateFunctionInvocationInput { + clientMutationId?: string; + id: string; + functionInvocationPatch: FunctionInvocationPatch; +} +export interface DeleteFunctionInvocationInput { + clientMutationId?: string; + id: string; +} +export interface CreateGetAllTreeNodesRecordInput { + clientMutationId?: string; + getAllTreeNodesRecord: { + data?: Record; + path?: string[]; + }; +} +export interface GetAllTreeNodesRecordPatch { + data?: Record | null; + path?: string[] | null; +} +export interface UpdateGetAllTreeNodesRecordInput { + clientMutationId?: string; + id: string; + getAllTreeNodesRecordPatch: GetAllTreeNodesRecordPatch; +} +export interface DeleteGetAllTreeNodesRecordInput { + clientMutationId?: string; + id: string; +} +export interface CreateImageInput { + clientMutationId?: string; + image: { + createdByPrincipal?: string; + databaseId: string; + description?: string; + digest?: string; + expiresAt?: string; + isPublished?: boolean; + labels?: Record; + metadata?: Record; + name: string; + ownerId?: string; + platformOnly?: boolean; + registryHost?: string; + repository: string; + runtime?: string; + tag?: string; + updatedByPrincipal?: string; + }; +} +export interface ImagePatch { + createdByPrincipal?: string | null; + databaseId?: string | null; + description?: string | null; + digest?: string | null; + expiresAt?: string | null; + isPublished?: boolean | null; + labels?: Record | null; + metadata?: Record | null; + name?: string | null; + ownerId?: string | null; + platformOnly?: boolean | null; + registryHost?: string | null; + repository?: string | null; + runtime?: string | null; + tag?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdateImageInput { + clientMutationId?: string; + id: string; + imagePatch: ImagePatch; +} +export interface DeleteImageInput { + clientMutationId?: string; + id: string; +} +export interface CreateImageGrantInput { + clientMutationId?: string; + imageGrant: { + actions?: string[]; + createdByPrincipal?: string; + databaseId: string; + expiresAt?: string; + grantedBy?: string; + granteeKey: string; + granteeScope: string; + imageId: string; + updatedByPrincipal?: string; + }; +} +export interface ImageGrantPatch { + actions?: string[] | null; + createdByPrincipal?: string | null; + databaseId?: string | null; + expiresAt?: string | null; + grantedBy?: string | null; + granteeKey?: string | null; + granteeScope?: string | null; + imageId?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdateImageGrantInput { + clientMutationId?: string; + id: string; + imageGrantPatch: ImageGrantPatch; +} +export interface DeleteImageGrantInput { + clientMutationId?: string; + id: string; +} +export interface CreateInfraCommitInput { + clientMutationId?: string; + infraCommit: { + authorId?: string; + committerId?: string; + databaseId: string; + date?: string; + message?: string; + parentIds?: string[]; + storeId: string; + treeId?: string; + }; +} +export interface InfraCommitPatch { + authorId?: string | null; + committerId?: string | null; + databaseId?: string | null; + date?: string | null; + message?: string | null; + parentIds?: string[] | null; + storeId?: string | null; + treeId?: string | null; +} +export interface UpdateInfraCommitInput { + clientMutationId?: string; + id: string; + infraCommitPatch: InfraCommitPatch; +} +export interface DeleteInfraCommitInput { + clientMutationId?: string; + id: string; +} +export interface CreateInfraGetAllTreeNodesRecordInput { + clientMutationId?: string; + infraGetAllTreeNodesRecord: { + data?: Record; + path?: string[]; + }; +} +export interface InfraGetAllTreeNodesRecordPatch { + data?: Record | null; + path?: string[] | null; +} +export interface UpdateInfraGetAllTreeNodesRecordInput { + clientMutationId?: string; + id: string; + infraGetAllTreeNodesRecordPatch: InfraGetAllTreeNodesRecordPatch; +} +export interface DeleteInfraGetAllTreeNodesRecordInput { + clientMutationId?: string; + id: string; +} +export interface CreateInfraObjectInput { + clientMutationId?: string; + infraObject: { + data?: Record; + databaseId: string; + kids?: string[]; + ktree?: string[]; + }; +} +export interface InfraObjectPatch { + data?: Record | null; + databaseId?: string | null; + kids?: string[] | null; + ktree?: string[] | null; +} +export interface UpdateInfraObjectInput { + clientMutationId?: string; + id: string; + infraObjectPatch: InfraObjectPatch; +} +export interface DeleteInfraObjectInput { + clientMutationId?: string; + id: string; +} +export interface CreateInfraRefInput { + clientMutationId?: string; + infraRef: { + commitId?: string; + databaseId: string; + name: string; + storeId: string; + }; +} +export interface InfraRefPatch { + commitId?: string | null; + databaseId?: string | null; + name?: string | null; + storeId?: string | null; +} +export interface UpdateInfraRefInput { + clientMutationId?: string; + id: string; + infraRefPatch: InfraRefPatch; +} +export interface DeleteInfraRefInput { + clientMutationId?: string; + id: string; +} +export interface CreateInfraStoreInput { + clientMutationId?: string; + infraStore: { + databaseId: string; + hash?: string; + name: string; + }; +} +export interface InfraStorePatch { + databaseId?: string | null; + hash?: string | null; + name?: string | null; +} +export interface UpdateInfraStoreInput { + clientMutationId?: string; + id: string; + infraStorePatch: InfraStorePatch; +} +export interface DeleteInfraStoreInput { + clientMutationId?: string; + id: string; +} +export interface CreateIntegrationProviderInput { + clientMutationId?: string; + integrationProvider: { + brand?: Record; + category?: string; + description?: string; + icon?: string; + logo?: ConstructiveInternalTypeImage; + name: string; + requiredConfigs?: ResourceRequirementInput[]; + requiredSecrets?: ResourceRequirementInput[]; + slug: string; + }; +} +export interface IntegrationProviderPatch { + brand?: Record | null; + category?: string | null; + description?: string | null; + icon?: string | null; + logo?: ConstructiveInternalTypeImage | null; + logoUpload?: File | null; + name?: string | null; + requiredConfigs?: ResourceRequirementInput[] | null; + requiredSecrets?: ResourceRequirementInput[] | null; + slug?: string | null; +} +export interface UpdateIntegrationProviderInput { + clientMutationId?: string; + id: string; + integrationProviderPatch: IntegrationProviderPatch; +} +export interface DeleteIntegrationProviderInput { + clientMutationId?: string; + id: string; +} +export interface CreateNamespaceInput { + clientMutationId?: string; + namespace: { + annotations?: Record; + clusterId?: string; + databaseId: string; + description?: string; + isActive?: boolean; + isManaged?: boolean; + labels?: Record; + lastError?: string; + name: string; + namespaceName: string; + status?: string; + }; +} +export interface NamespacePatch { + annotations?: Record | null; + clusterId?: string | null; + databaseId?: string | null; + description?: string | null; + isActive?: boolean | null; + isManaged?: boolean | null; + labels?: Record | null; + lastError?: string | null; + name?: string | null; + namespaceName?: string | null; + status?: string | null; +} +export interface UpdateNamespaceInput { + clientMutationId?: string; + id: string; + namespacePatch: NamespacePatch; +} +export interface DeleteNamespaceInput { + clientMutationId?: string; + id: string; +} +export interface CreateNamespaceEventInput { + clientMutationId?: string; + namespaceEvent: { + actorId?: string; + databaseId: string; + eventType: string; + message?: string; + metadata?: Record; + namespaceId: string; + }; +} +export interface NamespaceEventPatch { + actorId?: string | null; + databaseId?: string | null; + eventType?: string | null; + message?: string | null; + metadata?: Record | null; + namespaceId?: string | null; +} +export interface UpdateNamespaceEventInput { + clientMutationId?: string; + id: string; + namespaceEventPatch: NamespaceEventPatch; +} +export interface DeleteNamespaceEventInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformBuildInput { + clientMutationId?: string; + platformBuild: { + actorId?: string; + attempt?: number; + commitSha?: string; + conclusion?: string; + createdByPrincipal?: string; + eventId?: string; + finishedAt?: string; + imageRef?: string; + jobId?: string; + logs?: ConstructiveInternalTypeUpload; + matrixKey?: string; + metadata?: Record; + proposalId?: string; + ref?: string; + repositoryId: string; + startedAt?: string; + status?: string; + updatedByPrincipal?: string; + workflowId?: string; + }; +} +export interface PlatformBuildPatch { + actorId?: string | null; + attempt?: number | null; + commitSha?: string | null; + conclusion?: string | null; + createdByPrincipal?: string | null; + eventId?: string | null; + finishedAt?: string | null; + imageRef?: string | null; + jobId?: string | null; + logs?: ConstructiveInternalTypeUpload | null; + logsUpload?: File | null; + matrixKey?: string | null; + metadata?: Record | null; + proposalId?: string | null; + ref?: string | null; + repositoryId?: string | null; + startedAt?: string | null; + status?: string | null; + updatedByPrincipal?: string | null; + workflowId?: string | null; +} +export interface UpdatePlatformBuildInput { + clientMutationId?: string; + id: string; + platformBuildPatch: PlatformBuildPatch; +} +export interface DeletePlatformBuildInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformBuildStepInput { + clientMutationId?: string; + platformBuildStep: { + buildId: string; + createdByPrincipal?: string; + exitCode?: number; + finishedAt?: string; + kind?: string; + logBytes?: string; + logOffset?: string; + name: string; + parentSeq?: number; + recordedAt?: string; + seq: number; + startedAt?: string; + status?: string; + summary?: Record; + }; +} +export interface PlatformBuildStepPatch { + buildId?: string | null; + createdByPrincipal?: string | null; + exitCode?: number | null; + finishedAt?: string | null; + kind?: string | null; + logBytes?: string | null; + logOffset?: string | null; + name?: string | null; + parentSeq?: number | null; + recordedAt?: string | null; + seq?: number | null; + startedAt?: string | null; + status?: string | null; + summary?: Record | null; +} +export interface UpdatePlatformBuildStepInput { + clientMutationId?: string; + id: string; + platformBuildStepPatch: PlatformBuildStepPatch; +} +export interface DeletePlatformBuildStepInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformBuilderBindingInput { + clientMutationId?: string; + platformBuilderBinding: { + createdBy?: string; + createdByPrincipal?: string; + installationId: string; + lastError?: string; + metadata?: Record; + namespaceId: string; + observedHost?: string; + realm?: string; + status?: string; + updatedBy?: string; + updatedByPrincipal?: string; + }; +} +export interface PlatformBuilderBindingPatch { + createdBy?: string | null; + createdByPrincipal?: string | null; + installationId?: string | null; + lastError?: string | null; + metadata?: Record | null; + namespaceId?: string | null; + observedHost?: string | null; + realm?: string | null; + status?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdatePlatformBuilderBindingInput { + clientMutationId?: string; + id: string; + platformBuilderBindingPatch: PlatformBuilderBindingPatch; +} +export interface DeletePlatformBuilderBindingInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformFunctionApiBindingInput { + clientMutationId?: string; + platformFunctionApiBinding: { + alias?: string; + apiId: string; + config?: Record; + functionDefinitionId: string; + }; +} +export interface PlatformFunctionApiBindingPatch { + alias?: string | null; + apiId?: string | null; + config?: Record | null; + functionDefinitionId?: string | null; +} +export interface UpdatePlatformFunctionApiBindingInput { + clientMutationId?: string; + id: string; + platformFunctionApiBindingPatch: PlatformFunctionApiBindingPatch; +} +export interface DeletePlatformFunctionApiBindingInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformFunctionCapabilityBindingInput { + clientMutationId?: string; + platformFunctionCapabilityBinding: { + bucketId?: string; + functionId?: string; + graphId?: string; + key?: string; + lifecycle: string; + metadata?: Record; + }; +} +export interface PlatformFunctionCapabilityBindingPatch { + bucketId?: string | null; + functionId?: string | null; + graphId?: string | null; + key?: string | null; + lifecycle?: string | null; + metadata?: Record | null; +} +export interface UpdatePlatformFunctionCapabilityBindingInput { + clientMutationId?: string; + id: string; + platformFunctionCapabilityBindingPatch: PlatformFunctionCapabilityBindingPatch; +} +export interface DeletePlatformFunctionCapabilityBindingInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformFunctionDefinitionInput { + clientMutationId?: string; + platformFunctionDefinition: { + accessChannels?: string[]; + anonymousCallable?: boolean; + billable?: boolean; + category: string; + concurrency?: number; + createdByPrincipal?: string; + description?: string; + fnCategory?: string; + functionColumns?: Record; + graphId?: string; + icon?: string; + image?: string; + inputs?: Record; + integrations?: string[]; + isPublished?: boolean; + maxAttempts?: number; + moduleTable?: string; + name: string; + outputs?: Record; + payloadArgs?: Record; + priority?: number; + props?: Record; + protected?: boolean; + publishedAt?: string; + queueName?: string; + requiredBuckets?: string[]; + requiredCapabilities?: Record; + requiredConfigs?: ResourceRequirementInput[]; + requiredModels?: string[]; + requiredModules?: string[]; + requiredSecrets?: ResourceRequirementInput[]; + resources?: Record; + runtime?: string; + scaleMax?: number; + scaleMin?: number; + system?: boolean; + targetFunction?: string; + targetSchema?: string; + timeoutSeconds?: number; + updatedByPrincipal?: string; + volatile?: boolean; + }; +} +export interface PlatformFunctionDefinitionPatch { + accessChannels?: string[] | null; + anonymousCallable?: boolean | null; + billable?: boolean | null; + category?: string | null; + concurrency?: number | null; + createdByPrincipal?: string | null; + description?: string | null; + fnCategory?: string | null; + functionColumns?: Record | null; + graphId?: string | null; + icon?: string | null; + image?: string | null; + inputs?: Record | null; + integrations?: string[] | null; + isPublished?: boolean | null; + maxAttempts?: number | null; + moduleTable?: string | null; + name?: string | null; + outputs?: Record | null; + payloadArgs?: Record | null; + priority?: number | null; + props?: Record | null; + protected?: boolean | null; + publishedAt?: string | null; + queueName?: string | null; + requiredBuckets?: string[] | null; + requiredCapabilities?: Record | null; + requiredConfigs?: ResourceRequirementInput[] | null; + requiredModels?: string[] | null; + requiredModules?: string[] | null; + requiredSecrets?: ResourceRequirementInput[] | null; + resources?: Record | null; + runtime?: string | null; + scaleMax?: number | null; + scaleMin?: number | null; + system?: boolean | null; + targetFunction?: string | null; + targetSchema?: string | null; + timeoutSeconds?: number | null; + updatedByPrincipal?: string | null; + volatile?: boolean | null; +} +export interface UpdatePlatformFunctionDefinitionInput { + clientMutationId?: string; + id: string; + platformFunctionDefinitionPatch: PlatformFunctionDefinitionPatch; +} +export interface DeletePlatformFunctionDefinitionInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformFunctionDeploymentInput { + clientMutationId?: string; + platformFunctionDeployment: { + annotations?: Record; + concurrency?: number; + createdByPrincipal?: string; + errorCount?: number; + handlerName?: string; + image: string; + imageVersion?: string; + labels?: Record; + lastError?: string; + lastErrorAt?: string; + namespaceId: string; + realm?: string; + resources?: Record; + revision?: number; + scaleMax?: number; + scaleMin?: number; + serviceName?: string; + serviceUrl?: string; + status?: string; + timeoutSeconds?: number; + updatedByPrincipal?: string; + }; +} +export interface PlatformFunctionDeploymentPatch { + annotations?: Record | null; + concurrency?: number | null; + createdByPrincipal?: string | null; + errorCount?: number | null; + handlerName?: string | null; + image?: string | null; + imageVersion?: string | null; + labels?: Record | null; + lastError?: string | null; + lastErrorAt?: string | null; + namespaceId?: string | null; + realm?: string | null; + resources?: Record | null; + revision?: number | null; + scaleMax?: number | null; + scaleMin?: number | null; + serviceName?: string | null; + serviceUrl?: string | null; + status?: string | null; + timeoutSeconds?: number | null; + updatedByPrincipal?: string | null; +} +export interface UpdatePlatformFunctionDeploymentInput { + clientMutationId?: string; + id: string; + platformFunctionDeploymentPatch: PlatformFunctionDeploymentPatch; +} +export interface DeletePlatformFunctionDeploymentInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformFunctionDeploymentEventInput { + clientMutationId?: string; + platformFunctionDeploymentEvent: { + actorId?: string; + deploymentId: string; + eventType: string; + message?: string; + metadata?: Record; + }; +} +export interface PlatformFunctionDeploymentEventPatch { + actorId?: string | null; + deploymentId?: string | null; + eventType?: string | null; + message?: string | null; + metadata?: Record | null; +} +export interface UpdatePlatformFunctionDeploymentEventInput { + clientMutationId?: string; + id: string; + platformFunctionDeploymentEventPatch: PlatformFunctionDeploymentEventPatch; +} +export interface DeletePlatformFunctionDeploymentEventInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformFunctionExecutionLogInput { + clientMutationId?: string; + platformFunctionExecutionLog: { + actorId?: string; + invocationId?: string; + logLevel?: string; + message: string; + metadata?: Record; + taskIdentifier?: string; + }; +} +export interface PlatformFunctionExecutionLogPatch { + actorId?: string | null; + invocationId?: string | null; + logLevel?: string | null; + message?: string | null; + metadata?: Record | null; + taskIdentifier?: string | null; +} +export interface UpdatePlatformFunctionExecutionLogInput { + clientMutationId?: string; + id: string; + platformFunctionExecutionLogPatch: PlatformFunctionExecutionLogPatch; +} +export interface DeletePlatformFunctionExecutionLogInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformFunctionInvocationAttemptInput { + clientMutationId?: string; + platformFunctionInvocationAttempt: { + actorId?: string; + attempt: number; + durationMs?: number; + error?: string; + errorDetail?: Record; + invocationCreatedAt: string; + invocationId: string; + startedAt?: string; + success: boolean; + taskIdentifier: string; + }; +} +export interface PlatformFunctionInvocationAttemptPatch { + actorId?: string | null; + attempt?: number | null; + durationMs?: number | null; + error?: string | null; + errorDetail?: Record | null; + invocationCreatedAt?: string | null; + invocationId?: string | null; + startedAt?: string | null; + success?: boolean | null; + taskIdentifier?: string | null; +} +export interface UpdatePlatformFunctionInvocationAttemptInput { + clientMutationId?: string; + id: string; + platformFunctionInvocationAttemptPatch: PlatformFunctionInvocationAttemptPatch; +} +export interface DeletePlatformFunctionInvocationAttemptInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformFunctionInvocationInput { + clientMutationId?: string; + platformFunctionInvocation: { + actorId?: string; + apiBindingId?: string; + channel: string; + completedAt?: string; + createdByPrincipal?: string; + databaseId?: string; + definitionScope?: string; + durationMs?: number; + entityId?: string; + entityType?: string; + error?: string; + functionDefinitionId?: string; + graphExecutionId?: string; + jobId?: string; + organizationId?: string; + parentInvocationId?: string; + payload?: Record; + principalId?: string; + provenance?: Record; + result?: Record; + startedAt?: string; + status?: string; + taskIdentifier: string; + }; +} +export interface PlatformFunctionInvocationPatch { + actorId?: string | null; + apiBindingId?: string | null; + channel?: string | null; + completedAt?: string | null; + createdByPrincipal?: string | null; + databaseId?: string | null; + definitionScope?: string | null; + durationMs?: number | null; + entityId?: string | null; + entityType?: string | null; + error?: string | null; + functionDefinitionId?: string | null; + graphExecutionId?: string | null; + jobId?: string | null; + organizationId?: string | null; + parentInvocationId?: string | null; + payload?: Record | null; + principalId?: string | null; + provenance?: Record | null; + result?: Record | null; + startedAt?: string | null; + status?: string | null; + taskIdentifier?: string | null; +} +export interface UpdatePlatformFunctionInvocationInput { + clientMutationId?: string; + id: string; + platformFunctionInvocationPatch: PlatformFunctionInvocationPatch; +} +export interface DeletePlatformFunctionInvocationInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformImageInput { + clientMutationId?: string; + platformImage: { + createdByPrincipal?: string; + description?: string; + digest?: string; + expiresAt?: string; + isPublished?: boolean; + labels?: Record; + metadata?: Record; + name: string; + ownerId?: string; + platformOnly?: boolean; + registryHost?: string; + repository: string; + runtime?: string; + tag?: string; + updatedByPrincipal?: string; + }; +} +export interface PlatformImagePatch { + createdByPrincipal?: string | null; + description?: string | null; + digest?: string | null; + expiresAt?: string | null; + isPublished?: boolean | null; + labels?: Record | null; + metadata?: Record | null; + name?: string | null; + ownerId?: string | null; + platformOnly?: boolean | null; + registryHost?: string | null; + repository?: string | null; + runtime?: string | null; + tag?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdatePlatformImageInput { + clientMutationId?: string; + id: string; + platformImagePatch: PlatformImagePatch; +} +export interface DeletePlatformImageInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformImageGrantInput { + clientMutationId?: string; + platformImageGrant: { + actions?: string[]; + createdByPrincipal?: string; + expiresAt?: string; + grantedBy?: string; + granteeKey: string; + granteeScope: string; + imageId: string; + updatedByPrincipal?: string; + }; +} +export interface PlatformImageGrantPatch { + actions?: string[] | null; + createdByPrincipal?: string | null; + expiresAt?: string | null; + grantedBy?: string | null; + granteeKey?: string | null; + granteeScope?: string | null; + imageId?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdatePlatformImageGrantInput { + clientMutationId?: string; + id: string; + platformImageGrantPatch: PlatformImageGrantPatch; +} +export interface DeletePlatformImageGrantInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformInfraCommitInput { + clientMutationId?: string; + platformInfraCommit: { + authorId?: string; + committerId?: string; + date?: string; + message?: string; + parentIds?: string[]; + scopeId: string; + storeId: string; + treeId?: string; + }; +} +export interface PlatformInfraCommitPatch { + authorId?: string | null; + committerId?: string | null; + date?: string | null; + message?: string | null; + parentIds?: string[] | null; + scopeId?: string | null; + storeId?: string | null; + treeId?: string | null; +} +export interface UpdatePlatformInfraCommitInput { + clientMutationId?: string; + id: string; + platformInfraCommitPatch: PlatformInfraCommitPatch; +} +export interface DeletePlatformInfraCommitInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformInfraGetAllTreeNodesRecordInput { + clientMutationId?: string; + platformInfraGetAllTreeNodesRecord: { + data?: Record; + path?: string[]; + }; +} +export interface PlatformInfraGetAllTreeNodesRecordPatch { + data?: Record | null; + path?: string[] | null; +} +export interface UpdatePlatformInfraGetAllTreeNodesRecordInput { + clientMutationId?: string; + id: string; + platformInfraGetAllTreeNodesRecordPatch: PlatformInfraGetAllTreeNodesRecordPatch; +} +export interface DeletePlatformInfraGetAllTreeNodesRecordInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformInfraObjectInput { + clientMutationId?: string; + platformInfraObject: { + data?: Record; + kids?: string[]; + ktree?: string[]; + scopeId: string; + }; +} +export interface PlatformInfraObjectPatch { + data?: Record | null; + kids?: string[] | null; + ktree?: string[] | null; + scopeId?: string | null; +} +export interface UpdatePlatformInfraObjectInput { + clientMutationId?: string; + id: string; + platformInfraObjectPatch: PlatformInfraObjectPatch; +} +export interface DeletePlatformInfraObjectInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformInfraRefInput { + clientMutationId?: string; + platformInfraRef: { + commitId?: string; + name: string; + scopeId: string; + storeId: string; + }; +} +export interface PlatformInfraRefPatch { + commitId?: string | null; + name?: string | null; + scopeId?: string | null; + storeId?: string | null; +} +export interface UpdatePlatformInfraRefInput { + clientMutationId?: string; + id: string; + platformInfraRefPatch: PlatformInfraRefPatch; +} +export interface DeletePlatformInfraRefInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformInfraStoreInput { + clientMutationId?: string; + platformInfraStore: { + hash?: string; + name: string; + scopeId: string; + }; +} +export interface PlatformInfraStorePatch { + hash?: string | null; + name?: string | null; + scopeId?: string | null; +} +export interface UpdatePlatformInfraStoreInput { + clientMutationId?: string; + id: string; + platformInfraStorePatch: PlatformInfraStorePatch; +} +export interface DeletePlatformInfraStoreInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformK8sResourceKindInput { + clientMutationId?: string; + platformK8sResourceKind: { + active?: boolean; + commitId?: string; + definition: Record; + description?: string; + label?: string; + slug: string; + storeId?: string; + }; +} +export interface PlatformK8sResourceKindPatch { + active?: boolean | null; + commitId?: string | null; + definition?: Record | null; + description?: string | null; + label?: string | null; + slug?: string | null; + storeId?: string | null; +} +export interface UpdatePlatformK8sResourceKindInput { + clientMutationId?: string; + id: string; + platformK8sResourceKindPatch: PlatformK8sResourceKindPatch; +} +export interface DeletePlatformK8sResourceKindInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformK8sSpecRuleInput { + clientMutationId?: string; + platformK8sSpecRule: { + active?: boolean; + commitId?: string; + definition: Record; + description?: string; + label?: string; + slug: string; + storeId?: string; + }; +} +export interface PlatformK8sSpecRulePatch { + active?: boolean | null; + commitId?: string | null; + definition?: Record | null; + description?: string | null; + label?: string | null; + slug?: string | null; + storeId?: string | null; +} +export interface UpdatePlatformK8sSpecRuleInput { + clientMutationId?: string; + id: string; + platformK8sSpecRulePatch: PlatformK8sSpecRulePatch; +} +export interface DeletePlatformK8sSpecRuleInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformNamespaceInput { + clientMutationId?: string; + platformNamespace: { + annotations?: Record; + clusterId?: string; + description?: string; + isActive?: boolean; + isManaged?: boolean; + labels?: Record; + lastError?: string; + name: string; + namespaceName: string; + status?: string; + }; +} +export interface PlatformNamespacePatch { + annotations?: Record | null; + clusterId?: string | null; + description?: string | null; + isActive?: boolean | null; + isManaged?: boolean | null; + labels?: Record | null; + lastError?: string | null; + name?: string | null; + namespaceName?: string | null; + status?: string | null; +} +export interface UpdatePlatformNamespaceInput { + clientMutationId?: string; + id: string; + platformNamespacePatch: PlatformNamespacePatch; +} +export interface DeletePlatformNamespaceInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformNamespaceEventInput { + clientMutationId?: string; + platformNamespaceEvent: { + actorId?: string; + eventType: string; + message?: string; + metadata?: Record; + namespaceId: string; + }; +} +export interface PlatformNamespaceEventPatch { + actorId?: string | null; + eventType?: string | null; + message?: string | null; + metadata?: Record | null; + namespaceId?: string | null; +} +export interface UpdatePlatformNamespaceEventInput { + clientMutationId?: string; + id: string; + platformNamespaceEventPatch: PlatformNamespaceEventPatch; +} +export interface DeletePlatformNamespaceEventInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformProposalCommentInput { + clientMutationId?: string; + platformProposalComment: { + actorId?: string; + attachments?: ConstructiveInternalTypeUpload[]; + body: string; + createdBy?: string; + createdByPrincipal?: string; + embedding?: number[]; + embeddingText?: string; + line?: number; + outdatedAt?: string; + path?: string; + proposalId: string; + resolvedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; + }; +} +export interface PlatformProposalCommentPatch { + actorId?: string | null; + attachments?: ConstructiveInternalTypeUpload[] | null; + body?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + embedding?: number[] | null; + embeddingText?: string | null; + line?: number | null; + outdatedAt?: string | null; + path?: string | null; + proposalId?: string | null; + resolvedAt?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdatePlatformProposalCommentInput { + clientMutationId?: string; + id: string; + platformProposalCommentPatch: PlatformProposalCommentPatch; +} +export interface DeletePlatformProposalCommentInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformProposalInput { + clientMutationId?: string; + platformProposal: { + actorId?: string; + body?: string; + closedReason?: string; + createdBy?: string; + createdByPrincipal?: string; + decidedAt?: string; + dueAt?: string; + embedding?: number[]; + embeddingText?: string; + kind?: string; + labels?: string[]; + mergeCommit?: string; + mergeMethod?: string; + mergeRequestedAt?: string; + mergedAt?: string; + metadata?: Record; + parentId?: string; + priority?: string; + repositoryId: string; + resolution?: string; + sourceRef?: string; + status?: string; + targetRef?: string; + title: string; + updatedBy?: string; + updatedByPrincipal?: string; + }; +} +export interface PlatformProposalPatch { + actorId?: string | null; + body?: string | null; + closedReason?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + decidedAt?: string | null; + dueAt?: string | null; + embedding?: number[] | null; + embeddingText?: string | null; + kind?: string | null; + labels?: string[] | null; + mergeCommit?: string | null; + mergeMethod?: string | null; + mergeRequestedAt?: string | null; + mergedAt?: string | null; + metadata?: Record | null; + parentId?: string | null; + priority?: string | null; + repositoryId?: string | null; + resolution?: string | null; + sourceRef?: string | null; + status?: string | null; + targetRef?: string | null; + title?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdatePlatformProposalInput { + clientMutationId?: string; + id: string; + platformProposalPatch: PlatformProposalPatch; +} +export interface DeletePlatformProposalInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformProposalFileViewInput { + clientMutationId?: string; + platformProposalFileView: { + blobSha: string; + createdByPrincipal?: string; + path: string; + proposalId: string; + reviewerId: string; + updatedByPrincipal?: string; + viewedAt?: string; + }; +} +export interface PlatformProposalFileViewPatch { + blobSha?: string | null; + createdByPrincipal?: string | null; + path?: string | null; + proposalId?: string | null; + reviewerId?: string | null; + updatedByPrincipal?: string | null; + viewedAt?: string | null; +} +export interface UpdatePlatformProposalFileViewInput { + clientMutationId?: string; + id: string; + platformProposalFileViewPatch: PlatformProposalFileViewPatch; +} +export interface DeletePlatformProposalFileViewInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformProposalReactionInput { + clientMutationId?: string; + platformProposalReaction: { + actorId: string; + commentId?: string; + createdByPrincipal?: string; + emoji: string; + proposalId: string; + updatedByPrincipal?: string; + }; +} +export interface PlatformProposalReactionPatch { + actorId?: string | null; + commentId?: string | null; + createdByPrincipal?: string | null; + emoji?: string | null; + proposalId?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdatePlatformProposalReactionInput { + clientMutationId?: string; + id: string; + platformProposalReactionPatch: PlatformProposalReactionPatch; +} +export interface DeletePlatformProposalReactionInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformProposalReviewInput { + clientMutationId?: string; + platformProposalReview: { + body?: string; + commitSha: string; + createdByPrincipal?: string; + proposalId: string; + reviewerId: string; + submittedAt?: string; + updatedByPrincipal?: string; + verdict: string; + }; +} +export interface PlatformProposalReviewPatch { + body?: string | null; + commitSha?: string | null; + createdByPrincipal?: string | null; + proposalId?: string | null; + reviewerId?: string | null; + submittedAt?: string | null; + updatedByPrincipal?: string | null; + verdict?: string | null; +} +export interface UpdatePlatformProposalReviewInput { + clientMutationId?: string; + id: string; + platformProposalReviewPatch: PlatformProposalReviewPatch; +} +export interface DeletePlatformProposalReviewInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformProposalsChunkInput { + clientMutationId?: string; + platformProposalsChunk: { + actorId?: string; + body: string; + chunkIndex?: number; + embedding?: number[]; + embeddingText?: string; + metadata?: Record; + platformProposalsId: string; + }; +} +export interface PlatformProposalsChunkPatch { + actorId?: string | null; + body?: string | null; + chunkIndex?: number | null; + embedding?: number[] | null; + embeddingText?: string | null; + metadata?: Record | null; + platformProposalsId?: string | null; +} +export interface UpdatePlatformProposalsChunkInput { + clientMutationId?: string; + id: string; + platformProposalsChunkPatch: PlatformProposalsChunkPatch; +} +export interface DeletePlatformProposalsChunkInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformRegistryBindingInput { + clientMutationId?: string; + platformRegistryBinding: { + createdBy?: string; + createdByPrincipal?: string; + metadata?: Record; + namespaceId: string; + observedCredentialVersion?: string; + pullSecretName?: string; + realm?: string; + registryHost: string; + registryId: string; + status?: string; + updatedBy?: string; + updatedByPrincipal?: string; + }; +} +export interface PlatformRegistryBindingPatch { + createdBy?: string | null; + createdByPrincipal?: string | null; + metadata?: Record | null; + namespaceId?: string | null; + observedCredentialVersion?: string | null; + pullSecretName?: string | null; + realm?: string | null; + registryHost?: string | null; + registryId?: string | null; + status?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdatePlatformRegistryBindingInput { + clientMutationId?: string; + id: string; + platformRegistryBindingPatch: PlatformRegistryBindingPatch; +} +export interface DeletePlatformRegistryBindingInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformRegistryInput { + clientMutationId?: string; + platformRegistry: { + authMode?: string; + basePath?: string; + createdByPrincipal?: string; + credentialSecretName?: string; + host?: string; + installationId?: string; + isPublished?: boolean; + kind: string; + labels?: Record; + lastError?: string; + metadata?: Record; + name: string; + platformOnly?: boolean; + role?: string; + status?: string; + updatedByPrincipal?: string; + }; +} +export interface PlatformRegistryPatch { + authMode?: string | null; + basePath?: string | null; + createdByPrincipal?: string | null; + credentialSecretName?: string | null; + host?: string | null; + installationId?: string | null; + isPublished?: boolean | null; + kind?: string | null; + labels?: Record | null; + lastError?: string | null; + metadata?: Record | null; + name?: string | null; + platformOnly?: boolean | null; + role?: string | null; + status?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdatePlatformRegistryInput { + clientMutationId?: string; + id: string; + platformRegistryPatch: PlatformRegistryPatch; +} +export interface DeletePlatformRegistryInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformRegistryGrantInput { + clientMutationId?: string; + platformRegistryGrant: { + actions?: string[]; + createdByPrincipal?: string; + expiresAt?: string; + grantedBy?: string; + granteeKey: string; + granteeScope: string; + registryId: string; + updatedByPrincipal?: string; + }; +} +export interface PlatformRegistryGrantPatch { + actions?: string[] | null; + createdByPrincipal?: string | null; + expiresAt?: string | null; + grantedBy?: string | null; + granteeKey?: string | null; + granteeScope?: string | null; + registryId?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdatePlatformRegistryGrantInput { + clientMutationId?: string; + id: string; + platformRegistryGrantPatch: PlatformRegistryGrantPatch; +} +export interface DeletePlatformRegistryGrantInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformRepositoryInput { + clientMutationId?: string; + platformRepository: { + cloneUrl?: string; + createdBy?: string; + createdByPrincipal?: string; + defaultBranch?: string; + description?: string; + embedding?: number[]; + embeddingText?: string; + externalId?: string; + isArchived?: boolean; + metadata?: Record; + name: string; + ownerId?: string; + provider?: string; + slug: string; + updatedBy?: string; + updatedByPrincipal?: string; + visibility?: string; + }; +} +export interface PlatformRepositoryPatch { + cloneUrl?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + defaultBranch?: string | null; + description?: string | null; + embedding?: number[] | null; + embeddingText?: string | null; + externalId?: string | null; + isArchived?: boolean | null; + metadata?: Record | null; + name?: string | null; + ownerId?: string | null; + provider?: string | null; + slug?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; + visibility?: string | null; +} +export interface UpdatePlatformRepositoryInput { + clientMutationId?: string; + id: string; + platformRepositoryPatch: PlatformRepositoryPatch; +} +export interface DeletePlatformRepositoryInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformRepositoryEventInput { + clientMutationId?: string; + platformRepositoryEvent: { + actorId?: string; + commitSha?: string; + createdByPrincipal?: string; + deliveryId?: string; + eventType: string; + metadata?: Record; + payload?: Record; + ref?: string; + repositoryId: string; + updatedByPrincipal?: string; + }; +} +export interface PlatformRepositoryEventPatch { + actorId?: string | null; + commitSha?: string | null; + createdByPrincipal?: string | null; + deliveryId?: string | null; + eventType?: string | null; + metadata?: Record | null; + payload?: Record | null; + ref?: string | null; + repositoryId?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdatePlatformRepositoryEventInput { + clientMutationId?: string; + id: string; + platformRepositoryEventPatch: PlatformRepositoryEventPatch; +} +export interface DeletePlatformRepositoryEventInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformRepositoryRequiredCheckInput { + clientMutationId?: string; + platformRepositoryRequiredCheck: { + repositoryId: string; + workflowId: string; + }; +} +export interface PlatformRepositoryRequiredCheckPatch { + repositoryId?: string | null; + workflowId?: string | null; +} +export interface UpdatePlatformRepositoryRequiredCheckInput { + clientMutationId?: string; + id: string; + platformRepositoryRequiredCheckPatch: PlatformRepositoryRequiredCheckPatch; +} +export interface DeletePlatformRepositoryRequiredCheckInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformRepositoryWorkflowInput { + clientMutationId?: string; + platformRepositoryWorkflow: { + cancelInProgress?: boolean; + concurrencyKey?: string; + createdBy?: string; + createdByPrincipal?: string; + eventType: string; + graphId?: string; + inputs?: Record; + isEnabled?: boolean; + name: string; + refPattern?: string; + repositoryId: string; + requiredSecrets?: string[]; + slug: string; + updatedBy?: string; + updatedByPrincipal?: string; + }; +} +export interface PlatformRepositoryWorkflowPatch { + cancelInProgress?: boolean | null; + concurrencyKey?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + eventType?: string | null; + graphId?: string | null; + inputs?: Record | null; + isEnabled?: boolean | null; + name?: string | null; + refPattern?: string | null; + repositoryId?: string | null; + requiredSecrets?: string[] | null; + slug?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdatePlatformRepositoryWorkflowInput { + clientMutationId?: string; + id: string; + platformRepositoryWorkflowPatch: PlatformRepositoryWorkflowPatch; +} +export interface DeletePlatformRepositoryWorkflowInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformResourceInput { + clientMutationId?: string; + platformResource: { + annotations?: Record; + createdBy?: string; + createdByPrincipal?: string; + errorCount?: number; + imageRef?: string; + installationId?: string; + integrations?: string[]; + kind: string; + labels?: Record; + lastError?: string; + lastHeartbeatAt?: string; + name: string; + namespaceId: string; + realm?: string; + requiredConfigs?: ResourceRequirementInput[]; + requiredSecrets?: ResourceRequirementInput[]; + resourceDefinitionId?: string; + slug: string; + spec?: Record; + status?: string; + statusObserved?: Record; + updatedBy?: string; + updatedByPrincipal?: string; + }; +} +export interface PlatformResourcePatch { + annotations?: Record | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + errorCount?: number | null; + imageRef?: string | null; + installationId?: string | null; + integrations?: string[] | null; + kind?: string | null; + labels?: Record | null; + lastError?: string | null; + lastHeartbeatAt?: string | null; + name?: string | null; + namespaceId?: string | null; + realm?: string | null; + requiredConfigs?: ResourceRequirementInput[] | null; + requiredSecrets?: ResourceRequirementInput[] | null; + resourceDefinitionId?: string | null; + slug?: string | null; + spec?: Record | null; + status?: string | null; + statusObserved?: Record | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdatePlatformResourceInput { + clientMutationId?: string; + id: string; + platformResourcePatch: PlatformResourcePatch; +} +export interface DeletePlatformResourceInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformResourceDeclaredCapacityInput { + clientMutationId?: string; + platformResourceDeclaredCapacity: { + cpuLimitMillicores?: string; + cpuRequestMillicores?: string; + installationId: string; + isTransient?: boolean; + kind?: string; + memoryLimitBytes?: string; + memoryRequestBytes?: string; + namespaceId: string; + podCountMax?: number; + podCountMin?: number; + source?: string; + sourceId: string; + storageSizeBytes?: string; + storageTotalBytes?: string; + }; +} +export interface PlatformResourceDeclaredCapacityPatch { + cpuLimitMillicores?: string | null; + cpuRequestMillicores?: string | null; + installationId?: string | null; + isTransient?: boolean | null; + kind?: string | null; + memoryLimitBytes?: string | null; + memoryRequestBytes?: string | null; + namespaceId?: string | null; + podCountMax?: number | null; + podCountMin?: number | null; + source?: string | null; + sourceId?: string | null; + storageSizeBytes?: string | null; + storageTotalBytes?: string | null; +} +export interface UpdatePlatformResourceDeclaredCapacityInput { + clientMutationId?: string; + id: string; + platformResourceDeclaredCapacityPatch: PlatformResourceDeclaredCapacityPatch; +} +export interface DeletePlatformResourceDeclaredCapacityInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformResourceDefinitionInput { + clientMutationId?: string; + platformResourceDefinition: { + annotations?: Record; + createdBy?: string; + createdByPrincipal?: string; + defaultSpec?: Record; + description?: string; + integrations?: string[]; + kind: string; + labels?: Record; + name: string; + namespaceId: string; + paramsSchema?: Record; + requiredConfigs?: ResourceRequirementInput[]; + requiredSecrets?: ResourceRequirementInput[]; + slug: string; + stepUpMinAge?: IntervalInput; + updatedBy?: string; + updatedByPrincipal?: string; + }; +} +export interface PlatformResourceDefinitionPatch { + annotations?: Record | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + defaultSpec?: Record | null; + description?: string | null; + integrations?: string[] | null; + kind?: string | null; + labels?: Record | null; + name?: string | null; + namespaceId?: string | null; + paramsSchema?: Record | null; + requiredConfigs?: ResourceRequirementInput[] | null; + requiredSecrets?: ResourceRequirementInput[] | null; + slug?: string | null; + stepUpMinAge?: IntervalInput | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdatePlatformResourceDefinitionInput { + clientMutationId?: string; + id: string; + platformResourceDefinitionPatch: PlatformResourceDefinitionPatch; +} +export interface DeletePlatformResourceDefinitionInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformResourceEventInput { + clientMutationId?: string; + platformResourceEvent: { + actorId?: string; + eventType: string; + message?: string; + metadata?: Record; + resourceId: string; + }; +} +export interface PlatformResourceEventPatch { + actorId?: string | null; + eventType?: string | null; + message?: string | null; + metadata?: Record | null; + resourceId?: string | null; +} +export interface UpdatePlatformResourceEventInput { + clientMutationId?: string; + id: string; + platformResourceEventPatch: PlatformResourceEventPatch; +} +export interface DeletePlatformResourceEventInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformResourceInstallationInput { + clientMutationId?: string; + platformResourceInstallation: { + commitId?: string; + createdBy?: string; + createdByPrincipal?: string; + name: string; + namespaceId: string; + params?: Record; + revision?: number; + slug: string; + status?: string; + storeId?: string; + updatedBy?: string; + updatedByPrincipal?: string; + }; +} +export interface PlatformResourceInstallationPatch { + commitId?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + name?: string | null; + namespaceId?: string | null; + params?: Record | null; + revision?: number | null; + slug?: string | null; + status?: string | null; + storeId?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdatePlatformResourceInstallationInput { + clientMutationId?: string; + id: string; + platformResourceInstallationPatch: PlatformResourceInstallationPatch; +} +export interface DeletePlatformResourceInstallationInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformResourceObservedStorageInput { + clientMutationId?: string; + platformResourceObservedStorage: { + capacity?: string; + capacityBytes?: string; + claimName?: string; + declaredStorageClass?: string; + declaredStorageSizeBytes?: string; + declaredStorageTotalBytes?: string; + installationId: string; + isBound?: boolean; + kind?: string; + namespaceId: string; + phase?: string; + requested?: string; + requestedBytes?: string; + resourceId: string; + resourceStatus?: string; + slug?: string; + storageClass?: string; + storageName?: string; + }; +} +export interface PlatformResourceObservedStoragePatch { + capacity?: string | null; + capacityBytes?: string | null; + claimName?: string | null; + declaredStorageClass?: string | null; + declaredStorageSizeBytes?: string | null; + declaredStorageTotalBytes?: string | null; + installationId?: string | null; + isBound?: boolean | null; + kind?: string | null; + namespaceId?: string | null; + phase?: string | null; + requested?: string | null; + requestedBytes?: string | null; + resourceId?: string | null; + resourceStatus?: string | null; + slug?: string | null; + storageClass?: string | null; + storageName?: string | null; +} +export interface UpdatePlatformResourceObservedStorageInput { + clientMutationId?: string; + id: string; + platformResourceObservedStoragePatch: PlatformResourceObservedStoragePatch; +} +export interface DeletePlatformResourceObservedStorageInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformResourceStatusCheckInput { + clientMutationId?: string; + platformResourceStatusCheck: { + completedAt?: string; + requestedAt?: string; + requestedBy?: string; + resourceId: string; + result?: Record; + status?: string; + }; +} +export interface PlatformResourceStatusCheckPatch { + completedAt?: string | null; + requestedAt?: string | null; + requestedBy?: string | null; + resourceId?: string | null; + result?: Record | null; + status?: string | null; +} +export interface UpdatePlatformResourceStatusCheckInput { + clientMutationId?: string; + id: string; + platformResourceStatusCheckPatch: PlatformResourceStatusCheckPatch; +} +export interface DeletePlatformResourceStatusCheckInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformResourceUsageLogInput { + clientMutationId?: string; + platformResourceUsageLog: { + cpuMillicores?: string; + intervalSeconds: number; + memoryBytes?: string; + metrics?: Record; + namespaceId: string; + resourceId?: string; + sampledAt?: string; + source: string; + }; +} +export interface PlatformResourceUsageLogPatch { + cpuMillicores?: string | null; + intervalSeconds?: number | null; + memoryBytes?: string | null; + metrics?: Record | null; + namespaceId?: string | null; + resourceId?: string | null; + sampledAt?: string | null; + source?: string | null; +} +export interface UpdatePlatformResourceUsageLogInput { + clientMutationId?: string; + id: string; + platformResourceUsageLogPatch: PlatformResourceUsageLogPatch; +} +export interface DeletePlatformResourceUsageLogInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformResourceUsageSummaryInput { + clientMutationId?: string; + platformResourceUsageSummary: { + date: string; + gbSeconds?: string; + maxCpuMillicores?: string; + maxMemoryBytes?: string; + namespaceId: string; + resourceId?: string; + runtimeSeconds?: string; + sampleCount?: number; + }; +} +export interface PlatformResourceUsageSummaryPatch { + date?: string | null; + gbSeconds?: string | null; + maxCpuMillicores?: string | null; + maxMemoryBytes?: string | null; + namespaceId?: string | null; + resourceId?: string | null; + runtimeSeconds?: string | null; + sampleCount?: number | null; +} +export interface UpdatePlatformResourceUsageSummaryInput { + clientMutationId?: string; + id: string; + platformResourceUsageSummaryPatch: PlatformResourceUsageSummaryPatch; +} +export interface DeletePlatformResourceUsageSummaryInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformResourceUtilizationInput { + clientMutationId?: string; + platformResourceUtilization: { + avgMemoryBytes?: string; + cpuLimitMillicores?: string; + cpuPeakUtilization?: string; + cpuRequestHeadroomMillicores?: string; + cpuRequestMillicores?: string; + date?: string; + gbSeconds?: string; + kind?: string; + maxCpuMillicores?: string; + maxMemoryBytes?: string; + memoryLimitBytes?: string; + memoryPeakUtilization?: string; + memoryRequestBytes?: string; + memoryRequestHeadroomBytes?: string; + namespaceId: string; + replicas?: number; + resourceId: string; + runtimeSeconds?: string; + sampleCount?: number; + }; +} +export interface PlatformResourceUtilizationPatch { + avgMemoryBytes?: string | null; + cpuLimitMillicores?: string | null; + cpuPeakUtilization?: string | null; + cpuRequestHeadroomMillicores?: string | null; + cpuRequestMillicores?: string | null; + date?: string | null; + gbSeconds?: string | null; + kind?: string | null; + maxCpuMillicores?: string | null; + maxMemoryBytes?: string | null; + memoryLimitBytes?: string | null; + memoryPeakUtilization?: string | null; + memoryRequestBytes?: string | null; + memoryRequestHeadroomBytes?: string | null; + namespaceId?: string | null; + replicas?: number | null; + resourceId?: string | null; + runtimeSeconds?: string | null; + sampleCount?: number | null; +} +export interface UpdatePlatformResourceUtilizationInput { + clientMutationId?: string; + id: string; + platformResourceUtilizationPatch: PlatformResourceUtilizationPatch; +} +export interface DeletePlatformResourceUtilizationInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformResourcesHealthInput { + clientMutationId?: string; + platformResourcesHealth: { + annotations?: Record; + cpuLimitMillicores?: string; + cpuRequestMillicores?: string; + createdBy?: string; + createdByPrincipal?: string; + errorCount?: number; + imageRef?: string; + installationId: string; + integrations?: string[]; + kind?: string; + labels?: Record; + lastError?: string; + lastHeartbeatAt?: string; + memoryLimitBytes?: string; + memoryRequestBytes?: string; + name?: string; + namespaceId: string; + realm?: string; + replicas?: number; + requiredConfigs?: ResourceRequirement[]; + requiredSecrets?: ResourceRequirement[]; + resourceDefinitionId: string; + slug?: string; + spec?: Record; + status?: string; + statusDetail?: string; + statusObserved?: Record; + storageClass?: string; + storageSizeBytes?: string; + storageTotalBytes?: string; + updatedBy?: string; + updatedByPrincipal?: string; + }; +} +export interface PlatformResourcesHealthPatch { + annotations?: Record | null; + cpuLimitMillicores?: string | null; + cpuRequestMillicores?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + errorCount?: number | null; + imageRef?: string | null; + installationId?: string | null; + integrations?: string[] | null; + kind?: string | null; + labels?: Record | null; + lastError?: string | null; + lastHeartbeatAt?: string | null; + memoryLimitBytes?: string | null; + memoryRequestBytes?: string | null; + name?: string | null; + namespaceId?: string | null; + realm?: string | null; + replicas?: number | null; + requiredConfigs?: ResourceRequirement[] | null; + requiredSecrets?: ResourceRequirement[] | null; + resourceDefinitionId?: string | null; + slug?: string | null; + spec?: Record | null; + status?: string | null; + statusDetail?: string | null; + statusObserved?: Record | null; + storageClass?: string | null; + storageSizeBytes?: string | null; + storageTotalBytes?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdatePlatformResourcesHealthInput { + clientMutationId?: string; + id: string; + platformResourcesHealthPatch: PlatformResourcesHealthPatch; +} +export interface DeletePlatformResourcesHealthInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformResourcesRequirementsStateInput { + clientMutationId?: string; + platformResourcesRequirementsState: { + configHash?: string; + configObjectName?: string; + requirementsHash?: string; + resourceId: string; + secretsHash?: string; + secretsObjectName?: string; + slug?: string; + }; +} +export interface PlatformResourcesRequirementsStatePatch { + configHash?: string | null; + configObjectName?: string | null; + requirementsHash?: string | null; + resourceId?: string | null; + secretsHash?: string | null; + secretsObjectName?: string | null; + slug?: string | null; +} +export interface UpdatePlatformResourcesRequirementsStateInput { + clientMutationId?: string; + id: string; + platformResourcesRequirementsStatePatch: PlatformResourcesRequirementsStatePatch; +} +export interface DeletePlatformResourcesRequirementsStateInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformResourcesResolvedRequirementInput { + clientMutationId?: string; + platformResourcesResolvedRequirement: { + atomId: string; + configObjectName?: string; + name?: string; + namespaceId: string; + present?: boolean; + realm?: string; + required?: boolean; + requirementKind?: string; + resourceId: string; + secretsObjectName?: string; + slug?: string; + }; +} +export interface PlatformResourcesResolvedRequirementPatch { + atomId?: string | null; + configObjectName?: string | null; + name?: string | null; + namespaceId?: string | null; + present?: boolean | null; + realm?: string | null; + required?: boolean | null; + requirementKind?: string | null; + resourceId?: string | null; + secretsObjectName?: string | null; + slug?: string | null; +} +export interface UpdatePlatformResourcesResolvedRequirementInput { + clientMutationId?: string; + id: string; + platformResourcesResolvedRequirementPatch: PlatformResourcesResolvedRequirementPatch; +} +export interface DeletePlatformResourcesResolvedRequirementInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformWebhookEndpointInput { + clientMutationId?: string; + platformWebhookEndpoint: { + active?: boolean; + createdBy?: string; + createdByPrincipal?: string; + functionDefinitionId: string; + host: string; + namespaceId: string; + path: string; + provider?: string; + replayWindowSeconds?: number; + signingSecretName: string; + updatedBy?: string; + updatedByPrincipal?: string; + }; +} +export interface PlatformWebhookEndpointPatch { + active?: boolean | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + functionDefinitionId?: string | null; + host?: string | null; + namespaceId?: string | null; + path?: string | null; + provider?: string | null; + replayWindowSeconds?: number | null; + signingSecretName?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdatePlatformWebhookEndpointInput { + clientMutationId?: string; + id: string; + platformWebhookEndpointPatch: PlatformWebhookEndpointPatch; +} +export interface DeletePlatformWebhookEndpointInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformWebhookEventInput { + clientMutationId?: string; + platformWebhookEvent: { + endpointId: string; + error?: string; + externalEventId: string; + invocationCreatedAt?: string; + invocationId?: string; + payload?: Record; + provider: string; + providerTimestamp?: string; + status?: string; + }; +} +export interface PlatformWebhookEventPatch { + endpointId?: string | null; + error?: string | null; + externalEventId?: string | null; + invocationCreatedAt?: string | null; + invocationId?: string | null; + payload?: Record | null; + provider?: string | null; + providerTimestamp?: string | null; + status?: string | null; +} +export interface UpdatePlatformWebhookEventInput { + clientMutationId?: string; + id: string; + platformWebhookEventPatch: PlatformWebhookEventPatch; +} +export interface DeletePlatformWebhookEventInput { + clientMutationId?: string; + id: string; +} +export interface CreateProposalCommentInput { + clientMutationId?: string; + proposalComment: { + actorId?: string; + attachments?: ConstructiveInternalTypeUpload[]; + body: string; + createdBy?: string; + createdByPrincipal?: string; + databaseId: string; + embedding?: number[]; + embeddingText?: string; + line?: number; + outdatedAt?: string; + path?: string; + proposalId: string; + resolvedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; + }; +} +export interface ProposalCommentPatch { + actorId?: string | null; + attachments?: ConstructiveInternalTypeUpload[] | null; + body?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + databaseId?: string | null; + embedding?: number[] | null; + embeddingText?: string | null; + line?: number | null; + outdatedAt?: string | null; + path?: string | null; + proposalId?: string | null; + resolvedAt?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdateProposalCommentInput { + clientMutationId?: string; + id: string; + proposalCommentPatch: ProposalCommentPatch; +} +export interface DeleteProposalCommentInput { + clientMutationId?: string; + id: string; +} +export interface CreateProposalInput { + clientMutationId?: string; + proposal: { + actorId?: string; + body?: string; + closedReason?: string; + createdBy?: string; + createdByPrincipal?: string; + databaseId: string; + decidedAt?: string; + dueAt?: string; + embedding?: number[]; + embeddingText?: string; + kind?: string; + labels?: string[]; + mergeCommit?: string; + mergeMethod?: string; + mergeRequestedAt?: string; + mergedAt?: string; + metadata?: Record; + parentId?: string; + priority?: string; + repositoryId: string; + resolution?: string; + sourceRef?: string; + status?: string; + targetRef?: string; + title: string; + updatedBy?: string; + updatedByPrincipal?: string; + }; +} +export interface ProposalPatch { + actorId?: string | null; + body?: string | null; + closedReason?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + databaseId?: string | null; + decidedAt?: string | null; + dueAt?: string | null; + embedding?: number[] | null; + embeddingText?: string | null; + kind?: string | null; + labels?: string[] | null; + mergeCommit?: string | null; + mergeMethod?: string | null; + mergeRequestedAt?: string | null; + mergedAt?: string | null; + metadata?: Record | null; + parentId?: string | null; + priority?: string | null; + repositoryId?: string | null; + resolution?: string | null; + sourceRef?: string | null; + status?: string | null; + targetRef?: string | null; + title?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdateProposalInput { + clientMutationId?: string; + id: string; + proposalPatch: ProposalPatch; +} +export interface DeleteProposalInput { + clientMutationId?: string; + id: string; +} +export interface CreateProposalFileViewInput { + clientMutationId?: string; + proposalFileView: { + blobSha: string; + createdByPrincipal?: string; + databaseId: string; + path: string; + proposalId: string; + reviewerId: string; + updatedByPrincipal?: string; + viewedAt?: string; + }; +} +export interface ProposalFileViewPatch { + blobSha?: string | null; + createdByPrincipal?: string | null; + databaseId?: string | null; + path?: string | null; + proposalId?: string | null; + reviewerId?: string | null; + updatedByPrincipal?: string | null; + viewedAt?: string | null; +} +export interface UpdateProposalFileViewInput { + clientMutationId?: string; + id: string; + proposalFileViewPatch: ProposalFileViewPatch; +} +export interface DeleteProposalFileViewInput { + clientMutationId?: string; + id: string; +} +export interface CreateProposalReactionInput { + clientMutationId?: string; + proposalReaction: { + actorId: string; + commentId?: string; + createdByPrincipal?: string; + databaseId: string; + emoji: string; + proposalId: string; + updatedByPrincipal?: string; + }; +} +export interface ProposalReactionPatch { + actorId?: string | null; + commentId?: string | null; + createdByPrincipal?: string | null; + databaseId?: string | null; + emoji?: string | null; + proposalId?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdateProposalReactionInput { + clientMutationId?: string; + id: string; + proposalReactionPatch: ProposalReactionPatch; +} +export interface DeleteProposalReactionInput { + clientMutationId?: string; + id: string; +} +export interface CreateProposalReviewInput { + clientMutationId?: string; + proposalReview: { + body?: string; + commitSha: string; + createdByPrincipal?: string; + databaseId: string; + proposalId: string; + reviewerId: string; + submittedAt?: string; + updatedByPrincipal?: string; + verdict: string; + }; +} +export interface ProposalReviewPatch { + body?: string | null; + commitSha?: string | null; + createdByPrincipal?: string | null; + databaseId?: string | null; + proposalId?: string | null; + reviewerId?: string | null; + submittedAt?: string | null; + updatedByPrincipal?: string | null; + verdict?: string | null; +} +export interface UpdateProposalReviewInput { + clientMutationId?: string; + id: string; + proposalReviewPatch: ProposalReviewPatch; +} +export interface DeleteProposalReviewInput { + clientMutationId?: string; + id: string; +} +export interface CreateProposalsChunkInput { + clientMutationId?: string; + proposalsChunk: { + actorId?: string; + body: string; + chunkIndex?: number; + databaseId?: string; + embedding?: number[]; + embeddingText?: string; + metadata?: Record; + proposalsId: string; + }; +} +export interface ProposalsChunkPatch { + actorId?: string | null; + body?: string | null; + chunkIndex?: number | null; + databaseId?: string | null; + embedding?: number[] | null; + embeddingText?: string | null; + metadata?: Record | null; + proposalsId?: string | null; +} +export interface UpdateProposalsChunkInput { + clientMutationId?: string; + id: string; + proposalsChunkPatch: ProposalsChunkPatch; +} +export interface DeleteProposalsChunkInput { + clientMutationId?: string; + id: string; +} +export interface CreateRegistryBindingInput { + clientMutationId?: string; + registryBinding: { + createdBy?: string; + createdByPrincipal?: string; + databaseId: string; + metadata?: Record; + namespaceId: string; + observedCredentialVersion?: string; + pullSecretName?: string; + realm?: string; + registryHost: string; + registryId: string; + status?: string; + updatedBy?: string; + updatedByPrincipal?: string; + }; +} +export interface RegistryBindingPatch { + createdBy?: string | null; + createdByPrincipal?: string | null; + databaseId?: string | null; + metadata?: Record | null; + namespaceId?: string | null; + observedCredentialVersion?: string | null; + pullSecretName?: string | null; + realm?: string | null; + registryHost?: string | null; + registryId?: string | null; + status?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdateRegistryBindingInput { + clientMutationId?: string; + id: string; + registryBindingPatch: RegistryBindingPatch; +} +export interface DeleteRegistryBindingInput { + clientMutationId?: string; + id: string; +} +export interface CreateRegistryInput { + clientMutationId?: string; + registry: { + authMode?: string; + basePath?: string; + createdByPrincipal?: string; + credentialSecretName?: string; + databaseId: string; + host?: string; + installationId?: string; + isPublished?: boolean; + kind: string; + labels?: Record; + lastError?: string; + metadata?: Record; + name: string; + platformOnly?: boolean; + role?: string; + status?: string; + updatedByPrincipal?: string; + }; +} +export interface RegistryPatch { + authMode?: string | null; + basePath?: string | null; + createdByPrincipal?: string | null; + credentialSecretName?: string | null; + databaseId?: string | null; + host?: string | null; + installationId?: string | null; + isPublished?: boolean | null; + kind?: string | null; + labels?: Record | null; + lastError?: string | null; + metadata?: Record | null; + name?: string | null; + platformOnly?: boolean | null; + role?: string | null; + status?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdateRegistryInput { + clientMutationId?: string; + id: string; + registryPatch: RegistryPatch; +} +export interface DeleteRegistryInput { + clientMutationId?: string; + id: string; +} +export interface CreateRegistryGrantInput { + clientMutationId?: string; + registryGrant: { + actions?: string[]; + createdByPrincipal?: string; + databaseId: string; + expiresAt?: string; + grantedBy?: string; + granteeKey: string; + granteeScope: string; + registryId: string; + updatedByPrincipal?: string; + }; +} +export interface RegistryGrantPatch { + actions?: string[] | null; + createdByPrincipal?: string | null; + databaseId?: string | null; + expiresAt?: string | null; + grantedBy?: string | null; + granteeKey?: string | null; + granteeScope?: string | null; + registryId?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdateRegistryGrantInput { + clientMutationId?: string; + id: string; + registryGrantPatch: RegistryGrantPatch; +} +export interface DeleteRegistryGrantInput { + clientMutationId?: string; + id: string; +} +export interface CreateRepositoryInput { + clientMutationId?: string; + repository: { + cloneUrl?: string; + createdBy?: string; + createdByPrincipal?: string; + databaseId: string; + defaultBranch?: string; + description?: string; + embedding?: number[]; + embeddingText?: string; + externalId?: string; + isArchived?: boolean; + metadata?: Record; + name: string; + ownerId?: string; + provider?: string; + slug: string; + updatedBy?: string; + updatedByPrincipal?: string; + visibility?: string; + }; +} +export interface RepositoryPatch { + cloneUrl?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + databaseId?: string | null; + defaultBranch?: string | null; + description?: string | null; + embedding?: number[] | null; + embeddingText?: string | null; + externalId?: string | null; + isArchived?: boolean | null; + metadata?: Record | null; + name?: string | null; + ownerId?: string | null; + provider?: string | null; + slug?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; + visibility?: string | null; +} +export interface UpdateRepositoryInput { + clientMutationId?: string; + id: string; + repositoryPatch: RepositoryPatch; +} +export interface DeleteRepositoryInput { + clientMutationId?: string; + id: string; +} +export interface CreateRepositoryEventInput { + clientMutationId?: string; + repositoryEvent: { + actorId?: string; + commitSha?: string; + createdByPrincipal?: string; + databaseId: string; + deliveryId?: string; + eventType: string; + metadata?: Record; + payload?: Record; + ref?: string; + repositoryId: string; + updatedByPrincipal?: string; + }; +} +export interface RepositoryEventPatch { + actorId?: string | null; + commitSha?: string | null; + createdByPrincipal?: string | null; + databaseId?: string | null; + deliveryId?: string | null; + eventType?: string | null; + metadata?: Record | null; + payload?: Record | null; + ref?: string | null; + repositoryId?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdateRepositoryEventInput { + clientMutationId?: string; + id: string; + repositoryEventPatch: RepositoryEventPatch; +} +export interface DeleteRepositoryEventInput { + clientMutationId?: string; + id: string; +} +export interface CreateRepositoryRequiredCheckInput { + clientMutationId?: string; + repositoryRequiredCheck: { + databaseId: string; + repositoryId: string; + workflowId: string; + }; +} +export interface RepositoryRequiredCheckPatch { + databaseId?: string | null; + repositoryId?: string | null; + workflowId?: string | null; +} +export interface UpdateRepositoryRequiredCheckInput { + clientMutationId?: string; + id: string; + repositoryRequiredCheckPatch: RepositoryRequiredCheckPatch; +} +export interface DeleteRepositoryRequiredCheckInput { + clientMutationId?: string; + id: string; +} +export interface CreateRepositoryWorkflowInput { + clientMutationId?: string; + repositoryWorkflow: { + cancelInProgress?: boolean; + concurrencyKey?: string; + createdBy?: string; + createdByPrincipal?: string; + databaseId: string; + eventType: string; + graphId?: string; + inputs?: Record; + isEnabled?: boolean; + name: string; + refPattern?: string; + repositoryId: string; + requiredSecrets?: string[]; + slug: string; + updatedBy?: string; + updatedByPrincipal?: string; + }; +} +export interface RepositoryWorkflowPatch { + cancelInProgress?: boolean | null; + concurrencyKey?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + databaseId?: string | null; + eventType?: string | null; + graphId?: string | null; + inputs?: Record | null; + isEnabled?: boolean | null; + name?: string | null; + refPattern?: string | null; + repositoryId?: string | null; + requiredSecrets?: string[] | null; + slug?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdateRepositoryWorkflowInput { + clientMutationId?: string; + id: string; + repositoryWorkflowPatch: RepositoryWorkflowPatch; +} +export interface DeleteRepositoryWorkflowInput { + clientMutationId?: string; + id: string; +} +export interface CreateResourceInput { + clientMutationId?: string; + resource: { + annotations?: Record; + createdBy?: string; + createdByPrincipal?: string; + databaseId: string; + errorCount?: number; + imageRef?: string; + installationId?: string; + integrations?: string[]; + kind: string; + labels?: Record; + lastError?: string; + lastHeartbeatAt?: string; + name: string; + namespaceId: string; + realm?: string; + requiredConfigs?: ResourceRequirementInput[]; + requiredSecrets?: ResourceRequirementInput[]; + resourceDefinitionId?: string; + slug: string; + spec?: Record; + status?: string; + statusObserved?: Record; + updatedBy?: string; + updatedByPrincipal?: string; + }; +} +export interface ResourcePatch { + annotations?: Record | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + databaseId?: string | null; + errorCount?: number | null; + imageRef?: string | null; + installationId?: string | null; + integrations?: string[] | null; + kind?: string | null; + labels?: Record | null; + lastError?: string | null; + lastHeartbeatAt?: string | null; + name?: string | null; + namespaceId?: string | null; + realm?: string | null; + requiredConfigs?: ResourceRequirementInput[] | null; + requiredSecrets?: ResourceRequirementInput[] | null; + resourceDefinitionId?: string | null; + slug?: string | null; + spec?: Record | null; + status?: string | null; + statusObserved?: Record | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdateResourceInput { + clientMutationId?: string; + id: string; + resourcePatch: ResourcePatch; +} +export interface DeleteResourceInput { + clientMutationId?: string; + id: string; +} +export interface CreateResourceDeclaredCapacityInput { + clientMutationId?: string; + resourceDeclaredCapacity: { + cpuLimitMillicores?: string; + cpuRequestMillicores?: string; + installationId: string; + isTransient?: boolean; + kind?: string; + memoryLimitBytes?: string; + memoryRequestBytes?: string; + namespaceId: string; + podCountMax?: number; + podCountMin?: number; + source?: string; + sourceId: string; + storageSizeBytes?: string; + storageTotalBytes?: string; + }; +} +export interface ResourceDeclaredCapacityPatch { + cpuLimitMillicores?: string | null; + cpuRequestMillicores?: string | null; + installationId?: string | null; + isTransient?: boolean | null; + kind?: string | null; + memoryLimitBytes?: string | null; + memoryRequestBytes?: string | null; + namespaceId?: string | null; + podCountMax?: number | null; + podCountMin?: number | null; + source?: string | null; + sourceId?: string | null; + storageSizeBytes?: string | null; + storageTotalBytes?: string | null; +} +export interface UpdateResourceDeclaredCapacityInput { + clientMutationId?: string; + id: string; + resourceDeclaredCapacityPatch: ResourceDeclaredCapacityPatch; +} +export interface DeleteResourceDeclaredCapacityInput { + clientMutationId?: string; + id: string; +} +export interface CreateResourceDefinitionInput { + clientMutationId?: string; + resourceDefinition: { + annotations?: Record; + createdBy?: string; + createdByPrincipal?: string; + databaseId: string; + defaultSpec?: Record; + description?: string; + integrations?: string[]; + kind: string; + labels?: Record; + name: string; + namespaceId: string; + paramsSchema?: Record; + requiredConfigs?: ResourceRequirementInput[]; + requiredSecrets?: ResourceRequirementInput[]; + slug: string; + stepUpMinAge?: IntervalInput; + updatedBy?: string; + updatedByPrincipal?: string; + }; +} +export interface ResourceDefinitionPatch { + annotations?: Record | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + databaseId?: string | null; + defaultSpec?: Record | null; + description?: string | null; + integrations?: string[] | null; + kind?: string | null; + labels?: Record | null; + name?: string | null; + namespaceId?: string | null; + paramsSchema?: Record | null; + requiredConfigs?: ResourceRequirementInput[] | null; + requiredSecrets?: ResourceRequirementInput[] | null; + slug?: string | null; + stepUpMinAge?: IntervalInput | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdateResourceDefinitionInput { + clientMutationId?: string; + id: string; + resourceDefinitionPatch: ResourceDefinitionPatch; +} +export interface DeleteResourceDefinitionInput { + clientMutationId?: string; + id: string; +} +export interface CreateResourceEventInput { + clientMutationId?: string; + resourceEvent: { + actorId?: string; + databaseId: string; + eventType: string; + message?: string; + metadata?: Record; + resourceId: string; + }; +} +export interface ResourceEventPatch { + actorId?: string | null; + databaseId?: string | null; + eventType?: string | null; + message?: string | null; + metadata?: Record | null; + resourceId?: string | null; +} +export interface UpdateResourceEventInput { + clientMutationId?: string; + id: string; + resourceEventPatch: ResourceEventPatch; +} +export interface DeleteResourceEventInput { + clientMutationId?: string; + id: string; +} +export interface CreateResourceInstallationInput { + clientMutationId?: string; + resourceInstallation: { + commitId?: string; + createdBy?: string; + createdByPrincipal?: string; + databaseId: string; + name: string; + namespaceId: string; + params?: Record; + revision?: number; + slug: string; + status?: string; + storeId?: string; + updatedBy?: string; + updatedByPrincipal?: string; + }; +} +export interface ResourceInstallationPatch { + commitId?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + databaseId?: string | null; + name?: string | null; + namespaceId?: string | null; + params?: Record | null; + revision?: number | null; + slug?: string | null; + status?: string | null; + storeId?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdateResourceInstallationInput { + clientMutationId?: string; + id: string; + resourceInstallationPatch: ResourceInstallationPatch; +} +export interface DeleteResourceInstallationInput { + clientMutationId?: string; + id: string; +} +export interface CreateResourceObservedStorageInput { + clientMutationId?: string; + resourceObservedStorage: { + capacity?: string; + capacityBytes?: string; + claimName?: string; + declaredStorageClass?: string; + declaredStorageSizeBytes?: string; + declaredStorageTotalBytes?: string; + installationId: string; + isBound?: boolean; + kind?: string; + namespaceId: string; + phase?: string; + requested?: string; + requestedBytes?: string; + resourceId: string; + resourceStatus?: string; + slug?: string; + storageClass?: string; + storageName?: string; + }; +} +export interface ResourceObservedStoragePatch { + capacity?: string | null; + capacityBytes?: string | null; + claimName?: string | null; + declaredStorageClass?: string | null; + declaredStorageSizeBytes?: string | null; + declaredStorageTotalBytes?: string | null; + installationId?: string | null; + isBound?: boolean | null; + kind?: string | null; + namespaceId?: string | null; + phase?: string | null; + requested?: string | null; + requestedBytes?: string | null; + resourceId?: string | null; + resourceStatus?: string | null; + slug?: string | null; + storageClass?: string | null; + storageName?: string | null; +} +export interface UpdateResourceObservedStorageInput { + clientMutationId?: string; + id: string; + resourceObservedStoragePatch: ResourceObservedStoragePatch; +} +export interface DeleteResourceObservedStorageInput { + clientMutationId?: string; + id: string; +} +export interface CreateResourceStatusCheckInput { + clientMutationId?: string; + resourceStatusCheck: { + completedAt?: string; + databaseId: string; + requestedAt?: string; + requestedBy?: string; + resourceId: string; + result?: Record; + status?: string; + }; +} +export interface ResourceStatusCheckPatch { + completedAt?: string | null; + databaseId?: string | null; + requestedAt?: string | null; + requestedBy?: string | null; + resourceId?: string | null; + result?: Record | null; + status?: string | null; +} +export interface UpdateResourceStatusCheckInput { + clientMutationId?: string; + id: string; + resourceStatusCheckPatch: ResourceStatusCheckPatch; +} +export interface DeleteResourceStatusCheckInput { + clientMutationId?: string; + id: string; +} +export interface CreateResourceUsageLogInput { + clientMutationId?: string; + resourceUsageLog: { + cpuMillicores?: string; + databaseId: string; + intervalSeconds: number; + memoryBytes?: string; + metrics?: Record; + namespaceId: string; + resourceId?: string; + sampledAt?: string; + source: string; + }; +} +export interface ResourceUsageLogPatch { + cpuMillicores?: string | null; + databaseId?: string | null; + intervalSeconds?: number | null; + memoryBytes?: string | null; + metrics?: Record | null; + namespaceId?: string | null; + resourceId?: string | null; + sampledAt?: string | null; + source?: string | null; +} +export interface UpdateResourceUsageLogInput { + clientMutationId?: string; + id: string; + resourceUsageLogPatch: ResourceUsageLogPatch; +} +export interface DeleteResourceUsageLogInput { + clientMutationId?: string; + id: string; +} +export interface CreateResourceUsageSummaryInput { + clientMutationId?: string; + resourceUsageSummary: { + databaseId: string; + date: string; + gbSeconds?: string; + maxCpuMillicores?: string; + maxMemoryBytes?: string; + namespaceId: string; + resourceId?: string; + runtimeSeconds?: string; + sampleCount?: number; + }; +} +export interface ResourceUsageSummaryPatch { + databaseId?: string | null; + date?: string | null; + gbSeconds?: string | null; + maxCpuMillicores?: string | null; + maxMemoryBytes?: string | null; + namespaceId?: string | null; + resourceId?: string | null; + runtimeSeconds?: string | null; + sampleCount?: number | null; +} +export interface UpdateResourceUsageSummaryInput { + clientMutationId?: string; + id: string; + resourceUsageSummaryPatch: ResourceUsageSummaryPatch; +} +export interface DeleteResourceUsageSummaryInput { + clientMutationId?: string; + id: string; +} +export interface CreateResourceUtilizationInput { + clientMutationId?: string; + resourceUtilization: { + avgMemoryBytes?: string; + cpuLimitMillicores?: string; + cpuPeakUtilization?: string; + cpuRequestHeadroomMillicores?: string; + cpuRequestMillicores?: string; + date?: string; + gbSeconds?: string; + kind?: string; + maxCpuMillicores?: string; + maxMemoryBytes?: string; + memoryLimitBytes?: string; + memoryPeakUtilization?: string; + memoryRequestBytes?: string; + memoryRequestHeadroomBytes?: string; + namespaceId: string; + replicas?: number; + resourceId: string; + runtimeSeconds?: string; + sampleCount?: number; + }; +} +export interface ResourceUtilizationPatch { + avgMemoryBytes?: string | null; + cpuLimitMillicores?: string | null; + cpuPeakUtilization?: string | null; + cpuRequestHeadroomMillicores?: string | null; + cpuRequestMillicores?: string | null; + date?: string | null; + gbSeconds?: string | null; + kind?: string | null; + maxCpuMillicores?: string | null; + maxMemoryBytes?: string | null; + memoryLimitBytes?: string | null; + memoryPeakUtilization?: string | null; + memoryRequestBytes?: string | null; + memoryRequestHeadroomBytes?: string | null; + namespaceId?: string | null; + replicas?: number | null; + resourceId?: string | null; + runtimeSeconds?: string | null; + sampleCount?: number | null; +} +export interface UpdateResourceUtilizationInput { + clientMutationId?: string; + id: string; + resourceUtilizationPatch: ResourceUtilizationPatch; +} +export interface DeleteResourceUtilizationInput { + clientMutationId?: string; + id: string; +} +export interface CreateResourcesHealthInput { + clientMutationId?: string; + resourcesHealth: { + annotations?: Record; + cpuLimitMillicores?: string; + cpuRequestMillicores?: string; + createdBy?: string; + createdByPrincipal?: string; + databaseId: string; + errorCount?: number; + imageRef?: string; + installationId: string; + integrations?: string[]; + kind?: string; + labels?: Record; + lastError?: string; + lastHeartbeatAt?: string; + memoryLimitBytes?: string; + memoryRequestBytes?: string; + name?: string; + namespaceId: string; + realm?: string; + replicas?: number; + requiredConfigs?: ResourceRequirement[]; + requiredSecrets?: ResourceRequirement[]; + resourceDefinitionId: string; + slug?: string; + spec?: Record; + status?: string; + statusDetail?: string; + statusObserved?: Record; + storageClass?: string; + storageSizeBytes?: string; + storageTotalBytes?: string; + updatedBy?: string; + updatedByPrincipal?: string; + }; +} +export interface ResourcesHealthPatch { + annotations?: Record | null; + cpuLimitMillicores?: string | null; + cpuRequestMillicores?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + databaseId?: string | null; + errorCount?: number | null; + imageRef?: string | null; + installationId?: string | null; + integrations?: string[] | null; + kind?: string | null; + labels?: Record | null; + lastError?: string | null; + lastHeartbeatAt?: string | null; + memoryLimitBytes?: string | null; + memoryRequestBytes?: string | null; + name?: string | null; + namespaceId?: string | null; + realm?: string | null; + replicas?: number | null; + requiredConfigs?: ResourceRequirement[] | null; + requiredSecrets?: ResourceRequirement[] | null; + resourceDefinitionId?: string | null; + slug?: string | null; + spec?: Record | null; + status?: string | null; + statusDetail?: string | null; + statusObserved?: Record | null; + storageClass?: string | null; + storageSizeBytes?: string | null; + storageTotalBytes?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdateResourcesHealthInput { + clientMutationId?: string; + id: string; + resourcesHealthPatch: ResourcesHealthPatch; +} +export interface DeleteResourcesHealthInput { + clientMutationId?: string; + id: string; +} +export interface CreateResourcesRequirementsStateInput { + clientMutationId?: string; + resourcesRequirementsState: { + configHash?: string; + configObjectName?: string; + requirementsHash?: string; + resourceId: string; + secretsHash?: string; + secretsObjectName?: string; + slug?: string; + }; +} +export interface ResourcesRequirementsStatePatch { + configHash?: string | null; + configObjectName?: string | null; + requirementsHash?: string | null; + resourceId?: string | null; + secretsHash?: string | null; + secretsObjectName?: string | null; + slug?: string | null; +} +export interface UpdateResourcesRequirementsStateInput { + clientMutationId?: string; + id: string; + resourcesRequirementsStatePatch: ResourcesRequirementsStatePatch; +} +export interface DeleteResourcesRequirementsStateInput { + clientMutationId?: string; + id: string; +} +export interface CreateResourcesResolvedRequirementInput { + clientMutationId?: string; + resourcesResolvedRequirement: { + atomId: string; + configObjectName?: string; + name?: string; + namespaceId: string; + present?: boolean; + realm?: string; + required?: boolean; + requirementKind?: string; + resourceId: string; + secretsObjectName?: string; + slug?: string; + }; +} +export interface ResourcesResolvedRequirementPatch { + atomId?: string | null; + configObjectName?: string | null; + name?: string | null; + namespaceId?: string | null; + present?: boolean | null; + realm?: string | null; + required?: boolean | null; + requirementKind?: string | null; + resourceId?: string | null; + secretsObjectName?: string | null; + slug?: string | null; +} +export interface UpdateResourcesResolvedRequirementInput { + clientMutationId?: string; + id: string; + resourcesResolvedRequirementPatch: ResourcesResolvedRequirementPatch; +} +export interface DeleteResourcesResolvedRequirementInput { + clientMutationId?: string; + id: string; +} +export interface CreateWebhookEndpointInput { + clientMutationId?: string; + webhookEndpoint: { + active?: boolean; + createdBy?: string; + createdByPrincipal?: string; + databaseId: string; + functionDefinitionId: string; + host: string; + namespaceId: string; + path: string; + provider?: string; + replayWindowSeconds?: number; + signingSecretName: string; + updatedBy?: string; + updatedByPrincipal?: string; + }; +} +export interface WebhookEndpointPatch { + active?: boolean | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + databaseId?: string | null; + functionDefinitionId?: string | null; + host?: string | null; + namespaceId?: string | null; + path?: string | null; + provider?: string | null; + replayWindowSeconds?: number | null; + signingSecretName?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdateWebhookEndpointInput { + clientMutationId?: string; + id: string; + webhookEndpointPatch: WebhookEndpointPatch; +} +export interface DeleteWebhookEndpointInput { + clientMutationId?: string; + id: string; +} +export interface CreateWebhookEventInput { + clientMutationId?: string; + webhookEvent: { + databaseId: string; + endpointId: string; + error?: string; + externalEventId: string; + invocationCreatedAt?: string; + invocationId?: string; + payload?: Record; + provider: string; + providerTimestamp?: string; + status?: string; + }; +} +export interface WebhookEventPatch { + databaseId?: string | null; + endpointId?: string | null; + error?: string | null; + externalEventId?: string | null; + invocationCreatedAt?: string | null; + invocationId?: string | null; + payload?: Record | null; + provider?: string | null; + providerTimestamp?: string | null; + status?: string | null; +} +export interface UpdateWebhookEventInput { + clientMutationId?: string; + id: string; + webhookEventPatch: WebhookEventPatch; +} +export interface DeleteWebhookEventInput { + clientMutationId?: string; + id: string; +} +// ============ Connection Fields Map ============ +export const connectionFieldsMap = { + DatabaseFunctionGraph: { + databaseFunctionGraphExecutionsByGraphId: 'DatabaseFunctionGraphExecution', + functionDefinitionsByGraphId: 'FunctionDefinition', + repositoryWorkflowsByGraphId: 'RepositoryWorkflow', + }, + FunctionApiBinding: { + functionInvocationsByApiBindingId: 'FunctionInvocation', + }, + FunctionDefinition: { + functionApiBindings: 'FunctionApiBinding', + functionCapabilityBindingsByFunctionId: 'FunctionCapabilityBinding', + webhookEndpoints: 'WebhookEndpoint', + }, + FunctionGraph: { + functionGraphExecutionsByGraphId: 'FunctionGraphExecution', + platformFunctionDefinitionsByGraphId: 'PlatformFunctionDefinition', + platformRepositoryWorkflowsByGraphId: 'PlatformRepositoryWorkflow', + }, + Image: { + imageGrants: 'ImageGrant', + }, + Namespace: { + builderBindings: 'BuilderBinding', + functionDeployments: 'FunctionDeployment', + registryBindings: 'RegistryBinding', + resourceDefinitions: 'ResourceDefinition', + resourceInstallations: 'ResourceInstallation', + resources: 'Resource', + webhookEndpoints: 'WebhookEndpoint', + }, + PlatformFunctionApiBinding: { + platformFunctionInvocationsByApiBindingId: 'PlatformFunctionInvocation', + }, + PlatformFunctionDefinition: { + platformFunctionApiBindingsByFunctionDefinitionId: 'PlatformFunctionApiBinding', + platformFunctionCapabilityBindingsByFunctionId: 'PlatformFunctionCapabilityBinding', + platformWebhookEndpointsByFunctionDefinitionId: 'PlatformWebhookEndpoint', + }, + PlatformImage: { + platformImageGrantsByImageId: 'PlatformImageGrant', + }, + PlatformNamespace: { + platformBuilderBindingsByNamespaceId: 'PlatformBuilderBinding', + platformFunctionDeploymentsByNamespaceId: 'PlatformFunctionDeployment', + platformRegistryBindingsByNamespaceId: 'PlatformRegistryBinding', + platformResourceDefinitionsByNamespaceId: 'PlatformResourceDefinition', + platformResourceInstallationsByNamespaceId: 'PlatformResourceInstallation', + platformResourcesByNamespaceId: 'PlatformResource', + platformWebhookEndpointsByNamespaceId: 'PlatformWebhookEndpoint', + }, + PlatformProposalComment: { + platformProposalReactionsByCommentId: 'PlatformProposalReaction', + }, + PlatformProposal: { + childPlatformProposals: 'PlatformProposal', + platformBuildsByProposalId: 'PlatformBuild', + platformProposalCommentsByProposalId: 'PlatformProposalComment', + platformProposalFileViewsByProposalId: 'PlatformProposalFileView', + platformProposalReactionsByProposalId: 'PlatformProposalReaction', + platformProposalReviewsByProposalId: 'PlatformProposalReview', + platformProposalsChunksByPlatformProposalsId: 'PlatformProposalsChunk', + }, + PlatformRegistry: { + platformRegistryBindingsByRegistryId: 'PlatformRegistryBinding', + platformRegistryGrantsByRegistryId: 'PlatformRegistryGrant', + }, + PlatformRepository: { + platformBuildsByRepositoryId: 'PlatformBuild', + platformProposalsByRepositoryId: 'PlatformProposal', + platformRepositoryEventsByRepositoryId: 'PlatformRepositoryEvent', + platformRepositoryRequiredChecksByRepositoryId: 'PlatformRepositoryRequiredCheck', + platformRepositoryWorkflowsByRepositoryId: 'PlatformRepositoryWorkflow', + }, + PlatformRepositoryEvent: { + platformBuildsByEventId: 'PlatformBuild', + }, + PlatformRepositoryWorkflow: { + platformBuildsByWorkflowId: 'PlatformBuild', + platformRepositoryRequiredChecksByWorkflowId: 'PlatformRepositoryRequiredCheck', + }, + PlatformResource: { + platformResourceStatusChecksByResourceId: 'PlatformResourceStatusCheck', + }, + PlatformResourceDefinition: { + platformResourcesByResourceDefinitionId: 'PlatformResource', + }, + PlatformResourceInstallation: { + platformRegistriesByInstallationId: 'PlatformRegistry', + platformResourcesByInstallationId: 'PlatformResource', + }, + PlatformWebhookEndpoint: { + platformWebhookEventsByEndpointId: 'PlatformWebhookEvent', + }, + ProposalComment: { + proposalReactionsByCommentId: 'ProposalReaction', + }, + Proposal: { + builds: 'Build', + childProposals: 'Proposal', + proposalComments: 'ProposalComment', + proposalFileViews: 'ProposalFileView', + proposalReactions: 'ProposalReaction', + proposalReviews: 'ProposalReview', + proposalsChunksByProposalsId: 'ProposalsChunk', + }, + Registry: { + registryBindings: 'RegistryBinding', + registryGrants: 'RegistryGrant', + }, + Repository: { + builds: 'Build', + proposals: 'Proposal', + repositoryEvents: 'RepositoryEvent', + repositoryRequiredChecks: 'RepositoryRequiredCheck', + repositoryWorkflows: 'RepositoryWorkflow', + }, + RepositoryEvent: { + buildsByEventId: 'Build', + }, + RepositoryWorkflow: { + buildsByWorkflowId: 'Build', + repositoryRequiredChecksByWorkflowId: 'RepositoryRequiredCheck', + }, + Resource: { + resourceStatusChecks: 'ResourceStatusCheck', + }, + ResourceDefinition: { + resources: 'Resource', + }, + ResourceInstallation: { + registriesByInstallationId: 'Registry', + resourcesByInstallationId: 'Resource', + }, + WebhookEndpoint: { + webhookEventsByEndpointId: 'WebhookEvent', + }, +} as Record>; +// ============ Custom Input Types (from schema) ============ +export interface AddEdgeInput { + clientMutationId?: string; + context?: string; + dstNode?: string; + dstPort?: string; + graphName?: string; + rootHash?: string; + scopeId?: string; + srcNode?: string; + srcPort?: string; } -export interface DbPresetPatch { - active?: boolean | null; - commitId?: string | null; - definition?: Record | null; - description?: string | null; - label?: string | null; - modulesHash?: string | null; - slug?: string | null; - storeId?: string | null; +export interface AddEdgeAndSaveInput { + clientMutationId?: string; + dstNode?: string; + dstPort?: string; + graphId?: string; + message?: string; + srcNode?: string; + srcPort?: string; } -export interface UpdateDbPresetInput { +export interface AddNodeInput { clientMutationId?: string; - id: string; - dbPresetPatch: DbPresetPatch; + context?: string; + graphName?: string; + meta?: Record; + nodeName?: string; + nodeType?: string; + props?: Record; + rootHash?: string; + scopeId?: string; } -export interface DeleteDbPresetInput { +export interface AddNodeAndSaveInput { clientMutationId?: string; - id: string; + graphId?: string; + message?: string; + meta?: Record; + nodeName?: string; + nodeType?: string; + props?: Record; } -export interface CreateFunctionApiBindingInput { +export interface ApproveNodeInput { + approved?: boolean; clientMutationId?: string; - functionApiBinding: { - alias?: string; - apiId: string; - config?: Record; - functionDefinitionId: string; - }; + executionId?: string; + feedback?: Record; + nodeName?: string; } -export interface FunctionApiBindingPatch { - alias?: string | null; - apiId?: string | null; - config?: Record | null; - functionDefinitionId?: string | null; +export interface CopyGraphInput { + clientMutationId?: string; + graphId?: string; + name?: string; + scopeId?: string; } -export interface UpdateFunctionApiBindingInput { +export interface DatabaseAddEdgeInput { clientMutationId?: string; - id: string; - functionApiBindingPatch: FunctionApiBindingPatch; + context?: string; + databaseId?: string; + dstNode?: string; + dstPort?: string; + graphName?: string; + rootHash?: string; + srcNode?: string; + srcPort?: string; } -export interface DeleteFunctionApiBindingInput { +export interface DatabaseAddEdgeAndSaveInput { clientMutationId?: string; - id: string; + dstNode?: string; + dstPort?: string; + graphId?: string; + message?: string; + srcNode?: string; + srcPort?: string; } -export interface CreateFunctionCapabilityBindingInput { +export interface DatabaseAddNodeInput { clientMutationId?: string; - functionCapabilityBinding: { - bucketId?: string; - databaseId: string; - functionId?: string; - graphId?: string; - key?: string; - lifecycle: string; - metadata?: Record; - }; + context?: string; + databaseId?: string; + graphName?: string; + meta?: Record; + nodeName?: string; + nodeType?: string; + props?: Record; + rootHash?: string; } -export interface FunctionCapabilityBindingPatch { - bucketId?: string | null; - databaseId?: string | null; - functionId?: string | null; - graphId?: string | null; - key?: string | null; - lifecycle?: string | null; - metadata?: Record | null; +export interface DatabaseAddNodeAndSaveInput { + clientMutationId?: string; + graphId?: string; + message?: string; + meta?: Record; + nodeName?: string; + nodeType?: string; + props?: Record; } -export interface UpdateFunctionCapabilityBindingInput { +export interface DatabaseApproveNodeInput { + approved?: boolean; clientMutationId?: string; - id: string; - functionCapabilityBindingPatch: FunctionCapabilityBindingPatch; + executionId?: string; + feedback?: Record; + nodeName?: string; } -export interface DeleteFunctionCapabilityBindingInput { +export interface DatabaseCopyGraphInput { clientMutationId?: string; - id: string; + databaseId?: string; + graphId?: string; + name?: string; } -export interface CreateFunctionDefinitionInput { +export interface DatabaseCreateFunctionGraphInput { clientMutationId?: string; - functionDefinition: { - accessChannels?: string[]; - category: string; - concurrency?: number; - databaseId: string; - description?: string; - fnCategory?: string; - functionColumns?: Record; - graphId?: string; - icon?: string; - image?: string; - inputs?: Record; - integrations?: string[]; - isPublished?: boolean; - maxAttempts?: number; - moduleTable?: string; - name: string; - outputs?: Record; - payloadArgs?: Record; - priority?: number; - props?: Record; - protected?: boolean; - publishedAt?: string; - queueName?: string; - requiredBuckets?: string[]; - requiredConfigs?: ResourceRequirementInput[]; - requiredModels?: string[]; - requiredSecrets?: ResourceRequirementInput[]; - resources?: Record; - runtime?: string; - scaleMax?: number; - scaleMin?: number; - targetFunction?: string; - targetSchema?: string; - timeoutSeconds?: number; - volatile?: boolean; - }; + context?: string; + createdBy?: string; + databaseId?: string; + definitionsCommitId?: string; + description?: string; + name?: string; +} +export interface DatabaseGraphInitEmptyRepoInput { + clientMutationId?: string; + sId?: string; + storeId?: string; +} +export interface DatabaseGraphInsertNodeAtPathInput { + clientMutationId?: string; + data?: Record; + kids?: string[]; + ktree?: string[]; + path?: string[]; + root?: string; + sId?: string; +} +export interface DatabaseGraphInsertNodesAtPathsInput { + clientMutationId?: string; + datas?: Record[]; + kidsList?: Record; + ktreeList?: Record; + paths?: Record; + root?: string; + sId?: string; +} +export interface DatabaseGraphSetAndCommitInput { + clientMutationId?: string; + data?: Record; + kids?: string[]; + ktree?: string[]; + message?: string; + path?: string[]; + refname?: string; + sId?: string; + storeId?: string; +} +export interface DatabaseGraphSetDataAtPathInput { + clientMutationId?: string; + data?: Record; + path?: string[]; + root?: string; + sId?: string; +} +export interface DatabaseGraphSetManyAndCommitInput { + clientMutationId?: string; + entries?: Record; + message?: string; + refname?: string; + sId?: string; + storeId?: string; +} +export interface DatabaseImportDefinitionsInput { + clientMutationId?: string; + contexts?: string[]; + graphId?: string; + sourceCommitId?: string; + sourceScopeId?: string; +} +export interface DatabaseImportGraphJsonInput { + clientMutationId?: string; + context?: string; + createdBy?: string; + databaseId?: string; + definitionsCommitId?: string; + description?: string; + graphJson?: Record; + name?: string; +} +export interface DatabaseSaveGraphInput { + clientMutationId?: string; + graphId?: string; + message?: string; + rootHash?: string; +} +export interface DatabaseStartExecutionInput { + clientMutationId?: string; + graphId?: string; + inputPayload?: Record; + maxPendingJobs?: number; + maxTicks?: number; + outputNames?: string[]; + outputNode?: string; + outputPort?: string; + parentExecutionId?: string; + parentNodeName?: string; + timeoutInterval?: IntervalInput; } -export interface FunctionDefinitionPatch { - accessChannels?: string[] | null; - category?: string | null; - concurrency?: number | null; - databaseId?: string | null; - description?: string | null; - fnCategory?: string | null; - functionColumns?: Record | null; - graphId?: string | null; - icon?: string | null; - image?: string | null; - inputs?: Record | null; - integrations?: string[] | null; - isPublished?: boolean | null; - maxAttempts?: number | null; - moduleTable?: string | null; - name?: string | null; - outputs?: Record | null; - payloadArgs?: Record | null; - priority?: number | null; - props?: Record | null; - protected?: boolean | null; - publishedAt?: string | null; - queueName?: string | null; - requiredBuckets?: string[] | null; - requiredConfigs?: ResourceRequirementInput[] | null; - requiredModels?: string[] | null; - requiredSecrets?: ResourceRequirementInput[] | null; - resources?: Record | null; - runtime?: string | null; - scaleMax?: number | null; - scaleMin?: number | null; - targetFunction?: string | null; - targetSchema?: string | null; - timeoutSeconds?: number | null; - volatile?: boolean | null; +export interface DatabaseValidateFunctionGraphInput { + clientMutationId?: string; + graphId?: string; } -export interface UpdateFunctionDefinitionInput { +export interface FunctionInvocationsCreateSyncInput { clientMutationId?: string; - id: string; - functionDefinitionPatch: FunctionDefinitionPatch; + entityId?: string; + payload?: Record; + provenance?: Record; + routeBindingId?: string; + taskIdentifier?: string; } -export interface DeleteFunctionDefinitionInput { +export interface ImportDefinitionsInput { clientMutationId?: string; - id: string; + contexts?: string[]; + graphId?: string; + sourceCommitId?: string; + sourceScopeId?: string; } -export interface CreateFunctionDeploymentInput { +export interface ImportGraphJsonInput { clientMutationId?: string; - functionDeployment: { - annotations?: Record; - concurrency?: number; - databaseId: string; - errorCount?: number; - handlerName?: string; - image: string; - imageVersion?: string; - labels?: Record; - lastError?: string; - lastErrorAt?: string; - namespaceId: string; - resources?: Record; - revision?: number; - scaleMax?: number; - scaleMin?: number; - serviceName?: string; - serviceUrl?: string; - status?: string; - timeoutSeconds?: number; - }; + context?: string; + createdBy?: string; + definitionsCommitId?: string; + description?: string; + graphJson?: Record; + name?: string; + scopeId?: string; } -export interface FunctionDeploymentPatch { - annotations?: Record | null; - concurrency?: number | null; - databaseId?: string | null; - errorCount?: number | null; - handlerName?: string | null; - image?: string | null; - imageVersion?: string | null; - labels?: Record | null; - lastError?: string | null; - lastErrorAt?: string | null; - namespaceId?: string | null; - resources?: Record | null; - revision?: number | null; - scaleMax?: number | null; - scaleMin?: number | null; - serviceName?: string | null; - serviceUrl?: string | null; - status?: string | null; - timeoutSeconds?: number | null; +export interface InfraInitEmptyRepoInput { + clientMutationId?: string; + sId?: string; + storeId?: string; } -export interface UpdateFunctionDeploymentInput { +export interface InfraInsertNodeAtPathInput { clientMutationId?: string; - id: string; - functionDeploymentPatch: FunctionDeploymentPatch; + data?: Record; + kids?: string[]; + ktree?: string[]; + path?: string[]; + root?: string; + sId?: string; } -export interface DeleteFunctionDeploymentInput { +export interface InfraInsertNodesAtPathsInput { clientMutationId?: string; - id: string; + datas?: Record[]; + kidsList?: Record; + ktreeList?: Record; + paths?: Record; + root?: string; + sId?: string; } -export interface CreateFunctionDeploymentEventInput { +export interface InfraSetAndCommitInput { clientMutationId?: string; - functionDeploymentEvent: { - actorId?: string; - databaseId: string; - deploymentId: string; - eventType: string; - message?: string; - metadata?: Record; - }; + data?: Record; + kids?: string[]; + ktree?: string[]; + message?: string; + path?: string[]; + refname?: string; + sId?: string; + storeId?: string; } -export interface FunctionDeploymentEventPatch { - actorId?: string | null; - databaseId?: string | null; - deploymentId?: string | null; - eventType?: string | null; - message?: string | null; - metadata?: Record | null; +export interface InfraSetDataAtPathInput { + clientMutationId?: string; + data?: Record; + path?: string[]; + root?: string; + sId?: string; } -export interface UpdateFunctionDeploymentEventInput { +export interface InfraSetManyAndCommitInput { clientMutationId?: string; - id: string; - functionDeploymentEventPatch: FunctionDeploymentEventPatch; + entries?: Record; + message?: string; + refname?: string; + sId?: string; + storeId?: string; } -export interface DeleteFunctionDeploymentEventInput { +export interface InitEmptyRepoInput { clientMutationId?: string; - id: string; + sId?: string; + storeId?: string; } -export interface CreateFunctionExecutionLogInput { +export interface InsertNodeAtPathInput { clientMutationId?: string; - functionExecutionLog: { - actorId?: string; - databaseId: string; - invocationId?: string; - logLevel?: string; - message: string; - metadata?: Record; - taskIdentifier?: string; - }; + data?: Record; + kids?: string[]; + ktree?: string[]; + path?: string[]; + root?: string; + sId?: string; } -export interface FunctionExecutionLogPatch { - actorId?: string | null; - databaseId?: string | null; - invocationId?: string | null; - logLevel?: string | null; - message?: string | null; - metadata?: Record | null; - taskIdentifier?: string | null; +export interface InsertNodesAtPathsInput { + clientMutationId?: string; + datas?: Record[]; + kidsList?: Record; + ktreeList?: Record; + paths?: Record; + root?: string; + sId?: string; } -export interface UpdateFunctionExecutionLogInput { +export interface PlatformFunctionInvocationsCreateSyncInput { clientMutationId?: string; - id: string; - functionExecutionLogPatch: FunctionExecutionLogPatch; + entityId?: string; + payload?: Record; + provenance?: Record; + routeBindingId?: string; + taskIdentifier?: string; } -export interface DeleteFunctionExecutionLogInput { +export interface PlatformInfraInitEmptyRepoInput { clientMutationId?: string; - id: string; + sId?: string; + storeId?: string; } -export interface CreateFunctionGraphCommitInput { +export interface PlatformInfraInsertNodeAtPathInput { clientMutationId?: string; - functionGraphCommit: { - authorId?: string; - committerId?: string; - date?: string; - message?: string; - parentIds?: string[]; - scopeId: string; - storeId: string; - treeId?: string; - }; + data?: Record; + kids?: string[]; + ktree?: string[]; + path?: string[]; + root?: string; + sId?: string; } -export interface FunctionGraphCommitPatch { - authorId?: string | null; - committerId?: string | null; - date?: string | null; - message?: string | null; - parentIds?: string[] | null; - scopeId?: string | null; - storeId?: string | null; - treeId?: string | null; +export interface PlatformInfraInsertNodesAtPathsInput { + clientMutationId?: string; + datas?: Record[]; + kidsList?: Record; + ktreeList?: Record; + paths?: Record; + root?: string; + sId?: string; } -export interface UpdateFunctionGraphCommitInput { +export interface PlatformInfraSetAndCommitInput { clientMutationId?: string; - id: string; - functionGraphCommitPatch: FunctionGraphCommitPatch; + data?: Record; + kids?: string[]; + ktree?: string[]; + message?: string; + path?: string[]; + refname?: string; + sId?: string; + storeId?: string; +} +export interface PlatformInfraSetDataAtPathInput { + clientMutationId?: string; + data?: Record; + path?: string[]; + root?: string; + sId?: string; } -export interface DeleteFunctionGraphCommitInput { +export interface PlatformInfraSetManyAndCommitInput { clientMutationId?: string; - id: string; + entries?: Record; + message?: string; + refname?: string; + sId?: string; + storeId?: string; } -export interface CreateFunctionGraphInput { +export interface PlatformResourceInstallationsInstallInput { clientMutationId?: string; - functionGraph: { - context?: string; - createdBy?: string; - definitionsCommitId: string; - description?: string; - isValid?: boolean; - name?: string; - scopeId: string; - storeId: string; - validationErrors?: Record; - }; -} -export interface FunctionGraphPatch { - context?: string | null; - createdBy?: string | null; - definitionsCommitId?: string | null; - description?: string | null; - isValid?: boolean | null; - name?: string | null; - scopeId?: string | null; - storeId?: string | null; - validationErrors?: Record | null; + definitionIds?: string[]; + name?: string; + namespaceId?: string; + newParams?: Record; + slug?: string; } -export interface UpdateFunctionGraphInput { +export interface PlatformResourceInstallationsRollbackInput { clientMutationId?: string; - id: string; - functionGraphPatch: FunctionGraphPatch; + commitId?: string; + targetInstallationId?: string; } -export interface DeleteFunctionGraphInput { +export interface PlatformResourceInstallationsUninstallInput { clientMutationId?: string; - id: string; + targetInstallationId?: string; } -export interface CreateFunctionGraphExecutionInput { +export interface PlatformResourceInstallationsUpgradeInput { clientMutationId?: string; - functionGraphExecution: { - actorId?: string; - completedAt?: string; - currentWave?: number; - definitionsCommitId?: string; - entityId?: string; - entityType?: string; - errorCode?: string; - errorMessage?: string; - executionPlan?: Record; - graphId: string; - inputPayload?: Record; - invocationCreatedAt?: string; - invocationId?: string; - lastProgressAt?: string; - maxPendingJobs?: number; - maxTicks?: number; - nodeOutputs?: Record; - organizationId?: string; - outputNames?: string[]; - outputNode?: string; - outputPayload?: Record; - outputPort?: string; - parentExecutionId?: string; - parentInvocationId?: string; - parentNodeName?: string; - principalId?: string; - scopeId: string; - startedAt?: string; - status?: string; - tickCount?: number; - timeoutAt?: string; - }; + newParams?: Record; + targetInstallationId?: string; } -export interface FunctionGraphExecutionPatch { - actorId?: string | null; - completedAt?: string | null; - currentWave?: number | null; - definitionsCommitId?: string | null; - entityId?: string | null; - entityType?: string | null; - errorCode?: string | null; - errorMessage?: string | null; - executionPlan?: Record | null; - graphId?: string | null; - inputPayload?: Record | null; - invocationCreatedAt?: string | null; - invocationId?: string | null; - lastProgressAt?: string | null; - maxPendingJobs?: number | null; - maxTicks?: number | null; - nodeOutputs?: Record | null; - organizationId?: string | null; - outputNames?: string[] | null; - outputNode?: string | null; - outputPayload?: Record | null; - outputPort?: string | null; - parentExecutionId?: string | null; - parentInvocationId?: string | null; - parentNodeName?: string | null; - principalId?: string | null; - scopeId?: string | null; - startedAt?: string | null; - status?: string | null; - tickCount?: number | null; - timeoutAt?: string | null; +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 UpdateFunctionGraphExecutionInput { +export interface ResourceInstallationsInstallInput { clientMutationId?: string; - id: string; - functionGraphExecutionPatch: FunctionGraphExecutionPatch; + definitionIds?: string[]; + name?: string; + namespaceId?: string; + newParams?: Record; + slug?: string; } -export interface DeleteFunctionGraphExecutionInput { +export interface ResourceInstallationsRollbackInput { clientMutationId?: string; - id: string; + commitId?: string; + targetInstallationId?: string; } -export interface CreateFunctionGraphExecutionNodeStateInput { +export interface ResourceInstallationsUninstallInput { clientMutationId?: string; - functionGraphExecutionNodeState: { - callbackInputs?: Record; - callbackMeta?: Record; - callbackTokenHash?: string; - completedAt?: string; - errorCode?: string; - errorMessage?: string; - executionId: string; - nodeName: string; - nodePath?: string[]; - outputId?: string; - scopeId: string; - startedAt?: string; - status?: string; - }; -} -export interface FunctionGraphExecutionNodeStatePatch { - callbackInputs?: Record | null; - callbackMeta?: Record | null; - callbackTokenHash?: string | null; - completedAt?: string | null; - errorCode?: string | null; - errorMessage?: string | null; - executionId?: string | null; - nodeName?: string | null; - nodePath?: string[] | null; - outputId?: string | null; - scopeId?: string | null; - startedAt?: string | null; - status?: string | null; + targetInstallationId?: string; } -export interface UpdateFunctionGraphExecutionNodeStateInput { +export interface ResourceInstallationsUpgradeInput { clientMutationId?: string; - id: string; - functionGraphExecutionNodeStatePatch: FunctionGraphExecutionNodeStatePatch; + newParams?: Record; + targetInstallationId?: string; } -export interface DeleteFunctionGraphExecutionNodeStateInput { +export interface SaveGraphInput { clientMutationId?: string; - id: string; + graphId?: string; + message?: string; + rootHash?: string; } -export interface CreateFunctionGraphExecutionOutputInput { +export interface SetAndCommitInput { clientMutationId?: string; - functionGraphExecutionOutput: { - data: Record; - hash: Base64EncodedBinary; - scopeId: string; - }; -} -export interface FunctionGraphExecutionOutputPatch { - data?: Record | null; - hash?: Base64EncodedBinary | null; - scopeId?: string | null; + data?: Record; + kids?: string[]; + ktree?: string[]; + message?: string; + path?: string[]; + refname?: string; + sId?: string; + storeId?: string; } -export interface UpdateFunctionGraphExecutionOutputInput { +export interface SetDataAtPathInput { clientMutationId?: string; - id: string; - functionGraphExecutionOutputPatch: FunctionGraphExecutionOutputPatch; + data?: Record; + path?: string[]; + root?: string; + sId?: string; } -export interface DeleteFunctionGraphExecutionOutputInput { +export interface SetManyAndCommitInput { clientMutationId?: string; - id: string; + entries?: Record; + message?: string; + refname?: string; + sId?: string; + storeId?: string; } -export interface CreateFunctionGraphObjectInput { +export interface StartExecutionInput { clientMutationId?: string; - functionGraphObject: { - data?: Record; - kids?: string[]; - ktree?: string[]; - scopeId: string; - }; -} -export interface FunctionGraphObjectPatch { - data?: Record | null; - kids?: string[] | null; - ktree?: string[] | null; - scopeId?: string | null; + graphId?: string; + inputPayload?: Record; + maxPendingJobs?: number; + maxTicks?: number; + outputNames?: string[]; + outputNode?: string; + outputPort?: string; + parentExecutionId?: string; + parentNodeName?: string; + timeoutInterval?: IntervalInput; } -export interface UpdateFunctionGraphObjectInput { +export interface ValidateFunctionGraphInput { clientMutationId?: string; - id: string; - functionGraphObjectPatch: FunctionGraphObjectPatch; + graphId?: string; +} +/** A filter to be used against ConstructiveInternalTypeUpload fields. All fields are combined with a logical ‘and.’ */ +export interface ConstructiveInternalTypeUploadFilter { + /** Contained by the specified JSON. */ + containedBy?: ConstructiveInternalTypeUpload; + /** Contains the specified JSON. */ + contains?: ConstructiveInternalTypeUpload; + /** Contains all of the specified keys. */ + containsAllKeys?: string[]; + /** Contains any of the specified keys. */ + containsAnyKeys?: string[]; + /** Contains the specified key. */ + containsKey?: string; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: ConstructiveInternalTypeUpload; + /** Equal to the specified value. */ + equalTo?: ConstructiveInternalTypeUpload; + /** Greater than the specified value. */ + greaterThan?: ConstructiveInternalTypeUpload; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: ConstructiveInternalTypeUpload; + /** Included in the specified list. */ + in?: ConstructiveInternalTypeUpload[]; + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Less than the specified value. */ + lessThan?: ConstructiveInternalTypeUpload; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: ConstructiveInternalTypeUpload; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: ConstructiveInternalTypeUpload; + /** Not equal to the specified value. */ + notEqualTo?: ConstructiveInternalTypeUpload; + /** Not included in the specified list. */ + notIn?: ConstructiveInternalTypeUpload[]; } -export interface DeleteFunctionGraphObjectInput { - clientMutationId?: string; - id: string; +/** A filter to be used against many `DatabaseFunctionGraphExecution` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseFunctionGraphToManyDatabaseFunctionGraphExecutionFilter { + /** Filters to entities where every related entity matches. */ + every?: DatabaseFunctionGraphExecutionFilter; + /** Filters to entities where no related entity matches. */ + none?: DatabaseFunctionGraphExecutionFilter; + /** Filters to entities where at least one related entity matches. */ + some?: DatabaseFunctionGraphExecutionFilter; } -export interface CreateFunctionGraphRefInput { - clientMutationId?: string; - functionGraphRef: { - commitId?: string; - name: string; - scopeId: string; - storeId: string; - }; +/** A filter to be used against many `FunctionDefinition` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseFunctionGraphToManyFunctionDefinitionFilter { + /** Filters to entities where every related entity matches. */ + every?: FunctionDefinitionFilter; + /** Filters to entities where no related entity matches. */ + none?: FunctionDefinitionFilter; + /** Filters to entities where at least one related entity matches. */ + some?: FunctionDefinitionFilter; } -export interface FunctionGraphRefPatch { - commitId?: string | null; - name?: string | null; - scopeId?: string | null; - storeId?: string | null; +/** A filter to be used against many `RepositoryWorkflow` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseFunctionGraphToManyRepositoryWorkflowFilter { + /** Filters to entities where every related entity matches. */ + every?: RepositoryWorkflowFilter; + /** Filters to entities where no related entity matches. */ + none?: RepositoryWorkflowFilter; + /** Filters to entities where at least one related entity matches. */ + some?: RepositoryWorkflowFilter; } -export interface UpdateFunctionGraphRefInput { - clientMutationId?: string; - id: string; - functionGraphRefPatch: FunctionGraphRefPatch; +/** A filter to be used against Base64EncodedBinary fields. All fields are combined with a logical ‘and.’ */ +export interface Base64EncodedBinaryFilter { + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: Base64EncodedBinary; + /** Equal to the specified value. */ + equalTo?: Base64EncodedBinary; + /** Included in the specified list. */ + in?: Base64EncodedBinary[]; + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: Base64EncodedBinary; + /** Not equal to the specified value. */ + notEqualTo?: Base64EncodedBinary; + /** Not included in the specified list. */ + notIn?: Base64EncodedBinary[]; } -export interface DeleteFunctionGraphRefInput { - clientMutationId?: string; - id: string; +/** A filter to be used against many `FunctionInvocation` object types. All fields are combined with a logical ‘and.’ */ +export interface FunctionApiBindingToManyFunctionInvocationFilter { + /** Filters to entities where every related entity matches. */ + every?: FunctionInvocationFilter; + /** Filters to entities where no related entity matches. */ + none?: FunctionInvocationFilter; + /** Filters to entities where at least one related entity matches. */ + some?: FunctionInvocationFilter; } -export interface CreateFunctionGraphStoreInput { - clientMutationId?: string; - functionGraphStore: { - hash?: string; - name: string; - scopeId: string; - }; +/** A filter to be used against many `FunctionApiBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface FunctionDefinitionToManyFunctionApiBindingFilter { + /** Filters to entities where every related entity matches. */ + every?: FunctionApiBindingFilter; + /** Filters to entities where no related entity matches. */ + none?: FunctionApiBindingFilter; + /** Filters to entities where at least one related entity matches. */ + some?: FunctionApiBindingFilter; } -export interface FunctionGraphStorePatch { - hash?: string | null; - name?: string | null; - scopeId?: string | null; +/** A filter to be used against many `FunctionCapabilityBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface FunctionDefinitionToManyFunctionCapabilityBindingFilter { + /** Filters to entities where every related entity matches. */ + every?: FunctionCapabilityBindingFilter; + /** Filters to entities where no related entity matches. */ + none?: FunctionCapabilityBindingFilter; + /** Filters to entities where at least one related entity matches. */ + some?: FunctionCapabilityBindingFilter; } -export interface UpdateFunctionGraphStoreInput { - clientMutationId?: string; - id: string; - functionGraphStorePatch: FunctionGraphStorePatch; +/** A filter to be used against many `WebhookEndpoint` object types. All fields are combined with a logical ‘and.’ */ +export interface FunctionDefinitionToManyWebhookEndpointFilter { + /** Filters to entities where every related entity matches. */ + every?: WebhookEndpointFilter; + /** Filters to entities where no related entity matches. */ + none?: WebhookEndpointFilter; + /** Filters to entities where at least one related entity matches. */ + some?: WebhookEndpointFilter; } -export interface DeleteFunctionGraphStoreInput { - clientMutationId?: string; - id: string; +/** A filter to be used against many `FunctionGraphExecution` object types. All fields are combined with a logical ‘and.’ */ +export interface FunctionGraphToManyFunctionGraphExecutionFilter { + /** Filters to entities where every related entity matches. */ + every?: FunctionGraphExecutionFilter; + /** Filters to entities where no related entity matches. */ + none?: FunctionGraphExecutionFilter; + /** Filters to entities where at least one related entity matches. */ + some?: FunctionGraphExecutionFilter; } -export interface CreateFunctionInvocationAttemptInput { - clientMutationId?: string; - functionInvocationAttempt: { - actorId?: string; - attempt: number; - databaseId: string; - durationMs?: number; - error?: string; - errorDetail?: Record; - invocationCreatedAt: string; - invocationId: string; - startedAt?: string; - success: boolean; - taskIdentifier: string; - }; +/** A filter to be used against many `PlatformFunctionDefinition` object types. All fields are combined with a logical ‘and.’ */ +export interface FunctionGraphToManyPlatformFunctionDefinitionFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformFunctionDefinitionFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformFunctionDefinitionFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformFunctionDefinitionFilter; } -export interface FunctionInvocationAttemptPatch { - actorId?: string | null; - attempt?: number | null; - databaseId?: string | null; - durationMs?: number | null; - error?: string | null; - errorDetail?: Record | null; - invocationCreatedAt?: string | null; - invocationId?: string | null; - startedAt?: string | null; - success?: boolean | null; - taskIdentifier?: string | null; +/** A filter to be used against many `PlatformRepositoryWorkflow` object types. All fields are combined with a logical ‘and.’ */ +export interface FunctionGraphToManyPlatformRepositoryWorkflowFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformRepositoryWorkflowFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformRepositoryWorkflowFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformRepositoryWorkflowFilter; } -export interface UpdateFunctionInvocationAttemptInput { - clientMutationId?: string; - id: string; - functionInvocationAttemptPatch: FunctionInvocationAttemptPatch; +/** A filter to be used against many `ImageGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface ImageToManyImageGrantFilter { + /** Filters to entities where every related entity matches. */ + every?: ImageGrantFilter; + /** Filters to entities where no related entity matches. */ + none?: ImageGrantFilter; + /** Filters to entities where at least one related entity matches. */ + some?: ImageGrantFilter; } -export interface DeleteFunctionInvocationAttemptInput { - clientMutationId?: string; - id: string; +/** A filter to be used against ConstructiveInternalTypeImage fields. All fields are combined with a logical ‘and.’ */ +export interface ConstructiveInternalTypeImageFilter { + /** Contained by the specified JSON. */ + containedBy?: ConstructiveInternalTypeImage; + /** Contains the specified JSON. */ + contains?: ConstructiveInternalTypeImage; + /** Contains all of the specified keys. */ + containsAllKeys?: string[]; + /** Contains any of the specified keys. */ + containsAnyKeys?: string[]; + /** Contains the specified key. */ + containsKey?: string; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: ConstructiveInternalTypeImage; + /** Equal to the specified value. */ + equalTo?: ConstructiveInternalTypeImage; + /** Greater than the specified value. */ + greaterThan?: ConstructiveInternalTypeImage; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: ConstructiveInternalTypeImage; + /** Included in the specified list. */ + in?: ConstructiveInternalTypeImage[]; + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Less than the specified value. */ + lessThan?: ConstructiveInternalTypeImage; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: ConstructiveInternalTypeImage; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: ConstructiveInternalTypeImage; + /** Not equal to the specified value. */ + notEqualTo?: ConstructiveInternalTypeImage; + /** Not included in the specified list. */ + notIn?: ConstructiveInternalTypeImage[]; } -export interface CreateFunctionInvocationInput { - clientMutationId?: string; - functionInvocation: { - actorId?: string; - apiBindingId?: string; - channel?: string; - completedAt?: string; - databaseId: string; - definitionScope?: string; - durationMs?: number; - error?: string; - functionDefinitionId?: string; - graphExecutionId?: string; - jobId?: string; - parentInvocationId?: string; - payload?: Record; - provenance?: Record; - result?: Record; - startedAt?: string; - status?: string; - taskIdentifier: string; - }; +/** A filter to be used against many `BuilderBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface NamespaceToManyBuilderBindingFilter { + /** Filters to entities where every related entity matches. */ + every?: BuilderBindingFilter; + /** Filters to entities where no related entity matches. */ + none?: BuilderBindingFilter; + /** Filters to entities where at least one related entity matches. */ + some?: BuilderBindingFilter; } -export interface FunctionInvocationPatch { - actorId?: string | null; - apiBindingId?: string | null; - channel?: string | null; - completedAt?: string | null; - databaseId?: string | null; - definitionScope?: string | null; - durationMs?: number | null; - error?: string | null; - functionDefinitionId?: string | null; - graphExecutionId?: string | null; - jobId?: string | null; - parentInvocationId?: string | null; - payload?: Record | null; - provenance?: Record | null; - result?: Record | null; - startedAt?: string | null; - status?: string | null; - taskIdentifier?: string | null; +/** A filter to be used against many `FunctionDeployment` object types. All fields are combined with a logical ‘and.’ */ +export interface NamespaceToManyFunctionDeploymentFilter { + /** Filters to entities where every related entity matches. */ + every?: FunctionDeploymentFilter; + /** Filters to entities where no related entity matches. */ + none?: FunctionDeploymentFilter; + /** Filters to entities where at least one related entity matches. */ + some?: FunctionDeploymentFilter; } -export interface UpdateFunctionInvocationInput { - clientMutationId?: string; - id: string; - functionInvocationPatch: FunctionInvocationPatch; +/** A filter to be used against many `RegistryBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface NamespaceToManyRegistryBindingFilter { + /** Filters to entities where every related entity matches. */ + every?: RegistryBindingFilter; + /** Filters to entities where no related entity matches. */ + none?: RegistryBindingFilter; + /** Filters to entities where at least one related entity matches. */ + some?: RegistryBindingFilter; } -export interface DeleteFunctionInvocationInput { - clientMutationId?: string; - id: string; +/** A filter to be used against many `ResourceDefinition` object types. All fields are combined with a logical ‘and.’ */ +export interface NamespaceToManyResourceDefinitionFilter { + /** Filters to entities where every related entity matches. */ + every?: ResourceDefinitionFilter; + /** Filters to entities where no related entity matches. */ + none?: ResourceDefinitionFilter; + /** Filters to entities where at least one related entity matches. */ + some?: ResourceDefinitionFilter; } -export interface CreateGetAllTreeNodesRecordInput { - clientMutationId?: string; - getAllTreeNodesRecord: { - data?: Record; - path?: string[]; - }; +/** A filter to be used against many `ResourceInstallation` object types. All fields are combined with a logical ‘and.’ */ +export interface NamespaceToManyResourceInstallationFilter { + /** Filters to entities where every related entity matches. */ + every?: ResourceInstallationFilter; + /** Filters to entities where no related entity matches. */ + none?: ResourceInstallationFilter; + /** Filters to entities where at least one related entity matches. */ + some?: ResourceInstallationFilter; } -export interface GetAllTreeNodesRecordPatch { - data?: Record | null; - path?: string[] | null; +/** A filter to be used against many `Resource` object types. All fields are combined with a logical ‘and.’ */ +export interface NamespaceToManyResourceFilter { + /** Filters to entities where every related entity matches. */ + every?: ResourceFilter; + /** Filters to entities where no related entity matches. */ + none?: ResourceFilter; + /** Filters to entities where at least one related entity matches. */ + some?: ResourceFilter; } -export interface UpdateGetAllTreeNodesRecordInput { - clientMutationId?: string; - id: string; - getAllTreeNodesRecordPatch: GetAllTreeNodesRecordPatch; +/** A filter to be used against many `WebhookEndpoint` object types. All fields are combined with a logical ‘and.’ */ +export interface NamespaceToManyWebhookEndpointFilter { + /** Filters to entities where every related entity matches. */ + every?: WebhookEndpointFilter; + /** Filters to entities where no related entity matches. */ + none?: WebhookEndpointFilter; + /** Filters to entities where at least one related entity matches. */ + some?: WebhookEndpointFilter; } -export interface DeleteGetAllTreeNodesRecordInput { - clientMutationId?: string; - id: string; +/** A filter to be used against many `PlatformFunctionInvocation` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformFunctionApiBindingToManyPlatformFunctionInvocationFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformFunctionInvocationFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformFunctionInvocationFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformFunctionInvocationFilter; } -export interface CreateInfraCommitInput { - clientMutationId?: string; - infraCommit: { - authorId?: string; - committerId?: string; - databaseId: string; - date?: string; - message?: string; - parentIds?: string[]; - storeId: string; - treeId?: string; - }; +/** A filter to be used against many `PlatformFunctionApiBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformFunctionDefinitionToManyPlatformFunctionApiBindingFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformFunctionApiBindingFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformFunctionApiBindingFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformFunctionApiBindingFilter; } -export interface InfraCommitPatch { - authorId?: string | null; - committerId?: string | null; - databaseId?: string | null; - date?: string | null; - message?: string | null; - parentIds?: string[] | null; - storeId?: string | null; - treeId?: string | null; +/** A filter to be used against many `PlatformFunctionCapabilityBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformFunctionDefinitionToManyPlatformFunctionCapabilityBindingFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformFunctionCapabilityBindingFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformFunctionCapabilityBindingFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformFunctionCapabilityBindingFilter; } -export interface UpdateInfraCommitInput { - clientMutationId?: string; - id: string; - infraCommitPatch: InfraCommitPatch; +/** A filter to be used against many `PlatformWebhookEndpoint` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformFunctionDefinitionToManyPlatformWebhookEndpointFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformWebhookEndpointFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformWebhookEndpointFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformWebhookEndpointFilter; } -export interface DeleteInfraCommitInput { - clientMutationId?: string; - id: string; +/** A filter to be used against many `PlatformImageGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformImageToManyPlatformImageGrantFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformImageGrantFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformImageGrantFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformImageGrantFilter; } -export interface CreateInfraGetAllTreeNodesRecordInput { - clientMutationId?: string; - infraGetAllTreeNodesRecord: { - data?: Record; - path?: string[]; - }; +/** A filter to be used against many `PlatformBuilderBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformNamespaceToManyPlatformBuilderBindingFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformBuilderBindingFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformBuilderBindingFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformBuilderBindingFilter; } -export interface InfraGetAllTreeNodesRecordPatch { - data?: Record | null; - path?: string[] | null; +/** A filter to be used against many `PlatformFunctionDeployment` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformNamespaceToManyPlatformFunctionDeploymentFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformFunctionDeploymentFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformFunctionDeploymentFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformFunctionDeploymentFilter; } -export interface UpdateInfraGetAllTreeNodesRecordInput { - clientMutationId?: string; - id: string; - infraGetAllTreeNodesRecordPatch: InfraGetAllTreeNodesRecordPatch; +/** A filter to be used against many `PlatformRegistryBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformNamespaceToManyPlatformRegistryBindingFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformRegistryBindingFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformRegistryBindingFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformRegistryBindingFilter; } -export interface DeleteInfraGetAllTreeNodesRecordInput { - clientMutationId?: string; - id: string; +/** A filter to be used against many `PlatformResourceDefinition` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformNamespaceToManyPlatformResourceDefinitionFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformResourceDefinitionFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformResourceDefinitionFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformResourceDefinitionFilter; } -export interface CreateInfraObjectInput { - clientMutationId?: string; - infraObject: { - data?: Record; - databaseId: string; - kids?: string[]; - ktree?: string[]; - }; +/** A filter to be used against many `PlatformResourceInstallation` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformNamespaceToManyPlatformResourceInstallationFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformResourceInstallationFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformResourceInstallationFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformResourceInstallationFilter; } -export interface InfraObjectPatch { - data?: Record | null; - databaseId?: string | null; - kids?: string[] | null; - ktree?: string[] | null; +/** A filter to be used against many `PlatformResource` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformNamespaceToManyPlatformResourceFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformResourceFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformResourceFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformResourceFilter; } -export interface UpdateInfraObjectInput { - clientMutationId?: string; - id: string; - infraObjectPatch: InfraObjectPatch; +/** A filter to be used against many `PlatformWebhookEndpoint` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformNamespaceToManyPlatformWebhookEndpointFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformWebhookEndpointFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformWebhookEndpointFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformWebhookEndpointFilter; } -export interface DeleteInfraObjectInput { - clientMutationId?: string; - id: string; +/** A filter to be used against ConstructiveInternalTypeUpload List fields. All fields are combined with a logical ‘and.’ */ +export interface ConstructiveInternalTypeUploadListFilter { + /** Any array item is equal to the specified value. */ + anyEqualTo?: ConstructiveInternalTypeUpload; + /** Any array item is greater than the specified value. */ + anyGreaterThan?: ConstructiveInternalTypeUpload; + /** Any array item is greater than or equal to the specified value. */ + anyGreaterThanOrEqualTo?: ConstructiveInternalTypeUpload; + /** Any array item is less than the specified value. */ + anyLessThan?: ConstructiveInternalTypeUpload; + /** Any array item is less than or equal to the specified value. */ + anyLessThanOrEqualTo?: ConstructiveInternalTypeUpload; + /** Any array item is not equal to the specified value. */ + anyNotEqualTo?: ConstructiveInternalTypeUpload; + /** Contained by the specified list of values. */ + containedBy?: ConstructiveInternalTypeUpload[]; + /** Contains the specified list of values. */ + contains?: ConstructiveInternalTypeUpload[]; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: ConstructiveInternalTypeUpload[]; + /** Equal to the specified value. */ + equalTo?: ConstructiveInternalTypeUpload[]; + /** Greater than the specified value. */ + greaterThan?: ConstructiveInternalTypeUpload[]; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: ConstructiveInternalTypeUpload[]; + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Less than the specified value. */ + lessThan?: ConstructiveInternalTypeUpload[]; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: ConstructiveInternalTypeUpload[]; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: ConstructiveInternalTypeUpload[]; + /** Not equal to the specified value. */ + notEqualTo?: ConstructiveInternalTypeUpload[]; + /** Overlaps the specified list of values. */ + overlaps?: ConstructiveInternalTypeUpload[]; } -export interface CreateInfraRefInput { - clientMutationId?: string; - infraRef: { - commitId?: string; - databaseId: string; - name: string; - storeId: string; - }; +/** A filter to be used against String fields with pg_trgm support. All fields are combined with a logical ‘and.’ */ +export interface StringTrgmFilter { + /** 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; + /** Fuzzy matches using pg_trgm trigram similarity. Tolerates typos and misspellings. */ + similarTo?: TrgmSearchInput; + /** Starts with the specified string (case-sensitive). */ + startsWith?: string; + /** Starts with the specified string (case-insensitive). */ + startsWithInsensitive?: string; + /** Fuzzy matches using pg_trgm word_similarity. Finds the best matching substring within the column value. */ + wordSimilarTo?: TrgmSearchInput; } -export interface InfraRefPatch { - commitId?: string | null; - databaseId?: string | null; - name?: string | null; - storeId?: string | null; +/** A filter to be used against many `PlatformProposalReaction` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformProposalCommentToManyPlatformProposalReactionFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformProposalReactionFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformProposalReactionFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformProposalReactionFilter; +} +/** Input for pg_trgm fuzzy text matching. Provide a search value and optional similarity threshold. */ +export interface TrgmSearchInput { + /** Minimum similarity threshold (0.0 to 1.0). Higher = stricter matching. Default is 0.3. */ + threshold?: number; + /** The text to fuzzy-match against. Typos and misspellings are tolerated. */ + value: string; +} +/** Input for vector similarity search. Provide a query vector, optional metric, and optional max distance threshold. */ +export interface VectorNearbyInput { + /** Maximum distance threshold. Only rows within this distance are returned. */ + distance?: number; + /** When true (default for tables with @hasChunks), transparently queries the chunks table and returns the minimum distance across parent + all chunks. Set to false to only search the parent embedding. */ + includeChunks?: boolean; + /** Similarity metric to use (default: COSINE). */ + metric?: VectorMetric; + /** Natural language text to embed server-side for similarity search. Mutually exclusive with `vector` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + text?: string; + /** Query vector for similarity search. */ + vector: number[]; +} +/** A filter to be used against many `PlatformProposal` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformProposalToManyPlatformProposalFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformProposalFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformProposalFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformProposalFilter; } -export interface UpdateInfraRefInput { - clientMutationId?: string; - id: string; - infraRefPatch: InfraRefPatch; +/** A filter to be used against many `PlatformBuild` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformProposalToManyPlatformBuildFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformBuildFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformBuildFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformBuildFilter; } -export interface DeleteInfraRefInput { - clientMutationId?: string; - id: string; +/** A filter to be used against many `PlatformProposalComment` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformProposalToManyPlatformProposalCommentFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformProposalCommentFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformProposalCommentFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformProposalCommentFilter; } -export interface CreateInfraStoreInput { - clientMutationId?: string; - infraStore: { - databaseId: string; - hash?: string; - name: string; - }; +/** A filter to be used against many `PlatformProposalFileView` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformProposalToManyPlatformProposalFileViewFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformProposalFileViewFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformProposalFileViewFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformProposalFileViewFilter; } -export interface InfraStorePatch { - databaseId?: string | null; - hash?: string | null; - name?: string | null; +/** A filter to be used against many `PlatformProposalReaction` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformProposalToManyPlatformProposalReactionFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformProposalReactionFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformProposalReactionFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformProposalReactionFilter; } -export interface UpdateInfraStoreInput { - clientMutationId?: string; - id: string; - infraStorePatch: InfraStorePatch; +/** A filter to be used against many `PlatformProposalReview` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformProposalToManyPlatformProposalReviewFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformProposalReviewFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformProposalReviewFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformProposalReviewFilter; } -export interface DeleteInfraStoreInput { - clientMutationId?: string; - id: string; +/** A filter to be used against many `PlatformProposalsChunk` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformProposalToManyPlatformProposalsChunkFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformProposalsChunkFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformProposalsChunkFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformProposalsChunkFilter; } -export interface CreateIntegrationProviderInput { - clientMutationId?: string; - integrationProvider: { - brand?: Record; - category?: string; - description?: string; - icon?: string; - logo?: ConstructiveInternalTypeImage; - name: string; - requiredConfigs?: ResourceRequirementInput[]; - requiredSecrets?: ResourceRequirementInput[]; - slug: string; - }; +/** A filter to be used against many `PlatformRegistryBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformRegistryToManyPlatformRegistryBindingFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformRegistryBindingFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformRegistryBindingFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformRegistryBindingFilter; } -export interface IntegrationProviderPatch { - brand?: Record | null; - category?: string | null; - description?: string | null; - icon?: string | null; - logo?: ConstructiveInternalTypeImage | null; - logoUpload?: File | null; - name?: string | null; - requiredConfigs?: ResourceRequirementInput[] | null; - requiredSecrets?: ResourceRequirementInput[] | null; - slug?: string | null; +/** A filter to be used against many `PlatformRegistryGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformRegistryToManyPlatformRegistryGrantFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformRegistryGrantFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformRegistryGrantFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformRegistryGrantFilter; } -export interface UpdateIntegrationProviderInput { - clientMutationId?: string; - id: string; - integrationProviderPatch: IntegrationProviderPatch; +/** A filter to be used against many `PlatformBuild` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformRepositoryToManyPlatformBuildFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformBuildFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformBuildFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformBuildFilter; } -export interface DeleteIntegrationProviderInput { - clientMutationId?: string; - id: string; +/** A filter to be used against many `PlatformProposal` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformRepositoryToManyPlatformProposalFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformProposalFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformProposalFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformProposalFilter; } -export interface CreateNamespaceInput { - clientMutationId?: string; - namespace: { - annotations?: Record; - databaseId: string; - description?: string; - isActive?: boolean; - isManaged?: boolean; - labels?: Record; - lastError?: string; - name: string; - namespaceName: string; - status?: string; - }; +/** A filter to be used against many `PlatformRepositoryEvent` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformRepositoryToManyPlatformRepositoryEventFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformRepositoryEventFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformRepositoryEventFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformRepositoryEventFilter; } -export interface NamespacePatch { - annotations?: Record | null; - databaseId?: string | null; - description?: string | null; - isActive?: boolean | null; - isManaged?: boolean | null; - labels?: Record | null; - lastError?: string | null; - name?: string | null; - namespaceName?: string | null; - status?: string | null; +/** A filter to be used against many `PlatformRepositoryRequiredCheck` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformRepositoryToManyPlatformRepositoryRequiredCheckFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformRepositoryRequiredCheckFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformRepositoryRequiredCheckFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformRepositoryRequiredCheckFilter; } -export interface UpdateNamespaceInput { - clientMutationId?: string; - id: string; - namespacePatch: NamespacePatch; +/** A filter to be used against many `PlatformRepositoryWorkflow` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformRepositoryToManyPlatformRepositoryWorkflowFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformRepositoryWorkflowFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformRepositoryWorkflowFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformRepositoryWorkflowFilter; } -export interface DeleteNamespaceInput { - clientMutationId?: string; - id: string; +/** A filter to be used against many `PlatformBuild` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformRepositoryEventToManyPlatformBuildFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformBuildFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformBuildFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformBuildFilter; } -export interface CreateNamespaceEventInput { - clientMutationId?: string; - namespaceEvent: { - actorId?: string; - databaseId: string; - eventType: string; - message?: string; - metadata?: Record; - namespaceId: string; - }; +/** A filter to be used against many `PlatformBuild` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformRepositoryWorkflowToManyPlatformBuildFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformBuildFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformBuildFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformBuildFilter; } -export interface NamespaceEventPatch { - actorId?: string | null; - databaseId?: string | null; - eventType?: string | null; - message?: string | null; - metadata?: Record | null; - namespaceId?: string | null; +/** A filter to be used against many `PlatformRepositoryRequiredCheck` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformRepositoryWorkflowToManyPlatformRepositoryRequiredCheckFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformRepositoryRequiredCheckFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformRepositoryRequiredCheckFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformRepositoryRequiredCheckFilter; } -export interface UpdateNamespaceEventInput { - clientMutationId?: string; - id: string; - namespaceEventPatch: NamespaceEventPatch; +/** A filter to be used against many `PlatformResourceStatusCheck` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformResourceToManyPlatformResourceStatusCheckFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformResourceStatusCheckFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformResourceStatusCheckFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformResourceStatusCheckFilter; } -export interface DeleteNamespaceEventInput { - clientMutationId?: string; - id: string; +/** A filter to be used against many `PlatformResource` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformResourceDefinitionToManyPlatformResourceFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformResourceFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformResourceFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformResourceFilter; } -export interface CreatePlatformFunctionApiBindingInput { - clientMutationId?: string; - platformFunctionApiBinding: { - alias?: string; - apiId: string; - config?: Record; - functionDefinitionId: string; - }; +/** A filter to be used against Interval fields. All fields are combined with a logical ‘and.’ */ +export interface IntervalFilter { + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: IntervalInput; + /** Equal to the specified value. */ + equalTo?: IntervalInput; + /** Greater than the specified value. */ + greaterThan?: IntervalInput; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: IntervalInput; + /** Included in the specified list. */ + in?: IntervalInput[]; + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Less than the specified value. */ + lessThan?: IntervalInput; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: IntervalInput; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: IntervalInput; + /** Not equal to the specified value. */ + notEqualTo?: IntervalInput; + /** Not included in the specified list. */ + notIn?: IntervalInput[]; } -export interface PlatformFunctionApiBindingPatch { - alias?: string | null; - apiId?: string | null; - config?: Record | null; - functionDefinitionId?: string | null; +/** A filter to be used against many `PlatformRegistry` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformResourceInstallationToManyPlatformRegistryFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformRegistryFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformRegistryFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformRegistryFilter; } -export interface UpdatePlatformFunctionApiBindingInput { - clientMutationId?: string; - id: string; - platformFunctionApiBindingPatch: PlatformFunctionApiBindingPatch; +/** A filter to be used against many `PlatformResource` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformResourceInstallationToManyPlatformResourceFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformResourceFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformResourceFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformResourceFilter; } -export interface DeletePlatformFunctionApiBindingInput { - clientMutationId?: string; - id: string; +/** A filter to be used against many `PlatformWebhookEvent` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformWebhookEndpointToManyPlatformWebhookEventFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformWebhookEventFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformWebhookEventFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformWebhookEventFilter; } -export interface CreatePlatformFunctionCapabilityBindingInput { - clientMutationId?: string; - platformFunctionCapabilityBinding: { - bucketId?: string; - functionId?: string; - graphId?: string; - key?: string; - lifecycle: string; - metadata?: Record; - }; +/** A filter to be used against many `ProposalReaction` object types. All fields are combined with a logical ‘and.’ */ +export interface ProposalCommentToManyProposalReactionFilter { + /** Filters to entities where every related entity matches. */ + every?: ProposalReactionFilter; + /** Filters to entities where no related entity matches. */ + none?: ProposalReactionFilter; + /** Filters to entities where at least one related entity matches. */ + some?: ProposalReactionFilter; } -export interface PlatformFunctionCapabilityBindingPatch { - bucketId?: string | null; - functionId?: string | null; - graphId?: string | null; - key?: string | null; - lifecycle?: string | null; - metadata?: Record | null; +/** A filter to be used against many `Build` object types. All fields are combined with a logical ‘and.’ */ +export interface ProposalToManyBuildFilter { + /** Filters to entities where every related entity matches. */ + every?: BuildFilter; + /** Filters to entities where no related entity matches. */ + none?: BuildFilter; + /** Filters to entities where at least one related entity matches. */ + some?: BuildFilter; } -export interface UpdatePlatformFunctionCapabilityBindingInput { - clientMutationId?: string; - id: string; - platformFunctionCapabilityBindingPatch: PlatformFunctionCapabilityBindingPatch; +/** A filter to be used against many `Proposal` object types. All fields are combined with a logical ‘and.’ */ +export interface ProposalToManyProposalFilter { + /** Filters to entities where every related entity matches. */ + every?: ProposalFilter; + /** Filters to entities where no related entity matches. */ + none?: ProposalFilter; + /** Filters to entities where at least one related entity matches. */ + some?: ProposalFilter; } -export interface DeletePlatformFunctionCapabilityBindingInput { - clientMutationId?: string; - id: string; +/** A filter to be used against many `ProposalComment` object types. All fields are combined with a logical ‘and.’ */ +export interface ProposalToManyProposalCommentFilter { + /** Filters to entities where every related entity matches. */ + every?: ProposalCommentFilter; + /** Filters to entities where no related entity matches. */ + none?: ProposalCommentFilter; + /** Filters to entities where at least one related entity matches. */ + some?: ProposalCommentFilter; } -export interface CreatePlatformFunctionDefinitionInput { - clientMutationId?: string; - platformFunctionDefinition: { - accessChannels?: string[]; - billable?: boolean; - category: string; - concurrency?: number; - description?: string; - fnCategory?: string; - functionColumns?: Record; - graphId?: string; - icon?: string; - image?: string; - inputs?: Record; - integrations?: string[]; - isPublished?: boolean; - maxAttempts?: number; - moduleTable?: string; - name: string; - outputs?: Record; - payloadArgs?: Record; - priority?: number; - props?: Record; - protected?: boolean; - publishedAt?: string; - queueName?: string; - requiredBuckets?: string[]; - requiredConfigs?: ResourceRequirementInput[]; - requiredModels?: string[]; - requiredSecrets?: ResourceRequirementInput[]; - resources?: Record; - runtime?: string; - scaleMax?: number; - scaleMin?: number; - system?: boolean; - targetFunction?: string; - targetSchema?: string; - timeoutSeconds?: number; - volatile?: boolean; - }; +/** A filter to be used against many `ProposalFileView` object types. All fields are combined with a logical ‘and.’ */ +export interface ProposalToManyProposalFileViewFilter { + /** Filters to entities where every related entity matches. */ + every?: ProposalFileViewFilter; + /** Filters to entities where no related entity matches. */ + none?: ProposalFileViewFilter; + /** Filters to entities where at least one related entity matches. */ + some?: ProposalFileViewFilter; } -export interface PlatformFunctionDefinitionPatch { - accessChannels?: string[] | null; - billable?: boolean | null; - category?: string | null; - concurrency?: number | null; - description?: string | null; - fnCategory?: string | null; - functionColumns?: Record | null; - graphId?: string | null; - icon?: string | null; - image?: string | null; - inputs?: Record | null; - integrations?: string[] | null; - isPublished?: boolean | null; - maxAttempts?: number | null; - moduleTable?: string | null; - name?: string | null; - outputs?: Record | null; - payloadArgs?: Record | null; - priority?: number | null; - props?: Record | null; - protected?: boolean | null; - publishedAt?: string | null; - queueName?: string | null; - requiredBuckets?: string[] | null; - requiredConfigs?: ResourceRequirementInput[] | null; - requiredModels?: string[] | null; - requiredSecrets?: ResourceRequirementInput[] | null; - resources?: Record | null; - runtime?: string | null; - scaleMax?: number | null; - scaleMin?: number | null; - system?: boolean | null; - targetFunction?: string | null; - targetSchema?: string | null; - timeoutSeconds?: number | null; - volatile?: boolean | null; +/** A filter to be used against many `ProposalReaction` object types. All fields are combined with a logical ‘and.’ */ +export interface ProposalToManyProposalReactionFilter { + /** Filters to entities where every related entity matches. */ + every?: ProposalReactionFilter; + /** Filters to entities where no related entity matches. */ + none?: ProposalReactionFilter; + /** Filters to entities where at least one related entity matches. */ + some?: ProposalReactionFilter; } -export interface UpdatePlatformFunctionDefinitionInput { - clientMutationId?: string; - id: string; - platformFunctionDefinitionPatch: PlatformFunctionDefinitionPatch; +/** A filter to be used against many `ProposalReview` object types. All fields are combined with a logical ‘and.’ */ +export interface ProposalToManyProposalReviewFilter { + /** Filters to entities where every related entity matches. */ + every?: ProposalReviewFilter; + /** Filters to entities where no related entity matches. */ + none?: ProposalReviewFilter; + /** Filters to entities where at least one related entity matches. */ + some?: ProposalReviewFilter; } -export interface DeletePlatformFunctionDefinitionInput { - clientMutationId?: string; - id: string; +/** A filter to be used against many `ProposalsChunk` object types. All fields are combined with a logical ‘and.’ */ +export interface ProposalToManyProposalsChunkFilter { + /** Filters to entities where every related entity matches. */ + every?: ProposalsChunkFilter; + /** Filters to entities where no related entity matches. */ + none?: ProposalsChunkFilter; + /** Filters to entities where at least one related entity matches. */ + some?: ProposalsChunkFilter; } -export interface CreatePlatformFunctionDeploymentInput { - clientMutationId?: string; - platformFunctionDeployment: { - annotations?: Record; - concurrency?: number; - errorCount?: number; - handlerName?: string; - image: string; - imageVersion?: string; - labels?: Record; - lastError?: string; - lastErrorAt?: string; - namespaceId: string; - resources?: Record; - revision?: number; - scaleMax?: number; - scaleMin?: number; - serviceName?: string; - serviceUrl?: string; - status?: string; - timeoutSeconds?: number; - }; +/** A filter to be used against many `RegistryBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface RegistryToManyRegistryBindingFilter { + /** Filters to entities where every related entity matches. */ + every?: RegistryBindingFilter; + /** Filters to entities where no related entity matches. */ + none?: RegistryBindingFilter; + /** Filters to entities where at least one related entity matches. */ + some?: RegistryBindingFilter; } -export interface PlatformFunctionDeploymentPatch { - annotations?: Record | null; - concurrency?: number | null; - errorCount?: number | null; - handlerName?: string | null; - image?: string | null; - imageVersion?: string | null; - labels?: Record | null; - lastError?: string | null; - lastErrorAt?: string | null; - namespaceId?: string | null; - resources?: Record | null; - revision?: number | null; - scaleMax?: number | null; - scaleMin?: number | null; - serviceName?: string | null; - serviceUrl?: string | null; - status?: string | null; - timeoutSeconds?: number | null; +/** A filter to be used against many `RegistryGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface RegistryToManyRegistryGrantFilter { + /** Filters to entities where every related entity matches. */ + every?: RegistryGrantFilter; + /** Filters to entities where no related entity matches. */ + none?: RegistryGrantFilter; + /** Filters to entities where at least one related entity matches. */ + some?: RegistryGrantFilter; } -export interface UpdatePlatformFunctionDeploymentInput { - clientMutationId?: string; - id: string; - platformFunctionDeploymentPatch: PlatformFunctionDeploymentPatch; +/** A filter to be used against many `Build` object types. All fields are combined with a logical ‘and.’ */ +export interface RepositoryToManyBuildFilter { + /** Filters to entities where every related entity matches. */ + every?: BuildFilter; + /** Filters to entities where no related entity matches. */ + none?: BuildFilter; + /** Filters to entities where at least one related entity matches. */ + some?: BuildFilter; } -export interface DeletePlatformFunctionDeploymentInput { - clientMutationId?: string; - id: string; +/** A filter to be used against many `Proposal` object types. All fields are combined with a logical ‘and.’ */ +export interface RepositoryToManyProposalFilter { + /** Filters to entities where every related entity matches. */ + every?: ProposalFilter; + /** Filters to entities where no related entity matches. */ + none?: ProposalFilter; + /** Filters to entities where at least one related entity matches. */ + some?: ProposalFilter; } -export interface CreatePlatformFunctionDeploymentEventInput { - clientMutationId?: string; - platformFunctionDeploymentEvent: { - actorId?: string; - deploymentId: string; - eventType: string; - message?: string; - metadata?: Record; - }; +/** A filter to be used against many `RepositoryEvent` object types. All fields are combined with a logical ‘and.’ */ +export interface RepositoryToManyRepositoryEventFilter { + /** Filters to entities where every related entity matches. */ + every?: RepositoryEventFilter; + /** Filters to entities where no related entity matches. */ + none?: RepositoryEventFilter; + /** Filters to entities where at least one related entity matches. */ + some?: RepositoryEventFilter; } -export interface PlatformFunctionDeploymentEventPatch { - actorId?: string | null; - deploymentId?: string | null; - eventType?: string | null; - message?: string | null; - metadata?: Record | null; +/** A filter to be used against many `RepositoryRequiredCheck` object types. All fields are combined with a logical ‘and.’ */ +export interface RepositoryToManyRepositoryRequiredCheckFilter { + /** Filters to entities where every related entity matches. */ + every?: RepositoryRequiredCheckFilter; + /** Filters to entities where no related entity matches. */ + none?: RepositoryRequiredCheckFilter; + /** Filters to entities where at least one related entity matches. */ + some?: RepositoryRequiredCheckFilter; } -export interface UpdatePlatformFunctionDeploymentEventInput { - clientMutationId?: string; - id: string; - platformFunctionDeploymentEventPatch: PlatformFunctionDeploymentEventPatch; +/** A filter to be used against many `RepositoryWorkflow` object types. All fields are combined with a logical ‘and.’ */ +export interface RepositoryToManyRepositoryWorkflowFilter { + /** Filters to entities where every related entity matches. */ + every?: RepositoryWorkflowFilter; + /** Filters to entities where no related entity matches. */ + none?: RepositoryWorkflowFilter; + /** Filters to entities where at least one related entity matches. */ + some?: RepositoryWorkflowFilter; +} +/** A filter to be used against many `Build` object types. All fields are combined with a logical ‘and.’ */ +export interface RepositoryEventToManyBuildFilter { + /** Filters to entities where every related entity matches. */ + every?: BuildFilter; + /** Filters to entities where no related entity matches. */ + none?: BuildFilter; + /** Filters to entities where at least one related entity matches. */ + some?: BuildFilter; +} +/** A filter to be used against many `Build` object types. All fields are combined with a logical ‘and.’ */ +export interface RepositoryWorkflowToManyBuildFilter { + /** Filters to entities where every related entity matches. */ + every?: BuildFilter; + /** Filters to entities where no related entity matches. */ + none?: BuildFilter; + /** Filters to entities where at least one related entity matches. */ + some?: BuildFilter; } -export interface DeletePlatformFunctionDeploymentEventInput { - clientMutationId?: string; - id: string; +/** A filter to be used against many `RepositoryRequiredCheck` object types. All fields are combined with a logical ‘and.’ */ +export interface RepositoryWorkflowToManyRepositoryRequiredCheckFilter { + /** Filters to entities where every related entity matches. */ + every?: RepositoryRequiredCheckFilter; + /** Filters to entities where no related entity matches. */ + none?: RepositoryRequiredCheckFilter; + /** Filters to entities where at least one related entity matches. */ + some?: RepositoryRequiredCheckFilter; } -export interface CreatePlatformFunctionExecutionLogInput { - clientMutationId?: string; - platformFunctionExecutionLog: { - actorId?: string; - invocationId?: string; - logLevel?: string; - message: string; - metadata?: Record; - taskIdentifier?: string; - }; +/** A filter to be used against many `ResourceStatusCheck` object types. All fields are combined with a logical ‘and.’ */ +export interface ResourceToManyResourceStatusCheckFilter { + /** Filters to entities where every related entity matches. */ + every?: ResourceStatusCheckFilter; + /** Filters to entities where no related entity matches. */ + none?: ResourceStatusCheckFilter; + /** Filters to entities where at least one related entity matches. */ + some?: ResourceStatusCheckFilter; } -export interface PlatformFunctionExecutionLogPatch { - actorId?: string | null; - invocationId?: string | null; - logLevel?: string | null; - message?: string | null; - metadata?: Record | null; - taskIdentifier?: string | null; +/** A filter to be used against many `Resource` object types. All fields are combined with a logical ‘and.’ */ +export interface ResourceDefinitionToManyResourceFilter { + /** Filters to entities where every related entity matches. */ + every?: ResourceFilter; + /** Filters to entities where no related entity matches. */ + none?: ResourceFilter; + /** Filters to entities where at least one related entity matches. */ + some?: ResourceFilter; } -export interface UpdatePlatformFunctionExecutionLogInput { - clientMutationId?: string; - id: string; - platformFunctionExecutionLogPatch: PlatformFunctionExecutionLogPatch; +/** A filter to be used against many `Registry` object types. All fields are combined with a logical ‘and.’ */ +export interface ResourceInstallationToManyRegistryFilter { + /** Filters to entities where every related entity matches. */ + every?: RegistryFilter; + /** Filters to entities where no related entity matches. */ + none?: RegistryFilter; + /** Filters to entities where at least one related entity matches. */ + some?: RegistryFilter; } -export interface DeletePlatformFunctionExecutionLogInput { - clientMutationId?: string; - id: string; +/** A filter to be used against many `Resource` object types. All fields are combined with a logical ‘and.’ */ +export interface ResourceInstallationToManyResourceFilter { + /** Filters to entities where every related entity matches. */ + every?: ResourceFilter; + /** Filters to entities where no related entity matches. */ + none?: ResourceFilter; + /** Filters to entities where at least one related entity matches. */ + some?: ResourceFilter; } -export interface CreatePlatformFunctionInvocationAttemptInput { - clientMutationId?: string; - platformFunctionInvocationAttempt: { - actorId?: string; - attempt: number; - durationMs?: number; - error?: string; - errorDetail?: Record; - invocationCreatedAt: string; - invocationId: string; - startedAt?: string; - success: boolean; - taskIdentifier: string; - }; +/** A filter to be used against many `WebhookEvent` object types. All fields are combined with a logical ‘and.’ */ +export interface WebhookEndpointToManyWebhookEventFilter { + /** Filters to entities where every related entity matches. */ + every?: WebhookEventFilter; + /** Filters to entities where no related entity matches. */ + none?: WebhookEventFilter; + /** Filters to entities where at least one related entity matches. */ + some?: WebhookEventFilter; } -export interface PlatformFunctionInvocationAttemptPatch { - actorId?: string | null; - attempt?: number | null; - durationMs?: number | null; - error?: string | null; - errorDetail?: Record | null; - invocationCreatedAt?: string | null; - invocationId?: string | null; - startedAt?: string | null; - success?: boolean | null; - taskIdentifier?: string | null; +/** An input for mutations affecting `Build` */ +export interface BuildInput { + /** Authenticated actor this build is attributed to; NULL only when no human actor was proven */ + actorId?: string; + /** Retry attempt number for this workflow, commit, and matrix shard */ + attempt?: number; + /** Commit this build built */ + commitSha?: string; + /** Verdict: NULL while pending/running, then success, failure, neutral, cancelled, skipped, timed_out, or action_required */ + conclusion?: string; + createdAt?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Event that triggered this build (NULL for a manual build) */ + eventId?: string; + /** When the build reached a terminal status */ + finishedAt?: string; + id?: string; + /** Image reference this build produced (registry host/repository:tag; NULL when the build produced no image) */ + imageRef?: string; + /** app_jobs row running this build */ + jobId?: string; + /** Build log object in storage; step rows slice it by byte range */ + logs?: ConstructiveInternalTypeUpload; + /** Matrix shard identity; NULL for a non-matrix build */ + matrixKey?: string; + /** Build detail (step results, durations, failure reason) */ + metadata?: Record; + /** Proposal this build checks (NULL for builds not tied to a proposal) */ + proposalId?: string; + /** Ref this build built */ + ref?: string; + /** Repository this build is of */ + repositoryId: string; + /** When the build began running */ + startedAt?: string; + /** Lifecycle: pending, running, succeeded, failed, cancelled */ + status?: string; + updatedAt?: string; + updatedByPrincipal?: string; + /** Workflow whose firing produced this build (NULL for a manual build) */ + workflowId?: string; +} +/** An input for mutations affecting `BuildStep` */ +export interface BuildStepInput { + /** Build these results belong to */ + buildId: string; + /** Acting principal (agent, API key, or user) who created this record */ + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Process exit code of a step (NULL for a test result) */ + exitCode?: number; + /** When this step or test finished */ + finishedAt?: string; + /** Unique identifier (uuidv7 provides temporal ordering) */ + id?: string; + /** What this row is: step, or test */ + kind?: string; + /** Byte length of this row's output in the build log object */ + logBytes?: string; + /** Byte offset of this row's output in the build log object */ + logOffset?: string; + /** Step name, or the test's fully qualified name */ + name: string; + /** Sequence of the step that reported this test (NULL for a step itself) */ + parentSeq?: number; + /** When the result was recorded (partition key) */ + recordedAt?: string; + /** Position within the build, monotonically increasing across steps and their tests */ + seq: number; + /** When this step or test began */ + startedAt?: string; + /** Outcome: running, succeeded, failed, skipped, cancelled */ + status?: string; + /** Parsed detail: failure message, assertion diff, counts, annotations */ + summary?: Record; } -export interface UpdatePlatformFunctionInvocationAttemptInput { - clientMutationId?: string; - id: string; - platformFunctionInvocationAttemptPatch: PlatformFunctionInvocationAttemptPatch; +/** An input for mutations affecting `BuilderBinding` */ +export interface BuilderBindingInput { + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + id?: string; + /** BuildKit resource installation serving this binding; may belong to another resource scope */ + installationId: string; + /** Most recent projection failure */ + lastError?: string; + /** Reconciler detail (projection timestamps and diagnostics) */ + metadata?: Record; + /** Namespace whose builds use this BuildKit installation */ + namespaceId: string; + /** BuildKit address last projected into the namespace (NULL = never projected) */ + observedHost?: string; + /** Lane this binding applies to (NULL = the scope's default lane) */ + realm?: string; + /** Projection state of BUILDKIT_HOST: pending, active, failed */ + status?: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; } -export interface DeletePlatformFunctionInvocationAttemptInput { - clientMutationId?: string; - id: 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; } -export interface CreatePlatformFunctionInvocationInput { - clientMutationId?: string; - platformFunctionInvocation: { - actorId?: string; - apiBindingId?: string; - channel?: string; - completedAt?: string; - databaseId?: string; - definitionScope?: string; - durationMs?: number; - error?: string; - functionDefinitionId?: string; - graphExecutionId?: string; - jobId?: string; - parentInvocationId?: string; - payload?: Record; - provenance?: Record; - result?: Record; - startedAt?: string; - status?: string; - taskIdentifier: string; - }; +/** An input for mutations affecting `DatabaseFunctionGraphExecution` */ +export interface DatabaseFunctionGraphExecutionInput { + /** User actor propagated to asynchronous graph jobs */ + actorId?: string; + /** Execution completion timestamp */ + completedAt?: string; + /** Index into execution_plan — tick only processes this wave */ + currentWave?: number; + /** Database scope for multi-tenant isolation */ + databaseId: string; + /** Pinned definitions store commit for deterministic evaluation */ + definitionsCommitId?: string; + /** Entity context propagated to asynchronous graph jobs */ + entityId?: string; + /** Scope discriminator propagated to asynchronous graph jobs */ + entityType?: string; + /** Machine-readable error code when status = failed */ + errorCode?: string; + /** Human-readable error description when status = failed */ + errorMessage?: string; + /** Pre-computed topological sort as array of wave objects */ + executionPlan?: Record; + /** FK to the graph definition being executed */ + graphId: string; + /** Unique execution identifier */ + id?: string; + /** Initial inputs provided at invocation time */ + inputPayload?: Record; + /** Partition coordinate for the function invocation that launched this graph execution */ + invocationCreatedAt?: string; + /** Function invocation that launched this top-level graph execution */ + invocationId?: string; + /** Timestamp of the last real progress (node enqueue, node output, completion) — drives the activity-debounced watchdog */ + lastProgressAt?: string; + /** Maximum pending jobs before execution is failed (default 50) */ + maxPendingJobs?: number; + /** Maximum ticks before execution is failed (default 100) */ + maxTicks?: number; + /** Map of node_name → execution output id (content-addressed hash reference) */ + nodeOutputs?: Record; + /** Organization context propagated to asynchronous graph jobs */ + organizationId?: string; + /** Selected graphOutput portName values; NULL or empty returns all graph outputs */ + outputNames?: string[]; + /** Target output boundary node name to resolve; NULL derives completion from the graph's graphOutput nodes */ + outputNode?: string; + /** Final result extracted from terminal output node */ + outputPayload?: Record; + /** Target output port name (default: value) */ + outputPort?: string; + /** Parent execution when this is a sub-execution */ + parentExecutionId?: string; + /** Function invocation parent assigned to node invocations spawned by this execution */ + parentInvocationId?: string; + /** Node name in parent execution that spawned this sub-execution */ + parentNodeName?: string; + /** Principal identity propagated to asynchronous graph jobs */ + principalId?: string; + /** Execution start timestamp */ + startedAt?: string; + /** Lifecycle: pending → running → completed/failed/cancelled */ + status?: string; + /** Number of evaluate_step ticks executed */ + tickCount?: number; + /** Absolute deadline — execution fails if still running after this time */ + timeoutAt?: string; } -export interface PlatformFunctionInvocationPatch { - actorId?: string | null; - apiBindingId?: string | null; - channel?: string | null; - completedAt?: string | null; - databaseId?: string | null; - definitionScope?: string | null; - durationMs?: number | null; - error?: string | null; - functionDefinitionId?: string | null; - graphExecutionId?: string | null; - jobId?: string | null; - parentInvocationId?: string | null; - payload?: Record | null; - provenance?: Record | null; - result?: Record | null; - startedAt?: string | null; - status?: string | null; - taskIdentifier?: string | null; +/** An input for mutations affecting `DatabaseFunctionGraphExecutionNodeState` */ +export interface DatabaseFunctionGraphExecutionNodeStateInput { + /** Snapshot of the node's resolved inputs for resource-runtime nodes — served by the node gateway GET /inputs endpoint */ + callbackInputs?: Record; + /** Metering/attribution context stamped at resource dispatch (namespace_id, task_identifier, entity_id, scope, resource identity, dispatched_at, attempt) — lets the node gateway settle and attribute without extra lookups */ + callbackMeta?: Record; + /** SHA-256 hex digest of the node callback token — set for resource-runtime nodes so the node gateway can authenticate result/error/heartbeat callbacks */ + callbackTokenHash?: string; + /** Timestamp when the node finished (success or failure) */ + completedAt?: string; + /** Timestamp of node state creation (partition key) */ + createdAt?: string; + /** Database scope for multi-tenant isolation */ + databaseId: string; + /** Machine-readable error code when status = failed */ + errorCode?: string; + /** Human-readable error description when status = failed */ + errorMessage?: string; + /** FK to the parent graph execution */ + executionId: string; + /** Declared output applied by the default_answer expiry policy */ + expiryDefaultOutput?: Record; + /** When the escalate expiry policy fired — guards the one-time extension */ + expiryEscalatedAt?: string; + /** Declared expiry behaviour when waiting_deadline_at passes unanswered: fail (fail the execution), default_answer (settle with expiry_default_output), or escalate (notify and extend once) */ + expiryPolicy?: string; + /** Unique node state identifier */ + id?: string; + /** Name of the node within the graph (e.g. send-email1) */ + nodeName: string; + /** Full merkle tree path to this node (e.g. {function,graphs,myflow,nodes,send-email1}) — enables subnet hierarchy tracking */ + nodePath?: string[]; + /** FK to execution_outputs — content-addressed output blob for this node */ + outputId?: string; + /** Timestamp when the node began executing */ + startedAt?: string; + /** Node lifecycle: pending → queued → running → completed/failed/cancelled */ + status?: string; + /** When the declared expiry policy applies to the still-unanswered node */ + waitingDeadlineAt?: string; + /** What class of external reporter settles this node: human (a person answers) or external (webhook/adapter). NULL for nodes with an active workload */ + waitingOn?: string; + /** When the node parked awaiting its external report */ + waitingSince?: string; +} +/** An input for mutations affecting `DatabaseFunctionGraphExecutionOutput` */ +export interface DatabaseFunctionGraphExecutionOutputInput { + /** Timestamp of output creation */ + createdAt?: string; + /** The actual output payload from a completed node */ + data: Record; + /** Database scope for multi-tenant isolation */ + databaseId: string; + /** SHA-256 hash of the data JSONB — content-addressed deduplication */ + hash: Base64EncodedBinary; + /** Unique execution output identifier */ + id?: string; } -export interface UpdatePlatformFunctionInvocationInput { - clientMutationId?: string; - id: string; - platformFunctionInvocationPatch: PlatformFunctionInvocationPatch; +/** An input for mutations affecting `DatabaseGraphCommit` */ +export interface DatabaseGraphCommitInput { + /** User who authored the changes */ + authorId?: string; + /** User who committed (may differ from author) */ + committerId?: string; + /** Database scope for multi-tenant isolation */ + databaseId: string; + /** Commit timestamp */ + date?: string; + /** Unique commit identifier */ + id?: string; + /** Optional commit message */ + message?: string; + /** Parent commit IDs (supports merge commits) */ + parentIds?: string[]; + /** Store this commit belongs to */ + storeId: string; + /** Root object ID of the tree snapshot at this commit */ + treeId?: string; } -export interface DeletePlatformFunctionInvocationInput { - clientMutationId?: string; +/** An input for mutations affecting `DatabaseGraphObject` */ +export interface DatabaseGraphObjectInput { + /** Timestamp of object creation */ + createdAt?: string; + /** Payload data for this object node */ + data?: Record; + /** Database scope for multi-tenant isolation */ + databaseId: string; + /** Content-addressed UUID v5 — deterministic hash of (data, kids, ktree) */ id: string; + /** Ordered array of child object IDs */ + kids?: string[]; + /** Ordered array of child path names (parallel to kids) */ + ktree?: string[]; } -export interface CreatePlatformInfraCommitInput { - clientMutationId?: string; - platformInfraCommit: { - authorId?: string; - committerId?: string; - date?: string; - message?: string; - parentIds?: string[]; - scopeId: string; - storeId: string; - treeId?: string; - }; -} -export interface PlatformInfraCommitPatch { - authorId?: string | null; - committerId?: string | null; - date?: string | null; - message?: string | null; - parentIds?: string[] | null; - scopeId?: string | null; - storeId?: string | null; - treeId?: string | null; +/** An input for mutations affecting `DatabaseGraphRef` */ +export interface DatabaseGraphRefInput { + /** Commit this ref points to */ + commitId?: string; + /** Database scope for multi-tenant isolation */ + databaseId: string; + /** Unique ref identifier */ + id?: string; + /** Ref name (e.g. HEAD, main) */ + name: string; + /** Store this ref belongs to */ + storeId: string; } -export interface UpdatePlatformInfraCommitInput { - clientMutationId?: string; - id: string; - platformInfraCommitPatch: PlatformInfraCommitPatch; +/** An input for mutations affecting `DatabaseGraphStore` */ +export interface DatabaseGraphStoreInput { + /** Timestamp of store creation */ + createdAt?: string; + /** Database scope for multi-tenant isolation */ + databaseId: string; + /** Current root object hash of this store */ + hash?: string; + /** Unique store identifier */ + id?: string; + /** Human-readable store name */ + name: string; } -export interface DeletePlatformInfraCommitInput { - clientMutationId?: string; - id: string; +/** An input for mutations affecting `DbPreset` */ +export interface DbPresetInput { + /** Whether this preset is selectable for new databases */ + 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; + /** Preset definition (modules + options) — 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; + /** Human-readable preset name */ + label?: string; + /** Content-address of definition->modules via metaschema_private.modules_hash (stamped by the versioned trigger); fast exact-match lookup key for provisioning requests */ + modulesHash?: string; + /** Preset slug (unique per scope); the preset's path in the infra tree is [db_preset, 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 CreatePlatformInfraGetAllTreeNodesRecordInput { - clientMutationId?: string; - platformInfraGetAllTreeNodesRecord: { - data?: Record; - path?: string[]; - }; +/** An input for mutations affecting `FunctionApiBinding` */ +export interface FunctionApiBindingInput { + /** Binding alias (e.g. default, staging, production) */ + alias?: string; + /** API endpoint this function is bound to */ + apiId: string; + /** Per-binding configuration (overrides, routing rules, etc.) */ + config?: Record; + createdAt?: string; + /** Function definition this binding belongs to */ + functionDefinitionId: string; + id?: string; + updatedAt?: string; } -export interface PlatformInfraGetAllTreeNodesRecordPatch { - data?: Record | null; - path?: string[] | null; +/** An input for mutations affecting `FunctionCapabilityBinding` */ +export interface FunctionCapabilityBindingInput { + /** Bucket this capability targets (exactly one typed target is set) */ + bucketId?: string; + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Function definition holding this capability (exactly one of function_id / graph_id is set) */ + functionId?: string; + /** Flow graph holding this capability (exactly one of function_id / graph_id is set) */ + graphId?: string; + id?: string; + /** Runtime handle the holder addresses this capability by (e.g. default, scratch) */ + key?: string; + /** Lifecycle the capability applies to: deployment (build/deploy time), execution (per invocation), root_execution (root of a graph execution tree) */ + lifecycle: string; + /** Per-binding annotations (no runtime semantics) */ + metadata?: Record; + updatedAt?: string; } -export interface UpdatePlatformInfraGetAllTreeNodesRecordInput { - clientMutationId?: string; - id: string; - platformInfraGetAllTreeNodesRecordPatch: PlatformInfraGetAllTreeNodesRecordPatch; +/** An input for mutations affecting `FunctionDefinition` */ +export interface FunctionDefinitionInput { + /** 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 this function consents to run for a caller with no identity (a sign-in surface, a public page). Anonymous execution additionally requires the matched route to declare anonymous access. Default false = an identity is required. */ + anonymousCallable?: boolean; + /** Function task category (e.g. email, embed, chunk, custom) */ + category: string; + /** Knative containerConcurrency — max concurrent requests per pod instance */ + concurrency?: number; + createdAt?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Human-readable description of what this function does */ + description?: string; + /** Palette grouping category (e.g. email, data, ai, custom) */ + fnCategory?: string; + /** Ordered array of module_table column names holding the generated function names to invoke when runtime=sql (module mode). NULL for direct mode and other runtimes. */ + functionColumns?: Record; + /** Existing flow graph invoked when runtime=graph. Required for graph runtime and forbidden for all other runtimes. */ + graphId?: string; + /** Icon identifier for UI palette rendering (e.g. mail, database, code) */ + icon?: string; + id?: string; + /** Docker image reference (e.g. ghcr.io/constructive-io/email-send-fn:latest). Required when runtime=http or runtime=resource. NULL for inline functions. */ + image?: string; + /** Data input ports: [{name, type, description?, optional?, multi?, schema?}] */ + inputs?: Record; + /** Provider slugs (e.g. mailgun, postgres) associated with this function. The UI uses this to auto-fill required_secrets and required_configs from integration_providers. */ + integrations?: string[]; + /** Whether this function definition is published to the public catalog for direct authenticated invocation. Default false = internal-only via add_job() */ + isPublished?: boolean; + /** Maximum retry attempts for the underlying job */ + maxAttempts?: number; + /** metaschema_modules_public table whose per-database row carries the generated function names when runtime=sql (module mode). NULL for direct mode and other runtimes. */ + moduleTable?: string; + /** Function name within category (e.g. send_verification_link, process_file_embedding) */ + name: string; + /** Data output ports: [{name, type, description?, optional?, multi?, schema?}] */ + outputs?: Record; + /** Ordered bind-parameter mapping for runtime=sql: [{name, type}]. payload[name] is bound as $n::type. */ + payloadArgs?: Record; + /** Job priority (lower = higher priority) */ + priority?: number; + /** Configuration properties: [{name, type, default?, description?, required?, schema?}] */ + props?: Record; + /** Protected platform definition: narrower scopes cannot register the same task_identifier */ + protected?: boolean; + /** Timestamp when this function was published. NULL means immediately published when is_published is true; future timestamps delay public visibility */ + publishedAt?: string; + /** Job queue name for serialization (e.g. email, ai, default) */ + queueName?: string; + /** 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[]; + /** Capability providers the handler declared in handler.json requires.capabilities, as an array of {name, version, declaration}. NULL when the handler declares none, which mounts the full platform set. */ + requiredCapabilities?: Record; + /** 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}} */ + resources?: Record; + /** Execution mode: http (Knative Service dispatch), inline (in-process in compute worker), handler (registered infrastructure handler), sql (generic SQL dispatch via a trusted direct target or module-resolved function names), resource (Kubernetes Job via the resource module with node-gateway callbacks), graph (existing flow graph referenced by graph_id), or human (parks the node awaiting a person's answer through approve_node) */ + runtime?: string; + /** Maximum pod count for Knative autoscaling (maxScale) */ + scaleMax?: number; + /** Minimum pod count for Knative autoscaling (minScale) */ + scaleMin?: number; + /** Name of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. */ + targetFunction?: string; + /** Schema of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. */ + targetSchema?: string; + /** Knative request timeout in seconds */ + timeoutSeconds?: number; + updatedAt?: string; + updatedByPrincipal?: string; + /** Whether this function has side effects and cannot be cached or memoized */ + volatile?: boolean; } -export interface DeletePlatformInfraGetAllTreeNodesRecordInput { - clientMutationId?: string; - id: string; +/** An input for mutations affecting `ResourceRequirement` */ +export interface ResourceRequirementInput { + name?: string; + provider?: string; + required?: boolean; } -export interface CreatePlatformInfraObjectInput { - clientMutationId?: string; - platformInfraObject: { - data?: Record; - kids?: string[]; - ktree?: string[]; - scopeId: string; - }; +/** An input for mutations affecting `FunctionDeployment` */ +export interface FunctionDeploymentInput { + /** Freeform metadata for tooling and operational notes */ + annotations?: Record; + /** Max concurrent requests per pod (NULL = inherit from definition) */ + concurrency?: number; + createdAt?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Cumulative error count for this deployment */ + errorCount?: number; + /** Handler directory name (e.g. email, document) — used as FN_HANDLER_NAME in combined-image mode to select the entry point */ + handlerName?: string; + id?: string; + /** Logical image name — the handler identity and grouping key (e.g. fn-email). No registry host or tag; tag lives in image_version. */ + image: string; + /** Image tag/version for the handler container (e.g. latest, 2.6.4) */ + imageVersion?: string; + /** Key/value pairs for selecting and filtering deployments */ + labels?: Record; + /** Most recent provisioning or runtime error message */ + lastError?: string; + /** Timestamp of the most recent error */ + 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) */ + revision?: number; + /** Maximum replica count (NULL = inherit from definition or Knative default) */ + scaleMax?: number; + /** Minimum replica count (NULL = inherit from definition or Knative default) */ + scaleMin?: number; + /** Knative service name — a randomly minted cute name (unique_names.generate_name() + random hex suffix) assigned by the service_url trigger; unique per namespace, not derived from the image */ + serviceName?: string; + /** Knative service URL (http://{service-name}.{namespace}.svc.cluster.local) — populated after provisioning */ + serviceUrl?: string; + /** Deployment lifecycle status: pending, provisioning, active, failed, scaled_to_zero, deactivated */ + status?: string; + /** Request timeout override in seconds (NULL = inherit from definition) */ + timeoutSeconds?: number; + updatedAt?: string; + updatedByPrincipal?: string; } -export interface PlatformInfraObjectPatch { - data?: Record | null; - kids?: string[] | null; - ktree?: string[] | null; - scopeId?: string | null; +/** An input for mutations affecting `FunctionDeploymentEvent` */ +export interface FunctionDeploymentEventInput { + /** User who triggered this event; NULL only when no human actor was proven */ + actorId?: string; + /** Event timestamp (partition key) */ + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Deployment this event belongs to */ + deploymentId: string; + /** Event type: provisioned, scaled, failed, deactivated, redeployed, health_check */ + eventType: string; + /** Unique event identifier */ + id?: string; + /** Human-readable description of the event */ + message?: string; + /** Structured context (old/new values, error details, etc.) */ + metadata?: Record; } -export interface UpdatePlatformInfraObjectInput { - clientMutationId?: string; - id: string; - platformInfraObjectPatch: PlatformInfraObjectPatch; +/** An input for mutations affecting `FunctionExecutionLog` */ +export interface FunctionExecutionLogInput { + /** User who triggered the execution; NULL only when no human actor was proven */ + actorId?: string; + /** Log entry timestamp (partition key) */ + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Unique log entry identifier */ + id?: string; + /** Invocation this log entry belongs to (NULL for standalone job logs) */ + invocationId?: string; + /** Log severity: debug, info, warn, error */ + logLevel?: string; + /** Log message text */ + message: string; + /** Structured context (labels, trace data, extra fields) */ + metadata?: Record; + /** Function routing key (NULL for generic job logs) */ + taskIdentifier?: string; } -export interface DeletePlatformInfraObjectInput { - clientMutationId?: string; - id: string; +/** An input for mutations affecting `FunctionGraphCommit` */ +export interface FunctionGraphCommitInput { + /** User who authored the changes */ + authorId?: string; + /** User who committed (may differ from author) */ + committerId?: string; + /** Commit timestamp */ + date?: string; + /** Unique commit identifier */ + id?: string; + /** Optional commit message */ + message?: string; + /** Parent commit IDs (supports merge commits) */ + parentIds?: string[]; + /** Opaque store partition key for the global tier */ + scopeId: string; + /** Store this commit belongs to */ + storeId: string; + /** Root object ID of the tree snapshot at this commit */ + treeId?: string; } -export interface CreatePlatformInfraRefInput { - clientMutationId?: string; - platformInfraRef: { - commitId?: string; - name: string; - scopeId: string; - storeId: string; - }; +/** An input for mutations affecting `FunctionGraphExecution` */ +export interface FunctionGraphExecutionInput { + /** User actor propagated to asynchronous graph jobs */ + actorId?: string; + /** Execution completion timestamp */ + completedAt?: string; + /** Index into execution_plan — tick only processes this wave */ + currentWave?: number; + /** Pinned definitions store commit for deterministic evaluation */ + definitionsCommitId?: string; + /** Entity context propagated to asynchronous graph jobs */ + entityId?: string; + /** Scope discriminator propagated to asynchronous graph jobs */ + entityType?: string; + /** Machine-readable error code when status = failed */ + errorCode?: string; + /** Human-readable error description when status = failed */ + errorMessage?: string; + /** Pre-computed topological sort as array of wave objects */ + executionPlan?: Record; + /** FK to the graph definition being executed */ + graphId: string; + /** Unique execution identifier */ + id?: string; + /** Initial inputs provided at invocation time */ + inputPayload?: Record; + /** Partition coordinate for the function invocation that launched this graph execution */ + invocationCreatedAt?: string; + /** Function invocation that launched this top-level graph execution */ + invocationId?: string; + /** Timestamp of the last real progress (node enqueue, node output, completion) — drives the activity-debounced watchdog */ + lastProgressAt?: string; + /** Maximum pending jobs before execution is failed (default 50) */ + maxPendingJobs?: number; + /** Maximum ticks before execution is failed (default 100) */ + maxTicks?: number; + /** Map of node_name → execution output id (content-addressed hash reference) */ + nodeOutputs?: Record; + /** Organization context propagated to asynchronous graph jobs */ + organizationId?: string; + /** Selected graphOutput portName values; NULL or empty returns all graph outputs */ + outputNames?: string[]; + /** Target output boundary node name to resolve; NULL derives completion from the graph's graphOutput nodes */ + outputNode?: string; + /** Final result extracted from terminal output node */ + outputPayload?: Record; + /** Target output port name (default: value) */ + outputPort?: string; + /** Parent execution when this is a sub-execution */ + parentExecutionId?: string; + /** Function invocation parent assigned to node invocations spawned by this execution */ + parentInvocationId?: string; + /** Node name in parent execution that spawned this sub-execution */ + parentNodeName?: string; + /** Principal identity propagated to asynchronous graph jobs */ + principalId?: string; + /** Opaque store partition key for the global tier */ + scopeId: string; + /** Execution start timestamp */ + startedAt?: string; + /** Lifecycle: pending → running → completed/failed/cancelled */ + status?: string; + /** Number of evaluate_step ticks executed */ + tickCount?: number; + /** Absolute deadline — execution fails if still running after this time */ + timeoutAt?: string; } -export interface PlatformInfraRefPatch { - commitId?: string | null; - name?: string | null; - scopeId?: string | null; - storeId?: string | null; +/** An input for mutations affecting `FunctionGraphExecutionNodeState` */ +export interface FunctionGraphExecutionNodeStateInput { + /** Snapshot of the node's resolved inputs for resource-runtime nodes — served by the node gateway GET /inputs endpoint */ + callbackInputs?: Record; + /** Metering/attribution context stamped at resource dispatch (namespace_id, task_identifier, entity_id, scope, resource identity, dispatched_at, attempt) — lets the node gateway settle and attribute without extra lookups */ + callbackMeta?: Record; + /** SHA-256 hex digest of the node callback token — set for resource-runtime nodes so the node gateway can authenticate result/error/heartbeat callbacks */ + callbackTokenHash?: string; + /** Timestamp when the node finished (success or failure) */ + completedAt?: string; + /** Timestamp of node state creation (partition key) */ + createdAt?: string; + /** Machine-readable error code when status = failed */ + errorCode?: string; + /** Human-readable error description when status = failed */ + errorMessage?: string; + /** FK to the parent graph execution */ + executionId: string; + /** Declared output applied by the default_answer expiry policy */ + expiryDefaultOutput?: Record; + /** When the escalate expiry policy fired — guards the one-time extension */ + expiryEscalatedAt?: string; + /** Declared expiry behaviour when waiting_deadline_at passes unanswered: fail (fail the execution), default_answer (settle with expiry_default_output), or escalate (notify and extend once) */ + expiryPolicy?: string; + /** Unique node state identifier */ + id?: string; + /** Name of the node within the graph (e.g. send-email1) */ + nodeName: string; + /** Full merkle tree path to this node (e.g. {function,graphs,myflow,nodes,send-email1}) — enables subnet hierarchy tracking */ + nodePath?: string[]; + /** FK to execution_outputs — content-addressed output blob for this node */ + outputId?: string; + /** Opaque store partition key for the global tier */ + scopeId: string; + /** Timestamp when the node began executing */ + startedAt?: string; + /** Node lifecycle: pending → queued → running → completed/failed/cancelled */ + status?: string; + /** When the declared expiry policy applies to the still-unanswered node */ + waitingDeadlineAt?: string; + /** What class of external reporter settles this node: human (a person answers) or external (webhook/adapter). NULL for nodes with an active workload */ + waitingOn?: string; + /** When the node parked awaiting its external report */ + waitingSince?: string; } -export interface UpdatePlatformInfraRefInput { - clientMutationId?: string; - id: string; - platformInfraRefPatch: PlatformInfraRefPatch; +/** An input for mutations affecting `FunctionGraphExecutionOutput` */ +export interface FunctionGraphExecutionOutputInput { + /** Timestamp of output creation */ + createdAt?: string; + /** The actual output payload from a completed node */ + data: Record; + /** SHA-256 hash of the data JSONB — content-addressed deduplication */ + hash: Base64EncodedBinary; + /** Unique execution output identifier */ + id?: string; + /** Opaque store partition key for the global tier */ + scopeId: string; } -export interface DeletePlatformInfraRefInput { - clientMutationId?: string; +/** An input for mutations affecting `FunctionGraphObject` */ +export interface FunctionGraphObjectInput { + /** Timestamp of object creation */ + createdAt?: string; + /** Payload data for this object node */ + data?: Record; + /** Content-addressed UUID v5 — deterministic hash of (data, kids, ktree) */ id: string; + /** Ordered array of child object IDs */ + kids?: string[]; + /** Ordered array of child path names (parallel to kids) */ + ktree?: string[]; + /** Opaque store partition key for the global tier */ + scopeId: string; } -export interface CreatePlatformInfraStoreInput { - clientMutationId?: string; - platformInfraStore: { - hash?: string; - name: string; - scopeId: string; - }; +/** An input for mutations affecting `FunctionGraphRef` */ +export interface FunctionGraphRefInput { + /** Commit this ref points to */ + commitId?: string; + /** Unique ref identifier */ + id?: string; + /** Ref name (e.g. HEAD, main) */ + name: string; + /** Opaque store partition key for the global tier */ + scopeId: string; + /** Store this ref belongs to */ + storeId: string; } -export interface PlatformInfraStorePatch { - hash?: string | null; - name?: string | null; - scopeId?: string | null; +/** An input for mutations affecting `FunctionGraphStore` */ +export interface FunctionGraphStoreInput { + /** Timestamp of store creation */ + createdAt?: string; + /** Current root object hash of this store */ + hash?: string; + /** Unique store identifier */ + id?: string; + /** Human-readable store name */ + name: string; + /** Opaque store partition key for the global tier */ + scopeId: string; } -export interface UpdatePlatformInfraStoreInput { - clientMutationId?: string; - id: string; - platformInfraStorePatch: PlatformInfraStorePatch; +/** An input for mutations affecting `FunctionInvocationAttempt` */ +export interface FunctionInvocationAttemptInput { + /** Who triggered the invocation; NULL only when no human actor was proven */ + actorId?: string; + /** 1-based attempt number for this invocation */ + attempt: number; + /** When the attempt result was recorded (partition key) */ + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Wall-clock attempt time in milliseconds */ + durationMs?: number; + /** Error message when the attempt failed */ + error?: string; + /** Structured error context (stack, code, provider response) */ + errorDetail?: Record; + /** Unique attempt identifier */ + id?: string; + /** created_at of the referenced invocation (partition-pruned lookups against the invocations PK) */ + invocationCreatedAt: string; + /** Invocation this attempt belongs to (soft reference paired with invocation_created_at) */ + invocationId: string; + /** When the attempt began executing */ + startedAt?: string; + /** Whether this attempt completed successfully */ + success: boolean; + /** Function routing slug (denormalized from the invocation) */ + taskIdentifier: string; } -export interface DeletePlatformInfraStoreInput { - clientMutationId?: string; - id: string; +/** An input for mutations affecting `FunctionInvocation` */ +export interface FunctionInvocationInput { + /** Who triggered the invocation; NULL only when no human actor was proven */ + actorId?: string; + /** API binding this invocation arrived through (NULL for cron/graph/system/worker paths) */ + apiBindingId?: string; + /** Invocation trigger channel: api, graph, cron, sync, webhook, trigger, or worker */ + channel: string; + /** When execution completed */ + completedAt?: string; + /** Invocation creation timestamp (partition key) */ + createdAt?: string; + /** Acting principal (agent, API key, or user) who created this record */ + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Scope that owns function_definition_id (e.g. app/org/database/platform) — the per-scope definitions table the resolver selected */ + definitionScope?: string; + /** Wall-clock execution time in milliseconds */ + durationMs?: number; + /** Entity identity propagated with the invocation */ + entityId?: string; + /** Entity type propagated with the invocation */ + entityType?: string; + /** Error message when status is failed, or the reason the run was skipped when status is skipped */ + error?: string; + /** Function definition this invocation ran (soft cross-scope ref; paired with definition_scope). task_identifier stays as the audit slug. */ + functionDefinitionId?: string; + /** Groups all node invocations from a single flow graph execution */ + graphExecutionId?: string; + /** Unique invocation identifier */ + id?: string; + /** FK to app_jobs.jobs — the underlying transport */ + jobId?: string; + /** Organization identity propagated with the invocation */ + organizationId?: string; + /** Parent invocation when this is a child node of a flow graph execution */ + parentInvocationId?: string; + /** Function input payload */ + payload?: Record; + /** Principal identity that triggered the invocation */ + principalId?: string; + /** Non-secret channel-specific invocation provenance (route/binding/event identifiers only) */ + provenance?: Record; + /** Function return value (success) or structured error (failure) */ + result?: Record; + /** When execution started */ + startedAt?: string; + /** Lifecycle: pending → running → completed/failed/cancelled; skipped = never ran (a gate rejected the intended run) */ + status?: string; + /** Function routing slug (category:name). Denormalized from the definition — must match the row referenced by function_definition_id when that is set. */ + taskIdentifier: string; } -export interface CreatePlatformNamespaceInput { - clientMutationId?: string; - platformNamespace: { - annotations?: Record; - description?: string; - isActive?: boolean; - isManaged?: boolean; - labels?: Record; - lastError?: string; - name: string; - namespaceName: string; - status?: string; - }; +/** An input for mutations affecting `Image` */ +export interface ImageInput { + createdAt?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Human-readable description of what this image runs */ + description?: string; + /** Content address (sha256:...) pinning this image, when known */ + digest?: string; + /** When this catalog row becomes eligible for retention cleanup (NULL = kept forever) */ + expiresAt?: string; + id?: string; + /** Whether this image is published for use by any scope */ + isPublished?: boolean; + /** Labels for selecting images (architecture, capabilities, lane) */ + labels?: Record; + /** Freeform metadata (build provenance, source repository, SBOM pointer) */ + metadata?: Record; + /** Human-readable image name (e.g. node-runtime) */ + name: string; + /** User who registered this catalog row */ + ownerId?: string; + /** Whether this image is reserved for platform-internal use */ + platformOnly?: boolean; + /** Registry host serving this image (NULL means the platform default registry) */ + registryHost?: string; + /** Repository path within the registry (e.g. constructiveio/worker) */ + repository: string; + /** Runtime this image implements (e.g. nodejs, python, custom) */ + runtime?: string; + /** Mutable tag this row addresses */ + tag?: string; + updatedAt?: string; + updatedByPrincipal?: string; } -export interface PlatformNamespacePatch { - annotations?: Record | null; - description?: string | null; - isActive?: boolean | null; - isManaged?: boolean | null; - labels?: Record | null; - lastError?: string | null; - name?: string | null; - namespaceName?: string | null; - status?: string | null; +/** An input for mutations affecting `ImageGrant` */ +export interface ImageGrantInput { + /** Registry actions this grant allows (pull, push, delete) */ + actions?: string[]; + createdAt?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** When this grant stops applying (NULL never expires) */ + expiresAt?: string; + /** User who issued this grant */ + grantedBy?: string; + /** Scope key of the grantee (a database_id or an entity_id) */ + granteeKey: string; + /** Scope tier of the grantee (database, org, app, platform) */ + granteeScope: string; + id?: string; + /** Catalog image this grant applies to */ + imageId: string; + updatedAt?: string; + updatedByPrincipal?: string; } -export interface UpdatePlatformNamespaceInput { - clientMutationId?: string; - id: string; - platformNamespacePatch: PlatformNamespacePatch; +/** An input for mutations affecting `InfraCommit` */ +export interface InfraCommitInput { + /** User who authored the changes */ + authorId?: string; + /** User who committed (may differ from author) */ + committerId?: string; + /** Database scope for multi-tenant isolation */ + databaseId: string; + /** Commit timestamp */ + date?: string; + /** Unique commit identifier */ + id?: string; + /** Optional commit message */ + message?: string; + /** Parent commit IDs (supports merge commits) */ + parentIds?: string[]; + /** Store this commit belongs to */ + storeId: string; + /** Root object ID of the tree snapshot at this commit */ + treeId?: string; } -export interface DeletePlatformNamespaceInput { - clientMutationId?: string; +/** An input for mutations affecting `InfraObject` */ +export interface InfraObjectInput { + /** Timestamp of object creation */ + createdAt?: string; + /** Payload data for this object node */ + data?: Record; + /** Database scope for multi-tenant isolation */ + databaseId: string; + /** Content-addressed UUID v5 — deterministic hash of (data, kids, ktree) */ id: string; + /** Ordered array of child object IDs */ + kids?: string[]; + /** Ordered array of child path names (parallel to kids) */ + ktree?: string[]; } -export interface CreatePlatformNamespaceEventInput { - clientMutationId?: string; - platformNamespaceEvent: { - actorId?: string; - eventType: string; - message?: string; - metadata?: Record; - namespaceId: string; - }; -} -export interface PlatformNamespaceEventPatch { - actorId?: string | null; - eventType?: string | null; - message?: string | null; - metadata?: Record | null; - namespaceId?: string | null; +/** An input for mutations affecting `InfraRef` */ +export interface InfraRefInput { + /** Commit this ref points to */ + commitId?: string; + /** Database scope for multi-tenant isolation */ + databaseId: string; + /** Unique ref identifier */ + id?: string; + /** Ref name (e.g. HEAD, main) */ + name: string; + /** Store this ref belongs to */ + storeId: string; } -export interface UpdatePlatformNamespaceEventInput { - clientMutationId?: string; - id: string; - platformNamespaceEventPatch: PlatformNamespaceEventPatch; +/** An input for mutations affecting `InfraStore` */ +export interface InfraStoreInput { + /** Timestamp of store creation */ + createdAt?: string; + /** Database scope for multi-tenant isolation */ + databaseId: string; + /** Current root object hash of this store */ + hash?: string; + /** Unique store identifier */ + id?: string; + /** Human-readable store name */ + name: string; } -export interface DeletePlatformNamespaceEventInput { - clientMutationId?: string; - id: string; +/** An input for mutations affecting `IntegrationProvider` */ +export interface IntegrationProviderInput { + /** Brand metadata: colors, fonts, and other provider-specific styling. Not a foreign key. */ + brand?: Record; + /** Browser category (e.g. email, database, storage, ai, analytics) */ + category?: string; + createdAt?: string; + /** Short description of what this integration provides and when to use it */ + description?: string; + /** Icon identifier for the UI (e.g. mail, database, cloud) */ + icon?: string; + id?: string; + /** Provider logo as an image domain value (url, id, key, bucket, provider) */ + logo?: ConstructiveInternalTypeImage; + /** Human-readable brand name (e.g. 'Mailgun', 'PostgreSQL') */ + name: string; + /** Canonical config requirements for this provider: array of (name, required, provider) tuples. Used by the UI to auto-fill function/resource required_configs. */ + requiredConfigs?: ResourceRequirementInput[]; + /** Canonical secret requirements for this provider: array of (name, required, provider) tuples. Used by the UI to auto-fill function/resource required_secrets. */ + requiredSecrets?: ResourceRequirementInput[]; + /** Stable URL-safe identifier for the provider. Other tables match by this string, not by FK. */ + slug: string; + updatedAt?: string; } -export interface CreatePlatformResourceInput { - clientMutationId?: string; - platformResource: { - annotations?: Record; - createdBy?: string; - errorCount?: number; - installationId?: string; - integrations?: string[]; - kind: string; - labels?: Record; - lastError?: string; - lastHeartbeatAt?: string; - name: string; - namespaceId: string; - realm?: string; - requiredConfigs?: ResourceRequirementInput[]; - requiredSecrets?: ResourceRequirementInput[]; - resourceDefinitionId?: string; - slug: string; - spec?: Record; - status?: string; - statusObserved?: Record; - updatedBy?: string; - }; +/** An input for mutations affecting `Namespace` */ +export interface NamespaceInput { + /** Freeform metadata for tooling and operational notes */ + annotations?: Record; + /** Cluster this namespace is projected onto; NULL = the cluster the reconciler runs in */ + clusterId?: string; + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Optional human-readable description of this namespace */ + description?: string; + id?: string; + /** Whether this namespace is active (soft-disable for filtering) */ + isActive?: boolean; + /** true = provisioned by the platform via jobs, false = unmanaged/platform-native (bootstrapped externally) */ + isManaged?: boolean; + /** Key/value pairs for selecting and filtering namespaces */ + labels?: Record; + /** Most recent provisioning or reconcile error message */ + lastError?: string; + /** Human-readable namespace name (e.g. default, production, oauth) */ + name: string; + /** Globally unique computed namespace identifier via inflection.underscore */ + namespaceName: string; + /** Namespace provisioning lifecycle status: pending, provisioning, active, failed */ + status?: string; + updatedAt?: string; } -export interface PlatformResourcePatch { - annotations?: Record | null; - createdBy?: string | null; - errorCount?: number | null; - installationId?: string | null; - integrations?: string[] | null; - kind?: string | null; - labels?: Record | null; - lastError?: string | null; - lastHeartbeatAt?: string | null; - name?: string | null; - namespaceId?: string | null; - realm?: string | null; - requiredConfigs?: ResourceRequirementInput[] | null; - requiredSecrets?: ResourceRequirementInput[] | null; - resourceDefinitionId?: string | null; - slug?: string | null; - spec?: Record | null; - status?: string | null; - statusObserved?: Record | null; - updatedBy?: string | null; +/** An input for mutations affecting `NamespaceEvent` */ +export interface NamespaceEventInput { + /** User who triggered this event; NULL only when no human actor was proven */ + actorId?: string; + /** Event timestamp (partition key) */ + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Event type: created, activated, deactivated, labels_updated, annotations_updated, renamed */ + eventType: string; + /** Unique event identifier */ + id?: string; + /** Human-readable description of the event */ + message?: string; + /** Structured context (old/new values, labels diff, etc.) */ + metadata?: Record; + /** Namespace this event belongs to */ + namespaceId: string; } -export interface UpdatePlatformResourceInput { - clientMutationId?: string; - id: string; - platformResourcePatch: PlatformResourcePatch; +/** An input for mutations affecting `PlatformBuild` */ +export interface PlatformBuildInput { + /** Authenticated actor this build is attributed to; NULL only when no human actor was proven */ + actorId?: string; + /** Retry attempt number for this workflow, commit, and matrix shard */ + attempt?: number; + /** Commit this build built */ + commitSha?: string; + /** Verdict: NULL while pending/running, then success, failure, neutral, cancelled, skipped, timed_out, or action_required */ + conclusion?: string; + createdAt?: string; + createdByPrincipal?: string; + /** Event that triggered this build (NULL for a manual build) */ + eventId?: string; + /** When the build reached a terminal status */ + finishedAt?: string; + id?: string; + /** Image reference this build produced (registry host/repository:tag; NULL when the build produced no image) */ + imageRef?: string; + /** app_jobs row running this build */ + jobId?: string; + /** Build log object in storage; step rows slice it by byte range */ + logs?: ConstructiveInternalTypeUpload; + /** Matrix shard identity; NULL for a non-matrix build */ + matrixKey?: string; + /** Build detail (step results, durations, failure reason) */ + metadata?: Record; + /** Proposal this build checks (NULL for builds not tied to a proposal) */ + proposalId?: string; + /** Ref this build built */ + ref?: string; + /** Repository this build is of */ + repositoryId: string; + /** When the build began running */ + startedAt?: string; + /** Lifecycle: pending, running, succeeded, failed, cancelled */ + status?: string; + updatedAt?: string; + updatedByPrincipal?: string; + /** Workflow whose firing produced this build (NULL for a manual build) */ + workflowId?: string; +} +/** An input for mutations affecting `PlatformBuildStep` */ +export interface PlatformBuildStepInput { + /** Build these results belong to */ + buildId: string; + /** Acting principal (agent, API key, or user) who created this record */ + createdByPrincipal?: string; + /** Process exit code of a step (NULL for a test result) */ + exitCode?: number; + /** When this step or test finished */ + finishedAt?: string; + /** Unique identifier (uuidv7 provides temporal ordering) */ + id?: string; + /** What this row is: step, or test */ + kind?: string; + /** Byte length of this row's output in the build log object */ + logBytes?: string; + /** Byte offset of this row's output in the build log object */ + logOffset?: string; + /** Step name, or the test's fully qualified name */ + name: string; + /** Sequence of the step that reported this test (NULL for a step itself) */ + parentSeq?: number; + /** When the result was recorded (partition key) */ + recordedAt?: string; + /** Position within the build, monotonically increasing across steps and their tests */ + seq: number; + /** When this step or test began */ + startedAt?: string; + /** Outcome: running, succeeded, failed, skipped, cancelled */ + status?: string; + /** Parsed detail: failure message, assertion diff, counts, annotations */ + summary?: Record; } -export interface DeletePlatformResourceInput { - clientMutationId?: string; - id: string; +/** An input for mutations affecting `PlatformBuilderBinding` */ +export interface PlatformBuilderBindingInput { + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + id?: string; + /** BuildKit resource installation serving this binding; may belong to another resource scope */ + installationId: string; + /** Most recent projection failure */ + lastError?: string; + /** Reconciler detail (projection timestamps and diagnostics) */ + metadata?: Record; + /** Namespace whose builds use this BuildKit installation */ + namespaceId: string; + /** BuildKit address last projected into the namespace (NULL = never projected) */ + observedHost?: string; + /** Lane this binding applies to (NULL = the scope's default lane) */ + realm?: string; + /** Projection state of BUILDKIT_HOST: pending, active, failed */ + status?: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; } -export interface CreatePlatformResourceDeclaredCapacityInput { - clientMutationId?: string; - platformResourceDeclaredCapacity: { - cpuLimitMillicores?: string; - cpuRequestMillicores?: string; - installationId: string; - isTransient?: boolean; - kind?: string; - memoryLimitBytes?: string; - memoryRequestBytes?: string; - namespaceId: string; - podCountMax?: number; - podCountMin?: number; - source?: string; - sourceId: string; - storageSizeBytes?: string; - }; +/** An input for mutations affecting `PlatformFunctionApiBinding` */ +export interface PlatformFunctionApiBindingInput { + /** Binding alias (e.g. default, staging, production) */ + alias?: string; + /** API endpoint this function is bound to */ + apiId: string; + /** Per-binding configuration (overrides, routing rules, etc.) */ + config?: Record; + createdAt?: string; + /** Function definition this binding belongs to */ + functionDefinitionId: string; + id?: string; + updatedAt?: string; } -export interface PlatformResourceDeclaredCapacityPatch { - cpuLimitMillicores?: string | null; - cpuRequestMillicores?: string | null; - installationId?: string | null; - isTransient?: boolean | null; - kind?: string | null; - memoryLimitBytes?: string | null; - memoryRequestBytes?: string | null; - namespaceId?: string | null; - podCountMax?: number | null; - podCountMin?: number | null; - source?: string | null; - sourceId?: string | null; - storageSizeBytes?: string | null; +/** An input for mutations affecting `PlatformFunctionCapabilityBinding` */ +export interface PlatformFunctionCapabilityBindingInput { + /** Bucket this capability targets (exactly one typed target is set) */ + bucketId?: string; + createdAt?: string; + /** Function definition holding this capability (exactly one of function_id / graph_id is set) */ + functionId?: string; + /** Flow graph holding this capability (exactly one of function_id / graph_id is set) */ + graphId?: string; + id?: string; + /** Runtime handle the holder addresses this capability by (e.g. default, scratch) */ + key?: string; + /** Lifecycle the capability applies to: deployment (build/deploy time), execution (per invocation), root_execution (root of a graph execution tree) */ + lifecycle: string; + /** Per-binding annotations (no runtime semantics) */ + metadata?: Record; + updatedAt?: string; } -export interface UpdatePlatformResourceDeclaredCapacityInput { - clientMutationId?: string; - id: string; - platformResourceDeclaredCapacityPatch: PlatformResourceDeclaredCapacityPatch; +/** An input for mutations affecting `PlatformFunctionDefinition` */ +export interface PlatformFunctionDefinitionInput { + /** 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 this function consents to run for a caller with no identity (a sign-in surface, a public page). Anonymous execution additionally requires the matched route to declare anonymous access. Default false = an identity is required. */ + anonymousCallable?: boolean; + /** Whether executions are metered through the invocation ledger and billing quota gate */ + billable?: boolean; + /** Function task category (e.g. email, embed, chunk, custom) */ + category: string; + /** Knative containerConcurrency — max concurrent requests per pod instance */ + concurrency?: number; + createdAt?: string; + createdByPrincipal?: string; + /** Human-readable description of what this function does */ + description?: string; + /** Palette grouping category (e.g. email, data, ai, custom) */ + fnCategory?: string; + /** Ordered array of module_table column names holding the generated function names to invoke when runtime=sql (module mode). NULL for direct mode and other runtimes. */ + functionColumns?: Record; + /** Existing flow graph invoked when runtime=graph. Required for graph runtime and forbidden for all other runtimes. */ + graphId?: string; + /** Icon identifier for UI palette rendering (e.g. mail, database, code) */ + icon?: string; + id?: string; + /** Docker image reference (e.g. ghcr.io/constructive-io/email-send-fn:latest). Required when runtime=http or runtime=resource. NULL for inline functions. */ + image?: string; + /** Data input ports: [{name, type, description?, optional?, multi?, schema?}] */ + inputs?: Record; + /** Provider slugs (e.g. mailgun, postgres) associated with this function. The UI uses this to auto-fill required_secrets and required_configs from integration_providers. */ + integrations?: string[]; + /** Whether this function definition is published to the public catalog for direct authenticated invocation. Default false = internal-only via add_job() */ + isPublished?: boolean; + /** Maximum retry attempts for the underlying job */ + maxAttempts?: number; + /** metaschema_modules_public table whose per-database row carries the generated function names when runtime=sql (module mode). NULL for direct mode and other runtimes. */ + moduleTable?: string; + /** Function name within category (e.g. send_verification_link, process_file_embedding) */ + name: string; + /** Data output ports: [{name, type, description?, optional?, multi?, schema?}] */ + outputs?: Record; + /** Ordered bind-parameter mapping for runtime=sql: [{name, type}]. payload[name] is bound as $n::type. */ + payloadArgs?: Record; + /** Job priority (lower = higher priority) */ + priority?: number; + /** Configuration properties: [{name, type, default?, description?, required?, schema?}] */ + props?: Record; + /** Protected platform definition: narrower scopes cannot register the same task_identifier */ + protected?: boolean; + /** Timestamp when this function was published. NULL means immediately published when is_published is true; future timestamps delay public visibility */ + publishedAt?: string; + /** Job queue name for serialization (e.g. email, ai, default) */ + queueName?: string; + /** 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[]; + /** Capability providers the handler declared in handler.json requires.capabilities, as an array of {name, version, declaration}. NULL when the handler declares none, which mounts the full platform set. */ + requiredCapabilities?: Record; + /** 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}} */ + resources?: Record; + /** Execution mode: http (Knative Service dispatch), inline (in-process in compute worker), handler (registered infrastructure handler), sql (generic SQL dispatch via a trusted direct target or module-resolved function names), resource (Kubernetes Job via the resource module with node-gateway callbacks), graph (existing flow graph referenced by graph_id), or human (parks the node awaiting a person's answer through approve_node) */ + runtime?: string; + /** Maximum pod count for Knative autoscaling (maxScale) */ + scaleMax?: number; + /** Minimum pod count for Knative autoscaling (minScale) */ + scaleMin?: number; + /** Platform system definition: its task_identifier cannot be shadowed by non-platform registration */ + system?: boolean; + /** Name of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. */ + targetFunction?: string; + /** Schema of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. */ + targetSchema?: string; + /** Knative request timeout in seconds */ + timeoutSeconds?: number; + updatedAt?: string; + updatedByPrincipal?: string; + /** Whether this function has side effects and cannot be cached or memoized */ + volatile?: boolean; } -export interface DeletePlatformResourceDeclaredCapacityInput { - clientMutationId?: string; - id: string; +/** An input for mutations affecting `PlatformFunctionDeployment` */ +export interface PlatformFunctionDeploymentInput { + /** Freeform metadata for tooling and operational notes */ + annotations?: Record; + /** Max concurrent requests per pod (NULL = inherit from definition) */ + concurrency?: number; + createdAt?: string; + createdByPrincipal?: string; + /** Cumulative error count for this deployment */ + errorCount?: number; + /** Handler directory name (e.g. email, document) — used as FN_HANDLER_NAME in combined-image mode to select the entry point */ + handlerName?: string; + id?: string; + /** Logical image name — the handler identity and grouping key (e.g. fn-email). No registry host or tag; tag lives in image_version. */ + image: string; + /** Image tag/version for the handler container (e.g. latest, 2.6.4) */ + imageVersion?: string; + /** Key/value pairs for selecting and filtering deployments */ + labels?: Record; + /** Most recent provisioning or runtime error message */ + lastError?: string; + /** Timestamp of the most recent error */ + 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) */ + revision?: number; + /** Maximum replica count (NULL = inherit from definition or Knative default) */ + scaleMax?: number; + /** Minimum replica count (NULL = inherit from definition or Knative default) */ + scaleMin?: number; + /** Knative service name — a randomly minted cute name (unique_names.generate_name() + random hex suffix) assigned by the service_url trigger; unique per namespace, not derived from the image */ + serviceName?: string; + /** Knative service URL (http://{service-name}.{namespace}.svc.cluster.local) — populated after provisioning */ + serviceUrl?: string; + /** Deployment lifecycle status: pending, provisioning, active, failed, scaled_to_zero, deactivated */ + status?: string; + /** Request timeout override in seconds (NULL = inherit from definition) */ + timeoutSeconds?: number; + updatedAt?: string; + updatedByPrincipal?: string; } -export interface CreatePlatformResourceDefinitionInput { - clientMutationId?: string; - platformResourceDefinition: { - annotations?: Record; - createdBy?: string; - defaultSpec?: Record; - description?: string; - integrations?: string[]; - kind: string; - labels?: Record; - name: string; - namespaceId: string; - paramsSchema?: Record; - requiredConfigs?: ResourceRequirementInput[]; - requiredSecrets?: ResourceRequirementInput[]; - slug: string; - stepUpMinAge?: IntervalInput; - updatedBy?: string; - }; +/** An input for mutations affecting `PlatformFunctionDeploymentEvent` */ +export interface PlatformFunctionDeploymentEventInput { + /** User who triggered this event; NULL only when no human actor was proven */ + actorId?: string; + /** Event timestamp (partition key) */ + createdAt?: string; + /** Deployment this event belongs to */ + deploymentId: string; + /** Event type: provisioned, scaled, failed, deactivated, redeployed, health_check */ + eventType: string; + /** Unique event identifier */ + id?: string; + /** Human-readable description of the event */ + message?: string; + /** Structured context (old/new values, error details, etc.) */ + metadata?: Record; } -export interface PlatformResourceDefinitionPatch { - annotations?: Record | null; - createdBy?: string | null; - defaultSpec?: Record | null; - description?: string | null; - integrations?: string[] | null; - kind?: string | null; - labels?: Record | null; - name?: string | null; - namespaceId?: string | null; - paramsSchema?: Record | null; - requiredConfigs?: ResourceRequirementInput[] | null; - requiredSecrets?: ResourceRequirementInput[] | null; - slug?: string | null; - stepUpMinAge?: IntervalInput | null; - updatedBy?: string | null; +/** An input for mutations affecting `PlatformFunctionExecutionLog` */ +export interface PlatformFunctionExecutionLogInput { + /** User who triggered the execution; NULL only when no human actor was proven */ + actorId?: string; + /** Log entry timestamp (partition key) */ + createdAt?: string; + /** Unique log entry identifier */ + id?: string; + /** Invocation this log entry belongs to (NULL for standalone job logs) */ + invocationId?: string; + /** Log severity: debug, info, warn, error */ + logLevel?: string; + /** Log message text */ + message: string; + /** Structured context (labels, trace data, extra fields) */ + metadata?: Record; + /** Function routing key (NULL for generic job logs) */ + taskIdentifier?: string; } -export interface UpdatePlatformResourceDefinitionInput { - clientMutationId?: string; - id: string; - platformResourceDefinitionPatch: PlatformResourceDefinitionPatch; +/** An input for mutations affecting `PlatformFunctionInvocationAttempt` */ +export interface PlatformFunctionInvocationAttemptInput { + /** Who triggered the invocation; NULL only when no human actor was proven */ + actorId?: string; + /** 1-based attempt number for this invocation */ + attempt: number; + /** When the attempt result was recorded (partition key) */ + createdAt?: string; + /** Wall-clock attempt time in milliseconds */ + durationMs?: number; + /** Error message when the attempt failed */ + error?: string; + /** Structured error context (stack, code, provider response) */ + errorDetail?: Record; + /** Unique attempt identifier */ + id?: string; + /** created_at of the referenced invocation (partition-pruned lookups against the invocations PK) */ + invocationCreatedAt: string; + /** Invocation this attempt belongs to (soft reference paired with invocation_created_at) */ + invocationId: string; + /** When the attempt began executing */ + startedAt?: string; + /** Whether this attempt completed successfully */ + success: boolean; + /** Function routing slug (denormalized from the invocation) */ + taskIdentifier: string; } -export interface DeletePlatformResourceDefinitionInput { - clientMutationId?: string; - id: string; +/** An input for mutations affecting `PlatformFunctionInvocation` */ +export interface PlatformFunctionInvocationInput { + /** Who triggered the invocation; NULL only when no human actor was proven */ + actorId?: string; + /** API binding this invocation arrived through (NULL for cron/graph/system/worker paths) */ + apiBindingId?: string; + /** Invocation trigger channel: api, graph, cron, sync, webhook, trigger, or worker */ + channel: string; + /** When execution completed */ + completedAt?: string; + /** Invocation creation timestamp (partition key) */ + createdAt?: string; + /** Acting principal (agent, API key, or user) who created this record */ + createdByPrincipal?: string; + /** Database this invocation is attributed to (usage/billing attribution) */ + databaseId?: string; + /** Scope that owns function_definition_id (e.g. app/org/database/platform) — the per-scope definitions table the resolver selected */ + definitionScope?: string; + /** Wall-clock execution time in milliseconds */ + durationMs?: number; + /** Entity identity propagated with the invocation */ + entityId?: string; + /** Entity type propagated with the invocation */ + entityType?: string; + /** Error message when status is failed, or the reason the run was skipped when status is skipped */ + error?: string; + /** Function definition this invocation ran (soft cross-scope ref; paired with definition_scope). task_identifier stays as the audit slug. */ + functionDefinitionId?: string; + /** Groups all node invocations from a single flow graph execution */ + graphExecutionId?: string; + /** Unique invocation identifier */ + id?: string; + /** FK to app_jobs.jobs — the underlying transport */ + jobId?: string; + /** Organization identity propagated with the invocation */ + organizationId?: string; + /** Parent invocation when this is a child node of a flow graph execution */ + parentInvocationId?: string; + /** Function input payload */ + payload?: Record; + /** Principal identity that triggered the invocation */ + principalId?: string; + /** Non-secret channel-specific invocation provenance (route/binding/event identifiers only) */ + provenance?: Record; + /** Function return value (success) or structured error (failure) */ + result?: Record; + /** When execution started */ + startedAt?: string; + /** Lifecycle: pending → running → completed/failed/cancelled; skipped = never ran (a gate rejected the intended run) */ + status?: string; + /** Function routing slug (category:name). Denormalized from the definition — must match the row referenced by function_definition_id when that is set. */ + taskIdentifier: string; } -export interface CreatePlatformResourceEventInput { - clientMutationId?: string; - platformResourceEvent: { - actorId?: string; - eventType: string; - message?: string; - metadata?: Record; - resourceId: string; - }; +/** An input for mutations affecting `PlatformImage` */ +export interface PlatformImageInput { + createdAt?: string; + createdByPrincipal?: string; + /** Human-readable description of what this image runs */ + description?: string; + /** Content address (sha256:...) pinning this image, when known */ + digest?: string; + /** When this catalog row becomes eligible for retention cleanup (NULL = kept forever) */ + expiresAt?: string; + id?: string; + /** Whether this image is published for use by any scope */ + isPublished?: boolean; + /** Labels for selecting images (architecture, capabilities, lane) */ + labels?: Record; + /** Freeform metadata (build provenance, source repository, SBOM pointer) */ + metadata?: Record; + /** Human-readable image name (e.g. node-runtime) */ + name: string; + /** User who registered this catalog row */ + ownerId?: string; + /** Whether this image is reserved for platform-internal use */ + platformOnly?: boolean; + /** Registry host serving this image (NULL means the platform default registry) */ + registryHost?: string; + /** Repository path within the registry (e.g. constructiveio/worker) */ + repository: string; + /** Runtime this image implements (e.g. nodejs, python, custom) */ + runtime?: string; + /** Mutable tag this row addresses */ + tag?: string; + updatedAt?: string; + updatedByPrincipal?: string; } -export interface PlatformResourceEventPatch { - actorId?: string | null; - eventType?: string | null; - message?: string | null; - metadata?: Record | null; - resourceId?: string | null; +/** An input for mutations affecting `PlatformImageGrant` */ +export interface PlatformImageGrantInput { + /** Registry actions this grant allows (pull, push, delete) */ + actions?: string[]; + createdAt?: string; + createdByPrincipal?: string; + /** When this grant stops applying (NULL never expires) */ + expiresAt?: string; + /** User who issued this grant */ + grantedBy?: string; + /** Scope key of the grantee (a database_id or an entity_id) */ + granteeKey: string; + /** Scope tier of the grantee (database, org, app, platform) */ + granteeScope: string; + id?: string; + /** Catalog image this grant applies to */ + imageId: string; + updatedAt?: string; + updatedByPrincipal?: string; } -export interface UpdatePlatformResourceEventInput { - clientMutationId?: string; - id: string; - platformResourceEventPatch: PlatformResourceEventPatch; +/** An input for mutations affecting `PlatformInfraCommit` */ +export interface PlatformInfraCommitInput { + /** User who authored the changes */ + authorId?: string; + /** User who committed (may differ from author) */ + committerId?: string; + /** Commit timestamp */ + date?: string; + /** Unique commit identifier */ + id?: string; + /** Optional commit message */ + message?: string; + /** Parent commit IDs (supports merge commits) */ + parentIds?: string[]; + /** Opaque store partition key for the global tier */ + scopeId: string; + /** Store this commit belongs to */ + storeId: string; + /** Root object ID of the tree snapshot at this commit */ + treeId?: string; } -export interface DeletePlatformResourceEventInput { - clientMutationId?: string; +/** An input for mutations affecting `PlatformInfraObject` */ +export interface PlatformInfraObjectInput { + /** Timestamp of object creation */ + createdAt?: string; + /** Payload data for this object node */ + data?: Record; + /** Content-addressed UUID v5 — deterministic hash of (data, kids, ktree) */ id: string; + /** Ordered array of child object IDs */ + kids?: string[]; + /** Ordered array of child path names (parallel to kids) */ + ktree?: string[]; + /** Opaque store partition key for the global tier */ + scopeId: string; } -export interface CreatePlatformResourceInstallationInput { - clientMutationId?: string; - platformResourceInstallation: { - commitId?: string; - createdBy?: string; - name: string; - namespaceId: string; - params?: Record; - revision?: number; - slug: string; - status?: string; - storeId?: string; - updatedBy?: string; - }; +/** An input for mutations affecting `PlatformInfraRef` */ +export interface PlatformInfraRefInput { + /** Commit this ref points to */ + commitId?: string; + /** Unique ref identifier */ + id?: string; + /** Ref name (e.g. HEAD, main) */ + name: string; + /** Opaque store partition key for the global tier */ + scopeId: string; + /** Store this ref belongs to */ + storeId: string; } -export interface PlatformResourceInstallationPatch { - commitId?: string | null; - createdBy?: string | null; - name?: string | null; - namespaceId?: string | null; - params?: Record | null; - revision?: number | null; - slug?: string | null; - status?: string | null; - storeId?: string | null; - updatedBy?: string | null; +/** An input for mutations affecting `PlatformInfraStore` */ +export interface PlatformInfraStoreInput { + /** Timestamp of store creation */ + createdAt?: string; + /** Current root object hash of this store */ + hash?: string; + /** Unique store identifier */ + id?: string; + /** Human-readable store name */ + name: string; + /** Opaque store partition key for the global tier */ + scopeId: string; } -export interface UpdatePlatformResourceInstallationInput { - clientMutationId?: string; - id: string; - platformResourceInstallationPatch: PlatformResourceInstallationPatch; +/** An input for mutations affecting `PlatformK8sResourceKind` */ +export interface PlatformK8sResourceKindInput { + /** Whether the admission gate consults this row; deactivating a kind row denies the kind (fail closed) */ + active?: boolean; + /** Infra store commit for the current definition (stamped by the versioned trigger on every write) */ + commitId?: string; + /** Timestamp of policy creation */ + createdAt?: string; + /** Kind policy: {allowed, allowed_scopes?, notes} — the readily-cached head; history lives in the infra store */ + definition: Record; + /** Human-readable description of the kind policy */ + description?: string; + /** Unique kind policy identifier */ + id?: string; + /** Human-readable kind policy name */ + label?: string; + /** Kubernetes kind this policy governs (e.g. Deployment); the policy's path in the infra tree is [k8s_resource_kind, slug] */ + slug: string; + /** Infra Merkle store holding this policy's history (stamped by the versioned trigger) */ + storeId?: string; + /** Timestamp of last modification */ + updatedAt?: string; } -export interface DeletePlatformResourceInstallationInput { - clientMutationId?: string; - id: string; +/** An input for mutations affecting `PlatformK8sSpecRule` */ +export interface PlatformK8sSpecRuleInput { + /** Whether the admission gate enforces this rule; rules are disabled here rather than deleted so history stays intact */ + active?: boolean; + /** Infra store commit for the current definition (stamped by the versioned trigger on every write) */ + commitId?: string; + /** Timestamp of rule creation */ + createdAt?: string; + /** Rule definition: {rule_type, kind?, match, notes?} — the readily-cached head; history lives in the infra store */ + definition: Record; + /** Human-readable description of the rule */ + description?: string; + /** Unique spec rule identifier */ + id?: string; + /** Human-readable rule name */ + label?: string; + /** Rule slug (unique per scope); the rule's path in the infra tree is [k8s_spec_rule, slug] */ + slug: string; + /** Infra Merkle store holding this rule's history (stamped by the versioned trigger) */ + storeId?: string; + /** Timestamp of last modification */ + updatedAt?: string; } -export interface CreatePlatformResourceStatusCheckInput { - clientMutationId?: string; - platformResourceStatusCheck: { - completedAt?: string; - requestedAt?: string; - requestedBy?: string; - resourceId: string; - result?: Record; - status?: string; - }; +/** An input for mutations affecting `PlatformNamespace` */ +export interface PlatformNamespaceInput { + /** Freeform metadata for tooling and operational notes */ + annotations?: Record; + /** Cluster this namespace is projected onto; NULL = the cluster the reconciler runs in */ + clusterId?: string; + createdAt?: string; + /** Optional human-readable description of this namespace */ + description?: string; + id?: string; + /** Whether this namespace is active (soft-disable for filtering) */ + isActive?: boolean; + /** true = provisioned by the platform via jobs, false = unmanaged/platform-native (bootstrapped externally) */ + isManaged?: boolean; + /** Key/value pairs for selecting and filtering namespaces */ + labels?: Record; + /** Most recent provisioning or reconcile error message */ + lastError?: string; + /** Human-readable namespace name (e.g. default, production, oauth) */ + name: string; + /** Globally unique computed namespace identifier via inflection.underscore */ + namespaceName: string; + /** Namespace provisioning lifecycle status: pending, provisioning, active, failed */ + status?: string; + updatedAt?: string; } -export interface PlatformResourceStatusCheckPatch { - completedAt?: string | null; - requestedAt?: string | null; - requestedBy?: string | null; - resourceId?: string | null; - result?: Record | null; - status?: string | null; +/** An input for mutations affecting `PlatformNamespaceEvent` */ +export interface PlatformNamespaceEventInput { + /** User who triggered this event; NULL only when no human actor was proven */ + actorId?: string; + /** Event timestamp (partition key) */ + createdAt?: string; + /** Event type: created, activated, deactivated, labels_updated, annotations_updated, renamed */ + eventType: string; + /** Unique event identifier */ + id?: string; + /** Human-readable description of the event */ + message?: string; + /** Structured context (old/new values, labels diff, etc.) */ + metadata?: Record; + /** Namespace this event belongs to */ + namespaceId: string; } -export interface UpdatePlatformResourceStatusCheckInput { - clientMutationId?: string; - id: string; - platformResourceStatusCheckPatch: PlatformResourceStatusCheckPatch; +/** An input for mutations affecting `PlatformProposalComment` */ +export interface PlatformProposalCommentInput { + /** Actor who wrote the comment; NULL only when no human actor was proven */ + actorId?: string; + /** Files referenced by the comment body, in the order they were attached */ + attachments?: ConstructiveInternalTypeUpload[]; + /** Comment text */ + body: string; + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + embedding?: number[]; + /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + embeddingText?: string; + id?: string; + /** Line within path the comment is anchored to */ + line?: number; + /** When the anchored range this comment pointed at vanished from the diff */ + outdatedAt?: string; + /** File the comment is anchored to (NULL for a comment on the proposal) */ + path?: string; + /** Proposal being commented on */ + proposalId: string; + /** When this comment was marked resolved */ + resolvedAt?: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; } -export interface DeletePlatformResourceStatusCheckInput { - clientMutationId?: string; - id: string; +/** An input for mutations affecting `PlatformProposal` */ +export interface PlatformProposalInput { + /** Actor who opened the proposal; NULL only when no human actor was proven */ + actorId?: string; + /** Description of the proposed change */ + body?: string; + /** Why this was closed: completed, not_planned, duplicate, superseded */ + closedReason?: string; + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** When the decision was taken (NULL while the question is open) */ + decidedAt?: string; + /** When this is wanted by (NULL when nothing is promised) */ + dueAt?: string; + embedding?: number[]; + /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + embeddingText?: string; + id?: string; + /** issue (a report or plan), change (merge one ref into another), discussion (an open question), decision (a question answered) */ + kind?: string; + /** Labels for filtering and grouping (a board is a query over kind, status and these) */ + labels?: string[]; + /** Commit the merge produced */ + mergeCommit?: string; + /** How to merge when eligible: merge, squash, rebase */ + mergeMethod?: string; + /** When merge-when-green was requested (NULL when no merge is pending) */ + mergeRequestedAt?: string; + /** When the merge completed */ + mergedAt?: string; + /** Review detail (reviewers, labels, checks summary) */ + metadata?: Record; + /** Proposal this one hangs under: an epic, or the discussion a decision came out of */ + parentId?: string; + /** Manual order within a board column, sparse so an insert between two rows moves one row (NULL when unranked) */ + priority?: string; + /** Repository this proposal is against */ + repositoryId: string; + /** What was decided (for kind = decision; NULL while the question is open) */ + resolution?: string; + /** Ref holding the proposed commits (NULL unless kind is change) */ + sourceRef?: string; + /** Lifecycle state: draft, open, merged, closed */ + status?: string; + /** Ref the commits are proposed for (NULL unless kind is change) */ + targetRef?: string; + /** What this proposal does */ + title: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; } -export interface CreatePlatformResourceUsageLogInput { - clientMutationId?: string; - platformResourceUsageLog: { - cpuMillicores?: string; - intervalSeconds: number; - memoryBytes?: string; - metrics?: Record; - namespaceId: string; - resourceId?: string; - sampledAt?: string; - source: string; - }; +/** An input for mutations affecting `PlatformProposalFileView` */ +export interface PlatformProposalFileViewInput { + /** Blob the reviewer read, which is what makes the mark survive a rebase or go stale */ + blobSha: string; + createdAt?: string; + createdByPrincipal?: string; + id?: string; + /** Path of the file as the diff named it */ + path: string; + /** Proposal the file belongs to */ + proposalId: string; + /** Actor who read the file */ + reviewerId: string; + updatedAt?: string; + updatedByPrincipal?: string; + /** When the file was marked read */ + viewedAt?: string; +} +/** An input for mutations affecting `PlatformProposalReaction` */ +export interface PlatformProposalReactionInput { + /** Actor who reacted */ + actorId: string; + /** Comment being reacted to (NULL for a reaction to the proposal itself) */ + commentId?: string; + createdAt?: string; + createdByPrincipal?: string; + /** Reaction shortcode (+1, eyes, rocket) */ + emoji: string; + id?: string; + /** Proposal the reaction belongs to */ + proposalId: string; + updatedAt?: string; + updatedByPrincipal?: string; +} +/** An input for mutations affecting `PlatformProposalReview` */ +export interface PlatformProposalReviewInput { + /** Summary the reviewer submitted with the verdict */ + body?: string; + /** Head commit this verdict was submitted against */ + commitSha: string; + createdAt?: string; + createdByPrincipal?: string; + id?: string; + /** Proposal being reviewed */ + proposalId: string; + /** Actor who submitted the verdict */ + reviewerId: string; + /** When the verdict was submitted */ + submittedAt?: string; + updatedAt?: string; + updatedByPrincipal?: string; + /** approve, reject or comment (a review that gates nothing) */ + verdict: string; } -export interface PlatformResourceUsageLogPatch { - cpuMillicores?: string | null; - intervalSeconds?: number | null; - memoryBytes?: string | null; - metrics?: Record | null; - namespaceId?: string | null; - resourceId?: string | null; - sampledAt?: string | null; - source?: string | null; +/** An input for mutations affecting `PlatformProposalsChunk` */ +export interface PlatformProposalsChunkInput { + /** Policy-required field derived from source table (used by AuthzComposite) */ + actorId?: string; + body: string; + chunkIndex?: number; + createdAt?: string; + embedding?: number[]; + /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + embeddingText?: string; + id?: string; + metadata?: Record; + platformProposalsId: string; + updatedAt?: string; } -export interface UpdatePlatformResourceUsageLogInput { - clientMutationId?: string; - id: string; - platformResourceUsageLogPatch: PlatformResourceUsageLogPatch; +/** An input for mutations affecting `PlatformRegistryBinding` */ +export interface PlatformRegistryBindingInput { + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + id?: string; + /** Reconciler detail (last error, projection timestamps) */ + metadata?: Record; + /** Namespace the registry credentials are projected into */ + namespaceId: string; + /** Registry credential version last projected into the namespace (NULL = never projected) */ + observedCredentialVersion?: string; + /** Name of the image pull secret the reconciler writes into the namespace */ + pullSecretName?: string; + /** Lane this binding applies to (NULL = the scope's default lane) */ + realm?: string; + /** Registry host this binding's credentials authenticate to (what kubelet matches image references against) */ + registryHost: string; + /** Registry endpoint (in this scope's registry catalog) the namespace pulls from */ + registryId: string; + /** Projection state of the pull secret: pending, active, failed */ + status?: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; +} +/** An input for mutations affecting `PlatformRegistry` */ +export interface PlatformRegistryInput { + /** How a client authenticates to this registry (none, basic, token) */ + authMode?: string; + /** Path prefix within the host (npm scope, OCI project); NULL = the host root */ + basePath?: string; + createdAt?: string; + createdByPrincipal?: string; + /** Name of the infra secret carrying this registry's credential (NULL when auth_mode = none) */ + credentialSecretName?: string; + /** Registry host, without a scheme (e.g. ghcr.io, registry.npmjs.org); required unless role is source, where it is the optional requested host and is stamped with the provisioned one */ + host?: string; + id?: string; + /** Resource installation running this registry (NULL for an external registry) */ + installationId?: string; + /** Whether this registry is published for use by any scope */ + isPublished?: boolean; + /** Artifact ecosystem this registry serves (oci, npm) */ + kind: string; + /** Labels for selecting registries (lane, region, mirror role) */ + labels?: Record; + /** Message from the last failed provision/deprovision attempt (NULL when healthy) */ + lastError?: string; + /** Freeform metadata (mirror-of pointer, rate limits, contact) */ + metadata?: Record; + /** Human-readable registry name (e.g. github-container-registry) */ + name: string; + /** Whether this registry is reserved for platform-internal use */ + platformOnly?: boolean; + /** Role in this scope: source (the push target), cache (read-through mirror), external (pull only) */ + role?: string; + /** Provisioning state (pending, provisioning, active, failed); rows the platform does not create are active on insert */ + status?: string; + updatedAt?: string; + updatedByPrincipal?: string; } -export interface DeletePlatformResourceUsageLogInput { - clientMutationId?: string; - id: string; +/** An input for mutations affecting `PlatformRegistryGrant` */ +export interface PlatformRegistryGrantInput { + /** Endpoint actions this grant allows (read, write) */ + actions?: string[]; + createdAt?: string; + createdByPrincipal?: string; + /** When this grant stops applying (NULL never expires) */ + expiresAt?: string; + /** User who issued this grant */ + grantedBy?: string; + /** Scope key of the grantee (a database_id or an entity_id) */ + granteeKey: string; + /** Scope tier of the grantee (database, org, app, platform) */ + granteeScope: string; + id?: string; + /** Registry this grant applies to */ + registryId: string; + updatedAt?: string; + updatedByPrincipal?: string; } -export interface CreatePlatformResourceUsageSummaryInput { - clientMutationId?: string; - platformResourceUsageSummary: { - date: string; - gbSeconds?: string; - maxCpuMillicores?: string; - maxMemoryBytes?: string; - namespaceId: string; - resourceId?: string; - runtimeSeconds?: string; - sampleCount?: number; - }; +/** An input for mutations affecting `PlatformRepository` */ +export interface PlatformRepositoryInput { + /** URL a workspace clones from (NULL until the repository is provisioned) */ + cloneUrl?: string; + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** Branch a clone checks out and a proposal targets by default */ + defaultBranch?: string; + /** What this repository holds */ + description?: string; + embedding?: number[]; + /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + embeddingText?: string; + /** Identifier of this repository in the external provider (NULL for local) */ + externalId?: string; + id?: string; + /** Whether this repository is retired: readable, not written to */ + isArchived?: boolean; + /** Provider detail (installation id, topics, external URLs) */ + metadata?: Record; + /** Human-readable repository name */ + name: string; + /** User who owns this repository */ + ownerId?: string; + /** Where the repository lives: local (platform git server) or github */ + provider?: string; + /** URL-safe identifier, unique within the owning scope */ + slug: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; + /** Read reach: private (owner), internal (scope members), public (any authenticated actor) */ + visibility?: string; } -export interface PlatformResourceUsageSummaryPatch { - date?: string | null; - gbSeconds?: string | null; - maxCpuMillicores?: string | null; - maxMemoryBytes?: string | null; - namespaceId?: string | null; - resourceId?: string | null; - runtimeSeconds?: string | null; - sampleCount?: number | null; +/** An input for mutations affecting `PlatformRepositoryEvent` */ +export interface PlatformRepositoryEventInput { + /** Authenticated actor behind the event (NULL when only the sending system was proven) */ + actorId?: string; + /** Commit the ref points at after the event */ + commitSha?: string; + createdAt?: string; + createdByPrincipal?: string; + /** Provider delivery identifier, for redelivery dedupe (NULL for local hooks) */ + deliveryId?: string; + /** What happened: push, tag, pr_open, pr_merge, proposal_comment, manual */ + eventType: string; + id?: string; + /** Unverified provider detail (payload login, commit author, external URLs) */ + metadata?: Record; + /** Normalized event body the workflows read */ + payload?: Record; + /** Git ref the event concerns (refs/heads/main) */ + ref?: string; + /** Repository this event happened to */ + repositoryId: string; + updatedAt?: string; + updatedByPrincipal?: string; } -export interface UpdatePlatformResourceUsageSummaryInput { - clientMutationId?: string; - id: string; - platformResourceUsageSummaryPatch: PlatformResourceUsageSummaryPatch; +/** An input for mutations affecting `PlatformRepositoryRequiredCheck` */ +export interface PlatformRepositoryRequiredCheckInput { + createdAt?: string; + id?: string; + /** Repository whose merge gate requires this workflow */ + repositoryId: string; + updatedAt?: string; + /** Workflow identity required by this repository gate */ + workflowId: string; +} +/** An input for mutations affecting `PlatformRepositoryWorkflow` */ +export interface PlatformRepositoryWorkflowInput { + /** Whether a new build cancels a running build with the same concurrency key instead of queueing */ + cancelInProgress?: boolean; + /** Builds of this workflow sharing this key run one at a time (NULL = unlimited) */ + concurrencyKey?: string; + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** Event type that fires this workflow */ + eventType: string; + /** Flow graph to run when this workflow fires */ + graphId?: string; + id?: string; + /** Static inputs merged into the graph run alongside the event */ + inputs?: Record; + /** Whether matching events fire this workflow */ + isEnabled?: boolean; + /** Human-readable workflow name */ + name: string; + /** Glob the event ref must match (NULL matches any ref) */ + refPattern?: string; + /** Repository whose events this workflow listens to */ + repositoryId: string; + /** Secret names this workflow's builds may resolve, intersected with the build lane's realm */ + requiredSecrets?: string[]; + /** URL-safe identifier, unique within the repository */ + slug: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; } -export interface DeletePlatformResourceUsageSummaryInput { - clientMutationId?: string; - id: string; +/** An input for mutations affecting `PlatformResource` */ +export interface PlatformResourceInput { + /** Freeform metadata for tooling and operational notes */ + annotations?: Record; + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** Cumulative error count for this resource */ + errorCount?: number; + id?: string; + /** Pinned image reference this resource runs (registry host/repository:tag or @digest), written by promotion; NULL means spec.image decides */ + imageRef?: string; + /** Installation ("release") this resource belongs to (NULL for standalone resources) */ + installationId?: string; + /** Provider slugs (e.g. mailgun, postgres) associated with this resource. The UI uses this to auto-fill required_secrets and required_configs from integration_providers. */ + integrations?: string[]; + /** Resource kind: Deployment, StatefulSet, Job, Service, Ingress, Certificate, ClusterIssuer */ + kind: string; + /** Key/value pairs for selecting and filtering resources */ + labels?: Record; + /** Most recent provisioning or runtime error message */ + lastError?: string; + /** Last time a usage heartbeat was received for this resource (NULL until first heartbeat) */ + lastHeartbeatAt?: string; + /** Human-readable resource name */ + name: string; + /** Namespace this resource belongs to (security boundary, maps to K8s namespace) */ + namespaceId: string; + /** Config/secret realm this resource resolves against. Per key, the realm-specific atom wins over the NULL-realm default. NULL = the default lane. */ + realm?: string; + /** Embedded config requirements: array of (name, required, provider) tuples — extends the linked definition's requirements. provider is the integration slug this requirement belongs to, if any. */ + requiredConfigs?: ResourceRequirementInput[]; + /** Embedded secret requirements: array of (name, required, provider) tuples — extends the linked definition's requirements. provider is the integration slug this requirement belongs to, if any. */ + requiredSecrets?: ResourceRequirementInput[]; + /** Definition template this resource was created from (NULL for standalone resources) */ + resourceDefinitionId?: string; + /** URL-safe identifier, unique within (namespace_id, kind) */ + slug: string; + /** Desired state — kind-specific configuration (image, ports, resources, etc.). Opaque to DB; validated by K8s. */ + spec?: Record; + /** Resource lifecycle status: pending, provisioning, active, completed, failed, draining, deleting */ + status?: string; + /** Observed state from K8s — populated by handlers after reconciliation (service_url, clone_url, replicas, etc.) */ + statusObserved?: Record; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; } -export interface CreatePlatformResourceUtilizationInput { - clientMutationId?: string; - platformResourceUtilization: { - avgMemoryBytes?: string; - cpuLimitMillicores?: string; - cpuPeakUtilization?: string; - cpuRequestHeadroomMillicores?: string; - cpuRequestMillicores?: string; - date?: string; - gbSeconds?: string; - kind?: string; - maxCpuMillicores?: string; - maxMemoryBytes?: string; - memoryLimitBytes?: string; - memoryPeakUtilization?: string; - memoryRequestBytes?: string; - memoryRequestHeadroomBytes?: string; - namespaceId: string; - replicas?: number; - resourceId: string; - runtimeSeconds?: string; - sampleCount?: number; - }; +/** An input for mutations affecting `PlatformResourceDefinition` */ +export interface PlatformResourceDefinitionInput { + /** Freeform metadata for tooling and operational notes */ + annotations?: Record; + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** Template spec for creating resource instances of this kind */ + defaultSpec?: Record; + /** What this resource definition provides */ + description?: string; + id?: string; + /** Provider slugs (e.g. mailgun, postgres) associated with this resource definition. The UI uses this to auto-fill required_secrets and required_configs from integration_providers. */ + integrations?: string[]; + /** Resource kind: Deployment, StatefulSet, Job, Service, Ingress, Certificate, ClusterIssuer, or custom kinds */ + kind: string; + /** Key/value pairs for selecting and filtering definitions */ + labels?: Record; + /** Human-readable definition name */ + name: string; + /** Namespace this definition belongs to (security boundary, maps to K8s namespace) */ + namespaceId: string; + /** Declared parameter interface: [{key,label,type,default,required,min,max,options,group,order,bindings:[{path,template,scale,round,unit}]}]. Installation params are validated and compiled through these declarations; [] keeps the legacy raw spec overlay. */ + paramsSchema?: Record; + /** Embedded config requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ + requiredConfigs?: ResourceRequirementInput[]; + /** Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ + requiredSecrets?: ResourceRequirementInput[]; + /** URL-safe identifier, unique within (namespace_id, kind) */ + slug: string; + /** Min age before DELETE of a resource of this kind requires step-up; NULL inherits the 6h default */ + stepUpMinAge?: IntervalInput; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; } -export interface PlatformResourceUtilizationPatch { - avgMemoryBytes?: string | null; - cpuLimitMillicores?: string | null; - cpuPeakUtilization?: string | null; - cpuRequestHeadroomMillicores?: string | null; - cpuRequestMillicores?: string | null; - date?: string | null; - gbSeconds?: string | null; - kind?: string | null; - maxCpuMillicores?: string | null; - maxMemoryBytes?: string | null; - memoryLimitBytes?: string | null; - memoryPeakUtilization?: string | null; - memoryRequestBytes?: string | null; - memoryRequestHeadroomBytes?: string | null; - namespaceId?: string | null; - replicas?: number | null; - resourceId?: string | null; - runtimeSeconds?: string | null; - sampleCount?: number | null; +/** An interval of time that has passed where the smallest distinct unit is a second. */ +export interface IntervalInput { + /** A quantity of days. */ + days?: number; + /** A quantity of hours. */ + hours?: number; + /** A quantity of minutes. */ + minutes?: number; + /** A quantity of months. */ + months?: number; + /** + * A quantity of seconds. This is the only non-integer field, as all the other + * fields will dump their overflow into a smaller unit of time. Intervals don’t + * have a smaller unit than seconds. + */ + seconds?: number; + /** A quantity of years. */ + years?: number; } -export interface UpdatePlatformResourceUtilizationInput { - clientMutationId?: string; - id: string; - platformResourceUtilizationPatch: PlatformResourceUtilizationPatch; +/** An input for mutations affecting `PlatformResourceEvent` */ +export interface PlatformResourceEventInput { + /** User who triggered this event; NULL only when no human actor was proven */ + actorId?: string; + /** Event timestamp (partition key) */ + createdAt?: string; + /** Event type: provisioned, provisioning, updated, failed, deprovisioned, health_check */ + eventType: string; + /** Unique event identifier */ + id?: string; + /** Human-readable description of the event */ + message?: string; + /** Structured context (old/new values, error details, etc.) */ + metadata?: Record; + /** Resource this event belongs to */ + resourceId: string; } -export interface DeletePlatformResourceUtilizationInput { - clientMutationId?: string; - id: string; +/** An input for mutations affecting `PlatformResourceInstallation` */ +export interface PlatformResourceInstallationInput { + /** Infra store commit for the current params (stamped by the versioned trigger on every write) */ + commitId?: string; + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + id?: string; + /** Human-readable release name */ + name: string; + /** Namespace this installation belongs to (security boundary) */ + namespaceId: string; + /** Release parameters — the readily-cached head; history lives in the infra store. Never contains secret/config literals. */ + params?: Record; + /** Monotonic release revision counter: install starts at 1, bumped on every upgrade/rollback */ + revision?: number; + /** URL-safe release identifier, unique within the namespace; the release's path in the infra tree is [resource_installation, slug] */ + slug: string; + /** Installation lifecycle status: pending, installed, uninstalled, failed */ + status?: string; + /** Infra merkle store holding this installation's history (stamped by the versioned trigger) */ + storeId?: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; } -export interface CreatePlatformResourcesHealthInput { - clientMutationId?: string; - platformResourcesHealth: { - annotations?: Record; - cpuLimitMillicores?: string; - cpuRequestMillicores?: string; - createdBy?: string; - errorCount?: number; - installationId: string; - integrations?: string[]; - kind?: string; - labels?: Record; - lastError?: string; - lastHeartbeatAt?: string; - memoryLimitBytes?: string; - memoryRequestBytes?: string; - name?: string; - namespaceId: string; - realm?: string; - replicas?: number; - requiredConfigs?: ResourceRequirement[]; - requiredSecrets?: ResourceRequirement[]; - resourceDefinitionId: string; - slug?: string; - spec?: Record; - status?: string; - statusDetail?: string; - statusObserved?: Record; - storageClass?: string; - storageSizeBytes?: string; - updatedBy?: string; - }; +/** An input for mutations affecting `PlatformResourceStatusCheck` */ +export interface PlatformResourceStatusCheckInput { + /** When the check completed (NULL while pending/running) */ + completedAt?: string; + /** Unique status check identifier */ + id?: string; + /** When the check was requested */ + requestedAt?: string; + /** User who requested the check (NULL for system/scheduled) */ + requestedBy?: string; + /** Resource to check */ + resourceId: string; + /** Diagnostic snapshot: k8s_status, conditions, pod_logs_tail, events */ + result?: Record; + /** Check lifecycle: pending, running, completed, failed */ + status?: string; } -export interface PlatformResourcesHealthPatch { - annotations?: Record | null; - cpuLimitMillicores?: string | null; - cpuRequestMillicores?: string | null; - createdBy?: string | null; - errorCount?: number | null; - installationId?: string | null; - integrations?: string[] | null; - kind?: string | null; - labels?: Record | null; - lastError?: string | null; - lastHeartbeatAt?: string | null; - memoryLimitBytes?: string | null; - memoryRequestBytes?: string | null; - name?: string | null; - namespaceId?: string | null; - realm?: string | null; - replicas?: number | null; - requiredConfigs?: ResourceRequirement[] | null; - requiredSecrets?: ResourceRequirement[] | null; - resourceDefinitionId?: string | null; - slug?: string | null; - spec?: Record | null; - status?: string | null; - statusDetail?: string | null; - statusObserved?: Record | null; - storageClass?: string | null; - storageSizeBytes?: string | null; - updatedBy?: string | null; +/** An input for mutations affecting `PlatformResourceUsageLog` */ +export interface PlatformResourceUsageLogInput { + /** CPU gauge in millicores at sample time (NULL when unknown) */ + cpuMillicores?: string; + /** Unique sample identifier */ + id?: string; + /** Seconds covered by this sample — runtime is SUM(interval_seconds) */ + intervalSeconds: number; + /** Memory gauge in bytes at sample time (NULL when unknown) */ + memoryBytes?: string; + /** Structured gauges: replicas, pod counts, phases, and other producer-specific metrics */ + metrics?: Record; + /** Namespace the measured workload runs in */ + namespaceId: string; + /** Resource this sample measures (NULL for namespace-grain catch-all rows) */ + resourceId?: string; + /** Sample timestamp (partition key) — end of the measured interval */ + sampledAt?: string; + /** Sample producer: self (workload heartbeat), observer (reconciler), or prometheus (namespace-grain usage collector) */ + source: string; } -export interface UpdatePlatformResourcesHealthInput { - clientMutationId?: string; - id: string; - platformResourcesHealthPatch: PlatformResourcesHealthPatch; +/** An input for mutations affecting `PlatformResourceUsageSummary` */ +export interface PlatformResourceUsageSummaryInput { + /** Day this summary covers (partition key) */ + date: string; + /** Memory usage for the day — SUM(memory_bytes * interval_seconds) normalized to GB-seconds */ + gbSeconds?: string; + /** Unique usage summary identifier */ + id?: string; + /** Maximum CPU gauge observed during the day (NULL when never reported) */ + maxCpuMillicores?: string; + /** Maximum memory gauge observed during the day (NULL when never reported) */ + maxMemoryBytes?: string; + /** Namespace the resource runs in */ + namespaceId: string; + /** Resource this summary covers (NULL for namespace-grain catch-all summaries) */ + resourceId?: string; + /** Total measured runtime for the day — SUM(interval_seconds) */ + runtimeSeconds?: string; + /** Number of raw samples aggregated into this summary */ + sampleCount?: number; } -export interface DeletePlatformResourcesHealthInput { - clientMutationId?: string; - id: string; +/** An input for mutations affecting `PlatformWebhookEndpoint` */ +export interface PlatformWebhookEndpointInput { + /** Whether this endpoint currently accepts deliveries */ + active?: boolean; + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** Same-scope function definition invoked on delivery. The function must list the webhook channel in access_channels. */ + functionDefinitionId: string; + /** Inbound Host header this endpoint matches (normalized lower-case, no port) */ + host: string; + id?: string; + /** Namespace that owns this endpoint and contains its signing secret */ + namespaceId: string; + /** Exact request path this endpoint matches (e.g. /webhooks/stripe) */ + path: string; + /** Verification scheme: generic (HMAC), stripe, or github */ + provider?: string; + /** Maximum age (seconds) of a signed provider timestamp before the delivery is rejected as a replay */ + replayWindowSeconds?: number; + /** Name of the signing secret in the infra secrets store. The gateway resolves the value through the generated secrets getter — the plaintext secret is never stored here. */ + signingSecretName: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; } -export interface CreatePlatformResourcesRequirementsStateInput { - clientMutationId?: string; - platformResourcesRequirementsState: { - configHash?: string; - configObjectName?: string; - requirementsHash?: string; - resourceId: string; - secretsHash?: string; - secretsObjectName?: string; - slug?: string; - }; +/** An input for mutations affecting `PlatformWebhookEvent` */ +export interface PlatformWebhookEventInput { + createdAt?: string; + /** Endpoint that accepted this delivery */ + endpointId: string; + /** Failure detail when status = failed */ + error?: string; + /** Provider-supplied delivery/event id used for idempotent dedup */ + externalEventId: string; + id?: string; + /** created_at of the enqueued invocation (partition key companion to invocation_id) */ + invocationCreatedAt?: string; + /** Pending function invocation enqueued for this delivery (NULL until enqueued) */ + invocationId?: string; + /** Parsed delivery payload (parsed only after signature verification over the exact raw bytes) */ + payload?: Record; + /** Provider that produced this delivery (copied from the endpoint at acceptance) */ + provider: string; + /** Signed provider timestamp used for replay-window validation (NULL when the provider supplies none) */ + providerTimestamp?: string; + /** Acceptance lifecycle: accepted, processed, failed */ + status?: string; + updatedAt?: string; } -export interface PlatformResourcesRequirementsStatePatch { - configHash?: string | null; - configObjectName?: string | null; - requirementsHash?: string | null; - resourceId?: string | null; - secretsHash?: string | null; - secretsObjectName?: string | null; - slug?: string | null; +/** An input for mutations affecting `ProposalComment` */ +export interface ProposalCommentInput { + /** Actor who wrote the comment; NULL only when no human actor was proven */ + actorId?: string; + /** Files referenced by the comment body, in the order they were attached */ + attachments?: ConstructiveInternalTypeUpload[]; + /** Comment text */ + body: string; + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + embedding?: number[]; + /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + embeddingText?: string; + id?: string; + /** Line within path the comment is anchored to */ + line?: number; + /** When the anchored range this comment pointed at vanished from the diff */ + outdatedAt?: string; + /** File the comment is anchored to (NULL for a comment on the proposal) */ + path?: string; + /** Proposal being commented on */ + proposalId: string; + /** When this comment was marked resolved */ + resolvedAt?: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; } -export interface UpdatePlatformResourcesRequirementsStateInput { - clientMutationId?: string; - id: string; - platformResourcesRequirementsStatePatch: PlatformResourcesRequirementsStatePatch; +/** An input for mutations affecting `Proposal` */ +export interface ProposalInput { + /** Actor who opened the proposal; NULL only when no human actor was proven */ + actorId?: string; + /** Description of the proposed change */ + body?: string; + /** Why this was closed: completed, not_planned, duplicate, superseded */ + closedReason?: string; + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** When the decision was taken (NULL while the question is open) */ + decidedAt?: string; + /** When this is wanted by (NULL when nothing is promised) */ + dueAt?: string; + embedding?: number[]; + /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + embeddingText?: string; + id?: string; + /** issue (a report or plan), change (merge one ref into another), discussion (an open question), decision (a question answered) */ + kind?: string; + /** Labels for filtering and grouping (a board is a query over kind, status and these) */ + labels?: string[]; + /** Commit the merge produced */ + mergeCommit?: string; + /** How to merge when eligible: merge, squash, rebase */ + mergeMethod?: string; + /** When merge-when-green was requested (NULL when no merge is pending) */ + mergeRequestedAt?: string; + /** When the merge completed */ + mergedAt?: string; + /** Review detail (reviewers, labels, checks summary) */ + metadata?: Record; + /** Proposal this one hangs under: an epic, or the discussion a decision came out of */ + parentId?: string; + /** Manual order within a board column, sparse so an insert between two rows moves one row (NULL when unranked) */ + priority?: string; + /** Repository this proposal is against */ + repositoryId: string; + /** What was decided (for kind = decision; NULL while the question is open) */ + resolution?: string; + /** Ref holding the proposed commits (NULL unless kind is change) */ + sourceRef?: string; + /** Lifecycle state: draft, open, merged, closed */ + status?: string; + /** Ref the commits are proposed for (NULL unless kind is change) */ + targetRef?: string; + /** What this proposal does */ + title: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; } -export interface DeletePlatformResourcesRequirementsStateInput { - clientMutationId?: string; - id: string; +/** An input for mutations affecting `ProposalFileView` */ +export interface ProposalFileViewInput { + /** Blob the reviewer read, which is what makes the mark survive a rebase or go stale */ + blobSha: string; + createdAt?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + id?: string; + /** Path of the file as the diff named it */ + path: string; + /** Proposal the file belongs to */ + proposalId: string; + /** Actor who read the file */ + reviewerId: string; + updatedAt?: string; + updatedByPrincipal?: string; + /** When the file was marked read */ + viewedAt?: string; +} +/** An input for mutations affecting `ProposalReaction` */ +export interface ProposalReactionInput { + /** Actor who reacted */ + actorId: string; + /** Comment being reacted to (NULL for a reaction to the proposal itself) */ + commentId?: string; + createdAt?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Reaction shortcode (+1, eyes, rocket) */ + emoji: string; + id?: string; + /** Proposal the reaction belongs to */ + proposalId: string; + updatedAt?: string; + updatedByPrincipal?: string; +} +/** An input for mutations affecting `ProposalReview` */ +export interface ProposalReviewInput { + /** Summary the reviewer submitted with the verdict */ + body?: string; + /** Head commit this verdict was submitted against */ + commitSha: string; + createdAt?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + id?: string; + /** Proposal being reviewed */ + proposalId: string; + /** Actor who submitted the verdict */ + reviewerId: string; + /** When the verdict was submitted */ + submittedAt?: string; + updatedAt?: string; + updatedByPrincipal?: string; + /** approve, reject or comment (a review that gates nothing) */ + verdict: string; } -export interface CreatePlatformResourcesResolvedRequirementInput { - clientMutationId?: string; - platformResourcesResolvedRequirement: { - atomId: string; - configObjectName?: string; - name?: string; - namespaceId: string; - present?: boolean; - realm?: string; - required?: boolean; - requirementKind?: string; - resourceId: string; - secretsObjectName?: string; - slug?: string; - }; +/** An input for mutations affecting `ProposalsChunk` */ +export interface ProposalsChunkInput { + /** Policy-required field derived from source table (used by AuthzComposite) */ + actorId?: string; + body: string; + chunkIndex?: number; + createdAt?: string; + /** Policy-required field derived from source table (used by AuthzRelatedEntityMembership) */ + databaseId?: string; + embedding?: number[]; + /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + embeddingText?: string; + id?: string; + metadata?: Record; + proposalsId: string; + updatedAt?: string; } -export interface PlatformResourcesResolvedRequirementPatch { - atomId?: string | null; - configObjectName?: string | null; - name?: string | null; - namespaceId?: string | null; - present?: boolean | null; - realm?: string | null; - required?: boolean | null; - requirementKind?: string | null; - resourceId?: string | null; - secretsObjectName?: string | null; - slug?: string | null; +/** An input for mutations affecting `RegistryBinding` */ +export interface RegistryBindingInput { + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + id?: string; + /** Reconciler detail (last error, projection timestamps) */ + metadata?: Record; + /** Namespace the registry credentials are projected into */ + namespaceId: string; + /** Registry credential version last projected into the namespace (NULL = never projected) */ + observedCredentialVersion?: string; + /** Name of the image pull secret the reconciler writes into the namespace */ + pullSecretName?: string; + /** Lane this binding applies to (NULL = the scope's default lane) */ + realm?: string; + /** Registry host this binding's credentials authenticate to (what kubelet matches image references against) */ + registryHost: string; + /** Registry endpoint (in this scope's registry catalog) the namespace pulls from */ + registryId: string; + /** Projection state of the pull secret: pending, active, failed */ + status?: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; +} +/** An input for mutations affecting `Registry` */ +export interface RegistryInput { + /** How a client authenticates to this registry (none, basic, token) */ + authMode?: string; + /** Path prefix within the host (npm scope, OCI project); NULL = the host root */ + basePath?: string; + createdAt?: string; + createdByPrincipal?: string; + /** Name of the infra secret carrying this registry's credential (NULL when auth_mode = none) */ + credentialSecretName?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Registry host, without a scheme (e.g. ghcr.io, registry.npmjs.org); required unless role is source, where it is the optional requested host and is stamped with the provisioned one */ + host?: string; + id?: string; + /** Resource installation running this registry (NULL for an external registry) */ + installationId?: string; + /** Whether this registry is published for use by any scope */ + isPublished?: boolean; + /** Artifact ecosystem this registry serves (oci, npm) */ + kind: string; + /** Labels for selecting registries (lane, region, mirror role) */ + labels?: Record; + /** Message from the last failed provision/deprovision attempt (NULL when healthy) */ + lastError?: string; + /** Freeform metadata (mirror-of pointer, rate limits, contact) */ + metadata?: Record; + /** Human-readable registry name (e.g. github-container-registry) */ + name: string; + /** Whether this registry is reserved for platform-internal use */ + platformOnly?: boolean; + /** Role in this scope: source (the push target), cache (read-through mirror), external (pull only) */ + role?: string; + /** Provisioning state (pending, provisioning, active, failed); rows the platform does not create are active on insert */ + status?: string; + updatedAt?: string; + updatedByPrincipal?: string; +} +/** An input for mutations affecting `RegistryGrant` */ +export interface RegistryGrantInput { + /** Endpoint actions this grant allows (read, write) */ + actions?: string[]; + createdAt?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** When this grant stops applying (NULL never expires) */ + expiresAt?: string; + /** User who issued this grant */ + grantedBy?: string; + /** Scope key of the grantee (a database_id or an entity_id) */ + granteeKey: string; + /** Scope tier of the grantee (database, org, app, platform) */ + granteeScope: string; + id?: string; + /** Registry this grant applies to */ + registryId: string; + updatedAt?: string; + updatedByPrincipal?: string; } -export interface UpdatePlatformResourcesResolvedRequirementInput { - clientMutationId?: string; - id: string; - platformResourcesResolvedRequirementPatch: PlatformResourcesResolvedRequirementPatch; +/** An input for mutations affecting `Repository` */ +export interface RepositoryInput { + /** URL a workspace clones from (NULL until the repository is provisioned) */ + cloneUrl?: string; + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Branch a clone checks out and a proposal targets by default */ + defaultBranch?: string; + /** What this repository holds */ + description?: string; + embedding?: number[]; + /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + embeddingText?: string; + /** Identifier of this repository in the external provider (NULL for local) */ + externalId?: string; + id?: string; + /** Whether this repository is retired: readable, not written to */ + isArchived?: boolean; + /** Provider detail (installation id, topics, external URLs) */ + metadata?: Record; + /** Human-readable repository name */ + name: string; + /** User who owns this repository */ + ownerId?: string; + /** Where the repository lives: local (platform git server) or github */ + provider?: string; + /** URL-safe identifier, unique within the owning scope */ + slug: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; + /** Read reach: private (owner), internal (scope members), public (any authenticated actor) */ + visibility?: string; } -export interface DeletePlatformResourcesResolvedRequirementInput { - clientMutationId?: string; - id: string; +/** An input for mutations affecting `RepositoryEvent` */ +export interface RepositoryEventInput { + /** Authenticated actor behind the event (NULL when only the sending system was proven) */ + actorId?: string; + /** Commit the ref points at after the event */ + commitSha?: string; + createdAt?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Provider delivery identifier, for redelivery dedupe (NULL for local hooks) */ + deliveryId?: string; + /** What happened: push, tag, pr_open, pr_merge, proposal_comment, manual */ + eventType: string; + id?: string; + /** Unverified provider detail (payload login, commit author, external URLs) */ + metadata?: Record; + /** Normalized event body the workflows read */ + payload?: Record; + /** Git ref the event concerns (refs/heads/main) */ + ref?: string; + /** Repository this event happened to */ + repositoryId: string; + updatedAt?: string; + updatedByPrincipal?: string; } -export interface CreatePlatformWebhookEndpointInput { - clientMutationId?: string; - platformWebhookEndpoint: { - active?: boolean; - createdBy?: string; - functionDefinitionId: string; - host: string; - namespaceId: string; - path: string; - provider?: string; - replayWindowSeconds?: number; - signingSecretName: string; - updatedBy?: string; - }; +/** An input for mutations affecting `RepositoryRequiredCheck` */ +export interface RepositoryRequiredCheckInput { + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + id?: string; + /** Repository whose merge gate requires this workflow */ + repositoryId: string; + updatedAt?: string; + /** Workflow identity required by this repository gate */ + workflowId: string; +} +/** An input for mutations affecting `RepositoryWorkflow` */ +export interface RepositoryWorkflowInput { + /** Whether a new build cancels a running build with the same concurrency key instead of queueing */ + cancelInProgress?: boolean; + /** Builds of this workflow sharing this key run one at a time (NULL = unlimited) */ + concurrencyKey?: string; + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Event type that fires this workflow */ + eventType: string; + /** Flow graph to run when this workflow fires */ + graphId?: string; + id?: string; + /** Static inputs merged into the graph run alongside the event */ + inputs?: Record; + /** Whether matching events fire this workflow */ + isEnabled?: boolean; + /** Human-readable workflow name */ + name: string; + /** Glob the event ref must match (NULL matches any ref) */ + refPattern?: string; + /** Repository whose events this workflow listens to */ + repositoryId: string; + /** Secret names this workflow's builds may resolve, intersected with the build lane's realm */ + requiredSecrets?: string[]; + /** URL-safe identifier, unique within the repository */ + slug: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; } -export interface PlatformWebhookEndpointPatch { - active?: boolean | null; - createdBy?: string | null; - functionDefinitionId?: string | null; - host?: string | null; - namespaceId?: string | null; - path?: string | null; - provider?: string | null; - replayWindowSeconds?: number | null; - signingSecretName?: string | null; - updatedBy?: string | null; +/** An input for mutations affecting `Resource` */ +export interface ResourceInput { + /** Freeform metadata for tooling and operational notes */ + annotations?: Record; + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Cumulative error count for this resource */ + errorCount?: number; + id?: string; + /** Pinned image reference this resource runs (registry host/repository:tag or @digest), written by promotion; NULL means spec.image decides */ + imageRef?: string; + /** Installation ("release") this resource belongs to (NULL for standalone resources) */ + installationId?: string; + /** Provider slugs (e.g. mailgun, postgres) associated with this resource. The UI uses this to auto-fill required_secrets and required_configs from integration_providers. */ + integrations?: string[]; + /** Resource kind: Deployment, StatefulSet, Job, Service, Ingress, Certificate, ClusterIssuer */ + kind: string; + /** Key/value pairs for selecting and filtering resources */ + labels?: Record; + /** Most recent provisioning or runtime error message */ + lastError?: string; + /** Last time a usage heartbeat was received for this resource (NULL until first heartbeat) */ + lastHeartbeatAt?: string; + /** Human-readable resource name */ + name: string; + /** Namespace this resource belongs to (security boundary, maps to K8s namespace) */ + namespaceId: string; + /** Config/secret realm this resource resolves against. Per key, the realm-specific atom wins over the NULL-realm default. NULL = the default lane. */ + realm?: string; + /** Embedded config requirements: array of (name, required, provider) tuples — extends the linked definition's requirements. provider is the integration slug this requirement belongs to, if any. */ + requiredConfigs?: ResourceRequirementInput[]; + /** Embedded secret requirements: array of (name, required, provider) tuples — extends the linked definition's requirements. provider is the integration slug this requirement belongs to, if any. */ + requiredSecrets?: ResourceRequirementInput[]; + /** Definition template this resource was created from (NULL for standalone resources) */ + resourceDefinitionId?: string; + /** URL-safe identifier, unique within (namespace_id, kind) */ + slug: string; + /** Desired state — kind-specific configuration (image, ports, resources, etc.). Opaque to DB; validated by K8s. */ + spec?: Record; + /** Resource lifecycle status: pending, provisioning, active, completed, failed, draining, deleting */ + status?: string; + /** Observed state from K8s — populated by handlers after reconciliation (service_url, clone_url, replicas, etc.) */ + statusObserved?: Record; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; } -export interface UpdatePlatformWebhookEndpointInput { - clientMutationId?: string; - id: string; - platformWebhookEndpointPatch: PlatformWebhookEndpointPatch; +/** An input for mutations affecting `ResourceDefinition` */ +export interface ResourceDefinitionInput { + /** Freeform metadata for tooling and operational notes */ + annotations?: Record; + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Template spec for creating resource instances of this kind */ + defaultSpec?: Record; + /** What this resource definition provides */ + description?: string; + id?: string; + /** Provider slugs (e.g. mailgun, postgres) associated with this resource definition. The UI uses this to auto-fill required_secrets and required_configs from integration_providers. */ + integrations?: string[]; + /** Resource kind: Deployment, StatefulSet, Job, Service, Ingress, Certificate, ClusterIssuer, or custom kinds */ + kind: string; + /** Key/value pairs for selecting and filtering definitions */ + labels?: Record; + /** Human-readable definition name */ + name: string; + /** Namespace this definition belongs to (security boundary, maps to K8s namespace) */ + namespaceId: string; + /** Declared parameter interface: [{key,label,type,default,required,min,max,options,group,order,bindings:[{path,template,scale,round,unit}]}]. Installation params are validated and compiled through these declarations; [] keeps the legacy raw spec overlay. */ + paramsSchema?: Record; + /** Embedded config requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ + requiredConfigs?: ResourceRequirementInput[]; + /** Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ + requiredSecrets?: ResourceRequirementInput[]; + /** URL-safe identifier, unique within (namespace_id, kind) */ + slug: string; + /** Min age before DELETE of a resource of this kind requires step-up; NULL inherits the 6h default */ + stepUpMinAge?: IntervalInput; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; } -export interface DeletePlatformWebhookEndpointInput { - clientMutationId?: string; - id: string; +/** An input for mutations affecting `ResourceEvent` */ +export interface ResourceEventInput { + /** User who triggered this event; NULL only when no human actor was proven */ + actorId?: string; + /** Event timestamp (partition key) */ + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Event type: provisioned, provisioning, updated, failed, deprovisioned, health_check */ + eventType: string; + /** Unique event identifier */ + id?: string; + /** Human-readable description of the event */ + message?: string; + /** Structured context (old/new values, error details, etc.) */ + metadata?: Record; + /** Resource this event belongs to */ + resourceId: string; } -export interface CreatePlatformWebhookEventInput { - clientMutationId?: string; - platformWebhookEvent: { - endpointId: string; - error?: string; - externalEventId: string; - invocationCreatedAt?: string; - invocationId?: string; - payload?: Record; - provider: string; - providerTimestamp?: string; - status?: string; - }; +/** An input for mutations affecting `ResourceInstallation` */ +export interface ResourceInstallationInput { + /** Infra store commit for the current params (stamped by the versioned trigger on every write) */ + commitId?: string; + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + id?: string; + /** Human-readable release name */ + name: string; + /** Namespace this installation belongs to (security boundary) */ + namespaceId: string; + /** Release parameters — the readily-cached head; history lives in the infra store. Never contains secret/config literals. */ + params?: Record; + /** Monotonic release revision counter: install starts at 1, bumped on every upgrade/rollback */ + revision?: number; + /** URL-safe release identifier, unique within the namespace; the release's path in the infra tree is [resource_installation, slug] */ + slug: string; + /** Installation lifecycle status: pending, installed, uninstalled, failed */ + status?: string; + /** Infra merkle store holding this installation's history (stamped by the versioned trigger) */ + storeId?: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; } -export interface PlatformWebhookEventPatch { - endpointId?: string | null; - error?: string | null; - externalEventId?: string | null; - invocationCreatedAt?: string | null; - invocationId?: string | null; - payload?: Record | null; - provider?: string | null; - providerTimestamp?: string | null; - status?: string | null; +/** An input for mutations affecting `ResourceStatusCheck` */ +export interface ResourceStatusCheckInput { + /** When the check completed (NULL while pending/running) */ + completedAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Unique status check identifier */ + id?: string; + /** When the check was requested */ + requestedAt?: string; + /** User who requested the check (NULL for system/scheduled) */ + requestedBy?: string; + /** Resource to check */ + resourceId: string; + /** Diagnostic snapshot: k8s_status, conditions, pod_logs_tail, events */ + result?: Record; + /** Check lifecycle: pending, running, completed, failed */ + status?: string; +} +/** An input for mutations affecting `ResourceUsageLog` */ +export interface ResourceUsageLogInput { + /** CPU gauge in millicores at sample time (NULL when unknown) */ + cpuMillicores?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Unique sample identifier */ + id?: string; + /** Seconds covered by this sample — runtime is SUM(interval_seconds) */ + intervalSeconds: number; + /** Memory gauge in bytes at sample time (NULL when unknown) */ + memoryBytes?: string; + /** Structured gauges: replicas, pod counts, phases, and other producer-specific metrics */ + metrics?: Record; + /** Namespace the measured workload runs in */ + namespaceId: string; + /** Resource this sample measures (NULL for namespace-grain catch-all rows) */ + resourceId?: string; + /** Sample timestamp (partition key) — end of the measured interval */ + sampledAt?: string; + /** Sample producer: self (workload heartbeat), observer (reconciler), or prometheus (namespace-grain usage collector) */ + source: string; } -export interface UpdatePlatformWebhookEventInput { - clientMutationId?: string; - id: string; - platformWebhookEventPatch: PlatformWebhookEventPatch; +/** An input for mutations affecting `ResourceUsageSummary` */ +export interface ResourceUsageSummaryInput { + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Day this summary covers (partition key) */ + date: string; + /** Memory usage for the day — SUM(memory_bytes * interval_seconds) normalized to GB-seconds */ + gbSeconds?: string; + /** Unique usage summary identifier */ + id?: string; + /** Maximum CPU gauge observed during the day (NULL when never reported) */ + maxCpuMillicores?: string; + /** Maximum memory gauge observed during the day (NULL when never reported) */ + maxMemoryBytes?: string; + /** Namespace the resource runs in */ + namespaceId: string; + /** Resource this summary covers (NULL for namespace-grain catch-all summaries) */ + resourceId?: string; + /** Total measured runtime for the day — SUM(interval_seconds) */ + runtimeSeconds?: string; + /** Number of raw samples aggregated into this summary */ + sampleCount?: number; } -export interface DeletePlatformWebhookEventInput { - clientMutationId?: string; - id: string; +/** An input for mutations affecting `WebhookEndpoint` */ +export interface WebhookEndpointInput { + /** Whether this endpoint currently accepts deliveries */ + active?: boolean; + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Same-scope function definition invoked on delivery. The function must list the webhook channel in access_channels. */ + functionDefinitionId: string; + /** Inbound Host header this endpoint matches (normalized lower-case, no port) */ + host: string; + id?: string; + /** Namespace that owns this endpoint and contains its signing secret */ + namespaceId: string; + /** Exact request path this endpoint matches (e.g. /webhooks/stripe) */ + path: string; + /** Verification scheme: generic (HMAC), stripe, or github */ + provider?: string; + /** Maximum age (seconds) of a signed provider timestamp before the delivery is rejected as a replay */ + replayWindowSeconds?: number; + /** Name of the signing secret in the infra secrets store. The gateway resolves the value through the generated secrets getter — the plaintext secret is never stored here. */ + signingSecretName: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; } -export interface CreateResourceInput { - clientMutationId?: string; - resource: { - annotations?: Record; - createdBy?: string; - databaseId: string; - errorCount?: number; - installationId?: string; - integrations?: string[]; - kind: string; - labels?: Record; - lastError?: string; - lastHeartbeatAt?: string; - name: string; - namespaceId: string; - realm?: string; - requiredConfigs?: ResourceRequirementInput[]; - requiredSecrets?: ResourceRequirementInput[]; - resourceDefinitionId?: string; - slug: string; - spec?: Record; - status?: string; - statusObserved?: Record; - updatedBy?: string; - }; +/** An input for mutations affecting `WebhookEvent` */ +export interface WebhookEventInput { + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Endpoint that accepted this delivery */ + endpointId: string; + /** Failure detail when status = failed */ + error?: string; + /** Provider-supplied delivery/event id used for idempotent dedup */ + externalEventId: string; + id?: string; + /** created_at of the enqueued invocation (partition key companion to invocation_id) */ + invocationCreatedAt?: string; + /** Pending function invocation enqueued for this delivery (NULL until enqueued) */ + invocationId?: string; + /** Parsed delivery payload (parsed only after signature verification over the exact raw bytes) */ + payload?: Record; + /** Provider that produced this delivery (copied from the endpoint at acceptance) */ + provider: string; + /** Signed provider timestamp used for replay-window validation (NULL when the provider supplies none) */ + providerTimestamp?: string; + /** Acceptance lifecycle: accepted, processed, failed */ + status?: string; + updatedAt?: string; } -export interface ResourcePatch { - annotations?: Record | null; - createdBy?: string | null; - databaseId?: string | null; - errorCount?: number | null; - installationId?: string | null; - integrations?: string[] | null; - kind?: string | null; - labels?: Record | null; - lastError?: string | null; - lastHeartbeatAt?: string | null; - name?: string | null; - namespaceId?: string | null; - realm?: string | null; - requiredConfigs?: ResourceRequirementInput[] | null; - requiredSecrets?: ResourceRequirementInput[] | null; - resourceDefinitionId?: string | null; - slug?: string | null; - spec?: Record | null; - status?: string | null; - statusObserved?: Record | null; - updatedBy?: string | null; +/** A filter to be used against `DatabaseFunctionGraphExecution` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseFunctionGraphExecutionFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: DatabaseFunctionGraphExecutionFilter[]; + /** Filter by the object’s `completedAt` field. */ + completedAt?: DatetimeFilter; + /** Filter by the object’s `currentWave` field. */ + currentWave?: IntFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `definitionsCommitId` field. */ + definitionsCommitId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `entityType` field. */ + entityType?: StringFilter; + /** Filter by the object’s `errorCode` field. */ + errorCode?: StringFilter; + /** Filter by the object’s `errorMessage` field. */ + errorMessage?: StringFilter; + /** Filter by the object’s `executionPlan` field. */ + executionPlan?: JSONFilter; + /** Filter by the object’s `graph` relation. */ + graph?: DatabaseFunctionGraphFilter; + /** Filter by the object’s `graphId` field. */ + graphId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `inputPayload` field. */ + inputPayload?: JSONFilter; + /** Filter by the object’s `invocationCreatedAt` field. */ + invocationCreatedAt?: DatetimeFilter; + /** Filter by the object’s `invocationId` field. */ + invocationId?: UUIDFilter; + /** Filter by the object’s `lastProgressAt` field. */ + lastProgressAt?: DatetimeFilter; + /** Filter by the object’s `maxPendingJobs` field. */ + maxPendingJobs?: IntFilter; + /** Filter by the object’s `maxTicks` field. */ + maxTicks?: IntFilter; + /** Filter by the object’s `nodeOutputs` field. */ + nodeOutputs?: JSONFilter; + /** Negates the expression. */ + not?: DatabaseFunctionGraphExecutionFilter; + /** Checks for any expressions in this list. */ + or?: DatabaseFunctionGraphExecutionFilter[]; + /** Filter by the object’s `organizationId` field. */ + organizationId?: UUIDFilter; + /** Filter by the object’s `outputNames` field. */ + outputNames?: StringListFilter; + /** Filter by the object’s `outputNode` field. */ + outputNode?: StringFilter; + /** Filter by the object’s `outputPayload` field. */ + outputPayload?: JSONFilter; + /** Filter by the object’s `outputPort` field. */ + outputPort?: StringFilter; + /** Filter by the object’s `parentExecutionId` field. */ + parentExecutionId?: UUIDFilter; + /** Filter by the object’s `parentInvocationId` field. */ + parentInvocationId?: UUIDFilter; + /** Filter by the object’s `parentNodeName` field. */ + parentNodeName?: StringFilter; + /** Filter by the object’s `principalId` field. */ + principalId?: UUIDFilter; + /** Filter by the object’s `startedAt` field. */ + startedAt?: DatetimeFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `tickCount` field. */ + tickCount?: IntFilter; + /** Filter by the object’s `timeoutAt` field. */ + timeoutAt?: DatetimeFilter; } -export interface UpdateResourceInput { - clientMutationId?: string; - id: string; - resourcePatch: ResourcePatch; +/** A filter to be used against `FunctionDefinition` object types. All fields are combined with a logical ‘and.’ */ +export interface FunctionDefinitionFilter { + /** Filter by the object’s `accessChannels` field. */ + accessChannels?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: FunctionDefinitionFilter[]; + /** Filter by the object’s `anonymousCallable` field. */ + anonymousCallable?: BooleanFilter; + /** Filter by the object’s `category` field. */ + category?: StringFilter; + /** Filter by the object’s `concurrency` field. */ + concurrency?: IntFilter; + /** Filter by the object’s `cpuLimitMillicores` field. */ + cpuLimitMillicores?: BigIntFilter; + /** Filter by the object’s `cpuRequestMillicores` field. */ + cpuRequestMillicores?: BigIntFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `fnCategory` field. */ + fnCategory?: StringFilter; + /** Filter by the object’s `functionApiBindings` relation. */ + functionApiBindings?: FunctionDefinitionToManyFunctionApiBindingFilter; + /** `functionApiBindings` exist. */ + functionApiBindingsExist?: boolean; + /** Filter by the object’s `functionCapabilityBindingsByFunctionId` relation. */ + functionCapabilityBindingsByFunctionId?: FunctionDefinitionToManyFunctionCapabilityBindingFilter; + /** `functionCapabilityBindingsByFunctionId` exist. */ + functionCapabilityBindingsByFunctionIdExist?: boolean; + /** Filter by the object’s `functionColumns` field. */ + functionColumns?: JSONFilter; + /** Filter by the object’s `graph` relation. */ + graph?: DatabaseFunctionGraphFilter; + /** A related `graph` exists. */ + graphExists?: boolean; + /** Filter by the object’s `graphId` field. */ + graphId?: UUIDFilter; + /** Filter by the object’s `icon` field. */ + icon?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `image` field. */ + image?: StringFilter; + /** Filter by the object’s `inputs` field. */ + inputs?: JSONFilter; + /** Filter by the object’s `integrations` field. */ + integrations?: StringListFilter; + /** Filter by the object’s `isPublished` field. */ + isPublished?: BooleanFilter; + /** Filter by the object’s `maxAttempts` field. */ + maxAttempts?: IntFilter; + /** Filter by the object’s `memoryLimitBytes` field. */ + memoryLimitBytes?: BigIntFilter; + /** Filter by the object’s `memoryRequestBytes` field. */ + memoryRequestBytes?: BigIntFilter; + /** Filter by the object’s `moduleTable` field. */ + moduleTable?: StringFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: FunctionDefinitionFilter; + /** Checks for any expressions in this list. */ + or?: FunctionDefinitionFilter[]; + /** Filter by the object’s `outputs` field. */ + outputs?: JSONFilter; + /** Filter by the object’s `payloadArgs` field. */ + payloadArgs?: JSONFilter; + /** Filter by the object’s `priority` field. */ + priority?: IntFilter; + /** Filter by the object’s `props` field. */ + props?: JSONFilter; + /** Filter by the object’s `protected` field. */ + protected?: BooleanFilter; + /** Filter by the object’s `publishedAt` field. */ + publishedAt?: DatetimeFilter; + /** Filter by the object’s `queueName` field. */ + queueName?: StringFilter; + /** Filter by the object’s `requiredBuckets` field. */ + requiredBuckets?: StringListFilter; + /** Filter by the object’s `requiredCapabilities` field. */ + requiredCapabilities?: JSONFilter; + /** 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. */ + runtime?: StringFilter; + /** Filter by the object’s `scaleMax` field. */ + scaleMax?: IntFilter; + /** Filter by the object’s `scaleMin` field. */ + scaleMin?: IntFilter; + /** Filter by the object’s `targetFunction` field. */ + targetFunction?: StringFilter; + /** Filter by the object’s `targetSchema` field. */ + targetSchema?: StringFilter; + /** Filter by the object’s `taskIdentifier` field. */ + taskIdentifier?: StringFilter; + /** Filter by the object’s `timeoutSeconds` field. */ + timeoutSeconds?: IntFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** Filter by the object’s `volatile` field. */ + volatile?: BooleanFilter; + /** Filter by the object’s `webhookEndpoints` relation. */ + webhookEndpoints?: FunctionDefinitionToManyWebhookEndpointFilter; + /** `webhookEndpoints` exist. */ + webhookEndpointsExist?: boolean; } -export interface DeleteResourceInput { - clientMutationId?: string; - id: string; +/** A filter to be used against `RepositoryWorkflow` object types. All fields are combined with a logical ‘and.’ */ +export interface RepositoryWorkflowFilter { + /** Checks for all expressions in this list. */ + and?: RepositoryWorkflowFilter[]; + /** Filter by the object’s `buildsByWorkflowId` relation. */ + buildsByWorkflowId?: RepositoryWorkflowToManyBuildFilter; + /** `buildsByWorkflowId` exist. */ + buildsByWorkflowIdExist?: boolean; + /** Filter by the object’s `cancelInProgress` field. */ + cancelInProgress?: BooleanFilter; + /** Filter by the object’s `concurrencyKey` field. */ + concurrencyKey?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `eventType` field. */ + eventType?: StringFilter; + /** Filter by the object’s `graph` relation. */ + graph?: DatabaseFunctionGraphFilter; + /** A related `graph` exists. */ + graphExists?: boolean; + /** Filter by the object’s `graphId` field. */ + graphId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `inputs` field. */ + inputs?: JSONFilter; + /** Filter by the object’s `isEnabled` field. */ + isEnabled?: BooleanFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: RepositoryWorkflowFilter; + /** Checks for any expressions in this list. */ + or?: RepositoryWorkflowFilter[]; + /** Filter by the object’s `refPattern` field. */ + refPattern?: StringFilter; + /** Filter by the object’s `repository` relation. */ + repository?: RepositoryFilter; + /** Filter by the object’s `repositoryId` field. */ + repositoryId?: UUIDFilter; + /** Filter by the object’s `repositoryRequiredChecksByWorkflowId` relation. */ + repositoryRequiredChecksByWorkflowId?: RepositoryWorkflowToManyRepositoryRequiredCheckFilter; + /** `repositoryRequiredChecksByWorkflowId` exist. */ + repositoryRequiredChecksByWorkflowIdExist?: boolean; + /** Filter by the object’s `requiredSecrets` field. */ + requiredSecrets?: StringListFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface CreateResourceDeclaredCapacityInput { - clientMutationId?: string; - resourceDeclaredCapacity: { - cpuLimitMillicores?: string; - cpuRequestMillicores?: string; - installationId: string; - isTransient?: boolean; - kind?: string; - memoryLimitBytes?: string; - memoryRequestBytes?: string; - namespaceId: string; - podCountMax?: number; - podCountMin?: number; - source?: string; - sourceId: string; - storageSizeBytes?: string; - }; +/** A filter to be used against `FunctionInvocation` object types. All fields are combined with a logical ‘and.’ */ +export interface FunctionInvocationFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: FunctionInvocationFilter[]; + /** Filter by the object’s `apiBinding` relation. */ + apiBinding?: FunctionApiBindingFilter; + /** A related `apiBinding` exists. */ + apiBindingExists?: boolean; + /** Filter by the object’s `apiBindingId` field. */ + apiBindingId?: UUIDFilter; + /** Filter by the object’s `channel` field. */ + channel?: StringFilter; + /** Filter by the object’s `completedAt` field. */ + completedAt?: DatetimeFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `definitionScope` field. */ + definitionScope?: StringFilter; + /** Filter by the object’s `durationMs` field. */ + durationMs?: IntFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `entityType` field. */ + entityType?: StringFilter; + /** Filter by the object’s `error` field. */ + error?: StringFilter; + /** Filter by the object’s `functionDefinitionId` field. */ + functionDefinitionId?: UUIDFilter; + /** Filter by the object’s `graphExecutionId` field. */ + graphExecutionId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `jobId` field. */ + jobId?: BigIntFilter; + /** Negates the expression. */ + not?: FunctionInvocationFilter; + /** Checks for any expressions in this list. */ + or?: FunctionInvocationFilter[]; + /** Filter by the object’s `organizationId` field. */ + organizationId?: UUIDFilter; + /** Filter by the object’s `parentInvocationId` field. */ + parentInvocationId?: UUIDFilter; + /** Filter by the object’s `payload` field. */ + payload?: JSONFilter; + /** Filter by the object’s `principalId` field. */ + principalId?: UUIDFilter; + /** Filter by the object’s `provenance` field. */ + provenance?: JSONFilter; + /** Filter by the object’s `result` field. */ + result?: JSONFilter; + /** Filter by the object’s `startedAt` field. */ + startedAt?: DatetimeFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `taskIdentifier` field. */ + taskIdentifier?: StringFilter; } -export interface ResourceDeclaredCapacityPatch { - cpuLimitMillicores?: string | null; - cpuRequestMillicores?: string | null; - installationId?: string | null; - isTransient?: boolean | null; - kind?: string | null; - memoryLimitBytes?: string | null; - memoryRequestBytes?: string | null; - namespaceId?: string | null; - podCountMax?: number | null; - podCountMin?: number | null; - source?: string | null; - sourceId?: string | null; - storageSizeBytes?: string | null; +/** A filter to be used against `FunctionApiBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface FunctionApiBindingFilter { + /** Filter by the object’s `alias` field. */ + alias?: StringFilter; + /** Checks for all expressions in this list. */ + and?: FunctionApiBindingFilter[]; + /** 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 `functionDefinition` relation. */ + functionDefinition?: FunctionDefinitionFilter; + /** Filter by the object’s `functionDefinitionId` field. */ + functionDefinitionId?: UUIDFilter; + /** Filter by the object’s `functionInvocationsByApiBindingId` relation. */ + functionInvocationsByApiBindingId?: FunctionApiBindingToManyFunctionInvocationFilter; + /** `functionInvocationsByApiBindingId` exist. */ + functionInvocationsByApiBindingIdExist?: boolean; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: FunctionApiBindingFilter; + /** Checks for any expressions in this list. */ + or?: FunctionApiBindingFilter[]; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; } -export interface UpdateResourceDeclaredCapacityInput { - clientMutationId?: string; - id: string; - resourceDeclaredCapacityPatch: ResourceDeclaredCapacityPatch; +/** A filter to be used against `FunctionCapabilityBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface FunctionCapabilityBindingFilter { + /** Checks for all expressions in this list. */ + and?: FunctionCapabilityBindingFilter[]; + /** 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 `function` relation. */ + function?: FunctionDefinitionFilter; + /** A related `function` exists. */ + functionExists?: boolean; + /** Filter by the object’s `functionId` field. */ + functionId?: UUIDFilter; + /** Filter by the object’s `graphId` field. */ + graphId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `key` field. */ + key?: StringFilter; + /** Filter by the object’s `lifecycle` field. */ + lifecycle?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Negates the expression. */ + not?: FunctionCapabilityBindingFilter; + /** Checks for any expressions in this list. */ + or?: FunctionCapabilityBindingFilter[]; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; } -export interface DeleteResourceDeclaredCapacityInput { - clientMutationId?: string; - id: string; +/** A filter to be used against `WebhookEndpoint` object types. All fields are combined with a logical ‘and.’ */ +export interface WebhookEndpointFilter { + /** Filter by the object’s `active` field. */ + active?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: WebhookEndpointFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `functionDefinition` relation. */ + functionDefinition?: FunctionDefinitionFilter; + /** Filter by the object’s `functionDefinitionId` field. */ + functionDefinitionId?: UUIDFilter; + /** Filter by the object’s `host` field. */ + host?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: WebhookEndpointFilter; + /** Checks for any expressions in this list. */ + or?: WebhookEndpointFilter[]; + /** Filter by the object’s `path` field. */ + path?: StringFilter; + /** Filter by the object’s `provider` field. */ + provider?: StringFilter; + /** Filter by the object’s `replayWindowSeconds` field. */ + replayWindowSeconds?: IntFilter; + /** Filter by the object’s `signingSecretName` field. */ + signingSecretName?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** Filter by the object’s `webhookEventsByEndpointId` relation. */ + webhookEventsByEndpointId?: WebhookEndpointToManyWebhookEventFilter; + /** `webhookEventsByEndpointId` exist. */ + webhookEventsByEndpointIdExist?: boolean; } -export interface CreateResourceDefinitionInput { - clientMutationId?: string; - resourceDefinition: { - annotations?: Record; - createdBy?: string; - databaseId: string; - defaultSpec?: Record; - description?: string; - integrations?: string[]; - kind: string; - labels?: Record; - name: string; - namespaceId: string; - paramsSchema?: Record; - requiredConfigs?: ResourceRequirementInput[]; - requiredSecrets?: ResourceRequirementInput[]; - slug: string; - stepUpMinAge?: IntervalInput; - updatedBy?: string; - }; +/** A filter to be used against `FunctionGraphExecution` object types. All fields are combined with a logical ‘and.’ */ +export interface FunctionGraphExecutionFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: FunctionGraphExecutionFilter[]; + /** Filter by the object’s `completedAt` field. */ + completedAt?: DatetimeFilter; + /** Filter by the object’s `currentWave` field. */ + currentWave?: IntFilter; + /** Filter by the object’s `definitionsCommitId` field. */ + definitionsCommitId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `entityType` field. */ + entityType?: StringFilter; + /** Filter by the object’s `errorCode` field. */ + errorCode?: StringFilter; + /** Filter by the object’s `errorMessage` field. */ + errorMessage?: StringFilter; + /** Filter by the object’s `executionPlan` field. */ + executionPlan?: JSONFilter; + /** Filter by the object’s `graph` relation. */ + graph?: FunctionGraphFilter; + /** Filter by the object’s `graphId` field. */ + graphId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `inputPayload` field. */ + inputPayload?: JSONFilter; + /** Filter by the object’s `invocationCreatedAt` field. */ + invocationCreatedAt?: DatetimeFilter; + /** Filter by the object’s `invocationId` field. */ + invocationId?: UUIDFilter; + /** Filter by the object’s `lastProgressAt` field. */ + lastProgressAt?: DatetimeFilter; + /** Filter by the object’s `maxPendingJobs` field. */ + maxPendingJobs?: IntFilter; + /** Filter by the object’s `maxTicks` field. */ + maxTicks?: IntFilter; + /** Filter by the object’s `nodeOutputs` field. */ + nodeOutputs?: JSONFilter; + /** Negates the expression. */ + not?: FunctionGraphExecutionFilter; + /** Checks for any expressions in this list. */ + or?: FunctionGraphExecutionFilter[]; + /** Filter by the object’s `organizationId` field. */ + organizationId?: UUIDFilter; + /** Filter by the object’s `outputNames` field. */ + outputNames?: StringListFilter; + /** Filter by the object’s `outputNode` field. */ + outputNode?: StringFilter; + /** Filter by the object’s `outputPayload` field. */ + outputPayload?: JSONFilter; + /** Filter by the object’s `outputPort` field. */ + outputPort?: StringFilter; + /** Filter by the object’s `parentExecutionId` field. */ + parentExecutionId?: UUIDFilter; + /** Filter by the object’s `parentInvocationId` field. */ + parentInvocationId?: UUIDFilter; + /** Filter by the object’s `parentNodeName` field. */ + parentNodeName?: StringFilter; + /** Filter by the object’s `principalId` field. */ + principalId?: UUIDFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; + /** Filter by the object’s `startedAt` field. */ + startedAt?: DatetimeFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `tickCount` field. */ + tickCount?: IntFilter; + /** Filter by the object’s `timeoutAt` field. */ + timeoutAt?: DatetimeFilter; } -export interface ResourceDefinitionPatch { - annotations?: Record | null; - createdBy?: string | null; - databaseId?: string | null; - defaultSpec?: Record | null; - description?: string | null; - integrations?: string[] | null; - kind?: string | null; - labels?: Record | null; - name?: string | null; - namespaceId?: string | null; - paramsSchema?: Record | null; - requiredConfigs?: ResourceRequirementInput[] | null; - requiredSecrets?: ResourceRequirementInput[] | null; - slug?: string | null; - stepUpMinAge?: IntervalInput | null; - updatedBy?: string | null; +/** A filter to be used against `PlatformFunctionDefinition` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformFunctionDefinitionFilter { + /** Filter by the object’s `accessChannels` field. */ + accessChannels?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: PlatformFunctionDefinitionFilter[]; + /** Filter by the object’s `anonymousCallable` field. */ + anonymousCallable?: BooleanFilter; + /** Filter by the object’s `billable` field. */ + billable?: BooleanFilter; + /** Filter by the object’s `category` field. */ + category?: StringFilter; + /** Filter by the object’s `concurrency` field. */ + concurrency?: IntFilter; + /** Filter by the object’s `cpuLimitMillicores` field. */ + cpuLimitMillicores?: BigIntFilter; + /** Filter by the object’s `cpuRequestMillicores` field. */ + cpuRequestMillicores?: BigIntFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `fnCategory` field. */ + fnCategory?: StringFilter; + /** Filter by the object’s `functionColumns` field. */ + functionColumns?: JSONFilter; + /** Filter by the object’s `graph` relation. */ + graph?: FunctionGraphFilter; + /** A related `graph` exists. */ + graphExists?: boolean; + /** Filter by the object’s `graphId` field. */ + graphId?: UUIDFilter; + /** Filter by the object’s `icon` field. */ + icon?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `image` field. */ + image?: StringFilter; + /** Filter by the object’s `inputs` field. */ + inputs?: JSONFilter; + /** Filter by the object’s `integrations` field. */ + integrations?: StringListFilter; + /** Filter by the object’s `isPublished` field. */ + isPublished?: BooleanFilter; + /** Filter by the object’s `maxAttempts` field. */ + maxAttempts?: IntFilter; + /** Filter by the object’s `memoryLimitBytes` field. */ + memoryLimitBytes?: BigIntFilter; + /** Filter by the object’s `memoryRequestBytes` field. */ + memoryRequestBytes?: BigIntFilter; + /** Filter by the object’s `moduleTable` field. */ + moduleTable?: StringFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: PlatformFunctionDefinitionFilter; + /** Checks for any expressions in this list. */ + or?: PlatformFunctionDefinitionFilter[]; + /** Filter by the object’s `outputs` field. */ + outputs?: JSONFilter; + /** Filter by the object’s `payloadArgs` field. */ + payloadArgs?: JSONFilter; + /** Filter by the object’s `platformFunctionApiBindingsByFunctionDefinitionId` relation. */ + platformFunctionApiBindingsByFunctionDefinitionId?: PlatformFunctionDefinitionToManyPlatformFunctionApiBindingFilter; + /** `platformFunctionApiBindingsByFunctionDefinitionId` exist. */ + platformFunctionApiBindingsByFunctionDefinitionIdExist?: boolean; + /** Filter by the object’s `platformFunctionCapabilityBindingsByFunctionId` relation. */ + platformFunctionCapabilityBindingsByFunctionId?: PlatformFunctionDefinitionToManyPlatformFunctionCapabilityBindingFilter; + /** `platformFunctionCapabilityBindingsByFunctionId` exist. */ + platformFunctionCapabilityBindingsByFunctionIdExist?: boolean; + /** Filter by the object’s `platformWebhookEndpointsByFunctionDefinitionId` relation. */ + platformWebhookEndpointsByFunctionDefinitionId?: PlatformFunctionDefinitionToManyPlatformWebhookEndpointFilter; + /** `platformWebhookEndpointsByFunctionDefinitionId` exist. */ + platformWebhookEndpointsByFunctionDefinitionIdExist?: boolean; + /** Filter by the object’s `priority` field. */ + priority?: IntFilter; + /** Filter by the object’s `props` field. */ + props?: JSONFilter; + /** Filter by the object’s `protected` field. */ + protected?: BooleanFilter; + /** Filter by the object’s `publishedAt` field. */ + publishedAt?: DatetimeFilter; + /** Filter by the object’s `queueName` field. */ + queueName?: StringFilter; + /** Filter by the object’s `requiredBuckets` field. */ + requiredBuckets?: StringListFilter; + /** Filter by the object’s `requiredCapabilities` field. */ + requiredCapabilities?: JSONFilter; + /** 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. */ + runtime?: StringFilter; + /** Filter by the object’s `scaleMax` field. */ + scaleMax?: IntFilter; + /** Filter by the object’s `scaleMin` field. */ + scaleMin?: IntFilter; + /** Filter by the object’s `system` field. */ + system?: BooleanFilter; + /** Filter by the object’s `targetFunction` field. */ + targetFunction?: StringFilter; + /** Filter by the object’s `targetSchema` field. */ + targetSchema?: StringFilter; + /** Filter by the object’s `taskIdentifier` field. */ + taskIdentifier?: StringFilter; + /** Filter by the object’s `timeoutSeconds` field. */ + timeoutSeconds?: IntFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** Filter by the object’s `volatile` field. */ + volatile?: BooleanFilter; } -export interface UpdateResourceDefinitionInput { - clientMutationId?: string; - id: string; - resourceDefinitionPatch: ResourceDefinitionPatch; +/** A filter to be used against `PlatformRepositoryWorkflow` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformRepositoryWorkflowFilter { + /** Checks for all expressions in this list. */ + and?: PlatformRepositoryWorkflowFilter[]; + /** Filter by the object’s `cancelInProgress` field. */ + cancelInProgress?: BooleanFilter; + /** Filter by the object’s `concurrencyKey` field. */ + concurrencyKey?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `eventType` field. */ + eventType?: StringFilter; + /** Filter by the object’s `graph` relation. */ + graph?: FunctionGraphFilter; + /** A related `graph` exists. */ + graphExists?: boolean; + /** Filter by the object’s `graphId` field. */ + graphId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `inputs` field. */ + inputs?: JSONFilter; + /** Filter by the object’s `isEnabled` field. */ + isEnabled?: BooleanFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: PlatformRepositoryWorkflowFilter; + /** Checks for any expressions in this list. */ + or?: PlatformRepositoryWorkflowFilter[]; + /** Filter by the object’s `platformBuildsByWorkflowId` relation. */ + platformBuildsByWorkflowId?: PlatformRepositoryWorkflowToManyPlatformBuildFilter; + /** `platformBuildsByWorkflowId` exist. */ + platformBuildsByWorkflowIdExist?: boolean; + /** Filter by the object’s `platformRepositoryRequiredChecksByWorkflowId` relation. */ + platformRepositoryRequiredChecksByWorkflowId?: PlatformRepositoryWorkflowToManyPlatformRepositoryRequiredCheckFilter; + /** `platformRepositoryRequiredChecksByWorkflowId` exist. */ + platformRepositoryRequiredChecksByWorkflowIdExist?: boolean; + /** Filter by the object’s `refPattern` field. */ + refPattern?: StringFilter; + /** Filter by the object’s `repository` relation. */ + repository?: PlatformRepositoryFilter; + /** Filter by the object’s `repositoryId` field. */ + repositoryId?: UUIDFilter; + /** Filter by the object’s `requiredSecrets` field. */ + requiredSecrets?: StringListFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface DeleteResourceDefinitionInput { - clientMutationId?: string; - id: string; +/** A filter to be used against `ImageGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface ImageGrantFilter { + /** Filter by the object’s `actions` field. */ + actions?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: ImageGrantFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; + /** Filter by the object’s `grantedBy` field. */ + grantedBy?: UUIDFilter; + /** Filter by the object’s `granteeKey` field. */ + granteeKey?: UUIDFilter; + /** Filter by the object’s `granteeScope` field. */ + granteeScope?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `image` relation. */ + image?: ImageFilter; + /** Filter by the object’s `imageId` field. */ + imageId?: UUIDFilter; + /** Negates the expression. */ + not?: ImageGrantFilter; + /** Checks for any expressions in this list. */ + or?: ImageGrantFilter[]; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface CreateResourceEventInput { - clientMutationId?: string; - resourceEvent: { - actorId?: string; - databaseId: string; - eventType: string; - message?: string; - metadata?: Record; - resourceId: string; - }; +/** A filter to be used against `BuilderBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface BuilderBindingFilter { + /** Checks for all expressions in this list. */ + and?: BuilderBindingFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `installationId` field. */ + installationId?: UUIDFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: BuilderBindingFilter; + /** Filter by the object’s `observedHost` field. */ + observedHost?: StringFilter; + /** Checks for any expressions in this list. */ + or?: BuilderBindingFilter[]; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface ResourceEventPatch { - actorId?: string | null; - databaseId?: string | null; - eventType?: string | null; - message?: string | null; - metadata?: Record | null; - resourceId?: string | null; +/** A filter to be used against `FunctionDeployment` object types. All fields are combined with a logical ‘and.’ */ +export interface FunctionDeploymentFilter { + /** Checks for all expressions in this list. */ + and?: FunctionDeploymentFilter[]; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Filter by the object’s `concurrency` field. */ + concurrency?: IntFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `errorCount` field. */ + errorCount?: IntFilter; + /** Filter by the object’s `handlerName` field. */ + handlerName?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `image` field. */ + image?: StringFilter; + /** Filter by the object’s `imageVersion` field. */ + imageVersion?: StringFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `lastErrorAt` field. */ + lastErrorAt?: DatetimeFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + 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. */ + revision?: IntFilter; + /** Filter by the object’s `scaleMax` field. */ + scaleMax?: IntFilter; + /** Filter by the object’s `scaleMin` field. */ + scaleMin?: IntFilter; + /** Filter by the object’s `serviceName` field. */ + serviceName?: StringFilter; + /** Filter by the object’s `serviceUrl` field. */ + serviceUrl?: StringFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `timeoutSeconds` field. */ + timeoutSeconds?: IntFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface UpdateResourceEventInput { - clientMutationId?: string; - id: string; - resourceEventPatch: ResourceEventPatch; +/** A filter to be used against `RegistryBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface RegistryBindingFilter { + /** Checks for all expressions in this list. */ + and?: RegistryBindingFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: RegistryBindingFilter; + /** Filter by the object’s `observedCredentialVersion` field. */ + observedCredentialVersion?: StringFilter; + /** Checks for any expressions in this list. */ + or?: RegistryBindingFilter[]; + /** Filter by the object’s `pullSecretName` field. */ + pullSecretName?: StringFilter; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; + /** Filter by the object’s `registry` relation. */ + registry?: RegistryFilter; + /** Filter by the object’s `registryHost` field. */ + registryHost?: StringFilter; + /** Filter by the object’s `registryId` field. */ + registryId?: UUIDFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface DeleteResourceEventInput { - clientMutationId?: string; - id: string; +/** A filter to be used against `ResourceDefinition` object types. All fields are combined with a logical ‘and.’ */ +export interface ResourceDefinitionFilter { + /** Checks for all expressions in this list. */ + and?: ResourceDefinitionFilter[]; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `defaultSpec` field. */ + defaultSpec?: JSONFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `integrations` field. */ + integrations?: StringListFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: ResourceDefinitionFilter; + /** Checks for any expressions in this list. */ + or?: ResourceDefinitionFilter[]; + /** Filter by the object’s `paramsSchema` field. */ + paramsSchema?: JSONFilter; + /** Filter by the object’s `resources` relation. */ + resources?: ResourceDefinitionToManyResourceFilter; + /** `resources` exist. */ + resourcesExist?: boolean; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `stepUpMinAge` field. */ + stepUpMinAge?: IntervalFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface CreateResourceInstallationInput { - clientMutationId?: string; - resourceInstallation: { - commitId?: string; - createdBy?: string; - databaseId: string; - name: string; - namespaceId: string; - params?: Record; - revision?: number; - slug: string; - status?: string; - storeId?: string; - updatedBy?: string; - }; +/** A filter to be used against `ResourceInstallation` object types. All fields are combined with a logical ‘and.’ */ +export interface ResourceInstallationFilter { + /** Checks for all expressions in this list. */ + and?: ResourceInstallationFilter[]; + /** Filter by the object’s `commitId` field. */ + commitId?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: ResourceInstallationFilter; + /** Checks for any expressions in this list. */ + or?: ResourceInstallationFilter[]; + /** Filter by the object’s `params` field. */ + params?: JSONFilter; + /** Filter by the object’s `registriesByInstallationId` relation. */ + registriesByInstallationId?: ResourceInstallationToManyRegistryFilter; + /** `registriesByInstallationId` exist. */ + registriesByInstallationIdExist?: boolean; + /** Filter by the object’s `resourcesByInstallationId` relation. */ + resourcesByInstallationId?: ResourceInstallationToManyResourceFilter; + /** `resourcesByInstallationId` exist. */ + resourcesByInstallationIdExist?: boolean; + /** Filter by the object’s `revision` field. */ + revision?: IntFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `storeId` field. */ + storeId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface ResourceInstallationPatch { - commitId?: string | null; - createdBy?: string | null; - databaseId?: string | null; - name?: string | null; - namespaceId?: string | null; - params?: Record | null; - revision?: number | null; - slug?: string | null; - status?: string | null; - storeId?: string | null; - updatedBy?: string | null; +/** A filter to be used against `Resource` object types. All fields are combined with a logical ‘and.’ */ +export interface ResourceFilter { + /** Checks for all expressions in this list. */ + and?: ResourceFilter[]; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Filter by the object’s `cpuLimitMillicores` field. */ + cpuLimitMillicores?: BigIntFilter; + /** Filter by the object’s `cpuRequestMillicores` field. */ + cpuRequestMillicores?: BigIntFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `errorCount` field. */ + errorCount?: IntFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `imageRef` field. */ + imageRef?: StringFilter; + /** Filter by the object’s `installation` relation. */ + installation?: ResourceInstallationFilter; + /** A related `installation` exists. */ + installationExists?: boolean; + /** Filter by the object’s `installationId` field. */ + installationId?: UUIDFilter; + /** Filter by the object’s `integrations` field. */ + integrations?: StringListFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `lastHeartbeatAt` field. */ + lastHeartbeatAt?: DatetimeFilter; + /** Filter by the object’s `memoryLimitBytes` field. */ + memoryLimitBytes?: BigIntFilter; + /** Filter by the object’s `memoryRequestBytes` field. */ + memoryRequestBytes?: BigIntFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: ResourceFilter; + /** Checks for any expressions in this list. */ + or?: ResourceFilter[]; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; + /** Filter by the object’s `replicas` field. */ + replicas?: IntFilter; + /** Filter by the object’s `resourceDefinition` relation. */ + resourceDefinition?: ResourceDefinitionFilter; + /** A related `resourceDefinition` exists. */ + resourceDefinitionExists?: boolean; + /** Filter by the object’s `resourceDefinitionId` field. */ + resourceDefinitionId?: UUIDFilter; + /** Filter by the object’s `resourceStatusChecks` relation. */ + resourceStatusChecks?: ResourceToManyResourceStatusCheckFilter; + /** `resourceStatusChecks` exist. */ + resourceStatusChecksExist?: boolean; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `spec` field. */ + spec?: JSONFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `statusObserved` field. */ + statusObserved?: JSONFilter; + /** Filter by the object’s `storageClass` field. */ + storageClass?: StringFilter; + /** Filter by the object’s `storageSizeBytes` field. */ + storageSizeBytes?: BigIntFilter; + /** Filter by the object’s `storageTotalBytes` field. */ + storageTotalBytes?: BigIntFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface UpdateResourceInstallationInput { - clientMutationId?: string; - id: string; - resourceInstallationPatch: ResourceInstallationPatch; +/** A filter to be used against `PlatformFunctionInvocation` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformFunctionInvocationFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: PlatformFunctionInvocationFilter[]; + /** Filter by the object’s `apiBinding` relation. */ + apiBinding?: PlatformFunctionApiBindingFilter; + /** A related `apiBinding` exists. */ + apiBindingExists?: boolean; + /** Filter by the object’s `apiBindingId` field. */ + apiBindingId?: UUIDFilter; + /** Filter by the object’s `channel` field. */ + channel?: StringFilter; + /** Filter by the object’s `completedAt` field. */ + completedAt?: DatetimeFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `definitionScope` field. */ + definitionScope?: StringFilter; + /** Filter by the object’s `durationMs` field. */ + durationMs?: IntFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `entityType` field. */ + entityType?: StringFilter; + /** Filter by the object’s `error` field. */ + error?: StringFilter; + /** Filter by the object’s `functionDefinitionId` field. */ + functionDefinitionId?: UUIDFilter; + /** Filter by the object’s `graphExecutionId` field. */ + graphExecutionId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `jobId` field. */ + jobId?: BigIntFilter; + /** Negates the expression. */ + not?: PlatformFunctionInvocationFilter; + /** Checks for any expressions in this list. */ + or?: PlatformFunctionInvocationFilter[]; + /** Filter by the object’s `organizationId` field. */ + organizationId?: UUIDFilter; + /** Filter by the object’s `parentInvocationId` field. */ + parentInvocationId?: UUIDFilter; + /** Filter by the object’s `payload` field. */ + payload?: JSONFilter; + /** Filter by the object’s `principalId` field. */ + principalId?: UUIDFilter; + /** Filter by the object’s `provenance` field. */ + provenance?: JSONFilter; + /** Filter by the object’s `result` field. */ + result?: JSONFilter; + /** Filter by the object’s `startedAt` field. */ + startedAt?: DatetimeFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `taskIdentifier` field. */ + taskIdentifier?: StringFilter; } -export interface DeleteResourceInstallationInput { - clientMutationId?: string; - id: string; +/** A filter to be used against `PlatformFunctionApiBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformFunctionApiBindingFilter { + /** Filter by the object’s `alias` field. */ + alias?: StringFilter; + /** Checks for all expressions in this list. */ + and?: PlatformFunctionApiBindingFilter[]; + /** 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 `functionDefinition` relation. */ + functionDefinition?: PlatformFunctionDefinitionFilter; + /** Filter by the object’s `functionDefinitionId` field. */ + functionDefinitionId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformFunctionApiBindingFilter; + /** Checks for any expressions in this list. */ + or?: PlatformFunctionApiBindingFilter[]; + /** Filter by the object’s `platformFunctionInvocationsByApiBindingId` relation. */ + platformFunctionInvocationsByApiBindingId?: PlatformFunctionApiBindingToManyPlatformFunctionInvocationFilter; + /** `platformFunctionInvocationsByApiBindingId` exist. */ + platformFunctionInvocationsByApiBindingIdExist?: boolean; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; } -export interface CreateResourceStatusCheckInput { - clientMutationId?: string; - resourceStatusCheck: { - completedAt?: string; - databaseId: string; - requestedAt?: string; - requestedBy?: string; - resourceId: string; - result?: Record; - status?: string; - }; +/** A filter to be used against `PlatformFunctionCapabilityBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformFunctionCapabilityBindingFilter { + /** Checks for all expressions in this list. */ + and?: PlatformFunctionCapabilityBindingFilter[]; + /** Filter by the object’s `bucketId` field. */ + bucketId?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `function` relation. */ + function?: PlatformFunctionDefinitionFilter; + /** A related `function` exists. */ + functionExists?: boolean; + /** Filter by the object’s `functionId` field. */ + functionId?: UUIDFilter; + /** Filter by the object’s `graphId` field. */ + graphId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `key` field. */ + key?: StringFilter; + /** Filter by the object’s `lifecycle` field. */ + lifecycle?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Negates the expression. */ + not?: PlatformFunctionCapabilityBindingFilter; + /** Checks for any expressions in this list. */ + or?: PlatformFunctionCapabilityBindingFilter[]; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; } -export interface ResourceStatusCheckPatch { - completedAt?: string | null; - databaseId?: string | null; - requestedAt?: string | null; - requestedBy?: string | null; - resourceId?: string | null; - result?: Record | null; - status?: string | null; +/** A filter to be used against `PlatformWebhookEndpoint` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformWebhookEndpointFilter { + /** Filter by the object’s `active` field. */ + active?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: PlatformWebhookEndpointFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `functionDefinition` relation. */ + functionDefinition?: PlatformFunctionDefinitionFilter; + /** Filter by the object’s `functionDefinitionId` field. */ + functionDefinitionId?: UUIDFilter; + /** Filter by the object’s `host` field. */ + host?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: PlatformNamespaceFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformWebhookEndpointFilter; + /** Checks for any expressions in this list. */ + or?: PlatformWebhookEndpointFilter[]; + /** Filter by the object’s `path` field. */ + path?: StringFilter; + /** Filter by the object’s `platformWebhookEventsByEndpointId` relation. */ + platformWebhookEventsByEndpointId?: PlatformWebhookEndpointToManyPlatformWebhookEventFilter; + /** `platformWebhookEventsByEndpointId` exist. */ + platformWebhookEventsByEndpointIdExist?: boolean; + /** Filter by the object’s `provider` field. */ + provider?: StringFilter; + /** Filter by the object’s `replayWindowSeconds` field. */ + replayWindowSeconds?: IntFilter; + /** Filter by the object’s `signingSecretName` field. */ + signingSecretName?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface UpdateResourceStatusCheckInput { - clientMutationId?: string; - id: string; - resourceStatusCheckPatch: ResourceStatusCheckPatch; +/** A filter to be used against `PlatformImageGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformImageGrantFilter { + /** Filter by the object’s `actions` field. */ + actions?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: PlatformImageGrantFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; + /** Filter by the object’s `grantedBy` field. */ + grantedBy?: UUIDFilter; + /** Filter by the object’s `granteeKey` field. */ + granteeKey?: UUIDFilter; + /** Filter by the object’s `granteeScope` field. */ + granteeScope?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `image` relation. */ + image?: PlatformImageFilter; + /** Filter by the object’s `imageId` field. */ + imageId?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformImageGrantFilter; + /** Checks for any expressions in this list. */ + or?: PlatformImageGrantFilter[]; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface DeleteResourceStatusCheckInput { - clientMutationId?: string; - id: string; +/** A filter to be used against `PlatformBuilderBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformBuilderBindingFilter { + /** Checks for all expressions in this list. */ + and?: PlatformBuilderBindingFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `installationId` field. */ + installationId?: UUIDFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: PlatformNamespaceFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformBuilderBindingFilter; + /** Filter by the object’s `observedHost` field. */ + observedHost?: StringFilter; + /** Checks for any expressions in this list. */ + or?: PlatformBuilderBindingFilter[]; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface CreateResourceUsageLogInput { - clientMutationId?: string; - resourceUsageLog: { - cpuMillicores?: string; - databaseId: string; - intervalSeconds: number; - memoryBytes?: string; - metrics?: Record; - namespaceId: string; - resourceId?: string; - sampledAt?: string; - source: string; - }; +/** A filter to be used against `PlatformFunctionDeployment` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformFunctionDeploymentFilter { + /** Checks for all expressions in this list. */ + and?: PlatformFunctionDeploymentFilter[]; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Filter by the object’s `concurrency` field. */ + concurrency?: IntFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `errorCount` field. */ + errorCount?: IntFilter; + /** Filter by the object’s `handlerName` field. */ + handlerName?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `image` field. */ + image?: StringFilter; + /** Filter by the object’s `imageVersion` field. */ + imageVersion?: StringFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `lastErrorAt` field. */ + lastErrorAt?: DatetimeFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: PlatformNamespaceFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + 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. */ + revision?: IntFilter; + /** Filter by the object’s `scaleMax` field. */ + scaleMax?: IntFilter; + /** Filter by the object’s `scaleMin` field. */ + scaleMin?: IntFilter; + /** Filter by the object’s `serviceName` field. */ + serviceName?: StringFilter; + /** Filter by the object’s `serviceUrl` field. */ + serviceUrl?: StringFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `timeoutSeconds` field. */ + timeoutSeconds?: IntFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface ResourceUsageLogPatch { - cpuMillicores?: string | null; - databaseId?: string | null; - intervalSeconds?: number | null; - memoryBytes?: string | null; - metrics?: Record | null; - namespaceId?: string | null; - resourceId?: string | null; - sampledAt?: string | null; - source?: string | null; +/** A filter to be used against `PlatformRegistryBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformRegistryBindingFilter { + /** Checks for all expressions in this list. */ + and?: PlatformRegistryBindingFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: PlatformNamespaceFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformRegistryBindingFilter; + /** Filter by the object’s `observedCredentialVersion` field. */ + observedCredentialVersion?: StringFilter; + /** Checks for any expressions in this list. */ + or?: PlatformRegistryBindingFilter[]; + /** Filter by the object’s `pullSecretName` field. */ + pullSecretName?: StringFilter; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; + /** Filter by the object’s `registry` relation. */ + registry?: PlatformRegistryFilter; + /** Filter by the object’s `registryHost` field. */ + registryHost?: StringFilter; + /** Filter by the object’s `registryId` field. */ + registryId?: UUIDFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface UpdateResourceUsageLogInput { - clientMutationId?: string; - id: string; - resourceUsageLogPatch: ResourceUsageLogPatch; +/** A filter to be used against `PlatformResourceDefinition` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformResourceDefinitionFilter { + /** Checks for all expressions in this list. */ + and?: PlatformResourceDefinitionFilter[]; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `defaultSpec` field. */ + defaultSpec?: JSONFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `integrations` field. */ + integrations?: StringListFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: PlatformNamespaceFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformResourceDefinitionFilter; + /** Checks for any expressions in this list. */ + or?: PlatformResourceDefinitionFilter[]; + /** Filter by the object’s `paramsSchema` field. */ + paramsSchema?: JSONFilter; + /** Filter by the object’s `platformResourcesByResourceDefinitionId` relation. */ + platformResourcesByResourceDefinitionId?: PlatformResourceDefinitionToManyPlatformResourceFilter; + /** `platformResourcesByResourceDefinitionId` exist. */ + platformResourcesByResourceDefinitionIdExist?: boolean; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `stepUpMinAge` field. */ + stepUpMinAge?: IntervalFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} +/** A filter to be used against `PlatformResourceInstallation` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformResourceInstallationFilter { + /** Checks for all expressions in this list. */ + and?: PlatformResourceInstallationFilter[]; + /** Filter by the object’s `commitId` field. */ + commitId?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: PlatformNamespaceFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformResourceInstallationFilter; + /** Checks for any expressions in this list. */ + or?: PlatformResourceInstallationFilter[]; + /** Filter by the object’s `params` field. */ + params?: JSONFilter; + /** Filter by the object’s `platformRegistriesByInstallationId` relation. */ + platformRegistriesByInstallationId?: PlatformResourceInstallationToManyPlatformRegistryFilter; + /** `platformRegistriesByInstallationId` exist. */ + platformRegistriesByInstallationIdExist?: boolean; + /** Filter by the object’s `platformResourcesByInstallationId` relation. */ + platformResourcesByInstallationId?: PlatformResourceInstallationToManyPlatformResourceFilter; + /** `platformResourcesByInstallationId` exist. */ + platformResourcesByInstallationIdExist?: boolean; + /** Filter by the object’s `revision` field. */ + revision?: IntFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `storeId` field. */ + storeId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface DeleteResourceUsageLogInput { - clientMutationId?: string; - id: string; +/** A filter to be used against `PlatformResource` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformResourceFilter { + /** Checks for all expressions in this list. */ + and?: PlatformResourceFilter[]; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Filter by the object’s `cpuLimitMillicores` field. */ + cpuLimitMillicores?: BigIntFilter; + /** Filter by the object’s `cpuRequestMillicores` field. */ + cpuRequestMillicores?: BigIntFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `errorCount` field. */ + errorCount?: IntFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `imageRef` field. */ + imageRef?: StringFilter; + /** Filter by the object’s `installation` relation. */ + installation?: PlatformResourceInstallationFilter; + /** A related `installation` exists. */ + installationExists?: boolean; + /** Filter by the object’s `installationId` field. */ + installationId?: UUIDFilter; + /** Filter by the object’s `integrations` field. */ + integrations?: StringListFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `lastHeartbeatAt` field. */ + lastHeartbeatAt?: DatetimeFilter; + /** Filter by the object’s `memoryLimitBytes` field. */ + memoryLimitBytes?: BigIntFilter; + /** Filter by the object’s `memoryRequestBytes` field. */ + memoryRequestBytes?: BigIntFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: PlatformNamespaceFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformResourceFilter; + /** Checks for any expressions in this list. */ + or?: PlatformResourceFilter[]; + /** Filter by the object’s `platformResourceStatusChecksByResourceId` relation. */ + platformResourceStatusChecksByResourceId?: PlatformResourceToManyPlatformResourceStatusCheckFilter; + /** `platformResourceStatusChecksByResourceId` exist. */ + platformResourceStatusChecksByResourceIdExist?: boolean; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; + /** Filter by the object’s `replicas` field. */ + replicas?: IntFilter; + /** Filter by the object’s `resourceDefinition` relation. */ + resourceDefinition?: PlatformResourceDefinitionFilter; + /** A related `resourceDefinition` exists. */ + resourceDefinitionExists?: boolean; + /** Filter by the object’s `resourceDefinitionId` field. */ + resourceDefinitionId?: UUIDFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `spec` field. */ + spec?: JSONFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `statusObserved` field. */ + statusObserved?: JSONFilter; + /** Filter by the object’s `storageClass` field. */ + storageClass?: StringFilter; + /** Filter by the object’s `storageSizeBytes` field. */ + storageSizeBytes?: BigIntFilter; + /** Filter by the object’s `storageTotalBytes` field. */ + storageTotalBytes?: BigIntFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface CreateResourceUsageSummaryInput { - clientMutationId?: string; - resourceUsageSummary: { - databaseId: string; - date: string; - gbSeconds?: string; - maxCpuMillicores?: string; - maxMemoryBytes?: string; - namespaceId: string; - resourceId?: string; - runtimeSeconds?: string; - sampleCount?: number; - }; +/** A filter to be used against `PlatformProposalReaction` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformProposalReactionFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: PlatformProposalReactionFilter[]; + /** Filter by the object’s `comment` relation. */ + comment?: PlatformProposalCommentFilter; + /** A related `comment` exists. */ + commentExists?: boolean; + /** Filter by the object’s `commentId` field. */ + commentId?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `emoji` field. */ + emoji?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformProposalReactionFilter; + /** Checks for any expressions in this list. */ + or?: PlatformProposalReactionFilter[]; + /** Filter by the object’s `proposal` relation. */ + proposal?: PlatformProposalFilter; + /** Filter by the object’s `proposalId` field. */ + proposalId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface ResourceUsageSummaryPatch { - databaseId?: string | null; - date?: string | null; - gbSeconds?: string | null; - maxCpuMillicores?: string | null; - maxMemoryBytes?: string | null; - namespaceId?: string | null; - resourceId?: string | null; - runtimeSeconds?: string | null; - sampleCount?: number | null; +/** Similarity metric for vector search */ +export type VectorMetric = 'COSINE' | 'IP' | 'L2'; +/** A filter to be used against `PlatformProposal` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformProposalFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: PlatformProposalFilter[]; + /** Filter by the object’s `body` field. */ + body?: StringTrgmFilter; + /** Filter by the object’s `childPlatformProposals` relation. */ + childPlatformProposals?: PlatformProposalToManyPlatformProposalFilter; + /** `childPlatformProposals` exist. */ + childPlatformProposalsExist?: boolean; + /** Filter by the object’s `closedReason` field. */ + closedReason?: StringTrgmFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `decidedAt` field. */ + decidedAt?: DatetimeFilter; + /** Filter by the object’s `dueAt` field. */ + dueAt?: DatetimeFilter; + /** Filter by the object’s `embedding` field. */ + embedding?: VectorFilter; + /** Filter by the object’s `embeddingUpdatedAt` field. */ + embeddingUpdatedAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringTrgmFilter; + /** Filter by the object’s `labels` field. */ + labels?: StringListFilter; + /** Filter by the object’s `mergeCommit` field. */ + mergeCommit?: StringTrgmFilter; + /** Filter by the object’s `mergeMethod` field. */ + mergeMethod?: StringTrgmFilter; + /** Filter by the object’s `mergeRequestedAt` field. */ + mergeRequestedAt?: DatetimeFilter; + /** Filter by the object’s `mergedAt` field. */ + mergedAt?: DatetimeFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Negates the expression. */ + not?: PlatformProposalFilter; + /** Checks for any expressions in this list. */ + or?: PlatformProposalFilter[]; + /** Filter by the object’s `parent` relation. */ + parent?: PlatformProposalFilter; + /** A related `parent` exists. */ + parentExists?: boolean; + /** Filter by the object’s `parentId` field. */ + parentId?: UUIDFilter; + /** Filter by the object’s `platformBuildsByProposalId` relation. */ + platformBuildsByProposalId?: PlatformProposalToManyPlatformBuildFilter; + /** `platformBuildsByProposalId` exist. */ + platformBuildsByProposalIdExist?: boolean; + /** Filter by the object’s `platformProposalCommentsByProposalId` relation. */ + platformProposalCommentsByProposalId?: PlatformProposalToManyPlatformProposalCommentFilter; + /** `platformProposalCommentsByProposalId` exist. */ + platformProposalCommentsByProposalIdExist?: boolean; + /** Filter by the object’s `platformProposalFileViewsByProposalId` relation. */ + platformProposalFileViewsByProposalId?: PlatformProposalToManyPlatformProposalFileViewFilter; + /** `platformProposalFileViewsByProposalId` exist. */ + platformProposalFileViewsByProposalIdExist?: boolean; + /** Filter by the object’s `platformProposalReactionsByProposalId` relation. */ + platformProposalReactionsByProposalId?: PlatformProposalToManyPlatformProposalReactionFilter; + /** `platformProposalReactionsByProposalId` exist. */ + platformProposalReactionsByProposalIdExist?: boolean; + /** Filter by the object’s `platformProposalReviewsByProposalId` relation. */ + platformProposalReviewsByProposalId?: PlatformProposalToManyPlatformProposalReviewFilter; + /** `platformProposalReviewsByProposalId` exist. */ + platformProposalReviewsByProposalIdExist?: boolean; + /** Filter by the object’s `platformProposalsChunksByPlatformProposalsId` relation. */ + platformProposalsChunksByPlatformProposalsId?: PlatformProposalToManyPlatformProposalsChunkFilter; + /** `platformProposalsChunksByPlatformProposalsId` exist. */ + platformProposalsChunksByPlatformProposalsIdExist?: boolean; + /** Filter by the object’s `priority` field. */ + priority?: BigFloatFilter; + /** Filter by the object’s `repository` relation. */ + repository?: PlatformRepositoryFilter; + /** Filter by the object’s `repositoryId` field. */ + repositoryId?: UUIDFilter; + /** Filter by the object’s `resolution` field. */ + resolution?: StringTrgmFilter; + /** Filter by the object’s `search` field. */ + search?: FullTextFilter; + /** Filter by the object’s `sourceRef` field. */ + sourceRef?: StringTrgmFilter; + /** Filter by the object’s `status` field. */ + status?: StringTrgmFilter; + /** Filter by the object’s `targetRef` field. */ + targetRef?: StringTrgmFilter; + /** Filter by the object’s `title` field. */ + title?: StringTrgmFilter; + /** TRGM search on the `body` column. */ + trgmBody?: TrgmSearchInput; + /** TRGM search on the `closed_reason` column. */ + trgmClosedReason?: TrgmSearchInput; + /** TRGM search on the `kind` column. */ + trgmKind?: TrgmSearchInput; + /** TRGM search on the `merge_commit` column. */ + trgmMergeCommit?: TrgmSearchInput; + /** TRGM search on the `merge_method` column. */ + trgmMergeMethod?: TrgmSearchInput; + /** TRGM search on the `resolution` column. */ + trgmResolution?: TrgmSearchInput; + /** TRGM search on the `source_ref` column. */ + trgmSourceRef?: TrgmSearchInput; + /** TRGM search on the `status` column. */ + trgmStatus?: TrgmSearchInput; + /** TRGM search on the `target_ref` column. */ + trgmTargetRef?: TrgmSearchInput; + /** TRGM search on the `title` column. */ + trgmTitle?: TrgmSearchInput; + /** TSV search on the `search` column. */ + tsvSearch?: string; + /** + * Composite unified search. Provide a search string and it will be dispatched to + * all text-compatible search algorithms (tsvector, BM25, pg_trgm) + * simultaneously. When the LLM plugin is active, pgvector also participates via + * auto-embedding. Rows matching ANY algorithm are returned. All matching score + * fields are populated. + */ + unifiedSearch?: string; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** VECTOR search on the `embedding` column. */ + vectorEmbedding?: VectorNearbyInput; } -export interface UpdateResourceUsageSummaryInput { - clientMutationId?: string; - id: string; - resourceUsageSummaryPatch: ResourceUsageSummaryPatch; +/** A filter to be used against `PlatformBuild` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformBuildFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: PlatformBuildFilter[]; + /** Filter by the object’s `attempt` field. */ + attempt?: IntFilter; + /** Filter by the object’s `commitSha` field. */ + commitSha?: StringFilter; + /** Filter by the object’s `conclusion` field. */ + conclusion?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `event` relation. */ + event?: PlatformRepositoryEventFilter; + /** A related `event` exists. */ + eventExists?: boolean; + /** Filter by the object’s `eventId` field. */ + eventId?: UUIDFilter; + /** Filter by the object’s `finishedAt` field. */ + finishedAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `imageRef` field. */ + imageRef?: StringFilter; + /** Filter by the object’s `jobId` field. */ + jobId?: BigIntFilter; + /** Filter by the object’s `logs` field. */ + logs?: ConstructiveInternalTypeUploadFilter; + /** Filter by the object’s `matrixKey` field. */ + matrixKey?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Negates the expression. */ + not?: PlatformBuildFilter; + /** Checks for any expressions in this list. */ + or?: PlatformBuildFilter[]; + /** Filter by the object’s `proposal` relation. */ + proposal?: PlatformProposalFilter; + /** A related `proposal` exists. */ + proposalExists?: boolean; + /** Filter by the object’s `proposalId` field. */ + proposalId?: UUIDFilter; + /** Filter by the object’s `ref` field. */ + ref?: StringFilter; + /** Filter by the object’s `repository` relation. */ + repository?: PlatformRepositoryFilter; + /** Filter by the object’s `repositoryId` field. */ + repositoryId?: UUIDFilter; + /** Filter by the object’s `startedAt` field. */ + startedAt?: DatetimeFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** Filter by the object’s `workflow` relation. */ + workflow?: PlatformRepositoryWorkflowFilter; + /** A related `workflow` exists. */ + workflowExists?: boolean; + /** Filter by the object’s `workflowId` field. */ + workflowId?: UUIDFilter; +} +/** A filter to be used against `PlatformProposalComment` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformProposalCommentFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: PlatformProposalCommentFilter[]; + /** Filter by the object’s `attachments` field. */ + attachments?: ConstructiveInternalTypeUploadListFilter; + /** Filter by the object’s `body` field. */ + body?: StringTrgmFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `embedding` field. */ + embedding?: VectorFilter; + /** Filter by the object’s `embeddingUpdatedAt` field. */ + embeddingUpdatedAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `line` field. */ + line?: IntFilter; + /** Negates the expression. */ + not?: PlatformProposalCommentFilter; + /** Checks for any expressions in this list. */ + or?: PlatformProposalCommentFilter[]; + /** Filter by the object’s `outdatedAt` field. */ + outdatedAt?: DatetimeFilter; + /** Filter by the object’s `path` field. */ + path?: StringTrgmFilter; + /** Filter by the object’s `platformProposalReactionsByCommentId` relation. */ + platformProposalReactionsByCommentId?: PlatformProposalCommentToManyPlatformProposalReactionFilter; + /** `platformProposalReactionsByCommentId` exist. */ + platformProposalReactionsByCommentIdExist?: boolean; + /** Filter by the object’s `proposal` relation. */ + proposal?: PlatformProposalFilter; + /** Filter by the object’s `proposalId` field. */ + proposalId?: UUIDFilter; + /** Filter by the object’s `resolvedAt` field. */ + resolvedAt?: DatetimeFilter; + /** Filter by the object’s `search` field. */ + search?: FullTextFilter; + /** TRGM search on the `body` column. */ + trgmBody?: TrgmSearchInput; + /** TRGM search on the `path` column. */ + trgmPath?: TrgmSearchInput; + /** TSV search on the `search` column. */ + tsvSearch?: string; + /** + * Composite unified search. Provide a search string and it will be dispatched to + * all text-compatible search algorithms (tsvector, BM25, pg_trgm) + * simultaneously. When the LLM plugin is active, pgvector also participates via + * auto-embedding. Rows matching ANY algorithm are returned. All matching score + * fields are populated. + */ + unifiedSearch?: string; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** VECTOR search on the `embedding` column. */ + vectorEmbedding?: VectorNearbyInput; } -export interface DeleteResourceUsageSummaryInput { - clientMutationId?: string; - id: string; +/** A filter to be used against `PlatformProposalFileView` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformProposalFileViewFilter { + /** Checks for all expressions in this list. */ + and?: PlatformProposalFileViewFilter[]; + /** Filter by the object’s `blobSha` field. */ + blobSha?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformProposalFileViewFilter; + /** Checks for any expressions in this list. */ + or?: PlatformProposalFileViewFilter[]; + /** Filter by the object’s `path` field. */ + path?: StringFilter; + /** Filter by the object’s `proposal` relation. */ + proposal?: PlatformProposalFilter; + /** Filter by the object’s `proposalId` field. */ + proposalId?: UUIDFilter; + /** Filter by the object’s `reviewerId` field. */ + reviewerId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** Filter by the object’s `viewedAt` field. */ + viewedAt?: DatetimeFilter; } -export interface CreateResourceUtilizationInput { - clientMutationId?: string; - resourceUtilization: { - avgMemoryBytes?: string; - cpuLimitMillicores?: string; - cpuPeakUtilization?: string; - cpuRequestHeadroomMillicores?: string; - cpuRequestMillicores?: string; - date?: string; - gbSeconds?: string; - kind?: string; - maxCpuMillicores?: string; - maxMemoryBytes?: string; - memoryLimitBytes?: string; - memoryPeakUtilization?: string; - memoryRequestBytes?: string; - memoryRequestHeadroomBytes?: string; - namespaceId: string; - replicas?: number; - resourceId: string; - runtimeSeconds?: string; - sampleCount?: number; - }; +/** A filter to be used against `PlatformProposalReview` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformProposalReviewFilter { + /** Checks for all expressions in this list. */ + and?: PlatformProposalReviewFilter[]; + /** Filter by the object’s `body` field. */ + body?: StringTrgmFilter; + /** Filter by the object’s `commitSha` field. */ + commitSha?: StringTrgmFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformProposalReviewFilter; + /** Checks for any expressions in this list. */ + or?: PlatformProposalReviewFilter[]; + /** Filter by the object’s `proposal` relation. */ + proposal?: PlatformProposalFilter; + /** Filter by the object’s `proposalId` field. */ + proposalId?: UUIDFilter; + /** Filter by the object’s `reviewerId` field. */ + reviewerId?: UUIDFilter; + /** Filter by the object’s `search` field. */ + search?: FullTextFilter; + /** Filter by the object’s `submittedAt` field. */ + submittedAt?: DatetimeFilter; + /** TRGM search on the `body` column. */ + trgmBody?: TrgmSearchInput; + /** TRGM search on the `commit_sha` column. */ + trgmCommitSha?: TrgmSearchInput; + /** TRGM search on the `verdict` column. */ + trgmVerdict?: TrgmSearchInput; + /** TSV search on the `search` column. */ + tsvSearch?: string; + /** + * Composite unified search. Provide a search string and it will be dispatched to + * all text-compatible search algorithms (tsvector, BM25, pg_trgm) + * simultaneously. When the LLM plugin is active, pgvector also participates via + * auto-embedding. Rows matching ANY algorithm are returned. All matching score + * fields are populated. + */ + unifiedSearch?: string; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** Filter by the object’s `verdict` field. */ + verdict?: StringTrgmFilter; } -export interface ResourceUtilizationPatch { - avgMemoryBytes?: string | null; - cpuLimitMillicores?: string | null; - cpuPeakUtilization?: string | null; - cpuRequestHeadroomMillicores?: string | null; - cpuRequestMillicores?: string | null; - date?: string | null; - gbSeconds?: string | null; - kind?: string | null; - maxCpuMillicores?: string | null; - maxMemoryBytes?: string | null; - memoryLimitBytes?: string | null; - memoryPeakUtilization?: string | null; - memoryRequestBytes?: string | null; - memoryRequestHeadroomBytes?: string | null; - namespaceId?: string | null; - replicas?: number | null; - resourceId?: string | null; - runtimeSeconds?: string | null; - sampleCount?: number | null; +/** A filter to be used against `PlatformProposalsChunk` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformProposalsChunkFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: PlatformProposalsChunkFilter[]; + /** Filter by the object’s `body` field. */ + body?: StringFilter; + /** Filter by the object’s `chunkIndex` field. */ + chunkIndex?: IntFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `embedding` field. */ + embedding?: VectorFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Negates the expression. */ + not?: PlatformProposalsChunkFilter; + /** Checks for any expressions in this list. */ + or?: PlatformProposalsChunkFilter[]; + /** Filter by the object’s `platformProposals` relation. */ + platformProposals?: PlatformProposalFilter; + /** Filter by the object’s `platformProposalsId` field. */ + platformProposalsId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** VECTOR search on the `embedding` column. */ + vectorEmbedding?: VectorNearbyInput; } -export interface UpdateResourceUtilizationInput { - clientMutationId?: string; - id: string; - resourceUtilizationPatch: ResourceUtilizationPatch; +/** A filter to be used against `PlatformRegistryGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformRegistryGrantFilter { + /** Filter by the object’s `actions` field. */ + actions?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: PlatformRegistryGrantFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; + /** Filter by the object’s `grantedBy` field. */ + grantedBy?: UUIDFilter; + /** Filter by the object’s `granteeKey` field. */ + granteeKey?: UUIDFilter; + /** Filter by the object’s `granteeScope` field. */ + granteeScope?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformRegistryGrantFilter; + /** Checks for any expressions in this list. */ + or?: PlatformRegistryGrantFilter[]; + /** Filter by the object’s `registry` relation. */ + registry?: PlatformRegistryFilter; + /** Filter by the object’s `registryId` field. */ + registryId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface DeleteResourceUtilizationInput { - clientMutationId?: string; - id: string; +/** A filter to be used against `PlatformRepositoryEvent` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformRepositoryEventFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: PlatformRepositoryEventFilter[]; + /** Filter by the object’s `commitSha` field. */ + commitSha?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `deliveryId` field. */ + deliveryId?: StringFilter; + /** Filter by the object’s `eventType` field. */ + eventType?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Negates the expression. */ + not?: PlatformRepositoryEventFilter; + /** Checks for any expressions in this list. */ + or?: PlatformRepositoryEventFilter[]; + /** Filter by the object’s `payload` field. */ + payload?: JSONFilter; + /** Filter by the object’s `platformBuildsByEventId` relation. */ + platformBuildsByEventId?: PlatformRepositoryEventToManyPlatformBuildFilter; + /** `platformBuildsByEventId` exist. */ + platformBuildsByEventIdExist?: boolean; + /** Filter by the object’s `ref` field. */ + ref?: StringFilter; + /** Filter by the object’s `repository` relation. */ + repository?: PlatformRepositoryFilter; + /** Filter by the object’s `repositoryId` field. */ + repositoryId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface CreateResourcesHealthInput { - clientMutationId?: string; - resourcesHealth: { - annotations?: Record; - cpuLimitMillicores?: string; - cpuRequestMillicores?: string; - createdBy?: string; - databaseId: string; - errorCount?: number; - installationId: string; - integrations?: string[]; - kind?: string; - labels?: Record; - lastError?: string; - lastHeartbeatAt?: string; - memoryLimitBytes?: string; - memoryRequestBytes?: string; - name?: string; - namespaceId: string; - realm?: string; - replicas?: number; - requiredConfigs?: ResourceRequirement[]; - requiredSecrets?: ResourceRequirement[]; - resourceDefinitionId: string; - slug?: string; - spec?: Record; - status?: string; - statusDetail?: string; - statusObserved?: Record; - storageClass?: string; - storageSizeBytes?: string; - updatedBy?: string; - }; +/** A filter to be used against `PlatformRepositoryRequiredCheck` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformRepositoryRequiredCheckFilter { + /** Checks for all expressions in this list. */ + and?: PlatformRepositoryRequiredCheckFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformRepositoryRequiredCheckFilter; + /** Checks for any expressions in this list. */ + or?: PlatformRepositoryRequiredCheckFilter[]; + /** Filter by the object’s `repository` relation. */ + repository?: PlatformRepositoryFilter; + /** Filter by the object’s `repositoryId` field. */ + repositoryId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `workflow` relation. */ + workflow?: PlatformRepositoryWorkflowFilter; + /** Filter by the object’s `workflowId` field. */ + workflowId?: UUIDFilter; } -export interface ResourcesHealthPatch { - annotations?: Record | null; - cpuLimitMillicores?: string | null; - cpuRequestMillicores?: string | null; - createdBy?: string | null; - databaseId?: string | null; - errorCount?: number | null; - installationId?: string | null; - integrations?: string[] | null; - kind?: string | null; - labels?: Record | null; - lastError?: string | null; - lastHeartbeatAt?: string | null; - memoryLimitBytes?: string | null; - memoryRequestBytes?: string | null; - name?: string | null; - namespaceId?: string | null; - realm?: string | null; - replicas?: number | null; - requiredConfigs?: ResourceRequirement[] | null; - requiredSecrets?: ResourceRequirement[] | null; - resourceDefinitionId?: string | null; - slug?: string | null; - spec?: Record | null; - status?: string | null; - statusDetail?: string | null; - statusObserved?: Record | null; - storageClass?: string | null; - storageSizeBytes?: string | null; - updatedBy?: string | null; +/** A filter to be used against `PlatformResourceStatusCheck` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformResourceStatusCheckFilter { + /** Checks for all expressions in this list. */ + and?: PlatformResourceStatusCheckFilter[]; + /** Filter by the object’s `completedAt` field. */ + completedAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformResourceStatusCheckFilter; + /** Checks for any expressions in this list. */ + or?: PlatformResourceStatusCheckFilter[]; + /** Filter by the object’s `requestedAt` field. */ + requestedAt?: DatetimeFilter; + /** Filter by the object’s `requestedBy` field. */ + requestedBy?: UUIDFilter; + /** Filter by the object’s `resource` relation. */ + resource?: PlatformResourceFilter; + /** Filter by the object’s `resourceId` field. */ + resourceId?: UUIDFilter; + /** Filter by the object’s `result` field. */ + result?: JSONFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; } -export interface UpdateResourcesHealthInput { - clientMutationId?: string; - id: string; - resourcesHealthPatch: ResourcesHealthPatch; +/** A filter to be used against `PlatformRegistry` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformRegistryFilter { + /** Checks for all expressions in this list. */ + and?: PlatformRegistryFilter[]; + /** Filter by the object’s `authMode` field. */ + authMode?: StringFilter; + /** Filter by the object’s `basePath` field. */ + basePath?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `credentialSecretName` field. */ + credentialSecretName?: StringFilter; + /** Filter by the object’s `host` field. */ + host?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `installation` relation. */ + installation?: PlatformResourceInstallationFilter; + /** A related `installation` exists. */ + installationExists?: boolean; + /** Filter by the object’s `installationId` field. */ + installationId?: UUIDFilter; + /** Filter by the object’s `isPublished` field. */ + isPublished?: BooleanFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: PlatformRegistryFilter; + /** Checks for any expressions in this list. */ + or?: PlatformRegistryFilter[]; + /** Filter by the object’s `platformOnly` field. */ + platformOnly?: BooleanFilter; + /** Filter by the object’s `platformRegistryBindingsByRegistryId` relation. */ + platformRegistryBindingsByRegistryId?: PlatformRegistryToManyPlatformRegistryBindingFilter; + /** `platformRegistryBindingsByRegistryId` exist. */ + platformRegistryBindingsByRegistryIdExist?: boolean; + /** Filter by the object’s `platformRegistryGrantsByRegistryId` relation. */ + platformRegistryGrantsByRegistryId?: PlatformRegistryToManyPlatformRegistryGrantFilter; + /** `platformRegistryGrantsByRegistryId` exist. */ + platformRegistryGrantsByRegistryIdExist?: boolean; + /** Filter by the object’s `role` field. */ + role?: StringFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface DeleteResourcesHealthInput { - clientMutationId?: string; - id: string; +/** A filter to be used against `PlatformWebhookEvent` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformWebhookEventFilter { + /** Checks for all expressions in this list. */ + and?: PlatformWebhookEventFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `endpoint` relation. */ + endpoint?: PlatformWebhookEndpointFilter; + /** Filter by the object’s `endpointId` field. */ + endpointId?: UUIDFilter; + /** Filter by the object’s `error` field. */ + error?: StringFilter; + /** Filter by the object’s `externalEventId` field. */ + externalEventId?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `invocationCreatedAt` field. */ + invocationCreatedAt?: DatetimeFilter; + /** Filter by the object’s `invocationId` field. */ + invocationId?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformWebhookEventFilter; + /** Checks for any expressions in this list. */ + or?: PlatformWebhookEventFilter[]; + /** Filter by the object’s `payload` field. */ + payload?: JSONFilter; + /** Filter by the object’s `provider` field. */ + provider?: StringFilter; + /** Filter by the object’s `providerTimestamp` field. */ + providerTimestamp?: DatetimeFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} +/** A filter to be used against `ProposalReaction` object types. All fields are combined with a logical ‘and.’ */ +export interface ProposalReactionFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: ProposalReactionFilter[]; + /** Filter by the object’s `comment` relation. */ + comment?: ProposalCommentFilter; + /** A related `comment` exists. */ + commentExists?: boolean; + /** Filter by the object’s `commentId` field. */ + commentId?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `emoji` field. */ + emoji?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: ProposalReactionFilter; + /** Checks for any expressions in this list. */ + or?: ProposalReactionFilter[]; + /** Filter by the object’s `proposal` relation. */ + proposal?: ProposalFilter; + /** Filter by the object’s `proposalId` field. */ + proposalId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} +/** A filter to be used against `Build` object types. All fields are combined with a logical ‘and.’ */ +export interface BuildFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: BuildFilter[]; + /** Filter by the object’s `attempt` field. */ + attempt?: IntFilter; + /** Filter by the object’s `commitSha` field. */ + commitSha?: StringFilter; + /** Filter by the object’s `conclusion` field. */ + conclusion?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `event` relation. */ + event?: RepositoryEventFilter; + /** A related `event` exists. */ + eventExists?: boolean; + /** Filter by the object’s `eventId` field. */ + eventId?: UUIDFilter; + /** Filter by the object’s `finishedAt` field. */ + finishedAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `imageRef` field. */ + imageRef?: StringFilter; + /** Filter by the object’s `jobId` field. */ + jobId?: BigIntFilter; + /** Filter by the object’s `logs` field. */ + logs?: ConstructiveInternalTypeUploadFilter; + /** Filter by the object’s `matrixKey` field. */ + matrixKey?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Negates the expression. */ + not?: BuildFilter; + /** Checks for any expressions in this list. */ + or?: BuildFilter[]; + /** Filter by the object’s `proposal` relation. */ + proposal?: ProposalFilter; + /** A related `proposal` exists. */ + proposalExists?: boolean; + /** Filter by the object’s `proposalId` field. */ + proposalId?: UUIDFilter; + /** Filter by the object’s `ref` field. */ + ref?: StringFilter; + /** Filter by the object’s `repository` relation. */ + repository?: RepositoryFilter; + /** Filter by the object’s `repositoryId` field. */ + repositoryId?: UUIDFilter; + /** Filter by the object’s `startedAt` field. */ + startedAt?: DatetimeFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** Filter by the object’s `workflow` relation. */ + workflow?: RepositoryWorkflowFilter; + /** A related `workflow` exists. */ + workflowExists?: boolean; + /** Filter by the object’s `workflowId` field. */ + workflowId?: UUIDFilter; +} +/** A filter to be used against `Proposal` object types. All fields are combined with a logical ‘and.’ */ +export interface ProposalFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: ProposalFilter[]; + /** Filter by the object’s `body` field. */ + body?: StringTrgmFilter; + /** Filter by the object’s `builds` relation. */ + builds?: ProposalToManyBuildFilter; + /** `builds` exist. */ + buildsExist?: boolean; + /** Filter by the object’s `childProposals` relation. */ + childProposals?: ProposalToManyProposalFilter; + /** `childProposals` exist. */ + childProposalsExist?: boolean; + /** Filter by the object’s `closedReason` field. */ + closedReason?: StringTrgmFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `decidedAt` field. */ + decidedAt?: DatetimeFilter; + /** Filter by the object’s `dueAt` field. */ + dueAt?: DatetimeFilter; + /** Filter by the object’s `embedding` field. */ + embedding?: VectorFilter; + /** Filter by the object’s `embeddingUpdatedAt` field. */ + embeddingUpdatedAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringTrgmFilter; + /** Filter by the object’s `labels` field. */ + labels?: StringListFilter; + /** Filter by the object’s `mergeCommit` field. */ + mergeCommit?: StringTrgmFilter; + /** Filter by the object’s `mergeMethod` field. */ + mergeMethod?: StringTrgmFilter; + /** Filter by the object’s `mergeRequestedAt` field. */ + mergeRequestedAt?: DatetimeFilter; + /** Filter by the object’s `mergedAt` field. */ + mergedAt?: DatetimeFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Negates the expression. */ + not?: ProposalFilter; + /** Checks for any expressions in this list. */ + or?: ProposalFilter[]; + /** Filter by the object’s `parent` relation. */ + parent?: ProposalFilter; + /** A related `parent` exists. */ + parentExists?: boolean; + /** Filter by the object’s `parentId` field. */ + parentId?: UUIDFilter; + /** Filter by the object’s `priority` field. */ + priority?: BigFloatFilter; + /** Filter by the object’s `proposalComments` relation. */ + proposalComments?: ProposalToManyProposalCommentFilter; + /** `proposalComments` exist. */ + proposalCommentsExist?: boolean; + /** Filter by the object’s `proposalFileViews` relation. */ + proposalFileViews?: ProposalToManyProposalFileViewFilter; + /** `proposalFileViews` exist. */ + proposalFileViewsExist?: boolean; + /** Filter by the object’s `proposalReactions` relation. */ + proposalReactions?: ProposalToManyProposalReactionFilter; + /** `proposalReactions` exist. */ + proposalReactionsExist?: boolean; + /** Filter by the object’s `proposalReviews` relation. */ + proposalReviews?: ProposalToManyProposalReviewFilter; + /** `proposalReviews` exist. */ + proposalReviewsExist?: boolean; + /** Filter by the object’s `proposalsChunksByProposalsId` relation. */ + proposalsChunksByProposalsId?: ProposalToManyProposalsChunkFilter; + /** `proposalsChunksByProposalsId` exist. */ + proposalsChunksByProposalsIdExist?: boolean; + /** Filter by the object’s `repository` relation. */ + repository?: RepositoryFilter; + /** Filter by the object’s `repositoryId` field. */ + repositoryId?: UUIDFilter; + /** Filter by the object’s `resolution` field. */ + resolution?: StringTrgmFilter; + /** Filter by the object’s `search` field. */ + search?: FullTextFilter; + /** Filter by the object’s `sourceRef` field. */ + sourceRef?: StringTrgmFilter; + /** Filter by the object’s `status` field. */ + status?: StringTrgmFilter; + /** Filter by the object’s `targetRef` field. */ + targetRef?: StringTrgmFilter; + /** Filter by the object’s `title` field. */ + title?: StringTrgmFilter; + /** TRGM search on the `body` column. */ + trgmBody?: TrgmSearchInput; + /** TRGM search on the `closed_reason` column. */ + trgmClosedReason?: TrgmSearchInput; + /** TRGM search on the `kind` column. */ + trgmKind?: TrgmSearchInput; + /** TRGM search on the `merge_commit` column. */ + trgmMergeCommit?: TrgmSearchInput; + /** TRGM search on the `merge_method` column. */ + trgmMergeMethod?: TrgmSearchInput; + /** TRGM search on the `resolution` column. */ + trgmResolution?: TrgmSearchInput; + /** TRGM search on the `source_ref` column. */ + trgmSourceRef?: TrgmSearchInput; + /** TRGM search on the `status` column. */ + trgmStatus?: TrgmSearchInput; + /** TRGM search on the `target_ref` column. */ + trgmTargetRef?: TrgmSearchInput; + /** TRGM search on the `title` column. */ + trgmTitle?: TrgmSearchInput; + /** TSV search on the `search` column. */ + tsvSearch?: string; + /** + * Composite unified search. Provide a search string and it will be dispatched to + * all text-compatible search algorithms (tsvector, BM25, pg_trgm) + * simultaneously. When the LLM plugin is active, pgvector also participates via + * auto-embedding. Rows matching ANY algorithm are returned. All matching score + * fields are populated. + */ + unifiedSearch?: string; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** VECTOR search on the `embedding` column. */ + vectorEmbedding?: VectorNearbyInput; } -export interface CreateResourcesRequirementsStateInput { - clientMutationId?: string; - resourcesRequirementsState: { - configHash?: string; - configObjectName?: string; - requirementsHash?: string; - resourceId: string; - secretsHash?: string; - secretsObjectName?: string; - slug?: string; - }; +/** A filter to be used against `ProposalComment` object types. All fields are combined with a logical ‘and.’ */ +export interface ProposalCommentFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: ProposalCommentFilter[]; + /** Filter by the object’s `attachments` field. */ + attachments?: ConstructiveInternalTypeUploadListFilter; + /** Filter by the object’s `body` field. */ + body?: StringTrgmFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `embedding` field. */ + embedding?: VectorFilter; + /** Filter by the object’s `embeddingUpdatedAt` field. */ + embeddingUpdatedAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `line` field. */ + line?: IntFilter; + /** Negates the expression. */ + not?: ProposalCommentFilter; + /** Checks for any expressions in this list. */ + or?: ProposalCommentFilter[]; + /** Filter by the object’s `outdatedAt` field. */ + outdatedAt?: DatetimeFilter; + /** Filter by the object’s `path` field. */ + path?: StringTrgmFilter; + /** Filter by the object’s `proposal` relation. */ + proposal?: ProposalFilter; + /** Filter by the object’s `proposalId` field. */ + proposalId?: UUIDFilter; + /** Filter by the object’s `proposalReactionsByCommentId` relation. */ + proposalReactionsByCommentId?: ProposalCommentToManyProposalReactionFilter; + /** `proposalReactionsByCommentId` exist. */ + proposalReactionsByCommentIdExist?: boolean; + /** Filter by the object’s `resolvedAt` field. */ + resolvedAt?: DatetimeFilter; + /** Filter by the object’s `search` field. */ + search?: FullTextFilter; + /** TRGM search on the `body` column. */ + trgmBody?: TrgmSearchInput; + /** TRGM search on the `path` column. */ + trgmPath?: TrgmSearchInput; + /** TSV search on the `search` column. */ + tsvSearch?: string; + /** + * Composite unified search. Provide a search string and it will be dispatched to + * all text-compatible search algorithms (tsvector, BM25, pg_trgm) + * simultaneously. When the LLM plugin is active, pgvector also participates via + * auto-embedding. Rows matching ANY algorithm are returned. All matching score + * fields are populated. + */ + unifiedSearch?: string; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** VECTOR search on the `embedding` column. */ + vectorEmbedding?: VectorNearbyInput; } -export interface ResourcesRequirementsStatePatch { - configHash?: string | null; - configObjectName?: string | null; - requirementsHash?: string | null; - resourceId?: string | null; - secretsHash?: string | null; - secretsObjectName?: string | null; - slug?: string | null; +/** A filter to be used against `ProposalFileView` object types. All fields are combined with a logical ‘and.’ */ +export interface ProposalFileViewFilter { + /** Checks for all expressions in this list. */ + and?: ProposalFileViewFilter[]; + /** Filter by the object’s `blobSha` field. */ + blobSha?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: ProposalFileViewFilter; + /** Checks for any expressions in this list. */ + or?: ProposalFileViewFilter[]; + /** Filter by the object’s `path` field. */ + path?: StringFilter; + /** Filter by the object’s `proposal` relation. */ + proposal?: ProposalFilter; + /** Filter by the object’s `proposalId` field. */ + proposalId?: UUIDFilter; + /** Filter by the object’s `reviewerId` field. */ + reviewerId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** Filter by the object’s `viewedAt` field. */ + viewedAt?: DatetimeFilter; } -export interface UpdateResourcesRequirementsStateInput { - clientMutationId?: string; - id: string; - resourcesRequirementsStatePatch: ResourcesRequirementsStatePatch; +/** A filter to be used against `ProposalReview` object types. All fields are combined with a logical ‘and.’ */ +export interface ProposalReviewFilter { + /** Checks for all expressions in this list. */ + and?: ProposalReviewFilter[]; + /** Filter by the object’s `body` field. */ + body?: StringTrgmFilter; + /** Filter by the object’s `commitSha` field. */ + commitSha?: StringTrgmFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: ProposalReviewFilter; + /** Checks for any expressions in this list. */ + or?: ProposalReviewFilter[]; + /** Filter by the object’s `proposal` relation. */ + proposal?: ProposalFilter; + /** Filter by the object’s `proposalId` field. */ + proposalId?: UUIDFilter; + /** Filter by the object’s `reviewerId` field. */ + reviewerId?: UUIDFilter; + /** Filter by the object’s `search` field. */ + search?: FullTextFilter; + /** Filter by the object’s `submittedAt` field. */ + submittedAt?: DatetimeFilter; + /** TRGM search on the `body` column. */ + trgmBody?: TrgmSearchInput; + /** TRGM search on the `commit_sha` column. */ + trgmCommitSha?: TrgmSearchInput; + /** TRGM search on the `verdict` column. */ + trgmVerdict?: TrgmSearchInput; + /** TSV search on the `search` column. */ + tsvSearch?: string; + /** + * Composite unified search. Provide a search string and it will be dispatched to + * all text-compatible search algorithms (tsvector, BM25, pg_trgm) + * simultaneously. When the LLM plugin is active, pgvector also participates via + * auto-embedding. Rows matching ANY algorithm are returned. All matching score + * fields are populated. + */ + unifiedSearch?: string; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** Filter by the object’s `verdict` field. */ + verdict?: StringTrgmFilter; } -export interface DeleteResourcesRequirementsStateInput { - clientMutationId?: string; - id: string; +/** A filter to be used against `ProposalsChunk` object types. All fields are combined with a logical ‘and.’ */ +export interface ProposalsChunkFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: ProposalsChunkFilter[]; + /** Filter by the object’s `body` field. */ + body?: StringFilter; + /** Filter by the object’s `chunkIndex` field. */ + chunkIndex?: IntFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `embedding` field. */ + embedding?: VectorFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Negates the expression. */ + not?: ProposalsChunkFilter; + /** Checks for any expressions in this list. */ + or?: ProposalsChunkFilter[]; + /** Filter by the object’s `proposals` relation. */ + proposals?: ProposalFilter; + /** Filter by the object’s `proposalsId` field. */ + proposalsId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** VECTOR search on the `embedding` column. */ + vectorEmbedding?: VectorNearbyInput; } -export interface CreateResourcesResolvedRequirementInput { - clientMutationId?: string; - resourcesResolvedRequirement: { - atomId: string; - configObjectName?: string; - name?: string; - namespaceId: string; - present?: boolean; - realm?: string; - required?: boolean; - requirementKind?: string; - resourceId: string; - secretsObjectName?: string; - slug?: string; - }; +/** A filter to be used against `RegistryGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface RegistryGrantFilter { + /** Filter by the object’s `actions` field. */ + actions?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: RegistryGrantFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; + /** Filter by the object’s `grantedBy` field. */ + grantedBy?: UUIDFilter; + /** Filter by the object’s `granteeKey` field. */ + granteeKey?: UUIDFilter; + /** Filter by the object’s `granteeScope` field. */ + granteeScope?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: RegistryGrantFilter; + /** Checks for any expressions in this list. */ + or?: RegistryGrantFilter[]; + /** Filter by the object’s `registry` relation. */ + registry?: RegistryFilter; + /** Filter by the object’s `registryId` field. */ + registryId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface ResourcesResolvedRequirementPatch { - atomId?: string | null; - configObjectName?: string | null; - name?: string | null; - namespaceId?: string | null; - present?: boolean | null; - realm?: string | null; - required?: boolean | null; - requirementKind?: string | null; - resourceId?: string | null; - secretsObjectName?: string | null; - slug?: string | null; +/** A filter to be used against `RepositoryEvent` object types. All fields are combined with a logical ‘and.’ */ +export interface RepositoryEventFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: RepositoryEventFilter[]; + /** Filter by the object’s `buildsByEventId` relation. */ + buildsByEventId?: RepositoryEventToManyBuildFilter; + /** `buildsByEventId` exist. */ + buildsByEventIdExist?: boolean; + /** Filter by the object’s `commitSha` field. */ + commitSha?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `deliveryId` field. */ + deliveryId?: StringFilter; + /** Filter by the object’s `eventType` field. */ + eventType?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Negates the expression. */ + not?: RepositoryEventFilter; + /** Checks for any expressions in this list. */ + or?: RepositoryEventFilter[]; + /** Filter by the object’s `payload` field. */ + payload?: JSONFilter; + /** Filter by the object’s `ref` field. */ + ref?: StringFilter; + /** Filter by the object’s `repository` relation. */ + repository?: RepositoryFilter; + /** Filter by the object’s `repositoryId` field. */ + repositoryId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface UpdateResourcesResolvedRequirementInput { - clientMutationId?: string; - id: string; - resourcesResolvedRequirementPatch: ResourcesResolvedRequirementPatch; +/** A filter to be used against `RepositoryRequiredCheck` object types. All fields are combined with a logical ‘and.’ */ +export interface RepositoryRequiredCheckFilter { + /** Checks for all expressions in this list. */ + and?: RepositoryRequiredCheckFilter[]; + /** 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?: RepositoryRequiredCheckFilter; + /** Checks for any expressions in this list. */ + or?: RepositoryRequiredCheckFilter[]; + /** Filter by the object’s `repository` relation. */ + repository?: RepositoryFilter; + /** Filter by the object’s `repositoryId` field. */ + repositoryId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `workflow` relation. */ + workflow?: RepositoryWorkflowFilter; + /** Filter by the object’s `workflowId` field. */ + workflowId?: UUIDFilter; } -export interface DeleteResourcesResolvedRequirementInput { - clientMutationId?: string; - id: string; +/** A filter to be used against `ResourceStatusCheck` object types. All fields are combined with a logical ‘and.’ */ +export interface ResourceStatusCheckFilter { + /** Checks for all expressions in this list. */ + and?: ResourceStatusCheckFilter[]; + /** Filter by the object’s `completedAt` field. */ + completedAt?: DatetimeFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: ResourceStatusCheckFilter; + /** Checks for any expressions in this list. */ + or?: ResourceStatusCheckFilter[]; + /** Filter by the object’s `requestedAt` field. */ + requestedAt?: DatetimeFilter; + /** Filter by the object’s `requestedBy` field. */ + requestedBy?: UUIDFilter; + /** Filter by the object’s `resource` relation. */ + resource?: ResourceFilter; + /** Filter by the object’s `resourceId` field. */ + resourceId?: UUIDFilter; + /** Filter by the object’s `result` field. */ + result?: JSONFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; } -export interface CreateWebhookEndpointInput { - clientMutationId?: string; - webhookEndpoint: { - active?: boolean; - createdBy?: string; - databaseId: string; - functionDefinitionId: string; - host: string; - namespaceId: string; - path: string; - provider?: string; - replayWindowSeconds?: number; - signingSecretName: string; - updatedBy?: string; - }; +/** A filter to be used against `Registry` object types. All fields are combined with a logical ‘and.’ */ +export interface RegistryFilter { + /** Checks for all expressions in this list. */ + and?: RegistryFilter[]; + /** Filter by the object’s `authMode` field. */ + authMode?: StringFilter; + /** Filter by the object’s `basePath` field. */ + basePath?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `credentialSecretName` field. */ + credentialSecretName?: StringFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `host` field. */ + host?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `installation` relation. */ + installation?: ResourceInstallationFilter; + /** A related `installation` exists. */ + installationExists?: boolean; + /** Filter by the object’s `installationId` field. */ + installationId?: UUIDFilter; + /** Filter by the object’s `isPublished` field. */ + isPublished?: BooleanFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: RegistryFilter; + /** Checks for any expressions in this list. */ + or?: RegistryFilter[]; + /** Filter by the object’s `platformOnly` field. */ + platformOnly?: BooleanFilter; + /** Filter by the object’s `registryBindings` relation. */ + registryBindings?: RegistryToManyRegistryBindingFilter; + /** `registryBindings` exist. */ + registryBindingsExist?: boolean; + /** Filter by the object’s `registryGrants` relation. */ + registryGrants?: RegistryToManyRegistryGrantFilter; + /** `registryGrants` exist. */ + registryGrantsExist?: boolean; + /** Filter by the object’s `role` field. */ + role?: StringFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface WebhookEndpointPatch { - active?: boolean | null; - createdBy?: string | null; - databaseId?: string | null; - functionDefinitionId?: string | null; - host?: string | null; - namespaceId?: string | null; - path?: string | null; - provider?: string | null; - replayWindowSeconds?: number | null; - signingSecretName?: string | null; - updatedBy?: string | null; +/** A filter to be used against `WebhookEvent` object types. All fields are combined with a logical ‘and.’ */ +export interface WebhookEventFilter { + /** Checks for all expressions in this list. */ + and?: WebhookEventFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `endpoint` relation. */ + endpoint?: WebhookEndpointFilter; + /** Filter by the object’s `endpointId` field. */ + endpointId?: UUIDFilter; + /** Filter by the object’s `error` field. */ + error?: StringFilter; + /** Filter by the object’s `externalEventId` field. */ + externalEventId?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `invocationCreatedAt` field. */ + invocationCreatedAt?: DatetimeFilter; + /** Filter by the object’s `invocationId` field. */ + invocationId?: UUIDFilter; + /** Negates the expression. */ + not?: WebhookEventFilter; + /** Checks for any expressions in this list. */ + or?: WebhookEventFilter[]; + /** Filter by the object’s `payload` field. */ + payload?: JSONFilter; + /** Filter by the object’s `provider` field. */ + provider?: StringFilter; + /** Filter by the object’s `providerTimestamp` field. */ + providerTimestamp?: DatetimeFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; } -export interface UpdateWebhookEndpointInput { - clientMutationId?: string; - id: string; - webhookEndpointPatch: WebhookEndpointPatch; +/** 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[]; } -export interface DeleteWebhookEndpointInput { - clientMutationId?: string; - id: string; +/** 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[]; } -export interface CreateWebhookEventInput { - clientMutationId?: string; - webhookEvent: { - databaseId: string; - endpointId: string; - error?: string; - externalEventId: string; - invocationCreatedAt?: string; - invocationId?: string; - payload?: Record; - provider: string; - providerTimestamp?: string; - status?: string; - }; +/** 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[]; } -export interface WebhookEventPatch { - databaseId?: string | null; - endpointId?: string | null; - error?: string | null; - externalEventId?: string | null; - invocationCreatedAt?: string | null; - invocationId?: string | null; - payload?: Record | null; - provider?: string | null; - providerTimestamp?: string | null; - status?: string | null; +/** 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; } -export interface UpdateWebhookEventInput { - clientMutationId?: string; - id: string; - webhookEventPatch: WebhookEventPatch; +/** A filter to be used against JSON fields. All fields are combined with a logical ‘and.’ */ +export interface JSONFilter { + /** Contained by the specified JSON. */ + containedBy?: Record; + /** Contains the specified JSON. */ + contains?: Record; + /** Contains all of the specified keys. */ + containsAllKeys?: string[]; + /** Contains any of the specified keys. */ + containsAnyKeys?: string[]; + /** Contains the specified key. */ + containsKey?: string; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: Record; + /** Equal to the specified value. */ + equalTo?: Record; + /** Greater than the specified value. */ + greaterThan?: Record; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: Record; + /** Included in the specified list. */ + in?: Record[]; + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Less than the specified value. */ + lessThan?: Record; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: Record; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: Record; + /** Not equal to the specified value. */ + notEqualTo?: Record; + /** Not included in the specified list. */ + notIn?: Record[]; } -export interface DeleteWebhookEventInput { - clientMutationId?: string; - id: string; +/** A filter to be used against `DatabaseFunctionGraph` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseFunctionGraphFilter { + /** Checks for all expressions in this list. */ + and?: DatabaseFunctionGraphFilter[]; + /** Filter by the object’s `context` field. */ + context?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `databaseFunctionGraphExecutionsByGraphId` relation. */ + databaseFunctionGraphExecutionsByGraphId?: DatabaseFunctionGraphToManyDatabaseFunctionGraphExecutionFilter; + /** `databaseFunctionGraphExecutionsByGraphId` exist. */ + databaseFunctionGraphExecutionsByGraphIdExist?: boolean; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `definitionsCommitId` field. */ + definitionsCommitId?: UUIDFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `functionDefinitionsByGraphId` relation. */ + functionDefinitionsByGraphId?: DatabaseFunctionGraphToManyFunctionDefinitionFilter; + /** `functionDefinitionsByGraphId` exist. */ + functionDefinitionsByGraphIdExist?: boolean; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isValid` field. */ + isValid?: BooleanFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: DatabaseFunctionGraphFilter; + /** Checks for any expressions in this list. */ + or?: DatabaseFunctionGraphFilter[]; + /** Filter by the object’s `repositoryWorkflowsByGraphId` relation. */ + repositoryWorkflowsByGraphId?: DatabaseFunctionGraphToManyRepositoryWorkflowFilter; + /** `repositoryWorkflowsByGraphId` exist. */ + repositoryWorkflowsByGraphIdExist?: boolean; + /** Filter by the object’s `storeId` field. */ + storeId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `validationErrors` field. */ + validationErrors?: JSONFilter; } -// ============ Connection Fields Map ============ -export const connectionFieldsMap = { - FunctionApiBinding: { - functionInvocationsByApiBindingId: 'FunctionInvocation', - }, - FunctionDefinition: { - functionApiBindings: 'FunctionApiBinding', - functionCapabilityBindingsByFunctionId: 'FunctionCapabilityBinding', - webhookEndpoints: 'WebhookEndpoint', - }, - FunctionGraph: { - functionGraphExecutionsByGraphId: 'FunctionGraphExecution', - platformFunctionDefinitionsByGraphId: 'PlatformFunctionDefinition', - }, - Namespace: { - functionDeployments: 'FunctionDeployment', - resourceDefinitions: 'ResourceDefinition', - resourceInstallations: 'ResourceInstallation', - resources: 'Resource', - webhookEndpoints: 'WebhookEndpoint', - }, - PlatformFunctionApiBinding: { - platformFunctionInvocationsByApiBindingId: 'PlatformFunctionInvocation', - }, - PlatformFunctionDefinition: { - platformFunctionApiBindingsByFunctionDefinitionId: 'PlatformFunctionApiBinding', - platformFunctionCapabilityBindingsByFunctionId: 'PlatformFunctionCapabilityBinding', - platformWebhookEndpointsByFunctionDefinitionId: 'PlatformWebhookEndpoint', - }, - PlatformNamespace: { - platformFunctionDeploymentsByNamespaceId: 'PlatformFunctionDeployment', - platformResourceDefinitionsByNamespaceId: 'PlatformResourceDefinition', - platformResourceInstallationsByNamespaceId: 'PlatformResourceInstallation', - platformResourcesByNamespaceId: 'PlatformResource', - platformWebhookEndpointsByNamespaceId: 'PlatformWebhookEndpoint', - }, - PlatformResource: { - platformResourceStatusChecksByResourceId: 'PlatformResourceStatusCheck', - }, - PlatformResourceDefinition: { - platformResourcesByResourceDefinitionId: 'PlatformResource', - }, - PlatformResourceInstallation: { - platformResourcesByInstallationId: 'PlatformResource', - }, - PlatformWebhookEndpoint: { - platformWebhookEventsByEndpointId: 'PlatformWebhookEvent', - }, - Resource: { - resourceStatusChecks: 'ResourceStatusCheck', - }, - ResourceDefinition: { - resources: 'Resource', - }, - ResourceInstallation: { - resourcesByInstallationId: 'Resource', - }, - WebhookEndpoint: { - webhookEventsByEndpointId: 'WebhookEvent', - }, -} as Record>; -// ============ Custom Input Types (from schema) ============ -export interface AddEdgeInput { - clientMutationId?: string; - context?: string; - dstNode?: string; - dstPort?: string; - graphName?: string; - rootHash?: string; - scopeId?: string; - srcNode?: string; - srcPort?: string; +/** A filter to be used against String List fields. All fields are combined with a logical ‘and.’ */ +export interface StringListFilter { + /** Any array item is equal to the specified value. */ + anyEqualTo?: string; + /** Any array item is greater than the specified value. */ + anyGreaterThan?: string; + /** Any array item is greater than or equal to the specified value. */ + anyGreaterThanOrEqualTo?: string; + /** Any array item is less than the specified value. */ + anyLessThan?: string; + /** Any array item is less than or equal to the specified value. */ + anyLessThanOrEqualTo?: string; + /** Any array item is not equal to the specified value. */ + anyNotEqualTo?: string; + /** Contained by the specified list of values. */ + containedBy?: string[]; + /** Contains the specified list of values. */ + contains?: string[]; + /** 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[]; + /** 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[]; + /** Overlaps the specified list of values. */ + overlaps?: string[]; } -export interface AddEdgeAndSaveInput { - clientMutationId?: string; - dstNode?: string; - dstPort?: string; - graphId?: string; - message?: string; - srcNode?: string; - srcPort?: 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[]; } -export interface AddNodeInput { - clientMutationId?: string; - context?: string; - graphName?: string; - meta?: Record; - nodeName?: string; - nodeType?: string; - props?: Record; - rootHash?: string; - scopeId?: string; +/** 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. */ + 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[]; } -export interface AddNodeAndSaveInput { - clientMutationId?: string; - graphId?: string; - message?: string; - meta?: Record; - nodeName?: string; - nodeType?: string; - props?: Record; +/** A filter to be used against `Repository` object types. All fields are combined with a logical ‘and.’ */ +export interface RepositoryFilter { + /** Checks for all expressions in this list. */ + and?: RepositoryFilter[]; + /** Filter by the object’s `builds` relation. */ + builds?: RepositoryToManyBuildFilter; + /** `builds` exist. */ + buildsExist?: boolean; + /** Filter by the object’s `cloneUrl` field. */ + cloneUrl?: StringTrgmFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `defaultBranch` field. */ + defaultBranch?: StringTrgmFilter; + /** Filter by the object’s `description` field. */ + description?: StringTrgmFilter; + /** Filter by the object’s `embedding` field. */ + embedding?: VectorFilter; + /** Filter by the object’s `embeddingUpdatedAt` field. */ + embeddingUpdatedAt?: DatetimeFilter; + /** Filter by the object’s `externalId` field. */ + externalId?: StringTrgmFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isArchived` field. */ + isArchived?: BooleanFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `name` field. */ + name?: StringTrgmFilter; + /** Negates the expression. */ + not?: RepositoryFilter; + /** Checks for any expressions in this list. */ + or?: RepositoryFilter[]; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `proposals` relation. */ + proposals?: RepositoryToManyProposalFilter; + /** `proposals` exist. */ + proposalsExist?: boolean; + /** Filter by the object’s `provider` field. */ + provider?: StringTrgmFilter; + /** Filter by the object’s `repositoryEvents` relation. */ + repositoryEvents?: RepositoryToManyRepositoryEventFilter; + /** `repositoryEvents` exist. */ + repositoryEventsExist?: boolean; + /** Filter by the object’s `repositoryRequiredChecks` relation. */ + repositoryRequiredChecks?: RepositoryToManyRepositoryRequiredCheckFilter; + /** `repositoryRequiredChecks` exist. */ + repositoryRequiredChecksExist?: boolean; + /** Filter by the object’s `repositoryWorkflows` relation. */ + repositoryWorkflows?: RepositoryToManyRepositoryWorkflowFilter; + /** `repositoryWorkflows` exist. */ + repositoryWorkflowsExist?: boolean; + /** Filter by the object’s `search` field. */ + search?: FullTextFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringTrgmFilter; + /** TRGM search on the `clone_url` column. */ + trgmCloneUrl?: TrgmSearchInput; + /** TRGM search on the `default_branch` column. */ + trgmDefaultBranch?: TrgmSearchInput; + /** TRGM search on the `description` column. */ + trgmDescription?: TrgmSearchInput; + /** TRGM search on the `external_id` column. */ + trgmExternalId?: TrgmSearchInput; + /** TRGM search on the `name` column. */ + trgmName?: TrgmSearchInput; + /** TRGM search on the `provider` column. */ + trgmProvider?: TrgmSearchInput; + /** TRGM search on the `slug` column. */ + trgmSlug?: TrgmSearchInput; + /** TRGM search on the `visibility` column. */ + trgmVisibility?: TrgmSearchInput; + /** TSV search on the `search` column. */ + tsvSearch?: string; + /** + * Composite unified search. Provide a search string and it will be dispatched to + * all text-compatible search algorithms (tsvector, BM25, pg_trgm) + * simultaneously. When the LLM plugin is active, pgvector also participates via + * auto-embedding. Rows matching ANY algorithm are returned. All matching score + * fields are populated. + */ + unifiedSearch?: string; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** VECTOR search on the `embedding` column. */ + vectorEmbedding?: VectorNearbyInput; + /** Filter by the object’s `visibility` field. */ + visibility?: StringTrgmFilter; } -export interface CopyGraphInput { - clientMutationId?: string; - graphId?: string; - name?: string; - scopeId?: string; +/** A filter to be used against `Namespace` object types. All fields are combined with a logical ‘and.’ */ +export interface NamespaceFilter { + /** Checks for all expressions in this list. */ + and?: NamespaceFilter[]; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Filter by the object’s `builderBindings` relation. */ + builderBindings?: NamespaceToManyBuilderBindingFilter; + /** `builderBindings` exist. */ + builderBindingsExist?: boolean; + /** Filter by the object’s `clusterId` field. */ + clusterId?: 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 `functionDeployments` relation. */ + functionDeployments?: NamespaceToManyFunctionDeploymentFilter; + /** `functionDeployments` exist. */ + functionDeploymentsExist?: boolean; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; + /** Filter by the object’s `isManaged` field. */ + isManaged?: BooleanFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `namespaceName` field. */ + namespaceName?: StringFilter; + /** Negates the expression. */ + not?: NamespaceFilter; + /** Checks for any expressions in this list. */ + or?: NamespaceFilter[]; + /** Filter by the object’s `registryBindings` relation. */ + registryBindings?: NamespaceToManyRegistryBindingFilter; + /** `registryBindings` exist. */ + registryBindingsExist?: boolean; + /** Filter by the object’s `resourceDefinitions` relation. */ + resourceDefinitions?: NamespaceToManyResourceDefinitionFilter; + /** `resourceDefinitions` exist. */ + resourceDefinitionsExist?: boolean; + /** Filter by the object’s `resourceInstallations` relation. */ + resourceInstallations?: NamespaceToManyResourceInstallationFilter; + /** `resourceInstallations` exist. */ + resourceInstallationsExist?: boolean; + /** Filter by the object’s `resources` relation. */ + resources?: NamespaceToManyResourceFilter; + /** `resources` exist. */ + resourcesExist?: boolean; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `webhookEndpoints` relation. */ + webhookEndpoints?: NamespaceToManyWebhookEndpointFilter; + /** `webhookEndpoints` exist. */ + webhookEndpointsExist?: boolean; } -export interface ImportDefinitionsInput { - clientMutationId?: string; - contexts?: string[]; - graphId?: string; - sourceCommitId?: string; - sourceScopeId?: string; +/** A filter to be used against `FunctionGraph` object types. All fields are combined with a logical ‘and.’ */ +export interface FunctionGraphFilter { + /** Checks for all expressions in this list. */ + and?: FunctionGraphFilter[]; + /** Filter by the object’s `context` field. */ + context?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `definitionsCommitId` field. */ + definitionsCommitId?: UUIDFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `functionGraphExecutionsByGraphId` relation. */ + functionGraphExecutionsByGraphId?: FunctionGraphToManyFunctionGraphExecutionFilter; + /** `functionGraphExecutionsByGraphId` exist. */ + functionGraphExecutionsByGraphIdExist?: boolean; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isValid` field. */ + isValid?: BooleanFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: FunctionGraphFilter; + /** Checks for any expressions in this list. */ + or?: FunctionGraphFilter[]; + /** Filter by the object’s `platformFunctionDefinitionsByGraphId` relation. */ + platformFunctionDefinitionsByGraphId?: FunctionGraphToManyPlatformFunctionDefinitionFilter; + /** `platformFunctionDefinitionsByGraphId` exist. */ + platformFunctionDefinitionsByGraphIdExist?: boolean; + /** Filter by the object’s `platformRepositoryWorkflowsByGraphId` relation. */ + platformRepositoryWorkflowsByGraphId?: FunctionGraphToManyPlatformRepositoryWorkflowFilter; + /** `platformRepositoryWorkflowsByGraphId` exist. */ + platformRepositoryWorkflowsByGraphIdExist?: boolean; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; + /** Filter by the object’s `storeId` field. */ + storeId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `validationErrors` field. */ + validationErrors?: JSONFilter; } -export interface ImportGraphJsonInput { - clientMutationId?: string; - context?: string; - createdBy?: string; - definitionsCommitId?: string; - description?: string; - graphJson?: Record; - name?: string; - scopeId?: string; +/** A filter to be used against `PlatformRepository` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformRepositoryFilter { + /** Checks for all expressions in this list. */ + and?: PlatformRepositoryFilter[]; + /** Filter by the object’s `cloneUrl` field. */ + cloneUrl?: StringTrgmFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `defaultBranch` field. */ + defaultBranch?: StringTrgmFilter; + /** Filter by the object’s `description` field. */ + description?: StringTrgmFilter; + /** Filter by the object’s `embedding` field. */ + embedding?: VectorFilter; + /** Filter by the object’s `embeddingUpdatedAt` field. */ + embeddingUpdatedAt?: DatetimeFilter; + /** Filter by the object’s `externalId` field. */ + externalId?: StringTrgmFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isArchived` field. */ + isArchived?: BooleanFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `name` field. */ + name?: StringTrgmFilter; + /** Negates the expression. */ + not?: PlatformRepositoryFilter; + /** Checks for any expressions in this list. */ + or?: PlatformRepositoryFilter[]; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `platformBuildsByRepositoryId` relation. */ + platformBuildsByRepositoryId?: PlatformRepositoryToManyPlatformBuildFilter; + /** `platformBuildsByRepositoryId` exist. */ + platformBuildsByRepositoryIdExist?: boolean; + /** Filter by the object’s `platformProposalsByRepositoryId` relation. */ + platformProposalsByRepositoryId?: PlatformRepositoryToManyPlatformProposalFilter; + /** `platformProposalsByRepositoryId` exist. */ + platformProposalsByRepositoryIdExist?: boolean; + /** Filter by the object’s `platformRepositoryEventsByRepositoryId` relation. */ + platformRepositoryEventsByRepositoryId?: PlatformRepositoryToManyPlatformRepositoryEventFilter; + /** `platformRepositoryEventsByRepositoryId` exist. */ + platformRepositoryEventsByRepositoryIdExist?: boolean; + /** Filter by the object’s `platformRepositoryRequiredChecksByRepositoryId` relation. */ + platformRepositoryRequiredChecksByRepositoryId?: PlatformRepositoryToManyPlatformRepositoryRequiredCheckFilter; + /** `platformRepositoryRequiredChecksByRepositoryId` exist. */ + platformRepositoryRequiredChecksByRepositoryIdExist?: boolean; + /** Filter by the object’s `platformRepositoryWorkflowsByRepositoryId` relation. */ + platformRepositoryWorkflowsByRepositoryId?: PlatformRepositoryToManyPlatformRepositoryWorkflowFilter; + /** `platformRepositoryWorkflowsByRepositoryId` exist. */ + platformRepositoryWorkflowsByRepositoryIdExist?: boolean; + /** Filter by the object’s `provider` field. */ + provider?: StringTrgmFilter; + /** Filter by the object’s `search` field. */ + search?: FullTextFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringTrgmFilter; + /** TRGM search on the `clone_url` column. */ + trgmCloneUrl?: TrgmSearchInput; + /** TRGM search on the `default_branch` column. */ + trgmDefaultBranch?: TrgmSearchInput; + /** TRGM search on the `description` column. */ + trgmDescription?: TrgmSearchInput; + /** TRGM search on the `external_id` column. */ + trgmExternalId?: TrgmSearchInput; + /** TRGM search on the `name` column. */ + trgmName?: TrgmSearchInput; + /** TRGM search on the `provider` column. */ + trgmProvider?: TrgmSearchInput; + /** TRGM search on the `slug` column. */ + trgmSlug?: TrgmSearchInput; + /** TRGM search on the `visibility` column. */ + trgmVisibility?: TrgmSearchInput; + /** TSV search on the `search` column. */ + tsvSearch?: string; + /** + * Composite unified search. Provide a search string and it will be dispatched to + * all text-compatible search algorithms (tsvector, BM25, pg_trgm) + * simultaneously. When the LLM plugin is active, pgvector also participates via + * auto-embedding. Rows matching ANY algorithm are returned. All matching score + * fields are populated. + */ + unifiedSearch?: string; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** VECTOR search on the `embedding` column. */ + vectorEmbedding?: VectorNearbyInput; + /** Filter by the object’s `visibility` field. */ + visibility?: StringTrgmFilter; +} +/** A filter to be used against `Image` object types. All fields are combined with a logical ‘and.’ */ +export interface ImageFilter { + /** Checks for all expressions in this list. */ + and?: ImageFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `digest` field. */ + digest?: StringFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `imageGrants` relation. */ + imageGrants?: ImageToManyImageGrantFilter; + /** `imageGrants` exist. */ + imageGrantsExist?: boolean; + /** Filter by the object’s `isPublished` field. */ + isPublished?: BooleanFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: ImageFilter; + /** Checks for any expressions in this list. */ + or?: ImageFilter[]; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `platformOnly` field. */ + platformOnly?: BooleanFilter; + /** Filter by the object’s `registryHost` field. */ + registryHost?: StringFilter; + /** Filter by the object’s `repository` field. */ + repository?: StringFilter; + /** Filter by the object’s `runtime` field. */ + runtime?: StringFilter; + /** Filter by the object’s `tag` field. */ + tag?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface InfraInitEmptyRepoInput { - clientMutationId?: string; - sId?: string; - storeId?: string; +/** A filter to be used against `PlatformNamespace` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformNamespaceFilter { + /** Checks for all expressions in this list. */ + and?: PlatformNamespaceFilter[]; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Filter by the object’s `clusterId` field. */ + clusterId?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; + /** Filter by the object’s `isManaged` field. */ + isManaged?: BooleanFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `namespaceName` field. */ + namespaceName?: StringFilter; + /** Negates the expression. */ + not?: PlatformNamespaceFilter; + /** Checks for any expressions in this list. */ + or?: PlatformNamespaceFilter[]; + /** Filter by the object’s `platformBuilderBindingsByNamespaceId` relation. */ + platformBuilderBindingsByNamespaceId?: PlatformNamespaceToManyPlatformBuilderBindingFilter; + /** `platformBuilderBindingsByNamespaceId` exist. */ + platformBuilderBindingsByNamespaceIdExist?: boolean; + /** Filter by the object’s `platformFunctionDeploymentsByNamespaceId` relation. */ + platformFunctionDeploymentsByNamespaceId?: PlatformNamespaceToManyPlatformFunctionDeploymentFilter; + /** `platformFunctionDeploymentsByNamespaceId` exist. */ + platformFunctionDeploymentsByNamespaceIdExist?: boolean; + /** Filter by the object’s `platformRegistryBindingsByNamespaceId` relation. */ + platformRegistryBindingsByNamespaceId?: PlatformNamespaceToManyPlatformRegistryBindingFilter; + /** `platformRegistryBindingsByNamespaceId` exist. */ + platformRegistryBindingsByNamespaceIdExist?: boolean; + /** Filter by the object’s `platformResourceDefinitionsByNamespaceId` relation. */ + platformResourceDefinitionsByNamespaceId?: PlatformNamespaceToManyPlatformResourceDefinitionFilter; + /** `platformResourceDefinitionsByNamespaceId` exist. */ + platformResourceDefinitionsByNamespaceIdExist?: boolean; + /** Filter by the object’s `platformResourceInstallationsByNamespaceId` relation. */ + platformResourceInstallationsByNamespaceId?: PlatformNamespaceToManyPlatformResourceInstallationFilter; + /** `platformResourceInstallationsByNamespaceId` exist. */ + platformResourceInstallationsByNamespaceIdExist?: boolean; + /** Filter by the object’s `platformResourcesByNamespaceId` relation. */ + platformResourcesByNamespaceId?: PlatformNamespaceToManyPlatformResourceFilter; + /** `platformResourcesByNamespaceId` exist. */ + platformResourcesByNamespaceIdExist?: boolean; + /** Filter by the object’s `platformWebhookEndpointsByNamespaceId` relation. */ + platformWebhookEndpointsByNamespaceId?: PlatformNamespaceToManyPlatformWebhookEndpointFilter; + /** `platformWebhookEndpointsByNamespaceId` exist. */ + platformWebhookEndpointsByNamespaceIdExist?: boolean; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; } -export interface InfraInsertNodeAtPathInput { - clientMutationId?: string; - data?: Record; - kids?: string[]; - ktree?: string[]; - path?: string[]; - root?: string; - sId?: string; +/** A filter to be used against `PlatformImage` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformImageFilter { + /** Checks for all expressions in this list. */ + and?: PlatformImageFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `digest` field. */ + digest?: StringFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isPublished` field. */ + isPublished?: BooleanFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: PlatformImageFilter; + /** Checks for any expressions in this list. */ + or?: PlatformImageFilter[]; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `platformImageGrantsByImageId` relation. */ + platformImageGrantsByImageId?: PlatformImageToManyPlatformImageGrantFilter; + /** `platformImageGrantsByImageId` exist. */ + platformImageGrantsByImageIdExist?: boolean; + /** Filter by the object’s `platformOnly` field. */ + platformOnly?: BooleanFilter; + /** Filter by the object’s `registryHost` field. */ + registryHost?: StringFilter; + /** Filter by the object’s `repository` field. */ + repository?: StringFilter; + /** Filter by the object’s `runtime` field. */ + runtime?: StringFilter; + /** Filter by the object’s `tag` field. */ + tag?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface InfraSetDataAtPathInput { - clientMutationId?: string; - data?: Record; - path?: string[]; - root?: string; - sId?: string; +/** A filter to be used against Vector fields. All fields are combined with a logical ‘and.’ */ +export interface VectorFilter { + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: number[]; + /** Equal to the specified value. */ + equalTo?: number[]; + /** Included in the specified list. */ + in?: number[][]; + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** 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[][]; } -export interface InitEmptyRepoInput { - clientMutationId?: string; - sId?: string; - storeId?: string; +/** A filter to be used against BigFloat fields. All fields are combined with a logical ‘and.’ */ +export interface BigFloatFilter { + /** 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[]; } -export interface InsertNodeAtPathInput { - clientMutationId?: string; - data?: Record; - kids?: string[]; - ktree?: string[]; - path?: string[]; - root?: string; - sId?: string; +/** A filter to be used against FullText fields. All fields are combined with a logical ‘and.’ */ +export interface FullTextFilter { + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: string; + /** Equal to the specified value. */ + equalTo?: string; + /** Included in the specified list. */ + in?: string[]; + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Performs a full text search on the field. */ + matches?: 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[]; } -export interface PlatformInfraInitEmptyRepoInput { - clientMutationId?: string; - sId?: string; - storeId?: string; +// ============ Payload/Return Types (for custom operations) ============ +export interface AddEdgePayload { + clientMutationId?: string | null; + result?: string | null; } -export interface PlatformInfraInsertNodeAtPathInput { - clientMutationId?: string; - data?: Record; - kids?: string[]; - ktree?: string[]; - path?: string[]; - root?: string; - sId?: string; +export type AddEdgePayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface AddEdgeAndSavePayload { + clientMutationId?: string | null; + result?: string | null; } -export interface PlatformInfraSetDataAtPathInput { - clientMutationId?: string; - data?: Record; - path?: string[]; - root?: string; - sId?: string; +export type AddEdgeAndSavePayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface AddNodePayload { + clientMutationId?: string | null; + result?: string | null; } -export interface PlatformResourceInstallationsInstallInput { - clientMutationId?: string; - definitionIds?: string[]; - name?: string; - namespaceId?: string; - newParams?: Record; - slug?: string; +export type AddNodePayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface AddNodeAndSavePayload { + clientMutationId?: string | null; + result?: string | null; } -export interface PlatformResourceInstallationsRollbackInput { - clientMutationId?: string; - commitId?: string; - targetInstallationId?: string; +export type AddNodeAndSavePayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface ApproveNodePayload { + clientMutationId?: string | null; } -export interface PlatformResourceInstallationsUninstallInput { - clientMutationId?: string; - targetInstallationId?: string; +export type ApproveNodePayloadSelect = { + clientMutationId?: boolean; +}; +export interface CopyGraphPayload { + clientMutationId?: string | null; + result?: string | null; } -export interface PlatformResourceInstallationsUpgradeInput { - clientMutationId?: string; - newParams?: Record; - targetInstallationId?: string; +export type CopyGraphPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface DatabaseAddEdgePayload { + clientMutationId?: string | null; + result?: string | null; } -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 type DatabaseAddEdgePayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface DatabaseAddEdgeAndSavePayload { + clientMutationId?: string | null; + result?: string | null; } -export interface ResourceInstallationsInstallInput { - clientMutationId?: string; - definitionIds?: string[]; - name?: string; - namespaceId?: string; - newParams?: Record; - slug?: string; +export type DatabaseAddEdgeAndSavePayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface DatabaseAddNodePayload { + clientMutationId?: string | null; + result?: string | null; } -export interface ResourceInstallationsRollbackInput { - clientMutationId?: string; - commitId?: string; - targetInstallationId?: string; +export type DatabaseAddNodePayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface DatabaseAddNodeAndSavePayload { + clientMutationId?: string | null; + result?: string | null; } -export interface ResourceInstallationsUninstallInput { - clientMutationId?: string; - targetInstallationId?: string; +export type DatabaseAddNodeAndSavePayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface DatabaseApproveNodePayload { + clientMutationId?: string | null; } -export interface ResourceInstallationsUpgradeInput { - clientMutationId?: string; - newParams?: Record; - targetInstallationId?: string; +export type DatabaseApproveNodePayloadSelect = { + clientMutationId?: boolean; +}; +export interface DatabaseCopyGraphPayload { + clientMutationId?: string | null; + result?: string | null; } -export interface SaveGraphInput { - clientMutationId?: string; - graphId?: string; - message?: string; - rootHash?: string; +export type DatabaseCopyGraphPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface DatabaseCreateFunctionGraphPayload { + clientMutationId?: string | null; + result?: string | null; } -export interface SetDataAtPathInput { - clientMutationId?: string; - data?: Record; - path?: string[]; - root?: string; - sId?: string; +export type DatabaseCreateFunctionGraphPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface DatabaseGraphInitEmptyRepoPayload { + clientMutationId?: string | null; } -export interface StartExecutionInput { - clientMutationId?: string; - graphId?: string; - inputPayload?: Record; - maxPendingJobs?: number; - maxTicks?: number; - outputNames?: string[]; - outputNode?: string; - outputPort?: string; - parentExecutionId?: string; - parentNodeName?: string; - timeoutInterval?: IntervalInput; +export type DatabaseGraphInitEmptyRepoPayloadSelect = { + clientMutationId?: boolean; +}; +export interface DatabaseGraphInsertNodeAtPathPayload { + clientMutationId?: string | null; + result?: string | null; } -export interface ValidateFunctionGraphInput { - clientMutationId?: string; - graphId?: string; +export type DatabaseGraphInsertNodeAtPathPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface DatabaseGraphInsertNodesAtPathsPayload { + clientMutationId?: string | null; + result?: string | null; } -/** A filter to be used against many `FunctionInvocation` object types. All fields are combined with a logical ‘and.’ */ -export interface FunctionApiBindingToManyFunctionInvocationFilter { - /** Filters to entities where every related entity matches. */ - every?: FunctionInvocationFilter; - /** Filters to entities where no related entity matches. */ - none?: FunctionInvocationFilter; - /** Filters to entities where at least one related entity matches. */ - some?: FunctionInvocationFilter; +export type DatabaseGraphInsertNodesAtPathsPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface DatabaseGraphSetAndCommitPayload { + clientMutationId?: string | null; + databaseGraphCommitEdge?: DatabaseGraphCommitEdge | null; + result?: DatabaseGraphCommit | null; +} +export type DatabaseGraphSetAndCommitPayloadSelect = { + clientMutationId?: boolean; + databaseGraphCommitEdge?: { + select: DatabaseGraphCommitEdgeSelect; + }; + result?: { + select: DatabaseGraphCommitSelect; + }; +}; +export interface DatabaseGraphSetDataAtPathPayload { + clientMutationId?: string | null; + result?: string | null; } -/** A filter to be used against many `FunctionApiBinding` object types. All fields are combined with a logical ‘and.’ */ -export interface FunctionDefinitionToManyFunctionApiBindingFilter { - /** Filters to entities where every related entity matches. */ - every?: FunctionApiBindingFilter; - /** Filters to entities where no related entity matches. */ - none?: FunctionApiBindingFilter; - /** Filters to entities where at least one related entity matches. */ - some?: FunctionApiBindingFilter; +export type DatabaseGraphSetDataAtPathPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface DatabaseGraphSetManyAndCommitPayload { + clientMutationId?: string | null; + databaseGraphCommitEdge?: DatabaseGraphCommitEdge | null; + result?: DatabaseGraphCommit | null; } -/** A filter to be used against many `FunctionCapabilityBinding` object types. All fields are combined with a logical ‘and.’ */ -export interface FunctionDefinitionToManyFunctionCapabilityBindingFilter { - /** Filters to entities where every related entity matches. */ - every?: FunctionCapabilityBindingFilter; - /** Filters to entities where no related entity matches. */ - none?: FunctionCapabilityBindingFilter; - /** Filters to entities where at least one related entity matches. */ - some?: FunctionCapabilityBindingFilter; +export type DatabaseGraphSetManyAndCommitPayloadSelect = { + clientMutationId?: boolean; + databaseGraphCommitEdge?: { + select: DatabaseGraphCommitEdgeSelect; + }; + result?: { + select: DatabaseGraphCommitSelect; + }; +}; +export interface DatabaseImportDefinitionsPayload { + clientMutationId?: string | null; } -/** A filter to be used against many `WebhookEndpoint` object types. All fields are combined with a logical ‘and.’ */ -export interface FunctionDefinitionToManyWebhookEndpointFilter { - /** Filters to entities where every related entity matches. */ - every?: WebhookEndpointFilter; - /** Filters to entities where no related entity matches. */ - none?: WebhookEndpointFilter; - /** Filters to entities where at least one related entity matches. */ - some?: WebhookEndpointFilter; +export type DatabaseImportDefinitionsPayloadSelect = { + clientMutationId?: boolean; +}; +export interface DatabaseImportGraphJsonPayload { + clientMutationId?: string | null; + result?: string | null; } -/** A filter to be used against many `FunctionGraphExecution` object types. All fields are combined with a logical ‘and.’ */ -export interface FunctionGraphToManyFunctionGraphExecutionFilter { - /** Filters to entities where every related entity matches. */ - every?: FunctionGraphExecutionFilter; - /** Filters to entities where no related entity matches. */ - none?: FunctionGraphExecutionFilter; - /** Filters to entities where at least one related entity matches. */ - some?: FunctionGraphExecutionFilter; +export type DatabaseImportGraphJsonPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface DatabaseSaveGraphPayload { + clientMutationId?: string | null; + result?: string | null; } -/** A filter to be used against many `PlatformFunctionDefinition` object types. All fields are combined with a logical ‘and.’ */ -export interface FunctionGraphToManyPlatformFunctionDefinitionFilter { - /** Filters to entities where every related entity matches. */ - every?: PlatformFunctionDefinitionFilter; - /** Filters to entities where no related entity matches. */ - none?: PlatformFunctionDefinitionFilter; - /** Filters to entities where at least one related entity matches. */ - some?: PlatformFunctionDefinitionFilter; +export type DatabaseSaveGraphPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface DatabaseStartExecutionPayload { + clientMutationId?: string | null; + result?: string | null; } -/** A filter to be used against Base64EncodedBinary fields. All fields are combined with a logical ‘and.’ */ -export interface Base64EncodedBinaryFilter { - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: Base64EncodedBinary; - /** Equal to the specified value. */ - equalTo?: Base64EncodedBinary; - /** Included in the specified list. */ - in?: Base64EncodedBinary[]; - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: Base64EncodedBinary; - /** Not equal to the specified value. */ - notEqualTo?: Base64EncodedBinary; - /** Not included in the specified list. */ - notIn?: Base64EncodedBinary[]; +export type DatabaseStartExecutionPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface DatabaseValidateFunctionGraphPayload { + clientMutationId?: string | null; + result?: boolean | null; } -/** A filter to be used against ConstructiveInternalTypeImage fields. All fields are combined with a logical ‘and.’ */ -export interface ConstructiveInternalTypeImageFilter { - /** Contained by the specified JSON. */ - containedBy?: ConstructiveInternalTypeImage; - /** Contains the specified JSON. */ - contains?: ConstructiveInternalTypeImage; - /** Contains all of the specified keys. */ - containsAllKeys?: string[]; - /** Contains any of the specified keys. */ - containsAnyKeys?: string[]; - /** Contains the specified key. */ - containsKey?: string; - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: ConstructiveInternalTypeImage; - /** Equal to the specified value. */ - equalTo?: ConstructiveInternalTypeImage; - /** Greater than the specified value. */ - greaterThan?: ConstructiveInternalTypeImage; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: ConstructiveInternalTypeImage; - /** Included in the specified list. */ - in?: ConstructiveInternalTypeImage[]; - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Less than the specified value. */ - lessThan?: ConstructiveInternalTypeImage; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: ConstructiveInternalTypeImage; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: ConstructiveInternalTypeImage; - /** Not equal to the specified value. */ - notEqualTo?: ConstructiveInternalTypeImage; - /** Not included in the specified list. */ - notIn?: ConstructiveInternalTypeImage[]; +export type DatabaseValidateFunctionGraphPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface FunctionInvocationsCreateSyncPayload { + clientMutationId?: string | null; + functionInvocationEdge?: FunctionInvocationEdge | null; + result?: FunctionInvocation | null; } -/** A filter to be used against many `FunctionDeployment` object types. All fields are combined with a logical ‘and.’ */ -export interface NamespaceToManyFunctionDeploymentFilter { - /** Filters to entities where every related entity matches. */ - every?: FunctionDeploymentFilter; - /** Filters to entities where no related entity matches. */ - none?: FunctionDeploymentFilter; - /** Filters to entities where at least one related entity matches. */ - some?: FunctionDeploymentFilter; +export type FunctionInvocationsCreateSyncPayloadSelect = { + clientMutationId?: boolean; + functionInvocationEdge?: { + select: FunctionInvocationEdgeSelect; + }; + result?: { + select: FunctionInvocationSelect; + }; +}; +export interface ImportDefinitionsPayload { + clientMutationId?: string | null; } -/** A filter to be used against many `ResourceDefinition` object types. All fields are combined with a logical ‘and.’ */ -export interface NamespaceToManyResourceDefinitionFilter { - /** Filters to entities where every related entity matches. */ - every?: ResourceDefinitionFilter; - /** Filters to entities where no related entity matches. */ - none?: ResourceDefinitionFilter; - /** Filters to entities where at least one related entity matches. */ - some?: ResourceDefinitionFilter; +export type ImportDefinitionsPayloadSelect = { + clientMutationId?: boolean; +}; +export interface ImportGraphJsonPayload { + clientMutationId?: string | null; + result?: string | null; } -/** A filter to be used against many `ResourceInstallation` object types. All fields are combined with a logical ‘and.’ */ -export interface NamespaceToManyResourceInstallationFilter { - /** Filters to entities where every related entity matches. */ - every?: ResourceInstallationFilter; - /** Filters to entities where no related entity matches. */ - none?: ResourceInstallationFilter; - /** Filters to entities where at least one related entity matches. */ - some?: ResourceInstallationFilter; +export type ImportGraphJsonPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface InfraInitEmptyRepoPayload { + clientMutationId?: string | null; } -/** A filter to be used against many `Resource` object types. All fields are combined with a logical ‘and.’ */ -export interface NamespaceToManyResourceFilter { - /** Filters to entities where every related entity matches. */ - every?: ResourceFilter; - /** Filters to entities where no related entity matches. */ - none?: ResourceFilter; - /** Filters to entities where at least one related entity matches. */ - some?: ResourceFilter; +export type InfraInitEmptyRepoPayloadSelect = { + clientMutationId?: boolean; +}; +export interface InfraInsertNodeAtPathPayload { + clientMutationId?: string | null; + result?: string | null; } -/** A filter to be used against many `WebhookEndpoint` object types. All fields are combined with a logical ‘and.’ */ -export interface NamespaceToManyWebhookEndpointFilter { - /** Filters to entities where every related entity matches. */ - every?: WebhookEndpointFilter; - /** Filters to entities where no related entity matches. */ - none?: WebhookEndpointFilter; - /** Filters to entities where at least one related entity matches. */ - some?: WebhookEndpointFilter; +export type InfraInsertNodeAtPathPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface InfraInsertNodesAtPathsPayload { + clientMutationId?: string | null; + result?: string | null; } -/** A filter to be used against many `PlatformFunctionInvocation` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformFunctionApiBindingToManyPlatformFunctionInvocationFilter { - /** Filters to entities where every related entity matches. */ - every?: PlatformFunctionInvocationFilter; - /** Filters to entities where no related entity matches. */ - none?: PlatformFunctionInvocationFilter; - /** Filters to entities where at least one related entity matches. */ - some?: PlatformFunctionInvocationFilter; +export type InfraInsertNodesAtPathsPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface InfraSetAndCommitPayload { + clientMutationId?: string | null; + infraCommitEdge?: InfraCommitEdge | null; + result?: InfraCommit | null; } -/** A filter to be used against many `PlatformFunctionApiBinding` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformFunctionDefinitionToManyPlatformFunctionApiBindingFilter { - /** Filters to entities where every related entity matches. */ - every?: PlatformFunctionApiBindingFilter; - /** Filters to entities where no related entity matches. */ - none?: PlatformFunctionApiBindingFilter; - /** Filters to entities where at least one related entity matches. */ - some?: PlatformFunctionApiBindingFilter; +export type InfraSetAndCommitPayloadSelect = { + clientMutationId?: boolean; + infraCommitEdge?: { + select: InfraCommitEdgeSelect; + }; + result?: { + select: InfraCommitSelect; + }; +}; +export interface InfraSetDataAtPathPayload { + clientMutationId?: string | null; + result?: string | null; } -/** A filter to be used against many `PlatformFunctionCapabilityBinding` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformFunctionDefinitionToManyPlatformFunctionCapabilityBindingFilter { - /** Filters to entities where every related entity matches. */ - every?: PlatformFunctionCapabilityBindingFilter; - /** Filters to entities where no related entity matches. */ - none?: PlatformFunctionCapabilityBindingFilter; - /** Filters to entities where at least one related entity matches. */ - some?: PlatformFunctionCapabilityBindingFilter; +export type InfraSetDataAtPathPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface InfraSetManyAndCommitPayload { + clientMutationId?: string | null; + infraCommitEdge?: InfraCommitEdge | null; + result?: InfraCommit | null; } -/** A filter to be used against many `PlatformWebhookEndpoint` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformFunctionDefinitionToManyPlatformWebhookEndpointFilter { - /** Filters to entities where every related entity matches. */ - every?: PlatformWebhookEndpointFilter; - /** Filters to entities where no related entity matches. */ - none?: PlatformWebhookEndpointFilter; - /** Filters to entities where at least one related entity matches. */ - some?: PlatformWebhookEndpointFilter; +export type InfraSetManyAndCommitPayloadSelect = { + clientMutationId?: boolean; + infraCommitEdge?: { + select: InfraCommitEdgeSelect; + }; + result?: { + select: InfraCommitSelect; + }; +}; +export interface InitEmptyRepoPayload { + clientMutationId?: string | null; } -/** A filter to be used against many `PlatformFunctionDeployment` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformNamespaceToManyPlatformFunctionDeploymentFilter { - /** Filters to entities where every related entity matches. */ - every?: PlatformFunctionDeploymentFilter; - /** Filters to entities where no related entity matches. */ - none?: PlatformFunctionDeploymentFilter; - /** Filters to entities where at least one related entity matches. */ - some?: PlatformFunctionDeploymentFilter; +export type InitEmptyRepoPayloadSelect = { + clientMutationId?: boolean; +}; +export interface InsertNodeAtPathPayload { + clientMutationId?: string | null; + result?: string | null; } -/** A filter to be used against many `PlatformResourceDefinition` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformNamespaceToManyPlatformResourceDefinitionFilter { - /** Filters to entities where every related entity matches. */ - every?: PlatformResourceDefinitionFilter; - /** Filters to entities where no related entity matches. */ - none?: PlatformResourceDefinitionFilter; - /** Filters to entities where at least one related entity matches. */ - some?: PlatformResourceDefinitionFilter; +export type InsertNodeAtPathPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface InsertNodesAtPathsPayload { + clientMutationId?: string | null; + result?: string | null; } -/** A filter to be used against many `PlatformResourceInstallation` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformNamespaceToManyPlatformResourceInstallationFilter { - /** Filters to entities where every related entity matches. */ - every?: PlatformResourceInstallationFilter; - /** Filters to entities where no related entity matches. */ - none?: PlatformResourceInstallationFilter; - /** Filters to entities where at least one related entity matches. */ - some?: PlatformResourceInstallationFilter; +export type InsertNodesAtPathsPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface PlatformFunctionInvocationsCreateSyncPayload { + clientMutationId?: string | null; + platformFunctionInvocationEdge?: PlatformFunctionInvocationEdge | null; + result?: PlatformFunctionInvocation | null; } -/** A filter to be used against many `PlatformResource` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformNamespaceToManyPlatformResourceFilter { - /** Filters to entities where every related entity matches. */ - every?: PlatformResourceFilter; - /** Filters to entities where no related entity matches. */ - none?: PlatformResourceFilter; - /** Filters to entities where at least one related entity matches. */ - some?: PlatformResourceFilter; +export type PlatformFunctionInvocationsCreateSyncPayloadSelect = { + clientMutationId?: boolean; + platformFunctionInvocationEdge?: { + select: PlatformFunctionInvocationEdgeSelect; + }; + result?: { + select: PlatformFunctionInvocationSelect; + }; +}; +export interface PlatformInfraInitEmptyRepoPayload { + clientMutationId?: string | null; } -/** A filter to be used against many `PlatformWebhookEndpoint` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformNamespaceToManyPlatformWebhookEndpointFilter { - /** Filters to entities where every related entity matches. */ - every?: PlatformWebhookEndpointFilter; - /** Filters to entities where no related entity matches. */ - none?: PlatformWebhookEndpointFilter; - /** Filters to entities where at least one related entity matches. */ - some?: PlatformWebhookEndpointFilter; +export type PlatformInfraInitEmptyRepoPayloadSelect = { + clientMutationId?: boolean; +}; +export interface PlatformInfraInsertNodeAtPathPayload { + clientMutationId?: string | null; + result?: string | null; } -/** A filter to be used against many `PlatformResourceStatusCheck` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformResourceToManyPlatformResourceStatusCheckFilter { - /** Filters to entities where every related entity matches. */ - every?: PlatformResourceStatusCheckFilter; - /** Filters to entities where no related entity matches. */ - none?: PlatformResourceStatusCheckFilter; - /** Filters to entities where at least one related entity matches. */ - some?: PlatformResourceStatusCheckFilter; +export type PlatformInfraInsertNodeAtPathPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface PlatformInfraInsertNodesAtPathsPayload { + clientMutationId?: string | null; + result?: string | null; } -/** A filter to be used against many `PlatformResource` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformResourceDefinitionToManyPlatformResourceFilter { - /** Filters to entities where every related entity matches. */ - every?: PlatformResourceFilter; - /** Filters to entities where no related entity matches. */ - none?: PlatformResourceFilter; - /** Filters to entities where at least one related entity matches. */ - some?: PlatformResourceFilter; +export type PlatformInfraInsertNodesAtPathsPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface PlatformInfraSetAndCommitPayload { + clientMutationId?: string | null; + platformInfraCommitEdge?: PlatformInfraCommitEdge | null; + result?: PlatformInfraCommit | null; } -/** A filter to be used against Interval fields. All fields are combined with a logical ‘and.’ */ -export interface IntervalFilter { - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: IntervalInput; - /** Equal to the specified value. */ - equalTo?: IntervalInput; - /** Greater than the specified value. */ - greaterThan?: IntervalInput; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: IntervalInput; - /** Included in the specified list. */ - in?: IntervalInput[]; - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Less than the specified value. */ - lessThan?: IntervalInput; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: IntervalInput; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: IntervalInput; - /** Not equal to the specified value. */ - notEqualTo?: IntervalInput; - /** Not included in the specified list. */ - notIn?: IntervalInput[]; +export type PlatformInfraSetAndCommitPayloadSelect = { + clientMutationId?: boolean; + platformInfraCommitEdge?: { + select: PlatformInfraCommitEdgeSelect; + }; + result?: { + select: PlatformInfraCommitSelect; + }; +}; +export interface PlatformInfraSetDataAtPathPayload { + clientMutationId?: string | null; + result?: string | null; } -/** A filter to be used against many `PlatformResource` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformResourceInstallationToManyPlatformResourceFilter { - /** Filters to entities where every related entity matches. */ - every?: PlatformResourceFilter; - /** Filters to entities where no related entity matches. */ - none?: PlatformResourceFilter; - /** Filters to entities where at least one related entity matches. */ - some?: PlatformResourceFilter; +export type PlatformInfraSetDataAtPathPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface PlatformInfraSetManyAndCommitPayload { + clientMutationId?: string | null; + platformInfraCommitEdge?: PlatformInfraCommitEdge | null; + result?: PlatformInfraCommit | null; } -/** A filter to be used against many `PlatformWebhookEvent` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformWebhookEndpointToManyPlatformWebhookEventFilter { - /** Filters to entities where every related entity matches. */ - every?: PlatformWebhookEventFilter; - /** Filters to entities where no related entity matches. */ - none?: PlatformWebhookEventFilter; - /** Filters to entities where at least one related entity matches. */ - some?: PlatformWebhookEventFilter; +export type PlatformInfraSetManyAndCommitPayloadSelect = { + clientMutationId?: boolean; + platformInfraCommitEdge?: { + select: PlatformInfraCommitEdgeSelect; + }; + result?: { + select: PlatformInfraCommitSelect; + }; +}; +export interface PlatformResourceInstallationsInstallPayload { + clientMutationId?: string | null; + result?: string | null; } -/** A filter to be used against many `ResourceStatusCheck` object types. All fields are combined with a logical ‘and.’ */ -export interface ResourceToManyResourceStatusCheckFilter { - /** Filters to entities where every related entity matches. */ - every?: ResourceStatusCheckFilter; - /** Filters to entities where no related entity matches. */ - none?: ResourceStatusCheckFilter; - /** Filters to entities where at least one related entity matches. */ - some?: ResourceStatusCheckFilter; +export type PlatformResourceInstallationsInstallPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface PlatformResourceInstallationsRollbackPayload { + clientMutationId?: string | null; } -/** A filter to be used against many `Resource` object types. All fields are combined with a logical ‘and.’ */ -export interface ResourceDefinitionToManyResourceFilter { - /** Filters to entities where every related entity matches. */ - every?: ResourceFilter; - /** Filters to entities where no related entity matches. */ - none?: ResourceFilter; - /** Filters to entities where at least one related entity matches. */ - some?: ResourceFilter; +export type PlatformResourceInstallationsRollbackPayloadSelect = { + clientMutationId?: boolean; +}; +export interface PlatformResourceInstallationsUninstallPayload { + clientMutationId?: string | null; } -/** A filter to be used against many `Resource` object types. All fields are combined with a logical ‘and.’ */ -export interface ResourceInstallationToManyResourceFilter { - /** Filters to entities where every related entity matches. */ - every?: ResourceFilter; - /** Filters to entities where no related entity matches. */ - none?: ResourceFilter; - /** Filters to entities where at least one related entity matches. */ - some?: ResourceFilter; +export type PlatformResourceInstallationsUninstallPayloadSelect = { + clientMutationId?: boolean; +}; +export interface PlatformResourceInstallationsUpgradePayload { + clientMutationId?: string | null; } -/** A filter to be used against many `WebhookEvent` object types. All fields are combined with a logical ‘and.’ */ -export interface WebhookEndpointToManyWebhookEventFilter { - /** Filters to entities where every related entity matches. */ - every?: WebhookEventFilter; - /** Filters to entities where no related entity matches. */ - none?: WebhookEventFilter; - /** Filters to entities where at least one related entity matches. */ - some?: WebhookEventFilter; +export type PlatformResourceInstallationsUpgradePayloadSelect = { + clientMutationId?: boolean; +}; +export interface ProvisionBucketPayload { + /** The logical bucket row that was queued for reconciliation. */ + bucketId: string; + bucketKey: string; + /** The reconciler job enqueued to provision this bucket. */ + jobId: string; + /** The physical bucket name already recorded, or null when reconciliation has not completed. */ + physicalName?: string | null; } -/** An input for mutations affecting `DbPreset` */ -export interface DbPresetInput { - /** Whether this preset is selectable for new databases */ - 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; - /** Preset definition (modules + options) — 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; - /** Human-readable preset name */ - label?: string; - /** Content-address of definition->modules via metaschema_private.modules_hash (stamped by the versioned trigger); fast exact-match lookup key for provisioning requests */ - modulesHash?: string; - /** Preset slug (unique per scope); the preset's path in the infra tree is [db_preset, 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 type ProvisionBucketPayloadSelect = { + bucketId?: boolean; + bucketKey?: boolean; + jobId?: boolean; + physicalName?: boolean; +}; +export interface ResourceInstallationsInstallPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type ResourceInstallationsInstallPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface ResourceInstallationsRollbackPayload { + clientMutationId?: string | null; } -/** An input for mutations affecting `FunctionApiBinding` */ -export interface FunctionApiBindingInput { - /** Binding alias (e.g. default, staging, production) */ - alias?: string; - /** API endpoint this function is bound to */ - apiId: string; - /** Per-binding configuration (overrides, routing rules, etc.) */ - config?: Record; - createdAt?: string; - /** Function definition this binding belongs to */ - functionDefinitionId: string; - id?: string; - updatedAt?: string; +export type ResourceInstallationsRollbackPayloadSelect = { + clientMutationId?: boolean; +}; +export interface ResourceInstallationsUninstallPayload { + clientMutationId?: string | null; } -/** An input for mutations affecting `FunctionCapabilityBinding` */ -export interface FunctionCapabilityBindingInput { - /** Bucket this capability targets (exactly one typed target is set) */ - bucketId?: string; - createdAt?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - /** Function definition holding this capability (exactly one of function_id / graph_id is set) */ - functionId?: string; - /** Flow graph holding this capability (exactly one of function_id / graph_id is set) */ - graphId?: string; - id?: string; - /** Runtime handle the holder addresses this capability by (e.g. default, scratch) */ - key?: string; - /** Lifecycle the capability applies to: deployment (build/deploy time), execution (per invocation), root_execution (root of a graph execution tree) */ - lifecycle: string; - /** Per-binding annotations (no runtime semantics) */ - metadata?: Record; - updatedAt?: string; +export type ResourceInstallationsUninstallPayloadSelect = { + clientMutationId?: boolean; +}; +export interface ResourceInstallationsUpgradePayload { + clientMutationId?: string | null; } -/** 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. */ - accessChannels?: string[]; - /** Function task category (e.g. email, embed, chunk, custom) */ - category: string; - /** Knative containerConcurrency — max concurrent requests per pod instance */ - concurrency?: number; - createdAt?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - /** Human-readable description of what this function does */ - description?: string; - /** Palette grouping category (e.g. email, data, ai, custom) */ - fnCategory?: string; - /** Ordered array of module_table column names holding the generated function names to invoke when runtime=sql (module mode). NULL for direct mode and other runtimes. */ - functionColumns?: Record; - /** Existing flow graph invoked when runtime=graph. Required for graph runtime and forbidden for all other runtimes. */ - graphId?: string; - /** Icon identifier for UI palette rendering (e.g. mail, database, code) */ - icon?: string; - id?: string; - /** Docker image reference (e.g. ghcr.io/constructive-io/email-send-fn:latest). Required when runtime=http or runtime=resource. NULL for inline functions. */ - image?: string; - /** Data input ports: [{name, type, description?, optional?, multi?, schema?}] */ - inputs?: Record; - /** Provider slugs (e.g. mailgun, postgres) associated with this function. The UI uses this to auto-fill required_secrets and required_configs from integration_providers. */ - integrations?: string[]; - /** Whether this function definition is published to the public catalog for direct authenticated invocation. Default false = internal-only via add_job() */ - isPublished?: boolean; - /** Maximum retry attempts for the underlying job */ - maxAttempts?: number; - /** metaschema_modules_public table whose per-database row carries the generated function names when runtime=sql (module mode). NULL for direct mode and other runtimes. */ - moduleTable?: string; - /** Function name within category (e.g. send_verification_link, process_file_embedding) */ - name: string; - /** Data output ports: [{name, type, description?, optional?, multi?, schema?}] */ - outputs?: Record; - /** Ordered bind-parameter mapping for runtime=sql: [{name, type}]. payload[name] is bound as $n::type. */ - payloadArgs?: Record; - /** Job priority (lower = higher priority) */ - priority?: number; - /** Configuration properties: [{name, type, default?, description?, required?, schema?}] */ - props?: Record; - /** Protected platform definition: narrower scopes cannot register the same task_identifier */ - protected?: boolean; - /** Timestamp when this function was published. NULL means immediately published when is_published is true; future timestamps delay public visibility */ - 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. */ - 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[]; - /** 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}} */ - resources?: Record; - /** Execution mode: http (Knative Service dispatch), inline (in-process in compute worker), handler (registered infrastructure handler), sql (generic SQL dispatch via a trusted direct target or module-resolved function names), resource (Kubernetes Job via the resource module with node-gateway callbacks), or graph (existing flow graph referenced by graph_id) */ - runtime?: string; - /** Maximum pod count for Knative autoscaling (maxScale) */ - scaleMax?: number; - /** Minimum pod count for Knative autoscaling (minScale) */ - scaleMin?: number; - /** Name of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. */ - targetFunction?: string; - /** Schema of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. */ - targetSchema?: string; - /** Knative request timeout in seconds */ - timeoutSeconds?: number; - updatedAt?: string; - /** Whether this function has side effects and cannot be cached or memoized */ - volatile?: boolean; +export type ResourceInstallationsUpgradePayloadSelect = { + clientMutationId?: boolean; +}; +export interface SaveGraphPayload { + clientMutationId?: string | null; + result?: string | null; } -/** An input for mutations affecting `ResourceRequirement` */ -export interface ResourceRequirementInput { - name?: string; - provider?: string; - required?: boolean; +export type SaveGraphPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface SetAndCommitPayload { + clientMutationId?: string | null; + functionGraphCommitEdge?: FunctionGraphCommitEdge | null; + result?: FunctionGraphCommit | null; } -/** An input for mutations affecting `FunctionDeployment` */ -export interface FunctionDeploymentInput { - /** Freeform metadata for tooling and operational notes */ - annotations?: Record; - /** Max concurrent requests per pod (NULL = inherit from definition) */ - concurrency?: number; - createdAt?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - /** Cumulative error count for this deployment */ - errorCount?: number; - /** Handler directory name (e.g. email, document) — used as FN_HANDLER_NAME in combined-image mode to select the entry point */ - handlerName?: string; - id?: string; - /** Logical image name — the handler identity and grouping key (e.g. fn-email). No registry host or tag; tag lives in image_version. */ - image: string; - /** Image tag/version for the handler container (e.g. latest, 2.6.4) */ - imageVersion?: string; - /** Key/value pairs for selecting and filtering deployments */ - labels?: Record; - /** Most recent provisioning or runtime error message */ - lastError?: string; - /** Timestamp of the most recent error */ - lastErrorAt?: string; - /** Target namespace for this deployment (maps to a K8s namespace) */ - namespaceId: string; - /** K8s resource spec override: {"requests":{"cpu":"100m","memory":"128Mi"},"limits":{...}} */ - resources?: Record; - /** Deployment revision number (incremented on each redeployment) */ - revision?: number; - /** Maximum replica count (NULL = inherit from definition or Knative default) */ - scaleMax?: number; - /** Minimum replica count (NULL = inherit from definition or Knative default) */ - scaleMin?: number; - /** Knative service name — a randomly minted cute name (unique_names.generate_name() + random hex suffix) assigned by the service_url trigger; unique per namespace, not derived from the image */ - serviceName?: string; - /** Knative service URL (http://{service-name}.{namespace}.svc.cluster.local) — populated after provisioning */ - serviceUrl?: string; - /** Deployment lifecycle status: pending, provisioning, active, failed, scaled_to_zero, deactivated */ - status?: string; - /** Request timeout override in seconds (NULL = inherit from definition) */ - timeoutSeconds?: number; - updatedAt?: string; +export type SetAndCommitPayloadSelect = { + clientMutationId?: boolean; + functionGraphCommitEdge?: { + select: FunctionGraphCommitEdgeSelect; + }; + result?: { + select: FunctionGraphCommitSelect; + }; +}; +export interface SetDataAtPathPayload { + clientMutationId?: string | null; + result?: string | null; } -/** An input for mutations affecting `FunctionDeploymentEvent` */ -export interface FunctionDeploymentEventInput { - /** User who triggered this event (NULL for system/automated) */ - actorId?: string; - /** Event timestamp (partition key) */ - createdAt?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - /** Deployment this event belongs to */ - deploymentId: string; - /** Event type: provisioned, scaled, failed, deactivated, redeployed, health_check */ - eventType: string; - /** Unique event identifier */ - id?: string; - /** Human-readable description of the event */ - message?: string; - /** Structured context (old/new values, error details, etc.) */ - metadata?: Record; +export type SetDataAtPathPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface SetManyAndCommitPayload { + clientMutationId?: string | null; + functionGraphCommitEdge?: FunctionGraphCommitEdge | null; + result?: FunctionGraphCommit | null; } -/** An input for mutations affecting `FunctionExecutionLog` */ -export interface FunctionExecutionLogInput { - /** User who triggered the execution (NULL for system/cron) */ - actorId?: string; - /** Log entry timestamp (partition key) */ - createdAt?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - /** Unique log entry identifier */ - id?: string; - /** Invocation this log entry belongs to (NULL for standalone job logs) */ - invocationId?: string; - /** Log severity: debug, info, warn, error */ - logLevel?: string; - /** Log message text */ - message: string; - /** Structured context (labels, trace data, extra fields) */ - metadata?: Record; - /** Function routing key (NULL for generic job logs) */ - taskIdentifier?: string; +export type SetManyAndCommitPayloadSelect = { + clientMutationId?: boolean; + functionGraphCommitEdge?: { + select: FunctionGraphCommitEdgeSelect; + }; + result?: { + select: FunctionGraphCommitSelect; + }; +}; +export interface StartExecutionPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type StartExecutionPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface ValidateFunctionGraphPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type ValidateFunctionGraphPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface CreateBuildPayload { + /** The `Build` that was created by this mutation. */ + build?: Build | null; + buildEdge?: BuildEdge | null; + clientMutationId?: string | null; +} +export type CreateBuildPayloadSelect = { + build?: { + select: BuildSelect; + }; + buildEdge?: { + select: BuildEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface UpdateBuildPayload { + /** The `Build` that was updated by this mutation. */ + build?: Build | null; + buildEdge?: BuildEdge | null; + clientMutationId?: string | null; } -/** An input for mutations affecting `FunctionGraphCommit` */ -export interface FunctionGraphCommitInput { - /** User who authored the changes */ - authorId?: string; - /** User who committed (may differ from author) */ - committerId?: string; - /** Commit timestamp */ - date?: string; - /** Unique commit identifier */ - id?: string; - /** Optional commit message */ - message?: string; - /** Parent commit IDs (supports merge commits) */ - parentIds?: string[]; - /** Opaque store partition key for the global tier */ - scopeId: string; - /** Store this commit belongs to */ - storeId: string; - /** Root object ID of the tree snapshot at this commit */ - treeId?: string; +export type UpdateBuildPayloadSelect = { + build?: { + select: BuildSelect; + }; + buildEdge?: { + select: BuildEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface DeleteBuildPayload { + /** The `Build` that was deleted by this mutation. */ + build?: Build | null; + buildEdge?: BuildEdge | null; + clientMutationId?: string | null; } -/** An input for mutations affecting `FunctionGraphExecution` */ -export interface FunctionGraphExecutionInput { - /** User actor propagated to asynchronous graph jobs */ - actorId?: string; - /** Execution completion timestamp */ - completedAt?: string; - /** Index into execution_plan — tick only processes this wave */ - currentWave?: number; - /** Pinned definitions store commit for deterministic evaluation */ - definitionsCommitId?: string; - /** Entity context propagated to asynchronous graph jobs */ - entityId?: string; - /** Scope discriminator propagated to asynchronous graph jobs */ - entityType?: string; - /** Machine-readable error code when status = failed */ - errorCode?: string; - /** Human-readable error description when status = failed */ - errorMessage?: string; - /** Pre-computed topological sort as array of wave objects */ - executionPlan?: Record; - /** FK to the graph definition being executed */ - graphId: string; - /** Unique execution identifier */ - id?: string; - /** Initial inputs provided at invocation time */ - inputPayload?: Record; - /** Partition coordinate for the function invocation that launched this graph execution */ - invocationCreatedAt?: string; - /** Function invocation that launched this top-level graph execution */ - invocationId?: string; - /** Timestamp of the last real progress (node enqueue, node output, completion) — drives the activity-debounced watchdog */ - lastProgressAt?: string; - /** Maximum pending jobs before execution is failed (default 50) */ - maxPendingJobs?: number; - /** Maximum ticks before execution is failed (default 100) */ - maxTicks?: number; - /** Map of node_name → execution output id (content-addressed hash reference) */ - nodeOutputs?: Record; - /** Organization context propagated to asynchronous graph jobs */ - organizationId?: string; - /** Selected graphOutput portName values; NULL or empty returns all graph outputs */ - outputNames?: string[]; - /** Target output boundary node name to resolve; NULL derives completion from the graph's graphOutput nodes */ - outputNode?: string; - /** Final result extracted from terminal output node */ - outputPayload?: Record; - /** Target output port name (default: value) */ - outputPort?: string; - /** Parent execution when this is a sub-execution */ - parentExecutionId?: string; - /** Function invocation parent assigned to node invocations spawned by this execution */ - parentInvocationId?: string; - /** Node name in parent execution that spawned this sub-execution */ - parentNodeName?: string; - /** Principal identity propagated to asynchronous graph jobs */ - principalId?: string; - /** Opaque store partition key for the global tier */ - scopeId: string; - /** Execution start timestamp */ - startedAt?: string; - /** Lifecycle: pending → running → completed/failed/cancelled */ - status?: string; - /** Number of evaluate_step ticks executed */ - tickCount?: number; - /** Absolute deadline — execution fails if still running after this time */ - timeoutAt?: string; +export type DeleteBuildPayloadSelect = { + build?: { + select: BuildSelect; + }; + buildEdge?: { + select: BuildEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface CreateBuildStepPayload { + /** The `BuildStep` that was created by this mutation. */ + buildStep?: BuildStep | null; + buildStepEdge?: BuildStepEdge | null; + clientMutationId?: string | null; } -/** An input for mutations affecting `FunctionGraphExecutionNodeState` */ -export interface FunctionGraphExecutionNodeStateInput { - /** Snapshot of the node's resolved inputs for resource-runtime nodes — served by the node gateway GET /inputs endpoint */ - callbackInputs?: Record; - /** Metering/attribution context stamped at resource dispatch (namespace_id, task_identifier, entity_id, scope, resource identity, dispatched_at, attempt) — lets the node gateway settle and attribute without extra lookups */ - callbackMeta?: Record; - /** SHA-256 hex digest of the node callback token — set for resource-runtime nodes so the node gateway can authenticate result/error/heartbeat callbacks */ - callbackTokenHash?: string; - /** Timestamp when the node finished (success or failure) */ - completedAt?: string; - /** Timestamp of node state creation (partition key) */ - createdAt?: string; - /** Machine-readable error code when status = failed */ - errorCode?: string; - /** Human-readable error description when status = failed */ - errorMessage?: string; - /** FK to the parent graph execution */ - executionId: string; - /** Unique node state identifier */ - id?: string; - /** Name of the node within the graph (e.g. send-email1) */ - nodeName: string; - /** Full merkle tree path to this node (e.g. {function,graphs,myflow,nodes,send-email1}) — enables subnet hierarchy tracking */ - nodePath?: string[]; - /** FK to execution_outputs — content-addressed output blob for this node */ - outputId?: string; - /** Opaque store partition key for the global tier */ - scopeId: string; - /** Timestamp when the node began executing */ - startedAt?: string; - /** Node lifecycle: pending → queued → running → completed/failed */ - status?: string; +export type CreateBuildStepPayloadSelect = { + buildStep?: { + select: BuildStepSelect; + }; + buildStepEdge?: { + select: BuildStepEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface UpdateBuildStepPayload { + /** The `BuildStep` that was updated by this mutation. */ + buildStep?: BuildStep | null; + buildStepEdge?: BuildStepEdge | null; + clientMutationId?: string | null; } -/** An input for mutations affecting `FunctionGraphExecutionOutput` */ -export interface FunctionGraphExecutionOutputInput { - /** Timestamp of output creation */ - createdAt?: string; - /** The actual output payload from a completed node */ - data: Record; - /** SHA-256 hash of the data JSONB — content-addressed deduplication */ - hash: Base64EncodedBinary; - /** Unique execution output identifier */ - id?: string; - /** Opaque store partition key for the global tier */ - scopeId: string; +export type UpdateBuildStepPayloadSelect = { + buildStep?: { + select: BuildStepSelect; + }; + buildStepEdge?: { + select: BuildStepEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface DeleteBuildStepPayload { + /** The `BuildStep` that was deleted by this mutation. */ + buildStep?: BuildStep | null; + buildStepEdge?: BuildStepEdge | null; + clientMutationId?: string | null; } -/** An input for mutations affecting `FunctionGraphObject` */ -export interface FunctionGraphObjectInput { - /** Timestamp of object creation */ - createdAt?: string; - /** Payload data for this object node */ - data?: Record; - /** Content-addressed UUID v5 — deterministic hash of (data, kids, ktree) */ - id: string; - /** Ordered array of child object IDs */ - kids?: string[]; - /** Ordered array of child path names (parallel to kids) */ - ktree?: string[]; - /** Opaque store partition key for the global tier */ - scopeId: string; +export type DeleteBuildStepPayloadSelect = { + buildStep?: { + select: BuildStepSelect; + }; + buildStepEdge?: { + select: BuildStepEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface CreateBuilderBindingPayload { + /** The `BuilderBinding` that was created by this mutation. */ + builderBinding?: BuilderBinding | null; + builderBindingEdge?: BuilderBindingEdge | null; + clientMutationId?: string | null; } -/** An input for mutations affecting `FunctionGraphRef` */ -export interface FunctionGraphRefInput { - /** Commit this ref points to */ - commitId?: string; - /** Unique ref identifier */ - id?: string; - /** Ref name (e.g. HEAD, main) */ - name: string; - /** Opaque store partition key for the global tier */ - scopeId: string; - /** Store this ref belongs to */ - storeId: string; +export type CreateBuilderBindingPayloadSelect = { + builderBinding?: { + select: BuilderBindingSelect; + }; + builderBindingEdge?: { + select: BuilderBindingEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface UpdateBuilderBindingPayload { + /** The `BuilderBinding` that was updated by this mutation. */ + builderBinding?: BuilderBinding | null; + builderBindingEdge?: BuilderBindingEdge | null; + clientMutationId?: string | null; } -/** An input for mutations affecting `FunctionGraphStore` */ -export interface FunctionGraphStoreInput { - /** Timestamp of store creation */ - createdAt?: string; - /** Current root object hash of this store */ - hash?: string; - /** Unique store identifier */ - id?: string; - /** Human-readable store name */ - name: string; - /** Opaque store partition key for the global tier */ - scopeId: string; +export type UpdateBuilderBindingPayloadSelect = { + builderBinding?: { + select: BuilderBindingSelect; + }; + builderBindingEdge?: { + select: BuilderBindingEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface DeleteBuilderBindingPayload { + /** The `BuilderBinding` that was deleted by this mutation. */ + builderBinding?: BuilderBinding | null; + builderBindingEdge?: BuilderBindingEdge | null; + clientMutationId?: string | null; } -/** An input for mutations affecting `FunctionInvocationAttempt` */ -export interface FunctionInvocationAttemptInput { - /** Who triggered the invocation (NULL for system/cron) */ - actorId?: string; - /** 1-based attempt number for this invocation */ - attempt: number; - /** When the attempt result was recorded (partition key) */ - createdAt?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - /** Wall-clock attempt time in milliseconds */ - durationMs?: number; - /** Error message when the attempt failed */ - error?: string; - /** Structured error context (stack, code, provider response) */ - errorDetail?: Record; - /** Unique attempt identifier */ - id?: string; - /** created_at of the referenced invocation (partition-pruned lookups against the invocations PK) */ - invocationCreatedAt: string; - /** Invocation this attempt belongs to (soft reference paired with invocation_created_at) */ - invocationId: string; - /** When the attempt began executing */ - startedAt?: string; - /** Whether this attempt completed successfully */ - success: boolean; - /** Function routing slug (denormalized from the invocation) */ - taskIdentifier: string; +export type DeleteBuilderBindingPayloadSelect = { + builderBinding?: { + select: BuilderBindingSelect; + }; + builderBindingEdge?: { + select: BuilderBindingEdgeSelect; + }; + clientMutationId?: 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 UpdateDatabaseFunctionGraphPayload { + clientMutationId?: string | null; + /** The `DatabaseFunctionGraph` that was updated by this mutation. */ + databaseFunctionGraph?: DatabaseFunctionGraph | null; + databaseFunctionGraphEdge?: DatabaseFunctionGraphEdge | null; } -/** An input for mutations affecting `FunctionInvocation` */ -export interface FunctionInvocationInput { - /** Who triggered the invocation (NULL for system/cron) */ - actorId?: string; - /** API binding this invocation arrived through (NULL for cron/graph/system/worker paths) */ - apiBindingId?: string; - /** Invocation trigger channel: api, graph, cron, sync, webhook, or worker */ - channel?: string; - /** When execution completed */ - completedAt?: string; - /** Invocation creation timestamp (partition key) */ - createdAt?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - /** Scope that owns function_definition_id (e.g. app/org/database/platform) — the per-scope definitions table the resolver selected */ - definitionScope?: string; - /** Wall-clock execution time in milliseconds */ - durationMs?: number; - /** Error message when status is failed, or the reason the run was skipped when status is skipped */ - error?: string; - /** Function definition this invocation ran (soft cross-scope ref; paired with definition_scope). task_identifier stays as the audit slug. */ - functionDefinitionId?: string; - /** Groups all node invocations from a single flow graph execution */ - graphExecutionId?: string; - /** Unique invocation identifier */ - id?: string; - /** FK to app_jobs.jobs — the underlying transport */ - jobId?: string; - /** Parent invocation when this is a child node of a flow graph execution */ - parentInvocationId?: string; - /** Function input payload */ - payload?: Record; - /** Non-secret channel-specific invocation provenance (route/binding/event identifiers only) */ - provenance?: Record; - /** Function return value (success) or structured error (failure) */ - result?: Record; - /** When execution started */ - startedAt?: string; - /** Lifecycle: pending → running → completed/failed/cancelled; skipped = never ran (a gate rejected the intended run) */ - status?: string; - /** Function routing slug (category:name). Denormalized from the definition — must match the row referenced by function_definition_id when that is set. */ - taskIdentifier: string; +export type UpdateDatabaseFunctionGraphPayloadSelect = { + clientMutationId?: boolean; + databaseFunctionGraph?: { + select: DatabaseFunctionGraphSelect; + }; + databaseFunctionGraphEdge?: { + select: DatabaseFunctionGraphEdgeSelect; + }; +}; +export interface DeleteDatabaseFunctionGraphPayload { + clientMutationId?: string | null; + /** The `DatabaseFunctionGraph` that was deleted by this mutation. */ + databaseFunctionGraph?: DatabaseFunctionGraph | null; + databaseFunctionGraphEdge?: DatabaseFunctionGraphEdge | null; } -/** An input for mutations affecting `InfraCommit` */ -export interface InfraCommitInput { - /** User who authored the changes */ - authorId?: string; - /** User who committed (may differ from author) */ - committerId?: string; - /** Database scope for multi-tenant isolation */ - databaseId: string; - /** Commit timestamp */ - date?: string; - /** Unique commit identifier */ - id?: string; - /** Optional commit message */ - message?: string; - /** Parent commit IDs (supports merge commits) */ - parentIds?: string[]; - /** Store this commit belongs to */ - storeId: string; - /** Root object ID of the tree snapshot at this commit */ - treeId?: string; +export type DeleteDatabaseFunctionGraphPayloadSelect = { + clientMutationId?: boolean; + databaseFunctionGraph?: { + select: DatabaseFunctionGraphSelect; + }; + databaseFunctionGraphEdge?: { + select: DatabaseFunctionGraphEdgeSelect; + }; +}; +export interface CreateDatabaseFunctionGraphExecutionPayload { + clientMutationId?: string | null; + /** The `DatabaseFunctionGraphExecution` that was created by this mutation. */ + databaseFunctionGraphExecution?: DatabaseFunctionGraphExecution | null; + databaseFunctionGraphExecutionEdge?: DatabaseFunctionGraphExecutionEdge | null; } -/** An input for mutations affecting `InfraObject` */ -export interface InfraObjectInput { - /** Timestamp of object creation */ - createdAt?: string; - /** Payload data for this object node */ - data?: Record; - /** Database scope for multi-tenant isolation */ - databaseId: string; - /** Content-addressed UUID v5 — deterministic hash of (data, kids, ktree) */ - id: string; - /** Ordered array of child object IDs */ - kids?: string[]; - /** Ordered array of child path names (parallel to kids) */ - ktree?: string[]; +export type CreateDatabaseFunctionGraphExecutionPayloadSelect = { + clientMutationId?: boolean; + databaseFunctionGraphExecution?: { + select: DatabaseFunctionGraphExecutionSelect; + }; + databaseFunctionGraphExecutionEdge?: { + select: DatabaseFunctionGraphExecutionEdgeSelect; + }; +}; +export interface UpdateDatabaseFunctionGraphExecutionPayload { + clientMutationId?: string | null; + /** The `DatabaseFunctionGraphExecution` that was updated by this mutation. */ + databaseFunctionGraphExecution?: DatabaseFunctionGraphExecution | null; + databaseFunctionGraphExecutionEdge?: DatabaseFunctionGraphExecutionEdge | null; } -/** An input for mutations affecting `InfraRef` */ -export interface InfraRefInput { - /** Commit this ref points to */ - commitId?: string; - /** Database scope for multi-tenant isolation */ - databaseId: string; - /** Unique ref identifier */ - id?: string; - /** Ref name (e.g. HEAD, main) */ - name: string; - /** Store this ref belongs to */ - storeId: string; +export type UpdateDatabaseFunctionGraphExecutionPayloadSelect = { + clientMutationId?: boolean; + databaseFunctionGraphExecution?: { + select: DatabaseFunctionGraphExecutionSelect; + }; + databaseFunctionGraphExecutionEdge?: { + select: DatabaseFunctionGraphExecutionEdgeSelect; + }; +}; +export interface DeleteDatabaseFunctionGraphExecutionPayload { + clientMutationId?: string | null; + /** The `DatabaseFunctionGraphExecution` that was deleted by this mutation. */ + databaseFunctionGraphExecution?: DatabaseFunctionGraphExecution | null; + databaseFunctionGraphExecutionEdge?: DatabaseFunctionGraphExecutionEdge | null; } -/** An input for mutations affecting `InfraStore` */ -export interface InfraStoreInput { - /** Timestamp of store creation */ - createdAt?: string; - /** Database scope for multi-tenant isolation */ - databaseId: string; - /** Current root object hash of this store */ - hash?: string; - /** Unique store identifier */ - id?: string; - /** Human-readable store name */ - name: string; +export type DeleteDatabaseFunctionGraphExecutionPayloadSelect = { + clientMutationId?: boolean; + databaseFunctionGraphExecution?: { + select: DatabaseFunctionGraphExecutionSelect; + }; + databaseFunctionGraphExecutionEdge?: { + select: DatabaseFunctionGraphExecutionEdgeSelect; + }; +}; +export interface CreateDatabaseFunctionGraphExecutionNodeStatePayload { + clientMutationId?: string | null; + /** The `DatabaseFunctionGraphExecutionNodeState` that was created by this mutation. */ + databaseFunctionGraphExecutionNodeState?: DatabaseFunctionGraphExecutionNodeState | null; + databaseFunctionGraphExecutionNodeStateEdge?: DatabaseFunctionGraphExecutionNodeStateEdge | null; } -/** An input for mutations affecting `IntegrationProvider` */ -export interface IntegrationProviderInput { - /** Brand metadata: colors, fonts, and other provider-specific styling. Not a foreign key. */ - brand?: Record; - /** Browser category (e.g. email, database, storage, ai, analytics) */ - category?: string; - createdAt?: string; - /** Short description of what this integration provides and when to use it */ - description?: string; - /** Icon identifier for the UI (e.g. mail, database, cloud) */ - icon?: string; - id?: string; - /** Provider logo as an image domain value (url, id, key, bucket, provider) */ - logo?: ConstructiveInternalTypeImage; - /** Human-readable brand name (e.g. 'Mailgun', 'PostgreSQL') */ - name: string; - /** Canonical config requirements for this provider: array of (name, required, provider) tuples. Used by the UI to auto-fill function/resource required_configs. */ - requiredConfigs?: ResourceRequirementInput[]; - /** Canonical secret requirements for this provider: array of (name, required, provider) tuples. Used by the UI to auto-fill function/resource required_secrets. */ - requiredSecrets?: ResourceRequirementInput[]; - /** Stable URL-safe identifier for the provider. Other tables match by this string, not by FK. */ - slug: string; - updatedAt?: string; +export type CreateDatabaseFunctionGraphExecutionNodeStatePayloadSelect = { + clientMutationId?: boolean; + databaseFunctionGraphExecutionNodeState?: { + select: DatabaseFunctionGraphExecutionNodeStateSelect; + }; + databaseFunctionGraphExecutionNodeStateEdge?: { + select: DatabaseFunctionGraphExecutionNodeStateEdgeSelect; + }; +}; +export interface UpdateDatabaseFunctionGraphExecutionNodeStatePayload { + clientMutationId?: string | null; + /** The `DatabaseFunctionGraphExecutionNodeState` that was updated by this mutation. */ + databaseFunctionGraphExecutionNodeState?: DatabaseFunctionGraphExecutionNodeState | null; + databaseFunctionGraphExecutionNodeStateEdge?: DatabaseFunctionGraphExecutionNodeStateEdge | null; } -/** An input for mutations affecting `Namespace` */ -export interface NamespaceInput { - /** Freeform metadata for tooling and operational notes */ - annotations?: Record; - createdAt?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - /** Optional human-readable description of this namespace */ - description?: string; - id?: string; - /** Whether this namespace is active (soft-disable for filtering) */ - isActive?: boolean; - /** true = provisioned by the platform via jobs, false = unmanaged/platform-native (bootstrapped externally) */ - isManaged?: boolean; - /** Key/value pairs for selecting and filtering namespaces */ - labels?: Record; - /** Most recent provisioning or reconcile error message */ - lastError?: string; - /** Human-readable namespace name (e.g. default, production, oauth) */ - name: string; - /** Globally unique computed namespace identifier via inflection.underscore */ - namespaceName: string; - /** Namespace provisioning lifecycle status: pending, provisioning, active, failed */ - status?: string; - updatedAt?: string; +export type UpdateDatabaseFunctionGraphExecutionNodeStatePayloadSelect = { + clientMutationId?: boolean; + databaseFunctionGraphExecutionNodeState?: { + select: DatabaseFunctionGraphExecutionNodeStateSelect; + }; + databaseFunctionGraphExecutionNodeStateEdge?: { + select: DatabaseFunctionGraphExecutionNodeStateEdgeSelect; + }; +}; +export interface DeleteDatabaseFunctionGraphExecutionNodeStatePayload { + clientMutationId?: string | null; + /** The `DatabaseFunctionGraphExecutionNodeState` that was deleted by this mutation. */ + databaseFunctionGraphExecutionNodeState?: DatabaseFunctionGraphExecutionNodeState | null; + databaseFunctionGraphExecutionNodeStateEdge?: DatabaseFunctionGraphExecutionNodeStateEdge | null; } -/** An input for mutations affecting `NamespaceEvent` */ -export interface NamespaceEventInput { - /** User who triggered this event (NULL for system/automated) */ - actorId?: string; - /** Event timestamp (partition key) */ - createdAt?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - /** Event type: created, activated, deactivated, labels_updated, annotations_updated, renamed */ - eventType: string; - /** Unique event identifier */ - id?: string; - /** Human-readable description of the event */ - message?: string; - /** Structured context (old/new values, labels diff, etc.) */ - metadata?: Record; - /** Namespace this event belongs to */ - namespaceId: string; +export type DeleteDatabaseFunctionGraphExecutionNodeStatePayloadSelect = { + clientMutationId?: boolean; + databaseFunctionGraphExecutionNodeState?: { + select: DatabaseFunctionGraphExecutionNodeStateSelect; + }; + databaseFunctionGraphExecutionNodeStateEdge?: { + select: DatabaseFunctionGraphExecutionNodeStateEdgeSelect; + }; +}; +export interface CreateDatabaseFunctionGraphExecutionOutputPayload { + clientMutationId?: string | null; + /** The `DatabaseFunctionGraphExecutionOutput` that was created by this mutation. */ + databaseFunctionGraphExecutionOutput?: DatabaseFunctionGraphExecutionOutput | null; + databaseFunctionGraphExecutionOutputEdge?: DatabaseFunctionGraphExecutionOutputEdge | null; } -/** An input for mutations affecting `PlatformFunctionApiBinding` */ -export interface PlatformFunctionApiBindingInput { - /** Binding alias (e.g. default, staging, production) */ - alias?: string; - /** API endpoint this function is bound to */ - apiId: string; - /** Per-binding configuration (overrides, routing rules, etc.) */ - config?: Record; - createdAt?: string; - /** Function definition this binding belongs to */ - functionDefinitionId: string; - id?: string; - updatedAt?: string; +export type CreateDatabaseFunctionGraphExecutionOutputPayloadSelect = { + clientMutationId?: boolean; + databaseFunctionGraphExecutionOutput?: { + select: DatabaseFunctionGraphExecutionOutputSelect; + }; + databaseFunctionGraphExecutionOutputEdge?: { + select: DatabaseFunctionGraphExecutionOutputEdgeSelect; + }; +}; +export interface UpdateDatabaseFunctionGraphExecutionOutputPayload { + clientMutationId?: string | null; + /** The `DatabaseFunctionGraphExecutionOutput` that was updated by this mutation. */ + databaseFunctionGraphExecutionOutput?: DatabaseFunctionGraphExecutionOutput | null; + databaseFunctionGraphExecutionOutputEdge?: DatabaseFunctionGraphExecutionOutputEdge | null; } -/** An input for mutations affecting `PlatformFunctionCapabilityBinding` */ -export interface PlatformFunctionCapabilityBindingInput { - /** Bucket this capability targets (exactly one typed target is set) */ - bucketId?: string; - createdAt?: string; - /** Function definition holding this capability (exactly one of function_id / graph_id is set) */ - functionId?: string; - /** Flow graph holding this capability (exactly one of function_id / graph_id is set) */ - graphId?: string; - id?: string; - /** Runtime handle the holder addresses this capability by (e.g. default, scratch) */ - key?: string; - /** Lifecycle the capability applies to: deployment (build/deploy time), execution (per invocation), root_execution (root of a graph execution tree) */ - lifecycle: string; - /** Per-binding annotations (no runtime semantics) */ - metadata?: Record; - updatedAt?: string; +export type UpdateDatabaseFunctionGraphExecutionOutputPayloadSelect = { + clientMutationId?: boolean; + databaseFunctionGraphExecutionOutput?: { + select: DatabaseFunctionGraphExecutionOutputSelect; + }; + databaseFunctionGraphExecutionOutputEdge?: { + select: DatabaseFunctionGraphExecutionOutputEdgeSelect; + }; +}; +export interface DeleteDatabaseFunctionGraphExecutionOutputPayload { + clientMutationId?: string | null; + /** The `DatabaseFunctionGraphExecutionOutput` that was deleted by this mutation. */ + databaseFunctionGraphExecutionOutput?: DatabaseFunctionGraphExecutionOutput | null; + databaseFunctionGraphExecutionOutputEdge?: DatabaseFunctionGraphExecutionOutputEdge | null; +} +export type DeleteDatabaseFunctionGraphExecutionOutputPayloadSelect = { + clientMutationId?: boolean; + databaseFunctionGraphExecutionOutput?: { + select: DatabaseFunctionGraphExecutionOutputSelect; + }; + databaseFunctionGraphExecutionOutputEdge?: { + select: DatabaseFunctionGraphExecutionOutputEdgeSelect; + }; +}; +export interface CreateDatabaseGraphCommitPayload { + clientMutationId?: string | null; + /** The `DatabaseGraphCommit` that was created by this mutation. */ + databaseGraphCommit?: DatabaseGraphCommit | null; + databaseGraphCommitEdge?: DatabaseGraphCommitEdge | null; +} +export type CreateDatabaseGraphCommitPayloadSelect = { + clientMutationId?: boolean; + databaseGraphCommit?: { + select: DatabaseGraphCommitSelect; + }; + databaseGraphCommitEdge?: { + select: DatabaseGraphCommitEdgeSelect; + }; +}; +export interface UpdateDatabaseGraphCommitPayload { + clientMutationId?: string | null; + /** The `DatabaseGraphCommit` that was updated by this mutation. */ + databaseGraphCommit?: DatabaseGraphCommit | null; + databaseGraphCommitEdge?: DatabaseGraphCommitEdge | null; +} +export type UpdateDatabaseGraphCommitPayloadSelect = { + clientMutationId?: boolean; + databaseGraphCommit?: { + select: DatabaseGraphCommitSelect; + }; + databaseGraphCommitEdge?: { + select: DatabaseGraphCommitEdgeSelect; + }; +}; +export interface DeleteDatabaseGraphCommitPayload { + clientMutationId?: string | null; + /** The `DatabaseGraphCommit` that was deleted by this mutation. */ + databaseGraphCommit?: DatabaseGraphCommit | null; + databaseGraphCommitEdge?: DatabaseGraphCommitEdge | null; } -/** 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. */ - accessChannels?: string[]; - /** Whether executions are metered through the invocation ledger and billing quota gate */ - billable?: boolean; - /** Function task category (e.g. email, embed, chunk, custom) */ - category: string; - /** Knative containerConcurrency — max concurrent requests per pod instance */ - concurrency?: number; - createdAt?: string; - /** Human-readable description of what this function does */ - description?: string; - /** Palette grouping category (e.g. email, data, ai, custom) */ - fnCategory?: string; - /** Ordered array of module_table column names holding the generated function names to invoke when runtime=sql (module mode). NULL for direct mode and other runtimes. */ - functionColumns?: Record; - /** Existing flow graph invoked when runtime=graph. Required for graph runtime and forbidden for all other runtimes. */ - graphId?: string; - /** Icon identifier for UI palette rendering (e.g. mail, database, code) */ - icon?: string; - id?: string; - /** Docker image reference (e.g. ghcr.io/constructive-io/email-send-fn:latest). Required when runtime=http or runtime=resource. NULL for inline functions. */ - image?: string; - /** Data input ports: [{name, type, description?, optional?, multi?, schema?}] */ - inputs?: Record; - /** Provider slugs (e.g. mailgun, postgres) associated with this function. The UI uses this to auto-fill required_secrets and required_configs from integration_providers. */ - integrations?: string[]; - /** Whether this function definition is published to the public catalog for direct authenticated invocation. Default false = internal-only via add_job() */ - isPublished?: boolean; - /** Maximum retry attempts for the underlying job */ - maxAttempts?: number; - /** metaschema_modules_public table whose per-database row carries the generated function names when runtime=sql (module mode). NULL for direct mode and other runtimes. */ - moduleTable?: string; - /** Function name within category (e.g. send_verification_link, process_file_embedding) */ - name: string; - /** Data output ports: [{name, type, description?, optional?, multi?, schema?}] */ - outputs?: Record; - /** Ordered bind-parameter mapping for runtime=sql: [{name, type}]. payload[name] is bound as $n::type. */ - payloadArgs?: Record; - /** Job priority (lower = higher priority) */ - priority?: number; - /** Configuration properties: [{name, type, default?, description?, required?, schema?}] */ - props?: Record; - /** Protected platform definition: narrower scopes cannot register the same task_identifier */ - protected?: boolean; - /** Timestamp when this function was published. NULL means immediately published when is_published is true; future timestamps delay public visibility */ - 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. */ - 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[]; - /** 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}} */ - resources?: Record; - /** Execution mode: http (Knative Service dispatch), inline (in-process in compute worker), handler (registered infrastructure handler), sql (generic SQL dispatch via a trusted direct target or module-resolved function names), resource (Kubernetes Job via the resource module with node-gateway callbacks), or graph (existing flow graph referenced by graph_id) */ - runtime?: string; - /** Maximum pod count for Knative autoscaling (maxScale) */ - scaleMax?: number; - /** Minimum pod count for Knative autoscaling (minScale) */ - scaleMin?: number; - /** Platform system definition: its task_identifier cannot be shadowed by non-platform registration */ - system?: boolean; - /** Name of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. */ - targetFunction?: string; - /** Schema of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. */ - targetSchema?: string; - /** Knative request timeout in seconds */ - timeoutSeconds?: number; - updatedAt?: string; - /** Whether this function has side effects and cannot be cached or memoized */ - volatile?: boolean; +export type DeleteDatabaseGraphCommitPayloadSelect = { + clientMutationId?: boolean; + databaseGraphCommit?: { + select: DatabaseGraphCommitSelect; + }; + databaseGraphCommitEdge?: { + select: DatabaseGraphCommitEdgeSelect; + }; +}; +export interface CreateDatabaseGraphObjectPayload { + clientMutationId?: string | null; + /** The `DatabaseGraphObject` that was created by this mutation. */ + databaseGraphObject?: DatabaseGraphObject | null; + databaseGraphObjectEdge?: DatabaseGraphObjectEdge | null; } -/** An input for mutations affecting `PlatformFunctionDeployment` */ -export interface PlatformFunctionDeploymentInput { - /** Freeform metadata for tooling and operational notes */ - annotations?: Record; - /** Max concurrent requests per pod (NULL = inherit from definition) */ - concurrency?: number; - createdAt?: string; - /** Cumulative error count for this deployment */ - errorCount?: number; - /** Handler directory name (e.g. email, document) — used as FN_HANDLER_NAME in combined-image mode to select the entry point */ - handlerName?: string; - id?: string; - /** Logical image name — the handler identity and grouping key (e.g. fn-email). No registry host or tag; tag lives in image_version. */ - image: string; - /** Image tag/version for the handler container (e.g. latest, 2.6.4) */ - imageVersion?: string; - /** Key/value pairs for selecting and filtering deployments */ - labels?: Record; - /** Most recent provisioning or runtime error message */ - lastError?: string; - /** Timestamp of the most recent error */ - lastErrorAt?: string; - /** Target namespace for this deployment (maps to a K8s namespace) */ - namespaceId: string; - /** K8s resource spec override: {"requests":{"cpu":"100m","memory":"128Mi"},"limits":{...}} */ - resources?: Record; - /** Deployment revision number (incremented on each redeployment) */ - revision?: number; - /** Maximum replica count (NULL = inherit from definition or Knative default) */ - scaleMax?: number; - /** Minimum replica count (NULL = inherit from definition or Knative default) */ - scaleMin?: number; - /** Knative service name — a randomly minted cute name (unique_names.generate_name() + random hex suffix) assigned by the service_url trigger; unique per namespace, not derived from the image */ - serviceName?: string; - /** Knative service URL (http://{service-name}.{namespace}.svc.cluster.local) — populated after provisioning */ - serviceUrl?: string; - /** Deployment lifecycle status: pending, provisioning, active, failed, scaled_to_zero, deactivated */ - status?: string; - /** Request timeout override in seconds (NULL = inherit from definition) */ - timeoutSeconds?: number; - updatedAt?: string; +export type CreateDatabaseGraphObjectPayloadSelect = { + clientMutationId?: boolean; + databaseGraphObject?: { + select: DatabaseGraphObjectSelect; + }; + databaseGraphObjectEdge?: { + select: DatabaseGraphObjectEdgeSelect; + }; +}; +export interface UpdateDatabaseGraphObjectPayload { + clientMutationId?: string | null; + /** The `DatabaseGraphObject` that was updated by this mutation. */ + databaseGraphObject?: DatabaseGraphObject | null; + databaseGraphObjectEdge?: DatabaseGraphObjectEdge | null; } -/** An input for mutations affecting `PlatformFunctionDeploymentEvent` */ -export interface PlatformFunctionDeploymentEventInput { - /** User who triggered this event (NULL for system/automated) */ - actorId?: string; - /** Event timestamp (partition key) */ - createdAt?: string; - /** Deployment this event belongs to */ - deploymentId: string; - /** Event type: provisioned, scaled, failed, deactivated, redeployed, health_check */ - eventType: string; - /** Unique event identifier */ - id?: string; - /** Human-readable description of the event */ - message?: string; - /** Structured context (old/new values, error details, etc.) */ - metadata?: Record; +export type UpdateDatabaseGraphObjectPayloadSelect = { + clientMutationId?: boolean; + databaseGraphObject?: { + select: DatabaseGraphObjectSelect; + }; + databaseGraphObjectEdge?: { + select: DatabaseGraphObjectEdgeSelect; + }; +}; +export interface DeleteDatabaseGraphObjectPayload { + clientMutationId?: string | null; + /** The `DatabaseGraphObject` that was deleted by this mutation. */ + databaseGraphObject?: DatabaseGraphObject | null; + databaseGraphObjectEdge?: DatabaseGraphObjectEdge | null; } -/** An input for mutations affecting `PlatformFunctionExecutionLog` */ -export interface PlatformFunctionExecutionLogInput { - /** User who triggered the execution (NULL for system/cron) */ - actorId?: string; - /** Log entry timestamp (partition key) */ - createdAt?: string; - /** Unique log entry identifier */ - id?: string; - /** Invocation this log entry belongs to (NULL for standalone job logs) */ - invocationId?: string; - /** Log severity: debug, info, warn, error */ - logLevel?: string; - /** Log message text */ - message: string; - /** Structured context (labels, trace data, extra fields) */ - metadata?: Record; - /** Function routing key (NULL for generic job logs) */ - taskIdentifier?: string; +export type DeleteDatabaseGraphObjectPayloadSelect = { + clientMutationId?: boolean; + databaseGraphObject?: { + select: DatabaseGraphObjectSelect; + }; + databaseGraphObjectEdge?: { + select: DatabaseGraphObjectEdgeSelect; + }; +}; +export interface CreateDatabaseGraphRefPayload { + clientMutationId?: string | null; + /** The `DatabaseGraphRef` that was created by this mutation. */ + databaseGraphRef?: DatabaseGraphRef | null; + databaseGraphRefEdge?: DatabaseGraphRefEdge | null; } -/** An input for mutations affecting `PlatformFunctionInvocationAttempt` */ -export interface PlatformFunctionInvocationAttemptInput { - /** Who triggered the invocation (NULL for system/cron) */ - actorId?: string; - /** 1-based attempt number for this invocation */ - attempt: number; - /** When the attempt result was recorded (partition key) */ - createdAt?: string; - /** Wall-clock attempt time in milliseconds */ - durationMs?: number; - /** Error message when the attempt failed */ - error?: string; - /** Structured error context (stack, code, provider response) */ - errorDetail?: Record; - /** Unique attempt identifier */ - id?: string; - /** created_at of the referenced invocation (partition-pruned lookups against the invocations PK) */ - invocationCreatedAt: string; - /** Invocation this attempt belongs to (soft reference paired with invocation_created_at) */ - invocationId: string; - /** When the attempt began executing */ - startedAt?: string; - /** Whether this attempt completed successfully */ - success: boolean; - /** Function routing slug (denormalized from the invocation) */ - taskIdentifier: string; +export type CreateDatabaseGraphRefPayloadSelect = { + clientMutationId?: boolean; + databaseGraphRef?: { + select: DatabaseGraphRefSelect; + }; + databaseGraphRefEdge?: { + select: DatabaseGraphRefEdgeSelect; + }; +}; +export interface UpdateDatabaseGraphRefPayload { + clientMutationId?: string | null; + /** The `DatabaseGraphRef` that was updated by this mutation. */ + databaseGraphRef?: DatabaseGraphRef | null; + databaseGraphRefEdge?: DatabaseGraphRefEdge | null; } -/** An input for mutations affecting `PlatformFunctionInvocation` */ -export interface PlatformFunctionInvocationInput { - /** Who triggered the invocation (NULL for system/cron) */ - actorId?: string; - /** API binding this invocation arrived through (NULL for cron/graph/system/worker paths) */ - apiBindingId?: string; - /** Invocation trigger channel: api, graph, cron, sync, webhook, or worker */ - channel?: string; - /** When execution completed */ - completedAt?: string; - /** Invocation creation timestamp (partition key) */ - createdAt?: string; - /** Database this invocation is attributed to (usage/billing attribution) */ - databaseId?: string; - /** Scope that owns function_definition_id (e.g. app/org/database/platform) — the per-scope definitions table the resolver selected */ - definitionScope?: string; - /** Wall-clock execution time in milliseconds */ - durationMs?: number; - /** Error message when status is failed, or the reason the run was skipped when status is skipped */ - error?: string; - /** Function definition this invocation ran (soft cross-scope ref; paired with definition_scope). task_identifier stays as the audit slug. */ - functionDefinitionId?: string; - /** Groups all node invocations from a single flow graph execution */ - graphExecutionId?: string; - /** Unique invocation identifier */ - id?: string; - /** FK to app_jobs.jobs — the underlying transport */ - jobId?: string; - /** Parent invocation when this is a child node of a flow graph execution */ - parentInvocationId?: string; - /** Function input payload */ - payload?: Record; - /** Non-secret channel-specific invocation provenance (route/binding/event identifiers only) */ - provenance?: Record; - /** Function return value (success) or structured error (failure) */ - result?: Record; - /** When execution started */ - startedAt?: string; - /** Lifecycle: pending → running → completed/failed/cancelled; skipped = never ran (a gate rejected the intended run) */ - status?: string; - /** Function routing slug (category:name). Denormalized from the definition — must match the row referenced by function_definition_id when that is set. */ - taskIdentifier: string; +export type UpdateDatabaseGraphRefPayloadSelect = { + clientMutationId?: boolean; + databaseGraphRef?: { + select: DatabaseGraphRefSelect; + }; + databaseGraphRefEdge?: { + select: DatabaseGraphRefEdgeSelect; + }; +}; +export interface DeleteDatabaseGraphRefPayload { + clientMutationId?: string | null; + /** The `DatabaseGraphRef` that was deleted by this mutation. */ + databaseGraphRef?: DatabaseGraphRef | null; + databaseGraphRefEdge?: DatabaseGraphRefEdge | null; +} +export type DeleteDatabaseGraphRefPayloadSelect = { + clientMutationId?: boolean; + databaseGraphRef?: { + select: DatabaseGraphRefSelect; + }; + databaseGraphRefEdge?: { + select: DatabaseGraphRefEdgeSelect; + }; +}; +export interface CreateDatabaseGraphStorePayload { + clientMutationId?: string | null; + /** The `DatabaseGraphStore` that was created by this mutation. */ + databaseGraphStore?: DatabaseGraphStore | null; + databaseGraphStoreEdge?: DatabaseGraphStoreEdge | null; +} +export type CreateDatabaseGraphStorePayloadSelect = { + clientMutationId?: boolean; + databaseGraphStore?: { + select: DatabaseGraphStoreSelect; + }; + databaseGraphStoreEdge?: { + select: DatabaseGraphStoreEdgeSelect; + }; +}; +export interface UpdateDatabaseGraphStorePayload { + clientMutationId?: string | null; + /** The `DatabaseGraphStore` that was updated by this mutation. */ + databaseGraphStore?: DatabaseGraphStore | null; + databaseGraphStoreEdge?: DatabaseGraphStoreEdge | null; } -/** An input for mutations affecting `PlatformInfraCommit` */ -export interface PlatformInfraCommitInput { - /** User who authored the changes */ - authorId?: string; - /** User who committed (may differ from author) */ - committerId?: string; - /** Commit timestamp */ - date?: string; - /** Unique commit identifier */ - id?: string; - /** Optional commit message */ - message?: string; - /** Parent commit IDs (supports merge commits) */ - parentIds?: string[]; - /** Opaque store partition key for the global tier */ - scopeId: string; - /** Store this commit belongs to */ - storeId: string; - /** Root object ID of the tree snapshot at this commit */ - treeId?: string; +export type UpdateDatabaseGraphStorePayloadSelect = { + clientMutationId?: boolean; + databaseGraphStore?: { + select: DatabaseGraphStoreSelect; + }; + databaseGraphStoreEdge?: { + select: DatabaseGraphStoreEdgeSelect; + }; +}; +export interface DeleteDatabaseGraphStorePayload { + clientMutationId?: string | null; + /** The `DatabaseGraphStore` that was deleted by this mutation. */ + databaseGraphStore?: DatabaseGraphStore | null; + databaseGraphStoreEdge?: DatabaseGraphStoreEdge | null; } -/** An input for mutations affecting `PlatformInfraObject` */ -export interface PlatformInfraObjectInput { - /** Timestamp of object creation */ - createdAt?: string; - /** Payload data for this object node */ - data?: Record; - /** Content-addressed UUID v5 — deterministic hash of (data, kids, ktree) */ - id: string; - /** Ordered array of child object IDs */ - kids?: string[]; - /** Ordered array of child path names (parallel to kids) */ - ktree?: string[]; - /** Opaque store partition key for the global tier */ - scopeId: string; +export type DeleteDatabaseGraphStorePayloadSelect = { + clientMutationId?: boolean; + databaseGraphStore?: { + select: DatabaseGraphStoreSelect; + }; + databaseGraphStoreEdge?: { + select: DatabaseGraphStoreEdgeSelect; + }; +}; +export interface CreateDbPresetPayload { + clientMutationId?: string | null; + /** The `DbPreset` that was created by this mutation. */ + dbPreset?: DbPreset | null; + dbPresetEdge?: DbPresetEdge | null; } -/** An input for mutations affecting `PlatformInfraRef` */ -export interface PlatformInfraRefInput { - /** Commit this ref points to */ - commitId?: string; - /** Unique ref identifier */ - id?: string; - /** Ref name (e.g. HEAD, main) */ - name: string; - /** Opaque store partition key for the global tier */ - scopeId: string; - /** Store this ref belongs to */ - storeId: string; +export type CreateDbPresetPayloadSelect = { + clientMutationId?: boolean; + dbPreset?: { + select: DbPresetSelect; + }; + dbPresetEdge?: { + select: DbPresetEdgeSelect; + }; +}; +export interface UpdateDbPresetPayload { + clientMutationId?: string | null; + /** The `DbPreset` that was updated by this mutation. */ + dbPreset?: DbPreset | null; + dbPresetEdge?: DbPresetEdge | null; } -/** An input for mutations affecting `PlatformInfraStore` */ -export interface PlatformInfraStoreInput { - /** Timestamp of store creation */ - createdAt?: string; - /** Current root object hash of this store */ - hash?: string; - /** Unique store identifier */ - id?: string; - /** Human-readable store name */ - name: string; - /** Opaque store partition key for the global tier */ - scopeId: string; +export type UpdateDbPresetPayloadSelect = { + clientMutationId?: boolean; + dbPreset?: { + select: DbPresetSelect; + }; + dbPresetEdge?: { + select: DbPresetEdgeSelect; + }; +}; +export interface DeleteDbPresetPayload { + clientMutationId?: string | null; + /** The `DbPreset` that was deleted by this mutation. */ + dbPreset?: DbPreset | null; + dbPresetEdge?: DbPresetEdge | null; } -/** An input for mutations affecting `PlatformNamespace` */ -export interface PlatformNamespaceInput { - /** Freeform metadata for tooling and operational notes */ - annotations?: Record; - createdAt?: string; - /** Optional human-readable description of this namespace */ - description?: string; - id?: string; - /** Whether this namespace is active (soft-disable for filtering) */ - isActive?: boolean; - /** true = provisioned by the platform via jobs, false = unmanaged/platform-native (bootstrapped externally) */ - isManaged?: boolean; - /** Key/value pairs for selecting and filtering namespaces */ - labels?: Record; - /** Most recent provisioning or reconcile error message */ - lastError?: string; - /** Human-readable namespace name (e.g. default, production, oauth) */ - name: string; - /** Globally unique computed namespace identifier via inflection.underscore */ - namespaceName: string; - /** Namespace provisioning lifecycle status: pending, provisioning, active, failed */ - status?: string; - updatedAt?: string; +export type DeleteDbPresetPayloadSelect = { + clientMutationId?: boolean; + dbPreset?: { + select: DbPresetSelect; + }; + dbPresetEdge?: { + select: DbPresetEdgeSelect; + }; +}; +export interface CreateFunctionApiBindingPayload { + clientMutationId?: string | null; + /** The `FunctionApiBinding` that was created by this mutation. */ + functionApiBinding?: FunctionApiBinding | null; + functionApiBindingEdge?: FunctionApiBindingEdge | null; } -/** An input for mutations affecting `PlatformNamespaceEvent` */ -export interface PlatformNamespaceEventInput { - /** User who triggered this event (NULL for system/automated) */ - actorId?: string; - /** Event timestamp (partition key) */ - createdAt?: string; - /** Event type: created, activated, deactivated, labels_updated, annotations_updated, renamed */ - eventType: string; - /** Unique event identifier */ - id?: string; - /** Human-readable description of the event */ - message?: string; - /** Structured context (old/new values, labels diff, etc.) */ - metadata?: Record; - /** Namespace this event belongs to */ - namespaceId: string; +export type CreateFunctionApiBindingPayloadSelect = { + clientMutationId?: boolean; + functionApiBinding?: { + select: FunctionApiBindingSelect; + }; + functionApiBindingEdge?: { + select: FunctionApiBindingEdgeSelect; + }; +}; +export interface UpdateFunctionApiBindingPayload { + clientMutationId?: string | null; + /** The `FunctionApiBinding` that was updated by this mutation. */ + functionApiBinding?: FunctionApiBinding | null; + functionApiBindingEdge?: FunctionApiBindingEdge | null; } -/** An input for mutations affecting `PlatformResource` */ -export interface PlatformResourceInput { - /** Freeform metadata for tooling and operational notes */ - annotations?: Record; - createdAt?: string; - createdBy?: string; - /** Cumulative error count for this resource */ - errorCount?: number; - id?: string; - /** Installation ("release") this resource belongs to (NULL for standalone resources) */ - installationId?: string; - /** Provider slugs (e.g. mailgun, postgres) associated with this resource. The UI uses this to auto-fill required_secrets and required_configs from integration_providers. */ - integrations?: string[]; - /** Resource kind: Deployment, StatefulSet, Job, Service, Ingress, Certificate, ClusterIssuer */ - kind: string; - /** Key/value pairs for selecting and filtering resources */ - labels?: Record; - /** Most recent provisioning or runtime error message */ - lastError?: string; - /** Last time a usage heartbeat was received for this resource (NULL until first heartbeat) */ - lastHeartbeatAt?: string; - /** Human-readable resource name */ - name: string; - /** Namespace this resource belongs to (security boundary, maps to K8s namespace) */ - namespaceId: string; - /** Config/secret realm this resource resolves against. Per key, the realm-specific atom wins over the NULL-realm default. NULL = the default lane. */ - realm?: string; - /** Embedded config requirements: array of (name, required, provider) tuples — extends the linked definition's requirements. provider is the integration slug this requirement belongs to, if any. */ - requiredConfigs?: ResourceRequirementInput[]; - /** Embedded secret requirements: array of (name, required, provider) tuples — extends the linked definition's requirements. provider is the integration slug this requirement belongs to, if any. */ - requiredSecrets?: ResourceRequirementInput[]; - /** Definition template this resource was created from (NULL for standalone resources) */ - resourceDefinitionId?: string; - /** URL-safe identifier, unique within (namespace_id, kind) */ - slug: string; - /** Desired state — kind-specific configuration (image, ports, resources, etc.). Opaque to DB; validated by K8s. */ - spec?: Record; - /** Resource lifecycle status: pending, provisioning, active, completed, failed, draining, deleting */ - status?: string; - /** Observed state from K8s — populated by handlers after reconciliation (service_url, clone_url, replicas, etc.) */ - statusObserved?: Record; - updatedAt?: string; - updatedBy?: string; +export type UpdateFunctionApiBindingPayloadSelect = { + clientMutationId?: boolean; + functionApiBinding?: { + select: FunctionApiBindingSelect; + }; + functionApiBindingEdge?: { + select: FunctionApiBindingEdgeSelect; + }; +}; +export interface DeleteFunctionApiBindingPayload { + clientMutationId?: string | null; + /** The `FunctionApiBinding` that was deleted by this mutation. */ + functionApiBinding?: FunctionApiBinding | null; + functionApiBindingEdge?: FunctionApiBindingEdge | null; +} +export type DeleteFunctionApiBindingPayloadSelect = { + clientMutationId?: boolean; + functionApiBinding?: { + select: FunctionApiBindingSelect; + }; + functionApiBindingEdge?: { + select: FunctionApiBindingEdgeSelect; + }; +}; +export interface CreateFunctionCapabilityBindingPayload { + clientMutationId?: string | null; + /** The `FunctionCapabilityBinding` that was created by this mutation. */ + functionCapabilityBinding?: FunctionCapabilityBinding | null; + functionCapabilityBindingEdge?: FunctionCapabilityBindingEdge | null; +} +export type CreateFunctionCapabilityBindingPayloadSelect = { + clientMutationId?: boolean; + functionCapabilityBinding?: { + select: FunctionCapabilityBindingSelect; + }; + functionCapabilityBindingEdge?: { + select: FunctionCapabilityBindingEdgeSelect; + }; +}; +export interface UpdateFunctionCapabilityBindingPayload { + clientMutationId?: string | null; + /** The `FunctionCapabilityBinding` that was updated by this mutation. */ + functionCapabilityBinding?: FunctionCapabilityBinding | null; + functionCapabilityBindingEdge?: FunctionCapabilityBindingEdge | null; +} +export type UpdateFunctionCapabilityBindingPayloadSelect = { + clientMutationId?: boolean; + functionCapabilityBinding?: { + select: FunctionCapabilityBindingSelect; + }; + functionCapabilityBindingEdge?: { + select: FunctionCapabilityBindingEdgeSelect; + }; +}; +export interface DeleteFunctionCapabilityBindingPayload { + clientMutationId?: string | null; + /** The `FunctionCapabilityBinding` that was deleted by this mutation. */ + functionCapabilityBinding?: FunctionCapabilityBinding | null; + functionCapabilityBindingEdge?: FunctionCapabilityBindingEdge | null; } -/** An input for mutations affecting `PlatformResourceDefinition` */ -export interface PlatformResourceDefinitionInput { - /** Freeform metadata for tooling and operational notes */ - annotations?: Record; - createdAt?: string; - createdBy?: string; - /** Template spec for creating resource instances of this kind */ - defaultSpec?: Record; - /** What this resource definition provides */ - description?: string; - id?: string; - /** Provider slugs (e.g. mailgun, postgres) associated with this resource definition. The UI uses this to auto-fill required_secrets and required_configs from integration_providers. */ - integrations?: string[]; - /** Resource kind: Deployment, StatefulSet, Job, Service, Ingress, Certificate, ClusterIssuer, or custom kinds */ - kind: string; - /** Key/value pairs for selecting and filtering definitions */ - labels?: Record; - /** Human-readable definition name */ - name: string; - /** Namespace this definition belongs to (security boundary, maps to K8s namespace) */ - namespaceId: string; - /** Declared parameter interface: [{key,label,type,default,required,min,max,options,group,order,bindings:[{path,template,scale,round,unit}]}]. Installation params are validated and compiled through these declarations; [] keeps the legacy raw spec overlay. */ - paramsSchema?: Record; - /** Embedded config requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ - requiredConfigs?: ResourceRequirementInput[]; - /** Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ - requiredSecrets?: ResourceRequirementInput[]; - /** URL-safe identifier, unique within (namespace_id, kind) */ - slug: string; - /** Min age before DELETE of a resource of this kind requires step-up; NULL inherits the 6h default */ - stepUpMinAge?: IntervalInput; - updatedAt?: string; - updatedBy?: string; +export type DeleteFunctionCapabilityBindingPayloadSelect = { + clientMutationId?: boolean; + functionCapabilityBinding?: { + select: FunctionCapabilityBindingSelect; + }; + functionCapabilityBindingEdge?: { + select: FunctionCapabilityBindingEdgeSelect; + }; +}; +export interface CreateFunctionDefinitionPayload { + clientMutationId?: string | null; + /** The `FunctionDefinition` that was created by this mutation. */ + functionDefinition?: FunctionDefinition | null; + functionDefinitionEdge?: FunctionDefinitionEdge | null; } -/** An interval of time that has passed where the smallest distinct unit is a second. */ -export interface IntervalInput { - /** A quantity of days. */ - days?: number; - /** A quantity of hours. */ - hours?: number; - /** A quantity of minutes. */ - minutes?: number; - /** A quantity of months. */ - months?: number; - /** - * A quantity of seconds. This is the only non-integer field, as all the other - * fields will dump their overflow into a smaller unit of time. Intervals don’t - * have a smaller unit than seconds. - */ - seconds?: number; - /** A quantity of years. */ - years?: number; +export type CreateFunctionDefinitionPayloadSelect = { + clientMutationId?: boolean; + functionDefinition?: { + select: FunctionDefinitionSelect; + }; + functionDefinitionEdge?: { + select: FunctionDefinitionEdgeSelect; + }; +}; +export interface UpdateFunctionDefinitionPayload { + clientMutationId?: string | null; + /** The `FunctionDefinition` that was updated by this mutation. */ + functionDefinition?: FunctionDefinition | null; + functionDefinitionEdge?: FunctionDefinitionEdge | null; } -/** An input for mutations affecting `PlatformResourceEvent` */ -export interface PlatformResourceEventInput { - /** User who triggered this event (NULL for system/automated) */ - actorId?: string; - /** Event timestamp (partition key) */ - createdAt?: string; - /** Event type: provisioned, provisioning, updated, failed, deprovisioned, health_check */ - eventType: string; - /** Unique event identifier */ - id?: string; - /** Human-readable description of the event */ - message?: string; - /** Structured context (old/new values, error details, etc.) */ - metadata?: Record; - /** Resource this event belongs to */ - resourceId: string; +export type UpdateFunctionDefinitionPayloadSelect = { + clientMutationId?: boolean; + functionDefinition?: { + select: FunctionDefinitionSelect; + }; + functionDefinitionEdge?: { + select: FunctionDefinitionEdgeSelect; + }; +}; +export interface DeleteFunctionDefinitionPayload { + clientMutationId?: string | null; + /** The `FunctionDefinition` that was deleted by this mutation. */ + functionDefinition?: FunctionDefinition | null; + functionDefinitionEdge?: FunctionDefinitionEdge | null; } -/** An input for mutations affecting `PlatformResourceInstallation` */ -export interface PlatformResourceInstallationInput { - /** Infra store commit for the current params (stamped by the versioned trigger on every write) */ - commitId?: string; - createdAt?: string; - createdBy?: string; - id?: string; - /** Human-readable release name */ - name: string; - /** Namespace this installation belongs to (security boundary) */ - namespaceId: string; - /** Release parameters — the readily-cached head; history lives in the infra store. Never contains secret/config literals. */ - params?: Record; - /** Monotonic release revision counter: install starts at 1, bumped on every upgrade/rollback */ - revision?: number; - /** URL-safe release identifier, unique within the namespace; the release's path in the infra tree is [resource_installation, slug] */ - slug: string; - /** Installation lifecycle status: pending, installed, uninstalled, failed */ - status?: string; - /** Infra merkle store holding this installation's history (stamped by the versioned trigger) */ - storeId?: string; - updatedAt?: string; - updatedBy?: string; +export type DeleteFunctionDefinitionPayloadSelect = { + clientMutationId?: boolean; + functionDefinition?: { + select: FunctionDefinitionSelect; + }; + functionDefinitionEdge?: { + select: FunctionDefinitionEdgeSelect; + }; +}; +export interface CreateFunctionDeploymentPayload { + clientMutationId?: string | null; + /** The `FunctionDeployment` that was created by this mutation. */ + functionDeployment?: FunctionDeployment | null; + functionDeploymentEdge?: FunctionDeploymentEdge | null; } -/** An input for mutations affecting `PlatformResourceStatusCheck` */ -export interface PlatformResourceStatusCheckInput { - /** When the check completed (NULL while pending/running) */ - completedAt?: string; - /** Unique status check identifier */ - id?: string; - /** When the check was requested */ - requestedAt?: string; - /** User who requested the check (NULL for system/scheduled) */ - requestedBy?: string; - /** Resource to check */ - resourceId: string; - /** Diagnostic snapshot: k8s_status, conditions, pod_logs_tail, events */ - result?: Record; - /** Check lifecycle: pending, running, completed, failed */ - status?: string; +export type CreateFunctionDeploymentPayloadSelect = { + clientMutationId?: boolean; + functionDeployment?: { + select: FunctionDeploymentSelect; + }; + functionDeploymentEdge?: { + select: FunctionDeploymentEdgeSelect; + }; +}; +export interface UpdateFunctionDeploymentPayload { + clientMutationId?: string | null; + /** The `FunctionDeployment` that was updated by this mutation. */ + functionDeployment?: FunctionDeployment | null; + functionDeploymentEdge?: FunctionDeploymentEdge | null; } -/** An input for mutations affecting `PlatformResourceUsageLog` */ -export interface PlatformResourceUsageLogInput { - /** CPU gauge in millicores at sample time (NULL when unknown) */ - cpuMillicores?: string; - /** Unique sample identifier */ - id?: string; - /** Seconds covered by this sample — runtime is SUM(interval_seconds) */ - intervalSeconds: number; - /** Memory gauge in bytes at sample time (NULL when unknown) */ - memoryBytes?: string; - /** Structured gauges: replicas, pod counts, phases, and other producer-specific metrics */ - metrics?: Record; - /** Namespace the measured workload runs in */ - namespaceId: string; - /** Resource this sample measures (NULL for namespace-grain catch-all rows) */ - resourceId?: string; - /** Sample timestamp (partition key) — end of the measured interval */ - sampledAt?: string; - /** Sample producer: self (workload heartbeat), observer (reconciler), or prometheus (namespace-grain usage collector) */ - source: string; +export type UpdateFunctionDeploymentPayloadSelect = { + clientMutationId?: boolean; + functionDeployment?: { + select: FunctionDeploymentSelect; + }; + functionDeploymentEdge?: { + select: FunctionDeploymentEdgeSelect; + }; +}; +export interface DeleteFunctionDeploymentPayload { + clientMutationId?: string | null; + /** The `FunctionDeployment` that was deleted by this mutation. */ + functionDeployment?: FunctionDeployment | null; + functionDeploymentEdge?: FunctionDeploymentEdge | null; } -/** An input for mutations affecting `PlatformResourceUsageSummary` */ -export interface PlatformResourceUsageSummaryInput { - /** Day this summary covers (partition key) */ - date: string; - /** Memory usage for the day — SUM(memory_bytes * interval_seconds) normalized to GB-seconds */ - gbSeconds?: string; - /** Unique usage summary identifier */ - id?: string; - /** Maximum CPU gauge observed during the day (NULL when never reported) */ - maxCpuMillicores?: string; - /** Maximum memory gauge observed during the day (NULL when never reported) */ - maxMemoryBytes?: string; - /** Namespace the resource runs in */ - namespaceId: string; - /** Resource this summary covers (NULL for namespace-grain catch-all summaries) */ - resourceId?: string; - /** Total measured runtime for the day — SUM(interval_seconds) */ - runtimeSeconds?: string; - /** Number of raw samples aggregated into this summary */ - sampleCount?: number; +export type DeleteFunctionDeploymentPayloadSelect = { + clientMutationId?: boolean; + functionDeployment?: { + select: FunctionDeploymentSelect; + }; + functionDeploymentEdge?: { + select: FunctionDeploymentEdgeSelect; + }; +}; +export interface CreateFunctionDeploymentEventPayload { + clientMutationId?: string | null; + /** The `FunctionDeploymentEvent` that was created by this mutation. */ + functionDeploymentEvent?: FunctionDeploymentEvent | null; + functionDeploymentEventEdge?: FunctionDeploymentEventEdge | null; } -/** An input for mutations affecting `PlatformWebhookEndpoint` */ -export interface PlatformWebhookEndpointInput { - /** Whether this endpoint currently accepts deliveries */ - active?: boolean; - createdAt?: string; - createdBy?: string; - /** Same-scope function definition invoked on delivery. The function must list the webhook channel in access_channels. */ - functionDefinitionId: string; - /** Inbound Host header this endpoint matches (normalized lower-case, no port) */ - host: string; - id?: string; - /** Namespace that owns this endpoint and contains its signing secret */ - namespaceId: string; - /** Exact request path this endpoint matches (e.g. /webhooks/stripe) */ - path: string; - /** Verification scheme: generic (HMAC), stripe, or github */ - provider?: string; - /** Maximum age (seconds) of a signed provider timestamp before the delivery is rejected as a replay */ - replayWindowSeconds?: number; - /** Name of the signing secret in the infra secrets store. The gateway resolves the value through the generated secrets getter — the plaintext secret is never stored here. */ - signingSecretName: string; - updatedAt?: string; - updatedBy?: string; +export type CreateFunctionDeploymentEventPayloadSelect = { + clientMutationId?: boolean; + functionDeploymentEvent?: { + select: FunctionDeploymentEventSelect; + }; + functionDeploymentEventEdge?: { + select: FunctionDeploymentEventEdgeSelect; + }; +}; +export interface UpdateFunctionDeploymentEventPayload { + clientMutationId?: string | null; + /** The `FunctionDeploymentEvent` that was updated by this mutation. */ + functionDeploymentEvent?: FunctionDeploymentEvent | null; + functionDeploymentEventEdge?: FunctionDeploymentEventEdge | null; } -/** An input for mutations affecting `PlatformWebhookEvent` */ -export interface PlatformWebhookEventInput { - createdAt?: string; - /** Endpoint that accepted this delivery */ - endpointId: string; - /** Failure detail when status = failed */ - error?: string; - /** Provider-supplied delivery/event id used for idempotent dedup */ - externalEventId: string; - id?: string; - /** created_at of the enqueued invocation (partition key companion to invocation_id) */ - invocationCreatedAt?: string; - /** Pending function invocation enqueued for this delivery (NULL until enqueued) */ - invocationId?: string; - /** Parsed delivery payload (parsed only after signature verification over the exact raw bytes) */ - payload?: Record; - /** Provider that produced this delivery (copied from the endpoint at acceptance) */ - provider: string; - /** Signed provider timestamp used for replay-window validation (NULL when the provider supplies none) */ - providerTimestamp?: string; - /** Acceptance lifecycle: accepted, processed, failed */ - status?: string; - updatedAt?: string; +export type UpdateFunctionDeploymentEventPayloadSelect = { + clientMutationId?: boolean; + functionDeploymentEvent?: { + select: FunctionDeploymentEventSelect; + }; + functionDeploymentEventEdge?: { + select: FunctionDeploymentEventEdgeSelect; + }; +}; +export interface DeleteFunctionDeploymentEventPayload { + clientMutationId?: string | null; + /** The `FunctionDeploymentEvent` that was deleted by this mutation. */ + functionDeploymentEvent?: FunctionDeploymentEvent | null; + functionDeploymentEventEdge?: FunctionDeploymentEventEdge | null; } -/** An input for mutations affecting `Resource` */ -export interface ResourceInput { - /** Freeform metadata for tooling and operational notes */ - annotations?: Record; - createdAt?: string; - createdBy?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - /** Cumulative error count for this resource */ - errorCount?: number; - id?: string; - /** Installation ("release") this resource belongs to (NULL for standalone resources) */ - installationId?: string; - /** Provider slugs (e.g. mailgun, postgres) associated with this resource. The UI uses this to auto-fill required_secrets and required_configs from integration_providers. */ - integrations?: string[]; - /** Resource kind: Deployment, StatefulSet, Job, Service, Ingress, Certificate, ClusterIssuer */ - kind: string; - /** Key/value pairs for selecting and filtering resources */ - labels?: Record; - /** Most recent provisioning or runtime error message */ - lastError?: string; - /** Last time a usage heartbeat was received for this resource (NULL until first heartbeat) */ - lastHeartbeatAt?: string; - /** Human-readable resource name */ - name: string; - /** Namespace this resource belongs to (security boundary, maps to K8s namespace) */ - namespaceId: string; - /** Config/secret realm this resource resolves against. Per key, the realm-specific atom wins over the NULL-realm default. NULL = the default lane. */ - realm?: string; - /** Embedded config requirements: array of (name, required, provider) tuples — extends the linked definition's requirements. provider is the integration slug this requirement belongs to, if any. */ - requiredConfigs?: ResourceRequirementInput[]; - /** Embedded secret requirements: array of (name, required, provider) tuples — extends the linked definition's requirements. provider is the integration slug this requirement belongs to, if any. */ - requiredSecrets?: ResourceRequirementInput[]; - /** Definition template this resource was created from (NULL for standalone resources) */ - resourceDefinitionId?: string; - /** URL-safe identifier, unique within (namespace_id, kind) */ - slug: string; - /** Desired state — kind-specific configuration (image, ports, resources, etc.). Opaque to DB; validated by K8s. */ - spec?: Record; - /** Resource lifecycle status: pending, provisioning, active, completed, failed, draining, deleting */ - status?: string; - /** Observed state from K8s — populated by handlers after reconciliation (service_url, clone_url, replicas, etc.) */ - statusObserved?: Record; - updatedAt?: string; - updatedBy?: string; +export type DeleteFunctionDeploymentEventPayloadSelect = { + clientMutationId?: boolean; + functionDeploymentEvent?: { + select: FunctionDeploymentEventSelect; + }; + functionDeploymentEventEdge?: { + select: FunctionDeploymentEventEdgeSelect; + }; +}; +export interface CreateFunctionExecutionLogPayload { + clientMutationId?: string | null; + /** The `FunctionExecutionLog` that was created by this mutation. */ + functionExecutionLog?: FunctionExecutionLog | null; + functionExecutionLogEdge?: FunctionExecutionLogEdge | null; } -/** An input for mutations affecting `ResourceDefinition` */ -export interface ResourceDefinitionInput { - /** Freeform metadata for tooling and operational notes */ - annotations?: Record; - createdAt?: string; - createdBy?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - /** Template spec for creating resource instances of this kind */ - defaultSpec?: Record; - /** What this resource definition provides */ - description?: string; - id?: string; - /** Provider slugs (e.g. mailgun, postgres) associated with this resource definition. The UI uses this to auto-fill required_secrets and required_configs from integration_providers. */ - integrations?: string[]; - /** Resource kind: Deployment, StatefulSet, Job, Service, Ingress, Certificate, ClusterIssuer, or custom kinds */ - kind: string; - /** Key/value pairs for selecting and filtering definitions */ - labels?: Record; - /** Human-readable definition name */ - name: string; - /** Namespace this definition belongs to (security boundary, maps to K8s namespace) */ - namespaceId: string; - /** Declared parameter interface: [{key,label,type,default,required,min,max,options,group,order,bindings:[{path,template,scale,round,unit}]}]. Installation params are validated and compiled through these declarations; [] keeps the legacy raw spec overlay. */ - paramsSchema?: Record; - /** Embedded config requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ - requiredConfigs?: ResourceRequirementInput[]; - /** Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ - requiredSecrets?: ResourceRequirementInput[]; - /** URL-safe identifier, unique within (namespace_id, kind) */ - slug: string; - /** Min age before DELETE of a resource of this kind requires step-up; NULL inherits the 6h default */ - stepUpMinAge?: IntervalInput; - updatedAt?: string; - updatedBy?: string; +export type CreateFunctionExecutionLogPayloadSelect = { + clientMutationId?: boolean; + functionExecutionLog?: { + select: FunctionExecutionLogSelect; + }; + functionExecutionLogEdge?: { + select: FunctionExecutionLogEdgeSelect; + }; +}; +export interface UpdateFunctionExecutionLogPayload { + clientMutationId?: string | null; + /** The `FunctionExecutionLog` that was updated by this mutation. */ + functionExecutionLog?: FunctionExecutionLog | null; + functionExecutionLogEdge?: FunctionExecutionLogEdge | null; } -/** An input for mutations affecting `ResourceEvent` */ -export interface ResourceEventInput { - /** User who triggered this event (NULL for system/automated) */ - actorId?: string; - /** Event timestamp (partition key) */ - createdAt?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - /** Event type: provisioned, provisioning, updated, failed, deprovisioned, health_check */ - eventType: string; - /** Unique event identifier */ - id?: string; - /** Human-readable description of the event */ - message?: string; - /** Structured context (old/new values, error details, etc.) */ - metadata?: Record; - /** Resource this event belongs to */ - resourceId: string; +export type UpdateFunctionExecutionLogPayloadSelect = { + clientMutationId?: boolean; + functionExecutionLog?: { + select: FunctionExecutionLogSelect; + }; + functionExecutionLogEdge?: { + select: FunctionExecutionLogEdgeSelect; + }; +}; +export interface DeleteFunctionExecutionLogPayload { + clientMutationId?: string | null; + /** The `FunctionExecutionLog` that was deleted by this mutation. */ + functionExecutionLog?: FunctionExecutionLog | null; + functionExecutionLogEdge?: FunctionExecutionLogEdge | null; } -/** An input for mutations affecting `ResourceInstallation` */ -export interface ResourceInstallationInput { - /** Infra store commit for the current params (stamped by the versioned trigger on every write) */ - commitId?: string; - createdAt?: string; - createdBy?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - id?: string; - /** Human-readable release name */ - name: string; - /** Namespace this installation belongs to (security boundary) */ - namespaceId: string; - /** Release parameters — the readily-cached head; history lives in the infra store. Never contains secret/config literals. */ - params?: Record; - /** Monotonic release revision counter: install starts at 1, bumped on every upgrade/rollback */ - revision?: number; - /** URL-safe release identifier, unique within the namespace; the release's path in the infra tree is [resource_installation, slug] */ - slug: string; - /** Installation lifecycle status: pending, installed, uninstalled, failed */ - status?: string; - /** Infra merkle store holding this installation's history (stamped by the versioned trigger) */ - storeId?: string; - updatedAt?: string; - updatedBy?: string; +export type DeleteFunctionExecutionLogPayloadSelect = { + clientMutationId?: boolean; + functionExecutionLog?: { + select: FunctionExecutionLogSelect; + }; + functionExecutionLogEdge?: { + select: FunctionExecutionLogEdgeSelect; + }; +}; +export interface CreateFunctionGraphCommitPayload { + clientMutationId?: string | null; + /** The `FunctionGraphCommit` that was created by this mutation. */ + functionGraphCommit?: FunctionGraphCommit | null; + functionGraphCommitEdge?: FunctionGraphCommitEdge | null; +} +export type CreateFunctionGraphCommitPayloadSelect = { + clientMutationId?: boolean; + functionGraphCommit?: { + select: FunctionGraphCommitSelect; + }; + functionGraphCommitEdge?: { + select: FunctionGraphCommitEdgeSelect; + }; +}; +export interface UpdateFunctionGraphCommitPayload { + clientMutationId?: string | null; + /** The `FunctionGraphCommit` that was updated by this mutation. */ + functionGraphCommit?: FunctionGraphCommit | null; + functionGraphCommitEdge?: FunctionGraphCommitEdge | null; } -/** An input for mutations affecting `ResourceStatusCheck` */ -export interface ResourceStatusCheckInput { - /** When the check completed (NULL while pending/running) */ - completedAt?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - /** Unique status check identifier */ - id?: string; - /** When the check was requested */ - requestedAt?: string; - /** User who requested the check (NULL for system/scheduled) */ - requestedBy?: string; - /** Resource to check */ - resourceId: string; - /** Diagnostic snapshot: k8s_status, conditions, pod_logs_tail, events */ - result?: Record; - /** Check lifecycle: pending, running, completed, failed */ - status?: string; +export type UpdateFunctionGraphCommitPayloadSelect = { + clientMutationId?: boolean; + functionGraphCommit?: { + select: FunctionGraphCommitSelect; + }; + functionGraphCommitEdge?: { + select: FunctionGraphCommitEdgeSelect; + }; +}; +export interface DeleteFunctionGraphCommitPayload { + clientMutationId?: string | null; + /** The `FunctionGraphCommit` that was deleted by this mutation. */ + functionGraphCommit?: FunctionGraphCommit | null; + functionGraphCommitEdge?: FunctionGraphCommitEdge | null; } -/** An input for mutations affecting `ResourceUsageLog` */ -export interface ResourceUsageLogInput { - /** CPU gauge in millicores at sample time (NULL when unknown) */ - cpuMillicores?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - /** Unique sample identifier */ - id?: string; - /** Seconds covered by this sample — runtime is SUM(interval_seconds) */ - intervalSeconds: number; - /** Memory gauge in bytes at sample time (NULL when unknown) */ - memoryBytes?: string; - /** Structured gauges: replicas, pod counts, phases, and other producer-specific metrics */ - metrics?: Record; - /** Namespace the measured workload runs in */ - namespaceId: string; - /** Resource this sample measures (NULL for namespace-grain catch-all rows) */ - resourceId?: string; - /** Sample timestamp (partition key) — end of the measured interval */ - sampledAt?: string; - /** Sample producer: self (workload heartbeat), observer (reconciler), or prometheus (namespace-grain usage collector) */ - source: string; +export type DeleteFunctionGraphCommitPayloadSelect = { + clientMutationId?: boolean; + functionGraphCommit?: { + select: FunctionGraphCommitSelect; + }; + functionGraphCommitEdge?: { + select: FunctionGraphCommitEdgeSelect; + }; +}; +export interface CreateFunctionGraphPayload { + clientMutationId?: string | null; + result?: string | null; } -/** An input for mutations affecting `ResourceUsageSummary` */ -export interface ResourceUsageSummaryInput { - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - /** Day this summary covers (partition key) */ - date: string; - /** Memory usage for the day — SUM(memory_bytes * interval_seconds) normalized to GB-seconds */ - gbSeconds?: string; - /** Unique usage summary identifier */ - id?: string; - /** Maximum CPU gauge observed during the day (NULL when never reported) */ - maxCpuMillicores?: string; - /** Maximum memory gauge observed during the day (NULL when never reported) */ - maxMemoryBytes?: string; - /** Namespace the resource runs in */ - namespaceId: string; - /** Resource this summary covers (NULL for namespace-grain catch-all summaries) */ - resourceId?: string; - /** Total measured runtime for the day — SUM(interval_seconds) */ - runtimeSeconds?: string; - /** Number of raw samples aggregated into this summary */ - sampleCount?: number; +export type CreateFunctionGraphPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface UpdateFunctionGraphPayload { + clientMutationId?: string | null; + /** The `FunctionGraph` that was updated by this mutation. */ + functionGraph?: FunctionGraph | null; + functionGraphEdge?: FunctionGraphEdge | null; } -/** An input for mutations affecting `WebhookEndpoint` */ -export interface WebhookEndpointInput { - /** Whether this endpoint currently accepts deliveries */ - active?: boolean; - createdAt?: string; - createdBy?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - /** Same-scope function definition invoked on delivery. The function must list the webhook channel in access_channels. */ - functionDefinitionId: string; - /** Inbound Host header this endpoint matches (normalized lower-case, no port) */ - host: string; - id?: string; - /** Namespace that owns this endpoint and contains its signing secret */ - namespaceId: string; - /** Exact request path this endpoint matches (e.g. /webhooks/stripe) */ - path: string; - /** Verification scheme: generic (HMAC), stripe, or github */ - provider?: string; - /** Maximum age (seconds) of a signed provider timestamp before the delivery is rejected as a replay */ - replayWindowSeconds?: number; - /** Name of the signing secret in the infra secrets store. The gateway resolves the value through the generated secrets getter — the plaintext secret is never stored here. */ - signingSecretName: string; - updatedAt?: string; - updatedBy?: string; +export type UpdateFunctionGraphPayloadSelect = { + clientMutationId?: boolean; + functionGraph?: { + select: FunctionGraphSelect; + }; + functionGraphEdge?: { + select: FunctionGraphEdgeSelect; + }; +}; +export interface DeleteFunctionGraphPayload { + clientMutationId?: string | null; + /** The `FunctionGraph` that was deleted by this mutation. */ + functionGraph?: FunctionGraph | null; + functionGraphEdge?: FunctionGraphEdge | null; } -/** An input for mutations affecting `WebhookEvent` */ -export interface WebhookEventInput { - createdAt?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - /** Endpoint that accepted this delivery */ - endpointId: string; - /** Failure detail when status = failed */ - error?: string; - /** Provider-supplied delivery/event id used for idempotent dedup */ - externalEventId: string; - id?: string; - /** created_at of the enqueued invocation (partition key companion to invocation_id) */ - invocationCreatedAt?: string; - /** Pending function invocation enqueued for this delivery (NULL until enqueued) */ - invocationId?: string; - /** Parsed delivery payload (parsed only after signature verification over the exact raw bytes) */ - payload?: Record; - /** Provider that produced this delivery (copied from the endpoint at acceptance) */ - provider: string; - /** Signed provider timestamp used for replay-window validation (NULL when the provider supplies none) */ - providerTimestamp?: string; - /** Acceptance lifecycle: accepted, processed, failed */ - status?: string; - updatedAt?: string; +export type DeleteFunctionGraphPayloadSelect = { + clientMutationId?: boolean; + functionGraph?: { + select: FunctionGraphSelect; + }; + functionGraphEdge?: { + select: FunctionGraphEdgeSelect; + }; +}; +export interface CreateFunctionGraphExecutionPayload { + clientMutationId?: string | null; + /** The `FunctionGraphExecution` that was created by this mutation. */ + functionGraphExecution?: FunctionGraphExecution | null; + functionGraphExecutionEdge?: FunctionGraphExecutionEdge | null; } -/** A filter to be used against `FunctionInvocation` object types. All fields are combined with a logical ‘and.’ */ -export interface FunctionInvocationFilter { - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: FunctionInvocationFilter[]; - /** Filter by the object’s `apiBinding` relation. */ - apiBinding?: FunctionApiBindingFilter; - /** A related `apiBinding` exists. */ - apiBindingExists?: boolean; - /** Filter by the object’s `apiBindingId` field. */ - apiBindingId?: UUIDFilter; - /** Filter by the object’s `channel` field. */ - channel?: StringFilter; - /** Filter by the object’s `completedAt` field. */ - completedAt?: DatetimeFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `definitionScope` field. */ - definitionScope?: StringFilter; - /** Filter by the object’s `durationMs` field. */ - durationMs?: IntFilter; - /** Filter by the object’s `error` field. */ - error?: StringFilter; - /** Filter by the object’s `functionDefinitionId` field. */ - functionDefinitionId?: UUIDFilter; - /** Filter by the object’s `graphExecutionId` field. */ - graphExecutionId?: UUIDFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `jobId` field. */ - jobId?: BigIntFilter; - /** Negates the expression. */ - not?: FunctionInvocationFilter; - /** Checks for any expressions in this list. */ - or?: FunctionInvocationFilter[]; - /** Filter by the object’s `parentInvocationId` field. */ - parentInvocationId?: UUIDFilter; - /** Filter by the object’s `payload` field. */ - payload?: JSONFilter; - /** Filter by the object’s `provenance` field. */ - provenance?: JSONFilter; - /** Filter by the object’s `result` field. */ - result?: JSONFilter; - /** Filter by the object’s `startedAt` field. */ - startedAt?: DatetimeFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `taskIdentifier` field. */ - taskIdentifier?: StringFilter; +export type CreateFunctionGraphExecutionPayloadSelect = { + clientMutationId?: boolean; + functionGraphExecution?: { + select: FunctionGraphExecutionSelect; + }; + functionGraphExecutionEdge?: { + select: FunctionGraphExecutionEdgeSelect; + }; +}; +export interface UpdateFunctionGraphExecutionPayload { + clientMutationId?: string | null; + /** The `FunctionGraphExecution` that was updated by this mutation. */ + functionGraphExecution?: FunctionGraphExecution | null; + functionGraphExecutionEdge?: FunctionGraphExecutionEdge | null; +} +export type UpdateFunctionGraphExecutionPayloadSelect = { + clientMutationId?: boolean; + functionGraphExecution?: { + select: FunctionGraphExecutionSelect; + }; + functionGraphExecutionEdge?: { + select: FunctionGraphExecutionEdgeSelect; + }; +}; +export interface DeleteFunctionGraphExecutionPayload { + clientMutationId?: string | null; + /** The `FunctionGraphExecution` that was deleted by this mutation. */ + functionGraphExecution?: FunctionGraphExecution | null; + functionGraphExecutionEdge?: FunctionGraphExecutionEdge | null; } -/** A filter to be used against `FunctionApiBinding` object types. All fields are combined with a logical ‘and.’ */ -export interface FunctionApiBindingFilter { - /** Filter by the object’s `alias` field. */ - alias?: StringFilter; - /** Checks for all expressions in this list. */ - and?: FunctionApiBindingFilter[]; - /** 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 `functionDefinition` relation. */ - functionDefinition?: FunctionDefinitionFilter; - /** Filter by the object’s `functionDefinitionId` field. */ - functionDefinitionId?: UUIDFilter; - /** Filter by the object’s `functionInvocationsByApiBindingId` relation. */ - functionInvocationsByApiBindingId?: FunctionApiBindingToManyFunctionInvocationFilter; - /** `functionInvocationsByApiBindingId` exist. */ - functionInvocationsByApiBindingIdExist?: boolean; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Negates the expression. */ - not?: FunctionApiBindingFilter; - /** Checks for any expressions in this list. */ - or?: FunctionApiBindingFilter[]; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; +export type DeleteFunctionGraphExecutionPayloadSelect = { + clientMutationId?: boolean; + functionGraphExecution?: { + select: FunctionGraphExecutionSelect; + }; + functionGraphExecutionEdge?: { + select: FunctionGraphExecutionEdgeSelect; + }; +}; +export interface CreateFunctionGraphExecutionNodeStatePayload { + clientMutationId?: string | null; + /** The `FunctionGraphExecutionNodeState` that was created by this mutation. */ + functionGraphExecutionNodeState?: FunctionGraphExecutionNodeState | null; + functionGraphExecutionNodeStateEdge?: FunctionGraphExecutionNodeStateEdge | null; } -/** A filter to be used against `FunctionCapabilityBinding` object types. All fields are combined with a logical ‘and.’ */ -export interface FunctionCapabilityBindingFilter { - /** Checks for all expressions in this list. */ - and?: FunctionCapabilityBindingFilter[]; - /** 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 `function` relation. */ - function?: FunctionDefinitionFilter; - /** A related `function` exists. */ - functionExists?: boolean; - /** Filter by the object’s `functionId` field. */ - functionId?: UUIDFilter; - /** Filter by the object’s `graphId` field. */ - graphId?: UUIDFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `key` field. */ - key?: StringFilter; - /** Filter by the object’s `lifecycle` field. */ - lifecycle?: StringFilter; - /** Filter by the object’s `metadata` field. */ - metadata?: JSONFilter; - /** Negates the expression. */ - not?: FunctionCapabilityBindingFilter; - /** Checks for any expressions in this list. */ - or?: FunctionCapabilityBindingFilter[]; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; +export type CreateFunctionGraphExecutionNodeStatePayloadSelect = { + clientMutationId?: boolean; + functionGraphExecutionNodeState?: { + select: FunctionGraphExecutionNodeStateSelect; + }; + functionGraphExecutionNodeStateEdge?: { + select: FunctionGraphExecutionNodeStateEdgeSelect; + }; +}; +export interface UpdateFunctionGraphExecutionNodeStatePayload { + clientMutationId?: string | null; + /** The `FunctionGraphExecutionNodeState` that was updated by this mutation. */ + functionGraphExecutionNodeState?: FunctionGraphExecutionNodeState | null; + functionGraphExecutionNodeStateEdge?: FunctionGraphExecutionNodeStateEdge | null; } -/** A filter to be used against `WebhookEndpoint` object types. All fields are combined with a logical ‘and.’ */ -export interface WebhookEndpointFilter { - /** Filter by the object’s `active` field. */ - active?: BooleanFilter; - /** Checks for all expressions in this list. */ - and?: WebhookEndpointFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `functionDefinition` relation. */ - functionDefinition?: FunctionDefinitionFilter; - /** Filter by the object’s `functionDefinitionId` field. */ - functionDefinitionId?: UUIDFilter; - /** Filter by the object’s `host` field. */ - host?: StringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; - /** Negates the expression. */ - not?: WebhookEndpointFilter; - /** Checks for any expressions in this list. */ - or?: WebhookEndpointFilter[]; - /** Filter by the object’s `path` field. */ - path?: StringFilter; - /** Filter by the object’s `provider` field. */ - provider?: StringFilter; - /** Filter by the object’s `replayWindowSeconds` field. */ - replayWindowSeconds?: IntFilter; - /** Filter by the object’s `signingSecretName` field. */ - signingSecretName?: StringFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `webhookEventsByEndpointId` relation. */ - webhookEventsByEndpointId?: WebhookEndpointToManyWebhookEventFilter; - /** `webhookEventsByEndpointId` exist. */ - webhookEventsByEndpointIdExist?: boolean; +export type UpdateFunctionGraphExecutionNodeStatePayloadSelect = { + clientMutationId?: boolean; + functionGraphExecutionNodeState?: { + select: FunctionGraphExecutionNodeStateSelect; + }; + functionGraphExecutionNodeStateEdge?: { + select: FunctionGraphExecutionNodeStateEdgeSelect; + }; +}; +export interface DeleteFunctionGraphExecutionNodeStatePayload { + clientMutationId?: string | null; + /** The `FunctionGraphExecutionNodeState` that was deleted by this mutation. */ + functionGraphExecutionNodeState?: FunctionGraphExecutionNodeState | null; + functionGraphExecutionNodeStateEdge?: FunctionGraphExecutionNodeStateEdge | null; } -/** A filter to be used against `FunctionGraphExecution` object types. All fields are combined with a logical ‘and.’ */ -export interface FunctionGraphExecutionFilter { - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: FunctionGraphExecutionFilter[]; - /** Filter by the object’s `completedAt` field. */ - completedAt?: DatetimeFilter; - /** Filter by the object’s `currentWave` field. */ - currentWave?: IntFilter; - /** Filter by the object’s `definitionsCommitId` field. */ - definitionsCommitId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `entityType` field. */ - entityType?: StringFilter; - /** Filter by the object’s `errorCode` field. */ - errorCode?: StringFilter; - /** Filter by the object’s `errorMessage` field. */ - errorMessage?: StringFilter; - /** Filter by the object’s `executionPlan` field. */ - executionPlan?: JSONFilter; - /** Filter by the object’s `graph` relation. */ - graph?: FunctionGraphFilter; - /** Filter by the object’s `graphId` field. */ - graphId?: UUIDFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `inputPayload` field. */ - inputPayload?: JSONFilter; - /** Filter by the object’s `invocationCreatedAt` field. */ - invocationCreatedAt?: DatetimeFilter; - /** Filter by the object’s `invocationId` field. */ - invocationId?: UUIDFilter; - /** Filter by the object’s `lastProgressAt` field. */ - lastProgressAt?: DatetimeFilter; - /** Filter by the object’s `maxPendingJobs` field. */ - maxPendingJobs?: IntFilter; - /** Filter by the object’s `maxTicks` field. */ - maxTicks?: IntFilter; - /** Filter by the object’s `nodeOutputs` field. */ - nodeOutputs?: JSONFilter; - /** Negates the expression. */ - not?: FunctionGraphExecutionFilter; - /** Checks for any expressions in this list. */ - or?: FunctionGraphExecutionFilter[]; - /** Filter by the object’s `organizationId` field. */ - organizationId?: UUIDFilter; - /** Filter by the object’s `outputNames` field. */ - outputNames?: StringListFilter; - /** Filter by the object’s `outputNode` field. */ - outputNode?: StringFilter; - /** Filter by the object’s `outputPayload` field. */ - outputPayload?: JSONFilter; - /** Filter by the object’s `outputPort` field. */ - outputPort?: StringFilter; - /** Filter by the object’s `parentExecutionId` field. */ - parentExecutionId?: UUIDFilter; - /** Filter by the object’s `parentInvocationId` field. */ - parentInvocationId?: UUIDFilter; - /** Filter by the object’s `parentNodeName` field. */ - parentNodeName?: StringFilter; - /** Filter by the object’s `principalId` field. */ - principalId?: UUIDFilter; - /** Filter by the object’s `scopeId` field. */ - scopeId?: UUIDFilter; - /** Filter by the object’s `startedAt` field. */ - startedAt?: DatetimeFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `tickCount` field. */ - tickCount?: IntFilter; - /** Filter by the object’s `timeoutAt` field. */ - timeoutAt?: DatetimeFilter; +export type DeleteFunctionGraphExecutionNodeStatePayloadSelect = { + clientMutationId?: boolean; + functionGraphExecutionNodeState?: { + select: FunctionGraphExecutionNodeStateSelect; + }; + functionGraphExecutionNodeStateEdge?: { + select: FunctionGraphExecutionNodeStateEdgeSelect; + }; +}; +export interface CreateFunctionGraphExecutionOutputPayload { + clientMutationId?: string | null; + /** The `FunctionGraphExecutionOutput` that was created by this mutation. */ + functionGraphExecutionOutput?: FunctionGraphExecutionOutput | null; + functionGraphExecutionOutputEdge?: FunctionGraphExecutionOutputEdge | null; +} +export type CreateFunctionGraphExecutionOutputPayloadSelect = { + clientMutationId?: boolean; + functionGraphExecutionOutput?: { + select: FunctionGraphExecutionOutputSelect; + }; + functionGraphExecutionOutputEdge?: { + select: FunctionGraphExecutionOutputEdgeSelect; + }; +}; +export interface UpdateFunctionGraphExecutionOutputPayload { + clientMutationId?: string | null; + /** The `FunctionGraphExecutionOutput` that was updated by this mutation. */ + functionGraphExecutionOutput?: FunctionGraphExecutionOutput | null; + functionGraphExecutionOutputEdge?: FunctionGraphExecutionOutputEdge | null; } -/** A filter to be used against `PlatformFunctionDefinition` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformFunctionDefinitionFilter { - /** Filter by the object’s `accessChannels` field. */ - accessChannels?: StringListFilter; - /** Checks for all expressions in this list. */ - and?: PlatformFunctionDefinitionFilter[]; - /** Filter by the object’s `billable` field. */ - billable?: BooleanFilter; - /** Filter by the object’s `category` field. */ - category?: StringFilter; - /** Filter by the object’s `concurrency` field. */ - concurrency?: IntFilter; - /** Filter by the object’s `cpuLimitMillicores` field. */ - cpuLimitMillicores?: BigIntFilter; - /** Filter by the object’s `cpuRequestMillicores` field. */ - cpuRequestMillicores?: BigIntFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `fnCategory` field. */ - fnCategory?: StringFilter; - /** Filter by the object’s `functionColumns` field. */ - functionColumns?: JSONFilter; - /** Filter by the object’s `graph` relation. */ - graph?: FunctionGraphFilter; - /** A related `graph` exists. */ - graphExists?: boolean; - /** Filter by the object’s `graphId` field. */ - graphId?: UUIDFilter; - /** Filter by the object’s `icon` field. */ - icon?: StringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `image` field. */ - image?: StringFilter; - /** Filter by the object’s `inputs` field. */ - inputs?: JSONFilter; - /** Filter by the object’s `integrations` field. */ - integrations?: StringListFilter; - /** Filter by the object’s `isPublished` field. */ - isPublished?: BooleanFilter; - /** Filter by the object’s `maxAttempts` field. */ - maxAttempts?: IntFilter; - /** Filter by the object’s `memoryLimitBytes` field. */ - memoryLimitBytes?: BigIntFilter; - /** Filter by the object’s `memoryRequestBytes` field. */ - memoryRequestBytes?: BigIntFilter; - /** Filter by the object’s `moduleTable` field. */ - moduleTable?: StringFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Negates the expression. */ - not?: PlatformFunctionDefinitionFilter; - /** Checks for any expressions in this list. */ - or?: PlatformFunctionDefinitionFilter[]; - /** Filter by the object’s `outputs` field. */ - outputs?: JSONFilter; - /** Filter by the object’s `payloadArgs` field. */ - payloadArgs?: JSONFilter; - /** Filter by the object’s `platformFunctionApiBindingsByFunctionDefinitionId` relation. */ - platformFunctionApiBindingsByFunctionDefinitionId?: PlatformFunctionDefinitionToManyPlatformFunctionApiBindingFilter; - /** `platformFunctionApiBindingsByFunctionDefinitionId` exist. */ - platformFunctionApiBindingsByFunctionDefinitionIdExist?: boolean; - /** Filter by the object’s `platformFunctionCapabilityBindingsByFunctionId` relation. */ - platformFunctionCapabilityBindingsByFunctionId?: PlatformFunctionDefinitionToManyPlatformFunctionCapabilityBindingFilter; - /** `platformFunctionCapabilityBindingsByFunctionId` exist. */ - platformFunctionCapabilityBindingsByFunctionIdExist?: boolean; - /** Filter by the object’s `platformWebhookEndpointsByFunctionDefinitionId` relation. */ - platformWebhookEndpointsByFunctionDefinitionId?: PlatformFunctionDefinitionToManyPlatformWebhookEndpointFilter; - /** `platformWebhookEndpointsByFunctionDefinitionId` exist. */ - platformWebhookEndpointsByFunctionDefinitionIdExist?: boolean; - /** Filter by the object’s `priority` field. */ - priority?: IntFilter; - /** Filter by the object’s `props` field. */ - props?: JSONFilter; - /** Filter by the object’s `protected` field. */ - protected?: BooleanFilter; - /** Filter by the object’s `publishedAt` field. */ - publishedAt?: DatetimeFilter; - /** Filter by the object’s `queueName` field. */ - queueName?: StringFilter; - /** Filter by the object’s `requiredBuckets` field. */ - requiredBuckets?: StringListFilter; - /** Filter by the object’s `requiredModels` field. */ - requiredModels?: StringListFilter; - /** Filter by the object’s `resources` field. */ - resources?: JSONFilter; - /** Filter by the object’s `runtime` field. */ - runtime?: StringFilter; - /** Filter by the object’s `scaleMax` field. */ - scaleMax?: IntFilter; - /** Filter by the object’s `scaleMin` field. */ - scaleMin?: IntFilter; - /** Filter by the object’s `system` field. */ - system?: BooleanFilter; - /** Filter by the object’s `targetFunction` field. */ - targetFunction?: StringFilter; - /** Filter by the object’s `targetSchema` field. */ - targetSchema?: StringFilter; - /** Filter by the object’s `taskIdentifier` field. */ - taskIdentifier?: StringFilter; - /** Filter by the object’s `timeoutSeconds` field. */ - timeoutSeconds?: IntFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `volatile` field. */ - volatile?: BooleanFilter; +export type UpdateFunctionGraphExecutionOutputPayloadSelect = { + clientMutationId?: boolean; + functionGraphExecutionOutput?: { + select: FunctionGraphExecutionOutputSelect; + }; + functionGraphExecutionOutputEdge?: { + select: FunctionGraphExecutionOutputEdgeSelect; + }; +}; +export interface DeleteFunctionGraphExecutionOutputPayload { + clientMutationId?: string | null; + /** The `FunctionGraphExecutionOutput` that was deleted by this mutation. */ + functionGraphExecutionOutput?: FunctionGraphExecutionOutput | null; + functionGraphExecutionOutputEdge?: FunctionGraphExecutionOutputEdge | null; } -/** A filter to be used against `FunctionDeployment` object types. All fields are combined with a logical ‘and.’ */ -export interface FunctionDeploymentFilter { - /** Checks for all expressions in this list. */ - and?: FunctionDeploymentFilter[]; - /** Filter by the object’s `annotations` field. */ - annotations?: JSONFilter; - /** Filter by the object’s `concurrency` field. */ - concurrency?: IntFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `errorCount` field. */ - errorCount?: IntFilter; - /** Filter by the object’s `handlerName` field. */ - handlerName?: StringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `image` field. */ - image?: StringFilter; - /** Filter by the object’s `imageVersion` field. */ - imageVersion?: StringFilter; - /** Filter by the object’s `labels` field. */ - labels?: JSONFilter; - /** Filter by the object’s `lastError` field. */ - lastError?: StringFilter; - /** Filter by the object’s `lastErrorAt` field. */ - lastErrorAt?: DatetimeFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; - /** Negates the expression. */ - not?: FunctionDeploymentFilter; - /** Checks for any expressions in this list. */ - or?: FunctionDeploymentFilter[]; - /** Filter by the object’s `resources` field. */ - resources?: JSONFilter; - /** Filter by the object’s `revision` field. */ - revision?: IntFilter; - /** Filter by the object’s `scaleMax` field. */ - scaleMax?: IntFilter; - /** Filter by the object’s `scaleMin` field. */ - scaleMin?: IntFilter; - /** Filter by the object’s `serviceName` field. */ - serviceName?: StringFilter; - /** Filter by the object’s `serviceUrl` field. */ - serviceUrl?: StringFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `timeoutSeconds` field. */ - timeoutSeconds?: IntFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; +export type DeleteFunctionGraphExecutionOutputPayloadSelect = { + clientMutationId?: boolean; + functionGraphExecutionOutput?: { + select: FunctionGraphExecutionOutputSelect; + }; + functionGraphExecutionOutputEdge?: { + select: FunctionGraphExecutionOutputEdgeSelect; + }; +}; +export interface CreateFunctionGraphObjectPayload { + clientMutationId?: string | null; + /** The `FunctionGraphObject` that was created by this mutation. */ + functionGraphObject?: FunctionGraphObject | null; + functionGraphObjectEdge?: FunctionGraphObjectEdge | null; } -/** A filter to be used against `ResourceDefinition` object types. All fields are combined with a logical ‘and.’ */ -export interface ResourceDefinitionFilter { - /** Checks for all expressions in this list. */ - and?: ResourceDefinitionFilter[]; - /** Filter by the object’s `annotations` field. */ - annotations?: JSONFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `defaultSpec` field. */ - defaultSpec?: JSONFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `integrations` field. */ - integrations?: StringListFilter; - /** Filter by the object’s `kind` field. */ - kind?: StringFilter; - /** Filter by the object’s `labels` field. */ - labels?: JSONFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; - /** Negates the expression. */ - not?: ResourceDefinitionFilter; - /** Checks for any expressions in this list. */ - or?: ResourceDefinitionFilter[]; - /** Filter by the object’s `paramsSchema` field. */ - paramsSchema?: JSONFilter; - /** Filter by the object’s `resources` relation. */ - resources?: ResourceDefinitionToManyResourceFilter; - /** `resources` exist. */ - resourcesExist?: boolean; - /** Filter by the object’s `slug` field. */ - slug?: StringFilter; - /** Filter by the object’s `stepUpMinAge` field. */ - stepUpMinAge?: IntervalFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; +export type CreateFunctionGraphObjectPayloadSelect = { + clientMutationId?: boolean; + functionGraphObject?: { + select: FunctionGraphObjectSelect; + }; + functionGraphObjectEdge?: { + select: FunctionGraphObjectEdgeSelect; + }; +}; +export interface UpdateFunctionGraphObjectPayload { + clientMutationId?: string | null; + /** The `FunctionGraphObject` that was updated by this mutation. */ + functionGraphObject?: FunctionGraphObject | null; + functionGraphObjectEdge?: FunctionGraphObjectEdge | null; } -/** A filter to be used against `ResourceInstallation` object types. All fields are combined with a logical ‘and.’ */ -export interface ResourceInstallationFilter { - /** Checks for all expressions in this list. */ - and?: ResourceInstallationFilter[]; - /** Filter by the object’s `commitId` field. */ - commitId?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; - /** Negates the expression. */ - not?: ResourceInstallationFilter; - /** Checks for any expressions in this list. */ - or?: ResourceInstallationFilter[]; - /** Filter by the object’s `params` field. */ - params?: JSONFilter; - /** Filter by the object’s `resourcesByInstallationId` relation. */ - resourcesByInstallationId?: ResourceInstallationToManyResourceFilter; - /** `resourcesByInstallationId` exist. */ - resourcesByInstallationIdExist?: boolean; - /** Filter by the object’s `revision` field. */ - revision?: IntFilter; - /** Filter by the object’s `slug` field. */ - slug?: StringFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `storeId` field. */ - storeId?: UUIDFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; +export type UpdateFunctionGraphObjectPayloadSelect = { + clientMutationId?: boolean; + functionGraphObject?: { + select: FunctionGraphObjectSelect; + }; + functionGraphObjectEdge?: { + select: FunctionGraphObjectEdgeSelect; + }; +}; +export interface DeleteFunctionGraphObjectPayload { + clientMutationId?: string | null; + /** The `FunctionGraphObject` that was deleted by this mutation. */ + functionGraphObject?: FunctionGraphObject | null; + functionGraphObjectEdge?: FunctionGraphObjectEdge | null; } -/** A filter to be used against `Resource` object types. All fields are combined with a logical ‘and.’ */ -export interface ResourceFilter { - /** Checks for all expressions in this list. */ - and?: ResourceFilter[]; - /** Filter by the object’s `annotations` field. */ - annotations?: JSONFilter; - /** Filter by the object’s `cpuLimitMillicores` field. */ - cpuLimitMillicores?: BigIntFilter; - /** Filter by the object’s `cpuRequestMillicores` field. */ - cpuRequestMillicores?: BigIntFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `errorCount` field. */ - errorCount?: IntFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `installation` relation. */ - installation?: ResourceInstallationFilter; - /** A related `installation` exists. */ - installationExists?: boolean; - /** Filter by the object’s `installationId` field. */ - installationId?: UUIDFilter; - /** Filter by the object’s `integrations` field. */ - integrations?: StringListFilter; - /** Filter by the object’s `kind` field. */ - kind?: StringFilter; - /** Filter by the object’s `labels` field. */ - labels?: JSONFilter; - /** Filter by the object’s `lastError` field. */ - lastError?: StringFilter; - /** Filter by the object’s `lastHeartbeatAt` field. */ - lastHeartbeatAt?: DatetimeFilter; - /** Filter by the object’s `memoryLimitBytes` field. */ - memoryLimitBytes?: BigIntFilter; - /** Filter by the object’s `memoryRequestBytes` field. */ - memoryRequestBytes?: BigIntFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; - /** Negates the expression. */ - not?: ResourceFilter; - /** Checks for any expressions in this list. */ - or?: ResourceFilter[]; - /** Filter by the object’s `realm` field. */ - realm?: StringFilter; - /** Filter by the object’s `replicas` field. */ - replicas?: IntFilter; - /** Filter by the object’s `resourceDefinition` relation. */ - resourceDefinition?: ResourceDefinitionFilter; - /** A related `resourceDefinition` exists. */ - resourceDefinitionExists?: boolean; - /** Filter by the object’s `resourceDefinitionId` field. */ - resourceDefinitionId?: UUIDFilter; - /** Filter by the object’s `resourceStatusChecks` relation. */ - resourceStatusChecks?: ResourceToManyResourceStatusCheckFilter; - /** `resourceStatusChecks` exist. */ - resourceStatusChecksExist?: boolean; - /** Filter by the object’s `slug` field. */ - slug?: StringFilter; - /** Filter by the object’s `spec` field. */ - spec?: JSONFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `statusObserved` field. */ - statusObserved?: JSONFilter; - /** Filter by the object’s `storageClass` field. */ - storageClass?: StringFilter; - /** Filter by the object’s `storageSizeBytes` field. */ - storageSizeBytes?: BigIntFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; +export type DeleteFunctionGraphObjectPayloadSelect = { + clientMutationId?: boolean; + functionGraphObject?: { + select: FunctionGraphObjectSelect; + }; + functionGraphObjectEdge?: { + select: FunctionGraphObjectEdgeSelect; + }; +}; +export interface CreateFunctionGraphRefPayload { + clientMutationId?: string | null; + /** The `FunctionGraphRef` that was created by this mutation. */ + functionGraphRef?: FunctionGraphRef | null; + functionGraphRefEdge?: FunctionGraphRefEdge | null; } -/** A filter to be used against `PlatformFunctionInvocation` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformFunctionInvocationFilter { - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: PlatformFunctionInvocationFilter[]; - /** Filter by the object’s `apiBinding` relation. */ - apiBinding?: PlatformFunctionApiBindingFilter; - /** A related `apiBinding` exists. */ - apiBindingExists?: boolean; - /** Filter by the object’s `apiBindingId` field. */ - apiBindingId?: UUIDFilter; - /** Filter by the object’s `channel` field. */ - channel?: StringFilter; - /** Filter by the object’s `completedAt` field. */ - completedAt?: DatetimeFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `definitionScope` field. */ - definitionScope?: StringFilter; - /** Filter by the object’s `durationMs` field. */ - durationMs?: IntFilter; - /** Filter by the object’s `error` field. */ - error?: StringFilter; - /** Filter by the object’s `functionDefinitionId` field. */ - functionDefinitionId?: UUIDFilter; - /** Filter by the object’s `graphExecutionId` field. */ - graphExecutionId?: UUIDFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `jobId` field. */ - jobId?: BigIntFilter; - /** Negates the expression. */ - not?: PlatformFunctionInvocationFilter; - /** Checks for any expressions in this list. */ - or?: PlatformFunctionInvocationFilter[]; - /** Filter by the object’s `parentInvocationId` field. */ - parentInvocationId?: UUIDFilter; - /** Filter by the object’s `payload` field. */ - payload?: JSONFilter; - /** Filter by the object’s `provenance` field. */ - provenance?: JSONFilter; - /** Filter by the object’s `result` field. */ - result?: JSONFilter; - /** Filter by the object’s `startedAt` field. */ - startedAt?: DatetimeFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `taskIdentifier` field. */ - taskIdentifier?: StringFilter; +export type CreateFunctionGraphRefPayloadSelect = { + clientMutationId?: boolean; + functionGraphRef?: { + select: FunctionGraphRefSelect; + }; + functionGraphRefEdge?: { + select: FunctionGraphRefEdgeSelect; + }; +}; +export interface UpdateFunctionGraphRefPayload { + clientMutationId?: string | null; + /** The `FunctionGraphRef` that was updated by this mutation. */ + functionGraphRef?: FunctionGraphRef | null; + functionGraphRefEdge?: FunctionGraphRefEdge | null; +} +export type UpdateFunctionGraphRefPayloadSelect = { + clientMutationId?: boolean; + functionGraphRef?: { + select: FunctionGraphRefSelect; + }; + functionGraphRefEdge?: { + select: FunctionGraphRefEdgeSelect; + }; +}; +export interface DeleteFunctionGraphRefPayload { + clientMutationId?: string | null; + /** The `FunctionGraphRef` that was deleted by this mutation. */ + functionGraphRef?: FunctionGraphRef | null; + functionGraphRefEdge?: FunctionGraphRefEdge | null; +} +export type DeleteFunctionGraphRefPayloadSelect = { + clientMutationId?: boolean; + functionGraphRef?: { + select: FunctionGraphRefSelect; + }; + functionGraphRefEdge?: { + select: FunctionGraphRefEdgeSelect; + }; +}; +export interface CreateFunctionGraphStorePayload { + clientMutationId?: string | null; + /** The `FunctionGraphStore` that was created by this mutation. */ + functionGraphStore?: FunctionGraphStore | null; + functionGraphStoreEdge?: FunctionGraphStoreEdge | null; +} +export type CreateFunctionGraphStorePayloadSelect = { + clientMutationId?: boolean; + functionGraphStore?: { + select: FunctionGraphStoreSelect; + }; + functionGraphStoreEdge?: { + select: FunctionGraphStoreEdgeSelect; + }; +}; +export interface UpdateFunctionGraphStorePayload { + clientMutationId?: string | null; + /** The `FunctionGraphStore` that was updated by this mutation. */ + functionGraphStore?: FunctionGraphStore | null; + functionGraphStoreEdge?: FunctionGraphStoreEdge | null; } -/** A filter to be used against `PlatformFunctionApiBinding` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformFunctionApiBindingFilter { - /** Filter by the object’s `alias` field. */ - alias?: StringFilter; - /** Checks for all expressions in this list. */ - and?: PlatformFunctionApiBindingFilter[]; - /** 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 `functionDefinition` relation. */ - functionDefinition?: PlatformFunctionDefinitionFilter; - /** Filter by the object’s `functionDefinitionId` field. */ - functionDefinitionId?: UUIDFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Negates the expression. */ - not?: PlatformFunctionApiBindingFilter; - /** Checks for any expressions in this list. */ - or?: PlatformFunctionApiBindingFilter[]; - /** Filter by the object’s `platformFunctionInvocationsByApiBindingId` relation. */ - platformFunctionInvocationsByApiBindingId?: PlatformFunctionApiBindingToManyPlatformFunctionInvocationFilter; - /** `platformFunctionInvocationsByApiBindingId` exist. */ - platformFunctionInvocationsByApiBindingIdExist?: boolean; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; +export type UpdateFunctionGraphStorePayloadSelect = { + clientMutationId?: boolean; + functionGraphStore?: { + select: FunctionGraphStoreSelect; + }; + functionGraphStoreEdge?: { + select: FunctionGraphStoreEdgeSelect; + }; +}; +export interface DeleteFunctionGraphStorePayload { + clientMutationId?: string | null; + /** The `FunctionGraphStore` that was deleted by this mutation. */ + functionGraphStore?: FunctionGraphStore | null; + functionGraphStoreEdge?: FunctionGraphStoreEdge | null; } -/** A filter to be used against `PlatformFunctionCapabilityBinding` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformFunctionCapabilityBindingFilter { - /** Checks for all expressions in this list. */ - and?: PlatformFunctionCapabilityBindingFilter[]; - /** Filter by the object’s `bucketId` field. */ - bucketId?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `function` relation. */ - function?: PlatformFunctionDefinitionFilter; - /** A related `function` exists. */ - functionExists?: boolean; - /** Filter by the object’s `functionId` field. */ - functionId?: UUIDFilter; - /** Filter by the object’s `graphId` field. */ - graphId?: UUIDFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `key` field. */ - key?: StringFilter; - /** Filter by the object’s `lifecycle` field. */ - lifecycle?: StringFilter; - /** Filter by the object’s `metadata` field. */ - metadata?: JSONFilter; - /** Negates the expression. */ - not?: PlatformFunctionCapabilityBindingFilter; - /** Checks for any expressions in this list. */ - or?: PlatformFunctionCapabilityBindingFilter[]; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; +export type DeleteFunctionGraphStorePayloadSelect = { + clientMutationId?: boolean; + functionGraphStore?: { + select: FunctionGraphStoreSelect; + }; + functionGraphStoreEdge?: { + select: FunctionGraphStoreEdgeSelect; + }; +}; +export interface CreateFunctionInvocationAttemptPayload { + clientMutationId?: string | null; + /** The `FunctionInvocationAttempt` that was created by this mutation. */ + functionInvocationAttempt?: FunctionInvocationAttempt | null; + functionInvocationAttemptEdge?: FunctionInvocationAttemptEdge | null; } -/** A filter to be used against `PlatformWebhookEndpoint` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformWebhookEndpointFilter { - /** Filter by the object’s `active` field. */ - active?: BooleanFilter; - /** Checks for all expressions in this list. */ - and?: PlatformWebhookEndpointFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `functionDefinition` relation. */ - functionDefinition?: PlatformFunctionDefinitionFilter; - /** Filter by the object’s `functionDefinitionId` field. */ - functionDefinitionId?: UUIDFilter; - /** Filter by the object’s `host` field. */ - host?: StringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: PlatformNamespaceFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; - /** Negates the expression. */ - not?: PlatformWebhookEndpointFilter; - /** Checks for any expressions in this list. */ - or?: PlatformWebhookEndpointFilter[]; - /** Filter by the object’s `path` field. */ - path?: StringFilter; - /** Filter by the object’s `platformWebhookEventsByEndpointId` relation. */ - platformWebhookEventsByEndpointId?: PlatformWebhookEndpointToManyPlatformWebhookEventFilter; - /** `platformWebhookEventsByEndpointId` exist. */ - platformWebhookEventsByEndpointIdExist?: boolean; - /** Filter by the object’s `provider` field. */ - provider?: StringFilter; - /** Filter by the object’s `replayWindowSeconds` field. */ - replayWindowSeconds?: IntFilter; - /** Filter by the object’s `signingSecretName` field. */ - signingSecretName?: StringFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; +export type CreateFunctionInvocationAttemptPayloadSelect = { + clientMutationId?: boolean; + functionInvocationAttempt?: { + select: FunctionInvocationAttemptSelect; + }; + functionInvocationAttemptEdge?: { + select: FunctionInvocationAttemptEdgeSelect; + }; +}; +export interface UpdateFunctionInvocationAttemptPayload { + clientMutationId?: string | null; + /** The `FunctionInvocationAttempt` that was updated by this mutation. */ + functionInvocationAttempt?: FunctionInvocationAttempt | null; + functionInvocationAttemptEdge?: FunctionInvocationAttemptEdge | null; } -/** A filter to be used against `PlatformFunctionDeployment` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformFunctionDeploymentFilter { - /** Checks for all expressions in this list. */ - and?: PlatformFunctionDeploymentFilter[]; - /** Filter by the object’s `annotations` field. */ - annotations?: JSONFilter; - /** Filter by the object’s `concurrency` field. */ - concurrency?: IntFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `errorCount` field. */ - errorCount?: IntFilter; - /** Filter by the object’s `handlerName` field. */ - handlerName?: StringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `image` field. */ - image?: StringFilter; - /** Filter by the object’s `imageVersion` field. */ - imageVersion?: StringFilter; - /** Filter by the object’s `labels` field. */ - labels?: JSONFilter; - /** Filter by the object’s `lastError` field. */ - lastError?: StringFilter; - /** Filter by the object’s `lastErrorAt` field. */ - lastErrorAt?: DatetimeFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: PlatformNamespaceFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; - /** Negates the expression. */ - not?: PlatformFunctionDeploymentFilter; - /** Checks for any expressions in this list. */ - or?: PlatformFunctionDeploymentFilter[]; - /** Filter by the object’s `resources` field. */ - resources?: JSONFilter; - /** Filter by the object’s `revision` field. */ - revision?: IntFilter; - /** Filter by the object’s `scaleMax` field. */ - scaleMax?: IntFilter; - /** Filter by the object’s `scaleMin` field. */ - scaleMin?: IntFilter; - /** Filter by the object’s `serviceName` field. */ - serviceName?: StringFilter; - /** Filter by the object’s `serviceUrl` field. */ - serviceUrl?: StringFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `timeoutSeconds` field. */ - timeoutSeconds?: IntFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; +export type UpdateFunctionInvocationAttemptPayloadSelect = { + clientMutationId?: boolean; + functionInvocationAttempt?: { + select: FunctionInvocationAttemptSelect; + }; + functionInvocationAttemptEdge?: { + select: FunctionInvocationAttemptEdgeSelect; + }; +}; +export interface DeleteFunctionInvocationAttemptPayload { + clientMutationId?: string | null; + /** The `FunctionInvocationAttempt` that was deleted by this mutation. */ + functionInvocationAttempt?: FunctionInvocationAttempt | null; + functionInvocationAttemptEdge?: FunctionInvocationAttemptEdge | null; +} +export type DeleteFunctionInvocationAttemptPayloadSelect = { + clientMutationId?: boolean; + functionInvocationAttempt?: { + select: FunctionInvocationAttemptSelect; + }; + functionInvocationAttemptEdge?: { + select: FunctionInvocationAttemptEdgeSelect; + }; +}; +export interface CreateFunctionInvocationPayload { + clientMutationId?: string | null; + /** The `FunctionInvocation` that was created by this mutation. */ + functionInvocation?: FunctionInvocation | null; + functionInvocationEdge?: FunctionInvocationEdge | null; +} +export type CreateFunctionInvocationPayloadSelect = { + clientMutationId?: boolean; + functionInvocation?: { + select: FunctionInvocationSelect; + }; + functionInvocationEdge?: { + select: FunctionInvocationEdgeSelect; + }; +}; +export interface UpdateFunctionInvocationPayload { + clientMutationId?: string | null; + /** The `FunctionInvocation` that was updated by this mutation. */ + functionInvocation?: FunctionInvocation | null; + functionInvocationEdge?: FunctionInvocationEdge | null; +} +export type UpdateFunctionInvocationPayloadSelect = { + clientMutationId?: boolean; + functionInvocation?: { + select: FunctionInvocationSelect; + }; + functionInvocationEdge?: { + select: FunctionInvocationEdgeSelect; + }; +}; +export interface DeleteFunctionInvocationPayload { + clientMutationId?: string | null; + /** The `FunctionInvocation` that was deleted by this mutation. */ + functionInvocation?: FunctionInvocation | null; + functionInvocationEdge?: FunctionInvocationEdge | null; } -/** A filter to be used against `PlatformResourceDefinition` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformResourceDefinitionFilter { - /** Checks for all expressions in this list. */ - and?: PlatformResourceDefinitionFilter[]; - /** Filter by the object’s `annotations` field. */ - annotations?: JSONFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `defaultSpec` field. */ - defaultSpec?: JSONFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `integrations` field. */ - integrations?: StringListFilter; - /** Filter by the object’s `kind` field. */ - kind?: StringFilter; - /** Filter by the object’s `labels` field. */ - labels?: JSONFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: PlatformNamespaceFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; - /** Negates the expression. */ - not?: PlatformResourceDefinitionFilter; - /** Checks for any expressions in this list. */ - or?: PlatformResourceDefinitionFilter[]; - /** Filter by the object’s `paramsSchema` field. */ - paramsSchema?: JSONFilter; - /** Filter by the object’s `platformResourcesByResourceDefinitionId` relation. */ - platformResourcesByResourceDefinitionId?: PlatformResourceDefinitionToManyPlatformResourceFilter; - /** `platformResourcesByResourceDefinitionId` exist. */ - platformResourcesByResourceDefinitionIdExist?: boolean; - /** Filter by the object’s `slug` field. */ - slug?: StringFilter; - /** Filter by the object’s `stepUpMinAge` field. */ - stepUpMinAge?: IntervalFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; +export type DeleteFunctionInvocationPayloadSelect = { + clientMutationId?: boolean; + functionInvocation?: { + select: FunctionInvocationSelect; + }; + functionInvocationEdge?: { + select: FunctionInvocationEdgeSelect; + }; +}; +export interface CreateImagePayload { + clientMutationId?: string | null; + /** The `Image` that was created by this mutation. */ + image?: Image | null; + imageEdge?: ImageEdge | null; } -/** A filter to be used against `PlatformResourceInstallation` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformResourceInstallationFilter { - /** Checks for all expressions in this list. */ - and?: PlatformResourceInstallationFilter[]; - /** Filter by the object’s `commitId` field. */ - commitId?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: PlatformNamespaceFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; - /** Negates the expression. */ - not?: PlatformResourceInstallationFilter; - /** Checks for any expressions in this list. */ - or?: PlatformResourceInstallationFilter[]; - /** Filter by the object’s `params` field. */ - params?: JSONFilter; - /** Filter by the object’s `platformResourcesByInstallationId` relation. */ - platformResourcesByInstallationId?: PlatformResourceInstallationToManyPlatformResourceFilter; - /** `platformResourcesByInstallationId` exist. */ - platformResourcesByInstallationIdExist?: boolean; - /** Filter by the object’s `revision` field. */ - revision?: IntFilter; - /** Filter by the object’s `slug` field. */ - slug?: StringFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `storeId` field. */ - storeId?: UUIDFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; +export type CreateImagePayloadSelect = { + clientMutationId?: boolean; + image?: { + select: ImageSelect; + }; + imageEdge?: { + select: ImageEdgeSelect; + }; +}; +export interface UpdateImagePayload { + clientMutationId?: string | null; + /** The `Image` that was updated by this mutation. */ + image?: Image | null; + imageEdge?: ImageEdge | null; } -/** A filter to be used against `PlatformResource` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformResourceFilter { - /** Checks for all expressions in this list. */ - and?: PlatformResourceFilter[]; - /** Filter by the object’s `annotations` field. */ - annotations?: JSONFilter; - /** Filter by the object’s `cpuLimitMillicores` field. */ - cpuLimitMillicores?: BigIntFilter; - /** Filter by the object’s `cpuRequestMillicores` field. */ - cpuRequestMillicores?: BigIntFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `errorCount` field. */ - errorCount?: IntFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `installation` relation. */ - installation?: PlatformResourceInstallationFilter; - /** A related `installation` exists. */ - installationExists?: boolean; - /** Filter by the object’s `installationId` field. */ - installationId?: UUIDFilter; - /** Filter by the object’s `integrations` field. */ - integrations?: StringListFilter; - /** Filter by the object’s `kind` field. */ - kind?: StringFilter; - /** Filter by the object’s `labels` field. */ - labels?: JSONFilter; - /** Filter by the object’s `lastError` field. */ - lastError?: StringFilter; - /** Filter by the object’s `lastHeartbeatAt` field. */ - lastHeartbeatAt?: DatetimeFilter; - /** Filter by the object’s `memoryLimitBytes` field. */ - memoryLimitBytes?: BigIntFilter; - /** Filter by the object’s `memoryRequestBytes` field. */ - memoryRequestBytes?: BigIntFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: PlatformNamespaceFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; - /** Negates the expression. */ - not?: PlatformResourceFilter; - /** Checks for any expressions in this list. */ - or?: PlatformResourceFilter[]; - /** Filter by the object’s `platformResourceStatusChecksByResourceId` relation. */ - platformResourceStatusChecksByResourceId?: PlatformResourceToManyPlatformResourceStatusCheckFilter; - /** `platformResourceStatusChecksByResourceId` exist. */ - platformResourceStatusChecksByResourceIdExist?: boolean; - /** Filter by the object’s `realm` field. */ - realm?: StringFilter; - /** Filter by the object’s `replicas` field. */ - replicas?: IntFilter; - /** Filter by the object’s `resourceDefinition` relation. */ - resourceDefinition?: PlatformResourceDefinitionFilter; - /** A related `resourceDefinition` exists. */ - resourceDefinitionExists?: boolean; - /** Filter by the object’s `resourceDefinitionId` field. */ - resourceDefinitionId?: UUIDFilter; - /** Filter by the object’s `slug` field. */ - slug?: StringFilter; - /** Filter by the object’s `spec` field. */ - spec?: JSONFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `statusObserved` field. */ - statusObserved?: JSONFilter; - /** Filter by the object’s `storageClass` field. */ - storageClass?: StringFilter; - /** Filter by the object’s `storageSizeBytes` field. */ - storageSizeBytes?: BigIntFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; +export type UpdateImagePayloadSelect = { + clientMutationId?: boolean; + image?: { + select: ImageSelect; + }; + imageEdge?: { + select: ImageEdgeSelect; + }; +}; +export interface DeleteImagePayload { + clientMutationId?: string | null; + /** The `Image` that was deleted by this mutation. */ + image?: Image | null; + imageEdge?: ImageEdge | null; } -/** A filter to be used against `PlatformResourceStatusCheck` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformResourceStatusCheckFilter { - /** Checks for all expressions in this list. */ - and?: PlatformResourceStatusCheckFilter[]; - /** Filter by the object’s `completedAt` field. */ - completedAt?: DatetimeFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Negates the expression. */ - not?: PlatformResourceStatusCheckFilter; - /** Checks for any expressions in this list. */ - or?: PlatformResourceStatusCheckFilter[]; - /** Filter by the object’s `requestedAt` field. */ - requestedAt?: DatetimeFilter; - /** Filter by the object’s `requestedBy` field. */ - requestedBy?: UUIDFilter; - /** Filter by the object’s `resource` relation. */ - resource?: PlatformResourceFilter; - /** Filter by the object’s `resourceId` field. */ - resourceId?: UUIDFilter; - /** Filter by the object’s `result` field. */ - result?: JSONFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; +export type DeleteImagePayloadSelect = { + clientMutationId?: boolean; + image?: { + select: ImageSelect; + }; + imageEdge?: { + select: ImageEdgeSelect; + }; +}; +export interface CreateImageGrantPayload { + clientMutationId?: string | null; + /** The `ImageGrant` that was created by this mutation. */ + imageGrant?: ImageGrant | null; + imageGrantEdge?: ImageGrantEdge | null; } -/** A filter to be used against `PlatformWebhookEvent` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformWebhookEventFilter { - /** Checks for all expressions in this list. */ - and?: PlatformWebhookEventFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `endpoint` relation. */ - endpoint?: PlatformWebhookEndpointFilter; - /** Filter by the object’s `endpointId` field. */ - endpointId?: UUIDFilter; - /** Filter by the object’s `error` field. */ - error?: StringFilter; - /** Filter by the object’s `externalEventId` field. */ - externalEventId?: StringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `invocationCreatedAt` field. */ - invocationCreatedAt?: DatetimeFilter; - /** Filter by the object’s `invocationId` field. */ - invocationId?: UUIDFilter; - /** Negates the expression. */ - not?: PlatformWebhookEventFilter; - /** Checks for any expressions in this list. */ - or?: PlatformWebhookEventFilter[]; - /** Filter by the object’s `payload` field. */ - payload?: JSONFilter; - /** Filter by the object’s `provider` field. */ - provider?: StringFilter; - /** Filter by the object’s `providerTimestamp` field. */ - providerTimestamp?: DatetimeFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; +export type CreateImageGrantPayloadSelect = { + clientMutationId?: boolean; + imageGrant?: { + select: ImageGrantSelect; + }; + imageGrantEdge?: { + select: ImageGrantEdgeSelect; + }; +}; +export interface UpdateImageGrantPayload { + clientMutationId?: string | null; + /** The `ImageGrant` that was updated by this mutation. */ + imageGrant?: ImageGrant | null; + imageGrantEdge?: ImageGrantEdge | null; +} +export type UpdateImageGrantPayloadSelect = { + clientMutationId?: boolean; + imageGrant?: { + select: ImageGrantSelect; + }; + imageGrantEdge?: { + select: ImageGrantEdgeSelect; + }; +}; +export interface DeleteImageGrantPayload { + clientMutationId?: string | null; + /** The `ImageGrant` that was deleted by this mutation. */ + imageGrant?: ImageGrant | null; + imageGrantEdge?: ImageGrantEdge | null; } -/** A filter to be used against `ResourceStatusCheck` object types. All fields are combined with a logical ‘and.’ */ -export interface ResourceStatusCheckFilter { - /** Checks for all expressions in this list. */ - and?: ResourceStatusCheckFilter[]; - /** Filter by the object’s `completedAt` field. */ - completedAt?: DatetimeFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Negates the expression. */ - not?: ResourceStatusCheckFilter; - /** Checks for any expressions in this list. */ - or?: ResourceStatusCheckFilter[]; - /** Filter by the object’s `requestedAt` field. */ - requestedAt?: DatetimeFilter; - /** Filter by the object’s `requestedBy` field. */ - requestedBy?: UUIDFilter; - /** Filter by the object’s `resource` relation. */ - resource?: ResourceFilter; - /** Filter by the object’s `resourceId` field. */ - resourceId?: UUIDFilter; - /** Filter by the object’s `result` field. */ - result?: JSONFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; +export type DeleteImageGrantPayloadSelect = { + clientMutationId?: boolean; + imageGrant?: { + select: ImageGrantSelect; + }; + imageGrantEdge?: { + select: ImageGrantEdgeSelect; + }; +}; +export interface CreateInfraCommitPayload { + clientMutationId?: string | null; + /** The `InfraCommit` that was created by this mutation. */ + infraCommit?: InfraCommit | null; + infraCommitEdge?: InfraCommitEdge | null; } -/** A filter to be used against `WebhookEvent` object types. All fields are combined with a logical ‘and.’ */ -export interface WebhookEventFilter { - /** Checks for all expressions in this list. */ - and?: WebhookEventFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `endpoint` relation. */ - endpoint?: WebhookEndpointFilter; - /** Filter by the object’s `endpointId` field. */ - endpointId?: UUIDFilter; - /** Filter by the object’s `error` field. */ - error?: StringFilter; - /** Filter by the object’s `externalEventId` field. */ - externalEventId?: StringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `invocationCreatedAt` field. */ - invocationCreatedAt?: DatetimeFilter; - /** Filter by the object’s `invocationId` field. */ - invocationId?: UUIDFilter; - /** Negates the expression. */ - not?: WebhookEventFilter; - /** Checks for any expressions in this list. */ - or?: WebhookEventFilter[]; - /** Filter by the object’s `payload` field. */ - payload?: JSONFilter; - /** Filter by the object’s `provider` field. */ - provider?: StringFilter; - /** Filter by the object’s `providerTimestamp` field. */ - providerTimestamp?: DatetimeFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; +export type CreateInfraCommitPayloadSelect = { + clientMutationId?: boolean; + infraCommit?: { + select: InfraCommitSelect; + }; + infraCommitEdge?: { + select: InfraCommitEdgeSelect; + }; +}; +export interface UpdateInfraCommitPayload { + clientMutationId?: string | null; + /** The `InfraCommit` that was updated by this mutation. */ + infraCommit?: InfraCommit | null; + infraCommitEdge?: InfraCommitEdge | null; } -/** 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[]; +export type UpdateInfraCommitPayloadSelect = { + clientMutationId?: boolean; + infraCommit?: { + select: InfraCommitSelect; + }; + infraCommitEdge?: { + select: InfraCommitEdgeSelect; + }; +}; +export interface DeleteInfraCommitPayload { + clientMutationId?: string | null; + /** The `InfraCommit` that was deleted by this mutation. */ + infraCommit?: InfraCommit | null; + infraCommitEdge?: InfraCommitEdge | null; } -/** 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; +export type DeleteInfraCommitPayloadSelect = { + clientMutationId?: boolean; + infraCommit?: { + select: InfraCommitSelect; + }; + infraCommitEdge?: { + select: InfraCommitEdgeSelect; + }; +}; +export interface CreateInfraObjectPayload { + clientMutationId?: string | null; + /** The `InfraObject` that was created by this mutation. */ + infraObject?: InfraObject | null; + infraObjectEdge?: InfraObjectEdge | null; } -/** 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[]; +export type CreateInfraObjectPayloadSelect = { + clientMutationId?: boolean; + infraObject?: { + select: InfraObjectSelect; + }; + infraObjectEdge?: { + select: InfraObjectEdgeSelect; + }; +}; +export interface UpdateInfraObjectPayload { + clientMutationId?: string | null; + /** The `InfraObject` that was updated by this mutation. */ + infraObject?: InfraObject | null; + infraObjectEdge?: InfraObjectEdge | null; } -/** 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[]; +export type UpdateInfraObjectPayloadSelect = { + clientMutationId?: boolean; + infraObject?: { + select: InfraObjectSelect; + }; + infraObjectEdge?: { + select: InfraObjectEdgeSelect; + }; +}; +export interface DeleteInfraObjectPayload { + clientMutationId?: string | null; + /** The `InfraObject` that was deleted by this mutation. */ + infraObject?: InfraObject | null; + infraObjectEdge?: InfraObjectEdge | null; } -/** 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. */ - 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[]; +export type DeleteInfraObjectPayloadSelect = { + clientMutationId?: boolean; + infraObject?: { + select: InfraObjectSelect; + }; + infraObjectEdge?: { + select: InfraObjectEdgeSelect; + }; +}; +export interface CreateInfraRefPayload { + clientMutationId?: string | null; + /** The `InfraRef` that was created by this mutation. */ + infraRef?: InfraRef | null; + infraRefEdge?: InfraRefEdge | null; } -/** A filter to be used against JSON fields. All fields are combined with a logical ‘and.’ */ -export interface JSONFilter { - /** Contained by the specified JSON. */ - containedBy?: Record; - /** Contains the specified JSON. */ - contains?: Record; - /** Contains all of the specified keys. */ - containsAllKeys?: string[]; - /** Contains any of the specified keys. */ - containsAnyKeys?: string[]; - /** Contains the specified key. */ - containsKey?: string; - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: Record; - /** Equal to the specified value. */ - equalTo?: Record; - /** Greater than the specified value. */ - greaterThan?: Record; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: Record; - /** Included in the specified list. */ - in?: Record[]; - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Less than the specified value. */ - lessThan?: Record; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: Record; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: Record; - /** Not equal to the specified value. */ - notEqualTo?: Record; - /** Not included in the specified list. */ - notIn?: Record[]; +export type CreateInfraRefPayloadSelect = { + clientMutationId?: boolean; + infraRef?: { + select: InfraRefSelect; + }; + infraRefEdge?: { + select: InfraRefEdgeSelect; + }; +}; +export interface UpdateInfraRefPayload { + clientMutationId?: string | null; + /** The `InfraRef` that was updated by this mutation. */ + infraRef?: InfraRef | null; + infraRefEdge?: InfraRefEdge | null; } -/** A filter to be used against `FunctionDefinition` object types. All fields are combined with a logical ‘and.’ */ -export interface FunctionDefinitionFilter { - /** Filter by the object’s `accessChannels` field. */ - accessChannels?: StringListFilter; - /** Checks for all expressions in this list. */ - and?: FunctionDefinitionFilter[]; - /** Filter by the object’s `category` field. */ - category?: StringFilter; - /** Filter by the object’s `concurrency` field. */ - concurrency?: IntFilter; - /** Filter by the object’s `cpuLimitMillicores` field. */ - cpuLimitMillicores?: BigIntFilter; - /** Filter by the object’s `cpuRequestMillicores` field. */ - cpuRequestMillicores?: BigIntFilter; - /** 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 `fnCategory` field. */ - fnCategory?: StringFilter; - /** Filter by the object’s `functionApiBindings` relation. */ - functionApiBindings?: FunctionDefinitionToManyFunctionApiBindingFilter; - /** `functionApiBindings` exist. */ - functionApiBindingsExist?: boolean; - /** Filter by the object’s `functionCapabilityBindingsByFunctionId` relation. */ - functionCapabilityBindingsByFunctionId?: FunctionDefinitionToManyFunctionCapabilityBindingFilter; - /** `functionCapabilityBindingsByFunctionId` exist. */ - functionCapabilityBindingsByFunctionIdExist?: boolean; - /** Filter by the object’s `functionColumns` field. */ - functionColumns?: JSONFilter; - /** Filter by the object’s `graphId` field. */ - graphId?: UUIDFilter; - /** Filter by the object’s `icon` field. */ - icon?: StringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `image` field. */ - image?: StringFilter; - /** Filter by the object’s `inputs` field. */ - inputs?: JSONFilter; - /** Filter by the object’s `integrations` field. */ - integrations?: StringListFilter; - /** Filter by the object’s `isPublished` field. */ - isPublished?: BooleanFilter; - /** Filter by the object’s `maxAttempts` field. */ - maxAttempts?: IntFilter; - /** Filter by the object’s `memoryLimitBytes` field. */ - memoryLimitBytes?: BigIntFilter; - /** Filter by the object’s `memoryRequestBytes` field. */ - memoryRequestBytes?: BigIntFilter; - /** Filter by the object’s `moduleTable` field. */ - moduleTable?: StringFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Negates the expression. */ - not?: FunctionDefinitionFilter; - /** Checks for any expressions in this list. */ - or?: FunctionDefinitionFilter[]; - /** Filter by the object’s `outputs` field. */ - outputs?: JSONFilter; - /** Filter by the object’s `payloadArgs` field. */ - payloadArgs?: JSONFilter; - /** Filter by the object’s `priority` field. */ - priority?: IntFilter; - /** Filter by the object’s `props` field. */ - props?: JSONFilter; - /** Filter by the object’s `protected` field. */ - protected?: BooleanFilter; - /** Filter by the object’s `publishedAt` field. */ - publishedAt?: DatetimeFilter; - /** Filter by the object’s `queueName` field. */ - queueName?: StringFilter; - /** Filter by the object’s `requiredBuckets` field. */ - requiredBuckets?: StringListFilter; - /** Filter by the object’s `requiredModels` field. */ - requiredModels?: StringListFilter; - /** Filter by the object’s `resources` field. */ - resources?: JSONFilter; - /** Filter by the object’s `runtime` field. */ - runtime?: StringFilter; - /** Filter by the object’s `scaleMax` field. */ - scaleMax?: IntFilter; - /** Filter by the object’s `scaleMin` field. */ - scaleMin?: IntFilter; - /** Filter by the object’s `targetFunction` field. */ - targetFunction?: StringFilter; - /** Filter by the object’s `targetSchema` field. */ - targetSchema?: StringFilter; - /** Filter by the object’s `taskIdentifier` field. */ - taskIdentifier?: StringFilter; - /** Filter by the object’s `timeoutSeconds` field. */ - timeoutSeconds?: IntFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `volatile` field. */ - volatile?: BooleanFilter; - /** Filter by the object’s `webhookEndpoints` relation. */ - webhookEndpoints?: FunctionDefinitionToManyWebhookEndpointFilter; - /** `webhookEndpoints` exist. */ - webhookEndpointsExist?: boolean; +export type UpdateInfraRefPayloadSelect = { + clientMutationId?: boolean; + infraRef?: { + select: InfraRefSelect; + }; + infraRefEdge?: { + select: InfraRefEdgeSelect; + }; +}; +export interface DeleteInfraRefPayload { + clientMutationId?: string | null; + /** The `InfraRef` that was deleted by this mutation. */ + infraRef?: InfraRef | null; + infraRefEdge?: InfraRefEdge | null; +} +export type DeleteInfraRefPayloadSelect = { + clientMutationId?: boolean; + infraRef?: { + select: InfraRefSelect; + }; + infraRefEdge?: { + select: InfraRefEdgeSelect; + }; +}; +export interface CreateInfraStorePayload { + clientMutationId?: string | null; + /** The `InfraStore` that was created by this mutation. */ + infraStore?: InfraStore | null; + infraStoreEdge?: InfraStoreEdge | null; +} +export type CreateInfraStorePayloadSelect = { + clientMutationId?: boolean; + infraStore?: { + select: InfraStoreSelect; + }; + infraStoreEdge?: { + select: InfraStoreEdgeSelect; + }; +}; +export interface UpdateInfraStorePayload { + clientMutationId?: string | null; + /** The `InfraStore` that was updated by this mutation. */ + infraStore?: InfraStore | null; + infraStoreEdge?: InfraStoreEdge | null; } -/** 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[]; +export type UpdateInfraStorePayloadSelect = { + clientMutationId?: boolean; + infraStore?: { + select: InfraStoreSelect; + }; + infraStoreEdge?: { + select: InfraStoreEdgeSelect; + }; +}; +export interface DeleteInfraStorePayload { + clientMutationId?: string | null; + /** The `InfraStore` that was deleted by this mutation. */ + infraStore?: InfraStore | null; + infraStoreEdge?: InfraStoreEdge | null; } -/** A filter to be used against `Namespace` object types. All fields are combined with a logical ‘and.’ */ -export interface NamespaceFilter { - /** Checks for all expressions in this list. */ - and?: NamespaceFilter[]; - /** Filter by the object’s `annotations` field. */ - annotations?: JSONFilter; - /** 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 `functionDeployments` relation. */ - functionDeployments?: NamespaceToManyFunctionDeploymentFilter; - /** `functionDeployments` exist. */ - functionDeploymentsExist?: boolean; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isActive` field. */ - isActive?: BooleanFilter; - /** Filter by the object’s `isManaged` field. */ - isManaged?: BooleanFilter; - /** Filter by the object’s `labels` field. */ - labels?: JSONFilter; - /** Filter by the object’s `lastError` field. */ - lastError?: StringFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `namespaceName` field. */ - namespaceName?: StringFilter; - /** Negates the expression. */ - not?: NamespaceFilter; - /** Checks for any expressions in this list. */ - or?: NamespaceFilter[]; - /** Filter by the object’s `resourceDefinitions` relation. */ - resourceDefinitions?: NamespaceToManyResourceDefinitionFilter; - /** `resourceDefinitions` exist. */ - resourceDefinitionsExist?: boolean; - /** Filter by the object’s `resourceInstallations` relation. */ - resourceInstallations?: NamespaceToManyResourceInstallationFilter; - /** `resourceInstallations` exist. */ - resourceInstallationsExist?: boolean; - /** Filter by the object’s `resources` relation. */ - resources?: NamespaceToManyResourceFilter; - /** `resources` exist. */ - resourcesExist?: boolean; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `webhookEndpoints` relation. */ - webhookEndpoints?: NamespaceToManyWebhookEndpointFilter; - /** `webhookEndpoints` exist. */ - webhookEndpointsExist?: boolean; +export type DeleteInfraStorePayloadSelect = { + clientMutationId?: boolean; + infraStore?: { + select: InfraStoreSelect; + }; + infraStoreEdge?: { + select: InfraStoreEdgeSelect; + }; +}; +export interface CreateIntegrationProviderPayload { + clientMutationId?: string | null; + /** The `IntegrationProvider` that was created by this mutation. */ + integrationProvider?: IntegrationProvider | null; + integrationProviderEdge?: IntegrationProviderEdge | null; } -/** A filter to be used against `FunctionGraph` object types. All fields are combined with a logical ‘and.’ */ -export interface FunctionGraphFilter { - /** Checks for all expressions in this list. */ - and?: FunctionGraphFilter[]; - /** Filter by the object’s `context` field. */ - context?: StringFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `definitionsCommitId` field. */ - definitionsCommitId?: UUIDFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `functionGraphExecutionsByGraphId` relation. */ - functionGraphExecutionsByGraphId?: FunctionGraphToManyFunctionGraphExecutionFilter; - /** `functionGraphExecutionsByGraphId` exist. */ - functionGraphExecutionsByGraphIdExist?: boolean; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isValid` field. */ - isValid?: BooleanFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Negates the expression. */ - not?: FunctionGraphFilter; - /** Checks for any expressions in this list. */ - or?: FunctionGraphFilter[]; - /** Filter by the object’s `platformFunctionDefinitionsByGraphId` relation. */ - platformFunctionDefinitionsByGraphId?: FunctionGraphToManyPlatformFunctionDefinitionFilter; - /** `platformFunctionDefinitionsByGraphId` exist. */ - platformFunctionDefinitionsByGraphIdExist?: boolean; - /** Filter by the object’s `scopeId` field. */ - scopeId?: UUIDFilter; - /** Filter by the object’s `storeId` field. */ - storeId?: UUIDFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `validationErrors` field. */ - validationErrors?: JSONFilter; +export type CreateIntegrationProviderPayloadSelect = { + clientMutationId?: boolean; + integrationProvider?: { + select: IntegrationProviderSelect; + }; + integrationProviderEdge?: { + select: IntegrationProviderEdgeSelect; + }; +}; +export interface UpdateIntegrationProviderPayload { + clientMutationId?: string | null; + /** The `IntegrationProvider` that was updated by this mutation. */ + integrationProvider?: IntegrationProvider | null; + integrationProviderEdge?: IntegrationProviderEdge | null; } -/** A filter to be used against String List fields. All fields are combined with a logical ‘and.’ */ -export interface StringListFilter { - /** Any array item is equal to the specified value. */ - anyEqualTo?: string; - /** Any array item is greater than the specified value. */ - anyGreaterThan?: string; - /** Any array item is greater than or equal to the specified value. */ - anyGreaterThanOrEqualTo?: string; - /** Any array item is less than the specified value. */ - anyLessThan?: string; - /** Any array item is less than or equal to the specified value. */ - anyLessThanOrEqualTo?: string; - /** Any array item is not equal to the specified value. */ - anyNotEqualTo?: string; - /** Contained by the specified list of values. */ - containedBy?: string[]; - /** Contains the specified list of values. */ - contains?: string[]; - /** 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[]; - /** 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[]; - /** Overlaps the specified list of values. */ - overlaps?: string[]; +export type UpdateIntegrationProviderPayloadSelect = { + clientMutationId?: boolean; + integrationProvider?: { + select: IntegrationProviderSelect; + }; + integrationProviderEdge?: { + select: IntegrationProviderEdgeSelect; + }; +}; +export interface DeleteIntegrationProviderPayload { + clientMutationId?: string | null; + /** The `IntegrationProvider` that was deleted by this mutation. */ + integrationProvider?: IntegrationProvider | null; + integrationProviderEdge?: IntegrationProviderEdge | null; +} +export type DeleteIntegrationProviderPayloadSelect = { + clientMutationId?: boolean; + integrationProvider?: { + select: IntegrationProviderSelect; + }; + integrationProviderEdge?: { + select: IntegrationProviderEdgeSelect; + }; +}; +export interface CreateNamespacePayload { + clientMutationId?: string | null; + /** The `Namespace` that was created by this mutation. */ + namespace?: Namespace | null; + namespaceEdge?: NamespaceEdge | null; +} +export type CreateNamespacePayloadSelect = { + clientMutationId?: boolean; + namespace?: { + select: NamespaceSelect; + }; + namespaceEdge?: { + select: NamespaceEdgeSelect; + }; +}; +export interface UpdateNamespacePayload { + clientMutationId?: string | null; + /** The `Namespace` that was updated by this mutation. */ + namespace?: Namespace | null; + namespaceEdge?: NamespaceEdge | null; } -/** A filter to be used against `PlatformNamespace` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformNamespaceFilter { - /** Checks for all expressions in this list. */ - and?: PlatformNamespaceFilter[]; - /** Filter by the object’s `annotations` field. */ - annotations?: JSONFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isActive` field. */ - isActive?: BooleanFilter; - /** Filter by the object’s `isManaged` field. */ - isManaged?: BooleanFilter; - /** Filter by the object’s `labels` field. */ - labels?: JSONFilter; - /** Filter by the object’s `lastError` field. */ - lastError?: StringFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `namespaceName` field. */ - namespaceName?: StringFilter; - /** Negates the expression. */ - not?: PlatformNamespaceFilter; - /** Checks for any expressions in this list. */ - or?: PlatformNamespaceFilter[]; - /** Filter by the object’s `platformFunctionDeploymentsByNamespaceId` relation. */ - platformFunctionDeploymentsByNamespaceId?: PlatformNamespaceToManyPlatformFunctionDeploymentFilter; - /** `platformFunctionDeploymentsByNamespaceId` exist. */ - platformFunctionDeploymentsByNamespaceIdExist?: boolean; - /** Filter by the object’s `platformResourceDefinitionsByNamespaceId` relation. */ - platformResourceDefinitionsByNamespaceId?: PlatformNamespaceToManyPlatformResourceDefinitionFilter; - /** `platformResourceDefinitionsByNamespaceId` exist. */ - platformResourceDefinitionsByNamespaceIdExist?: boolean; - /** Filter by the object’s `platformResourceInstallationsByNamespaceId` relation. */ - platformResourceInstallationsByNamespaceId?: PlatformNamespaceToManyPlatformResourceInstallationFilter; - /** `platformResourceInstallationsByNamespaceId` exist. */ - platformResourceInstallationsByNamespaceIdExist?: boolean; - /** Filter by the object’s `platformResourcesByNamespaceId` relation. */ - platformResourcesByNamespaceId?: PlatformNamespaceToManyPlatformResourceFilter; - /** `platformResourcesByNamespaceId` exist. */ - platformResourcesByNamespaceIdExist?: boolean; - /** Filter by the object’s `platformWebhookEndpointsByNamespaceId` relation. */ - platformWebhookEndpointsByNamespaceId?: PlatformNamespaceToManyPlatformWebhookEndpointFilter; - /** `platformWebhookEndpointsByNamespaceId` exist. */ - platformWebhookEndpointsByNamespaceIdExist?: boolean; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; +export type UpdateNamespacePayloadSelect = { + clientMutationId?: boolean; + namespace?: { + select: NamespaceSelect; + }; + namespaceEdge?: { + select: NamespaceEdgeSelect; + }; +}; +export interface DeleteNamespacePayload { + clientMutationId?: string | null; + /** The `Namespace` that was deleted by this mutation. */ + namespace?: Namespace | null; + namespaceEdge?: NamespaceEdge | null; } -// ============ Payload/Return Types (for custom operations) ============ -export interface AddEdgePayload { +export type DeleteNamespacePayloadSelect = { + clientMutationId?: boolean; + namespace?: { + select: NamespaceSelect; + }; + namespaceEdge?: { + select: NamespaceEdgeSelect; + }; +}; +export interface CreateNamespaceEventPayload { clientMutationId?: string | null; - result?: string | null; + /** The `NamespaceEvent` that was created by this mutation. */ + namespaceEvent?: NamespaceEvent | null; + namespaceEventEdge?: NamespaceEventEdge | null; } -export type AddEdgePayloadSelect = { +export type CreateNamespaceEventPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + namespaceEvent?: { + select: NamespaceEventSelect; + }; + namespaceEventEdge?: { + select: NamespaceEventEdgeSelect; + }; }; -export interface AddEdgeAndSavePayload { +export interface UpdateNamespaceEventPayload { clientMutationId?: string | null; - result?: string | null; + /** The `NamespaceEvent` that was updated by this mutation. */ + namespaceEvent?: NamespaceEvent | null; + namespaceEventEdge?: NamespaceEventEdge | null; } -export type AddEdgeAndSavePayloadSelect = { +export type UpdateNamespaceEventPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + namespaceEvent?: { + select: NamespaceEventSelect; + }; + namespaceEventEdge?: { + select: NamespaceEventEdgeSelect; + }; }; -export interface AddNodePayload { +export interface DeleteNamespaceEventPayload { clientMutationId?: string | null; - result?: string | null; + /** The `NamespaceEvent` that was deleted by this mutation. */ + namespaceEvent?: NamespaceEvent | null; + namespaceEventEdge?: NamespaceEventEdge | null; } -export type AddNodePayloadSelect = { +export type DeleteNamespaceEventPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + namespaceEvent?: { + select: NamespaceEventSelect; + }; + namespaceEventEdge?: { + select: NamespaceEventEdgeSelect; + }; }; -export interface AddNodeAndSavePayload { +export interface CreatePlatformBuildPayload { clientMutationId?: string | null; - result?: string | null; + /** The `PlatformBuild` that was created by this mutation. */ + platformBuild?: PlatformBuild | null; + platformBuildEdge?: PlatformBuildEdge | null; } -export type AddNodeAndSavePayloadSelect = { +export type CreatePlatformBuildPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + platformBuild?: { + select: PlatformBuildSelect; + }; + platformBuildEdge?: { + select: PlatformBuildEdgeSelect; + }; }; -export interface CopyGraphPayload { +export interface UpdatePlatformBuildPayload { clientMutationId?: string | null; - result?: string | null; + /** The `PlatformBuild` that was updated by this mutation. */ + platformBuild?: PlatformBuild | null; + platformBuildEdge?: PlatformBuildEdge | null; } -export type CopyGraphPayloadSelect = { +export type UpdatePlatformBuildPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + platformBuild?: { + select: PlatformBuildSelect; + }; + platformBuildEdge?: { + select: PlatformBuildEdgeSelect; + }; }; -export interface ImportDefinitionsPayload { +export interface DeletePlatformBuildPayload { clientMutationId?: string | null; + /** The `PlatformBuild` that was deleted by this mutation. */ + platformBuild?: PlatformBuild | null; + platformBuildEdge?: PlatformBuildEdge | null; } -export type ImportDefinitionsPayloadSelect = { +export type DeletePlatformBuildPayloadSelect = { clientMutationId?: boolean; + platformBuild?: { + select: PlatformBuildSelect; + }; + platformBuildEdge?: { + select: PlatformBuildEdgeSelect; + }; }; -export interface ImportGraphJsonPayload { +export interface CreatePlatformBuildStepPayload { clientMutationId?: string | null; - result?: string | null; + /** The `PlatformBuildStep` that was created by this mutation. */ + platformBuildStep?: PlatformBuildStep | null; + platformBuildStepEdge?: PlatformBuildStepEdge | null; } -export type ImportGraphJsonPayloadSelect = { +export type CreatePlatformBuildStepPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + platformBuildStep?: { + select: PlatformBuildStepSelect; + }; + platformBuildStepEdge?: { + select: PlatformBuildStepEdgeSelect; + }; }; -export interface InfraInitEmptyRepoPayload { +export interface UpdatePlatformBuildStepPayload { clientMutationId?: string | null; + /** The `PlatformBuildStep` that was updated by this mutation. */ + platformBuildStep?: PlatformBuildStep | null; + platformBuildStepEdge?: PlatformBuildStepEdge | null; } -export type InfraInitEmptyRepoPayloadSelect = { +export type UpdatePlatformBuildStepPayloadSelect = { clientMutationId?: boolean; + platformBuildStep?: { + select: PlatformBuildStepSelect; + }; + platformBuildStepEdge?: { + select: PlatformBuildStepEdgeSelect; + }; }; -export interface InfraInsertNodeAtPathPayload { +export interface DeletePlatformBuildStepPayload { clientMutationId?: string | null; - result?: string | null; + /** The `PlatformBuildStep` that was deleted by this mutation. */ + platformBuildStep?: PlatformBuildStep | null; + platformBuildStepEdge?: PlatformBuildStepEdge | null; } -export type InfraInsertNodeAtPathPayloadSelect = { +export type DeletePlatformBuildStepPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + platformBuildStep?: { + select: PlatformBuildStepSelect; + }; + platformBuildStepEdge?: { + select: PlatformBuildStepEdgeSelect; + }; }; -export interface InfraSetDataAtPathPayload { +export interface CreatePlatformBuilderBindingPayload { clientMutationId?: string | null; - result?: string | null; + /** The `PlatformBuilderBinding` that was created by this mutation. */ + platformBuilderBinding?: PlatformBuilderBinding | null; + platformBuilderBindingEdge?: PlatformBuilderBindingEdge | null; } -export type InfraSetDataAtPathPayloadSelect = { +export type CreatePlatformBuilderBindingPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + platformBuilderBinding?: { + select: PlatformBuilderBindingSelect; + }; + platformBuilderBindingEdge?: { + select: PlatformBuilderBindingEdgeSelect; + }; }; -export interface InitEmptyRepoPayload { +export interface UpdatePlatformBuilderBindingPayload { clientMutationId?: string | null; + /** The `PlatformBuilderBinding` that was updated by this mutation. */ + platformBuilderBinding?: PlatformBuilderBinding | null; + platformBuilderBindingEdge?: PlatformBuilderBindingEdge | null; } -export type InitEmptyRepoPayloadSelect = { +export type UpdatePlatformBuilderBindingPayloadSelect = { clientMutationId?: boolean; + platformBuilderBinding?: { + select: PlatformBuilderBindingSelect; + }; + platformBuilderBindingEdge?: { + select: PlatformBuilderBindingEdgeSelect; + }; }; -export interface InsertNodeAtPathPayload { +export interface DeletePlatformBuilderBindingPayload { clientMutationId?: string | null; - result?: string | null; + /** The `PlatformBuilderBinding` that was deleted by this mutation. */ + platformBuilderBinding?: PlatformBuilderBinding | null; + platformBuilderBindingEdge?: PlatformBuilderBindingEdge | null; } -export type InsertNodeAtPathPayloadSelect = { +export type DeletePlatformBuilderBindingPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + platformBuilderBinding?: { + select: PlatformBuilderBindingSelect; + }; + platformBuilderBindingEdge?: { + select: PlatformBuilderBindingEdgeSelect; + }; }; -export interface PlatformInfraInitEmptyRepoPayload { +export interface CreatePlatformFunctionApiBindingPayload { clientMutationId?: string | null; + /** The `PlatformFunctionApiBinding` that was created by this mutation. */ + platformFunctionApiBinding?: PlatformFunctionApiBinding | null; + platformFunctionApiBindingEdge?: PlatformFunctionApiBindingEdge | null; } -export type PlatformInfraInitEmptyRepoPayloadSelect = { +export type CreatePlatformFunctionApiBindingPayloadSelect = { clientMutationId?: boolean; + platformFunctionApiBinding?: { + select: PlatformFunctionApiBindingSelect; + }; + platformFunctionApiBindingEdge?: { + select: PlatformFunctionApiBindingEdgeSelect; + }; }; -export interface PlatformInfraInsertNodeAtPathPayload { +export interface UpdatePlatformFunctionApiBindingPayload { clientMutationId?: string | null; - result?: string | null; + /** The `PlatformFunctionApiBinding` that was updated by this mutation. */ + platformFunctionApiBinding?: PlatformFunctionApiBinding | null; + platformFunctionApiBindingEdge?: PlatformFunctionApiBindingEdge | null; } -export type PlatformInfraInsertNodeAtPathPayloadSelect = { +export type UpdatePlatformFunctionApiBindingPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + platformFunctionApiBinding?: { + select: PlatformFunctionApiBindingSelect; + }; + platformFunctionApiBindingEdge?: { + select: PlatformFunctionApiBindingEdgeSelect; + }; }; -export interface PlatformInfraSetDataAtPathPayload { +export interface DeletePlatformFunctionApiBindingPayload { clientMutationId?: string | null; - result?: string | null; + /** The `PlatformFunctionApiBinding` that was deleted by this mutation. */ + platformFunctionApiBinding?: PlatformFunctionApiBinding | null; + platformFunctionApiBindingEdge?: PlatformFunctionApiBindingEdge | null; } -export type PlatformInfraSetDataAtPathPayloadSelect = { +export type DeletePlatformFunctionApiBindingPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + platformFunctionApiBinding?: { + select: PlatformFunctionApiBindingSelect; + }; + platformFunctionApiBindingEdge?: { + select: PlatformFunctionApiBindingEdgeSelect; + }; }; -export interface PlatformResourceInstallationsInstallPayload { +export interface CreatePlatformFunctionCapabilityBindingPayload { clientMutationId?: string | null; - result?: string | null; + /** The `PlatformFunctionCapabilityBinding` that was created by this mutation. */ + platformFunctionCapabilityBinding?: PlatformFunctionCapabilityBinding | null; + platformFunctionCapabilityBindingEdge?: PlatformFunctionCapabilityBindingEdge | null; } -export type PlatformResourceInstallationsInstallPayloadSelect = { +export type CreatePlatformFunctionCapabilityBindingPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + platformFunctionCapabilityBinding?: { + select: PlatformFunctionCapabilityBindingSelect; + }; + platformFunctionCapabilityBindingEdge?: { + select: PlatformFunctionCapabilityBindingEdgeSelect; + }; +}; +export interface UpdatePlatformFunctionCapabilityBindingPayload { + clientMutationId?: string | null; + /** The `PlatformFunctionCapabilityBinding` that was updated by this mutation. */ + platformFunctionCapabilityBinding?: PlatformFunctionCapabilityBinding | null; + platformFunctionCapabilityBindingEdge?: PlatformFunctionCapabilityBindingEdge | null; +} +export type UpdatePlatformFunctionCapabilityBindingPayloadSelect = { + clientMutationId?: boolean; + platformFunctionCapabilityBinding?: { + select: PlatformFunctionCapabilityBindingSelect; + }; + platformFunctionCapabilityBindingEdge?: { + select: PlatformFunctionCapabilityBindingEdgeSelect; + }; +}; +export interface DeletePlatformFunctionCapabilityBindingPayload { + clientMutationId?: string | null; + /** The `PlatformFunctionCapabilityBinding` that was deleted by this mutation. */ + platformFunctionCapabilityBinding?: PlatformFunctionCapabilityBinding | null; + platformFunctionCapabilityBindingEdge?: PlatformFunctionCapabilityBindingEdge | null; +} +export type DeletePlatformFunctionCapabilityBindingPayloadSelect = { + clientMutationId?: boolean; + platformFunctionCapabilityBinding?: { + select: PlatformFunctionCapabilityBindingSelect; + }; + platformFunctionCapabilityBindingEdge?: { + select: PlatformFunctionCapabilityBindingEdgeSelect; + }; }; -export interface PlatformResourceInstallationsRollbackPayload { +export interface CreatePlatformFunctionDefinitionPayload { clientMutationId?: string | null; + /** The `PlatformFunctionDefinition` that was created by this mutation. */ + platformFunctionDefinition?: PlatformFunctionDefinition | null; + platformFunctionDefinitionEdge?: PlatformFunctionDefinitionEdge | null; } -export type PlatformResourceInstallationsRollbackPayloadSelect = { +export type CreatePlatformFunctionDefinitionPayloadSelect = { clientMutationId?: boolean; + platformFunctionDefinition?: { + select: PlatformFunctionDefinitionSelect; + }; + platformFunctionDefinitionEdge?: { + select: PlatformFunctionDefinitionEdgeSelect; + }; }; -export interface PlatformResourceInstallationsUninstallPayload { +export interface UpdatePlatformFunctionDefinitionPayload { clientMutationId?: string | null; + /** The `PlatformFunctionDefinition` that was updated by this mutation. */ + platformFunctionDefinition?: PlatformFunctionDefinition | null; + platformFunctionDefinitionEdge?: PlatformFunctionDefinitionEdge | null; } -export type PlatformResourceInstallationsUninstallPayloadSelect = { +export type UpdatePlatformFunctionDefinitionPayloadSelect = { clientMutationId?: boolean; + platformFunctionDefinition?: { + select: PlatformFunctionDefinitionSelect; + }; + platformFunctionDefinitionEdge?: { + select: PlatformFunctionDefinitionEdgeSelect; + }; }; -export interface PlatformResourceInstallationsUpgradePayload { +export interface DeletePlatformFunctionDefinitionPayload { clientMutationId?: string | null; + /** The `PlatformFunctionDefinition` that was deleted by this mutation. */ + platformFunctionDefinition?: PlatformFunctionDefinition | null; + platformFunctionDefinitionEdge?: PlatformFunctionDefinitionEdge | null; } -export type PlatformResourceInstallationsUpgradePayloadSelect = { +export type DeletePlatformFunctionDefinitionPayloadSelect = { clientMutationId?: boolean; + platformFunctionDefinition?: { + select: PlatformFunctionDefinitionSelect; + }; + platformFunctionDefinitionEdge?: { + select: PlatformFunctionDefinitionEdgeSelect; + }; }; -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 interface CreatePlatformFunctionDeploymentPayload { + clientMutationId?: string | null; + /** The `PlatformFunctionDeployment` that was created by this mutation. */ + platformFunctionDeployment?: PlatformFunctionDeployment | null; + platformFunctionDeploymentEdge?: PlatformFunctionDeploymentEdge | null; } -export type ProvisionBucketPayloadSelect = { - accessType?: boolean; - bucketName?: boolean; - endpoint?: boolean; - error?: boolean; - provider?: boolean; - success?: boolean; +export type CreatePlatformFunctionDeploymentPayloadSelect = { + clientMutationId?: boolean; + platformFunctionDeployment?: { + select: PlatformFunctionDeploymentSelect; + }; + platformFunctionDeploymentEdge?: { + select: PlatformFunctionDeploymentEdgeSelect; + }; }; -export interface ResourceInstallationsInstallPayload { +export interface UpdatePlatformFunctionDeploymentPayload { clientMutationId?: string | null; - result?: string | null; + /** The `PlatformFunctionDeployment` that was updated by this mutation. */ + platformFunctionDeployment?: PlatformFunctionDeployment | null; + platformFunctionDeploymentEdge?: PlatformFunctionDeploymentEdge | null; } -export type ResourceInstallationsInstallPayloadSelect = { +export type UpdatePlatformFunctionDeploymentPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + platformFunctionDeployment?: { + select: PlatformFunctionDeploymentSelect; + }; + platformFunctionDeploymentEdge?: { + select: PlatformFunctionDeploymentEdgeSelect; + }; }; -export interface ResourceInstallationsRollbackPayload { +export interface DeletePlatformFunctionDeploymentPayload { clientMutationId?: string | null; + /** The `PlatformFunctionDeployment` that was deleted by this mutation. */ + platformFunctionDeployment?: PlatformFunctionDeployment | null; + platformFunctionDeploymentEdge?: PlatformFunctionDeploymentEdge | null; } -export type ResourceInstallationsRollbackPayloadSelect = { +export type DeletePlatformFunctionDeploymentPayloadSelect = { clientMutationId?: boolean; + platformFunctionDeployment?: { + select: PlatformFunctionDeploymentSelect; + }; + platformFunctionDeploymentEdge?: { + select: PlatformFunctionDeploymentEdgeSelect; + }; }; -export interface ResourceInstallationsUninstallPayload { +export interface CreatePlatformFunctionDeploymentEventPayload { clientMutationId?: string | null; + /** The `PlatformFunctionDeploymentEvent` that was created by this mutation. */ + platformFunctionDeploymentEvent?: PlatformFunctionDeploymentEvent | null; + platformFunctionDeploymentEventEdge?: PlatformFunctionDeploymentEventEdge | null; } -export type ResourceInstallationsUninstallPayloadSelect = { +export type CreatePlatformFunctionDeploymentEventPayloadSelect = { clientMutationId?: boolean; + platformFunctionDeploymentEvent?: { + select: PlatformFunctionDeploymentEventSelect; + }; + platformFunctionDeploymentEventEdge?: { + select: PlatformFunctionDeploymentEventEdgeSelect; + }; }; -export interface ResourceInstallationsUpgradePayload { +export interface UpdatePlatformFunctionDeploymentEventPayload { clientMutationId?: string | null; + /** The `PlatformFunctionDeploymentEvent` that was updated by this mutation. */ + platformFunctionDeploymentEvent?: PlatformFunctionDeploymentEvent | null; + platformFunctionDeploymentEventEdge?: PlatformFunctionDeploymentEventEdge | null; } -export type ResourceInstallationsUpgradePayloadSelect = { +export type UpdatePlatformFunctionDeploymentEventPayloadSelect = { clientMutationId?: boolean; + platformFunctionDeploymentEvent?: { + select: PlatformFunctionDeploymentEventSelect; + }; + platformFunctionDeploymentEventEdge?: { + select: PlatformFunctionDeploymentEventEdgeSelect; + }; }; -export interface SaveGraphPayload { +export interface DeletePlatformFunctionDeploymentEventPayload { clientMutationId?: string | null; - result?: string | null; + /** The `PlatformFunctionDeploymentEvent` that was deleted by this mutation. */ + platformFunctionDeploymentEvent?: PlatformFunctionDeploymentEvent | null; + platformFunctionDeploymentEventEdge?: PlatformFunctionDeploymentEventEdge | null; } -export type SaveGraphPayloadSelect = { +export type DeletePlatformFunctionDeploymentEventPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + platformFunctionDeploymentEvent?: { + select: PlatformFunctionDeploymentEventSelect; + }; + platformFunctionDeploymentEventEdge?: { + select: PlatformFunctionDeploymentEventEdgeSelect; + }; }; -export interface SetDataAtPathPayload { +export interface CreatePlatformFunctionExecutionLogPayload { clientMutationId?: string | null; - result?: string | null; + /** The `PlatformFunctionExecutionLog` that was created by this mutation. */ + platformFunctionExecutionLog?: PlatformFunctionExecutionLog | null; + platformFunctionExecutionLogEdge?: PlatformFunctionExecutionLogEdge | null; } -export type SetDataAtPathPayloadSelect = { +export type CreatePlatformFunctionExecutionLogPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + platformFunctionExecutionLog?: { + select: PlatformFunctionExecutionLogSelect; + }; + platformFunctionExecutionLogEdge?: { + select: PlatformFunctionExecutionLogEdgeSelect; + }; }; -export interface StartExecutionPayload { +export interface UpdatePlatformFunctionExecutionLogPayload { clientMutationId?: string | null; - result?: string | null; + /** The `PlatformFunctionExecutionLog` that was updated by this mutation. */ + platformFunctionExecutionLog?: PlatformFunctionExecutionLog | null; + platformFunctionExecutionLogEdge?: PlatformFunctionExecutionLogEdge | null; } -export type StartExecutionPayloadSelect = { +export type UpdatePlatformFunctionExecutionLogPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + platformFunctionExecutionLog?: { + select: PlatformFunctionExecutionLogSelect; + }; + platformFunctionExecutionLogEdge?: { + select: PlatformFunctionExecutionLogEdgeSelect; + }; }; -export interface ValidateFunctionGraphPayload { +export interface DeletePlatformFunctionExecutionLogPayload { clientMutationId?: string | null; - result?: boolean | null; + /** The `PlatformFunctionExecutionLog` that was deleted by this mutation. */ + platformFunctionExecutionLog?: PlatformFunctionExecutionLog | null; + platformFunctionExecutionLogEdge?: PlatformFunctionExecutionLogEdge | null; } -export type ValidateFunctionGraphPayloadSelect = { +export type DeletePlatformFunctionExecutionLogPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + platformFunctionExecutionLog?: { + select: PlatformFunctionExecutionLogSelect; + }; + platformFunctionExecutionLogEdge?: { + select: PlatformFunctionExecutionLogEdgeSelect; + }; }; -export interface CreateDbPresetPayload { +export interface CreatePlatformFunctionInvocationAttemptPayload { clientMutationId?: string | null; - /** The `DbPreset` that was created by this mutation. */ - dbPreset?: DbPreset | null; - dbPresetEdge?: DbPresetEdge | null; + /** The `PlatformFunctionInvocationAttempt` that was created by this mutation. */ + platformFunctionInvocationAttempt?: PlatformFunctionInvocationAttempt | null; + platformFunctionInvocationAttemptEdge?: PlatformFunctionInvocationAttemptEdge | null; } -export type CreateDbPresetPayloadSelect = { +export type CreatePlatformFunctionInvocationAttemptPayloadSelect = { clientMutationId?: boolean; - dbPreset?: { - select: DbPresetSelect; + platformFunctionInvocationAttempt?: { + select: PlatformFunctionInvocationAttemptSelect; }; - dbPresetEdge?: { - select: DbPresetEdgeSelect; + platformFunctionInvocationAttemptEdge?: { + select: PlatformFunctionInvocationAttemptEdgeSelect; }; }; -export interface UpdateDbPresetPayload { +export interface UpdatePlatformFunctionInvocationAttemptPayload { clientMutationId?: string | null; - /** The `DbPreset` that was updated by this mutation. */ - dbPreset?: DbPreset | null; - dbPresetEdge?: DbPresetEdge | null; + /** The `PlatformFunctionInvocationAttempt` that was updated by this mutation. */ + platformFunctionInvocationAttempt?: PlatformFunctionInvocationAttempt | null; + platformFunctionInvocationAttemptEdge?: PlatformFunctionInvocationAttemptEdge | null; } -export type UpdateDbPresetPayloadSelect = { +export type UpdatePlatformFunctionInvocationAttemptPayloadSelect = { clientMutationId?: boolean; - dbPreset?: { - select: DbPresetSelect; + platformFunctionInvocationAttempt?: { + select: PlatformFunctionInvocationAttemptSelect; }; - dbPresetEdge?: { - select: DbPresetEdgeSelect; + platformFunctionInvocationAttemptEdge?: { + select: PlatformFunctionInvocationAttemptEdgeSelect; }; }; -export interface DeleteDbPresetPayload { +export interface DeletePlatformFunctionInvocationAttemptPayload { clientMutationId?: string | null; - /** The `DbPreset` that was deleted by this mutation. */ - dbPreset?: DbPreset | null; - dbPresetEdge?: DbPresetEdge | null; + /** The `PlatformFunctionInvocationAttempt` that was deleted by this mutation. */ + platformFunctionInvocationAttempt?: PlatformFunctionInvocationAttempt | null; + platformFunctionInvocationAttemptEdge?: PlatformFunctionInvocationAttemptEdge | null; } -export type DeleteDbPresetPayloadSelect = { +export type DeletePlatformFunctionInvocationAttemptPayloadSelect = { clientMutationId?: boolean; - dbPreset?: { - select: DbPresetSelect; + platformFunctionInvocationAttempt?: { + select: PlatformFunctionInvocationAttemptSelect; }; - dbPresetEdge?: { - select: DbPresetEdgeSelect; + platformFunctionInvocationAttemptEdge?: { + select: PlatformFunctionInvocationAttemptEdgeSelect; }; }; -export interface CreateFunctionApiBindingPayload { +export interface CreatePlatformFunctionInvocationPayload { clientMutationId?: string | null; - /** The `FunctionApiBinding` that was created by this mutation. */ - functionApiBinding?: FunctionApiBinding | null; - functionApiBindingEdge?: FunctionApiBindingEdge | null; + /** The `PlatformFunctionInvocation` that was created by this mutation. */ + platformFunctionInvocation?: PlatformFunctionInvocation | null; + platformFunctionInvocationEdge?: PlatformFunctionInvocationEdge | null; } -export type CreateFunctionApiBindingPayloadSelect = { +export type CreatePlatformFunctionInvocationPayloadSelect = { clientMutationId?: boolean; - functionApiBinding?: { - select: FunctionApiBindingSelect; + platformFunctionInvocation?: { + select: PlatformFunctionInvocationSelect; }; - functionApiBindingEdge?: { - select: FunctionApiBindingEdgeSelect; + platformFunctionInvocationEdge?: { + select: PlatformFunctionInvocationEdgeSelect; }; }; -export interface UpdateFunctionApiBindingPayload { +export interface UpdatePlatformFunctionInvocationPayload { clientMutationId?: string | null; - /** The `FunctionApiBinding` that was updated by this mutation. */ - functionApiBinding?: FunctionApiBinding | null; - functionApiBindingEdge?: FunctionApiBindingEdge | null; + /** The `PlatformFunctionInvocation` that was updated by this mutation. */ + platformFunctionInvocation?: PlatformFunctionInvocation | null; + platformFunctionInvocationEdge?: PlatformFunctionInvocationEdge | null; } -export type UpdateFunctionApiBindingPayloadSelect = { +export type UpdatePlatformFunctionInvocationPayloadSelect = { clientMutationId?: boolean; - functionApiBinding?: { - select: FunctionApiBindingSelect; + platformFunctionInvocation?: { + select: PlatformFunctionInvocationSelect; }; - functionApiBindingEdge?: { - select: FunctionApiBindingEdgeSelect; + platformFunctionInvocationEdge?: { + select: PlatformFunctionInvocationEdgeSelect; }; }; -export interface DeleteFunctionApiBindingPayload { +export interface DeletePlatformFunctionInvocationPayload { clientMutationId?: string | null; - /** The `FunctionApiBinding` that was deleted by this mutation. */ - functionApiBinding?: FunctionApiBinding | null; - functionApiBindingEdge?: FunctionApiBindingEdge | null; + /** The `PlatformFunctionInvocation` that was deleted by this mutation. */ + platformFunctionInvocation?: PlatformFunctionInvocation | null; + platformFunctionInvocationEdge?: PlatformFunctionInvocationEdge | null; } -export type DeleteFunctionApiBindingPayloadSelect = { +export type DeletePlatformFunctionInvocationPayloadSelect = { clientMutationId?: boolean; - functionApiBinding?: { - select: FunctionApiBindingSelect; + platformFunctionInvocation?: { + select: PlatformFunctionInvocationSelect; }; - functionApiBindingEdge?: { - select: FunctionApiBindingEdgeSelect; + platformFunctionInvocationEdge?: { + select: PlatformFunctionInvocationEdgeSelect; }; }; -export interface CreateFunctionCapabilityBindingPayload { +export interface CreatePlatformImagePayload { clientMutationId?: string | null; - /** The `FunctionCapabilityBinding` that was created by this mutation. */ - functionCapabilityBinding?: FunctionCapabilityBinding | null; - functionCapabilityBindingEdge?: FunctionCapabilityBindingEdge | null; + /** The `PlatformImage` that was created by this mutation. */ + platformImage?: PlatformImage | null; + platformImageEdge?: PlatformImageEdge | null; } -export type CreateFunctionCapabilityBindingPayloadSelect = { +export type CreatePlatformImagePayloadSelect = { clientMutationId?: boolean; - functionCapabilityBinding?: { - select: FunctionCapabilityBindingSelect; + platformImage?: { + select: PlatformImageSelect; }; - functionCapabilityBindingEdge?: { - select: FunctionCapabilityBindingEdgeSelect; + platformImageEdge?: { + select: PlatformImageEdgeSelect; }; }; -export interface UpdateFunctionCapabilityBindingPayload { +export interface UpdatePlatformImagePayload { clientMutationId?: string | null; - /** The `FunctionCapabilityBinding` that was updated by this mutation. */ - functionCapabilityBinding?: FunctionCapabilityBinding | null; - functionCapabilityBindingEdge?: FunctionCapabilityBindingEdge | null; + /** The `PlatformImage` that was updated by this mutation. */ + platformImage?: PlatformImage | null; + platformImageEdge?: PlatformImageEdge | null; } -export type UpdateFunctionCapabilityBindingPayloadSelect = { +export type UpdatePlatformImagePayloadSelect = { clientMutationId?: boolean; - functionCapabilityBinding?: { - select: FunctionCapabilityBindingSelect; + platformImage?: { + select: PlatformImageSelect; }; - functionCapabilityBindingEdge?: { - select: FunctionCapabilityBindingEdgeSelect; + platformImageEdge?: { + select: PlatformImageEdgeSelect; }; }; -export interface DeleteFunctionCapabilityBindingPayload { +export interface DeletePlatformImagePayload { clientMutationId?: string | null; - /** The `FunctionCapabilityBinding` that was deleted by this mutation. */ - functionCapabilityBinding?: FunctionCapabilityBinding | null; - functionCapabilityBindingEdge?: FunctionCapabilityBindingEdge | null; + /** The `PlatformImage` that was deleted by this mutation. */ + platformImage?: PlatformImage | null; + platformImageEdge?: PlatformImageEdge | null; } -export type DeleteFunctionCapabilityBindingPayloadSelect = { +export type DeletePlatformImagePayloadSelect = { clientMutationId?: boolean; - functionCapabilityBinding?: { - select: FunctionCapabilityBindingSelect; + platformImage?: { + select: PlatformImageSelect; }; - functionCapabilityBindingEdge?: { - select: FunctionCapabilityBindingEdgeSelect; + platformImageEdge?: { + select: PlatformImageEdgeSelect; }; }; -export interface CreateFunctionDefinitionPayload { +export interface CreatePlatformImageGrantPayload { clientMutationId?: string | null; - /** The `FunctionDefinition` that was created by this mutation. */ - functionDefinition?: FunctionDefinition | null; - functionDefinitionEdge?: FunctionDefinitionEdge | null; + /** The `PlatformImageGrant` that was created by this mutation. */ + platformImageGrant?: PlatformImageGrant | null; + platformImageGrantEdge?: PlatformImageGrantEdge | null; } -export type CreateFunctionDefinitionPayloadSelect = { +export type CreatePlatformImageGrantPayloadSelect = { clientMutationId?: boolean; - functionDefinition?: { - select: FunctionDefinitionSelect; + platformImageGrant?: { + select: PlatformImageGrantSelect; }; - functionDefinitionEdge?: { - select: FunctionDefinitionEdgeSelect; + platformImageGrantEdge?: { + select: PlatformImageGrantEdgeSelect; }; }; -export interface UpdateFunctionDefinitionPayload { +export interface UpdatePlatformImageGrantPayload { clientMutationId?: string | null; - /** The `FunctionDefinition` that was updated by this mutation. */ - functionDefinition?: FunctionDefinition | null; - functionDefinitionEdge?: FunctionDefinitionEdge | null; + /** The `PlatformImageGrant` that was updated by this mutation. */ + platformImageGrant?: PlatformImageGrant | null; + platformImageGrantEdge?: PlatformImageGrantEdge | null; } -export type UpdateFunctionDefinitionPayloadSelect = { +export type UpdatePlatformImageGrantPayloadSelect = { clientMutationId?: boolean; - functionDefinition?: { - select: FunctionDefinitionSelect; + platformImageGrant?: { + select: PlatformImageGrantSelect; }; - functionDefinitionEdge?: { - select: FunctionDefinitionEdgeSelect; + platformImageGrantEdge?: { + select: PlatformImageGrantEdgeSelect; }; }; -export interface DeleteFunctionDefinitionPayload { +export interface DeletePlatformImageGrantPayload { clientMutationId?: string | null; - /** The `FunctionDefinition` that was deleted by this mutation. */ - functionDefinition?: FunctionDefinition | null; - functionDefinitionEdge?: FunctionDefinitionEdge | null; + /** The `PlatformImageGrant` that was deleted by this mutation. */ + platformImageGrant?: PlatformImageGrant | null; + platformImageGrantEdge?: PlatformImageGrantEdge | null; } -export type DeleteFunctionDefinitionPayloadSelect = { +export type DeletePlatformImageGrantPayloadSelect = { clientMutationId?: boolean; - functionDefinition?: { - select: FunctionDefinitionSelect; + platformImageGrant?: { + select: PlatformImageGrantSelect; }; - functionDefinitionEdge?: { - select: FunctionDefinitionEdgeSelect; + platformImageGrantEdge?: { + select: PlatformImageGrantEdgeSelect; }; }; -export interface CreateFunctionDeploymentPayload { +export interface CreatePlatformInfraCommitPayload { clientMutationId?: string | null; - /** The `FunctionDeployment` that was created by this mutation. */ - functionDeployment?: FunctionDeployment | null; - functionDeploymentEdge?: FunctionDeploymentEdge | null; + /** The `PlatformInfraCommit` that was created by this mutation. */ + platformInfraCommit?: PlatformInfraCommit | null; + platformInfraCommitEdge?: PlatformInfraCommitEdge | null; } -export type CreateFunctionDeploymentPayloadSelect = { +export type CreatePlatformInfraCommitPayloadSelect = { clientMutationId?: boolean; - functionDeployment?: { - select: FunctionDeploymentSelect; + platformInfraCommit?: { + select: PlatformInfraCommitSelect; }; - functionDeploymentEdge?: { - select: FunctionDeploymentEdgeSelect; + platformInfraCommitEdge?: { + select: PlatformInfraCommitEdgeSelect; }; }; -export interface UpdateFunctionDeploymentPayload { +export interface UpdatePlatformInfraCommitPayload { clientMutationId?: string | null; - /** The `FunctionDeployment` that was updated by this mutation. */ - functionDeployment?: FunctionDeployment | null; - functionDeploymentEdge?: FunctionDeploymentEdge | null; + /** The `PlatformInfraCommit` that was updated by this mutation. */ + platformInfraCommit?: PlatformInfraCommit | null; + platformInfraCommitEdge?: PlatformInfraCommitEdge | null; } -export type UpdateFunctionDeploymentPayloadSelect = { +export type UpdatePlatformInfraCommitPayloadSelect = { clientMutationId?: boolean; - functionDeployment?: { - select: FunctionDeploymentSelect; + platformInfraCommit?: { + select: PlatformInfraCommitSelect; }; - functionDeploymentEdge?: { - select: FunctionDeploymentEdgeSelect; + platformInfraCommitEdge?: { + select: PlatformInfraCommitEdgeSelect; }; }; -export interface DeleteFunctionDeploymentPayload { +export interface DeletePlatformInfraCommitPayload { clientMutationId?: string | null; - /** The `FunctionDeployment` that was deleted by this mutation. */ - functionDeployment?: FunctionDeployment | null; - functionDeploymentEdge?: FunctionDeploymentEdge | null; + /** The `PlatformInfraCommit` that was deleted by this mutation. */ + platformInfraCommit?: PlatformInfraCommit | null; + platformInfraCommitEdge?: PlatformInfraCommitEdge | null; } -export type DeleteFunctionDeploymentPayloadSelect = { +export type DeletePlatformInfraCommitPayloadSelect = { clientMutationId?: boolean; - functionDeployment?: { - select: FunctionDeploymentSelect; + platformInfraCommit?: { + select: PlatformInfraCommitSelect; }; - functionDeploymentEdge?: { - select: FunctionDeploymentEdgeSelect; + platformInfraCommitEdge?: { + select: PlatformInfraCommitEdgeSelect; }; }; -export interface CreateFunctionDeploymentEventPayload { +export interface CreatePlatformInfraObjectPayload { clientMutationId?: string | null; - /** The `FunctionDeploymentEvent` that was created by this mutation. */ - functionDeploymentEvent?: FunctionDeploymentEvent | null; - functionDeploymentEventEdge?: FunctionDeploymentEventEdge | null; + /** The `PlatformInfraObject` that was created by this mutation. */ + platformInfraObject?: PlatformInfraObject | null; + platformInfraObjectEdge?: PlatformInfraObjectEdge | null; } -export type CreateFunctionDeploymentEventPayloadSelect = { +export type CreatePlatformInfraObjectPayloadSelect = { clientMutationId?: boolean; - functionDeploymentEvent?: { - select: FunctionDeploymentEventSelect; + platformInfraObject?: { + select: PlatformInfraObjectSelect; }; - functionDeploymentEventEdge?: { - select: FunctionDeploymentEventEdgeSelect; + platformInfraObjectEdge?: { + select: PlatformInfraObjectEdgeSelect; }; }; -export interface UpdateFunctionDeploymentEventPayload { +export interface UpdatePlatformInfraObjectPayload { clientMutationId?: string | null; - /** The `FunctionDeploymentEvent` that was updated by this mutation. */ - functionDeploymentEvent?: FunctionDeploymentEvent | null; - functionDeploymentEventEdge?: FunctionDeploymentEventEdge | null; + /** The `PlatformInfraObject` that was updated by this mutation. */ + platformInfraObject?: PlatformInfraObject | null; + platformInfraObjectEdge?: PlatformInfraObjectEdge | null; } -export type UpdateFunctionDeploymentEventPayloadSelect = { +export type UpdatePlatformInfraObjectPayloadSelect = { clientMutationId?: boolean; - functionDeploymentEvent?: { - select: FunctionDeploymentEventSelect; + platformInfraObject?: { + select: PlatformInfraObjectSelect; }; - functionDeploymentEventEdge?: { - select: FunctionDeploymentEventEdgeSelect; + platformInfraObjectEdge?: { + select: PlatformInfraObjectEdgeSelect; }; }; -export interface DeleteFunctionDeploymentEventPayload { +export interface DeletePlatformInfraObjectPayload { clientMutationId?: string | null; - /** The `FunctionDeploymentEvent` that was deleted by this mutation. */ - functionDeploymentEvent?: FunctionDeploymentEvent | null; - functionDeploymentEventEdge?: FunctionDeploymentEventEdge | null; + /** The `PlatformInfraObject` that was deleted by this mutation. */ + platformInfraObject?: PlatformInfraObject | null; + platformInfraObjectEdge?: PlatformInfraObjectEdge | null; } -export type DeleteFunctionDeploymentEventPayloadSelect = { +export type DeletePlatformInfraObjectPayloadSelect = { clientMutationId?: boolean; - functionDeploymentEvent?: { - select: FunctionDeploymentEventSelect; + platformInfraObject?: { + select: PlatformInfraObjectSelect; }; - functionDeploymentEventEdge?: { - select: FunctionDeploymentEventEdgeSelect; + platformInfraObjectEdge?: { + select: PlatformInfraObjectEdgeSelect; }; }; -export interface CreateFunctionExecutionLogPayload { +export interface CreatePlatformInfraRefPayload { clientMutationId?: string | null; - /** The `FunctionExecutionLog` that was created by this mutation. */ - functionExecutionLog?: FunctionExecutionLog | null; - functionExecutionLogEdge?: FunctionExecutionLogEdge | null; + /** The `PlatformInfraRef` that was created by this mutation. */ + platformInfraRef?: PlatformInfraRef | null; + platformInfraRefEdge?: PlatformInfraRefEdge | null; } -export type CreateFunctionExecutionLogPayloadSelect = { +export type CreatePlatformInfraRefPayloadSelect = { clientMutationId?: boolean; - functionExecutionLog?: { - select: FunctionExecutionLogSelect; + platformInfraRef?: { + select: PlatformInfraRefSelect; }; - functionExecutionLogEdge?: { - select: FunctionExecutionLogEdgeSelect; + platformInfraRefEdge?: { + select: PlatformInfraRefEdgeSelect; }; }; -export interface UpdateFunctionExecutionLogPayload { +export interface UpdatePlatformInfraRefPayload { clientMutationId?: string | null; - /** The `FunctionExecutionLog` that was updated by this mutation. */ - functionExecutionLog?: FunctionExecutionLog | null; - functionExecutionLogEdge?: FunctionExecutionLogEdge | null; + /** The `PlatformInfraRef` that was updated by this mutation. */ + platformInfraRef?: PlatformInfraRef | null; + platformInfraRefEdge?: PlatformInfraRefEdge | null; } -export type UpdateFunctionExecutionLogPayloadSelect = { +export type UpdatePlatformInfraRefPayloadSelect = { clientMutationId?: boolean; - functionExecutionLog?: { - select: FunctionExecutionLogSelect; + platformInfraRef?: { + select: PlatformInfraRefSelect; }; - functionExecutionLogEdge?: { - select: FunctionExecutionLogEdgeSelect; + platformInfraRefEdge?: { + select: PlatformInfraRefEdgeSelect; }; }; -export interface DeleteFunctionExecutionLogPayload { +export interface DeletePlatformInfraRefPayload { clientMutationId?: string | null; - /** The `FunctionExecutionLog` that was deleted by this mutation. */ - functionExecutionLog?: FunctionExecutionLog | null; - functionExecutionLogEdge?: FunctionExecutionLogEdge | null; + /** The `PlatformInfraRef` that was deleted by this mutation. */ + platformInfraRef?: PlatformInfraRef | null; + platformInfraRefEdge?: PlatformInfraRefEdge | null; } -export type DeleteFunctionExecutionLogPayloadSelect = { +export type DeletePlatformInfraRefPayloadSelect = { clientMutationId?: boolean; - functionExecutionLog?: { - select: FunctionExecutionLogSelect; + platformInfraRef?: { + select: PlatformInfraRefSelect; }; - functionExecutionLogEdge?: { - select: FunctionExecutionLogEdgeSelect; + platformInfraRefEdge?: { + select: PlatformInfraRefEdgeSelect; }; }; -export interface CreateFunctionGraphCommitPayload { +export interface CreatePlatformInfraStorePayload { clientMutationId?: string | null; - /** The `FunctionGraphCommit` that was created by this mutation. */ - functionGraphCommit?: FunctionGraphCommit | null; - functionGraphCommitEdge?: FunctionGraphCommitEdge | null; + /** The `PlatformInfraStore` that was created by this mutation. */ + platformInfraStore?: PlatformInfraStore | null; + platformInfraStoreEdge?: PlatformInfraStoreEdge | null; } -export type CreateFunctionGraphCommitPayloadSelect = { - clientMutationId?: boolean; - functionGraphCommit?: { - select: FunctionGraphCommitSelect; +export type CreatePlatformInfraStorePayloadSelect = { + clientMutationId?: boolean; + platformInfraStore?: { + select: PlatformInfraStoreSelect; }; - functionGraphCommitEdge?: { - select: FunctionGraphCommitEdgeSelect; + platformInfraStoreEdge?: { + select: PlatformInfraStoreEdgeSelect; }; }; -export interface UpdateFunctionGraphCommitPayload { +export interface UpdatePlatformInfraStorePayload { clientMutationId?: string | null; - /** The `FunctionGraphCommit` that was updated by this mutation. */ - functionGraphCommit?: FunctionGraphCommit | null; - functionGraphCommitEdge?: FunctionGraphCommitEdge | null; + /** The `PlatformInfraStore` that was updated by this mutation. */ + platformInfraStore?: PlatformInfraStore | null; + platformInfraStoreEdge?: PlatformInfraStoreEdge | null; } -export type UpdateFunctionGraphCommitPayloadSelect = { +export type UpdatePlatformInfraStorePayloadSelect = { clientMutationId?: boolean; - functionGraphCommit?: { - select: FunctionGraphCommitSelect; + platformInfraStore?: { + select: PlatformInfraStoreSelect; }; - functionGraphCommitEdge?: { - select: FunctionGraphCommitEdgeSelect; + platformInfraStoreEdge?: { + select: PlatformInfraStoreEdgeSelect; }; }; -export interface DeleteFunctionGraphCommitPayload { +export interface DeletePlatformInfraStorePayload { clientMutationId?: string | null; - /** The `FunctionGraphCommit` that was deleted by this mutation. */ - functionGraphCommit?: FunctionGraphCommit | null; - functionGraphCommitEdge?: FunctionGraphCommitEdge | null; + /** The `PlatformInfraStore` that was deleted by this mutation. */ + platformInfraStore?: PlatformInfraStore | null; + platformInfraStoreEdge?: PlatformInfraStoreEdge | null; } -export type DeleteFunctionGraphCommitPayloadSelect = { +export type DeletePlatformInfraStorePayloadSelect = { clientMutationId?: boolean; - functionGraphCommit?: { - select: FunctionGraphCommitSelect; + platformInfraStore?: { + select: PlatformInfraStoreSelect; }; - functionGraphCommitEdge?: { - select: FunctionGraphCommitEdgeSelect; + platformInfraStoreEdge?: { + select: PlatformInfraStoreEdgeSelect; }; }; -export interface CreateFunctionGraphPayload { +export interface CreatePlatformK8sResourceKindPayload { clientMutationId?: string | null; - result?: string | null; + /** The `PlatformK8sResourceKind` that was created by this mutation. */ + platformK8sResourceKind?: PlatformK8sResourceKind | null; + platformK8sResourceKindEdge?: PlatformK8sResourceKindEdge | null; } -export type CreateFunctionGraphPayloadSelect = { +export type CreatePlatformK8sResourceKindPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + platformK8sResourceKind?: { + select: PlatformK8sResourceKindSelect; + }; + platformK8sResourceKindEdge?: { + select: PlatformK8sResourceKindEdgeSelect; + }; }; -export interface UpdateFunctionGraphPayload { +export interface UpdatePlatformK8sResourceKindPayload { clientMutationId?: string | null; - /** The `FunctionGraph` that was updated by this mutation. */ - functionGraph?: FunctionGraph | null; - functionGraphEdge?: FunctionGraphEdge | null; + /** The `PlatformK8sResourceKind` that was updated by this mutation. */ + platformK8sResourceKind?: PlatformK8sResourceKind | null; + platformK8sResourceKindEdge?: PlatformK8sResourceKindEdge | null; } -export type UpdateFunctionGraphPayloadSelect = { +export type UpdatePlatformK8sResourceKindPayloadSelect = { clientMutationId?: boolean; - functionGraph?: { - select: FunctionGraphSelect; + platformK8sResourceKind?: { + select: PlatformK8sResourceKindSelect; }; - functionGraphEdge?: { - select: FunctionGraphEdgeSelect; + platformK8sResourceKindEdge?: { + select: PlatformK8sResourceKindEdgeSelect; }; }; -export interface DeleteFunctionGraphPayload { +export interface DeletePlatformK8sResourceKindPayload { clientMutationId?: string | null; - /** The `FunctionGraph` that was deleted by this mutation. */ - functionGraph?: FunctionGraph | null; - functionGraphEdge?: FunctionGraphEdge | null; + /** The `PlatformK8sResourceKind` that was deleted by this mutation. */ + platformK8sResourceKind?: PlatformK8sResourceKind | null; + platformK8sResourceKindEdge?: PlatformK8sResourceKindEdge | null; } -export type DeleteFunctionGraphPayloadSelect = { +export type DeletePlatformK8sResourceKindPayloadSelect = { clientMutationId?: boolean; - functionGraph?: { - select: FunctionGraphSelect; + platformK8sResourceKind?: { + select: PlatformK8sResourceKindSelect; }; - functionGraphEdge?: { - select: FunctionGraphEdgeSelect; + platformK8sResourceKindEdge?: { + select: PlatformK8sResourceKindEdgeSelect; }; }; -export interface CreateFunctionGraphExecutionPayload { +export interface CreatePlatformK8sSpecRulePayload { clientMutationId?: string | null; - /** The `FunctionGraphExecution` that was created by this mutation. */ - functionGraphExecution?: FunctionGraphExecution | null; - functionGraphExecutionEdge?: FunctionGraphExecutionEdge | null; + /** The `PlatformK8sSpecRule` that was created by this mutation. */ + platformK8sSpecRule?: PlatformK8sSpecRule | null; + platformK8sSpecRuleEdge?: PlatformK8sSpecRuleEdge | null; } -export type CreateFunctionGraphExecutionPayloadSelect = { +export type CreatePlatformK8sSpecRulePayloadSelect = { clientMutationId?: boolean; - functionGraphExecution?: { - select: FunctionGraphExecutionSelect; + platformK8sSpecRule?: { + select: PlatformK8sSpecRuleSelect; }; - functionGraphExecutionEdge?: { - select: FunctionGraphExecutionEdgeSelect; + platformK8sSpecRuleEdge?: { + select: PlatformK8sSpecRuleEdgeSelect; }; }; -export interface UpdateFunctionGraphExecutionPayload { +export interface UpdatePlatformK8sSpecRulePayload { clientMutationId?: string | null; - /** The `FunctionGraphExecution` that was updated by this mutation. */ - functionGraphExecution?: FunctionGraphExecution | null; - functionGraphExecutionEdge?: FunctionGraphExecutionEdge | null; + /** The `PlatformK8sSpecRule` that was updated by this mutation. */ + platformK8sSpecRule?: PlatformK8sSpecRule | null; + platformK8sSpecRuleEdge?: PlatformK8sSpecRuleEdge | null; } -export type UpdateFunctionGraphExecutionPayloadSelect = { +export type UpdatePlatformK8sSpecRulePayloadSelect = { clientMutationId?: boolean; - functionGraphExecution?: { - select: FunctionGraphExecutionSelect; + platformK8sSpecRule?: { + select: PlatformK8sSpecRuleSelect; }; - functionGraphExecutionEdge?: { - select: FunctionGraphExecutionEdgeSelect; + platformK8sSpecRuleEdge?: { + select: PlatformK8sSpecRuleEdgeSelect; }; }; -export interface DeleteFunctionGraphExecutionPayload { +export interface DeletePlatformK8sSpecRulePayload { clientMutationId?: string | null; - /** The `FunctionGraphExecution` that was deleted by this mutation. */ - functionGraphExecution?: FunctionGraphExecution | null; - functionGraphExecutionEdge?: FunctionGraphExecutionEdge | null; + /** The `PlatformK8sSpecRule` that was deleted by this mutation. */ + platformK8sSpecRule?: PlatformK8sSpecRule | null; + platformK8sSpecRuleEdge?: PlatformK8sSpecRuleEdge | null; } -export type DeleteFunctionGraphExecutionPayloadSelect = { +export type DeletePlatformK8sSpecRulePayloadSelect = { clientMutationId?: boolean; - functionGraphExecution?: { - select: FunctionGraphExecutionSelect; + platformK8sSpecRule?: { + select: PlatformK8sSpecRuleSelect; }; - functionGraphExecutionEdge?: { - select: FunctionGraphExecutionEdgeSelect; + platformK8sSpecRuleEdge?: { + select: PlatformK8sSpecRuleEdgeSelect; }; }; -export interface CreateFunctionGraphExecutionNodeStatePayload { +export interface CreatePlatformNamespacePayload { clientMutationId?: string | null; - /** The `FunctionGraphExecutionNodeState` that was created by this mutation. */ - functionGraphExecutionNodeState?: FunctionGraphExecutionNodeState | null; - functionGraphExecutionNodeStateEdge?: FunctionGraphExecutionNodeStateEdge | null; + /** The `PlatformNamespace` that was created by this mutation. */ + platformNamespace?: PlatformNamespace | null; + platformNamespaceEdge?: PlatformNamespaceEdge | null; } -export type CreateFunctionGraphExecutionNodeStatePayloadSelect = { +export type CreatePlatformNamespacePayloadSelect = { clientMutationId?: boolean; - functionGraphExecutionNodeState?: { - select: FunctionGraphExecutionNodeStateSelect; + platformNamespace?: { + select: PlatformNamespaceSelect; }; - functionGraphExecutionNodeStateEdge?: { - select: FunctionGraphExecutionNodeStateEdgeSelect; + platformNamespaceEdge?: { + select: PlatformNamespaceEdgeSelect; }; }; -export interface UpdateFunctionGraphExecutionNodeStatePayload { +export interface UpdatePlatformNamespacePayload { clientMutationId?: string | null; - /** The `FunctionGraphExecutionNodeState` that was updated by this mutation. */ - functionGraphExecutionNodeState?: FunctionGraphExecutionNodeState | null; - functionGraphExecutionNodeStateEdge?: FunctionGraphExecutionNodeStateEdge | null; + /** The `PlatformNamespace` that was updated by this mutation. */ + platformNamespace?: PlatformNamespace | null; + platformNamespaceEdge?: PlatformNamespaceEdge | null; } -export type UpdateFunctionGraphExecutionNodeStatePayloadSelect = { +export type UpdatePlatformNamespacePayloadSelect = { clientMutationId?: boolean; - functionGraphExecutionNodeState?: { - select: FunctionGraphExecutionNodeStateSelect; + platformNamespace?: { + select: PlatformNamespaceSelect; }; - functionGraphExecutionNodeStateEdge?: { - select: FunctionGraphExecutionNodeStateEdgeSelect; + platformNamespaceEdge?: { + select: PlatformNamespaceEdgeSelect; }; }; -export interface DeleteFunctionGraphExecutionNodeStatePayload { +export interface DeletePlatformNamespacePayload { clientMutationId?: string | null; - /** The `FunctionGraphExecutionNodeState` that was deleted by this mutation. */ - functionGraphExecutionNodeState?: FunctionGraphExecutionNodeState | null; - functionGraphExecutionNodeStateEdge?: FunctionGraphExecutionNodeStateEdge | null; + /** The `PlatformNamespace` that was deleted by this mutation. */ + platformNamespace?: PlatformNamespace | null; + platformNamespaceEdge?: PlatformNamespaceEdge | null; } -export type DeleteFunctionGraphExecutionNodeStatePayloadSelect = { +export type DeletePlatformNamespacePayloadSelect = { clientMutationId?: boolean; - functionGraphExecutionNodeState?: { - select: FunctionGraphExecutionNodeStateSelect; + platformNamespace?: { + select: PlatformNamespaceSelect; }; - functionGraphExecutionNodeStateEdge?: { - select: FunctionGraphExecutionNodeStateEdgeSelect; + platformNamespaceEdge?: { + select: PlatformNamespaceEdgeSelect; }; }; -export interface CreateFunctionGraphExecutionOutputPayload { +export interface CreatePlatformNamespaceEventPayload { clientMutationId?: string | null; - /** The `FunctionGraphExecutionOutput` that was created by this mutation. */ - functionGraphExecutionOutput?: FunctionGraphExecutionOutput | null; - functionGraphExecutionOutputEdge?: FunctionGraphExecutionOutputEdge | null; + /** The `PlatformNamespaceEvent` that was created by this mutation. */ + platformNamespaceEvent?: PlatformNamespaceEvent | null; + platformNamespaceEventEdge?: PlatformNamespaceEventEdge | null; } -export type CreateFunctionGraphExecutionOutputPayloadSelect = { +export type CreatePlatformNamespaceEventPayloadSelect = { clientMutationId?: boolean; - functionGraphExecutionOutput?: { - select: FunctionGraphExecutionOutputSelect; + platformNamespaceEvent?: { + select: PlatformNamespaceEventSelect; }; - functionGraphExecutionOutputEdge?: { - select: FunctionGraphExecutionOutputEdgeSelect; + platformNamespaceEventEdge?: { + select: PlatformNamespaceEventEdgeSelect; }; }; -export interface UpdateFunctionGraphExecutionOutputPayload { +export interface UpdatePlatformNamespaceEventPayload { clientMutationId?: string | null; - /** The `FunctionGraphExecutionOutput` that was updated by this mutation. */ - functionGraphExecutionOutput?: FunctionGraphExecutionOutput | null; - functionGraphExecutionOutputEdge?: FunctionGraphExecutionOutputEdge | null; + /** The `PlatformNamespaceEvent` that was updated by this mutation. */ + platformNamespaceEvent?: PlatformNamespaceEvent | null; + platformNamespaceEventEdge?: PlatformNamespaceEventEdge | null; } -export type UpdateFunctionGraphExecutionOutputPayloadSelect = { +export type UpdatePlatformNamespaceEventPayloadSelect = { clientMutationId?: boolean; - functionGraphExecutionOutput?: { - select: FunctionGraphExecutionOutputSelect; + platformNamespaceEvent?: { + select: PlatformNamespaceEventSelect; }; - functionGraphExecutionOutputEdge?: { - select: FunctionGraphExecutionOutputEdgeSelect; + platformNamespaceEventEdge?: { + select: PlatformNamespaceEventEdgeSelect; }; }; -export interface DeleteFunctionGraphExecutionOutputPayload { +export interface DeletePlatformNamespaceEventPayload { clientMutationId?: string | null; - /** The `FunctionGraphExecutionOutput` that was deleted by this mutation. */ - functionGraphExecutionOutput?: FunctionGraphExecutionOutput | null; - functionGraphExecutionOutputEdge?: FunctionGraphExecutionOutputEdge | null; + /** The `PlatformNamespaceEvent` that was deleted by this mutation. */ + platformNamespaceEvent?: PlatformNamespaceEvent | null; + platformNamespaceEventEdge?: PlatformNamespaceEventEdge | null; } -export type DeleteFunctionGraphExecutionOutputPayloadSelect = { +export type DeletePlatformNamespaceEventPayloadSelect = { clientMutationId?: boolean; - functionGraphExecutionOutput?: { - select: FunctionGraphExecutionOutputSelect; + platformNamespaceEvent?: { + select: PlatformNamespaceEventSelect; }; - functionGraphExecutionOutputEdge?: { - select: FunctionGraphExecutionOutputEdgeSelect; + platformNamespaceEventEdge?: { + select: PlatformNamespaceEventEdgeSelect; }; }; -export interface CreateFunctionGraphObjectPayload { +export interface CreatePlatformProposalCommentPayload { clientMutationId?: string | null; - /** The `FunctionGraphObject` that was created by this mutation. */ - functionGraphObject?: FunctionGraphObject | null; - functionGraphObjectEdge?: FunctionGraphObjectEdge | null; + /** The `PlatformProposalComment` that was created by this mutation. */ + platformProposalComment?: PlatformProposalComment | null; + platformProposalCommentEdge?: PlatformProposalCommentEdge | null; } -export type CreateFunctionGraphObjectPayloadSelect = { +export type CreatePlatformProposalCommentPayloadSelect = { clientMutationId?: boolean; - functionGraphObject?: { - select: FunctionGraphObjectSelect; + platformProposalComment?: { + select: PlatformProposalCommentSelect; }; - functionGraphObjectEdge?: { - select: FunctionGraphObjectEdgeSelect; + platformProposalCommentEdge?: { + select: PlatformProposalCommentEdgeSelect; }; }; -export interface UpdateFunctionGraphObjectPayload { +export interface UpdatePlatformProposalCommentPayload { clientMutationId?: string | null; - /** The `FunctionGraphObject` that was updated by this mutation. */ - functionGraphObject?: FunctionGraphObject | null; - functionGraphObjectEdge?: FunctionGraphObjectEdge | null; + /** The `PlatformProposalComment` that was updated by this mutation. */ + platformProposalComment?: PlatformProposalComment | null; + platformProposalCommentEdge?: PlatformProposalCommentEdge | null; } -export type UpdateFunctionGraphObjectPayloadSelect = { +export type UpdatePlatformProposalCommentPayloadSelect = { clientMutationId?: boolean; - functionGraphObject?: { - select: FunctionGraphObjectSelect; + platformProposalComment?: { + select: PlatformProposalCommentSelect; }; - functionGraphObjectEdge?: { - select: FunctionGraphObjectEdgeSelect; + platformProposalCommentEdge?: { + select: PlatformProposalCommentEdgeSelect; }; }; -export interface DeleteFunctionGraphObjectPayload { +export interface DeletePlatformProposalCommentPayload { clientMutationId?: string | null; - /** The `FunctionGraphObject` that was deleted by this mutation. */ - functionGraphObject?: FunctionGraphObject | null; - functionGraphObjectEdge?: FunctionGraphObjectEdge | null; + /** The `PlatformProposalComment` that was deleted by this mutation. */ + platformProposalComment?: PlatformProposalComment | null; + platformProposalCommentEdge?: PlatformProposalCommentEdge | null; } -export type DeleteFunctionGraphObjectPayloadSelect = { +export type DeletePlatformProposalCommentPayloadSelect = { clientMutationId?: boolean; - functionGraphObject?: { - select: FunctionGraphObjectSelect; + platformProposalComment?: { + select: PlatformProposalCommentSelect; }; - functionGraphObjectEdge?: { - select: FunctionGraphObjectEdgeSelect; + platformProposalCommentEdge?: { + select: PlatformProposalCommentEdgeSelect; }; }; -export interface CreateFunctionGraphRefPayload { +export interface CreatePlatformProposalPayload { clientMutationId?: string | null; - /** The `FunctionGraphRef` that was created by this mutation. */ - functionGraphRef?: FunctionGraphRef | null; - functionGraphRefEdge?: FunctionGraphRefEdge | null; + /** The `PlatformProposal` that was created by this mutation. */ + platformProposal?: PlatformProposal | null; + platformProposalEdge?: PlatformProposalEdge | null; } -export type CreateFunctionGraphRefPayloadSelect = { +export type CreatePlatformProposalPayloadSelect = { clientMutationId?: boolean; - functionGraphRef?: { - select: FunctionGraphRefSelect; + platformProposal?: { + select: PlatformProposalSelect; }; - functionGraphRefEdge?: { - select: FunctionGraphRefEdgeSelect; + platformProposalEdge?: { + select: PlatformProposalEdgeSelect; }; }; -export interface UpdateFunctionGraphRefPayload { +export interface UpdatePlatformProposalPayload { clientMutationId?: string | null; - /** The `FunctionGraphRef` that was updated by this mutation. */ - functionGraphRef?: FunctionGraphRef | null; - functionGraphRefEdge?: FunctionGraphRefEdge | null; + /** The `PlatformProposal` that was updated by this mutation. */ + platformProposal?: PlatformProposal | null; + platformProposalEdge?: PlatformProposalEdge | null; } -export type UpdateFunctionGraphRefPayloadSelect = { +export type UpdatePlatformProposalPayloadSelect = { clientMutationId?: boolean; - functionGraphRef?: { - select: FunctionGraphRefSelect; + platformProposal?: { + select: PlatformProposalSelect; }; - functionGraphRefEdge?: { - select: FunctionGraphRefEdgeSelect; + platformProposalEdge?: { + select: PlatformProposalEdgeSelect; }; }; -export interface DeleteFunctionGraphRefPayload { +export interface DeletePlatformProposalPayload { clientMutationId?: string | null; - /** The `FunctionGraphRef` that was deleted by this mutation. */ - functionGraphRef?: FunctionGraphRef | null; - functionGraphRefEdge?: FunctionGraphRefEdge | null; + /** The `PlatformProposal` that was deleted by this mutation. */ + platformProposal?: PlatformProposal | null; + platformProposalEdge?: PlatformProposalEdge | null; } -export type DeleteFunctionGraphRefPayloadSelect = { +export type DeletePlatformProposalPayloadSelect = { clientMutationId?: boolean; - functionGraphRef?: { - select: FunctionGraphRefSelect; + platformProposal?: { + select: PlatformProposalSelect; }; - functionGraphRefEdge?: { - select: FunctionGraphRefEdgeSelect; + platformProposalEdge?: { + select: PlatformProposalEdgeSelect; }; }; -export interface CreateFunctionGraphStorePayload { +export interface CreatePlatformProposalFileViewPayload { clientMutationId?: string | null; - /** The `FunctionGraphStore` that was created by this mutation. */ - functionGraphStore?: FunctionGraphStore | null; - functionGraphStoreEdge?: FunctionGraphStoreEdge | null; + /** The `PlatformProposalFileView` that was created by this mutation. */ + platformProposalFileView?: PlatformProposalFileView | null; + platformProposalFileViewEdge?: PlatformProposalFileViewEdge | null; } -export type CreateFunctionGraphStorePayloadSelect = { +export type CreatePlatformProposalFileViewPayloadSelect = { clientMutationId?: boolean; - functionGraphStore?: { - select: FunctionGraphStoreSelect; + platformProposalFileView?: { + select: PlatformProposalFileViewSelect; }; - functionGraphStoreEdge?: { - select: FunctionGraphStoreEdgeSelect; + platformProposalFileViewEdge?: { + select: PlatformProposalFileViewEdgeSelect; }; }; -export interface UpdateFunctionGraphStorePayload { +export interface UpdatePlatformProposalFileViewPayload { clientMutationId?: string | null; - /** The `FunctionGraphStore` that was updated by this mutation. */ - functionGraphStore?: FunctionGraphStore | null; - functionGraphStoreEdge?: FunctionGraphStoreEdge | null; + /** The `PlatformProposalFileView` that was updated by this mutation. */ + platformProposalFileView?: PlatformProposalFileView | null; + platformProposalFileViewEdge?: PlatformProposalFileViewEdge | null; } -export type UpdateFunctionGraphStorePayloadSelect = { +export type UpdatePlatformProposalFileViewPayloadSelect = { clientMutationId?: boolean; - functionGraphStore?: { - select: FunctionGraphStoreSelect; + platformProposalFileView?: { + select: PlatformProposalFileViewSelect; }; - functionGraphStoreEdge?: { - select: FunctionGraphStoreEdgeSelect; + platformProposalFileViewEdge?: { + select: PlatformProposalFileViewEdgeSelect; }; }; -export interface DeleteFunctionGraphStorePayload { +export interface DeletePlatformProposalFileViewPayload { clientMutationId?: string | null; - /** The `FunctionGraphStore` that was deleted by this mutation. */ - functionGraphStore?: FunctionGraphStore | null; - functionGraphStoreEdge?: FunctionGraphStoreEdge | null; + /** The `PlatformProposalFileView` that was deleted by this mutation. */ + platformProposalFileView?: PlatformProposalFileView | null; + platformProposalFileViewEdge?: PlatformProposalFileViewEdge | null; } -export type DeleteFunctionGraphStorePayloadSelect = { +export type DeletePlatformProposalFileViewPayloadSelect = { clientMutationId?: boolean; - functionGraphStore?: { - select: FunctionGraphStoreSelect; + platformProposalFileView?: { + select: PlatformProposalFileViewSelect; }; - functionGraphStoreEdge?: { - select: FunctionGraphStoreEdgeSelect; + platformProposalFileViewEdge?: { + select: PlatformProposalFileViewEdgeSelect; }; }; -export interface CreateFunctionInvocationAttemptPayload { +export interface CreatePlatformProposalReactionPayload { clientMutationId?: string | null; - /** The `FunctionInvocationAttempt` that was created by this mutation. */ - functionInvocationAttempt?: FunctionInvocationAttempt | null; - functionInvocationAttemptEdge?: FunctionInvocationAttemptEdge | null; + /** The `PlatformProposalReaction` that was created by this mutation. */ + platformProposalReaction?: PlatformProposalReaction | null; + platformProposalReactionEdge?: PlatformProposalReactionEdge | null; } -export type CreateFunctionInvocationAttemptPayloadSelect = { +export type CreatePlatformProposalReactionPayloadSelect = { clientMutationId?: boolean; - functionInvocationAttempt?: { - select: FunctionInvocationAttemptSelect; + platformProposalReaction?: { + select: PlatformProposalReactionSelect; }; - functionInvocationAttemptEdge?: { - select: FunctionInvocationAttemptEdgeSelect; + platformProposalReactionEdge?: { + select: PlatformProposalReactionEdgeSelect; }; }; -export interface UpdateFunctionInvocationAttemptPayload { +export interface UpdatePlatformProposalReactionPayload { clientMutationId?: string | null; - /** The `FunctionInvocationAttempt` that was updated by this mutation. */ - functionInvocationAttempt?: FunctionInvocationAttempt | null; - functionInvocationAttemptEdge?: FunctionInvocationAttemptEdge | null; + /** The `PlatformProposalReaction` that was updated by this mutation. */ + platformProposalReaction?: PlatformProposalReaction | null; + platformProposalReactionEdge?: PlatformProposalReactionEdge | null; } -export type UpdateFunctionInvocationAttemptPayloadSelect = { +export type UpdatePlatformProposalReactionPayloadSelect = { clientMutationId?: boolean; - functionInvocationAttempt?: { - select: FunctionInvocationAttemptSelect; + platformProposalReaction?: { + select: PlatformProposalReactionSelect; }; - functionInvocationAttemptEdge?: { - select: FunctionInvocationAttemptEdgeSelect; + platformProposalReactionEdge?: { + select: PlatformProposalReactionEdgeSelect; }; }; -export interface DeleteFunctionInvocationAttemptPayload { +export interface DeletePlatformProposalReactionPayload { clientMutationId?: string | null; - /** The `FunctionInvocationAttempt` that was deleted by this mutation. */ - functionInvocationAttempt?: FunctionInvocationAttempt | null; - functionInvocationAttemptEdge?: FunctionInvocationAttemptEdge | null; + /** The `PlatformProposalReaction` that was deleted by this mutation. */ + platformProposalReaction?: PlatformProposalReaction | null; + platformProposalReactionEdge?: PlatformProposalReactionEdge | null; } -export type DeleteFunctionInvocationAttemptPayloadSelect = { +export type DeletePlatformProposalReactionPayloadSelect = { clientMutationId?: boolean; - functionInvocationAttempt?: { - select: FunctionInvocationAttemptSelect; + platformProposalReaction?: { + select: PlatformProposalReactionSelect; }; - functionInvocationAttemptEdge?: { - select: FunctionInvocationAttemptEdgeSelect; + platformProposalReactionEdge?: { + select: PlatformProposalReactionEdgeSelect; }; }; -export interface CreateFunctionInvocationPayload { +export interface CreatePlatformProposalReviewPayload { clientMutationId?: string | null; - /** The `FunctionInvocation` that was created by this mutation. */ - functionInvocation?: FunctionInvocation | null; - functionInvocationEdge?: FunctionInvocationEdge | null; + /** The `PlatformProposalReview` that was created by this mutation. */ + platformProposalReview?: PlatformProposalReview | null; + platformProposalReviewEdge?: PlatformProposalReviewEdge | null; } -export type CreateFunctionInvocationPayloadSelect = { +export type CreatePlatformProposalReviewPayloadSelect = { clientMutationId?: boolean; - functionInvocation?: { - select: FunctionInvocationSelect; + platformProposalReview?: { + select: PlatformProposalReviewSelect; }; - functionInvocationEdge?: { - select: FunctionInvocationEdgeSelect; + platformProposalReviewEdge?: { + select: PlatformProposalReviewEdgeSelect; }; }; -export interface UpdateFunctionInvocationPayload { +export interface UpdatePlatformProposalReviewPayload { clientMutationId?: string | null; - /** The `FunctionInvocation` that was updated by this mutation. */ - functionInvocation?: FunctionInvocation | null; - functionInvocationEdge?: FunctionInvocationEdge | null; + /** The `PlatformProposalReview` that was updated by this mutation. */ + platformProposalReview?: PlatformProposalReview | null; + platformProposalReviewEdge?: PlatformProposalReviewEdge | null; } -export type UpdateFunctionInvocationPayloadSelect = { +export type UpdatePlatformProposalReviewPayloadSelect = { clientMutationId?: boolean; - functionInvocation?: { - select: FunctionInvocationSelect; + platformProposalReview?: { + select: PlatformProposalReviewSelect; }; - functionInvocationEdge?: { - select: FunctionInvocationEdgeSelect; + platformProposalReviewEdge?: { + select: PlatformProposalReviewEdgeSelect; }; }; -export interface DeleteFunctionInvocationPayload { +export interface DeletePlatformProposalReviewPayload { clientMutationId?: string | null; - /** The `FunctionInvocation` that was deleted by this mutation. */ - functionInvocation?: FunctionInvocation | null; - functionInvocationEdge?: FunctionInvocationEdge | null; + /** The `PlatformProposalReview` that was deleted by this mutation. */ + platformProposalReview?: PlatformProposalReview | null; + platformProposalReviewEdge?: PlatformProposalReviewEdge | null; } -export type DeleteFunctionInvocationPayloadSelect = { +export type DeletePlatformProposalReviewPayloadSelect = { clientMutationId?: boolean; - functionInvocation?: { - select: FunctionInvocationSelect; + platformProposalReview?: { + select: PlatformProposalReviewSelect; }; - functionInvocationEdge?: { - select: FunctionInvocationEdgeSelect; + platformProposalReviewEdge?: { + select: PlatformProposalReviewEdgeSelect; }; }; -export interface CreateInfraCommitPayload { +export interface CreatePlatformProposalsChunkPayload { clientMutationId?: string | null; - /** The `InfraCommit` that was created by this mutation. */ - infraCommit?: InfraCommit | null; - infraCommitEdge?: InfraCommitEdge | null; + /** The `PlatformProposalsChunk` that was created by this mutation. */ + platformProposalsChunk?: PlatformProposalsChunk | null; + platformProposalsChunkEdge?: PlatformProposalsChunkEdge | null; } -export type CreateInfraCommitPayloadSelect = { +export type CreatePlatformProposalsChunkPayloadSelect = { clientMutationId?: boolean; - infraCommit?: { - select: InfraCommitSelect; + platformProposalsChunk?: { + select: PlatformProposalsChunkSelect; }; - infraCommitEdge?: { - select: InfraCommitEdgeSelect; + platformProposalsChunkEdge?: { + select: PlatformProposalsChunkEdgeSelect; }; }; -export interface UpdateInfraCommitPayload { +export interface UpdatePlatformProposalsChunkPayload { clientMutationId?: string | null; - /** The `InfraCommit` that was updated by this mutation. */ - infraCommit?: InfraCommit | null; - infraCommitEdge?: InfraCommitEdge | null; + /** The `PlatformProposalsChunk` that was updated by this mutation. */ + platformProposalsChunk?: PlatformProposalsChunk | null; + platformProposalsChunkEdge?: PlatformProposalsChunkEdge | null; } -export type UpdateInfraCommitPayloadSelect = { +export type UpdatePlatformProposalsChunkPayloadSelect = { clientMutationId?: boolean; - infraCommit?: { - select: InfraCommitSelect; + platformProposalsChunk?: { + select: PlatformProposalsChunkSelect; }; - infraCommitEdge?: { - select: InfraCommitEdgeSelect; + platformProposalsChunkEdge?: { + select: PlatformProposalsChunkEdgeSelect; }; }; -export interface DeleteInfraCommitPayload { +export interface DeletePlatformProposalsChunkPayload { clientMutationId?: string | null; - /** The `InfraCommit` that was deleted by this mutation. */ - infraCommit?: InfraCommit | null; - infraCommitEdge?: InfraCommitEdge | null; + /** The `PlatformProposalsChunk` that was deleted by this mutation. */ + platformProposalsChunk?: PlatformProposalsChunk | null; + platformProposalsChunkEdge?: PlatformProposalsChunkEdge | null; } -export type DeleteInfraCommitPayloadSelect = { +export type DeletePlatformProposalsChunkPayloadSelect = { clientMutationId?: boolean; - infraCommit?: { - select: InfraCommitSelect; + platformProposalsChunk?: { + select: PlatformProposalsChunkSelect; }; - infraCommitEdge?: { - select: InfraCommitEdgeSelect; + platformProposalsChunkEdge?: { + select: PlatformProposalsChunkEdgeSelect; }; }; -export interface CreateInfraObjectPayload { +export interface CreatePlatformRegistryBindingPayload { clientMutationId?: string | null; - /** The `InfraObject` that was created by this mutation. */ - infraObject?: InfraObject | null; - infraObjectEdge?: InfraObjectEdge | null; + /** The `PlatformRegistryBinding` that was created by this mutation. */ + platformRegistryBinding?: PlatformRegistryBinding | null; + platformRegistryBindingEdge?: PlatformRegistryBindingEdge | null; } -export type CreateInfraObjectPayloadSelect = { +export type CreatePlatformRegistryBindingPayloadSelect = { clientMutationId?: boolean; - infraObject?: { - select: InfraObjectSelect; + platformRegistryBinding?: { + select: PlatformRegistryBindingSelect; }; - infraObjectEdge?: { - select: InfraObjectEdgeSelect; + platformRegistryBindingEdge?: { + select: PlatformRegistryBindingEdgeSelect; }; }; -export interface UpdateInfraObjectPayload { +export interface UpdatePlatformRegistryBindingPayload { clientMutationId?: string | null; - /** The `InfraObject` that was updated by this mutation. */ - infraObject?: InfraObject | null; - infraObjectEdge?: InfraObjectEdge | null; + /** The `PlatformRegistryBinding` that was updated by this mutation. */ + platformRegistryBinding?: PlatformRegistryBinding | null; + platformRegistryBindingEdge?: PlatformRegistryBindingEdge | null; } -export type UpdateInfraObjectPayloadSelect = { +export type UpdatePlatformRegistryBindingPayloadSelect = { clientMutationId?: boolean; - infraObject?: { - select: InfraObjectSelect; + platformRegistryBinding?: { + select: PlatformRegistryBindingSelect; }; - infraObjectEdge?: { - select: InfraObjectEdgeSelect; + platformRegistryBindingEdge?: { + select: PlatformRegistryBindingEdgeSelect; }; }; -export interface DeleteInfraObjectPayload { +export interface DeletePlatformRegistryBindingPayload { clientMutationId?: string | null; - /** The `InfraObject` that was deleted by this mutation. */ - infraObject?: InfraObject | null; - infraObjectEdge?: InfraObjectEdge | null; + /** The `PlatformRegistryBinding` that was deleted by this mutation. */ + platformRegistryBinding?: PlatformRegistryBinding | null; + platformRegistryBindingEdge?: PlatformRegistryBindingEdge | null; } -export type DeleteInfraObjectPayloadSelect = { +export type DeletePlatformRegistryBindingPayloadSelect = { clientMutationId?: boolean; - infraObject?: { - select: InfraObjectSelect; + platformRegistryBinding?: { + select: PlatformRegistryBindingSelect; }; - infraObjectEdge?: { - select: InfraObjectEdgeSelect; + platformRegistryBindingEdge?: { + select: PlatformRegistryBindingEdgeSelect; }; }; -export interface CreateInfraRefPayload { +export interface CreatePlatformRegistryPayload { clientMutationId?: string | null; - /** The `InfraRef` that was created by this mutation. */ - infraRef?: InfraRef | null; - infraRefEdge?: InfraRefEdge | null; + /** The `PlatformRegistry` that was created by this mutation. */ + platformRegistry?: PlatformRegistry | null; + platformRegistryEdge?: PlatformRegistryEdge | null; } -export type CreateInfraRefPayloadSelect = { +export type CreatePlatformRegistryPayloadSelect = { clientMutationId?: boolean; - infraRef?: { - select: InfraRefSelect; + platformRegistry?: { + select: PlatformRegistrySelect; }; - infraRefEdge?: { - select: InfraRefEdgeSelect; + platformRegistryEdge?: { + select: PlatformRegistryEdgeSelect; }; }; -export interface UpdateInfraRefPayload { +export interface UpdatePlatformRegistryPayload { clientMutationId?: string | null; - /** The `InfraRef` that was updated by this mutation. */ - infraRef?: InfraRef | null; - infraRefEdge?: InfraRefEdge | null; + /** The `PlatformRegistry` that was updated by this mutation. */ + platformRegistry?: PlatformRegistry | null; + platformRegistryEdge?: PlatformRegistryEdge | null; } -export type UpdateInfraRefPayloadSelect = { +export type UpdatePlatformRegistryPayloadSelect = { clientMutationId?: boolean; - infraRef?: { - select: InfraRefSelect; + platformRegistry?: { + select: PlatformRegistrySelect; }; - infraRefEdge?: { - select: InfraRefEdgeSelect; + platformRegistryEdge?: { + select: PlatformRegistryEdgeSelect; }; }; -export interface DeleteInfraRefPayload { +export interface DeletePlatformRegistryPayload { clientMutationId?: string | null; - /** The `InfraRef` that was deleted by this mutation. */ - infraRef?: InfraRef | null; - infraRefEdge?: InfraRefEdge | null; + /** The `PlatformRegistry` that was deleted by this mutation. */ + platformRegistry?: PlatformRegistry | null; + platformRegistryEdge?: PlatformRegistryEdge | null; } -export type DeleteInfraRefPayloadSelect = { +export type DeletePlatformRegistryPayloadSelect = { clientMutationId?: boolean; - infraRef?: { - select: InfraRefSelect; + platformRegistry?: { + select: PlatformRegistrySelect; }; - infraRefEdge?: { - select: InfraRefEdgeSelect; + platformRegistryEdge?: { + select: PlatformRegistryEdgeSelect; }; }; -export interface CreateInfraStorePayload { +export interface CreatePlatformRegistryGrantPayload { clientMutationId?: string | null; - /** The `InfraStore` that was created by this mutation. */ - infraStore?: InfraStore | null; - infraStoreEdge?: InfraStoreEdge | null; + /** The `PlatformRegistryGrant` that was created by this mutation. */ + platformRegistryGrant?: PlatformRegistryGrant | null; + platformRegistryGrantEdge?: PlatformRegistryGrantEdge | null; } -export type CreateInfraStorePayloadSelect = { +export type CreatePlatformRegistryGrantPayloadSelect = { clientMutationId?: boolean; - infraStore?: { - select: InfraStoreSelect; + platformRegistryGrant?: { + select: PlatformRegistryGrantSelect; }; - infraStoreEdge?: { - select: InfraStoreEdgeSelect; + platformRegistryGrantEdge?: { + select: PlatformRegistryGrantEdgeSelect; }; }; -export interface UpdateInfraStorePayload { +export interface UpdatePlatformRegistryGrantPayload { clientMutationId?: string | null; - /** The `InfraStore` that was updated by this mutation. */ - infraStore?: InfraStore | null; - infraStoreEdge?: InfraStoreEdge | null; + /** The `PlatformRegistryGrant` that was updated by this mutation. */ + platformRegistryGrant?: PlatformRegistryGrant | null; + platformRegistryGrantEdge?: PlatformRegistryGrantEdge | null; } -export type UpdateInfraStorePayloadSelect = { +export type UpdatePlatformRegistryGrantPayloadSelect = { clientMutationId?: boolean; - infraStore?: { - select: InfraStoreSelect; + platformRegistryGrant?: { + select: PlatformRegistryGrantSelect; }; - infraStoreEdge?: { - select: InfraStoreEdgeSelect; + platformRegistryGrantEdge?: { + select: PlatformRegistryGrantEdgeSelect; }; }; -export interface DeleteInfraStorePayload { +export interface DeletePlatformRegistryGrantPayload { clientMutationId?: string | null; - /** The `InfraStore` that was deleted by this mutation. */ - infraStore?: InfraStore | null; - infraStoreEdge?: InfraStoreEdge | null; + /** The `PlatformRegistryGrant` that was deleted by this mutation. */ + platformRegistryGrant?: PlatformRegistryGrant | null; + platformRegistryGrantEdge?: PlatformRegistryGrantEdge | null; } -export type DeleteInfraStorePayloadSelect = { +export type DeletePlatformRegistryGrantPayloadSelect = { clientMutationId?: boolean; - infraStore?: { - select: InfraStoreSelect; + platformRegistryGrant?: { + select: PlatformRegistryGrantSelect; }; - infraStoreEdge?: { - select: InfraStoreEdgeSelect; + platformRegistryGrantEdge?: { + select: PlatformRegistryGrantEdgeSelect; }; }; -export interface CreateIntegrationProviderPayload { +export interface CreatePlatformRepositoryPayload { clientMutationId?: string | null; - /** The `IntegrationProvider` that was created by this mutation. */ - integrationProvider?: IntegrationProvider | null; - integrationProviderEdge?: IntegrationProviderEdge | null; + /** The `PlatformRepository` that was created by this mutation. */ + platformRepository?: PlatformRepository | null; + platformRepositoryEdge?: PlatformRepositoryEdge | null; } -export type CreateIntegrationProviderPayloadSelect = { +export type CreatePlatformRepositoryPayloadSelect = { clientMutationId?: boolean; - integrationProvider?: { - select: IntegrationProviderSelect; + platformRepository?: { + select: PlatformRepositorySelect; }; - integrationProviderEdge?: { - select: IntegrationProviderEdgeSelect; + platformRepositoryEdge?: { + select: PlatformRepositoryEdgeSelect; }; }; -export interface UpdateIntegrationProviderPayload { +export interface UpdatePlatformRepositoryPayload { clientMutationId?: string | null; - /** The `IntegrationProvider` that was updated by this mutation. */ - integrationProvider?: IntegrationProvider | null; - integrationProviderEdge?: IntegrationProviderEdge | null; + /** The `PlatformRepository` that was updated by this mutation. */ + platformRepository?: PlatformRepository | null; + platformRepositoryEdge?: PlatformRepositoryEdge | null; } -export type UpdateIntegrationProviderPayloadSelect = { +export type UpdatePlatformRepositoryPayloadSelect = { clientMutationId?: boolean; - integrationProvider?: { - select: IntegrationProviderSelect; + platformRepository?: { + select: PlatformRepositorySelect; }; - integrationProviderEdge?: { - select: IntegrationProviderEdgeSelect; + platformRepositoryEdge?: { + select: PlatformRepositoryEdgeSelect; }; }; -export interface DeleteIntegrationProviderPayload { +export interface DeletePlatformRepositoryPayload { clientMutationId?: string | null; - /** The `IntegrationProvider` that was deleted by this mutation. */ - integrationProvider?: IntegrationProvider | null; - integrationProviderEdge?: IntegrationProviderEdge | null; + /** The `PlatformRepository` that was deleted by this mutation. */ + platformRepository?: PlatformRepository | null; + platformRepositoryEdge?: PlatformRepositoryEdge | null; } -export type DeleteIntegrationProviderPayloadSelect = { +export type DeletePlatformRepositoryPayloadSelect = { clientMutationId?: boolean; - integrationProvider?: { - select: IntegrationProviderSelect; + platformRepository?: { + select: PlatformRepositorySelect; }; - integrationProviderEdge?: { - select: IntegrationProviderEdgeSelect; + platformRepositoryEdge?: { + select: PlatformRepositoryEdgeSelect; }; }; -export interface CreateNamespacePayload { +export interface CreatePlatformRepositoryEventPayload { clientMutationId?: string | null; - /** The `Namespace` that was created by this mutation. */ - namespace?: Namespace | null; - namespaceEdge?: NamespaceEdge | null; + /** The `PlatformRepositoryEvent` that was created by this mutation. */ + platformRepositoryEvent?: PlatformRepositoryEvent | null; + platformRepositoryEventEdge?: PlatformRepositoryEventEdge | null; } -export type CreateNamespacePayloadSelect = { +export type CreatePlatformRepositoryEventPayloadSelect = { clientMutationId?: boolean; - namespace?: { - select: NamespaceSelect; + platformRepositoryEvent?: { + select: PlatformRepositoryEventSelect; }; - namespaceEdge?: { - select: NamespaceEdgeSelect; + platformRepositoryEventEdge?: { + select: PlatformRepositoryEventEdgeSelect; }; }; -export interface UpdateNamespacePayload { +export interface UpdatePlatformRepositoryEventPayload { clientMutationId?: string | null; - /** The `Namespace` that was updated by this mutation. */ - namespace?: Namespace | null; - namespaceEdge?: NamespaceEdge | null; + /** The `PlatformRepositoryEvent` that was updated by this mutation. */ + platformRepositoryEvent?: PlatformRepositoryEvent | null; + platformRepositoryEventEdge?: PlatformRepositoryEventEdge | null; } -export type UpdateNamespacePayloadSelect = { +export type UpdatePlatformRepositoryEventPayloadSelect = { clientMutationId?: boolean; - namespace?: { - select: NamespaceSelect; + platformRepositoryEvent?: { + select: PlatformRepositoryEventSelect; }; - namespaceEdge?: { - select: NamespaceEdgeSelect; + platformRepositoryEventEdge?: { + select: PlatformRepositoryEventEdgeSelect; }; }; -export interface DeleteNamespacePayload { +export interface DeletePlatformRepositoryEventPayload { clientMutationId?: string | null; - /** The `Namespace` that was deleted by this mutation. */ - namespace?: Namespace | null; - namespaceEdge?: NamespaceEdge | null; + /** The `PlatformRepositoryEvent` that was deleted by this mutation. */ + platformRepositoryEvent?: PlatformRepositoryEvent | null; + platformRepositoryEventEdge?: PlatformRepositoryEventEdge | null; } -export type DeleteNamespacePayloadSelect = { +export type DeletePlatformRepositoryEventPayloadSelect = { clientMutationId?: boolean; - namespace?: { - select: NamespaceSelect; + platformRepositoryEvent?: { + select: PlatformRepositoryEventSelect; }; - namespaceEdge?: { - select: NamespaceEdgeSelect; + platformRepositoryEventEdge?: { + select: PlatformRepositoryEventEdgeSelect; }; }; -export interface CreateNamespaceEventPayload { +export interface CreatePlatformRepositoryRequiredCheckPayload { clientMutationId?: string | null; - /** The `NamespaceEvent` that was created by this mutation. */ - namespaceEvent?: NamespaceEvent | null; - namespaceEventEdge?: NamespaceEventEdge | null; + /** The `PlatformRepositoryRequiredCheck` that was created by this mutation. */ + platformRepositoryRequiredCheck?: PlatformRepositoryRequiredCheck | null; + platformRepositoryRequiredCheckEdge?: PlatformRepositoryRequiredCheckEdge | null; } -export type CreateNamespaceEventPayloadSelect = { +export type CreatePlatformRepositoryRequiredCheckPayloadSelect = { clientMutationId?: boolean; - namespaceEvent?: { - select: NamespaceEventSelect; + platformRepositoryRequiredCheck?: { + select: PlatformRepositoryRequiredCheckSelect; }; - namespaceEventEdge?: { - select: NamespaceEventEdgeSelect; + platformRepositoryRequiredCheckEdge?: { + select: PlatformRepositoryRequiredCheckEdgeSelect; }; }; -export interface UpdateNamespaceEventPayload { +export interface UpdatePlatformRepositoryRequiredCheckPayload { clientMutationId?: string | null; - /** The `NamespaceEvent` that was updated by this mutation. */ - namespaceEvent?: NamespaceEvent | null; - namespaceEventEdge?: NamespaceEventEdge | null; + /** The `PlatformRepositoryRequiredCheck` that was updated by this mutation. */ + platformRepositoryRequiredCheck?: PlatformRepositoryRequiredCheck | null; + platformRepositoryRequiredCheckEdge?: PlatformRepositoryRequiredCheckEdge | null; } -export type UpdateNamespaceEventPayloadSelect = { +export type UpdatePlatformRepositoryRequiredCheckPayloadSelect = { clientMutationId?: boolean; - namespaceEvent?: { - select: NamespaceEventSelect; + platformRepositoryRequiredCheck?: { + select: PlatformRepositoryRequiredCheckSelect; }; - namespaceEventEdge?: { - select: NamespaceEventEdgeSelect; + platformRepositoryRequiredCheckEdge?: { + select: PlatformRepositoryRequiredCheckEdgeSelect; }; }; -export interface DeleteNamespaceEventPayload { +export interface DeletePlatformRepositoryRequiredCheckPayload { clientMutationId?: string | null; - /** The `NamespaceEvent` that was deleted by this mutation. */ - namespaceEvent?: NamespaceEvent | null; - namespaceEventEdge?: NamespaceEventEdge | null; + /** The `PlatformRepositoryRequiredCheck` that was deleted by this mutation. */ + platformRepositoryRequiredCheck?: PlatformRepositoryRequiredCheck | null; + platformRepositoryRequiredCheckEdge?: PlatformRepositoryRequiredCheckEdge | null; } -export type DeleteNamespaceEventPayloadSelect = { +export type DeletePlatformRepositoryRequiredCheckPayloadSelect = { clientMutationId?: boolean; - namespaceEvent?: { - select: NamespaceEventSelect; + platformRepositoryRequiredCheck?: { + select: PlatformRepositoryRequiredCheckSelect; }; - namespaceEventEdge?: { - select: NamespaceEventEdgeSelect; + platformRepositoryRequiredCheckEdge?: { + select: PlatformRepositoryRequiredCheckEdgeSelect; }; }; -export interface CreatePlatformFunctionApiBindingPayload { +export interface CreatePlatformRepositoryWorkflowPayload { clientMutationId?: string | null; - /** The `PlatformFunctionApiBinding` that was created by this mutation. */ - platformFunctionApiBinding?: PlatformFunctionApiBinding | null; - platformFunctionApiBindingEdge?: PlatformFunctionApiBindingEdge | null; + /** The `PlatformRepositoryWorkflow` that was created by this mutation. */ + platformRepositoryWorkflow?: PlatformRepositoryWorkflow | null; + platformRepositoryWorkflowEdge?: PlatformRepositoryWorkflowEdge | null; } -export type CreatePlatformFunctionApiBindingPayloadSelect = { +export type CreatePlatformRepositoryWorkflowPayloadSelect = { clientMutationId?: boolean; - platformFunctionApiBinding?: { - select: PlatformFunctionApiBindingSelect; + platformRepositoryWorkflow?: { + select: PlatformRepositoryWorkflowSelect; }; - platformFunctionApiBindingEdge?: { - select: PlatformFunctionApiBindingEdgeSelect; + platformRepositoryWorkflowEdge?: { + select: PlatformRepositoryWorkflowEdgeSelect; }; }; -export interface UpdatePlatformFunctionApiBindingPayload { +export interface UpdatePlatformRepositoryWorkflowPayload { clientMutationId?: string | null; - /** The `PlatformFunctionApiBinding` that was updated by this mutation. */ - platformFunctionApiBinding?: PlatformFunctionApiBinding | null; - platformFunctionApiBindingEdge?: PlatformFunctionApiBindingEdge | null; + /** The `PlatformRepositoryWorkflow` that was updated by this mutation. */ + platformRepositoryWorkflow?: PlatformRepositoryWorkflow | null; + platformRepositoryWorkflowEdge?: PlatformRepositoryWorkflowEdge | null; } -export type UpdatePlatformFunctionApiBindingPayloadSelect = { +export type UpdatePlatformRepositoryWorkflowPayloadSelect = { clientMutationId?: boolean; - platformFunctionApiBinding?: { - select: PlatformFunctionApiBindingSelect; + platformRepositoryWorkflow?: { + select: PlatformRepositoryWorkflowSelect; }; - platformFunctionApiBindingEdge?: { - select: PlatformFunctionApiBindingEdgeSelect; + platformRepositoryWorkflowEdge?: { + select: PlatformRepositoryWorkflowEdgeSelect; }; }; -export interface DeletePlatformFunctionApiBindingPayload { +export interface DeletePlatformRepositoryWorkflowPayload { clientMutationId?: string | null; - /** The `PlatformFunctionApiBinding` that was deleted by this mutation. */ - platformFunctionApiBinding?: PlatformFunctionApiBinding | null; - platformFunctionApiBindingEdge?: PlatformFunctionApiBindingEdge | null; + /** The `PlatformRepositoryWorkflow` that was deleted by this mutation. */ + platformRepositoryWorkflow?: PlatformRepositoryWorkflow | null; + platformRepositoryWorkflowEdge?: PlatformRepositoryWorkflowEdge | null; } -export type DeletePlatformFunctionApiBindingPayloadSelect = { +export type DeletePlatformRepositoryWorkflowPayloadSelect = { clientMutationId?: boolean; - platformFunctionApiBinding?: { - select: PlatformFunctionApiBindingSelect; + platformRepositoryWorkflow?: { + select: PlatformRepositoryWorkflowSelect; }; - platformFunctionApiBindingEdge?: { - select: PlatformFunctionApiBindingEdgeSelect; + platformRepositoryWorkflowEdge?: { + select: PlatformRepositoryWorkflowEdgeSelect; }; }; -export interface CreatePlatformFunctionCapabilityBindingPayload { +export interface CreatePlatformResourcePayload { clientMutationId?: string | null; - /** The `PlatformFunctionCapabilityBinding` that was created by this mutation. */ - platformFunctionCapabilityBinding?: PlatformFunctionCapabilityBinding | null; - platformFunctionCapabilityBindingEdge?: PlatformFunctionCapabilityBindingEdge | null; + /** The `PlatformResource` that was created by this mutation. */ + platformResource?: PlatformResource | null; + platformResourceEdge?: PlatformResourceEdge | null; } -export type CreatePlatformFunctionCapabilityBindingPayloadSelect = { +export type CreatePlatformResourcePayloadSelect = { clientMutationId?: boolean; - platformFunctionCapabilityBinding?: { - select: PlatformFunctionCapabilityBindingSelect; + platformResource?: { + select: PlatformResourceSelect; }; - platformFunctionCapabilityBindingEdge?: { - select: PlatformFunctionCapabilityBindingEdgeSelect; + platformResourceEdge?: { + select: PlatformResourceEdgeSelect; }; }; -export interface UpdatePlatformFunctionCapabilityBindingPayload { +export interface UpdatePlatformResourcePayload { clientMutationId?: string | null; - /** The `PlatformFunctionCapabilityBinding` that was updated by this mutation. */ - platformFunctionCapabilityBinding?: PlatformFunctionCapabilityBinding | null; - platformFunctionCapabilityBindingEdge?: PlatformFunctionCapabilityBindingEdge | null; + /** The `PlatformResource` that was updated by this mutation. */ + platformResource?: PlatformResource | null; + platformResourceEdge?: PlatformResourceEdge | null; } -export type UpdatePlatformFunctionCapabilityBindingPayloadSelect = { +export type UpdatePlatformResourcePayloadSelect = { clientMutationId?: boolean; - platformFunctionCapabilityBinding?: { - select: PlatformFunctionCapabilityBindingSelect; + platformResource?: { + select: PlatformResourceSelect; }; - platformFunctionCapabilityBindingEdge?: { - select: PlatformFunctionCapabilityBindingEdgeSelect; + platformResourceEdge?: { + select: PlatformResourceEdgeSelect; }; }; -export interface DeletePlatformFunctionCapabilityBindingPayload { +export interface DeletePlatformResourcePayload { clientMutationId?: string | null; - /** The `PlatformFunctionCapabilityBinding` that was deleted by this mutation. */ - platformFunctionCapabilityBinding?: PlatformFunctionCapabilityBinding | null; - platformFunctionCapabilityBindingEdge?: PlatformFunctionCapabilityBindingEdge | null; + /** The `PlatformResource` that was deleted by this mutation. */ + platformResource?: PlatformResource | null; + platformResourceEdge?: PlatformResourceEdge | null; } -export type DeletePlatformFunctionCapabilityBindingPayloadSelect = { +export type DeletePlatformResourcePayloadSelect = { clientMutationId?: boolean; - platformFunctionCapabilityBinding?: { - select: PlatformFunctionCapabilityBindingSelect; + platformResource?: { + select: PlatformResourceSelect; }; - platformFunctionCapabilityBindingEdge?: { - select: PlatformFunctionCapabilityBindingEdgeSelect; + platformResourceEdge?: { + select: PlatformResourceEdgeSelect; }; }; -export interface CreatePlatformFunctionDefinitionPayload { +export interface CreatePlatformResourceDefinitionPayload { clientMutationId?: string | null; - /** The `PlatformFunctionDefinition` that was created by this mutation. */ - platformFunctionDefinition?: PlatformFunctionDefinition | null; - platformFunctionDefinitionEdge?: PlatformFunctionDefinitionEdge | null; + /** The `PlatformResourceDefinition` that was created by this mutation. */ + platformResourceDefinition?: PlatformResourceDefinition | null; + platformResourceDefinitionEdge?: PlatformResourceDefinitionEdge | null; } -export type CreatePlatformFunctionDefinitionPayloadSelect = { +export type CreatePlatformResourceDefinitionPayloadSelect = { clientMutationId?: boolean; - platformFunctionDefinition?: { - select: PlatformFunctionDefinitionSelect; + platformResourceDefinition?: { + select: PlatformResourceDefinitionSelect; }; - platformFunctionDefinitionEdge?: { - select: PlatformFunctionDefinitionEdgeSelect; + platformResourceDefinitionEdge?: { + select: PlatformResourceDefinitionEdgeSelect; }; }; -export interface UpdatePlatformFunctionDefinitionPayload { +export interface UpdatePlatformResourceDefinitionPayload { clientMutationId?: string | null; - /** The `PlatformFunctionDefinition` that was updated by this mutation. */ - platformFunctionDefinition?: PlatformFunctionDefinition | null; - platformFunctionDefinitionEdge?: PlatformFunctionDefinitionEdge | null; + /** The `PlatformResourceDefinition` that was updated by this mutation. */ + platformResourceDefinition?: PlatformResourceDefinition | null; + platformResourceDefinitionEdge?: PlatformResourceDefinitionEdge | null; } -export type UpdatePlatformFunctionDefinitionPayloadSelect = { +export type UpdatePlatformResourceDefinitionPayloadSelect = { clientMutationId?: boolean; - platformFunctionDefinition?: { - select: PlatformFunctionDefinitionSelect; + platformResourceDefinition?: { + select: PlatformResourceDefinitionSelect; }; - platformFunctionDefinitionEdge?: { - select: PlatformFunctionDefinitionEdgeSelect; + platformResourceDefinitionEdge?: { + select: PlatformResourceDefinitionEdgeSelect; }; }; -export interface DeletePlatformFunctionDefinitionPayload { +export interface DeletePlatformResourceDefinitionPayload { clientMutationId?: string | null; - /** The `PlatformFunctionDefinition` that was deleted by this mutation. */ - platformFunctionDefinition?: PlatformFunctionDefinition | null; - platformFunctionDefinitionEdge?: PlatformFunctionDefinitionEdge | null; + /** The `PlatformResourceDefinition` that was deleted by this mutation. */ + platformResourceDefinition?: PlatformResourceDefinition | null; + platformResourceDefinitionEdge?: PlatformResourceDefinitionEdge | null; } -export type DeletePlatformFunctionDefinitionPayloadSelect = { +export type DeletePlatformResourceDefinitionPayloadSelect = { clientMutationId?: boolean; - platformFunctionDefinition?: { - select: PlatformFunctionDefinitionSelect; + platformResourceDefinition?: { + select: PlatformResourceDefinitionSelect; }; - platformFunctionDefinitionEdge?: { - select: PlatformFunctionDefinitionEdgeSelect; + platformResourceDefinitionEdge?: { + select: PlatformResourceDefinitionEdgeSelect; }; }; -export interface CreatePlatformFunctionDeploymentPayload { +export interface CreatePlatformResourceEventPayload { clientMutationId?: string | null; - /** The `PlatformFunctionDeployment` that was created by this mutation. */ - platformFunctionDeployment?: PlatformFunctionDeployment | null; - platformFunctionDeploymentEdge?: PlatformFunctionDeploymentEdge | null; + /** The `PlatformResourceEvent` that was created by this mutation. */ + platformResourceEvent?: PlatformResourceEvent | null; + platformResourceEventEdge?: PlatformResourceEventEdge | null; } -export type CreatePlatformFunctionDeploymentPayloadSelect = { +export type CreatePlatformResourceEventPayloadSelect = { clientMutationId?: boolean; - platformFunctionDeployment?: { - select: PlatformFunctionDeploymentSelect; + platformResourceEvent?: { + select: PlatformResourceEventSelect; }; - platformFunctionDeploymentEdge?: { - select: PlatformFunctionDeploymentEdgeSelect; + platformResourceEventEdge?: { + select: PlatformResourceEventEdgeSelect; }; }; -export interface UpdatePlatformFunctionDeploymentPayload { +export interface UpdatePlatformResourceEventPayload { clientMutationId?: string | null; - /** The `PlatformFunctionDeployment` that was updated by this mutation. */ - platformFunctionDeployment?: PlatformFunctionDeployment | null; - platformFunctionDeploymentEdge?: PlatformFunctionDeploymentEdge | null; + /** The `PlatformResourceEvent` that was updated by this mutation. */ + platformResourceEvent?: PlatformResourceEvent | null; + platformResourceEventEdge?: PlatformResourceEventEdge | null; } -export type UpdatePlatformFunctionDeploymentPayloadSelect = { +export type UpdatePlatformResourceEventPayloadSelect = { clientMutationId?: boolean; - platformFunctionDeployment?: { - select: PlatformFunctionDeploymentSelect; + platformResourceEvent?: { + select: PlatformResourceEventSelect; }; - platformFunctionDeploymentEdge?: { - select: PlatformFunctionDeploymentEdgeSelect; + platformResourceEventEdge?: { + select: PlatformResourceEventEdgeSelect; }; }; -export interface DeletePlatformFunctionDeploymentPayload { +export interface DeletePlatformResourceEventPayload { clientMutationId?: string | null; - /** The `PlatformFunctionDeployment` that was deleted by this mutation. */ - platformFunctionDeployment?: PlatformFunctionDeployment | null; - platformFunctionDeploymentEdge?: PlatformFunctionDeploymentEdge | null; + /** The `PlatformResourceEvent` that was deleted by this mutation. */ + platformResourceEvent?: PlatformResourceEvent | null; + platformResourceEventEdge?: PlatformResourceEventEdge | null; } -export type DeletePlatformFunctionDeploymentPayloadSelect = { +export type DeletePlatformResourceEventPayloadSelect = { clientMutationId?: boolean; - platformFunctionDeployment?: { - select: PlatformFunctionDeploymentSelect; + platformResourceEvent?: { + select: PlatformResourceEventSelect; }; - platformFunctionDeploymentEdge?: { - select: PlatformFunctionDeploymentEdgeSelect; + platformResourceEventEdge?: { + select: PlatformResourceEventEdgeSelect; }; }; -export interface CreatePlatformFunctionDeploymentEventPayload { +export interface CreatePlatformResourceInstallationPayload { clientMutationId?: string | null; - /** The `PlatformFunctionDeploymentEvent` that was created by this mutation. */ - platformFunctionDeploymentEvent?: PlatformFunctionDeploymentEvent | null; - platformFunctionDeploymentEventEdge?: PlatformFunctionDeploymentEventEdge | null; + /** The `PlatformResourceInstallation` that was created by this mutation. */ + platformResourceInstallation?: PlatformResourceInstallation | null; + platformResourceInstallationEdge?: PlatformResourceInstallationEdge | null; } -export type CreatePlatformFunctionDeploymentEventPayloadSelect = { +export type CreatePlatformResourceInstallationPayloadSelect = { clientMutationId?: boolean; - platformFunctionDeploymentEvent?: { - select: PlatformFunctionDeploymentEventSelect; + platformResourceInstallation?: { + select: PlatformResourceInstallationSelect; }; - platformFunctionDeploymentEventEdge?: { - select: PlatformFunctionDeploymentEventEdgeSelect; + platformResourceInstallationEdge?: { + select: PlatformResourceInstallationEdgeSelect; }; }; -export interface UpdatePlatformFunctionDeploymentEventPayload { +export interface UpdatePlatformResourceInstallationPayload { clientMutationId?: string | null; - /** The `PlatformFunctionDeploymentEvent` that was updated by this mutation. */ - platformFunctionDeploymentEvent?: PlatformFunctionDeploymentEvent | null; - platformFunctionDeploymentEventEdge?: PlatformFunctionDeploymentEventEdge | null; + /** The `PlatformResourceInstallation` that was updated by this mutation. */ + platformResourceInstallation?: PlatformResourceInstallation | null; + platformResourceInstallationEdge?: PlatformResourceInstallationEdge | null; } -export type UpdatePlatformFunctionDeploymentEventPayloadSelect = { +export type UpdatePlatformResourceInstallationPayloadSelect = { clientMutationId?: boolean; - platformFunctionDeploymentEvent?: { - select: PlatformFunctionDeploymentEventSelect; + platformResourceInstallation?: { + select: PlatformResourceInstallationSelect; }; - platformFunctionDeploymentEventEdge?: { - select: PlatformFunctionDeploymentEventEdgeSelect; + platformResourceInstallationEdge?: { + select: PlatformResourceInstallationEdgeSelect; }; }; -export interface DeletePlatformFunctionDeploymentEventPayload { +export interface DeletePlatformResourceInstallationPayload { clientMutationId?: string | null; - /** The `PlatformFunctionDeploymentEvent` that was deleted by this mutation. */ - platformFunctionDeploymentEvent?: PlatformFunctionDeploymentEvent | null; - platformFunctionDeploymentEventEdge?: PlatformFunctionDeploymentEventEdge | null; + /** The `PlatformResourceInstallation` that was deleted by this mutation. */ + platformResourceInstallation?: PlatformResourceInstallation | null; + platformResourceInstallationEdge?: PlatformResourceInstallationEdge | null; } -export type DeletePlatformFunctionDeploymentEventPayloadSelect = { +export type DeletePlatformResourceInstallationPayloadSelect = { clientMutationId?: boolean; - platformFunctionDeploymentEvent?: { - select: PlatformFunctionDeploymentEventSelect; - }; - platformFunctionDeploymentEventEdge?: { - select: PlatformFunctionDeploymentEventEdgeSelect; + platformResourceInstallation?: { + select: PlatformResourceInstallationSelect; + }; + platformResourceInstallationEdge?: { + select: PlatformResourceInstallationEdgeSelect; }; }; -export interface CreatePlatformFunctionExecutionLogPayload { +export interface CreatePlatformResourceStatusCheckPayload { clientMutationId?: string | null; - /** The `PlatformFunctionExecutionLog` that was created by this mutation. */ - platformFunctionExecutionLog?: PlatformFunctionExecutionLog | null; - platformFunctionExecutionLogEdge?: PlatformFunctionExecutionLogEdge | null; + /** The `PlatformResourceStatusCheck` that was created by this mutation. */ + platformResourceStatusCheck?: PlatformResourceStatusCheck | null; + platformResourceStatusCheckEdge?: PlatformResourceStatusCheckEdge | null; } -export type CreatePlatformFunctionExecutionLogPayloadSelect = { +export type CreatePlatformResourceStatusCheckPayloadSelect = { clientMutationId?: boolean; - platformFunctionExecutionLog?: { - select: PlatformFunctionExecutionLogSelect; + platformResourceStatusCheck?: { + select: PlatformResourceStatusCheckSelect; }; - platformFunctionExecutionLogEdge?: { - select: PlatformFunctionExecutionLogEdgeSelect; + platformResourceStatusCheckEdge?: { + select: PlatformResourceStatusCheckEdgeSelect; }; }; -export interface UpdatePlatformFunctionExecutionLogPayload { +export interface UpdatePlatformResourceStatusCheckPayload { clientMutationId?: string | null; - /** The `PlatformFunctionExecutionLog` that was updated by this mutation. */ - platformFunctionExecutionLog?: PlatformFunctionExecutionLog | null; - platformFunctionExecutionLogEdge?: PlatformFunctionExecutionLogEdge | null; + /** The `PlatformResourceStatusCheck` that was updated by this mutation. */ + platformResourceStatusCheck?: PlatformResourceStatusCheck | null; + platformResourceStatusCheckEdge?: PlatformResourceStatusCheckEdge | null; } -export type UpdatePlatformFunctionExecutionLogPayloadSelect = { +export type UpdatePlatformResourceStatusCheckPayloadSelect = { clientMutationId?: boolean; - platformFunctionExecutionLog?: { - select: PlatformFunctionExecutionLogSelect; + platformResourceStatusCheck?: { + select: PlatformResourceStatusCheckSelect; }; - platformFunctionExecutionLogEdge?: { - select: PlatformFunctionExecutionLogEdgeSelect; + platformResourceStatusCheckEdge?: { + select: PlatformResourceStatusCheckEdgeSelect; }; }; -export interface DeletePlatformFunctionExecutionLogPayload { +export interface DeletePlatformResourceStatusCheckPayload { clientMutationId?: string | null; - /** The `PlatformFunctionExecutionLog` that was deleted by this mutation. */ - platformFunctionExecutionLog?: PlatformFunctionExecutionLog | null; - platformFunctionExecutionLogEdge?: PlatformFunctionExecutionLogEdge | null; + /** The `PlatformResourceStatusCheck` that was deleted by this mutation. */ + platformResourceStatusCheck?: PlatformResourceStatusCheck | null; + platformResourceStatusCheckEdge?: PlatformResourceStatusCheckEdge | null; } -export type DeletePlatformFunctionExecutionLogPayloadSelect = { +export type DeletePlatformResourceStatusCheckPayloadSelect = { clientMutationId?: boolean; - platformFunctionExecutionLog?: { - select: PlatformFunctionExecutionLogSelect; + platformResourceStatusCheck?: { + select: PlatformResourceStatusCheckSelect; }; - platformFunctionExecutionLogEdge?: { - select: PlatformFunctionExecutionLogEdgeSelect; + platformResourceStatusCheckEdge?: { + select: PlatformResourceStatusCheckEdgeSelect; }; }; -export interface CreatePlatformFunctionInvocationAttemptPayload { +export interface CreatePlatformResourceUsageLogPayload { clientMutationId?: string | null; - /** The `PlatformFunctionInvocationAttempt` that was created by this mutation. */ - platformFunctionInvocationAttempt?: PlatformFunctionInvocationAttempt | null; - platformFunctionInvocationAttemptEdge?: PlatformFunctionInvocationAttemptEdge | null; + /** The `PlatformResourceUsageLog` that was created by this mutation. */ + platformResourceUsageLog?: PlatformResourceUsageLog | null; + platformResourceUsageLogEdge?: PlatformResourceUsageLogEdge | null; } -export type CreatePlatformFunctionInvocationAttemptPayloadSelect = { +export type CreatePlatformResourceUsageLogPayloadSelect = { clientMutationId?: boolean; - platformFunctionInvocationAttempt?: { - select: PlatformFunctionInvocationAttemptSelect; + platformResourceUsageLog?: { + select: PlatformResourceUsageLogSelect; }; - platformFunctionInvocationAttemptEdge?: { - select: PlatformFunctionInvocationAttemptEdgeSelect; + platformResourceUsageLogEdge?: { + select: PlatformResourceUsageLogEdgeSelect; }; }; -export interface UpdatePlatformFunctionInvocationAttemptPayload { +export interface UpdatePlatformResourceUsageLogPayload { clientMutationId?: string | null; - /** The `PlatformFunctionInvocationAttempt` that was updated by this mutation. */ - platformFunctionInvocationAttempt?: PlatformFunctionInvocationAttempt | null; - platformFunctionInvocationAttemptEdge?: PlatformFunctionInvocationAttemptEdge | null; + /** The `PlatformResourceUsageLog` that was updated by this mutation. */ + platformResourceUsageLog?: PlatformResourceUsageLog | null; + platformResourceUsageLogEdge?: PlatformResourceUsageLogEdge | null; } -export type UpdatePlatformFunctionInvocationAttemptPayloadSelect = { +export type UpdatePlatformResourceUsageLogPayloadSelect = { clientMutationId?: boolean; - platformFunctionInvocationAttempt?: { - select: PlatformFunctionInvocationAttemptSelect; + platformResourceUsageLog?: { + select: PlatformResourceUsageLogSelect; }; - platformFunctionInvocationAttemptEdge?: { - select: PlatformFunctionInvocationAttemptEdgeSelect; + platformResourceUsageLogEdge?: { + select: PlatformResourceUsageLogEdgeSelect; }; }; -export interface DeletePlatformFunctionInvocationAttemptPayload { +export interface DeletePlatformResourceUsageLogPayload { clientMutationId?: string | null; - /** The `PlatformFunctionInvocationAttempt` that was deleted by this mutation. */ - platformFunctionInvocationAttempt?: PlatformFunctionInvocationAttempt | null; - platformFunctionInvocationAttemptEdge?: PlatformFunctionInvocationAttemptEdge | null; + /** The `PlatformResourceUsageLog` that was deleted by this mutation. */ + platformResourceUsageLog?: PlatformResourceUsageLog | null; + platformResourceUsageLogEdge?: PlatformResourceUsageLogEdge | null; } -export type DeletePlatformFunctionInvocationAttemptPayloadSelect = { +export type DeletePlatformResourceUsageLogPayloadSelect = { clientMutationId?: boolean; - platformFunctionInvocationAttempt?: { - select: PlatformFunctionInvocationAttemptSelect; + platformResourceUsageLog?: { + select: PlatformResourceUsageLogSelect; }; - platformFunctionInvocationAttemptEdge?: { - select: PlatformFunctionInvocationAttemptEdgeSelect; + platformResourceUsageLogEdge?: { + select: PlatformResourceUsageLogEdgeSelect; }; }; -export interface CreatePlatformFunctionInvocationPayload { +export interface CreatePlatformResourceUsageSummaryPayload { clientMutationId?: string | null; - /** The `PlatformFunctionInvocation` that was created by this mutation. */ - platformFunctionInvocation?: PlatformFunctionInvocation | null; - platformFunctionInvocationEdge?: PlatformFunctionInvocationEdge | null; + /** The `PlatformResourceUsageSummary` that was created by this mutation. */ + platformResourceUsageSummary?: PlatformResourceUsageSummary | null; + platformResourceUsageSummaryEdge?: PlatformResourceUsageSummaryEdge | null; } -export type CreatePlatformFunctionInvocationPayloadSelect = { +export type CreatePlatformResourceUsageSummaryPayloadSelect = { clientMutationId?: boolean; - platformFunctionInvocation?: { - select: PlatformFunctionInvocationSelect; + platformResourceUsageSummary?: { + select: PlatformResourceUsageSummarySelect; }; - platformFunctionInvocationEdge?: { - select: PlatformFunctionInvocationEdgeSelect; + platformResourceUsageSummaryEdge?: { + select: PlatformResourceUsageSummaryEdgeSelect; }; }; -export interface UpdatePlatformFunctionInvocationPayload { +export interface UpdatePlatformResourceUsageSummaryPayload { clientMutationId?: string | null; - /** The `PlatformFunctionInvocation` that was updated by this mutation. */ - platformFunctionInvocation?: PlatformFunctionInvocation | null; - platformFunctionInvocationEdge?: PlatformFunctionInvocationEdge | null; + /** The `PlatformResourceUsageSummary` that was updated by this mutation. */ + platformResourceUsageSummary?: PlatformResourceUsageSummary | null; + platformResourceUsageSummaryEdge?: PlatformResourceUsageSummaryEdge | null; } -export type UpdatePlatformFunctionInvocationPayloadSelect = { +export type UpdatePlatformResourceUsageSummaryPayloadSelect = { clientMutationId?: boolean; - platformFunctionInvocation?: { - select: PlatformFunctionInvocationSelect; + platformResourceUsageSummary?: { + select: PlatformResourceUsageSummarySelect; }; - platformFunctionInvocationEdge?: { - select: PlatformFunctionInvocationEdgeSelect; + platformResourceUsageSummaryEdge?: { + select: PlatformResourceUsageSummaryEdgeSelect; }; }; -export interface DeletePlatformFunctionInvocationPayload { +export interface DeletePlatformResourceUsageSummaryPayload { clientMutationId?: string | null; - /** The `PlatformFunctionInvocation` that was deleted by this mutation. */ - platformFunctionInvocation?: PlatformFunctionInvocation | null; - platformFunctionInvocationEdge?: PlatformFunctionInvocationEdge | null; + /** The `PlatformResourceUsageSummary` that was deleted by this mutation. */ + platformResourceUsageSummary?: PlatformResourceUsageSummary | null; + platformResourceUsageSummaryEdge?: PlatformResourceUsageSummaryEdge | null; } -export type DeletePlatformFunctionInvocationPayloadSelect = { +export type DeletePlatformResourceUsageSummaryPayloadSelect = { clientMutationId?: boolean; - platformFunctionInvocation?: { - select: PlatformFunctionInvocationSelect; + platformResourceUsageSummary?: { + select: PlatformResourceUsageSummarySelect; }; - platformFunctionInvocationEdge?: { - select: PlatformFunctionInvocationEdgeSelect; + platformResourceUsageSummaryEdge?: { + select: PlatformResourceUsageSummaryEdgeSelect; }; }; -export interface CreatePlatformInfraCommitPayload { +export interface CreatePlatformWebhookEndpointPayload { clientMutationId?: string | null; - /** The `PlatformInfraCommit` that was created by this mutation. */ - platformInfraCommit?: PlatformInfraCommit | null; - platformInfraCommitEdge?: PlatformInfraCommitEdge | null; + /** The `PlatformWebhookEndpoint` that was created by this mutation. */ + platformWebhookEndpoint?: PlatformWebhookEndpoint | null; + platformWebhookEndpointEdge?: PlatformWebhookEndpointEdge | null; } -export type CreatePlatformInfraCommitPayloadSelect = { +export type CreatePlatformWebhookEndpointPayloadSelect = { clientMutationId?: boolean; - platformInfraCommit?: { - select: PlatformInfraCommitSelect; + platformWebhookEndpoint?: { + select: PlatformWebhookEndpointSelect; }; - platformInfraCommitEdge?: { - select: PlatformInfraCommitEdgeSelect; + platformWebhookEndpointEdge?: { + select: PlatformWebhookEndpointEdgeSelect; }; }; -export interface UpdatePlatformInfraCommitPayload { +export interface UpdatePlatformWebhookEndpointPayload { clientMutationId?: string | null; - /** The `PlatformInfraCommit` that was updated by this mutation. */ - platformInfraCommit?: PlatformInfraCommit | null; - platformInfraCommitEdge?: PlatformInfraCommitEdge | null; + /** The `PlatformWebhookEndpoint` that was updated by this mutation. */ + platformWebhookEndpoint?: PlatformWebhookEndpoint | null; + platformWebhookEndpointEdge?: PlatformWebhookEndpointEdge | null; } -export type UpdatePlatformInfraCommitPayloadSelect = { +export type UpdatePlatformWebhookEndpointPayloadSelect = { clientMutationId?: boolean; - platformInfraCommit?: { - select: PlatformInfraCommitSelect; + platformWebhookEndpoint?: { + select: PlatformWebhookEndpointSelect; }; - platformInfraCommitEdge?: { - select: PlatformInfraCommitEdgeSelect; + platformWebhookEndpointEdge?: { + select: PlatformWebhookEndpointEdgeSelect; }; }; -export interface DeletePlatformInfraCommitPayload { +export interface DeletePlatformWebhookEndpointPayload { clientMutationId?: string | null; - /** The `PlatformInfraCommit` that was deleted by this mutation. */ - platformInfraCommit?: PlatformInfraCommit | null; - platformInfraCommitEdge?: PlatformInfraCommitEdge | null; + /** The `PlatformWebhookEndpoint` that was deleted by this mutation. */ + platformWebhookEndpoint?: PlatformWebhookEndpoint | null; + platformWebhookEndpointEdge?: PlatformWebhookEndpointEdge | null; } -export type DeletePlatformInfraCommitPayloadSelect = { +export type DeletePlatformWebhookEndpointPayloadSelect = { clientMutationId?: boolean; - platformInfraCommit?: { - select: PlatformInfraCommitSelect; + platformWebhookEndpoint?: { + select: PlatformWebhookEndpointSelect; }; - platformInfraCommitEdge?: { - select: PlatformInfraCommitEdgeSelect; + platformWebhookEndpointEdge?: { + select: PlatformWebhookEndpointEdgeSelect; }; }; -export interface CreatePlatformInfraObjectPayload { +export interface CreatePlatformWebhookEventPayload { clientMutationId?: string | null; - /** The `PlatformInfraObject` that was created by this mutation. */ - platformInfraObject?: PlatformInfraObject | null; - platformInfraObjectEdge?: PlatformInfraObjectEdge | null; + /** The `PlatformWebhookEvent` that was created by this mutation. */ + platformWebhookEvent?: PlatformWebhookEvent | null; + platformWebhookEventEdge?: PlatformWebhookEventEdge | null; } -export type CreatePlatformInfraObjectPayloadSelect = { +export type CreatePlatformWebhookEventPayloadSelect = { clientMutationId?: boolean; - platformInfraObject?: { - select: PlatformInfraObjectSelect; + platformWebhookEvent?: { + select: PlatformWebhookEventSelect; }; - platformInfraObjectEdge?: { - select: PlatformInfraObjectEdgeSelect; + platformWebhookEventEdge?: { + select: PlatformWebhookEventEdgeSelect; }; }; -export interface UpdatePlatformInfraObjectPayload { +export interface UpdatePlatformWebhookEventPayload { clientMutationId?: string | null; - /** The `PlatformInfraObject` that was updated by this mutation. */ - platformInfraObject?: PlatformInfraObject | null; - platformInfraObjectEdge?: PlatformInfraObjectEdge | null; + /** The `PlatformWebhookEvent` that was updated by this mutation. */ + platformWebhookEvent?: PlatformWebhookEvent | null; + platformWebhookEventEdge?: PlatformWebhookEventEdge | null; } -export type UpdatePlatformInfraObjectPayloadSelect = { +export type UpdatePlatformWebhookEventPayloadSelect = { clientMutationId?: boolean; - platformInfraObject?: { - select: PlatformInfraObjectSelect; + platformWebhookEvent?: { + select: PlatformWebhookEventSelect; }; - platformInfraObjectEdge?: { - select: PlatformInfraObjectEdgeSelect; + platformWebhookEventEdge?: { + select: PlatformWebhookEventEdgeSelect; }; }; -export interface DeletePlatformInfraObjectPayload { +export interface DeletePlatformWebhookEventPayload { clientMutationId?: string | null; - /** The `PlatformInfraObject` that was deleted by this mutation. */ - platformInfraObject?: PlatformInfraObject | null; - platformInfraObjectEdge?: PlatformInfraObjectEdge | null; + /** The `PlatformWebhookEvent` that was deleted by this mutation. */ + platformWebhookEvent?: PlatformWebhookEvent | null; + platformWebhookEventEdge?: PlatformWebhookEventEdge | null; } -export type DeletePlatformInfraObjectPayloadSelect = { +export type DeletePlatformWebhookEventPayloadSelect = { clientMutationId?: boolean; - platformInfraObject?: { - select: PlatformInfraObjectSelect; + platformWebhookEvent?: { + select: PlatformWebhookEventSelect; }; - platformInfraObjectEdge?: { - select: PlatformInfraObjectEdgeSelect; + platformWebhookEventEdge?: { + select: PlatformWebhookEventEdgeSelect; }; }; -export interface CreatePlatformInfraRefPayload { +export interface CreateProposalCommentPayload { clientMutationId?: string | null; - /** The `PlatformInfraRef` that was created by this mutation. */ - platformInfraRef?: PlatformInfraRef | null; - platformInfraRefEdge?: PlatformInfraRefEdge | null; + /** The `ProposalComment` that was created by this mutation. */ + proposalComment?: ProposalComment | null; + proposalCommentEdge?: ProposalCommentEdge | null; } -export type CreatePlatformInfraRefPayloadSelect = { +export type CreateProposalCommentPayloadSelect = { clientMutationId?: boolean; - platformInfraRef?: { - select: PlatformInfraRefSelect; + proposalComment?: { + select: ProposalCommentSelect; }; - platformInfraRefEdge?: { - select: PlatformInfraRefEdgeSelect; + proposalCommentEdge?: { + select: ProposalCommentEdgeSelect; }; }; -export interface UpdatePlatformInfraRefPayload { +export interface UpdateProposalCommentPayload { clientMutationId?: string | null; - /** The `PlatformInfraRef` that was updated by this mutation. */ - platformInfraRef?: PlatformInfraRef | null; - platformInfraRefEdge?: PlatformInfraRefEdge | null; + /** The `ProposalComment` that was updated by this mutation. */ + proposalComment?: ProposalComment | null; + proposalCommentEdge?: ProposalCommentEdge | null; } -export type UpdatePlatformInfraRefPayloadSelect = { +export type UpdateProposalCommentPayloadSelect = { clientMutationId?: boolean; - platformInfraRef?: { - select: PlatformInfraRefSelect; + proposalComment?: { + select: ProposalCommentSelect; }; - platformInfraRefEdge?: { - select: PlatformInfraRefEdgeSelect; + proposalCommentEdge?: { + select: ProposalCommentEdgeSelect; }; }; -export interface DeletePlatformInfraRefPayload { +export interface DeleteProposalCommentPayload { clientMutationId?: string | null; - /** The `PlatformInfraRef` that was deleted by this mutation. */ - platformInfraRef?: PlatformInfraRef | null; - platformInfraRefEdge?: PlatformInfraRefEdge | null; + /** The `ProposalComment` that was deleted by this mutation. */ + proposalComment?: ProposalComment | null; + proposalCommentEdge?: ProposalCommentEdge | null; } -export type DeletePlatformInfraRefPayloadSelect = { +export type DeleteProposalCommentPayloadSelect = { clientMutationId?: boolean; - platformInfraRef?: { - select: PlatformInfraRefSelect; + proposalComment?: { + select: ProposalCommentSelect; }; - platformInfraRefEdge?: { - select: PlatformInfraRefEdgeSelect; + proposalCommentEdge?: { + select: ProposalCommentEdgeSelect; }; }; -export interface CreatePlatformInfraStorePayload { +export interface CreateProposalPayload { clientMutationId?: string | null; - /** The `PlatformInfraStore` that was created by this mutation. */ - platformInfraStore?: PlatformInfraStore | null; - platformInfraStoreEdge?: PlatformInfraStoreEdge | null; + /** The `Proposal` that was created by this mutation. */ + proposal?: Proposal | null; + proposalEdge?: ProposalEdge | null; } -export type CreatePlatformInfraStorePayloadSelect = { +export type CreateProposalPayloadSelect = { clientMutationId?: boolean; - platformInfraStore?: { - select: PlatformInfraStoreSelect; + proposal?: { + select: ProposalSelect; }; - platformInfraStoreEdge?: { - select: PlatformInfraStoreEdgeSelect; + proposalEdge?: { + select: ProposalEdgeSelect; }; }; -export interface UpdatePlatformInfraStorePayload { +export interface UpdateProposalPayload { clientMutationId?: string | null; - /** The `PlatformInfraStore` that was updated by this mutation. */ - platformInfraStore?: PlatformInfraStore | null; - platformInfraStoreEdge?: PlatformInfraStoreEdge | null; + /** The `Proposal` that was updated by this mutation. */ + proposal?: Proposal | null; + proposalEdge?: ProposalEdge | null; } -export type UpdatePlatformInfraStorePayloadSelect = { +export type UpdateProposalPayloadSelect = { clientMutationId?: boolean; - platformInfraStore?: { - select: PlatformInfraStoreSelect; + proposal?: { + select: ProposalSelect; }; - platformInfraStoreEdge?: { - select: PlatformInfraStoreEdgeSelect; + proposalEdge?: { + select: ProposalEdgeSelect; }; }; -export interface DeletePlatformInfraStorePayload { +export interface DeleteProposalPayload { clientMutationId?: string | null; - /** The `PlatformInfraStore` that was deleted by this mutation. */ - platformInfraStore?: PlatformInfraStore | null; - platformInfraStoreEdge?: PlatformInfraStoreEdge | null; + /** The `Proposal` that was deleted by this mutation. */ + proposal?: Proposal | null; + proposalEdge?: ProposalEdge | null; } -export type DeletePlatformInfraStorePayloadSelect = { +export type DeleteProposalPayloadSelect = { clientMutationId?: boolean; - platformInfraStore?: { - select: PlatformInfraStoreSelect; + proposal?: { + select: ProposalSelect; }; - platformInfraStoreEdge?: { - select: PlatformInfraStoreEdgeSelect; + proposalEdge?: { + select: ProposalEdgeSelect; }; }; -export interface CreatePlatformNamespacePayload { +export interface CreateProposalFileViewPayload { clientMutationId?: string | null; - /** The `PlatformNamespace` that was created by this mutation. */ - platformNamespace?: PlatformNamespace | null; - platformNamespaceEdge?: PlatformNamespaceEdge | null; + /** The `ProposalFileView` that was created by this mutation. */ + proposalFileView?: ProposalFileView | null; + proposalFileViewEdge?: ProposalFileViewEdge | null; } -export type CreatePlatformNamespacePayloadSelect = { +export type CreateProposalFileViewPayloadSelect = { clientMutationId?: boolean; - platformNamespace?: { - select: PlatformNamespaceSelect; + proposalFileView?: { + select: ProposalFileViewSelect; }; - platformNamespaceEdge?: { - select: PlatformNamespaceEdgeSelect; + proposalFileViewEdge?: { + select: ProposalFileViewEdgeSelect; }; }; -export interface UpdatePlatformNamespacePayload { +export interface UpdateProposalFileViewPayload { clientMutationId?: string | null; - /** The `PlatformNamespace` that was updated by this mutation. */ - platformNamespace?: PlatformNamespace | null; - platformNamespaceEdge?: PlatformNamespaceEdge | null; + /** The `ProposalFileView` that was updated by this mutation. */ + proposalFileView?: ProposalFileView | null; + proposalFileViewEdge?: ProposalFileViewEdge | null; } -export type UpdatePlatformNamespacePayloadSelect = { +export type UpdateProposalFileViewPayloadSelect = { clientMutationId?: boolean; - platformNamespace?: { - select: PlatformNamespaceSelect; + proposalFileView?: { + select: ProposalFileViewSelect; }; - platformNamespaceEdge?: { - select: PlatformNamespaceEdgeSelect; + proposalFileViewEdge?: { + select: ProposalFileViewEdgeSelect; }; }; -export interface DeletePlatformNamespacePayload { +export interface DeleteProposalFileViewPayload { clientMutationId?: string | null; - /** The `PlatformNamespace` that was deleted by this mutation. */ - platformNamespace?: PlatformNamespace | null; - platformNamespaceEdge?: PlatformNamespaceEdge | null; + /** The `ProposalFileView` that was deleted by this mutation. */ + proposalFileView?: ProposalFileView | null; + proposalFileViewEdge?: ProposalFileViewEdge | null; } -export type DeletePlatformNamespacePayloadSelect = { +export type DeleteProposalFileViewPayloadSelect = { clientMutationId?: boolean; - platformNamespace?: { - select: PlatformNamespaceSelect; + proposalFileView?: { + select: ProposalFileViewSelect; }; - platformNamespaceEdge?: { - select: PlatformNamespaceEdgeSelect; + proposalFileViewEdge?: { + select: ProposalFileViewEdgeSelect; }; }; -export interface CreatePlatformNamespaceEventPayload { +export interface CreateProposalReactionPayload { clientMutationId?: string | null; - /** The `PlatformNamespaceEvent` that was created by this mutation. */ - platformNamespaceEvent?: PlatformNamespaceEvent | null; - platformNamespaceEventEdge?: PlatformNamespaceEventEdge | null; + /** The `ProposalReaction` that was created by this mutation. */ + proposalReaction?: ProposalReaction | null; + proposalReactionEdge?: ProposalReactionEdge | null; } -export type CreatePlatformNamespaceEventPayloadSelect = { +export type CreateProposalReactionPayloadSelect = { clientMutationId?: boolean; - platformNamespaceEvent?: { - select: PlatformNamespaceEventSelect; + proposalReaction?: { + select: ProposalReactionSelect; }; - platformNamespaceEventEdge?: { - select: PlatformNamespaceEventEdgeSelect; + proposalReactionEdge?: { + select: ProposalReactionEdgeSelect; }; }; -export interface UpdatePlatformNamespaceEventPayload { +export interface UpdateProposalReactionPayload { clientMutationId?: string | null; - /** The `PlatformNamespaceEvent` that was updated by this mutation. */ - platformNamespaceEvent?: PlatformNamespaceEvent | null; - platformNamespaceEventEdge?: PlatformNamespaceEventEdge | null; + /** The `ProposalReaction` that was updated by this mutation. */ + proposalReaction?: ProposalReaction | null; + proposalReactionEdge?: ProposalReactionEdge | null; } -export type UpdatePlatformNamespaceEventPayloadSelect = { +export type UpdateProposalReactionPayloadSelect = { clientMutationId?: boolean; - platformNamespaceEvent?: { - select: PlatformNamespaceEventSelect; + proposalReaction?: { + select: ProposalReactionSelect; }; - platformNamespaceEventEdge?: { - select: PlatformNamespaceEventEdgeSelect; + proposalReactionEdge?: { + select: ProposalReactionEdgeSelect; }; }; -export interface DeletePlatformNamespaceEventPayload { +export interface DeleteProposalReactionPayload { clientMutationId?: string | null; - /** The `PlatformNamespaceEvent` that was deleted by this mutation. */ - platformNamespaceEvent?: PlatformNamespaceEvent | null; - platformNamespaceEventEdge?: PlatformNamespaceEventEdge | null; + /** The `ProposalReaction` that was deleted by this mutation. */ + proposalReaction?: ProposalReaction | null; + proposalReactionEdge?: ProposalReactionEdge | null; } -export type DeletePlatformNamespaceEventPayloadSelect = { +export type DeleteProposalReactionPayloadSelect = { clientMutationId?: boolean; - platformNamespaceEvent?: { - select: PlatformNamespaceEventSelect; + proposalReaction?: { + select: ProposalReactionSelect; }; - platformNamespaceEventEdge?: { - select: PlatformNamespaceEventEdgeSelect; + proposalReactionEdge?: { + select: ProposalReactionEdgeSelect; }; }; -export interface CreatePlatformResourcePayload { +export interface CreateProposalReviewPayload { clientMutationId?: string | null; - /** The `PlatformResource` that was created by this mutation. */ - platformResource?: PlatformResource | null; - platformResourceEdge?: PlatformResourceEdge | null; + /** The `ProposalReview` that was created by this mutation. */ + proposalReview?: ProposalReview | null; + proposalReviewEdge?: ProposalReviewEdge | null; } -export type CreatePlatformResourcePayloadSelect = { +export type CreateProposalReviewPayloadSelect = { clientMutationId?: boolean; - platformResource?: { - select: PlatformResourceSelect; + proposalReview?: { + select: ProposalReviewSelect; }; - platformResourceEdge?: { - select: PlatformResourceEdgeSelect; + proposalReviewEdge?: { + select: ProposalReviewEdgeSelect; }; }; -export interface UpdatePlatformResourcePayload { +export interface UpdateProposalReviewPayload { clientMutationId?: string | null; - /** The `PlatformResource` that was updated by this mutation. */ - platformResource?: PlatformResource | null; - platformResourceEdge?: PlatformResourceEdge | null; + /** The `ProposalReview` that was updated by this mutation. */ + proposalReview?: ProposalReview | null; + proposalReviewEdge?: ProposalReviewEdge | null; } -export type UpdatePlatformResourcePayloadSelect = { +export type UpdateProposalReviewPayloadSelect = { clientMutationId?: boolean; - platformResource?: { - select: PlatformResourceSelect; + proposalReview?: { + select: ProposalReviewSelect; }; - platformResourceEdge?: { - select: PlatformResourceEdgeSelect; + proposalReviewEdge?: { + select: ProposalReviewEdgeSelect; }; }; -export interface DeletePlatformResourcePayload { +export interface DeleteProposalReviewPayload { clientMutationId?: string | null; - /** The `PlatformResource` that was deleted by this mutation. */ - platformResource?: PlatformResource | null; - platformResourceEdge?: PlatformResourceEdge | null; + /** The `ProposalReview` that was deleted by this mutation. */ + proposalReview?: ProposalReview | null; + proposalReviewEdge?: ProposalReviewEdge | null; } -export type DeletePlatformResourcePayloadSelect = { +export type DeleteProposalReviewPayloadSelect = { clientMutationId?: boolean; - platformResource?: { - select: PlatformResourceSelect; + proposalReview?: { + select: ProposalReviewSelect; }; - platformResourceEdge?: { - select: PlatformResourceEdgeSelect; + proposalReviewEdge?: { + select: ProposalReviewEdgeSelect; }; }; -export interface CreatePlatformResourceDefinitionPayload { +export interface CreateProposalsChunkPayload { clientMutationId?: string | null; - /** The `PlatformResourceDefinition` that was created by this mutation. */ - platformResourceDefinition?: PlatformResourceDefinition | null; - platformResourceDefinitionEdge?: PlatformResourceDefinitionEdge | null; + /** The `ProposalsChunk` that was created by this mutation. */ + proposalsChunk?: ProposalsChunk | null; + proposalsChunkEdge?: ProposalsChunkEdge | null; } -export type CreatePlatformResourceDefinitionPayloadSelect = { +export type CreateProposalsChunkPayloadSelect = { clientMutationId?: boolean; - platformResourceDefinition?: { - select: PlatformResourceDefinitionSelect; + proposalsChunk?: { + select: ProposalsChunkSelect; }; - platformResourceDefinitionEdge?: { - select: PlatformResourceDefinitionEdgeSelect; + proposalsChunkEdge?: { + select: ProposalsChunkEdgeSelect; }; }; -export interface UpdatePlatformResourceDefinitionPayload { +export interface UpdateProposalsChunkPayload { clientMutationId?: string | null; - /** The `PlatformResourceDefinition` that was updated by this mutation. */ - platformResourceDefinition?: PlatformResourceDefinition | null; - platformResourceDefinitionEdge?: PlatformResourceDefinitionEdge | null; + /** The `ProposalsChunk` that was updated by this mutation. */ + proposalsChunk?: ProposalsChunk | null; + proposalsChunkEdge?: ProposalsChunkEdge | null; } -export type UpdatePlatformResourceDefinitionPayloadSelect = { +export type UpdateProposalsChunkPayloadSelect = { clientMutationId?: boolean; - platformResourceDefinition?: { - select: PlatformResourceDefinitionSelect; + proposalsChunk?: { + select: ProposalsChunkSelect; }; - platformResourceDefinitionEdge?: { - select: PlatformResourceDefinitionEdgeSelect; + proposalsChunkEdge?: { + select: ProposalsChunkEdgeSelect; }; }; -export interface DeletePlatformResourceDefinitionPayload { +export interface DeleteProposalsChunkPayload { clientMutationId?: string | null; - /** The `PlatformResourceDefinition` that was deleted by this mutation. */ - platformResourceDefinition?: PlatformResourceDefinition | null; - platformResourceDefinitionEdge?: PlatformResourceDefinitionEdge | null; + /** The `ProposalsChunk` that was deleted by this mutation. */ + proposalsChunk?: ProposalsChunk | null; + proposalsChunkEdge?: ProposalsChunkEdge | null; } -export type DeletePlatformResourceDefinitionPayloadSelect = { +export type DeleteProposalsChunkPayloadSelect = { clientMutationId?: boolean; - platformResourceDefinition?: { - select: PlatformResourceDefinitionSelect; + proposalsChunk?: { + select: ProposalsChunkSelect; }; - platformResourceDefinitionEdge?: { - select: PlatformResourceDefinitionEdgeSelect; + proposalsChunkEdge?: { + select: ProposalsChunkEdgeSelect; }; }; -export interface CreatePlatformResourceEventPayload { +export interface CreateRegistryBindingPayload { clientMutationId?: string | null; - /** The `PlatformResourceEvent` that was created by this mutation. */ - platformResourceEvent?: PlatformResourceEvent | null; - platformResourceEventEdge?: PlatformResourceEventEdge | null; + /** The `RegistryBinding` that was created by this mutation. */ + registryBinding?: RegistryBinding | null; + registryBindingEdge?: RegistryBindingEdge | null; } -export type CreatePlatformResourceEventPayloadSelect = { +export type CreateRegistryBindingPayloadSelect = { clientMutationId?: boolean; - platformResourceEvent?: { - select: PlatformResourceEventSelect; + registryBinding?: { + select: RegistryBindingSelect; }; - platformResourceEventEdge?: { - select: PlatformResourceEventEdgeSelect; + registryBindingEdge?: { + select: RegistryBindingEdgeSelect; }; }; -export interface UpdatePlatformResourceEventPayload { +export interface UpdateRegistryBindingPayload { clientMutationId?: string | null; - /** The `PlatformResourceEvent` that was updated by this mutation. */ - platformResourceEvent?: PlatformResourceEvent | null; - platformResourceEventEdge?: PlatformResourceEventEdge | null; + /** The `RegistryBinding` that was updated by this mutation. */ + registryBinding?: RegistryBinding | null; + registryBindingEdge?: RegistryBindingEdge | null; } -export type UpdatePlatformResourceEventPayloadSelect = { +export type UpdateRegistryBindingPayloadSelect = { clientMutationId?: boolean; - platformResourceEvent?: { - select: PlatformResourceEventSelect; + registryBinding?: { + select: RegistryBindingSelect; }; - platformResourceEventEdge?: { - select: PlatformResourceEventEdgeSelect; + registryBindingEdge?: { + select: RegistryBindingEdgeSelect; }; }; -export interface DeletePlatformResourceEventPayload { +export interface DeleteRegistryBindingPayload { clientMutationId?: string | null; - /** The `PlatformResourceEvent` that was deleted by this mutation. */ - platformResourceEvent?: PlatformResourceEvent | null; - platformResourceEventEdge?: PlatformResourceEventEdge | null; + /** The `RegistryBinding` that was deleted by this mutation. */ + registryBinding?: RegistryBinding | null; + registryBindingEdge?: RegistryBindingEdge | null; } -export type DeletePlatformResourceEventPayloadSelect = { +export type DeleteRegistryBindingPayloadSelect = { clientMutationId?: boolean; - platformResourceEvent?: { - select: PlatformResourceEventSelect; + registryBinding?: { + select: RegistryBindingSelect; }; - platformResourceEventEdge?: { - select: PlatformResourceEventEdgeSelect; + registryBindingEdge?: { + select: RegistryBindingEdgeSelect; }; }; -export interface CreatePlatformResourceInstallationPayload { +export interface CreateRegistryPayload { clientMutationId?: string | null; - /** The `PlatformResourceInstallation` that was created by this mutation. */ - platformResourceInstallation?: PlatformResourceInstallation | null; - platformResourceInstallationEdge?: PlatformResourceInstallationEdge | null; + /** The `Registry` that was created by this mutation. */ + registry?: Registry | null; + registryEdge?: RegistryEdge | null; } -export type CreatePlatformResourceInstallationPayloadSelect = { +export type CreateRegistryPayloadSelect = { clientMutationId?: boolean; - platformResourceInstallation?: { - select: PlatformResourceInstallationSelect; + registry?: { + select: RegistrySelect; }; - platformResourceInstallationEdge?: { - select: PlatformResourceInstallationEdgeSelect; + registryEdge?: { + select: RegistryEdgeSelect; }; }; -export interface UpdatePlatformResourceInstallationPayload { +export interface UpdateRegistryPayload { clientMutationId?: string | null; - /** The `PlatformResourceInstallation` that was updated by this mutation. */ - platformResourceInstallation?: PlatformResourceInstallation | null; - platformResourceInstallationEdge?: PlatformResourceInstallationEdge | null; + /** The `Registry` that was updated by this mutation. */ + registry?: Registry | null; + registryEdge?: RegistryEdge | null; } -export type UpdatePlatformResourceInstallationPayloadSelect = { +export type UpdateRegistryPayloadSelect = { clientMutationId?: boolean; - platformResourceInstallation?: { - select: PlatformResourceInstallationSelect; + registry?: { + select: RegistrySelect; }; - platformResourceInstallationEdge?: { - select: PlatformResourceInstallationEdgeSelect; + registryEdge?: { + select: RegistryEdgeSelect; }; }; -export interface DeletePlatformResourceInstallationPayload { +export interface DeleteRegistryPayload { clientMutationId?: string | null; - /** The `PlatformResourceInstallation` that was deleted by this mutation. */ - platformResourceInstallation?: PlatformResourceInstallation | null; - platformResourceInstallationEdge?: PlatformResourceInstallationEdge | null; + /** The `Registry` that was deleted by this mutation. */ + registry?: Registry | null; + registryEdge?: RegistryEdge | null; } -export type DeletePlatformResourceInstallationPayloadSelect = { +export type DeleteRegistryPayloadSelect = { clientMutationId?: boolean; - platformResourceInstallation?: { - select: PlatformResourceInstallationSelect; + registry?: { + select: RegistrySelect; }; - platformResourceInstallationEdge?: { - select: PlatformResourceInstallationEdgeSelect; + registryEdge?: { + select: RegistryEdgeSelect; }; }; -export interface CreatePlatformResourceStatusCheckPayload { +export interface CreateRegistryGrantPayload { clientMutationId?: string | null; - /** The `PlatformResourceStatusCheck` that was created by this mutation. */ - platformResourceStatusCheck?: PlatformResourceStatusCheck | null; - platformResourceStatusCheckEdge?: PlatformResourceStatusCheckEdge | null; + /** The `RegistryGrant` that was created by this mutation. */ + registryGrant?: RegistryGrant | null; + registryGrantEdge?: RegistryGrantEdge | null; } -export type CreatePlatformResourceStatusCheckPayloadSelect = { +export type CreateRegistryGrantPayloadSelect = { clientMutationId?: boolean; - platformResourceStatusCheck?: { - select: PlatformResourceStatusCheckSelect; + registryGrant?: { + select: RegistryGrantSelect; }; - platformResourceStatusCheckEdge?: { - select: PlatformResourceStatusCheckEdgeSelect; + registryGrantEdge?: { + select: RegistryGrantEdgeSelect; }; }; -export interface UpdatePlatformResourceStatusCheckPayload { +export interface UpdateRegistryGrantPayload { clientMutationId?: string | null; - /** The `PlatformResourceStatusCheck` that was updated by this mutation. */ - platformResourceStatusCheck?: PlatformResourceStatusCheck | null; - platformResourceStatusCheckEdge?: PlatformResourceStatusCheckEdge | null; + /** The `RegistryGrant` that was updated by this mutation. */ + registryGrant?: RegistryGrant | null; + registryGrantEdge?: RegistryGrantEdge | null; } -export type UpdatePlatformResourceStatusCheckPayloadSelect = { +export type UpdateRegistryGrantPayloadSelect = { clientMutationId?: boolean; - platformResourceStatusCheck?: { - select: PlatformResourceStatusCheckSelect; + registryGrant?: { + select: RegistryGrantSelect; }; - platformResourceStatusCheckEdge?: { - select: PlatformResourceStatusCheckEdgeSelect; + registryGrantEdge?: { + select: RegistryGrantEdgeSelect; }; }; -export interface DeletePlatformResourceStatusCheckPayload { +export interface DeleteRegistryGrantPayload { clientMutationId?: string | null; - /** The `PlatformResourceStatusCheck` that was deleted by this mutation. */ - platformResourceStatusCheck?: PlatformResourceStatusCheck | null; - platformResourceStatusCheckEdge?: PlatformResourceStatusCheckEdge | null; + /** The `RegistryGrant` that was deleted by this mutation. */ + registryGrant?: RegistryGrant | null; + registryGrantEdge?: RegistryGrantEdge | null; } -export type DeletePlatformResourceStatusCheckPayloadSelect = { +export type DeleteRegistryGrantPayloadSelect = { clientMutationId?: boolean; - platformResourceStatusCheck?: { - select: PlatformResourceStatusCheckSelect; + registryGrant?: { + select: RegistryGrantSelect; }; - platformResourceStatusCheckEdge?: { - select: PlatformResourceStatusCheckEdgeSelect; + registryGrantEdge?: { + select: RegistryGrantEdgeSelect; }; }; -export interface CreatePlatformResourceUsageLogPayload { +export interface CreateRepositoryPayload { clientMutationId?: string | null; - /** The `PlatformResourceUsageLog` that was created by this mutation. */ - platformResourceUsageLog?: PlatformResourceUsageLog | null; - platformResourceUsageLogEdge?: PlatformResourceUsageLogEdge | null; + /** The `Repository` that was created by this mutation. */ + repository?: Repository | null; + repositoryEdge?: RepositoryEdge | null; } -export type CreatePlatformResourceUsageLogPayloadSelect = { +export type CreateRepositoryPayloadSelect = { clientMutationId?: boolean; - platformResourceUsageLog?: { - select: PlatformResourceUsageLogSelect; + repository?: { + select: RepositorySelect; }; - platformResourceUsageLogEdge?: { - select: PlatformResourceUsageLogEdgeSelect; + repositoryEdge?: { + select: RepositoryEdgeSelect; }; }; -export interface UpdatePlatformResourceUsageLogPayload { +export interface UpdateRepositoryPayload { clientMutationId?: string | null; - /** The `PlatformResourceUsageLog` that was updated by this mutation. */ - platformResourceUsageLog?: PlatformResourceUsageLog | null; - platformResourceUsageLogEdge?: PlatformResourceUsageLogEdge | null; + /** The `Repository` that was updated by this mutation. */ + repository?: Repository | null; + repositoryEdge?: RepositoryEdge | null; } -export type UpdatePlatformResourceUsageLogPayloadSelect = { +export type UpdateRepositoryPayloadSelect = { clientMutationId?: boolean; - platformResourceUsageLog?: { - select: PlatformResourceUsageLogSelect; + repository?: { + select: RepositorySelect; }; - platformResourceUsageLogEdge?: { - select: PlatformResourceUsageLogEdgeSelect; + repositoryEdge?: { + select: RepositoryEdgeSelect; }; }; -export interface DeletePlatformResourceUsageLogPayload { +export interface DeleteRepositoryPayload { clientMutationId?: string | null; - /** The `PlatformResourceUsageLog` that was deleted by this mutation. */ - platformResourceUsageLog?: PlatformResourceUsageLog | null; - platformResourceUsageLogEdge?: PlatformResourceUsageLogEdge | null; + /** The `Repository` that was deleted by this mutation. */ + repository?: Repository | null; + repositoryEdge?: RepositoryEdge | null; } -export type DeletePlatformResourceUsageLogPayloadSelect = { +export type DeleteRepositoryPayloadSelect = { clientMutationId?: boolean; - platformResourceUsageLog?: { - select: PlatformResourceUsageLogSelect; + repository?: { + select: RepositorySelect; }; - platformResourceUsageLogEdge?: { - select: PlatformResourceUsageLogEdgeSelect; + repositoryEdge?: { + select: RepositoryEdgeSelect; }; }; -export interface CreatePlatformResourceUsageSummaryPayload { +export interface CreateRepositoryEventPayload { clientMutationId?: string | null; - /** The `PlatformResourceUsageSummary` that was created by this mutation. */ - platformResourceUsageSummary?: PlatformResourceUsageSummary | null; - platformResourceUsageSummaryEdge?: PlatformResourceUsageSummaryEdge | null; + /** The `RepositoryEvent` that was created by this mutation. */ + repositoryEvent?: RepositoryEvent | null; + repositoryEventEdge?: RepositoryEventEdge | null; } -export type CreatePlatformResourceUsageSummaryPayloadSelect = { +export type CreateRepositoryEventPayloadSelect = { clientMutationId?: boolean; - platformResourceUsageSummary?: { - select: PlatformResourceUsageSummarySelect; + repositoryEvent?: { + select: RepositoryEventSelect; }; - platformResourceUsageSummaryEdge?: { - select: PlatformResourceUsageSummaryEdgeSelect; + repositoryEventEdge?: { + select: RepositoryEventEdgeSelect; }; }; -export interface UpdatePlatformResourceUsageSummaryPayload { +export interface UpdateRepositoryEventPayload { clientMutationId?: string | null; - /** The `PlatformResourceUsageSummary` that was updated by this mutation. */ - platformResourceUsageSummary?: PlatformResourceUsageSummary | null; - platformResourceUsageSummaryEdge?: PlatformResourceUsageSummaryEdge | null; + /** The `RepositoryEvent` that was updated by this mutation. */ + repositoryEvent?: RepositoryEvent | null; + repositoryEventEdge?: RepositoryEventEdge | null; } -export type UpdatePlatformResourceUsageSummaryPayloadSelect = { +export type UpdateRepositoryEventPayloadSelect = { clientMutationId?: boolean; - platformResourceUsageSummary?: { - select: PlatformResourceUsageSummarySelect; + repositoryEvent?: { + select: RepositoryEventSelect; }; - platformResourceUsageSummaryEdge?: { - select: PlatformResourceUsageSummaryEdgeSelect; + repositoryEventEdge?: { + select: RepositoryEventEdgeSelect; }; }; -export interface DeletePlatformResourceUsageSummaryPayload { +export interface DeleteRepositoryEventPayload { clientMutationId?: string | null; - /** The `PlatformResourceUsageSummary` that was deleted by this mutation. */ - platformResourceUsageSummary?: PlatformResourceUsageSummary | null; - platformResourceUsageSummaryEdge?: PlatformResourceUsageSummaryEdge | null; + /** The `RepositoryEvent` that was deleted by this mutation. */ + repositoryEvent?: RepositoryEvent | null; + repositoryEventEdge?: RepositoryEventEdge | null; } -export type DeletePlatformResourceUsageSummaryPayloadSelect = { +export type DeleteRepositoryEventPayloadSelect = { clientMutationId?: boolean; - platformResourceUsageSummary?: { - select: PlatformResourceUsageSummarySelect; + repositoryEvent?: { + select: RepositoryEventSelect; }; - platformResourceUsageSummaryEdge?: { - select: PlatformResourceUsageSummaryEdgeSelect; + repositoryEventEdge?: { + select: RepositoryEventEdgeSelect; }; }; -export interface CreatePlatformWebhookEndpointPayload { +export interface CreateRepositoryRequiredCheckPayload { clientMutationId?: string | null; - /** The `PlatformWebhookEndpoint` that was created by this mutation. */ - platformWebhookEndpoint?: PlatformWebhookEndpoint | null; - platformWebhookEndpointEdge?: PlatformWebhookEndpointEdge | null; + /** The `RepositoryRequiredCheck` that was created by this mutation. */ + repositoryRequiredCheck?: RepositoryRequiredCheck | null; + repositoryRequiredCheckEdge?: RepositoryRequiredCheckEdge | null; } -export type CreatePlatformWebhookEndpointPayloadSelect = { +export type CreateRepositoryRequiredCheckPayloadSelect = { clientMutationId?: boolean; - platformWebhookEndpoint?: { - select: PlatformWebhookEndpointSelect; + repositoryRequiredCheck?: { + select: RepositoryRequiredCheckSelect; }; - platformWebhookEndpointEdge?: { - select: PlatformWebhookEndpointEdgeSelect; + repositoryRequiredCheckEdge?: { + select: RepositoryRequiredCheckEdgeSelect; }; }; -export interface UpdatePlatformWebhookEndpointPayload { +export interface UpdateRepositoryRequiredCheckPayload { clientMutationId?: string | null; - /** The `PlatformWebhookEndpoint` that was updated by this mutation. */ - platformWebhookEndpoint?: PlatformWebhookEndpoint | null; - platformWebhookEndpointEdge?: PlatformWebhookEndpointEdge | null; + /** The `RepositoryRequiredCheck` that was updated by this mutation. */ + repositoryRequiredCheck?: RepositoryRequiredCheck | null; + repositoryRequiredCheckEdge?: RepositoryRequiredCheckEdge | null; } -export type UpdatePlatformWebhookEndpointPayloadSelect = { +export type UpdateRepositoryRequiredCheckPayloadSelect = { clientMutationId?: boolean; - platformWebhookEndpoint?: { - select: PlatformWebhookEndpointSelect; + repositoryRequiredCheck?: { + select: RepositoryRequiredCheckSelect; }; - platformWebhookEndpointEdge?: { - select: PlatformWebhookEndpointEdgeSelect; + repositoryRequiredCheckEdge?: { + select: RepositoryRequiredCheckEdgeSelect; }; }; -export interface DeletePlatformWebhookEndpointPayload { +export interface DeleteRepositoryRequiredCheckPayload { clientMutationId?: string | null; - /** The `PlatformWebhookEndpoint` that was deleted by this mutation. */ - platformWebhookEndpoint?: PlatformWebhookEndpoint | null; - platformWebhookEndpointEdge?: PlatformWebhookEndpointEdge | null; + /** The `RepositoryRequiredCheck` that was deleted by this mutation. */ + repositoryRequiredCheck?: RepositoryRequiredCheck | null; + repositoryRequiredCheckEdge?: RepositoryRequiredCheckEdge | null; } -export type DeletePlatformWebhookEndpointPayloadSelect = { +export type DeleteRepositoryRequiredCheckPayloadSelect = { clientMutationId?: boolean; - platformWebhookEndpoint?: { - select: PlatformWebhookEndpointSelect; + repositoryRequiredCheck?: { + select: RepositoryRequiredCheckSelect; }; - platformWebhookEndpointEdge?: { - select: PlatformWebhookEndpointEdgeSelect; + repositoryRequiredCheckEdge?: { + select: RepositoryRequiredCheckEdgeSelect; }; }; -export interface CreatePlatformWebhookEventPayload { +export interface CreateRepositoryWorkflowPayload { clientMutationId?: string | null; - /** The `PlatformWebhookEvent` that was created by this mutation. */ - platformWebhookEvent?: PlatformWebhookEvent | null; - platformWebhookEventEdge?: PlatformWebhookEventEdge | null; + /** The `RepositoryWorkflow` that was created by this mutation. */ + repositoryWorkflow?: RepositoryWorkflow | null; + repositoryWorkflowEdge?: RepositoryWorkflowEdge | null; } -export type CreatePlatformWebhookEventPayloadSelect = { +export type CreateRepositoryWorkflowPayloadSelect = { clientMutationId?: boolean; - platformWebhookEvent?: { - select: PlatformWebhookEventSelect; + repositoryWorkflow?: { + select: RepositoryWorkflowSelect; }; - platformWebhookEventEdge?: { - select: PlatformWebhookEventEdgeSelect; + repositoryWorkflowEdge?: { + select: RepositoryWorkflowEdgeSelect; }; }; -export interface UpdatePlatformWebhookEventPayload { +export interface UpdateRepositoryWorkflowPayload { clientMutationId?: string | null; - /** The `PlatformWebhookEvent` that was updated by this mutation. */ - platformWebhookEvent?: PlatformWebhookEvent | null; - platformWebhookEventEdge?: PlatformWebhookEventEdge | null; + /** The `RepositoryWorkflow` that was updated by this mutation. */ + repositoryWorkflow?: RepositoryWorkflow | null; + repositoryWorkflowEdge?: RepositoryWorkflowEdge | null; } -export type UpdatePlatformWebhookEventPayloadSelect = { +export type UpdateRepositoryWorkflowPayloadSelect = { clientMutationId?: boolean; - platformWebhookEvent?: { - select: PlatformWebhookEventSelect; + repositoryWorkflow?: { + select: RepositoryWorkflowSelect; }; - platformWebhookEventEdge?: { - select: PlatformWebhookEventEdgeSelect; + repositoryWorkflowEdge?: { + select: RepositoryWorkflowEdgeSelect; }; }; -export interface DeletePlatformWebhookEventPayload { +export interface DeleteRepositoryWorkflowPayload { clientMutationId?: string | null; - /** The `PlatformWebhookEvent` that was deleted by this mutation. */ - platformWebhookEvent?: PlatformWebhookEvent | null; - platformWebhookEventEdge?: PlatformWebhookEventEdge | null; + /** The `RepositoryWorkflow` that was deleted by this mutation. */ + repositoryWorkflow?: RepositoryWorkflow | null; + repositoryWorkflowEdge?: RepositoryWorkflowEdge | null; } -export type DeletePlatformWebhookEventPayloadSelect = { +export type DeleteRepositoryWorkflowPayloadSelect = { clientMutationId?: boolean; - platformWebhookEvent?: { - select: PlatformWebhookEventSelect; + repositoryWorkflow?: { + select: RepositoryWorkflowSelect; }; - platformWebhookEventEdge?: { - select: PlatformWebhookEventEdgeSelect; + repositoryWorkflowEdge?: { + select: RepositoryWorkflowEdgeSelect; }; }; export interface CreateResourcePayload { @@ -16822,34 +33334,238 @@ export type CreateWebhookEventPayloadSelect = { select: WebhookEventEdgeSelect; }; }; -export interface UpdateWebhookEventPayload { - clientMutationId?: string | null; - /** The `WebhookEvent` that was updated by this mutation. */ - webhookEvent?: WebhookEvent | null; - webhookEventEdge?: WebhookEventEdge | null; +export interface UpdateWebhookEventPayload { + clientMutationId?: string | null; + /** The `WebhookEvent` that was updated by this mutation. */ + webhookEvent?: WebhookEvent | null; + webhookEventEdge?: WebhookEventEdge | null; +} +export type UpdateWebhookEventPayloadSelect = { + clientMutationId?: boolean; + webhookEvent?: { + select: WebhookEventSelect; + }; + webhookEventEdge?: { + select: WebhookEventEdgeSelect; + }; +}; +export interface DeleteWebhookEventPayload { + clientMutationId?: string | null; + /** The `WebhookEvent` that was deleted by this mutation. */ + webhookEvent?: WebhookEvent | null; + webhookEventEdge?: WebhookEventEdge | null; +} +export type DeleteWebhookEventPayloadSelect = { + clientMutationId?: boolean; + webhookEvent?: { + select: WebhookEventSelect; + }; + webhookEventEdge?: { + select: WebhookEventEdgeSelect; + }; +}; +/** A `DatabaseGraphCommit` edge in the connection. */ +export interface DatabaseGraphCommitEdge { + cursor?: string | null; + /** The `DatabaseGraphCommit` at the end of the edge. */ + node?: DatabaseGraphCommit | null; +} +export type DatabaseGraphCommitEdgeSelect = { + cursor?: boolean; + node?: { + select: DatabaseGraphCommitSelect; + }; +}; +/** A `FunctionInvocation` edge in the connection. */ +export interface FunctionInvocationEdge { + cursor?: string | null; + /** The `FunctionInvocation` at the end of the edge. */ + node?: FunctionInvocation | null; +} +export type FunctionInvocationEdgeSelect = { + cursor?: boolean; + node?: { + 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 `PlatformFunctionInvocation` edge in the connection. */ +export interface PlatformFunctionInvocationEdge { + cursor?: string | null; + /** The `PlatformFunctionInvocation` at the end of the edge. */ + node?: PlatformFunctionInvocation | null; +} +export type PlatformFunctionInvocationEdgeSelect = { + cursor?: boolean; + node?: { + 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 `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 `Build` edge in the connection. */ +export interface BuildEdge { + cursor?: string | null; + /** The `Build` at the end of the edge. */ + node?: Build | null; +} +export type BuildEdgeSelect = { + cursor?: boolean; + node?: { + select: BuildSelect; + }; +}; +/** A `BuildStep` edge in the connection. */ +export interface BuildStepEdge { + cursor?: string | null; + /** The `BuildStep` at the end of the edge. */ + node?: BuildStep | null; +} +export type BuildStepEdgeSelect = { + cursor?: boolean; + node?: { + select: BuildStepSelect; + }; +}; +/** A `BuilderBinding` edge in the connection. */ +export interface BuilderBindingEdge { + cursor?: string | null; + /** The `BuilderBinding` at the end of the edge. */ + node?: BuilderBinding | null; +} +export type BuilderBindingEdgeSelect = { + cursor?: boolean; + node?: { + select: BuilderBindingSelect; + }; +}; +/** 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 `DatabaseFunctionGraph` edge in the connection. */ +export interface DatabaseFunctionGraphEdge { + cursor?: string | null; + /** The `DatabaseFunctionGraph` at the end of the edge. */ + node?: DatabaseFunctionGraph | null; +} +export type DatabaseFunctionGraphEdgeSelect = { + cursor?: boolean; + node?: { + select: DatabaseFunctionGraphSelect; + }; +}; +/** A `DatabaseFunctionGraphExecution` edge in the connection. */ +export interface DatabaseFunctionGraphExecutionEdge { + cursor?: string | null; + /** The `DatabaseFunctionGraphExecution` at the end of the edge. */ + node?: DatabaseFunctionGraphExecution | null; +} +export type DatabaseFunctionGraphExecutionEdgeSelect = { + cursor?: boolean; + node?: { + select: DatabaseFunctionGraphExecutionSelect; + }; +}; +/** A `DatabaseFunctionGraphExecutionNodeState` edge in the connection. */ +export interface DatabaseFunctionGraphExecutionNodeStateEdge { + cursor?: string | null; + /** The `DatabaseFunctionGraphExecutionNodeState` at the end of the edge. */ + node?: DatabaseFunctionGraphExecutionNodeState | null; +} +export type DatabaseFunctionGraphExecutionNodeStateEdgeSelect = { + cursor?: boolean; + node?: { + select: DatabaseFunctionGraphExecutionNodeStateSelect; + }; +}; +/** A `DatabaseFunctionGraphExecutionOutput` edge in the connection. */ +export interface DatabaseFunctionGraphExecutionOutputEdge { + cursor?: string | null; + /** The `DatabaseFunctionGraphExecutionOutput` at the end of the edge. */ + node?: DatabaseFunctionGraphExecutionOutput | null; +} +export type DatabaseFunctionGraphExecutionOutputEdgeSelect = { + cursor?: boolean; + node?: { + select: DatabaseFunctionGraphExecutionOutputSelect; + }; +}; +/** A `DatabaseGraphObject` edge in the connection. */ +export interface DatabaseGraphObjectEdge { + cursor?: string | null; + /** The `DatabaseGraphObject` at the end of the edge. */ + node?: DatabaseGraphObject | null; } -export type UpdateWebhookEventPayloadSelect = { - clientMutationId?: boolean; - webhookEvent?: { - select: WebhookEventSelect; - }; - webhookEventEdge?: { - select: WebhookEventEdgeSelect; +export type DatabaseGraphObjectEdgeSelect = { + cursor?: boolean; + node?: { + select: DatabaseGraphObjectSelect; }; }; -export interface DeleteWebhookEventPayload { - clientMutationId?: string | null; - /** The `WebhookEvent` that was deleted by this mutation. */ - webhookEvent?: WebhookEvent | null; - webhookEventEdge?: WebhookEventEdge | null; +/** A `DatabaseGraphRef` edge in the connection. */ +export interface DatabaseGraphRefEdge { + cursor?: string | null; + /** The `DatabaseGraphRef` at the end of the edge. */ + node?: DatabaseGraphRef | null; } -export type DeleteWebhookEventPayloadSelect = { - clientMutationId?: boolean; - webhookEvent?: { - select: WebhookEventSelect; +export type DatabaseGraphRefEdgeSelect = { + cursor?: boolean; + node?: { + select: DatabaseGraphRefSelect; }; - webhookEventEdge?: { - select: WebhookEventEdgeSelect; +}; +/** A `DatabaseGraphStore` edge in the connection. */ +export interface DatabaseGraphStoreEdge { + cursor?: string | null; + /** The `DatabaseGraphStore` at the end of the edge. */ + node?: DatabaseGraphStore | null; +} +export type DatabaseGraphStoreEdgeSelect = { + cursor?: boolean; + node?: { + select: DatabaseGraphStoreSelect; }; }; /** A `DbPreset` edge in the connection. */ @@ -16936,18 +33652,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; @@ -17044,28 +33748,28 @@ export type FunctionInvocationAttemptEdgeSelect = { select: FunctionInvocationAttemptSelect; }; }; -/** A `FunctionInvocation` edge in the connection. */ -export interface FunctionInvocationEdge { +/** A `Image` edge in the connection. */ +export interface ImageEdge { cursor?: string | null; - /** The `FunctionInvocation` at the end of the edge. */ - node?: FunctionInvocation | null; + /** The `Image` at the end of the edge. */ + node?: Image | null; } -export type FunctionInvocationEdgeSelect = { +export type ImageEdgeSelect = { cursor?: boolean; node?: { - select: FunctionInvocationSelect; + select: ImageSelect; }; }; -/** A `InfraCommit` edge in the connection. */ -export interface InfraCommitEdge { +/** A `ImageGrant` edge in the connection. */ +export interface ImageGrantEdge { cursor?: string | null; - /** The `InfraCommit` at the end of the edge. */ - node?: InfraCommit | null; + /** The `ImageGrant` at the end of the edge. */ + node?: ImageGrant | null; } -export type InfraCommitEdgeSelect = { +export type ImageGrantEdgeSelect = { cursor?: boolean; node?: { - select: InfraCommitSelect; + select: ImageGrantSelect; }; }; /** A `InfraObject` edge in the connection. */ @@ -17140,6 +33844,42 @@ export type NamespaceEventEdgeSelect = { select: NamespaceEventSelect; }; }; +/** A `PlatformBuild` edge in the connection. */ +export interface PlatformBuildEdge { + cursor?: string | null; + /** The `PlatformBuild` at the end of the edge. */ + node?: PlatformBuild | null; +} +export type PlatformBuildEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformBuildSelect; + }; +}; +/** A `PlatformBuildStep` edge in the connection. */ +export interface PlatformBuildStepEdge { + cursor?: string | null; + /** The `PlatformBuildStep` at the end of the edge. */ + node?: PlatformBuildStep | null; +} +export type PlatformBuildStepEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformBuildStepSelect; + }; +}; +/** A `PlatformBuilderBinding` edge in the connection. */ +export interface PlatformBuilderBindingEdge { + cursor?: string | null; + /** The `PlatformBuilderBinding` at the end of the edge. */ + node?: PlatformBuilderBinding | null; +} +export type PlatformBuilderBindingEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformBuilderBindingSelect; + }; +}; /** A `PlatformFunctionApiBinding` edge in the connection. */ export interface PlatformFunctionApiBindingEdge { cursor?: string | null; @@ -17224,28 +33964,28 @@ export type PlatformFunctionInvocationAttemptEdgeSelect = { select: PlatformFunctionInvocationAttemptSelect; }; }; -/** A `PlatformFunctionInvocation` edge in the connection. */ -export interface PlatformFunctionInvocationEdge { +/** A `PlatformImage` edge in the connection. */ +export interface PlatformImageEdge { cursor?: string | null; - /** The `PlatformFunctionInvocation` at the end of the edge. */ - node?: PlatformFunctionInvocation | null; + /** The `PlatformImage` at the end of the edge. */ + node?: PlatformImage | null; } -export type PlatformFunctionInvocationEdgeSelect = { +export type PlatformImageEdgeSelect = { cursor?: boolean; node?: { - select: PlatformFunctionInvocationSelect; + select: PlatformImageSelect; }; }; -/** A `PlatformInfraCommit` edge in the connection. */ -export interface PlatformInfraCommitEdge { +/** A `PlatformImageGrant` edge in the connection. */ +export interface PlatformImageGrantEdge { cursor?: string | null; - /** The `PlatformInfraCommit` at the end of the edge. */ - node?: PlatformInfraCommit | null; + /** The `PlatformImageGrant` at the end of the edge. */ + node?: PlatformImageGrant | null; } -export type PlatformInfraCommitEdgeSelect = { +export type PlatformImageGrantEdgeSelect = { cursor?: boolean; node?: { - select: PlatformInfraCommitSelect; + select: PlatformImageGrantSelect; }; }; /** A `PlatformInfraObject` edge in the connection. */ @@ -17284,6 +34024,30 @@ export type PlatformInfraStoreEdgeSelect = { select: PlatformInfraStoreSelect; }; }; +/** A `PlatformK8sResourceKind` edge in the connection. */ +export interface PlatformK8sResourceKindEdge { + cursor?: string | null; + /** The `PlatformK8sResourceKind` at the end of the edge. */ + node?: PlatformK8sResourceKind | null; +} +export type PlatformK8sResourceKindEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformK8sResourceKindSelect; + }; +}; +/** A `PlatformK8sSpecRule` edge in the connection. */ +export interface PlatformK8sSpecRuleEdge { + cursor?: string | null; + /** The `PlatformK8sSpecRule` at the end of the edge. */ + node?: PlatformK8sSpecRule | null; +} +export type PlatformK8sSpecRuleEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformK8sSpecRuleSelect; + }; +}; /** A `PlatformNamespace` edge in the connection. */ export interface PlatformNamespaceEdge { cursor?: string | null; @@ -17308,6 +34072,162 @@ export type PlatformNamespaceEventEdgeSelect = { select: PlatformNamespaceEventSelect; }; }; +/** A `PlatformProposalComment` edge in the connection. */ +export interface PlatformProposalCommentEdge { + cursor?: string | null; + /** The `PlatformProposalComment` at the end of the edge. */ + node?: PlatformProposalComment | null; +} +export type PlatformProposalCommentEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformProposalCommentSelect; + }; +}; +/** A `PlatformProposal` edge in the connection. */ +export interface PlatformProposalEdge { + cursor?: string | null; + /** The `PlatformProposal` at the end of the edge. */ + node?: PlatformProposal | null; +} +export type PlatformProposalEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformProposalSelect; + }; +}; +/** A `PlatformProposalFileView` edge in the connection. */ +export interface PlatformProposalFileViewEdge { + cursor?: string | null; + /** The `PlatformProposalFileView` at the end of the edge. */ + node?: PlatformProposalFileView | null; +} +export type PlatformProposalFileViewEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformProposalFileViewSelect; + }; +}; +/** A `PlatformProposalReaction` edge in the connection. */ +export interface PlatformProposalReactionEdge { + cursor?: string | null; + /** The `PlatformProposalReaction` at the end of the edge. */ + node?: PlatformProposalReaction | null; +} +export type PlatformProposalReactionEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformProposalReactionSelect; + }; +}; +/** A `PlatformProposalReview` edge in the connection. */ +export interface PlatformProposalReviewEdge { + cursor?: string | null; + /** The `PlatformProposalReview` at the end of the edge. */ + node?: PlatformProposalReview | null; +} +export type PlatformProposalReviewEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformProposalReviewSelect; + }; +}; +/** A `PlatformProposalsChunk` edge in the connection. */ +export interface PlatformProposalsChunkEdge { + cursor?: string | null; + /** The `PlatformProposalsChunk` at the end of the edge. */ + node?: PlatformProposalsChunk | null; +} +export type PlatformProposalsChunkEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformProposalsChunkSelect; + }; +}; +/** A `PlatformRegistryBinding` edge in the connection. */ +export interface PlatformRegistryBindingEdge { + cursor?: string | null; + /** The `PlatformRegistryBinding` at the end of the edge. */ + node?: PlatformRegistryBinding | null; +} +export type PlatformRegistryBindingEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformRegistryBindingSelect; + }; +}; +/** A `PlatformRegistry` edge in the connection. */ +export interface PlatformRegistryEdge { + cursor?: string | null; + /** The `PlatformRegistry` at the end of the edge. */ + node?: PlatformRegistry | null; +} +export type PlatformRegistryEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformRegistrySelect; + }; +}; +/** A `PlatformRegistryGrant` edge in the connection. */ +export interface PlatformRegistryGrantEdge { + cursor?: string | null; + /** The `PlatformRegistryGrant` at the end of the edge. */ + node?: PlatformRegistryGrant | null; +} +export type PlatformRegistryGrantEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformRegistryGrantSelect; + }; +}; +/** A `PlatformRepository` edge in the connection. */ +export interface PlatformRepositoryEdge { + cursor?: string | null; + /** The `PlatformRepository` at the end of the edge. */ + node?: PlatformRepository | null; +} +export type PlatformRepositoryEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformRepositorySelect; + }; +}; +/** A `PlatformRepositoryEvent` edge in the connection. */ +export interface PlatformRepositoryEventEdge { + cursor?: string | null; + /** The `PlatformRepositoryEvent` at the end of the edge. */ + node?: PlatformRepositoryEvent | null; +} +export type PlatformRepositoryEventEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformRepositoryEventSelect; + }; +}; +/** A `PlatformRepositoryRequiredCheck` edge in the connection. */ +export interface PlatformRepositoryRequiredCheckEdge { + cursor?: string | null; + /** The `PlatformRepositoryRequiredCheck` at the end of the edge. */ + node?: PlatformRepositoryRequiredCheck | null; +} +export type PlatformRepositoryRequiredCheckEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformRepositoryRequiredCheckSelect; + }; +}; +/** A `PlatformRepositoryWorkflow` edge in the connection. */ +export interface PlatformRepositoryWorkflowEdge { + cursor?: string | null; + /** The `PlatformRepositoryWorkflow` at the end of the edge. */ + node?: PlatformRepositoryWorkflow | null; +} +export type PlatformRepositoryWorkflowEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformRepositoryWorkflowSelect; + }; +}; /** A `PlatformResource` edge in the connection. */ export interface PlatformResourceEdge { cursor?: string | null; @@ -17416,6 +34336,162 @@ export type PlatformWebhookEventEdgeSelect = { select: PlatformWebhookEventSelect; }; }; +/** A `ProposalComment` edge in the connection. */ +export interface ProposalCommentEdge { + cursor?: string | null; + /** The `ProposalComment` at the end of the edge. */ + node?: ProposalComment | null; +} +export type ProposalCommentEdgeSelect = { + cursor?: boolean; + node?: { + select: ProposalCommentSelect; + }; +}; +/** A `Proposal` edge in the connection. */ +export interface ProposalEdge { + cursor?: string | null; + /** The `Proposal` at the end of the edge. */ + node?: Proposal | null; +} +export type ProposalEdgeSelect = { + cursor?: boolean; + node?: { + select: ProposalSelect; + }; +}; +/** A `ProposalFileView` edge in the connection. */ +export interface ProposalFileViewEdge { + cursor?: string | null; + /** The `ProposalFileView` at the end of the edge. */ + node?: ProposalFileView | null; +} +export type ProposalFileViewEdgeSelect = { + cursor?: boolean; + node?: { + select: ProposalFileViewSelect; + }; +}; +/** A `ProposalReaction` edge in the connection. */ +export interface ProposalReactionEdge { + cursor?: string | null; + /** The `ProposalReaction` at the end of the edge. */ + node?: ProposalReaction | null; +} +export type ProposalReactionEdgeSelect = { + cursor?: boolean; + node?: { + select: ProposalReactionSelect; + }; +}; +/** A `ProposalReview` edge in the connection. */ +export interface ProposalReviewEdge { + cursor?: string | null; + /** The `ProposalReview` at the end of the edge. */ + node?: ProposalReview | null; +} +export type ProposalReviewEdgeSelect = { + cursor?: boolean; + node?: { + select: ProposalReviewSelect; + }; +}; +/** A `ProposalsChunk` edge in the connection. */ +export interface ProposalsChunkEdge { + cursor?: string | null; + /** The `ProposalsChunk` at the end of the edge. */ + node?: ProposalsChunk | null; +} +export type ProposalsChunkEdgeSelect = { + cursor?: boolean; + node?: { + select: ProposalsChunkSelect; + }; +}; +/** A `RegistryBinding` edge in the connection. */ +export interface RegistryBindingEdge { + cursor?: string | null; + /** The `RegistryBinding` at the end of the edge. */ + node?: RegistryBinding | null; +} +export type RegistryBindingEdgeSelect = { + cursor?: boolean; + node?: { + select: RegistryBindingSelect; + }; +}; +/** A `Registry` edge in the connection. */ +export interface RegistryEdge { + cursor?: string | null; + /** The `Registry` at the end of the edge. */ + node?: Registry | null; +} +export type RegistryEdgeSelect = { + cursor?: boolean; + node?: { + select: RegistrySelect; + }; +}; +/** A `RegistryGrant` edge in the connection. */ +export interface RegistryGrantEdge { + cursor?: string | null; + /** The `RegistryGrant` at the end of the edge. */ + node?: RegistryGrant | null; +} +export type RegistryGrantEdgeSelect = { + cursor?: boolean; + node?: { + select: RegistryGrantSelect; + }; +}; +/** A `Repository` edge in the connection. */ +export interface RepositoryEdge { + cursor?: string | null; + /** The `Repository` at the end of the edge. */ + node?: Repository | null; +} +export type RepositoryEdgeSelect = { + cursor?: boolean; + node?: { + select: RepositorySelect; + }; +}; +/** A `RepositoryEvent` edge in the connection. */ +export interface RepositoryEventEdge { + cursor?: string | null; + /** The `RepositoryEvent` at the end of the edge. */ + node?: RepositoryEvent | null; +} +export type RepositoryEventEdgeSelect = { + cursor?: boolean; + node?: { + select: RepositoryEventSelect; + }; +}; +/** A `RepositoryRequiredCheck` edge in the connection. */ +export interface RepositoryRequiredCheckEdge { + cursor?: string | null; + /** The `RepositoryRequiredCheck` at the end of the edge. */ + node?: RepositoryRequiredCheck | null; +} +export type RepositoryRequiredCheckEdgeSelect = { + cursor?: boolean; + node?: { + select: RepositoryRequiredCheckSelect; + }; +}; +/** A `RepositoryWorkflow` edge in the connection. */ +export interface RepositoryWorkflowEdge { + cursor?: string | null; + /** The `RepositoryWorkflow` at the end of the edge. */ + node?: RepositoryWorkflow | null; +} +export type RepositoryWorkflowEdgeSelect = { + cursor?: boolean; + node?: { + select: RepositoryWorkflowSelect; + }; +}; /** A `Resource` edge in the connection. */ export interface ResourceEdge { cursor?: string | null; diff --git a/sdk/constructive-cli/src/compute/orm/models/build.ts b/sdk/constructive-cli/src/compute/orm/models/build.ts new file mode 100644 index 0000000000..0fd4186ca4 --- /dev/null +++ b/sdk/constructive-cli/src/compute/orm/models/build.ts @@ -0,0 +1,245 @@ +/** + * Build 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 { + Build, + BuildWithRelations, + BuildSelect, + BuildFilter, + BuildOrderBy, + CreateBuildInput, + UpdateBuildInput, + BuildPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class BuildModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + builds: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'Build', + 'builds', + 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, + }, + 'BuildFilter', + 'BuildOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Build', + fieldName: 'builds', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + build: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'Build', + 'builds', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'BuildFilter', + 'BuildOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Build', + fieldName: 'build', + document, + variables, + transform: (data: { + builds?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + build: data.builds?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + build: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'Build', + 'builds', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'BuildFilter', + 'BuildOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Build', + fieldName: 'build', + document, + variables, + transform: (data: { + builds?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + build: data.builds?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createBuild: { + build: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'Build', + 'createBuild', + 'build', + args.select, + args.data, + 'CreateBuildInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Build', + fieldName: 'createBuild', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + BuildPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateBuild: { + build: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'Build', + 'updateBuild', + 'build', + args.select, + args.where.id, + args.data, + 'UpdateBuildInput', + 'id', + 'buildPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Build', + fieldName: 'updateBuild', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteBuild: { + build: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'Build', + 'deleteBuild', + 'build', + { + id: args.where.id, + }, + 'DeleteBuildInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Build', + fieldName: 'deleteBuild', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/compute/orm/models/buildStep.ts b/sdk/constructive-cli/src/compute/orm/models/buildStep.ts new file mode 100644 index 0000000000..9f2d7568e9 --- /dev/null +++ b/sdk/constructive-cli/src/compute/orm/models/buildStep.ts @@ -0,0 +1,250 @@ +/** + * BuildStep 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 { + BuildStep, + BuildStepWithRelations, + BuildStepSelect, + BuildStepFilter, + BuildStepOrderBy, + CreateBuildStepInput, + UpdateBuildStepInput, + BuildStepPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class BuildStepModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + buildSteps: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'BuildStep', + 'buildSteps', + 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, + }, + 'BuildStepFilter', + 'BuildStepOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'BuildStep', + fieldName: 'buildSteps', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + buildStep: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'BuildStep', + 'buildSteps', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'BuildStepFilter', + 'BuildStepOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'BuildStep', + fieldName: 'buildStep', + document, + variables, + transform: (data: { + buildSteps?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + buildStep: data.buildSteps?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + buildStep: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'BuildStep', + 'buildSteps', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'BuildStepFilter', + 'BuildStepOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'BuildStep', + fieldName: 'buildStep', + document, + variables, + transform: (data: { + buildSteps?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + buildStep: data.buildSteps?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createBuildStep: { + buildStep: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'BuildStep', + 'createBuildStep', + 'buildStep', + args.select, + args.data, + 'CreateBuildStepInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'BuildStep', + fieldName: 'createBuildStep', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + recordedAt: string; + }, + BuildStepPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateBuildStep: { + buildStep: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'BuildStep', + 'updateBuildStep', + 'buildStep', + args.select, + args.where.id, + args.data, + 'UpdateBuildStepInput', + 'id', + 'buildStepPatch', + connectionFieldsMap, + { + recordedAt: args.where.recordedAt, + } + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'BuildStep', + fieldName: 'updateBuildStep', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + recordedAt: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteBuildStep: { + buildStep: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'BuildStep', + 'deleteBuildStep', + 'buildStep', + { + id: args.where.id, + recordedAt: args.where.recordedAt, + }, + 'DeleteBuildStepInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'BuildStep', + fieldName: 'deleteBuildStep', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/compute/orm/models/builderBinding.ts b/sdk/constructive-cli/src/compute/orm/models/builderBinding.ts new file mode 100644 index 0000000000..0d5d7843e3 --- /dev/null +++ b/sdk/constructive-cli/src/compute/orm/models/builderBinding.ts @@ -0,0 +1,245 @@ +/** + * BuilderBinding 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 { + BuilderBinding, + BuilderBindingWithRelations, + BuilderBindingSelect, + BuilderBindingFilter, + BuilderBindingOrderBy, + CreateBuilderBindingInput, + UpdateBuilderBindingInput, + BuilderBindingPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class BuilderBindingModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + builderBindings: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'BuilderBinding', + 'builderBindings', + 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, + }, + 'BuilderBindingFilter', + 'BuilderBindingOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'BuilderBinding', + fieldName: 'builderBindings', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + builderBinding: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'BuilderBinding', + 'builderBindings', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'BuilderBindingFilter', + 'BuilderBindingOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'BuilderBinding', + fieldName: 'builderBinding', + document, + variables, + transform: (data: { + builderBindings?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + builderBinding: data.builderBindings?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + builderBinding: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'BuilderBinding', + 'builderBindings', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'BuilderBindingFilter', + 'BuilderBindingOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'BuilderBinding', + fieldName: 'builderBinding', + document, + variables, + transform: (data: { + builderBindings?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + builderBinding: data.builderBindings?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createBuilderBinding: { + builderBinding: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'BuilderBinding', + 'createBuilderBinding', + 'builderBinding', + args.select, + args.data, + 'CreateBuilderBindingInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'BuilderBinding', + fieldName: 'createBuilderBinding', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + BuilderBindingPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateBuilderBinding: { + builderBinding: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'BuilderBinding', + 'updateBuilderBinding', + 'builderBinding', + args.select, + args.where.id, + args.data, + 'UpdateBuilderBindingInput', + 'id', + 'builderBindingPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'BuilderBinding', + fieldName: 'updateBuilderBinding', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteBuilderBinding: { + builderBinding: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'BuilderBinding', + 'deleteBuilderBinding', + 'builderBinding', + { + id: args.where.id, + }, + 'DeleteBuilderBindingInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'BuilderBinding', + fieldName: 'deleteBuilderBinding', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/compute/orm/models/contentPreset.ts b/sdk/constructive-cli/src/compute/orm/models/contentPreset.ts new file mode 100644 index 0000000000..20242ccc78 --- /dev/null +++ b/sdk/constructive-cli/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-cli/src/compute/orm/models/databaseFunctionGraph.ts b/sdk/constructive-cli/src/compute/orm/models/databaseFunctionGraph.ts new file mode 100644 index 0000000000..aa52534b19 --- /dev/null +++ b/sdk/constructive-cli/src/compute/orm/models/databaseFunctionGraph.ts @@ -0,0 +1,247 @@ +/** + * DatabaseFunctionGraph 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 { + DatabaseFunctionGraph, + DatabaseFunctionGraphWithRelations, + DatabaseFunctionGraphSelect, + DatabaseFunctionGraphFilter, + DatabaseFunctionGraphOrderBy, + CreateDatabaseFunctionGraphInput, + UpdateDatabaseFunctionGraphInput, + DatabaseFunctionGraphPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class DatabaseFunctionGraphModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + databaseFunctionGraphs: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'DatabaseFunctionGraph', + 'databaseFunctionGraphs', + 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, + }, + 'DatabaseFunctionGraphFilter', + 'DatabaseFunctionGraphOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DatabaseFunctionGraph', + fieldName: 'databaseFunctionGraphs', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + databaseFunctionGraph: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'DatabaseFunctionGraph', + 'databaseFunctionGraphs', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'DatabaseFunctionGraphFilter', + 'DatabaseFunctionGraphOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DatabaseFunctionGraph', + fieldName: 'databaseFunctionGraph', + document, + variables, + transform: (data: { + databaseFunctionGraphs?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + databaseFunctionGraph: data.databaseFunctionGraphs?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + databaseFunctionGraph: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'DatabaseFunctionGraph', + 'databaseFunctionGraphs', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'DatabaseFunctionGraphFilter', + 'DatabaseFunctionGraphOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DatabaseFunctionGraph', + fieldName: 'databaseFunctionGraph', + document, + variables, + transform: (data: { + databaseFunctionGraphs?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + databaseFunctionGraph: data.databaseFunctionGraphs?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createDatabaseFunctionGraph: { + databaseFunctionGraph: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'DatabaseFunctionGraph', + 'createDatabaseFunctionGraph', + 'databaseFunctionGraph', + args.select, + args.data, + 'CreateDatabaseFunctionGraphInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DatabaseFunctionGraph', + fieldName: 'createDatabaseFunctionGraph', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + DatabaseFunctionGraphPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateDatabaseFunctionGraph: { + databaseFunctionGraph: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'DatabaseFunctionGraph', + 'updateDatabaseFunctionGraph', + 'databaseFunctionGraph', + args.select, + args.where.id, + args.data, + 'UpdateDatabaseFunctionGraphInput', + 'id', + 'databaseFunctionGraphPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DatabaseFunctionGraph', + fieldName: 'updateDatabaseFunctionGraph', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteDatabaseFunctionGraph: { + databaseFunctionGraph: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'DatabaseFunctionGraph', + 'deleteDatabaseFunctionGraph', + 'databaseFunctionGraph', + { + id: args.where.id, + }, + 'DeleteDatabaseFunctionGraphInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DatabaseFunctionGraph', + fieldName: 'deleteDatabaseFunctionGraph', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/compute/orm/models/databaseFunctionGraphExecution.ts b/sdk/constructive-cli/src/compute/orm/models/databaseFunctionGraphExecution.ts new file mode 100644 index 0000000000..3f8c7b10ba --- /dev/null +++ b/sdk/constructive-cli/src/compute/orm/models/databaseFunctionGraphExecution.ts @@ -0,0 +1,278 @@ +/** + * DatabaseFunctionGraphExecution 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 { + DatabaseFunctionGraphExecution, + DatabaseFunctionGraphExecutionWithRelations, + DatabaseFunctionGraphExecutionSelect, + DatabaseFunctionGraphExecutionFilter, + DatabaseFunctionGraphExecutionOrderBy, + CreateDatabaseFunctionGraphExecutionInput, + UpdateDatabaseFunctionGraphExecutionInput, + DatabaseFunctionGraphExecutionPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class DatabaseFunctionGraphExecutionModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs< + S, + DatabaseFunctionGraphExecutionFilter, + DatabaseFunctionGraphExecutionOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + databaseFunctionGraphExecutions: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'DatabaseFunctionGraphExecution', + 'databaseFunctionGraphExecutions', + 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, + }, + 'DatabaseFunctionGraphExecutionFilter', + 'DatabaseFunctionGraphExecutionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DatabaseFunctionGraphExecution', + fieldName: 'databaseFunctionGraphExecutions', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs< + S, + DatabaseFunctionGraphExecutionFilter, + DatabaseFunctionGraphExecutionOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + databaseFunctionGraphExecution: InferSelectResult< + DatabaseFunctionGraphExecutionWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'DatabaseFunctionGraphExecution', + 'databaseFunctionGraphExecutions', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'DatabaseFunctionGraphExecutionFilter', + 'DatabaseFunctionGraphExecutionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DatabaseFunctionGraphExecution', + fieldName: 'databaseFunctionGraphExecution', + document, + variables, + transform: (data: { + databaseFunctionGraphExecutions?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + databaseFunctionGraphExecution: data.databaseFunctionGraphExecutions?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + databaseFunctionGraphExecution: InferSelectResult< + DatabaseFunctionGraphExecutionWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindManyDocument( + 'DatabaseFunctionGraphExecution', + 'databaseFunctionGraphExecutions', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'DatabaseFunctionGraphExecutionFilter', + 'DatabaseFunctionGraphExecutionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DatabaseFunctionGraphExecution', + fieldName: 'databaseFunctionGraphExecution', + document, + variables, + transform: (data: { + databaseFunctionGraphExecutions?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + databaseFunctionGraphExecution: data.databaseFunctionGraphExecutions?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs< + S, + CreateDatabaseFunctionGraphExecutionInput['databaseFunctionGraphExecution'] + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createDatabaseFunctionGraphExecution: { + databaseFunctionGraphExecution: InferSelectResult< + DatabaseFunctionGraphExecutionWithRelations, + S + >; + }; + }> { + const { document, variables } = buildCreateDocument( + 'DatabaseFunctionGraphExecution', + 'createDatabaseFunctionGraphExecution', + 'databaseFunctionGraphExecution', + args.select, + args.data, + 'CreateDatabaseFunctionGraphExecutionInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DatabaseFunctionGraphExecution', + fieldName: 'createDatabaseFunctionGraphExecution', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + startedAt: string; + }, + DatabaseFunctionGraphExecutionPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateDatabaseFunctionGraphExecution: { + databaseFunctionGraphExecution: InferSelectResult< + DatabaseFunctionGraphExecutionWithRelations, + S + >; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'DatabaseFunctionGraphExecution', + 'updateDatabaseFunctionGraphExecution', + 'databaseFunctionGraphExecution', + args.select, + args.where.id, + args.data, + 'UpdateDatabaseFunctionGraphExecutionInput', + 'id', + 'databaseFunctionGraphExecutionPatch', + connectionFieldsMap, + { + startedAt: args.where.startedAt, + } + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DatabaseFunctionGraphExecution', + fieldName: 'updateDatabaseFunctionGraphExecution', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + startedAt: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteDatabaseFunctionGraphExecution: { + databaseFunctionGraphExecution: InferSelectResult< + DatabaseFunctionGraphExecutionWithRelations, + S + >; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'DatabaseFunctionGraphExecution', + 'deleteDatabaseFunctionGraphExecution', + 'databaseFunctionGraphExecution', + { + id: args.where.id, + startedAt: args.where.startedAt, + }, + 'DeleteDatabaseFunctionGraphExecutionInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DatabaseFunctionGraphExecution', + fieldName: 'deleteDatabaseFunctionGraphExecution', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/compute/orm/models/databaseFunctionGraphExecutionNodeState.ts b/sdk/constructive-cli/src/compute/orm/models/databaseFunctionGraphExecutionNodeState.ts new file mode 100644 index 0000000000..de639c17ae --- /dev/null +++ b/sdk/constructive-cli/src/compute/orm/models/databaseFunctionGraphExecutionNodeState.ts @@ -0,0 +1,280 @@ +/** + * DatabaseFunctionGraphExecutionNodeState 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 { + DatabaseFunctionGraphExecutionNodeState, + DatabaseFunctionGraphExecutionNodeStateWithRelations, + DatabaseFunctionGraphExecutionNodeStateSelect, + DatabaseFunctionGraphExecutionNodeStateFilter, + DatabaseFunctionGraphExecutionNodeStateOrderBy, + CreateDatabaseFunctionGraphExecutionNodeStateInput, + UpdateDatabaseFunctionGraphExecutionNodeStateInput, + DatabaseFunctionGraphExecutionNodeStatePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class DatabaseFunctionGraphExecutionNodeStateModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs< + S, + DatabaseFunctionGraphExecutionNodeStateFilter, + DatabaseFunctionGraphExecutionNodeStateOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + databaseFunctionGraphExecutionNodeStates: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'DatabaseFunctionGraphExecutionNodeState', + 'databaseFunctionGraphExecutionNodeStates', + 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, + }, + 'DatabaseFunctionGraphExecutionNodeStateFilter', + 'DatabaseFunctionGraphExecutionNodeStateOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DatabaseFunctionGraphExecutionNodeState', + fieldName: 'databaseFunctionGraphExecutionNodeStates', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs< + S, + DatabaseFunctionGraphExecutionNodeStateFilter, + DatabaseFunctionGraphExecutionNodeStateOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + databaseFunctionGraphExecutionNodeState: InferSelectResult< + DatabaseFunctionGraphExecutionNodeStateWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'DatabaseFunctionGraphExecutionNodeState', + 'databaseFunctionGraphExecutionNodeStates', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'DatabaseFunctionGraphExecutionNodeStateFilter', + 'DatabaseFunctionGraphExecutionNodeStateOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DatabaseFunctionGraphExecutionNodeState', + fieldName: 'databaseFunctionGraphExecutionNodeState', + document, + variables, + transform: (data: { + databaseFunctionGraphExecutionNodeStates?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + databaseFunctionGraphExecutionNodeState: + data.databaseFunctionGraphExecutionNodeStates?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + databaseFunctionGraphExecutionNodeState: InferSelectResult< + DatabaseFunctionGraphExecutionNodeStateWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindManyDocument( + 'DatabaseFunctionGraphExecutionNodeState', + 'databaseFunctionGraphExecutionNodeStates', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'DatabaseFunctionGraphExecutionNodeStateFilter', + 'DatabaseFunctionGraphExecutionNodeStateOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DatabaseFunctionGraphExecutionNodeState', + fieldName: 'databaseFunctionGraphExecutionNodeState', + document, + variables, + transform: (data: { + databaseFunctionGraphExecutionNodeStates?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + databaseFunctionGraphExecutionNodeState: + data.databaseFunctionGraphExecutionNodeStates?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs< + S, + CreateDatabaseFunctionGraphExecutionNodeStateInput['databaseFunctionGraphExecutionNodeState'] + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createDatabaseFunctionGraphExecutionNodeState: { + databaseFunctionGraphExecutionNodeState: InferSelectResult< + DatabaseFunctionGraphExecutionNodeStateWithRelations, + S + >; + }; + }> { + const { document, variables } = buildCreateDocument( + 'DatabaseFunctionGraphExecutionNodeState', + 'createDatabaseFunctionGraphExecutionNodeState', + 'databaseFunctionGraphExecutionNodeState', + args.select, + args.data, + 'CreateDatabaseFunctionGraphExecutionNodeStateInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DatabaseFunctionGraphExecutionNodeState', + fieldName: 'createDatabaseFunctionGraphExecutionNodeState', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + createdAt: string; + }, + DatabaseFunctionGraphExecutionNodeStatePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateDatabaseFunctionGraphExecutionNodeState: { + databaseFunctionGraphExecutionNodeState: InferSelectResult< + DatabaseFunctionGraphExecutionNodeStateWithRelations, + S + >; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'DatabaseFunctionGraphExecutionNodeState', + 'updateDatabaseFunctionGraphExecutionNodeState', + 'databaseFunctionGraphExecutionNodeState', + args.select, + args.where.id, + args.data, + 'UpdateDatabaseFunctionGraphExecutionNodeStateInput', + 'id', + 'databaseFunctionGraphExecutionNodeStatePatch', + connectionFieldsMap, + { + createdAt: args.where.createdAt, + } + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DatabaseFunctionGraphExecutionNodeState', + fieldName: 'updateDatabaseFunctionGraphExecutionNodeState', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + createdAt: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteDatabaseFunctionGraphExecutionNodeState: { + databaseFunctionGraphExecutionNodeState: InferSelectResult< + DatabaseFunctionGraphExecutionNodeStateWithRelations, + S + >; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'DatabaseFunctionGraphExecutionNodeState', + 'deleteDatabaseFunctionGraphExecutionNodeState', + 'databaseFunctionGraphExecutionNodeState', + { + id: args.where.id, + createdAt: args.where.createdAt, + }, + 'DeleteDatabaseFunctionGraphExecutionNodeStateInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DatabaseFunctionGraphExecutionNodeState', + fieldName: 'deleteDatabaseFunctionGraphExecutionNodeState', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/compute/orm/models/databaseFunctionGraphExecutionOutput.ts b/sdk/constructive-cli/src/compute/orm/models/databaseFunctionGraphExecutionOutput.ts new file mode 100644 index 0000000000..b57532be6c --- /dev/null +++ b/sdk/constructive-cli/src/compute/orm/models/databaseFunctionGraphExecutionOutput.ts @@ -0,0 +1,280 @@ +/** + * DatabaseFunctionGraphExecutionOutput 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 { + DatabaseFunctionGraphExecutionOutput, + DatabaseFunctionGraphExecutionOutputWithRelations, + DatabaseFunctionGraphExecutionOutputSelect, + DatabaseFunctionGraphExecutionOutputFilter, + DatabaseFunctionGraphExecutionOutputOrderBy, + CreateDatabaseFunctionGraphExecutionOutputInput, + UpdateDatabaseFunctionGraphExecutionOutputInput, + DatabaseFunctionGraphExecutionOutputPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class DatabaseFunctionGraphExecutionOutputModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs< + S, + DatabaseFunctionGraphExecutionOutputFilter, + DatabaseFunctionGraphExecutionOutputOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + databaseFunctionGraphExecutionOutputs: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'DatabaseFunctionGraphExecutionOutput', + 'databaseFunctionGraphExecutionOutputs', + 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, + }, + 'DatabaseFunctionGraphExecutionOutputFilter', + 'DatabaseFunctionGraphExecutionOutputOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DatabaseFunctionGraphExecutionOutput', + fieldName: 'databaseFunctionGraphExecutionOutputs', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs< + S, + DatabaseFunctionGraphExecutionOutputFilter, + DatabaseFunctionGraphExecutionOutputOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + databaseFunctionGraphExecutionOutput: InferSelectResult< + DatabaseFunctionGraphExecutionOutputWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'DatabaseFunctionGraphExecutionOutput', + 'databaseFunctionGraphExecutionOutputs', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'DatabaseFunctionGraphExecutionOutputFilter', + 'DatabaseFunctionGraphExecutionOutputOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DatabaseFunctionGraphExecutionOutput', + fieldName: 'databaseFunctionGraphExecutionOutput', + document, + variables, + transform: (data: { + databaseFunctionGraphExecutionOutputs?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + databaseFunctionGraphExecutionOutput: + data.databaseFunctionGraphExecutionOutputs?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + databaseFunctionGraphExecutionOutput: InferSelectResult< + DatabaseFunctionGraphExecutionOutputWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindManyDocument( + 'DatabaseFunctionGraphExecutionOutput', + 'databaseFunctionGraphExecutionOutputs', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'DatabaseFunctionGraphExecutionOutputFilter', + 'DatabaseFunctionGraphExecutionOutputOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DatabaseFunctionGraphExecutionOutput', + fieldName: 'databaseFunctionGraphExecutionOutput', + document, + variables, + transform: (data: { + databaseFunctionGraphExecutionOutputs?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + databaseFunctionGraphExecutionOutput: + data.databaseFunctionGraphExecutionOutputs?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs< + S, + CreateDatabaseFunctionGraphExecutionOutputInput['databaseFunctionGraphExecutionOutput'] + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createDatabaseFunctionGraphExecutionOutput: { + databaseFunctionGraphExecutionOutput: InferSelectResult< + DatabaseFunctionGraphExecutionOutputWithRelations, + S + >; + }; + }> { + const { document, variables } = buildCreateDocument( + 'DatabaseFunctionGraphExecutionOutput', + 'createDatabaseFunctionGraphExecutionOutput', + 'databaseFunctionGraphExecutionOutput', + args.select, + args.data, + 'CreateDatabaseFunctionGraphExecutionOutputInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DatabaseFunctionGraphExecutionOutput', + fieldName: 'createDatabaseFunctionGraphExecutionOutput', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + createdAt: string; + }, + DatabaseFunctionGraphExecutionOutputPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateDatabaseFunctionGraphExecutionOutput: { + databaseFunctionGraphExecutionOutput: InferSelectResult< + DatabaseFunctionGraphExecutionOutputWithRelations, + S + >; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'DatabaseFunctionGraphExecutionOutput', + 'updateDatabaseFunctionGraphExecutionOutput', + 'databaseFunctionGraphExecutionOutput', + args.select, + args.where.id, + args.data, + 'UpdateDatabaseFunctionGraphExecutionOutputInput', + 'id', + 'databaseFunctionGraphExecutionOutputPatch', + connectionFieldsMap, + { + createdAt: args.where.createdAt, + } + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DatabaseFunctionGraphExecutionOutput', + fieldName: 'updateDatabaseFunctionGraphExecutionOutput', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + createdAt: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteDatabaseFunctionGraphExecutionOutput: { + databaseFunctionGraphExecutionOutput: InferSelectResult< + DatabaseFunctionGraphExecutionOutputWithRelations, + S + >; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'DatabaseFunctionGraphExecutionOutput', + 'deleteDatabaseFunctionGraphExecutionOutput', + 'databaseFunctionGraphExecutionOutput', + { + id: args.where.id, + createdAt: args.where.createdAt, + }, + 'DeleteDatabaseFunctionGraphExecutionOutputInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DatabaseFunctionGraphExecutionOutput', + fieldName: 'deleteDatabaseFunctionGraphExecutionOutput', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/compute/orm/models/databaseGraphCommit.ts b/sdk/constructive-cli/src/compute/orm/models/databaseGraphCommit.ts new file mode 100644 index 0000000000..e6d9bc57d7 --- /dev/null +++ b/sdk/constructive-cli/src/compute/orm/models/databaseGraphCommit.ts @@ -0,0 +1,250 @@ +/** + * DatabaseGraphCommit 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 { + DatabaseGraphCommit, + DatabaseGraphCommitWithRelations, + DatabaseGraphCommitSelect, + DatabaseGraphCommitFilter, + DatabaseGraphCommitOrderBy, + CreateDatabaseGraphCommitInput, + UpdateDatabaseGraphCommitInput, + DatabaseGraphCommitPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class DatabaseGraphCommitModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + databaseGraphCommits: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'DatabaseGraphCommit', + 'databaseGraphCommits', + 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, + }, + 'DatabaseGraphCommitFilter', + 'DatabaseGraphCommitOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DatabaseGraphCommit', + fieldName: 'databaseGraphCommits', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + databaseGraphCommit: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'DatabaseGraphCommit', + 'databaseGraphCommits', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'DatabaseGraphCommitFilter', + 'DatabaseGraphCommitOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DatabaseGraphCommit', + fieldName: 'databaseGraphCommit', + document, + variables, + transform: (data: { + databaseGraphCommits?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + databaseGraphCommit: data.databaseGraphCommits?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + databaseGraphCommit: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'DatabaseGraphCommit', + 'databaseGraphCommits', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'DatabaseGraphCommitFilter', + 'DatabaseGraphCommitOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DatabaseGraphCommit', + fieldName: 'databaseGraphCommit', + document, + variables, + transform: (data: { + databaseGraphCommits?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + databaseGraphCommit: data.databaseGraphCommits?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createDatabaseGraphCommit: { + databaseGraphCommit: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'DatabaseGraphCommit', + 'createDatabaseGraphCommit', + 'databaseGraphCommit', + args.select, + args.data, + 'CreateDatabaseGraphCommitInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DatabaseGraphCommit', + fieldName: 'createDatabaseGraphCommit', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + databaseId: string; + }, + DatabaseGraphCommitPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateDatabaseGraphCommit: { + databaseGraphCommit: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'DatabaseGraphCommit', + 'updateDatabaseGraphCommit', + 'databaseGraphCommit', + args.select, + args.where.id, + args.data, + 'UpdateDatabaseGraphCommitInput', + 'id', + 'databaseGraphCommitPatch', + connectionFieldsMap, + { + databaseId: args.where.databaseId, + } + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DatabaseGraphCommit', + fieldName: 'updateDatabaseGraphCommit', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + databaseId: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteDatabaseGraphCommit: { + databaseGraphCommit: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'DatabaseGraphCommit', + 'deleteDatabaseGraphCommit', + 'databaseGraphCommit', + { + id: args.where.id, + databaseId: args.where.databaseId, + }, + 'DeleteDatabaseGraphCommitInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DatabaseGraphCommit', + fieldName: 'deleteDatabaseGraphCommit', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/compute/orm/models/databaseGraphGetAllTreeNodesRecord.ts b/sdk/constructive-cli/src/compute/orm/models/databaseGraphGetAllTreeNodesRecord.ts new file mode 100644 index 0000000000..f3a254b255 --- /dev/null +++ b/sdk/constructive-cli/src/compute/orm/models/databaseGraphGetAllTreeNodesRecord.ts @@ -0,0 +1,153 @@ +/** + * DatabaseGraphGetAllTreeNodesRecord 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 { + DatabaseGraphGetAllTreeNodesRecord, + DatabaseGraphGetAllTreeNodesRecordWithRelations, + DatabaseGraphGetAllTreeNodesRecordSelect, + DatabaseGraphGetAllTreeNodesRecordFilter, + DatabaseGraphGetAllTreeNodesRecordsOrderBy, + CreateDatabaseGraphGetAllTreeNodesRecordInput, + UpdateDatabaseGraphGetAllTreeNodesRecordInput, + DatabaseGraphGetAllTreeNodesRecordPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class DatabaseGraphGetAllTreeNodesRecordModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs< + S, + DatabaseGraphGetAllTreeNodesRecordFilter, + DatabaseGraphGetAllTreeNodesRecordsOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + databaseGraphGetAllTreeNodes: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'DatabaseGraphGetAllTreeNodesRecord', + 'databaseGraphGetAllTreeNodes', + 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, + }, + 'DatabaseGraphGetAllTreeNodesRecordFilter', + 'DatabaseGraphGetAllTreeNodesRecordsOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DatabaseGraphGetAllTreeNodesRecord', + fieldName: 'databaseGraphGetAllTreeNodes', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs< + S, + DatabaseGraphGetAllTreeNodesRecordFilter, + DatabaseGraphGetAllTreeNodesRecordsOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + databaseGraphGetAllTreeNodesRecord: InferSelectResult< + DatabaseGraphGetAllTreeNodesRecordWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'DatabaseGraphGetAllTreeNodesRecord', + 'databaseGraphGetAllTreeNodes', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'DatabaseGraphGetAllTreeNodesRecordFilter', + 'DatabaseGraphGetAllTreeNodesRecordsOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DatabaseGraphGetAllTreeNodesRecord', + fieldName: 'databaseGraphGetAllTreeNodesRecord', + document, + variables, + transform: (data: { + databaseGraphGetAllTreeNodes?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + databaseGraphGetAllTreeNodesRecord: data.databaseGraphGetAllTreeNodes?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs< + S, + CreateDatabaseGraphGetAllTreeNodesRecordInput['databaseGraphGetAllTreeNodesRecord'] + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createDatabaseGraphGetAllTreeNodesRecord: { + databaseGraphGetAllTreeNodesRecord: InferSelectResult< + DatabaseGraphGetAllTreeNodesRecordWithRelations, + S + >; + }; + }> { + const { document, variables } = buildCreateDocument( + 'DatabaseGraphGetAllTreeNodesRecord', + 'createDatabaseGraphGetAllTreeNodesRecord', + 'databaseGraphGetAllTreeNodesRecord', + args.select, + args.data, + 'CreateDatabaseGraphGetAllTreeNodesRecordInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DatabaseGraphGetAllTreeNodesRecord', + fieldName: 'createDatabaseGraphGetAllTreeNodesRecord', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/compute/orm/models/databaseGraphObject.ts b/sdk/constructive-cli/src/compute/orm/models/databaseGraphObject.ts new file mode 100644 index 0000000000..01dbd896a2 --- /dev/null +++ b/sdk/constructive-cli/src/compute/orm/models/databaseGraphObject.ts @@ -0,0 +1,236 @@ +/** + * DatabaseGraphObject 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 { + DatabaseGraphObject, + DatabaseGraphObjectWithRelations, + DatabaseGraphObjectSelect, + DatabaseGraphObjectFilter, + DatabaseGraphObjectOrderBy, + CreateDatabaseGraphObjectInput, + UpdateDatabaseGraphObjectInput, + DatabaseGraphObjectPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class DatabaseGraphObjectModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + databaseGraphObjects: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'DatabaseGraphObject', + 'databaseGraphObjects', + 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, + }, + 'DatabaseGraphObjectFilter', + 'DatabaseGraphObjectOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DatabaseGraphObject', + fieldName: 'databaseGraphObjects', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + databaseGraphObject: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'DatabaseGraphObject', + 'databaseGraphObjects', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'DatabaseGraphObjectFilter', + 'DatabaseGraphObjectOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DatabaseGraphObject', + fieldName: 'databaseGraphObject', + document, + variables, + transform: (data: { + databaseGraphObjects?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + databaseGraphObject: data.databaseGraphObjects?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + databaseGraphObject: InferSelectResult | null; + }> { + const { document, variables } = buildFindOneDocument( + 'DatabaseGraphObject', + 'databaseGraphGetNodeAtPath', + args.id, + args.select, + 'id', + 'UUID!', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DatabaseGraphObject', + fieldName: 'databaseGraphObject', + document, + variables, + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createDatabaseGraphObject: { + databaseGraphObject: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'DatabaseGraphObject', + 'createDatabaseGraphObject', + 'databaseGraphObject', + args.select, + args.data, + 'CreateDatabaseGraphObjectInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DatabaseGraphObject', + fieldName: 'createDatabaseGraphObject', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + databaseId: string; + }, + DatabaseGraphObjectPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateDatabaseGraphObject: { + databaseGraphObject: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'DatabaseGraphObject', + 'updateDatabaseGraphObject', + 'databaseGraphObject', + args.select, + args.where.id, + args.data, + 'UpdateDatabaseGraphObjectInput', + 'id', + 'databaseGraphObjectPatch', + connectionFieldsMap, + { + databaseId: args.where.databaseId, + } + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DatabaseGraphObject', + fieldName: 'updateDatabaseGraphObject', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + databaseId: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteDatabaseGraphObject: { + databaseGraphObject: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'DatabaseGraphObject', + 'deleteDatabaseGraphObject', + 'databaseGraphObject', + { + id: args.where.id, + databaseId: args.where.databaseId, + }, + 'DeleteDatabaseGraphObjectInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DatabaseGraphObject', + fieldName: 'deleteDatabaseGraphObject', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/compute/orm/models/databaseGraphRef.ts b/sdk/constructive-cli/src/compute/orm/models/databaseGraphRef.ts new file mode 100644 index 0000000000..966974aed6 --- /dev/null +++ b/sdk/constructive-cli/src/compute/orm/models/databaseGraphRef.ts @@ -0,0 +1,250 @@ +/** + * DatabaseGraphRef 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 { + DatabaseGraphRef, + DatabaseGraphRefWithRelations, + DatabaseGraphRefSelect, + DatabaseGraphRefFilter, + DatabaseGraphRefOrderBy, + CreateDatabaseGraphRefInput, + UpdateDatabaseGraphRefInput, + DatabaseGraphRefPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class DatabaseGraphRefModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + databaseGraphRefs: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'DatabaseGraphRef', + 'databaseGraphRefs', + 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, + }, + 'DatabaseGraphRefFilter', + 'DatabaseGraphRefOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DatabaseGraphRef', + fieldName: 'databaseGraphRefs', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + databaseGraphRef: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'DatabaseGraphRef', + 'databaseGraphRefs', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'DatabaseGraphRefFilter', + 'DatabaseGraphRefOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DatabaseGraphRef', + fieldName: 'databaseGraphRef', + document, + variables, + transform: (data: { + databaseGraphRefs?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + databaseGraphRef: data.databaseGraphRefs?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + databaseGraphRef: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'DatabaseGraphRef', + 'databaseGraphRefs', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'DatabaseGraphRefFilter', + 'DatabaseGraphRefOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DatabaseGraphRef', + fieldName: 'databaseGraphRef', + document, + variables, + transform: (data: { + databaseGraphRefs?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + databaseGraphRef: data.databaseGraphRefs?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createDatabaseGraphRef: { + databaseGraphRef: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'DatabaseGraphRef', + 'createDatabaseGraphRef', + 'databaseGraphRef', + args.select, + args.data, + 'CreateDatabaseGraphRefInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DatabaseGraphRef', + fieldName: 'createDatabaseGraphRef', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + databaseId: string; + }, + DatabaseGraphRefPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateDatabaseGraphRef: { + databaseGraphRef: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'DatabaseGraphRef', + 'updateDatabaseGraphRef', + 'databaseGraphRef', + args.select, + args.where.id, + args.data, + 'UpdateDatabaseGraphRefInput', + 'id', + 'databaseGraphRefPatch', + connectionFieldsMap, + { + databaseId: args.where.databaseId, + } + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DatabaseGraphRef', + fieldName: 'updateDatabaseGraphRef', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + databaseId: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteDatabaseGraphRef: { + databaseGraphRef: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'DatabaseGraphRef', + 'deleteDatabaseGraphRef', + 'databaseGraphRef', + { + id: args.where.id, + databaseId: args.where.databaseId, + }, + 'DeleteDatabaseGraphRefInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DatabaseGraphRef', + fieldName: 'deleteDatabaseGraphRef', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/compute/orm/models/databaseGraphStore.ts b/sdk/constructive-cli/src/compute/orm/models/databaseGraphStore.ts new file mode 100644 index 0000000000..76a87f5e30 --- /dev/null +++ b/sdk/constructive-cli/src/compute/orm/models/databaseGraphStore.ts @@ -0,0 +1,245 @@ +/** + * DatabaseGraphStore 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 { + DatabaseGraphStore, + DatabaseGraphStoreWithRelations, + DatabaseGraphStoreSelect, + DatabaseGraphStoreFilter, + DatabaseGraphStoreOrderBy, + CreateDatabaseGraphStoreInput, + UpdateDatabaseGraphStoreInput, + DatabaseGraphStorePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class DatabaseGraphStoreModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + databaseGraphStores: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'DatabaseGraphStore', + 'databaseGraphStores', + 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, + }, + 'DatabaseGraphStoreFilter', + 'DatabaseGraphStoreOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DatabaseGraphStore', + fieldName: 'databaseGraphStores', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + databaseGraphStore: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'DatabaseGraphStore', + 'databaseGraphStores', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'DatabaseGraphStoreFilter', + 'DatabaseGraphStoreOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DatabaseGraphStore', + fieldName: 'databaseGraphStore', + document, + variables, + transform: (data: { + databaseGraphStores?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + databaseGraphStore: data.databaseGraphStores?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + databaseGraphStore: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'DatabaseGraphStore', + 'databaseGraphStores', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'DatabaseGraphStoreFilter', + 'DatabaseGraphStoreOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DatabaseGraphStore', + fieldName: 'databaseGraphStore', + document, + variables, + transform: (data: { + databaseGraphStores?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + databaseGraphStore: data.databaseGraphStores?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createDatabaseGraphStore: { + databaseGraphStore: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'DatabaseGraphStore', + 'createDatabaseGraphStore', + 'databaseGraphStore', + args.select, + args.data, + 'CreateDatabaseGraphStoreInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DatabaseGraphStore', + fieldName: 'createDatabaseGraphStore', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + DatabaseGraphStorePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateDatabaseGraphStore: { + databaseGraphStore: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'DatabaseGraphStore', + 'updateDatabaseGraphStore', + 'databaseGraphStore', + args.select, + args.where.id, + args.data, + 'UpdateDatabaseGraphStoreInput', + 'id', + 'databaseGraphStorePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DatabaseGraphStore', + fieldName: 'updateDatabaseGraphStore', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteDatabaseGraphStore: { + databaseGraphStore: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'DatabaseGraphStore', + 'deleteDatabaseGraphStore', + 'databaseGraphStore', + { + id: args.where.id, + }, + 'DeleteDatabaseGraphStoreInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DatabaseGraphStore', + fieldName: 'deleteDatabaseGraphStore', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/compute/orm/models/image.ts b/sdk/constructive-cli/src/compute/orm/models/image.ts new file mode 100644 index 0000000000..6006cbd8ac --- /dev/null +++ b/sdk/constructive-cli/src/compute/orm/models/image.ts @@ -0,0 +1,245 @@ +/** + * Image 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 { + Image, + ImageWithRelations, + ImageSelect, + ImageFilter, + ImageOrderBy, + CreateImageInput, + UpdateImageInput, + ImagePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class ImageModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + images: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'Image', + 'images', + 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, + }, + 'ImageFilter', + 'ImageOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Image', + fieldName: 'images', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + image: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'Image', + 'images', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'ImageFilter', + 'ImageOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Image', + fieldName: 'image', + document, + variables, + transform: (data: { + images?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + image: data.images?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + image: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'Image', + 'images', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'ImageFilter', + 'ImageOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Image', + fieldName: 'image', + document, + variables, + transform: (data: { + images?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + image: data.images?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createImage: { + image: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'Image', + 'createImage', + 'image', + args.select, + args.data, + 'CreateImageInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Image', + fieldName: 'createImage', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + ImagePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateImage: { + image: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'Image', + 'updateImage', + 'image', + args.select, + args.where.id, + args.data, + 'UpdateImageInput', + 'id', + 'imagePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Image', + fieldName: 'updateImage', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteImage: { + image: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'Image', + 'deleteImage', + 'image', + { + id: args.where.id, + }, + 'DeleteImageInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Image', + fieldName: 'deleteImage', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/compute/orm/models/imageGrant.ts b/sdk/constructive-cli/src/compute/orm/models/imageGrant.ts new file mode 100644 index 0000000000..362d482c78 --- /dev/null +++ b/sdk/constructive-cli/src/compute/orm/models/imageGrant.ts @@ -0,0 +1,245 @@ +/** + * ImageGrant 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 { + ImageGrant, + ImageGrantWithRelations, + ImageGrantSelect, + ImageGrantFilter, + ImageGrantOrderBy, + CreateImageGrantInput, + UpdateImageGrantInput, + ImageGrantPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class ImageGrantModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + imageGrants: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'ImageGrant', + 'imageGrants', + 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, + }, + 'ImageGrantFilter', + 'ImageGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ImageGrant', + fieldName: 'imageGrants', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + imageGrant: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'ImageGrant', + 'imageGrants', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'ImageGrantFilter', + 'ImageGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ImageGrant', + fieldName: 'imageGrant', + document, + variables, + transform: (data: { + imageGrants?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + imageGrant: data.imageGrants?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + imageGrant: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'ImageGrant', + 'imageGrants', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'ImageGrantFilter', + 'ImageGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ImageGrant', + fieldName: 'imageGrant', + document, + variables, + transform: (data: { + imageGrants?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + imageGrant: data.imageGrants?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createImageGrant: { + imageGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'ImageGrant', + 'createImageGrant', + 'imageGrant', + args.select, + args.data, + 'CreateImageGrantInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ImageGrant', + fieldName: 'createImageGrant', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + ImageGrantPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateImageGrant: { + imageGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'ImageGrant', + 'updateImageGrant', + 'imageGrant', + args.select, + args.where.id, + args.data, + 'UpdateImageGrantInput', + 'id', + 'imageGrantPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ImageGrant', + fieldName: 'updateImageGrant', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteImageGrant: { + imageGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'ImageGrant', + 'deleteImageGrant', + 'imageGrant', + { + id: args.where.id, + }, + 'DeleteImageGrantInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ImageGrant', + fieldName: 'deleteImageGrant', + 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..9a7f46374d 100644 --- a/sdk/constructive-cli/src/compute/orm/models/index.ts +++ b/sdk/constructive-cli/src/compute/orm/models/index.ts @@ -3,6 +3,19 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ +export { BuildModel } from './build'; +export { BuildStepModel } from './buildStep'; +export { BuilderBindingModel } from './builderBinding'; +export { ContentPresetModel } from './contentPreset'; +export { DatabaseFunctionGraphModel } from './databaseFunctionGraph'; +export { DatabaseFunctionGraphExecutionModel } from './databaseFunctionGraphExecution'; +export { DatabaseFunctionGraphExecutionNodeStateModel } from './databaseFunctionGraphExecutionNodeState'; +export { DatabaseFunctionGraphExecutionOutputModel } from './databaseFunctionGraphExecutionOutput'; +export { DatabaseGraphCommitModel } from './databaseGraphCommit'; +export { DatabaseGraphGetAllTreeNodesRecordModel } from './databaseGraphGetAllTreeNodesRecord'; +export { DatabaseGraphObjectModel } from './databaseGraphObject'; +export { DatabaseGraphRefModel } from './databaseGraphRef'; +export { DatabaseGraphStoreModel } from './databaseGraphStore'; export { DbPresetModel } from './dbPreset'; export { FunctionApiBindingModel } from './functionApiBinding'; export { FunctionCapabilityBindingModel } from './functionCapabilityBinding'; @@ -21,6 +34,8 @@ export { FunctionGraphStoreModel } from './functionGraphStore'; export { FunctionInvocationAttemptModel } from './functionInvocationAttempt'; export { FunctionInvocationModel } from './functionInvocation'; export { GetAllTreeNodesRecordModel } from './getAllTreeNodesRecord'; +export { ImageModel } from './image'; +export { ImageGrantModel } from './imageGrant'; export { InfraCommitModel } from './infraCommit'; export { InfraGetAllTreeNodesRecordModel } from './infraGetAllTreeNodesRecord'; export { InfraObjectModel } from './infraObject'; @@ -29,6 +44,9 @@ export { InfraStoreModel } from './infraStore'; export { IntegrationProviderModel } from './integrationProvider'; export { NamespaceModel } from './namespace'; export { NamespaceEventModel } from './namespaceEvent'; +export { PlatformBuildModel } from './platformBuild'; +export { PlatformBuildStepModel } from './platformBuildStep'; +export { PlatformBuilderBindingModel } from './platformBuilderBinding'; export { PlatformFunctionApiBindingModel } from './platformFunctionApiBinding'; export { PlatformFunctionCapabilityBindingModel } from './platformFunctionCapabilityBinding'; export { PlatformFunctionDefinitionModel } from './platformFunctionDefinition'; @@ -37,18 +55,36 @@ export { PlatformFunctionDeploymentEventModel } from './platformFunctionDeployme export { PlatformFunctionExecutionLogModel } from './platformFunctionExecutionLog'; export { PlatformFunctionInvocationAttemptModel } from './platformFunctionInvocationAttempt'; export { PlatformFunctionInvocationModel } from './platformFunctionInvocation'; +export { PlatformImageModel } from './platformImage'; +export { PlatformImageGrantModel } from './platformImageGrant'; export { PlatformInfraCommitModel } from './platformInfraCommit'; export { PlatformInfraGetAllTreeNodesRecordModel } from './platformInfraGetAllTreeNodesRecord'; export { PlatformInfraObjectModel } from './platformInfraObject'; export { PlatformInfraRefModel } from './platformInfraRef'; export { PlatformInfraStoreModel } from './platformInfraStore'; +export { PlatformK8sResourceKindModel } from './platformK8sResourceKind'; +export { PlatformK8sSpecRuleModel } from './platformK8sSpecRule'; export { PlatformNamespaceModel } from './platformNamespace'; export { PlatformNamespaceEventModel } from './platformNamespaceEvent'; +export { PlatformProposalCommentModel } from './platformProposalComment'; +export { PlatformProposalModel } from './platformProposal'; +export { PlatformProposalFileViewModel } from './platformProposalFileView'; +export { PlatformProposalReactionModel } from './platformProposalReaction'; +export { PlatformProposalReviewModel } from './platformProposalReview'; +export { PlatformProposalsChunkModel } from './platformProposalsChunk'; +export { PlatformRegistryBindingModel } from './platformRegistryBinding'; +export { PlatformRegistryModel } from './platformRegistry'; +export { PlatformRegistryGrantModel } from './platformRegistryGrant'; +export { PlatformRepositoryModel } from './platformRepository'; +export { PlatformRepositoryEventModel } from './platformRepositoryEvent'; +export { PlatformRepositoryRequiredCheckModel } from './platformRepositoryRequiredCheck'; +export { PlatformRepositoryWorkflowModel } from './platformRepositoryWorkflow'; export { PlatformResourceModel } from './platformResource'; export { PlatformResourceDeclaredCapacityModel } from './platformResourceDeclaredCapacity'; export { PlatformResourceDefinitionModel } from './platformResourceDefinition'; export { PlatformResourceEventModel } from './platformResourceEvent'; export { PlatformResourceInstallationModel } from './platformResourceInstallation'; +export { PlatformResourceObservedStorageModel } from './platformResourceObservedStorage'; export { PlatformResourceStatusCheckModel } from './platformResourceStatusCheck'; export { PlatformResourceUsageLogModel } from './platformResourceUsageLog'; export { PlatformResourceUsageSummaryModel } from './platformResourceUsageSummary'; @@ -58,11 +94,25 @@ export { PlatformResourcesRequirementsStateModel } from './platformResourcesRequ export { PlatformResourcesResolvedRequirementModel } from './platformResourcesResolvedRequirement'; export { PlatformWebhookEndpointModel } from './platformWebhookEndpoint'; export { PlatformWebhookEventModel } from './platformWebhookEvent'; +export { ProposalCommentModel } from './proposalComment'; +export { ProposalModel } from './proposal'; +export { ProposalFileViewModel } from './proposalFileView'; +export { ProposalReactionModel } from './proposalReaction'; +export { ProposalReviewModel } from './proposalReview'; +export { ProposalsChunkModel } from './proposalsChunk'; +export { RegistryBindingModel } from './registryBinding'; +export { RegistryModel } from './registry'; +export { RegistryGrantModel } from './registryGrant'; +export { RepositoryModel } from './repository'; +export { RepositoryEventModel } from './repositoryEvent'; +export { RepositoryRequiredCheckModel } from './repositoryRequiredCheck'; +export { RepositoryWorkflowModel } from './repositoryWorkflow'; export { ResourceModel } from './resource'; export { ResourceDeclaredCapacityModel } from './resourceDeclaredCapacity'; export { ResourceDefinitionModel } from './resourceDefinition'; export { ResourceEventModel } from './resourceEvent'; export { ResourceInstallationModel } from './resourceInstallation'; +export { ResourceObservedStorageModel } from './resourceObservedStorage'; export { ResourceStatusCheckModel } from './resourceStatusCheck'; export { ResourceUsageLogModel } from './resourceUsageLog'; export { ResourceUsageSummaryModel } from './resourceUsageSummary'; diff --git a/sdk/constructive-cli/src/compute/orm/models/platformBuild.ts b/sdk/constructive-cli/src/compute/orm/models/platformBuild.ts new file mode 100644 index 0000000000..93c10d494b --- /dev/null +++ b/sdk/constructive-cli/src/compute/orm/models/platformBuild.ts @@ -0,0 +1,245 @@ +/** + * PlatformBuild 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 { + PlatformBuild, + PlatformBuildWithRelations, + PlatformBuildSelect, + PlatformBuildFilter, + PlatformBuildOrderBy, + CreatePlatformBuildInput, + UpdatePlatformBuildInput, + PlatformBuildPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformBuildModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformBuilds: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformBuild', + 'platformBuilds', + 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, + }, + 'PlatformBuildFilter', + 'PlatformBuildOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformBuild', + fieldName: 'platformBuilds', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformBuild: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformBuild', + 'platformBuilds', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformBuildFilter', + 'PlatformBuildOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformBuild', + fieldName: 'platformBuild', + document, + variables, + transform: (data: { + platformBuilds?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformBuild: data.platformBuilds?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformBuild: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformBuild', + 'platformBuilds', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformBuildFilter', + 'PlatformBuildOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformBuild', + fieldName: 'platformBuild', + document, + variables, + transform: (data: { + platformBuilds?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformBuild: data.platformBuilds?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformBuild: { + platformBuild: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformBuild', + 'createPlatformBuild', + 'platformBuild', + args.select, + args.data, + 'CreatePlatformBuildInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformBuild', + fieldName: 'createPlatformBuild', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformBuildPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformBuild: { + platformBuild: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformBuild', + 'updatePlatformBuild', + 'platformBuild', + args.select, + args.where.id, + args.data, + 'UpdatePlatformBuildInput', + 'id', + 'platformBuildPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformBuild', + fieldName: 'updatePlatformBuild', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformBuild: { + platformBuild: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformBuild', + 'deletePlatformBuild', + 'platformBuild', + { + id: args.where.id, + }, + 'DeletePlatformBuildInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformBuild', + fieldName: 'deletePlatformBuild', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/compute/orm/models/platformBuildStep.ts b/sdk/constructive-cli/src/compute/orm/models/platformBuildStep.ts new file mode 100644 index 0000000000..24a49677c0 --- /dev/null +++ b/sdk/constructive-cli/src/compute/orm/models/platformBuildStep.ts @@ -0,0 +1,250 @@ +/** + * PlatformBuildStep 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 { + PlatformBuildStep, + PlatformBuildStepWithRelations, + PlatformBuildStepSelect, + PlatformBuildStepFilter, + PlatformBuildStepOrderBy, + CreatePlatformBuildStepInput, + UpdatePlatformBuildStepInput, + PlatformBuildStepPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformBuildStepModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformBuildSteps: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformBuildStep', + 'platformBuildSteps', + 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, + }, + 'PlatformBuildStepFilter', + 'PlatformBuildStepOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformBuildStep', + fieldName: 'platformBuildSteps', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformBuildStep: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformBuildStep', + 'platformBuildSteps', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformBuildStepFilter', + 'PlatformBuildStepOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformBuildStep', + fieldName: 'platformBuildStep', + document, + variables, + transform: (data: { + platformBuildSteps?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformBuildStep: data.platformBuildSteps?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformBuildStep: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformBuildStep', + 'platformBuildSteps', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformBuildStepFilter', + 'PlatformBuildStepOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformBuildStep', + fieldName: 'platformBuildStep', + document, + variables, + transform: (data: { + platformBuildSteps?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformBuildStep: data.platformBuildSteps?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformBuildStep: { + platformBuildStep: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformBuildStep', + 'createPlatformBuildStep', + 'platformBuildStep', + args.select, + args.data, + 'CreatePlatformBuildStepInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformBuildStep', + fieldName: 'createPlatformBuildStep', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + recordedAt: string; + }, + PlatformBuildStepPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformBuildStep: { + platformBuildStep: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformBuildStep', + 'updatePlatformBuildStep', + 'platformBuildStep', + args.select, + args.where.id, + args.data, + 'UpdatePlatformBuildStepInput', + 'id', + 'platformBuildStepPatch', + connectionFieldsMap, + { + recordedAt: args.where.recordedAt, + } + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformBuildStep', + fieldName: 'updatePlatformBuildStep', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + recordedAt: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformBuildStep: { + platformBuildStep: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformBuildStep', + 'deletePlatformBuildStep', + 'platformBuildStep', + { + id: args.where.id, + recordedAt: args.where.recordedAt, + }, + 'DeletePlatformBuildStepInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformBuildStep', + fieldName: 'deletePlatformBuildStep', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/compute/orm/models/platformBuilderBinding.ts b/sdk/constructive-cli/src/compute/orm/models/platformBuilderBinding.ts new file mode 100644 index 0000000000..09a8daa1ed --- /dev/null +++ b/sdk/constructive-cli/src/compute/orm/models/platformBuilderBinding.ts @@ -0,0 +1,247 @@ +/** + * PlatformBuilderBinding 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 { + PlatformBuilderBinding, + PlatformBuilderBindingWithRelations, + PlatformBuilderBindingSelect, + PlatformBuilderBindingFilter, + PlatformBuilderBindingOrderBy, + CreatePlatformBuilderBindingInput, + UpdatePlatformBuilderBindingInput, + PlatformBuilderBindingPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformBuilderBindingModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformBuilderBindings: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformBuilderBinding', + 'platformBuilderBindings', + 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, + }, + 'PlatformBuilderBindingFilter', + 'PlatformBuilderBindingOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformBuilderBinding', + fieldName: 'platformBuilderBindings', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformBuilderBinding: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformBuilderBinding', + 'platformBuilderBindings', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformBuilderBindingFilter', + 'PlatformBuilderBindingOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformBuilderBinding', + fieldName: 'platformBuilderBinding', + document, + variables, + transform: (data: { + platformBuilderBindings?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformBuilderBinding: data.platformBuilderBindings?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformBuilderBinding: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformBuilderBinding', + 'platformBuilderBindings', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformBuilderBindingFilter', + 'PlatformBuilderBindingOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformBuilderBinding', + fieldName: 'platformBuilderBinding', + document, + variables, + transform: (data: { + platformBuilderBindings?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformBuilderBinding: data.platformBuilderBindings?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformBuilderBinding: { + platformBuilderBinding: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformBuilderBinding', + 'createPlatformBuilderBinding', + 'platformBuilderBinding', + args.select, + args.data, + 'CreatePlatformBuilderBindingInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformBuilderBinding', + fieldName: 'createPlatformBuilderBinding', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformBuilderBindingPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformBuilderBinding: { + platformBuilderBinding: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformBuilderBinding', + 'updatePlatformBuilderBinding', + 'platformBuilderBinding', + args.select, + args.where.id, + args.data, + 'UpdatePlatformBuilderBindingInput', + 'id', + 'platformBuilderBindingPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformBuilderBinding', + fieldName: 'updatePlatformBuilderBinding', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformBuilderBinding: { + platformBuilderBinding: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformBuilderBinding', + 'deletePlatformBuilderBinding', + 'platformBuilderBinding', + { + id: args.where.id, + }, + 'DeletePlatformBuilderBindingInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformBuilderBinding', + fieldName: 'deletePlatformBuilderBinding', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/compute/orm/models/platformImage.ts b/sdk/constructive-cli/src/compute/orm/models/platformImage.ts new file mode 100644 index 0000000000..6034dea979 --- /dev/null +++ b/sdk/constructive-cli/src/compute/orm/models/platformImage.ts @@ -0,0 +1,245 @@ +/** + * PlatformImage 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 { + PlatformImage, + PlatformImageWithRelations, + PlatformImageSelect, + PlatformImageFilter, + PlatformImageOrderBy, + CreatePlatformImageInput, + UpdatePlatformImageInput, + PlatformImagePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformImageModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformImages: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformImage', + 'platformImages', + 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, + }, + 'PlatformImageFilter', + 'PlatformImageOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformImage', + fieldName: 'platformImages', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformImage: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformImage', + 'platformImages', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformImageFilter', + 'PlatformImageOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformImage', + fieldName: 'platformImage', + document, + variables, + transform: (data: { + platformImages?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformImage: data.platformImages?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformImage: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformImage', + 'platformImages', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformImageFilter', + 'PlatformImageOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformImage', + fieldName: 'platformImage', + document, + variables, + transform: (data: { + platformImages?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformImage: data.platformImages?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformImage: { + platformImage: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformImage', + 'createPlatformImage', + 'platformImage', + args.select, + args.data, + 'CreatePlatformImageInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformImage', + fieldName: 'createPlatformImage', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformImagePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformImage: { + platformImage: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformImage', + 'updatePlatformImage', + 'platformImage', + args.select, + args.where.id, + args.data, + 'UpdatePlatformImageInput', + 'id', + 'platformImagePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformImage', + fieldName: 'updatePlatformImage', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformImage: { + platformImage: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformImage', + 'deletePlatformImage', + 'platformImage', + { + id: args.where.id, + }, + 'DeletePlatformImageInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformImage', + fieldName: 'deletePlatformImage', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/compute/orm/models/platformImageGrant.ts b/sdk/constructive-cli/src/compute/orm/models/platformImageGrant.ts new file mode 100644 index 0000000000..e8cdfc6ac5 --- /dev/null +++ b/sdk/constructive-cli/src/compute/orm/models/platformImageGrant.ts @@ -0,0 +1,245 @@ +/** + * PlatformImageGrant 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 { + PlatformImageGrant, + PlatformImageGrantWithRelations, + PlatformImageGrantSelect, + PlatformImageGrantFilter, + PlatformImageGrantOrderBy, + CreatePlatformImageGrantInput, + UpdatePlatformImageGrantInput, + PlatformImageGrantPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformImageGrantModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformImageGrants: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformImageGrant', + 'platformImageGrants', + 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, + }, + 'PlatformImageGrantFilter', + 'PlatformImageGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformImageGrant', + fieldName: 'platformImageGrants', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformImageGrant: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformImageGrant', + 'platformImageGrants', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformImageGrantFilter', + 'PlatformImageGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformImageGrant', + fieldName: 'platformImageGrant', + document, + variables, + transform: (data: { + platformImageGrants?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformImageGrant: data.platformImageGrants?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformImageGrant: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformImageGrant', + 'platformImageGrants', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformImageGrantFilter', + 'PlatformImageGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformImageGrant', + fieldName: 'platformImageGrant', + document, + variables, + transform: (data: { + platformImageGrants?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformImageGrant: data.platformImageGrants?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformImageGrant: { + platformImageGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformImageGrant', + 'createPlatformImageGrant', + 'platformImageGrant', + args.select, + args.data, + 'CreatePlatformImageGrantInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformImageGrant', + fieldName: 'createPlatformImageGrant', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformImageGrantPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformImageGrant: { + platformImageGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformImageGrant', + 'updatePlatformImageGrant', + 'platformImageGrant', + args.select, + args.where.id, + args.data, + 'UpdatePlatformImageGrantInput', + 'id', + 'platformImageGrantPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformImageGrant', + fieldName: 'updatePlatformImageGrant', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformImageGrant: { + platformImageGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformImageGrant', + 'deletePlatformImageGrant', + 'platformImageGrant', + { + id: args.where.id, + }, + 'DeletePlatformImageGrantInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformImageGrant', + fieldName: 'deletePlatformImageGrant', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/compute/orm/models/platformK8sResourceKind.ts b/sdk/constructive-cli/src/compute/orm/models/platformK8sResourceKind.ts new file mode 100644 index 0000000000..e6c0883fad --- /dev/null +++ b/sdk/constructive-cli/src/compute/orm/models/platformK8sResourceKind.ts @@ -0,0 +1,247 @@ +/** + * PlatformK8sResourceKind 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 { + PlatformK8sResourceKind, + PlatformK8sResourceKindWithRelations, + PlatformK8sResourceKindSelect, + PlatformK8sResourceKindFilter, + PlatformK8sResourceKindOrderBy, + CreatePlatformK8sResourceKindInput, + UpdatePlatformK8sResourceKindInput, + PlatformK8sResourceKindPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformK8sResourceKindModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformK8sResourceKinds: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformK8sResourceKind', + 'platformK8sResourceKinds', + 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, + }, + 'PlatformK8sResourceKindFilter', + 'PlatformK8sResourceKindOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformK8sResourceKind', + fieldName: 'platformK8sResourceKinds', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformK8sResourceKind: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformK8sResourceKind', + 'platformK8sResourceKinds', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformK8sResourceKindFilter', + 'PlatformK8sResourceKindOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformK8sResourceKind', + fieldName: 'platformK8sResourceKind', + document, + variables, + transform: (data: { + platformK8sResourceKinds?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformK8sResourceKind: data.platformK8sResourceKinds?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformK8sResourceKind: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformK8sResourceKind', + 'platformK8sResourceKinds', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformK8sResourceKindFilter', + 'PlatformK8sResourceKindOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformK8sResourceKind', + fieldName: 'platformK8sResourceKind', + document, + variables, + transform: (data: { + platformK8sResourceKinds?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformK8sResourceKind: data.platformK8sResourceKinds?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformK8sResourceKind: { + platformK8sResourceKind: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformK8sResourceKind', + 'createPlatformK8sResourceKind', + 'platformK8sResourceKind', + args.select, + args.data, + 'CreatePlatformK8sResourceKindInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformK8sResourceKind', + fieldName: 'createPlatformK8sResourceKind', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformK8sResourceKindPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformK8sResourceKind: { + platformK8sResourceKind: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformK8sResourceKind', + 'updatePlatformK8sResourceKind', + 'platformK8sResourceKind', + args.select, + args.where.id, + args.data, + 'UpdatePlatformK8sResourceKindInput', + 'id', + 'platformK8sResourceKindPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformK8sResourceKind', + fieldName: 'updatePlatformK8sResourceKind', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformK8sResourceKind: { + platformK8sResourceKind: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformK8sResourceKind', + 'deletePlatformK8sResourceKind', + 'platformK8sResourceKind', + { + id: args.where.id, + }, + 'DeletePlatformK8sResourceKindInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformK8sResourceKind', + fieldName: 'deletePlatformK8sResourceKind', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/compute/orm/models/platformK8sSpecRule.ts b/sdk/constructive-cli/src/compute/orm/models/platformK8sSpecRule.ts new file mode 100644 index 0000000000..d2ef98632d --- /dev/null +++ b/sdk/constructive-cli/src/compute/orm/models/platformK8sSpecRule.ts @@ -0,0 +1,245 @@ +/** + * PlatformK8sSpecRule 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 { + PlatformK8sSpecRule, + PlatformK8sSpecRuleWithRelations, + PlatformK8sSpecRuleSelect, + PlatformK8sSpecRuleFilter, + PlatformK8sSpecRuleOrderBy, + CreatePlatformK8sSpecRuleInput, + UpdatePlatformK8sSpecRuleInput, + PlatformK8sSpecRulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformK8sSpecRuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformK8sSpecRules: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformK8sSpecRule', + 'platformK8sSpecRules', + 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, + }, + 'PlatformK8sSpecRuleFilter', + 'PlatformK8sSpecRuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformK8sSpecRule', + fieldName: 'platformK8sSpecRules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformK8sSpecRule: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformK8sSpecRule', + 'platformK8sSpecRules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformK8sSpecRuleFilter', + 'PlatformK8sSpecRuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformK8sSpecRule', + fieldName: 'platformK8sSpecRule', + document, + variables, + transform: (data: { + platformK8sSpecRules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformK8sSpecRule: data.platformK8sSpecRules?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformK8sSpecRule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformK8sSpecRule', + 'platformK8sSpecRules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformK8sSpecRuleFilter', + 'PlatformK8sSpecRuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformK8sSpecRule', + fieldName: 'platformK8sSpecRule', + document, + variables, + transform: (data: { + platformK8sSpecRules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformK8sSpecRule: data.platformK8sSpecRules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformK8sSpecRule: { + platformK8sSpecRule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformK8sSpecRule', + 'createPlatformK8sSpecRule', + 'platformK8sSpecRule', + args.select, + args.data, + 'CreatePlatformK8sSpecRuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformK8sSpecRule', + fieldName: 'createPlatformK8sSpecRule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformK8sSpecRulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformK8sSpecRule: { + platformK8sSpecRule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformK8sSpecRule', + 'updatePlatformK8sSpecRule', + 'platformK8sSpecRule', + args.select, + args.where.id, + args.data, + 'UpdatePlatformK8sSpecRuleInput', + 'id', + 'platformK8sSpecRulePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformK8sSpecRule', + fieldName: 'updatePlatformK8sSpecRule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformK8sSpecRule: { + platformK8sSpecRule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformK8sSpecRule', + 'deletePlatformK8sSpecRule', + 'platformK8sSpecRule', + { + id: args.where.id, + }, + 'DeletePlatformK8sSpecRuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformK8sSpecRule', + fieldName: 'deletePlatformK8sSpecRule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/compute/orm/models/platformProposal.ts b/sdk/constructive-cli/src/compute/orm/models/platformProposal.ts new file mode 100644 index 0000000000..69a87096be --- /dev/null +++ b/sdk/constructive-cli/src/compute/orm/models/platformProposal.ts @@ -0,0 +1,245 @@ +/** + * PlatformProposal 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 { + PlatformProposal, + PlatformProposalWithRelations, + PlatformProposalSelect, + PlatformProposalFilter, + PlatformProposalOrderBy, + CreatePlatformProposalInput, + UpdatePlatformProposalInput, + PlatformProposalPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformProposalModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformProposals: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformProposal', + 'platformProposals', + 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, + }, + 'PlatformProposalFilter', + 'PlatformProposalOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformProposal', + fieldName: 'platformProposals', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformProposal: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformProposal', + 'platformProposals', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformProposalFilter', + 'PlatformProposalOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformProposal', + fieldName: 'platformProposal', + document, + variables, + transform: (data: { + platformProposals?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformProposal: data.platformProposals?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformProposal: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformProposal', + 'platformProposals', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformProposalFilter', + 'PlatformProposalOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformProposal', + fieldName: 'platformProposal', + document, + variables, + transform: (data: { + platformProposals?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformProposal: data.platformProposals?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformProposal: { + platformProposal: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformProposal', + 'createPlatformProposal', + 'platformProposal', + args.select, + args.data, + 'CreatePlatformProposalInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformProposal', + fieldName: 'createPlatformProposal', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformProposalPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformProposal: { + platformProposal: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformProposal', + 'updatePlatformProposal', + 'platformProposal', + args.select, + args.where.id, + args.data, + 'UpdatePlatformProposalInput', + 'id', + 'platformProposalPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformProposal', + fieldName: 'updatePlatformProposal', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformProposal: { + platformProposal: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformProposal', + 'deletePlatformProposal', + 'platformProposal', + { + id: args.where.id, + }, + 'DeletePlatformProposalInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformProposal', + fieldName: 'deletePlatformProposal', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/compute/orm/models/platformProposalComment.ts b/sdk/constructive-cli/src/compute/orm/models/platformProposalComment.ts new file mode 100644 index 0000000000..adaf1e6852 --- /dev/null +++ b/sdk/constructive-cli/src/compute/orm/models/platformProposalComment.ts @@ -0,0 +1,247 @@ +/** + * PlatformProposalComment 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 { + PlatformProposalComment, + PlatformProposalCommentWithRelations, + PlatformProposalCommentSelect, + PlatformProposalCommentFilter, + PlatformProposalCommentOrderBy, + CreatePlatformProposalCommentInput, + UpdatePlatformProposalCommentInput, + PlatformProposalCommentPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformProposalCommentModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformProposalComments: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformProposalComment', + 'platformProposalComments', + 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, + }, + 'PlatformProposalCommentFilter', + 'PlatformProposalCommentOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformProposalComment', + fieldName: 'platformProposalComments', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformProposalComment: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformProposalComment', + 'platformProposalComments', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformProposalCommentFilter', + 'PlatformProposalCommentOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformProposalComment', + fieldName: 'platformProposalComment', + document, + variables, + transform: (data: { + platformProposalComments?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformProposalComment: data.platformProposalComments?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformProposalComment: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformProposalComment', + 'platformProposalComments', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformProposalCommentFilter', + 'PlatformProposalCommentOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformProposalComment', + fieldName: 'platformProposalComment', + document, + variables, + transform: (data: { + platformProposalComments?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformProposalComment: data.platformProposalComments?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformProposalComment: { + platformProposalComment: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformProposalComment', + 'createPlatformProposalComment', + 'platformProposalComment', + args.select, + args.data, + 'CreatePlatformProposalCommentInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformProposalComment', + fieldName: 'createPlatformProposalComment', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformProposalCommentPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformProposalComment: { + platformProposalComment: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformProposalComment', + 'updatePlatformProposalComment', + 'platformProposalComment', + args.select, + args.where.id, + args.data, + 'UpdatePlatformProposalCommentInput', + 'id', + 'platformProposalCommentPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformProposalComment', + fieldName: 'updatePlatformProposalComment', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformProposalComment: { + platformProposalComment: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformProposalComment', + 'deletePlatformProposalComment', + 'platformProposalComment', + { + id: args.where.id, + }, + 'DeletePlatformProposalCommentInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformProposalComment', + fieldName: 'deletePlatformProposalComment', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/compute/orm/models/platformProposalFileView.ts b/sdk/constructive-cli/src/compute/orm/models/platformProposalFileView.ts new file mode 100644 index 0000000000..b92ac46ee4 --- /dev/null +++ b/sdk/constructive-cli/src/compute/orm/models/platformProposalFileView.ts @@ -0,0 +1,247 @@ +/** + * PlatformProposalFileView 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 { + PlatformProposalFileView, + PlatformProposalFileViewWithRelations, + PlatformProposalFileViewSelect, + PlatformProposalFileViewFilter, + PlatformProposalFileViewOrderBy, + CreatePlatformProposalFileViewInput, + UpdatePlatformProposalFileViewInput, + PlatformProposalFileViewPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformProposalFileViewModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformProposalFileViews: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformProposalFileView', + 'platformProposalFileViews', + 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, + }, + 'PlatformProposalFileViewFilter', + 'PlatformProposalFileViewOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformProposalFileView', + fieldName: 'platformProposalFileViews', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformProposalFileView: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformProposalFileView', + 'platformProposalFileViews', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformProposalFileViewFilter', + 'PlatformProposalFileViewOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformProposalFileView', + fieldName: 'platformProposalFileView', + document, + variables, + transform: (data: { + platformProposalFileViews?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformProposalFileView: data.platformProposalFileViews?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformProposalFileView: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformProposalFileView', + 'platformProposalFileViews', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformProposalFileViewFilter', + 'PlatformProposalFileViewOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformProposalFileView', + fieldName: 'platformProposalFileView', + document, + variables, + transform: (data: { + platformProposalFileViews?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformProposalFileView: data.platformProposalFileViews?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformProposalFileView: { + platformProposalFileView: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformProposalFileView', + 'createPlatformProposalFileView', + 'platformProposalFileView', + args.select, + args.data, + 'CreatePlatformProposalFileViewInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformProposalFileView', + fieldName: 'createPlatformProposalFileView', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformProposalFileViewPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformProposalFileView: { + platformProposalFileView: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformProposalFileView', + 'updatePlatformProposalFileView', + 'platformProposalFileView', + args.select, + args.where.id, + args.data, + 'UpdatePlatformProposalFileViewInput', + 'id', + 'platformProposalFileViewPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformProposalFileView', + fieldName: 'updatePlatformProposalFileView', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformProposalFileView: { + platformProposalFileView: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformProposalFileView', + 'deletePlatformProposalFileView', + 'platformProposalFileView', + { + id: args.where.id, + }, + 'DeletePlatformProposalFileViewInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformProposalFileView', + fieldName: 'deletePlatformProposalFileView', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/compute/orm/models/platformProposalReaction.ts b/sdk/constructive-cli/src/compute/orm/models/platformProposalReaction.ts new file mode 100644 index 0000000000..3df81a6deb --- /dev/null +++ b/sdk/constructive-cli/src/compute/orm/models/platformProposalReaction.ts @@ -0,0 +1,247 @@ +/** + * PlatformProposalReaction 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 { + PlatformProposalReaction, + PlatformProposalReactionWithRelations, + PlatformProposalReactionSelect, + PlatformProposalReactionFilter, + PlatformProposalReactionOrderBy, + CreatePlatformProposalReactionInput, + UpdatePlatformProposalReactionInput, + PlatformProposalReactionPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformProposalReactionModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformProposalReactions: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformProposalReaction', + 'platformProposalReactions', + 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, + }, + 'PlatformProposalReactionFilter', + 'PlatformProposalReactionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformProposalReaction', + fieldName: 'platformProposalReactions', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformProposalReaction: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformProposalReaction', + 'platformProposalReactions', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformProposalReactionFilter', + 'PlatformProposalReactionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformProposalReaction', + fieldName: 'platformProposalReaction', + document, + variables, + transform: (data: { + platformProposalReactions?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformProposalReaction: data.platformProposalReactions?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformProposalReaction: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformProposalReaction', + 'platformProposalReactions', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformProposalReactionFilter', + 'PlatformProposalReactionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformProposalReaction', + fieldName: 'platformProposalReaction', + document, + variables, + transform: (data: { + platformProposalReactions?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformProposalReaction: data.platformProposalReactions?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformProposalReaction: { + platformProposalReaction: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformProposalReaction', + 'createPlatformProposalReaction', + 'platformProposalReaction', + args.select, + args.data, + 'CreatePlatformProposalReactionInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformProposalReaction', + fieldName: 'createPlatformProposalReaction', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformProposalReactionPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformProposalReaction: { + platformProposalReaction: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformProposalReaction', + 'updatePlatformProposalReaction', + 'platformProposalReaction', + args.select, + args.where.id, + args.data, + 'UpdatePlatformProposalReactionInput', + 'id', + 'platformProposalReactionPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformProposalReaction', + fieldName: 'updatePlatformProposalReaction', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformProposalReaction: { + platformProposalReaction: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformProposalReaction', + 'deletePlatformProposalReaction', + 'platformProposalReaction', + { + id: args.where.id, + }, + 'DeletePlatformProposalReactionInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformProposalReaction', + fieldName: 'deletePlatformProposalReaction', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/compute/orm/models/platformProposalReview.ts b/sdk/constructive-cli/src/compute/orm/models/platformProposalReview.ts new file mode 100644 index 0000000000..1922f027ab --- /dev/null +++ b/sdk/constructive-cli/src/compute/orm/models/platformProposalReview.ts @@ -0,0 +1,247 @@ +/** + * PlatformProposalReview 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 { + PlatformProposalReview, + PlatformProposalReviewWithRelations, + PlatformProposalReviewSelect, + PlatformProposalReviewFilter, + PlatformProposalReviewOrderBy, + CreatePlatformProposalReviewInput, + UpdatePlatformProposalReviewInput, + PlatformProposalReviewPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformProposalReviewModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformProposalReviews: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformProposalReview', + 'platformProposalReviews', + 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, + }, + 'PlatformProposalReviewFilter', + 'PlatformProposalReviewOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformProposalReview', + fieldName: 'platformProposalReviews', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformProposalReview: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformProposalReview', + 'platformProposalReviews', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformProposalReviewFilter', + 'PlatformProposalReviewOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformProposalReview', + fieldName: 'platformProposalReview', + document, + variables, + transform: (data: { + platformProposalReviews?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformProposalReview: data.platformProposalReviews?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformProposalReview: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformProposalReview', + 'platformProposalReviews', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformProposalReviewFilter', + 'PlatformProposalReviewOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformProposalReview', + fieldName: 'platformProposalReview', + document, + variables, + transform: (data: { + platformProposalReviews?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformProposalReview: data.platformProposalReviews?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformProposalReview: { + platformProposalReview: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformProposalReview', + 'createPlatformProposalReview', + 'platformProposalReview', + args.select, + args.data, + 'CreatePlatformProposalReviewInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformProposalReview', + fieldName: 'createPlatformProposalReview', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformProposalReviewPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformProposalReview: { + platformProposalReview: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformProposalReview', + 'updatePlatformProposalReview', + 'platformProposalReview', + args.select, + args.where.id, + args.data, + 'UpdatePlatformProposalReviewInput', + 'id', + 'platformProposalReviewPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformProposalReview', + fieldName: 'updatePlatformProposalReview', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformProposalReview: { + platformProposalReview: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformProposalReview', + 'deletePlatformProposalReview', + 'platformProposalReview', + { + id: args.where.id, + }, + 'DeletePlatformProposalReviewInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformProposalReview', + fieldName: 'deletePlatformProposalReview', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/compute/orm/models/platformProposalsChunk.ts b/sdk/constructive-cli/src/compute/orm/models/platformProposalsChunk.ts new file mode 100644 index 0000000000..f7cd052dd3 --- /dev/null +++ b/sdk/constructive-cli/src/compute/orm/models/platformProposalsChunk.ts @@ -0,0 +1,247 @@ +/** + * PlatformProposalsChunk 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 { + PlatformProposalsChunk, + PlatformProposalsChunkWithRelations, + PlatformProposalsChunkSelect, + PlatformProposalsChunkFilter, + PlatformProposalsChunkOrderBy, + CreatePlatformProposalsChunkInput, + UpdatePlatformProposalsChunkInput, + PlatformProposalsChunkPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformProposalsChunkModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformProposalsChunks: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformProposalsChunk', + 'platformProposalsChunks', + 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, + }, + 'PlatformProposalsChunkFilter', + 'PlatformProposalsChunkOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformProposalsChunk', + fieldName: 'platformProposalsChunks', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformProposalsChunk: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformProposalsChunk', + 'platformProposalsChunks', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformProposalsChunkFilter', + 'PlatformProposalsChunkOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformProposalsChunk', + fieldName: 'platformProposalsChunk', + document, + variables, + transform: (data: { + platformProposalsChunks?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformProposalsChunk: data.platformProposalsChunks?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformProposalsChunk: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformProposalsChunk', + 'platformProposalsChunks', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformProposalsChunkFilter', + 'PlatformProposalsChunkOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformProposalsChunk', + fieldName: 'platformProposalsChunk', + document, + variables, + transform: (data: { + platformProposalsChunks?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformProposalsChunk: data.platformProposalsChunks?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformProposalsChunk: { + platformProposalsChunk: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformProposalsChunk', + 'createPlatformProposalsChunk', + 'platformProposalsChunk', + args.select, + args.data, + 'CreatePlatformProposalsChunkInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformProposalsChunk', + fieldName: 'createPlatformProposalsChunk', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformProposalsChunkPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformProposalsChunk: { + platformProposalsChunk: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformProposalsChunk', + 'updatePlatformProposalsChunk', + 'platformProposalsChunk', + args.select, + args.where.id, + args.data, + 'UpdatePlatformProposalsChunkInput', + 'id', + 'platformProposalsChunkPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformProposalsChunk', + fieldName: 'updatePlatformProposalsChunk', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformProposalsChunk: { + platformProposalsChunk: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformProposalsChunk', + 'deletePlatformProposalsChunk', + 'platformProposalsChunk', + { + id: args.where.id, + }, + 'DeletePlatformProposalsChunkInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformProposalsChunk', + fieldName: 'deletePlatformProposalsChunk', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/compute/orm/models/platformRegistry.ts b/sdk/constructive-cli/src/compute/orm/models/platformRegistry.ts new file mode 100644 index 0000000000..8d7284f780 --- /dev/null +++ b/sdk/constructive-cli/src/compute/orm/models/platformRegistry.ts @@ -0,0 +1,245 @@ +/** + * PlatformRegistry 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 { + PlatformRegistry, + PlatformRegistryWithRelations, + PlatformRegistrySelect, + PlatformRegistryFilter, + PlatformRegistryOrderBy, + CreatePlatformRegistryInput, + UpdatePlatformRegistryInput, + PlatformRegistryPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformRegistryModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformRegistries: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformRegistry', + 'platformRegistries', + 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, + }, + 'PlatformRegistryFilter', + 'PlatformRegistryOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformRegistry', + fieldName: 'platformRegistries', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformRegistry: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformRegistry', + 'platformRegistries', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformRegistryFilter', + 'PlatformRegistryOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformRegistry', + fieldName: 'platformRegistry', + document, + variables, + transform: (data: { + platformRegistries?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformRegistry: data.platformRegistries?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformRegistry: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformRegistry', + 'platformRegistries', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformRegistryFilter', + 'PlatformRegistryOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformRegistry', + fieldName: 'platformRegistry', + document, + variables, + transform: (data: { + platformRegistries?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformRegistry: data.platformRegistries?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformRegistry: { + platformRegistry: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformRegistry', + 'createPlatformRegistry', + 'platformRegistry', + args.select, + args.data, + 'CreatePlatformRegistryInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformRegistry', + fieldName: 'createPlatformRegistry', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformRegistryPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformRegistry: { + platformRegistry: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformRegistry', + 'updatePlatformRegistry', + 'platformRegistry', + args.select, + args.where.id, + args.data, + 'UpdatePlatformRegistryInput', + 'id', + 'platformRegistryPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformRegistry', + fieldName: 'updatePlatformRegistry', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformRegistry: { + platformRegistry: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformRegistry', + 'deletePlatformRegistry', + 'platformRegistry', + { + id: args.where.id, + }, + 'DeletePlatformRegistryInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformRegistry', + fieldName: 'deletePlatformRegistry', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/compute/orm/models/platformRegistryBinding.ts b/sdk/constructive-cli/src/compute/orm/models/platformRegistryBinding.ts new file mode 100644 index 0000000000..45be7743fa --- /dev/null +++ b/sdk/constructive-cli/src/compute/orm/models/platformRegistryBinding.ts @@ -0,0 +1,247 @@ +/** + * PlatformRegistryBinding 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 { + PlatformRegistryBinding, + PlatformRegistryBindingWithRelations, + PlatformRegistryBindingSelect, + PlatformRegistryBindingFilter, + PlatformRegistryBindingOrderBy, + CreatePlatformRegistryBindingInput, + UpdatePlatformRegistryBindingInput, + PlatformRegistryBindingPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformRegistryBindingModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformRegistryBindings: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformRegistryBinding', + 'platformRegistryBindings', + 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, + }, + 'PlatformRegistryBindingFilter', + 'PlatformRegistryBindingOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformRegistryBinding', + fieldName: 'platformRegistryBindings', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformRegistryBinding: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformRegistryBinding', + 'platformRegistryBindings', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformRegistryBindingFilter', + 'PlatformRegistryBindingOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformRegistryBinding', + fieldName: 'platformRegistryBinding', + document, + variables, + transform: (data: { + platformRegistryBindings?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformRegistryBinding: data.platformRegistryBindings?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformRegistryBinding: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformRegistryBinding', + 'platformRegistryBindings', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformRegistryBindingFilter', + 'PlatformRegistryBindingOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformRegistryBinding', + fieldName: 'platformRegistryBinding', + document, + variables, + transform: (data: { + platformRegistryBindings?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformRegistryBinding: data.platformRegistryBindings?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformRegistryBinding: { + platformRegistryBinding: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformRegistryBinding', + 'createPlatformRegistryBinding', + 'platformRegistryBinding', + args.select, + args.data, + 'CreatePlatformRegistryBindingInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformRegistryBinding', + fieldName: 'createPlatformRegistryBinding', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformRegistryBindingPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformRegistryBinding: { + platformRegistryBinding: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformRegistryBinding', + 'updatePlatformRegistryBinding', + 'platformRegistryBinding', + args.select, + args.where.id, + args.data, + 'UpdatePlatformRegistryBindingInput', + 'id', + 'platformRegistryBindingPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformRegistryBinding', + fieldName: 'updatePlatformRegistryBinding', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformRegistryBinding: { + platformRegistryBinding: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformRegistryBinding', + 'deletePlatformRegistryBinding', + 'platformRegistryBinding', + { + id: args.where.id, + }, + 'DeletePlatformRegistryBindingInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformRegistryBinding', + fieldName: 'deletePlatformRegistryBinding', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/compute/orm/models/platformRegistryGrant.ts b/sdk/constructive-cli/src/compute/orm/models/platformRegistryGrant.ts new file mode 100644 index 0000000000..02e09c662b --- /dev/null +++ b/sdk/constructive-cli/src/compute/orm/models/platformRegistryGrant.ts @@ -0,0 +1,247 @@ +/** + * PlatformRegistryGrant 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 { + PlatformRegistryGrant, + PlatformRegistryGrantWithRelations, + PlatformRegistryGrantSelect, + PlatformRegistryGrantFilter, + PlatformRegistryGrantOrderBy, + CreatePlatformRegistryGrantInput, + UpdatePlatformRegistryGrantInput, + PlatformRegistryGrantPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformRegistryGrantModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformRegistryGrants: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformRegistryGrant', + 'platformRegistryGrants', + 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, + }, + 'PlatformRegistryGrantFilter', + 'PlatformRegistryGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformRegistryGrant', + fieldName: 'platformRegistryGrants', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformRegistryGrant: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformRegistryGrant', + 'platformRegistryGrants', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformRegistryGrantFilter', + 'PlatformRegistryGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformRegistryGrant', + fieldName: 'platformRegistryGrant', + document, + variables, + transform: (data: { + platformRegistryGrants?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformRegistryGrant: data.platformRegistryGrants?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformRegistryGrant: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformRegistryGrant', + 'platformRegistryGrants', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformRegistryGrantFilter', + 'PlatformRegistryGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformRegistryGrant', + fieldName: 'platformRegistryGrant', + document, + variables, + transform: (data: { + platformRegistryGrants?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformRegistryGrant: data.platformRegistryGrants?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformRegistryGrant: { + platformRegistryGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformRegistryGrant', + 'createPlatformRegistryGrant', + 'platformRegistryGrant', + args.select, + args.data, + 'CreatePlatformRegistryGrantInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformRegistryGrant', + fieldName: 'createPlatformRegistryGrant', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformRegistryGrantPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformRegistryGrant: { + platformRegistryGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformRegistryGrant', + 'updatePlatformRegistryGrant', + 'platformRegistryGrant', + args.select, + args.where.id, + args.data, + 'UpdatePlatformRegistryGrantInput', + 'id', + 'platformRegistryGrantPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformRegistryGrant', + fieldName: 'updatePlatformRegistryGrant', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformRegistryGrant: { + platformRegistryGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformRegistryGrant', + 'deletePlatformRegistryGrant', + 'platformRegistryGrant', + { + id: args.where.id, + }, + 'DeletePlatformRegistryGrantInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformRegistryGrant', + fieldName: 'deletePlatformRegistryGrant', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/compute/orm/models/platformRepository.ts b/sdk/constructive-cli/src/compute/orm/models/platformRepository.ts new file mode 100644 index 0000000000..d24c3b7098 --- /dev/null +++ b/sdk/constructive-cli/src/compute/orm/models/platformRepository.ts @@ -0,0 +1,245 @@ +/** + * PlatformRepository 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 { + PlatformRepository, + PlatformRepositoryWithRelations, + PlatformRepositorySelect, + PlatformRepositoryFilter, + PlatformRepositoryOrderBy, + CreatePlatformRepositoryInput, + UpdatePlatformRepositoryInput, + PlatformRepositoryPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformRepositoryModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformRepositories: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformRepository', + 'platformRepositories', + 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, + }, + 'PlatformRepositoryFilter', + 'PlatformRepositoryOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformRepository', + fieldName: 'platformRepositories', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformRepository: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformRepository', + 'platformRepositories', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformRepositoryFilter', + 'PlatformRepositoryOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformRepository', + fieldName: 'platformRepository', + document, + variables, + transform: (data: { + platformRepositories?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformRepository: data.platformRepositories?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformRepository: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformRepository', + 'platformRepositories', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformRepositoryFilter', + 'PlatformRepositoryOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformRepository', + fieldName: 'platformRepository', + document, + variables, + transform: (data: { + platformRepositories?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformRepository: data.platformRepositories?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformRepository: { + platformRepository: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformRepository', + 'createPlatformRepository', + 'platformRepository', + args.select, + args.data, + 'CreatePlatformRepositoryInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformRepository', + fieldName: 'createPlatformRepository', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformRepositoryPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformRepository: { + platformRepository: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformRepository', + 'updatePlatformRepository', + 'platformRepository', + args.select, + args.where.id, + args.data, + 'UpdatePlatformRepositoryInput', + 'id', + 'platformRepositoryPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformRepository', + fieldName: 'updatePlatformRepository', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformRepository: { + platformRepository: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformRepository', + 'deletePlatformRepository', + 'platformRepository', + { + id: args.where.id, + }, + 'DeletePlatformRepositoryInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformRepository', + fieldName: 'deletePlatformRepository', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/compute/orm/models/platformRepositoryEvent.ts b/sdk/constructive-cli/src/compute/orm/models/platformRepositoryEvent.ts new file mode 100644 index 0000000000..df0366dd91 --- /dev/null +++ b/sdk/constructive-cli/src/compute/orm/models/platformRepositoryEvent.ts @@ -0,0 +1,247 @@ +/** + * PlatformRepositoryEvent 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 { + PlatformRepositoryEvent, + PlatformRepositoryEventWithRelations, + PlatformRepositoryEventSelect, + PlatformRepositoryEventFilter, + PlatformRepositoryEventOrderBy, + CreatePlatformRepositoryEventInput, + UpdatePlatformRepositoryEventInput, + PlatformRepositoryEventPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformRepositoryEventModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformRepositoryEvents: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformRepositoryEvent', + 'platformRepositoryEvents', + 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, + }, + 'PlatformRepositoryEventFilter', + 'PlatformRepositoryEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformRepositoryEvent', + fieldName: 'platformRepositoryEvents', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformRepositoryEvent: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformRepositoryEvent', + 'platformRepositoryEvents', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformRepositoryEventFilter', + 'PlatformRepositoryEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformRepositoryEvent', + fieldName: 'platformRepositoryEvent', + document, + variables, + transform: (data: { + platformRepositoryEvents?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformRepositoryEvent: data.platformRepositoryEvents?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformRepositoryEvent: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformRepositoryEvent', + 'platformRepositoryEvents', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformRepositoryEventFilter', + 'PlatformRepositoryEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformRepositoryEvent', + fieldName: 'platformRepositoryEvent', + document, + variables, + transform: (data: { + platformRepositoryEvents?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformRepositoryEvent: data.platformRepositoryEvents?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformRepositoryEvent: { + platformRepositoryEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformRepositoryEvent', + 'createPlatformRepositoryEvent', + 'platformRepositoryEvent', + args.select, + args.data, + 'CreatePlatformRepositoryEventInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformRepositoryEvent', + fieldName: 'createPlatformRepositoryEvent', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformRepositoryEventPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformRepositoryEvent: { + platformRepositoryEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformRepositoryEvent', + 'updatePlatformRepositoryEvent', + 'platformRepositoryEvent', + args.select, + args.where.id, + args.data, + 'UpdatePlatformRepositoryEventInput', + 'id', + 'platformRepositoryEventPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformRepositoryEvent', + fieldName: 'updatePlatformRepositoryEvent', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformRepositoryEvent: { + platformRepositoryEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformRepositoryEvent', + 'deletePlatformRepositoryEvent', + 'platformRepositoryEvent', + { + id: args.where.id, + }, + 'DeletePlatformRepositoryEventInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformRepositoryEvent', + fieldName: 'deletePlatformRepositoryEvent', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/compute/orm/models/platformRepositoryRequiredCheck.ts b/sdk/constructive-cli/src/compute/orm/models/platformRepositoryRequiredCheck.ts new file mode 100644 index 0000000000..86e3c8bd5e --- /dev/null +++ b/sdk/constructive-cli/src/compute/orm/models/platformRepositoryRequiredCheck.ts @@ -0,0 +1,273 @@ +/** + * PlatformRepositoryRequiredCheck 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 { + PlatformRepositoryRequiredCheck, + PlatformRepositoryRequiredCheckWithRelations, + PlatformRepositoryRequiredCheckSelect, + PlatformRepositoryRequiredCheckFilter, + PlatformRepositoryRequiredCheckOrderBy, + CreatePlatformRepositoryRequiredCheckInput, + UpdatePlatformRepositoryRequiredCheckInput, + PlatformRepositoryRequiredCheckPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformRepositoryRequiredCheckModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs< + S, + PlatformRepositoryRequiredCheckFilter, + PlatformRepositoryRequiredCheckOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformRepositoryRequiredChecks: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformRepositoryRequiredCheck', + 'platformRepositoryRequiredChecks', + 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, + }, + 'PlatformRepositoryRequiredCheckFilter', + 'PlatformRepositoryRequiredCheckOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformRepositoryRequiredCheck', + fieldName: 'platformRepositoryRequiredChecks', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs< + S, + PlatformRepositoryRequiredCheckFilter, + PlatformRepositoryRequiredCheckOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformRepositoryRequiredCheck: InferSelectResult< + PlatformRepositoryRequiredCheckWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformRepositoryRequiredCheck', + 'platformRepositoryRequiredChecks', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformRepositoryRequiredCheckFilter', + 'PlatformRepositoryRequiredCheckOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformRepositoryRequiredCheck', + fieldName: 'platformRepositoryRequiredCheck', + document, + variables, + transform: (data: { + platformRepositoryRequiredChecks?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformRepositoryRequiredCheck: data.platformRepositoryRequiredChecks?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformRepositoryRequiredCheck: InferSelectResult< + PlatformRepositoryRequiredCheckWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformRepositoryRequiredCheck', + 'platformRepositoryRequiredChecks', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformRepositoryRequiredCheckFilter', + 'PlatformRepositoryRequiredCheckOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformRepositoryRequiredCheck', + fieldName: 'platformRepositoryRequiredCheck', + document, + variables, + transform: (data: { + platformRepositoryRequiredChecks?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformRepositoryRequiredCheck: data.platformRepositoryRequiredChecks?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs< + S, + CreatePlatformRepositoryRequiredCheckInput['platformRepositoryRequiredCheck'] + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformRepositoryRequiredCheck: { + platformRepositoryRequiredCheck: InferSelectResult< + PlatformRepositoryRequiredCheckWithRelations, + S + >; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformRepositoryRequiredCheck', + 'createPlatformRepositoryRequiredCheck', + 'platformRepositoryRequiredCheck', + args.select, + args.data, + 'CreatePlatformRepositoryRequiredCheckInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformRepositoryRequiredCheck', + fieldName: 'createPlatformRepositoryRequiredCheck', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformRepositoryRequiredCheckPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformRepositoryRequiredCheck: { + platformRepositoryRequiredCheck: InferSelectResult< + PlatformRepositoryRequiredCheckWithRelations, + S + >; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformRepositoryRequiredCheck', + 'updatePlatformRepositoryRequiredCheck', + 'platformRepositoryRequiredCheck', + args.select, + args.where.id, + args.data, + 'UpdatePlatformRepositoryRequiredCheckInput', + 'id', + 'platformRepositoryRequiredCheckPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformRepositoryRequiredCheck', + fieldName: 'updatePlatformRepositoryRequiredCheck', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformRepositoryRequiredCheck: { + platformRepositoryRequiredCheck: InferSelectResult< + PlatformRepositoryRequiredCheckWithRelations, + S + >; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformRepositoryRequiredCheck', + 'deletePlatformRepositoryRequiredCheck', + 'platformRepositoryRequiredCheck', + { + id: args.where.id, + }, + 'DeletePlatformRepositoryRequiredCheckInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformRepositoryRequiredCheck', + fieldName: 'deletePlatformRepositoryRequiredCheck', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/compute/orm/models/platformRepositoryWorkflow.ts b/sdk/constructive-cli/src/compute/orm/models/platformRepositoryWorkflow.ts new file mode 100644 index 0000000000..542bbfd25a --- /dev/null +++ b/sdk/constructive-cli/src/compute/orm/models/platformRepositoryWorkflow.ts @@ -0,0 +1,253 @@ +/** + * PlatformRepositoryWorkflow 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 { + PlatformRepositoryWorkflow, + PlatformRepositoryWorkflowWithRelations, + PlatformRepositoryWorkflowSelect, + PlatformRepositoryWorkflowFilter, + PlatformRepositoryWorkflowOrderBy, + CreatePlatformRepositoryWorkflowInput, + UpdatePlatformRepositoryWorkflowInput, + PlatformRepositoryWorkflowPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformRepositoryWorkflowModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformRepositoryWorkflows: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformRepositoryWorkflow', + 'platformRepositoryWorkflows', + 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, + }, + 'PlatformRepositoryWorkflowFilter', + 'PlatformRepositoryWorkflowOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformRepositoryWorkflow', + fieldName: 'platformRepositoryWorkflows', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformRepositoryWorkflow: InferSelectResult< + PlatformRepositoryWorkflowWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformRepositoryWorkflow', + 'platformRepositoryWorkflows', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformRepositoryWorkflowFilter', + 'PlatformRepositoryWorkflowOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformRepositoryWorkflow', + fieldName: 'platformRepositoryWorkflow', + document, + variables, + transform: (data: { + platformRepositoryWorkflows?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformRepositoryWorkflow: data.platformRepositoryWorkflows?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformRepositoryWorkflow: InferSelectResult< + PlatformRepositoryWorkflowWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformRepositoryWorkflow', + 'platformRepositoryWorkflows', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformRepositoryWorkflowFilter', + 'PlatformRepositoryWorkflowOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformRepositoryWorkflow', + fieldName: 'platformRepositoryWorkflow', + document, + variables, + transform: (data: { + platformRepositoryWorkflows?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformRepositoryWorkflow: data.platformRepositoryWorkflows?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformRepositoryWorkflow: { + platformRepositoryWorkflow: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformRepositoryWorkflow', + 'createPlatformRepositoryWorkflow', + 'platformRepositoryWorkflow', + args.select, + args.data, + 'CreatePlatformRepositoryWorkflowInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformRepositoryWorkflow', + fieldName: 'createPlatformRepositoryWorkflow', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformRepositoryWorkflowPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformRepositoryWorkflow: { + platformRepositoryWorkflow: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformRepositoryWorkflow', + 'updatePlatformRepositoryWorkflow', + 'platformRepositoryWorkflow', + args.select, + args.where.id, + args.data, + 'UpdatePlatformRepositoryWorkflowInput', + 'id', + 'platformRepositoryWorkflowPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformRepositoryWorkflow', + fieldName: 'updatePlatformRepositoryWorkflow', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformRepositoryWorkflow: { + platformRepositoryWorkflow: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformRepositoryWorkflow', + 'deletePlatformRepositoryWorkflow', + 'platformRepositoryWorkflow', + { + id: args.where.id, + }, + 'DeletePlatformRepositoryWorkflowInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformRepositoryWorkflow', + fieldName: 'deletePlatformRepositoryWorkflow', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/compute/orm/models/platformResourceObservedStorage.ts b/sdk/constructive-cli/src/compute/orm/models/platformResourceObservedStorage.ts new file mode 100644 index 0000000000..80a274b483 --- /dev/null +++ b/sdk/constructive-cli/src/compute/orm/models/platformResourceObservedStorage.ts @@ -0,0 +1,153 @@ +/** + * PlatformResourceObservedStorage 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 { + PlatformResourceObservedStorage, + PlatformResourceObservedStorageWithRelations, + PlatformResourceObservedStorageSelect, + PlatformResourceObservedStorageFilter, + PlatformResourceObservedStorageOrderBy, + CreatePlatformResourceObservedStorageInput, + UpdatePlatformResourceObservedStorageInput, + PlatformResourceObservedStoragePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformResourceObservedStorageModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs< + S, + PlatformResourceObservedStorageFilter, + PlatformResourceObservedStorageOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformResourceObservedStorages: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformResourceObservedStorage', + 'platformResourceObservedStorages', + 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, + }, + 'PlatformResourceObservedStorageFilter', + 'PlatformResourceObservedStorageOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformResourceObservedStorage', + fieldName: 'platformResourceObservedStorages', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs< + S, + PlatformResourceObservedStorageFilter, + PlatformResourceObservedStorageOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformResourceObservedStorage: InferSelectResult< + PlatformResourceObservedStorageWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformResourceObservedStorage', + 'platformResourceObservedStorages', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformResourceObservedStorageFilter', + 'PlatformResourceObservedStorageOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformResourceObservedStorage', + fieldName: 'platformResourceObservedStorage', + document, + variables, + transform: (data: { + platformResourceObservedStorages?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformResourceObservedStorage: data.platformResourceObservedStorages?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs< + S, + CreatePlatformResourceObservedStorageInput['platformResourceObservedStorage'] + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformResourceObservedStorage: { + platformResourceObservedStorage: InferSelectResult< + PlatformResourceObservedStorageWithRelations, + S + >; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformResourceObservedStorage', + 'createPlatformResourceObservedStorage', + 'platformResourceObservedStorage', + args.select, + args.data, + 'CreatePlatformResourceObservedStorageInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformResourceObservedStorage', + fieldName: 'createPlatformResourceObservedStorage', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/compute/orm/models/proposal.ts b/sdk/constructive-cli/src/compute/orm/models/proposal.ts new file mode 100644 index 0000000000..e43894adfd --- /dev/null +++ b/sdk/constructive-cli/src/compute/orm/models/proposal.ts @@ -0,0 +1,245 @@ +/** + * Proposal 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 { + Proposal, + ProposalWithRelations, + ProposalSelect, + ProposalFilter, + ProposalOrderBy, + CreateProposalInput, + UpdateProposalInput, + ProposalPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class ProposalModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + proposals: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'Proposal', + 'proposals', + 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, + }, + 'ProposalFilter', + 'ProposalOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Proposal', + fieldName: 'proposals', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + proposal: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'Proposal', + 'proposals', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'ProposalFilter', + 'ProposalOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Proposal', + fieldName: 'proposal', + document, + variables, + transform: (data: { + proposals?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + proposal: data.proposals?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + proposal: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'Proposal', + 'proposals', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'ProposalFilter', + 'ProposalOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Proposal', + fieldName: 'proposal', + document, + variables, + transform: (data: { + proposals?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + proposal: data.proposals?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createProposal: { + proposal: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'Proposal', + 'createProposal', + 'proposal', + args.select, + args.data, + 'CreateProposalInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Proposal', + fieldName: 'createProposal', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + ProposalPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateProposal: { + proposal: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'Proposal', + 'updateProposal', + 'proposal', + args.select, + args.where.id, + args.data, + 'UpdateProposalInput', + 'id', + 'proposalPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Proposal', + fieldName: 'updateProposal', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteProposal: { + proposal: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'Proposal', + 'deleteProposal', + 'proposal', + { + id: args.where.id, + }, + 'DeleteProposalInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Proposal', + fieldName: 'deleteProposal', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/compute/orm/models/proposalComment.ts b/sdk/constructive-cli/src/compute/orm/models/proposalComment.ts new file mode 100644 index 0000000000..e2fd0e15be --- /dev/null +++ b/sdk/constructive-cli/src/compute/orm/models/proposalComment.ts @@ -0,0 +1,245 @@ +/** + * ProposalComment 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 { + ProposalComment, + ProposalCommentWithRelations, + ProposalCommentSelect, + ProposalCommentFilter, + ProposalCommentOrderBy, + CreateProposalCommentInput, + UpdateProposalCommentInput, + ProposalCommentPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class ProposalCommentModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + proposalComments: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'ProposalComment', + 'proposalComments', + 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, + }, + 'ProposalCommentFilter', + 'ProposalCommentOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ProposalComment', + fieldName: 'proposalComments', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + proposalComment: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'ProposalComment', + 'proposalComments', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'ProposalCommentFilter', + 'ProposalCommentOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ProposalComment', + fieldName: 'proposalComment', + document, + variables, + transform: (data: { + proposalComments?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + proposalComment: data.proposalComments?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + proposalComment: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'ProposalComment', + 'proposalComments', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'ProposalCommentFilter', + 'ProposalCommentOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ProposalComment', + fieldName: 'proposalComment', + document, + variables, + transform: (data: { + proposalComments?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + proposalComment: data.proposalComments?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createProposalComment: { + proposalComment: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'ProposalComment', + 'createProposalComment', + 'proposalComment', + args.select, + args.data, + 'CreateProposalCommentInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ProposalComment', + fieldName: 'createProposalComment', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + ProposalCommentPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateProposalComment: { + proposalComment: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'ProposalComment', + 'updateProposalComment', + 'proposalComment', + args.select, + args.where.id, + args.data, + 'UpdateProposalCommentInput', + 'id', + 'proposalCommentPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ProposalComment', + fieldName: 'updateProposalComment', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteProposalComment: { + proposalComment: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'ProposalComment', + 'deleteProposalComment', + 'proposalComment', + { + id: args.where.id, + }, + 'DeleteProposalCommentInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ProposalComment', + fieldName: 'deleteProposalComment', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/compute/orm/models/proposalFileView.ts b/sdk/constructive-cli/src/compute/orm/models/proposalFileView.ts new file mode 100644 index 0000000000..a4e61610d2 --- /dev/null +++ b/sdk/constructive-cli/src/compute/orm/models/proposalFileView.ts @@ -0,0 +1,245 @@ +/** + * ProposalFileView 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 { + ProposalFileView, + ProposalFileViewWithRelations, + ProposalFileViewSelect, + ProposalFileViewFilter, + ProposalFileViewOrderBy, + CreateProposalFileViewInput, + UpdateProposalFileViewInput, + ProposalFileViewPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class ProposalFileViewModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + proposalFileViews: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'ProposalFileView', + 'proposalFileViews', + 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, + }, + 'ProposalFileViewFilter', + 'ProposalFileViewOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ProposalFileView', + fieldName: 'proposalFileViews', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + proposalFileView: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'ProposalFileView', + 'proposalFileViews', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'ProposalFileViewFilter', + 'ProposalFileViewOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ProposalFileView', + fieldName: 'proposalFileView', + document, + variables, + transform: (data: { + proposalFileViews?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + proposalFileView: data.proposalFileViews?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + proposalFileView: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'ProposalFileView', + 'proposalFileViews', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'ProposalFileViewFilter', + 'ProposalFileViewOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ProposalFileView', + fieldName: 'proposalFileView', + document, + variables, + transform: (data: { + proposalFileViews?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + proposalFileView: data.proposalFileViews?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createProposalFileView: { + proposalFileView: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'ProposalFileView', + 'createProposalFileView', + 'proposalFileView', + args.select, + args.data, + 'CreateProposalFileViewInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ProposalFileView', + fieldName: 'createProposalFileView', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + ProposalFileViewPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateProposalFileView: { + proposalFileView: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'ProposalFileView', + 'updateProposalFileView', + 'proposalFileView', + args.select, + args.where.id, + args.data, + 'UpdateProposalFileViewInput', + 'id', + 'proposalFileViewPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ProposalFileView', + fieldName: 'updateProposalFileView', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteProposalFileView: { + proposalFileView: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'ProposalFileView', + 'deleteProposalFileView', + 'proposalFileView', + { + id: args.where.id, + }, + 'DeleteProposalFileViewInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ProposalFileView', + fieldName: 'deleteProposalFileView', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/compute/orm/models/proposalReaction.ts b/sdk/constructive-cli/src/compute/orm/models/proposalReaction.ts new file mode 100644 index 0000000000..d8c1d12f70 --- /dev/null +++ b/sdk/constructive-cli/src/compute/orm/models/proposalReaction.ts @@ -0,0 +1,245 @@ +/** + * ProposalReaction 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 { + ProposalReaction, + ProposalReactionWithRelations, + ProposalReactionSelect, + ProposalReactionFilter, + ProposalReactionOrderBy, + CreateProposalReactionInput, + UpdateProposalReactionInput, + ProposalReactionPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class ProposalReactionModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + proposalReactions: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'ProposalReaction', + 'proposalReactions', + 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, + }, + 'ProposalReactionFilter', + 'ProposalReactionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ProposalReaction', + fieldName: 'proposalReactions', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + proposalReaction: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'ProposalReaction', + 'proposalReactions', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'ProposalReactionFilter', + 'ProposalReactionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ProposalReaction', + fieldName: 'proposalReaction', + document, + variables, + transform: (data: { + proposalReactions?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + proposalReaction: data.proposalReactions?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + proposalReaction: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'ProposalReaction', + 'proposalReactions', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'ProposalReactionFilter', + 'ProposalReactionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ProposalReaction', + fieldName: 'proposalReaction', + document, + variables, + transform: (data: { + proposalReactions?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + proposalReaction: data.proposalReactions?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createProposalReaction: { + proposalReaction: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'ProposalReaction', + 'createProposalReaction', + 'proposalReaction', + args.select, + args.data, + 'CreateProposalReactionInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ProposalReaction', + fieldName: 'createProposalReaction', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + ProposalReactionPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateProposalReaction: { + proposalReaction: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'ProposalReaction', + 'updateProposalReaction', + 'proposalReaction', + args.select, + args.where.id, + args.data, + 'UpdateProposalReactionInput', + 'id', + 'proposalReactionPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ProposalReaction', + fieldName: 'updateProposalReaction', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteProposalReaction: { + proposalReaction: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'ProposalReaction', + 'deleteProposalReaction', + 'proposalReaction', + { + id: args.where.id, + }, + 'DeleteProposalReactionInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ProposalReaction', + fieldName: 'deleteProposalReaction', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/compute/orm/models/proposalReview.ts b/sdk/constructive-cli/src/compute/orm/models/proposalReview.ts new file mode 100644 index 0000000000..d0f097ccf3 --- /dev/null +++ b/sdk/constructive-cli/src/compute/orm/models/proposalReview.ts @@ -0,0 +1,245 @@ +/** + * ProposalReview 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 { + ProposalReview, + ProposalReviewWithRelations, + ProposalReviewSelect, + ProposalReviewFilter, + ProposalReviewOrderBy, + CreateProposalReviewInput, + UpdateProposalReviewInput, + ProposalReviewPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class ProposalReviewModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + proposalReviews: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'ProposalReview', + 'proposalReviews', + 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, + }, + 'ProposalReviewFilter', + 'ProposalReviewOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ProposalReview', + fieldName: 'proposalReviews', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + proposalReview: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'ProposalReview', + 'proposalReviews', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'ProposalReviewFilter', + 'ProposalReviewOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ProposalReview', + fieldName: 'proposalReview', + document, + variables, + transform: (data: { + proposalReviews?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + proposalReview: data.proposalReviews?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + proposalReview: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'ProposalReview', + 'proposalReviews', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'ProposalReviewFilter', + 'ProposalReviewOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ProposalReview', + fieldName: 'proposalReview', + document, + variables, + transform: (data: { + proposalReviews?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + proposalReview: data.proposalReviews?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createProposalReview: { + proposalReview: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'ProposalReview', + 'createProposalReview', + 'proposalReview', + args.select, + args.data, + 'CreateProposalReviewInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ProposalReview', + fieldName: 'createProposalReview', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + ProposalReviewPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateProposalReview: { + proposalReview: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'ProposalReview', + 'updateProposalReview', + 'proposalReview', + args.select, + args.where.id, + args.data, + 'UpdateProposalReviewInput', + 'id', + 'proposalReviewPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ProposalReview', + fieldName: 'updateProposalReview', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteProposalReview: { + proposalReview: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'ProposalReview', + 'deleteProposalReview', + 'proposalReview', + { + id: args.where.id, + }, + 'DeleteProposalReviewInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ProposalReview', + fieldName: 'deleteProposalReview', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/compute/orm/models/proposalsChunk.ts b/sdk/constructive-cli/src/compute/orm/models/proposalsChunk.ts new file mode 100644 index 0000000000..8b4127416d --- /dev/null +++ b/sdk/constructive-cli/src/compute/orm/models/proposalsChunk.ts @@ -0,0 +1,245 @@ +/** + * ProposalsChunk 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 { + ProposalsChunk, + ProposalsChunkWithRelations, + ProposalsChunkSelect, + ProposalsChunkFilter, + ProposalsChunkOrderBy, + CreateProposalsChunkInput, + UpdateProposalsChunkInput, + ProposalsChunkPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class ProposalsChunkModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + proposalsChunks: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'ProposalsChunk', + 'proposalsChunks', + 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, + }, + 'ProposalsChunkFilter', + 'ProposalsChunkOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ProposalsChunk', + fieldName: 'proposalsChunks', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + proposalsChunk: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'ProposalsChunk', + 'proposalsChunks', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'ProposalsChunkFilter', + 'ProposalsChunkOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ProposalsChunk', + fieldName: 'proposalsChunk', + document, + variables, + transform: (data: { + proposalsChunks?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + proposalsChunk: data.proposalsChunks?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + proposalsChunk: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'ProposalsChunk', + 'proposalsChunks', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'ProposalsChunkFilter', + 'ProposalsChunkOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ProposalsChunk', + fieldName: 'proposalsChunk', + document, + variables, + transform: (data: { + proposalsChunks?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + proposalsChunk: data.proposalsChunks?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createProposalsChunk: { + proposalsChunk: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'ProposalsChunk', + 'createProposalsChunk', + 'proposalsChunk', + args.select, + args.data, + 'CreateProposalsChunkInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ProposalsChunk', + fieldName: 'createProposalsChunk', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + ProposalsChunkPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateProposalsChunk: { + proposalsChunk: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'ProposalsChunk', + 'updateProposalsChunk', + 'proposalsChunk', + args.select, + args.where.id, + args.data, + 'UpdateProposalsChunkInput', + 'id', + 'proposalsChunkPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ProposalsChunk', + fieldName: 'updateProposalsChunk', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteProposalsChunk: { + proposalsChunk: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'ProposalsChunk', + 'deleteProposalsChunk', + 'proposalsChunk', + { + id: args.where.id, + }, + 'DeleteProposalsChunkInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ProposalsChunk', + fieldName: 'deleteProposalsChunk', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/compute/orm/models/registry.ts b/sdk/constructive-cli/src/compute/orm/models/registry.ts new file mode 100644 index 0000000000..98cb611f33 --- /dev/null +++ b/sdk/constructive-cli/src/compute/orm/models/registry.ts @@ -0,0 +1,245 @@ +/** + * Registry 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 { + Registry, + RegistryWithRelations, + RegistrySelect, + RegistryFilter, + RegistryOrderBy, + CreateRegistryInput, + UpdateRegistryInput, + RegistryPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class RegistryModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + registries: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'Registry', + 'registries', + 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, + }, + 'RegistryFilter', + 'RegistryOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Registry', + fieldName: 'registries', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + registry: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'Registry', + 'registries', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'RegistryFilter', + 'RegistryOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Registry', + fieldName: 'registry', + document, + variables, + transform: (data: { + registries?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + registry: data.registries?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + registry: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'Registry', + 'registries', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'RegistryFilter', + 'RegistryOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Registry', + fieldName: 'registry', + document, + variables, + transform: (data: { + registries?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + registry: data.registries?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createRegistry: { + registry: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'Registry', + 'createRegistry', + 'registry', + args.select, + args.data, + 'CreateRegistryInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Registry', + fieldName: 'createRegistry', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + RegistryPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateRegistry: { + registry: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'Registry', + 'updateRegistry', + 'registry', + args.select, + args.where.id, + args.data, + 'UpdateRegistryInput', + 'id', + 'registryPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Registry', + fieldName: 'updateRegistry', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteRegistry: { + registry: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'Registry', + 'deleteRegistry', + 'registry', + { + id: args.where.id, + }, + 'DeleteRegistryInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Registry', + fieldName: 'deleteRegistry', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/compute/orm/models/registryBinding.ts b/sdk/constructive-cli/src/compute/orm/models/registryBinding.ts new file mode 100644 index 0000000000..28782fa363 --- /dev/null +++ b/sdk/constructive-cli/src/compute/orm/models/registryBinding.ts @@ -0,0 +1,245 @@ +/** + * RegistryBinding 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 { + RegistryBinding, + RegistryBindingWithRelations, + RegistryBindingSelect, + RegistryBindingFilter, + RegistryBindingOrderBy, + CreateRegistryBindingInput, + UpdateRegistryBindingInput, + RegistryBindingPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class RegistryBindingModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + registryBindings: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'RegistryBinding', + 'registryBindings', + 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, + }, + 'RegistryBindingFilter', + 'RegistryBindingOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'RegistryBinding', + fieldName: 'registryBindings', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + registryBinding: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'RegistryBinding', + 'registryBindings', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'RegistryBindingFilter', + 'RegistryBindingOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'RegistryBinding', + fieldName: 'registryBinding', + document, + variables, + transform: (data: { + registryBindings?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + registryBinding: data.registryBindings?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + registryBinding: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'RegistryBinding', + 'registryBindings', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'RegistryBindingFilter', + 'RegistryBindingOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'RegistryBinding', + fieldName: 'registryBinding', + document, + variables, + transform: (data: { + registryBindings?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + registryBinding: data.registryBindings?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createRegistryBinding: { + registryBinding: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'RegistryBinding', + 'createRegistryBinding', + 'registryBinding', + args.select, + args.data, + 'CreateRegistryBindingInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'RegistryBinding', + fieldName: 'createRegistryBinding', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + RegistryBindingPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateRegistryBinding: { + registryBinding: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'RegistryBinding', + 'updateRegistryBinding', + 'registryBinding', + args.select, + args.where.id, + args.data, + 'UpdateRegistryBindingInput', + 'id', + 'registryBindingPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'RegistryBinding', + fieldName: 'updateRegistryBinding', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteRegistryBinding: { + registryBinding: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'RegistryBinding', + 'deleteRegistryBinding', + 'registryBinding', + { + id: args.where.id, + }, + 'DeleteRegistryBindingInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'RegistryBinding', + fieldName: 'deleteRegistryBinding', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/compute/orm/models/registryGrant.ts b/sdk/constructive-cli/src/compute/orm/models/registryGrant.ts new file mode 100644 index 0000000000..96812eb211 --- /dev/null +++ b/sdk/constructive-cli/src/compute/orm/models/registryGrant.ts @@ -0,0 +1,245 @@ +/** + * RegistryGrant 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 { + RegistryGrant, + RegistryGrantWithRelations, + RegistryGrantSelect, + RegistryGrantFilter, + RegistryGrantOrderBy, + CreateRegistryGrantInput, + UpdateRegistryGrantInput, + RegistryGrantPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class RegistryGrantModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + registryGrants: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'RegistryGrant', + 'registryGrants', + 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, + }, + 'RegistryGrantFilter', + 'RegistryGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'RegistryGrant', + fieldName: 'registryGrants', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + registryGrant: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'RegistryGrant', + 'registryGrants', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'RegistryGrantFilter', + 'RegistryGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'RegistryGrant', + fieldName: 'registryGrant', + document, + variables, + transform: (data: { + registryGrants?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + registryGrant: data.registryGrants?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + registryGrant: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'RegistryGrant', + 'registryGrants', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'RegistryGrantFilter', + 'RegistryGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'RegistryGrant', + fieldName: 'registryGrant', + document, + variables, + transform: (data: { + registryGrants?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + registryGrant: data.registryGrants?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createRegistryGrant: { + registryGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'RegistryGrant', + 'createRegistryGrant', + 'registryGrant', + args.select, + args.data, + 'CreateRegistryGrantInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'RegistryGrant', + fieldName: 'createRegistryGrant', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + RegistryGrantPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateRegistryGrant: { + registryGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'RegistryGrant', + 'updateRegistryGrant', + 'registryGrant', + args.select, + args.where.id, + args.data, + 'UpdateRegistryGrantInput', + 'id', + 'registryGrantPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'RegistryGrant', + fieldName: 'updateRegistryGrant', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteRegistryGrant: { + registryGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'RegistryGrant', + 'deleteRegistryGrant', + 'registryGrant', + { + id: args.where.id, + }, + 'DeleteRegistryGrantInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'RegistryGrant', + fieldName: 'deleteRegistryGrant', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/compute/orm/models/repository.ts b/sdk/constructive-cli/src/compute/orm/models/repository.ts new file mode 100644 index 0000000000..8a55853452 --- /dev/null +++ b/sdk/constructive-cli/src/compute/orm/models/repository.ts @@ -0,0 +1,245 @@ +/** + * Repository 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 { + Repository, + RepositoryWithRelations, + RepositorySelect, + RepositoryFilter, + RepositoryOrderBy, + CreateRepositoryInput, + UpdateRepositoryInput, + RepositoryPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class RepositoryModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + repositories: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'Repository', + 'repositories', + 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, + }, + 'RepositoryFilter', + 'RepositoryOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Repository', + fieldName: 'repositories', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + repository: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'Repository', + 'repositories', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'RepositoryFilter', + 'RepositoryOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Repository', + fieldName: 'repository', + document, + variables, + transform: (data: { + repositories?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + repository: data.repositories?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + repository: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'Repository', + 'repositories', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'RepositoryFilter', + 'RepositoryOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Repository', + fieldName: 'repository', + document, + variables, + transform: (data: { + repositories?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + repository: data.repositories?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createRepository: { + repository: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'Repository', + 'createRepository', + 'repository', + args.select, + args.data, + 'CreateRepositoryInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Repository', + fieldName: 'createRepository', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + RepositoryPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateRepository: { + repository: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'Repository', + 'updateRepository', + 'repository', + args.select, + args.where.id, + args.data, + 'UpdateRepositoryInput', + 'id', + 'repositoryPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Repository', + fieldName: 'updateRepository', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteRepository: { + repository: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'Repository', + 'deleteRepository', + 'repository', + { + id: args.where.id, + }, + 'DeleteRepositoryInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Repository', + fieldName: 'deleteRepository', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/compute/orm/models/repositoryEvent.ts b/sdk/constructive-cli/src/compute/orm/models/repositoryEvent.ts new file mode 100644 index 0000000000..9e56af768a --- /dev/null +++ b/sdk/constructive-cli/src/compute/orm/models/repositoryEvent.ts @@ -0,0 +1,245 @@ +/** + * RepositoryEvent 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 { + RepositoryEvent, + RepositoryEventWithRelations, + RepositoryEventSelect, + RepositoryEventFilter, + RepositoryEventOrderBy, + CreateRepositoryEventInput, + UpdateRepositoryEventInput, + RepositoryEventPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class RepositoryEventModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + repositoryEvents: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'RepositoryEvent', + 'repositoryEvents', + 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, + }, + 'RepositoryEventFilter', + 'RepositoryEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'RepositoryEvent', + fieldName: 'repositoryEvents', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + repositoryEvent: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'RepositoryEvent', + 'repositoryEvents', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'RepositoryEventFilter', + 'RepositoryEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'RepositoryEvent', + fieldName: 'repositoryEvent', + document, + variables, + transform: (data: { + repositoryEvents?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + repositoryEvent: data.repositoryEvents?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + repositoryEvent: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'RepositoryEvent', + 'repositoryEvents', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'RepositoryEventFilter', + 'RepositoryEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'RepositoryEvent', + fieldName: 'repositoryEvent', + document, + variables, + transform: (data: { + repositoryEvents?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + repositoryEvent: data.repositoryEvents?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createRepositoryEvent: { + repositoryEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'RepositoryEvent', + 'createRepositoryEvent', + 'repositoryEvent', + args.select, + args.data, + 'CreateRepositoryEventInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'RepositoryEvent', + fieldName: 'createRepositoryEvent', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + RepositoryEventPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateRepositoryEvent: { + repositoryEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'RepositoryEvent', + 'updateRepositoryEvent', + 'repositoryEvent', + args.select, + args.where.id, + args.data, + 'UpdateRepositoryEventInput', + 'id', + 'repositoryEventPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'RepositoryEvent', + fieldName: 'updateRepositoryEvent', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteRepositoryEvent: { + repositoryEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'RepositoryEvent', + 'deleteRepositoryEvent', + 'repositoryEvent', + { + id: args.where.id, + }, + 'DeleteRepositoryEventInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'RepositoryEvent', + fieldName: 'deleteRepositoryEvent', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/compute/orm/models/repositoryRequiredCheck.ts b/sdk/constructive-cli/src/compute/orm/models/repositoryRequiredCheck.ts new file mode 100644 index 0000000000..9f3c6c5396 --- /dev/null +++ b/sdk/constructive-cli/src/compute/orm/models/repositoryRequiredCheck.ts @@ -0,0 +1,247 @@ +/** + * RepositoryRequiredCheck 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 { + RepositoryRequiredCheck, + RepositoryRequiredCheckWithRelations, + RepositoryRequiredCheckSelect, + RepositoryRequiredCheckFilter, + RepositoryRequiredCheckOrderBy, + CreateRepositoryRequiredCheckInput, + UpdateRepositoryRequiredCheckInput, + RepositoryRequiredCheckPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class RepositoryRequiredCheckModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + repositoryRequiredChecks: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'RepositoryRequiredCheck', + 'repositoryRequiredChecks', + 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, + }, + 'RepositoryRequiredCheckFilter', + 'RepositoryRequiredCheckOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'RepositoryRequiredCheck', + fieldName: 'repositoryRequiredChecks', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + repositoryRequiredCheck: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'RepositoryRequiredCheck', + 'repositoryRequiredChecks', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'RepositoryRequiredCheckFilter', + 'RepositoryRequiredCheckOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'RepositoryRequiredCheck', + fieldName: 'repositoryRequiredCheck', + document, + variables, + transform: (data: { + repositoryRequiredChecks?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + repositoryRequiredCheck: data.repositoryRequiredChecks?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + repositoryRequiredCheck: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'RepositoryRequiredCheck', + 'repositoryRequiredChecks', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'RepositoryRequiredCheckFilter', + 'RepositoryRequiredCheckOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'RepositoryRequiredCheck', + fieldName: 'repositoryRequiredCheck', + document, + variables, + transform: (data: { + repositoryRequiredChecks?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + repositoryRequiredCheck: data.repositoryRequiredChecks?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createRepositoryRequiredCheck: { + repositoryRequiredCheck: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'RepositoryRequiredCheck', + 'createRepositoryRequiredCheck', + 'repositoryRequiredCheck', + args.select, + args.data, + 'CreateRepositoryRequiredCheckInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'RepositoryRequiredCheck', + fieldName: 'createRepositoryRequiredCheck', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + RepositoryRequiredCheckPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateRepositoryRequiredCheck: { + repositoryRequiredCheck: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'RepositoryRequiredCheck', + 'updateRepositoryRequiredCheck', + 'repositoryRequiredCheck', + args.select, + args.where.id, + args.data, + 'UpdateRepositoryRequiredCheckInput', + 'id', + 'repositoryRequiredCheckPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'RepositoryRequiredCheck', + fieldName: 'updateRepositoryRequiredCheck', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteRepositoryRequiredCheck: { + repositoryRequiredCheck: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'RepositoryRequiredCheck', + 'deleteRepositoryRequiredCheck', + 'repositoryRequiredCheck', + { + id: args.where.id, + }, + 'DeleteRepositoryRequiredCheckInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'RepositoryRequiredCheck', + fieldName: 'deleteRepositoryRequiredCheck', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/compute/orm/models/repositoryWorkflow.ts b/sdk/constructive-cli/src/compute/orm/models/repositoryWorkflow.ts new file mode 100644 index 0000000000..b5f325ed55 --- /dev/null +++ b/sdk/constructive-cli/src/compute/orm/models/repositoryWorkflow.ts @@ -0,0 +1,245 @@ +/** + * RepositoryWorkflow 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 { + RepositoryWorkflow, + RepositoryWorkflowWithRelations, + RepositoryWorkflowSelect, + RepositoryWorkflowFilter, + RepositoryWorkflowOrderBy, + CreateRepositoryWorkflowInput, + UpdateRepositoryWorkflowInput, + RepositoryWorkflowPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class RepositoryWorkflowModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + repositoryWorkflows: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'RepositoryWorkflow', + 'repositoryWorkflows', + 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, + }, + 'RepositoryWorkflowFilter', + 'RepositoryWorkflowOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'RepositoryWorkflow', + fieldName: 'repositoryWorkflows', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + repositoryWorkflow: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'RepositoryWorkflow', + 'repositoryWorkflows', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'RepositoryWorkflowFilter', + 'RepositoryWorkflowOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'RepositoryWorkflow', + fieldName: 'repositoryWorkflow', + document, + variables, + transform: (data: { + repositoryWorkflows?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + repositoryWorkflow: data.repositoryWorkflows?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + repositoryWorkflow: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'RepositoryWorkflow', + 'repositoryWorkflows', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'RepositoryWorkflowFilter', + 'RepositoryWorkflowOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'RepositoryWorkflow', + fieldName: 'repositoryWorkflow', + document, + variables, + transform: (data: { + repositoryWorkflows?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + repositoryWorkflow: data.repositoryWorkflows?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createRepositoryWorkflow: { + repositoryWorkflow: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'RepositoryWorkflow', + 'createRepositoryWorkflow', + 'repositoryWorkflow', + args.select, + args.data, + 'CreateRepositoryWorkflowInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'RepositoryWorkflow', + fieldName: 'createRepositoryWorkflow', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + RepositoryWorkflowPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateRepositoryWorkflow: { + repositoryWorkflow: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'RepositoryWorkflow', + 'updateRepositoryWorkflow', + 'repositoryWorkflow', + args.select, + args.where.id, + args.data, + 'UpdateRepositoryWorkflowInput', + 'id', + 'repositoryWorkflowPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'RepositoryWorkflow', + fieldName: 'updateRepositoryWorkflow', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteRepositoryWorkflow: { + repositoryWorkflow: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'RepositoryWorkflow', + 'deleteRepositoryWorkflow', + 'repositoryWorkflow', + { + id: args.where.id, + }, + 'DeleteRepositoryWorkflowInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'RepositoryWorkflow', + fieldName: 'deleteRepositoryWorkflow', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/compute/orm/models/resourceObservedStorage.ts b/sdk/constructive-cli/src/compute/orm/models/resourceObservedStorage.ts new file mode 100644 index 0000000000..75769aef61 --- /dev/null +++ b/sdk/constructive-cli/src/compute/orm/models/resourceObservedStorage.ts @@ -0,0 +1,136 @@ +/** + * ResourceObservedStorage 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 { + ResourceObservedStorage, + ResourceObservedStorageWithRelations, + ResourceObservedStorageSelect, + ResourceObservedStorageFilter, + ResourceObservedStorageOrderBy, + CreateResourceObservedStorageInput, + UpdateResourceObservedStorageInput, + ResourceObservedStoragePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class ResourceObservedStorageModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + resourceObservedStorages: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'ResourceObservedStorage', + 'resourceObservedStorages', + 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, + }, + 'ResourceObservedStorageFilter', + 'ResourceObservedStorageOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ResourceObservedStorage', + fieldName: 'resourceObservedStorages', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + resourceObservedStorage: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'ResourceObservedStorage', + 'resourceObservedStorages', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'ResourceObservedStorageFilter', + 'ResourceObservedStorageOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ResourceObservedStorage', + fieldName: 'resourceObservedStorage', + document, + variables, + transform: (data: { + resourceObservedStorages?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + resourceObservedStorage: data.resourceObservedStorages?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createResourceObservedStorage: { + resourceObservedStorage: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'ResourceObservedStorage', + 'createResourceObservedStorage', + 'resourceObservedStorage', + args.select, + args.data, + 'CreateResourceObservedStorageInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ResourceObservedStorage', + fieldName: 'createResourceObservedStorage', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/compute/orm/mutation/index.ts b/sdk/constructive-cli/src/compute/orm/mutation/index.ts index c5bc975047..350d486e20 100644 --- a/sdk/constructive-cli/src/compute/orm/mutation/index.ts +++ b/sdk/constructive-cli/src/compute/orm/mutation/index.ts @@ -11,17 +11,45 @@ import type { AddEdgeAndSaveInput, AddNodeInput, AddNodeAndSaveInput, + ApproveNodeInput, CopyGraphInput, + DatabaseAddEdgeInput, + DatabaseAddEdgeAndSaveInput, + DatabaseAddNodeInput, + DatabaseAddNodeAndSaveInput, + DatabaseApproveNodeInput, + DatabaseCopyGraphInput, + DatabaseCreateFunctionGraphInput, + DatabaseGraphInitEmptyRepoInput, + DatabaseGraphInsertNodeAtPathInput, + DatabaseGraphInsertNodesAtPathsInput, + DatabaseGraphSetAndCommitInput, + DatabaseGraphSetDataAtPathInput, + DatabaseGraphSetManyAndCommitInput, + DatabaseImportDefinitionsInput, + DatabaseImportGraphJsonInput, + DatabaseSaveGraphInput, + DatabaseStartExecutionInput, + DatabaseValidateFunctionGraphInput, + FunctionInvocationsCreateSyncInput, ImportDefinitionsInput, ImportGraphJsonInput, InfraInitEmptyRepoInput, InfraInsertNodeAtPathInput, + InfraInsertNodesAtPathsInput, + InfraSetAndCommitInput, InfraSetDataAtPathInput, + InfraSetManyAndCommitInput, InitEmptyRepoInput, InsertNodeAtPathInput, + InsertNodesAtPathsInput, + PlatformFunctionInvocationsCreateSyncInput, PlatformInfraInitEmptyRepoInput, PlatformInfraInsertNodeAtPathInput, + PlatformInfraInsertNodesAtPathsInput, + PlatformInfraSetAndCommitInput, PlatformInfraSetDataAtPathInput, + PlatformInfraSetManyAndCommitInput, PlatformResourceInstallationsInstallInput, PlatformResourceInstallationsRollbackInput, PlatformResourceInstallationsUninstallInput, @@ -32,24 +60,54 @@ import type { ResourceInstallationsUninstallInput, ResourceInstallationsUpgradeInput, SaveGraphInput, + SetAndCommitInput, SetDataAtPathInput, + SetManyAndCommitInput, StartExecutionInput, ValidateFunctionGraphInput, AddEdgePayload, AddEdgeAndSavePayload, AddNodePayload, AddNodeAndSavePayload, + ApproveNodePayload, CopyGraphPayload, + DatabaseAddEdgePayload, + DatabaseAddEdgeAndSavePayload, + DatabaseAddNodePayload, + DatabaseAddNodeAndSavePayload, + DatabaseApproveNodePayload, + DatabaseCopyGraphPayload, + DatabaseCreateFunctionGraphPayload, + DatabaseGraphInitEmptyRepoPayload, + DatabaseGraphInsertNodeAtPathPayload, + DatabaseGraphInsertNodesAtPathsPayload, + DatabaseGraphSetAndCommitPayload, + DatabaseGraphSetDataAtPathPayload, + DatabaseGraphSetManyAndCommitPayload, + DatabaseImportDefinitionsPayload, + DatabaseImportGraphJsonPayload, + DatabaseSaveGraphPayload, + DatabaseStartExecutionPayload, + DatabaseValidateFunctionGraphPayload, + FunctionInvocationsCreateSyncPayload, ImportDefinitionsPayload, ImportGraphJsonPayload, InfraInitEmptyRepoPayload, InfraInsertNodeAtPathPayload, + InfraInsertNodesAtPathsPayload, + InfraSetAndCommitPayload, InfraSetDataAtPathPayload, + InfraSetManyAndCommitPayload, InitEmptyRepoPayload, InsertNodeAtPathPayload, + InsertNodesAtPathsPayload, + PlatformFunctionInvocationsCreateSyncPayload, PlatformInfraInitEmptyRepoPayload, PlatformInfraInsertNodeAtPathPayload, + PlatformInfraInsertNodesAtPathsPayload, + PlatformInfraSetAndCommitPayload, PlatformInfraSetDataAtPathPayload, + PlatformInfraSetManyAndCommitPayload, PlatformResourceInstallationsInstallPayload, PlatformResourceInstallationsRollbackPayload, PlatformResourceInstallationsUninstallPayload, @@ -60,24 +118,54 @@ import type { ResourceInstallationsUninstallPayload, ResourceInstallationsUpgradePayload, SaveGraphPayload, + SetAndCommitPayload, SetDataAtPathPayload, + SetManyAndCommitPayload, StartExecutionPayload, ValidateFunctionGraphPayload, AddEdgePayloadSelect, AddEdgeAndSavePayloadSelect, AddNodePayloadSelect, AddNodeAndSavePayloadSelect, + ApproveNodePayloadSelect, CopyGraphPayloadSelect, + DatabaseAddEdgePayloadSelect, + DatabaseAddEdgeAndSavePayloadSelect, + DatabaseAddNodePayloadSelect, + DatabaseAddNodeAndSavePayloadSelect, + DatabaseApproveNodePayloadSelect, + DatabaseCopyGraphPayloadSelect, + DatabaseCreateFunctionGraphPayloadSelect, + DatabaseGraphInitEmptyRepoPayloadSelect, + DatabaseGraphInsertNodeAtPathPayloadSelect, + DatabaseGraphInsertNodesAtPathsPayloadSelect, + DatabaseGraphSetAndCommitPayloadSelect, + DatabaseGraphSetDataAtPathPayloadSelect, + DatabaseGraphSetManyAndCommitPayloadSelect, + DatabaseImportDefinitionsPayloadSelect, + DatabaseImportGraphJsonPayloadSelect, + DatabaseSaveGraphPayloadSelect, + DatabaseStartExecutionPayloadSelect, + DatabaseValidateFunctionGraphPayloadSelect, + FunctionInvocationsCreateSyncPayloadSelect, ImportDefinitionsPayloadSelect, ImportGraphJsonPayloadSelect, InfraInitEmptyRepoPayloadSelect, InfraInsertNodeAtPathPayloadSelect, + InfraInsertNodesAtPathsPayloadSelect, + InfraSetAndCommitPayloadSelect, InfraSetDataAtPathPayloadSelect, + InfraSetManyAndCommitPayloadSelect, InitEmptyRepoPayloadSelect, InsertNodeAtPathPayloadSelect, + InsertNodesAtPathsPayloadSelect, + PlatformFunctionInvocationsCreateSyncPayloadSelect, PlatformInfraInitEmptyRepoPayloadSelect, PlatformInfraInsertNodeAtPathPayloadSelect, + PlatformInfraInsertNodesAtPathsPayloadSelect, + PlatformInfraSetAndCommitPayloadSelect, PlatformInfraSetDataAtPathPayloadSelect, + PlatformInfraSetManyAndCommitPayloadSelect, PlatformResourceInstallationsInstallPayloadSelect, PlatformResourceInstallationsRollbackPayloadSelect, PlatformResourceInstallationsUninstallPayloadSelect, @@ -88,7 +176,9 @@ import type { ResourceInstallationsUninstallPayloadSelect, ResourceInstallationsUpgradePayloadSelect, SaveGraphPayloadSelect, + SetAndCommitPayloadSelect, SetDataAtPathPayloadSelect, + SetManyAndCommitPayloadSelect, StartExecutionPayloadSelect, ValidateFunctionGraphPayloadSelect, } from '../input-types'; @@ -105,9 +195,69 @@ export interface AddNodeVariables { export interface AddNodeAndSaveVariables { input: AddNodeAndSaveInput; } +export interface ApproveNodeVariables { + input: ApproveNodeInput; +} export interface CopyGraphVariables { input: CopyGraphInput; } +export interface DatabaseAddEdgeVariables { + input: DatabaseAddEdgeInput; +} +export interface DatabaseAddEdgeAndSaveVariables { + input: DatabaseAddEdgeAndSaveInput; +} +export interface DatabaseAddNodeVariables { + input: DatabaseAddNodeInput; +} +export interface DatabaseAddNodeAndSaveVariables { + input: DatabaseAddNodeAndSaveInput; +} +export interface DatabaseApproveNodeVariables { + input: DatabaseApproveNodeInput; +} +export interface DatabaseCopyGraphVariables { + input: DatabaseCopyGraphInput; +} +export interface DatabaseCreateFunctionGraphVariables { + input: DatabaseCreateFunctionGraphInput; +} +export interface DatabaseGraphInitEmptyRepoVariables { + input: DatabaseGraphInitEmptyRepoInput; +} +export interface DatabaseGraphInsertNodeAtPathVariables { + input: DatabaseGraphInsertNodeAtPathInput; +} +export interface DatabaseGraphInsertNodesAtPathsVariables { + input: DatabaseGraphInsertNodesAtPathsInput; +} +export interface DatabaseGraphSetAndCommitVariables { + input: DatabaseGraphSetAndCommitInput; +} +export interface DatabaseGraphSetDataAtPathVariables { + input: DatabaseGraphSetDataAtPathInput; +} +export interface DatabaseGraphSetManyAndCommitVariables { + input: DatabaseGraphSetManyAndCommitInput; +} +export interface DatabaseImportDefinitionsVariables { + input: DatabaseImportDefinitionsInput; +} +export interface DatabaseImportGraphJsonVariables { + input: DatabaseImportGraphJsonInput; +} +export interface DatabaseSaveGraphVariables { + input: DatabaseSaveGraphInput; +} +export interface DatabaseStartExecutionVariables { + input: DatabaseStartExecutionInput; +} +export interface DatabaseValidateFunctionGraphVariables { + input: DatabaseValidateFunctionGraphInput; +} +export interface FunctionInvocationsCreateSyncVariables { + input: FunctionInvocationsCreateSyncInput; +} export interface ImportDefinitionsVariables { input: ImportDefinitionsInput; } @@ -120,24 +270,48 @@ 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 PlatformFunctionInvocationsCreateSyncVariables { + input: PlatformFunctionInvocationsCreateSyncInput; +} 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; } @@ -152,10 +326,11 @@ export interface PlatformResourceInstallationsUpgradeVariables { } /** * Variables for provisionBucket - * 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. + * Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. */ export interface ProvisionBucketVariables { input: ProvisionBucketInput; @@ -175,9 +350,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; } @@ -190,145 +371,743 @@ export function createMutationOperations(client: OrmClient) { args: AddEdgeVariables, options: { select: S; - } & StrictSelect + } & StrictSelect + ) => + new QueryBuilder<{ + addEdge: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'AddEdge', + fieldName: 'addEdge', + ...buildCustomDocument( + 'mutation', + 'AddEdge', + 'addEdge', + options.select, + args, + [ + { + name: 'input', + type: 'AddEdgeInput!', + }, + ], + connectionFieldsMap, + 'AddEdgePayload' + ), + }), + addEdgeAndSave: ( + args: AddEdgeAndSaveVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + addEdgeAndSave: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'AddEdgeAndSave', + fieldName: 'addEdgeAndSave', + ...buildCustomDocument( + 'mutation', + 'AddEdgeAndSave', + 'addEdgeAndSave', + options.select, + args, + [ + { + name: 'input', + type: 'AddEdgeAndSaveInput!', + }, + ], + connectionFieldsMap, + 'AddEdgeAndSavePayload' + ), + }), + addNode: ( + args: AddNodeVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + addNode: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'AddNode', + fieldName: 'addNode', + ...buildCustomDocument( + 'mutation', + 'AddNode', + 'addNode', + options.select, + args, + [ + { + name: 'input', + type: 'AddNodeInput!', + }, + ], + connectionFieldsMap, + 'AddNodePayload' + ), + }), + addNodeAndSave: ( + args: AddNodeAndSaveVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + addNodeAndSave: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'AddNodeAndSave', + fieldName: 'addNodeAndSave', + ...buildCustomDocument( + 'mutation', + 'AddNodeAndSave', + 'addNodeAndSave', + options.select, + args, + [ + { + name: 'input', + type: 'AddNodeAndSaveInput!', + }, + ], + connectionFieldsMap, + 'AddNodeAndSavePayload' + ), + }), + approveNode: ( + args: ApproveNodeVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + approveNode: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'ApproveNode', + fieldName: 'approveNode', + ...buildCustomDocument( + 'mutation', + 'ApproveNode', + 'approveNode', + options.select, + args, + [ + { + name: 'input', + type: 'ApproveNodeInput!', + }, + ], + connectionFieldsMap, + 'ApproveNodePayload' + ), + }), + copyGraph: ( + args: CopyGraphVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + copyGraph: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'CopyGraph', + fieldName: 'copyGraph', + ...buildCustomDocument( + 'mutation', + 'CopyGraph', + 'copyGraph', + options.select, + args, + [ + { + name: 'input', + type: 'CopyGraphInput!', + }, + ], + connectionFieldsMap, + 'CopyGraphPayload' + ), + }), + databaseAddEdge: ( + args: DatabaseAddEdgeVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + databaseAddEdge: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'DatabaseAddEdge', + fieldName: 'databaseAddEdge', + ...buildCustomDocument( + 'mutation', + 'DatabaseAddEdge', + 'databaseAddEdge', + options.select, + args, + [ + { + name: 'input', + type: 'DatabaseAddEdgeInput!', + }, + ], + connectionFieldsMap, + 'DatabaseAddEdgePayload' + ), + }), + databaseAddEdgeAndSave: ( + args: DatabaseAddEdgeAndSaveVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + databaseAddEdgeAndSave: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'DatabaseAddEdgeAndSave', + fieldName: 'databaseAddEdgeAndSave', + ...buildCustomDocument( + 'mutation', + 'DatabaseAddEdgeAndSave', + 'databaseAddEdgeAndSave', + options.select, + args, + [ + { + name: 'input', + type: 'DatabaseAddEdgeAndSaveInput!', + }, + ], + connectionFieldsMap, + 'DatabaseAddEdgeAndSavePayload' + ), + }), + databaseAddNode: ( + args: DatabaseAddNodeVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + databaseAddNode: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'DatabaseAddNode', + fieldName: 'databaseAddNode', + ...buildCustomDocument( + 'mutation', + 'DatabaseAddNode', + 'databaseAddNode', + options.select, + args, + [ + { + name: 'input', + type: 'DatabaseAddNodeInput!', + }, + ], + connectionFieldsMap, + 'DatabaseAddNodePayload' + ), + }), + databaseAddNodeAndSave: ( + args: DatabaseAddNodeAndSaveVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + databaseAddNodeAndSave: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'DatabaseAddNodeAndSave', + fieldName: 'databaseAddNodeAndSave', + ...buildCustomDocument( + 'mutation', + 'DatabaseAddNodeAndSave', + 'databaseAddNodeAndSave', + options.select, + args, + [ + { + name: 'input', + type: 'DatabaseAddNodeAndSaveInput!', + }, + ], + connectionFieldsMap, + 'DatabaseAddNodeAndSavePayload' + ), + }), + databaseApproveNode: ( + args: DatabaseApproveNodeVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + databaseApproveNode: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'DatabaseApproveNode', + fieldName: 'databaseApproveNode', + ...buildCustomDocument( + 'mutation', + 'DatabaseApproveNode', + 'databaseApproveNode', + options.select, + args, + [ + { + name: 'input', + type: 'DatabaseApproveNodeInput!', + }, + ], + connectionFieldsMap, + 'DatabaseApproveNodePayload' + ), + }), + databaseCopyGraph: ( + args: DatabaseCopyGraphVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + databaseCopyGraph: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'DatabaseCopyGraph', + fieldName: 'databaseCopyGraph', + ...buildCustomDocument( + 'mutation', + 'DatabaseCopyGraph', + 'databaseCopyGraph', + options.select, + args, + [ + { + name: 'input', + type: 'DatabaseCopyGraphInput!', + }, + ], + connectionFieldsMap, + 'DatabaseCopyGraphPayload' + ), + }), + databaseCreateFunctionGraph: ( + args: DatabaseCreateFunctionGraphVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + databaseCreateFunctionGraph: InferSelectResult< + DatabaseCreateFunctionGraphPayload, + S + > | null; + }>({ + client, + operation: 'mutation', + operationName: 'DatabaseCreateFunctionGraph', + fieldName: 'databaseCreateFunctionGraph', + ...buildCustomDocument( + 'mutation', + 'DatabaseCreateFunctionGraph', + 'databaseCreateFunctionGraph', + options.select, + args, + [ + { + name: 'input', + type: 'DatabaseCreateFunctionGraphInput!', + }, + ], + connectionFieldsMap, + 'DatabaseCreateFunctionGraphPayload' + ), + }), + databaseGraphInitEmptyRepo: ( + args: DatabaseGraphInitEmptyRepoVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + databaseGraphInitEmptyRepo: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'DatabaseGraphInitEmptyRepo', + fieldName: 'databaseGraphInitEmptyRepo', + ...buildCustomDocument( + 'mutation', + 'DatabaseGraphInitEmptyRepo', + 'databaseGraphInitEmptyRepo', + options.select, + args, + [ + { + name: 'input', + type: 'DatabaseGraphInitEmptyRepoInput!', + }, + ], + connectionFieldsMap, + 'DatabaseGraphInitEmptyRepoPayload' + ), + }), + databaseGraphInsertNodeAtPath: ( + args: DatabaseGraphInsertNodeAtPathVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + databaseGraphInsertNodeAtPath: InferSelectResult< + DatabaseGraphInsertNodeAtPathPayload, + S + > | null; + }>({ + client, + operation: 'mutation', + operationName: 'DatabaseGraphInsertNodeAtPath', + fieldName: 'databaseGraphInsertNodeAtPath', + ...buildCustomDocument( + 'mutation', + 'DatabaseGraphInsertNodeAtPath', + 'databaseGraphInsertNodeAtPath', + options.select, + args, + [ + { + name: 'input', + type: 'DatabaseGraphInsertNodeAtPathInput!', + }, + ], + connectionFieldsMap, + 'DatabaseGraphInsertNodeAtPathPayload' + ), + }), + databaseGraphInsertNodesAtPaths: ( + args: DatabaseGraphInsertNodesAtPathsVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + databaseGraphInsertNodesAtPaths: InferSelectResult< + DatabaseGraphInsertNodesAtPathsPayload, + S + > | null; + }>({ + client, + operation: 'mutation', + operationName: 'DatabaseGraphInsertNodesAtPaths', + fieldName: 'databaseGraphInsertNodesAtPaths', + ...buildCustomDocument( + 'mutation', + 'DatabaseGraphInsertNodesAtPaths', + 'databaseGraphInsertNodesAtPaths', + options.select, + args, + [ + { + name: 'input', + type: 'DatabaseGraphInsertNodesAtPathsInput!', + }, + ], + connectionFieldsMap, + 'DatabaseGraphInsertNodesAtPathsPayload' + ), + }), + databaseGraphSetAndCommit: ( + args: DatabaseGraphSetAndCommitVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + databaseGraphSetAndCommit: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'DatabaseGraphSetAndCommit', + fieldName: 'databaseGraphSetAndCommit', + ...buildCustomDocument( + 'mutation', + 'DatabaseGraphSetAndCommit', + 'databaseGraphSetAndCommit', + options.select, + args, + [ + { + name: 'input', + type: 'DatabaseGraphSetAndCommitInput!', + }, + ], + connectionFieldsMap, + 'DatabaseGraphSetAndCommitPayload' + ), + }), + databaseGraphSetDataAtPath: ( + args: DatabaseGraphSetDataAtPathVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + databaseGraphSetDataAtPath: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'DatabaseGraphSetDataAtPath', + fieldName: 'databaseGraphSetDataAtPath', + ...buildCustomDocument( + 'mutation', + 'DatabaseGraphSetDataAtPath', + 'databaseGraphSetDataAtPath', + options.select, + args, + [ + { + name: 'input', + type: 'DatabaseGraphSetDataAtPathInput!', + }, + ], + connectionFieldsMap, + 'DatabaseGraphSetDataAtPathPayload' + ), + }), + databaseGraphSetManyAndCommit: ( + args: DatabaseGraphSetManyAndCommitVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + databaseGraphSetManyAndCommit: InferSelectResult< + DatabaseGraphSetManyAndCommitPayload, + S + > | null; + }>({ + client, + operation: 'mutation', + operationName: 'DatabaseGraphSetManyAndCommit', + fieldName: 'databaseGraphSetManyAndCommit', + ...buildCustomDocument( + 'mutation', + 'DatabaseGraphSetManyAndCommit', + 'databaseGraphSetManyAndCommit', + options.select, + args, + [ + { + name: 'input', + type: 'DatabaseGraphSetManyAndCommitInput!', + }, + ], + connectionFieldsMap, + 'DatabaseGraphSetManyAndCommitPayload' + ), + }), + databaseImportDefinitions: ( + args: DatabaseImportDefinitionsVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + databaseImportDefinitions: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'DatabaseImportDefinitions', + fieldName: 'databaseImportDefinitions', + ...buildCustomDocument( + 'mutation', + 'DatabaseImportDefinitions', + 'databaseImportDefinitions', + options.select, + args, + [ + { + name: 'input', + type: 'DatabaseImportDefinitionsInput!', + }, + ], + connectionFieldsMap, + 'DatabaseImportDefinitionsPayload' + ), + }), + databaseImportGraphJson: ( + args: DatabaseImportGraphJsonVariables, + options: { + select: S; + } & StrictSelect ) => new QueryBuilder<{ - addEdge: InferSelectResult | null; + databaseImportGraphJson: InferSelectResult | null; }>({ client, operation: 'mutation', - operationName: 'AddEdge', - fieldName: 'addEdge', + operationName: 'DatabaseImportGraphJson', + fieldName: 'databaseImportGraphJson', ...buildCustomDocument( 'mutation', - 'AddEdge', - 'addEdge', + 'DatabaseImportGraphJson', + 'databaseImportGraphJson', options.select, args, [ { name: 'input', - type: 'AddEdgeInput!', + type: 'DatabaseImportGraphJsonInput!', }, ], connectionFieldsMap, - 'AddEdgePayload' + 'DatabaseImportGraphJsonPayload' ), }), - addEdgeAndSave: ( - args: AddEdgeAndSaveVariables, + databaseSaveGraph: ( + args: DatabaseSaveGraphVariables, options: { select: S; - } & StrictSelect + } & StrictSelect ) => new QueryBuilder<{ - addEdgeAndSave: InferSelectResult | null; + databaseSaveGraph: InferSelectResult | null; }>({ client, operation: 'mutation', - operationName: 'AddEdgeAndSave', - fieldName: 'addEdgeAndSave', + operationName: 'DatabaseSaveGraph', + fieldName: 'databaseSaveGraph', ...buildCustomDocument( 'mutation', - 'AddEdgeAndSave', - 'addEdgeAndSave', + 'DatabaseSaveGraph', + 'databaseSaveGraph', options.select, args, [ { name: 'input', - type: 'AddEdgeAndSaveInput!', + type: 'DatabaseSaveGraphInput!', }, ], connectionFieldsMap, - 'AddEdgeAndSavePayload' + 'DatabaseSaveGraphPayload' ), }), - addNode: ( - args: AddNodeVariables, + databaseStartExecution: ( + args: DatabaseStartExecutionVariables, options: { select: S; - } & StrictSelect + } & StrictSelect ) => new QueryBuilder<{ - addNode: InferSelectResult | null; + databaseStartExecution: InferSelectResult | null; }>({ client, operation: 'mutation', - operationName: 'AddNode', - fieldName: 'addNode', + operationName: 'DatabaseStartExecution', + fieldName: 'databaseStartExecution', ...buildCustomDocument( 'mutation', - 'AddNode', - 'addNode', + 'DatabaseStartExecution', + 'databaseStartExecution', options.select, args, [ { name: 'input', - type: 'AddNodeInput!', + type: 'DatabaseStartExecutionInput!', }, ], connectionFieldsMap, - 'AddNodePayload' + 'DatabaseStartExecutionPayload' ), }), - addNodeAndSave: ( - args: AddNodeAndSaveVariables, + databaseValidateFunctionGraph: ( + args: DatabaseValidateFunctionGraphVariables, options: { select: S; - } & StrictSelect + } & StrictSelect ) => new QueryBuilder<{ - addNodeAndSave: InferSelectResult | null; + databaseValidateFunctionGraph: InferSelectResult< + DatabaseValidateFunctionGraphPayload, + S + > | null; }>({ client, operation: 'mutation', - operationName: 'AddNodeAndSave', - fieldName: 'addNodeAndSave', + operationName: 'DatabaseValidateFunctionGraph', + fieldName: 'databaseValidateFunctionGraph', ...buildCustomDocument( 'mutation', - 'AddNodeAndSave', - 'addNodeAndSave', + 'DatabaseValidateFunctionGraph', + 'databaseValidateFunctionGraph', options.select, args, [ { name: 'input', - type: 'AddNodeAndSaveInput!', + type: 'DatabaseValidateFunctionGraphInput!', }, ], connectionFieldsMap, - 'AddNodeAndSavePayload' + 'DatabaseValidateFunctionGraphPayload' ), }), - copyGraph: ( - args: CopyGraphVariables, + functionInvocationsCreateSync: ( + args: FunctionInvocationsCreateSyncVariables, options: { select: S; - } & StrictSelect + } & StrictSelect ) => new QueryBuilder<{ - copyGraph: InferSelectResult | null; + functionInvocationsCreateSync: InferSelectResult< + FunctionInvocationsCreateSyncPayload, + S + > | null; }>({ client, operation: 'mutation', - operationName: 'CopyGraph', - fieldName: 'copyGraph', + operationName: 'FunctionInvocationsCreateSync', + fieldName: 'functionInvocationsCreateSync', ...buildCustomDocument( 'mutation', - 'CopyGraph', - 'copyGraph', + 'FunctionInvocationsCreateSync', + 'functionInvocationsCreateSync', options.select, args, [ { name: 'input', - type: 'CopyGraphInput!', + type: 'FunctionInvocationsCreateSyncInput!', }, ], connectionFieldsMap, - 'CopyGraphPayload' + 'FunctionInvocationsCreateSyncPayload' ), }), importDefinitions: ( @@ -447,6 +1226,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 +1313,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 +1400,69 @@ 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' + ), + }), + platformFunctionInvocationsCreateSync: < + S extends PlatformFunctionInvocationsCreateSyncPayloadSelect, + >( + args: PlatformFunctionInvocationsCreateSyncVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + platformFunctionInvocationsCreateSync: InferSelectResult< + PlatformFunctionInvocationsCreateSyncPayload, + S + > | null; + }>({ + client, + operation: 'mutation', + operationName: 'PlatformFunctionInvocationsCreateSync', + fieldName: 'platformFunctionInvocationsCreateSync', + ...buildCustomDocument( + 'mutation', + 'PlatformFunctionInvocationsCreateSync', + 'platformFunctionInvocationsCreateSync', + options.select, + args, + [ + { + name: 'input', + type: 'PlatformFunctionInvocationsCreateSyncInput!', + }, + ], + connectionFieldsMap, + 'PlatformFunctionInvocationsCreateSyncPayload' + ), + }), platformInfraInitEmptyRepo: ( args: PlatformInfraInitEmptyRepoVariables, options: { @@ -595,6 +1524,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 +1614,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 +1968,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 +2026,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/compute/orm/query/index.ts b/sdk/constructive-cli/src/compute/orm/query/index.ts index 505264ae62..fcea7431b0 100644 --- a/sdk/constructive-cli/src/compute/orm/query/index.ts +++ b/sdk/constructive-cli/src/compute/orm/query/index.ts @@ -7,11 +7,43 @@ import { OrmClient } from '../client'; import { QueryBuilder, buildCustomDocument } from '../query-builder'; import type { InferSelectResult, StrictSelect } from '../select-types'; import { connectionFieldsMap } from '../input-types'; +export interface DatabaseReadFunctionGraphVariables { + graphId?: string; +} export interface ReadFunctionGraphVariables { graphId?: string; } export function createQueryOperations(client: OrmClient) { return { + databaseReadFunctionGraph: ( + args: DatabaseReadFunctionGraphVariables, + options?: { + select?: Record; + } + ) => + new QueryBuilder<{ + databaseReadFunctionGraph: unknown | null; + }>({ + client, + operation: 'query', + operationName: 'DatabaseReadFunctionGraph', + fieldName: 'databaseReadFunctionGraph', + ...buildCustomDocument( + 'query', + 'DatabaseReadFunctionGraph', + 'databaseReadFunctionGraph', + options?.select, + args, + [ + { + name: 'graphId', + type: 'UUID', + }, + ], + connectionFieldsMap, + undefined + ), + }), readFunctionGraph: ( args: ReadFunctionGraphVariables, options?: { diff --git a/sdk/constructive-cli/src/config/README.md b/sdk/constructive-cli/src/config/README.md index c825540f3a..cb76781702 100644 --- a/sdk/constructive-cli/src/config/README.md +++ b/sdk/constructive-cli/src/config/README.md @@ -8,9 +8,9 @@ ## Overview -- **Tables:** 5 +- **Tables:** 9 - **Custom queries:** 0 -- **Custom mutations:** 13 +- **Custom mutations:** 21 **Generators:** ORM, CLI diff --git a/sdk/constructive-cli/src/config/cli/README.md b/sdk/constructive-cli/src/config/cli/README.md index 199f0d640a..ac13337d38 100644 --- a/sdk/constructive-cli/src/config/cli/README.md +++ b/sdk/constructive-cli/src/config/cli/README.md @@ -26,15 +26,27 @@ csdk auth set-token | `context` | Manage API contexts (endpoints) | | `auth` | Manage authentication tokens | | `config` | Manage config key-value store (per-context) | +| `app-internal-secret` | appInternalSecret CRUD operations | | `config` | config CRUD operations | +| `internal-config` | internalConfig CRUD operations | +| `internal-secret` | internalSecret CRUD operations | | `platform-config` | platformConfig CRUD operations | +| `platform-internal-config` | platformInternalConfig CRUD operations | | `platform-internal-secret` | platformInternalSecret CRUD operations | | `platform-secret` | platformSecret CRUD operations | | `secret` | secret CRUD operations | +| `internal-secrets-del` | _internalSecretsDel | +| `internal-secrets-remove-array` | _internalSecretsRemoveArray | +| `internal-secrets-rotate` | _internalSecretsRotate | +| `internal-secrets-set` | _internalSecretsSet | | `secrets-del` | _secretsDel | | `secrets-remove-array` | _secretsRemoveArray | | `secrets-rotate` | _secretsRotate | | `secrets-set` | _secretsSet | +| `app-internal-secrets-del` | appInternalSecretsDel | +| `app-internal-secrets-remove-array` | appInternalSecretsRemoveArray | +| `app-internal-secrets-rotate` | appInternalSecretsRotate | +| `app-internal-secrets-set` | appInternalSecretsSet | | `platform-internal-secrets-del` | platformInternalSecretsDel | | `platform-internal-secrets-remove-array` | platformInternalSecretsRemoveArray | | `platform-internal-secrets-rotate` | platformInternalSecretsRotate | @@ -43,10 +55,11 @@ csdk auth set-token | `platform-secrets-remove-array` | platformSecretsRemoveArray | | `platform-secrets-rotate` | platformSecretsRotate | | `platform-secrets-set` | platformSecretsSet | -| `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-bucket` | Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. | ## Infrastructure Commands @@ -89,6 +102,36 @@ Variables are scoped to the active context and stored at `~/.csdk/config/`. ## Table Commands +### `app-internal-secret` + +CRUD operations for AppInternalSecret records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all appInternalSecret records | +| `find-first` | Find first matching appInternalSecret record | +| `get` | Get a appInternalSecret by id | +| `create` | Create a new appInternalSecret | +| `update` | Update an existing appInternalSecret | +| `delete` | Delete a appInternalSecret | + +**Fields:** + +| Field | Type | +|-------|------| +| `annotations` | JSON | +| `createdAt` | Datetime | +| `description` | String | +| `id` | UUID | +| `labels` | JSON | +| `name` | String | +| `realm` | String | +| `retiredAt` | Datetime | +| `rotatedAt` | Datetime | +| `updatedAt` | Datetime | + +**Required create fields:** `annotations`, `description`, `labels`, `name`, `realm`, `retiredAt`, `rotatedAt` + ### `config` CRUD operations for Config records. @@ -108,6 +151,7 @@ CRUD operations for Config records. |-------|------| | `annotations` | JSON | | `createdAt` | Datetime | +| `createdByPrincipal` | UUID | | `databaseId` | UUID | | `description` | String | | `expiresAt` | Datetime | @@ -118,11 +162,76 @@ CRUD operations for Config records. | `provider` | String | | `realm` | String | | `updatedAt` | Datetime | +| `updatedByPrincipal` | UUID | | `value` | String | **Required create fields:** `databaseId`, `name`, `namespaceId` +**Optional create fields (backend defaults):** `annotations`, `createdByPrincipal`, `description`, `expiresAt`, `labels`, `provider`, `realm`, `updatedByPrincipal`, `value` + +### `internal-config` + +CRUD operations for InternalConfig records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all internalConfig records | +| `find-first` | Find first matching internalConfig record | +| `get` | Get a internalConfig by id | +| `create` | Create a new internalConfig | +| `update` | Update an existing internalConfig | +| `delete` | Delete a internalConfig | + +**Fields:** + +| Field | Type | +|-------|------| +| `annotations` | JSON | +| `createdAt` | Datetime | +| `databaseId` | UUID | +| `description` | String | +| `expiresAt` | Datetime | +| `id` | UUID | +| `labels` | JSON | +| `name` | String | +| `provider` | String | +| `realm` | String | +| `updatedAt` | Datetime | +| `value` | String | + +**Required create fields:** `databaseId`, `name` **Optional create fields (backend defaults):** `annotations`, `description`, `expiresAt`, `labels`, `provider`, `realm`, `value` +### `internal-secret` + +CRUD operations for InternalSecret records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all internalSecret records | +| `find-first` | Find first matching internalSecret record | +| `get` | Get a internalSecret by id | +| `create` | Create a new internalSecret | +| `update` | Update an existing internalSecret | +| `delete` | Delete a internalSecret | + +**Fields:** + +| Field | Type | +|-------|------| +| `annotations` | JSON | +| `createdAt` | Datetime | +| `databaseId` | UUID | +| `description` | String | +| `id` | UUID | +| `labels` | JSON | +| `name` | String | +| `realm` | String | +| `retiredAt` | Datetime | +| `rotatedAt` | Datetime | +| `updatedAt` | Datetime | + +**Required create fields:** `annotations`, `databaseId`, `description`, `labels`, `name`, `realm`, `retiredAt`, `rotatedAt` + ### `platform-config` CRUD operations for PlatformConfig records. @@ -142,6 +251,7 @@ CRUD operations for PlatformConfig records. |-------|------| | `annotations` | JSON | | `createdAt` | Datetime | +| `createdByPrincipal` | UUID | | `description` | String | | `expiresAt` | Datetime | | `id` | UUID | @@ -151,9 +261,42 @@ CRUD operations for PlatformConfig records. | `provider` | String | | `realm` | String | | `updatedAt` | Datetime | +| `updatedByPrincipal` | UUID | | `value` | String | **Required create fields:** `name`, `namespaceId` +**Optional create fields (backend defaults):** `annotations`, `createdByPrincipal`, `description`, `expiresAt`, `labels`, `provider`, `realm`, `updatedByPrincipal`, `value` + +### `platform-internal-config` + +CRUD operations for PlatformInternalConfig records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all platformInternalConfig records | +| `find-first` | Find first matching platformInternalConfig record | +| `get` | Get a platformInternalConfig by id | +| `create` | Create a new platformInternalConfig | +| `update` | Update an existing platformInternalConfig | +| `delete` | Delete a platformInternalConfig | + +**Fields:** + +| Field | Type | +|-------|------| +| `annotations` | JSON | +| `createdAt` | Datetime | +| `description` | String | +| `expiresAt` | Datetime | +| `id` | UUID | +| `labels` | JSON | +| `name` | String | +| `provider` | String | +| `realm` | String | +| `updatedAt` | Datetime | +| `value` | String | + +**Required create fields:** `name` **Optional create fields (backend defaults):** `annotations`, `description`, `expiresAt`, `labels`, `provider`, `realm`, `value` ### `platform-internal-secret` @@ -179,13 +322,12 @@ CRUD operations for PlatformInternalSecret records. | `id` | UUID | | `labels` | JSON | | `name` | String | -| `namespaceId` | UUID | | `realm` | String | | `retiredAt` | Datetime | | `rotatedAt` | Datetime | | `updatedAt` | Datetime | -**Required create fields:** `annotations`, `description`, `labels`, `name`, `namespaceId`, `realm`, `retiredAt`, `rotatedAt` +**Required create fields:** `annotations`, `description`, `labels`, `name`, `realm`, `retiredAt`, `rotatedAt` ### `platform-secret` @@ -254,6 +396,66 @@ CRUD operations for Secret records. ## Custom Operations +### `internal-secrets-del` + +_internalSecretsDel + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.databaseId` | UUID | + | `--input.realm` | String | + | `--input.secretName` | String | + +### `internal-secrets-remove-array` + +_internalSecretsRemoveArray + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.databaseId` | UUID | + | `--input.realm` | String | + | `--input.secretNames` | String | + +### `internal-secrets-rotate` + +_internalSecretsRotate + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.algo` | String | + | `--input.clientMutationId` | String | + | `--input.databaseId` | UUID | + | `--input.realm` | String | + | `--input.secretName` | String | + | `--input.secretValue` | String | + +### `internal-secrets-set` + +_internalSecretsSet + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.algo` | String | + | `--input.clientMutationId` | String | + | `--input.scopeDatabaseId` | UUID | + | `--input.secretName` | String | + | `--input.secretRealm` | String | + | `--input.secretValue` | String | + ### `secrets-del` _secretsDel @@ -319,6 +521,62 @@ _secretsSet | `--input.secretRealm` | String | | `--input.secretValue` | String | +### `app-internal-secrets-del` + +appInternalSecretsDel + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.realm` | String | + | `--input.secretName` | String | + +### `app-internal-secrets-remove-array` + +appInternalSecretsRemoveArray + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.realm` | String | + | `--input.secretNames` | String | + +### `app-internal-secrets-rotate` + +appInternalSecretsRotate + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.algo` | String | + | `--input.clientMutationId` | String | + | `--input.realm` | String | + | `--input.secretName` | String | + | `--input.secretValue` | String | + +### `app-internal-secrets-set` + +appInternalSecretsSet + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.algo` | String | + | `--input.clientMutationId` | String | + | `--input.secretName` | String | + | `--input.secretRealm` | String | + | `--input.secretValue` | String | + ### `platform-internal-secrets-del` platformInternalSecretsDel @@ -329,7 +587,6 @@ platformInternalSecretsDel | Argument | Type | |----------|------| | `--input.clientMutationId` | String | - | `--input.namespaceId` | UUID | | `--input.realm` | String | | `--input.secretName` | String | @@ -343,7 +600,6 @@ platformInternalSecretsRemoveArray | Argument | Type | |----------|------| | `--input.clientMutationId` | String | - | `--input.namespaceId` | UUID | | `--input.realm` | String | | `--input.secretNames` | String | @@ -358,7 +614,6 @@ platformInternalSecretsRotate |----------|------| | `--input.algo` | String | | `--input.clientMutationId` | String | - | `--input.namespaceId` | UUID | | `--input.realm` | String | | `--input.secretName` | String | | `--input.secretValue` | String | @@ -375,7 +630,6 @@ platformInternalSecretsSet | `--input.algo` | String | | `--input.clientMutationId` | String | | `--input.secretName` | String | - | `--input.secretNamespaceId` | UUID | | `--input.secretRealm` | String | | `--input.secretValue` | String | @@ -442,10 +696,11 @@ platformSecretsSet ### `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. +Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. - **Type:** mutation - **Arguments:** diff --git a/sdk/constructive-cli/src/config/cli/commands.ts b/sdk/constructive-cli/src/config/cli/commands.ts index 8a9b2cd4fd..25fad8ea1d 100644 --- a/sdk/constructive-cli/src/config/cli/commands.ts +++ b/sdk/constructive-cli/src/config/cli/commands.ts @@ -6,15 +6,27 @@ import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; import contextCmd from './commands/context'; import authCmd from './commands/auth'; +import appInternalSecretCmd from './commands/app-internal-secret'; import configCmd from './commands/config'; +import internalConfigCmd from './commands/internal-config'; +import internalSecretCmd from './commands/internal-secret'; import platformConfigCmd from './commands/platform-config'; +import platformInternalConfigCmd from './commands/platform-internal-config'; import platformInternalSecretCmd from './commands/platform-internal-secret'; import platformSecretCmd from './commands/platform-secret'; import secretCmd from './commands/secret'; +import _internalSecretsDelCmd from './commands/internal-secrets-del'; +import _internalSecretsRemoveArrayCmd from './commands/internal-secrets-remove-array'; +import _internalSecretsRotateCmd from './commands/internal-secrets-rotate'; +import _internalSecretsSetCmd from './commands/internal-secrets-set'; import _secretsDelCmd from './commands/secrets-del'; import _secretsRemoveArrayCmd from './commands/secrets-remove-array'; import _secretsRotateCmd from './commands/secrets-rotate'; import _secretsSetCmd from './commands/secrets-set'; +import appInternalSecretsDelCmd from './commands/app-internal-secrets-del'; +import appInternalSecretsRemoveArrayCmd from './commands/app-internal-secrets-remove-array'; +import appInternalSecretsRotateCmd from './commands/app-internal-secrets-rotate'; +import appInternalSecretsSetCmd from './commands/app-internal-secrets-set'; import platformInternalSecretsDelCmd from './commands/platform-internal-secrets-del'; import platformInternalSecretsRemoveArrayCmd from './commands/platform-internal-secrets-remove-array'; import platformInternalSecretsRotateCmd from './commands/platform-internal-secrets-rotate'; @@ -34,15 +46,27 @@ const createCommandMap: () => Record< > = () => ({ context: contextCmd, auth: authCmd, + 'app-internal-secret': appInternalSecretCmd, config: configCmd, + 'internal-config': internalConfigCmd, + 'internal-secret': internalSecretCmd, 'platform-config': platformConfigCmd, + 'platform-internal-config': platformInternalConfigCmd, 'platform-internal-secret': platformInternalSecretCmd, 'platform-secret': platformSecretCmd, secret: secretCmd, + 'internal-secrets-del': _internalSecretsDelCmd, + 'internal-secrets-remove-array': _internalSecretsRemoveArrayCmd, + 'internal-secrets-rotate': _internalSecretsRotateCmd, + 'internal-secrets-set': _internalSecretsSetCmd, 'secrets-del': _secretsDelCmd, 'secrets-remove-array': _secretsRemoveArrayCmd, 'secrets-rotate': _secretsRotateCmd, 'secrets-set': _secretsSetCmd, + 'app-internal-secrets-del': appInternalSecretsDelCmd, + 'app-internal-secrets-remove-array': appInternalSecretsRemoveArrayCmd, + 'app-internal-secrets-rotate': appInternalSecretsRotateCmd, + 'app-internal-secrets-set': appInternalSecretsSetCmd, 'platform-internal-secrets-del': platformInternalSecretsDelCmd, 'platform-internal-secrets-remove-array': platformInternalSecretsRemoveArrayCmd, 'platform-internal-secrets-rotate': platformInternalSecretsRotateCmd, @@ -54,7 +78,7 @@ const createCommandMap: () => Record< 'provision-bucket': provisionBucketCmd, }); const usage = - '\ncsdk \n\nCommands:\n context Manage API contexts\n auth Manage authentication\n config config CRUD operations\n platform-config platformConfig CRUD operations\n platform-internal-secret platformInternalSecret CRUD operations\n platform-secret platformSecret CRUD operations\n secret secret CRUD operations\n secrets-del _secretsDel\n secrets-remove-array _secretsRemoveArray\n secrets-rotate _secretsRotate\n secrets-set _secretsSet\n platform-internal-secrets-del platformInternalSecretsDel\n platform-internal-secrets-remove-array platformInternalSecretsRemoveArray\n platform-internal-secrets-rotate platformInternalSecretsRotate\n platform-internal-secrets-set platformInternalSecretsSet\n platform-secrets-del platformSecretsDel\n platform-secrets-remove-array platformSecretsRemoveArray\n platform-secrets-rotate platformSecretsRotate\n platform-secrets-set platformSecretsSet\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 app-internal-secret appInternalSecret CRUD operations\n config config CRUD operations\n internal-config internalConfig CRUD operations\n internal-secret internalSecret CRUD operations\n platform-config platformConfig CRUD operations\n platform-internal-config platformInternalConfig CRUD operations\n platform-internal-secret platformInternalSecret CRUD operations\n platform-secret platformSecret CRUD operations\n secret secret CRUD operations\n internal-secrets-del _internalSecretsDel\n internal-secrets-remove-array _internalSecretsRemoveArray\n internal-secrets-rotate _internalSecretsRotate\n internal-secrets-set _internalSecretsSet\n secrets-del _secretsDel\n secrets-remove-array _secretsRemoveArray\n secrets-rotate _secretsRotate\n secrets-set _secretsSet\n app-internal-secrets-del appInternalSecretsDel\n app-internal-secrets-remove-array appInternalSecretsRemoveArray\n app-internal-secrets-rotate appInternalSecretsRotate\n app-internal-secrets-set appInternalSecretsSet\n platform-internal-secrets-del platformInternalSecretsDel\n platform-internal-secrets-remove-array platformInternalSecretsRemoveArray\n platform-internal-secrets-rotate platformInternalSecretsRotate\n platform-internal-secrets-set platformInternalSecretsSet\n platform-secrets-del platformSecretsDel\n platform-secrets-remove-array platformSecretsRemoveArray\n platform-secrets-rotate platformSecretsRotate\n platform-secrets-set platformSecretsSet\n provision-bucket Reconcile an S3 bucket for a logical bucket in the database.\nReads the bucket config via RLS, then enqueues the same\nstorage:provision_bucket job used by the INSERT trigger. This is\nidempotent for an already-reconciled bucket; enqueue failures become\nGraphQL errors.\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/config/cli/commands/app-internal-secret.ts b/sdk/constructive-cli/src/config/cli/commands/app-internal-secret.ts new file mode 100644 index 0000000000..76ed14eb12 --- /dev/null +++ b/sdk/constructive-cli/src/config/cli/commands/app-internal-secret.ts @@ -0,0 +1,217 @@ +/** + * CLI commands for AppInternalSecret + * @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 { + CreateAppInternalSecretInput, + AppInternalSecretPatch, + AppInternalSecretSelect, + AppInternalSecretFilter, + AppInternalSecretOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + annotations: 'json', + createdAt: 'string', + description: 'string', + id: 'uuid', + labels: 'json', + name: 'string', + realm: 'string', + retiredAt: 'string', + rotatedAt: 'string', + updatedAt: 'string', +}; +const usage = + '\napp-internal-secret \n\nCommands:\n list List appInternalSecret records\n find-first Find first matching appInternalSecret record\n create Create a new appInternalSecret\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', 'create'], + }, + ]); + 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 'create': + return handleCreate(argv, prompter); + default: + console.log(usage); + process.exit(1); + } +} +async function handleList(argv: Partial>, _prompter: Inquirerer) { + try { + const defaultSelect = { + annotations: true, + createdAt: true, + description: true, + id: true, + labels: true, + name: true, + realm: true, + retiredAt: true, + rotatedAt: true, + updatedAt: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: AppInternalSecretSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.appInternalSecret.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 = { + annotations: true, + createdAt: true, + description: true, + id: true, + labels: true, + name: true, + realm: true, + retiredAt: true, + rotatedAt: true, + updatedAt: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: AppInternalSecretSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.appInternalSecret.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 handleCreate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'json', + name: 'annotations', + message: 'annotations', + required: true, + }, + { + type: 'text', + name: 'description', + message: 'description', + required: true, + }, + { + type: 'json', + name: 'labels', + message: 'labels', + required: true, + }, + { + type: 'text', + name: 'name', + message: 'name', + required: true, + }, + { + type: 'text', + name: 'realm', + message: 'realm', + required: true, + }, + { + type: 'text', + name: 'retiredAt', + message: 'retiredAt', + required: true, + }, + { + type: 'text', + name: 'rotatedAt', + message: 'rotatedAt', + required: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateAppInternalSecretInput['appInternalSecret']; + const client = getClient(); + const result = await client.appInternalSecret + .create({ + data: { + annotations: cleanedData.annotations, + description: cleanedData.description, + labels: cleanedData.labels, + name: cleanedData.name, + realm: cleanedData.realm, + retiredAt: cleanedData.retiredAt, + rotatedAt: cleanedData.rotatedAt, + }, + select: { + annotations: true, + createdAt: true, + description: true, + id: true, + labels: true, + name: true, + realm: true, + retiredAt: true, + rotatedAt: 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); + } +} diff --git a/sdk/constructive-cli/src/config/cli/commands/app-internal-secrets-del.ts b/sdk/constructive-cli/src/config/cli/commands/app-internal-secrets-del.ts new file mode 100644 index 0000000000..1346fa940f --- /dev/null +++ b/sdk/constructive-cli/src/config/cli/commands/app-internal-secrets-del.ts @@ -0,0 +1,53 @@ +/** + * CLI command for mutation appInternalSecretsDel + * @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 { AppInternalSecretsDelVariables } from '../../orm/mutation'; +import type { AppInternalSecretsDelPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'app-internal-secrets-del - appInternalSecretsDel\n\nUsage: app-internal-secrets-del [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 + .appInternalSecretsDel( + parsedAnswers as unknown as AppInternalSecretsDelVariables, + { + select: selectFields, + } as unknown as { + select: AppInternalSecretsDelPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: appInternalSecretsDel'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/config/cli/commands/app-internal-secrets-remove-array.ts b/sdk/constructive-cli/src/config/cli/commands/app-internal-secrets-remove-array.ts new file mode 100644 index 0000000000..bdbb1fd600 --- /dev/null +++ b/sdk/constructive-cli/src/config/cli/commands/app-internal-secrets-remove-array.ts @@ -0,0 +1,53 @@ +/** + * CLI command for mutation appInternalSecretsRemoveArray + * @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 { AppInternalSecretsRemoveArrayVariables } from '../../orm/mutation'; +import type { AppInternalSecretsRemoveArrayPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'app-internal-secrets-remove-array - appInternalSecretsRemoveArray\n\nUsage: app-internal-secrets-remove-array [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 + .appInternalSecretsRemoveArray( + parsedAnswers as unknown as AppInternalSecretsRemoveArrayVariables, + { + select: selectFields, + } as unknown as { + select: AppInternalSecretsRemoveArrayPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: appInternalSecretsRemoveArray'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/config/cli/commands/app-internal-secrets-rotate.ts b/sdk/constructive-cli/src/config/cli/commands/app-internal-secrets-rotate.ts new file mode 100644 index 0000000000..e15241112c --- /dev/null +++ b/sdk/constructive-cli/src/config/cli/commands/app-internal-secrets-rotate.ts @@ -0,0 +1,53 @@ +/** + * CLI command for mutation appInternalSecretsRotate + * @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 { AppInternalSecretsRotateVariables } from '../../orm/mutation'; +import type { AppInternalSecretsRotatePayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'app-internal-secrets-rotate - appInternalSecretsRotate\n\nUsage: app-internal-secrets-rotate [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 + .appInternalSecretsRotate( + parsedAnswers as unknown as AppInternalSecretsRotateVariables, + { + select: selectFields, + } as unknown as { + select: AppInternalSecretsRotatePayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: appInternalSecretsRotate'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/config/cli/commands/app-internal-secrets-set.ts b/sdk/constructive-cli/src/config/cli/commands/app-internal-secrets-set.ts new file mode 100644 index 0000000000..6bf1fa0052 --- /dev/null +++ b/sdk/constructive-cli/src/config/cli/commands/app-internal-secrets-set.ts @@ -0,0 +1,53 @@ +/** + * CLI command for mutation appInternalSecretsSet + * @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 { AppInternalSecretsSetVariables } from '../../orm/mutation'; +import type { AppInternalSecretsSetPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'app-internal-secrets-set - appInternalSecretsSet\n\nUsage: app-internal-secrets-set [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 + .appInternalSecretsSet( + parsedAnswers as unknown as AppInternalSecretsSetVariables, + { + select: selectFields, + } as unknown as { + select: AppInternalSecretsSetPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: appInternalSecretsSet'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/config/cli/commands/config.ts b/sdk/constructive-cli/src/config/cli/commands/config.ts index 29d2d192b0..e961b9cbda 100644 --- a/sdk/constructive-cli/src/config/cli/commands/config.ts +++ b/sdk/constructive-cli/src/config/cli/commands/config.ts @@ -18,6 +18,7 @@ import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { annotations: 'json', createdAt: 'string', + createdByPrincipal: 'uuid', databaseId: 'uuid', description: 'string', expiresAt: 'string', @@ -28,6 +29,7 @@ const fieldSchema: FieldSchema = { provider: 'string', realm: 'string', updatedAt: 'string', + updatedByPrincipal: 'uuid', value: 'string', }; const usage = @@ -83,6 +85,7 @@ async function handleList(argv: Partial>, _prompter: Inq const defaultSelect = { annotations: true, createdAt: true, + createdByPrincipal: true, databaseId: true, description: true, expiresAt: true, @@ -93,6 +96,7 @@ async function handleList(argv: Partial>, _prompter: Inq provider: true, realm: true, updatedAt: true, + updatedByPrincipal: true, value: true, }; const findManyArgs = parseFindManyArgs< @@ -116,6 +120,7 @@ async function handleFindFirst(argv: Partial>, _prompter const defaultSelect = { annotations: true, createdAt: true, + createdByPrincipal: true, databaseId: true, description: true, expiresAt: true, @@ -126,6 +131,7 @@ async function handleFindFirst(argv: Partial>, _prompter provider: true, realm: true, updatedAt: true, + updatedByPrincipal: true, value: true, }; const findFirstArgs = parseFindFirstArgs< @@ -161,6 +167,7 @@ async function handleGet(argv: Partial>, prompter: Inqui select: { annotations: true, createdAt: true, + createdByPrincipal: true, databaseId: true, description: true, expiresAt: true, @@ -171,6 +178,7 @@ async function handleGet(argv: Partial>, prompter: Inqui provider: true, realm: true, updatedAt: true, + updatedByPrincipal: true, value: true, }, }) @@ -194,6 +202,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'databaseId', @@ -247,6 +262,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'value', @@ -262,6 +284,7 @@ async function handleCreate(argv: Partial>, prompter: In .create({ data: { annotations: cleanedData.annotations, + createdByPrincipal: cleanedData.createdByPrincipal, databaseId: cleanedData.databaseId, description: cleanedData.description, expiresAt: cleanedData.expiresAt, @@ -270,11 +293,13 @@ async function handleCreate(argv: Partial>, prompter: In namespaceId: cleanedData.namespaceId, provider: cleanedData.provider, realm: cleanedData.realm, + updatedByPrincipal: cleanedData.updatedByPrincipal, value: cleanedData.value, }, select: { annotations: true, createdAt: true, + createdByPrincipal: true, databaseId: true, description: true, expiresAt: true, @@ -285,6 +310,7 @@ async function handleCreate(argv: Partial>, prompter: In provider: true, realm: true, updatedAt: true, + updatedByPrincipal: true, value: true, }, }) @@ -314,6 +340,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'databaseId', @@ -367,6 +400,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'value', @@ -385,6 +425,7 @@ async function handleUpdate(argv: Partial>, prompter: In }, data: { annotations: cleanedData.annotations, + createdByPrincipal: cleanedData.createdByPrincipal, databaseId: cleanedData.databaseId, description: cleanedData.description, expiresAt: cleanedData.expiresAt, @@ -393,11 +434,13 @@ async function handleUpdate(argv: Partial>, prompter: In namespaceId: cleanedData.namespaceId, provider: cleanedData.provider, realm: cleanedData.realm, + updatedByPrincipal: cleanedData.updatedByPrincipal, value: cleanedData.value, }, select: { annotations: true, createdAt: true, + createdByPrincipal: true, databaseId: true, description: true, expiresAt: true, @@ -408,6 +451,7 @@ async function handleUpdate(argv: Partial>, prompter: In provider: true, realm: true, updatedAt: true, + updatedByPrincipal: true, value: true, }, }) diff --git a/sdk/constructive-cli/src/config/cli/commands/internal-config.ts b/sdk/constructive-cli/src/config/cli/commands/internal-config.ts new file mode 100644 index 0000000000..2dcc8527c1 --- /dev/null +++ b/sdk/constructive-cli/src/config/cli/commands/internal-config.ts @@ -0,0 +1,437 @@ +/** + * CLI commands for InternalConfig + * @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 { + CreateInternalConfigInput, + InternalConfigPatch, + InternalConfigSelect, + InternalConfigFilter, + InternalConfigOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + annotations: 'json', + createdAt: 'string', + databaseId: 'uuid', + description: 'string', + expiresAt: 'string', + id: 'uuid', + labels: 'json', + name: 'string', + provider: 'string', + realm: 'string', + updatedAt: 'string', + value: 'string', +}; +const usage = + '\ninternal-config \n\nCommands:\n list List internalConfig records\n find-first Find first matching internalConfig record\n get Get a internalConfig by ID\n create Create a new internalConfig\n update Update an existing internalConfig\n delete Delete a internalConfig\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 = { + annotations: true, + createdAt: true, + databaseId: true, + description: true, + expiresAt: true, + id: true, + labels: true, + name: true, + provider: true, + realm: true, + updatedAt: true, + value: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: InternalConfigSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.internalConfig.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 = { + annotations: true, + createdAt: true, + databaseId: true, + description: true, + expiresAt: true, + id: true, + labels: true, + name: true, + provider: true, + realm: true, + updatedAt: true, + value: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: InternalConfigSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.internalConfig.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.internalConfig + .findOne({ + id: answers.id as string, + select: { + annotations: true, + createdAt: true, + databaseId: true, + description: true, + expiresAt: true, + id: true, + labels: true, + name: true, + provider: true, + realm: true, + updatedAt: true, + value: 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: 'json', + name: 'annotations', + message: 'annotations', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: true, + }, + { + type: 'text', + name: 'description', + message: 'description', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'expiresAt', + message: 'expiresAt', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'labels', + message: 'labels', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'name', + message: 'name', + required: true, + }, + { + type: 'text', + name: 'provider', + message: 'provider', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'realm', + message: 'realm', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'value', + message: 'value', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateInternalConfigInput['internalConfig']; + const client = getClient(); + const result = await client.internalConfig + .create({ + data: { + annotations: cleanedData.annotations, + databaseId: cleanedData.databaseId, + description: cleanedData.description, + expiresAt: cleanedData.expiresAt, + labels: cleanedData.labels, + name: cleanedData.name, + provider: cleanedData.provider, + realm: cleanedData.realm, + value: cleanedData.value, + }, + select: { + annotations: true, + createdAt: true, + databaseId: true, + description: true, + expiresAt: true, + id: true, + labels: true, + name: true, + provider: true, + realm: true, + updatedAt: true, + value: 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: 'json', + name: 'annotations', + message: 'annotations', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: false, + }, + { + type: 'text', + name: 'description', + message: 'description', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'expiresAt', + message: 'expiresAt', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'labels', + message: 'labels', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'name', + message: 'name', + required: false, + }, + { + type: 'text', + name: 'provider', + message: 'provider', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'realm', + message: 'realm', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'value', + message: 'value', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as InternalConfigPatch; + const client = getClient(); + const result = await client.internalConfig + .update({ + where: { + id: answers.id as string, + }, + data: { + annotations: cleanedData.annotations, + databaseId: cleanedData.databaseId, + description: cleanedData.description, + expiresAt: cleanedData.expiresAt, + labels: cleanedData.labels, + name: cleanedData.name, + provider: cleanedData.provider, + realm: cleanedData.realm, + value: cleanedData.value, + }, + select: { + annotations: true, + createdAt: true, + databaseId: true, + description: true, + expiresAt: true, + id: true, + labels: true, + name: true, + provider: true, + realm: true, + updatedAt: true, + value: 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.internalConfig + .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/config/cli/commands/internal-secret.ts b/sdk/constructive-cli/src/config/cli/commands/internal-secret.ts new file mode 100644 index 0000000000..54517c08d9 --- /dev/null +++ b/sdk/constructive-cli/src/config/cli/commands/internal-secret.ts @@ -0,0 +1,228 @@ +/** + * CLI commands for InternalSecret + * @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 { + CreateInternalSecretInput, + InternalSecretPatch, + InternalSecretSelect, + InternalSecretFilter, + InternalSecretOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + annotations: 'json', + createdAt: 'string', + databaseId: 'uuid', + description: 'string', + id: 'uuid', + labels: 'json', + name: 'string', + realm: 'string', + retiredAt: 'string', + rotatedAt: 'string', + updatedAt: 'string', +}; +const usage = + '\ninternal-secret \n\nCommands:\n list List internalSecret records\n find-first Find first matching internalSecret record\n create Create a new internalSecret\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', 'create'], + }, + ]); + 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 'create': + return handleCreate(argv, prompter); + default: + console.log(usage); + process.exit(1); + } +} +async function handleList(argv: Partial>, _prompter: Inquirerer) { + try { + const defaultSelect = { + annotations: true, + createdAt: true, + databaseId: true, + description: true, + id: true, + labels: true, + name: true, + realm: true, + retiredAt: true, + rotatedAt: true, + updatedAt: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: InternalSecretSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.internalSecret.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 = { + annotations: true, + createdAt: true, + databaseId: true, + description: true, + id: true, + labels: true, + name: true, + realm: true, + retiredAt: true, + rotatedAt: true, + updatedAt: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: InternalSecretSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.internalSecret.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 handleCreate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'json', + name: 'annotations', + message: 'annotations', + required: true, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: true, + }, + { + type: 'text', + name: 'description', + message: 'description', + required: true, + }, + { + type: 'json', + name: 'labels', + message: 'labels', + required: true, + }, + { + type: 'text', + name: 'name', + message: 'name', + required: true, + }, + { + type: 'text', + name: 'realm', + message: 'realm', + required: true, + }, + { + type: 'text', + name: 'retiredAt', + message: 'retiredAt', + required: true, + }, + { + type: 'text', + name: 'rotatedAt', + message: 'rotatedAt', + required: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateInternalSecretInput['internalSecret']; + const client = getClient(); + const result = await client.internalSecret + .create({ + data: { + annotations: cleanedData.annotations, + databaseId: cleanedData.databaseId, + description: cleanedData.description, + labels: cleanedData.labels, + name: cleanedData.name, + realm: cleanedData.realm, + retiredAt: cleanedData.retiredAt, + rotatedAt: cleanedData.rotatedAt, + }, + select: { + annotations: true, + createdAt: true, + databaseId: true, + description: true, + id: true, + labels: true, + name: true, + realm: true, + retiredAt: true, + rotatedAt: 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); + } +} diff --git a/sdk/constructive-cli/src/config/cli/commands/internal-secrets-del.ts b/sdk/constructive-cli/src/config/cli/commands/internal-secrets-del.ts new file mode 100644 index 0000000000..6dfaa50a20 --- /dev/null +++ b/sdk/constructive-cli/src/config/cli/commands/internal-secrets-del.ts @@ -0,0 +1,53 @@ +/** + * CLI command for mutation _internalSecretsDel + * @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 { _internalSecretsDelVariables } from '../../orm/mutation'; +import type { _InternalSecretsDelPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'internal-secrets-del - _internalSecretsDel\n\nUsage: internal-secrets-del [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 + ._internalSecretsDel( + parsedAnswers as unknown as _internalSecretsDelVariables, + { + select: selectFields, + } as unknown as { + select: _InternalSecretsDelPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: _internalSecretsDel'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/config/cli/commands/internal-secrets-remove-array.ts b/sdk/constructive-cli/src/config/cli/commands/internal-secrets-remove-array.ts new file mode 100644 index 0000000000..7ae5927b47 --- /dev/null +++ b/sdk/constructive-cli/src/config/cli/commands/internal-secrets-remove-array.ts @@ -0,0 +1,53 @@ +/** + * CLI command for mutation _internalSecretsRemoveArray + * @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 { _internalSecretsRemoveArrayVariables } from '../../orm/mutation'; +import type { _InternalSecretsRemoveArrayPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'internal-secrets-remove-array - _internalSecretsRemoveArray\n\nUsage: internal-secrets-remove-array [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 + ._internalSecretsRemoveArray( + parsedAnswers as unknown as _internalSecretsRemoveArrayVariables, + { + select: selectFields, + } as unknown as { + select: _InternalSecretsRemoveArrayPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: _internalSecretsRemoveArray'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/config/cli/commands/internal-secrets-rotate.ts b/sdk/constructive-cli/src/config/cli/commands/internal-secrets-rotate.ts new file mode 100644 index 0000000000..4900f4709e --- /dev/null +++ b/sdk/constructive-cli/src/config/cli/commands/internal-secrets-rotate.ts @@ -0,0 +1,53 @@ +/** + * CLI command for mutation _internalSecretsRotate + * @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 { _internalSecretsRotateVariables } from '../../orm/mutation'; +import type { _InternalSecretsRotatePayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'internal-secrets-rotate - _internalSecretsRotate\n\nUsage: internal-secrets-rotate [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 + ._internalSecretsRotate( + parsedAnswers as unknown as _internalSecretsRotateVariables, + { + select: selectFields, + } as unknown as { + select: _InternalSecretsRotatePayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: _internalSecretsRotate'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/config/cli/commands/internal-secrets-set.ts b/sdk/constructive-cli/src/config/cli/commands/internal-secrets-set.ts new file mode 100644 index 0000000000..7542016ec0 --- /dev/null +++ b/sdk/constructive-cli/src/config/cli/commands/internal-secrets-set.ts @@ -0,0 +1,53 @@ +/** + * CLI command for mutation _internalSecretsSet + * @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 { _internalSecretsSetVariables } from '../../orm/mutation'; +import type { _InternalSecretsSetPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'internal-secrets-set - _internalSecretsSet\n\nUsage: internal-secrets-set [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 + ._internalSecretsSet( + parsedAnswers as unknown as _internalSecretsSetVariables, + { + select: selectFields, + } as unknown as { + select: _InternalSecretsSetPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: _internalSecretsSet'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/config/cli/commands/platform-config.ts b/sdk/constructive-cli/src/config/cli/commands/platform-config.ts index 08b19043ea..d97c659922 100644 --- a/sdk/constructive-cli/src/config/cli/commands/platform-config.ts +++ b/sdk/constructive-cli/src/config/cli/commands/platform-config.ts @@ -18,6 +18,7 @@ import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { annotations: 'json', createdAt: 'string', + createdByPrincipal: 'uuid', description: 'string', expiresAt: 'string', id: 'uuid', @@ -27,6 +28,7 @@ const fieldSchema: FieldSchema = { provider: 'string', realm: 'string', updatedAt: 'string', + updatedByPrincipal: 'uuid', value: 'string', }; const usage = @@ -82,6 +84,7 @@ async function handleList(argv: Partial>, _prompter: Inq const defaultSelect = { annotations: true, createdAt: true, + createdByPrincipal: true, description: true, expiresAt: true, id: true, @@ -91,6 +94,7 @@ async function handleList(argv: Partial>, _prompter: Inq provider: true, realm: true, updatedAt: true, + updatedByPrincipal: true, value: true, }; const findManyArgs = parseFindManyArgs< @@ -114,6 +118,7 @@ async function handleFindFirst(argv: Partial>, _prompter const defaultSelect = { annotations: true, createdAt: true, + createdByPrincipal: true, description: true, expiresAt: true, id: true, @@ -123,6 +128,7 @@ async function handleFindFirst(argv: Partial>, _prompter provider: true, realm: true, updatedAt: true, + updatedByPrincipal: true, value: true, }; const findFirstArgs = parseFindFirstArgs< @@ -158,6 +164,7 @@ async function handleGet(argv: Partial>, prompter: Inqui select: { annotations: true, createdAt: true, + createdByPrincipal: true, description: true, expiresAt: true, id: true, @@ -167,6 +174,7 @@ async function handleGet(argv: Partial>, prompter: Inqui provider: true, realm: true, updatedAt: true, + updatedByPrincipal: true, value: true, }, }) @@ -190,6 +198,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'description', @@ -237,6 +252,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'value', @@ -255,6 +277,7 @@ async function handleCreate(argv: Partial>, prompter: In .create({ data: { annotations: cleanedData.annotations, + createdByPrincipal: cleanedData.createdByPrincipal, description: cleanedData.description, expiresAt: cleanedData.expiresAt, labels: cleanedData.labels, @@ -262,11 +285,13 @@ async function handleCreate(argv: Partial>, prompter: In namespaceId: cleanedData.namespaceId, provider: cleanedData.provider, realm: cleanedData.realm, + updatedByPrincipal: cleanedData.updatedByPrincipal, value: cleanedData.value, }, select: { annotations: true, createdAt: true, + createdByPrincipal: true, description: true, expiresAt: true, id: true, @@ -276,6 +301,7 @@ async function handleCreate(argv: Partial>, prompter: In provider: true, realm: true, updatedAt: true, + updatedByPrincipal: true, value: true, }, }) @@ -305,6 +331,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'description', @@ -352,6 +385,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'value', @@ -370,6 +410,7 @@ async function handleUpdate(argv: Partial>, prompter: In }, data: { annotations: cleanedData.annotations, + createdByPrincipal: cleanedData.createdByPrincipal, description: cleanedData.description, expiresAt: cleanedData.expiresAt, labels: cleanedData.labels, @@ -377,11 +418,13 @@ async function handleUpdate(argv: Partial>, prompter: In namespaceId: cleanedData.namespaceId, provider: cleanedData.provider, realm: cleanedData.realm, + updatedByPrincipal: cleanedData.updatedByPrincipal, value: cleanedData.value, }, select: { annotations: true, createdAt: true, + createdByPrincipal: true, description: true, expiresAt: true, id: true, @@ -391,6 +434,7 @@ async function handleUpdate(argv: Partial>, prompter: In provider: true, realm: true, updatedAt: true, + updatedByPrincipal: true, value: true, }, }) diff --git a/sdk/constructive-cli/src/config/cli/commands/platform-internal-config.ts b/sdk/constructive-cli/src/config/cli/commands/platform-internal-config.ts new file mode 100644 index 0000000000..5d64ce7e85 --- /dev/null +++ b/sdk/constructive-cli/src/config/cli/commands/platform-internal-config.ts @@ -0,0 +1,425 @@ +/** + * CLI commands for PlatformInternalConfig + * @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 { + CreatePlatformInternalConfigInput, + PlatformInternalConfigPatch, + PlatformInternalConfigSelect, + PlatformInternalConfigFilter, + PlatformInternalConfigOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + annotations: 'json', + createdAt: 'string', + description: 'string', + expiresAt: 'string', + id: 'uuid', + labels: 'json', + name: 'string', + provider: 'string', + realm: 'string', + updatedAt: 'string', + value: 'string', +}; +const usage = + '\nplatform-internal-config \n\nCommands:\n list List platformInternalConfig records\n find-first Find first matching platformInternalConfig record\n get Get a platformInternalConfig by ID\n create Create a new platformInternalConfig\n update Update an existing platformInternalConfig\n delete Delete a platformInternalConfig\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 = { + annotations: true, + createdAt: true, + description: true, + expiresAt: true, + id: true, + labels: true, + name: true, + provider: true, + realm: true, + updatedAt: true, + value: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs< + PlatformInternalConfigSelect, + PlatformInternalConfigFilter, + PlatformInternalConfigOrderBy + > & { + select: PlatformInternalConfigSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformInternalConfig.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 = { + annotations: true, + createdAt: true, + description: true, + expiresAt: true, + id: true, + labels: true, + name: true, + provider: true, + realm: true, + updatedAt: true, + value: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs< + PlatformInternalConfigSelect, + PlatformInternalConfigFilter, + PlatformInternalConfigOrderBy + > & { + select: PlatformInternalConfigSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformInternalConfig.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.platformInternalConfig + .findOne({ + id: answers.id as string, + select: { + annotations: true, + createdAt: true, + description: true, + expiresAt: true, + id: true, + labels: true, + name: true, + provider: true, + realm: true, + updatedAt: true, + value: 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: 'json', + name: 'annotations', + message: 'annotations', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'description', + message: 'description', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'expiresAt', + message: 'expiresAt', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'labels', + message: 'labels', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'name', + message: 'name', + required: true, + }, + { + type: 'text', + name: 'provider', + message: 'provider', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'realm', + message: 'realm', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'value', + message: 'value', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreatePlatformInternalConfigInput['platformInternalConfig']; + const client = getClient(); + const result = await client.platformInternalConfig + .create({ + data: { + annotations: cleanedData.annotations, + description: cleanedData.description, + expiresAt: cleanedData.expiresAt, + labels: cleanedData.labels, + name: cleanedData.name, + provider: cleanedData.provider, + realm: cleanedData.realm, + value: cleanedData.value, + }, + select: { + annotations: true, + createdAt: true, + description: true, + expiresAt: true, + id: true, + labels: true, + name: true, + provider: true, + realm: true, + updatedAt: true, + value: 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: 'json', + name: 'annotations', + message: 'annotations', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'description', + message: 'description', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'expiresAt', + message: 'expiresAt', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'labels', + message: 'labels', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'name', + message: 'name', + required: false, + }, + { + type: 'text', + name: 'provider', + message: 'provider', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'realm', + message: 'realm', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'value', + message: 'value', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as PlatformInternalConfigPatch; + const client = getClient(); + const result = await client.platformInternalConfig + .update({ + where: { + id: answers.id as string, + }, + data: { + annotations: cleanedData.annotations, + description: cleanedData.description, + expiresAt: cleanedData.expiresAt, + labels: cleanedData.labels, + name: cleanedData.name, + provider: cleanedData.provider, + realm: cleanedData.realm, + value: cleanedData.value, + }, + select: { + annotations: true, + createdAt: true, + description: true, + expiresAt: true, + id: true, + labels: true, + name: true, + provider: true, + realm: true, + updatedAt: true, + value: 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.platformInternalConfig + .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/config/cli/commands/platform-internal-secret.ts b/sdk/constructive-cli/src/config/cli/commands/platform-internal-secret.ts index cf7c9bef82..2d00f183cd 100644 --- a/sdk/constructive-cli/src/config/cli/commands/platform-internal-secret.ts +++ b/sdk/constructive-cli/src/config/cli/commands/platform-internal-secret.ts @@ -22,7 +22,6 @@ const fieldSchema: FieldSchema = { id: 'uuid', labels: 'json', name: 'string', - namespaceId: 'uuid', realm: 'string', retiredAt: 'string', rotatedAt: 'string', @@ -79,7 +78,6 @@ async function handleList(argv: Partial>, _prompter: Inq id: true, labels: true, name: true, - namespaceId: true, realm: true, retiredAt: true, rotatedAt: true, @@ -114,7 +112,6 @@ async function handleFindFirst(argv: Partial>, _prompter id: true, labels: true, name: true, - namespaceId: true, realm: true, retiredAt: true, rotatedAt: true, @@ -167,12 +164,6 @@ async function handleCreate(argv: Partial>, prompter: In message: 'name', required: true, }, - { - type: 'text', - name: 'namespaceId', - message: 'namespaceId', - required: true, - }, { type: 'text', name: 'realm', @@ -205,7 +196,6 @@ async function handleCreate(argv: Partial>, prompter: In description: cleanedData.description, labels: cleanedData.labels, name: cleanedData.name, - namespaceId: cleanedData.namespaceId, realm: cleanedData.realm, retiredAt: cleanedData.retiredAt, rotatedAt: cleanedData.rotatedAt, @@ -217,7 +207,6 @@ async function handleCreate(argv: Partial>, prompter: In id: true, labels: true, name: true, - namespaceId: true, realm: true, retiredAt: true, rotatedAt: true, diff --git a/sdk/constructive-cli/src/config/cli/commands/provision-bucket.ts b/sdk/constructive-cli/src/config/cli/commands/provision-bucket.ts index ecd2e539d5..0c54313d78 100644 --- a/sdk/constructive-cli/src/config/cli/commands/provision-bucket.ts +++ b/sdk/constructive-cli/src/config/cli/commands/provision-bucket.ts @@ -16,7 +16,7 @@ export default async ( try { if (argv.help || argv.h) { console.log( - '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\nUsage: provision-bucket [OPTIONS]\n' + 'provision-bucket - Reconcile an S3 bucket for a logical bucket in the database.\nReads the bucket config via RLS, then enqueues the same\nstorage:provision_bucket job used by the INSERT trigger. This is\nidempotent for an already-reconciled bucket; enqueue failures become\nGraphQL errors.\n\nUsage: provision-bucket [OPTIONS]\n' ); process.exit(0); } diff --git a/sdk/constructive-cli/src/config/orm/README.md b/sdk/constructive-cli/src/config/orm/README.md index 90c6f61a0b..2cd850a467 100644 --- a/sdk/constructive-cli/src/config/orm/README.md +++ b/sdk/constructive-cli/src/config/orm/README.md @@ -21,14 +21,56 @@ const db = createClient({ | Model | Operations | |-------|------------| +| `appInternalSecret` | findMany, findOne, create, update, delete | | `config` | findMany, findOne, create, update, delete | +| `internalConfig` | findMany, findOne, create, update, delete | +| `internalSecret` | findMany, findOne, create, update, delete | | `platformConfig` | findMany, findOne, create, update, delete | +| `platformInternalConfig` | findMany, findOne, create, update, delete | | `platformInternalSecret` | findMany, findOne, create, update, delete | | `platformSecret` | findMany, findOne, create, update, delete | | `secret` | findMany, findOne, create, update, delete | ## Table Operations +### `db.appInternalSecret` + +CRUD operations for AppInternalSecret records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `annotations` | JSON | Yes | +| `createdAt` | Datetime | No | +| `description` | String | Yes | +| `id` | UUID | No | +| `labels` | JSON | Yes | +| `name` | String | Yes | +| `realm` | String | Yes | +| `retiredAt` | Datetime | Yes | +| `rotatedAt` | Datetime | Yes | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all appInternalSecret records +const items = await db.appInternalSecret.findMany({ select: { annotations: true, createdAt: true, description: true, id: true, labels: true, name: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.appInternalSecret.findOne({ id: '', select: { annotations: true, createdAt: true, description: true, id: true, labels: true, name: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.appInternalSecret.create({ data: { annotations: '', description: '', labels: '', name: '', realm: '', retiredAt: '', rotatedAt: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appInternalSecret.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appInternalSecret.delete({ where: { id: '' } }).execute(); +``` + ### `db.config` CRUD operations for Config records. @@ -39,6 +81,7 @@ CRUD operations for Config records. |-------|------|----------| | `annotations` | JSON | Yes | | `createdAt` | Datetime | No | +| `createdByPrincipal` | UUID | Yes | | `databaseId` | UUID | Yes | | `description` | String | Yes | | `expiresAt` | Datetime | Yes | @@ -49,19 +92,20 @@ CRUD operations for Config records. | `provider` | String | Yes | | `realm` | String | Yes | | `updatedAt` | Datetime | No | +| `updatedByPrincipal` | UUID | Yes | | `value` | String | Yes | **Operations:** ```typescript // List all config records -const items = await db.config.findMany({ select: { annotations: true, createdAt: true, databaseId: true, description: true, expiresAt: true, id: true, labels: true, name: true, namespaceId: true, provider: true, realm: true, updatedAt: true, value: true } }).execute(); +const items = await db.config.findMany({ select: { annotations: true, createdAt: true, createdByPrincipal: true, databaseId: true, description: true, expiresAt: true, id: true, labels: true, name: true, namespaceId: true, provider: true, realm: true, updatedAt: true, updatedByPrincipal: true, value: true } }).execute(); // Get one by id -const item = await db.config.findOne({ id: '', select: { annotations: true, createdAt: true, databaseId: true, description: true, expiresAt: true, id: true, labels: true, name: true, namespaceId: true, provider: true, realm: true, updatedAt: true, value: true } }).execute(); +const item = await db.config.findOne({ id: '', select: { annotations: true, createdAt: true, createdByPrincipal: true, databaseId: true, description: true, expiresAt: true, id: true, labels: true, name: true, namespaceId: true, provider: true, realm: true, updatedAt: true, updatedByPrincipal: true, value: true } }).execute(); // Create -const created = await db.config.create({ data: { annotations: '', databaseId: '', description: '', expiresAt: '', labels: '', name: '', namespaceId: '', provider: '', realm: '', value: '' }, select: { id: true } }).execute(); +const created = await db.config.create({ data: { annotations: '', createdByPrincipal: '', databaseId: '', description: '', expiresAt: '', labels: '', name: '', namespaceId: '', provider: '', realm: '', updatedByPrincipal: '', value: '' }, select: { id: true } }).execute(); // Update const updated = await db.config.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); @@ -70,6 +114,85 @@ const updated = await db.config.update({ where: { id: '' }, data: { annota const deleted = await db.config.delete({ where: { id: '' } }).execute(); ``` +### `db.internalConfig` + +CRUD operations for InternalConfig records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `annotations` | JSON | Yes | +| `createdAt` | Datetime | No | +| `databaseId` | UUID | Yes | +| `description` | String | Yes | +| `expiresAt` | Datetime | Yes | +| `id` | UUID | No | +| `labels` | JSON | Yes | +| `name` | String | Yes | +| `provider` | String | Yes | +| `realm` | String | Yes | +| `updatedAt` | Datetime | No | +| `value` | String | Yes | + +**Operations:** + +```typescript +// List all internalConfig records +const items = await db.internalConfig.findMany({ select: { annotations: true, createdAt: true, databaseId: true, description: true, expiresAt: true, id: true, labels: true, name: true, provider: true, realm: true, updatedAt: true, value: true } }).execute(); + +// Get one by id +const item = await db.internalConfig.findOne({ id: '', select: { annotations: true, createdAt: true, databaseId: true, description: true, expiresAt: true, id: true, labels: true, name: true, provider: true, realm: true, updatedAt: true, value: true } }).execute(); + +// Create +const created = await db.internalConfig.create({ data: { annotations: '', databaseId: '', description: '', expiresAt: '', labels: '', name: '', provider: '', realm: '', value: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.internalConfig.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.internalConfig.delete({ where: { id: '' } }).execute(); +``` + +### `db.internalSecret` + +CRUD operations for InternalSecret records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `annotations` | JSON | Yes | +| `createdAt` | Datetime | No | +| `databaseId` | UUID | Yes | +| `description` | String | Yes | +| `id` | UUID | No | +| `labels` | JSON | Yes | +| `name` | String | Yes | +| `realm` | String | Yes | +| `retiredAt` | Datetime | Yes | +| `rotatedAt` | Datetime | Yes | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all internalSecret records +const items = await db.internalSecret.findMany({ select: { annotations: true, createdAt: true, databaseId: true, description: true, id: true, labels: true, name: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.internalSecret.findOne({ id: '', select: { annotations: true, createdAt: true, databaseId: true, description: true, id: true, labels: true, name: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.internalSecret.create({ data: { annotations: '', databaseId: '', description: '', labels: '', name: '', realm: '', retiredAt: '', rotatedAt: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.internalSecret.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.internalSecret.delete({ where: { id: '' } }).execute(); +``` + ### `db.platformConfig` CRUD operations for PlatformConfig records. @@ -80,6 +203,7 @@ CRUD operations for PlatformConfig records. |-------|------|----------| | `annotations` | JSON | Yes | | `createdAt` | Datetime | No | +| `createdByPrincipal` | UUID | Yes | | `description` | String | Yes | | `expiresAt` | Datetime | Yes | | `id` | UUID | No | @@ -89,19 +213,20 @@ CRUD operations for PlatformConfig records. | `provider` | String | Yes | | `realm` | String | Yes | | `updatedAt` | Datetime | No | +| `updatedByPrincipal` | UUID | Yes | | `value` | String | Yes | **Operations:** ```typescript // List all platformConfig records -const items = await db.platformConfig.findMany({ select: { annotations: true, createdAt: true, description: true, expiresAt: true, id: true, labels: true, name: true, namespaceId: true, provider: true, realm: true, updatedAt: true, value: true } }).execute(); +const items = await db.platformConfig.findMany({ select: { annotations: true, createdAt: true, createdByPrincipal: true, description: true, expiresAt: true, id: true, labels: true, name: true, namespaceId: true, provider: true, realm: true, updatedAt: true, updatedByPrincipal: true, value: true } }).execute(); // Get one by id -const item = await db.platformConfig.findOne({ id: '', select: { annotations: true, createdAt: true, description: true, expiresAt: true, id: true, labels: true, name: true, namespaceId: true, provider: true, realm: true, updatedAt: true, value: true } }).execute(); +const item = await db.platformConfig.findOne({ id: '', select: { annotations: true, createdAt: true, createdByPrincipal: true, description: true, expiresAt: true, id: true, labels: true, name: true, namespaceId: true, provider: true, realm: true, updatedAt: true, updatedByPrincipal: true, value: true } }).execute(); // Create -const created = await db.platformConfig.create({ data: { annotations: '', description: '', expiresAt: '', labels: '', name: '', namespaceId: '', provider: '', realm: '', value: '' }, select: { id: true } }).execute(); +const created = await db.platformConfig.create({ data: { annotations: '', createdByPrincipal: '', description: '', expiresAt: '', labels: '', name: '', namespaceId: '', provider: '', realm: '', updatedByPrincipal: '', value: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformConfig.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); @@ -110,6 +235,45 @@ const updated = await db.platformConfig.update({ where: { id: '' }, data: const deleted = await db.platformConfig.delete({ where: { id: '' } }).execute(); ``` +### `db.platformInternalConfig` + +CRUD operations for PlatformInternalConfig records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `annotations` | JSON | Yes | +| `createdAt` | Datetime | No | +| `description` | String | Yes | +| `expiresAt` | Datetime | Yes | +| `id` | UUID | No | +| `labels` | JSON | Yes | +| `name` | String | Yes | +| `provider` | String | Yes | +| `realm` | String | Yes | +| `updatedAt` | Datetime | No | +| `value` | String | Yes | + +**Operations:** + +```typescript +// List all platformInternalConfig records +const items = await db.platformInternalConfig.findMany({ select: { annotations: true, createdAt: true, description: true, expiresAt: true, id: true, labels: true, name: true, provider: true, realm: true, updatedAt: true, value: true } }).execute(); + +// Get one by id +const item = await db.platformInternalConfig.findOne({ id: '', select: { annotations: true, createdAt: true, description: true, expiresAt: true, id: true, labels: true, name: true, provider: true, realm: true, updatedAt: true, value: true } }).execute(); + +// Create +const created = await db.platformInternalConfig.create({ data: { annotations: '', description: '', expiresAt: '', labels: '', name: '', provider: '', realm: '', value: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformInternalConfig.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformInternalConfig.delete({ where: { id: '' } }).execute(); +``` + ### `db.platformInternalSecret` CRUD operations for PlatformInternalSecret records. @@ -124,7 +288,6 @@ CRUD operations for PlatformInternalSecret records. | `id` | UUID | No | | `labels` | JSON | Yes | | `name` | String | Yes | -| `namespaceId` | UUID | Yes | | `realm` | String | Yes | | `retiredAt` | Datetime | Yes | | `rotatedAt` | Datetime | Yes | @@ -134,13 +297,13 @@ CRUD operations for PlatformInternalSecret records. ```typescript // List all platformInternalSecret records -const items = await db.platformInternalSecret.findMany({ select: { annotations: true, createdAt: true, description: true, id: true, labels: true, name: true, namespaceId: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } }).execute(); +const items = await db.platformInternalSecret.findMany({ select: { annotations: true, createdAt: true, description: true, id: true, labels: true, name: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.platformInternalSecret.findOne({ id: '', select: { annotations: true, createdAt: true, description: true, id: true, labels: true, name: true, namespaceId: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } }).execute(); +const item = await db.platformInternalSecret.findOne({ id: '', select: { annotations: true, createdAt: true, description: true, id: true, labels: true, name: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } }).execute(); // Create -const created = await db.platformInternalSecret.create({ data: { annotations: '', description: '', labels: '', name: '', namespaceId: '', realm: '', retiredAt: '', rotatedAt: '' }, select: { id: true } }).execute(); +const created = await db.platformInternalSecret.create({ data: { annotations: '', description: '', labels: '', name: '', realm: '', retiredAt: '', rotatedAt: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformInternalSecret.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); @@ -232,6 +395,66 @@ const deleted = await db.secret.delete({ where: { id: '' } }).execute(); ## Custom Operations +### `db.mutation._internalSecretsDel` + +_internalSecretsDel + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | _InternalSecretsDelInput (required) | + +```typescript +const result = await db.mutation._internalSecretsDel({ input: { databaseId: '', realm: '', secretName: '' } }).execute(); +``` + +### `db.mutation._internalSecretsRemoveArray` + +_internalSecretsRemoveArray + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | _InternalSecretsRemoveArrayInput (required) | + +```typescript +const result = await db.mutation._internalSecretsRemoveArray({ input: { databaseId: '', realm: '', secretNames: '' } }).execute(); +``` + +### `db.mutation._internalSecretsRotate` + +_internalSecretsRotate + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | _InternalSecretsRotateInput (required) | + +```typescript +const result = await db.mutation._internalSecretsRotate({ input: { algo: '', databaseId: '', realm: '', secretName: '', secretValue: '' } }).execute(); +``` + +### `db.mutation._internalSecretsSet` + +_internalSecretsSet + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | _InternalSecretsSetInput (required) | + +```typescript +const result = await db.mutation._internalSecretsSet({ input: { algo: '', scopeDatabaseId: '', secretName: '', secretRealm: '', secretValue: '' } }).execute(); +``` + ### `db.mutation._secretsDel` _secretsDel @@ -292,6 +515,66 @@ _secretsSet const result = await db.mutation._secretsSet({ input: '<_SecretsSetInput>' }).execute(); ``` +### `db.mutation.appInternalSecretsDel` + +appInternalSecretsDel + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | AppInternalSecretsDelInput (required) | + +```typescript +const result = await db.mutation.appInternalSecretsDel({ input: { realm: '', secretName: '' } }).execute(); +``` + +### `db.mutation.appInternalSecretsRemoveArray` + +appInternalSecretsRemoveArray + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | AppInternalSecretsRemoveArrayInput (required) | + +```typescript +const result = await db.mutation.appInternalSecretsRemoveArray({ input: { realm: '', secretNames: '' } }).execute(); +``` + +### `db.mutation.appInternalSecretsRotate` + +appInternalSecretsRotate + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | AppInternalSecretsRotateInput (required) | + +```typescript +const result = await db.mutation.appInternalSecretsRotate({ input: { algo: '', realm: '', secretName: '', secretValue: '' } }).execute(); +``` + +### `db.mutation.appInternalSecretsSet` + +appInternalSecretsSet + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | AppInternalSecretsSetInput (required) | + +```typescript +const result = await db.mutation.appInternalSecretsSet({ input: { algo: '', secretName: '', secretRealm: '', secretValue: '' } }).execute(); +``` + ### `db.mutation.platformInternalSecretsDel` platformInternalSecretsDel @@ -304,7 +587,7 @@ platformInternalSecretsDel | `input` | PlatformInternalSecretsDelInput (required) | ```typescript -const result = await db.mutation.platformInternalSecretsDel({ input: { namespaceId: '', realm: '', secretName: '' } }).execute(); +const result = await db.mutation.platformInternalSecretsDel({ input: { realm: '', secretName: '' } }).execute(); ``` ### `db.mutation.platformInternalSecretsRemoveArray` @@ -319,7 +602,7 @@ platformInternalSecretsRemoveArray | `input` | PlatformInternalSecretsRemoveArrayInput (required) | ```typescript -const result = await db.mutation.platformInternalSecretsRemoveArray({ input: { namespaceId: '', realm: '', secretNames: '' } }).execute(); +const result = await db.mutation.platformInternalSecretsRemoveArray({ input: { realm: '', secretNames: '' } }).execute(); ``` ### `db.mutation.platformInternalSecretsRotate` @@ -334,7 +617,7 @@ platformInternalSecretsRotate | `input` | PlatformInternalSecretsRotateInput (required) | ```typescript -const result = await db.mutation.platformInternalSecretsRotate({ input: { algo: '', namespaceId: '', realm: '', secretName: '', secretValue: '' } }).execute(); +const result = await db.mutation.platformInternalSecretsRotate({ input: { algo: '', realm: '', secretName: '', secretValue: '' } }).execute(); ``` ### `db.mutation.platformInternalSecretsSet` @@ -349,7 +632,7 @@ platformInternalSecretsSet | `input` | PlatformInternalSecretsSetInput (required) | ```typescript -const result = await db.mutation.platformInternalSecretsSet({ input: { algo: '', secretName: '', secretNamespaceId: '', secretRealm: '', secretValue: '' } }).execute(); +const result = await db.mutation.platformInternalSecretsSet({ input: { algo: '', secretName: '', secretRealm: '', secretValue: '' } }).execute(); ``` ### `db.mutation.platformSecretsDel` @@ -414,10 +697,11 @@ const result = await db.mutation.platformSecretsSet({ input: ' | null; + createdAt?: string | null; + description?: string | null; + id: string; + labels?: Record | null; + name?: string | null; + realm?: string | null; + retiredAt?: string | null; + rotatedAt?: string | null; + updatedAt?: string | null; +} +/** Namespace-backed plaintext key-value config store (like a k8s ConfigMap); admin-only, fully CRUD-exposed */ export interface Config { /** Freeform metadata for tooling and operational notes */ annotations?: Record | null; createdAt?: string | null; + createdByPrincipal?: string | null; /** Database that owns this resource (database-scoped isolation) */ databaseId?: string | null; /** Human-readable note about this config entry */ @@ -255,14 +268,54 @@ export interface Config { /** Optional discriminator scoping this value under its name. NULL = the default/unqualified value; getters fall back from an exact realm match to the NULL-realm row. */ realm?: string | null; updatedAt?: string | null; + updatedByPrincipal?: string | null; /** Plaintext config value */ value?: string | null; } +/** -level plaintext key-value config store; database-resident, never projected into Kubernetes */ +export interface InternalConfig { + /** Freeform metadata for tooling and operational notes */ + annotations?: Record | null; + createdAt?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; + /** Human-readable note about this config entry */ + description?: string | null; + /** Optional expiration timestamp for time-limited config entries */ + expiresAt?: string | null; + /** Unique identifier for this config entry */ + id: string; + /** Key/value pairs for selecting/filtering config entries */ + labels?: Record | null; + /** Key name identifying the config entry */ + name?: string | null; + /** Integration provider slug (e.g. mailgun, postgres). Used by the UI to group config entries by integration. No FK. */ + provider?: string | null; + /** Optional discriminator scoping this value under its name. NULL = the default/unqualified value; getters fall back from an exact realm match to the NULL-realm row. */ + realm?: string | null; + updatedAt?: string | null; + /** Plaintext config value */ + value?: string | null; +} +export interface InternalSecret { + annotations?: Record | null; + createdAt?: string | null; + databaseId?: string | null; + description?: string | null; + id: string; + labels?: Record | null; + name?: string | null; + realm?: string | null; + retiredAt?: string | null; + rotatedAt?: string | null; + updatedAt?: string | null; +} /** Namespace-backed plaintext key-value config store (like a k8s ConfigMap); admin-only, fully CRUD-exposed */ export interface PlatformConfig { /** Freeform metadata for tooling and operational notes */ annotations?: Record | null; createdAt?: string | null; + createdByPrincipal?: string | null; /** Human-readable note about this config entry */ description?: string | null; /** Optional expiration timestamp for time-limited config entries */ @@ -280,6 +333,30 @@ export interface PlatformConfig { /** Optional discriminator scoping this value under its name. NULL = the default/unqualified value; getters fall back from an exact realm match to the NULL-realm row. */ realm?: string | null; updatedAt?: string | null; + updatedByPrincipal?: string | null; + /** Plaintext config value */ + value?: string | null; +} +/** platform-level plaintext key-value config store; database-resident, never projected into Kubernetes */ +export interface PlatformInternalConfig { + /** Freeform metadata for tooling and operational notes */ + annotations?: Record | null; + createdAt?: string | null; + /** Human-readable note about this config entry */ + description?: string | null; + /** Optional expiration timestamp for time-limited config entries */ + expiresAt?: string | null; + /** Unique identifier for this config entry */ + id: string; + /** Key/value pairs for selecting/filtering config entries */ + labels?: Record | null; + /** Key name identifying the config entry */ + name?: string | null; + /** Integration provider slug (e.g. mailgun, postgres). Used by the UI to group config entries by integration. No FK. */ + provider?: string | null; + /** Optional discriminator scoping this value under its name. NULL = the default/unqualified value; getters fall back from an exact realm match to the NULL-realm row. */ + realm?: string | null; + updatedAt?: string | null; /** Plaintext config value */ value?: string | null; } @@ -290,7 +367,6 @@ export interface PlatformInternalSecret { id: string; labels?: Record | null; name?: string | null; - namespaceId?: string | null; realm?: string | null; retiredAt?: string | null; rotatedAt?: string | null; @@ -338,22 +414,44 @@ export interface PageInfo { endCursor?: string | null; } // ============ Entity Relation Types ============ +export interface AppInternalSecretRelations {} export interface ConfigRelations {} +export interface InternalConfigRelations {} +export interface InternalSecretRelations {} export interface PlatformConfigRelations {} +export interface PlatformInternalConfigRelations {} export interface PlatformInternalSecretRelations {} export interface PlatformSecretRelations {} export interface SecretRelations {} // ============ Entity Types With Relations ============ +export type AppInternalSecretWithRelations = AppInternalSecret & AppInternalSecretRelations; export type ConfigWithRelations = Config & ConfigRelations; +export type InternalConfigWithRelations = InternalConfig & InternalConfigRelations; +export type InternalSecretWithRelations = InternalSecret & InternalSecretRelations; export type PlatformConfigWithRelations = PlatformConfig & PlatformConfigRelations; +export type PlatformInternalConfigWithRelations = PlatformInternalConfig & + PlatformInternalConfigRelations; export type PlatformInternalSecretWithRelations = PlatformInternalSecret & PlatformInternalSecretRelations; export type PlatformSecretWithRelations = PlatformSecret & PlatformSecretRelations; export type SecretWithRelations = Secret & SecretRelations; // ============ Entity Select Types ============ +export type AppInternalSecretSelect = { + annotations?: boolean; + createdAt?: boolean; + description?: boolean; + id?: boolean; + labels?: boolean; + name?: boolean; + realm?: boolean; + retiredAt?: boolean; + rotatedAt?: boolean; + updatedAt?: boolean; +}; export type ConfigSelect = { annotations?: boolean; createdAt?: boolean; + createdByPrincipal?: boolean; databaseId?: boolean; description?: boolean; expiresAt?: boolean; @@ -364,11 +462,40 @@ export type ConfigSelect = { provider?: boolean; realm?: boolean; updatedAt?: boolean; + updatedByPrincipal?: boolean; value?: boolean; }; +export type InternalConfigSelect = { + annotations?: boolean; + createdAt?: boolean; + databaseId?: boolean; + description?: boolean; + expiresAt?: boolean; + id?: boolean; + labels?: boolean; + name?: boolean; + provider?: boolean; + realm?: boolean; + updatedAt?: boolean; + value?: boolean; +}; +export type InternalSecretSelect = { + annotations?: boolean; + createdAt?: boolean; + databaseId?: boolean; + description?: boolean; + id?: boolean; + labels?: boolean; + name?: boolean; + realm?: boolean; + retiredAt?: boolean; + rotatedAt?: boolean; + updatedAt?: boolean; +}; export type PlatformConfigSelect = { annotations?: boolean; createdAt?: boolean; + createdByPrincipal?: boolean; description?: boolean; expiresAt?: boolean; id?: boolean; @@ -378,6 +505,20 @@ export type PlatformConfigSelect = { provider?: boolean; realm?: boolean; updatedAt?: boolean; + updatedByPrincipal?: boolean; + value?: boolean; +}; +export type PlatformInternalConfigSelect = { + annotations?: boolean; + createdAt?: boolean; + description?: boolean; + expiresAt?: boolean; + id?: boolean; + labels?: boolean; + name?: boolean; + provider?: boolean; + realm?: boolean; + updatedAt?: boolean; value?: boolean; }; export type PlatformInternalSecretSelect = { @@ -387,7 +528,6 @@ export type PlatformInternalSecretSelect = { id?: boolean; labels?: boolean; name?: boolean; - namespaceId?: boolean; realm?: boolean; retiredAt?: boolean; rotatedAt?: boolean; @@ -423,6 +563,34 @@ export type SecretSelect = { updatedAt?: boolean; }; // ============ Table Filter Types ============ +export interface AppInternalSecretFilter { + /** Checks for all expressions in this list. */ + and?: AppInternalSecretFilter[]; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: AppInternalSecretFilter; + /** Checks for any expressions in this list. */ + or?: AppInternalSecretFilter[]; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; + /** Filter by the object’s `retiredAt` field. */ + retiredAt?: DatetimeFilter; + /** Filter by the object’s `rotatedAt` field. */ + rotatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} export interface ConfigFilter { /** Checks for all expressions in this list. */ and?: ConfigFilter[]; @@ -430,6 +598,8 @@ export interface ConfigFilter { annotations?: JSONFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; /** Filter by the object’s `description` field. */ @@ -454,9 +624,73 @@ export interface ConfigFilter { realm?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** Filter by the object’s `value` field. */ + value?: StringFilter; +} +export interface InternalConfigFilter { + /** Checks for all expressions in this list. */ + and?: InternalConfigFilter[]; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** 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 `expiresAt` field. */ + expiresAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: InternalConfigFilter; + /** Checks for any expressions in this list. */ + or?: InternalConfigFilter[]; + /** Filter by the object’s `provider` field. */ + provider?: StringFilter; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; /** Filter by the object’s `value` field. */ value?: StringFilter; } +export interface InternalSecretFilter { + /** Checks for all expressions in this list. */ + and?: InternalSecretFilter[]; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** 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 `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: InternalSecretFilter; + /** Checks for any expressions in this list. */ + or?: InternalSecretFilter[]; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; + /** Filter by the object’s `retiredAt` field. */ + retiredAt?: DatetimeFilter; + /** Filter by the object’s `rotatedAt` field. */ + rotatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} export interface PlatformConfigFilter { /** Checks for all expressions in this list. */ and?: PlatformConfigFilter[]; @@ -464,6 +698,8 @@ export interface PlatformConfigFilter { annotations?: JSONFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `description` field. */ description?: StringFilter; /** Filter by the object’s `expiresAt` field. */ @@ -486,6 +722,38 @@ export interface PlatformConfigFilter { realm?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** Filter by the object’s `value` field. */ + value?: StringFilter; +} +export interface PlatformInternalConfigFilter { + /** Checks for all expressions in this list. */ + and?: PlatformInternalConfigFilter[]; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: PlatformInternalConfigFilter; + /** Checks for any expressions in this list. */ + or?: PlatformInternalConfigFilter[]; + /** Filter by the object’s `provider` field. */ + provider?: StringFilter; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; /** Filter by the object’s `value` field. */ value?: StringFilter; } @@ -504,8 +772,6 @@ export interface PlatformInternalSecretFilter { labels?: JSONFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; /** Negates the expression. */ not?: PlatformInternalSecretFilter; /** Checks for any expressions in this list. */ @@ -586,11 +852,35 @@ export interface SecretFilter { updatedAt?: DatetimeFilter; } // ============ OrderBy Types ============ +export type AppInternalSecretOrderBy = + | 'ANNOTATIONS_ASC' + | 'ANNOTATIONS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'LABELS_ASC' + | 'LABELS_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'REALM_ASC' + | 'REALM_DESC' + | 'RETIRED_AT_ASC' + | 'RETIRED_AT_DESC' + | 'ROTATED_AT_ASC' + | 'ROTATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; export type ConfigOrderBy = | 'ANNOTATIONS_ASC' | 'ANNOTATIONS_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'DESCRIPTION_ASC' @@ -614,13 +904,69 @@ export type ConfigOrderBy = | 'REALM_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC' + | 'VALUE_ASC' + | 'VALUE_DESC'; +export type InternalConfigOrderBy = + | 'ANNOTATIONS_ASC' + | 'ANNOTATIONS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'EXPIRES_AT_ASC' + | 'EXPIRES_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'LABELS_ASC' + | 'LABELS_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PROVIDER_ASC' + | 'PROVIDER_DESC' + | 'REALM_ASC' + | 'REALM_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' | 'VALUE_ASC' | 'VALUE_DESC'; +export type InternalSecretOrderBy = + | 'ANNOTATIONS_ASC' + | 'ANNOTATIONS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'LABELS_ASC' + | 'LABELS_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'REALM_ASC' + | 'REALM_DESC' + | 'RETIRED_AT_ASC' + | 'RETIRED_AT_DESC' + | 'ROTATED_AT_ASC' + | 'ROTATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; export type PlatformConfigOrderBy = | 'ANNOTATIONS_ASC' | 'ANNOTATIONS_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' | 'EXPIRES_AT_ASC' @@ -642,6 +988,34 @@ export type PlatformConfigOrderBy = | 'REALM_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC' + | 'VALUE_ASC' + | 'VALUE_DESC'; +export type PlatformInternalConfigOrderBy = + | 'ANNOTATIONS_ASC' + | 'ANNOTATIONS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'EXPIRES_AT_ASC' + | 'EXPIRES_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'LABELS_ASC' + | 'LABELS_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PROVIDER_ASC' + | 'PROVIDER_DESC' + | 'REALM_ASC' + | 'REALM_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' | 'VALUE_ASC' | 'VALUE_DESC'; export type PlatformInternalSecretOrderBy = @@ -655,8 +1029,6 @@ export type PlatformInternalSecretOrderBy = | 'ID_DESC' | 'LABELS_ASC' | 'LABELS_DESC' - | 'NAMESPACE_ID_ASC' - | 'NAMESPACE_ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'NATURAL' @@ -723,39 +1095,139 @@ export type SecretOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; // ============ CRUD Input Types ============ +export interface CreateAppInternalSecretInput { + clientMutationId?: string; + appInternalSecret: { + annotations?: Record; + description?: string; + labels?: Record; + name?: string; + realm?: string; + retiredAt?: string; + rotatedAt?: string; + }; +} +export interface AppInternalSecretPatch { + annotations?: Record | null; + description?: string | null; + labels?: Record | null; + name?: string | null; + realm?: string | null; + retiredAt?: string | null; + rotatedAt?: string | null; +} +export interface UpdateAppInternalSecretInput { + clientMutationId?: string; + id: string; + appInternalSecretPatch: AppInternalSecretPatch; +} +export interface DeleteAppInternalSecretInput { + clientMutationId?: string; + id: string; +} export interface CreateConfigInput { clientMutationId?: string; - config: { + config: { + annotations?: Record; + createdByPrincipal?: string; + databaseId: string; + description?: string; + expiresAt?: string; + labels?: Record; + name: string; + namespaceId: string; + provider?: string; + realm?: string; + updatedByPrincipal?: string; + value?: string; + }; +} +export interface ConfigPatch { + annotations?: Record | null; + createdByPrincipal?: string | null; + databaseId?: string | null; + description?: string | null; + expiresAt?: string | null; + labels?: Record | null; + name?: string | null; + namespaceId?: string | null; + provider?: string | null; + realm?: string | null; + updatedByPrincipal?: string | null; + value?: string | null; +} +export interface UpdateConfigInput { + clientMutationId?: string; + id: string; + configPatch: ConfigPatch; +} +export interface DeleteConfigInput { + clientMutationId?: string; + id: string; +} +export interface CreateInternalConfigInput { + clientMutationId?: string; + internalConfig: { annotations?: Record; databaseId: string; description?: string; expiresAt?: string; labels?: Record; name: string; - namespaceId: string; provider?: string; realm?: string; value?: string; }; } -export interface ConfigPatch { +export interface InternalConfigPatch { annotations?: Record | null; databaseId?: string | null; description?: string | null; expiresAt?: string | null; labels?: Record | null; name?: string | null; - namespaceId?: string | null; provider?: string | null; realm?: string | null; value?: string | null; } -export interface UpdateConfigInput { +export interface UpdateInternalConfigInput { clientMutationId?: string; id: string; - configPatch: ConfigPatch; + internalConfigPatch: InternalConfigPatch; } -export interface DeleteConfigInput { +export interface DeleteInternalConfigInput { + clientMutationId?: string; + id: string; +} +export interface CreateInternalSecretInput { + clientMutationId?: string; + internalSecret: { + annotations?: Record; + databaseId: string; + description?: string; + labels?: Record; + name?: string; + realm?: string; + retiredAt?: string; + rotatedAt?: string; + }; +} +export interface InternalSecretPatch { + annotations?: Record | null; + databaseId?: string | null; + description?: string | null; + labels?: Record | null; + name?: string | null; + realm?: string | null; + retiredAt?: string | null; + rotatedAt?: string | null; +} +export interface UpdateInternalSecretInput { + clientMutationId?: string; + id: string; + internalSecretPatch: InternalSecretPatch; +} +export interface DeleteInternalSecretInput { clientMutationId?: string; id: string; } @@ -763,6 +1235,7 @@ export interface CreatePlatformConfigInput { clientMutationId?: string; platformConfig: { annotations?: Record; + createdByPrincipal?: string; description?: string; expiresAt?: string; labels?: Record; @@ -770,11 +1243,13 @@ export interface CreatePlatformConfigInput { namespaceId: string; provider?: string; realm?: string; + updatedByPrincipal?: string; value?: string; }; } export interface PlatformConfigPatch { annotations?: Record | null; + createdByPrincipal?: string | null; description?: string | null; expiresAt?: string | null; labels?: Record | null; @@ -782,6 +1257,7 @@ export interface PlatformConfigPatch { namespaceId?: string | null; provider?: string | null; realm?: string | null; + updatedByPrincipal?: string | null; value?: string | null; } export interface UpdatePlatformConfigInput { @@ -793,6 +1269,38 @@ export interface DeletePlatformConfigInput { clientMutationId?: string; id: string; } +export interface CreatePlatformInternalConfigInput { + clientMutationId?: string; + platformInternalConfig: { + annotations?: Record; + description?: string; + expiresAt?: string; + labels?: Record; + name: string; + provider?: string; + realm?: string; + value?: string; + }; +} +export interface PlatformInternalConfigPatch { + annotations?: Record | null; + description?: string | null; + expiresAt?: string | null; + labels?: Record | null; + name?: string | null; + provider?: string | null; + realm?: string | null; + value?: string | null; +} +export interface UpdatePlatformInternalConfigInput { + clientMutationId?: string; + id: string; + platformInternalConfigPatch: PlatformInternalConfigPatch; +} +export interface DeletePlatformInternalConfigInput { + clientMutationId?: string; + id: string; +} export interface CreatePlatformInternalSecretInput { clientMutationId?: string; platformInternalSecret: { @@ -800,7 +1308,6 @@ export interface CreatePlatformInternalSecretInput { description?: string; labels?: Record; name?: string; - namespaceId: string; realm?: string; retiredAt?: string; rotatedAt?: string; @@ -811,7 +1318,6 @@ export interface PlatformInternalSecretPatch { description?: string | null; labels?: Record | null; name?: string | null; - namespaceId?: string | null; realm?: string | null; retiredAt?: string | null; rotatedAt?: string | null; @@ -898,6 +1404,34 @@ export interface DeleteSecretInput { // ============ Connection Fields Map ============ export const connectionFieldsMap = {} as Record>; // ============ Custom Input Types (from schema) ============ +export interface _InternalSecretsDelInput { + clientMutationId?: string; + databaseId?: string; + realm?: string; + secretName?: string; +} +export interface _InternalSecretsRemoveArrayInput { + clientMutationId?: string; + databaseId?: string; + realm?: string; + secretNames?: string[]; +} +export interface _InternalSecretsRotateInput { + algo?: string; + clientMutationId?: string; + databaseId?: string; + realm?: string; + secretName?: string; + secretValue?: string; +} +export interface _InternalSecretsSetInput { + algo?: string; + clientMutationId?: string; + scopeDatabaseId?: string; + secretName?: string; + secretRealm?: string; + secretValue?: string; +} export interface _SecretsDelInput { clientMutationId?: string; databaseId?: string; @@ -931,22 +1465,43 @@ export interface _SecretsSetInput { secretRealm?: string; secretValue?: string; } +export interface AppInternalSecretsDelInput { + clientMutationId?: string; + realm?: string; + secretName?: string; +} +export interface AppInternalSecretsRemoveArrayInput { + clientMutationId?: string; + realm?: string; + secretNames?: string[]; +} +export interface AppInternalSecretsRotateInput { + algo?: string; + clientMutationId?: string; + realm?: string; + secretName?: string; + secretValue?: string; +} +export interface AppInternalSecretsSetInput { + algo?: string; + clientMutationId?: string; + secretName?: string; + secretRealm?: string; + secretValue?: string; +} export interface PlatformInternalSecretsDelInput { clientMutationId?: string; - namespaceId?: string; realm?: string; secretName?: string; } export interface PlatformInternalSecretsRemoveArrayInput { clientMutationId?: string; - namespaceId?: string; realm?: string; secretNames?: string[]; } export interface PlatformInternalSecretsRotateInput { algo?: string; clientMutationId?: string; - namespaceId?: string; realm?: string; secretName?: string; secretValue?: string; @@ -955,7 +1510,6 @@ export interface PlatformInternalSecretsSetInput { algo?: string; clientMutationId?: string; secretName?: string; - secretNamespaceId?: string; secretRealm?: string; secretValue?: string; } @@ -1002,6 +1556,7 @@ export interface ConfigInput { /** Freeform metadata for tooling and operational notes */ annotations?: Record; createdAt?: string; + createdByPrincipal?: string; /** Database that owns this resource (database-scoped isolation) */ databaseId: string; /** Human-readable note about this config entry */ @@ -1021,6 +1576,32 @@ export interface ConfigInput { /** Optional discriminator scoping this value under its name. NULL = the default/unqualified value; getters fall back from an exact realm match to the NULL-realm row. */ realm?: string; updatedAt?: string; + updatedByPrincipal?: string; + /** Plaintext config value */ + value?: string; +} +/** An input for mutations affecting `InternalConfig` */ +export interface InternalConfigInput { + /** Freeform metadata for tooling and operational notes */ + annotations?: Record; + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Human-readable note about this config entry */ + description?: string; + /** Optional expiration timestamp for time-limited config entries */ + expiresAt?: string; + /** Unique identifier for this config entry */ + id?: string; + /** Key/value pairs for selecting/filtering config entries */ + labels?: Record; + /** Key name identifying the config entry */ + name: string; + /** Integration provider slug (e.g. mailgun, postgres). Used by the UI to group config entries by integration. No FK. */ + provider?: string; + /** Optional discriminator scoping this value under its name. NULL = the default/unqualified value; getters fall back from an exact realm match to the NULL-realm row. */ + realm?: string; + updatedAt?: string; /** Plaintext config value */ value?: string; } @@ -1029,6 +1610,7 @@ export interface PlatformConfigInput { /** Freeform metadata for tooling and operational notes */ annotations?: Record; createdAt?: string; + createdByPrincipal?: string; /** Human-readable note about this config entry */ description?: string; /** Optional expiration timestamp for time-limited config entries */ @@ -1046,10 +1628,62 @@ export interface PlatformConfigInput { /** Optional discriminator scoping this value under its name. NULL = the default/unqualified value; getters fall back from an exact realm match to the NULL-realm row. */ realm?: string; updatedAt?: string; + updatedByPrincipal?: string; + /** Plaintext config value */ + value?: string; +} +/** An input for mutations affecting `PlatformInternalConfig` */ +export interface PlatformInternalConfigInput { + /** Freeform metadata for tooling and operational notes */ + annotations?: Record; + createdAt?: string; + /** Human-readable note about this config entry */ + description?: string; + /** Optional expiration timestamp for time-limited config entries */ + expiresAt?: string; + /** Unique identifier for this config entry */ + id?: string; + /** Key/value pairs for selecting/filtering config entries */ + labels?: Record; + /** Key name identifying the config entry */ + name: string; + /** Integration provider slug (e.g. mailgun, postgres). Used by the UI to group config entries by integration. No FK. */ + provider?: string; + /** Optional discriminator scoping this value under its name. NULL = the default/unqualified value; getters fall back from an exact realm match to the NULL-realm row. */ + realm?: string; + updatedAt?: string; /** Plaintext config value */ value?: string; } // ============ Payload/Return Types (for custom operations) ============ +export interface _InternalSecretsDelPayload { + clientMutationId?: string | null; +} +export type _InternalSecretsDelPayloadSelect = { + clientMutationId?: boolean; +}; +export interface _InternalSecretsRemoveArrayPayload { + clientMutationId?: string | null; +} +export type _InternalSecretsRemoveArrayPayloadSelect = { + clientMutationId?: boolean; +}; +export interface _InternalSecretsRotatePayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type _InternalSecretsRotatePayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface _InternalSecretsSetPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type _InternalSecretsSetPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; export interface _SecretsDelPayload { clientMutationId?: string | null; } @@ -1078,6 +1712,34 @@ export type _SecretsSetPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface AppInternalSecretsDelPayload { + clientMutationId?: string | null; +} +export type AppInternalSecretsDelPayloadSelect = { + clientMutationId?: boolean; +}; +export interface AppInternalSecretsRemoveArrayPayload { + clientMutationId?: string | null; +} +export type AppInternalSecretsRemoveArrayPayloadSelect = { + clientMutationId?: boolean; +}; +export interface AppInternalSecretsRotatePayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type AppInternalSecretsRotatePayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface AppInternalSecretsSetPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type AppInternalSecretsSetPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; export interface PlatformInternalSecretsDelPayload { clientMutationId?: string | null; } @@ -1135,26 +1797,19 @@ export type PlatformSecretsSetPayloadSelect = { 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; + /** The logical bucket row that was queued for reconciliation. */ + bucketId: string; + bucketKey: string; + /** The reconciler job enqueued to provision this bucket. */ + jobId: string; + /** The physical bucket name already recorded, or null when reconciliation has not completed. */ + physicalName?: string | null; } export type ProvisionBucketPayloadSelect = { - accessType?: boolean; - bucketName?: boolean; - endpoint?: boolean; - error?: boolean; - provider?: boolean; - success?: boolean; + bucketId?: boolean; + bucketKey?: boolean; + jobId?: boolean; + physicalName?: boolean; }; export interface CreateConfigPayload { clientMutationId?: string | null; @@ -1201,6 +1856,51 @@ export type DeleteConfigPayloadSelect = { select: ConfigEdgeSelect; }; }; +export interface CreateInternalConfigPayload { + clientMutationId?: string | null; + /** The `InternalConfig` that was created by this mutation. */ + internalConfig?: InternalConfig | null; + internalConfigEdge?: InternalConfigEdge | null; +} +export type CreateInternalConfigPayloadSelect = { + clientMutationId?: boolean; + internalConfig?: { + select: InternalConfigSelect; + }; + internalConfigEdge?: { + select: InternalConfigEdgeSelect; + }; +}; +export interface UpdateInternalConfigPayload { + clientMutationId?: string | null; + /** The `InternalConfig` that was updated by this mutation. */ + internalConfig?: InternalConfig | null; + internalConfigEdge?: InternalConfigEdge | null; +} +export type UpdateInternalConfigPayloadSelect = { + clientMutationId?: boolean; + internalConfig?: { + select: InternalConfigSelect; + }; + internalConfigEdge?: { + select: InternalConfigEdgeSelect; + }; +}; +export interface DeleteInternalConfigPayload { + clientMutationId?: string | null; + /** The `InternalConfig` that was deleted by this mutation. */ + internalConfig?: InternalConfig | null; + internalConfigEdge?: InternalConfigEdge | null; +} +export type DeleteInternalConfigPayloadSelect = { + clientMutationId?: boolean; + internalConfig?: { + select: InternalConfigSelect; + }; + internalConfigEdge?: { + select: InternalConfigEdgeSelect; + }; +}; export interface CreatePlatformConfigPayload { clientMutationId?: string | null; /** The `PlatformConfig` that was created by this mutation. */ @@ -1246,6 +1946,51 @@ export type DeletePlatformConfigPayloadSelect = { select: PlatformConfigEdgeSelect; }; }; +export interface CreatePlatformInternalConfigPayload { + clientMutationId?: string | null; + /** The `PlatformInternalConfig` that was created by this mutation. */ + platformInternalConfig?: PlatformInternalConfig | null; + platformInternalConfigEdge?: PlatformInternalConfigEdge | null; +} +export type CreatePlatformInternalConfigPayloadSelect = { + clientMutationId?: boolean; + platformInternalConfig?: { + select: PlatformInternalConfigSelect; + }; + platformInternalConfigEdge?: { + select: PlatformInternalConfigEdgeSelect; + }; +}; +export interface UpdatePlatformInternalConfigPayload { + clientMutationId?: string | null; + /** The `PlatformInternalConfig` that was updated by this mutation. */ + platformInternalConfig?: PlatformInternalConfig | null; + platformInternalConfigEdge?: PlatformInternalConfigEdge | null; +} +export type UpdatePlatformInternalConfigPayloadSelect = { + clientMutationId?: boolean; + platformInternalConfig?: { + select: PlatformInternalConfigSelect; + }; + platformInternalConfigEdge?: { + select: PlatformInternalConfigEdgeSelect; + }; +}; +export interface DeletePlatformInternalConfigPayload { + clientMutationId?: string | null; + /** The `PlatformInternalConfig` that was deleted by this mutation. */ + platformInternalConfig?: PlatformInternalConfig | null; + platformInternalConfigEdge?: PlatformInternalConfigEdge | null; +} +export type DeletePlatformInternalConfigPayloadSelect = { + clientMutationId?: boolean; + platformInternalConfig?: { + select: PlatformInternalConfigSelect; + }; + platformInternalConfigEdge?: { + select: PlatformInternalConfigEdgeSelect; + }; +}; /** A `Config` edge in the connection. */ export interface ConfigEdge { cursor?: string | null; @@ -1258,6 +2003,18 @@ export type ConfigEdgeSelect = { select: ConfigSelect; }; }; +/** A `InternalConfig` edge in the connection. */ +export interface InternalConfigEdge { + cursor?: string | null; + /** The `InternalConfig` at the end of the edge. */ + node?: InternalConfig | null; +} +export type InternalConfigEdgeSelect = { + cursor?: boolean; + node?: { + select: InternalConfigSelect; + }; +}; /** A `PlatformConfig` edge in the connection. */ export interface PlatformConfigEdge { cursor?: string | null; @@ -1270,3 +2027,15 @@ export type PlatformConfigEdgeSelect = { select: PlatformConfigSelect; }; }; +/** A `PlatformInternalConfig` edge in the connection. */ +export interface PlatformInternalConfigEdge { + cursor?: string | null; + /** The `PlatformInternalConfig` at the end of the edge. */ + node?: PlatformInternalConfig | null; +} +export type PlatformInternalConfigEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformInternalConfigSelect; + }; +}; diff --git a/sdk/constructive-cli/src/config/orm/models/appInternalSecret.ts b/sdk/constructive-cli/src/config/orm/models/appInternalSecret.ts new file mode 100644 index 0000000000..6efc1ad009 --- /dev/null +++ b/sdk/constructive-cli/src/config/orm/models/appInternalSecret.ts @@ -0,0 +1,174 @@ +/** + * AppInternalSecret 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 { + AppInternalSecret, + AppInternalSecretWithRelations, + AppInternalSecretSelect, + AppInternalSecretFilter, + AppInternalSecretOrderBy, + CreateAppInternalSecretInput, + UpdateAppInternalSecretInput, + AppInternalSecretPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class AppInternalSecretModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + appInternalSecrets: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'AppInternalSecret', + 'appInternalSecrets', + 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, + }, + 'AppInternalSecretFilter', + 'AppInternalSecretOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppInternalSecret', + fieldName: 'appInternalSecrets', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + appInternalSecret: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'AppInternalSecret', + 'appInternalSecrets', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'AppInternalSecretFilter', + 'AppInternalSecretOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppInternalSecret', + fieldName: 'appInternalSecret', + document, + variables, + transform: (data: { + appInternalSecrets?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + appInternalSecret: data.appInternalSecrets?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + appInternalSecret: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'AppInternalSecret', + 'appInternalSecrets', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'AppInternalSecretFilter', + 'AppInternalSecretOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppInternalSecret', + fieldName: 'appInternalSecret', + document, + variables, + transform: (data: { + appInternalSecrets?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + appInternalSecret: data.appInternalSecrets?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createAppInternalSecret: { + appInternalSecret: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'AppInternalSecret', + 'createAppInternalSecret', + 'appInternalSecret', + args.select, + args.data, + 'CreateAppInternalSecretInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppInternalSecret', + fieldName: 'createAppInternalSecret', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/config/orm/models/index.ts b/sdk/constructive-cli/src/config/orm/models/index.ts index 0823cce0ad..7862d62ac4 100644 --- a/sdk/constructive-cli/src/config/orm/models/index.ts +++ b/sdk/constructive-cli/src/config/orm/models/index.ts @@ -3,8 +3,12 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ +export { AppInternalSecretModel } from './appInternalSecret'; export { ConfigModel } from './config'; +export { InternalConfigModel } from './internalConfig'; +export { InternalSecretModel } from './internalSecret'; export { PlatformConfigModel } from './platformConfig'; +export { PlatformInternalConfigModel } from './platformInternalConfig'; export { PlatformInternalSecretModel } from './platformInternalSecret'; export { PlatformSecretModel } from './platformSecret'; export { SecretModel } from './secret'; diff --git a/sdk/constructive-cli/src/config/orm/models/internalConfig.ts b/sdk/constructive-cli/src/config/orm/models/internalConfig.ts new file mode 100644 index 0000000000..9314de2fea --- /dev/null +++ b/sdk/constructive-cli/src/config/orm/models/internalConfig.ts @@ -0,0 +1,245 @@ +/** + * InternalConfig 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 { + InternalConfig, + InternalConfigWithRelations, + InternalConfigSelect, + InternalConfigFilter, + InternalConfigOrderBy, + CreateInternalConfigInput, + UpdateInternalConfigInput, + InternalConfigPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class InternalConfigModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + internalConfigs: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'InternalConfig', + 'internalConfigs', + 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, + }, + 'InternalConfigFilter', + 'InternalConfigOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InternalConfig', + fieldName: 'internalConfigs', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + internalConfig: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'InternalConfig', + 'internalConfigs', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'InternalConfigFilter', + 'InternalConfigOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InternalConfig', + fieldName: 'internalConfig', + document, + variables, + transform: (data: { + internalConfigs?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + internalConfig: data.internalConfigs?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + internalConfig: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'InternalConfig', + 'internalConfigs', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'InternalConfigFilter', + 'InternalConfigOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InternalConfig', + fieldName: 'internalConfig', + document, + variables, + transform: (data: { + internalConfigs?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + internalConfig: data.internalConfigs?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createInternalConfig: { + internalConfig: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'InternalConfig', + 'createInternalConfig', + 'internalConfig', + args.select, + args.data, + 'CreateInternalConfigInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InternalConfig', + fieldName: 'createInternalConfig', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + InternalConfigPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateInternalConfig: { + internalConfig: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'InternalConfig', + 'updateInternalConfig', + 'internalConfig', + args.select, + args.where.id, + args.data, + 'UpdateInternalConfigInput', + 'id', + 'internalConfigPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InternalConfig', + fieldName: 'updateInternalConfig', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteInternalConfig: { + internalConfig: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'InternalConfig', + 'deleteInternalConfig', + 'internalConfig', + { + id: args.where.id, + }, + 'DeleteInternalConfigInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InternalConfig', + fieldName: 'deleteInternalConfig', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/config/orm/models/internalSecret.ts b/sdk/constructive-cli/src/config/orm/models/internalSecret.ts new file mode 100644 index 0000000000..daeef23c68 --- /dev/null +++ b/sdk/constructive-cli/src/config/orm/models/internalSecret.ts @@ -0,0 +1,174 @@ +/** + * InternalSecret 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 { + InternalSecret, + InternalSecretWithRelations, + InternalSecretSelect, + InternalSecretFilter, + InternalSecretOrderBy, + CreateInternalSecretInput, + UpdateInternalSecretInput, + InternalSecretPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class InternalSecretModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + internalSecrets: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'InternalSecret', + 'internalSecrets', + 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, + }, + 'InternalSecretFilter', + 'InternalSecretOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InternalSecret', + fieldName: 'internalSecrets', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + internalSecret: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'InternalSecret', + 'internalSecrets', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'InternalSecretFilter', + 'InternalSecretOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InternalSecret', + fieldName: 'internalSecret', + document, + variables, + transform: (data: { + internalSecrets?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + internalSecret: data.internalSecrets?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + internalSecret: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'InternalSecret', + 'internalSecrets', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'InternalSecretFilter', + 'InternalSecretOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InternalSecret', + fieldName: 'internalSecret', + document, + variables, + transform: (data: { + internalSecrets?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + internalSecret: data.internalSecrets?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createInternalSecret: { + internalSecret: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'InternalSecret', + 'createInternalSecret', + 'internalSecret', + args.select, + args.data, + 'CreateInternalSecretInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InternalSecret', + fieldName: 'createInternalSecret', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/config/orm/models/platformInternalConfig.ts b/sdk/constructive-cli/src/config/orm/models/platformInternalConfig.ts new file mode 100644 index 0000000000..6cb941483f --- /dev/null +++ b/sdk/constructive-cli/src/config/orm/models/platformInternalConfig.ts @@ -0,0 +1,247 @@ +/** + * PlatformInternalConfig 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 { + PlatformInternalConfig, + PlatformInternalConfigWithRelations, + PlatformInternalConfigSelect, + PlatformInternalConfigFilter, + PlatformInternalConfigOrderBy, + CreatePlatformInternalConfigInput, + UpdatePlatformInternalConfigInput, + PlatformInternalConfigPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformInternalConfigModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformInternalConfigs: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformInternalConfig', + 'platformInternalConfigs', + 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, + }, + 'PlatformInternalConfigFilter', + 'PlatformInternalConfigOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformInternalConfig', + fieldName: 'platformInternalConfigs', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformInternalConfig: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformInternalConfig', + 'platformInternalConfigs', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformInternalConfigFilter', + 'PlatformInternalConfigOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformInternalConfig', + fieldName: 'platformInternalConfig', + document, + variables, + transform: (data: { + platformInternalConfigs?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformInternalConfig: data.platformInternalConfigs?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformInternalConfig: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformInternalConfig', + 'platformInternalConfigs', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformInternalConfigFilter', + 'PlatformInternalConfigOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformInternalConfig', + fieldName: 'platformInternalConfig', + document, + variables, + transform: (data: { + platformInternalConfigs?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformInternalConfig: data.platformInternalConfigs?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformInternalConfig: { + platformInternalConfig: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformInternalConfig', + 'createPlatformInternalConfig', + 'platformInternalConfig', + args.select, + args.data, + 'CreatePlatformInternalConfigInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformInternalConfig', + fieldName: 'createPlatformInternalConfig', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformInternalConfigPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformInternalConfig: { + platformInternalConfig: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformInternalConfig', + 'updatePlatformInternalConfig', + 'platformInternalConfig', + args.select, + args.where.id, + args.data, + 'UpdatePlatformInternalConfigInput', + 'id', + 'platformInternalConfigPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformInternalConfig', + fieldName: 'updatePlatformInternalConfig', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformInternalConfig: { + platformInternalConfig: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformInternalConfig', + 'deletePlatformInternalConfig', + 'platformInternalConfig', + { + id: args.where.id, + }, + 'DeletePlatformInternalConfigInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformInternalConfig', + fieldName: 'deletePlatformInternalConfig', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/config/orm/mutation/index.ts b/sdk/constructive-cli/src/config/orm/mutation/index.ts index 13353608c7..d91b8c1e29 100644 --- a/sdk/constructive-cli/src/config/orm/mutation/index.ts +++ b/sdk/constructive-cli/src/config/orm/mutation/index.ts @@ -7,10 +7,18 @@ import { OrmClient } from '../client'; import { QueryBuilder, buildCustomDocument } from '../query-builder'; import type { InferSelectResult, StrictSelect } from '../select-types'; import type { + _InternalSecretsDelInput, + _InternalSecretsRemoveArrayInput, + _InternalSecretsRotateInput, + _InternalSecretsSetInput, _SecretsDelInput, _SecretsRemoveArrayInput, _SecretsRotateInput, _SecretsSetInput, + AppInternalSecretsDelInput, + AppInternalSecretsRemoveArrayInput, + AppInternalSecretsRotateInput, + AppInternalSecretsSetInput, PlatformInternalSecretsDelInput, PlatformInternalSecretsRemoveArrayInput, PlatformInternalSecretsRotateInput, @@ -20,10 +28,18 @@ import type { PlatformSecretsRotateInput, PlatformSecretsSetInput, ProvisionBucketInput, + _InternalSecretsDelPayload, + _InternalSecretsRemoveArrayPayload, + _InternalSecretsRotatePayload, + _InternalSecretsSetPayload, _SecretsDelPayload, _SecretsRemoveArrayPayload, _SecretsRotatePayload, _SecretsSetPayload, + AppInternalSecretsDelPayload, + AppInternalSecretsRemoveArrayPayload, + AppInternalSecretsRotatePayload, + AppInternalSecretsSetPayload, PlatformInternalSecretsDelPayload, PlatformInternalSecretsRemoveArrayPayload, PlatformInternalSecretsRotatePayload, @@ -33,10 +49,18 @@ import type { PlatformSecretsRotatePayload, PlatformSecretsSetPayload, ProvisionBucketPayload, + _InternalSecretsDelPayloadSelect, + _InternalSecretsRemoveArrayPayloadSelect, + _InternalSecretsRotatePayloadSelect, + _InternalSecretsSetPayloadSelect, _SecretsDelPayloadSelect, _SecretsRemoveArrayPayloadSelect, _SecretsRotatePayloadSelect, _SecretsSetPayloadSelect, + AppInternalSecretsDelPayloadSelect, + AppInternalSecretsRemoveArrayPayloadSelect, + AppInternalSecretsRotatePayloadSelect, + AppInternalSecretsSetPayloadSelect, PlatformInternalSecretsDelPayloadSelect, PlatformInternalSecretsRemoveArrayPayloadSelect, PlatformInternalSecretsRotatePayloadSelect, @@ -48,6 +72,18 @@ import type { ProvisionBucketPayloadSelect, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; +export interface _internalSecretsDelVariables { + input: _InternalSecretsDelInput; +} +export interface _internalSecretsRemoveArrayVariables { + input: _InternalSecretsRemoveArrayInput; +} +export interface _internalSecretsRotateVariables { + input: _InternalSecretsRotateInput; +} +export interface _internalSecretsSetVariables { + input: _InternalSecretsSetInput; +} export interface _secretsDelVariables { input: _SecretsDelInput; } @@ -60,6 +96,18 @@ export interface _secretsRotateVariables { export interface _secretsSetVariables { input: _SecretsSetInput; } +export interface AppInternalSecretsDelVariables { + input: AppInternalSecretsDelInput; +} +export interface AppInternalSecretsRemoveArrayVariables { + input: AppInternalSecretsRemoveArrayInput; +} +export interface AppInternalSecretsRotateVariables { + input: AppInternalSecretsRotateInput; +} +export interface AppInternalSecretsSetVariables { + input: AppInternalSecretsSetInput; +} export interface PlatformInternalSecretsDelVariables { input: PlatformInternalSecretsDelInput; } @@ -86,16 +134,136 @@ export interface PlatformSecretsSetVariables { } /** * Variables for provisionBucket - * 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. + * Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. */ export interface ProvisionBucketVariables { input: ProvisionBucketInput; } export function createMutationOperations(client: OrmClient) { return { + _internalSecretsDel: ( + args: _internalSecretsDelVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + _internalSecretsDel: InferSelectResult<_InternalSecretsDelPayload, S> | null; + }>({ + client, + operation: 'mutation', + operationName: '_internalSecretsDel', + fieldName: '_internalSecretsDel', + ...buildCustomDocument( + 'mutation', + '_internalSecretsDel', + '_internalSecretsDel', + options.select, + args, + [ + { + name: 'input', + type: '_InternalSecretsDelInput!', + }, + ], + connectionFieldsMap, + '_InternalSecretsDelPayload' + ), + }), + _internalSecretsRemoveArray: ( + args: _internalSecretsRemoveArrayVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + _internalSecretsRemoveArray: InferSelectResult< + _InternalSecretsRemoveArrayPayload, + S + > | null; + }>({ + client, + operation: 'mutation', + operationName: '_internalSecretsRemoveArray', + fieldName: '_internalSecretsRemoveArray', + ...buildCustomDocument( + 'mutation', + '_internalSecretsRemoveArray', + '_internalSecretsRemoveArray', + options.select, + args, + [ + { + name: 'input', + type: '_InternalSecretsRemoveArrayInput!', + }, + ], + connectionFieldsMap, + '_InternalSecretsRemoveArrayPayload' + ), + }), + _internalSecretsRotate: ( + args: _internalSecretsRotateVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + _internalSecretsRotate: InferSelectResult<_InternalSecretsRotatePayload, S> | null; + }>({ + client, + operation: 'mutation', + operationName: '_internalSecretsRotate', + fieldName: '_internalSecretsRotate', + ...buildCustomDocument( + 'mutation', + '_internalSecretsRotate', + '_internalSecretsRotate', + options.select, + args, + [ + { + name: 'input', + type: '_InternalSecretsRotateInput!', + }, + ], + connectionFieldsMap, + '_InternalSecretsRotatePayload' + ), + }), + _internalSecretsSet: ( + args: _internalSecretsSetVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + _internalSecretsSet: InferSelectResult<_InternalSecretsSetPayload, S> | null; + }>({ + client, + operation: 'mutation', + operationName: '_internalSecretsSet', + fieldName: '_internalSecretsSet', + ...buildCustomDocument( + 'mutation', + '_internalSecretsSet', + '_internalSecretsSet', + options.select, + args, + [ + { + name: 'input', + type: '_InternalSecretsSetInput!', + }, + ], + connectionFieldsMap, + '_InternalSecretsSetPayload' + ), + }), _secretsDel: ( args: _secretsDelVariables, options: { @@ -212,6 +380,125 @@ export function createMutationOperations(client: OrmClient) { '_SecretsSetPayload' ), }), + appInternalSecretsDel: ( + args: AppInternalSecretsDelVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + appInternalSecretsDel: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'AppInternalSecretsDel', + fieldName: 'appInternalSecretsDel', + ...buildCustomDocument( + 'mutation', + 'AppInternalSecretsDel', + 'appInternalSecretsDel', + options.select, + args, + [ + { + name: 'input', + type: 'AppInternalSecretsDelInput!', + }, + ], + connectionFieldsMap, + 'AppInternalSecretsDelPayload' + ), + }), + appInternalSecretsRemoveArray: ( + args: AppInternalSecretsRemoveArrayVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + appInternalSecretsRemoveArray: InferSelectResult< + AppInternalSecretsRemoveArrayPayload, + S + > | null; + }>({ + client, + operation: 'mutation', + operationName: 'AppInternalSecretsRemoveArray', + fieldName: 'appInternalSecretsRemoveArray', + ...buildCustomDocument( + 'mutation', + 'AppInternalSecretsRemoveArray', + 'appInternalSecretsRemoveArray', + options.select, + args, + [ + { + name: 'input', + type: 'AppInternalSecretsRemoveArrayInput!', + }, + ], + connectionFieldsMap, + 'AppInternalSecretsRemoveArrayPayload' + ), + }), + appInternalSecretsRotate: ( + args: AppInternalSecretsRotateVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + appInternalSecretsRotate: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'AppInternalSecretsRotate', + fieldName: 'appInternalSecretsRotate', + ...buildCustomDocument( + 'mutation', + 'AppInternalSecretsRotate', + 'appInternalSecretsRotate', + options.select, + args, + [ + { + name: 'input', + type: 'AppInternalSecretsRotateInput!', + }, + ], + connectionFieldsMap, + 'AppInternalSecretsRotatePayload' + ), + }), + appInternalSecretsSet: ( + args: AppInternalSecretsSetVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + appInternalSecretsSet: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'AppInternalSecretsSet', + fieldName: 'appInternalSecretsSet', + ...buildCustomDocument( + 'mutation', + 'AppInternalSecretsSet', + 'appInternalSecretsSet', + options.select, + args, + [ + { + name: 'input', + type: 'AppInternalSecretsSetInput!', + }, + ], + connectionFieldsMap, + 'AppInternalSecretsSetPayload' + ), + }), platformInternalSecretsDel: ( args: PlatformInternalSecretsDelVariables, options: { diff --git a/sdk/constructive-cli/src/index.ts b/sdk/constructive-cli/src/index.ts index f64a72cd39..791f57df63 100644 --- a/sdk/constructive-cli/src/index.ts +++ b/sdk/constructive-cli/src/index.ts @@ -15,4 +15,6 @@ export * as config from './config'; export * as infra from './infra'; export * as modules from './modules'; export * as objects from './objects'; +export * as remote from './remote'; +export * as storage from './storage'; export * as usage from './usage'; diff --git a/sdk/constructive-cli/src/infra/README.md b/sdk/constructive-cli/src/infra/README.md index 5bf4bbfc93..98fbc21d9e 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 261858124f..cb1b240b23 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,11 +39,15 @@ 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 | -| `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. | +| `platform-infra-set-many-and-commit` | platformInfraSetManyAndCommit | +| `provision-bucket` | Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. | ## Infrastructure Commands @@ -85,6 +90,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. @@ -135,6 +172,7 @@ CRUD operations for Namespace records. | Field | Type | |-------|------| | `annotations` | JSON | +| `clusterId` | UUID | | `createdAt` | Datetime | | `databaseId` | UUID | | `description` | String | @@ -149,7 +187,7 @@ CRUD operations for Namespace records. | `updatedAt` | Datetime | **Required create fields:** `databaseId`, `name`, `namespaceName` -**Optional create fields (backend defaults):** `annotations`, `description`, `isActive`, `isManaged`, `labels`, `lastError`, `status` +**Optional create fields (backend defaults):** `annotations`, `clusterId`, `description`, `isActive`, `isManaged`, `labels`, `lastError`, `status` ### `namespace-event` @@ -329,6 +367,7 @@ CRUD operations for PlatformNamespace records. | Field | Type | |-------|------| | `annotations` | JSON | +| `clusterId` | UUID | | `createdAt` | Datetime | | `description` | String | | `id` | UUID | @@ -342,7 +381,7 @@ CRUD operations for PlatformNamespace records. | `updatedAt` | Datetime | **Required create fields:** `name`, `namespaceName` -**Optional create fields (backend defaults):** `annotations`, `description`, `isActive`, `isManaged`, `labels`, `lastError`, `status` +**Optional create fields (backend defaults):** `annotations`, `clusterId`, `description`, `isActive`, `isManaged`, `labels`, `lastError`, `status` ### `platform-namespace-event` @@ -404,6 +443,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,12 +494,29 @@ 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. -Reads the bucket config via RLS, then creates and configures -the S3 bucket with the appropriate privacy policies, CORS rules, -and lifecycle settings. +Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. - **Type:** mutation - **Arguments:** diff --git a/sdk/constructive-cli/src/infra/cli/commands.ts b/sdk/constructive-cli/src/infra/cli/commands.ts index 9b61cfeec5..e274b094ee 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 Reconcile an S3 bucket for a logical bucket in the database.\nReads the bucket config via RLS, then enqueues the same\nstorage:provision_bucket job used by the INSERT trigger. This is\nidempotent for an already-reconciled bucket; enqueue failures become\nGraphQL errors.\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/infra/cli/commands/content-preset.ts b/sdk/constructive-cli/src/infra/cli/commands/content-preset.ts new file mode 100644 index 0000000000..806af4a770 --- /dev/null +++ b/sdk/constructive-cli/src/infra/cli/commands/content-preset.ts @@ -0,0 +1,413 @@ +/** + * CLI commands for ContentPreset + * @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 { + CreateContentPresetInput, + ContentPresetPatch, + ContentPresetSelect, + ContentPresetFilter, + ContentPresetOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + active: 'boolean', + commitId: 'uuid', + createdAt: 'string', + definition: 'json', + description: 'string', + id: 'uuid', + kind: 'string', + label: 'string', + slug: 'string', + storeId: 'uuid', + updatedAt: 'string', +}; +const usage = + '\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, + _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 = { + active: true, + commitId: true, + createdAt: true, + definition: true, + description: true, + id: true, + kind: true, + label: true, + slug: true, + storeId: true, + updatedAt: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: ContentPresetSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.contentPreset.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 = { + active: true, + commitId: true, + createdAt: true, + definition: true, + description: true, + id: true, + kind: true, + label: true, + slug: true, + storeId: true, + updatedAt: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: ContentPresetSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.contentPreset.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.contentPreset + .findOne({ + id: answers.id as string, + select: { + active: true, + commitId: true, + createdAt: true, + definition: true, + description: true, + id: true, + kind: true, + label: true, + slug: true, + storeId: 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: 'boolean', + name: 'active', + message: 'active', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'commitId', + message: 'commitId', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'definition', + message: 'definition', + required: true, + }, + { + type: 'text', + name: 'description', + message: 'description', + required: false, + skipPrompt: true, + }, + { + type: 'text', + 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, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateContentPresetInput['contentPreset']; + const client = getClient(); + const result = await client.contentPreset + .create({ + data: { + active: cleanedData.active, + commitId: cleanedData.commitId, + definition: cleanedData.definition, + description: cleanedData.description, + kind: cleanedData.kind, + label: cleanedData.label, + slug: cleanedData.slug, + storeId: cleanedData.storeId, + }, + select: { + active: true, + commitId: true, + createdAt: true, + definition: true, + description: true, + id: true, + kind: true, + label: true, + slug: true, + storeId: 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: 'boolean', + name: 'active', + message: 'active', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'commitId', + message: 'commitId', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'definition', + message: 'definition', + required: false, + }, + { + type: 'text', + name: 'description', + message: 'description', + required: false, + skipPrompt: true, + }, + { + type: 'text', + 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 ContentPresetPatch; + const client = getClient(); + const result = await client.contentPreset + .update({ + where: { + id: answers.id as string, + }, + data: { + active: cleanedData.active, + commitId: cleanedData.commitId, + definition: cleanedData.definition, + description: cleanedData.description, + kind: cleanedData.kind, + label: cleanedData.label, + slug: cleanedData.slug, + storeId: cleanedData.storeId, + }, + select: { + active: true, + commitId: true, + createdAt: true, + definition: true, + description: true, + id: true, + kind: true, + label: true, + slug: true, + storeId: 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.contentPreset + .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/infra/cli/commands/namespace.ts b/sdk/constructive-cli/src/infra/cli/commands/namespace.ts index 8250becd02..c7f3d5839e 100644 --- a/sdk/constructive-cli/src/infra/cli/commands/namespace.ts +++ b/sdk/constructive-cli/src/infra/cli/commands/namespace.ts @@ -17,6 +17,7 @@ import type { import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { annotations: 'json', + clusterId: 'uuid', createdAt: 'string', databaseId: 'uuid', description: 'string', @@ -82,6 +83,7 @@ async function handleList(argv: Partial>, _prompter: Inq try { const defaultSelect = { annotations: true, + clusterId: true, createdAt: true, databaseId: true, description: true, @@ -115,6 +117,7 @@ async function handleFindFirst(argv: Partial>, _prompter try { const defaultSelect = { annotations: true, + clusterId: true, createdAt: true, databaseId: true, description: true, @@ -160,6 +163,7 @@ async function handleGet(argv: Partial>, prompter: Inqui id: answers.id as string, select: { annotations: true, + clusterId: true, createdAt: true, databaseId: true, description: true, @@ -194,6 +198,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'clusterId', + message: 'clusterId', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'databaseId', @@ -262,6 +273,7 @@ async function handleCreate(argv: Partial>, prompter: In .create({ data: { annotations: cleanedData.annotations, + clusterId: cleanedData.clusterId, databaseId: cleanedData.databaseId, description: cleanedData.description, isActive: cleanedData.isActive, @@ -274,6 +286,7 @@ async function handleCreate(argv: Partial>, prompter: In }, select: { annotations: true, + clusterId: true, createdAt: true, databaseId: true, description: true, @@ -314,6 +327,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'clusterId', + message: 'clusterId', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'databaseId', @@ -385,6 +405,7 @@ async function handleUpdate(argv: Partial>, prompter: In }, data: { annotations: cleanedData.annotations, + clusterId: cleanedData.clusterId, databaseId: cleanedData.databaseId, description: cleanedData.description, isActive: cleanedData.isActive, @@ -397,6 +418,7 @@ async function handleUpdate(argv: Partial>, prompter: In }, select: { annotations: true, + clusterId: true, createdAt: true, databaseId: true, description: true, 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/cli/commands/platform-namespace.ts b/sdk/constructive-cli/src/infra/cli/commands/platform-namespace.ts index e005043d68..113b116862 100644 --- a/sdk/constructive-cli/src/infra/cli/commands/platform-namespace.ts +++ b/sdk/constructive-cli/src/infra/cli/commands/platform-namespace.ts @@ -17,6 +17,7 @@ import type { import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { annotations: 'json', + clusterId: 'uuid', createdAt: 'string', description: 'string', id: 'uuid', @@ -81,6 +82,7 @@ async function handleList(argv: Partial>, _prompter: Inq try { const defaultSelect = { annotations: true, + clusterId: true, createdAt: true, description: true, id: true, @@ -113,6 +115,7 @@ async function handleFindFirst(argv: Partial>, _prompter try { const defaultSelect = { annotations: true, + clusterId: true, createdAt: true, description: true, id: true, @@ -157,6 +160,7 @@ async function handleGet(argv: Partial>, prompter: Inqui id: answers.id as string, select: { annotations: true, + clusterId: true, createdAt: true, description: true, id: true, @@ -190,6 +194,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'clusterId', + message: 'clusterId', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'description', @@ -255,6 +266,7 @@ async function handleCreate(argv: Partial>, prompter: In .create({ data: { annotations: cleanedData.annotations, + clusterId: cleanedData.clusterId, description: cleanedData.description, isActive: cleanedData.isActive, isManaged: cleanedData.isManaged, @@ -266,6 +278,7 @@ async function handleCreate(argv: Partial>, prompter: In }, select: { annotations: true, + clusterId: true, createdAt: true, description: true, id: true, @@ -305,6 +318,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'clusterId', + message: 'clusterId', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'description', @@ -370,6 +390,7 @@ async function handleUpdate(argv: Partial>, prompter: In }, data: { annotations: cleanedData.annotations, + clusterId: cleanedData.clusterId, description: cleanedData.description, isActive: cleanedData.isActive, isManaged: cleanedData.isManaged, @@ -381,6 +402,7 @@ async function handleUpdate(argv: Partial>, prompter: In }, select: { annotations: true, + clusterId: true, createdAt: true, description: true, id: true, diff --git a/sdk/constructive-cli/src/infra/cli/commands/provision-bucket.ts b/sdk/constructive-cli/src/infra/cli/commands/provision-bucket.ts index ecd2e539d5..0c54313d78 100644 --- a/sdk/constructive-cli/src/infra/cli/commands/provision-bucket.ts +++ b/sdk/constructive-cli/src/infra/cli/commands/provision-bucket.ts @@ -16,7 +16,7 @@ export default async ( try { if (argv.help || argv.h) { console.log( - '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\nUsage: provision-bucket [OPTIONS]\n' + 'provision-bucket - Reconcile an S3 bucket for a logical bucket in the database.\nReads the bucket config via RLS, then enqueues the same\nstorage:provision_bucket job used by the INSERT trigger. This is\nidempotent for an already-reconciled bucket; enqueue failures become\nGraphQL errors.\n\nUsage: provision-bucket [OPTIONS]\n' ); process.exit(0); } diff --git a/sdk/constructive-cli/src/infra/orm/README.md b/sdk/constructive-cli/src/infra/orm/README.md index 34848edfdb..322c4f138f 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. @@ -82,6 +122,7 @@ CRUD operations for Namespace records. | Field | Type | Editable | |-------|------|----------| | `annotations` | JSON | Yes | +| `clusterId` | UUID | Yes | | `createdAt` | Datetime | No | | `databaseId` | UUID | Yes | | `description` | String | Yes | @@ -99,13 +140,13 @@ CRUD operations for Namespace records. ```typescript // List all namespace records -const items = await db.namespace.findMany({ select: { annotations: true, createdAt: true, databaseId: true, description: true, id: true, isActive: true, isManaged: true, labels: true, lastError: true, name: true, namespaceName: true, status: true, updatedAt: true } }).execute(); +const items = await db.namespace.findMany({ select: { annotations: true, clusterId: true, createdAt: true, databaseId: true, description: true, id: true, isActive: true, isManaged: true, labels: true, lastError: true, name: true, namespaceName: true, status: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.namespace.findOne({ id: '', select: { annotations: true, createdAt: true, databaseId: true, description: true, id: true, isActive: true, isManaged: true, labels: true, lastError: true, name: true, namespaceName: true, status: true, updatedAt: true } }).execute(); +const item = await db.namespace.findOne({ id: '', select: { annotations: true, clusterId: true, createdAt: true, databaseId: true, description: true, id: true, isActive: true, isManaged: true, labels: true, lastError: true, name: true, namespaceName: true, status: true, updatedAt: true } }).execute(); // Create -const created = await db.namespace.create({ data: { annotations: '', databaseId: '', description: '', isActive: '', isManaged: '', labels: '', lastError: '', name: '', namespaceName: '', status: '' }, select: { id: true } }).execute(); +const created = await db.namespace.create({ data: { annotations: '', clusterId: '', databaseId: '', description: '', isActive: '', isManaged: '', labels: '', lastError: '', name: '', namespaceName: '', status: '' }, select: { id: true } }).execute(); // Update const updated = await db.namespace.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); @@ -326,6 +367,7 @@ CRUD operations for PlatformNamespace records. | Field | Type | Editable | |-------|------|----------| | `annotations` | JSON | Yes | +| `clusterId` | UUID | Yes | | `createdAt` | Datetime | No | | `description` | String | Yes | | `id` | UUID | No | @@ -342,13 +384,13 @@ CRUD operations for PlatformNamespace records. ```typescript // List all platformNamespace records -const items = await db.platformNamespace.findMany({ select: { annotations: true, createdAt: true, description: true, id: true, isActive: true, isManaged: true, labels: true, lastError: true, name: true, namespaceName: true, status: true, updatedAt: true } }).execute(); +const items = await db.platformNamespace.findMany({ select: { annotations: true, clusterId: true, createdAt: true, description: true, id: true, isActive: true, isManaged: true, labels: true, lastError: true, name: true, namespaceName: true, status: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.platformNamespace.findOne({ id: '', select: { annotations: true, createdAt: true, description: true, id: true, isActive: true, isManaged: true, labels: true, lastError: true, name: true, namespaceName: true, status: true, updatedAt: true } }).execute(); +const item = await db.platformNamespace.findOne({ id: '', select: { annotations: true, clusterId: true, createdAt: true, description: true, id: true, isActive: true, isManaged: true, labels: true, lastError: true, name: true, namespaceName: true, status: true, updatedAt: true } }).execute(); // Create -const created = await db.platformNamespace.create({ data: { annotations: '', description: '', isActive: '', isManaged: '', labels: '', lastError: '', name: '', namespaceName: '', status: '' }, select: { id: true } }).execute(); +const created = await db.platformNamespace.create({ data: { annotations: '', clusterId: '', description: '', isActive: '', isManaged: '', labels: '', lastError: '', name: '', namespaceName: '', status: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformNamespace.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); @@ -424,6 +466,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,12 +511,28 @@ 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. -Reads the bucket config via RLS, then creates and configures -the S3 bucket with the appropriate privacy policies, CORS rules, -and lifecycle settings. +Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. - **Type:** mutation - **Arguments:** 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..d3a13bcb63 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; @@ -260,6 +285,8 @@ export interface DbPreset { export interface Namespace { /** Freeform metadata for tooling and operational notes */ annotations?: Record | null; + /** Cluster this namespace is projected onto; NULL = the cluster the reconciler runs in */ + clusterId?: string | null; createdAt?: string | null; /** Database that owns this resource (database-scoped isolation) */ databaseId?: string | null; @@ -284,7 +311,7 @@ export interface Namespace { } /** Namespace lifecycle events — audit log of creation, activation, deactivation, label changes */ export interface NamespaceEvent { - /** User who triggered this event (NULL for system/automated) */ + /** User who triggered this event; NULL only when no human actor was proven */ actorId?: string | null; /** Event timestamp (partition key) */ createdAt?: string | null; @@ -371,6 +398,8 @@ export interface PlatformInfraStore { export interface PlatformNamespace { /** Freeform metadata for tooling and operational notes */ annotations?: Record | null; + /** Cluster this namespace is projected onto; NULL = the cluster the reconciler runs in */ + clusterId?: string | null; createdAt?: string | null; /** Optional human-readable description of this namespace */ description?: string | null; @@ -393,7 +422,7 @@ export interface PlatformNamespace { } /** Namespace lifecycle events — audit log of creation, activation, deactivation, label changes */ export interface PlatformNamespaceEvent { - /** User who triggered this event (NULL for system/automated) */ + /** User who triggered this event; NULL only when no human actor was proven */ actorId?: string | null; /** Event timestamp (partition key) */ createdAt?: string | null; @@ -421,6 +450,7 @@ export interface PageInfo { endCursor?: string | null; } // ============ Entity Relation Types ============ +export interface ContentPresetRelations {} export interface DbPresetRelations {} export interface NamespaceRelations {} export interface NamespaceEventRelations {} @@ -432,6 +462,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 +476,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; @@ -460,6 +504,7 @@ export type DbPresetSelect = { }; export type NamespaceSelect = { annotations?: boolean; + clusterId?: boolean; createdAt?: boolean; databaseId?: boolean; description?: boolean; @@ -522,6 +567,7 @@ export type PlatformInfraStoreSelect = { }; export type PlatformNamespaceSelect = { annotations?: boolean; + clusterId?: boolean; createdAt?: boolean; description?: boolean; id?: boolean; @@ -544,6 +590,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; @@ -579,6 +655,8 @@ export interface NamespaceFilter { and?: NamespaceFilter[]; /** Filter by the object’s `annotations` field. */ annotations?: JSONFilter; + /** Filter by the object’s `clusterId` field. */ + clusterId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `databaseId` field. */ @@ -726,6 +804,8 @@ export interface PlatformNamespaceFilter { and?: PlatformNamespaceFilter[]; /** Filter by the object’s `annotations` field. */ annotations?: JSONFilter; + /** Filter by the object’s `clusterId` field. */ + clusterId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `description` field. */ @@ -776,6 +856,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' @@ -805,6 +911,8 @@ export type DbPresetOrderBy = export type NamespaceOrderBy = | 'ANNOTATIONS_ASC' | 'ANNOTATIONS_DESC' + | 'CLUSTER_ID_ASC' + | 'CLUSTER_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'DATABASE_ID_ASC' @@ -929,6 +1037,8 @@ export type PlatformInfraStoreOrderBy = export type PlatformNamespaceOrderBy = | 'ANNOTATIONS_ASC' | 'ANNOTATIONS_DESC' + | 'CLUSTER_ID_ASC' + | 'CLUSTER_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'DESCRIPTION_ASC' @@ -973,6 +1083,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: { @@ -1009,6 +1151,7 @@ export interface CreateNamespaceInput { clientMutationId?: string; namespace: { annotations?: Record; + clusterId?: string; databaseId: string; description?: string; isActive?: boolean; @@ -1022,6 +1165,7 @@ export interface CreateNamespaceInput { } export interface NamespacePatch { annotations?: Record | null; + clusterId?: string | null; databaseId?: string | null; description?: string | null; isActive?: boolean | null; @@ -1195,6 +1339,7 @@ export interface CreatePlatformNamespaceInput { clientMutationId?: string; platformNamespace: { annotations?: Record; + clusterId?: string; description?: string; isActive?: boolean; isManaged?: boolean; @@ -1207,6 +1352,7 @@ export interface CreatePlatformNamespaceInput { } export interface PlatformNamespacePatch { annotations?: Record | null; + clusterId?: string | null; description?: string | null; isActive?: boolean | null; isManaged?: boolean | null; @@ -1268,6 +1414,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 +1441,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 +1458,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 */ @@ -1313,6 +1512,8 @@ export interface DbPresetInput { export interface NamespaceInput { /** Freeform metadata for tooling and operational notes */ annotations?: Record; + /** Cluster this namespace is projected onto; NULL = the cluster the reconciler runs in */ + clusterId?: string; createdAt?: string; /** Database that owns this resource (database-scoped isolation) */ databaseId: string; @@ -1337,7 +1538,7 @@ export interface NamespaceInput { } /** An input for mutations affecting `NamespaceEvent` */ export interface NamespaceEventInput { - /** User who triggered this event (NULL for system/automated) */ + /** User who triggered this event; NULL only when no human actor was proven */ actorId?: string; /** Event timestamp (partition key) */ createdAt?: string; @@ -1420,6 +1621,8 @@ export interface PlatformInfraStoreInput { export interface PlatformNamespaceInput { /** Freeform metadata for tooling and operational notes */ annotations?: Record; + /** Cluster this namespace is projected onto; NULL = the cluster the reconciler runs in */ + clusterId?: string; createdAt?: string; /** Optional human-readable description of this namespace */ description?: string; @@ -1442,7 +1645,7 @@ export interface PlatformNamespaceInput { } /** An input for mutations affecting `PlatformNamespaceEvent` */ export interface PlatformNamespaceEventInput { - /** User who triggered this event (NULL for system/automated) */ + /** User who triggered this event; NULL only when no human actor was proven */ actorId?: string; /** Event timestamp (partition key) */ createdAt?: string; @@ -1472,6 +1675,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,27 +1705,79 @@ 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; - /** 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; + /** The logical bucket row that was queued for reconciliation. */ + bucketId: string; + bucketKey: string; + /** The reconciler job enqueued to provision this bucket. */ + jobId: string; + /** The physical bucket name already recorded, or null when reconciliation has not completed. */ + physicalName?: string | null; } export type ProvisionBucketPayloadSelect = { - accessType?: boolean; - bucketName?: boolean; - endpoint?: boolean; - error?: boolean; - provider?: boolean; - success?: boolean; + bucketId?: boolean; + bucketKey?: boolean; + jobId?: boolean; + physicalName?: 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; @@ -1907,6 +2184,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 +2244,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-cli/src/infra/orm/models/contentPreset.ts b/sdk/constructive-cli/src/infra/orm/models/contentPreset.ts new file mode 100644 index 0000000000..20242ccc78 --- /dev/null +++ b/sdk/constructive-cli/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-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..96dd8ca742 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,15 +36,25 @@ 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. -Reads the bucket config via RLS, then creates and configures -the S3 bucket with the appropriate privacy policies, CORS rules, -and lifecycle settings. + * Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. */ export interface ProvisionBucketVariables { input: ProvisionBucketInput; @@ -103,6 +122,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 +212,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 a9eae47fc8..dd4253b9c9 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:** 88 +- **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 231257ab06..c41944c3d6 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 | +| `cluster-module` | clusterModule 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,32 +53,37 @@ 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 | | `graph-execution-module` | graphExecutionModule CRUD operations | | `graph-module` | graphModule CRUD operations | | `hierarchy-module` | hierarchyModule CRUD operations | -| `http-route-module` | httpRouteModule CRUD operations | | `i-18-n-module` | i18NModule CRUD operations | | `identity-providers-module` | identityProvidersModule CRUD operations | +| `image-module` | imageModule CRUD operations | | `inference-log-module` | inferenceLogModule CRUD operations | | `infra-config-module` | infraConfigModule CRUD operations | | `infra-secrets-module` | infraSecretsModule CRUD operations | | `integration-providers-module` | integrationProvidersModule CRUD operations | +| `internal-config-module` | internalConfigModule CRUD operations | | `internal-secrets-module` | internalSecretsModule CRUD operations | | `invites-module` | invitesModule CRUD operations | +| `k-8-s-admission-module` | k8sAdmissionModule CRUD operations | | `limits-module` | limitsModule CRUD operations | +| `machine-module` | machineModule CRUD operations | | `membership-types-module` | membershipTypesModule CRUD operations | | `memberships-module` | membershipsModule CRUD operations | | `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 | @@ -83,10 +91,13 @@ csdk auth set-token | `rate-limit-meters-module` | rateLimitMetersModule CRUD operations | | `rate-limits-module` | rateLimitsModule CRUD operations | | `realtime-module` | realtimeModule CRUD operations | +| `refusal-log-module` | refusalLogModule CRUD operations | | `relation-provision` | relationProvision CRUD operations | +| `repository-module` | repositoryModule CRUD operations | | `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 +108,19 @@ 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. | +| `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). A table entry either names its table (table_name plus optional schema_name) or references one an installed module generated ("module": {"type": "agent", "scope": "org", "table": "message"}), which resolves through the module row's recorded table ids and raises when it matches nothing instead of creating an empty table. 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. | +| `provision-bucket` | Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. | ## Infrastructure Commands @@ -180,12 +184,18 @@ CRUD operations for AgentModule records. | `agentTableName` | String | | `apiName` | String | | `databaseId` | UUID | -| `defaultPermissions` | String | +| `defaultCapabilities` | String | +| `defaultVisibility` | String | | `entityField` | String | | `entityTableId` | UUID | +| `eventTableId` | UUID | +| `eventTableName` | String | | `hasAgents` | Boolean | +| `hasAttachments` | Boolean | | `hasPlans` | Boolean | +| `hasRepositoryResources` | Boolean | | `hasResources` | Boolean | +| `hasRuns` | Boolean | | `id` | UUID | | `messageTableId` | UUID | | `messageTableName` | String | @@ -202,19 +212,24 @@ CRUD operations for AgentModule records. | `promptsTableName` | String | | `provisions` | JSON | | `publicSchemaName` | String | +| `resourceRepositoryTableId` | UUID | +| `resourceRepositoryTableName` | String | | `resourceTableId` | UUID | | `resourceTableName` | String | | `resources` | JSON | +| `runTableId` | UUID | +| `runTableName` | String | | `schemaId` | UUID | | `scope` | String | -| `shared` | Boolean | | `taskTableId` | UUID | | `taskTableName` | String | | `threadTableId` | UUID | | `threadTableName` | String | +| `workspaceTableId` | UUID | +| `workspaceTableName` | 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`, `defaultVisibility`, `entityField`, `entityTableId`, `eventTableId`, `eventTableName`, `hasAgents`, `hasAttachments`, `hasPlans`, `hasRepositoryResources`, `hasResources`, `hasRuns`, `messageTableId`, `messageTableName`, `personaTableId`, `personaTableName`, `planTableId`, `planTableName`, `policies`, `prefix`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `promptsTableId`, `promptsTableName`, `provisions`, `publicSchemaName`, `resourceRepositoryTableId`, `resourceRepositoryTableName`, `resourceTableId`, `resourceTableName`, `resources`, `runTableId`, `runTableName`, `schemaId`, `taskTableId`, `taskTableName`, `threadTableId`, `threadTableName`, `workspaceTableId`, `workspaceTableName` ### `api-surface-module` @@ -244,7 +259,7 @@ CRUD operations for ApiSurfaceModule records. | `corsSettingsTableId` | UUID | | `corsSettingsTableName` | String | | `databaseId` | UUID | -| `defaultPermissions` | String | +| `defaultCapabilities` | String | | `entityField` | String | | `entityTableId` | UUID | | `id` | UUID | @@ -257,7 +272,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` @@ -279,11 +294,12 @@ CRUD operations for AppModule records. | `apiName` | String | | `appComponentsTableId` | UUID | | `appComponentsTableName` | String | +| `appStoreIdentitiesTableName` | String | | `appsTableId` | UUID | | `appsTableName` | String | | `catalogModuleId` | UUID | | `databaseId` | UUID | -| `defaultPermissions` | String | +| `defaultCapabilities` | String | | `entityField` | String | | `entityTableId` | UUID | | `id` | UUID | @@ -298,7 +314,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`, `appStoreIdentitiesTableName`, `appsTableId`, `appsTableName`, `catalogModuleId`, `defaultCapabilities`, `entityField`, `entityTableId`, `policies`, `prefix`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `provisions`, `publicSchemaName`, `schemaId` ### `billing-module` @@ -321,8 +337,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 +363,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` @@ -366,19 +382,34 @@ CRUD operations for BillingProviderModule records. | Field | Type | |-------|------| +| `activatePlanSubscriptionFunction` | String | | `apiName` | String | | `billingCustomersTableId` | UUID | | `billingCustomersTableName` | String | +| `billingDisputesTableId` | UUID | +| `billingDisputesTableName` | 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 | +| `getActivePlanPricingFunction` | String | +| `getBillingCustomerFunction` | String | +| `getBillingPriceFunction` | String | +| `getBillingProductFunction` | String | +| `getBillingSubscriptionFunction` | String | +| `getFallbackFreePlanFunction` | String | | `id` | UUID | +| `listPendingUsageSyncFunction` | String | +| `markUsageSyncedFunction` | String | | `prefix` | String | | `pricesTableId` | UUID | | `privateApiName` | String | @@ -386,11 +417,19 @@ CRUD operations for BillingProviderModule records. | `processBillingEventFunction` | String | | `productsTableId` | UUID | | `provider` | String | +| `recordDisputeFunction` | String | +| `recordRefundFunction` | String | | `schemaId` | UUID | | `subscriptionsTableId` | UUID | +| `sweepOverdueSubscriptionsFunction` | String | +| `upsertBillingCustomerFunction` | String | +| `upsertBillingPriceFunction` | String | +| `upsertBillingProductFunction` | String | +| `upsertBillingSubscriptionFunction` | String | +| `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):** `activatePlanSubscriptionFunction`, `apiName`, `billingCustomersTableId`, `billingCustomersTableName`, `billingDisputesTableId`, `billingDisputesTableName`, `billingInvoicesTableId`, `billingInvoicesTableName`, `billingPricesTableId`, `billingPricesTableName`, `billingProductsTableId`, `billingProductsTableName`, `billingRefundsTableId`, `billingRefundsTableName`, `billingSubscriptionsTableId`, `billingSubscriptionsTableName`, `billingWebhookEventsTableId`, `billingWebhookEventsTableName`, `getActivePlanPricingFunction`, `getBillingCustomerFunction`, `getBillingPriceFunction`, `getBillingProductFunction`, `getBillingSubscriptionFunction`, `getFallbackFreePlanFunction`, `listPendingUsageSyncFunction`, `markUsageSyncedFunction`, `prefix`, `pricesTableId`, `privateApiName`, `privateSchemaId`, `processBillingEventFunction`, `productsTableId`, `provider`, `recordDisputeFunction`, `recordRefundFunction`, `schemaId`, `subscriptionsTableId`, `sweepOverdueSubscriptionsFunction`, `upsertBillingCustomerFunction`, `upsertBillingPriceFunction`, `upsertBillingProductFunction`, `upsertBillingSubscriptionFunction`, `upsertInvoiceFunction` ### `blueprint` @@ -498,6 +537,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. @@ -518,24 +600,34 @@ CRUD operations for CatalogModule records. | `apiName` | String | | `apisTableId` | UUID | | `apisTableName` | String | +| `appStoreIdentitiesTableId` | UUID | +| `appStoreIdentitiesTableName` | 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 | | `functionsTableId` | UUID | | `functionsTableName` | String | | `id` | UUID | +| `imagesTableId` | UUID | +| `imagesTableName` | String | +| `managedDomainsTableId` | UUID | +| `managedDomainsTableName` | String | | `namespacesTableId` | UUID | | `namespacesTableName` | String | | `policies` | JSON | | `privateApiName` | String | | `provisions` | JSON | | `publicSchemaName` | String | +| `redirectsTableId` | UUID | +| `redirectsTableName` | String | | `resourceDefinitionsTableId` | UUID | | `resourceDefinitionsTableName` | String | | `resourceInstallationsTableId` | UUID | @@ -556,7 +648,55 @@ 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`, `appStoreIdentitiesTableId`, `appStoreIdentitiesTableName`, `appsTableId`, `appsTableName`, `bindingsTableId`, `bindingsTableName`, `bucketsTableId`, `bucketsTableName`, `defaultCapabilities`, `domainsTableId`, `domainsTableName`, `entityTableId`, `functionsTableId`, `functionsTableName`, `imagesTableId`, `imagesTableName`, `managedDomainsTableId`, `managedDomainsTableName`, `namespacesTableId`, `namespacesTableName`, `policies`, `privateApiName`, `provisions`, `publicSchemaName`, `redirectsTableId`, `redirectsTableName`, `resourceDefinitionsTableId`, `resourceDefinitionsTableName`, `resourceInstallationsTableId`, `resourceInstallationsTableName`, `resourcesTableId`, `resourcesTableName`, `schemaId`, `sitesAppLinksTableId`, `sitesAppLinksTableName`, `sitesDeepLinksTableId`, `sitesDeepLinksTableName`, `sitesErrorPagesTableId`, `sitesErrorPagesTableName`, `sitesTableId`, `sitesTableName`, `sitesWebConfigTableId`, `sitesWebConfigTableName` + +### `cluster-module` + +CRUD operations for ClusterModule records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all clusterModule records | +| `find-first` | Find first matching clusterModule record | +| `get` | Get a clusterModule by id | +| `create` | Create a new clusterModule | +| `update` | Update an existing clusterModule | +| `delete` | Delete a clusterModule | + +**Fields:** + +| Field | Type | +|-------|------| +| `apiName` | String | +| `clusterEventsTableId` | UUID | +| `clusterEventsTableName` | String | +| `clustersTableId` | UUID | +| `clustersTableName` | String | +| `databaseId` | UUID | +| `databasePlacementsTableId` | UUID | +| `databasePlacementsTableName` | String | +| `databaseServersTableId` | UUID | +| `databaseServersTableName` | String | +| `defaultCapabilities` | String | +| `entityField` | String | +| `id` | UUID | +| `partitionInterval` | String | +| `physicalDatabasesTableId` | UUID | +| `physicalDatabasesTableName` | String | +| `policies` | JSON | +| `prefix` | String | +| `premake` | Int | +| `privateApiName` | String | +| `privateSchemaId` | UUID | +| `privateSchemaName` | String | +| `provisions` | JSON | +| `publicSchemaName` | String | +| `retention` | String | +| `schemaId` | UUID | +| `scope` | String | + +**Required create fields:** `databaseId` +**Optional create fields (backend defaults):** `apiName`, `clusterEventsTableId`, `clusterEventsTableName`, `clustersTableId`, `clustersTableName`, `databasePlacementsTableId`, `databasePlacementsTableName`, `databaseServersTableId`, `databaseServersTableName`, `defaultCapabilities`, `entityField`, `partitionInterval`, `physicalDatabasesTableId`, `physicalDatabasesTableName`, `policies`, `prefix`, `premake`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `provisions`, `publicSchemaName`, `retention`, `schemaId`, `scope` ### `compute-log-module` @@ -575,13 +715,11 @@ CRUD operations for ComputeLogModule records. | Field | Type | |-------|------| -| `actorFkTableId` | UUID | | `apiName` | String | | `computeLogTableId` | UUID | | `computeLogTableName` | String | | `databaseId` | UUID | | `entityField` | String | -| `entityFkTableId` | UUID | | `id` | UUID | | `interval` | String | | `prefix` | String | @@ -591,26 +729,27 @@ CRUD operations for ComputeLogModule records. | `privateSchemaName` | String | | `publicSchemaName` | String | | `retention` | String | +| `rollupFunctionName` | String | | `schemaId` | UUID | | `scope` | String | | `usageSummaryTableId` | UUID | | `usageSummaryTableName` | String | **Required create fields:** `databaseId`, `scope` -**Optional create fields (backend defaults):** `actorFkTableId`, `apiName`, `computeLogTableId`, `computeLogTableName`, `entityField`, `entityFkTableId`, `interval`, `prefix`, `premake`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `publicSchemaName`, `retention`, `schemaId`, `usageSummaryTableId`, `usageSummaryTableName` +**Optional create fields (backend defaults):** `apiName`, `computeLogTableId`, `computeLogTableName`, `entityField`, `interval`, `prefix`, `premake`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `publicSchemaName`, `retention`, `rollupFunctionName`, `schemaId`, `usageSummaryTableId`, `usageSummaryTableName` -### `config-secrets-user-module` +### `connected-accounts-module` -CRUD operations for ConfigSecretsUserModule records. +CRUD operations for ConnectedAccountsModule records. | Subcommand | Description | |------------|-------------| -| `list` | List all configSecretsUserModule records | -| `find-first` | Find first matching configSecretsUserModule record | -| `get` | Get a configSecretsUserModule by id | -| `create` | Create a new configSecretsUserModule | -| `update` | Update an existing configSecretsUserModule | -| `delete` | Delete a configSecretsUserModule | +| `list` | List all connectedAccountsModule records | +| `find-first` | Find first matching connectedAccountsModule record | +| `get` | Get a connectedAccountsModule by id | +| `create` | Create a new connectedAccountsModule | +| `update` | Update an existing connectedAccountsModule | +| `delete` | Delete a connectedAccountsModule | **Fields:** @@ -618,45 +757,54 @@ CRUD operations for ConfigSecretsUserModule records. |-------|------| | `apiName` | String | | `databaseId` | UUID | -| `entityField` | String | | `id` | UUID | +| `ownerTableId` | UUID | | `privateApiName` | String | +| `privateSchemaId` | UUID | | `schemaId` | UUID | | `tableId` | UUID | | `tableName` | String | -**Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `apiName`, `entityField`, `privateApiName`, `schemaId`, `tableId`, `tableName` +**Required create fields:** `databaseId`, `tableName` +**Optional create fields (backend defaults):** `apiName`, `ownerTableId`, `privateApiName`, `privateSchemaId`, `schemaId`, `tableId` -### `connected-accounts-module` +### `content-preset-module` -CRUD operations for ConnectedAccountsModule records. +CRUD operations for ContentPresetModule records. | Subcommand | Description | |------------|-------------| -| `list` | List all connectedAccountsModule records | -| `find-first` | Find first matching connectedAccountsModule record | -| `get` | Get a connectedAccountsModule by id | -| `create` | Create a new connectedAccountsModule | -| `update` | Update an existing connectedAccountsModule | -| `delete` | Delete a connectedAccountsModule | +| `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 | -| `ownerTableId` | UUID | +| `merkleStoreModuleId` | UUID | +| `policies` | JSON | +| `prefix` | String | | `privateApiName` | String | | `privateSchemaId` | UUID | -| `schemaId` | UUID | -| `tableId` | UUID | -| `tableName` | String | +| `privateSchemaName` | String | +| `provisions` | JSON | +| `publicSchemaId` | UUID | +| `publicSchemaName` | String | +| `scope` | String | +| `storeName` | String | -**Required create fields:** `databaseId`, `tableName` -**Optional create fields (backend defaults):** `apiName`, `ownerTableId`, `privateApiName`, `privateSchemaId`, `schemaId`, `tableId` +**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` @@ -724,6 +872,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. @@ -742,6 +922,7 @@ CRUD operations for DatabaseProvisionModule records. | Field | Type | |-------|------| | `async` | Boolean | +| `bootstrapActorId` | UUID | | `bootstrapError` | String | | `bootstrapStatus` | String | | `bootstrapUser` | Boolean | @@ -762,7 +943,7 @@ CRUD operations for DatabaseProvisionModule records. | `updatedAt` | Datetime | **Required create fields:** `databaseName`, `domain`, `ownerId` -**Optional create fields (backend defaults):** `async`, `bootstrapError`, `bootstrapStatus`, `bootstrapUser`, `completedAt`, `databaseId`, `errorMessage`, `fulfilledAt`, `modules`, `options`, `sourceDatabaseId`, `status`, `subdomain` +**Optional create fields (backend defaults):** `async`, `bootstrapActorId`, `bootstrapError`, `bootstrapStatus`, `bootstrapUser`, `completedAt`, `databaseId`, `errorMessage`, `fulfilledAt`, `modules`, `options`, `sourceDatabaseId`, `status`, `subdomain` ### `database-settings-module` @@ -785,7 +966,7 @@ CRUD operations for DatabaseSettingsModule records. | `databaseId` | UUID | | `databaseSettingsTableId` | UUID | | `databaseSettingsTableName` | String | -| `defaultPermissions` | String | +| `defaultCapabilities` | String | | `entityField` | String | | `entityTableId` | UUID | | `id` | UUID | @@ -804,7 +985,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 +1111,7 @@ CRUD operations for DbUsageModule records. | `collectDbQueryStatsFunction` | String | | `collectDbTableStatsFunction` | String | | `databaseId` | UUID | -| `defaultPermissions` | String | +| `defaultCapabilities` | String | | `entityField` | String | | `id` | UUID | | `interval` | String | @@ -955,7 +1136,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 +1241,7 @@ CRUD operations for DomainModule records. | `apiName` | String | | `catalogModuleId` | UUID | | `databaseId` | UUID | -| `defaultPermissions` | String | +| `defaultCapabilities` | String | | `domainEventsTableId` | UUID | | `domainEventsTableName` | String | | `domainVerificationsTableId` | UUID | @@ -1083,7 +1264,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 +1419,7 @@ CRUD operations for EventsModule records. | `actorTableId` | UUID | | `apiName` | String | | `databaseId` | UUID | -| `defaultPermissions` | String | +| `defaultCapabilities` | String | | `entityField` | String | | `entityTableId` | UUID | | `eventAggregatesTableId` | UUID | @@ -1206,6 +1428,7 @@ CRUD operations for EventsModule records. | `eventTypesTableName` | String | | `eventsTableId` | UUID | | `eventsTableName` | String | +| `expireGrants` | String | | `grantAchievement` | String | | `id` | UUID | | `interval` | String | @@ -1222,9 +1445,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 +1459,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 +1516,7 @@ CRUD operations for FunctionDeploymentModule records. |-------|------| | `apiName` | String | | `databaseId` | UUID | -| `defaultPermissions` | String | +| `defaultCapabilities` | String | | `deploymentEventsTableId` | UUID | | `deploymentEventsTableName` | String | | `deploymentsTableId` | UUID | @@ -1280,7 +1537,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 +1560,7 @@ CRUD operations for FunctionInvocationModule records. | `attemptsTableId` | UUID | | `attemptsTableName` | String | | `databaseId` | UUID | -| `defaultPermissions` | String | +| `defaultCapabilities` | String | | `entityField` | String | | `entityTableId` | UUID | | `executionLogsTableId` | UUID | @@ -1322,7 +1579,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 +1603,7 @@ CRUD operations for FunctionModule records. | `bindingsTableName` | String | | `capabilityBindingsTableId` | UUID | | `databaseId` | UUID | -| `defaultPermissions` | String | +| `defaultCapabilities` | String | | `definitionsTableId` | UUID | | `definitionsTableName` | String | | `entityField` | String | @@ -1363,9 +1620,10 @@ CRUD operations for FunctionModule records. | `schedulesTableId` | UUID | | `schemaId` | UUID | | `scope` | String | +| `storageKey` | 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`, `storageKey` ### `graph-execution-module` @@ -1387,7 +1645,7 @@ CRUD operations for GraphExecutionModule records. | `apiName` | String | | `createdAt` | Datetime | | `databaseId` | UUID | -| `defaultPermissions` | String | +| `defaultCapabilities` | String | | `entityField` | String | | `entityTableId` | UUID | | `executionsTableId` | UUID | @@ -1409,7 +1667,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 +1689,7 @@ CRUD operations for GraphModule records. | `apiName` | String | | `createdAt` | Datetime | | `databaseId` | UUID | -| `defaultPermissions` | String | +| `defaultCapabilities` | String | | `entityField` | String | | `entityTableId` | UUID | | `graphsTableId` | UUID | @@ -1448,7 +1706,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 +1731,7 @@ CRUD operations for HierarchyModule records. | `chartEdgesTableName` | String | | `createdAt` | Datetime | | `databaseId` | UUID | -| `defaultPermissions` | String | +| `defaultCapabilities` | String | | `entityField` | String | | `entityTableId` | UUID | | `getManagersFunction` | String | @@ -1492,49 +1750,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` - -### `http-route-module` - -CRUD operations for HttpRouteModule records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all httpRouteModule records | -| `find-first` | Find first matching httpRouteModule record | -| `get` | Get a httpRouteModule by id | -| `create` | Create a new httpRouteModule | -| `update` | Update an existing httpRouteModule | -| `delete` | Delete a httpRouteModule | - -**Fields:** - -| Field | Type | -|-------|------| -| `apiName` | String | -| `databaseId` | UUID | -| `defaultPermissions` | String | -| `entityField` | String | -| `entityTableId` | UUID | -| `functionModuleId` | UUID | -| `httpRoutesTableId` | UUID | -| `httpRoutesTableName` | String | -| `id` | UUID | -| `policies` | JSON | -| `prefix` | String | -| `privateApiName` | String | -| `privateSchemaId` | UUID | -| `privateSchemaName` | String | -| `provisions` | JSON | -| `publicSchemaName` | String | -| `resolverFunctionName` | String | -| `resourceModuleId` | UUID | -| `schemaId` | UUID | -| `scope` | String | -| `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):** `chartEdgeGrantsTableId`, `chartEdgeGrantsTableName`, `chartEdgesTableId`, `chartEdgesTableName`, `defaultCapabilities`, `entityField`, `getManagersFunction`, `getSubordinatesFunction`, `hierarchySprtTableId`, `hierarchySprtTableName`, `isManagerOfFunction`, `prefix`, `privateSchemaId`, `privateSchemaName`, `rebuildHierarchyFunction`, `schemaId`, `sprtTableName` ### `i-18-n-module` @@ -1599,6 +1815,50 @@ CRUD operations for IdentityProvidersModule records. **Required create fields:** `databaseId`, `scope` **Optional create fields (backend defaults):** `apiName`, `entityField`, `entityTableId`, `prefix`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `publicSchemaName`, `schemaId`, `tableId`, `tableName` +### `image-module` + +CRUD operations for ImageModule records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all imageModule records | +| `find-first` | Find first matching imageModule record | +| `get` | Get a imageModule by id | +| `create` | Create a new imageModule | +| `update` | Update an existing imageModule | +| `delete` | Delete a imageModule | + +**Fields:** + +| Field | Type | +|-------|------| +| `apiName` | String | +| `databaseId` | UUID | +| `defaultCapabilities` | String | +| `entityField` | String | +| `entityTableId` | UUID | +| `id` | UUID | +| `imageGrantsTableId` | UUID | +| `imageGrantsTableName` | String | +| `imagesTableId` | UUID | +| `imagesTableName` | String | +| `policies` | JSON | +| `prefix` | String | +| `privateApiName` | String | +| `privateSchemaId` | UUID | +| `privateSchemaName` | String | +| `provisions` | JSON | +| `publicSchemaName` | String | +| `registriesTableId` | UUID | +| `registriesTableName` | String | +| `registryGrantsTableId` | UUID | +| `registryGrantsTableName` | String | +| `schemaId` | UUID | +| `scope` | String | + +**Required create fields:** `databaseId`, `scope` +**Optional create fields (backend defaults):** `apiName`, `defaultCapabilities`, `entityField`, `entityTableId`, `imageGrantsTableId`, `imageGrantsTableName`, `imagesTableId`, `imagesTableName`, `policies`, `prefix`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `provisions`, `publicSchemaName`, `registriesTableId`, `registriesTableName`, `registryGrantsTableId`, `registryGrantsTableName`, `schemaId` + ### `inference-log-module` CRUD operations for InferenceLogModule records. @@ -1616,11 +1876,9 @@ CRUD operations for InferenceLogModule records. | Field | Type | |-------|------| -| `actorFkTableId` | UUID | | `apiName` | String | | `databaseId` | UUID | | `entityField` | String | -| `entityFkTableId` | UUID | | `id` | UUID | | `inferenceLogTableId` | UUID | | `inferenceLogTableName` | String | @@ -1632,13 +1890,14 @@ CRUD operations for InferenceLogModule records. | `privateSchemaName` | String | | `publicSchemaName` | String | | `retention` | String | +| `rollupFunctionName` | String | | `schemaId` | UUID | | `scope` | String | | `usageSummaryTableId` | UUID | | `usageSummaryTableName` | String | **Required create fields:** `databaseId`, `scope` -**Optional create fields (backend defaults):** `actorFkTableId`, `apiName`, `entityField`, `entityFkTableId`, `inferenceLogTableId`, `inferenceLogTableName`, `interval`, `prefix`, `premake`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `publicSchemaName`, `retention`, `schemaId`, `usageSummaryTableId`, `usageSummaryTableName` +**Optional create fields (backend defaults):** `apiName`, `entityField`, `inferenceLogTableId`, `inferenceLogTableName`, `interval`, `prefix`, `premake`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `publicSchemaName`, `retention`, `rollupFunctionName`, `schemaId`, `usageSummaryTableId`, `usageSummaryTableName` ### `infra-config-module` @@ -1749,6 +2008,43 @@ CRUD operations for IntegrationProvidersModule records. **Required create fields:** `databaseId`, `scope` **Optional create fields (backend defaults):** `apiName`, `entityField`, `entityTableId`, `prefix`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `publicSchemaName`, `schemaId`, `tableId`, `tableName` +### `internal-config-module` + +CRUD operations for InternalConfigModule records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all internalConfigModule records | +| `find-first` | Find first matching internalConfigModule record | +| `get` | Get a internalConfigModule by id | +| `create` | Create a new internalConfigModule | +| `update` | Update an existing internalConfigModule | +| `delete` | Delete a internalConfigModule | + +**Fields:** + +| Field | Type | +|-------|------| +| `apiName` | String | +| `databaseId` | UUID | +| `entityField` | String | +| `entityTableId` | UUID | +| `id` | UUID | +| `internalConfigTableId` | UUID | +| `internalConfigTableName` | String | +| `policies` | JSON | +| `prefix` | String | +| `privateApiName` | String | +| `privateSchemaId` | UUID | +| `privateSchemaName` | String | +| `provisions` | JSON | +| `publicSchemaName` | String | +| `schemaId` | UUID | +| `scope` | String | + +**Required create fields:** `databaseId`, `scope` +**Optional create fields (backend defaults):** `apiName`, `entityField`, `entityTableId`, `internalConfigTableId`, `internalConfigTableName`, `policies`, `prefix`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `provisions`, `publicSchemaName`, `schemaId` + ### `internal-secrets-module` CRUD operations for InternalSecretsModule records. @@ -1826,6 +2122,45 @@ CRUD operations for InvitesModule records. **Required create fields:** `databaseId`, `scope` **Optional create fields (backend defaults):** `apiName`, `claimedInvitesTableId`, `claimedInvitesTableName`, `emailsTableId`, `entityField`, `entityTableId`, `invitesTableId`, `invitesTableName`, `prefix`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `publicSchemaName`, `schemaId`, `submitInviteCodeFunction`, `usersTableId` +### `k-8-s-admission-module` + +CRUD operations for K8sAdmissionModule records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all k8sAdmissionModule records | +| `find-first` | Find first matching k8sAdmissionModule record | +| `get` | Get a k8sAdmissionModule by id | +| `create` | Create a new k8sAdmissionModule | +| `update` | Update an existing k8sAdmissionModule | +| `delete` | Delete a k8sAdmissionModule | + +**Fields:** + +| Field | Type | +|-------|------| +| `apiName` | String | +| `createdAt` | Datetime | +| `databaseId` | UUID | +| `entityTableId` | UUID | +| `id` | UUID | +| `k8sResourceKindsTableId` | UUID | +| `k8sSpecRulesTableId` | 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`, `entityTableId`, `k8sResourceKindsTableId`, `k8sSpecRulesTableId`, `policies`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `provisions`, `publicSchemaId`, `publicSchemaName` + ### `limits-module` CRUD operations for LimitsModule records. @@ -1865,6 +2200,7 @@ CRUD operations for LimitsModule records. | `limitCreditsTableId` | UUID | | `limitDecrementFunction` | String | | `limitDecrementTrigger` | String | +| `limitDefaults` | JSON | | `limitIncrementFunction` | String | | `limitIncrementTrigger` | String | | `limitUpdateTrigger` | String | @@ -1882,7 +2218,52 @@ 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` + +### `machine-module` + +CRUD operations for MachineModule records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all machineModule records | +| `find-first` | Find first matching machineModule record | +| `get` | Get a machineModule by id | +| `create` | Create a new machineModule | +| `update` | Update an existing machineModule | +| `delete` | Delete a machineModule | + +**Fields:** + +| Field | Type | +|-------|------| +| `apiName` | String | +| `databaseId` | UUID | +| `defaultCapabilities` | String | +| `entityField` | String | +| `entityTableId` | UUID | +| `id` | UUID | +| `machineMessagesTableId` | UUID | +| `machineMessagesTableName` | String | +| `machineSessionsTableId` | UUID | +| `machineSessionsTableName` | String | +| `machinesTableId` | UUID | +| `machinesTableName` | String | +| `partitionInterval` | String | +| `policies` | JSON | +| `prefix` | String | +| `premake` | Int | +| `privateApiName` | String | +| `privateSchemaId` | UUID | +| `privateSchemaName` | String | +| `provisions` | JSON | +| `publicSchemaName` | String | +| `retention` | String | +| `schemaId` | UUID | +| `scope` | String | + +**Required create fields:** `databaseId`, `scope` +**Optional create fields (backend defaults):** `apiName`, `defaultCapabilities`, `entityField`, `entityTableId`, `machineMessagesTableId`, `machineMessagesTableName`, `machineSessionsTableId`, `machineSessionsTableName`, `machinesTableId`, `machinesTableName`, `partitionInterval`, `policies`, `prefix`, `premake`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `provisions`, `publicSchemaName`, `retention`, `schemaId` ### `membership-types-module` @@ -1933,9 +2314,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 +2342,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 +2352,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,14 +2372,15 @@ CRUD operations for MerkleStoreModule records. | Field | Type | |-------|------| | `apiName` | String | +| `capabilityKey` | String | | `commitTableId` | UUID | | `createdAt` | Datetime | | `databaseId` | UUID | | `entityField` | String | +| `entityTableId` | UUID | | `functionPrefix` | String | | `id` | UUID | | `objectTableId` | UUID | -| `permissionKey` | String | | `prefix` | String | | `privateApiName` | String | | `privateSchemaId` | UUID | @@ -2010,7 +2392,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`, `entityTableId`, `functionPrefix`, `objectTableId`, `prefix`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `publicSchemaName`, `refTableId`, `schemaId`, `storeTableId` ### `namespace-module` @@ -2031,7 +2413,7 @@ CRUD operations for NamespaceModule records. |-------|------| | `apiName` | String | | `databaseId` | UUID | -| `defaultPermissions` | String | +| `defaultCapabilities` | String | | `entityField` | String | | `entityTableId` | UUID | | `id` | UUID | @@ -2050,7 +2432,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 +2454,7 @@ CRUD operations for NotificationsModule records. | `apiName` | String | | `channelsTableId` | UUID | | `databaseId` | UUID | -| `defaultPermissions` | String | +| `defaultCapabilities` | String | | `deliveryLogTableId` | UUID | | `entityField` | String | | `hasChannels` | Boolean | @@ -2095,90 +2477,85 @@ 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` -### `pages-module` +### `oauth-requests-module` -CRUD operations for PagesModule records. +CRUD operations for OauthRequestsModule records. | Subcommand | Description | |------------|-------------| -| `list` | List all pagesModule records | -| `find-first` | Find first matching pagesModule record | -| `get` | Get a pagesModule by id | -| `create` | Create a new pagesModule | -| `update` | Update an existing pagesModule | -| `delete` | Delete a pagesModule | +| `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 | |-------|------| -| `apiName` | String | -| `createdAt` | Datetime | | `databaseId` | UUID | +| `entityField` | String | | `entityTableId` | UUID | | `id` | UUID | -| `merkleStoreModuleId` | UUID | -| `pagesTableId` | UUID | -| `policies` | JSON | +| `oauthAuthorizationRequestsTableId` | UUID | +| `oauthAuthorizationRequestsTableName` | String | +| `pendingIdentityLinksTableId` | UUID | +| `pendingIdentityLinksTableName` | String | | `prefix` | String | -| `privateApiName` | String | | `privateSchemaId` | UUID | | `privateSchemaName` | String | -| `provisions` | JSON | -| `publicSchemaId` | UUID | -| `publicSchemaName` | String | | `scope` | String | -| `siteSurfaceModuleId` | UUID | -| `sitesTableId` | UUID | -| `storeNamePrefix` | String | -**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` +**Required create fields:** `databaseId`, `scope` +**Optional create fields (backend defaults):** `entityField`, `entityTableId`, `oauthAuthorizationRequestsTableId`, `oauthAuthorizationRequestsTableName`, `pendingIdentityLinksTableId`, `pendingIdentityLinksTableName`, `prefix`, `privateSchemaId`, `privateSchemaName` -### `permissions-module` +### `pages-module` -CRUD operations for PermissionsModule records. +CRUD operations for PagesModule 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 | +| `list` | List all pagesModule records | +| `find-first` | Find first matching pagesModule record | +| `get` | Get a pagesModule by id | +| `create` | Create a new pagesModule | +| `update` | Update an existing pagesModule | +| `delete` | Delete a pagesModule | **Fields:** | Field | Type | |-------|------| -| `actorTableId` | UUID | | `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 | +| `previewCommitFunctionName` | String | +| `previewSetFunctionName` | String | +| `previewTokenMintFunctionName` | String | +| `previewTokenVerifierFunctionName` | String | | `privateApiName` | String | | `privateSchemaId` | UUID | | `privateSchemaName` | String | +| `provisions` | JSON | +| `publicSchemaId` | UUID | | `publicSchemaName` | String | -| `schemaId` | UUID | +| `releaseManifestFunctionName` | String | | `scope` | String | -| `tableId` | UUID | -| `tableName` | String | +| `siteSurfaceModuleId` | UUID | +| `sitesTableId` | UUID | +| `storeNamePrefix` | 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` +**Required create fields:** `databaseId`, `merkleStoreModuleId`, `prefix`, `scope` +**Optional create fields (backend defaults):** `apiName`, `entityTableId`, `pagesTableId`, `policies`, `previewCommitFunctionName`, `previewSetFunctionName`, `previewTokenMintFunctionName`, `previewTokenVerifierFunctionName`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `provisions`, `publicSchemaId`, `publicSchemaName`, `releaseManifestFunctionName`, `siteSurfaceModuleId`, `sitesTableId`, `storeNamePrefix` ### `phone-numbers-module` @@ -2282,14 +2659,16 @@ CRUD operations for PrincipalAuthModule records. | `principalScopeOverridesTableId` | UUID | | `principalsTableId` | UUID | | `principalsTableName` | String | +| `privateSchemaId` | UUID | | `revokeOrgApiKeyFunction` | String | | `schemaId` | UUID | | `sessionCredentialsTableId` | UUID | | `sessionsTableId` | UUID | +| `sweepExpiredPrincipalsFunction` | String | | `usersTableId` | UUID | **Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `apiName`, `auditsTableId`, `createOrgApiKeyFunction`, `createOrgPrincipalFunction`, `createPrincipalFunction`, `deleteOrgPrincipalFunction`, `deletePrincipalFunction`, `principalEntitiesTableId`, `principalScopeOverridesTableId`, `principalsTableId`, `principalsTableName`, `revokeOrgApiKeyFunction`, `schemaId`, `sessionCredentialsTableId`, `sessionsTableId`, `usersTableId` +**Optional create fields (backend defaults):** `apiName`, `auditsTableId`, `createOrgApiKeyFunction`, `createOrgPrincipalFunction`, `createPrincipalFunction`, `deleteOrgPrincipalFunction`, `deletePrincipalFunction`, `principalEntitiesTableId`, `principalScopeOverridesTableId`, `principalsTableId`, `principalsTableName`, `privateSchemaId`, `revokeOrgApiKeyFunction`, `schemaId`, `sessionCredentialsTableId`, `sessionsTableId`, `sweepExpiredPrincipalsFunction`, `usersTableId` ### `profiles-module` @@ -2310,22 +2689,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 +2716,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 +2738,7 @@ CRUD operations for RateLimitMetersModule records. | `apiName` | String | | `checkRateLimitFunction` | String | | `databaseId` | UUID | -| `defaultPermissions` | String | +| `defaultCapabilities` | String | | `id` | UUID | | `prefix` | String | | `privateApiName` | String | @@ -2373,7 +2754,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` @@ -2440,6 +2821,50 @@ CRUD operations for RealtimeModule records. **Required create fields:** `databaseId` **Optional create fields (backend defaults):** `apiName`, `changeLogTableId`, `interval`, `listenerNodeTableId`, `notifyChannel`, `premake`, `privateApiName`, `privateSchemaId`, `retentionHours`, `schemaId`, `sourceRegistryTableId`, `subscriptionsSchemaId` +### `refusal-log-module` + +CRUD operations for RefusalLogModule records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all refusalLogModule records | +| `find-first` | Find first matching refusalLogModule record | +| `get` | Get a refusalLogModule by id | +| `create` | Create a new refusalLogModule | +| `update` | Update an existing refusalLogModule | +| `delete` | Delete a refusalLogModule | + +**Fields:** + +| Field | Type | +|-------|------| +| `apiName` | String | +| `databaseId` | UUID | +| `entityField` | String | +| `id` | UUID | +| `logInterval` | String | +| `logPremake` | Int | +| `logRetention` | String | +| `logTableId` | UUID | +| `logTableName` | String | +| `prefix` | String | +| `privateApiName` | String | +| `privateSchemaId` | UUID | +| `privateSchemaName` | String | +| `publicSchemaName` | String | +| `recordRefusalsFunction` | String | +| `rollupRefusalUsageSummaryFunction` | String | +| `schemaId` | UUID | +| `scope` | String | +| `summaryInterval` | String | +| `summaryPremake` | Int | +| `summaryRetention` | String | +| `summaryTableId` | UUID | +| `summaryTableName` | String | + +**Required create fields:** `databaseId`, `scope` +**Optional create fields (backend defaults):** `apiName`, `entityField`, `logInterval`, `logPremake`, `logRetention`, `logTableId`, `logTableName`, `prefix`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `publicSchemaName`, `recordRefusalsFunction`, `rollupRefusalUsageSummaryFunction`, `schemaId`, `summaryInterval`, `summaryPremake`, `summaryRetention`, `summaryTableId`, `summaryTableName` + ### `relation-provision` CRUD operations for RelationProvision records. @@ -2485,6 +2910,67 @@ CRUD operations for RelationProvision records. **Required create fields:** `databaseId`, `relationType`, `sourceTableId`, `targetTableId` **Optional create fields (backend defaults):** `apiRequired`, `createIndex`, `deleteAction`, `exposeInApi`, `fieldName`, `grants`, `isRequired`, `junctionSchemaId`, `junctionTableId`, `junctionTableName`, `nodes`, `outFieldId`, `outJunctionTableId`, `outSourceFieldId`, `outTargetFieldId`, `policies`, `sourceFieldName`, `targetFieldName`, `useCompositeKey` +### `repository-module` + +CRUD operations for RepositoryModule records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all repositoryModule records | +| `find-first` | Find first matching repositoryModule record | +| `get` | Get a repositoryModule by id | +| `create` | Create a new repositoryModule | +| `update` | Update an existing repositoryModule | +| `delete` | Delete a repositoryModule | + +**Fields:** + +| Field | Type | +|-------|------| +| `apiName` | String | +| `buildStepsTableId` | UUID | +| `buildStepsTableName` | String | +| `buildsTableId` | UUID | +| `buildsTableName` | String | +| `databaseId` | UUID | +| `defaultCapabilities` | String | +| `entityField` | String | +| `entityTableId` | UUID | +| `hasAttachments` | Boolean | +| `hasBuilds` | Boolean | +| `id` | UUID | +| `policies` | JSON | +| `prefix` | String | +| `privateApiName` | String | +| `privateSchemaId` | UUID | +| `privateSchemaName` | String | +| `proposalCommentsTableId` | UUID | +| `proposalCommentsTableName` | String | +| `proposalFileViewsTableId` | UUID | +| `proposalFileViewsTableName` | String | +| `proposalReactionsTableId` | UUID | +| `proposalReactionsTableName` | String | +| `proposalReviewsTableId` | UUID | +| `proposalReviewsTableName` | String | +| `proposalsTableId` | UUID | +| `proposalsTableName` | String | +| `provisions` | JSON | +| `publicSchemaName` | String | +| `repositoriesTableId` | UUID | +| `repositoriesTableName` | String | +| `repositoryEventsTableId` | UUID | +| `repositoryEventsTableName` | String | +| `repositoryRequiredChecksTableId` | UUID | +| `repositoryRequiredChecksTableName` | String | +| `schemaId` | UUID | +| `scope` | String | +| `search` | JSON | +| `workflowsTableId` | UUID | +| `workflowsTableName` | String | + +**Required create fields:** `databaseId`, `scope` +**Optional create fields (backend defaults):** `apiName`, `buildStepsTableId`, `buildStepsTableName`, `buildsTableId`, `buildsTableName`, `defaultCapabilities`, `entityField`, `entityTableId`, `hasAttachments`, `hasBuilds`, `policies`, `prefix`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `proposalCommentsTableId`, `proposalCommentsTableName`, `proposalFileViewsTableId`, `proposalFileViewsTableName`, `proposalReactionsTableId`, `proposalReactionsTableName`, `proposalReviewsTableId`, `proposalReviewsTableName`, `proposalsTableId`, `proposalsTableName`, `provisions`, `publicSchemaName`, `repositoriesTableId`, `repositoriesTableName`, `repositoryEventsTableId`, `repositoryEventsTableName`, `repositoryRequiredChecksTableId`, `repositoryRequiredChecksTableName`, `schemaId`, `search`, `workflowsTableId`, `workflowsTableName` + ### `resource-module` CRUD operations for ResourceModule records. @@ -2503,8 +2989,10 @@ CRUD operations for ResourceModule records. | Field | Type | |-------|------| | `apiName` | String | +| `builderBindingsTableId` | UUID | +| `builderBindingsTableName` | String | | `databaseId` | UUID | -| `defaultPermissions` | String | +| `defaultCapabilities` | String | | `entityField` | String | | `entityTableId` | UUID | | `id` | UUID | @@ -2518,6 +3006,8 @@ CRUD operations for ResourceModule records. | `privateSchemaName` | String | | `provisions` | JSON | | `publicSchemaName` | String | +| `registryBindingsTableId` | UUID | +| `registryBindingsTableName` | String | | `requirementsStateViewName` | String | | `resolvedRequirementsViewName` | String | | `resourceBillingRollupFunction` | String | @@ -2540,7 +3030,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`, `builderBindingsTableId`, `builderBindingsTableName`, `defaultCapabilities`, `entityField`, `entityTableId`, `installationStoreName`, `merkleStoreModuleId`, `namespaceModuleId`, `policies`, `prefix`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `provisions`, `publicSchemaName`, `registryBindingsTableId`, `registryBindingsTableName`, `requirementsStateViewName`, `resolvedRequirementsViewName`, `resourceBillingRollupFunction`, `resourceDefinitionsTableId`, `resourceDefinitionsTableName`, `resourceEventsTableId`, `resourceEventsTableName`, `resourceInstallationsTableId`, `resourceInstallationsTableName`, `resourceStatusChecksTableId`, `resourceStatusChecksTableName`, `resourceUsageLogTableId`, `resourceUsageLogTableName`, `resourceUsageSummaryTableId`, `resourceUsageSummaryTableName`, `resourcesTableId`, `resourcesTableName`, `rollupResourceUsageSummaryFunction`, `schemaId` ### `rls-module` @@ -2594,9 +3084,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 | @@ -2610,6 +3102,8 @@ CRUD operations for RouteModule records. | `privateSchemaName` | String | | `provisions` | JSON | | `publicSchemaName` | String | +| `redirectsTableId` | UUID | +| `redirectsTableName` | String | | `resolverFunctionName` | String | | `routeBindingsTableId` | UUID | | `routeBindingsTableName` | String | @@ -2617,9 +3111,37 @@ CRUD operations for RouteModule records. | `routesTableName` | String | | `schemaId` | UUID | | `scope` | String | +| `servingSiteField` | String | +| `storageKey` | 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`, `redirectsTableId`, `redirectsTableName`, `resolverFunctionName`, `routeBindingsTableId`, `routeBindingsTableName`, `routesTableId`, `routesTableName`, `schemaId`, `servingSiteField`, `storageKey` + +### `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` @@ -2642,8 +3164,10 @@ CRUD operations for SecureTableProvision records. | `fields` | JSON | | `grants` | JSON | | `id` | UUID | +| `module` | JSON | | `nodes` | JSON | | `outFields` | UUID | +| `owns` | JSON | | `policies` | JSON | | `schemaId` | UUID | | `tableId` | UUID | @@ -2651,7 +3175,7 @@ CRUD operations for SecureTableProvision records. | `useRls` | Boolean | **Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `fields`, `grants`, `nodes`, `outFields`, `policies`, `schemaId`, `tableId`, `tableName`, `useRls` +**Optional create fields (backend defaults):** `fields`, `grants`, `module`, `nodes`, `outFields`, `owns`, `policies`, `schemaId`, `tableId`, `tableName`, `useRls` ### `session-secrets-module` @@ -2732,7 +3256,7 @@ CRUD operations for SiteSurfaceModule records. | `apiName` | String | | `catalogModuleId` | UUID | | `databaseId` | UUID | -| `defaultPermissions` | String | +| `defaultCapabilities` | String | | `entityField` | String | | `entityTableId` | UUID | | `id` | UUID | @@ -2755,15 +3279,18 @@ CRUD operations for SiteSurfaceModule records. | `siteMetadataTableName` | String | | `siteModulesTableId` | UUID | | `siteModulesTableName` | String | +| `siteReleasesTableId` | UUID | +| `siteReleasesTableName` | String | | `siteThemesTableId` | UUID | | `siteThemesTableName` | String | | `siteWebConfigTableId` | UUID | | `siteWebConfigTableName` | String | | `sitesTableId` | UUID | | `sitesTableName` | String | +| `storageKey` | 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`, `siteReleasesTableId`, `siteReleasesTableName`, `siteThemesTableId`, `siteThemesTableName`, `siteWebConfigTableId`, `siteWebConfigTableName`, `sitesTableId`, `sitesTableName`, `storageKey` ### `storage-log-module` @@ -2782,11 +3309,9 @@ CRUD operations for StorageLogModule records. | Field | Type | |-------|------| -| `actorFkTableId` | UUID | | `apiName` | String | | `databaseId` | UUID | | `entityField` | String | -| `entityFkTableId` | UUID | | `id` | UUID | | `interval` | String | | `prefix` | String | @@ -2796,6 +3321,7 @@ CRUD operations for StorageLogModule records. | `privateSchemaName` | String | | `publicSchemaName` | String | | `retention` | String | +| `rollupFunctionName` | String | | `schemaId` | UUID | | `scope` | String | | `storageLogTableId` | UUID | @@ -2804,7 +3330,7 @@ CRUD operations for StorageLogModule records. | `usageSummaryTableName` | String | **Required create fields:** `databaseId`, `scope` -**Optional create fields (backend defaults):** `actorFkTableId`, `apiName`, `entityField`, `entityFkTableId`, `interval`, `prefix`, `premake`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `publicSchemaName`, `retention`, `schemaId`, `storageLogTableId`, `storageLogTableName`, `usageSummaryTableId`, `usageSummaryTableName` +**Optional create fields (backend defaults):** `apiName`, `entityField`, `interval`, `prefix`, `premake`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `publicSchemaName`, `retention`, `rollupFunctionName`, `schemaId`, `storageLogTableId`, `storageLogTableName`, `usageSummaryTableId`, `usageSummaryTableName` ### `storage-module` @@ -2831,8 +3357,8 @@ CRUD operations for StorageModule records. | `catalogModuleId` | UUID | | `confirmUploadDelay` | Interval | | `databaseId` | UUID | +| `defaultCapabilities` | String | | `defaultMaxFileSize` | BigInt | -| `defaultPermissions` | String | | `downloadUrlExpirySeconds` | Int | | `endpoint` | String | | `entityField` | String | @@ -2847,6 +3373,7 @@ CRUD operations for StorageModule records. | `hasPathShares` | Boolean | | `hasVersioning` | Boolean | | `id` | UUID | +| `key` | String | | `maxBulkFiles` | Int | | `maxBulkTotalSize` | BigInt | | `maxFilenameLength` | Int | @@ -2866,7 +3393,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`, `key`, `maxBulkFiles`, `maxBulkTotalSize`, `maxFilenameLength`, `pathSharesTableId`, `policies`, `prefix`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `provider`, `provisions`, `publicSchemaName`, `publicUrlPrefix`, `restrictReads`, `schemaId`, `uploadUrlExpirySeconds` ### `transfer-log-module` @@ -2885,11 +3412,9 @@ CRUD operations for TransferLogModule records. | Field | Type | |-------|------| -| `actorFkTableId` | UUID | | `apiName` | String | | `databaseId` | UUID | | `entityField` | String | -| `entityFkTableId` | UUID | | `id` | UUID | | `interval` | String | | `prefix` | String | @@ -2899,6 +3424,7 @@ CRUD operations for TransferLogModule records. | `privateSchemaName` | String | | `publicSchemaName` | String | | `retention` | String | +| `rollupFunctionName` | String | | `schemaId` | UUID | | `scope` | String | | `transferLogTableId` | UUID | @@ -2907,7 +3433,7 @@ CRUD operations for TransferLogModule records. | `usageSummaryTableName` | String | **Required create fields:** `databaseId`, `scope` -**Optional create fields (backend defaults):** `actorFkTableId`, `apiName`, `entityField`, `entityFkTableId`, `interval`, `prefix`, `premake`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `publicSchemaName`, `retention`, `schemaId`, `transferLogTableId`, `transferLogTableName`, `usageSummaryTableId`, `usageSummaryTableName` +**Optional create fields (backend defaults):** `apiName`, `entityField`, `interval`, `prefix`, `premake`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `publicSchemaName`, `retention`, `rollupFunctionName`, `schemaId`, `transferLogTableId`, `transferLogTableName`, `usageSummaryTableId`, `usageSummaryTableName` ### `user-auth-module` @@ -2938,8 +3464,10 @@ CRUD operations for UserAuthModule records. | `forgotPasswordFunction` | String | | `id` | UUID | | `privateApiName` | String | +| `privateSchemaId` | UUID | | `requestCrossOriginTokenFunction` | String | | `resetPasswordFunction` | String | +| `revokeSessionTreeFunction` | String | | `schemaId` | UUID | | `secretsTableId` | UUID | | `sendAccountDeletionEmailFunction` | String | @@ -2951,12 +3479,13 @@ CRUD operations for UserAuthModule records. | `signInFunction` | String | | `signOutFunction` | String | | `signUpFunction` | String | +| `sweepExpiredSessionsFunction` | String | | `usersTableId` | UUID | | `verifyEmailFunction` | String | | `verifyPasswordFunction` | String | **Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `apiName`, `auditsTableId`, `auditsTableName`, `checkPasswordFunction`, `deleteAccountFunction`, `emailsTableId`, `encryptedTableId`, `extendTokenExpires`, `forgotPasswordFunction`, `privateApiName`, `requestCrossOriginTokenFunction`, `resetPasswordFunction`, `schemaId`, `secretsTableId`, `sendAccountDeletionEmailFunction`, `sendVerificationEmailFunction`, `sessionCredentialsTableId`, `sessionsTableId`, `setPasswordFunction`, `signInCrossOriginFunction`, `signInFunction`, `signOutFunction`, `signUpFunction`, `usersTableId`, `verifyEmailFunction`, `verifyPasswordFunction` +**Optional create fields (backend defaults):** `apiName`, `auditsTableId`, `auditsTableName`, `checkPasswordFunction`, `deleteAccountFunction`, `emailsTableId`, `encryptedTableId`, `extendTokenExpires`, `forgotPasswordFunction`, `privateApiName`, `privateSchemaId`, `requestCrossOriginTokenFunction`, `resetPasswordFunction`, `revokeSessionTreeFunction`, `schemaId`, `secretsTableId`, `sendAccountDeletionEmailFunction`, `sendVerificationEmailFunction`, `sessionCredentialsTableId`, `sessionsTableId`, `setPasswordFunction`, `signInCrossOriginFunction`, `signInFunction`, `signOutFunction`, `signUpFunction`, `sweepExpiredSessionsFunction`, `usersTableId`, `verifyEmailFunction`, `verifyPasswordFunction` ### `user-credentials-module` @@ -3014,6 +3543,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 +3714,7 @@ CRUD operations for WebhookModule records. |-------|------| | `apiName` | String | | `databaseId` | UUID | -| `defaultPermissions` | String | +| `defaultCapabilities` | String | | `entityField` | String | | `entityTableId` | UUID | | `functionInvocationModuleId` | UUID | @@ -3180,41 +3737,13 @@ 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. +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). A table entry either names its table (table_name plus optional schema_name) or references one an installed module generated ("module": {"type": "agent", "scope": "org", "table": "message"}), which resolves through the module row's recorded table ids and raises when it matches nothing instead of creating an empty table. After provisioning, optional smart_tags (jsonb object) on the table entry are applied via metaschema.append_table_smart_tags(), and optional smart_tags on individual field entries are applied via metaschema.append_field_smart_tags(). (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] — resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID on success, NULL on failure. - **Type:** mutation - **Arguments:** @@ -3243,10 +3772,11 @@ Creates a new blueprint by copying a template definition. Checks visibility: own ### `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. +Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. - **Type:** mutation - **Arguments:** @@ -3256,135 +3786,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..c6dddcb1f8 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 clusterModuleCmd from './commands/cluster-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,32 +33,37 @@ 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'; import graphExecutionModuleCmd from './commands/graph-execution-module'; import graphModuleCmd from './commands/graph-module'; import hierarchyModuleCmd from './commands/hierarchy-module'; -import httpRouteModuleCmd from './commands/http-route-module'; import i18NModuleCmd from './commands/i-18-n-module'; import identityProvidersModuleCmd from './commands/identity-providers-module'; +import imageModuleCmd from './commands/image-module'; import inferenceLogModuleCmd from './commands/inference-log-module'; import infraConfigModuleCmd from './commands/infra-config-module'; import infraSecretsModuleCmd from './commands/infra-secrets-module'; import integrationProvidersModuleCmd from './commands/integration-providers-module'; +import internalConfigModuleCmd from './commands/internal-config-module'; import internalSecretsModuleCmd from './commands/internal-secrets-module'; import invitesModuleCmd from './commands/invites-module'; +import k8sAdmissionModuleCmd from './commands/k-8-s-admission-module'; import limitsModuleCmd from './commands/limits-module'; +import machineModuleCmd from './commands/machine-module'; import membershipTypesModuleCmd from './commands/membership-types-module'; 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'; @@ -63,10 +71,13 @@ import profilesModuleCmd from './commands/profiles-module'; import rateLimitMetersModuleCmd from './commands/rate-limit-meters-module'; import rateLimitsModuleCmd from './commands/rate-limits-module'; import realtimeModuleCmd from './commands/realtime-module'; +import refusalLogModuleCmd from './commands/refusal-log-module'; import relationProvisionCmd from './commands/relation-provision'; +import repositoryModuleCmd from './commands/repository-module'; 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 +88,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 +115,15 @@ const createCommandMap: () => Record< blueprint: blueprintCmd, 'blueprint-construction': blueprintConstructionCmd, 'blueprint-template': blueprintTemplateCmd, + 'capabilities-module': capabilitiesModuleCmd, 'catalog-module': catalogModuleCmd, + 'cluster-module': clusterModuleCmd, '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,32 +134,37 @@ 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, 'graph-execution-module': graphExecutionModuleCmd, 'graph-module': graphModuleCmd, 'hierarchy-module': hierarchyModuleCmd, - 'http-route-module': httpRouteModuleCmd, 'i-18-n-module': i18NModuleCmd, 'identity-providers-module': identityProvidersModuleCmd, + 'image-module': imageModuleCmd, 'inference-log-module': inferenceLogModuleCmd, 'infra-config-module': infraConfigModuleCmd, 'infra-secrets-module': infraSecretsModuleCmd, 'integration-providers-module': integrationProvidersModuleCmd, + 'internal-config-module': internalConfigModuleCmd, 'internal-secrets-module': internalSecretsModuleCmd, 'invites-module': invitesModuleCmd, + 'k-8-s-admission-module': k8sAdmissionModuleCmd, 'limits-module': limitsModuleCmd, + 'machine-module': machineModuleCmd, 'membership-types-module': membershipTypesModuleCmd, 'memberships-module': membershipsModuleCmd, '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, @@ -161,10 +172,13 @@ const createCommandMap: () => Record< 'rate-limit-meters-module': rateLimitMetersModuleCmd, 'rate-limits-module': rateLimitsModuleCmd, 'realtime-module': realtimeModuleCmd, + 'refusal-log-module': refusalLogModuleCmd, 'relation-provision': relationProvisionCmd, + 'repository-module': repositoryModuleCmd, '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 +189,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 cluster-module clusterModule CRUD operations\n compute-log-module computeLogModule 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 i-18-n-module i18NModule CRUD operations\n identity-providers-module identityProvidersModule CRUD operations\n image-module imageModule 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-config-module internalConfigModule CRUD operations\n internal-secrets-module internalSecretsModule CRUD operations\n invites-module invitesModule CRUD operations\n k-8-s-admission-module k8sAdmissionModule CRUD operations\n limits-module limitsModule CRUD operations\n machine-module machineModule 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 refusal-log-module refusalLogModule CRUD operations\n relation-provision relationProvision CRUD operations\n repository-module repositoryModule 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). A table entry either names its table (table_name plus optional schema_name) or references one an installed module generated ("module": {"type": "agent", "scope": "org", "table": "message"}), which resolves through the module row\'s recorded table ids and raises when it matches nothing instead of creating an empty table. 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 Reconcile an S3 bucket for a logical bucket in the database.\nReads the bucket config via RLS, then enqueues the same\nstorage:provision_bucket job used by the INSERT trigger. This is\nidempotent for an already-reconciled bucket; enqueue failures become\nGraphQL errors.\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..8045f5b99d 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/agent-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/agent-module.ts @@ -20,12 +20,18 @@ const fieldSchema: FieldSchema = { agentTableName: 'string', apiName: 'string', databaseId: 'uuid', - defaultPermissions: 'string', + defaultCapabilities: 'string', + defaultVisibility: 'string', entityField: 'string', entityTableId: 'uuid', + eventTableId: 'uuid', + eventTableName: 'string', hasAgents: 'boolean', + hasAttachments: 'boolean', hasPlans: 'boolean', + hasRepositoryResources: 'boolean', hasResources: 'boolean', + hasRuns: 'boolean', id: 'uuid', messageTableId: 'uuid', messageTableName: 'string', @@ -42,16 +48,21 @@ const fieldSchema: FieldSchema = { promptsTableName: 'string', provisions: 'json', publicSchemaName: 'string', + resourceRepositoryTableId: 'uuid', + resourceRepositoryTableName: 'string', resourceTableId: 'uuid', resourceTableName: 'string', resources: 'json', + runTableId: 'uuid', + runTableName: 'string', schemaId: 'uuid', scope: 'string', - shared: 'boolean', taskTableId: 'uuid', taskTableName: 'string', threadTableId: 'uuid', threadTableName: 'string', + workspaceTableId: 'uuid', + workspaceTableName: 'string', }; const usage = '\nagent-module \n\nCommands:\n list List agentModule records\n find-first Find first matching agentModule record\n get Get a agentModule by ID\n create Create a new agentModule\n update Update an existing agentModule\n delete Delete a agentModule\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'; @@ -108,12 +119,18 @@ async function handleList(argv: Partial>, _prompter: Inq agentTableName: true, apiName: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, + defaultVisibility: true, entityField: true, entityTableId: true, + eventTableId: true, + eventTableName: true, hasAgents: true, + hasAttachments: true, hasPlans: true, + hasRepositoryResources: true, hasResources: true, + hasRuns: true, id: true, messageTableId: true, messageTableName: true, @@ -130,16 +147,21 @@ async function handleList(argv: Partial>, _prompter: Inq promptsTableName: true, provisions: true, publicSchemaName: true, + resourceRepositoryTableId: true, + resourceRepositoryTableName: true, resourceTableId: true, resourceTableName: true, resources: true, + runTableId: true, + runTableName: true, schemaId: true, scope: true, - shared: true, taskTableId: true, taskTableName: true, threadTableId: true, threadTableName: true, + workspaceTableId: true, + workspaceTableName: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs & { @@ -164,12 +186,18 @@ async function handleFindFirst(argv: Partial>, _prompter agentTableName: true, apiName: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, + defaultVisibility: true, entityField: true, entityTableId: true, + eventTableId: true, + eventTableName: true, hasAgents: true, + hasAttachments: true, hasPlans: true, + hasRepositoryResources: true, hasResources: true, + hasRuns: true, id: true, messageTableId: true, messageTableName: true, @@ -186,16 +214,21 @@ async function handleFindFirst(argv: Partial>, _prompter promptsTableName: true, provisions: true, publicSchemaName: true, + resourceRepositoryTableId: true, + resourceRepositoryTableName: true, resourceTableId: true, resourceTableName: true, resources: true, + runTableId: true, + runTableName: true, schemaId: true, scope: true, - shared: true, taskTableId: true, taskTableName: true, threadTableId: true, threadTableName: true, + workspaceTableId: true, + workspaceTableName: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs & { @@ -232,12 +265,18 @@ async function handleGet(argv: Partial>, prompter: Inqui agentTableName: true, apiName: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, + defaultVisibility: true, entityField: true, entityTableId: true, + eventTableId: true, + eventTableName: true, hasAgents: true, + hasAttachments: true, hasPlans: true, + hasRepositoryResources: true, hasResources: true, + hasRuns: true, id: true, messageTableId: true, messageTableName: true, @@ -254,16 +293,21 @@ async function handleGet(argv: Partial>, prompter: Inqui promptsTableName: true, provisions: true, publicSchemaName: true, + resourceRepositoryTableId: true, + resourceRepositoryTableName: true, resourceTableId: true, resourceTableName: true, resources: true, + runTableId: true, + runTableName: true, schemaId: true, scope: true, - shared: true, taskTableId: true, taskTableName: true, threadTableId: true, threadTableName: true, + workspaceTableId: true, + workspaceTableName: true, }, }) .execute(); @@ -308,8 +352,15 @@ async function handleCreate(argv: Partial>, prompter: In }, { type: 'text', - name: 'defaultPermissions', - message: 'defaultPermissions', + name: 'defaultCapabilities', + message: 'defaultCapabilities', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'defaultVisibility', + message: 'defaultVisibility', required: false, skipPrompt: true, }, @@ -327,6 +378,20 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'eventTableId', + message: 'eventTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'eventTableName', + message: 'eventTableName', + required: false, + skipPrompt: true, + }, { type: 'boolean', name: 'hasAgents', @@ -334,6 +399,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'boolean', + name: 'hasAttachments', + message: 'hasAttachments', + required: false, + skipPrompt: true, + }, { type: 'boolean', name: 'hasPlans', @@ -341,6 +413,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'boolean', + name: 'hasRepositoryResources', + message: 'hasRepositoryResources', + required: false, + skipPrompt: true, + }, { type: 'boolean', name: 'hasResources', @@ -348,6 +427,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'boolean', + name: 'hasRuns', + message: 'hasRuns', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'messageTableId', @@ -453,6 +539,20 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'resourceRepositoryTableId', + message: 'resourceRepositoryTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'resourceRepositoryTableName', + message: 'resourceRepositoryTableName', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'resourceTableId', @@ -474,6 +574,20 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'runTableId', + message: 'runTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'runTableName', + message: 'runTableName', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'schemaId', @@ -487,13 +601,6 @@ async function handleCreate(argv: Partial>, prompter: In message: 'scope', required: true, }, - { - type: 'boolean', - name: 'shared', - message: 'shared', - required: false, - skipPrompt: true, - }, { type: 'text', name: 'taskTableId', @@ -522,6 +629,20 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'workspaceTableId', + message: 'workspaceTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'workspaceTableName', + message: 'workspaceTableName', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined( @@ -536,12 +657,18 @@ async function handleCreate(argv: Partial>, prompter: In agentTableName: cleanedData.agentTableName, apiName: cleanedData.apiName, databaseId: cleanedData.databaseId, - defaultPermissions: cleanedData.defaultPermissions, + defaultCapabilities: cleanedData.defaultCapabilities, + defaultVisibility: cleanedData.defaultVisibility, entityField: cleanedData.entityField, entityTableId: cleanedData.entityTableId, + eventTableId: cleanedData.eventTableId, + eventTableName: cleanedData.eventTableName, hasAgents: cleanedData.hasAgents, + hasAttachments: cleanedData.hasAttachments, hasPlans: cleanedData.hasPlans, + hasRepositoryResources: cleanedData.hasRepositoryResources, hasResources: cleanedData.hasResources, + hasRuns: cleanedData.hasRuns, messageTableId: cleanedData.messageTableId, messageTableName: cleanedData.messageTableName, personaTableId: cleanedData.personaTableId, @@ -557,28 +684,39 @@ async function handleCreate(argv: Partial>, prompter: In promptsTableName: cleanedData.promptsTableName, provisions: cleanedData.provisions, publicSchemaName: cleanedData.publicSchemaName, + resourceRepositoryTableId: cleanedData.resourceRepositoryTableId, + resourceRepositoryTableName: cleanedData.resourceRepositoryTableName, resourceTableId: cleanedData.resourceTableId, resourceTableName: cleanedData.resourceTableName, resources: cleanedData.resources, + runTableId: cleanedData.runTableId, + runTableName: cleanedData.runTableName, schemaId: cleanedData.schemaId, scope: cleanedData.scope, - shared: cleanedData.shared, taskTableId: cleanedData.taskTableId, taskTableName: cleanedData.taskTableName, threadTableId: cleanedData.threadTableId, threadTableName: cleanedData.threadTableName, + workspaceTableId: cleanedData.workspaceTableId, + workspaceTableName: cleanedData.workspaceTableName, }, select: { agentTableId: true, agentTableName: true, apiName: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, + defaultVisibility: true, entityField: true, entityTableId: true, + eventTableId: true, + eventTableName: true, hasAgents: true, + hasAttachments: true, hasPlans: true, + hasRepositoryResources: true, hasResources: true, + hasRuns: true, id: true, messageTableId: true, messageTableName: true, @@ -595,16 +733,21 @@ async function handleCreate(argv: Partial>, prompter: In promptsTableName: true, provisions: true, publicSchemaName: true, + resourceRepositoryTableId: true, + resourceRepositoryTableName: true, resourceTableId: true, resourceTableName: true, resources: true, + runTableId: true, + runTableName: true, schemaId: true, scope: true, - shared: true, taskTableId: true, taskTableName: true, threadTableId: true, threadTableName: true, + workspaceTableId: true, + workspaceTableName: true, }, }) .execute(); @@ -655,8 +798,15 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'defaultPermissions', - message: 'defaultPermissions', + name: 'defaultCapabilities', + message: 'defaultCapabilities', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'defaultVisibility', + message: 'defaultVisibility', required: false, skipPrompt: true, }, @@ -674,6 +824,20 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'eventTableId', + message: 'eventTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'eventTableName', + message: 'eventTableName', + required: false, + skipPrompt: true, + }, { type: 'boolean', name: 'hasAgents', @@ -681,6 +845,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'boolean', + name: 'hasAttachments', + message: 'hasAttachments', + required: false, + skipPrompt: true, + }, { type: 'boolean', name: 'hasPlans', @@ -688,6 +859,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'boolean', + name: 'hasRepositoryResources', + message: 'hasRepositoryResources', + required: false, + skipPrompt: true, + }, { type: 'boolean', name: 'hasResources', @@ -695,6 +873,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'boolean', + name: 'hasRuns', + message: 'hasRuns', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'messageTableId', @@ -800,6 +985,20 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'resourceRepositoryTableId', + message: 'resourceRepositoryTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'resourceRepositoryTableName', + message: 'resourceRepositoryTableName', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'resourceTableId', @@ -823,24 +1022,31 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'schemaId', - message: 'schemaId', + name: 'runTableId', + message: 'runTableId', required: false, skipPrompt: true, }, { type: 'text', - name: 'scope', - message: 'scope', + name: 'runTableName', + message: 'runTableName', required: false, + skipPrompt: true, }, { - type: 'boolean', - name: 'shared', - message: 'shared', + type: 'text', + name: 'schemaId', + message: 'schemaId', required: false, skipPrompt: true, }, + { + type: 'text', + name: 'scope', + message: 'scope', + required: false, + }, { type: 'text', name: 'taskTableId', @@ -869,6 +1075,20 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'workspaceTableId', + message: 'workspaceTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'workspaceTableName', + message: 'workspaceTableName', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as AgentModulePatch; @@ -883,12 +1103,18 @@ async function handleUpdate(argv: Partial>, prompter: In agentTableName: cleanedData.agentTableName, apiName: cleanedData.apiName, databaseId: cleanedData.databaseId, - defaultPermissions: cleanedData.defaultPermissions, + defaultCapabilities: cleanedData.defaultCapabilities, + defaultVisibility: cleanedData.defaultVisibility, entityField: cleanedData.entityField, entityTableId: cleanedData.entityTableId, + eventTableId: cleanedData.eventTableId, + eventTableName: cleanedData.eventTableName, hasAgents: cleanedData.hasAgents, + hasAttachments: cleanedData.hasAttachments, hasPlans: cleanedData.hasPlans, + hasRepositoryResources: cleanedData.hasRepositoryResources, hasResources: cleanedData.hasResources, + hasRuns: cleanedData.hasRuns, messageTableId: cleanedData.messageTableId, messageTableName: cleanedData.messageTableName, personaTableId: cleanedData.personaTableId, @@ -904,28 +1130,39 @@ async function handleUpdate(argv: Partial>, prompter: In promptsTableName: cleanedData.promptsTableName, provisions: cleanedData.provisions, publicSchemaName: cleanedData.publicSchemaName, + resourceRepositoryTableId: cleanedData.resourceRepositoryTableId, + resourceRepositoryTableName: cleanedData.resourceRepositoryTableName, resourceTableId: cleanedData.resourceTableId, resourceTableName: cleanedData.resourceTableName, resources: cleanedData.resources, + runTableId: cleanedData.runTableId, + runTableName: cleanedData.runTableName, schemaId: cleanedData.schemaId, scope: cleanedData.scope, - shared: cleanedData.shared, taskTableId: cleanedData.taskTableId, taskTableName: cleanedData.taskTableName, threadTableId: cleanedData.threadTableId, threadTableName: cleanedData.threadTableName, + workspaceTableId: cleanedData.workspaceTableId, + workspaceTableName: cleanedData.workspaceTableName, }, select: { agentTableId: true, agentTableName: true, apiName: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, + defaultVisibility: true, entityField: true, entityTableId: true, + eventTableId: true, + eventTableName: true, hasAgents: true, + hasAttachments: true, hasPlans: true, + hasRepositoryResources: true, hasResources: true, + hasRuns: true, id: true, messageTableId: true, messageTableName: true, @@ -942,16 +1179,21 @@ async function handleUpdate(argv: Partial>, prompter: In promptsTableName: true, provisions: true, publicSchemaName: true, + resourceRepositoryTableId: true, + resourceRepositoryTableName: true, resourceTableId: true, resourceTableName: true, resources: true, + runTableId: true, + runTableName: true, schemaId: true, scope: true, - shared: true, taskTableId: true, taskTableName: true, threadTableId: true, threadTableName: true, + workspaceTableId: true, + workspaceTableName: true, }, }) .execute(); 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..612b5ae70a 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/app-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/app-module.ts @@ -19,11 +19,12 @@ const fieldSchema: FieldSchema = { apiName: 'string', appComponentsTableId: 'uuid', appComponentsTableName: 'string', + appStoreIdentitiesTableName: 'string', appsTableId: 'uuid', appsTableName: 'string', catalogModuleId: 'uuid', databaseId: 'uuid', - defaultPermissions: 'string', + defaultCapabilities: 'string', entityField: 'string', entityTableId: 'uuid', id: 'uuid', @@ -91,11 +92,12 @@ async function handleList(argv: Partial>, _prompter: Inq apiName: true, appComponentsTableId: true, appComponentsTableName: true, + appStoreIdentitiesTableName: true, appsTableId: true, appsTableName: true, catalogModuleId: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, id: true, @@ -131,11 +133,12 @@ async function handleFindFirst(argv: Partial>, _prompter apiName: true, appComponentsTableId: true, appComponentsTableName: true, + appStoreIdentitiesTableName: true, appsTableId: true, appsTableName: true, catalogModuleId: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, id: true, @@ -183,11 +186,12 @@ async function handleGet(argv: Partial>, prompter: Inqui apiName: true, appComponentsTableId: true, appComponentsTableName: true, + appStoreIdentitiesTableName: true, appsTableId: true, appsTableName: true, catalogModuleId: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, id: true, @@ -236,6 +240,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'appStoreIdentitiesTableName', + message: 'appStoreIdentitiesTableName', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'appsTableId', @@ -265,8 +276,8 @@ async function handleCreate(argv: Partial>, prompter: In }, { type: 'text', - name: 'defaultPermissions', - message: 'defaultPermissions', + name: 'defaultCapabilities', + message: 'defaultCapabilities', required: false, skipPrompt: true, }, @@ -356,11 +367,12 @@ async function handleCreate(argv: Partial>, prompter: In apiName: cleanedData.apiName, appComponentsTableId: cleanedData.appComponentsTableId, appComponentsTableName: cleanedData.appComponentsTableName, + appStoreIdentitiesTableName: cleanedData.appStoreIdentitiesTableName, appsTableId: cleanedData.appsTableId, appsTableName: cleanedData.appsTableName, catalogModuleId: cleanedData.catalogModuleId, databaseId: cleanedData.databaseId, - defaultPermissions: cleanedData.defaultPermissions, + defaultCapabilities: cleanedData.defaultCapabilities, entityField: cleanedData.entityField, entityTableId: cleanedData.entityTableId, policies: cleanedData.policies, @@ -377,11 +389,12 @@ async function handleCreate(argv: Partial>, prompter: In apiName: true, appComponentsTableId: true, appComponentsTableName: true, + appStoreIdentitiesTableName: true, appsTableId: true, appsTableName: true, catalogModuleId: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, id: true, @@ -436,6 +449,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'appStoreIdentitiesTableName', + message: 'appStoreIdentitiesTableName', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'appsTableId', @@ -465,8 +485,8 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'defaultPermissions', - message: 'defaultPermissions', + name: 'defaultCapabilities', + message: 'defaultCapabilities', required: false, skipPrompt: true, }, @@ -559,11 +579,12 @@ async function handleUpdate(argv: Partial>, prompter: In apiName: cleanedData.apiName, appComponentsTableId: cleanedData.appComponentsTableId, appComponentsTableName: cleanedData.appComponentsTableName, + appStoreIdentitiesTableName: cleanedData.appStoreIdentitiesTableName, appsTableId: cleanedData.appsTableId, appsTableName: cleanedData.appsTableName, catalogModuleId: cleanedData.catalogModuleId, databaseId: cleanedData.databaseId, - defaultPermissions: cleanedData.defaultPermissions, + defaultCapabilities: cleanedData.defaultCapabilities, entityField: cleanedData.entityField, entityTableId: cleanedData.entityTableId, policies: cleanedData.policies, @@ -580,11 +601,12 @@ async function handleUpdate(argv: Partial>, prompter: In apiName: true, appComponentsTableId: true, appComponentsTableName: true, + appStoreIdentitiesTableName: true, appsTableId: true, 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..e3b6360a79 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 @@ -16,19 +16,34 @@ import type { } from '../../orm/input-types'; import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { + activatePlanSubscriptionFunction: 'string', apiName: 'string', billingCustomersTableId: 'uuid', billingCustomersTableName: 'string', + billingDisputesTableId: 'uuid', + billingDisputesTableName: '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', + getActivePlanPricingFunction: 'string', + getBillingCustomerFunction: 'string', + getBillingPriceFunction: 'string', + getBillingProductFunction: 'string', + getBillingSubscriptionFunction: 'string', + getFallbackFreePlanFunction: 'string', id: 'uuid', + listPendingUsageSyncFunction: 'string', + markUsageSyncedFunction: 'string', prefix: 'string', pricesTableId: 'uuid', privateApiName: 'string', @@ -36,8 +51,16 @@ const fieldSchema: FieldSchema = { processBillingEventFunction: 'string', productsTableId: 'uuid', provider: 'string', + recordDisputeFunction: 'string', + recordRefundFunction: 'string', schemaId: 'uuid', subscriptionsTableId: 'uuid', + sweepOverdueSubscriptionsFunction: 'string', + upsertBillingCustomerFunction: 'string', + upsertBillingPriceFunction: 'string', + upsertBillingProductFunction: 'string', + upsertBillingSubscriptionFunction: 'string', + 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'; @@ -90,19 +113,34 @@ async function handleTableSubcommand( async function handleList(argv: Partial>, _prompter: Inquirerer) { try { const defaultSelect = { + activatePlanSubscriptionFunction: true, apiName: true, billingCustomersTableId: true, billingCustomersTableName: true, + billingDisputesTableId: true, + billingDisputesTableName: 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, + getActivePlanPricingFunction: true, + getBillingCustomerFunction: true, + getBillingPriceFunction: true, + getBillingProductFunction: true, + getBillingSubscriptionFunction: true, + getFallbackFreePlanFunction: true, id: true, + listPendingUsageSyncFunction: true, + markUsageSyncedFunction: true, prefix: true, pricesTableId: true, privateApiName: true, @@ -110,8 +148,16 @@ async function handleList(argv: Partial>, _prompter: Inq processBillingEventFunction: true, productsTableId: true, provider: true, + recordDisputeFunction: true, + recordRefundFunction: true, schemaId: true, subscriptionsTableId: true, + sweepOverdueSubscriptionsFunction: true, + upsertBillingCustomerFunction: true, + upsertBillingPriceFunction: true, + upsertBillingProductFunction: true, + upsertBillingSubscriptionFunction: true, + upsertInvoiceFunction: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs< @@ -136,19 +182,34 @@ async function handleList(argv: Partial>, _prompter: Inq async function handleFindFirst(argv: Partial>, _prompter: Inquirerer) { try { const defaultSelect = { + activatePlanSubscriptionFunction: true, apiName: true, billingCustomersTableId: true, billingCustomersTableName: true, + billingDisputesTableId: true, + billingDisputesTableName: 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, + getActivePlanPricingFunction: true, + getBillingCustomerFunction: true, + getBillingPriceFunction: true, + getBillingProductFunction: true, + getBillingSubscriptionFunction: true, + getFallbackFreePlanFunction: true, id: true, + listPendingUsageSyncFunction: true, + markUsageSyncedFunction: true, prefix: true, pricesTableId: true, privateApiName: true, @@ -156,8 +217,16 @@ async function handleFindFirst(argv: Partial>, _prompter processBillingEventFunction: true, productsTableId: true, provider: true, + recordDisputeFunction: true, + recordRefundFunction: true, schemaId: true, subscriptionsTableId: true, + sweepOverdueSubscriptionsFunction: true, + upsertBillingCustomerFunction: true, + upsertBillingPriceFunction: true, + upsertBillingProductFunction: true, + upsertBillingSubscriptionFunction: true, + upsertInvoiceFunction: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs< @@ -194,19 +263,34 @@ async function handleGet(argv: Partial>, prompter: Inqui .findOne({ id: answers.id as string, select: { + activatePlanSubscriptionFunction: true, apiName: true, billingCustomersTableId: true, billingCustomersTableName: true, + billingDisputesTableId: true, + billingDisputesTableName: 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, + getActivePlanPricingFunction: true, + getBillingCustomerFunction: true, + getBillingPriceFunction: true, + getBillingProductFunction: true, + getBillingSubscriptionFunction: true, + getFallbackFreePlanFunction: true, id: true, + listPendingUsageSyncFunction: true, + markUsageSyncedFunction: true, prefix: true, pricesTableId: true, privateApiName: true, @@ -214,8 +298,16 @@ async function handleGet(argv: Partial>, prompter: Inqui processBillingEventFunction: true, productsTableId: true, provider: true, + recordDisputeFunction: true, + recordRefundFunction: true, schemaId: true, subscriptionsTableId: true, + sweepOverdueSubscriptionsFunction: true, + upsertBillingCustomerFunction: true, + upsertBillingPriceFunction: true, + upsertBillingProductFunction: true, + upsertBillingSubscriptionFunction: true, + upsertInvoiceFunction: true, }, }) .execute(); @@ -231,6 +323,13 @@ async function handleGet(argv: Partial>, prompter: Inqui async function handleCreate(argv: Partial>, prompter: Inquirerer) { try { const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'activatePlanSubscriptionFunction', + message: 'activatePlanSubscriptionFunction', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'apiName', @@ -252,6 +351,34 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'billingDisputesTableId', + message: 'billingDisputesTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'billingDisputesTableName', + message: 'billingDisputesTableName', + 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 +407,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 +455,62 @@ async function handleCreate(argv: Partial>, prompter: In message: 'databaseId', required: true, }, + { + type: 'text', + name: 'getActivePlanPricingFunction', + message: 'getActivePlanPricingFunction', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'getBillingCustomerFunction', + message: 'getBillingCustomerFunction', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'getBillingPriceFunction', + message: 'getBillingPriceFunction', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'getBillingProductFunction', + message: 'getBillingProductFunction', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'getBillingSubscriptionFunction', + message: 'getBillingSubscriptionFunction', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'getFallbackFreePlanFunction', + message: 'getFallbackFreePlanFunction', + required: false, + skipPrompt: 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 +560,20 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'recordDisputeFunction', + message: 'recordDisputeFunction', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'recordRefundFunction', + message: 'recordRefundFunction', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'schemaId', @@ -377,6 +588,48 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'sweepOverdueSubscriptionsFunction', + message: 'sweepOverdueSubscriptionsFunction', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'upsertBillingCustomerFunction', + message: 'upsertBillingCustomerFunction', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'upsertBillingPriceFunction', + message: 'upsertBillingPriceFunction', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'upsertBillingProductFunction', + message: 'upsertBillingProductFunction', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'upsertBillingSubscriptionFunction', + message: 'upsertBillingSubscriptionFunction', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'upsertInvoiceFunction', + message: 'upsertInvoiceFunction', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined( @@ -387,18 +640,33 @@ async function handleCreate(argv: Partial>, prompter: In const result = await client.billingProviderModule .create({ data: { + activatePlanSubscriptionFunction: cleanedData.activatePlanSubscriptionFunction, apiName: cleanedData.apiName, billingCustomersTableId: cleanedData.billingCustomersTableId, billingCustomersTableName: cleanedData.billingCustomersTableName, + billingDisputesTableId: cleanedData.billingDisputesTableId, + billingDisputesTableName: cleanedData.billingDisputesTableName, + 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, + getActivePlanPricingFunction: cleanedData.getActivePlanPricingFunction, + getBillingCustomerFunction: cleanedData.getBillingCustomerFunction, + getBillingPriceFunction: cleanedData.getBillingPriceFunction, + getBillingProductFunction: cleanedData.getBillingProductFunction, + getBillingSubscriptionFunction: cleanedData.getBillingSubscriptionFunction, + getFallbackFreePlanFunction: cleanedData.getFallbackFreePlanFunction, + listPendingUsageSyncFunction: cleanedData.listPendingUsageSyncFunction, + markUsageSyncedFunction: cleanedData.markUsageSyncedFunction, prefix: cleanedData.prefix, pricesTableId: cleanedData.pricesTableId, privateApiName: cleanedData.privateApiName, @@ -406,23 +674,46 @@ async function handleCreate(argv: Partial>, prompter: In processBillingEventFunction: cleanedData.processBillingEventFunction, productsTableId: cleanedData.productsTableId, provider: cleanedData.provider, + recordDisputeFunction: cleanedData.recordDisputeFunction, + recordRefundFunction: cleanedData.recordRefundFunction, schemaId: cleanedData.schemaId, subscriptionsTableId: cleanedData.subscriptionsTableId, + sweepOverdueSubscriptionsFunction: cleanedData.sweepOverdueSubscriptionsFunction, + upsertBillingCustomerFunction: cleanedData.upsertBillingCustomerFunction, + upsertBillingPriceFunction: cleanedData.upsertBillingPriceFunction, + upsertBillingProductFunction: cleanedData.upsertBillingProductFunction, + upsertBillingSubscriptionFunction: cleanedData.upsertBillingSubscriptionFunction, + upsertInvoiceFunction: cleanedData.upsertInvoiceFunction, }, select: { + activatePlanSubscriptionFunction: true, apiName: true, billingCustomersTableId: true, billingCustomersTableName: true, + billingDisputesTableId: true, + billingDisputesTableName: 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, + getActivePlanPricingFunction: true, + getBillingCustomerFunction: true, + getBillingPriceFunction: true, + getBillingProductFunction: true, + getBillingSubscriptionFunction: true, + getFallbackFreePlanFunction: true, id: true, + listPendingUsageSyncFunction: true, + markUsageSyncedFunction: true, prefix: true, pricesTableId: true, privateApiName: true, @@ -430,8 +721,16 @@ async function handleCreate(argv: Partial>, prompter: In processBillingEventFunction: true, productsTableId: true, provider: true, + recordDisputeFunction: true, + recordRefundFunction: true, schemaId: true, subscriptionsTableId: true, + sweepOverdueSubscriptionsFunction: true, + upsertBillingCustomerFunction: true, + upsertBillingPriceFunction: true, + upsertBillingProductFunction: true, + upsertBillingSubscriptionFunction: true, + upsertInvoiceFunction: true, }, }) .execute(); @@ -453,6 +752,13 @@ async function handleUpdate(argv: Partial>, prompter: In message: 'id', required: true, }, + { + type: 'text', + name: 'activatePlanSubscriptionFunction', + message: 'activatePlanSubscriptionFunction', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'apiName', @@ -474,6 +780,34 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'billingDisputesTableId', + message: 'billingDisputesTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'billingDisputesTableName', + message: 'billingDisputesTableName', + 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 +836,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 +884,62 @@ async function handleUpdate(argv: Partial>, prompter: In message: 'databaseId', required: false, }, + { + type: 'text', + name: 'getActivePlanPricingFunction', + message: 'getActivePlanPricingFunction', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'getBillingCustomerFunction', + message: 'getBillingCustomerFunction', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'getBillingPriceFunction', + message: 'getBillingPriceFunction', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'getBillingProductFunction', + message: 'getBillingProductFunction', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'getBillingSubscriptionFunction', + message: 'getBillingSubscriptionFunction', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'getFallbackFreePlanFunction', + message: 'getFallbackFreePlanFunction', + required: false, + skipPrompt: 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', @@ -585,6 +989,20 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'recordDisputeFunction', + message: 'recordDisputeFunction', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'recordRefundFunction', + message: 'recordRefundFunction', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'schemaId', @@ -599,6 +1017,48 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'sweepOverdueSubscriptionsFunction', + message: 'sweepOverdueSubscriptionsFunction', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'upsertBillingCustomerFunction', + message: 'upsertBillingCustomerFunction', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'upsertBillingPriceFunction', + message: 'upsertBillingPriceFunction', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'upsertBillingProductFunction', + message: 'upsertBillingProductFunction', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'upsertBillingSubscriptionFunction', + message: 'upsertBillingSubscriptionFunction', + 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; @@ -609,18 +1069,33 @@ async function handleUpdate(argv: Partial>, prompter: In id: answers.id as string, }, data: { + activatePlanSubscriptionFunction: cleanedData.activatePlanSubscriptionFunction, apiName: cleanedData.apiName, billingCustomersTableId: cleanedData.billingCustomersTableId, billingCustomersTableName: cleanedData.billingCustomersTableName, + billingDisputesTableId: cleanedData.billingDisputesTableId, + billingDisputesTableName: cleanedData.billingDisputesTableName, + 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, + getActivePlanPricingFunction: cleanedData.getActivePlanPricingFunction, + getBillingCustomerFunction: cleanedData.getBillingCustomerFunction, + getBillingPriceFunction: cleanedData.getBillingPriceFunction, + getBillingProductFunction: cleanedData.getBillingProductFunction, + getBillingSubscriptionFunction: cleanedData.getBillingSubscriptionFunction, + getFallbackFreePlanFunction: cleanedData.getFallbackFreePlanFunction, + listPendingUsageSyncFunction: cleanedData.listPendingUsageSyncFunction, + markUsageSyncedFunction: cleanedData.markUsageSyncedFunction, prefix: cleanedData.prefix, pricesTableId: cleanedData.pricesTableId, privateApiName: cleanedData.privateApiName, @@ -628,23 +1103,46 @@ async function handleUpdate(argv: Partial>, prompter: In processBillingEventFunction: cleanedData.processBillingEventFunction, productsTableId: cleanedData.productsTableId, provider: cleanedData.provider, + recordDisputeFunction: cleanedData.recordDisputeFunction, + recordRefundFunction: cleanedData.recordRefundFunction, schemaId: cleanedData.schemaId, subscriptionsTableId: cleanedData.subscriptionsTableId, + sweepOverdueSubscriptionsFunction: cleanedData.sweepOverdueSubscriptionsFunction, + upsertBillingCustomerFunction: cleanedData.upsertBillingCustomerFunction, + upsertBillingPriceFunction: cleanedData.upsertBillingPriceFunction, + upsertBillingProductFunction: cleanedData.upsertBillingProductFunction, + upsertBillingSubscriptionFunction: cleanedData.upsertBillingSubscriptionFunction, + upsertInvoiceFunction: cleanedData.upsertInvoiceFunction, }, select: { + activatePlanSubscriptionFunction: true, apiName: true, billingCustomersTableId: true, billingCustomersTableName: true, + billingDisputesTableId: true, + billingDisputesTableName: 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, + getActivePlanPricingFunction: true, + getBillingCustomerFunction: true, + getBillingPriceFunction: true, + getBillingProductFunction: true, + getBillingSubscriptionFunction: true, + getFallbackFreePlanFunction: true, id: true, + listPendingUsageSyncFunction: true, + markUsageSyncedFunction: true, prefix: true, pricesTableId: true, privateApiName: true, @@ -652,8 +1150,16 @@ async function handleUpdate(argv: Partial>, prompter: In processBillingEventFunction: true, productsTableId: true, provider: true, + recordDisputeFunction: true, + recordRefundFunction: true, schemaId: true, subscriptionsTableId: true, + sweepOverdueSubscriptionsFunction: true, + upsertBillingCustomerFunction: true, + upsertBillingPriceFunction: true, + upsertBillingProductFunction: true, + upsertBillingSubscriptionFunction: true, + upsertInvoiceFunction: true, }, }) .execute(); diff --git a/sdk/constructive-cli/src/modules/cli/commands/capabilities-module.ts b/sdk/constructive-cli/src/modules/cli/commands/capabilities-module.ts new file mode 100644 index 0000000000..586b9828d7 --- /dev/null +++ b/sdk/constructive-cli/src/modules/cli/commands/capabilities-module.ts @@ -0,0 +1,697 @@ +/** + * CLI commands for CapabilitiesModule + * @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 { + CreateCapabilitiesModuleInput, + CapabilitiesModulePatch, + CapabilitiesModuleSelect, + CapabilitiesModuleFilter, + CapabilitiesModuleOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + 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', +}; +const usage = + '\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, + _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 = { + 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, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs< + CapabilitiesModuleSelect, + CapabilitiesModuleFilter, + CapabilitiesModuleOrderBy + > & { + select: CapabilitiesModuleSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.capabilitiesModule.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 = { + 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, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs< + CapabilitiesModuleSelect, + CapabilitiesModuleFilter, + CapabilitiesModuleOrderBy + > & { + select: CapabilitiesModuleSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.capabilitiesModule.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.capabilitiesModule + .findOne({ + id: answers.id as string, + 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(); + 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: 'actorTableId', + message: 'actorTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'apiName', + message: 'apiName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'bitlen', + message: 'bitlen', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: true, + }, + { + type: 'text', + name: 'defaultTableId', + message: 'defaultTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'defaultTableName', + message: 'defaultTableName', + 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: 'text', + name: 'getByMask', + message: 'getByMask', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'getMask', + message: 'getMask', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'getMaskByName', + message: 'getMaskByName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'getPaddedMask', + message: 'getPaddedMask', + 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: 'text', + name: 'privateSchemaId', + message: 'privateSchemaId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateSchemaName', + message: 'privateSchemaName', + 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: '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 CreateCapabilitiesModuleInput['capabilitiesModule']; + const client = getClient(); + const result = await client.capabilitiesModule + .create({ + data: { + actorTableId: cleanedData.actorTableId, + apiName: cleanedData.apiName, + bitlen: cleanedData.bitlen, + databaseId: cleanedData.databaseId, + defaultTableId: cleanedData.defaultTableId, + defaultTableName: cleanedData.defaultTableName, + entityField: cleanedData.entityField, + entityTableId: cleanedData.entityTableId, + getByMask: cleanedData.getByMask, + getMask: cleanedData.getMask, + getMaskByName: cleanedData.getMaskByName, + getPaddedMask: cleanedData.getPaddedMask, + prefix: cleanedData.prefix, + privateApiName: cleanedData.privateApiName, + privateSchemaId: cleanedData.privateSchemaId, + privateSchemaName: cleanedData.privateSchemaName, + publicSchemaName: cleanedData.publicSchemaName, + schemaId: cleanedData.schemaId, + scope: cleanedData.scope, + tableId: cleanedData.tableId, + tableName: cleanedData.tableName, + }, + 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(); + 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: 'actorTableId', + message: 'actorTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'apiName', + message: 'apiName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'bitlen', + message: 'bitlen', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: false, + }, + { + type: 'text', + name: 'defaultTableId', + message: 'defaultTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'defaultTableName', + message: 'defaultTableName', + 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: 'text', + name: 'getByMask', + message: 'getByMask', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'getMask', + message: 'getMask', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'getMaskByName', + message: 'getMaskByName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'getPaddedMask', + message: 'getPaddedMask', + 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: 'text', + name: 'privateSchemaId', + message: 'privateSchemaId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateSchemaName', + message: 'privateSchemaName', + 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: '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 CapabilitiesModulePatch; + const client = getClient(); + const result = await client.capabilitiesModule + .update({ + where: { + id: answers.id as string, + }, + data: { + actorTableId: cleanedData.actorTableId, + apiName: cleanedData.apiName, + bitlen: cleanedData.bitlen, + databaseId: cleanedData.databaseId, + defaultTableId: cleanedData.defaultTableId, + defaultTableName: cleanedData.defaultTableName, + entityField: cleanedData.entityField, + entityTableId: cleanedData.entityTableId, + getByMask: cleanedData.getByMask, + getMask: cleanedData.getMask, + getMaskByName: cleanedData.getMaskByName, + getPaddedMask: cleanedData.getPaddedMask, + prefix: cleanedData.prefix, + privateApiName: cleanedData.privateApiName, + privateSchemaId: cleanedData.privateSchemaId, + privateSchemaName: cleanedData.privateSchemaName, + publicSchemaName: cleanedData.publicSchemaName, + schemaId: cleanedData.schemaId, + scope: cleanedData.scope, + tableId: cleanedData.tableId, + tableName: cleanedData.tableName, + }, + 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(); + 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.capabilitiesModule + .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/catalog-module.ts b/sdk/constructive-cli/src/modules/cli/commands/catalog-module.ts index 07a555cbc9..2d09a0f459 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/catalog-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/catalog-module.ts @@ -19,24 +19,34 @@ const fieldSchema: FieldSchema = { apiName: 'string', apisTableId: 'uuid', apisTableName: 'string', + appStoreIdentitiesTableId: 'uuid', + appStoreIdentitiesTableName: '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', functionsTableId: 'uuid', functionsTableName: 'string', id: 'uuid', + imagesTableId: 'uuid', + imagesTableName: 'string', + managedDomainsTableId: 'uuid', + managedDomainsTableName: 'string', namespacesTableId: 'uuid', namespacesTableName: 'string', policies: 'json', privateApiName: 'string', provisions: 'json', publicSchemaName: 'string', + redirectsTableId: 'uuid', + redirectsTableName: 'string', resourceDefinitionsTableId: 'uuid', resourceDefinitionsTableName: 'string', resourceInstallationsTableId: 'uuid', @@ -110,24 +120,34 @@ async function handleList(argv: Partial>, _prompter: Inq apiName: true, apisTableId: true, apisTableName: true, + appStoreIdentitiesTableId: true, + appStoreIdentitiesTableName: 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, functionsTableId: true, functionsTableName: true, id: true, + imagesTableId: true, + imagesTableName: true, + managedDomainsTableId: true, + managedDomainsTableName: true, namespacesTableId: true, namespacesTableName: true, policies: true, privateApiName: true, provisions: true, publicSchemaName: true, + redirectsTableId: true, + redirectsTableName: true, resourceDefinitionsTableId: true, resourceDefinitionsTableName: true, resourceInstallationsTableId: true, @@ -169,24 +189,34 @@ async function handleFindFirst(argv: Partial>, _prompter apiName: true, apisTableId: true, apisTableName: true, + appStoreIdentitiesTableId: true, + appStoreIdentitiesTableName: 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, functionsTableId: true, functionsTableName: true, id: true, + imagesTableId: true, + imagesTableName: true, + managedDomainsTableId: true, + managedDomainsTableName: true, namespacesTableId: true, namespacesTableName: true, policies: true, privateApiName: true, provisions: true, publicSchemaName: true, + redirectsTableId: true, + redirectsTableName: true, resourceDefinitionsTableId: true, resourceDefinitionsTableName: true, resourceInstallationsTableId: true, @@ -240,24 +270,34 @@ async function handleGet(argv: Partial>, prompter: Inqui apiName: true, apisTableId: true, apisTableName: true, + appStoreIdentitiesTableId: true, + appStoreIdentitiesTableName: 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, functionsTableId: true, functionsTableName: true, id: true, + imagesTableId: true, + imagesTableName: true, + managedDomainsTableId: true, + managedDomainsTableName: true, namespacesTableId: true, namespacesTableName: true, policies: true, privateApiName: true, provisions: true, publicSchemaName: true, + redirectsTableId: true, + redirectsTableName: true, resourceDefinitionsTableId: true, resourceDefinitionsTableName: true, resourceInstallationsTableId: true, @@ -312,6 +352,20 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'appStoreIdentitiesTableId', + message: 'appStoreIdentitiesTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'appStoreIdentitiesTableName', + message: 'appStoreIdentitiesTableName', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'appsTableId', @@ -326,6 +380,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 +416,8 @@ async function handleCreate(argv: Partial>, prompter: In }, { type: 'text', - name: 'defaultPermissions', - message: 'defaultPermissions', + name: 'defaultCapabilities', + message: 'defaultCapabilities', required: false, skipPrompt: true, }, @@ -388,6 +456,34 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'imagesTableId', + message: 'imagesTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'imagesTableName', + message: 'imagesTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'managedDomainsTableId', + message: 'managedDomainsTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'managedDomainsTableName', + message: 'managedDomainsTableName', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'namespacesTableId', @@ -430,6 +526,20 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'redirectsTableId', + message: 'redirectsTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'redirectsTableName', + message: 'redirectsTableName', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'resourceDefinitionsTableId', @@ -568,23 +678,33 @@ async function handleCreate(argv: Partial>, prompter: In apiName: cleanedData.apiName, apisTableId: cleanedData.apisTableId, apisTableName: cleanedData.apisTableName, + appStoreIdentitiesTableId: cleanedData.appStoreIdentitiesTableId, + appStoreIdentitiesTableName: cleanedData.appStoreIdentitiesTableName, 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, functionsTableId: cleanedData.functionsTableId, functionsTableName: cleanedData.functionsTableName, + imagesTableId: cleanedData.imagesTableId, + imagesTableName: cleanedData.imagesTableName, + managedDomainsTableId: cleanedData.managedDomainsTableId, + managedDomainsTableName: cleanedData.managedDomainsTableName, namespacesTableId: cleanedData.namespacesTableId, namespacesTableName: cleanedData.namespacesTableName, policies: cleanedData.policies, privateApiName: cleanedData.privateApiName, provisions: cleanedData.provisions, publicSchemaName: cleanedData.publicSchemaName, + redirectsTableId: cleanedData.redirectsTableId, + redirectsTableName: cleanedData.redirectsTableName, resourceDefinitionsTableId: cleanedData.resourceDefinitionsTableId, resourceDefinitionsTableName: cleanedData.resourceDefinitionsTableName, resourceInstallationsTableId: cleanedData.resourceInstallationsTableId, @@ -608,24 +728,34 @@ async function handleCreate(argv: Partial>, prompter: In apiName: true, apisTableId: true, apisTableName: true, + appStoreIdentitiesTableId: true, + appStoreIdentitiesTableName: 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, functionsTableId: true, functionsTableName: true, id: true, + imagesTableId: true, + imagesTableName: true, + managedDomainsTableId: true, + managedDomainsTableName: true, namespacesTableId: true, namespacesTableName: true, policies: true, privateApiName: true, provisions: true, publicSchemaName: true, + redirectsTableId: true, + redirectsTableName: true, resourceDefinitionsTableId: true, resourceDefinitionsTableName: true, resourceInstallationsTableId: true, @@ -686,6 +816,20 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'appStoreIdentitiesTableId', + message: 'appStoreIdentitiesTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'appStoreIdentitiesTableName', + message: 'appStoreIdentitiesTableName', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'appsTableId', @@ -700,6 +844,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 +880,8 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'defaultPermissions', - message: 'defaultPermissions', + name: 'defaultCapabilities', + message: 'defaultCapabilities', required: false, skipPrompt: true, }, @@ -762,6 +920,34 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'imagesTableId', + message: 'imagesTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'imagesTableName', + message: 'imagesTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'managedDomainsTableId', + message: 'managedDomainsTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'managedDomainsTableName', + message: 'managedDomainsTableName', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'namespacesTableId', @@ -804,6 +990,20 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'redirectsTableId', + message: 'redirectsTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'redirectsTableName', + message: 'redirectsTableName', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'resourceDefinitionsTableId', @@ -942,23 +1142,33 @@ async function handleUpdate(argv: Partial>, prompter: In apiName: cleanedData.apiName, apisTableId: cleanedData.apisTableId, apisTableName: cleanedData.apisTableName, + appStoreIdentitiesTableId: cleanedData.appStoreIdentitiesTableId, + appStoreIdentitiesTableName: cleanedData.appStoreIdentitiesTableName, 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, functionsTableId: cleanedData.functionsTableId, functionsTableName: cleanedData.functionsTableName, + imagesTableId: cleanedData.imagesTableId, + imagesTableName: cleanedData.imagesTableName, + managedDomainsTableId: cleanedData.managedDomainsTableId, + managedDomainsTableName: cleanedData.managedDomainsTableName, namespacesTableId: cleanedData.namespacesTableId, namespacesTableName: cleanedData.namespacesTableName, policies: cleanedData.policies, privateApiName: cleanedData.privateApiName, provisions: cleanedData.provisions, publicSchemaName: cleanedData.publicSchemaName, + redirectsTableId: cleanedData.redirectsTableId, + redirectsTableName: cleanedData.redirectsTableName, resourceDefinitionsTableId: cleanedData.resourceDefinitionsTableId, resourceDefinitionsTableName: cleanedData.resourceDefinitionsTableName, resourceInstallationsTableId: cleanedData.resourceInstallationsTableId, @@ -982,24 +1192,34 @@ async function handleUpdate(argv: Partial>, prompter: In apiName: true, apisTableId: true, apisTableName: true, + appStoreIdentitiesTableId: true, + appStoreIdentitiesTableName: 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, functionsTableId: true, functionsTableName: true, id: true, + imagesTableId: true, + imagesTableName: true, + managedDomainsTableId: true, + managedDomainsTableName: true, namespacesTableId: true, namespacesTableName: true, policies: true, privateApiName: true, provisions: true, publicSchemaName: true, + redirectsTableId: true, + redirectsTableName: true, resourceDefinitionsTableId: true, resourceDefinitionsTableName: true, resourceInstallationsTableId: true, diff --git a/sdk/constructive-cli/src/modules/cli/commands/cluster-module.ts b/sdk/constructive-cli/src/modules/cli/commands/cluster-module.ts new file mode 100644 index 0000000000..0828844a1d --- /dev/null +++ b/sdk/constructive-cli/src/modules/cli/commands/cluster-module.ts @@ -0,0 +1,801 @@ +/** + * CLI commands for ClusterModule + * @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 { + CreateClusterModuleInput, + ClusterModulePatch, + ClusterModuleSelect, + ClusterModuleFilter, + ClusterModuleOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + apiName: 'string', + clusterEventsTableId: 'uuid', + clusterEventsTableName: 'string', + clustersTableId: 'uuid', + clustersTableName: 'string', + databaseId: 'uuid', + databasePlacementsTableId: 'uuid', + databasePlacementsTableName: 'string', + databaseServersTableId: 'uuid', + databaseServersTableName: 'string', + defaultCapabilities: 'string', + entityField: 'string', + id: 'uuid', + partitionInterval: 'string', + physicalDatabasesTableId: 'uuid', + physicalDatabasesTableName: 'string', + policies: 'json', + prefix: 'string', + premake: 'int', + privateApiName: 'string', + privateSchemaId: 'uuid', + privateSchemaName: 'string', + provisions: 'json', + publicSchemaName: 'string', + retention: 'string', + schemaId: 'uuid', + scope: 'string', +}; +const usage = + '\ncluster-module \n\nCommands:\n list List clusterModule records\n find-first Find first matching clusterModule record\n get Get a clusterModule by ID\n create Create a new clusterModule\n update Update an existing clusterModule\n delete Delete a clusterModule\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, + clusterEventsTableId: true, + clusterEventsTableName: true, + clustersTableId: true, + clustersTableName: true, + databaseId: true, + databasePlacementsTableId: true, + databasePlacementsTableName: true, + databaseServersTableId: true, + databaseServersTableName: true, + defaultCapabilities: true, + entityField: true, + id: true, + partitionInterval: true, + physicalDatabasesTableId: true, + physicalDatabasesTableName: true, + policies: true, + prefix: true, + premake: true, + privateApiName: true, + privateSchemaId: true, + privateSchemaName: true, + provisions: true, + publicSchemaName: true, + retention: true, + schemaId: true, + scope: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: ClusterModuleSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.clusterModule.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, + clusterEventsTableId: true, + clusterEventsTableName: true, + clustersTableId: true, + clustersTableName: true, + databaseId: true, + databasePlacementsTableId: true, + databasePlacementsTableName: true, + databaseServersTableId: true, + databaseServersTableName: true, + defaultCapabilities: true, + entityField: true, + id: true, + partitionInterval: true, + physicalDatabasesTableId: true, + physicalDatabasesTableName: true, + policies: true, + prefix: true, + premake: true, + privateApiName: true, + privateSchemaId: true, + privateSchemaName: true, + provisions: true, + publicSchemaName: true, + retention: true, + schemaId: true, + scope: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: ClusterModuleSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.clusterModule.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.clusterModule + .findOne({ + id: answers.id as string, + select: { + apiName: true, + clusterEventsTableId: true, + clusterEventsTableName: true, + clustersTableId: true, + clustersTableName: true, + databaseId: true, + databasePlacementsTableId: true, + databasePlacementsTableName: true, + databaseServersTableId: true, + databaseServersTableName: true, + defaultCapabilities: true, + entityField: true, + id: true, + partitionInterval: true, + physicalDatabasesTableId: true, + physicalDatabasesTableName: true, + policies: true, + prefix: true, + premake: true, + privateApiName: true, + privateSchemaId: true, + privateSchemaName: true, + provisions: true, + publicSchemaName: true, + retention: true, + schemaId: 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: 'apiName', + message: 'apiName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'clusterEventsTableId', + message: 'clusterEventsTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'clusterEventsTableName', + message: 'clusterEventsTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'clustersTableId', + message: 'clustersTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'clustersTableName', + message: 'clustersTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: true, + }, + { + type: 'text', + name: 'databasePlacementsTableId', + message: 'databasePlacementsTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'databasePlacementsTableName', + message: 'databasePlacementsTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'databaseServersTableId', + message: 'databaseServersTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'databaseServersTableName', + message: 'databaseServersTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'defaultCapabilities', + message: 'defaultCapabilities', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'entityField', + message: 'entityField', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'partitionInterval', + message: 'partitionInterval', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'physicalDatabasesTableId', + message: 'physicalDatabasesTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'physicalDatabasesTableName', + message: 'physicalDatabasesTableName', + 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: 'premake', + message: 'premake', + required: false, + skipPrompt: 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: 'publicSchemaName', + message: 'publicSchemaName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'retention', + message: 'retention', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'schemaId', + message: 'schemaId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'scope', + message: 'scope', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateClusterModuleInput['clusterModule']; + const client = getClient(); + const result = await client.clusterModule + .create({ + data: { + apiName: cleanedData.apiName, + clusterEventsTableId: cleanedData.clusterEventsTableId, + clusterEventsTableName: cleanedData.clusterEventsTableName, + clustersTableId: cleanedData.clustersTableId, + clustersTableName: cleanedData.clustersTableName, + databaseId: cleanedData.databaseId, + databasePlacementsTableId: cleanedData.databasePlacementsTableId, + databasePlacementsTableName: cleanedData.databasePlacementsTableName, + databaseServersTableId: cleanedData.databaseServersTableId, + databaseServersTableName: cleanedData.databaseServersTableName, + defaultCapabilities: cleanedData.defaultCapabilities, + entityField: cleanedData.entityField, + partitionInterval: cleanedData.partitionInterval, + physicalDatabasesTableId: cleanedData.physicalDatabasesTableId, + physicalDatabasesTableName: cleanedData.physicalDatabasesTableName, + policies: cleanedData.policies, + prefix: cleanedData.prefix, + premake: cleanedData.premake, + privateApiName: cleanedData.privateApiName, + privateSchemaId: cleanedData.privateSchemaId, + privateSchemaName: cleanedData.privateSchemaName, + provisions: cleanedData.provisions, + publicSchemaName: cleanedData.publicSchemaName, + retention: cleanedData.retention, + schemaId: cleanedData.schemaId, + scope: cleanedData.scope, + }, + select: { + apiName: true, + clusterEventsTableId: true, + clusterEventsTableName: true, + clustersTableId: true, + clustersTableName: true, + databaseId: true, + databasePlacementsTableId: true, + databasePlacementsTableName: true, + databaseServersTableId: true, + databaseServersTableName: true, + defaultCapabilities: true, + entityField: true, + id: true, + partitionInterval: true, + physicalDatabasesTableId: true, + physicalDatabasesTableName: true, + policies: true, + prefix: true, + premake: true, + privateApiName: true, + privateSchemaId: true, + privateSchemaName: true, + provisions: true, + publicSchemaName: true, + retention: true, + schemaId: 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: 'apiName', + message: 'apiName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'clusterEventsTableId', + message: 'clusterEventsTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'clusterEventsTableName', + message: 'clusterEventsTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'clustersTableId', + message: 'clustersTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'clustersTableName', + message: 'clustersTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: false, + }, + { + type: 'text', + name: 'databasePlacementsTableId', + message: 'databasePlacementsTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'databasePlacementsTableName', + message: 'databasePlacementsTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'databaseServersTableId', + message: 'databaseServersTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'databaseServersTableName', + message: 'databaseServersTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'defaultCapabilities', + message: 'defaultCapabilities', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'entityField', + message: 'entityField', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'partitionInterval', + message: 'partitionInterval', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'physicalDatabasesTableId', + message: 'physicalDatabasesTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'physicalDatabasesTableName', + message: 'physicalDatabasesTableName', + 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: 'premake', + message: 'premake', + required: false, + skipPrompt: 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: 'publicSchemaName', + message: 'publicSchemaName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'retention', + message: 'retention', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'schemaId', + message: 'schemaId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'scope', + message: 'scope', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as ClusterModulePatch; + const client = getClient(); + const result = await client.clusterModule + .update({ + where: { + id: answers.id as string, + }, + data: { + apiName: cleanedData.apiName, + clusterEventsTableId: cleanedData.clusterEventsTableId, + clusterEventsTableName: cleanedData.clusterEventsTableName, + clustersTableId: cleanedData.clustersTableId, + clustersTableName: cleanedData.clustersTableName, + databaseId: cleanedData.databaseId, + databasePlacementsTableId: cleanedData.databasePlacementsTableId, + databasePlacementsTableName: cleanedData.databasePlacementsTableName, + databaseServersTableId: cleanedData.databaseServersTableId, + databaseServersTableName: cleanedData.databaseServersTableName, + defaultCapabilities: cleanedData.defaultCapabilities, + entityField: cleanedData.entityField, + partitionInterval: cleanedData.partitionInterval, + physicalDatabasesTableId: cleanedData.physicalDatabasesTableId, + physicalDatabasesTableName: cleanedData.physicalDatabasesTableName, + policies: cleanedData.policies, + prefix: cleanedData.prefix, + premake: cleanedData.premake, + privateApiName: cleanedData.privateApiName, + privateSchemaId: cleanedData.privateSchemaId, + privateSchemaName: cleanedData.privateSchemaName, + provisions: cleanedData.provisions, + publicSchemaName: cleanedData.publicSchemaName, + retention: cleanedData.retention, + schemaId: cleanedData.schemaId, + scope: cleanedData.scope, + }, + select: { + apiName: true, + clusterEventsTableId: true, + clusterEventsTableName: true, + clustersTableId: true, + clustersTableName: true, + databaseId: true, + databasePlacementsTableId: true, + databasePlacementsTableName: true, + databaseServersTableId: true, + databaseServersTableName: true, + defaultCapabilities: true, + entityField: true, + id: true, + partitionInterval: true, + physicalDatabasesTableId: true, + physicalDatabasesTableName: true, + policies: true, + prefix: true, + premake: true, + privateApiName: true, + privateSchemaId: true, + privateSchemaName: true, + provisions: true, + publicSchemaName: true, + retention: true, + schemaId: 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.clusterModule + .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/compute-log-module.ts b/sdk/constructive-cli/src/modules/cli/commands/compute-log-module.ts index 1c2d154fd0..e2a8b9f26a 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/compute-log-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/compute-log-module.ts @@ -16,13 +16,11 @@ import type { } from '../../orm/input-types'; import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { - actorFkTableId: 'uuid', apiName: 'string', computeLogTableId: 'uuid', computeLogTableName: 'string', databaseId: 'uuid', entityField: 'string', - entityFkTableId: 'uuid', id: 'uuid', interval: 'string', prefix: 'string', @@ -32,6 +30,7 @@ const fieldSchema: FieldSchema = { privateSchemaName: 'string', publicSchemaName: 'string', retention: 'string', + rollupFunctionName: 'string', schemaId: 'uuid', scope: 'string', usageSummaryTableId: 'uuid', @@ -88,13 +87,11 @@ async function handleTableSubcommand( async function handleList(argv: Partial>, _prompter: Inquirerer) { try { const defaultSelect = { - actorFkTableId: true, apiName: true, computeLogTableId: true, computeLogTableName: true, databaseId: true, entityField: true, - entityFkTableId: true, id: true, interval: true, prefix: true, @@ -104,6 +101,7 @@ async function handleList(argv: Partial>, _prompter: Inq privateSchemaName: true, publicSchemaName: true, retention: true, + rollupFunctionName: true, schemaId: true, scope: true, usageSummaryTableId: true, @@ -128,13 +126,11 @@ async function handleList(argv: Partial>, _prompter: Inq async function handleFindFirst(argv: Partial>, _prompter: Inquirerer) { try { const defaultSelect = { - actorFkTableId: true, apiName: true, computeLogTableId: true, computeLogTableName: true, databaseId: true, entityField: true, - entityFkTableId: true, id: true, interval: true, prefix: true, @@ -144,6 +140,7 @@ async function handleFindFirst(argv: Partial>, _prompter privateSchemaName: true, publicSchemaName: true, retention: true, + rollupFunctionName: true, schemaId: true, scope: true, usageSummaryTableId: true, @@ -180,13 +177,11 @@ async function handleGet(argv: Partial>, prompter: Inqui .findOne({ id: answers.id as string, select: { - actorFkTableId: true, apiName: true, computeLogTableId: true, computeLogTableName: true, databaseId: true, entityField: true, - entityFkTableId: true, id: true, interval: true, prefix: true, @@ -196,6 +191,7 @@ async function handleGet(argv: Partial>, prompter: Inqui privateSchemaName: true, publicSchemaName: true, retention: true, + rollupFunctionName: true, schemaId: true, scope: true, usageSummaryTableId: true, @@ -215,13 +211,6 @@ async function handleGet(argv: Partial>, prompter: Inqui async function handleCreate(argv: Partial>, prompter: Inquirerer) { try { const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'actorFkTableId', - message: 'actorFkTableId', - required: false, - skipPrompt: true, - }, { type: 'text', name: 'apiName', @@ -256,13 +245,6 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'text', - name: 'entityFkTableId', - message: 'entityFkTableId', - required: false, - skipPrompt: true, - }, { type: 'text', name: 'interval', @@ -319,6 +301,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'rollupFunctionName', + message: 'rollupFunctionName', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'schemaId', @@ -356,13 +345,11 @@ async function handleCreate(argv: Partial>, prompter: In const result = await client.computeLogModule .create({ data: { - actorFkTableId: cleanedData.actorFkTableId, apiName: cleanedData.apiName, computeLogTableId: cleanedData.computeLogTableId, computeLogTableName: cleanedData.computeLogTableName, databaseId: cleanedData.databaseId, entityField: cleanedData.entityField, - entityFkTableId: cleanedData.entityFkTableId, interval: cleanedData.interval, prefix: cleanedData.prefix, premake: cleanedData.premake, @@ -371,19 +358,18 @@ async function handleCreate(argv: Partial>, prompter: In privateSchemaName: cleanedData.privateSchemaName, publicSchemaName: cleanedData.publicSchemaName, retention: cleanedData.retention, + rollupFunctionName: cleanedData.rollupFunctionName, schemaId: cleanedData.schemaId, scope: cleanedData.scope, usageSummaryTableId: cleanedData.usageSummaryTableId, usageSummaryTableName: cleanedData.usageSummaryTableName, }, select: { - actorFkTableId: true, apiName: true, computeLogTableId: true, computeLogTableName: true, databaseId: true, entityField: true, - entityFkTableId: true, id: true, interval: true, prefix: true, @@ -393,6 +379,7 @@ async function handleCreate(argv: Partial>, prompter: In privateSchemaName: true, publicSchemaName: true, retention: true, + rollupFunctionName: true, schemaId: true, scope: true, usageSummaryTableId: true, @@ -418,13 +405,6 @@ async function handleUpdate(argv: Partial>, prompter: In message: 'id', required: true, }, - { - type: 'text', - name: 'actorFkTableId', - message: 'actorFkTableId', - required: false, - skipPrompt: true, - }, { type: 'text', name: 'apiName', @@ -459,13 +439,6 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'text', - name: 'entityFkTableId', - message: 'entityFkTableId', - required: false, - skipPrompt: true, - }, { type: 'text', name: 'interval', @@ -522,6 +495,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'rollupFunctionName', + message: 'rollupFunctionName', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'schemaId', @@ -559,13 +539,11 @@ async function handleUpdate(argv: Partial>, prompter: In id: answers.id as string, }, data: { - actorFkTableId: cleanedData.actorFkTableId, apiName: cleanedData.apiName, computeLogTableId: cleanedData.computeLogTableId, computeLogTableName: cleanedData.computeLogTableName, databaseId: cleanedData.databaseId, entityField: cleanedData.entityField, - entityFkTableId: cleanedData.entityFkTableId, interval: cleanedData.interval, prefix: cleanedData.prefix, premake: cleanedData.premake, @@ -574,19 +552,18 @@ async function handleUpdate(argv: Partial>, prompter: In privateSchemaName: cleanedData.privateSchemaName, publicSchemaName: cleanedData.publicSchemaName, retention: cleanedData.retention, + rollupFunctionName: cleanedData.rollupFunctionName, schemaId: cleanedData.schemaId, scope: cleanedData.scope, usageSummaryTableId: cleanedData.usageSummaryTableId, usageSummaryTableName: cleanedData.usageSummaryTableName, }, select: { - actorFkTableId: true, apiName: true, computeLogTableId: true, computeLogTableName: true, databaseId: true, entityField: true, - entityFkTableId: true, id: true, interval: true, prefix: true, @@ -596,6 +573,7 @@ async function handleUpdate(argv: Partial>, prompter: In privateSchemaName: true, publicSchemaName: true, retention: true, + rollupFunctionName: true, schemaId: true, scope: true, usageSummaryTableId: true, diff --git a/sdk/constructive-cli/src/modules/cli/commands/config-secrets-user-module.ts b/sdk/constructive-cli/src/modules/cli/commands/config-secrets-user-module.ts deleted file mode 100644 index df4579c934..0000000000 --- a/sdk/constructive-cli/src/modules/cli/commands/config-secrets-user-module.ts +++ /dev/null @@ -1,391 +0,0 @@ -/** - * CLI commands for ConfigSecretsUserModule - * @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 { - CreateConfigSecretsUserModuleInput, - ConfigSecretsUserModulePatch, - ConfigSecretsUserModuleSelect, - ConfigSecretsUserModuleFilter, - ConfigSecretsUserModuleOrderBy, -} from '../../orm/input-types'; -import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; -const fieldSchema: FieldSchema = { - apiName: 'string', - databaseId: 'uuid', - entityField: 'string', - id: 'uuid', - privateApiName: 'string', - schemaId: 'uuid', - tableId: 'uuid', - tableName: 'string', -}; -const usage = - '\nconfig-secrets-user-module \n\nCommands:\n list List configSecretsUserModule records\n find-first Find first matching configSecretsUserModule record\n get Get a configSecretsUserModule by ID\n create Create a new configSecretsUserModule\n update Update an existing configSecretsUserModule\n delete Delete a configSecretsUserModule\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _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, - entityField: true, - id: true, - privateApiName: true, - schemaId: true, - tableId: true, - tableName: true, - }; - const findManyArgs = parseFindManyArgs< - FindManyArgs< - ConfigSecretsUserModuleSelect, - ConfigSecretsUserModuleFilter, - ConfigSecretsUserModuleOrderBy - > & { - select: ConfigSecretsUserModuleSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.configSecretsUserModule.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, - entityField: true, - id: true, - privateApiName: true, - schemaId: true, - tableId: true, - tableName: true, - }; - const findFirstArgs = parseFindFirstArgs< - FindFirstArgs< - ConfigSecretsUserModuleSelect, - ConfigSecretsUserModuleFilter, - ConfigSecretsUserModuleOrderBy - > & { - select: ConfigSecretsUserModuleSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.configSecretsUserModule.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.configSecretsUserModule - .findOne({ - id: answers.id as string, - select: { - apiName: true, - databaseId: true, - entityField: true, - id: true, - privateApiName: 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: 'entityField', - message: 'entityField', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'privateApiName', - message: 'privateApiName', - 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 CreateConfigSecretsUserModuleInput['configSecretsUserModule']; - const client = getClient(); - const result = await client.configSecretsUserModule - .create({ - data: { - apiName: cleanedData.apiName, - databaseId: cleanedData.databaseId, - entityField: cleanedData.entityField, - privateApiName: cleanedData.privateApiName, - schemaId: cleanedData.schemaId, - tableId: cleanedData.tableId, - tableName: cleanedData.tableName, - }, - select: { - apiName: true, - databaseId: true, - entityField: true, - id: true, - privateApiName: 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: 'entityField', - message: 'entityField', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'privateApiName', - message: 'privateApiName', - 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 ConfigSecretsUserModulePatch; - const client = getClient(); - const result = await client.configSecretsUserModule - .update({ - where: { - id: answers.id as string, - }, - data: { - apiName: cleanedData.apiName, - databaseId: cleanedData.databaseId, - entityField: cleanedData.entityField, - privateApiName: cleanedData.privateApiName, - schemaId: cleanedData.schemaId, - tableId: cleanedData.tableId, - tableName: cleanedData.tableName, - }, - select: { - apiName: true, - databaseId: true, - entityField: true, - id: true, - privateApiName: 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.configSecretsUserModule - .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/construct-blueprint.ts b/sdk/constructive-cli/src/modules/cli/commands/construct-blueprint.ts index 651649b14a..915aa0f01a 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/construct-blueprint.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/construct-blueprint.ts @@ -16,7 +16,7 @@ export default async ( try { if (argv.help || argv.h) { console.log( - "construct-blueprint - Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry \u2014 provisions entity tables, membership modules, and security. 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\nUsage: construct-blueprint [OPTIONS]\n" + 'construct-blueprint - Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry \u2014 provisions entity tables, membership modules, and security. When a prefix already exists (e.g., \'org\'), the entry extends the existing entity type instead of creating a new one; if a storage[] key is present, it provisions entity-scoped storage for that type. (0.5) scope-based storage: each storage[] entry has an optional scope (\'app\' or \'org\' only). App-scoped storage seeds buckets at migration time. Org-scoped storage resolves the org membership type, creates org_buckets/org_files with owner_id, and seeds buckets per-entity via an AFTER INSERT trigger on the users table. When 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). A table entry either names its table (table_name plus optional schema_name) or references one an installed module generated ("module": {"type": "agent", "scope": "org", "table": "message"}), which resolves through the module row\'s recorded table ids and raises when it matches nothing instead of creating an empty table. After provisioning, optional smart_tags (jsonb object) on the table entry are applied via metaschema.append_table_smart_tags(), and optional smart_tags on individual field entries are applied via metaschema.append_field_smart_tags(). (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] \u2014 resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID on success, NULL on failure.\n\nUsage: construct-blueprint [OPTIONS]\n' ); process.exit(0); } diff --git a/sdk/constructive-cli/src/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-provision-module.ts b/sdk/constructive-cli/src/modules/cli/commands/database-provision-module.ts index 81c07d4f5e..67654de477 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/database-provision-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/database-provision-module.ts @@ -17,6 +17,7 @@ import type { import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { async: 'boolean', + bootstrapActorId: 'uuid', bootstrapError: 'string', bootstrapStatus: 'string', bootstrapUser: 'boolean', @@ -88,6 +89,7 @@ async function handleList(argv: Partial>, _prompter: Inq try { const defaultSelect = { async: true, + bootstrapActorId: true, bootstrapError: true, bootstrapStatus: true, bootstrapUser: true, @@ -131,6 +133,7 @@ async function handleFindFirst(argv: Partial>, _prompter try { const defaultSelect = { async: true, + bootstrapActorId: true, bootstrapError: true, bootstrapStatus: true, bootstrapUser: true, @@ -186,6 +189,7 @@ async function handleGet(argv: Partial>, prompter: Inqui id: answers.id as string, select: { async: true, + bootstrapActorId: true, bootstrapError: true, bootstrapStatus: true, bootstrapUser: true, @@ -226,6 +230,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'bootstrapActorId', + message: 'bootstrapActorId', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'bootstrapError', @@ -339,6 +350,7 @@ async function handleCreate(argv: Partial>, prompter: In .create({ data: { async: cleanedData.async, + bootstrapActorId: cleanedData.bootstrapActorId, bootstrapError: cleanedData.bootstrapError, bootstrapStatus: cleanedData.bootstrapStatus, bootstrapUser: cleanedData.bootstrapUser, @@ -357,6 +369,7 @@ async function handleCreate(argv: Partial>, prompter: In }, select: { async: true, + bootstrapActorId: true, bootstrapError: true, bootstrapStatus: true, bootstrapUser: true, @@ -403,6 +416,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'bootstrapActorId', + message: 'bootstrapActorId', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'bootstrapError', @@ -516,6 +536,7 @@ async function handleUpdate(argv: Partial>, prompter: In }, data: { async: cleanedData.async, + bootstrapActorId: cleanedData.bootstrapActorId, bootstrapError: cleanedData.bootstrapError, bootstrapStatus: cleanedData.bootstrapStatus, bootstrapUser: cleanedData.bootstrapUser, @@ -534,6 +555,7 @@ async function handleUpdate(argv: Partial>, prompter: In }, select: { async: true, + bootstrapActorId: true, bootstrapError: true, bootstrapStatus: true, bootstrapUser: true, 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..b001ba9f33 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', @@ -38,6 +38,7 @@ const fieldSchema: FieldSchema = { schedulesTableId: 'uuid', schemaId: 'uuid', scope: 'string', + storageKey: 'string', }; const usage = '\nfunction-module \n\nCommands:\n list List functionModule records\n find-first Find first matching functionModule record\n get Get a functionModule by ID\n create Create a new functionModule\n update Update an existing functionModule\n delete Delete a functionModule\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'; @@ -95,7 +96,7 @@ async function handleList(argv: Partial>, _prompter: Inq bindingsTableName: true, capabilityBindingsTableId: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, definitionsTableId: true, definitionsTableName: true, entityField: true, @@ -112,6 +113,7 @@ async function handleList(argv: Partial>, _prompter: Inq schedulesTableId: true, schemaId: true, scope: true, + storageKey: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs & { @@ -137,7 +139,7 @@ async function handleFindFirst(argv: Partial>, _prompter bindingsTableName: true, capabilityBindingsTableId: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, definitionsTableId: true, definitionsTableName: true, entityField: true, @@ -154,6 +156,7 @@ async function handleFindFirst(argv: Partial>, _prompter schedulesTableId: true, schemaId: true, scope: true, + storageKey: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs & { @@ -191,7 +194,7 @@ async function handleGet(argv: Partial>, prompter: Inqui bindingsTableName: true, capabilityBindingsTableId: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, definitionsTableId: true, definitionsTableName: true, entityField: true, @@ -208,6 +211,7 @@ async function handleGet(argv: Partial>, prompter: Inqui schedulesTableId: true, schemaId: true, scope: true, + storageKey: true, }, }) .execute(); @@ -259,8 +263,8 @@ async function handleCreate(argv: Partial>, prompter: In }, { type: 'text', - name: 'defaultPermissions', - message: 'defaultPermissions', + name: 'defaultCapabilities', + message: 'defaultCapabilities', required: false, skipPrompt: true, }, @@ -368,6 +372,13 @@ async function handleCreate(argv: Partial>, prompter: In message: 'scope', required: true, }, + { + type: 'text', + name: 'storageKey', + message: 'storageKey', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined( @@ -383,7 +394,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, @@ -399,6 +410,7 @@ async function handleCreate(argv: Partial>, prompter: In schedulesTableId: cleanedData.schedulesTableId, schemaId: cleanedData.schemaId, scope: cleanedData.scope, + storageKey: cleanedData.storageKey, }, select: { apiName: true, @@ -406,7 +418,7 @@ async function handleCreate(argv: Partial>, prompter: In bindingsTableName: true, capabilityBindingsTableId: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, definitionsTableId: true, definitionsTableName: true, entityField: true, @@ -423,6 +435,7 @@ async function handleCreate(argv: Partial>, prompter: In schedulesTableId: true, schemaId: true, scope: true, + storageKey: true, }, }) .execute(); @@ -480,8 +493,8 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'defaultPermissions', - message: 'defaultPermissions', + name: 'defaultCapabilities', + message: 'defaultCapabilities', required: false, skipPrompt: true, }, @@ -589,6 +602,13 @@ async function handleUpdate(argv: Partial>, prompter: In message: 'scope', required: false, }, + { + type: 'text', + name: 'storageKey', + message: 'storageKey', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as FunctionModulePatch; @@ -604,7 +624,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, @@ -620,6 +640,7 @@ async function handleUpdate(argv: Partial>, prompter: In schedulesTableId: cleanedData.schedulesTableId, schemaId: cleanedData.schemaId, scope: cleanedData.scope, + storageKey: cleanedData.storageKey, }, select: { apiName: true, @@ -627,7 +648,7 @@ async function handleUpdate(argv: Partial>, prompter: In bindingsTableName: true, capabilityBindingsTableId: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, definitionsTableId: true, definitionsTableName: true, entityField: true, @@ -644,6 +665,7 @@ async function handleUpdate(argv: Partial>, prompter: In schedulesTableId: true, schemaId: true, scope: true, + storageKey: true, }, }) .execute(); 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 deleted file mode 100644 index 24acccd4ef..0000000000 --- a/sdk/constructive-cli/src/modules/cli/commands/http-route-module.ts +++ /dev/null @@ -1,667 +0,0 @@ -/** - * CLI commands for HttpRouteModule - * @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 { - CreateHttpRouteModuleInput, - HttpRouteModulePatch, - HttpRouteModuleSelect, - HttpRouteModuleFilter, - HttpRouteModuleOrderBy, -} from '../../orm/input-types'; -import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; -const fieldSchema: FieldSchema = { - apiName: 'string', - databaseId: 'uuid', - defaultPermissions: 'string', - entityField: 'string', - entityTableId: 'uuid', - functionModuleId: 'uuid', - httpRoutesTableId: 'uuid', - httpRoutesTableName: 'string', - id: 'uuid', - policies: 'json', - prefix: 'string', - privateApiName: 'string', - privateSchemaId: 'uuid', - privateSchemaName: 'string', - provisions: 'json', - publicSchemaName: 'string', - resolverFunctionName: 'string', - resourceModuleId: 'uuid', - schemaId: 'uuid', - scope: 'string', - storageModuleId: 'uuid', -}; -const usage = - '\nhttp-route-module \n\nCommands:\n list List httpRouteModule records\n find-first Find first matching httpRouteModule record\n get Get a httpRouteModule by ID\n create Create a new httpRouteModule\n update Update an existing httpRouteModule\n delete Delete a httpRouteModule\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, - 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, - }; - const findManyArgs = parseFindManyArgs< - FindManyArgs & { - select: HttpRouteModuleSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.httpRouteModule.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, - 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, - }; - const findFirstArgs = parseFindFirstArgs< - FindFirstArgs & { - select: HttpRouteModuleSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.httpRouteModule.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.httpRouteModule - .findOne({ - id: answers.id as string, - 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(); - 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: 'defaultPermissions', - message: 'defaultPermissions', - 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: 'text', - name: 'functionModuleId', - message: 'functionModuleId', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'httpRoutesTableId', - message: 'httpRoutesTableId', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'httpRoutesTableName', - message: 'httpRoutesTableName', - 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: '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: 'publicSchemaName', - message: 'publicSchemaName', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'resolverFunctionName', - message: 'resolverFunctionName', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'resourceModuleId', - message: 'resourceModuleId', - 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: 'storageModuleId', - message: 'storageModuleId', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreateHttpRouteModuleInput['httpRouteModule']; - const client = getClient(); - const result = await client.httpRouteModule - .create({ - data: { - apiName: cleanedData.apiName, - databaseId: cleanedData.databaseId, - defaultPermissions: cleanedData.defaultPermissions, - entityField: cleanedData.entityField, - entityTableId: cleanedData.entityTableId, - functionModuleId: cleanedData.functionModuleId, - httpRoutesTableId: cleanedData.httpRoutesTableId, - httpRoutesTableName: cleanedData.httpRoutesTableName, - policies: cleanedData.policies, - prefix: cleanedData.prefix, - privateApiName: cleanedData.privateApiName, - privateSchemaId: cleanedData.privateSchemaId, - privateSchemaName: cleanedData.privateSchemaName, - provisions: cleanedData.provisions, - publicSchemaName: cleanedData.publicSchemaName, - resolverFunctionName: cleanedData.resolverFunctionName, - resourceModuleId: cleanedData.resourceModuleId, - schemaId: cleanedData.schemaId, - scope: cleanedData.scope, - storageModuleId: cleanedData.storageModuleId, - }, - 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(); - 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: 'defaultPermissions', - message: 'defaultPermissions', - 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: 'text', - name: 'functionModuleId', - message: 'functionModuleId', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'httpRoutesTableId', - message: 'httpRoutesTableId', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'httpRoutesTableName', - message: 'httpRoutesTableName', - 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: '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: 'publicSchemaName', - message: 'publicSchemaName', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'resolverFunctionName', - message: 'resolverFunctionName', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'resourceModuleId', - message: 'resourceModuleId', - 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: 'storageModuleId', - message: 'storageModuleId', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as HttpRouteModulePatch; - const client = getClient(); - const result = await client.httpRouteModule - .update({ - where: { - id: answers.id as string, - }, - data: { - apiName: cleanedData.apiName, - databaseId: cleanedData.databaseId, - defaultPermissions: cleanedData.defaultPermissions, - entityField: cleanedData.entityField, - entityTableId: cleanedData.entityTableId, - functionModuleId: cleanedData.functionModuleId, - httpRoutesTableId: cleanedData.httpRoutesTableId, - httpRoutesTableName: cleanedData.httpRoutesTableName, - policies: cleanedData.policies, - prefix: cleanedData.prefix, - privateApiName: cleanedData.privateApiName, - privateSchemaId: cleanedData.privateSchemaId, - privateSchemaName: cleanedData.privateSchemaName, - provisions: cleanedData.provisions, - publicSchemaName: cleanedData.publicSchemaName, - resolverFunctionName: cleanedData.resolverFunctionName, - resourceModuleId: cleanedData.resourceModuleId, - schemaId: cleanedData.schemaId, - scope: cleanedData.scope, - storageModuleId: cleanedData.storageModuleId, - }, - 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(); - 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.httpRouteModule - .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/image-module.ts b/sdk/constructive-cli/src/modules/cli/commands/image-module.ts new file mode 100644 index 0000000000..6a743036b2 --- /dev/null +++ b/sdk/constructive-cli/src/modules/cli/commands/image-module.ts @@ -0,0 +1,711 @@ +/** + * CLI commands for ImageModule + * @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 { + CreateImageModuleInput, + ImageModulePatch, + ImageModuleSelect, + ImageModuleFilter, + ImageModuleOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + apiName: 'string', + databaseId: 'uuid', + defaultCapabilities: 'string', + entityField: 'string', + entityTableId: 'uuid', + id: 'uuid', + imageGrantsTableId: 'uuid', + imageGrantsTableName: 'string', + imagesTableId: 'uuid', + imagesTableName: 'string', + policies: 'json', + prefix: 'string', + privateApiName: 'string', + privateSchemaId: 'uuid', + privateSchemaName: 'string', + provisions: 'json', + publicSchemaName: 'string', + registriesTableId: 'uuid', + registriesTableName: 'string', + registryGrantsTableId: 'uuid', + registryGrantsTableName: 'string', + schemaId: 'uuid', + scope: 'string', +}; +const usage = + '\nimage-module \n\nCommands:\n list List imageModule records\n find-first Find first matching imageModule record\n get Get a imageModule by ID\n create Create a new imageModule\n update Update an existing imageModule\n delete Delete a imageModule\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, + entityField: true, + entityTableId: true, + id: true, + imageGrantsTableId: true, + imageGrantsTableName: true, + imagesTableId: true, + imagesTableName: true, + policies: true, + prefix: true, + privateApiName: true, + privateSchemaId: true, + privateSchemaName: true, + provisions: true, + publicSchemaName: true, + registriesTableId: true, + registriesTableName: true, + registryGrantsTableId: true, + registryGrantsTableName: true, + schemaId: true, + scope: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: ImageModuleSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.imageModule.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, + entityField: true, + entityTableId: true, + id: true, + imageGrantsTableId: true, + imageGrantsTableName: true, + imagesTableId: true, + imagesTableName: true, + policies: true, + prefix: true, + privateApiName: true, + privateSchemaId: true, + privateSchemaName: true, + provisions: true, + publicSchemaName: true, + registriesTableId: true, + registriesTableName: true, + registryGrantsTableId: true, + registryGrantsTableName: true, + schemaId: true, + scope: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: ImageModuleSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.imageModule.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.imageModule + .findOne({ + id: answers.id as string, + select: { + apiName: true, + databaseId: true, + defaultCapabilities: true, + entityField: true, + entityTableId: true, + id: true, + imageGrantsTableId: true, + imageGrantsTableName: true, + imagesTableId: true, + imagesTableName: true, + policies: true, + prefix: true, + privateApiName: true, + privateSchemaId: true, + privateSchemaName: true, + provisions: true, + publicSchemaName: true, + registriesTableId: true, + registriesTableName: true, + registryGrantsTableId: true, + registryGrantsTableName: true, + schemaId: 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: '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: 'entityField', + message: 'entityField', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'entityTableId', + message: 'entityTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'imageGrantsTableId', + message: 'imageGrantsTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'imageGrantsTableName', + message: 'imageGrantsTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'imagesTableId', + message: 'imagesTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'imagesTableName', + message: 'imagesTableName', + 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: '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: 'publicSchemaName', + message: 'publicSchemaName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'registriesTableId', + message: 'registriesTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'registriesTableName', + message: 'registriesTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'registryGrantsTableId', + message: 'registryGrantsTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'registryGrantsTableName', + message: 'registryGrantsTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'schemaId', + message: 'schemaId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'scope', + message: 'scope', + required: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateImageModuleInput['imageModule']; + const client = getClient(); + const result = await client.imageModule + .create({ + data: { + apiName: cleanedData.apiName, + databaseId: cleanedData.databaseId, + defaultCapabilities: cleanedData.defaultCapabilities, + entityField: cleanedData.entityField, + entityTableId: cleanedData.entityTableId, + imageGrantsTableId: cleanedData.imageGrantsTableId, + imageGrantsTableName: cleanedData.imageGrantsTableName, + imagesTableId: cleanedData.imagesTableId, + imagesTableName: cleanedData.imagesTableName, + policies: cleanedData.policies, + prefix: cleanedData.prefix, + privateApiName: cleanedData.privateApiName, + privateSchemaId: cleanedData.privateSchemaId, + privateSchemaName: cleanedData.privateSchemaName, + provisions: cleanedData.provisions, + publicSchemaName: cleanedData.publicSchemaName, + registriesTableId: cleanedData.registriesTableId, + registriesTableName: cleanedData.registriesTableName, + registryGrantsTableId: cleanedData.registryGrantsTableId, + registryGrantsTableName: cleanedData.registryGrantsTableName, + schemaId: cleanedData.schemaId, + scope: cleanedData.scope, + }, + select: { + apiName: true, + databaseId: true, + defaultCapabilities: true, + entityField: true, + entityTableId: true, + id: true, + imageGrantsTableId: true, + imageGrantsTableName: true, + imagesTableId: true, + imagesTableName: true, + policies: true, + prefix: true, + privateApiName: true, + privateSchemaId: true, + privateSchemaName: true, + provisions: true, + publicSchemaName: true, + registriesTableId: true, + registriesTableName: true, + registryGrantsTableId: true, + registryGrantsTableName: true, + schemaId: 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: '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: 'entityField', + message: 'entityField', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'entityTableId', + message: 'entityTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'imageGrantsTableId', + message: 'imageGrantsTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'imageGrantsTableName', + message: 'imageGrantsTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'imagesTableId', + message: 'imagesTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'imagesTableName', + message: 'imagesTableName', + 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: '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: 'publicSchemaName', + message: 'publicSchemaName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'registriesTableId', + message: 'registriesTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'registriesTableName', + message: 'registriesTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'registryGrantsTableId', + message: 'registryGrantsTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'registryGrantsTableName', + message: 'registryGrantsTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'schemaId', + message: 'schemaId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'scope', + message: 'scope', + required: false, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as ImageModulePatch; + const client = getClient(); + const result = await client.imageModule + .update({ + where: { + id: answers.id as string, + }, + data: { + apiName: cleanedData.apiName, + databaseId: cleanedData.databaseId, + defaultCapabilities: cleanedData.defaultCapabilities, + entityField: cleanedData.entityField, + entityTableId: cleanedData.entityTableId, + imageGrantsTableId: cleanedData.imageGrantsTableId, + imageGrantsTableName: cleanedData.imageGrantsTableName, + imagesTableId: cleanedData.imagesTableId, + imagesTableName: cleanedData.imagesTableName, + policies: cleanedData.policies, + prefix: cleanedData.prefix, + privateApiName: cleanedData.privateApiName, + privateSchemaId: cleanedData.privateSchemaId, + privateSchemaName: cleanedData.privateSchemaName, + provisions: cleanedData.provisions, + publicSchemaName: cleanedData.publicSchemaName, + registriesTableId: cleanedData.registriesTableId, + registriesTableName: cleanedData.registriesTableName, + registryGrantsTableId: cleanedData.registryGrantsTableId, + registryGrantsTableName: cleanedData.registryGrantsTableName, + schemaId: cleanedData.schemaId, + scope: cleanedData.scope, + }, + select: { + apiName: true, + databaseId: true, + defaultCapabilities: true, + entityField: true, + entityTableId: true, + id: true, + imageGrantsTableId: true, + imageGrantsTableName: true, + imagesTableId: true, + imagesTableName: true, + policies: true, + prefix: true, + privateApiName: true, + privateSchemaId: true, + privateSchemaName: true, + provisions: true, + publicSchemaName: true, + registriesTableId: true, + registriesTableName: true, + registryGrantsTableId: true, + registryGrantsTableName: true, + schemaId: 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.imageModule + .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/inference-log-module.ts b/sdk/constructive-cli/src/modules/cli/commands/inference-log-module.ts index 27db1b4287..b2db8ea957 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/inference-log-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/inference-log-module.ts @@ -16,11 +16,9 @@ import type { } from '../../orm/input-types'; import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { - actorFkTableId: 'uuid', apiName: 'string', databaseId: 'uuid', entityField: 'string', - entityFkTableId: 'uuid', id: 'uuid', inferenceLogTableId: 'uuid', inferenceLogTableName: 'string', @@ -32,6 +30,7 @@ const fieldSchema: FieldSchema = { privateSchemaName: 'string', publicSchemaName: 'string', retention: 'string', + rollupFunctionName: 'string', schemaId: 'uuid', scope: 'string', usageSummaryTableId: 'uuid', @@ -88,11 +87,9 @@ async function handleTableSubcommand( async function handleList(argv: Partial>, _prompter: Inquirerer) { try { const defaultSelect = { - actorFkTableId: true, apiName: true, databaseId: true, entityField: true, - entityFkTableId: true, id: true, inferenceLogTableId: true, inferenceLogTableName: true, @@ -104,6 +101,7 @@ async function handleList(argv: Partial>, _prompter: Inq privateSchemaName: true, publicSchemaName: true, retention: true, + rollupFunctionName: true, schemaId: true, scope: true, usageSummaryTableId: true, @@ -132,11 +130,9 @@ async function handleList(argv: Partial>, _prompter: Inq async function handleFindFirst(argv: Partial>, _prompter: Inquirerer) { try { const defaultSelect = { - actorFkTableId: true, apiName: true, databaseId: true, entityField: true, - entityFkTableId: true, id: true, inferenceLogTableId: true, inferenceLogTableName: true, @@ -148,6 +144,7 @@ async function handleFindFirst(argv: Partial>, _prompter privateSchemaName: true, publicSchemaName: true, retention: true, + rollupFunctionName: true, schemaId: true, scope: true, usageSummaryTableId: true, @@ -188,11 +185,9 @@ async function handleGet(argv: Partial>, prompter: Inqui .findOne({ id: answers.id as string, select: { - actorFkTableId: true, apiName: true, databaseId: true, entityField: true, - entityFkTableId: true, id: true, inferenceLogTableId: true, inferenceLogTableName: true, @@ -204,6 +199,7 @@ async function handleGet(argv: Partial>, prompter: Inqui privateSchemaName: true, publicSchemaName: true, retention: true, + rollupFunctionName: true, schemaId: true, scope: true, usageSummaryTableId: true, @@ -223,13 +219,6 @@ async function handleGet(argv: Partial>, prompter: Inqui async function handleCreate(argv: Partial>, prompter: Inquirerer) { try { const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'actorFkTableId', - message: 'actorFkTableId', - required: false, - skipPrompt: true, - }, { type: 'text', name: 'apiName', @@ -250,13 +239,6 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'text', - name: 'entityFkTableId', - message: 'entityFkTableId', - required: false, - skipPrompt: true, - }, { type: 'text', name: 'inferenceLogTableId', @@ -327,6 +309,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'rollupFunctionName', + message: 'rollupFunctionName', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'schemaId', @@ -364,11 +353,9 @@ async function handleCreate(argv: Partial>, prompter: In const result = await client.inferenceLogModule .create({ data: { - actorFkTableId: cleanedData.actorFkTableId, apiName: cleanedData.apiName, databaseId: cleanedData.databaseId, entityField: cleanedData.entityField, - entityFkTableId: cleanedData.entityFkTableId, inferenceLogTableId: cleanedData.inferenceLogTableId, inferenceLogTableName: cleanedData.inferenceLogTableName, interval: cleanedData.interval, @@ -379,17 +366,16 @@ async function handleCreate(argv: Partial>, prompter: In privateSchemaName: cleanedData.privateSchemaName, publicSchemaName: cleanedData.publicSchemaName, retention: cleanedData.retention, + rollupFunctionName: cleanedData.rollupFunctionName, schemaId: cleanedData.schemaId, scope: cleanedData.scope, usageSummaryTableId: cleanedData.usageSummaryTableId, usageSummaryTableName: cleanedData.usageSummaryTableName, }, select: { - actorFkTableId: true, apiName: true, databaseId: true, entityField: true, - entityFkTableId: true, id: true, inferenceLogTableId: true, inferenceLogTableName: true, @@ -401,6 +387,7 @@ async function handleCreate(argv: Partial>, prompter: In privateSchemaName: true, publicSchemaName: true, retention: true, + rollupFunctionName: true, schemaId: true, scope: true, usageSummaryTableId: true, @@ -426,13 +413,6 @@ async function handleUpdate(argv: Partial>, prompter: In message: 'id', required: true, }, - { - type: 'text', - name: 'actorFkTableId', - message: 'actorFkTableId', - required: false, - skipPrompt: true, - }, { type: 'text', name: 'apiName', @@ -453,13 +433,6 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'text', - name: 'entityFkTableId', - message: 'entityFkTableId', - required: false, - skipPrompt: true, - }, { type: 'text', name: 'inferenceLogTableId', @@ -530,6 +503,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'rollupFunctionName', + message: 'rollupFunctionName', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'schemaId', @@ -567,11 +547,9 @@ async function handleUpdate(argv: Partial>, prompter: In id: answers.id as string, }, data: { - actorFkTableId: cleanedData.actorFkTableId, apiName: cleanedData.apiName, databaseId: cleanedData.databaseId, entityField: cleanedData.entityField, - entityFkTableId: cleanedData.entityFkTableId, inferenceLogTableId: cleanedData.inferenceLogTableId, inferenceLogTableName: cleanedData.inferenceLogTableName, interval: cleanedData.interval, @@ -582,17 +560,16 @@ async function handleUpdate(argv: Partial>, prompter: In privateSchemaName: cleanedData.privateSchemaName, publicSchemaName: cleanedData.publicSchemaName, retention: cleanedData.retention, + rollupFunctionName: cleanedData.rollupFunctionName, schemaId: cleanedData.schemaId, scope: cleanedData.scope, usageSummaryTableId: cleanedData.usageSummaryTableId, usageSummaryTableName: cleanedData.usageSummaryTableName, }, select: { - actorFkTableId: true, apiName: true, databaseId: true, entityField: true, - entityFkTableId: true, id: true, inferenceLogTableId: true, inferenceLogTableName: true, @@ -604,6 +581,7 @@ async function handleUpdate(argv: Partial>, prompter: In privateSchemaName: true, publicSchemaName: true, retention: true, + rollupFunctionName: true, schemaId: true, scope: true, usageSummaryTableId: true, diff --git a/sdk/constructive-cli/src/modules/cli/commands/internal-config-module.ts b/sdk/constructive-cli/src/modules/cli/commands/internal-config-module.ts new file mode 100644 index 0000000000..f000863984 --- /dev/null +++ b/sdk/constructive-cli/src/modules/cli/commands/internal-config-module.ts @@ -0,0 +1,565 @@ +/** + * CLI commands for InternalConfigModule + * @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 { + CreateInternalConfigModuleInput, + InternalConfigModulePatch, + InternalConfigModuleSelect, + InternalConfigModuleFilter, + InternalConfigModuleOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + apiName: 'string', + databaseId: 'uuid', + entityField: 'string', + entityTableId: 'uuid', + id: 'uuid', + internalConfigTableId: 'uuid', + internalConfigTableName: 'string', + policies: 'json', + prefix: 'string', + privateApiName: 'string', + privateSchemaId: 'uuid', + privateSchemaName: 'string', + provisions: 'json', + publicSchemaName: 'string', + schemaId: 'uuid', + scope: 'string', +}; +const usage = + '\ninternal-config-module \n\nCommands:\n list List internalConfigModule records\n find-first Find first matching internalConfigModule record\n get Get a internalConfigModule by ID\n create Create a new internalConfigModule\n update Update an existing internalConfigModule\n delete Delete a internalConfigModule\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, + entityField: true, + entityTableId: true, + id: true, + internalConfigTableId: true, + internalConfigTableName: true, + policies: true, + prefix: true, + privateApiName: true, + privateSchemaId: true, + privateSchemaName: true, + provisions: true, + publicSchemaName: true, + schemaId: true, + scope: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs< + InternalConfigModuleSelect, + InternalConfigModuleFilter, + InternalConfigModuleOrderBy + > & { + select: InternalConfigModuleSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.internalConfigModule.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, + entityField: true, + entityTableId: true, + id: true, + internalConfigTableId: true, + internalConfigTableName: true, + policies: true, + prefix: true, + privateApiName: true, + privateSchemaId: true, + privateSchemaName: true, + provisions: true, + publicSchemaName: true, + schemaId: true, + scope: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs< + InternalConfigModuleSelect, + InternalConfigModuleFilter, + InternalConfigModuleOrderBy + > & { + select: InternalConfigModuleSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.internalConfigModule.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.internalConfigModule + .findOne({ + id: answers.id as string, + select: { + apiName: true, + databaseId: true, + entityField: true, + entityTableId: true, + id: true, + internalConfigTableId: true, + internalConfigTableName: true, + policies: true, + prefix: true, + privateApiName: true, + privateSchemaId: true, + privateSchemaName: true, + provisions: true, + publicSchemaName: true, + schemaId: 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: 'apiName', + message: 'apiName', + required: false, + skipPrompt: true, + }, + { + 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: 'internalConfigTableId', + message: 'internalConfigTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'internalConfigTableName', + message: 'internalConfigTableName', + 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: '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: '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, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateInternalConfigModuleInput['internalConfigModule']; + const client = getClient(); + const result = await client.internalConfigModule + .create({ + data: { + apiName: cleanedData.apiName, + databaseId: cleanedData.databaseId, + entityField: cleanedData.entityField, + entityTableId: cleanedData.entityTableId, + internalConfigTableId: cleanedData.internalConfigTableId, + internalConfigTableName: cleanedData.internalConfigTableName, + policies: cleanedData.policies, + prefix: cleanedData.prefix, + privateApiName: cleanedData.privateApiName, + privateSchemaId: cleanedData.privateSchemaId, + privateSchemaName: cleanedData.privateSchemaName, + provisions: cleanedData.provisions, + publicSchemaName: cleanedData.publicSchemaName, + schemaId: cleanedData.schemaId, + scope: cleanedData.scope, + }, + select: { + apiName: true, + databaseId: true, + entityField: true, + entityTableId: true, + id: true, + internalConfigTableId: true, + internalConfigTableName: true, + policies: true, + prefix: true, + privateApiName: true, + privateSchemaId: true, + privateSchemaName: true, + provisions: true, + publicSchemaName: true, + schemaId: 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: 'apiName', + message: 'apiName', + required: false, + skipPrompt: 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: 'internalConfigTableId', + message: 'internalConfigTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'internalConfigTableName', + message: 'internalConfigTableName', + 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: '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: '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, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as InternalConfigModulePatch; + const client = getClient(); + const result = await client.internalConfigModule + .update({ + where: { + id: answers.id as string, + }, + data: { + apiName: cleanedData.apiName, + databaseId: cleanedData.databaseId, + entityField: cleanedData.entityField, + entityTableId: cleanedData.entityTableId, + internalConfigTableId: cleanedData.internalConfigTableId, + internalConfigTableName: cleanedData.internalConfigTableName, + policies: cleanedData.policies, + prefix: cleanedData.prefix, + privateApiName: cleanedData.privateApiName, + privateSchemaId: cleanedData.privateSchemaId, + privateSchemaName: cleanedData.privateSchemaName, + provisions: cleanedData.provisions, + publicSchemaName: cleanedData.publicSchemaName, + schemaId: cleanedData.schemaId, + scope: cleanedData.scope, + }, + select: { + apiName: true, + databaseId: true, + entityField: true, + entityTableId: true, + id: true, + internalConfigTableId: true, + internalConfigTableName: true, + policies: true, + prefix: true, + privateApiName: true, + privateSchemaId: true, + privateSchemaName: true, + provisions: true, + publicSchemaName: true, + schemaId: 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.internalConfigModule + .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/k-8-s-admission-module.ts b/sdk/constructive-cli/src/modules/cli/commands/k-8-s-admission-module.ts new file mode 100644 index 0000000000..4fe8ecfa97 --- /dev/null +++ b/sdk/constructive-cli/src/modules/cli/commands/k-8-s-admission-module.ts @@ -0,0 +1,587 @@ +/** + * CLI commands for K8sAdmissionModule + * @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 { + CreateK8sAdmissionModuleInput, + K8sAdmissionModulePatch, + K8sAdmissionModuleSelect, + K8sAdmissionModuleFilter, + K8sAdmissionModuleOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + apiName: 'string', + createdAt: 'string', + databaseId: 'uuid', + entityTableId: 'uuid', + id: 'uuid', + k8sResourceKindsTableId: 'uuid', + k8sSpecRulesTableId: '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 = + '\nk-8-s-admission-module \n\nCommands:\n list List k8sAdmissionModule records\n find-first Find first matching k8sAdmissionModule record\n get Get a k8sAdmissionModule by ID\n create Create a new k8sAdmissionModule\n update Update an existing k8sAdmissionModule\n delete Delete a k8sAdmissionModule\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, + createdAt: true, + databaseId: true, + entityTableId: true, + id: true, + k8sResourceKindsTableId: true, + k8sSpecRulesTableId: 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< + K8sAdmissionModuleSelect, + K8sAdmissionModuleFilter, + K8sAdmissionModuleOrderBy + > & { + select: K8sAdmissionModuleSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.k8sAdmissionModule.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, + createdAt: true, + databaseId: true, + entityTableId: true, + id: true, + k8sResourceKindsTableId: true, + k8sSpecRulesTableId: 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< + K8sAdmissionModuleSelect, + K8sAdmissionModuleFilter, + K8sAdmissionModuleOrderBy + > & { + select: K8sAdmissionModuleSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.k8sAdmissionModule.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.k8sAdmissionModule + .findOne({ + id: answers.id as string, + select: { + apiName: true, + createdAt: true, + databaseId: true, + entityTableId: true, + id: true, + k8sResourceKindsTableId: true, + k8sSpecRulesTableId: 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: 'databaseId', + message: 'databaseId', + required: true, + }, + { + type: 'text', + name: 'entityTableId', + message: 'entityTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'k8sResourceKindsTableId', + message: 'k8sResourceKindsTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'k8sSpecRulesTableId', + message: 'k8sSpecRulesTableId', + 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 CreateK8sAdmissionModuleInput['k8sAdmissionModule']; + const client = getClient(); + const result = await client.k8sAdmissionModule + .create({ + data: { + apiName: cleanedData.apiName, + databaseId: cleanedData.databaseId, + entityTableId: cleanedData.entityTableId, + k8sResourceKindsTableId: cleanedData.k8sResourceKindsTableId, + k8sSpecRulesTableId: cleanedData.k8sSpecRulesTableId, + 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, + createdAt: true, + databaseId: true, + entityTableId: true, + id: true, + k8sResourceKindsTableId: true, + k8sSpecRulesTableId: 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: 'databaseId', + message: 'databaseId', + required: false, + }, + { + type: 'text', + name: 'entityTableId', + message: 'entityTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'k8sResourceKindsTableId', + message: 'k8sResourceKindsTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'k8sSpecRulesTableId', + message: 'k8sSpecRulesTableId', + 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 K8sAdmissionModulePatch; + const client = getClient(); + const result = await client.k8sAdmissionModule + .update({ + where: { + id: answers.id as string, + }, + data: { + apiName: cleanedData.apiName, + databaseId: cleanedData.databaseId, + entityTableId: cleanedData.entityTableId, + k8sResourceKindsTableId: cleanedData.k8sResourceKindsTableId, + k8sSpecRulesTableId: cleanedData.k8sSpecRulesTableId, + 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, + createdAt: true, + databaseId: true, + entityTableId: true, + id: true, + k8sResourceKindsTableId: true, + k8sSpecRulesTableId: 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.k8sAdmissionModule + .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/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/machine-module.ts b/sdk/constructive-cli/src/modules/cli/commands/machine-module.ts new file mode 100644 index 0000000000..0ede442535 --- /dev/null +++ b/sdk/constructive-cli/src/modules/cli/commands/machine-module.ts @@ -0,0 +1,733 @@ +/** + * CLI commands for MachineModule + * @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 { + CreateMachineModuleInput, + MachineModulePatch, + MachineModuleSelect, + MachineModuleFilter, + MachineModuleOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + apiName: 'string', + databaseId: 'uuid', + defaultCapabilities: 'string', + entityField: 'string', + entityTableId: 'uuid', + id: 'uuid', + machineMessagesTableId: 'uuid', + machineMessagesTableName: 'string', + machineSessionsTableId: 'uuid', + machineSessionsTableName: 'string', + machinesTableId: 'uuid', + machinesTableName: 'string', + partitionInterval: 'string', + policies: 'json', + prefix: 'string', + premake: 'int', + privateApiName: 'string', + privateSchemaId: 'uuid', + privateSchemaName: 'string', + provisions: 'json', + publicSchemaName: 'string', + retention: 'string', + schemaId: 'uuid', + scope: 'string', +}; +const usage = + '\nmachine-module \n\nCommands:\n list List machineModule records\n find-first Find first matching machineModule record\n get Get a machineModule by ID\n create Create a new machineModule\n update Update an existing machineModule\n delete Delete a machineModule\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, + entityField: true, + entityTableId: true, + id: true, + machineMessagesTableId: true, + machineMessagesTableName: true, + machineSessionsTableId: true, + machineSessionsTableName: true, + machinesTableId: true, + machinesTableName: true, + partitionInterval: true, + policies: true, + prefix: true, + premake: true, + privateApiName: true, + privateSchemaId: true, + privateSchemaName: true, + provisions: true, + publicSchemaName: true, + retention: true, + schemaId: true, + scope: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: MachineModuleSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.machineModule.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, + entityField: true, + entityTableId: true, + id: true, + machineMessagesTableId: true, + machineMessagesTableName: true, + machineSessionsTableId: true, + machineSessionsTableName: true, + machinesTableId: true, + machinesTableName: true, + partitionInterval: true, + policies: true, + prefix: true, + premake: true, + privateApiName: true, + privateSchemaId: true, + privateSchemaName: true, + provisions: true, + publicSchemaName: true, + retention: true, + schemaId: true, + scope: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: MachineModuleSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.machineModule.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.machineModule + .findOne({ + id: answers.id as string, + select: { + apiName: true, + databaseId: true, + defaultCapabilities: true, + entityField: true, + entityTableId: true, + id: true, + machineMessagesTableId: true, + machineMessagesTableName: true, + machineSessionsTableId: true, + machineSessionsTableName: true, + machinesTableId: true, + machinesTableName: true, + partitionInterval: true, + policies: true, + prefix: true, + premake: true, + privateApiName: true, + privateSchemaId: true, + privateSchemaName: true, + provisions: true, + publicSchemaName: true, + retention: true, + schemaId: 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: '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: 'entityField', + message: 'entityField', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'entityTableId', + message: 'entityTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'machineMessagesTableId', + message: 'machineMessagesTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'machineMessagesTableName', + message: 'machineMessagesTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'machineSessionsTableId', + message: 'machineSessionsTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'machineSessionsTableName', + message: 'machineSessionsTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'machinesTableId', + message: 'machinesTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'machinesTableName', + message: 'machinesTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'partitionInterval', + message: 'partitionInterval', + 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: 'premake', + message: 'premake', + required: false, + skipPrompt: 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: 'publicSchemaName', + message: 'publicSchemaName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'retention', + message: 'retention', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'schemaId', + message: 'schemaId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'scope', + message: 'scope', + required: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateMachineModuleInput['machineModule']; + const client = getClient(); + const result = await client.machineModule + .create({ + data: { + apiName: cleanedData.apiName, + databaseId: cleanedData.databaseId, + defaultCapabilities: cleanedData.defaultCapabilities, + entityField: cleanedData.entityField, + entityTableId: cleanedData.entityTableId, + machineMessagesTableId: cleanedData.machineMessagesTableId, + machineMessagesTableName: cleanedData.machineMessagesTableName, + machineSessionsTableId: cleanedData.machineSessionsTableId, + machineSessionsTableName: cleanedData.machineSessionsTableName, + machinesTableId: cleanedData.machinesTableId, + machinesTableName: cleanedData.machinesTableName, + partitionInterval: cleanedData.partitionInterval, + policies: cleanedData.policies, + prefix: cleanedData.prefix, + premake: cleanedData.premake, + privateApiName: cleanedData.privateApiName, + privateSchemaId: cleanedData.privateSchemaId, + privateSchemaName: cleanedData.privateSchemaName, + provisions: cleanedData.provisions, + publicSchemaName: cleanedData.publicSchemaName, + retention: cleanedData.retention, + schemaId: cleanedData.schemaId, + scope: cleanedData.scope, + }, + select: { + apiName: true, + databaseId: true, + defaultCapabilities: true, + entityField: true, + entityTableId: true, + id: true, + machineMessagesTableId: true, + machineMessagesTableName: true, + machineSessionsTableId: true, + machineSessionsTableName: true, + machinesTableId: true, + machinesTableName: true, + partitionInterval: true, + policies: true, + prefix: true, + premake: true, + privateApiName: true, + privateSchemaId: true, + privateSchemaName: true, + provisions: true, + publicSchemaName: true, + retention: true, + schemaId: 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: '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: 'entityField', + message: 'entityField', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'entityTableId', + message: 'entityTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'machineMessagesTableId', + message: 'machineMessagesTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'machineMessagesTableName', + message: 'machineMessagesTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'machineSessionsTableId', + message: 'machineSessionsTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'machineSessionsTableName', + message: 'machineSessionsTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'machinesTableId', + message: 'machinesTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'machinesTableName', + message: 'machinesTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'partitionInterval', + message: 'partitionInterval', + 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: 'premake', + message: 'premake', + required: false, + skipPrompt: 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: 'publicSchemaName', + message: 'publicSchemaName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'retention', + message: 'retention', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'schemaId', + message: 'schemaId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'scope', + message: 'scope', + required: false, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as MachineModulePatch; + const client = getClient(); + const result = await client.machineModule + .update({ + where: { + id: answers.id as string, + }, + data: { + apiName: cleanedData.apiName, + databaseId: cleanedData.databaseId, + defaultCapabilities: cleanedData.defaultCapabilities, + entityField: cleanedData.entityField, + entityTableId: cleanedData.entityTableId, + machineMessagesTableId: cleanedData.machineMessagesTableId, + machineMessagesTableName: cleanedData.machineMessagesTableName, + machineSessionsTableId: cleanedData.machineSessionsTableId, + machineSessionsTableName: cleanedData.machineSessionsTableName, + machinesTableId: cleanedData.machinesTableId, + machinesTableName: cleanedData.machinesTableName, + partitionInterval: cleanedData.partitionInterval, + policies: cleanedData.policies, + prefix: cleanedData.prefix, + premake: cleanedData.premake, + privateApiName: cleanedData.privateApiName, + privateSchemaId: cleanedData.privateSchemaId, + privateSchemaName: cleanedData.privateSchemaName, + provisions: cleanedData.provisions, + publicSchemaName: cleanedData.publicSchemaName, + retention: cleanedData.retention, + schemaId: cleanedData.schemaId, + scope: cleanedData.scope, + }, + select: { + apiName: true, + databaseId: true, + defaultCapabilities: true, + entityField: true, + entityTableId: true, + id: true, + machineMessagesTableId: true, + machineMessagesTableName: true, + machineSessionsTableId: true, + machineSessionsTableName: true, + machinesTableId: true, + machinesTableName: true, + partitionInterval: true, + policies: true, + prefix: true, + premake: true, + privateApiName: true, + privateSchemaId: true, + privateSchemaName: true, + provisions: true, + publicSchemaName: true, + retention: true, + schemaId: 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.machineModule + .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/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..a527f33aab 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,14 +17,15 @@ import type { import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { apiName: 'string', + capabilityKey: 'string', commitTableId: 'uuid', createdAt: 'string', databaseId: 'uuid', entityField: 'string', + entityTableId: 'uuid', functionPrefix: 'string', id: 'uuid', objectTableId: 'uuid', - permissionKey: 'string', prefix: 'string', privateApiName: 'string', privateSchemaId: 'uuid', @@ -87,14 +88,15 @@ async function handleList(argv: Partial>, _prompter: Inq try { const defaultSelect = { apiName: true, + capabilityKey: true, commitTableId: true, createdAt: true, databaseId: true, entityField: true, + entityTableId: true, functionPrefix: true, id: true, objectTableId: true, - permissionKey: true, prefix: true, privateApiName: true, privateSchemaId: true, @@ -125,14 +127,15 @@ async function handleFindFirst(argv: Partial>, _prompter try { const defaultSelect = { apiName: true, + capabilityKey: true, commitTableId: true, createdAt: true, databaseId: true, entityField: true, + entityTableId: true, functionPrefix: true, id: true, objectTableId: true, - permissionKey: true, prefix: true, privateApiName: true, privateSchemaId: true, @@ -175,14 +178,15 @@ async function handleGet(argv: Partial>, prompter: Inqui id: answers.id as string, select: { apiName: true, + capabilityKey: true, commitTableId: true, createdAt: true, databaseId: true, entityField: true, + entityTableId: true, functionPrefix: true, id: true, objectTableId: true, - permissionKey: true, prefix: true, privateApiName: true, privateSchemaId: true, @@ -214,6 +218,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', @@ -236,22 +247,22 @@ async function handleCreate(argv: Partial>, prompter: In }, { type: 'text', - name: 'functionPrefix', - message: 'functionPrefix', + name: 'entityTableId', + message: 'entityTableId', required: false, skipPrompt: true, }, { type: 'text', - name: 'objectTableId', - message: 'objectTableId', + name: 'functionPrefix', + message: 'functionPrefix', required: false, skipPrompt: true, }, { type: 'text', - name: 'permissionKey', - message: 'permissionKey', + name: 'objectTableId', + message: 'objectTableId', required: false, skipPrompt: true, }, @@ -328,12 +339,13 @@ async function handleCreate(argv: Partial>, prompter: In .create({ data: { apiName: cleanedData.apiName, + capabilityKey: cleanedData.capabilityKey, commitTableId: cleanedData.commitTableId, databaseId: cleanedData.databaseId, entityField: cleanedData.entityField, + entityTableId: cleanedData.entityTableId, functionPrefix: cleanedData.functionPrefix, objectTableId: cleanedData.objectTableId, - permissionKey: cleanedData.permissionKey, prefix: cleanedData.prefix, privateApiName: cleanedData.privateApiName, privateSchemaId: cleanedData.privateSchemaId, @@ -346,14 +358,15 @@ async function handleCreate(argv: Partial>, prompter: In }, select: { apiName: true, + capabilityKey: true, commitTableId: true, createdAt: true, databaseId: true, entityField: true, + entityTableId: true, functionPrefix: true, id: true, objectTableId: true, - permissionKey: true, prefix: true, privateApiName: true, privateSchemaId: true, @@ -391,6 +404,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', @@ -413,22 +433,22 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'functionPrefix', - message: 'functionPrefix', + name: 'entityTableId', + message: 'entityTableId', required: false, skipPrompt: true, }, { type: 'text', - name: 'objectTableId', - message: 'objectTableId', + name: 'functionPrefix', + message: 'functionPrefix', required: false, skipPrompt: true, }, { type: 'text', - name: 'permissionKey', - message: 'permissionKey', + name: 'objectTableId', + message: 'objectTableId', required: false, skipPrompt: true, }, @@ -505,12 +525,13 @@ async function handleUpdate(argv: Partial>, prompter: In }, data: { apiName: cleanedData.apiName, + capabilityKey: cleanedData.capabilityKey, commitTableId: cleanedData.commitTableId, databaseId: cleanedData.databaseId, entityField: cleanedData.entityField, + entityTableId: cleanedData.entityTableId, functionPrefix: cleanedData.functionPrefix, objectTableId: cleanedData.objectTableId, - permissionKey: cleanedData.permissionKey, prefix: cleanedData.prefix, privateApiName: cleanedData.privateApiName, privateSchemaId: cleanedData.privateSchemaId, @@ -523,14 +544,15 @@ async function handleUpdate(argv: Partial>, prompter: In }, select: { apiName: true, + capabilityKey: true, commitTableId: true, createdAt: true, databaseId: true, entityField: true, + entityTableId: true, 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/pages-module.ts b/sdk/constructive-cli/src/modules/cli/commands/pages-module.ts index 9601491ec8..888bcb5d55 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/pages-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/pages-module.ts @@ -25,12 +25,17 @@ const fieldSchema: FieldSchema = { pagesTableId: 'uuid', policies: 'json', prefix: 'string', + previewCommitFunctionName: 'string', + previewSetFunctionName: 'string', + previewTokenMintFunctionName: 'string', + previewTokenVerifierFunctionName: 'string', privateApiName: 'string', privateSchemaId: 'uuid', privateSchemaName: 'string', provisions: 'json', publicSchemaId: 'uuid', publicSchemaName: 'string', + releaseManifestFunctionName: 'string', scope: 'string', siteSurfaceModuleId: 'uuid', sitesTableId: 'uuid', @@ -96,12 +101,17 @@ async function handleList(argv: Partial>, _prompter: Inq pagesTableId: true, policies: true, prefix: true, + previewCommitFunctionName: true, + previewSetFunctionName: true, + previewTokenMintFunctionName: true, + previewTokenVerifierFunctionName: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaId: true, publicSchemaName: true, + releaseManifestFunctionName: true, scope: true, siteSurfaceModuleId: true, sitesTableId: true, @@ -135,12 +145,17 @@ async function handleFindFirst(argv: Partial>, _prompter pagesTableId: true, policies: true, prefix: true, + previewCommitFunctionName: true, + previewSetFunctionName: true, + previewTokenMintFunctionName: true, + previewTokenVerifierFunctionName: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaId: true, publicSchemaName: true, + releaseManifestFunctionName: true, scope: true, siteSurfaceModuleId: true, sitesTableId: true, @@ -186,12 +201,17 @@ async function handleGet(argv: Partial>, prompter: Inqui pagesTableId: true, policies: true, prefix: true, + previewCommitFunctionName: true, + previewSetFunctionName: true, + previewTokenMintFunctionName: true, + previewTokenVerifierFunctionName: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaId: true, publicSchemaName: true, + releaseManifestFunctionName: true, scope: true, siteSurfaceModuleId: true, sitesTableId: true, @@ -257,6 +277,34 @@ async function handleCreate(argv: Partial>, prompter: In message: 'prefix', required: true, }, + { + type: 'text', + name: 'previewCommitFunctionName', + message: 'previewCommitFunctionName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'previewSetFunctionName', + message: 'previewSetFunctionName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'previewTokenMintFunctionName', + message: 'previewTokenMintFunctionName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'previewTokenVerifierFunctionName', + message: 'previewTokenVerifierFunctionName', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'privateApiName', @@ -299,6 +347,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'releaseManifestFunctionName', + message: 'releaseManifestFunctionName', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'scope', @@ -343,12 +398,17 @@ async function handleCreate(argv: Partial>, prompter: In pagesTableId: cleanedData.pagesTableId, policies: cleanedData.policies, prefix: cleanedData.prefix, + previewCommitFunctionName: cleanedData.previewCommitFunctionName, + previewSetFunctionName: cleanedData.previewSetFunctionName, + previewTokenMintFunctionName: cleanedData.previewTokenMintFunctionName, + previewTokenVerifierFunctionName: cleanedData.previewTokenVerifierFunctionName, privateApiName: cleanedData.privateApiName, privateSchemaId: cleanedData.privateSchemaId, privateSchemaName: cleanedData.privateSchemaName, provisions: cleanedData.provisions, publicSchemaId: cleanedData.publicSchemaId, publicSchemaName: cleanedData.publicSchemaName, + releaseManifestFunctionName: cleanedData.releaseManifestFunctionName, scope: cleanedData.scope, siteSurfaceModuleId: cleanedData.siteSurfaceModuleId, sitesTableId: cleanedData.sitesTableId, @@ -364,12 +424,17 @@ async function handleCreate(argv: Partial>, prompter: In pagesTableId: true, policies: true, prefix: true, + previewCommitFunctionName: true, + previewSetFunctionName: true, + previewTokenMintFunctionName: true, + previewTokenVerifierFunctionName: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaId: true, publicSchemaName: true, + releaseManifestFunctionName: true, scope: true, siteSurfaceModuleId: true, sitesTableId: true, @@ -441,6 +506,34 @@ async function handleUpdate(argv: Partial>, prompter: In message: 'prefix', required: false, }, + { + type: 'text', + name: 'previewCommitFunctionName', + message: 'previewCommitFunctionName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'previewSetFunctionName', + message: 'previewSetFunctionName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'previewTokenMintFunctionName', + message: 'previewTokenMintFunctionName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'previewTokenVerifierFunctionName', + message: 'previewTokenVerifierFunctionName', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'privateApiName', @@ -483,6 +576,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'releaseManifestFunctionName', + message: 'releaseManifestFunctionName', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'scope', @@ -527,12 +627,17 @@ async function handleUpdate(argv: Partial>, prompter: In pagesTableId: cleanedData.pagesTableId, policies: cleanedData.policies, prefix: cleanedData.prefix, + previewCommitFunctionName: cleanedData.previewCommitFunctionName, + previewSetFunctionName: cleanedData.previewSetFunctionName, + previewTokenMintFunctionName: cleanedData.previewTokenMintFunctionName, + previewTokenVerifierFunctionName: cleanedData.previewTokenVerifierFunctionName, privateApiName: cleanedData.privateApiName, privateSchemaId: cleanedData.privateSchemaId, privateSchemaName: cleanedData.privateSchemaName, provisions: cleanedData.provisions, publicSchemaId: cleanedData.publicSchemaId, publicSchemaName: cleanedData.publicSchemaName, + releaseManifestFunctionName: cleanedData.releaseManifestFunctionName, scope: cleanedData.scope, siteSurfaceModuleId: cleanedData.siteSurfaceModuleId, sitesTableId: cleanedData.sitesTableId, @@ -548,12 +653,17 @@ async function handleUpdate(argv: Partial>, prompter: In pagesTableId: true, policies: true, prefix: true, + previewCommitFunctionName: true, + previewSetFunctionName: true, + previewTokenMintFunctionName: true, + previewTokenVerifierFunctionName: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaId: true, publicSchemaName: true, + releaseManifestFunctionName: true, scope: true, siteSurfaceModuleId: true, sitesTableId: true, diff --git a/sdk/constructive-cli/src/modules/cli/commands/permissions-module.ts b/sdk/constructive-cli/src/modules/cli/commands/permissions-module.ts deleted file mode 100644 index 9b76cbab39..0000000000 --- a/sdk/constructive-cli/src/modules/cli/commands/permissions-module.ts +++ /dev/null @@ -1,689 +0,0 @@ -/** - * CLI commands for PermissionsModule - * @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 { - CreatePermissionsModuleInput, - PermissionsModulePatch, - PermissionsModuleSelect, - PermissionsModuleFilter, - PermissionsModuleOrderBy, -} from '../../orm/input-types'; -import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; -const fieldSchema: FieldSchema = { - 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', -}; -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'; -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 = { - 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, - }; - const findManyArgs = parseFindManyArgs< - FindManyArgs & { - select: PermissionsModuleSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.permissionsModule.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 = { - 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, - }; - const findFirstArgs = parseFindFirstArgs< - FindFirstArgs & { - select: PermissionsModuleSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.permissionsModule.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.permissionsModule - .findOne({ - id: answers.id as string, - 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(); - 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: 'actorTableId', - message: 'actorTableId', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'apiName', - message: 'apiName', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'bitlen', - message: 'bitlen', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'databaseId', - message: 'databaseId', - required: true, - }, - { - type: 'text', - name: 'defaultTableId', - message: 'defaultTableId', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'defaultTableName', - message: 'defaultTableName', - 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: 'text', - name: 'getByMask', - message: 'getByMask', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'getMask', - message: 'getMask', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'getMaskByName', - message: 'getMaskByName', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'getPaddedMask', - message: 'getPaddedMask', - 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: 'text', - name: 'privateSchemaId', - message: 'privateSchemaId', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'privateSchemaName', - message: 'privateSchemaName', - 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: '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 CreatePermissionsModuleInput['permissionsModule']; - const client = getClient(); - const result = await client.permissionsModule - .create({ - data: { - actorTableId: cleanedData.actorTableId, - apiName: cleanedData.apiName, - bitlen: cleanedData.bitlen, - databaseId: cleanedData.databaseId, - defaultTableId: cleanedData.defaultTableId, - defaultTableName: cleanedData.defaultTableName, - entityField: cleanedData.entityField, - entityTableId: cleanedData.entityTableId, - getByMask: cleanedData.getByMask, - getMask: cleanedData.getMask, - getMaskByName: cleanedData.getMaskByName, - getPaddedMask: cleanedData.getPaddedMask, - prefix: cleanedData.prefix, - privateApiName: cleanedData.privateApiName, - privateSchemaId: cleanedData.privateSchemaId, - privateSchemaName: cleanedData.privateSchemaName, - publicSchemaName: cleanedData.publicSchemaName, - schemaId: cleanedData.schemaId, - scope: cleanedData.scope, - tableId: cleanedData.tableId, - tableName: cleanedData.tableName, - }, - 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(); - 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: 'actorTableId', - message: 'actorTableId', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'apiName', - message: 'apiName', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'bitlen', - message: 'bitlen', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'databaseId', - message: 'databaseId', - required: false, - }, - { - type: 'text', - name: 'defaultTableId', - message: 'defaultTableId', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'defaultTableName', - message: 'defaultTableName', - 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: 'text', - name: 'getByMask', - message: 'getByMask', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'getMask', - message: 'getMask', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'getMaskByName', - message: 'getMaskByName', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'getPaddedMask', - message: 'getPaddedMask', - 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: 'text', - name: 'privateSchemaId', - message: 'privateSchemaId', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'privateSchemaName', - message: 'privateSchemaName', - 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: '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 PermissionsModulePatch; - const client = getClient(); - const result = await client.permissionsModule - .update({ - where: { - id: answers.id as string, - }, - data: { - actorTableId: cleanedData.actorTableId, - apiName: cleanedData.apiName, - bitlen: cleanedData.bitlen, - databaseId: cleanedData.databaseId, - defaultTableId: cleanedData.defaultTableId, - defaultTableName: cleanedData.defaultTableName, - entityField: cleanedData.entityField, - entityTableId: cleanedData.entityTableId, - getByMask: cleanedData.getByMask, - getMask: cleanedData.getMask, - getMaskByName: cleanedData.getMaskByName, - getPaddedMask: cleanedData.getPaddedMask, - prefix: cleanedData.prefix, - privateApiName: cleanedData.privateApiName, - privateSchemaId: cleanedData.privateSchemaId, - privateSchemaName: cleanedData.privateSchemaName, - publicSchemaName: cleanedData.publicSchemaName, - schemaId: cleanedData.schemaId, - scope: cleanedData.scope, - tableId: cleanedData.tableId, - tableName: cleanedData.tableName, - }, - 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(); - 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.permissionsModule - .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/principal-auth-module.ts b/sdk/constructive-cli/src/modules/cli/commands/principal-auth-module.ts index 6341fbf932..31df61ac05 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/principal-auth-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/principal-auth-module.ts @@ -29,10 +29,12 @@ const fieldSchema: FieldSchema = { principalScopeOverridesTableId: 'uuid', principalsTableId: 'uuid', principalsTableName: 'string', + privateSchemaId: 'uuid', revokeOrgApiKeyFunction: 'string', schemaId: 'uuid', sessionCredentialsTableId: 'uuid', sessionsTableId: 'uuid', + sweepExpiredPrincipalsFunction: 'string', usersTableId: 'uuid', }; const usage = @@ -99,10 +101,12 @@ async function handleList(argv: Partial>, _prompter: Inq principalScopeOverridesTableId: true, principalsTableId: true, principalsTableName: true, + privateSchemaId: true, revokeOrgApiKeyFunction: true, schemaId: true, sessionCredentialsTableId: true, sessionsTableId: true, + sweepExpiredPrincipalsFunction: true, usersTableId: true, }; const findManyArgs = parseFindManyArgs< @@ -141,10 +145,12 @@ async function handleFindFirst(argv: Partial>, _prompter principalScopeOverridesTableId: true, principalsTableId: true, principalsTableName: true, + privateSchemaId: true, revokeOrgApiKeyFunction: true, schemaId: true, sessionCredentialsTableId: true, sessionsTableId: true, + sweepExpiredPrincipalsFunction: true, usersTableId: true, }; const findFirstArgs = parseFindFirstArgs< @@ -195,10 +201,12 @@ async function handleGet(argv: Partial>, prompter: Inqui principalScopeOverridesTableId: true, principalsTableId: true, principalsTableName: true, + privateSchemaId: true, revokeOrgApiKeyFunction: true, schemaId: true, sessionCredentialsTableId: true, sessionsTableId: true, + sweepExpiredPrincipalsFunction: true, usersTableId: true, }, }) @@ -298,6 +306,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'privateSchemaId', + message: 'privateSchemaId', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'revokeOrgApiKeyFunction', @@ -326,6 +341,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'sweepExpiredPrincipalsFunction', + message: 'sweepExpiredPrincipalsFunction', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'usersTableId', @@ -355,10 +377,12 @@ async function handleCreate(argv: Partial>, prompter: In principalScopeOverridesTableId: cleanedData.principalScopeOverridesTableId, principalsTableId: cleanedData.principalsTableId, principalsTableName: cleanedData.principalsTableName, + privateSchemaId: cleanedData.privateSchemaId, revokeOrgApiKeyFunction: cleanedData.revokeOrgApiKeyFunction, schemaId: cleanedData.schemaId, sessionCredentialsTableId: cleanedData.sessionCredentialsTableId, sessionsTableId: cleanedData.sessionsTableId, + sweepExpiredPrincipalsFunction: cleanedData.sweepExpiredPrincipalsFunction, usersTableId: cleanedData.usersTableId, }, select: { @@ -375,10 +399,12 @@ async function handleCreate(argv: Partial>, prompter: In principalScopeOverridesTableId: true, principalsTableId: true, principalsTableName: true, + privateSchemaId: true, revokeOrgApiKeyFunction: true, schemaId: true, sessionCredentialsTableId: true, sessionsTableId: true, + sweepExpiredPrincipalsFunction: true, usersTableId: true, }, }) @@ -484,6 +510,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'privateSchemaId', + message: 'privateSchemaId', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'revokeOrgApiKeyFunction', @@ -512,6 +545,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'sweepExpiredPrincipalsFunction', + message: 'sweepExpiredPrincipalsFunction', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'usersTableId', @@ -541,10 +581,12 @@ async function handleUpdate(argv: Partial>, prompter: In principalScopeOverridesTableId: cleanedData.principalScopeOverridesTableId, principalsTableId: cleanedData.principalsTableId, principalsTableName: cleanedData.principalsTableName, + privateSchemaId: cleanedData.privateSchemaId, revokeOrgApiKeyFunction: cleanedData.revokeOrgApiKeyFunction, schemaId: cleanedData.schemaId, sessionCredentialsTableId: cleanedData.sessionCredentialsTableId, sessionsTableId: cleanedData.sessionsTableId, + sweepExpiredPrincipalsFunction: cleanedData.sweepExpiredPrincipalsFunction, usersTableId: cleanedData.usersTableId, }, select: { @@ -561,10 +603,12 @@ async function handleUpdate(argv: Partial>, prompter: In principalScopeOverridesTableId: true, principalsTableId: true, principalsTableName: true, + privateSchemaId: true, revokeOrgApiKeyFunction: true, schemaId: true, sessionCredentialsTableId: true, sessionsTableId: true, + sweepExpiredPrincipalsFunction: true, usersTableId: true, }, }) 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-bucket.ts b/sdk/constructive-cli/src/modules/cli/commands/provision-bucket.ts index ecd2e539d5..0c54313d78 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/provision-bucket.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/provision-bucket.ts @@ -16,7 +16,7 @@ export default async ( try { if (argv.help || argv.h) { console.log( - '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\nUsage: provision-bucket [OPTIONS]\n' + 'provision-bucket - Reconcile an S3 bucket for a logical bucket in the database.\nReads the bucket config via RLS, then enqueues the same\nstorage:provision_bucket job used by the INSERT trigger. This is\nidempotent for an already-reconciled bucket; enqueue failures become\nGraphQL errors.\n\nUsage: provision-bucket [OPTIONS]\n' ); process.exit(0); } 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-full-text-search.ts b/sdk/constructive-cli/src/modules/cli/commands/provision-full-text-search.ts deleted file mode 100644 index ef353f9429..0000000000 --- a/sdk/constructive-cli/src/modules/cli/commands/provision-full-text-search.ts +++ /dev/null @@ -1,53 +0,0 @@ -/** - * CLI command for mutation provisionFullTextSearch - * @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'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - 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' - ); - 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 - .provisionFullTextSearch( - parsedAnswers as unknown as ProvisionFullTextSearchVariables, - { - select: selectFields, - } as unknown as { - select: ProvisionFullTextSearchPayloadSelect; - } - ) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed: provisionFullTextSearch'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -}; diff --git a/sdk/constructive-cli/src/modules/cli/commands/provision-index.ts b/sdk/constructive-cli/src/modules/cli/commands/provision-index.ts deleted file mode 100644 index 76ad632afa..0000000000 --- a/sdk/constructive-cli/src/modules/cli/commands/provision-index.ts +++ /dev/null @@ -1,53 +0,0 @@ -/** - * CLI command for mutation provisionIndex - * @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'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - 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' - ); - 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 - .provisionIndex( - parsedAnswers as unknown as ProvisionIndexVariables, - { - select: selectFields, - } as unknown as { - select: ProvisionIndexPayloadSelect; - } - ) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed: provisionIndex'); - 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/provision-table.ts b/sdk/constructive-cli/src/modules/cli/commands/provision-table.ts deleted file mode 100644 index 2d0e98f46f..0000000000 --- a/sdk/constructive-cli/src/modules/cli/commands/provision-table.ts +++ /dev/null @@ -1,53 +0,0 @@ -/** - * CLI command for mutation provisionTable - * @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'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - 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' - ); - 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 - .provisionTable( - parsedAnswers as unknown as ProvisionTableVariables, - { - select: selectFields, - } as unknown as { - select: ProvisionTablePayloadSelect; - } - ) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed: provisionTable'); - 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/modules/cli/commands/provision-unique-constraint.ts deleted file mode 100644 index 97caac5c74..0000000000 --- a/sdk/constructive-cli/src/modules/cli/commands/provision-unique-constraint.ts +++ /dev/null @@ -1,53 +0,0 @@ -/** - * CLI command for mutation provisionUniqueConstraint - * @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'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - 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' - ); - 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 - .provisionUniqueConstraint( - parsedAnswers as unknown as ProvisionUniqueConstraintVariables, - { - select: selectFields, - } as unknown as { - select: ProvisionUniqueConstraintPayloadSelect; - } - ) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed: provisionUniqueConstraint'); - 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/refusal-log-module.ts b/sdk/constructive-cli/src/modules/cli/commands/refusal-log-module.ts new file mode 100644 index 0000000000..5ad7b81965 --- /dev/null +++ b/sdk/constructive-cli/src/modules/cli/commands/refusal-log-module.ts @@ -0,0 +1,711 @@ +/** + * CLI commands for RefusalLogModule + * @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 { + CreateRefusalLogModuleInput, + RefusalLogModulePatch, + RefusalLogModuleSelect, + RefusalLogModuleFilter, + RefusalLogModuleOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + apiName: 'string', + databaseId: 'uuid', + entityField: 'string', + id: 'uuid', + logInterval: 'string', + logPremake: 'int', + logRetention: 'string', + logTableId: 'uuid', + logTableName: 'string', + prefix: 'string', + privateApiName: 'string', + privateSchemaId: 'uuid', + privateSchemaName: 'string', + publicSchemaName: 'string', + recordRefusalsFunction: 'string', + rollupRefusalUsageSummaryFunction: 'string', + schemaId: 'uuid', + scope: 'string', + summaryInterval: 'string', + summaryPremake: 'int', + summaryRetention: 'string', + summaryTableId: 'uuid', + summaryTableName: 'string', +}; +const usage = + '\nrefusal-log-module \n\nCommands:\n list List refusalLogModule records\n find-first Find first matching refusalLogModule record\n get Get a refusalLogModule by ID\n create Create a new refusalLogModule\n update Update an existing refusalLogModule\n delete Delete a refusalLogModule\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, + entityField: true, + id: true, + logInterval: true, + logPremake: true, + logRetention: true, + logTableId: true, + logTableName: true, + prefix: true, + privateApiName: true, + privateSchemaId: true, + privateSchemaName: true, + publicSchemaName: true, + recordRefusalsFunction: true, + rollupRefusalUsageSummaryFunction: true, + schemaId: true, + scope: true, + summaryInterval: true, + summaryPremake: true, + summaryRetention: true, + summaryTableId: true, + summaryTableName: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: RefusalLogModuleSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.refusalLogModule.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, + entityField: true, + id: true, + logInterval: true, + logPremake: true, + logRetention: true, + logTableId: true, + logTableName: true, + prefix: true, + privateApiName: true, + privateSchemaId: true, + privateSchemaName: true, + publicSchemaName: true, + recordRefusalsFunction: true, + rollupRefusalUsageSummaryFunction: true, + schemaId: true, + scope: true, + summaryInterval: true, + summaryPremake: true, + summaryRetention: true, + summaryTableId: true, + summaryTableName: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: RefusalLogModuleSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.refusalLogModule.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.refusalLogModule + .findOne({ + id: answers.id as string, + select: { + apiName: true, + databaseId: true, + entityField: true, + id: true, + logInterval: true, + logPremake: true, + logRetention: true, + logTableId: true, + logTableName: true, + prefix: true, + privateApiName: true, + privateSchemaId: true, + privateSchemaName: true, + publicSchemaName: true, + recordRefusalsFunction: true, + rollupRefusalUsageSummaryFunction: true, + schemaId: true, + scope: true, + summaryInterval: true, + summaryPremake: true, + summaryRetention: true, + summaryTableId: true, + summaryTableName: 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: 'entityField', + message: 'entityField', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'logInterval', + message: 'logInterval', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'logPremake', + message: 'logPremake', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'logRetention', + message: 'logRetention', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'logTableId', + message: 'logTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'logTableName', + message: 'logTableName', + 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: 'text', + name: 'privateSchemaId', + message: 'privateSchemaId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateSchemaName', + message: 'privateSchemaName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'publicSchemaName', + message: 'publicSchemaName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'recordRefusalsFunction', + message: 'recordRefusalsFunction', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'rollupRefusalUsageSummaryFunction', + message: 'rollupRefusalUsageSummaryFunction', + 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: 'summaryInterval', + message: 'summaryInterval', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'summaryPremake', + message: 'summaryPremake', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'summaryRetention', + message: 'summaryRetention', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'summaryTableId', + message: 'summaryTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'summaryTableName', + message: 'summaryTableName', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateRefusalLogModuleInput['refusalLogModule']; + const client = getClient(); + const result = await client.refusalLogModule + .create({ + data: { + apiName: cleanedData.apiName, + databaseId: cleanedData.databaseId, + entityField: cleanedData.entityField, + logInterval: cleanedData.logInterval, + logPremake: cleanedData.logPremake, + logRetention: cleanedData.logRetention, + logTableId: cleanedData.logTableId, + logTableName: cleanedData.logTableName, + prefix: cleanedData.prefix, + privateApiName: cleanedData.privateApiName, + privateSchemaId: cleanedData.privateSchemaId, + privateSchemaName: cleanedData.privateSchemaName, + publicSchemaName: cleanedData.publicSchemaName, + recordRefusalsFunction: cleanedData.recordRefusalsFunction, + rollupRefusalUsageSummaryFunction: cleanedData.rollupRefusalUsageSummaryFunction, + schemaId: cleanedData.schemaId, + scope: cleanedData.scope, + summaryInterval: cleanedData.summaryInterval, + summaryPremake: cleanedData.summaryPremake, + summaryRetention: cleanedData.summaryRetention, + summaryTableId: cleanedData.summaryTableId, + summaryTableName: cleanedData.summaryTableName, + }, + select: { + apiName: true, + databaseId: true, + entityField: true, + id: true, + logInterval: true, + logPremake: true, + logRetention: true, + logTableId: true, + logTableName: true, + prefix: true, + privateApiName: true, + privateSchemaId: true, + privateSchemaName: true, + publicSchemaName: true, + recordRefusalsFunction: true, + rollupRefusalUsageSummaryFunction: true, + schemaId: true, + scope: true, + summaryInterval: true, + summaryPremake: true, + summaryRetention: true, + summaryTableId: true, + summaryTableName: 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: 'entityField', + message: 'entityField', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'logInterval', + message: 'logInterval', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'logPremake', + message: 'logPremake', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'logRetention', + message: 'logRetention', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'logTableId', + message: 'logTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'logTableName', + message: 'logTableName', + 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: 'text', + name: 'privateSchemaId', + message: 'privateSchemaId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateSchemaName', + message: 'privateSchemaName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'publicSchemaName', + message: 'publicSchemaName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'recordRefusalsFunction', + message: 'recordRefusalsFunction', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'rollupRefusalUsageSummaryFunction', + message: 'rollupRefusalUsageSummaryFunction', + 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: 'summaryInterval', + message: 'summaryInterval', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'summaryPremake', + message: 'summaryPremake', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'summaryRetention', + message: 'summaryRetention', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'summaryTableId', + message: 'summaryTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'summaryTableName', + message: 'summaryTableName', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as RefusalLogModulePatch; + const client = getClient(); + const result = await client.refusalLogModule + .update({ + where: { + id: answers.id as string, + }, + data: { + apiName: cleanedData.apiName, + databaseId: cleanedData.databaseId, + entityField: cleanedData.entityField, + logInterval: cleanedData.logInterval, + logPremake: cleanedData.logPremake, + logRetention: cleanedData.logRetention, + logTableId: cleanedData.logTableId, + logTableName: cleanedData.logTableName, + prefix: cleanedData.prefix, + privateApiName: cleanedData.privateApiName, + privateSchemaId: cleanedData.privateSchemaId, + privateSchemaName: cleanedData.privateSchemaName, + publicSchemaName: cleanedData.publicSchemaName, + recordRefusalsFunction: cleanedData.recordRefusalsFunction, + rollupRefusalUsageSummaryFunction: cleanedData.rollupRefusalUsageSummaryFunction, + schemaId: cleanedData.schemaId, + scope: cleanedData.scope, + summaryInterval: cleanedData.summaryInterval, + summaryPremake: cleanedData.summaryPremake, + summaryRetention: cleanedData.summaryRetention, + summaryTableId: cleanedData.summaryTableId, + summaryTableName: cleanedData.summaryTableName, + }, + select: { + apiName: true, + databaseId: true, + entityField: true, + id: true, + logInterval: true, + logPremake: true, + logRetention: true, + logTableId: true, + logTableName: true, + prefix: true, + privateApiName: true, + privateSchemaId: true, + privateSchemaName: true, + publicSchemaName: true, + recordRefusalsFunction: true, + rollupRefusalUsageSummaryFunction: true, + schemaId: true, + scope: true, + summaryInterval: true, + summaryPremake: true, + summaryRetention: true, + summaryTableId: true, + summaryTableName: 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.refusalLogModule + .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/repository-module.ts b/sdk/constructive-cli/src/modules/cli/commands/repository-module.ts new file mode 100644 index 0000000000..3b08db6794 --- /dev/null +++ b/sdk/constructive-cli/src/modules/cli/commands/repository-module.ts @@ -0,0 +1,1085 @@ +/** + * CLI commands for RepositoryModule + * @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 { + CreateRepositoryModuleInput, + RepositoryModulePatch, + RepositoryModuleSelect, + RepositoryModuleFilter, + RepositoryModuleOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + apiName: 'string', + buildStepsTableId: 'uuid', + buildStepsTableName: 'string', + buildsTableId: 'uuid', + buildsTableName: 'string', + databaseId: 'uuid', + defaultCapabilities: 'string', + entityField: 'string', + entityTableId: 'uuid', + hasAttachments: 'boolean', + hasBuilds: 'boolean', + id: 'uuid', + policies: 'json', + prefix: 'string', + privateApiName: 'string', + privateSchemaId: 'uuid', + privateSchemaName: 'string', + proposalCommentsTableId: 'uuid', + proposalCommentsTableName: 'string', + proposalFileViewsTableId: 'uuid', + proposalFileViewsTableName: 'string', + proposalReactionsTableId: 'uuid', + proposalReactionsTableName: 'string', + proposalReviewsTableId: 'uuid', + proposalReviewsTableName: 'string', + proposalsTableId: 'uuid', + proposalsTableName: 'string', + provisions: 'json', + publicSchemaName: 'string', + repositoriesTableId: 'uuid', + repositoriesTableName: 'string', + repositoryEventsTableId: 'uuid', + repositoryEventsTableName: 'string', + repositoryRequiredChecksTableId: 'uuid', + repositoryRequiredChecksTableName: 'string', + schemaId: 'uuid', + scope: 'string', + search: 'json', + workflowsTableId: 'uuid', + workflowsTableName: 'string', +}; +const usage = + '\nrepository-module \n\nCommands:\n list List repositoryModule records\n find-first Find first matching repositoryModule record\n get Get a repositoryModule by ID\n create Create a new repositoryModule\n update Update an existing repositoryModule\n delete Delete a repositoryModule\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, + buildStepsTableId: true, + buildStepsTableName: true, + buildsTableId: true, + buildsTableName: true, + databaseId: true, + defaultCapabilities: true, + entityField: true, + entityTableId: true, + hasAttachments: true, + hasBuilds: true, + id: true, + policies: true, + prefix: true, + privateApiName: true, + privateSchemaId: true, + privateSchemaName: true, + proposalCommentsTableId: true, + proposalCommentsTableName: true, + proposalFileViewsTableId: true, + proposalFileViewsTableName: true, + proposalReactionsTableId: true, + proposalReactionsTableName: true, + proposalReviewsTableId: true, + proposalReviewsTableName: true, + proposalsTableId: true, + proposalsTableName: true, + provisions: true, + publicSchemaName: true, + repositoriesTableId: true, + repositoriesTableName: true, + repositoryEventsTableId: true, + repositoryEventsTableName: true, + repositoryRequiredChecksTableId: true, + repositoryRequiredChecksTableName: true, + schemaId: true, + scope: true, + search: true, + workflowsTableId: true, + workflowsTableName: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: RepositoryModuleSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.repositoryModule.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, + buildStepsTableId: true, + buildStepsTableName: true, + buildsTableId: true, + buildsTableName: true, + databaseId: true, + defaultCapabilities: true, + entityField: true, + entityTableId: true, + hasAttachments: true, + hasBuilds: true, + id: true, + policies: true, + prefix: true, + privateApiName: true, + privateSchemaId: true, + privateSchemaName: true, + proposalCommentsTableId: true, + proposalCommentsTableName: true, + proposalFileViewsTableId: true, + proposalFileViewsTableName: true, + proposalReactionsTableId: true, + proposalReactionsTableName: true, + proposalReviewsTableId: true, + proposalReviewsTableName: true, + proposalsTableId: true, + proposalsTableName: true, + provisions: true, + publicSchemaName: true, + repositoriesTableId: true, + repositoriesTableName: true, + repositoryEventsTableId: true, + repositoryEventsTableName: true, + repositoryRequiredChecksTableId: true, + repositoryRequiredChecksTableName: true, + schemaId: true, + scope: true, + search: true, + workflowsTableId: true, + workflowsTableName: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: RepositoryModuleSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.repositoryModule.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.repositoryModule + .findOne({ + id: answers.id as string, + select: { + apiName: true, + buildStepsTableId: true, + buildStepsTableName: true, + buildsTableId: true, + buildsTableName: true, + databaseId: true, + defaultCapabilities: true, + entityField: true, + entityTableId: true, + hasAttachments: true, + hasBuilds: true, + id: true, + policies: true, + prefix: true, + privateApiName: true, + privateSchemaId: true, + privateSchemaName: true, + proposalCommentsTableId: true, + proposalCommentsTableName: true, + proposalFileViewsTableId: true, + proposalFileViewsTableName: true, + proposalReactionsTableId: true, + proposalReactionsTableName: true, + proposalReviewsTableId: true, + proposalReviewsTableName: true, + proposalsTableId: true, + proposalsTableName: true, + provisions: true, + publicSchemaName: true, + repositoriesTableId: true, + repositoriesTableName: true, + repositoryEventsTableId: true, + repositoryEventsTableName: true, + repositoryRequiredChecksTableId: true, + repositoryRequiredChecksTableName: true, + schemaId: true, + scope: true, + search: true, + workflowsTableId: true, + workflowsTableName: 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: 'buildStepsTableId', + message: 'buildStepsTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'buildStepsTableName', + message: 'buildStepsTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'buildsTableId', + message: 'buildsTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'buildsTableName', + message: 'buildsTableName', + 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: 'entityField', + message: 'entityField', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'entityTableId', + message: 'entityTableId', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'hasAttachments', + message: 'hasAttachments', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'hasBuilds', + message: 'hasBuilds', + 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: 'text', + name: 'privateSchemaId', + message: 'privateSchemaId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateSchemaName', + message: 'privateSchemaName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'proposalCommentsTableId', + message: 'proposalCommentsTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'proposalCommentsTableName', + message: 'proposalCommentsTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'proposalFileViewsTableId', + message: 'proposalFileViewsTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'proposalFileViewsTableName', + message: 'proposalFileViewsTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'proposalReactionsTableId', + message: 'proposalReactionsTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'proposalReactionsTableName', + message: 'proposalReactionsTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'proposalReviewsTableId', + message: 'proposalReviewsTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'proposalReviewsTableName', + message: 'proposalReviewsTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'proposalsTableId', + message: 'proposalsTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'proposalsTableName', + message: 'proposalsTableName', + 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: 'repositoriesTableId', + message: 'repositoriesTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'repositoriesTableName', + message: 'repositoriesTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'repositoryEventsTableId', + message: 'repositoryEventsTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'repositoryEventsTableName', + message: 'repositoryEventsTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'repositoryRequiredChecksTableId', + message: 'repositoryRequiredChecksTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'repositoryRequiredChecksTableName', + message: 'repositoryRequiredChecksTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'schemaId', + message: 'schemaId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'scope', + message: 'scope', + required: true, + }, + { + type: 'json', + name: 'search', + message: 'search', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'workflowsTableId', + message: 'workflowsTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'workflowsTableName', + message: 'workflowsTableName', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateRepositoryModuleInput['repositoryModule']; + const client = getClient(); + const result = await client.repositoryModule + .create({ + data: { + apiName: cleanedData.apiName, + buildStepsTableId: cleanedData.buildStepsTableId, + buildStepsTableName: cleanedData.buildStepsTableName, + buildsTableId: cleanedData.buildsTableId, + buildsTableName: cleanedData.buildsTableName, + databaseId: cleanedData.databaseId, + defaultCapabilities: cleanedData.defaultCapabilities, + entityField: cleanedData.entityField, + entityTableId: cleanedData.entityTableId, + hasAttachments: cleanedData.hasAttachments, + hasBuilds: cleanedData.hasBuilds, + policies: cleanedData.policies, + prefix: cleanedData.prefix, + privateApiName: cleanedData.privateApiName, + privateSchemaId: cleanedData.privateSchemaId, + privateSchemaName: cleanedData.privateSchemaName, + proposalCommentsTableId: cleanedData.proposalCommentsTableId, + proposalCommentsTableName: cleanedData.proposalCommentsTableName, + proposalFileViewsTableId: cleanedData.proposalFileViewsTableId, + proposalFileViewsTableName: cleanedData.proposalFileViewsTableName, + proposalReactionsTableId: cleanedData.proposalReactionsTableId, + proposalReactionsTableName: cleanedData.proposalReactionsTableName, + proposalReviewsTableId: cleanedData.proposalReviewsTableId, + proposalReviewsTableName: cleanedData.proposalReviewsTableName, + proposalsTableId: cleanedData.proposalsTableId, + proposalsTableName: cleanedData.proposalsTableName, + provisions: cleanedData.provisions, + publicSchemaName: cleanedData.publicSchemaName, + repositoriesTableId: cleanedData.repositoriesTableId, + repositoriesTableName: cleanedData.repositoriesTableName, + repositoryEventsTableId: cleanedData.repositoryEventsTableId, + repositoryEventsTableName: cleanedData.repositoryEventsTableName, + repositoryRequiredChecksTableId: cleanedData.repositoryRequiredChecksTableId, + repositoryRequiredChecksTableName: cleanedData.repositoryRequiredChecksTableName, + schemaId: cleanedData.schemaId, + scope: cleanedData.scope, + search: cleanedData.search, + workflowsTableId: cleanedData.workflowsTableId, + workflowsTableName: cleanedData.workflowsTableName, + }, + select: { + apiName: true, + buildStepsTableId: true, + buildStepsTableName: true, + buildsTableId: true, + buildsTableName: true, + databaseId: true, + defaultCapabilities: true, + entityField: true, + entityTableId: true, + hasAttachments: true, + hasBuilds: true, + id: true, + policies: true, + prefix: true, + privateApiName: true, + privateSchemaId: true, + privateSchemaName: true, + proposalCommentsTableId: true, + proposalCommentsTableName: true, + proposalFileViewsTableId: true, + proposalFileViewsTableName: true, + proposalReactionsTableId: true, + proposalReactionsTableName: true, + proposalReviewsTableId: true, + proposalReviewsTableName: true, + proposalsTableId: true, + proposalsTableName: true, + provisions: true, + publicSchemaName: true, + repositoriesTableId: true, + repositoriesTableName: true, + repositoryEventsTableId: true, + repositoryEventsTableName: true, + repositoryRequiredChecksTableId: true, + repositoryRequiredChecksTableName: true, + schemaId: true, + scope: true, + search: true, + workflowsTableId: true, + workflowsTableName: 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: 'buildStepsTableId', + message: 'buildStepsTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'buildStepsTableName', + message: 'buildStepsTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'buildsTableId', + message: 'buildsTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'buildsTableName', + message: 'buildsTableName', + 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: 'entityField', + message: 'entityField', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'entityTableId', + message: 'entityTableId', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'hasAttachments', + message: 'hasAttachments', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'hasBuilds', + message: 'hasBuilds', + 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: 'text', + name: 'privateSchemaId', + message: 'privateSchemaId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateSchemaName', + message: 'privateSchemaName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'proposalCommentsTableId', + message: 'proposalCommentsTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'proposalCommentsTableName', + message: 'proposalCommentsTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'proposalFileViewsTableId', + message: 'proposalFileViewsTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'proposalFileViewsTableName', + message: 'proposalFileViewsTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'proposalReactionsTableId', + message: 'proposalReactionsTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'proposalReactionsTableName', + message: 'proposalReactionsTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'proposalReviewsTableId', + message: 'proposalReviewsTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'proposalReviewsTableName', + message: 'proposalReviewsTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'proposalsTableId', + message: 'proposalsTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'proposalsTableName', + message: 'proposalsTableName', + 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: 'repositoriesTableId', + message: 'repositoriesTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'repositoriesTableName', + message: 'repositoriesTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'repositoryEventsTableId', + message: 'repositoryEventsTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'repositoryEventsTableName', + message: 'repositoryEventsTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'repositoryRequiredChecksTableId', + message: 'repositoryRequiredChecksTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'repositoryRequiredChecksTableName', + message: 'repositoryRequiredChecksTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'schemaId', + message: 'schemaId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'scope', + message: 'scope', + required: false, + }, + { + type: 'json', + name: 'search', + message: 'search', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'workflowsTableId', + message: 'workflowsTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'workflowsTableName', + message: 'workflowsTableName', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as RepositoryModulePatch; + const client = getClient(); + const result = await client.repositoryModule + .update({ + where: { + id: answers.id as string, + }, + data: { + apiName: cleanedData.apiName, + buildStepsTableId: cleanedData.buildStepsTableId, + buildStepsTableName: cleanedData.buildStepsTableName, + buildsTableId: cleanedData.buildsTableId, + buildsTableName: cleanedData.buildsTableName, + databaseId: cleanedData.databaseId, + defaultCapabilities: cleanedData.defaultCapabilities, + entityField: cleanedData.entityField, + entityTableId: cleanedData.entityTableId, + hasAttachments: cleanedData.hasAttachments, + hasBuilds: cleanedData.hasBuilds, + policies: cleanedData.policies, + prefix: cleanedData.prefix, + privateApiName: cleanedData.privateApiName, + privateSchemaId: cleanedData.privateSchemaId, + privateSchemaName: cleanedData.privateSchemaName, + proposalCommentsTableId: cleanedData.proposalCommentsTableId, + proposalCommentsTableName: cleanedData.proposalCommentsTableName, + proposalFileViewsTableId: cleanedData.proposalFileViewsTableId, + proposalFileViewsTableName: cleanedData.proposalFileViewsTableName, + proposalReactionsTableId: cleanedData.proposalReactionsTableId, + proposalReactionsTableName: cleanedData.proposalReactionsTableName, + proposalReviewsTableId: cleanedData.proposalReviewsTableId, + proposalReviewsTableName: cleanedData.proposalReviewsTableName, + proposalsTableId: cleanedData.proposalsTableId, + proposalsTableName: cleanedData.proposalsTableName, + provisions: cleanedData.provisions, + publicSchemaName: cleanedData.publicSchemaName, + repositoriesTableId: cleanedData.repositoriesTableId, + repositoriesTableName: cleanedData.repositoriesTableName, + repositoryEventsTableId: cleanedData.repositoryEventsTableId, + repositoryEventsTableName: cleanedData.repositoryEventsTableName, + repositoryRequiredChecksTableId: cleanedData.repositoryRequiredChecksTableId, + repositoryRequiredChecksTableName: cleanedData.repositoryRequiredChecksTableName, + schemaId: cleanedData.schemaId, + scope: cleanedData.scope, + search: cleanedData.search, + workflowsTableId: cleanedData.workflowsTableId, + workflowsTableName: cleanedData.workflowsTableName, + }, + select: { + apiName: true, + buildStepsTableId: true, + buildStepsTableName: true, + buildsTableId: true, + buildsTableName: true, + databaseId: true, + defaultCapabilities: true, + entityField: true, + entityTableId: true, + hasAttachments: true, + hasBuilds: true, + id: true, + policies: true, + prefix: true, + privateApiName: true, + privateSchemaId: true, + privateSchemaName: true, + proposalCommentsTableId: true, + proposalCommentsTableName: true, + proposalFileViewsTableId: true, + proposalFileViewsTableName: true, + proposalReactionsTableId: true, + proposalReactionsTableName: true, + proposalReviewsTableId: true, + proposalReviewsTableName: true, + proposalsTableId: true, + proposalsTableName: true, + provisions: true, + publicSchemaName: true, + repositoriesTableId: true, + repositoriesTableName: true, + repositoryEventsTableId: true, + repositoryEventsTableName: true, + repositoryRequiredChecksTableId: true, + repositoryRequiredChecksTableName: true, + schemaId: true, + scope: true, + search: true, + workflowsTableId: true, + workflowsTableName: 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.repositoryModule + .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/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..50621949a7 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/resource-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/resource-module.ts @@ -17,8 +17,10 @@ import type { import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { apiName: 'string', + builderBindingsTableId: 'uuid', + builderBindingsTableName: 'string', databaseId: 'uuid', - defaultPermissions: 'string', + defaultCapabilities: 'string', entityField: 'string', entityTableId: 'uuid', id: 'uuid', @@ -32,6 +34,8 @@ const fieldSchema: FieldSchema = { privateSchemaName: 'string', provisions: 'json', publicSchemaName: 'string', + registryBindingsTableId: 'uuid', + registryBindingsTableName: 'string', requirementsStateViewName: 'string', resolvedRequirementsViewName: 'string', resourceBillingRollupFunction: 'string', @@ -105,8 +109,10 @@ async function handleList(argv: Partial>, _prompter: Inq try { const defaultSelect = { apiName: true, + builderBindingsTableId: true, + builderBindingsTableName: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, id: true, @@ -120,6 +126,8 @@ async function handleList(argv: Partial>, _prompter: Inq privateSchemaName: true, provisions: true, publicSchemaName: true, + registryBindingsTableId: true, + registryBindingsTableName: true, requirementsStateViewName: true, resolvedRequirementsViewName: true, resourceBillingRollupFunction: true, @@ -161,8 +169,10 @@ async function handleFindFirst(argv: Partial>, _prompter try { const defaultSelect = { apiName: true, + builderBindingsTableId: true, + builderBindingsTableName: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, id: true, @@ -176,6 +186,8 @@ async function handleFindFirst(argv: Partial>, _prompter privateSchemaName: true, provisions: true, publicSchemaName: true, + registryBindingsTableId: true, + registryBindingsTableName: true, requirementsStateViewName: true, resolvedRequirementsViewName: true, resourceBillingRollupFunction: true, @@ -229,8 +241,10 @@ async function handleGet(argv: Partial>, prompter: Inqui id: answers.id as string, select: { apiName: true, + builderBindingsTableId: true, + builderBindingsTableName: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, id: true, @@ -244,6 +258,8 @@ async function handleGet(argv: Partial>, prompter: Inqui privateSchemaName: true, provisions: true, publicSchemaName: true, + registryBindingsTableId: true, + registryBindingsTableName: true, requirementsStateViewName: true, resolvedRequirementsViewName: true, resourceBillingRollupFunction: true, @@ -286,6 +302,20 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'builderBindingsTableId', + message: 'builderBindingsTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'builderBindingsTableName', + message: 'builderBindingsTableName', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'databaseId', @@ -294,8 +324,8 @@ async function handleCreate(argv: Partial>, prompter: In }, { type: 'text', - name: 'defaultPermissions', - message: 'defaultPermissions', + name: 'defaultCapabilities', + message: 'defaultCapabilities', required: false, skipPrompt: true, }, @@ -383,6 +413,20 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'registryBindingsTableId', + message: 'registryBindingsTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'registryBindingsTableName', + message: 'registryBindingsTableName', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'requirementsStateViewName', @@ -533,8 +577,10 @@ async function handleCreate(argv: Partial>, prompter: In .create({ data: { apiName: cleanedData.apiName, + builderBindingsTableId: cleanedData.builderBindingsTableId, + builderBindingsTableName: cleanedData.builderBindingsTableName, databaseId: cleanedData.databaseId, - defaultPermissions: cleanedData.defaultPermissions, + defaultCapabilities: cleanedData.defaultCapabilities, entityField: cleanedData.entityField, entityTableId: cleanedData.entityTableId, installationStoreName: cleanedData.installationStoreName, @@ -547,6 +593,8 @@ async function handleCreate(argv: Partial>, prompter: In privateSchemaName: cleanedData.privateSchemaName, provisions: cleanedData.provisions, publicSchemaName: cleanedData.publicSchemaName, + registryBindingsTableId: cleanedData.registryBindingsTableId, + registryBindingsTableName: cleanedData.registryBindingsTableName, requirementsStateViewName: cleanedData.requirementsStateViewName, resolvedRequirementsViewName: cleanedData.resolvedRequirementsViewName, resourceBillingRollupFunction: cleanedData.resourceBillingRollupFunction, @@ -570,8 +618,10 @@ async function handleCreate(argv: Partial>, prompter: In }, select: { apiName: true, + builderBindingsTableId: true, + builderBindingsTableName: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, id: true, @@ -585,6 +635,8 @@ async function handleCreate(argv: Partial>, prompter: In privateSchemaName: true, provisions: true, publicSchemaName: true, + registryBindingsTableId: true, + registryBindingsTableName: true, requirementsStateViewName: true, resolvedRequirementsViewName: true, resourceBillingRollupFunction: true, @@ -633,6 +685,20 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'builderBindingsTableId', + message: 'builderBindingsTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'builderBindingsTableName', + message: 'builderBindingsTableName', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'databaseId', @@ -641,8 +707,8 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'defaultPermissions', - message: 'defaultPermissions', + name: 'defaultCapabilities', + message: 'defaultCapabilities', required: false, skipPrompt: true, }, @@ -730,6 +796,20 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'registryBindingsTableId', + message: 'registryBindingsTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'registryBindingsTableName', + message: 'registryBindingsTableName', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'requirementsStateViewName', @@ -880,8 +960,10 @@ async function handleUpdate(argv: Partial>, prompter: In }, data: { apiName: cleanedData.apiName, + builderBindingsTableId: cleanedData.builderBindingsTableId, + builderBindingsTableName: cleanedData.builderBindingsTableName, databaseId: cleanedData.databaseId, - defaultPermissions: cleanedData.defaultPermissions, + defaultCapabilities: cleanedData.defaultCapabilities, entityField: cleanedData.entityField, entityTableId: cleanedData.entityTableId, installationStoreName: cleanedData.installationStoreName, @@ -894,6 +976,8 @@ async function handleUpdate(argv: Partial>, prompter: In privateSchemaName: cleanedData.privateSchemaName, provisions: cleanedData.provisions, publicSchemaName: cleanedData.publicSchemaName, + registryBindingsTableId: cleanedData.registryBindingsTableId, + registryBindingsTableName: cleanedData.registryBindingsTableName, requirementsStateViewName: cleanedData.requirementsStateViewName, resolvedRequirementsViewName: cleanedData.resolvedRequirementsViewName, resourceBillingRollupFunction: cleanedData.resourceBillingRollupFunction, @@ -917,8 +1001,10 @@ async function handleUpdate(argv: Partial>, prompter: In }, select: { apiName: true, + builderBindingsTableId: true, + builderBindingsTableName: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, id: true, @@ -932,6 +1018,8 @@ async function handleUpdate(argv: Partial>, prompter: In privateSchemaName: true, provisions: true, publicSchemaName: true, + registryBindingsTableId: true, + registryBindingsTableName: true, requirementsStateViewName: true, resolvedRequirementsViewName: true, resourceBillingRollupFunction: 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..94a92911b5 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', @@ -33,6 +35,8 @@ const fieldSchema: FieldSchema = { privateSchemaName: 'string', provisions: 'json', publicSchemaName: 'string', + redirectsTableId: 'uuid', + redirectsTableName: 'string', resolverFunctionName: 'string', routeBindingsTableId: 'uuid', routeBindingsTableName: 'string', @@ -40,6 +44,8 @@ const fieldSchema: FieldSchema = { routesTableName: 'string', schemaId: 'uuid', scope: 'string', + servingSiteField: 'string', + storageKey: 'string', }; const usage = '\nroute-module \n\nCommands:\n list List routeModule records\n find-first Find first matching routeModule record\n get Get a routeModule by ID\n create Create a new routeModule\n update Update an existing routeModule\n delete Delete a routeModule\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,9 +99,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, @@ -109,6 +117,8 @@ async function handleList(argv: Partial>, _prompter: Inq privateSchemaName: true, provisions: true, publicSchemaName: true, + redirectsTableId: true, + redirectsTableName: true, resolverFunctionName: true, routeBindingsTableId: true, routeBindingsTableName: true, @@ -116,6 +126,8 @@ async function handleList(argv: Partial>, _prompter: Inq routesTableName: true, schemaId: true, scope: true, + servingSiteField: true, + storageKey: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs & { @@ -137,9 +149,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, @@ -153,6 +167,8 @@ async function handleFindFirst(argv: Partial>, _prompter privateSchemaName: true, provisions: true, publicSchemaName: true, + redirectsTableId: true, + redirectsTableName: true, resolverFunctionName: true, routeBindingsTableId: true, routeBindingsTableName: true, @@ -160,6 +176,8 @@ async function handleFindFirst(argv: Partial>, _prompter routesTableName: true, schemaId: true, scope: true, + servingSiteField: true, + storageKey: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs & { @@ -193,9 +211,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, @@ -209,6 +229,8 @@ async function handleGet(argv: Partial>, prompter: Inqui privateSchemaName: true, provisions: true, publicSchemaName: true, + redirectsTableId: true, + redirectsTableName: true, resolverFunctionName: true, routeBindingsTableId: true, routeBindingsTableName: true, @@ -216,6 +238,8 @@ async function handleGet(argv: Partial>, prompter: Inqui routesTableName: true, schemaId: true, scope: true, + servingSiteField: true, + storageKey: true, }, }) .execute(); @@ -238,6 +262,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 +284,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, }, @@ -342,6 +380,20 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'redirectsTableId', + message: 'redirectsTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'redirectsTableName', + message: 'redirectsTableName', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'resolverFunctionName', @@ -390,6 +442,20 @@ async function handleCreate(argv: Partial>, prompter: In message: 'scope', required: true, }, + { + type: 'text', + name: 'servingSiteField', + message: 'servingSiteField', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'storageKey', + message: 'storageKey', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined( @@ -401,9 +467,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, @@ -416,6 +484,8 @@ async function handleCreate(argv: Partial>, prompter: In privateSchemaName: cleanedData.privateSchemaName, provisions: cleanedData.provisions, publicSchemaName: cleanedData.publicSchemaName, + redirectsTableId: cleanedData.redirectsTableId, + redirectsTableName: cleanedData.redirectsTableName, resolverFunctionName: cleanedData.resolverFunctionName, routeBindingsTableId: cleanedData.routeBindingsTableId, routeBindingsTableName: cleanedData.routeBindingsTableName, @@ -423,12 +493,16 @@ async function handleCreate(argv: Partial>, prompter: In routesTableName: cleanedData.routesTableName, schemaId: cleanedData.schemaId, scope: cleanedData.scope, + servingSiteField: cleanedData.servingSiteField, + storageKey: cleanedData.storageKey, }, select: { apiName: true, + appLinksFunctionName: true, catalogModuleId: true, databaseId: true, - defaultPermissions: true, + deepLinkFunctionName: true, + defaultCapabilities: true, domainModuleId: true, entityField: true, entityTableId: true, @@ -442,6 +516,8 @@ async function handleCreate(argv: Partial>, prompter: In privateSchemaName: true, provisions: true, publicSchemaName: true, + redirectsTableId: true, + redirectsTableName: true, resolverFunctionName: true, routeBindingsTableId: true, routeBindingsTableName: true, @@ -449,6 +525,8 @@ async function handleCreate(argv: Partial>, prompter: In routesTableName: true, schemaId: true, scope: true, + servingSiteField: true, + storageKey: true, }, }) .execute(); @@ -477,6 +555,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 +577,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, }, @@ -581,6 +673,20 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'redirectsTableId', + message: 'redirectsTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'redirectsTableName', + message: 'redirectsTableName', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'resolverFunctionName', @@ -629,6 +735,20 @@ async function handleUpdate(argv: Partial>, prompter: In message: 'scope', required: false, }, + { + type: 'text', + name: 'servingSiteField', + message: 'servingSiteField', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'storageKey', + message: 'storageKey', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as RouteModulePatch; @@ -640,9 +760,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, @@ -655,6 +777,8 @@ async function handleUpdate(argv: Partial>, prompter: In privateSchemaName: cleanedData.privateSchemaName, provisions: cleanedData.provisions, publicSchemaName: cleanedData.publicSchemaName, + redirectsTableId: cleanedData.redirectsTableId, + redirectsTableName: cleanedData.redirectsTableName, resolverFunctionName: cleanedData.resolverFunctionName, routeBindingsTableId: cleanedData.routeBindingsTableId, routeBindingsTableName: cleanedData.routeBindingsTableName, @@ -662,12 +786,16 @@ async function handleUpdate(argv: Partial>, prompter: In routesTableName: cleanedData.routesTableName, schemaId: cleanedData.schemaId, scope: cleanedData.scope, + servingSiteField: cleanedData.servingSiteField, + storageKey: cleanedData.storageKey, }, select: { apiName: true, + appLinksFunctionName: true, catalogModuleId: true, databaseId: true, - defaultPermissions: true, + deepLinkFunctionName: true, + defaultCapabilities: true, domainModuleId: true, entityField: true, entityTableId: true, @@ -681,6 +809,8 @@ async function handleUpdate(argv: Partial>, prompter: In privateSchemaName: true, provisions: true, publicSchemaName: true, + redirectsTableId: true, + redirectsTableName: true, resolverFunctionName: true, routeBindingsTableId: true, routeBindingsTableName: true, @@ -688,6 +818,8 @@ async function handleUpdate(argv: Partial>, prompter: In routesTableName: true, schemaId: true, scope: true, + servingSiteField: true, + storageKey: true, }, }) .execute(); 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/secure-table-provision.ts b/sdk/constructive-cli/src/modules/cli/commands/secure-table-provision.ts index a8f7164764..acc4d9d018 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/secure-table-provision.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/secure-table-provision.ts @@ -20,8 +20,10 @@ const fieldSchema: FieldSchema = { fields: 'json', grants: 'json', id: 'uuid', + module: 'json', nodes: 'json', outFields: 'uuid', + owns: 'json', policies: 'json', schemaId: 'uuid', tableId: 'uuid', @@ -83,8 +85,10 @@ async function handleList(argv: Partial>, _prompter: Inq fields: true, grants: true, id: true, + module: true, nodes: true, outFields: true, + owns: true, policies: true, schemaId: true, tableId: true, @@ -118,8 +122,10 @@ async function handleFindFirst(argv: Partial>, _prompter fields: true, grants: true, id: true, + module: true, nodes: true, outFields: true, + owns: true, policies: true, schemaId: true, tableId: true, @@ -165,8 +171,10 @@ async function handleGet(argv: Partial>, prompter: Inqui fields: true, grants: true, id: true, + module: true, nodes: true, outFields: true, + owns: true, policies: true, schemaId: true, tableId: true, @@ -207,6 +215,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'json', + name: 'module', + message: 'module', + required: false, + skipPrompt: true, + }, { type: 'json', name: 'nodes', @@ -221,6 +236,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'json', + name: 'owns', + message: 'owns', + required: false, + skipPrompt: true, + }, { type: 'json', name: 'policies', @@ -269,8 +291,10 @@ async function handleCreate(argv: Partial>, prompter: In databaseId: cleanedData.databaseId, fields: cleanedData.fields, grants: cleanedData.grants, + module: cleanedData.module, nodes: cleanedData.nodes, outFields: cleanedData.outFields, + owns: cleanedData.owns, policies: cleanedData.policies, schemaId: cleanedData.schemaId, tableId: cleanedData.tableId, @@ -282,8 +306,10 @@ async function handleCreate(argv: Partial>, prompter: In fields: true, grants: true, id: true, + module: true, nodes: true, outFields: true, + owns: true, policies: true, schemaId: true, tableId: true, @@ -330,6 +356,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'json', + name: 'module', + message: 'module', + required: false, + skipPrompt: true, + }, { type: 'json', name: 'nodes', @@ -344,6 +377,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'json', + name: 'owns', + message: 'owns', + required: false, + skipPrompt: true, + }, { type: 'json', name: 'policies', @@ -392,8 +432,10 @@ async function handleUpdate(argv: Partial>, prompter: In databaseId: cleanedData.databaseId, fields: cleanedData.fields, grants: cleanedData.grants, + module: cleanedData.module, nodes: cleanedData.nodes, outFields: cleanedData.outFields, + owns: cleanedData.owns, policies: cleanedData.policies, schemaId: cleanedData.schemaId, tableId: cleanedData.tableId, @@ -405,8 +447,10 @@ async function handleUpdate(argv: Partial>, prompter: In fields: true, grants: true, id: true, + module: true, nodes: true, outFields: true, + owns: true, policies: true, schemaId: true, tableId: true, 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..de6f1fbb4c 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', @@ -42,12 +42,15 @@ const fieldSchema: FieldSchema = { siteMetadataTableName: 'string', siteModulesTableId: 'uuid', siteModulesTableName: 'string', + siteReleasesTableId: 'uuid', + siteReleasesTableName: 'string', siteThemesTableId: 'uuid', siteThemesTableName: 'string', siteWebConfigTableId: 'uuid', siteWebConfigTableName: 'string', sitesTableId: 'uuid', sitesTableName: 'string', + storageKey: 'string', }; const usage = '\nsite-surface-module \n\nCommands:\n list List siteSurfaceModule records\n find-first Find first matching siteSurfaceModule record\n get Get a siteSurfaceModule by ID\n create Create a new siteSurfaceModule\n update Update an existing siteSurfaceModule\n delete Delete a siteSurfaceModule\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'; @@ -103,7 +106,7 @@ async function handleList(argv: Partial>, _prompter: Inq apiName: true, catalogModuleId: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, id: true, @@ -126,12 +129,15 @@ async function handleList(argv: Partial>, _prompter: Inq siteMetadataTableName: true, siteModulesTableId: true, siteModulesTableName: true, + siteReleasesTableId: true, + siteReleasesTableName: true, siteThemesTableId: true, siteThemesTableName: true, siteWebConfigTableId: true, siteWebConfigTableName: true, sitesTableId: true, sitesTableName: true, + storageKey: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs & { @@ -155,7 +161,7 @@ async function handleFindFirst(argv: Partial>, _prompter apiName: true, catalogModuleId: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, id: true, @@ -178,12 +184,15 @@ async function handleFindFirst(argv: Partial>, _prompter siteMetadataTableName: true, siteModulesTableId: true, siteModulesTableName: true, + siteReleasesTableId: true, + siteReleasesTableName: true, siteThemesTableId: true, siteThemesTableName: true, siteWebConfigTableId: true, siteWebConfigTableName: true, sitesTableId: true, sitesTableName: true, + storageKey: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs & { @@ -219,7 +228,7 @@ async function handleGet(argv: Partial>, prompter: Inqui apiName: true, catalogModuleId: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, id: true, @@ -242,12 +251,15 @@ async function handleGet(argv: Partial>, prompter: Inqui siteMetadataTableName: true, siteModulesTableId: true, siteModulesTableName: true, + siteReleasesTableId: true, + siteReleasesTableName: true, siteThemesTableId: true, siteThemesTableName: true, siteWebConfigTableId: true, siteWebConfigTableName: true, sitesTableId: true, sitesTableName: true, + storageKey: true, }, }) .execute(); @@ -285,8 +297,8 @@ async function handleCreate(argv: Partial>, prompter: In }, { type: 'text', - name: 'defaultPermissions', - message: 'defaultPermissions', + name: 'defaultCapabilities', + message: 'defaultCapabilities', required: false, skipPrompt: true, }, @@ -436,6 +448,20 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'siteReleasesTableId', + message: 'siteReleasesTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'siteReleasesTableName', + message: 'siteReleasesTableName', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'siteThemesTableId', @@ -478,6 +504,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'storageKey', + message: 'storageKey', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined( @@ -491,7 +524,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, @@ -513,18 +546,21 @@ async function handleCreate(argv: Partial>, prompter: In siteMetadataTableName: cleanedData.siteMetadataTableName, siteModulesTableId: cleanedData.siteModulesTableId, siteModulesTableName: cleanedData.siteModulesTableName, + siteReleasesTableId: cleanedData.siteReleasesTableId, + siteReleasesTableName: cleanedData.siteReleasesTableName, siteThemesTableId: cleanedData.siteThemesTableId, siteThemesTableName: cleanedData.siteThemesTableName, siteWebConfigTableId: cleanedData.siteWebConfigTableId, siteWebConfigTableName: cleanedData.siteWebConfigTableName, sitesTableId: cleanedData.sitesTableId, sitesTableName: cleanedData.sitesTableName, + storageKey: cleanedData.storageKey, }, select: { apiName: true, catalogModuleId: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, id: true, @@ -547,12 +583,15 @@ async function handleCreate(argv: Partial>, prompter: In siteMetadataTableName: true, siteModulesTableId: true, siteModulesTableName: true, + siteReleasesTableId: true, + siteReleasesTableName: true, siteThemesTableId: true, siteThemesTableName: true, siteWebConfigTableId: true, siteWebConfigTableName: true, sitesTableId: true, sitesTableName: true, + storageKey: true, }, }) .execute(); @@ -596,8 +635,8 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'defaultPermissions', - message: 'defaultPermissions', + name: 'defaultCapabilities', + message: 'defaultCapabilities', required: false, skipPrompt: true, }, @@ -747,6 +786,20 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'siteReleasesTableId', + message: 'siteReleasesTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'siteReleasesTableName', + message: 'siteReleasesTableName', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'siteThemesTableId', @@ -789,6 +842,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'storageKey', + message: 'storageKey', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as SiteSurfaceModulePatch; @@ -802,7 +862,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, @@ -824,18 +884,21 @@ async function handleUpdate(argv: Partial>, prompter: In siteMetadataTableName: cleanedData.siteMetadataTableName, siteModulesTableId: cleanedData.siteModulesTableId, siteModulesTableName: cleanedData.siteModulesTableName, + siteReleasesTableId: cleanedData.siteReleasesTableId, + siteReleasesTableName: cleanedData.siteReleasesTableName, siteThemesTableId: cleanedData.siteThemesTableId, siteThemesTableName: cleanedData.siteThemesTableName, siteWebConfigTableId: cleanedData.siteWebConfigTableId, siteWebConfigTableName: cleanedData.siteWebConfigTableName, sitesTableId: cleanedData.sitesTableId, sitesTableName: cleanedData.sitesTableName, + storageKey: cleanedData.storageKey, }, select: { apiName: true, catalogModuleId: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, id: true, @@ -858,12 +921,15 @@ async function handleUpdate(argv: Partial>, prompter: In siteMetadataTableName: true, siteModulesTableId: true, siteModulesTableName: true, + siteReleasesTableId: true, + siteReleasesTableName: true, siteThemesTableId: true, siteThemesTableName: true, siteWebConfigTableId: true, siteWebConfigTableName: true, sitesTableId: true, sitesTableName: true, + storageKey: true, }, }) .execute(); diff --git a/sdk/constructive-cli/src/modules/cli/commands/storage-log-module.ts b/sdk/constructive-cli/src/modules/cli/commands/storage-log-module.ts index f152f8805b..8f7e1acda4 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/storage-log-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/storage-log-module.ts @@ -16,11 +16,9 @@ import type { } from '../../orm/input-types'; import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { - actorFkTableId: 'uuid', apiName: 'string', databaseId: 'uuid', entityField: 'string', - entityFkTableId: 'uuid', id: 'uuid', interval: 'string', prefix: 'string', @@ -30,6 +28,7 @@ const fieldSchema: FieldSchema = { privateSchemaName: 'string', publicSchemaName: 'string', retention: 'string', + rollupFunctionName: 'string', schemaId: 'uuid', scope: 'string', storageLogTableId: 'uuid', @@ -88,11 +87,9 @@ async function handleTableSubcommand( async function handleList(argv: Partial>, _prompter: Inquirerer) { try { const defaultSelect = { - actorFkTableId: true, apiName: true, databaseId: true, entityField: true, - entityFkTableId: true, id: true, interval: true, prefix: true, @@ -102,6 +99,7 @@ async function handleList(argv: Partial>, _prompter: Inq privateSchemaName: true, publicSchemaName: true, retention: true, + rollupFunctionName: true, schemaId: true, scope: true, storageLogTableId: true, @@ -128,11 +126,9 @@ async function handleList(argv: Partial>, _prompter: Inq async function handleFindFirst(argv: Partial>, _prompter: Inquirerer) { try { const defaultSelect = { - actorFkTableId: true, apiName: true, databaseId: true, entityField: true, - entityFkTableId: true, id: true, interval: true, prefix: true, @@ -142,6 +138,7 @@ async function handleFindFirst(argv: Partial>, _prompter privateSchemaName: true, publicSchemaName: true, retention: true, + rollupFunctionName: true, schemaId: true, scope: true, storageLogTableId: true, @@ -180,11 +177,9 @@ async function handleGet(argv: Partial>, prompter: Inqui .findOne({ id: answers.id as string, select: { - actorFkTableId: true, apiName: true, databaseId: true, entityField: true, - entityFkTableId: true, id: true, interval: true, prefix: true, @@ -194,6 +189,7 @@ async function handleGet(argv: Partial>, prompter: Inqui privateSchemaName: true, publicSchemaName: true, retention: true, + rollupFunctionName: true, schemaId: true, scope: true, storageLogTableId: true, @@ -215,13 +211,6 @@ async function handleGet(argv: Partial>, prompter: Inqui async function handleCreate(argv: Partial>, prompter: Inquirerer) { try { const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'actorFkTableId', - message: 'actorFkTableId', - required: false, - skipPrompt: true, - }, { type: 'text', name: 'apiName', @@ -242,13 +231,6 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'text', - name: 'entityFkTableId', - message: 'entityFkTableId', - required: false, - skipPrompt: true, - }, { type: 'text', name: 'interval', @@ -305,6 +287,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'rollupFunctionName', + message: 'rollupFunctionName', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'schemaId', @@ -356,11 +345,9 @@ async function handleCreate(argv: Partial>, prompter: In const result = await client.storageLogModule .create({ data: { - actorFkTableId: cleanedData.actorFkTableId, apiName: cleanedData.apiName, databaseId: cleanedData.databaseId, entityField: cleanedData.entityField, - entityFkTableId: cleanedData.entityFkTableId, interval: cleanedData.interval, prefix: cleanedData.prefix, premake: cleanedData.premake, @@ -369,6 +356,7 @@ async function handleCreate(argv: Partial>, prompter: In privateSchemaName: cleanedData.privateSchemaName, publicSchemaName: cleanedData.publicSchemaName, retention: cleanedData.retention, + rollupFunctionName: cleanedData.rollupFunctionName, schemaId: cleanedData.schemaId, scope: cleanedData.scope, storageLogTableId: cleanedData.storageLogTableId, @@ -377,11 +365,9 @@ async function handleCreate(argv: Partial>, prompter: In usageSummaryTableName: cleanedData.usageSummaryTableName, }, select: { - actorFkTableId: true, apiName: true, databaseId: true, entityField: true, - entityFkTableId: true, id: true, interval: true, prefix: true, @@ -391,6 +377,7 @@ async function handleCreate(argv: Partial>, prompter: In privateSchemaName: true, publicSchemaName: true, retention: true, + rollupFunctionName: true, schemaId: true, scope: true, storageLogTableId: true, @@ -418,13 +405,6 @@ async function handleUpdate(argv: Partial>, prompter: In message: 'id', required: true, }, - { - type: 'text', - name: 'actorFkTableId', - message: 'actorFkTableId', - required: false, - skipPrompt: true, - }, { type: 'text', name: 'apiName', @@ -445,13 +425,6 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'text', - name: 'entityFkTableId', - message: 'entityFkTableId', - required: false, - skipPrompt: true, - }, { type: 'text', name: 'interval', @@ -508,6 +481,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'rollupFunctionName', + message: 'rollupFunctionName', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'schemaId', @@ -559,11 +539,9 @@ async function handleUpdate(argv: Partial>, prompter: In id: answers.id as string, }, data: { - actorFkTableId: cleanedData.actorFkTableId, apiName: cleanedData.apiName, databaseId: cleanedData.databaseId, entityField: cleanedData.entityField, - entityFkTableId: cleanedData.entityFkTableId, interval: cleanedData.interval, prefix: cleanedData.prefix, premake: cleanedData.premake, @@ -572,6 +550,7 @@ async function handleUpdate(argv: Partial>, prompter: In privateSchemaName: cleanedData.privateSchemaName, publicSchemaName: cleanedData.publicSchemaName, retention: cleanedData.retention, + rollupFunctionName: cleanedData.rollupFunctionName, schemaId: cleanedData.schemaId, scope: cleanedData.scope, storageLogTableId: cleanedData.storageLogTableId, @@ -580,11 +559,9 @@ async function handleUpdate(argv: Partial>, prompter: In usageSummaryTableName: cleanedData.usageSummaryTableName, }, select: { - actorFkTableId: true, apiName: true, databaseId: true, entityField: true, - entityFkTableId: true, id: true, interval: true, prefix: true, @@ -594,6 +571,7 @@ async function handleUpdate(argv: Partial>, prompter: In privateSchemaName: true, publicSchemaName: true, retention: true, + rollupFunctionName: true, schemaId: true, scope: true, storageLogTableId: 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..86898301fa 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', @@ -40,6 +40,7 @@ const fieldSchema: FieldSchema = { hasPathShares: 'boolean', hasVersioning: 'boolean', id: 'uuid', + key: 'string', maxBulkFiles: 'int', maxBulkTotalSize: 'int', maxFilenameLength: 'int', @@ -117,8 +118,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, @@ -133,6 +134,7 @@ async function handleList(argv: Partial>, _prompter: Inq hasPathShares: true, hasVersioning: true, id: true, + key: true, maxBulkFiles: true, maxBulkTotalSize: true, maxFilenameLength: true, @@ -178,8 +180,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, @@ -194,6 +196,7 @@ async function handleFindFirst(argv: Partial>, _prompter hasPathShares: true, hasVersioning: true, id: true, + key: true, maxBulkFiles: true, maxBulkTotalSize: true, maxFilenameLength: true, @@ -251,8 +254,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, @@ -267,6 +270,7 @@ async function handleGet(argv: Partial>, prompter: Inqui hasPathShares: true, hasVersioning: true, id: true, + key: true, maxBulkFiles: true, maxBulkTotalSize: true, maxFilenameLength: true, @@ -356,15 +360,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, }, @@ -459,6 +463,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'key', + message: 'key', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'maxBulkFiles', @@ -595,8 +606,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, @@ -610,6 +621,7 @@ async function handleCreate(argv: Partial>, prompter: In hasCustomKeys: cleanedData.hasCustomKeys, hasPathShares: cleanedData.hasPathShares, hasVersioning: cleanedData.hasVersioning, + key: cleanedData.key, maxBulkFiles: cleanedData.maxBulkFiles, maxBulkTotalSize: cleanedData.maxBulkTotalSize, maxFilenameLength: cleanedData.maxFilenameLength, @@ -637,8 +649,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, @@ -653,6 +665,7 @@ async function handleCreate(argv: Partial>, prompter: In hasPathShares: true, hasVersioning: true, id: true, + key: true, maxBulkFiles: true, maxBulkTotalSize: true, maxFilenameLength: true, @@ -748,15 +761,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, }, @@ -851,6 +864,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'key', + message: 'key', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'maxBulkFiles', @@ -987,8 +1007,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, @@ -1002,6 +1022,7 @@ async function handleUpdate(argv: Partial>, prompter: In hasCustomKeys: cleanedData.hasCustomKeys, hasPathShares: cleanedData.hasPathShares, hasVersioning: cleanedData.hasVersioning, + key: cleanedData.key, maxBulkFiles: cleanedData.maxBulkFiles, maxBulkTotalSize: cleanedData.maxBulkTotalSize, maxFilenameLength: cleanedData.maxFilenameLength, @@ -1029,8 +1050,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, @@ -1045,6 +1066,7 @@ async function handleUpdate(argv: Partial>, prompter: In hasPathShares: true, hasVersioning: true, id: true, + key: true, maxBulkFiles: true, maxBulkTotalSize: true, maxFilenameLength: true, diff --git a/sdk/constructive-cli/src/modules/cli/commands/transfer-log-module.ts b/sdk/constructive-cli/src/modules/cli/commands/transfer-log-module.ts index 5906b152aa..2fed6d7e88 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/transfer-log-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/transfer-log-module.ts @@ -16,11 +16,9 @@ import type { } from '../../orm/input-types'; import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { - actorFkTableId: 'uuid', apiName: 'string', databaseId: 'uuid', entityField: 'string', - entityFkTableId: 'uuid', id: 'uuid', interval: 'string', prefix: 'string', @@ -30,6 +28,7 @@ const fieldSchema: FieldSchema = { privateSchemaName: 'string', publicSchemaName: 'string', retention: 'string', + rollupFunctionName: 'string', schemaId: 'uuid', scope: 'string', transferLogTableId: 'uuid', @@ -88,11 +87,9 @@ async function handleTableSubcommand( async function handleList(argv: Partial>, _prompter: Inquirerer) { try { const defaultSelect = { - actorFkTableId: true, apiName: true, databaseId: true, entityField: true, - entityFkTableId: true, id: true, interval: true, prefix: true, @@ -102,6 +99,7 @@ async function handleList(argv: Partial>, _prompter: Inq privateSchemaName: true, publicSchemaName: true, retention: true, + rollupFunctionName: true, schemaId: true, scope: true, transferLogTableId: true, @@ -128,11 +126,9 @@ async function handleList(argv: Partial>, _prompter: Inq async function handleFindFirst(argv: Partial>, _prompter: Inquirerer) { try { const defaultSelect = { - actorFkTableId: true, apiName: true, databaseId: true, entityField: true, - entityFkTableId: true, id: true, interval: true, prefix: true, @@ -142,6 +138,7 @@ async function handleFindFirst(argv: Partial>, _prompter privateSchemaName: true, publicSchemaName: true, retention: true, + rollupFunctionName: true, schemaId: true, scope: true, transferLogTableId: true, @@ -180,11 +177,9 @@ async function handleGet(argv: Partial>, prompter: Inqui .findOne({ id: answers.id as string, select: { - actorFkTableId: true, apiName: true, databaseId: true, entityField: true, - entityFkTableId: true, id: true, interval: true, prefix: true, @@ -194,6 +189,7 @@ async function handleGet(argv: Partial>, prompter: Inqui privateSchemaName: true, publicSchemaName: true, retention: true, + rollupFunctionName: true, schemaId: true, scope: true, transferLogTableId: true, @@ -215,13 +211,6 @@ async function handleGet(argv: Partial>, prompter: Inqui async function handleCreate(argv: Partial>, prompter: Inquirerer) { try { const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'actorFkTableId', - message: 'actorFkTableId', - required: false, - skipPrompt: true, - }, { type: 'text', name: 'apiName', @@ -242,13 +231,6 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'text', - name: 'entityFkTableId', - message: 'entityFkTableId', - required: false, - skipPrompt: true, - }, { type: 'text', name: 'interval', @@ -305,6 +287,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'rollupFunctionName', + message: 'rollupFunctionName', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'schemaId', @@ -356,11 +345,9 @@ async function handleCreate(argv: Partial>, prompter: In const result = await client.transferLogModule .create({ data: { - actorFkTableId: cleanedData.actorFkTableId, apiName: cleanedData.apiName, databaseId: cleanedData.databaseId, entityField: cleanedData.entityField, - entityFkTableId: cleanedData.entityFkTableId, interval: cleanedData.interval, prefix: cleanedData.prefix, premake: cleanedData.premake, @@ -369,6 +356,7 @@ async function handleCreate(argv: Partial>, prompter: In privateSchemaName: cleanedData.privateSchemaName, publicSchemaName: cleanedData.publicSchemaName, retention: cleanedData.retention, + rollupFunctionName: cleanedData.rollupFunctionName, schemaId: cleanedData.schemaId, scope: cleanedData.scope, transferLogTableId: cleanedData.transferLogTableId, @@ -377,11 +365,9 @@ async function handleCreate(argv: Partial>, prompter: In usageSummaryTableName: cleanedData.usageSummaryTableName, }, select: { - actorFkTableId: true, apiName: true, databaseId: true, entityField: true, - entityFkTableId: true, id: true, interval: true, prefix: true, @@ -391,6 +377,7 @@ async function handleCreate(argv: Partial>, prompter: In privateSchemaName: true, publicSchemaName: true, retention: true, + rollupFunctionName: true, schemaId: true, scope: true, transferLogTableId: true, @@ -418,13 +405,6 @@ async function handleUpdate(argv: Partial>, prompter: In message: 'id', required: true, }, - { - type: 'text', - name: 'actorFkTableId', - message: 'actorFkTableId', - required: false, - skipPrompt: true, - }, { type: 'text', name: 'apiName', @@ -445,13 +425,6 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'text', - name: 'entityFkTableId', - message: 'entityFkTableId', - required: false, - skipPrompt: true, - }, { type: 'text', name: 'interval', @@ -508,6 +481,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'rollupFunctionName', + message: 'rollupFunctionName', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'schemaId', @@ -559,11 +539,9 @@ async function handleUpdate(argv: Partial>, prompter: In id: answers.id as string, }, data: { - actorFkTableId: cleanedData.actorFkTableId, apiName: cleanedData.apiName, databaseId: cleanedData.databaseId, entityField: cleanedData.entityField, - entityFkTableId: cleanedData.entityFkTableId, interval: cleanedData.interval, prefix: cleanedData.prefix, premake: cleanedData.premake, @@ -572,6 +550,7 @@ async function handleUpdate(argv: Partial>, prompter: In privateSchemaName: cleanedData.privateSchemaName, publicSchemaName: cleanedData.publicSchemaName, retention: cleanedData.retention, + rollupFunctionName: cleanedData.rollupFunctionName, schemaId: cleanedData.schemaId, scope: cleanedData.scope, transferLogTableId: cleanedData.transferLogTableId, @@ -580,11 +559,9 @@ async function handleUpdate(argv: Partial>, prompter: In usageSummaryTableName: cleanedData.usageSummaryTableName, }, select: { - actorFkTableId: true, apiName: true, databaseId: true, entityField: true, - entityFkTableId: true, id: true, interval: true, prefix: true, @@ -594,6 +571,7 @@ async function handleUpdate(argv: Partial>, prompter: In privateSchemaName: true, publicSchemaName: true, retention: true, + rollupFunctionName: true, schemaId: true, scope: true, transferLogTableId: true, diff --git a/sdk/constructive-cli/src/modules/cli/commands/user-auth-module.ts b/sdk/constructive-cli/src/modules/cli/commands/user-auth-module.ts index f92155fceb..cb30867172 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/user-auth-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/user-auth-module.ts @@ -28,8 +28,10 @@ const fieldSchema: FieldSchema = { forgotPasswordFunction: 'string', id: 'uuid', privateApiName: 'string', + privateSchemaId: 'uuid', requestCrossOriginTokenFunction: 'string', resetPasswordFunction: 'string', + revokeSessionTreeFunction: 'string', schemaId: 'uuid', secretsTableId: 'uuid', sendAccountDeletionEmailFunction: 'string', @@ -41,6 +43,7 @@ const fieldSchema: FieldSchema = { signInFunction: 'string', signOutFunction: 'string', signUpFunction: 'string', + sweepExpiredSessionsFunction: 'string', usersTableId: 'uuid', verifyEmailFunction: 'string', verifyPasswordFunction: 'string', @@ -108,8 +111,10 @@ async function handleList(argv: Partial>, _prompter: Inq forgotPasswordFunction: true, id: true, privateApiName: true, + privateSchemaId: true, requestCrossOriginTokenFunction: true, resetPasswordFunction: true, + revokeSessionTreeFunction: true, schemaId: true, secretsTableId: true, sendAccountDeletionEmailFunction: true, @@ -121,6 +126,7 @@ async function handleList(argv: Partial>, _prompter: Inq signInFunction: true, signOutFunction: true, signUpFunction: true, + sweepExpiredSessionsFunction: true, usersTableId: true, verifyEmailFunction: true, verifyPasswordFunction: true, @@ -156,8 +162,10 @@ async function handleFindFirst(argv: Partial>, _prompter forgotPasswordFunction: true, id: true, privateApiName: true, + privateSchemaId: true, requestCrossOriginTokenFunction: true, resetPasswordFunction: true, + revokeSessionTreeFunction: true, schemaId: true, secretsTableId: true, sendAccountDeletionEmailFunction: true, @@ -169,6 +177,7 @@ async function handleFindFirst(argv: Partial>, _prompter signInFunction: true, signOutFunction: true, signUpFunction: true, + sweepExpiredSessionsFunction: true, usersTableId: true, verifyEmailFunction: true, verifyPasswordFunction: true, @@ -216,8 +225,10 @@ async function handleGet(argv: Partial>, prompter: Inqui forgotPasswordFunction: true, id: true, privateApiName: true, + privateSchemaId: true, requestCrossOriginTokenFunction: true, resetPasswordFunction: true, + revokeSessionTreeFunction: true, schemaId: true, secretsTableId: true, sendAccountDeletionEmailFunction: true, @@ -229,6 +240,7 @@ async function handleGet(argv: Partial>, prompter: Inqui signInFunction: true, signOutFunction: true, signUpFunction: true, + sweepExpiredSessionsFunction: true, usersTableId: true, verifyEmailFunction: true, verifyPasswordFunction: true, @@ -323,6 +335,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'privateSchemaId', + message: 'privateSchemaId', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'requestCrossOriginTokenFunction', @@ -337,6 +356,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'revokeSessionTreeFunction', + message: 'revokeSessionTreeFunction', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'schemaId', @@ -414,6 +440,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'sweepExpiredSessionsFunction', + message: 'sweepExpiredSessionsFunction', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'usersTableId', @@ -456,8 +489,10 @@ async function handleCreate(argv: Partial>, prompter: In extendTokenExpires: cleanedData.extendTokenExpires, forgotPasswordFunction: cleanedData.forgotPasswordFunction, privateApiName: cleanedData.privateApiName, + privateSchemaId: cleanedData.privateSchemaId, requestCrossOriginTokenFunction: cleanedData.requestCrossOriginTokenFunction, resetPasswordFunction: cleanedData.resetPasswordFunction, + revokeSessionTreeFunction: cleanedData.revokeSessionTreeFunction, schemaId: cleanedData.schemaId, secretsTableId: cleanedData.secretsTableId, sendAccountDeletionEmailFunction: cleanedData.sendAccountDeletionEmailFunction, @@ -469,6 +504,7 @@ async function handleCreate(argv: Partial>, prompter: In signInFunction: cleanedData.signInFunction, signOutFunction: cleanedData.signOutFunction, signUpFunction: cleanedData.signUpFunction, + sweepExpiredSessionsFunction: cleanedData.sweepExpiredSessionsFunction, usersTableId: cleanedData.usersTableId, verifyEmailFunction: cleanedData.verifyEmailFunction, verifyPasswordFunction: cleanedData.verifyPasswordFunction, @@ -486,8 +522,10 @@ async function handleCreate(argv: Partial>, prompter: In forgotPasswordFunction: true, id: true, privateApiName: true, + privateSchemaId: true, requestCrossOriginTokenFunction: true, resetPasswordFunction: true, + revokeSessionTreeFunction: true, schemaId: true, secretsTableId: true, sendAccountDeletionEmailFunction: true, @@ -499,6 +537,7 @@ async function handleCreate(argv: Partial>, prompter: In signInFunction: true, signOutFunction: true, signUpFunction: true, + sweepExpiredSessionsFunction: true, usersTableId: true, verifyEmailFunction: true, verifyPasswordFunction: true, @@ -599,6 +638,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'privateSchemaId', + message: 'privateSchemaId', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'requestCrossOriginTokenFunction', @@ -613,6 +659,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'revokeSessionTreeFunction', + message: 'revokeSessionTreeFunction', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'schemaId', @@ -690,6 +743,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'sweepExpiredSessionsFunction', + message: 'sweepExpiredSessionsFunction', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'usersTableId', @@ -732,8 +792,10 @@ async function handleUpdate(argv: Partial>, prompter: In extendTokenExpires: cleanedData.extendTokenExpires, forgotPasswordFunction: cleanedData.forgotPasswordFunction, privateApiName: cleanedData.privateApiName, + privateSchemaId: cleanedData.privateSchemaId, requestCrossOriginTokenFunction: cleanedData.requestCrossOriginTokenFunction, resetPasswordFunction: cleanedData.resetPasswordFunction, + revokeSessionTreeFunction: cleanedData.revokeSessionTreeFunction, schemaId: cleanedData.schemaId, secretsTableId: cleanedData.secretsTableId, sendAccountDeletionEmailFunction: cleanedData.sendAccountDeletionEmailFunction, @@ -745,6 +807,7 @@ async function handleUpdate(argv: Partial>, prompter: In signInFunction: cleanedData.signInFunction, signOutFunction: cleanedData.signOutFunction, signUpFunction: cleanedData.signUpFunction, + sweepExpiredSessionsFunction: cleanedData.sweepExpiredSessionsFunction, usersTableId: cleanedData.usersTableId, verifyEmailFunction: cleanedData.verifyEmailFunction, verifyPasswordFunction: cleanedData.verifyPasswordFunction, @@ -762,8 +825,10 @@ async function handleUpdate(argv: Partial>, prompter: In forgotPasswordFunction: true, id: true, privateApiName: true, + privateSchemaId: true, requestCrossOriginTokenFunction: true, resetPasswordFunction: true, + revokeSessionTreeFunction: true, schemaId: true, secretsTableId: true, sendAccountDeletionEmailFunction: true, @@ -775,6 +840,7 @@ async function handleUpdate(argv: Partial>, prompter: In signInFunction: true, signOutFunction: true, signUpFunction: true, + sweepExpiredSessionsFunction: true, usersTableId: true, verifyEmailFunction: true, verifyPasswordFunction: 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 9711d8a080..dae8c55bb3 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 | +| `clusterModule` | 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,32 +48,37 @@ 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 | | `graphExecutionModule` | findMany, findOne, create, update, delete | | `graphModule` | findMany, findOne, create, update, delete | | `hierarchyModule` | findMany, findOne, create, update, delete | -| `httpRouteModule` | findMany, findOne, create, update, delete | | `i18NModule` | findMany, findOne, create, update, delete | | `identityProvidersModule` | findMany, findOne, create, update, delete | +| `imageModule` | findMany, findOne, create, update, delete | | `inferenceLogModule` | findMany, findOne, create, update, delete | | `infraConfigModule` | findMany, findOne, create, update, delete | | `infraSecretsModule` | findMany, findOne, create, update, delete | | `integrationProvidersModule` | findMany, findOne, create, update, delete | +| `internalConfigModule` | findMany, findOne, create, update, delete | | `internalSecretsModule` | findMany, findOne, create, update, delete | | `invitesModule` | findMany, findOne, create, update, delete | +| `k8sAdmissionModule` | findMany, findOne, create, update, delete | | `limitsModule` | findMany, findOne, create, update, delete | +| `machineModule` | findMany, findOne, create, update, delete | | `membershipTypesModule` | findMany, findOne, create, update, delete | | `membershipsModule` | findMany, findOne, create, update, delete | | `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 | @@ -78,10 +86,13 @@ const db = createClient({ | `rateLimitMetersModule` | findMany, findOne, create, update, delete | | `rateLimitsModule` | findMany, findOne, create, update, delete | | `realtimeModule` | findMany, findOne, create, update, delete | +| `refusalLogModule` | findMany, findOne, create, update, delete | | `relationProvision` | findMany, findOne, create, update, delete | +| `repositoryModule` | findMany, findOne, create, update, delete | | `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 +103,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,12 +124,18 @@ CRUD operations for AgentModule records. | `agentTableName` | String | Yes | | `apiName` | String | Yes | | `databaseId` | UUID | Yes | -| `defaultPermissions` | String | Yes | +| `defaultCapabilities` | String | Yes | +| `defaultVisibility` | String | Yes | | `entityField` | String | Yes | | `entityTableId` | UUID | Yes | +| `eventTableId` | UUID | Yes | +| `eventTableName` | String | Yes | | `hasAgents` | Boolean | Yes | +| `hasAttachments` | Boolean | Yes | | `hasPlans` | Boolean | Yes | +| `hasRepositoryResources` | Boolean | Yes | | `hasResources` | Boolean | Yes | +| `hasRuns` | Boolean | Yes | | `id` | UUID | No | | `messageTableId` | UUID | Yes | | `messageTableName` | String | Yes | @@ -134,28 +152,33 @@ CRUD operations for AgentModule records. | `promptsTableName` | String | Yes | | `provisions` | JSON | Yes | | `publicSchemaName` | String | Yes | +| `resourceRepositoryTableId` | UUID | Yes | +| `resourceRepositoryTableName` | String | Yes | | `resourceTableId` | UUID | Yes | | `resourceTableName` | String | Yes | | `resources` | JSON | Yes | +| `runTableId` | UUID | Yes | +| `runTableName` | String | Yes | | `schemaId` | UUID | Yes | | `scope` | String | Yes | -| `shared` | Boolean | Yes | | `taskTableId` | UUID | Yes | | `taskTableName` | String | Yes | | `threadTableId` | UUID | Yes | | `threadTableName` | String | Yes | +| `workspaceTableId` | UUID | Yes | +| `workspaceTableName` | String | Yes | **Operations:** ```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, defaultVisibility: true, entityField: true, entityTableId: true, eventTableId: true, eventTableName: true, hasAgents: true, hasAttachments: true, hasPlans: true, hasRepositoryResources: true, hasResources: true, hasRuns: 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, resourceRepositoryTableId: true, resourceRepositoryTableName: true, resourceTableId: true, resourceTableName: true, resources: true, runTableId: true, runTableName: true, schemaId: true, scope: true, taskTableId: true, taskTableName: true, threadTableId: true, threadTableName: true, workspaceTableId: true, workspaceTableName: 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, defaultVisibility: true, entityField: true, entityTableId: true, eventTableId: true, eventTableName: true, hasAgents: true, hasAttachments: true, hasPlans: true, hasRepositoryResources: true, hasResources: true, hasRuns: 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, resourceRepositoryTableId: true, resourceRepositoryTableName: true, resourceTableId: true, resourceTableName: true, resources: true, runTableId: true, runTableName: true, schemaId: true, scope: true, taskTableId: true, taskTableName: true, threadTableId: true, threadTableName: true, workspaceTableId: true, workspaceTableName: 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: '', defaultVisibility: '', entityField: '', entityTableId: '', eventTableId: '', eventTableName: '', hasAgents: '', hasAttachments: '', hasPlans: '', hasRepositoryResources: '', hasResources: '', hasRuns: '', messageTableId: '', messageTableName: '', personaTableId: '', personaTableName: '', planTableId: '', planTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', promptsTableId: '', promptsTableName: '', provisions: '', publicSchemaName: '', resourceRepositoryTableId: '', resourceRepositoryTableName: '', resourceTableId: '', resourceTableName: '', resources: '', runTableId: '', runTableName: '', schemaId: '', scope: '', taskTableId: '', taskTableName: '', threadTableId: '', threadTableName: '', workspaceTableId: '', workspaceTableName: '' }, select: { id: true } }).execute(); // Update const updated = await db.agentModule.update({ where: { id: '' }, data: { agentTableId: '' }, select: { id: true } }).execute(); @@ -183,7 +206,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 +222,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(); @@ -225,11 +248,12 @@ CRUD operations for AppModule records. | `apiName` | String | Yes | | `appComponentsTableId` | UUID | Yes | | `appComponentsTableName` | String | Yes | +| `appStoreIdentitiesTableName` | String | Yes | | `appsTableId` | UUID | Yes | | `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 +271,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, appStoreIdentitiesTableName: 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, appStoreIdentitiesTableName: 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: '', appStoreIdentitiesTableName: '', 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 +298,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 +327,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(); @@ -326,19 +350,34 @@ CRUD operations for BillingProviderModule records. | Field | Type | Editable | |-------|------|----------| +| `activatePlanSubscriptionFunction` | String | Yes | | `apiName` | String | Yes | | `billingCustomersTableId` | UUID | Yes | | `billingCustomersTableName` | String | Yes | +| `billingDisputesTableId` | UUID | Yes | +| `billingDisputesTableName` | 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 | +| `getActivePlanPricingFunction` | String | Yes | +| `getBillingCustomerFunction` | String | Yes | +| `getBillingPriceFunction` | String | Yes | +| `getBillingProductFunction` | String | Yes | +| `getBillingSubscriptionFunction` | String | Yes | +| `getFallbackFreePlanFunction` | String | Yes | | `id` | UUID | No | +| `listPendingUsageSyncFunction` | String | Yes | +| `markUsageSyncedFunction` | String | Yes | | `prefix` | String | Yes | | `pricesTableId` | UUID | Yes | | `privateApiName` | String | Yes | @@ -346,23 +385,31 @@ CRUD operations for BillingProviderModule records. | `processBillingEventFunction` | String | Yes | | `productsTableId` | UUID | Yes | | `provider` | String | Yes | +| `recordDisputeFunction` | String | Yes | +| `recordRefundFunction` | String | Yes | | `schemaId` | UUID | Yes | | `subscriptionsTableId` | UUID | Yes | +| `sweepOverdueSubscriptionsFunction` | String | Yes | +| `upsertBillingCustomerFunction` | String | Yes | +| `upsertBillingPriceFunction` | String | Yes | +| `upsertBillingProductFunction` | String | Yes | +| `upsertBillingSubscriptionFunction` | String | 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: { activatePlanSubscriptionFunction: true, apiName: true, billingCustomersTableId: true, billingCustomersTableName: true, billingDisputesTableId: true, billingDisputesTableName: 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, getActivePlanPricingFunction: true, getBillingCustomerFunction: true, getBillingPriceFunction: true, getBillingProductFunction: true, getBillingSubscriptionFunction: true, getFallbackFreePlanFunction: true, id: true, listPendingUsageSyncFunction: true, markUsageSyncedFunction: true, prefix: true, pricesTableId: true, privateApiName: true, privateSchemaId: true, processBillingEventFunction: true, productsTableId: true, provider: true, recordDisputeFunction: true, recordRefundFunction: true, schemaId: true, subscriptionsTableId: true, sweepOverdueSubscriptionsFunction: true, upsertBillingCustomerFunction: true, upsertBillingPriceFunction: true, upsertBillingProductFunction: true, upsertBillingSubscriptionFunction: 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: { activatePlanSubscriptionFunction: true, apiName: true, billingCustomersTableId: true, billingCustomersTableName: true, billingDisputesTableId: true, billingDisputesTableName: 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, getActivePlanPricingFunction: true, getBillingCustomerFunction: true, getBillingPriceFunction: true, getBillingProductFunction: true, getBillingSubscriptionFunction: true, getFallbackFreePlanFunction: true, id: true, listPendingUsageSyncFunction: true, markUsageSyncedFunction: true, prefix: true, pricesTableId: true, privateApiName: true, privateSchemaId: true, processBillingEventFunction: true, productsTableId: true, provider: true, recordDisputeFunction: true, recordRefundFunction: true, schemaId: true, subscriptionsTableId: true, sweepOverdueSubscriptionsFunction: true, upsertBillingCustomerFunction: true, upsertBillingPriceFunction: true, upsertBillingProductFunction: true, upsertBillingSubscriptionFunction: 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: { activatePlanSubscriptionFunction: '', apiName: '', billingCustomersTableId: '', billingCustomersTableName: '', billingDisputesTableId: '', billingDisputesTableName: '', billingInvoicesTableId: '', billingInvoicesTableName: '', billingPricesTableId: '', billingPricesTableName: '', billingProductsTableId: '', billingProductsTableName: '', billingRefundsTableId: '', billingRefundsTableName: '', billingSubscriptionsTableId: '', billingSubscriptionsTableName: '', billingWebhookEventsTableId: '', billingWebhookEventsTableName: '', databaseId: '', getActivePlanPricingFunction: '', getBillingCustomerFunction: '', getBillingPriceFunction: '', getBillingProductFunction: '', getBillingSubscriptionFunction: '', getFallbackFreePlanFunction: '', listPendingUsageSyncFunction: '', markUsageSyncedFunction: '', prefix: '', pricesTableId: '', privateApiName: '', privateSchemaId: '', processBillingEventFunction: '', productsTableId: '', provider: '', recordDisputeFunction: '', recordRefundFunction: '', schemaId: '', subscriptionsTableId: '', sweepOverdueSubscriptionsFunction: '', upsertBillingCustomerFunction: '', upsertBillingPriceFunction: '', upsertBillingProductFunction: '', upsertBillingSubscriptionFunction: '', upsertInvoiceFunction: '' }, select: { id: true } }).execute(); // Update -const updated = await db.billingProviderModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); +const updated = await db.billingProviderModule.update({ where: { id: '' }, data: { activatePlanSubscriptionFunction: '' }, select: { id: true } }).execute(); // Delete const deleted = await db.billingProviderModule.delete({ where: { id: '' } }).execute(); @@ -495,6 +542,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. @@ -506,24 +603,34 @@ CRUD operations for CatalogModule records. | `apiName` | String | Yes | | `apisTableId` | UUID | Yes | | `apisTableName` | String | Yes | +| `appStoreIdentitiesTableId` | UUID | Yes | +| `appStoreIdentitiesTableName` | 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 | | `functionsTableId` | UUID | Yes | | `functionsTableName` | String | Yes | | `id` | UUID | No | +| `imagesTableId` | UUID | Yes | +| `imagesTableName` | String | Yes | +| `managedDomainsTableId` | UUID | Yes | +| `managedDomainsTableName` | String | Yes | | `namespacesTableId` | UUID | Yes | | `namespacesTableName` | String | Yes | | `policies` | JSON | Yes | | `privateApiName` | String | Yes | | `provisions` | JSON | Yes | | `publicSchemaName` | String | Yes | +| `redirectsTableId` | UUID | Yes | +| `redirectsTableName` | String | Yes | | `resourceDefinitionsTableId` | UUID | Yes | | `resourceDefinitionsTableName` | String | Yes | | `resourceInstallationsTableId` | UUID | Yes | @@ -547,13 +654,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, appStoreIdentitiesTableId: true, appStoreIdentitiesTableName: 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, imagesTableId: true, imagesTableName: true, managedDomainsTableId: true, managedDomainsTableName: true, namespacesTableId: true, namespacesTableName: true, policies: true, privateApiName: true, provisions: true, publicSchemaName: true, redirectsTableId: true, redirectsTableName: 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, appStoreIdentitiesTableId: true, appStoreIdentitiesTableName: 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, imagesTableId: true, imagesTableName: true, managedDomainsTableId: true, managedDomainsTableName: true, namespacesTableId: true, namespacesTableName: true, policies: true, privateApiName: true, provisions: true, publicSchemaName: true, redirectsTableId: true, redirectsTableName: 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: '', appStoreIdentitiesTableId: '', appStoreIdentitiesTableName: '', appsTableId: '', appsTableName: '', bindingsTableId: '', bindingsTableName: '', bucketsTableId: '', bucketsTableName: '', databaseId: '', defaultCapabilities: '', domainsTableId: '', domainsTableName: '', entityTableId: '', functionsTableId: '', functionsTableName: '', imagesTableId: '', imagesTableName: '', managedDomainsTableId: '', managedDomainsTableName: '', namespacesTableId: '', namespacesTableName: '', policies: '', privateApiName: '', provisions: '', publicSchemaName: '', redirectsTableId: '', redirectsTableName: '', 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(); @@ -562,88 +669,106 @@ const updated = await db.catalogModule.update({ where: { id: '' }, data: { const deleted = await db.catalogModule.delete({ where: { id: '' } }).execute(); ``` -### `db.computeLogModule` +### `db.clusterModule` -CRUD operations for ComputeLogModule records. +CRUD operations for ClusterModule records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `actorFkTableId` | UUID | Yes | | `apiName` | String | Yes | -| `computeLogTableId` | UUID | Yes | -| `computeLogTableName` | String | Yes | +| `clusterEventsTableId` | UUID | Yes | +| `clusterEventsTableName` | String | Yes | +| `clustersTableId` | UUID | Yes | +| `clustersTableName` | String | Yes | | `databaseId` | UUID | Yes | +| `databasePlacementsTableId` | UUID | Yes | +| `databasePlacementsTableName` | String | Yes | +| `databaseServersTableId` | UUID | Yes | +| `databaseServersTableName` | String | Yes | +| `defaultCapabilities` | String | Yes | | `entityField` | String | Yes | -| `entityFkTableId` | UUID | Yes | | `id` | UUID | No | -| `interval` | String | Yes | +| `partitionInterval` | String | Yes | +| `physicalDatabasesTableId` | UUID | Yes | +| `physicalDatabasesTableName` | String | Yes | +| `policies` | JSON | Yes | | `prefix` | String | Yes | | `premake` | Int | Yes | | `privateApiName` | String | Yes | | `privateSchemaId` | UUID | Yes | | `privateSchemaName` | String | Yes | +| `provisions` | JSON | Yes | | `publicSchemaName` | String | Yes | | `retention` | String | Yes | | `schemaId` | UUID | Yes | | `scope` | String | Yes | -| `usageSummaryTableId` | UUID | Yes | -| `usageSummaryTableName` | String | Yes | **Operations:** ```typescript -// List all computeLogModule records -const items = await db.computeLogModule.findMany({ select: { actorFkTableId: true, apiName: true, computeLogTableId: true, computeLogTableName: true, databaseId: true, entityField: true, entityFkTableId: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, schemaId: true, scope: true, usageSummaryTableId: true, usageSummaryTableName: true } }).execute(); +// List all clusterModule records +const items = await db.clusterModule.findMany({ select: { apiName: true, clusterEventsTableId: true, clusterEventsTableName: true, clustersTableId: true, clustersTableName: true, databaseId: true, databasePlacementsTableId: true, databasePlacementsTableName: true, databaseServersTableId: true, databaseServersTableName: true, defaultCapabilities: true, entityField: true, id: true, partitionInterval: true, physicalDatabasesTableId: true, physicalDatabasesTableName: true, policies: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, retention: true, schemaId: true, scope: true } }).execute(); // Get one by id -const item = await db.computeLogModule.findOne({ id: '', select: { actorFkTableId: true, apiName: true, computeLogTableId: true, computeLogTableName: true, databaseId: true, entityField: true, entityFkTableId: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, schemaId: true, scope: true, usageSummaryTableId: true, usageSummaryTableName: true } }).execute(); +const item = await db.clusterModule.findOne({ id: '', select: { apiName: true, clusterEventsTableId: true, clusterEventsTableName: true, clustersTableId: true, clustersTableName: true, databaseId: true, databasePlacementsTableId: true, databasePlacementsTableName: true, databaseServersTableId: true, databaseServersTableName: true, defaultCapabilities: true, entityField: true, id: true, partitionInterval: true, physicalDatabasesTableId: true, physicalDatabasesTableName: true, policies: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, retention: true, schemaId: true, scope: true } }).execute(); // Create -const created = await db.computeLogModule.create({ data: { actorFkTableId: '', apiName: '', computeLogTableId: '', computeLogTableName: '', databaseId: '', entityField: '', entityFkTableId: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', retention: '', schemaId: '', scope: '', usageSummaryTableId: '', usageSummaryTableName: '' }, select: { id: true } }).execute(); +const created = await db.clusterModule.create({ data: { apiName: '', clusterEventsTableId: '', clusterEventsTableName: '', clustersTableId: '', clustersTableName: '', databaseId: '', databasePlacementsTableId: '', databasePlacementsTableName: '', databaseServersTableId: '', databaseServersTableName: '', defaultCapabilities: '', entityField: '', partitionInterval: '', physicalDatabasesTableId: '', physicalDatabasesTableName: '', policies: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', retention: '', schemaId: '', scope: '' }, select: { id: true } }).execute(); // Update -const updated = await db.computeLogModule.update({ where: { id: '' }, data: { actorFkTableId: '' }, select: { id: true } }).execute(); +const updated = await db.clusterModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.computeLogModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.clusterModule.delete({ where: { id: '' } }).execute(); ``` -### `db.configSecretsUserModule` +### `db.computeLogModule` -CRUD operations for ConfigSecretsUserModule records. +CRUD operations for ComputeLogModule records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `apiName` | String | Yes | +| `computeLogTableId` | UUID | Yes | +| `computeLogTableName` | String | Yes | | `databaseId` | UUID | Yes | | `entityField` | String | Yes | | `id` | UUID | No | +| `interval` | String | Yes | +| `prefix` | String | Yes | +| `premake` | Int | Yes | | `privateApiName` | String | Yes | +| `privateSchemaId` | UUID | Yes | +| `privateSchemaName` | String | Yes | +| `publicSchemaName` | String | Yes | +| `retention` | String | Yes | +| `rollupFunctionName` | String | Yes | | `schemaId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `tableName` | String | Yes | +| `scope` | String | Yes | +| `usageSummaryTableId` | UUID | Yes | +| `usageSummaryTableName` | String | Yes | **Operations:** ```typescript -// List all configSecretsUserModule records -const items = await db.configSecretsUserModule.findMany({ select: { apiName: true, databaseId: true, entityField: true, id: true, privateApiName: true, schemaId: true, tableId: true, tableName: true } }).execute(); +// List all computeLogModule records +const items = await db.computeLogModule.findMany({ select: { apiName: true, computeLogTableId: true, computeLogTableName: true, databaseId: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, rollupFunctionName: true, schemaId: true, scope: true, usageSummaryTableId: true, usageSummaryTableName: true } }).execute(); // Get one by id -const item = await db.configSecretsUserModule.findOne({ id: '', select: { apiName: true, databaseId: true, entityField: true, id: true, privateApiName: true, schemaId: true, tableId: true, tableName: true } }).execute(); +const item = await db.computeLogModule.findOne({ id: '', select: { apiName: true, computeLogTableId: true, computeLogTableName: true, databaseId: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, rollupFunctionName: true, schemaId: true, scope: true, usageSummaryTableId: true, usageSummaryTableName: true } }).execute(); // Create -const created = await db.configSecretsUserModule.create({ data: { apiName: '', databaseId: '', entityField: '', privateApiName: '', schemaId: '', tableId: '', tableName: '' }, select: { id: true } }).execute(); +const created = await db.computeLogModule.create({ data: { apiName: '', computeLogTableId: '', computeLogTableName: '', databaseId: '', entityField: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', retention: '', rollupFunctionName: '', schemaId: '', scope: '', usageSummaryTableId: '', usageSummaryTableName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.configSecretsUserModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); +const updated = await db.computeLogModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.configSecretsUserModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.computeLogModule.delete({ where: { id: '' } }).execute(); ``` ### `db.connectedAccountsModule` @@ -683,6 +808,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 +933,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. @@ -772,6 +981,7 @@ CRUD operations for DatabaseProvisionModule records. | Field | Type | Editable | |-------|------|----------| | `async` | Boolean | Yes | +| `bootstrapActorId` | UUID | Yes | | `bootstrapError` | String | Yes | | `bootstrapStatus` | String | Yes | | `bootstrapUser` | Boolean | Yes | @@ -795,13 +1005,13 @@ CRUD operations for DatabaseProvisionModule records. ```typescript // List all databaseProvisionModule records -const items = await db.databaseProvisionModule.findMany({ select: { async: true, bootstrapError: true, bootstrapStatus: true, bootstrapUser: true, completedAt: true, createdAt: true, databaseId: true, databaseName: true, domain: true, errorMessage: true, fulfilledAt: true, id: true, modules: true, options: true, ownerId: true, sourceDatabaseId: true, status: true, subdomain: true, updatedAt: true } }).execute(); +const items = await db.databaseProvisionModule.findMany({ select: { async: true, bootstrapActorId: true, bootstrapError: true, bootstrapStatus: true, bootstrapUser: true, completedAt: true, createdAt: true, databaseId: true, databaseName: true, domain: true, errorMessage: true, fulfilledAt: true, id: true, modules: true, options: true, ownerId: true, sourceDatabaseId: true, status: true, subdomain: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.databaseProvisionModule.findOne({ id: '', select: { async: true, bootstrapError: true, bootstrapStatus: true, bootstrapUser: true, completedAt: true, createdAt: true, databaseId: true, databaseName: true, domain: true, errorMessage: true, fulfilledAt: true, id: true, modules: true, options: true, ownerId: true, sourceDatabaseId: true, status: true, subdomain: true, updatedAt: true } }).execute(); +const item = await db.databaseProvisionModule.findOne({ id: '', select: { async: true, bootstrapActorId: true, bootstrapError: true, bootstrapStatus: true, bootstrapUser: true, completedAt: true, createdAt: true, databaseId: true, databaseName: true, domain: true, errorMessage: true, fulfilledAt: true, id: true, modules: true, options: true, ownerId: true, sourceDatabaseId: true, status: true, subdomain: true, updatedAt: true } }).execute(); // Create -const created = await db.databaseProvisionModule.create({ data: { async: '', bootstrapError: '', bootstrapStatus: '', bootstrapUser: '', completedAt: '', databaseId: '', databaseName: '', domain: '', errorMessage: '', fulfilledAt: '', modules: '', options: '', ownerId: '', sourceDatabaseId: '', status: '', subdomain: '' }, select: { id: true } }).execute(); +const created = await db.databaseProvisionModule.create({ data: { async: '', bootstrapActorId: '', bootstrapError: '', bootstrapStatus: '', bootstrapUser: '', completedAt: '', databaseId: '', databaseName: '', domain: '', errorMessage: '', fulfilledAt: '', modules: '', options: '', ownerId: '', sourceDatabaseId: '', status: '', subdomain: '' }, select: { id: true } }).execute(); // Update const updated = await db.databaseProvisionModule.update({ where: { id: '' }, data: { async: '' }, select: { id: true } }).execute(); @@ -822,7 +1032,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 +1054,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 +1205,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 +1233,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 +1364,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 +1390,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 +1405,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 +1570,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 +1579,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 +1596,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 +1610,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 +1634,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 +1681,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 +1705,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 +1732,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 +1754,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 +1782,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 | @@ -1499,18 +1799,19 @@ CRUD operations for FunctionModule records. | `schedulesTableId` | UUID | Yes | | `schemaId` | UUID | Yes | | `scope` | String | Yes | +| `storageKey` | String | Yes | **Operations:** ```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, storageKey: 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, storageKey: 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: '', storageKey: '' }, select: { id: true } }).execute(); // Update const updated = await db.functionModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -1530,7 +1831,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 +1856,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 +1882,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 +1902,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 +1931,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 +1953,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(); @@ -1667,9 +1968,9 @@ const updated = await db.hierarchyModule.update({ where: { id: '' }, data: const deleted = await db.hierarchyModule.delete({ where: { id: '' } }).execute(); ``` -### `db.httpRouteModule` +### `db.i18NModule` -CRUD operations for HttpRouteModule records. +CRUD operations for I18NModule records. **Fields:** @@ -1677,48 +1978,34 @@ CRUD operations for HttpRouteModule records. |-------|------|----------| | `apiName` | String | Yes | | `databaseId` | UUID | Yes | -| `defaultPermissions` | String | Yes | -| `entityField` | String | Yes | -| `entityTableId` | UUID | Yes | -| `functionModuleId` | UUID | Yes | -| `httpRoutesTableId` | UUID | Yes | -| `httpRoutesTableName` | String | Yes | | `id` | UUID | No | -| `policies` | JSON | Yes | -| `prefix` | String | Yes | | `privateApiName` | String | Yes | | `privateSchemaId` | UUID | Yes | -| `privateSchemaName` | String | Yes | -| `provisions` | JSON | Yes | -| `publicSchemaName` | String | Yes | -| `resolverFunctionName` | String | Yes | -| `resourceModuleId` | UUID | Yes | | `schemaId` | UUID | Yes | -| `scope` | String | Yes | -| `storageModuleId` | UUID | Yes | +| `settingsTableId` | UUID | Yes | **Operations:** ```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(); +// List all i18NModule records +const items = await db.i18NModule.findMany({ select: { apiName: true, databaseId: true, id: true, privateApiName: true, privateSchemaId: true, schemaId: true, settingsTableId: 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.i18NModule.findOne({ id: '', select: { apiName: true, databaseId: true, id: true, privateApiName: true, privateSchemaId: true, schemaId: true, settingsTableId: 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.i18NModule.create({ data: { apiName: '', databaseId: '', privateApiName: '', privateSchemaId: '', schemaId: '', settingsTableId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.httpRouteModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); +const updated = await db.i18NModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.httpRouteModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.i18NModule.delete({ where: { id: '' } }).execute(); ``` -### `db.i18NModule` +### `db.identityProvidersModule` -CRUD operations for I18NModule records. +CRUD operations for IdentityProvidersModule records. **Fields:** @@ -1726,34 +2013,41 @@ CRUD operations for I18NModule records. |-------|------|----------| | `apiName` | String | Yes | | `databaseId` | UUID | Yes | +| `entityField` | String | Yes | +| `entityTableId` | UUID | Yes | | `id` | UUID | No | +| `prefix` | String | Yes | | `privateApiName` | String | Yes | | `privateSchemaId` | UUID | Yes | +| `privateSchemaName` | String | Yes | +| `publicSchemaName` | String | Yes | | `schemaId` | UUID | Yes | -| `settingsTableId` | UUID | Yes | +| `scope` | String | Yes | +| `tableId` | UUID | Yes | +| `tableName` | String | Yes | **Operations:** ```typescript -// List all i18NModule records -const items = await db.i18NModule.findMany({ select: { apiName: true, databaseId: true, id: true, privateApiName: true, privateSchemaId: true, schemaId: true, settingsTableId: true } }).execute(); +// List all identityProvidersModule records +const items = await db.identityProvidersModule.findMany({ select: { apiName: true, databaseId: true, entityField: true, entityTableId: 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.i18NModule.findOne({ id: '', select: { apiName: true, databaseId: true, id: true, privateApiName: true, privateSchemaId: true, schemaId: true, settingsTableId: true } }).execute(); +const item = await db.identityProvidersModule.findOne({ id: '', select: { apiName: true, databaseId: true, entityField: true, entityTableId: 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.i18NModule.create({ data: { apiName: '', databaseId: '', privateApiName: '', privateSchemaId: '', schemaId: '', settingsTableId: '' }, select: { id: true } }).execute(); +const created = await db.identityProvidersModule.create({ data: { apiName: '', databaseId: '', entityField: '', entityTableId: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', schemaId: '', scope: '', tableId: '', tableName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.i18NModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); +const updated = await db.identityProvidersModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.i18NModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.identityProvidersModule.delete({ where: { id: '' } }).execute(); ``` -### `db.identityProvidersModule` +### `db.imageModule` -CRUD operations for IdentityProvidersModule records. +CRUD operations for ImageModule records. **Fields:** @@ -1761,36 +2055,45 @@ CRUD operations for IdentityProvidersModule records. |-------|------|----------| | `apiName` | String | Yes | | `databaseId` | UUID | Yes | +| `defaultCapabilities` | String | Yes | | `entityField` | String | Yes | | `entityTableId` | UUID | Yes | | `id` | UUID | No | +| `imageGrantsTableId` | UUID | Yes | +| `imageGrantsTableName` | String | Yes | +| `imagesTableId` | UUID | Yes | +| `imagesTableName` | String | Yes | +| `policies` | JSON | Yes | | `prefix` | String | Yes | | `privateApiName` | String | Yes | | `privateSchemaId` | UUID | Yes | | `privateSchemaName` | String | Yes | +| `provisions` | JSON | Yes | | `publicSchemaName` | String | Yes | +| `registriesTableId` | UUID | Yes | +| `registriesTableName` | String | Yes | +| `registryGrantsTableId` | UUID | Yes | +| `registryGrantsTableName` | String | Yes | | `schemaId` | UUID | Yes | | `scope` | String | Yes | -| `tableId` | UUID | Yes | -| `tableName` | String | Yes | **Operations:** ```typescript -// List all identityProvidersModule records -const items = await db.identityProvidersModule.findMany({ select: { apiName: true, databaseId: true, entityField: true, entityTableId: true, id: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, schemaId: true, scope: true, tableId: true, tableName: true } }).execute(); +// List all imageModule records +const items = await db.imageModule.findMany({ select: { apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, imageGrantsTableId: true, imageGrantsTableName: true, imagesTableId: true, imagesTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, registriesTableId: true, registriesTableName: true, registryGrantsTableId: true, registryGrantsTableName: true, schemaId: true, scope: true } }).execute(); // Get one by id -const item = await db.identityProvidersModule.findOne({ id: '', select: { apiName: true, databaseId: true, entityField: true, entityTableId: 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.imageModule.findOne({ id: '', select: { apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, imageGrantsTableId: true, imageGrantsTableName: true, imagesTableId: true, imagesTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, registriesTableId: true, registriesTableName: true, registryGrantsTableId: true, registryGrantsTableName: true, schemaId: true, scope: true } }).execute(); // Create -const created = await db.identityProvidersModule.create({ data: { apiName: '', databaseId: '', entityField: '', entityTableId: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', schemaId: '', scope: '', tableId: '', tableName: '' }, select: { id: true } }).execute(); +const created = await db.imageModule.create({ data: { apiName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', imageGrantsTableId: '', imageGrantsTableName: '', imagesTableId: '', imagesTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', registriesTableId: '', registriesTableName: '', registryGrantsTableId: '', registryGrantsTableName: '', schemaId: '', scope: '' }, select: { id: true } }).execute(); // Update -const updated = await db.identityProvidersModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); +const updated = await db.imageModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.identityProvidersModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.imageModule.delete({ where: { id: '' } }).execute(); ``` ### `db.inferenceLogModule` @@ -1801,11 +2104,9 @@ CRUD operations for InferenceLogModule records. | Field | Type | Editable | |-------|------|----------| -| `actorFkTableId` | UUID | Yes | | `apiName` | String | Yes | | `databaseId` | UUID | Yes | | `entityField` | String | Yes | -| `entityFkTableId` | UUID | Yes | | `id` | UUID | No | | `inferenceLogTableId` | UUID | Yes | | `inferenceLogTableName` | String | Yes | @@ -1817,6 +2118,7 @@ CRUD operations for InferenceLogModule records. | `privateSchemaName` | String | Yes | | `publicSchemaName` | String | Yes | | `retention` | String | Yes | +| `rollupFunctionName` | String | Yes | | `schemaId` | UUID | Yes | | `scope` | String | Yes | | `usageSummaryTableId` | UUID | Yes | @@ -1826,16 +2128,16 @@ CRUD operations for InferenceLogModule records. ```typescript // List all inferenceLogModule records -const items = await db.inferenceLogModule.findMany({ select: { actorFkTableId: true, apiName: true, databaseId: true, entityField: true, entityFkTableId: true, id: true, inferenceLogTableId: true, inferenceLogTableName: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, schemaId: true, scope: true, usageSummaryTableId: true, usageSummaryTableName: true } }).execute(); +const items = await db.inferenceLogModule.findMany({ select: { apiName: true, databaseId: true, entityField: true, id: true, inferenceLogTableId: true, inferenceLogTableName: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, rollupFunctionName: true, schemaId: true, scope: true, usageSummaryTableId: true, usageSummaryTableName: true } }).execute(); // Get one by id -const item = await db.inferenceLogModule.findOne({ id: '', select: { actorFkTableId: true, apiName: true, databaseId: true, entityField: true, entityFkTableId: true, id: true, inferenceLogTableId: true, inferenceLogTableName: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, schemaId: true, scope: true, usageSummaryTableId: true, usageSummaryTableName: true } }).execute(); +const item = await db.inferenceLogModule.findOne({ id: '', select: { apiName: true, databaseId: true, entityField: true, id: true, inferenceLogTableId: true, inferenceLogTableName: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, rollupFunctionName: true, schemaId: true, scope: true, usageSummaryTableId: true, usageSummaryTableName: true } }).execute(); // Create -const created = await db.inferenceLogModule.create({ data: { actorFkTableId: '', apiName: '', databaseId: '', entityField: '', entityFkTableId: '', inferenceLogTableId: '', inferenceLogTableName: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', retention: '', schemaId: '', scope: '', usageSummaryTableId: '', usageSummaryTableName: '' }, select: { id: true } }).execute(); +const created = await db.inferenceLogModule.create({ data: { apiName: '', databaseId: '', entityField: '', inferenceLogTableId: '', inferenceLogTableName: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', retention: '', rollupFunctionName: '', schemaId: '', scope: '', usageSummaryTableId: '', usageSummaryTableName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.inferenceLogModule.update({ where: { id: '' }, data: { actorFkTableId: '' }, select: { id: true } }).execute(); +const updated = await db.inferenceLogModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); // Delete const deleted = await db.inferenceLogModule.delete({ where: { id: '' } }).execute(); @@ -1971,9 +2273,9 @@ const updated = await db.integrationProvidersModule.update({ where: { id: '' } }).execute(); ``` -### `db.internalSecretsModule` +### `db.internalConfigModule` -CRUD operations for InternalSecretsModule records. +CRUD operations for InternalConfigModule records. **Fields:** @@ -1984,8 +2286,8 @@ CRUD operations for InternalSecretsModule records. | `entityField` | String | Yes | | `entityTableId` | UUID | Yes | | `id` | UUID | No | -| `internalSecretsTableId` | UUID | Yes | -| `internalSecretsTableName` | String | Yes | +| `internalConfigTableId` | UUID | Yes | +| `internalConfigTableName` | String | Yes | | `policies` | JSON | Yes | | `prefix` | String | Yes | | `privateApiName` | String | Yes | @@ -1999,8 +2301,52 @@ CRUD operations for InternalSecretsModule records. **Operations:** ```typescript -// List all internalSecretsModule records -const items = await db.internalSecretsModule.findMany({ select: { apiName: true, databaseId: true, entityField: true, entityTableId: true, id: true, internalSecretsTableId: true, internalSecretsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); +// List all internalConfigModule records +const items = await db.internalConfigModule.findMany({ select: { apiName: true, databaseId: true, entityField: true, entityTableId: true, id: true, internalConfigTableId: true, internalConfigTableName: 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.internalConfigModule.findOne({ id: '', select: { apiName: true, databaseId: true, entityField: true, entityTableId: true, id: true, internalConfigTableId: true, internalConfigTableName: 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.internalConfigModule.create({ data: { apiName: '', databaseId: '', entityField: '', entityTableId: '', internalConfigTableId: '', internalConfigTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.internalConfigModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.internalConfigModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.internalSecretsModule` + +CRUD operations for InternalSecretsModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `apiName` | String | Yes | +| `databaseId` | UUID | Yes | +| `entityField` | String | Yes | +| `entityTableId` | UUID | Yes | +| `id` | UUID | No | +| `internalSecretsTableId` | UUID | Yes | +| `internalSecretsTableName` | String | Yes | +| `policies` | JSON | Yes | +| `prefix` | String | Yes | +| `privateApiName` | String | Yes | +| `privateSchemaId` | UUID | Yes | +| `privateSchemaName` | String | Yes | +| `provisions` | JSON | Yes | +| `publicSchemaName` | String | Yes | +| `schemaId` | UUID | Yes | +| `scope` | String | Yes | + +**Operations:** + +```typescript +// List all internalSecretsModule records +const items = await db.internalSecretsModule.findMany({ select: { apiName: true, databaseId: true, entityField: true, entityTableId: true, id: true, internalSecretsTableId: true, internalSecretsTableName: 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.internalSecretsModule.findOne({ id: '', select: { apiName: true, databaseId: true, entityField: true, entityTableId: true, id: true, internalSecretsTableId: true, internalSecretsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); @@ -2062,6 +2408,52 @@ const updated = await db.invitesModule.update({ where: { id: '' }, data: { const deleted = await db.invitesModule.delete({ where: { id: '' } }).execute(); ``` +### `db.k8sAdmissionModule` + +CRUD operations for K8sAdmissionModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `apiName` | String | Yes | +| `createdAt` | Datetime | No | +| `databaseId` | UUID | Yes | +| `entityTableId` | UUID | Yes | +| `id` | UUID | No | +| `k8sResourceKindsTableId` | UUID | Yes | +| `k8sSpecRulesTableId` | UUID | Yes | +| `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 k8sAdmissionModule records +const items = await db.k8sAdmissionModule.findMany({ select: { apiName: true, createdAt: true, databaseId: true, entityTableId: true, id: true, k8sResourceKindsTableId: true, k8sSpecRulesTableId: 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.k8sAdmissionModule.findOne({ id: '', select: { apiName: true, createdAt: true, databaseId: true, entityTableId: true, id: true, k8sResourceKindsTableId: true, k8sSpecRulesTableId: 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.k8sAdmissionModule.create({ data: { apiName: '', databaseId: '', entityTableId: '', k8sResourceKindsTableId: '', k8sSpecRulesTableId: '', merkleStoreModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaId: '', publicSchemaName: '', scope: '', storeName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.k8sAdmissionModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.k8sAdmissionModule.delete({ where: { id: '' } }).execute(); +``` + ### `db.limitsModule` CRUD operations for LimitsModule records. @@ -2092,6 +2484,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 +2505,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(); @@ -2127,6 +2520,58 @@ const updated = await db.limitsModule.update({ where: { id: '' }, data: { const deleted = await db.limitsModule.delete({ where: { id: '' } }).execute(); ``` +### `db.machineModule` + +CRUD operations for MachineModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `apiName` | String | Yes | +| `databaseId` | UUID | Yes | +| `defaultCapabilities` | String | Yes | +| `entityField` | String | Yes | +| `entityTableId` | UUID | Yes | +| `id` | UUID | No | +| `machineMessagesTableId` | UUID | Yes | +| `machineMessagesTableName` | String | Yes | +| `machineSessionsTableId` | UUID | Yes | +| `machineSessionsTableName` | String | Yes | +| `machinesTableId` | UUID | Yes | +| `machinesTableName` | String | Yes | +| `partitionInterval` | String | Yes | +| `policies` | JSON | Yes | +| `prefix` | String | Yes | +| `premake` | Int | Yes | +| `privateApiName` | String | Yes | +| `privateSchemaId` | UUID | Yes | +| `privateSchemaName` | String | Yes | +| `provisions` | JSON | Yes | +| `publicSchemaName` | String | Yes | +| `retention` | String | Yes | +| `schemaId` | UUID | Yes | +| `scope` | String | Yes | + +**Operations:** + +```typescript +// List all machineModule records +const items = await db.machineModule.findMany({ select: { apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, machineMessagesTableId: true, machineMessagesTableName: true, machineSessionsTableId: true, machineSessionsTableName: true, machinesTableId: true, machinesTableName: true, partitionInterval: true, policies: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, retention: true, schemaId: true, scope: true } }).execute(); + +// Get one by id +const item = await db.machineModule.findOne({ id: '', select: { apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, machineMessagesTableId: true, machineMessagesTableName: true, machineSessionsTableId: true, machineSessionsTableName: true, machinesTableId: true, machinesTableName: true, partitionInterval: true, policies: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, retention: true, schemaId: true, scope: true } }).execute(); + +// Create +const created = await db.machineModule.create({ data: { apiName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', machineMessagesTableId: '', machineMessagesTableName: '', machineSessionsTableId: '', machineSessionsTableName: '', machinesTableId: '', machinesTableName: '', partitionInterval: '', policies: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', retention: '', schemaId: '', scope: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.machineModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.machineModule.delete({ where: { id: '' } }).execute(); +``` + ### `db.membershipTypesModule` CRUD operations for MembershipTypesModule records. @@ -2174,9 +2619,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 +2647,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 +2660,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,14 +2684,15 @@ CRUD operations for MerkleStoreModule records. | Field | Type | Editable | |-------|------|----------| | `apiName` | String | Yes | +| `capabilityKey` | String | Yes | | `commitTableId` | UUID | Yes | | `createdAt` | Datetime | No | | `databaseId` | UUID | Yes | | `entityField` | String | Yes | +| `entityTableId` | UUID | Yes | | `functionPrefix` | String | Yes | | `id` | UUID | No | | `objectTableId` | UUID | Yes | -| `permissionKey` | String | Yes | | `prefix` | String | Yes | | `privateApiName` | String | Yes | | `privateSchemaId` | UUID | Yes | @@ -2261,13 +2707,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, entityTableId: 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, entityTableId: 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: '', entityTableId: '', 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 +2732,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 +2754,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 +2780,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 +2806,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 +2821,96 @@ 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 | +| `previewCommitFunctionName` | String | Yes | +| `previewSetFunctionName` | String | Yes | +| `previewTokenMintFunctionName` | String | Yes | +| `previewTokenVerifierFunctionName` | String | Yes | | `privateApiName` | String | Yes | | `privateSchemaId` | UUID | Yes | | `privateSchemaName` | String | Yes | +| `provisions` | JSON | Yes | +| `publicSchemaId` | UUID | Yes | | `publicSchemaName` | String | Yes | -| `schemaId` | UUID | Yes | +| `releaseManifestFunctionName` | String | 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, previewCommitFunctionName: true, previewSetFunctionName: true, previewTokenMintFunctionName: true, previewTokenVerifierFunctionName: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaId: true, publicSchemaName: true, releaseManifestFunctionName: 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, previewCommitFunctionName: true, previewSetFunctionName: true, previewTokenMintFunctionName: true, previewTokenVerifierFunctionName: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaId: true, publicSchemaName: true, releaseManifestFunctionName: 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: '', previewCommitFunctionName: '', previewSetFunctionName: '', previewTokenMintFunctionName: '', previewTokenVerifierFunctionName: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaId: '', publicSchemaName: '', releaseManifestFunctionName: '', 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` @@ -2579,23 +3020,25 @@ CRUD operations for PrincipalAuthModule records. | `principalScopeOverridesTableId` | UUID | Yes | | `principalsTableId` | UUID | Yes | | `principalsTableName` | String | Yes | +| `privateSchemaId` | UUID | Yes | | `revokeOrgApiKeyFunction` | String | Yes | | `schemaId` | UUID | Yes | | `sessionCredentialsTableId` | UUID | Yes | | `sessionsTableId` | UUID | Yes | +| `sweepExpiredPrincipalsFunction` | String | Yes | | `usersTableId` | UUID | Yes | **Operations:** ```typescript // List all principalAuthModule records -const items = await db.principalAuthModule.findMany({ select: { apiName: true, auditsTableId: true, createOrgApiKeyFunction: true, createOrgPrincipalFunction: true, createPrincipalFunction: true, databaseId: true, deleteOrgPrincipalFunction: true, deletePrincipalFunction: true, id: true, principalEntitiesTableId: true, principalScopeOverridesTableId: true, principalsTableId: true, principalsTableName: true, revokeOrgApiKeyFunction: true, schemaId: true, sessionCredentialsTableId: true, sessionsTableId: true, usersTableId: true } }).execute(); +const items = await db.principalAuthModule.findMany({ select: { apiName: true, auditsTableId: true, createOrgApiKeyFunction: true, createOrgPrincipalFunction: true, createPrincipalFunction: true, databaseId: true, deleteOrgPrincipalFunction: true, deletePrincipalFunction: true, id: true, principalEntitiesTableId: true, principalScopeOverridesTableId: true, principalsTableId: true, principalsTableName: true, privateSchemaId: true, revokeOrgApiKeyFunction: true, schemaId: true, sessionCredentialsTableId: true, sessionsTableId: true, sweepExpiredPrincipalsFunction: true, usersTableId: true } }).execute(); // Get one by id -const item = await db.principalAuthModule.findOne({ id: '', select: { apiName: true, auditsTableId: true, createOrgApiKeyFunction: true, createOrgPrincipalFunction: true, createPrincipalFunction: true, databaseId: true, deleteOrgPrincipalFunction: true, deletePrincipalFunction: true, id: true, principalEntitiesTableId: true, principalScopeOverridesTableId: true, principalsTableId: true, principalsTableName: true, revokeOrgApiKeyFunction: true, schemaId: true, sessionCredentialsTableId: true, sessionsTableId: true, usersTableId: true } }).execute(); +const item = await db.principalAuthModule.findOne({ id: '', select: { apiName: true, auditsTableId: true, createOrgApiKeyFunction: true, createOrgPrincipalFunction: true, createPrincipalFunction: true, databaseId: true, deleteOrgPrincipalFunction: true, deletePrincipalFunction: true, id: true, principalEntitiesTableId: true, principalScopeOverridesTableId: true, principalsTableId: true, principalsTableName: true, privateSchemaId: true, revokeOrgApiKeyFunction: true, schemaId: true, sessionCredentialsTableId: true, sessionsTableId: true, sweepExpiredPrincipalsFunction: true, usersTableId: true } }).execute(); // Create -const created = await db.principalAuthModule.create({ data: { apiName: '', auditsTableId: '', createOrgApiKeyFunction: '', createOrgPrincipalFunction: '', createPrincipalFunction: '', databaseId: '', deleteOrgPrincipalFunction: '', deletePrincipalFunction: '', principalEntitiesTableId: '', principalScopeOverridesTableId: '', principalsTableId: '', principalsTableName: '', revokeOrgApiKeyFunction: '', schemaId: '', sessionCredentialsTableId: '', sessionsTableId: '', usersTableId: '' }, select: { id: true } }).execute(); +const created = await db.principalAuthModule.create({ data: { apiName: '', auditsTableId: '', createOrgApiKeyFunction: '', createOrgPrincipalFunction: '', createPrincipalFunction: '', databaseId: '', deleteOrgPrincipalFunction: '', deletePrincipalFunction: '', principalEntitiesTableId: '', principalScopeOverridesTableId: '', principalsTableId: '', principalsTableName: '', privateSchemaId: '', revokeOrgApiKeyFunction: '', schemaId: '', sessionCredentialsTableId: '', sessionsTableId: '', sweepExpiredPrincipalsFunction: '', usersTableId: '' }, select: { id: true } }).execute(); // Update const updated = await db.principalAuthModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -2614,22 +3057,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 +3087,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 +3113,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 +3132,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(); @@ -2781,6 +3226,57 @@ const updated = await db.realtimeModule.update({ where: { id: '' }, data: const deleted = await db.realtimeModule.delete({ where: { id: '' } }).execute(); ``` +### `db.refusalLogModule` + +CRUD operations for RefusalLogModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `apiName` | String | Yes | +| `databaseId` | UUID | Yes | +| `entityField` | String | Yes | +| `id` | UUID | No | +| `logInterval` | String | Yes | +| `logPremake` | Int | Yes | +| `logRetention` | String | Yes | +| `logTableId` | UUID | Yes | +| `logTableName` | String | Yes | +| `prefix` | String | Yes | +| `privateApiName` | String | Yes | +| `privateSchemaId` | UUID | Yes | +| `privateSchemaName` | String | Yes | +| `publicSchemaName` | String | Yes | +| `recordRefusalsFunction` | String | Yes | +| `rollupRefusalUsageSummaryFunction` | String | Yes | +| `schemaId` | UUID | Yes | +| `scope` | String | Yes | +| `summaryInterval` | String | Yes | +| `summaryPremake` | Int | Yes | +| `summaryRetention` | String | Yes | +| `summaryTableId` | UUID | Yes | +| `summaryTableName` | String | Yes | + +**Operations:** + +```typescript +// List all refusalLogModule records +const items = await db.refusalLogModule.findMany({ select: { apiName: true, databaseId: true, entityField: true, id: true, logInterval: true, logPremake: true, logRetention: true, logTableId: true, logTableName: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, recordRefusalsFunction: true, rollupRefusalUsageSummaryFunction: true, schemaId: true, scope: true, summaryInterval: true, summaryPremake: true, summaryRetention: true, summaryTableId: true, summaryTableName: true } }).execute(); + +// Get one by id +const item = await db.refusalLogModule.findOne({ id: '', select: { apiName: true, databaseId: true, entityField: true, id: true, logInterval: true, logPremake: true, logRetention: true, logTableId: true, logTableName: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, recordRefusalsFunction: true, rollupRefusalUsageSummaryFunction: true, schemaId: true, scope: true, summaryInterval: true, summaryPremake: true, summaryRetention: true, summaryTableId: true, summaryTableName: true } }).execute(); + +// Create +const created = await db.refusalLogModule.create({ data: { apiName: '', databaseId: '', entityField: '', logInterval: '', logPremake: '', logRetention: '', logTableId: '', logTableName: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', recordRefusalsFunction: '', rollupRefusalUsageSummaryFunction: '', schemaId: '', scope: '', summaryInterval: '', summaryPremake: '', summaryRetention: '', summaryTableId: '', summaryTableName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.refusalLogModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.refusalLogModule.delete({ where: { id: '' } }).execute(); +``` + ### `db.relationProvision` CRUD operations for RelationProvision records. @@ -2833,6 +3329,74 @@ const updated = await db.relationProvision.update({ where: { id: '' }, dat const deleted = await db.relationProvision.delete({ where: { id: '' } }).execute(); ``` +### `db.repositoryModule` + +CRUD operations for RepositoryModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `apiName` | String | Yes | +| `buildStepsTableId` | UUID | Yes | +| `buildStepsTableName` | String | Yes | +| `buildsTableId` | UUID | Yes | +| `buildsTableName` | String | Yes | +| `databaseId` | UUID | Yes | +| `defaultCapabilities` | String | Yes | +| `entityField` | String | Yes | +| `entityTableId` | UUID | Yes | +| `hasAttachments` | Boolean | Yes | +| `hasBuilds` | Boolean | Yes | +| `id` | UUID | No | +| `policies` | JSON | Yes | +| `prefix` | String | Yes | +| `privateApiName` | String | Yes | +| `privateSchemaId` | UUID | Yes | +| `privateSchemaName` | String | Yes | +| `proposalCommentsTableId` | UUID | Yes | +| `proposalCommentsTableName` | String | Yes | +| `proposalFileViewsTableId` | UUID | Yes | +| `proposalFileViewsTableName` | String | Yes | +| `proposalReactionsTableId` | UUID | Yes | +| `proposalReactionsTableName` | String | Yes | +| `proposalReviewsTableId` | UUID | Yes | +| `proposalReviewsTableName` | String | Yes | +| `proposalsTableId` | UUID | Yes | +| `proposalsTableName` | String | Yes | +| `provisions` | JSON | Yes | +| `publicSchemaName` | String | Yes | +| `repositoriesTableId` | UUID | Yes | +| `repositoriesTableName` | String | Yes | +| `repositoryEventsTableId` | UUID | Yes | +| `repositoryEventsTableName` | String | Yes | +| `repositoryRequiredChecksTableId` | UUID | Yes | +| `repositoryRequiredChecksTableName` | String | Yes | +| `schemaId` | UUID | Yes | +| `scope` | String | Yes | +| `search` | JSON | Yes | +| `workflowsTableId` | UUID | Yes | +| `workflowsTableName` | String | Yes | + +**Operations:** + +```typescript +// List all repositoryModule records +const items = await db.repositoryModule.findMany({ select: { apiName: true, buildStepsTableId: true, buildStepsTableName: true, buildsTableId: true, buildsTableName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, hasAttachments: true, hasBuilds: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, proposalCommentsTableId: true, proposalCommentsTableName: true, proposalFileViewsTableId: true, proposalFileViewsTableName: true, proposalReactionsTableId: true, proposalReactionsTableName: true, proposalReviewsTableId: true, proposalReviewsTableName: true, proposalsTableId: true, proposalsTableName: true, provisions: true, publicSchemaName: true, repositoriesTableId: true, repositoriesTableName: true, repositoryEventsTableId: true, repositoryEventsTableName: true, repositoryRequiredChecksTableId: true, repositoryRequiredChecksTableName: true, schemaId: true, scope: true, search: true, workflowsTableId: true, workflowsTableName: true } }).execute(); + +// Get one by id +const item = await db.repositoryModule.findOne({ id: '', select: { apiName: true, buildStepsTableId: true, buildStepsTableName: true, buildsTableId: true, buildsTableName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, hasAttachments: true, hasBuilds: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, proposalCommentsTableId: true, proposalCommentsTableName: true, proposalFileViewsTableId: true, proposalFileViewsTableName: true, proposalReactionsTableId: true, proposalReactionsTableName: true, proposalReviewsTableId: true, proposalReviewsTableName: true, proposalsTableId: true, proposalsTableName: true, provisions: true, publicSchemaName: true, repositoriesTableId: true, repositoriesTableName: true, repositoryEventsTableId: true, repositoryEventsTableName: true, repositoryRequiredChecksTableId: true, repositoryRequiredChecksTableName: true, schemaId: true, scope: true, search: true, workflowsTableId: true, workflowsTableName: true } }).execute(); + +// Create +const created = await db.repositoryModule.create({ data: { apiName: '', buildStepsTableId: '', buildStepsTableName: '', buildsTableId: '', buildsTableName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', hasAttachments: '', hasBuilds: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', proposalCommentsTableId: '', proposalCommentsTableName: '', proposalFileViewsTableId: '', proposalFileViewsTableName: '', proposalReactionsTableId: '', proposalReactionsTableName: '', proposalReviewsTableId: '', proposalReviewsTableName: '', proposalsTableId: '', proposalsTableName: '', provisions: '', publicSchemaName: '', repositoriesTableId: '', repositoriesTableName: '', repositoryEventsTableId: '', repositoryEventsTableName: '', repositoryRequiredChecksTableId: '', repositoryRequiredChecksTableName: '', schemaId: '', scope: '', search: '', workflowsTableId: '', workflowsTableName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.repositoryModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.repositoryModule.delete({ where: { id: '' } }).execute(); +``` + ### `db.resourceModule` CRUD operations for ResourceModule records. @@ -2842,8 +3406,10 @@ CRUD operations for ResourceModule records. | Field | Type | Editable | |-------|------|----------| | `apiName` | String | Yes | +| `builderBindingsTableId` | UUID | Yes | +| `builderBindingsTableName` | String | Yes | | `databaseId` | UUID | Yes | -| `defaultPermissions` | String | Yes | +| `defaultCapabilities` | String | Yes | | `entityField` | String | Yes | | `entityTableId` | UUID | Yes | | `id` | UUID | No | @@ -2857,6 +3423,8 @@ CRUD operations for ResourceModule records. | `privateSchemaName` | String | Yes | | `provisions` | JSON | Yes | | `publicSchemaName` | String | Yes | +| `registryBindingsTableId` | UUID | Yes | +| `registryBindingsTableName` | String | Yes | | `requirementsStateViewName` | String | Yes | | `resolvedRequirementsViewName` | String | Yes | | `resourceBillingRollupFunction` | String | Yes | @@ -2882,13 +3450,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, builderBindingsTableId: true, builderBindingsTableName: 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, registryBindingsTableId: true, registryBindingsTableName: 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, builderBindingsTableId: true, builderBindingsTableName: 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, registryBindingsTableId: true, registryBindingsTableName: 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: '', builderBindingsTableId: '', builderBindingsTableName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', installationStoreName: '', merkleStoreModuleId: '', namespaceModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', registryBindingsTableId: '', registryBindingsTableName: '', 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 +3515,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 | @@ -2963,6 +3533,8 @@ CRUD operations for RouteModule records. | `privateSchemaName` | String | Yes | | `provisions` | JSON | Yes | | `publicSchemaName` | String | Yes | +| `redirectsTableId` | UUID | Yes | +| `redirectsTableName` | String | Yes | | `resolverFunctionName` | String | Yes | | `routeBindingsTableId` | UUID | Yes | | `routeBindingsTableName` | String | Yes | @@ -2970,18 +3542,20 @@ CRUD operations for RouteModule records. | `routesTableName` | String | Yes | | `schemaId` | UUID | Yes | | `scope` | String | Yes | +| `servingSiteField` | String | Yes | +| `storageKey` | String | Yes | **Operations:** ```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, redirectsTableId: true, redirectsTableName: true, resolverFunctionName: true, routeBindingsTableId: true, routeBindingsTableName: true, routesTableId: true, routesTableName: true, schemaId: true, scope: true, servingSiteField: true, storageKey: 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, redirectsTableId: true, redirectsTableName: true, resolverFunctionName: true, routeBindingsTableId: true, routeBindingsTableName: true, routesTableId: true, routesTableName: true, schemaId: true, scope: true, servingSiteField: true, storageKey: 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: '', redirectsTableId: '', redirectsTableName: '', resolverFunctionName: '', routeBindingsTableId: '', routeBindingsTableName: '', routesTableId: '', routesTableName: '', schemaId: '', scope: '', servingSiteField: '', storageKey: '' }, select: { id: true } }).execute(); // Update const updated = await db.routeModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -2990,6 +3564,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. @@ -3002,8 +3609,10 @@ CRUD operations for SecureTableProvision records. | `fields` | JSON | Yes | | `grants` | JSON | Yes | | `id` | UUID | No | +| `module` | JSON | Yes | | `nodes` | JSON | Yes | | `outFields` | UUID | Yes | +| `owns` | JSON | Yes | | `policies` | JSON | Yes | | `schemaId` | UUID | Yes | | `tableId` | UUID | Yes | @@ -3014,13 +3623,13 @@ CRUD operations for SecureTableProvision records. ```typescript // List all secureTableProvision records -const items = await db.secureTableProvision.findMany({ select: { databaseId: true, fields: true, grants: true, id: true, nodes: true, outFields: true, policies: true, schemaId: true, tableId: true, tableName: true, useRls: true } }).execute(); +const items = await db.secureTableProvision.findMany({ select: { databaseId: true, fields: true, grants: true, id: true, module: true, nodes: true, outFields: true, owns: true, policies: true, schemaId: true, tableId: true, tableName: true, useRls: true } }).execute(); // Get one by id -const item = await db.secureTableProvision.findOne({ id: '', select: { databaseId: true, fields: true, grants: true, id: true, nodes: true, outFields: true, policies: true, schemaId: true, tableId: true, tableName: true, useRls: true } }).execute(); +const item = await db.secureTableProvision.findOne({ id: '', select: { databaseId: true, fields: true, grants: true, id: true, module: true, nodes: true, outFields: true, owns: true, policies: true, schemaId: true, tableId: true, tableName: true, useRls: true } }).execute(); // Create -const created = await db.secureTableProvision.create({ data: { databaseId: '', fields: '', grants: '', nodes: '', outFields: '', policies: '', schemaId: '', tableId: '', tableName: '', useRls: '' }, select: { id: true } }).execute(); +const created = await db.secureTableProvision.create({ data: { databaseId: '', fields: '', grants: '', module: '', nodes: '', outFields: '', owns: '', policies: '', schemaId: '', tableId: '', tableName: '', useRls: '' }, select: { id: true } }).execute(); // Update const updated = await db.secureTableProvision.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -3113,7 +3722,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 | @@ -3136,24 +3745,27 @@ CRUD operations for SiteSurfaceModule records. | `siteMetadataTableName` | String | Yes | | `siteModulesTableId` | UUID | Yes | | `siteModulesTableName` | String | Yes | +| `siteReleasesTableId` | UUID | Yes | +| `siteReleasesTableName` | String | Yes | | `siteThemesTableId` | UUID | Yes | | `siteThemesTableName` | String | Yes | | `siteWebConfigTableId` | UUID | Yes | | `siteWebConfigTableName` | String | Yes | | `sitesTableId` | UUID | Yes | | `sitesTableName` | String | Yes | +| `storageKey` | String | Yes | **Operations:** ```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, siteReleasesTableId: true, siteReleasesTableName: true, siteThemesTableId: true, siteThemesTableName: true, siteWebConfigTableId: true, siteWebConfigTableName: true, sitesTableId: true, sitesTableName: true, storageKey: 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, siteReleasesTableId: true, siteReleasesTableName: true, siteThemesTableId: true, siteThemesTableName: true, siteWebConfigTableId: true, siteWebConfigTableName: true, sitesTableId: true, sitesTableName: true, storageKey: 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: '', siteReleasesTableId: '', siteReleasesTableName: '', siteThemesTableId: '', siteThemesTableName: '', siteWebConfigTableId: '', siteWebConfigTableName: '', sitesTableId: '', sitesTableName: '', storageKey: '' }, select: { id: true } }).execute(); // Update const updated = await db.siteSurfaceModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -3170,11 +3782,9 @@ CRUD operations for StorageLogModule records. | Field | Type | Editable | |-------|------|----------| -| `actorFkTableId` | UUID | Yes | | `apiName` | String | Yes | | `databaseId` | UUID | Yes | | `entityField` | String | Yes | -| `entityFkTableId` | UUID | Yes | | `id` | UUID | No | | `interval` | String | Yes | | `prefix` | String | Yes | @@ -3184,6 +3794,7 @@ CRUD operations for StorageLogModule records. | `privateSchemaName` | String | Yes | | `publicSchemaName` | String | Yes | | `retention` | String | Yes | +| `rollupFunctionName` | String | Yes | | `schemaId` | UUID | Yes | | `scope` | String | Yes | | `storageLogTableId` | UUID | Yes | @@ -3195,16 +3806,16 @@ CRUD operations for StorageLogModule records. ```typescript // List all storageLogModule records -const items = await db.storageLogModule.findMany({ select: { actorFkTableId: true, apiName: true, databaseId: true, entityField: true, entityFkTableId: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, schemaId: true, scope: true, storageLogTableId: true, storageLogTableName: true, usageSummaryTableId: true, usageSummaryTableName: true } }).execute(); +const items = await db.storageLogModule.findMany({ select: { apiName: true, databaseId: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, rollupFunctionName: true, schemaId: true, scope: true, storageLogTableId: true, storageLogTableName: true, usageSummaryTableId: true, usageSummaryTableName: true } }).execute(); // Get one by id -const item = await db.storageLogModule.findOne({ id: '', select: { actorFkTableId: true, apiName: true, databaseId: true, entityField: true, entityFkTableId: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, schemaId: true, scope: true, storageLogTableId: true, storageLogTableName: true, usageSummaryTableId: true, usageSummaryTableName: true } }).execute(); +const item = await db.storageLogModule.findOne({ id: '', select: { apiName: true, databaseId: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, rollupFunctionName: true, schemaId: true, scope: true, storageLogTableId: true, storageLogTableName: true, usageSummaryTableId: true, usageSummaryTableName: true } }).execute(); // Create -const created = await db.storageLogModule.create({ data: { actorFkTableId: '', apiName: '', databaseId: '', entityField: '', entityFkTableId: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', retention: '', schemaId: '', scope: '', storageLogTableId: '', storageLogTableName: '', usageSummaryTableId: '', usageSummaryTableName: '' }, select: { id: true } }).execute(); +const created = await db.storageLogModule.create({ data: { apiName: '', databaseId: '', entityField: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', retention: '', rollupFunctionName: '', schemaId: '', scope: '', storageLogTableId: '', storageLogTableName: '', usageSummaryTableId: '', usageSummaryTableName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.storageLogModule.update({ where: { id: '' }, data: { actorFkTableId: '' }, select: { id: true } }).execute(); +const updated = await db.storageLogModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); // Delete const deleted = await db.storageLogModule.delete({ where: { id: '' } }).execute(); @@ -3226,8 +3837,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 | @@ -3242,6 +3853,7 @@ CRUD operations for StorageModule records. | `hasPathShares` | Boolean | Yes | | `hasVersioning` | Boolean | Yes | | `id` | UUID | No | +| `key` | String | Yes | | `maxBulkFiles` | Int | Yes | | `maxBulkTotalSize` | BigInt | Yes | | `maxFilenameLength` | Int | Yes | @@ -3264,13 +3876,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, key: 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, key: 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: '', key: '', 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(); @@ -3287,11 +3899,9 @@ CRUD operations for TransferLogModule records. | Field | Type | Editable | |-------|------|----------| -| `actorFkTableId` | UUID | Yes | | `apiName` | String | Yes | | `databaseId` | UUID | Yes | | `entityField` | String | Yes | -| `entityFkTableId` | UUID | Yes | | `id` | UUID | No | | `interval` | String | Yes | | `prefix` | String | Yes | @@ -3301,6 +3911,7 @@ CRUD operations for TransferLogModule records. | `privateSchemaName` | String | Yes | | `publicSchemaName` | String | Yes | | `retention` | String | Yes | +| `rollupFunctionName` | String | Yes | | `schemaId` | UUID | Yes | | `scope` | String | Yes | | `transferLogTableId` | UUID | Yes | @@ -3312,16 +3923,16 @@ CRUD operations for TransferLogModule records. ```typescript // List all transferLogModule records -const items = await db.transferLogModule.findMany({ select: { actorFkTableId: true, apiName: true, databaseId: true, entityField: true, entityFkTableId: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, schemaId: true, scope: true, transferLogTableId: true, transferLogTableName: true, usageSummaryTableId: true, usageSummaryTableName: true } }).execute(); +const items = await db.transferLogModule.findMany({ select: { apiName: true, databaseId: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, rollupFunctionName: true, schemaId: true, scope: true, transferLogTableId: true, transferLogTableName: true, usageSummaryTableId: true, usageSummaryTableName: true } }).execute(); // Get one by id -const item = await db.transferLogModule.findOne({ id: '', select: { actorFkTableId: true, apiName: true, databaseId: true, entityField: true, entityFkTableId: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, schemaId: true, scope: true, transferLogTableId: true, transferLogTableName: true, usageSummaryTableId: true, usageSummaryTableName: true } }).execute(); +const item = await db.transferLogModule.findOne({ id: '', select: { apiName: true, databaseId: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, rollupFunctionName: true, schemaId: true, scope: true, transferLogTableId: true, transferLogTableName: true, usageSummaryTableId: true, usageSummaryTableName: true } }).execute(); // Create -const created = await db.transferLogModule.create({ data: { actorFkTableId: '', apiName: '', databaseId: '', entityField: '', entityFkTableId: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', retention: '', schemaId: '', scope: '', transferLogTableId: '', transferLogTableName: '', usageSummaryTableId: '', usageSummaryTableName: '' }, select: { id: true } }).execute(); +const created = await db.transferLogModule.create({ data: { apiName: '', databaseId: '', entityField: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', retention: '', rollupFunctionName: '', schemaId: '', scope: '', transferLogTableId: '', transferLogTableName: '', usageSummaryTableId: '', usageSummaryTableName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.transferLogModule.update({ where: { id: '' }, data: { actorFkTableId: '' }, select: { id: true } }).execute(); +const updated = await db.transferLogModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); // Delete const deleted = await db.transferLogModule.delete({ where: { id: '' } }).execute(); @@ -3347,8 +3958,10 @@ CRUD operations for UserAuthModule records. | `forgotPasswordFunction` | String | Yes | | `id` | UUID | No | | `privateApiName` | String | Yes | +| `privateSchemaId` | UUID | Yes | | `requestCrossOriginTokenFunction` | String | Yes | | `resetPasswordFunction` | String | Yes | +| `revokeSessionTreeFunction` | String | Yes | | `schemaId` | UUID | Yes | | `secretsTableId` | UUID | Yes | | `sendAccountDeletionEmailFunction` | String | Yes | @@ -3360,6 +3973,7 @@ CRUD operations for UserAuthModule records. | `signInFunction` | String | Yes | | `signOutFunction` | String | Yes | | `signUpFunction` | String | Yes | +| `sweepExpiredSessionsFunction` | String | Yes | | `usersTableId` | UUID | Yes | | `verifyEmailFunction` | String | Yes | | `verifyPasswordFunction` | String | Yes | @@ -3368,13 +3982,13 @@ CRUD operations for UserAuthModule records. ```typescript // List all userAuthModule records -const items = await db.userAuthModule.findMany({ select: { apiName: true, auditsTableId: true, auditsTableName: true, checkPasswordFunction: true, databaseId: true, deleteAccountFunction: true, emailsTableId: true, encryptedTableId: true, extendTokenExpires: true, forgotPasswordFunction: true, id: true, privateApiName: true, requestCrossOriginTokenFunction: true, resetPasswordFunction: true, schemaId: true, secretsTableId: true, sendAccountDeletionEmailFunction: true, sendVerificationEmailFunction: true, sessionCredentialsTableId: true, sessionsTableId: true, setPasswordFunction: true, signInCrossOriginFunction: true, signInFunction: true, signOutFunction: true, signUpFunction: true, usersTableId: true, verifyEmailFunction: true, verifyPasswordFunction: true } }).execute(); +const items = await db.userAuthModule.findMany({ select: { apiName: true, auditsTableId: true, auditsTableName: true, checkPasswordFunction: true, databaseId: true, deleteAccountFunction: true, emailsTableId: true, encryptedTableId: true, extendTokenExpires: true, forgotPasswordFunction: true, id: true, privateApiName: true, privateSchemaId: true, requestCrossOriginTokenFunction: true, resetPasswordFunction: true, revokeSessionTreeFunction: true, schemaId: true, secretsTableId: true, sendAccountDeletionEmailFunction: true, sendVerificationEmailFunction: true, sessionCredentialsTableId: true, sessionsTableId: true, setPasswordFunction: true, signInCrossOriginFunction: true, signInFunction: true, signOutFunction: true, signUpFunction: true, sweepExpiredSessionsFunction: true, usersTableId: true, verifyEmailFunction: true, verifyPasswordFunction: true } }).execute(); // Get one by id -const item = await db.userAuthModule.findOne({ id: '', select: { apiName: true, auditsTableId: true, auditsTableName: true, checkPasswordFunction: true, databaseId: true, deleteAccountFunction: true, emailsTableId: true, encryptedTableId: true, extendTokenExpires: true, forgotPasswordFunction: true, id: true, privateApiName: true, requestCrossOriginTokenFunction: true, resetPasswordFunction: true, schemaId: true, secretsTableId: true, sendAccountDeletionEmailFunction: true, sendVerificationEmailFunction: true, sessionCredentialsTableId: true, sessionsTableId: true, setPasswordFunction: true, signInCrossOriginFunction: true, signInFunction: true, signOutFunction: true, signUpFunction: true, usersTableId: true, verifyEmailFunction: true, verifyPasswordFunction: true } }).execute(); +const item = await db.userAuthModule.findOne({ id: '', select: { apiName: true, auditsTableId: true, auditsTableName: true, checkPasswordFunction: true, databaseId: true, deleteAccountFunction: true, emailsTableId: true, encryptedTableId: true, extendTokenExpires: true, forgotPasswordFunction: true, id: true, privateApiName: true, privateSchemaId: true, requestCrossOriginTokenFunction: true, resetPasswordFunction: true, revokeSessionTreeFunction: true, schemaId: true, secretsTableId: true, sendAccountDeletionEmailFunction: true, sendVerificationEmailFunction: true, sessionCredentialsTableId: true, sessionsTableId: true, setPasswordFunction: true, signInCrossOriginFunction: true, signInFunction: true, signOutFunction: true, signUpFunction: true, sweepExpiredSessionsFunction: true, usersTableId: true, verifyEmailFunction: true, verifyPasswordFunction: true } }).execute(); // Create -const created = await db.userAuthModule.create({ data: { apiName: '', auditsTableId: '', auditsTableName: '', checkPasswordFunction: '', databaseId: '', deleteAccountFunction: '', emailsTableId: '', encryptedTableId: '', extendTokenExpires: '', forgotPasswordFunction: '', privateApiName: '', requestCrossOriginTokenFunction: '', resetPasswordFunction: '', schemaId: '', secretsTableId: '', sendAccountDeletionEmailFunction: '', sendVerificationEmailFunction: '', sessionCredentialsTableId: '', sessionsTableId: '', setPasswordFunction: '', signInCrossOriginFunction: '', signInFunction: '', signOutFunction: '', signUpFunction: '', usersTableId: '', verifyEmailFunction: '', verifyPasswordFunction: '' }, select: { id: true } }).execute(); +const created = await db.userAuthModule.create({ data: { apiName: '', auditsTableId: '', auditsTableName: '', checkPasswordFunction: '', databaseId: '', deleteAccountFunction: '', emailsTableId: '', encryptedTableId: '', extendTokenExpires: '', forgotPasswordFunction: '', privateApiName: '', privateSchemaId: '', requestCrossOriginTokenFunction: '', resetPasswordFunction: '', revokeSessionTreeFunction: '', schemaId: '', secretsTableId: '', sendAccountDeletionEmailFunction: '', sendVerificationEmailFunction: '', sessionCredentialsTableId: '', sessionsTableId: '', setPasswordFunction: '', signInCrossOriginFunction: '', signInFunction: '', signOutFunction: '', signUpFunction: '', sweepExpiredSessionsFunction: '', usersTableId: '', verifyEmailFunction: '', verifyPasswordFunction: '' }, select: { id: true } }).execute(); // Update const updated = await db.userAuthModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -3453,6 +4067,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 +4264,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 +4290,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,45 +4307,9 @@ 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. +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). A table entry either names its table (table_name plus optional schema_name) or references one an installed module generated ("module": {"type": "agent", "scope": "org", "table": "message"}), which resolves through the module row's recorded table ids and raises when it matches nothing instead of creating an empty table. After provisioning, optional smart_tags (jsonb object) on the table entry are applied via metaschema.append_table_smart_tags(), and optional smart_tags on individual field entries are applied via metaschema.append_field_smart_tags(). (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] — resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID on success, NULL on failure. - **Type:** mutation - **Arguments:** @@ -3726,10 +4339,11 @@ const result = await db.mutation.copyTemplateToBlueprint({ input: { databaseId: ### `db.mutation.provisionBucket` -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. +Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. - **Type:** mutation - **Arguments:** @@ -3741,108 +4355,3 @@ and lifecycle settings. ```typescript 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(); -``` diff --git a/sdk/constructive-cli/src/modules/orm/index.ts b/sdk/constructive-cli/src/modules/orm/index.ts index 0951126688..b65ba3f129 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 { ClusterModuleModel } from './models/clusterModule'; 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,32 +32,37 @@ 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'; import { GraphExecutionModuleModel } from './models/graphExecutionModule'; import { GraphModuleModel } from './models/graphModule'; import { HierarchyModuleModel } from './models/hierarchyModule'; -import { HttpRouteModuleModel } from './models/httpRouteModule'; import { I18NModuleModel } from './models/i18NModule'; import { IdentityProvidersModuleModel } from './models/identityProvidersModule'; +import { ImageModuleModel } from './models/imageModule'; import { InferenceLogModuleModel } from './models/inferenceLogModule'; import { InfraConfigModuleModel } from './models/infraConfigModule'; import { InfraSecretsModuleModel } from './models/infraSecretsModule'; import { IntegrationProvidersModuleModel } from './models/integrationProvidersModule'; +import { InternalConfigModuleModel } from './models/internalConfigModule'; import { InternalSecretsModuleModel } from './models/internalSecretsModule'; import { InvitesModuleModel } from './models/invitesModule'; +import { K8sAdmissionModuleModel } from './models/k8sAdmissionModule'; import { LimitsModuleModel } from './models/limitsModule'; +import { MachineModuleModel } from './models/machineModule'; import { MembershipTypesModuleModel } from './models/membershipTypesModule'; 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'; @@ -62,10 +70,13 @@ import { ProfilesModuleModel } from './models/profilesModule'; import { RateLimitMetersModuleModel } from './models/rateLimitMetersModule'; import { RateLimitsModuleModel } from './models/rateLimitsModule'; import { RealtimeModuleModel } from './models/realtimeModule'; +import { RefusalLogModuleModel } from './models/refusalLogModule'; import { RelationProvisionModel } from './models/relationProvision'; +import { RepositoryModuleModel } from './models/repositoryModule'; 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 +87,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 +134,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), + clusterModule: new ClusterModuleModel(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,32 +153,37 @@ 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), graphExecutionModule: new GraphExecutionModuleModel(client), graphModule: new GraphModuleModel(client), hierarchyModule: new HierarchyModuleModel(client), - httpRouteModule: new HttpRouteModuleModel(client), i18NModule: new I18NModuleModel(client), identityProvidersModule: new IdentityProvidersModuleModel(client), + imageModule: new ImageModuleModel(client), inferenceLogModule: new InferenceLogModuleModel(client), infraConfigModule: new InfraConfigModuleModel(client), infraSecretsModule: new InfraSecretsModuleModel(client), integrationProvidersModule: new IntegrationProvidersModuleModel(client), + internalConfigModule: new InternalConfigModuleModel(client), internalSecretsModule: new InternalSecretsModuleModel(client), invitesModule: new InvitesModuleModel(client), + k8sAdmissionModule: new K8sAdmissionModuleModel(client), limitsModule: new LimitsModuleModel(client), + machineModule: new MachineModuleModel(client), membershipTypesModule: new MembershipTypesModuleModel(client), membershipsModule: new MembershipsModuleModel(client), 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), @@ -173,10 +191,13 @@ export function createClient(config: OrmClientConfig) { rateLimitMetersModule: new RateLimitMetersModuleModel(client), rateLimitsModule: new RateLimitsModuleModel(client), realtimeModule: new RealtimeModuleModel(client), + refusalLogModule: new RefusalLogModuleModel(client), relationProvision: new RelationProvisionModel(client), + repositoryModule: new RepositoryModuleModel(client), 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 +208,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..05438875c5 100644 --- a/sdk/constructive-cli/src/modules/orm/input-types.ts +++ b/sdk/constructive-cli/src/modules/orm/input-types.ts @@ -236,12 +236,18 @@ export interface AgentModule { agentTableName?: string | null; apiName?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; + defaultVisibility?: string | null; entityField?: string | null; entityTableId?: string | null; + eventTableId?: string | null; + eventTableName?: string | null; hasAgents?: boolean | null; + hasAttachments?: boolean | null; hasPlans?: boolean | null; + hasRepositoryResources?: boolean | null; hasResources?: boolean | null; + hasRuns?: boolean | null; id: string; messageTableId?: string | null; messageTableName?: string | null; @@ -258,16 +264,21 @@ export interface AgentModule { promptsTableName?: string | null; provisions?: Record | null; publicSchemaName?: string | null; + resourceRepositoryTableId?: string | null; + resourceRepositoryTableName?: string | null; resourceTableId?: string | null; resourceTableName?: string | null; resources?: Record | null; + runTableId?: string | null; + runTableName?: string | null; schemaId?: string | null; scope?: string | null; - shared?: boolean | null; taskTableId?: string | null; taskTableName?: string | null; threadTableId?: string | null; threadTableName?: string | null; + workspaceTableId?: string | null; + workspaceTableName?: string | null; } export interface ApiSurfaceModule { apiName?: string | null; @@ -281,7 +292,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; @@ -297,11 +308,12 @@ export interface AppModule { apiName?: string | null; appComponentsTableId?: string | null; appComponentsTableName?: string | null; + appStoreIdentitiesTableName?: string | null; appsTableId?: string | null; 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 +332,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; @@ -346,19 +358,34 @@ export interface BillingModule { sweepExpiredSubscriptionsFunction?: string | null; } export interface BillingProviderModule { + activatePlanSubscriptionFunction?: string | null; apiName?: string | null; billingCustomersTableId?: string | null; billingCustomersTableName?: string | null; + billingDisputesTableId?: string | null; + billingDisputesTableName?: 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; + getActivePlanPricingFunction?: string | null; + getBillingCustomerFunction?: string | null; + getBillingPriceFunction?: string | null; + getBillingProductFunction?: string | null; + getBillingSubscriptionFunction?: string | null; + getFallbackFreePlanFunction?: string | null; id: string; + listPendingUsageSyncFunction?: string | null; + markUsageSyncedFunction?: string | null; prefix?: string | null; pricesTableId?: string | null; privateApiName?: string | null; @@ -366,8 +393,16 @@ export interface BillingProviderModule { processBillingEventFunction?: string | null; productsTableId?: string | null; provider?: string | null; + recordDisputeFunction?: string | null; + recordRefundFunction?: string | null; schemaId?: string | null; subscriptionsTableId?: string | null; + sweepOverdueSubscriptionsFunction?: string | null; + upsertBillingCustomerFunction?: string | null; + upsertBillingPriceFunction?: string | null; + upsertBillingProductFunction?: string | null; + upsertBillingSubscriptionFunction?: 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,28 +499,62 @@ 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; + appStoreIdentitiesTableId?: string | null; + appStoreIdentitiesTableName?: 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; functionsTableId?: string | null; functionsTableName?: string | null; id: string; + imagesTableId?: string | null; + imagesTableName?: string | null; + managedDomainsTableId?: string | null; + managedDomainsTableName?: string | null; namespacesTableId?: string | null; namespacesTableName?: string | null; policies?: Record | null; privateApiName?: string | null; provisions?: Record | null; publicSchemaName?: string | null; + redirectsTableId?: string | null; + redirectsTableName?: string | null; resourceDefinitionsTableId?: string | null; resourceDefinitionsTableName?: string | null; resourceInstallationsTableId?: string | null; @@ -505,14 +574,41 @@ export interface CatalogModule { sitesWebConfigTableId?: string | null; sitesWebConfigTableName?: string | null; } +export interface ClusterModule { + apiName?: string | null; + clusterEventsTableId?: string | null; + clusterEventsTableName?: string | null; + clustersTableId?: string | null; + clustersTableName?: string | null; + databaseId?: string | null; + databasePlacementsTableId?: string | null; + databasePlacementsTableName?: string | null; + databaseServersTableId?: string | null; + databaseServersTableName?: string | null; + defaultCapabilities?: string[] | null; + entityField?: string | null; + id: string; + partitionInterval?: string | null; + physicalDatabasesTableId?: string | null; + physicalDatabasesTableName?: string | null; + policies?: Record | null; + prefix?: string | null; + premake?: number | null; + privateApiName?: string | null; + privateSchemaId?: string | null; + privateSchemaName?: string | null; + provisions?: Record | null; + publicSchemaName?: string | null; + retention?: string | null; + schemaId?: string | null; + scope?: string | null; +} export interface ComputeLogModule { - actorFkTableId?: string | null; apiName?: string | null; computeLogTableId?: string | null; computeLogTableName?: string | null; databaseId?: string | null; entityField?: string | null; - entityFkTableId?: string | null; id: string; interval?: string | null; prefix?: string | null; @@ -522,31 +618,41 @@ export interface ComputeLogModule { privateSchemaName?: string | null; publicSchemaName?: string | null; retention?: string | null; + rollupFunctionName?: string | null; schemaId?: string | null; scope?: string | null; usageSummaryTableId?: string | null; usageSummaryTableName?: string | null; } -export interface ConfigSecretsUserModule { +export interface ConnectedAccountsModule { apiName?: string | null; databaseId?: string | null; - entityField?: string | null; id: string; + ownerTableId?: string | null; privateApiName?: string | null; + privateSchemaId?: string | null; schemaId?: string | null; tableId?: string | null; tableName?: string | null; } -export interface ConnectedAccountsModule { +export interface ContentPresetModule { apiName?: string | null; + contentPresetsTableId?: string | null; + createdAt?: string | null; databaseId?: string | null; + entityTableId?: string | null; id: string; - ownerTableId?: string | null; + merkleStoreModuleId?: string | null; + policies?: Record | null; + prefix?: string | null; privateApiName?: string | null; privateSchemaId?: string | null; - schemaId?: string | null; - tableId?: string | null; - tableName?: 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; @@ -576,15 +682,30 @@ 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 */ async?: boolean | null; + /** The user whose identity is copied into the new database. Defaults to owner_id when NULL; set explicitly when owner_id is an organization */ + bootstrapActorId?: string | null; /** Error message from the most recent failed bootstrap attempt */ bootstrapError?: string | null; /** Status of the deferred owner bootstrap job: not_requested, pending, completed, or failed */ bootstrapStatus?: string | null; - /** When true, copies the owner user and password hash from source database to the newly provisioned database */ + /** When true, copies the bootstrap user and password hash from source database to the newly provisioned database */ bootstrapUser?: boolean | null; completedAt?: string | null; createdAt?: string | null; @@ -598,11 +719,11 @@ 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; - /** UUID of the user who owns this database */ + /** UUID of the entity that owns this database: a user, or an organization for an org-owned request */ ownerId?: string | null; /** The database the owner user is copied from during bootstrap (captured from JWT context at provision time) */ sourceDatabaseId?: string | null; @@ -617,7 +738,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 +822,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 +877,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 +899,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 +934,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 +956,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 +966,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 +1008,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 +1039,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 +1061,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 +1105,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 +1119,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 +1139,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 +1165,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 +1202,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 +1211,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 +1228,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 +1242,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 +1286,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 +1310,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; @@ -1165,12 +1327,13 @@ export interface FunctionModule { schedulesTableId?: string | null; schemaId?: string | null; scope?: string | null; + storageKey?: string | null; } 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 +1358,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 +1381,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; @@ -1236,29 +1399,6 @@ export interface HierarchyModule { sprtTableName?: string | null; usersTableId?: string | null; } -export interface HttpRouteModule { - apiName?: string | null; - databaseId?: string | null; - defaultPermissions?: string[] | null; - entityField?: string | null; - entityTableId?: string | null; - functionModuleId?: string | null; - httpRoutesTableId?: string | null; - httpRoutesTableName?: string | null; - id: string; - policies?: Record | null; - prefix?: string | null; - privateApiName?: string | null; - privateSchemaId?: string | null; - privateSchemaName?: string | null; - provisions?: Record | null; - publicSchemaName?: string | null; - resolverFunctionName?: string | null; - resourceModuleId?: string | null; - schemaId?: string | null; - scope?: string | null; - storageModuleId?: string | null; -} export interface I18NModule { apiName?: string | null; databaseId?: string | null; @@ -1296,12 +1436,35 @@ export interface IdentityProvidersModule { tableId?: string | null; tableName?: string | null; } +export interface ImageModule { + apiName?: string | null; + databaseId?: string | null; + defaultCapabilities?: string[] | null; + entityField?: string | null; + entityTableId?: string | null; + id: string; + imageGrantsTableId?: string | null; + imageGrantsTableName?: string | null; + imagesTableId?: string | null; + imagesTableName?: string | null; + policies?: Record | null; + prefix?: string | null; + privateApiName?: string | null; + privateSchemaId?: string | null; + privateSchemaName?: string | null; + provisions?: Record | null; + publicSchemaName?: string | null; + registriesTableId?: string | null; + registriesTableName?: string | null; + registryGrantsTableId?: string | null; + registryGrantsTableName?: string | null; + schemaId?: string | null; + scope?: string | null; +} export interface InferenceLogModule { - actorFkTableId?: string | null; apiName?: string | null; databaseId?: string | null; entityField?: string | null; - entityFkTableId?: string | null; id: string; inferenceLogTableId?: string | null; inferenceLogTableName?: string | null; @@ -1313,6 +1476,7 @@ export interface InferenceLogModule { privateSchemaName?: string | null; publicSchemaName?: string | null; retention?: string | null; + rollupFunctionName?: string | null; schemaId?: string | null; scope?: string | null; usageSummaryTableId?: string | null; @@ -1379,6 +1543,25 @@ export interface IntegrationProvidersModule { tableId?: string | null; tableName?: string | null; } +/** Scope-aware plaintext internal config store. No namespace_module dependency and no K8s synchronization: values are read from the database at invocation time. Configuration that must be projected into a Kubernetes ConfigMap belongs in infra_config_module. */ +export interface InternalConfigModule { + apiName?: string | null; + databaseId?: string | null; + entityField?: string | null; + entityTableId?: string | null; + id: string; + internalConfigTableId?: string | null; + internalConfigTableName?: string | null; + policies?: Record | null; + prefix?: string | null; + privateApiName?: string | null; + privateSchemaId?: string | null; + privateSchemaName?: string | null; + provisions?: Record | null; + publicSchemaName?: string | null; + schemaId?: string | null; + scope?: string | null; +} /** App-scoped PGP-encrypted internal secrets store. No namespace_module dependency and no K8s synchronization. Used by identity_providers_module for OAuth2 client_secret storage. */ export interface InternalSecretsModule { apiName?: string | null; @@ -1419,6 +1602,27 @@ export interface InvitesModule { submitInviteCodeFunction?: string | null; usersTableId?: string | null; } +/** Provisions the platform-managed Kubernetes admission catalogs: a kinds table and a spec-rules table, Merkle-versioned through the referenced merkle_store_module, whose rows the generated admission gate on resources/resource_definitions reads. Writes are platform-admin and human-only; every scope reads the one catalog. */ +export interface K8sAdmissionModule { + apiName?: string | null; + createdAt?: string | null; + databaseId?: string | null; + entityTableId?: string | null; + id: string; + k8sResourceKindsTableId?: string | null; + k8sSpecRulesTableId?: 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 LimitsModule { actorTableId?: string | null; aggregateTableId?: string | null; @@ -1442,6 +1646,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; @@ -1458,6 +1663,32 @@ export interface LimitsModule { tableId?: string | null; tableName?: string | null; } +export interface MachineModule { + apiName?: string | null; + databaseId?: string | null; + defaultCapabilities?: string[] | null; + entityField?: string | null; + entityTableId?: string | null; + id: string; + machineMessagesTableId?: string | null; + machineMessagesTableName?: string | null; + machineSessionsTableId?: string | null; + machineSessionsTableName?: string | null; + machinesTableId?: string | null; + machinesTableName?: string | null; + partitionInterval?: string | null; + policies?: Record | null; + prefix?: string | null; + premake?: number | null; + privateApiName?: string | null; + privateSchemaId?: string | null; + privateSchemaName?: string | null; + provisions?: Record | null; + publicSchemaName?: string | null; + retention?: string | null; + schemaId?: string | null; + scope?: string | null; +} export interface MembershipTypesModule { databaseId?: string | null; id: string; @@ -1472,9 +1703,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 +1731,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,14 +1742,15 @@ export interface MembershipsModule { } export interface MerkleStoreModule { apiName?: string | null; + capabilityKey?: string | null; commitTableId?: string | null; createdAt?: string | null; databaseId?: string | null; entityField?: string | null; + entityTableId?: string | null; functionPrefix?: string | null; id: string; objectTableId?: string | null; - permissionKey?: string | null; prefix?: string | null; privateApiName?: string | null; privateSchemaId?: string | null; @@ -1532,7 +1764,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 +1786,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 +1808,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; @@ -1586,41 +1840,22 @@ export interface PagesModule { pagesTableId?: string | null; policies?: Record | null; prefix?: string | null; + previewCommitFunctionName?: string | null; + previewSetFunctionName?: string | null; + previewTokenMintFunctionName?: string | null; + previewTokenVerifierFunctionName?: string | null; privateApiName?: string | null; privateSchemaId?: string | null; privateSchemaName?: string | null; provisions?: Record | null; publicSchemaId?: string | null; publicSchemaName?: string | null; + releaseManifestFunctionName?: string | null; scope?: string | null; siteSurfaceModuleId?: string | null; 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; @@ -1670,31 +1905,35 @@ export interface PrincipalAuthModule { principalScopeOverridesTableId?: string | null; principalsTableId?: string | null; principalsTableName?: string | null; + privateSchemaId?: string | null; revokeOrgApiKeyFunction?: string | null; schemaId?: string | null; sessionCredentialsTableId?: string | null; sessionsTableId?: string | null; + sweepExpiredPrincipalsFunction?: string | null; usersTableId?: string | null; } 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 +1946,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; @@ -1749,6 +1988,31 @@ export interface RealtimeModule { sourceRegistryTableId?: string | null; subscriptionsSchemaId?: string | null; } +export interface RefusalLogModule { + apiName?: string | null; + databaseId?: string | null; + entityField?: string | null; + id: string; + logInterval?: string | null; + logPremake?: number | null; + logRetention?: string | null; + logTableId?: string | null; + logTableName?: string | null; + prefix?: string | null; + privateApiName?: string | null; + privateSchemaId?: string | null; + privateSchemaName?: string | null; + publicSchemaName?: string | null; + recordRefusalsFunction?: string | null; + rollupRefusalUsageSummaryFunction?: string | null; + schemaId?: string | null; + scope?: string | null; + summaryInterval?: string | null; + summaryPremake?: number | null; + summaryRetention?: string | null; + summaryTableId?: string | null; + summaryTableName?: string | null; +} /** * Provisions relational structure between tables. Supports four relation types: * - RelationBelongsTo: adds a FK field on the source table referencing the target table (child perspective: "tasks belongs to projects" -> tasks.project_id). @@ -1882,10 +2146,54 @@ export interface RelationProvision { */ useCompositeKey?: boolean | null; } +export interface RepositoryModule { + apiName?: string | null; + buildStepsTableId?: string | null; + buildStepsTableName?: string | null; + buildsTableId?: string | null; + buildsTableName?: string | null; + databaseId?: string | null; + defaultCapabilities?: string[] | null; + entityField?: string | null; + entityTableId?: string | null; + hasAttachments?: boolean | null; + hasBuilds?: boolean | null; + id: string; + policies?: Record | null; + prefix?: string | null; + privateApiName?: string | null; + privateSchemaId?: string | null; + privateSchemaName?: string | null; + proposalCommentsTableId?: string | null; + proposalCommentsTableName?: string | null; + proposalFileViewsTableId?: string | null; + proposalFileViewsTableName?: string | null; + proposalReactionsTableId?: string | null; + proposalReactionsTableName?: string | null; + proposalReviewsTableId?: string | null; + proposalReviewsTableName?: string | null; + proposalsTableId?: string | null; + proposalsTableName?: string | null; + provisions?: Record | null; + publicSchemaName?: string | null; + repositoriesTableId?: string | null; + repositoriesTableName?: string | null; + repositoryEventsTableId?: string | null; + repositoryEventsTableName?: string | null; + repositoryRequiredChecksTableId?: string | null; + repositoryRequiredChecksTableName?: string | null; + schemaId?: string | null; + scope?: string | null; + search?: Record | null; + workflowsTableId?: string | null; + workflowsTableName?: string | null; +} export interface ResourceModule { apiName?: string | null; + builderBindingsTableId?: string | null; + builderBindingsTableName?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; entityField?: string | null; entityTableId?: string | null; id: string; @@ -1899,6 +2207,8 @@ export interface ResourceModule { privateSchemaName?: string | null; provisions?: Record | null; publicSchemaName?: string | null; + registryBindingsTableId?: string | null; + registryBindingsTableName?: string | null; requirementsStateViewName?: string | null; resolvedRequirementsViewName?: string | null; resourceBillingRollupFunction?: string | null; @@ -1937,9 +2247,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; @@ -1953,6 +2265,8 @@ export interface RouteModule { privateSchemaName?: string | null; provisions?: Record | null; publicSchemaName?: string | null; + redirectsTableId?: string | null; + redirectsTableName?: string | null; resolverFunctionName?: string | null; routeBindingsTableId?: string | null; routeBindingsTableName?: string | null; @@ -1960,8 +2274,17 @@ export interface RouteModule { routesTableName?: string | null; schemaId?: string | null; scope?: string | null; + servingSiteField?: string | null; + storageKey?: 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. */ +/** 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. The target table is addressed by table_id, by table_name, or symbolically by a module reference in module. A row that lists a concern in owns[] replaces that concern on the target table instead of composing with what is already there. */ export interface SecureTableProvision { /** The database this provision belongs to. Required. */ databaseId?: string | null; @@ -1971,10 +2294,14 @@ export interface SecureTableProvision { grants?: Record | null; /** Unique identifier for this provision row. */ id: string; + /** Module reference naming a module-generated target table symbolically, instead of by table_id or table_name: a jsonb object with keys "type" (text, required — the module type, e.g. "image"), "table" (text, required — the module's own table key, e.g. "registries"), "scope" (text, optional — the install scope) and "prefix" (text, optional — disambiguates multiple installs of the same module). Resolved through metaschema_modules_private.resolve_module_table(), so it raises the same errors blueprint module references do (BLUEPRINT_MODULE_REF_INVALID, BLUEPRINT_MODULE_NOT_INSTALLED, BLUEPRINT_MODULE_REF_AMBIGUOUS, BLUEPRINT_MODULE_TABLE_UNKNOWN). Mutually exclusive with table_name and with an explicit table_id. Example: {"type":"image","scope":"org","table":"registries"}. Defaults to NULL. */ + module?: Record | null; /** Array of node objects to apply to the table. Each element is a jsonb object with a required "$type" key (one of: DataId, DataDirectOwner, DataEntityMembership, DataOwnershipInEntity, DataTimestamps, DataPeoplestamps, DataPublishable, DataSoftDelete, DataEmbedding, DataFullTextSearch, DataSlug, etc.) and an optional "data" key containing generator-specific configuration. Supports multiple nodes per row, matching the blueprint definition format. Example: [{"$type": "DataId"}, {"$type": "DataTimestamps"}, {"$type": "DataDirectOwner", "data": {"owner_field_name": "author_id"}}]. Defaults to '[]' (no node processing). */ nodes?: Record | null; /** Output column populated by the trigger after field creation. Contains the UUIDs of the metaschema fields created on the target table by this provision row's nodes. NULL when nodes is empty or before the trigger runs. Callers should not set this directly. */ outFields?: string[] | null; + /** Security concerns this row owns on the target table, as a jsonb array of "grants" and/or "policies". A listed concern is replaced: the target table's existing grants (or its non-derived policies) are dropped before this row's grants[] (or policies[]) are applied, so the row's array is the table's whole set — this is how a module-generated table's default security is superseded rather than layered on. An unlisted concern composes, which is the default and the historical behavior. A concern may only be owned when this row supplies a non-empty array for it; owning a concern with nothing to install would leave the table with RLS enabled and no policy, and raises instead. Example: ["policies","grants"]. Defaults to '[]' (compose everything). */ + owns?: Record | null; /** Array of policy objects to create on the target table. Each element is a jsonb object with keys: "$type" (text, required — the Authz* policy generator type, e.g. AuthzEntityMembership, AuthzMembership, AuthzDirectOwner, AuthzPublishable, AuthzAllowAll), "data" (jsonb, optional — opaque configuration passed to metaschema.create_policy(), structure varies by type), "privileges" (text[], optional — privileges the policy applies to, e.g. ["select","insert"]; if omitted, derived from grants[] privilege verbs), "policy_role" (text, optional — role the policy targets; if omitted, falls back to first role in first grants[] entry, or 'authenticated' if no grants), "permissive" (boolean, optional — PERMISSIVE or RESTRICTIVE; defaults to true), "policy_name" (text, optional — custom suffix for the generated policy name; if omitted, auto-derived from $type by stripping Authz prefix). Supports multiple policies per row. Example: [{"$type": "AuthzEntityMembership", "data": {"entity_field": "owner_id", "membership_type": 3}, "privileges": ["select", "insert"]}, {"$type": "AuthzDirectOwner", "data": {"entity_field": "actor_id"}, "privileges": ["update", "delete"]}]. Defaults to '[]' (no policies created). When non-empty, the trigger automatically enables RLS. */ policies?: Record | null; /** Target schema for the table. Defaults to uuid_nil(); the trigger resolves this to the app_public schema if not explicitly provided. */ @@ -2013,7 +2340,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; @@ -2036,19 +2363,20 @@ export interface SiteSurfaceModule { siteMetadataTableName?: string | null; siteModulesTableId?: string | null; siteModulesTableName?: string | null; + siteReleasesTableId?: string | null; + siteReleasesTableName?: string | null; siteThemesTableId?: string | null; siteThemesTableName?: string | null; siteWebConfigTableId?: string | null; siteWebConfigTableName?: string | null; sitesTableId?: string | null; sitesTableName?: string | null; + storageKey?: string | null; } export interface StorageLogModule { - actorFkTableId?: string | null; apiName?: string | null; databaseId?: string | null; entityField?: string | null; - entityFkTableId?: string | null; id: string; interval?: string | null; prefix?: string | null; @@ -2058,6 +2386,7 @@ export interface StorageLogModule { privateSchemaName?: string | null; publicSchemaName?: string | null; retention?: string | null; + rollupFunctionName?: string | null; schemaId?: string | null; scope?: string | null; storageLogTableId?: string | null; @@ -2074,8 +2403,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; @@ -2090,6 +2419,7 @@ export interface StorageModule { hasPathShares?: boolean | null; hasVersioning?: boolean | null; id: string; + key?: string | null; maxBulkFiles?: number | null; maxBulkTotalSize?: string | null; maxFilenameLength?: number | null; @@ -2109,11 +2439,9 @@ export interface StorageModule { uploadUrlExpirySeconds?: number | null; } export interface TransferLogModule { - actorFkTableId?: string | null; apiName?: string | null; databaseId?: string | null; entityField?: string | null; - entityFkTableId?: string | null; id: string; interval?: string | null; prefix?: string | null; @@ -2123,6 +2451,7 @@ export interface TransferLogModule { privateSchemaName?: string | null; publicSchemaName?: string | null; retention?: string | null; + rollupFunctionName?: string | null; schemaId?: string | null; scope?: string | null; transferLogTableId?: string | null; @@ -2143,8 +2472,10 @@ export interface UserAuthModule { forgotPasswordFunction?: string | null; id: string; privateApiName?: string | null; + privateSchemaId?: string | null; requestCrossOriginTokenFunction?: string | null; resetPasswordFunction?: string | null; + revokeSessionTreeFunction?: string | null; schemaId?: string | null; secretsTableId?: string | null; sendAccountDeletionEmailFunction?: string | null; @@ -2156,6 +2487,7 @@ export interface UserAuthModule { signInFunction?: string | null; signOutFunction?: string | null; signUpFunction?: string | null; + sweepExpiredSessionsFunction?: string | null; usersTableId?: string | null; verifyEmailFunction?: string | null; verifyPasswordFunction?: string | null; @@ -2183,6 +2515,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 +2577,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 +2633,9 @@ export interface BlueprintTemplateRelations { blueprintTemplatesByForkedFromId?: ConnectionResult; blueprintsByTemplateId?: ConnectionResult; } +export interface CapabilitiesModuleRelations { + dataCapabilitiesFields?: ConnectionResult; +} export interface CatalogModuleRelations { apiSurfaceModules?: ConnectionResult; appModules?: ConnectionResult; @@ -2299,11 +2643,17 @@ export interface CatalogModuleRelations { routeModules?: ConnectionResult; siteSurfaceModules?: ConnectionResult; } +export interface ClusterModuleRelations {} 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 +2669,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; @@ -2331,7 +2687,6 @@ export interface FunctionInvocationModuleRelations { } export interface FunctionModuleRelations { functionDeploymentModules?: ConnectionResult; - httpRouteModules?: ConnectionResult; webhookModules?: ConnectionResult; } export interface GraphExecutionModuleRelations { @@ -2342,27 +2697,30 @@ export interface GraphModuleRelations { graphExecutionModules?: ConnectionResult; } export interface HierarchyModuleRelations {} -export interface HttpRouteModuleRelations { - functionModule?: FunctionModule | null; - resourceModule?: ResourceModule | null; - storageModule?: StorageModule | null; -} export interface I18NModuleRelations {} export interface IdentityProvidersModuleRelations {} +export interface ImageModuleRelations {} export interface InferenceLogModuleRelations {} export interface InfraConfigModuleRelations {} export interface InfraSecretsModuleRelations { webhookModules?: ConnectionResult; } export interface IntegrationProvidersModuleRelations {} +export interface InternalConfigModuleRelations {} export interface InternalSecretsModuleRelations {} export interface InvitesModuleRelations {} +export interface K8sAdmissionModuleRelations { + merkleStoreModule?: MerkleStoreModule | null; +} export interface LimitsModuleRelations {} +export interface MachineModuleRelations {} export interface MembershipTypesModuleRelations {} export interface MembershipsModuleRelations {} export interface MerkleStoreModuleRelations { + contentPresetModules?: ConnectionResult; dbPresetModules?: ConnectionResult; graphModules?: ConnectionResult; + k8sAdmissionModules?: ConnectionResult; pagesModules?: ConnectionResult; resourceModules?: ConnectionResult; } @@ -2372,11 +2730,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 {} @@ -2384,32 +2742,36 @@ export interface ProfilesModuleRelations {} export interface RateLimitMetersModuleRelations {} export interface RateLimitsModuleRelations {} export interface RealtimeModuleRelations {} +export interface RefusalLogModuleRelations {} export interface RelationProvisionRelations {} +export interface RepositoryModuleRelations {} export interface ResourceModuleRelations { merkleStoreModule?: MerkleStoreModule | null; namespaceModule?: NamespaceModule | null; - httpRouteModules?: ConnectionResult; } export interface RlsModuleRelations {} 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 { - httpRouteModules?: ConnectionResult; + fileRefFields?: 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 +2793,18 @@ 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 ClusterModuleWithRelations = ClusterModule & ClusterModuleRelations; 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 +2818,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 & @@ -2465,27 +2832,31 @@ export type GraphExecutionModuleWithRelations = GraphExecutionModule & GraphExecutionModuleRelations; export type GraphModuleWithRelations = GraphModule & GraphModuleRelations; export type HierarchyModuleWithRelations = HierarchyModule & HierarchyModuleRelations; -export type HttpRouteModuleWithRelations = HttpRouteModule & HttpRouteModuleRelations; export type I18NModuleWithRelations = I18NModule & I18NModuleRelations; export type IdentityProvidersModuleWithRelations = IdentityProvidersModule & IdentityProvidersModuleRelations; +export type ImageModuleWithRelations = ImageModule & ImageModuleRelations; export type InferenceLogModuleWithRelations = InferenceLogModule & InferenceLogModuleRelations; export type InfraConfigModuleWithRelations = InfraConfigModule & InfraConfigModuleRelations; export type InfraSecretsModuleWithRelations = InfraSecretsModule & InfraSecretsModuleRelations; export type IntegrationProvidersModuleWithRelations = IntegrationProvidersModule & IntegrationProvidersModuleRelations; +export type InternalConfigModuleWithRelations = InternalConfigModule & + InternalConfigModuleRelations; export type InternalSecretsModuleWithRelations = InternalSecretsModule & InternalSecretsModuleRelations; export type InvitesModuleWithRelations = InvitesModule & InvitesModuleRelations; +export type K8sAdmissionModuleWithRelations = K8sAdmissionModule & K8sAdmissionModuleRelations; export type LimitsModuleWithRelations = LimitsModule & LimitsModuleRelations; +export type MachineModuleWithRelations = MachineModule & MachineModuleRelations; export type MembershipTypesModuleWithRelations = MembershipTypesModule & MembershipTypesModuleRelations; export type MembershipsModuleWithRelations = MembershipsModule & MembershipsModuleRelations; 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; @@ -2494,10 +2865,13 @@ export type RateLimitMetersModuleWithRelations = RateLimitMetersModule & RateLimitMetersModuleRelations; export type RateLimitsModuleWithRelations = RateLimitsModule & RateLimitsModuleRelations; export type RealtimeModuleWithRelations = RealtimeModule & RealtimeModuleRelations; +export type RefusalLogModuleWithRelations = RefusalLogModule & RefusalLogModuleRelations; export type RelationProvisionWithRelations = RelationProvision & RelationProvisionRelations; +export type RepositoryModuleWithRelations = RepositoryModule & RepositoryModuleRelations; 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 +2885,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,12 +2899,18 @@ export type AgentModuleSelect = { agentTableName?: boolean; apiName?: boolean; databaseId?: boolean; - defaultPermissions?: boolean; + defaultCapabilities?: boolean; + defaultVisibility?: boolean; entityField?: boolean; entityTableId?: boolean; + eventTableId?: boolean; + eventTableName?: boolean; hasAgents?: boolean; + hasAttachments?: boolean; hasPlans?: boolean; + hasRepositoryResources?: boolean; hasResources?: boolean; + hasRuns?: boolean; id?: boolean; messageTableId?: boolean; messageTableName?: boolean; @@ -2545,16 +2927,21 @@ export type AgentModuleSelect = { promptsTableName?: boolean; provisions?: boolean; publicSchemaName?: boolean; + resourceRepositoryTableId?: boolean; + resourceRepositoryTableName?: boolean; resourceTableId?: boolean; resourceTableName?: boolean; resources?: boolean; + runTableId?: boolean; + runTableName?: boolean; schemaId?: boolean; scope?: boolean; - shared?: boolean; taskTableId?: boolean; taskTableName?: boolean; threadTableId?: boolean; threadTableName?: boolean; + workspaceTableId?: boolean; + workspaceTableName?: boolean; }; export type ApiSurfaceModuleSelect = { apiName?: boolean; @@ -2568,7 +2955,7 @@ export type ApiSurfaceModuleSelect = { corsSettingsTableId?: boolean; corsSettingsTableName?: boolean; databaseId?: boolean; - defaultPermissions?: boolean; + defaultCapabilities?: boolean; entityField?: boolean; entityTableId?: boolean; id?: boolean; @@ -2587,11 +2974,12 @@ export type AppModuleSelect = { apiName?: boolean; appComponentsTableId?: boolean; appComponentsTableName?: boolean; + appStoreIdentitiesTableName?: boolean; appsTableId?: boolean; appsTableName?: boolean; catalogModuleId?: boolean; databaseId?: boolean; - defaultPermissions?: boolean; + defaultCapabilities?: boolean; entityField?: boolean; entityTableId?: boolean; id?: boolean; @@ -2613,8 +3001,8 @@ export type BillingModuleSelect = { balancesTableId?: boolean; balancesTableName?: boolean; databaseId?: boolean; + defaultCapabilities?: boolean; defaultMeterCatalog?: boolean; - defaultPermissions?: boolean; id?: boolean; ledgerTableId?: boolean; ledgerTableName?: boolean; @@ -2639,19 +3027,34 @@ export type BillingModuleSelect = { sweepExpiredSubscriptionsFunction?: boolean; }; export type BillingProviderModuleSelect = { + activatePlanSubscriptionFunction?: boolean; apiName?: boolean; billingCustomersTableId?: boolean; billingCustomersTableName?: boolean; + billingDisputesTableId?: boolean; + billingDisputesTableName?: 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; + getActivePlanPricingFunction?: boolean; + getBillingCustomerFunction?: boolean; + getBillingPriceFunction?: boolean; + getBillingProductFunction?: boolean; + getBillingSubscriptionFunction?: boolean; + getFallbackFreePlanFunction?: boolean; id?: boolean; + listPendingUsageSyncFunction?: boolean; + markUsageSyncedFunction?: boolean; prefix?: boolean; pricesTableId?: boolean; privateApiName?: boolean; @@ -2659,8 +3062,16 @@ export type BillingProviderModuleSelect = { processBillingEventFunction?: boolean; productsTableId?: boolean; provider?: boolean; + recordDisputeFunction?: boolean; + recordRefundFunction?: boolean; schemaId?: boolean; subscriptionsTableId?: boolean; + sweepOverdueSubscriptionsFunction?: boolean; + upsertBillingCustomerFunction?: boolean; + upsertBillingPriceFunction?: boolean; + upsertBillingProductFunction?: boolean; + upsertBillingSubscriptionFunction?: boolean; + upsertInvoiceFunction?: boolean; }; export type BlueprintSelect = { createdAt?: boolean; @@ -2738,28 +3149,68 @@ 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; + appStoreIdentitiesTableId?: boolean; + appStoreIdentitiesTableName?: 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; functionsTableId?: boolean; functionsTableName?: boolean; id?: boolean; + imagesTableId?: boolean; + imagesTableName?: boolean; + managedDomainsTableId?: boolean; + managedDomainsTableName?: boolean; namespacesTableId?: boolean; namespacesTableName?: boolean; policies?: boolean; privateApiName?: boolean; provisions?: boolean; publicSchemaName?: boolean; + redirectsTableId?: boolean; + redirectsTableName?: boolean; resourceDefinitionsTableId?: boolean; resourceDefinitionsTableName?: boolean; resourceInstallationsTableId?: boolean; @@ -2809,14 +3260,41 @@ export type CatalogModuleSelect = { orderBy?: SiteSurfaceModuleOrderBy[]; }; }; +export type ClusterModuleSelect = { + apiName?: boolean; + clusterEventsTableId?: boolean; + clusterEventsTableName?: boolean; + clustersTableId?: boolean; + clustersTableName?: boolean; + databaseId?: boolean; + databasePlacementsTableId?: boolean; + databasePlacementsTableName?: boolean; + databaseServersTableId?: boolean; + databaseServersTableName?: boolean; + defaultCapabilities?: boolean; + entityField?: boolean; + id?: boolean; + partitionInterval?: boolean; + physicalDatabasesTableId?: boolean; + physicalDatabasesTableName?: boolean; + policies?: boolean; + prefix?: boolean; + premake?: boolean; + privateApiName?: boolean; + privateSchemaId?: boolean; + privateSchemaName?: boolean; + provisions?: boolean; + publicSchemaName?: boolean; + retention?: boolean; + schemaId?: boolean; + scope?: boolean; +}; export type ComputeLogModuleSelect = { - actorFkTableId?: boolean; apiName?: boolean; computeLogTableId?: boolean; computeLogTableName?: boolean; databaseId?: boolean; entityField?: boolean; - entityFkTableId?: boolean; id?: boolean; interval?: boolean; prefix?: boolean; @@ -2826,31 +3304,44 @@ export type ComputeLogModuleSelect = { privateSchemaName?: boolean; publicSchemaName?: boolean; retention?: boolean; + rollupFunctionName?: boolean; schemaId?: boolean; scope?: boolean; usageSummaryTableId?: boolean; usageSummaryTableName?: boolean; }; -export type ConfigSecretsUserModuleSelect = { +export type ConnectedAccountsModuleSelect = { apiName?: boolean; databaseId?: boolean; - entityField?: boolean; id?: boolean; + ownerTableId?: boolean; privateApiName?: boolean; + privateSchemaId?: boolean; schemaId?: boolean; tableId?: boolean; tableName?: boolean; }; -export type ConnectedAccountsModuleSelect = { +export type ContentPresetModuleSelect = { apiName?: boolean; + contentPresetsTableId?: boolean; + createdAt?: boolean; databaseId?: boolean; + entityTableId?: boolean; id?: boolean; - ownerTableId?: boolean; + merkleStoreModuleId?: boolean; + policies?: boolean; + prefix?: boolean; privateApiName?: boolean; privateSchemaId?: boolean; - schemaId?: boolean; - tableId?: boolean; - tableName?: boolean; + privateSchemaName?: boolean; + provisions?: boolean; + publicSchemaId?: boolean; + publicSchemaName?: boolean; + scope?: boolean; + storeName?: boolean; + merkleStoreModule?: { + select: MerkleStoreModuleSelect; + }; }; export type CryptoAddressesModuleSelect = { apiName?: boolean; @@ -2880,8 +3371,25 @@ 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; + bootstrapActorId?: boolean; bootstrapError?: boolean; bootstrapStatus?: boolean; bootstrapUser?: boolean; @@ -2906,7 +3414,7 @@ export type DatabaseSettingsModuleSelect = { databaseId?: boolean; databaseSettingsTableId?: boolean; databaseSettingsTableName?: boolean; - defaultPermissions?: boolean; + defaultCapabilities?: boolean; entityField?: boolean; entityTableId?: boolean; id?: boolean; @@ -2978,7 +3486,7 @@ export type DbUsageModuleSelect = { collectDbQueryStatsFunction?: boolean; collectDbTableStatsFunction?: boolean; databaseId?: boolean; - defaultPermissions?: boolean; + defaultCapabilities?: boolean; entityField?: boolean; id?: boolean; interval?: boolean; @@ -3033,7 +3541,7 @@ export type DomainModuleSelect = { apiName?: boolean; catalogModuleId?: boolean; databaseId?: boolean; - defaultPermissions?: boolean; + defaultCapabilities?: boolean; domainEventsTableId?: boolean; domainEventsTableName?: boolean; domainVerificationsTableId?: boolean; @@ -3064,6 +3572,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 +3655,7 @@ export type EventsModuleSelect = { actorTableId?: boolean; apiName?: boolean; databaseId?: boolean; - defaultPermissions?: boolean; + defaultCapabilities?: boolean; entityField?: boolean; entityTableId?: boolean; eventAggregatesTableId?: boolean; @@ -3131,6 +3664,7 @@ export type EventsModuleSelect = { eventTypesTableName?: boolean; eventsTableId?: boolean; eventsTableName?: boolean; + expireGrants?: boolean; grantAchievement?: boolean; id?: boolean; interval?: boolean; @@ -3147,9 +3681,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 +3695,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 +3748,7 @@ export type FunctionInvocationModuleSelect = { attemptsTableId?: boolean; attemptsTableName?: boolean; databaseId?: boolean; - defaultPermissions?: boolean; + defaultCapabilities?: boolean; entityField?: boolean; entityTableId?: boolean; executionLogsTableId?: boolean; @@ -3226,7 +3778,7 @@ export type FunctionModuleSelect = { bindingsTableName?: boolean; capabilityBindingsTableId?: boolean; databaseId?: boolean; - defaultPermissions?: boolean; + defaultCapabilities?: boolean; definitionsTableId?: boolean; definitionsTableName?: boolean; entityField?: boolean; @@ -3243,18 +3795,13 @@ export type FunctionModuleSelect = { schedulesTableId?: boolean; schemaId?: boolean; scope?: boolean; + storageKey?: boolean; functionDeploymentModules?: { select: FunctionDeploymentModuleSelect; first?: number; filter?: FunctionDeploymentModuleFilter; orderBy?: FunctionDeploymentModuleOrderBy[]; }; - httpRouteModules?: { - select: HttpRouteModuleSelect; - first?: number; - filter?: HttpRouteModuleFilter; - orderBy?: HttpRouteModuleOrderBy[]; - }; webhookModules?: { select: WebhookModuleSelect; first?: number; @@ -3266,7 +3813,7 @@ export type GraphExecutionModuleSelect = { apiName?: boolean; createdAt?: boolean; databaseId?: boolean; - defaultPermissions?: boolean; + defaultCapabilities?: boolean; entityField?: boolean; entityTableId?: boolean; executionsTableId?: boolean; @@ -3294,7 +3841,7 @@ export type GraphModuleSelect = { apiName?: boolean; createdAt?: boolean; databaseId?: boolean; - defaultPermissions?: boolean; + defaultCapabilities?: boolean; entityField?: boolean; entityTableId?: boolean; graphsTableId?: boolean; @@ -3326,7 +3873,7 @@ export type HierarchyModuleSelect = { chartEdgesTableName?: boolean; createdAt?: boolean; databaseId?: boolean; - defaultPermissions?: boolean; + defaultCapabilities?: boolean; entityField?: boolean; entityTableId?: boolean; getManagersFunction?: boolean; @@ -3344,69 +3891,60 @@ export type HierarchyModuleSelect = { sprtTableName?: boolean; usersTableId?: boolean; }; -export type HttpRouteModuleSelect = { +export type I18NModuleSelect = { apiName?: boolean; databaseId?: boolean; - defaultPermissions?: boolean; - entityField?: boolean; - entityTableId?: boolean; - functionModuleId?: boolean; - httpRoutesTableId?: boolean; - httpRoutesTableName?: boolean; id?: boolean; - policies?: boolean; - prefix?: boolean; privateApiName?: boolean; privateSchemaId?: boolean; - privateSchemaName?: boolean; - provisions?: boolean; - publicSchemaName?: boolean; - resolverFunctionName?: boolean; - resourceModuleId?: boolean; schemaId?: boolean; - scope?: boolean; - storageModuleId?: boolean; - functionModule?: { - select: FunctionModuleSelect; - }; - resourceModule?: { - select: ResourceModuleSelect; - }; - storageModule?: { - select: StorageModuleSelect; - }; + settingsTableId?: boolean; }; -export type I18NModuleSelect = { +export type IdentityProvidersModuleSelect = { apiName?: boolean; databaseId?: boolean; + entityField?: boolean; + entityTableId?: boolean; id?: boolean; + prefix?: boolean; privateApiName?: boolean; privateSchemaId?: boolean; + privateSchemaName?: boolean; + publicSchemaName?: boolean; schemaId?: boolean; - settingsTableId?: boolean; + scope?: boolean; + tableId?: boolean; + tableName?: boolean; }; -export type IdentityProvidersModuleSelect = { +export type ImageModuleSelect = { apiName?: boolean; databaseId?: boolean; + defaultCapabilities?: boolean; entityField?: boolean; entityTableId?: boolean; id?: boolean; + imageGrantsTableId?: boolean; + imageGrantsTableName?: boolean; + imagesTableId?: boolean; + imagesTableName?: boolean; + policies?: boolean; prefix?: boolean; privateApiName?: boolean; privateSchemaId?: boolean; privateSchemaName?: boolean; + provisions?: boolean; publicSchemaName?: boolean; + registriesTableId?: boolean; + registriesTableName?: boolean; + registryGrantsTableId?: boolean; + registryGrantsTableName?: boolean; schemaId?: boolean; scope?: boolean; - tableId?: boolean; - tableName?: boolean; }; export type InferenceLogModuleSelect = { - actorFkTableId?: boolean; apiName?: boolean; databaseId?: boolean; entityField?: boolean; - entityFkTableId?: boolean; id?: boolean; inferenceLogTableId?: boolean; inferenceLogTableName?: boolean; @@ -3418,6 +3956,7 @@ export type InferenceLogModuleSelect = { privateSchemaName?: boolean; publicSchemaName?: boolean; retention?: boolean; + rollupFunctionName?: boolean; schemaId?: boolean; scope?: boolean; usageSummaryTableId?: boolean; @@ -3481,6 +4020,24 @@ export type IntegrationProvidersModuleSelect = { tableId?: boolean; tableName?: boolean; }; +export type InternalConfigModuleSelect = { + apiName?: boolean; + databaseId?: boolean; + entityField?: boolean; + entityTableId?: boolean; + id?: boolean; + internalConfigTableId?: boolean; + internalConfigTableName?: boolean; + policies?: boolean; + prefix?: boolean; + privateApiName?: boolean; + privateSchemaId?: boolean; + privateSchemaName?: boolean; + provisions?: boolean; + publicSchemaName?: boolean; + schemaId?: boolean; + scope?: boolean; +}; export type InternalSecretsModuleSelect = { apiName?: boolean; databaseId?: boolean; @@ -3520,6 +4077,29 @@ export type InvitesModuleSelect = { submitInviteCodeFunction?: boolean; usersTableId?: boolean; }; +export type K8sAdmissionModuleSelect = { + apiName?: boolean; + createdAt?: boolean; + databaseId?: boolean; + entityTableId?: boolean; + id?: boolean; + k8sResourceKindsTableId?: boolean; + k8sSpecRulesTableId?: 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 LimitsModuleSelect = { actorTableId?: boolean; aggregateTableId?: boolean; @@ -3543,6 +4123,7 @@ export type LimitsModuleSelect = { limitCreditsTableId?: boolean; limitDecrementFunction?: boolean; limitDecrementTrigger?: boolean; + limitDefaults?: boolean; limitIncrementFunction?: boolean; limitIncrementTrigger?: boolean; limitUpdateTrigger?: boolean; @@ -3559,6 +4140,32 @@ export type LimitsModuleSelect = { tableId?: boolean; tableName?: boolean; }; +export type MachineModuleSelect = { + apiName?: boolean; + databaseId?: boolean; + defaultCapabilities?: boolean; + entityField?: boolean; + entityTableId?: boolean; + id?: boolean; + machineMessagesTableId?: boolean; + machineMessagesTableName?: boolean; + machineSessionsTableId?: boolean; + machineSessionsTableName?: boolean; + machinesTableId?: boolean; + machinesTableName?: boolean; + partitionInterval?: boolean; + policies?: boolean; + prefix?: boolean; + premake?: boolean; + privateApiName?: boolean; + privateSchemaId?: boolean; + privateSchemaName?: boolean; + provisions?: boolean; + publicSchemaName?: boolean; + retention?: boolean; + schemaId?: boolean; + scope?: boolean; +}; export type MembershipTypesModuleSelect = { databaseId?: boolean; id?: boolean; @@ -3573,9 +4180,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 +4208,6 @@ export type MembershipsModuleSelect = { membershipsTableName?: boolean; ownerGrantsTableId?: boolean; ownerGrantsTableName?: boolean; - permissionDefaultGrantsTableId?: boolean; - permissionDefaultPermissionsTableId?: boolean; - permissionsTableId?: boolean; prefix?: boolean; privateApiName?: boolean; privateSchemaId?: boolean; @@ -3612,14 +4219,15 @@ export type MembershipsModuleSelect = { }; export type MerkleStoreModuleSelect = { apiName?: boolean; + capabilityKey?: boolean; commitTableId?: boolean; createdAt?: boolean; databaseId?: boolean; entityField?: boolean; + entityTableId?: boolean; functionPrefix?: boolean; id?: boolean; objectTableId?: boolean; - permissionKey?: boolean; prefix?: boolean; privateApiName?: boolean; privateSchemaId?: boolean; @@ -3629,6 +4237,12 @@ export type MerkleStoreModuleSelect = { schemaId?: boolean; scope?: boolean; storeTableId?: boolean; + contentPresetModules?: { + select: ContentPresetModuleSelect; + first?: number; + filter?: ContentPresetModuleFilter; + orderBy?: ContentPresetModuleOrderBy[]; + }; dbPresetModules?: { select: DbPresetModuleSelect; first?: number; @@ -3641,6 +4255,12 @@ export type MerkleStoreModuleSelect = { filter?: GraphModuleFilter; orderBy?: GraphModuleOrderBy[]; }; + k8sAdmissionModules?: { + select: K8sAdmissionModuleSelect; + first?: number; + filter?: K8sAdmissionModuleFilter; + orderBy?: K8sAdmissionModuleOrderBy[]; + }; pagesModules?: { select: PagesModuleSelect; first?: number; @@ -3657,7 +4277,7 @@ export type MerkleStoreModuleSelect = { export type NamespaceModuleSelect = { apiName?: boolean; databaseId?: boolean; - defaultPermissions?: boolean; + defaultCapabilities?: boolean; entityField?: boolean; entityTableId?: boolean; id?: boolean; @@ -3697,7 +4317,7 @@ export type NotificationsModuleSelect = { apiName?: boolean; channelsTableId?: boolean; databaseId?: boolean; - defaultPermissions?: boolean; + defaultCapabilities?: boolean; deliveryLogTableId?: boolean; entityField?: boolean; hasChannels?: boolean; @@ -3719,6 +4339,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; @@ -3729,12 +4363,17 @@ export type PagesModuleSelect = { pagesTableId?: boolean; policies?: boolean; prefix?: boolean; + previewCommitFunctionName?: boolean; + previewSetFunctionName?: boolean; + previewTokenMintFunctionName?: boolean; + previewTokenVerifierFunctionName?: boolean; privateApiName?: boolean; privateSchemaId?: boolean; privateSchemaName?: boolean; provisions?: boolean; publicSchemaId?: boolean; publicSchemaName?: boolean; + releaseManifestFunctionName?: boolean; scope?: boolean; siteSurfaceModuleId?: boolean; sitesTableId?: boolean; @@ -3746,30 +4385,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; @@ -3818,31 +4433,35 @@ export type PrincipalAuthModuleSelect = { principalScopeOverridesTableId?: boolean; principalsTableId?: boolean; principalsTableName?: boolean; + privateSchemaId?: boolean; revokeOrgApiKeyFunction?: boolean; schemaId?: boolean; sessionCredentialsTableId?: boolean; sessionsTableId?: boolean; + sweepExpiredPrincipalsFunction?: boolean; usersTableId?: boolean; }; 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 +4474,7 @@ export type RateLimitMetersModuleSelect = { apiName?: boolean; checkRateLimitFunction?: boolean; databaseId?: boolean; - defaultPermissions?: boolean; + defaultCapabilities?: boolean; id?: boolean; prefix?: boolean; privateApiName?: boolean; @@ -3897,6 +4516,31 @@ export type RealtimeModuleSelect = { sourceRegistryTableId?: boolean; subscriptionsSchemaId?: boolean; }; +export type RefusalLogModuleSelect = { + apiName?: boolean; + databaseId?: boolean; + entityField?: boolean; + id?: boolean; + logInterval?: boolean; + logPremake?: boolean; + logRetention?: boolean; + logTableId?: boolean; + logTableName?: boolean; + prefix?: boolean; + privateApiName?: boolean; + privateSchemaId?: boolean; + privateSchemaName?: boolean; + publicSchemaName?: boolean; + recordRefusalsFunction?: boolean; + rollupRefusalUsageSummaryFunction?: boolean; + schemaId?: boolean; + scope?: boolean; + summaryInterval?: boolean; + summaryPremake?: boolean; + summaryRetention?: boolean; + summaryTableId?: boolean; + summaryTableName?: boolean; +}; export type RelationProvisionSelect = { apiRequired?: boolean; createIndex?: boolean; @@ -3923,28 +4567,74 @@ export type RelationProvisionSelect = { targetTableId?: boolean; useCompositeKey?: boolean; }; -export type ResourceModuleSelect = { +export type RepositoryModuleSelect = { apiName?: boolean; + buildStepsTableId?: boolean; + buildStepsTableName?: boolean; + buildsTableId?: boolean; + buildsTableName?: boolean; databaseId?: boolean; - defaultPermissions?: boolean; + defaultCapabilities?: boolean; entityField?: boolean; entityTableId?: boolean; + hasAttachments?: boolean; + hasBuilds?: boolean; id?: boolean; - installationStoreName?: boolean; - merkleStoreModuleId?: boolean; - namespaceModuleId?: boolean; policies?: boolean; prefix?: boolean; privateApiName?: boolean; privateSchemaId?: boolean; privateSchemaName?: boolean; + proposalCommentsTableId?: boolean; + proposalCommentsTableName?: boolean; + proposalFileViewsTableId?: boolean; + proposalFileViewsTableName?: boolean; + proposalReactionsTableId?: boolean; + proposalReactionsTableName?: boolean; + proposalReviewsTableId?: boolean; + proposalReviewsTableName?: boolean; + proposalsTableId?: boolean; + proposalsTableName?: boolean; provisions?: boolean; publicSchemaName?: boolean; - requirementsStateViewName?: boolean; - resolvedRequirementsViewName?: boolean; - resourceBillingRollupFunction?: boolean; - resourceDefinitionsTableId?: boolean; - resourceDefinitionsTableName?: boolean; + repositoriesTableId?: boolean; + repositoriesTableName?: boolean; + repositoryEventsTableId?: boolean; + repositoryEventsTableName?: boolean; + repositoryRequiredChecksTableId?: boolean; + repositoryRequiredChecksTableName?: boolean; + schemaId?: boolean; + scope?: boolean; + search?: boolean; + workflowsTableId?: boolean; + workflowsTableName?: boolean; +}; +export type ResourceModuleSelect = { + apiName?: boolean; + builderBindingsTableId?: boolean; + builderBindingsTableName?: boolean; + databaseId?: boolean; + defaultCapabilities?: boolean; + entityField?: boolean; + entityTableId?: boolean; + id?: boolean; + installationStoreName?: boolean; + merkleStoreModuleId?: boolean; + namespaceModuleId?: boolean; + policies?: boolean; + prefix?: boolean; + privateApiName?: boolean; + privateSchemaId?: boolean; + privateSchemaName?: boolean; + provisions?: boolean; + publicSchemaName?: boolean; + registryBindingsTableId?: boolean; + registryBindingsTableName?: boolean; + requirementsStateViewName?: boolean; + resolvedRequirementsViewName?: boolean; + resourceBillingRollupFunction?: boolean; + resourceDefinitionsTableId?: boolean; + resourceDefinitionsTableName?: boolean; resourceEventsTableId?: boolean; resourceEventsTableName?: boolean; resourceInstallationsTableId?: boolean; @@ -3966,12 +4656,6 @@ export type ResourceModuleSelect = { namespaceModule?: { select: NamespaceModuleSelect; }; - httpRouteModules?: { - select: HttpRouteModuleSelect; - first?: number; - filter?: HttpRouteModuleFilter; - orderBy?: HttpRouteModuleOrderBy[]; - }; }; export type RlsModuleSelect = { apiName?: boolean; @@ -3990,9 +4674,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; @@ -4006,6 +4692,8 @@ export type RouteModuleSelect = { privateSchemaName?: boolean; provisions?: boolean; publicSchemaName?: boolean; + redirectsTableId?: boolean; + redirectsTableName?: boolean; resolverFunctionName?: boolean; routeBindingsTableId?: boolean; routeBindingsTableName?: boolean; @@ -4013,6 +4701,8 @@ export type RouteModuleSelect = { routesTableName?: boolean; schemaId?: boolean; scope?: boolean; + servingSiteField?: boolean; + storageKey?: boolean; catalogModule?: { select: CatalogModuleSelect; }; @@ -4020,13 +4710,22 @@ 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; grants?: boolean; id?: boolean; + module?: boolean; nodes?: boolean; outFields?: boolean; + owns?: boolean; policies?: boolean; schemaId?: boolean; tableId?: boolean; @@ -4058,7 +4757,7 @@ export type SiteSurfaceModuleSelect = { apiName?: boolean; catalogModuleId?: boolean; databaseId?: boolean; - defaultPermissions?: boolean; + defaultCapabilities?: boolean; entityField?: boolean; entityTableId?: boolean; id?: boolean; @@ -4081,15 +4780,24 @@ export type SiteSurfaceModuleSelect = { siteMetadataTableName?: boolean; siteModulesTableId?: boolean; siteModulesTableName?: boolean; + siteReleasesTableId?: boolean; + siteReleasesTableName?: boolean; siteThemesTableId?: boolean; siteThemesTableName?: boolean; siteWebConfigTableId?: boolean; siteWebConfigTableName?: boolean; sitesTableId?: boolean; sitesTableName?: boolean; + storageKey?: boolean; catalogModule?: { select: CatalogModuleSelect; }; + emailSenderModules?: { + select: EmailSenderModuleSelect; + first?: number; + filter?: EmailSenderModuleFilter; + orderBy?: EmailSenderModuleOrderBy[]; + }; pagesModules?: { select: PagesModuleSelect; first?: number; @@ -4098,11 +4806,9 @@ export type SiteSurfaceModuleSelect = { }; }; export type StorageLogModuleSelect = { - actorFkTableId?: boolean; apiName?: boolean; databaseId?: boolean; entityField?: boolean; - entityFkTableId?: boolean; id?: boolean; interval?: boolean; prefix?: boolean; @@ -4112,6 +4818,7 @@ export type StorageLogModuleSelect = { privateSchemaName?: boolean; publicSchemaName?: boolean; retention?: boolean; + rollupFunctionName?: boolean; schemaId?: boolean; scope?: boolean; storageLogTableId?: boolean; @@ -4128,8 +4835,8 @@ export type StorageModuleSelect = { catalogModuleId?: boolean; confirmUploadDelay?: boolean; databaseId?: boolean; + defaultCapabilities?: boolean; defaultMaxFileSize?: boolean; - defaultPermissions?: boolean; downloadUrlExpirySeconds?: boolean; endpoint?: boolean; entityField?: boolean; @@ -4144,6 +4851,7 @@ export type StorageModuleSelect = { hasPathShares?: boolean; hasVersioning?: boolean; id?: boolean; + key?: boolean; maxBulkFiles?: boolean; maxBulkTotalSize?: boolean; maxFilenameLength?: boolean; @@ -4161,19 +4869,17 @@ export type StorageModuleSelect = { schemaId?: boolean; scope?: boolean; uploadUrlExpirySeconds?: boolean; - httpRouteModules?: { - select: HttpRouteModuleSelect; + fileRefFields?: { + select: FileRefFieldSelect; first?: number; - filter?: HttpRouteModuleFilter; - orderBy?: HttpRouteModuleOrderBy[]; + filter?: FileRefFieldFilter; + orderBy?: FileRefFieldOrderBy[]; }; }; export type TransferLogModuleSelect = { - actorFkTableId?: boolean; apiName?: boolean; databaseId?: boolean; entityField?: boolean; - entityFkTableId?: boolean; id?: boolean; interval?: boolean; prefix?: boolean; @@ -4183,6 +4889,7 @@ export type TransferLogModuleSelect = { privateSchemaName?: boolean; publicSchemaName?: boolean; retention?: boolean; + rollupFunctionName?: boolean; schemaId?: boolean; scope?: boolean; transferLogTableId?: boolean; @@ -4203,8 +4910,10 @@ export type UserAuthModuleSelect = { forgotPasswordFunction?: boolean; id?: boolean; privateApiName?: boolean; + privateSchemaId?: boolean; requestCrossOriginTokenFunction?: boolean; resetPasswordFunction?: boolean; + revokeSessionTreeFunction?: boolean; schemaId?: boolean; secretsTableId?: boolean; sendAccountDeletionEmailFunction?: boolean; @@ -4216,6 +4925,7 @@ export type UserAuthModuleSelect = { signInFunction?: boolean; signOutFunction?: boolean; signUpFunction?: boolean; + sweepExpiredSessionsFunction?: boolean; usersTableId?: boolean; verifyEmailFunction?: boolean; verifyPasswordFunction?: boolean; @@ -4238,6 +4948,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 +5008,7 @@ export type WebauthnCredentialsModuleSelect = { export type WebhookModuleSelect = { apiName?: boolean; databaseId?: boolean; - defaultPermissions?: boolean; + defaultCapabilities?: boolean; entityField?: boolean; entityTableId?: boolean; functionInvocationModuleId?: boolean; @@ -4335,18 +5054,30 @@ 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 `defaultVisibility` field. */ + defaultVisibility?: StringFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ entityTableId?: UUIDFilter; + /** Filter by the object’s `eventTableId` field. */ + eventTableId?: UUIDFilter; + /** Filter by the object’s `eventTableName` field. */ + eventTableName?: StringFilter; /** Filter by the object’s `hasAgents` field. */ hasAgents?: BooleanFilter; + /** Filter by the object’s `hasAttachments` field. */ + hasAttachments?: BooleanFilter; /** Filter by the object’s `hasPlans` field. */ hasPlans?: BooleanFilter; + /** Filter by the object’s `hasRepositoryResources` field. */ + hasRepositoryResources?: BooleanFilter; /** Filter by the object’s `hasResources` field. */ hasResources?: BooleanFilter; + /** Filter by the object’s `hasRuns` field. */ + hasRuns?: BooleanFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `messageTableId` field. */ @@ -4383,18 +5114,24 @@ export interface AgentModuleFilter { provisions?: JSONFilter; /** Filter by the object’s `publicSchemaName` field. */ publicSchemaName?: StringFilter; + /** Filter by the object’s `resourceRepositoryTableId` field. */ + resourceRepositoryTableId?: UUIDFilter; + /** Filter by the object’s `resourceRepositoryTableName` field. */ + resourceRepositoryTableName?: StringFilter; /** Filter by the object’s `resourceTableId` field. */ resourceTableId?: UUIDFilter; /** Filter by the object’s `resourceTableName` field. */ resourceTableName?: StringFilter; /** Filter by the object’s `resources` field. */ resources?: JSONFilter; + /** Filter by the object’s `runTableId` field. */ + runTableId?: UUIDFilter; + /** Filter by the object’s `runTableName` field. */ + runTableName?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `scope` field. */ scope?: StringFilter; - /** Filter by the object’s `shared` field. */ - shared?: BooleanFilter; /** Filter by the object’s `taskTableId` field. */ taskTableId?: UUIDFilter; /** Filter by the object’s `taskTableName` field. */ @@ -4403,6 +5140,10 @@ export interface AgentModuleFilter { threadTableId?: UUIDFilter; /** Filter by the object’s `threadTableName` field. */ threadTableName?: StringFilter; + /** Filter by the object’s `workspaceTableId` field. */ + workspaceTableId?: UUIDFilter; + /** Filter by the object’s `workspaceTableName` field. */ + workspaceTableName?: StringFilter; } export interface ApiSurfaceModuleFilter { /** Checks for all expressions in this list. */ @@ -4433,8 +5174,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. */ @@ -4469,6 +5210,8 @@ export interface AppModuleFilter { appComponentsTableId?: UUIDFilter; /** Filter by the object’s `appComponentsTableName` field. */ appComponentsTableName?: StringFilter; + /** Filter by the object’s `appStoreIdentitiesTableName` field. */ + appStoreIdentitiesTableName?: StringFilter; /** Filter by the object’s `appsTableId` field. */ appsTableId?: UUIDFilter; /** Filter by the object’s `appsTableName` field. */ @@ -4481,8 +5224,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 +5266,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. */ @@ -4577,6 +5320,8 @@ export interface BillingModuleFilter { sweepExpiredSubscriptionsFunction?: StringFilter; } export interface BillingProviderModuleFilter { + /** Filter by the object’s `activatePlanSubscriptionFunction` field. */ + activatePlanSubscriptionFunction?: StringFilter; /** Checks for all expressions in this list. */ and?: BillingProviderModuleFilter[]; /** Filter by the object’s `apiName` field. */ @@ -4585,6 +5330,14 @@ export interface BillingProviderModuleFilter { billingCustomersTableId?: UUIDFilter; /** Filter by the object’s `billingCustomersTableName` field. */ billingCustomersTableName?: StringFilter; + /** Filter by the object’s `billingDisputesTableId` field. */ + billingDisputesTableId?: UUIDFilter; + /** Filter by the object’s `billingDisputesTableName` field. */ + billingDisputesTableName?: 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 +5346,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. */ @@ -4603,8 +5360,24 @@ export interface BillingProviderModuleFilter { billingWebhookEventsTableName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `getActivePlanPricingFunction` field. */ + getActivePlanPricingFunction?: StringFilter; + /** Filter by the object’s `getBillingCustomerFunction` field. */ + getBillingCustomerFunction?: StringFilter; + /** Filter by the object’s `getBillingPriceFunction` field. */ + getBillingPriceFunction?: StringFilter; + /** Filter by the object’s `getBillingProductFunction` field. */ + getBillingProductFunction?: StringFilter; + /** Filter by the object’s `getBillingSubscriptionFunction` field. */ + getBillingSubscriptionFunction?: StringFilter; + /** Filter by the object’s `getFallbackFreePlanFunction` field. */ + getFallbackFreePlanFunction?: StringFilter; /** 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 +5396,26 @@ export interface BillingProviderModuleFilter { productsTableId?: UUIDFilter; /** Filter by the object’s `provider` field. */ provider?: StringFilter; + /** Filter by the object’s `recordDisputeFunction` field. */ + recordDisputeFunction?: 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 `sweepOverdueSubscriptionsFunction` field. */ + sweepOverdueSubscriptionsFunction?: StringFilter; + /** Filter by the object’s `upsertBillingCustomerFunction` field. */ + upsertBillingCustomerFunction?: StringFilter; + /** Filter by the object’s `upsertBillingPriceFunction` field. */ + upsertBillingPriceFunction?: StringFilter; + /** Filter by the object’s `upsertBillingProductFunction` field. */ + upsertBillingProductFunction?: StringFilter; + /** Filter by the object’s `upsertBillingSubscriptionFunction` field. */ + upsertBillingSubscriptionFunction?: StringFilter; + /** Filter by the object’s `upsertInvoiceFunction` field. */ + upsertInvoiceFunction?: StringFilter; } export interface BlueprintFilter { /** Checks for all expressions in this list. */ @@ -4760,6 +5549,62 @@ export interface BlueprintTemplateFilter { /** Filter by the object’s `visibility` field. */ visibility?: StringFilter; } +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; +} export interface CatalogModuleFilter { /** Checks for all expressions in this list. */ and?: CatalogModuleFilter[]; @@ -4777,18 +5622,26 @@ export interface CatalogModuleFilter { appModules?: CatalogModuleToManyAppModuleFilter; /** `appModules` exist. */ appModulesExist?: boolean; + /** Filter by the object’s `appStoreIdentitiesTableId` field. */ + appStoreIdentitiesTableId?: UUIDFilter; + /** Filter by the object’s `appStoreIdentitiesTableName` field. */ + appStoreIdentitiesTableName?: StringFilter; /** 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 `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `domainModules` relation. */ domainModules?: CatalogModuleToManyDomainModuleFilter; /** `domainModules` exist. */ @@ -4805,6 +5658,14 @@ export interface CatalogModuleFilter { functionsTableName?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `imagesTableId` field. */ + imagesTableId?: UUIDFilter; + /** Filter by the object’s `imagesTableName` field. */ + imagesTableName?: StringFilter; + /** Filter by the object’s `managedDomainsTableId` field. */ + managedDomainsTableId?: UUIDFilter; + /** Filter by the object’s `managedDomainsTableName` field. */ + managedDomainsTableName?: StringFilter; /** Filter by the object’s `namespacesTableId` field. */ namespacesTableId?: UUIDFilter; /** Filter by the object’s `namespacesTableName` field. */ @@ -4821,6 +5682,10 @@ export interface CatalogModuleFilter { provisions?: JSONFilter; /** Filter by the object’s `publicSchemaName` field. */ publicSchemaName?: StringFilter; + /** Filter by the object’s `redirectsTableId` field. */ + redirectsTableId?: UUIDFilter; + /** Filter by the object’s `redirectsTableName` field. */ + redirectsTableName?: StringFilter; /** Filter by the object’s `resourceDefinitionsTableId` field. */ resourceDefinitionsTableId?: UUIDFilter; /** Filter by the object’s `resourceDefinitionsTableName` field. */ @@ -4866,9 +5731,69 @@ export interface CatalogModuleFilter { /** Filter by the object’s `sitesWebConfigTableName` field. */ sitesWebConfigTableName?: StringFilter; } +export interface ClusterModuleFilter { + /** Checks for all expressions in this list. */ + and?: ClusterModuleFilter[]; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `clusterEventsTableId` field. */ + clusterEventsTableId?: UUIDFilter; + /** Filter by the object’s `clusterEventsTableName` field. */ + clusterEventsTableName?: StringFilter; + /** Filter by the object’s `clustersTableId` field. */ + clustersTableId?: UUIDFilter; + /** Filter by the object’s `clustersTableName` field. */ + clustersTableName?: StringFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `databasePlacementsTableId` field. */ + databasePlacementsTableId?: UUIDFilter; + /** Filter by the object’s `databasePlacementsTableName` field. */ + databasePlacementsTableName?: StringFilter; + /** Filter by the object’s `databaseServersTableId` field. */ + databaseServersTableId?: UUIDFilter; + /** Filter by the object’s `databaseServersTableName` field. */ + databaseServersTableName?: StringFilter; + /** 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. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: ClusterModuleFilter; + /** Checks for any expressions in this list. */ + or?: ClusterModuleFilter[]; + /** Filter by the object’s `partitionInterval` field. */ + partitionInterval?: StringFilter; + /** Filter by the object’s `physicalDatabasesTableId` field. */ + physicalDatabasesTableId?: UUIDFilter; + /** Filter by the object’s `physicalDatabasesTableName` field. */ + physicalDatabasesTableName?: StringFilter; + /** Filter by the object’s `policies` field. */ + policies?: JSONFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `premake` field. */ + premake?: IntFilter; + /** 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 `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `retention` field. */ + retention?: StringFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; +} export interface ComputeLogModuleFilter { - /** Filter by the object’s `actorFkTableId` field. */ - actorFkTableId?: UUIDFilter; /** Checks for all expressions in this list. */ and?: ComputeLogModuleFilter[]; /** Filter by the object’s `apiName` field. */ @@ -4881,8 +5806,6 @@ export interface ComputeLogModuleFilter { databaseId?: UUIDFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; - /** Filter by the object’s `entityFkTableId` field. */ - entityFkTableId?: UUIDFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `interval` field. */ @@ -4905,6 +5828,8 @@ export interface ComputeLogModuleFilter { publicSchemaName?: StringFilter; /** Filter by the object’s `retention` field. */ retention?: StringFilter; + /** Filter by the object’s `rollupFunctionName` field. */ + rollupFunctionName?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `scope` field. */ @@ -4914,23 +5839,25 @@ export interface ComputeLogModuleFilter { /** Filter by the object’s `usageSummaryTableName` field. */ usageSummaryTableName?: StringFilter; } -export interface ConfigSecretsUserModuleFilter { +export interface ConnectedAccountsModuleFilter { /** Checks for all expressions in this list. */ - and?: ConfigSecretsUserModuleFilter[]; + and?: ConnectedAccountsModuleFilter[]; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `entityField` field. */ - entityField?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Negates the expression. */ - not?: ConfigSecretsUserModuleFilter; + not?: ConnectedAccountsModuleFilter; /** Checks for any expressions in this list. */ - or?: ConfigSecretsUserModuleFilter[]; + or?: ConnectedAccountsModuleFilter[]; + /** Filter by the object’s `ownerTableId` field. */ + ownerTableId?: UUIDFilter; /** Filter by the object’s `privateApiName` field. */ privateApiName?: StringFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `tableId` field. */ @@ -4938,31 +5865,49 @@ export interface ConfigSecretsUserModuleFilter { /** Filter by the object’s `tableName` field. */ tableName?: StringFilter; } -export interface ConnectedAccountsModuleFilter { +export interface ContentPresetModuleFilter { /** Checks for all expressions in this list. */ - and?: ConnectedAccountsModuleFilter[]; + 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?: ConnectedAccountsModuleFilter; + not?: ContentPresetModuleFilter; /** Checks for any expressions in this list. */ - or?: ConnectedAccountsModuleFilter[]; - /** Filter by the object’s `ownerTableId` field. */ - ownerTableId?: UUIDFilter; + 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 `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `tableName` field. */ - tableName?: StringFilter; + /** 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. */ @@ -5028,11 +5973,45 @@ 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[]; /** Filter by the object’s `async` field. */ async?: BooleanFilter; + /** Filter by the object’s `bootstrapActorId` field. */ + bootstrapActorId?: UUIDFilter; /** Filter by the object’s `bootstrapError` field. */ bootstrapError?: StringFilter; /** Filter by the object’s `bootstrapStatus` field. */ @@ -5085,8 +6064,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 +6220,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 +6350,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 +6401,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 +6578,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 +6596,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 +6634,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 +6662,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 +6706,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 +6768,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 +6824,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. */ @@ -5771,10 +6840,6 @@ export interface FunctionModuleFilter { functionDeploymentModulesExist?: boolean; /** Filter by the object’s `hasCron` field. */ hasCron?: BooleanFilter; - /** Filter by the object’s `httpRouteModules` relation. */ - httpRouteModules?: FunctionModuleToManyHttpRouteModuleFilter; - /** `httpRouteModules` exist. */ - httpRouteModulesExist?: boolean; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Negates the expression. */ @@ -5801,6 +6866,8 @@ export interface FunctionModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `scope` field. */ scope?: StringFilter; + /** Filter by the object’s `storageKey` field. */ + storageKey?: StringFilter; /** Filter by the object’s `webhookModules` relation. */ webhookModules?: FunctionModuleToManyWebhookModuleFilter; /** `webhookModules` exist. */ @@ -5815,8 +6882,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 +6938,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 +6994,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. */ @@ -5966,107 +7033,93 @@ export interface HierarchyModuleFilter { /** Filter by the object’s `usersTableId` field. */ usersTableId?: UUIDFilter; } -export interface HttpRouteModuleFilter { +export interface I18NModuleFilter { /** Checks for all expressions in this list. */ - and?: HttpRouteModuleFilter[]; + and?: I18NModuleFilter[]; /** Filter by the object’s `apiName` field. */ 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 `entityField` field. */ - entityField?: StringFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; - /** Filter by the object’s `functionModule` relation. */ - functionModule?: FunctionModuleFilter; - /** A related `functionModule` exists. */ - functionModuleExists?: boolean; - /** Filter by the object’s `functionModuleId` field. */ - functionModuleId?: UUIDFilter; - /** Filter by the object’s `httpRoutesTableId` field. */ - httpRoutesTableId?: UUIDFilter; - /** Filter by the object’s `httpRoutesTableName` field. */ - httpRoutesTableName?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Negates the expression. */ - not?: HttpRouteModuleFilter; + not?: I18NModuleFilter; /** Checks for any expressions in this list. */ - or?: HttpRouteModuleFilter[]; - /** Filter by the object’s `policies` field. */ - policies?: JSONFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; + or?: I18NModuleFilter[]; /** 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 `publicSchemaName` field. */ - publicSchemaName?: StringFilter; - /** Filter by the object’s `resolverFunctionName` field. */ - resolverFunctionName?: StringFilter; - /** Filter by the object’s `resourceModule` relation. */ - resourceModule?: ResourceModuleFilter; - /** A related `resourceModule` exists. */ - resourceModuleExists?: boolean; - /** Filter by the object’s `resourceModuleId` field. */ - resourceModuleId?: UUIDFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; - /** Filter by the object’s `storageModule` relation. */ - storageModule?: StorageModuleFilter; - /** A related `storageModule` exists. */ - storageModuleExists?: boolean; - /** Filter by the object’s `storageModuleId` field. */ - storageModuleId?: UUIDFilter; + /** Filter by the object’s `settingsTableId` field. */ + settingsTableId?: UUIDFilter; } -export interface I18NModuleFilter { +export interface IdentityProvidersModuleFilter { /** Checks for all expressions in this list. */ - and?: I18NModuleFilter[]; + and?: IdentityProvidersModuleFilter[]; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; /** 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?: I18NModuleFilter; + not?: IdentityProvidersModuleFilter; /** Checks for any expressions in this list. */ - or?: I18NModuleFilter[]; + or?: IdentityProvidersModuleFilter[]; + /** 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 `settingsTableId` field. */ - settingsTableId?: 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 IdentityProvidersModuleFilter { +export interface ImageModuleFilter { /** Checks for all expressions in this list. */ - and?: IdentityProvidersModuleFilter[]; + and?: ImageModuleFilter[]; /** 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 `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ entityTableId?: UUIDFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `imageGrantsTableId` field. */ + imageGrantsTableId?: UUIDFilter; + /** Filter by the object’s `imageGrantsTableName` field. */ + imageGrantsTableName?: StringFilter; + /** Filter by the object’s `imagesTableId` field. */ + imagesTableId?: UUIDFilter; + /** Filter by the object’s `imagesTableName` field. */ + imagesTableName?: StringFilter; /** Negates the expression. */ - not?: IdentityProvidersModuleFilter; + not?: ImageModuleFilter; /** Checks for any expressions in this list. */ - or?: IdentityProvidersModuleFilter[]; + or?: ImageModuleFilter[]; + /** 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. */ @@ -6075,20 +7128,24 @@ export interface IdentityProvidersModuleFilter { 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 `publicSchemaName` field. */ publicSchemaName?: StringFilter; + /** Filter by the object’s `registriesTableId` field. */ + registriesTableId?: UUIDFilter; + /** Filter by the object’s `registriesTableName` field. */ + registriesTableName?: StringFilter; + /** Filter by the object’s `registryGrantsTableId` field. */ + registryGrantsTableId?: UUIDFilter; + /** Filter by the object’s `registryGrantsTableName` field. */ + registryGrantsTableName?: 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 InferenceLogModuleFilter { - /** Filter by the object’s `actorFkTableId` field. */ - actorFkTableId?: UUIDFilter; /** Checks for all expressions in this list. */ and?: InferenceLogModuleFilter[]; /** Filter by the object’s `apiName` field. */ @@ -6097,8 +7154,6 @@ export interface InferenceLogModuleFilter { databaseId?: UUIDFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; - /** Filter by the object’s `entityFkTableId` field. */ - entityFkTableId?: UUIDFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `inferenceLogTableId` field. */ @@ -6125,6 +7180,8 @@ export interface InferenceLogModuleFilter { publicSchemaName?: StringFilter; /** Filter by the object’s `retention` field. */ retention?: StringFilter; + /** Filter by the object’s `rollupFunctionName` field. */ + rollupFunctionName?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `scope` field. */ @@ -6254,6 +7311,46 @@ export interface IntegrationProvidersModuleFilter { /** Filter by the object’s `tableName` field. */ tableName?: StringFilter; } +export interface InternalConfigModuleFilter { + /** Checks for all expressions in this list. */ + and?: InternalConfigModuleFilter[]; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** 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; + /** Filter by the object’s `internalConfigTableId` field. */ + internalConfigTableId?: UUIDFilter; + /** Filter by the object’s `internalConfigTableName` field. */ + internalConfigTableName?: StringFilter; + /** Negates the expression. */ + not?: InternalConfigModuleFilter; + /** Checks for any expressions in this list. */ + or?: InternalConfigModuleFilter[]; + /** 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 `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; +} export interface InternalSecretsModuleFilter { /** Checks for all expressions in this list. */ and?: InternalSecretsModuleFilter[]; @@ -6340,6 +7437,52 @@ export interface InvitesModuleFilter { /** Filter by the object’s `usersTableId` field. */ usersTableId?: UUIDFilter; } +export interface K8sAdmissionModuleFilter { + /** Checks for all expressions in this list. */ + and?: K8sAdmissionModuleFilter[]; + /** 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 `k8sResourceKindsTableId` field. */ + k8sResourceKindsTableId?: UUIDFilter; + /** Filter by the object’s `k8sSpecRulesTableId` field. */ + k8sSpecRulesTableId?: UUIDFilter; + /** Filter by the object’s `merkleStoreModule` relation. */ + merkleStoreModule?: MerkleStoreModuleFilter; + /** Filter by the object’s `merkleStoreModuleId` field. */ + merkleStoreModuleId?: UUIDFilter; + /** Negates the expression. */ + not?: K8sAdmissionModuleFilter; + /** Checks for any expressions in this list. */ + or?: K8sAdmissionModuleFilter[]; + /** 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 LimitsModuleFilter { /** Filter by the object’s `actorTableId` field. */ actorTableId?: UUIDFilter; @@ -6387,6 +7530,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. */ @@ -6422,6 +7567,62 @@ export interface LimitsModuleFilter { /** Filter by the object’s `tableName` field. */ tableName?: StringFilter; } +export interface MachineModuleFilter { + /** Checks for all expressions in this list. */ + and?: MachineModuleFilter[]; + /** 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 `entityField` field. */ + entityField?: StringFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `machineMessagesTableId` field. */ + machineMessagesTableId?: UUIDFilter; + /** Filter by the object’s `machineMessagesTableName` field. */ + machineMessagesTableName?: StringFilter; + /** Filter by the object’s `machineSessionsTableId` field. */ + machineSessionsTableId?: UUIDFilter; + /** Filter by the object’s `machineSessionsTableName` field. */ + machineSessionsTableName?: StringFilter; + /** Filter by the object’s `machinesTableId` field. */ + machinesTableId?: UUIDFilter; + /** Filter by the object’s `machinesTableName` field. */ + machinesTableName?: StringFilter; + /** Negates the expression. */ + not?: MachineModuleFilter; + /** Checks for any expressions in this list. */ + or?: MachineModuleFilter[]; + /** Filter by the object’s `partitionInterval` field. */ + partitionInterval?: StringFilter; + /** Filter by the object’s `policies` field. */ + policies?: JSONFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `premake` field. */ + premake?: IntFilter; + /** 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 `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `retention` field. */ + retention?: StringFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; +} export interface MembershipTypesModuleFilter { /** Checks for all expressions in this list. */ and?: MembershipTypesModuleFilter[]; @@ -6455,12 +7656,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 +7716,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 +7738,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. */ @@ -6549,6 +7756,8 @@ export interface MerkleStoreModuleFilter { dbPresetModulesExist?: boolean; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; /** Filter by the object’s `functionPrefix` field. */ functionPrefix?: StringFilter; /** Filter by the object’s `graphModules` relation. */ @@ -6557,6 +7766,10 @@ export interface MerkleStoreModuleFilter { graphModulesExist?: boolean; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `k8sAdmissionModules` relation. */ + k8sAdmissionModules?: MerkleStoreModuleToManyK8sAdmissionModuleFilter; + /** `k8sAdmissionModules` exist. */ + k8sAdmissionModulesExist?: boolean; /** Negates the expression. */ not?: MerkleStoreModuleFilter; /** Filter by the object’s `objectTableId` field. */ @@ -6567,8 +7780,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 +7810,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 +7870,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 +7917,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[]; @@ -6733,6 +7976,14 @@ export interface PagesModuleFilter { policies?: JSONFilter; /** Filter by the object’s `prefix` field. */ prefix?: StringFilter; + /** Filter by the object’s `previewCommitFunctionName` field. */ + previewCommitFunctionName?: StringFilter; + /** Filter by the object’s `previewSetFunctionName` field. */ + previewSetFunctionName?: StringFilter; + /** Filter by the object’s `previewTokenMintFunctionName` field. */ + previewTokenMintFunctionName?: StringFilter; + /** Filter by the object’s `previewTokenVerifierFunctionName` field. */ + previewTokenVerifierFunctionName?: StringFilter; /** Filter by the object’s `privateApiName` field. */ privateApiName?: StringFilter; /** Filter by the object’s `privateSchemaId` field. */ @@ -6745,6 +7996,8 @@ export interface PagesModuleFilter { publicSchemaId?: UUIDFilter; /** Filter by the object’s `publicSchemaName` field. */ publicSchemaName?: StringFilter; + /** Filter by the object’s `releaseManifestFunctionName` field. */ + releaseManifestFunctionName?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: StringFilter; /** Filter by the object’s `siteSurfaceModule` relation. */ @@ -6758,58 +8011,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[]; @@ -6919,6 +8120,8 @@ export interface PrincipalAuthModuleFilter { principalsTableId?: UUIDFilter; /** Filter by the object’s `principalsTableName` field. */ principalsTableName?: StringFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; /** Filter by the object’s `revokeOrgApiKeyFunction` field. */ revokeOrgApiKeyFunction?: StringFilter; /** Filter by the object’s `schemaId` field. */ @@ -6927,6 +8130,8 @@ export interface PrincipalAuthModuleFilter { sessionCredentialsTableId?: UUIDFilter; /** Filter by the object’s `sessionsTableId` field. */ sessionsTableId?: UUIDFilter; + /** Filter by the object’s `sweepExpiredPrincipalsFunction` field. */ + sweepExpiredPrincipalsFunction?: StringFilter; /** Filter by the object’s `usersTableId` field. */ usersTableId?: UUIDFilter; } @@ -6937,6 +8142,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 +8152,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 +8170,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 +8182,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 +8206,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. */ @@ -7092,29 +8301,83 @@ export interface RealtimeModuleFilter { /** Filter by the object’s `subscriptionsSchemaId` field. */ subscriptionsSchemaId?: UUIDFilter; } -export interface RelationProvisionFilter { +export interface RefusalLogModuleFilter { /** Checks for all expressions in this list. */ - and?: RelationProvisionFilter[]; - /** Filter by the object’s `apiRequired` field. */ - apiRequired?: BooleanFilter; - /** Filter by the object’s `createIndex` field. */ - createIndex?: BooleanFilter; + and?: RefusalLogModuleFilter[]; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `deleteAction` field. */ - deleteAction?: StringFilter; - /** Filter by the object’s `exposeInApi` field. */ - exposeInApi?: BooleanFilter; - /** Filter by the object’s `fieldName` field. */ - fieldName?: StringFilter; - /** Filter by the object’s `grants` field. */ - grants?: JSONFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `isRequired` field. */ - isRequired?: BooleanFilter; - /** Filter by the object’s `junctionSchemaId` field. */ - junctionSchemaId?: UUIDFilter; + /** Filter by the object’s `logInterval` field. */ + logInterval?: StringFilter; + /** Filter by the object’s `logPremake` field. */ + logPremake?: IntFilter; + /** Filter by the object’s `logRetention` field. */ + logRetention?: StringFilter; + /** Filter by the object’s `logTableId` field. */ + logTableId?: UUIDFilter; + /** Filter by the object’s `logTableName` field. */ + logTableName?: StringFilter; + /** Negates the expression. */ + not?: RefusalLogModuleFilter; + /** Checks for any expressions in this list. */ + or?: RefusalLogModuleFilter[]; + /** 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 `recordRefusalsFunction` field. */ + recordRefusalsFunction?: StringFilter; + /** Filter by the object’s `rollupRefusalUsageSummaryFunction` field. */ + rollupRefusalUsageSummaryFunction?: StringFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `summaryInterval` field. */ + summaryInterval?: StringFilter; + /** Filter by the object’s `summaryPremake` field. */ + summaryPremake?: IntFilter; + /** Filter by the object’s `summaryRetention` field. */ + summaryRetention?: StringFilter; + /** Filter by the object’s `summaryTableId` field. */ + summaryTableId?: UUIDFilter; + /** Filter by the object’s `summaryTableName` field. */ + summaryTableName?: StringFilter; +} +export interface RelationProvisionFilter { + /** Checks for all expressions in this list. */ + and?: RelationProvisionFilter[]; + /** Filter by the object’s `apiRequired` field. */ + apiRequired?: BooleanFilter; + /** Filter by the object’s `createIndex` field. */ + createIndex?: BooleanFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `deleteAction` field. */ + deleteAction?: StringFilter; + /** Filter by the object’s `exposeInApi` field. */ + exposeInApi?: BooleanFilter; + /** Filter by the object’s `fieldName` field. */ + fieldName?: StringFilter; + /** Filter by the object’s `grants` field. */ + grants?: JSONFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isRequired` field. */ + isRequired?: BooleanFilter; + /** Filter by the object’s `junctionSchemaId` field. */ + junctionSchemaId?: UUIDFilter; /** Filter by the object’s `junctionTableId` field. */ junctionTableId?: UUIDFilter; /** Filter by the object’s `junctionTableName` field. */ @@ -7148,23 +8411,111 @@ export interface RelationProvisionFilter { /** Filter by the object’s `useCompositeKey` field. */ useCompositeKey?: BooleanFilter; } +export interface RepositoryModuleFilter { + /** Checks for all expressions in this list. */ + and?: RepositoryModuleFilter[]; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `buildStepsTableId` field. */ + buildStepsTableId?: UUIDFilter; + /** Filter by the object’s `buildStepsTableName` field. */ + buildStepsTableName?: StringFilter; + /** Filter by the object’s `buildsTableId` field. */ + buildsTableId?: UUIDFilter; + /** Filter by the object’s `buildsTableName` field. */ + buildsTableName?: StringFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** 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. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `hasAttachments` field. */ + hasAttachments?: BooleanFilter; + /** Filter by the object’s `hasBuilds` field. */ + hasBuilds?: BooleanFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: RepositoryModuleFilter; + /** Checks for any expressions in this list. */ + or?: RepositoryModuleFilter[]; + /** 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 `proposalCommentsTableId` field. */ + proposalCommentsTableId?: UUIDFilter; + /** Filter by the object’s `proposalCommentsTableName` field. */ + proposalCommentsTableName?: StringFilter; + /** Filter by the object’s `proposalFileViewsTableId` field. */ + proposalFileViewsTableId?: UUIDFilter; + /** Filter by the object’s `proposalFileViewsTableName` field. */ + proposalFileViewsTableName?: StringFilter; + /** Filter by the object’s `proposalReactionsTableId` field. */ + proposalReactionsTableId?: UUIDFilter; + /** Filter by the object’s `proposalReactionsTableName` field. */ + proposalReactionsTableName?: StringFilter; + /** Filter by the object’s `proposalReviewsTableId` field. */ + proposalReviewsTableId?: UUIDFilter; + /** Filter by the object’s `proposalReviewsTableName` field. */ + proposalReviewsTableName?: StringFilter; + /** Filter by the object’s `proposalsTableId` field. */ + proposalsTableId?: UUIDFilter; + /** Filter by the object’s `proposalsTableName` field. */ + proposalsTableName?: StringFilter; + /** Filter by the object’s `provisions` field. */ + provisions?: JSONFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `repositoriesTableId` field. */ + repositoriesTableId?: UUIDFilter; + /** Filter by the object’s `repositoriesTableName` field. */ + repositoriesTableName?: StringFilter; + /** Filter by the object’s `repositoryEventsTableId` field. */ + repositoryEventsTableId?: UUIDFilter; + /** Filter by the object’s `repositoryEventsTableName` field. */ + repositoryEventsTableName?: StringFilter; + /** Filter by the object’s `repositoryRequiredChecksTableId` field. */ + repositoryRequiredChecksTableId?: UUIDFilter; + /** Filter by the object’s `repositoryRequiredChecksTableName` field. */ + repositoryRequiredChecksTableName?: StringFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `search` field. */ + search?: JSONFilter; + /** Filter by the object’s `workflowsTableId` field. */ + workflowsTableId?: UUIDFilter; + /** Filter by the object’s `workflowsTableName` field. */ + workflowsTableName?: StringFilter; +} export interface ResourceModuleFilter { /** Checks for all expressions in this list. */ and?: ResourceModuleFilter[]; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; + /** Filter by the object’s `builderBindingsTableId` field. */ + builderBindingsTableId?: UUIDFilter; + /** Filter by the object’s `builderBindingsTableName` field. */ + builderBindingsTableName?: 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. */ entityTableId?: UUIDFilter; - /** Filter by the object’s `httpRouteModules` relation. */ - httpRouteModules?: ResourceModuleToManyHttpRouteModuleFilter; - /** `httpRouteModules` exist. */ - httpRouteModulesExist?: boolean; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `installationStoreName` field. */ @@ -7199,6 +8550,10 @@ export interface ResourceModuleFilter { provisions?: JSONFilter; /** Filter by the object’s `publicSchemaName` field. */ publicSchemaName?: StringFilter; + /** Filter by the object’s `registryBindingsTableId` field. */ + registryBindingsTableId?: UUIDFilter; + /** Filter by the object’s `registryBindingsTableName` field. */ + registryBindingsTableName?: StringFilter; /** Filter by the object’s `requirementsStateViewName` field. */ requirementsStateViewName?: StringFilter; /** Filter by the object’s `resolvedRequirementsViewName` field. */ @@ -7279,6 +8634,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 +8644,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. */ @@ -7323,6 +8682,10 @@ export interface RouteModuleFilter { provisions?: JSONFilter; /** Filter by the object’s `publicSchemaName` field. */ publicSchemaName?: StringFilter; + /** Filter by the object’s `redirectsTableId` field. */ + redirectsTableId?: UUIDFilter; + /** Filter by the object’s `redirectsTableName` field. */ + redirectsTableName?: StringFilter; /** Filter by the object’s `resolverFunctionName` field. */ resolverFunctionName?: StringFilter; /** Filter by the object’s `routeBindingsTableId` field. */ @@ -7337,6 +8700,28 @@ export interface RouteModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `scope` field. */ scope?: StringFilter; + /** Filter by the object’s `servingSiteField` field. */ + servingSiteField?: StringFilter; + /** Filter by the object’s `storageKey` field. */ + storageKey?: 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. */ @@ -7349,6 +8734,8 @@ export interface SecureTableProvisionFilter { grants?: JSONFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `module` field. */ + module?: JSONFilter; /** Filter by the object’s `nodes` field. */ nodes?: JSONFilter; /** Negates the expression. */ @@ -7357,6 +8744,8 @@ export interface SecureTableProvisionFilter { or?: SecureTableProvisionFilter[]; /** Filter by the object’s `outFields` field. */ outFields?: UUIDListFilter; + /** Filter by the object’s `owns` field. */ + owns?: JSONFilter; /** Filter by the object’s `policies` field. */ policies?: JSONFilter; /** Filter by the object’s `schemaId` field. */ @@ -7431,8 +8820,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. */ @@ -7485,6 +8878,10 @@ export interface SiteSurfaceModuleFilter { siteModulesTableId?: UUIDFilter; /** Filter by the object’s `siteModulesTableName` field. */ siteModulesTableName?: StringFilter; + /** Filter by the object’s `siteReleasesTableId` field. */ + siteReleasesTableId?: UUIDFilter; + /** Filter by the object’s `siteReleasesTableName` field. */ + siteReleasesTableName?: StringFilter; /** Filter by the object’s `siteThemesTableId` field. */ siteThemesTableId?: UUIDFilter; /** Filter by the object’s `siteThemesTableName` field. */ @@ -7497,10 +8894,10 @@ export interface SiteSurfaceModuleFilter { sitesTableId?: UUIDFilter; /** Filter by the object’s `sitesTableName` field. */ sitesTableName?: StringFilter; + /** Filter by the object’s `storageKey` field. */ + storageKey?: StringFilter; } export interface StorageLogModuleFilter { - /** Filter by the object’s `actorFkTableId` field. */ - actorFkTableId?: UUIDFilter; /** Checks for all expressions in this list. */ and?: StorageLogModuleFilter[]; /** Filter by the object’s `apiName` field. */ @@ -7509,8 +8906,6 @@ export interface StorageLogModuleFilter { databaseId?: UUIDFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; - /** Filter by the object’s `entityFkTableId` field. */ - entityFkTableId?: UUIDFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `interval` field. */ @@ -7533,6 +8928,8 @@ export interface StorageLogModuleFilter { publicSchemaName?: StringFilter; /** Filter by the object’s `retention` field. */ retention?: StringFilter; + /** Filter by the object’s `rollupFunctionName` field. */ + rollupFunctionName?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `scope` field. */ @@ -7565,10 +8962,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 +8976,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. */ @@ -7595,12 +8996,10 @@ export interface StorageModuleFilter { hasPathShares?: BooleanFilter; /** Filter by the object’s `hasVersioning` field. */ hasVersioning?: BooleanFilter; - /** Filter by the object’s `httpRouteModules` relation. */ - httpRouteModules?: StorageModuleToManyHttpRouteModuleFilter; - /** `httpRouteModules` exist. */ - httpRouteModulesExist?: boolean; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `key` field. */ + key?: StringFilter; /** Filter by the object’s `maxBulkFiles` field. */ maxBulkFiles?: IntFilter; /** Filter by the object’s `maxBulkTotalSize` field. */ @@ -7641,8 +9040,6 @@ export interface StorageModuleFilter { uploadUrlExpirySeconds?: IntFilter; } export interface TransferLogModuleFilter { - /** Filter by the object’s `actorFkTableId` field. */ - actorFkTableId?: UUIDFilter; /** Checks for all expressions in this list. */ and?: TransferLogModuleFilter[]; /** Filter by the object’s `apiName` field. */ @@ -7651,8 +9048,6 @@ export interface TransferLogModuleFilter { databaseId?: UUIDFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; - /** Filter by the object’s `entityFkTableId` field. */ - entityFkTableId?: UUIDFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `interval` field. */ @@ -7675,6 +9070,8 @@ export interface TransferLogModuleFilter { publicSchemaName?: StringFilter; /** Filter by the object’s `retention` field. */ retention?: StringFilter; + /** Filter by the object’s `rollupFunctionName` field. */ + rollupFunctionName?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `scope` field. */ @@ -7719,10 +9116,14 @@ export interface UserAuthModuleFilter { or?: UserAuthModuleFilter[]; /** Filter by the object’s `privateApiName` field. */ privateApiName?: StringFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; /** Filter by the object’s `requestCrossOriginTokenFunction` field. */ requestCrossOriginTokenFunction?: StringFilter; /** Filter by the object’s `resetPasswordFunction` field. */ resetPasswordFunction?: StringFilter; + /** Filter by the object’s `revokeSessionTreeFunction` field. */ + revokeSessionTreeFunction?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `secretsTableId` field. */ @@ -7745,6 +9146,8 @@ export interface UserAuthModuleFilter { signOutFunction?: StringFilter; /** Filter by the object’s `signUpFunction` field. */ signUpFunction?: StringFilter; + /** Filter by the object’s `sweepExpiredSessionsFunction` field. */ + sweepExpiredSessionsFunction?: StringFilter; /** Filter by the object’s `usersTableId` field. */ usersTableId?: UUIDFilter; /** Filter by the object’s `verifyEmailFunction` field. */ @@ -7796,6 +9199,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 +9340,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,18 +9413,30 @@ export type AgentModuleOrderBy = | 'API_NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' + | 'DEFAULT_VISIBILITY_ASC' + | 'DEFAULT_VISIBILITY_DESC' | 'ENTITY_FIELD_ASC' | 'ENTITY_FIELD_DESC' | 'ENTITY_TABLE_ID_ASC' | 'ENTITY_TABLE_ID_DESC' + | 'EVENT_TABLE_ID_ASC' + | 'EVENT_TABLE_ID_DESC' + | 'EVENT_TABLE_NAME_ASC' + | 'EVENT_TABLE_NAME_DESC' | 'HAS_AGENTS_ASC' | 'HAS_AGENTS_DESC' + | 'HAS_ATTACHMENTS_ASC' + | 'HAS_ATTACHMENTS_DESC' | 'HAS_PLANS_ASC' | 'HAS_PLANS_DESC' + | 'HAS_REPOSITORY_RESOURCES_ASC' + | 'HAS_REPOSITORY_RESOURCES_DESC' | 'HAS_RESOURCES_ASC' | 'HAS_RESOURCES_DESC' + | 'HAS_RUNS_ASC' + | 'HAS_RUNS_DESC' | 'ID_ASC' | 'ID_DESC' | 'MESSAGE_TABLE_ID_ASC' @@ -8037,16 +9474,22 @@ export type AgentModuleOrderBy = | 'PUBLIC_SCHEMA_NAME_DESC' | 'RESOURCES_ASC' | 'RESOURCES_DESC' + | 'RESOURCE_REPOSITORY_TABLE_ID_ASC' + | 'RESOURCE_REPOSITORY_TABLE_ID_DESC' + | 'RESOURCE_REPOSITORY_TABLE_NAME_ASC' + | 'RESOURCE_REPOSITORY_TABLE_NAME_DESC' | 'RESOURCE_TABLE_ID_ASC' | 'RESOURCE_TABLE_ID_DESC' | 'RESOURCE_TABLE_NAME_ASC' | 'RESOURCE_TABLE_NAME_DESC' + | 'RUN_TABLE_ID_ASC' + | 'RUN_TABLE_ID_DESC' + | 'RUN_TABLE_NAME_ASC' + | 'RUN_TABLE_NAME_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC' - | 'SHARED_ASC' - | 'SHARED_DESC' | 'TASK_TABLE_ID_ASC' | 'TASK_TABLE_ID_DESC' | 'TASK_TABLE_NAME_ASC' @@ -8054,7 +9497,11 @@ export type AgentModuleOrderBy = | 'THREAD_TABLE_ID_ASC' | 'THREAD_TABLE_ID_DESC' | 'THREAD_TABLE_NAME_ASC' - | 'THREAD_TABLE_NAME_DESC'; + | 'THREAD_TABLE_NAME_DESC' + | 'WORKSPACE_TABLE_ID_ASC' + | 'WORKSPACE_TABLE_ID_DESC' + | 'WORKSPACE_TABLE_NAME_ASC' + | 'WORKSPACE_TABLE_NAME_DESC'; export type ApiSurfaceModuleOrderBy = | 'APIS_TABLE_ID_ASC' | 'APIS_TABLE_ID_DESC' @@ -8078,8 +9525,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' @@ -8114,12 +9561,14 @@ export type AppModuleOrderBy = | 'APP_COMPONENTS_TABLE_ID_DESC' | 'APP_COMPONENTS_TABLE_NAME_ASC' | 'APP_COMPONENTS_TABLE_NAME_DESC' + | 'APP_STORE_IDENTITIES_TABLE_NAME_ASC' + | 'APP_STORE_IDENTITIES_TABLE_NAME_DESC' | 'CATALOG_MODULE_ID_ASC' | '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 +9605,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' @@ -8208,12 +9657,22 @@ export type BillingModuleOrderBy = | 'SWEEP_EXPIRED_SUBSCRIPTIONS_FUNCTION_ASC' | 'SWEEP_EXPIRED_SUBSCRIPTIONS_FUNCTION_DESC'; export type BillingProviderModuleOrderBy = + | 'ACTIVATE_PLAN_SUBSCRIPTION_FUNCTION_ASC' + | 'ACTIVATE_PLAN_SUBSCRIPTION_FUNCTION_DESC' | 'API_NAME_ASC' | 'API_NAME_DESC' | 'BILLING_CUSTOMERS_TABLE_ID_ASC' | 'BILLING_CUSTOMERS_TABLE_ID_DESC' | 'BILLING_CUSTOMERS_TABLE_NAME_ASC' | 'BILLING_CUSTOMERS_TABLE_NAME_DESC' + | 'BILLING_DISPUTES_TABLE_ID_ASC' + | 'BILLING_DISPUTES_TABLE_ID_DESC' + | 'BILLING_DISPUTES_TABLE_NAME_ASC' + | 'BILLING_DISPUTES_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 +9681,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' @@ -8232,8 +9695,24 @@ export type BillingProviderModuleOrderBy = | 'BILLING_WEBHOOK_EVENTS_TABLE_NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'GET_ACTIVE_PLAN_PRICING_FUNCTION_ASC' + | 'GET_ACTIVE_PLAN_PRICING_FUNCTION_DESC' + | 'GET_BILLING_CUSTOMER_FUNCTION_ASC' + | 'GET_BILLING_CUSTOMER_FUNCTION_DESC' + | 'GET_BILLING_PRICE_FUNCTION_ASC' + | 'GET_BILLING_PRICE_FUNCTION_DESC' + | 'GET_BILLING_PRODUCT_FUNCTION_ASC' + | 'GET_BILLING_PRODUCT_FUNCTION_DESC' + | 'GET_BILLING_SUBSCRIPTION_FUNCTION_ASC' + | 'GET_BILLING_SUBSCRIPTION_FUNCTION_DESC' + | 'GET_FALLBACK_FREE_PLAN_FUNCTION_ASC' + | 'GET_FALLBACK_FREE_PLAN_FUNCTION_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 +9730,26 @@ export type BillingProviderModuleOrderBy = | 'PRODUCTS_TABLE_ID_DESC' | 'PROVIDER_ASC' | 'PROVIDER_DESC' + | 'RECORD_DISPUTE_FUNCTION_ASC' + | 'RECORD_DISPUTE_FUNCTION_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' + | 'SWEEP_OVERDUE_SUBSCRIPTIONS_FUNCTION_ASC' + | 'SWEEP_OVERDUE_SUBSCRIPTIONS_FUNCTION_DESC' + | 'UPSERT_BILLING_CUSTOMER_FUNCTION_ASC' + | 'UPSERT_BILLING_CUSTOMER_FUNCTION_DESC' + | 'UPSERT_BILLING_PRICE_FUNCTION_ASC' + | 'UPSERT_BILLING_PRICE_FUNCTION_DESC' + | 'UPSERT_BILLING_PRODUCT_FUNCTION_ASC' + | 'UPSERT_BILLING_PRODUCT_FUNCTION_DESC' + | 'UPSERT_BILLING_SUBSCRIPTION_FUNCTION_ASC' + | 'UPSERT_BILLING_SUBSCRIPTION_FUNCTION_DESC' + | 'UPSERT_INVOICE_FUNCTION_ASC' + | 'UPSERT_INVOICE_FUNCTION_DESC'; export type BlueprintOrderBy = | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' @@ -8353,6 +9848,54 @@ export type BlueprintTemplateOrderBy = | 'VERSION_DESC' | 'VISIBILITY_ASC' | 'VISIBILITY_DESC'; +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' @@ -8364,14 +9907,22 @@ export type CatalogModuleOrderBy = | 'APPS_TABLE_ID_DESC' | 'APPS_TABLE_NAME_ASC' | 'APPS_TABLE_NAME_DESC' + | 'APP_STORE_IDENTITIES_TABLE_ID_ASC' + | 'APP_STORE_IDENTITIES_TABLE_ID_DESC' + | 'APP_STORE_IDENTITIES_TABLE_NAME_ASC' + | 'APP_STORE_IDENTITIES_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' @@ -8384,6 +9935,14 @@ export type CatalogModuleOrderBy = | 'FUNCTIONS_TABLE_NAME_DESC' | 'ID_ASC' | 'ID_DESC' + | 'IMAGES_TABLE_ID_ASC' + | 'IMAGES_TABLE_ID_DESC' + | 'IMAGES_TABLE_NAME_ASC' + | 'IMAGES_TABLE_NAME_DESC' + | 'MANAGED_DOMAINS_TABLE_ID_ASC' + | 'MANAGED_DOMAINS_TABLE_ID_DESC' + | 'MANAGED_DOMAINS_TABLE_NAME_ASC' + | 'MANAGED_DOMAINS_TABLE_NAME_DESC' | 'NAMESPACES_TABLE_ID_ASC' | 'NAMESPACES_TABLE_ID_DESC' | 'NAMESPACES_TABLE_NAME_ASC' @@ -8399,6 +9958,10 @@ export type CatalogModuleOrderBy = | 'PROVISIONS_DESC' | 'PUBLIC_SCHEMA_NAME_ASC' | 'PUBLIC_SCHEMA_NAME_DESC' + | 'REDIRECTS_TABLE_ID_ASC' + | 'REDIRECTS_TABLE_ID_DESC' + | 'REDIRECTS_TABLE_NAME_ASC' + | 'REDIRECTS_TABLE_NAME_DESC' | 'RESOURCES_TABLE_ID_ASC' | 'RESOURCES_TABLE_ID_DESC' | 'RESOURCES_TABLE_NAME_ASC' @@ -8435,9 +9998,65 @@ export type CatalogModuleOrderBy = | 'SITES_WEB_CONFIG_TABLE_ID_DESC' | 'SITES_WEB_CONFIG_TABLE_NAME_ASC' | 'SITES_WEB_CONFIG_TABLE_NAME_DESC'; +export type ClusterModuleOrderBy = + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'CLUSTERS_TABLE_ID_ASC' + | 'CLUSTERS_TABLE_ID_DESC' + | 'CLUSTERS_TABLE_NAME_ASC' + | 'CLUSTERS_TABLE_NAME_DESC' + | 'CLUSTER_EVENTS_TABLE_ID_ASC' + | 'CLUSTER_EVENTS_TABLE_ID_DESC' + | 'CLUSTER_EVENTS_TABLE_NAME_ASC' + | 'CLUSTER_EVENTS_TABLE_NAME_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DATABASE_PLACEMENTS_TABLE_ID_ASC' + | 'DATABASE_PLACEMENTS_TABLE_ID_DESC' + | 'DATABASE_PLACEMENTS_TABLE_NAME_ASC' + | 'DATABASE_PLACEMENTS_TABLE_NAME_DESC' + | 'DATABASE_SERVERS_TABLE_ID_ASC' + | 'DATABASE_SERVERS_TABLE_ID_DESC' + | 'DATABASE_SERVERS_TABLE_NAME_ASC' + | 'DATABASE_SERVERS_TABLE_NAME_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' + | 'PARTITION_INTERVAL_ASC' + | 'PARTITION_INTERVAL_DESC' + | 'PHYSICAL_DATABASES_TABLE_ID_ASC' + | 'PHYSICAL_DATABASES_TABLE_ID_DESC' + | 'PHYSICAL_DATABASES_TABLE_NAME_ASC' + | 'PHYSICAL_DATABASES_TABLE_NAME_DESC' + | 'POLICIES_ASC' + | 'POLICIES_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'PREMAKE_ASC' + | 'PREMAKE_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_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'RETENTION_ASC' + | 'RETENTION_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC'; export type ComputeLogModuleOrderBy = - | 'ACTOR_FK_TABLE_ID_ASC' - | 'ACTOR_FK_TABLE_ID_DESC' | 'API_NAME_ASC' | 'API_NAME_DESC' | 'COMPUTE_LOG_TABLE_ID_ASC' @@ -8448,8 +10067,6 @@ export type ComputeLogModuleOrderBy = | 'DATABASE_ID_DESC' | 'ENTITY_FIELD_ASC' | 'ENTITY_FIELD_DESC' - | 'ENTITY_FK_TABLE_ID_ASC' - | 'ENTITY_FK_TABLE_ID_DESC' | 'ID_ASC' | 'ID_DESC' | 'INTERVAL_ASC' @@ -8471,6 +10088,8 @@ export type ComputeLogModuleOrderBy = | 'PUBLIC_SCHEMA_NAME_DESC' | 'RETENTION_ASC' | 'RETENTION_DESC' + | 'ROLLUP_FUNCTION_NAME_ASC' + | 'ROLLUP_FUNCTION_NAME_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'SCOPE_ASC' @@ -8479,48 +10098,66 @@ export type ComputeLogModuleOrderBy = | 'USAGE_SUMMARY_TABLE_ID_DESC' | 'USAGE_SUMMARY_TABLE_NAME_ASC' | 'USAGE_SUMMARY_TABLE_NAME_DESC'; -export type ConfigSecretsUserModuleOrderBy = +export type ConnectedAccountsModuleOrderBy = | 'API_NAME_ASC' | 'API_NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'ENTITY_FIELD_ASC' - | 'ENTITY_FIELD_DESC' | 'ID_ASC' | 'ID_DESC' | 'NATURAL' + | 'OWNER_TABLE_ID_ASC' + | 'OWNER_TABLE_ID_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'PRIVATE_API_NAME_ASC' | 'PRIVATE_API_NAME_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'TABLE_ID_ASC' | 'TABLE_ID_DESC' | 'TABLE_NAME_ASC' | 'TABLE_NAME_DESC'; -export type ConnectedAccountsModuleOrderBy = +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' - | 'OWNER_TABLE_ID_ASC' - | 'OWNER_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' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_NAME_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,9 +10214,37 @@ 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' + | 'BOOTSTRAP_ACTOR_ID_ASC' + | 'BOOTSTRAP_ACTOR_ID_DESC' | 'BOOTSTRAP_ERROR_ASC' | 'BOOTSTRAP_ERROR_DESC' | 'BOOTSTRAP_STATUS_ASC' @@ -8628,8 +10293,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 +10431,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 +10541,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,25 +10586,69 @@ export type DomainModuleOrderBy = | 'SCHEMA_ID_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC'; -export type EmailsModuleOrderBy = +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' - | 'OWNER_TABLE_ID_ASC' - | 'OWNER_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' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'TABLE_ID_ASC' + | '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' + | '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' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'TABLE_ID_ASC' | 'TABLE_ID_DESC' | 'TABLE_NAME_ASC' | 'TABLE_NAME_DESC'; @@ -9036,8 +10745,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 +10763,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 +10800,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 +10828,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 +10913,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 +10961,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' @@ -9256,7 +10997,9 @@ export type FunctionModuleOrderBy = | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'SCOPE_ASC' - | 'SCOPE_DESC'; + | 'SCOPE_DESC' + | 'STORAGE_KEY_ASC' + | 'STORAGE_KEY_DESC'; export type GraphExecutionModuleOrderBy = | 'API_NAME_ASC' | 'API_NAME_DESC' @@ -9264,8 +11007,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 +11057,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 +11103,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' @@ -9397,82 +11140,80 @@ export type HierarchyModuleOrderBy = | 'SPRT_TABLE_NAME_DESC' | 'USERS_TABLE_ID_ASC' | 'USERS_TABLE_ID_DESC'; -export type HttpRouteModuleOrderBy = +export type I18NModuleOrderBy = | 'API_NAME_ASC' | 'API_NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' - | 'ENTITY_FIELD_ASC' - | 'ENTITY_FIELD_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' - | 'FUNCTION_MODULE_ID_ASC' - | 'FUNCTION_MODULE_ID_DESC' - | 'HTTP_ROUTES_TABLE_ID_ASC' - | 'HTTP_ROUTES_TABLE_ID_DESC' - | 'HTTP_ROUTES_TABLE_NAME_ASC' - | 'HTTP_ROUTES_TABLE_NAME_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' | 'PRIVATE_SCHEMA_ID_ASC' | 'PRIVATE_SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_NAME_ASC' - | 'PRIVATE_SCHEMA_NAME_DESC' - | 'PROVISIONS_ASC' - | 'PROVISIONS_DESC' - | 'PUBLIC_SCHEMA_NAME_ASC' - | 'PUBLIC_SCHEMA_NAME_DESC' - | 'RESOLVER_FUNCTION_NAME_ASC' - | 'RESOLVER_FUNCTION_NAME_DESC' - | 'RESOURCE_MODULE_ID_ASC' - | 'RESOURCE_MODULE_ID_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'STORAGE_MODULE_ID_ASC' - | 'STORAGE_MODULE_ID_DESC'; -export type I18NModuleOrderBy = + | 'SETTINGS_TABLE_ID_ASC' + | 'SETTINGS_TABLE_ID_DESC'; +export type IdentityProvidersModuleOrderBy = | 'API_NAME_ASC' | 'API_NAME_DESC' | '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' + | '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' - | 'SETTINGS_TABLE_ID_ASC' - | 'SETTINGS_TABLE_ID_DESC'; -export type IdentityProvidersModuleOrderBy = + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'TABLE_NAME_ASC' + | 'TABLE_NAME_DESC'; +export type ImageModuleOrderBy = | 'API_NAME_ASC' | 'API_NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'ENTITY_FIELD_ASC' | 'ENTITY_FIELD_DESC' | 'ENTITY_TABLE_ID_ASC' | 'ENTITY_TABLE_ID_DESC' | 'ID_ASC' | 'ID_DESC' + | 'IMAGES_TABLE_ID_ASC' + | 'IMAGES_TABLE_ID_DESC' + | 'IMAGES_TABLE_NAME_ASC' + | 'IMAGES_TABLE_NAME_DESC' + | 'IMAGE_GRANTS_TABLE_ID_ASC' + | 'IMAGE_GRANTS_TABLE_ID_DESC' + | 'IMAGE_GRANTS_TABLE_NAME_ASC' + | 'IMAGE_GRANTS_TABLE_NAME_DESC' | 'NATURAL' + | 'POLICIES_ASC' + | 'POLICIES_DESC' | 'PREFIX_ASC' | 'PREFIX_DESC' | 'PRIMARY_KEY_ASC' @@ -9483,27 +11224,29 @@ export type IdentityProvidersModuleOrderBy = | 'PRIVATE_SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_NAME_ASC' | 'PRIVATE_SCHEMA_NAME_DESC' + | 'PROVISIONS_ASC' + | 'PROVISIONS_DESC' | 'PUBLIC_SCHEMA_NAME_ASC' | 'PUBLIC_SCHEMA_NAME_DESC' + | 'REGISTRIES_TABLE_ID_ASC' + | 'REGISTRIES_TABLE_ID_DESC' + | 'REGISTRIES_TABLE_NAME_ASC' + | 'REGISTRIES_TABLE_NAME_DESC' + | 'REGISTRY_GRANTS_TABLE_ID_ASC' + | 'REGISTRY_GRANTS_TABLE_ID_DESC' + | 'REGISTRY_GRANTS_TABLE_NAME_ASC' + | 'REGISTRY_GRANTS_TABLE_NAME_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_NAME_DESC'; + | 'SCOPE_DESC'; export type InferenceLogModuleOrderBy = - | 'ACTOR_FK_TABLE_ID_ASC' - | 'ACTOR_FK_TABLE_ID_DESC' | 'API_NAME_ASC' | 'API_NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'ENTITY_FIELD_ASC' | 'ENTITY_FIELD_DESC' - | 'ENTITY_FK_TABLE_ID_ASC' - | 'ENTITY_FK_TABLE_ID_DESC' | 'ID_ASC' | 'ID_DESC' | 'INFERENCE_LOG_TABLE_ID_ASC' @@ -9529,6 +11272,8 @@ export type InferenceLogModuleOrderBy = | 'PUBLIC_SCHEMA_NAME_DESC' | 'RETENTION_ASC' | 'RETENTION_DESC' + | 'ROLLUP_FUNCTION_NAME_ASC' + | 'ROLLUP_FUNCTION_NAME_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'SCOPE_ASC' @@ -9641,6 +11386,42 @@ export type IntegrationProvidersModuleOrderBy = | 'TABLE_ID_DESC' | 'TABLE_NAME_ASC' | 'TABLE_NAME_DESC'; +export type InternalConfigModuleOrderBy = + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'INTERNAL_CONFIG_TABLE_ID_ASC' + | 'INTERNAL_CONFIG_TABLE_ID_DESC' + | 'INTERNAL_CONFIG_TABLE_NAME_ASC' + | 'INTERNAL_CONFIG_TABLE_NAME_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_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC'; export type InternalSecretsModuleOrderBy = | 'API_NAME_ASC' | 'API_NAME_DESC' @@ -9719,6 +11500,46 @@ export type InvitesModuleOrderBy = | 'SUBMIT_INVITE_CODE_FUNCTION_DESC' | 'USERS_TABLE_ID_ASC' | 'USERS_TABLE_ID_DESC'; +export type K8sAdmissionModuleOrderBy = + | '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' + | 'K8S_RESOURCE_KINDS_TABLE_ID_ASC' + | 'K8S_RESOURCE_KINDS_TABLE_ID_DESC' + | 'K8S_SPEC_RULES_TABLE_ID_ASC' + | 'K8S_SPEC_RULES_TABLE_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 LimitsModuleOrderBy = | 'ACTOR_TABLE_ID_ASC' | 'ACTOR_TABLE_ID_DESC' @@ -9764,6 +11585,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' @@ -9797,6 +11620,58 @@ export type LimitsModuleOrderBy = | 'TABLE_ID_DESC' | 'TABLE_NAME_ASC' | 'TABLE_NAME_DESC'; +export type MachineModuleOrderBy = + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'MACHINES_TABLE_ID_ASC' + | 'MACHINES_TABLE_ID_DESC' + | 'MACHINES_TABLE_NAME_ASC' + | 'MACHINES_TABLE_NAME_DESC' + | 'MACHINE_MESSAGES_TABLE_ID_ASC' + | 'MACHINE_MESSAGES_TABLE_ID_DESC' + | 'MACHINE_MESSAGES_TABLE_NAME_ASC' + | 'MACHINE_MESSAGES_TABLE_NAME_DESC' + | 'MACHINE_SESSIONS_TABLE_ID_ASC' + | 'MACHINE_SESSIONS_TABLE_ID_DESC' + | 'MACHINE_SESSIONS_TABLE_NAME_ASC' + | 'MACHINE_SESSIONS_TABLE_NAME_DESC' + | 'NATURAL' + | 'PARTITION_INTERVAL_ASC' + | 'PARTITION_INTERVAL_DESC' + | 'POLICIES_ASC' + | 'POLICIES_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'PREMAKE_ASC' + | 'PREMAKE_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_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'RETENTION_ASC' + | 'RETENTION_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC'; export type MembershipTypesModuleOrderBy = | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' @@ -9824,12 +11699,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 +11756,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 +11777,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' @@ -9910,6 +11787,8 @@ export type MerkleStoreModuleOrderBy = | 'DATABASE_ID_DESC' | 'ENTITY_FIELD_ASC' | 'ENTITY_FIELD_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' | 'FUNCTION_PREFIX_ASC' | 'FUNCTION_PREFIX_DESC' | 'ID_ASC' @@ -9917,8 +11796,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 +11821,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 +11865,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 +11910,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' @@ -10053,6 +11958,14 @@ export type PagesModuleOrderBy = | 'POLICIES_DESC' | 'PREFIX_ASC' | 'PREFIX_DESC' + | 'PREVIEW_COMMIT_FUNCTION_NAME_ASC' + | 'PREVIEW_COMMIT_FUNCTION_NAME_DESC' + | 'PREVIEW_SET_FUNCTION_NAME_ASC' + | 'PREVIEW_SET_FUNCTION_NAME_DESC' + | 'PREVIEW_TOKEN_MINT_FUNCTION_NAME_ASC' + | 'PREVIEW_TOKEN_MINT_FUNCTION_NAME_DESC' + | 'PREVIEW_TOKEN_VERIFIER_FUNCTION_NAME_ASC' + | 'PREVIEW_TOKEN_VERIFIER_FUNCTION_NAME_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'PRIVATE_API_NAME_ASC' @@ -10067,6 +11980,8 @@ export type PagesModuleOrderBy = | 'PUBLIC_SCHEMA_ID_DESC' | 'PUBLIC_SCHEMA_NAME_ASC' | 'PUBLIC_SCHEMA_NAME_DESC' + | 'RELEASE_MANIFEST_FUNCTION_NAME_ASC' + | 'RELEASE_MANIFEST_FUNCTION_NAME_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC' | 'SITES_TABLE_ID_ASC' @@ -10075,77 +11990,29 @@ 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' +export type PhoneNumbersModuleOrderBy = | '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' + | 'OWNER_TABLE_ID_ASC' + | 'OWNER_TABLE_ID_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' - | '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' - | 'PRIVATE_API_NAME_ASC' - | 'PRIVATE_API_NAME_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_NAME_DESC'; -export type PlansModuleOrderBy = +export type PlansModuleOrderBy = | 'API_NAME_ASC' | 'API_NAME_DESC' | 'APPLY_BILLING_PLAN_FUNCTION_ASC' @@ -10221,6 +12088,8 @@ export type PrincipalAuthModuleOrderBy = | 'PRINCIPAL_ENTITIES_TABLE_ID_DESC' | 'PRINCIPAL_SCOPE_OVERRIDES_TABLE_ID_ASC' | 'PRINCIPAL_SCOPE_OVERRIDES_TABLE_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' | 'REVOKE_ORG_API_KEY_FUNCTION_ASC' | 'REVOKE_ORG_API_KEY_FUNCTION_DESC' | 'SCHEMA_ID_ASC' @@ -10229,6 +12098,8 @@ export type PrincipalAuthModuleOrderBy = | 'SESSIONS_TABLE_ID_DESC' | 'SESSION_CREDENTIALS_TABLE_ID_ASC' | 'SESSION_CREDENTIALS_TABLE_ID_DESC' + | 'SWEEP_EXPIRED_PRINCIPALS_FUNCTION_ASC' + | 'SWEEP_EXPIRED_PRINCIPALS_FUNCTION_DESC' | 'USERS_TABLE_ID_ASC' | 'USERS_TABLE_ID_DESC'; export type ProfilesModuleOrderBy = @@ -10236,6 +12107,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 +12119,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 +12134,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 +12146,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 +12167,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' @@ -10377,6 +12252,56 @@ export type RealtimeModuleOrderBy = | 'SOURCE_REGISTRY_TABLE_ID_DESC' | 'SUBSCRIPTIONS_SCHEMA_ID_ASC' | 'SUBSCRIPTIONS_SCHEMA_ID_DESC'; +export type RefusalLogModuleOrderBy = + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'LOG_INTERVAL_ASC' + | 'LOG_INTERVAL_DESC' + | 'LOG_PREMAKE_ASC' + | 'LOG_PREMAKE_DESC' + | 'LOG_RETENTION_ASC' + | 'LOG_RETENTION_DESC' + | 'LOG_TABLE_ID_ASC' + | 'LOG_TABLE_ID_DESC' + | 'LOG_TABLE_NAME_ASC' + | 'LOG_TABLE_NAME_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' + | 'RECORD_REFUSALS_FUNCTION_ASC' + | 'RECORD_REFUSALS_FUNCTION_DESC' + | 'ROLLUP_REFUSAL_USAGE_SUMMARY_FUNCTION_ASC' + | 'ROLLUP_REFUSAL_USAGE_SUMMARY_FUNCTION_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'SUMMARY_INTERVAL_ASC' + | 'SUMMARY_INTERVAL_DESC' + | 'SUMMARY_PREMAKE_ASC' + | 'SUMMARY_PREMAKE_DESC' + | 'SUMMARY_RETENTION_ASC' + | 'SUMMARY_RETENTION_DESC' + | 'SUMMARY_TABLE_ID_ASC' + | 'SUMMARY_TABLE_ID_DESC' + | 'SUMMARY_TABLE_NAME_ASC' + | 'SUMMARY_TABLE_NAME_DESC'; export type RelationProvisionOrderBy = | 'API_REQUIRED_ASC' | 'API_REQUIRED_DESC' @@ -10429,13 +12354,101 @@ export type RelationProvisionOrderBy = | 'TARGET_TABLE_ID_DESC' | 'USE_COMPOSITE_KEY_ASC' | 'USE_COMPOSITE_KEY_DESC'; +export type RepositoryModuleOrderBy = + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'BUILDS_TABLE_ID_ASC' + | 'BUILDS_TABLE_ID_DESC' + | 'BUILDS_TABLE_NAME_ASC' + | 'BUILDS_TABLE_NAME_DESC' + | 'BUILD_STEPS_TABLE_ID_ASC' + | 'BUILD_STEPS_TABLE_ID_DESC' + | 'BUILD_STEPS_TABLE_NAME_ASC' + | 'BUILD_STEPS_TABLE_NAME_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'HAS_ATTACHMENTS_ASC' + | 'HAS_ATTACHMENTS_DESC' + | 'HAS_BUILDS_ASC' + | 'HAS_BUILDS_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' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' + | 'PROPOSALS_TABLE_ID_ASC' + | 'PROPOSALS_TABLE_ID_DESC' + | 'PROPOSALS_TABLE_NAME_ASC' + | 'PROPOSALS_TABLE_NAME_DESC' + | 'PROPOSAL_COMMENTS_TABLE_ID_ASC' + | 'PROPOSAL_COMMENTS_TABLE_ID_DESC' + | 'PROPOSAL_COMMENTS_TABLE_NAME_ASC' + | 'PROPOSAL_COMMENTS_TABLE_NAME_DESC' + | 'PROPOSAL_FILE_VIEWS_TABLE_ID_ASC' + | 'PROPOSAL_FILE_VIEWS_TABLE_ID_DESC' + | 'PROPOSAL_FILE_VIEWS_TABLE_NAME_ASC' + | 'PROPOSAL_FILE_VIEWS_TABLE_NAME_DESC' + | 'PROPOSAL_REACTIONS_TABLE_ID_ASC' + | 'PROPOSAL_REACTIONS_TABLE_ID_DESC' + | 'PROPOSAL_REACTIONS_TABLE_NAME_ASC' + | 'PROPOSAL_REACTIONS_TABLE_NAME_DESC' + | 'PROPOSAL_REVIEWS_TABLE_ID_ASC' + | 'PROPOSAL_REVIEWS_TABLE_ID_DESC' + | 'PROPOSAL_REVIEWS_TABLE_NAME_ASC' + | 'PROPOSAL_REVIEWS_TABLE_NAME_DESC' + | 'PROVISIONS_ASC' + | 'PROVISIONS_DESC' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'REPOSITORIES_TABLE_ID_ASC' + | 'REPOSITORIES_TABLE_ID_DESC' + | 'REPOSITORIES_TABLE_NAME_ASC' + | 'REPOSITORIES_TABLE_NAME_DESC' + | 'REPOSITORY_EVENTS_TABLE_ID_ASC' + | 'REPOSITORY_EVENTS_TABLE_ID_DESC' + | 'REPOSITORY_EVENTS_TABLE_NAME_ASC' + | 'REPOSITORY_EVENTS_TABLE_NAME_DESC' + | 'REPOSITORY_REQUIRED_CHECKS_TABLE_ID_ASC' + | 'REPOSITORY_REQUIRED_CHECKS_TABLE_ID_DESC' + | 'REPOSITORY_REQUIRED_CHECKS_TABLE_NAME_ASC' + | 'REPOSITORY_REQUIRED_CHECKS_TABLE_NAME_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'SEARCH_ASC' + | 'SEARCH_DESC' + | 'WORKFLOWS_TABLE_ID_ASC' + | 'WORKFLOWS_TABLE_ID_DESC' + | 'WORKFLOWS_TABLE_NAME_ASC' + | 'WORKFLOWS_TABLE_NAME_DESC'; export type ResourceModuleOrderBy = | 'API_NAME_ASC' | 'API_NAME_DESC' + | 'BUILDER_BINDINGS_TABLE_ID_ASC' + | 'BUILDER_BINDINGS_TABLE_ID_DESC' + | 'BUILDER_BINDINGS_TABLE_NAME_ASC' + | 'BUILDER_BINDINGS_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' @@ -10465,6 +12478,10 @@ export type ResourceModuleOrderBy = | 'PROVISIONS_DESC' | 'PUBLIC_SCHEMA_NAME_ASC' | 'PUBLIC_SCHEMA_NAME_DESC' + | 'REGISTRY_BINDINGS_TABLE_ID_ASC' + | 'REGISTRY_BINDINGS_TABLE_ID_DESC' + | 'REGISTRY_BINDINGS_TABLE_NAME_ASC' + | 'REGISTRY_BINDINGS_TABLE_NAME_DESC' | 'REQUIREMENTS_STATE_VIEW_NAME_ASC' | 'REQUIREMENTS_STATE_VIEW_NAME_DESC' | 'RESOLVED_REQUIREMENTS_VIEW_NAME_ASC' @@ -10538,12 +12555,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' @@ -10573,6 +12594,10 @@ export type RouteModuleOrderBy = | 'PROVISIONS_DESC' | 'PUBLIC_SCHEMA_NAME_ASC' | 'PUBLIC_SCHEMA_NAME_DESC' + | 'REDIRECTS_TABLE_ID_ASC' + | 'REDIRECTS_TABLE_ID_DESC' + | 'REDIRECTS_TABLE_NAME_ASC' + | 'REDIRECTS_TABLE_NAME_DESC' | 'RESOLVER_FUNCTION_NAME_ASC' | 'RESOLVER_FUNCTION_NAME_DESC' | 'ROUTES_TABLE_ID_ASC' @@ -10586,7 +12611,25 @@ export type RouteModuleOrderBy = | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'SCOPE_ASC' - | 'SCOPE_DESC'; + | 'SCOPE_DESC' + | 'SERVING_SITE_FIELD_ASC' + | 'SERVING_SITE_FIELD_DESC' + | 'STORAGE_KEY_ASC' + | 'STORAGE_KEY_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' @@ -10596,11 +12639,15 @@ export type SecureTableProvisionOrderBy = | 'GRANTS_DESC' | 'ID_ASC' | 'ID_DESC' + | 'MODULE_ASC' + | 'MODULE_DESC' | 'NATURAL' | 'NODES_ASC' | 'NODES_DESC' | 'OUT_FIELDS_ASC' | 'OUT_FIELDS_DESC' + | 'OWNS_ASC' + | 'OWNS_DESC' | 'POLICIES_ASC' | 'POLICIES_DESC' | 'PRIMARY_KEY_ASC' @@ -10662,8 +12709,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' @@ -10715,6 +12762,10 @@ export type SiteSurfaceModuleOrderBy = | 'SITE_MODULES_TABLE_ID_DESC' | 'SITE_MODULES_TABLE_NAME_ASC' | 'SITE_MODULES_TABLE_NAME_DESC' + | 'SITE_RELEASES_TABLE_ID_ASC' + | 'SITE_RELEASES_TABLE_ID_DESC' + | 'SITE_RELEASES_TABLE_NAME_ASC' + | 'SITE_RELEASES_TABLE_NAME_DESC' | 'SITE_THEMES_TABLE_ID_ASC' | 'SITE_THEMES_TABLE_ID_DESC' | 'SITE_THEMES_TABLE_NAME_ASC' @@ -10722,18 +12773,16 @@ export type SiteSurfaceModuleOrderBy = | 'SITE_WEB_CONFIG_TABLE_ID_ASC' | 'SITE_WEB_CONFIG_TABLE_ID_DESC' | 'SITE_WEB_CONFIG_TABLE_NAME_ASC' - | 'SITE_WEB_CONFIG_TABLE_NAME_DESC'; + | 'SITE_WEB_CONFIG_TABLE_NAME_DESC' + | 'STORAGE_KEY_ASC' + | 'STORAGE_KEY_DESC'; export type StorageLogModuleOrderBy = - | 'ACTOR_FK_TABLE_ID_ASC' - | 'ACTOR_FK_TABLE_ID_DESC' | 'API_NAME_ASC' | 'API_NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'ENTITY_FIELD_ASC' | 'ENTITY_FIELD_DESC' - | 'ENTITY_FK_TABLE_ID_ASC' - | 'ENTITY_FK_TABLE_ID_DESC' | 'ID_ASC' | 'ID_DESC' | 'INTERVAL_ASC' @@ -10755,6 +12804,8 @@ export type StorageLogModuleOrderBy = | 'PUBLIC_SCHEMA_NAME_DESC' | 'RETENTION_ASC' | 'RETENTION_DESC' + | 'ROLLUP_FUNCTION_NAME_ASC' + | 'ROLLUP_FUNCTION_NAME_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'SCOPE_ASC' @@ -10784,10 +12835,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' @@ -10816,6 +12867,8 @@ export type StorageModuleOrderBy = | 'HAS_VERSIONING_DESC' | 'ID_ASC' | 'ID_DESC' + | 'KEY_ASC' + | 'KEY_DESC' | 'MAX_BULK_FILES_ASC' | 'MAX_BULK_FILES_DESC' | 'MAX_BULK_TOTAL_SIZE_ASC' @@ -10854,16 +12907,12 @@ export type StorageModuleOrderBy = | 'UPLOAD_URL_EXPIRY_SECONDS_ASC' | 'UPLOAD_URL_EXPIRY_SECONDS_DESC'; export type TransferLogModuleOrderBy = - | 'ACTOR_FK_TABLE_ID_ASC' - | 'ACTOR_FK_TABLE_ID_DESC' | 'API_NAME_ASC' | 'API_NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'ENTITY_FIELD_ASC' | 'ENTITY_FIELD_DESC' - | 'ENTITY_FK_TABLE_ID_ASC' - | 'ENTITY_FK_TABLE_ID_DESC' | 'ID_ASC' | 'ID_DESC' | 'INTERVAL_ASC' @@ -10885,6 +12934,8 @@ export type TransferLogModuleOrderBy = | 'PUBLIC_SCHEMA_NAME_DESC' | 'RETENTION_ASC' | 'RETENTION_DESC' + | 'ROLLUP_FUNCTION_NAME_ASC' + | 'ROLLUP_FUNCTION_NAME_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'SCOPE_ASC' @@ -10925,10 +12976,14 @@ export type UserAuthModuleOrderBy = | 'PRIMARY_KEY_DESC' | 'PRIVATE_API_NAME_ASC' | 'PRIVATE_API_NAME_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' | 'REQUEST_CROSS_ORIGIN_TOKEN_FUNCTION_ASC' | 'REQUEST_CROSS_ORIGIN_TOKEN_FUNCTION_DESC' | 'RESET_PASSWORD_FUNCTION_ASC' | 'RESET_PASSWORD_FUNCTION_DESC' + | 'REVOKE_SESSION_TREE_FUNCTION_ASC' + | 'REVOKE_SESSION_TREE_FUNCTION_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'SECRETS_TABLE_ID_ASC' @@ -10951,6 +13006,8 @@ export type UserAuthModuleOrderBy = | 'SIGN_OUT_FUNCTION_DESC' | 'SIGN_UP_FUNCTION_ASC' | 'SIGN_UP_FUNCTION_DESC' + | 'SWEEP_EXPIRED_SESSIONS_FUNCTION_ASC' + | 'SWEEP_EXPIRED_SESSIONS_FUNCTION_DESC' | 'USERS_TABLE_ID_ASC' | 'USERS_TABLE_ID_DESC' | 'VERIFY_EMAIL_FUNCTION_ASC' @@ -10993,6 +13050,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 +13169,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,12 +13222,18 @@ export interface CreateAgentModuleInput { agentTableName?: string; apiName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; + defaultVisibility?: string; entityField?: string; entityTableId?: string; + eventTableId?: string; + eventTableName?: string; hasAgents?: boolean; + hasAttachments?: boolean; hasPlans?: boolean; + hasRepositoryResources?: boolean; hasResources?: boolean; + hasRuns?: boolean; messageTableId?: string; messageTableName?: string; personaTableId?: string; @@ -11168,16 +13249,21 @@ export interface CreateAgentModuleInput { promptsTableName?: string; provisions?: Record; publicSchemaName?: string; + resourceRepositoryTableId?: string; + resourceRepositoryTableName?: string; resourceTableId?: string; resourceTableName?: string; resources?: Record; + runTableId?: string; + runTableName?: string; schemaId?: string; scope: string; - shared?: boolean; taskTableId?: string; taskTableName?: string; threadTableId?: string; threadTableName?: string; + workspaceTableId?: string; + workspaceTableName?: string; }; } export interface AgentModulePatch { @@ -11185,12 +13271,18 @@ export interface AgentModulePatch { agentTableName?: string | null; apiName?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; + defaultVisibility?: string | null; entityField?: string | null; entityTableId?: string | null; + eventTableId?: string | null; + eventTableName?: string | null; hasAgents?: boolean | null; + hasAttachments?: boolean | null; hasPlans?: boolean | null; + hasRepositoryResources?: boolean | null; hasResources?: boolean | null; + hasRuns?: boolean | null; messageTableId?: string | null; messageTableName?: string | null; personaTableId?: string | null; @@ -11206,16 +13298,21 @@ export interface AgentModulePatch { promptsTableName?: string | null; provisions?: Record | null; publicSchemaName?: string | null; + resourceRepositoryTableId?: string | null; + resourceRepositoryTableName?: string | null; resourceTableId?: string | null; resourceTableName?: string | null; resources?: Record | null; + runTableId?: string | null; + runTableName?: string | null; schemaId?: string | null; scope?: string | null; - shared?: boolean | null; taskTableId?: string | null; taskTableName?: string | null; threadTableId?: string | null; threadTableName?: string | null; + workspaceTableId?: string | null; + workspaceTableName?: string | null; } export interface UpdateAgentModuleInput { clientMutationId?: string; @@ -11240,7 +13337,7 @@ export interface CreateApiSurfaceModuleInput { corsSettingsTableId?: string; corsSettingsTableName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; policies?: Record; @@ -11264,7 +13361,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; @@ -11290,11 +13387,12 @@ export interface CreateAppModuleInput { apiName?: string; appComponentsTableId?: string; appComponentsTableName?: string; + appStoreIdentitiesTableName?: string; appsTableId?: string; appsTableName?: string; catalogModuleId?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; policies?: Record; @@ -11312,11 +13410,12 @@ export interface AppModulePatch { apiName?: string | null; appComponentsTableId?: string | null; appComponentsTableName?: string | null; + appStoreIdentitiesTableName?: string | null; appsTableId?: string | null; 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 +13444,8 @@ export interface CreateBillingModuleInput { balancesTableId?: string; balancesTableName?: string; databaseId: string; + defaultCapabilities?: string[]; defaultMeterCatalog?: Record; - defaultPermissions?: string[]; ledgerTableId?: string; ledgerTableName?: string; meterCreditsTableId?: string; @@ -11375,8 +13474,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; @@ -11411,18 +13510,33 @@ export interface DeleteBillingModuleInput { export interface CreateBillingProviderModuleInput { clientMutationId?: string; billingProviderModule: { + activatePlanSubscriptionFunction?: string; apiName?: string; billingCustomersTableId?: string; billingCustomersTableName?: string; + billingDisputesTableId?: string; + billingDisputesTableName?: 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; + getActivePlanPricingFunction?: string; + getBillingCustomerFunction?: string; + getBillingPriceFunction?: string; + getBillingProductFunction?: string; + getBillingSubscriptionFunction?: string; + getFallbackFreePlanFunction?: string; + listPendingUsageSyncFunction?: string; + markUsageSyncedFunction?: string; prefix?: string; pricesTableId?: string; privateApiName?: string; @@ -11430,23 +13544,46 @@ export interface CreateBillingProviderModuleInput { processBillingEventFunction?: string; productsTableId?: string; provider?: string; + recordDisputeFunction?: string; + recordRefundFunction?: string; schemaId?: string; subscriptionsTableId?: string; + sweepOverdueSubscriptionsFunction?: string; + upsertBillingCustomerFunction?: string; + upsertBillingPriceFunction?: string; + upsertBillingProductFunction?: string; + upsertBillingSubscriptionFunction?: string; + upsertInvoiceFunction?: string; }; } export interface BillingProviderModulePatch { + activatePlanSubscriptionFunction?: string | null; apiName?: string | null; billingCustomersTableId?: string | null; billingCustomersTableName?: string | null; + billingDisputesTableId?: string | null; + billingDisputesTableName?: 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; + getActivePlanPricingFunction?: string | null; + getBillingCustomerFunction?: string | null; + getBillingPriceFunction?: string | null; + getBillingProductFunction?: string | null; + getBillingSubscriptionFunction?: string | null; + getFallbackFreePlanFunction?: string | null; + listPendingUsageSyncFunction?: string | null; + markUsageSyncedFunction?: string | null; prefix?: string | null; pricesTableId?: string | null; privateApiName?: string | null; @@ -11454,8 +13591,16 @@ export interface BillingProviderModulePatch { processBillingEventFunction?: string | null; productsTableId?: string | null; provider?: string | null; + recordDisputeFunction?: string | null; + recordRefundFunction?: string | null; schemaId?: string | null; subscriptionsTableId?: string | null; + sweepOverdueSubscriptionsFunction?: string | null; + upsertBillingCustomerFunction?: string | null; + upsertBillingPriceFunction?: string | null; + upsertBillingProductFunction?: string | null; + upsertBillingSubscriptionFunction?: string | null; + upsertInvoiceFunction?: string | null; } export interface UpdateBillingProviderModuleInput { clientMutationId?: string; @@ -11582,29 +13727,97 @@ export interface DeleteBlueprintTemplateInput { clientMutationId?: string; id: string; } +export interface CreateCapabilitiesModuleInput { + clientMutationId?: string; + capabilitiesModule: { + 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 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; + appStoreIdentitiesTableId?: string; + appStoreIdentitiesTableName?: 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; functionsTableId?: string; functionsTableName?: string; + imagesTableId?: string; + imagesTableName?: string; + managedDomainsTableId?: string; + managedDomainsTableName?: string; namespacesTableId?: string; namespacesTableName?: string; policies?: Record; privateApiName?: string; provisions?: Record; publicSchemaName?: string; + redirectsTableId?: string; + redirectsTableName?: string; resourceDefinitionsTableId?: string; resourceDefinitionsTableName?: string; resourceInstallationsTableId?: string; @@ -11629,23 +13842,33 @@ export interface CatalogModulePatch { apiName?: string | null; apisTableId?: string | null; apisTableName?: string | null; + appStoreIdentitiesTableId?: string | null; + appStoreIdentitiesTableName?: 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; functionsTableId?: string | null; functionsTableName?: string | null; + imagesTableId?: string | null; + imagesTableName?: string | null; + managedDomainsTableId?: string | null; + managedDomainsTableName?: string | null; namespacesTableId?: string | null; namespacesTableName?: string | null; policies?: Record | null; privateApiName?: string | null; provisions?: Record | null; publicSchemaName?: string | null; + redirectsTableId?: string | null; + redirectsTableName?: string | null; resourceDefinitionsTableId?: string | null; resourceDefinitionsTableName?: string | null; resourceInstallationsTableId?: string | null; @@ -11674,16 +13897,82 @@ export interface DeleteCatalogModuleInput { clientMutationId?: string; id: string; } +export interface CreateClusterModuleInput { + clientMutationId?: string; + clusterModule: { + apiName?: string; + clusterEventsTableId?: string; + clusterEventsTableName?: string; + clustersTableId?: string; + clustersTableName?: string; + databaseId: string; + databasePlacementsTableId?: string; + databasePlacementsTableName?: string; + databaseServersTableId?: string; + databaseServersTableName?: string; + defaultCapabilities?: string[]; + entityField?: string; + partitionInterval?: string; + physicalDatabasesTableId?: string; + physicalDatabasesTableName?: string; + policies?: Record; + prefix?: string; + premake?: number; + privateApiName?: string; + privateSchemaId?: string; + privateSchemaName?: string; + provisions?: Record; + publicSchemaName?: string; + retention?: string; + schemaId?: string; + scope?: string; + }; +} +export interface ClusterModulePatch { + apiName?: string | null; + clusterEventsTableId?: string | null; + clusterEventsTableName?: string | null; + clustersTableId?: string | null; + clustersTableName?: string | null; + databaseId?: string | null; + databasePlacementsTableId?: string | null; + databasePlacementsTableName?: string | null; + databaseServersTableId?: string | null; + databaseServersTableName?: string | null; + defaultCapabilities?: string[] | null; + entityField?: string | null; + partitionInterval?: string | null; + physicalDatabasesTableId?: string | null; + physicalDatabasesTableName?: string | null; + policies?: Record | null; + prefix?: string | null; + premake?: number | null; + privateApiName?: string | null; + privateSchemaId?: string | null; + privateSchemaName?: string | null; + provisions?: Record | null; + publicSchemaName?: string | null; + retention?: string | null; + schemaId?: string | null; + scope?: string | null; +} +export interface UpdateClusterModuleInput { + clientMutationId?: string; + id: string; + clusterModulePatch: ClusterModulePatch; +} +export interface DeleteClusterModuleInput { + clientMutationId?: string; + id: string; +} export interface CreateComputeLogModuleInput { clientMutationId?: string; computeLogModule: { - actorFkTableId?: string; apiName?: string; computeLogTableId?: string; computeLogTableName?: string; databaseId: string; entityField?: string; - entityFkTableId?: string; interval?: string; prefix?: string; premake?: number; @@ -11692,6 +13981,7 @@ export interface CreateComputeLogModuleInput { privateSchemaName?: string; publicSchemaName?: string; retention?: string; + rollupFunctionName?: string; schemaId?: string; scope: string; usageSummaryTableId?: string; @@ -11699,13 +13989,11 @@ export interface CreateComputeLogModuleInput { }; } export interface ComputeLogModulePatch { - actorFkTableId?: string | null; apiName?: string | null; computeLogTableId?: string | null; computeLogTableName?: string | null; databaseId?: string | null; entityField?: string | null; - entityFkTableId?: string | null; interval?: string | null; prefix?: string | null; premake?: number | null; @@ -11714,6 +14002,7 @@ export interface ComputeLogModulePatch { privateSchemaName?: string | null; publicSchemaName?: string | null; retention?: string | null; + rollupFunctionName?: string | null; schemaId?: string | null; scope?: string | null; usageSummaryTableId?: string | null; @@ -11728,65 +14017,81 @@ export interface DeleteComputeLogModuleInput { clientMutationId?: string; id: string; } -export interface CreateConfigSecretsUserModuleInput { +export interface CreateConnectedAccountsModuleInput { clientMutationId?: string; - configSecretsUserModule: { + connectedAccountsModule: { apiName?: string; databaseId: string; - entityField?: string; + ownerTableId?: string; privateApiName?: string; + privateSchemaId?: string; schemaId?: string; tableId?: string; - tableName?: string; + tableName: string; }; } -export interface ConfigSecretsUserModulePatch { +export interface ConnectedAccountsModulePatch { apiName?: string | null; databaseId?: string | null; - entityField?: string | null; + ownerTableId?: string | null; privateApiName?: string | null; + privateSchemaId?: string | null; schemaId?: string | null; tableId?: string | null; tableName?: string | null; } -export interface UpdateConfigSecretsUserModuleInput { +export interface UpdateConnectedAccountsModuleInput { clientMutationId?: string; id: string; - configSecretsUserModulePatch: ConfigSecretsUserModulePatch; + connectedAccountsModulePatch: ConnectedAccountsModulePatch; } -export interface DeleteConfigSecretsUserModuleInput { +export interface DeleteConnectedAccountsModuleInput { clientMutationId?: string; id: string; } -export interface CreateConnectedAccountsModuleInput { +export interface CreateContentPresetModuleInput { clientMutationId?: string; - connectedAccountsModule: { + contentPresetModule: { apiName?: string; + contentPresetsTableId?: string; databaseId: string; - ownerTableId?: string; + entityTableId?: string; + merkleStoreModuleId: string; + policies?: Record; + prefix: string; privateApiName?: string; privateSchemaId?: string; - schemaId?: string; - tableId?: string; - tableName: string; + privateSchemaName?: string; + provisions?: Record; + publicSchemaId?: string; + publicSchemaName?: string; + scope: string; + storeName: string; }; } -export interface ConnectedAccountsModulePatch { +export interface ContentPresetModulePatch { apiName?: string | null; + contentPresetsTableId?: string | null; databaseId?: string | null; - ownerTableId?: string | null; + entityTableId?: string | null; + merkleStoreModuleId?: string | null; + policies?: Record | null; + prefix?: string | null; privateApiName?: string | null; privateSchemaId?: string | null; - schemaId?: string | null; - tableId?: string | null; - tableName?: string | null; + privateSchemaName?: string | null; + provisions?: Record | null; + publicSchemaId?: string | null; + publicSchemaName?: string | null; + scope?: string | null; + storeName?: string | null; } -export interface UpdateConnectedAccountsModuleInput { +export interface UpdateContentPresetModuleInput { clientMutationId?: string; id: string; - connectedAccountsModulePatch: ConnectedAccountsModulePatch; + contentPresetModulePatch: ContentPresetModulePatch; } -export interface DeleteConnectedAccountsModuleInput { +export interface DeleteContentPresetModuleInput { clientMutationId?: string; id: string; } @@ -11866,11 +14171,48 @@ export interface DeleteCryptoAuthModuleInput { clientMutationId?: string; id: string; } -export interface CreateDatabaseProvisionModuleInput { +export interface CreateDataCapabilitiesFieldInput { clientMutationId?: string; - databaseProvisionModule: { - async?: boolean; - bootstrapError?: 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: { + async?: boolean; + bootstrapActorId?: string; + bootstrapError?: string; bootstrapStatus?: string; bootstrapUser?: boolean; completedAt?: string; @@ -11889,6 +14231,7 @@ export interface CreateDatabaseProvisionModuleInput { } export interface DatabaseProvisionModulePatch { async?: boolean | null; + bootstrapActorId?: string | null; bootstrapError?: string | null; bootstrapStatus?: string | null; bootstrapUser?: boolean | null; @@ -11921,7 +14264,7 @@ export interface CreateDatabaseSettingsModuleInput { databaseId: string; databaseSettingsTableId?: string; databaseSettingsTableName?: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; policies?: Record; @@ -11944,7 +14287,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 +14432,7 @@ export interface CreateDbUsageModuleInput { collectDbQueryStatsFunction?: string; collectDbTableStatsFunction?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; interval?: string; prefix?: string; @@ -12118,7 +14461,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 +14583,7 @@ export interface CreateDomainModuleInput { apiName?: string; catalogModuleId?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; domainEventsTableId?: string; domainEventsTableName?: string; domainVerificationsTableId?: string; @@ -12266,7 +14609,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 +14639,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 +14825,7 @@ export interface CreateEventsModuleInput { actorTableId?: string; apiName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; eventAggregatesTableId?: string; @@ -12437,6 +14834,7 @@ export interface CreateEventsModuleInput { eventTypesTableName?: string; eventsTableId?: string; eventsTableName?: string; + expireGrants?: string; grantAchievement?: string; interval?: string; levelAchieved?: string; @@ -12452,9 +14850,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 +14864,9 @@ export interface CreateEventsModuleInput { tgEventBool?: string; tgEventToggle?: string; tgEventToggleBool?: string; + tgLevelGrantSync?: string; tgUpdateAggregates?: string; + trustLadder?: Record; upsertAggregate?: string; }; } @@ -12474,7 +14876,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 +14885,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 +14901,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 +14915,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 +14929,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 +14989,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 +15024,7 @@ export interface CreateFunctionInvocationModuleInput { attemptsTableId?: string; attemptsTableName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; executionLogsTableId?: string; @@ -12608,7 +15047,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 +15081,7 @@ export interface CreateFunctionModuleInput { bindingsTableName?: string; capabilityBindingsTableId?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; definitionsTableId?: string; definitionsTableName?: string; entityField?: string; @@ -12658,6 +15097,7 @@ export interface CreateFunctionModuleInput { schedulesTableId?: string; schemaId?: string; scope: string; + storageKey?: string; }; } export interface FunctionModulePatch { @@ -12666,7 +15106,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; @@ -12682,6 +15122,7 @@ export interface FunctionModulePatch { schedulesTableId?: string | null; schemaId?: string | null; scope?: string | null; + storageKey?: string | null; } export interface UpdateFunctionModuleInput { clientMutationId?: string; @@ -12697,7 +15138,7 @@ export interface CreateGraphExecutionModuleInput { graphExecutionModule: { apiName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; executionsTableId?: string; @@ -12721,7 +15162,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 +15196,7 @@ export interface CreateGraphModuleInput { graphModule: { apiName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; graphsTableId?: string; @@ -12774,7 +15215,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 +15247,7 @@ export interface CreateHierarchyModuleInput { chartEdgesTableId?: string; chartEdgesTableName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId: string; getManagersFunction?: string; @@ -12830,7 +15271,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; @@ -12856,140 +15297,142 @@ export interface DeleteHierarchyModuleInput { clientMutationId?: string; id: string; } -export interface CreateHttpRouteModuleInput { +export interface CreateI18NModuleInput { clientMutationId?: string; - httpRouteModule: { + i18NModule: { apiName?: string; databaseId: string; - defaultPermissions?: string[]; - entityField?: string; - entityTableId?: string; - functionModuleId?: string; - httpRoutesTableId?: string; - httpRoutesTableName?: string; - policies?: Record; - prefix?: string; privateApiName?: string; privateSchemaId?: string; - privateSchemaName?: string; - provisions?: Record; - publicSchemaName?: string; - resolverFunctionName?: string; - resourceModuleId?: string; schemaId?: string; - scope: string; - storageModuleId?: string; + settingsTableId?: string; }; } -export interface HttpRouteModulePatch { +export interface I18NModulePatch { apiName?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; - entityField?: string | null; - entityTableId?: string | null; - functionModuleId?: string | null; - httpRoutesTableId?: string | null; - httpRoutesTableName?: string | null; - policies?: Record | null; - prefix?: string | null; privateApiName?: string | null; privateSchemaId?: string | null; - privateSchemaName?: string | null; - provisions?: Record | null; - publicSchemaName?: string | null; - resolverFunctionName?: string | null; - resourceModuleId?: string | null; schemaId?: string | null; - scope?: string | null; - storageModuleId?: string | null; + settingsTableId?: string | null; } -export interface UpdateHttpRouteModuleInput { +export interface UpdateI18NModuleInput { clientMutationId?: string; id: string; - httpRouteModulePatch: HttpRouteModulePatch; + i18NModulePatch: I18NModulePatch; } -export interface DeleteHttpRouteModuleInput { +export interface DeleteI18NModuleInput { clientMutationId?: string; id: string; } -export interface CreateI18NModuleInput { +export interface CreateIdentityProvidersModuleInput { clientMutationId?: string; - i18NModule: { + identityProvidersModule: { apiName?: string; databaseId: string; + entityField?: string; + entityTableId?: string; + prefix?: string; privateApiName?: string; privateSchemaId?: string; + privateSchemaName?: string; + publicSchemaName?: string; schemaId?: string; - settingsTableId?: string; + scope: string; + tableId?: string; + tableName?: string; }; } -export interface I18NModulePatch { +export interface IdentityProvidersModulePatch { apiName?: string | null; databaseId?: string | null; + entityField?: string | null; + entityTableId?: string | null; + prefix?: string | null; privateApiName?: string | null; privateSchemaId?: string | null; + privateSchemaName?: string | null; + publicSchemaName?: string | null; schemaId?: string | null; - settingsTableId?: string | null; + scope?: string | null; + tableId?: string | null; + tableName?: string | null; } -export interface UpdateI18NModuleInput { +export interface UpdateIdentityProvidersModuleInput { clientMutationId?: string; id: string; - i18NModulePatch: I18NModulePatch; + identityProvidersModulePatch: IdentityProvidersModulePatch; } -export interface DeleteI18NModuleInput { +export interface DeleteIdentityProvidersModuleInput { clientMutationId?: string; id: string; } -export interface CreateIdentityProvidersModuleInput { +export interface CreateImageModuleInput { clientMutationId?: string; - identityProvidersModule: { + imageModule: { apiName?: string; databaseId: string; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; + imageGrantsTableId?: string; + imageGrantsTableName?: string; + imagesTableId?: string; + imagesTableName?: string; + policies?: Record; prefix?: string; privateApiName?: string; privateSchemaId?: string; privateSchemaName?: string; + provisions?: Record; publicSchemaName?: string; + registriesTableId?: string; + registriesTableName?: string; + registryGrantsTableId?: string; + registryGrantsTableName?: string; schemaId?: string; scope: string; - tableId?: string; - tableName?: string; }; } -export interface IdentityProvidersModulePatch { +export interface ImageModulePatch { apiName?: string | null; databaseId?: string | null; + defaultCapabilities?: string[] | null; entityField?: string | null; entityTableId?: string | null; + imageGrantsTableId?: string | null; + imageGrantsTableName?: string | null; + imagesTableId?: string | null; + imagesTableName?: string | null; + policies?: Record | null; prefix?: string | null; privateApiName?: string | null; privateSchemaId?: string | null; privateSchemaName?: string | null; + provisions?: Record | null; publicSchemaName?: string | null; + registriesTableId?: string | null; + registriesTableName?: string | null; + registryGrantsTableId?: string | null; + registryGrantsTableName?: string | null; schemaId?: string | null; scope?: string | null; - tableId?: string | null; - tableName?: string | null; } -export interface UpdateIdentityProvidersModuleInput { +export interface UpdateImageModuleInput { clientMutationId?: string; id: string; - identityProvidersModulePatch: IdentityProvidersModulePatch; + imageModulePatch: ImageModulePatch; } -export interface DeleteIdentityProvidersModuleInput { +export interface DeleteImageModuleInput { clientMutationId?: string; id: string; } export interface CreateInferenceLogModuleInput { clientMutationId?: string; inferenceLogModule: { - actorFkTableId?: string; apiName?: string; databaseId: string; entityField?: string; - entityFkTableId?: string; inferenceLogTableId?: string; inferenceLogTableName?: string; interval?: string; @@ -13000,6 +15443,7 @@ export interface CreateInferenceLogModuleInput { privateSchemaName?: string; publicSchemaName?: string; retention?: string; + rollupFunctionName?: string; schemaId?: string; scope: string; usageSummaryTableId?: string; @@ -13007,11 +15451,9 @@ export interface CreateInferenceLogModuleInput { }; } export interface InferenceLogModulePatch { - actorFkTableId?: string | null; apiName?: string | null; databaseId?: string | null; entityField?: string | null; - entityFkTableId?: string | null; inferenceLogTableId?: string | null; inferenceLogTableName?: string | null; interval?: string | null; @@ -13022,6 +15464,7 @@ export interface InferenceLogModulePatch { privateSchemaName?: string | null; publicSchemaName?: string | null; retention?: string | null; + rollupFunctionName?: string | null; schemaId?: string | null; scope?: string | null; usageSummaryTableId?: string | null; @@ -13170,6 +15613,52 @@ export interface DeleteIntegrationProvidersModuleInput { clientMutationId?: string; id: string; } +export interface CreateInternalConfigModuleInput { + clientMutationId?: string; + internalConfigModule: { + apiName?: string; + databaseId: string; + entityField?: string; + entityTableId?: string; + internalConfigTableId?: string; + internalConfigTableName?: string; + policies?: Record; + prefix?: string; + privateApiName?: string; + privateSchemaId?: string; + privateSchemaName?: string; + provisions?: Record; + publicSchemaName?: string; + schemaId?: string; + scope: string; + }; +} +export interface InternalConfigModulePatch { + apiName?: string | null; + databaseId?: string | null; + entityField?: string | null; + entityTableId?: string | null; + internalConfigTableId?: string | null; + internalConfigTableName?: string | null; + policies?: Record | null; + prefix?: string | null; + privateApiName?: string | null; + privateSchemaId?: string | null; + privateSchemaName?: string | null; + provisions?: Record | null; + publicSchemaName?: string | null; + schemaId?: string | null; + scope?: string | null; +} +export interface UpdateInternalConfigModuleInput { + clientMutationId?: string; + id: string; + internalConfigModulePatch: InternalConfigModulePatch; +} +export interface DeleteInternalConfigModuleInput { + clientMutationId?: string; + id: string; +} export interface CreateInternalSecretsModuleInput { clientMutationId?: string; internalSecretsModule: { @@ -13268,6 +15757,54 @@ export interface DeleteInvitesModuleInput { clientMutationId?: string; id: string; } +export interface CreateK8sAdmissionModuleInput { + clientMutationId?: string; + k8sAdmissionModule: { + apiName?: string; + databaseId: string; + entityTableId?: string; + k8sResourceKindsTableId?: string; + k8sSpecRulesTableId?: 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 K8sAdmissionModulePatch { + apiName?: string | null; + databaseId?: string | null; + entityTableId?: string | null; + k8sResourceKindsTableId?: string | null; + k8sSpecRulesTableId?: 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 UpdateK8sAdmissionModuleInput { + clientMutationId?: string; + id: string; + k8sAdmissionModulePatch: K8sAdmissionModulePatch; +} +export interface DeleteK8sAdmissionModuleInput { + clientMutationId?: string; + id: string; +} export interface CreateLimitsModuleInput { clientMutationId?: string; limitsModule: { @@ -13292,6 +15829,7 @@ export interface CreateLimitsModuleInput { limitCreditsTableId?: string; limitDecrementFunction?: string; limitDecrementTrigger?: string; + limitDefaults?: Record; limitIncrementFunction?: string; limitIncrementTrigger?: string; limitUpdateTrigger?: string; @@ -13331,6 +15869,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; @@ -13356,31 +15895,93 @@ export interface DeleteLimitsModuleInput { clientMutationId?: string; id: string; } -export interface CreateMembershipTypesModuleInput { +export interface CreateMachineModuleInput { clientMutationId?: string; - membershipTypesModule: { + machineModule: { + apiName?: string; databaseId: string; + defaultCapabilities?: string[]; + entityField?: string; + entityTableId?: string; + machineMessagesTableId?: string; + machineMessagesTableName?: string; + machineSessionsTableId?: string; + machineSessionsTableName?: string; + machinesTableId?: string; + machinesTableName?: string; + partitionInterval?: string; + policies?: Record; + prefix?: string; + premake?: number; + privateApiName?: string; + privateSchemaId?: string; + privateSchemaName?: string; + provisions?: Record; + publicSchemaName?: string; + retention?: string; schemaId?: string; - tableId?: string; - tableName?: string; + scope: string; }; } -export interface MembershipTypesModulePatch { +export interface MachineModulePatch { + apiName?: string | null; databaseId?: string | null; + defaultCapabilities?: string[] | null; + entityField?: string | null; + entityTableId?: string | null; + machineMessagesTableId?: string | null; + machineMessagesTableName?: string | null; + machineSessionsTableId?: string | null; + machineSessionsTableName?: string | null; + machinesTableId?: string | null; + machinesTableName?: string | null; + partitionInterval?: string | null; + policies?: Record | null; + prefix?: string | null; + premake?: number | null; + privateApiName?: string | null; + privateSchemaId?: string | null; + privateSchemaName?: string | null; + provisions?: Record | null; + publicSchemaName?: string | null; + retention?: string | null; schemaId?: string | null; - tableId?: string | null; - tableName?: string | null; + scope?: string | null; } -export interface UpdateMembershipTypesModuleInput { +export interface UpdateMachineModuleInput { clientMutationId?: string; id: string; - membershipTypesModulePatch: MembershipTypesModulePatch; + machineModulePatch: MachineModulePatch; } -export interface DeleteMembershipTypesModuleInput { +export interface DeleteMachineModuleInput { clientMutationId?: string; id: string; } -export interface CreateMembershipsModuleInput { +export interface CreateMembershipTypesModuleInput { + clientMutationId?: string; + membershipTypesModule: { + databaseId: string; + schemaId?: string; + tableId?: string; + tableName?: string; + }; +} +export interface MembershipTypesModulePatch { + databaseId?: string | null; + schemaId?: string | null; + tableId?: string | null; + tableName?: string | null; +} +export interface UpdateMembershipTypesModuleInput { + clientMutationId?: string; + id: string; + membershipTypesModulePatch: MembershipTypesModulePatch; +} +export interface DeleteMembershipTypesModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateMembershipsModuleInput { clientMutationId?: string; membershipsModule: { actorMaskCheck?: string; @@ -13389,9 +15990,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 +16017,6 @@ export interface CreateMembershipsModuleInput { membershipsTableName?: string; ownerGrantsTableId?: string; ownerGrantsTableName?: string; - permissionDefaultGrantsTableId?: string; - permissionDefaultPermissionsTableId?: string; - permissionsTableId?: string; prefix?: string; privateApiName?: string; privateSchemaId?: string; @@ -13433,9 +16034,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 +16061,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 +16083,13 @@ export interface CreateMerkleStoreModuleInput { clientMutationId?: string; merkleStoreModule: { apiName?: string; + capabilityKey?: string; commitTableId?: string; databaseId: string; entityField?: string; + entityTableId?: string; functionPrefix?: string; objectTableId?: string; - permissionKey?: string; prefix?: string; privateApiName?: string; privateSchemaId?: string; @@ -13501,12 +16103,13 @@ export interface CreateMerkleStoreModuleInput { } export interface MerkleStoreModulePatch { apiName?: string | null; + capabilityKey?: string | null; commitTableId?: string | null; databaseId?: string | null; entityField?: string | null; + entityTableId?: string | null; functionPrefix?: string | null; objectTableId?: string | null; - permissionKey?: string | null; prefix?: string | null; privateApiName?: string | null; privateSchemaId?: string | null; @@ -13531,7 +16134,7 @@ export interface CreateNamespaceModuleInput { namespaceModule: { apiName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; namespaceEventsTableId?: string; @@ -13552,7 +16155,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 +16187,7 @@ export interface CreateNotificationsModuleInput { apiName?: string; channelsTableId?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; deliveryLogTableId?: string; entityField?: string; hasChannels?: boolean; @@ -13610,7 +16213,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 +16243,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: { @@ -13650,12 +16291,17 @@ export interface CreatePagesModuleInput { pagesTableId?: string; policies?: Record; prefix: string; + previewCommitFunctionName?: string; + previewSetFunctionName?: string; + previewTokenMintFunctionName?: string; + previewTokenVerifierFunctionName?: string; privateApiName?: string; privateSchemaId?: string; privateSchemaName?: string; provisions?: Record; publicSchemaId?: string; publicSchemaName?: string; + releaseManifestFunctionName?: string; scope: string; siteSurfaceModuleId?: string; sitesTableId?: string; @@ -13670,12 +16316,17 @@ export interface PagesModulePatch { pagesTableId?: string | null; policies?: Record | null; prefix?: string | null; + previewCommitFunctionName?: string | null; + previewSetFunctionName?: string | null; + previewTokenMintFunctionName?: string | null; + previewTokenVerifierFunctionName?: string | null; privateApiName?: string | null; privateSchemaId?: string | null; privateSchemaName?: string | null; provisions?: Record | null; publicSchemaId?: string | null; publicSchemaName?: string | null; + releaseManifestFunctionName?: string | null; scope?: string | null; siteSurfaceModuleId?: string | null; sitesTableId?: string | null; @@ -13690,64 +16341,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: { @@ -13851,10 +16444,12 @@ export interface CreatePrincipalAuthModuleInput { principalScopeOverridesTableId?: string; principalsTableId?: string; principalsTableName?: string; + privateSchemaId?: string; revokeOrgApiKeyFunction?: string; schemaId?: string; sessionCredentialsTableId?: string; sessionsTableId?: string; + sweepExpiredPrincipalsFunction?: string; usersTableId?: string; }; } @@ -13871,10 +16466,12 @@ export interface PrincipalAuthModulePatch { principalScopeOverridesTableId?: string | null; principalsTableId?: string | null; principalsTableName?: string | null; + privateSchemaId?: string | null; revokeOrgApiKeyFunction?: string | null; schemaId?: string | null; sessionCredentialsTableId?: string | null; sessionsTableId?: string | null; + sweepExpiredPrincipalsFunction?: string | null; usersTableId?: string | null; } export interface UpdatePrincipalAuthModuleInput { @@ -13891,21 +16488,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 +16517,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 +16557,7 @@ export interface CreateRateLimitMetersModuleInput { apiName?: string; checkRateLimitFunction?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; prefix?: string; privateApiName?: string; privateSchemaId?: string; @@ -13975,7 +16576,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; @@ -14072,6 +16673,66 @@ export interface DeleteRealtimeModuleInput { clientMutationId?: string; id: string; } +export interface CreateRefusalLogModuleInput { + clientMutationId?: string; + refusalLogModule: { + apiName?: string; + databaseId: string; + entityField?: string; + logInterval?: string; + logPremake?: number; + logRetention?: string; + logTableId?: string; + logTableName?: string; + prefix?: string; + privateApiName?: string; + privateSchemaId?: string; + privateSchemaName?: string; + publicSchemaName?: string; + recordRefusalsFunction?: string; + rollupRefusalUsageSummaryFunction?: string; + schemaId?: string; + scope: string; + summaryInterval?: string; + summaryPremake?: number; + summaryRetention?: string; + summaryTableId?: string; + summaryTableName?: string; + }; +} +export interface RefusalLogModulePatch { + apiName?: string | null; + databaseId?: string | null; + entityField?: string | null; + logInterval?: string | null; + logPremake?: number | null; + logRetention?: string | null; + logTableId?: string | null; + logTableName?: string | null; + prefix?: string | null; + privateApiName?: string | null; + privateSchemaId?: string | null; + privateSchemaName?: string | null; + publicSchemaName?: string | null; + recordRefusalsFunction?: string | null; + rollupRefusalUsageSummaryFunction?: string | null; + schemaId?: string | null; + scope?: string | null; + summaryInterval?: string | null; + summaryPremake?: number | null; + summaryRetention?: string | null; + summaryTableId?: string | null; + summaryTableName?: string | null; +} +export interface UpdateRefusalLogModuleInput { + clientMutationId?: string; + id: string; + refusalLogModulePatch: RefusalLogModulePatch; +} +export interface DeleteRefusalLogModuleInput { + clientMutationId?: string; + id: string; +} export interface CreateRelationProvisionInput { clientMutationId?: string; relationProvision: { @@ -14134,12 +16795,108 @@ export interface DeleteRelationProvisionInput { clientMutationId?: string; id: string; } +export interface CreateRepositoryModuleInput { + clientMutationId?: string; + repositoryModule: { + apiName?: string; + buildStepsTableId?: string; + buildStepsTableName?: string; + buildsTableId?: string; + buildsTableName?: string; + databaseId: string; + defaultCapabilities?: string[]; + entityField?: string; + entityTableId?: string; + hasAttachments?: boolean; + hasBuilds?: boolean; + policies?: Record; + prefix?: string; + privateApiName?: string; + privateSchemaId?: string; + privateSchemaName?: string; + proposalCommentsTableId?: string; + proposalCommentsTableName?: string; + proposalFileViewsTableId?: string; + proposalFileViewsTableName?: string; + proposalReactionsTableId?: string; + proposalReactionsTableName?: string; + proposalReviewsTableId?: string; + proposalReviewsTableName?: string; + proposalsTableId?: string; + proposalsTableName?: string; + provisions?: Record; + publicSchemaName?: string; + repositoriesTableId?: string; + repositoriesTableName?: string; + repositoryEventsTableId?: string; + repositoryEventsTableName?: string; + repositoryRequiredChecksTableId?: string; + repositoryRequiredChecksTableName?: string; + schemaId?: string; + scope: string; + search?: Record; + workflowsTableId?: string; + workflowsTableName?: string; + }; +} +export interface RepositoryModulePatch { + apiName?: string | null; + buildStepsTableId?: string | null; + buildStepsTableName?: string | null; + buildsTableId?: string | null; + buildsTableName?: string | null; + databaseId?: string | null; + defaultCapabilities?: string[] | null; + entityField?: string | null; + entityTableId?: string | null; + hasAttachments?: boolean | null; + hasBuilds?: boolean | null; + policies?: Record | null; + prefix?: string | null; + privateApiName?: string | null; + privateSchemaId?: string | null; + privateSchemaName?: string | null; + proposalCommentsTableId?: string | null; + proposalCommentsTableName?: string | null; + proposalFileViewsTableId?: string | null; + proposalFileViewsTableName?: string | null; + proposalReactionsTableId?: string | null; + proposalReactionsTableName?: string | null; + proposalReviewsTableId?: string | null; + proposalReviewsTableName?: string | null; + proposalsTableId?: string | null; + proposalsTableName?: string | null; + provisions?: Record | null; + publicSchemaName?: string | null; + repositoriesTableId?: string | null; + repositoriesTableName?: string | null; + repositoryEventsTableId?: string | null; + repositoryEventsTableName?: string | null; + repositoryRequiredChecksTableId?: string | null; + repositoryRequiredChecksTableName?: string | null; + schemaId?: string | null; + scope?: string | null; + search?: Record | null; + workflowsTableId?: string | null; + workflowsTableName?: string | null; +} +export interface UpdateRepositoryModuleInput { + clientMutationId?: string; + id: string; + repositoryModulePatch: RepositoryModulePatch; +} +export interface DeleteRepositoryModuleInput { + clientMutationId?: string; + id: string; +} export interface CreateResourceModuleInput { clientMutationId?: string; resourceModule: { apiName?: string; + builderBindingsTableId?: string; + builderBindingsTableName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; installationStoreName?: string; @@ -14152,6 +16909,8 @@ export interface CreateResourceModuleInput { privateSchemaName?: string; provisions?: Record; publicSchemaName?: string; + registryBindingsTableId?: string; + registryBindingsTableName?: string; requirementsStateViewName?: string; resolvedRequirementsViewName?: string; resourceBillingRollupFunction?: string; @@ -14176,8 +16935,10 @@ export interface CreateResourceModuleInput { } export interface ResourceModulePatch { apiName?: string | null; + builderBindingsTableId?: string | null; + builderBindingsTableName?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; entityField?: string | null; entityTableId?: string | null; installationStoreName?: string | null; @@ -14190,6 +16951,8 @@ export interface ResourceModulePatch { privateSchemaName?: string | null; provisions?: Record | null; publicSchemaName?: string | null; + registryBindingsTableId?: string | null; + registryBindingsTableName?: string | null; requirementsStateViewName?: string | null; resolvedRequirementsViewName?: string | null; resourceBillingRollupFunction?: string | null; @@ -14264,9 +17027,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; @@ -14279,6 +17044,8 @@ export interface CreateRouteModuleInput { privateSchemaName?: string; provisions?: Record; publicSchemaName?: string; + redirectsTableId?: string; + redirectsTableName?: string; resolverFunctionName?: string; routeBindingsTableId?: string; routeBindingsTableName?: string; @@ -14286,13 +17053,17 @@ export interface CreateRouteModuleInput { routesTableName?: string; schemaId?: string; scope: string; + servingSiteField?: string; + storageKey?: string; }; } 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; @@ -14305,6 +17076,8 @@ export interface RouteModulePatch { privateSchemaName?: string | null; provisions?: Record | null; publicSchemaName?: string | null; + redirectsTableId?: string | null; + redirectsTableName?: string | null; resolverFunctionName?: string | null; routeBindingsTableId?: string | null; routeBindingsTableName?: string | null; @@ -14312,6 +17085,8 @@ export interface RouteModulePatch { routesTableName?: string | null; schemaId?: string | null; scope?: string | null; + servingSiteField?: string | null; + storageKey?: string | null; } export interface UpdateRouteModuleInput { clientMutationId?: string; @@ -14322,14 +17097,40 @@ export interface DeleteRouteModuleInput { clientMutationId?: string; id: string; } +export interface CreateScopeTypesModuleInput { + clientMutationId?: string; + scopeTypesModule: { + databaseId: string; + 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; + module?: Record; nodes?: Record; outFields?: string[]; + owns?: Record; policies?: Record; schemaId?: string; tableId?: string; @@ -14341,8 +17142,10 @@ export interface SecureTableProvisionPatch { databaseId?: string | null; fields?: Record[] | null; grants?: Record | null; + module?: Record | null; nodes?: Record | null; outFields?: string[] | null; + owns?: Record | null; policies?: Record | null; schemaId?: string | null; tableId?: string | null; @@ -14426,7 +17229,7 @@ export interface CreateSiteSurfaceModuleInput { apiName?: string; catalogModuleId?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; policies?: Record; @@ -14448,19 +17251,22 @@ export interface CreateSiteSurfaceModuleInput { siteMetadataTableName?: string; siteModulesTableId?: string; siteModulesTableName?: string; + siteReleasesTableId?: string; + siteReleasesTableName?: string; siteThemesTableId?: string; siteThemesTableName?: string; siteWebConfigTableId?: string; siteWebConfigTableName?: string; sitesTableId?: string; sitesTableName?: string; + storageKey?: string; }; } 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; @@ -14482,12 +17288,15 @@ export interface SiteSurfaceModulePatch { siteMetadataTableName?: string | null; siteModulesTableId?: string | null; siteModulesTableName?: string | null; + siteReleasesTableId?: string | null; + siteReleasesTableName?: string | null; siteThemesTableId?: string | null; siteThemesTableName?: string | null; siteWebConfigTableId?: string | null; siteWebConfigTableName?: string | null; sitesTableId?: string | null; sitesTableName?: string | null; + storageKey?: string | null; } export interface UpdateSiteSurfaceModuleInput { clientMutationId?: string; @@ -14501,11 +17310,9 @@ export interface DeleteSiteSurfaceModuleInput { export interface CreateStorageLogModuleInput { clientMutationId?: string; storageLogModule: { - actorFkTableId?: string; apiName?: string; databaseId: string; entityField?: string; - entityFkTableId?: string; interval?: string; prefix?: string; premake?: number; @@ -14514,6 +17321,7 @@ export interface CreateStorageLogModuleInput { privateSchemaName?: string; publicSchemaName?: string; retention?: string; + rollupFunctionName?: string; schemaId?: string; scope: string; storageLogTableId?: string; @@ -14523,11 +17331,9 @@ export interface CreateStorageLogModuleInput { }; } export interface StorageLogModulePatch { - actorFkTableId?: string | null; apiName?: string | null; databaseId?: string | null; entityField?: string | null; - entityFkTableId?: string | null; interval?: string | null; prefix?: string | null; premake?: number | null; @@ -14536,6 +17342,7 @@ export interface StorageLogModulePatch { privateSchemaName?: string | null; publicSchemaName?: string | null; retention?: string | null; + rollupFunctionName?: string | null; schemaId?: string | null; scope?: string | null; storageLogTableId?: string | null; @@ -14563,8 +17370,8 @@ export interface CreateStorageModuleInput { catalogModuleId?: string; confirmUploadDelay?: IntervalInput; databaseId: string; + defaultCapabilities?: string[]; defaultMaxFileSize?: string; - defaultPermissions?: string[]; downloadUrlExpirySeconds?: number; endpoint?: string; entityField?: string; @@ -14578,6 +17385,7 @@ export interface CreateStorageModuleInput { hasCustomKeys?: boolean; hasPathShares?: boolean; hasVersioning?: boolean; + key?: string; maxBulkFiles?: number; maxBulkTotalSize?: string; maxFilenameLength?: number; @@ -14606,8 +17414,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; @@ -14621,6 +17429,7 @@ export interface StorageModulePatch { hasCustomKeys?: boolean | null; hasPathShares?: boolean | null; hasVersioning?: boolean | null; + key?: string | null; maxBulkFiles?: number | null; maxBulkTotalSize?: string | null; maxFilenameLength?: number | null; @@ -14651,11 +17460,9 @@ export interface DeleteStorageModuleInput { export interface CreateTransferLogModuleInput { clientMutationId?: string; transferLogModule: { - actorFkTableId?: string; apiName?: string; databaseId: string; entityField?: string; - entityFkTableId?: string; interval?: string; prefix?: string; premake?: number; @@ -14664,6 +17471,7 @@ export interface CreateTransferLogModuleInput { privateSchemaName?: string; publicSchemaName?: string; retention?: string; + rollupFunctionName?: string; schemaId?: string; scope: string; transferLogTableId?: string; @@ -14673,11 +17481,9 @@ export interface CreateTransferLogModuleInput { }; } export interface TransferLogModulePatch { - actorFkTableId?: string | null; apiName?: string | null; databaseId?: string | null; entityField?: string | null; - entityFkTableId?: string | null; interval?: string | null; prefix?: string | null; premake?: number | null; @@ -14686,6 +17492,7 @@ export interface TransferLogModulePatch { privateSchemaName?: string | null; publicSchemaName?: string | null; retention?: string | null; + rollupFunctionName?: string | null; schemaId?: string | null; scope?: string | null; transferLogTableId?: string | null; @@ -14716,8 +17523,10 @@ export interface CreateUserAuthModuleInput { extendTokenExpires?: string; forgotPasswordFunction?: string; privateApiName?: string; + privateSchemaId?: string; requestCrossOriginTokenFunction?: string; resetPasswordFunction?: string; + revokeSessionTreeFunction?: string; schemaId?: string; secretsTableId?: string; sendAccountDeletionEmailFunction?: string; @@ -14729,6 +17538,7 @@ export interface CreateUserAuthModuleInput { signInFunction?: string; signOutFunction?: string; signUpFunction?: string; + sweepExpiredSessionsFunction?: string; usersTableId?: string; verifyEmailFunction?: string; verifyPasswordFunction?: string; @@ -14746,8 +17556,10 @@ export interface UserAuthModulePatch { extendTokenExpires?: string | null; forgotPasswordFunction?: string | null; privateApiName?: string | null; + privateSchemaId?: string | null; requestCrossOriginTokenFunction?: string | null; resetPasswordFunction?: string | null; + revokeSessionTreeFunction?: string | null; schemaId?: string | null; secretsTableId?: string | null; sendAccountDeletionEmailFunction?: string | null; @@ -14759,6 +17571,7 @@ export interface UserAuthModulePatch { signInFunction?: string | null; signOutFunction?: string | null; signUpFunction?: string | null; + sweepExpiredSessionsFunction?: string | null; usersTableId?: string | null; verifyEmailFunction?: string | null; verifyPasswordFunction?: string | null; @@ -14828,6 +17641,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 +17810,7 @@ export interface CreateWebhookModuleInput { webhookModule: { apiName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; functionInvocationModuleId?: string; @@ -14994,7 +17835,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 +17874,9 @@ export const connectionFieldsMap = { blueprintTemplatesByForkedFromId: 'BlueprintTemplate', blueprintsByTemplateId: 'Blueprint', }, + CapabilitiesModule: { + dataCapabilitiesFields: 'DataCapabilitiesField', + }, CatalogModule: { apiSurfaceModules: 'ApiSurfaceModule', appModules: 'AppModule', @@ -15048,7 +17892,6 @@ export const connectionFieldsMap = { }, FunctionModule: { functionDeploymentModules: 'FunctionDeploymentModule', - httpRouteModules: 'HttpRouteModule', webhookModules: 'WebhookModule', }, GraphModule: { @@ -15058,8 +17901,10 @@ export const connectionFieldsMap = { webhookModules: 'WebhookModule', }, MerkleStoreModule: { + contentPresetModules: 'ContentPresetModule', dbPresetModules: 'DbPresetModule', graphModules: 'GraphModule', + k8sAdmissionModules: 'K8sAdmissionModule', pagesModules: 'PagesModule', resourceModules: 'ResourceModule', }, @@ -15068,14 +17913,12 @@ export const connectionFieldsMap = { resourceModules: 'ResourceModule', webhookModules: 'WebhookModule', }, - ResourceModule: { - httpRouteModules: 'HttpRouteModule', - }, SiteSurfaceModule: { + emailSenderModules: 'EmailSenderModule', pagesModules: 'PagesModule', }, StorageModule: { - httpRouteModules: 'HttpRouteModule', + fileRefFields: 'FileRefField', }, } as Record>; // ============ Custom Input Types (from schema) ============ @@ -15101,105 +17944,41 @@ export interface ProvisionBucketInput { */ ownerId?: string; } -export interface ProvisionCheckConstraintInput { - 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. */ + every?: BlueprintConstructionFilter; + /** Filters to entities where no related entity matches. */ + none?: BlueprintConstructionFilter; + /** Filters to entities where at least one related entity matches. */ + some?: BlueprintConstructionFilter; } -export interface ProvisionFullTextSearchInput { - clientMutationId?: string; - databaseId?: string; - definition?: Record; - tableId?: string; +/** A filter to be used against many `BlueprintTemplate` object types. All fields are combined with a logical ‘and.’ */ +export interface BlueprintTemplateToManyBlueprintTemplateFilter { + /** Filters to entities where every related entity matches. */ + every?: BlueprintTemplateFilter; + /** Filters to entities where no related entity matches. */ + none?: BlueprintTemplateFilter; + /** Filters to entities where at least one related entity matches. */ + some?: BlueprintTemplateFilter; } -export interface ProvisionIndexInput { - clientMutationId?: string; - databaseId?: string; - definition?: Record; - tableId?: string; +/** A filter to be used against many `Blueprint` object types. All fields are combined with a logical ‘and.’ */ +export interface BlueprintTemplateToManyBlueprintFilter { + /** Filters to entities where every related entity matches. */ + every?: BlueprintFilter; + /** Filters to entities where no related entity matches. */ + none?: BlueprintFilter; + /** Filters to entities where at least one related entity matches. */ + some?: BlueprintFilter; } -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. */ - every?: BlueprintConstructionFilter; - /** Filters to entities where no related entity matches. */ - none?: BlueprintConstructionFilter; - /** Filters to entities where at least one related entity matches. */ - some?: BlueprintConstructionFilter; -} -/** A filter to be used against many `BlueprintTemplate` object types. All fields are combined with a logical ‘and.’ */ -export interface BlueprintTemplateToManyBlueprintTemplateFilter { - /** Filters to entities where every related entity matches. */ - every?: BlueprintTemplateFilter; - /** Filters to entities where no related entity matches. */ - none?: BlueprintTemplateFilter; - /** Filters to entities where at least one related entity matches. */ - some?: BlueprintTemplateFilter; -} -/** A filter to be used against many `Blueprint` object types. All fields are combined with a logical ‘and.’ */ -export interface BlueprintTemplateToManyBlueprintFilter { +/** 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?: BlueprintFilter; + every?: DataCapabilitiesFieldFilter; /** Filters to entities where no related entity matches. */ - none?: BlueprintFilter; + none?: DataCapabilitiesFieldFilter; /** Filters to entities where at least one related entity matches. */ - some?: BlueprintFilter; + some?: DataCapabilitiesFieldFilter; } /** A filter to be used against many `ApiSurfaceModule` object types. All fields are combined with a logical ‘and.’ */ export interface CatalogModuleToManyApiSurfaceModuleFilter { @@ -15298,15 +18077,6 @@ export interface FunctionModuleToManyFunctionDeploymentModuleFilter { /** Filters to entities where at least one related entity matches. */ some?: FunctionDeploymentModuleFilter; } -/** A filter to be used against many `HttpRouteModule` object types. All fields are combined with a logical ‘and.’ */ -export interface FunctionModuleToManyHttpRouteModuleFilter { - /** Filters to entities where every related entity matches. */ - every?: HttpRouteModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: HttpRouteModuleFilter; - /** Filters to entities where at least one related entity matches. */ - some?: HttpRouteModuleFilter; -} /** A filter to be used against many `WebhookModule` object types. All fields are combined with a logical ‘and.’ */ export interface FunctionModuleToManyWebhookModuleFilter { /** Filters to entities where every related entity matches. */ @@ -15334,6 +18104,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. */ @@ -15352,6 +18131,15 @@ export interface MerkleStoreModuleToManyGraphModuleFilter { /** Filters to entities where at least one related entity matches. */ some?: GraphModuleFilter; } +/** A filter to be used against many `K8sAdmissionModule` object types. All fields are combined with a logical ‘and.’ */ +export interface MerkleStoreModuleToManyK8sAdmissionModuleFilter { + /** Filters to entities where every related entity matches. */ + every?: K8sAdmissionModuleFilter; + /** Filters to entities where no related entity matches. */ + none?: K8sAdmissionModuleFilter; + /** Filters to entities where at least one related entity matches. */ + some?: K8sAdmissionModuleFilter; +} /** A filter to be used against many `PagesModule` object types. All fields are combined with a logical ‘and.’ */ export interface MerkleStoreModuleToManyPagesModuleFilter { /** Filters to entities where every related entity matches. */ @@ -15397,15 +18185,6 @@ export interface NamespaceModuleToManyWebhookModuleFilter { /** Filters to entities where at least one related entity matches. */ some?: WebhookModuleFilter; } -/** A filter to be used against many `HttpRouteModule` object types. All fields are combined with a logical ‘and.’ */ -export interface ResourceModuleToManyHttpRouteModuleFilter { - /** Filters to entities where every related entity matches. */ - every?: HttpRouteModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: HttpRouteModuleFilter; - /** Filters to entities where at least one related entity matches. */ - some?: HttpRouteModuleFilter; -} /** A filter to be used against JSON List fields. All fields are combined with a logical ‘and.’ */ export interface JSONListFilter { /** Any array item is equal to the specified value. */ @@ -15445,6 +18224,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,14 +18242,14 @@ export interface SiteSurfaceModuleToManyPagesModuleFilter { /** Filters to entities where at least one related entity matches. */ some?: PagesModuleFilter; } -/** A filter to be used against many `HttpRouteModule` object types. All fields are combined with a logical ‘and.’ */ -export interface StorageModuleToManyHttpRouteModuleFilter { +/** 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?: HttpRouteModuleFilter; + every?: FileRefFieldFilter; /** Filters to entities where no related entity matches. */ - none?: HttpRouteModuleFilter; + none?: FileRefFieldFilter; /** Filters to entities where at least one related entity matches. */ - some?: HttpRouteModuleFilter; + some?: FileRefFieldFilter; } /** An input for mutations affecting `AgentModule` */ export interface AgentModuleInput { @@ -15469,12 +18257,18 @@ export interface AgentModuleInput { agentTableName?: string; apiName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; + defaultVisibility?: string; entityField?: string; entityTableId?: string; + eventTableId?: string; + eventTableName?: string; hasAgents?: boolean; + hasAttachments?: boolean; hasPlans?: boolean; + hasRepositoryResources?: boolean; hasResources?: boolean; + hasRuns?: boolean; id?: string; messageTableId?: string; messageTableName?: string; @@ -15491,16 +18285,21 @@ export interface AgentModuleInput { promptsTableName?: string; provisions?: Record; publicSchemaName?: string; + resourceRepositoryTableId?: string; + resourceRepositoryTableName?: string; resourceTableId?: string; resourceTableName?: string; resources?: Record; + runTableId?: string; + runTableName?: string; schemaId?: string; scope: string; - shared?: boolean; taskTableId?: string; taskTableName?: string; threadTableId?: string; threadTableName?: string; + workspaceTableId?: string; + workspaceTableName?: string; } /** An input for mutations affecting `ApiSurfaceModule` */ export interface ApiSurfaceModuleInput { @@ -15515,7 +18314,7 @@ export interface ApiSurfaceModuleInput { corsSettingsTableId?: string; corsSettingsTableName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; id?: string; @@ -15532,11 +18331,12 @@ export interface AppModuleInput { apiName?: string; appComponentsTableId?: string; appComponentsTableName?: string; + appStoreIdentitiesTableName?: string; appsTableId?: string; appsTableName?: string; catalogModuleId?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; id?: string; @@ -15556,8 +18356,8 @@ export interface BillingModuleInput { balancesTableId?: string; balancesTableName?: string; databaseId: string; + defaultCapabilities?: string[]; defaultMeterCatalog?: Record; - defaultPermissions?: string[]; id?: string; ledgerTableId?: string; ledgerTableName?: string; @@ -15583,19 +18383,34 @@ export interface BillingModuleInput { } /** An input for mutations affecting `BillingProviderModule` */ export interface BillingProviderModuleInput { + activatePlanSubscriptionFunction?: string; apiName?: string; billingCustomersTableId?: string; billingCustomersTableName?: string; + billingDisputesTableId?: string; + billingDisputesTableName?: 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; + getActivePlanPricingFunction?: string; + getBillingCustomerFunction?: string; + getBillingPriceFunction?: string; + getBillingProductFunction?: string; + getBillingSubscriptionFunction?: string; + getFallbackFreePlanFunction?: string; id?: string; + listPendingUsageSyncFunction?: string; + markUsageSyncedFunction?: string; prefix?: string; pricesTableId?: string; privateApiName?: string; @@ -15603,8 +18418,16 @@ export interface BillingProviderModuleInput { processBillingEventFunction?: string; productsTableId?: string; provider?: string; + recordDisputeFunction?: string; + recordRefundFunction?: string; schemaId?: string; subscriptionsTableId?: string; + sweepOverdueSubscriptionsFunction?: string; + upsertBillingCustomerFunction?: string; + upsertBillingPriceFunction?: string; + upsertBillingProductFunction?: string; + upsertBillingSubscriptionFunction?: string; + upsertInvoiceFunction?: string; } /** An input for mutations affecting `Blueprint` */ export interface BlueprintInput { @@ -15701,29 +18524,64 @@ 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; apisTableId?: string; apisTableName?: string; + appStoreIdentitiesTableId?: string; + appStoreIdentitiesTableName?: 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; functionsTableId?: string; functionsTableName?: string; id?: string; + imagesTableId?: string; + imagesTableName?: string; + managedDomainsTableId?: string; + managedDomainsTableName?: string; namespacesTableId?: string; namespacesTableName?: string; policies?: Record; privateApiName?: string; provisions?: Record; publicSchemaName?: string; + redirectsTableId?: string; + redirectsTableName?: string; resourceDefinitionsTableId?: string; resourceDefinitionsTableName?: string; resourceInstallationsTableId?: string; @@ -15743,15 +18601,43 @@ export interface CatalogModuleInput { sitesWebConfigTableId?: string; sitesWebConfigTableName?: string; } +/** An input for mutations affecting `ClusterModule` */ +export interface ClusterModuleInput { + apiName?: string; + clusterEventsTableId?: string; + clusterEventsTableName?: string; + clustersTableId?: string; + clustersTableName?: string; + databaseId: string; + databasePlacementsTableId?: string; + databasePlacementsTableName?: string; + databaseServersTableId?: string; + databaseServersTableName?: string; + defaultCapabilities?: string[]; + entityField?: string; + id?: string; + partitionInterval?: string; + physicalDatabasesTableId?: string; + physicalDatabasesTableName?: string; + policies?: Record; + prefix?: string; + premake?: number; + privateApiName?: string; + privateSchemaId?: string; + privateSchemaName?: string; + provisions?: Record; + publicSchemaName?: string; + retention?: string; + schemaId?: string; + scope?: string; +} /** An input for mutations affecting `ComputeLogModule` */ export interface ComputeLogModuleInput { - actorFkTableId?: string; apiName?: string; computeLogTableId?: string; computeLogTableName?: string; databaseId: string; entityField?: string; - entityFkTableId?: string; id?: string; interval?: string; prefix?: string; @@ -15761,33 +18647,43 @@ export interface ComputeLogModuleInput { privateSchemaName?: string; publicSchemaName?: string; retention?: string; + rollupFunctionName?: string; schemaId?: string; scope: string; usageSummaryTableId?: string; usageSummaryTableName?: string; } -/** An input for mutations affecting `ConfigSecretsUserModule` */ -export interface ConfigSecretsUserModuleInput { +/** An input for mutations affecting `ConnectedAccountsModule` */ +export interface ConnectedAccountsModuleInput { apiName?: string; databaseId: string; - entityField?: string; id?: string; + ownerTableId?: string; privateApiName?: string; + privateSchemaId?: string; schemaId?: string; tableId?: string; - tableName?: string; + tableName: string; } -/** An input for mutations affecting `ConnectedAccountsModule` */ -export interface ConnectedAccountsModuleInput { +/** An input for mutations affecting `ContentPresetModule` */ +export interface ContentPresetModuleInput { apiName?: string; + contentPresetsTableId?: string; + createdAt?: string; databaseId: string; + entityTableId?: string; id?: string; - ownerTableId?: string; + merkleStoreModuleId: string; + policies?: Record; + prefix: string; privateApiName?: string; privateSchemaId?: string; - schemaId?: string; - tableId?: string; - tableName: string; + privateSchemaName?: string; + provisions?: Record; + publicSchemaId?: string; + publicSchemaName?: string; + scope: string; + storeName: string; } /** An input for mutations affecting `CryptoAddressesModule` */ export interface CryptoAddressesModuleInput { @@ -15819,15 +18715,31 @@ 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 */ async?: boolean; + /** The user whose identity is copied into the new database. Defaults to owner_id when NULL; set explicitly when owner_id is an organization */ + bootstrapActorId?: string; /** Error message from the most recent failed bootstrap attempt */ bootstrapError?: string; /** Status of the deferred owner bootstrap job: not_requested, pending, completed, or failed */ bootstrapStatus?: string; - /** When true, copies the owner user and password hash from source database to the newly provisioned database */ + /** When true, copies the bootstrap user and password hash from source database to the newly provisioned database */ bootstrapUser?: boolean; completedAt?: string; createdAt?: string; @@ -15841,11 +18753,11 @@ 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; - /** UUID of the user who owns this database */ + /** UUID of the entity that owns this database: a user, or an organization for an org-owned request */ ownerId: string; /** The database the owner user is copied from during bootstrap (captured from JWT context at provision time) */ sourceDatabaseId?: string; @@ -15861,7 +18773,7 @@ export interface DatabaseSettingsModuleInput { databaseId: string; databaseSettingsTableId?: string; databaseSettingsTableName?: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; id?: string; @@ -15966,7 +18878,7 @@ export interface DbUsageModuleInput { collectDbQueryStatsFunction?: string; collectDbTableStatsFunction?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; id?: string; interval?: string; @@ -16025,7 +18937,7 @@ export interface DomainModuleInput { apiName?: string; catalogModuleId?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; domainEventsTableId?: string; domainEventsTableName?: string; domainVerificationsTableId?: string; @@ -16047,6 +18959,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 +19009,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 +19019,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 +19061,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 +19092,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 +19114,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 +19158,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 +19172,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 +19192,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 +19218,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 +19256,7 @@ export interface EventsModuleInput { actorTableId?: string; apiName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; eventAggregatesTableId?: string; @@ -16327,6 +19265,7 @@ export interface EventsModuleInput { eventTypesTableName?: string; eventsTableId?: string; eventsTableName?: string; + expireGrants?: string; grantAchievement?: string; id?: string; interval?: string; @@ -16343,9 +19282,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 +19296,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 +19343,7 @@ export interface FunctionInvocationModuleInput { attemptsTableId?: string; attemptsTableName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; executionLogsTableId?: string; @@ -16413,7 +19368,7 @@ export interface FunctionModuleInput { bindingsTableName?: string; capabilityBindingsTableId?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; definitionsTableId?: string; definitionsTableName?: string; entityField?: string; @@ -16430,13 +19385,14 @@ export interface FunctionModuleInput { schedulesTableId?: string; schemaId?: string; scope: string; + storageKey?: string; } /** An input for mutations affecting `GraphExecutionModule` */ export interface GraphExecutionModuleInput { apiName?: string; createdAt?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; executionsTableId?: string; @@ -16462,7 +19418,7 @@ export interface GraphModuleInput { apiName?: string; createdAt?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; graphsTableId?: string; @@ -16486,7 +19442,7 @@ export interface HierarchyModuleInput { chartEdgesTableName?: string; createdAt?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId: string; getManagersFunction?: string; @@ -16504,30 +19460,6 @@ export interface HierarchyModuleInput { sprtTableName?: string; usersTableId: string; } -/** An input for mutations affecting `HttpRouteModule` */ -export interface HttpRouteModuleInput { - apiName?: string; - databaseId: string; - defaultPermissions?: string[]; - entityField?: string; - entityTableId?: string; - functionModuleId?: string; - httpRoutesTableId?: string; - httpRoutesTableName?: string; - id?: string; - policies?: Record; - prefix?: string; - privateApiName?: string; - privateSchemaId?: string; - privateSchemaName?: string; - provisions?: Record; - publicSchemaName?: string; - resolverFunctionName?: string; - resourceModuleId?: string; - schemaId?: string; - scope: string; - storageModuleId?: string; -} /** An input for mutations affecting `I18NModule` */ export interface I18NModuleInput { apiName?: string; @@ -16556,13 +19488,37 @@ export interface IdentityProvidersModuleInput { tableId?: string; tableName?: string; } +/** An input for mutations affecting `ImageModule` */ +export interface ImageModuleInput { + apiName?: string; + databaseId: string; + defaultCapabilities?: string[]; + entityField?: string; + entityTableId?: string; + id?: string; + imageGrantsTableId?: string; + imageGrantsTableName?: string; + imagesTableId?: string; + imagesTableName?: string; + policies?: Record; + prefix?: string; + privateApiName?: string; + privateSchemaId?: string; + privateSchemaName?: string; + provisions?: Record; + publicSchemaName?: string; + registriesTableId?: string; + registriesTableName?: string; + registryGrantsTableId?: string; + registryGrantsTableName?: string; + schemaId?: string; + scope: string; +} /** An input for mutations affecting `InferenceLogModule` */ export interface InferenceLogModuleInput { - actorFkTableId?: string; apiName?: string; databaseId: string; entityField?: string; - entityFkTableId?: string; id?: string; inferenceLogTableId?: string; inferenceLogTableName?: string; @@ -16574,6 +19530,7 @@ export interface InferenceLogModuleInput { privateSchemaName?: string; publicSchemaName?: string; retention?: string; + rollupFunctionName?: string; schemaId?: string; scope: string; usageSummaryTableId?: string; @@ -16634,6 +19591,25 @@ export interface IntegrationProvidersModuleInput { tableId?: string; tableName?: string; } +/** An input for mutations affecting `InternalConfigModule` */ +export interface InternalConfigModuleInput { + apiName?: string; + databaseId: string; + entityField?: string; + entityTableId?: string; + id?: string; + internalConfigTableId?: string; + internalConfigTableName?: string; + policies?: Record; + prefix?: string; + privateApiName?: string; + privateSchemaId?: string; + privateSchemaName?: string; + provisions?: Record; + publicSchemaName?: string; + schemaId?: string; + scope: string; +} /** An input for mutations affecting `InternalSecretsModule` */ export interface InternalSecretsModuleInput { apiName?: string; @@ -16675,6 +19651,27 @@ export interface InvitesModuleInput { submitInviteCodeFunction?: string; usersTableId?: string; } +/** An input for mutations affecting `K8sAdmissionModule` */ +export interface K8sAdmissionModuleInput { + apiName?: string; + createdAt?: string; + databaseId: string; + entityTableId?: string; + id?: string; + k8sResourceKindsTableId?: string; + k8sSpecRulesTableId?: 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 `LimitsModule` */ export interface LimitsModuleInput { actorTableId?: string; @@ -16699,6 +19696,7 @@ export interface LimitsModuleInput { limitCreditsTableId?: string; limitDecrementFunction?: string; limitDecrementTrigger?: string; + limitDefaults?: Record; limitIncrementFunction?: string; limitIncrementTrigger?: string; limitUpdateTrigger?: string; @@ -16715,6 +19713,33 @@ export interface LimitsModuleInput { tableId?: string; tableName?: string; } +/** An input for mutations affecting `MachineModule` */ +export interface MachineModuleInput { + apiName?: string; + databaseId: string; + defaultCapabilities?: string[]; + entityField?: string; + entityTableId?: string; + id?: string; + machineMessagesTableId?: string; + machineMessagesTableName?: string; + machineSessionsTableId?: string; + machineSessionsTableName?: string; + machinesTableId?: string; + machinesTableName?: string; + partitionInterval?: string; + policies?: Record; + prefix?: string; + premake?: number; + privateApiName?: string; + privateSchemaId?: string; + privateSchemaName?: string; + provisions?: Record; + publicSchemaName?: string; + retention?: string; + schemaId?: string; + scope: string; +} /** An input for mutations affecting `MembershipTypesModule` */ export interface MembershipTypesModuleInput { databaseId: string; @@ -16731,9 +19756,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 +19784,6 @@ export interface MembershipsModuleInput { membershipsTableName?: string; ownerGrantsTableId?: string; ownerGrantsTableName?: string; - permissionDefaultGrantsTableId?: string; - permissionDefaultPermissionsTableId?: string; - permissionsTableId?: string; prefix?: string; privateApiName?: string; privateSchemaId?: string; @@ -16771,14 +19796,15 @@ export interface MembershipsModuleInput { /** An input for mutations affecting `MerkleStoreModule` */ export interface MerkleStoreModuleInput { apiName?: string; + capabilityKey?: string; commitTableId?: string; createdAt?: string; databaseId: string; entityField?: string; + entityTableId?: string; functionPrefix?: string; id?: string; objectTableId?: string; - permissionKey?: string; prefix?: string; privateApiName?: string; privateSchemaId?: string; @@ -16793,7 +19819,7 @@ export interface MerkleStoreModuleInput { export interface NamespaceModuleInput { apiName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; id?: string; @@ -16816,7 +19842,7 @@ export interface NotificationsModuleInput { apiName?: string; channelsTableId?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; deliveryLogTableId?: string; entityField?: string; hasChannels?: boolean; @@ -16838,6 +19864,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; @@ -16849,44 +19890,24 @@ export interface PagesModuleInput { pagesTableId?: string; policies?: Record; prefix: string; + previewCommitFunctionName?: string; + previewSetFunctionName?: string; + previewTokenMintFunctionName?: string; + previewTokenVerifierFunctionName?: string; privateApiName?: string; privateSchemaId?: string; privateSchemaName?: string; provisions?: Record; publicSchemaId?: string; publicSchemaName?: string; + releaseManifestFunctionName?: string; scope: string; siteSurfaceModuleId?: string; 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 { +/** An input for mutations affecting `PhoneNumbersModule` */ +export interface PhoneNumbersModuleInput { apiName?: string; databaseId: string; id?: string; @@ -16936,32 +19957,36 @@ export interface PrincipalAuthModuleInput { principalScopeOverridesTableId?: string; principalsTableId?: string; principalsTableName?: string; + privateSchemaId?: string; revokeOrgApiKeyFunction?: string; schemaId?: string; sessionCredentialsTableId?: string; sessionsTableId?: string; + sweepExpiredPrincipalsFunction?: string; usersTableId?: string; } /** An input for mutations affecting `ProfilesModule` */ 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 +20000,7 @@ export interface RateLimitMetersModuleInput { apiName?: string; checkRateLimitFunction?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; id?: string; prefix?: string; privateApiName?: string; @@ -17019,6 +20044,32 @@ export interface RealtimeModuleInput { sourceRegistryTableId?: string; subscriptionsSchemaId?: string; } +/** An input for mutations affecting `RefusalLogModule` */ +export interface RefusalLogModuleInput { + apiName?: string; + databaseId: string; + entityField?: string; + id?: string; + logInterval?: string; + logPremake?: number; + logRetention?: string; + logTableId?: string; + logTableName?: string; + prefix?: string; + privateApiName?: string; + privateSchemaId?: string; + privateSchemaName?: string; + publicSchemaName?: string; + recordRefusalsFunction?: string; + rollupRefusalUsageSummaryFunction?: string; + schemaId?: string; + scope: string; + summaryInterval?: string; + summaryPremake?: number; + summaryRetention?: string; + summaryTableId?: string; + summaryTableName?: string; +} /** An input for mutations affecting `RelationProvision` */ export interface RelationProvisionInput { /** @@ -17143,11 +20194,56 @@ export interface RelationProvisionInput { */ useCompositeKey?: boolean; } +/** An input for mutations affecting `RepositoryModule` */ +export interface RepositoryModuleInput { + apiName?: string; + buildStepsTableId?: string; + buildStepsTableName?: string; + buildsTableId?: string; + buildsTableName?: string; + databaseId: string; + defaultCapabilities?: string[]; + entityField?: string; + entityTableId?: string; + hasAttachments?: boolean; + hasBuilds?: boolean; + id?: string; + policies?: Record; + prefix?: string; + privateApiName?: string; + privateSchemaId?: string; + privateSchemaName?: string; + proposalCommentsTableId?: string; + proposalCommentsTableName?: string; + proposalFileViewsTableId?: string; + proposalFileViewsTableName?: string; + proposalReactionsTableId?: string; + proposalReactionsTableName?: string; + proposalReviewsTableId?: string; + proposalReviewsTableName?: string; + proposalsTableId?: string; + proposalsTableName?: string; + provisions?: Record; + publicSchemaName?: string; + repositoriesTableId?: string; + repositoriesTableName?: string; + repositoryEventsTableId?: string; + repositoryEventsTableName?: string; + repositoryRequiredChecksTableId?: string; + repositoryRequiredChecksTableName?: string; + schemaId?: string; + scope: string; + search?: Record; + workflowsTableId?: string; + workflowsTableName?: string; +} /** An input for mutations affecting `ResourceModule` */ export interface ResourceModuleInput { apiName?: string; + builderBindingsTableId?: string; + builderBindingsTableName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; id?: string; @@ -17161,6 +20257,8 @@ export interface ResourceModuleInput { privateSchemaName?: string; provisions?: Record; publicSchemaName?: string; + registryBindingsTableId?: string; + registryBindingsTableName?: string; requirementsStateViewName?: string; resolvedRequirementsViewName?: string; resourceBillingRollupFunction?: string; @@ -17201,9 +20299,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; @@ -17217,6 +20317,8 @@ export interface RouteModuleInput { privateSchemaName?: string; provisions?: Record; publicSchemaName?: string; + redirectsTableId?: string; + redirectsTableName?: string; resolverFunctionName?: string; routeBindingsTableId?: string; routeBindingsTableName?: string; @@ -17224,6 +20326,16 @@ export interface RouteModuleInput { routesTableName?: string; schemaId?: string; scope: string; + servingSiteField?: string; + storageKey?: 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 { @@ -17235,10 +20347,14 @@ export interface SecureTableProvisionInput { grants?: Record; /** Unique identifier for this provision row. */ id?: string; + /** Module reference naming a module-generated target table symbolically, instead of by table_id or table_name: a jsonb object with keys "type" (text, required — the module type, e.g. "image"), "table" (text, required — the module's own table key, e.g. "registries"), "scope" (text, optional — the install scope) and "prefix" (text, optional — disambiguates multiple installs of the same module). Resolved through metaschema_modules_private.resolve_module_table(), so it raises the same errors blueprint module references do (BLUEPRINT_MODULE_REF_INVALID, BLUEPRINT_MODULE_NOT_INSTALLED, BLUEPRINT_MODULE_REF_AMBIGUOUS, BLUEPRINT_MODULE_TABLE_UNKNOWN). Mutually exclusive with table_name and with an explicit table_id. Example: {"type":"image","scope":"org","table":"registries"}. Defaults to NULL. */ + module?: Record; /** Array of node objects to apply to the table. Each element is a jsonb object with a required "$type" key (one of: DataId, DataDirectOwner, DataEntityMembership, DataOwnershipInEntity, DataTimestamps, DataPeoplestamps, DataPublishable, DataSoftDelete, DataEmbedding, DataFullTextSearch, DataSlug, etc.) and an optional "data" key containing generator-specific configuration. Supports multiple nodes per row, matching the blueprint definition format. Example: [{"$type": "DataId"}, {"$type": "DataTimestamps"}, {"$type": "DataDirectOwner", "data": {"owner_field_name": "author_id"}}]. Defaults to '[]' (no node processing). */ nodes?: Record; /** Output column populated by the trigger after field creation. Contains the UUIDs of the metaschema fields created on the target table by this provision row's nodes. NULL when nodes is empty or before the trigger runs. Callers should not set this directly. */ outFields?: string[]; + /** Security concerns this row owns on the target table, as a jsonb array of "grants" and/or "policies". A listed concern is replaced: the target table's existing grants (or its non-derived policies) are dropped before this row's grants[] (or policies[]) are applied, so the row's array is the table's whole set — this is how a module-generated table's default security is superseded rather than layered on. An unlisted concern composes, which is the default and the historical behavior. A concern may only be owned when this row supplies a non-empty array for it; owning a concern with nothing to install would leave the table with RLS enabled and no policy, and raises instead. Example: ["policies","grants"]. Defaults to '[]' (compose everything). */ + owns?: Record; /** Array of policy objects to create on the target table. Each element is a jsonb object with keys: "$type" (text, required — the Authz* policy generator type, e.g. AuthzEntityMembership, AuthzMembership, AuthzDirectOwner, AuthzPublishable, AuthzAllowAll), "data" (jsonb, optional — opaque configuration passed to metaschema.create_policy(), structure varies by type), "privileges" (text[], optional — privileges the policy applies to, e.g. ["select","insert"]; if omitted, derived from grants[] privilege verbs), "policy_role" (text, optional — role the policy targets; if omitted, falls back to first role in first grants[] entry, or 'authenticated' if no grants), "permissive" (boolean, optional — PERMISSIVE or RESTRICTIVE; defaults to true), "policy_name" (text, optional — custom suffix for the generated policy name; if omitted, auto-derived from $type by stripping Authz prefix). Supports multiple policies per row. Example: [{"$type": "AuthzEntityMembership", "data": {"entity_field": "owner_id", "membership_type": 3}, "privileges": ["select", "insert"]}, {"$type": "AuthzDirectOwner", "data": {"entity_field": "actor_id"}, "privileges": ["update", "delete"]}]. Defaults to '[]' (no policies created). When non-empty, the trigger automatically enables RLS. */ policies?: Record; /** Target schema for the table. Defaults to uuid_nil(); the trigger resolves this to the app_public schema if not explicitly provided. */ @@ -17279,7 +20395,7 @@ export interface SiteSurfaceModuleInput { apiName?: string; catalogModuleId?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; id?: string; @@ -17302,20 +20418,21 @@ export interface SiteSurfaceModuleInput { siteMetadataTableName?: string; siteModulesTableId?: string; siteModulesTableName?: string; + siteReleasesTableId?: string; + siteReleasesTableName?: string; siteThemesTableId?: string; siteThemesTableName?: string; siteWebConfigTableId?: string; siteWebConfigTableName?: string; sitesTableId?: string; sitesTableName?: string; + storageKey?: string; } /** An input for mutations affecting `StorageLogModule` */ export interface StorageLogModuleInput { - actorFkTableId?: string; apiName?: string; databaseId: string; entityField?: string; - entityFkTableId?: string; id?: string; interval?: string; prefix?: string; @@ -17325,6 +20442,7 @@ export interface StorageLogModuleInput { privateSchemaName?: string; publicSchemaName?: string; retention?: string; + rollupFunctionName?: string; schemaId?: string; scope: string; storageLogTableId?: string; @@ -17342,8 +20460,8 @@ export interface StorageModuleInput { catalogModuleId?: string; confirmUploadDelay?: IntervalInput; databaseId: string; + defaultCapabilities?: string[]; defaultMaxFileSize?: string; - defaultPermissions?: string[]; downloadUrlExpirySeconds?: number; endpoint?: string; entityField?: string; @@ -17358,6 +20476,7 @@ export interface StorageModuleInput { hasPathShares?: boolean; hasVersioning?: boolean; id?: string; + key?: string; maxBulkFiles?: number; maxBulkTotalSize?: string; maxFilenameLength?: number; @@ -17378,11 +20497,9 @@ export interface StorageModuleInput { } /** An input for mutations affecting `TransferLogModule` */ export interface TransferLogModuleInput { - actorFkTableId?: string; apiName?: string; databaseId: string; entityField?: string; - entityFkTableId?: string; id?: string; interval?: string; prefix?: string; @@ -17392,6 +20509,7 @@ export interface TransferLogModuleInput { privateSchemaName?: string; publicSchemaName?: string; retention?: string; + rollupFunctionName?: string; schemaId?: string; scope: string; transferLogTableId?: string; @@ -17413,8 +20531,10 @@ export interface UserAuthModuleInput { forgotPasswordFunction?: string; id?: string; privateApiName?: string; + privateSchemaId?: string; requestCrossOriginTokenFunction?: string; resetPasswordFunction?: string; + revokeSessionTreeFunction?: string; schemaId?: string; secretsTableId?: string; sendAccountDeletionEmailFunction?: string; @@ -17426,6 +20546,7 @@ export interface UserAuthModuleInput { signInFunction?: string; signOutFunction?: string; signUpFunction?: string; + sweepExpiredSessionsFunction?: string; usersTableId?: string; verifyEmailFunction?: string; verifyPasswordFunction?: string; @@ -17450,6 +20571,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 +20638,7 @@ export interface WebauthnCredentialsModuleInput { export interface WebhookModuleInput { apiName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; functionInvocationModuleId?: string; @@ -17664,6 +20795,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 +20858,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. */ @@ -17731,6 +20895,8 @@ export interface AppModuleFilter { appComponentsTableId?: UUIDFilter; /** Filter by the object’s `appComponentsTableName` field. */ appComponentsTableName?: StringFilter; + /** Filter by the object’s `appStoreIdentitiesTableName` field. */ + appStoreIdentitiesTableName?: StringFilter; /** Filter by the object’s `appsTableId` field. */ appsTableId?: UUIDFilter; /** Filter by the object’s `appsTableName` field. */ @@ -17743,8 +20909,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 +20954,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 +21011,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 +21021,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. */ @@ -17889,6 +21059,10 @@ export interface RouteModuleFilter { provisions?: JSONFilter; /** Filter by the object’s `publicSchemaName` field. */ publicSchemaName?: StringFilter; + /** Filter by the object’s `redirectsTableId` field. */ + redirectsTableId?: UUIDFilter; + /** Filter by the object’s `redirectsTableName` field. */ + redirectsTableName?: StringFilter; /** Filter by the object’s `resolverFunctionName` field. */ resolverFunctionName?: StringFilter; /** Filter by the object’s `routeBindingsTableId` field. */ @@ -17903,6 +21077,10 @@ export interface RouteModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `scope` field. */ scope?: StringFilter; + /** Filter by the object’s `servingSiteField` field. */ + servingSiteField?: StringFilter; + /** Filter by the object’s `storageKey` field. */ + storageKey?: StringFilter; } /** A filter to be used against `SiteSurfaceModule` object types. All fields are combined with a logical ‘and.’ */ export interface SiteSurfaceModuleFilter { @@ -17918,8 +21096,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. */ @@ -17972,6 +21154,10 @@ export interface SiteSurfaceModuleFilter { siteModulesTableId?: UUIDFilter; /** Filter by the object’s `siteModulesTableName` field. */ siteModulesTableName?: StringFilter; + /** Filter by the object’s `siteReleasesTableId` field. */ + siteReleasesTableId?: UUIDFilter; + /** Filter by the object’s `siteReleasesTableName` field. */ + siteReleasesTableName?: StringFilter; /** Filter by the object’s `siteThemesTableId` field. */ siteThemesTableId?: UUIDFilter; /** Filter by the object’s `siteThemesTableName` field. */ @@ -17984,6 +21170,8 @@ export interface SiteSurfaceModuleFilter { sitesTableId?: UUIDFilter; /** Filter by the object’s `sitesTableName` field. */ sitesTableName?: StringFilter; + /** Filter by the object’s `storageKey` field. */ + storageKey?: StringFilter; } /** A filter to be used against `WebhookModule` object types. All fields are combined with a logical ‘and.’ */ export interface WebhookModuleFilter { @@ -17993,8 +21181,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 +21252,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. */ @@ -18115,36 +21303,44 @@ export interface FunctionDeploymentModuleFilter { /** Filter by the object’s `scope` field. */ scope?: StringFilter; } -/** A filter to be used against `HttpRouteModule` object types. All fields are combined with a logical ‘and.’ */ -export interface HttpRouteModuleFilter { +/** A filter to be used against `GraphExecutionModule` object types. All fields are combined with a logical ‘and.’ */ +export interface GraphExecutionModuleFilter { /** Checks for all expressions in this list. */ - and?: HttpRouteModuleFilter[]; + and?: GraphExecutionModuleFilter[]; /** 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 `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. */ entityTableId?: UUIDFilter; - /** Filter by the object’s `functionModule` relation. */ - functionModule?: FunctionModuleFilter; - /** A related `functionModule` exists. */ - functionModuleExists?: boolean; - /** Filter by the object’s `functionModuleId` field. */ - functionModuleId?: UUIDFilter; - /** Filter by the object’s `httpRoutesTableId` field. */ - httpRoutesTableId?: UUIDFilter; - /** Filter by the object’s `httpRoutesTableName` field. */ - httpRoutesTableName?: StringFilter; + /** Filter by the object’s `executionsTableId` field. */ + executionsTableId?: UUIDFilter; + /** Filter by the object’s `executionsTableName` field. */ + executionsTableName?: StringFilter; + /** Filter by the object’s `graphModule` relation. */ + graphModule?: GraphModuleFilter; + /** Filter by the object’s `graphModuleId` field. */ + graphModuleId?: UUIDFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `nodeStatesTableId` field. */ + nodeStatesTableId?: UUIDFilter; + /** Filter by the object’s `nodeStatesTableName` field. */ + nodeStatesTableName?: StringFilter; /** Negates the expression. */ - not?: HttpRouteModuleFilter; + not?: GraphExecutionModuleFilter; /** Checks for any expressions in this list. */ - or?: HttpRouteModuleFilter[]; + or?: GraphExecutionModuleFilter[]; + /** Filter by the object’s `outputsTableId` field. */ + outputsTableId?: UUIDFilter; + /** Filter by the object’s `outputsTableName` field. */ + outputsTableName?: StringFilter; /** Filter by the object’s `policies` field. */ policies?: JSONFilter; /** Filter by the object’s `prefix` field. */ @@ -18159,63 +21355,35 @@ export interface HttpRouteModuleFilter { provisions?: JSONFilter; /** Filter by the object’s `publicSchemaName` field. */ publicSchemaName?: StringFilter; - /** Filter by the object’s `resolverFunctionName` field. */ - resolverFunctionName?: StringFilter; - /** Filter by the object’s `resourceModule` relation. */ - resourceModule?: ResourceModuleFilter; - /** A related `resourceModule` exists. */ - resourceModuleExists?: boolean; - /** Filter by the object’s `resourceModuleId` field. */ - resourceModuleId?: UUIDFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `scope` field. */ scope?: StringFilter; - /** Filter by the object’s `storageModule` relation. */ - storageModule?: StorageModuleFilter; - /** A related `storageModule` exists. */ - storageModuleExists?: boolean; - /** Filter by the object’s `storageModuleId` field. */ - storageModuleId?: UUIDFilter; } -/** A filter to be used against `GraphExecutionModule` object types. All fields are combined with a logical ‘and.’ */ -export interface GraphExecutionModuleFilter { +/** 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?: GraphExecutionModuleFilter[]; + 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 `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; - /** Filter by the object’s `entityField` field. */ - entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ entityTableId?: UUIDFilter; - /** Filter by the object’s `executionsTableId` field. */ - executionsTableId?: UUIDFilter; - /** Filter by the object’s `executionsTableName` field. */ - executionsTableName?: StringFilter; - /** Filter by the object’s `graphModule` relation. */ - graphModule?: GraphModuleFilter; - /** Filter by the object’s `graphModuleId` field. */ - graphModuleId?: UUIDFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `nodeStatesTableId` field. */ - nodeStatesTableId?: UUIDFilter; - /** Filter by the object’s `nodeStatesTableName` field. */ - nodeStatesTableName?: StringFilter; + /** Filter by the object’s `merkleStoreModule` relation. */ + merkleStoreModule?: MerkleStoreModuleFilter; + /** Filter by the object’s `merkleStoreModuleId` field. */ + merkleStoreModuleId?: UUIDFilter; /** Negates the expression. */ - not?: GraphExecutionModuleFilter; + not?: ContentPresetModuleFilter; /** Checks for any expressions in this list. */ - or?: GraphExecutionModuleFilter[]; - /** Filter by the object’s `outputsTableId` field. */ - outputsTableId?: UUIDFilter; - /** Filter by the object’s `outputsTableName` field. */ - outputsTableName?: StringFilter; + or?: ContentPresetModuleFilter[]; /** Filter by the object’s `policies` field. */ policies?: JSONFilter; /** Filter by the object’s `prefix` field. */ @@ -18228,12 +21396,14 @@ export interface GraphExecutionModuleFilter { 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 `storeName` field. */ + storeName?: StringFilter; } /** A filter to be used against `DbPresetModule` object types. All fields are combined with a logical ‘and.’ */ export interface DbPresetModuleFilter { @@ -18290,8 +21460,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. */ @@ -18331,6 +21501,53 @@ export interface GraphModuleFilter { /** Filter by the object’s `scope` field. */ scope?: StringFilter; } +/** A filter to be used against `K8sAdmissionModule` object types. All fields are combined with a logical ‘and.’ */ +export interface K8sAdmissionModuleFilter { + /** Checks for all expressions in this list. */ + and?: K8sAdmissionModuleFilter[]; + /** 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 `k8sResourceKindsTableId` field. */ + k8sResourceKindsTableId?: UUIDFilter; + /** Filter by the object’s `k8sSpecRulesTableId` field. */ + k8sSpecRulesTableId?: UUIDFilter; + /** Filter by the object’s `merkleStoreModule` relation. */ + merkleStoreModule?: MerkleStoreModuleFilter; + /** Filter by the object’s `merkleStoreModuleId` field. */ + merkleStoreModuleId?: UUIDFilter; + /** Negates the expression. */ + not?: K8sAdmissionModuleFilter; + /** Checks for any expressions in this list. */ + or?: K8sAdmissionModuleFilter[]; + /** 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 `PagesModule` object types. All fields are combined with a logical ‘and.’ */ export interface PagesModuleFilter { /** Checks for all expressions in this list. */ @@ -18359,6 +21576,14 @@ export interface PagesModuleFilter { policies?: JSONFilter; /** Filter by the object’s `prefix` field. */ prefix?: StringFilter; + /** Filter by the object’s `previewCommitFunctionName` field. */ + previewCommitFunctionName?: StringFilter; + /** Filter by the object’s `previewSetFunctionName` field. */ + previewSetFunctionName?: StringFilter; + /** Filter by the object’s `previewTokenMintFunctionName` field. */ + previewTokenMintFunctionName?: StringFilter; + /** Filter by the object’s `previewTokenVerifierFunctionName` field. */ + previewTokenVerifierFunctionName?: StringFilter; /** Filter by the object’s `privateApiName` field. */ privateApiName?: StringFilter; /** Filter by the object’s `privateSchemaId` field. */ @@ -18371,6 +21596,8 @@ export interface PagesModuleFilter { publicSchemaId?: UUIDFilter; /** Filter by the object’s `publicSchemaName` field. */ publicSchemaName?: StringFilter; + /** Filter by the object’s `releaseManifestFunctionName` field. */ + releaseManifestFunctionName?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: StringFilter; /** Filter by the object’s `siteSurfaceModule` relation. */ @@ -18390,18 +21617,18 @@ export interface ResourceModuleFilter { and?: ResourceModuleFilter[]; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; + /** Filter by the object’s `builderBindingsTableId` field. */ + builderBindingsTableId?: UUIDFilter; + /** Filter by the object’s `builderBindingsTableName` field. */ + builderBindingsTableName?: 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. */ entityTableId?: UUIDFilter; - /** Filter by the object’s `httpRouteModules` relation. */ - httpRouteModules?: ResourceModuleToManyHttpRouteModuleFilter; - /** `httpRouteModules` exist. */ - httpRouteModulesExist?: boolean; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `installationStoreName` field. */ @@ -18436,6 +21663,10 @@ export interface ResourceModuleFilter { provisions?: JSONFilter; /** Filter by the object’s `publicSchemaName` field. */ publicSchemaName?: StringFilter; + /** Filter by the object’s `registryBindingsTableId` field. */ + registryBindingsTableId?: UUIDFilter; + /** Filter by the object’s `registryBindingsTableName` field. */ + registryBindingsTableName?: StringFilter; /** Filter by the object’s `requirementsStateViewName` field. */ requirementsStateViewName?: StringFilter; /** Filter by the object’s `resolvedRequirementsViewName` field. */ @@ -18477,6 +21708,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 +22016,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. */ @@ -18721,18 +22116,26 @@ export interface CatalogModuleFilter { appModules?: CatalogModuleToManyAppModuleFilter; /** `appModules` exist. */ appModulesExist?: boolean; + /** Filter by the object’s `appStoreIdentitiesTableId` field. */ + appStoreIdentitiesTableId?: UUIDFilter; + /** Filter by the object’s `appStoreIdentitiesTableName` field. */ + appStoreIdentitiesTableName?: StringFilter; /** 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 `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `domainModules` relation. */ domainModules?: CatalogModuleToManyDomainModuleFilter; /** `domainModules` exist. */ @@ -18749,6 +22152,14 @@ export interface CatalogModuleFilter { functionsTableName?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `imagesTableId` field. */ + imagesTableId?: UUIDFilter; + /** Filter by the object’s `imagesTableName` field. */ + imagesTableName?: StringFilter; + /** Filter by the object’s `managedDomainsTableId` field. */ + managedDomainsTableId?: UUIDFilter; + /** Filter by the object’s `managedDomainsTableName` field. */ + managedDomainsTableName?: StringFilter; /** Filter by the object’s `namespacesTableId` field. */ namespacesTableId?: UUIDFilter; /** Filter by the object’s `namespacesTableName` field. */ @@ -18765,6 +22176,10 @@ export interface CatalogModuleFilter { provisions?: JSONFilter; /** Filter by the object’s `publicSchemaName` field. */ publicSchemaName?: StringFilter; + /** Filter by the object’s `redirectsTableId` field. */ + redirectsTableId?: UUIDFilter; + /** Filter by the object’s `redirectsTableName` field. */ + redirectsTableName?: StringFilter; /** Filter by the object’s `resourceDefinitionsTableId` field. */ resourceDefinitionsTableId?: UUIDFilter; /** Filter by the object’s `resourceDefinitionsTableName` field. */ @@ -18822,8 +22237,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 +22294,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. */ @@ -18895,10 +22310,6 @@ export interface FunctionModuleFilter { functionDeploymentModulesExist?: boolean; /** Filter by the object’s `hasCron` field. */ hasCron?: BooleanFilter; - /** Filter by the object’s `httpRouteModules` relation. */ - httpRouteModules?: FunctionModuleToManyHttpRouteModuleFilter; - /** `httpRouteModules` exist. */ - httpRouteModulesExist?: boolean; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Negates the expression. */ @@ -18925,6 +22336,8 @@ export interface FunctionModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `scope` field. */ scope?: StringFilter; + /** Filter by the object’s `storageKey` field. */ + storageKey?: StringFilter; /** Filter by the object’s `webhookModules` relation. */ webhookModules?: FunctionModuleToManyWebhookModuleFilter; /** `webhookModules` exist. */ @@ -18983,8 +22396,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. */ @@ -19034,6 +22447,77 @@ export interface NamespaceModuleFilter { /** `webhookModules` exist. */ webhookModulesExist?: boolean; } +/** A filter to be used against `MerkleStoreModule` object types. All fields are combined with a logical ‘and.’ */ +export interface MerkleStoreModuleFilter { + /** Checks for all expressions in this list. */ + 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. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `dbPresetModules` relation. */ + dbPresetModules?: MerkleStoreModuleToManyDbPresetModuleFilter; + /** `dbPresetModules` exist. */ + dbPresetModulesExist?: boolean; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `functionPrefix` field. */ + functionPrefix?: StringFilter; + /** Filter by the object’s `graphModules` relation. */ + graphModules?: MerkleStoreModuleToManyGraphModuleFilter; + /** `graphModules` exist. */ + graphModulesExist?: boolean; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `k8sAdmissionModules` relation. */ + k8sAdmissionModules?: MerkleStoreModuleToManyK8sAdmissionModuleFilter; + /** `k8sAdmissionModules` exist. */ + k8sAdmissionModulesExist?: boolean; + /** Negates the expression. */ + not?: MerkleStoreModuleFilter; + /** Filter by the object’s `objectTableId` field. */ + objectTableId?: UUIDFilter; + /** Checks for any expressions in this list. */ + or?: MerkleStoreModuleFilter[]; + /** Filter by the object’s `pagesModules` relation. */ + pagesModules?: MerkleStoreModuleToManyPagesModuleFilter; + /** `pagesModules` exist. */ + pagesModulesExist?: boolean; + /** 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 `refTableId` field. */ + refTableId?: UUIDFilter; + /** Filter by the object’s `resourceModules` relation. */ + resourceModules?: MerkleStoreModuleToManyResourceModuleFilter; + /** `resourceModules` exist. */ + resourceModulesExist?: boolean; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `storeTableId` field. */ + storeTableId?: UUIDFilter; +} /** A filter to be used against `StorageModule` object types. All fields are combined with a logical ‘and.’ */ export interface StorageModuleFilter { /** Filter by the object’s `allowedOrigins` field. */ @@ -19054,10 +22538,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 +22552,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. */ @@ -19084,12 +22572,10 @@ export interface StorageModuleFilter { hasPathShares?: BooleanFilter; /** Filter by the object’s `hasVersioning` field. */ hasVersioning?: BooleanFilter; - /** Filter by the object’s `httpRouteModules` relation. */ - httpRouteModules?: StorageModuleToManyHttpRouteModuleFilter; - /** `httpRouteModules` exist. */ - httpRouteModulesExist?: boolean; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `key` field. */ + key?: StringFilter; /** Filter by the object’s `maxBulkFiles` field. */ maxBulkFiles?: IntFilter; /** Filter by the object’s `maxBulkTotalSize` field. */ @@ -19118,102 +22604,16 @@ export interface StorageModuleFilter { provisions?: JSONFilter; /** Filter by the object’s `publicSchemaName` field. */ publicSchemaName?: StringFilter; - /** Filter by the object’s `publicUrlPrefix` field. */ - publicUrlPrefix?: StringFilter; - /** Filter by the object’s `restrictReads` field. */ - restrictReads?: BooleanFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; - /** Filter by the object’s `uploadUrlExpirySeconds` field. */ - uploadUrlExpirySeconds?: IntFilter; -} -/** A filter to be used against `MerkleStoreModule` object types. All fields are combined with a logical ‘and.’ */ -export interface MerkleStoreModuleFilter { - /** Checks for all expressions in this list. */ - and?: MerkleStoreModuleFilter[]; - /** Filter by the object’s `apiName` field. */ - apiName?: StringFilter; - /** Filter by the object’s `commitTableId` field. */ - commitTableId?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `dbPresetModules` relation. */ - dbPresetModules?: MerkleStoreModuleToManyDbPresetModuleFilter; - /** `dbPresetModules` exist. */ - dbPresetModulesExist?: boolean; - /** Filter by the object’s `entityField` field. */ - entityField?: StringFilter; - /** Filter by the object’s `functionPrefix` field. */ - functionPrefix?: StringFilter; - /** Filter by the object’s `graphModules` relation. */ - graphModules?: MerkleStoreModuleToManyGraphModuleFilter; - /** `graphModules` exist. */ - graphModulesExist?: boolean; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Negates the expression. */ - not?: MerkleStoreModuleFilter; - /** Filter by the object’s `objectTableId` field. */ - objectTableId?: UUIDFilter; - /** Checks for any expressions in this list. */ - or?: MerkleStoreModuleFilter[]; - /** Filter by the object’s `pagesModules` relation. */ - 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. */ - 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 `refTableId` field. */ - refTableId?: UUIDFilter; - /** Filter by the object’s `resourceModules` relation. */ - resourceModules?: MerkleStoreModuleToManyResourceModuleFilter; - /** `resourceModules` exist. */ - resourceModulesExist?: boolean; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; - /** 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[]; + /** Filter by the object’s `publicUrlPrefix` field. */ + publicUrlPrefix?: StringFilter; + /** Filter by the object’s `restrictReads` field. */ + restrictReads?: BooleanFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `uploadUrlExpirySeconds` field. */ + uploadUrlExpirySeconds?: IntFilter; } /** A filter to be used against BigInt fields. All fields are combined with a logical ‘and.’ */ export interface BigIntFilter { @@ -19258,82 +22658,19 @@ export type CopyTemplateToBlueprintPayloadSelect = { 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; + /** The logical bucket row that was queued for reconciliation. */ + bucketId: string; + bucketKey: string; + /** The reconciler job enqueued to provision this bucket. */ + jobId: string; + /** The physical bucket name already recorded, or null when reconciliation has not completed. */ + physicalName?: string | null; } 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; -} -export type ProvisionTablePayloadSelect = { - clientMutationId?: boolean; - result?: { - select: ProvisionTableRecordSelect; - }; -}; -export interface ProvisionUniqueConstraintPayload { - clientMutationId?: string | null; -} -export type ProvisionUniqueConstraintPayloadSelect = { - clientMutationId?: boolean; + bucketId?: boolean; + bucketKey?: boolean; + jobId?: boolean; + physicalName?: boolean; }; export interface CreateAgentModulePayload { /** The `AgentModule` that was created by this mutation. */ @@ -19695,6 +23032,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; @@ -19740,6 +23122,51 @@ export type DeleteCatalogModulePayloadSelect = { }; clientMutationId?: boolean; }; +export interface CreateClusterModulePayload { + clientMutationId?: string | null; + /** The `ClusterModule` that was created by this mutation. */ + clusterModule?: ClusterModule | null; + clusterModuleEdge?: ClusterModuleEdge | null; +} +export type CreateClusterModulePayloadSelect = { + clientMutationId?: boolean; + clusterModule?: { + select: ClusterModuleSelect; + }; + clusterModuleEdge?: { + select: ClusterModuleEdgeSelect; + }; +}; +export interface UpdateClusterModulePayload { + clientMutationId?: string | null; + /** The `ClusterModule` that was updated by this mutation. */ + clusterModule?: ClusterModule | null; + clusterModuleEdge?: ClusterModuleEdge | null; +} +export type UpdateClusterModulePayloadSelect = { + clientMutationId?: boolean; + clusterModule?: { + select: ClusterModuleSelect; + }; + clusterModuleEdge?: { + select: ClusterModuleEdgeSelect; + }; +}; +export interface DeleteClusterModulePayload { + clientMutationId?: string | null; + /** The `ClusterModule` that was deleted by this mutation. */ + clusterModule?: ClusterModule | null; + clusterModuleEdge?: ClusterModuleEdge | null; +} +export type DeleteClusterModulePayloadSelect = { + clientMutationId?: boolean; + clusterModule?: { + select: ClusterModuleSelect; + }; + clusterModuleEdge?: { + select: ClusterModuleEdgeSelect; + }; +}; export interface CreateComputeLogModulePayload { clientMutationId?: string | null; /** The `ComputeLogModule` that was created by this mutation. */ @@ -19785,51 +23212,6 @@ export type DeleteComputeLogModulePayloadSelect = { select: ComputeLogModuleEdgeSelect; }; }; -export interface CreateConfigSecretsUserModulePayload { - clientMutationId?: string | null; - /** The `ConfigSecretsUserModule` that was created by this mutation. */ - configSecretsUserModule?: ConfigSecretsUserModule | null; - configSecretsUserModuleEdge?: ConfigSecretsUserModuleEdge | null; -} -export type CreateConfigSecretsUserModulePayloadSelect = { - clientMutationId?: boolean; - configSecretsUserModule?: { - select: ConfigSecretsUserModuleSelect; - }; - configSecretsUserModuleEdge?: { - select: ConfigSecretsUserModuleEdgeSelect; - }; -}; -export interface UpdateConfigSecretsUserModulePayload { - clientMutationId?: string | null; - /** The `ConfigSecretsUserModule` that was updated by this mutation. */ - configSecretsUserModule?: ConfigSecretsUserModule | null; - configSecretsUserModuleEdge?: ConfigSecretsUserModuleEdge | null; -} -export type UpdateConfigSecretsUserModulePayloadSelect = { - clientMutationId?: boolean; - configSecretsUserModule?: { - select: ConfigSecretsUserModuleSelect; - }; - configSecretsUserModuleEdge?: { - select: ConfigSecretsUserModuleEdgeSelect; - }; -}; -export interface DeleteConfigSecretsUserModulePayload { - clientMutationId?: string | null; - /** The `ConfigSecretsUserModule` that was deleted by this mutation. */ - configSecretsUserModule?: ConfigSecretsUserModule | null; - configSecretsUserModuleEdge?: ConfigSecretsUserModuleEdge | null; -} -export type DeleteConfigSecretsUserModulePayloadSelect = { - clientMutationId?: boolean; - configSecretsUserModule?: { - select: ConfigSecretsUserModuleSelect; - }; - configSecretsUserModuleEdge?: { - select: ConfigSecretsUserModuleEdgeSelect; - }; -}; export interface CreateConnectedAccountsModulePayload { clientMutationId?: string | null; /** The `ConnectedAccountsModule` that was created by this mutation. */ @@ -19875,6 +23257,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 +23392,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 +23887,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 +24067,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. */ @@ -20820,51 +24382,6 @@ export type DeleteHierarchyModulePayloadSelect = { select: HierarchyModuleEdgeSelect; }; }; -export interface CreateHttpRouteModulePayload { - clientMutationId?: string | null; - /** The `HttpRouteModule` that was created by this mutation. */ - httpRouteModule?: HttpRouteModule | null; - httpRouteModuleEdge?: HttpRouteModuleEdge | null; -} -export type CreateHttpRouteModulePayloadSelect = { - clientMutationId?: boolean; - httpRouteModule?: { - select: HttpRouteModuleSelect; - }; - httpRouteModuleEdge?: { - select: HttpRouteModuleEdgeSelect; - }; -}; -export interface UpdateHttpRouteModulePayload { - clientMutationId?: string | null; - /** The `HttpRouteModule` that was updated by this mutation. */ - httpRouteModule?: HttpRouteModule | null; - httpRouteModuleEdge?: HttpRouteModuleEdge | null; -} -export type UpdateHttpRouteModulePayloadSelect = { - clientMutationId?: boolean; - httpRouteModule?: { - select: HttpRouteModuleSelect; - }; - httpRouteModuleEdge?: { - select: HttpRouteModuleEdgeSelect; - }; -}; -export interface DeleteHttpRouteModulePayload { - clientMutationId?: string | null; - /** The `HttpRouteModule` that was deleted by this mutation. */ - httpRouteModule?: HttpRouteModule | null; - httpRouteModuleEdge?: HttpRouteModuleEdge | null; -} -export type DeleteHttpRouteModulePayloadSelect = { - clientMutationId?: boolean; - httpRouteModule?: { - select: HttpRouteModuleSelect; - }; - httpRouteModuleEdge?: { - select: HttpRouteModuleEdgeSelect; - }; -}; export interface CreateI18NModulePayload { clientMutationId?: string | null; /** The `I18NModule` that was created by this mutation. */ @@ -20955,6 +24472,51 @@ export type DeleteIdentityProvidersModulePayloadSelect = { select: IdentityProvidersModuleEdgeSelect; }; }; +export interface CreateImageModulePayload { + clientMutationId?: string | null; + /** The `ImageModule` that was created by this mutation. */ + imageModule?: ImageModule | null; + imageModuleEdge?: ImageModuleEdge | null; +} +export type CreateImageModulePayloadSelect = { + clientMutationId?: boolean; + imageModule?: { + select: ImageModuleSelect; + }; + imageModuleEdge?: { + select: ImageModuleEdgeSelect; + }; +}; +export interface UpdateImageModulePayload { + clientMutationId?: string | null; + /** The `ImageModule` that was updated by this mutation. */ + imageModule?: ImageModule | null; + imageModuleEdge?: ImageModuleEdge | null; +} +export type UpdateImageModulePayloadSelect = { + clientMutationId?: boolean; + imageModule?: { + select: ImageModuleSelect; + }; + imageModuleEdge?: { + select: ImageModuleEdgeSelect; + }; +}; +export interface DeleteImageModulePayload { + clientMutationId?: string | null; + /** The `ImageModule` that was deleted by this mutation. */ + imageModule?: ImageModule | null; + imageModuleEdge?: ImageModuleEdge | null; +} +export type DeleteImageModulePayloadSelect = { + clientMutationId?: boolean; + imageModule?: { + select: ImageModuleSelect; + }; + imageModuleEdge?: { + select: ImageModuleEdgeSelect; + }; +}; export interface CreateInferenceLogModulePayload { clientMutationId?: string | null; /** The `InferenceLogModule` that was created by this mutation. */ @@ -21135,6 +24697,51 @@ export type DeleteIntegrationProvidersModulePayloadSelect = { select: IntegrationProvidersModuleEdgeSelect; }; }; +export interface CreateInternalConfigModulePayload { + clientMutationId?: string | null; + /** The `InternalConfigModule` that was created by this mutation. */ + internalConfigModule?: InternalConfigModule | null; + internalConfigModuleEdge?: InternalConfigModuleEdge | null; +} +export type CreateInternalConfigModulePayloadSelect = { + clientMutationId?: boolean; + internalConfigModule?: { + select: InternalConfigModuleSelect; + }; + internalConfigModuleEdge?: { + select: InternalConfigModuleEdgeSelect; + }; +}; +export interface UpdateInternalConfigModulePayload { + clientMutationId?: string | null; + /** The `InternalConfigModule` that was updated by this mutation. */ + internalConfigModule?: InternalConfigModule | null; + internalConfigModuleEdge?: InternalConfigModuleEdge | null; +} +export type UpdateInternalConfigModulePayloadSelect = { + clientMutationId?: boolean; + internalConfigModule?: { + select: InternalConfigModuleSelect; + }; + internalConfigModuleEdge?: { + select: InternalConfigModuleEdgeSelect; + }; +}; +export interface DeleteInternalConfigModulePayload { + clientMutationId?: string | null; + /** The `InternalConfigModule` that was deleted by this mutation. */ + internalConfigModule?: InternalConfigModule | null; + internalConfigModuleEdge?: InternalConfigModuleEdge | null; +} +export type DeleteInternalConfigModulePayloadSelect = { + clientMutationId?: boolean; + internalConfigModule?: { + select: InternalConfigModuleSelect; + }; + internalConfigModuleEdge?: { + select: InternalConfigModuleEdgeSelect; + }; +}; export interface CreateInternalSecretsModulePayload { clientMutationId?: string | null; /** The `InternalSecretsModule` that was created by this mutation. */ @@ -21212,17 +24819,62 @@ export type UpdateInvitesModulePayloadSelect = { }; export interface DeleteInvitesModulePayload { clientMutationId?: string | null; - /** The `InvitesModule` that was deleted by this mutation. */ - invitesModule?: InvitesModule | null; - invitesModuleEdge?: InvitesModuleEdge | null; + /** The `InvitesModule` that was deleted by this mutation. */ + invitesModule?: InvitesModule | null; + invitesModuleEdge?: InvitesModuleEdge | null; +} +export type DeleteInvitesModulePayloadSelect = { + clientMutationId?: boolean; + invitesModule?: { + select: InvitesModuleSelect; + }; + invitesModuleEdge?: { + select: InvitesModuleEdgeSelect; + }; +}; +export interface CreateK8sAdmissionModulePayload { + clientMutationId?: string | null; + /** The `K8sAdmissionModule` that was created by this mutation. */ + k8sAdmissionModule?: K8sAdmissionModule | null; + k8sAdmissionModuleEdge?: K8sAdmissionModuleEdge | null; +} +export type CreateK8sAdmissionModulePayloadSelect = { + clientMutationId?: boolean; + k8sAdmissionModule?: { + select: K8sAdmissionModuleSelect; + }; + k8sAdmissionModuleEdge?: { + select: K8sAdmissionModuleEdgeSelect; + }; +}; +export interface UpdateK8sAdmissionModulePayload { + clientMutationId?: string | null; + /** The `K8sAdmissionModule` that was updated by this mutation. */ + k8sAdmissionModule?: K8sAdmissionModule | null; + k8sAdmissionModuleEdge?: K8sAdmissionModuleEdge | null; +} +export type UpdateK8sAdmissionModulePayloadSelect = { + clientMutationId?: boolean; + k8sAdmissionModule?: { + select: K8sAdmissionModuleSelect; + }; + k8sAdmissionModuleEdge?: { + select: K8sAdmissionModuleEdgeSelect; + }; +}; +export interface DeleteK8sAdmissionModulePayload { + clientMutationId?: string | null; + /** The `K8sAdmissionModule` that was deleted by this mutation. */ + k8sAdmissionModule?: K8sAdmissionModule | null; + k8sAdmissionModuleEdge?: K8sAdmissionModuleEdge | null; } -export type DeleteInvitesModulePayloadSelect = { +export type DeleteK8sAdmissionModulePayloadSelect = { clientMutationId?: boolean; - invitesModule?: { - select: InvitesModuleSelect; + k8sAdmissionModule?: { + select: K8sAdmissionModuleSelect; }; - invitesModuleEdge?: { - select: InvitesModuleEdgeSelect; + k8sAdmissionModuleEdge?: { + select: K8sAdmissionModuleEdgeSelect; }; }; export interface CreateLimitsModulePayload { @@ -21270,6 +24922,51 @@ export type DeleteLimitsModulePayloadSelect = { select: LimitsModuleEdgeSelect; }; }; +export interface CreateMachineModulePayload { + clientMutationId?: string | null; + /** The `MachineModule` that was created by this mutation. */ + machineModule?: MachineModule | null; + machineModuleEdge?: MachineModuleEdge | null; +} +export type CreateMachineModulePayloadSelect = { + clientMutationId?: boolean; + machineModule?: { + select: MachineModuleSelect; + }; + machineModuleEdge?: { + select: MachineModuleEdgeSelect; + }; +}; +export interface UpdateMachineModulePayload { + clientMutationId?: string | null; + /** The `MachineModule` that was updated by this mutation. */ + machineModule?: MachineModule | null; + machineModuleEdge?: MachineModuleEdge | null; +} +export type UpdateMachineModulePayloadSelect = { + clientMutationId?: boolean; + machineModule?: { + select: MachineModuleSelect; + }; + machineModuleEdge?: { + select: MachineModuleEdgeSelect; + }; +}; +export interface DeleteMachineModulePayload { + clientMutationId?: string | null; + /** The `MachineModule` that was deleted by this mutation. */ + machineModule?: MachineModule | null; + machineModuleEdge?: MachineModuleEdge | null; +} +export type DeleteMachineModulePayloadSelect = { + clientMutationId?: boolean; + machineModule?: { + select: MachineModuleSelect; + }; + machineModuleEdge?: { + select: MachineModuleEdgeSelect; + }; +}; export interface CreateMembershipTypesModulePayload { clientMutationId?: string | null; /** The `MembershipTypesModule` that was created by this mutation. */ @@ -21495,6 +25192,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 +25282,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. */ @@ -21900,6 +25597,51 @@ export type DeleteRealtimeModulePayloadSelect = { select: RealtimeModuleEdgeSelect; }; }; +export interface CreateRefusalLogModulePayload { + clientMutationId?: string | null; + /** The `RefusalLogModule` that was created by this mutation. */ + refusalLogModule?: RefusalLogModule | null; + refusalLogModuleEdge?: RefusalLogModuleEdge | null; +} +export type CreateRefusalLogModulePayloadSelect = { + clientMutationId?: boolean; + refusalLogModule?: { + select: RefusalLogModuleSelect; + }; + refusalLogModuleEdge?: { + select: RefusalLogModuleEdgeSelect; + }; +}; +export interface UpdateRefusalLogModulePayload { + clientMutationId?: string | null; + /** The `RefusalLogModule` that was updated by this mutation. */ + refusalLogModule?: RefusalLogModule | null; + refusalLogModuleEdge?: RefusalLogModuleEdge | null; +} +export type UpdateRefusalLogModulePayloadSelect = { + clientMutationId?: boolean; + refusalLogModule?: { + select: RefusalLogModuleSelect; + }; + refusalLogModuleEdge?: { + select: RefusalLogModuleEdgeSelect; + }; +}; +export interface DeleteRefusalLogModulePayload { + clientMutationId?: string | null; + /** The `RefusalLogModule` that was deleted by this mutation. */ + refusalLogModule?: RefusalLogModule | null; + refusalLogModuleEdge?: RefusalLogModuleEdge | null; +} +export type DeleteRefusalLogModulePayloadSelect = { + clientMutationId?: boolean; + refusalLogModule?: { + select: RefusalLogModuleSelect; + }; + refusalLogModuleEdge?: { + select: RefusalLogModuleEdgeSelect; + }; +}; export interface CreateRelationProvisionPayload { clientMutationId?: string | null; /** The `RelationProvision` that was created by this mutation. */ @@ -21945,6 +25687,51 @@ export type DeleteRelationProvisionPayloadSelect = { select: RelationProvisionEdgeSelect; }; }; +export interface CreateRepositoryModulePayload { + clientMutationId?: string | null; + /** The `RepositoryModule` that was created by this mutation. */ + repositoryModule?: RepositoryModule | null; + repositoryModuleEdge?: RepositoryModuleEdge | null; +} +export type CreateRepositoryModulePayloadSelect = { + clientMutationId?: boolean; + repositoryModule?: { + select: RepositoryModuleSelect; + }; + repositoryModuleEdge?: { + select: RepositoryModuleEdgeSelect; + }; +}; +export interface UpdateRepositoryModulePayload { + clientMutationId?: string | null; + /** The `RepositoryModule` that was updated by this mutation. */ + repositoryModule?: RepositoryModule | null; + repositoryModuleEdge?: RepositoryModuleEdge | null; +} +export type UpdateRepositoryModulePayloadSelect = { + clientMutationId?: boolean; + repositoryModule?: { + select: RepositoryModuleSelect; + }; + repositoryModuleEdge?: { + select: RepositoryModuleEdgeSelect; + }; +}; +export interface DeleteRepositoryModulePayload { + clientMutationId?: string | null; + /** The `RepositoryModule` that was deleted by this mutation. */ + repositoryModule?: RepositoryModule | null; + repositoryModuleEdge?: RepositoryModuleEdge | null; +} +export type DeleteRepositoryModulePayloadSelect = { + clientMutationId?: boolean; + repositoryModule?: { + select: RepositoryModuleSelect; + }; + repositoryModuleEdge?: { + select: RepositoryModuleEdgeSelect; + }; +}; export interface CreateResourceModulePayload { clientMutationId?: string | null; /** The `ResourceModule` that was created by this mutation. */ @@ -22080,6 +25867,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 +26362,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 +26632,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 +26728,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; @@ -22883,28 +26752,28 @@ export type CatalogModuleEdgeSelect = { select: CatalogModuleSelect; }; }; -/** A `ComputeLogModule` edge in the connection. */ -export interface ComputeLogModuleEdge { +/** A `ClusterModule` edge in the connection. */ +export interface ClusterModuleEdge { cursor?: string | null; - /** The `ComputeLogModule` at the end of the edge. */ - node?: ComputeLogModule | null; + /** The `ClusterModule` at the end of the edge. */ + node?: ClusterModule | null; } -export type ComputeLogModuleEdgeSelect = { +export type ClusterModuleEdgeSelect = { cursor?: boolean; node?: { - select: ComputeLogModuleSelect; + select: ClusterModuleSelect; }; }; -/** A `ConfigSecretsUserModule` edge in the connection. */ -export interface ConfigSecretsUserModuleEdge { +/** A `ComputeLogModule` edge in the connection. */ +export interface ComputeLogModuleEdge { cursor?: string | null; - /** The `ConfigSecretsUserModule` at the end of the edge. */ - node?: ConfigSecretsUserModule | null; + /** The `ComputeLogModule` at the end of the edge. */ + node?: ComputeLogModule | null; } -export type ConfigSecretsUserModuleEdgeSelect = { +export type ComputeLogModuleEdgeSelect = { cursor?: boolean; node?: { - select: ConfigSecretsUserModuleSelect; + select: ComputeLogModuleSelect; }; }; /** A `ConnectedAccountsModule` edge in the connection. */ @@ -22919,6 +26788,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 +26824,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 +26956,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 +27004,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; @@ -23171,18 +27088,6 @@ export type HierarchyModuleEdgeSelect = { select: HierarchyModuleSelect; }; }; -/** A `HttpRouteModule` edge in the connection. */ -export interface HttpRouteModuleEdge { - cursor?: string | null; - /** The `HttpRouteModule` at the end of the edge. */ - node?: HttpRouteModule | null; -} -export type HttpRouteModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: HttpRouteModuleSelect; - }; -}; /** A `I18NModule` edge in the connection. */ export interface I18NModuleEdge { cursor?: string | null; @@ -23207,6 +27112,18 @@ export type IdentityProvidersModuleEdgeSelect = { select: IdentityProvidersModuleSelect; }; }; +/** A `ImageModule` edge in the connection. */ +export interface ImageModuleEdge { + cursor?: string | null; + /** The `ImageModule` at the end of the edge. */ + node?: ImageModule | null; +} +export type ImageModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: ImageModuleSelect; + }; +}; /** A `InferenceLogModule` edge in the connection. */ export interface InferenceLogModuleEdge { cursor?: string | null; @@ -23255,6 +27172,18 @@ export type IntegrationProvidersModuleEdgeSelect = { select: IntegrationProvidersModuleSelect; }; }; +/** A `InternalConfigModule` edge in the connection. */ +export interface InternalConfigModuleEdge { + cursor?: string | null; + /** The `InternalConfigModule` at the end of the edge. */ + node?: InternalConfigModule | null; +} +export type InternalConfigModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: InternalConfigModuleSelect; + }; +}; /** A `InternalSecretsModule` edge in the connection. */ export interface InternalSecretsModuleEdge { cursor?: string | null; @@ -23279,6 +27208,18 @@ export type InvitesModuleEdgeSelect = { select: InvitesModuleSelect; }; }; +/** A `K8sAdmissionModule` edge in the connection. */ +export interface K8sAdmissionModuleEdge { + cursor?: string | null; + /** The `K8sAdmissionModule` at the end of the edge. */ + node?: K8sAdmissionModule | null; +} +export type K8sAdmissionModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: K8sAdmissionModuleSelect; + }; +}; /** A `LimitsModule` edge in the connection. */ export interface LimitsModuleEdge { cursor?: string | null; @@ -23291,6 +27232,18 @@ export type LimitsModuleEdgeSelect = { select: LimitsModuleSelect; }; }; +/** A `MachineModule` edge in the connection. */ +export interface MachineModuleEdge { + cursor?: string | null; + /** The `MachineModule` at the end of the edge. */ + node?: MachineModule | null; +} +export type MachineModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: MachineModuleSelect; + }; +}; /** A `MembershipTypesModule` edge in the connection. */ export interface MembershipTypesModuleEdge { cursor?: string | null; @@ -23351,28 +27304,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. */ @@ -23459,6 +27412,18 @@ export type RealtimeModuleEdgeSelect = { select: RealtimeModuleSelect; }; }; +/** A `RefusalLogModule` edge in the connection. */ +export interface RefusalLogModuleEdge { + cursor?: string | null; + /** The `RefusalLogModule` at the end of the edge. */ + node?: RefusalLogModule | null; +} +export type RefusalLogModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: RefusalLogModuleSelect; + }; +}; /** A `RelationProvision` edge in the connection. */ export interface RelationProvisionEdge { cursor?: string | null; @@ -23471,6 +27436,18 @@ export type RelationProvisionEdgeSelect = { select: RelationProvisionSelect; }; }; +/** A `RepositoryModule` edge in the connection. */ +export interface RepositoryModuleEdge { + cursor?: string | null; + /** The `RepositoryModule` at the end of the edge. */ + node?: RepositoryModule | null; +} +export type RepositoryModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: RepositoryModuleSelect; + }; +}; /** A `ResourceModule` edge in the connection. */ export interface ResourceModuleEdge { cursor?: string | null; @@ -23507,6 +27484,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 +27616,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/clusterModule.ts b/sdk/constructive-cli/src/modules/orm/models/clusterModule.ts new file mode 100644 index 0000000000..65ff1a8abd --- /dev/null +++ b/sdk/constructive-cli/src/modules/orm/models/clusterModule.ts @@ -0,0 +1,245 @@ +/** + * ClusterModule 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 { + ClusterModule, + ClusterModuleWithRelations, + ClusterModuleSelect, + ClusterModuleFilter, + ClusterModuleOrderBy, + CreateClusterModuleInput, + UpdateClusterModuleInput, + ClusterModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class ClusterModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + clusterModules: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'ClusterModule', + 'clusterModules', + 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, + }, + 'ClusterModuleFilter', + 'ClusterModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ClusterModule', + fieldName: 'clusterModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + clusterModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'ClusterModule', + 'clusterModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'ClusterModuleFilter', + 'ClusterModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ClusterModule', + fieldName: 'clusterModule', + document, + variables, + transform: (data: { + clusterModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + clusterModule: data.clusterModules?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + clusterModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'ClusterModule', + 'clusterModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'ClusterModuleFilter', + 'ClusterModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ClusterModule', + fieldName: 'clusterModule', + document, + variables, + transform: (data: { + clusterModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + clusterModule: data.clusterModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createClusterModule: { + clusterModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'ClusterModule', + 'createClusterModule', + 'clusterModule', + args.select, + args.data, + 'CreateClusterModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ClusterModule', + fieldName: 'createClusterModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + ClusterModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateClusterModule: { + clusterModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'ClusterModule', + 'updateClusterModule', + 'clusterModule', + args.select, + args.where.id, + args.data, + 'UpdateClusterModuleInput', + 'id', + 'clusterModulePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ClusterModule', + fieldName: 'updateClusterModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteClusterModule: { + clusterModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'ClusterModule', + 'deleteClusterModule', + 'clusterModule', + { + id: args.where.id, + }, + 'DeleteClusterModuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ClusterModule', + fieldName: 'deleteClusterModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/modules/orm/models/configSecretsUserModule.ts b/sdk/constructive-cli/src/modules/orm/models/configSecretsUserModule.ts deleted file mode 100644 index bd97e5bf01..0000000000 --- a/sdk/constructive-cli/src/modules/orm/models/configSecretsUserModule.ts +++ /dev/null @@ -1,247 +0,0 @@ -/** - * ConfigSecretsUserModule model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - ConfigSecretsUserModule, - ConfigSecretsUserModuleWithRelations, - ConfigSecretsUserModuleSelect, - ConfigSecretsUserModuleFilter, - ConfigSecretsUserModuleOrderBy, - CreateConfigSecretsUserModuleInput, - UpdateConfigSecretsUserModuleInput, - ConfigSecretsUserModulePatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class ConfigSecretsUserModuleModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - configSecretsUserModules: ConnectionResult< - InferSelectResult - >; - }> { - const { document, variables } = buildFindManyDocument( - 'ConfigSecretsUserModule', - 'configSecretsUserModules', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'ConfigSecretsUserModuleFilter', - 'ConfigSecretsUserModuleOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'ConfigSecretsUserModule', - fieldName: 'configSecretsUserModules', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - configSecretsUserModule: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'ConfigSecretsUserModule', - 'configSecretsUserModules', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'ConfigSecretsUserModuleFilter', - 'ConfigSecretsUserModuleOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'ConfigSecretsUserModule', - fieldName: 'configSecretsUserModule', - document, - variables, - transform: (data: { - configSecretsUserModules?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - configSecretsUserModule: data.configSecretsUserModules?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - configSecretsUserModule: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'ConfigSecretsUserModule', - 'configSecretsUserModules', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'ConfigSecretsUserModuleFilter', - 'ConfigSecretsUserModuleOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'ConfigSecretsUserModule', - fieldName: 'configSecretsUserModule', - document, - variables, - transform: (data: { - configSecretsUserModules?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - configSecretsUserModule: data.configSecretsUserModules?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createConfigSecretsUserModule: { - configSecretsUserModule: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'ConfigSecretsUserModule', - 'createConfigSecretsUserModule', - 'configSecretsUserModule', - args.select, - args.data, - 'CreateConfigSecretsUserModuleInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'ConfigSecretsUserModule', - fieldName: 'createConfigSecretsUserModule', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - ConfigSecretsUserModulePatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateConfigSecretsUserModule: { - configSecretsUserModule: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'ConfigSecretsUserModule', - 'updateConfigSecretsUserModule', - 'configSecretsUserModule', - args.select, - args.where.id, - args.data, - 'UpdateConfigSecretsUserModuleInput', - 'id', - 'configSecretsUserModulePatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'ConfigSecretsUserModule', - fieldName: 'updateConfigSecretsUserModule', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteConfigSecretsUserModule: { - configSecretsUserModule: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'ConfigSecretsUserModule', - 'deleteConfigSecretsUserModule', - 'configSecretsUserModule', - { - id: args.where.id, - }, - 'DeleteConfigSecretsUserModuleInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'ConfigSecretsUserModule', - fieldName: 'deleteConfigSecretsUserModule', - document, - variables, - }); - } -} diff --git a/sdk/constructive-cli/src/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/emailSenderModule.ts b/sdk/constructive-cli/src/modules/orm/models/emailSenderModule.ts new file mode 100644 index 0000000000..3f5f0f6385 --- /dev/null +++ b/sdk/constructive-cli/src/modules/orm/models/emailSenderModule.ts @@ -0,0 +1,245 @@ +/** + * EmailSenderModule 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 { + EmailSenderModule, + EmailSenderModuleWithRelations, + EmailSenderModuleSelect, + EmailSenderModuleFilter, + EmailSenderModuleOrderBy, + CreateEmailSenderModuleInput, + UpdateEmailSenderModuleInput, + EmailSenderModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class EmailSenderModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + emailSenderModules: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'EmailSenderModule', + 'emailSenderModules', + 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, + }, + 'EmailSenderModuleFilter', + 'EmailSenderModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'EmailSenderModule', + fieldName: 'emailSenderModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + emailSenderModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'EmailSenderModule', + 'emailSenderModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'EmailSenderModuleFilter', + 'EmailSenderModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'EmailSenderModule', + fieldName: 'emailSenderModule', + document, + variables, + transform: (data: { + emailSenderModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + emailSenderModule: data.emailSenderModules?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + emailSenderModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'EmailSenderModule', + 'emailSenderModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'EmailSenderModuleFilter', + 'EmailSenderModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'EmailSenderModule', + fieldName: 'emailSenderModule', + document, + variables, + transform: (data: { + emailSenderModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + emailSenderModule: data.emailSenderModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createEmailSenderModule: { + emailSenderModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'EmailSenderModule', + 'createEmailSenderModule', + 'emailSenderModule', + args.select, + args.data, + 'CreateEmailSenderModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'EmailSenderModule', + fieldName: 'createEmailSenderModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + EmailSenderModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateEmailSenderModule: { + emailSenderModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'EmailSenderModule', + 'updateEmailSenderModule', + 'emailSenderModule', + args.select, + args.where.id, + args.data, + 'UpdateEmailSenderModuleInput', + 'id', + 'emailSenderModulePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'EmailSenderModule', + fieldName: 'updateEmailSenderModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteEmailSenderModule: { + emailSenderModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'EmailSenderModule', + 'deleteEmailSenderModule', + 'emailSenderModule', + { + id: args.where.id, + }, + 'DeleteEmailSenderModuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + 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/httpRouteModule.ts b/sdk/constructive-cli/src/modules/orm/models/httpRouteModule.ts deleted file mode 100644 index babf4d3085..0000000000 --- a/sdk/constructive-cli/src/modules/orm/models/httpRouteModule.ts +++ /dev/null @@ -1,245 +0,0 @@ -/** - * HttpRouteModule 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 { - HttpRouteModule, - HttpRouteModuleWithRelations, - HttpRouteModuleSelect, - HttpRouteModuleFilter, - HttpRouteModuleOrderBy, - CreateHttpRouteModuleInput, - UpdateHttpRouteModuleInput, - HttpRouteModulePatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class HttpRouteModuleModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - httpRouteModules: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'HttpRouteModule', - 'httpRouteModules', - 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, - }, - 'HttpRouteModuleFilter', - 'HttpRouteModuleOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'HttpRouteModule', - fieldName: 'httpRouteModules', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - httpRouteModule: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'HttpRouteModule', - 'httpRouteModules', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'HttpRouteModuleFilter', - 'HttpRouteModuleOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'HttpRouteModule', - fieldName: 'httpRouteModule', - document, - variables, - transform: (data: { - httpRouteModules?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - httpRouteModule: data.httpRouteModules?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - httpRouteModule: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'HttpRouteModule', - 'httpRouteModules', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'HttpRouteModuleFilter', - 'HttpRouteModuleOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'HttpRouteModule', - fieldName: 'httpRouteModule', - document, - variables, - transform: (data: { - httpRouteModules?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - httpRouteModule: data.httpRouteModules?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createHttpRouteModule: { - httpRouteModule: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'HttpRouteModule', - 'createHttpRouteModule', - 'httpRouteModule', - args.select, - args.data, - 'CreateHttpRouteModuleInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'HttpRouteModule', - fieldName: 'createHttpRouteModule', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - HttpRouteModulePatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateHttpRouteModule: { - httpRouteModule: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'HttpRouteModule', - 'updateHttpRouteModule', - 'httpRouteModule', - args.select, - args.where.id, - args.data, - 'UpdateHttpRouteModuleInput', - 'id', - 'httpRouteModulePatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'HttpRouteModule', - fieldName: 'updateHttpRouteModule', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteHttpRouteModule: { - httpRouteModule: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'HttpRouteModule', - 'deleteHttpRouteModule', - 'httpRouteModule', - { - id: args.where.id, - }, - 'DeleteHttpRouteModuleInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'HttpRouteModule', - fieldName: 'deleteHttpRouteModule', - document, - variables, - }); - } -} diff --git a/sdk/constructive-cli/src/modules/orm/models/imageModule.ts b/sdk/constructive-cli/src/modules/orm/models/imageModule.ts new file mode 100644 index 0000000000..2c1199e879 --- /dev/null +++ b/sdk/constructive-cli/src/modules/orm/models/imageModule.ts @@ -0,0 +1,245 @@ +/** + * ImageModule 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 { + ImageModule, + ImageModuleWithRelations, + ImageModuleSelect, + ImageModuleFilter, + ImageModuleOrderBy, + CreateImageModuleInput, + UpdateImageModuleInput, + ImageModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class ImageModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + imageModules: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'ImageModule', + 'imageModules', + 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, + }, + 'ImageModuleFilter', + 'ImageModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ImageModule', + fieldName: 'imageModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + imageModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'ImageModule', + 'imageModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'ImageModuleFilter', + 'ImageModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ImageModule', + fieldName: 'imageModule', + document, + variables, + transform: (data: { + imageModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + imageModule: data.imageModules?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + imageModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'ImageModule', + 'imageModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'ImageModuleFilter', + 'ImageModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ImageModule', + fieldName: 'imageModule', + document, + variables, + transform: (data: { + imageModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + imageModule: data.imageModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createImageModule: { + imageModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'ImageModule', + 'createImageModule', + 'imageModule', + args.select, + args.data, + 'CreateImageModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ImageModule', + fieldName: 'createImageModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + ImageModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateImageModule: { + imageModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'ImageModule', + 'updateImageModule', + 'imageModule', + args.select, + args.where.id, + args.data, + 'UpdateImageModuleInput', + 'id', + 'imageModulePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ImageModule', + fieldName: 'updateImageModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteImageModule: { + imageModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'ImageModule', + 'deleteImageModule', + 'imageModule', + { + id: args.where.id, + }, + 'DeleteImageModuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ImageModule', + fieldName: 'deleteImageModule', + 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..a6f18480f4 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 { ClusterModuleModel } from './clusterModule'; 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,32 +30,37 @@ 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'; export { GraphExecutionModuleModel } from './graphExecutionModule'; export { GraphModuleModel } from './graphModule'; export { HierarchyModuleModel } from './hierarchyModule'; -export { HttpRouteModuleModel } from './httpRouteModule'; export { I18NModuleModel } from './i18NModule'; export { IdentityProvidersModuleModel } from './identityProvidersModule'; +export { ImageModuleModel } from './imageModule'; export { InferenceLogModuleModel } from './inferenceLogModule'; export { InfraConfigModuleModel } from './infraConfigModule'; export { InfraSecretsModuleModel } from './infraSecretsModule'; export { IntegrationProvidersModuleModel } from './integrationProvidersModule'; +export { InternalConfigModuleModel } from './internalConfigModule'; export { InternalSecretsModuleModel } from './internalSecretsModule'; export { InvitesModuleModel } from './invitesModule'; +export { K8sAdmissionModuleModel } from './k8sAdmissionModule'; export { LimitsModuleModel } from './limitsModule'; +export { MachineModuleModel } from './machineModule'; export { MembershipTypesModuleModel } from './membershipTypesModule'; 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'; @@ -60,10 +68,13 @@ export { ProfilesModuleModel } from './profilesModule'; export { RateLimitMetersModuleModel } from './rateLimitMetersModule'; export { RateLimitsModuleModel } from './rateLimitsModule'; export { RealtimeModuleModel } from './realtimeModule'; +export { RefusalLogModuleModel } from './refusalLogModule'; export { RelationProvisionModel } from './relationProvision'; +export { RepositoryModuleModel } from './repositoryModule'; 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 +85,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/internalConfigModule.ts b/sdk/constructive-cli/src/modules/orm/models/internalConfigModule.ts new file mode 100644 index 0000000000..4679cc1926 --- /dev/null +++ b/sdk/constructive-cli/src/modules/orm/models/internalConfigModule.ts @@ -0,0 +1,247 @@ +/** + * InternalConfigModule 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 { + InternalConfigModule, + InternalConfigModuleWithRelations, + InternalConfigModuleSelect, + InternalConfigModuleFilter, + InternalConfigModuleOrderBy, + CreateInternalConfigModuleInput, + UpdateInternalConfigModuleInput, + InternalConfigModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class InternalConfigModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + internalConfigModules: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'InternalConfigModule', + 'internalConfigModules', + 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, + }, + 'InternalConfigModuleFilter', + 'InternalConfigModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InternalConfigModule', + fieldName: 'internalConfigModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + internalConfigModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'InternalConfigModule', + 'internalConfigModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'InternalConfigModuleFilter', + 'InternalConfigModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InternalConfigModule', + fieldName: 'internalConfigModule', + document, + variables, + transform: (data: { + internalConfigModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + internalConfigModule: data.internalConfigModules?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + internalConfigModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'InternalConfigModule', + 'internalConfigModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'InternalConfigModuleFilter', + 'InternalConfigModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InternalConfigModule', + fieldName: 'internalConfigModule', + document, + variables, + transform: (data: { + internalConfigModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + internalConfigModule: data.internalConfigModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createInternalConfigModule: { + internalConfigModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'InternalConfigModule', + 'createInternalConfigModule', + 'internalConfigModule', + args.select, + args.data, + 'CreateInternalConfigModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InternalConfigModule', + fieldName: 'createInternalConfigModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + InternalConfigModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateInternalConfigModule: { + internalConfigModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'InternalConfigModule', + 'updateInternalConfigModule', + 'internalConfigModule', + args.select, + args.where.id, + args.data, + 'UpdateInternalConfigModuleInput', + 'id', + 'internalConfigModulePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InternalConfigModule', + fieldName: 'updateInternalConfigModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteInternalConfigModule: { + internalConfigModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'InternalConfigModule', + 'deleteInternalConfigModule', + 'internalConfigModule', + { + id: args.where.id, + }, + 'DeleteInternalConfigModuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InternalConfigModule', + fieldName: 'deleteInternalConfigModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/modules/orm/models/k8sAdmissionModule.ts b/sdk/constructive-cli/src/modules/orm/models/k8sAdmissionModule.ts new file mode 100644 index 0000000000..3caa5b120e --- /dev/null +++ b/sdk/constructive-cli/src/modules/orm/models/k8sAdmissionModule.ts @@ -0,0 +1,245 @@ +/** + * K8sAdmissionModule 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 { + K8sAdmissionModule, + K8sAdmissionModuleWithRelations, + K8sAdmissionModuleSelect, + K8sAdmissionModuleFilter, + K8sAdmissionModuleOrderBy, + CreateK8sAdmissionModuleInput, + UpdateK8sAdmissionModuleInput, + K8sAdmissionModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class K8sAdmissionModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + k8sAdmissionModules: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'K8sAdmissionModule', + 'k8sAdmissionModules', + 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, + }, + 'K8sAdmissionModuleFilter', + 'K8sAdmissionModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'K8sAdmissionModule', + fieldName: 'k8sAdmissionModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + k8sAdmissionModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'K8sAdmissionModule', + 'k8sAdmissionModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'K8sAdmissionModuleFilter', + 'K8sAdmissionModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'K8sAdmissionModule', + fieldName: 'k8sAdmissionModule', + document, + variables, + transform: (data: { + k8sAdmissionModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + k8sAdmissionModule: data.k8sAdmissionModules?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + k8sAdmissionModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'K8sAdmissionModule', + 'k8sAdmissionModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'K8sAdmissionModuleFilter', + 'K8sAdmissionModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'K8sAdmissionModule', + fieldName: 'k8sAdmissionModule', + document, + variables, + transform: (data: { + k8sAdmissionModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + k8sAdmissionModule: data.k8sAdmissionModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createK8sAdmissionModule: { + k8sAdmissionModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'K8sAdmissionModule', + 'createK8sAdmissionModule', + 'k8sAdmissionModule', + args.select, + args.data, + 'CreateK8sAdmissionModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'K8sAdmissionModule', + fieldName: 'createK8sAdmissionModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + K8sAdmissionModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateK8sAdmissionModule: { + k8sAdmissionModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'K8sAdmissionModule', + 'updateK8sAdmissionModule', + 'k8sAdmissionModule', + args.select, + args.where.id, + args.data, + 'UpdateK8sAdmissionModuleInput', + 'id', + 'k8sAdmissionModulePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'K8sAdmissionModule', + fieldName: 'updateK8sAdmissionModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteK8sAdmissionModule: { + k8sAdmissionModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'K8sAdmissionModule', + 'deleteK8sAdmissionModule', + 'k8sAdmissionModule', + { + id: args.where.id, + }, + 'DeleteK8sAdmissionModuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'K8sAdmissionModule', + fieldName: 'deleteK8sAdmissionModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/modules/orm/models/machineModule.ts b/sdk/constructive-cli/src/modules/orm/models/machineModule.ts new file mode 100644 index 0000000000..af8dc76b7c --- /dev/null +++ b/sdk/constructive-cli/src/modules/orm/models/machineModule.ts @@ -0,0 +1,245 @@ +/** + * MachineModule 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 { + MachineModule, + MachineModuleWithRelations, + MachineModuleSelect, + MachineModuleFilter, + MachineModuleOrderBy, + CreateMachineModuleInput, + UpdateMachineModuleInput, + MachineModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class MachineModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + machineModules: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'MachineModule', + 'machineModules', + 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, + }, + 'MachineModuleFilter', + 'MachineModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'MachineModule', + fieldName: 'machineModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + machineModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'MachineModule', + 'machineModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'MachineModuleFilter', + 'MachineModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'MachineModule', + fieldName: 'machineModule', + document, + variables, + transform: (data: { + machineModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + machineModule: data.machineModules?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + machineModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'MachineModule', + 'machineModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'MachineModuleFilter', + 'MachineModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'MachineModule', + fieldName: 'machineModule', + document, + variables, + transform: (data: { + machineModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + machineModule: data.machineModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createMachineModule: { + machineModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'MachineModule', + 'createMachineModule', + 'machineModule', + args.select, + args.data, + 'CreateMachineModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'MachineModule', + fieldName: 'createMachineModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + MachineModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateMachineModule: { + machineModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'MachineModule', + 'updateMachineModule', + 'machineModule', + args.select, + args.where.id, + args.data, + 'UpdateMachineModuleInput', + 'id', + 'machineModulePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'MachineModule', + fieldName: 'updateMachineModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteMachineModule: { + machineModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'MachineModule', + 'deleteMachineModule', + 'machineModule', + { + id: args.where.id, + }, + 'DeleteMachineModuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'MachineModule', + fieldName: 'deleteMachineModule', + document, + variables, + }); + } +} 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/permissionsModule.ts b/sdk/constructive-cli/src/modules/orm/models/permissionsModule.ts deleted file mode 100644 index 2a330457b5..0000000000 --- a/sdk/constructive-cli/src/modules/orm/models/permissionsModule.ts +++ /dev/null @@ -1,245 +0,0 @@ -/** - * PermissionsModule 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 { - PermissionsModule, - PermissionsModuleWithRelations, - PermissionsModuleSelect, - PermissionsModuleFilter, - PermissionsModuleOrderBy, - CreatePermissionsModuleInput, - UpdatePermissionsModuleInput, - PermissionsModulePatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class PermissionsModuleModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - permissionsModules: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'PermissionsModule', - 'permissionsModules', - 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, - }, - 'PermissionsModuleFilter', - 'PermissionsModuleOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'PermissionsModule', - fieldName: 'permissionsModules', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - permissionsModule: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'PermissionsModule', - 'permissionsModules', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'PermissionsModuleFilter', - 'PermissionsModuleOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'PermissionsModule', - fieldName: 'permissionsModule', - document, - variables, - transform: (data: { - permissionsModules?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - permissionsModule: data.permissionsModules?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - permissionsModule: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'PermissionsModule', - 'permissionsModules', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'PermissionsModuleFilter', - 'PermissionsModuleOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'PermissionsModule', - fieldName: 'permissionsModule', - document, - variables, - transform: (data: { - permissionsModules?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - permissionsModule: data.permissionsModules?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPermissionsModule: { - permissionsModule: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PermissionsModule', - 'createPermissionsModule', - 'permissionsModule', - args.select, - args.data, - 'CreatePermissionsModuleInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PermissionsModule', - fieldName: 'createPermissionsModule', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - PermissionsModulePatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updatePermissionsModule: { - permissionsModule: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'PermissionsModule', - 'updatePermissionsModule', - 'permissionsModule', - args.select, - args.where.id, - args.data, - 'UpdatePermissionsModuleInput', - 'id', - 'permissionsModulePatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PermissionsModule', - fieldName: 'updatePermissionsModule', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deletePermissionsModule: { - permissionsModule: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'PermissionsModule', - 'deletePermissionsModule', - 'permissionsModule', - { - id: args.where.id, - }, - 'DeletePermissionsModuleInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PermissionsModule', - fieldName: 'deletePermissionsModule', - document, - variables, - }); - } -} diff --git a/sdk/constructive-cli/src/modules/orm/models/refusalLogModule.ts b/sdk/constructive-cli/src/modules/orm/models/refusalLogModule.ts new file mode 100644 index 0000000000..85e89a3468 --- /dev/null +++ b/sdk/constructive-cli/src/modules/orm/models/refusalLogModule.ts @@ -0,0 +1,245 @@ +/** + * RefusalLogModule 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 { + RefusalLogModule, + RefusalLogModuleWithRelations, + RefusalLogModuleSelect, + RefusalLogModuleFilter, + RefusalLogModuleOrderBy, + CreateRefusalLogModuleInput, + UpdateRefusalLogModuleInput, + RefusalLogModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class RefusalLogModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + refusalLogModules: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'RefusalLogModule', + 'refusalLogModules', + 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, + }, + 'RefusalLogModuleFilter', + 'RefusalLogModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'RefusalLogModule', + fieldName: 'refusalLogModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + refusalLogModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'RefusalLogModule', + 'refusalLogModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'RefusalLogModuleFilter', + 'RefusalLogModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'RefusalLogModule', + fieldName: 'refusalLogModule', + document, + variables, + transform: (data: { + refusalLogModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + refusalLogModule: data.refusalLogModules?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + refusalLogModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'RefusalLogModule', + 'refusalLogModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'RefusalLogModuleFilter', + 'RefusalLogModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'RefusalLogModule', + fieldName: 'refusalLogModule', + document, + variables, + transform: (data: { + refusalLogModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + refusalLogModule: data.refusalLogModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createRefusalLogModule: { + refusalLogModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'RefusalLogModule', + 'createRefusalLogModule', + 'refusalLogModule', + args.select, + args.data, + 'CreateRefusalLogModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'RefusalLogModule', + fieldName: 'createRefusalLogModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + RefusalLogModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateRefusalLogModule: { + refusalLogModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'RefusalLogModule', + 'updateRefusalLogModule', + 'refusalLogModule', + args.select, + args.where.id, + args.data, + 'UpdateRefusalLogModuleInput', + 'id', + 'refusalLogModulePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'RefusalLogModule', + fieldName: 'updateRefusalLogModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteRefusalLogModule: { + refusalLogModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'RefusalLogModule', + 'deleteRefusalLogModule', + 'refusalLogModule', + { + id: args.where.id, + }, + 'DeleteRefusalLogModuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'RefusalLogModule', + fieldName: 'deleteRefusalLogModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/modules/orm/models/repositoryModule.ts b/sdk/constructive-cli/src/modules/orm/models/repositoryModule.ts new file mode 100644 index 0000000000..90c8bda755 --- /dev/null +++ b/sdk/constructive-cli/src/modules/orm/models/repositoryModule.ts @@ -0,0 +1,245 @@ +/** + * RepositoryModule 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 { + RepositoryModule, + RepositoryModuleWithRelations, + RepositoryModuleSelect, + RepositoryModuleFilter, + RepositoryModuleOrderBy, + CreateRepositoryModuleInput, + UpdateRepositoryModuleInput, + RepositoryModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class RepositoryModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + repositoryModules: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'RepositoryModule', + 'repositoryModules', + 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, + }, + 'RepositoryModuleFilter', + 'RepositoryModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'RepositoryModule', + fieldName: 'repositoryModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + repositoryModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'RepositoryModule', + 'repositoryModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'RepositoryModuleFilter', + 'RepositoryModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'RepositoryModule', + fieldName: 'repositoryModule', + document, + variables, + transform: (data: { + repositoryModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + repositoryModule: data.repositoryModules?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + repositoryModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'RepositoryModule', + 'repositoryModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'RepositoryModuleFilter', + 'RepositoryModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'RepositoryModule', + fieldName: 'repositoryModule', + document, + variables, + transform: (data: { + repositoryModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + repositoryModule: data.repositoryModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createRepositoryModule: { + repositoryModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'RepositoryModule', + 'createRepositoryModule', + 'repositoryModule', + args.select, + args.data, + 'CreateRepositoryModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'RepositoryModule', + fieldName: 'createRepositoryModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + RepositoryModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateRepositoryModule: { + repositoryModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'RepositoryModule', + 'updateRepositoryModule', + 'repositoryModule', + args.select, + args.where.id, + args.data, + 'UpdateRepositoryModuleInput', + 'id', + 'repositoryModulePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'RepositoryModule', + fieldName: 'updateRepositoryModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteRepositoryModule: { + repositoryModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'RepositoryModule', + 'deleteRepositoryModule', + 'repositoryModule', + { + id: args.where.id, + }, + 'DeleteRepositoryModuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'RepositoryModule', + fieldName: 'deleteRepositoryModule', + 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..6cda508cf6 100644 --- a/sdk/constructive-cli/src/modules/orm/mutation/index.ts +++ b/sdk/constructive-cli/src/modules/orm/mutation/index.ts @@ -10,38 +10,17 @@ 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'; /** * Variables for constructBlueprint - * Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry — provisions entity tables, membership modules, and security. 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. + * 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). A table entry either names its table (table_name plus optional schema_name) or references one an installed module generated ("module": {"type": "agent", "scope": "org", "table": "message"}), which resolves through the module row's recorded table ids and raises when it matches nothing instead of creating an empty table. After provisioning, optional smart_tags (jsonb object) on the table entry are applied via metaschema.append_table_smart_tags(), and optional smart_tags on individual field entries are applied via metaschema.append_field_smart_tags(). (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] — resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID on success, NULL on failure. */ export interface ConstructBlueprintVariables { input: ConstructBlueprintInput; @@ -55,63 +34,15 @@ export interface CopyTemplateToBlueprintVariables { } /** * Variables for provisionBucket - * 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. + * Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. */ 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 +132,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 9c7c69c62a..b50a109844 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 d6ae9db5cc..a85bd2fd36 100644 --- a/sdk/constructive-cli/src/objects/cli/README.md +++ b/sdk/constructive-cli/src/objects/cli/README.md @@ -33,11 +33,15 @@ csdk auth set-token | `store` | store CRUD operations | | `init-empty-repo` | initEmptyRepo | | `insert-node-at-path` | insertNodeAtPath | -| `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. | +| `insert-nodes-at-paths` | insertNodesAtPaths | +| `provision-bucket` | Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. | +| `set-and-commit` | setAndCommit | | `set-data-at-path` | setDataAtPath | +| `set-many-and-commit` | setManyAndCommit | ## Infrastructure Commands @@ -243,12 +247,30 @@ 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. -Reads the bucket config via RLS, then creates and configures -the S3 bucket with the appropriate privacy policies, CORS rules, -and lifecycle settings. +Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. - **Type:** mutation - **Arguments:** @@ -258,6 +280,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 +314,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..1937931d34 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 Reconcile an S3 bucket for a logical bucket in the database.\nReads the bucket config via RLS, then enqueues the same\nstorage:provision_bucket job used by the INSERT trigger. This is\nidempotent for an already-reconciled bucket; enqueue failures become\nGraphQL errors.\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/provision-bucket.ts b/sdk/constructive-cli/src/objects/cli/commands/provision-bucket.ts index ecd2e539d5..0c54313d78 100644 --- a/sdk/constructive-cli/src/objects/cli/commands/provision-bucket.ts +++ b/sdk/constructive-cli/src/objects/cli/commands/provision-bucket.ts @@ -16,7 +16,7 @@ export default async ( try { if (argv.help || argv.h) { console.log( - '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\nUsage: provision-bucket [OPTIONS]\n' + 'provision-bucket - Reconcile an S3 bucket for a logical bucket in the database.\nReads the bucket config via RLS, then enqueues the same\nstorage:provision_bucket job used by the INSERT trigger. This is\nidempotent for an already-reconciled bucket; enqueue failures become\nGraphQL errors.\n\nUsage: provision-bucket [OPTIONS]\n' ); process.exit(0); } 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 7e649ee1f0..d56b4a6254 100644 --- a/sdk/constructive-cli/src/objects/orm/README.md +++ b/sdk/constructive-cli/src/objects/orm/README.md @@ -228,12 +228,28 @@ 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. -Reads the bucket config via RLS, then creates and configures -the S3 bucket with the appropriate privacy policies, CORS rules, -and lifecycle settings. +Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. - **Type:** mutation - **Arguments:** @@ -246,6 +262,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 @@ -260,3 +291,18 @@ setDataAtPath ```typescript 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(); +``` diff --git a/sdk/constructive-cli/src/objects/orm/input-types.ts b/sdk/constructive-cli/src/objects/orm/input-types.ts index bab07456e0..b1744c647d 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,27 +786,42 @@ 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; - /** 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; + /** The logical bucket row that was queued for reconciliation. */ + bucketId: string; + bucketKey: string; + /** The reconciler job enqueued to provision this bucket. */ + jobId: string; + /** The physical bucket name already recorded, or null when reconciliation has not completed. */ + physicalName?: string | null; } export type ProvisionBucketPayloadSelect = { - accessType?: boolean; - bucketName?: boolean; - endpoint?: boolean; - error?: boolean; - provider?: boolean; - success?: boolean; + bucketId?: boolean; + bucketKey?: boolean; + jobId?: boolean; + physicalName?: 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; @@ -788,6 +831,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..7efebc198a 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,19 +36,29 @@ 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. -Reads the bucket config via RLS, then creates and configures -the S3 bucket with the appropriate privacy policies, CORS rules, -and lifecycle settings. + * Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. */ 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 +119,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 +177,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 +235,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/remote/README.md b/sdk/constructive-cli/src/remote/README.md new file mode 100644 index 0000000000..9dd2d4d9cb --- /dev/null +++ b/sdk/constructive-cli/src/remote/README.md @@ -0,0 +1,37 @@ +# Generated GraphQL SDK + +

+ +

+ + + +## Overview + +- **Tables:** 3 +- **Custom queries:** 0 +- **Custom mutations:** 2 + +**Generators:** ORM, CLI + +## Modules + +### ORM Client (`./orm`) + +Prisma-like ORM client for programmatic GraphQL access. + +```typescript +import { createClient } from './orm'; + +const db = createClient({ + endpoint: 'https://api.example.com/graphql', +}); +``` + +See [orm/README.md](./orm/README.md) for full API reference. + +### CLI Commands (`./cli`) + +inquirerer-based CLI commands for `csdk`. + +See [cli/README.md](./cli/README.md) for command reference. diff --git a/sdk/constructive-cli/src/remote/cli/README.md b/sdk/constructive-cli/src/remote/cli/README.md new file mode 100644 index 0000000000..65e9febc86 --- /dev/null +++ b/sdk/constructive-cli/src/remote/cli/README.md @@ -0,0 +1,246 @@ +# csdk CLI + +

+ +

+ + + +## Setup + +```bash +# Create a context pointing at your GraphQL endpoint +csdk context create production --endpoint https://api.example.com/graphql + +# Set the active context +csdk context use production + +# Authenticate +csdk auth set-token +``` + +## Commands + +| Command | Description | +|---------|-------------| +| `context` | Manage API contexts (endpoints) | +| `auth` | Manage authentication tokens | +| `config` | Manage config key-value store (per-context) | +| `machine` | machine CRUD operations | +| `machine-message` | machineMessage CRUD operations | +| `machine-session` | machineSession CRUD operations | +| `machines-enroll` | machinesEnroll | +| `provision-bucket` | Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. | + +## Infrastructure Commands + +### `context` + +Manage named API contexts (kubectl-style). + +| Subcommand | Description | +|------------|-------------| +| `create --endpoint ` | Create a new context | +| `list` | List all contexts | +| `use ` | Set the active context | +| `current` | Show current context | +| `delete ` | Delete a context | + +Configuration is stored at `~/.csdk/config/`. + +### `auth` + +Manage authentication tokens per context. + +| Subcommand | Description | +|------------|-------------| +| `set-token ` | Store bearer token for current context | +| `status` | Show auth status across all contexts | +| `logout` | Remove credentials for current context | + +### `config` + +Manage per-context key-value configuration variables. + +| Subcommand | Description | +|------------|-------------| +| `get ` | Get a config value | +| `set ` | Set a config value | +| `list` | List all config values | +| `delete ` | Delete a config value | + +Variables are scoped to the active context and stored at `~/.csdk/config/`. + +## Table Commands + +### `machine` + +CRUD operations for Machine records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all machine records | +| `find-first` | Find first matching machine record | +| `get` | Get a machine by id | +| `create` | Create a new machine | +| `update` | Update an existing machine | +| `delete` | Delete a machine | + +**Fields:** + +| Field | Type | +|-------|------| +| `createdAt` | Datetime | +| `createdBy` | UUID | +| `createdByPrincipal` | UUID | +| `entityId` | UUID | +| `facts` | JSON | +| `id` | UUID | +| `isShared` | Boolean | +| `label` | String | +| `lastSeenAt` | Datetime | +| `ownerId` | UUID | +| `policy` | JSON | +| `principalId` | UUID | +| `revokedAt` | Datetime | +| `tokenHash` | String | +| `updatedAt` | Datetime | +| `updatedBy` | UUID | +| `updatedByPrincipal` | UUID | + +**Required create fields:** `entityId`, `label`, `ownerId`, `tokenHash` +**Optional create fields (backend defaults):** `createdBy`, `createdByPrincipal`, `facts`, `isShared`, `lastSeenAt`, `policy`, `principalId`, `revokedAt`, `updatedBy`, `updatedByPrincipal` + +### `machine-message` + +CRUD operations for MachineMessage records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all machineMessage records | +| `find-first` | Find first matching machineMessage record | +| `get` | Get a machineMessage by id | +| `create` | Create a new machineMessage | +| `update` | Update an existing machineMessage | +| `delete` | Delete a machineMessage | + +**Fields:** + +| Field | Type | +|-------|------| +| `actorId` | UUID | +| `content` | JSON | +| `createdByPrincipal` | UUID | +| `entityId` | UUID | +| `id` | UUID | +| `kind` | String | +| `ownerId` | UUID | +| `recordedAt` | Datetime | +| `seq` | BigInt | +| `sessionId` | UUID | + +**Required create fields:** `actorId`, `entityId`, `kind`, `ownerId`, `seq`, `sessionId` +**Optional create fields (backend defaults):** `content`, `createdByPrincipal`, `recordedAt` + +### `machine-session` + +CRUD operations for MachineSession records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all machineSession records | +| `find-first` | Find first matching machineSession record | +| `get` | Get a machineSession by id | +| `create` | Create a new machineSession | +| `update` | Update an existing machineSession | +| `delete` | Delete a machineSession | + +**Fields:** + +| Field | Type | +|-------|------| +| `agentMode` | String | +| `agentSessionRef` | String | +| `args` | String | +| `cols` | Int | +| `command` | String | +| `createdAt` | Datetime | +| `createdBy` | UUID | +| `createdByPrincipal` | UUID | +| `cwd` | String | +| `endedAt` | Datetime | +| `entityId` | UUID | +| `env` | JSON | +| `exitCode` | Int | +| `id` | UUID | +| `interactive` | Boolean | +| `lastActivityAt` | Datetime | +| `lastSeq` | BigInt | +| `machineId` | UUID | +| `metadata` | JSON | +| `ownerId` | UUID | +| `pid` | Int | +| `runId` | UUID | +| `startedAt` | Datetime | +| `state` | String | +| `termRows` | Int | +| `updatedAt` | Datetime | +| `updatedBy` | UUID | +| `updatedByPrincipal` | UUID | + +**Required create fields:** `entityId`, `machineId`, `ownerId` +**Optional create fields (backend defaults):** `agentMode`, `agentSessionRef`, `args`, `cols`, `command`, `createdBy`, `createdByPrincipal`, `cwd`, `endedAt`, `env`, `exitCode`, `interactive`, `lastActivityAt`, `lastSeq`, `metadata`, `pid`, `runId`, `startedAt`, `state`, `termRows`, `updatedBy`, `updatedByPrincipal` + +## Custom Operations + +### `machines-enroll` + +machinesEnroll + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.entityId` | UUID | + | `--input.isShared` | Boolean | + | `--input.label` | String | + | `--input.tokenHash` | String | + +### `provision-bucket` + +Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.bucketKey` | String (required) | + | `--input.ownerId` | UUID | + +## Output + +All commands output JSON to stdout. Pipe to `jq` for formatting: + +```bash +csdk car list | jq '.[]' +csdk car get --id | jq '.' +``` + +## Non-Interactive Mode + +Use `--no-tty` to skip all interactive prompts (useful for scripts and CI): + +```bash +csdk --no-tty car create --name "Sedan" --year 2024 +``` diff --git a/sdk/constructive-cli/src/remote/cli/commands.ts b/sdk/constructive-cli/src/remote/cli/commands.ts new file mode 100644 index 0000000000..71cb98f77f --- /dev/null +++ b/sdk/constructive-cli/src/remote/cli/commands.ts @@ -0,0 +1,63 @@ +/** + * CLI command map and entry point + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; +import contextCmd from './commands/context'; +import authCmd from './commands/auth'; +import machineCmd from './commands/machine'; +import machineMessageCmd from './commands/machine-message'; +import machineSessionCmd from './commands/machine-session'; +import machinesEnrollCmd from './commands/machines-enroll'; +import provisionBucketCmd from './commands/provision-bucket'; +const createCommandMap: () => Record< + string, + ( + argv: Partial>, + prompter: Inquirerer, + options: CLIOptions + ) => Promise +> = () => ({ + context: contextCmd, + auth: authCmd, + machine: machineCmd, + 'machine-message': machineMessageCmd, + 'machine-session': machineSessionCmd, + 'machines-enroll': machinesEnrollCmd, + 'provision-bucket': provisionBucketCmd, +}); +const usage = + '\ncsdk \n\nCommands:\n context Manage API contexts\n auth Manage authentication\n machine machine CRUD operations\n machine-message machineMessage CRUD operations\n machine-session machineSession CRUD operations\n machines-enroll machinesEnroll\n provision-bucket Reconcile an S3 bucket for a logical bucket in the database.\nReads the bucket config via RLS, then enqueues the same\nstorage:provision_bucket job used by the INSERT trigger. This is\nidempotent for an already-reconciled bucket; enqueue failures become\nGraphQL errors.\n\n --help, -h Show this help message\n --version, -v Show version\n'; +export const commands = async ( + argv: Partial>, + prompter: Inquirerer, + options: CLIOptions +) => { + if (argv.help || argv.h) { + console.log(usage); + process.exit(0); + } + let { first: command, newArgv } = extractFirst(argv); + const commandMap = createCommandMap(); + if (!command) { + const answer = await prompter.prompt(argv, [ + { + type: 'autocomplete', + name: 'command', + message: 'What do you want to do?', + options: Object.keys(commandMap), + }, + ]); + command = answer.command as string; + } + const commandFn = commandMap[command]; + if (!commandFn) { + console.log(usage); + console.error(`Unknown command: ${command}`); + process.exit(1); + } + await commandFn(newArgv, prompter, options); + prompter.close(); + return argv; +}; diff --git a/sdk/constructive-cli/src/remote/cli/commands/auth.ts b/sdk/constructive-cli/src/remote/cli/commands/auth.ts new file mode 100644 index 0000000000..c731ba27ca --- /dev/null +++ b/sdk/constructive-cli/src/remote/cli/commands/auth.ts @@ -0,0 +1,122 @@ +/** + * Authentication commands + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; +import { getStore } from '../executor'; +const usage = + '\ncsdk auth \n\nCommands:\n set-token Set API token for the current context\n status Show authentication status\n logout Remove credentials for the current context\n\nOptions:\n --context Specify context (defaults to current context)\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 store = getStore(); + 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: ['set-token', 'status', 'logout'], + }, + ]); + return handleAuthSubcommand(answer.subcommand as string, newArgv, prompter, store); + } + return handleAuthSubcommand(subcommand, newArgv, prompter, store); +}; +async function handleAuthSubcommand( + subcommand: string, + argv: Partial>, + prompter: Inquirerer, + store: ReturnType +) { + switch (subcommand) { + case 'set-token': + return handleSetToken(argv, prompter, store); + case 'status': + return handleStatus(store); + case 'logout': + return handleLogout(argv, prompter, store); + default: + console.log(usage); + process.exit(1); + } +} +async function handleSetToken( + argv: Partial>, + prompter: Inquirerer, + store: ReturnType +) { + const current = store.getCurrentContext(); + if (!current) { + console.error('No active context. Run "context create" first.'); + process.exit(1); + } + const { first: token } = extractFirst(argv); + let tokenValue = token; + if (!tokenValue) { + const answer = await prompter.prompt(argv, [ + { + type: 'password', + name: 'token', + message: 'API Token', + required: true, + }, + ]); + tokenValue = answer.token as string; + } + store.setCredentials(current.name, { + token: String(tokenValue || '').trim(), + }); + console.log(`Token saved for context: ${current.name}`); +} +function handleStatus(store: ReturnType) { + const contexts = store.listContexts(); + const settings = store.loadSettings(); + if (contexts.length === 0) { + console.log('No contexts configured.'); + return; + } + console.log('Authentication Status:'); + for (const ctx of contexts) { + const isCurrent = ctx.name === settings.currentContext; + const hasAuth = store.hasValidCredentials(ctx.name); + const marker = isCurrent ? '* ' : ' '; + const status = hasAuth ? 'authenticated' : 'no token'; + console.log(`${marker}${ctx.name} [${status}]`); + } +} +async function handleLogout( + argv: Partial>, + prompter: Inquirerer, + store: ReturnType +) { + const current = store.getCurrentContext(); + if (!current) { + console.log('No active context.'); + return; + } + const confirm = await prompter.prompt(argv, [ + { + type: 'confirm', + name: 'confirm', + message: `Remove credentials for "${current.name}"?`, + default: false, + }, + ]); + if (!(confirm.confirm as boolean)) { + return; + } + if (store.removeCredentials(current.name)) { + console.log(`Credentials removed for: ${current.name}`); + } else { + console.log(`No credentials found for: ${current.name}`); + } +} diff --git a/sdk/constructive-cli/src/remote/cli/commands/context.ts b/sdk/constructive-cli/src/remote/cli/commands/context.ts new file mode 100644 index 0000000000..52d12c666b --- /dev/null +++ b/sdk/constructive-cli/src/remote/cli/commands/context.ts @@ -0,0 +1,179 @@ +/** + * Context management commands + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; +import { getStore } from '../executor'; +const usage = + '\ncsdk context \n\nCommands:\n create Create a new context\n list List all contexts\n use Set the active context\n current Show current context\n delete Delete a context\n\nCreate Options:\n --endpoint GraphQL endpoint URL\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 store = getStore(); + 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: ['create', 'list', 'use', 'current', 'delete'], + }, + ]); + return handleSubcommand(answer.subcommand as string, newArgv, prompter, store); + } + return handleSubcommand(subcommand, newArgv, prompter, store); +}; +async function handleSubcommand( + subcommand: string, + argv: Partial>, + prompter: Inquirerer, + store: ReturnType +) { + switch (subcommand) { + case 'create': + return handleCreate(argv, prompter, store); + case 'list': + return handleList(store); + case 'use': + return handleUse(argv, prompter, store); + case 'current': + return handleCurrent(store); + case 'delete': + return handleDelete(argv, prompter, store); + default: + console.log(usage); + process.exit(1); + } +} +async function handleCreate( + argv: Partial>, + prompter: Inquirerer, + store: ReturnType +) { + const { first: name, newArgv: restArgv } = extractFirst(argv); + const answers = (await prompter.prompt( + { + name, + ...restArgv, + }, + [ + { + type: 'text', + name: 'name', + message: 'Context name', + required: true, + }, + { + type: 'text', + name: 'endpoint', + message: 'GraphQL endpoint URL', + required: true, + }, + ] + )) as unknown as Record; + const contextName = answers.name; + const endpoint = answers.endpoint; + store.createContext(contextName, { + endpoint: endpoint, + }); + const settings = store.loadSettings(); + if (!settings.currentContext) { + store.setCurrentContext(contextName); + } + console.log(`Created context: ${contextName}`); + console.log(` Endpoint: ${endpoint}`); +} +function handleList(store: ReturnType) { + const contexts = store.listContexts(); + const settings = store.loadSettings(); + if (contexts.length === 0) { + console.log('No contexts configured.'); + return; + } + console.log('Contexts:'); + for (const ctx of contexts) { + const marker = ctx.name === settings.currentContext ? '* ' : ' '; + const authStatus = store.hasValidCredentials(ctx.name) ? '[authenticated]' : '[no token]'; + console.log(`${marker}${ctx.name} ${authStatus}`); + console.log(` Endpoint: ${ctx.endpoint}`); + } +} +async function handleUse( + argv: Partial>, + prompter: Inquirerer, + store: ReturnType +) { + const { first: name } = extractFirst(argv); + const contexts = store.listContexts(); + if (contexts.length === 0) { + console.log('No contexts configured.'); + return; + } + let contextName = name; + if (!contextName) { + const answer = await prompter.prompt(argv, [ + { + type: 'autocomplete', + name: 'name', + message: 'Select context', + options: contexts.map((c) => c.name), + }, + ]); + contextName = answer.name as string; + } + if (store.setCurrentContext(contextName)) { + console.log(`Switched to context: ${contextName}`); + } else { + console.error(`Context "${contextName}" not found.`); + process.exit(1); + } +} +function handleCurrent(store: ReturnType) { + const current = store.getCurrentContext(); + if (!current) { + console.log('No current context set.'); + return; + } + console.log(`Current context: ${current.name}`); + console.log(` Endpoint: ${current.endpoint}`); + const hasAuth = store.hasValidCredentials(current.name); + console.log(` Auth: ${hasAuth ? 'authenticated' : 'not authenticated'}`); +} +async function handleDelete( + argv: Partial>, + prompter: Inquirerer, + store: ReturnType +) { + const { first: name } = extractFirst(argv); + const contexts = store.listContexts(); + if (contexts.length === 0) { + console.log('No contexts configured.'); + return; + } + let contextName = name; + if (!contextName) { + const answer = await prompter.prompt(argv, [ + { + type: 'autocomplete', + name: 'name', + message: 'Select context to delete', + options: contexts.map((c) => c.name), + }, + ]); + contextName = answer.name as string; + } + if (store.deleteContext(contextName)) { + console.log(`Deleted context: ${contextName}`); + } else { + console.error(`Context "${contextName}" not found.`); + process.exit(1); + } +} diff --git a/sdk/constructive-cli/src/remote/cli/commands/machine-message.ts b/sdk/constructive-cli/src/remote/cli/commands/machine-message.ts new file mode 100644 index 0000000000..81c9bcaa5a --- /dev/null +++ b/sdk/constructive-cli/src/remote/cli/commands/machine-message.ts @@ -0,0 +1,423 @@ +/** + * CLI commands for MachineMessage + * @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 { + CreateMachineMessageInput, + MachineMessagePatch, + MachineMessageSelect, + MachineMessageFilter, + MachineMessageOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + actorId: 'uuid', + content: 'json', + createdByPrincipal: 'uuid', + entityId: 'uuid', + id: 'uuid', + kind: 'string', + ownerId: 'uuid', + recordedAt: 'string', + seq: 'int', + sessionId: 'uuid', +}; +const usage = + '\nmachine-message \n\nCommands:\n list List machineMessage records\n find-first Find first matching machineMessage record\n get Get a machineMessage by ID\n create Create a new machineMessage\n update Update an existing machineMessage\n delete Delete a machineMessage\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 = { + actorId: true, + content: true, + createdByPrincipal: true, + entityId: true, + id: true, + kind: true, + ownerId: true, + recordedAt: true, + seq: true, + sessionId: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: MachineMessageSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.machineMessage.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 = { + actorId: true, + content: true, + createdByPrincipal: true, + entityId: true, + id: true, + kind: true, + ownerId: true, + recordedAt: true, + seq: true, + sessionId: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: MachineMessageSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.machineMessage.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.machineMessage + .findOne({ + id: answers.id as string, + select: { + actorId: true, + content: true, + createdByPrincipal: true, + entityId: true, + id: true, + kind: true, + ownerId: true, + recordedAt: true, + seq: true, + sessionId: 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: 'actorId', + message: 'actorId', + required: true, + }, + { + type: 'json', + name: 'content', + message: 'content', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'entityId', + message: 'entityId', + required: true, + }, + { + type: 'text', + name: 'kind', + message: 'kind', + required: true, + }, + { + type: 'text', + name: 'ownerId', + message: 'ownerId', + required: true, + }, + { + type: 'text', + name: 'recordedAt', + message: 'recordedAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'seq', + message: 'seq', + required: true, + }, + { + type: 'text', + name: 'sessionId', + message: 'sessionId', + required: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateMachineMessageInput['machineMessage']; + const client = getClient(); + const result = await client.machineMessage + .create({ + data: { + actorId: cleanedData.actorId, + content: cleanedData.content, + createdByPrincipal: cleanedData.createdByPrincipal, + entityId: cleanedData.entityId, + kind: cleanedData.kind, + ownerId: cleanedData.ownerId, + recordedAt: cleanedData.recordedAt, + seq: cleanedData.seq, + sessionId: cleanedData.sessionId, + }, + select: { + actorId: true, + content: true, + createdByPrincipal: true, + entityId: true, + id: true, + kind: true, + ownerId: true, + recordedAt: true, + seq: true, + sessionId: 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: 'recordedAt', + message: 'recordedAt', + required: true, + }, + { + type: 'text', + name: 'actorId', + message: 'actorId', + required: false, + }, + { + type: 'json', + name: 'content', + message: 'content', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'entityId', + message: 'entityId', + required: false, + }, + { + type: 'text', + name: 'kind', + message: 'kind', + required: false, + }, + { + type: 'text', + name: 'ownerId', + message: 'ownerId', + required: false, + }, + { + type: 'text', + name: 'seq', + message: 'seq', + required: false, + }, + { + type: 'text', + name: 'sessionId', + message: 'sessionId', + required: false, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as MachineMessagePatch; + const client = getClient(); + const result = await client.machineMessage + .update({ + where: { + id: answers.id as string, + recordedAt: answers.recordedAt as string, + }, + data: { + actorId: cleanedData.actorId, + content: cleanedData.content, + createdByPrincipal: cleanedData.createdByPrincipal, + entityId: cleanedData.entityId, + kind: cleanedData.kind, + ownerId: cleanedData.ownerId, + seq: cleanedData.seq, + sessionId: cleanedData.sessionId, + }, + select: { + actorId: true, + content: true, + createdByPrincipal: true, + entityId: true, + id: true, + kind: true, + ownerId: true, + recordedAt: true, + seq: true, + sessionId: 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, + }, + { + type: 'text', + name: 'recordedAt', + message: 'recordedAt', + required: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const client = getClient(); + const result = await client.machineMessage + .delete({ + where: { + id: answers.id as string, + recordedAt: answers.recordedAt 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/remote/cli/commands/machine-session.ts b/sdk/constructive-cli/src/remote/cli/commands/machine-session.ts new file mode 100644 index 0000000000..009a1aaf2a --- /dev/null +++ b/sdk/constructive-cli/src/remote/cli/commands/machine-session.ts @@ -0,0 +1,787 @@ +/** + * CLI commands for MachineSession + * @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 { + CreateMachineSessionInput, + MachineSessionPatch, + MachineSessionSelect, + MachineSessionFilter, + MachineSessionOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + agentMode: 'string', + agentSessionRef: 'string', + args: 'string', + cols: 'int', + command: 'string', + createdAt: 'string', + createdBy: 'uuid', + createdByPrincipal: 'uuid', + cwd: 'string', + endedAt: 'string', + entityId: 'uuid', + env: 'json', + exitCode: 'int', + id: 'uuid', + interactive: 'boolean', + lastActivityAt: 'string', + lastSeq: 'int', + machineId: 'uuid', + metadata: 'json', + ownerId: 'uuid', + pid: 'int', + runId: 'uuid', + startedAt: 'string', + state: 'string', + termRows: 'int', + updatedAt: 'string', + updatedBy: 'uuid', + updatedByPrincipal: 'uuid', +}; +const usage = + '\nmachine-session \n\nCommands:\n list List machineSession records\n find-first Find first matching machineSession record\n get Get a machineSession by ID\n create Create a new machineSession\n update Update an existing machineSession\n delete Delete a machineSession\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 = { + agentMode: true, + agentSessionRef: true, + args: true, + cols: true, + command: true, + createdAt: true, + createdBy: true, + createdByPrincipal: true, + cwd: true, + endedAt: true, + entityId: true, + env: true, + exitCode: true, + id: true, + interactive: true, + lastActivityAt: true, + lastSeq: true, + machineId: true, + metadata: true, + ownerId: true, + pid: true, + runId: true, + startedAt: true, + state: true, + termRows: true, + updatedAt: true, + updatedBy: true, + updatedByPrincipal: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: MachineSessionSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.machineSession.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 = { + agentMode: true, + agentSessionRef: true, + args: true, + cols: true, + command: true, + createdAt: true, + createdBy: true, + createdByPrincipal: true, + cwd: true, + endedAt: true, + entityId: true, + env: true, + exitCode: true, + id: true, + interactive: true, + lastActivityAt: true, + lastSeq: true, + machineId: true, + metadata: true, + ownerId: true, + pid: true, + runId: true, + startedAt: true, + state: true, + termRows: true, + updatedAt: true, + updatedBy: true, + updatedByPrincipal: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: MachineSessionSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.machineSession.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.machineSession + .findOne({ + id: answers.id as string, + select: { + agentMode: true, + agentSessionRef: true, + args: true, + cols: true, + command: true, + createdAt: true, + createdBy: true, + createdByPrincipal: true, + cwd: true, + endedAt: true, + entityId: true, + env: true, + exitCode: true, + id: true, + interactive: true, + lastActivityAt: true, + lastSeq: true, + machineId: true, + metadata: true, + ownerId: true, + pid: true, + runId: true, + startedAt: true, + state: true, + termRows: true, + updatedAt: true, + updatedBy: true, + updatedByPrincipal: 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: 'agentMode', + message: 'agentMode', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'agentSessionRef', + message: 'agentSessionRef', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'args', + message: 'args', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'cols', + message: 'cols', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'command', + message: 'command', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'createdBy', + message: 'createdBy', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'cwd', + message: 'cwd', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'endedAt', + message: 'endedAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'entityId', + message: 'entityId', + required: true, + }, + { + type: 'json', + name: 'env', + message: 'env', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'exitCode', + message: 'exitCode', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'interactive', + message: 'interactive', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'lastActivityAt', + message: 'lastActivityAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'lastSeq', + message: 'lastSeq', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'machineId', + message: 'machineId', + required: true, + }, + { + type: 'json', + name: 'metadata', + message: 'metadata', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'ownerId', + message: 'ownerId', + required: true, + }, + { + type: 'text', + name: 'pid', + message: 'pid', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'runId', + message: 'runId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'startedAt', + message: 'startedAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'state', + message: 'state', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'termRows', + message: 'termRows', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'updatedBy', + message: 'updatedBy', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateMachineSessionInput['machineSession']; + const client = getClient(); + const result = await client.machineSession + .create({ + data: { + agentMode: cleanedData.agentMode, + agentSessionRef: cleanedData.agentSessionRef, + args: cleanedData.args, + cols: cleanedData.cols, + command: cleanedData.command, + createdBy: cleanedData.createdBy, + createdByPrincipal: cleanedData.createdByPrincipal, + cwd: cleanedData.cwd, + endedAt: cleanedData.endedAt, + entityId: cleanedData.entityId, + env: cleanedData.env, + exitCode: cleanedData.exitCode, + interactive: cleanedData.interactive, + lastActivityAt: cleanedData.lastActivityAt, + lastSeq: cleanedData.lastSeq, + machineId: cleanedData.machineId, + metadata: cleanedData.metadata, + ownerId: cleanedData.ownerId, + pid: cleanedData.pid, + runId: cleanedData.runId, + startedAt: cleanedData.startedAt, + state: cleanedData.state, + termRows: cleanedData.termRows, + updatedBy: cleanedData.updatedBy, + updatedByPrincipal: cleanedData.updatedByPrincipal, + }, + select: { + agentMode: true, + agentSessionRef: true, + args: true, + cols: true, + command: true, + createdAt: true, + createdBy: true, + createdByPrincipal: true, + cwd: true, + endedAt: true, + entityId: true, + env: true, + exitCode: true, + id: true, + interactive: true, + lastActivityAt: true, + lastSeq: true, + machineId: true, + metadata: true, + ownerId: true, + pid: true, + runId: true, + startedAt: true, + state: true, + termRows: true, + updatedAt: true, + updatedBy: true, + updatedByPrincipal: 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: 'agentMode', + message: 'agentMode', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'agentSessionRef', + message: 'agentSessionRef', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'args', + message: 'args', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'cols', + message: 'cols', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'command', + message: 'command', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'createdBy', + message: 'createdBy', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'cwd', + message: 'cwd', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'endedAt', + message: 'endedAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'entityId', + message: 'entityId', + required: false, + }, + { + type: 'json', + name: 'env', + message: 'env', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'exitCode', + message: 'exitCode', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'interactive', + message: 'interactive', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'lastActivityAt', + message: 'lastActivityAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'lastSeq', + message: 'lastSeq', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'machineId', + message: 'machineId', + required: false, + }, + { + type: 'json', + name: 'metadata', + message: 'metadata', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'ownerId', + message: 'ownerId', + required: false, + }, + { + type: 'text', + name: 'pid', + message: 'pid', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'runId', + message: 'runId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'startedAt', + message: 'startedAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'state', + message: 'state', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'termRows', + message: 'termRows', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'updatedBy', + message: 'updatedBy', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as MachineSessionPatch; + const client = getClient(); + const result = await client.machineSession + .update({ + where: { + id: answers.id as string, + }, + data: { + agentMode: cleanedData.agentMode, + agentSessionRef: cleanedData.agentSessionRef, + args: cleanedData.args, + cols: cleanedData.cols, + command: cleanedData.command, + createdBy: cleanedData.createdBy, + createdByPrincipal: cleanedData.createdByPrincipal, + cwd: cleanedData.cwd, + endedAt: cleanedData.endedAt, + entityId: cleanedData.entityId, + env: cleanedData.env, + exitCode: cleanedData.exitCode, + interactive: cleanedData.interactive, + lastActivityAt: cleanedData.lastActivityAt, + lastSeq: cleanedData.lastSeq, + machineId: cleanedData.machineId, + metadata: cleanedData.metadata, + ownerId: cleanedData.ownerId, + pid: cleanedData.pid, + runId: cleanedData.runId, + startedAt: cleanedData.startedAt, + state: cleanedData.state, + termRows: cleanedData.termRows, + updatedBy: cleanedData.updatedBy, + updatedByPrincipal: cleanedData.updatedByPrincipal, + }, + select: { + agentMode: true, + agentSessionRef: true, + args: true, + cols: true, + command: true, + createdAt: true, + createdBy: true, + createdByPrincipal: true, + cwd: true, + endedAt: true, + entityId: true, + env: true, + exitCode: true, + id: true, + interactive: true, + lastActivityAt: true, + lastSeq: true, + machineId: true, + metadata: true, + ownerId: true, + pid: true, + runId: true, + startedAt: true, + state: true, + termRows: true, + updatedAt: true, + updatedBy: true, + updatedByPrincipal: 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.machineSession + .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/remote/cli/commands/machine.ts b/sdk/constructive-cli/src/remote/cli/commands/machine.ts new file mode 100644 index 0000000000..af748ba579 --- /dev/null +++ b/sdk/constructive-cli/src/remote/cli/commands/machine.ts @@ -0,0 +1,540 @@ +/** + * CLI commands for Machine + * @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 { + CreateMachineInput, + MachinePatch, + MachineSelect, + MachineFilter, + MachineOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + createdAt: 'string', + createdBy: 'uuid', + createdByPrincipal: 'uuid', + entityId: 'uuid', + facts: 'json', + id: 'uuid', + isShared: 'boolean', + label: 'string', + lastSeenAt: 'string', + ownerId: 'uuid', + policy: 'json', + principalId: 'uuid', + revokedAt: 'string', + tokenHash: 'string', + updatedAt: 'string', + updatedBy: 'uuid', + updatedByPrincipal: 'uuid', +}; +const usage = + '\nmachine \n\nCommands:\n list List machine records\n find-first Find first matching machine record\n get Get a machine by ID\n create Create a new machine\n update Update an existing machine\n delete Delete a machine\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, + createdBy: true, + createdByPrincipal: true, + entityId: true, + facts: true, + id: true, + isShared: true, + label: true, + lastSeenAt: true, + ownerId: true, + policy: true, + principalId: true, + revokedAt: true, + tokenHash: true, + updatedAt: true, + updatedBy: true, + updatedByPrincipal: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: MachineSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.machine.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, + createdBy: true, + createdByPrincipal: true, + entityId: true, + facts: true, + id: true, + isShared: true, + label: true, + lastSeenAt: true, + ownerId: true, + policy: true, + principalId: true, + revokedAt: true, + tokenHash: true, + updatedAt: true, + updatedBy: true, + updatedByPrincipal: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: MachineSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.machine.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.machine + .findOne({ + id: answers.id as string, + select: { + createdAt: true, + createdBy: true, + createdByPrincipal: true, + entityId: true, + facts: true, + id: true, + isShared: true, + label: true, + lastSeenAt: true, + ownerId: true, + policy: true, + principalId: true, + revokedAt: true, + tokenHash: true, + updatedAt: true, + updatedBy: true, + updatedByPrincipal: 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: 'createdBy', + message: 'createdBy', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'entityId', + message: 'entityId', + required: true, + }, + { + type: 'json', + name: 'facts', + message: 'facts', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'isShared', + message: 'isShared', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'label', + message: 'label', + required: true, + }, + { + type: 'text', + name: 'lastSeenAt', + message: 'lastSeenAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'ownerId', + message: 'ownerId', + required: true, + }, + { + type: 'json', + name: 'policy', + message: 'policy', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'principalId', + message: 'principalId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'revokedAt', + message: 'revokedAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'tokenHash', + message: 'tokenHash', + required: true, + }, + { + type: 'text', + name: 'updatedBy', + message: 'updatedBy', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as CreateMachineInput['machine']; + const client = getClient(); + const result = await client.machine + .create({ + data: { + createdBy: cleanedData.createdBy, + createdByPrincipal: cleanedData.createdByPrincipal, + entityId: cleanedData.entityId, + facts: cleanedData.facts, + isShared: cleanedData.isShared, + label: cleanedData.label, + lastSeenAt: cleanedData.lastSeenAt, + ownerId: cleanedData.ownerId, + policy: cleanedData.policy, + principalId: cleanedData.principalId, + revokedAt: cleanedData.revokedAt, + tokenHash: cleanedData.tokenHash, + updatedBy: cleanedData.updatedBy, + updatedByPrincipal: cleanedData.updatedByPrincipal, + }, + select: { + createdAt: true, + createdBy: true, + createdByPrincipal: true, + entityId: true, + facts: true, + id: true, + isShared: true, + label: true, + lastSeenAt: true, + ownerId: true, + policy: true, + principalId: true, + revokedAt: true, + tokenHash: true, + updatedAt: true, + updatedBy: true, + updatedByPrincipal: 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: 'createdBy', + message: 'createdBy', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'entityId', + message: 'entityId', + required: false, + }, + { + type: 'json', + name: 'facts', + message: 'facts', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'isShared', + message: 'isShared', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'label', + message: 'label', + required: false, + }, + { + type: 'text', + name: 'lastSeenAt', + message: 'lastSeenAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'ownerId', + message: 'ownerId', + required: false, + }, + { + type: 'json', + name: 'policy', + message: 'policy', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'principalId', + message: 'principalId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'revokedAt', + message: 'revokedAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'tokenHash', + message: 'tokenHash', + required: false, + }, + { + type: 'text', + name: 'updatedBy', + message: 'updatedBy', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as MachinePatch; + const client = getClient(); + const result = await client.machine + .update({ + where: { + id: answers.id as string, + }, + data: { + createdBy: cleanedData.createdBy, + createdByPrincipal: cleanedData.createdByPrincipal, + entityId: cleanedData.entityId, + facts: cleanedData.facts, + isShared: cleanedData.isShared, + label: cleanedData.label, + lastSeenAt: cleanedData.lastSeenAt, + ownerId: cleanedData.ownerId, + policy: cleanedData.policy, + principalId: cleanedData.principalId, + revokedAt: cleanedData.revokedAt, + tokenHash: cleanedData.tokenHash, + updatedBy: cleanedData.updatedBy, + updatedByPrincipal: cleanedData.updatedByPrincipal, + }, + select: { + createdAt: true, + createdBy: true, + createdByPrincipal: true, + entityId: true, + facts: true, + id: true, + isShared: true, + label: true, + lastSeenAt: true, + ownerId: true, + policy: true, + principalId: true, + revokedAt: true, + tokenHash: true, + updatedAt: true, + updatedBy: true, + updatedByPrincipal: 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.machine + .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/remote/cli/commands/machines-enroll.ts b/sdk/constructive-cli/src/remote/cli/commands/machines-enroll.ts new file mode 100644 index 0000000000..7aa13ebc61 --- /dev/null +++ b/sdk/constructive-cli/src/remote/cli/commands/machines-enroll.ts @@ -0,0 +1,51 @@ +/** + * CLI command for mutation machinesEnroll + * @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 { MachinesEnrollVariables } from '../../orm/mutation'; +import type { MachinesEnrollPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log('machines-enroll - machinesEnroll\n\nUsage: machines-enroll [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 + .machinesEnroll( + parsedAnswers as unknown as MachinesEnrollVariables, + { + select: selectFields, + } as unknown as { + select: MachinesEnrollPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: machinesEnroll'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/remote/cli/commands/provision-bucket.ts b/sdk/constructive-cli/src/remote/cli/commands/provision-bucket.ts new file mode 100644 index 0000000000..0c54313d78 --- /dev/null +++ b/sdk/constructive-cli/src/remote/cli/commands/provision-bucket.ts @@ -0,0 +1,53 @@ +/** + * CLI command for mutation provisionBucket + * @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 { ProvisionBucketVariables } from '../../orm/mutation'; +import type { ProvisionBucketPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'provision-bucket - Reconcile an S3 bucket for a logical bucket in the database.\nReads the bucket config via RLS, then enqueues the same\nstorage:provision_bucket job used by the INSERT trigger. This is\nidempotent for an already-reconciled bucket; enqueue failures become\nGraphQL errors.\n\nUsage: provision-bucket [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 + .provisionBucket( + parsedAnswers as unknown as ProvisionBucketVariables, + { + select: selectFields, + } as unknown as { + select: ProvisionBucketPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: provisionBucket'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/remote/cli/executor.ts b/sdk/constructive-cli/src/remote/cli/executor.ts new file mode 100644 index 0000000000..342d05c892 --- /dev/null +++ b/sdk/constructive-cli/src/remote/cli/executor.ts @@ -0,0 +1,36 @@ +/** + * Executor and config store for CLI + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { createConfigStore } from 'appstash'; +import { createClient } from '../orm'; +const store = createConfigStore('csdk', { + stashName: 'constructive', +}); +export const getStore = () => store; +export function getClient(contextName?: string) { + let ctx = null; + if (contextName) { + ctx = store.loadContext(contextName); + if (!ctx) { + throw new Error(`Context "${contextName}" not found.`); + } + } else { + ctx = store.getCurrentContext(); + if (!ctx) { + throw new Error('No active context. Run "context create" or "context use" first.'); + } + } + const headers: Record = {}; + if (store.hasValidCredentials(ctx.name)) { + const creds = store.getCredentials(ctx.name); + if (creds?.token) { + headers.Authorization = `Bearer ${creds.token}`; + } + } + return createClient({ + endpoint: ctx.endpoint, + headers: headers, + }); +} diff --git a/sdk/constructive-cli/src/remote/cli/index.ts b/sdk/constructive-cli/src/remote/cli/index.ts new file mode 100644 index 0000000000..9ca839a9ee --- /dev/null +++ b/sdk/constructive-cli/src/remote/cli/index.ts @@ -0,0 +1,29 @@ +/** + * CLI entry point + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { CLI, CLIOptions, getPackageJson } from 'inquirerer'; +import { commands } from './commands'; + +if (process.argv.includes('--version') || process.argv.includes('-v')) { + const pkg = getPackageJson(__dirname); + console.log(pkg.version); + process.exit(0); +} + +// Check for --tty false or --no-tty to enable non-interactive mode (noTty) +const ttyIdx = process.argv.indexOf('--tty'); +const noTty = + (ttyIdx !== -1 && process.argv[ttyIdx + 1] === 'false') || process.argv.includes('--no-tty'); + +const options: Partial = { + noTty, + minimistOpts: { alias: { v: 'version', h: 'help' } }, +}; + +const app = new CLI(commands, options); +app.run().catch((e) => { + console.error('Unexpected error:', e); + process.exit(1); +}); diff --git a/sdk/constructive-cli/src/remote/cli/utils.ts b/sdk/constructive-cli/src/remote/cli/utils.ts new file mode 100644 index 0000000000..78a7defb6f --- /dev/null +++ b/sdk/constructive-cli/src/remote/cli/utils.ts @@ -0,0 +1,314 @@ +/** + * CLI utility functions for type coercion and input handling + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import objectPath from 'nested-obj'; + +export type FieldType = 'string' | 'boolean' | 'int' | 'float' | 'json' | 'uuid' | 'enum'; + +export interface FieldSchema { + [fieldName: string]: FieldType; +} + +/** + * Coerce CLI string arguments to their proper GraphQL types based on a field schema. + * CLI args always arrive as strings from minimist, but GraphQL expects + * Boolean, Int, Float, JSON, etc. + */ +export function coerceAnswers( + answers: Record, + schema: FieldSchema +): Record { + const result: Record = { ...answers }; + + for (const [key, value] of Object.entries(result)) { + const fieldType = schema[key]; + if (!fieldType || value === undefined || value === null) continue; + + const strValue = String(value); + + // Empty strings become undefined for non-string types + if (strValue === '' && fieldType !== 'string') { + result[key] = undefined; + continue; + } + + switch (fieldType) { + case 'boolean': + if (typeof value === 'boolean') break; + result[key] = strValue === 'true' || strValue === '1' || strValue === 'yes'; + break; + case 'int': + if (typeof value === 'number') break; + { + const parsed = parseInt(strValue, 10); + result[key] = isNaN(parsed) ? undefined : parsed; + } + break; + case 'float': + if (typeof value === 'number') break; + { + const parsed = parseFloat(strValue); + result[key] = isNaN(parsed) ? undefined : parsed; + } + break; + case 'json': + if (typeof value === 'object') break; + if (strValue === '') { + result[key] = undefined; + } else { + try { + result[key] = JSON.parse(strValue); + } catch { + result[key] = undefined; + } + } + break; + case 'uuid': + // Empty UUIDs become undefined + if (strValue === '') { + result[key] = undefined; + } + break; + case 'enum': + // Enums stay as strings but empty ones become undefined + if (strValue === '') { + result[key] = undefined; + } + break; + default: + // String type: empty strings also become undefined to avoid + // sending empty strings for optional fields + if (strValue === '') { + result[key] = undefined; + } + break; + } + } + + return result; +} + +/** + * Strip undefined values and filter to only schema-defined keys. + * This removes extra fields injected by minimist (like _, tty, etc.) + * and any fields that were coerced to undefined. + */ +export function stripUndefined( + obj: Record, + schema?: FieldSchema +): Record { + const result: Record = {}; + const allowedKeys = schema ? new Set(Object.keys(schema)) : null; + + for (const [key, value] of Object.entries(obj)) { + if (value === undefined) continue; + if (allowedKeys && !allowedKeys.has(key)) continue; + result[key] = value; + } + + return result; +} + +/** + * Parse mutation input from CLI. + * Custom mutation commands receive an `input` field as a JSON string + * from the CLI prompt. This parses it into a proper object. + */ +export function parseMutationInput(answers: Record): Record { + if (typeof answers.input === 'string') { + try { + const parsed = JSON.parse(answers.input); + return { ...answers, input: parsed }; + } catch { + return answers; + } + } + return answers; +} + +/** + * Reconstruct nested objects from dot-notation CLI answers. + * When INPUT_OBJECT args are flattened to dot-notation questions + * (e.g. `--input.email foo --input.password bar`), this function + * rebuilds the nested structure expected by the ORM: + * + * { 'input.email': 'foo', 'input.password': 'bar' } + * → { input: { email: 'foo', password: 'bar' } } + * + * Non-dotted keys are passed through unchanged. + * Uses `nested-obj` for safe nested property setting. + */ +export function unflattenDotNotation(answers: Record): Record { + const result: Record = {}; + + for (const [key, value] of Object.entries(answers)) { + if (key.includes('.')) { + objectPath.set(result, key, value); + } else { + result[key] = value; + } + } + + return result; +} + +/** + * Build a select object from a comma-separated list of dot-notation paths. + * Uses `nested-obj` to parse paths like 'clientMutationId,result.accessToken,result.userId' + * into the nested structure expected by the ORM: + * + * { clientMutationId: true, result: { select: { accessToken: true, userId: true } } } + * + * Paths without dots set the key to `true` (scalar select). + * Paths with dots create nested `{ select: { ... } }` wrappers, matching the + * ORM's expected structure for OBJECT sub-fields (e.g. `SignUpPayloadSelect.result`). + * + * @param paths - Comma-separated dot-notation field paths (e.g. 'clientMutationId,result.accessToken') + * @returns The nested select object for the ORM + */ +/** + * Parse a CLI flag as an integer. + * Handles minimist delivering numbers or strings depending on the input. + * Returns undefined when the flag is missing or not a valid number. + */ +export function parseIntFlag(argv: Record, name: string): number | undefined { + const val = argv[name]; + if (typeof val === 'number') return val; + if (typeof val === 'string') { + const n = parseInt(val, 10); + return isNaN(n) ? undefined : n; + } + return undefined; +} + +/** + * Parse a CLI flag as a string. + * Returns undefined when the flag is missing or not a string. + */ +export function parseStringFlag(argv: Record, name: string): string | undefined { + const val = argv[name]; + return typeof val === 'string' ? val : undefined; +} + +/** + * Parse --orderBy flag as a comma-separated list of enum values. + * e.g. --orderBy NAME_ASC,CREATED_AT_DESC → ['NAME_ASC', 'CREATED_AT_DESC'] + */ +export function parseOrderByFlag(argv: Record): string[] | undefined { + const val = argv.orderBy; + return typeof val === 'string' ? val.split(',') : undefined; +} + +/** + * Parse --select flag into a select object, falling back to a default. + * e.g. --select id,name → { id: true, name: true } + */ +export function parseSelectFlag( + argv: Record, + defaultSelect: Record +): Record { + const raw = argv.select; + return typeof raw === 'string' ? buildSelectFromPaths(raw) : defaultSelect; +} + +/** + * Build the full findManyArgs object from CLI argv. + * Parses all pagination, filtering, ordering, and field selection flags + * in one call. Accepts an optional `extraWhere` to merge with dot-notation + * --where flags (used by the search handler to inject search clauses). + * + * @example + * const findManyArgs = parseFindManyArgs(argv, { id: true, name: true }); + * const result = await client.user.findMany(findManyArgs).execute(); + */ +export function parseFindManyArgs>( + argv: Record, + defaultSelect: Record, + extraWhere?: Record +): T { + const limit = parseIntFlag(argv, 'limit'); + const last = parseIntFlag(argv, 'last'); + const offset = parseIntFlag(argv, 'offset'); + const after = parseStringFlag(argv, 'after'); + const before = parseStringFlag(argv, 'before'); + const select = parseSelectFlag(argv, defaultSelect); + const parsed = unflattenDotNotation(argv); + const where = + (parsed.where ?? extraWhere) + ? { ...(extraWhere ?? {}), ...((parsed.where as Record) ?? {}) } + : undefined; + const orderBy = parseOrderByFlag(argv); + + return { + select, + ...(limit !== undefined ? { first: limit } : {}), + ...(after !== undefined ? { after } : {}), + ...(last !== undefined ? { last } : {}), + ...(before !== undefined ? { before } : {}), + ...(offset !== undefined ? { offset } : {}), + ...(where !== undefined ? { where } : {}), + ...(orderBy !== undefined ? { orderBy } : {}), + } as unknown as T; +} + +/** + * Build findFirst args from CLI argv. + * Like parseFindManyArgs but without pagination flags (no limit/offset/after/before/last) + * — findFirst returns the first matching record. Supports select, where, and orderBy. + */ +export function parseFindFirstArgs>( + argv: Record, + defaultSelect: Record +): T { + const select = parseSelectFlag(argv, defaultSelect); + const parsed = unflattenDotNotation(argv); + const where = parsed.where; + const orderBy = parseOrderByFlag(argv); + + return { + select, + ...(where !== undefined ? { where } : {}), + ...(orderBy !== undefined ? { orderBy } : {}), + } as unknown as T; +} + +export function buildSelectFromPaths(paths: string): Record { + const result: Record = {}; + const trimmedPaths = paths + .split(',') + .map((p) => p.trim()) + .filter((p) => p.length > 0); + + for (const path of trimmedPaths) { + if (!path.includes('.')) { + // Simple scalar field: clientMutationId -> { clientMutationId: true } + result[path] = true; + } else { + // Nested path: result.accessToken -> { result: { select: { accessToken: true } } } + // Convert dot-notation to ORM's { select: { ... } } nesting pattern + const parts = path.split('.'); + let current = result; + for (let i = 0; i < parts.length; i++) { + const part = parts[i]; + if (i === parts.length - 1) { + // Leaf node: set to true + objectPath.set(current, part, true); + } else { + // Intermediate node: ensure { select: { ... } } wrapper exists + if (!current[part] || typeof current[part] !== 'object') { + current[part] = { select: {} }; + } + const wrapper = current[part] as Record; + if (!wrapper.select || typeof wrapper.select !== 'object') { + wrapper.select = {}; + } + current = wrapper.select as Record; + } + } + } + } + + return result; +} diff --git a/sdk/constructive-cli/src/remote/index.ts b/sdk/constructive-cli/src/remote/index.ts new file mode 100644 index 0000000000..df67cba476 --- /dev/null +++ b/sdk/constructive-cli/src/remote/index.ts @@ -0,0 +1,6 @@ +/** + * GraphQL SDK - auto-generated, do not edit + * @generated by @constructive-io/graphql-codegen + */ +export * from './orm'; +export * from './cli'; diff --git a/sdk/constructive-cli/src/remote/orm/README.md b/sdk/constructive-cli/src/remote/orm/README.md new file mode 100644 index 0000000000..df7c4060e0 --- /dev/null +++ b/sdk/constructive-cli/src/remote/orm/README.md @@ -0,0 +1,203 @@ +# ORM Client + +

+ +

+ + + +## Setup + +```typescript +import { createClient } from './orm'; + +const db = createClient({ + endpoint: 'https://api.example.com/graphql', + headers: { Authorization: 'Bearer ' }, +}); +``` + +## Models + +| Model | Operations | +|-------|------------| +| `machine` | findMany, findOne, create, update, delete | +| `machineMessage` | findMany, findOne, create, update, delete | +| `machineSession` | findMany, findOne, create, update, delete | + +## Table Operations + +### `db.machine` + +CRUD operations for Machine records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `createdAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | +| `entityId` | UUID | Yes | +| `facts` | JSON | Yes | +| `id` | UUID | No | +| `isShared` | Boolean | Yes | +| `label` | String | Yes | +| `lastSeenAt` | Datetime | Yes | +| `ownerId` | UUID | Yes | +| `policy` | JSON | Yes | +| `principalId` | UUID | Yes | +| `revokedAt` | Datetime | Yes | +| `tokenHash` | String | Yes | +| `updatedAt` | Datetime | No | +| `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | + +**Operations:** + +```typescript +// List all machine records +const items = await db.machine.findMany({ select: { createdAt: true, createdBy: true, createdByPrincipal: true, entityId: true, facts: true, id: true, isShared: true, label: true, lastSeenAt: true, ownerId: true, policy: true, principalId: true, revokedAt: true, tokenHash: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Get one by id +const item = await db.machine.findOne({ id: '', select: { createdAt: true, createdBy: true, createdByPrincipal: true, entityId: true, facts: true, id: true, isShared: true, label: true, lastSeenAt: true, ownerId: true, policy: true, principalId: true, revokedAt: true, tokenHash: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Create +const created = await db.machine.create({ data: { createdBy: '', createdByPrincipal: '', entityId: '', facts: '', isShared: '', label: '', lastSeenAt: '', ownerId: '', policy: '', principalId: '', revokedAt: '', tokenHash: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.machine.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.machine.delete({ where: { id: '' } }).execute(); +``` + +### `db.machineMessage` + +CRUD operations for MachineMessage records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `actorId` | UUID | Yes | +| `content` | JSON | Yes | +| `createdByPrincipal` | UUID | Yes | +| `entityId` | UUID | Yes | +| `id` | UUID | No | +| `kind` | String | Yes | +| `ownerId` | UUID | Yes | +| `recordedAt` | Datetime | Yes | +| `seq` | BigInt | Yes | +| `sessionId` | UUID | Yes | + +**Operations:** + +```typescript +// List all machineMessage records +const items = await db.machineMessage.findMany({ select: { actorId: true, content: true, createdByPrincipal: true, entityId: true, id: true, kind: true, ownerId: true, recordedAt: true, seq: true, sessionId: true } }).execute(); + +// Get one by id +const item = await db.machineMessage.findOne({ id: '', select: { actorId: true, content: true, createdByPrincipal: true, entityId: true, id: true, kind: true, ownerId: true, recordedAt: true, seq: true, sessionId: true } }).execute(); + +// Create +const created = await db.machineMessage.create({ data: { actorId: '', content: '', createdByPrincipal: '', entityId: '', kind: '', ownerId: '', recordedAt: '', seq: '', sessionId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.machineMessage.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.machineMessage.delete({ where: { id: '' } }).execute(); +``` + +### `db.machineSession` + +CRUD operations for MachineSession records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `agentMode` | String | Yes | +| `agentSessionRef` | String | Yes | +| `args` | String | Yes | +| `cols` | Int | Yes | +| `command` | String | Yes | +| `createdAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | +| `cwd` | String | Yes | +| `endedAt` | Datetime | Yes | +| `entityId` | UUID | Yes | +| `env` | JSON | Yes | +| `exitCode` | Int | Yes | +| `id` | UUID | No | +| `interactive` | Boolean | Yes | +| `lastActivityAt` | Datetime | Yes | +| `lastSeq` | BigInt | Yes | +| `machineId` | UUID | Yes | +| `metadata` | JSON | Yes | +| `ownerId` | UUID | Yes | +| `pid` | Int | Yes | +| `runId` | UUID | Yes | +| `startedAt` | Datetime | Yes | +| `state` | String | Yes | +| `termRows` | Int | Yes | +| `updatedAt` | Datetime | No | +| `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | + +**Operations:** + +```typescript +// List all machineSession records +const items = await db.machineSession.findMany({ select: { agentMode: true, agentSessionRef: true, args: true, cols: true, command: true, createdAt: true, createdBy: true, createdByPrincipal: true, cwd: true, endedAt: true, entityId: true, env: true, exitCode: true, id: true, interactive: true, lastActivityAt: true, lastSeq: true, machineId: true, metadata: true, ownerId: true, pid: true, runId: true, startedAt: true, state: true, termRows: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Get one by id +const item = await db.machineSession.findOne({ id: '', select: { agentMode: true, agentSessionRef: true, args: true, cols: true, command: true, createdAt: true, createdBy: true, createdByPrincipal: true, cwd: true, endedAt: true, entityId: true, env: true, exitCode: true, id: true, interactive: true, lastActivityAt: true, lastSeq: true, machineId: true, metadata: true, ownerId: true, pid: true, runId: true, startedAt: true, state: true, termRows: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Create +const created = await db.machineSession.create({ data: { agentMode: '', agentSessionRef: '', args: '', cols: '', command: '', createdBy: '', createdByPrincipal: '', cwd: '', endedAt: '', entityId: '', env: '', exitCode: '', interactive: '', lastActivityAt: '', lastSeq: '', machineId: '', metadata: '', ownerId: '', pid: '', runId: '', startedAt: '', state: '', termRows: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.machineSession.update({ where: { id: '' }, data: { agentMode: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.machineSession.delete({ where: { id: '' } }).execute(); +``` + +## Custom Operations + +### `db.mutation.machinesEnroll` + +machinesEnroll + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | MachinesEnrollInput (required) | + +```typescript +const result = await db.mutation.machinesEnroll({ input: { entityId: '', isShared: '', label: '', tokenHash: '' } }).execute(); +``` + +### `db.mutation.provisionBucket` + +Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | ProvisionBucketInput (required) | + +```typescript +const result = await db.mutation.provisionBucket({ input: { bucketKey: '', ownerId: '' } }).execute(); +``` diff --git a/sdk/constructive-cli/src/remote/orm/client.ts b/sdk/constructive-cli/src/remote/orm/client.ts new file mode 100644 index 0000000000..8141c1e52b --- /dev/null +++ b/sdk/constructive-cli/src/remote/orm/client.ts @@ -0,0 +1,254 @@ +/** + * ORM Client - Runtime GraphQL executor + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import type { + GraphQLAdapter, + GraphQLError, + QueryResult, +} from '@constructive-io/graphql-query/runtime'; +import { createFetch } from '@constructive-io/graphql-query/runtime'; + +import type { + ConnectionState, + ConnectionStateListener, + RealtimeConfig, + SubscribeOptions, + SubscriptionEvent, + SubscriptionFieldMeta, + Unsubscribe, +} from './realtime'; +import { RealtimeManager } from './realtime'; + +export type { + GraphQLAdapter, + GraphQLError, + QueryResult, +} from '@constructive-io/graphql-query/runtime'; + +export type { + ConnectionState, + ConnectionStateListener, + RealtimeConfig, + SubscribeOptions, + SubscriptionEvent, + SubscriptionFieldMeta, + SubscriptionOperation, + Unsubscribe, + WsClient, +} from './realtime'; +export { RealtimeManager } from './realtime'; + +/** + * Default adapter that uses fetch for HTTP requests. + * + * When no custom fetch is provided, uses @constructive-io/fetch which + * handles *.localhost DNS rewriting and Host header preservation in + * Node.js. Pass a custom fetch to override for test mocking or custom + * proxy/credentials. + */ +export class FetchAdapter implements GraphQLAdapter { + private headers: Record; + private fetchFn: typeof globalThis.fetch; + + constructor( + private endpoint: string, + headers?: Record, + fetchFn?: typeof globalThis.fetch + ) { + this.headers = headers ?? {}; + this.fetchFn = (fetchFn ?? createFetch()).bind(globalThis); + } + + async execute(document: string, variables?: Record): Promise> { + const response = await this.fetchFn(this.endpoint, { + method: 'POST', + headers: { + 'Content-Type': 'application/json', + Accept: 'application/json', + ...this.headers, + }, + body: JSON.stringify({ + query: document, + variables: variables ?? {}, + }), + }); + + if (!response.ok) { + return { + ok: false, + data: null, + errors: [{ message: `HTTP ${response.status}: ${response.statusText}` }], + }; + } + + const json = (await response.json()) as { + data?: T; + errors?: GraphQLError[]; + }; + + if (json.errors && json.errors.length > 0) { + return { + ok: false, + data: null, + errors: json.errors, + }; + } + + return { + ok: true, + data: json.data as T, + errors: undefined, + }; + } + + setHeaders(headers: Record): void { + this.headers = { ...this.headers, ...headers }; + } + + getEndpoint(): string { + return this.endpoint; + } +} + +/** + * Configuration for creating an ORM client. + * Either provide endpoint (and optional headers/fetch) for HTTP requests, + * or provide a custom adapter for alternative execution strategies. + */ +export interface OrmClientConfig { + /** GraphQL endpoint URL (required if adapter not provided) */ + endpoint?: string; + /** Default headers for HTTP requests (only used with endpoint) */ + headers?: Record; + /** + * Custom fetch implementation. Defaults to createFetch() from + * @constructive-io/graphql-query/runtime which handles *.localhost + * DNS and Host headers in Node.js. Pass your own for test mocking + * or custom proxy/credentials. + */ + fetch?: typeof globalThis.fetch; + /** Custom adapter for GraphQL execution (overrides endpoint/headers/fetch) */ + adapter?: GraphQLAdapter; + /** + * Optional realtime (WebSocket) configuration. + * When provided, enables subscription methods on models. + * The WebSocket connection is created lazily on first subscribe(). + */ + realtime?: RealtimeConfig; +} + +/** + * Describe a single GraphQL error, falling back to its `extensions.code` when + * the server omits `message` so the error never renders as an empty string. + */ +function describeGraphQLError(error: GraphQLError): string { + if (error.message) return error.message; + const code = error.extensions?.code; + return typeof code === 'string' ? code : 'Unknown error'; +} + +/** + * Error thrown when GraphQL request fails + */ +export class GraphQLRequestError extends Error { + constructor( + public readonly errors: GraphQLError[], + public readonly data: unknown = null + ) { + const messages = errors.map(describeGraphQLError).join('; '); + super(`GraphQL Error: ${messages}`); + this.name = 'GraphQLRequestError'; + } +} + +export class OrmClient { + private adapter: GraphQLAdapter; + private realtimeManager?: RealtimeManager; + + constructor(config: OrmClientConfig) { + if (config.adapter) { + this.adapter = config.adapter; + } else if (config.endpoint) { + this.adapter = new FetchAdapter(config.endpoint, config.headers, config.fetch); + } else { + throw new Error('OrmClientConfig requires either an endpoint or a custom adapter'); + } + + if (config.realtime) { + this.realtimeManager = new RealtimeManager(config.realtime); + } + } + + async execute(document: string, variables?: Record): Promise> { + return this.adapter.execute(document, variables); + } + + /** + * Subscribe to a GraphQL subscription operation. + * Used by generated model subscribe() methods. + * @throws Error if realtime is not configured + */ + subscribe( + meta: SubscriptionFieldMeta, + document: string, + variables: Record, + options: { + onEvent: (event: SubscriptionEvent) => void; + onError?: (error: Error) => void; + onComplete?: () => void; + } + ): Unsubscribe { + if (!this.realtimeManager) { + throw new Error( + 'Realtime not configured. Pass a `realtime` option to createClient() to enable subscriptions.' + ); + } + return this.realtimeManager.subscribe(meta, document, variables, options); + } + + /** + * Set headers for requests. + * Only works if the adapter supports headers. + */ + setHeaders(headers: Record): void { + if (this.adapter.setHeaders) { + this.adapter.setHeaders(headers); + } + } + + /** + * Get the endpoint URL. + * Returns empty string if the adapter doesn't have an endpoint. + */ + getEndpoint(): string { + return this.adapter.getEndpoint?.() ?? ''; + } + + /** Get current WebSocket connection state */ + getConnectionState(): ConnectionState { + return this.realtimeManager?.getConnectionState() ?? 'disconnected'; + } + + /** Register a listener for WebSocket connection state changes */ + onConnectionStateChange(listener: ConnectionStateListener): Unsubscribe { + if (!this.realtimeManager) return () => {}; + return this.realtimeManager.onConnectionStateChange(listener); + } + + /** Number of active subscriptions */ + getActiveSubscriptionCount(): number { + return this.realtimeManager?.getActiveSubscriptionCount() ?? 0; + } + + /** Whether realtime is configured */ + get isRealtimeEnabled(): boolean { + return this.realtimeManager !== undefined; + } + + /** Dispose the realtime manager (close WebSocket) */ + dispose(): void { + this.realtimeManager?.dispose(); + } +} diff --git a/sdk/constructive-cli/src/remote/orm/index.ts b/sdk/constructive-cli/src/remote/orm/index.ts new file mode 100644 index 0000000000..e166dd236a --- /dev/null +++ b/sdk/constructive-cli/src/remote/orm/index.ts @@ -0,0 +1,49 @@ +/** + * ORM Client - createClient factory + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from './client'; +import type { OrmClientConfig } from './client'; +import { MachineModel } from './models/machine'; +import { MachineMessageModel } from './models/machineMessage'; +import { MachineSessionModel } from './models/machineSession'; +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 { createMutationOperations } from './mutation'; +/** + * Create an ORM client instance + * + * @example + * ```typescript + * const db = createClient({ + * endpoint: 'https://api.example.com/graphql', + * headers: { Authorization: 'Bearer token' }, + * }); + * + * // Query users + * const users = await db.user.findMany({ + * select: { id: true, name: true }, + * first: 10, + * }).execute(); + * + * // Create a user + * const newUser = await db.user.create({ + * data: { name: 'John', email: 'john@example.com' }, + * select: { id: true }, + * }).execute(); + * ``` + */ +export function createClient(config: OrmClientConfig) { + const client = new OrmClient(config); + return { + machine: new MachineModel(client), + machineMessage: new MachineMessageModel(client), + machineSession: new MachineSessionModel(client), + mutation: createMutationOperations(client), + }; +} diff --git a/sdk/constructive-cli/src/remote/orm/input-types.ts b/sdk/constructive-cli/src/remote/orm/input-types.ts new file mode 100644 index 0000000000..190f46da9e --- /dev/null +++ b/sdk/constructive-cli/src/remote/orm/input-types.ts @@ -0,0 +1,1629 @@ +/** + * GraphQL types for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +// ============ Scalar Filter Types ============ +export interface StringFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; + includes?: string; + notIncludes?: string; + includesInsensitive?: string; + notIncludesInsensitive?: string; + startsWith?: string; + notStartsWith?: string; + startsWithInsensitive?: string; + notStartsWithInsensitive?: string; + endsWith?: string; + notEndsWith?: string; + endsWithInsensitive?: string; + notEndsWithInsensitive?: string; + like?: string; + notLike?: string; + likeInsensitive?: string; + notLikeInsensitive?: string; +} +export interface IntFilter { + isNull?: boolean; + equalTo?: number; + notEqualTo?: number; + distinctFrom?: number; + notDistinctFrom?: number; + in?: number[]; + notIn?: number[]; + lessThan?: number; + lessThanOrEqualTo?: number; + greaterThan?: number; + greaterThanOrEqualTo?: number; +} +export interface FloatFilter { + isNull?: boolean; + equalTo?: number; + notEqualTo?: number; + distinctFrom?: number; + notDistinctFrom?: number; + in?: number[]; + notIn?: number[]; + lessThan?: number; + lessThanOrEqualTo?: number; + greaterThan?: number; + greaterThanOrEqualTo?: number; +} +export interface BooleanFilter { + isNull?: boolean; + equalTo?: boolean; + notEqualTo?: boolean; +} +export interface UUIDFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; +} +export interface DatetimeFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; +} +export interface DateFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; +} +export interface JSONFilter { + isNull?: boolean; + equalTo?: Record; + notEqualTo?: Record; + distinctFrom?: Record; + notDistinctFrom?: Record; + contains?: Record; + containedBy?: Record; + containsKey?: string; + containsAllKeys?: string[]; + containsAnyKeys?: string[]; +} +export interface BigIntFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; +} +export interface BigFloatFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; +} +export interface BitStringFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; +} +export interface InternetAddressFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; + contains?: string; + containsOrEqualTo?: string; + containedBy?: string; + containedByOrEqualTo?: string; + containsOrContainedBy?: string; +} +export interface FullTextFilter { + matches?: string; +} +export interface VectorFilter { + isNull?: boolean; + equalTo?: number[]; + notEqualTo?: number[]; + distinctFrom?: number[]; + notDistinctFrom?: number[]; +} +export interface StringListFilter { + isNull?: boolean; + equalTo?: string[]; + notEqualTo?: string[]; + distinctFrom?: string[]; + notDistinctFrom?: string[]; + lessThan?: string[]; + lessThanOrEqualTo?: string[]; + greaterThan?: string[]; + greaterThanOrEqualTo?: string[]; + contains?: string[]; + containedBy?: string[]; + overlaps?: string[]; + anyEqualTo?: string; + anyNotEqualTo?: string; + anyLessThan?: string; + anyLessThanOrEqualTo?: string; + anyGreaterThan?: string; + anyGreaterThanOrEqualTo?: string; +} +export interface IntListFilter { + isNull?: boolean; + equalTo?: number[]; + notEqualTo?: number[]; + distinctFrom?: number[]; + notDistinctFrom?: number[]; + lessThan?: number[]; + lessThanOrEqualTo?: number[]; + greaterThan?: number[]; + greaterThanOrEqualTo?: number[]; + contains?: number[]; + containedBy?: number[]; + overlaps?: number[]; + anyEqualTo?: number; + anyNotEqualTo?: number; + anyLessThan?: number; + anyLessThanOrEqualTo?: number; + anyGreaterThan?: number; + anyGreaterThanOrEqualTo?: number; +} +export interface UUIDListFilter { + isNull?: boolean; + equalTo?: string[]; + notEqualTo?: string[]; + distinctFrom?: string[]; + notDistinctFrom?: string[]; + lessThan?: string[]; + lessThanOrEqualTo?: string[]; + greaterThan?: string[]; + greaterThanOrEqualTo?: string[]; + contains?: string[]; + containedBy?: string[]; + overlaps?: string[]; + anyEqualTo?: string; + anyNotEqualTo?: string; + anyLessThan?: string; + anyLessThanOrEqualTo?: string; + anyGreaterThan?: string; + anyGreaterThanOrEqualTo?: string; +} +/** Computers enrolled for remote control, one row per database enrollment */ +// ============ Entity Types ============ +export interface Machine { + createdAt?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + /** Entity that owns this machine (a personal entity for my own laptop, an org for a shared box) */ + entityId?: string | null; + /** What the runner advertises: os, arch, hostname, shells, pty, installed agents, max_sessions */ + facts?: Record | null; + id: string; + /** Whether this machine is a shared runner anyone with the session capability may use (false: owner only) */ + isShared?: boolean | null; + /** Human-readable machine name (dan-macbook) */ + label?: string | null; + /** Last heartbeat from the runner; online is derived from this */ + lastSeenAt?: string | null; + /** User who enrolled this machine */ + ownerId?: string | null; + /** Server-side copy of the local policy: mode, approved commands, allowed cwds and env keys */ + policy?: Record | null; + /** Principal this machine acts as (set with the row by _enroll) */ + principalId?: string | null; + /** When enrollment was revoked; the relay refuses a revoked machine */ + revokedAt?: string | null; + /** Hash of the enrollment credential the runner presents */ + tokenHash?: string | null; + updatedAt?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +/** Partitioned append-only ledger of session input, output and lifecycle */ +export interface MachineMessage { + /** Who produced this message: the user, or the machine acting as its principal */ + actorId?: string | null; + /** Body of the message; its shape follows the kind */ + content?: Record | null; + /** Acting principal (agent, API key, or user) who created this record */ + createdByPrincipal?: string | null; + /** Entity that owns the machine this message was exchanged with */ + entityId?: string | null; + /** Unique identifier (uuidv7 provides temporal ordering) */ + id: string; + /** What this message is: command, stdin, signal, resize, stdout, stderr, cwd, exit, state, policy */ + kind?: string | null; + /** User who owns the session this message belongs to (inherited) */ + ownerId?: string | null; + /** When the message was recorded (partition key) */ + recordedAt?: string | null; + /** Position in the session's ledger, monotonically increasing */ + seq?: string | null; + /** Session this message belongs to */ + sessionId?: string | null; +} +/** Command or terminal sessions running on an enrolled machine */ +export interface MachineSession { + /** How a bound session runs the agent: cli (the user's installed CLI) or embedded (our loop) */ + agentMode?: string | null; + /** The CLI's own resumable session identifier (agent_mode = cli) */ + agentSessionRef?: string | null; + /** Arguments the command is spawned with */ + args?: string[] | null; + /** Terminal width, preserved across reattach */ + cols?: number | null; + /** Program the runner spawns for this session */ + command?: string | null; + createdAt?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + /** Working directory the runner last reported */ + cwd?: string | null; + /** When the session reached a terminal state */ + endedAt?: string | null; + /** Entity that owns the machine this session runs on */ + entityId?: string | null; + /** Non-secret environment variables for the process; policy gates which keys are allowed */ + env?: Record | null; + /** Process exit status, once it ended */ + exitCode?: number | null; + id: string; + /** Whether raw PTY bytes ride the socket (interactive) or every command is a ledger row */ + interactive?: boolean | null; + /** Last time bytes moved in either direction */ + lastActivityAt?: string | null; + /** Highest ledger sequence recorded for this session */ + lastSeq?: string | null; + /** Machine this session runs on */ + machineId?: string | null; + /** Session detail (client, shell integration, scrollback pointer) */ + metadata?: Record | null; + /** User who opened this session */ + ownerId?: string | null; + /** Process id on the machine, while it is running */ + pid?: number | null; + /** Agent run this session executes locally (NULL for a plain terminal) */ + runId?: string | null; + /** When the process was spawned */ + startedAt?: string | null; + /** Lifecycle: pending, running, detached, exited, killed, failed */ + state?: string | null; + /** Terminal height, preserved across reattach */ + termRows?: number | null; + updatedAt?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +// ============ Relation Helper Types ============ +export interface ConnectionResult { + nodes: T[]; + totalCount: number; + pageInfo: PageInfo; +} +export interface PageInfo { + hasNextPage: boolean; + hasPreviousPage: boolean; + startCursor?: string | null; + endCursor?: string | null; +} +// ============ Entity Relation Types ============ +export interface MachineRelations { + machineSessions?: ConnectionResult; +} +export interface MachineMessageRelations { + session?: MachineSession | null; +} +export interface MachineSessionRelations { + machine?: Machine | null; + machineMessagesBySessionId?: ConnectionResult; +} +// ============ Entity Types With Relations ============ +export type MachineWithRelations = Machine & MachineRelations; +export type MachineMessageWithRelations = MachineMessage & MachineMessageRelations; +export type MachineSessionWithRelations = MachineSession & MachineSessionRelations; +// ============ Entity Select Types ============ +export type MachineSelect = { + createdAt?: boolean; + createdBy?: boolean; + createdByPrincipal?: boolean; + entityId?: boolean; + facts?: boolean; + id?: boolean; + isShared?: boolean; + label?: boolean; + lastSeenAt?: boolean; + ownerId?: boolean; + policy?: boolean; + principalId?: boolean; + revokedAt?: boolean; + tokenHash?: boolean; + updatedAt?: boolean; + updatedBy?: boolean; + updatedByPrincipal?: boolean; + machineSessions?: { + select: MachineSessionSelect; + first?: number; + filter?: MachineSessionFilter; + orderBy?: MachineSessionOrderBy[]; + }; +}; +export type MachineMessageSelect = { + actorId?: boolean; + content?: boolean; + createdByPrincipal?: boolean; + entityId?: boolean; + id?: boolean; + kind?: boolean; + ownerId?: boolean; + recordedAt?: boolean; + seq?: boolean; + sessionId?: boolean; + session?: { + select: MachineSessionSelect; + }; +}; +export type MachineSessionSelect = { + agentMode?: boolean; + agentSessionRef?: boolean; + args?: boolean; + cols?: boolean; + command?: boolean; + createdAt?: boolean; + createdBy?: boolean; + createdByPrincipal?: boolean; + cwd?: boolean; + endedAt?: boolean; + entityId?: boolean; + env?: boolean; + exitCode?: boolean; + id?: boolean; + interactive?: boolean; + lastActivityAt?: boolean; + lastSeq?: boolean; + machineId?: boolean; + metadata?: boolean; + ownerId?: boolean; + pid?: boolean; + runId?: boolean; + startedAt?: boolean; + state?: boolean; + termRows?: boolean; + updatedAt?: boolean; + updatedBy?: boolean; + updatedByPrincipal?: boolean; + machine?: { + select: MachineSelect; + }; + machineMessagesBySessionId?: { + select: MachineMessageSelect; + first?: number; + filter?: MachineMessageFilter; + orderBy?: MachineMessageOrderBy[]; + }; +}; +// ============ Table Filter Types ============ +export interface MachineFilter { + /** Checks for all expressions in this list. */ + and?: MachineFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `facts` field. */ + facts?: JSONFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isShared` field. */ + isShared?: BooleanFilter; + /** Filter by the object’s `label` field. */ + label?: StringFilter; + /** Filter by the object’s `lastSeenAt` field. */ + lastSeenAt?: DatetimeFilter; + /** Filter by the object’s `machineSessions` relation. */ + machineSessions?: MachineToManyMachineSessionFilter; + /** `machineSessions` exist. */ + machineSessionsExist?: boolean; + /** Negates the expression. */ + not?: MachineFilter; + /** Checks for any expressions in this list. */ + or?: MachineFilter[]; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `policy` field. */ + policy?: JSONFilter; + /** Filter by the object’s `principalId` field. */ + principalId?: UUIDFilter; + /** Filter by the object’s `revokedAt` field. */ + revokedAt?: DatetimeFilter; + /** Filter by the object’s `tokenHash` field. */ + tokenHash?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} +export interface MachineMessageFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: MachineMessageFilter[]; + /** Filter by the object’s `content` field. */ + content?: JSONFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Negates the expression. */ + not?: MachineMessageFilter; + /** Checks for any expressions in this list. */ + or?: MachineMessageFilter[]; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `recordedAt` field. */ + recordedAt?: DatetimeFilter; + /** Filter by the object’s `seq` field. */ + seq?: BigIntFilter; + /** Filter by the object’s `session` relation. */ + session?: MachineSessionFilter; + /** Filter by the object’s `sessionId` field. */ + sessionId?: UUIDFilter; +} +export interface MachineSessionFilter { + /** Filter by the object’s `agentMode` field. */ + agentMode?: StringFilter; + /** Filter by the object’s `agentSessionRef` field. */ + agentSessionRef?: StringFilter; + /** Checks for all expressions in this list. */ + and?: MachineSessionFilter[]; + /** Filter by the object’s `args` field. */ + args?: StringListFilter; + /** Filter by the object’s `cols` field. */ + cols?: IntFilter; + /** Filter by the object’s `command` field. */ + command?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `cwd` field. */ + cwd?: StringFilter; + /** Filter by the object’s `endedAt` field. */ + endedAt?: DatetimeFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `env` field. */ + env?: JSONFilter; + /** Filter by the object’s `exitCode` field. */ + exitCode?: IntFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `interactive` field. */ + interactive?: BooleanFilter; + /** Filter by the object’s `lastActivityAt` field. */ + lastActivityAt?: DatetimeFilter; + /** Filter by the object’s `lastSeq` field. */ + lastSeq?: BigIntFilter; + /** Filter by the object’s `machine` relation. */ + machine?: MachineFilter; + /** Filter by the object’s `machineId` field. */ + machineId?: UUIDFilter; + /** Filter by the object’s `machineMessagesBySessionId` relation. */ + machineMessagesBySessionId?: MachineSessionToManyMachineMessageFilter; + /** `machineMessagesBySessionId` exist. */ + machineMessagesBySessionIdExist?: boolean; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Negates the expression. */ + not?: MachineSessionFilter; + /** Checks for any expressions in this list. */ + or?: MachineSessionFilter[]; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `pid` field. */ + pid?: IntFilter; + /** Filter by the object’s `runId` field. */ + runId?: UUIDFilter; + /** Filter by the object’s `startedAt` field. */ + startedAt?: DatetimeFilter; + /** Filter by the object’s `state` field. */ + state?: StringFilter; + /** Filter by the object’s `termRows` field. */ + termRows?: IntFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} +// ============ OrderBy Types ============ +export type MachineOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'FACTS_ASC' + | 'FACTS_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_SHARED_ASC' + | 'IS_SHARED_DESC' + | 'LABEL_ASC' + | 'LABEL_DESC' + | 'LAST_SEEN_AT_ASC' + | 'LAST_SEEN_AT_DESC' + | 'NATURAL' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'POLICY_ASC' + | 'POLICY_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PRINCIPAL_ID_ASC' + | 'PRINCIPAL_ID_DESC' + | 'REVOKED_AT_ASC' + | 'REVOKED_AT_DESC' + | 'TOKEN_HASH_ASC' + | 'TOKEN_HASH_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +export type MachineMessageOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'CONTENT_ASC' + | 'CONTENT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'KIND_ASC' + | 'KIND_DESC' + | 'NATURAL' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'RECORDED_AT_ASC' + | 'RECORDED_AT_DESC' + | 'SEQ_ASC' + | 'SEQ_DESC' + | 'SESSION_ID_ASC' + | 'SESSION_ID_DESC'; +export type MachineSessionOrderBy = + | 'AGENT_MODE_ASC' + | 'AGENT_MODE_DESC' + | 'AGENT_SESSION_REF_ASC' + | 'AGENT_SESSION_REF_DESC' + | 'ARGS_ASC' + | 'ARGS_DESC' + | 'COLS_ASC' + | 'COLS_DESC' + | 'COMMAND_ASC' + | 'COMMAND_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'CWD_ASC' + | 'CWD_DESC' + | 'ENDED_AT_ASC' + | 'ENDED_AT_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'ENV_ASC' + | 'ENV_DESC' + | 'EXIT_CODE_ASC' + | 'EXIT_CODE_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'INTERACTIVE_ASC' + | 'INTERACTIVE_DESC' + | 'LAST_ACTIVITY_AT_ASC' + | 'LAST_ACTIVITY_AT_DESC' + | 'LAST_SEQ_ASC' + | 'LAST_SEQ_DESC' + | 'MACHINE_ID_ASC' + | 'MACHINE_ID_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'NATURAL' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'PID_ASC' + | 'PID_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'RUN_ID_ASC' + | 'RUN_ID_DESC' + | 'STARTED_AT_ASC' + | 'STARTED_AT_DESC' + | 'STATE_ASC' + | 'STATE_DESC' + | 'TERM_ROWS_ASC' + | 'TERM_ROWS_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +// ============ CRUD Input Types ============ +export interface CreateMachineInput { + clientMutationId?: string; + machine: { + createdBy?: string; + createdByPrincipal?: string; + entityId: string; + facts?: Record; + isShared?: boolean; + label: string; + lastSeenAt?: string; + ownerId: string; + policy?: Record; + principalId?: string; + revokedAt?: string; + tokenHash: string; + updatedBy?: string; + updatedByPrincipal?: string; + }; +} +export interface MachinePatch { + createdBy?: string | null; + createdByPrincipal?: string | null; + entityId?: string | null; + facts?: Record | null; + isShared?: boolean | null; + label?: string | null; + lastSeenAt?: string | null; + ownerId?: string | null; + policy?: Record | null; + principalId?: string | null; + revokedAt?: string | null; + tokenHash?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdateMachineInput { + clientMutationId?: string; + id: string; + machinePatch: MachinePatch; +} +export interface DeleteMachineInput { + clientMutationId?: string; + id: string; +} +export interface CreateMachineMessageInput { + clientMutationId?: string; + machineMessage: { + actorId: string; + content?: Record; + createdByPrincipal?: string; + entityId: string; + kind: string; + ownerId: string; + recordedAt?: string; + seq: string; + sessionId: string; + }; +} +export interface MachineMessagePatch { + actorId?: string | null; + content?: Record | null; + createdByPrincipal?: string | null; + entityId?: string | null; + kind?: string | null; + ownerId?: string | null; + recordedAt?: string | null; + seq?: string | null; + sessionId?: string | null; +} +export interface UpdateMachineMessageInput { + clientMutationId?: string; + id: string; + machineMessagePatch: MachineMessagePatch; +} +export interface DeleteMachineMessageInput { + clientMutationId?: string; + id: string; +} +export interface CreateMachineSessionInput { + clientMutationId?: string; + machineSession: { + agentMode?: string; + agentSessionRef?: string; + args?: string[]; + cols?: number; + command?: string; + createdBy?: string; + createdByPrincipal?: string; + cwd?: string; + endedAt?: string; + entityId: string; + env?: Record; + exitCode?: number; + interactive?: boolean; + lastActivityAt?: string; + lastSeq?: string; + machineId: string; + metadata?: Record; + ownerId: string; + pid?: number; + runId?: string; + startedAt?: string; + state?: string; + termRows?: number; + updatedBy?: string; + updatedByPrincipal?: string; + }; +} +export interface MachineSessionPatch { + agentMode?: string | null; + agentSessionRef?: string | null; + args?: string[] | null; + cols?: number | null; + command?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + cwd?: string | null; + endedAt?: string | null; + entityId?: string | null; + env?: Record | null; + exitCode?: number | null; + interactive?: boolean | null; + lastActivityAt?: string | null; + lastSeq?: string | null; + machineId?: string | null; + metadata?: Record | null; + ownerId?: string | null; + pid?: number | null; + runId?: string | null; + startedAt?: string | null; + state?: string | null; + termRows?: number | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdateMachineSessionInput { + clientMutationId?: string; + id: string; + machineSessionPatch: MachineSessionPatch; +} +export interface DeleteMachineSessionInput { + clientMutationId?: string; + id: string; +} +// ============ Connection Fields Map ============ +export const connectionFieldsMap = { + Machine: { + machineSessions: 'MachineSession', + }, + MachineSession: { + machineMessagesBySessionId: 'MachineMessage', + }, +} as Record>; +// ============ Custom Input Types (from schema) ============ +export interface MachinesEnrollInput { + clientMutationId?: string; + entityId?: string; + isShared?: boolean; + label?: string; + tokenHash?: 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 many `MachineSession` object types. All fields are combined with a logical ‘and.’ */ +export interface MachineToManyMachineSessionFilter { + /** Filters to entities where every related entity matches. */ + every?: MachineSessionFilter; + /** Filters to entities where no related entity matches. */ + none?: MachineSessionFilter; + /** Filters to entities where at least one related entity matches. */ + some?: MachineSessionFilter; +} +/** A filter to be used against many `MachineMessage` object types. All fields are combined with a logical ‘and.’ */ +export interface MachineSessionToManyMachineMessageFilter { + /** Filters to entities where every related entity matches. */ + every?: MachineMessageFilter; + /** Filters to entities where no related entity matches. */ + none?: MachineMessageFilter; + /** Filters to entities where at least one related entity matches. */ + some?: MachineMessageFilter; +} +/** An input for mutations affecting `Machine` */ +export interface MachineInput { + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** Entity that owns this machine (a personal entity for my own laptop, an org for a shared box) */ + entityId: string; + /** What the runner advertises: os, arch, hostname, shells, pty, installed agents, max_sessions */ + facts?: Record; + id?: string; + /** Whether this machine is a shared runner anyone with the session capability may use (false: owner only) */ + isShared?: boolean; + /** Human-readable machine name (dan-macbook) */ + label: string; + /** Last heartbeat from the runner; online is derived from this */ + lastSeenAt?: string; + /** User who enrolled this machine */ + ownerId: string; + /** Server-side copy of the local policy: mode, approved commands, allowed cwds and env keys */ + policy?: Record; + /** Principal this machine acts as (set with the row by _enroll) */ + principalId?: string; + /** When enrollment was revoked; the relay refuses a revoked machine */ + revokedAt?: string; + /** Hash of the enrollment credential the runner presents */ + tokenHash: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; +} +/** An input for mutations affecting `MachineMessage` */ +export interface MachineMessageInput { + /** Who produced this message: the user, or the machine acting as its principal */ + actorId: string; + /** Body of the message; its shape follows the kind */ + content?: Record; + /** Acting principal (agent, API key, or user) who created this record */ + createdByPrincipal?: string; + /** Entity that owns the machine this message was exchanged with */ + entityId: string; + /** Unique identifier (uuidv7 provides temporal ordering) */ + id?: string; + /** What this message is: command, stdin, signal, resize, stdout, stderr, cwd, exit, state, policy */ + kind: string; + /** User who owns the session this message belongs to (inherited) */ + ownerId: string; + /** When the message was recorded (partition key) */ + recordedAt?: string; + /** Position in the session's ledger, monotonically increasing */ + seq: string; + /** Session this message belongs to */ + sessionId: string; +} +/** An input for mutations affecting `MachineSession` */ +export interface MachineSessionInput { + /** How a bound session runs the agent: cli (the user's installed CLI) or embedded (our loop) */ + agentMode?: string; + /** The CLI's own resumable session identifier (agent_mode = cli) */ + agentSessionRef?: string; + /** Arguments the command is spawned with */ + args?: string[]; + /** Terminal width, preserved across reattach */ + cols?: number; + /** Program the runner spawns for this session */ + command?: string; + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** Working directory the runner last reported */ + cwd?: string; + /** When the session reached a terminal state */ + endedAt?: string; + /** Entity that owns the machine this session runs on */ + entityId: string; + /** Non-secret environment variables for the process; policy gates which keys are allowed */ + env?: Record; + /** Process exit status, once it ended */ + exitCode?: number; + id?: string; + /** Whether raw PTY bytes ride the socket (interactive) or every command is a ledger row */ + interactive?: boolean; + /** Last time bytes moved in either direction */ + lastActivityAt?: string; + /** Highest ledger sequence recorded for this session */ + lastSeq?: string; + /** Machine this session runs on */ + machineId: string; + /** Session detail (client, shell integration, scrollback pointer) */ + metadata?: Record; + /** User who opened this session */ + ownerId: string; + /** Process id on the machine, while it is running */ + pid?: number; + /** Agent run this session executes locally (NULL for a plain terminal) */ + runId?: string; + /** When the process was spawned */ + startedAt?: string; + /** Lifecycle: pending, running, detached, exited, killed, failed */ + state?: string; + /** Terminal height, preserved across reattach */ + termRows?: number; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; +} +/** A filter to be used against `MachineSession` object types. All fields are combined with a logical ‘and.’ */ +export interface MachineSessionFilter { + /** Filter by the object’s `agentMode` field. */ + agentMode?: StringFilter; + /** Filter by the object’s `agentSessionRef` field. */ + agentSessionRef?: StringFilter; + /** Checks for all expressions in this list. */ + and?: MachineSessionFilter[]; + /** Filter by the object’s `args` field. */ + args?: StringListFilter; + /** Filter by the object’s `cols` field. */ + cols?: IntFilter; + /** Filter by the object’s `command` field. */ + command?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `cwd` field. */ + cwd?: StringFilter; + /** Filter by the object’s `endedAt` field. */ + endedAt?: DatetimeFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `env` field. */ + env?: JSONFilter; + /** Filter by the object’s `exitCode` field. */ + exitCode?: IntFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `interactive` field. */ + interactive?: BooleanFilter; + /** Filter by the object’s `lastActivityAt` field. */ + lastActivityAt?: DatetimeFilter; + /** Filter by the object’s `lastSeq` field. */ + lastSeq?: BigIntFilter; + /** Filter by the object’s `machine` relation. */ + machine?: MachineFilter; + /** Filter by the object’s `machineId` field. */ + machineId?: UUIDFilter; + /** Filter by the object’s `machineMessagesBySessionId` relation. */ + machineMessagesBySessionId?: MachineSessionToManyMachineMessageFilter; + /** `machineMessagesBySessionId` exist. */ + machineMessagesBySessionIdExist?: boolean; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Negates the expression. */ + not?: MachineSessionFilter; + /** Checks for any expressions in this list. */ + or?: MachineSessionFilter[]; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `pid` field. */ + pid?: IntFilter; + /** Filter by the object’s `runId` field. */ + runId?: UUIDFilter; + /** Filter by the object’s `startedAt` field. */ + startedAt?: DatetimeFilter; + /** Filter by the object’s `state` field. */ + state?: StringFilter; + /** Filter by the object’s `termRows` field. */ + termRows?: IntFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} +/** A filter to be used against `MachineMessage` object types. All fields are combined with a logical ‘and.’ */ +export interface MachineMessageFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: MachineMessageFilter[]; + /** Filter by the object’s `content` field. */ + content?: JSONFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Negates the expression. */ + not?: MachineMessageFilter; + /** Checks for any expressions in this list. */ + or?: MachineMessageFilter[]; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `recordedAt` field. */ + recordedAt?: DatetimeFilter; + /** Filter by the object’s `seq` field. */ + seq?: BigIntFilter; + /** Filter by the object’s `session` relation. */ + session?: MachineSessionFilter; + /** Filter by the object’s `sessionId` field. */ + sessionId?: UUIDFilter; +} +/** 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 filter to be used against String List fields. All fields are combined with a logical ‘and.’ */ +export interface StringListFilter { + /** Any array item is equal to the specified value. */ + anyEqualTo?: string; + /** Any array item is greater than the specified value. */ + anyGreaterThan?: string; + /** Any array item is greater than or equal to the specified value. */ + anyGreaterThanOrEqualTo?: string; + /** Any array item is less than the specified value. */ + anyLessThan?: string; + /** Any array item is less than or equal to the specified value. */ + anyLessThanOrEqualTo?: string; + /** Any array item is not equal to the specified value. */ + anyNotEqualTo?: string; + /** Contained by the specified list of values. */ + containedBy?: string[]; + /** Contains the specified list of values. */ + contains?: string[]; + /** 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[]; + /** 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[]; + /** Overlaps the specified list of values. */ + overlaps?: string[]; +} +/** 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 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 JSON fields. All fields are combined with a logical ‘and.’ */ +export interface JSONFilter { + /** Contained by the specified JSON. */ + containedBy?: Record; + /** Contains the specified JSON. */ + contains?: Record; + /** Contains all of the specified keys. */ + containsAllKeys?: string[]; + /** Contains any of the specified keys. */ + containsAnyKeys?: string[]; + /** Contains the specified key. */ + containsKey?: string; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: Record; + /** Equal to the specified value. */ + equalTo?: Record; + /** Greater than the specified value. */ + greaterThan?: Record; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: Record; + /** Included in the specified list. */ + in?: Record[]; + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Less than the specified value. */ + lessThan?: Record; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: Record; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: Record; + /** Not equal to the specified value. */ + notEqualTo?: Record; + /** Not included in the specified list. */ + notIn?: Record[]; +} +/** 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. */ + 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 `Machine` object types. All fields are combined with a logical ‘and.’ */ +export interface MachineFilter { + /** Checks for all expressions in this list. */ + and?: MachineFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `facts` field. */ + facts?: JSONFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isShared` field. */ + isShared?: BooleanFilter; + /** Filter by the object’s `label` field. */ + label?: StringFilter; + /** Filter by the object’s `lastSeenAt` field. */ + lastSeenAt?: DatetimeFilter; + /** Filter by the object’s `machineSessions` relation. */ + machineSessions?: MachineToManyMachineSessionFilter; + /** `machineSessions` exist. */ + machineSessionsExist?: boolean; + /** Negates the expression. */ + not?: MachineFilter; + /** Checks for any expressions in this list. */ + or?: MachineFilter[]; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `policy` field. */ + policy?: JSONFilter; + /** Filter by the object’s `principalId` field. */ + principalId?: UUIDFilter; + /** Filter by the object’s `revokedAt` field. */ + revokedAt?: DatetimeFilter; + /** Filter by the object’s `tokenHash` field. */ + tokenHash?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} +// ============ Payload/Return Types (for custom operations) ============ +export interface MachinesEnrollPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type MachinesEnrollPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface ProvisionBucketPayload { + /** The logical bucket row that was queued for reconciliation. */ + bucketId: string; + bucketKey: string; + /** The reconciler job enqueued to provision this bucket. */ + jobId: string; + /** The physical bucket name already recorded, or null when reconciliation has not completed. */ + physicalName?: string | null; +} +export type ProvisionBucketPayloadSelect = { + bucketId?: boolean; + bucketKey?: boolean; + jobId?: boolean; + physicalName?: boolean; +}; +export interface CreateMachinePayload { + clientMutationId?: string | null; + /** The `Machine` that was created by this mutation. */ + machine?: Machine | null; + machineEdge?: MachineEdge | null; +} +export type CreateMachinePayloadSelect = { + clientMutationId?: boolean; + machine?: { + select: MachineSelect; + }; + machineEdge?: { + select: MachineEdgeSelect; + }; +}; +export interface UpdateMachinePayload { + clientMutationId?: string | null; + /** The `Machine` that was updated by this mutation. */ + machine?: Machine | null; + machineEdge?: MachineEdge | null; +} +export type UpdateMachinePayloadSelect = { + clientMutationId?: boolean; + machine?: { + select: MachineSelect; + }; + machineEdge?: { + select: MachineEdgeSelect; + }; +}; +export interface DeleteMachinePayload { + clientMutationId?: string | null; + /** The `Machine` that was deleted by this mutation. */ + machine?: Machine | null; + machineEdge?: MachineEdge | null; +} +export type DeleteMachinePayloadSelect = { + clientMutationId?: boolean; + machine?: { + select: MachineSelect; + }; + machineEdge?: { + select: MachineEdgeSelect; + }; +}; +export interface CreateMachineMessagePayload { + clientMutationId?: string | null; + /** The `MachineMessage` that was created by this mutation. */ + machineMessage?: MachineMessage | null; + machineMessageEdge?: MachineMessageEdge | null; +} +export type CreateMachineMessagePayloadSelect = { + clientMutationId?: boolean; + machineMessage?: { + select: MachineMessageSelect; + }; + machineMessageEdge?: { + select: MachineMessageEdgeSelect; + }; +}; +export interface UpdateMachineMessagePayload { + clientMutationId?: string | null; + /** The `MachineMessage` that was updated by this mutation. */ + machineMessage?: MachineMessage | null; + machineMessageEdge?: MachineMessageEdge | null; +} +export type UpdateMachineMessagePayloadSelect = { + clientMutationId?: boolean; + machineMessage?: { + select: MachineMessageSelect; + }; + machineMessageEdge?: { + select: MachineMessageEdgeSelect; + }; +}; +export interface DeleteMachineMessagePayload { + clientMutationId?: string | null; + /** The `MachineMessage` that was deleted by this mutation. */ + machineMessage?: MachineMessage | null; + machineMessageEdge?: MachineMessageEdge | null; +} +export type DeleteMachineMessagePayloadSelect = { + clientMutationId?: boolean; + machineMessage?: { + select: MachineMessageSelect; + }; + machineMessageEdge?: { + select: MachineMessageEdgeSelect; + }; +}; +export interface CreateMachineSessionPayload { + clientMutationId?: string | null; + /** The `MachineSession` that was created by this mutation. */ + machineSession?: MachineSession | null; + machineSessionEdge?: MachineSessionEdge | null; +} +export type CreateMachineSessionPayloadSelect = { + clientMutationId?: boolean; + machineSession?: { + select: MachineSessionSelect; + }; + machineSessionEdge?: { + select: MachineSessionEdgeSelect; + }; +}; +export interface UpdateMachineSessionPayload { + clientMutationId?: string | null; + /** The `MachineSession` that was updated by this mutation. */ + machineSession?: MachineSession | null; + machineSessionEdge?: MachineSessionEdge | null; +} +export type UpdateMachineSessionPayloadSelect = { + clientMutationId?: boolean; + machineSession?: { + select: MachineSessionSelect; + }; + machineSessionEdge?: { + select: MachineSessionEdgeSelect; + }; +}; +export interface DeleteMachineSessionPayload { + clientMutationId?: string | null; + /** The `MachineSession` that was deleted by this mutation. */ + machineSession?: MachineSession | null; + machineSessionEdge?: MachineSessionEdge | null; +} +export type DeleteMachineSessionPayloadSelect = { + clientMutationId?: boolean; + machineSession?: { + select: MachineSessionSelect; + }; + machineSessionEdge?: { + select: MachineSessionEdgeSelect; + }; +}; +/** A `Machine` edge in the connection. */ +export interface MachineEdge { + cursor?: string | null; + /** The `Machine` at the end of the edge. */ + node?: Machine | null; +} +export type MachineEdgeSelect = { + cursor?: boolean; + node?: { + select: MachineSelect; + }; +}; +/** A `MachineMessage` edge in the connection. */ +export interface MachineMessageEdge { + cursor?: string | null; + /** The `MachineMessage` at the end of the edge. */ + node?: MachineMessage | null; +} +export type MachineMessageEdgeSelect = { + cursor?: boolean; + node?: { + select: MachineMessageSelect; + }; +}; +/** A `MachineSession` edge in the connection. */ +export interface MachineSessionEdge { + cursor?: string | null; + /** The `MachineSession` at the end of the edge. */ + node?: MachineSession | null; +} +export type MachineSessionEdgeSelect = { + cursor?: boolean; + node?: { + select: MachineSessionSelect; + }; +}; diff --git a/sdk/constructive-cli/src/remote/orm/models/index.ts b/sdk/constructive-cli/src/remote/orm/models/index.ts new file mode 100644 index 0000000000..91a87d0214 --- /dev/null +++ b/sdk/constructive-cli/src/remote/orm/models/index.ts @@ -0,0 +1,8 @@ +/** + * Models barrel export + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +export { MachineModel } from './machine'; +export { MachineMessageModel } from './machineMessage'; +export { MachineSessionModel } from './machineSession'; diff --git a/sdk/constructive-cli/src/remote/orm/models/machine.ts b/sdk/constructive-cli/src/remote/orm/models/machine.ts new file mode 100644 index 0000000000..b30f06e2c5 --- /dev/null +++ b/sdk/constructive-cli/src/remote/orm/models/machine.ts @@ -0,0 +1,245 @@ +/** + * Machine 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 { + Machine, + MachineWithRelations, + MachineSelect, + MachineFilter, + MachineOrderBy, + CreateMachineInput, + UpdateMachineInput, + MachinePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class MachineModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + machines: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'Machine', + 'machines', + 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, + }, + 'MachineFilter', + 'MachineOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Machine', + fieldName: 'machines', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + machine: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'Machine', + 'machines', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'MachineFilter', + 'MachineOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Machine', + fieldName: 'machine', + document, + variables, + transform: (data: { + machines?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + machine: data.machines?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + machine: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'Machine', + 'machines', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'MachineFilter', + 'MachineOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Machine', + fieldName: 'machine', + document, + variables, + transform: (data: { + machines?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + machine: data.machines?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createMachine: { + machine: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'Machine', + 'createMachine', + 'machine', + args.select, + args.data, + 'CreateMachineInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Machine', + fieldName: 'createMachine', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + MachinePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateMachine: { + machine: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'Machine', + 'updateMachine', + 'machine', + args.select, + args.where.id, + args.data, + 'UpdateMachineInput', + 'id', + 'machinePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Machine', + fieldName: 'updateMachine', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteMachine: { + machine: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'Machine', + 'deleteMachine', + 'machine', + { + id: args.where.id, + }, + 'DeleteMachineInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Machine', + fieldName: 'deleteMachine', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/remote/orm/models/machineMessage.ts b/sdk/constructive-cli/src/remote/orm/models/machineMessage.ts new file mode 100644 index 0000000000..16346811e1 --- /dev/null +++ b/sdk/constructive-cli/src/remote/orm/models/machineMessage.ts @@ -0,0 +1,250 @@ +/** + * MachineMessage 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 { + MachineMessage, + MachineMessageWithRelations, + MachineMessageSelect, + MachineMessageFilter, + MachineMessageOrderBy, + CreateMachineMessageInput, + UpdateMachineMessageInput, + MachineMessagePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class MachineMessageModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + machineMessages: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'MachineMessage', + 'machineMessages', + 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, + }, + 'MachineMessageFilter', + 'MachineMessageOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'MachineMessage', + fieldName: 'machineMessages', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + machineMessage: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'MachineMessage', + 'machineMessages', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'MachineMessageFilter', + 'MachineMessageOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'MachineMessage', + fieldName: 'machineMessage', + document, + variables, + transform: (data: { + machineMessages?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + machineMessage: data.machineMessages?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + machineMessage: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'MachineMessage', + 'machineMessages', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'MachineMessageFilter', + 'MachineMessageOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'MachineMessage', + fieldName: 'machineMessage', + document, + variables, + transform: (data: { + machineMessages?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + machineMessage: data.machineMessages?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createMachineMessage: { + machineMessage: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'MachineMessage', + 'createMachineMessage', + 'machineMessage', + args.select, + args.data, + 'CreateMachineMessageInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'MachineMessage', + fieldName: 'createMachineMessage', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + recordedAt: string; + }, + MachineMessagePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateMachineMessage: { + machineMessage: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'MachineMessage', + 'updateMachineMessage', + 'machineMessage', + args.select, + args.where.id, + args.data, + 'UpdateMachineMessageInput', + 'id', + 'machineMessagePatch', + connectionFieldsMap, + { + recordedAt: args.where.recordedAt, + } + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'MachineMessage', + fieldName: 'updateMachineMessage', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + recordedAt: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteMachineMessage: { + machineMessage: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'MachineMessage', + 'deleteMachineMessage', + 'machineMessage', + { + id: args.where.id, + recordedAt: args.where.recordedAt, + }, + 'DeleteMachineMessageInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'MachineMessage', + fieldName: 'deleteMachineMessage', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/remote/orm/models/machineSession.ts b/sdk/constructive-cli/src/remote/orm/models/machineSession.ts new file mode 100644 index 0000000000..1d28455f83 --- /dev/null +++ b/sdk/constructive-cli/src/remote/orm/models/machineSession.ts @@ -0,0 +1,245 @@ +/** + * MachineSession 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 { + MachineSession, + MachineSessionWithRelations, + MachineSessionSelect, + MachineSessionFilter, + MachineSessionOrderBy, + CreateMachineSessionInput, + UpdateMachineSessionInput, + MachineSessionPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class MachineSessionModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + machineSessions: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'MachineSession', + 'machineSessions', + 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, + }, + 'MachineSessionFilter', + 'MachineSessionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'MachineSession', + fieldName: 'machineSessions', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + machineSession: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'MachineSession', + 'machineSessions', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'MachineSessionFilter', + 'MachineSessionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'MachineSession', + fieldName: 'machineSession', + document, + variables, + transform: (data: { + machineSessions?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + machineSession: data.machineSessions?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + machineSession: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'MachineSession', + 'machineSessions', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'MachineSessionFilter', + 'MachineSessionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'MachineSession', + fieldName: 'machineSession', + document, + variables, + transform: (data: { + machineSessions?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + machineSession: data.machineSessions?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createMachineSession: { + machineSession: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'MachineSession', + 'createMachineSession', + 'machineSession', + args.select, + args.data, + 'CreateMachineSessionInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'MachineSession', + fieldName: 'createMachineSession', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + MachineSessionPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateMachineSession: { + machineSession: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'MachineSession', + 'updateMachineSession', + 'machineSession', + args.select, + args.where.id, + args.data, + 'UpdateMachineSessionInput', + 'id', + 'machineSessionPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'MachineSession', + fieldName: 'updateMachineSession', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteMachineSession: { + machineSession: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'MachineSession', + 'deleteMachineSession', + 'machineSession', + { + id: args.where.id, + }, + 'DeleteMachineSessionInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'MachineSession', + fieldName: 'deleteMachineSession', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/remote/orm/mutation/index.ts b/sdk/constructive-cli/src/remote/orm/mutation/index.ts new file mode 100644 index 0000000000..7108c9c67c --- /dev/null +++ b/sdk/constructive-cli/src/remote/orm/mutation/index.ts @@ -0,0 +1,93 @@ +/** + * Custom mutation 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 type { + MachinesEnrollInput, + ProvisionBucketInput, + MachinesEnrollPayload, + ProvisionBucketPayload, + MachinesEnrollPayloadSelect, + ProvisionBucketPayloadSelect, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export interface MachinesEnrollVariables { + input: MachinesEnrollInput; +} +/** + * Variables for provisionBucket + * Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. + */ +export interface ProvisionBucketVariables { + input: ProvisionBucketInput; +} +export function createMutationOperations(client: OrmClient) { + return { + machinesEnroll: ( + args: MachinesEnrollVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + machinesEnroll: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'MachinesEnroll', + fieldName: 'machinesEnroll', + ...buildCustomDocument( + 'mutation', + 'MachinesEnroll', + 'machinesEnroll', + options.select, + args, + [ + { + name: 'input', + type: 'MachinesEnrollInput!', + }, + ], + connectionFieldsMap, + 'MachinesEnrollPayload' + ), + }), + provisionBucket: ( + args: ProvisionBucketVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + provisionBucket: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'ProvisionBucket', + fieldName: 'provisionBucket', + ...buildCustomDocument( + 'mutation', + 'ProvisionBucket', + 'provisionBucket', + options.select, + args, + [ + { + name: 'input', + type: 'ProvisionBucketInput!', + }, + ], + connectionFieldsMap, + 'ProvisionBucketPayload' + ), + }), + }; +} diff --git a/sdk/constructive-cli/src/remote/orm/query-builder.ts b/sdk/constructive-cli/src/remote/orm/query-builder.ts new file mode 100644 index 0000000000..fd785bbae6 --- /dev/null +++ b/sdk/constructive-cli/src/remote/orm/query-builder.ts @@ -0,0 +1,1047 @@ +/** + * Query Builder - Builds and executes GraphQL operations + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { parseType, print } from '@constructive-io/graphql-query/runtime'; +import * as t from 'gql-ast'; +import type { ArgumentNode, EnumValueNode, FieldNode, VariableDefinitionNode } from 'graphql'; + +import { GraphQLRequestError, OrmClient, QueryResult } from './client'; + +export interface QueryBuilderConfig { + client: OrmClient; + operation: 'query' | 'mutation'; + operationName: string; + fieldName: string; + document: string; + variables?: Record; + transform?: (data: any) => TResult; +} + +export class QueryBuilder { + private config: QueryBuilderConfig; + + constructor(config: QueryBuilderConfig) { + this.config = config; + } + + /** + * Execute the query and return a discriminated union result + * Use result.ok to check success, or .unwrap() to throw on error + */ + async execute(): Promise> { + const rawResult = await this.config.client.execute( + this.config.document, + this.config.variables + ); + if (!rawResult.ok) { + return rawResult; + } + if (!this.config.transform) { + return rawResult as unknown as QueryResult; + } + return { + ok: true, + data: this.config.transform(rawResult.data), + errors: undefined, + }; + } + + /** + * Execute and unwrap the result, throwing GraphQLRequestError on failure + * @throws {GraphQLRequestError} If the query returns errors + */ + async unwrap(): Promise { + const result = await this.execute(); + if (!result.ok) { + throw new GraphQLRequestError(result.errors, result.data); + } + return result.data; + } + + /** + * Execute and unwrap, returning defaultValue on error instead of throwing + */ + async unwrapOr(defaultValue: D): Promise { + const result = await this.execute(); + if (!result.ok) { + return defaultValue; + } + return result.data; + } + + /** + * Execute and unwrap, calling onError callback on failure + */ + async unwrapOrElse( + onError: (errors: import('./client').GraphQLError[]) => D + ): Promise { + const result = await this.execute(); + if (!result.ok) { + return onError(result.errors); + } + return result.data; + } + + toGraphQL(): string { + return this.config.document; + } + + getVariables(): Record | undefined { + return this.config.variables; + } +} + +const OP_QUERY = 'query' as unknown as import('graphql').OperationTypeNode; +const OP_MUTATION = 'mutation' as unknown as import('graphql').OperationTypeNode; +const ENUM_VALUE_KIND = 'EnumValue' as unknown as EnumValueNode['kind']; + +// ============================================================================ +// Selection Builders +// ============================================================================ + +export function buildSelections( + select: Record | undefined, + connectionFieldsMap?: Record>, + entityType?: string +): FieldNode[] { + if (!select) { + return []; + } + + const fields: FieldNode[] = []; + const entityConnections = entityType ? connectionFieldsMap?.[entityType] : undefined; + + for (const [key, value] of Object.entries(select)) { + if (value === false || value === undefined) { + continue; + } + + if (value === true) { + fields.push(t.field({ name: key })); + continue; + } + + if (typeof value === 'object' && value !== null) { + const nested = value as { + select?: Record; + args?: Record; + first?: number; + filter?: Record; + orderBy?: string[]; + connection?: boolean; + }; + + // Field with arguments (e.g. requestUploadUrl on bucket types) + if (nested.args && typeof nested.args === 'object') { + const fieldArgs = Object.entries(nested.args).map(([argName, argValue]) => + t.argument({ name: argName, value: buildValueAst(argValue) }) + ); + const nestedSelect = nested.select; + if (nestedSelect && typeof nestedSelect === 'object') { + const subSelections = Object.entries(nestedSelect) + .filter(([, v]) => v) + .map(([name]) => t.field({ name })); + fields.push( + t.field({ + name: key, + args: fieldArgs.length ? fieldArgs : undefined, + selectionSet: subSelections.length + ? t.selectionSet({ selections: subSelections }) + : undefined, + }) + ); + } else { + fields.push( + t.field({ + name: key, + args: fieldArgs.length ? fieldArgs : undefined, + }) + ); + } + continue; + } + + if (!nested.select || typeof nested.select !== 'object') { + throw new Error( + `Invalid selection for field "${key}": nested selections must include a "select" object.` + ); + } + + const relatedEntityType = entityConnections?.[key]; + const nestedSelections = buildSelections( + nested.select, + connectionFieldsMap, + relatedEntityType + ); + const isConnection = + nested.connection === true || + nested.first !== undefined || + nested.filter !== undefined || + relatedEntityType !== undefined; + const args = buildArgs([ + buildOptionalArg('first', nested.first), + nested.filter + ? t.argument({ + name: 'filter', + value: buildValueAst(nested.filter), + }) + : null, + buildEnumListArg('orderBy', nested.orderBy), + ]); + + if (isConnection) { + fields.push( + t.field({ + name: key, + args, + selectionSet: t.selectionSet({ + selections: buildConnectionSelections(nestedSelections), + }), + }) + ); + } else { + fields.push( + t.field({ + name: key, + args, + selectionSet: t.selectionSet({ selections: nestedSelections }), + }) + ); + } + } + } + + return fields; +} + +// ============================================================================ +// Document Builders +// ============================================================================ + +export function buildFindManyDocument( + operationName: string, + queryField: string, + select: TSelect, + args: { + where?: TWhere; + orderBy?: string[]; + first?: number; + last?: number; + after?: string; + before?: string; + offset?: number; + }, + filterTypeName: string, + orderByTypeName: string, + connectionFieldsMap?: Record> +): { document: string; variables: Record } { + const selections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + const variableDefinitions: VariableDefinitionNode[] = []; + const queryArgs: ArgumentNode[] = []; + const variables: Record = {}; + + addVariable( + { + varName: 'where', + typeName: filterTypeName, + value: args.where, + }, + variableDefinitions, + queryArgs, + variables + ); + addVariable( + { + varName: 'orderBy', + typeName: '[' + orderByTypeName + '!]', + value: args.orderBy?.length ? args.orderBy : undefined, + }, + variableDefinitions, + queryArgs, + variables + ); + addVariable( + { varName: 'first', typeName: 'Int', value: args.first }, + variableDefinitions, + queryArgs, + variables + ); + addVariable( + { varName: 'last', typeName: 'Int', value: args.last }, + variableDefinitions, + queryArgs, + variables + ); + addVariable( + { varName: 'after', typeName: 'Cursor', value: args.after }, + variableDefinitions, + queryArgs, + variables + ); + addVariable( + { varName: 'before', typeName: 'Cursor', value: args.before }, + variableDefinitions, + queryArgs, + variables + ); + addVariable( + { varName: 'offset', typeName: 'Int', value: args.offset }, + variableDefinitions, + queryArgs, + variables + ); + + const document = t.document({ + definitions: [ + t.operationDefinition({ + operation: OP_QUERY, + name: operationName + 'Query', + variableDefinitions: variableDefinitions.length ? variableDefinitions : undefined, + selectionSet: t.selectionSet({ + selections: [ + t.field({ + name: queryField, + args: queryArgs.length ? queryArgs : undefined, + selectionSet: t.selectionSet({ + selections: buildConnectionSelections(selections), + }), + }), + ], + }), + }), + ], + }); + + return { document: print(document), variables }; +} + +export function buildFindFirstDocument( + operationName: string, + queryField: string, + select: TSelect, + args: { where?: TWhere; orderBy?: string[] }, + filterTypeName: string, + orderByTypeName: string, + connectionFieldsMap?: Record> +): { document: string; variables: Record } { + const selections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + const variableDefinitions: VariableDefinitionNode[] = []; + const queryArgs: ArgumentNode[] = []; + const variables: Record = {}; + + // Always add first: 1 for findFirst + addVariable( + { varName: 'first', typeName: 'Int', value: 1 }, + variableDefinitions, + queryArgs, + variables + ); + addVariable( + { + varName: 'where', + typeName: filterTypeName, + value: args.where, + }, + variableDefinitions, + queryArgs, + variables + ); + addVariable( + { + varName: 'orderBy', + typeName: '[' + orderByTypeName + '!]', + value: args.orderBy?.length ? args.orderBy : undefined, + }, + variableDefinitions, + queryArgs, + variables + ); + + const document = t.document({ + definitions: [ + t.operationDefinition({ + operation: OP_QUERY, + name: operationName + 'Query', + variableDefinitions, + selectionSet: t.selectionSet({ + selections: [ + t.field({ + name: queryField, + args: queryArgs, + selectionSet: t.selectionSet({ + selections: [ + t.field({ + name: 'nodes', + selectionSet: t.selectionSet({ selections }), + }), + ], + }), + }), + ], + }), + }), + ], + }); + + return { document: print(document), variables }; +} + +export function buildCreateDocument( + operationName: string, + mutationField: string, + entityField: string, + select: TSelect, + data: TData, + inputTypeName: string, + connectionFieldsMap?: Record> +): { document: string; variables: Record } { + const selections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + return { + document: buildInputMutationDocument({ + operationName, + mutationField, + inputTypeName, + resultSelections: [ + t.field({ + name: entityField, + selectionSet: t.selectionSet({ selections }), + }), + ], + }), + variables: { + input: { + [entityField]: data, + }, + }, + }; +} + +export function buildUpdateDocument( + operationName: string, + mutationField: string, + entityField: string, + select: TSelect, + where: TWhere, + data: TData, + inputTypeName: string, + patchFieldName: string, + connectionFieldsMap?: Record> +): { document: string; variables: Record } { + const selections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + return { + document: buildInputMutationDocument({ + operationName, + mutationField, + inputTypeName, + resultSelections: [ + t.field({ + name: entityField, + selectionSet: t.selectionSet({ selections }), + }), + ], + }), + variables: { + input: { + id: where.id, + [patchFieldName]: data, + }, + }, + }; +} + +export function buildUpdateByPkDocument( + operationName: string, + mutationField: string, + entityField: string, + select: TSelect, + id: string | number, + data: TData, + inputTypeName: string, + idFieldName: string, + patchFieldName: string, + connectionFieldsMap?: Record>, + extraKeys?: Record +): { document: string; variables: Record } { + const selections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + return { + document: buildInputMutationDocument({ + operationName, + mutationField, + inputTypeName, + resultSelections: [ + t.field({ + name: entityField, + selectionSet: t.selectionSet({ selections }), + }), + ], + }), + variables: { + input: { + [idFieldName]: id, + ...extraKeys, + [patchFieldName]: data, + }, + }, + }; +} + +export function buildFindOneDocument( + operationName: string, + queryField: string, + id: string | number, + select: TSelect, + idArgName: string, + idTypeName: string, + connectionFieldsMap?: Record> +): { document: string; variables: Record } { + const selections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + const variableDefinitions: VariableDefinitionNode[] = [ + t.variableDefinition({ + variable: t.variable({ name: idArgName }), + type: parseType(idTypeName), + }), + ]; + + const queryArgs: ArgumentNode[] = [ + t.argument({ + name: idArgName, + value: t.variable({ name: idArgName }), + }), + ]; + + const document = t.document({ + definitions: [ + t.operationDefinition({ + operation: OP_QUERY, + name: operationName + 'Query', + variableDefinitions, + selectionSet: t.selectionSet({ + selections: [ + t.field({ + name: queryField, + args: queryArgs, + selectionSet: t.selectionSet({ selections }), + }), + ], + }), + }), + ], + }); + + return { + document: print(document), + variables: { [idArgName]: id }, + }; +} + +export function buildDeleteDocument( + operationName: string, + mutationField: string, + entityField: string, + where: TWhere, + inputTypeName: string, + select?: TSelect, + connectionFieldsMap?: Record> +): { document: string; variables: Record } { + const entitySelections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + return { + document: buildInputMutationDocument({ + operationName, + mutationField, + inputTypeName, + resultSelections: [ + t.field({ + name: entityField, + selectionSet: t.selectionSet({ + selections: entitySelections, + }), + }), + ], + }), + variables: { + input: { + id: where.id, + }, + }, + }; +} + +export function buildDeleteByPkDocument( + operationName: string, + mutationField: string, + entityField: string, + keys: Record, + inputTypeName: string, + select?: TSelect, + connectionFieldsMap?: Record> +): { document: string; variables: Record } { + const entitySelections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + return { + document: buildInputMutationDocument({ + operationName, + mutationField, + inputTypeName, + resultSelections: [ + t.field({ + name: entityField, + selectionSet: t.selectionSet({ selections: entitySelections }), + }), + ], + }), + variables: { + input: keys, + }, + }; +} + +export function buildJunctionRemoveDocument( + operationName: string, + mutationField: string, + keys: Record, + inputTypeName: string +): { document: string; variables: Record } { + return { + document: buildInputMutationDocument({ + operationName, + mutationField, + inputTypeName, + resultSelections: [t.field({ name: 'clientMutationId' })], + }), + variables: { + input: keys, + }, + }; +} + +export function buildCustomDocument( + operationType: 'query' | 'mutation', + operationName: string, + fieldName: string, + select: TSelect, + args: TArgs, + variableDefinitions: Array<{ name: string; type: string }>, + connectionFieldsMap?: Record>, + entityType?: string +): { document: string; variables: Record } { + let actualSelect: TSelect = select; + let isConnection = false; + + if (isCustomSelectionWrapper(select)) { + actualSelect = select.select as TSelect; + isConnection = select.connection === true; + } + + const selections = actualSelect + ? buildSelections(actualSelect as Record, connectionFieldsMap, entityType) + : []; + + const variableDefs = variableDefinitions.map((definition) => + t.variableDefinition({ + variable: t.variable({ name: definition.name }), + type: parseType(definition.type), + }) + ); + const fieldArgs = variableDefinitions.map((definition) => + t.argument({ + name: definition.name, + value: t.variable({ name: definition.name }), + }) + ); + + const fieldSelections = isConnection ? buildConnectionSelections(selections) : selections; + + const document = t.document({ + definitions: [ + t.operationDefinition({ + operation: operationType === 'mutation' ? OP_MUTATION : OP_QUERY, + name: operationName, + variableDefinitions: variableDefs.length ? variableDefs : undefined, + selectionSet: t.selectionSet({ + selections: [ + t.field({ + name: fieldName, + args: fieldArgs.length ? fieldArgs : undefined, + selectionSet: fieldSelections.length + ? t.selectionSet({ selections: fieldSelections }) + : undefined, + }), + ], + }), + }), + ], + }); + + return { + document: print(document), + variables: (args ?? {}) as Record, + }; +} + +function isCustomSelectionWrapper( + value: unknown +): value is { select: Record; connection?: boolean } { + if (!value || typeof value !== 'object' || Array.isArray(value)) { + return false; + } + + const record = value as Record; + const keys = Object.keys(record); + + if (!keys.includes('select') || !keys.includes('connection')) { + return false; + } + + if (keys.some((key) => key !== 'select' && key !== 'connection')) { + return false; + } + + return !!record.select && typeof record.select === 'object' && !Array.isArray(record.select); +} + +// ============================================================================ +// Helper Functions +// ============================================================================ + +function buildArgs(args: Array): ArgumentNode[] { + return args.filter((arg): arg is ArgumentNode => arg !== null); +} + +function buildOptionalArg(name: string, value: number | string | undefined): ArgumentNode | null { + if (value === undefined) { + return null; + } + const valueNode = + typeof value === 'number' ? t.intValue({ value: value.toString() }) : t.stringValue({ value }); + return t.argument({ name, value: valueNode }); +} + +function buildEnumListArg(name: string, values: string[] | undefined): ArgumentNode | null { + if (!values || values.length === 0) { + return null; + } + return t.argument({ + name, + value: t.listValue({ + values: values.map((value) => buildEnumValue(value)), + }), + }); +} + +function buildEnumValue(value: string): EnumValueNode { + return { + kind: ENUM_VALUE_KIND, + value, + }; +} + +function buildPageInfoSelections(): FieldNode[] { + return [ + t.field({ name: 'hasNextPage' }), + t.field({ name: 'hasPreviousPage' }), + t.field({ name: 'startCursor' }), + t.field({ name: 'endCursor' }), + ]; +} + +function buildConnectionSelections(nodeSelections: FieldNode[]): FieldNode[] { + return [ + t.field({ + name: 'nodes', + selectionSet: t.selectionSet({ selections: nodeSelections }), + }), + t.field({ name: 'totalCount' }), + t.field({ + name: 'pageInfo', + selectionSet: t.selectionSet({ selections: buildPageInfoSelections() }), + }), + ]; +} + +interface VariableSpec { + varName: string; + argName?: string; + typeName?: string; + value: unknown; +} + +interface InputMutationConfig { + operationName: string; + mutationField: string; + inputTypeName: string; + resultSelections: FieldNode[]; +} + +function buildInputMutationDocument(config: InputMutationConfig): string { + const document = t.document({ + definitions: [ + t.operationDefinition({ + operation: OP_MUTATION, + name: config.operationName + 'Mutation', + variableDefinitions: [ + t.variableDefinition({ + variable: t.variable({ name: 'input' }), + type: parseType(config.inputTypeName + '!'), + }), + ], + selectionSet: t.selectionSet({ + selections: [ + t.field({ + name: config.mutationField, + args: [ + t.argument({ + name: 'input', + value: t.variable({ name: 'input' }), + }), + ], + selectionSet: t.selectionSet({ + selections: config.resultSelections, + }), + }), + ], + }), + }), + ], + }); + return print(document); +} + +function addVariable( + spec: VariableSpec, + definitions: VariableDefinitionNode[], + args: ArgumentNode[], + variables: Record +): void { + if (spec.value === undefined || !spec.typeName) return; + + definitions.push( + t.variableDefinition({ + variable: t.variable({ name: spec.varName }), + type: parseType(spec.typeName), + }) + ); + args.push( + t.argument({ + name: spec.argName ?? spec.varName, + value: t.variable({ name: spec.varName }), + }) + ); + variables[spec.varName] = spec.value; +} + +function buildValueAst( + value: unknown +): + | ReturnType + | ReturnType + | ReturnType + | ReturnType + | ReturnType + | ReturnType + | ReturnType + | EnumValueNode { + if (value === null) { + return t.nullValue(); + } + + if (typeof value === 'boolean') { + return t.booleanValue({ value }); + } + + if (typeof value === 'number') { + return Number.isInteger(value) + ? t.intValue({ value: value.toString() }) + : t.floatValue({ value: value.toString() }); + } + + if (typeof value === 'string') { + return t.stringValue({ value }); + } + + if (Array.isArray(value)) { + return t.listValue({ + values: value.map((item) => buildValueAst(item)), + }); + } + + if (typeof value === 'object' && value !== null) { + const obj = value as Record; + return t.objectValue({ + fields: Object.entries(obj).map(([key, val]) => + t.objectField({ + name: key, + value: buildValueAst(val), + }) + ), + }); + } + + throw new Error('Unsupported value type: ' + typeof value); +} + +// ============================================================================ +// Bulk Mutation Document Builders +// ============================================================================ + +export function buildBulkInsertDocument( + operationName: string, + mutationField: string, + select: TSelect, + data: TData[], + inputTypeName: string, + onConflict?: unknown, + connectionFieldsMap?: Record> +): { document: string; variables: Record } { + const selections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + return { + document: buildInputMutationDocument({ + operationName, + mutationField, + inputTypeName, + resultSelections: [ + t.field({ name: 'affectedCount' }), + t.field({ + name: 'returning', + selectionSet: t.selectionSet({ selections }), + }), + ], + }), + variables: { + input: { + values: data, + ...(onConflict ? { onConflict } : {}), + }, + }, + }; +} + +export function buildBulkUpsertDocument( + operationName: string, + mutationField: string, + select: TSelect, + data: TData[], + inputTypeName: string, + onConflict: unknown, + connectionFieldsMap?: Record> +): { document: string; variables: Record } { + const selections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + return { + document: buildInputMutationDocument({ + operationName, + mutationField, + inputTypeName, + resultSelections: [ + t.field({ name: 'affectedCount' }), + t.field({ + name: 'returning', + selectionSet: t.selectionSet({ selections }), + }), + ], + }), + variables: { + input: { + values: data, + onConflict, + }, + }, + }; +} + +export function buildBulkUpdateDocument( + operationName: string, + mutationField: string, + select: TSelect, + where: TWhere, + data: TData, + inputTypeName: string, + connectionFieldsMap?: Record> +): { document: string; variables: Record } { + const selections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + return { + document: buildInputMutationDocument({ + operationName, + mutationField, + inputTypeName, + resultSelections: [ + t.field({ name: 'affectedCount' }), + t.field({ + name: 'returning', + selectionSet: t.selectionSet({ selections }), + }), + ], + }), + variables: { + input: { + where, + patch: data, + }, + }, + }; +} + +export function buildBulkDeleteDocument( + operationName: string, + mutationField: string, + select: TSelect, + where: TWhere, + inputTypeName: string, + connectionFieldsMap?: Record> +): { document: string; variables: Record } { + const selections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + return { + document: buildInputMutationDocument({ + operationName, + mutationField, + inputTypeName, + resultSelections: [ + t.field({ name: 'affectedCount' }), + t.field({ + name: 'returning', + selectionSet: t.selectionSet({ selections }), + }), + ], + }), + variables: { + input: { + where, + }, + }, + }; +} diff --git a/sdk/constructive-cli/src/remote/orm/realtime.ts b/sdk/constructive-cli/src/remote/orm/realtime.ts new file mode 100644 index 0000000000..214eb56203 --- /dev/null +++ b/sdk/constructive-cli/src/remote/orm/realtime.ts @@ -0,0 +1,244 @@ +/** + * Realtime Manager - WebSocket subscription support + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +// Minimal type shims so this module compiles without graphql-ws +// installed. Consumers supply a WsClient via RealtimeConfig; +// the SDK itself never imports or requires graphql-ws. + +interface WsGraphQLError { + readonly message: string; + readonly [key: string]: unknown; +} + +interface WsExecutionResult> { + data?: TData | null; + errors?: readonly WsGraphQLError[]; + extensions?: Record; +} + +interface WsSink { + next(value: T): void; + error(error: unknown): void; + complete(): void; +} + +/** + * Minimal interface matching the graphql-ws Client. + * Consumers pass a concrete instance via RealtimeConfig.client. + */ +export interface WsClient { + subscribe>( + payload: { query: string; variables?: Record }, + sink: WsSink> + ): () => void; + dispose(): void; +} + +// ============================================================================ +// Types +// ============================================================================ + +/** The DML operation that triggered the subscription event */ +export type SubscriptionOperation = 'INSERT' | 'UPDATE' | 'DELETE'; + +/** Connection state of the WebSocket */ +export type ConnectionState = 'disconnected' | 'connecting' | 'connected' | 'reconnecting'; + +/** Listener for connection state changes */ +export type ConnectionStateListener = (state: ConnectionState) => void; + +/** Function returned by subscribe() to cancel the subscription */ +export type Unsubscribe = () => void; + +/** + * A realtime subscription event delivered to the client. + * + * @typeParam T - The row type of the subscribed table + */ +export interface SubscriptionEvent { + /** The DML operation that triggered this event */ + operation: SubscriptionOperation; + /** The current row data (null for DELETE if row is no longer visible) */ + data: T | null; + /** Previous field values (populated on UPDATE when available) */ + previousValues?: Partial; + /** Server-side timestamp of when the change occurred */ + timestamp: string; +} + +/** + * Options for creating a subscription. + * + * @typeParam T - The row type of the subscribed table + * @typeParam TFilter - The filter type for the table + */ +export interface SubscribeOptions> { + /** Server-side filter to limit which events are delivered */ + filter?: TFilter; + /** Called when a subscription event is received */ + onEvent: (event: SubscriptionEvent) => void; + /** Called when the subscription encounters an error */ + onError?: (error: Error) => void; + /** Called when the subscription completes (server-initiated close) */ + onComplete?: () => void; +} + +/** + * Metadata about a subscription field, used internally to map + * table names to GraphQL subscription field names and types. + */ +export interface SubscriptionFieldMeta { + /** The GraphQL subscription field name (e.g., 'onContactChanged') */ + fieldName: string; + /** The table name in the source schema (e.g., 'contact') */ + tableName: string; + /** The data field name inside the subscription payload (e.g., 'contact') */ + dataFieldName: string; +} + +/** + * Configuration for the realtime (WebSocket) connection. + * Pass this as the `realtime` option in OrmClientConfig. + * + * @example + * ```ts + * import { createClient } from 'graphql-ws'; + * + * const client = createOrmClient({ + * endpoint: 'https://api.example.com/graphql', + * realtime: { + * client: createClient({ url: 'wss://api.example.com/graphql' }), + * }, + * }); + * ``` + */ +export interface RealtimeConfig { + /** + * A graphql-ws Client instance (or any object satisfying WsClient). + * The consumer creates this themselves, giving full control over + * connection options, auth, and transport. + * + * @example + * ```ts + * import { createClient } from 'graphql-ws'; + * const wsClient = createClient({ url: 'wss://...' }); + * ``` + */ + client: WsClient; +} + +// ============================================================================ +// RealtimeManager +// ============================================================================ + +/** + * Manages a graphql-ws WebSocket client and multiplexes + * subscriptions over it. Created by OrmClient when `realtime` + * config is provided. + */ +export class RealtimeManager { + private wsClient: WsClient; + private connectionState: ConnectionState = 'disconnected'; + private stateListeners: Set = new Set(); + private activeSubscriptions = 0; + + constructor(config: RealtimeConfig) { + this.wsClient = config.client; + } + + /** + * Subscribe to a GraphQL subscription operation. + * Models call this with typed metadata and documents. + */ + subscribe( + meta: SubscriptionFieldMeta, + document: string, + variables: Record, + options: { + onEvent: (event: SubscriptionEvent) => void; + onError?: (error: Error) => void; + onComplete?: () => void; + } + ): Unsubscribe { + this.activeSubscriptions++; + let disposed = false; + + const cleanup = this.wsClient.subscribe>( + { query: document, variables }, + { + next: (result) => { + if (disposed) return; + if (result.errors) { + options.onError?.(new Error(result.errors.map((e) => e.message).join('; '))); + return; + } + + const payload = result.data?.[meta.fieldName] as + | { event?: string; [key: string]: unknown } + | undefined; + + if (!payload) return; + + const event: SubscriptionEvent = { + operation: (payload.event as SubscriptionOperation) ?? 'UPDATE', + data: (payload[meta.dataFieldName] as T) ?? null, + previousValues: payload.previousValues as Partial | undefined, + timestamp: (payload.timestamp as string) ?? new Date().toISOString(), + }; + options.onEvent(event); + }, + error: (err) => { + if (disposed) return; + options.onError?.(err instanceof Error ? err : new Error(String(err))); + }, + complete: () => { + if (disposed) return; + options.onComplete?.(); + }, + } + ); + + return () => { + if (disposed) return; + disposed = true; + this.activeSubscriptions--; + cleanup(); + }; + } + + /** Register a listener for connection state changes */ + onConnectionStateChange(listener: ConnectionStateListener): Unsubscribe { + this.stateListeners.add(listener); + return () => { + this.stateListeners.delete(listener); + }; + } + + /** Get current connection state */ + getConnectionState(): ConnectionState { + return this.connectionState; + } + + /** Number of active subscriptions */ + getActiveSubscriptionCount(): number { + return this.activeSubscriptions; + } + + /** Dispose the manager and close the WebSocket connection */ + dispose(): void { + this.wsClient.dispose(); + this.stateListeners.clear(); + this.activeSubscriptions = 0; + this.setConnectionState('disconnected'); + } + + private setConnectionState(state: ConnectionState): void { + if (this.connectionState === state) return; + this.connectionState = state; + for (const listener of this.stateListeners) { + listener(state); + } + } +} diff --git a/sdk/constructive-cli/src/remote/orm/select-types.ts b/sdk/constructive-cli/src/remote/orm/select-types.ts new file mode 100644 index 0000000000..4b39d7e820 --- /dev/null +++ b/sdk/constructive-cli/src/remote/orm/select-types.ts @@ -0,0 +1,169 @@ +/** + * Type utilities for select inference + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +export interface ConnectionResult { + nodes: T[]; + totalCount: number; + pageInfo: PageInfo; +} + +export interface PageInfo { + hasNextPage: boolean; + hasPreviousPage: boolean; + startCursor?: string | null; + endCursor?: string | null; +} + +export interface FindManyArgs { + select?: TSelect; + where?: TWhere; + orderBy?: TOrderBy[]; + first?: number; + last?: number; + after?: string; + before?: string; + offset?: number; +} + +export interface FindFirstArgs { + select?: TSelect; + where?: TWhere; + orderBy?: TOrderBy[]; +} + +export interface CreateArgs { + data: TData; + select?: TSelect; +} + +export interface UpdateArgs { + where: TWhere; + data: TData; + select?: TSelect; +} + +export type FindOneArgs = { + select?: TSelect; +} & Record; + +export interface DeleteArgs { + where: TWhere; + select?: TSelect; +} + +export interface BulkInsertArgs { + data: TData[]; + select?: TSelect; + onConflict?: TOnConflict; +} + +export interface BulkUpsertArgs { + data: TData[]; + select?: TSelect; + onConflict: TOnConflict; +} + +export interface BulkUpdateArgs { + where: TWhere; + data: TData; + select?: TSelect; +} + +export interface BulkDeleteArgs { + where: TWhere; + select?: TSelect; +} + +export interface BulkMutationResult { + affectedCount: number; + returning: T[]; +} + +type DepthLevel = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10; +type DecrementDepth = { + 0: 0; + 1: 0; + 2: 1; + 3: 2; + 4: 3; + 5: 4; + 6: 5; + 7: 6; + 8: 7; + 9: 8; + 10: 9; +}; + +/** + * Recursively validates select objects, rejecting unknown keys. + * + * NOTE: Depth is intentionally capped to avoid circular-instantiation issues + * in very large cyclic schemas. + */ +export type DeepExact = Depth extends 0 + ? T extends Shape + ? T + : never + : T extends Shape + ? Exclude extends never + ? { + [K in keyof T]: K extends keyof Shape + ? T[K] extends { select: infer NS } + ? Extract extends { + select?: infer ShapeNS; + } + ? DeepExact< + Omit & { + select: DeepExact, DecrementDepth[Depth]>; + }, + Extract, + DecrementDepth[Depth] + > + : never + : T[K] + : never; + } + : never + : never; + +/** + * Enforces exact select shape while keeping contextual typing on `S extends XxxSelect`. + * Use this as an intersection in overloads: + * `{ select: S } & StrictSelect`. + */ +export type StrictSelect = S extends DeepExact ? {} : never; + +/** + * Hook-optimized strict select variant. + * + * Uses a shallower recursion depth to keep editor autocomplete responsive + * in large schemas while still validating common nested-select mistakes. + */ +export type HookStrictSelect = S extends DeepExact ? {} : never; + +/** + * Infer result type from select configuration + */ +export type InferSelectResult = TSelect extends undefined + ? TEntity + : { + [K in keyof TSelect as TSelect[K] extends false | undefined + ? never + : K]: TSelect[K] extends true + ? K extends keyof TEntity + ? TEntity[K] + : never + : TSelect[K] extends { select: infer NestedSelect } + ? K extends keyof TEntity + ? NonNullable extends ConnectionResult + ? ConnectionResult> + : + | InferSelectResult, NestedSelect> + | (null extends TEntity[K] ? null : never) + : never + : K extends keyof TEntity + ? TEntity[K] + : never; + }; diff --git a/sdk/constructive-cli/src/remote/orm/types.ts b/sdk/constructive-cli/src/remote/orm/types.ts new file mode 100644 index 0000000000..7c1120bcdf --- /dev/null +++ b/sdk/constructive-cli/src/remote/orm/types.ts @@ -0,0 +1,8 @@ +/** + * Types re-export + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +// Re-export all types from input-types +export * from './input-types'; diff --git a/sdk/constructive-cli/src/storage/README.md b/sdk/constructive-cli/src/storage/README.md new file mode 100644 index 0000000000..20b1df553d --- /dev/null +++ b/sdk/constructive-cli/src/storage/README.md @@ -0,0 +1,37 @@ +# Generated GraphQL SDK + +

+ +

+ + + +## Overview + +- **Tables:** 4 +- **Custom queries:** 0 +- **Custom mutations:** 7 + +**Generators:** ORM, CLI + +## Modules + +### ORM Client (`./orm`) + +Prisma-like ORM client for programmatic GraphQL access. + +```typescript +import { createClient } from './orm'; + +const db = createClient({ + endpoint: 'https://api.example.com/graphql', +}); +``` + +See [orm/README.md](./orm/README.md) for full API reference. + +### CLI Commands (`./cli`) + +inquirerer-based CLI commands for `csdk`. + +See [cli/README.md](./cli/README.md) for command reference. diff --git a/sdk/constructive-cli/src/storage/cli/README.md b/sdk/constructive-cli/src/storage/cli/README.md new file mode 100644 index 0000000000..622a31380f --- /dev/null +++ b/sdk/constructive-cli/src/storage/cli/README.md @@ -0,0 +1,361 @@ +# csdk CLI + +

+ +

+ + + +## Setup + +```bash +# Create a context pointing at your GraphQL endpoint +csdk context create production --endpoint https://api.example.com/graphql + +# Set the active context +csdk context use production + +# Authenticate +csdk auth set-token +``` + +## Commands + +| Command | Description | +|---------|-------------| +| `context` | Manage API contexts (endpoints) | +| `auth` | Manage authentication tokens | +| `config` | Manage config key-value store (per-context) | +| `bucket` | bucket CRUD operations | +| `file` | file CRUD operations | +| `platform-bucket` | platformBucket CRUD operations | +| `platform-file` | platformFile CRUD operations | +| `files-rename` | filesRename | +| `platform-files-rename` | platformFilesRename | +| `provision-bucket` | Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. | +| `upload-file` | Upload a file: resolves the bucket by key, creates the file row, and returns a presigned PUT URL. | +| `upload-files` | Upload multiple files: resolves the bucket by key, creates file rows, and returns presigned PUT URLs for each. | +| `upload-platform-file` | Upload a file: resolves the bucket by key, creates the file row, and returns a presigned PUT URL. | +| `upload-platform-files` | Upload multiple files: resolves the bucket by key, creates file rows, and returns presigned PUT URLs for each. | + +## Infrastructure Commands + +### `context` + +Manage named API contexts (kubectl-style). + +| Subcommand | Description | +|------------|-------------| +| `create --endpoint ` | Create a new context | +| `list` | List all contexts | +| `use ` | Set the active context | +| `current` | Show current context | +| `delete ` | Delete a context | + +Configuration is stored at `~/.csdk/config/`. + +### `auth` + +Manage authentication tokens per context. + +| Subcommand | Description | +|------------|-------------| +| `set-token ` | Store bearer token for current context | +| `status` | Show auth status across all contexts | +| `logout` | Remove credentials for current context | + +### `config` + +Manage per-context key-value configuration variables. + +| Subcommand | Description | +|------------|-------------| +| `get ` | Get a config value | +| `set ` | Set a config value | +| `list` | List all config values | +| `delete ` | Delete a config value | + +Variables are scoped to the active context and stored at `~/.csdk/config/`. + +## Table Commands + +### `bucket` + +CRUD operations for Bucket records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all bucket records | +| `find-first` | Find first matching bucket record | +| `get` | Get a bucket by id | +| `create` | Create a new bucket | +| `update` | Update an existing bucket | +| `delete` | Delete a bucket | + +**Fields:** + +| Field | Type | +|-------|------| +| `actorId` | UUID | +| `allowCustomKeys` | Boolean | +| `allowedMimeTypes` | String | +| `allowedOrigins` | String | +| `createdAt` | Datetime | +| `databaseId` | UUID | +| `description` | String | +| `destinationBucketId` | UUID | +| `id` | UUID | +| `isPublic` | Boolean | +| `key` | String | +| `maxFileSize` | BigInt | +| `physicalName` | String | +| `stagingTtl` | Interval | +| `tags` | String | +| `type` | BucketType | +| `updatedAt` | Datetime | + +**Required create fields:** `actorId`, `databaseId`, `key` +**Optional create fields (backend defaults):** `allowCustomKeys`, `allowedMimeTypes`, `allowedOrigins`, `description`, `destinationBucketId`, `isPublic`, `maxFileSize`, `physicalName`, `stagingTtl`, `tags`, `type` + +### `file` + +CRUD operations for File records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all file records | +| `find-first` | Find first matching file record | +| `get` | Get a file by id | +| `create` | Create a new file | +| `update` | Update an existing file | +| `delete` | Delete a file | + +**Fields:** + +| Field | Type | +|-------|------| +| `actorId` | UUID | +| `bucketId` | UUID | +| `contentHash` | String | +| `createdAt` | Datetime | +| `databaseId` | UUID | +| `description` | String | +| `downloadUrl` | String | +| `expiryEnqueuedAt` | Datetime | +| `filePath` | String | +| `filename` | String | +| `id` | UUID | +| `isPublic` | Boolean | +| `key` | String | +| `mimeType` | String | +| `promotedAt` | Datetime | +| `size` | BigInt | +| `status` | FileStatus | +| `tags` | String | +| `updatedAt` | Datetime | +| `upload` | Upload | + +**Required create fields:** `actorId`, `bucketId`, `databaseId`, `key`, `mimeType`, `size` +**Optional create fields (backend defaults):** `contentHash`, `description`, `expiryEnqueuedAt`, `filename`, `isPublic`, `promotedAt`, `status`, `tags`, `upload` + +### `platform-bucket` + +CRUD operations for PlatformBucket records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all platformBucket records | +| `find-first` | Find first matching platformBucket record | +| `get` | Get a platformBucket by id | +| `create` | Create a new platformBucket | +| `update` | Update an existing platformBucket | +| `delete` | Delete a platformBucket | + +**Fields:** + +| Field | Type | +|-------|------| +| `actorId` | UUID | +| `allowCustomKeys` | Boolean | +| `allowedMimeTypes` | String | +| `allowedOrigins` | String | +| `createdAt` | Datetime | +| `description` | String | +| `destinationBucketId` | UUID | +| `id` | UUID | +| `isPublic` | Boolean | +| `key` | String | +| `maxFileSize` | BigInt | +| `physicalName` | String | +| `stagingTtl` | Interval | +| `tags` | String | +| `type` | BucketType | +| `updatedAt` | Datetime | + +**Required create fields:** `actorId`, `key` +**Optional create fields (backend defaults):** `allowCustomKeys`, `allowedMimeTypes`, `allowedOrigins`, `description`, `destinationBucketId`, `isPublic`, `maxFileSize`, `physicalName`, `stagingTtl`, `tags`, `type` + +### `platform-file` + +CRUD operations for PlatformFile records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all platformFile records | +| `find-first` | Find first matching platformFile record | +| `get` | Get a platformFile by id | +| `create` | Create a new platformFile | +| `update` | Update an existing platformFile | +| `delete` | Delete a platformFile | + +**Fields:** + +| Field | Type | +|-------|------| +| `actorId` | UUID | +| `bucketId` | UUID | +| `contentHash` | String | +| `createdAt` | Datetime | +| `description` | String | +| `downloadUrl` | String | +| `expiryEnqueuedAt` | Datetime | +| `filePath` | String | +| `filename` | String | +| `id` | UUID | +| `isPublic` | Boolean | +| `key` | String | +| `mimeType` | String | +| `promotedAt` | Datetime | +| `size` | BigInt | +| `status` | FileStatus | +| `tags` | String | +| `updatedAt` | Datetime | +| `upload` | Upload | + +**Required create fields:** `actorId`, `bucketId`, `key`, `mimeType`, `size` +**Optional create fields (backend defaults):** `contentHash`, `description`, `expiryEnqueuedAt`, `filename`, `isPublic`, `promotedAt`, `status`, `tags`, `upload` + +## Custom Operations + +### `files-rename` + +filesRename + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.fileId` | UUID | + | `--input.newFilename` | String | + +### `platform-files-rename` + +platformFilesRename + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.fileId` | UUID | + | `--input.newFilename` | String | + +### `provision-bucket` + +Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.bucketKey` | String (required) | + | `--input.ownerId` | UUID | + +### `upload-file` + +Upload a file: resolves the bucket by key, creates the file row, and returns a presigned PUT URL. + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.bucketKey` | String | + | `--input.contentHash` | String (required) | + | `--input.contentType` | String (required) | + | `--input.filename` | String | + | `--input.isPublic` | Boolean | + | `--input.key` | String | + | `--input.size` | Int (required) | + +### `upload-files` + +Upload multiple files: resolves the bucket by key, creates file rows, and returns presigned PUT URLs for each. + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.bucketKey` | String | + | `--input.files` | UploadFileBulkFileInput (required) | + | `--input.isPublic` | Boolean | + +### `upload-platform-file` + +Upload a file: resolves the bucket by key, creates the file row, and returns a presigned PUT URL. + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.bucketKey` | String | + | `--input.contentHash` | String (required) | + | `--input.contentType` | String (required) | + | `--input.filename` | String | + | `--input.isPublic` | Boolean | + | `--input.key` | String | + | `--input.size` | Int (required) | + +### `upload-platform-files` + +Upload multiple files: resolves the bucket by key, creates file rows, and returns presigned PUT URLs for each. + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.bucketKey` | String | + | `--input.files` | UploadPlatformFileBulkFileInput (required) | + | `--input.isPublic` | Boolean | + +## Output + +All commands output JSON to stdout. Pipe to `jq` for formatting: + +```bash +csdk car list | jq '.[]' +csdk car get --id | jq '.' +``` + +## Non-Interactive Mode + +Use `--no-tty` to skip all interactive prompts (useful for scripts and CI): + +```bash +csdk --no-tty car create --name "Sedan" --year 2024 +``` diff --git a/sdk/constructive-cli/src/storage/cli/commands.ts b/sdk/constructive-cli/src/storage/cli/commands.ts new file mode 100644 index 0000000000..cccd55c4c7 --- /dev/null +++ b/sdk/constructive-cli/src/storage/cli/commands.ts @@ -0,0 +1,75 @@ +/** + * CLI command map and entry point + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; +import contextCmd from './commands/context'; +import authCmd from './commands/auth'; +import bucketCmd from './commands/bucket'; +import fileCmd from './commands/file'; +import platformBucketCmd from './commands/platform-bucket'; +import platformFileCmd from './commands/platform-file'; +import filesRenameCmd from './commands/files-rename'; +import platformFilesRenameCmd from './commands/platform-files-rename'; +import provisionBucketCmd from './commands/provision-bucket'; +import uploadFileCmd from './commands/upload-file'; +import uploadFilesCmd from './commands/upload-files'; +import uploadPlatformFileCmd from './commands/upload-platform-file'; +import uploadPlatformFilesCmd from './commands/upload-platform-files'; +const createCommandMap: () => Record< + string, + ( + argv: Partial>, + prompter: Inquirerer, + options: CLIOptions + ) => Promise +> = () => ({ + context: contextCmd, + auth: authCmd, + bucket: bucketCmd, + file: fileCmd, + 'platform-bucket': platformBucketCmd, + 'platform-file': platformFileCmd, + 'files-rename': filesRenameCmd, + 'platform-files-rename': platformFilesRenameCmd, + 'provision-bucket': provisionBucketCmd, + 'upload-file': uploadFileCmd, + 'upload-files': uploadFilesCmd, + 'upload-platform-file': uploadPlatformFileCmd, + 'upload-platform-files': uploadPlatformFilesCmd, +}); +const usage = + '\ncsdk \n\nCommands:\n context Manage API contexts\n auth Manage authentication\n bucket bucket CRUD operations\n file file CRUD operations\n platform-bucket platformBucket CRUD operations\n platform-file platformFile CRUD operations\n files-rename filesRename\n platform-files-rename platformFilesRename\n provision-bucket Reconcile an S3 bucket for a logical bucket in the database.\nReads the bucket config via RLS, then enqueues the same\nstorage:provision_bucket job used by the INSERT trigger. This is\nidempotent for an already-reconciled bucket; enqueue failures become\nGraphQL errors.\n upload-file Upload a file: resolves the bucket by key, creates the file row, and returns a presigned PUT URL.\n upload-files Upload multiple files: resolves the bucket by key, creates file rows, and returns presigned PUT URLs for each.\n upload-platform-file Upload a file: resolves the bucket by key, creates the file row, and returns a presigned PUT URL.\n upload-platform-files Upload multiple files: resolves the bucket by key, creates file rows, and returns presigned PUT URLs for each.\n\n --help, -h Show this help message\n --version, -v Show version\n'; +export const commands = async ( + argv: Partial>, + prompter: Inquirerer, + options: CLIOptions +) => { + if (argv.help || argv.h) { + console.log(usage); + process.exit(0); + } + let { first: command, newArgv } = extractFirst(argv); + const commandMap = createCommandMap(); + if (!command) { + const answer = await prompter.prompt(argv, [ + { + type: 'autocomplete', + name: 'command', + message: 'What do you want to do?', + options: Object.keys(commandMap), + }, + ]); + command = answer.command as string; + } + const commandFn = commandMap[command]; + if (!commandFn) { + console.log(usage); + console.error(`Unknown command: ${command}`); + process.exit(1); + } + await commandFn(newArgv, prompter, options); + prompter.close(); + return argv; +}; diff --git a/sdk/constructive-cli/src/storage/cli/commands/auth.ts b/sdk/constructive-cli/src/storage/cli/commands/auth.ts new file mode 100644 index 0000000000..c731ba27ca --- /dev/null +++ b/sdk/constructive-cli/src/storage/cli/commands/auth.ts @@ -0,0 +1,122 @@ +/** + * Authentication commands + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; +import { getStore } from '../executor'; +const usage = + '\ncsdk auth \n\nCommands:\n set-token Set API token for the current context\n status Show authentication status\n logout Remove credentials for the current context\n\nOptions:\n --context Specify context (defaults to current context)\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 store = getStore(); + 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: ['set-token', 'status', 'logout'], + }, + ]); + return handleAuthSubcommand(answer.subcommand as string, newArgv, prompter, store); + } + return handleAuthSubcommand(subcommand, newArgv, prompter, store); +}; +async function handleAuthSubcommand( + subcommand: string, + argv: Partial>, + prompter: Inquirerer, + store: ReturnType +) { + switch (subcommand) { + case 'set-token': + return handleSetToken(argv, prompter, store); + case 'status': + return handleStatus(store); + case 'logout': + return handleLogout(argv, prompter, store); + default: + console.log(usage); + process.exit(1); + } +} +async function handleSetToken( + argv: Partial>, + prompter: Inquirerer, + store: ReturnType +) { + const current = store.getCurrentContext(); + if (!current) { + console.error('No active context. Run "context create" first.'); + process.exit(1); + } + const { first: token } = extractFirst(argv); + let tokenValue = token; + if (!tokenValue) { + const answer = await prompter.prompt(argv, [ + { + type: 'password', + name: 'token', + message: 'API Token', + required: true, + }, + ]); + tokenValue = answer.token as string; + } + store.setCredentials(current.name, { + token: String(tokenValue || '').trim(), + }); + console.log(`Token saved for context: ${current.name}`); +} +function handleStatus(store: ReturnType) { + const contexts = store.listContexts(); + const settings = store.loadSettings(); + if (contexts.length === 0) { + console.log('No contexts configured.'); + return; + } + console.log('Authentication Status:'); + for (const ctx of contexts) { + const isCurrent = ctx.name === settings.currentContext; + const hasAuth = store.hasValidCredentials(ctx.name); + const marker = isCurrent ? '* ' : ' '; + const status = hasAuth ? 'authenticated' : 'no token'; + console.log(`${marker}${ctx.name} [${status}]`); + } +} +async function handleLogout( + argv: Partial>, + prompter: Inquirerer, + store: ReturnType +) { + const current = store.getCurrentContext(); + if (!current) { + console.log('No active context.'); + return; + } + const confirm = await prompter.prompt(argv, [ + { + type: 'confirm', + name: 'confirm', + message: `Remove credentials for "${current.name}"?`, + default: false, + }, + ]); + if (!(confirm.confirm as boolean)) { + return; + } + if (store.removeCredentials(current.name)) { + console.log(`Credentials removed for: ${current.name}`); + } else { + console.log(`No credentials found for: ${current.name}`); + } +} diff --git a/sdk/constructive-cli/src/storage/cli/commands/bucket.ts b/sdk/constructive-cli/src/storage/cli/commands/bucket.ts new file mode 100644 index 0000000000..aedb8aafa5 --- /dev/null +++ b/sdk/constructive-cli/src/storage/cli/commands/bucket.ts @@ -0,0 +1,542 @@ +/** + * CLI commands for Bucket + * @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 { + CreateBucketInput, + BucketPatch, + BucketSelect, + BucketFilter, + BucketOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + actorId: 'uuid', + allowCustomKeys: 'boolean', + allowedMimeTypes: 'string', + allowedOrigins: 'string', + createdAt: 'string', + databaseId: 'uuid', + description: 'string', + destinationBucketId: 'uuid', + id: 'uuid', + isPublic: 'boolean', + key: 'string', + maxFileSize: 'int', + physicalName: 'string', + stagingTtl: 'string', + tags: 'string', + type: 'string', + updatedAt: 'string', +}; +const usage = + '\nbucket \n\nCommands:\n list List bucket records\n find-first Find first matching bucket record\n get Get a bucket by ID\n create Create a new bucket\n update Update an existing bucket\n delete Delete a bucket\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 = { + actorId: true, + allowCustomKeys: true, + allowedMimeTypes: true, + allowedOrigins: true, + createdAt: true, + databaseId: true, + description: true, + destinationBucketId: true, + id: true, + isPublic: true, + key: true, + maxFileSize: true, + physicalName: true, + stagingTtl: true, + tags: true, + type: true, + updatedAt: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: BucketSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.bucket.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 = { + actorId: true, + allowCustomKeys: true, + allowedMimeTypes: true, + allowedOrigins: true, + createdAt: true, + databaseId: true, + description: true, + destinationBucketId: true, + id: true, + isPublic: true, + key: true, + maxFileSize: true, + physicalName: true, + stagingTtl: true, + tags: true, + type: true, + updatedAt: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: BucketSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.bucket.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.bucket + .findOne({ + id: answers.id as string, + select: { + actorId: true, + allowCustomKeys: true, + allowedMimeTypes: true, + allowedOrigins: true, + createdAt: true, + databaseId: true, + description: true, + destinationBucketId: true, + id: true, + isPublic: true, + key: true, + maxFileSize: true, + physicalName: true, + stagingTtl: true, + tags: true, + type: 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: 'actorId', + message: 'actorId', + required: true, + }, + { + type: 'boolean', + name: 'allowCustomKeys', + message: 'allowCustomKeys', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'allowedMimeTypes', + message: 'allowedMimeTypes', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'allowedOrigins', + message: 'allowedOrigins', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: true, + }, + { + type: 'text', + name: 'description', + message: 'description', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'destinationBucketId', + message: 'destinationBucketId', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'isPublic', + message: 'isPublic', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'key', + message: 'key', + required: true, + }, + { + type: 'text', + name: 'maxFileSize', + message: 'maxFileSize', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'physicalName', + message: 'physicalName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'stagingTtl', + message: 'stagingTtl', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'tags', + message: 'tags', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'type', + message: 'type', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as CreateBucketInput['bucket']; + const client = getClient(); + const result = await client.bucket + .create({ + data: { + actorId: cleanedData.actorId, + allowCustomKeys: cleanedData.allowCustomKeys, + allowedMimeTypes: cleanedData.allowedMimeTypes, + allowedOrigins: cleanedData.allowedOrigins, + databaseId: cleanedData.databaseId, + description: cleanedData.description, + destinationBucketId: cleanedData.destinationBucketId, + isPublic: cleanedData.isPublic, + key: cleanedData.key, + maxFileSize: cleanedData.maxFileSize, + physicalName: cleanedData.physicalName, + stagingTtl: cleanedData.stagingTtl, + tags: cleanedData.tags, + type: cleanedData.type, + }, + select: { + actorId: true, + allowCustomKeys: true, + allowedMimeTypes: true, + allowedOrigins: true, + createdAt: true, + databaseId: true, + description: true, + destinationBucketId: true, + id: true, + isPublic: true, + key: true, + maxFileSize: true, + physicalName: true, + stagingTtl: true, + tags: true, + type: 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: 'actorId', + message: 'actorId', + required: false, + }, + { + type: 'boolean', + name: 'allowCustomKeys', + message: 'allowCustomKeys', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'allowedMimeTypes', + message: 'allowedMimeTypes', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'allowedOrigins', + message: 'allowedOrigins', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: false, + }, + { + type: 'text', + name: 'description', + message: 'description', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'destinationBucketId', + message: 'destinationBucketId', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'isPublic', + message: 'isPublic', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'key', + message: 'key', + required: false, + }, + { + type: 'text', + name: 'maxFileSize', + message: 'maxFileSize', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'physicalName', + message: 'physicalName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'stagingTtl', + message: 'stagingTtl', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'tags', + message: 'tags', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'type', + message: 'type', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as BucketPatch; + const client = getClient(); + const result = await client.bucket + .update({ + where: { + id: answers.id as string, + }, + data: { + actorId: cleanedData.actorId, + allowCustomKeys: cleanedData.allowCustomKeys, + allowedMimeTypes: cleanedData.allowedMimeTypes, + allowedOrigins: cleanedData.allowedOrigins, + databaseId: cleanedData.databaseId, + description: cleanedData.description, + destinationBucketId: cleanedData.destinationBucketId, + isPublic: cleanedData.isPublic, + key: cleanedData.key, + maxFileSize: cleanedData.maxFileSize, + physicalName: cleanedData.physicalName, + stagingTtl: cleanedData.stagingTtl, + tags: cleanedData.tags, + type: cleanedData.type, + }, + select: { + actorId: true, + allowCustomKeys: true, + allowedMimeTypes: true, + allowedOrigins: true, + createdAt: true, + databaseId: true, + description: true, + destinationBucketId: true, + id: true, + isPublic: true, + key: true, + maxFileSize: true, + physicalName: true, + stagingTtl: true, + tags: true, + type: 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.bucket + .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/storage/cli/commands/context.ts b/sdk/constructive-cli/src/storage/cli/commands/context.ts new file mode 100644 index 0000000000..52d12c666b --- /dev/null +++ b/sdk/constructive-cli/src/storage/cli/commands/context.ts @@ -0,0 +1,179 @@ +/** + * Context management commands + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; +import { getStore } from '../executor'; +const usage = + '\ncsdk context \n\nCommands:\n create Create a new context\n list List all contexts\n use Set the active context\n current Show current context\n delete Delete a context\n\nCreate Options:\n --endpoint GraphQL endpoint URL\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 store = getStore(); + 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: ['create', 'list', 'use', 'current', 'delete'], + }, + ]); + return handleSubcommand(answer.subcommand as string, newArgv, prompter, store); + } + return handleSubcommand(subcommand, newArgv, prompter, store); +}; +async function handleSubcommand( + subcommand: string, + argv: Partial>, + prompter: Inquirerer, + store: ReturnType +) { + switch (subcommand) { + case 'create': + return handleCreate(argv, prompter, store); + case 'list': + return handleList(store); + case 'use': + return handleUse(argv, prompter, store); + case 'current': + return handleCurrent(store); + case 'delete': + return handleDelete(argv, prompter, store); + default: + console.log(usage); + process.exit(1); + } +} +async function handleCreate( + argv: Partial>, + prompter: Inquirerer, + store: ReturnType +) { + const { first: name, newArgv: restArgv } = extractFirst(argv); + const answers = (await prompter.prompt( + { + name, + ...restArgv, + }, + [ + { + type: 'text', + name: 'name', + message: 'Context name', + required: true, + }, + { + type: 'text', + name: 'endpoint', + message: 'GraphQL endpoint URL', + required: true, + }, + ] + )) as unknown as Record; + const contextName = answers.name; + const endpoint = answers.endpoint; + store.createContext(contextName, { + endpoint: endpoint, + }); + const settings = store.loadSettings(); + if (!settings.currentContext) { + store.setCurrentContext(contextName); + } + console.log(`Created context: ${contextName}`); + console.log(` Endpoint: ${endpoint}`); +} +function handleList(store: ReturnType) { + const contexts = store.listContexts(); + const settings = store.loadSettings(); + if (contexts.length === 0) { + console.log('No contexts configured.'); + return; + } + console.log('Contexts:'); + for (const ctx of contexts) { + const marker = ctx.name === settings.currentContext ? '* ' : ' '; + const authStatus = store.hasValidCredentials(ctx.name) ? '[authenticated]' : '[no token]'; + console.log(`${marker}${ctx.name} ${authStatus}`); + console.log(` Endpoint: ${ctx.endpoint}`); + } +} +async function handleUse( + argv: Partial>, + prompter: Inquirerer, + store: ReturnType +) { + const { first: name } = extractFirst(argv); + const contexts = store.listContexts(); + if (contexts.length === 0) { + console.log('No contexts configured.'); + return; + } + let contextName = name; + if (!contextName) { + const answer = await prompter.prompt(argv, [ + { + type: 'autocomplete', + name: 'name', + message: 'Select context', + options: contexts.map((c) => c.name), + }, + ]); + contextName = answer.name as string; + } + if (store.setCurrentContext(contextName)) { + console.log(`Switched to context: ${contextName}`); + } else { + console.error(`Context "${contextName}" not found.`); + process.exit(1); + } +} +function handleCurrent(store: ReturnType) { + const current = store.getCurrentContext(); + if (!current) { + console.log('No current context set.'); + return; + } + console.log(`Current context: ${current.name}`); + console.log(` Endpoint: ${current.endpoint}`); + const hasAuth = store.hasValidCredentials(current.name); + console.log(` Auth: ${hasAuth ? 'authenticated' : 'not authenticated'}`); +} +async function handleDelete( + argv: Partial>, + prompter: Inquirerer, + store: ReturnType +) { + const { first: name } = extractFirst(argv); + const contexts = store.listContexts(); + if (contexts.length === 0) { + console.log('No contexts configured.'); + return; + } + let contextName = name; + if (!contextName) { + const answer = await prompter.prompt(argv, [ + { + type: 'autocomplete', + name: 'name', + message: 'Select context to delete', + options: contexts.map((c) => c.name), + }, + ]); + contextName = answer.name as string; + } + if (store.deleteContext(contextName)) { + console.log(`Deleted context: ${contextName}`); + } else { + console.error(`Context "${contextName}" not found.`); + process.exit(1); + } +} diff --git a/sdk/constructive-cli/src/storage/cli/commands/file.ts b/sdk/constructive-cli/src/storage/cli/commands/file.ts new file mode 100644 index 0000000000..ddb68a97c8 --- /dev/null +++ b/sdk/constructive-cli/src/storage/cli/commands/file.ts @@ -0,0 +1,560 @@ +/** + * CLI commands for File + * @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 { + CreateFileInput, + FilePatch, + FileSelect, + FileFilter, + FileOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + actorId: 'uuid', + bucketId: 'uuid', + contentHash: 'string', + createdAt: 'string', + databaseId: 'uuid', + description: 'string', + downloadUrl: 'string', + expiryEnqueuedAt: 'string', + filePath: 'string', + filename: 'string', + id: 'uuid', + isPublic: 'boolean', + key: 'string', + mimeType: 'string', + promotedAt: 'string', + size: 'int', + status: 'string', + tags: 'string', + updatedAt: 'string', + upload: 'string', +}; +const usage = + '\nfile \n\nCommands:\n list List file records\n find-first Find first matching file record\n get Get a file by ID\n create Create a new file\n update Update an existing file\n delete Delete a file\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 = { + actorId: true, + bucketId: true, + contentHash: true, + createdAt: true, + databaseId: true, + description: true, + expiryEnqueuedAt: true, + filename: true, + id: true, + isPublic: true, + key: true, + mimeType: true, + promotedAt: true, + size: true, + status: true, + tags: true, + updatedAt: true, + upload: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: FileSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.file.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 = { + actorId: true, + bucketId: true, + contentHash: true, + createdAt: true, + databaseId: true, + description: true, + expiryEnqueuedAt: true, + filename: true, + id: true, + isPublic: true, + key: true, + mimeType: true, + promotedAt: true, + size: true, + status: true, + tags: true, + updatedAt: true, + upload: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: FileSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.file.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.file + .findOne({ + id: answers.id as string, + select: { + actorId: true, + bucketId: true, + contentHash: true, + createdAt: true, + databaseId: true, + description: true, + expiryEnqueuedAt: true, + filename: true, + id: true, + isPublic: true, + key: true, + mimeType: true, + promotedAt: true, + size: true, + status: true, + tags: true, + updatedAt: true, + upload: 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: 'actorId', + message: 'actorId', + required: true, + }, + { + type: 'text', + name: 'bucketId', + message: 'bucketId', + required: true, + }, + { + type: 'text', + name: 'contentHash', + message: 'contentHash', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: true, + }, + { + type: 'text', + name: 'description', + message: 'description', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'expiryEnqueuedAt', + message: 'expiryEnqueuedAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'filename', + message: 'filename', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'isPublic', + message: 'isPublic', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'key', + message: 'key', + required: true, + }, + { + type: 'text', + name: 'mimeType', + message: 'mimeType', + required: true, + }, + { + type: 'text', + name: 'promotedAt', + message: 'promotedAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'size', + message: 'size', + required: true, + }, + { + type: 'text', + name: 'status', + message: 'status', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'tags', + message: 'tags', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'upload', + message: 'upload', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as CreateFileInput['file']; + const client = getClient(); + const result = await client.file + .create({ + data: { + actorId: cleanedData.actorId, + bucketId: cleanedData.bucketId, + contentHash: cleanedData.contentHash, + databaseId: cleanedData.databaseId, + description: cleanedData.description, + expiryEnqueuedAt: cleanedData.expiryEnqueuedAt, + filename: cleanedData.filename, + isPublic: cleanedData.isPublic, + key: cleanedData.key, + mimeType: cleanedData.mimeType, + promotedAt: cleanedData.promotedAt, + size: cleanedData.size, + status: cleanedData.status, + tags: cleanedData.tags, + upload: cleanedData.upload, + }, + select: { + actorId: true, + bucketId: true, + contentHash: true, + createdAt: true, + databaseId: true, + description: true, + expiryEnqueuedAt: true, + filename: true, + id: true, + isPublic: true, + key: true, + mimeType: true, + promotedAt: true, + size: true, + status: true, + tags: true, + updatedAt: true, + upload: 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: 'actorId', + message: 'actorId', + required: false, + }, + { + type: 'text', + name: 'bucketId', + message: 'bucketId', + required: false, + }, + { + type: 'text', + name: 'contentHash', + message: 'contentHash', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: false, + }, + { + type: 'text', + name: 'description', + message: 'description', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'expiryEnqueuedAt', + message: 'expiryEnqueuedAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'filename', + message: 'filename', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'isPublic', + message: 'isPublic', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'key', + message: 'key', + required: false, + }, + { + type: 'text', + name: 'mimeType', + message: 'mimeType', + required: false, + }, + { + type: 'text', + name: 'promotedAt', + message: 'promotedAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'size', + message: 'size', + required: false, + }, + { + type: 'text', + name: 'status', + message: 'status', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'tags', + message: 'tags', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'upload', + message: 'upload', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as FilePatch; + const client = getClient(); + const result = await client.file + .update({ + where: { + id: answers.id as string, + }, + data: { + actorId: cleanedData.actorId, + bucketId: cleanedData.bucketId, + contentHash: cleanedData.contentHash, + databaseId: cleanedData.databaseId, + description: cleanedData.description, + expiryEnqueuedAt: cleanedData.expiryEnqueuedAt, + filename: cleanedData.filename, + isPublic: cleanedData.isPublic, + key: cleanedData.key, + mimeType: cleanedData.mimeType, + promotedAt: cleanedData.promotedAt, + size: cleanedData.size, + status: cleanedData.status, + tags: cleanedData.tags, + upload: cleanedData.upload, + }, + select: { + actorId: true, + bucketId: true, + contentHash: true, + createdAt: true, + databaseId: true, + description: true, + expiryEnqueuedAt: true, + filename: true, + id: true, + isPublic: true, + key: true, + mimeType: true, + promotedAt: true, + size: true, + status: true, + tags: true, + updatedAt: true, + upload: 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.file + .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/storage/cli/commands/files-rename.ts b/sdk/constructive-cli/src/storage/cli/commands/files-rename.ts new file mode 100644 index 0000000000..914e91afe7 --- /dev/null +++ b/sdk/constructive-cli/src/storage/cli/commands/files-rename.ts @@ -0,0 +1,51 @@ +/** + * CLI command for mutation filesRename + * @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 { FilesRenameVariables } from '../../orm/mutation'; +import type { FilesRenamePayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log('files-rename - filesRename\n\nUsage: files-rename [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 + .filesRename( + parsedAnswers as unknown as FilesRenameVariables, + { + select: selectFields, + } as unknown as { + select: FilesRenamePayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: filesRename'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/storage/cli/commands/platform-bucket.ts b/sdk/constructive-cli/src/storage/cli/commands/platform-bucket.ts new file mode 100644 index 0000000000..cb123ae821 --- /dev/null +++ b/sdk/constructive-cli/src/storage/cli/commands/platform-bucket.ts @@ -0,0 +1,525 @@ +/** + * CLI commands for PlatformBucket + * @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 { + CreatePlatformBucketInput, + PlatformBucketPatch, + PlatformBucketSelect, + PlatformBucketFilter, + PlatformBucketOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + actorId: 'uuid', + allowCustomKeys: 'boolean', + allowedMimeTypes: 'string', + allowedOrigins: 'string', + createdAt: 'string', + description: 'string', + destinationBucketId: 'uuid', + id: 'uuid', + isPublic: 'boolean', + key: 'string', + maxFileSize: 'int', + physicalName: 'string', + stagingTtl: 'string', + tags: 'string', + type: 'string', + updatedAt: 'string', +}; +const usage = + '\nplatform-bucket \n\nCommands:\n list List platformBucket records\n find-first Find first matching platformBucket record\n get Get a platformBucket by ID\n create Create a new platformBucket\n update Update an existing platformBucket\n delete Delete a platformBucket\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 = { + actorId: true, + allowCustomKeys: true, + allowedMimeTypes: true, + allowedOrigins: true, + createdAt: true, + description: true, + destinationBucketId: true, + id: true, + isPublic: true, + key: true, + maxFileSize: true, + physicalName: true, + stagingTtl: true, + tags: true, + type: true, + updatedAt: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: PlatformBucketSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformBucket.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 = { + actorId: true, + allowCustomKeys: true, + allowedMimeTypes: true, + allowedOrigins: true, + createdAt: true, + description: true, + destinationBucketId: true, + id: true, + isPublic: true, + key: true, + maxFileSize: true, + physicalName: true, + stagingTtl: true, + tags: true, + type: true, + updatedAt: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: PlatformBucketSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformBucket.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.platformBucket + .findOne({ + id: answers.id as string, + select: { + actorId: true, + allowCustomKeys: true, + allowedMimeTypes: true, + allowedOrigins: true, + createdAt: true, + description: true, + destinationBucketId: true, + id: true, + isPublic: true, + key: true, + maxFileSize: true, + physicalName: true, + stagingTtl: true, + tags: true, + type: 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: 'actorId', + message: 'actorId', + required: true, + }, + { + type: 'boolean', + name: 'allowCustomKeys', + message: 'allowCustomKeys', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'allowedMimeTypes', + message: 'allowedMimeTypes', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'allowedOrigins', + message: 'allowedOrigins', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'description', + message: 'description', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'destinationBucketId', + message: 'destinationBucketId', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'isPublic', + message: 'isPublic', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'key', + message: 'key', + required: true, + }, + { + type: 'text', + name: 'maxFileSize', + message: 'maxFileSize', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'physicalName', + message: 'physicalName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'stagingTtl', + message: 'stagingTtl', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'tags', + message: 'tags', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'type', + message: 'type', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreatePlatformBucketInput['platformBucket']; + const client = getClient(); + const result = await client.platformBucket + .create({ + data: { + actorId: cleanedData.actorId, + allowCustomKeys: cleanedData.allowCustomKeys, + allowedMimeTypes: cleanedData.allowedMimeTypes, + allowedOrigins: cleanedData.allowedOrigins, + description: cleanedData.description, + destinationBucketId: cleanedData.destinationBucketId, + isPublic: cleanedData.isPublic, + key: cleanedData.key, + maxFileSize: cleanedData.maxFileSize, + physicalName: cleanedData.physicalName, + stagingTtl: cleanedData.stagingTtl, + tags: cleanedData.tags, + type: cleanedData.type, + }, + select: { + actorId: true, + allowCustomKeys: true, + allowedMimeTypes: true, + allowedOrigins: true, + createdAt: true, + description: true, + destinationBucketId: true, + id: true, + isPublic: true, + key: true, + maxFileSize: true, + physicalName: true, + stagingTtl: true, + tags: true, + type: 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: 'actorId', + message: 'actorId', + required: false, + }, + { + type: 'boolean', + name: 'allowCustomKeys', + message: 'allowCustomKeys', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'allowedMimeTypes', + message: 'allowedMimeTypes', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'allowedOrigins', + message: 'allowedOrigins', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'description', + message: 'description', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'destinationBucketId', + message: 'destinationBucketId', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'isPublic', + message: 'isPublic', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'key', + message: 'key', + required: false, + }, + { + type: 'text', + name: 'maxFileSize', + message: 'maxFileSize', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'physicalName', + message: 'physicalName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'stagingTtl', + message: 'stagingTtl', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'tags', + message: 'tags', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'type', + message: 'type', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as PlatformBucketPatch; + const client = getClient(); + const result = await client.platformBucket + .update({ + where: { + id: answers.id as string, + }, + data: { + actorId: cleanedData.actorId, + allowCustomKeys: cleanedData.allowCustomKeys, + allowedMimeTypes: cleanedData.allowedMimeTypes, + allowedOrigins: cleanedData.allowedOrigins, + description: cleanedData.description, + destinationBucketId: cleanedData.destinationBucketId, + isPublic: cleanedData.isPublic, + key: cleanedData.key, + maxFileSize: cleanedData.maxFileSize, + physicalName: cleanedData.physicalName, + stagingTtl: cleanedData.stagingTtl, + tags: cleanedData.tags, + type: cleanedData.type, + }, + select: { + actorId: true, + allowCustomKeys: true, + allowedMimeTypes: true, + allowedOrigins: true, + createdAt: true, + description: true, + destinationBucketId: true, + id: true, + isPublic: true, + key: true, + maxFileSize: true, + physicalName: true, + stagingTtl: true, + tags: true, + type: 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.platformBucket + .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/storage/cli/commands/platform-file.ts b/sdk/constructive-cli/src/storage/cli/commands/platform-file.ts new file mode 100644 index 0000000000..e3bb4d88c3 --- /dev/null +++ b/sdk/constructive-cli/src/storage/cli/commands/platform-file.ts @@ -0,0 +1,543 @@ +/** + * CLI commands for PlatformFile + * @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 { + CreatePlatformFileInput, + PlatformFilePatch, + PlatformFileSelect, + PlatformFileFilter, + PlatformFileOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + actorId: 'uuid', + bucketId: 'uuid', + contentHash: 'string', + createdAt: 'string', + description: 'string', + downloadUrl: 'string', + expiryEnqueuedAt: 'string', + filePath: 'string', + filename: 'string', + id: 'uuid', + isPublic: 'boolean', + key: 'string', + mimeType: 'string', + promotedAt: 'string', + size: 'int', + status: 'string', + tags: 'string', + updatedAt: 'string', + upload: 'string', +}; +const usage = + '\nplatform-file \n\nCommands:\n list List platformFile records\n find-first Find first matching platformFile record\n get Get a platformFile by ID\n create Create a new platformFile\n update Update an existing platformFile\n delete Delete a platformFile\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 = { + actorId: true, + bucketId: true, + contentHash: true, + createdAt: true, + description: true, + expiryEnqueuedAt: true, + filename: true, + id: true, + isPublic: true, + key: true, + mimeType: true, + promotedAt: true, + size: true, + status: true, + tags: true, + updatedAt: true, + upload: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: PlatformFileSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformFile.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 = { + actorId: true, + bucketId: true, + contentHash: true, + createdAt: true, + description: true, + expiryEnqueuedAt: true, + filename: true, + id: true, + isPublic: true, + key: true, + mimeType: true, + promotedAt: true, + size: true, + status: true, + tags: true, + updatedAt: true, + upload: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: PlatformFileSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformFile.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.platformFile + .findOne({ + id: answers.id as string, + select: { + actorId: true, + bucketId: true, + contentHash: true, + createdAt: true, + description: true, + expiryEnqueuedAt: true, + filename: true, + id: true, + isPublic: true, + key: true, + mimeType: true, + promotedAt: true, + size: true, + status: true, + tags: true, + updatedAt: true, + upload: 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: 'actorId', + message: 'actorId', + required: true, + }, + { + type: 'text', + name: 'bucketId', + message: 'bucketId', + required: true, + }, + { + type: 'text', + name: 'contentHash', + message: 'contentHash', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'description', + message: 'description', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'expiryEnqueuedAt', + message: 'expiryEnqueuedAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'filename', + message: 'filename', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'isPublic', + message: 'isPublic', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'key', + message: 'key', + required: true, + }, + { + type: 'text', + name: 'mimeType', + message: 'mimeType', + required: true, + }, + { + type: 'text', + name: 'promotedAt', + message: 'promotedAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'size', + message: 'size', + required: true, + }, + { + type: 'text', + name: 'status', + message: 'status', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'tags', + message: 'tags', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'upload', + message: 'upload', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreatePlatformFileInput['platformFile']; + const client = getClient(); + const result = await client.platformFile + .create({ + data: { + actorId: cleanedData.actorId, + bucketId: cleanedData.bucketId, + contentHash: cleanedData.contentHash, + description: cleanedData.description, + expiryEnqueuedAt: cleanedData.expiryEnqueuedAt, + filename: cleanedData.filename, + isPublic: cleanedData.isPublic, + key: cleanedData.key, + mimeType: cleanedData.mimeType, + promotedAt: cleanedData.promotedAt, + size: cleanedData.size, + status: cleanedData.status, + tags: cleanedData.tags, + upload: cleanedData.upload, + }, + select: { + actorId: true, + bucketId: true, + contentHash: true, + createdAt: true, + description: true, + expiryEnqueuedAt: true, + filename: true, + id: true, + isPublic: true, + key: true, + mimeType: true, + promotedAt: true, + size: true, + status: true, + tags: true, + updatedAt: true, + upload: 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: 'actorId', + message: 'actorId', + required: false, + }, + { + type: 'text', + name: 'bucketId', + message: 'bucketId', + required: false, + }, + { + type: 'text', + name: 'contentHash', + message: 'contentHash', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'description', + message: 'description', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'expiryEnqueuedAt', + message: 'expiryEnqueuedAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'filename', + message: 'filename', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'isPublic', + message: 'isPublic', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'key', + message: 'key', + required: false, + }, + { + type: 'text', + name: 'mimeType', + message: 'mimeType', + required: false, + }, + { + type: 'text', + name: 'promotedAt', + message: 'promotedAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'size', + message: 'size', + required: false, + }, + { + type: 'text', + name: 'status', + message: 'status', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'tags', + message: 'tags', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'upload', + message: 'upload', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as PlatformFilePatch; + const client = getClient(); + const result = await client.platformFile + .update({ + where: { + id: answers.id as string, + }, + data: { + actorId: cleanedData.actorId, + bucketId: cleanedData.bucketId, + contentHash: cleanedData.contentHash, + description: cleanedData.description, + expiryEnqueuedAt: cleanedData.expiryEnqueuedAt, + filename: cleanedData.filename, + isPublic: cleanedData.isPublic, + key: cleanedData.key, + mimeType: cleanedData.mimeType, + promotedAt: cleanedData.promotedAt, + size: cleanedData.size, + status: cleanedData.status, + tags: cleanedData.tags, + upload: cleanedData.upload, + }, + select: { + actorId: true, + bucketId: true, + contentHash: true, + createdAt: true, + description: true, + expiryEnqueuedAt: true, + filename: true, + id: true, + isPublic: true, + key: true, + mimeType: true, + promotedAt: true, + size: true, + status: true, + tags: true, + updatedAt: true, + upload: 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.platformFile + .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/storage/cli/commands/platform-files-rename.ts b/sdk/constructive-cli/src/storage/cli/commands/platform-files-rename.ts new file mode 100644 index 0000000000..5b1b50ebc8 --- /dev/null +++ b/sdk/constructive-cli/src/storage/cli/commands/platform-files-rename.ts @@ -0,0 +1,53 @@ +/** + * CLI command for mutation platformFilesRename + * @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 { PlatformFilesRenameVariables } from '../../orm/mutation'; +import type { PlatformFilesRenamePayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'platform-files-rename - platformFilesRename\n\nUsage: platform-files-rename [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 + .platformFilesRename( + parsedAnswers as unknown as PlatformFilesRenameVariables, + { + select: selectFields, + } as unknown as { + select: PlatformFilesRenamePayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: platformFilesRename'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/storage/cli/commands/provision-bucket.ts b/sdk/constructive-cli/src/storage/cli/commands/provision-bucket.ts new file mode 100644 index 0000000000..0c54313d78 --- /dev/null +++ b/sdk/constructive-cli/src/storage/cli/commands/provision-bucket.ts @@ -0,0 +1,53 @@ +/** + * CLI command for mutation provisionBucket + * @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 { ProvisionBucketVariables } from '../../orm/mutation'; +import type { ProvisionBucketPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'provision-bucket - Reconcile an S3 bucket for a logical bucket in the database.\nReads the bucket config via RLS, then enqueues the same\nstorage:provision_bucket job used by the INSERT trigger. This is\nidempotent for an already-reconciled bucket; enqueue failures become\nGraphQL errors.\n\nUsage: provision-bucket [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 + .provisionBucket( + parsedAnswers as unknown as ProvisionBucketVariables, + { + select: selectFields, + } as unknown as { + select: ProvisionBucketPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: provisionBucket'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/storage/cli/commands/upload-file.ts b/sdk/constructive-cli/src/storage/cli/commands/upload-file.ts new file mode 100644 index 0000000000..c751e60cfe --- /dev/null +++ b/sdk/constructive-cli/src/storage/cli/commands/upload-file.ts @@ -0,0 +1,53 @@ +/** + * CLI command for mutation uploadFile + * @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 { UploadFileVariables } from '../../orm/mutation'; +import type { UploadFilePayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'upload-file - Upload a file: resolves the bucket by key, creates the file row, and returns a presigned PUT URL.\n\nUsage: upload-file [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 + .uploadFile( + parsedAnswers as unknown as UploadFileVariables, + { + select: selectFields, + } as unknown as { + select: UploadFilePayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: uploadFile'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/storage/cli/commands/upload-files.ts b/sdk/constructive-cli/src/storage/cli/commands/upload-files.ts new file mode 100644 index 0000000000..d68f275a68 --- /dev/null +++ b/sdk/constructive-cli/src/storage/cli/commands/upload-files.ts @@ -0,0 +1,53 @@ +/** + * CLI command for mutation uploadFiles + * @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 { UploadFilesVariables } from '../../orm/mutation'; +import type { UploadFileBulkPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'upload-files - Upload multiple files: resolves the bucket by key, creates file rows, and returns presigned PUT URLs for each.\n\nUsage: upload-files [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 + .uploadFiles( + parsedAnswers as unknown as UploadFilesVariables, + { + select: selectFields, + } as unknown as { + select: UploadFileBulkPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: uploadFiles'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/storage/cli/commands/upload-platform-file.ts b/sdk/constructive-cli/src/storage/cli/commands/upload-platform-file.ts new file mode 100644 index 0000000000..53f2bda3ff --- /dev/null +++ b/sdk/constructive-cli/src/storage/cli/commands/upload-platform-file.ts @@ -0,0 +1,53 @@ +/** + * CLI command for mutation uploadPlatformFile + * @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 { UploadPlatformFileVariables } from '../../orm/mutation'; +import type { UploadPlatformFilePayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'upload-platform-file - Upload a file: resolves the bucket by key, creates the file row, and returns a presigned PUT URL.\n\nUsage: upload-platform-file [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 + .uploadPlatformFile( + parsedAnswers as unknown as UploadPlatformFileVariables, + { + select: selectFields, + } as unknown as { + select: UploadPlatformFilePayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: uploadPlatformFile'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/storage/cli/commands/upload-platform-files.ts b/sdk/constructive-cli/src/storage/cli/commands/upload-platform-files.ts new file mode 100644 index 0000000000..d4228d8b81 --- /dev/null +++ b/sdk/constructive-cli/src/storage/cli/commands/upload-platform-files.ts @@ -0,0 +1,53 @@ +/** + * CLI command for mutation uploadPlatformFiles + * @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 { UploadPlatformFilesVariables } from '../../orm/mutation'; +import type { UploadPlatformFileBulkPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'upload-platform-files - Upload multiple files: resolves the bucket by key, creates file rows, and returns presigned PUT URLs for each.\n\nUsage: upload-platform-files [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 + .uploadPlatformFiles( + parsedAnswers as unknown as UploadPlatformFilesVariables, + { + select: selectFields, + } as unknown as { + select: UploadPlatformFileBulkPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: uploadPlatformFiles'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/storage/cli/executor.ts b/sdk/constructive-cli/src/storage/cli/executor.ts new file mode 100644 index 0000000000..342d05c892 --- /dev/null +++ b/sdk/constructive-cli/src/storage/cli/executor.ts @@ -0,0 +1,36 @@ +/** + * Executor and config store for CLI + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { createConfigStore } from 'appstash'; +import { createClient } from '../orm'; +const store = createConfigStore('csdk', { + stashName: 'constructive', +}); +export const getStore = () => store; +export function getClient(contextName?: string) { + let ctx = null; + if (contextName) { + ctx = store.loadContext(contextName); + if (!ctx) { + throw new Error(`Context "${contextName}" not found.`); + } + } else { + ctx = store.getCurrentContext(); + if (!ctx) { + throw new Error('No active context. Run "context create" or "context use" first.'); + } + } + const headers: Record = {}; + if (store.hasValidCredentials(ctx.name)) { + const creds = store.getCredentials(ctx.name); + if (creds?.token) { + headers.Authorization = `Bearer ${creds.token}`; + } + } + return createClient({ + endpoint: ctx.endpoint, + headers: headers, + }); +} diff --git a/sdk/constructive-cli/src/storage/cli/index.ts b/sdk/constructive-cli/src/storage/cli/index.ts new file mode 100644 index 0000000000..9ca839a9ee --- /dev/null +++ b/sdk/constructive-cli/src/storage/cli/index.ts @@ -0,0 +1,29 @@ +/** + * CLI entry point + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { CLI, CLIOptions, getPackageJson } from 'inquirerer'; +import { commands } from './commands'; + +if (process.argv.includes('--version') || process.argv.includes('-v')) { + const pkg = getPackageJson(__dirname); + console.log(pkg.version); + process.exit(0); +} + +// Check for --tty false or --no-tty to enable non-interactive mode (noTty) +const ttyIdx = process.argv.indexOf('--tty'); +const noTty = + (ttyIdx !== -1 && process.argv[ttyIdx + 1] === 'false') || process.argv.includes('--no-tty'); + +const options: Partial = { + noTty, + minimistOpts: { alias: { v: 'version', h: 'help' } }, +}; + +const app = new CLI(commands, options); +app.run().catch((e) => { + console.error('Unexpected error:', e); + process.exit(1); +}); diff --git a/sdk/constructive-cli/src/storage/cli/utils.ts b/sdk/constructive-cli/src/storage/cli/utils.ts new file mode 100644 index 0000000000..78a7defb6f --- /dev/null +++ b/sdk/constructive-cli/src/storage/cli/utils.ts @@ -0,0 +1,314 @@ +/** + * CLI utility functions for type coercion and input handling + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import objectPath from 'nested-obj'; + +export type FieldType = 'string' | 'boolean' | 'int' | 'float' | 'json' | 'uuid' | 'enum'; + +export interface FieldSchema { + [fieldName: string]: FieldType; +} + +/** + * Coerce CLI string arguments to their proper GraphQL types based on a field schema. + * CLI args always arrive as strings from minimist, but GraphQL expects + * Boolean, Int, Float, JSON, etc. + */ +export function coerceAnswers( + answers: Record, + schema: FieldSchema +): Record { + const result: Record = { ...answers }; + + for (const [key, value] of Object.entries(result)) { + const fieldType = schema[key]; + if (!fieldType || value === undefined || value === null) continue; + + const strValue = String(value); + + // Empty strings become undefined for non-string types + if (strValue === '' && fieldType !== 'string') { + result[key] = undefined; + continue; + } + + switch (fieldType) { + case 'boolean': + if (typeof value === 'boolean') break; + result[key] = strValue === 'true' || strValue === '1' || strValue === 'yes'; + break; + case 'int': + if (typeof value === 'number') break; + { + const parsed = parseInt(strValue, 10); + result[key] = isNaN(parsed) ? undefined : parsed; + } + break; + case 'float': + if (typeof value === 'number') break; + { + const parsed = parseFloat(strValue); + result[key] = isNaN(parsed) ? undefined : parsed; + } + break; + case 'json': + if (typeof value === 'object') break; + if (strValue === '') { + result[key] = undefined; + } else { + try { + result[key] = JSON.parse(strValue); + } catch { + result[key] = undefined; + } + } + break; + case 'uuid': + // Empty UUIDs become undefined + if (strValue === '') { + result[key] = undefined; + } + break; + case 'enum': + // Enums stay as strings but empty ones become undefined + if (strValue === '') { + result[key] = undefined; + } + break; + default: + // String type: empty strings also become undefined to avoid + // sending empty strings for optional fields + if (strValue === '') { + result[key] = undefined; + } + break; + } + } + + return result; +} + +/** + * Strip undefined values and filter to only schema-defined keys. + * This removes extra fields injected by minimist (like _, tty, etc.) + * and any fields that were coerced to undefined. + */ +export function stripUndefined( + obj: Record, + schema?: FieldSchema +): Record { + const result: Record = {}; + const allowedKeys = schema ? new Set(Object.keys(schema)) : null; + + for (const [key, value] of Object.entries(obj)) { + if (value === undefined) continue; + if (allowedKeys && !allowedKeys.has(key)) continue; + result[key] = value; + } + + return result; +} + +/** + * Parse mutation input from CLI. + * Custom mutation commands receive an `input` field as a JSON string + * from the CLI prompt. This parses it into a proper object. + */ +export function parseMutationInput(answers: Record): Record { + if (typeof answers.input === 'string') { + try { + const parsed = JSON.parse(answers.input); + return { ...answers, input: parsed }; + } catch { + return answers; + } + } + return answers; +} + +/** + * Reconstruct nested objects from dot-notation CLI answers. + * When INPUT_OBJECT args are flattened to dot-notation questions + * (e.g. `--input.email foo --input.password bar`), this function + * rebuilds the nested structure expected by the ORM: + * + * { 'input.email': 'foo', 'input.password': 'bar' } + * → { input: { email: 'foo', password: 'bar' } } + * + * Non-dotted keys are passed through unchanged. + * Uses `nested-obj` for safe nested property setting. + */ +export function unflattenDotNotation(answers: Record): Record { + const result: Record = {}; + + for (const [key, value] of Object.entries(answers)) { + if (key.includes('.')) { + objectPath.set(result, key, value); + } else { + result[key] = value; + } + } + + return result; +} + +/** + * Build a select object from a comma-separated list of dot-notation paths. + * Uses `nested-obj` to parse paths like 'clientMutationId,result.accessToken,result.userId' + * into the nested structure expected by the ORM: + * + * { clientMutationId: true, result: { select: { accessToken: true, userId: true } } } + * + * Paths without dots set the key to `true` (scalar select). + * Paths with dots create nested `{ select: { ... } }` wrappers, matching the + * ORM's expected structure for OBJECT sub-fields (e.g. `SignUpPayloadSelect.result`). + * + * @param paths - Comma-separated dot-notation field paths (e.g. 'clientMutationId,result.accessToken') + * @returns The nested select object for the ORM + */ +/** + * Parse a CLI flag as an integer. + * Handles minimist delivering numbers or strings depending on the input. + * Returns undefined when the flag is missing or not a valid number. + */ +export function parseIntFlag(argv: Record, name: string): number | undefined { + const val = argv[name]; + if (typeof val === 'number') return val; + if (typeof val === 'string') { + const n = parseInt(val, 10); + return isNaN(n) ? undefined : n; + } + return undefined; +} + +/** + * Parse a CLI flag as a string. + * Returns undefined when the flag is missing or not a string. + */ +export function parseStringFlag(argv: Record, name: string): string | undefined { + const val = argv[name]; + return typeof val === 'string' ? val : undefined; +} + +/** + * Parse --orderBy flag as a comma-separated list of enum values. + * e.g. --orderBy NAME_ASC,CREATED_AT_DESC → ['NAME_ASC', 'CREATED_AT_DESC'] + */ +export function parseOrderByFlag(argv: Record): string[] | undefined { + const val = argv.orderBy; + return typeof val === 'string' ? val.split(',') : undefined; +} + +/** + * Parse --select flag into a select object, falling back to a default. + * e.g. --select id,name → { id: true, name: true } + */ +export function parseSelectFlag( + argv: Record, + defaultSelect: Record +): Record { + const raw = argv.select; + return typeof raw === 'string' ? buildSelectFromPaths(raw) : defaultSelect; +} + +/** + * Build the full findManyArgs object from CLI argv. + * Parses all pagination, filtering, ordering, and field selection flags + * in one call. Accepts an optional `extraWhere` to merge with dot-notation + * --where flags (used by the search handler to inject search clauses). + * + * @example + * const findManyArgs = parseFindManyArgs(argv, { id: true, name: true }); + * const result = await client.user.findMany(findManyArgs).execute(); + */ +export function parseFindManyArgs>( + argv: Record, + defaultSelect: Record, + extraWhere?: Record +): T { + const limit = parseIntFlag(argv, 'limit'); + const last = parseIntFlag(argv, 'last'); + const offset = parseIntFlag(argv, 'offset'); + const after = parseStringFlag(argv, 'after'); + const before = parseStringFlag(argv, 'before'); + const select = parseSelectFlag(argv, defaultSelect); + const parsed = unflattenDotNotation(argv); + const where = + (parsed.where ?? extraWhere) + ? { ...(extraWhere ?? {}), ...((parsed.where as Record) ?? {}) } + : undefined; + const orderBy = parseOrderByFlag(argv); + + return { + select, + ...(limit !== undefined ? { first: limit } : {}), + ...(after !== undefined ? { after } : {}), + ...(last !== undefined ? { last } : {}), + ...(before !== undefined ? { before } : {}), + ...(offset !== undefined ? { offset } : {}), + ...(where !== undefined ? { where } : {}), + ...(orderBy !== undefined ? { orderBy } : {}), + } as unknown as T; +} + +/** + * Build findFirst args from CLI argv. + * Like parseFindManyArgs but without pagination flags (no limit/offset/after/before/last) + * — findFirst returns the first matching record. Supports select, where, and orderBy. + */ +export function parseFindFirstArgs>( + argv: Record, + defaultSelect: Record +): T { + const select = parseSelectFlag(argv, defaultSelect); + const parsed = unflattenDotNotation(argv); + const where = parsed.where; + const orderBy = parseOrderByFlag(argv); + + return { + select, + ...(where !== undefined ? { where } : {}), + ...(orderBy !== undefined ? { orderBy } : {}), + } as unknown as T; +} + +export function buildSelectFromPaths(paths: string): Record { + const result: Record = {}; + const trimmedPaths = paths + .split(',') + .map((p) => p.trim()) + .filter((p) => p.length > 0); + + for (const path of trimmedPaths) { + if (!path.includes('.')) { + // Simple scalar field: clientMutationId -> { clientMutationId: true } + result[path] = true; + } else { + // Nested path: result.accessToken -> { result: { select: { accessToken: true } } } + // Convert dot-notation to ORM's { select: { ... } } nesting pattern + const parts = path.split('.'); + let current = result; + for (let i = 0; i < parts.length; i++) { + const part = parts[i]; + if (i === parts.length - 1) { + // Leaf node: set to true + objectPath.set(current, part, true); + } else { + // Intermediate node: ensure { select: { ... } } wrapper exists + if (!current[part] || typeof current[part] !== 'object') { + current[part] = { select: {} }; + } + const wrapper = current[part] as Record; + if (!wrapper.select || typeof wrapper.select !== 'object') { + wrapper.select = {}; + } + current = wrapper.select as Record; + } + } + } + } + + return result; +} diff --git a/sdk/constructive-cli/src/storage/index.ts b/sdk/constructive-cli/src/storage/index.ts new file mode 100644 index 0000000000..df67cba476 --- /dev/null +++ b/sdk/constructive-cli/src/storage/index.ts @@ -0,0 +1,6 @@ +/** + * GraphQL SDK - auto-generated, do not edit + * @generated by @constructive-io/graphql-codegen + */ +export * from './orm'; +export * from './cli'; diff --git a/sdk/constructive-cli/src/storage/orm/README.md b/sdk/constructive-cli/src/storage/orm/README.md new file mode 100644 index 0000000000..a72925c67d --- /dev/null +++ b/sdk/constructive-cli/src/storage/orm/README.md @@ -0,0 +1,324 @@ +# ORM Client + +

+ +

+ + + +## Setup + +```typescript +import { createClient } from './orm'; + +const db = createClient({ + endpoint: 'https://api.example.com/graphql', + headers: { Authorization: 'Bearer ' }, +}); +``` + +## Models + +| Model | Operations | +|-------|------------| +| `bucket` | findMany, findOne, create, update, delete | +| `file` | findMany, findOne, create, update, delete | +| `platformBucket` | findMany, findOne, create, update, delete | +| `platformFile` | findMany, findOne, create, update, delete | + +## Table Operations + +### `db.bucket` + +CRUD operations for Bucket records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `actorId` | UUID | Yes | +| `allowCustomKeys` | Boolean | Yes | +| `allowedMimeTypes` | String | Yes | +| `allowedOrigins` | String | Yes | +| `createdAt` | Datetime | No | +| `databaseId` | UUID | Yes | +| `description` | String | Yes | +| `destinationBucketId` | UUID | Yes | +| `id` | UUID | No | +| `isPublic` | Boolean | Yes | +| `key` | String | Yes | +| `maxFileSize` | BigInt | Yes | +| `physicalName` | String | Yes | +| `stagingTtl` | Interval | Yes | +| `tags` | String | Yes | +| `type` | BucketType | Yes | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all bucket records +const items = await db.bucket.findMany({ select: { actorId: true, allowCustomKeys: true, allowedMimeTypes: true, allowedOrigins: true, createdAt: true, databaseId: true, description: true, destinationBucketId: true, id: true, isPublic: true, key: true, maxFileSize: true, physicalName: true, stagingTtl: true, tags: true, type: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.bucket.findOne({ id: '', select: { actorId: true, allowCustomKeys: true, allowedMimeTypes: true, allowedOrigins: true, createdAt: true, databaseId: true, description: true, destinationBucketId: true, id: true, isPublic: true, key: true, maxFileSize: true, physicalName: true, stagingTtl: true, tags: true, type: true, updatedAt: true } }).execute(); + +// Create +const created = await db.bucket.create({ data: { actorId: '', allowCustomKeys: '', allowedMimeTypes: '', allowedOrigins: '', databaseId: '', description: '', destinationBucketId: '', isPublic: '', key: '', maxFileSize: '', physicalName: '', stagingTtl: '', tags: '', type: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.bucket.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.bucket.delete({ where: { id: '' } }).execute(); +``` + +### `db.file` + +CRUD operations for File records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `actorId` | UUID | Yes | +| `bucketId` | UUID | Yes | +| `contentHash` | String | Yes | +| `createdAt` | Datetime | No | +| `databaseId` | UUID | Yes | +| `description` | String | Yes | +| `downloadUrl` | String | Yes | +| `expiryEnqueuedAt` | Datetime | Yes | +| `filePath` | String | Yes | +| `filename` | String | Yes | +| `id` | UUID | No | +| `isPublic` | Boolean | Yes | +| `key` | String | Yes | +| `mimeType` | String | Yes | +| `promotedAt` | Datetime | Yes | +| `size` | BigInt | Yes | +| `status` | FileStatus | Yes | +| `tags` | String | Yes | +| `updatedAt` | Datetime | No | +| `upload` | ConstructiveInternalTypeUpload | Yes | + +**Operations:** + +```typescript +// List all file records +const items = await db.file.findMany({ select: { actorId: true, bucketId: true, contentHash: true, createdAt: true, databaseId: true, description: true, downloadUrl: true, expiryEnqueuedAt: true, filePath: true, filename: true, id: true, isPublic: true, key: true, mimeType: true, promotedAt: true, size: true, status: true, tags: true, updatedAt: true, upload: true } }).execute(); + +// Get one by id +const item = await db.file.findOne({ id: '', select: { actorId: true, bucketId: true, contentHash: true, createdAt: true, databaseId: true, description: true, downloadUrl: true, expiryEnqueuedAt: true, filePath: true, filename: true, id: true, isPublic: true, key: true, mimeType: true, promotedAt: true, size: true, status: true, tags: true, updatedAt: true, upload: true } }).execute(); + +// Create +const created = await db.file.create({ data: { actorId: '', bucketId: '', contentHash: '', databaseId: '', description: '', downloadUrl: '', expiryEnqueuedAt: '', filePath: '', filename: '', isPublic: '', key: '', mimeType: '', promotedAt: '', size: '', status: '', tags: '', upload: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.file.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.file.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformBucket` + +CRUD operations for PlatformBucket records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `actorId` | UUID | Yes | +| `allowCustomKeys` | Boolean | Yes | +| `allowedMimeTypes` | String | Yes | +| `allowedOrigins` | String | Yes | +| `createdAt` | Datetime | No | +| `description` | String | Yes | +| `destinationBucketId` | UUID | Yes | +| `id` | UUID | No | +| `isPublic` | Boolean | Yes | +| `key` | String | Yes | +| `maxFileSize` | BigInt | Yes | +| `physicalName` | String | Yes | +| `stagingTtl` | Interval | Yes | +| `tags` | String | Yes | +| `type` | BucketType | Yes | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all platformBucket records +const items = await db.platformBucket.findMany({ select: { actorId: true, allowCustomKeys: true, allowedMimeTypes: true, allowedOrigins: true, createdAt: true, description: true, destinationBucketId: true, id: true, isPublic: true, key: true, maxFileSize: true, physicalName: true, stagingTtl: true, tags: true, type: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.platformBucket.findOne({ id: '', select: { actorId: true, allowCustomKeys: true, allowedMimeTypes: true, allowedOrigins: true, createdAt: true, description: true, destinationBucketId: true, id: true, isPublic: true, key: true, maxFileSize: true, physicalName: true, stagingTtl: true, tags: true, type: true, updatedAt: true } }).execute(); + +// Create +const created = await db.platformBucket.create({ data: { actorId: '', allowCustomKeys: '', allowedMimeTypes: '', allowedOrigins: '', description: '', destinationBucketId: '', isPublic: '', key: '', maxFileSize: '', physicalName: '', stagingTtl: '', tags: '', type: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformBucket.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformBucket.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformFile` + +CRUD operations for PlatformFile records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `actorId` | UUID | Yes | +| `bucketId` | UUID | Yes | +| `contentHash` | String | Yes | +| `createdAt` | Datetime | No | +| `description` | String | Yes | +| `downloadUrl` | String | Yes | +| `expiryEnqueuedAt` | Datetime | Yes | +| `filePath` | String | Yes | +| `filename` | String | Yes | +| `id` | UUID | No | +| `isPublic` | Boolean | Yes | +| `key` | String | Yes | +| `mimeType` | String | Yes | +| `promotedAt` | Datetime | Yes | +| `size` | BigInt | Yes | +| `status` | FileStatus | Yes | +| `tags` | String | Yes | +| `updatedAt` | Datetime | No | +| `upload` | ConstructiveInternalTypeUpload | Yes | + +**Operations:** + +```typescript +// List all platformFile records +const items = await db.platformFile.findMany({ select: { actorId: true, bucketId: true, contentHash: true, createdAt: true, description: true, downloadUrl: true, expiryEnqueuedAt: true, filePath: true, filename: true, id: true, isPublic: true, key: true, mimeType: true, promotedAt: true, size: true, status: true, tags: true, updatedAt: true, upload: true } }).execute(); + +// Get one by id +const item = await db.platformFile.findOne({ id: '', select: { actorId: true, bucketId: true, contentHash: true, createdAt: true, description: true, downloadUrl: true, expiryEnqueuedAt: true, filePath: true, filename: true, id: true, isPublic: true, key: true, mimeType: true, promotedAt: true, size: true, status: true, tags: true, updatedAt: true, upload: true } }).execute(); + +// Create +const created = await db.platformFile.create({ data: { actorId: '', bucketId: '', contentHash: '', description: '', downloadUrl: '', expiryEnqueuedAt: '', filePath: '', filename: '', isPublic: '', key: '', mimeType: '', promotedAt: '', size: '', status: '', tags: '', upload: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformFile.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformFile.delete({ where: { id: '' } }).execute(); +``` + +## Custom Operations + +### `db.mutation.filesRename` + +filesRename + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | FilesRenameInput (required) | + +```typescript +const result = await db.mutation.filesRename({ input: { fileId: '', newFilename: '' } }).execute(); +``` + +### `db.mutation.platformFilesRename` + +platformFilesRename + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | PlatformFilesRenameInput (required) | + +```typescript +const result = await db.mutation.platformFilesRename({ input: { fileId: '', newFilename: '' } }).execute(); +``` + +### `db.mutation.provisionBucket` + +Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | ProvisionBucketInput (required) | + +```typescript +const result = await db.mutation.provisionBucket({ input: { bucketKey: '', ownerId: '' } }).execute(); +``` + +### `db.mutation.uploadFile` + +Upload a file: resolves the bucket by key, creates the file row, and returns a presigned PUT URL. + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | UploadFileInput (required) | + +```typescript +const result = await db.mutation.uploadFile({ input: '' }).execute(); +``` + +### `db.mutation.uploadFiles` + +Upload multiple files: resolves the bucket by key, creates file rows, and returns presigned PUT URLs for each. + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | UploadFileBulkInput (required) | + +```typescript +const result = await db.mutation.uploadFiles({ input: { bucketKey: '', files: '', isPublic: '' } }).execute(); +``` + +### `db.mutation.uploadPlatformFile` + +Upload a file: resolves the bucket by key, creates the file row, and returns a presigned PUT URL. + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | UploadPlatformFileInput (required) | + +```typescript +const result = await db.mutation.uploadPlatformFile({ input: '' }).execute(); +``` + +### `db.mutation.uploadPlatformFiles` + +Upload multiple files: resolves the bucket by key, creates file rows, and returns presigned PUT URLs for each. + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | UploadPlatformFileBulkInput (required) | + +```typescript +const result = await db.mutation.uploadPlatformFiles({ input: { bucketKey: '', files: '', isPublic: '' } }).execute(); +``` diff --git a/sdk/constructive-cli/src/storage/orm/client.ts b/sdk/constructive-cli/src/storage/orm/client.ts new file mode 100644 index 0000000000..8141c1e52b --- /dev/null +++ b/sdk/constructive-cli/src/storage/orm/client.ts @@ -0,0 +1,254 @@ +/** + * ORM Client - Runtime GraphQL executor + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import type { + GraphQLAdapter, + GraphQLError, + QueryResult, +} from '@constructive-io/graphql-query/runtime'; +import { createFetch } from '@constructive-io/graphql-query/runtime'; + +import type { + ConnectionState, + ConnectionStateListener, + RealtimeConfig, + SubscribeOptions, + SubscriptionEvent, + SubscriptionFieldMeta, + Unsubscribe, +} from './realtime'; +import { RealtimeManager } from './realtime'; + +export type { + GraphQLAdapter, + GraphQLError, + QueryResult, +} from '@constructive-io/graphql-query/runtime'; + +export type { + ConnectionState, + ConnectionStateListener, + RealtimeConfig, + SubscribeOptions, + SubscriptionEvent, + SubscriptionFieldMeta, + SubscriptionOperation, + Unsubscribe, + WsClient, +} from './realtime'; +export { RealtimeManager } from './realtime'; + +/** + * Default adapter that uses fetch for HTTP requests. + * + * When no custom fetch is provided, uses @constructive-io/fetch which + * handles *.localhost DNS rewriting and Host header preservation in + * Node.js. Pass a custom fetch to override for test mocking or custom + * proxy/credentials. + */ +export class FetchAdapter implements GraphQLAdapter { + private headers: Record; + private fetchFn: typeof globalThis.fetch; + + constructor( + private endpoint: string, + headers?: Record, + fetchFn?: typeof globalThis.fetch + ) { + this.headers = headers ?? {}; + this.fetchFn = (fetchFn ?? createFetch()).bind(globalThis); + } + + async execute(document: string, variables?: Record): Promise> { + const response = await this.fetchFn(this.endpoint, { + method: 'POST', + headers: { + 'Content-Type': 'application/json', + Accept: 'application/json', + ...this.headers, + }, + body: JSON.stringify({ + query: document, + variables: variables ?? {}, + }), + }); + + if (!response.ok) { + return { + ok: false, + data: null, + errors: [{ message: `HTTP ${response.status}: ${response.statusText}` }], + }; + } + + const json = (await response.json()) as { + data?: T; + errors?: GraphQLError[]; + }; + + if (json.errors && json.errors.length > 0) { + return { + ok: false, + data: null, + errors: json.errors, + }; + } + + return { + ok: true, + data: json.data as T, + errors: undefined, + }; + } + + setHeaders(headers: Record): void { + this.headers = { ...this.headers, ...headers }; + } + + getEndpoint(): string { + return this.endpoint; + } +} + +/** + * Configuration for creating an ORM client. + * Either provide endpoint (and optional headers/fetch) for HTTP requests, + * or provide a custom adapter for alternative execution strategies. + */ +export interface OrmClientConfig { + /** GraphQL endpoint URL (required if adapter not provided) */ + endpoint?: string; + /** Default headers for HTTP requests (only used with endpoint) */ + headers?: Record; + /** + * Custom fetch implementation. Defaults to createFetch() from + * @constructive-io/graphql-query/runtime which handles *.localhost + * DNS and Host headers in Node.js. Pass your own for test mocking + * or custom proxy/credentials. + */ + fetch?: typeof globalThis.fetch; + /** Custom adapter for GraphQL execution (overrides endpoint/headers/fetch) */ + adapter?: GraphQLAdapter; + /** + * Optional realtime (WebSocket) configuration. + * When provided, enables subscription methods on models. + * The WebSocket connection is created lazily on first subscribe(). + */ + realtime?: RealtimeConfig; +} + +/** + * Describe a single GraphQL error, falling back to its `extensions.code` when + * the server omits `message` so the error never renders as an empty string. + */ +function describeGraphQLError(error: GraphQLError): string { + if (error.message) return error.message; + const code = error.extensions?.code; + return typeof code === 'string' ? code : 'Unknown error'; +} + +/** + * Error thrown when GraphQL request fails + */ +export class GraphQLRequestError extends Error { + constructor( + public readonly errors: GraphQLError[], + public readonly data: unknown = null + ) { + const messages = errors.map(describeGraphQLError).join('; '); + super(`GraphQL Error: ${messages}`); + this.name = 'GraphQLRequestError'; + } +} + +export class OrmClient { + private adapter: GraphQLAdapter; + private realtimeManager?: RealtimeManager; + + constructor(config: OrmClientConfig) { + if (config.adapter) { + this.adapter = config.adapter; + } else if (config.endpoint) { + this.adapter = new FetchAdapter(config.endpoint, config.headers, config.fetch); + } else { + throw new Error('OrmClientConfig requires either an endpoint or a custom adapter'); + } + + if (config.realtime) { + this.realtimeManager = new RealtimeManager(config.realtime); + } + } + + async execute(document: string, variables?: Record): Promise> { + return this.adapter.execute(document, variables); + } + + /** + * Subscribe to a GraphQL subscription operation. + * Used by generated model subscribe() methods. + * @throws Error if realtime is not configured + */ + subscribe( + meta: SubscriptionFieldMeta, + document: string, + variables: Record, + options: { + onEvent: (event: SubscriptionEvent) => void; + onError?: (error: Error) => void; + onComplete?: () => void; + } + ): Unsubscribe { + if (!this.realtimeManager) { + throw new Error( + 'Realtime not configured. Pass a `realtime` option to createClient() to enable subscriptions.' + ); + } + return this.realtimeManager.subscribe(meta, document, variables, options); + } + + /** + * Set headers for requests. + * Only works if the adapter supports headers. + */ + setHeaders(headers: Record): void { + if (this.adapter.setHeaders) { + this.adapter.setHeaders(headers); + } + } + + /** + * Get the endpoint URL. + * Returns empty string if the adapter doesn't have an endpoint. + */ + getEndpoint(): string { + return this.adapter.getEndpoint?.() ?? ''; + } + + /** Get current WebSocket connection state */ + getConnectionState(): ConnectionState { + return this.realtimeManager?.getConnectionState() ?? 'disconnected'; + } + + /** Register a listener for WebSocket connection state changes */ + onConnectionStateChange(listener: ConnectionStateListener): Unsubscribe { + if (!this.realtimeManager) return () => {}; + return this.realtimeManager.onConnectionStateChange(listener); + } + + /** Number of active subscriptions */ + getActiveSubscriptionCount(): number { + return this.realtimeManager?.getActiveSubscriptionCount() ?? 0; + } + + /** Whether realtime is configured */ + get isRealtimeEnabled(): boolean { + return this.realtimeManager !== undefined; + } + + /** Dispose the realtime manager (close WebSocket) */ + dispose(): void { + this.realtimeManager?.dispose(); + } +} diff --git a/sdk/constructive-cli/src/storage/orm/index.ts b/sdk/constructive-cli/src/storage/orm/index.ts new file mode 100644 index 0000000000..b5d692cd47 --- /dev/null +++ b/sdk/constructive-cli/src/storage/orm/index.ts @@ -0,0 +1,51 @@ +/** + * ORM Client - createClient factory + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from './client'; +import type { OrmClientConfig } from './client'; +import { BucketModel } from './models/bucket'; +import { FileModel } from './models/file'; +import { PlatformBucketModel } from './models/platformBucket'; +import { PlatformFileModel } from './models/platformFile'; +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 { createMutationOperations } from './mutation'; +/** + * Create an ORM client instance + * + * @example + * ```typescript + * const db = createClient({ + * endpoint: 'https://api.example.com/graphql', + * headers: { Authorization: 'Bearer token' }, + * }); + * + * // Query users + * const users = await db.user.findMany({ + * select: { id: true, name: true }, + * first: 10, + * }).execute(); + * + * // Create a user + * const newUser = await db.user.create({ + * data: { name: 'John', email: 'john@example.com' }, + * select: { id: true }, + * }).execute(); + * ``` + */ +export function createClient(config: OrmClientConfig) { + const client = new OrmClient(config); + return { + bucket: new BucketModel(client), + file: new FileModel(client), + platformBucket: new PlatformBucketModel(client), + platformFile: new PlatformFileModel(client), + mutation: createMutationOperations(client), + }; +} diff --git a/sdk/constructive-cli/src/storage/orm/input-types.ts b/sdk/constructive-cli/src/storage/orm/input-types.ts new file mode 100644 index 0000000000..ebe7107905 --- /dev/null +++ b/sdk/constructive-cli/src/storage/orm/input-types.ts @@ -0,0 +1,2256 @@ +/** + * GraphQL types for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +// ============ Scalar Filter Types ============ +export interface StringFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; + includes?: string; + notIncludes?: string; + includesInsensitive?: string; + notIncludesInsensitive?: string; + startsWith?: string; + notStartsWith?: string; + startsWithInsensitive?: string; + notStartsWithInsensitive?: string; + endsWith?: string; + notEndsWith?: string; + endsWithInsensitive?: string; + notEndsWithInsensitive?: string; + like?: string; + notLike?: string; + likeInsensitive?: string; + notLikeInsensitive?: string; +} +export interface IntFilter { + isNull?: boolean; + equalTo?: number; + notEqualTo?: number; + distinctFrom?: number; + notDistinctFrom?: number; + in?: number[]; + notIn?: number[]; + lessThan?: number; + lessThanOrEqualTo?: number; + greaterThan?: number; + greaterThanOrEqualTo?: number; +} +export interface FloatFilter { + isNull?: boolean; + equalTo?: number; + notEqualTo?: number; + distinctFrom?: number; + notDistinctFrom?: number; + in?: number[]; + notIn?: number[]; + lessThan?: number; + lessThanOrEqualTo?: number; + greaterThan?: number; + greaterThanOrEqualTo?: number; +} +export interface BooleanFilter { + isNull?: boolean; + equalTo?: boolean; + notEqualTo?: boolean; +} +export interface UUIDFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; +} +export interface DatetimeFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; +} +export interface DateFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; +} +export interface JSONFilter { + isNull?: boolean; + equalTo?: Record; + notEqualTo?: Record; + distinctFrom?: Record; + notDistinctFrom?: Record; + contains?: Record; + containedBy?: Record; + containsKey?: string; + containsAllKeys?: string[]; + containsAnyKeys?: string[]; +} +export interface BigIntFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; +} +export interface BigFloatFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; +} +export interface BitStringFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; +} +export interface InternetAddressFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; + contains?: string; + containsOrEqualTo?: string; + containedBy?: string; + containedByOrEqualTo?: string; + containsOrContainedBy?: string; +} +export interface FullTextFilter { + matches?: string; +} +export interface VectorFilter { + isNull?: boolean; + equalTo?: number[]; + notEqualTo?: number[]; + distinctFrom?: number[]; + notDistinctFrom?: number[]; +} +export interface StringListFilter { + isNull?: boolean; + equalTo?: string[]; + notEqualTo?: string[]; + distinctFrom?: string[]; + notDistinctFrom?: string[]; + lessThan?: string[]; + lessThanOrEqualTo?: string[]; + greaterThan?: string[]; + greaterThanOrEqualTo?: string[]; + contains?: string[]; + containedBy?: string[]; + overlaps?: string[]; + anyEqualTo?: string; + anyNotEqualTo?: string; + anyLessThan?: string; + anyLessThanOrEqualTo?: string; + anyGreaterThan?: string; + anyGreaterThanOrEqualTo?: string; +} +export interface IntListFilter { + isNull?: boolean; + equalTo?: number[]; + notEqualTo?: number[]; + distinctFrom?: number[]; + notDistinctFrom?: number[]; + lessThan?: number[]; + lessThanOrEqualTo?: number[]; + greaterThan?: number[]; + greaterThanOrEqualTo?: number[]; + contains?: number[]; + containedBy?: number[]; + overlaps?: number[]; + anyEqualTo?: number; + anyNotEqualTo?: number; + anyLessThan?: number; + anyLessThanOrEqualTo?: number; + anyGreaterThan?: number; + anyGreaterThanOrEqualTo?: number; +} +export interface UUIDListFilter { + isNull?: boolean; + equalTo?: string[]; + notEqualTo?: string[]; + distinctFrom?: string[]; + notDistinctFrom?: string[]; + lessThan?: string[]; + lessThanOrEqualTo?: string[]; + greaterThan?: string[]; + greaterThanOrEqualTo?: string[]; + contains?: string[]; + containedBy?: string[]; + overlaps?: string[]; + anyEqualTo?: string; + anyNotEqualTo?: string; + anyLessThan?: string; + anyLessThanOrEqualTo?: string; + anyGreaterThan?: string; + anyGreaterThanOrEqualTo?: string; +} +// ============ Enum Types ============ +export type BucketType = 'PRIVATE' | 'PUBLIC' | 'TEMP'; +export type FileStatus = 'EXPIRED' | 'PROCESSED' | 'REJECTED' | 'REQUESTED' | 'UPLOADED'; +// ============ Custom Scalar Types ============ +export type ConstructiveInternalTypeUpload = unknown; +/** Logical storage containers that group files with shared access policies and CDN behavior */ +// ============ Entity Types ============ +export interface Bucket { + /** User who created this bucket. Forced to current_user_id() on INSERT. */ + actorId?: string | null; + /** When true, clients can provide custom S3 keys (e.g. reports/2024/Q1.pdf). When false (default), S3 key = content hash (automatic dedup). contentHash always required for integrity. */ + allowCustomKeys?: boolean | null; + /** Whitelist of allowed MIME types for files in this bucket (NULL = all allowed, enforcement deferred) */ + allowedMimeTypes?: string[] | null; + /** Per-bucket CORS allowed origins override (NULL = inherit from storage_module/plugin defaults). Use ARRAY['*'] for open/CDN mode. */ + allowedOrigins?: string[] | null; + createdAt?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; + /** Human-readable description of the bucket purpose */ + description?: string | null; + /** For a temp bucket, the permanent bucket its uploads are promoted into. NULL on non-temp buckets; required on temp buckets. */ + destinationBucketId?: string | null; + id: string; + /** Whether bucket contents are publicly readable. Set to true when type is public. */ + isPublic?: boolean | null; + /** Unique bucket identifier used in S3 key paths (e.g. avatars, documents, temp) */ + key?: string | null; + /** Maximum file size in bytes allowed in this bucket (NULL = no limit, enforcement deferred) */ + maxFileSize?: string | null; + /** Physical S3/MinIO bucket name recorded at provision time (NULL until the physical bucket exists) */ + physicalName?: string | null; + /** For a temp bucket, how long an unpromoted staged file survives before it is eligible for expiry. NULL on non-temp buckets; required on temp buckets. */ + stagingTtl?: string | null; + /** Selector labels for capability resolution and grouping (e.g. uploads, variants, exports). A function's required bucket key is matched against these plus type. */ + tags?: string[] | null; + /** Bucket CDN access type: public (CDN-served), private (presigned GET), temp (staging uploads) */ + type?: BucketType | null; + updatedAt?: string | null; +} +/** Individual file records within buckets, with immutable identity fields and mutable metadata */ +export interface File { + /** User who uploaded this file. Forced to current_user_id() on INSERT. Used for UPDATE/DELETE authorization. */ + actorId?: string | null; + /** Bucket this file belongs to. Determines owner_id and is_public via inheritance trigger. */ + bucketId?: string | null; + /** SHA-256 content hash for integrity verification and dedup. In default mode, equals the S3 key. In custom key mode, stored separately. */ + contentHash?: string | null; + createdAt?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; + /** Human-readable description or alt text for the file (mutable) */ + description?: string | null; + /** URL to download this file. For public files, returns the public URL. For private files, returns a time-limited presigned URL. */ + downloadUrl?: string | null; + /** When the staged-expiry sweep enqueued deletion of this file's object. NULL until it expires; set once so expiry is enqueued exactly once. */ + expiryEnqueuedAt?: string | null; + filePath?: string | null; + /** Original filename provided by the uploader. Used for display and Content-Disposition header on download. */ + filename?: string | null; + id: string; + /** Whether this file is publicly readable. Inherited from bucket on INSERT. */ + isPublic?: boolean | null; + /** S3 object key for this file, unique within its bucket */ + key?: string | null; + /** MIME type of the file (e.g. image/png, application/pdf). Immutable after INSERT. */ + mimeType?: string | null; + /** When this file was promoted out of its staging bucket into its destination bucket. NULL for a file that was never staged, or is still staged. */ + promotedAt?: string | null; + /** File size in bytes. Immutable after INSERT. */ + size?: string | null; + /** File lifecycle status: requested (presigned URL generated, not yet in S3), uploaded (file in S3 and content validated, ready for use), processed (image resized, text extracted, embedding computed), rejected (declared type disagreed with the bytes), expired (bytes never arrived before the confirm window closed). */ + status?: FileStatus | null; + /** User-defined tags for categorization and search (mutable) */ + tags?: string[] | null; + updatedAt?: string | null; + /** Processed file reference (upload domain). Populated by processing jobs after file is uploaded. Copy this value to other tables to reference the file. */ + upload?: ConstructiveInternalTypeUpload | null; +} +/** Logical storage containers that group files with shared access policies and CDN behavior */ +export interface PlatformBucket { + /** User who created this bucket. Forced to current_user_id() on INSERT. */ + actorId?: string | null; + /** When true, clients can provide custom S3 keys (e.g. reports/2024/Q1.pdf). When false (default), S3 key = content hash (automatic dedup). contentHash always required for integrity. */ + allowCustomKeys?: boolean | null; + /** Whitelist of allowed MIME types for files in this bucket (NULL = all allowed, enforcement deferred) */ + allowedMimeTypes?: string[] | null; + /** Per-bucket CORS allowed origins override (NULL = inherit from storage_module/plugin defaults). Use ARRAY['*'] for open/CDN mode. */ + allowedOrigins?: string[] | null; + createdAt?: string | null; + /** Human-readable description of the bucket purpose */ + description?: string | null; + /** For a temp bucket, the permanent bucket its uploads are promoted into. NULL on non-temp buckets; required on temp buckets. */ + destinationBucketId?: string | null; + id: string; + /** Whether bucket contents are publicly readable. Set to true when type is public. */ + isPublic?: boolean | null; + /** Unique bucket identifier used in S3 key paths (e.g. avatars, documents, temp) */ + key?: string | null; + /** Maximum file size in bytes allowed in this bucket (NULL = no limit, enforcement deferred) */ + maxFileSize?: string | null; + /** Physical S3/MinIO bucket name recorded at provision time (NULL until the physical bucket exists) */ + physicalName?: string | null; + /** For a temp bucket, how long an unpromoted staged file survives before it is eligible for expiry. NULL on non-temp buckets; required on temp buckets. */ + stagingTtl?: string | null; + /** Selector labels for capability resolution and grouping (e.g. uploads, variants, exports). A function's required bucket key is matched against these plus type. */ + tags?: string[] | null; + /** Bucket CDN access type: public (CDN-served), private (presigned GET), temp (staging uploads) */ + type?: BucketType | null; + updatedAt?: string | null; +} +/** Individual file records within buckets, with immutable identity fields and mutable metadata */ +export interface PlatformFile { + /** User who uploaded this file. Forced to current_user_id() on INSERT. Used for UPDATE/DELETE authorization. */ + actorId?: string | null; + /** Bucket this file belongs to. Determines owner_id and is_public via inheritance trigger. */ + bucketId?: string | null; + /** SHA-256 content hash for integrity verification and dedup. In default mode, equals the S3 key. In custom key mode, stored separately. */ + contentHash?: string | null; + createdAt?: string | null; + /** Human-readable description or alt text for the file (mutable) */ + description?: string | null; + /** URL to download this file. For public files, returns the public URL. For private files, returns a time-limited presigned URL. */ + downloadUrl?: string | null; + /** When the staged-expiry sweep enqueued deletion of this file's object. NULL until it expires; set once so expiry is enqueued exactly once. */ + expiryEnqueuedAt?: string | null; + filePath?: string | null; + /** Original filename provided by the uploader. Used for display and Content-Disposition header on download. */ + filename?: string | null; + id: string; + /** Whether this file is publicly readable. Inherited from bucket on INSERT. */ + isPublic?: boolean | null; + /** S3 object key for this file, unique within its bucket */ + key?: string | null; + /** MIME type of the file (e.g. image/png, application/pdf). Immutable after INSERT. */ + mimeType?: string | null; + /** When this file was promoted out of its staging bucket into its destination bucket. NULL for a file that was never staged, or is still staged. */ + promotedAt?: string | null; + /** File size in bytes. Immutable after INSERT. */ + size?: string | null; + /** File lifecycle status: requested (presigned URL generated, not yet in S3), uploaded (file in S3 and content validated, ready for use), processed (image resized, text extracted, embedding computed), rejected (declared type disagreed with the bytes), expired (bytes never arrived before the confirm window closed). */ + status?: FileStatus | null; + /** User-defined tags for categorization and search (mutable) */ + tags?: string[] | null; + updatedAt?: string | null; + /** Processed file reference (upload domain). Populated by processing jobs after file is uploaded. Copy this value to other tables to reference the file. */ + upload?: ConstructiveInternalTypeUpload | null; +} +// ============ Relation Helper Types ============ +export interface ConnectionResult { + nodes: T[]; + totalCount: number; + pageInfo: PageInfo; +} +export interface PageInfo { + hasNextPage: boolean; + hasPreviousPage: boolean; + startCursor?: string | null; + endCursor?: string | null; +} +// ============ Entity Relation Types ============ +export interface BucketRelations { + destinationBucket?: Bucket | null; + bucketsByDestinationBucketId?: ConnectionResult; + files?: ConnectionResult; +} +export interface FileRelations { + bucket?: Bucket | null; +} +export interface PlatformBucketRelations { + destinationBucket?: PlatformBucket | null; + platformBucketsByDestinationBucketId?: ConnectionResult; + platformFilesByBucketId?: ConnectionResult; +} +export interface PlatformFileRelations { + bucket?: PlatformBucket | null; +} +// ============ Entity Types With Relations ============ +export type BucketWithRelations = Bucket & BucketRelations; +export type FileWithRelations = File & FileRelations; +export type PlatformBucketWithRelations = PlatformBucket & PlatformBucketRelations; +export type PlatformFileWithRelations = PlatformFile & PlatformFileRelations; +// ============ Entity Select Types ============ +export type BucketSelect = { + actorId?: boolean; + allowCustomKeys?: boolean; + allowedMimeTypes?: boolean; + allowedOrigins?: boolean; + createdAt?: boolean; + databaseId?: boolean; + description?: boolean; + destinationBucketId?: boolean; + id?: boolean; + isPublic?: boolean; + key?: boolean; + maxFileSize?: boolean; + physicalName?: boolean; + stagingTtl?: boolean; + tags?: boolean; + type?: boolean; + updatedAt?: boolean; + destinationBucket?: { + select: BucketSelect; + }; + bucketsByDestinationBucketId?: { + select: BucketSelect; + first?: number; + filter?: BucketFilter; + orderBy?: BucketOrderBy[]; + }; + files?: { + select: FileSelect; + first?: number; + filter?: FileFilter; + orderBy?: FileOrderBy[]; + }; +}; +export type FileSelect = { + actorId?: boolean; + bucketId?: boolean; + contentHash?: boolean; + createdAt?: boolean; + databaseId?: boolean; + description?: boolean; + downloadUrl?: boolean; + expiryEnqueuedAt?: boolean; + filePath?: boolean; + filename?: boolean; + id?: boolean; + isPublic?: boolean; + key?: boolean; + mimeType?: boolean; + promotedAt?: boolean; + size?: boolean; + status?: boolean; + tags?: boolean; + updatedAt?: boolean; + upload?: boolean; + bucket?: { + select: BucketSelect; + }; +}; +export type PlatformBucketSelect = { + actorId?: boolean; + allowCustomKeys?: boolean; + allowedMimeTypes?: boolean; + allowedOrigins?: boolean; + createdAt?: boolean; + description?: boolean; + destinationBucketId?: boolean; + id?: boolean; + isPublic?: boolean; + key?: boolean; + maxFileSize?: boolean; + physicalName?: boolean; + stagingTtl?: boolean; + tags?: boolean; + type?: boolean; + updatedAt?: boolean; + destinationBucket?: { + select: PlatformBucketSelect; + }; + platformBucketsByDestinationBucketId?: { + select: PlatformBucketSelect; + first?: number; + filter?: PlatformBucketFilter; + orderBy?: PlatformBucketOrderBy[]; + }; + platformFilesByBucketId?: { + select: PlatformFileSelect; + first?: number; + filter?: PlatformFileFilter; + orderBy?: PlatformFileOrderBy[]; + }; +}; +export type PlatformFileSelect = { + actorId?: boolean; + bucketId?: boolean; + contentHash?: boolean; + createdAt?: boolean; + description?: boolean; + downloadUrl?: boolean; + expiryEnqueuedAt?: boolean; + filePath?: boolean; + filename?: boolean; + id?: boolean; + isPublic?: boolean; + key?: boolean; + mimeType?: boolean; + promotedAt?: boolean; + size?: boolean; + status?: boolean; + tags?: boolean; + updatedAt?: boolean; + upload?: boolean; + bucket?: { + select: PlatformBucketSelect; + }; +}; +// ============ Table Filter Types ============ +export interface BucketFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `allowCustomKeys` field. */ + allowCustomKeys?: BooleanFilter; + /** Filter by the object’s `allowedMimeTypes` field. */ + allowedMimeTypes?: StringListFilter; + /** Filter by the object’s `allowedOrigins` field. */ + allowedOrigins?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: BucketFilter[]; + /** Filter by the object’s `bucketsByDestinationBucketId` relation. */ + bucketsByDestinationBucketId?: BucketToManyBucketFilter; + /** `bucketsByDestinationBucketId` exist. */ + bucketsByDestinationBucketIdExist?: boolean; + /** 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 `destinationBucket` relation. */ + destinationBucket?: BucketFilter; + /** A related `destinationBucket` exists. */ + destinationBucketExists?: boolean; + /** Filter by the object’s `destinationBucketId` field. */ + destinationBucketId?: UUIDFilter; + /** Filter by the object’s `files` relation. */ + files?: BucketToManyFileFilter; + /** `files` exist. */ + filesExist?: boolean; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isPublic` field. */ + isPublic?: BooleanFilter; + /** Filter by the object’s `key` field. */ + key?: StringFilter; + /** Filter by the object’s `maxFileSize` field. */ + maxFileSize?: BigIntFilter; + /** Negates the expression. */ + not?: BucketFilter; + /** Checks for any expressions in this list. */ + or?: BucketFilter[]; + /** Filter by the object’s `physicalName` field. */ + physicalName?: StringFilter; + /** Filter by the object’s `stagingTtl` field. */ + stagingTtl?: IntervalFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Filter by the object’s `type` field. */ + type?: BucketTypeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} +export interface FileFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: FileFilter[]; + /** Filter by the object’s `bucket` relation. */ + bucket?: BucketFilter; + /** Filter by the object’s `bucketId` field. */ + bucketId?: UUIDFilter; + /** Filter by the object’s `contentHash` field. */ + contentHash?: 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 `expiryEnqueuedAt` field. */ + expiryEnqueuedAt?: DatetimeFilter; + /** Filter by the object’s `filename` field. */ + filename?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isPublic` field. */ + isPublic?: BooleanFilter; + /** Filter by the object’s `key` field. */ + key?: StringFilter; + /** Filter by the object’s `mimeType` field. */ + mimeType?: StringFilter; + /** Negates the expression. */ + not?: FileFilter; + /** Checks for any expressions in this list. */ + or?: FileFilter[]; + /** Filter by the object’s `promotedAt` field. */ + promotedAt?: DatetimeFilter; + /** Filter by the object’s `size` field. */ + size?: BigIntFilter; + /** Filter by the object’s `status` field. */ + status?: FileStatusFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `upload` field. */ + upload?: ConstructiveInternalTypeUploadFilter; +} +export interface PlatformBucketFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `allowCustomKeys` field. */ + allowCustomKeys?: BooleanFilter; + /** Filter by the object’s `allowedMimeTypes` field. */ + allowedMimeTypes?: StringListFilter; + /** Filter by the object’s `allowedOrigins` field. */ + allowedOrigins?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: PlatformBucketFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `destinationBucket` relation. */ + destinationBucket?: PlatformBucketFilter; + /** A related `destinationBucket` exists. */ + destinationBucketExists?: boolean; + /** Filter by the object’s `destinationBucketId` field. */ + destinationBucketId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isPublic` field. */ + isPublic?: BooleanFilter; + /** Filter by the object’s `key` field. */ + key?: StringFilter; + /** Filter by the object’s `maxFileSize` field. */ + maxFileSize?: BigIntFilter; + /** Negates the expression. */ + not?: PlatformBucketFilter; + /** Checks for any expressions in this list. */ + or?: PlatformBucketFilter[]; + /** Filter by the object’s `physicalName` field. */ + physicalName?: StringFilter; + /** Filter by the object’s `platformBucketsByDestinationBucketId` relation. */ + platformBucketsByDestinationBucketId?: PlatformBucketToManyPlatformBucketFilter; + /** `platformBucketsByDestinationBucketId` exist. */ + platformBucketsByDestinationBucketIdExist?: boolean; + /** Filter by the object’s `platformFilesByBucketId` relation. */ + platformFilesByBucketId?: PlatformBucketToManyPlatformFileFilter; + /** `platformFilesByBucketId` exist. */ + platformFilesByBucketIdExist?: boolean; + /** Filter by the object’s `stagingTtl` field. */ + stagingTtl?: IntervalFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Filter by the object’s `type` field. */ + type?: BucketTypeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} +export interface PlatformFileFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: PlatformFileFilter[]; + /** Filter by the object’s `bucket` relation. */ + bucket?: PlatformBucketFilter; + /** Filter by the object’s `bucketId` field. */ + bucketId?: UUIDFilter; + /** Filter by the object’s `contentHash` field. */ + contentHash?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `expiryEnqueuedAt` field. */ + expiryEnqueuedAt?: DatetimeFilter; + /** Filter by the object’s `filename` field. */ + filename?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isPublic` field. */ + isPublic?: BooleanFilter; + /** Filter by the object’s `key` field. */ + key?: StringFilter; + /** Filter by the object’s `mimeType` field. */ + mimeType?: StringFilter; + /** Negates the expression. */ + not?: PlatformFileFilter; + /** Checks for any expressions in this list. */ + or?: PlatformFileFilter[]; + /** Filter by the object’s `promotedAt` field. */ + promotedAt?: DatetimeFilter; + /** Filter by the object’s `size` field. */ + size?: BigIntFilter; + /** Filter by the object’s `status` field. */ + status?: FileStatusFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `upload` field. */ + upload?: ConstructiveInternalTypeUploadFilter; +} +// ============ OrderBy Types ============ +export type BucketOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'ALLOWED_MIME_TYPES_ASC' + | 'ALLOWED_MIME_TYPES_DESC' + | 'ALLOWED_ORIGINS_ASC' + | 'ALLOWED_ORIGINS_DESC' + | 'ALLOW_CUSTOM_KEYS_ASC' + | 'ALLOW_CUSTOM_KEYS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'DESTINATION_BUCKET_ID_ASC' + | 'DESTINATION_BUCKET_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_PUBLIC_ASC' + | 'IS_PUBLIC_DESC' + | 'KEY_ASC' + | 'KEY_DESC' + | 'MAX_FILE_SIZE_ASC' + | 'MAX_FILE_SIZE_DESC' + | 'NATURAL' + | 'PHYSICAL_NAME_ASC' + | 'PHYSICAL_NAME_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'STAGING_TTL_ASC' + | 'STAGING_TTL_DESC' + | 'TAGS_ASC' + | 'TAGS_DESC' + | 'TYPE_ASC' + | 'TYPE_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type FileOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'BUCKET_ID_ASC' + | 'BUCKET_ID_DESC' + | 'CONTENT_HASH_ASC' + | 'CONTENT_HASH_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'EXPIRY_ENQUEUED_AT_ASC' + | 'EXPIRY_ENQUEUED_AT_DESC' + | 'FILENAME_ASC' + | 'FILENAME_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_PUBLIC_ASC' + | 'IS_PUBLIC_DESC' + | 'KEY_ASC' + | 'KEY_DESC' + | 'MIME_TYPE_ASC' + | 'MIME_TYPE_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PROMOTED_AT_ASC' + | 'PROMOTED_AT_DESC' + | 'SIZE_ASC' + | 'SIZE_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'TAGS_ASC' + | 'TAGS_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPLOAD_ASC' + | 'UPLOAD_DESC'; +export type PlatformBucketOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'ALLOWED_MIME_TYPES_ASC' + | 'ALLOWED_MIME_TYPES_DESC' + | 'ALLOWED_ORIGINS_ASC' + | 'ALLOWED_ORIGINS_DESC' + | 'ALLOW_CUSTOM_KEYS_ASC' + | 'ALLOW_CUSTOM_KEYS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'DESTINATION_BUCKET_ID_ASC' + | 'DESTINATION_BUCKET_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_PUBLIC_ASC' + | 'IS_PUBLIC_DESC' + | 'KEY_ASC' + | 'KEY_DESC' + | 'MAX_FILE_SIZE_ASC' + | 'MAX_FILE_SIZE_DESC' + | 'NATURAL' + | 'PHYSICAL_NAME_ASC' + | 'PHYSICAL_NAME_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'STAGING_TTL_ASC' + | 'STAGING_TTL_DESC' + | 'TAGS_ASC' + | 'TAGS_DESC' + | 'TYPE_ASC' + | 'TYPE_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type PlatformFileOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'BUCKET_ID_ASC' + | 'BUCKET_ID_DESC' + | 'CONTENT_HASH_ASC' + | 'CONTENT_HASH_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'EXPIRY_ENQUEUED_AT_ASC' + | 'EXPIRY_ENQUEUED_AT_DESC' + | 'FILENAME_ASC' + | 'FILENAME_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_PUBLIC_ASC' + | 'IS_PUBLIC_DESC' + | 'KEY_ASC' + | 'KEY_DESC' + | 'MIME_TYPE_ASC' + | 'MIME_TYPE_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PROMOTED_AT_ASC' + | 'PROMOTED_AT_DESC' + | 'SIZE_ASC' + | 'SIZE_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'TAGS_ASC' + | 'TAGS_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPLOAD_ASC' + | 'UPLOAD_DESC'; +// ============ CRUD Input Types ============ +export interface CreateBucketInput { + clientMutationId?: string; + bucket: { + actorId: string; + allowCustomKeys?: boolean; + allowedMimeTypes?: string[]; + allowedOrigins?: string[]; + databaseId: string; + description?: string; + destinationBucketId?: string; + isPublic?: boolean; + key: string; + maxFileSize?: string; + physicalName?: string; + stagingTtl?: IntervalInput; + tags?: string[]; + type?: BucketType; + }; +} +export interface BucketPatch { + actorId?: string | null; + allowCustomKeys?: boolean | null; + allowedMimeTypes?: string[] | null; + allowedOrigins?: string[] | null; + databaseId?: string | null; + description?: string | null; + destinationBucketId?: string | null; + isPublic?: boolean | null; + key?: string | null; + maxFileSize?: string | null; + physicalName?: string | null; + stagingTtl?: IntervalInput | null; + tags?: string[] | null; + type?: BucketType | null; +} +export interface UpdateBucketInput { + clientMutationId?: string; + id: string; + bucketPatch: BucketPatch; +} +export interface DeleteBucketInput { + clientMutationId?: string; + id: string; +} +export interface CreateFileInput { + clientMutationId?: string; + file: { + actorId: string; + bucketId: string; + contentHash?: string; + databaseId: string; + description?: string; + expiryEnqueuedAt?: string; + filename?: string; + isPublic?: boolean; + key: string; + mimeType: string; + promotedAt?: string; + size: string; + status?: FileStatus; + tags?: string[]; + upload?: ConstructiveInternalTypeUpload; + }; +} +export interface FilePatch { + actorId?: string | null; + bucketId?: string | null; + contentHash?: string | null; + databaseId?: string | null; + description?: string | null; + expiryEnqueuedAt?: string | null; + filename?: string | null; + isPublic?: boolean | null; + key?: string | null; + mimeType?: string | null; + promotedAt?: string | null; + size?: string | null; + status?: FileStatus | null; + tags?: string[] | null; + upload?: ConstructiveInternalTypeUpload | null; + uploadUpload?: File | null; +} +export interface UpdateFileInput { + clientMutationId?: string; + id: string; + filePatch: FilePatch; +} +export interface DeleteFileInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformBucketInput { + clientMutationId?: string; + platformBucket: { + actorId: string; + allowCustomKeys?: boolean; + allowedMimeTypes?: string[]; + allowedOrigins?: string[]; + description?: string; + destinationBucketId?: string; + isPublic?: boolean; + key: string; + maxFileSize?: string; + physicalName?: string; + stagingTtl?: IntervalInput; + tags?: string[]; + type?: BucketType; + }; +} +export interface PlatformBucketPatch { + actorId?: string | null; + allowCustomKeys?: boolean | null; + allowedMimeTypes?: string[] | null; + allowedOrigins?: string[] | null; + description?: string | null; + destinationBucketId?: string | null; + isPublic?: boolean | null; + key?: string | null; + maxFileSize?: string | null; + physicalName?: string | null; + stagingTtl?: IntervalInput | null; + tags?: string[] | null; + type?: BucketType | null; +} +export interface UpdatePlatformBucketInput { + clientMutationId?: string; + id: string; + platformBucketPatch: PlatformBucketPatch; +} +export interface DeletePlatformBucketInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformFileInput { + clientMutationId?: string; + platformFile: { + actorId: string; + bucketId: string; + contentHash?: string; + description?: string; + expiryEnqueuedAt?: string; + filename?: string; + isPublic?: boolean; + key: string; + mimeType: string; + promotedAt?: string; + size: string; + status?: FileStatus; + tags?: string[]; + upload?: ConstructiveInternalTypeUpload; + }; +} +export interface PlatformFilePatch { + actorId?: string | null; + bucketId?: string | null; + contentHash?: string | null; + description?: string | null; + expiryEnqueuedAt?: string | null; + filename?: string | null; + isPublic?: boolean | null; + key?: string | null; + mimeType?: string | null; + promotedAt?: string | null; + size?: string | null; + status?: FileStatus | null; + tags?: string[] | null; + upload?: ConstructiveInternalTypeUpload | null; + uploadUpload?: File | null; +} +export interface UpdatePlatformFileInput { + clientMutationId?: string; + id: string; + platformFilePatch: PlatformFilePatch; +} +export interface DeletePlatformFileInput { + clientMutationId?: string; + id: string; +} +// ============ Connection Fields Map ============ +export const connectionFieldsMap = { + Bucket: { + bucketsByDestinationBucketId: 'Bucket', + files: 'File', + }, + PlatformBucket: { + platformBucketsByDestinationBucketId: 'PlatformBucket', + platformFilesByBucketId: 'PlatformFile', + }, +} as Record>; +// ============ Custom Input Types (from schema) ============ +export interface FilesRenameInput { + clientMutationId?: string; + fileId?: string; + newFilename?: string; +} +export interface PlatformFilesRenameInput { + clientMutationId?: string; + fileId?: string; + newFilename?: 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 UploadFileInput { + /** Bucket key (e.g., "public", "private"). Omit to use the database's default bucket for the requested access. */ + bucketKey?: string; + /** SHA-256 content hash (hex-encoded, 64 chars) */ + contentHash: string; + /** MIME type of the file */ + contentType: string; + /** Original filename (optional) */ + filename?: string; + /** Which default bucket to resolve when bucketKey is omitted: the public one (true) or the private one (default false). Ignored when bucketKey is given. */ + isPublic?: boolean; + /** Custom S3 key (only when bucket has allow_custom_keys=true) */ + key?: string; + /** File size in bytes */ + size: number; +} +export interface UploadFileBulkInput { + /** Bucket key (e.g., "public", "private"). Omit to use the database's default bucket for the requested access. */ + bucketKey?: string; + /** Array of files to upload */ + files: UploadFileBulkFileInput[]; + /** Which default bucket to resolve when bucketKey is omitted. Ignored when bucketKey is given. */ + isPublic?: boolean; +} +export interface UploadPlatformFileInput { + /** Bucket key (e.g., "public", "private"). Omit to use the database's default bucket for the requested access. */ + bucketKey?: string; + /** SHA-256 content hash (hex-encoded, 64 chars) */ + contentHash: string; + /** MIME type of the file */ + contentType: string; + /** Original filename (optional) */ + filename?: string; + /** Which default bucket to resolve when bucketKey is omitted: the public one (true) or the private one (default false). Ignored when bucketKey is given. */ + isPublic?: boolean; + /** Custom S3 key (only when bucket has allow_custom_keys=true) */ + key?: string; + /** File size in bytes */ + size: number; +} +export interface UploadPlatformFileBulkInput { + /** Bucket key (e.g., "public", "private"). Omit to use the database's default bucket for the requested access. */ + bucketKey?: string; + /** Array of files to upload */ + files: UploadPlatformFileBulkFileInput[]; + /** Which default bucket to resolve when bucketKey is omitted. Ignored when bucketKey is given. */ + isPublic?: boolean; +} +/** A filter to be used against many `Bucket` object types. All fields are combined with a logical ‘and.’ */ +export interface BucketToManyBucketFilter { + /** Filters to entities where every related entity matches. */ + every?: BucketFilter; + /** Filters to entities where no related entity matches. */ + none?: BucketFilter; + /** Filters to entities where at least one related entity matches. */ + some?: BucketFilter; +} +/** A filter to be used against many `File` object types. All fields are combined with a logical ‘and.’ */ +export interface BucketToManyFileFilter { + /** Filters to entities where every related entity matches. */ + every?: FileFilter; + /** Filters to entities where no related entity matches. */ + none?: FileFilter; + /** Filters to entities where at least one related entity matches. */ + some?: FileFilter; +} +/** A filter to be used against Interval fields. All fields are combined with a logical ‘and.’ */ +export interface IntervalFilter { + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: IntervalInput; + /** Equal to the specified value. */ + equalTo?: IntervalInput; + /** Greater than the specified value. */ + greaterThan?: IntervalInput; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: IntervalInput; + /** Included in the specified list. */ + in?: IntervalInput[]; + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Less than the specified value. */ + lessThan?: IntervalInput; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: IntervalInput; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: IntervalInput; + /** Not equal to the specified value. */ + notEqualTo?: IntervalInput; + /** Not included in the specified list. */ + notIn?: IntervalInput[]; +} +/** A filter to be used against BucketType fields. All fields are combined with a logical ‘and.’ */ +export interface BucketTypeFilter { + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: BucketType; + /** Equal to the specified value. */ + equalTo?: BucketType; + /** Greater than the specified value. */ + greaterThan?: BucketType; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: BucketType; + /** Included in the specified list. */ + in?: BucketType[]; + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Less than the specified value. */ + lessThan?: BucketType; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: BucketType; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: BucketType; + /** Not equal to the specified value. */ + notEqualTo?: BucketType; + /** Not included in the specified list. */ + notIn?: BucketType[]; +} +/** A filter to be used against FileStatus fields. All fields are combined with a logical ‘and.’ */ +export interface FileStatusFilter { + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: FileStatus; + /** Equal to the specified value. */ + equalTo?: FileStatus; + /** Greater than the specified value. */ + greaterThan?: FileStatus; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: FileStatus; + /** Included in the specified list. */ + in?: FileStatus[]; + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Less than the specified value. */ + lessThan?: FileStatus; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: FileStatus; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: FileStatus; + /** Not equal to the specified value. */ + notEqualTo?: FileStatus; + /** Not included in the specified list. */ + notIn?: FileStatus[]; +} +/** A filter to be used against ConstructiveInternalTypeUpload fields. All fields are combined with a logical ‘and.’ */ +export interface ConstructiveInternalTypeUploadFilter { + /** Contained by the specified JSON. */ + containedBy?: ConstructiveInternalTypeUpload; + /** Contains the specified JSON. */ + contains?: ConstructiveInternalTypeUpload; + /** Contains all of the specified keys. */ + containsAllKeys?: string[]; + /** Contains any of the specified keys. */ + containsAnyKeys?: string[]; + /** Contains the specified key. */ + containsKey?: string; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: ConstructiveInternalTypeUpload; + /** Equal to the specified value. */ + equalTo?: ConstructiveInternalTypeUpload; + /** Greater than the specified value. */ + greaterThan?: ConstructiveInternalTypeUpload; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: ConstructiveInternalTypeUpload; + /** Included in the specified list. */ + in?: ConstructiveInternalTypeUpload[]; + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Less than the specified value. */ + lessThan?: ConstructiveInternalTypeUpload; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: ConstructiveInternalTypeUpload; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: ConstructiveInternalTypeUpload; + /** Not equal to the specified value. */ + notEqualTo?: ConstructiveInternalTypeUpload; + /** Not included in the specified list. */ + notIn?: ConstructiveInternalTypeUpload[]; +} +/** A filter to be used against many `PlatformBucket` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformBucketToManyPlatformBucketFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformBucketFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformBucketFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformBucketFilter; +} +/** A filter to be used against many `PlatformFile` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformBucketToManyPlatformFileFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformFileFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformFileFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformFileFilter; +} +/** An input for mutations affecting `Bucket` */ +export interface BucketInput { + /** User who created this bucket. Forced to current_user_id() on INSERT. */ + actorId: string; + /** When true, clients can provide custom S3 keys (e.g. reports/2024/Q1.pdf). When false (default), S3 key = content hash (automatic dedup). contentHash always required for integrity. */ + allowCustomKeys?: boolean; + /** Whitelist of allowed MIME types for files in this bucket (NULL = all allowed, enforcement deferred) */ + allowedMimeTypes?: string[]; + /** Per-bucket CORS allowed origins override (NULL = inherit from storage_module/plugin defaults). Use ARRAY['*'] for open/CDN mode. */ + allowedOrigins?: string[]; + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Human-readable description of the bucket purpose */ + description?: string; + /** For a temp bucket, the permanent bucket its uploads are promoted into. NULL on non-temp buckets; required on temp buckets. */ + destinationBucketId?: string; + id?: string; + /** Whether bucket contents are publicly readable. Set to true when type is public. */ + isPublic?: boolean; + /** Unique bucket identifier used in S3 key paths (e.g. avatars, documents, temp) */ + key: string; + /** Maximum file size in bytes allowed in this bucket (NULL = no limit, enforcement deferred) */ + maxFileSize?: string; + /** Physical S3/MinIO bucket name recorded at provision time (NULL until the physical bucket exists) */ + physicalName?: string; + /** For a temp bucket, how long an unpromoted staged file survives before it is eligible for expiry. NULL on non-temp buckets; required on temp buckets. */ + stagingTtl?: IntervalInput; + /** Selector labels for capability resolution and grouping (e.g. uploads, variants, exports). A function's required bucket key is matched against these plus type. */ + tags?: string[]; + /** Bucket CDN access type: public (CDN-served), private (presigned GET), temp (staging uploads) */ + type?: BucketType; + updatedAt?: string; +} +/** An interval of time that has passed where the smallest distinct unit is a second. */ +export interface IntervalInput { + /** A quantity of days. */ + days?: number; + /** A quantity of hours. */ + hours?: number; + /** A quantity of minutes. */ + minutes?: number; + /** A quantity of months. */ + months?: number; + /** + * A quantity of seconds. This is the only non-integer field, as all the other + * fields will dump their overflow into a smaller unit of time. Intervals don’t + * have a smaller unit than seconds. + */ + seconds?: number; + /** A quantity of years. */ + years?: number; +} +/** An input for mutations affecting `File` */ +export interface FileInput { + /** User who uploaded this file. Forced to current_user_id() on INSERT. Used for UPDATE/DELETE authorization. */ + actorId: string; + /** Bucket this file belongs to. Determines owner_id and is_public via inheritance trigger. */ + bucketId: string; + /** SHA-256 content hash for integrity verification and dedup. In default mode, equals the S3 key. In custom key mode, stored separately. */ + contentHash?: string; + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Human-readable description or alt text for the file (mutable) */ + description?: string; + /** When the staged-expiry sweep enqueued deletion of this file's object. NULL until it expires; set once so expiry is enqueued exactly once. */ + expiryEnqueuedAt?: string; + /** Original filename provided by the uploader. Used for display and Content-Disposition header on download. */ + filename?: string; + id?: string; + /** Whether this file is publicly readable. Inherited from bucket on INSERT. */ + isPublic?: boolean; + /** S3 object key for this file, unique within its bucket */ + key: string; + /** MIME type of the file (e.g. image/png, application/pdf). Immutable after INSERT. */ + mimeType: string; + /** When this file was promoted out of its staging bucket into its destination bucket. NULL for a file that was never staged, or is still staged. */ + promotedAt?: string; + /** File size in bytes. Immutable after INSERT. */ + size: string; + /** File lifecycle status: requested (presigned URL generated, not yet in S3), uploaded (file in S3 and content validated, ready for use), processed (image resized, text extracted, embedding computed), rejected (declared type disagreed with the bytes), expired (bytes never arrived before the confirm window closed). */ + status?: FileStatus; + /** User-defined tags for categorization and search (mutable) */ + tags?: string[]; + updatedAt?: string; + /** Processed file reference (upload domain). Populated by processing jobs after file is uploaded. Copy this value to other tables to reference the file. */ + upload?: ConstructiveInternalTypeUpload; +} +/** An input for mutations affecting `PlatformBucket` */ +export interface PlatformBucketInput { + /** User who created this bucket. Forced to current_user_id() on INSERT. */ + actorId: string; + /** When true, clients can provide custom S3 keys (e.g. reports/2024/Q1.pdf). When false (default), S3 key = content hash (automatic dedup). contentHash always required for integrity. */ + allowCustomKeys?: boolean; + /** Whitelist of allowed MIME types for files in this bucket (NULL = all allowed, enforcement deferred) */ + allowedMimeTypes?: string[]; + /** Per-bucket CORS allowed origins override (NULL = inherit from storage_module/plugin defaults). Use ARRAY['*'] for open/CDN mode. */ + allowedOrigins?: string[]; + createdAt?: string; + /** Human-readable description of the bucket purpose */ + description?: string; + /** For a temp bucket, the permanent bucket its uploads are promoted into. NULL on non-temp buckets; required on temp buckets. */ + destinationBucketId?: string; + id?: string; + /** Whether bucket contents are publicly readable. Set to true when type is public. */ + isPublic?: boolean; + /** Unique bucket identifier used in S3 key paths (e.g. avatars, documents, temp) */ + key: string; + /** Maximum file size in bytes allowed in this bucket (NULL = no limit, enforcement deferred) */ + maxFileSize?: string; + /** Physical S3/MinIO bucket name recorded at provision time (NULL until the physical bucket exists) */ + physicalName?: string; + /** For a temp bucket, how long an unpromoted staged file survives before it is eligible for expiry. NULL on non-temp buckets; required on temp buckets. */ + stagingTtl?: IntervalInput; + /** Selector labels for capability resolution and grouping (e.g. uploads, variants, exports). A function's required bucket key is matched against these plus type. */ + tags?: string[]; + /** Bucket CDN access type: public (CDN-served), private (presigned GET), temp (staging uploads) */ + type?: BucketType; + updatedAt?: string; +} +/** An input for mutations affecting `PlatformFile` */ +export interface PlatformFileInput { + /** User who uploaded this file. Forced to current_user_id() on INSERT. Used for UPDATE/DELETE authorization. */ + actorId: string; + /** Bucket this file belongs to. Determines owner_id and is_public via inheritance trigger. */ + bucketId: string; + /** SHA-256 content hash for integrity verification and dedup. In default mode, equals the S3 key. In custom key mode, stored separately. */ + contentHash?: string; + createdAt?: string; + /** Human-readable description or alt text for the file (mutable) */ + description?: string; + /** When the staged-expiry sweep enqueued deletion of this file's object. NULL until it expires; set once so expiry is enqueued exactly once. */ + expiryEnqueuedAt?: string; + /** Original filename provided by the uploader. Used for display and Content-Disposition header on download. */ + filename?: string; + id?: string; + /** Whether this file is publicly readable. Inherited from bucket on INSERT. */ + isPublic?: boolean; + /** S3 object key for this file, unique within its bucket */ + key: string; + /** MIME type of the file (e.g. image/png, application/pdf). Immutable after INSERT. */ + mimeType: string; + /** When this file was promoted out of its staging bucket into its destination bucket. NULL for a file that was never staged, or is still staged. */ + promotedAt?: string; + /** File size in bytes. Immutable after INSERT. */ + size: string; + /** File lifecycle status: requested (presigned URL generated, not yet in S3), uploaded (file in S3 and content validated, ready for use), processed (image resized, text extracted, embedding computed), rejected (declared type disagreed with the bytes), expired (bytes never arrived before the confirm window closed). */ + status?: FileStatus; + /** User-defined tags for categorization and search (mutable) */ + tags?: string[]; + updatedAt?: string; + /** Processed file reference (upload domain). Populated by processing jobs after file is uploaded. Copy this value to other tables to reference the file. */ + upload?: ConstructiveInternalTypeUpload; +} +export interface UploadFileBulkFileInput { + /** SHA-256 content hash (hex-encoded, 64 chars) */ + contentHash: string; + /** MIME type of the file */ + contentType: string; + /** Original filename (optional) */ + filename?: string; + /** Custom S3 key (only when bucket has allow_custom_keys=true) */ + key?: string; + /** File size in bytes */ + size: number; +} +export interface UploadPlatformFileBulkFileInput { + /** SHA-256 content hash (hex-encoded, 64 chars) */ + contentHash: string; + /** MIME type of the file */ + contentType: string; + /** Original filename (optional) */ + filename?: string; + /** Custom S3 key (only when bucket has allow_custom_keys=true) */ + key?: string; + /** File size in bytes */ + size: number; +} +/** A filter to be used against `Bucket` object types. All fields are combined with a logical ‘and.’ */ +export interface BucketFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `allowCustomKeys` field. */ + allowCustomKeys?: BooleanFilter; + /** Filter by the object’s `allowedMimeTypes` field. */ + allowedMimeTypes?: StringListFilter; + /** Filter by the object’s `allowedOrigins` field. */ + allowedOrigins?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: BucketFilter[]; + /** Filter by the object’s `bucketsByDestinationBucketId` relation. */ + bucketsByDestinationBucketId?: BucketToManyBucketFilter; + /** `bucketsByDestinationBucketId` exist. */ + bucketsByDestinationBucketIdExist?: boolean; + /** 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 `destinationBucket` relation. */ + destinationBucket?: BucketFilter; + /** A related `destinationBucket` exists. */ + destinationBucketExists?: boolean; + /** Filter by the object’s `destinationBucketId` field. */ + destinationBucketId?: UUIDFilter; + /** Filter by the object’s `files` relation. */ + files?: BucketToManyFileFilter; + /** `files` exist. */ + filesExist?: boolean; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isPublic` field. */ + isPublic?: BooleanFilter; + /** Filter by the object’s `key` field. */ + key?: StringFilter; + /** Filter by the object’s `maxFileSize` field. */ + maxFileSize?: BigIntFilter; + /** Negates the expression. */ + not?: BucketFilter; + /** Checks for any expressions in this list. */ + or?: BucketFilter[]; + /** Filter by the object’s `physicalName` field. */ + physicalName?: StringFilter; + /** Filter by the object’s `stagingTtl` field. */ + stagingTtl?: IntervalFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Filter by the object’s `type` field. */ + type?: BucketTypeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} +/** A filter to be used against `File` object types. All fields are combined with a logical ‘and.’ */ +export interface FileFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: FileFilter[]; + /** Filter by the object’s `bucket` relation. */ + bucket?: BucketFilter; + /** Filter by the object’s `bucketId` field. */ + bucketId?: UUIDFilter; + /** Filter by the object’s `contentHash` field. */ + contentHash?: 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 `expiryEnqueuedAt` field. */ + expiryEnqueuedAt?: DatetimeFilter; + /** Filter by the object’s `filename` field. */ + filename?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isPublic` field. */ + isPublic?: BooleanFilter; + /** Filter by the object’s `key` field. */ + key?: StringFilter; + /** Filter by the object’s `mimeType` field. */ + mimeType?: StringFilter; + /** Negates the expression. */ + not?: FileFilter; + /** Checks for any expressions in this list. */ + or?: FileFilter[]; + /** Filter by the object’s `promotedAt` field. */ + promotedAt?: DatetimeFilter; + /** Filter by the object’s `size` field. */ + size?: BigIntFilter; + /** Filter by the object’s `status` field. */ + status?: FileStatusFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `upload` field. */ + upload?: ConstructiveInternalTypeUploadFilter; +} +/** A filter to be used against `PlatformBucket` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformBucketFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `allowCustomKeys` field. */ + allowCustomKeys?: BooleanFilter; + /** Filter by the object’s `allowedMimeTypes` field. */ + allowedMimeTypes?: StringListFilter; + /** Filter by the object’s `allowedOrigins` field. */ + allowedOrigins?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: PlatformBucketFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `destinationBucket` relation. */ + destinationBucket?: PlatformBucketFilter; + /** A related `destinationBucket` exists. */ + destinationBucketExists?: boolean; + /** Filter by the object’s `destinationBucketId` field. */ + destinationBucketId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isPublic` field. */ + isPublic?: BooleanFilter; + /** Filter by the object’s `key` field. */ + key?: StringFilter; + /** Filter by the object’s `maxFileSize` field. */ + maxFileSize?: BigIntFilter; + /** Negates the expression. */ + not?: PlatformBucketFilter; + /** Checks for any expressions in this list. */ + or?: PlatformBucketFilter[]; + /** Filter by the object’s `physicalName` field. */ + physicalName?: StringFilter; + /** Filter by the object’s `platformBucketsByDestinationBucketId` relation. */ + platformBucketsByDestinationBucketId?: PlatformBucketToManyPlatformBucketFilter; + /** `platformBucketsByDestinationBucketId` exist. */ + platformBucketsByDestinationBucketIdExist?: boolean; + /** Filter by the object’s `platformFilesByBucketId` relation. */ + platformFilesByBucketId?: PlatformBucketToManyPlatformFileFilter; + /** `platformFilesByBucketId` exist. */ + platformFilesByBucketIdExist?: boolean; + /** Filter by the object’s `stagingTtl` field. */ + stagingTtl?: IntervalFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Filter by the object’s `type` field. */ + type?: BucketTypeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} +/** A filter to be used against `PlatformFile` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformFileFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: PlatformFileFilter[]; + /** Filter by the object’s `bucket` relation. */ + bucket?: PlatformBucketFilter; + /** Filter by the object’s `bucketId` field. */ + bucketId?: UUIDFilter; + /** Filter by the object’s `contentHash` field. */ + contentHash?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `expiryEnqueuedAt` field. */ + expiryEnqueuedAt?: DatetimeFilter; + /** Filter by the object’s `filename` field. */ + filename?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isPublic` field. */ + isPublic?: BooleanFilter; + /** Filter by the object’s `key` field. */ + key?: StringFilter; + /** Filter by the object’s `mimeType` field. */ + mimeType?: StringFilter; + /** Negates the expression. */ + not?: PlatformFileFilter; + /** Checks for any expressions in this list. */ + or?: PlatformFileFilter[]; + /** Filter by the object’s `promotedAt` field. */ + promotedAt?: DatetimeFilter; + /** Filter by the object’s `size` field. */ + size?: BigIntFilter; + /** Filter by the object’s `status` field. */ + status?: FileStatusFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `upload` field. */ + upload?: ConstructiveInternalTypeUploadFilter; +} +/** 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 String List fields. All fields are combined with a logical ‘and.’ */ +export interface StringListFilter { + /** Any array item is equal to the specified value. */ + anyEqualTo?: string; + /** Any array item is greater than the specified value. */ + anyGreaterThan?: string; + /** Any array item is greater than or equal to the specified value. */ + anyGreaterThanOrEqualTo?: string; + /** Any array item is less than the specified value. */ + anyLessThan?: string; + /** Any array item is less than or equal to the specified value. */ + anyLessThanOrEqualTo?: string; + /** Any array item is not equal to the specified value. */ + anyNotEqualTo?: string; + /** Contained by the specified list of values. */ + containedBy?: string[]; + /** Contains the specified list of values. */ + contains?: string[]; + /** 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[]; + /** 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[]; + /** Overlaps the specified list of values. */ + overlaps?: string[]; +} +/** 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 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 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. */ + 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[]; +} +// ============ Payload/Return Types (for custom operations) ============ +export interface FilesRenamePayload { + clientMutationId?: string | null; + fileEdge?: FileEdge | null; + result?: File | null; +} +export type FilesRenamePayloadSelect = { + clientMutationId?: boolean; + fileEdge?: { + select: FileEdgeSelect; + }; + result?: { + select: FileSelect; + }; +}; +export interface PlatformFilesRenamePayload { + clientMutationId?: string | null; + platformFileEdge?: PlatformFileEdge | null; + result?: PlatformFile | null; +} +export type PlatformFilesRenamePayloadSelect = { + clientMutationId?: boolean; + platformFileEdge?: { + select: PlatformFileEdgeSelect; + }; + result?: { + select: PlatformFileSelect; + }; +}; +export interface ProvisionBucketPayload { + /** The logical bucket row that was queued for reconciliation. */ + bucketId: string; + bucketKey: string; + /** The reconciler job enqueued to provision this bucket. */ + jobId: string; + /** The physical bucket name already recorded, or null when reconciliation has not completed. */ + physicalName?: string | null; +} +export type ProvisionBucketPayloadSelect = { + bucketId?: boolean; + bucketKey?: boolean; + jobId?: boolean; + physicalName?: boolean; +}; +export interface UploadFilePayload { + /** Whether this file was deduplicated (content already exists) */ + deduplicated: boolean; + /** Presigned URL expiry time (null if deduplicated) */ + expiresAt?: string | null; + /** The projection document for the created file: {id, key, bucket_id, mime, size, filename, url?}. Store this verbatim in an image/upload column — its `id` is what keeps the object from being garbage collected while the column still references it. */ + file?: Record | null; + /** The file ID (UUID) */ + fileId: string; + /** The S3 object key */ + key: string; + /** ID of the previous version (when using custom keys) */ + previousVersionId?: string | null; + /** Presigned PUT URL (null if deduplicated) */ + uploadUrl?: string | null; +} +export type UploadFilePayloadSelect = { + deduplicated?: boolean; + expiresAt?: boolean; + file?: boolean; + fileId?: boolean; + key?: boolean; + previousVersionId?: boolean; + uploadUrl?: boolean; +}; +export interface UploadFileBulkPayload { + files: UploadFileBulkFilePayload[]; +} +export type UploadFileBulkPayloadSelect = { + files?: { + select: UploadFileBulkFilePayloadSelect; + }; +}; +export interface UploadPlatformFilePayload { + /** Whether this file was deduplicated (content already exists) */ + deduplicated: boolean; + /** Presigned URL expiry time (null if deduplicated) */ + expiresAt?: string | null; + /** The projection document for the created file: {id, key, bucket_id, mime, size, filename, url?}. Store this verbatim in an image/upload column — its `id` is what keeps the object from being garbage collected while the column still references it. */ + file?: Record | null; + /** The file ID (UUID) */ + fileId: string; + /** The S3 object key */ + key: string; + /** ID of the previous version (when using custom keys) */ + previousVersionId?: string | null; + /** Presigned PUT URL (null if deduplicated) */ + uploadUrl?: string | null; +} +export type UploadPlatformFilePayloadSelect = { + deduplicated?: boolean; + expiresAt?: boolean; + file?: boolean; + fileId?: boolean; + key?: boolean; + previousVersionId?: boolean; + uploadUrl?: boolean; +}; +export interface UploadPlatformFileBulkPayload { + files: UploadPlatformFileBulkFilePayload[]; +} +export type UploadPlatformFileBulkPayloadSelect = { + files?: { + select: UploadPlatformFileBulkFilePayloadSelect; + }; +}; +export interface CreateBucketPayload { + /** The `Bucket` that was created by this mutation. */ + bucket?: Bucket | null; + bucketEdge?: BucketEdge | null; + clientMutationId?: string | null; +} +export type CreateBucketPayloadSelect = { + bucket?: { + select: BucketSelect; + }; + bucketEdge?: { + select: BucketEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface UpdateBucketPayload { + /** The `Bucket` that was updated by this mutation. */ + bucket?: Bucket | null; + bucketEdge?: BucketEdge | null; + clientMutationId?: string | null; +} +export type UpdateBucketPayloadSelect = { + bucket?: { + select: BucketSelect; + }; + bucketEdge?: { + select: BucketEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface DeleteBucketPayload { + /** The `Bucket` that was deleted by this mutation. */ + bucket?: Bucket | null; + bucketEdge?: BucketEdge | null; + clientMutationId?: string | null; +} +export type DeleteBucketPayloadSelect = { + bucket?: { + select: BucketSelect; + }; + bucketEdge?: { + select: BucketEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface CreateFilePayload { + clientMutationId?: string | null; + /** The `File` that was created by this mutation. */ + file?: File | null; + fileEdge?: FileEdge | null; +} +export type CreateFilePayloadSelect = { + clientMutationId?: boolean; + file?: { + select: FileSelect; + }; + fileEdge?: { + select: FileEdgeSelect; + }; +}; +export interface UpdateFilePayload { + clientMutationId?: string | null; + /** The `File` that was updated by this mutation. */ + file?: File | null; + fileEdge?: FileEdge | null; +} +export type UpdateFilePayloadSelect = { + clientMutationId?: boolean; + file?: { + select: FileSelect; + }; + fileEdge?: { + select: FileEdgeSelect; + }; +}; +export interface DeleteFilePayload { + clientMutationId?: string | null; + /** The `File` that was deleted by this mutation. */ + file?: File | null; + fileEdge?: FileEdge | null; +} +export type DeleteFilePayloadSelect = { + clientMutationId?: boolean; + file?: { + select: FileSelect; + }; + fileEdge?: { + select: FileEdgeSelect; + }; +}; +export interface CreatePlatformBucketPayload { + clientMutationId?: string | null; + /** The `PlatformBucket` that was created by this mutation. */ + platformBucket?: PlatformBucket | null; + platformBucketEdge?: PlatformBucketEdge | null; +} +export type CreatePlatformBucketPayloadSelect = { + clientMutationId?: boolean; + platformBucket?: { + select: PlatformBucketSelect; + }; + platformBucketEdge?: { + select: PlatformBucketEdgeSelect; + }; +}; +export interface UpdatePlatformBucketPayload { + clientMutationId?: string | null; + /** The `PlatformBucket` that was updated by this mutation. */ + platformBucket?: PlatformBucket | null; + platformBucketEdge?: PlatformBucketEdge | null; +} +export type UpdatePlatformBucketPayloadSelect = { + clientMutationId?: boolean; + platformBucket?: { + select: PlatformBucketSelect; + }; + platformBucketEdge?: { + select: PlatformBucketEdgeSelect; + }; +}; +export interface DeletePlatformBucketPayload { + clientMutationId?: string | null; + /** The `PlatformBucket` that was deleted by this mutation. */ + platformBucket?: PlatformBucket | null; + platformBucketEdge?: PlatformBucketEdge | null; +} +export type DeletePlatformBucketPayloadSelect = { + clientMutationId?: boolean; + platformBucket?: { + select: PlatformBucketSelect; + }; + platformBucketEdge?: { + select: PlatformBucketEdgeSelect; + }; +}; +export interface CreatePlatformFilePayload { + clientMutationId?: string | null; + /** The `PlatformFile` that was created by this mutation. */ + platformFile?: PlatformFile | null; + platformFileEdge?: PlatformFileEdge | null; +} +export type CreatePlatformFilePayloadSelect = { + clientMutationId?: boolean; + platformFile?: { + select: PlatformFileSelect; + }; + platformFileEdge?: { + select: PlatformFileEdgeSelect; + }; +}; +export interface UpdatePlatformFilePayload { + clientMutationId?: string | null; + /** The `PlatformFile` that was updated by this mutation. */ + platformFile?: PlatformFile | null; + platformFileEdge?: PlatformFileEdge | null; +} +export type UpdatePlatformFilePayloadSelect = { + clientMutationId?: boolean; + platformFile?: { + select: PlatformFileSelect; + }; + platformFileEdge?: { + select: PlatformFileEdgeSelect; + }; +}; +export interface DeletePlatformFilePayload { + clientMutationId?: string | null; + /** The `PlatformFile` that was deleted by this mutation. */ + platformFile?: PlatformFile | null; + platformFileEdge?: PlatformFileEdge | null; +} +export type DeletePlatformFilePayloadSelect = { + clientMutationId?: boolean; + platformFile?: { + select: PlatformFileSelect; + }; + platformFileEdge?: { + select: PlatformFileEdgeSelect; + }; +}; +/** A `File` edge in the connection. */ +export interface FileEdge { + cursor?: string | null; + /** The `File` at the end of the edge. */ + node?: File | null; +} +export type FileEdgeSelect = { + cursor?: boolean; + node?: { + select: FileSelect; + }; +}; +/** A `PlatformFile` edge in the connection. */ +export interface PlatformFileEdge { + cursor?: string | null; + /** The `PlatformFile` at the end of the edge. */ + node?: PlatformFile | null; +} +export type PlatformFileEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformFileSelect; + }; +}; +export interface UploadFileBulkFilePayload { + deduplicated: boolean; + expiresAt?: string | null; + /** The projection document for the created file. */ + file?: Record | null; + fileId: string; + key: string; + previousVersionId?: string | null; + uploadUrl?: string | null; +} +export type UploadFileBulkFilePayloadSelect = { + deduplicated?: boolean; + expiresAt?: boolean; + file?: boolean; + fileId?: boolean; + key?: boolean; + previousVersionId?: boolean; + uploadUrl?: boolean; +}; +export interface UploadPlatformFileBulkFilePayload { + deduplicated: boolean; + expiresAt?: string | null; + /** The projection document for the created file. */ + file?: Record | null; + fileId: string; + key: string; + previousVersionId?: string | null; + uploadUrl?: string | null; +} +export type UploadPlatformFileBulkFilePayloadSelect = { + deduplicated?: boolean; + expiresAt?: boolean; + file?: boolean; + fileId?: boolean; + key?: boolean; + previousVersionId?: boolean; + uploadUrl?: boolean; +}; +/** A `Bucket` edge in the connection. */ +export interface BucketEdge { + cursor?: string | null; + /** The `Bucket` at the end of the edge. */ + node?: Bucket | null; +} +export type BucketEdgeSelect = { + cursor?: boolean; + node?: { + select: BucketSelect; + }; +}; +/** A `PlatformBucket` edge in the connection. */ +export interface PlatformBucketEdge { + cursor?: string | null; + /** The `PlatformBucket` at the end of the edge. */ + node?: PlatformBucket | null; +} +export type PlatformBucketEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformBucketSelect; + }; +}; diff --git a/sdk/constructive-cli/src/storage/orm/models/bucket.ts b/sdk/constructive-cli/src/storage/orm/models/bucket.ts new file mode 100644 index 0000000000..61b1585820 --- /dev/null +++ b/sdk/constructive-cli/src/storage/orm/models/bucket.ts @@ -0,0 +1,245 @@ +/** + * Bucket 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 { + Bucket, + BucketWithRelations, + BucketSelect, + BucketFilter, + BucketOrderBy, + CreateBucketInput, + UpdateBucketInput, + BucketPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class BucketModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + buckets: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'Bucket', + 'buckets', + 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, + }, + 'BucketFilter', + 'BucketOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Bucket', + fieldName: 'buckets', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + bucket: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'Bucket', + 'buckets', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'BucketFilter', + 'BucketOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Bucket', + fieldName: 'bucket', + document, + variables, + transform: (data: { + buckets?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + bucket: data.buckets?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + bucket: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'Bucket', + 'buckets', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'BucketFilter', + 'BucketOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Bucket', + fieldName: 'bucket', + document, + variables, + transform: (data: { + buckets?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + bucket: data.buckets?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createBucket: { + bucket: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'Bucket', + 'createBucket', + 'bucket', + args.select, + args.data, + 'CreateBucketInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Bucket', + fieldName: 'createBucket', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + BucketPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateBucket: { + bucket: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'Bucket', + 'updateBucket', + 'bucket', + args.select, + args.where.id, + args.data, + 'UpdateBucketInput', + 'id', + 'bucketPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Bucket', + fieldName: 'updateBucket', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteBucket: { + bucket: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'Bucket', + 'deleteBucket', + 'bucket', + { + id: args.where.id, + }, + 'DeleteBucketInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Bucket', + fieldName: 'deleteBucket', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/storage/orm/models/file.ts b/sdk/constructive-cli/src/storage/orm/models/file.ts new file mode 100644 index 0000000000..a2d0e48ee3 --- /dev/null +++ b/sdk/constructive-cli/src/storage/orm/models/file.ts @@ -0,0 +1,245 @@ +/** + * File 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 { + File, + FileWithRelations, + FileSelect, + FileFilter, + FileOrderBy, + CreateFileInput, + UpdateFileInput, + FilePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class FileModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + files: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'File', + 'files', + 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, + }, + 'FileFilter', + 'FileOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'File', + fieldName: 'files', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + file: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'File', + 'files', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'FileFilter', + 'FileOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'File', + fieldName: 'file', + document, + variables, + transform: (data: { + files?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + file: data.files?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + file: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'File', + 'files', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'FileFilter', + 'FileOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'File', + fieldName: 'file', + document, + variables, + transform: (data: { + files?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + file: data.files?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createFile: { + file: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'File', + 'createFile', + 'file', + args.select, + args.data, + 'CreateFileInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'File', + fieldName: 'createFile', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + FilePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateFile: { + file: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'File', + 'updateFile', + 'file', + args.select, + args.where.id, + args.data, + 'UpdateFileInput', + 'id', + 'filePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'File', + fieldName: 'updateFile', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteFile: { + file: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'File', + 'deleteFile', + 'file', + { + id: args.where.id, + }, + 'DeleteFileInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'File', + fieldName: 'deleteFile', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/storage/orm/models/index.ts b/sdk/constructive-cli/src/storage/orm/models/index.ts new file mode 100644 index 0000000000..947038839d --- /dev/null +++ b/sdk/constructive-cli/src/storage/orm/models/index.ts @@ -0,0 +1,9 @@ +/** + * Models barrel export + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +export { BucketModel } from './bucket'; +export { FileModel } from './file'; +export { PlatformBucketModel } from './platformBucket'; +export { PlatformFileModel } from './platformFile'; diff --git a/sdk/constructive-cli/src/storage/orm/models/platformBucket.ts b/sdk/constructive-cli/src/storage/orm/models/platformBucket.ts new file mode 100644 index 0000000000..3ffe7d5bda --- /dev/null +++ b/sdk/constructive-cli/src/storage/orm/models/platformBucket.ts @@ -0,0 +1,245 @@ +/** + * PlatformBucket 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 { + PlatformBucket, + PlatformBucketWithRelations, + PlatformBucketSelect, + PlatformBucketFilter, + PlatformBucketOrderBy, + CreatePlatformBucketInput, + UpdatePlatformBucketInput, + PlatformBucketPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformBucketModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformBuckets: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformBucket', + 'platformBuckets', + 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, + }, + 'PlatformBucketFilter', + 'PlatformBucketOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformBucket', + fieldName: 'platformBuckets', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformBucket: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformBucket', + 'platformBuckets', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformBucketFilter', + 'PlatformBucketOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformBucket', + fieldName: 'platformBucket', + document, + variables, + transform: (data: { + platformBuckets?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformBucket: data.platformBuckets?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformBucket: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformBucket', + 'platformBuckets', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformBucketFilter', + 'PlatformBucketOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformBucket', + fieldName: 'platformBucket', + document, + variables, + transform: (data: { + platformBuckets?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformBucket: data.platformBuckets?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformBucket: { + platformBucket: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformBucket', + 'createPlatformBucket', + 'platformBucket', + args.select, + args.data, + 'CreatePlatformBucketInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformBucket', + fieldName: 'createPlatformBucket', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformBucketPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformBucket: { + platformBucket: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformBucket', + 'updatePlatformBucket', + 'platformBucket', + args.select, + args.where.id, + args.data, + 'UpdatePlatformBucketInput', + 'id', + 'platformBucketPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformBucket', + fieldName: 'updatePlatformBucket', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformBucket: { + platformBucket: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformBucket', + 'deletePlatformBucket', + 'platformBucket', + { + id: args.where.id, + }, + 'DeletePlatformBucketInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformBucket', + fieldName: 'deletePlatformBucket', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/storage/orm/models/platformFile.ts b/sdk/constructive-cli/src/storage/orm/models/platformFile.ts new file mode 100644 index 0000000000..bfc7890e99 --- /dev/null +++ b/sdk/constructive-cli/src/storage/orm/models/platformFile.ts @@ -0,0 +1,245 @@ +/** + * PlatformFile 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 { + PlatformFile, + PlatformFileWithRelations, + PlatformFileSelect, + PlatformFileFilter, + PlatformFileOrderBy, + CreatePlatformFileInput, + UpdatePlatformFileInput, + PlatformFilePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformFileModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformFiles: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformFile', + 'platformFiles', + 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, + }, + 'PlatformFileFilter', + 'PlatformFileOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformFile', + fieldName: 'platformFiles', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformFile: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformFile', + 'platformFiles', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformFileFilter', + 'PlatformFileOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformFile', + fieldName: 'platformFile', + document, + variables, + transform: (data: { + platformFiles?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformFile: data.platformFiles?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformFile: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformFile', + 'platformFiles', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformFileFilter', + 'PlatformFileOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformFile', + fieldName: 'platformFile', + document, + variables, + transform: (data: { + platformFiles?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformFile: data.platformFiles?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformFile: { + platformFile: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformFile', + 'createPlatformFile', + 'platformFile', + args.select, + args.data, + 'CreatePlatformFileInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformFile', + fieldName: 'createPlatformFile', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformFilePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformFile: { + platformFile: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformFile', + 'updatePlatformFile', + 'platformFile', + args.select, + args.where.id, + args.data, + 'UpdatePlatformFileInput', + 'id', + 'platformFilePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformFile', + fieldName: 'updatePlatformFile', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformFile: { + platformFile: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformFile', + 'deletePlatformFile', + 'platformFile', + { + id: args.where.id, + }, + 'DeletePlatformFileInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformFile', + fieldName: 'deletePlatformFile', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/storage/orm/mutation/index.ts b/sdk/constructive-cli/src/storage/orm/mutation/index.ts new file mode 100644 index 0000000000..2b8d61faf3 --- /dev/null +++ b/sdk/constructive-cli/src/storage/orm/mutation/index.ts @@ -0,0 +1,284 @@ +/** + * Custom mutation 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 type { + FilesRenameInput, + PlatformFilesRenameInput, + ProvisionBucketInput, + UploadFileInput, + UploadFileBulkInput, + UploadPlatformFileInput, + UploadPlatformFileBulkInput, + FilesRenamePayload, + PlatformFilesRenamePayload, + ProvisionBucketPayload, + UploadFilePayload, + UploadFileBulkPayload, + UploadPlatformFilePayload, + UploadPlatformFileBulkPayload, + FilesRenamePayloadSelect, + PlatformFilesRenamePayloadSelect, + ProvisionBucketPayloadSelect, + UploadFilePayloadSelect, + UploadFileBulkPayloadSelect, + UploadPlatformFilePayloadSelect, + UploadPlatformFileBulkPayloadSelect, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export interface FilesRenameVariables { + input: FilesRenameInput; +} +export interface PlatformFilesRenameVariables { + input: PlatformFilesRenameInput; +} +/** + * Variables for provisionBucket + * Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. + */ +export interface ProvisionBucketVariables { + input: ProvisionBucketInput; +} +/** + * Variables for uploadFile + * Upload a file: resolves the bucket by key, creates the file row, and returns a presigned PUT URL. + */ +export interface UploadFileVariables { + input: UploadFileInput; +} +/** + * Variables for uploadFiles + * Upload multiple files: resolves the bucket by key, creates file rows, and returns presigned PUT URLs for each. + */ +export interface UploadFilesVariables { + input: UploadFileBulkInput; +} +/** + * Variables for uploadPlatformFile + * Upload a file: resolves the bucket by key, creates the file row, and returns a presigned PUT URL. + */ +export interface UploadPlatformFileVariables { + input: UploadPlatformFileInput; +} +/** + * Variables for uploadPlatformFiles + * Upload multiple files: resolves the bucket by key, creates file rows, and returns presigned PUT URLs for each. + */ +export interface UploadPlatformFilesVariables { + input: UploadPlatformFileBulkInput; +} +export function createMutationOperations(client: OrmClient) { + return { + filesRename: ( + args: FilesRenameVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + filesRename: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'FilesRename', + fieldName: 'filesRename', + ...buildCustomDocument( + 'mutation', + 'FilesRename', + 'filesRename', + options.select, + args, + [ + { + name: 'input', + type: 'FilesRenameInput!', + }, + ], + connectionFieldsMap, + 'FilesRenamePayload' + ), + }), + platformFilesRename: ( + args: PlatformFilesRenameVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + platformFilesRename: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'PlatformFilesRename', + fieldName: 'platformFilesRename', + ...buildCustomDocument( + 'mutation', + 'PlatformFilesRename', + 'platformFilesRename', + options.select, + args, + [ + { + name: 'input', + type: 'PlatformFilesRenameInput!', + }, + ], + connectionFieldsMap, + 'PlatformFilesRenamePayload' + ), + }), + provisionBucket: ( + args: ProvisionBucketVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + provisionBucket: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'ProvisionBucket', + fieldName: 'provisionBucket', + ...buildCustomDocument( + 'mutation', + 'ProvisionBucket', + 'provisionBucket', + options.select, + args, + [ + { + name: 'input', + type: 'ProvisionBucketInput!', + }, + ], + connectionFieldsMap, + 'ProvisionBucketPayload' + ), + }), + uploadFile: ( + args: UploadFileVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + uploadFile: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'UploadFile', + fieldName: 'uploadFile', + ...buildCustomDocument( + 'mutation', + 'UploadFile', + 'uploadFile', + options.select, + args, + [ + { + name: 'input', + type: 'UploadFileInput!', + }, + ], + connectionFieldsMap, + 'UploadFilePayload' + ), + }), + uploadFiles: ( + args: UploadFilesVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + uploadFiles: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'UploadFiles', + fieldName: 'uploadFiles', + ...buildCustomDocument( + 'mutation', + 'UploadFiles', + 'uploadFiles', + options.select, + args, + [ + { + name: 'input', + type: 'UploadFileBulkInput!', + }, + ], + connectionFieldsMap, + 'UploadFileBulkPayload' + ), + }), + uploadPlatformFile: ( + args: UploadPlatformFileVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + uploadPlatformFile: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'UploadPlatformFile', + fieldName: 'uploadPlatformFile', + ...buildCustomDocument( + 'mutation', + 'UploadPlatformFile', + 'uploadPlatformFile', + options.select, + args, + [ + { + name: 'input', + type: 'UploadPlatformFileInput!', + }, + ], + connectionFieldsMap, + 'UploadPlatformFilePayload' + ), + }), + uploadPlatformFiles: ( + args: UploadPlatformFilesVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + uploadPlatformFiles: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'UploadPlatformFiles', + fieldName: 'uploadPlatformFiles', + ...buildCustomDocument( + 'mutation', + 'UploadPlatformFiles', + 'uploadPlatformFiles', + options.select, + args, + [ + { + name: 'input', + type: 'UploadPlatformFileBulkInput!', + }, + ], + connectionFieldsMap, + 'UploadPlatformFileBulkPayload' + ), + }), + }; +} diff --git a/sdk/constructive-cli/src/storage/orm/query-builder.ts b/sdk/constructive-cli/src/storage/orm/query-builder.ts new file mode 100644 index 0000000000..fd785bbae6 --- /dev/null +++ b/sdk/constructive-cli/src/storage/orm/query-builder.ts @@ -0,0 +1,1047 @@ +/** + * Query Builder - Builds and executes GraphQL operations + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { parseType, print } from '@constructive-io/graphql-query/runtime'; +import * as t from 'gql-ast'; +import type { ArgumentNode, EnumValueNode, FieldNode, VariableDefinitionNode } from 'graphql'; + +import { GraphQLRequestError, OrmClient, QueryResult } from './client'; + +export interface QueryBuilderConfig { + client: OrmClient; + operation: 'query' | 'mutation'; + operationName: string; + fieldName: string; + document: string; + variables?: Record; + transform?: (data: any) => TResult; +} + +export class QueryBuilder { + private config: QueryBuilderConfig; + + constructor(config: QueryBuilderConfig) { + this.config = config; + } + + /** + * Execute the query and return a discriminated union result + * Use result.ok to check success, or .unwrap() to throw on error + */ + async execute(): Promise> { + const rawResult = await this.config.client.execute( + this.config.document, + this.config.variables + ); + if (!rawResult.ok) { + return rawResult; + } + if (!this.config.transform) { + return rawResult as unknown as QueryResult; + } + return { + ok: true, + data: this.config.transform(rawResult.data), + errors: undefined, + }; + } + + /** + * Execute and unwrap the result, throwing GraphQLRequestError on failure + * @throws {GraphQLRequestError} If the query returns errors + */ + async unwrap(): Promise { + const result = await this.execute(); + if (!result.ok) { + throw new GraphQLRequestError(result.errors, result.data); + } + return result.data; + } + + /** + * Execute and unwrap, returning defaultValue on error instead of throwing + */ + async unwrapOr(defaultValue: D): Promise { + const result = await this.execute(); + if (!result.ok) { + return defaultValue; + } + return result.data; + } + + /** + * Execute and unwrap, calling onError callback on failure + */ + async unwrapOrElse( + onError: (errors: import('./client').GraphQLError[]) => D + ): Promise { + const result = await this.execute(); + if (!result.ok) { + return onError(result.errors); + } + return result.data; + } + + toGraphQL(): string { + return this.config.document; + } + + getVariables(): Record | undefined { + return this.config.variables; + } +} + +const OP_QUERY = 'query' as unknown as import('graphql').OperationTypeNode; +const OP_MUTATION = 'mutation' as unknown as import('graphql').OperationTypeNode; +const ENUM_VALUE_KIND = 'EnumValue' as unknown as EnumValueNode['kind']; + +// ============================================================================ +// Selection Builders +// ============================================================================ + +export function buildSelections( + select: Record | undefined, + connectionFieldsMap?: Record>, + entityType?: string +): FieldNode[] { + if (!select) { + return []; + } + + const fields: FieldNode[] = []; + const entityConnections = entityType ? connectionFieldsMap?.[entityType] : undefined; + + for (const [key, value] of Object.entries(select)) { + if (value === false || value === undefined) { + continue; + } + + if (value === true) { + fields.push(t.field({ name: key })); + continue; + } + + if (typeof value === 'object' && value !== null) { + const nested = value as { + select?: Record; + args?: Record; + first?: number; + filter?: Record; + orderBy?: string[]; + connection?: boolean; + }; + + // Field with arguments (e.g. requestUploadUrl on bucket types) + if (nested.args && typeof nested.args === 'object') { + const fieldArgs = Object.entries(nested.args).map(([argName, argValue]) => + t.argument({ name: argName, value: buildValueAst(argValue) }) + ); + const nestedSelect = nested.select; + if (nestedSelect && typeof nestedSelect === 'object') { + const subSelections = Object.entries(nestedSelect) + .filter(([, v]) => v) + .map(([name]) => t.field({ name })); + fields.push( + t.field({ + name: key, + args: fieldArgs.length ? fieldArgs : undefined, + selectionSet: subSelections.length + ? t.selectionSet({ selections: subSelections }) + : undefined, + }) + ); + } else { + fields.push( + t.field({ + name: key, + args: fieldArgs.length ? fieldArgs : undefined, + }) + ); + } + continue; + } + + if (!nested.select || typeof nested.select !== 'object') { + throw new Error( + `Invalid selection for field "${key}": nested selections must include a "select" object.` + ); + } + + const relatedEntityType = entityConnections?.[key]; + const nestedSelections = buildSelections( + nested.select, + connectionFieldsMap, + relatedEntityType + ); + const isConnection = + nested.connection === true || + nested.first !== undefined || + nested.filter !== undefined || + relatedEntityType !== undefined; + const args = buildArgs([ + buildOptionalArg('first', nested.first), + nested.filter + ? t.argument({ + name: 'filter', + value: buildValueAst(nested.filter), + }) + : null, + buildEnumListArg('orderBy', nested.orderBy), + ]); + + if (isConnection) { + fields.push( + t.field({ + name: key, + args, + selectionSet: t.selectionSet({ + selections: buildConnectionSelections(nestedSelections), + }), + }) + ); + } else { + fields.push( + t.field({ + name: key, + args, + selectionSet: t.selectionSet({ selections: nestedSelections }), + }) + ); + } + } + } + + return fields; +} + +// ============================================================================ +// Document Builders +// ============================================================================ + +export function buildFindManyDocument( + operationName: string, + queryField: string, + select: TSelect, + args: { + where?: TWhere; + orderBy?: string[]; + first?: number; + last?: number; + after?: string; + before?: string; + offset?: number; + }, + filterTypeName: string, + orderByTypeName: string, + connectionFieldsMap?: Record> +): { document: string; variables: Record } { + const selections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + const variableDefinitions: VariableDefinitionNode[] = []; + const queryArgs: ArgumentNode[] = []; + const variables: Record = {}; + + addVariable( + { + varName: 'where', + typeName: filterTypeName, + value: args.where, + }, + variableDefinitions, + queryArgs, + variables + ); + addVariable( + { + varName: 'orderBy', + typeName: '[' + orderByTypeName + '!]', + value: args.orderBy?.length ? args.orderBy : undefined, + }, + variableDefinitions, + queryArgs, + variables + ); + addVariable( + { varName: 'first', typeName: 'Int', value: args.first }, + variableDefinitions, + queryArgs, + variables + ); + addVariable( + { varName: 'last', typeName: 'Int', value: args.last }, + variableDefinitions, + queryArgs, + variables + ); + addVariable( + { varName: 'after', typeName: 'Cursor', value: args.after }, + variableDefinitions, + queryArgs, + variables + ); + addVariable( + { varName: 'before', typeName: 'Cursor', value: args.before }, + variableDefinitions, + queryArgs, + variables + ); + addVariable( + { varName: 'offset', typeName: 'Int', value: args.offset }, + variableDefinitions, + queryArgs, + variables + ); + + const document = t.document({ + definitions: [ + t.operationDefinition({ + operation: OP_QUERY, + name: operationName + 'Query', + variableDefinitions: variableDefinitions.length ? variableDefinitions : undefined, + selectionSet: t.selectionSet({ + selections: [ + t.field({ + name: queryField, + args: queryArgs.length ? queryArgs : undefined, + selectionSet: t.selectionSet({ + selections: buildConnectionSelections(selections), + }), + }), + ], + }), + }), + ], + }); + + return { document: print(document), variables }; +} + +export function buildFindFirstDocument( + operationName: string, + queryField: string, + select: TSelect, + args: { where?: TWhere; orderBy?: string[] }, + filterTypeName: string, + orderByTypeName: string, + connectionFieldsMap?: Record> +): { document: string; variables: Record } { + const selections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + const variableDefinitions: VariableDefinitionNode[] = []; + const queryArgs: ArgumentNode[] = []; + const variables: Record = {}; + + // Always add first: 1 for findFirst + addVariable( + { varName: 'first', typeName: 'Int', value: 1 }, + variableDefinitions, + queryArgs, + variables + ); + addVariable( + { + varName: 'where', + typeName: filterTypeName, + value: args.where, + }, + variableDefinitions, + queryArgs, + variables + ); + addVariable( + { + varName: 'orderBy', + typeName: '[' + orderByTypeName + '!]', + value: args.orderBy?.length ? args.orderBy : undefined, + }, + variableDefinitions, + queryArgs, + variables + ); + + const document = t.document({ + definitions: [ + t.operationDefinition({ + operation: OP_QUERY, + name: operationName + 'Query', + variableDefinitions, + selectionSet: t.selectionSet({ + selections: [ + t.field({ + name: queryField, + args: queryArgs, + selectionSet: t.selectionSet({ + selections: [ + t.field({ + name: 'nodes', + selectionSet: t.selectionSet({ selections }), + }), + ], + }), + }), + ], + }), + }), + ], + }); + + return { document: print(document), variables }; +} + +export function buildCreateDocument( + operationName: string, + mutationField: string, + entityField: string, + select: TSelect, + data: TData, + inputTypeName: string, + connectionFieldsMap?: Record> +): { document: string; variables: Record } { + const selections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + return { + document: buildInputMutationDocument({ + operationName, + mutationField, + inputTypeName, + resultSelections: [ + t.field({ + name: entityField, + selectionSet: t.selectionSet({ selections }), + }), + ], + }), + variables: { + input: { + [entityField]: data, + }, + }, + }; +} + +export function buildUpdateDocument( + operationName: string, + mutationField: string, + entityField: string, + select: TSelect, + where: TWhere, + data: TData, + inputTypeName: string, + patchFieldName: string, + connectionFieldsMap?: Record> +): { document: string; variables: Record } { + const selections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + return { + document: buildInputMutationDocument({ + operationName, + mutationField, + inputTypeName, + resultSelections: [ + t.field({ + name: entityField, + selectionSet: t.selectionSet({ selections }), + }), + ], + }), + variables: { + input: { + id: where.id, + [patchFieldName]: data, + }, + }, + }; +} + +export function buildUpdateByPkDocument( + operationName: string, + mutationField: string, + entityField: string, + select: TSelect, + id: string | number, + data: TData, + inputTypeName: string, + idFieldName: string, + patchFieldName: string, + connectionFieldsMap?: Record>, + extraKeys?: Record +): { document: string; variables: Record } { + const selections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + return { + document: buildInputMutationDocument({ + operationName, + mutationField, + inputTypeName, + resultSelections: [ + t.field({ + name: entityField, + selectionSet: t.selectionSet({ selections }), + }), + ], + }), + variables: { + input: { + [idFieldName]: id, + ...extraKeys, + [patchFieldName]: data, + }, + }, + }; +} + +export function buildFindOneDocument( + operationName: string, + queryField: string, + id: string | number, + select: TSelect, + idArgName: string, + idTypeName: string, + connectionFieldsMap?: Record> +): { document: string; variables: Record } { + const selections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + const variableDefinitions: VariableDefinitionNode[] = [ + t.variableDefinition({ + variable: t.variable({ name: idArgName }), + type: parseType(idTypeName), + }), + ]; + + const queryArgs: ArgumentNode[] = [ + t.argument({ + name: idArgName, + value: t.variable({ name: idArgName }), + }), + ]; + + const document = t.document({ + definitions: [ + t.operationDefinition({ + operation: OP_QUERY, + name: operationName + 'Query', + variableDefinitions, + selectionSet: t.selectionSet({ + selections: [ + t.field({ + name: queryField, + args: queryArgs, + selectionSet: t.selectionSet({ selections }), + }), + ], + }), + }), + ], + }); + + return { + document: print(document), + variables: { [idArgName]: id }, + }; +} + +export function buildDeleteDocument( + operationName: string, + mutationField: string, + entityField: string, + where: TWhere, + inputTypeName: string, + select?: TSelect, + connectionFieldsMap?: Record> +): { document: string; variables: Record } { + const entitySelections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + return { + document: buildInputMutationDocument({ + operationName, + mutationField, + inputTypeName, + resultSelections: [ + t.field({ + name: entityField, + selectionSet: t.selectionSet({ + selections: entitySelections, + }), + }), + ], + }), + variables: { + input: { + id: where.id, + }, + }, + }; +} + +export function buildDeleteByPkDocument( + operationName: string, + mutationField: string, + entityField: string, + keys: Record, + inputTypeName: string, + select?: TSelect, + connectionFieldsMap?: Record> +): { document: string; variables: Record } { + const entitySelections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + return { + document: buildInputMutationDocument({ + operationName, + mutationField, + inputTypeName, + resultSelections: [ + t.field({ + name: entityField, + selectionSet: t.selectionSet({ selections: entitySelections }), + }), + ], + }), + variables: { + input: keys, + }, + }; +} + +export function buildJunctionRemoveDocument( + operationName: string, + mutationField: string, + keys: Record, + inputTypeName: string +): { document: string; variables: Record } { + return { + document: buildInputMutationDocument({ + operationName, + mutationField, + inputTypeName, + resultSelections: [t.field({ name: 'clientMutationId' })], + }), + variables: { + input: keys, + }, + }; +} + +export function buildCustomDocument( + operationType: 'query' | 'mutation', + operationName: string, + fieldName: string, + select: TSelect, + args: TArgs, + variableDefinitions: Array<{ name: string; type: string }>, + connectionFieldsMap?: Record>, + entityType?: string +): { document: string; variables: Record } { + let actualSelect: TSelect = select; + let isConnection = false; + + if (isCustomSelectionWrapper(select)) { + actualSelect = select.select as TSelect; + isConnection = select.connection === true; + } + + const selections = actualSelect + ? buildSelections(actualSelect as Record, connectionFieldsMap, entityType) + : []; + + const variableDefs = variableDefinitions.map((definition) => + t.variableDefinition({ + variable: t.variable({ name: definition.name }), + type: parseType(definition.type), + }) + ); + const fieldArgs = variableDefinitions.map((definition) => + t.argument({ + name: definition.name, + value: t.variable({ name: definition.name }), + }) + ); + + const fieldSelections = isConnection ? buildConnectionSelections(selections) : selections; + + const document = t.document({ + definitions: [ + t.operationDefinition({ + operation: operationType === 'mutation' ? OP_MUTATION : OP_QUERY, + name: operationName, + variableDefinitions: variableDefs.length ? variableDefs : undefined, + selectionSet: t.selectionSet({ + selections: [ + t.field({ + name: fieldName, + args: fieldArgs.length ? fieldArgs : undefined, + selectionSet: fieldSelections.length + ? t.selectionSet({ selections: fieldSelections }) + : undefined, + }), + ], + }), + }), + ], + }); + + return { + document: print(document), + variables: (args ?? {}) as Record, + }; +} + +function isCustomSelectionWrapper( + value: unknown +): value is { select: Record; connection?: boolean } { + if (!value || typeof value !== 'object' || Array.isArray(value)) { + return false; + } + + const record = value as Record; + const keys = Object.keys(record); + + if (!keys.includes('select') || !keys.includes('connection')) { + return false; + } + + if (keys.some((key) => key !== 'select' && key !== 'connection')) { + return false; + } + + return !!record.select && typeof record.select === 'object' && !Array.isArray(record.select); +} + +// ============================================================================ +// Helper Functions +// ============================================================================ + +function buildArgs(args: Array): ArgumentNode[] { + return args.filter((arg): arg is ArgumentNode => arg !== null); +} + +function buildOptionalArg(name: string, value: number | string | undefined): ArgumentNode | null { + if (value === undefined) { + return null; + } + const valueNode = + typeof value === 'number' ? t.intValue({ value: value.toString() }) : t.stringValue({ value }); + return t.argument({ name, value: valueNode }); +} + +function buildEnumListArg(name: string, values: string[] | undefined): ArgumentNode | null { + if (!values || values.length === 0) { + return null; + } + return t.argument({ + name, + value: t.listValue({ + values: values.map((value) => buildEnumValue(value)), + }), + }); +} + +function buildEnumValue(value: string): EnumValueNode { + return { + kind: ENUM_VALUE_KIND, + value, + }; +} + +function buildPageInfoSelections(): FieldNode[] { + return [ + t.field({ name: 'hasNextPage' }), + t.field({ name: 'hasPreviousPage' }), + t.field({ name: 'startCursor' }), + t.field({ name: 'endCursor' }), + ]; +} + +function buildConnectionSelections(nodeSelections: FieldNode[]): FieldNode[] { + return [ + t.field({ + name: 'nodes', + selectionSet: t.selectionSet({ selections: nodeSelections }), + }), + t.field({ name: 'totalCount' }), + t.field({ + name: 'pageInfo', + selectionSet: t.selectionSet({ selections: buildPageInfoSelections() }), + }), + ]; +} + +interface VariableSpec { + varName: string; + argName?: string; + typeName?: string; + value: unknown; +} + +interface InputMutationConfig { + operationName: string; + mutationField: string; + inputTypeName: string; + resultSelections: FieldNode[]; +} + +function buildInputMutationDocument(config: InputMutationConfig): string { + const document = t.document({ + definitions: [ + t.operationDefinition({ + operation: OP_MUTATION, + name: config.operationName + 'Mutation', + variableDefinitions: [ + t.variableDefinition({ + variable: t.variable({ name: 'input' }), + type: parseType(config.inputTypeName + '!'), + }), + ], + selectionSet: t.selectionSet({ + selections: [ + t.field({ + name: config.mutationField, + args: [ + t.argument({ + name: 'input', + value: t.variable({ name: 'input' }), + }), + ], + selectionSet: t.selectionSet({ + selections: config.resultSelections, + }), + }), + ], + }), + }), + ], + }); + return print(document); +} + +function addVariable( + spec: VariableSpec, + definitions: VariableDefinitionNode[], + args: ArgumentNode[], + variables: Record +): void { + if (spec.value === undefined || !spec.typeName) return; + + definitions.push( + t.variableDefinition({ + variable: t.variable({ name: spec.varName }), + type: parseType(spec.typeName), + }) + ); + args.push( + t.argument({ + name: spec.argName ?? spec.varName, + value: t.variable({ name: spec.varName }), + }) + ); + variables[spec.varName] = spec.value; +} + +function buildValueAst( + value: unknown +): + | ReturnType + | ReturnType + | ReturnType + | ReturnType + | ReturnType + | ReturnType + | ReturnType + | EnumValueNode { + if (value === null) { + return t.nullValue(); + } + + if (typeof value === 'boolean') { + return t.booleanValue({ value }); + } + + if (typeof value === 'number') { + return Number.isInteger(value) + ? t.intValue({ value: value.toString() }) + : t.floatValue({ value: value.toString() }); + } + + if (typeof value === 'string') { + return t.stringValue({ value }); + } + + if (Array.isArray(value)) { + return t.listValue({ + values: value.map((item) => buildValueAst(item)), + }); + } + + if (typeof value === 'object' && value !== null) { + const obj = value as Record; + return t.objectValue({ + fields: Object.entries(obj).map(([key, val]) => + t.objectField({ + name: key, + value: buildValueAst(val), + }) + ), + }); + } + + throw new Error('Unsupported value type: ' + typeof value); +} + +// ============================================================================ +// Bulk Mutation Document Builders +// ============================================================================ + +export function buildBulkInsertDocument( + operationName: string, + mutationField: string, + select: TSelect, + data: TData[], + inputTypeName: string, + onConflict?: unknown, + connectionFieldsMap?: Record> +): { document: string; variables: Record } { + const selections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + return { + document: buildInputMutationDocument({ + operationName, + mutationField, + inputTypeName, + resultSelections: [ + t.field({ name: 'affectedCount' }), + t.field({ + name: 'returning', + selectionSet: t.selectionSet({ selections }), + }), + ], + }), + variables: { + input: { + values: data, + ...(onConflict ? { onConflict } : {}), + }, + }, + }; +} + +export function buildBulkUpsertDocument( + operationName: string, + mutationField: string, + select: TSelect, + data: TData[], + inputTypeName: string, + onConflict: unknown, + connectionFieldsMap?: Record> +): { document: string; variables: Record } { + const selections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + return { + document: buildInputMutationDocument({ + operationName, + mutationField, + inputTypeName, + resultSelections: [ + t.field({ name: 'affectedCount' }), + t.field({ + name: 'returning', + selectionSet: t.selectionSet({ selections }), + }), + ], + }), + variables: { + input: { + values: data, + onConflict, + }, + }, + }; +} + +export function buildBulkUpdateDocument( + operationName: string, + mutationField: string, + select: TSelect, + where: TWhere, + data: TData, + inputTypeName: string, + connectionFieldsMap?: Record> +): { document: string; variables: Record } { + const selections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + return { + document: buildInputMutationDocument({ + operationName, + mutationField, + inputTypeName, + resultSelections: [ + t.field({ name: 'affectedCount' }), + t.field({ + name: 'returning', + selectionSet: t.selectionSet({ selections }), + }), + ], + }), + variables: { + input: { + where, + patch: data, + }, + }, + }; +} + +export function buildBulkDeleteDocument( + operationName: string, + mutationField: string, + select: TSelect, + where: TWhere, + inputTypeName: string, + connectionFieldsMap?: Record> +): { document: string; variables: Record } { + const selections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + return { + document: buildInputMutationDocument({ + operationName, + mutationField, + inputTypeName, + resultSelections: [ + t.field({ name: 'affectedCount' }), + t.field({ + name: 'returning', + selectionSet: t.selectionSet({ selections }), + }), + ], + }), + variables: { + input: { + where, + }, + }, + }; +} diff --git a/sdk/constructive-cli/src/storage/orm/realtime.ts b/sdk/constructive-cli/src/storage/orm/realtime.ts new file mode 100644 index 0000000000..214eb56203 --- /dev/null +++ b/sdk/constructive-cli/src/storage/orm/realtime.ts @@ -0,0 +1,244 @@ +/** + * Realtime Manager - WebSocket subscription support + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +// Minimal type shims so this module compiles without graphql-ws +// installed. Consumers supply a WsClient via RealtimeConfig; +// the SDK itself never imports or requires graphql-ws. + +interface WsGraphQLError { + readonly message: string; + readonly [key: string]: unknown; +} + +interface WsExecutionResult> { + data?: TData | null; + errors?: readonly WsGraphQLError[]; + extensions?: Record; +} + +interface WsSink { + next(value: T): void; + error(error: unknown): void; + complete(): void; +} + +/** + * Minimal interface matching the graphql-ws Client. + * Consumers pass a concrete instance via RealtimeConfig.client. + */ +export interface WsClient { + subscribe>( + payload: { query: string; variables?: Record }, + sink: WsSink> + ): () => void; + dispose(): void; +} + +// ============================================================================ +// Types +// ============================================================================ + +/** The DML operation that triggered the subscription event */ +export type SubscriptionOperation = 'INSERT' | 'UPDATE' | 'DELETE'; + +/** Connection state of the WebSocket */ +export type ConnectionState = 'disconnected' | 'connecting' | 'connected' | 'reconnecting'; + +/** Listener for connection state changes */ +export type ConnectionStateListener = (state: ConnectionState) => void; + +/** Function returned by subscribe() to cancel the subscription */ +export type Unsubscribe = () => void; + +/** + * A realtime subscription event delivered to the client. + * + * @typeParam T - The row type of the subscribed table + */ +export interface SubscriptionEvent { + /** The DML operation that triggered this event */ + operation: SubscriptionOperation; + /** The current row data (null for DELETE if row is no longer visible) */ + data: T | null; + /** Previous field values (populated on UPDATE when available) */ + previousValues?: Partial; + /** Server-side timestamp of when the change occurred */ + timestamp: string; +} + +/** + * Options for creating a subscription. + * + * @typeParam T - The row type of the subscribed table + * @typeParam TFilter - The filter type for the table + */ +export interface SubscribeOptions> { + /** Server-side filter to limit which events are delivered */ + filter?: TFilter; + /** Called when a subscription event is received */ + onEvent: (event: SubscriptionEvent) => void; + /** Called when the subscription encounters an error */ + onError?: (error: Error) => void; + /** Called when the subscription completes (server-initiated close) */ + onComplete?: () => void; +} + +/** + * Metadata about a subscription field, used internally to map + * table names to GraphQL subscription field names and types. + */ +export interface SubscriptionFieldMeta { + /** The GraphQL subscription field name (e.g., 'onContactChanged') */ + fieldName: string; + /** The table name in the source schema (e.g., 'contact') */ + tableName: string; + /** The data field name inside the subscription payload (e.g., 'contact') */ + dataFieldName: string; +} + +/** + * Configuration for the realtime (WebSocket) connection. + * Pass this as the `realtime` option in OrmClientConfig. + * + * @example + * ```ts + * import { createClient } from 'graphql-ws'; + * + * const client = createOrmClient({ + * endpoint: 'https://api.example.com/graphql', + * realtime: { + * client: createClient({ url: 'wss://api.example.com/graphql' }), + * }, + * }); + * ``` + */ +export interface RealtimeConfig { + /** + * A graphql-ws Client instance (or any object satisfying WsClient). + * The consumer creates this themselves, giving full control over + * connection options, auth, and transport. + * + * @example + * ```ts + * import { createClient } from 'graphql-ws'; + * const wsClient = createClient({ url: 'wss://...' }); + * ``` + */ + client: WsClient; +} + +// ============================================================================ +// RealtimeManager +// ============================================================================ + +/** + * Manages a graphql-ws WebSocket client and multiplexes + * subscriptions over it. Created by OrmClient when `realtime` + * config is provided. + */ +export class RealtimeManager { + private wsClient: WsClient; + private connectionState: ConnectionState = 'disconnected'; + private stateListeners: Set = new Set(); + private activeSubscriptions = 0; + + constructor(config: RealtimeConfig) { + this.wsClient = config.client; + } + + /** + * Subscribe to a GraphQL subscription operation. + * Models call this with typed metadata and documents. + */ + subscribe( + meta: SubscriptionFieldMeta, + document: string, + variables: Record, + options: { + onEvent: (event: SubscriptionEvent) => void; + onError?: (error: Error) => void; + onComplete?: () => void; + } + ): Unsubscribe { + this.activeSubscriptions++; + let disposed = false; + + const cleanup = this.wsClient.subscribe>( + { query: document, variables }, + { + next: (result) => { + if (disposed) return; + if (result.errors) { + options.onError?.(new Error(result.errors.map((e) => e.message).join('; '))); + return; + } + + const payload = result.data?.[meta.fieldName] as + | { event?: string; [key: string]: unknown } + | undefined; + + if (!payload) return; + + const event: SubscriptionEvent = { + operation: (payload.event as SubscriptionOperation) ?? 'UPDATE', + data: (payload[meta.dataFieldName] as T) ?? null, + previousValues: payload.previousValues as Partial | undefined, + timestamp: (payload.timestamp as string) ?? new Date().toISOString(), + }; + options.onEvent(event); + }, + error: (err) => { + if (disposed) return; + options.onError?.(err instanceof Error ? err : new Error(String(err))); + }, + complete: () => { + if (disposed) return; + options.onComplete?.(); + }, + } + ); + + return () => { + if (disposed) return; + disposed = true; + this.activeSubscriptions--; + cleanup(); + }; + } + + /** Register a listener for connection state changes */ + onConnectionStateChange(listener: ConnectionStateListener): Unsubscribe { + this.stateListeners.add(listener); + return () => { + this.stateListeners.delete(listener); + }; + } + + /** Get current connection state */ + getConnectionState(): ConnectionState { + return this.connectionState; + } + + /** Number of active subscriptions */ + getActiveSubscriptionCount(): number { + return this.activeSubscriptions; + } + + /** Dispose the manager and close the WebSocket connection */ + dispose(): void { + this.wsClient.dispose(); + this.stateListeners.clear(); + this.activeSubscriptions = 0; + this.setConnectionState('disconnected'); + } + + private setConnectionState(state: ConnectionState): void { + if (this.connectionState === state) return; + this.connectionState = state; + for (const listener of this.stateListeners) { + listener(state); + } + } +} diff --git a/sdk/constructive-cli/src/storage/orm/select-types.ts b/sdk/constructive-cli/src/storage/orm/select-types.ts new file mode 100644 index 0000000000..4b39d7e820 --- /dev/null +++ b/sdk/constructive-cli/src/storage/orm/select-types.ts @@ -0,0 +1,169 @@ +/** + * Type utilities for select inference + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +export interface ConnectionResult { + nodes: T[]; + totalCount: number; + pageInfo: PageInfo; +} + +export interface PageInfo { + hasNextPage: boolean; + hasPreviousPage: boolean; + startCursor?: string | null; + endCursor?: string | null; +} + +export interface FindManyArgs { + select?: TSelect; + where?: TWhere; + orderBy?: TOrderBy[]; + first?: number; + last?: number; + after?: string; + before?: string; + offset?: number; +} + +export interface FindFirstArgs { + select?: TSelect; + where?: TWhere; + orderBy?: TOrderBy[]; +} + +export interface CreateArgs { + data: TData; + select?: TSelect; +} + +export interface UpdateArgs { + where: TWhere; + data: TData; + select?: TSelect; +} + +export type FindOneArgs = { + select?: TSelect; +} & Record; + +export interface DeleteArgs { + where: TWhere; + select?: TSelect; +} + +export interface BulkInsertArgs { + data: TData[]; + select?: TSelect; + onConflict?: TOnConflict; +} + +export interface BulkUpsertArgs { + data: TData[]; + select?: TSelect; + onConflict: TOnConflict; +} + +export interface BulkUpdateArgs { + where: TWhere; + data: TData; + select?: TSelect; +} + +export interface BulkDeleteArgs { + where: TWhere; + select?: TSelect; +} + +export interface BulkMutationResult { + affectedCount: number; + returning: T[]; +} + +type DepthLevel = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10; +type DecrementDepth = { + 0: 0; + 1: 0; + 2: 1; + 3: 2; + 4: 3; + 5: 4; + 6: 5; + 7: 6; + 8: 7; + 9: 8; + 10: 9; +}; + +/** + * Recursively validates select objects, rejecting unknown keys. + * + * NOTE: Depth is intentionally capped to avoid circular-instantiation issues + * in very large cyclic schemas. + */ +export type DeepExact = Depth extends 0 + ? T extends Shape + ? T + : never + : T extends Shape + ? Exclude extends never + ? { + [K in keyof T]: K extends keyof Shape + ? T[K] extends { select: infer NS } + ? Extract extends { + select?: infer ShapeNS; + } + ? DeepExact< + Omit & { + select: DeepExact, DecrementDepth[Depth]>; + }, + Extract, + DecrementDepth[Depth] + > + : never + : T[K] + : never; + } + : never + : never; + +/** + * Enforces exact select shape while keeping contextual typing on `S extends XxxSelect`. + * Use this as an intersection in overloads: + * `{ select: S } & StrictSelect`. + */ +export type StrictSelect = S extends DeepExact ? {} : never; + +/** + * Hook-optimized strict select variant. + * + * Uses a shallower recursion depth to keep editor autocomplete responsive + * in large schemas while still validating common nested-select mistakes. + */ +export type HookStrictSelect = S extends DeepExact ? {} : never; + +/** + * Infer result type from select configuration + */ +export type InferSelectResult = TSelect extends undefined + ? TEntity + : { + [K in keyof TSelect as TSelect[K] extends false | undefined + ? never + : K]: TSelect[K] extends true + ? K extends keyof TEntity + ? TEntity[K] + : never + : TSelect[K] extends { select: infer NestedSelect } + ? K extends keyof TEntity + ? NonNullable extends ConnectionResult + ? ConnectionResult> + : + | InferSelectResult, NestedSelect> + | (null extends TEntity[K] ? null : never) + : never + : K extends keyof TEntity + ? TEntity[K] + : never; + }; diff --git a/sdk/constructive-cli/src/storage/orm/types.ts b/sdk/constructive-cli/src/storage/orm/types.ts new file mode 100644 index 0000000000..7c1120bcdf --- /dev/null +++ b/sdk/constructive-cli/src/storage/orm/types.ts @@ -0,0 +1,8 @@ +/** + * Types re-export + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +// Re-export all types from input-types +export * from './input-types'; diff --git a/sdk/constructive-cli/src/usage/README.md b/sdk/constructive-cli/src/usage/README.md index 1eb722ea70..ae396f3ea0 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 a1c9a4e812..dcb40bd468 100644 --- a/sdk/constructive-cli/src/usage/cli/README.md +++ b/sdk/constructive-cli/src/usage/cli/README.md @@ -44,10 +44,13 @@ csdk auth set-token | `org-limit-default` | orgLimitDefault CRUD operations | | `org-limit-event` | orgLimitEvent CRUD operations | | `org-limit-warning` | orgLimitWarning CRUD operations | -| `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. | +| `capture-app-limit-defaults` | captureAppLimitDefaults | +| `capture-org-limit-defaults` | captureOrgLimitDefaults | +| `provision-bucket` | Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. | | `seed-app-limit-caps-defaults` | seedAppLimitCapsDefaults | | `seed-app-limit-defaults` | seedAppLimitDefaults | | `seed-org-limit-caps-defaults` | seedOrgLimitCapsDefaults | @@ -601,12 +604,27 @@ 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. -Reads the bucket config via RLS, then creates and configures -the S3 bucket with the appropriate privacy policies, CORS rules, -and lifecycle settings. +Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. - **Type:** mutation - **Arguments:** diff --git a/sdk/constructive-cli/src/usage/cli/commands.ts b/sdk/constructive-cli/src/usage/cli/commands.ts index 42ca3d0cfd..d997f5cb77 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 Reconcile an S3 bucket for a logical bucket in the database.\nReads the bucket config via RLS, then enqueues the same\nstorage:provision_bucket job used by the INSERT trigger. This is\nidempotent for an already-reconciled bucket; enqueue failures become\nGraphQL errors.\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/usage/cli/commands/capture-app-limit-defaults.ts b/sdk/constructive-cli/src/usage/cli/commands/capture-app-limit-defaults.ts new file mode 100644 index 0000000000..0656f568ba --- /dev/null +++ b/sdk/constructive-cli/src/usage/cli/commands/capture-app-limit-defaults.ts @@ -0,0 +1,30 @@ +/** + * 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'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'capture-app-limit-defaults - captureAppLimitDefaults\n\nUsage: capture-app-limit-defaults [OPTIONS]\n' + ); + process.exit(0); + } + const client = getClient(); + const result = await client.query.captureAppLimitDefaults().execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: captureAppLimitDefaults'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/usage/cli/commands/capture-org-limit-defaults.ts b/sdk/constructive-cli/src/usage/cli/commands/capture-org-limit-defaults.ts new file mode 100644 index 0000000000..68ccf23538 --- /dev/null +++ b/sdk/constructive-cli/src/usage/cli/commands/capture-org-limit-defaults.ts @@ -0,0 +1,30 @@ +/** + * 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'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'capture-org-limit-defaults - captureOrgLimitDefaults\n\nUsage: capture-org-limit-defaults [OPTIONS]\n' + ); + process.exit(0); + } + const client = getClient(); + const result = await client.query.captureOrgLimitDefaults().execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: captureOrgLimitDefaults'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/usage/cli/commands/provision-bucket.ts b/sdk/constructive-cli/src/usage/cli/commands/provision-bucket.ts index ecd2e539d5..0c54313d78 100644 --- a/sdk/constructive-cli/src/usage/cli/commands/provision-bucket.ts +++ b/sdk/constructive-cli/src/usage/cli/commands/provision-bucket.ts @@ -16,7 +16,7 @@ export default async ( try { if (argv.help || argv.h) { console.log( - '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\nUsage: provision-bucket [OPTIONS]\n' + 'provision-bucket - Reconcile an S3 bucket for a logical bucket in the database.\nReads the bucket config via RLS, then enqueues the same\nstorage:provision_bucket job used by the INSERT trigger. This is\nidempotent for an already-reconciled bucket; enqueue failures become\nGraphQL errors.\n\nUsage: provision-bucket [OPTIONS]\n' ); process.exit(0); } diff --git a/sdk/constructive-cli/src/usage/orm/README.md b/sdk/constructive-cli/src/usage/orm/README.md index c6ce7b9d31..945acdcb20 100644 --- a/sdk/constructive-cli/src/usage/orm/README.md +++ b/sdk/constructive-cli/src/usage/orm/README.md @@ -678,12 +678,35 @@ 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. -Reads the bucket config via RLS, then creates and configures -the S3 bucket with the appropriate privacy policies, CORS rules, -and lifecycle settings. +Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. - **Type:** mutation - **Arguments:** 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..98fcbd6020 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; @@ -2856,26 +2856,19 @@ export interface DatetimeFilter { } // ============ Payload/Return Types (for custom operations) ============ 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; + /** The logical bucket row that was queued for reconciliation. */ + bucketId: string; + bucketKey: string; + /** The reconciler job enqueued to provision this bucket. */ + jobId: string; + /** The physical bucket name already recorded, or null when reconciliation has not completed. */ + physicalName?: string | null; } export type ProvisionBucketPayloadSelect = { - accessType?: boolean; - bucketName?: boolean; - endpoint?: boolean; - error?: boolean; - provider?: boolean; - success?: boolean; + bucketId?: boolean; + bucketKey?: boolean; + jobId?: boolean; + physicalName?: boolean; }; export interface SeedAppLimitCapsDefaultsPayload { clientMutationId?: string | null; diff --git a/sdk/constructive-cli/src/usage/orm/mutation/index.ts b/sdk/constructive-cli/src/usage/orm/mutation/index.ts index 176d63791b..4c768de780 100644 --- a/sdk/constructive-cli/src/usage/orm/mutation/index.ts +++ b/sdk/constructive-cli/src/usage/orm/mutation/index.ts @@ -26,10 +26,11 @@ import type { import { connectionFieldsMap } from '../input-types'; /** * Variables for provisionBucket - * 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. + * Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. */ export interface ProvisionBucketVariables { input: ProvisionBucketInput; 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/README.md b/sdk/constructive-react/README.md index 8f0e36d55c..88fb345d86 100644 --- a/sdk/constructive-react/README.md +++ b/sdk/constructive-react/README.md @@ -19,4 +19,6 @@ | infra | - | React Query, ORM | [./src/infra/README.md](./src/infra/README.md) | | modules | - | React Query, ORM | [./src/modules/README.md](./src/modules/README.md) | | objects | - | React Query, ORM | [./src/objects/README.md](./src/objects/README.md) | +| remote | - | React Query, ORM | [./src/remote/README.md](./src/remote/README.md) | +| storage | - | React Query, ORM | [./src/storage/README.md](./src/storage/README.md) | | usage | - | React Query, ORM | [./src/usage/README.md](./src/usage/README.md) | diff --git a/sdk/constructive-react/src/.targets b/sdk/constructive-react/src/.targets index cf3103f66e..a76617a0f3 100644 --- a/sdk/constructive-react/src/.targets +++ b/sdk/constructive-react/src/.targets @@ -1 +1 @@ -["admin","agent","api","auth","compute","config","infra","modules","objects","usage"] +["admin","agent","api","auth","compute","config","infra","modules","objects","remote","storage","usage"] diff --git a/sdk/constructive-react/src/admin/README.md b/sdk/constructive-react/src/admin/README.md index 1cc2b65354..7c75cafea5 100644 --- a/sdk/constructive-react/src/admin/README.md +++ b/sdk/constructive-react/src/admin/README.md @@ -8,8 +8,8 @@ ## Overview -- **Tables:** 42 -- **Custom queries:** 9 +- **Tables:** 26 +- **Custom queries:** 2 - **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 b7fcd31f1c..fb2dc6797f 100644 --- a/sdk/constructive-react/src/admin/hooks/README.md +++ b/sdk/constructive-react/src/admin/hooks/README.md @@ -37,21 +37,11 @@ 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 | -| `useAppCapabilitiesQuery` | Query | Defines available capabilities as named bits within a bitmask, used by the RBAC system for access control | -| `useAppCapabilityQuery` | Query | Defines available capabilities as named bits within a bitmask, used by the RBAC system for access control | -| `useCreateAppCapabilityMutation` | Mutation | Defines available capabilities as named bits within a bitmask, used by the RBAC system for access control | -| `useUpdateAppCapabilityMutation` | Mutation | Defines available capabilities as named bits within a bitmask, used by the RBAC system for access control | -| `useDeleteAppCapabilityMutation` | Mutation | Defines available capabilities as named bits within a bitmask, used by the RBAC system for access control | | `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 | -| `useAppCapabilityDefaultsQuery` | Query | Stores the default capability bitmask assigned to new members upon joining | -| `useAppCapabilityDefaultQuery` | Query | Stores the default capability bitmask assigned to new members upon joining | -| `useCreateAppCapabilityDefaultMutation` | Mutation | Stores the default capability bitmask assigned to new members upon joining | -| `useUpdateAppCapabilityDefaultMutation` | Mutation | Stores the default capability bitmask assigned to new members upon joining | -| `useDeleteAppCapabilityDefaultMutation` | Mutation | Stores the default capability bitmask assigned to new members upon joining | | `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 | @@ -82,41 +72,11 @@ function App() { | `useCreateAppMembershipDefaultMutation` | Mutation | Default membership settings per entity, controlling initial approval and verification state for new members | | `useUpdateAppMembershipDefaultMutation` | Mutation | Default membership settings per entity, controlling initial approval and verification state for new members | | `useDeleteAppMembershipDefaultMutation` | Mutation | Default membership settings per entity, controlling initial approval and verification state for new members | -| `useAppMembershipProfilesQuery` | Query | Every profile a membership holds; memberships.profile_id points at one of them | -| `useAppMembershipProfileQuery` | Query | Every profile a membership holds; memberships.profile_id points at one of them | -| `useCreateAppMembershipProfileMutation` | Mutation | Every profile a membership holds; memberships.profile_id points at one of them | -| `useUpdateAppMembershipProfileMutation` | Mutation | Every profile a membership holds; memberships.profile_id points at one of them | -| `useDeleteAppMembershipProfileMutation` | Mutation | Every profile a membership holds; memberships.profile_id points at one of them | | `useAppOwnerGrantsQuery` | Query | Records of ownership transfers and grants between members | | `useAppOwnerGrantQuery` | Query | Records of ownership transfers and grants between members | | `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 | -| `useAppProfileCapabilitiesQuery` | Query | Join table linking profiles to individual capabilities they include | -| `useAppProfileCapabilityQuery` | Query | Join table linking profiles to individual capabilities they include | -| `useCreateAppProfileCapabilityMutation` | Mutation | Join table linking profiles to individual capabilities they include | -| `useUpdateAppProfileCapabilityMutation` | Mutation | Join table linking profiles to individual capabilities they include | -| `useDeleteAppProfileCapabilityMutation` | Mutation | Join table linking profiles to individual capabilities they include | -| `useAppProfilesQuery` | Query | Named capability bundles (roles) that group multiple capabilities into reusable profiles | -| `useAppProfileQuery` | Query | Named capability bundles (roles) that group multiple capabilities into reusable profiles | -| `useCreateAppProfileMutation` | Mutation | Named capability bundles (roles) that group multiple capabilities into reusable profiles | -| `useUpdateAppProfileMutation` | Mutation | Named capability bundles (roles) that group multiple capabilities into reusable profiles | -| `useDeleteAppProfileMutation` | Mutation | Named capability bundles (roles) that group multiple capabilities into reusable profiles | -| `useAppProfileDefinitionGrantsQuery` | Query | Audit log of capability additions and removals from profile definitions | -| `useAppProfileDefinitionGrantQuery` | Query | Audit log of capability additions and removals from profile definitions | -| `useCreateAppProfileDefinitionGrantMutation` | Mutation | Audit log of capability additions and removals from profile definitions | -| `useUpdateAppProfileDefinitionGrantMutation` | Mutation | Audit log of capability additions and removals from profile definitions | -| `useDeleteAppProfileDefinitionGrantMutation` | Mutation | Audit log of capability additions and removals from profile definitions | -| `useAppProfileGrantsQuery` | Query | Audit log of profile assignments and revocations for members | -| `useAppProfileGrantQuery` | Query | Audit log of profile assignments and revocations for members | -| `useCreateAppProfileGrantMutation` | Mutation | Audit log of profile assignments and revocations for members | -| `useUpdateAppProfileGrantMutation` | Mutation | Audit log of profile assignments and revocations for members | -| `useDeleteAppProfileGrantMutation` | Mutation | Audit log of profile assignments and revocations for members | -| `useAppProfileTemplatesQuery` | Query | Template profiles that are automatically seeded into new entities when created | -| `useAppProfileTemplateQuery` | Query | Template profiles that are automatically seeded into new entities when created | -| `useCreateAppProfileTemplateMutation` | Mutation | Template profiles that are automatically seeded into new entities when created | -| `useUpdateAppProfileTemplateMutation` | Mutation | Template profiles that are automatically seeded into new entities when created | -| `useDeleteAppProfileTemplateMutation` | Mutation | Template profiles that are automatically seeded into new entities when created | | `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) | @@ -127,21 +87,11 @@ 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 | -| `useOrgCapabilitiesQuery` | Query | Defines available capabilities as named bits within a bitmask, used by the RBAC system for access control | -| `useOrgCapabilityQuery` | Query | Defines available capabilities as named bits within a bitmask, used by the RBAC system for access control | -| `useCreateOrgCapabilityMutation` | Mutation | Defines available capabilities as named bits within a bitmask, used by the RBAC system for access control | -| `useUpdateOrgCapabilityMutation` | Mutation | Defines available capabilities as named bits within a bitmask, used by the RBAC system for access control | -| `useDeleteOrgCapabilityMutation` | Mutation | Defines available capabilities as named bits within a bitmask, used by the RBAC system for access control | | `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 | -| `useOrgCapabilityDefaultsQuery` | Query | Stores the default capability bitmask assigned to new members upon joining | -| `useOrgCapabilityDefaultQuery` | Query | Stores the default capability bitmask assigned to new members upon joining | -| `useCreateOrgCapabilityDefaultMutation` | Mutation | Stores the default capability bitmask assigned to new members upon joining | -| `useUpdateOrgCapabilityDefaultMutation` | Mutation | Stores the default capability bitmask assigned to new members upon joining | -| `useDeleteOrgCapabilityDefaultMutation` | Mutation | Stores the default capability bitmask assigned to new members upon joining | | `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 | @@ -196,11 +146,6 @@ function App() { | `useCreateOrgMembershipDefaultMutation` | Mutation | Default membership settings per entity, controlling initial approval and verification state for new members | | `useUpdateOrgMembershipDefaultMutation` | Mutation | Default membership settings per entity, controlling initial approval and verification state for new members | | `useDeleteOrgMembershipDefaultMutation` | Mutation | Default membership settings per entity, controlling initial approval and verification state for new members | -| `useOrgMembershipProfilesQuery` | Query | Every profile a membership holds; memberships.profile_id points at one of them | -| `useOrgMembershipProfileQuery` | Query | Every profile a membership holds; memberships.profile_id points at one of them | -| `useCreateOrgMembershipProfileMutation` | Mutation | Every profile a membership holds; memberships.profile_id points at one of them | -| `useUpdateOrgMembershipProfileMutation` | Mutation | Every profile a membership holds; memberships.profile_id points at one of them | -| `useDeleteOrgMembershipProfileMutation` | Mutation | Every profile a membership holds; memberships.profile_id points at one of them | | `useOrgMembershipSettingsQuery` | Query | Per-entity settings for the memberships module | | `useOrgMembershipSettingQuery` | Query | Per-entity settings for the memberships module | | `useCreateOrgMembershipSettingMutation` | Mutation | Per-entity settings for the memberships module | @@ -211,44 +156,13 @@ 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 | -| `useOrgProfileCapabilitiesQuery` | Query | Join table linking profiles to individual capabilities they include | -| `useOrgProfileCapabilityQuery` | Query | Join table linking profiles to individual capabilities they include | -| `useCreateOrgProfileCapabilityMutation` | Mutation | Join table linking profiles to individual capabilities they include | -| `useUpdateOrgProfileCapabilityMutation` | Mutation | Join table linking profiles to individual capabilities they include | -| `useDeleteOrgProfileCapabilityMutation` | Mutation | Join table linking profiles to individual capabilities they include | -| `useOrgProfilesQuery` | Query | Named capability bundles (roles) that group multiple capabilities into reusable profiles | -| `useOrgProfileQuery` | Query | Named capability bundles (roles) that group multiple capabilities into reusable profiles | -| `useCreateOrgProfileMutation` | Mutation | Named capability bundles (roles) that group multiple capabilities into reusable profiles | -| `useUpdateOrgProfileMutation` | Mutation | Named capability bundles (roles) that group multiple capabilities into reusable profiles | -| `useDeleteOrgProfileMutation` | Mutation | Named capability bundles (roles) that group multiple capabilities into reusable profiles | -| `useOrgProfileDefinitionGrantsQuery` | Query | Audit log of capability additions and removals from profile definitions | -| `useOrgProfileDefinitionGrantQuery` | Query | Audit log of capability additions and removals from profile definitions | -| `useCreateOrgProfileDefinitionGrantMutation` | Mutation | Audit log of capability additions and removals from profile definitions | -| `useUpdateOrgProfileDefinitionGrantMutation` | Mutation | Audit log of capability additions and removals from profile definitions | -| `useDeleteOrgProfileDefinitionGrantMutation` | Mutation | Audit log of capability additions and removals from profile definitions | -| `useOrgProfileGrantsQuery` | Query | Audit log of profile assignments and revocations for members | -| `useOrgProfileGrantQuery` | Query | Audit log of profile assignments and revocations for members | -| `useCreateOrgProfileGrantMutation` | Mutation | Audit log of profile assignments and revocations for members | -| `useUpdateOrgProfileGrantMutation` | Mutation | Audit log of profile assignments and revocations for members | -| `useDeleteOrgProfileGrantMutation` | Mutation | Audit log of profile assignments and revocations for members | -| `useOrgProfileTemplatesQuery` | Query | Template profiles that are automatically seeded into new entities when created | -| `useOrgProfileTemplateQuery` | Query | Template profiles that are automatically seeded into new entities when created | -| `useCreateOrgProfileTemplateMutation` | Mutation | Template profiles that are automatically seeded into new entities when created | -| `useUpdateOrgProfileTemplateMutation` | Mutation | Template profiles that are automatically seeded into new entities when created | -| `useDeleteOrgProfileTemplateMutation` | Mutation | Template profiles that are automatically seeded into new entities when created | -| `useAppCapabilitiesGetByMaskQuery` | Query | Reads and enables pagination through a set of `AppCapability`. | -| `useAppCapabilitiesGetMaskQuery` | Query | appCapabilitiesGetMask | -| `useAppCapabilitiesGetMaskByNamesQuery` | Query | appCapabilitiesGetMaskByNames | -| `useAppCapabilitiesGetPaddedMaskQuery` | Query | appCapabilitiesGetPaddedMask | -| `useOrgCapabilitiesGetByMaskQuery` | Query | Reads and enables pagination through a set of `OrgCapability`. | -| `useOrgCapabilitiesGetMaskQuery` | Query | orgCapabilitiesGetMask | -| `useOrgCapabilitiesGetMaskByNamesQuery` | Query | orgCapabilitiesGetMaskByNames | -| `useOrgCapabilitiesGetPaddedMaskQuery` | Query | orgCapabilitiesGetPaddedMask | +| `useGetOrganizationIdQuery` | Query | getOrganizationId | | `useOrgIsManagerOfQuery` | Query | orgIsManagerOf | -| `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. | +| `useProvisionBucketMutation` | Mutation | Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. | | `useSubmitAppInviteCodeMutation` | Mutation | submitAppInviteCode | | `useSubmitOrgInviteCodeMutation` | Mutation | submitOrgInviteCode | @@ -275,27 +189,6 @@ const { mutate: create } = useCreateAppAdminGrantMutation({ create({ actorId: '', grantorId: '', isGrant: '' }); ``` -### AppCapability - -```typescript -// List all appCapabilities -const { data, isLoading } = useAppCapabilitiesQuery({ - selection: { fields: { bitnum: true, bitstr: true, description: true, id: true, kind: true, name: true } }, -}); - -// Get one appCapability -const { data: item } = useAppCapabilityQuery({ - id: '', - selection: { fields: { bitnum: true, bitstr: true, description: true, id: true, kind: true, name: true } }, -}); - -// Create a appCapability -const { mutate: create } = useCreateAppCapabilityMutation({ - selection: { fields: { id: true } }, -}); -create({ bitnum: '', bitstr: '', description: '', kind: '', name: '' }); -``` - ### AppCapabilityDefaultCapability ```typescript @@ -317,27 +210,6 @@ const { mutate: create } = useCreateAppCapabilityDefaultCapabilityMutation({ create({ capabilityId: '' }); ``` -### AppCapabilityDefault - -```typescript -// List all appCapabilityDefaults -const { data, isLoading } = useAppCapabilityDefaultsQuery({ - selection: { fields: { capabilities: true, id: true } }, -}); - -// Get one appCapabilityDefault -const { data: item } = useAppCapabilityDefaultQuery({ - id: '', - selection: { fields: { capabilities: true, id: true } }, -}); - -// Create a appCapabilityDefault -const { mutate: create } = useCreateAppCapabilityDefaultMutation({ - selection: { fields: { id: true } }, -}); -create({ capabilities: '' }); -``` - ### AppCapabilityDefaultGrant ```typescript @@ -427,20 +299,20 @@ create({ channel: '', data: '', email: '', expiresAt: '', - 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 } }, + selection: { fields: { actorId: true, capabilities: true, createdAt: true, createdBy: true, createdByPrincipal: 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, updatedByPrincipal: true } }, }); // Create a appMembership const { mutate: create } = useCreateAppMembershipMutation({ selection: { fields: { id: true } }, }); -create({ actorId: '', capabilities: '', createdBy: '', granted: '', isActive: '', isAdmin: '', isApproved: '', isBanned: '', isDisabled: '', isOwner: '', isVerified: '', profileId: '', updatedBy: '' }); +create({ actorId: '', capabilities: '', createdBy: '', createdByPrincipal: '', granted: '', isActive: '', isAdmin: '', isApproved: '', isBanned: '', isDisabled: '', isOwner: '', isVerified: '', profileId: '', updatedBy: '', updatedByPrincipal: '' }); ``` ### AppMembershipDefault @@ -448,41 +320,20 @@ create({ actorId: '', capabilities: '', createdBy: '', gr ```typescript // List all appMembershipDefaults const { data, isLoading } = useAppMembershipDefaultsQuery({ - selection: { fields: { createdAt: true, createdBy: true, id: true, isApproved: true, isVerified: true, updatedAt: true, updatedBy: true } }, + selection: { fields: { createdAt: true, createdBy: true, createdByPrincipal: true, id: true, isApproved: true, isVerified: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); // Get one appMembershipDefault const { data: item } = useAppMembershipDefaultQuery({ id: '', - selection: { fields: { createdAt: true, createdBy: true, id: true, isApproved: true, isVerified: true, updatedAt: true, updatedBy: true } }, + selection: { fields: { createdAt: true, createdBy: true, createdByPrincipal: true, id: true, isApproved: true, isVerified: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); // Create a appMembershipDefault const { mutate: create } = useCreateAppMembershipDefaultMutation({ selection: { fields: { id: true } }, }); -create({ createdBy: '', isApproved: '', isVerified: '', updatedBy: '' }); -``` - -### AppMembershipProfile - -```typescript -// List all appMembershipProfiles -const { data, isLoading } = useAppMembershipProfilesQuery({ - selection: { fields: { actorId: true, createdAt: true, id: true, membershipId: true, profileId: true, updatedAt: true } }, -}); - -// Get one appMembershipProfile -const { data: item } = useAppMembershipProfileQuery({ - id: '', - selection: { fields: { actorId: true, createdAt: true, id: true, membershipId: true, profileId: true, updatedAt: true } }, -}); - -// Create a appMembershipProfile -const { mutate: create } = useCreateAppMembershipProfileMutation({ - selection: { fields: { id: true } }, -}); -create({ actorId: '', membershipId: '', profileId: '' }); +create({ createdBy: '', createdByPrincipal: '', isApproved: '', isVerified: '', updatedBy: '', updatedByPrincipal: '' }); ``` ### AppOwnerGrant @@ -506,111 +357,6 @@ const { mutate: create } = useCreateAppOwnerGrantMutation({ create({ actorId: '', grantorId: '', isGrant: '' }); ``` -### AppProfileCapability - -```typescript -// List all appProfileCapabilities -const { data, isLoading } = useAppProfileCapabilitiesQuery({ - selection: { fields: { capabilityId: true, createdAt: true, id: true, profileId: true, updatedAt: true } }, -}); - -// Get one appProfileCapability -const { data: item } = useAppProfileCapabilityQuery({ - id: '', - selection: { fields: { capabilityId: true, createdAt: true, id: true, profileId: true, updatedAt: true } }, -}); - -// Create a appProfileCapability -const { mutate: create } = useCreateAppProfileCapabilityMutation({ - selection: { fields: { id: true } }, -}); -create({ capabilityId: '', profileId: '' }); -``` - -### AppProfile - -```typescript -// List all appProfiles -const { data, isLoading } = useAppProfilesQuery({ - selection: { fields: { capabilities: true, createdAt: true, description: true, id: true, isDefault: true, isSystem: true, name: true, slug: true, updatedAt: true } }, -}); - -// Get one appProfile -const { data: item } = useAppProfileQuery({ - id: '', - selection: { fields: { capabilities: true, createdAt: true, description: true, id: true, isDefault: true, isSystem: true, name: true, slug: true, updatedAt: true } }, -}); - -// Create a appProfile -const { mutate: create } = useCreateAppProfileMutation({ - selection: { fields: { id: true } }, -}); -create({ capabilities: '', description: '', isDefault: '', isSystem: '', name: '', slug: '' }); -``` - -### AppProfileDefinitionGrant - -```typescript -// List all appProfileDefinitionGrants -const { data, isLoading } = useAppProfileDefinitionGrantsQuery({ - selection: { fields: { capabilityId: true, createdAt: true, grantorId: true, id: true, isGrant: true, profileId: true, updatedAt: true } }, -}); - -// Get one appProfileDefinitionGrant -const { data: item } = useAppProfileDefinitionGrantQuery({ - id: '', - selection: { fields: { capabilityId: true, createdAt: true, grantorId: true, id: true, isGrant: true, profileId: true, updatedAt: true } }, -}); - -// Create a appProfileDefinitionGrant -const { mutate: create } = useCreateAppProfileDefinitionGrantMutation({ - selection: { fields: { id: true } }, -}); -create({ capabilityId: '', grantorId: '', isGrant: '', profileId: '' }); -``` - -### AppProfileGrant - -```typescript -// List all appProfileGrants -const { data, isLoading } = useAppProfileGrantsQuery({ - selection: { fields: { createdAt: true, grantorId: true, id: true, isGrant: true, membershipId: true, profileId: true, updatedAt: true } }, -}); - -// Get one appProfileGrant -const { data: item } = useAppProfileGrantQuery({ - id: '', - selection: { fields: { createdAt: true, grantorId: true, id: true, isGrant: true, membershipId: true, profileId: true, updatedAt: true } }, -}); - -// Create a appProfileGrant -const { mutate: create } = useCreateAppProfileGrantMutation({ - selection: { fields: { id: true } }, -}); -create({ grantorId: '', isGrant: '', membershipId: '', profileId: '' }); -``` - -### AppProfileTemplate - -```typescript -// List all appProfileTemplates -const { data, isLoading } = useAppProfileTemplatesQuery({ - selection: { fields: { capabilities: true, createdAt: true, description: true, id: true, isDefault: true, name: true, slug: true, updatedAt: true } }, -}); - -// Get one appProfileTemplate -const { data: item } = useAppProfileTemplateQuery({ - id: '', - selection: { fields: { capabilities: true, createdAt: true, description: true, id: true, isDefault: true, name: true, slug: true, updatedAt: true } }, -}); - -// Create a appProfileTemplate -const { mutate: create } = useCreateAppProfileTemplateMutation({ - selection: { fields: { id: true } }, -}); -create({ capabilities: '', description: '', isDefault: '', name: '', slug: '' }); -``` - ### MembershipType ```typescript @@ -653,27 +399,6 @@ const { mutate: create } = useCreateOrgAdminGrantMutation({ create({ actorId: '', entityId: '', grantorId: '', isGrant: '' }); ``` -### OrgCapability - -```typescript -// List all orgCapabilities -const { data, isLoading } = useOrgCapabilitiesQuery({ - selection: { fields: { bitnum: true, bitstr: true, description: true, id: true, kind: true, name: true } }, -}); - -// Get one orgCapability -const { data: item } = useOrgCapabilityQuery({ - id: '', - selection: { fields: { bitnum: true, bitstr: true, description: true, id: true, kind: true, name: true } }, -}); - -// Create a orgCapability -const { mutate: create } = useCreateOrgCapabilityMutation({ - selection: { fields: { id: true } }, -}); -create({ bitnum: '', bitstr: '', description: '', kind: '', name: '' }); -``` - ### OrgCapabilityDefaultCapability ```typescript @@ -695,27 +420,6 @@ const { mutate: create } = useCreateOrgCapabilityDefaultCapabilityMutation({ create({ capabilityId: '', entityId: '' }); ``` -### OrgCapabilityDefault - -```typescript -// List all orgCapabilityDefaults -const { data, isLoading } = useOrgCapabilityDefaultsQuery({ - selection: { fields: { capabilities: true, entityId: true, id: true } }, -}); - -// Get one orgCapabilityDefault -const { data: item } = useOrgCapabilityDefaultQuery({ - id: '', - selection: { fields: { capabilities: true, entityId: true, id: true } }, -}); - -// Create a orgCapabilityDefault -const { mutate: create } = useCreateOrgCapabilityDefaultMutation({ - selection: { fields: { id: true } }, -}); -create({ capabilities: '', entityId: '' }); -``` - ### OrgCapabilityDefaultGrant ```typescript @@ -919,20 +623,20 @@ create({ actorId: '', bio: '', displayName: '', email: '', - 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 } }, + selection: { fields: { actorId: true, capabilities: true, createdAt: true, createdBy: true, createdByPrincipal: 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, updatedByPrincipal: true } }, }); // Create a orgMembership const { mutate: create } = useCreateOrgMembershipMutation({ selection: { fields: { id: true } }, }); -create({ actorId: '', capabilities: '', createdBy: '', entityId: '', granted: '', isActive: '', isAdmin: '', isApproved: '', isBanned: '', isDisabled: '', isExternal: '', isOwner: '', isReadOnly: '', profileId: '', updatedBy: '' }); +create({ actorId: '', capabilities: '', createdBy: '', createdByPrincipal: '', entityId: '', granted: '', isActive: '', isAdmin: '', isApproved: '', isBanned: '', isDisabled: '', isExternal: '', isOwner: '', isReadOnly: '', profileId: '', updatedBy: '', updatedByPrincipal: '' }); ``` ### OrgMembershipDefault @@ -940,41 +644,20 @@ create({ actorId: '', capabilities: '', createdBy: '', en ```typescript // List all orgMembershipDefaults const { data, isLoading } = useOrgMembershipDefaultsQuery({ - selection: { fields: { createdAt: true, createdBy: true, entityId: true, id: true, isApproved: true, updatedAt: true, updatedBy: true } }, + selection: { fields: { createdAt: true, createdBy: true, createdByPrincipal: true, entityId: true, id: true, isApproved: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); // Get one orgMembershipDefault const { data: item } = useOrgMembershipDefaultQuery({ id: '', - selection: { fields: { createdAt: true, createdBy: true, entityId: true, id: true, isApproved: true, updatedAt: true, updatedBy: true } }, + selection: { fields: { createdAt: true, createdBy: true, createdByPrincipal: true, entityId: true, id: true, isApproved: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); // Create a orgMembershipDefault const { mutate: create } = useCreateOrgMembershipDefaultMutation({ selection: { fields: { id: true } }, }); -create({ createdBy: '', entityId: '', isApproved: '', updatedBy: '' }); -``` - -### OrgMembershipProfile - -```typescript -// List all orgMembershipProfiles -const { data, isLoading } = useOrgMembershipProfilesQuery({ - selection: { fields: { actorId: true, createdAt: true, id: true, membershipId: true, profileId: true, updatedAt: true } }, -}); - -// Get one orgMembershipProfile -const { data: item } = useOrgMembershipProfileQuery({ - id: '', - selection: { fields: { actorId: true, createdAt: true, id: true, membershipId: true, profileId: true, updatedAt: true } }, -}); - -// Create a orgMembershipProfile -const { mutate: create } = useCreateOrgMembershipProfileMutation({ - selection: { fields: { id: true } }, -}); -create({ actorId: '', membershipId: '', profileId: '' }); +create({ createdBy: '', createdByPrincipal: '', entityId: '', isApproved: '', updatedBy: '', updatedByPrincipal: '' }); ``` ### OrgMembershipSetting @@ -982,20 +665,20 @@ create({ actorId: '', membershipId: '', profileId: '' }); ```typescript // List all orgMembershipSettings const { data, isLoading } = useOrgMembershipSettingsQuery({ - selection: { fields: { allowExternalMembers: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, createChildCascadeOwners: true, createdAt: true, createdBy: true, deleteMemberCascadeChildren: true, entityId: true, id: true, inviteProfileAssignmentMode: true, limitAllocationMode: true, populateMemberEmail: true, updatedAt: true, updatedBy: true } }, + selection: { fields: { allowExternalMembers: true, allowPrincipalOwnedApiKeys: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, createChildCascadeOwners: true, createdAt: true, createdBy: true, createdByPrincipal: true, deleteMemberCascadeChildren: true, entityId: true, id: true, inviteProfileAssignmentMode: true, limitAllocationMode: true, populateMemberEmail: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); // Get one orgMembershipSetting const { data: item } = useOrgMembershipSettingQuery({ id: '', - selection: { fields: { allowExternalMembers: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, createChildCascadeOwners: true, createdAt: true, createdBy: true, deleteMemberCascadeChildren: true, entityId: true, id: true, inviteProfileAssignmentMode: true, limitAllocationMode: true, populateMemberEmail: true, updatedAt: true, updatedBy: true } }, + selection: { fields: { allowExternalMembers: true, allowPrincipalOwnedApiKeys: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, createChildCascadeOwners: true, createdAt: true, createdBy: true, createdByPrincipal: true, deleteMemberCascadeChildren: true, entityId: true, id: true, inviteProfileAssignmentMode: true, limitAllocationMode: true, populateMemberEmail: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); // Create a orgMembershipSetting const { mutate: create } = useCreateOrgMembershipSettingMutation({ selection: { fields: { id: true } }, }); -create({ allowExternalMembers: '', createChildCascadeAdmins: '', createChildCascadeMembers: '', createChildCascadeOwners: '', createdBy: '', deleteMemberCascadeChildren: '', entityId: '', inviteProfileAssignmentMode: '', limitAllocationMode: '', populateMemberEmail: '', updatedBy: '' }); +create({ allowExternalMembers: '', allowPrincipalOwnedApiKeys: '', createChildCascadeAdmins: '', createChildCascadeMembers: '', createChildCascadeOwners: '', createdBy: '', createdByPrincipal: '', deleteMemberCascadeChildren: '', entityId: '', inviteProfileAssignmentMode: '', limitAllocationMode: '', populateMemberEmail: '', updatedBy: '', updatedByPrincipal: '' }); ``` ### OrgOwnerGrant @@ -1019,206 +702,19 @@ const { mutate: create } = useCreateOrgOwnerGrantMutation({ create({ actorId: '', entityId: '', grantorId: '', isGrant: '' }); ``` -### OrgProfileCapability - -```typescript -// List all orgProfileCapabilities -const { data, isLoading } = useOrgProfileCapabilitiesQuery({ - selection: { fields: { capabilityId: true, createdAt: true, id: true, profileId: true, updatedAt: true } }, -}); - -// Get one orgProfileCapability -const { data: item } = useOrgProfileCapabilityQuery({ - id: '', - selection: { fields: { capabilityId: true, createdAt: true, id: true, profileId: true, updatedAt: true } }, -}); - -// Create a orgProfileCapability -const { mutate: create } = useCreateOrgProfileCapabilityMutation({ - selection: { fields: { id: true } }, -}); -create({ capabilityId: '', profileId: '' }); -``` - -### OrgProfile - -```typescript -// List all orgProfiles -const { data, isLoading } = useOrgProfilesQuery({ - selection: { fields: { capabilities: true, createdAt: true, description: true, entityId: true, id: true, isDefault: true, isSystem: true, name: true, slug: true, updatedAt: true } }, -}); - -// Get one orgProfile -const { data: item } = useOrgProfileQuery({ - id: '', - selection: { fields: { capabilities: true, createdAt: true, description: true, entityId: true, id: true, isDefault: true, isSystem: true, name: true, slug: true, updatedAt: true } }, -}); - -// Create a orgProfile -const { mutate: create } = useCreateOrgProfileMutation({ - selection: { fields: { id: true } }, -}); -create({ capabilities: '', description: '', entityId: '', isDefault: '', isSystem: '', name: '', slug: '' }); -``` - -### OrgProfileDefinitionGrant - -```typescript -// List all orgProfileDefinitionGrants -const { data, isLoading } = useOrgProfileDefinitionGrantsQuery({ - selection: { fields: { capabilityId: true, createdAt: true, grantorId: true, id: true, isGrant: true, profileId: true, updatedAt: true } }, -}); - -// Get one orgProfileDefinitionGrant -const { data: item } = useOrgProfileDefinitionGrantQuery({ - id: '', - selection: { fields: { capabilityId: true, createdAt: true, grantorId: true, id: true, isGrant: true, profileId: true, updatedAt: true } }, -}); - -// Create a orgProfileDefinitionGrant -const { mutate: create } = useCreateOrgProfileDefinitionGrantMutation({ - selection: { fields: { id: true } }, -}); -create({ capabilityId: '', grantorId: '', isGrant: '', profileId: '' }); -``` - -### OrgProfileGrant - -```typescript -// List all orgProfileGrants -const { data, isLoading } = useOrgProfileGrantsQuery({ - selection: { fields: { createdAt: true, entityId: true, grantorId: true, id: true, isGrant: true, membershipId: true, profileId: true, updatedAt: true } }, -}); - -// Get one orgProfileGrant -const { data: item } = useOrgProfileGrantQuery({ - id: '', - selection: { fields: { createdAt: true, entityId: true, grantorId: true, id: true, isGrant: true, membershipId: true, profileId: true, updatedAt: true } }, -}); - -// Create a orgProfileGrant -const { mutate: create } = useCreateOrgProfileGrantMutation({ - selection: { fields: { id: true } }, -}); -create({ entityId: '', grantorId: '', isGrant: '', membershipId: '', profileId: '' }); -``` - -### OrgProfileTemplate - -```typescript -// List all orgProfileTemplates -const { data, isLoading } = useOrgProfileTemplatesQuery({ - selection: { fields: { capabilities: true, createdAt: true, description: true, id: true, isDefault: true, name: true, slug: true, updatedAt: true } }, -}); - -// Get one orgProfileTemplate -const { data: item } = useOrgProfileTemplateQuery({ - id: '', - selection: { fields: { capabilities: true, createdAt: true, description: true, id: true, isDefault: true, name: true, slug: true, updatedAt: true } }, -}); - -// Create a orgProfileTemplate -const { mutate: create } = useCreateOrgProfileTemplateMutation({ - selection: { fields: { id: true } }, -}); -create({ capabilities: '', description: '', isDefault: '', name: '', slug: '' }); -``` - ## Custom Operation Hooks -### `useAppCapabilitiesGetByMaskQuery` - -Reads and enables pagination through a set of `AppCapability`. - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `after` | Cursor | - | `first` | Int | - | `mask` | BitString | - | `offset` | Int | - -### `useAppCapabilitiesGetMaskQuery` - -appCapabilitiesGetMask - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `ids` | [UUID] | - -### `useAppCapabilitiesGetMaskByNamesQuery` - -appCapabilitiesGetMaskByNames - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `names` | [String] | - -### `useAppCapabilitiesGetPaddedMaskQuery` - -appCapabilitiesGetPaddedMask - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `mask` | BitString | - -### `useOrgCapabilitiesGetByMaskQuery` - -Reads and enables pagination through a set of `OrgCapability`. - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `after` | Cursor | - | `first` | Int | - | `mask` | BitString | - | `offset` | Int | - -### `useOrgCapabilitiesGetMaskQuery` - -orgCapabilitiesGetMask - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `ids` | [UUID] | - -### `useOrgCapabilitiesGetMaskByNamesQuery` - -orgCapabilitiesGetMaskByNames - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `names` | [String] | - -### `useOrgCapabilitiesGetPaddedMaskQuery` +### `useGetOrganizationIdQuery` -orgCapabilitiesGetPaddedMask +getOrganizationId - **Type:** query - **Arguments:** | Argument | Type | |----------|------| - | `mask` | BitString | + | `entityId` | UUID | + | `entityType` | String | ### `useOrgIsManagerOfQuery` @@ -1236,10 +732,11 @@ orgIsManagerOf ### `useProvisionBucketMutation` -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. +Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. - **Type:** mutation - **Arguments:** diff --git a/sdk/constructive-react/src/admin/hooks/index.ts b/sdk/constructive-react/src/admin/hooks/index.ts index 3b5400195b..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, AppCapability, AppCapabilityDefaultCapability, AppCapabilityDefault, AppCapabilityDefaultGrant, AppClaimedInvite, AppGrant, AppInvite, AppMembership, AppMembershipDefault, AppMembershipProfile, AppOwnerGrant, AppProfileCapability, AppProfile, AppProfileDefinitionGrant, AppProfileGrant, AppProfileTemplate, MembershipType, OrgAdminGrant, OrgCapability, OrgCapabilityDefaultCapability, OrgCapabilityDefault, OrgCapabilityDefaultGrant, OrgChartEdge, OrgChartEdgeGrant, OrgClaimedInvite, OrgGetManagersRecord, OrgGetSubordinatesRecord, OrgGrant, OrgInvite, OrgMember, OrgMemberProfile, OrgMembership, OrgMembershipDefault, OrgMembershipProfile, OrgMembershipSetting, OrgOwnerGrant, OrgProfileCapability, OrgProfile, OrgProfileDefinitionGrant, OrgProfileGrant, OrgProfileTemplate + * 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 d29ce26241..90e322dcf4 100644 --- a/sdk/constructive-react/src/admin/hooks/invalidation.ts +++ b/sdk/constructive-react/src/admin/hooks/invalidation.ts @@ -16,27 +16,17 @@ import type { QueryClient } from '@tanstack/react-query'; import { appAdminGrantKeys, - appCapabilityKeys, appCapabilityDefaultCapabilityKeys, - appCapabilityDefaultKeys, appCapabilityDefaultGrantKeys, appClaimedInviteKeys, appGrantKeys, appInviteKeys, appMembershipKeys, appMembershipDefaultKeys, - appMembershipProfileKeys, appOwnerGrantKeys, - appProfileCapabilityKeys, - appProfileKeys, - appProfileDefinitionGrantKeys, - appProfileGrantKeys, - appProfileTemplateKeys, membershipTypeKeys, orgAdminGrantKeys, - orgCapabilityKeys, orgCapabilityDefaultCapabilityKeys, - orgCapabilityDefaultKeys, orgCapabilityDefaultGrantKeys, orgChartEdgeKeys, orgChartEdgeGrantKeys, @@ -49,14 +39,8 @@ import { orgMemberProfileKeys, orgMembershipKeys, orgMembershipDefaultKeys, - orgMembershipProfileKeys, orgMembershipSettingKeys, orgOwnerGrantKeys, - orgProfileCapabilityKeys, - orgProfileKeys, - orgProfileDefinitionGrantKeys, - orgProfileGrantKeys, - orgProfileTemplateKeys, } from './query-keys'; /** // ============================================================================ @@ -95,23 +79,6 @@ export const invalidate = { queryKey: appAdminGrantKeys.detail(id), }), }, - /** Invalidate appCapability queries */ appCapability: { - /** Invalidate all appCapability queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appCapabilityKeys.all, - }), - /** Invalidate appCapability list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appCapabilityKeys.lists(), - }), - /** Invalidate a specific appCapability */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: appCapabilityKeys.detail(id), - }), - }, /** Invalidate appCapabilityDefaultCapability queries */ appCapabilityDefaultCapability: { /** Invalidate all appCapabilityDefaultCapability queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -131,23 +98,6 @@ export const invalidate = { queryKey: appCapabilityDefaultCapabilityKeys.detail(id), }), }, - /** Invalidate appCapabilityDefault queries */ appCapabilityDefault: { - /** Invalidate all appCapabilityDefault queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appCapabilityDefaultKeys.all, - }), - /** Invalidate appCapabilityDefault list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appCapabilityDefaultKeys.lists(), - }), - /** Invalidate a specific appCapabilityDefault */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: appCapabilityDefaultKeys.detail(id), - }), - }, /** Invalidate appCapabilityDefaultGrant queries */ appCapabilityDefaultGrant: { /** Invalidate all appCapabilityDefaultGrant queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -247,23 +197,6 @@ export const invalidate = { queryKey: appMembershipDefaultKeys.detail(id), }), }, - /** Invalidate appMembershipProfile queries */ appMembershipProfile: { - /** Invalidate all appMembershipProfile queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appMembershipProfileKeys.all, - }), - /** Invalidate appMembershipProfile list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appMembershipProfileKeys.lists(), - }), - /** Invalidate a specific appMembershipProfile */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: appMembershipProfileKeys.detail(id), - }), - }, /** Invalidate appOwnerGrant queries */ appOwnerGrant: { /** Invalidate all appOwnerGrant queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -281,91 +214,6 @@ export const invalidate = { queryKey: appOwnerGrantKeys.detail(id), }), }, - /** Invalidate appProfileCapability queries */ appProfileCapability: { - /** Invalidate all appProfileCapability queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appProfileCapabilityKeys.all, - }), - /** Invalidate appProfileCapability list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appProfileCapabilityKeys.lists(), - }), - /** Invalidate a specific appProfileCapability */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: appProfileCapabilityKeys.detail(id), - }), - }, - /** Invalidate appProfile queries */ appProfile: { - /** Invalidate all appProfile queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appProfileKeys.all, - }), - /** Invalidate appProfile list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appProfileKeys.lists(), - }), - /** Invalidate a specific appProfile */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: appProfileKeys.detail(id), - }), - }, - /** Invalidate appProfileDefinitionGrant queries */ appProfileDefinitionGrant: { - /** Invalidate all appProfileDefinitionGrant queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appProfileDefinitionGrantKeys.all, - }), - /** Invalidate appProfileDefinitionGrant list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appProfileDefinitionGrantKeys.lists(), - }), - /** Invalidate a specific appProfileDefinitionGrant */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: appProfileDefinitionGrantKeys.detail(id), - }), - }, - /** Invalidate appProfileGrant queries */ appProfileGrant: { - /** Invalidate all appProfileGrant queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appProfileGrantKeys.all, - }), - /** Invalidate appProfileGrant list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appProfileGrantKeys.lists(), - }), - /** Invalidate a specific appProfileGrant */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: appProfileGrantKeys.detail(id), - }), - }, - /** Invalidate appProfileTemplate queries */ appProfileTemplate: { - /** Invalidate all appProfileTemplate queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appProfileTemplateKeys.all, - }), - /** Invalidate appProfileTemplate list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appProfileTemplateKeys.lists(), - }), - /** Invalidate a specific appProfileTemplate */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: appProfileTemplateKeys.detail(id), - }), - }, /** Invalidate membershipType queries */ membershipType: { /** Invalidate all membershipType queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -400,23 +248,6 @@ export const invalidate = { queryKey: orgAdminGrantKeys.detail(id), }), }, - /** Invalidate orgCapability queries */ orgCapability: { - /** Invalidate all orgCapability queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgCapabilityKeys.all, - }), - /** Invalidate orgCapability list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgCapabilityKeys.lists(), - }), - /** Invalidate a specific orgCapability */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: orgCapabilityKeys.detail(id), - }), - }, /** Invalidate orgCapabilityDefaultCapability queries */ orgCapabilityDefaultCapability: { /** Invalidate all orgCapabilityDefaultCapability queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -436,23 +267,6 @@ export const invalidate = { queryKey: orgCapabilityDefaultCapabilityKeys.detail(id), }), }, - /** Invalidate orgCapabilityDefault queries */ orgCapabilityDefault: { - /** Invalidate all orgCapabilityDefault queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgCapabilityDefaultKeys.all, - }), - /** Invalidate orgCapabilityDefault list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgCapabilityDefaultKeys.lists(), - }), - /** Invalidate a specific orgCapabilityDefault */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: orgCapabilityDefaultKeys.detail(id), - }), - }, /** Invalidate orgCapabilityDefaultGrant queries */ orgCapabilityDefaultGrant: { /** Invalidate all orgCapabilityDefaultGrant queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -654,23 +468,6 @@ export const invalidate = { queryKey: orgMembershipDefaultKeys.detail(id), }), }, - /** Invalidate orgMembershipProfile queries */ orgMembershipProfile: { - /** Invalidate all orgMembershipProfile queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgMembershipProfileKeys.all, - }), - /** Invalidate orgMembershipProfile list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgMembershipProfileKeys.lists(), - }), - /** Invalidate a specific orgMembershipProfile */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: orgMembershipProfileKeys.detail(id), - }), - }, /** Invalidate orgMembershipSetting queries */ orgMembershipSetting: { /** Invalidate all orgMembershipSetting queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -705,91 +502,6 @@ export const invalidate = { queryKey: orgOwnerGrantKeys.detail(id), }), }, - /** Invalidate orgProfileCapability queries */ orgProfileCapability: { - /** Invalidate all orgProfileCapability queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgProfileCapabilityKeys.all, - }), - /** Invalidate orgProfileCapability list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgProfileCapabilityKeys.lists(), - }), - /** Invalidate a specific orgProfileCapability */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: orgProfileCapabilityKeys.detail(id), - }), - }, - /** Invalidate orgProfile queries */ orgProfile: { - /** Invalidate all orgProfile queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgProfileKeys.all, - }), - /** Invalidate orgProfile list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgProfileKeys.lists(), - }), - /** Invalidate a specific orgProfile */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: orgProfileKeys.detail(id), - }), - }, - /** Invalidate orgProfileDefinitionGrant queries */ orgProfileDefinitionGrant: { - /** Invalidate all orgProfileDefinitionGrant queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgProfileDefinitionGrantKeys.all, - }), - /** Invalidate orgProfileDefinitionGrant list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgProfileDefinitionGrantKeys.lists(), - }), - /** Invalidate a specific orgProfileDefinitionGrant */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: orgProfileDefinitionGrantKeys.detail(id), - }), - }, - /** Invalidate orgProfileGrant queries */ orgProfileGrant: { - /** Invalidate all orgProfileGrant queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgProfileGrantKeys.all, - }), - /** Invalidate orgProfileGrant list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgProfileGrantKeys.lists(), - }), - /** Invalidate a specific orgProfileGrant */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: orgProfileGrantKeys.detail(id), - }), - }, - /** Invalidate orgProfileTemplate queries */ orgProfileTemplate: { - /** Invalidate all orgProfileTemplate queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgProfileTemplateKeys.all, - }), - /** Invalidate orgProfileTemplate list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgProfileTemplateKeys.lists(), - }), - /** Invalidate a specific orgProfileTemplate */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: orgProfileTemplateKeys.detail(id), - }), - }, } as const; /** @@ -811,14 +523,6 @@ export const remove = { queryKey: appAdminGrantKeys.detail(id), }); }, - /** Remove appCapability from cache */ appCapability: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: appCapabilityKeys.detail(id), - }); - }, /** Remove appCapabilityDefaultCapability from cache */ appCapabilityDefaultCapability: ( queryClient: QueryClient, id: string | number @@ -827,14 +531,6 @@ export const remove = { queryKey: appCapabilityDefaultCapabilityKeys.detail(id), }); }, - /** Remove appCapabilityDefault from cache */ appCapabilityDefault: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: appCapabilityDefaultKeys.detail(id), - }); - }, /** Remove appCapabilityDefaultGrant from cache */ appCapabilityDefaultGrant: ( queryClient: QueryClient, id: string | number @@ -877,14 +573,6 @@ export const remove = { queryKey: appMembershipDefaultKeys.detail(id), }); }, - /** Remove appMembershipProfile from cache */ appMembershipProfile: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: appMembershipProfileKeys.detail(id), - }); - }, /** Remove appOwnerGrant from cache */ appOwnerGrant: ( queryClient: QueryClient, id: string | number @@ -893,46 +581,6 @@ export const remove = { queryKey: appOwnerGrantKeys.detail(id), }); }, - /** Remove appProfileCapability from cache */ appProfileCapability: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: appProfileCapabilityKeys.detail(id), - }); - }, - /** Remove appProfile from cache */ appProfile: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: appProfileKeys.detail(id), - }); - }, - /** Remove appProfileDefinitionGrant from cache */ appProfileDefinitionGrant: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: appProfileDefinitionGrantKeys.detail(id), - }); - }, - /** Remove appProfileGrant from cache */ appProfileGrant: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: appProfileGrantKeys.detail(id), - }); - }, - /** Remove appProfileTemplate from cache */ appProfileTemplate: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: appProfileTemplateKeys.detail(id), - }); - }, /** Remove membershipType from cache */ membershipType: ( queryClient: QueryClient, id: string | number @@ -949,14 +597,6 @@ export const remove = { queryKey: orgAdminGrantKeys.detail(id), }); }, - /** Remove orgCapability from cache */ orgCapability: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: orgCapabilityKeys.detail(id), - }); - }, /** Remove orgCapabilityDefaultCapability from cache */ orgCapabilityDefaultCapability: ( queryClient: QueryClient, id: string | number @@ -965,14 +605,6 @@ export const remove = { queryKey: orgCapabilityDefaultCapabilityKeys.detail(id), }); }, - /** Remove orgCapabilityDefault from cache */ orgCapabilityDefault: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: orgCapabilityDefaultKeys.detail(id), - }); - }, /** Remove orgCapabilityDefaultGrant from cache */ orgCapabilityDefaultGrant: ( queryClient: QueryClient, id: string | number @@ -1060,14 +692,6 @@ export const remove = { queryKey: orgMembershipDefaultKeys.detail(id), }); }, - /** Remove orgMembershipProfile from cache */ orgMembershipProfile: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: orgMembershipProfileKeys.detail(id), - }); - }, /** Remove orgMembershipSetting from cache */ orgMembershipSetting: ( queryClient: QueryClient, id: string | number @@ -1084,44 +708,4 @@ export const remove = { queryKey: orgOwnerGrantKeys.detail(id), }); }, - /** Remove orgProfileCapability from cache */ orgProfileCapability: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: orgProfileCapabilityKeys.detail(id), - }); - }, - /** Remove orgProfile from cache */ orgProfile: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: orgProfileKeys.detail(id), - }); - }, - /** Remove orgProfileDefinitionGrant from cache */ orgProfileDefinitionGrant: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: orgProfileDefinitionGrantKeys.detail(id), - }); - }, - /** Remove orgProfileGrant from cache */ orgProfileGrant: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: orgProfileGrantKeys.detail(id), - }); - }, - /** Remove orgProfileTemplate from cache */ orgProfileTemplate: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: orgProfileTemplateKeys.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 06afa0d5a1..275a2c73f6 100644 --- a/sdk/constructive-react/src/admin/hooks/mutation-keys.ts +++ b/sdk/constructive-react/src/admin/hooks/mutation-keys.ts @@ -27,15 +27,6 @@ export const appAdminGrantMutationKeys = { /** Delete appAdminGrant mutation key */ delete: (id: string | number) => ['mutation', 'appadmingrant', 'delete', id] as const, } as const; -export const appCapabilityMutationKeys = { - /** All appCapability mutation keys */ all: ['mutation', 'appcapability'] as const, - /** Create appCapability mutation key */ create: () => - ['mutation', 'appcapability', 'create'] as const, - /** Update appCapability mutation key */ update: (id: string | number) => - ['mutation', 'appcapability', 'update', id] as const, - /** Delete appCapability mutation key */ delete: (id: string | number) => - ['mutation', 'appcapability', 'delete', id] as const, -} as const; export const appCapabilityDefaultCapabilityMutationKeys = { /** All appCapabilityDefaultCapability mutation keys */ all: [ 'mutation', @@ -48,15 +39,6 @@ export const appCapabilityDefaultCapabilityMutationKeys = { /** Delete appCapabilityDefaultCapability mutation key */ delete: (id: string | number) => ['mutation', 'appcapabilitydefaultcapability', 'delete', id] as const, } as const; -export const appCapabilityDefaultMutationKeys = { - /** All appCapabilityDefault mutation keys */ all: ['mutation', 'appcapabilitydefault'] as const, - /** Create appCapabilityDefault mutation key */ create: () => - ['mutation', 'appcapabilitydefault', 'create'] as const, - /** Update appCapabilityDefault mutation key */ update: (id: string | number) => - ['mutation', 'appcapabilitydefault', 'update', id] as const, - /** Delete appCapabilityDefault mutation key */ delete: (id: string | number) => - ['mutation', 'appcapabilitydefault', 'delete', id] as const, -} as const; export const appCapabilityDefaultGrantMutationKeys = { /** All appCapabilityDefaultGrant mutation keys */ all: [ 'mutation', @@ -112,15 +94,6 @@ export const appMembershipDefaultMutationKeys = { /** Delete appMembershipDefault mutation key */ delete: (id: string | number) => ['mutation', 'appmembershipdefault', 'delete', id] as const, } as const; -export const appMembershipProfileMutationKeys = { - /** All appMembershipProfile mutation keys */ all: ['mutation', 'appmembershipprofile'] as const, - /** Create appMembershipProfile mutation key */ create: () => - ['mutation', 'appmembershipprofile', 'create'] as const, - /** Update appMembershipProfile mutation key */ update: (id: string | number) => - ['mutation', 'appmembershipprofile', 'update', id] as const, - /** Delete appMembershipProfile mutation key */ delete: (id: string | number) => - ['mutation', 'appmembershipprofile', 'delete', id] as const, -} as const; export const appOwnerGrantMutationKeys = { /** All appOwnerGrant mutation keys */ all: ['mutation', 'appownergrant'] as const, /** Create appOwnerGrant mutation key */ create: () => @@ -130,53 +103,6 @@ export const appOwnerGrantMutationKeys = { /** Delete appOwnerGrant mutation key */ delete: (id: string | number) => ['mutation', 'appownergrant', 'delete', id] as const, } as const; -export const appProfileCapabilityMutationKeys = { - /** All appProfileCapability mutation keys */ all: ['mutation', 'appprofilecapability'] as const, - /** Create appProfileCapability mutation key */ create: () => - ['mutation', 'appprofilecapability', 'create'] as const, - /** Update appProfileCapability mutation key */ update: (id: string | number) => - ['mutation', 'appprofilecapability', 'update', id] as const, - /** Delete appProfileCapability mutation key */ delete: (id: string | number) => - ['mutation', 'appprofilecapability', 'delete', id] as const, -} as const; -export const appProfileMutationKeys = { - /** All appProfile mutation keys */ all: ['mutation', 'appprofile'] as const, - /** Create appProfile mutation key */ create: () => ['mutation', 'appprofile', 'create'] as const, - /** Update appProfile mutation key */ update: (id: string | number) => - ['mutation', 'appprofile', 'update', id] as const, - /** Delete appProfile mutation key */ delete: (id: string | number) => - ['mutation', 'appprofile', 'delete', id] as const, -} as const; -export const appProfileDefinitionGrantMutationKeys = { - /** All appProfileDefinitionGrant mutation keys */ all: [ - 'mutation', - 'appprofiledefinitiongrant', - ] as const, - /** Create appProfileDefinitionGrant mutation key */ create: () => - ['mutation', 'appprofiledefinitiongrant', 'create'] as const, - /** Update appProfileDefinitionGrant mutation key */ update: (id: string | number) => - ['mutation', 'appprofiledefinitiongrant', 'update', id] as const, - /** Delete appProfileDefinitionGrant mutation key */ delete: (id: string | number) => - ['mutation', 'appprofiledefinitiongrant', 'delete', id] as const, -} as const; -export const appProfileGrantMutationKeys = { - /** All appProfileGrant mutation keys */ all: ['mutation', 'appprofilegrant'] as const, - /** Create appProfileGrant mutation key */ create: () => - ['mutation', 'appprofilegrant', 'create'] as const, - /** Update appProfileGrant mutation key */ update: (id: string | number) => - ['mutation', 'appprofilegrant', 'update', id] as const, - /** Delete appProfileGrant mutation key */ delete: (id: string | number) => - ['mutation', 'appprofilegrant', 'delete', id] as const, -} as const; -export const appProfileTemplateMutationKeys = { - /** All appProfileTemplate mutation keys */ all: ['mutation', 'appprofiletemplate'] as const, - /** Create appProfileTemplate mutation key */ create: () => - ['mutation', 'appprofiletemplate', 'create'] as const, - /** Update appProfileTemplate mutation key */ update: (id: string | number) => - ['mutation', 'appprofiletemplate', 'update', id] as const, - /** Delete appProfileTemplate mutation key */ delete: (id: string | number) => - ['mutation', 'appprofiletemplate', 'delete', id] as const, -} as const; export const membershipTypeMutationKeys = { /** All membershipType mutation keys */ all: ['mutation', 'membershiptype'] as const, /** Create membershipType mutation key */ create: () => @@ -195,15 +121,6 @@ export const orgAdminGrantMutationKeys = { /** Delete orgAdminGrant mutation key */ delete: (id: string | number) => ['mutation', 'orgadmingrant', 'delete', id] as const, } as const; -export const orgCapabilityMutationKeys = { - /** All orgCapability mutation keys */ all: ['mutation', 'orgcapability'] as const, - /** Create orgCapability mutation key */ create: () => - ['mutation', 'orgcapability', 'create'] as const, - /** Update orgCapability mutation key */ update: (id: string | number) => - ['mutation', 'orgcapability', 'update', id] as const, - /** Delete orgCapability mutation key */ delete: (id: string | number) => - ['mutation', 'orgcapability', 'delete', id] as const, -} as const; export const orgCapabilityDefaultCapabilityMutationKeys = { /** All orgCapabilityDefaultCapability mutation keys */ all: [ 'mutation', @@ -216,15 +133,6 @@ export const orgCapabilityDefaultCapabilityMutationKeys = { /** Delete orgCapabilityDefaultCapability mutation key */ delete: (id: string | number) => ['mutation', 'orgcapabilitydefaultcapability', 'delete', id] as const, } as const; -export const orgCapabilityDefaultMutationKeys = { - /** All orgCapabilityDefault mutation keys */ all: ['mutation', 'orgcapabilitydefault'] as const, - /** Create orgCapabilityDefault mutation key */ create: () => - ['mutation', 'orgcapabilitydefault', 'create'] as const, - /** Update orgCapabilityDefault mutation key */ update: (id: string | number) => - ['mutation', 'orgcapabilitydefault', 'update', id] as const, - /** Delete orgCapabilityDefault mutation key */ delete: (id: string | number) => - ['mutation', 'orgcapabilitydefault', 'delete', id] as const, -} as const; export const orgCapabilityDefaultGrantMutationKeys = { /** All orgCapabilityDefaultGrant mutation keys */ all: [ 'mutation', @@ -336,15 +244,6 @@ export const orgMembershipDefaultMutationKeys = { /** Delete orgMembershipDefault mutation key */ delete: (id: string | number) => ['mutation', 'orgmembershipdefault', 'delete', id] as const, } as const; -export const orgMembershipProfileMutationKeys = { - /** All orgMembershipProfile mutation keys */ all: ['mutation', 'orgmembershipprofile'] as const, - /** Create orgMembershipProfile mutation key */ create: () => - ['mutation', 'orgmembershipprofile', 'create'] as const, - /** Update orgMembershipProfile mutation key */ update: (id: string | number) => - ['mutation', 'orgmembershipprofile', 'update', id] as const, - /** Delete orgMembershipProfile mutation key */ delete: (id: string | number) => - ['mutation', 'orgmembershipprofile', 'delete', id] as const, -} as const; export const orgMembershipSettingMutationKeys = { /** All orgMembershipSetting mutation keys */ all: ['mutation', 'orgmembershipsetting'] as const, /** Create orgMembershipSetting mutation key */ create: () => @@ -363,53 +262,6 @@ export const orgOwnerGrantMutationKeys = { /** Delete orgOwnerGrant mutation key */ delete: (id: string | number) => ['mutation', 'orgownergrant', 'delete', id] as const, } as const; -export const orgProfileCapabilityMutationKeys = { - /** All orgProfileCapability mutation keys */ all: ['mutation', 'orgprofilecapability'] as const, - /** Create orgProfileCapability mutation key */ create: () => - ['mutation', 'orgprofilecapability', 'create'] as const, - /** Update orgProfileCapability mutation key */ update: (id: string | number) => - ['mutation', 'orgprofilecapability', 'update', id] as const, - /** Delete orgProfileCapability mutation key */ delete: (id: string | number) => - ['mutation', 'orgprofilecapability', 'delete', id] as const, -} as const; -export const orgProfileMutationKeys = { - /** All orgProfile mutation keys */ all: ['mutation', 'orgprofile'] as const, - /** Create orgProfile mutation key */ create: () => ['mutation', 'orgprofile', 'create'] as const, - /** Update orgProfile mutation key */ update: (id: string | number) => - ['mutation', 'orgprofile', 'update', id] as const, - /** Delete orgProfile mutation key */ delete: (id: string | number) => - ['mutation', 'orgprofile', 'delete', id] as const, -} as const; -export const orgProfileDefinitionGrantMutationKeys = { - /** All orgProfileDefinitionGrant mutation keys */ all: [ - 'mutation', - 'orgprofiledefinitiongrant', - ] as const, - /** Create orgProfileDefinitionGrant mutation key */ create: () => - ['mutation', 'orgprofiledefinitiongrant', 'create'] as const, - /** Update orgProfileDefinitionGrant mutation key */ update: (id: string | number) => - ['mutation', 'orgprofiledefinitiongrant', 'update', id] as const, - /** Delete orgProfileDefinitionGrant mutation key */ delete: (id: string | number) => - ['mutation', 'orgprofiledefinitiongrant', 'delete', id] as const, -} as const; -export const orgProfileGrantMutationKeys = { - /** All orgProfileGrant mutation keys */ all: ['mutation', 'orgprofilegrant'] as const, - /** Create orgProfileGrant mutation key */ create: () => - ['mutation', 'orgprofilegrant', 'create'] as const, - /** Update orgProfileGrant mutation key */ update: (id: string | number) => - ['mutation', 'orgprofilegrant', 'update', id] as const, - /** Delete orgProfileGrant mutation key */ delete: (id: string | number) => - ['mutation', 'orgprofilegrant', 'delete', id] as const, -} as const; -export const orgProfileTemplateMutationKeys = { - /** All orgProfileTemplate mutation keys */ all: ['mutation', 'orgprofiletemplate'] as const, - /** Create orgProfileTemplate mutation key */ create: () => - ['mutation', 'orgprofiletemplate', 'create'] as const, - /** Update orgProfileTemplate mutation key */ update: (id: string | number) => - ['mutation', 'orgprofiletemplate', 'update', id] as const, - /** Delete orgProfileTemplate mutation key */ delete: (id: string | number) => - ['mutation', 'orgprofiletemplate', 'delete', id] as const, -} as const; // ============================================================================ // Custom Mutation Keys @@ -453,27 +305,17 @@ export const customMutationKeys = { */ export const mutationKeys = { appAdminGrant: appAdminGrantMutationKeys, - appCapability: appCapabilityMutationKeys, appCapabilityDefaultCapability: appCapabilityDefaultCapabilityMutationKeys, - appCapabilityDefault: appCapabilityDefaultMutationKeys, appCapabilityDefaultGrant: appCapabilityDefaultGrantMutationKeys, appClaimedInvite: appClaimedInviteMutationKeys, appGrant: appGrantMutationKeys, appInvite: appInviteMutationKeys, appMembership: appMembershipMutationKeys, appMembershipDefault: appMembershipDefaultMutationKeys, - appMembershipProfile: appMembershipProfileMutationKeys, appOwnerGrant: appOwnerGrantMutationKeys, - appProfileCapability: appProfileCapabilityMutationKeys, - appProfile: appProfileMutationKeys, - appProfileDefinitionGrant: appProfileDefinitionGrantMutationKeys, - appProfileGrant: appProfileGrantMutationKeys, - appProfileTemplate: appProfileTemplateMutationKeys, membershipType: membershipTypeMutationKeys, orgAdminGrant: orgAdminGrantMutationKeys, - orgCapability: orgCapabilityMutationKeys, orgCapabilityDefaultCapability: orgCapabilityDefaultCapabilityMutationKeys, - orgCapabilityDefault: orgCapabilityDefaultMutationKeys, orgCapabilityDefaultGrant: orgCapabilityDefaultGrantMutationKeys, orgChartEdge: orgChartEdgeMutationKeys, orgChartEdgeGrant: orgChartEdgeGrantMutationKeys, @@ -486,13 +328,7 @@ export const mutationKeys = { orgMemberProfile: orgMemberProfileMutationKeys, orgMembership: orgMembershipMutationKeys, orgMembershipDefault: orgMembershipDefaultMutationKeys, - orgMembershipProfile: orgMembershipProfileMutationKeys, orgMembershipSetting: orgMembershipSettingMutationKeys, orgOwnerGrant: orgOwnerGrantMutationKeys, - orgProfileCapability: orgProfileCapabilityMutationKeys, - orgProfile: orgProfileMutationKeys, - orgProfileDefinitionGrant: orgProfileDefinitionGrantMutationKeys, - orgProfileGrant: orgProfileGrantMutationKeys, - orgProfileTemplate: orgProfileTemplateMutationKeys, 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 4b6db5daea..bf417864fc 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/index.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/index.ts @@ -6,15 +6,9 @@ export * from './useCreateAppAdminGrantMutation'; export * from './useUpdateAppAdminGrantMutation'; export * from './useDeleteAppAdminGrantMutation'; -export * from './useCreateAppCapabilityMutation'; -export * from './useUpdateAppCapabilityMutation'; -export * from './useDeleteAppCapabilityMutation'; export * from './useCreateAppCapabilityDefaultCapabilityMutation'; export * from './useUpdateAppCapabilityDefaultCapabilityMutation'; export * from './useDeleteAppCapabilityDefaultCapabilityMutation'; -export * from './useCreateAppCapabilityDefaultMutation'; -export * from './useUpdateAppCapabilityDefaultMutation'; -export * from './useDeleteAppCapabilityDefaultMutation'; export * from './useCreateAppCapabilityDefaultGrantMutation'; export * from './useUpdateAppCapabilityDefaultGrantMutation'; export * from './useDeleteAppCapabilityDefaultGrantMutation'; @@ -33,42 +27,18 @@ export * from './useDeleteAppMembershipMutation'; export * from './useCreateAppMembershipDefaultMutation'; export * from './useUpdateAppMembershipDefaultMutation'; export * from './useDeleteAppMembershipDefaultMutation'; -export * from './useCreateAppMembershipProfileMutation'; -export * from './useUpdateAppMembershipProfileMutation'; -export * from './useDeleteAppMembershipProfileMutation'; export * from './useCreateAppOwnerGrantMutation'; export * from './useUpdateAppOwnerGrantMutation'; export * from './useDeleteAppOwnerGrantMutation'; -export * from './useCreateAppProfileCapabilityMutation'; -export * from './useUpdateAppProfileCapabilityMutation'; -export * from './useDeleteAppProfileCapabilityMutation'; -export * from './useCreateAppProfileMutation'; -export * from './useUpdateAppProfileMutation'; -export * from './useDeleteAppProfileMutation'; -export * from './useCreateAppProfileDefinitionGrantMutation'; -export * from './useUpdateAppProfileDefinitionGrantMutation'; -export * from './useDeleteAppProfileDefinitionGrantMutation'; -export * from './useCreateAppProfileGrantMutation'; -export * from './useUpdateAppProfileGrantMutation'; -export * from './useDeleteAppProfileGrantMutation'; -export * from './useCreateAppProfileTemplateMutation'; -export * from './useUpdateAppProfileTemplateMutation'; -export * from './useDeleteAppProfileTemplateMutation'; export * from './useCreateMembershipTypeMutation'; export * from './useUpdateMembershipTypeMutation'; export * from './useDeleteMembershipTypeMutation'; export * from './useCreateOrgAdminGrantMutation'; export * from './useUpdateOrgAdminGrantMutation'; export * from './useDeleteOrgAdminGrantMutation'; -export * from './useCreateOrgCapabilityMutation'; -export * from './useUpdateOrgCapabilityMutation'; -export * from './useDeleteOrgCapabilityMutation'; export * from './useCreateOrgCapabilityDefaultCapabilityMutation'; export * from './useUpdateOrgCapabilityDefaultCapabilityMutation'; export * from './useDeleteOrgCapabilityDefaultCapabilityMutation'; -export * from './useCreateOrgCapabilityDefaultMutation'; -export * from './useUpdateOrgCapabilityDefaultMutation'; -export * from './useDeleteOrgCapabilityDefaultMutation'; export * from './useCreateOrgCapabilityDefaultGrantMutation'; export * from './useUpdateOrgCapabilityDefaultGrantMutation'; export * from './useDeleteOrgCapabilityDefaultGrantMutation'; @@ -101,30 +71,12 @@ export * from './useDeleteOrgMembershipMutation'; export * from './useCreateOrgMembershipDefaultMutation'; export * from './useUpdateOrgMembershipDefaultMutation'; export * from './useDeleteOrgMembershipDefaultMutation'; -export * from './useCreateOrgMembershipProfileMutation'; -export * from './useUpdateOrgMembershipProfileMutation'; -export * from './useDeleteOrgMembershipProfileMutation'; export * from './useCreateOrgMembershipSettingMutation'; export * from './useUpdateOrgMembershipSettingMutation'; export * from './useDeleteOrgMembershipSettingMutation'; export * from './useCreateOrgOwnerGrantMutation'; export * from './useUpdateOrgOwnerGrantMutation'; export * from './useDeleteOrgOwnerGrantMutation'; -export * from './useCreateOrgProfileCapabilityMutation'; -export * from './useUpdateOrgProfileCapabilityMutation'; -export * from './useDeleteOrgProfileCapabilityMutation'; -export * from './useCreateOrgProfileMutation'; -export * from './useUpdateOrgProfileMutation'; -export * from './useDeleteOrgProfileMutation'; -export * from './useCreateOrgProfileDefinitionGrantMutation'; -export * from './useUpdateOrgProfileDefinitionGrantMutation'; -export * from './useDeleteOrgProfileDefinitionGrantMutation'; -export * from './useCreateOrgProfileGrantMutation'; -export * from './useUpdateOrgProfileGrantMutation'; -export * from './useDeleteOrgProfileGrantMutation'; -export * from './useCreateOrgProfileTemplateMutation'; -export * from './useUpdateOrgProfileTemplateMutation'; -export * from './useDeleteOrgProfileTemplateMutation'; export * from './useProvisionBucketMutation'; export * from './useSubmitAppInviteCodeMutation'; export * from './useSubmitOrgInviteCodeMutation'; diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppCapabilityDefaultMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppCapabilityDefaultMutation.ts deleted file mode 100644 index 165cdc8151..0000000000 --- a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppCapabilityDefaultMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Stores the default capability 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 { appCapabilityDefaultKeys } from '../query-keys'; -import { appCapabilityDefaultMutationKeys } from '../mutation-keys'; -import type { - AppCapabilityDefaultSelect, - AppCapabilityDefaultWithRelations, - CreateAppCapabilityDefaultInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppCapabilityDefaultSelect, - AppCapabilityDefaultWithRelations, - CreateAppCapabilityDefaultInput, -} from '../../orm/input-types'; -/** - * Stores the default capability bitmask assigned to new members upon joining - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateAppCapabilityDefaultMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateAppCapabilityDefaultMutation( - params: { - selection: { - fields: S & AppCapabilityDefaultSelect; - } & HookStrictSelect, AppCapabilityDefaultSelect>; - } & Omit< - UseMutationOptions< - { - createAppCapabilityDefault: { - appCapabilityDefault: InferSelectResult; - }; - }, - Error, - CreateAppCapabilityDefaultInput['appCapabilityDefault'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createAppCapabilityDefault: { - appCapabilityDefault: InferSelectResult; - }; - }, - Error, - CreateAppCapabilityDefaultInput['appCapabilityDefault'] ->; -export function useCreateAppCapabilityDefaultMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: appCapabilityDefaultMutationKeys.create(), - mutationFn: (data: CreateAppCapabilityDefaultInput['appCapabilityDefault']) => - getClient() - .appCapabilityDefault.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: appCapabilityDefaultKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppCapabilityMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppCapabilityMutation.ts deleted file mode 100644 index b163ecdaf5..0000000000 --- a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppCapabilityMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * Defines available capabilities 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 { appCapabilityKeys } from '../query-keys'; -import { appCapabilityMutationKeys } from '../mutation-keys'; -import type { - AppCapabilitySelect, - AppCapabilityWithRelations, - CreateAppCapabilityInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppCapabilitySelect, - AppCapabilityWithRelations, - CreateAppCapabilityInput, -} from '../../orm/input-types'; -/** - * Defines available capabilities as named bits within a bitmask, used by the RBAC system for access control - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateAppCapabilityMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateAppCapabilityMutation( - params: { - selection: { - fields: S & AppCapabilitySelect; - } & HookStrictSelect, AppCapabilitySelect>; - } & Omit< - UseMutationOptions< - { - createAppCapability: { - appCapability: InferSelectResult; - }; - }, - Error, - CreateAppCapabilityInput['appCapability'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createAppCapability: { - appCapability: InferSelectResult; - }; - }, - Error, - CreateAppCapabilityInput['appCapability'] ->; -export function useCreateAppCapabilityMutation( - params: { - selection: SelectionConfig; - } & Omit, 'mutationFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: appCapabilityMutationKeys.create(), - mutationFn: (data: CreateAppCapabilityInput['appCapability']) => - getClient() - .appCapability.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: appCapabilityKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppMembershipProfileMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppMembershipProfileMutation.ts deleted file mode 100644 index a4c004d439..0000000000 --- a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppMembershipProfileMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Every profile a membership holds; memberships.profile_id points at one of them - * @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 { appMembershipProfileKeys } from '../query-keys'; -import { appMembershipProfileMutationKeys } from '../mutation-keys'; -import type { - AppMembershipProfileSelect, - AppMembershipProfileWithRelations, - CreateAppMembershipProfileInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppMembershipProfileSelect, - AppMembershipProfileWithRelations, - CreateAppMembershipProfileInput, -} from '../../orm/input-types'; -/** - * Every profile a membership holds; memberships.profile_id points at one of them - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateAppMembershipProfileMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateAppMembershipProfileMutation( - params: { - selection: { - fields: S & AppMembershipProfileSelect; - } & HookStrictSelect, AppMembershipProfileSelect>; - } & Omit< - UseMutationOptions< - { - createAppMembershipProfile: { - appMembershipProfile: InferSelectResult; - }; - }, - Error, - CreateAppMembershipProfileInput['appMembershipProfile'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createAppMembershipProfile: { - appMembershipProfile: InferSelectResult; - }; - }, - Error, - CreateAppMembershipProfileInput['appMembershipProfile'] ->; -export function useCreateAppMembershipProfileMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: appMembershipProfileMutationKeys.create(), - mutationFn: (data: CreateAppMembershipProfileInput['appMembershipProfile']) => - getClient() - .appMembershipProfile.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: appMembershipProfileKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppProfileCapabilityMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppProfileCapabilityMutation.ts deleted file mode 100644 index 3c4d3f137f..0000000000 --- a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppProfileCapabilityMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Join table linking profiles to individual capabilities they include - * @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 { appProfileCapabilityKeys } from '../query-keys'; -import { appProfileCapabilityMutationKeys } from '../mutation-keys'; -import type { - AppProfileCapabilitySelect, - AppProfileCapabilityWithRelations, - CreateAppProfileCapabilityInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppProfileCapabilitySelect, - AppProfileCapabilityWithRelations, - CreateAppProfileCapabilityInput, -} from '../../orm/input-types'; -/** - * Join table linking profiles to individual capabilities they include - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateAppProfileCapabilityMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateAppProfileCapabilityMutation( - params: { - selection: { - fields: S & AppProfileCapabilitySelect; - } & HookStrictSelect, AppProfileCapabilitySelect>; - } & Omit< - UseMutationOptions< - { - createAppProfileCapability: { - appProfileCapability: InferSelectResult; - }; - }, - Error, - CreateAppProfileCapabilityInput['appProfileCapability'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createAppProfileCapability: { - appProfileCapability: InferSelectResult; - }; - }, - Error, - CreateAppProfileCapabilityInput['appProfileCapability'] ->; -export function useCreateAppProfileCapabilityMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: appProfileCapabilityMutationKeys.create(), - mutationFn: (data: CreateAppProfileCapabilityInput['appProfileCapability']) => - getClient() - .appProfileCapability.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: appProfileCapabilityKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppProfileDefinitionGrantMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppProfileDefinitionGrantMutation.ts deleted file mode 100644 index b7268bbbcb..0000000000 --- a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppProfileDefinitionGrantMutation.ts +++ /dev/null @@ -1,97 +0,0 @@ -/** - * Audit log of capability additions and removals from profile definitions - * @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 { appProfileDefinitionGrantKeys } from '../query-keys'; -import { appProfileDefinitionGrantMutationKeys } from '../mutation-keys'; -import type { - AppProfileDefinitionGrantSelect, - AppProfileDefinitionGrantWithRelations, - CreateAppProfileDefinitionGrantInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppProfileDefinitionGrantSelect, - AppProfileDefinitionGrantWithRelations, - CreateAppProfileDefinitionGrantInput, -} from '../../orm/input-types'; -/** - * Audit log of capability additions and removals from profile definitions - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateAppProfileDefinitionGrantMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateAppProfileDefinitionGrantMutation< - S extends AppProfileDefinitionGrantSelect, ->( - params: { - selection: { - fields: S & AppProfileDefinitionGrantSelect; - } & HookStrictSelect, AppProfileDefinitionGrantSelect>; - } & Omit< - UseMutationOptions< - { - createAppProfileDefinitionGrant: { - appProfileDefinitionGrant: InferSelectResult; - }; - }, - Error, - CreateAppProfileDefinitionGrantInput['appProfileDefinitionGrant'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createAppProfileDefinitionGrant: { - appProfileDefinitionGrant: InferSelectResult; - }; - }, - Error, - CreateAppProfileDefinitionGrantInput['appProfileDefinitionGrant'] ->; -export function useCreateAppProfileDefinitionGrantMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - CreateAppProfileDefinitionGrantInput['appProfileDefinitionGrant'] - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: appProfileDefinitionGrantMutationKeys.create(), - mutationFn: (data: CreateAppProfileDefinitionGrantInput['appProfileDefinitionGrant']) => - getClient() - .appProfileDefinitionGrant.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: appProfileDefinitionGrantKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppProfileGrantMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppProfileGrantMutation.ts deleted file mode 100644 index 849c3db9f5..0000000000 --- a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppProfileGrantMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Audit log of profile assignments and revocations for members - * @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 { appProfileGrantKeys } from '../query-keys'; -import { appProfileGrantMutationKeys } from '../mutation-keys'; -import type { - AppProfileGrantSelect, - AppProfileGrantWithRelations, - CreateAppProfileGrantInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppProfileGrantSelect, - AppProfileGrantWithRelations, - CreateAppProfileGrantInput, -} from '../../orm/input-types'; -/** - * Audit log of profile assignments and revocations for members - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateAppProfileGrantMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateAppProfileGrantMutation( - params: { - selection: { - fields: S & AppProfileGrantSelect; - } & HookStrictSelect, AppProfileGrantSelect>; - } & Omit< - UseMutationOptions< - { - createAppProfileGrant: { - appProfileGrant: InferSelectResult; - }; - }, - Error, - CreateAppProfileGrantInput['appProfileGrant'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createAppProfileGrant: { - appProfileGrant: InferSelectResult; - }; - }, - Error, - CreateAppProfileGrantInput['appProfileGrant'] ->; -export function useCreateAppProfileGrantMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: appProfileGrantMutationKeys.create(), - mutationFn: (data: CreateAppProfileGrantInput['appProfileGrant']) => - getClient() - .appProfileGrant.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: appProfileGrantKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppProfileMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppProfileMutation.ts deleted file mode 100644 index adc025b91c..0000000000 --- a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppProfileMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * Named capability bundles (roles) that group multiple capabilities into reusable profiles - * @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 { appProfileKeys } from '../query-keys'; -import { appProfileMutationKeys } from '../mutation-keys'; -import type { - AppProfileSelect, - AppProfileWithRelations, - CreateAppProfileInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppProfileSelect, - AppProfileWithRelations, - CreateAppProfileInput, -} from '../../orm/input-types'; -/** - * Named capability bundles (roles) that group multiple capabilities into reusable profiles - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateAppProfileMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateAppProfileMutation( - params: { - selection: { - fields: S & AppProfileSelect; - } & HookStrictSelect, AppProfileSelect>; - } & Omit< - UseMutationOptions< - { - createAppProfile: { - appProfile: InferSelectResult; - }; - }, - Error, - CreateAppProfileInput['appProfile'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createAppProfile: { - appProfile: InferSelectResult; - }; - }, - Error, - CreateAppProfileInput['appProfile'] ->; -export function useCreateAppProfileMutation( - params: { - selection: SelectionConfig; - } & Omit, 'mutationFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: appProfileMutationKeys.create(), - mutationFn: (data: CreateAppProfileInput['appProfile']) => - getClient() - .appProfile.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: appProfileKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppProfileTemplateMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppProfileTemplateMutation.ts deleted file mode 100644 index 802811bfa2..0000000000 --- a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppProfileTemplateMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Template profiles that are automatically seeded into new entities when created - * @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 { appProfileTemplateKeys } from '../query-keys'; -import { appProfileTemplateMutationKeys } from '../mutation-keys'; -import type { - AppProfileTemplateSelect, - AppProfileTemplateWithRelations, - CreateAppProfileTemplateInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppProfileTemplateSelect, - AppProfileTemplateWithRelations, - CreateAppProfileTemplateInput, -} from '../../orm/input-types'; -/** - * Template profiles that are automatically seeded into new entities when created - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateAppProfileTemplateMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateAppProfileTemplateMutation( - params: { - selection: { - fields: S & AppProfileTemplateSelect; - } & HookStrictSelect, AppProfileTemplateSelect>; - } & Omit< - UseMutationOptions< - { - createAppProfileTemplate: { - appProfileTemplate: InferSelectResult; - }; - }, - Error, - CreateAppProfileTemplateInput['appProfileTemplate'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createAppProfileTemplate: { - appProfileTemplate: InferSelectResult; - }; - }, - Error, - CreateAppProfileTemplateInput['appProfileTemplate'] ->; -export function useCreateAppProfileTemplateMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: appProfileTemplateMutationKeys.create(), - mutationFn: (data: CreateAppProfileTemplateInput['appProfileTemplate']) => - getClient() - .appProfileTemplate.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: appProfileTemplateKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgCapabilityDefaultMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgCapabilityDefaultMutation.ts deleted file mode 100644 index 783491f191..0000000000 --- a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgCapabilityDefaultMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Stores the default capability 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 { orgCapabilityDefaultKeys } from '../query-keys'; -import { orgCapabilityDefaultMutationKeys } from '../mutation-keys'; -import type { - OrgCapabilityDefaultSelect, - OrgCapabilityDefaultWithRelations, - CreateOrgCapabilityDefaultInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - OrgCapabilityDefaultSelect, - OrgCapabilityDefaultWithRelations, - CreateOrgCapabilityDefaultInput, -} from '../../orm/input-types'; -/** - * Stores the default capability bitmask assigned to new members upon joining - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateOrgCapabilityDefaultMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateOrgCapabilityDefaultMutation( - params: { - selection: { - fields: S & OrgCapabilityDefaultSelect; - } & HookStrictSelect, OrgCapabilityDefaultSelect>; - } & Omit< - UseMutationOptions< - { - createOrgCapabilityDefault: { - orgCapabilityDefault: InferSelectResult; - }; - }, - Error, - CreateOrgCapabilityDefaultInput['orgCapabilityDefault'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createOrgCapabilityDefault: { - orgCapabilityDefault: InferSelectResult; - }; - }, - Error, - CreateOrgCapabilityDefaultInput['orgCapabilityDefault'] ->; -export function useCreateOrgCapabilityDefaultMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: orgCapabilityDefaultMutationKeys.create(), - mutationFn: (data: CreateOrgCapabilityDefaultInput['orgCapabilityDefault']) => - getClient() - .orgCapabilityDefault.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: orgCapabilityDefaultKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgCapabilityMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgCapabilityMutation.ts deleted file mode 100644 index 06d7d2fad5..0000000000 --- a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgCapabilityMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * Defines available capabilities 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 { orgCapabilityKeys } from '../query-keys'; -import { orgCapabilityMutationKeys } from '../mutation-keys'; -import type { - OrgCapabilitySelect, - OrgCapabilityWithRelations, - CreateOrgCapabilityInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - OrgCapabilitySelect, - OrgCapabilityWithRelations, - CreateOrgCapabilityInput, -} from '../../orm/input-types'; -/** - * Defines available capabilities as named bits within a bitmask, used by the RBAC system for access control - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateOrgCapabilityMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateOrgCapabilityMutation( - params: { - selection: { - fields: S & OrgCapabilitySelect; - } & HookStrictSelect, OrgCapabilitySelect>; - } & Omit< - UseMutationOptions< - { - createOrgCapability: { - orgCapability: InferSelectResult; - }; - }, - Error, - CreateOrgCapabilityInput['orgCapability'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createOrgCapability: { - orgCapability: InferSelectResult; - }; - }, - Error, - CreateOrgCapabilityInput['orgCapability'] ->; -export function useCreateOrgCapabilityMutation( - params: { - selection: SelectionConfig; - } & Omit, 'mutationFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: orgCapabilityMutationKeys.create(), - mutationFn: (data: CreateOrgCapabilityInput['orgCapability']) => - getClient() - .orgCapability.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: orgCapabilityKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgMembershipProfileMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgMembershipProfileMutation.ts deleted file mode 100644 index f2e89836d7..0000000000 --- a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgMembershipProfileMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Every profile a membership holds; memberships.profile_id points at one of them - * @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 { orgMembershipProfileKeys } from '../query-keys'; -import { orgMembershipProfileMutationKeys } from '../mutation-keys'; -import type { - OrgMembershipProfileSelect, - OrgMembershipProfileWithRelations, - CreateOrgMembershipProfileInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - OrgMembershipProfileSelect, - OrgMembershipProfileWithRelations, - CreateOrgMembershipProfileInput, -} from '../../orm/input-types'; -/** - * Every profile a membership holds; memberships.profile_id points at one of them - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateOrgMembershipProfileMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateOrgMembershipProfileMutation( - params: { - selection: { - fields: S & OrgMembershipProfileSelect; - } & HookStrictSelect, OrgMembershipProfileSelect>; - } & Omit< - UseMutationOptions< - { - createOrgMembershipProfile: { - orgMembershipProfile: InferSelectResult; - }; - }, - Error, - CreateOrgMembershipProfileInput['orgMembershipProfile'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createOrgMembershipProfile: { - orgMembershipProfile: InferSelectResult; - }; - }, - Error, - CreateOrgMembershipProfileInput['orgMembershipProfile'] ->; -export function useCreateOrgMembershipProfileMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: orgMembershipProfileMutationKeys.create(), - mutationFn: (data: CreateOrgMembershipProfileInput['orgMembershipProfile']) => - getClient() - .orgMembershipProfile.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: orgMembershipProfileKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgProfileCapabilityMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgProfileCapabilityMutation.ts deleted file mode 100644 index 46b8645d02..0000000000 --- a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgProfileCapabilityMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Join table linking profiles to individual capabilities they include - * @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 { orgProfileCapabilityKeys } from '../query-keys'; -import { orgProfileCapabilityMutationKeys } from '../mutation-keys'; -import type { - OrgProfileCapabilitySelect, - OrgProfileCapabilityWithRelations, - CreateOrgProfileCapabilityInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - OrgProfileCapabilitySelect, - OrgProfileCapabilityWithRelations, - CreateOrgProfileCapabilityInput, -} from '../../orm/input-types'; -/** - * Join table linking profiles to individual capabilities they include - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateOrgProfileCapabilityMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateOrgProfileCapabilityMutation( - params: { - selection: { - fields: S & OrgProfileCapabilitySelect; - } & HookStrictSelect, OrgProfileCapabilitySelect>; - } & Omit< - UseMutationOptions< - { - createOrgProfileCapability: { - orgProfileCapability: InferSelectResult; - }; - }, - Error, - CreateOrgProfileCapabilityInput['orgProfileCapability'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createOrgProfileCapability: { - orgProfileCapability: InferSelectResult; - }; - }, - Error, - CreateOrgProfileCapabilityInput['orgProfileCapability'] ->; -export function useCreateOrgProfileCapabilityMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: orgProfileCapabilityMutationKeys.create(), - mutationFn: (data: CreateOrgProfileCapabilityInput['orgProfileCapability']) => - getClient() - .orgProfileCapability.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: orgProfileCapabilityKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgProfileDefinitionGrantMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgProfileDefinitionGrantMutation.ts deleted file mode 100644 index a81a8213ff..0000000000 --- a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgProfileDefinitionGrantMutation.ts +++ /dev/null @@ -1,97 +0,0 @@ -/** - * Audit log of capability additions and removals from profile definitions - * @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 { orgProfileDefinitionGrantKeys } from '../query-keys'; -import { orgProfileDefinitionGrantMutationKeys } from '../mutation-keys'; -import type { - OrgProfileDefinitionGrantSelect, - OrgProfileDefinitionGrantWithRelations, - CreateOrgProfileDefinitionGrantInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - OrgProfileDefinitionGrantSelect, - OrgProfileDefinitionGrantWithRelations, - CreateOrgProfileDefinitionGrantInput, -} from '../../orm/input-types'; -/** - * Audit log of capability additions and removals from profile definitions - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateOrgProfileDefinitionGrantMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateOrgProfileDefinitionGrantMutation< - S extends OrgProfileDefinitionGrantSelect, ->( - params: { - selection: { - fields: S & OrgProfileDefinitionGrantSelect; - } & HookStrictSelect, OrgProfileDefinitionGrantSelect>; - } & Omit< - UseMutationOptions< - { - createOrgProfileDefinitionGrant: { - orgProfileDefinitionGrant: InferSelectResult; - }; - }, - Error, - CreateOrgProfileDefinitionGrantInput['orgProfileDefinitionGrant'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createOrgProfileDefinitionGrant: { - orgProfileDefinitionGrant: InferSelectResult; - }; - }, - Error, - CreateOrgProfileDefinitionGrantInput['orgProfileDefinitionGrant'] ->; -export function useCreateOrgProfileDefinitionGrantMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - CreateOrgProfileDefinitionGrantInput['orgProfileDefinitionGrant'] - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: orgProfileDefinitionGrantMutationKeys.create(), - mutationFn: (data: CreateOrgProfileDefinitionGrantInput['orgProfileDefinitionGrant']) => - getClient() - .orgProfileDefinitionGrant.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: orgProfileDefinitionGrantKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgProfileGrantMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgProfileGrantMutation.ts deleted file mode 100644 index 8697c53684..0000000000 --- a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgProfileGrantMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Audit log of profile assignments and revocations for members - * @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 { orgProfileGrantKeys } from '../query-keys'; -import { orgProfileGrantMutationKeys } from '../mutation-keys'; -import type { - OrgProfileGrantSelect, - OrgProfileGrantWithRelations, - CreateOrgProfileGrantInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - OrgProfileGrantSelect, - OrgProfileGrantWithRelations, - CreateOrgProfileGrantInput, -} from '../../orm/input-types'; -/** - * Audit log of profile assignments and revocations for members - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateOrgProfileGrantMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateOrgProfileGrantMutation( - params: { - selection: { - fields: S & OrgProfileGrantSelect; - } & HookStrictSelect, OrgProfileGrantSelect>; - } & Omit< - UseMutationOptions< - { - createOrgProfileGrant: { - orgProfileGrant: InferSelectResult; - }; - }, - Error, - CreateOrgProfileGrantInput['orgProfileGrant'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createOrgProfileGrant: { - orgProfileGrant: InferSelectResult; - }; - }, - Error, - CreateOrgProfileGrantInput['orgProfileGrant'] ->; -export function useCreateOrgProfileGrantMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: orgProfileGrantMutationKeys.create(), - mutationFn: (data: CreateOrgProfileGrantInput['orgProfileGrant']) => - getClient() - .orgProfileGrant.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: orgProfileGrantKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgProfileMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgProfileMutation.ts deleted file mode 100644 index 169de63740..0000000000 --- a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgProfileMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * Named capability bundles (roles) that group multiple capabilities into reusable profiles - * @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 { orgProfileKeys } from '../query-keys'; -import { orgProfileMutationKeys } from '../mutation-keys'; -import type { - OrgProfileSelect, - OrgProfileWithRelations, - CreateOrgProfileInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - OrgProfileSelect, - OrgProfileWithRelations, - CreateOrgProfileInput, -} from '../../orm/input-types'; -/** - * Named capability bundles (roles) that group multiple capabilities into reusable profiles - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateOrgProfileMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateOrgProfileMutation( - params: { - selection: { - fields: S & OrgProfileSelect; - } & HookStrictSelect, OrgProfileSelect>; - } & Omit< - UseMutationOptions< - { - createOrgProfile: { - orgProfile: InferSelectResult; - }; - }, - Error, - CreateOrgProfileInput['orgProfile'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createOrgProfile: { - orgProfile: InferSelectResult; - }; - }, - Error, - CreateOrgProfileInput['orgProfile'] ->; -export function useCreateOrgProfileMutation( - params: { - selection: SelectionConfig; - } & Omit, 'mutationFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: orgProfileMutationKeys.create(), - mutationFn: (data: CreateOrgProfileInput['orgProfile']) => - getClient() - .orgProfile.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: orgProfileKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgProfileTemplateMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgProfileTemplateMutation.ts deleted file mode 100644 index a588d65c1f..0000000000 --- a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgProfileTemplateMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Template profiles that are automatically seeded into new entities when created - * @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 { orgProfileTemplateKeys } from '../query-keys'; -import { orgProfileTemplateMutationKeys } from '../mutation-keys'; -import type { - OrgProfileTemplateSelect, - OrgProfileTemplateWithRelations, - CreateOrgProfileTemplateInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - OrgProfileTemplateSelect, - OrgProfileTemplateWithRelations, - CreateOrgProfileTemplateInput, -} from '../../orm/input-types'; -/** - * Template profiles that are automatically seeded into new entities when created - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateOrgProfileTemplateMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateOrgProfileTemplateMutation( - params: { - selection: { - fields: S & OrgProfileTemplateSelect; - } & HookStrictSelect, OrgProfileTemplateSelect>; - } & Omit< - UseMutationOptions< - { - createOrgProfileTemplate: { - orgProfileTemplate: InferSelectResult; - }; - }, - Error, - CreateOrgProfileTemplateInput['orgProfileTemplate'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createOrgProfileTemplate: { - orgProfileTemplate: InferSelectResult; - }; - }, - Error, - CreateOrgProfileTemplateInput['orgProfileTemplate'] ->; -export function useCreateOrgProfileTemplateMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: orgProfileTemplateMutationKeys.create(), - mutationFn: (data: CreateOrgProfileTemplateInput['orgProfileTemplate']) => - getClient() - .orgProfileTemplate.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: orgProfileTemplateKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppCapabilityDefaultMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppCapabilityDefaultMutation.ts deleted file mode 100644 index 350442001c..0000000000 --- a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppCapabilityDefaultMutation.ts +++ /dev/null @@ -1,104 +0,0 @@ -/** - * Stores the default capability 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 { appCapabilityDefaultKeys } from '../query-keys'; -import { appCapabilityDefaultMutationKeys } from '../mutation-keys'; -import type { - AppCapabilityDefaultSelect, - AppCapabilityDefaultWithRelations, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppCapabilityDefaultSelect, - AppCapabilityDefaultWithRelations, -} from '../../orm/input-types'; -/** - * Stores the default capability bitmask assigned to new members upon joining - * - * @example - * ```tsx - * const { mutate, isPending } = useDeleteAppCapabilityDefaultMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 'value-to-delete' }); - * ``` - */ -export function useDeleteAppCapabilityDefaultMutation( - params: { - selection: { - fields: S & AppCapabilityDefaultSelect; - } & HookStrictSelect, AppCapabilityDefaultSelect>; - } & Omit< - UseMutationOptions< - { - deleteAppCapabilityDefault: { - appCapabilityDefault: InferSelectResult; - }; - }, - Error, - { - id: string; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deleteAppCapabilityDefault: { - appCapabilityDefault: InferSelectResult; - }; - }, - Error, - { - id: string; - } ->; -export function useDeleteAppCapabilityDefaultMutation( - 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: appCapabilityDefaultMutationKeys.all, - mutationFn: ({ id }: { id: string }) => - getClient() - .appCapabilityDefault.delete({ - where: { - id, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: appCapabilityDefaultKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: appCapabilityDefaultKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppCapabilityMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppCapabilityMutation.ts deleted file mode 100644 index 64180776fd..0000000000 --- a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppCapabilityMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * Defines available capabilities 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 { appCapabilityKeys } from '../query-keys'; -import { appCapabilityMutationKeys } from '../mutation-keys'; -import type { AppCapabilitySelect, AppCapabilityWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { AppCapabilitySelect, AppCapabilityWithRelations } from '../../orm/input-types'; -/** - * Defines available capabilities as named bits within a bitmask, used by the RBAC system for access control - * - * @example - * ```tsx - * const { mutate, isPending } = useDeleteAppCapabilityMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 'value-to-delete' }); - * ``` - */ -export function useDeleteAppCapabilityMutation( - params: { - selection: { - fields: S & AppCapabilitySelect; - } & HookStrictSelect, AppCapabilitySelect>; - } & Omit< - UseMutationOptions< - { - deleteAppCapability: { - appCapability: InferSelectResult; - }; - }, - Error, - { - id: string; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deleteAppCapability: { - appCapability: InferSelectResult; - }; - }, - Error, - { - id: string; - } ->; -export function useDeleteAppCapabilityMutation( - 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: appCapabilityMutationKeys.all, - mutationFn: ({ id }: { id: string }) => - getClient() - .appCapability.delete({ - where: { - id, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: appCapabilityKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: appCapabilityKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppMembershipProfileMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppMembershipProfileMutation.ts deleted file mode 100644 index ae74327619..0000000000 --- a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppMembershipProfileMutation.ts +++ /dev/null @@ -1,104 +0,0 @@ -/** - * Every profile a membership holds; memberships.profile_id points at one of them - * @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 { appMembershipProfileKeys } from '../query-keys'; -import { appMembershipProfileMutationKeys } from '../mutation-keys'; -import type { - AppMembershipProfileSelect, - AppMembershipProfileWithRelations, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppMembershipProfileSelect, - AppMembershipProfileWithRelations, -} from '../../orm/input-types'; -/** - * Every profile a membership holds; memberships.profile_id points at one of them - * - * @example - * ```tsx - * const { mutate, isPending } = useDeleteAppMembershipProfileMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 'value-to-delete' }); - * ``` - */ -export function useDeleteAppMembershipProfileMutation( - params: { - selection: { - fields: S & AppMembershipProfileSelect; - } & HookStrictSelect, AppMembershipProfileSelect>; - } & Omit< - UseMutationOptions< - { - deleteAppMembershipProfile: { - appMembershipProfile: InferSelectResult; - }; - }, - Error, - { - id: string; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deleteAppMembershipProfile: { - appMembershipProfile: InferSelectResult; - }; - }, - Error, - { - id: string; - } ->; -export function useDeleteAppMembershipProfileMutation( - 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: appMembershipProfileMutationKeys.all, - mutationFn: ({ id }: { id: string }) => - getClient() - .appMembershipProfile.delete({ - where: { - id, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: appMembershipProfileKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: appMembershipProfileKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppProfileCapabilityMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppProfileCapabilityMutation.ts deleted file mode 100644 index 1838fb53a3..0000000000 --- a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppProfileCapabilityMutation.ts +++ /dev/null @@ -1,104 +0,0 @@ -/** - * Join table linking profiles to individual capabilities they include - * @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 { appProfileCapabilityKeys } from '../query-keys'; -import { appProfileCapabilityMutationKeys } from '../mutation-keys'; -import type { - AppProfileCapabilitySelect, - AppProfileCapabilityWithRelations, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppProfileCapabilitySelect, - AppProfileCapabilityWithRelations, -} from '../../orm/input-types'; -/** - * Join table linking profiles to individual capabilities they include - * - * @example - * ```tsx - * const { mutate, isPending } = useDeleteAppProfileCapabilityMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 'value-to-delete' }); - * ``` - */ -export function useDeleteAppProfileCapabilityMutation( - params: { - selection: { - fields: S & AppProfileCapabilitySelect; - } & HookStrictSelect, AppProfileCapabilitySelect>; - } & Omit< - UseMutationOptions< - { - deleteAppProfileCapability: { - appProfileCapability: InferSelectResult; - }; - }, - Error, - { - id: string; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deleteAppProfileCapability: { - appProfileCapability: InferSelectResult; - }; - }, - Error, - { - id: string; - } ->; -export function useDeleteAppProfileCapabilityMutation( - 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: appProfileCapabilityMutationKeys.all, - mutationFn: ({ id }: { id: string }) => - getClient() - .appProfileCapability.delete({ - where: { - id, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: appProfileCapabilityKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: appProfileCapabilityKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppProfileDefinitionGrantMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppProfileDefinitionGrantMutation.ts deleted file mode 100644 index ae0ad7d2dd..0000000000 --- a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppProfileDefinitionGrantMutation.ts +++ /dev/null @@ -1,106 +0,0 @@ -/** - * Audit log of capability additions and removals from profile definitions - * @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 { appProfileDefinitionGrantKeys } from '../query-keys'; -import { appProfileDefinitionGrantMutationKeys } from '../mutation-keys'; -import type { - AppProfileDefinitionGrantSelect, - AppProfileDefinitionGrantWithRelations, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppProfileDefinitionGrantSelect, - AppProfileDefinitionGrantWithRelations, -} from '../../orm/input-types'; -/** - * Audit log of capability additions and removals from profile definitions - * - * @example - * ```tsx - * const { mutate, isPending } = useDeleteAppProfileDefinitionGrantMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 'value-to-delete' }); - * ``` - */ -export function useDeleteAppProfileDefinitionGrantMutation< - S extends AppProfileDefinitionGrantSelect, ->( - params: { - selection: { - fields: S & AppProfileDefinitionGrantSelect; - } & HookStrictSelect, AppProfileDefinitionGrantSelect>; - } & Omit< - UseMutationOptions< - { - deleteAppProfileDefinitionGrant: { - appProfileDefinitionGrant: InferSelectResult; - }; - }, - Error, - { - id: string; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deleteAppProfileDefinitionGrant: { - appProfileDefinitionGrant: InferSelectResult; - }; - }, - Error, - { - id: string; - } ->; -export function useDeleteAppProfileDefinitionGrantMutation( - 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: appProfileDefinitionGrantMutationKeys.all, - mutationFn: ({ id }: { id: string }) => - getClient() - .appProfileDefinitionGrant.delete({ - where: { - id, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: appProfileDefinitionGrantKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: appProfileDefinitionGrantKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppProfileGrantMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppProfileGrantMutation.ts deleted file mode 100644 index 10cbd7e94b..0000000000 --- a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppProfileGrantMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * Audit log of profile assignments and revocations for members - * @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 { appProfileGrantKeys } from '../query-keys'; -import { appProfileGrantMutationKeys } from '../mutation-keys'; -import type { AppProfileGrantSelect, AppProfileGrantWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { AppProfileGrantSelect, AppProfileGrantWithRelations } from '../../orm/input-types'; -/** - * Audit log of profile assignments and revocations for members - * - * @example - * ```tsx - * const { mutate, isPending } = useDeleteAppProfileGrantMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 'value-to-delete' }); - * ``` - */ -export function useDeleteAppProfileGrantMutation( - params: { - selection: { - fields: S & AppProfileGrantSelect; - } & HookStrictSelect, AppProfileGrantSelect>; - } & Omit< - UseMutationOptions< - { - deleteAppProfileGrant: { - appProfileGrant: InferSelectResult; - }; - }, - Error, - { - id: string; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deleteAppProfileGrant: { - appProfileGrant: InferSelectResult; - }; - }, - Error, - { - id: string; - } ->; -export function useDeleteAppProfileGrantMutation( - 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: appProfileGrantMutationKeys.all, - mutationFn: ({ id }: { id: string }) => - getClient() - .appProfileGrant.delete({ - where: { - id, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: appProfileGrantKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: appProfileGrantKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppProfileMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppProfileMutation.ts deleted file mode 100644 index 9308d75b0c..0000000000 --- a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppProfileMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * Named capability bundles (roles) that group multiple capabilities into reusable profiles - * @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 { appProfileKeys } from '../query-keys'; -import { appProfileMutationKeys } from '../mutation-keys'; -import type { AppProfileSelect, AppProfileWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { AppProfileSelect, AppProfileWithRelations } from '../../orm/input-types'; -/** - * Named capability bundles (roles) that group multiple capabilities into reusable profiles - * - * @example - * ```tsx - * const { mutate, isPending } = useDeleteAppProfileMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 'value-to-delete' }); - * ``` - */ -export function useDeleteAppProfileMutation( - params: { - selection: { - fields: S & AppProfileSelect; - } & HookStrictSelect, AppProfileSelect>; - } & Omit< - UseMutationOptions< - { - deleteAppProfile: { - appProfile: InferSelectResult; - }; - }, - Error, - { - id: string; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deleteAppProfile: { - appProfile: InferSelectResult; - }; - }, - Error, - { - id: string; - } ->; -export function useDeleteAppProfileMutation( - 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: appProfileMutationKeys.all, - mutationFn: ({ id }: { id: string }) => - getClient() - .appProfile.delete({ - where: { - id, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: appProfileKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: appProfileKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppProfileTemplateMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppProfileTemplateMutation.ts deleted file mode 100644 index feb2522f6b..0000000000 --- a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppProfileTemplateMutation.ts +++ /dev/null @@ -1,104 +0,0 @@ -/** - * Template profiles that are automatically seeded into new entities when created - * @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 { appProfileTemplateKeys } from '../query-keys'; -import { appProfileTemplateMutationKeys } from '../mutation-keys'; -import type { - AppProfileTemplateSelect, - AppProfileTemplateWithRelations, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppProfileTemplateSelect, - AppProfileTemplateWithRelations, -} from '../../orm/input-types'; -/** - * Template profiles that are automatically seeded into new entities when created - * - * @example - * ```tsx - * const { mutate, isPending } = useDeleteAppProfileTemplateMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 'value-to-delete' }); - * ``` - */ -export function useDeleteAppProfileTemplateMutation( - params: { - selection: { - fields: S & AppProfileTemplateSelect; - } & HookStrictSelect, AppProfileTemplateSelect>; - } & Omit< - UseMutationOptions< - { - deleteAppProfileTemplate: { - appProfileTemplate: InferSelectResult; - }; - }, - Error, - { - id: string; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deleteAppProfileTemplate: { - appProfileTemplate: InferSelectResult; - }; - }, - Error, - { - id: string; - } ->; -export function useDeleteAppProfileTemplateMutation( - 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: appProfileTemplateMutationKeys.all, - mutationFn: ({ id }: { id: string }) => - getClient() - .appProfileTemplate.delete({ - where: { - id, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: appProfileTemplateKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: appProfileTemplateKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgCapabilityDefaultMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgCapabilityDefaultMutation.ts deleted file mode 100644 index 3e7c90263d..0000000000 --- a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgCapabilityDefaultMutation.ts +++ /dev/null @@ -1,104 +0,0 @@ -/** - * Stores the default capability 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 { orgCapabilityDefaultKeys } from '../query-keys'; -import { orgCapabilityDefaultMutationKeys } from '../mutation-keys'; -import type { - OrgCapabilityDefaultSelect, - OrgCapabilityDefaultWithRelations, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - OrgCapabilityDefaultSelect, - OrgCapabilityDefaultWithRelations, -} from '../../orm/input-types'; -/** - * Stores the default capability bitmask assigned to new members upon joining - * - * @example - * ```tsx - * const { mutate, isPending } = useDeleteOrgCapabilityDefaultMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 'value-to-delete' }); - * ``` - */ -export function useDeleteOrgCapabilityDefaultMutation( - params: { - selection: { - fields: S & OrgCapabilityDefaultSelect; - } & HookStrictSelect, OrgCapabilityDefaultSelect>; - } & Omit< - UseMutationOptions< - { - deleteOrgCapabilityDefault: { - orgCapabilityDefault: InferSelectResult; - }; - }, - Error, - { - id: string; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deleteOrgCapabilityDefault: { - orgCapabilityDefault: InferSelectResult; - }; - }, - Error, - { - id: string; - } ->; -export function useDeleteOrgCapabilityDefaultMutation( - 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: orgCapabilityDefaultMutationKeys.all, - mutationFn: ({ id }: { id: string }) => - getClient() - .orgCapabilityDefault.delete({ - where: { - id, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: orgCapabilityDefaultKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: orgCapabilityDefaultKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgCapabilityMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgCapabilityMutation.ts deleted file mode 100644 index f8640e1983..0000000000 --- a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgCapabilityMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * Defines available capabilities 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 { orgCapabilityKeys } from '../query-keys'; -import { orgCapabilityMutationKeys } from '../mutation-keys'; -import type { OrgCapabilitySelect, OrgCapabilityWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { OrgCapabilitySelect, OrgCapabilityWithRelations } from '../../orm/input-types'; -/** - * Defines available capabilities as named bits within a bitmask, used by the RBAC system for access control - * - * @example - * ```tsx - * const { mutate, isPending } = useDeleteOrgCapabilityMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 'value-to-delete' }); - * ``` - */ -export function useDeleteOrgCapabilityMutation( - params: { - selection: { - fields: S & OrgCapabilitySelect; - } & HookStrictSelect, OrgCapabilitySelect>; - } & Omit< - UseMutationOptions< - { - deleteOrgCapability: { - orgCapability: InferSelectResult; - }; - }, - Error, - { - id: string; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deleteOrgCapability: { - orgCapability: InferSelectResult; - }; - }, - Error, - { - id: string; - } ->; -export function useDeleteOrgCapabilityMutation( - 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: orgCapabilityMutationKeys.all, - mutationFn: ({ id }: { id: string }) => - getClient() - .orgCapability.delete({ - where: { - id, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: orgCapabilityKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: orgCapabilityKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgMembershipProfileMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgMembershipProfileMutation.ts deleted file mode 100644 index 16634e9b7e..0000000000 --- a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgMembershipProfileMutation.ts +++ /dev/null @@ -1,104 +0,0 @@ -/** - * Every profile a membership holds; memberships.profile_id points at one of them - * @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 { orgMembershipProfileKeys } from '../query-keys'; -import { orgMembershipProfileMutationKeys } from '../mutation-keys'; -import type { - OrgMembershipProfileSelect, - OrgMembershipProfileWithRelations, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - OrgMembershipProfileSelect, - OrgMembershipProfileWithRelations, -} from '../../orm/input-types'; -/** - * Every profile a membership holds; memberships.profile_id points at one of them - * - * @example - * ```tsx - * const { mutate, isPending } = useDeleteOrgMembershipProfileMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 'value-to-delete' }); - * ``` - */ -export function useDeleteOrgMembershipProfileMutation( - params: { - selection: { - fields: S & OrgMembershipProfileSelect; - } & HookStrictSelect, OrgMembershipProfileSelect>; - } & Omit< - UseMutationOptions< - { - deleteOrgMembershipProfile: { - orgMembershipProfile: InferSelectResult; - }; - }, - Error, - { - id: string; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deleteOrgMembershipProfile: { - orgMembershipProfile: InferSelectResult; - }; - }, - Error, - { - id: string; - } ->; -export function useDeleteOrgMembershipProfileMutation( - 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: orgMembershipProfileMutationKeys.all, - mutationFn: ({ id }: { id: string }) => - getClient() - .orgMembershipProfile.delete({ - where: { - id, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: orgMembershipProfileKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: orgMembershipProfileKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgProfileCapabilityMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgProfileCapabilityMutation.ts deleted file mode 100644 index 3609e9dc5f..0000000000 --- a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgProfileCapabilityMutation.ts +++ /dev/null @@ -1,104 +0,0 @@ -/** - * Join table linking profiles to individual capabilities they include - * @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 { orgProfileCapabilityKeys } from '../query-keys'; -import { orgProfileCapabilityMutationKeys } from '../mutation-keys'; -import type { - OrgProfileCapabilitySelect, - OrgProfileCapabilityWithRelations, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - OrgProfileCapabilitySelect, - OrgProfileCapabilityWithRelations, -} from '../../orm/input-types'; -/** - * Join table linking profiles to individual capabilities they include - * - * @example - * ```tsx - * const { mutate, isPending } = useDeleteOrgProfileCapabilityMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 'value-to-delete' }); - * ``` - */ -export function useDeleteOrgProfileCapabilityMutation( - params: { - selection: { - fields: S & OrgProfileCapabilitySelect; - } & HookStrictSelect, OrgProfileCapabilitySelect>; - } & Omit< - UseMutationOptions< - { - deleteOrgProfileCapability: { - orgProfileCapability: InferSelectResult; - }; - }, - Error, - { - id: string; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deleteOrgProfileCapability: { - orgProfileCapability: InferSelectResult; - }; - }, - Error, - { - id: string; - } ->; -export function useDeleteOrgProfileCapabilityMutation( - 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: orgProfileCapabilityMutationKeys.all, - mutationFn: ({ id }: { id: string }) => - getClient() - .orgProfileCapability.delete({ - where: { - id, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: orgProfileCapabilityKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: orgProfileCapabilityKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgProfileDefinitionGrantMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgProfileDefinitionGrantMutation.ts deleted file mode 100644 index 1d76117e70..0000000000 --- a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgProfileDefinitionGrantMutation.ts +++ /dev/null @@ -1,106 +0,0 @@ -/** - * Audit log of capability additions and removals from profile definitions - * @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 { orgProfileDefinitionGrantKeys } from '../query-keys'; -import { orgProfileDefinitionGrantMutationKeys } from '../mutation-keys'; -import type { - OrgProfileDefinitionGrantSelect, - OrgProfileDefinitionGrantWithRelations, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - OrgProfileDefinitionGrantSelect, - OrgProfileDefinitionGrantWithRelations, -} from '../../orm/input-types'; -/** - * Audit log of capability additions and removals from profile definitions - * - * @example - * ```tsx - * const { mutate, isPending } = useDeleteOrgProfileDefinitionGrantMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 'value-to-delete' }); - * ``` - */ -export function useDeleteOrgProfileDefinitionGrantMutation< - S extends OrgProfileDefinitionGrantSelect, ->( - params: { - selection: { - fields: S & OrgProfileDefinitionGrantSelect; - } & HookStrictSelect, OrgProfileDefinitionGrantSelect>; - } & Omit< - UseMutationOptions< - { - deleteOrgProfileDefinitionGrant: { - orgProfileDefinitionGrant: InferSelectResult; - }; - }, - Error, - { - id: string; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deleteOrgProfileDefinitionGrant: { - orgProfileDefinitionGrant: InferSelectResult; - }; - }, - Error, - { - id: string; - } ->; -export function useDeleteOrgProfileDefinitionGrantMutation( - 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: orgProfileDefinitionGrantMutationKeys.all, - mutationFn: ({ id }: { id: string }) => - getClient() - .orgProfileDefinitionGrant.delete({ - where: { - id, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: orgProfileDefinitionGrantKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: orgProfileDefinitionGrantKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgProfileGrantMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgProfileGrantMutation.ts deleted file mode 100644 index 71902bb38a..0000000000 --- a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgProfileGrantMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * Audit log of profile assignments and revocations for members - * @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 { orgProfileGrantKeys } from '../query-keys'; -import { orgProfileGrantMutationKeys } from '../mutation-keys'; -import type { OrgProfileGrantSelect, OrgProfileGrantWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { OrgProfileGrantSelect, OrgProfileGrantWithRelations } from '../../orm/input-types'; -/** - * Audit log of profile assignments and revocations for members - * - * @example - * ```tsx - * const { mutate, isPending } = useDeleteOrgProfileGrantMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 'value-to-delete' }); - * ``` - */ -export function useDeleteOrgProfileGrantMutation( - params: { - selection: { - fields: S & OrgProfileGrantSelect; - } & HookStrictSelect, OrgProfileGrantSelect>; - } & Omit< - UseMutationOptions< - { - deleteOrgProfileGrant: { - orgProfileGrant: InferSelectResult; - }; - }, - Error, - { - id: string; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deleteOrgProfileGrant: { - orgProfileGrant: InferSelectResult; - }; - }, - Error, - { - id: string; - } ->; -export function useDeleteOrgProfileGrantMutation( - 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: orgProfileGrantMutationKeys.all, - mutationFn: ({ id }: { id: string }) => - getClient() - .orgProfileGrant.delete({ - where: { - id, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: orgProfileGrantKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: orgProfileGrantKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgProfileMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgProfileMutation.ts deleted file mode 100644 index e605a83137..0000000000 --- a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgProfileMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * Named capability bundles (roles) that group multiple capabilities into reusable profiles - * @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 { orgProfileKeys } from '../query-keys'; -import { orgProfileMutationKeys } from '../mutation-keys'; -import type { OrgProfileSelect, OrgProfileWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { OrgProfileSelect, OrgProfileWithRelations } from '../../orm/input-types'; -/** - * Named capability bundles (roles) that group multiple capabilities into reusable profiles - * - * @example - * ```tsx - * const { mutate, isPending } = useDeleteOrgProfileMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 'value-to-delete' }); - * ``` - */ -export function useDeleteOrgProfileMutation( - params: { - selection: { - fields: S & OrgProfileSelect; - } & HookStrictSelect, OrgProfileSelect>; - } & Omit< - UseMutationOptions< - { - deleteOrgProfile: { - orgProfile: InferSelectResult; - }; - }, - Error, - { - id: string; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deleteOrgProfile: { - orgProfile: InferSelectResult; - }; - }, - Error, - { - id: string; - } ->; -export function useDeleteOrgProfileMutation( - 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: orgProfileMutationKeys.all, - mutationFn: ({ id }: { id: string }) => - getClient() - .orgProfile.delete({ - where: { - id, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: orgProfileKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: orgProfileKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgProfileTemplateMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgProfileTemplateMutation.ts deleted file mode 100644 index 7c04499160..0000000000 --- a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgProfileTemplateMutation.ts +++ /dev/null @@ -1,104 +0,0 @@ -/** - * Template profiles that are automatically seeded into new entities when created - * @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 { orgProfileTemplateKeys } from '../query-keys'; -import { orgProfileTemplateMutationKeys } from '../mutation-keys'; -import type { - OrgProfileTemplateSelect, - OrgProfileTemplateWithRelations, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - OrgProfileTemplateSelect, - OrgProfileTemplateWithRelations, -} from '../../orm/input-types'; -/** - * Template profiles that are automatically seeded into new entities when created - * - * @example - * ```tsx - * const { mutate, isPending } = useDeleteOrgProfileTemplateMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 'value-to-delete' }); - * ``` - */ -export function useDeleteOrgProfileTemplateMutation( - params: { - selection: { - fields: S & OrgProfileTemplateSelect; - } & HookStrictSelect, OrgProfileTemplateSelect>; - } & Omit< - UseMutationOptions< - { - deleteOrgProfileTemplate: { - orgProfileTemplate: InferSelectResult; - }; - }, - Error, - { - id: string; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deleteOrgProfileTemplate: { - orgProfileTemplate: InferSelectResult; - }; - }, - Error, - { - id: string; - } ->; -export function useDeleteOrgProfileTemplateMutation( - 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: orgProfileTemplateMutationKeys.all, - mutationFn: ({ id }: { id: string }) => - getClient() - .orgProfileTemplate.delete({ - where: { - id, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: orgProfileTemplateKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: orgProfileTemplateKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppCapabilityDefaultMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppCapabilityDefaultMutation.ts deleted file mode 100644 index a2b6a262fb..0000000000 --- a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppCapabilityDefaultMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * Stores the default capability 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 { appCapabilityDefaultKeys } from '../query-keys'; -import { appCapabilityDefaultMutationKeys } from '../mutation-keys'; -import type { - AppCapabilityDefaultSelect, - AppCapabilityDefaultWithRelations, - AppCapabilityDefaultPatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppCapabilityDefaultSelect, - AppCapabilityDefaultWithRelations, - AppCapabilityDefaultPatch, -} from '../../orm/input-types'; -/** - * Stores the default capability bitmask assigned to new members upon joining - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateAppCapabilityDefaultMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', appCapabilityDefaultPatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateAppCapabilityDefaultMutation( - params: { - selection: { - fields: S & AppCapabilityDefaultSelect; - } & HookStrictSelect, AppCapabilityDefaultSelect>; - } & Omit< - UseMutationOptions< - { - updateAppCapabilityDefault: { - appCapabilityDefault: InferSelectResult; - }; - }, - Error, - { - id: string; - appCapabilityDefaultPatch: AppCapabilityDefaultPatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateAppCapabilityDefault: { - appCapabilityDefault: InferSelectResult; - }; - }, - Error, - { - id: string; - appCapabilityDefaultPatch: AppCapabilityDefaultPatch; - } ->; -export function useUpdateAppCapabilityDefaultMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - appCapabilityDefaultPatch: AppCapabilityDefaultPatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: appCapabilityDefaultMutationKeys.all, - mutationFn: ({ - id, - appCapabilityDefaultPatch, - }: { - id: string; - appCapabilityDefaultPatch: AppCapabilityDefaultPatch; - }) => - getClient() - .appCapabilityDefault.update({ - where: { - id, - }, - data: appCapabilityDefaultPatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: appCapabilityDefaultKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: appCapabilityDefaultKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppCapabilityMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppCapabilityMutation.ts deleted file mode 100644 index d5621d884e..0000000000 --- a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppCapabilityMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * Defines available capabilities 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 { appCapabilityKeys } from '../query-keys'; -import { appCapabilityMutationKeys } from '../mutation-keys'; -import type { - AppCapabilitySelect, - AppCapabilityWithRelations, - AppCapabilityPatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppCapabilitySelect, - AppCapabilityWithRelations, - AppCapabilityPatch, -} from '../../orm/input-types'; -/** - * Defines available capabilities as named bits within a bitmask, used by the RBAC system for access control - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateAppCapabilityMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', appCapabilityPatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateAppCapabilityMutation( - params: { - selection: { - fields: S & AppCapabilitySelect; - } & HookStrictSelect, AppCapabilitySelect>; - } & Omit< - UseMutationOptions< - { - updateAppCapability: { - appCapability: InferSelectResult; - }; - }, - Error, - { - id: string; - appCapabilityPatch: AppCapabilityPatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateAppCapability: { - appCapability: InferSelectResult; - }; - }, - Error, - { - id: string; - appCapabilityPatch: AppCapabilityPatch; - } ->; -export function useUpdateAppCapabilityMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - appCapabilityPatch: AppCapabilityPatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: appCapabilityMutationKeys.all, - mutationFn: ({ - id, - appCapabilityPatch, - }: { - id: string; - appCapabilityPatch: AppCapabilityPatch; - }) => - getClient() - .appCapability.update({ - where: { - id, - }, - data: appCapabilityPatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: appCapabilityKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: appCapabilityKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppMembershipProfileMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppMembershipProfileMutation.ts deleted file mode 100644 index 1028876f19..0000000000 --- a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppMembershipProfileMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * Every profile a membership holds; memberships.profile_id points at one of them - * @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 { appMembershipProfileKeys } from '../query-keys'; -import { appMembershipProfileMutationKeys } from '../mutation-keys'; -import type { - AppMembershipProfileSelect, - AppMembershipProfileWithRelations, - AppMembershipProfilePatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppMembershipProfileSelect, - AppMembershipProfileWithRelations, - AppMembershipProfilePatch, -} from '../../orm/input-types'; -/** - * Every profile a membership holds; memberships.profile_id points at one of them - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateAppMembershipProfileMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', appMembershipProfilePatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateAppMembershipProfileMutation( - params: { - selection: { - fields: S & AppMembershipProfileSelect; - } & HookStrictSelect, AppMembershipProfileSelect>; - } & Omit< - UseMutationOptions< - { - updateAppMembershipProfile: { - appMembershipProfile: InferSelectResult; - }; - }, - Error, - { - id: string; - appMembershipProfilePatch: AppMembershipProfilePatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateAppMembershipProfile: { - appMembershipProfile: InferSelectResult; - }; - }, - Error, - { - id: string; - appMembershipProfilePatch: AppMembershipProfilePatch; - } ->; -export function useUpdateAppMembershipProfileMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - appMembershipProfilePatch: AppMembershipProfilePatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: appMembershipProfileMutationKeys.all, - mutationFn: ({ - id, - appMembershipProfilePatch, - }: { - id: string; - appMembershipProfilePatch: AppMembershipProfilePatch; - }) => - getClient() - .appMembershipProfile.update({ - where: { - id, - }, - data: appMembershipProfilePatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: appMembershipProfileKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: appMembershipProfileKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppProfileCapabilityMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppProfileCapabilityMutation.ts deleted file mode 100644 index 240236faaf..0000000000 --- a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppProfileCapabilityMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * Join table linking profiles to individual capabilities they include - * @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 { appProfileCapabilityKeys } from '../query-keys'; -import { appProfileCapabilityMutationKeys } from '../mutation-keys'; -import type { - AppProfileCapabilitySelect, - AppProfileCapabilityWithRelations, - AppProfileCapabilityPatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppProfileCapabilitySelect, - AppProfileCapabilityWithRelations, - AppProfileCapabilityPatch, -} from '../../orm/input-types'; -/** - * Join table linking profiles to individual capabilities they include - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateAppProfileCapabilityMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', appProfileCapabilityPatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateAppProfileCapabilityMutation( - params: { - selection: { - fields: S & AppProfileCapabilitySelect; - } & HookStrictSelect, AppProfileCapabilitySelect>; - } & Omit< - UseMutationOptions< - { - updateAppProfileCapability: { - appProfileCapability: InferSelectResult; - }; - }, - Error, - { - id: string; - appProfileCapabilityPatch: AppProfileCapabilityPatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateAppProfileCapability: { - appProfileCapability: InferSelectResult; - }; - }, - Error, - { - id: string; - appProfileCapabilityPatch: AppProfileCapabilityPatch; - } ->; -export function useUpdateAppProfileCapabilityMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - appProfileCapabilityPatch: AppProfileCapabilityPatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: appProfileCapabilityMutationKeys.all, - mutationFn: ({ - id, - appProfileCapabilityPatch, - }: { - id: string; - appProfileCapabilityPatch: AppProfileCapabilityPatch; - }) => - getClient() - .appProfileCapability.update({ - where: { - id, - }, - data: appProfileCapabilityPatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: appProfileCapabilityKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: appProfileCapabilityKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppProfileDefinitionGrantMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppProfileDefinitionGrantMutation.ts deleted file mode 100644 index b5390550da..0000000000 --- a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppProfileDefinitionGrantMutation.ts +++ /dev/null @@ -1,118 +0,0 @@ -/** - * Audit log of capability additions and removals from profile definitions - * @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 { appProfileDefinitionGrantKeys } from '../query-keys'; -import { appProfileDefinitionGrantMutationKeys } from '../mutation-keys'; -import type { - AppProfileDefinitionGrantSelect, - AppProfileDefinitionGrantWithRelations, - AppProfileDefinitionGrantPatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppProfileDefinitionGrantSelect, - AppProfileDefinitionGrantWithRelations, - AppProfileDefinitionGrantPatch, -} from '../../orm/input-types'; -/** - * Audit log of capability additions and removals from profile definitions - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateAppProfileDefinitionGrantMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', appProfileDefinitionGrantPatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateAppProfileDefinitionGrantMutation< - S extends AppProfileDefinitionGrantSelect, ->( - params: { - selection: { - fields: S & AppProfileDefinitionGrantSelect; - } & HookStrictSelect, AppProfileDefinitionGrantSelect>; - } & Omit< - UseMutationOptions< - { - updateAppProfileDefinitionGrant: { - appProfileDefinitionGrant: InferSelectResult; - }; - }, - Error, - { - id: string; - appProfileDefinitionGrantPatch: AppProfileDefinitionGrantPatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateAppProfileDefinitionGrant: { - appProfileDefinitionGrant: InferSelectResult; - }; - }, - Error, - { - id: string; - appProfileDefinitionGrantPatch: AppProfileDefinitionGrantPatch; - } ->; -export function useUpdateAppProfileDefinitionGrantMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - appProfileDefinitionGrantPatch: AppProfileDefinitionGrantPatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: appProfileDefinitionGrantMutationKeys.all, - mutationFn: ({ - id, - appProfileDefinitionGrantPatch, - }: { - id: string; - appProfileDefinitionGrantPatch: AppProfileDefinitionGrantPatch; - }) => - getClient() - .appProfileDefinitionGrant.update({ - where: { - id, - }, - data: appProfileDefinitionGrantPatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: appProfileDefinitionGrantKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: appProfileDefinitionGrantKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppProfileGrantMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppProfileGrantMutation.ts deleted file mode 100644 index 57ec63e8c3..0000000000 --- a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppProfileGrantMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * Audit log of profile assignments and revocations for members - * @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 { appProfileGrantKeys } from '../query-keys'; -import { appProfileGrantMutationKeys } from '../mutation-keys'; -import type { - AppProfileGrantSelect, - AppProfileGrantWithRelations, - AppProfileGrantPatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppProfileGrantSelect, - AppProfileGrantWithRelations, - AppProfileGrantPatch, -} from '../../orm/input-types'; -/** - * Audit log of profile assignments and revocations for members - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateAppProfileGrantMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', appProfileGrantPatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateAppProfileGrantMutation( - params: { - selection: { - fields: S & AppProfileGrantSelect; - } & HookStrictSelect, AppProfileGrantSelect>; - } & Omit< - UseMutationOptions< - { - updateAppProfileGrant: { - appProfileGrant: InferSelectResult; - }; - }, - Error, - { - id: string; - appProfileGrantPatch: AppProfileGrantPatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateAppProfileGrant: { - appProfileGrant: InferSelectResult; - }; - }, - Error, - { - id: string; - appProfileGrantPatch: AppProfileGrantPatch; - } ->; -export function useUpdateAppProfileGrantMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - appProfileGrantPatch: AppProfileGrantPatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: appProfileGrantMutationKeys.all, - mutationFn: ({ - id, - appProfileGrantPatch, - }: { - id: string; - appProfileGrantPatch: AppProfileGrantPatch; - }) => - getClient() - .appProfileGrant.update({ - where: { - id, - }, - data: appProfileGrantPatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: appProfileGrantKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: appProfileGrantKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppProfileMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppProfileMutation.ts deleted file mode 100644 index 14d4551ceb..0000000000 --- a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppProfileMutation.ts +++ /dev/null @@ -1,110 +0,0 @@ -/** - * Named capability bundles (roles) that group multiple capabilities into reusable profiles - * @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 { appProfileKeys } from '../query-keys'; -import { appProfileMutationKeys } from '../mutation-keys'; -import type { - AppProfileSelect, - AppProfileWithRelations, - AppProfilePatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppProfileSelect, - AppProfileWithRelations, - AppProfilePatch, -} from '../../orm/input-types'; -/** - * Named capability bundles (roles) that group multiple capabilities into reusable profiles - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateAppProfileMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', appProfilePatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateAppProfileMutation( - params: { - selection: { - fields: S & AppProfileSelect; - } & HookStrictSelect, AppProfileSelect>; - } & Omit< - UseMutationOptions< - { - updateAppProfile: { - appProfile: InferSelectResult; - }; - }, - Error, - { - id: string; - appProfilePatch: AppProfilePatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateAppProfile: { - appProfile: InferSelectResult; - }; - }, - Error, - { - id: string; - appProfilePatch: AppProfilePatch; - } ->; -export function useUpdateAppProfileMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - appProfilePatch: AppProfilePatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: appProfileMutationKeys.all, - mutationFn: ({ id, appProfilePatch }: { id: string; appProfilePatch: AppProfilePatch }) => - getClient() - .appProfile.update({ - where: { - id, - }, - data: appProfilePatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: appProfileKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: appProfileKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppProfileTemplateMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppProfileTemplateMutation.ts deleted file mode 100644 index 217726f4a3..0000000000 --- a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppProfileTemplateMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * Template profiles that are automatically seeded into new entities when created - * @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 { appProfileTemplateKeys } from '../query-keys'; -import { appProfileTemplateMutationKeys } from '../mutation-keys'; -import type { - AppProfileTemplateSelect, - AppProfileTemplateWithRelations, - AppProfileTemplatePatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppProfileTemplateSelect, - AppProfileTemplateWithRelations, - AppProfileTemplatePatch, -} from '../../orm/input-types'; -/** - * Template profiles that are automatically seeded into new entities when created - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateAppProfileTemplateMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', appProfileTemplatePatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateAppProfileTemplateMutation( - params: { - selection: { - fields: S & AppProfileTemplateSelect; - } & HookStrictSelect, AppProfileTemplateSelect>; - } & Omit< - UseMutationOptions< - { - updateAppProfileTemplate: { - appProfileTemplate: InferSelectResult; - }; - }, - Error, - { - id: string; - appProfileTemplatePatch: AppProfileTemplatePatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateAppProfileTemplate: { - appProfileTemplate: InferSelectResult; - }; - }, - Error, - { - id: string; - appProfileTemplatePatch: AppProfileTemplatePatch; - } ->; -export function useUpdateAppProfileTemplateMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - appProfileTemplatePatch: AppProfileTemplatePatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: appProfileTemplateMutationKeys.all, - mutationFn: ({ - id, - appProfileTemplatePatch, - }: { - id: string; - appProfileTemplatePatch: AppProfileTemplatePatch; - }) => - getClient() - .appProfileTemplate.update({ - where: { - id, - }, - data: appProfileTemplatePatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: appProfileTemplateKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: appProfileTemplateKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgCapabilityDefaultMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgCapabilityDefaultMutation.ts deleted file mode 100644 index 8c04e8e7d7..0000000000 --- a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgCapabilityDefaultMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * Stores the default capability 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 { orgCapabilityDefaultKeys } from '../query-keys'; -import { orgCapabilityDefaultMutationKeys } from '../mutation-keys'; -import type { - OrgCapabilityDefaultSelect, - OrgCapabilityDefaultWithRelations, - OrgCapabilityDefaultPatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - OrgCapabilityDefaultSelect, - OrgCapabilityDefaultWithRelations, - OrgCapabilityDefaultPatch, -} from '../../orm/input-types'; -/** - * Stores the default capability bitmask assigned to new members upon joining - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateOrgCapabilityDefaultMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', orgCapabilityDefaultPatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateOrgCapabilityDefaultMutation( - params: { - selection: { - fields: S & OrgCapabilityDefaultSelect; - } & HookStrictSelect, OrgCapabilityDefaultSelect>; - } & Omit< - UseMutationOptions< - { - updateOrgCapabilityDefault: { - orgCapabilityDefault: InferSelectResult; - }; - }, - Error, - { - id: string; - orgCapabilityDefaultPatch: OrgCapabilityDefaultPatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateOrgCapabilityDefault: { - orgCapabilityDefault: InferSelectResult; - }; - }, - Error, - { - id: string; - orgCapabilityDefaultPatch: OrgCapabilityDefaultPatch; - } ->; -export function useUpdateOrgCapabilityDefaultMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - orgCapabilityDefaultPatch: OrgCapabilityDefaultPatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: orgCapabilityDefaultMutationKeys.all, - mutationFn: ({ - id, - orgCapabilityDefaultPatch, - }: { - id: string; - orgCapabilityDefaultPatch: OrgCapabilityDefaultPatch; - }) => - getClient() - .orgCapabilityDefault.update({ - where: { - id, - }, - data: orgCapabilityDefaultPatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: orgCapabilityDefaultKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: orgCapabilityDefaultKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgCapabilityMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgCapabilityMutation.ts deleted file mode 100644 index 347c8e173e..0000000000 --- a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgCapabilityMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * Defines available capabilities 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 { orgCapabilityKeys } from '../query-keys'; -import { orgCapabilityMutationKeys } from '../mutation-keys'; -import type { - OrgCapabilitySelect, - OrgCapabilityWithRelations, - OrgCapabilityPatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - OrgCapabilitySelect, - OrgCapabilityWithRelations, - OrgCapabilityPatch, -} from '../../orm/input-types'; -/** - * Defines available capabilities as named bits within a bitmask, used by the RBAC system for access control - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateOrgCapabilityMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', orgCapabilityPatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateOrgCapabilityMutation( - params: { - selection: { - fields: S & OrgCapabilitySelect; - } & HookStrictSelect, OrgCapabilitySelect>; - } & Omit< - UseMutationOptions< - { - updateOrgCapability: { - orgCapability: InferSelectResult; - }; - }, - Error, - { - id: string; - orgCapabilityPatch: OrgCapabilityPatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateOrgCapability: { - orgCapability: InferSelectResult; - }; - }, - Error, - { - id: string; - orgCapabilityPatch: OrgCapabilityPatch; - } ->; -export function useUpdateOrgCapabilityMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - orgCapabilityPatch: OrgCapabilityPatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: orgCapabilityMutationKeys.all, - mutationFn: ({ - id, - orgCapabilityPatch, - }: { - id: string; - orgCapabilityPatch: OrgCapabilityPatch; - }) => - getClient() - .orgCapability.update({ - where: { - id, - }, - data: orgCapabilityPatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: orgCapabilityKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: orgCapabilityKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgMembershipProfileMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgMembershipProfileMutation.ts deleted file mode 100644 index f96d22a5f3..0000000000 --- a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgMembershipProfileMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * Every profile a membership holds; memberships.profile_id points at one of them - * @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 { orgMembershipProfileKeys } from '../query-keys'; -import { orgMembershipProfileMutationKeys } from '../mutation-keys'; -import type { - OrgMembershipProfileSelect, - OrgMembershipProfileWithRelations, - OrgMembershipProfilePatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - OrgMembershipProfileSelect, - OrgMembershipProfileWithRelations, - OrgMembershipProfilePatch, -} from '../../orm/input-types'; -/** - * Every profile a membership holds; memberships.profile_id points at one of them - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateOrgMembershipProfileMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', orgMembershipProfilePatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateOrgMembershipProfileMutation( - params: { - selection: { - fields: S & OrgMembershipProfileSelect; - } & HookStrictSelect, OrgMembershipProfileSelect>; - } & Omit< - UseMutationOptions< - { - updateOrgMembershipProfile: { - orgMembershipProfile: InferSelectResult; - }; - }, - Error, - { - id: string; - orgMembershipProfilePatch: OrgMembershipProfilePatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateOrgMembershipProfile: { - orgMembershipProfile: InferSelectResult; - }; - }, - Error, - { - id: string; - orgMembershipProfilePatch: OrgMembershipProfilePatch; - } ->; -export function useUpdateOrgMembershipProfileMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - orgMembershipProfilePatch: OrgMembershipProfilePatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: orgMembershipProfileMutationKeys.all, - mutationFn: ({ - id, - orgMembershipProfilePatch, - }: { - id: string; - orgMembershipProfilePatch: OrgMembershipProfilePatch; - }) => - getClient() - .orgMembershipProfile.update({ - where: { - id, - }, - data: orgMembershipProfilePatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: orgMembershipProfileKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: orgMembershipProfileKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgProfileCapabilityMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgProfileCapabilityMutation.ts deleted file mode 100644 index 49220770fd..0000000000 --- a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgProfileCapabilityMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * Join table linking profiles to individual capabilities they include - * @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 { orgProfileCapabilityKeys } from '../query-keys'; -import { orgProfileCapabilityMutationKeys } from '../mutation-keys'; -import type { - OrgProfileCapabilitySelect, - OrgProfileCapabilityWithRelations, - OrgProfileCapabilityPatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - OrgProfileCapabilitySelect, - OrgProfileCapabilityWithRelations, - OrgProfileCapabilityPatch, -} from '../../orm/input-types'; -/** - * Join table linking profiles to individual capabilities they include - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateOrgProfileCapabilityMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', orgProfileCapabilityPatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateOrgProfileCapabilityMutation( - params: { - selection: { - fields: S & OrgProfileCapabilitySelect; - } & HookStrictSelect, OrgProfileCapabilitySelect>; - } & Omit< - UseMutationOptions< - { - updateOrgProfileCapability: { - orgProfileCapability: InferSelectResult; - }; - }, - Error, - { - id: string; - orgProfileCapabilityPatch: OrgProfileCapabilityPatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateOrgProfileCapability: { - orgProfileCapability: InferSelectResult; - }; - }, - Error, - { - id: string; - orgProfileCapabilityPatch: OrgProfileCapabilityPatch; - } ->; -export function useUpdateOrgProfileCapabilityMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - orgProfileCapabilityPatch: OrgProfileCapabilityPatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: orgProfileCapabilityMutationKeys.all, - mutationFn: ({ - id, - orgProfileCapabilityPatch, - }: { - id: string; - orgProfileCapabilityPatch: OrgProfileCapabilityPatch; - }) => - getClient() - .orgProfileCapability.update({ - where: { - id, - }, - data: orgProfileCapabilityPatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: orgProfileCapabilityKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: orgProfileCapabilityKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgProfileDefinitionGrantMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgProfileDefinitionGrantMutation.ts deleted file mode 100644 index eaadd6e91b..0000000000 --- a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgProfileDefinitionGrantMutation.ts +++ /dev/null @@ -1,118 +0,0 @@ -/** - * Audit log of capability additions and removals from profile definitions - * @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 { orgProfileDefinitionGrantKeys } from '../query-keys'; -import { orgProfileDefinitionGrantMutationKeys } from '../mutation-keys'; -import type { - OrgProfileDefinitionGrantSelect, - OrgProfileDefinitionGrantWithRelations, - OrgProfileDefinitionGrantPatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - OrgProfileDefinitionGrantSelect, - OrgProfileDefinitionGrantWithRelations, - OrgProfileDefinitionGrantPatch, -} from '../../orm/input-types'; -/** - * Audit log of capability additions and removals from profile definitions - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateOrgProfileDefinitionGrantMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', orgProfileDefinitionGrantPatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateOrgProfileDefinitionGrantMutation< - S extends OrgProfileDefinitionGrantSelect, ->( - params: { - selection: { - fields: S & OrgProfileDefinitionGrantSelect; - } & HookStrictSelect, OrgProfileDefinitionGrantSelect>; - } & Omit< - UseMutationOptions< - { - updateOrgProfileDefinitionGrant: { - orgProfileDefinitionGrant: InferSelectResult; - }; - }, - Error, - { - id: string; - orgProfileDefinitionGrantPatch: OrgProfileDefinitionGrantPatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateOrgProfileDefinitionGrant: { - orgProfileDefinitionGrant: InferSelectResult; - }; - }, - Error, - { - id: string; - orgProfileDefinitionGrantPatch: OrgProfileDefinitionGrantPatch; - } ->; -export function useUpdateOrgProfileDefinitionGrantMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - orgProfileDefinitionGrantPatch: OrgProfileDefinitionGrantPatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: orgProfileDefinitionGrantMutationKeys.all, - mutationFn: ({ - id, - orgProfileDefinitionGrantPatch, - }: { - id: string; - orgProfileDefinitionGrantPatch: OrgProfileDefinitionGrantPatch; - }) => - getClient() - .orgProfileDefinitionGrant.update({ - where: { - id, - }, - data: orgProfileDefinitionGrantPatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: orgProfileDefinitionGrantKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: orgProfileDefinitionGrantKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgProfileGrantMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgProfileGrantMutation.ts deleted file mode 100644 index 99c3f955a2..0000000000 --- a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgProfileGrantMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * Audit log of profile assignments and revocations for members - * @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 { orgProfileGrantKeys } from '../query-keys'; -import { orgProfileGrantMutationKeys } from '../mutation-keys'; -import type { - OrgProfileGrantSelect, - OrgProfileGrantWithRelations, - OrgProfileGrantPatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - OrgProfileGrantSelect, - OrgProfileGrantWithRelations, - OrgProfileGrantPatch, -} from '../../orm/input-types'; -/** - * Audit log of profile assignments and revocations for members - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateOrgProfileGrantMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', orgProfileGrantPatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateOrgProfileGrantMutation( - params: { - selection: { - fields: S & OrgProfileGrantSelect; - } & HookStrictSelect, OrgProfileGrantSelect>; - } & Omit< - UseMutationOptions< - { - updateOrgProfileGrant: { - orgProfileGrant: InferSelectResult; - }; - }, - Error, - { - id: string; - orgProfileGrantPatch: OrgProfileGrantPatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateOrgProfileGrant: { - orgProfileGrant: InferSelectResult; - }; - }, - Error, - { - id: string; - orgProfileGrantPatch: OrgProfileGrantPatch; - } ->; -export function useUpdateOrgProfileGrantMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - orgProfileGrantPatch: OrgProfileGrantPatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: orgProfileGrantMutationKeys.all, - mutationFn: ({ - id, - orgProfileGrantPatch, - }: { - id: string; - orgProfileGrantPatch: OrgProfileGrantPatch; - }) => - getClient() - .orgProfileGrant.update({ - where: { - id, - }, - data: orgProfileGrantPatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: orgProfileGrantKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: orgProfileGrantKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgProfileMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgProfileMutation.ts deleted file mode 100644 index b417412e37..0000000000 --- a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgProfileMutation.ts +++ /dev/null @@ -1,110 +0,0 @@ -/** - * Named capability bundles (roles) that group multiple capabilities into reusable profiles - * @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 { orgProfileKeys } from '../query-keys'; -import { orgProfileMutationKeys } from '../mutation-keys'; -import type { - OrgProfileSelect, - OrgProfileWithRelations, - OrgProfilePatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - OrgProfileSelect, - OrgProfileWithRelations, - OrgProfilePatch, -} from '../../orm/input-types'; -/** - * Named capability bundles (roles) that group multiple capabilities into reusable profiles - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateOrgProfileMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', orgProfilePatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateOrgProfileMutation( - params: { - selection: { - fields: S & OrgProfileSelect; - } & HookStrictSelect, OrgProfileSelect>; - } & Omit< - UseMutationOptions< - { - updateOrgProfile: { - orgProfile: InferSelectResult; - }; - }, - Error, - { - id: string; - orgProfilePatch: OrgProfilePatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateOrgProfile: { - orgProfile: InferSelectResult; - }; - }, - Error, - { - id: string; - orgProfilePatch: OrgProfilePatch; - } ->; -export function useUpdateOrgProfileMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - orgProfilePatch: OrgProfilePatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: orgProfileMutationKeys.all, - mutationFn: ({ id, orgProfilePatch }: { id: string; orgProfilePatch: OrgProfilePatch }) => - getClient() - .orgProfile.update({ - where: { - id, - }, - data: orgProfilePatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: orgProfileKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: orgProfileKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgProfileTemplateMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgProfileTemplateMutation.ts deleted file mode 100644 index f6f8aca027..0000000000 --- a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgProfileTemplateMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * Template profiles that are automatically seeded into new entities when created - * @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 { orgProfileTemplateKeys } from '../query-keys'; -import { orgProfileTemplateMutationKeys } from '../mutation-keys'; -import type { - OrgProfileTemplateSelect, - OrgProfileTemplateWithRelations, - OrgProfileTemplatePatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - OrgProfileTemplateSelect, - OrgProfileTemplateWithRelations, - OrgProfileTemplatePatch, -} from '../../orm/input-types'; -/** - * Template profiles that are automatically seeded into new entities when created - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateOrgProfileTemplateMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', orgProfileTemplatePatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateOrgProfileTemplateMutation( - params: { - selection: { - fields: S & OrgProfileTemplateSelect; - } & HookStrictSelect, OrgProfileTemplateSelect>; - } & Omit< - UseMutationOptions< - { - updateOrgProfileTemplate: { - orgProfileTemplate: InferSelectResult; - }; - }, - Error, - { - id: string; - orgProfileTemplatePatch: OrgProfileTemplatePatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateOrgProfileTemplate: { - orgProfileTemplate: InferSelectResult; - }; - }, - Error, - { - id: string; - orgProfileTemplatePatch: OrgProfileTemplatePatch; - } ->; -export function useUpdateOrgProfileTemplateMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - orgProfileTemplatePatch: OrgProfileTemplatePatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: orgProfileTemplateMutationKeys.all, - mutationFn: ({ - id, - orgProfileTemplatePatch, - }: { - id: string; - orgProfileTemplatePatch: OrgProfileTemplatePatch; - }) => - getClient() - .orgProfileTemplate.update({ - where: { - id, - }, - data: orgProfileTemplatePatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: orgProfileTemplateKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: orgProfileTemplateKeys.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 50f3951b9e..4eeb6732b8 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/index.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/index.ts @@ -5,12 +5,8 @@ */ export * from './useAppAdminGrantsQuery'; export * from './useAppAdminGrantQuery'; -export * from './useAppCapabilitiesQuery'; -export * from './useAppCapabilityQuery'; export * from './useAppCapabilityDefaultCapabilitiesQuery'; export * from './useAppCapabilityDefaultCapabilityQuery'; -export * from './useAppCapabilityDefaultsQuery'; -export * from './useAppCapabilityDefaultQuery'; export * from './useAppCapabilityDefaultGrantsQuery'; export * from './useAppCapabilityDefaultGrantQuery'; export * from './useAppClaimedInvitesQuery'; @@ -23,30 +19,14 @@ export * from './useAppMembershipsQuery'; export * from './useAppMembershipQuery'; export * from './useAppMembershipDefaultsQuery'; export * from './useAppMembershipDefaultQuery'; -export * from './useAppMembershipProfilesQuery'; -export * from './useAppMembershipProfileQuery'; export * from './useAppOwnerGrantsQuery'; export * from './useAppOwnerGrantQuery'; -export * from './useAppProfileCapabilitiesQuery'; -export * from './useAppProfileCapabilityQuery'; -export * from './useAppProfilesQuery'; -export * from './useAppProfileQuery'; -export * from './useAppProfileDefinitionGrantsQuery'; -export * from './useAppProfileDefinitionGrantQuery'; -export * from './useAppProfileGrantsQuery'; -export * from './useAppProfileGrantQuery'; -export * from './useAppProfileTemplatesQuery'; -export * from './useAppProfileTemplateQuery'; export * from './useMembershipTypesQuery'; export * from './useMembershipTypeQuery'; export * from './useOrgAdminGrantsQuery'; export * from './useOrgAdminGrantQuery'; -export * from './useOrgCapabilitiesQuery'; -export * from './useOrgCapabilityQuery'; export * from './useOrgCapabilityDefaultCapabilitiesQuery'; export * from './useOrgCapabilityDefaultCapabilityQuery'; -export * from './useOrgCapabilityDefaultsQuery'; -export * from './useOrgCapabilityDefaultQuery'; export * from './useOrgCapabilityDefaultGrantsQuery'; export * from './useOrgCapabilityDefaultGrantQuery'; export * from './useOrgChartEdgesQuery'; @@ -69,28 +49,9 @@ export * from './useOrgMembershipsQuery'; export * from './useOrgMembershipQuery'; export * from './useOrgMembershipDefaultsQuery'; export * from './useOrgMembershipDefaultQuery'; -export * from './useOrgMembershipProfilesQuery'; -export * from './useOrgMembershipProfileQuery'; export * from './useOrgMembershipSettingsQuery'; export * from './useOrgMembershipSettingQuery'; export * from './useOrgOwnerGrantsQuery'; export * from './useOrgOwnerGrantQuery'; -export * from './useOrgProfileCapabilitiesQuery'; -export * from './useOrgProfileCapabilityQuery'; -export * from './useOrgProfilesQuery'; -export * from './useOrgProfileQuery'; -export * from './useOrgProfileDefinitionGrantsQuery'; -export * from './useOrgProfileDefinitionGrantQuery'; -export * from './useOrgProfileGrantsQuery'; -export * from './useOrgProfileGrantQuery'; -export * from './useOrgProfileTemplatesQuery'; -export * from './useOrgProfileTemplateQuery'; -export * from './useAppCapabilitiesGetByMaskQuery'; -export * from './useAppCapabilitiesGetMaskQuery'; -export * from './useAppCapabilitiesGetMaskByNamesQuery'; -export * from './useAppCapabilitiesGetPaddedMaskQuery'; -export * from './useOrgCapabilitiesGetByMaskQuery'; -export * from './useOrgCapabilitiesGetMaskQuery'; -export * from './useOrgCapabilitiesGetMaskByNamesQuery'; -export * from './useOrgCapabilitiesGetPaddedMaskQuery'; +export * from './useGetOrganizationIdQuery'; export * from './useOrgIsManagerOfQuery'; diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppCapabilitiesGetByMaskQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppCapabilitiesGetByMaskQuery.ts deleted file mode 100644 index 564589991c..0000000000 --- a/sdk/constructive-react/src/admin/hooks/queries/useAppCapabilitiesGetByMaskQuery.ts +++ /dev/null @@ -1,108 +0,0 @@ -/** - * Custom query hook for appCapabilitiesGetByMask - * @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 { AppCapabilitiesGetByMaskVariables } from '../../orm/query'; -import type { AppCapabilityConnection } from '../../orm/input-types'; -export type { AppCapabilitiesGetByMaskVariables } from '../../orm/query'; -/** Query key factory - re-exported from query-keys.ts */ -export const appCapabilitiesGetByMaskQueryKey = customQueryKeys.appCapabilitiesGetByMask; -/** - * Reads and enables pagination through a set of `AppCapability`. - * - * @example - * ```tsx - * const { data, isLoading } = useAppCapabilitiesGetByMaskQuery({ variables: { after, first, mask, offset } }); - * - * if (data?.appCapabilitiesGetByMask) { - * console.log(data.appCapabilitiesGetByMask); - * } - * ``` - */ -export function useAppCapabilitiesGetByMaskQuery< - TData = { - appCapabilitiesGetByMask: AppCapabilityConnection | null; - }, ->( - params?: { - variables?: AppCapabilitiesGetByMaskVariables; - } & Omit< - UseQueryOptions< - { - appCapabilitiesGetByMask: AppCapabilityConnection | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAppCapabilitiesGetByMaskQuery< - TData = { - appCapabilitiesGetByMask: AppCapabilityConnection | null; - }, ->( - params?: { - variables?: AppCapabilitiesGetByMaskVariables; - } & Omit< - UseQueryOptions< - { - appCapabilitiesGetByMask: AppCapabilityConnection | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult { - const variables = params?.variables ?? {}; - const { variables: _variables, ...queryOptions } = params ?? {}; - void _variables; - return useQuery({ - queryKey: appCapabilitiesGetByMaskQueryKey(variables), - queryFn: () => getClient().query.appCapabilitiesGetByMask(variables).unwrap(), - ...queryOptions, - }); -} -/** - * Fetch appCapabilitiesGetByMask without React hooks - * - * @example - * ```ts - * const data = await fetchAppCapabilitiesGetByMaskQuery({ variables: { after, first, mask, offset } }); - * ``` - */ -export async function fetchAppCapabilitiesGetByMaskQuery(params?: { - variables?: AppCapabilitiesGetByMaskVariables; -}) { - const variables = params?.variables ?? {}; - return getClient().query.appCapabilitiesGetByMask(variables).unwrap(); -} -/** - * Prefetch appCapabilitiesGetByMask for SSR or cache warming - * - * @example - * ```ts - * await prefetchAppCapabilitiesGetByMaskQuery(queryClient, { variables: { after, first, mask, offset } }); - * ``` - */ -export async function prefetchAppCapabilitiesGetByMaskQuery( - queryClient: QueryClient, - params?: { - variables?: AppCapabilitiesGetByMaskVariables; - } -): Promise { - const variables = params?.variables ?? {}; - await queryClient.prefetchQuery({ - queryKey: appCapabilitiesGetByMaskQueryKey(variables), - queryFn: () => getClient().query.appCapabilitiesGetByMask(variables).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppCapabilitiesGetMaskByNamesQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppCapabilitiesGetMaskByNamesQuery.ts deleted file mode 100644 index 8f1a9cd2eb..0000000000 --- a/sdk/constructive-react/src/admin/hooks/queries/useAppCapabilitiesGetMaskByNamesQuery.ts +++ /dev/null @@ -1,107 +0,0 @@ -/** - * Custom query hook for appCapabilitiesGetMaskByNames - * @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 { AppCapabilitiesGetMaskByNamesVariables } from '../../orm/query'; -export type { AppCapabilitiesGetMaskByNamesVariables } from '../../orm/query'; -/** Query key factory - re-exported from query-keys.ts */ -export const appCapabilitiesGetMaskByNamesQueryKey = customQueryKeys.appCapabilitiesGetMaskByNames; -/** - * Query hook for appCapabilitiesGetMaskByNames - * - * @example - * ```tsx - * const { data, isLoading } = useAppCapabilitiesGetMaskByNamesQuery({ variables: { names } }); - * - * if (data?.appCapabilitiesGetMaskByNames) { - * console.log(data.appCapabilitiesGetMaskByNames); - * } - * ``` - */ -export function useAppCapabilitiesGetMaskByNamesQuery< - TData = { - appCapabilitiesGetMaskByNames: string | null; - }, ->( - params?: { - variables?: AppCapabilitiesGetMaskByNamesVariables; - } & Omit< - UseQueryOptions< - { - appCapabilitiesGetMaskByNames: string | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAppCapabilitiesGetMaskByNamesQuery< - TData = { - appCapabilitiesGetMaskByNames: string | null; - }, ->( - params?: { - variables?: AppCapabilitiesGetMaskByNamesVariables; - } & Omit< - UseQueryOptions< - { - appCapabilitiesGetMaskByNames: string | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult { - const variables = params?.variables ?? {}; - const { variables: _variables, ...queryOptions } = params ?? {}; - void _variables; - return useQuery({ - queryKey: appCapabilitiesGetMaskByNamesQueryKey(variables), - queryFn: () => getClient().query.appCapabilitiesGetMaskByNames(variables).unwrap(), - ...queryOptions, - }); -} -/** - * Fetch appCapabilitiesGetMaskByNames without React hooks - * - * @example - * ```ts - * const data = await fetchAppCapabilitiesGetMaskByNamesQuery({ variables: { names } }); - * ``` - */ -export async function fetchAppCapabilitiesGetMaskByNamesQuery(params?: { - variables?: AppCapabilitiesGetMaskByNamesVariables; -}) { - const variables = params?.variables ?? {}; - return getClient().query.appCapabilitiesGetMaskByNames(variables).unwrap(); -} -/** - * Prefetch appCapabilitiesGetMaskByNames for SSR or cache warming - * - * @example - * ```ts - * await prefetchAppCapabilitiesGetMaskByNamesQuery(queryClient, { variables: { names } }); - * ``` - */ -export async function prefetchAppCapabilitiesGetMaskByNamesQuery( - queryClient: QueryClient, - params?: { - variables?: AppCapabilitiesGetMaskByNamesVariables; - } -): Promise { - const variables = params?.variables ?? {}; - await queryClient.prefetchQuery({ - queryKey: appCapabilitiesGetMaskByNamesQueryKey(variables), - queryFn: () => getClient().query.appCapabilitiesGetMaskByNames(variables).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppCapabilitiesGetMaskQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppCapabilitiesGetMaskQuery.ts deleted file mode 100644 index 13af5ba5e5..0000000000 --- a/sdk/constructive-react/src/admin/hooks/queries/useAppCapabilitiesGetMaskQuery.ts +++ /dev/null @@ -1,107 +0,0 @@ -/** - * Custom query hook for appCapabilitiesGetMask - * @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 { AppCapabilitiesGetMaskVariables } from '../../orm/query'; -export type { AppCapabilitiesGetMaskVariables } from '../../orm/query'; -/** Query key factory - re-exported from query-keys.ts */ -export const appCapabilitiesGetMaskQueryKey = customQueryKeys.appCapabilitiesGetMask; -/** - * Query hook for appCapabilitiesGetMask - * - * @example - * ```tsx - * const { data, isLoading } = useAppCapabilitiesGetMaskQuery({ variables: { ids } }); - * - * if (data?.appCapabilitiesGetMask) { - * console.log(data.appCapabilitiesGetMask); - * } - * ``` - */ -export function useAppCapabilitiesGetMaskQuery< - TData = { - appCapabilitiesGetMask: string | null; - }, ->( - params?: { - variables?: AppCapabilitiesGetMaskVariables; - } & Omit< - UseQueryOptions< - { - appCapabilitiesGetMask: string | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAppCapabilitiesGetMaskQuery< - TData = { - appCapabilitiesGetMask: string | null; - }, ->( - params?: { - variables?: AppCapabilitiesGetMaskVariables; - } & Omit< - UseQueryOptions< - { - appCapabilitiesGetMask: string | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult { - const variables = params?.variables ?? {}; - const { variables: _variables, ...queryOptions } = params ?? {}; - void _variables; - return useQuery({ - queryKey: appCapabilitiesGetMaskQueryKey(variables), - queryFn: () => getClient().query.appCapabilitiesGetMask(variables).unwrap(), - ...queryOptions, - }); -} -/** - * Fetch appCapabilitiesGetMask without React hooks - * - * @example - * ```ts - * const data = await fetchAppCapabilitiesGetMaskQuery({ variables: { ids } }); - * ``` - */ -export async function fetchAppCapabilitiesGetMaskQuery(params?: { - variables?: AppCapabilitiesGetMaskVariables; -}) { - const variables = params?.variables ?? {}; - return getClient().query.appCapabilitiesGetMask(variables).unwrap(); -} -/** - * Prefetch appCapabilitiesGetMask for SSR or cache warming - * - * @example - * ```ts - * await prefetchAppCapabilitiesGetMaskQuery(queryClient, { variables: { ids } }); - * ``` - */ -export async function prefetchAppCapabilitiesGetMaskQuery( - queryClient: QueryClient, - params?: { - variables?: AppCapabilitiesGetMaskVariables; - } -): Promise { - const variables = params?.variables ?? {}; - await queryClient.prefetchQuery({ - queryKey: appCapabilitiesGetMaskQueryKey(variables), - queryFn: () => getClient().query.appCapabilitiesGetMask(variables).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppCapabilitiesGetPaddedMaskQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppCapabilitiesGetPaddedMaskQuery.ts deleted file mode 100644 index db35f3e8bf..0000000000 --- a/sdk/constructive-react/src/admin/hooks/queries/useAppCapabilitiesGetPaddedMaskQuery.ts +++ /dev/null @@ -1,107 +0,0 @@ -/** - * Custom query hook for appCapabilitiesGetPaddedMask - * @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 { AppCapabilitiesGetPaddedMaskVariables } from '../../orm/query'; -export type { AppCapabilitiesGetPaddedMaskVariables } from '../../orm/query'; -/** Query key factory - re-exported from query-keys.ts */ -export const appCapabilitiesGetPaddedMaskQueryKey = customQueryKeys.appCapabilitiesGetPaddedMask; -/** - * Query hook for appCapabilitiesGetPaddedMask - * - * @example - * ```tsx - * const { data, isLoading } = useAppCapabilitiesGetPaddedMaskQuery({ variables: { mask } }); - * - * if (data?.appCapabilitiesGetPaddedMask) { - * console.log(data.appCapabilitiesGetPaddedMask); - * } - * ``` - */ -export function useAppCapabilitiesGetPaddedMaskQuery< - TData = { - appCapabilitiesGetPaddedMask: string | null; - }, ->( - params?: { - variables?: AppCapabilitiesGetPaddedMaskVariables; - } & Omit< - UseQueryOptions< - { - appCapabilitiesGetPaddedMask: string | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAppCapabilitiesGetPaddedMaskQuery< - TData = { - appCapabilitiesGetPaddedMask: string | null; - }, ->( - params?: { - variables?: AppCapabilitiesGetPaddedMaskVariables; - } & Omit< - UseQueryOptions< - { - appCapabilitiesGetPaddedMask: string | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult { - const variables = params?.variables ?? {}; - const { variables: _variables, ...queryOptions } = params ?? {}; - void _variables; - return useQuery({ - queryKey: appCapabilitiesGetPaddedMaskQueryKey(variables), - queryFn: () => getClient().query.appCapabilitiesGetPaddedMask(variables).unwrap(), - ...queryOptions, - }); -} -/** - * Fetch appCapabilitiesGetPaddedMask without React hooks - * - * @example - * ```ts - * const data = await fetchAppCapabilitiesGetPaddedMaskQuery({ variables: { mask } }); - * ``` - */ -export async function fetchAppCapabilitiesGetPaddedMaskQuery(params?: { - variables?: AppCapabilitiesGetPaddedMaskVariables; -}) { - const variables = params?.variables ?? {}; - return getClient().query.appCapabilitiesGetPaddedMask(variables).unwrap(); -} -/** - * Prefetch appCapabilitiesGetPaddedMask for SSR or cache warming - * - * @example - * ```ts - * await prefetchAppCapabilitiesGetPaddedMaskQuery(queryClient, { variables: { mask } }); - * ``` - */ -export async function prefetchAppCapabilitiesGetPaddedMaskQuery( - queryClient: QueryClient, - params?: { - variables?: AppCapabilitiesGetPaddedMaskVariables; - } -): Promise { - const variables = params?.variables ?? {}; - await queryClient.prefetchQuery({ - queryKey: appCapabilitiesGetPaddedMaskQueryKey(variables), - queryFn: () => getClient().query.appCapabilitiesGetPaddedMask(variables).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppCapabilitiesQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppCapabilitiesQuery.ts deleted file mode 100644 index 7d1f09a74a..0000000000 --- a/sdk/constructive-react/src/admin/hooks/queries/useAppCapabilitiesQuery.ts +++ /dev/null @@ -1,151 +0,0 @@ -/** - * Defines available capabilities 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 { appCapabilityKeys } from '../query-keys'; -import type { - AppCapabilitySelect, - AppCapabilityWithRelations, - AppCapabilityFilter, - AppCapabilityOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - AppCapabilitySelect, - AppCapabilityWithRelations, - AppCapabilityFilter, - AppCapabilityOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const appCapabilitiesQueryKey = appCapabilityKeys.list; -/** - * Defines available capabilities as named bits within a bitmask, used by the RBAC system for access control - * - * @example - * ```tsx - * const { data, isLoading } = useAppCapabilitiesQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useAppCapabilitiesQuery< - S extends AppCapabilitySelect, - TData = { - appCapabilities: ConnectionResult>; - }, ->( - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, AppCapabilitySelect>; - } & Omit< - UseQueryOptions< - { - appCapabilities: ConnectionResult>; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAppCapabilitiesQuery( - params: { - selection: ListSelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs< - AppCapabilitySelect, - AppCapabilityFilter, - AppCapabilityOrderBy - >(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: appCapabilityKeys.list(args), - queryFn: () => getClient().appCapability.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Defines available capabilities as named bits within a bitmask, used by the RBAC system for access control - * - * @example - * ```ts - * const data = await fetchAppCapabilitiesQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchAppCapabilitiesQuery(params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, AppCapabilitySelect>; -}): Promise<{ - appCapabilities: ConnectionResult>; -}>; -export async function fetchAppCapabilitiesQuery(params: { - selection: ListSelectionConfig; -}) { - const args = buildListSelectionArgs< - AppCapabilitySelect, - AppCapabilityFilter, - AppCapabilityOrderBy - >(params.selection); - return getClient().appCapability.findMany(args).unwrap(); -} -/** - * Defines available capabilities as named bits within a bitmask, used by the RBAC system for access control - * - * @example - * ```ts - * await prefetchAppCapabilitiesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchAppCapabilitiesQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, AppCapabilitySelect>; - } -): Promise; -export async function prefetchAppCapabilitiesQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig; - } -): Promise { - const args = buildListSelectionArgs< - AppCapabilitySelect, - AppCapabilityFilter, - AppCapabilityOrderBy - >(params.selection); - await queryClient.prefetchQuery({ - queryKey: appCapabilityKeys.list(args), - queryFn: () => getClient().appCapability.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppCapabilityDefaultQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppCapabilityDefaultQuery.ts deleted file mode 100644 index 0b8f20d2d6..0000000000 --- a/sdk/constructive-react/src/admin/hooks/queries/useAppCapabilityDefaultQuery.ts +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Stores the default capability 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 { appCapabilityDefaultKeys } from '../query-keys'; -import type { - AppCapabilityDefaultSelect, - AppCapabilityDefaultWithRelations, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppCapabilityDefaultSelect, - AppCapabilityDefaultWithRelations, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const appCapabilityDefaultQueryKey = appCapabilityDefaultKeys.detail; -/** - * Stores the default capability bitmask assigned to new members upon joining - * - * @example - * ```tsx - * const { data, isLoading } = useAppCapabilityDefaultQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useAppCapabilityDefaultQuery< - S extends AppCapabilityDefaultSelect, - TData = { - appCapabilityDefault: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppCapabilityDefaultSelect>; - } & Omit< - UseQueryOptions< - { - appCapabilityDefault: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAppCapabilityDefaultQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: appCapabilityDefaultKeys.detail(params.id), - queryFn: () => - getClient() - .appCapabilityDefault.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Stores the default capability bitmask assigned to new members upon joining - * - * @example - * ```ts - * const data = await fetchAppCapabilityDefaultQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchAppCapabilityDefaultQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppCapabilityDefaultSelect>; -}): Promise<{ - appCapabilityDefault: InferSelectResult | null; -}>; -export async function fetchAppCapabilityDefaultQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .appCapabilityDefault.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Stores the default capability bitmask assigned to new members upon joining - * - * @example - * ```ts - * await prefetchAppCapabilityDefaultQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchAppCapabilityDefaultQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppCapabilityDefaultSelect>; - } -): Promise; -export async function prefetchAppCapabilityDefaultQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: appCapabilityDefaultKeys.detail(params.id), - queryFn: () => - getClient() - .appCapabilityDefault.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppCapabilityDefaultsQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppCapabilityDefaultsQuery.ts deleted file mode 100644 index 23241126ed..0000000000 --- a/sdk/constructive-react/src/admin/hooks/queries/useAppCapabilityDefaultsQuery.ts +++ /dev/null @@ -1,178 +0,0 @@ -/** - * Stores the default capability 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 { appCapabilityDefaultKeys } from '../query-keys'; -import type { - AppCapabilityDefaultSelect, - AppCapabilityDefaultWithRelations, - AppCapabilityDefaultFilter, - AppCapabilityDefaultOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - AppCapabilityDefaultSelect, - AppCapabilityDefaultWithRelations, - AppCapabilityDefaultFilter, - AppCapabilityDefaultOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const appCapabilityDefaultsQueryKey = appCapabilityDefaultKeys.list; -/** - * Stores the default capability bitmask assigned to new members upon joining - * - * @example - * ```tsx - * const { data, isLoading } = useAppCapabilityDefaultsQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useAppCapabilityDefaultsQuery< - S extends AppCapabilityDefaultSelect, - TData = { - appCapabilityDefaults: ConnectionResult< - InferSelectResult - >; - }, ->( - params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, AppCapabilityDefaultSelect>; - } & Omit< - UseQueryOptions< - { - appCapabilityDefaults: ConnectionResult< - InferSelectResult - >; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAppCapabilityDefaultsQuery( - params: { - selection: ListSelectionConfig< - AppCapabilityDefaultSelect, - AppCapabilityDefaultFilter, - AppCapabilityDefaultOrderBy - >; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs< - AppCapabilityDefaultSelect, - AppCapabilityDefaultFilter, - AppCapabilityDefaultOrderBy - >(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: appCapabilityDefaultKeys.list(args), - queryFn: () => getClient().appCapabilityDefault.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Stores the default capability bitmask assigned to new members upon joining - * - * @example - * ```ts - * const data = await fetchAppCapabilityDefaultsQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchAppCapabilityDefaultsQuery< - S extends AppCapabilityDefaultSelect, ->(params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, AppCapabilityDefaultSelect>; -}): Promise<{ - appCapabilityDefaults: ConnectionResult>; -}>; -export async function fetchAppCapabilityDefaultsQuery(params: { - selection: ListSelectionConfig< - AppCapabilityDefaultSelect, - AppCapabilityDefaultFilter, - AppCapabilityDefaultOrderBy - >; -}) { - const args = buildListSelectionArgs< - AppCapabilityDefaultSelect, - AppCapabilityDefaultFilter, - AppCapabilityDefaultOrderBy - >(params.selection); - return getClient().appCapabilityDefault.findMany(args).unwrap(); -} -/** - * Stores the default capability bitmask assigned to new members upon joining - * - * @example - * ```ts - * await prefetchAppCapabilityDefaultsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchAppCapabilityDefaultsQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, AppCapabilityDefaultSelect>; - } -): Promise; -export async function prefetchAppCapabilityDefaultsQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig< - AppCapabilityDefaultSelect, - AppCapabilityDefaultFilter, - AppCapabilityDefaultOrderBy - >; - } -): Promise { - const args = buildListSelectionArgs< - AppCapabilityDefaultSelect, - AppCapabilityDefaultFilter, - AppCapabilityDefaultOrderBy - >(params.selection); - await queryClient.prefetchQuery({ - queryKey: appCapabilityDefaultKeys.list(args), - queryFn: () => getClient().appCapabilityDefault.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppCapabilityQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppCapabilityQuery.ts deleted file mode 100644 index d5972c1d31..0000000000 --- a/sdk/constructive-react/src/admin/hooks/queries/useAppCapabilityQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * Defines available capabilities 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 { appCapabilityKeys } from '../query-keys'; -import type { AppCapabilitySelect, AppCapabilityWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { AppCapabilitySelect, AppCapabilityWithRelations } from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const appCapabilityQueryKey = appCapabilityKeys.detail; -/** - * Defines available capabilities as named bits within a bitmask, used by the RBAC system for access control - * - * @example - * ```tsx - * const { data, isLoading } = useAppCapabilityQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useAppCapabilityQuery< - S extends AppCapabilitySelect, - TData = { - appCapability: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppCapabilitySelect>; - } & Omit< - UseQueryOptions< - { - appCapability: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAppCapabilityQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: appCapabilityKeys.detail(params.id), - queryFn: () => - getClient() - .appCapability.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Defines available capabilities as named bits within a bitmask, used by the RBAC system for access control - * - * @example - * ```ts - * const data = await fetchAppCapabilityQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchAppCapabilityQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppCapabilitySelect>; -}): Promise<{ - appCapability: InferSelectResult | null; -}>; -export async function fetchAppCapabilityQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .appCapability.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Defines available capabilities as named bits within a bitmask, used by the RBAC system for access control - * - * @example - * ```ts - * await prefetchAppCapabilityQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchAppCapabilityQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppCapabilitySelect>; - } -): Promise; -export async function prefetchAppCapabilityQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: appCapabilityKeys.detail(params.id), - queryFn: () => - getClient() - .appCapability.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppMembershipProfileQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppMembershipProfileQuery.ts deleted file mode 100644 index ab5de0bec9..0000000000 --- a/sdk/constructive-react/src/admin/hooks/queries/useAppMembershipProfileQuery.ts +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Every profile a membership holds; memberships.profile_id points at one of them - * @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 { appMembershipProfileKeys } from '../query-keys'; -import type { - AppMembershipProfileSelect, - AppMembershipProfileWithRelations, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppMembershipProfileSelect, - AppMembershipProfileWithRelations, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const appMembershipProfileQueryKey = appMembershipProfileKeys.detail; -/** - * Every profile a membership holds; memberships.profile_id points at one of them - * - * @example - * ```tsx - * const { data, isLoading } = useAppMembershipProfileQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useAppMembershipProfileQuery< - S extends AppMembershipProfileSelect, - TData = { - appMembershipProfile: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppMembershipProfileSelect>; - } & Omit< - UseQueryOptions< - { - appMembershipProfile: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAppMembershipProfileQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: appMembershipProfileKeys.detail(params.id), - queryFn: () => - getClient() - .appMembershipProfile.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Every profile a membership holds; memberships.profile_id points at one of them - * - * @example - * ```ts - * const data = await fetchAppMembershipProfileQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchAppMembershipProfileQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppMembershipProfileSelect>; -}): Promise<{ - appMembershipProfile: InferSelectResult | null; -}>; -export async function fetchAppMembershipProfileQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .appMembershipProfile.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Every profile a membership holds; memberships.profile_id points at one of them - * - * @example - * ```ts - * await prefetchAppMembershipProfileQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchAppMembershipProfileQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppMembershipProfileSelect>; - } -): Promise; -export async function prefetchAppMembershipProfileQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: appMembershipProfileKeys.detail(params.id), - queryFn: () => - getClient() - .appMembershipProfile.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppMembershipProfilesQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppMembershipProfilesQuery.ts deleted file mode 100644 index f0a46d6d2d..0000000000 --- a/sdk/constructive-react/src/admin/hooks/queries/useAppMembershipProfilesQuery.ts +++ /dev/null @@ -1,178 +0,0 @@ -/** - * Every profile a membership holds; memberships.profile_id points at one of them - * @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 { appMembershipProfileKeys } from '../query-keys'; -import type { - AppMembershipProfileSelect, - AppMembershipProfileWithRelations, - AppMembershipProfileFilter, - AppMembershipProfileOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - AppMembershipProfileSelect, - AppMembershipProfileWithRelations, - AppMembershipProfileFilter, - AppMembershipProfileOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const appMembershipProfilesQueryKey = appMembershipProfileKeys.list; -/** - * Every profile a membership holds; memberships.profile_id points at one of them - * - * @example - * ```tsx - * const { data, isLoading } = useAppMembershipProfilesQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useAppMembershipProfilesQuery< - S extends AppMembershipProfileSelect, - TData = { - appMembershipProfiles: ConnectionResult< - InferSelectResult - >; - }, ->( - params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, AppMembershipProfileSelect>; - } & Omit< - UseQueryOptions< - { - appMembershipProfiles: ConnectionResult< - InferSelectResult - >; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAppMembershipProfilesQuery( - params: { - selection: ListSelectionConfig< - AppMembershipProfileSelect, - AppMembershipProfileFilter, - AppMembershipProfileOrderBy - >; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs< - AppMembershipProfileSelect, - AppMembershipProfileFilter, - AppMembershipProfileOrderBy - >(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: appMembershipProfileKeys.list(args), - queryFn: () => getClient().appMembershipProfile.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Every profile a membership holds; memberships.profile_id points at one of them - * - * @example - * ```ts - * const data = await fetchAppMembershipProfilesQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchAppMembershipProfilesQuery< - S extends AppMembershipProfileSelect, ->(params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, AppMembershipProfileSelect>; -}): Promise<{ - appMembershipProfiles: ConnectionResult>; -}>; -export async function fetchAppMembershipProfilesQuery(params: { - selection: ListSelectionConfig< - AppMembershipProfileSelect, - AppMembershipProfileFilter, - AppMembershipProfileOrderBy - >; -}) { - const args = buildListSelectionArgs< - AppMembershipProfileSelect, - AppMembershipProfileFilter, - AppMembershipProfileOrderBy - >(params.selection); - return getClient().appMembershipProfile.findMany(args).unwrap(); -} -/** - * Every profile a membership holds; memberships.profile_id points at one of them - * - * @example - * ```ts - * await prefetchAppMembershipProfilesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchAppMembershipProfilesQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, AppMembershipProfileSelect>; - } -): Promise; -export async function prefetchAppMembershipProfilesQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig< - AppMembershipProfileSelect, - AppMembershipProfileFilter, - AppMembershipProfileOrderBy - >; - } -): Promise { - const args = buildListSelectionArgs< - AppMembershipProfileSelect, - AppMembershipProfileFilter, - AppMembershipProfileOrderBy - >(params.selection); - await queryClient.prefetchQuery({ - queryKey: appMembershipProfileKeys.list(args), - queryFn: () => getClient().appMembershipProfile.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppProfileCapabilitiesQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppProfileCapabilitiesQuery.ts deleted file mode 100644 index 9cb58c4b58..0000000000 --- a/sdk/constructive-react/src/admin/hooks/queries/useAppProfileCapabilitiesQuery.ts +++ /dev/null @@ -1,178 +0,0 @@ -/** - * Join table linking profiles to individual capabilities they include - * @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 { appProfileCapabilityKeys } from '../query-keys'; -import type { - AppProfileCapabilitySelect, - AppProfileCapabilityWithRelations, - AppProfileCapabilityFilter, - AppProfileCapabilityOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - AppProfileCapabilitySelect, - AppProfileCapabilityWithRelations, - AppProfileCapabilityFilter, - AppProfileCapabilityOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const appProfileCapabilitiesQueryKey = appProfileCapabilityKeys.list; -/** - * Join table linking profiles to individual capabilities they include - * - * @example - * ```tsx - * const { data, isLoading } = useAppProfileCapabilitiesQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useAppProfileCapabilitiesQuery< - S extends AppProfileCapabilitySelect, - TData = { - appProfileCapabilities: ConnectionResult< - InferSelectResult - >; - }, ->( - params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, AppProfileCapabilitySelect>; - } & Omit< - UseQueryOptions< - { - appProfileCapabilities: ConnectionResult< - InferSelectResult - >; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAppProfileCapabilitiesQuery( - params: { - selection: ListSelectionConfig< - AppProfileCapabilitySelect, - AppProfileCapabilityFilter, - AppProfileCapabilityOrderBy - >; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs< - AppProfileCapabilitySelect, - AppProfileCapabilityFilter, - AppProfileCapabilityOrderBy - >(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: appProfileCapabilityKeys.list(args), - queryFn: () => getClient().appProfileCapability.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Join table linking profiles to individual capabilities they include - * - * @example - * ```ts - * const data = await fetchAppProfileCapabilitiesQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchAppProfileCapabilitiesQuery< - S extends AppProfileCapabilitySelect, ->(params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, AppProfileCapabilitySelect>; -}): Promise<{ - appProfileCapabilities: ConnectionResult>; -}>; -export async function fetchAppProfileCapabilitiesQuery(params: { - selection: ListSelectionConfig< - AppProfileCapabilitySelect, - AppProfileCapabilityFilter, - AppProfileCapabilityOrderBy - >; -}) { - const args = buildListSelectionArgs< - AppProfileCapabilitySelect, - AppProfileCapabilityFilter, - AppProfileCapabilityOrderBy - >(params.selection); - return getClient().appProfileCapability.findMany(args).unwrap(); -} -/** - * Join table linking profiles to individual capabilities they include - * - * @example - * ```ts - * await prefetchAppProfileCapabilitiesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchAppProfileCapabilitiesQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, AppProfileCapabilitySelect>; - } -): Promise; -export async function prefetchAppProfileCapabilitiesQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig< - AppProfileCapabilitySelect, - AppProfileCapabilityFilter, - AppProfileCapabilityOrderBy - >; - } -): Promise { - const args = buildListSelectionArgs< - AppProfileCapabilitySelect, - AppProfileCapabilityFilter, - AppProfileCapabilityOrderBy - >(params.selection); - await queryClient.prefetchQuery({ - queryKey: appProfileCapabilityKeys.list(args), - queryFn: () => getClient().appProfileCapability.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppProfileCapabilityQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppProfileCapabilityQuery.ts deleted file mode 100644 index 55708a53f6..0000000000 --- a/sdk/constructive-react/src/admin/hooks/queries/useAppProfileCapabilityQuery.ts +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Join table linking profiles to individual capabilities they include - * @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 { appProfileCapabilityKeys } from '../query-keys'; -import type { - AppProfileCapabilitySelect, - AppProfileCapabilityWithRelations, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppProfileCapabilitySelect, - AppProfileCapabilityWithRelations, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const appProfileCapabilityQueryKey = appProfileCapabilityKeys.detail; -/** - * Join table linking profiles to individual capabilities they include - * - * @example - * ```tsx - * const { data, isLoading } = useAppProfileCapabilityQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useAppProfileCapabilityQuery< - S extends AppProfileCapabilitySelect, - TData = { - appProfileCapability: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppProfileCapabilitySelect>; - } & Omit< - UseQueryOptions< - { - appProfileCapability: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAppProfileCapabilityQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: appProfileCapabilityKeys.detail(params.id), - queryFn: () => - getClient() - .appProfileCapability.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Join table linking profiles to individual capabilities they include - * - * @example - * ```ts - * const data = await fetchAppProfileCapabilityQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchAppProfileCapabilityQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppProfileCapabilitySelect>; -}): Promise<{ - appProfileCapability: InferSelectResult | null; -}>; -export async function fetchAppProfileCapabilityQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .appProfileCapability.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Join table linking profiles to individual capabilities they include - * - * @example - * ```ts - * await prefetchAppProfileCapabilityQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchAppProfileCapabilityQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppProfileCapabilitySelect>; - } -): Promise; -export async function prefetchAppProfileCapabilityQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: appProfileCapabilityKeys.detail(params.id), - queryFn: () => - getClient() - .appProfileCapability.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppProfileDefinitionGrantQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppProfileDefinitionGrantQuery.ts deleted file mode 100644 index fd23b1fbe7..0000000000 --- a/sdk/constructive-react/src/admin/hooks/queries/useAppProfileDefinitionGrantQuery.ts +++ /dev/null @@ -1,151 +0,0 @@ -/** - * Audit log of capability additions and removals from profile definitions - * @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 { appProfileDefinitionGrantKeys } from '../query-keys'; -import type { - AppProfileDefinitionGrantSelect, - AppProfileDefinitionGrantWithRelations, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppProfileDefinitionGrantSelect, - AppProfileDefinitionGrantWithRelations, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const appProfileDefinitionGrantQueryKey = appProfileDefinitionGrantKeys.detail; -/** - * Audit log of capability additions and removals from profile definitions - * - * @example - * ```tsx - * const { data, isLoading } = useAppProfileDefinitionGrantQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useAppProfileDefinitionGrantQuery< - S extends AppProfileDefinitionGrantSelect, - TData = { - appProfileDefinitionGrant: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppProfileDefinitionGrantSelect>; - } & Omit< - UseQueryOptions< - { - appProfileDefinitionGrant: InferSelectResult< - AppProfileDefinitionGrantWithRelations, - S - > | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAppProfileDefinitionGrantQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: appProfileDefinitionGrantKeys.detail(params.id), - queryFn: () => - getClient() - .appProfileDefinitionGrant.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Audit log of capability additions and removals from profile definitions - * - * @example - * ```ts - * const data = await fetchAppProfileDefinitionGrantQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchAppProfileDefinitionGrantQuery< - S extends AppProfileDefinitionGrantSelect, ->(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppProfileDefinitionGrantSelect>; -}): Promise<{ - appProfileDefinitionGrant: InferSelectResult | null; -}>; -export async function fetchAppProfileDefinitionGrantQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .appProfileDefinitionGrant.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Audit log of capability additions and removals from profile definitions - * - * @example - * ```ts - * await prefetchAppProfileDefinitionGrantQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchAppProfileDefinitionGrantQuery< - S extends AppProfileDefinitionGrantSelect, ->( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppProfileDefinitionGrantSelect>; - } -): Promise; -export async function prefetchAppProfileDefinitionGrantQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: appProfileDefinitionGrantKeys.detail(params.id), - queryFn: () => - getClient() - .appProfileDefinitionGrant.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppProfileDefinitionGrantsQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppProfileDefinitionGrantsQuery.ts deleted file mode 100644 index e63ba9da50..0000000000 --- a/sdk/constructive-react/src/admin/hooks/queries/useAppProfileDefinitionGrantsQuery.ts +++ /dev/null @@ -1,182 +0,0 @@ -/** - * Audit log of capability additions and removals from profile definitions - * @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 { appProfileDefinitionGrantKeys } from '../query-keys'; -import type { - AppProfileDefinitionGrantSelect, - AppProfileDefinitionGrantWithRelations, - AppProfileDefinitionGrantFilter, - AppProfileDefinitionGrantOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - AppProfileDefinitionGrantSelect, - AppProfileDefinitionGrantWithRelations, - AppProfileDefinitionGrantFilter, - AppProfileDefinitionGrantOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const appProfileDefinitionGrantsQueryKey = appProfileDefinitionGrantKeys.list; -/** - * Audit log of capability additions and removals from profile definitions - * - * @example - * ```tsx - * const { data, isLoading } = useAppProfileDefinitionGrantsQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useAppProfileDefinitionGrantsQuery< - S extends AppProfileDefinitionGrantSelect, - TData = { - appProfileDefinitionGrants: ConnectionResult< - InferSelectResult - >; - }, ->( - params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, AppProfileDefinitionGrantSelect>; - } & Omit< - UseQueryOptions< - { - appProfileDefinitionGrants: ConnectionResult< - InferSelectResult - >; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAppProfileDefinitionGrantsQuery( - params: { - selection: ListSelectionConfig< - AppProfileDefinitionGrantSelect, - AppProfileDefinitionGrantFilter, - AppProfileDefinitionGrantOrderBy - >; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs< - AppProfileDefinitionGrantSelect, - AppProfileDefinitionGrantFilter, - AppProfileDefinitionGrantOrderBy - >(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: appProfileDefinitionGrantKeys.list(args), - queryFn: () => getClient().appProfileDefinitionGrant.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Audit log of capability additions and removals from profile definitions - * - * @example - * ```ts - * const data = await fetchAppProfileDefinitionGrantsQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchAppProfileDefinitionGrantsQuery< - S extends AppProfileDefinitionGrantSelect, ->(params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, AppProfileDefinitionGrantSelect>; -}): Promise<{ - appProfileDefinitionGrants: ConnectionResult< - InferSelectResult - >; -}>; -export async function fetchAppProfileDefinitionGrantsQuery(params: { - selection: ListSelectionConfig< - AppProfileDefinitionGrantSelect, - AppProfileDefinitionGrantFilter, - AppProfileDefinitionGrantOrderBy - >; -}) { - const args = buildListSelectionArgs< - AppProfileDefinitionGrantSelect, - AppProfileDefinitionGrantFilter, - AppProfileDefinitionGrantOrderBy - >(params.selection); - return getClient().appProfileDefinitionGrant.findMany(args).unwrap(); -} -/** - * Audit log of capability additions and removals from profile definitions - * - * @example - * ```ts - * await prefetchAppProfileDefinitionGrantsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchAppProfileDefinitionGrantsQuery< - S extends AppProfileDefinitionGrantSelect, ->( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, AppProfileDefinitionGrantSelect>; - } -): Promise; -export async function prefetchAppProfileDefinitionGrantsQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig< - AppProfileDefinitionGrantSelect, - AppProfileDefinitionGrantFilter, - AppProfileDefinitionGrantOrderBy - >; - } -): Promise { - const args = buildListSelectionArgs< - AppProfileDefinitionGrantSelect, - AppProfileDefinitionGrantFilter, - AppProfileDefinitionGrantOrderBy - >(params.selection); - await queryClient.prefetchQuery({ - queryKey: appProfileDefinitionGrantKeys.list(args), - queryFn: () => getClient().appProfileDefinitionGrant.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppProfileGrantQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppProfileGrantQuery.ts deleted file mode 100644 index c826b96aca..0000000000 --- a/sdk/constructive-react/src/admin/hooks/queries/useAppProfileGrantQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * Audit log of profile assignments and revocations for members - * @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 { appProfileGrantKeys } from '../query-keys'; -import type { AppProfileGrantSelect, AppProfileGrantWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { AppProfileGrantSelect, AppProfileGrantWithRelations } from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const appProfileGrantQueryKey = appProfileGrantKeys.detail; -/** - * Audit log of profile assignments and revocations for members - * - * @example - * ```tsx - * const { data, isLoading } = useAppProfileGrantQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useAppProfileGrantQuery< - S extends AppProfileGrantSelect, - TData = { - appProfileGrant: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppProfileGrantSelect>; - } & Omit< - UseQueryOptions< - { - appProfileGrant: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAppProfileGrantQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: appProfileGrantKeys.detail(params.id), - queryFn: () => - getClient() - .appProfileGrant.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Audit log of profile assignments and revocations for members - * - * @example - * ```ts - * const data = await fetchAppProfileGrantQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchAppProfileGrantQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppProfileGrantSelect>; -}): Promise<{ - appProfileGrant: InferSelectResult | null; -}>; -export async function fetchAppProfileGrantQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .appProfileGrant.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Audit log of profile assignments and revocations for members - * - * @example - * ```ts - * await prefetchAppProfileGrantQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchAppProfileGrantQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppProfileGrantSelect>; - } -): Promise; -export async function prefetchAppProfileGrantQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: appProfileGrantKeys.detail(params.id), - queryFn: () => - getClient() - .appProfileGrant.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppProfileGrantsQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppProfileGrantsQuery.ts deleted file mode 100644 index e01fe7e01a..0000000000 --- a/sdk/constructive-react/src/admin/hooks/queries/useAppProfileGrantsQuery.ts +++ /dev/null @@ -1,163 +0,0 @@ -/** - * Audit log of profile assignments and revocations for members - * @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 { appProfileGrantKeys } from '../query-keys'; -import type { - AppProfileGrantSelect, - AppProfileGrantWithRelations, - AppProfileGrantFilter, - AppProfileGrantOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - AppProfileGrantSelect, - AppProfileGrantWithRelations, - AppProfileGrantFilter, - AppProfileGrantOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const appProfileGrantsQueryKey = appProfileGrantKeys.list; -/** - * Audit log of profile assignments and revocations for members - * - * @example - * ```tsx - * const { data, isLoading } = useAppProfileGrantsQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useAppProfileGrantsQuery< - S extends AppProfileGrantSelect, - TData = { - appProfileGrants: ConnectionResult>; - }, ->( - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, AppProfileGrantSelect>; - } & Omit< - UseQueryOptions< - { - appProfileGrants: ConnectionResult>; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAppProfileGrantsQuery( - params: { - selection: ListSelectionConfig< - AppProfileGrantSelect, - AppProfileGrantFilter, - AppProfileGrantOrderBy - >; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs< - AppProfileGrantSelect, - AppProfileGrantFilter, - AppProfileGrantOrderBy - >(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: appProfileGrantKeys.list(args), - queryFn: () => getClient().appProfileGrant.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Audit log of profile assignments and revocations for members - * - * @example - * ```ts - * const data = await fetchAppProfileGrantsQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchAppProfileGrantsQuery(params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, AppProfileGrantSelect>; -}): Promise<{ - appProfileGrants: ConnectionResult>; -}>; -export async function fetchAppProfileGrantsQuery(params: { - selection: ListSelectionConfig< - AppProfileGrantSelect, - AppProfileGrantFilter, - AppProfileGrantOrderBy - >; -}) { - const args = buildListSelectionArgs< - AppProfileGrantSelect, - AppProfileGrantFilter, - AppProfileGrantOrderBy - >(params.selection); - return getClient().appProfileGrant.findMany(args).unwrap(); -} -/** - * Audit log of profile assignments and revocations for members - * - * @example - * ```ts - * await prefetchAppProfileGrantsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchAppProfileGrantsQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, AppProfileGrantSelect>; - } -): Promise; -export async function prefetchAppProfileGrantsQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig< - AppProfileGrantSelect, - AppProfileGrantFilter, - AppProfileGrantOrderBy - >; - } -): Promise { - const args = buildListSelectionArgs< - AppProfileGrantSelect, - AppProfileGrantFilter, - AppProfileGrantOrderBy - >(params.selection); - await queryClient.prefetchQuery({ - queryKey: appProfileGrantKeys.list(args), - queryFn: () => getClient().appProfileGrant.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppProfileQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppProfileQuery.ts deleted file mode 100644 index 5a90a27748..0000000000 --- a/sdk/constructive-react/src/admin/hooks/queries/useAppProfileQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * Named capability bundles (roles) that group multiple capabilities into reusable profiles - * @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 { appProfileKeys } from '../query-keys'; -import type { AppProfileSelect, AppProfileWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { AppProfileSelect, AppProfileWithRelations } from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const appProfileQueryKey = appProfileKeys.detail; -/** - * Named capability bundles (roles) that group multiple capabilities into reusable profiles - * - * @example - * ```tsx - * const { data, isLoading } = useAppProfileQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useAppProfileQuery< - S extends AppProfileSelect, - TData = { - appProfile: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppProfileSelect>; - } & Omit< - UseQueryOptions< - { - appProfile: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAppProfileQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: appProfileKeys.detail(params.id), - queryFn: () => - getClient() - .appProfile.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Named capability bundles (roles) that group multiple capabilities into reusable profiles - * - * @example - * ```ts - * const data = await fetchAppProfileQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchAppProfileQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppProfileSelect>; -}): Promise<{ - appProfile: InferSelectResult | null; -}>; -export async function fetchAppProfileQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .appProfile.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Named capability bundles (roles) that group multiple capabilities into reusable profiles - * - * @example - * ```ts - * await prefetchAppProfileQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchAppProfileQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppProfileSelect>; - } -): Promise; -export async function prefetchAppProfileQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: appProfileKeys.detail(params.id), - queryFn: () => - getClient() - .appProfile.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppProfileTemplateQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppProfileTemplateQuery.ts deleted file mode 100644 index f9afdfc959..0000000000 --- a/sdk/constructive-react/src/admin/hooks/queries/useAppProfileTemplateQuery.ts +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Template profiles that are automatically seeded into new entities when created - * @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 { appProfileTemplateKeys } from '../query-keys'; -import type { - AppProfileTemplateSelect, - AppProfileTemplateWithRelations, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppProfileTemplateSelect, - AppProfileTemplateWithRelations, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const appProfileTemplateQueryKey = appProfileTemplateKeys.detail; -/** - * Template profiles that are automatically seeded into new entities when created - * - * @example - * ```tsx - * const { data, isLoading } = useAppProfileTemplateQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useAppProfileTemplateQuery< - S extends AppProfileTemplateSelect, - TData = { - appProfileTemplate: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppProfileTemplateSelect>; - } & Omit< - UseQueryOptions< - { - appProfileTemplate: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAppProfileTemplateQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: appProfileTemplateKeys.detail(params.id), - queryFn: () => - getClient() - .appProfileTemplate.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Template profiles that are automatically seeded into new entities when created - * - * @example - * ```ts - * const data = await fetchAppProfileTemplateQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchAppProfileTemplateQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppProfileTemplateSelect>; -}): Promise<{ - appProfileTemplate: InferSelectResult | null; -}>; -export async function fetchAppProfileTemplateQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .appProfileTemplate.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Template profiles that are automatically seeded into new entities when created - * - * @example - * ```ts - * await prefetchAppProfileTemplateQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchAppProfileTemplateQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppProfileTemplateSelect>; - } -): Promise; -export async function prefetchAppProfileTemplateQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: appProfileTemplateKeys.detail(params.id), - queryFn: () => - getClient() - .appProfileTemplate.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppProfileTemplatesQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppProfileTemplatesQuery.ts deleted file mode 100644 index e0843709bd..0000000000 --- a/sdk/constructive-react/src/admin/hooks/queries/useAppProfileTemplatesQuery.ts +++ /dev/null @@ -1,171 +0,0 @@ -/** - * Template profiles that are automatically seeded into new entities when created - * @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 { appProfileTemplateKeys } from '../query-keys'; -import type { - AppProfileTemplateSelect, - AppProfileTemplateWithRelations, - AppProfileTemplateFilter, - AppProfileTemplateOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - AppProfileTemplateSelect, - AppProfileTemplateWithRelations, - AppProfileTemplateFilter, - AppProfileTemplateOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const appProfileTemplatesQueryKey = appProfileTemplateKeys.list; -/** - * Template profiles that are automatically seeded into new entities when created - * - * @example - * ```tsx - * const { data, isLoading } = useAppProfileTemplatesQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useAppProfileTemplatesQuery< - S extends AppProfileTemplateSelect, - TData = { - appProfileTemplates: ConnectionResult>; - }, ->( - params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, AppProfileTemplateSelect>; - } & Omit< - UseQueryOptions< - { - appProfileTemplates: ConnectionResult< - InferSelectResult - >; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAppProfileTemplatesQuery( - params: { - selection: ListSelectionConfig< - AppProfileTemplateSelect, - AppProfileTemplateFilter, - AppProfileTemplateOrderBy - >; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs< - AppProfileTemplateSelect, - AppProfileTemplateFilter, - AppProfileTemplateOrderBy - >(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: appProfileTemplateKeys.list(args), - queryFn: () => getClient().appProfileTemplate.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Template profiles that are automatically seeded into new entities when created - * - * @example - * ```ts - * const data = await fetchAppProfileTemplatesQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchAppProfileTemplatesQuery(params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, AppProfileTemplateSelect>; -}): Promise<{ - appProfileTemplates: ConnectionResult>; -}>; -export async function fetchAppProfileTemplatesQuery(params: { - selection: ListSelectionConfig< - AppProfileTemplateSelect, - AppProfileTemplateFilter, - AppProfileTemplateOrderBy - >; -}) { - const args = buildListSelectionArgs< - AppProfileTemplateSelect, - AppProfileTemplateFilter, - AppProfileTemplateOrderBy - >(params.selection); - return getClient().appProfileTemplate.findMany(args).unwrap(); -} -/** - * Template profiles that are automatically seeded into new entities when created - * - * @example - * ```ts - * await prefetchAppProfileTemplatesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchAppProfileTemplatesQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, AppProfileTemplateSelect>; - } -): Promise; -export async function prefetchAppProfileTemplatesQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig< - AppProfileTemplateSelect, - AppProfileTemplateFilter, - AppProfileTemplateOrderBy - >; - } -): Promise { - const args = buildListSelectionArgs< - AppProfileTemplateSelect, - AppProfileTemplateFilter, - AppProfileTemplateOrderBy - >(params.selection); - await queryClient.prefetchQuery({ - queryKey: appProfileTemplateKeys.list(args), - queryFn: () => getClient().appProfileTemplate.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppProfilesQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppProfilesQuery.ts deleted file mode 100644 index f2a6989aa9..0000000000 --- a/sdk/constructive-react/src/admin/hooks/queries/useAppProfilesQuery.ts +++ /dev/null @@ -1,145 +0,0 @@ -/** - * Named capability bundles (roles) that group multiple capabilities into reusable profiles - * @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 { appProfileKeys } from '../query-keys'; -import type { - AppProfileSelect, - AppProfileWithRelations, - AppProfileFilter, - AppProfileOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - AppProfileSelect, - AppProfileWithRelations, - AppProfileFilter, - AppProfileOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const appProfilesQueryKey = appProfileKeys.list; -/** - * Named capability bundles (roles) that group multiple capabilities into reusable profiles - * - * @example - * ```tsx - * const { data, isLoading } = useAppProfilesQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useAppProfilesQuery< - S extends AppProfileSelect, - TData = { - appProfiles: ConnectionResult>; - }, ->( - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, AppProfileSelect>; - } & Omit< - UseQueryOptions< - { - appProfiles: ConnectionResult>; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAppProfilesQuery( - params: { - selection: ListSelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs( - params.selection - ); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: appProfileKeys.list(args), - queryFn: () => getClient().appProfile.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Named capability bundles (roles) that group multiple capabilities into reusable profiles - * - * @example - * ```ts - * const data = await fetchAppProfilesQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchAppProfilesQuery(params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, AppProfileSelect>; -}): Promise<{ - appProfiles: ConnectionResult>; -}>; -export async function fetchAppProfilesQuery(params: { - selection: ListSelectionConfig; -}) { - const args = buildListSelectionArgs( - params.selection - ); - return getClient().appProfile.findMany(args).unwrap(); -} -/** - * Named capability bundles (roles) that group multiple capabilities into reusable profiles - * - * @example - * ```ts - * await prefetchAppProfilesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchAppProfilesQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, AppProfileSelect>; - } -): Promise; -export async function prefetchAppProfilesQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig; - } -): Promise { - const args = buildListSelectionArgs( - params.selection - ); - await queryClient.prefetchQuery({ - queryKey: appProfileKeys.list(args), - queryFn: () => getClient().appProfile.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useGetOrganizationIdQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useGetOrganizationIdQuery.ts new file mode 100644 index 0000000000..4e80604fbb --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useGetOrganizationIdQuery.ts @@ -0,0 +1,107 @@ +/** + * Custom query hook for getOrganizationId + * @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 { GetOrganizationIdVariables } from '../../orm/query'; +export type { GetOrganizationIdVariables } from '../../orm/query'; +/** Query key factory - re-exported from query-keys.ts */ +export const getOrganizationIdQueryKey = customQueryKeys.getOrganizationId; +/** + * Query hook for getOrganizationId + * + * @example + * ```tsx + * const { data, isLoading } = useGetOrganizationIdQuery({ variables: { entityId, entityType } }); + * + * if (data?.getOrganizationId) { + * console.log(data.getOrganizationId); + * } + * ``` + */ +export function useGetOrganizationIdQuery< + TData = { + getOrganizationId: string | null; + }, +>( + params?: { + variables?: GetOrganizationIdVariables; + } & Omit< + UseQueryOptions< + { + getOrganizationId: string | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useGetOrganizationIdQuery< + TData = { + getOrganizationId: string | null; + }, +>( + params?: { + variables?: GetOrganizationIdVariables; + } & Omit< + UseQueryOptions< + { + getOrganizationId: string | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult { + const variables = params?.variables ?? {}; + const { variables: _variables, ...queryOptions } = params ?? {}; + void _variables; + return useQuery({ + queryKey: getOrganizationIdQueryKey(variables), + queryFn: () => getClient().query.getOrganizationId(variables).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch getOrganizationId without React hooks + * + * @example + * ```ts + * const data = await fetchGetOrganizationIdQuery({ variables: { entityId, entityType } }); + * ``` + */ +export async function fetchGetOrganizationIdQuery(params?: { + variables?: GetOrganizationIdVariables; +}) { + const variables = params?.variables ?? {}; + return getClient().query.getOrganizationId(variables).unwrap(); +} +/** + * Prefetch getOrganizationId for SSR or cache warming + * + * @example + * ```ts + * await prefetchGetOrganizationIdQuery(queryClient, { variables: { entityId, entityType } }); + * ``` + */ +export async function prefetchGetOrganizationIdQuery( + queryClient: QueryClient, + params?: { + variables?: GetOrganizationIdVariables; + } +): Promise { + const variables = params?.variables ?? {}; + await queryClient.prefetchQuery({ + queryKey: getOrganizationIdQueryKey(variables), + queryFn: () => getClient().query.getOrganizationId(variables).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgCapabilitiesGetByMaskQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgCapabilitiesGetByMaskQuery.ts deleted file mode 100644 index e8bd46eb1a..0000000000 --- a/sdk/constructive-react/src/admin/hooks/queries/useOrgCapabilitiesGetByMaskQuery.ts +++ /dev/null @@ -1,108 +0,0 @@ -/** - * Custom query hook for orgCapabilitiesGetByMask - * @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 { OrgCapabilitiesGetByMaskVariables } from '../../orm/query'; -import type { OrgCapabilityConnection } from '../../orm/input-types'; -export type { OrgCapabilitiesGetByMaskVariables } from '../../orm/query'; -/** Query key factory - re-exported from query-keys.ts */ -export const orgCapabilitiesGetByMaskQueryKey = customQueryKeys.orgCapabilitiesGetByMask; -/** - * Reads and enables pagination through a set of `OrgCapability`. - * - * @example - * ```tsx - * const { data, isLoading } = useOrgCapabilitiesGetByMaskQuery({ variables: { after, first, mask, offset } }); - * - * if (data?.orgCapabilitiesGetByMask) { - * console.log(data.orgCapabilitiesGetByMask); - * } - * ``` - */ -export function useOrgCapabilitiesGetByMaskQuery< - TData = { - orgCapabilitiesGetByMask: OrgCapabilityConnection | null; - }, ->( - params?: { - variables?: OrgCapabilitiesGetByMaskVariables; - } & Omit< - UseQueryOptions< - { - orgCapabilitiesGetByMask: OrgCapabilityConnection | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useOrgCapabilitiesGetByMaskQuery< - TData = { - orgCapabilitiesGetByMask: OrgCapabilityConnection | null; - }, ->( - params?: { - variables?: OrgCapabilitiesGetByMaskVariables; - } & Omit< - UseQueryOptions< - { - orgCapabilitiesGetByMask: OrgCapabilityConnection | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult { - const variables = params?.variables ?? {}; - const { variables: _variables, ...queryOptions } = params ?? {}; - void _variables; - return useQuery({ - queryKey: orgCapabilitiesGetByMaskQueryKey(variables), - queryFn: () => getClient().query.orgCapabilitiesGetByMask(variables).unwrap(), - ...queryOptions, - }); -} -/** - * Fetch orgCapabilitiesGetByMask without React hooks - * - * @example - * ```ts - * const data = await fetchOrgCapabilitiesGetByMaskQuery({ variables: { after, first, mask, offset } }); - * ``` - */ -export async function fetchOrgCapabilitiesGetByMaskQuery(params?: { - variables?: OrgCapabilitiesGetByMaskVariables; -}) { - const variables = params?.variables ?? {}; - return getClient().query.orgCapabilitiesGetByMask(variables).unwrap(); -} -/** - * Prefetch orgCapabilitiesGetByMask for SSR or cache warming - * - * @example - * ```ts - * await prefetchOrgCapabilitiesGetByMaskQuery(queryClient, { variables: { after, first, mask, offset } }); - * ``` - */ -export async function prefetchOrgCapabilitiesGetByMaskQuery( - queryClient: QueryClient, - params?: { - variables?: OrgCapabilitiesGetByMaskVariables; - } -): Promise { - const variables = params?.variables ?? {}; - await queryClient.prefetchQuery({ - queryKey: orgCapabilitiesGetByMaskQueryKey(variables), - queryFn: () => getClient().query.orgCapabilitiesGetByMask(variables).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgCapabilitiesGetMaskByNamesQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgCapabilitiesGetMaskByNamesQuery.ts deleted file mode 100644 index 41ddf7ea2c..0000000000 --- a/sdk/constructive-react/src/admin/hooks/queries/useOrgCapabilitiesGetMaskByNamesQuery.ts +++ /dev/null @@ -1,107 +0,0 @@ -/** - * Custom query hook for orgCapabilitiesGetMaskByNames - * @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 { OrgCapabilitiesGetMaskByNamesVariables } from '../../orm/query'; -export type { OrgCapabilitiesGetMaskByNamesVariables } from '../../orm/query'; -/** Query key factory - re-exported from query-keys.ts */ -export const orgCapabilitiesGetMaskByNamesQueryKey = customQueryKeys.orgCapabilitiesGetMaskByNames; -/** - * Query hook for orgCapabilitiesGetMaskByNames - * - * @example - * ```tsx - * const { data, isLoading } = useOrgCapabilitiesGetMaskByNamesQuery({ variables: { names } }); - * - * if (data?.orgCapabilitiesGetMaskByNames) { - * console.log(data.orgCapabilitiesGetMaskByNames); - * } - * ``` - */ -export function useOrgCapabilitiesGetMaskByNamesQuery< - TData = { - orgCapabilitiesGetMaskByNames: string | null; - }, ->( - params?: { - variables?: OrgCapabilitiesGetMaskByNamesVariables; - } & Omit< - UseQueryOptions< - { - orgCapabilitiesGetMaskByNames: string | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useOrgCapabilitiesGetMaskByNamesQuery< - TData = { - orgCapabilitiesGetMaskByNames: string | null; - }, ->( - params?: { - variables?: OrgCapabilitiesGetMaskByNamesVariables; - } & Omit< - UseQueryOptions< - { - orgCapabilitiesGetMaskByNames: string | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult { - const variables = params?.variables ?? {}; - const { variables: _variables, ...queryOptions } = params ?? {}; - void _variables; - return useQuery({ - queryKey: orgCapabilitiesGetMaskByNamesQueryKey(variables), - queryFn: () => getClient().query.orgCapabilitiesGetMaskByNames(variables).unwrap(), - ...queryOptions, - }); -} -/** - * Fetch orgCapabilitiesGetMaskByNames without React hooks - * - * @example - * ```ts - * const data = await fetchOrgCapabilitiesGetMaskByNamesQuery({ variables: { names } }); - * ``` - */ -export async function fetchOrgCapabilitiesGetMaskByNamesQuery(params?: { - variables?: OrgCapabilitiesGetMaskByNamesVariables; -}) { - const variables = params?.variables ?? {}; - return getClient().query.orgCapabilitiesGetMaskByNames(variables).unwrap(); -} -/** - * Prefetch orgCapabilitiesGetMaskByNames for SSR or cache warming - * - * @example - * ```ts - * await prefetchOrgCapabilitiesGetMaskByNamesQuery(queryClient, { variables: { names } }); - * ``` - */ -export async function prefetchOrgCapabilitiesGetMaskByNamesQuery( - queryClient: QueryClient, - params?: { - variables?: OrgCapabilitiesGetMaskByNamesVariables; - } -): Promise { - const variables = params?.variables ?? {}; - await queryClient.prefetchQuery({ - queryKey: orgCapabilitiesGetMaskByNamesQueryKey(variables), - queryFn: () => getClient().query.orgCapabilitiesGetMaskByNames(variables).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgCapabilitiesGetMaskQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgCapabilitiesGetMaskQuery.ts deleted file mode 100644 index 50a3a909f0..0000000000 --- a/sdk/constructive-react/src/admin/hooks/queries/useOrgCapabilitiesGetMaskQuery.ts +++ /dev/null @@ -1,107 +0,0 @@ -/** - * Custom query hook for orgCapabilitiesGetMask - * @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 { OrgCapabilitiesGetMaskVariables } from '../../orm/query'; -export type { OrgCapabilitiesGetMaskVariables } from '../../orm/query'; -/** Query key factory - re-exported from query-keys.ts */ -export const orgCapabilitiesGetMaskQueryKey = customQueryKeys.orgCapabilitiesGetMask; -/** - * Query hook for orgCapabilitiesGetMask - * - * @example - * ```tsx - * const { data, isLoading } = useOrgCapabilitiesGetMaskQuery({ variables: { ids } }); - * - * if (data?.orgCapabilitiesGetMask) { - * console.log(data.orgCapabilitiesGetMask); - * } - * ``` - */ -export function useOrgCapabilitiesGetMaskQuery< - TData = { - orgCapabilitiesGetMask: string | null; - }, ->( - params?: { - variables?: OrgCapabilitiesGetMaskVariables; - } & Omit< - UseQueryOptions< - { - orgCapabilitiesGetMask: string | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useOrgCapabilitiesGetMaskQuery< - TData = { - orgCapabilitiesGetMask: string | null; - }, ->( - params?: { - variables?: OrgCapabilitiesGetMaskVariables; - } & Omit< - UseQueryOptions< - { - orgCapabilitiesGetMask: string | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult { - const variables = params?.variables ?? {}; - const { variables: _variables, ...queryOptions } = params ?? {}; - void _variables; - return useQuery({ - queryKey: orgCapabilitiesGetMaskQueryKey(variables), - queryFn: () => getClient().query.orgCapabilitiesGetMask(variables).unwrap(), - ...queryOptions, - }); -} -/** - * Fetch orgCapabilitiesGetMask without React hooks - * - * @example - * ```ts - * const data = await fetchOrgCapabilitiesGetMaskQuery({ variables: { ids } }); - * ``` - */ -export async function fetchOrgCapabilitiesGetMaskQuery(params?: { - variables?: OrgCapabilitiesGetMaskVariables; -}) { - const variables = params?.variables ?? {}; - return getClient().query.orgCapabilitiesGetMask(variables).unwrap(); -} -/** - * Prefetch orgCapabilitiesGetMask for SSR or cache warming - * - * @example - * ```ts - * await prefetchOrgCapabilitiesGetMaskQuery(queryClient, { variables: { ids } }); - * ``` - */ -export async function prefetchOrgCapabilitiesGetMaskQuery( - queryClient: QueryClient, - params?: { - variables?: OrgCapabilitiesGetMaskVariables; - } -): Promise { - const variables = params?.variables ?? {}; - await queryClient.prefetchQuery({ - queryKey: orgCapabilitiesGetMaskQueryKey(variables), - queryFn: () => getClient().query.orgCapabilitiesGetMask(variables).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgCapabilitiesGetPaddedMaskQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgCapabilitiesGetPaddedMaskQuery.ts deleted file mode 100644 index 4ea238eec2..0000000000 --- a/sdk/constructive-react/src/admin/hooks/queries/useOrgCapabilitiesGetPaddedMaskQuery.ts +++ /dev/null @@ -1,107 +0,0 @@ -/** - * Custom query hook for orgCapabilitiesGetPaddedMask - * @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 { OrgCapabilitiesGetPaddedMaskVariables } from '../../orm/query'; -export type { OrgCapabilitiesGetPaddedMaskVariables } from '../../orm/query'; -/** Query key factory - re-exported from query-keys.ts */ -export const orgCapabilitiesGetPaddedMaskQueryKey = customQueryKeys.orgCapabilitiesGetPaddedMask; -/** - * Query hook for orgCapabilitiesGetPaddedMask - * - * @example - * ```tsx - * const { data, isLoading } = useOrgCapabilitiesGetPaddedMaskQuery({ variables: { mask } }); - * - * if (data?.orgCapabilitiesGetPaddedMask) { - * console.log(data.orgCapabilitiesGetPaddedMask); - * } - * ``` - */ -export function useOrgCapabilitiesGetPaddedMaskQuery< - TData = { - orgCapabilitiesGetPaddedMask: string | null; - }, ->( - params?: { - variables?: OrgCapabilitiesGetPaddedMaskVariables; - } & Omit< - UseQueryOptions< - { - orgCapabilitiesGetPaddedMask: string | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useOrgCapabilitiesGetPaddedMaskQuery< - TData = { - orgCapabilitiesGetPaddedMask: string | null; - }, ->( - params?: { - variables?: OrgCapabilitiesGetPaddedMaskVariables; - } & Omit< - UseQueryOptions< - { - orgCapabilitiesGetPaddedMask: string | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult { - const variables = params?.variables ?? {}; - const { variables: _variables, ...queryOptions } = params ?? {}; - void _variables; - return useQuery({ - queryKey: orgCapabilitiesGetPaddedMaskQueryKey(variables), - queryFn: () => getClient().query.orgCapabilitiesGetPaddedMask(variables).unwrap(), - ...queryOptions, - }); -} -/** - * Fetch orgCapabilitiesGetPaddedMask without React hooks - * - * @example - * ```ts - * const data = await fetchOrgCapabilitiesGetPaddedMaskQuery({ variables: { mask } }); - * ``` - */ -export async function fetchOrgCapabilitiesGetPaddedMaskQuery(params?: { - variables?: OrgCapabilitiesGetPaddedMaskVariables; -}) { - const variables = params?.variables ?? {}; - return getClient().query.orgCapabilitiesGetPaddedMask(variables).unwrap(); -} -/** - * Prefetch orgCapabilitiesGetPaddedMask for SSR or cache warming - * - * @example - * ```ts - * await prefetchOrgCapabilitiesGetPaddedMaskQuery(queryClient, { variables: { mask } }); - * ``` - */ -export async function prefetchOrgCapabilitiesGetPaddedMaskQuery( - queryClient: QueryClient, - params?: { - variables?: OrgCapabilitiesGetPaddedMaskVariables; - } -): Promise { - const variables = params?.variables ?? {}; - await queryClient.prefetchQuery({ - queryKey: orgCapabilitiesGetPaddedMaskQueryKey(variables), - queryFn: () => getClient().query.orgCapabilitiesGetPaddedMask(variables).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgCapabilitiesQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgCapabilitiesQuery.ts deleted file mode 100644 index 8102ae4bd3..0000000000 --- a/sdk/constructive-react/src/admin/hooks/queries/useOrgCapabilitiesQuery.ts +++ /dev/null @@ -1,151 +0,0 @@ -/** - * Defines available capabilities 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 { orgCapabilityKeys } from '../query-keys'; -import type { - OrgCapabilitySelect, - OrgCapabilityWithRelations, - OrgCapabilityFilter, - OrgCapabilityOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - OrgCapabilitySelect, - OrgCapabilityWithRelations, - OrgCapabilityFilter, - OrgCapabilityOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const orgCapabilitiesQueryKey = orgCapabilityKeys.list; -/** - * Defines available capabilities as named bits within a bitmask, used by the RBAC system for access control - * - * @example - * ```tsx - * const { data, isLoading } = useOrgCapabilitiesQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useOrgCapabilitiesQuery< - S extends OrgCapabilitySelect, - TData = { - orgCapabilities: ConnectionResult>; - }, ->( - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, OrgCapabilitySelect>; - } & Omit< - UseQueryOptions< - { - orgCapabilities: ConnectionResult>; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useOrgCapabilitiesQuery( - params: { - selection: ListSelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs< - OrgCapabilitySelect, - OrgCapabilityFilter, - OrgCapabilityOrderBy - >(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: orgCapabilityKeys.list(args), - queryFn: () => getClient().orgCapability.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Defines available capabilities as named bits within a bitmask, used by the RBAC system for access control - * - * @example - * ```ts - * const data = await fetchOrgCapabilitiesQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchOrgCapabilitiesQuery(params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, OrgCapabilitySelect>; -}): Promise<{ - orgCapabilities: ConnectionResult>; -}>; -export async function fetchOrgCapabilitiesQuery(params: { - selection: ListSelectionConfig; -}) { - const args = buildListSelectionArgs< - OrgCapabilitySelect, - OrgCapabilityFilter, - OrgCapabilityOrderBy - >(params.selection); - return getClient().orgCapability.findMany(args).unwrap(); -} -/** - * Defines available capabilities as named bits within a bitmask, used by the RBAC system for access control - * - * @example - * ```ts - * await prefetchOrgCapabilitiesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchOrgCapabilitiesQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, OrgCapabilitySelect>; - } -): Promise; -export async function prefetchOrgCapabilitiesQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig; - } -): Promise { - const args = buildListSelectionArgs< - OrgCapabilitySelect, - OrgCapabilityFilter, - OrgCapabilityOrderBy - >(params.selection); - await queryClient.prefetchQuery({ - queryKey: orgCapabilityKeys.list(args), - queryFn: () => getClient().orgCapability.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgCapabilityDefaultQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgCapabilityDefaultQuery.ts deleted file mode 100644 index 5b9dbb5ed5..0000000000 --- a/sdk/constructive-react/src/admin/hooks/queries/useOrgCapabilityDefaultQuery.ts +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Stores the default capability 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 { orgCapabilityDefaultKeys } from '../query-keys'; -import type { - OrgCapabilityDefaultSelect, - OrgCapabilityDefaultWithRelations, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - OrgCapabilityDefaultSelect, - OrgCapabilityDefaultWithRelations, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const orgCapabilityDefaultQueryKey = orgCapabilityDefaultKeys.detail; -/** - * Stores the default capability bitmask assigned to new members upon joining - * - * @example - * ```tsx - * const { data, isLoading } = useOrgCapabilityDefaultQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useOrgCapabilityDefaultQuery< - S extends OrgCapabilityDefaultSelect, - TData = { - orgCapabilityDefault: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, OrgCapabilityDefaultSelect>; - } & Omit< - UseQueryOptions< - { - orgCapabilityDefault: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useOrgCapabilityDefaultQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: orgCapabilityDefaultKeys.detail(params.id), - queryFn: () => - getClient() - .orgCapabilityDefault.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Stores the default capability bitmask assigned to new members upon joining - * - * @example - * ```ts - * const data = await fetchOrgCapabilityDefaultQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchOrgCapabilityDefaultQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, OrgCapabilityDefaultSelect>; -}): Promise<{ - orgCapabilityDefault: InferSelectResult | null; -}>; -export async function fetchOrgCapabilityDefaultQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .orgCapabilityDefault.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Stores the default capability bitmask assigned to new members upon joining - * - * @example - * ```ts - * await prefetchOrgCapabilityDefaultQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchOrgCapabilityDefaultQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, OrgCapabilityDefaultSelect>; - } -): Promise; -export async function prefetchOrgCapabilityDefaultQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: orgCapabilityDefaultKeys.detail(params.id), - queryFn: () => - getClient() - .orgCapabilityDefault.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgCapabilityDefaultsQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgCapabilityDefaultsQuery.ts deleted file mode 100644 index 1624d3ad53..0000000000 --- a/sdk/constructive-react/src/admin/hooks/queries/useOrgCapabilityDefaultsQuery.ts +++ /dev/null @@ -1,178 +0,0 @@ -/** - * Stores the default capability 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 { orgCapabilityDefaultKeys } from '../query-keys'; -import type { - OrgCapabilityDefaultSelect, - OrgCapabilityDefaultWithRelations, - OrgCapabilityDefaultFilter, - OrgCapabilityDefaultOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - OrgCapabilityDefaultSelect, - OrgCapabilityDefaultWithRelations, - OrgCapabilityDefaultFilter, - OrgCapabilityDefaultOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const orgCapabilityDefaultsQueryKey = orgCapabilityDefaultKeys.list; -/** - * Stores the default capability bitmask assigned to new members upon joining - * - * @example - * ```tsx - * const { data, isLoading } = useOrgCapabilityDefaultsQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useOrgCapabilityDefaultsQuery< - S extends OrgCapabilityDefaultSelect, - TData = { - orgCapabilityDefaults: ConnectionResult< - InferSelectResult - >; - }, ->( - params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, OrgCapabilityDefaultSelect>; - } & Omit< - UseQueryOptions< - { - orgCapabilityDefaults: ConnectionResult< - InferSelectResult - >; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useOrgCapabilityDefaultsQuery( - params: { - selection: ListSelectionConfig< - OrgCapabilityDefaultSelect, - OrgCapabilityDefaultFilter, - OrgCapabilityDefaultOrderBy - >; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs< - OrgCapabilityDefaultSelect, - OrgCapabilityDefaultFilter, - OrgCapabilityDefaultOrderBy - >(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: orgCapabilityDefaultKeys.list(args), - queryFn: () => getClient().orgCapabilityDefault.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Stores the default capability bitmask assigned to new members upon joining - * - * @example - * ```ts - * const data = await fetchOrgCapabilityDefaultsQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchOrgCapabilityDefaultsQuery< - S extends OrgCapabilityDefaultSelect, ->(params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, OrgCapabilityDefaultSelect>; -}): Promise<{ - orgCapabilityDefaults: ConnectionResult>; -}>; -export async function fetchOrgCapabilityDefaultsQuery(params: { - selection: ListSelectionConfig< - OrgCapabilityDefaultSelect, - OrgCapabilityDefaultFilter, - OrgCapabilityDefaultOrderBy - >; -}) { - const args = buildListSelectionArgs< - OrgCapabilityDefaultSelect, - OrgCapabilityDefaultFilter, - OrgCapabilityDefaultOrderBy - >(params.selection); - return getClient().orgCapabilityDefault.findMany(args).unwrap(); -} -/** - * Stores the default capability bitmask assigned to new members upon joining - * - * @example - * ```ts - * await prefetchOrgCapabilityDefaultsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchOrgCapabilityDefaultsQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, OrgCapabilityDefaultSelect>; - } -): Promise; -export async function prefetchOrgCapabilityDefaultsQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig< - OrgCapabilityDefaultSelect, - OrgCapabilityDefaultFilter, - OrgCapabilityDefaultOrderBy - >; - } -): Promise { - const args = buildListSelectionArgs< - OrgCapabilityDefaultSelect, - OrgCapabilityDefaultFilter, - OrgCapabilityDefaultOrderBy - >(params.selection); - await queryClient.prefetchQuery({ - queryKey: orgCapabilityDefaultKeys.list(args), - queryFn: () => getClient().orgCapabilityDefault.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgCapabilityQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgCapabilityQuery.ts deleted file mode 100644 index 66fdbdc523..0000000000 --- a/sdk/constructive-react/src/admin/hooks/queries/useOrgCapabilityQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * Defines available capabilities 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 { orgCapabilityKeys } from '../query-keys'; -import type { OrgCapabilitySelect, OrgCapabilityWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { OrgCapabilitySelect, OrgCapabilityWithRelations } from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const orgCapabilityQueryKey = orgCapabilityKeys.detail; -/** - * Defines available capabilities as named bits within a bitmask, used by the RBAC system for access control - * - * @example - * ```tsx - * const { data, isLoading } = useOrgCapabilityQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useOrgCapabilityQuery< - S extends OrgCapabilitySelect, - TData = { - orgCapability: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, OrgCapabilitySelect>; - } & Omit< - UseQueryOptions< - { - orgCapability: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useOrgCapabilityQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: orgCapabilityKeys.detail(params.id), - queryFn: () => - getClient() - .orgCapability.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Defines available capabilities as named bits within a bitmask, used by the RBAC system for access control - * - * @example - * ```ts - * const data = await fetchOrgCapabilityQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchOrgCapabilityQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, OrgCapabilitySelect>; -}): Promise<{ - orgCapability: InferSelectResult | null; -}>; -export async function fetchOrgCapabilityQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .orgCapability.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Defines available capabilities as named bits within a bitmask, used by the RBAC system for access control - * - * @example - * ```ts - * await prefetchOrgCapabilityQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchOrgCapabilityQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, OrgCapabilitySelect>; - } -): Promise; -export async function prefetchOrgCapabilityQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: orgCapabilityKeys.detail(params.id), - queryFn: () => - getClient() - .orgCapability.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgMembershipProfileQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgMembershipProfileQuery.ts deleted file mode 100644 index 500bfd3d2c..0000000000 --- a/sdk/constructive-react/src/admin/hooks/queries/useOrgMembershipProfileQuery.ts +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Every profile a membership holds; memberships.profile_id points at one of them - * @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 { orgMembershipProfileKeys } from '../query-keys'; -import type { - OrgMembershipProfileSelect, - OrgMembershipProfileWithRelations, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - OrgMembershipProfileSelect, - OrgMembershipProfileWithRelations, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const orgMembershipProfileQueryKey = orgMembershipProfileKeys.detail; -/** - * Every profile a membership holds; memberships.profile_id points at one of them - * - * @example - * ```tsx - * const { data, isLoading } = useOrgMembershipProfileQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useOrgMembershipProfileQuery< - S extends OrgMembershipProfileSelect, - TData = { - orgMembershipProfile: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, OrgMembershipProfileSelect>; - } & Omit< - UseQueryOptions< - { - orgMembershipProfile: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useOrgMembershipProfileQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: orgMembershipProfileKeys.detail(params.id), - queryFn: () => - getClient() - .orgMembershipProfile.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Every profile a membership holds; memberships.profile_id points at one of them - * - * @example - * ```ts - * const data = await fetchOrgMembershipProfileQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchOrgMembershipProfileQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, OrgMembershipProfileSelect>; -}): Promise<{ - orgMembershipProfile: InferSelectResult | null; -}>; -export async function fetchOrgMembershipProfileQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .orgMembershipProfile.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Every profile a membership holds; memberships.profile_id points at one of them - * - * @example - * ```ts - * await prefetchOrgMembershipProfileQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchOrgMembershipProfileQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, OrgMembershipProfileSelect>; - } -): Promise; -export async function prefetchOrgMembershipProfileQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: orgMembershipProfileKeys.detail(params.id), - queryFn: () => - getClient() - .orgMembershipProfile.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgMembershipProfilesQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgMembershipProfilesQuery.ts deleted file mode 100644 index dd3c628cb6..0000000000 --- a/sdk/constructive-react/src/admin/hooks/queries/useOrgMembershipProfilesQuery.ts +++ /dev/null @@ -1,178 +0,0 @@ -/** - * Every profile a membership holds; memberships.profile_id points at one of them - * @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 { orgMembershipProfileKeys } from '../query-keys'; -import type { - OrgMembershipProfileSelect, - OrgMembershipProfileWithRelations, - OrgMembershipProfileFilter, - OrgMembershipProfileOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - OrgMembershipProfileSelect, - OrgMembershipProfileWithRelations, - OrgMembershipProfileFilter, - OrgMembershipProfileOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const orgMembershipProfilesQueryKey = orgMembershipProfileKeys.list; -/** - * Every profile a membership holds; memberships.profile_id points at one of them - * - * @example - * ```tsx - * const { data, isLoading } = useOrgMembershipProfilesQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useOrgMembershipProfilesQuery< - S extends OrgMembershipProfileSelect, - TData = { - orgMembershipProfiles: ConnectionResult< - InferSelectResult - >; - }, ->( - params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, OrgMembershipProfileSelect>; - } & Omit< - UseQueryOptions< - { - orgMembershipProfiles: ConnectionResult< - InferSelectResult - >; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useOrgMembershipProfilesQuery( - params: { - selection: ListSelectionConfig< - OrgMembershipProfileSelect, - OrgMembershipProfileFilter, - OrgMembershipProfileOrderBy - >; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs< - OrgMembershipProfileSelect, - OrgMembershipProfileFilter, - OrgMembershipProfileOrderBy - >(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: orgMembershipProfileKeys.list(args), - queryFn: () => getClient().orgMembershipProfile.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Every profile a membership holds; memberships.profile_id points at one of them - * - * @example - * ```ts - * const data = await fetchOrgMembershipProfilesQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchOrgMembershipProfilesQuery< - S extends OrgMembershipProfileSelect, ->(params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, OrgMembershipProfileSelect>; -}): Promise<{ - orgMembershipProfiles: ConnectionResult>; -}>; -export async function fetchOrgMembershipProfilesQuery(params: { - selection: ListSelectionConfig< - OrgMembershipProfileSelect, - OrgMembershipProfileFilter, - OrgMembershipProfileOrderBy - >; -}) { - const args = buildListSelectionArgs< - OrgMembershipProfileSelect, - OrgMembershipProfileFilter, - OrgMembershipProfileOrderBy - >(params.selection); - return getClient().orgMembershipProfile.findMany(args).unwrap(); -} -/** - * Every profile a membership holds; memberships.profile_id points at one of them - * - * @example - * ```ts - * await prefetchOrgMembershipProfilesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchOrgMembershipProfilesQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, OrgMembershipProfileSelect>; - } -): Promise; -export async function prefetchOrgMembershipProfilesQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig< - OrgMembershipProfileSelect, - OrgMembershipProfileFilter, - OrgMembershipProfileOrderBy - >; - } -): Promise { - const args = buildListSelectionArgs< - OrgMembershipProfileSelect, - OrgMembershipProfileFilter, - OrgMembershipProfileOrderBy - >(params.selection); - await queryClient.prefetchQuery({ - queryKey: orgMembershipProfileKeys.list(args), - queryFn: () => getClient().orgMembershipProfile.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgProfileCapabilitiesQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgProfileCapabilitiesQuery.ts deleted file mode 100644 index 1b723aa67a..0000000000 --- a/sdk/constructive-react/src/admin/hooks/queries/useOrgProfileCapabilitiesQuery.ts +++ /dev/null @@ -1,178 +0,0 @@ -/** - * Join table linking profiles to individual capabilities they include - * @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 { orgProfileCapabilityKeys } from '../query-keys'; -import type { - OrgProfileCapabilitySelect, - OrgProfileCapabilityWithRelations, - OrgProfileCapabilityFilter, - OrgProfileCapabilityOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - OrgProfileCapabilitySelect, - OrgProfileCapabilityWithRelations, - OrgProfileCapabilityFilter, - OrgProfileCapabilityOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const orgProfileCapabilitiesQueryKey = orgProfileCapabilityKeys.list; -/** - * Join table linking profiles to individual capabilities they include - * - * @example - * ```tsx - * const { data, isLoading } = useOrgProfileCapabilitiesQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useOrgProfileCapabilitiesQuery< - S extends OrgProfileCapabilitySelect, - TData = { - orgProfileCapabilities: ConnectionResult< - InferSelectResult - >; - }, ->( - params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, OrgProfileCapabilitySelect>; - } & Omit< - UseQueryOptions< - { - orgProfileCapabilities: ConnectionResult< - InferSelectResult - >; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useOrgProfileCapabilitiesQuery( - params: { - selection: ListSelectionConfig< - OrgProfileCapabilitySelect, - OrgProfileCapabilityFilter, - OrgProfileCapabilityOrderBy - >; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs< - OrgProfileCapabilitySelect, - OrgProfileCapabilityFilter, - OrgProfileCapabilityOrderBy - >(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: orgProfileCapabilityKeys.list(args), - queryFn: () => getClient().orgProfileCapability.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Join table linking profiles to individual capabilities they include - * - * @example - * ```ts - * const data = await fetchOrgProfileCapabilitiesQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchOrgProfileCapabilitiesQuery< - S extends OrgProfileCapabilitySelect, ->(params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, OrgProfileCapabilitySelect>; -}): Promise<{ - orgProfileCapabilities: ConnectionResult>; -}>; -export async function fetchOrgProfileCapabilitiesQuery(params: { - selection: ListSelectionConfig< - OrgProfileCapabilitySelect, - OrgProfileCapabilityFilter, - OrgProfileCapabilityOrderBy - >; -}) { - const args = buildListSelectionArgs< - OrgProfileCapabilitySelect, - OrgProfileCapabilityFilter, - OrgProfileCapabilityOrderBy - >(params.selection); - return getClient().orgProfileCapability.findMany(args).unwrap(); -} -/** - * Join table linking profiles to individual capabilities they include - * - * @example - * ```ts - * await prefetchOrgProfileCapabilitiesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchOrgProfileCapabilitiesQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, OrgProfileCapabilitySelect>; - } -): Promise; -export async function prefetchOrgProfileCapabilitiesQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig< - OrgProfileCapabilitySelect, - OrgProfileCapabilityFilter, - OrgProfileCapabilityOrderBy - >; - } -): Promise { - const args = buildListSelectionArgs< - OrgProfileCapabilitySelect, - OrgProfileCapabilityFilter, - OrgProfileCapabilityOrderBy - >(params.selection); - await queryClient.prefetchQuery({ - queryKey: orgProfileCapabilityKeys.list(args), - queryFn: () => getClient().orgProfileCapability.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgProfileCapabilityQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgProfileCapabilityQuery.ts deleted file mode 100644 index 3a7f290b0f..0000000000 --- a/sdk/constructive-react/src/admin/hooks/queries/useOrgProfileCapabilityQuery.ts +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Join table linking profiles to individual capabilities they include - * @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 { orgProfileCapabilityKeys } from '../query-keys'; -import type { - OrgProfileCapabilitySelect, - OrgProfileCapabilityWithRelations, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - OrgProfileCapabilitySelect, - OrgProfileCapabilityWithRelations, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const orgProfileCapabilityQueryKey = orgProfileCapabilityKeys.detail; -/** - * Join table linking profiles to individual capabilities they include - * - * @example - * ```tsx - * const { data, isLoading } = useOrgProfileCapabilityQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useOrgProfileCapabilityQuery< - S extends OrgProfileCapabilitySelect, - TData = { - orgProfileCapability: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, OrgProfileCapabilitySelect>; - } & Omit< - UseQueryOptions< - { - orgProfileCapability: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useOrgProfileCapabilityQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: orgProfileCapabilityKeys.detail(params.id), - queryFn: () => - getClient() - .orgProfileCapability.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Join table linking profiles to individual capabilities they include - * - * @example - * ```ts - * const data = await fetchOrgProfileCapabilityQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchOrgProfileCapabilityQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, OrgProfileCapabilitySelect>; -}): Promise<{ - orgProfileCapability: InferSelectResult | null; -}>; -export async function fetchOrgProfileCapabilityQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .orgProfileCapability.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Join table linking profiles to individual capabilities they include - * - * @example - * ```ts - * await prefetchOrgProfileCapabilityQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchOrgProfileCapabilityQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, OrgProfileCapabilitySelect>; - } -): Promise; -export async function prefetchOrgProfileCapabilityQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: orgProfileCapabilityKeys.detail(params.id), - queryFn: () => - getClient() - .orgProfileCapability.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgProfileDefinitionGrantQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgProfileDefinitionGrantQuery.ts deleted file mode 100644 index e538ced00d..0000000000 --- a/sdk/constructive-react/src/admin/hooks/queries/useOrgProfileDefinitionGrantQuery.ts +++ /dev/null @@ -1,151 +0,0 @@ -/** - * Audit log of capability additions and removals from profile definitions - * @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 { orgProfileDefinitionGrantKeys } from '../query-keys'; -import type { - OrgProfileDefinitionGrantSelect, - OrgProfileDefinitionGrantWithRelations, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - OrgProfileDefinitionGrantSelect, - OrgProfileDefinitionGrantWithRelations, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const orgProfileDefinitionGrantQueryKey = orgProfileDefinitionGrantKeys.detail; -/** - * Audit log of capability additions and removals from profile definitions - * - * @example - * ```tsx - * const { data, isLoading } = useOrgProfileDefinitionGrantQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useOrgProfileDefinitionGrantQuery< - S extends OrgProfileDefinitionGrantSelect, - TData = { - orgProfileDefinitionGrant: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, OrgProfileDefinitionGrantSelect>; - } & Omit< - UseQueryOptions< - { - orgProfileDefinitionGrant: InferSelectResult< - OrgProfileDefinitionGrantWithRelations, - S - > | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useOrgProfileDefinitionGrantQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: orgProfileDefinitionGrantKeys.detail(params.id), - queryFn: () => - getClient() - .orgProfileDefinitionGrant.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Audit log of capability additions and removals from profile definitions - * - * @example - * ```ts - * const data = await fetchOrgProfileDefinitionGrantQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchOrgProfileDefinitionGrantQuery< - S extends OrgProfileDefinitionGrantSelect, ->(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, OrgProfileDefinitionGrantSelect>; -}): Promise<{ - orgProfileDefinitionGrant: InferSelectResult | null; -}>; -export async function fetchOrgProfileDefinitionGrantQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .orgProfileDefinitionGrant.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Audit log of capability additions and removals from profile definitions - * - * @example - * ```ts - * await prefetchOrgProfileDefinitionGrantQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchOrgProfileDefinitionGrantQuery< - S extends OrgProfileDefinitionGrantSelect, ->( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, OrgProfileDefinitionGrantSelect>; - } -): Promise; -export async function prefetchOrgProfileDefinitionGrantQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: orgProfileDefinitionGrantKeys.detail(params.id), - queryFn: () => - getClient() - .orgProfileDefinitionGrant.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgProfileDefinitionGrantsQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgProfileDefinitionGrantsQuery.ts deleted file mode 100644 index 94b8c57686..0000000000 --- a/sdk/constructive-react/src/admin/hooks/queries/useOrgProfileDefinitionGrantsQuery.ts +++ /dev/null @@ -1,182 +0,0 @@ -/** - * Audit log of capability additions and removals from profile definitions - * @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 { orgProfileDefinitionGrantKeys } from '../query-keys'; -import type { - OrgProfileDefinitionGrantSelect, - OrgProfileDefinitionGrantWithRelations, - OrgProfileDefinitionGrantFilter, - OrgProfileDefinitionGrantOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - OrgProfileDefinitionGrantSelect, - OrgProfileDefinitionGrantWithRelations, - OrgProfileDefinitionGrantFilter, - OrgProfileDefinitionGrantOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const orgProfileDefinitionGrantsQueryKey = orgProfileDefinitionGrantKeys.list; -/** - * Audit log of capability additions and removals from profile definitions - * - * @example - * ```tsx - * const { data, isLoading } = useOrgProfileDefinitionGrantsQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useOrgProfileDefinitionGrantsQuery< - S extends OrgProfileDefinitionGrantSelect, - TData = { - orgProfileDefinitionGrants: ConnectionResult< - InferSelectResult - >; - }, ->( - params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, OrgProfileDefinitionGrantSelect>; - } & Omit< - UseQueryOptions< - { - orgProfileDefinitionGrants: ConnectionResult< - InferSelectResult - >; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useOrgProfileDefinitionGrantsQuery( - params: { - selection: ListSelectionConfig< - OrgProfileDefinitionGrantSelect, - OrgProfileDefinitionGrantFilter, - OrgProfileDefinitionGrantOrderBy - >; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs< - OrgProfileDefinitionGrantSelect, - OrgProfileDefinitionGrantFilter, - OrgProfileDefinitionGrantOrderBy - >(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: orgProfileDefinitionGrantKeys.list(args), - queryFn: () => getClient().orgProfileDefinitionGrant.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Audit log of capability additions and removals from profile definitions - * - * @example - * ```ts - * const data = await fetchOrgProfileDefinitionGrantsQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchOrgProfileDefinitionGrantsQuery< - S extends OrgProfileDefinitionGrantSelect, ->(params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, OrgProfileDefinitionGrantSelect>; -}): Promise<{ - orgProfileDefinitionGrants: ConnectionResult< - InferSelectResult - >; -}>; -export async function fetchOrgProfileDefinitionGrantsQuery(params: { - selection: ListSelectionConfig< - OrgProfileDefinitionGrantSelect, - OrgProfileDefinitionGrantFilter, - OrgProfileDefinitionGrantOrderBy - >; -}) { - const args = buildListSelectionArgs< - OrgProfileDefinitionGrantSelect, - OrgProfileDefinitionGrantFilter, - OrgProfileDefinitionGrantOrderBy - >(params.selection); - return getClient().orgProfileDefinitionGrant.findMany(args).unwrap(); -} -/** - * Audit log of capability additions and removals from profile definitions - * - * @example - * ```ts - * await prefetchOrgProfileDefinitionGrantsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchOrgProfileDefinitionGrantsQuery< - S extends OrgProfileDefinitionGrantSelect, ->( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, OrgProfileDefinitionGrantSelect>; - } -): Promise; -export async function prefetchOrgProfileDefinitionGrantsQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig< - OrgProfileDefinitionGrantSelect, - OrgProfileDefinitionGrantFilter, - OrgProfileDefinitionGrantOrderBy - >; - } -): Promise { - const args = buildListSelectionArgs< - OrgProfileDefinitionGrantSelect, - OrgProfileDefinitionGrantFilter, - OrgProfileDefinitionGrantOrderBy - >(params.selection); - await queryClient.prefetchQuery({ - queryKey: orgProfileDefinitionGrantKeys.list(args), - queryFn: () => getClient().orgProfileDefinitionGrant.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgProfileGrantQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgProfileGrantQuery.ts deleted file mode 100644 index 488088dfdf..0000000000 --- a/sdk/constructive-react/src/admin/hooks/queries/useOrgProfileGrantQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * Audit log of profile assignments and revocations for members - * @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 { orgProfileGrantKeys } from '../query-keys'; -import type { OrgProfileGrantSelect, OrgProfileGrantWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { OrgProfileGrantSelect, OrgProfileGrantWithRelations } from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const orgProfileGrantQueryKey = orgProfileGrantKeys.detail; -/** - * Audit log of profile assignments and revocations for members - * - * @example - * ```tsx - * const { data, isLoading } = useOrgProfileGrantQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useOrgProfileGrantQuery< - S extends OrgProfileGrantSelect, - TData = { - orgProfileGrant: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, OrgProfileGrantSelect>; - } & Omit< - UseQueryOptions< - { - orgProfileGrant: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useOrgProfileGrantQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: orgProfileGrantKeys.detail(params.id), - queryFn: () => - getClient() - .orgProfileGrant.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Audit log of profile assignments and revocations for members - * - * @example - * ```ts - * const data = await fetchOrgProfileGrantQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchOrgProfileGrantQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, OrgProfileGrantSelect>; -}): Promise<{ - orgProfileGrant: InferSelectResult | null; -}>; -export async function fetchOrgProfileGrantQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .orgProfileGrant.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Audit log of profile assignments and revocations for members - * - * @example - * ```ts - * await prefetchOrgProfileGrantQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchOrgProfileGrantQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, OrgProfileGrantSelect>; - } -): Promise; -export async function prefetchOrgProfileGrantQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: orgProfileGrantKeys.detail(params.id), - queryFn: () => - getClient() - .orgProfileGrant.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgProfileGrantsQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgProfileGrantsQuery.ts deleted file mode 100644 index cb5522bb17..0000000000 --- a/sdk/constructive-react/src/admin/hooks/queries/useOrgProfileGrantsQuery.ts +++ /dev/null @@ -1,163 +0,0 @@ -/** - * Audit log of profile assignments and revocations for members - * @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 { orgProfileGrantKeys } from '../query-keys'; -import type { - OrgProfileGrantSelect, - OrgProfileGrantWithRelations, - OrgProfileGrantFilter, - OrgProfileGrantOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - OrgProfileGrantSelect, - OrgProfileGrantWithRelations, - OrgProfileGrantFilter, - OrgProfileGrantOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const orgProfileGrantsQueryKey = orgProfileGrantKeys.list; -/** - * Audit log of profile assignments and revocations for members - * - * @example - * ```tsx - * const { data, isLoading } = useOrgProfileGrantsQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useOrgProfileGrantsQuery< - S extends OrgProfileGrantSelect, - TData = { - orgProfileGrants: ConnectionResult>; - }, ->( - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, OrgProfileGrantSelect>; - } & Omit< - UseQueryOptions< - { - orgProfileGrants: ConnectionResult>; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useOrgProfileGrantsQuery( - params: { - selection: ListSelectionConfig< - OrgProfileGrantSelect, - OrgProfileGrantFilter, - OrgProfileGrantOrderBy - >; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs< - OrgProfileGrantSelect, - OrgProfileGrantFilter, - OrgProfileGrantOrderBy - >(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: orgProfileGrantKeys.list(args), - queryFn: () => getClient().orgProfileGrant.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Audit log of profile assignments and revocations for members - * - * @example - * ```ts - * const data = await fetchOrgProfileGrantsQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchOrgProfileGrantsQuery(params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, OrgProfileGrantSelect>; -}): Promise<{ - orgProfileGrants: ConnectionResult>; -}>; -export async function fetchOrgProfileGrantsQuery(params: { - selection: ListSelectionConfig< - OrgProfileGrantSelect, - OrgProfileGrantFilter, - OrgProfileGrantOrderBy - >; -}) { - const args = buildListSelectionArgs< - OrgProfileGrantSelect, - OrgProfileGrantFilter, - OrgProfileGrantOrderBy - >(params.selection); - return getClient().orgProfileGrant.findMany(args).unwrap(); -} -/** - * Audit log of profile assignments and revocations for members - * - * @example - * ```ts - * await prefetchOrgProfileGrantsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchOrgProfileGrantsQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, OrgProfileGrantSelect>; - } -): Promise; -export async function prefetchOrgProfileGrantsQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig< - OrgProfileGrantSelect, - OrgProfileGrantFilter, - OrgProfileGrantOrderBy - >; - } -): Promise { - const args = buildListSelectionArgs< - OrgProfileGrantSelect, - OrgProfileGrantFilter, - OrgProfileGrantOrderBy - >(params.selection); - await queryClient.prefetchQuery({ - queryKey: orgProfileGrantKeys.list(args), - queryFn: () => getClient().orgProfileGrant.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgProfileQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgProfileQuery.ts deleted file mode 100644 index 860d95dd48..0000000000 --- a/sdk/constructive-react/src/admin/hooks/queries/useOrgProfileQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * Named capability bundles (roles) that group multiple capabilities into reusable profiles - * @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 { orgProfileKeys } from '../query-keys'; -import type { OrgProfileSelect, OrgProfileWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { OrgProfileSelect, OrgProfileWithRelations } from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const orgProfileQueryKey = orgProfileKeys.detail; -/** - * Named capability bundles (roles) that group multiple capabilities into reusable profiles - * - * @example - * ```tsx - * const { data, isLoading } = useOrgProfileQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useOrgProfileQuery< - S extends OrgProfileSelect, - TData = { - orgProfile: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, OrgProfileSelect>; - } & Omit< - UseQueryOptions< - { - orgProfile: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useOrgProfileQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: orgProfileKeys.detail(params.id), - queryFn: () => - getClient() - .orgProfile.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Named capability bundles (roles) that group multiple capabilities into reusable profiles - * - * @example - * ```ts - * const data = await fetchOrgProfileQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchOrgProfileQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, OrgProfileSelect>; -}): Promise<{ - orgProfile: InferSelectResult | null; -}>; -export async function fetchOrgProfileQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .orgProfile.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Named capability bundles (roles) that group multiple capabilities into reusable profiles - * - * @example - * ```ts - * await prefetchOrgProfileQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchOrgProfileQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, OrgProfileSelect>; - } -): Promise; -export async function prefetchOrgProfileQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: orgProfileKeys.detail(params.id), - queryFn: () => - getClient() - .orgProfile.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgProfileTemplateQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgProfileTemplateQuery.ts deleted file mode 100644 index 32088d302c..0000000000 --- a/sdk/constructive-react/src/admin/hooks/queries/useOrgProfileTemplateQuery.ts +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Template profiles that are automatically seeded into new entities when created - * @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 { orgProfileTemplateKeys } from '../query-keys'; -import type { - OrgProfileTemplateSelect, - OrgProfileTemplateWithRelations, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - OrgProfileTemplateSelect, - OrgProfileTemplateWithRelations, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const orgProfileTemplateQueryKey = orgProfileTemplateKeys.detail; -/** - * Template profiles that are automatically seeded into new entities when created - * - * @example - * ```tsx - * const { data, isLoading } = useOrgProfileTemplateQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useOrgProfileTemplateQuery< - S extends OrgProfileTemplateSelect, - TData = { - orgProfileTemplate: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, OrgProfileTemplateSelect>; - } & Omit< - UseQueryOptions< - { - orgProfileTemplate: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useOrgProfileTemplateQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: orgProfileTemplateKeys.detail(params.id), - queryFn: () => - getClient() - .orgProfileTemplate.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Template profiles that are automatically seeded into new entities when created - * - * @example - * ```ts - * const data = await fetchOrgProfileTemplateQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchOrgProfileTemplateQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, OrgProfileTemplateSelect>; -}): Promise<{ - orgProfileTemplate: InferSelectResult | null; -}>; -export async function fetchOrgProfileTemplateQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .orgProfileTemplate.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Template profiles that are automatically seeded into new entities when created - * - * @example - * ```ts - * await prefetchOrgProfileTemplateQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchOrgProfileTemplateQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, OrgProfileTemplateSelect>; - } -): Promise; -export async function prefetchOrgProfileTemplateQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: orgProfileTemplateKeys.detail(params.id), - queryFn: () => - getClient() - .orgProfileTemplate.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgProfileTemplatesQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgProfileTemplatesQuery.ts deleted file mode 100644 index eaaf07d376..0000000000 --- a/sdk/constructive-react/src/admin/hooks/queries/useOrgProfileTemplatesQuery.ts +++ /dev/null @@ -1,171 +0,0 @@ -/** - * Template profiles that are automatically seeded into new entities when created - * @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 { orgProfileTemplateKeys } from '../query-keys'; -import type { - OrgProfileTemplateSelect, - OrgProfileTemplateWithRelations, - OrgProfileTemplateFilter, - OrgProfileTemplateOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - OrgProfileTemplateSelect, - OrgProfileTemplateWithRelations, - OrgProfileTemplateFilter, - OrgProfileTemplateOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const orgProfileTemplatesQueryKey = orgProfileTemplateKeys.list; -/** - * Template profiles that are automatically seeded into new entities when created - * - * @example - * ```tsx - * const { data, isLoading } = useOrgProfileTemplatesQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useOrgProfileTemplatesQuery< - S extends OrgProfileTemplateSelect, - TData = { - orgProfileTemplates: ConnectionResult>; - }, ->( - params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, OrgProfileTemplateSelect>; - } & Omit< - UseQueryOptions< - { - orgProfileTemplates: ConnectionResult< - InferSelectResult - >; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useOrgProfileTemplatesQuery( - params: { - selection: ListSelectionConfig< - OrgProfileTemplateSelect, - OrgProfileTemplateFilter, - OrgProfileTemplateOrderBy - >; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs< - OrgProfileTemplateSelect, - OrgProfileTemplateFilter, - OrgProfileTemplateOrderBy - >(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: orgProfileTemplateKeys.list(args), - queryFn: () => getClient().orgProfileTemplate.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Template profiles that are automatically seeded into new entities when created - * - * @example - * ```ts - * const data = await fetchOrgProfileTemplatesQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchOrgProfileTemplatesQuery(params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, OrgProfileTemplateSelect>; -}): Promise<{ - orgProfileTemplates: ConnectionResult>; -}>; -export async function fetchOrgProfileTemplatesQuery(params: { - selection: ListSelectionConfig< - OrgProfileTemplateSelect, - OrgProfileTemplateFilter, - OrgProfileTemplateOrderBy - >; -}) { - const args = buildListSelectionArgs< - OrgProfileTemplateSelect, - OrgProfileTemplateFilter, - OrgProfileTemplateOrderBy - >(params.selection); - return getClient().orgProfileTemplate.findMany(args).unwrap(); -} -/** - * Template profiles that are automatically seeded into new entities when created - * - * @example - * ```ts - * await prefetchOrgProfileTemplatesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchOrgProfileTemplatesQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, OrgProfileTemplateSelect>; - } -): Promise; -export async function prefetchOrgProfileTemplatesQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig< - OrgProfileTemplateSelect, - OrgProfileTemplateFilter, - OrgProfileTemplateOrderBy - >; - } -): Promise { - const args = buildListSelectionArgs< - OrgProfileTemplateSelect, - OrgProfileTemplateFilter, - OrgProfileTemplateOrderBy - >(params.selection); - await queryClient.prefetchQuery({ - queryKey: orgProfileTemplateKeys.list(args), - queryFn: () => getClient().orgProfileTemplate.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgProfilesQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgProfilesQuery.ts deleted file mode 100644 index 94d637108d..0000000000 --- a/sdk/constructive-react/src/admin/hooks/queries/useOrgProfilesQuery.ts +++ /dev/null @@ -1,145 +0,0 @@ -/** - * Named capability bundles (roles) that group multiple capabilities into reusable profiles - * @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 { orgProfileKeys } from '../query-keys'; -import type { - OrgProfileSelect, - OrgProfileWithRelations, - OrgProfileFilter, - OrgProfileOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - OrgProfileSelect, - OrgProfileWithRelations, - OrgProfileFilter, - OrgProfileOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const orgProfilesQueryKey = orgProfileKeys.list; -/** - * Named capability bundles (roles) that group multiple capabilities into reusable profiles - * - * @example - * ```tsx - * const { data, isLoading } = useOrgProfilesQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useOrgProfilesQuery< - S extends OrgProfileSelect, - TData = { - orgProfiles: ConnectionResult>; - }, ->( - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, OrgProfileSelect>; - } & Omit< - UseQueryOptions< - { - orgProfiles: ConnectionResult>; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useOrgProfilesQuery( - params: { - selection: ListSelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs( - params.selection - ); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: orgProfileKeys.list(args), - queryFn: () => getClient().orgProfile.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Named capability bundles (roles) that group multiple capabilities into reusable profiles - * - * @example - * ```ts - * const data = await fetchOrgProfilesQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchOrgProfilesQuery(params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, OrgProfileSelect>; -}): Promise<{ - orgProfiles: ConnectionResult>; -}>; -export async function fetchOrgProfilesQuery(params: { - selection: ListSelectionConfig; -}) { - const args = buildListSelectionArgs( - params.selection - ); - return getClient().orgProfile.findMany(args).unwrap(); -} -/** - * Named capability bundles (roles) that group multiple capabilities into reusable profiles - * - * @example - * ```ts - * await prefetchOrgProfilesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchOrgProfilesQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, OrgProfileSelect>; - } -): Promise; -export async function prefetchOrgProfilesQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig; - } -): Promise { - const args = buildListSelectionArgs( - params.selection - ); - await queryClient.prefetchQuery({ - queryKey: orgProfileKeys.list(args), - queryFn: () => getClient().orgProfile.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 b9dba76e38..61f4474ff5 100644 --- a/sdk/constructive-react/src/admin/hooks/query-keys.ts +++ b/sdk/constructive-react/src/admin/hooks/query-keys.ts @@ -28,15 +28,6 @@ export const appAdminGrantKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...appAdminGrantKeys.details(), id] as const, } as const; -export const appCapabilityKeys = { - /** All appCapability queries */ all: ['appcapability'] as const, - /** List query keys */ lists: () => [...appCapabilityKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...appCapabilityKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...appCapabilityKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...appCapabilityKeys.details(), id] as const, -} as const; export const appCapabilityDefaultCapabilityKeys = { /** All appCapabilityDefaultCapability queries */ all: [ 'appcapabilitydefaultcapability', @@ -49,15 +40,6 @@ export const appCapabilityDefaultCapabilityKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...appCapabilityDefaultCapabilityKeys.details(), id] as const, } as const; -export const appCapabilityDefaultKeys = { - /** All appCapabilityDefault queries */ all: ['appcapabilitydefault'] as const, - /** List query keys */ lists: () => [...appCapabilityDefaultKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...appCapabilityDefaultKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...appCapabilityDefaultKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...appCapabilityDefaultKeys.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, @@ -112,15 +94,6 @@ export const appMembershipDefaultKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...appMembershipDefaultKeys.details(), id] as const, } as const; -export const appMembershipProfileKeys = { - /** All appMembershipProfile queries */ all: ['appmembershipprofile'] as const, - /** List query keys */ lists: () => [...appMembershipProfileKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...appMembershipProfileKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...appMembershipProfileKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...appMembershipProfileKeys.details(), id] as const, -} as const; export const appOwnerGrantKeys = { /** All appOwnerGrant queries */ all: ['appownergrant'] as const, /** List query keys */ lists: () => [...appOwnerGrantKeys.all, 'list'] as const, @@ -130,51 +103,6 @@ export const appOwnerGrantKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...appOwnerGrantKeys.details(), id] as const, } as const; -export const appProfileCapabilityKeys = { - /** All appProfileCapability queries */ all: ['appprofilecapability'] as const, - /** List query keys */ lists: () => [...appProfileCapabilityKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...appProfileCapabilityKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...appProfileCapabilityKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...appProfileCapabilityKeys.details(), id] as const, -} as const; -export const appProfileKeys = { - /** All appProfile queries */ all: ['appprofile'] as const, - /** List query keys */ lists: () => [...appProfileKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...appProfileKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...appProfileKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...appProfileKeys.details(), id] as const, -} as const; -export const appProfileDefinitionGrantKeys = { - /** All appProfileDefinitionGrant queries */ all: ['appprofiledefinitiongrant'] as const, - /** List query keys */ lists: () => [...appProfileDefinitionGrantKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...appProfileDefinitionGrantKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...appProfileDefinitionGrantKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...appProfileDefinitionGrantKeys.details(), id] as const, -} as const; -export const appProfileGrantKeys = { - /** All appProfileGrant queries */ all: ['appprofilegrant'] as const, - /** List query keys */ lists: () => [...appProfileGrantKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...appProfileGrantKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...appProfileGrantKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...appProfileGrantKeys.details(), id] as const, -} as const; -export const appProfileTemplateKeys = { - /** All appProfileTemplate queries */ all: ['appprofiletemplate'] as const, - /** List query keys */ lists: () => [...appProfileTemplateKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...appProfileTemplateKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...appProfileTemplateKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...appProfileTemplateKeys.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, @@ -193,15 +121,6 @@ export const orgAdminGrantKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...orgAdminGrantKeys.details(), id] as const, } as const; -export const orgCapabilityKeys = { - /** All orgCapability queries */ all: ['orgcapability'] as const, - /** List query keys */ lists: () => [...orgCapabilityKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...orgCapabilityKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...orgCapabilityKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...orgCapabilityKeys.details(), id] as const, -} as const; export const orgCapabilityDefaultCapabilityKeys = { /** All orgCapabilityDefaultCapability queries */ all: [ 'orgcapabilitydefaultcapability', @@ -214,15 +133,6 @@ export const orgCapabilityDefaultCapabilityKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...orgCapabilityDefaultCapabilityKeys.details(), id] as const, } as const; -export const orgCapabilityDefaultKeys = { - /** All orgCapabilityDefault queries */ all: ['orgcapabilitydefault'] as const, - /** List query keys */ lists: () => [...orgCapabilityDefaultKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...orgCapabilityDefaultKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...orgCapabilityDefaultKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...orgCapabilityDefaultKeys.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, @@ -331,15 +241,6 @@ export const orgMembershipDefaultKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...orgMembershipDefaultKeys.details(), id] as const, } as const; -export const orgMembershipProfileKeys = { - /** All orgMembershipProfile queries */ all: ['orgmembershipprofile'] as const, - /** List query keys */ lists: () => [...orgMembershipProfileKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...orgMembershipProfileKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...orgMembershipProfileKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...orgMembershipProfileKeys.details(), id] as const, -} as const; export const orgMembershipSettingKeys = { /** All orgMembershipSetting queries */ all: ['orgmembershipsetting'] as const, /** List query keys */ lists: () => [...orgMembershipSettingKeys.all, 'list'] as const, @@ -358,77 +259,14 @@ export const orgOwnerGrantKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...orgOwnerGrantKeys.details(), id] as const, } as const; -export const orgProfileCapabilityKeys = { - /** All orgProfileCapability queries */ all: ['orgprofilecapability'] as const, - /** List query keys */ lists: () => [...orgProfileCapabilityKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...orgProfileCapabilityKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...orgProfileCapabilityKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...orgProfileCapabilityKeys.details(), id] as const, -} as const; -export const orgProfileKeys = { - /** All orgProfile queries */ all: ['orgprofile'] as const, - /** List query keys */ lists: () => [...orgProfileKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...orgProfileKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...orgProfileKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...orgProfileKeys.details(), id] as const, -} as const; -export const orgProfileDefinitionGrantKeys = { - /** All orgProfileDefinitionGrant queries */ all: ['orgprofiledefinitiongrant'] as const, - /** List query keys */ lists: () => [...orgProfileDefinitionGrantKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...orgProfileDefinitionGrantKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...orgProfileDefinitionGrantKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...orgProfileDefinitionGrantKeys.details(), id] as const, -} as const; -export const orgProfileGrantKeys = { - /** All orgProfileGrant queries */ all: ['orgprofilegrant'] as const, - /** List query keys */ lists: () => [...orgProfileGrantKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...orgProfileGrantKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...orgProfileGrantKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...orgProfileGrantKeys.details(), id] as const, -} as const; -export const orgProfileTemplateKeys = { - /** All orgProfileTemplate queries */ all: ['orgprofiletemplate'] as const, - /** List query keys */ lists: () => [...orgProfileTemplateKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...orgProfileTemplateKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...orgProfileTemplateKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...orgProfileTemplateKeys.details(), id] as const, -} as const; // ============================================================================ // Custom Query Keys // ============================================================================ export const customQueryKeys = { - /** Query key for appCapabilitiesGetByMask */ appCapabilitiesGetByMask: (variables?: object) => - ['appCapabilitiesGetByMask', variables] as const, - /** Query key for appCapabilitiesGetMask */ appCapabilitiesGetMask: (variables?: object) => - ['appCapabilitiesGetMask', variables] as const, - /** Query key for appCapabilitiesGetMaskByNames */ appCapabilitiesGetMaskByNames: ( - variables?: object - ) => ['appCapabilitiesGetMaskByNames', variables] as const, - /** Query key for appCapabilitiesGetPaddedMask */ appCapabilitiesGetPaddedMask: ( - variables?: object - ) => ['appCapabilitiesGetPaddedMask', variables] as const, - /** Query key for orgCapabilitiesGetByMask */ orgCapabilitiesGetByMask: (variables?: object) => - ['orgCapabilitiesGetByMask', variables] as const, - /** Query key for orgCapabilitiesGetMask */ orgCapabilitiesGetMask: (variables?: object) => - ['orgCapabilitiesGetMask', variables] as const, - /** Query key for orgCapabilitiesGetMaskByNames */ orgCapabilitiesGetMaskByNames: ( - variables?: object - ) => ['orgCapabilitiesGetMaskByNames', variables] as const, - /** Query key for orgCapabilitiesGetPaddedMask */ orgCapabilitiesGetPaddedMask: ( - variables?: object - ) => ['orgCapabilitiesGetPaddedMask', variables] as const, + /** Query key for getOrganizationId */ getOrganizationId: (variables?: object) => + ['getOrganizationId', variables] as const, /** Query key for orgIsManagerOf */ orgIsManagerOf: (variables?: object) => ['orgIsManagerOf', variables] as const, } as const; @@ -456,27 +294,17 @@ export const customQueryKeys = { */ export const queryKeys = { appAdminGrant: appAdminGrantKeys, - appCapability: appCapabilityKeys, appCapabilityDefaultCapability: appCapabilityDefaultCapabilityKeys, - appCapabilityDefault: appCapabilityDefaultKeys, appCapabilityDefaultGrant: appCapabilityDefaultGrantKeys, appClaimedInvite: appClaimedInviteKeys, appGrant: appGrantKeys, appInvite: appInviteKeys, appMembership: appMembershipKeys, appMembershipDefault: appMembershipDefaultKeys, - appMembershipProfile: appMembershipProfileKeys, appOwnerGrant: appOwnerGrantKeys, - appProfileCapability: appProfileCapabilityKeys, - appProfile: appProfileKeys, - appProfileDefinitionGrant: appProfileDefinitionGrantKeys, - appProfileGrant: appProfileGrantKeys, - appProfileTemplate: appProfileTemplateKeys, membershipType: membershipTypeKeys, orgAdminGrant: orgAdminGrantKeys, - orgCapability: orgCapabilityKeys, orgCapabilityDefaultCapability: orgCapabilityDefaultCapabilityKeys, - orgCapabilityDefault: orgCapabilityDefaultKeys, orgCapabilityDefaultGrant: orgCapabilityDefaultGrantKeys, orgChartEdge: orgChartEdgeKeys, orgChartEdgeGrant: orgChartEdgeGrantKeys, @@ -489,14 +317,8 @@ export const queryKeys = { orgMemberProfile: orgMemberProfileKeys, orgMembership: orgMembershipKeys, orgMembershipDefault: orgMembershipDefaultKeys, - orgMembershipProfile: orgMembershipProfileKeys, orgMembershipSetting: orgMembershipSettingKeys, orgOwnerGrant: orgOwnerGrantKeys, - orgProfileCapability: orgProfileCapabilityKeys, - orgProfile: orgProfileKeys, - orgProfileDefinitionGrant: orgProfileDefinitionGrantKeys, - orgProfileGrant: orgProfileGrantKeys, - orgProfileTemplate: orgProfileTemplateKeys, 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 c337efef49..23761f3cd3 100644 --- a/sdk/constructive-react/src/admin/orm/README.md +++ b/sdk/constructive-react/src/admin/orm/README.md @@ -22,27 +22,17 @@ const db = createClient({ | Model | Operations | |-------|------------| | `appAdminGrant` | findMany, findOne, create, update, delete | -| `appCapability` | findMany, findOne, create, update, delete | | `appCapabilityDefaultCapability` | findMany, findOne, create, update, delete | -| `appCapabilityDefault` | 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 | -| `appMembershipProfile` | findMany, findOne, create, update, delete | | `appOwnerGrant` | findMany, findOne, create, update, delete | -| `appProfileCapability` | findMany, findOne, create, update, delete | -| `appProfile` | findMany, findOne, create, update, delete | -| `appProfileDefinitionGrant` | findMany, findOne, create, update, delete | -| `appProfileGrant` | findMany, findOne, create, update, delete | -| `appProfileTemplate` | findMany, findOne, create, update, delete | | `membershipType` | findMany, findOne, create, update, delete | | `orgAdminGrant` | findMany, findOne, create, update, delete | -| `orgCapability` | findMany, findOne, create, update, delete | | `orgCapabilityDefaultCapability` | findMany, findOne, create, update, delete | -| `orgCapabilityDefault` | findMany, findOne, create, update, delete | | `orgCapabilityDefaultGrant` | findMany, findOne, create, update, delete | | `orgChartEdge` | findMany, findOne, create, update, delete | | `orgChartEdgeGrant` | findMany, findOne, create, update, delete | @@ -55,14 +45,8 @@ const db = createClient({ | `orgMemberProfile` | findMany, findOne, create, update, delete | | `orgMembership` | findMany, findOne, create, update, delete | | `orgMembershipDefault` | findMany, findOne, create, update, delete | -| `orgMembershipProfile` | findMany, findOne, create, update, delete | | `orgMembershipSetting` | findMany, findOne, create, update, delete | | `orgOwnerGrant` | findMany, findOne, create, update, delete | -| `orgProfileCapability` | findMany, findOne, create, update, delete | -| `orgProfile` | findMany, findOne, create, update, delete | -| `orgProfileDefinitionGrant` | findMany, findOne, create, update, delete | -| `orgProfileGrant` | findMany, findOne, create, update, delete | -| `orgProfileTemplate` | findMany, findOne, create, update, delete | ## Table Operations @@ -100,40 +84,6 @@ const updated = await db.appAdminGrant.update({ where: { id: '' }, data: { const deleted = await db.appAdminGrant.delete({ where: { id: '' } }).execute(); ``` -### `db.appCapability` - -CRUD operations for AppCapability records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `bitnum` | Int | Yes | -| `bitstr` | BitString | Yes | -| `description` | String | Yes | -| `id` | UUID | No | -| `kind` | String | Yes | -| `name` | String | Yes | - -**Operations:** - -```typescript -// List all appCapability records -const items = await db.appCapability.findMany({ select: { bitnum: true, bitstr: true, description: true, id: true, kind: true, name: true } }).execute(); - -// Get one by id -const item = await db.appCapability.findOne({ id: '', select: { bitnum: true, bitstr: true, description: true, id: true, kind: true, name: true } }).execute(); - -// Create -const created = await db.appCapability.create({ data: { bitnum: '', bitstr: '', description: '', kind: '', name: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appCapability.update({ where: { id: '' }, data: { bitnum: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appCapability.delete({ where: { id: '' } }).execute(); -``` - ### `db.appCapabilityDefaultCapability` CRUD operations for AppCapabilityDefaultCapability records. @@ -166,36 +116,6 @@ const updated = await db.appCapabilityDefaultCapability.update({ where: { id: '< const deleted = await db.appCapabilityDefaultCapability.delete({ where: { id: '' } }).execute(); ``` -### `db.appCapabilityDefault` - -CRUD operations for AppCapabilityDefault records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `capabilities` | BitString | Yes | -| `id` | UUID | No | - -**Operations:** - -```typescript -// List all appCapabilityDefault records -const items = await db.appCapabilityDefault.findMany({ select: { capabilities: true, id: true } }).execute(); - -// Get one by id -const item = await db.appCapabilityDefault.findOne({ id: '', select: { capabilities: true, id: true } }).execute(); - -// Create -const created = await db.appCapabilityDefault.create({ data: { capabilities: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appCapabilityDefault.update({ where: { id: '' }, data: { capabilities: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appCapabilityDefault.delete({ where: { id: '' } }).execute(); -``` - ### `db.appCapabilityDefaultGrant` CRUD operations for AppCapabilityDefaultGrant records. @@ -354,6 +274,7 @@ CRUD operations for AppMembership records. | `capabilities` | BitString | Yes | | `createdAt` | Datetime | No | | `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | | `granted` | BitString | Yes | | `id` | UUID | No | | `isActive` | Boolean | Yes | @@ -366,18 +287,19 @@ CRUD operations for AppMembership records. | `profileId` | UUID | Yes | | `updatedAt` | Datetime | No | | `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | **Operations:** ```typescript // List all appMembership records -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(); +const items = await db.appMembership.findMany({ select: { actorId: true, capabilities: true, createdAt: true, createdBy: true, createdByPrincipal: 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, updatedByPrincipal: true } }).execute(); // Get one by id -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(); +const item = await db.appMembership.findOne({ id: '', select: { actorId: true, capabilities: true, createdAt: true, createdBy: true, createdByPrincipal: 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, updatedByPrincipal: true } }).execute(); // Create -const created = await db.appMembership.create({ data: { actorId: '', capabilities: '', createdBy: '', granted: '', isActive: '', isAdmin: '', isApproved: '', isBanned: '', isDisabled: '', isOwner: '', isVerified: '', profileId: '', updatedBy: '' }, select: { id: true } }).execute(); +const created = await db.appMembership.create({ data: { actorId: '', capabilities: '', createdBy: '', createdByPrincipal: '', granted: '', isActive: '', isAdmin: '', isApproved: '', isBanned: '', isDisabled: '', isOwner: '', isVerified: '', profileId: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update const updated = await db.appMembership.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); @@ -396,23 +318,25 @@ CRUD operations for AppMembershipDefault records. |-------|------|----------| | `createdAt` | Datetime | No | | `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | | `id` | UUID | No | | `isApproved` | Boolean | Yes | | `isVerified` | Boolean | Yes | | `updatedAt` | Datetime | No | | `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | **Operations:** ```typescript // List all appMembershipDefault records -const items = await db.appMembershipDefault.findMany({ select: { createdAt: true, createdBy: true, id: true, isApproved: true, isVerified: true, updatedAt: true, updatedBy: true } }).execute(); +const items = await db.appMembershipDefault.findMany({ select: { createdAt: true, createdBy: true, createdByPrincipal: true, id: true, isApproved: true, isVerified: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.appMembershipDefault.findOne({ id: '', select: { createdAt: true, createdBy: true, id: true, isApproved: true, isVerified: true, updatedAt: true, updatedBy: true } }).execute(); +const item = await db.appMembershipDefault.findOne({ id: '', select: { createdAt: true, createdBy: true, createdByPrincipal: true, id: true, isApproved: true, isVerified: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.appMembershipDefault.create({ data: { createdBy: '', isApproved: '', isVerified: '', updatedBy: '' }, select: { id: true } }).execute(); +const created = await db.appMembershipDefault.create({ data: { createdBy: '', createdByPrincipal: '', isApproved: '', isVerified: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update const updated = await db.appMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); @@ -421,40 +345,6 @@ const updated = await db.appMembershipDefault.update({ where: { id: '' }, const deleted = await db.appMembershipDefault.delete({ where: { id: '' } }).execute(); ``` -### `db.appMembershipProfile` - -CRUD operations for AppMembershipProfile records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `actorId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `id` | UUID | No | -| `membershipId` | UUID | Yes | -| `profileId` | UUID | Yes | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all appMembershipProfile records -const items = await db.appMembershipProfile.findMany({ select: { actorId: true, createdAt: true, id: true, membershipId: true, profileId: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.appMembershipProfile.findOne({ id: '', select: { actorId: true, createdAt: true, id: true, membershipId: true, profileId: true, updatedAt: true } }).execute(); - -// Create -const created = await db.appMembershipProfile.create({ data: { actorId: '', membershipId: '', profileId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appMembershipProfile.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appMembershipProfile.delete({ where: { id: '' } }).execute(); -``` - ### `db.appOwnerGrant` CRUD operations for AppOwnerGrant records. @@ -489,182 +379,6 @@ const updated = await db.appOwnerGrant.update({ where: { id: '' }, data: { const deleted = await db.appOwnerGrant.delete({ where: { id: '' } }).execute(); ``` -### `db.appProfileCapability` - -CRUD operations for AppProfileCapability records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `capabilityId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `id` | UUID | No | -| `profileId` | UUID | Yes | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all appProfileCapability records -const items = await db.appProfileCapability.findMany({ select: { capabilityId: true, createdAt: true, id: true, profileId: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.appProfileCapability.findOne({ id: '', select: { capabilityId: true, createdAt: true, id: true, profileId: true, updatedAt: true } }).execute(); - -// Create -const created = await db.appProfileCapability.create({ data: { capabilityId: '', profileId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appProfileCapability.update({ where: { id: '' }, data: { capabilityId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appProfileCapability.delete({ where: { id: '' } }).execute(); -``` - -### `db.appProfile` - -CRUD operations for AppProfile records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `capabilities` | BitString | Yes | -| `createdAt` | Datetime | No | -| `description` | String | Yes | -| `id` | UUID | No | -| `isDefault` | Boolean | Yes | -| `isSystem` | Boolean | Yes | -| `name` | String | Yes | -| `slug` | String | Yes | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all appProfile records -const items = await db.appProfile.findMany({ select: { capabilities: true, createdAt: true, description: true, id: true, isDefault: true, isSystem: true, name: true, slug: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.appProfile.findOne({ id: '', select: { capabilities: true, createdAt: true, description: true, id: true, isDefault: true, isSystem: true, name: true, slug: true, updatedAt: true } }).execute(); - -// Create -const created = await db.appProfile.create({ data: { capabilities: '', description: '', isDefault: '', isSystem: '', name: '', slug: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appProfile.update({ where: { id: '' }, data: { capabilities: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appProfile.delete({ where: { id: '' } }).execute(); -``` - -### `db.appProfileDefinitionGrant` - -CRUD operations for AppProfileDefinitionGrant records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `capabilityId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `grantorId` | UUID | Yes | -| `id` | UUID | No | -| `isGrant` | Boolean | Yes | -| `profileId` | UUID | Yes | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all appProfileDefinitionGrant records -const items = await db.appProfileDefinitionGrant.findMany({ select: { capabilityId: true, createdAt: true, grantorId: true, id: true, isGrant: true, profileId: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.appProfileDefinitionGrant.findOne({ id: '', select: { capabilityId: true, createdAt: true, grantorId: true, id: true, isGrant: true, profileId: true, updatedAt: true } }).execute(); - -// Create -const created = await db.appProfileDefinitionGrant.create({ data: { capabilityId: '', grantorId: '', isGrant: '', profileId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appProfileDefinitionGrant.update({ where: { id: '' }, data: { capabilityId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appProfileDefinitionGrant.delete({ where: { id: '' } }).execute(); -``` - -### `db.appProfileGrant` - -CRUD operations for AppProfileGrant records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `createdAt` | Datetime | No | -| `grantorId` | UUID | Yes | -| `id` | UUID | No | -| `isGrant` | Boolean | Yes | -| `membershipId` | UUID | Yes | -| `profileId` | UUID | Yes | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all appProfileGrant records -const items = await db.appProfileGrant.findMany({ select: { createdAt: true, grantorId: true, id: true, isGrant: true, membershipId: true, profileId: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.appProfileGrant.findOne({ id: '', select: { createdAt: true, grantorId: true, id: true, isGrant: true, membershipId: true, profileId: true, updatedAt: true } }).execute(); - -// Create -const created = await db.appProfileGrant.create({ data: { grantorId: '', isGrant: '', membershipId: '', profileId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appProfileGrant.update({ where: { id: '' }, data: { grantorId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appProfileGrant.delete({ where: { id: '' } }).execute(); -``` - -### `db.appProfileTemplate` - -CRUD operations for AppProfileTemplate records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `capabilities` | BitString | Yes | -| `createdAt` | Datetime | No | -| `description` | String | Yes | -| `id` | UUID | No | -| `isDefault` | Boolean | Yes | -| `name` | String | Yes | -| `slug` | String | Yes | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all appProfileTemplate records -const items = await db.appProfileTemplate.findMany({ select: { capabilities: true, createdAt: true, description: true, id: true, isDefault: true, name: true, slug: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.appProfileTemplate.findOne({ id: '', select: { capabilities: true, createdAt: true, description: true, id: true, isDefault: true, name: true, slug: true, updatedAt: true } }).execute(); - -// Create -const created = await db.appProfileTemplate.create({ data: { capabilities: '', description: '', isDefault: '', name: '', slug: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appProfileTemplate.update({ where: { id: '' }, data: { capabilities: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appProfileTemplate.delete({ where: { id: '' } }).execute(); -``` - ### `db.membershipType` CRUD operations for MembershipType records. @@ -734,40 +448,6 @@ const updated = await db.orgAdminGrant.update({ where: { id: '' }, data: { const deleted = await db.orgAdminGrant.delete({ where: { id: '' } }).execute(); ``` -### `db.orgCapability` - -CRUD operations for OrgCapability records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `bitnum` | Int | Yes | -| `bitstr` | BitString | Yes | -| `description` | String | Yes | -| `id` | UUID | No | -| `kind` | String | Yes | -| `name` | String | Yes | - -**Operations:** - -```typescript -// List all orgCapability records -const items = await db.orgCapability.findMany({ select: { bitnum: true, bitstr: true, description: true, id: true, kind: true, name: true } }).execute(); - -// Get one by id -const item = await db.orgCapability.findOne({ id: '', select: { bitnum: true, bitstr: true, description: true, id: true, kind: true, name: true } }).execute(); - -// Create -const created = await db.orgCapability.create({ data: { bitnum: '', bitstr: '', description: '', kind: '', name: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgCapability.update({ where: { id: '' }, data: { bitnum: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgCapability.delete({ where: { id: '' } }).execute(); -``` - ### `db.orgCapabilityDefaultCapability` CRUD operations for OrgCapabilityDefaultCapability records. @@ -801,37 +481,6 @@ const updated = await db.orgCapabilityDefaultCapability.update({ where: { id: '< const deleted = await db.orgCapabilityDefaultCapability.delete({ where: { id: '' } }).execute(); ``` -### `db.orgCapabilityDefault` - -CRUD operations for OrgCapabilityDefault records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `capabilities` | BitString | Yes | -| `entityId` | UUID | Yes | -| `id` | UUID | No | - -**Operations:** - -```typescript -// List all orgCapabilityDefault records -const items = await db.orgCapabilityDefault.findMany({ select: { capabilities: true, entityId: true, id: true } }).execute(); - -// Get one by id -const item = await db.orgCapabilityDefault.findOne({ id: '', select: { capabilities: true, entityId: true, id: true } }).execute(); - -// Create -const created = await db.orgCapabilityDefault.create({ data: { capabilities: '', entityId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgCapabilityDefault.update({ where: { id: '' }, data: { capabilities: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgCapabilityDefault.delete({ where: { id: '' } }).execute(); -``` - ### `db.orgCapabilityDefaultGrant` CRUD operations for OrgCapabilityDefaultGrant records. @@ -1200,6 +849,7 @@ CRUD operations for OrgMembership records. | `capabilities` | BitString | Yes | | `createdAt` | Datetime | No | | `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | | `entityId` | UUID | Yes | | `granted` | BitString | Yes | | `id` | UUID | No | @@ -1214,18 +864,19 @@ CRUD operations for OrgMembership records. | `profileId` | UUID | Yes | | `updatedAt` | Datetime | No | | `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | **Operations:** ```typescript // List all orgMembership records -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(); +const items = await db.orgMembership.findMany({ select: { actorId: true, capabilities: true, createdAt: true, createdBy: true, createdByPrincipal: 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, updatedByPrincipal: true } }).execute(); // Get one by id -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(); +const item = await db.orgMembership.findOne({ id: '', select: { actorId: true, capabilities: true, createdAt: true, createdBy: true, createdByPrincipal: 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, updatedByPrincipal: true } }).execute(); // Create -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(); +const created = await db.orgMembership.create({ data: { actorId: '', capabilities: '', createdBy: '', createdByPrincipal: '', entityId: '', granted: '', isActive: '', isAdmin: '', isApproved: '', isBanned: '', isDisabled: '', isExternal: '', isOwner: '', isReadOnly: '', profileId: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update const updated = await db.orgMembership.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); @@ -1244,23 +895,25 @@ CRUD operations for OrgMembershipDefault records. |-------|------|----------| | `createdAt` | Datetime | No | | `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | | `entityId` | UUID | Yes | | `id` | UUID | No | | `isApproved` | Boolean | Yes | | `updatedAt` | Datetime | No | | `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | **Operations:** ```typescript // List all orgMembershipDefault records -const items = await db.orgMembershipDefault.findMany({ select: { createdAt: true, createdBy: true, entityId: true, id: true, isApproved: true, updatedAt: true, updatedBy: true } }).execute(); +const items = await db.orgMembershipDefault.findMany({ select: { createdAt: true, createdBy: true, createdByPrincipal: true, entityId: true, id: true, isApproved: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.orgMembershipDefault.findOne({ id: '', select: { createdAt: true, createdBy: true, entityId: true, id: true, isApproved: true, updatedAt: true, updatedBy: true } }).execute(); +const item = await db.orgMembershipDefault.findOne({ id: '', select: { createdAt: true, createdBy: true, createdByPrincipal: true, entityId: true, id: true, isApproved: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.orgMembershipDefault.create({ data: { createdBy: '', entityId: '', isApproved: '', updatedBy: '' }, select: { id: true } }).execute(); +const created = await db.orgMembershipDefault.create({ data: { createdBy: '', createdByPrincipal: '', entityId: '', isApproved: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update const updated = await db.orgMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); @@ -1269,40 +922,6 @@ const updated = await db.orgMembershipDefault.update({ where: { id: '' }, const deleted = await db.orgMembershipDefault.delete({ where: { id: '' } }).execute(); ``` -### `db.orgMembershipProfile` - -CRUD operations for OrgMembershipProfile records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `actorId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `id` | UUID | No | -| `membershipId` | UUID | Yes | -| `profileId` | UUID | Yes | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all orgMembershipProfile records -const items = await db.orgMembershipProfile.findMany({ select: { actorId: true, createdAt: true, id: true, membershipId: true, profileId: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.orgMembershipProfile.findOne({ id: '', select: { actorId: true, createdAt: true, id: true, membershipId: true, profileId: true, updatedAt: true } }).execute(); - -// Create -const created = await db.orgMembershipProfile.create({ data: { actorId: '', membershipId: '', profileId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgMembershipProfile.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgMembershipProfile.delete({ where: { id: '' } }).execute(); -``` - ### `db.orgMembershipSetting` CRUD operations for OrgMembershipSetting records. @@ -1312,11 +931,13 @@ CRUD operations for OrgMembershipSetting records. | Field | Type | Editable | |-------|------|----------| | `allowExternalMembers` | Boolean | Yes | +| `allowPrincipalOwnedApiKeys` | Boolean | Yes | | `createChildCascadeAdmins` | Boolean | Yes | | `createChildCascadeMembers` | Boolean | Yes | | `createChildCascadeOwners` | Boolean | Yes | | `createdAt` | Datetime | No | | `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | | `deleteMemberCascadeChildren` | Boolean | Yes | | `entityId` | UUID | Yes | | `id` | UUID | No | @@ -1325,18 +946,19 @@ CRUD operations for OrgMembershipSetting records. | `populateMemberEmail` | Boolean | Yes | | `updatedAt` | Datetime | No | | `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | **Operations:** ```typescript // List all orgMembershipSetting records -const items = await db.orgMembershipSetting.findMany({ select: { allowExternalMembers: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, createChildCascadeOwners: true, createdAt: true, createdBy: true, deleteMemberCascadeChildren: true, entityId: true, id: true, inviteProfileAssignmentMode: true, limitAllocationMode: true, populateMemberEmail: true, updatedAt: true, updatedBy: true } }).execute(); +const items = await db.orgMembershipSetting.findMany({ select: { allowExternalMembers: true, allowPrincipalOwnedApiKeys: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, createChildCascadeOwners: true, createdAt: true, createdBy: true, createdByPrincipal: true, deleteMemberCascadeChildren: true, entityId: true, id: true, inviteProfileAssignmentMode: true, limitAllocationMode: true, populateMemberEmail: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.orgMembershipSetting.findOne({ id: '', select: { allowExternalMembers: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, createChildCascadeOwners: true, createdAt: true, createdBy: true, deleteMemberCascadeChildren: true, entityId: true, id: true, inviteProfileAssignmentMode: true, limitAllocationMode: true, populateMemberEmail: true, updatedAt: true, updatedBy: true } }).execute(); +const item = await db.orgMembershipSetting.findOne({ id: '', select: { allowExternalMembers: true, allowPrincipalOwnedApiKeys: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, createChildCascadeOwners: true, createdAt: true, createdBy: true, createdByPrincipal: true, deleteMemberCascadeChildren: true, entityId: true, id: true, inviteProfileAssignmentMode: true, limitAllocationMode: true, populateMemberEmail: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.orgMembershipSetting.create({ data: { allowExternalMembers: '', createChildCascadeAdmins: '', createChildCascadeMembers: '', createChildCascadeOwners: '', createdBy: '', deleteMemberCascadeChildren: '', entityId: '', inviteProfileAssignmentMode: '', limitAllocationMode: '', populateMemberEmail: '', updatedBy: '' }, select: { id: true } }).execute(); +const created = await db.orgMembershipSetting.create({ data: { allowExternalMembers: '', allowPrincipalOwnedApiKeys: '', createChildCascadeAdmins: '', createChildCascadeMembers: '', createChildCascadeOwners: '', createdBy: '', createdByPrincipal: '', deleteMemberCascadeChildren: '', entityId: '', inviteProfileAssignmentMode: '', limitAllocationMode: '', populateMemberEmail: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update const updated = await db.orgMembershipSetting.update({ where: { id: '' }, data: { allowExternalMembers: '' }, select: { id: true } }).execute(); @@ -1380,310 +1002,22 @@ const updated = await db.orgOwnerGrant.update({ where: { id: '' }, data: { const deleted = await db.orgOwnerGrant.delete({ where: { id: '' } }).execute(); ``` -### `db.orgProfileCapability` - -CRUD operations for OrgProfileCapability records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `capabilityId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `id` | UUID | No | -| `profileId` | UUID | Yes | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all orgProfileCapability records -const items = await db.orgProfileCapability.findMany({ select: { capabilityId: true, createdAt: true, id: true, profileId: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.orgProfileCapability.findOne({ id: '', select: { capabilityId: true, createdAt: true, id: true, profileId: true, updatedAt: true } }).execute(); - -// Create -const created = await db.orgProfileCapability.create({ data: { capabilityId: '', profileId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgProfileCapability.update({ where: { id: '' }, data: { capabilityId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgProfileCapability.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgProfile` - -CRUD operations for OrgProfile records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `capabilities` | BitString | Yes | -| `createdAt` | Datetime | No | -| `description` | String | Yes | -| `entityId` | UUID | Yes | -| `id` | UUID | No | -| `isDefault` | Boolean | Yes | -| `isSystem` | Boolean | Yes | -| `name` | String | Yes | -| `slug` | String | Yes | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all orgProfile records -const items = await db.orgProfile.findMany({ select: { capabilities: true, createdAt: true, description: true, entityId: true, id: true, isDefault: true, isSystem: true, name: true, slug: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.orgProfile.findOne({ id: '', select: { capabilities: true, createdAt: true, description: true, entityId: true, id: true, isDefault: true, isSystem: true, name: true, slug: true, updatedAt: true } }).execute(); - -// Create -const created = await db.orgProfile.create({ data: { capabilities: '', description: '', entityId: '', isDefault: '', isSystem: '', name: '', slug: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgProfile.update({ where: { id: '' }, data: { capabilities: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgProfile.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgProfileDefinitionGrant` - -CRUD operations for OrgProfileDefinitionGrant records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `capabilityId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `grantorId` | UUID | Yes | -| `id` | UUID | No | -| `isGrant` | Boolean | Yes | -| `profileId` | UUID | Yes | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all orgProfileDefinitionGrant records -const items = await db.orgProfileDefinitionGrant.findMany({ select: { capabilityId: true, createdAt: true, grantorId: true, id: true, isGrant: true, profileId: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.orgProfileDefinitionGrant.findOne({ id: '', select: { capabilityId: true, createdAt: true, grantorId: true, id: true, isGrant: true, profileId: true, updatedAt: true } }).execute(); - -// Create -const created = await db.orgProfileDefinitionGrant.create({ data: { capabilityId: '', grantorId: '', isGrant: '', profileId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgProfileDefinitionGrant.update({ where: { id: '' }, data: { capabilityId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgProfileDefinitionGrant.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgProfileGrant` - -CRUD operations for OrgProfileGrant records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `createdAt` | Datetime | No | -| `entityId` | UUID | Yes | -| `grantorId` | UUID | Yes | -| `id` | UUID | No | -| `isGrant` | Boolean | Yes | -| `membershipId` | UUID | Yes | -| `profileId` | UUID | Yes | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all orgProfileGrant records -const items = await db.orgProfileGrant.findMany({ select: { createdAt: true, entityId: true, grantorId: true, id: true, isGrant: true, membershipId: true, profileId: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.orgProfileGrant.findOne({ id: '', select: { createdAt: true, entityId: true, grantorId: true, id: true, isGrant: true, membershipId: true, profileId: true, updatedAt: true } }).execute(); - -// Create -const created = await db.orgProfileGrant.create({ data: { entityId: '', grantorId: '', isGrant: '', membershipId: '', profileId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgProfileGrant.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgProfileGrant.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgProfileTemplate` - -CRUD operations for OrgProfileTemplate records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `capabilities` | BitString | Yes | -| `createdAt` | Datetime | No | -| `description` | String | Yes | -| `id` | UUID | No | -| `isDefault` | Boolean | Yes | -| `name` | String | Yes | -| `slug` | String | Yes | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all orgProfileTemplate records -const items = await db.orgProfileTemplate.findMany({ select: { capabilities: true, createdAt: true, description: true, id: true, isDefault: true, name: true, slug: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.orgProfileTemplate.findOne({ id: '', select: { capabilities: true, createdAt: true, description: true, id: true, isDefault: true, name: true, slug: true, updatedAt: true } }).execute(); - -// Create -const created = await db.orgProfileTemplate.create({ data: { capabilities: '', description: '', isDefault: '', name: '', slug: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgProfileTemplate.update({ where: { id: '' }, data: { capabilities: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgProfileTemplate.delete({ where: { id: '' } }).execute(); -``` - ## Custom Operations -### `db.query.appCapabilitiesGetByMask` - -Reads and enables pagination through a set of `AppCapability`. - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `after` | Cursor | - | `first` | Int | - | `mask` | BitString | - | `offset` | Int | - -```typescript -const result = await db.query.appCapabilitiesGetByMask({ after: '', first: '', mask: '', offset: '' }).execute(); -``` - -### `db.query.appCapabilitiesGetMask` - -appCapabilitiesGetMask - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `ids` | [UUID] | - -```typescript -const result = await db.query.appCapabilitiesGetMask({ ids: '' }).execute(); -``` - -### `db.query.appCapabilitiesGetMaskByNames` - -appCapabilitiesGetMaskByNames - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `names` | [String] | - -```typescript -const result = await db.query.appCapabilitiesGetMaskByNames({ names: '' }).execute(); -``` - -### `db.query.appCapabilitiesGetPaddedMask` - -appCapabilitiesGetPaddedMask - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `mask` | BitString | - -```typescript -const result = await db.query.appCapabilitiesGetPaddedMask({ mask: '' }).execute(); -``` - -### `db.query.orgCapabilitiesGetByMask` - -Reads and enables pagination through a set of `OrgCapability`. - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `after` | Cursor | - | `first` | Int | - | `mask` | BitString | - | `offset` | Int | - -```typescript -const result = await db.query.orgCapabilitiesGetByMask({ after: '', first: '', mask: '', offset: '' }).execute(); -``` - -### `db.query.orgCapabilitiesGetMask` - -orgCapabilitiesGetMask - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `ids` | [UUID] | - -```typescript -const result = await db.query.orgCapabilitiesGetMask({ ids: '' }).execute(); -``` - -### `db.query.orgCapabilitiesGetMaskByNames` - -orgCapabilitiesGetMaskByNames - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `names` | [String] | - -```typescript -const result = await db.query.orgCapabilitiesGetMaskByNames({ names: '' }).execute(); -``` - -### `db.query.orgCapabilitiesGetPaddedMask` +### `db.query.getOrganizationId` -orgCapabilitiesGetPaddedMask +getOrganizationId - **Type:** query - **Arguments:** | Argument | Type | |----------|------| - | `mask` | BitString | + | `entityId` | UUID | + | `entityType` | String | ```typescript -const result = await db.query.orgCapabilitiesGetPaddedMask({ mask: '' }).execute(); +const result = await db.query.getOrganizationId({ entityId: '', entityType: '' }).execute(); ``` ### `db.query.orgIsManagerOf` @@ -1706,10 +1040,11 @@ const result = await db.query.orgIsManagerOf({ managerId: '', maxDepth: '< ### `db.mutation.provisionBucket` -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. +Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. - **Type:** mutation - **Arguments:** diff --git a/sdk/constructive-react/src/admin/orm/index.ts b/sdk/constructive-react/src/admin/orm/index.ts index 6da89c57c7..91f3ff0c09 100644 --- a/sdk/constructive-react/src/admin/orm/index.ts +++ b/sdk/constructive-react/src/admin/orm/index.ts @@ -6,27 +6,17 @@ import { OrmClient } from './client'; import type { OrmClientConfig } from './client'; import { AppAdminGrantModel } from './models/appAdminGrant'; -import { AppCapabilityModel } from './models/appCapability'; import { AppCapabilityDefaultCapabilityModel } from './models/appCapabilityDefaultCapability'; -import { AppCapabilityDefaultModel } from './models/appCapabilityDefault'; 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 { AppMembershipProfileModel } from './models/appMembershipProfile'; import { AppOwnerGrantModel } from './models/appOwnerGrant'; -import { AppProfileCapabilityModel } from './models/appProfileCapability'; -import { AppProfileModel } from './models/appProfile'; -import { AppProfileDefinitionGrantModel } from './models/appProfileDefinitionGrant'; -import { AppProfileGrantModel } from './models/appProfileGrant'; -import { AppProfileTemplateModel } from './models/appProfileTemplate'; import { MembershipTypeModel } from './models/membershipType'; import { OrgAdminGrantModel } from './models/orgAdminGrant'; -import { OrgCapabilityModel } from './models/orgCapability'; import { OrgCapabilityDefaultCapabilityModel } from './models/orgCapabilityDefaultCapability'; -import { OrgCapabilityDefaultModel } from './models/orgCapabilityDefault'; import { OrgCapabilityDefaultGrantModel } from './models/orgCapabilityDefaultGrant'; import { OrgChartEdgeModel } from './models/orgChartEdge'; import { OrgChartEdgeGrantModel } from './models/orgChartEdgeGrant'; @@ -39,14 +29,8 @@ import { OrgMemberModel } from './models/orgMember'; import { OrgMemberProfileModel } from './models/orgMemberProfile'; import { OrgMembershipModel } from './models/orgMembership'; import { OrgMembershipDefaultModel } from './models/orgMembershipDefault'; -import { OrgMembershipProfileModel } from './models/orgMembershipProfile'; import { OrgMembershipSettingModel } from './models/orgMembershipSetting'; import { OrgOwnerGrantModel } from './models/orgOwnerGrant'; -import { OrgProfileCapabilityModel } from './models/orgProfileCapability'; -import { OrgProfileModel } from './models/orgProfile'; -import { OrgProfileDefinitionGrantModel } from './models/orgProfileDefinitionGrant'; -import { OrgProfileGrantModel } from './models/orgProfileGrant'; -import { OrgProfileTemplateModel } from './models/orgProfileTemplate'; import { createQueryOperations } from './query'; import { createMutationOperations } from './mutation'; export type { OrmClientConfig, QueryResult, GraphQLError, GraphQLAdapter } from './client'; @@ -83,27 +67,17 @@ export function createClient(config: OrmClientConfig) { const client = new OrmClient(config); return { appAdminGrant: new AppAdminGrantModel(client), - appCapability: new AppCapabilityModel(client), appCapabilityDefaultCapability: new AppCapabilityDefaultCapabilityModel(client), - appCapabilityDefault: new AppCapabilityDefaultModel(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), - appMembershipProfile: new AppMembershipProfileModel(client), appOwnerGrant: new AppOwnerGrantModel(client), - appProfileCapability: new AppProfileCapabilityModel(client), - appProfile: new AppProfileModel(client), - appProfileDefinitionGrant: new AppProfileDefinitionGrantModel(client), - appProfileGrant: new AppProfileGrantModel(client), - appProfileTemplate: new AppProfileTemplateModel(client), membershipType: new MembershipTypeModel(client), orgAdminGrant: new OrgAdminGrantModel(client), - orgCapability: new OrgCapabilityModel(client), orgCapabilityDefaultCapability: new OrgCapabilityDefaultCapabilityModel(client), - orgCapabilityDefault: new OrgCapabilityDefaultModel(client), orgCapabilityDefaultGrant: new OrgCapabilityDefaultGrantModel(client), orgChartEdge: new OrgChartEdgeModel(client), orgChartEdgeGrant: new OrgChartEdgeGrantModel(client), @@ -116,14 +90,8 @@ export function createClient(config: OrmClientConfig) { orgMemberProfile: new OrgMemberProfileModel(client), orgMembership: new OrgMembershipModel(client), orgMembershipDefault: new OrgMembershipDefaultModel(client), - orgMembershipProfile: new OrgMembershipProfileModel(client), orgMembershipSetting: new OrgMembershipSettingModel(client), orgOwnerGrant: new OrgOwnerGrantModel(client), - orgProfileCapability: new OrgProfileCapabilityModel(client), - orgProfile: new OrgProfileModel(client), - orgProfileDefinitionGrant: new OrgProfileDefinitionGrantModel(client), - orgProfileGrant: new OrgProfileGrantModel(client), - orgProfileTemplate: new OrgProfileTemplateModel(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 cfe70fd2f2..a05796955d 100644 --- a/sdk/constructive-react/src/admin/orm/input-types.ts +++ b/sdk/constructive-react/src/admin/orm/input-types.ts @@ -245,20 +245,6 @@ export interface AppAdminGrant { isGrant?: boolean | null; updatedAt?: string | null; } -/** Defines available capabilities as named bits within a bitmask, used by the RBAC system for access control */ -export interface AppCapability { - /** Position of this capability in the bitmask (1-indexed), must be unique per capability set */ - bitnum?: number | null; - /** Pre-computed bitmask with only this capability bit set, used for bitwise OR/AND operations */ - bitstr?: string | null; - /** Human-readable description of what this capability allows */ - description?: string | null; - id: string; - /** Kind of catalog entry: capability (capability) or level (achievement level) */ - kind?: string | null; - /** Human-readable capability name (e.g. read, write, manage) */ - name?: 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 */ @@ -267,12 +253,6 @@ export interface AppCapabilityDefaultCapability { id: string; updatedAt?: string | null; } -/** Stores the default capability bitmask assigned to new members upon joining */ -export interface AppCapabilityDefault { - /** Default capability bitmask applied to new members */ - capabilities?: string | null; - id: string; -} /** Audit log of capability additions and removals from the defaults bitmask */ export interface AppCapabilityDefaultGrant { /** References the capability being added to or removed from defaults */ @@ -347,6 +327,7 @@ export interface AppMembership { capabilities?: string | null; createdAt?: string | null; createdBy?: string | null; + createdByPrincipal?: string | null; /** Bitmask of capabilities directly granted to this member (not from profiles) */ granted?: string | null; id: string; @@ -367,11 +348,13 @@ export interface AppMembership { profileId?: string | null; updatedAt?: string | null; updatedBy?: string | null; + updatedByPrincipal?: string | null; } /** Default membership settings per entity, controlling initial approval and verification state for new members */ export interface AppMembershipDefault { createdAt?: string | null; createdBy?: string | null; + createdByPrincipal?: string | null; id: string; /** Whether new members are automatically approved upon joining */ isApproved?: boolean | null; @@ -379,18 +362,7 @@ export interface AppMembershipDefault { isVerified?: boolean | null; updatedAt?: string | null; updatedBy?: string | null; -} -/** Every profile a membership holds; memberships.profile_id points at one of them */ -export interface AppMembershipProfile { - /** References the user holding the profile, denormalised from the membership */ - actorId?: string | null; - createdAt?: string | null; - id: string; - /** References the membership holding the profile */ - membershipId?: string | null; - /** References the held profile */ - profileId?: string | null; - updatedAt?: string | null; + updatedByPrincipal?: string | null; } /** Records of ownership transfers and grants between members */ export interface AppOwnerGrant { @@ -403,76 +375,6 @@ export interface AppOwnerGrant { isGrant?: boolean | null; updatedAt?: string | null; } -/** Join table linking profiles to individual capabilities they include */ -export interface AppProfileCapability { - /** References the capability included in this profile */ - capabilityId?: string | null; - createdAt?: string | null; - id: string; - /** References the profile this capability belongs to */ - profileId?: string | null; - updatedAt?: string | null; -} -/** Named capability bundles (roles) that group multiple capabilities into reusable profiles */ -export interface AppProfile { - /** Pre-computed capability bitmask aggregating all capabilities in this profile */ - capabilities?: string | null; - createdAt?: string | null; - /** Human-readable description of this profile and its intended use */ - description?: string | null; - id: string; - /** The default profile is automatically assigned to new members when they join */ - isDefault?: boolean | null; - /** System profiles are built-in and cannot be deleted or renamed by users */ - isSystem?: boolean | null; - /** Display name for this profile (e.g. Admin, Editor, Viewer) */ - name?: string | null; - /** URL-safe identifier for this profile, used in API references */ - slug?: string | null; - updatedAt?: string | null; -} -/** Audit log of capability additions and removals from profile definitions */ -export interface AppProfileDefinitionGrant { - /** References the capability that was added to or removed from the profile; NULL if capability was deleted */ - capabilityId?: string | null; - createdAt?: string | null; - grantorId?: string | null; - id: string; - /** True to add the capability to the profile, false to remove it */ - isGrant?: boolean | null; - /** References the profile whose definition was modified; NULL if profile was deleted */ - profileId?: string | null; - updatedAt?: string | null; -} -/** Audit log of profile assignments and revocations for members */ -export interface AppProfileGrant { - createdAt?: string | null; - grantorId?: string | null; - id: string; - /** True to assign the profile, false to revoke it */ - isGrant?: boolean | null; - /** References the membership that received or lost this profile; NULL if membership was deleted */ - membershipId?: string | null; - /** References the profile being assigned; NULL indicates the profile was removed */ - profileId?: string | null; - updatedAt?: string | null; -} -/** Template profiles that are automatically seeded into new entities when created */ -export interface AppProfileTemplate { - /** Pre-computed capability bitmask for the seeded profile */ - capabilities?: string | null; - createdAt?: string | null; - /** Human-readable description of this template profile */ - description?: string | null; - id: string; - /** Whether the seeded profile should be the default for new members */ - isDefault?: boolean | null; - /** Display name for the template profile (e.g. Admin, Editor, Viewer) */ - name?: string | null; - /** URL-safe identifier for the template profile */ - slug?: 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 */ @@ -501,20 +403,6 @@ export interface OrgAdminGrant { isGrant?: boolean | null; updatedAt?: string | null; } -/** Defines available capabilities as named bits within a bitmask, used by the RBAC system for access control */ -export interface OrgCapability { - /** Position of this capability in the bitmask (1-indexed), must be unique per capability set */ - bitnum?: number | null; - /** Pre-computed bitmask with only this capability bit set, used for bitwise OR/AND operations */ - bitstr?: string | null; - /** Human-readable description of what this capability allows */ - description?: string | null; - id: string; - /** Kind of catalog entry: capability (capability) or level (achievement level) */ - kind?: string | null; - /** Human-readable capability name (e.g. read, write, manage) */ - name?: 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 */ @@ -525,14 +413,6 @@ export interface OrgCapabilityDefaultCapability { id: string; updatedAt?: string | null; } -/** Stores the default capability bitmask assigned to new members upon joining */ -export interface OrgCapabilityDefault { - /** Default capability bitmask applied to new members */ - capabilities?: string | null; - /** References the entity these default capabilities apply to */ - entityId?: string | null; - id: string; -} /** Audit log of capability additions and removals from the defaults bitmask */ export interface OrgCapabilityDefaultGrant { /** References the capability being added to or removed from defaults */ @@ -693,6 +573,7 @@ export interface OrgMembership { capabilities?: string | null; createdAt?: string | null; createdBy?: string | null; + createdByPrincipal?: string | null; /** References the entity (org or group) this membership belongs to */ entityId?: string | null; /** Bitmask of capabilities directly granted to this member (not from profiles) */ @@ -717,11 +598,13 @@ export interface OrgMembership { profileId?: string | null; updatedAt?: string | null; updatedBy?: string | null; + updatedByPrincipal?: string | null; } /** Default membership settings per entity, controlling initial approval and verification state for new members */ export interface OrgMembershipDefault { createdAt?: string | null; createdBy?: string | null; + createdByPrincipal?: string | null; /** References the entity these membership defaults apply to */ entityId?: string | null; id: string; @@ -729,23 +612,14 @@ export interface OrgMembershipDefault { isApproved?: boolean | null; updatedAt?: string | null; updatedBy?: string | null; -} -/** Every profile a membership holds; memberships.profile_id points at one of them */ -export interface OrgMembershipProfile { - /** References the user holding the profile, denormalised from the membership */ - actorId?: string | null; - createdAt?: string | null; - id: string; - /** References the membership holding the profile */ - membershipId?: string | null; - /** References the held profile */ - profileId?: string | null; - updatedAt?: string | null; + updatedByPrincipal?: string | null; } /** Per-entity settings for the memberships module */ export interface OrgMembershipSetting { /** Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) */ allowExternalMembers?: boolean | null; + /** Whether principals (agents, API-key identities) may mint API keys and child sessions for this org; requires auth_settings.allow_principal_delegation too */ + allowPrincipalOwnedApiKeys?: boolean | null; /** When a child entity is created, whether to auto-add existing org-level admins as child-entity admins */ createChildCascadeAdmins?: boolean | null; /** When a child entity is created, whether to auto-add existing org-level members (non-admin, non-owner) as child-entity members */ @@ -754,6 +628,7 @@ export interface OrgMembershipSetting { createChildCascadeOwners?: boolean | null; createdAt?: string | null; createdBy?: string | null; + createdByPrincipal?: string | null; /** When a member is deleted, whether to cascade-remove their descendant-entity memberships */ deleteMemberCascadeChildren?: boolean | null; /** References the entity these settings apply to */ @@ -767,6 +642,7 @@ export interface OrgMembershipSetting { populateMemberEmail?: boolean | null; updatedAt?: string | null; updatedBy?: string | null; + updatedByPrincipal?: string | null; } /** Records of ownership transfers and grants between members */ export interface OrgOwnerGrant { @@ -781,80 +657,6 @@ export interface OrgOwnerGrant { isGrant?: boolean | null; updatedAt?: string | null; } -/** Join table linking profiles to individual capabilities they include */ -export interface OrgProfileCapability { - /** References the capability included in this profile */ - capabilityId?: string | null; - createdAt?: string | null; - id: string; - /** References the profile this capability belongs to */ - profileId?: string | null; - updatedAt?: string | null; -} -/** Named capability bundles (roles) that group multiple capabilities into reusable profiles */ -export interface OrgProfile { - /** Pre-computed capability bitmask aggregating all capabilities in this profile */ - capabilities?: string | null; - createdAt?: string | null; - /** Human-readable description of this profile and its intended use */ - description?: string | null; - /** Scopes this profile to a specific entity; NULL means it is a global profile */ - entityId?: string | null; - id: string; - /** The default profile is automatically assigned to new members when they join */ - isDefault?: boolean | null; - /** System profiles are built-in and cannot be deleted or renamed by users */ - isSystem?: boolean | null; - /** Display name for this profile (e.g. Admin, Editor, Viewer) */ - name?: string | null; - /** URL-safe identifier for this profile, used in API references */ - slug?: string | null; - updatedAt?: string | null; -} -/** Audit log of capability additions and removals from profile definitions */ -export interface OrgProfileDefinitionGrant { - /** References the capability that was added to or removed from the profile; NULL if capability was deleted */ - capabilityId?: string | null; - createdAt?: string | null; - grantorId?: string | null; - id: string; - /** True to add the capability to the profile, false to remove it */ - isGrant?: boolean | null; - /** References the profile whose definition was modified; NULL if profile was deleted */ - profileId?: string | null; - updatedAt?: string | null; -} -/** Audit log of profile assignments and revocations for members */ -export interface OrgProfileGrant { - createdAt?: string | null; - /** The entity (org or group) scope for this profile grant */ - entityId?: string | null; - grantorId?: string | null; - id: string; - /** True to assign the profile, false to revoke it */ - isGrant?: boolean | null; - /** References the membership that received or lost this profile; NULL if membership was deleted */ - membershipId?: string | null; - /** References the profile being assigned; NULL indicates the profile was removed */ - profileId?: string | null; - updatedAt?: string | null; -} -/** Template profiles that are automatically seeded into new entities when created */ -export interface OrgProfileTemplate { - /** Pre-computed capability bitmask for the seeded profile */ - capabilities?: string | null; - createdAt?: string | null; - /** Human-readable description of this template profile */ - description?: string | null; - id: string; - /** Whether the seeded profile should be the default for new members */ - isDefault?: boolean | null; - /** Display name for the template profile (e.g. Admin, Editor, Viewer) */ - name?: string | null; - /** URL-safe identifier for the template profile */ - slug?: string | null; - updatedAt?: string | null; -} // ============ Relation Helper Types ============ export interface ConnectionResult { nodes: T[]; @@ -869,125 +671,39 @@ export interface PageInfo { } // ============ Entity Relation Types ============ export interface AppAdminGrantRelations {} -export interface AppCapabilityRelations { - appCapabilityDefaultCapabilityByCapabilityId?: AppCapabilityDefaultCapability | null; - appCapabilityDefaultGrantsByCapabilityId?: ConnectionResult; - appProfileCapabilitiesByCapabilityId?: ConnectionResult; - appProfileDefinitionGrantsByCapabilityId?: ConnectionResult; -} -export interface AppCapabilityDefaultCapabilityRelations { - capability?: AppCapability | null; -} -export interface AppCapabilityDefaultRelations {} -export interface AppCapabilityDefaultGrantRelations { - capability?: AppCapability | null; -} +export interface AppCapabilityDefaultCapabilityRelations {} +export interface AppCapabilityDefaultGrantRelations {} export interface AppClaimedInviteRelations {} export interface AppGrantRelations {} -export interface AppInviteRelations { - profile?: AppProfile | null; -} -export interface AppMembershipRelations { - profile?: AppProfile | null; - appMembershipProfilesByMembershipId?: ConnectionResult; - appProfileGrantsByMembershipId?: ConnectionResult; -} +export interface AppInviteRelations {} +export interface AppMembershipRelations {} export interface AppMembershipDefaultRelations {} -export interface AppMembershipProfileRelations { - membership?: AppMembership | null; - profile?: AppProfile | null; -} export interface AppOwnerGrantRelations {} -export interface AppProfileCapabilityRelations { - capability?: AppCapability | null; - profile?: AppProfile | null; -} -export interface AppProfileRelations { - appInvitesByProfileId?: ConnectionResult; - appMembershipProfilesByProfileId?: ConnectionResult; - appMembershipsByProfileId?: ConnectionResult; - appProfileCapabilitiesByProfileId?: ConnectionResult; - appProfileDefinitionGrantsByProfileId?: ConnectionResult; - appProfileGrantsByProfileId?: ConnectionResult; -} -export interface AppProfileDefinitionGrantRelations { - capability?: AppCapability | null; - profile?: AppProfile | null; -} -export interface AppProfileGrantRelations { - membership?: AppMembership | null; - profile?: AppProfile | null; -} -export interface AppProfileTemplateRelations {} export interface MembershipTypeRelations {} export interface OrgAdminGrantRelations {} -export interface OrgCapabilityRelations { - orgCapabilityDefaultCapabilitiesByCapabilityId?: ConnectionResult; - orgCapabilityDefaultGrantsByCapabilityId?: ConnectionResult; - orgProfileCapabilitiesByCapabilityId?: ConnectionResult; - orgProfileDefinitionGrantsByCapabilityId?: ConnectionResult; -} -export interface OrgCapabilityDefaultCapabilityRelations { - capability?: OrgCapability | null; -} -export interface OrgCapabilityDefaultRelations {} -export interface OrgCapabilityDefaultGrantRelations { - capability?: OrgCapability | null; -} +export interface OrgCapabilityDefaultCapabilityRelations {} +export interface OrgCapabilityDefaultGrantRelations {} export interface OrgChartEdgeRelations {} export interface OrgChartEdgeGrantRelations {} export interface OrgClaimedInviteRelations {} export interface OrgGetManagersRecordRelations {} export interface OrgGetSubordinatesRecordRelations {} export interface OrgGrantRelations {} -export interface OrgInviteRelations { - profile?: OrgProfile | null; -} +export interface OrgInviteRelations {} export interface OrgMemberRelations {} export interface OrgMemberProfileRelations { membership?: OrgMembership | null; } export interface OrgMembershipRelations { orgMemberProfileByMembershipId?: OrgMemberProfile | null; - profile?: OrgProfile | null; - orgMembershipProfilesByMembershipId?: ConnectionResult; - orgProfileGrantsByMembershipId?: ConnectionResult; } export interface OrgMembershipDefaultRelations {} -export interface OrgMembershipProfileRelations { - membership?: OrgMembership | null; - profile?: OrgProfile | null; -} export interface OrgMembershipSettingRelations {} export interface OrgOwnerGrantRelations {} -export interface OrgProfileCapabilityRelations { - capability?: OrgCapability | null; - profile?: OrgProfile | null; -} -export interface OrgProfileRelations { - orgInvitesByProfileId?: ConnectionResult; - orgMembershipProfilesByProfileId?: ConnectionResult; - orgMembershipsByProfileId?: ConnectionResult; - orgProfileCapabilitiesByProfileId?: ConnectionResult; - orgProfileDefinitionGrantsByProfileId?: ConnectionResult; - orgProfileGrantsByProfileId?: ConnectionResult; -} -export interface OrgProfileDefinitionGrantRelations { - capability?: OrgCapability | null; - profile?: OrgProfile | null; -} -export interface OrgProfileGrantRelations { - membership?: OrgMembership | null; - profile?: OrgProfile | null; -} -export interface OrgProfileTemplateRelations {} // ============ Entity Types With Relations ============ export type AppAdminGrantWithRelations = AppAdminGrant & AppAdminGrantRelations; -export type AppCapabilityWithRelations = AppCapability & AppCapabilityRelations; export type AppCapabilityDefaultCapabilityWithRelations = AppCapabilityDefaultCapability & AppCapabilityDefaultCapabilityRelations; -export type AppCapabilityDefaultWithRelations = AppCapabilityDefault & - AppCapabilityDefaultRelations; export type AppCapabilityDefaultGrantWithRelations = AppCapabilityDefaultGrant & AppCapabilityDefaultGrantRelations; export type AppClaimedInviteWithRelations = AppClaimedInvite & AppClaimedInviteRelations; @@ -996,23 +712,11 @@ export type AppInviteWithRelations = AppInvite & AppInviteRelations; export type AppMembershipWithRelations = AppMembership & AppMembershipRelations; export type AppMembershipDefaultWithRelations = AppMembershipDefault & AppMembershipDefaultRelations; -export type AppMembershipProfileWithRelations = AppMembershipProfile & - AppMembershipProfileRelations; export type AppOwnerGrantWithRelations = AppOwnerGrant & AppOwnerGrantRelations; -export type AppProfileCapabilityWithRelations = AppProfileCapability & - AppProfileCapabilityRelations; -export type AppProfileWithRelations = AppProfile & AppProfileRelations; -export type AppProfileDefinitionGrantWithRelations = AppProfileDefinitionGrant & - AppProfileDefinitionGrantRelations; -export type AppProfileGrantWithRelations = AppProfileGrant & AppProfileGrantRelations; -export type AppProfileTemplateWithRelations = AppProfileTemplate & AppProfileTemplateRelations; export type MembershipTypeWithRelations = MembershipType & MembershipTypeRelations; export type OrgAdminGrantWithRelations = OrgAdminGrant & OrgAdminGrantRelations; -export type OrgCapabilityWithRelations = OrgCapability & OrgCapabilityRelations; export type OrgCapabilityDefaultCapabilityWithRelations = OrgCapabilityDefaultCapability & OrgCapabilityDefaultCapabilityRelations; -export type OrgCapabilityDefaultWithRelations = OrgCapabilityDefault & - OrgCapabilityDefaultRelations; export type OrgCapabilityDefaultGrantWithRelations = OrgCapabilityDefaultGrant & OrgCapabilityDefaultGrantRelations; export type OrgChartEdgeWithRelations = OrgChartEdge & OrgChartEdgeRelations; @@ -1029,18 +733,9 @@ export type OrgMemberProfileWithRelations = OrgMemberProfile & OrgMemberProfileR export type OrgMembershipWithRelations = OrgMembership & OrgMembershipRelations; export type OrgMembershipDefaultWithRelations = OrgMembershipDefault & OrgMembershipDefaultRelations; -export type OrgMembershipProfileWithRelations = OrgMembershipProfile & - OrgMembershipProfileRelations; export type OrgMembershipSettingWithRelations = OrgMembershipSetting & OrgMembershipSettingRelations; export type OrgOwnerGrantWithRelations = OrgOwnerGrant & OrgOwnerGrantRelations; -export type OrgProfileCapabilityWithRelations = OrgProfileCapability & - OrgProfileCapabilityRelations; -export type OrgProfileWithRelations = OrgProfile & OrgProfileRelations; -export type OrgProfileDefinitionGrantWithRelations = OrgProfileDefinitionGrant & - OrgProfileDefinitionGrantRelations; -export type OrgProfileGrantWithRelations = OrgProfileGrant & OrgProfileGrantRelations; -export type OrgProfileTemplateWithRelations = OrgProfileTemplate & OrgProfileTemplateRelations; // ============ Entity Select Types ============ export type AppAdminGrantSelect = { actorId?: boolean; @@ -1050,47 +745,11 @@ export type AppAdminGrantSelect = { isGrant?: boolean; updatedAt?: boolean; }; -export type AppCapabilitySelect = { - bitnum?: boolean; - bitstr?: boolean; - description?: boolean; - id?: boolean; - kind?: boolean; - name?: boolean; - appCapabilityDefaultCapabilityByCapabilityId?: { - select: AppCapabilityDefaultCapabilitySelect; - }; - appCapabilityDefaultGrantsByCapabilityId?: { - select: AppCapabilityDefaultGrantSelect; - first?: number; - filter?: AppCapabilityDefaultGrantFilter; - orderBy?: AppCapabilityDefaultGrantOrderBy[]; - }; - appProfileCapabilitiesByCapabilityId?: { - select: AppProfileCapabilitySelect; - first?: number; - filter?: AppProfileCapabilityFilter; - orderBy?: AppProfileCapabilityOrderBy[]; - }; - appProfileDefinitionGrantsByCapabilityId?: { - select: AppProfileDefinitionGrantSelect; - first?: number; - filter?: AppProfileDefinitionGrantFilter; - orderBy?: AppProfileDefinitionGrantOrderBy[]; - }; -}; export type AppCapabilityDefaultCapabilitySelect = { capabilityId?: boolean; createdAt?: boolean; id?: boolean; updatedAt?: boolean; - capability?: { - select: AppCapabilitySelect; - }; -}; -export type AppCapabilityDefaultSelect = { - capabilities?: boolean; - id?: boolean; }; export type AppCapabilityDefaultGrantSelect = { capabilityId?: boolean; @@ -1099,9 +758,6 @@ export type AppCapabilityDefaultGrantSelect = { id?: boolean; isGrant?: boolean; updatedAt?: boolean; - capability?: { - select: AppCapabilitySelect; - }; }; export type AppClaimedInviteSelect = { createdAt?: boolean; @@ -1136,15 +792,13 @@ export type AppInviteSelect = { profileId?: boolean; senderId?: boolean; updatedAt?: boolean; - profile?: { - select: AppProfileSelect; - }; }; export type AppMembershipSelect = { actorId?: boolean; capabilities?: boolean; createdAt?: boolean; createdBy?: boolean; + createdByPrincipal?: boolean; granted?: boolean; id?: boolean; isActive?: boolean; @@ -1157,44 +811,18 @@ export type AppMembershipSelect = { profileId?: boolean; updatedAt?: boolean; updatedBy?: boolean; - profile?: { - select: AppProfileSelect; - }; - appMembershipProfilesByMembershipId?: { - select: AppMembershipProfileSelect; - first?: number; - filter?: AppMembershipProfileFilter; - orderBy?: AppMembershipProfileOrderBy[]; - }; - appProfileGrantsByMembershipId?: { - select: AppProfileGrantSelect; - first?: number; - filter?: AppProfileGrantFilter; - orderBy?: AppProfileGrantOrderBy[]; - }; + updatedByPrincipal?: boolean; }; export type AppMembershipDefaultSelect = { createdAt?: boolean; createdBy?: boolean; + createdByPrincipal?: boolean; id?: boolean; isApproved?: boolean; isVerified?: boolean; updatedAt?: boolean; updatedBy?: boolean; -}; -export type AppMembershipProfileSelect = { - actorId?: boolean; - createdAt?: boolean; - id?: boolean; - membershipId?: boolean; - profileId?: boolean; - updatedAt?: boolean; - membership?: { - select: AppMembershipSelect; - }; - profile?: { - select: AppProfileSelect; - }; + updatedByPrincipal?: boolean; }; export type AppOwnerGrantSelect = { actorId?: boolean; @@ -1204,106 +832,6 @@ export type AppOwnerGrantSelect = { isGrant?: boolean; updatedAt?: boolean; }; -export type AppProfileCapabilitySelect = { - capabilityId?: boolean; - createdAt?: boolean; - id?: boolean; - profileId?: boolean; - updatedAt?: boolean; - capability?: { - select: AppCapabilitySelect; - }; - profile?: { - select: AppProfileSelect; - }; -}; -export type AppProfileSelect = { - capabilities?: boolean; - createdAt?: boolean; - description?: boolean; - id?: boolean; - isDefault?: boolean; - isSystem?: boolean; - name?: boolean; - slug?: boolean; - updatedAt?: boolean; - appInvitesByProfileId?: { - select: AppInviteSelect; - first?: number; - filter?: AppInviteFilter; - orderBy?: AppInviteOrderBy[]; - }; - appMembershipProfilesByProfileId?: { - select: AppMembershipProfileSelect; - first?: number; - filter?: AppMembershipProfileFilter; - orderBy?: AppMembershipProfileOrderBy[]; - }; - appMembershipsByProfileId?: { - select: AppMembershipSelect; - first?: number; - filter?: AppMembershipFilter; - orderBy?: AppMembershipOrderBy[]; - }; - appProfileCapabilitiesByProfileId?: { - select: AppProfileCapabilitySelect; - first?: number; - filter?: AppProfileCapabilityFilter; - orderBy?: AppProfileCapabilityOrderBy[]; - }; - appProfileDefinitionGrantsByProfileId?: { - select: AppProfileDefinitionGrantSelect; - first?: number; - filter?: AppProfileDefinitionGrantFilter; - orderBy?: AppProfileDefinitionGrantOrderBy[]; - }; - appProfileGrantsByProfileId?: { - select: AppProfileGrantSelect; - first?: number; - filter?: AppProfileGrantFilter; - orderBy?: AppProfileGrantOrderBy[]; - }; -}; -export type AppProfileDefinitionGrantSelect = { - capabilityId?: boolean; - createdAt?: boolean; - grantorId?: boolean; - id?: boolean; - isGrant?: boolean; - profileId?: boolean; - updatedAt?: boolean; - capability?: { - select: AppCapabilitySelect; - }; - profile?: { - select: AppProfileSelect; - }; -}; -export type AppProfileGrantSelect = { - createdAt?: boolean; - grantorId?: boolean; - id?: boolean; - isGrant?: boolean; - membershipId?: boolean; - profileId?: boolean; - updatedAt?: boolean; - membership?: { - select: AppMembershipSelect; - }; - profile?: { - select: AppProfileSelect; - }; -}; -export type AppProfileTemplateSelect = { - capabilities?: boolean; - createdAt?: boolean; - description?: boolean; - id?: boolean; - isDefault?: boolean; - name?: boolean; - slug?: boolean; - updatedAt?: boolean; -}; export type MembershipTypeSelect = { description?: boolean; hasUsersTableEntry?: boolean; @@ -1321,52 +849,12 @@ export type OrgAdminGrantSelect = { isGrant?: boolean; updatedAt?: boolean; }; -export type OrgCapabilitySelect = { - bitnum?: boolean; - bitstr?: boolean; - description?: boolean; - id?: boolean; - kind?: boolean; - name?: boolean; - orgCapabilityDefaultCapabilitiesByCapabilityId?: { - select: OrgCapabilityDefaultCapabilitySelect; - first?: number; - filter?: OrgCapabilityDefaultCapabilityFilter; - orderBy?: OrgCapabilityDefaultCapabilityOrderBy[]; - }; - orgCapabilityDefaultGrantsByCapabilityId?: { - select: OrgCapabilityDefaultGrantSelect; - first?: number; - filter?: OrgCapabilityDefaultGrantFilter; - orderBy?: OrgCapabilityDefaultGrantOrderBy[]; - }; - orgProfileCapabilitiesByCapabilityId?: { - select: OrgProfileCapabilitySelect; - first?: number; - filter?: OrgProfileCapabilityFilter; - orderBy?: OrgProfileCapabilityOrderBy[]; - }; - orgProfileDefinitionGrantsByCapabilityId?: { - select: OrgProfileDefinitionGrantSelect; - first?: number; - filter?: OrgProfileDefinitionGrantFilter; - orderBy?: OrgProfileDefinitionGrantOrderBy[]; - }; -}; export type OrgCapabilityDefaultCapabilitySelect = { capabilityId?: boolean; createdAt?: boolean; entityId?: boolean; id?: boolean; updatedAt?: boolean; - capability?: { - select: OrgCapabilitySelect; - }; -}; -export type OrgCapabilityDefaultSelect = { - capabilities?: boolean; - entityId?: boolean; - id?: boolean; }; export type OrgCapabilityDefaultGrantSelect = { capabilityId?: boolean; @@ -1376,9 +864,6 @@ export type OrgCapabilityDefaultGrantSelect = { id?: boolean; isGrant?: boolean; updatedAt?: boolean; - capability?: { - select: OrgCapabilitySelect; - }; }; export type OrgChartEdgeSelect = { childId?: boolean; @@ -1447,9 +932,6 @@ export type OrgInviteSelect = { receiverId?: boolean; senderId?: boolean; updatedAt?: boolean; - profile?: { - select: OrgProfileSelect; - }; }; export type OrgMemberSelect = { actorId?: boolean; @@ -1478,6 +960,7 @@ export type OrgMembershipSelect = { capabilities?: boolean; createdAt?: boolean; createdBy?: boolean; + createdByPrincipal?: boolean; entityId?: boolean; granted?: boolean; id?: boolean; @@ -1492,55 +975,31 @@ export type OrgMembershipSelect = { profileId?: boolean; updatedAt?: boolean; updatedBy?: boolean; + updatedByPrincipal?: boolean; orgMemberProfileByMembershipId?: { select: OrgMemberProfileSelect; }; - profile?: { - select: OrgProfileSelect; - }; - orgMembershipProfilesByMembershipId?: { - select: OrgMembershipProfileSelect; - first?: number; - filter?: OrgMembershipProfileFilter; - orderBy?: OrgMembershipProfileOrderBy[]; - }; - orgProfileGrantsByMembershipId?: { - select: OrgProfileGrantSelect; - first?: number; - filter?: OrgProfileGrantFilter; - orderBy?: OrgProfileGrantOrderBy[]; - }; }; export type OrgMembershipDefaultSelect = { createdAt?: boolean; createdBy?: boolean; + createdByPrincipal?: boolean; entityId?: boolean; id?: boolean; isApproved?: boolean; updatedAt?: boolean; updatedBy?: boolean; -}; -export type OrgMembershipProfileSelect = { - actorId?: boolean; - createdAt?: boolean; - id?: boolean; - membershipId?: boolean; - profileId?: boolean; - updatedAt?: boolean; - membership?: { - select: OrgMembershipSelect; - }; - profile?: { - select: OrgProfileSelect; - }; + updatedByPrincipal?: boolean; }; export type OrgMembershipSettingSelect = { allowExternalMembers?: boolean; + allowPrincipalOwnedApiKeys?: boolean; createChildCascadeAdmins?: boolean; createChildCascadeMembers?: boolean; createChildCascadeOwners?: boolean; createdAt?: boolean; createdBy?: boolean; + createdByPrincipal?: boolean; deleteMemberCascadeChildren?: boolean; entityId?: boolean; id?: boolean; @@ -1549,6 +1008,7 @@ export type OrgMembershipSettingSelect = { populateMemberEmail?: boolean; updatedAt?: boolean; updatedBy?: boolean; + updatedByPrincipal?: boolean; }; export type OrgOwnerGrantSelect = { actorId?: boolean; @@ -1559,108 +1019,6 @@ export type OrgOwnerGrantSelect = { isGrant?: boolean; updatedAt?: boolean; }; -export type OrgProfileCapabilitySelect = { - capabilityId?: boolean; - createdAt?: boolean; - id?: boolean; - profileId?: boolean; - updatedAt?: boolean; - capability?: { - select: OrgCapabilitySelect; - }; - profile?: { - select: OrgProfileSelect; - }; -}; -export type OrgProfileSelect = { - capabilities?: boolean; - createdAt?: boolean; - description?: boolean; - entityId?: boolean; - id?: boolean; - isDefault?: boolean; - isSystem?: boolean; - name?: boolean; - slug?: boolean; - updatedAt?: boolean; - orgInvitesByProfileId?: { - select: OrgInviteSelect; - first?: number; - filter?: OrgInviteFilter; - orderBy?: OrgInviteOrderBy[]; - }; - orgMembershipProfilesByProfileId?: { - select: OrgMembershipProfileSelect; - first?: number; - filter?: OrgMembershipProfileFilter; - orderBy?: OrgMembershipProfileOrderBy[]; - }; - orgMembershipsByProfileId?: { - select: OrgMembershipSelect; - first?: number; - filter?: OrgMembershipFilter; - orderBy?: OrgMembershipOrderBy[]; - }; - orgProfileCapabilitiesByProfileId?: { - select: OrgProfileCapabilitySelect; - first?: number; - filter?: OrgProfileCapabilityFilter; - orderBy?: OrgProfileCapabilityOrderBy[]; - }; - orgProfileDefinitionGrantsByProfileId?: { - select: OrgProfileDefinitionGrantSelect; - first?: number; - filter?: OrgProfileDefinitionGrantFilter; - orderBy?: OrgProfileDefinitionGrantOrderBy[]; - }; - orgProfileGrantsByProfileId?: { - select: OrgProfileGrantSelect; - first?: number; - filter?: OrgProfileGrantFilter; - orderBy?: OrgProfileGrantOrderBy[]; - }; -}; -export type OrgProfileDefinitionGrantSelect = { - capabilityId?: boolean; - createdAt?: boolean; - grantorId?: boolean; - id?: boolean; - isGrant?: boolean; - profileId?: boolean; - updatedAt?: boolean; - capability?: { - select: OrgCapabilitySelect; - }; - profile?: { - select: OrgProfileSelect; - }; -}; -export type OrgProfileGrantSelect = { - createdAt?: boolean; - entityId?: boolean; - grantorId?: boolean; - id?: boolean; - isGrant?: boolean; - membershipId?: boolean; - profileId?: boolean; - updatedAt?: boolean; - membership?: { - select: OrgMembershipSelect; - }; - profile?: { - select: OrgProfileSelect; - }; -}; -export type OrgProfileTemplateSelect = { - capabilities?: boolean; - createdAt?: boolean; - description?: boolean; - id?: boolean; - isDefault?: boolean; - name?: boolean; - slug?: boolean; - updatedAt?: boolean; -}; // ============ Table Filter Types ============ export interface AppAdminGrantFilter { /** Filter by the object’s `actorId` field. */ @@ -1682,47 +1040,9 @@ export interface AppAdminGrantFilter { /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } -export interface AppCapabilityFilter { - /** Checks for all expressions in this list. */ - and?: AppCapabilityFilter[]; - /** Filter by the object’s `appCapabilityDefaultCapabilityByCapabilityId` relation. */ - appCapabilityDefaultCapabilityByCapabilityId?: AppCapabilityDefaultCapabilityFilter; - /** A related `appCapabilityDefaultCapabilityByCapabilityId` exists. */ - appCapabilityDefaultCapabilityByCapabilityIdExists?: boolean; - /** Filter by the object’s `appCapabilityDefaultGrantsByCapabilityId` relation. */ - appCapabilityDefaultGrantsByCapabilityId?: AppCapabilityToManyAppCapabilityDefaultGrantFilter; - /** `appCapabilityDefaultGrantsByCapabilityId` exist. */ - appCapabilityDefaultGrantsByCapabilityIdExist?: boolean; - /** Filter by the object’s `appProfileCapabilitiesByCapabilityId` relation. */ - appProfileCapabilitiesByCapabilityId?: AppCapabilityToManyAppProfileCapabilityFilter; - /** `appProfileCapabilitiesByCapabilityId` exist. */ - appProfileCapabilitiesByCapabilityIdExist?: boolean; - /** Filter by the object’s `appProfileDefinitionGrantsByCapabilityId` relation. */ - appProfileDefinitionGrantsByCapabilityId?: AppCapabilityToManyAppProfileDefinitionGrantFilter; - /** `appProfileDefinitionGrantsByCapabilityId` exist. */ - appProfileDefinitionGrantsByCapabilityIdExist?: 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 `kind` field. */ - kind?: StringFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Negates the expression. */ - not?: AppCapabilityFilter; - /** Checks for any expressions in this list. */ - or?: AppCapabilityFilter[]; -} export interface AppCapabilityDefaultCapabilityFilter { /** Checks for all expressions in this list. */ and?: AppCapabilityDefaultCapabilityFilter[]; - /** Filter by the object’s `capability` relation. */ - capability?: AppCapabilityFilter; /** Filter by the object’s `capabilityId` field. */ capabilityId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ @@ -1736,23 +1056,9 @@ export interface AppCapabilityDefaultCapabilityFilter { /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } -export interface AppCapabilityDefaultFilter { - /** Checks for all expressions in this list. */ - and?: AppCapabilityDefaultFilter[]; - /** Filter by the object’s `capabilities` field. */ - capabilities?: BitStringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Negates the expression. */ - not?: AppCapabilityDefaultFilter; - /** Checks for any expressions in this list. */ - or?: AppCapabilityDefaultFilter[]; -} export interface AppCapabilityDefaultGrantFilter { /** Checks for all expressions in this list. */ and?: AppCapabilityDefaultGrantFilter[]; - /** Filter by the object’s `capability` relation. */ - capability?: AppCapabilityFilter; /** Filter by the object’s `capabilityId` field. */ capabilityId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ @@ -1839,10 +1145,6 @@ export interface AppInviteFilter { or?: AppInviteFilter[]; /** Filter by the object’s `phone` field. */ phone?: StringFilter; - /** Filter by the object’s `profile` relation. */ - profile?: AppProfileFilter; - /** A related `profile` exists. */ - profileExists?: boolean; /** Filter by the object’s `profileId` field. */ profileId?: UUIDFilter; /** Filter by the object’s `senderId` field. */ @@ -1855,20 +1157,14 @@ export interface AppMembershipFilter { actorId?: UUIDFilter; /** Checks for all expressions in this list. */ and?: AppMembershipFilter[]; - /** Filter by the object’s `appMembershipProfilesByMembershipId` relation. */ - appMembershipProfilesByMembershipId?: AppMembershipToManyAppMembershipProfileFilter; - /** `appMembershipProfilesByMembershipId` exist. */ - appMembershipProfilesByMembershipIdExist?: boolean; - /** Filter by the object’s `appProfileGrantsByMembershipId` relation. */ - appProfileGrantsByMembershipId?: AppMembershipToManyAppProfileGrantFilter; - /** `appProfileGrantsByMembershipId` exist. */ - appProfileGrantsByMembershipIdExist?: boolean; /** 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 `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `granted` field. */ granted?: BitStringFilter; /** Filter by the object’s `id` field. */ @@ -1891,16 +1187,14 @@ export interface AppMembershipFilter { not?: AppMembershipFilter; /** Checks for any expressions in this list. */ or?: AppMembershipFilter[]; - /** Filter by the object’s `profile` relation. */ - profile?: AppProfileFilter; - /** A related `profile` exists. */ - profileExists?: 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; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } export interface AppMembershipDefaultFilter { /** Checks for all expressions in this list. */ @@ -1909,6 +1203,8 @@ export interface AppMembershipDefaultFilter { createdAt?: DatetimeFilter; /** Filter by the object’s `createdBy` field. */ createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `isApproved` field. */ @@ -1923,30 +1219,8 @@ export interface AppMembershipDefaultFilter { updatedAt?: DatetimeFilter; /** Filter by the object’s `updatedBy` field. */ updatedBy?: UUIDFilter; -} -export interface AppMembershipProfileFilter { - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: AppMembershipProfileFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `membership` relation. */ - membership?: AppMembershipFilter; - /** Filter by the object’s `membershipId` field. */ - membershipId?: UUIDFilter; - /** Negates the expression. */ - not?: AppMembershipProfileFilter; - /** Checks for any expressions in this list. */ - or?: AppMembershipProfileFilter[]; - /** Filter by the object’s `profile` relation. */ - profile?: AppProfileFilter; - /** Filter by the object’s `profileId` field. */ - profileId?: UUIDFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } export interface AppOwnerGrantFilter { /** Filter by the object’s `actorId` field. */ @@ -1968,162 +1242,6 @@ export interface AppOwnerGrantFilter { /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } -export interface AppProfileCapabilityFilter { - /** Checks for all expressions in this list. */ - and?: AppProfileCapabilityFilter[]; - /** Filter by the object’s `capability` relation. */ - capability?: AppCapabilityFilter; - /** 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?: AppProfileCapabilityFilter; - /** Checks for any expressions in this list. */ - or?: AppProfileCapabilityFilter[]; - /** Filter by the object’s `profile` relation. */ - profile?: AppProfileFilter; - /** Filter by the object’s `profileId` field. */ - profileId?: UUIDFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -export interface AppProfileFilter { - /** Checks for all expressions in this list. */ - and?: AppProfileFilter[]; - /** Filter by the object’s `appInvitesByProfileId` relation. */ - appInvitesByProfileId?: AppProfileToManyAppInviteFilter; - /** `appInvitesByProfileId` exist. */ - appInvitesByProfileIdExist?: boolean; - /** Filter by the object’s `appMembershipProfilesByProfileId` relation. */ - appMembershipProfilesByProfileId?: AppProfileToManyAppMembershipProfileFilter; - /** `appMembershipProfilesByProfileId` exist. */ - appMembershipProfilesByProfileIdExist?: boolean; - /** Filter by the object’s `appMembershipsByProfileId` relation. */ - appMembershipsByProfileId?: AppProfileToManyAppMembershipFilter; - /** `appMembershipsByProfileId` exist. */ - appMembershipsByProfileIdExist?: boolean; - /** Filter by the object’s `appProfileCapabilitiesByProfileId` relation. */ - appProfileCapabilitiesByProfileId?: AppProfileToManyAppProfileCapabilityFilter; - /** `appProfileCapabilitiesByProfileId` exist. */ - appProfileCapabilitiesByProfileIdExist?: boolean; - /** Filter by the object’s `appProfileDefinitionGrantsByProfileId` relation. */ - appProfileDefinitionGrantsByProfileId?: AppProfileToManyAppProfileDefinitionGrantFilter; - /** `appProfileDefinitionGrantsByProfileId` exist. */ - appProfileDefinitionGrantsByProfileIdExist?: boolean; - /** Filter by the object’s `appProfileGrantsByProfileId` relation. */ - appProfileGrantsByProfileId?: AppProfileToManyAppProfileGrantFilter; - /** `appProfileGrantsByProfileId` exist. */ - appProfileGrantsByProfileIdExist?: boolean; - /** Filter by the object’s `capabilities` field. */ - capabilities?: BitStringFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isDefault` field. */ - isDefault?: BooleanFilter; - /** Filter by the object’s `isSystem` field. */ - isSystem?: BooleanFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Negates the expression. */ - not?: AppProfileFilter; - /** Checks for any expressions in this list. */ - or?: AppProfileFilter[]; - /** Filter by the object’s `slug` field. */ - slug?: StringFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -export interface AppProfileDefinitionGrantFilter { - /** Checks for all expressions in this list. */ - and?: AppProfileDefinitionGrantFilter[]; - /** Filter by the object’s `capability` relation. */ - capability?: AppCapabilityFilter; - /** A related `capability` exists. */ - capabilityExists?: boolean; - /** 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?: AppProfileDefinitionGrantFilter; - /** Checks for any expressions in this list. */ - or?: AppProfileDefinitionGrantFilter[]; - /** Filter by the object’s `profile` relation. */ - profile?: AppProfileFilter; - /** A related `profile` exists. */ - profileExists?: boolean; - /** Filter by the object’s `profileId` field. */ - profileId?: UUIDFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -export interface AppProfileGrantFilter { - /** Checks for all expressions in this list. */ - and?: AppProfileGrantFilter[]; - /** 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; - /** Filter by the object’s `membership` relation. */ - membership?: AppMembershipFilter; - /** A related `membership` exists. */ - membershipExists?: boolean; - /** Filter by the object’s `membershipId` field. */ - membershipId?: UUIDFilter; - /** Negates the expression. */ - not?: AppProfileGrantFilter; - /** Checks for any expressions in this list. */ - or?: AppProfileGrantFilter[]; - /** Filter by the object’s `profile` relation. */ - profile?: AppProfileFilter; - /** A related `profile` exists. */ - profileExists?: boolean; - /** Filter by the object’s `profileId` field. */ - profileId?: UUIDFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -export interface AppProfileTemplateFilter { - /** Checks for all expressions in this list. */ - and?: AppProfileTemplateFilter[]; - /** Filter by the object’s `capabilities` field. */ - capabilities?: BitStringFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isDefault` field. */ - isDefault?: BooleanFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Negates the expression. */ - not?: AppProfileTemplateFilter; - /** Checks for any expressions in this list. */ - or?: AppProfileTemplateFilter[]; - /** Filter by the object’s `slug` field. */ - slug?: StringFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} export interface MembershipTypeFilter { /** Checks for all expressions in this list. */ and?: MembershipTypeFilter[]; @@ -2166,47 +1284,9 @@ export interface OrgAdminGrantFilter { /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } -export interface OrgCapabilityFilter { - /** Checks for all expressions in this list. */ - and?: OrgCapabilityFilter[]; - /** 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 `kind` field. */ - kind?: StringFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Negates the expression. */ - not?: OrgCapabilityFilter; - /** Checks for any expressions in this list. */ - or?: OrgCapabilityFilter[]; - /** Filter by the object’s `orgCapabilityDefaultCapabilitiesByCapabilityId` relation. */ - orgCapabilityDefaultCapabilitiesByCapabilityId?: OrgCapabilityToManyOrgCapabilityDefaultCapabilityFilter; - /** `orgCapabilityDefaultCapabilitiesByCapabilityId` exist. */ - orgCapabilityDefaultCapabilitiesByCapabilityIdExist?: boolean; - /** Filter by the object’s `orgCapabilityDefaultGrantsByCapabilityId` relation. */ - orgCapabilityDefaultGrantsByCapabilityId?: OrgCapabilityToManyOrgCapabilityDefaultGrantFilter; - /** `orgCapabilityDefaultGrantsByCapabilityId` exist. */ - orgCapabilityDefaultGrantsByCapabilityIdExist?: boolean; - /** Filter by the object’s `orgProfileCapabilitiesByCapabilityId` relation. */ - orgProfileCapabilitiesByCapabilityId?: OrgCapabilityToManyOrgProfileCapabilityFilter; - /** `orgProfileCapabilitiesByCapabilityId` exist. */ - orgProfileCapabilitiesByCapabilityIdExist?: boolean; - /** Filter by the object’s `orgProfileDefinitionGrantsByCapabilityId` relation. */ - orgProfileDefinitionGrantsByCapabilityId?: OrgCapabilityToManyOrgProfileDefinitionGrantFilter; - /** `orgProfileDefinitionGrantsByCapabilityId` exist. */ - orgProfileDefinitionGrantsByCapabilityIdExist?: boolean; -} export interface OrgCapabilityDefaultCapabilityFilter { /** Checks for all expressions in this list. */ and?: OrgCapabilityDefaultCapabilityFilter[]; - /** Filter by the object’s `capability` relation. */ - capability?: OrgCapabilityFilter; /** Filter by the object’s `capabilityId` field. */ capabilityId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ @@ -2222,25 +1302,9 @@ export interface OrgCapabilityDefaultCapabilityFilter { /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } -export interface OrgCapabilityDefaultFilter { - /** Checks for all expressions in this list. */ - and?: OrgCapabilityDefaultFilter[]; - /** Filter by the object’s `capabilities` field. */ - capabilities?: BitStringFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Negates the expression. */ - not?: OrgCapabilityDefaultFilter; - /** Checks for any expressions in this list. */ - or?: OrgCapabilityDefaultFilter[]; -} export interface OrgCapabilityDefaultGrantFilter { /** Checks for all expressions in this list. */ and?: OrgCapabilityDefaultGrantFilter[]; - /** Filter by the object’s `capability` relation. */ - capability?: OrgCapabilityFilter; /** Filter by the object’s `capabilityId` field. */ capabilityId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ @@ -2401,10 +1465,6 @@ export interface OrgInviteFilter { or?: OrgInviteFilter[]; /** Filter by the object’s `phone` field. */ phone?: StringFilter; - /** Filter by the object’s `profile` relation. */ - profile?: OrgProfileFilter; - /** A related `profile` exists. */ - profileExists?: boolean; /** Filter by the object’s `profileId` field. */ profileId?: UUIDFilter; /** Filter by the object’s `receiverId` field. */ @@ -2473,6 +1533,8 @@ export interface OrgMembershipFilter { createdAt?: DatetimeFilter; /** Filter by the object’s `createdBy` field. */ createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `entityId` field. */ entityId?: UUIDFilter; /** Filter by the object’s `granted` field. */ @@ -2503,24 +1565,14 @@ export interface OrgMembershipFilter { orgMemberProfileByMembershipId?: OrgMemberProfileFilter; /** A related `orgMemberProfileByMembershipId` exists. */ orgMemberProfileByMembershipIdExists?: boolean; - /** Filter by the object’s `orgMembershipProfilesByMembershipId` relation. */ - orgMembershipProfilesByMembershipId?: OrgMembershipToManyOrgMembershipProfileFilter; - /** `orgMembershipProfilesByMembershipId` exist. */ - orgMembershipProfilesByMembershipIdExist?: boolean; - /** Filter by the object’s `orgProfileGrantsByMembershipId` relation. */ - orgProfileGrantsByMembershipId?: OrgMembershipToManyOrgProfileGrantFilter; - /** `orgProfileGrantsByMembershipId` exist. */ - orgProfileGrantsByMembershipIdExist?: boolean; - /** Filter by the object’s `profile` relation. */ - profile?: OrgProfileFilter; - /** A related `profile` exists. */ - profileExists?: 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; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } export interface OrgMembershipDefaultFilter { /** Checks for all expressions in this list. */ @@ -2529,6 +1581,8 @@ export interface OrgMembershipDefaultFilter { createdAt?: DatetimeFilter; /** Filter by the object’s `createdBy` field. */ createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `entityId` field. */ entityId?: UUIDFilter; /** Filter by the object’s `id` field. */ @@ -2543,34 +1597,14 @@ export interface OrgMembershipDefaultFilter { updatedAt?: DatetimeFilter; /** Filter by the object’s `updatedBy` field. */ updatedBy?: UUIDFilter; -} -export interface OrgMembershipProfileFilter { - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: OrgMembershipProfileFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `membership` relation. */ - membership?: OrgMembershipFilter; - /** Filter by the object’s `membershipId` field. */ - membershipId?: UUIDFilter; - /** Negates the expression. */ - not?: OrgMembershipProfileFilter; - /** Checks for any expressions in this list. */ - or?: OrgMembershipProfileFilter[]; - /** Filter by the object’s `profile` relation. */ - profile?: OrgProfileFilter; - /** Filter by the object’s `profileId` field. */ - profileId?: UUIDFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } export interface OrgMembershipSettingFilter { /** Filter by the object’s `allowExternalMembers` field. */ allowExternalMembers?: BooleanFilter; + /** Filter by the object’s `allowPrincipalOwnedApiKeys` field. */ + allowPrincipalOwnedApiKeys?: BooleanFilter; /** Checks for all expressions in this list. */ and?: OrgMembershipSettingFilter[]; /** Filter by the object’s `createChildCascadeAdmins` field. */ @@ -2583,6 +1617,8 @@ export interface OrgMembershipSettingFilter { createdAt?: DatetimeFilter; /** Filter by the object’s `createdBy` field. */ createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `deleteMemberCascadeChildren` field. */ deleteMemberCascadeChildren?: BooleanFilter; /** Filter by the object’s `entityId` field. */ @@ -2603,6 +1639,8 @@ export interface OrgMembershipSettingFilter { updatedAt?: DatetimeFilter; /** Filter by the object’s `updatedBy` field. */ updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } export interface OrgOwnerGrantFilter { /** Filter by the object’s `actorId` field. */ @@ -2626,166 +1664,6 @@ export interface OrgOwnerGrantFilter { /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } -export interface OrgProfileCapabilityFilter { - /** Checks for all expressions in this list. */ - and?: OrgProfileCapabilityFilter[]; - /** Filter by the object’s `capability` relation. */ - capability?: OrgCapabilityFilter; - /** 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?: OrgProfileCapabilityFilter; - /** Checks for any expressions in this list. */ - or?: OrgProfileCapabilityFilter[]; - /** Filter by the object’s `profile` relation. */ - profile?: OrgProfileFilter; - /** Filter by the object’s `profileId` field. */ - profileId?: UUIDFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -export interface OrgProfileFilter { - /** Checks for all expressions in this list. */ - and?: OrgProfileFilter[]; - /** Filter by the object’s `capabilities` field. */ - capabilities?: BitStringFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isDefault` field. */ - isDefault?: BooleanFilter; - /** Filter by the object’s `isSystem` field. */ - isSystem?: BooleanFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Negates the expression. */ - not?: OrgProfileFilter; - /** Checks for any expressions in this list. */ - or?: OrgProfileFilter[]; - /** Filter by the object’s `orgInvitesByProfileId` relation. */ - orgInvitesByProfileId?: OrgProfileToManyOrgInviteFilter; - /** `orgInvitesByProfileId` exist. */ - orgInvitesByProfileIdExist?: boolean; - /** Filter by the object’s `orgMembershipProfilesByProfileId` relation. */ - orgMembershipProfilesByProfileId?: OrgProfileToManyOrgMembershipProfileFilter; - /** `orgMembershipProfilesByProfileId` exist. */ - orgMembershipProfilesByProfileIdExist?: boolean; - /** Filter by the object’s `orgMembershipsByProfileId` relation. */ - orgMembershipsByProfileId?: OrgProfileToManyOrgMembershipFilter; - /** `orgMembershipsByProfileId` exist. */ - orgMembershipsByProfileIdExist?: boolean; - /** Filter by the object’s `orgProfileCapabilitiesByProfileId` relation. */ - orgProfileCapabilitiesByProfileId?: OrgProfileToManyOrgProfileCapabilityFilter; - /** `orgProfileCapabilitiesByProfileId` exist. */ - orgProfileCapabilitiesByProfileIdExist?: boolean; - /** Filter by the object’s `orgProfileDefinitionGrantsByProfileId` relation. */ - orgProfileDefinitionGrantsByProfileId?: OrgProfileToManyOrgProfileDefinitionGrantFilter; - /** `orgProfileDefinitionGrantsByProfileId` exist. */ - orgProfileDefinitionGrantsByProfileIdExist?: boolean; - /** Filter by the object’s `orgProfileGrantsByProfileId` relation. */ - orgProfileGrantsByProfileId?: OrgProfileToManyOrgProfileGrantFilter; - /** `orgProfileGrantsByProfileId` exist. */ - orgProfileGrantsByProfileIdExist?: boolean; - /** Filter by the object’s `slug` field. */ - slug?: StringFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -export interface OrgProfileDefinitionGrantFilter { - /** Checks for all expressions in this list. */ - and?: OrgProfileDefinitionGrantFilter[]; - /** Filter by the object’s `capability` relation. */ - capability?: OrgCapabilityFilter; - /** A related `capability` exists. */ - capabilityExists?: boolean; - /** 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?: OrgProfileDefinitionGrantFilter; - /** Checks for any expressions in this list. */ - or?: OrgProfileDefinitionGrantFilter[]; - /** Filter by the object’s `profile` relation. */ - profile?: OrgProfileFilter; - /** A related `profile` exists. */ - profileExists?: boolean; - /** Filter by the object’s `profileId` field. */ - profileId?: UUIDFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -export interface OrgProfileGrantFilter { - /** Checks for all expressions in this list. */ - and?: OrgProfileGrantFilter[]; - /** 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; - /** Filter by the object’s `membership` relation. */ - membership?: OrgMembershipFilter; - /** A related `membership` exists. */ - membershipExists?: boolean; - /** Filter by the object’s `membershipId` field. */ - membershipId?: UUIDFilter; - /** Negates the expression. */ - not?: OrgProfileGrantFilter; - /** Checks for any expressions in this list. */ - or?: OrgProfileGrantFilter[]; - /** Filter by the object’s `profile` relation. */ - profile?: OrgProfileFilter; - /** A related `profile` exists. */ - profileExists?: boolean; - /** Filter by the object’s `profileId` field. */ - profileId?: UUIDFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -export interface OrgProfileTemplateFilter { - /** Checks for all expressions in this list. */ - and?: OrgProfileTemplateFilter[]; - /** Filter by the object’s `capabilities` field. */ - capabilities?: BitStringFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isDefault` field. */ - isDefault?: BooleanFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Negates the expression. */ - not?: OrgProfileTemplateFilter; - /** Checks for any expressions in this list. */ - or?: OrgProfileTemplateFilter[]; - /** Filter by the object’s `slug` field. */ - slug?: StringFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} // ============ OrderBy Types ============ export type AppAdminGrantOrderBy = | 'ACTOR_ID_ASC' @@ -2803,22 +1681,6 @@ export type AppAdminGrantOrderBy = | 'PRIMARY_KEY_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type AppCapabilityOrderBy = - | 'BITNUM_ASC' - | 'BITNUM_DESC' - | 'BITSTR_ASC' - | 'BITSTR_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'KIND_ASC' - | 'KIND_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC'; export type AppCapabilityDefaultCapabilityOrderBy = | 'CAPABILITY_ID_ASC' | 'CAPABILITY_ID_DESC' @@ -2831,14 +1693,6 @@ export type AppCapabilityDefaultCapabilityOrderBy = | 'PRIMARY_KEY_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type AppCapabilityDefaultOrderBy = - | 'CAPABILITIES_ASC' - | 'CAPABILITIES_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC'; export type AppCapabilityDefaultGrantOrderBy = | 'CAPABILITY_ID_ASC' | 'CAPABILITY_ID_DESC' @@ -2932,6 +1786,8 @@ export type AppMembershipOrderBy = | 'CREATED_AT_DESC' | 'CREATED_BY_ASC' | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'GRANTED_ASC' | 'GRANTED_DESC' | 'ID_ASC' @@ -2958,12 +1814,16 @@ export type AppMembershipOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC'; + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; export type AppMembershipDefaultOrderBy = | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'CREATED_BY_ASC' | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'ID_ASC' | 'ID_DESC' | 'IS_APPROVED_ASC' @@ -2976,23 +1836,9 @@ export type AppMembershipDefaultOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC'; -export type AppMembershipProfileOrderBy = - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'MEMBERSHIP_ID_ASC' - | 'MEMBERSHIP_ID_DESC' - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'PROFILE_ID_ASC' - | 'PROFILE_ID_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; export type AppOwnerGrantOrderBy = | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' @@ -3009,98 +1855,6 @@ export type AppOwnerGrantOrderBy = | 'PRIMARY_KEY_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type AppProfileCapabilityOrderBy = - | 'CAPABILITY_ID_ASC' - | 'CAPABILITY_ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'PROFILE_ID_ASC' - | 'PROFILE_ID_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type AppProfileOrderBy = - | 'CAPABILITIES_ASC' - | 'CAPABILITIES_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'IS_DEFAULT_ASC' - | 'IS_DEFAULT_DESC' - | 'IS_SYSTEM_ASC' - | 'IS_SYSTEM_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'SLUG_ASC' - | 'SLUG_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type AppProfileDefinitionGrantOrderBy = - | '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' - | 'PROFILE_ID_ASC' - | 'PROFILE_ID_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type AppProfileGrantOrderBy = - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'GRANTOR_ID_ASC' - | 'GRANTOR_ID_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' - | 'MEMBERSHIP_ID_ASC' - | 'MEMBERSHIP_ID_DESC' - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'PROFILE_ID_ASC' - | 'PROFILE_ID_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type AppProfileTemplateOrderBy = - | 'CAPABILITIES_ASC' - | 'CAPABILITIES_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'IS_DEFAULT_ASC' - | 'IS_DEFAULT_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'SLUG_ASC' - | 'SLUG_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; export type MembershipTypeOrderBy = | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' @@ -3135,22 +1889,6 @@ export type OrgAdminGrantOrderBy = | 'PRIMARY_KEY_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type OrgCapabilityOrderBy = - | 'BITNUM_ASC' - | 'BITNUM_DESC' - | 'BITSTR_ASC' - | 'BITSTR_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'KIND_ASC' - | 'KIND_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC'; export type OrgCapabilityDefaultCapabilityOrderBy = | 'CAPABILITY_ID_ASC' | 'CAPABILITY_ID_DESC' @@ -3165,16 +1903,6 @@ export type OrgCapabilityDefaultCapabilityOrderBy = | 'PRIMARY_KEY_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type OrgCapabilityDefaultOrderBy = - | 'CAPABILITIES_ASC' - | 'CAPABILITIES_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC'; export type OrgCapabilityDefaultGrantOrderBy = | 'CAPABILITY_ID_ASC' | 'CAPABILITY_ID_DESC' @@ -3376,6 +2104,8 @@ export type OrgMembershipOrderBy = | 'CREATED_AT_DESC' | 'CREATED_BY_ASC' | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' | 'GRANTED_ASC' @@ -3406,12 +2136,16 @@ export type OrgMembershipOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC'; + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; export type OrgMembershipDefaultOrderBy = | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'CREATED_BY_ASC' | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' | 'ID_ASC' @@ -3424,30 +2158,20 @@ export type OrgMembershipDefaultOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC'; -export type OrgMembershipProfileOrderBy = - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'MEMBERSHIP_ID_ASC' - | 'MEMBERSHIP_ID_DESC' - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'PROFILE_ID_ASC' - | 'PROFILE_ID_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; export type OrgMembershipSettingOrderBy = | 'ALLOW_EXTERNAL_MEMBERS_ASC' | 'ALLOW_EXTERNAL_MEMBERS_DESC' + | 'ALLOW_PRINCIPAL_OWNED_API_KEYS_ASC' + | 'ALLOW_PRINCIPAL_OWNED_API_KEYS_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'CREATED_BY_ASC' | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'CREATE_CHILD_CASCADE_ADMINS_ASC' | 'CREATE_CHILD_CASCADE_ADMINS_DESC' | 'CREATE_CHILD_CASCADE_MEMBERS_ASC' @@ -3472,7 +2196,9 @@ export type OrgMembershipSettingOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC'; + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; export type OrgOwnerGrantOrderBy = | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' @@ -3491,102 +2217,6 @@ export type OrgOwnerGrantOrderBy = | 'PRIMARY_KEY_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type OrgProfileCapabilityOrderBy = - | 'CAPABILITY_ID_ASC' - | 'CAPABILITY_ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'PROFILE_ID_ASC' - | 'PROFILE_ID_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type OrgProfileOrderBy = - | 'CAPABILITIES_ASC' - | 'CAPABILITIES_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'IS_DEFAULT_ASC' - | 'IS_DEFAULT_DESC' - | 'IS_SYSTEM_ASC' - | 'IS_SYSTEM_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'SLUG_ASC' - | 'SLUG_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type OrgProfileDefinitionGrantOrderBy = - | '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' - | 'PROFILE_ID_ASC' - | 'PROFILE_ID_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type OrgProfileGrantOrderBy = - | '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' - | 'MEMBERSHIP_ID_ASC' - | 'MEMBERSHIP_ID_DESC' - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'PROFILE_ID_ASC' - | 'PROFILE_ID_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type OrgProfileTemplateOrderBy = - | 'CAPABILITIES_ASC' - | 'CAPABILITIES_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'IS_DEFAULT_ASC' - | 'IS_DEFAULT_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'SLUG_ASC' - | 'SLUG_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; // ============ CRUD Input Types ============ export interface CreateAppAdminGrantInput { clientMutationId?: string; @@ -3610,32 +2240,6 @@ export interface DeleteAppAdminGrantInput { clientMutationId?: string; id: string; } -export interface CreateAppCapabilityInput { - clientMutationId?: string; - appCapability: { - bitnum?: number; - bitstr?: string; - description?: string; - kind?: string; - name?: string; - }; -} -export interface AppCapabilityPatch { - bitnum?: number | null; - bitstr?: string | null; - description?: string | null; - kind?: string | null; - name?: string | null; -} -export interface UpdateAppCapabilityInput { - clientMutationId?: string; - id: string; - appCapabilityPatch: AppCapabilityPatch; -} -export interface DeleteAppCapabilityInput { - clientMutationId?: string; - id: string; -} export interface CreateAppCapabilityDefaultCapabilityInput { clientMutationId?: string; appCapabilityDefaultCapability: { @@ -3654,24 +2258,6 @@ export interface DeleteAppCapabilityDefaultCapabilityInput { clientMutationId?: string; id: string; } -export interface CreateAppCapabilityDefaultInput { - clientMutationId?: string; - appCapabilityDefault: { - capabilities?: string; - }; -} -export interface AppCapabilityDefaultPatch { - capabilities?: string | null; -} -export interface UpdateAppCapabilityDefaultInput { - clientMutationId?: string; - id: string; - appCapabilityDefaultPatch: AppCapabilityDefaultPatch; -} -export interface DeleteAppCapabilityDefaultInput { - clientMutationId?: string; - id: string; -} export interface CreateAppCapabilityDefaultGrantInput { clientMutationId?: string; appCapabilityDefaultGrant: { @@ -3786,6 +2372,7 @@ export interface CreateAppMembershipInput { actorId: string; capabilities?: string; createdBy?: string; + createdByPrincipal?: string; granted?: string; isActive?: boolean; isAdmin?: boolean; @@ -3796,12 +2383,14 @@ export interface CreateAppMembershipInput { isVerified?: boolean; profileId?: string; updatedBy?: string; + updatedByPrincipal?: string; }; } export interface AppMembershipPatch { actorId?: string | null; capabilities?: string | null; createdBy?: string | null; + createdByPrincipal?: string | null; granted?: string | null; isActive?: boolean | null; isAdmin?: boolean | null; @@ -3812,6 +2401,7 @@ export interface AppMembershipPatch { isVerified?: boolean | null; profileId?: string | null; updatedBy?: string | null; + updatedByPrincipal?: string | null; } export interface UpdateAppMembershipInput { clientMutationId?: string; @@ -3826,16 +2416,20 @@ export interface CreateAppMembershipDefaultInput { clientMutationId?: string; appMembershipDefault: { createdBy?: string; + createdByPrincipal?: string; isApproved?: boolean; isVerified?: boolean; updatedBy?: string; + updatedByPrincipal?: string; }; } export interface AppMembershipDefaultPatch { createdBy?: string | null; + createdByPrincipal?: string | null; isApproved?: boolean | null; isVerified?: boolean | null; updatedBy?: string | null; + updatedByPrincipal?: string | null; } export interface UpdateAppMembershipDefaultInput { clientMutationId?: string; @@ -3846,29 +2440,7 @@ export interface DeleteAppMembershipDefaultInput { clientMutationId?: string; id: string; } -export interface CreateAppMembershipProfileInput { - clientMutationId?: string; - appMembershipProfile: { - actorId: string; - membershipId: string; - profileId: string; - }; -} -export interface AppMembershipProfilePatch { - actorId?: string | null; - membershipId?: string | null; - profileId?: string | null; -} -export interface UpdateAppMembershipProfileInput { - clientMutationId?: string; - id: string; - appMembershipProfilePatch: AppMembershipProfilePatch; -} -export interface DeleteAppMembershipProfileInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppOwnerGrantInput { +export interface CreateAppOwnerGrantInput { clientMutationId?: string; appOwnerGrant: { actorId?: string; @@ -3890,128 +2462,6 @@ export interface DeleteAppOwnerGrantInput { clientMutationId?: string; id: string; } -export interface CreateAppProfileCapabilityInput { - clientMutationId?: string; - appProfileCapability: { - capabilityId: string; - profileId: string; - }; -} -export interface AppProfileCapabilityPatch { - capabilityId?: string | null; - profileId?: string | null; -} -export interface UpdateAppProfileCapabilityInput { - clientMutationId?: string; - id: string; - appProfileCapabilityPatch: AppProfileCapabilityPatch; -} -export interface DeleteAppProfileCapabilityInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppProfileInput { - clientMutationId?: string; - appProfile: { - capabilities?: string; - description?: string; - isDefault?: boolean; - isSystem?: boolean; - name: string; - slug: string; - }; -} -export interface AppProfilePatch { - capabilities?: string | null; - description?: string | null; - isDefault?: boolean | null; - isSystem?: boolean | null; - name?: string | null; - slug?: string | null; -} -export interface UpdateAppProfileInput { - clientMutationId?: string; - id: string; - appProfilePatch: AppProfilePatch; -} -export interface DeleteAppProfileInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppProfileDefinitionGrantInput { - clientMutationId?: string; - appProfileDefinitionGrant: { - capabilityId?: string; - grantorId?: string; - isGrant?: boolean; - profileId?: string; - }; -} -export interface AppProfileDefinitionGrantPatch { - capabilityId?: string | null; - grantorId?: string | null; - isGrant?: boolean | null; - profileId?: string | null; -} -export interface UpdateAppProfileDefinitionGrantInput { - clientMutationId?: string; - id: string; - appProfileDefinitionGrantPatch: AppProfileDefinitionGrantPatch; -} -export interface DeleteAppProfileDefinitionGrantInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppProfileGrantInput { - clientMutationId?: string; - appProfileGrant: { - grantorId?: string; - isGrant?: boolean; - membershipId?: string; - profileId?: string; - }; -} -export interface AppProfileGrantPatch { - grantorId?: string | null; - isGrant?: boolean | null; - membershipId?: string | null; - profileId?: string | null; -} -export interface UpdateAppProfileGrantInput { - clientMutationId?: string; - id: string; - appProfileGrantPatch: AppProfileGrantPatch; -} -export interface DeleteAppProfileGrantInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppProfileTemplateInput { - clientMutationId?: string; - appProfileTemplate: { - capabilities?: string; - description?: string; - isDefault?: boolean; - name: string; - slug: string; - }; -} -export interface AppProfileTemplatePatch { - capabilities?: string | null; - description?: string | null; - isDefault?: boolean | null; - name?: string | null; - slug?: string | null; -} -export interface UpdateAppProfileTemplateInput { - clientMutationId?: string; - id: string; - appProfileTemplatePatch: AppProfileTemplatePatch; -} -export interface DeleteAppProfileTemplateInput { - clientMutationId?: string; - id: string; -} export interface CreateMembershipTypeInput { clientMutationId?: string; membershipType: { @@ -4062,32 +2512,6 @@ export interface DeleteOrgAdminGrantInput { clientMutationId?: string; id: string; } -export interface CreateOrgCapabilityInput { - clientMutationId?: string; - orgCapability: { - bitnum?: number; - bitstr?: string; - description?: string; - kind?: string; - name?: string; - }; -} -export interface OrgCapabilityPatch { - bitnum?: number | null; - bitstr?: string | null; - description?: string | null; - kind?: string | null; - name?: string | null; -} -export interface UpdateOrgCapabilityInput { - clientMutationId?: string; - id: string; - orgCapabilityPatch: OrgCapabilityPatch; -} -export interface DeleteOrgCapabilityInput { - clientMutationId?: string; - id: string; -} export interface CreateOrgCapabilityDefaultCapabilityInput { clientMutationId?: string; orgCapabilityDefaultCapability: { @@ -4108,26 +2532,6 @@ export interface DeleteOrgCapabilityDefaultCapabilityInput { clientMutationId?: string; id: string; } -export interface CreateOrgCapabilityDefaultInput { - clientMutationId?: string; - orgCapabilityDefault: { - capabilities?: string; - entityId: string; - }; -} -export interface OrgCapabilityDefaultPatch { - capabilities?: string | null; - entityId?: string | null; -} -export interface UpdateOrgCapabilityDefaultInput { - clientMutationId?: string; - id: string; - orgCapabilityDefaultPatch: OrgCapabilityDefaultPatch; -} -export interface DeleteOrgCapabilityDefaultInput { - clientMutationId?: string; - id: string; -} export interface CreateOrgCapabilityDefaultGrantInput { clientMutationId?: string; orgCapabilityDefaultGrant: { @@ -4405,6 +2809,7 @@ export interface CreateOrgMembershipInput { actorId: string; capabilities?: string; createdBy?: string; + createdByPrincipal?: string; entityId: string; granted?: string; isActive?: boolean; @@ -4417,12 +2822,14 @@ export interface CreateOrgMembershipInput { isReadOnly?: boolean; profileId?: string; updatedBy?: string; + updatedByPrincipal?: string; }; } export interface OrgMembershipPatch { actorId?: string | null; capabilities?: string | null; createdBy?: string | null; + createdByPrincipal?: string | null; entityId?: string | null; granted?: string | null; isActive?: boolean | null; @@ -4435,6 +2842,7 @@ export interface OrgMembershipPatch { isReadOnly?: boolean | null; profileId?: string | null; updatedBy?: string | null; + updatedByPrincipal?: string | null; } export interface UpdateOrgMembershipInput { clientMutationId?: string; @@ -4449,16 +2857,20 @@ export interface CreateOrgMembershipDefaultInput { clientMutationId?: string; orgMembershipDefault: { createdBy?: string; + createdByPrincipal?: string; entityId: string; isApproved?: boolean; updatedBy?: string; + updatedByPrincipal?: string; }; } export interface OrgMembershipDefaultPatch { createdBy?: string | null; + createdByPrincipal?: string | null; entityId?: string | null; isApproved?: boolean | null; updatedBy?: string | null; + updatedByPrincipal?: string | null; } export interface UpdateOrgMembershipDefaultInput { clientMutationId?: string; @@ -4469,56 +2881,40 @@ export interface DeleteOrgMembershipDefaultInput { clientMutationId?: string; id: string; } -export interface CreateOrgMembershipProfileInput { - clientMutationId?: string; - orgMembershipProfile: { - actorId: string; - membershipId: string; - profileId: string; - }; -} -export interface OrgMembershipProfilePatch { - actorId?: string | null; - membershipId?: string | null; - profileId?: string | null; -} -export interface UpdateOrgMembershipProfileInput { - clientMutationId?: string; - id: string; - orgMembershipProfilePatch: OrgMembershipProfilePatch; -} -export interface DeleteOrgMembershipProfileInput { - clientMutationId?: string; - id: string; -} export interface CreateOrgMembershipSettingInput { clientMutationId?: string; orgMembershipSetting: { allowExternalMembers?: boolean; + allowPrincipalOwnedApiKeys?: boolean; createChildCascadeAdmins?: boolean; createChildCascadeMembers?: boolean; createChildCascadeOwners?: boolean; createdBy?: string; + createdByPrincipal?: string; deleteMemberCascadeChildren?: boolean; entityId: string; inviteProfileAssignmentMode?: string; limitAllocationMode?: string; populateMemberEmail?: boolean; updatedBy?: string; + updatedByPrincipal?: string; }; } export interface OrgMembershipSettingPatch { allowExternalMembers?: boolean | null; + allowPrincipalOwnedApiKeys?: boolean | null; createChildCascadeAdmins?: boolean | null; createChildCascadeMembers?: boolean | null; createChildCascadeOwners?: boolean | null; createdBy?: string | null; + createdByPrincipal?: string | null; deleteMemberCascadeChildren?: boolean | null; entityId?: string | null; inviteProfileAssignmentMode?: string | null; limitAllocationMode?: string | null; populateMemberEmail?: boolean | null; updatedBy?: string | null; + updatedByPrincipal?: string | null; } export interface UpdateOrgMembershipSettingInput { clientMutationId?: string; @@ -4553,170 +2949,8 @@ export interface DeleteOrgOwnerGrantInput { clientMutationId?: string; id: string; } -export interface CreateOrgProfileCapabilityInput { - clientMutationId?: string; - orgProfileCapability: { - capabilityId: string; - profileId: string; - }; -} -export interface OrgProfileCapabilityPatch { - capabilityId?: string | null; - profileId?: string | null; -} -export interface UpdateOrgProfileCapabilityInput { - clientMutationId?: string; - id: string; - orgProfileCapabilityPatch: OrgProfileCapabilityPatch; -} -export interface DeleteOrgProfileCapabilityInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgProfileInput { - clientMutationId?: string; - orgProfile: { - capabilities?: string; - description?: string; - entityId?: string; - isDefault?: boolean; - isSystem?: boolean; - name: string; - slug: string; - }; -} -export interface OrgProfilePatch { - capabilities?: string | null; - description?: string | null; - entityId?: string | null; - isDefault?: boolean | null; - isSystem?: boolean | null; - name?: string | null; - slug?: string | null; -} -export interface UpdateOrgProfileInput { - clientMutationId?: string; - id: string; - orgProfilePatch: OrgProfilePatch; -} -export interface DeleteOrgProfileInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgProfileDefinitionGrantInput { - clientMutationId?: string; - orgProfileDefinitionGrant: { - capabilityId?: string; - grantorId?: string; - isGrant?: boolean; - profileId?: string; - }; -} -export interface OrgProfileDefinitionGrantPatch { - capabilityId?: string | null; - grantorId?: string | null; - isGrant?: boolean | null; - profileId?: string | null; -} -export interface UpdateOrgProfileDefinitionGrantInput { - clientMutationId?: string; - id: string; - orgProfileDefinitionGrantPatch: OrgProfileDefinitionGrantPatch; -} -export interface DeleteOrgProfileDefinitionGrantInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgProfileGrantInput { - clientMutationId?: string; - orgProfileGrant: { - entityId?: string; - grantorId?: string; - isGrant?: boolean; - membershipId?: string; - profileId?: string; - }; -} -export interface OrgProfileGrantPatch { - entityId?: string | null; - grantorId?: string | null; - isGrant?: boolean | null; - membershipId?: string | null; - profileId?: string | null; -} -export interface UpdateOrgProfileGrantInput { - clientMutationId?: string; - id: string; - orgProfileGrantPatch: OrgProfileGrantPatch; -} -export interface DeleteOrgProfileGrantInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgProfileTemplateInput { - clientMutationId?: string; - orgProfileTemplate: { - capabilities?: string; - description?: string; - isDefault?: boolean; - name: string; - slug: string; - }; -} -export interface OrgProfileTemplatePatch { - capabilities?: string | null; - description?: string | null; - isDefault?: boolean | null; - name?: string | null; - slug?: string | null; -} -export interface UpdateOrgProfileTemplateInput { - clientMutationId?: string; - id: string; - orgProfileTemplatePatch: OrgProfileTemplatePatch; -} -export interface DeleteOrgProfileTemplateInput { - clientMutationId?: string; - id: string; -} // ============ Connection Fields Map ============ -export const connectionFieldsMap = { - AppCapability: { - appCapabilityDefaultGrantsByCapabilityId: 'AppCapabilityDefaultGrant', - appProfileCapabilitiesByCapabilityId: 'AppProfileCapability', - appProfileDefinitionGrantsByCapabilityId: 'AppProfileDefinitionGrant', - }, - AppMembership: { - appMembershipProfilesByMembershipId: 'AppMembershipProfile', - appProfileGrantsByMembershipId: 'AppProfileGrant', - }, - AppProfile: { - appInvitesByProfileId: 'AppInvite', - appMembershipProfilesByProfileId: 'AppMembershipProfile', - appMembershipsByProfileId: 'AppMembership', - appProfileCapabilitiesByProfileId: 'AppProfileCapability', - appProfileDefinitionGrantsByProfileId: 'AppProfileDefinitionGrant', - appProfileGrantsByProfileId: 'AppProfileGrant', - }, - OrgCapability: { - orgCapabilityDefaultCapabilitiesByCapabilityId: 'OrgCapabilityDefaultCapability', - orgCapabilityDefaultGrantsByCapabilityId: 'OrgCapabilityDefaultGrant', - orgProfileCapabilitiesByCapabilityId: 'OrgProfileCapability', - orgProfileDefinitionGrantsByCapabilityId: 'OrgProfileDefinitionGrant', - }, - OrgMembership: { - orgMembershipProfilesByMembershipId: 'OrgMembershipProfile', - orgProfileGrantsByMembershipId: 'OrgProfileGrant', - }, - OrgProfile: { - orgInvitesByProfileId: 'OrgInvite', - orgMembershipProfilesByProfileId: 'OrgMembershipProfile', - orgMembershipsByProfileId: 'OrgMembership', - orgProfileCapabilitiesByProfileId: 'OrgProfileCapability', - orgProfileDefinitionGrantsByProfileId: 'OrgProfileDefinitionGrant', - orgProfileGrantsByProfileId: 'OrgProfileGrant', - }, -} as Record>; +export const connectionFieldsMap = {} as Record>; // ============ Custom Input Types (from schema) ============ export interface ProvisionBucketInput { /** The logical bucket key (e.g., "public", "private") */ @@ -4735,33 +2969,6 @@ export interface SubmitOrgInviteCodeInput { clientMutationId?: string; token?: string; } -/** A filter to be used against many `AppCapabilityDefaultGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface AppCapabilityToManyAppCapabilityDefaultGrantFilter { - /** Filters to entities where every related entity matches. */ - every?: AppCapabilityDefaultGrantFilter; - /** Filters to entities where no related entity matches. */ - none?: AppCapabilityDefaultGrantFilter; - /** Filters to entities where at least one related entity matches. */ - some?: AppCapabilityDefaultGrantFilter; -} -/** A filter to be used against many `AppProfileCapability` object types. All fields are combined with a logical ‘and.’ */ -export interface AppCapabilityToManyAppProfileCapabilityFilter { - /** Filters to entities where every related entity matches. */ - every?: AppProfileCapabilityFilter; - /** Filters to entities where no related entity matches. */ - none?: AppProfileCapabilityFilter; - /** Filters to entities where at least one related entity matches. */ - some?: AppProfileCapabilityFilter; -} -/** A filter to be used against many `AppProfileDefinitionGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface AppCapabilityToManyAppProfileDefinitionGrantFilter { - /** Filters to entities where every related entity matches. */ - every?: AppProfileDefinitionGrantFilter; - /** Filters to entities where no related entity matches. */ - none?: AppProfileDefinitionGrantFilter; - /** Filters to entities where at least one related entity matches. */ - some?: AppProfileDefinitionGrantFilter; -} /** 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. */ @@ -4839,114 +3046,6 @@ export interface ConstructiveInternalTypeEmailFilter { /** Starts with the specified string (case-insensitive). */ startsWithInsensitive?: ConstructiveInternalTypeEmail; } -/** A filter to be used against many `AppMembershipProfile` object types. All fields are combined with a logical ‘and.’ */ -export interface AppMembershipToManyAppMembershipProfileFilter { - /** Filters to entities where every related entity matches. */ - every?: AppMembershipProfileFilter; - /** Filters to entities where no related entity matches. */ - none?: AppMembershipProfileFilter; - /** Filters to entities where at least one related entity matches. */ - some?: AppMembershipProfileFilter; -} -/** A filter to be used against many `AppProfileGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface AppMembershipToManyAppProfileGrantFilter { - /** Filters to entities where every related entity matches. */ - every?: AppProfileGrantFilter; - /** Filters to entities where no related entity matches. */ - none?: AppProfileGrantFilter; - /** Filters to entities where at least one related entity matches. */ - some?: AppProfileGrantFilter; -} -/** A filter to be used against many `AppInvite` object types. All fields are combined with a logical ‘and.’ */ -export interface AppProfileToManyAppInviteFilter { - /** Filters to entities where every related entity matches. */ - every?: AppInviteFilter; - /** Filters to entities where no related entity matches. */ - none?: AppInviteFilter; - /** Filters to entities where at least one related entity matches. */ - some?: AppInviteFilter; -} -/** A filter to be used against many `AppMembershipProfile` object types. All fields are combined with a logical ‘and.’ */ -export interface AppProfileToManyAppMembershipProfileFilter { - /** Filters to entities where every related entity matches. */ - every?: AppMembershipProfileFilter; - /** Filters to entities where no related entity matches. */ - none?: AppMembershipProfileFilter; - /** Filters to entities where at least one related entity matches. */ - some?: AppMembershipProfileFilter; -} -/** A filter to be used against many `AppMembership` object types. All fields are combined with a logical ‘and.’ */ -export interface AppProfileToManyAppMembershipFilter { - /** Filters to entities where every related entity matches. */ - every?: AppMembershipFilter; - /** Filters to entities where no related entity matches. */ - none?: AppMembershipFilter; - /** Filters to entities where at least one related entity matches. */ - some?: AppMembershipFilter; -} -/** A filter to be used against many `AppProfileCapability` object types. All fields are combined with a logical ‘and.’ */ -export interface AppProfileToManyAppProfileCapabilityFilter { - /** Filters to entities where every related entity matches. */ - every?: AppProfileCapabilityFilter; - /** Filters to entities where no related entity matches. */ - none?: AppProfileCapabilityFilter; - /** Filters to entities where at least one related entity matches. */ - some?: AppProfileCapabilityFilter; -} -/** A filter to be used against many `AppProfileDefinitionGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface AppProfileToManyAppProfileDefinitionGrantFilter { - /** Filters to entities where every related entity matches. */ - every?: AppProfileDefinitionGrantFilter; - /** Filters to entities where no related entity matches. */ - none?: AppProfileDefinitionGrantFilter; - /** Filters to entities where at least one related entity matches. */ - some?: AppProfileDefinitionGrantFilter; -} -/** A filter to be used against many `AppProfileGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface AppProfileToManyAppProfileGrantFilter { - /** Filters to entities where every related entity matches. */ - every?: AppProfileGrantFilter; - /** Filters to entities where no related entity matches. */ - none?: AppProfileGrantFilter; - /** Filters to entities where at least one related entity matches. */ - some?: AppProfileGrantFilter; -} -/** A filter to be used against many `OrgCapabilityDefaultCapability` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgCapabilityToManyOrgCapabilityDefaultCapabilityFilter { - /** Filters to entities where every related entity matches. */ - every?: OrgCapabilityDefaultCapabilityFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgCapabilityDefaultCapabilityFilter; - /** Filters to entities where at least one related entity matches. */ - some?: OrgCapabilityDefaultCapabilityFilter; -} -/** A filter to be used against many `OrgCapabilityDefaultGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgCapabilityToManyOrgCapabilityDefaultGrantFilter { - /** Filters to entities where every related entity matches. */ - every?: OrgCapabilityDefaultGrantFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgCapabilityDefaultGrantFilter; - /** Filters to entities where at least one related entity matches. */ - some?: OrgCapabilityDefaultGrantFilter; -} -/** A filter to be used against many `OrgProfileCapability` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgCapabilityToManyOrgProfileCapabilityFilter { - /** Filters to entities where every related entity matches. */ - every?: OrgProfileCapabilityFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgProfileCapabilityFilter; - /** Filters to entities where at least one related entity matches. */ - some?: OrgProfileCapabilityFilter; -} -/** A filter to be used against many `OrgProfileDefinitionGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgCapabilityToManyOrgProfileDefinitionGrantFilter { - /** Filters to entities where every related entity matches. */ - every?: OrgProfileDefinitionGrantFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgProfileDefinitionGrantFilter; - /** Filters to entities where at least one related entity matches. */ - some?: OrgProfileDefinitionGrantFilter; -} /** A filter to be used against ConstructiveInternalTypeImage fields. All fields are combined with a logical ‘and.’ */ export interface ConstructiveInternalTypeImageFilter { /** Contained by the specified JSON. */ @@ -4982,78 +3081,6 @@ export interface ConstructiveInternalTypeImageFilter { /** Not included in the specified list. */ notIn?: ConstructiveInternalTypeImage[]; } -/** A filter to be used against many `OrgMembershipProfile` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgMembershipToManyOrgMembershipProfileFilter { - /** Filters to entities where every related entity matches. */ - every?: OrgMembershipProfileFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgMembershipProfileFilter; - /** Filters to entities where at least one related entity matches. */ - some?: OrgMembershipProfileFilter; -} -/** A filter to be used against many `OrgProfileGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgMembershipToManyOrgProfileGrantFilter { - /** Filters to entities where every related entity matches. */ - every?: OrgProfileGrantFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgProfileGrantFilter; - /** Filters to entities where at least one related entity matches. */ - some?: OrgProfileGrantFilter; -} -/** A filter to be used against many `OrgInvite` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgProfileToManyOrgInviteFilter { - /** Filters to entities where every related entity matches. */ - every?: OrgInviteFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgInviteFilter; - /** Filters to entities where at least one related entity matches. */ - some?: OrgInviteFilter; -} -/** A filter to be used against many `OrgMembershipProfile` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgProfileToManyOrgMembershipProfileFilter { - /** Filters to entities where every related entity matches. */ - every?: OrgMembershipProfileFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgMembershipProfileFilter; - /** Filters to entities where at least one related entity matches. */ - some?: OrgMembershipProfileFilter; -} -/** A filter to be used against many `OrgMembership` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgProfileToManyOrgMembershipFilter { - /** Filters to entities where every related entity matches. */ - every?: OrgMembershipFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgMembershipFilter; - /** Filters to entities where at least one related entity matches. */ - some?: OrgMembershipFilter; -} -/** A filter to be used against many `OrgProfileCapability` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgProfileToManyOrgProfileCapabilityFilter { - /** Filters to entities where every related entity matches. */ - every?: OrgProfileCapabilityFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgProfileCapabilityFilter; - /** Filters to entities where at least one related entity matches. */ - some?: OrgProfileCapabilityFilter; -} -/** A filter to be used against many `OrgProfileDefinitionGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgProfileToManyOrgProfileDefinitionGrantFilter { - /** Filters to entities where every related entity matches. */ - every?: OrgProfileDefinitionGrantFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgProfileDefinitionGrantFilter; - /** Filters to entities where at least one related entity matches. */ - some?: OrgProfileDefinitionGrantFilter; -} -/** A filter to be used against many `OrgProfileGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgProfileToManyOrgProfileGrantFilter { - /** Filters to entities where every related entity matches. */ - every?: OrgProfileGrantFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgProfileGrantFilter; - /** Filters to entities where at least one related entity matches. */ - some?: OrgProfileGrantFilter; -} /** An input for mutations affecting `AppAdminGrant` */ export interface AppAdminGrantInput { /** The member receiving or losing the admin grant; NULL if user was deleted */ @@ -5065,20 +3092,6 @@ export interface AppAdminGrantInput { isGrant?: boolean; updatedAt?: string; } -/** An input for mutations affecting `AppCapability` */ -export interface AppCapabilityInput { - /** Position of this capability in the bitmask (1-indexed), must be unique per capability set */ - bitnum?: number; - /** Pre-computed bitmask with only this capability bit set, used for bitwise OR/AND operations */ - bitstr?: string; - /** Human-readable description of what this capability allows */ - description?: string; - id?: string; - /** Kind of catalog entry: capability (capability) or level (achievement level) */ - kind?: string; - /** Human-readable capability name (e.g. read, write, manage) */ - name?: string; -} /** An input for mutations affecting `AppCapabilityDefaultCapability` */ export interface AppCapabilityDefaultCapabilityInput { /** References the capability included in the defaults bundle */ @@ -5087,12 +3100,6 @@ export interface AppCapabilityDefaultCapabilityInput { id?: string; updatedAt?: string; } -/** An input for mutations affecting `AppCapabilityDefault` */ -export interface AppCapabilityDefaultInput { - /** Default capability bitmask applied to new members */ - capabilities?: string; - id?: string; -} /** An input for mutations affecting `AppCapabilityDefaultGrant` */ export interface AppCapabilityDefaultGrantInput { /** References the capability being added to or removed from defaults */ @@ -5167,6 +3174,7 @@ export interface AppMembershipInput { capabilities?: string; createdAt?: string; createdBy?: string; + createdByPrincipal?: string; /** Bitmask of capabilities directly granted to this member (not from profiles) */ granted?: string; id?: string; @@ -5187,11 +3195,13 @@ export interface AppMembershipInput { profileId?: string; updatedAt?: string; updatedBy?: string; + updatedByPrincipal?: string; } /** An input for mutations affecting `AppMembershipDefault` */ export interface AppMembershipDefaultInput { createdAt?: string; createdBy?: string; + createdByPrincipal?: string; id?: string; /** Whether new members are automatically approved upon joining */ isApproved?: boolean; @@ -5199,18 +3209,7 @@ export interface AppMembershipDefaultInput { isVerified?: boolean; updatedAt?: string; updatedBy?: string; -} -/** An input for mutations affecting `AppMembershipProfile` */ -export interface AppMembershipProfileInput { - /** References the user holding the profile, denormalised from the membership */ - actorId: string; - createdAt?: string; - id?: string; - /** References the membership holding the profile */ - membershipId: string; - /** References the held profile */ - profileId: string; - updatedAt?: string; + updatedByPrincipal?: string; } /** An input for mutations affecting `AppOwnerGrant` */ export interface AppOwnerGrantInput { @@ -5223,76 +3222,6 @@ export interface AppOwnerGrantInput { isGrant?: boolean; updatedAt?: string; } -/** An input for mutations affecting `AppProfileCapability` */ -export interface AppProfileCapabilityInput { - /** References the capability included in this profile */ - capabilityId: string; - createdAt?: string; - id?: string; - /** References the profile this capability belongs to */ - profileId: string; - updatedAt?: string; -} -/** An input for mutations affecting `AppProfile` */ -export interface AppProfileInput { - /** Pre-computed capability bitmask aggregating all capabilities in this profile */ - capabilities?: string; - createdAt?: string; - /** Human-readable description of this profile and its intended use */ - description?: string; - id?: string; - /** The default profile is automatically assigned to new members when they join */ - isDefault?: boolean; - /** System profiles are built-in and cannot be deleted or renamed by users */ - isSystem?: boolean; - /** Display name for this profile (e.g. Admin, Editor, Viewer) */ - name: string; - /** URL-safe identifier for this profile, used in API references */ - slug: string; - updatedAt?: string; -} -/** An input for mutations affecting `AppProfileDefinitionGrant` */ -export interface AppProfileDefinitionGrantInput { - /** References the capability that was added to or removed from the profile; NULL if capability was deleted */ - capabilityId?: string; - createdAt?: string; - grantorId?: string; - id?: string; - /** True to add the capability to the profile, false to remove it */ - isGrant?: boolean; - /** References the profile whose definition was modified; NULL if profile was deleted */ - profileId?: string; - updatedAt?: string; -} -/** An input for mutations affecting `AppProfileGrant` */ -export interface AppProfileGrantInput { - createdAt?: string; - grantorId?: string; - id?: string; - /** True to assign the profile, false to revoke it */ - isGrant?: boolean; - /** References the membership that received or lost this profile; NULL if membership was deleted */ - membershipId?: string; - /** References the profile being assigned; NULL indicates the profile was removed */ - profileId?: string; - updatedAt?: string; -} -/** An input for mutations affecting `AppProfileTemplate` */ -export interface AppProfileTemplateInput { - /** Pre-computed capability bitmask for the seeded profile */ - capabilities?: string; - createdAt?: string; - /** Human-readable description of this template profile */ - description?: string; - id?: string; - /** Whether the seeded profile should be the default for new members */ - isDefault?: boolean; - /** Display name for the template profile (e.g. Admin, Editor, Viewer) */ - name: string; - /** URL-safe identifier for the template profile */ - slug: string; - updatedAt?: string; -} /** An input for mutations affecting `MembershipType` */ export interface MembershipTypeInput { /** Description of what this membership type represents */ @@ -5321,20 +3250,6 @@ export interface OrgAdminGrantInput { isGrant?: boolean; updatedAt?: string; } -/** An input for mutations affecting `OrgCapability` */ -export interface OrgCapabilityInput { - /** Position of this capability in the bitmask (1-indexed), must be unique per capability set */ - bitnum?: number; - /** Pre-computed bitmask with only this capability bit set, used for bitwise OR/AND operations */ - bitstr?: string; - /** Human-readable description of what this capability allows */ - description?: string; - id?: string; - /** Kind of catalog entry: capability (capability) or level (achievement level) */ - kind?: string; - /** Human-readable capability name (e.g. read, write, manage) */ - name?: string; -} /** An input for mutations affecting `OrgCapabilityDefaultCapability` */ export interface OrgCapabilityDefaultCapabilityInput { /** References the capability included in the defaults bundle */ @@ -5345,14 +3260,6 @@ export interface OrgCapabilityDefaultCapabilityInput { id?: string; updatedAt?: string; } -/** An input for mutations affecting `OrgCapabilityDefault` */ -export interface OrgCapabilityDefaultInput { - /** Default capability bitmask applied to new members */ - capabilities?: string; - /** References the entity these default capabilities apply to */ - entityId: string; - id?: string; -} /** An input for mutations affecting `OrgCapabilityDefaultGrant` */ export interface OrgCapabilityDefaultGrantInput { /** References the capability being added to or removed from defaults */ @@ -5504,1154 +3411,106 @@ export interface OrgMembershipInput { /** 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 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 */ - 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?: string; - updatedAt?: string; - updatedBy?: string; -} -/** An input for mutations affecting `OrgMembershipDefault` */ -export interface OrgMembershipDefaultInput { - createdAt?: string; - createdBy?: string; - /** References the entity these membership defaults apply to */ - entityId: string; - id?: string; - /** Whether new members are automatically approved upon joining */ - isApproved?: boolean; - updatedAt?: string; - updatedBy?: string; -} -/** An input for mutations affecting `OrgMembershipProfile` */ -export interface OrgMembershipProfileInput { - /** References the user holding the profile, denormalised from the membership */ - actorId: string; - createdAt?: string; - id?: string; - /** References the membership holding the profile */ - membershipId: string; - /** References the held profile */ - profileId: string; - updatedAt?: string; -} -/** An input for mutations affecting `OrgMembershipSetting` */ -export interface 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?: string; - createdBy?: string; - /** When a member is deleted, whether to cascade-remove their descendant-entity memberships */ - deleteMemberCascadeChildren?: boolean; - /** References the entity these settings apply to */ - entityId: string; - id?: string; - /** 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?: string; - updatedBy?: string; -} -/** An input for mutations affecting `OrgOwnerGrant` */ -export interface OrgOwnerGrantInput { - /** The member receiving or losing the ownership grant; NULL if user was deleted */ - actorId?: string; - createdAt?: string; - /** The entity (org or group) this ownership grant applies to */ - entityId: string; - grantorId?: string; - id?: string; - /** True to grant ownership, false to revoke ownership */ - isGrant?: boolean; - updatedAt?: string; -} -/** An input for mutations affecting `OrgProfileCapability` */ -export interface OrgProfileCapabilityInput { - /** References the capability included in this profile */ - capabilityId: string; - createdAt?: string; - id?: string; - /** References the profile this capability belongs to */ - profileId: string; - updatedAt?: string; -} -/** An input for mutations affecting `OrgProfile` */ -export interface OrgProfileInput { - /** Pre-computed capability bitmask aggregating all capabilities in this profile */ - capabilities?: string; - createdAt?: string; - /** Human-readable description of this profile and its intended use */ - description?: string; - /** Scopes this profile to a specific entity; NULL means it is a global profile */ - entityId?: string; - id?: string; - /** The default profile is automatically assigned to new members when they join */ - isDefault?: boolean; - /** System profiles are built-in and cannot be deleted or renamed by users */ - isSystem?: boolean; - /** Display name for this profile (e.g. Admin, Editor, Viewer) */ - name: string; - /** URL-safe identifier for this profile, used in API references */ - slug: string; - updatedAt?: string; -} -/** An input for mutations affecting `OrgProfileDefinitionGrant` */ -export interface OrgProfileDefinitionGrantInput { - /** References the capability that was added to or removed from the profile; NULL if capability was deleted */ - capabilityId?: string; - createdAt?: string; - grantorId?: string; - id?: string; - /** True to add the capability to the profile, false to remove it */ - isGrant?: boolean; - /** References the profile whose definition was modified; NULL if profile was deleted */ - profileId?: string; - updatedAt?: string; -} -/** An input for mutations affecting `OrgProfileGrant` */ -export interface OrgProfileGrantInput { - createdAt?: string; - /** The entity (org or group) scope for this profile grant */ - entityId?: string; - grantorId?: string; - id?: string; - /** True to assign the profile, false to revoke it */ - isGrant?: boolean; - /** References the membership that received or lost this profile; NULL if membership was deleted */ - membershipId?: string; - /** References the profile being assigned; NULL indicates the profile was removed */ - profileId?: string; - updatedAt?: string; -} -/** An input for mutations affecting `OrgProfileTemplate` */ -export interface OrgProfileTemplateInput { - /** Pre-computed capability bitmask for the seeded profile */ - capabilities?: string; - createdAt?: string; - /** Human-readable description of this template profile */ - description?: string; - id?: string; - /** Whether the seeded profile should be the default for new members */ - isDefault?: boolean; - /** Display name for the template profile (e.g. Admin, Editor, Viewer) */ - name: string; - /** URL-safe identifier for the template profile */ - slug: 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 `capability` relation. */ - capability?: AppCapabilityFilter; - /** 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; -} -/** A filter to be used against `AppProfileCapability` object types. All fields are combined with a logical ‘and.’ */ -export interface AppProfileCapabilityFilter { - /** Checks for all expressions in this list. */ - and?: AppProfileCapabilityFilter[]; - /** Filter by the object’s `capability` relation. */ - capability?: AppCapabilityFilter; - /** 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?: AppProfileCapabilityFilter; - /** Checks for any expressions in this list. */ - or?: AppProfileCapabilityFilter[]; - /** Filter by the object’s `profile` relation. */ - profile?: AppProfileFilter; - /** Filter by the object’s `profileId` field. */ - profileId?: UUIDFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -/** A filter to be used against `AppProfileDefinitionGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface AppProfileDefinitionGrantFilter { - /** Checks for all expressions in this list. */ - and?: AppProfileDefinitionGrantFilter[]; - /** Filter by the object’s `capability` relation. */ - capability?: AppCapabilityFilter; - /** A related `capability` exists. */ - capabilityExists?: boolean; - /** 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?: AppProfileDefinitionGrantFilter; - /** Checks for any expressions in this list. */ - or?: AppProfileDefinitionGrantFilter[]; - /** Filter by the object’s `profile` relation. */ - profile?: AppProfileFilter; - /** A related `profile` exists. */ - profileExists?: boolean; - /** Filter by the object’s `profileId` field. */ - profileId?: UUIDFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -/** A filter to be used against `AppMembershipProfile` object types. All fields are combined with a logical ‘and.’ */ -export interface AppMembershipProfileFilter { - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: AppMembershipProfileFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `membership` relation. */ - membership?: AppMembershipFilter; - /** Filter by the object’s `membershipId` field. */ - membershipId?: UUIDFilter; - /** Negates the expression. */ - not?: AppMembershipProfileFilter; - /** Checks for any expressions in this list. */ - or?: AppMembershipProfileFilter[]; - /** Filter by the object’s `profile` relation. */ - profile?: AppProfileFilter; - /** Filter by the object’s `profileId` field. */ - profileId?: UUIDFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -/** A filter to be used against `AppProfileGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface AppProfileGrantFilter { - /** Checks for all expressions in this list. */ - and?: AppProfileGrantFilter[]; - /** 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; - /** Filter by the object’s `membership` relation. */ - membership?: AppMembershipFilter; - /** A related `membership` exists. */ - membershipExists?: boolean; - /** Filter by the object’s `membershipId` field. */ - membershipId?: UUIDFilter; - /** Negates the expression. */ - not?: AppProfileGrantFilter; - /** Checks for any expressions in this list. */ - or?: AppProfileGrantFilter[]; - /** Filter by the object’s `profile` relation. */ - profile?: AppProfileFilter; - /** A related `profile` exists. */ - profileExists?: boolean; - /** Filter by the object’s `profileId` field. */ - profileId?: UUIDFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -/** A filter to be used against `AppInvite` object types. All fields are combined with a logical ‘and.’ */ -export interface AppInviteFilter { - /** Checks for all expressions in this list. */ - and?: AppInviteFilter[]; - /** Filter by the object’s `channel` field. */ - channel?: StringFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `email` field. */ - email?: ConstructiveInternalTypeEmailFilter; - /** 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 `multiple` field. */ - multiple?: BooleanFilter; - /** Negates the expression. */ - not?: AppInviteFilter; - /** Checks for any expressions in this list. */ - or?: AppInviteFilter[]; - /** Filter by the object’s `phone` field. */ - phone?: StringFilter; - /** Filter by the object’s `profile` relation. */ - profile?: AppProfileFilter; - /** A related `profile` exists. */ - profileExists?: boolean; - /** Filter by the object’s `profileId` field. */ - profileId?: UUIDFilter; - /** Filter by the object’s `senderId` field. */ - senderId?: UUIDFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -/** A filter to be used against `AppMembership` object types. All fields are combined with a logical ‘and.’ */ -export interface AppMembershipFilter { - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: AppMembershipFilter[]; - /** Filter by the object’s `appMembershipProfilesByMembershipId` relation. */ - appMembershipProfilesByMembershipId?: AppMembershipToManyAppMembershipProfileFilter; - /** `appMembershipProfilesByMembershipId` exist. */ - appMembershipProfilesByMembershipIdExist?: boolean; - /** Filter by the object’s `appProfileGrantsByMembershipId` relation. */ - appProfileGrantsByMembershipId?: AppMembershipToManyAppProfileGrantFilter; - /** `appProfileGrantsByMembershipId` exist. */ - appProfileGrantsByMembershipIdExist?: boolean; - /** 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 `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 `isOwner` field. */ - isOwner?: BooleanFilter; - /** Filter by the object’s `isVerified` field. */ - isVerified?: BooleanFilter; - /** Negates the expression. */ - not?: AppMembershipFilter; - /** Checks for any expressions in this list. */ - or?: AppMembershipFilter[]; - /** Filter by the object’s `profile` relation. */ - profile?: AppProfileFilter; - /** A related `profile` exists. */ - profileExists?: 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; -} -/** 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 `capability` relation. */ - capability?: OrgCapabilityFilter; - /** 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; -} -/** 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 `capability` relation. */ - capability?: OrgCapabilityFilter; - /** 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; -} -/** A filter to be used against `OrgProfileCapability` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgProfileCapabilityFilter { - /** Checks for all expressions in this list. */ - and?: OrgProfileCapabilityFilter[]; - /** Filter by the object’s `capability` relation. */ - capability?: OrgCapabilityFilter; - /** 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?: OrgProfileCapabilityFilter; - /** Checks for any expressions in this list. */ - or?: OrgProfileCapabilityFilter[]; - /** Filter by the object’s `profile` relation. */ - profile?: OrgProfileFilter; - /** Filter by the object’s `profileId` field. */ - profileId?: UUIDFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -/** A filter to be used against `OrgProfileDefinitionGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgProfileDefinitionGrantFilter { - /** Checks for all expressions in this list. */ - and?: OrgProfileDefinitionGrantFilter[]; - /** Filter by the object’s `capability` relation. */ - capability?: OrgCapabilityFilter; - /** A related `capability` exists. */ - capabilityExists?: boolean; - /** 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?: OrgProfileDefinitionGrantFilter; - /** Checks for any expressions in this list. */ - or?: OrgProfileDefinitionGrantFilter[]; - /** Filter by the object’s `profile` relation. */ - profile?: OrgProfileFilter; - /** A related `profile` exists. */ - profileExists?: boolean; - /** Filter by the object’s `profileId` field. */ - profileId?: UUIDFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -/** A filter to be used against `OrgMembershipProfile` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgMembershipProfileFilter { - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: OrgMembershipProfileFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `membership` relation. */ - membership?: OrgMembershipFilter; - /** Filter by the object’s `membershipId` field. */ - membershipId?: UUIDFilter; - /** Negates the expression. */ - not?: OrgMembershipProfileFilter; - /** Checks for any expressions in this list. */ - or?: OrgMembershipProfileFilter[]; - /** Filter by the object’s `profile` relation. */ - profile?: OrgProfileFilter; - /** Filter by the object’s `profileId` field. */ - profileId?: UUIDFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -/** A filter to be used against `OrgProfileGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgProfileGrantFilter { - /** Checks for all expressions in this list. */ - and?: OrgProfileGrantFilter[]; - /** 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; - /** Filter by the object’s `membership` relation. */ - membership?: OrgMembershipFilter; - /** A related `membership` exists. */ - membershipExists?: boolean; - /** Filter by the object’s `membershipId` field. */ - membershipId?: UUIDFilter; - /** Negates the expression. */ - not?: OrgProfileGrantFilter; - /** Checks for any expressions in this list. */ - or?: OrgProfileGrantFilter[]; - /** Filter by the object’s `profile` relation. */ - profile?: OrgProfileFilter; - /** A related `profile` exists. */ - profileExists?: boolean; - /** Filter by the object’s `profileId` field. */ - profileId?: UUIDFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -/** A filter to be used against `OrgInvite` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgInviteFilter { - /** Checks for all expressions in this list. */ - and?: OrgInviteFilter[]; - /** Filter by the object’s `channel` field. */ - channel?: StringFilter; - /** 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; - /** Checks for any expressions in this list. */ - or?: OrgInviteFilter[]; - /** Filter by the object’s `phone` field. */ - phone?: StringFilter; - /** Filter by the object’s `profile` relation. */ - profile?: OrgProfileFilter; - /** A related `profile` exists. */ - profileExists?: boolean; - /** 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; -} -/** A filter to be used against `OrgMembership` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgMembershipFilter { - /** Filter by the object’s `actorId` field. */ - 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. */ - createdBy?: UUIDFilter; - /** 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 `isReadOnly` field. */ - isReadOnly?: BooleanFilter; - /** Negates the expression. */ - not?: OrgMembershipFilter; - /** Checks for any expressions in this list. */ - or?: OrgMembershipFilter[]; - /** Filter by the object’s `orgMemberProfileByMembershipId` relation. */ - orgMemberProfileByMembershipId?: OrgMemberProfileFilter; - /** A related `orgMemberProfileByMembershipId` exists. */ - orgMemberProfileByMembershipIdExists?: boolean; - /** Filter by the object’s `orgMembershipProfilesByMembershipId` relation. */ - orgMembershipProfilesByMembershipId?: OrgMembershipToManyOrgMembershipProfileFilter; - /** `orgMembershipProfilesByMembershipId` exist. */ - orgMembershipProfilesByMembershipIdExist?: boolean; - /** Filter by the object’s `orgProfileGrantsByMembershipId` relation. */ - orgProfileGrantsByMembershipId?: OrgMembershipToManyOrgProfileGrantFilter; - /** `orgProfileGrantsByMembershipId` exist. */ - orgProfileGrantsByMembershipIdExist?: boolean; - /** Filter by the object’s `profile` relation. */ - profile?: OrgProfileFilter; - /** A related `profile` exists. */ - profileExists?: 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; -} -/** A filter to be used against `AppCapability` object types. All fields are combined with a logical ‘and.’ */ -export interface AppCapabilityFilter { - /** Checks for all expressions in this list. */ - and?: AppCapabilityFilter[]; - /** Filter by the object’s `appCapabilityDefaultCapabilityByCapabilityId` relation. */ - appCapabilityDefaultCapabilityByCapabilityId?: AppCapabilityDefaultCapabilityFilter; - /** A related `appCapabilityDefaultCapabilityByCapabilityId` exists. */ - appCapabilityDefaultCapabilityByCapabilityIdExists?: boolean; - /** Filter by the object’s `appCapabilityDefaultGrantsByCapabilityId` relation. */ - appCapabilityDefaultGrantsByCapabilityId?: AppCapabilityToManyAppCapabilityDefaultGrantFilter; - /** `appCapabilityDefaultGrantsByCapabilityId` exist. */ - appCapabilityDefaultGrantsByCapabilityIdExist?: boolean; - /** Filter by the object’s `appProfileCapabilitiesByCapabilityId` relation. */ - appProfileCapabilitiesByCapabilityId?: AppCapabilityToManyAppProfileCapabilityFilter; - /** `appProfileCapabilitiesByCapabilityId` exist. */ - appProfileCapabilitiesByCapabilityIdExist?: boolean; - /** Filter by the object’s `appProfileDefinitionGrantsByCapabilityId` relation. */ - appProfileDefinitionGrantsByCapabilityId?: AppCapabilityToManyAppProfileDefinitionGrantFilter; - /** `appProfileDefinitionGrantsByCapabilityId` exist. */ - appProfileDefinitionGrantsByCapabilityIdExist?: 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 `kind` field. */ - kind?: StringFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Negates the expression. */ - not?: AppCapabilityFilter; - /** Checks for any expressions in this list. */ - or?: AppCapabilityFilter[]; -} -/** 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 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 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 `AppProfile` object types. All fields are combined with a logical ‘and.’ */ -export interface AppProfileFilter { - /** Checks for all expressions in this list. */ - and?: AppProfileFilter[]; - /** Filter by the object’s `appInvitesByProfileId` relation. */ - appInvitesByProfileId?: AppProfileToManyAppInviteFilter; - /** `appInvitesByProfileId` exist. */ - appInvitesByProfileIdExist?: boolean; - /** Filter by the object’s `appMembershipProfilesByProfileId` relation. */ - appMembershipProfilesByProfileId?: AppProfileToManyAppMembershipProfileFilter; - /** `appMembershipProfilesByProfileId` exist. */ - appMembershipProfilesByProfileIdExist?: boolean; - /** Filter by the object’s `appMembershipsByProfileId` relation. */ - appMembershipsByProfileId?: AppProfileToManyAppMembershipFilter; - /** `appMembershipsByProfileId` exist. */ - appMembershipsByProfileIdExist?: boolean; - /** Filter by the object’s `appProfileCapabilitiesByProfileId` relation. */ - appProfileCapabilitiesByProfileId?: AppProfileToManyAppProfileCapabilityFilter; - /** `appProfileCapabilitiesByProfileId` exist. */ - appProfileCapabilitiesByProfileIdExist?: boolean; - /** Filter by the object’s `appProfileDefinitionGrantsByProfileId` relation. */ - appProfileDefinitionGrantsByProfileId?: AppProfileToManyAppProfileDefinitionGrantFilter; - /** `appProfileDefinitionGrantsByProfileId` exist. */ - appProfileDefinitionGrantsByProfileIdExist?: boolean; - /** Filter by the object’s `appProfileGrantsByProfileId` relation. */ - appProfileGrantsByProfileId?: AppProfileToManyAppProfileGrantFilter; - /** `appProfileGrantsByProfileId` exist. */ - appProfileGrantsByProfileIdExist?: boolean; - /** Filter by the object’s `capabilities` field. */ - capabilities?: BitStringFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isDefault` field. */ - isDefault?: BooleanFilter; - /** Filter by the object’s `isSystem` field. */ - isSystem?: BooleanFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Negates the expression. */ - not?: AppProfileFilter; - /** Checks for any expressions in this list. */ - or?: AppProfileFilter[]; - /** Filter by the object’s `slug` field. */ - slug?: StringFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -/** 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 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 `OrgCapability` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgCapabilityFilter { - /** Checks for all expressions in this list. */ - and?: OrgCapabilityFilter[]; - /** 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 `kind` field. */ - kind?: StringFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Negates the expression. */ - not?: OrgCapabilityFilter; - /** Checks for any expressions in this list. */ - or?: OrgCapabilityFilter[]; - /** Filter by the object’s `orgCapabilityDefaultCapabilitiesByCapabilityId` relation. */ - orgCapabilityDefaultCapabilitiesByCapabilityId?: OrgCapabilityToManyOrgCapabilityDefaultCapabilityFilter; - /** `orgCapabilityDefaultCapabilitiesByCapabilityId` exist. */ - orgCapabilityDefaultCapabilitiesByCapabilityIdExist?: boolean; - /** Filter by the object’s `orgCapabilityDefaultGrantsByCapabilityId` relation. */ - orgCapabilityDefaultGrantsByCapabilityId?: OrgCapabilityToManyOrgCapabilityDefaultGrantFilter; - /** `orgCapabilityDefaultGrantsByCapabilityId` exist. */ - orgCapabilityDefaultGrantsByCapabilityIdExist?: boolean; - /** Filter by the object’s `orgProfileCapabilitiesByCapabilityId` relation. */ - orgProfileCapabilitiesByCapabilityId?: OrgCapabilityToManyOrgProfileCapabilityFilter; - /** `orgProfileCapabilitiesByCapabilityId` exist. */ - orgProfileCapabilitiesByCapabilityIdExist?: boolean; - /** Filter by the object’s `orgProfileDefinitionGrantsByCapabilityId` relation. */ - orgProfileDefinitionGrantsByCapabilityId?: OrgCapabilityToManyOrgProfileDefinitionGrantFilter; - /** `orgProfileDefinitionGrantsByCapabilityId` exist. */ - orgProfileDefinitionGrantsByCapabilityIdExist?: boolean; -} -/** A filter to be used against `OrgProfile` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgProfileFilter { - /** Checks for all expressions in this list. */ - and?: OrgProfileFilter[]; - /** Filter by the object’s `capabilities` field. */ - capabilities?: BitStringFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isDefault` field. */ - isDefault?: BooleanFilter; - /** Filter by the object’s `isSystem` field. */ - isSystem?: BooleanFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Negates the expression. */ - not?: OrgProfileFilter; - /** Checks for any expressions in this list. */ - or?: OrgProfileFilter[]; - /** Filter by the object’s `orgInvitesByProfileId` relation. */ - orgInvitesByProfileId?: OrgProfileToManyOrgInviteFilter; - /** `orgInvitesByProfileId` exist. */ - orgInvitesByProfileIdExist?: boolean; - /** Filter by the object’s `orgMembershipProfilesByProfileId` relation. */ - orgMembershipProfilesByProfileId?: OrgProfileToManyOrgMembershipProfileFilter; - /** `orgMembershipProfilesByProfileId` exist. */ - orgMembershipProfilesByProfileIdExist?: boolean; - /** Filter by the object’s `orgMembershipsByProfileId` relation. */ - orgMembershipsByProfileId?: OrgProfileToManyOrgMembershipFilter; - /** `orgMembershipsByProfileId` exist. */ - orgMembershipsByProfileIdExist?: boolean; - /** Filter by the object’s `orgProfileCapabilitiesByProfileId` relation. */ - orgProfileCapabilitiesByProfileId?: OrgProfileToManyOrgProfileCapabilityFilter; - /** `orgProfileCapabilitiesByProfileId` exist. */ - orgProfileCapabilitiesByProfileIdExist?: boolean; - /** Filter by the object’s `orgProfileDefinitionGrantsByProfileId` relation. */ - orgProfileDefinitionGrantsByProfileId?: OrgProfileToManyOrgProfileDefinitionGrantFilter; - /** `orgProfileDefinitionGrantsByProfileId` exist. */ - orgProfileDefinitionGrantsByProfileIdExist?: boolean; - /** Filter by the object’s `orgProfileGrantsByProfileId` relation. */ - orgProfileGrantsByProfileId?: OrgProfileToManyOrgProfileGrantFilter; - /** `orgProfileGrantsByProfileId` exist. */ - orgProfileGrantsByProfileIdExist?: boolean; - /** Filter by the object’s `slug` field. */ - slug?: StringFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -/** A filter to be used against `OrgMemberProfile` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgMemberProfileFilter { - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Checks for all expressions in this list. */ - 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 `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 `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `membership` relation. */ - membership?: OrgMembershipFilter; - /** Filter by the object’s `membershipId` field. */ - membershipId?: UUIDFilter; - /** Negates the expression. */ - not?: OrgMemberProfileFilter; - /** Checks for any expressions in this list. */ - or?: OrgMemberProfileFilter[]; - /** Filter by the object’s `profilePicture` field. */ - profilePicture?: ConstructiveInternalTypeImageFilter; - /** Filter by the object’s `title` field. */ - title?: StringFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; + createdBy?: string; + createdByPrincipal?: string; + /** References the entity (org or group) this membership belongs to */ + entityId: string; + /** 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 */ + 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?: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: 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 `capability` relation. */ - capability?: AppCapabilityFilter; - /** 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 `OrgMembershipDefault` */ +export interface OrgMembershipDefaultInput { + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** References the entity these membership defaults apply to */ + entityId: string; + id?: string; + /** Whether new members are automatically approved upon joining */ + isApproved?: boolean; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; } -/** A connection to a list of `AppCapability` values. */ -// ============ Payload/Return Types (for custom operations) ============ -export interface AppCapabilityConnection { - edges: AppCapabilityEdge[]; - nodes: AppCapability[]; - pageInfo: PageInfo; - totalCount: number; +/** An input for mutations affecting `OrgMembershipSetting` */ +export interface OrgMembershipSettingInput { + /** Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) */ + allowExternalMembers?: boolean; + /** Whether principals (agents, API-key identities) may mint API keys and child sessions for this org; requires auth_settings.allow_principal_delegation too */ + allowPrincipalOwnedApiKeys?: 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?: string; + createdBy?: string; + createdByPrincipal?: string; + /** When a member is deleted, whether to cascade-remove their descendant-entity memberships */ + deleteMemberCascadeChildren?: boolean; + /** References the entity these settings apply to */ + entityId: string; + id?: string; + /** 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?: string; + updatedBy?: string; + updatedByPrincipal?: string; } -export type AppCapabilityConnectionSelect = { - edges?: { - select: AppCapabilityEdgeSelect; - }; - nodes?: { - select: AppCapabilitySelect; - }; - pageInfo?: { - select: PageInfoSelect; - }; - totalCount?: boolean; -}; -/** A connection to a list of `OrgCapability` values. */ -export interface OrgCapabilityConnection { - edges: OrgCapabilityEdge[]; - nodes: OrgCapability[]; - pageInfo: PageInfo; - totalCount: number; +/** An input for mutations affecting `OrgOwnerGrant` */ +export interface OrgOwnerGrantInput { + /** The member receiving or losing the ownership grant; NULL if user was deleted */ + actorId?: string; + createdAt?: string; + /** The entity (org or group) this ownership grant applies to */ + entityId: string; + grantorId?: string; + id?: string; + /** True to grant ownership, false to revoke ownership */ + isGrant?: boolean; + updatedAt?: string; } -export type OrgCapabilityConnectionSelect = { - edges?: { - select: OrgCapabilityEdgeSelect; - }; - nodes?: { - select: OrgCapabilitySelect; - }; - pageInfo?: { - select: PageInfoSelect; - }; - totalCount?: boolean; -}; +// ============ Payload/Return Types (for custom operations) ============ 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; + /** The logical bucket row that was queued for reconciliation. */ + bucketId: string; + bucketKey: string; + /** The reconciler job enqueued to provision this bucket. */ + jobId: string; + /** The physical bucket name already recorded, or null when reconciliation has not completed. */ + physicalName?: string | null; } export type ProvisionBucketPayloadSelect = { - accessType?: boolean; - bucketName?: boolean; - endpoint?: boolean; - error?: boolean; - provider?: boolean; - success?: boolean; + bucketId?: boolean; + bucketKey?: boolean; + jobId?: boolean; + physicalName?: boolean; }; export interface SubmitAppInviteCodePayload { clientMutationId?: string | null; @@ -6714,51 +3573,6 @@ export type DeleteAppAdminGrantPayloadSelect = { }; clientMutationId?: boolean; }; -export interface CreateAppCapabilityPayload { - /** The `AppCapability` that was created by this mutation. */ - appCapability?: AppCapability | null; - appCapabilityEdge?: AppCapabilityEdge | null; - clientMutationId?: string | null; -} -export type CreateAppCapabilityPayloadSelect = { - appCapability?: { - select: AppCapabilitySelect; - }; - appCapabilityEdge?: { - select: AppCapabilityEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface UpdateAppCapabilityPayload { - /** The `AppCapability` that was updated by this mutation. */ - appCapability?: AppCapability | null; - appCapabilityEdge?: AppCapabilityEdge | null; - clientMutationId?: string | null; -} -export type UpdateAppCapabilityPayloadSelect = { - appCapability?: { - select: AppCapabilitySelect; - }; - appCapabilityEdge?: { - select: AppCapabilityEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface DeleteAppCapabilityPayload { - /** The `AppCapability` that was deleted by this mutation. */ - appCapability?: AppCapability | null; - appCapabilityEdge?: AppCapabilityEdge | null; - clientMutationId?: string | null; -} -export type DeleteAppCapabilityPayloadSelect = { - appCapability?: { - select: AppCapabilitySelect; - }; - appCapabilityEdge?: { - select: AppCapabilityEdgeSelect; - }; - clientMutationId?: boolean; -}; export interface CreateAppCapabilityDefaultCapabilityPayload { /** The `AppCapabilityDefaultCapability` that was created by this mutation. */ appCapabilityDefaultCapability?: AppCapabilityDefaultCapability | null; @@ -6804,51 +3618,6 @@ export type DeleteAppCapabilityDefaultCapabilityPayloadSelect = { }; clientMutationId?: boolean; }; -export interface CreateAppCapabilityDefaultPayload { - /** The `AppCapabilityDefault` that was created by this mutation. */ - appCapabilityDefault?: AppCapabilityDefault | null; - appCapabilityDefaultEdge?: AppCapabilityDefaultEdge | null; - clientMutationId?: string | null; -} -export type CreateAppCapabilityDefaultPayloadSelect = { - appCapabilityDefault?: { - select: AppCapabilityDefaultSelect; - }; - appCapabilityDefaultEdge?: { - select: AppCapabilityDefaultEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface UpdateAppCapabilityDefaultPayload { - /** The `AppCapabilityDefault` that was updated by this mutation. */ - appCapabilityDefault?: AppCapabilityDefault | null; - appCapabilityDefaultEdge?: AppCapabilityDefaultEdge | null; - clientMutationId?: string | null; -} -export type UpdateAppCapabilityDefaultPayloadSelect = { - appCapabilityDefault?: { - select: AppCapabilityDefaultSelect; - }; - appCapabilityDefaultEdge?: { - select: AppCapabilityDefaultEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface DeleteAppCapabilityDefaultPayload { - /** The `AppCapabilityDefault` that was deleted by this mutation. */ - appCapabilityDefault?: AppCapabilityDefault | null; - appCapabilityDefaultEdge?: AppCapabilityDefaultEdge | null; - clientMutationId?: string | null; -} -export type DeleteAppCapabilityDefaultPayloadSelect = { - appCapabilityDefault?: { - select: AppCapabilityDefaultSelect; - }; - appCapabilityDefaultEdge?: { - select: AppCapabilityDefaultEdgeSelect; - }; - clientMutationId?: boolean; -}; export interface CreateAppCapabilityDefaultGrantPayload { /** The `AppCapabilityDefaultGrant` that was created by this mutation. */ appCapabilityDefaultGrant?: AppCapabilityDefaultGrant | null; @@ -7119,51 +3888,6 @@ export type DeleteAppMembershipDefaultPayloadSelect = { }; clientMutationId?: boolean; }; -export interface CreateAppMembershipProfilePayload { - /** The `AppMembershipProfile` that was created by this mutation. */ - appMembershipProfile?: AppMembershipProfile | null; - appMembershipProfileEdge?: AppMembershipProfileEdge | null; - clientMutationId?: string | null; -} -export type CreateAppMembershipProfilePayloadSelect = { - appMembershipProfile?: { - select: AppMembershipProfileSelect; - }; - appMembershipProfileEdge?: { - select: AppMembershipProfileEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface UpdateAppMembershipProfilePayload { - /** The `AppMembershipProfile` that was updated by this mutation. */ - appMembershipProfile?: AppMembershipProfile | null; - appMembershipProfileEdge?: AppMembershipProfileEdge | null; - clientMutationId?: string | null; -} -export type UpdateAppMembershipProfilePayloadSelect = { - appMembershipProfile?: { - select: AppMembershipProfileSelect; - }; - appMembershipProfileEdge?: { - select: AppMembershipProfileEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface DeleteAppMembershipProfilePayload { - /** The `AppMembershipProfile` that was deleted by this mutation. */ - appMembershipProfile?: AppMembershipProfile | null; - appMembershipProfileEdge?: AppMembershipProfileEdge | null; - clientMutationId?: string | null; -} -export type DeleteAppMembershipProfilePayloadSelect = { - appMembershipProfile?: { - select: AppMembershipProfileSelect; - }; - appMembershipProfileEdge?: { - select: AppMembershipProfileEdgeSelect; - }; - clientMutationId?: boolean; -}; export interface CreateAppOwnerGrantPayload { /** The `AppOwnerGrant` that was created by this mutation. */ appOwnerGrant?: AppOwnerGrant | null; @@ -7194,243 +3918,18 @@ export type UpdateAppOwnerGrantPayloadSelect = { }; clientMutationId?: boolean; }; -export interface DeleteAppOwnerGrantPayload { - /** The `AppOwnerGrant` that was deleted by this mutation. */ - appOwnerGrant?: AppOwnerGrant | null; - appOwnerGrantEdge?: AppOwnerGrantEdge | null; - clientMutationId?: string | null; -} -export type DeleteAppOwnerGrantPayloadSelect = { - appOwnerGrant?: { - select: AppOwnerGrantSelect; - }; - appOwnerGrantEdge?: { - select: AppOwnerGrantEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface CreateAppProfileCapabilityPayload { - /** The `AppProfileCapability` that was created by this mutation. */ - appProfileCapability?: AppProfileCapability | null; - appProfileCapabilityEdge?: AppProfileCapabilityEdge | null; - clientMutationId?: string | null; -} -export type CreateAppProfileCapabilityPayloadSelect = { - appProfileCapability?: { - select: AppProfileCapabilitySelect; - }; - appProfileCapabilityEdge?: { - select: AppProfileCapabilityEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface UpdateAppProfileCapabilityPayload { - /** The `AppProfileCapability` that was updated by this mutation. */ - appProfileCapability?: AppProfileCapability | null; - appProfileCapabilityEdge?: AppProfileCapabilityEdge | null; - clientMutationId?: string | null; -} -export type UpdateAppProfileCapabilityPayloadSelect = { - appProfileCapability?: { - select: AppProfileCapabilitySelect; - }; - appProfileCapabilityEdge?: { - select: AppProfileCapabilityEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface DeleteAppProfileCapabilityPayload { - /** The `AppProfileCapability` that was deleted by this mutation. */ - appProfileCapability?: AppProfileCapability | null; - appProfileCapabilityEdge?: AppProfileCapabilityEdge | null; - clientMutationId?: string | null; -} -export type DeleteAppProfileCapabilityPayloadSelect = { - appProfileCapability?: { - select: AppProfileCapabilitySelect; - }; - appProfileCapabilityEdge?: { - select: AppProfileCapabilityEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface CreateAppProfilePayload { - /** The `AppProfile` that was created by this mutation. */ - appProfile?: AppProfile | null; - appProfileEdge?: AppProfileEdge | null; - clientMutationId?: string | null; -} -export type CreateAppProfilePayloadSelect = { - appProfile?: { - select: AppProfileSelect; - }; - appProfileEdge?: { - select: AppProfileEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface UpdateAppProfilePayload { - /** The `AppProfile` that was updated by this mutation. */ - appProfile?: AppProfile | null; - appProfileEdge?: AppProfileEdge | null; - clientMutationId?: string | null; -} -export type UpdateAppProfilePayloadSelect = { - appProfile?: { - select: AppProfileSelect; - }; - appProfileEdge?: { - select: AppProfileEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface DeleteAppProfilePayload { - /** The `AppProfile` that was deleted by this mutation. */ - appProfile?: AppProfile | null; - appProfileEdge?: AppProfileEdge | null; - clientMutationId?: string | null; -} -export type DeleteAppProfilePayloadSelect = { - appProfile?: { - select: AppProfileSelect; - }; - appProfileEdge?: { - select: AppProfileEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface CreateAppProfileDefinitionGrantPayload { - /** The `AppProfileDefinitionGrant` that was created by this mutation. */ - appProfileDefinitionGrant?: AppProfileDefinitionGrant | null; - appProfileDefinitionGrantEdge?: AppProfileDefinitionGrantEdge | null; - clientMutationId?: string | null; -} -export type CreateAppProfileDefinitionGrantPayloadSelect = { - appProfileDefinitionGrant?: { - select: AppProfileDefinitionGrantSelect; - }; - appProfileDefinitionGrantEdge?: { - select: AppProfileDefinitionGrantEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface UpdateAppProfileDefinitionGrantPayload { - /** The `AppProfileDefinitionGrant` that was updated by this mutation. */ - appProfileDefinitionGrant?: AppProfileDefinitionGrant | null; - appProfileDefinitionGrantEdge?: AppProfileDefinitionGrantEdge | null; - clientMutationId?: string | null; -} -export type UpdateAppProfileDefinitionGrantPayloadSelect = { - appProfileDefinitionGrant?: { - select: AppProfileDefinitionGrantSelect; - }; - appProfileDefinitionGrantEdge?: { - select: AppProfileDefinitionGrantEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface DeleteAppProfileDefinitionGrantPayload { - /** The `AppProfileDefinitionGrant` that was deleted by this mutation. */ - appProfileDefinitionGrant?: AppProfileDefinitionGrant | null; - appProfileDefinitionGrantEdge?: AppProfileDefinitionGrantEdge | null; - clientMutationId?: string | null; -} -export type DeleteAppProfileDefinitionGrantPayloadSelect = { - appProfileDefinitionGrant?: { - select: AppProfileDefinitionGrantSelect; - }; - appProfileDefinitionGrantEdge?: { - select: AppProfileDefinitionGrantEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface CreateAppProfileGrantPayload { - /** The `AppProfileGrant` that was created by this mutation. */ - appProfileGrant?: AppProfileGrant | null; - appProfileGrantEdge?: AppProfileGrantEdge | null; - clientMutationId?: string | null; -} -export type CreateAppProfileGrantPayloadSelect = { - appProfileGrant?: { - select: AppProfileGrantSelect; - }; - appProfileGrantEdge?: { - select: AppProfileGrantEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface UpdateAppProfileGrantPayload { - /** The `AppProfileGrant` that was updated by this mutation. */ - appProfileGrant?: AppProfileGrant | null; - appProfileGrantEdge?: AppProfileGrantEdge | null; - clientMutationId?: string | null; -} -export type UpdateAppProfileGrantPayloadSelect = { - appProfileGrant?: { - select: AppProfileGrantSelect; - }; - appProfileGrantEdge?: { - select: AppProfileGrantEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface DeleteAppProfileGrantPayload { - /** The `AppProfileGrant` that was deleted by this mutation. */ - appProfileGrant?: AppProfileGrant | null; - appProfileGrantEdge?: AppProfileGrantEdge | null; - clientMutationId?: string | null; -} -export type DeleteAppProfileGrantPayloadSelect = { - appProfileGrant?: { - select: AppProfileGrantSelect; - }; - appProfileGrantEdge?: { - select: AppProfileGrantEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface CreateAppProfileTemplatePayload { - /** The `AppProfileTemplate` that was created by this mutation. */ - appProfileTemplate?: AppProfileTemplate | null; - appProfileTemplateEdge?: AppProfileTemplateEdge | null; - clientMutationId?: string | null; -} -export type CreateAppProfileTemplatePayloadSelect = { - appProfileTemplate?: { - select: AppProfileTemplateSelect; - }; - appProfileTemplateEdge?: { - select: AppProfileTemplateEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface UpdateAppProfileTemplatePayload { - /** The `AppProfileTemplate` that was updated by this mutation. */ - appProfileTemplate?: AppProfileTemplate | null; - appProfileTemplateEdge?: AppProfileTemplateEdge | null; - clientMutationId?: string | null; -} -export type UpdateAppProfileTemplatePayloadSelect = { - appProfileTemplate?: { - select: AppProfileTemplateSelect; - }; - appProfileTemplateEdge?: { - select: AppProfileTemplateEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface DeleteAppProfileTemplatePayload { - /** The `AppProfileTemplate` that was deleted by this mutation. */ - appProfileTemplate?: AppProfileTemplate | null; - appProfileTemplateEdge?: AppProfileTemplateEdge | null; +export interface DeleteAppOwnerGrantPayload { + /** The `AppOwnerGrant` that was deleted by this mutation. */ + appOwnerGrant?: AppOwnerGrant | null; + appOwnerGrantEdge?: AppOwnerGrantEdge | null; clientMutationId?: string | null; } -export type DeleteAppProfileTemplatePayloadSelect = { - appProfileTemplate?: { - select: AppProfileTemplateSelect; +export type DeleteAppOwnerGrantPayloadSelect = { + appOwnerGrant?: { + select: AppOwnerGrantSelect; }; - appProfileTemplateEdge?: { - select: AppProfileTemplateEdgeSelect; + appOwnerGrantEdge?: { + select: AppOwnerGrantEdgeSelect; }; clientMutationId?: boolean; }; @@ -7524,51 +4023,6 @@ export type DeleteOrgAdminGrantPayloadSelect = { select: OrgAdminGrantEdgeSelect; }; }; -export interface CreateOrgCapabilityPayload { - clientMutationId?: string | null; - /** The `OrgCapability` that was created by this mutation. */ - orgCapability?: OrgCapability | null; - orgCapabilityEdge?: OrgCapabilityEdge | null; -} -export type CreateOrgCapabilityPayloadSelect = { - clientMutationId?: boolean; - orgCapability?: { - select: OrgCapabilitySelect; - }; - orgCapabilityEdge?: { - select: OrgCapabilityEdgeSelect; - }; -}; -export interface UpdateOrgCapabilityPayload { - clientMutationId?: string | null; - /** The `OrgCapability` that was updated by this mutation. */ - orgCapability?: OrgCapability | null; - orgCapabilityEdge?: OrgCapabilityEdge | null; -} -export type UpdateOrgCapabilityPayloadSelect = { - clientMutationId?: boolean; - orgCapability?: { - select: OrgCapabilitySelect; - }; - orgCapabilityEdge?: { - select: OrgCapabilityEdgeSelect; - }; -}; -export interface DeleteOrgCapabilityPayload { - clientMutationId?: string | null; - /** The `OrgCapability` that was deleted by this mutation. */ - orgCapability?: OrgCapability | null; - orgCapabilityEdge?: OrgCapabilityEdge | null; -} -export type DeleteOrgCapabilityPayloadSelect = { - clientMutationId?: boolean; - orgCapability?: { - select: OrgCapabilitySelect; - }; - orgCapabilityEdge?: { - select: OrgCapabilityEdgeSelect; - }; -}; export interface CreateOrgCapabilityDefaultCapabilityPayload { clientMutationId?: string | null; /** The `OrgCapabilityDefaultCapability` that was created by this mutation. */ @@ -7614,51 +4068,6 @@ export type DeleteOrgCapabilityDefaultCapabilityPayloadSelect = { select: OrgCapabilityDefaultCapabilityEdgeSelect; }; }; -export interface CreateOrgCapabilityDefaultPayload { - clientMutationId?: string | null; - /** The `OrgCapabilityDefault` that was created by this mutation. */ - orgCapabilityDefault?: OrgCapabilityDefault | null; - orgCapabilityDefaultEdge?: OrgCapabilityDefaultEdge | null; -} -export type CreateOrgCapabilityDefaultPayloadSelect = { - clientMutationId?: boolean; - orgCapabilityDefault?: { - select: OrgCapabilityDefaultSelect; - }; - orgCapabilityDefaultEdge?: { - select: OrgCapabilityDefaultEdgeSelect; - }; -}; -export interface UpdateOrgCapabilityDefaultPayload { - clientMutationId?: string | null; - /** The `OrgCapabilityDefault` that was updated by this mutation. */ - orgCapabilityDefault?: OrgCapabilityDefault | null; - orgCapabilityDefaultEdge?: OrgCapabilityDefaultEdge | null; -} -export type UpdateOrgCapabilityDefaultPayloadSelect = { - clientMutationId?: boolean; - orgCapabilityDefault?: { - select: OrgCapabilityDefaultSelect; - }; - orgCapabilityDefaultEdge?: { - select: OrgCapabilityDefaultEdgeSelect; - }; -}; -export interface DeleteOrgCapabilityDefaultPayload { - clientMutationId?: string | null; - /** The `OrgCapabilityDefault` that was deleted by this mutation. */ - orgCapabilityDefault?: OrgCapabilityDefault | null; - orgCapabilityDefaultEdge?: OrgCapabilityDefaultEdge | null; -} -export type DeleteOrgCapabilityDefaultPayloadSelect = { - clientMutationId?: boolean; - orgCapabilityDefault?: { - select: OrgCapabilityDefaultSelect; - }; - orgCapabilityDefaultEdge?: { - select: OrgCapabilityDefaultEdgeSelect; - }; -}; export interface CreateOrgCapabilityDefaultGrantPayload { clientMutationId?: string | null; /** The `OrgCapabilityDefaultGrant` that was created by this mutation. */ @@ -8109,51 +4518,6 @@ export type DeleteOrgMembershipDefaultPayloadSelect = { select: OrgMembershipDefaultEdgeSelect; }; }; -export interface CreateOrgMembershipProfilePayload { - clientMutationId?: string | null; - /** The `OrgMembershipProfile` that was created by this mutation. */ - orgMembershipProfile?: OrgMembershipProfile | null; - orgMembershipProfileEdge?: OrgMembershipProfileEdge | null; -} -export type CreateOrgMembershipProfilePayloadSelect = { - clientMutationId?: boolean; - orgMembershipProfile?: { - select: OrgMembershipProfileSelect; - }; - orgMembershipProfileEdge?: { - select: OrgMembershipProfileEdgeSelect; - }; -}; -export interface UpdateOrgMembershipProfilePayload { - clientMutationId?: string | null; - /** The `OrgMembershipProfile` that was updated by this mutation. */ - orgMembershipProfile?: OrgMembershipProfile | null; - orgMembershipProfileEdge?: OrgMembershipProfileEdge | null; -} -export type UpdateOrgMembershipProfilePayloadSelect = { - clientMutationId?: boolean; - orgMembershipProfile?: { - select: OrgMembershipProfileSelect; - }; - orgMembershipProfileEdge?: { - select: OrgMembershipProfileEdgeSelect; - }; -}; -export interface DeleteOrgMembershipProfilePayload { - clientMutationId?: string | null; - /** The `OrgMembershipProfile` that was deleted by this mutation. */ - orgMembershipProfile?: OrgMembershipProfile | null; - orgMembershipProfileEdge?: OrgMembershipProfileEdge | null; -} -export type DeleteOrgMembershipProfilePayloadSelect = { - clientMutationId?: boolean; - orgMembershipProfile?: { - select: OrgMembershipProfileSelect; - }; - orgMembershipProfileEdge?: { - select: OrgMembershipProfileEdgeSelect; - }; -}; export interface CreateOrgMembershipSettingPayload { clientMutationId?: string | null; /** The `OrgMembershipSetting` that was created by this mutation. */ @@ -8244,272 +4608,6 @@ export type DeleteOrgOwnerGrantPayloadSelect = { select: OrgOwnerGrantEdgeSelect; }; }; -export interface CreateOrgProfileCapabilityPayload { - clientMutationId?: string | null; - /** The `OrgProfileCapability` that was created by this mutation. */ - orgProfileCapability?: OrgProfileCapability | null; - orgProfileCapabilityEdge?: OrgProfileCapabilityEdge | null; -} -export type CreateOrgProfileCapabilityPayloadSelect = { - clientMutationId?: boolean; - orgProfileCapability?: { - select: OrgProfileCapabilitySelect; - }; - orgProfileCapabilityEdge?: { - select: OrgProfileCapabilityEdgeSelect; - }; -}; -export interface UpdateOrgProfileCapabilityPayload { - clientMutationId?: string | null; - /** The `OrgProfileCapability` that was updated by this mutation. */ - orgProfileCapability?: OrgProfileCapability | null; - orgProfileCapabilityEdge?: OrgProfileCapabilityEdge | null; -} -export type UpdateOrgProfileCapabilityPayloadSelect = { - clientMutationId?: boolean; - orgProfileCapability?: { - select: OrgProfileCapabilitySelect; - }; - orgProfileCapabilityEdge?: { - select: OrgProfileCapabilityEdgeSelect; - }; -}; -export interface DeleteOrgProfileCapabilityPayload { - clientMutationId?: string | null; - /** The `OrgProfileCapability` that was deleted by this mutation. */ - orgProfileCapability?: OrgProfileCapability | null; - orgProfileCapabilityEdge?: OrgProfileCapabilityEdge | null; -} -export type DeleteOrgProfileCapabilityPayloadSelect = { - clientMutationId?: boolean; - orgProfileCapability?: { - select: OrgProfileCapabilitySelect; - }; - orgProfileCapabilityEdge?: { - select: OrgProfileCapabilityEdgeSelect; - }; -}; -export interface CreateOrgProfilePayload { - clientMutationId?: string | null; - /** The `OrgProfile` that was created by this mutation. */ - orgProfile?: OrgProfile | null; - orgProfileEdge?: OrgProfileEdge | null; -} -export type CreateOrgProfilePayloadSelect = { - clientMutationId?: boolean; - orgProfile?: { - select: OrgProfileSelect; - }; - orgProfileEdge?: { - select: OrgProfileEdgeSelect; - }; -}; -export interface UpdateOrgProfilePayload { - clientMutationId?: string | null; - /** The `OrgProfile` that was updated by this mutation. */ - orgProfile?: OrgProfile | null; - orgProfileEdge?: OrgProfileEdge | null; -} -export type UpdateOrgProfilePayloadSelect = { - clientMutationId?: boolean; - orgProfile?: { - select: OrgProfileSelect; - }; - orgProfileEdge?: { - select: OrgProfileEdgeSelect; - }; -}; -export interface DeleteOrgProfilePayload { - clientMutationId?: string | null; - /** The `OrgProfile` that was deleted by this mutation. */ - orgProfile?: OrgProfile | null; - orgProfileEdge?: OrgProfileEdge | null; -} -export type DeleteOrgProfilePayloadSelect = { - clientMutationId?: boolean; - orgProfile?: { - select: OrgProfileSelect; - }; - orgProfileEdge?: { - select: OrgProfileEdgeSelect; - }; -}; -export interface CreateOrgProfileDefinitionGrantPayload { - clientMutationId?: string | null; - /** The `OrgProfileDefinitionGrant` that was created by this mutation. */ - orgProfileDefinitionGrant?: OrgProfileDefinitionGrant | null; - orgProfileDefinitionGrantEdge?: OrgProfileDefinitionGrantEdge | null; -} -export type CreateOrgProfileDefinitionGrantPayloadSelect = { - clientMutationId?: boolean; - orgProfileDefinitionGrant?: { - select: OrgProfileDefinitionGrantSelect; - }; - orgProfileDefinitionGrantEdge?: { - select: OrgProfileDefinitionGrantEdgeSelect; - }; -}; -export interface UpdateOrgProfileDefinitionGrantPayload { - clientMutationId?: string | null; - /** The `OrgProfileDefinitionGrant` that was updated by this mutation. */ - orgProfileDefinitionGrant?: OrgProfileDefinitionGrant | null; - orgProfileDefinitionGrantEdge?: OrgProfileDefinitionGrantEdge | null; -} -export type UpdateOrgProfileDefinitionGrantPayloadSelect = { - clientMutationId?: boolean; - orgProfileDefinitionGrant?: { - select: OrgProfileDefinitionGrantSelect; - }; - orgProfileDefinitionGrantEdge?: { - select: OrgProfileDefinitionGrantEdgeSelect; - }; -}; -export interface DeleteOrgProfileDefinitionGrantPayload { - clientMutationId?: string | null; - /** The `OrgProfileDefinitionGrant` that was deleted by this mutation. */ - orgProfileDefinitionGrant?: OrgProfileDefinitionGrant | null; - orgProfileDefinitionGrantEdge?: OrgProfileDefinitionGrantEdge | null; -} -export type DeleteOrgProfileDefinitionGrantPayloadSelect = { - clientMutationId?: boolean; - orgProfileDefinitionGrant?: { - select: OrgProfileDefinitionGrantSelect; - }; - orgProfileDefinitionGrantEdge?: { - select: OrgProfileDefinitionGrantEdgeSelect; - }; -}; -export interface CreateOrgProfileGrantPayload { - clientMutationId?: string | null; - /** The `OrgProfileGrant` that was created by this mutation. */ - orgProfileGrant?: OrgProfileGrant | null; - orgProfileGrantEdge?: OrgProfileGrantEdge | null; -} -export type CreateOrgProfileGrantPayloadSelect = { - clientMutationId?: boolean; - orgProfileGrant?: { - select: OrgProfileGrantSelect; - }; - orgProfileGrantEdge?: { - select: OrgProfileGrantEdgeSelect; - }; -}; -export interface UpdateOrgProfileGrantPayload { - clientMutationId?: string | null; - /** The `OrgProfileGrant` that was updated by this mutation. */ - orgProfileGrant?: OrgProfileGrant | null; - orgProfileGrantEdge?: OrgProfileGrantEdge | null; -} -export type UpdateOrgProfileGrantPayloadSelect = { - clientMutationId?: boolean; - orgProfileGrant?: { - select: OrgProfileGrantSelect; - }; - orgProfileGrantEdge?: { - select: OrgProfileGrantEdgeSelect; - }; -}; -export interface DeleteOrgProfileGrantPayload { - clientMutationId?: string | null; - /** The `OrgProfileGrant` that was deleted by this mutation. */ - orgProfileGrant?: OrgProfileGrant | null; - orgProfileGrantEdge?: OrgProfileGrantEdge | null; -} -export type DeleteOrgProfileGrantPayloadSelect = { - clientMutationId?: boolean; - orgProfileGrant?: { - select: OrgProfileGrantSelect; - }; - orgProfileGrantEdge?: { - select: OrgProfileGrantEdgeSelect; - }; -}; -export interface CreateOrgProfileTemplatePayload { - clientMutationId?: string | null; - /** The `OrgProfileTemplate` that was created by this mutation. */ - orgProfileTemplate?: OrgProfileTemplate | null; - orgProfileTemplateEdge?: OrgProfileTemplateEdge | null; -} -export type CreateOrgProfileTemplatePayloadSelect = { - clientMutationId?: boolean; - orgProfileTemplate?: { - select: OrgProfileTemplateSelect; - }; - orgProfileTemplateEdge?: { - select: OrgProfileTemplateEdgeSelect; - }; -}; -export interface UpdateOrgProfileTemplatePayload { - clientMutationId?: string | null; - /** The `OrgProfileTemplate` that was updated by this mutation. */ - orgProfileTemplate?: OrgProfileTemplate | null; - orgProfileTemplateEdge?: OrgProfileTemplateEdge | null; -} -export type UpdateOrgProfileTemplatePayloadSelect = { - clientMutationId?: boolean; - orgProfileTemplate?: { - select: OrgProfileTemplateSelect; - }; - orgProfileTemplateEdge?: { - select: OrgProfileTemplateEdgeSelect; - }; -}; -export interface DeleteOrgProfileTemplatePayload { - clientMutationId?: string | null; - /** The `OrgProfileTemplate` that was deleted by this mutation. */ - orgProfileTemplate?: OrgProfileTemplate | null; - orgProfileTemplateEdge?: OrgProfileTemplateEdge | null; -} -export type DeleteOrgProfileTemplatePayloadSelect = { - clientMutationId?: boolean; - orgProfileTemplate?: { - select: OrgProfileTemplateSelect; - }; - orgProfileTemplateEdge?: { - select: OrgProfileTemplateEdgeSelect; - }; -}; -/** A `AppCapability` edge in the connection. */ -export interface AppCapabilityEdge { - cursor?: string | null; - /** The `AppCapability` at the end of the edge. */ - node?: AppCapability | null; -} -export type AppCapabilityEdgeSelect = { - cursor?: boolean; - node?: { - select: AppCapabilitySelect; - }; -}; -/** 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 `OrgCapability` edge in the connection. */ -export interface OrgCapabilityEdge { - cursor?: string | null; - /** The `OrgCapability` at the end of the edge. */ - node?: OrgCapability | null; -} -export type OrgCapabilityEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgCapabilitySelect; - }; -}; /** A `AppAdminGrant` edge in the connection. */ export interface AppAdminGrantEdge { cursor?: string | null; @@ -8534,18 +4632,6 @@ export type AppCapabilityDefaultCapabilityEdgeSelect = { select: AppCapabilityDefaultCapabilitySelect; }; }; -/** A `AppCapabilityDefault` edge in the connection. */ -export interface AppCapabilityDefaultEdge { - cursor?: string | null; - /** The `AppCapabilityDefault` at the end of the edge. */ - node?: AppCapabilityDefault | null; -} -export type AppCapabilityDefaultEdgeSelect = { - cursor?: boolean; - node?: { - select: AppCapabilityDefaultSelect; - }; -}; /** A `AppCapabilityDefaultGrant` edge in the connection. */ export interface AppCapabilityDefaultGrantEdge { cursor?: string | null; @@ -8618,18 +4704,6 @@ export type AppMembershipDefaultEdgeSelect = { select: AppMembershipDefaultSelect; }; }; -/** A `AppMembershipProfile` edge in the connection. */ -export interface AppMembershipProfileEdge { - cursor?: string | null; - /** The `AppMembershipProfile` at the end of the edge. */ - node?: AppMembershipProfile | null; -} -export type AppMembershipProfileEdgeSelect = { - cursor?: boolean; - node?: { - select: AppMembershipProfileSelect; - }; -}; /** A `AppOwnerGrant` edge in the connection. */ export interface AppOwnerGrantEdge { cursor?: string | null; @@ -8642,66 +4716,6 @@ export type AppOwnerGrantEdgeSelect = { select: AppOwnerGrantSelect; }; }; -/** A `AppProfileCapability` edge in the connection. */ -export interface AppProfileCapabilityEdge { - cursor?: string | null; - /** The `AppProfileCapability` at the end of the edge. */ - node?: AppProfileCapability | null; -} -export type AppProfileCapabilityEdgeSelect = { - cursor?: boolean; - node?: { - select: AppProfileCapabilitySelect; - }; -}; -/** A `AppProfile` edge in the connection. */ -export interface AppProfileEdge { - cursor?: string | null; - /** The `AppProfile` at the end of the edge. */ - node?: AppProfile | null; -} -export type AppProfileEdgeSelect = { - cursor?: boolean; - node?: { - select: AppProfileSelect; - }; -}; -/** A `AppProfileDefinitionGrant` edge in the connection. */ -export interface AppProfileDefinitionGrantEdge { - cursor?: string | null; - /** The `AppProfileDefinitionGrant` at the end of the edge. */ - node?: AppProfileDefinitionGrant | null; -} -export type AppProfileDefinitionGrantEdgeSelect = { - cursor?: boolean; - node?: { - select: AppProfileDefinitionGrantSelect; - }; -}; -/** A `AppProfileGrant` edge in the connection. */ -export interface AppProfileGrantEdge { - cursor?: string | null; - /** The `AppProfileGrant` at the end of the edge. */ - node?: AppProfileGrant | null; -} -export type AppProfileGrantEdgeSelect = { - cursor?: boolean; - node?: { - select: AppProfileGrantSelect; - }; -}; -/** A `AppProfileTemplate` edge in the connection. */ -export interface AppProfileTemplateEdge { - cursor?: string | null; - /** The `AppProfileTemplate` at the end of the edge. */ - node?: AppProfileTemplate | null; -} -export type AppProfileTemplateEdgeSelect = { - cursor?: boolean; - node?: { - select: AppProfileTemplateSelect; - }; -}; /** A `MembershipType` edge in the connection. */ export interface MembershipTypeEdge { cursor?: string | null; @@ -8738,18 +4752,6 @@ export type OrgCapabilityDefaultCapabilityEdgeSelect = { select: OrgCapabilityDefaultCapabilitySelect; }; }; -/** A `OrgCapabilityDefault` edge in the connection. */ -export interface OrgCapabilityDefaultEdge { - cursor?: string | null; - /** The `OrgCapabilityDefault` at the end of the edge. */ - node?: OrgCapabilityDefault | null; -} -export type OrgCapabilityDefaultEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgCapabilityDefaultSelect; - }; -}; /** A `OrgCapabilityDefaultGrant` edge in the connection. */ export interface OrgCapabilityDefaultGrantEdge { cursor?: string | null; @@ -8870,18 +4872,6 @@ export type OrgMembershipDefaultEdgeSelect = { select: OrgMembershipDefaultSelect; }; }; -/** A `OrgMembershipProfile` edge in the connection. */ -export interface OrgMembershipProfileEdge { - cursor?: string | null; - /** The `OrgMembershipProfile` at the end of the edge. */ - node?: OrgMembershipProfile | null; -} -export type OrgMembershipProfileEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgMembershipProfileSelect; - }; -}; /** A `OrgMembershipSetting` edge in the connection. */ export interface OrgMembershipSettingEdge { cursor?: string | null; @@ -8906,63 +4896,3 @@ export type OrgOwnerGrantEdgeSelect = { select: OrgOwnerGrantSelect; }; }; -/** A `OrgProfileCapability` edge in the connection. */ -export interface OrgProfileCapabilityEdge { - cursor?: string | null; - /** The `OrgProfileCapability` at the end of the edge. */ - node?: OrgProfileCapability | null; -} -export type OrgProfileCapabilityEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgProfileCapabilitySelect; - }; -}; -/** A `OrgProfile` edge in the connection. */ -export interface OrgProfileEdge { - cursor?: string | null; - /** The `OrgProfile` at the end of the edge. */ - node?: OrgProfile | null; -} -export type OrgProfileEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgProfileSelect; - }; -}; -/** A `OrgProfileDefinitionGrant` edge in the connection. */ -export interface OrgProfileDefinitionGrantEdge { - cursor?: string | null; - /** The `OrgProfileDefinitionGrant` at the end of the edge. */ - node?: OrgProfileDefinitionGrant | null; -} -export type OrgProfileDefinitionGrantEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgProfileDefinitionGrantSelect; - }; -}; -/** A `OrgProfileGrant` edge in the connection. */ -export interface OrgProfileGrantEdge { - cursor?: string | null; - /** The `OrgProfileGrant` at the end of the edge. */ - node?: OrgProfileGrant | null; -} -export type OrgProfileGrantEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgProfileGrantSelect; - }; -}; -/** A `OrgProfileTemplate` edge in the connection. */ -export interface OrgProfileTemplateEdge { - cursor?: string | null; - /** The `OrgProfileTemplate` at the end of the edge. */ - node?: OrgProfileTemplate | null; -} -export type OrgProfileTemplateEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgProfileTemplateSelect; - }; -}; diff --git a/sdk/constructive-react/src/admin/orm/models/appCapability.ts b/sdk/constructive-react/src/admin/orm/models/appCapability.ts deleted file mode 100644 index fc1636fe62..0000000000 --- a/sdk/constructive-react/src/admin/orm/models/appCapability.ts +++ /dev/null @@ -1,245 +0,0 @@ -/** - * AppCapability 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 { - AppCapability, - AppCapabilityWithRelations, - AppCapabilitySelect, - AppCapabilityFilter, - AppCapabilityOrderBy, - CreateAppCapabilityInput, - UpdateAppCapabilityInput, - AppCapabilityPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AppCapabilityModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appCapabilities: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'AppCapability', - 'appCapabilities', - 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, - }, - 'AppCapabilityFilter', - 'AppCapabilityOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppCapability', - fieldName: 'appCapabilities', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appCapability: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AppCapability', - 'appCapabilities', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AppCapabilityFilter', - 'AppCapabilityOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppCapability', - fieldName: 'appCapability', - document, - variables, - transform: (data: { - appCapabilities?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appCapability: data.appCapabilities?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - appCapability: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AppCapability', - 'appCapabilities', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AppCapabilityFilter', - 'AppCapabilityOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppCapability', - fieldName: 'appCapability', - document, - variables, - transform: (data: { - appCapabilities?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appCapability: data.appCapabilities?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppCapability: { - appCapability: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppCapability', - 'createAppCapability', - 'appCapability', - args.select, - args.data, - 'CreateAppCapabilityInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppCapability', - fieldName: 'createAppCapability', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AppCapabilityPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAppCapability: { - appCapability: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AppCapability', - 'updateAppCapability', - 'appCapability', - args.select, - args.where.id, - args.data, - 'UpdateAppCapabilityInput', - 'id', - 'appCapabilityPatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppCapability', - fieldName: 'updateAppCapability', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAppCapability: { - appCapability: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AppCapability', - 'deleteAppCapability', - 'appCapability', - { - id: args.where.id, - }, - 'DeleteAppCapabilityInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppCapability', - fieldName: 'deleteAppCapability', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/admin/orm/models/appCapabilityDefault.ts b/sdk/constructive-react/src/admin/orm/models/appCapabilityDefault.ts deleted file mode 100644 index 815d62d3fc..0000000000 --- a/sdk/constructive-react/src/admin/orm/models/appCapabilityDefault.ts +++ /dev/null @@ -1,247 +0,0 @@ -/** - * AppCapabilityDefault 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 { - AppCapabilityDefault, - AppCapabilityDefaultWithRelations, - AppCapabilityDefaultSelect, - AppCapabilityDefaultFilter, - AppCapabilityDefaultOrderBy, - CreateAppCapabilityDefaultInput, - UpdateAppCapabilityDefaultInput, - AppCapabilityDefaultPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AppCapabilityDefaultModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appCapabilityDefaults: ConnectionResult< - InferSelectResult - >; - }> { - const { document, variables } = buildFindManyDocument( - 'AppCapabilityDefault', - 'appCapabilityDefaults', - 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, - }, - 'AppCapabilityDefaultFilter', - 'AppCapabilityDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppCapabilityDefault', - fieldName: 'appCapabilityDefaults', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appCapabilityDefault: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AppCapabilityDefault', - 'appCapabilityDefaults', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AppCapabilityDefaultFilter', - 'AppCapabilityDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppCapabilityDefault', - fieldName: 'appCapabilityDefault', - document, - variables, - transform: (data: { - appCapabilityDefaults?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appCapabilityDefault: data.appCapabilityDefaults?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - appCapabilityDefault: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AppCapabilityDefault', - 'appCapabilityDefaults', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AppCapabilityDefaultFilter', - 'AppCapabilityDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppCapabilityDefault', - fieldName: 'appCapabilityDefault', - document, - variables, - transform: (data: { - appCapabilityDefaults?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appCapabilityDefault: data.appCapabilityDefaults?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppCapabilityDefault: { - appCapabilityDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppCapabilityDefault', - 'createAppCapabilityDefault', - 'appCapabilityDefault', - args.select, - args.data, - 'CreateAppCapabilityDefaultInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppCapabilityDefault', - fieldName: 'createAppCapabilityDefault', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AppCapabilityDefaultPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAppCapabilityDefault: { - appCapabilityDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AppCapabilityDefault', - 'updateAppCapabilityDefault', - 'appCapabilityDefault', - args.select, - args.where.id, - args.data, - 'UpdateAppCapabilityDefaultInput', - 'id', - 'appCapabilityDefaultPatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppCapabilityDefault', - fieldName: 'updateAppCapabilityDefault', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAppCapabilityDefault: { - appCapabilityDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AppCapabilityDefault', - 'deleteAppCapabilityDefault', - 'appCapabilityDefault', - { - id: args.where.id, - }, - 'DeleteAppCapabilityDefaultInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppCapabilityDefault', - fieldName: 'deleteAppCapabilityDefault', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/admin/orm/models/appMembershipProfile.ts b/sdk/constructive-react/src/admin/orm/models/appMembershipProfile.ts deleted file mode 100644 index b3c39ef078..0000000000 --- a/sdk/constructive-react/src/admin/orm/models/appMembershipProfile.ts +++ /dev/null @@ -1,247 +0,0 @@ -/** - * AppMembershipProfile 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 { - AppMembershipProfile, - AppMembershipProfileWithRelations, - AppMembershipProfileSelect, - AppMembershipProfileFilter, - AppMembershipProfileOrderBy, - CreateAppMembershipProfileInput, - UpdateAppMembershipProfileInput, - AppMembershipProfilePatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AppMembershipProfileModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appMembershipProfiles: ConnectionResult< - InferSelectResult - >; - }> { - const { document, variables } = buildFindManyDocument( - 'AppMembershipProfile', - 'appMembershipProfiles', - 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, - }, - 'AppMembershipProfileFilter', - 'AppMembershipProfileOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppMembershipProfile', - fieldName: 'appMembershipProfiles', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appMembershipProfile: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AppMembershipProfile', - 'appMembershipProfiles', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AppMembershipProfileFilter', - 'AppMembershipProfileOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppMembershipProfile', - fieldName: 'appMembershipProfile', - document, - variables, - transform: (data: { - appMembershipProfiles?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appMembershipProfile: data.appMembershipProfiles?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - appMembershipProfile: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AppMembershipProfile', - 'appMembershipProfiles', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AppMembershipProfileFilter', - 'AppMembershipProfileOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppMembershipProfile', - fieldName: 'appMembershipProfile', - document, - variables, - transform: (data: { - appMembershipProfiles?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appMembershipProfile: data.appMembershipProfiles?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppMembershipProfile: { - appMembershipProfile: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppMembershipProfile', - 'createAppMembershipProfile', - 'appMembershipProfile', - args.select, - args.data, - 'CreateAppMembershipProfileInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppMembershipProfile', - fieldName: 'createAppMembershipProfile', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AppMembershipProfilePatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAppMembershipProfile: { - appMembershipProfile: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AppMembershipProfile', - 'updateAppMembershipProfile', - 'appMembershipProfile', - args.select, - args.where.id, - args.data, - 'UpdateAppMembershipProfileInput', - 'id', - 'appMembershipProfilePatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppMembershipProfile', - fieldName: 'updateAppMembershipProfile', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAppMembershipProfile: { - appMembershipProfile: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AppMembershipProfile', - 'deleteAppMembershipProfile', - 'appMembershipProfile', - { - id: args.where.id, - }, - 'DeleteAppMembershipProfileInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppMembershipProfile', - fieldName: 'deleteAppMembershipProfile', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/admin/orm/models/appProfile.ts b/sdk/constructive-react/src/admin/orm/models/appProfile.ts deleted file mode 100644 index b8a4c48d92..0000000000 --- a/sdk/constructive-react/src/admin/orm/models/appProfile.ts +++ /dev/null @@ -1,245 +0,0 @@ -/** - * AppProfile 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 { - AppProfile, - AppProfileWithRelations, - AppProfileSelect, - AppProfileFilter, - AppProfileOrderBy, - CreateAppProfileInput, - UpdateAppProfileInput, - AppProfilePatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AppProfileModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appProfiles: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'AppProfile', - 'appProfiles', - 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, - }, - 'AppProfileFilter', - 'AppProfileOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppProfile', - fieldName: 'appProfiles', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appProfile: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AppProfile', - 'appProfiles', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AppProfileFilter', - 'AppProfileOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppProfile', - fieldName: 'appProfile', - document, - variables, - transform: (data: { - appProfiles?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appProfile: data.appProfiles?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - appProfile: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AppProfile', - 'appProfiles', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AppProfileFilter', - 'AppProfileOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppProfile', - fieldName: 'appProfile', - document, - variables, - transform: (data: { - appProfiles?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appProfile: data.appProfiles?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppProfile: { - appProfile: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppProfile', - 'createAppProfile', - 'appProfile', - args.select, - args.data, - 'CreateAppProfileInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppProfile', - fieldName: 'createAppProfile', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AppProfilePatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAppProfile: { - appProfile: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AppProfile', - 'updateAppProfile', - 'appProfile', - args.select, - args.where.id, - args.data, - 'UpdateAppProfileInput', - 'id', - 'appProfilePatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppProfile', - fieldName: 'updateAppProfile', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAppProfile: { - appProfile: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AppProfile', - 'deleteAppProfile', - 'appProfile', - { - id: args.where.id, - }, - 'DeleteAppProfileInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppProfile', - fieldName: 'deleteAppProfile', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/admin/orm/models/appProfileCapability.ts b/sdk/constructive-react/src/admin/orm/models/appProfileCapability.ts deleted file mode 100644 index 86c05be461..0000000000 --- a/sdk/constructive-react/src/admin/orm/models/appProfileCapability.ts +++ /dev/null @@ -1,247 +0,0 @@ -/** - * AppProfileCapability 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 { - AppProfileCapability, - AppProfileCapabilityWithRelations, - AppProfileCapabilitySelect, - AppProfileCapabilityFilter, - AppProfileCapabilityOrderBy, - CreateAppProfileCapabilityInput, - UpdateAppProfileCapabilityInput, - AppProfileCapabilityPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AppProfileCapabilityModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appProfileCapabilities: ConnectionResult< - InferSelectResult - >; - }> { - const { document, variables } = buildFindManyDocument( - 'AppProfileCapability', - 'appProfileCapabilities', - 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, - }, - 'AppProfileCapabilityFilter', - 'AppProfileCapabilityOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppProfileCapability', - fieldName: 'appProfileCapabilities', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appProfileCapability: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AppProfileCapability', - 'appProfileCapabilities', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AppProfileCapabilityFilter', - 'AppProfileCapabilityOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppProfileCapability', - fieldName: 'appProfileCapability', - document, - variables, - transform: (data: { - appProfileCapabilities?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appProfileCapability: data.appProfileCapabilities?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - appProfileCapability: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AppProfileCapability', - 'appProfileCapabilities', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AppProfileCapabilityFilter', - 'AppProfileCapabilityOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppProfileCapability', - fieldName: 'appProfileCapability', - document, - variables, - transform: (data: { - appProfileCapabilities?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appProfileCapability: data.appProfileCapabilities?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppProfileCapability: { - appProfileCapability: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppProfileCapability', - 'createAppProfileCapability', - 'appProfileCapability', - args.select, - args.data, - 'CreateAppProfileCapabilityInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppProfileCapability', - fieldName: 'createAppProfileCapability', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AppProfileCapabilityPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAppProfileCapability: { - appProfileCapability: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AppProfileCapability', - 'updateAppProfileCapability', - 'appProfileCapability', - args.select, - args.where.id, - args.data, - 'UpdateAppProfileCapabilityInput', - 'id', - 'appProfileCapabilityPatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppProfileCapability', - fieldName: 'updateAppProfileCapability', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAppProfileCapability: { - appProfileCapability: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AppProfileCapability', - 'deleteAppProfileCapability', - 'appProfileCapability', - { - id: args.where.id, - }, - 'DeleteAppProfileCapabilityInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppProfileCapability', - fieldName: 'deleteAppProfileCapability', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/admin/orm/models/appProfileDefinitionGrant.ts b/sdk/constructive-react/src/admin/orm/models/appProfileDefinitionGrant.ts deleted file mode 100644 index 8ff9167a12..0000000000 --- a/sdk/constructive-react/src/admin/orm/models/appProfileDefinitionGrant.ts +++ /dev/null @@ -1,247 +0,0 @@ -/** - * AppProfileDefinitionGrant 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 { - AppProfileDefinitionGrant, - AppProfileDefinitionGrantWithRelations, - AppProfileDefinitionGrantSelect, - AppProfileDefinitionGrantFilter, - AppProfileDefinitionGrantOrderBy, - CreateAppProfileDefinitionGrantInput, - UpdateAppProfileDefinitionGrantInput, - AppProfileDefinitionGrantPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AppProfileDefinitionGrantModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appProfileDefinitionGrants: ConnectionResult< - InferSelectResult - >; - }> { - const { document, variables } = buildFindManyDocument( - 'AppProfileDefinitionGrant', - 'appProfileDefinitionGrants', - 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, - }, - 'AppProfileDefinitionGrantFilter', - 'AppProfileDefinitionGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppProfileDefinitionGrant', - fieldName: 'appProfileDefinitionGrants', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appProfileDefinitionGrant: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AppProfileDefinitionGrant', - 'appProfileDefinitionGrants', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AppProfileDefinitionGrantFilter', - 'AppProfileDefinitionGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppProfileDefinitionGrant', - fieldName: 'appProfileDefinitionGrant', - document, - variables, - transform: (data: { - appProfileDefinitionGrants?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appProfileDefinitionGrant: data.appProfileDefinitionGrants?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - appProfileDefinitionGrant: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AppProfileDefinitionGrant', - 'appProfileDefinitionGrants', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AppProfileDefinitionGrantFilter', - 'AppProfileDefinitionGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppProfileDefinitionGrant', - fieldName: 'appProfileDefinitionGrant', - document, - variables, - transform: (data: { - appProfileDefinitionGrants?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appProfileDefinitionGrant: data.appProfileDefinitionGrants?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppProfileDefinitionGrant: { - appProfileDefinitionGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppProfileDefinitionGrant', - 'createAppProfileDefinitionGrant', - 'appProfileDefinitionGrant', - args.select, - args.data, - 'CreateAppProfileDefinitionGrantInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppProfileDefinitionGrant', - fieldName: 'createAppProfileDefinitionGrant', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AppProfileDefinitionGrantPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAppProfileDefinitionGrant: { - appProfileDefinitionGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AppProfileDefinitionGrant', - 'updateAppProfileDefinitionGrant', - 'appProfileDefinitionGrant', - args.select, - args.where.id, - args.data, - 'UpdateAppProfileDefinitionGrantInput', - 'id', - 'appProfileDefinitionGrantPatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppProfileDefinitionGrant', - fieldName: 'updateAppProfileDefinitionGrant', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAppProfileDefinitionGrant: { - appProfileDefinitionGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AppProfileDefinitionGrant', - 'deleteAppProfileDefinitionGrant', - 'appProfileDefinitionGrant', - { - id: args.where.id, - }, - 'DeleteAppProfileDefinitionGrantInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppProfileDefinitionGrant', - fieldName: 'deleteAppProfileDefinitionGrant', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/admin/orm/models/appProfileGrant.ts b/sdk/constructive-react/src/admin/orm/models/appProfileGrant.ts deleted file mode 100644 index b22276182b..0000000000 --- a/sdk/constructive-react/src/admin/orm/models/appProfileGrant.ts +++ /dev/null @@ -1,245 +0,0 @@ -/** - * AppProfileGrant 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 { - AppProfileGrant, - AppProfileGrantWithRelations, - AppProfileGrantSelect, - AppProfileGrantFilter, - AppProfileGrantOrderBy, - CreateAppProfileGrantInput, - UpdateAppProfileGrantInput, - AppProfileGrantPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AppProfileGrantModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appProfileGrants: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'AppProfileGrant', - 'appProfileGrants', - 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, - }, - 'AppProfileGrantFilter', - 'AppProfileGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppProfileGrant', - fieldName: 'appProfileGrants', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appProfileGrant: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AppProfileGrant', - 'appProfileGrants', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AppProfileGrantFilter', - 'AppProfileGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppProfileGrant', - fieldName: 'appProfileGrant', - document, - variables, - transform: (data: { - appProfileGrants?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appProfileGrant: data.appProfileGrants?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - appProfileGrant: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AppProfileGrant', - 'appProfileGrants', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AppProfileGrantFilter', - 'AppProfileGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppProfileGrant', - fieldName: 'appProfileGrant', - document, - variables, - transform: (data: { - appProfileGrants?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appProfileGrant: data.appProfileGrants?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppProfileGrant: { - appProfileGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppProfileGrant', - 'createAppProfileGrant', - 'appProfileGrant', - args.select, - args.data, - 'CreateAppProfileGrantInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppProfileGrant', - fieldName: 'createAppProfileGrant', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AppProfileGrantPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAppProfileGrant: { - appProfileGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AppProfileGrant', - 'updateAppProfileGrant', - 'appProfileGrant', - args.select, - args.where.id, - args.data, - 'UpdateAppProfileGrantInput', - 'id', - 'appProfileGrantPatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppProfileGrant', - fieldName: 'updateAppProfileGrant', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAppProfileGrant: { - appProfileGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AppProfileGrant', - 'deleteAppProfileGrant', - 'appProfileGrant', - { - id: args.where.id, - }, - 'DeleteAppProfileGrantInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppProfileGrant', - fieldName: 'deleteAppProfileGrant', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/admin/orm/models/appProfileTemplate.ts b/sdk/constructive-react/src/admin/orm/models/appProfileTemplate.ts deleted file mode 100644 index 273bb28e3f..0000000000 --- a/sdk/constructive-react/src/admin/orm/models/appProfileTemplate.ts +++ /dev/null @@ -1,245 +0,0 @@ -/** - * AppProfileTemplate 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 { - AppProfileTemplate, - AppProfileTemplateWithRelations, - AppProfileTemplateSelect, - AppProfileTemplateFilter, - AppProfileTemplateOrderBy, - CreateAppProfileTemplateInput, - UpdateAppProfileTemplateInput, - AppProfileTemplatePatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AppProfileTemplateModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appProfileTemplates: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'AppProfileTemplate', - 'appProfileTemplates', - 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, - }, - 'AppProfileTemplateFilter', - 'AppProfileTemplateOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppProfileTemplate', - fieldName: 'appProfileTemplates', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appProfileTemplate: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AppProfileTemplate', - 'appProfileTemplates', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AppProfileTemplateFilter', - 'AppProfileTemplateOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppProfileTemplate', - fieldName: 'appProfileTemplate', - document, - variables, - transform: (data: { - appProfileTemplates?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appProfileTemplate: data.appProfileTemplates?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - appProfileTemplate: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AppProfileTemplate', - 'appProfileTemplates', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AppProfileTemplateFilter', - 'AppProfileTemplateOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppProfileTemplate', - fieldName: 'appProfileTemplate', - document, - variables, - transform: (data: { - appProfileTemplates?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appProfileTemplate: data.appProfileTemplates?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppProfileTemplate: { - appProfileTemplate: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppProfileTemplate', - 'createAppProfileTemplate', - 'appProfileTemplate', - args.select, - args.data, - 'CreateAppProfileTemplateInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppProfileTemplate', - fieldName: 'createAppProfileTemplate', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AppProfileTemplatePatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAppProfileTemplate: { - appProfileTemplate: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AppProfileTemplate', - 'updateAppProfileTemplate', - 'appProfileTemplate', - args.select, - args.where.id, - args.data, - 'UpdateAppProfileTemplateInput', - 'id', - 'appProfileTemplatePatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppProfileTemplate', - fieldName: 'updateAppProfileTemplate', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAppProfileTemplate: { - appProfileTemplate: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AppProfileTemplate', - 'deleteAppProfileTemplate', - 'appProfileTemplate', - { - id: args.where.id, - }, - 'DeleteAppProfileTemplateInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppProfileTemplate', - fieldName: 'deleteAppProfileTemplate', - 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 016cb0e8b4..f14d099d6e 100644 --- a/sdk/constructive-react/src/admin/orm/models/index.ts +++ b/sdk/constructive-react/src/admin/orm/models/index.ts @@ -4,27 +4,17 @@ * DO NOT EDIT - changes will be overwritten */ export { AppAdminGrantModel } from './appAdminGrant'; -export { AppCapabilityModel } from './appCapability'; export { AppCapabilityDefaultCapabilityModel } from './appCapabilityDefaultCapability'; -export { AppCapabilityDefaultModel } from './appCapabilityDefault'; 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 { AppMembershipProfileModel } from './appMembershipProfile'; export { AppOwnerGrantModel } from './appOwnerGrant'; -export { AppProfileCapabilityModel } from './appProfileCapability'; -export { AppProfileModel } from './appProfile'; -export { AppProfileDefinitionGrantModel } from './appProfileDefinitionGrant'; -export { AppProfileGrantModel } from './appProfileGrant'; -export { AppProfileTemplateModel } from './appProfileTemplate'; export { MembershipTypeModel } from './membershipType'; export { OrgAdminGrantModel } from './orgAdminGrant'; -export { OrgCapabilityModel } from './orgCapability'; export { OrgCapabilityDefaultCapabilityModel } from './orgCapabilityDefaultCapability'; -export { OrgCapabilityDefaultModel } from './orgCapabilityDefault'; export { OrgCapabilityDefaultGrantModel } from './orgCapabilityDefaultGrant'; export { OrgChartEdgeModel } from './orgChartEdge'; export { OrgChartEdgeGrantModel } from './orgChartEdgeGrant'; @@ -37,11 +27,5 @@ export { OrgMemberModel } from './orgMember'; export { OrgMemberProfileModel } from './orgMemberProfile'; export { OrgMembershipModel } from './orgMembership'; export { OrgMembershipDefaultModel } from './orgMembershipDefault'; -export { OrgMembershipProfileModel } from './orgMembershipProfile'; export { OrgMembershipSettingModel } from './orgMembershipSetting'; export { OrgOwnerGrantModel } from './orgOwnerGrant'; -export { OrgProfileCapabilityModel } from './orgProfileCapability'; -export { OrgProfileModel } from './orgProfile'; -export { OrgProfileDefinitionGrantModel } from './orgProfileDefinitionGrant'; -export { OrgProfileGrantModel } from './orgProfileGrant'; -export { OrgProfileTemplateModel } from './orgProfileTemplate'; diff --git a/sdk/constructive-react/src/admin/orm/models/orgCapability.ts b/sdk/constructive-react/src/admin/orm/models/orgCapability.ts deleted file mode 100644 index e97c3538d1..0000000000 --- a/sdk/constructive-react/src/admin/orm/models/orgCapability.ts +++ /dev/null @@ -1,245 +0,0 @@ -/** - * OrgCapability 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 { - OrgCapability, - OrgCapabilityWithRelations, - OrgCapabilitySelect, - OrgCapabilityFilter, - OrgCapabilityOrderBy, - CreateOrgCapabilityInput, - UpdateOrgCapabilityInput, - OrgCapabilityPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgCapabilityModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgCapabilities: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgCapability', - 'orgCapabilities', - 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, - }, - 'OrgCapabilityFilter', - 'OrgCapabilityOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgCapability', - fieldName: 'orgCapabilities', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgCapability: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgCapability', - 'orgCapabilities', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgCapabilityFilter', - 'OrgCapabilityOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgCapability', - fieldName: 'orgCapability', - document, - variables, - transform: (data: { - orgCapabilities?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgCapability: data.orgCapabilities?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgCapability: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgCapability', - 'orgCapabilities', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'OrgCapabilityFilter', - 'OrgCapabilityOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgCapability', - fieldName: 'orgCapability', - document, - variables, - transform: (data: { - orgCapabilities?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgCapability: data.orgCapabilities?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgCapability: { - orgCapability: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgCapability', - 'createOrgCapability', - 'orgCapability', - args.select, - args.data, - 'CreateOrgCapabilityInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgCapability', - fieldName: 'createOrgCapability', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - OrgCapabilityPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateOrgCapability: { - orgCapability: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'OrgCapability', - 'updateOrgCapability', - 'orgCapability', - args.select, - args.where.id, - args.data, - 'UpdateOrgCapabilityInput', - 'id', - 'orgCapabilityPatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgCapability', - fieldName: 'updateOrgCapability', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteOrgCapability: { - orgCapability: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'OrgCapability', - 'deleteOrgCapability', - 'orgCapability', - { - id: args.where.id, - }, - 'DeleteOrgCapabilityInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgCapability', - fieldName: 'deleteOrgCapability', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/admin/orm/models/orgCapabilityDefault.ts b/sdk/constructive-react/src/admin/orm/models/orgCapabilityDefault.ts deleted file mode 100644 index 90328fd612..0000000000 --- a/sdk/constructive-react/src/admin/orm/models/orgCapabilityDefault.ts +++ /dev/null @@ -1,247 +0,0 @@ -/** - * OrgCapabilityDefault 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 { - OrgCapabilityDefault, - OrgCapabilityDefaultWithRelations, - OrgCapabilityDefaultSelect, - OrgCapabilityDefaultFilter, - OrgCapabilityDefaultOrderBy, - CreateOrgCapabilityDefaultInput, - UpdateOrgCapabilityDefaultInput, - OrgCapabilityDefaultPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgCapabilityDefaultModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgCapabilityDefaults: ConnectionResult< - InferSelectResult - >; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgCapabilityDefault', - 'orgCapabilityDefaults', - 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, - }, - 'OrgCapabilityDefaultFilter', - 'OrgCapabilityDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgCapabilityDefault', - fieldName: 'orgCapabilityDefaults', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgCapabilityDefault: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgCapabilityDefault', - 'orgCapabilityDefaults', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgCapabilityDefaultFilter', - 'OrgCapabilityDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgCapabilityDefault', - fieldName: 'orgCapabilityDefault', - document, - variables, - transform: (data: { - orgCapabilityDefaults?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgCapabilityDefault: data.orgCapabilityDefaults?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgCapabilityDefault: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgCapabilityDefault', - 'orgCapabilityDefaults', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'OrgCapabilityDefaultFilter', - 'OrgCapabilityDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgCapabilityDefault', - fieldName: 'orgCapabilityDefault', - document, - variables, - transform: (data: { - orgCapabilityDefaults?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgCapabilityDefault: data.orgCapabilityDefaults?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgCapabilityDefault: { - orgCapabilityDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgCapabilityDefault', - 'createOrgCapabilityDefault', - 'orgCapabilityDefault', - args.select, - args.data, - 'CreateOrgCapabilityDefaultInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgCapabilityDefault', - fieldName: 'createOrgCapabilityDefault', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - OrgCapabilityDefaultPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateOrgCapabilityDefault: { - orgCapabilityDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'OrgCapabilityDefault', - 'updateOrgCapabilityDefault', - 'orgCapabilityDefault', - args.select, - args.where.id, - args.data, - 'UpdateOrgCapabilityDefaultInput', - 'id', - 'orgCapabilityDefaultPatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgCapabilityDefault', - fieldName: 'updateOrgCapabilityDefault', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteOrgCapabilityDefault: { - orgCapabilityDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'OrgCapabilityDefault', - 'deleteOrgCapabilityDefault', - 'orgCapabilityDefault', - { - id: args.where.id, - }, - 'DeleteOrgCapabilityDefaultInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgCapabilityDefault', - fieldName: 'deleteOrgCapabilityDefault', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/admin/orm/models/orgMembershipProfile.ts b/sdk/constructive-react/src/admin/orm/models/orgMembershipProfile.ts deleted file mode 100644 index 74a6532a57..0000000000 --- a/sdk/constructive-react/src/admin/orm/models/orgMembershipProfile.ts +++ /dev/null @@ -1,247 +0,0 @@ -/** - * OrgMembershipProfile 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 { - OrgMembershipProfile, - OrgMembershipProfileWithRelations, - OrgMembershipProfileSelect, - OrgMembershipProfileFilter, - OrgMembershipProfileOrderBy, - CreateOrgMembershipProfileInput, - UpdateOrgMembershipProfileInput, - OrgMembershipProfilePatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgMembershipProfileModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgMembershipProfiles: ConnectionResult< - InferSelectResult - >; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgMembershipProfile', - 'orgMembershipProfiles', - 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, - }, - 'OrgMembershipProfileFilter', - 'OrgMembershipProfileOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgMembershipProfile', - fieldName: 'orgMembershipProfiles', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgMembershipProfile: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgMembershipProfile', - 'orgMembershipProfiles', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgMembershipProfileFilter', - 'OrgMembershipProfileOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgMembershipProfile', - fieldName: 'orgMembershipProfile', - document, - variables, - transform: (data: { - orgMembershipProfiles?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgMembershipProfile: data.orgMembershipProfiles?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgMembershipProfile: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgMembershipProfile', - 'orgMembershipProfiles', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'OrgMembershipProfileFilter', - 'OrgMembershipProfileOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgMembershipProfile', - fieldName: 'orgMembershipProfile', - document, - variables, - transform: (data: { - orgMembershipProfiles?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgMembershipProfile: data.orgMembershipProfiles?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgMembershipProfile: { - orgMembershipProfile: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgMembershipProfile', - 'createOrgMembershipProfile', - 'orgMembershipProfile', - args.select, - args.data, - 'CreateOrgMembershipProfileInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgMembershipProfile', - fieldName: 'createOrgMembershipProfile', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - OrgMembershipProfilePatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateOrgMembershipProfile: { - orgMembershipProfile: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'OrgMembershipProfile', - 'updateOrgMembershipProfile', - 'orgMembershipProfile', - args.select, - args.where.id, - args.data, - 'UpdateOrgMembershipProfileInput', - 'id', - 'orgMembershipProfilePatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgMembershipProfile', - fieldName: 'updateOrgMembershipProfile', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteOrgMembershipProfile: { - orgMembershipProfile: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'OrgMembershipProfile', - 'deleteOrgMembershipProfile', - 'orgMembershipProfile', - { - id: args.where.id, - }, - 'DeleteOrgMembershipProfileInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgMembershipProfile', - fieldName: 'deleteOrgMembershipProfile', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/admin/orm/models/orgProfile.ts b/sdk/constructive-react/src/admin/orm/models/orgProfile.ts deleted file mode 100644 index 415b856a47..0000000000 --- a/sdk/constructive-react/src/admin/orm/models/orgProfile.ts +++ /dev/null @@ -1,245 +0,0 @@ -/** - * OrgProfile 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 { - OrgProfile, - OrgProfileWithRelations, - OrgProfileSelect, - OrgProfileFilter, - OrgProfileOrderBy, - CreateOrgProfileInput, - UpdateOrgProfileInput, - OrgProfilePatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgProfileModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgProfiles: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgProfile', - 'orgProfiles', - 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, - }, - 'OrgProfileFilter', - 'OrgProfileOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgProfile', - fieldName: 'orgProfiles', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgProfile: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgProfile', - 'orgProfiles', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgProfileFilter', - 'OrgProfileOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgProfile', - fieldName: 'orgProfile', - document, - variables, - transform: (data: { - orgProfiles?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgProfile: data.orgProfiles?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgProfile: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgProfile', - 'orgProfiles', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'OrgProfileFilter', - 'OrgProfileOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgProfile', - fieldName: 'orgProfile', - document, - variables, - transform: (data: { - orgProfiles?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgProfile: data.orgProfiles?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgProfile: { - orgProfile: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgProfile', - 'createOrgProfile', - 'orgProfile', - args.select, - args.data, - 'CreateOrgProfileInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgProfile', - fieldName: 'createOrgProfile', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - OrgProfilePatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateOrgProfile: { - orgProfile: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'OrgProfile', - 'updateOrgProfile', - 'orgProfile', - args.select, - args.where.id, - args.data, - 'UpdateOrgProfileInput', - 'id', - 'orgProfilePatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgProfile', - fieldName: 'updateOrgProfile', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteOrgProfile: { - orgProfile: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'OrgProfile', - 'deleteOrgProfile', - 'orgProfile', - { - id: args.where.id, - }, - 'DeleteOrgProfileInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgProfile', - fieldName: 'deleteOrgProfile', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/admin/orm/models/orgProfileCapability.ts b/sdk/constructive-react/src/admin/orm/models/orgProfileCapability.ts deleted file mode 100644 index 4b020b426c..0000000000 --- a/sdk/constructive-react/src/admin/orm/models/orgProfileCapability.ts +++ /dev/null @@ -1,247 +0,0 @@ -/** - * OrgProfileCapability 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 { - OrgProfileCapability, - OrgProfileCapabilityWithRelations, - OrgProfileCapabilitySelect, - OrgProfileCapabilityFilter, - OrgProfileCapabilityOrderBy, - CreateOrgProfileCapabilityInput, - UpdateOrgProfileCapabilityInput, - OrgProfileCapabilityPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgProfileCapabilityModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgProfileCapabilities: ConnectionResult< - InferSelectResult - >; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgProfileCapability', - 'orgProfileCapabilities', - 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, - }, - 'OrgProfileCapabilityFilter', - 'OrgProfileCapabilityOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgProfileCapability', - fieldName: 'orgProfileCapabilities', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgProfileCapability: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgProfileCapability', - 'orgProfileCapabilities', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgProfileCapabilityFilter', - 'OrgProfileCapabilityOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgProfileCapability', - fieldName: 'orgProfileCapability', - document, - variables, - transform: (data: { - orgProfileCapabilities?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgProfileCapability: data.orgProfileCapabilities?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgProfileCapability: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgProfileCapability', - 'orgProfileCapabilities', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'OrgProfileCapabilityFilter', - 'OrgProfileCapabilityOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgProfileCapability', - fieldName: 'orgProfileCapability', - document, - variables, - transform: (data: { - orgProfileCapabilities?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgProfileCapability: data.orgProfileCapabilities?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgProfileCapability: { - orgProfileCapability: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgProfileCapability', - 'createOrgProfileCapability', - 'orgProfileCapability', - args.select, - args.data, - 'CreateOrgProfileCapabilityInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgProfileCapability', - fieldName: 'createOrgProfileCapability', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - OrgProfileCapabilityPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateOrgProfileCapability: { - orgProfileCapability: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'OrgProfileCapability', - 'updateOrgProfileCapability', - 'orgProfileCapability', - args.select, - args.where.id, - args.data, - 'UpdateOrgProfileCapabilityInput', - 'id', - 'orgProfileCapabilityPatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgProfileCapability', - fieldName: 'updateOrgProfileCapability', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteOrgProfileCapability: { - orgProfileCapability: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'OrgProfileCapability', - 'deleteOrgProfileCapability', - 'orgProfileCapability', - { - id: args.where.id, - }, - 'DeleteOrgProfileCapabilityInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgProfileCapability', - fieldName: 'deleteOrgProfileCapability', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/admin/orm/models/orgProfileDefinitionGrant.ts b/sdk/constructive-react/src/admin/orm/models/orgProfileDefinitionGrant.ts deleted file mode 100644 index 1438737920..0000000000 --- a/sdk/constructive-react/src/admin/orm/models/orgProfileDefinitionGrant.ts +++ /dev/null @@ -1,247 +0,0 @@ -/** - * OrgProfileDefinitionGrant 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 { - OrgProfileDefinitionGrant, - OrgProfileDefinitionGrantWithRelations, - OrgProfileDefinitionGrantSelect, - OrgProfileDefinitionGrantFilter, - OrgProfileDefinitionGrantOrderBy, - CreateOrgProfileDefinitionGrantInput, - UpdateOrgProfileDefinitionGrantInput, - OrgProfileDefinitionGrantPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgProfileDefinitionGrantModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgProfileDefinitionGrants: ConnectionResult< - InferSelectResult - >; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgProfileDefinitionGrant', - 'orgProfileDefinitionGrants', - 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, - }, - 'OrgProfileDefinitionGrantFilter', - 'OrgProfileDefinitionGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgProfileDefinitionGrant', - fieldName: 'orgProfileDefinitionGrants', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgProfileDefinitionGrant: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgProfileDefinitionGrant', - 'orgProfileDefinitionGrants', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgProfileDefinitionGrantFilter', - 'OrgProfileDefinitionGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgProfileDefinitionGrant', - fieldName: 'orgProfileDefinitionGrant', - document, - variables, - transform: (data: { - orgProfileDefinitionGrants?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgProfileDefinitionGrant: data.orgProfileDefinitionGrants?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgProfileDefinitionGrant: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgProfileDefinitionGrant', - 'orgProfileDefinitionGrants', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'OrgProfileDefinitionGrantFilter', - 'OrgProfileDefinitionGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgProfileDefinitionGrant', - fieldName: 'orgProfileDefinitionGrant', - document, - variables, - transform: (data: { - orgProfileDefinitionGrants?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgProfileDefinitionGrant: data.orgProfileDefinitionGrants?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgProfileDefinitionGrant: { - orgProfileDefinitionGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgProfileDefinitionGrant', - 'createOrgProfileDefinitionGrant', - 'orgProfileDefinitionGrant', - args.select, - args.data, - 'CreateOrgProfileDefinitionGrantInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgProfileDefinitionGrant', - fieldName: 'createOrgProfileDefinitionGrant', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - OrgProfileDefinitionGrantPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateOrgProfileDefinitionGrant: { - orgProfileDefinitionGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'OrgProfileDefinitionGrant', - 'updateOrgProfileDefinitionGrant', - 'orgProfileDefinitionGrant', - args.select, - args.where.id, - args.data, - 'UpdateOrgProfileDefinitionGrantInput', - 'id', - 'orgProfileDefinitionGrantPatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgProfileDefinitionGrant', - fieldName: 'updateOrgProfileDefinitionGrant', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteOrgProfileDefinitionGrant: { - orgProfileDefinitionGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'OrgProfileDefinitionGrant', - 'deleteOrgProfileDefinitionGrant', - 'orgProfileDefinitionGrant', - { - id: args.where.id, - }, - 'DeleteOrgProfileDefinitionGrantInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgProfileDefinitionGrant', - fieldName: 'deleteOrgProfileDefinitionGrant', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/admin/orm/models/orgProfileGrant.ts b/sdk/constructive-react/src/admin/orm/models/orgProfileGrant.ts deleted file mode 100644 index 141311e738..0000000000 --- a/sdk/constructive-react/src/admin/orm/models/orgProfileGrant.ts +++ /dev/null @@ -1,245 +0,0 @@ -/** - * OrgProfileGrant 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 { - OrgProfileGrant, - OrgProfileGrantWithRelations, - OrgProfileGrantSelect, - OrgProfileGrantFilter, - OrgProfileGrantOrderBy, - CreateOrgProfileGrantInput, - UpdateOrgProfileGrantInput, - OrgProfileGrantPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgProfileGrantModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgProfileGrants: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgProfileGrant', - 'orgProfileGrants', - 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, - }, - 'OrgProfileGrantFilter', - 'OrgProfileGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgProfileGrant', - fieldName: 'orgProfileGrants', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgProfileGrant: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgProfileGrant', - 'orgProfileGrants', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgProfileGrantFilter', - 'OrgProfileGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgProfileGrant', - fieldName: 'orgProfileGrant', - document, - variables, - transform: (data: { - orgProfileGrants?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgProfileGrant: data.orgProfileGrants?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgProfileGrant: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgProfileGrant', - 'orgProfileGrants', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'OrgProfileGrantFilter', - 'OrgProfileGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgProfileGrant', - fieldName: 'orgProfileGrant', - document, - variables, - transform: (data: { - orgProfileGrants?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgProfileGrant: data.orgProfileGrants?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgProfileGrant: { - orgProfileGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgProfileGrant', - 'createOrgProfileGrant', - 'orgProfileGrant', - args.select, - args.data, - 'CreateOrgProfileGrantInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgProfileGrant', - fieldName: 'createOrgProfileGrant', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - OrgProfileGrantPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateOrgProfileGrant: { - orgProfileGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'OrgProfileGrant', - 'updateOrgProfileGrant', - 'orgProfileGrant', - args.select, - args.where.id, - args.data, - 'UpdateOrgProfileGrantInput', - 'id', - 'orgProfileGrantPatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgProfileGrant', - fieldName: 'updateOrgProfileGrant', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteOrgProfileGrant: { - orgProfileGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'OrgProfileGrant', - 'deleteOrgProfileGrant', - 'orgProfileGrant', - { - id: args.where.id, - }, - 'DeleteOrgProfileGrantInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgProfileGrant', - fieldName: 'deleteOrgProfileGrant', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/admin/orm/models/orgProfileTemplate.ts b/sdk/constructive-react/src/admin/orm/models/orgProfileTemplate.ts deleted file mode 100644 index 45499bc627..0000000000 --- a/sdk/constructive-react/src/admin/orm/models/orgProfileTemplate.ts +++ /dev/null @@ -1,245 +0,0 @@ -/** - * OrgProfileTemplate 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 { - OrgProfileTemplate, - OrgProfileTemplateWithRelations, - OrgProfileTemplateSelect, - OrgProfileTemplateFilter, - OrgProfileTemplateOrderBy, - CreateOrgProfileTemplateInput, - UpdateOrgProfileTemplateInput, - OrgProfileTemplatePatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgProfileTemplateModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgProfileTemplates: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgProfileTemplate', - 'orgProfileTemplates', - 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, - }, - 'OrgProfileTemplateFilter', - 'OrgProfileTemplateOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgProfileTemplate', - fieldName: 'orgProfileTemplates', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgProfileTemplate: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgProfileTemplate', - 'orgProfileTemplates', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgProfileTemplateFilter', - 'OrgProfileTemplateOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgProfileTemplate', - fieldName: 'orgProfileTemplate', - document, - variables, - transform: (data: { - orgProfileTemplates?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgProfileTemplate: data.orgProfileTemplates?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgProfileTemplate: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgProfileTemplate', - 'orgProfileTemplates', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'OrgProfileTemplateFilter', - 'OrgProfileTemplateOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgProfileTemplate', - fieldName: 'orgProfileTemplate', - document, - variables, - transform: (data: { - orgProfileTemplates?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgProfileTemplate: data.orgProfileTemplates?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgProfileTemplate: { - orgProfileTemplate: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgProfileTemplate', - 'createOrgProfileTemplate', - 'orgProfileTemplate', - args.select, - args.data, - 'CreateOrgProfileTemplateInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgProfileTemplate', - fieldName: 'createOrgProfileTemplate', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - OrgProfileTemplatePatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateOrgProfileTemplate: { - orgProfileTemplate: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'OrgProfileTemplate', - 'updateOrgProfileTemplate', - 'orgProfileTemplate', - args.select, - args.where.id, - args.data, - 'UpdateOrgProfileTemplateInput', - 'id', - 'orgProfileTemplatePatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgProfileTemplate', - fieldName: 'updateOrgProfileTemplate', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteOrgProfileTemplate: { - orgProfileTemplate: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'OrgProfileTemplate', - 'deleteOrgProfileTemplate', - 'orgProfileTemplate', - { - id: args.where.id, - }, - 'DeleteOrgProfileTemplateInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgProfileTemplate', - fieldName: 'deleteOrgProfileTemplate', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/admin/orm/mutation/index.ts b/sdk/constructive-react/src/admin/orm/mutation/index.ts index 0e8e613d2e..ea1a4ae835 100644 --- a/sdk/constructive-react/src/admin/orm/mutation/index.ts +++ b/sdk/constructive-react/src/admin/orm/mutation/index.ts @@ -20,10 +20,11 @@ import type { import { connectionFieldsMap } from '../input-types'; /** * Variables for provisionBucket - * 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. + * Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. */ export interface ProvisionBucketVariables { input: ProvisionBucketInput; diff --git a/sdk/constructive-react/src/admin/orm/query/index.ts b/sdk/constructive-react/src/admin/orm/query/index.ts index cb4b15d057..f4f0cb1eb5 100644 --- a/sdk/constructive-react/src/admin/orm/query/index.ts +++ b/sdk/constructive-react/src/admin/orm/query/index.ts @@ -6,49 +6,10 @@ import { OrmClient } from '../client'; import { QueryBuilder, buildCustomDocument } from '../query-builder'; import type { InferSelectResult, StrictSelect } from '../select-types'; -import type { AppCapabilityConnection, OrgCapabilityConnection } from '../input-types'; import { connectionFieldsMap } from '../input-types'; -export interface AppCapabilitiesGetByMaskVariables { - /** 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 AppCapabilitiesGetMaskVariables { - ids?: string[]; -} -export interface AppCapabilitiesGetMaskByNamesVariables { - names?: string[]; -} -export interface AppCapabilitiesGetPaddedMaskVariables { - mask?: string; -} -export interface OrgCapabilitiesGetByMaskVariables { - /** 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 OrgCapabilitiesGetMaskVariables { - ids?: string[]; -} -export interface OrgCapabilitiesGetMaskByNamesVariables { - names?: string[]; -} -export interface OrgCapabilitiesGetPaddedMaskVariables { - mask?: string; +export interface GetOrganizationIdVariables { + entityId?: string; + entityType?: string; } export interface OrgIsManagerOfVariables { managerId?: string; @@ -58,256 +19,33 @@ export interface OrgIsManagerOfVariables { } export function createQueryOperations(client: OrmClient) { return { - appCapabilitiesGetByMask: ( - args: AppCapabilitiesGetByMaskVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - appCapabilitiesGetByMask: AppCapabilityConnection | null; - }>({ - client, - operation: 'query', - operationName: 'AppCapabilitiesGetByMask', - fieldName: 'appCapabilitiesGetByMask', - ...buildCustomDocument( - 'query', - 'AppCapabilitiesGetByMask', - 'appCapabilitiesGetByMask', - options?.select, - args, - [ - { - name: 'after', - type: 'Cursor', - }, - { - name: 'first', - type: 'Int', - }, - { - name: 'mask', - type: 'BitString', - }, - { - name: 'offset', - type: 'Int', - }, - ], - connectionFieldsMap, - undefined - ), - }), - appCapabilitiesGetMask: ( - args: AppCapabilitiesGetMaskVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - appCapabilitiesGetMask: string | null; - }>({ - client, - operation: 'query', - operationName: 'AppCapabilitiesGetMask', - fieldName: 'appCapabilitiesGetMask', - ...buildCustomDocument( - 'query', - 'AppCapabilitiesGetMask', - 'appCapabilitiesGetMask', - options?.select, - args, - [ - { - name: 'ids', - type: '[UUID]', - }, - ], - connectionFieldsMap, - undefined - ), - }), - appCapabilitiesGetMaskByNames: ( - args: AppCapabilitiesGetMaskByNamesVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - appCapabilitiesGetMaskByNames: string | null; - }>({ - client, - operation: 'query', - operationName: 'AppCapabilitiesGetMaskByNames', - fieldName: 'appCapabilitiesGetMaskByNames', - ...buildCustomDocument( - 'query', - 'AppCapabilitiesGetMaskByNames', - 'appCapabilitiesGetMaskByNames', - options?.select, - args, - [ - { - name: 'names', - type: '[String]', - }, - ], - connectionFieldsMap, - undefined - ), - }), - appCapabilitiesGetPaddedMask: ( - args: AppCapabilitiesGetPaddedMaskVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - appCapabilitiesGetPaddedMask: string | null; - }>({ - client, - operation: 'query', - operationName: 'AppCapabilitiesGetPaddedMask', - fieldName: 'appCapabilitiesGetPaddedMask', - ...buildCustomDocument( - 'query', - 'AppCapabilitiesGetPaddedMask', - 'appCapabilitiesGetPaddedMask', - options?.select, - args, - [ - { - name: 'mask', - type: 'BitString', - }, - ], - connectionFieldsMap, - undefined - ), - }), - orgCapabilitiesGetByMask: ( - args: OrgCapabilitiesGetByMaskVariables, + getOrganizationId: ( + args: GetOrganizationIdVariables, options?: { select?: Record; } ) => new QueryBuilder<{ - orgCapabilitiesGetByMask: OrgCapabilityConnection | null; + getOrganizationId: string | null; }>({ client, operation: 'query', - operationName: 'OrgCapabilitiesGetByMask', - fieldName: 'orgCapabilitiesGetByMask', + operationName: 'GetOrganizationId', + fieldName: 'getOrganizationId', ...buildCustomDocument( 'query', - 'OrgCapabilitiesGetByMask', - 'orgCapabilitiesGetByMask', + 'GetOrganizationId', + 'getOrganizationId', options?.select, args, [ { - name: 'after', - type: 'Cursor', - }, - { - name: 'first', - type: 'Int', - }, - { - name: 'mask', - type: 'BitString', - }, - { - name: 'offset', - type: 'Int', - }, - ], - connectionFieldsMap, - undefined - ), - }), - orgCapabilitiesGetMask: ( - args: OrgCapabilitiesGetMaskVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - orgCapabilitiesGetMask: string | null; - }>({ - client, - operation: 'query', - operationName: 'OrgCapabilitiesGetMask', - fieldName: 'orgCapabilitiesGetMask', - ...buildCustomDocument( - 'query', - 'OrgCapabilitiesGetMask', - 'orgCapabilitiesGetMask', - options?.select, - args, - [ - { - name: 'ids', - type: '[UUID]', - }, - ], - connectionFieldsMap, - undefined - ), - }), - orgCapabilitiesGetMaskByNames: ( - args: OrgCapabilitiesGetMaskByNamesVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - orgCapabilitiesGetMaskByNames: string | null; - }>({ - client, - operation: 'query', - operationName: 'OrgCapabilitiesGetMaskByNames', - fieldName: 'orgCapabilitiesGetMaskByNames', - ...buildCustomDocument( - 'query', - 'OrgCapabilitiesGetMaskByNames', - 'orgCapabilitiesGetMaskByNames', - options?.select, - args, - [ - { - name: 'names', - type: '[String]', + name: 'entityId', + type: 'UUID', }, - ], - connectionFieldsMap, - undefined - ), - }), - orgCapabilitiesGetPaddedMask: ( - args: OrgCapabilitiesGetPaddedMaskVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - orgCapabilitiesGetPaddedMask: string | null; - }>({ - client, - operation: 'query', - operationName: 'OrgCapabilitiesGetPaddedMask', - fieldName: 'orgCapabilitiesGetPaddedMask', - ...buildCustomDocument( - 'query', - 'OrgCapabilitiesGetPaddedMask', - 'orgCapabilitiesGetPaddedMask', - options?.select, - args, - [ { - name: 'mask', - type: 'BitString', + name: 'entityType', + type: 'String', }, ], connectionFieldsMap, diff --git a/sdk/constructive-react/src/admin/schema-types.ts b/sdk/constructive-react/src/admin/schema-types.ts index d92e3aacc8..0e99ccf6a1 100644 --- a/sdk/constructive-react/src/admin/schema-types.ts +++ b/sdk/constructive-react/src/admin/schema-types.ts @@ -6,8 +6,6 @@ import type { AppAdminGrant, - AppCapability, - AppCapabilityDefault, AppCapabilityDefaultCapability, AppCapabilityDefaultGrant, AppClaimedInvite, @@ -15,17 +13,9 @@ import type { AppInvite, AppMembership, AppMembershipDefault, - AppMembershipProfile, AppOwnerGrant, - AppProfile, - AppProfileCapability, - AppProfileDefinitionGrant, - AppProfileGrant, - AppProfileTemplate, MembershipType, OrgAdminGrant, - OrgCapability, - OrgCapabilityDefault, OrgCapabilityDefaultCapability, OrgCapabilityDefaultGrant, OrgChartEdge, @@ -39,14 +29,8 @@ import type { OrgMemberProfile, OrgMembership, OrgMembershipDefault, - OrgMembershipProfile, OrgMembershipSetting, OrgOwnerGrant, - OrgProfile, - OrgProfileCapability, - OrgProfileDefinitionGrant, - OrgProfileGrant, - OrgProfileTemplate, BigFloatFilter, BigIntFilter, BitStringFilter, @@ -114,32 +98,6 @@ export type AppCapabilityDefaultGrantOrderBy = | 'PRIMARY_KEY_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `AppCapabilityDefault`. */ -export type AppCapabilityDefaultOrderBy = - | 'CAPABILITIES_ASC' - | 'CAPABILITIES_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC'; -/** Methods to use when ordering `AppCapability`. */ -export type AppCapabilityOrderBy = - | 'BITNUM_ASC' - | 'BITNUM_DESC' - | 'BITSTR_ASC' - | 'BITSTR_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'KIND_ASC' - | 'KIND_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC'; /** Methods to use when ordering `AppClaimedInvite`. */ export type AppClaimedInviteOrderBy = | 'CREATED_AT_ASC' @@ -217,6 +175,8 @@ export type AppMembershipDefaultOrderBy = | 'CREATED_AT_DESC' | 'CREATED_BY_ASC' | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'ID_ASC' | 'ID_DESC' | 'IS_APPROVED_ASC' @@ -229,7 +189,9 @@ export type AppMembershipDefaultOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC'; + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; /** Methods to use when ordering `AppMembership`. */ export type AppMembershipOrderBy = | 'ACTOR_ID_ASC' @@ -240,6 +202,8 @@ export type AppMembershipOrderBy = | 'CREATED_AT_DESC' | 'CREATED_BY_ASC' | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'GRANTED_ASC' | 'GRANTED_DESC' | 'ID_ASC' @@ -266,24 +230,9 @@ export type AppMembershipOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC'; -/** Methods to use when ordering `AppMembershipProfile`. */ -export type AppMembershipProfileOrderBy = - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'MEMBERSHIP_ID_ASC' - | 'MEMBERSHIP_ID_DESC' - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'PROFILE_ID_ASC' - | 'PROFILE_ID_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; /** Methods to use when ordering `AppOwnerGrant`. */ export type AppOwnerGrantOrderBy = | 'ACTOR_ID_ASC' @@ -301,103 +250,6 @@ export type AppOwnerGrantOrderBy = | 'PRIMARY_KEY_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `AppProfileCapability`. */ -export type AppProfileCapabilityOrderBy = - | 'CAPABILITY_ID_ASC' - | 'CAPABILITY_ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'PROFILE_ID_ASC' - | 'PROFILE_ID_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `AppProfileDefinitionGrant`. */ -export type AppProfileDefinitionGrantOrderBy = - | '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' - | 'PROFILE_ID_ASC' - | 'PROFILE_ID_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `AppProfileGrant`. */ -export type AppProfileGrantOrderBy = - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'GRANTOR_ID_ASC' - | 'GRANTOR_ID_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' - | 'MEMBERSHIP_ID_ASC' - | 'MEMBERSHIP_ID_DESC' - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'PROFILE_ID_ASC' - | 'PROFILE_ID_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `AppProfile`. */ -export type AppProfileOrderBy = - | 'CAPABILITIES_ASC' - | 'CAPABILITIES_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'IS_DEFAULT_ASC' - | 'IS_DEFAULT_DESC' - | 'IS_SYSTEM_ASC' - | 'IS_SYSTEM_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'SLUG_ASC' - | 'SLUG_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `AppProfileTemplate`. */ -export type AppProfileTemplateOrderBy = - | 'CAPABILITIES_ASC' - | 'CAPABILITIES_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'IS_DEFAULT_ASC' - | 'IS_DEFAULT_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'SLUG_ASC' - | 'SLUG_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; /** Methods to use when ordering `MembershipType`. */ export type MembershipTypeOrderBy = | 'DESCRIPTION_ASC' @@ -468,34 +320,6 @@ export type OrgCapabilityDefaultGrantOrderBy = | 'PRIMARY_KEY_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `OrgCapabilityDefault`. */ -export type OrgCapabilityDefaultOrderBy = - | 'CAPABILITIES_ASC' - | 'CAPABILITIES_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC'; -/** Methods to use when ordering `OrgCapability`. */ -export type OrgCapabilityOrderBy = - | 'BITNUM_ASC' - | 'BITNUM_DESC' - | 'BITSTR_ASC' - | 'BITSTR_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'KIND_ASC' - | 'KIND_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC'; /** Methods to use when ordering `OrgChartEdgeGrant`. */ export type OrgChartEdgeGrantOrderBy = | 'CHILD_ID_ASC' @@ -667,6 +491,8 @@ export type OrgMembershipDefaultOrderBy = | 'CREATED_AT_DESC' | 'CREATED_BY_ASC' | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' | 'ID_ASC' @@ -679,7 +505,9 @@ export type OrgMembershipDefaultOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC'; + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; /** Methods to use when ordering `OrgMembership`. */ export type OrgMembershipOrderBy = | 'ACTOR_ID_ASC' @@ -690,6 +518,8 @@ export type OrgMembershipOrderBy = | 'CREATED_AT_DESC' | 'CREATED_BY_ASC' | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' | 'GRANTED_ASC' @@ -720,32 +550,21 @@ export type OrgMembershipOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC'; -/** Methods to use when ordering `OrgMembershipProfile`. */ -export type OrgMembershipProfileOrderBy = - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'MEMBERSHIP_ID_ASC' - | 'MEMBERSHIP_ID_DESC' - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'PROFILE_ID_ASC' - | 'PROFILE_ID_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; /** Methods to use when ordering `OrgMembershipSetting`. */ export type OrgMembershipSettingOrderBy = | 'ALLOW_EXTERNAL_MEMBERS_ASC' | 'ALLOW_EXTERNAL_MEMBERS_DESC' + | 'ALLOW_PRINCIPAL_OWNED_API_KEYS_ASC' + | 'ALLOW_PRINCIPAL_OWNED_API_KEYS_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'CREATED_BY_ASC' | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'CREATE_CHILD_CASCADE_ADMINS_ASC' | 'CREATE_CHILD_CASCADE_ADMINS_DESC' | 'CREATE_CHILD_CASCADE_MEMBERS_ASC' @@ -770,7 +589,9 @@ export type OrgMembershipSettingOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC'; + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; /** Methods to use when ordering `OrgOwnerGrant`. */ export type OrgOwnerGrantOrderBy = | 'ACTOR_ID_ASC' @@ -790,107 +611,6 @@ export type OrgOwnerGrantOrderBy = | 'PRIMARY_KEY_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `OrgProfileCapability`. */ -export type OrgProfileCapabilityOrderBy = - | 'CAPABILITY_ID_ASC' - | 'CAPABILITY_ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'PROFILE_ID_ASC' - | 'PROFILE_ID_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `OrgProfileDefinitionGrant`. */ -export type OrgProfileDefinitionGrantOrderBy = - | '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' - | 'PROFILE_ID_ASC' - | 'PROFILE_ID_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `OrgProfileGrant`. */ -export type OrgProfileGrantOrderBy = - | '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' - | 'MEMBERSHIP_ID_ASC' - | 'MEMBERSHIP_ID_DESC' - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'PROFILE_ID_ASC' - | 'PROFILE_ID_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `OrgProfile`. */ -export type OrgProfileOrderBy = - | 'CAPABILITIES_ASC' - | 'CAPABILITIES_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'IS_DEFAULT_ASC' - | 'IS_DEFAULT_DESC' - | 'IS_SYSTEM_ASC' - | 'IS_SYSTEM_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'SLUG_ASC' - | 'SLUG_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `OrgProfileTemplate`. */ -export type OrgProfileTemplateOrderBy = - | 'CAPABILITIES_ASC' - | 'CAPABILITIES_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'IS_DEFAULT_ASC' - | 'IS_DEFAULT_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'SLUG_ASC' - | 'SLUG_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_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. */ @@ -938,8 +658,6 @@ export interface AppAdminGrantPatch { export interface AppCapabilityDefaultCapabilityFilter { /** Checks for all expressions in this list. */ and?: AppCapabilityDefaultCapabilityFilter[]; - /** Filter by the object’s `capability` relation. */ - capability?: AppCapabilityFilter; /** Filter by the object’s `capabilityId` field. */ capabilityId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ @@ -969,25 +687,10 @@ export interface AppCapabilityDefaultCapabilityPatch { id?: string; updatedAt?: string; } -/** A filter to be used against `AppCapabilityDefault` object types. All fields are combined with a logical ‘and.’ */ -export interface AppCapabilityDefaultFilter { - /** Checks for all expressions in this list. */ - and?: AppCapabilityDefaultFilter[]; - /** Filter by the object’s `capabilities` field. */ - capabilities?: BitStringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Negates the expression. */ - not?: AppCapabilityDefaultFilter; - /** Checks for any expressions in this list. */ - or?: AppCapabilityDefaultFilter[]; -} /** 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 `capability` relation. */ - capability?: AppCapabilityFilter; /** Filter by the object’s `capabilityId` field. */ capabilityId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ @@ -1027,110 +730,6 @@ export interface AppCapabilityDefaultGrantPatch { isGrant?: boolean; updatedAt?: string; } -/** An input for mutations affecting `AppCapabilityDefault` */ -export interface AppCapabilityDefaultInput { - /** Default capability bitmask applied to new members */ - capabilities?: string; - id?: string; -} -/** Represents an update to a `AppCapabilityDefault`. Fields that are set will be updated. */ -export interface AppCapabilityDefaultPatch { - /** Default capability bitmask applied to new members */ - capabilities?: string; - id?: string; -} -/** A filter to be used against `AppCapability` object types. All fields are combined with a logical ‘and.’ */ -export interface AppCapabilityFilter { - /** Checks for all expressions in this list. */ - and?: AppCapabilityFilter[]; - /** Filter by the object’s `appCapabilityDefaultCapabilityByCapabilityId` relation. */ - appCapabilityDefaultCapabilityByCapabilityId?: AppCapabilityDefaultCapabilityFilter; - /** A related `appCapabilityDefaultCapabilityByCapabilityId` exists. */ - appCapabilityDefaultCapabilityByCapabilityIdExists?: boolean; - /** Filter by the object’s `appCapabilityDefaultGrantsByCapabilityId` relation. */ - appCapabilityDefaultGrantsByCapabilityId?: AppCapabilityToManyAppCapabilityDefaultGrantFilter; - /** `appCapabilityDefaultGrantsByCapabilityId` exist. */ - appCapabilityDefaultGrantsByCapabilityIdExist?: boolean; - /** Filter by the object’s `appProfileCapabilitiesByCapabilityId` relation. */ - appProfileCapabilitiesByCapabilityId?: AppCapabilityToManyAppProfileCapabilityFilter; - /** `appProfileCapabilitiesByCapabilityId` exist. */ - appProfileCapabilitiesByCapabilityIdExist?: boolean; - /** Filter by the object’s `appProfileDefinitionGrantsByCapabilityId` relation. */ - appProfileDefinitionGrantsByCapabilityId?: AppCapabilityToManyAppProfileDefinitionGrantFilter; - /** `appProfileDefinitionGrantsByCapabilityId` exist. */ - appProfileDefinitionGrantsByCapabilityIdExist?: 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 `kind` field. */ - kind?: StringFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Negates the expression. */ - not?: AppCapabilityFilter; - /** Checks for any expressions in this list. */ - or?: AppCapabilityFilter[]; -} -/** An input for mutations affecting `AppCapability` */ -export interface AppCapabilityInput { - /** Position of this capability in the bitmask (1-indexed), must be unique per capability set */ - bitnum?: number; - /** Pre-computed bitmask with only this capability bit set, used for bitwise OR/AND operations */ - bitstr?: string; - /** Human-readable description of what this capability allows */ - description?: string; - id?: string; - /** Kind of catalog entry: capability (capability) or level (achievement level) */ - kind?: string; - /** Human-readable capability name (e.g. read, write, manage) */ - name?: string; -} -/** Represents an update to a `AppCapability`. Fields that are set will be updated. */ -export interface AppCapabilityPatch { - /** Position of this capability in the bitmask (1-indexed), must be unique per capability set */ - bitnum?: number; - /** Pre-computed bitmask with only this capability bit set, used for bitwise OR/AND operations */ - bitstr?: string; - /** Human-readable description of what this capability allows */ - description?: string; - id?: string; - /** Kind of catalog entry: capability (capability) or level (achievement level) */ - kind?: string; - /** Human-readable capability name (e.g. read, write, manage) */ - name?: string; -} -/** A filter to be used against many `AppCapabilityDefaultGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface AppCapabilityToManyAppCapabilityDefaultGrantFilter { - /** Filters to entities where every related entity matches. */ - every?: AppCapabilityDefaultGrantFilter; - /** Filters to entities where no related entity matches. */ - none?: AppCapabilityDefaultGrantFilter; - /** Filters to entities where at least one related entity matches. */ - some?: AppCapabilityDefaultGrantFilter; -} -/** A filter to be used against many `AppProfileCapability` object types. All fields are combined with a logical ‘and.’ */ -export interface AppCapabilityToManyAppProfileCapabilityFilter { - /** Filters to entities where every related entity matches. */ - every?: AppProfileCapabilityFilter; - /** Filters to entities where no related entity matches. */ - none?: AppProfileCapabilityFilter; - /** Filters to entities where at least one related entity matches. */ - some?: AppProfileCapabilityFilter; -} -/** A filter to be used against many `AppProfileDefinitionGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface AppCapabilityToManyAppProfileDefinitionGrantFilter { - /** Filters to entities where every related entity matches. */ - every?: AppProfileDefinitionGrantFilter; - /** Filters to entities where no related entity matches. */ - none?: AppProfileDefinitionGrantFilter; - /** Filters to entities where at least one related entity matches. */ - some?: AppProfileDefinitionGrantFilter; -} /** 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. */ @@ -1253,10 +852,6 @@ export interface AppInviteFilter { or?: AppInviteFilter[]; /** Filter by the object’s `phone` field. */ phone?: StringFilter; - /** Filter by the object’s `profile` relation. */ - profile?: AppProfileFilter; - /** A related `profile` exists. */ - profileExists?: boolean; /** Filter by the object’s `profileId` field. */ profileId?: UUIDFilter; /** Filter by the object’s `senderId` field. */ @@ -1332,6 +927,8 @@ export interface AppMembershipDefaultFilter { createdAt?: DatetimeFilter; /** Filter by the object’s `createdBy` field. */ createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `isApproved` field. */ @@ -1346,11 +943,14 @@ export interface AppMembershipDefaultFilter { updatedAt?: DatetimeFilter; /** Filter by the object’s `updatedBy` field. */ updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } /** An input for mutations affecting `AppMembershipDefault` */ export interface AppMembershipDefaultInput { createdAt?: string; createdBy?: string; + createdByPrincipal?: string; id?: string; /** Whether new members are automatically approved upon joining */ isApproved?: boolean; @@ -1358,11 +958,13 @@ export interface AppMembershipDefaultInput { isVerified?: boolean; updatedAt?: string; updatedBy?: string; + updatedByPrincipal?: string; } /** Represents an update to a `AppMembershipDefault`. Fields that are set will be updated. */ export interface AppMembershipDefaultPatch { createdAt?: string; createdBy?: string; + createdByPrincipal?: string; id?: string; /** Whether new members are automatically approved upon joining */ isApproved?: boolean; @@ -1370,6 +972,7 @@ export interface AppMembershipDefaultPatch { isVerified?: boolean; updatedAt?: string; updatedBy?: string; + updatedByPrincipal?: string; } /** A filter to be used against `AppMembership` object types. All fields are combined with a logical ‘and.’ */ export interface AppMembershipFilter { @@ -1377,20 +980,14 @@ export interface AppMembershipFilter { actorId?: UUIDFilter; /** Checks for all expressions in this list. */ and?: AppMembershipFilter[]; - /** Filter by the object’s `appMembershipProfilesByMembershipId` relation. */ - appMembershipProfilesByMembershipId?: AppMembershipToManyAppMembershipProfileFilter; - /** `appMembershipProfilesByMembershipId` exist. */ - appMembershipProfilesByMembershipIdExist?: boolean; - /** Filter by the object’s `appProfileGrantsByMembershipId` relation. */ - appProfileGrantsByMembershipId?: AppMembershipToManyAppProfileGrantFilter; - /** `appProfileGrantsByMembershipId` exist. */ - appProfileGrantsByMembershipIdExist?: boolean; /** 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 `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `granted` field. */ granted?: BitStringFilter; /** Filter by the object’s `id` field. */ @@ -1413,16 +1010,14 @@ export interface AppMembershipFilter { not?: AppMembershipFilter; /** Checks for any expressions in this list. */ or?: AppMembershipFilter[]; - /** Filter by the object’s `profile` relation. */ - profile?: AppProfileFilter; - /** A related `profile` exists. */ - profileExists?: 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; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } /** An input for mutations affecting `AppMembership` */ export interface AppMembershipInput { @@ -1432,6 +1027,7 @@ export interface AppMembershipInput { capabilities?: string; createdAt?: string; createdBy?: string; + createdByPrincipal?: string; /** Bitmask of capabilities directly granted to this member (not from profiles) */ granted?: string; id?: string; @@ -1452,6 +1048,7 @@ export interface AppMembershipInput { profileId?: string; updatedAt?: string; updatedBy?: string; + updatedByPrincipal?: string; } /** Represents an update to a `AppMembership`. Fields that are set will be updated. */ export interface AppMembershipPatch { @@ -1461,6 +1058,7 @@ export interface AppMembershipPatch { capabilities?: string; createdAt?: string; createdBy?: string; + createdByPrincipal?: string; /** Bitmask of capabilities directly granted to this member (not from profiles) */ granted?: string; id?: string; @@ -1481,76 +1079,10 @@ export interface AppMembershipPatch { profileId?: string; updatedAt?: string; updatedBy?: string; + updatedByPrincipal?: string; } -/** A filter to be used against `AppMembershipProfile` object types. All fields are combined with a logical ‘and.’ */ -export interface AppMembershipProfileFilter { - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: AppMembershipProfileFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `membership` relation. */ - membership?: AppMembershipFilter; - /** Filter by the object’s `membershipId` field. */ - membershipId?: UUIDFilter; - /** Negates the expression. */ - not?: AppMembershipProfileFilter; - /** Checks for any expressions in this list. */ - or?: AppMembershipProfileFilter[]; - /** Filter by the object’s `profile` relation. */ - profile?: AppProfileFilter; - /** Filter by the object’s `profileId` field. */ - profileId?: UUIDFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -/** An input for mutations affecting `AppMembershipProfile` */ -export interface AppMembershipProfileInput { - /** References the user holding the profile, denormalised from the membership */ - actorId: string; - createdAt?: string; - id?: string; - /** References the membership holding the profile */ - membershipId: string; - /** References the held profile */ - profileId: string; - updatedAt?: string; -} -/** Represents an update to a `AppMembershipProfile`. Fields that are set will be updated. */ -export interface AppMembershipProfilePatch { - /** References the user holding the profile, denormalised from the membership */ - actorId?: string; - createdAt?: string; - id?: string; - /** References the membership holding the profile */ - membershipId?: string; - /** References the held profile */ - profileId?: string; - updatedAt?: string; -} -/** A filter to be used against many `AppMembershipProfile` object types. All fields are combined with a logical ‘and.’ */ -export interface AppMembershipToManyAppMembershipProfileFilter { - /** Filters to entities where every related entity matches. */ - every?: AppMembershipProfileFilter; - /** Filters to entities where no related entity matches. */ - none?: AppMembershipProfileFilter; - /** Filters to entities where at least one related entity matches. */ - some?: AppMembershipProfileFilter; -} -/** A filter to be used against many `AppProfileGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface AppMembershipToManyAppProfileGrantFilter { - /** Filters to entities where every related entity matches. */ - every?: AppProfileGrantFilter; - /** Filters to entities where no related entity matches. */ - none?: AppProfileGrantFilter; - /** Filters to entities where at least one related entity matches. */ - some?: AppProfileGrantFilter; -} -/** A filter to be used against `AppOwnerGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface AppOwnerGrantFilter { +/** A filter to be used against `AppOwnerGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface AppOwnerGrantFilter { /** Filter by the object’s `actorId` field. */ actorId?: UUIDFilter; /** Checks for all expressions in this list. */ @@ -1592,361 +1124,6 @@ export interface AppOwnerGrantPatch { isGrant?: boolean; updatedAt?: string; } -/** A filter to be used against `AppProfileCapability` object types. All fields are combined with a logical ‘and.’ */ -export interface AppProfileCapabilityFilter { - /** Checks for all expressions in this list. */ - and?: AppProfileCapabilityFilter[]; - /** Filter by the object’s `capability` relation. */ - capability?: AppCapabilityFilter; - /** 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?: AppProfileCapabilityFilter; - /** Checks for any expressions in this list. */ - or?: AppProfileCapabilityFilter[]; - /** Filter by the object’s `profile` relation. */ - profile?: AppProfileFilter; - /** Filter by the object’s `profileId` field. */ - profileId?: UUIDFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -/** An input for mutations affecting `AppProfileCapability` */ -export interface AppProfileCapabilityInput { - /** References the capability included in this profile */ - capabilityId: string; - createdAt?: string; - id?: string; - /** References the profile this capability belongs to */ - profileId: string; - updatedAt?: string; -} -/** Represents an update to a `AppProfileCapability`. Fields that are set will be updated. */ -export interface AppProfileCapabilityPatch { - /** References the capability included in this profile */ - capabilityId?: string; - createdAt?: string; - id?: string; - /** References the profile this capability belongs to */ - profileId?: string; - updatedAt?: string; -} -/** A filter to be used against `AppProfileDefinitionGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface AppProfileDefinitionGrantFilter { - /** Checks for all expressions in this list. */ - and?: AppProfileDefinitionGrantFilter[]; - /** Filter by the object’s `capability` relation. */ - capability?: AppCapabilityFilter; - /** A related `capability` exists. */ - capabilityExists?: boolean; - /** 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?: AppProfileDefinitionGrantFilter; - /** Checks for any expressions in this list. */ - or?: AppProfileDefinitionGrantFilter[]; - /** Filter by the object’s `profile` relation. */ - profile?: AppProfileFilter; - /** A related `profile` exists. */ - profileExists?: boolean; - /** Filter by the object’s `profileId` field. */ - profileId?: UUIDFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -/** An input for mutations affecting `AppProfileDefinitionGrant` */ -export interface AppProfileDefinitionGrantInput { - /** References the capability that was added to or removed from the profile; NULL if capability was deleted */ - capabilityId?: string; - createdAt?: string; - grantorId?: string; - id?: string; - /** True to add the capability to the profile, false to remove it */ - isGrant?: boolean; - /** References the profile whose definition was modified; NULL if profile was deleted */ - profileId?: string; - updatedAt?: string; -} -/** Represents an update to a `AppProfileDefinitionGrant`. Fields that are set will be updated. */ -export interface AppProfileDefinitionGrantPatch { - /** References the capability that was added to or removed from the profile; NULL if capability was deleted */ - capabilityId?: string; - createdAt?: string; - grantorId?: string; - id?: string; - /** True to add the capability to the profile, false to remove it */ - isGrant?: boolean; - /** References the profile whose definition was modified; NULL if profile was deleted */ - profileId?: string; - updatedAt?: string; -} -/** A filter to be used against `AppProfile` object types. All fields are combined with a logical ‘and.’ */ -export interface AppProfileFilter { - /** Checks for all expressions in this list. */ - and?: AppProfileFilter[]; - /** Filter by the object’s `appInvitesByProfileId` relation. */ - appInvitesByProfileId?: AppProfileToManyAppInviteFilter; - /** `appInvitesByProfileId` exist. */ - appInvitesByProfileIdExist?: boolean; - /** Filter by the object’s `appMembershipProfilesByProfileId` relation. */ - appMembershipProfilesByProfileId?: AppProfileToManyAppMembershipProfileFilter; - /** `appMembershipProfilesByProfileId` exist. */ - appMembershipProfilesByProfileIdExist?: boolean; - /** Filter by the object’s `appMembershipsByProfileId` relation. */ - appMembershipsByProfileId?: AppProfileToManyAppMembershipFilter; - /** `appMembershipsByProfileId` exist. */ - appMembershipsByProfileIdExist?: boolean; - /** Filter by the object’s `appProfileCapabilitiesByProfileId` relation. */ - appProfileCapabilitiesByProfileId?: AppProfileToManyAppProfileCapabilityFilter; - /** `appProfileCapabilitiesByProfileId` exist. */ - appProfileCapabilitiesByProfileIdExist?: boolean; - /** Filter by the object’s `appProfileDefinitionGrantsByProfileId` relation. */ - appProfileDefinitionGrantsByProfileId?: AppProfileToManyAppProfileDefinitionGrantFilter; - /** `appProfileDefinitionGrantsByProfileId` exist. */ - appProfileDefinitionGrantsByProfileIdExist?: boolean; - /** Filter by the object’s `appProfileGrantsByProfileId` relation. */ - appProfileGrantsByProfileId?: AppProfileToManyAppProfileGrantFilter; - /** `appProfileGrantsByProfileId` exist. */ - appProfileGrantsByProfileIdExist?: boolean; - /** Filter by the object’s `capabilities` field. */ - capabilities?: BitStringFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isDefault` field. */ - isDefault?: BooleanFilter; - /** Filter by the object’s `isSystem` field. */ - isSystem?: BooleanFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Negates the expression. */ - not?: AppProfileFilter; - /** Checks for any expressions in this list. */ - or?: AppProfileFilter[]; - /** Filter by the object’s `slug` field. */ - slug?: StringFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -/** A filter to be used against `AppProfileGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface AppProfileGrantFilter { - /** Checks for all expressions in this list. */ - and?: AppProfileGrantFilter[]; - /** 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; - /** Filter by the object’s `membership` relation. */ - membership?: AppMembershipFilter; - /** A related `membership` exists. */ - membershipExists?: boolean; - /** Filter by the object’s `membershipId` field. */ - membershipId?: UUIDFilter; - /** Negates the expression. */ - not?: AppProfileGrantFilter; - /** Checks for any expressions in this list. */ - or?: AppProfileGrantFilter[]; - /** Filter by the object’s `profile` relation. */ - profile?: AppProfileFilter; - /** A related `profile` exists. */ - profileExists?: boolean; - /** Filter by the object’s `profileId` field. */ - profileId?: UUIDFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -/** An input for mutations affecting `AppProfileGrant` */ -export interface AppProfileGrantInput { - createdAt?: string; - grantorId?: string; - id?: string; - /** True to assign the profile, false to revoke it */ - isGrant?: boolean; - /** References the membership that received or lost this profile; NULL if membership was deleted */ - membershipId?: string; - /** References the profile being assigned; NULL indicates the profile was removed */ - profileId?: string; - updatedAt?: string; -} -/** Represents an update to a `AppProfileGrant`. Fields that are set will be updated. */ -export interface AppProfileGrantPatch { - createdAt?: string; - grantorId?: string; - id?: string; - /** True to assign the profile, false to revoke it */ - isGrant?: boolean; - /** References the membership that received or lost this profile; NULL if membership was deleted */ - membershipId?: string; - /** References the profile being assigned; NULL indicates the profile was removed */ - profileId?: string; - updatedAt?: string; -} -/** An input for mutations affecting `AppProfile` */ -export interface AppProfileInput { - /** Pre-computed capability bitmask aggregating all capabilities in this profile */ - capabilities?: string; - createdAt?: string; - /** Human-readable description of this profile and its intended use */ - description?: string; - id?: string; - /** The default profile is automatically assigned to new members when they join */ - isDefault?: boolean; - /** System profiles are built-in and cannot be deleted or renamed by users */ - isSystem?: boolean; - /** Display name for this profile (e.g. Admin, Editor, Viewer) */ - name: string; - /** URL-safe identifier for this profile, used in API references */ - slug: string; - updatedAt?: string; -} -/** Represents an update to a `AppProfile`. Fields that are set will be updated. */ -export interface AppProfilePatch { - /** Pre-computed capability bitmask aggregating all capabilities in this profile */ - capabilities?: string; - createdAt?: string; - /** Human-readable description of this profile and its intended use */ - description?: string; - id?: string; - /** The default profile is automatically assigned to new members when they join */ - isDefault?: boolean; - /** System profiles are built-in and cannot be deleted or renamed by users */ - isSystem?: boolean; - /** Display name for this profile (e.g. Admin, Editor, Viewer) */ - name?: string; - /** URL-safe identifier for this profile, used in API references */ - slug?: string; - updatedAt?: string; -} -/** A filter to be used against `AppProfileTemplate` object types. All fields are combined with a logical ‘and.’ */ -export interface AppProfileTemplateFilter { - /** Checks for all expressions in this list. */ - and?: AppProfileTemplateFilter[]; - /** Filter by the object’s `capabilities` field. */ - capabilities?: BitStringFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isDefault` field. */ - isDefault?: BooleanFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Negates the expression. */ - not?: AppProfileTemplateFilter; - /** Checks for any expressions in this list. */ - or?: AppProfileTemplateFilter[]; - /** Filter by the object’s `slug` field. */ - slug?: StringFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -/** An input for mutations affecting `AppProfileTemplate` */ -export interface AppProfileTemplateInput { - /** Pre-computed capability bitmask for the seeded profile */ - capabilities?: string; - createdAt?: string; - /** Human-readable description of this template profile */ - description?: string; - id?: string; - /** Whether the seeded profile should be the default for new members */ - isDefault?: boolean; - /** Display name for the template profile (e.g. Admin, Editor, Viewer) */ - name: string; - /** URL-safe identifier for the template profile */ - slug: string; - updatedAt?: string; -} -/** Represents an update to a `AppProfileTemplate`. Fields that are set will be updated. */ -export interface AppProfileTemplatePatch { - /** Pre-computed capability bitmask for the seeded profile */ - capabilities?: string; - createdAt?: string; - /** Human-readable description of this template profile */ - description?: string; - id?: string; - /** Whether the seeded profile should be the default for new members */ - isDefault?: boolean; - /** Display name for the template profile (e.g. Admin, Editor, Viewer) */ - name?: string; - /** URL-safe identifier for the template profile */ - slug?: string; - updatedAt?: string; -} -/** A filter to be used against many `AppInvite` object types. All fields are combined with a logical ‘and.’ */ -export interface AppProfileToManyAppInviteFilter { - /** Filters to entities where every related entity matches. */ - every?: AppInviteFilter; - /** Filters to entities where no related entity matches. */ - none?: AppInviteFilter; - /** Filters to entities where at least one related entity matches. */ - some?: AppInviteFilter; -} -/** A filter to be used against many `AppMembership` object types. All fields are combined with a logical ‘and.’ */ -export interface AppProfileToManyAppMembershipFilter { - /** Filters to entities where every related entity matches. */ - every?: AppMembershipFilter; - /** Filters to entities where no related entity matches. */ - none?: AppMembershipFilter; - /** Filters to entities where at least one related entity matches. */ - some?: AppMembershipFilter; -} -/** A filter to be used against many `AppMembershipProfile` object types. All fields are combined with a logical ‘and.’ */ -export interface AppProfileToManyAppMembershipProfileFilter { - /** Filters to entities where every related entity matches. */ - every?: AppMembershipProfileFilter; - /** Filters to entities where no related entity matches. */ - none?: AppMembershipProfileFilter; - /** Filters to entities where at least one related entity matches. */ - some?: AppMembershipProfileFilter; -} -/** A filter to be used against many `AppProfileCapability` object types. All fields are combined with a logical ‘and.’ */ -export interface AppProfileToManyAppProfileCapabilityFilter { - /** Filters to entities where every related entity matches. */ - every?: AppProfileCapabilityFilter; - /** Filters to entities where no related entity matches. */ - none?: AppProfileCapabilityFilter; - /** Filters to entities where at least one related entity matches. */ - some?: AppProfileCapabilityFilter; -} -/** A filter to be used against many `AppProfileDefinitionGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface AppProfileToManyAppProfileDefinitionGrantFilter { - /** Filters to entities where every related entity matches. */ - every?: AppProfileDefinitionGrantFilter; - /** Filters to entities where no related entity matches. */ - none?: AppProfileDefinitionGrantFilter; - /** Filters to entities where at least one related entity matches. */ - some?: AppProfileDefinitionGrantFilter; -} -/** A filter to be used against many `AppProfileGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface AppProfileToManyAppProfileGrantFilter { - /** Filters to entities where every related entity matches. */ - every?: AppProfileGrantFilter; - /** Filters to entities where no related entity matches. */ - none?: AppProfileGrantFilter; - /** Filters to entities where at least one related entity matches. */ - some?: AppProfileGrantFilter; -} /** 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. */ @@ -2074,16 +1251,6 @@ export interface CreateAppCapabilityDefaultGrantInput { appCapabilityDefaultGrant: AppCapabilityDefaultGrantInput; clientMutationId?: string; } -export interface CreateAppCapabilityDefaultInput { - /** The `AppCapabilityDefault` to be created by this mutation. */ - appCapabilityDefault: AppCapabilityDefaultInput; - clientMutationId?: string; -} -export interface CreateAppCapabilityInput { - /** The `AppCapability` to be created by this mutation. */ - appCapability: AppCapabilityInput; - clientMutationId?: string; -} export interface CreateAppClaimedInviteInput { /** The `AppClaimedInvite` to be created by this mutation. */ appClaimedInvite: AppClaimedInviteInput; @@ -2109,41 +1276,11 @@ export interface CreateAppMembershipInput { appMembership: AppMembershipInput; clientMutationId?: string; } -export interface CreateAppMembershipProfileInput { - /** The `AppMembershipProfile` to be created by this mutation. */ - appMembershipProfile: AppMembershipProfileInput; - clientMutationId?: string; -} export interface CreateAppOwnerGrantInput { /** The `AppOwnerGrant` to be created by this mutation. */ appOwnerGrant: AppOwnerGrantInput; clientMutationId?: string; } -export interface CreateAppProfileCapabilityInput { - /** The `AppProfileCapability` to be created by this mutation. */ - appProfileCapability: AppProfileCapabilityInput; - clientMutationId?: string; -} -export interface CreateAppProfileDefinitionGrantInput { - /** The `AppProfileDefinitionGrant` to be created by this mutation. */ - appProfileDefinitionGrant: AppProfileDefinitionGrantInput; - clientMutationId?: string; -} -export interface CreateAppProfileGrantInput { - /** The `AppProfileGrant` to be created by this mutation. */ - appProfileGrant: AppProfileGrantInput; - clientMutationId?: string; -} -export interface CreateAppProfileInput { - /** The `AppProfile` to be created by this mutation. */ - appProfile: AppProfileInput; - clientMutationId?: string; -} -export interface CreateAppProfileTemplateInput { - /** The `AppProfileTemplate` to be created by this mutation. */ - appProfileTemplate: AppProfileTemplateInput; - clientMutationId?: string; -} export interface CreateMembershipTypeInput { clientMutationId?: string; /** The `MembershipType` to be created by this mutation. */ @@ -2164,16 +1301,6 @@ export interface CreateOrgCapabilityDefaultGrantInput { /** The `OrgCapabilityDefaultGrant` to be created by this mutation. */ orgCapabilityDefaultGrant: OrgCapabilityDefaultGrantInput; } -export interface CreateOrgCapabilityDefaultInput { - clientMutationId?: string; - /** The `OrgCapabilityDefault` to be created by this mutation. */ - orgCapabilityDefault: OrgCapabilityDefaultInput; -} -export interface CreateOrgCapabilityInput { - clientMutationId?: string; - /** The `OrgCapability` to be created by this mutation. */ - orgCapability: OrgCapabilityInput; -} export interface CreateOrgChartEdgeGrantInput { clientMutationId?: string; /** The `OrgChartEdgeGrant` to be created by this mutation. */ @@ -2219,11 +1346,6 @@ export interface CreateOrgMembershipInput { /** The `OrgMembership` to be created by this mutation. */ orgMembership: OrgMembershipInput; } -export interface CreateOrgMembershipProfileInput { - clientMutationId?: string; - /** The `OrgMembershipProfile` to be created by this mutation. */ - orgMembershipProfile: OrgMembershipProfileInput; -} export interface CreateOrgMembershipSettingInput { clientMutationId?: string; /** The `OrgMembershipSetting` to be created by this mutation. */ @@ -2234,31 +1356,6 @@ export interface CreateOrgOwnerGrantInput { /** The `OrgOwnerGrant` to be created by this mutation. */ orgOwnerGrant: OrgOwnerGrantInput; } -export interface CreateOrgProfileCapabilityInput { - clientMutationId?: string; - /** The `OrgProfileCapability` to be created by this mutation. */ - orgProfileCapability: OrgProfileCapabilityInput; -} -export interface CreateOrgProfileDefinitionGrantInput { - clientMutationId?: string; - /** The `OrgProfileDefinitionGrant` to be created by this mutation. */ - orgProfileDefinitionGrant: OrgProfileDefinitionGrantInput; -} -export interface CreateOrgProfileGrantInput { - clientMutationId?: string; - /** The `OrgProfileGrant` to be created by this mutation. */ - orgProfileGrant: OrgProfileGrantInput; -} -export interface CreateOrgProfileInput { - clientMutationId?: string; - /** The `OrgProfile` to be created by this mutation. */ - orgProfile: OrgProfileInput; -} -export interface CreateOrgProfileTemplateInput { - clientMutationId?: string; - /** The `OrgProfileTemplate` to be created by this mutation. */ - orgProfileTemplate: OrgProfileTemplateInput; -} export interface DeleteAppAdminGrantInput { clientMutationId?: string; id: string; @@ -2271,14 +1368,6 @@ export interface DeleteAppCapabilityDefaultGrantInput { clientMutationId?: string; id: string; } -export interface DeleteAppCapabilityDefaultInput { - clientMutationId?: string; - id: string; -} -export interface DeleteAppCapabilityInput { - clientMutationId?: string; - id: string; -} export interface DeleteAppClaimedInviteInput { clientMutationId?: string; id: string; @@ -2299,34 +1388,10 @@ export interface DeleteAppMembershipInput { clientMutationId?: string; id: string; } -export interface DeleteAppMembershipProfileInput { - clientMutationId?: string; - id: string; -} export interface DeleteAppOwnerGrantInput { clientMutationId?: string; id: string; } -export interface DeleteAppProfileCapabilityInput { - clientMutationId?: string; - id: string; -} -export interface DeleteAppProfileDefinitionGrantInput { - clientMutationId?: string; - id: string; -} -export interface DeleteAppProfileGrantInput { - clientMutationId?: string; - id: string; -} -export interface DeleteAppProfileInput { - clientMutationId?: string; - id: string; -} -export interface DeleteAppProfileTemplateInput { - clientMutationId?: string; - id: string; -} export interface DeleteMembershipTypeInput { clientMutationId?: string; /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ @@ -2344,14 +1409,6 @@ export interface DeleteOrgCapabilityDefaultGrantInput { clientMutationId?: string; id: string; } -export interface DeleteOrgCapabilityDefaultInput { - clientMutationId?: string; - id: string; -} -export interface DeleteOrgCapabilityInput { - clientMutationId?: string; - id: string; -} export interface DeleteOrgChartEdgeGrantInput { clientMutationId?: string; id: string; @@ -2368,55 +1425,31 @@ export interface DeleteOrgGrantInput { clientMutationId?: string; id: string; } -export interface DeleteOrgInviteInput { - clientMutationId?: string; - id: string; -} -export interface DeleteOrgMemberInput { - clientMutationId?: string; - id: string; -} -export interface DeleteOrgMemberProfileInput { - clientMutationId?: string; - id: string; -} -export interface DeleteOrgMembershipDefaultInput { - clientMutationId?: string; - id: string; -} -export interface DeleteOrgMembershipInput { - clientMutationId?: string; - id: string; -} -export interface DeleteOrgMembershipProfileInput { - clientMutationId?: string; - id: string; -} -export interface DeleteOrgMembershipSettingInput { +export interface DeleteOrgInviteInput { clientMutationId?: string; id: string; } -export interface DeleteOrgOwnerGrantInput { +export interface DeleteOrgMemberInput { clientMutationId?: string; id: string; } -export interface DeleteOrgProfileCapabilityInput { +export interface DeleteOrgMemberProfileInput { clientMutationId?: string; id: string; } -export interface DeleteOrgProfileDefinitionGrantInput { +export interface DeleteOrgMembershipDefaultInput { clientMutationId?: string; id: string; } -export interface DeleteOrgProfileGrantInput { +export interface DeleteOrgMembershipInput { clientMutationId?: string; id: string; } -export interface DeleteOrgProfileInput { +export interface DeleteOrgMembershipSettingInput { clientMutationId?: string; id: string; } -export interface DeleteOrgProfileTemplateInput { +export interface DeleteOrgOwnerGrantInput { clientMutationId?: string; id: string; } @@ -2524,8 +1557,6 @@ export interface OrgAdminGrantPatch { export interface OrgCapabilityDefaultCapabilityFilter { /** Checks for all expressions in this list. */ and?: OrgCapabilityDefaultCapabilityFilter[]; - /** Filter by the object’s `capability` relation. */ - capability?: OrgCapabilityFilter; /** Filter by the object’s `capabilityId` field. */ capabilityId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ @@ -2561,27 +1592,10 @@ export interface OrgCapabilityDefaultCapabilityPatch { id?: string; updatedAt?: string; } -/** A filter to be used against `OrgCapabilityDefault` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgCapabilityDefaultFilter { - /** Checks for all expressions in this list. */ - and?: OrgCapabilityDefaultFilter[]; - /** Filter by the object’s `capabilities` field. */ - capabilities?: BitStringFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Negates the expression. */ - not?: OrgCapabilityDefaultFilter; - /** Checks for any expressions in this list. */ - or?: OrgCapabilityDefaultFilter[]; -} /** 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 `capability` relation. */ - capability?: OrgCapabilityFilter; /** Filter by the object’s `capabilityId` field. */ capabilityId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ @@ -2627,123 +1641,6 @@ export interface OrgCapabilityDefaultGrantPatch { isGrant?: boolean; updatedAt?: string; } -/** An input for mutations affecting `OrgCapabilityDefault` */ -export interface OrgCapabilityDefaultInput { - /** Default capability bitmask applied to new members */ - capabilities?: string; - /** References the entity these default capabilities apply to */ - entityId: string; - id?: string; -} -/** Represents an update to a `OrgCapabilityDefault`. Fields that are set will be updated. */ -export interface OrgCapabilityDefaultPatch { - /** Default capability bitmask applied to new members */ - capabilities?: string; - /** References the entity these default capabilities apply to */ - entityId?: string; - id?: string; -} -/** A filter to be used against `OrgCapability` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgCapabilityFilter { - /** Checks for all expressions in this list. */ - and?: OrgCapabilityFilter[]; - /** 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 `kind` field. */ - kind?: StringFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Negates the expression. */ - not?: OrgCapabilityFilter; - /** Checks for any expressions in this list. */ - or?: OrgCapabilityFilter[]; - /** Filter by the object’s `orgCapabilityDefaultCapabilitiesByCapabilityId` relation. */ - orgCapabilityDefaultCapabilitiesByCapabilityId?: OrgCapabilityToManyOrgCapabilityDefaultCapabilityFilter; - /** `orgCapabilityDefaultCapabilitiesByCapabilityId` exist. */ - orgCapabilityDefaultCapabilitiesByCapabilityIdExist?: boolean; - /** Filter by the object’s `orgCapabilityDefaultGrantsByCapabilityId` relation. */ - orgCapabilityDefaultGrantsByCapabilityId?: OrgCapabilityToManyOrgCapabilityDefaultGrantFilter; - /** `orgCapabilityDefaultGrantsByCapabilityId` exist. */ - orgCapabilityDefaultGrantsByCapabilityIdExist?: boolean; - /** Filter by the object’s `orgProfileCapabilitiesByCapabilityId` relation. */ - orgProfileCapabilitiesByCapabilityId?: OrgCapabilityToManyOrgProfileCapabilityFilter; - /** `orgProfileCapabilitiesByCapabilityId` exist. */ - orgProfileCapabilitiesByCapabilityIdExist?: boolean; - /** Filter by the object’s `orgProfileDefinitionGrantsByCapabilityId` relation. */ - orgProfileDefinitionGrantsByCapabilityId?: OrgCapabilityToManyOrgProfileDefinitionGrantFilter; - /** `orgProfileDefinitionGrantsByCapabilityId` exist. */ - orgProfileDefinitionGrantsByCapabilityIdExist?: boolean; -} -/** An input for mutations affecting `OrgCapability` */ -export interface OrgCapabilityInput { - /** Position of this capability in the bitmask (1-indexed), must be unique per capability set */ - bitnum?: number; - /** Pre-computed bitmask with only this capability bit set, used for bitwise OR/AND operations */ - bitstr?: string; - /** Human-readable description of what this capability allows */ - description?: string; - id?: string; - /** Kind of catalog entry: capability (capability) or level (achievement level) */ - kind?: string; - /** Human-readable capability name (e.g. read, write, manage) */ - name?: string; -} -/** Represents an update to a `OrgCapability`. Fields that are set will be updated. */ -export interface OrgCapabilityPatch { - /** Position of this capability in the bitmask (1-indexed), must be unique per capability set */ - bitnum?: number; - /** Pre-computed bitmask with only this capability bit set, used for bitwise OR/AND operations */ - bitstr?: string; - /** Human-readable description of what this capability allows */ - description?: string; - id?: string; - /** Kind of catalog entry: capability (capability) or level (achievement level) */ - kind?: string; - /** Human-readable capability name (e.g. read, write, manage) */ - name?: string; -} -/** A filter to be used against many `OrgCapabilityDefaultCapability` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgCapabilityToManyOrgCapabilityDefaultCapabilityFilter { - /** Filters to entities where every related entity matches. */ - every?: OrgCapabilityDefaultCapabilityFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgCapabilityDefaultCapabilityFilter; - /** Filters to entities where at least one related entity matches. */ - some?: OrgCapabilityDefaultCapabilityFilter; -} -/** A filter to be used against many `OrgCapabilityDefaultGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgCapabilityToManyOrgCapabilityDefaultGrantFilter { - /** Filters to entities where every related entity matches. */ - every?: OrgCapabilityDefaultGrantFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgCapabilityDefaultGrantFilter; - /** Filters to entities where at least one related entity matches. */ - some?: OrgCapabilityDefaultGrantFilter; -} -/** A filter to be used against many `OrgProfileCapability` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgCapabilityToManyOrgProfileCapabilityFilter { - /** Filters to entities where every related entity matches. */ - every?: OrgProfileCapabilityFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgProfileCapabilityFilter; - /** Filters to entities where at least one related entity matches. */ - some?: OrgProfileCapabilityFilter; -} -/** A filter to be used against many `OrgProfileDefinitionGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgCapabilityToManyOrgProfileDefinitionGrantFilter { - /** Filters to entities where every related entity matches. */ - every?: OrgProfileDefinitionGrantFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgProfileDefinitionGrantFilter; - /** Filters to entities where at least one related entity matches. */ - some?: OrgProfileDefinitionGrantFilter; -} /** A filter to be used against `OrgChartEdge` object types. All fields are combined with a logical ‘and.’ */ export interface OrgChartEdgeFilter { /** Checks for all expressions in this list. */ @@ -3004,10 +1901,6 @@ export interface OrgInviteFilter { or?: OrgInviteFilter[]; /** Filter by the object’s `phone` field. */ phone?: StringFilter; - /** Filter by the object’s `profile` relation. */ - profile?: OrgProfileFilter; - /** A related `profile` exists. */ - profileExists?: boolean; /** Filter by the object’s `profileId` field. */ profileId?: UUIDFilter; /** Filter by the object’s `receiverId` field. */ @@ -3211,6 +2104,8 @@ export interface OrgMembershipDefaultFilter { createdAt?: DatetimeFilter; /** Filter by the object’s `createdBy` field. */ createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `entityId` field. */ entityId?: UUIDFilter; /** Filter by the object’s `id` field. */ @@ -3225,11 +2120,14 @@ export interface OrgMembershipDefaultFilter { updatedAt?: DatetimeFilter; /** Filter by the object’s `updatedBy` field. */ updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } /** An input for mutations affecting `OrgMembershipDefault` */ export interface OrgMembershipDefaultInput { createdAt?: string; createdBy?: string; + createdByPrincipal?: string; /** References the entity these membership defaults apply to */ entityId: string; id?: string; @@ -3237,11 +2135,13 @@ export interface OrgMembershipDefaultInput { isApproved?: boolean; updatedAt?: string; updatedBy?: string; + updatedByPrincipal?: string; } /** Represents an update to a `OrgMembershipDefault`. Fields that are set will be updated. */ export interface OrgMembershipDefaultPatch { createdAt?: string; createdBy?: string; + createdByPrincipal?: string; /** References the entity these membership defaults apply to */ entityId?: string; id?: string; @@ -3249,6 +2149,7 @@ export interface OrgMembershipDefaultPatch { isApproved?: boolean; updatedAt?: string; updatedBy?: string; + updatedByPrincipal?: string; } /** A filter to be used against `OrgMembership` object types. All fields are combined with a logical ‘and.’ */ export interface OrgMembershipFilter { @@ -3262,6 +2163,8 @@ export interface OrgMembershipFilter { createdAt?: DatetimeFilter; /** Filter by the object’s `createdBy` field. */ createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `entityId` field. */ entityId?: UUIDFilter; /** Filter by the object’s `granted` field. */ @@ -3292,24 +2195,14 @@ export interface OrgMembershipFilter { orgMemberProfileByMembershipId?: OrgMemberProfileFilter; /** A related `orgMemberProfileByMembershipId` exists. */ orgMemberProfileByMembershipIdExists?: boolean; - /** Filter by the object’s `orgMembershipProfilesByMembershipId` relation. */ - orgMembershipProfilesByMembershipId?: OrgMembershipToManyOrgMembershipProfileFilter; - /** `orgMembershipProfilesByMembershipId` exist. */ - orgMembershipProfilesByMembershipIdExist?: boolean; - /** Filter by the object’s `orgProfileGrantsByMembershipId` relation. */ - orgProfileGrantsByMembershipId?: OrgMembershipToManyOrgProfileGrantFilter; - /** `orgProfileGrantsByMembershipId` exist. */ - orgProfileGrantsByMembershipIdExist?: boolean; - /** Filter by the object’s `profile` relation. */ - profile?: OrgProfileFilter; - /** A related `profile` exists. */ - profileExists?: 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; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } /** An input for mutations affecting `OrgMembership` */ export interface OrgMembershipInput { @@ -3319,6 +2212,7 @@ export interface OrgMembershipInput { capabilities?: string; createdAt?: string; createdBy?: string; + createdByPrincipal?: string; /** References the entity (org or group) this membership belongs to */ entityId: string; /** Bitmask of capabilities directly granted to this member (not from profiles) */ @@ -3343,6 +2237,7 @@ export interface OrgMembershipInput { profileId?: string; updatedAt?: string; updatedBy?: string; + updatedByPrincipal?: string; } /** Represents an update to a `OrgMembership`. Fields that are set will be updated. */ export interface OrgMembershipPatch { @@ -3352,6 +2247,7 @@ export interface OrgMembershipPatch { capabilities?: string; createdAt?: string; createdBy?: string; + createdByPrincipal?: string; /** References the entity (org or group) this membership belongs to */ entityId?: string; /** Bitmask of capabilities directly granted to this member (not from profiles) */ @@ -3376,60 +2272,14 @@ export interface OrgMembershipPatch { profileId?: string; updatedAt?: string; updatedBy?: string; -} -/** A filter to be used against `OrgMembershipProfile` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgMembershipProfileFilter { - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: OrgMembershipProfileFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `membership` relation. */ - membership?: OrgMembershipFilter; - /** Filter by the object’s `membershipId` field. */ - membershipId?: UUIDFilter; - /** Negates the expression. */ - not?: OrgMembershipProfileFilter; - /** Checks for any expressions in this list. */ - or?: OrgMembershipProfileFilter[]; - /** Filter by the object’s `profile` relation. */ - profile?: OrgProfileFilter; - /** Filter by the object’s `profileId` field. */ - profileId?: UUIDFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -/** An input for mutations affecting `OrgMembershipProfile` */ -export interface OrgMembershipProfileInput { - /** References the user holding the profile, denormalised from the membership */ - actorId: string; - createdAt?: string; - id?: string; - /** References the membership holding the profile */ - membershipId: string; - /** References the held profile */ - profileId: string; - updatedAt?: string; -} -/** Represents an update to a `OrgMembershipProfile`. Fields that are set will be updated. */ -export interface OrgMembershipProfilePatch { - /** References the user holding the profile, denormalised from the membership */ - actorId?: string; - createdAt?: string; - id?: string; - /** References the membership holding the profile */ - membershipId?: string; - /** References the held profile */ - profileId?: string; - updatedAt?: string; + updatedByPrincipal?: string; } /** A filter to be used against `OrgMembershipSetting` object types. All fields are combined with a logical ‘and.’ */ export interface OrgMembershipSettingFilter { /** Filter by the object’s `allowExternalMembers` field. */ allowExternalMembers?: BooleanFilter; + /** Filter by the object’s `allowPrincipalOwnedApiKeys` field. */ + allowPrincipalOwnedApiKeys?: BooleanFilter; /** Checks for all expressions in this list. */ and?: OrgMembershipSettingFilter[]; /** Filter by the object’s `createChildCascadeAdmins` field. */ @@ -3442,6 +2292,8 @@ export interface OrgMembershipSettingFilter { createdAt?: DatetimeFilter; /** Filter by the object’s `createdBy` field. */ createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `deleteMemberCascadeChildren` field. */ deleteMemberCascadeChildren?: BooleanFilter; /** Filter by the object’s `entityId` field. */ @@ -3462,11 +2314,15 @@ export interface OrgMembershipSettingFilter { updatedAt?: DatetimeFilter; /** Filter by the object’s `updatedBy` field. */ updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } /** An input for mutations affecting `OrgMembershipSetting` */ export interface OrgMembershipSettingInput { /** Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) */ allowExternalMembers?: boolean; + /** Whether principals (agents, API-key identities) may mint API keys and child sessions for this org; requires auth_settings.allow_principal_delegation too */ + allowPrincipalOwnedApiKeys?: 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 */ @@ -3475,6 +2331,7 @@ export interface OrgMembershipSettingInput { createChildCascadeOwners?: boolean; createdAt?: string; createdBy?: string; + createdByPrincipal?: string; /** When a member is deleted, whether to cascade-remove their descendant-entity memberships */ deleteMemberCascadeChildren?: boolean; /** References the entity these settings apply to */ @@ -3488,11 +2345,14 @@ export interface OrgMembershipSettingInput { populateMemberEmail?: boolean; updatedAt?: string; updatedBy?: string; + updatedByPrincipal?: string; } /** Represents an update to a `OrgMembershipSetting`. Fields that are set will be updated. */ export interface OrgMembershipSettingPatch { /** Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) */ allowExternalMembers?: boolean; + /** Whether principals (agents, API-key identities) may mint API keys and child sessions for this org; requires auth_settings.allow_principal_delegation too */ + allowPrincipalOwnedApiKeys?: 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 */ @@ -3501,6 +2361,7 @@ export interface OrgMembershipSettingPatch { createChildCascadeOwners?: boolean; createdAt?: string; createdBy?: string; + createdByPrincipal?: string; /** When a member is deleted, whether to cascade-remove their descendant-entity memberships */ deleteMemberCascadeChildren?: boolean; /** References the entity these settings apply to */ @@ -3514,24 +2375,7 @@ export interface OrgMembershipSettingPatch { populateMemberEmail?: boolean; updatedAt?: string; updatedBy?: string; -} -/** A filter to be used against many `OrgMembershipProfile` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgMembershipToManyOrgMembershipProfileFilter { - /** Filters to entities where every related entity matches. */ - every?: OrgMembershipProfileFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgMembershipProfileFilter; - /** Filters to entities where at least one related entity matches. */ - some?: OrgMembershipProfileFilter; -} -/** A filter to be used against many `OrgProfileGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgMembershipToManyOrgProfileGrantFilter { - /** Filters to entities where every related entity matches. */ - every?: OrgProfileGrantFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgProfileGrantFilter; - /** Filters to entities where at least one related entity matches. */ - some?: OrgProfileGrantFilter; + updatedByPrincipal?: string; } /** A filter to be used against `OrgOwnerGrant` object types. All fields are combined with a logical ‘and.’ */ export interface OrgOwnerGrantFilter { @@ -3546,409 +2390,42 @@ export interface OrgOwnerGrantFilter { /** 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?: OrgOwnerGrantFilter; - /** Checks for any expressions in this list. */ - or?: OrgOwnerGrantFilter[]; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -/** An input for mutations affecting `OrgOwnerGrant` */ -export interface OrgOwnerGrantInput { - /** The member receiving or losing the ownership grant; NULL if user was deleted */ - actorId?: string; - createdAt?: string; - /** The entity (org or group) this ownership grant applies to */ - entityId: string; - grantorId?: string; - id?: string; - /** True to grant ownership, false to revoke ownership */ - isGrant?: boolean; - updatedAt?: string; -} -/** Represents an update to a `OrgOwnerGrant`. Fields that are set will be updated. */ -export interface OrgOwnerGrantPatch { - /** The member receiving or losing the ownership grant; NULL if user was deleted */ - actorId?: string; - createdAt?: string; - /** The entity (org or group) this ownership grant applies to */ - entityId?: string; - grantorId?: string; - id?: string; - /** True to grant ownership, false to revoke ownership */ - isGrant?: boolean; - updatedAt?: string; -} -/** A filter to be used against `OrgProfileCapability` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgProfileCapabilityFilter { - /** Checks for all expressions in this list. */ - and?: OrgProfileCapabilityFilter[]; - /** Filter by the object’s `capability` relation. */ - capability?: OrgCapabilityFilter; - /** 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?: OrgProfileCapabilityFilter; - /** Checks for any expressions in this list. */ - or?: OrgProfileCapabilityFilter[]; - /** Filter by the object’s `profile` relation. */ - profile?: OrgProfileFilter; - /** Filter by the object’s `profileId` field. */ - profileId?: UUIDFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -/** An input for mutations affecting `OrgProfileCapability` */ -export interface OrgProfileCapabilityInput { - /** References the capability included in this profile */ - capabilityId: string; - createdAt?: string; - id?: string; - /** References the profile this capability belongs to */ - profileId: string; - updatedAt?: string; -} -/** Represents an update to a `OrgProfileCapability`. Fields that are set will be updated. */ -export interface OrgProfileCapabilityPatch { - /** References the capability included in this profile */ - capabilityId?: string; - createdAt?: string; - id?: string; - /** References the profile this capability belongs to */ - profileId?: string; - updatedAt?: string; -} -/** A filter to be used against `OrgProfileDefinitionGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgProfileDefinitionGrantFilter { - /** Checks for all expressions in this list. */ - and?: OrgProfileDefinitionGrantFilter[]; - /** Filter by the object’s `capability` relation. */ - capability?: OrgCapabilityFilter; - /** A related `capability` exists. */ - capabilityExists?: boolean; - /** 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?: OrgProfileDefinitionGrantFilter; - /** Checks for any expressions in this list. */ - or?: OrgProfileDefinitionGrantFilter[]; - /** Filter by the object’s `profile` relation. */ - profile?: OrgProfileFilter; - /** A related `profile` exists. */ - profileExists?: boolean; - /** Filter by the object’s `profileId` field. */ - profileId?: UUIDFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -/** An input for mutations affecting `OrgProfileDefinitionGrant` */ -export interface OrgProfileDefinitionGrantInput { - /** References the capability that was added to or removed from the profile; NULL if capability was deleted */ - capabilityId?: string; - createdAt?: string; - grantorId?: string; - id?: string; - /** True to add the capability to the profile, false to remove it */ - isGrant?: boolean; - /** References the profile whose definition was modified; NULL if profile was deleted */ - profileId?: string; - updatedAt?: string; -} -/** Represents an update to a `OrgProfileDefinitionGrant`. Fields that are set will be updated. */ -export interface OrgProfileDefinitionGrantPatch { - /** References the capability that was added to or removed from the profile; NULL if capability was deleted */ - capabilityId?: string; - createdAt?: string; - grantorId?: string; - id?: string; - /** True to add the capability to the profile, false to remove it */ - isGrant?: boolean; - /** References the profile whose definition was modified; NULL if profile was deleted */ - profileId?: string; - updatedAt?: string; -} -/** A filter to be used against `OrgProfile` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgProfileFilter { - /** Checks for all expressions in this list. */ - and?: OrgProfileFilter[]; - /** Filter by the object’s `capabilities` field. */ - capabilities?: BitStringFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isDefault` field. */ - isDefault?: BooleanFilter; - /** Filter by the object’s `isSystem` field. */ - isSystem?: BooleanFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Negates the expression. */ - not?: OrgProfileFilter; - /** Checks for any expressions in this list. */ - or?: OrgProfileFilter[]; - /** Filter by the object’s `orgInvitesByProfileId` relation. */ - orgInvitesByProfileId?: OrgProfileToManyOrgInviteFilter; - /** `orgInvitesByProfileId` exist. */ - orgInvitesByProfileIdExist?: boolean; - /** Filter by the object’s `orgMembershipProfilesByProfileId` relation. */ - orgMembershipProfilesByProfileId?: OrgProfileToManyOrgMembershipProfileFilter; - /** `orgMembershipProfilesByProfileId` exist. */ - orgMembershipProfilesByProfileIdExist?: boolean; - /** Filter by the object’s `orgMembershipsByProfileId` relation. */ - orgMembershipsByProfileId?: OrgProfileToManyOrgMembershipFilter; - /** `orgMembershipsByProfileId` exist. */ - orgMembershipsByProfileIdExist?: boolean; - /** Filter by the object’s `orgProfileCapabilitiesByProfileId` relation. */ - orgProfileCapabilitiesByProfileId?: OrgProfileToManyOrgProfileCapabilityFilter; - /** `orgProfileCapabilitiesByProfileId` exist. */ - orgProfileCapabilitiesByProfileIdExist?: boolean; - /** Filter by the object’s `orgProfileDefinitionGrantsByProfileId` relation. */ - orgProfileDefinitionGrantsByProfileId?: OrgProfileToManyOrgProfileDefinitionGrantFilter; - /** `orgProfileDefinitionGrantsByProfileId` exist. */ - orgProfileDefinitionGrantsByProfileIdExist?: boolean; - /** Filter by the object’s `orgProfileGrantsByProfileId` relation. */ - orgProfileGrantsByProfileId?: OrgProfileToManyOrgProfileGrantFilter; - /** `orgProfileGrantsByProfileId` exist. */ - orgProfileGrantsByProfileIdExist?: boolean; - /** Filter by the object’s `slug` field. */ - slug?: StringFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -/** A filter to be used against `OrgProfileGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgProfileGrantFilter { - /** Checks for all expressions in this list. */ - and?: OrgProfileGrantFilter[]; - /** 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; - /** Filter by the object’s `membership` relation. */ - membership?: OrgMembershipFilter; - /** A related `membership` exists. */ - membershipExists?: boolean; - /** Filter by the object’s `membershipId` field. */ - membershipId?: UUIDFilter; - /** Negates the expression. */ - not?: OrgProfileGrantFilter; - /** Checks for any expressions in this list. */ - or?: OrgProfileGrantFilter[]; - /** Filter by the object’s `profile` relation. */ - profile?: OrgProfileFilter; - /** A related `profile` exists. */ - profileExists?: boolean; - /** Filter by the object’s `profileId` field. */ - profileId?: UUIDFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -/** An input for mutations affecting `OrgProfileGrant` */ -export interface OrgProfileGrantInput { - createdAt?: string; - /** The entity (org or group) scope for this profile grant */ - entityId?: string; - grantorId?: string; - id?: string; - /** True to assign the profile, false to revoke it */ - isGrant?: boolean; - /** References the membership that received or lost this profile; NULL if membership was deleted */ - membershipId?: string; - /** References the profile being assigned; NULL indicates the profile was removed */ - profileId?: string; - updatedAt?: string; -} -/** Represents an update to a `OrgProfileGrant`. Fields that are set will be updated. */ -export interface OrgProfileGrantPatch { - createdAt?: string; - /** The entity (org or group) scope for this profile grant */ - entityId?: string; - grantorId?: string; - id?: string; - /** True to assign the profile, false to revoke it */ - isGrant?: boolean; - /** References the membership that received or lost this profile; NULL if membership was deleted */ - membershipId?: string; - /** References the profile being assigned; NULL indicates the profile was removed */ - profileId?: string; - updatedAt?: string; -} -/** An input for mutations affecting `OrgProfile` */ -export interface OrgProfileInput { - /** Pre-computed capability bitmask aggregating all capabilities in this profile */ - capabilities?: string; - createdAt?: string; - /** Human-readable description of this profile and its intended use */ - description?: string; - /** Scopes this profile to a specific entity; NULL means it is a global profile */ - entityId?: string; - id?: string; - /** The default profile is automatically assigned to new members when they join */ - isDefault?: boolean; - /** System profiles are built-in and cannot be deleted or renamed by users */ - isSystem?: boolean; - /** Display name for this profile (e.g. Admin, Editor, Viewer) */ - name: string; - /** URL-safe identifier for this profile, used in API references */ - slug: string; - updatedAt?: string; -} -/** Represents an update to a `OrgProfile`. Fields that are set will be updated. */ -export interface OrgProfilePatch { - /** Pre-computed capability bitmask aggregating all capabilities in this profile */ - capabilities?: string; - createdAt?: string; - /** Human-readable description of this profile and its intended use */ - description?: string; - /** Scopes this profile to a specific entity; NULL means it is a global profile */ - entityId?: string; - id?: string; - /** The default profile is automatically assigned to new members when they join */ - isDefault?: boolean; - /** System profiles are built-in and cannot be deleted or renamed by users */ - isSystem?: boolean; - /** Display name for this profile (e.g. Admin, Editor, Viewer) */ - name?: string; - /** URL-safe identifier for this profile, used in API references */ - slug?: string; - updatedAt?: string; -} -/** A filter to be used against `OrgProfileTemplate` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgProfileTemplateFilter { - /** Checks for all expressions in this list. */ - and?: OrgProfileTemplateFilter[]; - /** Filter by the object’s `capabilities` field. */ - capabilities?: BitStringFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isDefault` field. */ - isDefault?: BooleanFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; + id?: UUIDFilter; + /** Filter by the object’s `isGrant` field. */ + isGrant?: BooleanFilter; /** Negates the expression. */ - not?: OrgProfileTemplateFilter; + not?: OrgOwnerGrantFilter; /** Checks for any expressions in this list. */ - or?: OrgProfileTemplateFilter[]; - /** Filter by the object’s `slug` field. */ - slug?: StringFilter; + or?: OrgOwnerGrantFilter[]; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } -/** An input for mutations affecting `OrgProfileTemplate` */ -export interface OrgProfileTemplateInput { - /** Pre-computed capability bitmask for the seeded profile */ - capabilities?: string; +/** An input for mutations affecting `OrgOwnerGrant` */ +export interface OrgOwnerGrantInput { + /** The member receiving or losing the ownership grant; NULL if user was deleted */ + actorId?: string; createdAt?: string; - /** Human-readable description of this template profile */ - description?: string; + /** The entity (org or group) this ownership grant applies to */ + entityId: string; + grantorId?: string; id?: string; - /** Whether the seeded profile should be the default for new members */ - isDefault?: boolean; - /** Display name for the template profile (e.g. Admin, Editor, Viewer) */ - name: string; - /** URL-safe identifier for the template profile */ - slug: string; + /** True to grant ownership, false to revoke ownership */ + isGrant?: boolean; updatedAt?: string; } -/** Represents an update to a `OrgProfileTemplate`. Fields that are set will be updated. */ -export interface OrgProfileTemplatePatch { - /** Pre-computed capability bitmask for the seeded profile */ - capabilities?: string; +/** Represents an update to a `OrgOwnerGrant`. Fields that are set will be updated. */ +export interface OrgOwnerGrantPatch { + /** The member receiving or losing the ownership grant; NULL if user was deleted */ + actorId?: string; createdAt?: string; - /** Human-readable description of this template profile */ - description?: string; + /** The entity (org or group) this ownership grant applies to */ + entityId?: string; + grantorId?: string; id?: string; - /** Whether the seeded profile should be the default for new members */ - isDefault?: boolean; - /** Display name for the template profile (e.g. Admin, Editor, Viewer) */ - name?: string; - /** URL-safe identifier for the template profile */ - slug?: string; + /** True to grant ownership, false to revoke ownership */ + isGrant?: boolean; updatedAt?: string; } -/** A filter to be used against many `OrgInvite` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgProfileToManyOrgInviteFilter { - /** Filters to entities where every related entity matches. */ - every?: OrgInviteFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgInviteFilter; - /** Filters to entities where at least one related entity matches. */ - some?: OrgInviteFilter; -} -/** A filter to be used against many `OrgMembership` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgProfileToManyOrgMembershipFilter { - /** Filters to entities where every related entity matches. */ - every?: OrgMembershipFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgMembershipFilter; - /** Filters to entities where at least one related entity matches. */ - some?: OrgMembershipFilter; -} -/** A filter to be used against many `OrgMembershipProfile` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgProfileToManyOrgMembershipProfileFilter { - /** Filters to entities where every related entity matches. */ - every?: OrgMembershipProfileFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgMembershipProfileFilter; - /** Filters to entities where at least one related entity matches. */ - some?: OrgMembershipProfileFilter; -} -/** A filter to be used against many `OrgProfileCapability` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgProfileToManyOrgProfileCapabilityFilter { - /** Filters to entities where every related entity matches. */ - every?: OrgProfileCapabilityFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgProfileCapabilityFilter; - /** Filters to entities where at least one related entity matches. */ - some?: OrgProfileCapabilityFilter; -} -/** A filter to be used against many `OrgProfileDefinitionGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgProfileToManyOrgProfileDefinitionGrantFilter { - /** Filters to entities where every related entity matches. */ - every?: OrgProfileDefinitionGrantFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgProfileDefinitionGrantFilter; - /** Filters to entities where at least one related entity matches. */ - some?: OrgProfileDefinitionGrantFilter; -} -/** A filter to be used against many `OrgProfileGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgProfileToManyOrgProfileGrantFilter { - /** Filters to entities where every related entity matches. */ - every?: OrgProfileGrantFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgProfileGrantFilter; - /** Filters to entities where at least one related entity matches. */ - some?: OrgProfileGrantFilter; -} export interface ProvisionBucketInput { /** The logical bucket key (e.g., "public", "private") */ bucketKey: string; @@ -3984,18 +2461,6 @@ export interface UpdateAppCapabilityDefaultGrantInput { clientMutationId?: string; id: string; } -export interface UpdateAppCapabilityDefaultInput { - /** An object where the defined keys will be set on the `AppCapabilityDefault` being updated. */ - appCapabilityDefaultPatch: AppCapabilityDefaultPatch; - clientMutationId?: string; - id: string; -} -export interface UpdateAppCapabilityInput { - /** An object where the defined keys will be set on the `AppCapability` being updated. */ - appCapabilityPatch: AppCapabilityPatch; - clientMutationId?: string; - id: string; -} export interface UpdateAppClaimedInviteInput { /** An object where the defined keys will be set on the `AppClaimedInvite` being updated. */ appClaimedInvitePatch: AppClaimedInvitePatch; @@ -4026,48 +2491,12 @@ export interface UpdateAppMembershipInput { clientMutationId?: string; id: string; } -export interface UpdateAppMembershipProfileInput { - /** An object where the defined keys will be set on the `AppMembershipProfile` being updated. */ - appMembershipProfilePatch: AppMembershipProfilePatch; - clientMutationId?: string; - id: string; -} export interface UpdateAppOwnerGrantInput { /** An object where the defined keys will be set on the `AppOwnerGrant` being updated. */ appOwnerGrantPatch: AppOwnerGrantPatch; clientMutationId?: string; id: string; } -export interface UpdateAppProfileCapabilityInput { - /** An object where the defined keys will be set on the `AppProfileCapability` being updated. */ - appProfileCapabilityPatch: AppProfileCapabilityPatch; - clientMutationId?: string; - id: string; -} -export interface UpdateAppProfileDefinitionGrantInput { - /** An object where the defined keys will be set on the `AppProfileDefinitionGrant` being updated. */ - appProfileDefinitionGrantPatch: AppProfileDefinitionGrantPatch; - clientMutationId?: string; - id: string; -} -export interface UpdateAppProfileGrantInput { - /** An object where the defined keys will be set on the `AppProfileGrant` being updated. */ - appProfileGrantPatch: AppProfileGrantPatch; - clientMutationId?: string; - id: string; -} -export interface UpdateAppProfileInput { - /** An object where the defined keys will be set on the `AppProfile` being updated. */ - appProfilePatch: AppProfilePatch; - clientMutationId?: string; - id: string; -} -export interface UpdateAppProfileTemplateInput { - /** An object where the defined keys will be set on the `AppProfileTemplate` being updated. */ - appProfileTemplatePatch: AppProfileTemplatePatch; - clientMutationId?: string; - id: string; -} export interface UpdateMembershipTypeInput { clientMutationId?: string; /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ @@ -4093,18 +2522,6 @@ export interface UpdateOrgCapabilityDefaultGrantInput { /** An object where the defined keys will be set on the `OrgCapabilityDefaultGrant` being updated. */ orgCapabilityDefaultGrantPatch: OrgCapabilityDefaultGrantPatch; } -export interface UpdateOrgCapabilityDefaultInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `OrgCapabilityDefault` being updated. */ - orgCapabilityDefaultPatch: OrgCapabilityDefaultPatch; -} -export interface UpdateOrgCapabilityInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `OrgCapability` being updated. */ - orgCapabilityPatch: OrgCapabilityPatch; -} export interface UpdateOrgChartEdgeGrantInput { clientMutationId?: string; id: string; @@ -4159,12 +2576,6 @@ export interface UpdateOrgMembershipInput { /** An object where the defined keys will be set on the `OrgMembership` being updated. */ orgMembershipPatch: OrgMembershipPatch; } -export interface UpdateOrgMembershipProfileInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `OrgMembershipProfile` being updated. */ - orgMembershipProfilePatch: OrgMembershipProfilePatch; -} export interface UpdateOrgMembershipSettingInput { clientMutationId?: string; id: string; @@ -4177,36 +2588,6 @@ export interface UpdateOrgOwnerGrantInput { /** An object where the defined keys will be set on the `OrgOwnerGrant` being updated. */ orgOwnerGrantPatch: OrgOwnerGrantPatch; } -export interface UpdateOrgProfileCapabilityInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `OrgProfileCapability` being updated. */ - orgProfileCapabilityPatch: OrgProfileCapabilityPatch; -} -export interface UpdateOrgProfileDefinitionGrantInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `OrgProfileDefinitionGrant` being updated. */ - orgProfileDefinitionGrantPatch: OrgProfileDefinitionGrantPatch; -} -export interface UpdateOrgProfileGrantInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `OrgProfileGrant` being updated. */ - orgProfileGrantPatch: OrgProfileGrantPatch; -} -export interface UpdateOrgProfileInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `OrgProfile` being updated. */ - orgProfilePatch: OrgProfilePatch; -} -export interface UpdateOrgProfileTemplateInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `OrgProfileTemplate` being updated. */ - orgProfileTemplatePatch: OrgProfileTemplatePatch; -} /** Root meta schema type */ export interface MetaSchema { tables: MetaTable[]; @@ -4218,13 +2599,6 @@ export interface AppAdminGrantConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `AppCapability` values. */ -export interface AppCapabilityConnection { - edges: AppCapabilityEdge[]; - nodes: AppCapability[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `AppCapabilityDefaultCapability` values. */ export interface AppCapabilityDefaultCapabilityConnection { edges: AppCapabilityDefaultCapabilityEdge[]; @@ -4239,13 +2613,6 @@ export interface AppCapabilityDefaultGrantConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `AppCapabilityDefault` values. */ -export interface AppCapabilityDefaultConnection { - edges: AppCapabilityDefaultEdge[]; - nodes: AppCapabilityDefault[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `AppClaimedInvite` values. */ export interface AppClaimedInviteConnection { edges: AppClaimedInviteEdge[]; @@ -4274,13 +2641,6 @@ export interface AppMembershipDefaultConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `AppMembershipProfile` values. */ -export interface AppMembershipProfileConnection { - edges: AppMembershipProfileEdge[]; - nodes: AppMembershipProfile[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `AppMembership` values. */ export interface AppMembershipConnection { edges: AppMembershipEdge[]; @@ -4295,41 +2655,6 @@ export interface AppOwnerGrantConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `AppProfileCapability` values. */ -export interface AppProfileCapabilityConnection { - edges: AppProfileCapabilityEdge[]; - nodes: AppProfileCapability[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `AppProfileDefinitionGrant` values. */ -export interface AppProfileDefinitionGrantConnection { - edges: AppProfileDefinitionGrantEdge[]; - nodes: AppProfileDefinitionGrant[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `AppProfileGrant` values. */ -export interface AppProfileGrantConnection { - edges: AppProfileGrantEdge[]; - nodes: AppProfileGrant[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `AppProfileTemplate` values. */ -export interface AppProfileTemplateConnection { - edges: AppProfileTemplateEdge[]; - nodes: AppProfileTemplate[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `AppProfile` values. */ -export interface AppProfileConnection { - edges: AppProfileEdge[]; - nodes: AppProfile[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `MembershipType` values. */ export interface MembershipTypeConnection { edges: MembershipTypeEdge[]; @@ -4344,13 +2669,6 @@ export interface OrgAdminGrantConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `OrgCapability` values. */ -export interface OrgCapabilityConnection { - edges: OrgCapabilityEdge[]; - nodes: OrgCapability[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `OrgCapabilityDefaultCapability` values. */ export interface OrgCapabilityDefaultCapabilityConnection { edges: OrgCapabilityDefaultCapabilityEdge[]; @@ -4365,13 +2683,6 @@ export interface OrgCapabilityDefaultGrantConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `OrgCapabilityDefault` values. */ -export interface OrgCapabilityDefaultConnection { - edges: OrgCapabilityDefaultEdge[]; - nodes: OrgCapabilityDefault[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `OrgChartEdgeGrant` values. */ export interface OrgChartEdgeGrantConnection { edges: OrgChartEdgeGrantEdge[]; @@ -4442,13 +2753,6 @@ export interface OrgMembershipDefaultConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `OrgMembershipProfile` values. */ -export interface OrgMembershipProfileConnection { - edges: OrgMembershipProfileEdge[]; - nodes: OrgMembershipProfile[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `OrgMembershipSetting` values. */ export interface OrgMembershipSettingConnection { edges: OrgMembershipSettingEdge[]; @@ -4470,59 +2774,12 @@ export interface OrgOwnerGrantConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `OrgProfileCapability` values. */ -export interface OrgProfileCapabilityConnection { - edges: OrgProfileCapabilityEdge[]; - nodes: OrgProfileCapability[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `OrgProfileDefinitionGrant` values. */ -export interface OrgProfileDefinitionGrantConnection { - edges: OrgProfileDefinitionGrantEdge[]; - nodes: OrgProfileDefinitionGrant[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `OrgProfileGrant` values. */ -export interface OrgProfileGrantConnection { - edges: OrgProfileGrantEdge[]; - nodes: OrgProfileGrant[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `OrgProfileTemplate` values. */ -export interface OrgProfileTemplateConnection { - edges: OrgProfileTemplateEdge[]; - nodes: OrgProfileTemplate[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `OrgProfile` values. */ -export interface OrgProfileConnection { - edges: OrgProfileEdge[]; - nodes: OrgProfile[]; - 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 CreateAppCapabilityPayload { - /** The `AppCapability` that was created by this mutation. */ - appCapability?: AppCapability | null; - appCapabilityEdge?: AppCapabilityEdge | null; - clientMutationId?: string | null; -} -export interface CreateAppCapabilityDefaultPayload { - /** The `AppCapabilityDefault` that was created by this mutation. */ - appCapabilityDefault?: AppCapabilityDefault | null; - appCapabilityDefaultEdge?: AppCapabilityDefaultEdge | null; - clientMutationId?: string | null; -} export interface CreateAppCapabilityDefaultCapabilityPayload { /** The `AppCapabilityDefaultCapability` that was created by this mutation. */ appCapabilityDefaultCapability?: AppCapabilityDefaultCapability | null; @@ -4565,48 +2822,12 @@ export interface CreateAppMembershipDefaultPayload { appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; clientMutationId?: string | null; } -export interface CreateAppMembershipProfilePayload { - /** The `AppMembershipProfile` that was created by this mutation. */ - appMembershipProfile?: AppMembershipProfile | null; - appMembershipProfileEdge?: AppMembershipProfileEdge | null; - clientMutationId?: string | null; -} export interface CreateAppOwnerGrantPayload { /** The `AppOwnerGrant` that was created by this mutation. */ appOwnerGrant?: AppOwnerGrant | null; appOwnerGrantEdge?: AppOwnerGrantEdge | null; clientMutationId?: string | null; } -export interface CreateAppProfilePayload { - /** The `AppProfile` that was created by this mutation. */ - appProfile?: AppProfile | null; - appProfileEdge?: AppProfileEdge | null; - clientMutationId?: string | null; -} -export interface CreateAppProfileCapabilityPayload { - /** The `AppProfileCapability` that was created by this mutation. */ - appProfileCapability?: AppProfileCapability | null; - appProfileCapabilityEdge?: AppProfileCapabilityEdge | null; - clientMutationId?: string | null; -} -export interface CreateAppProfileDefinitionGrantPayload { - /** The `AppProfileDefinitionGrant` that was created by this mutation. */ - appProfileDefinitionGrant?: AppProfileDefinitionGrant | null; - appProfileDefinitionGrantEdge?: AppProfileDefinitionGrantEdge | null; - clientMutationId?: string | null; -} -export interface CreateAppProfileGrantPayload { - /** The `AppProfileGrant` that was created by this mutation. */ - appProfileGrant?: AppProfileGrant | null; - appProfileGrantEdge?: AppProfileGrantEdge | null; - clientMutationId?: string | null; -} -export interface CreateAppProfileTemplatePayload { - /** The `AppProfileTemplate` that was created by this mutation. */ - appProfileTemplate?: AppProfileTemplate | null; - appProfileTemplateEdge?: AppProfileTemplateEdge | null; - clientMutationId?: string | null; -} export interface CreateMembershipTypePayload { clientMutationId?: string | null; /** The `MembershipType` that was created by this mutation. */ @@ -4619,18 +2840,6 @@ export interface CreateOrgAdminGrantPayload { orgAdminGrant?: OrgAdminGrant | null; orgAdminGrantEdge?: OrgAdminGrantEdge | null; } -export interface CreateOrgCapabilityPayload { - clientMutationId?: string | null; - /** The `OrgCapability` that was created by this mutation. */ - orgCapability?: OrgCapability | null; - orgCapabilityEdge?: OrgCapabilityEdge | null; -} -export interface CreateOrgCapabilityDefaultPayload { - clientMutationId?: string | null; - /** The `OrgCapabilityDefault` that was created by this mutation. */ - orgCapabilityDefault?: OrgCapabilityDefault | null; - orgCapabilityDefaultEdge?: OrgCapabilityDefaultEdge | null; -} export interface CreateOrgCapabilityDefaultCapabilityPayload { clientMutationId?: string | null; /** The `OrgCapabilityDefaultCapability` that was created by this mutation. */ @@ -4697,12 +2906,6 @@ export interface CreateOrgMembershipDefaultPayload { orgMembershipDefault?: OrgMembershipDefault | null; orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; } -export interface CreateOrgMembershipProfilePayload { - clientMutationId?: string | null; - /** The `OrgMembershipProfile` that was created by this mutation. */ - orgMembershipProfile?: OrgMembershipProfile | null; - orgMembershipProfileEdge?: OrgMembershipProfileEdge | null; -} export interface CreateOrgMembershipSettingPayload { clientMutationId?: string | null; /** The `OrgMembershipSetting` that was created by this mutation. */ @@ -4715,54 +2918,12 @@ export interface CreateOrgOwnerGrantPayload { orgOwnerGrant?: OrgOwnerGrant | null; orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; } -export interface CreateOrgProfilePayload { - clientMutationId?: string | null; - /** The `OrgProfile` that was created by this mutation. */ - orgProfile?: OrgProfile | null; - orgProfileEdge?: OrgProfileEdge | null; -} -export interface CreateOrgProfileCapabilityPayload { - clientMutationId?: string | null; - /** The `OrgProfileCapability` that was created by this mutation. */ - orgProfileCapability?: OrgProfileCapability | null; - orgProfileCapabilityEdge?: OrgProfileCapabilityEdge | null; -} -export interface CreateOrgProfileDefinitionGrantPayload { - clientMutationId?: string | null; - /** The `OrgProfileDefinitionGrant` that was created by this mutation. */ - orgProfileDefinitionGrant?: OrgProfileDefinitionGrant | null; - orgProfileDefinitionGrantEdge?: OrgProfileDefinitionGrantEdge | null; -} -export interface CreateOrgProfileGrantPayload { - clientMutationId?: string | null; - /** The `OrgProfileGrant` that was created by this mutation. */ - orgProfileGrant?: OrgProfileGrant | null; - orgProfileGrantEdge?: OrgProfileGrantEdge | null; -} -export interface CreateOrgProfileTemplatePayload { - clientMutationId?: string | null; - /** The `OrgProfileTemplate` that was created by this mutation. */ - orgProfileTemplate?: OrgProfileTemplate | null; - orgProfileTemplateEdge?: OrgProfileTemplateEdge | null; -} export interface DeleteAppAdminGrantPayload { /** The `AppAdminGrant` that was deleted by this mutation. */ appAdminGrant?: AppAdminGrant | null; appAdminGrantEdge?: AppAdminGrantEdge | null; clientMutationId?: string | null; } -export interface DeleteAppCapabilityPayload { - /** The `AppCapability` that was deleted by this mutation. */ - appCapability?: AppCapability | null; - appCapabilityEdge?: AppCapabilityEdge | null; - clientMutationId?: string | null; -} -export interface DeleteAppCapabilityDefaultPayload { - /** The `AppCapabilityDefault` that was deleted by this mutation. */ - appCapabilityDefault?: AppCapabilityDefault | null; - appCapabilityDefaultEdge?: AppCapabilityDefaultEdge | null; - clientMutationId?: string | null; -} export interface DeleteAppCapabilityDefaultCapabilityPayload { /** The `AppCapabilityDefaultCapability` that was deleted by this mutation. */ appCapabilityDefaultCapability?: AppCapabilityDefaultCapability | null; @@ -4805,48 +2966,12 @@ export interface DeleteAppMembershipDefaultPayload { appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; clientMutationId?: string | null; } -export interface DeleteAppMembershipProfilePayload { - /** The `AppMembershipProfile` that was deleted by this mutation. */ - appMembershipProfile?: AppMembershipProfile | null; - appMembershipProfileEdge?: AppMembershipProfileEdge | null; - clientMutationId?: string | null; -} export interface DeleteAppOwnerGrantPayload { /** The `AppOwnerGrant` that was deleted by this mutation. */ appOwnerGrant?: AppOwnerGrant | null; appOwnerGrantEdge?: AppOwnerGrantEdge | null; clientMutationId?: string | null; } -export interface DeleteAppProfilePayload { - /** The `AppProfile` that was deleted by this mutation. */ - appProfile?: AppProfile | null; - appProfileEdge?: AppProfileEdge | null; - clientMutationId?: string | null; -} -export interface DeleteAppProfileCapabilityPayload { - /** The `AppProfileCapability` that was deleted by this mutation. */ - appProfileCapability?: AppProfileCapability | null; - appProfileCapabilityEdge?: AppProfileCapabilityEdge | null; - clientMutationId?: string | null; -} -export interface DeleteAppProfileDefinitionGrantPayload { - /** The `AppProfileDefinitionGrant` that was deleted by this mutation. */ - appProfileDefinitionGrant?: AppProfileDefinitionGrant | null; - appProfileDefinitionGrantEdge?: AppProfileDefinitionGrantEdge | null; - clientMutationId?: string | null; -} -export interface DeleteAppProfileGrantPayload { - /** The `AppProfileGrant` that was deleted by this mutation. */ - appProfileGrant?: AppProfileGrant | null; - appProfileGrantEdge?: AppProfileGrantEdge | null; - clientMutationId?: string | null; -} -export interface DeleteAppProfileTemplatePayload { - /** The `AppProfileTemplate` that was deleted by this mutation. */ - appProfileTemplate?: AppProfileTemplate | null; - appProfileTemplateEdge?: AppProfileTemplateEdge | null; - clientMutationId?: string | null; -} export interface DeleteMembershipTypePayload { clientMutationId?: string | null; /** The `MembershipType` that was deleted by this mutation. */ @@ -4859,18 +2984,6 @@ export interface DeleteOrgAdminGrantPayload { orgAdminGrant?: OrgAdminGrant | null; orgAdminGrantEdge?: OrgAdminGrantEdge | null; } -export interface DeleteOrgCapabilityPayload { - clientMutationId?: string | null; - /** The `OrgCapability` that was deleted by this mutation. */ - orgCapability?: OrgCapability | null; - orgCapabilityEdge?: OrgCapabilityEdge | null; -} -export interface DeleteOrgCapabilityDefaultPayload { - clientMutationId?: string | null; - /** The `OrgCapabilityDefault` that was deleted by this mutation. */ - orgCapabilityDefault?: OrgCapabilityDefault | null; - orgCapabilityDefaultEdge?: OrgCapabilityDefaultEdge | null; -} export interface DeleteOrgCapabilityDefaultCapabilityPayload { clientMutationId?: string | null; /** The `OrgCapabilityDefaultCapability` that was deleted by this mutation. */ @@ -4937,12 +3050,6 @@ export interface DeleteOrgMembershipDefaultPayload { orgMembershipDefault?: OrgMembershipDefault | null; orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; } -export interface DeleteOrgMembershipProfilePayload { - clientMutationId?: string | null; - /** The `OrgMembershipProfile` that was deleted by this mutation. */ - orgMembershipProfile?: OrgMembershipProfile | null; - orgMembershipProfileEdge?: OrgMembershipProfileEdge | null; -} export interface DeleteOrgMembershipSettingPayload { clientMutationId?: string | null; /** The `OrgMembershipSetting` that was deleted by this mutation. */ @@ -4955,49 +3062,14 @@ export interface DeleteOrgOwnerGrantPayload { orgOwnerGrant?: OrgOwnerGrant | null; orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; } -export interface DeleteOrgProfilePayload { - clientMutationId?: string | null; - /** The `OrgProfile` that was deleted by this mutation. */ - orgProfile?: OrgProfile | null; - orgProfileEdge?: OrgProfileEdge | null; -} -export interface DeleteOrgProfileCapabilityPayload { - clientMutationId?: string | null; - /** The `OrgProfileCapability` that was deleted by this mutation. */ - orgProfileCapability?: OrgProfileCapability | null; - orgProfileCapabilityEdge?: OrgProfileCapabilityEdge | null; -} -export interface DeleteOrgProfileDefinitionGrantPayload { - clientMutationId?: string | null; - /** The `OrgProfileDefinitionGrant` that was deleted by this mutation. */ - orgProfileDefinitionGrant?: OrgProfileDefinitionGrant | null; - orgProfileDefinitionGrantEdge?: OrgProfileDefinitionGrantEdge | null; -} -export interface DeleteOrgProfileGrantPayload { - clientMutationId?: string | null; - /** The `OrgProfileGrant` that was deleted by this mutation. */ - orgProfileGrant?: OrgProfileGrant | null; - orgProfileGrantEdge?: OrgProfileGrantEdge | null; -} -export interface DeleteOrgProfileTemplatePayload { - clientMutationId?: string | null; - /** The `OrgProfileTemplate` that was deleted by this mutation. */ - orgProfileTemplate?: OrgProfileTemplate | null; - orgProfileTemplateEdge?: OrgProfileTemplateEdge | 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; + /** The logical bucket row that was queued for reconciliation. */ + bucketId: string; + bucketKey: string; + /** The reconciler job enqueued to provision this bucket. */ + jobId: string; + /** The physical bucket name already recorded, or null when reconciliation has not completed. */ + physicalName?: string | null; } export interface SubmitAppInviteCodePayload { clientMutationId?: string | null; @@ -5013,18 +3085,6 @@ export interface UpdateAppAdminGrantPayload { appAdminGrantEdge?: AppAdminGrantEdge | null; clientMutationId?: string | null; } -export interface UpdateAppCapabilityPayload { - /** The `AppCapability` that was updated by this mutation. */ - appCapability?: AppCapability | null; - appCapabilityEdge?: AppCapabilityEdge | null; - clientMutationId?: string | null; -} -export interface UpdateAppCapabilityDefaultPayload { - /** The `AppCapabilityDefault` that was updated by this mutation. */ - appCapabilityDefault?: AppCapabilityDefault | null; - appCapabilityDefaultEdge?: AppCapabilityDefaultEdge | null; - clientMutationId?: string | null; -} export interface UpdateAppCapabilityDefaultCapabilityPayload { /** The `AppCapabilityDefaultCapability` that was updated by this mutation. */ appCapabilityDefaultCapability?: AppCapabilityDefaultCapability | null; @@ -5067,48 +3127,12 @@ export interface UpdateAppMembershipDefaultPayload { appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; clientMutationId?: string | null; } -export interface UpdateAppMembershipProfilePayload { - /** The `AppMembershipProfile` that was updated by this mutation. */ - appMembershipProfile?: AppMembershipProfile | null; - appMembershipProfileEdge?: AppMembershipProfileEdge | null; - clientMutationId?: string | null; -} export interface UpdateAppOwnerGrantPayload { /** The `AppOwnerGrant` that was updated by this mutation. */ appOwnerGrant?: AppOwnerGrant | null; appOwnerGrantEdge?: AppOwnerGrantEdge | null; clientMutationId?: string | null; } -export interface UpdateAppProfilePayload { - /** The `AppProfile` that was updated by this mutation. */ - appProfile?: AppProfile | null; - appProfileEdge?: AppProfileEdge | null; - clientMutationId?: string | null; -} -export interface UpdateAppProfileCapabilityPayload { - /** The `AppProfileCapability` that was updated by this mutation. */ - appProfileCapability?: AppProfileCapability | null; - appProfileCapabilityEdge?: AppProfileCapabilityEdge | null; - clientMutationId?: string | null; -} -export interface UpdateAppProfileDefinitionGrantPayload { - /** The `AppProfileDefinitionGrant` that was updated by this mutation. */ - appProfileDefinitionGrant?: AppProfileDefinitionGrant | null; - appProfileDefinitionGrantEdge?: AppProfileDefinitionGrantEdge | null; - clientMutationId?: string | null; -} -export interface UpdateAppProfileGrantPayload { - /** The `AppProfileGrant` that was updated by this mutation. */ - appProfileGrant?: AppProfileGrant | null; - appProfileGrantEdge?: AppProfileGrantEdge | null; - clientMutationId?: string | null; -} -export interface UpdateAppProfileTemplatePayload { - /** The `AppProfileTemplate` that was updated by this mutation. */ - appProfileTemplate?: AppProfileTemplate | null; - appProfileTemplateEdge?: AppProfileTemplateEdge | null; - clientMutationId?: string | null; -} export interface UpdateMembershipTypePayload { clientMutationId?: string | null; /** The `MembershipType` that was updated by this mutation. */ @@ -5121,18 +3145,6 @@ export interface UpdateOrgAdminGrantPayload { orgAdminGrant?: OrgAdminGrant | null; orgAdminGrantEdge?: OrgAdminGrantEdge | null; } -export interface UpdateOrgCapabilityPayload { - clientMutationId?: string | null; - /** The `OrgCapability` that was updated by this mutation. */ - orgCapability?: OrgCapability | null; - orgCapabilityEdge?: OrgCapabilityEdge | null; -} -export interface UpdateOrgCapabilityDefaultPayload { - clientMutationId?: string | null; - /** The `OrgCapabilityDefault` that was updated by this mutation. */ - orgCapabilityDefault?: OrgCapabilityDefault | null; - orgCapabilityDefaultEdge?: OrgCapabilityDefaultEdge | null; -} export interface UpdateOrgCapabilityDefaultCapabilityPayload { clientMutationId?: string | null; /** The `OrgCapabilityDefaultCapability` that was updated by this mutation. */ @@ -5199,12 +3211,6 @@ export interface UpdateOrgMembershipDefaultPayload { orgMembershipDefault?: OrgMembershipDefault | null; orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; } -export interface UpdateOrgMembershipProfilePayload { - clientMutationId?: string | null; - /** The `OrgMembershipProfile` that was updated by this mutation. */ - orgMembershipProfile?: OrgMembershipProfile | null; - orgMembershipProfileEdge?: OrgMembershipProfileEdge | null; -} export interface UpdateOrgMembershipSettingPayload { clientMutationId?: string | null; /** The `OrgMembershipSetting` that was updated by this mutation. */ @@ -5217,36 +3223,6 @@ export interface UpdateOrgOwnerGrantPayload { orgOwnerGrant?: OrgOwnerGrant | null; orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; } -export interface UpdateOrgProfilePayload { - clientMutationId?: string | null; - /** The `OrgProfile` that was updated by this mutation. */ - orgProfile?: OrgProfile | null; - orgProfileEdge?: OrgProfileEdge | null; -} -export interface UpdateOrgProfileCapabilityPayload { - clientMutationId?: string | null; - /** The `OrgProfileCapability` that was updated by this mutation. */ - orgProfileCapability?: OrgProfileCapability | null; - orgProfileCapabilityEdge?: OrgProfileCapabilityEdge | null; -} -export interface UpdateOrgProfileDefinitionGrantPayload { - clientMutationId?: string | null; - /** The `OrgProfileDefinitionGrant` that was updated by this mutation. */ - orgProfileDefinitionGrant?: OrgProfileDefinitionGrant | null; - orgProfileDefinitionGrantEdge?: OrgProfileDefinitionGrantEdge | null; -} -export interface UpdateOrgProfileGrantPayload { - clientMutationId?: string | null; - /** The `OrgProfileGrant` that was updated by this mutation. */ - orgProfileGrant?: OrgProfileGrant | null; - orgProfileGrantEdge?: OrgProfileGrantEdge | null; -} -export interface UpdateOrgProfileTemplatePayload { - clientMutationId?: string | null; - /** The `OrgProfileTemplate` that was updated by this mutation. */ - orgProfileTemplate?: OrgProfileTemplate | null; - orgProfileTemplateEdge?: OrgProfileTemplateEdge | null; -} /** Information about a database table */ export interface MetaTable { constraints: MetaConstraints; @@ -5291,12 +3267,6 @@ export interface PageInfo { /** When paginating backwards, the cursor to continue. */ startCursor?: string | null; } -/** A `AppCapability` edge in the connection. */ -export interface AppCapabilityEdge { - cursor?: string | null; - /** The `AppCapability` at the end of the edge. */ - node?: AppCapability | null; -} /** A `AppCapabilityDefaultCapability` edge in the connection. */ export interface AppCapabilityDefaultCapabilityEdge { cursor?: string | null; @@ -5309,12 +3279,6 @@ export interface AppCapabilityDefaultGrantEdge { /** The `AppCapabilityDefaultGrant` at the end of the edge. */ node?: AppCapabilityDefaultGrant | null; } -/** A `AppCapabilityDefault` edge in the connection. */ -export interface AppCapabilityDefaultEdge { - cursor?: string | null; - /** The `AppCapabilityDefault` at the end of the edge. */ - node?: AppCapabilityDefault | null; -} /** A `AppClaimedInvite` edge in the connection. */ export interface AppClaimedInviteEdge { cursor?: string | null; @@ -5339,12 +3303,6 @@ export interface AppMembershipDefaultEdge { /** The `AppMembershipDefault` at the end of the edge. */ node?: AppMembershipDefault | null; } -/** A `AppMembershipProfile` edge in the connection. */ -export interface AppMembershipProfileEdge { - cursor?: string | null; - /** The `AppMembershipProfile` at the end of the edge. */ - node?: AppMembershipProfile | null; -} /** A `AppMembership` edge in the connection. */ export interface AppMembershipEdge { cursor?: string | null; @@ -5357,36 +3315,6 @@ export interface AppOwnerGrantEdge { /** The `AppOwnerGrant` at the end of the edge. */ node?: AppOwnerGrant | null; } -/** A `AppProfileCapability` edge in the connection. */ -export interface AppProfileCapabilityEdge { - cursor?: string | null; - /** The `AppProfileCapability` at the end of the edge. */ - node?: AppProfileCapability | null; -} -/** A `AppProfileDefinitionGrant` edge in the connection. */ -export interface AppProfileDefinitionGrantEdge { - cursor?: string | null; - /** The `AppProfileDefinitionGrant` at the end of the edge. */ - node?: AppProfileDefinitionGrant | null; -} -/** A `AppProfileGrant` edge in the connection. */ -export interface AppProfileGrantEdge { - cursor?: string | null; - /** The `AppProfileGrant` at the end of the edge. */ - node?: AppProfileGrant | null; -} -/** A `AppProfileTemplate` edge in the connection. */ -export interface AppProfileTemplateEdge { - cursor?: string | null; - /** The `AppProfileTemplate` at the end of the edge. */ - node?: AppProfileTemplate | null; -} -/** A `AppProfile` edge in the connection. */ -export interface AppProfileEdge { - cursor?: string | null; - /** The `AppProfile` at the end of the edge. */ - node?: AppProfile | null; -} /** A `MembershipType` edge in the connection. */ export interface MembershipTypeEdge { cursor?: string | null; @@ -5399,12 +3327,6 @@ export interface OrgAdminGrantEdge { /** The `OrgAdminGrant` at the end of the edge. */ node?: OrgAdminGrant | null; } -/** A `OrgCapability` edge in the connection. */ -export interface OrgCapabilityEdge { - cursor?: string | null; - /** The `OrgCapability` at the end of the edge. */ - node?: OrgCapability | null; -} /** A `OrgCapabilityDefaultCapability` edge in the connection. */ export interface OrgCapabilityDefaultCapabilityEdge { cursor?: string | null; @@ -5417,12 +3339,6 @@ export interface OrgCapabilityDefaultGrantEdge { /** The `OrgCapabilityDefaultGrant` at the end of the edge. */ node?: OrgCapabilityDefaultGrant | null; } -/** A `OrgCapabilityDefault` edge in the connection. */ -export interface OrgCapabilityDefaultEdge { - cursor?: string | null; - /** The `OrgCapabilityDefault` at the end of the edge. */ - node?: OrgCapabilityDefault | null; -} /** A `OrgChartEdgeGrant` edge in the connection. */ export interface OrgChartEdgeGrantEdge { cursor?: string | null; @@ -5483,12 +3399,6 @@ export interface OrgMembershipDefaultEdge { /** The `OrgMembershipDefault` at the end of the edge. */ node?: OrgMembershipDefault | null; } -/** A `OrgMembershipProfile` edge in the connection. */ -export interface OrgMembershipProfileEdge { - cursor?: string | null; - /** The `OrgMembershipProfile` at the end of the edge. */ - node?: OrgMembershipProfile | null; -} /** A `OrgMembershipSetting` edge in the connection. */ export interface OrgMembershipSettingEdge { cursor?: string | null; @@ -5507,36 +3417,6 @@ export interface OrgOwnerGrantEdge { /** The `OrgOwnerGrant` at the end of the edge. */ node?: OrgOwnerGrant | null; } -/** A `OrgProfileCapability` edge in the connection. */ -export interface OrgProfileCapabilityEdge { - cursor?: string | null; - /** The `OrgProfileCapability` at the end of the edge. */ - node?: OrgProfileCapability | null; -} -/** A `OrgProfileDefinitionGrant` edge in the connection. */ -export interface OrgProfileDefinitionGrantEdge { - cursor?: string | null; - /** The `OrgProfileDefinitionGrant` at the end of the edge. */ - node?: OrgProfileDefinitionGrant | null; -} -/** A `OrgProfileGrant` edge in the connection. */ -export interface OrgProfileGrantEdge { - cursor?: string | null; - /** The `OrgProfileGrant` at the end of the edge. */ - node?: OrgProfileGrant | null; -} -/** A `OrgProfileTemplate` edge in the connection. */ -export interface OrgProfileTemplateEdge { - cursor?: string | null; - /** The `OrgProfileTemplate` at the end of the edge. */ - node?: OrgProfileTemplate | null; -} -/** A `OrgProfile` edge in the connection. */ -export interface OrgProfileEdge { - cursor?: string | null; - /** The `OrgProfile` at the end of the edge. */ - node?: OrgProfile | null; -} /** Table constraints */ export interface MetaConstraints { foreignKey: MetaForeignKeyConstraint[]; @@ -5649,10 +3529,18 @@ export interface MetaSearch { } /** Storage metadata for a table */ export interface MetaStorage { + /** GraphQL type name of the plane's buckets table */ + bucketsType: string; + /** Computed download-URL field on the files type; null on the buckets side */ + downloadUrlField?: string | null; + /** GraphQL type name of the plane's files table */ + filesType: string; /** Whether this table is a storage buckets table */ isBucketsTable: boolean; /** Whether this table is a storage files table */ isFilesTable: boolean; + /** The plane's GraphQL upload surface */ + upload: MetaStorageUpload; } /** Information about a unique constraint */ export interface MetaUniqueConstraint { @@ -5735,6 +3623,27 @@ export interface MetaSearchConfig { /** JSON-encoded per-adapter score weights */ weights?: string | null; } +/** The GraphQL upload surface of a storage plane, derived from the registry facts the presigned-url plugin emits from */ +export interface MetaStorageUpload { + /** Per-file input type inside the bulk input */ + bulkFileInputType: string; + /** Per-file payload type inside the bulk payload */ + bulkFilePayloadType: string; + /** Input type of the bulk upload mutation */ + bulkInputType: string; + /** Root mutation field for bulk upload */ + bulkMutation: string; + /** Payload type of the bulk upload mutation */ + bulkPayloadType: string; + /** Input type of the single upload mutation */ + inputType: string; + /** Root mutation field for single-file upload (e.g. uploadAppFile) */ + mutation: string; + /** Payload type of the single upload mutation */ + payloadType: string; + /** Whether the upload input requires ownerId (entity-keyed plane) */ + requiresOwnerId: boolean; +} /** 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. */ export interface MetaScalarEncoding { /** For 'vector': declared length, else null. */ diff --git a/sdk/constructive-react/src/admin/types.ts b/sdk/constructive-react/src/admin/types.ts index 5c993570ed..85e8fb0d7b 100644 --- a/sdk/constructive-react/src/admin/types.ts +++ b/sdk/constructive-react/src/admin/types.ts @@ -13,24 +13,12 @@ export interface AppAdminGrant { isGrant: boolean | null; updatedAt: string | null; } -export interface AppCapability { - bitnum: number | null; - bitstr: string | null; - description: string | null; - id: string | null; - kind: string | null; - name: string | null; -} export interface AppCapabilityDefaultCapability { capabilityId: string | null; createdAt: string | null; id: string | null; updatedAt: string | null; } -export interface AppCapabilityDefault { - capabilities: string | null; - id: string | null; -} export interface AppCapabilityDefaultGrant { capabilityId: string | null; createdAt: string | null; @@ -78,6 +66,7 @@ export interface AppMembership { capabilities: string | null; createdAt: string | null; createdBy: string | null; + createdByPrincipal: string | null; granted: string | null; id: string | null; isActive: boolean | null; @@ -90,23 +79,18 @@ export interface AppMembership { profileId: string | null; updatedAt: string | null; updatedBy: string | null; + updatedByPrincipal: string | null; } export interface AppMembershipDefault { createdAt: string | null; createdBy: string | null; + createdByPrincipal: string | null; id: string | null; isApproved: boolean | null; isVerified: boolean | null; updatedAt: string | null; updatedBy: string | null; -} -export interface AppMembershipProfile { - actorId: string | null; - createdAt: string | null; - id: string | null; - membershipId: string | null; - profileId: string | null; - updatedAt: string | null; + updatedByPrincipal: string | null; } export interface AppOwnerGrant { actorId: string | null; @@ -116,52 +100,6 @@ export interface AppOwnerGrant { isGrant: boolean | null; updatedAt: string | null; } -export interface AppProfileCapability { - capabilityId: string | null; - createdAt: string | null; - id: string | null; - profileId: string | null; - updatedAt: string | null; -} -export interface AppProfile { - capabilities: string | null; - createdAt: string | null; - description: string | null; - id: string | null; - isDefault: boolean | null; - isSystem: boolean | null; - name: string | null; - slug: string | null; - updatedAt: string | null; -} -export interface AppProfileDefinitionGrant { - capabilityId: string | null; - createdAt: string | null; - grantorId: string | null; - id: string | null; - isGrant: boolean | null; - profileId: string | null; - updatedAt: string | null; -} -export interface AppProfileGrant { - createdAt: string | null; - grantorId: string | null; - id: string | null; - isGrant: boolean | null; - membershipId: string | null; - profileId: string | null; - updatedAt: string | null; -} -export interface AppProfileTemplate { - capabilities: string | null; - createdAt: string | null; - description: string | null; - id: string | null; - isDefault: boolean | null; - name: string | null; - slug: string | null; - updatedAt: string | null; -} export interface MembershipType { description: string | null; hasUsersTableEntry: boolean | null; @@ -179,14 +117,6 @@ export interface OrgAdminGrant { isGrant: boolean | null; updatedAt: string | null; } -export interface OrgCapability { - bitnum: number | null; - bitstr: string | null; - description: string | null; - id: string | null; - kind: string | null; - name: string | null; -} export interface OrgCapabilityDefaultCapability { capabilityId: string | null; createdAt: string | null; @@ -194,11 +124,6 @@ export interface OrgCapabilityDefaultCapability { id: string | null; updatedAt: string | null; } -export interface OrgCapabilityDefault { - capabilities: string | null; - entityId: string | null; - id: string | null; -} export interface OrgCapabilityDefaultGrant { capabilityId: string | null; createdAt: string | null; @@ -300,6 +225,7 @@ export interface OrgMembership { capabilities: string | null; createdAt: string | null; createdBy: string | null; + createdByPrincipal: string | null; entityId: string | null; granted: string | null; id: string | null; @@ -314,31 +240,28 @@ export interface OrgMembership { profileId: string | null; updatedAt: string | null; updatedBy: string | null; + updatedByPrincipal: string | null; } export interface OrgMembershipDefault { createdAt: string | null; createdBy: string | null; + createdByPrincipal: string | null; entityId: string | null; id: string | null; isApproved: boolean | null; updatedAt: string | null; updatedBy: string | null; -} -export interface OrgMembershipProfile { - actorId: string | null; - createdAt: string | null; - id: string | null; - membershipId: string | null; - profileId: string | null; - updatedAt: string | null; + updatedByPrincipal: string | null; } export interface OrgMembershipSetting { allowExternalMembers: boolean | null; + allowPrincipalOwnedApiKeys: boolean | null; createChildCascadeAdmins: boolean | null; createChildCascadeMembers: boolean | null; createChildCascadeOwners: boolean | null; createdAt: string | null; createdBy: string | null; + createdByPrincipal: string | null; deleteMemberCascadeChildren: boolean | null; entityId: string | null; id: string | null; @@ -347,6 +270,7 @@ export interface OrgMembershipSetting { populateMemberEmail: boolean | null; updatedAt: string | null; updatedBy: string | null; + updatedByPrincipal: string | null; } export interface OrgOwnerGrant { actorId: string | null; @@ -357,54 +281,6 @@ export interface OrgOwnerGrant { isGrant: boolean | null; updatedAt: string | null; } -export interface OrgProfileCapability { - capabilityId: string | null; - createdAt: string | null; - id: string | null; - profileId: string | null; - updatedAt: string | null; -} -export interface OrgProfile { - capabilities: string | null; - createdAt: string | null; - description: string | null; - entityId: string | null; - id: string | null; - isDefault: boolean | null; - isSystem: boolean | null; - name: string | null; - slug: string | null; - updatedAt: string | null; -} -export interface OrgProfileDefinitionGrant { - capabilityId: string | null; - createdAt: string | null; - grantorId: string | null; - id: string | null; - isGrant: boolean | null; - profileId: string | null; - updatedAt: string | null; -} -export interface OrgProfileGrant { - createdAt: string | null; - entityId: string | null; - grantorId: string | null; - id: string | null; - isGrant: boolean | null; - membershipId: string | null; - profileId: string | null; - updatedAt: string | null; -} -export interface OrgProfileTemplate { - capabilities: string | null; - createdAt: string | null; - description: string | null; - id: string | null; - isDefault: boolean | null; - name: string | null; - slug: string | null; - updatedAt: string | null; -} export interface StringFilter { isNull?: boolean; equalTo?: string; diff --git a/sdk/constructive-react/src/agent/README.md b/sdk/constructive-react/src/agent/README.md index 2bbb8b6d63..067d4b5081 100644 --- a/sdk/constructive-react/src/agent/README.md +++ b/sdk/constructive-react/src/agent/README.md @@ -8,7 +8,7 @@ ## Overview -- **Tables:** 9 +- **Tables:** 21 - **Custom queries:** 0 - **Custom mutations:** 1 diff --git a/sdk/constructive-react/src/agent/hooks/README.md b/sdk/constructive-react/src/agent/hooks/README.md index cf0975a189..723147f5d0 100644 --- a/sdk/constructive-react/src/agent/hooks/README.md +++ b/sdk/constructive-react/src/agent/hooks/README.md @@ -77,10 +77,71 @@ function App() { | `useCreateAgentThreadMutation` | Mutation | Top-level AI/LLM conversation thread | | `useUpdateAgentThreadMutation` | Mutation | Top-level AI/LLM conversation thread | | `useDeleteAgentThreadMutation` | Mutation | Top-level AI/LLM conversation thread | -| `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. | +| `usePlatformAgentsQuery` | Query | Agent instance registry (human-managed or ephemeral sub-agents) | +| `usePlatformAgentQuery` | Query | Agent instance registry (human-managed or ephemeral sub-agents) | +| `useCreatePlatformAgentMutation` | Mutation | Agent instance registry (human-managed or ephemeral sub-agents) | +| `useUpdatePlatformAgentMutation` | Mutation | Agent instance registry (human-managed or ephemeral sub-agents) | +| `useDeletePlatformAgentMutation` | Mutation | Agent instance registry (human-managed or ephemeral sub-agents) | +| `usePlatformAgentEventsQuery` | Query | Append-only transcript of an agent run: one agent session entry per row, stored verbatim | +| `usePlatformAgentEventQuery` | Query | Append-only transcript of an agent run: one agent session entry per row, stored verbatim | +| `useCreatePlatformAgentEventMutation` | Mutation | Append-only transcript of an agent run: one agent session entry per row, stored verbatim | +| `useUpdatePlatformAgentEventMutation` | Mutation | Append-only transcript of an agent run: one agent session entry per row, stored verbatim | +| `useDeletePlatformAgentEventMutation` | Mutation | Append-only transcript of an agent run: one agent session entry per row, stored verbatim | +| `usePlatformAgentMessagesQuery` | Query | Message within an agent thread with TextPart/ToolPart jsonb parts | +| `usePlatformAgentMessageQuery` | Query | Message within an agent thread with TextPart/ToolPart jsonb parts | +| `useCreatePlatformAgentMessageMutation` | Mutation | Message within an agent thread with TextPart/ToolPart jsonb parts | +| `useUpdatePlatformAgentMessageMutation` | Mutation | Message within an agent thread with TextPart/ToolPart jsonb parts | +| `useDeletePlatformAgentMessageMutation` | Mutation | Message within an agent thread with TextPart/ToolPart jsonb parts | +| `usePlatformAgentPersonasQuery` | Query | Agent persona templates (role, system prompt, default skills/knowledge) | +| `usePlatformAgentPersonaQuery` | Query | Agent persona templates (role, system prompt, default skills/knowledge) | +| `useCreatePlatformAgentPersonaMutation` | Mutation | Agent persona templates (role, system prompt, default skills/knowledge) | +| `useUpdatePlatformAgentPersonaMutation` | Mutation | Agent persona templates (role, system prompt, default skills/knowledge) | +| `useDeletePlatformAgentPersonaMutation` | Mutation | Agent persona templates (role, system prompt, default skills/knowledge) | +| `usePlatformAgentPlansQuery` | Query | Workflow plan attached to an agent thread with ordered tasks and optional approval gates | +| `usePlatformAgentPlanQuery` | Query | Workflow plan attached to an agent thread with ordered tasks and optional approval gates | +| `useCreatePlatformAgentPlanMutation` | Mutation | Workflow plan attached to an agent thread with ordered tasks and optional approval gates | +| `useUpdatePlatformAgentPlanMutation` | Mutation | Workflow plan attached to an agent thread with ordered tasks and optional approval gates | +| `useDeletePlatformAgentPlanMutation` | Mutation | Workflow plan attached to an agent thread with ordered tasks and optional approval gates | +| `usePlatformAgentPromptsQuery` | Query | Shared system prompt templates for agent conversations | +| `usePlatformAgentPromptQuery` | Query | Shared system prompt templates for agent conversations | +| `useCreatePlatformAgentPromptMutation` | Mutation | Shared system prompt templates for agent conversations | +| `useUpdatePlatformAgentPromptMutation` | Mutation | Shared system prompt templates for agent conversations | +| `useDeletePlatformAgentPromptMutation` | Mutation | Shared system prompt templates for agent conversations | +| `usePlatformAgentResourceChunksQuery` | Query | List all platformAgentResourceChunks | +| `usePlatformAgentResourceChunkQuery` | Query | Get one platformAgentResourceChunk | +| `useCreatePlatformAgentResourceChunkMutation` | Mutation | Create a platformAgentResourceChunk | +| `useUpdatePlatformAgentResourceChunkMutation` | Mutation | Update a platformAgentResourceChunk | +| `useDeletePlatformAgentResourceChunkMutation` | Mutation | Delete a platformAgentResourceChunk | +| `usePlatformAgentResourcesQuery` | Query | Unified skills and knowledge resources for agent retrieval | +| `usePlatformAgentResourceQuery` | Query | Unified skills and knowledge resources for agent retrieval | +| `useCreatePlatformAgentResourceMutation` | Mutation | Unified skills and knowledge resources for agent retrieval | +| `useUpdatePlatformAgentResourceMutation` | Mutation | Unified skills and knowledge resources for agent retrieval | +| `useDeletePlatformAgentResourceMutation` | Mutation | Unified skills and knowledge resources for agent retrieval | +| `usePlatformAgentRunsQuery` | Query | One supervised agent run of a thread: its placement, workspace, cursor and artifacts | +| `usePlatformAgentRunQuery` | Query | One supervised agent run of a thread: its placement, workspace, cursor and artifacts | +| `useCreatePlatformAgentRunMutation` | Mutation | One supervised agent run of a thread: its placement, workspace, cursor and artifacts | +| `useUpdatePlatformAgentRunMutation` | Mutation | One supervised agent run of a thread: its placement, workspace, cursor and artifacts | +| `useDeletePlatformAgentRunMutation` | Mutation | One supervised agent run of a thread: its placement, workspace, cursor and artifacts | +| `usePlatformAgentRunWorkspacesQuery` | Query | One repository an agent run works in: its remote, branch, commits and how the work is published | +| `usePlatformAgentRunWorkspaceQuery` | Query | One repository an agent run works in: its remote, branch, commits and how the work is published | +| `useCreatePlatformAgentRunWorkspaceMutation` | Mutation | One repository an agent run works in: its remote, branch, commits and how the work is published | +| `useUpdatePlatformAgentRunWorkspaceMutation` | Mutation | One repository an agent run works in: its remote, branch, commits and how the work is published | +| `useDeletePlatformAgentRunWorkspaceMutation` | Mutation | One repository an agent run works in: its remote, branch, commits and how the work is published | +| `usePlatformAgentTasksQuery` | Query | Task within a plan, with ordering and optional approval gates | +| `usePlatformAgentTaskQuery` | Query | Task within a plan, with ordering and optional approval gates | +| `useCreatePlatformAgentTaskMutation` | Mutation | Task within a plan, with ordering and optional approval gates | +| `useUpdatePlatformAgentTaskMutation` | Mutation | Task within a plan, with ordering and optional approval gates | +| `useDeletePlatformAgentTaskMutation` | Mutation | Task within a plan, with ordering and optional approval gates | +| `usePlatformAgentThreadsQuery` | Query | Top-level AI/LLM conversation thread | +| `usePlatformAgentThreadQuery` | Query | Top-level AI/LLM conversation thread | +| `useCreatePlatformAgentThreadMutation` | Mutation | Top-level AI/LLM conversation thread | +| `useUpdatePlatformAgentThreadMutation` | Mutation | Top-level AI/LLM conversation thread | +| `useDeletePlatformAgentThreadMutation` | Mutation | Top-level AI/LLM conversation thread | +| `useProvisionBucketMutation` | Mutation | Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. | ## Table Hooks @@ -110,20 +171,20 @@ create({ config: '', databaseId: '', isEphemeral: '', name: ```typescript // List all agentMessages const { data, isLoading } = useAgentMessagesQuery({ - selection: { fields: { actorId: true, agentId: true, authorRole: true, createdAt: true, databaseId: true, id: true, model: true, parts: true, threadId: true, updatedAt: true } }, + selection: { fields: { actorId: true, agentId: true, authorRole: true, createdAt: true, databaseId: true, id: true, kind: true, model: true, parts: true, threadId: true, updatedAt: true, visibility: true } }, }); // Get one agentMessage const { data: item } = useAgentMessageQuery({ id: '', - selection: { fields: { actorId: true, agentId: true, authorRole: true, createdAt: true, databaseId: true, id: true, model: true, parts: true, threadId: true, updatedAt: true } }, + selection: { fields: { actorId: true, agentId: true, authorRole: true, createdAt: true, databaseId: true, id: true, kind: true, model: true, parts: true, threadId: true, updatedAt: true, visibility: true } }, }); // Create a agentMessage const { mutate: create } = useCreateAgentMessageMutation({ selection: { fields: { id: true } }, }); -create({ actorId: '', agentId: '', authorRole: '', databaseId: '', model: '', parts: '', threadId: '' }); +create({ actorId: '', agentId: '', authorRole: '', databaseId: '', kind: '', model: '', parts: '', threadId: '', visibility: '' }); ``` ### AgentPersona @@ -131,20 +192,20 @@ create({ actorId: '', agentId: '', authorRole: '', databaseI ```typescript // List all agentPersonas const { data, isLoading } = useAgentPersonasQuery({ - selection: { fields: { config: true, createdAt: true, createdBy: true, databaseId: true, description: true, id: true, isActive: true, name: true, resources: true, slug: true, systemPrompt: true, updatedAt: true, updatedBy: true } }, + selection: { fields: { config: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, description: true, id: true, isActive: true, name: true, resources: true, slug: true, systemPrompt: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); // Get one agentPersona const { data: item } = useAgentPersonaQuery({ id: '', - selection: { fields: { config: true, createdAt: true, createdBy: true, databaseId: true, description: true, id: true, isActive: true, name: true, resources: true, slug: true, systemPrompt: true, updatedAt: true, updatedBy: true } }, + selection: { fields: { config: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, description: true, id: true, isActive: true, name: true, resources: true, slug: true, systemPrompt: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); // Create a agentPersona const { mutate: create } = useCreateAgentPersonaMutation({ selection: { fields: { id: true } }, }); -create({ config: '', createdBy: '', databaseId: '', description: '', isActive: '', name: '', resources: '', slug: '', systemPrompt: '', updatedBy: '' }); +create({ config: '', createdBy: '', createdByPrincipal: '', databaseId: '', description: '', isActive: '', name: '', resources: '', slug: '', systemPrompt: '', updatedBy: '', updatedByPrincipal: '' }); ``` ### AgentPlan @@ -152,20 +213,20 @@ create({ config: '', createdBy: '', databaseId: '', descriptio ```typescript // List all agentPlans const { data, isLoading } = useAgentPlansQuery({ - selection: { fields: { createdAt: true, databaseId: true, description: true, id: true, ownerId: true, status: true, threadId: true, title: true, updatedAt: true } }, + selection: { fields: { createdAt: true, databaseId: true, description: true, id: true, ownerId: true, status: true, threadId: true, title: true, updatedAt: true, visibility: true } }, }); // Get one agentPlan const { data: item } = useAgentPlanQuery({ id: '', - selection: { fields: { createdAt: true, databaseId: true, description: true, id: true, ownerId: true, status: true, threadId: true, title: true, updatedAt: true } }, + selection: { fields: { createdAt: true, databaseId: true, description: true, id: true, ownerId: true, status: true, threadId: true, title: true, updatedAt: true, visibility: true } }, }); // Create a agentPlan const { mutate: create } = useCreateAgentPlanMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', description: '', ownerId: '', status: '', threadId: '', title: '' }); +create({ databaseId: '', description: '', ownerId: '', status: '', threadId: '', title: '', visibility: '' }); ``` ### AgentPrompt @@ -173,20 +234,20 @@ create({ databaseId: '', description: '', ownerId: '', statu ```typescript // List all agentPrompts const { data, isLoading } = useAgentPromptsQuery({ - selection: { fields: { content: true, createdAt: true, createdBy: true, databaseId: true, description: true, id: true, isDefault: true, metadata: true, name: true, updatedAt: true, updatedBy: true } }, + selection: { fields: { content: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, description: true, id: true, isDefault: true, metadata: true, name: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); // Get one agentPrompt const { data: item } = useAgentPromptQuery({ id: '', - selection: { fields: { content: true, createdAt: true, createdBy: true, databaseId: true, description: true, id: true, isDefault: true, metadata: true, name: true, updatedAt: true, updatedBy: true } }, + selection: { fields: { content: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, description: true, id: true, isDefault: true, metadata: true, name: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); // Create a agentPrompt const { mutate: create } = useCreateAgentPromptMutation({ selection: { fields: { id: true } }, }); -create({ content: '', createdBy: '', databaseId: '', description: '', isDefault: '', metadata: '', name: '', updatedBy: '' }); +create({ content: '', createdBy: '', createdByPrincipal: '', databaseId: '', description: '', isDefault: '', metadata: '', name: '', updatedBy: '', updatedByPrincipal: '' }); ``` ### AgentResourceChunk @@ -194,20 +255,20 @@ create({ content: '', createdBy: '', databaseId: '', descrip ```typescript // List all agentResourceChunks const { data, isLoading } = useAgentResourceChunksQuery({ - selection: { fields: { agentResourceId: true, body: true, chunkIndex: true, createdAt: true, embedding: true, embeddingVectorDistance: true, id: true, metadata: true, searchScore: true, updatedAt: true } }, + selection: { fields: { agentResourceId: true, body: true, chunkIndex: true, createdAt: true, databaseId: true, embedding: true, embeddingVectorDistance: true, id: true, metadata: true, searchScore: true, updatedAt: true } }, }); // Get one agentResourceChunk const { data: item } = useAgentResourceChunkQuery({ id: '', - selection: { fields: { agentResourceId: true, body: true, chunkIndex: true, createdAt: true, embedding: true, embeddingVectorDistance: true, id: true, metadata: true, searchScore: true, updatedAt: true } }, + selection: { fields: { agentResourceId: true, body: true, chunkIndex: true, createdAt: true, databaseId: true, embedding: true, embeddingVectorDistance: true, id: true, metadata: true, searchScore: true, updatedAt: true } }, }); // Create a agentResourceChunk const { mutate: create } = useCreateAgentResourceChunkMutation({ selection: { fields: { id: true } }, }); -create({ agentResourceId: '', body: '', chunkIndex: '', embedding: '', embeddingVectorDistance: '', metadata: '', searchScore: '' }); +create({ agentResourceId: '', body: '', chunkIndex: '', databaseId: '', embedding: '', embeddingVectorDistance: '', metadata: '', searchScore: '' }); ``` ### AgentResource @@ -215,20 +276,20 @@ create({ agentResourceId: '', body: '', chunkIndex: '', embed ```typescript // List all agentResources const { data, isLoading } = useAgentResourcesQuery({ - selection: { fields: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, databaseId: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true } }, + selection: { fields: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); // Get one agentResource const { data: item } = useAgentResourceQuery({ id: '', - selection: { fields: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, databaseId: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true } }, + selection: { fields: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); // Create a agentResource const { mutate: create } = useCreateAgentResourceMutation({ selection: { fields: { id: true } }, }); -create({ archivedAt: '', body: '', bodyTrgmSimilarity: '', createdBy: '', databaseId: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', isActive: '', isArchived: '', keywords: '', kind: '', kindTrgmSimilarity: '', metadata: '', search: '', searchScore: '', searchTsvRank: '', slug: '', title: '', titleTrgmSimilarity: '', updatedBy: '' }); +create({ archivedAt: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', isActive: '', isArchived: '', keywords: '', kind: '', kindTrgmSimilarity: '', metadata: '', search: '', searchScore: '', searchTsvRank: '', slug: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }); ``` ### AgentTask @@ -236,20 +297,20 @@ create({ archivedAt: '', body: '', bodyTrgmSimilarity: '', - selection: { fields: { actorId: true, approvalFeedback: true, approvalStatus: true, approvedAt: true, approvedBy: true, createdAt: true, databaseId: true, description: true, error: true, id: true, orderIndex: true, planId: true, requiresApproval: true, source: true, status: true, updatedAt: true } }, + selection: { fields: { actorId: true, approvalFeedback: true, approvalStatus: true, approvedAt: true, approvedBy: true, createdAt: true, databaseId: true, description: true, error: true, id: true, orderIndex: true, planId: true, requiresApproval: true, source: true, status: true, updatedAt: true, visibility: true } }, }); // Create a agentTask const { mutate: create } = useCreateAgentTaskMutation({ selection: { fields: { id: true } }, }); -create({ actorId: '', approvalFeedback: '', approvalStatus: '', approvedAt: '', approvedBy: '', databaseId: '', description: '', error: '', orderIndex: '', planId: '', requiresApproval: '', source: '', status: '' }); +create({ actorId: '', approvalFeedback: '', approvalStatus: '', approvedAt: '', approvedBy: '', databaseId: '', description: '', error: '', orderIndex: '', planId: '', requiresApproval: '', source: '', status: '', visibility: '' }); ``` ### AgentThread @@ -257,30 +318,283 @@ create({ actorId: '', approvalFeedback: '', approvalStatus: '', - selection: { fields: { agentId: true, archivedAt: true, createdAt: true, databaseId: true, id: true, isArchived: true, mode: true, model: true, ownerId: true, parentThreadId: true, promptTemplateId: true, status: true, systemPrompt: true, tags: true, title: true, updatedAt: true } }, + selection: { fields: { agentId: true, archivedAt: true, createdAt: true, databaseId: true, id: true, isArchived: true, mode: true, model: true, ownerId: true, parentThreadId: true, promptTemplateId: true, status: true, systemPrompt: true, tags: true, title: true, updatedAt: true, visibility: true } }, }); // Create a agentThread const { mutate: create } = useCreateAgentThreadMutation({ selection: { fields: { id: true } }, }); -create({ agentId: '', archivedAt: '', databaseId: '', isArchived: '', mode: '', model: '', ownerId: '', parentThreadId: '', promptTemplateId: '', status: '', systemPrompt: '', tags: '', title: '' }); +create({ agentId: '', archivedAt: '', databaseId: '', isArchived: '', mode: '', model: '', ownerId: '', parentThreadId: '', promptTemplateId: '', status: '', systemPrompt: '', tags: '', title: '', visibility: '' }); +``` + +### PlatformAgent + +```typescript +// List all platformAgents +const { data, isLoading } = usePlatformAgentsQuery({ + selection: { fields: { config: true, createdAt: true, id: true, isEphemeral: true, name: true, ownerId: true, parentId: true, personaId: true, status: true, systemPrompt: true, updatedAt: true } }, +}); + +// Get one platformAgent +const { data: item } = usePlatformAgentQuery({ + id: '', + selection: { fields: { config: true, createdAt: true, id: true, isEphemeral: true, name: true, ownerId: true, parentId: true, personaId: true, status: true, systemPrompt: true, updatedAt: true } }, +}); + +// Create a platformAgent +const { mutate: create } = useCreatePlatformAgentMutation({ + selection: { fields: { id: true } }, +}); +create({ config: '', isEphemeral: '', name: '', ownerId: '', parentId: '', personaId: '', status: '', systemPrompt: '' }); +``` + +### PlatformAgentEvent + +```typescript +// List all platformAgentEvents +const { data, isLoading } = usePlatformAgentEventsQuery({ + selection: { fields: { actorId: true, createdAt: true, entry: true, id: true, recordedAt: true, runId: true, seq: true, transcriptFormat: true, transcriptVersion: true, updatedAt: true, visibility: true } }, +}); + +// Get one platformAgentEvent +const { data: item } = usePlatformAgentEventQuery({ + id: '', + selection: { fields: { actorId: true, createdAt: true, entry: true, id: true, recordedAt: true, runId: true, seq: true, transcriptFormat: true, transcriptVersion: true, updatedAt: true, visibility: true } }, +}); + +// Create a platformAgentEvent +const { mutate: create } = useCreatePlatformAgentEventMutation({ + selection: { fields: { id: true } }, +}); +create({ actorId: '', entry: '', recordedAt: '', runId: '', seq: '', transcriptFormat: '', transcriptVersion: '', visibility: '' }); +``` + +### PlatformAgentMessage + +```typescript +// List all platformAgentMessages +const { data, isLoading } = usePlatformAgentMessagesQuery({ + selection: { fields: { actorId: true, agentId: true, authorRole: true, createdAt: true, deliveredRunId: true, id: true, kind: true, model: true, parts: true, threadId: true, updatedAt: true, visibility: true } }, +}); + +// Get one platformAgentMessage +const { data: item } = usePlatformAgentMessageQuery({ + id: '', + selection: { fields: { actorId: true, agentId: true, authorRole: true, createdAt: true, deliveredRunId: true, id: true, kind: true, model: true, parts: true, threadId: true, updatedAt: true, visibility: true } }, +}); + +// Create a platformAgentMessage +const { mutate: create } = useCreatePlatformAgentMessageMutation({ + selection: { fields: { id: true } }, +}); +create({ actorId: '', agentId: '', authorRole: '', deliveredRunId: '', kind: '', model: '', parts: '', threadId: '', visibility: '' }); +``` + +### PlatformAgentPersona + +```typescript +// List all platformAgentPersonas +const { data, isLoading } = usePlatformAgentPersonasQuery({ + selection: { fields: { config: true, createdAt: true, createdBy: true, createdByPrincipal: true, description: true, id: true, isActive: true, name: true, resources: true, slug: true, systemPrompt: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, +}); + +// Get one platformAgentPersona +const { data: item } = usePlatformAgentPersonaQuery({ + id: '', + selection: { fields: { config: true, createdAt: true, createdBy: true, createdByPrincipal: true, description: true, id: true, isActive: true, name: true, resources: true, slug: true, systemPrompt: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, +}); + +// Create a platformAgentPersona +const { mutate: create } = useCreatePlatformAgentPersonaMutation({ + selection: { fields: { id: true } }, +}); +create({ config: '', createdBy: '', createdByPrincipal: '', description: '', isActive: '', name: '', resources: '', slug: '', systemPrompt: '', updatedBy: '', updatedByPrincipal: '' }); +``` + +### PlatformAgentPlan + +```typescript +// List all platformAgentPlans +const { data, isLoading } = usePlatformAgentPlansQuery({ + selection: { fields: { createdAt: true, description: true, id: true, ownerId: true, status: true, threadId: true, title: true, updatedAt: true, visibility: true } }, +}); + +// Get one platformAgentPlan +const { data: item } = usePlatformAgentPlanQuery({ + id: '', + selection: { fields: { createdAt: true, description: true, id: true, ownerId: true, status: true, threadId: true, title: true, updatedAt: true, visibility: true } }, +}); + +// Create a platformAgentPlan +const { mutate: create } = useCreatePlatformAgentPlanMutation({ + selection: { fields: { id: true } }, +}); +create({ description: '', ownerId: '', status: '', threadId: '', title: '', visibility: '' }); +``` + +### PlatformAgentPrompt + +```typescript +// List all platformAgentPrompts +const { data, isLoading } = usePlatformAgentPromptsQuery({ + selection: { fields: { content: true, createdAt: true, createdBy: true, createdByPrincipal: true, description: true, id: true, isDefault: true, metadata: true, name: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, +}); + +// Get one platformAgentPrompt +const { data: item } = usePlatformAgentPromptQuery({ + id: '', + selection: { fields: { content: true, createdAt: true, createdBy: true, createdByPrincipal: true, description: true, id: true, isDefault: true, metadata: true, name: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, +}); + +// Create a platformAgentPrompt +const { mutate: create } = useCreatePlatformAgentPromptMutation({ + selection: { fields: { id: true } }, +}); +create({ content: '', createdBy: '', createdByPrincipal: '', description: '', isDefault: '', metadata: '', name: '', updatedBy: '', updatedByPrincipal: '' }); +``` + +### PlatformAgentResourceChunk + +```typescript +// List all platformAgentResourceChunks +const { data, isLoading } = usePlatformAgentResourceChunksQuery({ + selection: { fields: { body: true, chunkIndex: true, createdAt: true, embedding: true, embeddingVectorDistance: true, id: true, metadata: true, platformAgentResourceId: true, searchScore: true, updatedAt: true } }, +}); + +// Get one platformAgentResourceChunk +const { data: item } = usePlatformAgentResourceChunkQuery({ + id: '', + selection: { fields: { body: true, chunkIndex: true, createdAt: true, embedding: true, embeddingVectorDistance: true, id: true, metadata: true, platformAgentResourceId: true, searchScore: true, updatedAt: true } }, +}); + +// Create a platformAgentResourceChunk +const { mutate: create } = useCreatePlatformAgentResourceChunkMutation({ + selection: { fields: { id: true } }, +}); +create({ body: '', chunkIndex: '', embedding: '', embeddingVectorDistance: '', metadata: '', platformAgentResourceId: '', searchScore: '' }); +``` + +### PlatformAgentResource + +```typescript +// List all platformAgentResources +const { data, isLoading } = usePlatformAgentResourcesQuery({ + selection: { fields: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, +}); + +// Get one platformAgentResource +const { data: item } = usePlatformAgentResourceQuery({ + id: '', + selection: { fields: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, +}); + +// Create a platformAgentResource +const { mutate: create } = useCreatePlatformAgentResourceMutation({ + selection: { fields: { id: true } }, +}); +create({ archivedAt: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', isActive: '', isArchived: '', keywords: '', kind: '', kindTrgmSimilarity: '', metadata: '', search: '', searchScore: '', searchTsvRank: '', slug: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }); +``` + +### PlatformAgentRun + +```typescript +// List all platformAgentRuns +const { data, isLoading } = usePlatformAgentRunsQuery({ + selection: { fields: { actorId: true, artifacts: true, attempt: true, baseCommit: true, branch: true, createdAt: true, databaseId: true, deadlineAt: true, entityId: true, error: true, executionId: true, finishedAt: true, headCommit: true, id: true, lastEventSeq: true, parentRunId: true, placement: true, principalId: true, repoUrl: true, startedAt: true, status: true, threadId: true, tokenUsage: true, totalCost: true, updatedAt: true, visibility: true } }, +}); + +// Get one platformAgentRun +const { data: item } = usePlatformAgentRunQuery({ + id: '', + selection: { fields: { actorId: true, artifacts: true, attempt: true, baseCommit: true, branch: true, createdAt: true, databaseId: true, deadlineAt: true, entityId: true, error: true, executionId: true, finishedAt: true, headCommit: true, id: true, lastEventSeq: true, parentRunId: true, placement: true, principalId: true, repoUrl: true, startedAt: true, status: true, threadId: true, tokenUsage: true, totalCost: true, updatedAt: true, visibility: true } }, +}); + +// Create a platformAgentRun +const { mutate: create } = useCreatePlatformAgentRunMutation({ + selection: { fields: { id: true } }, +}); +create({ actorId: '', artifacts: '', attempt: '', baseCommit: '', branch: '', databaseId: '', deadlineAt: '', entityId: '', error: '', executionId: '', finishedAt: '', headCommit: '', lastEventSeq: '', parentRunId: '', placement: '', principalId: '', repoUrl: '', startedAt: '', status: '', threadId: '', tokenUsage: '', totalCost: '', visibility: '' }); +``` + +### PlatformAgentRunWorkspace + +```typescript +// List all platformAgentRunWorkspaces +const { data, isLoading } = usePlatformAgentRunWorkspacesQuery({ + selection: { fields: { actorId: true, artifacts: true, baseBranch: true, baseCommit: true, branch: true, clonedAt: true, createdAt: true, headCommit: true, id: true, lastUsedAt: true, ordinal: true, provider: true, publication: true, repo: true, repositoryId: true, runId: true, state: true, updatedAt: true, visibility: true } }, +}); + +// Get one platformAgentRunWorkspace +const { data: item } = usePlatformAgentRunWorkspaceQuery({ + id: '', + selection: { fields: { actorId: true, artifacts: true, baseBranch: true, baseCommit: true, branch: true, clonedAt: true, createdAt: true, headCommit: true, id: true, lastUsedAt: true, ordinal: true, provider: true, publication: true, repo: true, repositoryId: true, runId: true, state: true, updatedAt: true, visibility: true } }, +}); + +// Create a platformAgentRunWorkspace +const { mutate: create } = useCreatePlatformAgentRunWorkspaceMutation({ + selection: { fields: { id: true } }, +}); +create({ actorId: '', artifacts: '', baseBranch: '', baseCommit: '', branch: '', clonedAt: '', headCommit: '', lastUsedAt: '', ordinal: '', provider: '', publication: '', repo: '', repositoryId: '', runId: '', state: '', visibility: '' }); +``` + +### PlatformAgentTask + +```typescript +// List all platformAgentTasks +const { data, isLoading } = usePlatformAgentTasksQuery({ + selection: { fields: { actorId: true, approvalFeedback: true, approvalStatus: true, approvedAt: true, approvedBy: true, createdAt: true, description: true, error: true, id: true, orderIndex: true, planId: true, requiresApproval: true, source: true, status: true, updatedAt: true, visibility: true } }, +}); + +// Get one platformAgentTask +const { data: item } = usePlatformAgentTaskQuery({ + id: '', + selection: { fields: { actorId: true, approvalFeedback: true, approvalStatus: true, approvedAt: true, approvedBy: true, createdAt: true, description: true, error: true, id: true, orderIndex: true, planId: true, requiresApproval: true, source: true, status: true, updatedAt: true, visibility: true } }, +}); + +// Create a platformAgentTask +const { mutate: create } = useCreatePlatformAgentTaskMutation({ + selection: { fields: { id: true } }, +}); +create({ actorId: '', approvalFeedback: '', approvalStatus: '', approvedAt: '', approvedBy: '', description: '', error: '', orderIndex: '', planId: '', requiresApproval: '', source: '', status: '', visibility: '' }); +``` + +### PlatformAgentThread + +```typescript +// List all platformAgentThreads +const { data, isLoading } = usePlatformAgentThreadsQuery({ + selection: { fields: { agentId: true, archivedAt: true, createdAt: true, id: true, isArchived: true, mode: true, model: true, ownerId: true, parentThreadId: true, promptTemplateId: true, status: true, systemPrompt: true, tags: true, title: true, updatedAt: true, visibility: true } }, +}); + +// Get one platformAgentThread +const { data: item } = usePlatformAgentThreadQuery({ + id: '', + selection: { fields: { agentId: true, archivedAt: true, createdAt: true, id: true, isArchived: true, mode: true, model: true, ownerId: true, parentThreadId: true, promptTemplateId: true, status: true, systemPrompt: true, tags: true, title: true, updatedAt: true, visibility: true } }, +}); + +// Create a platformAgentThread +const { mutate: create } = useCreatePlatformAgentThreadMutation({ + selection: { fields: { id: true } }, +}); +create({ agentId: '', archivedAt: '', isArchived: '', mode: '', model: '', ownerId: '', parentThreadId: '', promptTemplateId: '', status: '', systemPrompt: '', tags: '', title: '', visibility: '' }); ``` ## Custom Operation Hooks ### `useProvisionBucketMutation` -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. +Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. - **Type:** mutation - **Arguments:** diff --git a/sdk/constructive-react/src/agent/hooks/index.ts b/sdk/constructive-react/src/agent/hooks/index.ts index 2c9416d67b..73d594049e 100644 --- a/sdk/constructive-react/src/agent/hooks/index.ts +++ b/sdk/constructive-react/src/agent/hooks/index.ts @@ -2,7 +2,7 @@ * GraphQL SDK * @generated by @constructive-io/graphql-codegen * - * Tables: Agent, AgentMessage, AgentPersona, AgentPlan, AgentPrompt, AgentResourceChunk, AgentResource, AgentTask, AgentThread + * Tables: Agent, AgentMessage, AgentPersona, AgentPlan, AgentPrompt, AgentResourceChunk, AgentResource, AgentTask, AgentThread, PlatformAgent, PlatformAgentEvent, PlatformAgentMessage, PlatformAgentPersona, PlatformAgentPlan, PlatformAgentPrompt, PlatformAgentResourceChunk, PlatformAgentResource, PlatformAgentRun, PlatformAgentRunWorkspace, PlatformAgentTask, PlatformAgentThread * * Usage: * diff --git a/sdk/constructive-react/src/agent/hooks/invalidation.ts b/sdk/constructive-react/src/agent/hooks/invalidation.ts index 237822f336..9b384462fd 100644 --- a/sdk/constructive-react/src/agent/hooks/invalidation.ts +++ b/sdk/constructive-react/src/agent/hooks/invalidation.ts @@ -24,6 +24,18 @@ import { agentResourceKeys, agentTaskKeys, agentThreadKeys, + platformAgentKeys, + platformAgentEventKeys, + platformAgentMessageKeys, + platformAgentPersonaKeys, + platformAgentPlanKeys, + platformAgentPromptKeys, + platformAgentResourceChunkKeys, + platformAgentResourceKeys, + platformAgentRunKeys, + platformAgentRunWorkspaceKeys, + platformAgentTaskKeys, + platformAgentThreadKeys, } from './query-keys'; /** // ============================================================================ @@ -195,6 +207,210 @@ export const invalidate = { queryKey: agentThreadKeys.detail(id), }), }, + /** Invalidate platformAgent queries */ platformAgent: { + /** Invalidate all platformAgent queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformAgentKeys.all, + }), + /** Invalidate platformAgent list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformAgentKeys.lists(), + }), + /** Invalidate a specific platformAgent */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: platformAgentKeys.detail(id), + }), + }, + /** Invalidate platformAgentEvent queries */ platformAgentEvent: { + /** Invalidate all platformAgentEvent queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformAgentEventKeys.all, + }), + /** Invalidate platformAgentEvent list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformAgentEventKeys.lists(), + }), + /** Invalidate a specific platformAgentEvent */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: platformAgentEventKeys.detail(id), + }), + }, + /** Invalidate platformAgentMessage queries */ platformAgentMessage: { + /** Invalidate all platformAgentMessage queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformAgentMessageKeys.all, + }), + /** Invalidate platformAgentMessage list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformAgentMessageKeys.lists(), + }), + /** Invalidate a specific platformAgentMessage */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: platformAgentMessageKeys.detail(id), + }), + }, + /** Invalidate platformAgentPersona queries */ platformAgentPersona: { + /** Invalidate all platformAgentPersona queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformAgentPersonaKeys.all, + }), + /** Invalidate platformAgentPersona list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformAgentPersonaKeys.lists(), + }), + /** Invalidate a specific platformAgentPersona */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: platformAgentPersonaKeys.detail(id), + }), + }, + /** Invalidate platformAgentPlan queries */ platformAgentPlan: { + /** Invalidate all platformAgentPlan queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformAgentPlanKeys.all, + }), + /** Invalidate platformAgentPlan list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformAgentPlanKeys.lists(), + }), + /** Invalidate a specific platformAgentPlan */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: platformAgentPlanKeys.detail(id), + }), + }, + /** Invalidate platformAgentPrompt queries */ platformAgentPrompt: { + /** Invalidate all platformAgentPrompt queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformAgentPromptKeys.all, + }), + /** Invalidate platformAgentPrompt list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformAgentPromptKeys.lists(), + }), + /** Invalidate a specific platformAgentPrompt */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: platformAgentPromptKeys.detail(id), + }), + }, + /** Invalidate platformAgentResourceChunk queries */ platformAgentResourceChunk: { + /** Invalidate all platformAgentResourceChunk queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformAgentResourceChunkKeys.all, + }), + /** Invalidate platformAgentResourceChunk list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformAgentResourceChunkKeys.lists(), + }), + /** Invalidate a specific platformAgentResourceChunk */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: platformAgentResourceChunkKeys.detail(id), + }), + }, + /** Invalidate platformAgentResource queries */ platformAgentResource: { + /** Invalidate all platformAgentResource queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformAgentResourceKeys.all, + }), + /** Invalidate platformAgentResource list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformAgentResourceKeys.lists(), + }), + /** Invalidate a specific platformAgentResource */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: platformAgentResourceKeys.detail(id), + }), + }, + /** Invalidate platformAgentRun queries */ platformAgentRun: { + /** Invalidate all platformAgentRun queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformAgentRunKeys.all, + }), + /** Invalidate platformAgentRun list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformAgentRunKeys.lists(), + }), + /** Invalidate a specific platformAgentRun */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: platformAgentRunKeys.detail(id), + }), + }, + /** Invalidate platformAgentRunWorkspace queries */ platformAgentRunWorkspace: { + /** Invalidate all platformAgentRunWorkspace queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformAgentRunWorkspaceKeys.all, + }), + /** Invalidate platformAgentRunWorkspace list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformAgentRunWorkspaceKeys.lists(), + }), + /** Invalidate a specific platformAgentRunWorkspace */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: platformAgentRunWorkspaceKeys.detail(id), + }), + }, + /** Invalidate platformAgentTask queries */ platformAgentTask: { + /** Invalidate all platformAgentTask queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformAgentTaskKeys.all, + }), + /** Invalidate platformAgentTask list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformAgentTaskKeys.lists(), + }), + /** Invalidate a specific platformAgentTask */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: platformAgentTaskKeys.detail(id), + }), + }, + /** Invalidate platformAgentThread queries */ platformAgentThread: { + /** Invalidate all platformAgentThread queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformAgentThreadKeys.all, + }), + /** Invalidate platformAgentThread list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformAgentThreadKeys.lists(), + }), + /** Invalidate a specific platformAgentThread */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: platformAgentThreadKeys.detail(id), + }), + }, } as const; /** @@ -271,4 +487,100 @@ export const remove = { queryKey: agentThreadKeys.detail(id), }); }, + /** Remove platformAgent from cache */ platformAgent: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: platformAgentKeys.detail(id), + }); + }, + /** Remove platformAgentEvent from cache */ platformAgentEvent: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: platformAgentEventKeys.detail(id), + }); + }, + /** Remove platformAgentMessage from cache */ platformAgentMessage: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: platformAgentMessageKeys.detail(id), + }); + }, + /** Remove platformAgentPersona from cache */ platformAgentPersona: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: platformAgentPersonaKeys.detail(id), + }); + }, + /** Remove platformAgentPlan from cache */ platformAgentPlan: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: platformAgentPlanKeys.detail(id), + }); + }, + /** Remove platformAgentPrompt from cache */ platformAgentPrompt: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: platformAgentPromptKeys.detail(id), + }); + }, + /** Remove platformAgentResourceChunk from cache */ platformAgentResourceChunk: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: platformAgentResourceChunkKeys.detail(id), + }); + }, + /** Remove platformAgentResource from cache */ platformAgentResource: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: platformAgentResourceKeys.detail(id), + }); + }, + /** Remove platformAgentRun from cache */ platformAgentRun: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: platformAgentRunKeys.detail(id), + }); + }, + /** Remove platformAgentRunWorkspace from cache */ platformAgentRunWorkspace: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: platformAgentRunWorkspaceKeys.detail(id), + }); + }, + /** Remove platformAgentTask from cache */ platformAgentTask: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: platformAgentTaskKeys.detail(id), + }); + }, + /** Remove platformAgentThread from cache */ platformAgentThread: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: platformAgentThreadKeys.detail(id), + }); + }, } as const; diff --git a/sdk/constructive-react/src/agent/hooks/mutation-keys.ts b/sdk/constructive-react/src/agent/hooks/mutation-keys.ts index fded782673..e4412bf998 100644 --- a/sdk/constructive-react/src/agent/hooks/mutation-keys.ts +++ b/sdk/constructive-react/src/agent/hooks/mutation-keys.ts @@ -96,6 +96,123 @@ export const agentThreadMutationKeys = { /** Delete agentThread mutation key */ delete: (id: string | number) => ['mutation', 'agentthread', 'delete', id] as const, } as const; +export const platformAgentMutationKeys = { + /** All platformAgent mutation keys */ all: ['mutation', 'platformagent'] as const, + /** Create platformAgent mutation key */ create: () => + ['mutation', 'platformagent', 'create'] as const, + /** Update platformAgent mutation key */ update: (id: string | number) => + ['mutation', 'platformagent', 'update', id] as const, + /** Delete platformAgent mutation key */ delete: (id: string | number) => + ['mutation', 'platformagent', 'delete', id] as const, +} as const; +export const platformAgentEventMutationKeys = { + /** All platformAgentEvent mutation keys */ all: ['mutation', 'platformagentevent'] as const, + /** Create platformAgentEvent mutation key */ create: () => + ['mutation', 'platformagentevent', 'create'] as const, + /** Update platformAgentEvent mutation key */ update: (id: string | number) => + ['mutation', 'platformagentevent', 'update', id] as const, + /** Delete platformAgentEvent mutation key */ delete: (id: string | number) => + ['mutation', 'platformagentevent', 'delete', id] as const, +} as const; +export const platformAgentMessageMutationKeys = { + /** All platformAgentMessage mutation keys */ all: ['mutation', 'platformagentmessage'] as const, + /** Create platformAgentMessage mutation key */ create: () => + ['mutation', 'platformagentmessage', 'create'] as const, + /** Update platformAgentMessage mutation key */ update: (id: string | number) => + ['mutation', 'platformagentmessage', 'update', id] as const, + /** Delete platformAgentMessage mutation key */ delete: (id: string | number) => + ['mutation', 'platformagentmessage', 'delete', id] as const, +} as const; +export const platformAgentPersonaMutationKeys = { + /** All platformAgentPersona mutation keys */ all: ['mutation', 'platformagentpersona'] as const, + /** Create platformAgentPersona mutation key */ create: () => + ['mutation', 'platformagentpersona', 'create'] as const, + /** Update platformAgentPersona mutation key */ update: (id: string | number) => + ['mutation', 'platformagentpersona', 'update', id] as const, + /** Delete platformAgentPersona mutation key */ delete: (id: string | number) => + ['mutation', 'platformagentpersona', 'delete', id] as const, +} as const; +export const platformAgentPlanMutationKeys = { + /** All platformAgentPlan mutation keys */ all: ['mutation', 'platformagentplan'] as const, + /** Create platformAgentPlan mutation key */ create: () => + ['mutation', 'platformagentplan', 'create'] as const, + /** Update platformAgentPlan mutation key */ update: (id: string | number) => + ['mutation', 'platformagentplan', 'update', id] as const, + /** Delete platformAgentPlan mutation key */ delete: (id: string | number) => + ['mutation', 'platformagentplan', 'delete', id] as const, +} as const; +export const platformAgentPromptMutationKeys = { + /** All platformAgentPrompt mutation keys */ all: ['mutation', 'platformagentprompt'] as const, + /** Create platformAgentPrompt mutation key */ create: () => + ['mutation', 'platformagentprompt', 'create'] as const, + /** Update platformAgentPrompt mutation key */ update: (id: string | number) => + ['mutation', 'platformagentprompt', 'update', id] as const, + /** Delete platformAgentPrompt mutation key */ delete: (id: string | number) => + ['mutation', 'platformagentprompt', 'delete', id] as const, +} as const; +export const platformAgentResourceChunkMutationKeys = { + /** All platformAgentResourceChunk mutation keys */ all: [ + 'mutation', + 'platformagentresourcechunk', + ] as const, + /** Create platformAgentResourceChunk mutation key */ create: () => + ['mutation', 'platformagentresourcechunk', 'create'] as const, + /** Update platformAgentResourceChunk mutation key */ update: (id: string | number) => + ['mutation', 'platformagentresourcechunk', 'update', id] as const, + /** Delete platformAgentResourceChunk mutation key */ delete: (id: string | number) => + ['mutation', 'platformagentresourcechunk', 'delete', id] as const, +} as const; +export const platformAgentResourceMutationKeys = { + /** All platformAgentResource mutation keys */ all: [ + 'mutation', + 'platformagentresource', + ] as const, + /** Create platformAgentResource mutation key */ create: () => + ['mutation', 'platformagentresource', 'create'] as const, + /** Update platformAgentResource mutation key */ update: (id: string | number) => + ['mutation', 'platformagentresource', 'update', id] as const, + /** Delete platformAgentResource mutation key */ delete: (id: string | number) => + ['mutation', 'platformagentresource', 'delete', id] as const, +} as const; +export const platformAgentRunMutationKeys = { + /** All platformAgentRun mutation keys */ all: ['mutation', 'platformagentrun'] as const, + /** Create platformAgentRun mutation key */ create: () => + ['mutation', 'platformagentrun', 'create'] as const, + /** Update platformAgentRun mutation key */ update: (id: string | number) => + ['mutation', 'platformagentrun', 'update', id] as const, + /** Delete platformAgentRun mutation key */ delete: (id: string | number) => + ['mutation', 'platformagentrun', 'delete', id] as const, +} as const; +export const platformAgentRunWorkspaceMutationKeys = { + /** All platformAgentRunWorkspace mutation keys */ all: [ + 'mutation', + 'platformagentrunworkspace', + ] as const, + /** Create platformAgentRunWorkspace mutation key */ create: () => + ['mutation', 'platformagentrunworkspace', 'create'] as const, + /** Update platformAgentRunWorkspace mutation key */ update: (id: string | number) => + ['mutation', 'platformagentrunworkspace', 'update', id] as const, + /** Delete platformAgentRunWorkspace mutation key */ delete: (id: string | number) => + ['mutation', 'platformagentrunworkspace', 'delete', id] as const, +} as const; +export const platformAgentTaskMutationKeys = { + /** All platformAgentTask mutation keys */ all: ['mutation', 'platformagenttask'] as const, + /** Create platformAgentTask mutation key */ create: () => + ['mutation', 'platformagenttask', 'create'] as const, + /** Update platformAgentTask mutation key */ update: (id: string | number) => + ['mutation', 'platformagenttask', 'update', id] as const, + /** Delete platformAgentTask mutation key */ delete: (id: string | number) => + ['mutation', 'platformagenttask', 'delete', id] as const, +} as const; +export const platformAgentThreadMutationKeys = { + /** All platformAgentThread mutation keys */ all: ['mutation', 'platformagentthread'] as const, + /** Create platformAgentThread mutation key */ create: () => + ['mutation', 'platformagentthread', 'create'] as const, + /** Update platformAgentThread mutation key */ update: (id: string | number) => + ['mutation', 'platformagentthread', 'update', id] as const, + /** Delete platformAgentThread mutation key */ delete: (id: string | number) => + ['mutation', 'platformagentthread', 'delete', id] as const, +} as const; // ============================================================================ // Custom Mutation Keys @@ -139,5 +256,17 @@ export const mutationKeys = { agentResource: agentResourceMutationKeys, agentTask: agentTaskMutationKeys, agentThread: agentThreadMutationKeys, + platformAgent: platformAgentMutationKeys, + platformAgentEvent: platformAgentEventMutationKeys, + platformAgentMessage: platformAgentMessageMutationKeys, + platformAgentPersona: platformAgentPersonaMutationKeys, + platformAgentPlan: platformAgentPlanMutationKeys, + platformAgentPrompt: platformAgentPromptMutationKeys, + platformAgentResourceChunk: platformAgentResourceChunkMutationKeys, + platformAgentResource: platformAgentResourceMutationKeys, + platformAgentRun: platformAgentRunMutationKeys, + platformAgentRunWorkspace: platformAgentRunWorkspaceMutationKeys, + platformAgentTask: platformAgentTaskMutationKeys, + platformAgentThread: platformAgentThreadMutationKeys, custom: customMutationKeys, } as const; diff --git a/sdk/constructive-react/src/agent/hooks/mutations/index.ts b/sdk/constructive-react/src/agent/hooks/mutations/index.ts index f0e2d4f9fb..7bcca72508 100644 --- a/sdk/constructive-react/src/agent/hooks/mutations/index.ts +++ b/sdk/constructive-react/src/agent/hooks/mutations/index.ts @@ -30,4 +30,40 @@ export * from './useDeleteAgentTaskMutation'; export * from './useCreateAgentThreadMutation'; export * from './useUpdateAgentThreadMutation'; export * from './useDeleteAgentThreadMutation'; +export * from './useCreatePlatformAgentMutation'; +export * from './useUpdatePlatformAgentMutation'; +export * from './useDeletePlatformAgentMutation'; +export * from './useCreatePlatformAgentEventMutation'; +export * from './useUpdatePlatformAgentEventMutation'; +export * from './useDeletePlatformAgentEventMutation'; +export * from './useCreatePlatformAgentMessageMutation'; +export * from './useUpdatePlatformAgentMessageMutation'; +export * from './useDeletePlatformAgentMessageMutation'; +export * from './useCreatePlatformAgentPersonaMutation'; +export * from './useUpdatePlatformAgentPersonaMutation'; +export * from './useDeletePlatformAgentPersonaMutation'; +export * from './useCreatePlatformAgentPlanMutation'; +export * from './useUpdatePlatformAgentPlanMutation'; +export * from './useDeletePlatformAgentPlanMutation'; +export * from './useCreatePlatformAgentPromptMutation'; +export * from './useUpdatePlatformAgentPromptMutation'; +export * from './useDeletePlatformAgentPromptMutation'; +export * from './useCreatePlatformAgentResourceChunkMutation'; +export * from './useUpdatePlatformAgentResourceChunkMutation'; +export * from './useDeletePlatformAgentResourceChunkMutation'; +export * from './useCreatePlatformAgentResourceMutation'; +export * from './useUpdatePlatformAgentResourceMutation'; +export * from './useDeletePlatformAgentResourceMutation'; +export * from './useCreatePlatformAgentRunMutation'; +export * from './useUpdatePlatformAgentRunMutation'; +export * from './useDeletePlatformAgentRunMutation'; +export * from './useCreatePlatformAgentRunWorkspaceMutation'; +export * from './useUpdatePlatformAgentRunWorkspaceMutation'; +export * from './useDeletePlatformAgentRunWorkspaceMutation'; +export * from './useCreatePlatformAgentTaskMutation'; +export * from './useUpdatePlatformAgentTaskMutation'; +export * from './useDeletePlatformAgentTaskMutation'; +export * from './useCreatePlatformAgentThreadMutation'; +export * from './useUpdatePlatformAgentThreadMutation'; +export * from './useDeletePlatformAgentThreadMutation'; export * from './useProvisionBucketMutation'; diff --git a/sdk/constructive-react/src/agent/hooks/mutations/useCreatePlatformAgentEventMutation.ts b/sdk/constructive-react/src/agent/hooks/mutations/useCreatePlatformAgentEventMutation.ts new file mode 100644 index 0000000000..705a7b90ba --- /dev/null +++ b/sdk/constructive-react/src/agent/hooks/mutations/useCreatePlatformAgentEventMutation.ts @@ -0,0 +1,91 @@ +/** + * Append-only transcript of an agent run: one agent session entry per row, stored verbatim + * @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 { platformAgentEventKeys } from '../query-keys'; +import { platformAgentEventMutationKeys } from '../mutation-keys'; +import type { + PlatformAgentEventSelect, + PlatformAgentEventWithRelations, + CreatePlatformAgentEventInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformAgentEventSelect, + PlatformAgentEventWithRelations, + CreatePlatformAgentEventInput, +} from '../../orm/input-types'; +/** + * Append-only transcript of an agent run: one agent session entry per row, stored verbatim + * + * @example + * ```tsx + * const { mutate, isPending } = useCreatePlatformAgentEventMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreatePlatformAgentEventMutation( + params: { + selection: { + fields: S & PlatformAgentEventSelect; + } & HookStrictSelect, PlatformAgentEventSelect>; + } & Omit< + UseMutationOptions< + { + createPlatformAgentEvent: { + platformAgentEvent: InferSelectResult; + }; + }, + Error, + CreatePlatformAgentEventInput['platformAgentEvent'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createPlatformAgentEvent: { + platformAgentEvent: InferSelectResult; + }; + }, + Error, + CreatePlatformAgentEventInput['platformAgentEvent'] +>; +export function useCreatePlatformAgentEventMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformAgentEventMutationKeys.create(), + mutationFn: (data: CreatePlatformAgentEventInput['platformAgentEvent']) => + getClient() + .platformAgentEvent.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: platformAgentEventKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/agent/hooks/mutations/useCreatePlatformAgentMessageMutation.ts b/sdk/constructive-react/src/agent/hooks/mutations/useCreatePlatformAgentMessageMutation.ts new file mode 100644 index 0000000000..4ec39a13d5 --- /dev/null +++ b/sdk/constructive-react/src/agent/hooks/mutations/useCreatePlatformAgentMessageMutation.ts @@ -0,0 +1,91 @@ +/** + * Message within an agent thread with TextPart/ToolPart jsonb parts + * @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 { platformAgentMessageKeys } from '../query-keys'; +import { platformAgentMessageMutationKeys } from '../mutation-keys'; +import type { + PlatformAgentMessageSelect, + PlatformAgentMessageWithRelations, + CreatePlatformAgentMessageInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformAgentMessageSelect, + PlatformAgentMessageWithRelations, + CreatePlatformAgentMessageInput, +} from '../../orm/input-types'; +/** + * Message within an agent thread with TextPart/ToolPart jsonb parts + * + * @example + * ```tsx + * const { mutate, isPending } = useCreatePlatformAgentMessageMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreatePlatformAgentMessageMutation( + params: { + selection: { + fields: S & PlatformAgentMessageSelect; + } & HookStrictSelect, PlatformAgentMessageSelect>; + } & Omit< + UseMutationOptions< + { + createPlatformAgentMessage: { + platformAgentMessage: InferSelectResult; + }; + }, + Error, + CreatePlatformAgentMessageInput['platformAgentMessage'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createPlatformAgentMessage: { + platformAgentMessage: InferSelectResult; + }; + }, + Error, + CreatePlatformAgentMessageInput['platformAgentMessage'] +>; +export function useCreatePlatformAgentMessageMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformAgentMessageMutationKeys.create(), + mutationFn: (data: CreatePlatformAgentMessageInput['platformAgentMessage']) => + getClient() + .platformAgentMessage.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: platformAgentMessageKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/agent/hooks/mutations/useCreatePlatformAgentMutation.ts b/sdk/constructive-react/src/agent/hooks/mutations/useCreatePlatformAgentMutation.ts new file mode 100644 index 0000000000..b17e51f7b7 --- /dev/null +++ b/sdk/constructive-react/src/agent/hooks/mutations/useCreatePlatformAgentMutation.ts @@ -0,0 +1,88 @@ +/** + * Agent instance registry (human-managed or ephemeral sub-agents) + * @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 { platformAgentKeys } from '../query-keys'; +import { platformAgentMutationKeys } from '../mutation-keys'; +import type { + PlatformAgentSelect, + PlatformAgentWithRelations, + CreatePlatformAgentInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformAgentSelect, + PlatformAgentWithRelations, + CreatePlatformAgentInput, +} from '../../orm/input-types'; +/** + * Agent instance registry (human-managed or ephemeral sub-agents) + * + * @example + * ```tsx + * const { mutate, isPending } = useCreatePlatformAgentMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreatePlatformAgentMutation( + params: { + selection: { + fields: S & PlatformAgentSelect; + } & HookStrictSelect, PlatformAgentSelect>; + } & Omit< + UseMutationOptions< + { + createPlatformAgent: { + platformAgent: InferSelectResult; + }; + }, + Error, + CreatePlatformAgentInput['platformAgent'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createPlatformAgent: { + platformAgent: InferSelectResult; + }; + }, + Error, + CreatePlatformAgentInput['platformAgent'] +>; +export function useCreatePlatformAgentMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformAgentMutationKeys.create(), + mutationFn: (data: CreatePlatformAgentInput['platformAgent']) => + getClient() + .platformAgent.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: platformAgentKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/agent/hooks/mutations/useCreatePlatformAgentPersonaMutation.ts b/sdk/constructive-react/src/agent/hooks/mutations/useCreatePlatformAgentPersonaMutation.ts new file mode 100644 index 0000000000..f874f2295c --- /dev/null +++ b/sdk/constructive-react/src/agent/hooks/mutations/useCreatePlatformAgentPersonaMutation.ts @@ -0,0 +1,91 @@ +/** + * Agent persona templates (role, system prompt, default skills/knowledge) + * @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 { platformAgentPersonaKeys } from '../query-keys'; +import { platformAgentPersonaMutationKeys } from '../mutation-keys'; +import type { + PlatformAgentPersonaSelect, + PlatformAgentPersonaWithRelations, + CreatePlatformAgentPersonaInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformAgentPersonaSelect, + PlatformAgentPersonaWithRelations, + CreatePlatformAgentPersonaInput, +} from '../../orm/input-types'; +/** + * Agent persona templates (role, system prompt, default skills/knowledge) + * + * @example + * ```tsx + * const { mutate, isPending } = useCreatePlatformAgentPersonaMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreatePlatformAgentPersonaMutation( + params: { + selection: { + fields: S & PlatformAgentPersonaSelect; + } & HookStrictSelect, PlatformAgentPersonaSelect>; + } & Omit< + UseMutationOptions< + { + createPlatformAgentPersona: { + platformAgentPersona: InferSelectResult; + }; + }, + Error, + CreatePlatformAgentPersonaInput['platformAgentPersona'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createPlatformAgentPersona: { + platformAgentPersona: InferSelectResult; + }; + }, + Error, + CreatePlatformAgentPersonaInput['platformAgentPersona'] +>; +export function useCreatePlatformAgentPersonaMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformAgentPersonaMutationKeys.create(), + mutationFn: (data: CreatePlatformAgentPersonaInput['platformAgentPersona']) => + getClient() + .platformAgentPersona.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: platformAgentPersonaKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/agent/hooks/mutations/useCreatePlatformAgentPlanMutation.ts b/sdk/constructive-react/src/agent/hooks/mutations/useCreatePlatformAgentPlanMutation.ts new file mode 100644 index 0000000000..f891ad2091 --- /dev/null +++ b/sdk/constructive-react/src/agent/hooks/mutations/useCreatePlatformAgentPlanMutation.ts @@ -0,0 +1,91 @@ +/** + * Workflow plan attached to an agent thread with ordered tasks and optional approval gates + * @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 { platformAgentPlanKeys } from '../query-keys'; +import { platformAgentPlanMutationKeys } from '../mutation-keys'; +import type { + PlatformAgentPlanSelect, + PlatformAgentPlanWithRelations, + CreatePlatformAgentPlanInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformAgentPlanSelect, + PlatformAgentPlanWithRelations, + CreatePlatformAgentPlanInput, +} from '../../orm/input-types'; +/** + * Workflow plan attached to an agent thread with ordered tasks and optional approval gates + * + * @example + * ```tsx + * const { mutate, isPending } = useCreatePlatformAgentPlanMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreatePlatformAgentPlanMutation( + params: { + selection: { + fields: S & PlatformAgentPlanSelect; + } & HookStrictSelect, PlatformAgentPlanSelect>; + } & Omit< + UseMutationOptions< + { + createPlatformAgentPlan: { + platformAgentPlan: InferSelectResult; + }; + }, + Error, + CreatePlatformAgentPlanInput['platformAgentPlan'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createPlatformAgentPlan: { + platformAgentPlan: InferSelectResult; + }; + }, + Error, + CreatePlatformAgentPlanInput['platformAgentPlan'] +>; +export function useCreatePlatformAgentPlanMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformAgentPlanMutationKeys.create(), + mutationFn: (data: CreatePlatformAgentPlanInput['platformAgentPlan']) => + getClient() + .platformAgentPlan.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: platformAgentPlanKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/agent/hooks/mutations/useCreatePlatformAgentPromptMutation.ts b/sdk/constructive-react/src/agent/hooks/mutations/useCreatePlatformAgentPromptMutation.ts new file mode 100644 index 0000000000..7a973d6233 --- /dev/null +++ b/sdk/constructive-react/src/agent/hooks/mutations/useCreatePlatformAgentPromptMutation.ts @@ -0,0 +1,91 @@ +/** + * Shared system prompt templates for agent conversations + * @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 { platformAgentPromptKeys } from '../query-keys'; +import { platformAgentPromptMutationKeys } from '../mutation-keys'; +import type { + PlatformAgentPromptSelect, + PlatformAgentPromptWithRelations, + CreatePlatformAgentPromptInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformAgentPromptSelect, + PlatformAgentPromptWithRelations, + CreatePlatformAgentPromptInput, +} from '../../orm/input-types'; +/** + * Shared system prompt templates for agent conversations + * + * @example + * ```tsx + * const { mutate, isPending } = useCreatePlatformAgentPromptMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreatePlatformAgentPromptMutation( + params: { + selection: { + fields: S & PlatformAgentPromptSelect; + } & HookStrictSelect, PlatformAgentPromptSelect>; + } & Omit< + UseMutationOptions< + { + createPlatformAgentPrompt: { + platformAgentPrompt: InferSelectResult; + }; + }, + Error, + CreatePlatformAgentPromptInput['platformAgentPrompt'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createPlatformAgentPrompt: { + platformAgentPrompt: InferSelectResult; + }; + }, + Error, + CreatePlatformAgentPromptInput['platformAgentPrompt'] +>; +export function useCreatePlatformAgentPromptMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformAgentPromptMutationKeys.create(), + mutationFn: (data: CreatePlatformAgentPromptInput['platformAgentPrompt']) => + getClient() + .platformAgentPrompt.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: platformAgentPromptKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/agent/hooks/mutations/useCreatePlatformAgentResourceChunkMutation.ts b/sdk/constructive-react/src/agent/hooks/mutations/useCreatePlatformAgentResourceChunkMutation.ts new file mode 100644 index 0000000000..774c6fc2ea --- /dev/null +++ b/sdk/constructive-react/src/agent/hooks/mutations/useCreatePlatformAgentResourceChunkMutation.ts @@ -0,0 +1,97 @@ +/** + * Create mutation hook for PlatformAgentResourceChunk + * @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 { platformAgentResourceChunkKeys } from '../query-keys'; +import { platformAgentResourceChunkMutationKeys } from '../mutation-keys'; +import type { + PlatformAgentResourceChunkSelect, + PlatformAgentResourceChunkWithRelations, + CreatePlatformAgentResourceChunkInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformAgentResourceChunkSelect, + PlatformAgentResourceChunkWithRelations, + CreatePlatformAgentResourceChunkInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a PlatformAgentResourceChunk + * + * @example + * ```tsx + * const { mutate, isPending } = useCreatePlatformAgentResourceChunkMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreatePlatformAgentResourceChunkMutation< + S extends PlatformAgentResourceChunkSelect, +>( + params: { + selection: { + fields: S & PlatformAgentResourceChunkSelect; + } & HookStrictSelect, PlatformAgentResourceChunkSelect>; + } & Omit< + UseMutationOptions< + { + createPlatformAgentResourceChunk: { + platformAgentResourceChunk: InferSelectResult; + }; + }, + Error, + CreatePlatformAgentResourceChunkInput['platformAgentResourceChunk'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createPlatformAgentResourceChunk: { + platformAgentResourceChunk: InferSelectResult; + }; + }, + Error, + CreatePlatformAgentResourceChunkInput['platformAgentResourceChunk'] +>; +export function useCreatePlatformAgentResourceChunkMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + CreatePlatformAgentResourceChunkInput['platformAgentResourceChunk'] + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformAgentResourceChunkMutationKeys.create(), + mutationFn: (data: CreatePlatformAgentResourceChunkInput['platformAgentResourceChunk']) => + getClient() + .platformAgentResourceChunk.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: platformAgentResourceChunkKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/agent/hooks/mutations/useCreatePlatformAgentResourceMutation.ts b/sdk/constructive-react/src/agent/hooks/mutations/useCreatePlatformAgentResourceMutation.ts new file mode 100644 index 0000000000..a2c39dfbed --- /dev/null +++ b/sdk/constructive-react/src/agent/hooks/mutations/useCreatePlatformAgentResourceMutation.ts @@ -0,0 +1,91 @@ +/** + * Unified skills and knowledge resources for agent retrieval + * @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 { platformAgentResourceKeys } from '../query-keys'; +import { platformAgentResourceMutationKeys } from '../mutation-keys'; +import type { + PlatformAgentResourceSelect, + PlatformAgentResourceWithRelations, + CreatePlatformAgentResourceInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformAgentResourceSelect, + PlatformAgentResourceWithRelations, + CreatePlatformAgentResourceInput, +} from '../../orm/input-types'; +/** + * Unified skills and knowledge resources for agent retrieval + * + * @example + * ```tsx + * const { mutate, isPending } = useCreatePlatformAgentResourceMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreatePlatformAgentResourceMutation( + params: { + selection: { + fields: S & PlatformAgentResourceSelect; + } & HookStrictSelect, PlatformAgentResourceSelect>; + } & Omit< + UseMutationOptions< + { + createPlatformAgentResource: { + platformAgentResource: InferSelectResult; + }; + }, + Error, + CreatePlatformAgentResourceInput['platformAgentResource'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createPlatformAgentResource: { + platformAgentResource: InferSelectResult; + }; + }, + Error, + CreatePlatformAgentResourceInput['platformAgentResource'] +>; +export function useCreatePlatformAgentResourceMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformAgentResourceMutationKeys.create(), + mutationFn: (data: CreatePlatformAgentResourceInput['platformAgentResource']) => + getClient() + .platformAgentResource.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: platformAgentResourceKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/agent/hooks/mutations/useCreatePlatformAgentRunMutation.ts b/sdk/constructive-react/src/agent/hooks/mutations/useCreatePlatformAgentRunMutation.ts new file mode 100644 index 0000000000..e4e33e71c5 --- /dev/null +++ b/sdk/constructive-react/src/agent/hooks/mutations/useCreatePlatformAgentRunMutation.ts @@ -0,0 +1,91 @@ +/** + * One supervised agent run of a thread: its placement, workspace, cursor and artifacts + * @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 { platformAgentRunKeys } from '../query-keys'; +import { platformAgentRunMutationKeys } from '../mutation-keys'; +import type { + PlatformAgentRunSelect, + PlatformAgentRunWithRelations, + CreatePlatformAgentRunInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformAgentRunSelect, + PlatformAgentRunWithRelations, + CreatePlatformAgentRunInput, +} from '../../orm/input-types'; +/** + * One supervised agent run of a thread: its placement, workspace, cursor and artifacts + * + * @example + * ```tsx + * const { mutate, isPending } = useCreatePlatformAgentRunMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreatePlatformAgentRunMutation( + params: { + selection: { + fields: S & PlatformAgentRunSelect; + } & HookStrictSelect, PlatformAgentRunSelect>; + } & Omit< + UseMutationOptions< + { + createPlatformAgentRun: { + platformAgentRun: InferSelectResult; + }; + }, + Error, + CreatePlatformAgentRunInput['platformAgentRun'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createPlatformAgentRun: { + platformAgentRun: InferSelectResult; + }; + }, + Error, + CreatePlatformAgentRunInput['platformAgentRun'] +>; +export function useCreatePlatformAgentRunMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformAgentRunMutationKeys.create(), + mutationFn: (data: CreatePlatformAgentRunInput['platformAgentRun']) => + getClient() + .platformAgentRun.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: platformAgentRunKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/agent/hooks/mutations/useCreatePlatformAgentRunWorkspaceMutation.ts b/sdk/constructive-react/src/agent/hooks/mutations/useCreatePlatformAgentRunWorkspaceMutation.ts new file mode 100644 index 0000000000..cf17483a01 --- /dev/null +++ b/sdk/constructive-react/src/agent/hooks/mutations/useCreatePlatformAgentRunWorkspaceMutation.ts @@ -0,0 +1,97 @@ +/** + * One repository an agent run works in: its remote, branch, commits and how the work is published + * @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 { platformAgentRunWorkspaceKeys } from '../query-keys'; +import { platformAgentRunWorkspaceMutationKeys } from '../mutation-keys'; +import type { + PlatformAgentRunWorkspaceSelect, + PlatformAgentRunWorkspaceWithRelations, + CreatePlatformAgentRunWorkspaceInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformAgentRunWorkspaceSelect, + PlatformAgentRunWorkspaceWithRelations, + CreatePlatformAgentRunWorkspaceInput, +} from '../../orm/input-types'; +/** + * One repository an agent run works in: its remote, branch, commits and how the work is published + * + * @example + * ```tsx + * const { mutate, isPending } = useCreatePlatformAgentRunWorkspaceMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreatePlatformAgentRunWorkspaceMutation< + S extends PlatformAgentRunWorkspaceSelect, +>( + params: { + selection: { + fields: S & PlatformAgentRunWorkspaceSelect; + } & HookStrictSelect, PlatformAgentRunWorkspaceSelect>; + } & Omit< + UseMutationOptions< + { + createPlatformAgentRunWorkspace: { + platformAgentRunWorkspace: InferSelectResult; + }; + }, + Error, + CreatePlatformAgentRunWorkspaceInput['platformAgentRunWorkspace'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createPlatformAgentRunWorkspace: { + platformAgentRunWorkspace: InferSelectResult; + }; + }, + Error, + CreatePlatformAgentRunWorkspaceInput['platformAgentRunWorkspace'] +>; +export function useCreatePlatformAgentRunWorkspaceMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + CreatePlatformAgentRunWorkspaceInput['platformAgentRunWorkspace'] + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformAgentRunWorkspaceMutationKeys.create(), + mutationFn: (data: CreatePlatformAgentRunWorkspaceInput['platformAgentRunWorkspace']) => + getClient() + .platformAgentRunWorkspace.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: platformAgentRunWorkspaceKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/agent/hooks/mutations/useCreatePlatformAgentTaskMutation.ts b/sdk/constructive-react/src/agent/hooks/mutations/useCreatePlatformAgentTaskMutation.ts new file mode 100644 index 0000000000..9eddb5e718 --- /dev/null +++ b/sdk/constructive-react/src/agent/hooks/mutations/useCreatePlatformAgentTaskMutation.ts @@ -0,0 +1,91 @@ +/** + * Task within a plan, with ordering and optional approval gates + * @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 { platformAgentTaskKeys } from '../query-keys'; +import { platformAgentTaskMutationKeys } from '../mutation-keys'; +import type { + PlatformAgentTaskSelect, + PlatformAgentTaskWithRelations, + CreatePlatformAgentTaskInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformAgentTaskSelect, + PlatformAgentTaskWithRelations, + CreatePlatformAgentTaskInput, +} from '../../orm/input-types'; +/** + * Task within a plan, with ordering and optional approval gates + * + * @example + * ```tsx + * const { mutate, isPending } = useCreatePlatformAgentTaskMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreatePlatformAgentTaskMutation( + params: { + selection: { + fields: S & PlatformAgentTaskSelect; + } & HookStrictSelect, PlatformAgentTaskSelect>; + } & Omit< + UseMutationOptions< + { + createPlatformAgentTask: { + platformAgentTask: InferSelectResult; + }; + }, + Error, + CreatePlatformAgentTaskInput['platformAgentTask'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createPlatformAgentTask: { + platformAgentTask: InferSelectResult; + }; + }, + Error, + CreatePlatformAgentTaskInput['platformAgentTask'] +>; +export function useCreatePlatformAgentTaskMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformAgentTaskMutationKeys.create(), + mutationFn: (data: CreatePlatformAgentTaskInput['platformAgentTask']) => + getClient() + .platformAgentTask.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: platformAgentTaskKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/agent/hooks/mutations/useCreatePlatformAgentThreadMutation.ts b/sdk/constructive-react/src/agent/hooks/mutations/useCreatePlatformAgentThreadMutation.ts new file mode 100644 index 0000000000..b706ce2448 --- /dev/null +++ b/sdk/constructive-react/src/agent/hooks/mutations/useCreatePlatformAgentThreadMutation.ts @@ -0,0 +1,91 @@ +/** + * Top-level AI/LLM conversation thread + * @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 { platformAgentThreadKeys } from '../query-keys'; +import { platformAgentThreadMutationKeys } from '../mutation-keys'; +import type { + PlatformAgentThreadSelect, + PlatformAgentThreadWithRelations, + CreatePlatformAgentThreadInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformAgentThreadSelect, + PlatformAgentThreadWithRelations, + CreatePlatformAgentThreadInput, +} from '../../orm/input-types'; +/** + * Top-level AI/LLM conversation thread + * + * @example + * ```tsx + * const { mutate, isPending } = useCreatePlatformAgentThreadMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreatePlatformAgentThreadMutation( + params: { + selection: { + fields: S & PlatformAgentThreadSelect; + } & HookStrictSelect, PlatformAgentThreadSelect>; + } & Omit< + UseMutationOptions< + { + createPlatformAgentThread: { + platformAgentThread: InferSelectResult; + }; + }, + Error, + CreatePlatformAgentThreadInput['platformAgentThread'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createPlatformAgentThread: { + platformAgentThread: InferSelectResult; + }; + }, + Error, + CreatePlatformAgentThreadInput['platformAgentThread'] +>; +export function useCreatePlatformAgentThreadMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformAgentThreadMutationKeys.create(), + mutationFn: (data: CreatePlatformAgentThreadInput['platformAgentThread']) => + getClient() + .platformAgentThread.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: platformAgentThreadKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/agent/hooks/mutations/useDeletePlatformAgentEventMutation.ts b/sdk/constructive-react/src/agent/hooks/mutations/useDeletePlatformAgentEventMutation.ts new file mode 100644 index 0000000000..03444c00f0 --- /dev/null +++ b/sdk/constructive-react/src/agent/hooks/mutations/useDeletePlatformAgentEventMutation.ts @@ -0,0 +1,104 @@ +/** + * Append-only transcript of an agent run: one agent session entry per row, stored verbatim + * @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 { platformAgentEventKeys } from '../query-keys'; +import { platformAgentEventMutationKeys } from '../mutation-keys'; +import type { + PlatformAgentEventSelect, + PlatformAgentEventWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformAgentEventSelect, + PlatformAgentEventWithRelations, +} from '../../orm/input-types'; +/** + * Append-only transcript of an agent run: one agent session entry per row, stored verbatim + * + * @example + * ```tsx + * const { mutate, isPending } = useDeletePlatformAgentEventMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeletePlatformAgentEventMutation( + params: { + selection: { + fields: S & PlatformAgentEventSelect; + } & HookStrictSelect, PlatformAgentEventSelect>; + } & Omit< + UseMutationOptions< + { + deletePlatformAgentEvent: { + platformAgentEvent: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deletePlatformAgentEvent: { + platformAgentEvent: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeletePlatformAgentEventMutation( + 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: platformAgentEventMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .platformAgentEvent.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: platformAgentEventKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformAgentEventKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/agent/hooks/mutations/useDeletePlatformAgentMessageMutation.ts b/sdk/constructive-react/src/agent/hooks/mutations/useDeletePlatformAgentMessageMutation.ts new file mode 100644 index 0000000000..43e01c0ed4 --- /dev/null +++ b/sdk/constructive-react/src/agent/hooks/mutations/useDeletePlatformAgentMessageMutation.ts @@ -0,0 +1,104 @@ +/** + * Message within an agent thread with TextPart/ToolPart jsonb parts + * @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 { platformAgentMessageKeys } from '../query-keys'; +import { platformAgentMessageMutationKeys } from '../mutation-keys'; +import type { + PlatformAgentMessageSelect, + PlatformAgentMessageWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformAgentMessageSelect, + PlatformAgentMessageWithRelations, +} from '../../orm/input-types'; +/** + * Message within an agent thread with TextPart/ToolPart jsonb parts + * + * @example + * ```tsx + * const { mutate, isPending } = useDeletePlatformAgentMessageMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeletePlatformAgentMessageMutation( + params: { + selection: { + fields: S & PlatformAgentMessageSelect; + } & HookStrictSelect, PlatformAgentMessageSelect>; + } & Omit< + UseMutationOptions< + { + deletePlatformAgentMessage: { + platformAgentMessage: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deletePlatformAgentMessage: { + platformAgentMessage: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeletePlatformAgentMessageMutation( + 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: platformAgentMessageMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .platformAgentMessage.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: platformAgentMessageKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformAgentMessageKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/agent/hooks/mutations/useDeletePlatformAgentMutation.ts b/sdk/constructive-react/src/agent/hooks/mutations/useDeletePlatformAgentMutation.ts new file mode 100644 index 0000000000..15302ffe6d --- /dev/null +++ b/sdk/constructive-react/src/agent/hooks/mutations/useDeletePlatformAgentMutation.ts @@ -0,0 +1,98 @@ +/** + * Agent instance registry (human-managed or ephemeral sub-agents) + * @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 { platformAgentKeys } from '../query-keys'; +import { platformAgentMutationKeys } from '../mutation-keys'; +import type { PlatformAgentSelect, PlatformAgentWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { PlatformAgentSelect, PlatformAgentWithRelations } from '../../orm/input-types'; +/** + * Agent instance registry (human-managed or ephemeral sub-agents) + * + * @example + * ```tsx + * const { mutate, isPending } = useDeletePlatformAgentMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeletePlatformAgentMutation( + params: { + selection: { + fields: S & PlatformAgentSelect; + } & HookStrictSelect, PlatformAgentSelect>; + } & Omit< + UseMutationOptions< + { + deletePlatformAgent: { + platformAgent: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deletePlatformAgent: { + platformAgent: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeletePlatformAgentMutation( + 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: platformAgentMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .platformAgent.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: platformAgentKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformAgentKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/agent/hooks/mutations/useDeletePlatformAgentPersonaMutation.ts b/sdk/constructive-react/src/agent/hooks/mutations/useDeletePlatformAgentPersonaMutation.ts new file mode 100644 index 0000000000..1d3633c217 --- /dev/null +++ b/sdk/constructive-react/src/agent/hooks/mutations/useDeletePlatformAgentPersonaMutation.ts @@ -0,0 +1,104 @@ +/** + * Agent persona templates (role, system prompt, default skills/knowledge) + * @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 { platformAgentPersonaKeys } from '../query-keys'; +import { platformAgentPersonaMutationKeys } from '../mutation-keys'; +import type { + PlatformAgentPersonaSelect, + PlatformAgentPersonaWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformAgentPersonaSelect, + PlatformAgentPersonaWithRelations, +} from '../../orm/input-types'; +/** + * Agent persona templates (role, system prompt, default skills/knowledge) + * + * @example + * ```tsx + * const { mutate, isPending } = useDeletePlatformAgentPersonaMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeletePlatformAgentPersonaMutation( + params: { + selection: { + fields: S & PlatformAgentPersonaSelect; + } & HookStrictSelect, PlatformAgentPersonaSelect>; + } & Omit< + UseMutationOptions< + { + deletePlatformAgentPersona: { + platformAgentPersona: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deletePlatformAgentPersona: { + platformAgentPersona: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeletePlatformAgentPersonaMutation( + 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: platformAgentPersonaMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .platformAgentPersona.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: platformAgentPersonaKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformAgentPersonaKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/agent/hooks/mutations/useDeletePlatformAgentPlanMutation.ts b/sdk/constructive-react/src/agent/hooks/mutations/useDeletePlatformAgentPlanMutation.ts new file mode 100644 index 0000000000..ed5fa989d8 --- /dev/null +++ b/sdk/constructive-react/src/agent/hooks/mutations/useDeletePlatformAgentPlanMutation.ts @@ -0,0 +1,104 @@ +/** + * Workflow plan attached to an agent thread with ordered tasks and optional approval gates + * @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 { platformAgentPlanKeys } from '../query-keys'; +import { platformAgentPlanMutationKeys } from '../mutation-keys'; +import type { + PlatformAgentPlanSelect, + PlatformAgentPlanWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformAgentPlanSelect, + PlatformAgentPlanWithRelations, +} from '../../orm/input-types'; +/** + * Workflow plan attached to an agent thread with ordered tasks and optional approval gates + * + * @example + * ```tsx + * const { mutate, isPending } = useDeletePlatformAgentPlanMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeletePlatformAgentPlanMutation( + params: { + selection: { + fields: S & PlatformAgentPlanSelect; + } & HookStrictSelect, PlatformAgentPlanSelect>; + } & Omit< + UseMutationOptions< + { + deletePlatformAgentPlan: { + platformAgentPlan: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deletePlatformAgentPlan: { + platformAgentPlan: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeletePlatformAgentPlanMutation( + 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: platformAgentPlanMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .platformAgentPlan.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: platformAgentPlanKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformAgentPlanKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/agent/hooks/mutations/useDeletePlatformAgentPromptMutation.ts b/sdk/constructive-react/src/agent/hooks/mutations/useDeletePlatformAgentPromptMutation.ts new file mode 100644 index 0000000000..b3bf5e5713 --- /dev/null +++ b/sdk/constructive-react/src/agent/hooks/mutations/useDeletePlatformAgentPromptMutation.ts @@ -0,0 +1,104 @@ +/** + * Shared system prompt templates for agent conversations + * @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 { platformAgentPromptKeys } from '../query-keys'; +import { platformAgentPromptMutationKeys } from '../mutation-keys'; +import type { + PlatformAgentPromptSelect, + PlatformAgentPromptWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformAgentPromptSelect, + PlatformAgentPromptWithRelations, +} from '../../orm/input-types'; +/** + * Shared system prompt templates for agent conversations + * + * @example + * ```tsx + * const { mutate, isPending } = useDeletePlatformAgentPromptMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeletePlatformAgentPromptMutation( + params: { + selection: { + fields: S & PlatformAgentPromptSelect; + } & HookStrictSelect, PlatformAgentPromptSelect>; + } & Omit< + UseMutationOptions< + { + deletePlatformAgentPrompt: { + platformAgentPrompt: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deletePlatformAgentPrompt: { + platformAgentPrompt: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeletePlatformAgentPromptMutation( + 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: platformAgentPromptMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .platformAgentPrompt.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: platformAgentPromptKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformAgentPromptKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/agent/hooks/mutations/useDeletePlatformAgentResourceChunkMutation.ts b/sdk/constructive-react/src/agent/hooks/mutations/useDeletePlatformAgentResourceChunkMutation.ts new file mode 100644 index 0000000000..504d9aecdf --- /dev/null +++ b/sdk/constructive-react/src/agent/hooks/mutations/useDeletePlatformAgentResourceChunkMutation.ts @@ -0,0 +1,106 @@ +/** + * Delete mutation hook for PlatformAgentResourceChunk + * @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 { platformAgentResourceChunkKeys } from '../query-keys'; +import { platformAgentResourceChunkMutationKeys } from '../mutation-keys'; +import type { + PlatformAgentResourceChunkSelect, + PlatformAgentResourceChunkWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformAgentResourceChunkSelect, + PlatformAgentResourceChunkWithRelations, +} from '../../orm/input-types'; +/** + * Mutation hook for deleting a PlatformAgentResourceChunk with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeletePlatformAgentResourceChunkMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeletePlatformAgentResourceChunkMutation< + S extends PlatformAgentResourceChunkSelect, +>( + params: { + selection: { + fields: S & PlatformAgentResourceChunkSelect; + } & HookStrictSelect, PlatformAgentResourceChunkSelect>; + } & Omit< + UseMutationOptions< + { + deletePlatformAgentResourceChunk: { + platformAgentResourceChunk: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deletePlatformAgentResourceChunk: { + platformAgentResourceChunk: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeletePlatformAgentResourceChunkMutation( + 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: platformAgentResourceChunkMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .platformAgentResourceChunk.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: platformAgentResourceChunkKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformAgentResourceChunkKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/agent/hooks/mutations/useDeletePlatformAgentResourceMutation.ts b/sdk/constructive-react/src/agent/hooks/mutations/useDeletePlatformAgentResourceMutation.ts new file mode 100644 index 0000000000..ecbf66b14a --- /dev/null +++ b/sdk/constructive-react/src/agent/hooks/mutations/useDeletePlatformAgentResourceMutation.ts @@ -0,0 +1,104 @@ +/** + * Unified skills and knowledge resources for agent retrieval + * @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 { platformAgentResourceKeys } from '../query-keys'; +import { platformAgentResourceMutationKeys } from '../mutation-keys'; +import type { + PlatformAgentResourceSelect, + PlatformAgentResourceWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformAgentResourceSelect, + PlatformAgentResourceWithRelations, +} from '../../orm/input-types'; +/** + * Unified skills and knowledge resources for agent retrieval + * + * @example + * ```tsx + * const { mutate, isPending } = useDeletePlatformAgentResourceMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeletePlatformAgentResourceMutation( + params: { + selection: { + fields: S & PlatformAgentResourceSelect; + } & HookStrictSelect, PlatformAgentResourceSelect>; + } & Omit< + UseMutationOptions< + { + deletePlatformAgentResource: { + platformAgentResource: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deletePlatformAgentResource: { + platformAgentResource: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeletePlatformAgentResourceMutation( + 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: platformAgentResourceMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .platformAgentResource.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: platformAgentResourceKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformAgentResourceKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/agent/hooks/mutations/useDeletePlatformAgentRunMutation.ts b/sdk/constructive-react/src/agent/hooks/mutations/useDeletePlatformAgentRunMutation.ts new file mode 100644 index 0000000000..aa1fde68f4 --- /dev/null +++ b/sdk/constructive-react/src/agent/hooks/mutations/useDeletePlatformAgentRunMutation.ts @@ -0,0 +1,98 @@ +/** + * One supervised agent run of a thread: its placement, workspace, cursor and artifacts + * @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 { platformAgentRunKeys } from '../query-keys'; +import { platformAgentRunMutationKeys } from '../mutation-keys'; +import type { PlatformAgentRunSelect, PlatformAgentRunWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { PlatformAgentRunSelect, PlatformAgentRunWithRelations } from '../../orm/input-types'; +/** + * One supervised agent run of a thread: its placement, workspace, cursor and artifacts + * + * @example + * ```tsx + * const { mutate, isPending } = useDeletePlatformAgentRunMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeletePlatformAgentRunMutation( + params: { + selection: { + fields: S & PlatformAgentRunSelect; + } & HookStrictSelect, PlatformAgentRunSelect>; + } & Omit< + UseMutationOptions< + { + deletePlatformAgentRun: { + platformAgentRun: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deletePlatformAgentRun: { + platformAgentRun: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeletePlatformAgentRunMutation( + 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: platformAgentRunMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .platformAgentRun.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: platformAgentRunKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformAgentRunKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/agent/hooks/mutations/useDeletePlatformAgentRunWorkspaceMutation.ts b/sdk/constructive-react/src/agent/hooks/mutations/useDeletePlatformAgentRunWorkspaceMutation.ts new file mode 100644 index 0000000000..2f15aea554 --- /dev/null +++ b/sdk/constructive-react/src/agent/hooks/mutations/useDeletePlatformAgentRunWorkspaceMutation.ts @@ -0,0 +1,106 @@ +/** + * One repository an agent run works in: its remote, branch, commits and how the work is published + * @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 { platformAgentRunWorkspaceKeys } from '../query-keys'; +import { platformAgentRunWorkspaceMutationKeys } from '../mutation-keys'; +import type { + PlatformAgentRunWorkspaceSelect, + PlatformAgentRunWorkspaceWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformAgentRunWorkspaceSelect, + PlatformAgentRunWorkspaceWithRelations, +} from '../../orm/input-types'; +/** + * One repository an agent run works in: its remote, branch, commits and how the work is published + * + * @example + * ```tsx + * const { mutate, isPending } = useDeletePlatformAgentRunWorkspaceMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeletePlatformAgentRunWorkspaceMutation< + S extends PlatformAgentRunWorkspaceSelect, +>( + params: { + selection: { + fields: S & PlatformAgentRunWorkspaceSelect; + } & HookStrictSelect, PlatformAgentRunWorkspaceSelect>; + } & Omit< + UseMutationOptions< + { + deletePlatformAgentRunWorkspace: { + platformAgentRunWorkspace: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deletePlatformAgentRunWorkspace: { + platformAgentRunWorkspace: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeletePlatformAgentRunWorkspaceMutation( + 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: platformAgentRunWorkspaceMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .platformAgentRunWorkspace.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: platformAgentRunWorkspaceKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformAgentRunWorkspaceKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/agent/hooks/mutations/useDeletePlatformAgentTaskMutation.ts b/sdk/constructive-react/src/agent/hooks/mutations/useDeletePlatformAgentTaskMutation.ts new file mode 100644 index 0000000000..1d28de81b4 --- /dev/null +++ b/sdk/constructive-react/src/agent/hooks/mutations/useDeletePlatformAgentTaskMutation.ts @@ -0,0 +1,104 @@ +/** + * Task within a plan, with ordering and optional approval gates + * @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 { platformAgentTaskKeys } from '../query-keys'; +import { platformAgentTaskMutationKeys } from '../mutation-keys'; +import type { + PlatformAgentTaskSelect, + PlatformAgentTaskWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformAgentTaskSelect, + PlatformAgentTaskWithRelations, +} from '../../orm/input-types'; +/** + * Task within a plan, with ordering and optional approval gates + * + * @example + * ```tsx + * const { mutate, isPending } = useDeletePlatformAgentTaskMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeletePlatformAgentTaskMutation( + params: { + selection: { + fields: S & PlatformAgentTaskSelect; + } & HookStrictSelect, PlatformAgentTaskSelect>; + } & Omit< + UseMutationOptions< + { + deletePlatformAgentTask: { + platformAgentTask: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deletePlatformAgentTask: { + platformAgentTask: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeletePlatformAgentTaskMutation( + 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: platformAgentTaskMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .platformAgentTask.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: platformAgentTaskKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformAgentTaskKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/agent/hooks/mutations/useDeletePlatformAgentThreadMutation.ts b/sdk/constructive-react/src/agent/hooks/mutations/useDeletePlatformAgentThreadMutation.ts new file mode 100644 index 0000000000..964bfc201e --- /dev/null +++ b/sdk/constructive-react/src/agent/hooks/mutations/useDeletePlatformAgentThreadMutation.ts @@ -0,0 +1,104 @@ +/** + * Top-level AI/LLM conversation thread + * @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 { platformAgentThreadKeys } from '../query-keys'; +import { platformAgentThreadMutationKeys } from '../mutation-keys'; +import type { + PlatformAgentThreadSelect, + PlatformAgentThreadWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformAgentThreadSelect, + PlatformAgentThreadWithRelations, +} from '../../orm/input-types'; +/** + * Top-level AI/LLM conversation thread + * + * @example + * ```tsx + * const { mutate, isPending } = useDeletePlatformAgentThreadMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeletePlatformAgentThreadMutation( + params: { + selection: { + fields: S & PlatformAgentThreadSelect; + } & HookStrictSelect, PlatformAgentThreadSelect>; + } & Omit< + UseMutationOptions< + { + deletePlatformAgentThread: { + platformAgentThread: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deletePlatformAgentThread: { + platformAgentThread: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeletePlatformAgentThreadMutation( + 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: platformAgentThreadMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .platformAgentThread.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: platformAgentThreadKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformAgentThreadKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/agent/hooks/mutations/useUpdatePlatformAgentEventMutation.ts b/sdk/constructive-react/src/agent/hooks/mutations/useUpdatePlatformAgentEventMutation.ts new file mode 100644 index 0000000000..e960fec20b --- /dev/null +++ b/sdk/constructive-react/src/agent/hooks/mutations/useUpdatePlatformAgentEventMutation.ts @@ -0,0 +1,116 @@ +/** + * Append-only transcript of an agent run: one agent session entry per row, stored verbatim + * @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 { platformAgentEventKeys } from '../query-keys'; +import { platformAgentEventMutationKeys } from '../mutation-keys'; +import type { + PlatformAgentEventSelect, + PlatformAgentEventWithRelations, + PlatformAgentEventPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformAgentEventSelect, + PlatformAgentEventWithRelations, + PlatformAgentEventPatch, +} from '../../orm/input-types'; +/** + * Append-only transcript of an agent run: one agent session entry per row, stored verbatim + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdatePlatformAgentEventMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', platformAgentEventPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdatePlatformAgentEventMutation( + params: { + selection: { + fields: S & PlatformAgentEventSelect; + } & HookStrictSelect, PlatformAgentEventSelect>; + } & Omit< + UseMutationOptions< + { + updatePlatformAgentEvent: { + platformAgentEvent: InferSelectResult; + }; + }, + Error, + { + id: string; + platformAgentEventPatch: PlatformAgentEventPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updatePlatformAgentEvent: { + platformAgentEvent: InferSelectResult; + }; + }, + Error, + { + id: string; + platformAgentEventPatch: PlatformAgentEventPatch; + } +>; +export function useUpdatePlatformAgentEventMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + platformAgentEventPatch: PlatformAgentEventPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformAgentEventMutationKeys.all, + mutationFn: ({ + id, + platformAgentEventPatch, + }: { + id: string; + platformAgentEventPatch: PlatformAgentEventPatch; + }) => + getClient() + .platformAgentEvent.update({ + where: { + id, + }, + data: platformAgentEventPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: platformAgentEventKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformAgentEventKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/agent/hooks/mutations/useUpdatePlatformAgentMessageMutation.ts b/sdk/constructive-react/src/agent/hooks/mutations/useUpdatePlatformAgentMessageMutation.ts new file mode 100644 index 0000000000..1827ce5c92 --- /dev/null +++ b/sdk/constructive-react/src/agent/hooks/mutations/useUpdatePlatformAgentMessageMutation.ts @@ -0,0 +1,116 @@ +/** + * Message within an agent thread with TextPart/ToolPart jsonb parts + * @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 { platformAgentMessageKeys } from '../query-keys'; +import { platformAgentMessageMutationKeys } from '../mutation-keys'; +import type { + PlatformAgentMessageSelect, + PlatformAgentMessageWithRelations, + PlatformAgentMessagePatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformAgentMessageSelect, + PlatformAgentMessageWithRelations, + PlatformAgentMessagePatch, +} from '../../orm/input-types'; +/** + * Message within an agent thread with TextPart/ToolPart jsonb parts + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdatePlatformAgentMessageMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', platformAgentMessagePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdatePlatformAgentMessageMutation( + params: { + selection: { + fields: S & PlatformAgentMessageSelect; + } & HookStrictSelect, PlatformAgentMessageSelect>; + } & Omit< + UseMutationOptions< + { + updatePlatformAgentMessage: { + platformAgentMessage: InferSelectResult; + }; + }, + Error, + { + id: string; + platformAgentMessagePatch: PlatformAgentMessagePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updatePlatformAgentMessage: { + platformAgentMessage: InferSelectResult; + }; + }, + Error, + { + id: string; + platformAgentMessagePatch: PlatformAgentMessagePatch; + } +>; +export function useUpdatePlatformAgentMessageMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + platformAgentMessagePatch: PlatformAgentMessagePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformAgentMessageMutationKeys.all, + mutationFn: ({ + id, + platformAgentMessagePatch, + }: { + id: string; + platformAgentMessagePatch: PlatformAgentMessagePatch; + }) => + getClient() + .platformAgentMessage.update({ + where: { + id, + }, + data: platformAgentMessagePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: platformAgentMessageKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformAgentMessageKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/agent/hooks/mutations/useUpdatePlatformAgentMutation.ts b/sdk/constructive-react/src/agent/hooks/mutations/useUpdatePlatformAgentMutation.ts new file mode 100644 index 0000000000..d85e39983b --- /dev/null +++ b/sdk/constructive-react/src/agent/hooks/mutations/useUpdatePlatformAgentMutation.ts @@ -0,0 +1,116 @@ +/** + * Agent instance registry (human-managed or ephemeral sub-agents) + * @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 { platformAgentKeys } from '../query-keys'; +import { platformAgentMutationKeys } from '../mutation-keys'; +import type { + PlatformAgentSelect, + PlatformAgentWithRelations, + PlatformAgentPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformAgentSelect, + PlatformAgentWithRelations, + PlatformAgentPatch, +} from '../../orm/input-types'; +/** + * Agent instance registry (human-managed or ephemeral sub-agents) + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdatePlatformAgentMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', platformAgentPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdatePlatformAgentMutation( + params: { + selection: { + fields: S & PlatformAgentSelect; + } & HookStrictSelect, PlatformAgentSelect>; + } & Omit< + UseMutationOptions< + { + updatePlatformAgent: { + platformAgent: InferSelectResult; + }; + }, + Error, + { + id: string; + platformAgentPatch: PlatformAgentPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updatePlatformAgent: { + platformAgent: InferSelectResult; + }; + }, + Error, + { + id: string; + platformAgentPatch: PlatformAgentPatch; + } +>; +export function useUpdatePlatformAgentMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + platformAgentPatch: PlatformAgentPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformAgentMutationKeys.all, + mutationFn: ({ + id, + platformAgentPatch, + }: { + id: string; + platformAgentPatch: PlatformAgentPatch; + }) => + getClient() + .platformAgent.update({ + where: { + id, + }, + data: platformAgentPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: platformAgentKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformAgentKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/agent/hooks/mutations/useUpdatePlatformAgentPersonaMutation.ts b/sdk/constructive-react/src/agent/hooks/mutations/useUpdatePlatformAgentPersonaMutation.ts new file mode 100644 index 0000000000..97fd0b5dbd --- /dev/null +++ b/sdk/constructive-react/src/agent/hooks/mutations/useUpdatePlatformAgentPersonaMutation.ts @@ -0,0 +1,116 @@ +/** + * Agent persona templates (role, system prompt, default skills/knowledge) + * @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 { platformAgentPersonaKeys } from '../query-keys'; +import { platformAgentPersonaMutationKeys } from '../mutation-keys'; +import type { + PlatformAgentPersonaSelect, + PlatformAgentPersonaWithRelations, + PlatformAgentPersonaPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformAgentPersonaSelect, + PlatformAgentPersonaWithRelations, + PlatformAgentPersonaPatch, +} from '../../orm/input-types'; +/** + * Agent persona templates (role, system prompt, default skills/knowledge) + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdatePlatformAgentPersonaMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', platformAgentPersonaPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdatePlatformAgentPersonaMutation( + params: { + selection: { + fields: S & PlatformAgentPersonaSelect; + } & HookStrictSelect, PlatformAgentPersonaSelect>; + } & Omit< + UseMutationOptions< + { + updatePlatformAgentPersona: { + platformAgentPersona: InferSelectResult; + }; + }, + Error, + { + id: string; + platformAgentPersonaPatch: PlatformAgentPersonaPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updatePlatformAgentPersona: { + platformAgentPersona: InferSelectResult; + }; + }, + Error, + { + id: string; + platformAgentPersonaPatch: PlatformAgentPersonaPatch; + } +>; +export function useUpdatePlatformAgentPersonaMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + platformAgentPersonaPatch: PlatformAgentPersonaPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformAgentPersonaMutationKeys.all, + mutationFn: ({ + id, + platformAgentPersonaPatch, + }: { + id: string; + platformAgentPersonaPatch: PlatformAgentPersonaPatch; + }) => + getClient() + .platformAgentPersona.update({ + where: { + id, + }, + data: platformAgentPersonaPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: platformAgentPersonaKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformAgentPersonaKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/agent/hooks/mutations/useUpdatePlatformAgentPlanMutation.ts b/sdk/constructive-react/src/agent/hooks/mutations/useUpdatePlatformAgentPlanMutation.ts new file mode 100644 index 0000000000..d99cc43949 --- /dev/null +++ b/sdk/constructive-react/src/agent/hooks/mutations/useUpdatePlatformAgentPlanMutation.ts @@ -0,0 +1,116 @@ +/** + * Workflow plan attached to an agent thread with ordered tasks and optional approval gates + * @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 { platformAgentPlanKeys } from '../query-keys'; +import { platformAgentPlanMutationKeys } from '../mutation-keys'; +import type { + PlatformAgentPlanSelect, + PlatformAgentPlanWithRelations, + PlatformAgentPlanPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformAgentPlanSelect, + PlatformAgentPlanWithRelations, + PlatformAgentPlanPatch, +} from '../../orm/input-types'; +/** + * Workflow plan attached to an agent thread with ordered tasks and optional approval gates + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdatePlatformAgentPlanMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', platformAgentPlanPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdatePlatformAgentPlanMutation( + params: { + selection: { + fields: S & PlatformAgentPlanSelect; + } & HookStrictSelect, PlatformAgentPlanSelect>; + } & Omit< + UseMutationOptions< + { + updatePlatformAgentPlan: { + platformAgentPlan: InferSelectResult; + }; + }, + Error, + { + id: string; + platformAgentPlanPatch: PlatformAgentPlanPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updatePlatformAgentPlan: { + platformAgentPlan: InferSelectResult; + }; + }, + Error, + { + id: string; + platformAgentPlanPatch: PlatformAgentPlanPatch; + } +>; +export function useUpdatePlatformAgentPlanMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + platformAgentPlanPatch: PlatformAgentPlanPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformAgentPlanMutationKeys.all, + mutationFn: ({ + id, + platformAgentPlanPatch, + }: { + id: string; + platformAgentPlanPatch: PlatformAgentPlanPatch; + }) => + getClient() + .platformAgentPlan.update({ + where: { + id, + }, + data: platformAgentPlanPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: platformAgentPlanKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformAgentPlanKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/agent/hooks/mutations/useUpdatePlatformAgentPromptMutation.ts b/sdk/constructive-react/src/agent/hooks/mutations/useUpdatePlatformAgentPromptMutation.ts new file mode 100644 index 0000000000..b2b02942d0 --- /dev/null +++ b/sdk/constructive-react/src/agent/hooks/mutations/useUpdatePlatformAgentPromptMutation.ts @@ -0,0 +1,116 @@ +/** + * Shared system prompt templates for agent conversations + * @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 { platformAgentPromptKeys } from '../query-keys'; +import { platformAgentPromptMutationKeys } from '../mutation-keys'; +import type { + PlatformAgentPromptSelect, + PlatformAgentPromptWithRelations, + PlatformAgentPromptPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformAgentPromptSelect, + PlatformAgentPromptWithRelations, + PlatformAgentPromptPatch, +} from '../../orm/input-types'; +/** + * Shared system prompt templates for agent conversations + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdatePlatformAgentPromptMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', platformAgentPromptPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdatePlatformAgentPromptMutation( + params: { + selection: { + fields: S & PlatformAgentPromptSelect; + } & HookStrictSelect, PlatformAgentPromptSelect>; + } & Omit< + UseMutationOptions< + { + updatePlatformAgentPrompt: { + platformAgentPrompt: InferSelectResult; + }; + }, + Error, + { + id: string; + platformAgentPromptPatch: PlatformAgentPromptPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updatePlatformAgentPrompt: { + platformAgentPrompt: InferSelectResult; + }; + }, + Error, + { + id: string; + platformAgentPromptPatch: PlatformAgentPromptPatch; + } +>; +export function useUpdatePlatformAgentPromptMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + platformAgentPromptPatch: PlatformAgentPromptPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformAgentPromptMutationKeys.all, + mutationFn: ({ + id, + platformAgentPromptPatch, + }: { + id: string; + platformAgentPromptPatch: PlatformAgentPromptPatch; + }) => + getClient() + .platformAgentPrompt.update({ + where: { + id, + }, + data: platformAgentPromptPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: platformAgentPromptKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformAgentPromptKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/agent/hooks/mutations/useUpdatePlatformAgentResourceChunkMutation.ts b/sdk/constructive-react/src/agent/hooks/mutations/useUpdatePlatformAgentResourceChunkMutation.ts new file mode 100644 index 0000000000..4c0a24ac2a --- /dev/null +++ b/sdk/constructive-react/src/agent/hooks/mutations/useUpdatePlatformAgentResourceChunkMutation.ts @@ -0,0 +1,118 @@ +/** + * Update mutation hook for PlatformAgentResourceChunk + * @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 { platformAgentResourceChunkKeys } from '../query-keys'; +import { platformAgentResourceChunkMutationKeys } from '../mutation-keys'; +import type { + PlatformAgentResourceChunkSelect, + PlatformAgentResourceChunkWithRelations, + PlatformAgentResourceChunkPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformAgentResourceChunkSelect, + PlatformAgentResourceChunkWithRelations, + PlatformAgentResourceChunkPatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a PlatformAgentResourceChunk + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdatePlatformAgentResourceChunkMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', platformAgentResourceChunkPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdatePlatformAgentResourceChunkMutation< + S extends PlatformAgentResourceChunkSelect, +>( + params: { + selection: { + fields: S & PlatformAgentResourceChunkSelect; + } & HookStrictSelect, PlatformAgentResourceChunkSelect>; + } & Omit< + UseMutationOptions< + { + updatePlatformAgentResourceChunk: { + platformAgentResourceChunk: InferSelectResult; + }; + }, + Error, + { + id: string; + platformAgentResourceChunkPatch: PlatformAgentResourceChunkPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updatePlatformAgentResourceChunk: { + platformAgentResourceChunk: InferSelectResult; + }; + }, + Error, + { + id: string; + platformAgentResourceChunkPatch: PlatformAgentResourceChunkPatch; + } +>; +export function useUpdatePlatformAgentResourceChunkMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + platformAgentResourceChunkPatch: PlatformAgentResourceChunkPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformAgentResourceChunkMutationKeys.all, + mutationFn: ({ + id, + platformAgentResourceChunkPatch, + }: { + id: string; + platformAgentResourceChunkPatch: PlatformAgentResourceChunkPatch; + }) => + getClient() + .platformAgentResourceChunk.update({ + where: { + id, + }, + data: platformAgentResourceChunkPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: platformAgentResourceChunkKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformAgentResourceChunkKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/agent/hooks/mutations/useUpdatePlatformAgentResourceMutation.ts b/sdk/constructive-react/src/agent/hooks/mutations/useUpdatePlatformAgentResourceMutation.ts new file mode 100644 index 0000000000..3860257336 --- /dev/null +++ b/sdk/constructive-react/src/agent/hooks/mutations/useUpdatePlatformAgentResourceMutation.ts @@ -0,0 +1,116 @@ +/** + * Unified skills and knowledge resources for agent retrieval + * @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 { platformAgentResourceKeys } from '../query-keys'; +import { platformAgentResourceMutationKeys } from '../mutation-keys'; +import type { + PlatformAgentResourceSelect, + PlatformAgentResourceWithRelations, + PlatformAgentResourcePatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformAgentResourceSelect, + PlatformAgentResourceWithRelations, + PlatformAgentResourcePatch, +} from '../../orm/input-types'; +/** + * Unified skills and knowledge resources for agent retrieval + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdatePlatformAgentResourceMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', platformAgentResourcePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdatePlatformAgentResourceMutation( + params: { + selection: { + fields: S & PlatformAgentResourceSelect; + } & HookStrictSelect, PlatformAgentResourceSelect>; + } & Omit< + UseMutationOptions< + { + updatePlatformAgentResource: { + platformAgentResource: InferSelectResult; + }; + }, + Error, + { + id: string; + platformAgentResourcePatch: PlatformAgentResourcePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updatePlatformAgentResource: { + platformAgentResource: InferSelectResult; + }; + }, + Error, + { + id: string; + platformAgentResourcePatch: PlatformAgentResourcePatch; + } +>; +export function useUpdatePlatformAgentResourceMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + platformAgentResourcePatch: PlatformAgentResourcePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformAgentResourceMutationKeys.all, + mutationFn: ({ + id, + platformAgentResourcePatch, + }: { + id: string; + platformAgentResourcePatch: PlatformAgentResourcePatch; + }) => + getClient() + .platformAgentResource.update({ + where: { + id, + }, + data: platformAgentResourcePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: platformAgentResourceKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformAgentResourceKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/agent/hooks/mutations/useUpdatePlatformAgentRunMutation.ts b/sdk/constructive-react/src/agent/hooks/mutations/useUpdatePlatformAgentRunMutation.ts new file mode 100644 index 0000000000..933441dae4 --- /dev/null +++ b/sdk/constructive-react/src/agent/hooks/mutations/useUpdatePlatformAgentRunMutation.ts @@ -0,0 +1,116 @@ +/** + * One supervised agent run of a thread: its placement, workspace, cursor and artifacts + * @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 { platformAgentRunKeys } from '../query-keys'; +import { platformAgentRunMutationKeys } from '../mutation-keys'; +import type { + PlatformAgentRunSelect, + PlatformAgentRunWithRelations, + PlatformAgentRunPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformAgentRunSelect, + PlatformAgentRunWithRelations, + PlatformAgentRunPatch, +} from '../../orm/input-types'; +/** + * One supervised agent run of a thread: its placement, workspace, cursor and artifacts + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdatePlatformAgentRunMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', platformAgentRunPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdatePlatformAgentRunMutation( + params: { + selection: { + fields: S & PlatformAgentRunSelect; + } & HookStrictSelect, PlatformAgentRunSelect>; + } & Omit< + UseMutationOptions< + { + updatePlatformAgentRun: { + platformAgentRun: InferSelectResult; + }; + }, + Error, + { + id: string; + platformAgentRunPatch: PlatformAgentRunPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updatePlatformAgentRun: { + platformAgentRun: InferSelectResult; + }; + }, + Error, + { + id: string; + platformAgentRunPatch: PlatformAgentRunPatch; + } +>; +export function useUpdatePlatformAgentRunMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + platformAgentRunPatch: PlatformAgentRunPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformAgentRunMutationKeys.all, + mutationFn: ({ + id, + platformAgentRunPatch, + }: { + id: string; + platformAgentRunPatch: PlatformAgentRunPatch; + }) => + getClient() + .platformAgentRun.update({ + where: { + id, + }, + data: platformAgentRunPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: platformAgentRunKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformAgentRunKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/agent/hooks/mutations/useUpdatePlatformAgentRunWorkspaceMutation.ts b/sdk/constructive-react/src/agent/hooks/mutations/useUpdatePlatformAgentRunWorkspaceMutation.ts new file mode 100644 index 0000000000..47d69efee6 --- /dev/null +++ b/sdk/constructive-react/src/agent/hooks/mutations/useUpdatePlatformAgentRunWorkspaceMutation.ts @@ -0,0 +1,118 @@ +/** + * One repository an agent run works in: its remote, branch, commits and how the work is published + * @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 { platformAgentRunWorkspaceKeys } from '../query-keys'; +import { platformAgentRunWorkspaceMutationKeys } from '../mutation-keys'; +import type { + PlatformAgentRunWorkspaceSelect, + PlatformAgentRunWorkspaceWithRelations, + PlatformAgentRunWorkspacePatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformAgentRunWorkspaceSelect, + PlatformAgentRunWorkspaceWithRelations, + PlatformAgentRunWorkspacePatch, +} from '../../orm/input-types'; +/** + * One repository an agent run works in: its remote, branch, commits and how the work is published + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdatePlatformAgentRunWorkspaceMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', platformAgentRunWorkspacePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdatePlatformAgentRunWorkspaceMutation< + S extends PlatformAgentRunWorkspaceSelect, +>( + params: { + selection: { + fields: S & PlatformAgentRunWorkspaceSelect; + } & HookStrictSelect, PlatformAgentRunWorkspaceSelect>; + } & Omit< + UseMutationOptions< + { + updatePlatformAgentRunWorkspace: { + platformAgentRunWorkspace: InferSelectResult; + }; + }, + Error, + { + id: string; + platformAgentRunWorkspacePatch: PlatformAgentRunWorkspacePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updatePlatformAgentRunWorkspace: { + platformAgentRunWorkspace: InferSelectResult; + }; + }, + Error, + { + id: string; + platformAgentRunWorkspacePatch: PlatformAgentRunWorkspacePatch; + } +>; +export function useUpdatePlatformAgentRunWorkspaceMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + platformAgentRunWorkspacePatch: PlatformAgentRunWorkspacePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformAgentRunWorkspaceMutationKeys.all, + mutationFn: ({ + id, + platformAgentRunWorkspacePatch, + }: { + id: string; + platformAgentRunWorkspacePatch: PlatformAgentRunWorkspacePatch; + }) => + getClient() + .platformAgentRunWorkspace.update({ + where: { + id, + }, + data: platformAgentRunWorkspacePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: platformAgentRunWorkspaceKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformAgentRunWorkspaceKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/agent/hooks/mutations/useUpdatePlatformAgentTaskMutation.ts b/sdk/constructive-react/src/agent/hooks/mutations/useUpdatePlatformAgentTaskMutation.ts new file mode 100644 index 0000000000..3a290420e1 --- /dev/null +++ b/sdk/constructive-react/src/agent/hooks/mutations/useUpdatePlatformAgentTaskMutation.ts @@ -0,0 +1,116 @@ +/** + * Task within a plan, with ordering and optional approval gates + * @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 { platformAgentTaskKeys } from '../query-keys'; +import { platformAgentTaskMutationKeys } from '../mutation-keys'; +import type { + PlatformAgentTaskSelect, + PlatformAgentTaskWithRelations, + PlatformAgentTaskPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformAgentTaskSelect, + PlatformAgentTaskWithRelations, + PlatformAgentTaskPatch, +} from '../../orm/input-types'; +/** + * Task within a plan, with ordering and optional approval gates + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdatePlatformAgentTaskMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', platformAgentTaskPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdatePlatformAgentTaskMutation( + params: { + selection: { + fields: S & PlatformAgentTaskSelect; + } & HookStrictSelect, PlatformAgentTaskSelect>; + } & Omit< + UseMutationOptions< + { + updatePlatformAgentTask: { + platformAgentTask: InferSelectResult; + }; + }, + Error, + { + id: string; + platformAgentTaskPatch: PlatformAgentTaskPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updatePlatformAgentTask: { + platformAgentTask: InferSelectResult; + }; + }, + Error, + { + id: string; + platformAgentTaskPatch: PlatformAgentTaskPatch; + } +>; +export function useUpdatePlatformAgentTaskMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + platformAgentTaskPatch: PlatformAgentTaskPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformAgentTaskMutationKeys.all, + mutationFn: ({ + id, + platformAgentTaskPatch, + }: { + id: string; + platformAgentTaskPatch: PlatformAgentTaskPatch; + }) => + getClient() + .platformAgentTask.update({ + where: { + id, + }, + data: platformAgentTaskPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: platformAgentTaskKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformAgentTaskKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/agent/hooks/mutations/useUpdatePlatformAgentThreadMutation.ts b/sdk/constructive-react/src/agent/hooks/mutations/useUpdatePlatformAgentThreadMutation.ts new file mode 100644 index 0000000000..bc41183c23 --- /dev/null +++ b/sdk/constructive-react/src/agent/hooks/mutations/useUpdatePlatformAgentThreadMutation.ts @@ -0,0 +1,116 @@ +/** + * Top-level AI/LLM conversation thread + * @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 { platformAgentThreadKeys } from '../query-keys'; +import { platformAgentThreadMutationKeys } from '../mutation-keys'; +import type { + PlatformAgentThreadSelect, + PlatformAgentThreadWithRelations, + PlatformAgentThreadPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformAgentThreadSelect, + PlatformAgentThreadWithRelations, + PlatformAgentThreadPatch, +} from '../../orm/input-types'; +/** + * Top-level AI/LLM conversation thread + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdatePlatformAgentThreadMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', platformAgentThreadPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdatePlatformAgentThreadMutation( + params: { + selection: { + fields: S & PlatformAgentThreadSelect; + } & HookStrictSelect, PlatformAgentThreadSelect>; + } & Omit< + UseMutationOptions< + { + updatePlatformAgentThread: { + platformAgentThread: InferSelectResult; + }; + }, + Error, + { + id: string; + platformAgentThreadPatch: PlatformAgentThreadPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updatePlatformAgentThread: { + platformAgentThread: InferSelectResult; + }; + }, + Error, + { + id: string; + platformAgentThreadPatch: PlatformAgentThreadPatch; + } +>; +export function useUpdatePlatformAgentThreadMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + platformAgentThreadPatch: PlatformAgentThreadPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformAgentThreadMutationKeys.all, + mutationFn: ({ + id, + platformAgentThreadPatch, + }: { + id: string; + platformAgentThreadPatch: PlatformAgentThreadPatch; + }) => + getClient() + .platformAgentThread.update({ + where: { + id, + }, + data: platformAgentThreadPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: platformAgentThreadKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformAgentThreadKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/agent/hooks/queries/index.ts b/sdk/constructive-react/src/agent/hooks/queries/index.ts index de494d620e..310f0a0f4c 100644 --- a/sdk/constructive-react/src/agent/hooks/queries/index.ts +++ b/sdk/constructive-react/src/agent/hooks/queries/index.ts @@ -21,3 +21,27 @@ export * from './useAgentTasksQuery'; export * from './useAgentTaskQuery'; export * from './useAgentThreadsQuery'; export * from './useAgentThreadQuery'; +export * from './usePlatformAgentsQuery'; +export * from './usePlatformAgentQuery'; +export * from './usePlatformAgentEventsQuery'; +export * from './usePlatformAgentEventQuery'; +export * from './usePlatformAgentMessagesQuery'; +export * from './usePlatformAgentMessageQuery'; +export * from './usePlatformAgentPersonasQuery'; +export * from './usePlatformAgentPersonaQuery'; +export * from './usePlatformAgentPlansQuery'; +export * from './usePlatformAgentPlanQuery'; +export * from './usePlatformAgentPromptsQuery'; +export * from './usePlatformAgentPromptQuery'; +export * from './usePlatformAgentResourceChunksQuery'; +export * from './usePlatformAgentResourceChunkQuery'; +export * from './usePlatformAgentResourcesQuery'; +export * from './usePlatformAgentResourceQuery'; +export * from './usePlatformAgentRunsQuery'; +export * from './usePlatformAgentRunQuery'; +export * from './usePlatformAgentRunWorkspacesQuery'; +export * from './usePlatformAgentRunWorkspaceQuery'; +export * from './usePlatformAgentTasksQuery'; +export * from './usePlatformAgentTaskQuery'; +export * from './usePlatformAgentThreadsQuery'; +export * from './usePlatformAgentThreadQuery'; diff --git a/sdk/constructive-react/src/agent/hooks/queries/usePlatformAgentEventQuery.ts b/sdk/constructive-react/src/agent/hooks/queries/usePlatformAgentEventQuery.ts new file mode 100644 index 0000000000..59a1fca5cf --- /dev/null +++ b/sdk/constructive-react/src/agent/hooks/queries/usePlatformAgentEventQuery.ts @@ -0,0 +1,144 @@ +/** + * Append-only transcript of an agent run: one agent session entry per row, stored verbatim + * @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 { platformAgentEventKeys } from '../query-keys'; +import type { + PlatformAgentEventSelect, + PlatformAgentEventWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformAgentEventSelect, + PlatformAgentEventWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformAgentEventQueryKey = platformAgentEventKeys.detail; +/** + * Append-only transcript of an agent run: one agent session entry per row, stored verbatim + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformAgentEventQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function usePlatformAgentEventQuery< + S extends PlatformAgentEventSelect, + TData = { + platformAgentEvent: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformAgentEventSelect>; + } & Omit< + UseQueryOptions< + { + platformAgentEvent: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformAgentEventQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformAgentEventKeys.detail(params.id), + queryFn: () => + getClient() + .platformAgentEvent.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Append-only transcript of an agent run: one agent session entry per row, stored verbatim + * + * @example + * ```ts + * const data = await fetchPlatformAgentEventQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchPlatformAgentEventQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformAgentEventSelect>; +}): Promise<{ + platformAgentEvent: InferSelectResult | null; +}>; +export async function fetchPlatformAgentEventQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .platformAgentEvent.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Append-only transcript of an agent run: one agent session entry per row, stored verbatim + * + * @example + * ```ts + * await prefetchPlatformAgentEventQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchPlatformAgentEventQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformAgentEventSelect>; + } +): Promise; +export async function prefetchPlatformAgentEventQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformAgentEventKeys.detail(params.id), + queryFn: () => + getClient() + .platformAgentEvent.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/agent/hooks/queries/usePlatformAgentEventsQuery.ts b/sdk/constructive-react/src/agent/hooks/queries/usePlatformAgentEventsQuery.ts new file mode 100644 index 0000000000..54425a0a51 --- /dev/null +++ b/sdk/constructive-react/src/agent/hooks/queries/usePlatformAgentEventsQuery.ts @@ -0,0 +1,171 @@ +/** + * Append-only transcript of an agent run: one agent session entry per row, stored verbatim + * @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 { platformAgentEventKeys } from '../query-keys'; +import type { + PlatformAgentEventSelect, + PlatformAgentEventWithRelations, + PlatformAgentEventFilter, + PlatformAgentEventOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + PlatformAgentEventSelect, + PlatformAgentEventWithRelations, + PlatformAgentEventFilter, + PlatformAgentEventOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformAgentEventsQueryKey = platformAgentEventKeys.list; +/** + * Append-only transcript of an agent run: one agent session entry per row, stored verbatim + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformAgentEventsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function usePlatformAgentEventsQuery< + S extends PlatformAgentEventSelect, + TData = { + platformAgentEvents: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformAgentEventSelect>; + } & Omit< + UseQueryOptions< + { + platformAgentEvents: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformAgentEventsQuery( + params: { + selection: ListSelectionConfig< + PlatformAgentEventSelect, + PlatformAgentEventFilter, + PlatformAgentEventOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + PlatformAgentEventSelect, + PlatformAgentEventFilter, + PlatformAgentEventOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformAgentEventKeys.list(args), + queryFn: () => getClient().platformAgentEvent.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Append-only transcript of an agent run: one agent session entry per row, stored verbatim + * + * @example + * ```ts + * const data = await fetchPlatformAgentEventsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchPlatformAgentEventsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, PlatformAgentEventSelect>; +}): Promise<{ + platformAgentEvents: ConnectionResult>; +}>; +export async function fetchPlatformAgentEventsQuery(params: { + selection: ListSelectionConfig< + PlatformAgentEventSelect, + PlatformAgentEventFilter, + PlatformAgentEventOrderBy + >; +}) { + const args = buildListSelectionArgs< + PlatformAgentEventSelect, + PlatformAgentEventFilter, + PlatformAgentEventOrderBy + >(params.selection); + return getClient().platformAgentEvent.findMany(args).unwrap(); +} +/** + * Append-only transcript of an agent run: one agent session entry per row, stored verbatim + * + * @example + * ```ts + * await prefetchPlatformAgentEventsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchPlatformAgentEventsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformAgentEventSelect>; + } +): Promise; +export async function prefetchPlatformAgentEventsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + PlatformAgentEventSelect, + PlatformAgentEventFilter, + PlatformAgentEventOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + PlatformAgentEventSelect, + PlatformAgentEventFilter, + PlatformAgentEventOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformAgentEventKeys.list(args), + queryFn: () => getClient().platformAgentEvent.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/agent/hooks/queries/usePlatformAgentMessageQuery.ts b/sdk/constructive-react/src/agent/hooks/queries/usePlatformAgentMessageQuery.ts new file mode 100644 index 0000000000..f787e9596f --- /dev/null +++ b/sdk/constructive-react/src/agent/hooks/queries/usePlatformAgentMessageQuery.ts @@ -0,0 +1,144 @@ +/** + * Message within an agent thread with TextPart/ToolPart jsonb parts + * @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 { platformAgentMessageKeys } from '../query-keys'; +import type { + PlatformAgentMessageSelect, + PlatformAgentMessageWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformAgentMessageSelect, + PlatformAgentMessageWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformAgentMessageQueryKey = platformAgentMessageKeys.detail; +/** + * Message within an agent thread with TextPart/ToolPart jsonb parts + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformAgentMessageQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function usePlatformAgentMessageQuery< + S extends PlatformAgentMessageSelect, + TData = { + platformAgentMessage: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformAgentMessageSelect>; + } & Omit< + UseQueryOptions< + { + platformAgentMessage: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformAgentMessageQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformAgentMessageKeys.detail(params.id), + queryFn: () => + getClient() + .platformAgentMessage.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Message within an agent thread with TextPart/ToolPart jsonb parts + * + * @example + * ```ts + * const data = await fetchPlatformAgentMessageQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchPlatformAgentMessageQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformAgentMessageSelect>; +}): Promise<{ + platformAgentMessage: InferSelectResult | null; +}>; +export async function fetchPlatformAgentMessageQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .platformAgentMessage.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Message within an agent thread with TextPart/ToolPart jsonb parts + * + * @example + * ```ts + * await prefetchPlatformAgentMessageQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchPlatformAgentMessageQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformAgentMessageSelect>; + } +): Promise; +export async function prefetchPlatformAgentMessageQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformAgentMessageKeys.detail(params.id), + queryFn: () => + getClient() + .platformAgentMessage.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/agent/hooks/queries/usePlatformAgentMessagesQuery.ts b/sdk/constructive-react/src/agent/hooks/queries/usePlatformAgentMessagesQuery.ts new file mode 100644 index 0000000000..db4fff246a --- /dev/null +++ b/sdk/constructive-react/src/agent/hooks/queries/usePlatformAgentMessagesQuery.ts @@ -0,0 +1,178 @@ +/** + * Message within an agent thread with TextPart/ToolPart jsonb parts + * @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 { platformAgentMessageKeys } from '../query-keys'; +import type { + PlatformAgentMessageSelect, + PlatformAgentMessageWithRelations, + PlatformAgentMessageFilter, + PlatformAgentMessageOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + PlatformAgentMessageSelect, + PlatformAgentMessageWithRelations, + PlatformAgentMessageFilter, + PlatformAgentMessageOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformAgentMessagesQueryKey = platformAgentMessageKeys.list; +/** + * Message within an agent thread with TextPart/ToolPart jsonb parts + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformAgentMessagesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function usePlatformAgentMessagesQuery< + S extends PlatformAgentMessageSelect, + TData = { + platformAgentMessages: ConnectionResult< + InferSelectResult + >; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformAgentMessageSelect>; + } & Omit< + UseQueryOptions< + { + platformAgentMessages: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformAgentMessagesQuery( + params: { + selection: ListSelectionConfig< + PlatformAgentMessageSelect, + PlatformAgentMessageFilter, + PlatformAgentMessageOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + PlatformAgentMessageSelect, + PlatformAgentMessageFilter, + PlatformAgentMessageOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformAgentMessageKeys.list(args), + queryFn: () => getClient().platformAgentMessage.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Message within an agent thread with TextPart/ToolPart jsonb parts + * + * @example + * ```ts + * const data = await fetchPlatformAgentMessagesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchPlatformAgentMessagesQuery< + S extends PlatformAgentMessageSelect, +>(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformAgentMessageSelect>; +}): Promise<{ + platformAgentMessages: ConnectionResult>; +}>; +export async function fetchPlatformAgentMessagesQuery(params: { + selection: ListSelectionConfig< + PlatformAgentMessageSelect, + PlatformAgentMessageFilter, + PlatformAgentMessageOrderBy + >; +}) { + const args = buildListSelectionArgs< + PlatformAgentMessageSelect, + PlatformAgentMessageFilter, + PlatformAgentMessageOrderBy + >(params.selection); + return getClient().platformAgentMessage.findMany(args).unwrap(); +} +/** + * Message within an agent thread with TextPart/ToolPart jsonb parts + * + * @example + * ```ts + * await prefetchPlatformAgentMessagesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchPlatformAgentMessagesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformAgentMessageSelect>; + } +): Promise; +export async function prefetchPlatformAgentMessagesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + PlatformAgentMessageSelect, + PlatformAgentMessageFilter, + PlatformAgentMessageOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + PlatformAgentMessageSelect, + PlatformAgentMessageFilter, + PlatformAgentMessageOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformAgentMessageKeys.list(args), + queryFn: () => getClient().platformAgentMessage.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/agent/hooks/queries/usePlatformAgentPersonaQuery.ts b/sdk/constructive-react/src/agent/hooks/queries/usePlatformAgentPersonaQuery.ts new file mode 100644 index 0000000000..c108482cd7 --- /dev/null +++ b/sdk/constructive-react/src/agent/hooks/queries/usePlatformAgentPersonaQuery.ts @@ -0,0 +1,144 @@ +/** + * Agent persona templates (role, system prompt, default skills/knowledge) + * @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 { platformAgentPersonaKeys } from '../query-keys'; +import type { + PlatformAgentPersonaSelect, + PlatformAgentPersonaWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformAgentPersonaSelect, + PlatformAgentPersonaWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformAgentPersonaQueryKey = platformAgentPersonaKeys.detail; +/** + * Agent persona templates (role, system prompt, default skills/knowledge) + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformAgentPersonaQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function usePlatformAgentPersonaQuery< + S extends PlatformAgentPersonaSelect, + TData = { + platformAgentPersona: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformAgentPersonaSelect>; + } & Omit< + UseQueryOptions< + { + platformAgentPersona: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformAgentPersonaQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformAgentPersonaKeys.detail(params.id), + queryFn: () => + getClient() + .platformAgentPersona.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Agent persona templates (role, system prompt, default skills/knowledge) + * + * @example + * ```ts + * const data = await fetchPlatformAgentPersonaQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchPlatformAgentPersonaQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformAgentPersonaSelect>; +}): Promise<{ + platformAgentPersona: InferSelectResult | null; +}>; +export async function fetchPlatformAgentPersonaQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .platformAgentPersona.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Agent persona templates (role, system prompt, default skills/knowledge) + * + * @example + * ```ts + * await prefetchPlatformAgentPersonaQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchPlatformAgentPersonaQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformAgentPersonaSelect>; + } +): Promise; +export async function prefetchPlatformAgentPersonaQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformAgentPersonaKeys.detail(params.id), + queryFn: () => + getClient() + .platformAgentPersona.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/agent/hooks/queries/usePlatformAgentPersonasQuery.ts b/sdk/constructive-react/src/agent/hooks/queries/usePlatformAgentPersonasQuery.ts new file mode 100644 index 0000000000..0a30da98bf --- /dev/null +++ b/sdk/constructive-react/src/agent/hooks/queries/usePlatformAgentPersonasQuery.ts @@ -0,0 +1,178 @@ +/** + * Agent persona templates (role, system prompt, default skills/knowledge) + * @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 { platformAgentPersonaKeys } from '../query-keys'; +import type { + PlatformAgentPersonaSelect, + PlatformAgentPersonaWithRelations, + PlatformAgentPersonaFilter, + PlatformAgentPersonaOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + PlatformAgentPersonaSelect, + PlatformAgentPersonaWithRelations, + PlatformAgentPersonaFilter, + PlatformAgentPersonaOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformAgentPersonasQueryKey = platformAgentPersonaKeys.list; +/** + * Agent persona templates (role, system prompt, default skills/knowledge) + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformAgentPersonasQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function usePlatformAgentPersonasQuery< + S extends PlatformAgentPersonaSelect, + TData = { + platformAgentPersonas: ConnectionResult< + InferSelectResult + >; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformAgentPersonaSelect>; + } & Omit< + UseQueryOptions< + { + platformAgentPersonas: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformAgentPersonasQuery( + params: { + selection: ListSelectionConfig< + PlatformAgentPersonaSelect, + PlatformAgentPersonaFilter, + PlatformAgentPersonaOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + PlatformAgentPersonaSelect, + PlatformAgentPersonaFilter, + PlatformAgentPersonaOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformAgentPersonaKeys.list(args), + queryFn: () => getClient().platformAgentPersona.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Agent persona templates (role, system prompt, default skills/knowledge) + * + * @example + * ```ts + * const data = await fetchPlatformAgentPersonasQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchPlatformAgentPersonasQuery< + S extends PlatformAgentPersonaSelect, +>(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformAgentPersonaSelect>; +}): Promise<{ + platformAgentPersonas: ConnectionResult>; +}>; +export async function fetchPlatformAgentPersonasQuery(params: { + selection: ListSelectionConfig< + PlatformAgentPersonaSelect, + PlatformAgentPersonaFilter, + PlatformAgentPersonaOrderBy + >; +}) { + const args = buildListSelectionArgs< + PlatformAgentPersonaSelect, + PlatformAgentPersonaFilter, + PlatformAgentPersonaOrderBy + >(params.selection); + return getClient().platformAgentPersona.findMany(args).unwrap(); +} +/** + * Agent persona templates (role, system prompt, default skills/knowledge) + * + * @example + * ```ts + * await prefetchPlatformAgentPersonasQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchPlatformAgentPersonasQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformAgentPersonaSelect>; + } +): Promise; +export async function prefetchPlatformAgentPersonasQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + PlatformAgentPersonaSelect, + PlatformAgentPersonaFilter, + PlatformAgentPersonaOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + PlatformAgentPersonaSelect, + PlatformAgentPersonaFilter, + PlatformAgentPersonaOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformAgentPersonaKeys.list(args), + queryFn: () => getClient().platformAgentPersona.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/agent/hooks/queries/usePlatformAgentPlanQuery.ts b/sdk/constructive-react/src/agent/hooks/queries/usePlatformAgentPlanQuery.ts new file mode 100644 index 0000000000..77a3cb603d --- /dev/null +++ b/sdk/constructive-react/src/agent/hooks/queries/usePlatformAgentPlanQuery.ts @@ -0,0 +1,144 @@ +/** + * Workflow plan attached to an agent thread with ordered tasks and optional approval gates + * @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 { platformAgentPlanKeys } from '../query-keys'; +import type { + PlatformAgentPlanSelect, + PlatformAgentPlanWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformAgentPlanSelect, + PlatformAgentPlanWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformAgentPlanQueryKey = platformAgentPlanKeys.detail; +/** + * Workflow plan attached to an agent thread with ordered tasks and optional approval gates + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformAgentPlanQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function usePlatformAgentPlanQuery< + S extends PlatformAgentPlanSelect, + TData = { + platformAgentPlan: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformAgentPlanSelect>; + } & Omit< + UseQueryOptions< + { + platformAgentPlan: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformAgentPlanQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformAgentPlanKeys.detail(params.id), + queryFn: () => + getClient() + .platformAgentPlan.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Workflow plan attached to an agent thread with ordered tasks and optional approval gates + * + * @example + * ```ts + * const data = await fetchPlatformAgentPlanQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchPlatformAgentPlanQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformAgentPlanSelect>; +}): Promise<{ + platformAgentPlan: InferSelectResult | null; +}>; +export async function fetchPlatformAgentPlanQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .platformAgentPlan.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Workflow plan attached to an agent thread with ordered tasks and optional approval gates + * + * @example + * ```ts + * await prefetchPlatformAgentPlanQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchPlatformAgentPlanQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformAgentPlanSelect>; + } +): Promise; +export async function prefetchPlatformAgentPlanQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformAgentPlanKeys.detail(params.id), + queryFn: () => + getClient() + .platformAgentPlan.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/agent/hooks/queries/usePlatformAgentPlansQuery.ts b/sdk/constructive-react/src/agent/hooks/queries/usePlatformAgentPlansQuery.ts new file mode 100644 index 0000000000..5c92858d6b --- /dev/null +++ b/sdk/constructive-react/src/agent/hooks/queries/usePlatformAgentPlansQuery.ts @@ -0,0 +1,163 @@ +/** + * Workflow plan attached to an agent thread with ordered tasks and optional approval gates + * @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 { platformAgentPlanKeys } from '../query-keys'; +import type { + PlatformAgentPlanSelect, + PlatformAgentPlanWithRelations, + PlatformAgentPlanFilter, + PlatformAgentPlanOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + PlatformAgentPlanSelect, + PlatformAgentPlanWithRelations, + PlatformAgentPlanFilter, + PlatformAgentPlanOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformAgentPlansQueryKey = platformAgentPlanKeys.list; +/** + * Workflow plan attached to an agent thread with ordered tasks and optional approval gates + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformAgentPlansQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function usePlatformAgentPlansQuery< + S extends PlatformAgentPlanSelect, + TData = { + platformAgentPlans: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, PlatformAgentPlanSelect>; + } & Omit< + UseQueryOptions< + { + platformAgentPlans: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformAgentPlansQuery( + params: { + selection: ListSelectionConfig< + PlatformAgentPlanSelect, + PlatformAgentPlanFilter, + PlatformAgentPlanOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + PlatformAgentPlanSelect, + PlatformAgentPlanFilter, + PlatformAgentPlanOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformAgentPlanKeys.list(args), + queryFn: () => getClient().platformAgentPlan.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Workflow plan attached to an agent thread with ordered tasks and optional approval gates + * + * @example + * ```ts + * const data = await fetchPlatformAgentPlansQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchPlatformAgentPlansQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, PlatformAgentPlanSelect>; +}): Promise<{ + platformAgentPlans: ConnectionResult>; +}>; +export async function fetchPlatformAgentPlansQuery(params: { + selection: ListSelectionConfig< + PlatformAgentPlanSelect, + PlatformAgentPlanFilter, + PlatformAgentPlanOrderBy + >; +}) { + const args = buildListSelectionArgs< + PlatformAgentPlanSelect, + PlatformAgentPlanFilter, + PlatformAgentPlanOrderBy + >(params.selection); + return getClient().platformAgentPlan.findMany(args).unwrap(); +} +/** + * Workflow plan attached to an agent thread with ordered tasks and optional approval gates + * + * @example + * ```ts + * await prefetchPlatformAgentPlansQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchPlatformAgentPlansQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, PlatformAgentPlanSelect>; + } +): Promise; +export async function prefetchPlatformAgentPlansQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + PlatformAgentPlanSelect, + PlatformAgentPlanFilter, + PlatformAgentPlanOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + PlatformAgentPlanSelect, + PlatformAgentPlanFilter, + PlatformAgentPlanOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformAgentPlanKeys.list(args), + queryFn: () => getClient().platformAgentPlan.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/agent/hooks/queries/usePlatformAgentPromptQuery.ts b/sdk/constructive-react/src/agent/hooks/queries/usePlatformAgentPromptQuery.ts new file mode 100644 index 0000000000..56f6c2d2f3 --- /dev/null +++ b/sdk/constructive-react/src/agent/hooks/queries/usePlatformAgentPromptQuery.ts @@ -0,0 +1,144 @@ +/** + * Shared system prompt templates for agent conversations + * @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 { platformAgentPromptKeys } from '../query-keys'; +import type { + PlatformAgentPromptSelect, + PlatformAgentPromptWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformAgentPromptSelect, + PlatformAgentPromptWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformAgentPromptQueryKey = platformAgentPromptKeys.detail; +/** + * Shared system prompt templates for agent conversations + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformAgentPromptQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function usePlatformAgentPromptQuery< + S extends PlatformAgentPromptSelect, + TData = { + platformAgentPrompt: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformAgentPromptSelect>; + } & Omit< + UseQueryOptions< + { + platformAgentPrompt: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformAgentPromptQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformAgentPromptKeys.detail(params.id), + queryFn: () => + getClient() + .platformAgentPrompt.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Shared system prompt templates for agent conversations + * + * @example + * ```ts + * const data = await fetchPlatformAgentPromptQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchPlatformAgentPromptQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformAgentPromptSelect>; +}): Promise<{ + platformAgentPrompt: InferSelectResult | null; +}>; +export async function fetchPlatformAgentPromptQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .platformAgentPrompt.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Shared system prompt templates for agent conversations + * + * @example + * ```ts + * await prefetchPlatformAgentPromptQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchPlatformAgentPromptQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformAgentPromptSelect>; + } +): Promise; +export async function prefetchPlatformAgentPromptQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformAgentPromptKeys.detail(params.id), + queryFn: () => + getClient() + .platformAgentPrompt.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/agent/hooks/queries/usePlatformAgentPromptsQuery.ts b/sdk/constructive-react/src/agent/hooks/queries/usePlatformAgentPromptsQuery.ts new file mode 100644 index 0000000000..d4fcbe11d5 --- /dev/null +++ b/sdk/constructive-react/src/agent/hooks/queries/usePlatformAgentPromptsQuery.ts @@ -0,0 +1,174 @@ +/** + * Shared system prompt templates for agent conversations + * @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 { platformAgentPromptKeys } from '../query-keys'; +import type { + PlatformAgentPromptSelect, + PlatformAgentPromptWithRelations, + PlatformAgentPromptFilter, + PlatformAgentPromptOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + PlatformAgentPromptSelect, + PlatformAgentPromptWithRelations, + PlatformAgentPromptFilter, + PlatformAgentPromptOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformAgentPromptsQueryKey = platformAgentPromptKeys.list; +/** + * Shared system prompt templates for agent conversations + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformAgentPromptsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function usePlatformAgentPromptsQuery< + S extends PlatformAgentPromptSelect, + TData = { + platformAgentPrompts: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformAgentPromptSelect>; + } & Omit< + UseQueryOptions< + { + platformAgentPrompts: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformAgentPromptsQuery( + params: { + selection: ListSelectionConfig< + PlatformAgentPromptSelect, + PlatformAgentPromptFilter, + PlatformAgentPromptOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + PlatformAgentPromptSelect, + PlatformAgentPromptFilter, + PlatformAgentPromptOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformAgentPromptKeys.list(args), + queryFn: () => getClient().platformAgentPrompt.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Shared system prompt templates for agent conversations + * + * @example + * ```ts + * const data = await fetchPlatformAgentPromptsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchPlatformAgentPromptsQuery(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformAgentPromptSelect>; +}): Promise<{ + platformAgentPrompts: ConnectionResult>; +}>; +export async function fetchPlatformAgentPromptsQuery(params: { + selection: ListSelectionConfig< + PlatformAgentPromptSelect, + PlatformAgentPromptFilter, + PlatformAgentPromptOrderBy + >; +}) { + const args = buildListSelectionArgs< + PlatformAgentPromptSelect, + PlatformAgentPromptFilter, + PlatformAgentPromptOrderBy + >(params.selection); + return getClient().platformAgentPrompt.findMany(args).unwrap(); +} +/** + * Shared system prompt templates for agent conversations + * + * @example + * ```ts + * await prefetchPlatformAgentPromptsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchPlatformAgentPromptsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformAgentPromptSelect>; + } +): Promise; +export async function prefetchPlatformAgentPromptsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + PlatformAgentPromptSelect, + PlatformAgentPromptFilter, + PlatformAgentPromptOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + PlatformAgentPromptSelect, + PlatformAgentPromptFilter, + PlatformAgentPromptOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformAgentPromptKeys.list(args), + queryFn: () => getClient().platformAgentPrompt.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/agent/hooks/queries/usePlatformAgentQuery.ts b/sdk/constructive-react/src/agent/hooks/queries/usePlatformAgentQuery.ts new file mode 100644 index 0000000000..7daddd5650 --- /dev/null +++ b/sdk/constructive-react/src/agent/hooks/queries/usePlatformAgentQuery.ts @@ -0,0 +1,138 @@ +/** + * Agent instance registry (human-managed or ephemeral sub-agents) + * @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 { platformAgentKeys } from '../query-keys'; +import type { PlatformAgentSelect, PlatformAgentWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { PlatformAgentSelect, PlatformAgentWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformAgentQueryKey = platformAgentKeys.detail; +/** + * Agent instance registry (human-managed or ephemeral sub-agents) + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformAgentQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function usePlatformAgentQuery< + S extends PlatformAgentSelect, + TData = { + platformAgent: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformAgentSelect>; + } & Omit< + UseQueryOptions< + { + platformAgent: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformAgentQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformAgentKeys.detail(params.id), + queryFn: () => + getClient() + .platformAgent.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Agent instance registry (human-managed or ephemeral sub-agents) + * + * @example + * ```ts + * const data = await fetchPlatformAgentQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchPlatformAgentQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformAgentSelect>; +}): Promise<{ + platformAgent: InferSelectResult | null; +}>; +export async function fetchPlatformAgentQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .platformAgent.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Agent instance registry (human-managed or ephemeral sub-agents) + * + * @example + * ```ts + * await prefetchPlatformAgentQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchPlatformAgentQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformAgentSelect>; + } +): Promise; +export async function prefetchPlatformAgentQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformAgentKeys.detail(params.id), + queryFn: () => + getClient() + .platformAgent.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/agent/hooks/queries/usePlatformAgentResourceChunkQuery.ts b/sdk/constructive-react/src/agent/hooks/queries/usePlatformAgentResourceChunkQuery.ts new file mode 100644 index 0000000000..ad6ae64b81 --- /dev/null +++ b/sdk/constructive-react/src/agent/hooks/queries/usePlatformAgentResourceChunkQuery.ts @@ -0,0 +1,154 @@ +/** + * Single item query hook for PlatformAgentResourceChunk + * @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 { platformAgentResourceChunkKeys } from '../query-keys'; +import type { + PlatformAgentResourceChunkSelect, + PlatformAgentResourceChunkWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformAgentResourceChunkSelect, + PlatformAgentResourceChunkWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformAgentResourceChunkQueryKey = platformAgentResourceChunkKeys.detail; +/** + * Query hook for fetching a single PlatformAgentResourceChunk + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformAgentResourceChunkQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function usePlatformAgentResourceChunkQuery< + S extends PlatformAgentResourceChunkSelect, + TData = { + platformAgentResourceChunk: InferSelectResult< + PlatformAgentResourceChunkWithRelations, + S + > | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformAgentResourceChunkSelect>; + } & Omit< + UseQueryOptions< + { + platformAgentResourceChunk: InferSelectResult< + PlatformAgentResourceChunkWithRelations, + S + > | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformAgentResourceChunkQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformAgentResourceChunkKeys.detail(params.id), + queryFn: () => + getClient() + .platformAgentResourceChunk.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single PlatformAgentResourceChunk without React hooks + * + * @example + * ```ts + * const data = await fetchPlatformAgentResourceChunkQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchPlatformAgentResourceChunkQuery< + S extends PlatformAgentResourceChunkSelect, +>(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformAgentResourceChunkSelect>; +}): Promise<{ + platformAgentResourceChunk: InferSelectResult | null; +}>; +export async function fetchPlatformAgentResourceChunkQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .platformAgentResourceChunk.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single PlatformAgentResourceChunk for SSR or cache warming + * + * @example + * ```ts + * await prefetchPlatformAgentResourceChunkQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchPlatformAgentResourceChunkQuery< + S extends PlatformAgentResourceChunkSelect, +>( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformAgentResourceChunkSelect>; + } +): Promise; +export async function prefetchPlatformAgentResourceChunkQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformAgentResourceChunkKeys.detail(params.id), + queryFn: () => + getClient() + .platformAgentResourceChunk.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/agent/hooks/queries/usePlatformAgentResourceChunksQuery.ts b/sdk/constructive-react/src/agent/hooks/queries/usePlatformAgentResourceChunksQuery.ts new file mode 100644 index 0000000000..ee658b3a6b --- /dev/null +++ b/sdk/constructive-react/src/agent/hooks/queries/usePlatformAgentResourceChunksQuery.ts @@ -0,0 +1,182 @@ +/** + * List query hook for PlatformAgentResourceChunk + * @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 { platformAgentResourceChunkKeys } from '../query-keys'; +import type { + PlatformAgentResourceChunkSelect, + PlatformAgentResourceChunkWithRelations, + PlatformAgentResourceChunkFilter, + PlatformAgentResourceChunkOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + PlatformAgentResourceChunkSelect, + PlatformAgentResourceChunkWithRelations, + PlatformAgentResourceChunkFilter, + PlatformAgentResourceChunkOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformAgentResourceChunksQueryKey = platformAgentResourceChunkKeys.list; +/** + * Query hook for fetching PlatformAgentResourceChunk list + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformAgentResourceChunksQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function usePlatformAgentResourceChunksQuery< + S extends PlatformAgentResourceChunkSelect, + TData = { + platformAgentResourceChunks: ConnectionResult< + InferSelectResult + >; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformAgentResourceChunkSelect>; + } & Omit< + UseQueryOptions< + { + platformAgentResourceChunks: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformAgentResourceChunksQuery( + params: { + selection: ListSelectionConfig< + PlatformAgentResourceChunkSelect, + PlatformAgentResourceChunkFilter, + PlatformAgentResourceChunkOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + PlatformAgentResourceChunkSelect, + PlatformAgentResourceChunkFilter, + PlatformAgentResourceChunkOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformAgentResourceChunkKeys.list(args), + queryFn: () => getClient().platformAgentResourceChunk.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch PlatformAgentResourceChunk list without React hooks + * + * @example + * ```ts + * const data = await fetchPlatformAgentResourceChunksQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchPlatformAgentResourceChunksQuery< + S extends PlatformAgentResourceChunkSelect, +>(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformAgentResourceChunkSelect>; +}): Promise<{ + platformAgentResourceChunks: ConnectionResult< + InferSelectResult + >; +}>; +export async function fetchPlatformAgentResourceChunksQuery(params: { + selection: ListSelectionConfig< + PlatformAgentResourceChunkSelect, + PlatformAgentResourceChunkFilter, + PlatformAgentResourceChunkOrderBy + >; +}) { + const args = buildListSelectionArgs< + PlatformAgentResourceChunkSelect, + PlatformAgentResourceChunkFilter, + PlatformAgentResourceChunkOrderBy + >(params.selection); + return getClient().platformAgentResourceChunk.findMany(args).unwrap(); +} +/** + * Prefetch PlatformAgentResourceChunk list for SSR or cache warming + * + * @example + * ```ts + * await prefetchPlatformAgentResourceChunksQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchPlatformAgentResourceChunksQuery< + S extends PlatformAgentResourceChunkSelect, +>( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformAgentResourceChunkSelect>; + } +): Promise; +export async function prefetchPlatformAgentResourceChunksQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + PlatformAgentResourceChunkSelect, + PlatformAgentResourceChunkFilter, + PlatformAgentResourceChunkOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + PlatformAgentResourceChunkSelect, + PlatformAgentResourceChunkFilter, + PlatformAgentResourceChunkOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformAgentResourceChunkKeys.list(args), + queryFn: () => getClient().platformAgentResourceChunk.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/agent/hooks/queries/usePlatformAgentResourceQuery.ts b/sdk/constructive-react/src/agent/hooks/queries/usePlatformAgentResourceQuery.ts new file mode 100644 index 0000000000..2a696745b1 --- /dev/null +++ b/sdk/constructive-react/src/agent/hooks/queries/usePlatformAgentResourceQuery.ts @@ -0,0 +1,146 @@ +/** + * Unified skills and knowledge resources for agent retrieval + * @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 { platformAgentResourceKeys } from '../query-keys'; +import type { + PlatformAgentResourceSelect, + PlatformAgentResourceWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformAgentResourceSelect, + PlatformAgentResourceWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformAgentResourceQueryKey = platformAgentResourceKeys.detail; +/** + * Unified skills and knowledge resources for agent retrieval + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformAgentResourceQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function usePlatformAgentResourceQuery< + S extends PlatformAgentResourceSelect, + TData = { + platformAgentResource: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformAgentResourceSelect>; + } & Omit< + UseQueryOptions< + { + platformAgentResource: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformAgentResourceQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformAgentResourceKeys.detail(params.id), + queryFn: () => + getClient() + .platformAgentResource.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Unified skills and knowledge resources for agent retrieval + * + * @example + * ```ts + * const data = await fetchPlatformAgentResourceQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchPlatformAgentResourceQuery< + S extends PlatformAgentResourceSelect, +>(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformAgentResourceSelect>; +}): Promise<{ + platformAgentResource: InferSelectResult | null; +}>; +export async function fetchPlatformAgentResourceQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .platformAgentResource.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Unified skills and knowledge resources for agent retrieval + * + * @example + * ```ts + * await prefetchPlatformAgentResourceQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchPlatformAgentResourceQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformAgentResourceSelect>; + } +): Promise; +export async function prefetchPlatformAgentResourceQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformAgentResourceKeys.detail(params.id), + queryFn: () => + getClient() + .platformAgentResource.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/agent/hooks/queries/usePlatformAgentResourcesQuery.ts b/sdk/constructive-react/src/agent/hooks/queries/usePlatformAgentResourcesQuery.ts new file mode 100644 index 0000000000..5d439b8b2c --- /dev/null +++ b/sdk/constructive-react/src/agent/hooks/queries/usePlatformAgentResourcesQuery.ts @@ -0,0 +1,180 @@ +/** + * Unified skills and knowledge resources for agent retrieval + * @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 { platformAgentResourceKeys } from '../query-keys'; +import type { + PlatformAgentResourceSelect, + PlatformAgentResourceWithRelations, + PlatformAgentResourceFilter, + PlatformAgentResourceOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + PlatformAgentResourceSelect, + PlatformAgentResourceWithRelations, + PlatformAgentResourceFilter, + PlatformAgentResourceOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformAgentResourcesQueryKey = platformAgentResourceKeys.list; +/** + * Unified skills and knowledge resources for agent retrieval + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformAgentResourcesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function usePlatformAgentResourcesQuery< + S extends PlatformAgentResourceSelect, + TData = { + platformAgentResources: ConnectionResult< + InferSelectResult + >; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformAgentResourceSelect>; + } & Omit< + UseQueryOptions< + { + platformAgentResources: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformAgentResourcesQuery( + params: { + selection: ListSelectionConfig< + PlatformAgentResourceSelect, + PlatformAgentResourceFilter, + PlatformAgentResourceOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + PlatformAgentResourceSelect, + PlatformAgentResourceFilter, + PlatformAgentResourceOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformAgentResourceKeys.list(args), + queryFn: () => getClient().platformAgentResource.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Unified skills and knowledge resources for agent retrieval + * + * @example + * ```ts + * const data = await fetchPlatformAgentResourcesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchPlatformAgentResourcesQuery< + S extends PlatformAgentResourceSelect, +>(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformAgentResourceSelect>; +}): Promise<{ + platformAgentResources: ConnectionResult< + InferSelectResult + >; +}>; +export async function fetchPlatformAgentResourcesQuery(params: { + selection: ListSelectionConfig< + PlatformAgentResourceSelect, + PlatformAgentResourceFilter, + PlatformAgentResourceOrderBy + >; +}) { + const args = buildListSelectionArgs< + PlatformAgentResourceSelect, + PlatformAgentResourceFilter, + PlatformAgentResourceOrderBy + >(params.selection); + return getClient().platformAgentResource.findMany(args).unwrap(); +} +/** + * Unified skills and knowledge resources for agent retrieval + * + * @example + * ```ts + * await prefetchPlatformAgentResourcesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchPlatformAgentResourcesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformAgentResourceSelect>; + } +): Promise; +export async function prefetchPlatformAgentResourcesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + PlatformAgentResourceSelect, + PlatformAgentResourceFilter, + PlatformAgentResourceOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + PlatformAgentResourceSelect, + PlatformAgentResourceFilter, + PlatformAgentResourceOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformAgentResourceKeys.list(args), + queryFn: () => getClient().platformAgentResource.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/agent/hooks/queries/usePlatformAgentRunQuery.ts b/sdk/constructive-react/src/agent/hooks/queries/usePlatformAgentRunQuery.ts new file mode 100644 index 0000000000..0fae3494a3 --- /dev/null +++ b/sdk/constructive-react/src/agent/hooks/queries/usePlatformAgentRunQuery.ts @@ -0,0 +1,138 @@ +/** + * One supervised agent run of a thread: its placement, workspace, cursor and artifacts + * @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 { platformAgentRunKeys } from '../query-keys'; +import type { PlatformAgentRunSelect, PlatformAgentRunWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { PlatformAgentRunSelect, PlatformAgentRunWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformAgentRunQueryKey = platformAgentRunKeys.detail; +/** + * One supervised agent run of a thread: its placement, workspace, cursor and artifacts + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformAgentRunQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function usePlatformAgentRunQuery< + S extends PlatformAgentRunSelect, + TData = { + platformAgentRun: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformAgentRunSelect>; + } & Omit< + UseQueryOptions< + { + platformAgentRun: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformAgentRunQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformAgentRunKeys.detail(params.id), + queryFn: () => + getClient() + .platformAgentRun.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * One supervised agent run of a thread: its placement, workspace, cursor and artifacts + * + * @example + * ```ts + * const data = await fetchPlatformAgentRunQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchPlatformAgentRunQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformAgentRunSelect>; +}): Promise<{ + platformAgentRun: InferSelectResult | null; +}>; +export async function fetchPlatformAgentRunQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .platformAgentRun.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * One supervised agent run of a thread: its placement, workspace, cursor and artifacts + * + * @example + * ```ts + * await prefetchPlatformAgentRunQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchPlatformAgentRunQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformAgentRunSelect>; + } +): Promise; +export async function prefetchPlatformAgentRunQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformAgentRunKeys.detail(params.id), + queryFn: () => + getClient() + .platformAgentRun.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/agent/hooks/queries/usePlatformAgentRunWorkspaceQuery.ts b/sdk/constructive-react/src/agent/hooks/queries/usePlatformAgentRunWorkspaceQuery.ts new file mode 100644 index 0000000000..92a23d36ca --- /dev/null +++ b/sdk/constructive-react/src/agent/hooks/queries/usePlatformAgentRunWorkspaceQuery.ts @@ -0,0 +1,151 @@ +/** + * One repository an agent run works in: its remote, branch, commits and how the work is published + * @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 { platformAgentRunWorkspaceKeys } from '../query-keys'; +import type { + PlatformAgentRunWorkspaceSelect, + PlatformAgentRunWorkspaceWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformAgentRunWorkspaceSelect, + PlatformAgentRunWorkspaceWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformAgentRunWorkspaceQueryKey = platformAgentRunWorkspaceKeys.detail; +/** + * One repository an agent run works in: its remote, branch, commits and how the work is published + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformAgentRunWorkspaceQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function usePlatformAgentRunWorkspaceQuery< + S extends PlatformAgentRunWorkspaceSelect, + TData = { + platformAgentRunWorkspace: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformAgentRunWorkspaceSelect>; + } & Omit< + UseQueryOptions< + { + platformAgentRunWorkspace: InferSelectResult< + PlatformAgentRunWorkspaceWithRelations, + S + > | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformAgentRunWorkspaceQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformAgentRunWorkspaceKeys.detail(params.id), + queryFn: () => + getClient() + .platformAgentRunWorkspace.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * One repository an agent run works in: its remote, branch, commits and how the work is published + * + * @example + * ```ts + * const data = await fetchPlatformAgentRunWorkspaceQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchPlatformAgentRunWorkspaceQuery< + S extends PlatformAgentRunWorkspaceSelect, +>(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformAgentRunWorkspaceSelect>; +}): Promise<{ + platformAgentRunWorkspace: InferSelectResult | null; +}>; +export async function fetchPlatformAgentRunWorkspaceQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .platformAgentRunWorkspace.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * One repository an agent run works in: its remote, branch, commits and how the work is published + * + * @example + * ```ts + * await prefetchPlatformAgentRunWorkspaceQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchPlatformAgentRunWorkspaceQuery< + S extends PlatformAgentRunWorkspaceSelect, +>( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformAgentRunWorkspaceSelect>; + } +): Promise; +export async function prefetchPlatformAgentRunWorkspaceQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformAgentRunWorkspaceKeys.detail(params.id), + queryFn: () => + getClient() + .platformAgentRunWorkspace.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/agent/hooks/queries/usePlatformAgentRunWorkspacesQuery.ts b/sdk/constructive-react/src/agent/hooks/queries/usePlatformAgentRunWorkspacesQuery.ts new file mode 100644 index 0000000000..cb426c3764 --- /dev/null +++ b/sdk/constructive-react/src/agent/hooks/queries/usePlatformAgentRunWorkspacesQuery.ts @@ -0,0 +1,182 @@ +/** + * One repository an agent run works in: its remote, branch, commits and how the work is published + * @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 { platformAgentRunWorkspaceKeys } from '../query-keys'; +import type { + PlatformAgentRunWorkspaceSelect, + PlatformAgentRunWorkspaceWithRelations, + PlatformAgentRunWorkspaceFilter, + PlatformAgentRunWorkspaceOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + PlatformAgentRunWorkspaceSelect, + PlatformAgentRunWorkspaceWithRelations, + PlatformAgentRunWorkspaceFilter, + PlatformAgentRunWorkspaceOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformAgentRunWorkspacesQueryKey = platformAgentRunWorkspaceKeys.list; +/** + * One repository an agent run works in: its remote, branch, commits and how the work is published + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformAgentRunWorkspacesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function usePlatformAgentRunWorkspacesQuery< + S extends PlatformAgentRunWorkspaceSelect, + TData = { + platformAgentRunWorkspaces: ConnectionResult< + InferSelectResult + >; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformAgentRunWorkspaceSelect>; + } & Omit< + UseQueryOptions< + { + platformAgentRunWorkspaces: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformAgentRunWorkspacesQuery( + params: { + selection: ListSelectionConfig< + PlatformAgentRunWorkspaceSelect, + PlatformAgentRunWorkspaceFilter, + PlatformAgentRunWorkspaceOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + PlatformAgentRunWorkspaceSelect, + PlatformAgentRunWorkspaceFilter, + PlatformAgentRunWorkspaceOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformAgentRunWorkspaceKeys.list(args), + queryFn: () => getClient().platformAgentRunWorkspace.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * One repository an agent run works in: its remote, branch, commits and how the work is published + * + * @example + * ```ts + * const data = await fetchPlatformAgentRunWorkspacesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchPlatformAgentRunWorkspacesQuery< + S extends PlatformAgentRunWorkspaceSelect, +>(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformAgentRunWorkspaceSelect>; +}): Promise<{ + platformAgentRunWorkspaces: ConnectionResult< + InferSelectResult + >; +}>; +export async function fetchPlatformAgentRunWorkspacesQuery(params: { + selection: ListSelectionConfig< + PlatformAgentRunWorkspaceSelect, + PlatformAgentRunWorkspaceFilter, + PlatformAgentRunWorkspaceOrderBy + >; +}) { + const args = buildListSelectionArgs< + PlatformAgentRunWorkspaceSelect, + PlatformAgentRunWorkspaceFilter, + PlatformAgentRunWorkspaceOrderBy + >(params.selection); + return getClient().platformAgentRunWorkspace.findMany(args).unwrap(); +} +/** + * One repository an agent run works in: its remote, branch, commits and how the work is published + * + * @example + * ```ts + * await prefetchPlatformAgentRunWorkspacesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchPlatformAgentRunWorkspacesQuery< + S extends PlatformAgentRunWorkspaceSelect, +>( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformAgentRunWorkspaceSelect>; + } +): Promise; +export async function prefetchPlatformAgentRunWorkspacesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + PlatformAgentRunWorkspaceSelect, + PlatformAgentRunWorkspaceFilter, + PlatformAgentRunWorkspaceOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + PlatformAgentRunWorkspaceSelect, + PlatformAgentRunWorkspaceFilter, + PlatformAgentRunWorkspaceOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformAgentRunWorkspaceKeys.list(args), + queryFn: () => getClient().platformAgentRunWorkspace.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/agent/hooks/queries/usePlatformAgentRunsQuery.ts b/sdk/constructive-react/src/agent/hooks/queries/usePlatformAgentRunsQuery.ts new file mode 100644 index 0000000000..20caae4f77 --- /dev/null +++ b/sdk/constructive-react/src/agent/hooks/queries/usePlatformAgentRunsQuery.ts @@ -0,0 +1,163 @@ +/** + * One supervised agent run of a thread: its placement, workspace, cursor and artifacts + * @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 { platformAgentRunKeys } from '../query-keys'; +import type { + PlatformAgentRunSelect, + PlatformAgentRunWithRelations, + PlatformAgentRunFilter, + PlatformAgentRunOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + PlatformAgentRunSelect, + PlatformAgentRunWithRelations, + PlatformAgentRunFilter, + PlatformAgentRunOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformAgentRunsQueryKey = platformAgentRunKeys.list; +/** + * One supervised agent run of a thread: its placement, workspace, cursor and artifacts + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformAgentRunsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function usePlatformAgentRunsQuery< + S extends PlatformAgentRunSelect, + TData = { + platformAgentRuns: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, PlatformAgentRunSelect>; + } & Omit< + UseQueryOptions< + { + platformAgentRuns: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformAgentRunsQuery( + params: { + selection: ListSelectionConfig< + PlatformAgentRunSelect, + PlatformAgentRunFilter, + PlatformAgentRunOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + PlatformAgentRunSelect, + PlatformAgentRunFilter, + PlatformAgentRunOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformAgentRunKeys.list(args), + queryFn: () => getClient().platformAgentRun.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * One supervised agent run of a thread: its placement, workspace, cursor and artifacts + * + * @example + * ```ts + * const data = await fetchPlatformAgentRunsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchPlatformAgentRunsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, PlatformAgentRunSelect>; +}): Promise<{ + platformAgentRuns: ConnectionResult>; +}>; +export async function fetchPlatformAgentRunsQuery(params: { + selection: ListSelectionConfig< + PlatformAgentRunSelect, + PlatformAgentRunFilter, + PlatformAgentRunOrderBy + >; +}) { + const args = buildListSelectionArgs< + PlatformAgentRunSelect, + PlatformAgentRunFilter, + PlatformAgentRunOrderBy + >(params.selection); + return getClient().platformAgentRun.findMany(args).unwrap(); +} +/** + * One supervised agent run of a thread: its placement, workspace, cursor and artifacts + * + * @example + * ```ts + * await prefetchPlatformAgentRunsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchPlatformAgentRunsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, PlatformAgentRunSelect>; + } +): Promise; +export async function prefetchPlatformAgentRunsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + PlatformAgentRunSelect, + PlatformAgentRunFilter, + PlatformAgentRunOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + PlatformAgentRunSelect, + PlatformAgentRunFilter, + PlatformAgentRunOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformAgentRunKeys.list(args), + queryFn: () => getClient().platformAgentRun.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/agent/hooks/queries/usePlatformAgentTaskQuery.ts b/sdk/constructive-react/src/agent/hooks/queries/usePlatformAgentTaskQuery.ts new file mode 100644 index 0000000000..8899c6263f --- /dev/null +++ b/sdk/constructive-react/src/agent/hooks/queries/usePlatformAgentTaskQuery.ts @@ -0,0 +1,144 @@ +/** + * Task within a plan, with ordering and optional approval gates + * @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 { platformAgentTaskKeys } from '../query-keys'; +import type { + PlatformAgentTaskSelect, + PlatformAgentTaskWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformAgentTaskSelect, + PlatformAgentTaskWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformAgentTaskQueryKey = platformAgentTaskKeys.detail; +/** + * Task within a plan, with ordering and optional approval gates + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformAgentTaskQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function usePlatformAgentTaskQuery< + S extends PlatformAgentTaskSelect, + TData = { + platformAgentTask: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformAgentTaskSelect>; + } & Omit< + UseQueryOptions< + { + platformAgentTask: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformAgentTaskQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformAgentTaskKeys.detail(params.id), + queryFn: () => + getClient() + .platformAgentTask.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Task within a plan, with ordering and optional approval gates + * + * @example + * ```ts + * const data = await fetchPlatformAgentTaskQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchPlatformAgentTaskQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformAgentTaskSelect>; +}): Promise<{ + platformAgentTask: InferSelectResult | null; +}>; +export async function fetchPlatformAgentTaskQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .platformAgentTask.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Task within a plan, with ordering and optional approval gates + * + * @example + * ```ts + * await prefetchPlatformAgentTaskQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchPlatformAgentTaskQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformAgentTaskSelect>; + } +): Promise; +export async function prefetchPlatformAgentTaskQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformAgentTaskKeys.detail(params.id), + queryFn: () => + getClient() + .platformAgentTask.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/agent/hooks/queries/usePlatformAgentTasksQuery.ts b/sdk/constructive-react/src/agent/hooks/queries/usePlatformAgentTasksQuery.ts new file mode 100644 index 0000000000..b19b7a826b --- /dev/null +++ b/sdk/constructive-react/src/agent/hooks/queries/usePlatformAgentTasksQuery.ts @@ -0,0 +1,163 @@ +/** + * Task within a plan, with ordering and optional approval gates + * @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 { platformAgentTaskKeys } from '../query-keys'; +import type { + PlatformAgentTaskSelect, + PlatformAgentTaskWithRelations, + PlatformAgentTaskFilter, + PlatformAgentTaskOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + PlatformAgentTaskSelect, + PlatformAgentTaskWithRelations, + PlatformAgentTaskFilter, + PlatformAgentTaskOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformAgentTasksQueryKey = platformAgentTaskKeys.list; +/** + * Task within a plan, with ordering and optional approval gates + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformAgentTasksQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function usePlatformAgentTasksQuery< + S extends PlatformAgentTaskSelect, + TData = { + platformAgentTasks: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, PlatformAgentTaskSelect>; + } & Omit< + UseQueryOptions< + { + platformAgentTasks: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformAgentTasksQuery( + params: { + selection: ListSelectionConfig< + PlatformAgentTaskSelect, + PlatformAgentTaskFilter, + PlatformAgentTaskOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + PlatformAgentTaskSelect, + PlatformAgentTaskFilter, + PlatformAgentTaskOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformAgentTaskKeys.list(args), + queryFn: () => getClient().platformAgentTask.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Task within a plan, with ordering and optional approval gates + * + * @example + * ```ts + * const data = await fetchPlatformAgentTasksQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchPlatformAgentTasksQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, PlatformAgentTaskSelect>; +}): Promise<{ + platformAgentTasks: ConnectionResult>; +}>; +export async function fetchPlatformAgentTasksQuery(params: { + selection: ListSelectionConfig< + PlatformAgentTaskSelect, + PlatformAgentTaskFilter, + PlatformAgentTaskOrderBy + >; +}) { + const args = buildListSelectionArgs< + PlatformAgentTaskSelect, + PlatformAgentTaskFilter, + PlatformAgentTaskOrderBy + >(params.selection); + return getClient().platformAgentTask.findMany(args).unwrap(); +} +/** + * Task within a plan, with ordering and optional approval gates + * + * @example + * ```ts + * await prefetchPlatformAgentTasksQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchPlatformAgentTasksQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, PlatformAgentTaskSelect>; + } +): Promise; +export async function prefetchPlatformAgentTasksQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + PlatformAgentTaskSelect, + PlatformAgentTaskFilter, + PlatformAgentTaskOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + PlatformAgentTaskSelect, + PlatformAgentTaskFilter, + PlatformAgentTaskOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformAgentTaskKeys.list(args), + queryFn: () => getClient().platformAgentTask.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/agent/hooks/queries/usePlatformAgentThreadQuery.ts b/sdk/constructive-react/src/agent/hooks/queries/usePlatformAgentThreadQuery.ts new file mode 100644 index 0000000000..9ccb5f1fd9 --- /dev/null +++ b/sdk/constructive-react/src/agent/hooks/queries/usePlatformAgentThreadQuery.ts @@ -0,0 +1,144 @@ +/** + * Top-level AI/LLM conversation thread + * @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 { platformAgentThreadKeys } from '../query-keys'; +import type { + PlatformAgentThreadSelect, + PlatformAgentThreadWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformAgentThreadSelect, + PlatformAgentThreadWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformAgentThreadQueryKey = platformAgentThreadKeys.detail; +/** + * Top-level AI/LLM conversation thread + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformAgentThreadQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function usePlatformAgentThreadQuery< + S extends PlatformAgentThreadSelect, + TData = { + platformAgentThread: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformAgentThreadSelect>; + } & Omit< + UseQueryOptions< + { + platformAgentThread: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformAgentThreadQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformAgentThreadKeys.detail(params.id), + queryFn: () => + getClient() + .platformAgentThread.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Top-level AI/LLM conversation thread + * + * @example + * ```ts + * const data = await fetchPlatformAgentThreadQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchPlatformAgentThreadQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformAgentThreadSelect>; +}): Promise<{ + platformAgentThread: InferSelectResult | null; +}>; +export async function fetchPlatformAgentThreadQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .platformAgentThread.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Top-level AI/LLM conversation thread + * + * @example + * ```ts + * await prefetchPlatformAgentThreadQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchPlatformAgentThreadQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformAgentThreadSelect>; + } +): Promise; +export async function prefetchPlatformAgentThreadQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformAgentThreadKeys.detail(params.id), + queryFn: () => + getClient() + .platformAgentThread.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/agent/hooks/queries/usePlatformAgentThreadsQuery.ts b/sdk/constructive-react/src/agent/hooks/queries/usePlatformAgentThreadsQuery.ts new file mode 100644 index 0000000000..39df41ad07 --- /dev/null +++ b/sdk/constructive-react/src/agent/hooks/queries/usePlatformAgentThreadsQuery.ts @@ -0,0 +1,174 @@ +/** + * Top-level AI/LLM conversation thread + * @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 { platformAgentThreadKeys } from '../query-keys'; +import type { + PlatformAgentThreadSelect, + PlatformAgentThreadWithRelations, + PlatformAgentThreadFilter, + PlatformAgentThreadOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + PlatformAgentThreadSelect, + PlatformAgentThreadWithRelations, + PlatformAgentThreadFilter, + PlatformAgentThreadOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformAgentThreadsQueryKey = platformAgentThreadKeys.list; +/** + * Top-level AI/LLM conversation thread + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformAgentThreadsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function usePlatformAgentThreadsQuery< + S extends PlatformAgentThreadSelect, + TData = { + platformAgentThreads: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformAgentThreadSelect>; + } & Omit< + UseQueryOptions< + { + platformAgentThreads: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformAgentThreadsQuery( + params: { + selection: ListSelectionConfig< + PlatformAgentThreadSelect, + PlatformAgentThreadFilter, + PlatformAgentThreadOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + PlatformAgentThreadSelect, + PlatformAgentThreadFilter, + PlatformAgentThreadOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformAgentThreadKeys.list(args), + queryFn: () => getClient().platformAgentThread.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Top-level AI/LLM conversation thread + * + * @example + * ```ts + * const data = await fetchPlatformAgentThreadsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchPlatformAgentThreadsQuery(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformAgentThreadSelect>; +}): Promise<{ + platformAgentThreads: ConnectionResult>; +}>; +export async function fetchPlatformAgentThreadsQuery(params: { + selection: ListSelectionConfig< + PlatformAgentThreadSelect, + PlatformAgentThreadFilter, + PlatformAgentThreadOrderBy + >; +}) { + const args = buildListSelectionArgs< + PlatformAgentThreadSelect, + PlatformAgentThreadFilter, + PlatformAgentThreadOrderBy + >(params.selection); + return getClient().platformAgentThread.findMany(args).unwrap(); +} +/** + * Top-level AI/LLM conversation thread + * + * @example + * ```ts + * await prefetchPlatformAgentThreadsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchPlatformAgentThreadsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformAgentThreadSelect>; + } +): Promise; +export async function prefetchPlatformAgentThreadsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + PlatformAgentThreadSelect, + PlatformAgentThreadFilter, + PlatformAgentThreadOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + PlatformAgentThreadSelect, + PlatformAgentThreadFilter, + PlatformAgentThreadOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformAgentThreadKeys.list(args), + queryFn: () => getClient().platformAgentThread.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/agent/hooks/queries/usePlatformAgentsQuery.ts b/sdk/constructive-react/src/agent/hooks/queries/usePlatformAgentsQuery.ts new file mode 100644 index 0000000000..dd772f776b --- /dev/null +++ b/sdk/constructive-react/src/agent/hooks/queries/usePlatformAgentsQuery.ts @@ -0,0 +1,151 @@ +/** + * Agent instance registry (human-managed or ephemeral sub-agents) + * @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 { platformAgentKeys } from '../query-keys'; +import type { + PlatformAgentSelect, + PlatformAgentWithRelations, + PlatformAgentFilter, + PlatformAgentOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + PlatformAgentSelect, + PlatformAgentWithRelations, + PlatformAgentFilter, + PlatformAgentOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformAgentsQueryKey = platformAgentKeys.list; +/** + * Agent instance registry (human-managed or ephemeral sub-agents) + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformAgentsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function usePlatformAgentsQuery< + S extends PlatformAgentSelect, + TData = { + platformAgents: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, PlatformAgentSelect>; + } & Omit< + UseQueryOptions< + { + platformAgents: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformAgentsQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + PlatformAgentSelect, + PlatformAgentFilter, + PlatformAgentOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformAgentKeys.list(args), + queryFn: () => getClient().platformAgent.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Agent instance registry (human-managed or ephemeral sub-agents) + * + * @example + * ```ts + * const data = await fetchPlatformAgentsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchPlatformAgentsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, PlatformAgentSelect>; +}): Promise<{ + platformAgents: ConnectionResult>; +}>; +export async function fetchPlatformAgentsQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs< + PlatformAgentSelect, + PlatformAgentFilter, + PlatformAgentOrderBy + >(params.selection); + return getClient().platformAgent.findMany(args).unwrap(); +} +/** + * Agent instance registry (human-managed or ephemeral sub-agents) + * + * @example + * ```ts + * await prefetchPlatformAgentsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchPlatformAgentsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, PlatformAgentSelect>; + } +): Promise; +export async function prefetchPlatformAgentsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs< + PlatformAgentSelect, + PlatformAgentFilter, + PlatformAgentOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformAgentKeys.list(args), + queryFn: () => getClient().platformAgent.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/agent/hooks/query-keys.ts b/sdk/constructive-react/src/agent/hooks/query-keys.ts index 4ca08b3721..a7c4fdf124 100644 --- a/sdk/constructive-react/src/agent/hooks/query-keys.ts +++ b/sdk/constructive-react/src/agent/hooks/query-keys.ts @@ -100,6 +100,115 @@ export const agentThreadKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...agentThreadKeys.details(), id] as const, } as const; +export const platformAgentKeys = { + /** All platformAgent queries */ all: ['platformagent'] as const, + /** List query keys */ lists: () => [...platformAgentKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...platformAgentKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...platformAgentKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...platformAgentKeys.details(), id] as const, +} as const; +export const platformAgentEventKeys = { + /** All platformAgentEvent queries */ all: ['platformagentevent'] as const, + /** List query keys */ lists: () => [...platformAgentEventKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...platformAgentEventKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...platformAgentEventKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...platformAgentEventKeys.details(), id] as const, +} as const; +export const platformAgentMessageKeys = { + /** All platformAgentMessage queries */ all: ['platformagentmessage'] as const, + /** List query keys */ lists: () => [...platformAgentMessageKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...platformAgentMessageKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...platformAgentMessageKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...platformAgentMessageKeys.details(), id] as const, +} as const; +export const platformAgentPersonaKeys = { + /** All platformAgentPersona queries */ all: ['platformagentpersona'] as const, + /** List query keys */ lists: () => [...platformAgentPersonaKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...platformAgentPersonaKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...platformAgentPersonaKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...platformAgentPersonaKeys.details(), id] as const, +} as const; +export const platformAgentPlanKeys = { + /** All platformAgentPlan queries */ all: ['platformagentplan'] as const, + /** List query keys */ lists: () => [...platformAgentPlanKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...platformAgentPlanKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...platformAgentPlanKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...platformAgentPlanKeys.details(), id] as const, +} as const; +export const platformAgentPromptKeys = { + /** All platformAgentPrompt queries */ all: ['platformagentprompt'] as const, + /** List query keys */ lists: () => [...platformAgentPromptKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...platformAgentPromptKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...platformAgentPromptKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...platformAgentPromptKeys.details(), id] as const, +} as const; +export const platformAgentResourceChunkKeys = { + /** All platformAgentResourceChunk queries */ all: ['platformagentresourcechunk'] as const, + /** List query keys */ lists: () => [...platformAgentResourceChunkKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...platformAgentResourceChunkKeys.lists(), variables] as const, + /** Detail query keys */ details: () => + [...platformAgentResourceChunkKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...platformAgentResourceChunkKeys.details(), id] as const, +} as const; +export const platformAgentResourceKeys = { + /** All platformAgentResource queries */ all: ['platformagentresource'] as const, + /** List query keys */ lists: () => [...platformAgentResourceKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...platformAgentResourceKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...platformAgentResourceKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...platformAgentResourceKeys.details(), id] as const, +} as const; +export const platformAgentRunKeys = { + /** All platformAgentRun queries */ all: ['platformagentrun'] as const, + /** List query keys */ lists: () => [...platformAgentRunKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...platformAgentRunKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...platformAgentRunKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...platformAgentRunKeys.details(), id] as const, +} as const; +export const platformAgentRunWorkspaceKeys = { + /** All platformAgentRunWorkspace queries */ all: ['platformagentrunworkspace'] as const, + /** List query keys */ lists: () => [...platformAgentRunWorkspaceKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...platformAgentRunWorkspaceKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...platformAgentRunWorkspaceKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...platformAgentRunWorkspaceKeys.details(), id] as const, +} as const; +export const platformAgentTaskKeys = { + /** All platformAgentTask queries */ all: ['platformagenttask'] as const, + /** List query keys */ lists: () => [...platformAgentTaskKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...platformAgentTaskKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...platformAgentTaskKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...platformAgentTaskKeys.details(), id] as const, +} as const; +export const platformAgentThreadKeys = { + /** All platformAgentThread queries */ all: ['platformagentthread'] as const, + /** List query keys */ lists: () => [...platformAgentThreadKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...platformAgentThreadKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...platformAgentThreadKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...platformAgentThreadKeys.details(), id] as const, +} as const; /** // ============================================================================ @@ -132,6 +241,18 @@ export const queryKeys = { agentResource: agentResourceKeys, agentTask: agentTaskKeys, agentThread: agentThreadKeys, + platformAgent: platformAgentKeys, + platformAgentEvent: platformAgentEventKeys, + platformAgentMessage: platformAgentMessageKeys, + platformAgentPersona: platformAgentPersonaKeys, + platformAgentPlan: platformAgentPlanKeys, + platformAgentPrompt: platformAgentPromptKeys, + platformAgentResourceChunk: platformAgentResourceChunkKeys, + platformAgentResource: platformAgentResourceKeys, + platformAgentRun: platformAgentRunKeys, + platformAgentRunWorkspace: platformAgentRunWorkspaceKeys, + platformAgentTask: platformAgentTaskKeys, + platformAgentThread: platformAgentThreadKeys, } as const; /** Type representing all available query key scopes */ export type QueryKeyScope = keyof typeof queryKeys; diff --git a/sdk/constructive-react/src/agent/orm/README.md b/sdk/constructive-react/src/agent/orm/README.md index d8403ed6ba..cbba8f46fe 100644 --- a/sdk/constructive-react/src/agent/orm/README.md +++ b/sdk/constructive-react/src/agent/orm/README.md @@ -30,6 +30,18 @@ const db = createClient({ | `agentResource` | findMany, findOne, create, update, delete | | `agentTask` | findMany, findOne, create, update, delete | | `agentThread` | findMany, findOne, create, update, delete | +| `platformAgent` | findMany, findOne, create, update, delete | +| `platformAgentEvent` | findMany, findOne, create, update, delete | +| `platformAgentMessage` | findMany, findOne, create, update, delete | +| `platformAgentPersona` | findMany, findOne, create, update, delete | +| `platformAgentPlan` | findMany, findOne, create, update, delete | +| `platformAgentPrompt` | findMany, findOne, create, update, delete | +| `platformAgentResourceChunk` | findMany, findOne, create, update, delete | +| `platformAgentResource` | findMany, findOne, create, update, delete | +| `platformAgentRun` | findMany, findOne, create, update, delete | +| `platformAgentRunWorkspace` | findMany, findOne, create, update, delete | +| `platformAgentTask` | findMany, findOne, create, update, delete | +| `platformAgentThread` | findMany, findOne, create, update, delete | ## Table Operations @@ -87,22 +99,24 @@ CRUD operations for AgentMessage records. | `createdAt` | Datetime | No | | `databaseId` | UUID | Yes | | `id` | UUID | No | +| `kind` | String | Yes | | `model` | String | Yes | | `parts` | JSON | Yes | | `threadId` | UUID | Yes | | `updatedAt` | Datetime | No | +| `visibility` | String | Yes | **Operations:** ```typescript // List all agentMessage records -const items = await db.agentMessage.findMany({ select: { actorId: true, agentId: true, authorRole: true, createdAt: true, databaseId: true, id: true, model: true, parts: true, threadId: true, updatedAt: true } }).execute(); +const items = await db.agentMessage.findMany({ select: { actorId: true, agentId: true, authorRole: true, createdAt: true, databaseId: true, id: true, kind: true, model: true, parts: true, threadId: true, updatedAt: true, visibility: true } }).execute(); // Get one by id -const item = await db.agentMessage.findOne({ id: '', select: { actorId: true, agentId: true, authorRole: true, createdAt: true, databaseId: true, id: true, model: true, parts: true, threadId: true, updatedAt: true } }).execute(); +const item = await db.agentMessage.findOne({ id: '', select: { actorId: true, agentId: true, authorRole: true, createdAt: true, databaseId: true, id: true, kind: true, model: true, parts: true, threadId: true, updatedAt: true, visibility: true } }).execute(); // Create -const created = await db.agentMessage.create({ data: { actorId: '', agentId: '', authorRole: '', databaseId: '', model: '', parts: '', threadId: '' }, select: { id: true } }).execute(); +const created = await db.agentMessage.create({ data: { actorId: '', agentId: '', authorRole: '', databaseId: '', kind: '', model: '', parts: '', threadId: '', visibility: '' }, select: { id: true } }).execute(); // Update const updated = await db.agentMessage.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); @@ -122,6 +136,7 @@ CRUD operations for AgentPersona records. | `config` | JSON | Yes | | `createdAt` | Datetime | No | | `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | | `databaseId` | UUID | Yes | | `description` | String | Yes | | `id` | UUID | No | @@ -132,18 +147,19 @@ CRUD operations for AgentPersona records. | `systemPrompt` | String | Yes | | `updatedAt` | Datetime | No | | `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | **Operations:** ```typescript // List all agentPersona records -const items = await db.agentPersona.findMany({ select: { config: true, createdAt: true, createdBy: true, databaseId: true, description: true, id: true, isActive: true, name: true, resources: true, slug: true, systemPrompt: true, updatedAt: true, updatedBy: true } }).execute(); +const items = await db.agentPersona.findMany({ select: { config: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, description: true, id: true, isActive: true, name: true, resources: true, slug: true, systemPrompt: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.agentPersona.findOne({ id: '', select: { config: true, createdAt: true, createdBy: true, databaseId: true, description: true, id: true, isActive: true, name: true, resources: true, slug: true, systemPrompt: true, updatedAt: true, updatedBy: true } }).execute(); +const item = await db.agentPersona.findOne({ id: '', select: { config: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, description: true, id: true, isActive: true, name: true, resources: true, slug: true, systemPrompt: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.agentPersona.create({ data: { config: '', createdBy: '', databaseId: '', description: '', isActive: '', name: '', resources: '', slug: '', systemPrompt: '', updatedBy: '' }, select: { id: true } }).execute(); +const created = await db.agentPersona.create({ data: { config: '', createdBy: '', createdByPrincipal: '', databaseId: '', description: '', isActive: '', name: '', resources: '', slug: '', systemPrompt: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update const updated = await db.agentPersona.update({ where: { id: '' }, data: { config: '' }, select: { id: true } }).execute(); @@ -169,18 +185,19 @@ CRUD operations for AgentPlan records. | `threadId` | UUID | Yes | | `title` | String | Yes | | `updatedAt` | Datetime | No | +| `visibility` | String | Yes | **Operations:** ```typescript // List all agentPlan records -const items = await db.agentPlan.findMany({ select: { createdAt: true, databaseId: true, description: true, id: true, ownerId: true, status: true, threadId: true, title: true, updatedAt: true } }).execute(); +const items = await db.agentPlan.findMany({ select: { createdAt: true, databaseId: true, description: true, id: true, ownerId: true, status: true, threadId: true, title: true, updatedAt: true, visibility: true } }).execute(); // Get one by id -const item = await db.agentPlan.findOne({ id: '', select: { createdAt: true, databaseId: true, description: true, id: true, ownerId: true, status: true, threadId: true, title: true, updatedAt: true } }).execute(); +const item = await db.agentPlan.findOne({ id: '', select: { createdAt: true, databaseId: true, description: true, id: true, ownerId: true, status: true, threadId: true, title: true, updatedAt: true, visibility: true } }).execute(); // Create -const created = await db.agentPlan.create({ data: { databaseId: '', description: '', ownerId: '', status: '', threadId: '', title: '' }, select: { id: true } }).execute(); +const created = await db.agentPlan.create({ data: { databaseId: '', description: '', ownerId: '', status: '', threadId: '', title: '', visibility: '' }, select: { id: true } }).execute(); // Update const updated = await db.agentPlan.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -200,6 +217,7 @@ CRUD operations for AgentPrompt records. | `content` | String | Yes | | `createdAt` | Datetime | No | | `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | | `databaseId` | UUID | Yes | | `description` | String | Yes | | `id` | UUID | No | @@ -208,18 +226,19 @@ CRUD operations for AgentPrompt records. | `name` | String | Yes | | `updatedAt` | Datetime | No | | `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | **Operations:** ```typescript // List all agentPrompt records -const items = await db.agentPrompt.findMany({ select: { content: true, createdAt: true, createdBy: true, databaseId: true, description: true, id: true, isDefault: true, metadata: true, name: true, updatedAt: true, updatedBy: true } }).execute(); +const items = await db.agentPrompt.findMany({ select: { content: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, description: true, id: true, isDefault: true, metadata: true, name: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.agentPrompt.findOne({ id: '', select: { content: true, createdAt: true, createdBy: true, databaseId: true, description: true, id: true, isDefault: true, metadata: true, name: true, updatedAt: true, updatedBy: true } }).execute(); +const item = await db.agentPrompt.findOne({ id: '', select: { content: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, description: true, id: true, isDefault: true, metadata: true, name: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.agentPrompt.create({ data: { content: '', createdBy: '', databaseId: '', description: '', isDefault: '', metadata: '', name: '', updatedBy: '' }, select: { id: true } }).execute(); +const created = await db.agentPrompt.create({ data: { content: '', createdBy: '', createdByPrincipal: '', databaseId: '', description: '', isDefault: '', metadata: '', name: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update const updated = await db.agentPrompt.update({ where: { id: '' }, data: { content: '' }, select: { id: true } }).execute(); @@ -240,6 +259,7 @@ CRUD operations for AgentResourceChunk records. | `body` | String | Yes | | `chunkIndex` | Int | Yes | | `createdAt` | Datetime | No | +| `databaseId` | UUID | Yes | | `embedding` | Vector | Yes | | `embeddingVectorDistance` | Float | Yes | | `id` | UUID | No | @@ -251,13 +271,13 @@ CRUD operations for AgentResourceChunk records. ```typescript // List all agentResourceChunk records -const items = await db.agentResourceChunk.findMany({ select: { agentResourceId: true, body: true, chunkIndex: true, createdAt: true, embedding: true, embeddingVectorDistance: true, id: true, metadata: true, searchScore: true, updatedAt: true } }).execute(); +const items = await db.agentResourceChunk.findMany({ select: { agentResourceId: true, body: true, chunkIndex: true, createdAt: true, databaseId: true, embedding: true, embeddingVectorDistance: true, id: true, metadata: true, searchScore: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.agentResourceChunk.findOne({ id: '', select: { agentResourceId: true, body: true, chunkIndex: true, createdAt: true, embedding: true, embeddingVectorDistance: true, id: true, metadata: true, searchScore: true, updatedAt: true } }).execute(); +const item = await db.agentResourceChunk.findOne({ id: '', select: { agentResourceId: true, body: true, chunkIndex: true, createdAt: true, databaseId: true, embedding: true, embeddingVectorDistance: true, id: true, metadata: true, searchScore: true, updatedAt: true } }).execute(); // Create -const created = await db.agentResourceChunk.create({ data: { agentResourceId: '', body: '', chunkIndex: '', embedding: '', embeddingVectorDistance: '', metadata: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.agentResourceChunk.create({ data: { agentResourceId: '', body: '', chunkIndex: '', databaseId: '', embedding: '', embeddingVectorDistance: '', metadata: '', searchScore: '' }, select: { id: true } }).execute(); // Update const updated = await db.agentResourceChunk.update({ where: { id: '' }, data: { agentResourceId: '' }, select: { id: true } }).execute(); @@ -282,6 +302,7 @@ CRUD operations for AgentResource records. | `bodyTrgmSimilarity` | Float | Yes | | `createdAt` | Datetime | No | | `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | | `databaseId` | UUID | Yes | | `description` | String | Yes | | `descriptionTrgmSimilarity` | Float | Yes | @@ -303,18 +324,19 @@ CRUD operations for AgentResource records. | `titleTrgmSimilarity` | Float | Yes | | `updatedAt` | Datetime | No | | `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | **Operations:** ```typescript // List all agentResource records -const items = await db.agentResource.findMany({ select: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, databaseId: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true } }).execute(); +const items = await db.agentResource.findMany({ select: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.agentResource.findOne({ id: '', select: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, databaseId: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true } }).execute(); +const item = await db.agentResource.findOne({ id: '', select: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.agentResource.create({ data: { archivedAt: '', body: '', bodyTrgmSimilarity: '', createdBy: '', databaseId: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', isActive: '', isArchived: '', keywords: '', kind: '', kindTrgmSimilarity: '', metadata: '', search: '', searchScore: '', searchTsvRank: '', slug: '', title: '', titleTrgmSimilarity: '', updatedBy: '' }, select: { id: true } }).execute(); +const created = await db.agentResource.create({ data: { archivedAt: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', isActive: '', isArchived: '', keywords: '', kind: '', kindTrgmSimilarity: '', metadata: '', search: '', searchScore: '', searchTsvRank: '', slug: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update const updated = await db.agentResource.update({ where: { id: '' }, data: { archivedAt: '' }, select: { id: true } }).execute(); @@ -353,18 +375,19 @@ CRUD operations for AgentTask records. | `source` | String | Yes | | `status` | String | Yes | | `updatedAt` | Datetime | No | +| `visibility` | String | Yes | **Operations:** ```typescript // List all agentTask records -const items = await db.agentTask.findMany({ select: { actorId: true, approvalFeedback: true, approvalStatus: true, approvedAt: true, approvedBy: true, createdAt: true, databaseId: true, description: true, error: true, id: true, orderIndex: true, planId: true, requiresApproval: true, source: true, status: true, updatedAt: true } }).execute(); +const items = await db.agentTask.findMany({ select: { actorId: true, approvalFeedback: true, approvalStatus: true, approvedAt: true, approvedBy: true, createdAt: true, databaseId: true, description: true, error: true, id: true, orderIndex: true, planId: true, requiresApproval: true, source: true, status: true, updatedAt: true, visibility: true } }).execute(); // Get one by id -const item = await db.agentTask.findOne({ id: '', select: { actorId: true, approvalFeedback: true, approvalStatus: true, approvedAt: true, approvedBy: true, createdAt: true, databaseId: true, description: true, error: true, id: true, orderIndex: true, planId: true, requiresApproval: true, source: true, status: true, updatedAt: true } }).execute(); +const item = await db.agentTask.findOne({ id: '', select: { actorId: true, approvalFeedback: true, approvalStatus: true, approvedAt: true, approvedBy: true, createdAt: true, databaseId: true, description: true, error: true, id: true, orderIndex: true, planId: true, requiresApproval: true, source: true, status: true, updatedAt: true, visibility: true } }).execute(); // Create -const created = await db.agentTask.create({ data: { actorId: '', approvalFeedback: '', approvalStatus: '', approvedAt: '', approvedBy: '', databaseId: '', description: '', error: '', orderIndex: '', planId: '', requiresApproval: '', source: '', status: '' }, select: { id: true } }).execute(); +const created = await db.agentTask.create({ data: { actorId: '', approvalFeedback: '', approvalStatus: '', approvedAt: '', approvedBy: '', databaseId: '', description: '', error: '', orderIndex: '', planId: '', requiresApproval: '', source: '', status: '', visibility: '' }, select: { id: true } }).execute(); // Update const updated = await db.agentTask.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); @@ -397,18 +420,19 @@ CRUD operations for AgentThread records. | `tags` | String | Yes | | `title` | String | Yes | | `updatedAt` | Datetime | No | +| `visibility` | String | Yes | **Operations:** ```typescript // List all agentThread records -const items = await db.agentThread.findMany({ select: { agentId: true, archivedAt: true, createdAt: true, databaseId: true, id: true, isArchived: true, mode: true, model: true, ownerId: true, parentThreadId: true, promptTemplateId: true, status: true, systemPrompt: true, tags: true, title: true, updatedAt: true } }).execute(); +const items = await db.agentThread.findMany({ select: { agentId: true, archivedAt: true, createdAt: true, databaseId: true, id: true, isArchived: true, mode: true, model: true, ownerId: true, parentThreadId: true, promptTemplateId: true, status: true, systemPrompt: true, tags: true, title: true, updatedAt: true, visibility: true } }).execute(); // Get one by id -const item = await db.agentThread.findOne({ id: '', select: { agentId: true, archivedAt: true, createdAt: true, databaseId: true, id: true, isArchived: true, mode: true, model: true, ownerId: true, parentThreadId: true, promptTemplateId: true, status: true, systemPrompt: true, tags: true, title: true, updatedAt: true } }).execute(); +const item = await db.agentThread.findOne({ id: '', select: { agentId: true, archivedAt: true, createdAt: true, databaseId: true, id: true, isArchived: true, mode: true, model: true, ownerId: true, parentThreadId: true, promptTemplateId: true, status: true, systemPrompt: true, tags: true, title: true, updatedAt: true, visibility: true } }).execute(); // Create -const created = await db.agentThread.create({ data: { agentId: '', archivedAt: '', databaseId: '', isArchived: '', mode: '', model: '', ownerId: '', parentThreadId: '', promptTemplateId: '', status: '', systemPrompt: '', tags: '', title: '' }, select: { id: true } }).execute(); +const created = await db.agentThread.create({ data: { agentId: '', archivedAt: '', databaseId: '', isArchived: '', mode: '', model: '', ownerId: '', parentThreadId: '', promptTemplateId: '', status: '', systemPrompt: '', tags: '', title: '', visibility: '' }, select: { id: true } }).execute(); // Update const updated = await db.agentThread.update({ where: { id: '' }, data: { agentId: '' }, select: { id: true } }).execute(); @@ -417,14 +441,543 @@ const updated = await db.agentThread.update({ where: { id: '' }, data: { a const deleted = await db.agentThread.delete({ where: { id: '' } }).execute(); ``` +### `db.platformAgent` + +CRUD operations for PlatformAgent records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `config` | JSON | Yes | +| `createdAt` | Datetime | No | +| `id` | UUID | No | +| `isEphemeral` | Boolean | Yes | +| `name` | String | Yes | +| `ownerId` | UUID | Yes | +| `parentId` | UUID | Yes | +| `personaId` | UUID | Yes | +| `status` | String | Yes | +| `systemPrompt` | String | Yes | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all platformAgent records +const items = await db.platformAgent.findMany({ select: { config: true, createdAt: true, id: true, isEphemeral: true, name: true, ownerId: true, parentId: true, personaId: true, status: true, systemPrompt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.platformAgent.findOne({ id: '', select: { config: true, createdAt: true, id: true, isEphemeral: true, name: true, ownerId: true, parentId: true, personaId: true, status: true, systemPrompt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.platformAgent.create({ data: { config: '', isEphemeral: '', name: '', ownerId: '', parentId: '', personaId: '', status: '', systemPrompt: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformAgent.update({ where: { id: '' }, data: { config: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformAgent.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformAgentEvent` + +CRUD operations for PlatformAgentEvent records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `actorId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `entry` | JSON | Yes | +| `id` | UUID | No | +| `recordedAt` | Datetime | Yes | +| `runId` | UUID | Yes | +| `seq` | Int | Yes | +| `transcriptFormat` | String | Yes | +| `transcriptVersion` | Int | Yes | +| `updatedAt` | Datetime | No | +| `visibility` | String | Yes | + +**Operations:** + +```typescript +// List all platformAgentEvent records +const items = await db.platformAgentEvent.findMany({ select: { actorId: true, createdAt: true, entry: true, id: true, recordedAt: true, runId: true, seq: true, transcriptFormat: true, transcriptVersion: true, updatedAt: true, visibility: true } }).execute(); + +// Get one by id +const item = await db.platformAgentEvent.findOne({ id: '', select: { actorId: true, createdAt: true, entry: true, id: true, recordedAt: true, runId: true, seq: true, transcriptFormat: true, transcriptVersion: true, updatedAt: true, visibility: true } }).execute(); + +// Create +const created = await db.platformAgentEvent.create({ data: { actorId: '', entry: '', recordedAt: '', runId: '', seq: '', transcriptFormat: '', transcriptVersion: '', visibility: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformAgentEvent.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformAgentEvent.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformAgentMessage` + +CRUD operations for PlatformAgentMessage records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `actorId` | UUID | Yes | +| `agentId` | UUID | Yes | +| `authorRole` | String | Yes | +| `createdAt` | Datetime | No | +| `deliveredRunId` | UUID | Yes | +| `id` | UUID | No | +| `kind` | String | Yes | +| `model` | String | Yes | +| `parts` | JSON | Yes | +| `threadId` | UUID | Yes | +| `updatedAt` | Datetime | No | +| `visibility` | String | Yes | + +**Operations:** + +```typescript +// List all platformAgentMessage records +const items = await db.platformAgentMessage.findMany({ select: { actorId: true, agentId: true, authorRole: true, createdAt: true, deliveredRunId: true, id: true, kind: true, model: true, parts: true, threadId: true, updatedAt: true, visibility: true } }).execute(); + +// Get one by id +const item = await db.platformAgentMessage.findOne({ id: '', select: { actorId: true, agentId: true, authorRole: true, createdAt: true, deliveredRunId: true, id: true, kind: true, model: true, parts: true, threadId: true, updatedAt: true, visibility: true } }).execute(); + +// Create +const created = await db.platformAgentMessage.create({ data: { actorId: '', agentId: '', authorRole: '', deliveredRunId: '', kind: '', model: '', parts: '', threadId: '', visibility: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformAgentMessage.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformAgentMessage.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformAgentPersona` + +CRUD operations for PlatformAgentPersona records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `config` | JSON | Yes | +| `createdAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | +| `description` | String | Yes | +| `id` | UUID | No | +| `isActive` | Boolean | Yes | +| `name` | String | Yes | +| `resources` | String | Yes | +| `slug` | String | Yes | +| `systemPrompt` | String | Yes | +| `updatedAt` | Datetime | No | +| `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | + +**Operations:** + +```typescript +// List all platformAgentPersona records +const items = await db.platformAgentPersona.findMany({ select: { config: true, createdAt: true, createdBy: true, createdByPrincipal: true, description: true, id: true, isActive: true, name: true, resources: true, slug: true, systemPrompt: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Get one by id +const item = await db.platformAgentPersona.findOne({ id: '', select: { config: true, createdAt: true, createdBy: true, createdByPrincipal: true, description: true, id: true, isActive: true, name: true, resources: true, slug: true, systemPrompt: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Create +const created = await db.platformAgentPersona.create({ data: { config: '', createdBy: '', createdByPrincipal: '', description: '', isActive: '', name: '', resources: '', slug: '', systemPrompt: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformAgentPersona.update({ where: { id: '' }, data: { config: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformAgentPersona.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformAgentPlan` + +CRUD operations for PlatformAgentPlan records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `createdAt` | Datetime | No | +| `description` | String | Yes | +| `id` | UUID | No | +| `ownerId` | UUID | Yes | +| `status` | String | Yes | +| `threadId` | UUID | Yes | +| `title` | String | Yes | +| `updatedAt` | Datetime | No | +| `visibility` | String | Yes | + +**Operations:** + +```typescript +// List all platformAgentPlan records +const items = await db.platformAgentPlan.findMany({ select: { createdAt: true, description: true, id: true, ownerId: true, status: true, threadId: true, title: true, updatedAt: true, visibility: true } }).execute(); + +// Get one by id +const item = await db.platformAgentPlan.findOne({ id: '', select: { createdAt: true, description: true, id: true, ownerId: true, status: true, threadId: true, title: true, updatedAt: true, visibility: true } }).execute(); + +// Create +const created = await db.platformAgentPlan.create({ data: { description: '', ownerId: '', status: '', threadId: '', title: '', visibility: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformAgentPlan.update({ where: { id: '' }, data: { description: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformAgentPlan.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformAgentPrompt` + +CRUD operations for PlatformAgentPrompt records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `content` | String | Yes | +| `createdAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | +| `description` | String | Yes | +| `id` | UUID | No | +| `isDefault` | Boolean | Yes | +| `metadata` | JSON | Yes | +| `name` | String | Yes | +| `updatedAt` | Datetime | No | +| `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | + +**Operations:** + +```typescript +// List all platformAgentPrompt records +const items = await db.platformAgentPrompt.findMany({ select: { content: true, createdAt: true, createdBy: true, createdByPrincipal: true, description: true, id: true, isDefault: true, metadata: true, name: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Get one by id +const item = await db.platformAgentPrompt.findOne({ id: '', select: { content: true, createdAt: true, createdBy: true, createdByPrincipal: true, description: true, id: true, isDefault: true, metadata: true, name: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Create +const created = await db.platformAgentPrompt.create({ data: { content: '', createdBy: '', createdByPrincipal: '', description: '', isDefault: '', metadata: '', name: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformAgentPrompt.update({ where: { id: '' }, data: { content: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformAgentPrompt.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformAgentResourceChunk` + +CRUD operations for PlatformAgentResourceChunk records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `body` | String | Yes | +| `chunkIndex` | Int | Yes | +| `createdAt` | Datetime | No | +| `embedding` | Vector | Yes | +| `embeddingVectorDistance` | Float | Yes | +| `id` | UUID | No | +| `metadata` | JSON | Yes | +| `platformAgentResourceId` | UUID | Yes | +| `searchScore` | Float | Yes | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all platformAgentResourceChunk records +const items = await db.platformAgentResourceChunk.findMany({ select: { body: true, chunkIndex: true, createdAt: true, embedding: true, embeddingVectorDistance: true, id: true, metadata: true, platformAgentResourceId: true, searchScore: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.platformAgentResourceChunk.findOne({ id: '', select: { body: true, chunkIndex: true, createdAt: true, embedding: true, embeddingVectorDistance: true, id: true, metadata: true, platformAgentResourceId: true, searchScore: true, updatedAt: true } }).execute(); + +// Create +const created = await db.platformAgentResourceChunk.create({ data: { body: '', chunkIndex: '', embedding: '', embeddingVectorDistance: '', metadata: '', platformAgentResourceId: '', searchScore: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformAgentResourceChunk.update({ where: { id: '' }, data: { body: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformAgentResourceChunk.delete({ where: { id: '' } }).execute(); +``` + +> **pgvector embedding fields:** `embedding` +> High-dimensional vector columns for semantic similarity search. Query via the Unified Search API pgvector adapter using cosine, L2, or inner-product distance. + +### `db.platformAgentResource` + +CRUD operations for PlatformAgentResource records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `archivedAt` | Datetime | Yes | +| `body` | String | Yes | +| `bodyTrgmSimilarity` | Float | Yes | +| `createdAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | +| `description` | String | Yes | +| `descriptionTrgmSimilarity` | Float | Yes | +| `embedding` | Vector | Yes | +| `embeddingUpdatedAt` | Datetime | Yes | +| `embeddingVectorDistance` | Float | Yes | +| `id` | UUID | No | +| `isActive` | Boolean | Yes | +| `isArchived` | Boolean | Yes | +| `keywords` | String | Yes | +| `kind` | String | Yes | +| `kindTrgmSimilarity` | Float | Yes | +| `metadata` | JSON | Yes | +| `search` | FullText | Yes | +| `searchScore` | Float | Yes | +| `searchTsvRank` | Float | Yes | +| `slug` | String | Yes | +| `title` | String | Yes | +| `titleTrgmSimilarity` | Float | Yes | +| `updatedAt` | Datetime | No | +| `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | + +**Operations:** + +```typescript +// List all platformAgentResource records +const items = await db.platformAgentResource.findMany({ select: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Get one by id +const item = await db.platformAgentResource.findOne({ id: '', select: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Create +const created = await db.platformAgentResource.create({ data: { archivedAt: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', isActive: '', isArchived: '', keywords: '', kind: '', kindTrgmSimilarity: '', metadata: '', search: '', searchScore: '', searchTsvRank: '', slug: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformAgentResource.update({ where: { id: '' }, data: { archivedAt: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformAgentResource.delete({ where: { id: '' } }).execute(); +``` + +> **pgvector embedding fields:** `embedding` +> High-dimensional vector columns for semantic similarity search. Query via the Unified Search API pgvector adapter using cosine, L2, or inner-product distance. + +> **Unified Search API fields:** `search` +> Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. + +### `db.platformAgentRun` + +CRUD operations for PlatformAgentRun records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `actorId` | UUID | Yes | +| `artifacts` | JSON | Yes | +| `attempt` | Int | Yes | +| `baseCommit` | String | Yes | +| `branch` | String | Yes | +| `createdAt` | Datetime | No | +| `databaseId` | UUID | Yes | +| `deadlineAt` | Datetime | Yes | +| `entityId` | UUID | Yes | +| `error` | String | Yes | +| `executionId` | UUID | Yes | +| `finishedAt` | Datetime | Yes | +| `headCommit` | String | Yes | +| `id` | UUID | No | +| `lastEventSeq` | Int | Yes | +| `parentRunId` | UUID | Yes | +| `placement` | String | Yes | +| `principalId` | UUID | Yes | +| `repoUrl` | String | Yes | +| `startedAt` | Datetime | Yes | +| `status` | String | Yes | +| `threadId` | UUID | Yes | +| `tokenUsage` | JSON | Yes | +| `totalCost` | BigFloat | Yes | +| `updatedAt` | Datetime | No | +| `visibility` | String | Yes | + +**Operations:** + +```typescript +// List all platformAgentRun records +const items = await db.platformAgentRun.findMany({ select: { actorId: true, artifacts: true, attempt: true, baseCommit: true, branch: true, createdAt: true, databaseId: true, deadlineAt: true, entityId: true, error: true, executionId: true, finishedAt: true, headCommit: true, id: true, lastEventSeq: true, parentRunId: true, placement: true, principalId: true, repoUrl: true, startedAt: true, status: true, threadId: true, tokenUsage: true, totalCost: true, updatedAt: true, visibility: true } }).execute(); + +// Get one by id +const item = await db.platformAgentRun.findOne({ id: '', select: { actorId: true, artifacts: true, attempt: true, baseCommit: true, branch: true, createdAt: true, databaseId: true, deadlineAt: true, entityId: true, error: true, executionId: true, finishedAt: true, headCommit: true, id: true, lastEventSeq: true, parentRunId: true, placement: true, principalId: true, repoUrl: true, startedAt: true, status: true, threadId: true, tokenUsage: true, totalCost: true, updatedAt: true, visibility: true } }).execute(); + +// Create +const created = await db.platformAgentRun.create({ data: { actorId: '', artifacts: '', attempt: '', baseCommit: '', branch: '', databaseId: '', deadlineAt: '', entityId: '', error: '', executionId: '', finishedAt: '', headCommit: '', lastEventSeq: '', parentRunId: '', placement: '', principalId: '', repoUrl: '', startedAt: '', status: '', threadId: '', tokenUsage: '', totalCost: '', visibility: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformAgentRun.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformAgentRun.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformAgentRunWorkspace` + +CRUD operations for PlatformAgentRunWorkspace records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `actorId` | UUID | Yes | +| `artifacts` | JSON | Yes | +| `baseBranch` | String | Yes | +| `baseCommit` | String | Yes | +| `branch` | String | Yes | +| `clonedAt` | Datetime | Yes | +| `createdAt` | Datetime | No | +| `headCommit` | String | Yes | +| `id` | UUID | No | +| `lastUsedAt` | Datetime | Yes | +| `ordinal` | Int | Yes | +| `provider` | String | Yes | +| `publication` | String | Yes | +| `repo` | String | Yes | +| `repositoryId` | UUID | Yes | +| `runId` | UUID | Yes | +| `state` | String | Yes | +| `updatedAt` | Datetime | No | +| `visibility` | String | Yes | + +**Operations:** + +```typescript +// List all platformAgentRunWorkspace records +const items = await db.platformAgentRunWorkspace.findMany({ select: { actorId: true, artifacts: true, baseBranch: true, baseCommit: true, branch: true, clonedAt: true, createdAt: true, headCommit: true, id: true, lastUsedAt: true, ordinal: true, provider: true, publication: true, repo: true, repositoryId: true, runId: true, state: true, updatedAt: true, visibility: true } }).execute(); + +// Get one by id +const item = await db.platformAgentRunWorkspace.findOne({ id: '', select: { actorId: true, artifacts: true, baseBranch: true, baseCommit: true, branch: true, clonedAt: true, createdAt: true, headCommit: true, id: true, lastUsedAt: true, ordinal: true, provider: true, publication: true, repo: true, repositoryId: true, runId: true, state: true, updatedAt: true, visibility: true } }).execute(); + +// Create +const created = await db.platformAgentRunWorkspace.create({ data: { actorId: '', artifacts: '', baseBranch: '', baseCommit: '', branch: '', clonedAt: '', headCommit: '', lastUsedAt: '', ordinal: '', provider: '', publication: '', repo: '', repositoryId: '', runId: '', state: '', visibility: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformAgentRunWorkspace.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformAgentRunWorkspace.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformAgentTask` + +CRUD operations for PlatformAgentTask records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `actorId` | UUID | Yes | +| `approvalFeedback` | String | Yes | +| `approvalStatus` | String | Yes | +| `approvedAt` | Datetime | Yes | +| `approvedBy` | UUID | Yes | +| `createdAt` | Datetime | No | +| `description` | String | Yes | +| `error` | String | Yes | +| `id` | UUID | No | +| `orderIndex` | Int | Yes | +| `planId` | UUID | Yes | +| `requiresApproval` | Boolean | Yes | +| `source` | String | Yes | +| `status` | String | Yes | +| `updatedAt` | Datetime | No | +| `visibility` | String | Yes | + +**Operations:** + +```typescript +// List all platformAgentTask records +const items = await db.platformAgentTask.findMany({ select: { actorId: true, approvalFeedback: true, approvalStatus: true, approvedAt: true, approvedBy: true, createdAt: true, description: true, error: true, id: true, orderIndex: true, planId: true, requiresApproval: true, source: true, status: true, updatedAt: true, visibility: true } }).execute(); + +// Get one by id +const item = await db.platformAgentTask.findOne({ id: '', select: { actorId: true, approvalFeedback: true, approvalStatus: true, approvedAt: true, approvedBy: true, createdAt: true, description: true, error: true, id: true, orderIndex: true, planId: true, requiresApproval: true, source: true, status: true, updatedAt: true, visibility: true } }).execute(); + +// Create +const created = await db.platformAgentTask.create({ data: { actorId: '', approvalFeedback: '', approvalStatus: '', approvedAt: '', approvedBy: '', description: '', error: '', orderIndex: '', planId: '', requiresApproval: '', source: '', status: '', visibility: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformAgentTask.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformAgentTask.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformAgentThread` + +CRUD operations for PlatformAgentThread records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `agentId` | UUID | Yes | +| `archivedAt` | Datetime | Yes | +| `createdAt` | Datetime | No | +| `id` | UUID | No | +| `isArchived` | Boolean | Yes | +| `mode` | String | Yes | +| `model` | String | Yes | +| `ownerId` | UUID | Yes | +| `parentThreadId` | UUID | Yes | +| `promptTemplateId` | UUID | Yes | +| `status` | String | Yes | +| `systemPrompt` | String | Yes | +| `tags` | String | Yes | +| `title` | String | Yes | +| `updatedAt` | Datetime | No | +| `visibility` | String | Yes | + +**Operations:** + +```typescript +// List all platformAgentThread records +const items = await db.platformAgentThread.findMany({ select: { agentId: true, archivedAt: true, createdAt: true, id: true, isArchived: true, mode: true, model: true, ownerId: true, parentThreadId: true, promptTemplateId: true, status: true, systemPrompt: true, tags: true, title: true, updatedAt: true, visibility: true } }).execute(); + +// Get one by id +const item = await db.platformAgentThread.findOne({ id: '', select: { agentId: true, archivedAt: true, createdAt: true, id: true, isArchived: true, mode: true, model: true, ownerId: true, parentThreadId: true, promptTemplateId: true, status: true, systemPrompt: true, tags: true, title: true, updatedAt: true, visibility: true } }).execute(); + +// Create +const created = await db.platformAgentThread.create({ data: { agentId: '', archivedAt: '', isArchived: '', mode: '', model: '', ownerId: '', parentThreadId: '', promptTemplateId: '', status: '', systemPrompt: '', tags: '', title: '', visibility: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformAgentThread.update({ where: { id: '' }, data: { agentId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformAgentThread.delete({ where: { id: '' } }).execute(); +``` + ## Custom Operations ### `db.mutation.provisionBucket` -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. +Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. - **Type:** mutation - **Arguments:** diff --git a/sdk/constructive-react/src/agent/orm/index.ts b/sdk/constructive-react/src/agent/orm/index.ts index 5ca8fcc3eb..ebb397965b 100644 --- a/sdk/constructive-react/src/agent/orm/index.ts +++ b/sdk/constructive-react/src/agent/orm/index.ts @@ -14,6 +14,18 @@ import { AgentResourceChunkModel } from './models/agentResourceChunk'; import { AgentResourceModel } from './models/agentResource'; import { AgentTaskModel } from './models/agentTask'; import { AgentThreadModel } from './models/agentThread'; +import { PlatformAgentModel } from './models/platformAgent'; +import { PlatformAgentEventModel } from './models/platformAgentEvent'; +import { PlatformAgentMessageModel } from './models/platformAgentMessage'; +import { PlatformAgentPersonaModel } from './models/platformAgentPersona'; +import { PlatformAgentPlanModel } from './models/platformAgentPlan'; +import { PlatformAgentPromptModel } from './models/platformAgentPrompt'; +import { PlatformAgentResourceChunkModel } from './models/platformAgentResourceChunk'; +import { PlatformAgentResourceModel } from './models/platformAgentResource'; +import { PlatformAgentRunModel } from './models/platformAgentRun'; +import { PlatformAgentRunWorkspaceModel } from './models/platformAgentRunWorkspace'; +import { PlatformAgentTaskModel } from './models/platformAgentTask'; +import { PlatformAgentThreadModel } from './models/platformAgentThread'; import { createMutationOperations } from './mutation'; export type { OrmClientConfig, QueryResult, GraphQLError, GraphQLAdapter } from './client'; export { GraphQLRequestError, FetchAdapter } from './client'; @@ -56,6 +68,18 @@ export function createClient(config: OrmClientConfig) { agentResource: new AgentResourceModel(client), agentTask: new AgentTaskModel(client), agentThread: new AgentThreadModel(client), + platformAgent: new PlatformAgentModel(client), + platformAgentEvent: new PlatformAgentEventModel(client), + platformAgentMessage: new PlatformAgentMessageModel(client), + platformAgentPersona: new PlatformAgentPersonaModel(client), + platformAgentPlan: new PlatformAgentPlanModel(client), + platformAgentPrompt: new PlatformAgentPromptModel(client), + platformAgentResourceChunk: new PlatformAgentResourceChunkModel(client), + platformAgentResource: new PlatformAgentResourceModel(client), + platformAgentRun: new PlatformAgentRunModel(client), + platformAgentRunWorkspace: new PlatformAgentRunWorkspaceModel(client), + platformAgentTask: new PlatformAgentTaskModel(client), + platformAgentThread: new PlatformAgentThreadModel(client), mutation: createMutationOperations(client), }; } diff --git a/sdk/constructive-react/src/agent/orm/input-types.ts b/sdk/constructive-react/src/agent/orm/input-types.ts index dd84bc366e..afbd94a971 100644 --- a/sdk/constructive-react/src/agent/orm/input-types.ts +++ b/sdk/constructive-react/src/agent/orm/input-types.ts @@ -267,6 +267,8 @@ export interface AgentMessage { /** Database that owns this resource (database-scoped isolation) */ databaseId?: string | null; id: string; + /** Turn kind: user, assistant, system, or interrupt (arrived mid-run and redirects it) */ + kind?: string | null; /** LLM model that generated this response */ model?: string | null; /** Message content: TextPart and ToolPart array */ @@ -274,6 +276,8 @@ export interface AgentMessage { /** Foreign key to agent_thread */ threadId?: string | null; updatedAt?: string | null; + /** Who may read this message, inherited from the thread */ + visibility?: string | null; } /** Agent persona templates (role, system prompt, default skills/knowledge) */ export interface AgentPersona { @@ -281,6 +285,7 @@ export interface AgentPersona { config?: Record | null; createdAt?: string | null; createdBy?: string | null; + createdByPrincipal?: string | null; /** Database that owns this resource (database-scoped isolation) */ databaseId?: string | null; /** Brief description of this persona role */ @@ -298,6 +303,7 @@ export interface AgentPersona { systemPrompt?: string | null; updatedAt?: string | null; updatedBy?: string | null; + updatedByPrincipal?: string | null; } /** Workflow plan attached to an agent thread with ordered tasks and optional approval gates */ export interface AgentPlan { @@ -316,6 +322,8 @@ export interface AgentPlan { /** Human-readable plan name */ title?: string | null; updatedAt?: string | null; + /** Who may read this plan, inherited from the thread */ + visibility?: string | null; } /** Shared system prompt templates for agent conversations */ export interface AgentPrompt { @@ -323,6 +331,7 @@ export interface AgentPrompt { content?: string | null; createdAt?: string | null; createdBy?: string | null; + createdByPrincipal?: string | null; /** Database that owns this resource (database-scoped isolation) */ databaseId?: string | null; /** What this prompt template is for */ @@ -336,12 +345,15 @@ export interface AgentPrompt { name?: string | null; updatedAt?: string | null; updatedBy?: string | null; + updatedByPrincipal?: string | null; } export interface AgentResourceChunk { agentResourceId?: string | null; body?: string | null; chunkIndex?: number | null; createdAt?: string | null; + /** Policy-required field derived from source table (used by AuthzRelatedEntityMembership) */ + databaseId?: string | null; embedding?: number[] | null; /** VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. */ embeddingVectorDistance?: number | null; @@ -361,6 +373,7 @@ export interface AgentResource { bodyTrgmSimilarity?: number | null; createdAt?: string | null; createdBy?: string | null; + createdByPrincipal?: string | null; /** Database that owns this resource (database-scoped isolation) */ databaseId?: string | null; /** Brief description of this resource */ @@ -397,6 +410,7 @@ export interface AgentResource { titleTrgmSimilarity?: number | null; updatedAt?: string | null; updatedBy?: string | null; + updatedByPrincipal?: string | null; } /** Task within a plan, with ordering and optional approval gates */ export interface AgentTask { @@ -429,6 +443,8 @@ export interface AgentTask { /** Current status of this task */ status?: string | null; updatedAt?: string | null; + /** Who may read this task, inherited from its parent */ + visibility?: string | null; } /** Top-level AI/LLM conversation thread */ export interface AgentThread { @@ -461,6 +477,353 @@ export interface AgentThread { /** Human-readable conversation title */ title?: string | null; updatedAt?: string | null; + /** Who may read this thread: private (owner only) or entity (the scope's members) */ + visibility?: string | null; +} +/** Agent instance registry (human-managed or ephemeral sub-agents) */ +export interface PlatformAgent { + /** Per-instance config overrides (model, temperature, tools) */ + config?: Record | null; + createdAt?: string | null; + id: string; + /** If true, agent is deleted when its spawning thread is deleted */ + isEphemeral?: boolean | null; + /** Display name for this agent instance */ + name?: string | null; + /** Human who owns/manages this agent */ + ownerId?: string | null; + /** Parent agent (for sub-agent delegation hierarchy) */ + parentId?: string | null; + /** Persona template this agent was created from */ + personaId?: string | null; + /** Agent lifecycle status: active, paused, terminated */ + status?: string | null; + /** System prompt override (NULL = inherit from persona) */ + systemPrompt?: string | null; + updatedAt?: string | null; +} +/** Append-only transcript of an agent run: one agent session entry per row, stored verbatim */ +export interface PlatformAgentEvent { + /** User whose run this entry belongs to, inherited from the run */ + actorId?: string | null; + createdAt?: string | null; + /** The agent session entry, verbatim — every rendered surface is a projection of it */ + entry?: Record | null; + id: string; + /** When the writer produced this entry, by its own clock */ + recordedAt?: string | null; + /** Foreign key to agent_run */ + runId?: string | null; + /** Position of this entry in the run, 1-based and gapless */ + seq?: number | null; + /** Transcript format this entry is encoded in */ + transcriptFormat?: string | null; + /** Version of that transcript format this entry was written in */ + transcriptVersion?: number | null; + updatedAt?: string | null; + /** Who may read this entry, inherited from the run */ + visibility?: string | null; +} +/** Message within an agent thread with TextPart/ToolPart jsonb parts */ +export interface PlatformAgentMessage { + /** User who authored this message */ + actorId?: string | null; + /** Agent that authored this message (NULL for human messages) */ + agentId?: string | null; + /** Who authored this message: user or assistant */ + authorRole?: string | null; + createdAt?: string | null; + /** Run that consumed this message; null while it is still queued */ + deliveredRunId?: string | null; + id: string; + /** Turn kind: user, assistant, system, or interrupt (arrived mid-run and redirects it) */ + kind?: string | null; + /** LLM model that generated this response */ + model?: string | null; + /** Message content: TextPart and ToolPart array */ + parts?: Record | null; + /** Foreign key to agent_thread */ + threadId?: string | null; + updatedAt?: string | null; + /** Who may read this message, inherited from the thread */ + visibility?: string | null; +} +/** Agent persona templates (role, system prompt, default skills/knowledge) */ +export interface PlatformAgentPersona { + /** Model preferences, temperature, tool access, constraints */ + config?: Record | null; + createdAt?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + /** Brief description of this persona role */ + description?: string | null; + id: string; + /** Whether this persona is available for use */ + isActive?: boolean | null; + /** Display name for this persona */ + name?: string | null; + /** Slugs of agent_resource entries to link when spawning */ + resources?: string[] | null; + /** Unique human-readable identifier for this persona */ + slug?: string | null; + /** Default system prompt for agents using this persona */ + systemPrompt?: string | null; + updatedAt?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +/** Workflow plan attached to an agent thread with ordered tasks and optional approval gates */ +export interface PlatformAgentPlan { + createdAt?: string | null; + /** Overall goal or context for this plan */ + description?: string | null; + id: string; + /** User who owns this plan */ + ownerId?: string | null; + /** Plan lifecycle: draft, active, completed, failed, cancelled */ + status?: string | null; + /** Foreign key to agent_thread */ + threadId?: string | null; + /** Human-readable plan name */ + title?: string | null; + updatedAt?: string | null; + /** Who may read this plan, inherited from the thread */ + visibility?: string | null; +} +/** Shared system prompt templates for agent conversations */ +export interface PlatformAgentPrompt { + /** The system prompt template content */ + content?: string | null; + createdAt?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + /** What this prompt template is for */ + description?: string | null; + id: string; + /** Whether this is the default prompt for the entity/app */ + isDefault?: boolean | null; + /** Variables, tags, category metadata */ + metadata?: Record | null; + /** Unique name for lookup (e.g. default, code-review, sales-assistant) */ + name?: string | null; + updatedAt?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +export interface PlatformAgentResourceChunk { + body?: string | null; + chunkIndex?: number | null; + createdAt?: string | null; + embedding?: number[] | null; + /** VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. */ + embeddingVectorDistance?: number | null; + id: string; + metadata?: Record | null; + platformAgentResourceId?: string | null; + /** Composite search relevance score (0..1, higher = more relevant). Computed using Reciprocal Rank Fusion (RRF) across all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. */ + searchScore?: number | null; + updatedAt?: string | null; +} +/** Unified skills and knowledge resources for agent retrieval */ +export interface PlatformAgentResource { + /** Timestamp when this record was archived, NULL if active */ + archivedAt?: string | null; + /** Full content (instructions for skills, reference text for knowledge) */ + body?: string | null; + /** TRGM similarity when searching `body`. Returns null when no trgm search filter is active. */ + bodyTrgmSimilarity?: number | null; + createdAt?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + /** Brief description of this resource */ + description?: string | null; + /** TRGM similarity when searching `description`. Returns null when no trgm search filter is active. */ + descriptionTrgmSimilarity?: number | null; + embedding?: number[] | null; + embeddingUpdatedAt?: string | null; + /** VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. */ + embeddingVectorDistance?: number | null; + id: string; + /** Whether this resource is active and retrievable */ + isActive?: boolean | null; + /** Whether this record has been archived by the user */ + isArchived?: boolean | null; + /** Keywords for deterministic retrieval routing */ + keywords?: string[] | null; + /** Resource type: skill, knowledge, or convention */ + kind?: string | null; + /** TRGM similarity when searching `kind`. Returns null when no trgm search filter is active. */ + kindTrgmSimilarity?: number | null; + /** Structured metadata: category, version, author, custom attributes */ + metadata?: Record | null; + search?: string | null; + /** Composite search relevance score (0..1, higher = more relevant). Computed using Reciprocal Rank Fusion (RRF) across all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. */ + searchScore?: number | null; + /** TSV rank when searching `search`. Returns null when no tsv search filter is active. */ + searchTsvRank?: number | null; + /** Unique human-readable identifier for portable references */ + slug?: string | null; + /** Resource name or title */ + title?: string | null; + /** TRGM similarity when searching `title`. Returns null when no trgm search filter is active. */ + titleTrgmSimilarity?: number | null; + updatedAt?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +/** One supervised agent run of a thread: its placement, workspace, cursor and artifacts */ +export interface PlatformAgentRun { + /** User who invoked this run (audit/provenance; billing is entity_id) */ + actorId?: string | null; + /** What the run produced: commits, diffs, pull requests, usage totals */ + artifacts?: Record | null; + /** Attempt number within this run lineage */ + attempt?: number | null; + /** Commit the run started from */ + baseCommit?: string | null; + /** Branch the run commits to */ + branch?: string | null; + createdAt?: string | null; + /** Tenant database this run is attributed to (usage/billing attribution) */ + databaseId?: string | null; + /** When a supervisor should consider this run abandoned */ + deadlineAt?: string | null; + /** Entity billed for this run: an org the actor invoked on behalf of, or the actor themselves */ + entityId?: string | null; + /** Failure reason when status is failed */ + error?: string | null; + /** Execution currently attached to this run, by id and without a foreign key; null when the run holds no compute */ + executionId?: string | null; + /** When the run reached a terminal status */ + finishedAt?: string | null; + /** Commit the run has reached */ + headCommit?: string | null; + id: string; + /** Highest event seq appended for this run; 0 before the first event */ + lastEventSeq?: number | null; + /** Run this one retries, by id and without a foreign key so lineage survives pruning */ + parentRunId?: string | null; + /** Where this run executes: cloud (a job) or local (an embedded host) */ + placement?: string | null; + /** Principal that invoked this run; equals actor_id when the actor acted directly */ + principalId?: string | null; + /** Git remote the run works against — the workspace sync protocol */ + repoUrl?: string | null; + /** When the run began executing */ + startedAt?: string | null; + /** Lifecycle state: pending, running, waiting, idle, interrupted, succeeded, failed, cancelled */ + status?: string | null; + /** Foreign key to agent_thread */ + threadId?: string | null; + /** Token counts this run accumulated, per model, as the runtime reports them; null until settled */ + tokenUsage?: Record | null; + /** Settled cost of this run in the billing currency, summarising its metered rows; null until settled */ + totalCost?: string | null; + updatedAt?: string | null; + /** Who may read this run, inherited from the thread */ + visibility?: string | null; +} +/** One repository an agent run works in: its remote, branch, commits and how the work is published */ +export interface PlatformAgentRunWorkspace { + /** User whose run this workspace belongs to, inherited from the run */ + actorId?: string | null; + /** What publishing this workspace produced: diff stats, a pull request, a stored patch */ + artifacts?: Record | null; + /** Branch the workspace was cut from, and what a pull request merges into */ + baseBranch?: string | null; + /** Commit the workspace was cut from; fixed once recorded */ + baseCommit?: string | null; + /** Branch this run commits to in this repository */ + branch?: string | null; + /** When an execution first cloned this workspace */ + clonedAt?: string | null; + createdAt?: string | null; + /** Commit the work in this repository has reached */ + headCommit?: string | null; + id: string; + /** When an execution last worked in this workspace; what a reclaim policy reads */ + lastUsedAt?: string | null; + /** Position of this workspace among the run's, 1-based and in clone order */ + ordinal?: number | null; + /** Git host this workspace was cloned from, as the runtime names it: github, local */ + provider?: string | null; + /** How the work is published: pull_request, push, patch_artifact or none */ + publication?: string | null; + /** Repository as its provider names it (owner/name) */ + repo?: string | null; + /** Catalog repository this workspace was cloned from, when the platform hosts it */ + repositoryId?: string | null; + /** Foreign key to agent_run */ + runId?: string | null; + /** Whether the tree still exists: active (on disk), cold (reclaimed, restorable from head_commit) or purged */ + state?: string | null; + updatedAt?: string | null; + /** Who may read this workspace, inherited from the run */ + visibility?: string | null; +} +/** Task within a plan, with ordering and optional approval gates */ +export interface PlatformAgentTask { + /** User who authored this task */ + actorId?: string | null; + /** Reviewer feedback or reason for the decision */ + approvalFeedback?: string | null; + /** Approval decision: pending, approved, rejected (NULL if not an approval task) */ + approvalStatus?: string | null; + /** Timestamp of the approval or rejection decision */ + approvedAt?: string | null; + /** User who approved or rejected this task */ + approvedBy?: string | null; + createdAt?: string | null; + /** Natural-language description of the work to do */ + description?: string | null; + /** Error message captured when the task failed */ + error?: string | null; + id: string; + /** Position within the plan (for ordered task lists) */ + orderIndex?: number | null; + /** Foreign key to agent_plan */ + planId?: string | null; + /** Whether this task is an approval gate requiring human decision */ + requiresApproval?: boolean | null; + /** Who created the task: agent or user */ + source?: string | null; + /** Current status of this task */ + status?: string | null; + updatedAt?: string | null; + /** Who may read this task, inherited from its parent */ + visibility?: string | null; +} +/** Top-level AI/LLM conversation thread */ +export interface PlatformAgentThread { + /** Agent instance assigned to this thread */ + agentId?: string | null; + /** Timestamp when this record was archived, NULL if active */ + archivedAt?: string | null; + createdAt?: string | null; + id: string; + /** Whether this record has been archived by the user */ + isArchived?: boolean | null; + /** Conversation mode: ask (plain Q&A) or agent (tool-enabled) */ + mode?: string | null; + /** LLM model id this thread is bound to */ + model?: string | null; + /** User who owns this thread */ + ownerId?: string | null; + /** Parent thread that spawned this sub-conversation */ + parentThreadId?: string | null; + /** Optional FK to a shared prompt template */ + promptTemplateId?: string | null; + /** Current status of this thread */ + status?: string | null; + /** System prompt active for this thread */ + systemPrompt?: string | null; + /** User-defined labels for organizing and filtering threads */ + tags?: string[] | null; + /** Human-readable conversation title */ + title?: string | null; + updatedAt?: string | null; + /** Who may read this thread: private (owner only) or entity (the scope's members) */ + visibility?: string | null; } // ============ Relation Helper Types ============ export interface ConnectionResult { @@ -513,6 +876,58 @@ export interface AgentThreadRelations { agentPlansByThreadId?: ConnectionResult; agentThreadsByParentThreadId?: ConnectionResult; } +export interface PlatformAgentRelations { + parent?: PlatformAgent | null; + persona?: PlatformAgentPersona | null; + childPlatformAgents?: ConnectionResult; + platformAgentMessagesByAgentId?: ConnectionResult; + platformAgentThreadsByAgentId?: ConnectionResult; +} +export interface PlatformAgentEventRelations { + run?: PlatformAgentRun | null; +} +export interface PlatformAgentMessageRelations { + agent?: PlatformAgent | null; + deliveredRun?: PlatformAgentRun | null; + thread?: PlatformAgentThread | null; +} +export interface PlatformAgentPersonaRelations { + platformAgentsByPersonaId?: ConnectionResult; +} +export interface PlatformAgentPlanRelations { + thread?: PlatformAgentThread | null; + platformAgentTasksByPlanId?: ConnectionResult; +} +export interface PlatformAgentPromptRelations { + platformAgentThreadsByPromptTemplateId?: ConnectionResult; +} +export interface PlatformAgentResourceChunkRelations { + platformAgentResource?: PlatformAgentResource | null; +} +export interface PlatformAgentResourceRelations { + platformAgentResourceChunks?: ConnectionResult; +} +export interface PlatformAgentRunRelations { + thread?: PlatformAgentThread | null; + platformAgentEventsByRunId?: ConnectionResult; + platformAgentMessagesByDeliveredRunId?: ConnectionResult; + platformAgentRunWorkspacesByRunId?: ConnectionResult; +} +export interface PlatformAgentRunWorkspaceRelations { + run?: PlatformAgentRun | null; +} +export interface PlatformAgentTaskRelations { + plan?: PlatformAgentPlan | null; +} +export interface PlatformAgentThreadRelations { + agent?: PlatformAgent | null; + parentThread?: PlatformAgentThread | null; + promptTemplate?: PlatformAgentPrompt | null; + platformAgentMessagesByThreadId?: ConnectionResult; + platformAgentPlansByThreadId?: ConnectionResult; + platformAgentRunsByThreadId?: ConnectionResult; + platformAgentThreadsByParentThreadId?: ConnectionResult; +} // ============ Entity Types With Relations ============ export type AgentWithRelations = Agent & AgentRelations; export type AgentMessageWithRelations = AgentMessage & AgentMessageRelations; @@ -523,6 +938,23 @@ export type AgentResourceChunkWithRelations = AgentResourceChunk & AgentResource export type AgentResourceWithRelations = AgentResource & AgentResourceRelations; export type AgentTaskWithRelations = AgentTask & AgentTaskRelations; export type AgentThreadWithRelations = AgentThread & AgentThreadRelations; +export type PlatformAgentWithRelations = PlatformAgent & PlatformAgentRelations; +export type PlatformAgentEventWithRelations = PlatformAgentEvent & PlatformAgentEventRelations; +export type PlatformAgentMessageWithRelations = PlatformAgentMessage & + PlatformAgentMessageRelations; +export type PlatformAgentPersonaWithRelations = PlatformAgentPersona & + PlatformAgentPersonaRelations; +export type PlatformAgentPlanWithRelations = PlatformAgentPlan & PlatformAgentPlanRelations; +export type PlatformAgentPromptWithRelations = PlatformAgentPrompt & PlatformAgentPromptRelations; +export type PlatformAgentResourceChunkWithRelations = PlatformAgentResourceChunk & + PlatformAgentResourceChunkRelations; +export type PlatformAgentResourceWithRelations = PlatformAgentResource & + PlatformAgentResourceRelations; +export type PlatformAgentRunWithRelations = PlatformAgentRun & PlatformAgentRunRelations; +export type PlatformAgentRunWorkspaceWithRelations = PlatformAgentRunWorkspace & + PlatformAgentRunWorkspaceRelations; +export type PlatformAgentTaskWithRelations = PlatformAgentTask & PlatformAgentTaskRelations; +export type PlatformAgentThreadWithRelations = PlatformAgentThread & PlatformAgentThreadRelations; // ============ Entity Select Types ============ export type AgentSelect = { config?: boolean; @@ -569,10 +1001,12 @@ export type AgentMessageSelect = { createdAt?: boolean; databaseId?: boolean; id?: boolean; + kind?: boolean; model?: boolean; parts?: boolean; threadId?: boolean; updatedAt?: boolean; + visibility?: boolean; agent?: { select: AgentSelect; }; @@ -584,6 +1018,7 @@ export type AgentPersonaSelect = { config?: boolean; createdAt?: boolean; createdBy?: boolean; + createdByPrincipal?: boolean; databaseId?: boolean; description?: boolean; id?: boolean; @@ -594,6 +1029,7 @@ export type AgentPersonaSelect = { systemPrompt?: boolean; updatedAt?: boolean; updatedBy?: boolean; + updatedByPrincipal?: boolean; agentsByPersonaId?: { select: AgentSelect; first?: number; @@ -611,6 +1047,7 @@ export type AgentPlanSelect = { threadId?: boolean; title?: boolean; updatedAt?: boolean; + visibility?: boolean; thread?: { select: AgentThreadSelect; }; @@ -625,6 +1062,7 @@ export type AgentPromptSelect = { content?: boolean; createdAt?: boolean; createdBy?: boolean; + createdByPrincipal?: boolean; databaseId?: boolean; description?: boolean; id?: boolean; @@ -633,6 +1071,7 @@ export type AgentPromptSelect = { name?: boolean; updatedAt?: boolean; updatedBy?: boolean; + updatedByPrincipal?: boolean; agentThreadsByPromptTemplateId?: { select: AgentThreadSelect; first?: number; @@ -645,6 +1084,7 @@ export type AgentResourceChunkSelect = { body?: boolean; chunkIndex?: boolean; createdAt?: boolean; + databaseId?: boolean; embedding?: boolean; embeddingVectorDistance?: boolean; id?: boolean; @@ -661,6 +1101,7 @@ export type AgentResourceSelect = { bodyTrgmSimilarity?: boolean; createdAt?: boolean; createdBy?: boolean; + createdByPrincipal?: boolean; databaseId?: boolean; description?: boolean; descriptionTrgmSimilarity?: boolean; @@ -682,6 +1123,7 @@ export type AgentResourceSelect = { titleTrgmSimilarity?: boolean; updatedAt?: boolean; updatedBy?: boolean; + updatedByPrincipal?: boolean; agentResourceChunks?: { select: AgentResourceChunkSelect; first?: number; @@ -706,6 +1148,7 @@ export type AgentTaskSelect = { source?: boolean; status?: boolean; updatedAt?: boolean; + visibility?: boolean; plan?: { select: AgentPlanSelect; }; @@ -727,6 +1170,7 @@ export type AgentThreadSelect = { tags?: boolean; title?: boolean; updatedAt?: boolean; + visibility?: boolean; agent?: { select: AgentSelect; }; @@ -755,20 +1199,353 @@ export type AgentThreadSelect = { orderBy?: AgentThreadOrderBy[]; }; }; -// ============ Table Filter Types ============ -export interface AgentFilter { - /** Filter by the object’s `agentMessages` relation. */ - agentMessages?: AgentToManyAgentMessageFilter; - /** `agentMessages` exist. */ - agentMessagesExist?: boolean; - /** Filter by the object’s `agentThreads` relation. */ - agentThreads?: AgentToManyAgentThreadFilter; - /** `agentThreads` exist. */ - agentThreadsExist?: boolean; - /** Checks for all expressions in this list. */ - and?: AgentFilter[]; - /** Filter by the object’s `childAgents` relation. */ - childAgents?: AgentToManyAgentFilter; +export type PlatformAgentSelect = { + config?: boolean; + createdAt?: boolean; + id?: boolean; + isEphemeral?: boolean; + name?: boolean; + ownerId?: boolean; + parentId?: boolean; + personaId?: boolean; + status?: boolean; + systemPrompt?: boolean; + updatedAt?: boolean; + parent?: { + select: PlatformAgentSelect; + }; + persona?: { + select: PlatformAgentPersonaSelect; + }; + childPlatformAgents?: { + select: PlatformAgentSelect; + first?: number; + filter?: PlatformAgentFilter; + orderBy?: PlatformAgentOrderBy[]; + }; + platformAgentMessagesByAgentId?: { + select: PlatformAgentMessageSelect; + first?: number; + filter?: PlatformAgentMessageFilter; + orderBy?: PlatformAgentMessageOrderBy[]; + }; + platformAgentThreadsByAgentId?: { + select: PlatformAgentThreadSelect; + first?: number; + filter?: PlatformAgentThreadFilter; + orderBy?: PlatformAgentThreadOrderBy[]; + }; +}; +export type PlatformAgentEventSelect = { + actorId?: boolean; + createdAt?: boolean; + entry?: boolean; + id?: boolean; + recordedAt?: boolean; + runId?: boolean; + seq?: boolean; + transcriptFormat?: boolean; + transcriptVersion?: boolean; + updatedAt?: boolean; + visibility?: boolean; + run?: { + select: PlatformAgentRunSelect; + }; +}; +export type PlatformAgentMessageSelect = { + actorId?: boolean; + agentId?: boolean; + authorRole?: boolean; + createdAt?: boolean; + deliveredRunId?: boolean; + id?: boolean; + kind?: boolean; + model?: boolean; + parts?: boolean; + threadId?: boolean; + updatedAt?: boolean; + visibility?: boolean; + agent?: { + select: PlatformAgentSelect; + }; + deliveredRun?: { + select: PlatformAgentRunSelect; + }; + thread?: { + select: PlatformAgentThreadSelect; + }; +}; +export type PlatformAgentPersonaSelect = { + config?: boolean; + createdAt?: boolean; + createdBy?: boolean; + createdByPrincipal?: boolean; + description?: boolean; + id?: boolean; + isActive?: boolean; + name?: boolean; + resources?: boolean; + slug?: boolean; + systemPrompt?: boolean; + updatedAt?: boolean; + updatedBy?: boolean; + updatedByPrincipal?: boolean; + platformAgentsByPersonaId?: { + select: PlatformAgentSelect; + first?: number; + filter?: PlatformAgentFilter; + orderBy?: PlatformAgentOrderBy[]; + }; +}; +export type PlatformAgentPlanSelect = { + createdAt?: boolean; + description?: boolean; + id?: boolean; + ownerId?: boolean; + status?: boolean; + threadId?: boolean; + title?: boolean; + updatedAt?: boolean; + visibility?: boolean; + thread?: { + select: PlatformAgentThreadSelect; + }; + platformAgentTasksByPlanId?: { + select: PlatformAgentTaskSelect; + first?: number; + filter?: PlatformAgentTaskFilter; + orderBy?: PlatformAgentTaskOrderBy[]; + }; +}; +export type PlatformAgentPromptSelect = { + content?: boolean; + createdAt?: boolean; + createdBy?: boolean; + createdByPrincipal?: boolean; + description?: boolean; + id?: boolean; + isDefault?: boolean; + metadata?: boolean; + name?: boolean; + updatedAt?: boolean; + updatedBy?: boolean; + updatedByPrincipal?: boolean; + platformAgentThreadsByPromptTemplateId?: { + select: PlatformAgentThreadSelect; + first?: number; + filter?: PlatformAgentThreadFilter; + orderBy?: PlatformAgentThreadOrderBy[]; + }; +}; +export type PlatformAgentResourceChunkSelect = { + body?: boolean; + chunkIndex?: boolean; + createdAt?: boolean; + embedding?: boolean; + embeddingVectorDistance?: boolean; + id?: boolean; + metadata?: boolean; + platformAgentResourceId?: boolean; + searchScore?: boolean; + updatedAt?: boolean; + platformAgentResource?: { + select: PlatformAgentResourceSelect; + }; +}; +export type PlatformAgentResourceSelect = { + archivedAt?: boolean; + body?: boolean; + bodyTrgmSimilarity?: boolean; + createdAt?: boolean; + createdBy?: boolean; + createdByPrincipal?: boolean; + description?: boolean; + descriptionTrgmSimilarity?: boolean; + embedding?: boolean; + embeddingUpdatedAt?: boolean; + embeddingVectorDistance?: boolean; + id?: boolean; + isActive?: boolean; + isArchived?: boolean; + keywords?: boolean; + kind?: boolean; + kindTrgmSimilarity?: boolean; + metadata?: boolean; + search?: boolean; + searchScore?: boolean; + searchTsvRank?: boolean; + slug?: boolean; + title?: boolean; + titleTrgmSimilarity?: boolean; + updatedAt?: boolean; + updatedBy?: boolean; + updatedByPrincipal?: boolean; + platformAgentResourceChunks?: { + select: PlatformAgentResourceChunkSelect; + first?: number; + filter?: PlatformAgentResourceChunkFilter; + orderBy?: PlatformAgentResourceChunkOrderBy[]; + }; +}; +export type PlatformAgentRunSelect = { + actorId?: boolean; + artifacts?: boolean; + attempt?: boolean; + baseCommit?: boolean; + branch?: boolean; + createdAt?: boolean; + databaseId?: boolean; + deadlineAt?: boolean; + entityId?: boolean; + error?: boolean; + executionId?: boolean; + finishedAt?: boolean; + headCommit?: boolean; + id?: boolean; + lastEventSeq?: boolean; + parentRunId?: boolean; + placement?: boolean; + principalId?: boolean; + repoUrl?: boolean; + startedAt?: boolean; + status?: boolean; + threadId?: boolean; + tokenUsage?: boolean; + totalCost?: boolean; + updatedAt?: boolean; + visibility?: boolean; + thread?: { + select: PlatformAgentThreadSelect; + }; + platformAgentEventsByRunId?: { + select: PlatformAgentEventSelect; + first?: number; + filter?: PlatformAgentEventFilter; + orderBy?: PlatformAgentEventOrderBy[]; + }; + platformAgentMessagesByDeliveredRunId?: { + select: PlatformAgentMessageSelect; + first?: number; + filter?: PlatformAgentMessageFilter; + orderBy?: PlatformAgentMessageOrderBy[]; + }; + platformAgentRunWorkspacesByRunId?: { + select: PlatformAgentRunWorkspaceSelect; + first?: number; + filter?: PlatformAgentRunWorkspaceFilter; + orderBy?: PlatformAgentRunWorkspaceOrderBy[]; + }; +}; +export type PlatformAgentRunWorkspaceSelect = { + actorId?: boolean; + artifacts?: boolean; + baseBranch?: boolean; + baseCommit?: boolean; + branch?: boolean; + clonedAt?: boolean; + createdAt?: boolean; + headCommit?: boolean; + id?: boolean; + lastUsedAt?: boolean; + ordinal?: boolean; + provider?: boolean; + publication?: boolean; + repo?: boolean; + repositoryId?: boolean; + runId?: boolean; + state?: boolean; + updatedAt?: boolean; + visibility?: boolean; + run?: { + select: PlatformAgentRunSelect; + }; +}; +export type PlatformAgentTaskSelect = { + actorId?: boolean; + approvalFeedback?: boolean; + approvalStatus?: boolean; + approvedAt?: boolean; + approvedBy?: boolean; + createdAt?: boolean; + description?: boolean; + error?: boolean; + id?: boolean; + orderIndex?: boolean; + planId?: boolean; + requiresApproval?: boolean; + source?: boolean; + status?: boolean; + updatedAt?: boolean; + visibility?: boolean; + plan?: { + select: PlatformAgentPlanSelect; + }; +}; +export type PlatformAgentThreadSelect = { + agentId?: boolean; + archivedAt?: boolean; + createdAt?: boolean; + id?: boolean; + isArchived?: boolean; + mode?: boolean; + model?: boolean; + ownerId?: boolean; + parentThreadId?: boolean; + promptTemplateId?: boolean; + status?: boolean; + systemPrompt?: boolean; + tags?: boolean; + title?: boolean; + updatedAt?: boolean; + visibility?: boolean; + agent?: { + select: PlatformAgentSelect; + }; + parentThread?: { + select: PlatformAgentThreadSelect; + }; + promptTemplate?: { + select: PlatformAgentPromptSelect; + }; + platformAgentMessagesByThreadId?: { + select: PlatformAgentMessageSelect; + first?: number; + filter?: PlatformAgentMessageFilter; + orderBy?: PlatformAgentMessageOrderBy[]; + }; + platformAgentPlansByThreadId?: { + select: PlatformAgentPlanSelect; + first?: number; + filter?: PlatformAgentPlanFilter; + orderBy?: PlatformAgentPlanOrderBy[]; + }; + platformAgentRunsByThreadId?: { + select: PlatformAgentRunSelect; + first?: number; + filter?: PlatformAgentRunFilter; + orderBy?: PlatformAgentRunOrderBy[]; + }; + platformAgentThreadsByParentThreadId?: { + select: PlatformAgentThreadSelect; + first?: number; + filter?: PlatformAgentThreadFilter; + orderBy?: PlatformAgentThreadOrderBy[]; + }; +}; +// ============ Table Filter Types ============ +export interface AgentFilter { + /** Filter by the object’s `agentMessages` relation. */ + agentMessages?: AgentToManyAgentMessageFilter; + /** `agentMessages` exist. */ + agentMessagesExist?: boolean; + /** Filter by the object’s `agentThreads` relation. */ + agentThreads?: AgentToManyAgentThreadFilter; + /** `agentThreads` exist. */ + agentThreadsExist?: boolean; + /** Checks for all expressions in this list. */ + and?: AgentFilter[]; + /** Filter by the object’s `childAgents` relation. */ + childAgents?: AgentToManyAgentFilter; /** `childAgents` exist. */ childAgentsExist?: boolean; /** Filter by the object’s `config` field. */ @@ -827,6 +1604,8 @@ export interface AgentMessageFilter { databaseId?: UUIDFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; /** Filter by the object’s `model` field. */ model?: StringFilter; /** Negates the expression. */ @@ -841,6 +1620,8 @@ export interface AgentMessageFilter { threadId?: UUIDFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `visibility` field. */ + visibility?: StringFilter; } export interface AgentPersonaFilter { /** Filter by the object’s `agentsByPersonaId` relation. */ @@ -855,6 +1636,8 @@ export interface AgentPersonaFilter { createdAt?: DatetimeFilter; /** Filter by the object’s `createdBy` field. */ createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; /** Filter by the object’s `description` field. */ @@ -879,6 +1662,8 @@ export interface AgentPersonaFilter { updatedAt?: DatetimeFilter; /** Filter by the object’s `updatedBy` field. */ updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } export interface AgentPlanFilter { /** Filter by the object’s `agentTasksByPlanId` relation. */ @@ -911,6 +1696,8 @@ export interface AgentPlanFilter { title?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `visibility` field. */ + visibility?: StringFilter; } export interface AgentPromptFilter { /** Filter by the object’s `agentThreadsByPromptTemplateId` relation. */ @@ -925,6 +1712,8 @@ export interface AgentPromptFilter { createdAt?: DatetimeFilter; /** Filter by the object’s `createdBy` field. */ createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; /** Filter by the object’s `description` field. */ @@ -945,6 +1734,8 @@ export interface AgentPromptFilter { updatedAt?: DatetimeFilter; /** Filter by the object’s `updatedBy` field. */ updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } export interface AgentResourceChunkFilter { /** Filter by the object’s `agentResource` relation. */ @@ -959,6 +1750,8 @@ export interface AgentResourceChunkFilter { chunkIndex?: IntFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; /** Filter by the object’s `id` field. */ @@ -989,6 +1782,8 @@ export interface AgentResourceFilter { createdAt?: DatetimeFilter; /** Filter by the object’s `createdBy` field. */ createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; /** Filter by the object’s `description` field. */ @@ -1041,6 +1836,8 @@ export interface AgentResourceFilter { updatedAt?: DatetimeFilter; /** Filter by the object’s `updatedBy` field. */ updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; /** VECTOR search on the `embedding` column. */ vectorEmbedding?: VectorNearbyInput; } @@ -1085,6 +1882,8 @@ export interface AgentTaskFilter { status?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `visibility` field. */ + visibility?: StringFilter; } export interface AgentThreadFilter { /** Filter by the object’s `agent` relation. */ @@ -1149,50 +1948,948 @@ export interface AgentThreadFilter { title?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `visibility` field. */ + visibility?: StringFilter; } -// ============ OrderBy Types ============ -export type AgentOrderBy = - | 'CONFIG_ASC' - | 'CONFIG_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'IS_EPHEMERAL_ASC' - | 'IS_EPHEMERAL_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'NATURAL' - | 'OWNER_ID_ASC' - | 'OWNER_ID_DESC' - | 'PARENT_ID_ASC' - | 'PARENT_ID_DESC' - | 'PERSONA_ID_ASC' - | 'PERSONA_ID_DESC' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'STATUS_ASC' - | 'STATUS_DESC' - | 'SYSTEM_PROMPT_ASC' - | 'SYSTEM_PROMPT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type AgentMessageOrderBy = - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'AGENT_ID_ASC' - | 'AGENT_ID_DESC' - | 'AUTHOR_ROLE_ASC' - | 'AUTHOR_ROLE_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'MODEL_ASC' +export interface PlatformAgentFilter { + /** Checks for all expressions in this list. */ + and?: PlatformAgentFilter[]; + /** Filter by the object’s `childPlatformAgents` relation. */ + childPlatformAgents?: PlatformAgentToManyPlatformAgentFilter; + /** `childPlatformAgents` exist. */ + childPlatformAgentsExist?: boolean; + /** Filter by the object’s `config` field. */ + config?: JSONFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isEphemeral` field. */ + isEphemeral?: BooleanFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: PlatformAgentFilter; + /** Checks for any expressions in this list. */ + or?: PlatformAgentFilter[]; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `parent` relation. */ + parent?: PlatformAgentFilter; + /** A related `parent` exists. */ + parentExists?: boolean; + /** Filter by the object’s `parentId` field. */ + parentId?: UUIDFilter; + /** Filter by the object’s `persona` relation. */ + persona?: PlatformAgentPersonaFilter; + /** A related `persona` exists. */ + personaExists?: boolean; + /** Filter by the object’s `personaId` field. */ + personaId?: UUIDFilter; + /** Filter by the object’s `platformAgentMessagesByAgentId` relation. */ + platformAgentMessagesByAgentId?: PlatformAgentToManyPlatformAgentMessageFilter; + /** `platformAgentMessagesByAgentId` exist. */ + platformAgentMessagesByAgentIdExist?: boolean; + /** Filter by the object’s `platformAgentThreadsByAgentId` relation. */ + platformAgentThreadsByAgentId?: PlatformAgentToManyPlatformAgentThreadFilter; + /** `platformAgentThreadsByAgentId` exist. */ + platformAgentThreadsByAgentIdExist?: boolean; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `systemPrompt` field. */ + systemPrompt?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} +export interface PlatformAgentEventFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: PlatformAgentEventFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `entry` field. */ + entry?: JSONFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformAgentEventFilter; + /** Checks for any expressions in this list. */ + or?: PlatformAgentEventFilter[]; + /** Filter by the object’s `recordedAt` field. */ + recordedAt?: DatetimeFilter; + /** Filter by the object’s `run` relation. */ + run?: PlatformAgentRunFilter; + /** Filter by the object’s `runId` field. */ + runId?: UUIDFilter; + /** Filter by the object’s `seq` field. */ + seq?: IntFilter; + /** Filter by the object’s `transcriptFormat` field. */ + transcriptFormat?: StringFilter; + /** Filter by the object’s `transcriptVersion` field. */ + transcriptVersion?: IntFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `visibility` field. */ + visibility?: StringFilter; +} +export interface PlatformAgentMessageFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `agent` relation. */ + agent?: PlatformAgentFilter; + /** A related `agent` exists. */ + agentExists?: boolean; + /** Filter by the object’s `agentId` field. */ + agentId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: PlatformAgentMessageFilter[]; + /** Filter by the object’s `authorRole` field. */ + authorRole?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `deliveredRun` relation. */ + deliveredRun?: PlatformAgentRunFilter; + /** A related `deliveredRun` exists. */ + deliveredRunExists?: boolean; + /** Filter by the object’s `deliveredRunId` field. */ + deliveredRunId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `model` field. */ + model?: StringFilter; + /** Negates the expression. */ + not?: PlatformAgentMessageFilter; + /** Checks for any expressions in this list. */ + or?: PlatformAgentMessageFilter[]; + /** Filter by the object’s `parts` field. */ + parts?: JSONFilter; + /** Filter by the object’s `thread` relation. */ + thread?: PlatformAgentThreadFilter; + /** Filter by the object’s `threadId` field. */ + threadId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `visibility` field. */ + visibility?: StringFilter; +} +export interface PlatformAgentPersonaFilter { + /** Checks for all expressions in this list. */ + and?: PlatformAgentPersonaFilter[]; + /** Filter by the object’s `config` field. */ + config?: JSONFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `description` field. */ + description?: 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?: PlatformAgentPersonaFilter; + /** Checks for any expressions in this list. */ + or?: PlatformAgentPersonaFilter[]; + /** Filter by the object’s `platformAgentsByPersonaId` relation. */ + platformAgentsByPersonaId?: PlatformAgentPersonaToManyPlatformAgentFilter; + /** `platformAgentsByPersonaId` exist. */ + platformAgentsByPersonaIdExist?: boolean; + /** Filter by the object’s `resources` field. */ + resources?: StringListFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `systemPrompt` field. */ + systemPrompt?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} +export interface PlatformAgentPlanFilter { + /** Checks for all expressions in this list. */ + and?: PlatformAgentPlanFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformAgentPlanFilter; + /** Checks for any expressions in this list. */ + or?: PlatformAgentPlanFilter[]; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `platformAgentTasksByPlanId` relation. */ + platformAgentTasksByPlanId?: PlatformAgentPlanToManyPlatformAgentTaskFilter; + /** `platformAgentTasksByPlanId` exist. */ + platformAgentTasksByPlanIdExist?: boolean; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `thread` relation. */ + thread?: PlatformAgentThreadFilter; + /** Filter by the object’s `threadId` field. */ + threadId?: UUIDFilter; + /** Filter by the object’s `title` field. */ + title?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `visibility` field. */ + visibility?: StringFilter; +} +export interface PlatformAgentPromptFilter { + /** Checks for all expressions in this list. */ + and?: PlatformAgentPromptFilter[]; + /** Filter by the object’s `content` field. */ + content?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isDefault` field. */ + isDefault?: BooleanFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: PlatformAgentPromptFilter; + /** Checks for any expressions in this list. */ + or?: PlatformAgentPromptFilter[]; + /** Filter by the object’s `platformAgentThreadsByPromptTemplateId` relation. */ + platformAgentThreadsByPromptTemplateId?: PlatformAgentPromptToManyPlatformAgentThreadFilter; + /** `platformAgentThreadsByPromptTemplateId` exist. */ + platformAgentThreadsByPromptTemplateIdExist?: boolean; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} +export interface PlatformAgentResourceChunkFilter { + /** Checks for all expressions in this list. */ + and?: PlatformAgentResourceChunkFilter[]; + /** Filter by the object’s `body` field. */ + body?: StringFilter; + /** Filter by the object’s `chunkIndex` field. */ + chunkIndex?: IntFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `embedding` field. */ + embedding?: VectorFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Negates the expression. */ + not?: PlatformAgentResourceChunkFilter; + /** Checks for any expressions in this list. */ + or?: PlatformAgentResourceChunkFilter[]; + /** Filter by the object’s `platformAgentResource` relation. */ + platformAgentResource?: PlatformAgentResourceFilter; + /** Filter by the object’s `platformAgentResourceId` field. */ + platformAgentResourceId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** VECTOR search on the `embedding` column. */ + vectorEmbedding?: VectorNearbyInput; +} +export interface PlatformAgentResourceFilter { + /** Checks for all expressions in this list. */ + and?: PlatformAgentResourceFilter[]; + /** Filter by the object’s `archivedAt` field. */ + archivedAt?: DatetimeFilter; + /** Filter by the object’s `body` field. */ + body?: StringTrgmFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `description` field. */ + description?: StringTrgmFilter; + /** Filter by the object’s `embedding` field. */ + embedding?: VectorFilter; + /** Filter by the object’s `embeddingUpdatedAt` field. */ + embeddingUpdatedAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; + /** Filter by the object’s `isArchived` field. */ + isArchived?: BooleanFilter; + /** Filter by the object’s `keywords` field. */ + keywords?: StringListFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringTrgmFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Negates the expression. */ + not?: PlatformAgentResourceFilter; + /** Checks for any expressions in this list. */ + or?: PlatformAgentResourceFilter[]; + /** Filter by the object’s `platformAgentResourceChunks` relation. */ + platformAgentResourceChunks?: PlatformAgentResourceToManyPlatformAgentResourceChunkFilter; + /** `platformAgentResourceChunks` exist. */ + platformAgentResourceChunksExist?: boolean; + /** Filter by the object’s `search` field. */ + search?: FullTextFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringTrgmFilter; + /** Filter by the object’s `title` field. */ + title?: StringTrgmFilter; + /** TRGM search on the `body` column. */ + trgmBody?: TrgmSearchInput; + /** TRGM search on the `description` column. */ + trgmDescription?: TrgmSearchInput; + /** TRGM search on the `kind` column. */ + trgmKind?: TrgmSearchInput; + /** TRGM search on the `title` column. */ + trgmTitle?: TrgmSearchInput; + /** TSV search on the `search` column. */ + tsvSearch?: string; + /** + * Composite unified search. Provide a search string and it will be dispatched to + * all text-compatible search algorithms (tsvector, BM25, pg_trgm) + * simultaneously. When the LLM plugin is active, pgvector also participates via + * auto-embedding. Rows matching ANY algorithm are returned. All matching score + * fields are populated. + */ + unifiedSearch?: string; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** VECTOR search on the `embedding` column. */ + vectorEmbedding?: VectorNearbyInput; +} +export interface PlatformAgentRunFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: PlatformAgentRunFilter[]; + /** Filter by the object’s `artifacts` field. */ + artifacts?: JSONFilter; + /** Filter by the object’s `attempt` field. */ + attempt?: IntFilter; + /** Filter by the object’s `baseCommit` field. */ + baseCommit?: StringFilter; + /** Filter by the object’s `branch` field. */ + branch?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `deadlineAt` field. */ + deadlineAt?: DatetimeFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `error` field. */ + error?: StringFilter; + /** Filter by the object’s `executionId` field. */ + executionId?: UUIDFilter; + /** Filter by the object’s `finishedAt` field. */ + finishedAt?: DatetimeFilter; + /** Filter by the object’s `headCommit` field. */ + headCommit?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `lastEventSeq` field. */ + lastEventSeq?: IntFilter; + /** Negates the expression. */ + not?: PlatformAgentRunFilter; + /** Checks for any expressions in this list. */ + or?: PlatformAgentRunFilter[]; + /** Filter by the object’s `parentRunId` field. */ + parentRunId?: UUIDFilter; + /** Filter by the object’s `placement` field. */ + placement?: StringFilter; + /** Filter by the object’s `platformAgentEventsByRunId` relation. */ + platformAgentEventsByRunId?: PlatformAgentRunToManyPlatformAgentEventFilter; + /** `platformAgentEventsByRunId` exist. */ + platformAgentEventsByRunIdExist?: boolean; + /** Filter by the object’s `platformAgentMessagesByDeliveredRunId` relation. */ + platformAgentMessagesByDeliveredRunId?: PlatformAgentRunToManyPlatformAgentMessageFilter; + /** `platformAgentMessagesByDeliveredRunId` exist. */ + platformAgentMessagesByDeliveredRunIdExist?: boolean; + /** Filter by the object’s `platformAgentRunWorkspacesByRunId` relation. */ + platformAgentRunWorkspacesByRunId?: PlatformAgentRunToManyPlatformAgentRunWorkspaceFilter; + /** `platformAgentRunWorkspacesByRunId` exist. */ + platformAgentRunWorkspacesByRunIdExist?: boolean; + /** Filter by the object’s `principalId` field. */ + principalId?: UUIDFilter; + /** Filter by the object’s `repoUrl` field. */ + repoUrl?: StringFilter; + /** Filter by the object’s `startedAt` field. */ + startedAt?: DatetimeFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `thread` relation. */ + thread?: PlatformAgentThreadFilter; + /** Filter by the object’s `threadId` field. */ + threadId?: UUIDFilter; + /** Filter by the object’s `tokenUsage` field. */ + tokenUsage?: JSONFilter; + /** Filter by the object’s `totalCost` field. */ + totalCost?: BigFloatFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `visibility` field. */ + visibility?: StringFilter; +} +export interface PlatformAgentRunWorkspaceFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: PlatformAgentRunWorkspaceFilter[]; + /** Filter by the object’s `artifacts` field. */ + artifacts?: JSONFilter; + /** Filter by the object’s `baseBranch` field. */ + baseBranch?: StringFilter; + /** Filter by the object’s `baseCommit` field. */ + baseCommit?: StringFilter; + /** Filter by the object’s `branch` field. */ + branch?: StringFilter; + /** Filter by the object’s `clonedAt` field. */ + clonedAt?: DatetimeFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `headCommit` field. */ + headCommit?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `lastUsedAt` field. */ + lastUsedAt?: DatetimeFilter; + /** Negates the expression. */ + not?: PlatformAgentRunWorkspaceFilter; + /** Checks for any expressions in this list. */ + or?: PlatformAgentRunWorkspaceFilter[]; + /** Filter by the object’s `ordinal` field. */ + ordinal?: IntFilter; + /** Filter by the object’s `provider` field. */ + provider?: StringFilter; + /** Filter by the object’s `publication` field. */ + publication?: StringFilter; + /** Filter by the object’s `repo` field. */ + repo?: StringFilter; + /** Filter by the object’s `repositoryId` field. */ + repositoryId?: UUIDFilter; + /** Filter by the object’s `run` relation. */ + run?: PlatformAgentRunFilter; + /** Filter by the object’s `runId` field. */ + runId?: UUIDFilter; + /** Filter by the object’s `state` field. */ + state?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `visibility` field. */ + visibility?: StringFilter; +} +export interface PlatformAgentTaskFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: PlatformAgentTaskFilter[]; + /** Filter by the object’s `approvalFeedback` field. */ + approvalFeedback?: StringFilter; + /** Filter by the object’s `approvalStatus` field. */ + approvalStatus?: StringFilter; + /** Filter by the object’s `approvedAt` field. */ + approvedAt?: DatetimeFilter; + /** Filter by the object’s `approvedBy` field. */ + approvedBy?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `error` field. */ + error?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformAgentTaskFilter; + /** Checks for any expressions in this list. */ + or?: PlatformAgentTaskFilter[]; + /** Filter by the object’s `orderIndex` field. */ + orderIndex?: IntFilter; + /** Filter by the object’s `plan` relation. */ + plan?: PlatformAgentPlanFilter; + /** Filter by the object’s `planId` field. */ + planId?: UUIDFilter; + /** Filter by the object’s `requiresApproval` field. */ + requiresApproval?: BooleanFilter; + /** Filter by the object’s `source` field. */ + source?: StringFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `visibility` field. */ + visibility?: StringFilter; +} +export interface PlatformAgentThreadFilter { + /** Filter by the object’s `agent` relation. */ + agent?: PlatformAgentFilter; + /** A related `agent` exists. */ + agentExists?: boolean; + /** Filter by the object’s `agentId` field. */ + agentId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: PlatformAgentThreadFilter[]; + /** Filter by the object’s `archivedAt` field. */ + archivedAt?: DatetimeFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isArchived` field. */ + isArchived?: BooleanFilter; + /** Filter by the object’s `mode` field. */ + mode?: StringFilter; + /** Filter by the object’s `model` field. */ + model?: StringFilter; + /** Negates the expression. */ + not?: PlatformAgentThreadFilter; + /** Checks for any expressions in this list. */ + or?: PlatformAgentThreadFilter[]; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `parentThread` relation. */ + parentThread?: PlatformAgentThreadFilter; + /** A related `parentThread` exists. */ + parentThreadExists?: boolean; + /** Filter by the object’s `parentThreadId` field. */ + parentThreadId?: UUIDFilter; + /** Filter by the object’s `platformAgentMessagesByThreadId` relation. */ + platformAgentMessagesByThreadId?: PlatformAgentThreadToManyPlatformAgentMessageFilter; + /** `platformAgentMessagesByThreadId` exist. */ + platformAgentMessagesByThreadIdExist?: boolean; + /** Filter by the object’s `platformAgentPlansByThreadId` relation. */ + platformAgentPlansByThreadId?: PlatformAgentThreadToManyPlatformAgentPlanFilter; + /** `platformAgentPlansByThreadId` exist. */ + platformAgentPlansByThreadIdExist?: boolean; + /** Filter by the object’s `platformAgentRunsByThreadId` relation. */ + platformAgentRunsByThreadId?: PlatformAgentThreadToManyPlatformAgentRunFilter; + /** `platformAgentRunsByThreadId` exist. */ + platformAgentRunsByThreadIdExist?: boolean; + /** Filter by the object’s `platformAgentThreadsByParentThreadId` relation. */ + platformAgentThreadsByParentThreadId?: PlatformAgentThreadToManyPlatformAgentThreadFilter; + /** `platformAgentThreadsByParentThreadId` exist. */ + platformAgentThreadsByParentThreadIdExist?: boolean; + /** Filter by the object’s `promptTemplate` relation. */ + promptTemplate?: PlatformAgentPromptFilter; + /** A related `promptTemplate` exists. */ + promptTemplateExists?: boolean; + /** Filter by the object’s `promptTemplateId` field. */ + promptTemplateId?: UUIDFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `systemPrompt` field. */ + systemPrompt?: StringFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Filter by the object’s `title` field. */ + title?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `visibility` field. */ + visibility?: StringFilter; +} +// ============ OrderBy Types ============ +export type AgentOrderBy = + | 'CONFIG_ASC' + | 'CONFIG_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_EPHEMERAL_ASC' + | 'IS_EPHEMERAL_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'PARENT_ID_ASC' + | 'PARENT_ID_DESC' + | 'PERSONA_ID_ASC' + | 'PERSONA_ID_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'SYSTEM_PROMPT_ASC' + | 'SYSTEM_PROMPT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type AgentMessageOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'AGENT_ID_ASC' + | 'AGENT_ID_DESC' + | 'AUTHOR_ROLE_ASC' + | 'AUTHOR_ROLE_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'KIND_ASC' + | 'KIND_DESC' + | 'MODEL_ASC' + | 'MODEL_DESC' + | 'NATURAL' + | 'PARTS_ASC' + | 'PARTS_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'THREAD_ID_ASC' + | 'THREAD_ID_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'VISIBILITY_ASC' + | 'VISIBILITY_DESC'; +export type AgentPersonaOrderBy = + | 'CONFIG_ASC' + | 'CONFIG_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_ACTIVE_ASC' + | 'IS_ACTIVE_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'RESOURCES_ASC' + | 'RESOURCES_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'SYSTEM_PROMPT_ASC' + | 'SYSTEM_PROMPT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +export type AgentPlanOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'THREAD_ID_ASC' + | 'THREAD_ID_DESC' + | 'TITLE_ASC' + | 'TITLE_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'VISIBILITY_ASC' + | 'VISIBILITY_DESC'; +export type AgentPromptOrderBy = + | 'CONTENT_ASC' + | 'CONTENT_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_DEFAULT_ASC' + | 'IS_DEFAULT_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +export type AgentResourceChunkOrderBy = + | 'AGENT_RESOURCE_ID_ASC' + | 'AGENT_RESOURCE_ID_DESC' + | 'BODY_ASC' + | 'BODY_DESC' + | 'CHUNK_INDEX_ASC' + | 'CHUNK_INDEX_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'EMBEDDING_ASC' + | 'EMBEDDING_DESC' + | 'EMBEDDING_VECTOR_DISTANCE_ASC' + | 'EMBEDDING_VECTOR_DISTANCE_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'SEARCH_SCORE_ASC' + | 'SEARCH_SCORE_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type AgentResourceOrderBy = + | 'ARCHIVED_AT_ASC' + | 'ARCHIVED_AT_DESC' + | 'BODY_ASC' + | 'BODY_DESC' + | 'BODY_TRGM_SIMILARITY_ASC' + | 'BODY_TRGM_SIMILARITY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'DESCRIPTION_TRGM_SIMILARITY_ASC' + | 'DESCRIPTION_TRGM_SIMILARITY_DESC' + | 'EMBEDDING_ASC' + | 'EMBEDDING_DESC' + | 'EMBEDDING_UPDATED_AT_ASC' + | 'EMBEDDING_UPDATED_AT_DESC' + | 'EMBEDDING_VECTOR_DISTANCE_ASC' + | 'EMBEDDING_VECTOR_DISTANCE_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_ACTIVE_ASC' + | 'IS_ACTIVE_DESC' + | 'IS_ARCHIVED_ASC' + | 'IS_ARCHIVED_DESC' + | 'KEYWORDS_ASC' + | 'KEYWORDS_DESC' + | 'KIND_ASC' + | 'KIND_DESC' + | 'KIND_TRGM_SIMILARITY_ASC' + | 'KIND_TRGM_SIMILARITY_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'SEARCH_ASC' + | 'SEARCH_DESC' + | 'SEARCH_SCORE_ASC' + | 'SEARCH_SCORE_DESC' + | 'SEARCH_TSV_RANK_ASC' + | 'SEARCH_TSV_RANK_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'TITLE_ASC' + | 'TITLE_DESC' + | 'TITLE_TRGM_SIMILARITY_ASC' + | 'TITLE_TRGM_SIMILARITY_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +export type AgentTaskOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'APPROVAL_FEEDBACK_ASC' + | 'APPROVAL_FEEDBACK_DESC' + | 'APPROVAL_STATUS_ASC' + | 'APPROVAL_STATUS_DESC' + | 'APPROVED_AT_ASC' + | 'APPROVED_AT_DESC' + | 'APPROVED_BY_ASC' + | 'APPROVED_BY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'ERROR_ASC' + | 'ERROR_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' + | 'ORDER_INDEX_ASC' + | 'ORDER_INDEX_DESC' + | 'PLAN_ID_ASC' + | 'PLAN_ID_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'REQUIRES_APPROVAL_ASC' + | 'REQUIRES_APPROVAL_DESC' + | 'SOURCE_ASC' + | 'SOURCE_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'VISIBILITY_ASC' + | 'VISIBILITY_DESC'; +export type AgentThreadOrderBy = + | 'AGENT_ID_ASC' + | 'AGENT_ID_DESC' + | 'ARCHIVED_AT_ASC' + | 'ARCHIVED_AT_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_ARCHIVED_ASC' + | 'IS_ARCHIVED_DESC' + | 'MODEL_ASC' + | 'MODEL_DESC' + | 'MODE_ASC' + | 'MODE_DESC' + | 'NATURAL' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'PARENT_THREAD_ID_ASC' + | 'PARENT_THREAD_ID_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PROMPT_TEMPLATE_ID_ASC' + | 'PROMPT_TEMPLATE_ID_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'SYSTEM_PROMPT_ASC' + | 'SYSTEM_PROMPT_DESC' + | 'TAGS_ASC' + | 'TAGS_DESC' + | 'TITLE_ASC' + | 'TITLE_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'VISIBILITY_ASC' + | 'VISIBILITY_DESC'; +export type PlatformAgentOrderBy = + | 'CONFIG_ASC' + | 'CONFIG_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_EPHEMERAL_ASC' + | 'IS_EPHEMERAL_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'PARENT_ID_ASC' + | 'PARENT_ID_DESC' + | 'PERSONA_ID_ASC' + | 'PERSONA_ID_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'SYSTEM_PROMPT_ASC' + | 'SYSTEM_PROMPT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type PlatformAgentEventOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ENTRY_ASC' + | 'ENTRY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'RECORDED_AT_ASC' + | 'RECORDED_AT_DESC' + | 'RUN_ID_ASC' + | 'RUN_ID_DESC' + | 'SEQ_ASC' + | 'SEQ_DESC' + | 'TRANSCRIPT_FORMAT_ASC' + | 'TRANSCRIPT_FORMAT_DESC' + | 'TRANSCRIPT_VERSION_ASC' + | 'TRANSCRIPT_VERSION_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'VISIBILITY_ASC' + | 'VISIBILITY_DESC'; +export type PlatformAgentMessageOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'AGENT_ID_ASC' + | 'AGENT_ID_DESC' + | 'AUTHOR_ROLE_ASC' + | 'AUTHOR_ROLE_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DELIVERED_RUN_ID_ASC' + | 'DELIVERED_RUN_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'KIND_ASC' + | 'KIND_DESC' + | 'MODEL_ASC' | 'MODEL_DESC' | 'NATURAL' | 'PARTS_ASC' @@ -1202,16 +2899,18 @@ export type AgentMessageOrderBy = | 'THREAD_ID_ASC' | 'THREAD_ID_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type AgentPersonaOrderBy = + | 'UPDATED_AT_DESC' + | 'VISIBILITY_ASC' + | 'VISIBILITY_DESC'; +export type PlatformAgentPersonaOrderBy = | 'CONFIG_ASC' | 'CONFIG_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'CREATED_BY_ASC' | 'CREATED_BY_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' | 'ID_ASC' @@ -1232,12 +2931,12 @@ export type AgentPersonaOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC'; -export type AgentPlanOrderBy = + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +export type PlatformAgentPlanOrderBy = | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' | 'ID_ASC' @@ -1254,16 +2953,18 @@ export type AgentPlanOrderBy = | 'TITLE_ASC' | 'TITLE_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type AgentPromptOrderBy = + | 'UPDATED_AT_DESC' + | 'VISIBILITY_ASC' + | 'VISIBILITY_DESC'; +export type PlatformAgentPromptOrderBy = | 'CONTENT_ASC' | 'CONTENT_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'CREATED_BY_ASC' | 'CREATED_BY_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' | 'ID_ASC' @@ -1280,10 +2981,10 @@ export type AgentPromptOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC'; -export type AgentResourceChunkOrderBy = - | 'AGENT_RESOURCE_ID_ASC' - | 'AGENT_RESOURCE_ID_DESC' + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +export type PlatformAgentResourceChunkOrderBy = | 'BODY_ASC' | 'BODY_DESC' | 'CHUNK_INDEX_ASC' @@ -1299,13 +3000,15 @@ export type AgentResourceChunkOrderBy = | 'METADATA_ASC' | 'METADATA_DESC' | 'NATURAL' + | 'PLATFORM_AGENT_RESOURCE_ID_ASC' + | 'PLATFORM_AGENT_RESOURCE_ID_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'SEARCH_SCORE_ASC' | 'SEARCH_SCORE_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type AgentResourceOrderBy = +export type PlatformAgentResourceOrderBy = | 'ARCHIVED_AT_ASC' | 'ARCHIVED_AT_DESC' | 'BODY_ASC' @@ -1316,8 +3019,8 @@ export type AgentResourceOrderBy = | 'CREATED_AT_DESC' | 'CREATED_BY_ASC' | 'CREATED_BY_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' | 'DESCRIPTION_TRGM_SIMILARITY_ASC' @@ -1360,8 +3063,108 @@ export type AgentResourceOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC'; -export type AgentTaskOrderBy = + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +export type PlatformAgentRunOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'ARTIFACTS_ASC' + | 'ARTIFACTS_DESC' + | 'ATTEMPT_ASC' + | 'ATTEMPT_DESC' + | 'BASE_COMMIT_ASC' + | 'BASE_COMMIT_DESC' + | 'BRANCH_ASC' + | 'BRANCH_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DEADLINE_AT_ASC' + | 'DEADLINE_AT_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'ERROR_ASC' + | 'ERROR_DESC' + | 'EXECUTION_ID_ASC' + | 'EXECUTION_ID_DESC' + | 'FINISHED_AT_ASC' + | 'FINISHED_AT_DESC' + | 'HEAD_COMMIT_ASC' + | 'HEAD_COMMIT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'LAST_EVENT_SEQ_ASC' + | 'LAST_EVENT_SEQ_DESC' + | 'NATURAL' + | 'PARENT_RUN_ID_ASC' + | 'PARENT_RUN_ID_DESC' + | 'PLACEMENT_ASC' + | 'PLACEMENT_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PRINCIPAL_ID_ASC' + | 'PRINCIPAL_ID_DESC' + | 'REPO_URL_ASC' + | 'REPO_URL_DESC' + | 'STARTED_AT_ASC' + | 'STARTED_AT_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'THREAD_ID_ASC' + | 'THREAD_ID_DESC' + | 'TOKEN_USAGE_ASC' + | 'TOKEN_USAGE_DESC' + | 'TOTAL_COST_ASC' + | 'TOTAL_COST_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'VISIBILITY_ASC' + | 'VISIBILITY_DESC'; +export type PlatformAgentRunWorkspaceOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'ARTIFACTS_ASC' + | 'ARTIFACTS_DESC' + | 'BASE_BRANCH_ASC' + | 'BASE_BRANCH_DESC' + | 'BASE_COMMIT_ASC' + | 'BASE_COMMIT_DESC' + | 'BRANCH_ASC' + | 'BRANCH_DESC' + | 'CLONED_AT_ASC' + | 'CLONED_AT_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'HEAD_COMMIT_ASC' + | 'HEAD_COMMIT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'LAST_USED_AT_ASC' + | 'LAST_USED_AT_DESC' + | 'NATURAL' + | 'ORDINAL_ASC' + | 'ORDINAL_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PROVIDER_ASC' + | 'PROVIDER_DESC' + | 'PUBLICATION_ASC' + | 'PUBLICATION_DESC' + | 'REPOSITORY_ID_ASC' + | 'REPOSITORY_ID_DESC' + | 'REPO_ASC' + | 'REPO_DESC' + | 'RUN_ID_ASC' + | 'RUN_ID_DESC' + | 'STATE_ASC' + | 'STATE_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'VISIBILITY_ASC' + | 'VISIBILITY_DESC'; +export type PlatformAgentTaskOrderBy = | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'APPROVAL_FEEDBACK_ASC' @@ -1374,8 +3177,6 @@ export type AgentTaskOrderBy = | 'APPROVED_BY_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' | 'ERROR_ASC' @@ -1396,16 +3197,16 @@ export type AgentTaskOrderBy = | 'STATUS_ASC' | 'STATUS_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type AgentThreadOrderBy = + | 'UPDATED_AT_DESC' + | 'VISIBILITY_ASC' + | 'VISIBILITY_DESC'; +export type PlatformAgentThreadOrderBy = | 'AGENT_ID_ASC' | 'AGENT_ID_DESC' | 'ARCHIVED_AT_ASC' | 'ARCHIVED_AT_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' | 'ID_ASC' | 'ID_DESC' | 'IS_ARCHIVED_ASC' @@ -1432,439 +3233,2488 @@ export type AgentThreadOrderBy = | 'TITLE_ASC' | 'TITLE_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; + | 'UPDATED_AT_DESC' + | 'VISIBILITY_ASC' + | 'VISIBILITY_DESC'; // ============ CRUD Input Types ============ export interface CreateAgentInput { clientMutationId?: string; - agent: { - config?: Record; - databaseId: string; - isEphemeral?: boolean; - name: string; + agent: { + config?: Record; + databaseId: string; + isEphemeral?: boolean; + name: string; + ownerId?: string; + parentId?: string; + personaId?: string; + status?: string; + systemPrompt?: string; + }; +} +export interface AgentPatch { + config?: Record | null; + databaseId?: string | null; + isEphemeral?: boolean | null; + name?: string | null; + ownerId?: string | null; + parentId?: string | null; + personaId?: string | null; + status?: string | null; + systemPrompt?: string | null; +} +export interface UpdateAgentInput { + clientMutationId?: string; + id: string; + agentPatch: AgentPatch; +} +export interface DeleteAgentInput { + clientMutationId?: string; + id: string; +} +export interface CreateAgentMessageInput { + clientMutationId?: string; + agentMessage: { + actorId?: string; + agentId?: string; + authorRole: string; + databaseId: string; + kind?: string; + model?: string; + parts?: Record; + threadId: string; + visibility?: string; + }; +} +export interface AgentMessagePatch { + actorId?: string | null; + agentId?: string | null; + authorRole?: string | null; + databaseId?: string | null; + kind?: string | null; + model?: string | null; + parts?: Record | null; + threadId?: string | null; + visibility?: string | null; +} +export interface UpdateAgentMessageInput { + clientMutationId?: string; + id: string; + agentMessagePatch: AgentMessagePatch; +} +export interface DeleteAgentMessageInput { + clientMutationId?: string; + id: string; +} +export interface CreateAgentPersonaInput { + clientMutationId?: string; + agentPersona: { + config?: Record; + createdBy?: string; + createdByPrincipal?: string; + databaseId: string; + description?: string; + isActive?: boolean; + name: string; + resources?: string[]; + slug: string; + systemPrompt?: string; + updatedBy?: string; + updatedByPrincipal?: string; + }; +} +export interface AgentPersonaPatch { + config?: Record | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + databaseId?: string | null; + description?: string | null; + isActive?: boolean | null; + name?: string | null; + resources?: string[] | null; + slug?: string | null; + systemPrompt?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdateAgentPersonaInput { + clientMutationId?: string; + id: string; + agentPersonaPatch: AgentPersonaPatch; +} +export interface DeleteAgentPersonaInput { + clientMutationId?: string; + id: string; +} +export interface CreateAgentPlanInput { + clientMutationId?: string; + agentPlan: { + databaseId: string; + description?: string; + ownerId?: string; + status?: string; + threadId: string; + title: string; + visibility?: string; + }; +} +export interface AgentPlanPatch { + databaseId?: string | null; + description?: string | null; + ownerId?: string | null; + status?: string | null; + threadId?: string | null; + title?: string | null; + visibility?: string | null; +} +export interface UpdateAgentPlanInput { + clientMutationId?: string; + id: string; + agentPlanPatch: AgentPlanPatch; +} +export interface DeleteAgentPlanInput { + clientMutationId?: string; + id: string; +} +export interface CreateAgentPromptInput { + clientMutationId?: string; + agentPrompt: { + content: string; + createdBy?: string; + createdByPrincipal?: string; + databaseId: string; + description?: string; + isDefault?: boolean; + metadata?: Record; + name: string; + updatedBy?: string; + updatedByPrincipal?: string; + }; +} +export interface AgentPromptPatch { + content?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + databaseId?: string | null; + description?: string | null; + isDefault?: boolean | null; + metadata?: Record | null; + name?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdateAgentPromptInput { + clientMutationId?: string; + id: string; + agentPromptPatch: AgentPromptPatch; +} +export interface DeleteAgentPromptInput { + clientMutationId?: string; + id: string; +} +export interface CreateAgentResourceChunkInput { + clientMutationId?: string; + agentResourceChunk: { + agentResourceId: string; + body: string; + chunkIndex?: number; + databaseId?: string; + embedding?: number[]; + embeddingText?: string; + metadata?: Record; + }; +} +export interface AgentResourceChunkPatch { + agentResourceId?: string | null; + body?: string | null; + chunkIndex?: number | null; + databaseId?: string | null; + embedding?: number[] | null; + embeddingText?: string | null; + metadata?: Record | null; +} +export interface UpdateAgentResourceChunkInput { + clientMutationId?: string; + id: string; + agentResourceChunkPatch: AgentResourceChunkPatch; +} +export interface DeleteAgentResourceChunkInput { + clientMutationId?: string; + id: string; +} +export interface CreateAgentResourceInput { + clientMutationId?: string; + agentResource: { + archivedAt?: string; + body: string; + createdBy?: string; + createdByPrincipal?: string; + databaseId: string; + description?: string; + embedding?: number[]; + embeddingText?: string; + isActive?: boolean; + isArchived?: boolean; + keywords?: string[]; + kind?: string; + metadata?: Record; + slug: string; + title: string; + updatedBy?: string; + updatedByPrincipal?: string; + }; +} +export interface AgentResourcePatch { + archivedAt?: string | null; + body?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + databaseId?: string | null; + description?: string | null; + embedding?: number[] | null; + embeddingText?: string | null; + isActive?: boolean | null; + isArchived?: boolean | null; + keywords?: string[] | null; + kind?: string | null; + metadata?: Record | null; + slug?: string | null; + title?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdateAgentResourceInput { + clientMutationId?: string; + id: string; + agentResourcePatch: AgentResourcePatch; +} +export interface DeleteAgentResourceInput { + clientMutationId?: string; + id: string; +} +export interface CreateAgentTaskInput { + clientMutationId?: string; + agentTask: { + actorId?: string; + approvalFeedback?: string; + approvalStatus?: string; + approvedAt?: string; + approvedBy?: string; + databaseId: string; + description: string; + error?: string; + orderIndex?: number; + planId: string; + requiresApproval?: boolean; + source?: string; + status?: string; + visibility?: string; + }; +} +export interface AgentTaskPatch { + actorId?: string | null; + approvalFeedback?: string | null; + approvalStatus?: string | null; + approvedAt?: string | null; + approvedBy?: string | null; + databaseId?: string | null; + description?: string | null; + error?: string | null; + orderIndex?: number | null; + planId?: string | null; + requiresApproval?: boolean | null; + source?: string | null; + status?: string | null; + visibility?: string | null; +} +export interface UpdateAgentTaskInput { + clientMutationId?: string; + id: string; + agentTaskPatch: AgentTaskPatch; +} +export interface DeleteAgentTaskInput { + clientMutationId?: string; + id: string; +} +export interface CreateAgentThreadInput { + clientMutationId?: string; + agentThread: { + agentId?: string; + archivedAt?: string; + databaseId: string; + isArchived?: boolean; + mode?: string; + model?: string; + ownerId?: string; + parentThreadId?: string; + promptTemplateId?: string; + status?: string; + systemPrompt?: string; + tags?: string[]; + title?: string; + visibility?: string; + }; +} +export interface AgentThreadPatch { + agentId?: string | null; + archivedAt?: string | null; + databaseId?: string | null; + isArchived?: boolean | null; + mode?: string | null; + model?: string | null; + ownerId?: string | null; + parentThreadId?: string | null; + promptTemplateId?: string | null; + status?: string | null; + systemPrompt?: string | null; + tags?: string[] | null; + title?: string | null; + visibility?: string | null; +} +export interface UpdateAgentThreadInput { + clientMutationId?: string; + id: string; + agentThreadPatch: AgentThreadPatch; +} +export interface DeleteAgentThreadInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformAgentInput { + clientMutationId?: string; + platformAgent: { + config?: Record; + isEphemeral?: boolean; + name: string; + ownerId?: string; + parentId?: string; + personaId?: string; + status?: string; + systemPrompt?: string; + }; +} +export interface PlatformAgentPatch { + config?: Record | null; + isEphemeral?: boolean | null; + name?: string | null; + ownerId?: string | null; + parentId?: string | null; + personaId?: string | null; + status?: string | null; + systemPrompt?: string | null; +} +export interface UpdatePlatformAgentInput { + clientMutationId?: string; + id: string; + platformAgentPatch: PlatformAgentPatch; +} +export interface DeletePlatformAgentInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformAgentEventInput { + clientMutationId?: string; + platformAgentEvent: { + actorId?: string; + entry: Record; + recordedAt: string; + runId: string; + seq: number; + transcriptFormat?: string; + transcriptVersion: number; + visibility?: string; + }; +} +export interface PlatformAgentEventPatch { + actorId?: string | null; + entry?: Record | null; + recordedAt?: string | null; + runId?: string | null; + seq?: number | null; + transcriptFormat?: string | null; + transcriptVersion?: number | null; + visibility?: string | null; +} +export interface UpdatePlatformAgentEventInput { + clientMutationId?: string; + id: string; + platformAgentEventPatch: PlatformAgentEventPatch; +} +export interface DeletePlatformAgentEventInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformAgentMessageInput { + clientMutationId?: string; + platformAgentMessage: { + actorId?: string; + agentId?: string; + authorRole: string; + deliveredRunId?: string; + kind?: string; + model?: string; + parts?: Record; + threadId: string; + visibility?: string; + }; +} +export interface PlatformAgentMessagePatch { + actorId?: string | null; + agentId?: string | null; + authorRole?: string | null; + deliveredRunId?: string | null; + kind?: string | null; + model?: string | null; + parts?: Record | null; + threadId?: string | null; + visibility?: string | null; +} +export interface UpdatePlatformAgentMessageInput { + clientMutationId?: string; + id: string; + platformAgentMessagePatch: PlatformAgentMessagePatch; +} +export interface DeletePlatformAgentMessageInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformAgentPersonaInput { + clientMutationId?: string; + platformAgentPersona: { + config?: Record; + createdBy?: string; + createdByPrincipal?: string; + description?: string; + isActive?: boolean; + name: string; + resources?: string[]; + slug: string; + systemPrompt?: string; + updatedBy?: string; + updatedByPrincipal?: string; + }; +} +export interface PlatformAgentPersonaPatch { + config?: Record | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + description?: string | null; + isActive?: boolean | null; + name?: string | null; + resources?: string[] | null; + slug?: string | null; + systemPrompt?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdatePlatformAgentPersonaInput { + clientMutationId?: string; + id: string; + platformAgentPersonaPatch: PlatformAgentPersonaPatch; +} +export interface DeletePlatformAgentPersonaInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformAgentPlanInput { + clientMutationId?: string; + platformAgentPlan: { + description?: string; + ownerId?: string; + status?: string; + threadId: string; + title: string; + visibility?: string; + }; +} +export interface PlatformAgentPlanPatch { + description?: string | null; + ownerId?: string | null; + status?: string | null; + threadId?: string | null; + title?: string | null; + visibility?: string | null; +} +export interface UpdatePlatformAgentPlanInput { + clientMutationId?: string; + id: string; + platformAgentPlanPatch: PlatformAgentPlanPatch; +} +export interface DeletePlatformAgentPlanInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformAgentPromptInput { + clientMutationId?: string; + platformAgentPrompt: { + content: string; + createdBy?: string; + createdByPrincipal?: string; + description?: string; + isDefault?: boolean; + metadata?: Record; + name: string; + updatedBy?: string; + updatedByPrincipal?: string; + }; +} +export interface PlatformAgentPromptPatch { + content?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + description?: string | null; + isDefault?: boolean | null; + metadata?: Record | null; + name?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdatePlatformAgentPromptInput { + clientMutationId?: string; + id: string; + platformAgentPromptPatch: PlatformAgentPromptPatch; +} +export interface DeletePlatformAgentPromptInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformAgentResourceChunkInput { + clientMutationId?: string; + platformAgentResourceChunk: { + body: string; + chunkIndex?: number; + embedding?: number[]; + embeddingText?: string; + metadata?: Record; + platformAgentResourceId: string; + }; +} +export interface PlatformAgentResourceChunkPatch { + body?: string | null; + chunkIndex?: number | null; + embedding?: number[] | null; + embeddingText?: string | null; + metadata?: Record | null; + platformAgentResourceId?: string | null; +} +export interface UpdatePlatformAgentResourceChunkInput { + clientMutationId?: string; + id: string; + platformAgentResourceChunkPatch: PlatformAgentResourceChunkPatch; +} +export interface DeletePlatformAgentResourceChunkInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformAgentResourceInput { + clientMutationId?: string; + platformAgentResource: { + archivedAt?: string; + body: string; + createdBy?: string; + createdByPrincipal?: string; + description?: string; + embedding?: number[]; + embeddingText?: string; + isActive?: boolean; + isArchived?: boolean; + keywords?: string[]; + kind?: string; + metadata?: Record; + slug: string; + title: string; + updatedBy?: string; + updatedByPrincipal?: string; + }; +} +export interface PlatformAgentResourcePatch { + archivedAt?: string | null; + body?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + description?: string | null; + embedding?: number[] | null; + embeddingText?: string | null; + isActive?: boolean | null; + isArchived?: boolean | null; + keywords?: string[] | null; + kind?: string | null; + metadata?: Record | null; + slug?: string | null; + title?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdatePlatformAgentResourceInput { + clientMutationId?: string; + id: string; + platformAgentResourcePatch: PlatformAgentResourcePatch; +} +export interface DeletePlatformAgentResourceInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformAgentRunInput { + clientMutationId?: string; + platformAgentRun: { + actorId?: string; + artifacts?: Record; + attempt?: number; + baseCommit?: string; + branch?: string; + databaseId?: string; + deadlineAt?: string; + entityId?: string; + error?: string; + executionId?: string; + finishedAt?: string; + headCommit?: string; + lastEventSeq?: number; + parentRunId?: string; + placement?: string; + principalId?: string; + repoUrl?: string; + startedAt?: string; + status?: string; + threadId: string; + tokenUsage?: Record; + totalCost?: string; + visibility?: string; + }; +} +export interface PlatformAgentRunPatch { + actorId?: string | null; + artifacts?: Record | null; + attempt?: number | null; + baseCommit?: string | null; + branch?: string | null; + databaseId?: string | null; + deadlineAt?: string | null; + entityId?: string | null; + error?: string | null; + executionId?: string | null; + finishedAt?: string | null; + headCommit?: string | null; + lastEventSeq?: number | null; + parentRunId?: string | null; + placement?: string | null; + principalId?: string | null; + repoUrl?: string | null; + startedAt?: string | null; + status?: string | null; + threadId?: string | null; + tokenUsage?: Record | null; + totalCost?: string | null; + visibility?: string | null; +} +export interface UpdatePlatformAgentRunInput { + clientMutationId?: string; + id: string; + platformAgentRunPatch: PlatformAgentRunPatch; +} +export interface DeletePlatformAgentRunInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformAgentRunWorkspaceInput { + clientMutationId?: string; + platformAgentRunWorkspace: { + actorId?: string; + artifacts?: Record; + baseBranch: string; + baseCommit?: string; + branch: string; + clonedAt?: string; + headCommit?: string; + lastUsedAt?: string; + ordinal?: number; + provider: string; + publication?: string; + repo: string; + repositoryId?: string; + runId: string; + state?: string; + visibility?: string; + }; +} +export interface PlatformAgentRunWorkspacePatch { + actorId?: string | null; + artifacts?: Record | null; + baseBranch?: string | null; + baseCommit?: string | null; + branch?: string | null; + clonedAt?: string | null; + headCommit?: string | null; + lastUsedAt?: string | null; + ordinal?: number | null; + provider?: string | null; + publication?: string | null; + repo?: string | null; + repositoryId?: string | null; + runId?: string | null; + state?: string | null; + visibility?: string | null; +} +export interface UpdatePlatformAgentRunWorkspaceInput { + clientMutationId?: string; + id: string; + platformAgentRunWorkspacePatch: PlatformAgentRunWorkspacePatch; +} +export interface DeletePlatformAgentRunWorkspaceInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformAgentTaskInput { + clientMutationId?: string; + platformAgentTask: { + actorId?: string; + approvalFeedback?: string; + approvalStatus?: string; + approvedAt?: string; + approvedBy?: string; + description: string; + error?: string; + orderIndex?: number; + planId: string; + requiresApproval?: boolean; + source?: string; + status?: string; + visibility?: string; + }; +} +export interface PlatformAgentTaskPatch { + actorId?: string | null; + approvalFeedback?: string | null; + approvalStatus?: string | null; + approvedAt?: string | null; + approvedBy?: string | null; + description?: string | null; + error?: string | null; + orderIndex?: number | null; + planId?: string | null; + requiresApproval?: boolean | null; + source?: string | null; + status?: string | null; + visibility?: string | null; +} +export interface UpdatePlatformAgentTaskInput { + clientMutationId?: string; + id: string; + platformAgentTaskPatch: PlatformAgentTaskPatch; +} +export interface DeletePlatformAgentTaskInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformAgentThreadInput { + clientMutationId?: string; + platformAgentThread: { + agentId?: string; + archivedAt?: string; + isArchived?: boolean; + mode?: string; + model?: string; ownerId?: string; - parentId?: string; - personaId?: string; + parentThreadId?: string; + promptTemplateId?: string; status?: string; systemPrompt?: string; + tags?: string[]; + title?: string; + visibility?: string; }; } -export interface AgentPatch { - config?: Record | null; - databaseId?: string | null; - isEphemeral?: boolean | null; - name?: string | null; - ownerId?: string | null; - parentId?: string | null; - personaId?: string | null; - status?: string | null; - systemPrompt?: string | null; +export interface PlatformAgentThreadPatch { + agentId?: string | null; + archivedAt?: string | null; + isArchived?: boolean | null; + mode?: string | null; + model?: string | null; + ownerId?: string | null; + parentThreadId?: string | null; + promptTemplateId?: string | null; + status?: string | null; + systemPrompt?: string | null; + tags?: string[] | null; + title?: string | null; + visibility?: string | null; +} +export interface UpdatePlatformAgentThreadInput { + clientMutationId?: string; + id: string; + platformAgentThreadPatch: PlatformAgentThreadPatch; +} +export interface DeletePlatformAgentThreadInput { + clientMutationId?: string; + id: string; +} +// ============ Connection Fields Map ============ +export const connectionFieldsMap = { + Agent: { + agentMessages: 'AgentMessage', + agentThreads: 'AgentThread', + childAgents: 'Agent', + }, + AgentPersona: { + agentsByPersonaId: 'Agent', + }, + AgentPlan: { + agentTasksByPlanId: 'AgentTask', + }, + AgentPrompt: { + agentThreadsByPromptTemplateId: 'AgentThread', + }, + AgentResource: { + agentResourceChunks: 'AgentResourceChunk', + }, + AgentThread: { + agentMessagesByThreadId: 'AgentMessage', + agentPlansByThreadId: 'AgentPlan', + agentThreadsByParentThreadId: 'AgentThread', + }, + PlatformAgent: { + childPlatformAgents: 'PlatformAgent', + platformAgentMessagesByAgentId: 'PlatformAgentMessage', + platformAgentThreadsByAgentId: 'PlatformAgentThread', + }, + PlatformAgentPersona: { + platformAgentsByPersonaId: 'PlatformAgent', + }, + PlatformAgentPlan: { + platformAgentTasksByPlanId: 'PlatformAgentTask', + }, + PlatformAgentPrompt: { + platformAgentThreadsByPromptTemplateId: 'PlatformAgentThread', + }, + PlatformAgentResource: { + platformAgentResourceChunks: 'PlatformAgentResourceChunk', + }, + PlatformAgentRun: { + platformAgentEventsByRunId: 'PlatformAgentEvent', + platformAgentMessagesByDeliveredRunId: 'PlatformAgentMessage', + platformAgentRunWorkspacesByRunId: 'PlatformAgentRunWorkspace', + }, + PlatformAgentThread: { + platformAgentMessagesByThreadId: 'PlatformAgentMessage', + platformAgentPlansByThreadId: 'PlatformAgentPlan', + platformAgentRunsByThreadId: 'PlatformAgentRun', + platformAgentThreadsByParentThreadId: 'PlatformAgentThread', + }, +} 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; +} +/** A filter to be used against many `AgentMessage` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentToManyAgentMessageFilter { + /** Filters to entities where every related entity matches. */ + every?: AgentMessageFilter; + /** Filters to entities where no related entity matches. */ + none?: AgentMessageFilter; + /** Filters to entities where at least one related entity matches. */ + some?: AgentMessageFilter; +} +/** A filter to be used against many `AgentThread` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentToManyAgentThreadFilter { + /** Filters to entities where every related entity matches. */ + every?: AgentThreadFilter; + /** Filters to entities where no related entity matches. */ + none?: AgentThreadFilter; + /** Filters to entities where at least one related entity matches. */ + some?: AgentThreadFilter; +} +/** A filter to be used against many `Agent` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentToManyAgentFilter { + /** Filters to entities where every related entity matches. */ + every?: AgentFilter; + /** Filters to entities where no related entity matches. */ + none?: AgentFilter; + /** Filters to entities where at least one related entity matches. */ + some?: AgentFilter; +} +/** A filter to be used against many `Agent` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentPersonaToManyAgentFilter { + /** Filters to entities where every related entity matches. */ + every?: AgentFilter; + /** Filters to entities where no related entity matches. */ + none?: AgentFilter; + /** Filters to entities where at least one related entity matches. */ + some?: AgentFilter; +} +/** A filter to be used against many `AgentTask` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentPlanToManyAgentTaskFilter { + /** Filters to entities where every related entity matches. */ + every?: AgentTaskFilter; + /** Filters to entities where no related entity matches. */ + none?: AgentTaskFilter; + /** Filters to entities where at least one related entity matches. */ + some?: AgentTaskFilter; +} +/** A filter to be used against many `AgentThread` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentPromptToManyAgentThreadFilter { + /** Filters to entities where every related entity matches. */ + every?: AgentThreadFilter; + /** Filters to entities where no related entity matches. */ + none?: AgentThreadFilter; + /** Filters to entities where at least one related entity matches. */ + some?: AgentThreadFilter; +} +/** Input for vector similarity search. Provide a query vector, optional metric, and optional max distance threshold. */ +export interface VectorNearbyInput { + /** Maximum distance threshold. Only rows within this distance are returned. */ + distance?: number; + /** When true (default for tables with @hasChunks), transparently queries the chunks table and returns the minimum distance across parent + all chunks. Set to false to only search the parent embedding. */ + includeChunks?: boolean; + /** Similarity metric to use (default: COSINE). */ + metric?: VectorMetric; + /** Natural language text to embed server-side for similarity search. Mutually exclusive with `vector` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + text?: string; + /** Query vector for similarity search. */ + vector: number[]; +} +/** A filter to be used against many `AgentResourceChunk` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentResourceToManyAgentResourceChunkFilter { + /** Filters to entities where every related entity matches. */ + every?: AgentResourceChunkFilter; + /** Filters to entities where no related entity matches. */ + none?: AgentResourceChunkFilter; + /** Filters to entities where at least one related entity matches. */ + some?: AgentResourceChunkFilter; +} +/** A filter to be used against String fields with pg_trgm support. All fields are combined with a logical ‘and.’ */ +export interface StringTrgmFilter { + /** 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; + /** Fuzzy matches using pg_trgm trigram similarity. Tolerates typos and misspellings. */ + similarTo?: TrgmSearchInput; + /** Starts with the specified string (case-sensitive). */ + startsWith?: string; + /** Starts with the specified string (case-insensitive). */ + startsWithInsensitive?: string; + /** Fuzzy matches using pg_trgm word_similarity. Finds the best matching substring within the column value. */ + wordSimilarTo?: TrgmSearchInput; +} +/** Input for pg_trgm fuzzy text matching. Provide a search value and optional similarity threshold. */ +export interface TrgmSearchInput { + /** Minimum similarity threshold (0.0 to 1.0). Higher = stricter matching. Default is 0.3. */ + threshold?: number; + /** The text to fuzzy-match against. Typos and misspellings are tolerated. */ + value: string; +} +/** A filter to be used against many `AgentMessage` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentThreadToManyAgentMessageFilter { + /** Filters to entities where every related entity matches. */ + every?: AgentMessageFilter; + /** Filters to entities where no related entity matches. */ + none?: AgentMessageFilter; + /** Filters to entities where at least one related entity matches. */ + some?: AgentMessageFilter; } -export interface UpdateAgentInput { - clientMutationId?: string; - id: string; - agentPatch: AgentPatch; +/** A filter to be used against many `AgentPlan` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentThreadToManyAgentPlanFilter { + /** Filters to entities where every related entity matches. */ + every?: AgentPlanFilter; + /** Filters to entities where no related entity matches. */ + none?: AgentPlanFilter; + /** Filters to entities where at least one related entity matches. */ + some?: AgentPlanFilter; } -export interface DeleteAgentInput { - clientMutationId?: string; - id: string; +/** A filter to be used against many `AgentThread` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentThreadToManyAgentThreadFilter { + /** Filters to entities where every related entity matches. */ + every?: AgentThreadFilter; + /** Filters to entities where no related entity matches. */ + none?: AgentThreadFilter; + /** Filters to entities where at least one related entity matches. */ + some?: AgentThreadFilter; } -export interface CreateAgentMessageInput { - clientMutationId?: string; - agentMessage: { - actorId?: string; - agentId?: string; - authorRole: string; - databaseId: string; - model?: string; - parts?: Record; - threadId: string; - }; +/** A filter to be used against many `PlatformAgent` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentToManyPlatformAgentFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformAgentFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformAgentFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformAgentFilter; } -export interface AgentMessagePatch { - actorId?: string | null; - agentId?: string | null; - authorRole?: string | null; - databaseId?: string | null; - model?: string | null; - parts?: Record | null; - threadId?: string | null; +/** A filter to be used against many `PlatformAgentMessage` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentToManyPlatformAgentMessageFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformAgentMessageFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformAgentMessageFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformAgentMessageFilter; } -export interface UpdateAgentMessageInput { - clientMutationId?: string; - id: string; - agentMessagePatch: AgentMessagePatch; +/** A filter to be used against many `PlatformAgentThread` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentToManyPlatformAgentThreadFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformAgentThreadFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformAgentThreadFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformAgentThreadFilter; } -export interface DeleteAgentMessageInput { - clientMutationId?: string; - id: string; +/** A filter to be used against many `PlatformAgent` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentPersonaToManyPlatformAgentFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformAgentFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformAgentFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformAgentFilter; } -export interface CreateAgentPersonaInput { - clientMutationId?: string; - agentPersona: { - config?: Record; - createdBy?: string; - databaseId: string; - description?: string; - isActive?: boolean; - name: string; - resources?: string[]; - slug: string; - systemPrompt?: string; - updatedBy?: string; - }; +/** A filter to be used against many `PlatformAgentTask` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentPlanToManyPlatformAgentTaskFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformAgentTaskFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformAgentTaskFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformAgentTaskFilter; } -export interface AgentPersonaPatch { - config?: Record | null; - createdBy?: string | null; - databaseId?: string | null; - description?: string | null; - isActive?: boolean | null; - name?: string | null; - resources?: string[] | null; - slug?: string | null; - systemPrompt?: string | null; - updatedBy?: string | null; +/** A filter to be used against many `PlatformAgentThread` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentPromptToManyPlatformAgentThreadFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformAgentThreadFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformAgentThreadFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformAgentThreadFilter; } -export interface UpdateAgentPersonaInput { - clientMutationId?: string; - id: string; - agentPersonaPatch: AgentPersonaPatch; +/** A filter to be used against many `PlatformAgentResourceChunk` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentResourceToManyPlatformAgentResourceChunkFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformAgentResourceChunkFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformAgentResourceChunkFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformAgentResourceChunkFilter; } -export interface DeleteAgentPersonaInput { - clientMutationId?: string; - id: string; +/** A filter to be used against many `PlatformAgentEvent` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentRunToManyPlatformAgentEventFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformAgentEventFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformAgentEventFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformAgentEventFilter; } -export interface CreateAgentPlanInput { - clientMutationId?: string; - agentPlan: { - databaseId: string; - description?: string; - ownerId?: string; - status?: string; - threadId: string; - title: string; - }; +/** A filter to be used against many `PlatformAgentMessage` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentRunToManyPlatformAgentMessageFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformAgentMessageFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformAgentMessageFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformAgentMessageFilter; } -export interface AgentPlanPatch { - databaseId?: string | null; - description?: string | null; - ownerId?: string | null; - status?: string | null; - threadId?: string | null; - title?: string | null; +/** A filter to be used against many `PlatformAgentRunWorkspace` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentRunToManyPlatformAgentRunWorkspaceFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformAgentRunWorkspaceFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformAgentRunWorkspaceFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformAgentRunWorkspaceFilter; } -export interface UpdateAgentPlanInput { - clientMutationId?: string; - id: string; - agentPlanPatch: AgentPlanPatch; +/** A filter to be used against many `PlatformAgentMessage` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentThreadToManyPlatformAgentMessageFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformAgentMessageFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformAgentMessageFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformAgentMessageFilter; } -export interface DeleteAgentPlanInput { - clientMutationId?: string; - id: string; +/** A filter to be used against many `PlatformAgentPlan` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentThreadToManyPlatformAgentPlanFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformAgentPlanFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformAgentPlanFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformAgentPlanFilter; +} +/** A filter to be used against many `PlatformAgentRun` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentThreadToManyPlatformAgentRunFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformAgentRunFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformAgentRunFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformAgentRunFilter; +} +/** A filter to be used against many `PlatformAgentThread` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentThreadToManyPlatformAgentThreadFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformAgentThreadFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformAgentThreadFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformAgentThreadFilter; +} +/** An input for mutations affecting `Agent` */ +export interface AgentInput { + /** Per-instance config overrides (model, temperature, tools) */ + config?: Record; + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + id?: string; + /** If true, agent is deleted when its spawning thread is deleted */ + isEphemeral?: boolean; + /** Display name for this agent instance */ + name: string; + /** Human who owns/manages this agent */ + ownerId?: string; + /** Parent agent (for sub-agent delegation hierarchy) */ + parentId?: string; + /** Persona template this agent was created from */ + personaId?: string; + /** Agent lifecycle status: active, paused, terminated */ + status?: string; + /** System prompt override (NULL = inherit from persona) */ + systemPrompt?: string; + updatedAt?: string; +} +/** An input for mutations affecting `AgentMessage` */ +export interface AgentMessageInput { + /** User who authored this message */ + actorId?: string; + /** Agent that authored this message (NULL for human messages) */ + agentId?: string; + /** Who authored this message: user or assistant */ + authorRole: string; + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + id?: string; + /** Turn kind: user, assistant, system, or interrupt (arrived mid-run and redirects it) */ + kind?: string; + /** LLM model that generated this response */ + model?: string; + /** Message content: TextPart and ToolPart array */ + parts?: Record; + /** Foreign key to agent_thread */ + threadId: string; + updatedAt?: string; + /** Who may read this message, inherited from the thread */ + visibility?: string; +} +/** An input for mutations affecting `AgentPersona` */ +export interface AgentPersonaInput { + /** Model preferences, temperature, tool access, constraints */ + config?: Record; + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Brief description of this persona role */ + description?: string; + id?: string; + /** Whether this persona is available for use */ + isActive?: boolean; + /** Display name for this persona */ + name: string; + /** Slugs of agent_resource entries to link when spawning */ + resources?: string[]; + /** Unique human-readable identifier for this persona */ + slug: string; + /** Default system prompt for agents using this persona */ + systemPrompt?: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; +} +/** An input for mutations affecting `AgentPlan` */ +export interface AgentPlanInput { + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Overall goal or context for this plan */ + description?: string; + id?: string; + /** User who owns this plan */ + ownerId?: string; + /** Plan lifecycle: draft, active, completed, failed, cancelled */ + status?: string; + /** Foreign key to agent_thread */ + threadId: string; + /** Human-readable plan name */ + title: string; + updatedAt?: string; + /** Who may read this plan, inherited from the thread */ + visibility?: string; +} +/** An input for mutations affecting `AgentPrompt` */ +export interface AgentPromptInput { + /** The system prompt template content */ + content: string; + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** What this prompt template is for */ + description?: string; + id?: string; + /** Whether this is the default prompt for the entity/app */ + isDefault?: boolean; + /** Variables, tags, category metadata */ + metadata?: Record; + /** Unique name for lookup (e.g. default, code-review, sales-assistant) */ + name: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; } -export interface CreateAgentPromptInput { - clientMutationId?: string; - agentPrompt: { - content: string; - createdBy?: string; - databaseId: string; - description?: string; - isDefault?: boolean; - metadata?: Record; - name: string; - updatedBy?: string; - }; +/** An input for mutations affecting `AgentResourceChunk` */ +export interface AgentResourceChunkInput { + agentResourceId: string; + body: string; + chunkIndex?: number; + createdAt?: string; + /** Policy-required field derived from source table (used by AuthzRelatedEntityMembership) */ + databaseId?: string; + embedding?: number[]; + /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + embeddingText?: string; + id?: string; + metadata?: Record; + updatedAt?: string; } -export interface AgentPromptPatch { - content?: string | null; - createdBy?: string | null; - databaseId?: string | null; - description?: string | null; - isDefault?: boolean | null; - metadata?: Record | null; - name?: string | null; - updatedBy?: string | null; +/** An input for mutations affecting `AgentResource` */ +export interface AgentResourceInput { + /** Timestamp when this record was archived, NULL if active */ + archivedAt?: string; + /** Full content (instructions for skills, reference text for knowledge) */ + body: string; + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Brief description of this resource */ + description?: string; + embedding?: number[]; + /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + embeddingText?: string; + id?: string; + /** Whether this resource is active and retrievable */ + isActive?: boolean; + /** Whether this record has been archived by the user */ + isArchived?: boolean; + /** Keywords for deterministic retrieval routing */ + keywords?: string[]; + /** Resource type: skill, knowledge, or convention */ + kind?: string; + /** Structured metadata: category, version, author, custom attributes */ + metadata?: Record; + /** Unique human-readable identifier for portable references */ + slug: string; + /** Resource name or title */ + title: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; } -export interface UpdateAgentPromptInput { - clientMutationId?: string; - id: string; - agentPromptPatch: AgentPromptPatch; +/** An input for mutations affecting `AgentTask` */ +export interface AgentTaskInput { + /** User who authored this task */ + actorId?: string; + /** Reviewer feedback or reason for the decision */ + approvalFeedback?: string; + /** Approval decision: pending, approved, rejected (NULL if not an approval task) */ + approvalStatus?: string; + /** Timestamp of the approval or rejection decision */ + approvedAt?: string; + /** User who approved or rejected this task */ + approvedBy?: string; + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Natural-language description of the work to do */ + description: string; + /** Error message captured when the task failed */ + error?: string; + id?: string; + /** Position within the plan (for ordered task lists) */ + orderIndex?: number; + /** Foreign key to agent_plan */ + planId: string; + /** Whether this task is an approval gate requiring human decision */ + requiresApproval?: boolean; + /** Who created the task: agent or user */ + source?: string; + /** Current status of this task */ + status?: string; + updatedAt?: string; + /** Who may read this task, inherited from its parent */ + visibility?: string; } -export interface DeleteAgentPromptInput { - clientMutationId?: string; - id: string; +/** An input for mutations affecting `AgentThread` */ +export interface AgentThreadInput { + /** Agent instance assigned to this thread */ + agentId?: string; + /** Timestamp when this record was archived, NULL if active */ + archivedAt?: string; + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + id?: string; + /** Whether this record has been archived by the user */ + isArchived?: boolean; + /** Conversation mode: ask (plain Q&A) or agent (tool-enabled) */ + mode?: string; + /** LLM model id this thread is bound to */ + model?: string; + /** User who owns this thread */ + ownerId?: string; + /** Parent thread that spawned this sub-conversation */ + parentThreadId?: string; + /** Optional FK to a shared prompt template */ + promptTemplateId?: string; + /** Current status of this thread */ + status?: string; + /** System prompt active for this thread */ + systemPrompt?: string; + /** User-defined labels for organizing and filtering threads */ + tags?: string[]; + /** Human-readable conversation title */ + title?: string; + updatedAt?: string; + /** Who may read this thread: private (owner only) or entity (the scope's members) */ + visibility?: string; } -export interface CreateAgentResourceChunkInput { - clientMutationId?: string; - agentResourceChunk: { - agentResourceId: string; - body: string; - chunkIndex?: number; - embedding?: number[]; - embeddingText?: string; - metadata?: Record; - }; +/** An input for mutations affecting `PlatformAgent` */ +export interface PlatformAgentInput { + /** Per-instance config overrides (model, temperature, tools) */ + config?: Record; + createdAt?: string; + id?: string; + /** If true, agent is deleted when its spawning thread is deleted */ + isEphemeral?: boolean; + /** Display name for this agent instance */ + name: string; + /** Human who owns/manages this agent */ + ownerId?: string; + /** Parent agent (for sub-agent delegation hierarchy) */ + parentId?: string; + /** Persona template this agent was created from */ + personaId?: string; + /** Agent lifecycle status: active, paused, terminated */ + status?: string; + /** System prompt override (NULL = inherit from persona) */ + systemPrompt?: string; + updatedAt?: string; } -export interface AgentResourceChunkPatch { - agentResourceId?: string | null; - body?: string | null; - chunkIndex?: number | null; - embedding?: number[] | null; - embeddingText?: string | null; - metadata?: Record | null; +/** An input for mutations affecting `PlatformAgentEvent` */ +export interface PlatformAgentEventInput { + /** User whose run this entry belongs to, inherited from the run */ + actorId?: string; + createdAt?: string; + /** The agent session entry, verbatim — every rendered surface is a projection of it */ + entry: Record; + id?: string; + /** When the writer produced this entry, by its own clock */ + recordedAt: string; + /** Foreign key to agent_run */ + runId: string; + /** Position of this entry in the run, 1-based and gapless */ + seq: number; + /** Transcript format this entry is encoded in */ + transcriptFormat?: string; + /** Version of that transcript format this entry was written in */ + transcriptVersion: number; + updatedAt?: string; + /** Who may read this entry, inherited from the run */ + visibility?: string; } -export interface UpdateAgentResourceChunkInput { - clientMutationId?: string; - id: string; - agentResourceChunkPatch: AgentResourceChunkPatch; +/** An input for mutations affecting `PlatformAgentMessage` */ +export interface PlatformAgentMessageInput { + /** User who authored this message */ + actorId?: string; + /** Agent that authored this message (NULL for human messages) */ + agentId?: string; + /** Who authored this message: user or assistant */ + authorRole: string; + createdAt?: string; + /** Run that consumed this message; null while it is still queued */ + deliveredRunId?: string; + id?: string; + /** Turn kind: user, assistant, system, or interrupt (arrived mid-run and redirects it) */ + kind?: string; + /** LLM model that generated this response */ + model?: string; + /** Message content: TextPart and ToolPart array */ + parts?: Record; + /** Foreign key to agent_thread */ + threadId: string; + updatedAt?: string; + /** Who may read this message, inherited from the thread */ + visibility?: string; } -export interface DeleteAgentResourceChunkInput { - clientMutationId?: string; - id: string; +/** An input for mutations affecting `PlatformAgentPersona` */ +export interface PlatformAgentPersonaInput { + /** Model preferences, temperature, tool access, constraints */ + config?: Record; + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** Brief description of this persona role */ + description?: string; + id?: string; + /** Whether this persona is available for use */ + isActive?: boolean; + /** Display name for this persona */ + name: string; + /** Slugs of agent_resource entries to link when spawning */ + resources?: string[]; + /** Unique human-readable identifier for this persona */ + slug: string; + /** Default system prompt for agents using this persona */ + systemPrompt?: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; } -export interface CreateAgentResourceInput { - clientMutationId?: string; - agentResource: { - archivedAt?: string; - body: string; - createdBy?: string; - databaseId: string; - description?: string; - embedding?: number[]; - embeddingText?: string; - isActive?: boolean; - isArchived?: boolean; - keywords?: string[]; - kind?: string; - metadata?: Record; - slug: string; - title: string; - updatedBy?: string; - }; +/** An input for mutations affecting `PlatformAgentPlan` */ +export interface PlatformAgentPlanInput { + createdAt?: string; + /** Overall goal or context for this plan */ + description?: string; + id?: string; + /** User who owns this plan */ + ownerId?: string; + /** Plan lifecycle: draft, active, completed, failed, cancelled */ + status?: string; + /** Foreign key to agent_thread */ + threadId: string; + /** Human-readable plan name */ + title: string; + updatedAt?: string; + /** Who may read this plan, inherited from the thread */ + visibility?: string; } -export interface AgentResourcePatch { - archivedAt?: string | null; - body?: string | null; - createdBy?: string | null; - databaseId?: string | null; - description?: string | null; - embedding?: number[] | null; - embeddingText?: string | null; - isActive?: boolean | null; - isArchived?: boolean | null; - keywords?: string[] | null; - kind?: string | null; - metadata?: Record | null; - slug?: string | null; - title?: string | null; - updatedBy?: string | null; +/** An input for mutations affecting `PlatformAgentPrompt` */ +export interface PlatformAgentPromptInput { + /** The system prompt template content */ + content: string; + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** What this prompt template is for */ + description?: string; + id?: string; + /** Whether this is the default prompt for the entity/app */ + isDefault?: boolean; + /** Variables, tags, category metadata */ + metadata?: Record; + /** Unique name for lookup (e.g. default, code-review, sales-assistant) */ + name: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; } -export interface UpdateAgentResourceInput { - clientMutationId?: string; - id: string; - agentResourcePatch: AgentResourcePatch; +/** An input for mutations affecting `PlatformAgentResourceChunk` */ +export interface PlatformAgentResourceChunkInput { + body: string; + chunkIndex?: number; + createdAt?: string; + embedding?: number[]; + /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + embeddingText?: string; + id?: string; + metadata?: Record; + platformAgentResourceId: string; + updatedAt?: string; } -export interface DeleteAgentResourceInput { - clientMutationId?: string; - id: string; +/** An input for mutations affecting `PlatformAgentResource` */ +export interface PlatformAgentResourceInput { + /** Timestamp when this record was archived, NULL if active */ + archivedAt?: string; + /** Full content (instructions for skills, reference text for knowledge) */ + body: string; + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** Brief description of this resource */ + description?: string; + embedding?: number[]; + /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + embeddingText?: string; + id?: string; + /** Whether this resource is active and retrievable */ + isActive?: boolean; + /** Whether this record has been archived by the user */ + isArchived?: boolean; + /** Keywords for deterministic retrieval routing */ + keywords?: string[]; + /** Resource type: skill, knowledge, or convention */ + kind?: string; + /** Structured metadata: category, version, author, custom attributes */ + metadata?: Record; + /** Unique human-readable identifier for portable references */ + slug: string; + /** Resource name or title */ + title: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; } -export interface CreateAgentTaskInput { - clientMutationId?: string; - agentTask: { - actorId?: string; - approvalFeedback?: string; - approvalStatus?: string; - approvedAt?: string; - approvedBy?: string; - databaseId: string; - description: string; - error?: string; - orderIndex?: number; - planId: string; - requiresApproval?: boolean; - source?: string; - status?: string; - }; +/** An input for mutations affecting `PlatformAgentRun` */ +export interface PlatformAgentRunInput { + /** User who invoked this run (audit/provenance; billing is entity_id) */ + actorId?: string; + /** What the run produced: commits, diffs, pull requests, usage totals */ + artifacts?: Record; + /** Attempt number within this run lineage */ + attempt?: number; + /** Commit the run started from */ + baseCommit?: string; + /** Branch the run commits to */ + branch?: string; + createdAt?: string; + /** Tenant database this run is attributed to (usage/billing attribution) */ + databaseId?: string; + /** When a supervisor should consider this run abandoned */ + deadlineAt?: string; + /** Entity billed for this run: an org the actor invoked on behalf of, or the actor themselves */ + entityId?: string; + /** Failure reason when status is failed */ + error?: string; + /** Execution currently attached to this run, by id and without a foreign key; null when the run holds no compute */ + executionId?: string; + /** When the run reached a terminal status */ + finishedAt?: string; + /** Commit the run has reached */ + headCommit?: string; + id?: string; + /** Highest event seq appended for this run; 0 before the first event */ + lastEventSeq?: number; + /** Run this one retries, by id and without a foreign key so lineage survives pruning */ + parentRunId?: string; + /** Where this run executes: cloud (a job) or local (an embedded host) */ + placement?: string; + /** Principal that invoked this run; equals actor_id when the actor acted directly */ + principalId?: string; + /** Git remote the run works against — the workspace sync protocol */ + repoUrl?: string; + /** When the run began executing */ + startedAt?: string; + /** Lifecycle state: pending, running, waiting, idle, interrupted, succeeded, failed, cancelled */ + status?: string; + /** Foreign key to agent_thread */ + threadId: string; + /** Token counts this run accumulated, per model, as the runtime reports them; null until settled */ + tokenUsage?: Record; + /** Settled cost of this run in the billing currency, summarising its metered rows; null until settled */ + totalCost?: string; + updatedAt?: string; + /** Who may read this run, inherited from the thread */ + visibility?: string; } -export interface AgentTaskPatch { - actorId?: string | null; - approvalFeedback?: string | null; - approvalStatus?: string | null; - approvedAt?: string | null; - approvedBy?: string | null; - databaseId?: string | null; - description?: string | null; - error?: string | null; - orderIndex?: number | null; - planId?: string | null; - requiresApproval?: boolean | null; - source?: string | null; - status?: string | null; +/** An input for mutations affecting `PlatformAgentRunWorkspace` */ +export interface PlatformAgentRunWorkspaceInput { + /** User whose run this workspace belongs to, inherited from the run */ + actorId?: string; + /** What publishing this workspace produced: diff stats, a pull request, a stored patch */ + artifacts?: Record; + /** Branch the workspace was cut from, and what a pull request merges into */ + baseBranch: string; + /** Commit the workspace was cut from; fixed once recorded */ + baseCommit?: string; + /** Branch this run commits to in this repository */ + branch: string; + /** When an execution first cloned this workspace */ + clonedAt?: string; + createdAt?: string; + /** Commit the work in this repository has reached */ + headCommit?: string; + id?: string; + /** When an execution last worked in this workspace; what a reclaim policy reads */ + lastUsedAt?: string; + /** Position of this workspace among the run's, 1-based and in clone order */ + ordinal?: number; + /** Git host this workspace was cloned from, as the runtime names it: github, local */ + provider: string; + /** How the work is published: pull_request, push, patch_artifact or none */ + publication?: string; + /** Repository as its provider names it (owner/name) */ + repo: string; + /** Catalog repository this workspace was cloned from, when the platform hosts it */ + repositoryId?: string; + /** Foreign key to agent_run */ + runId: string; + /** Whether the tree still exists: active (on disk), cold (reclaimed, restorable from head_commit) or purged */ + state?: string; + updatedAt?: string; + /** Who may read this workspace, inherited from the run */ + visibility?: string; } -export interface UpdateAgentTaskInput { - clientMutationId?: string; - id: string; - agentTaskPatch: AgentTaskPatch; +/** An input for mutations affecting `PlatformAgentTask` */ +export interface PlatformAgentTaskInput { + /** User who authored this task */ + actorId?: string; + /** Reviewer feedback or reason for the decision */ + approvalFeedback?: string; + /** Approval decision: pending, approved, rejected (NULL if not an approval task) */ + approvalStatus?: string; + /** Timestamp of the approval or rejection decision */ + approvedAt?: string; + /** User who approved or rejected this task */ + approvedBy?: string; + createdAt?: string; + /** Natural-language description of the work to do */ + description: string; + /** Error message captured when the task failed */ + error?: string; + id?: string; + /** Position within the plan (for ordered task lists) */ + orderIndex?: number; + /** Foreign key to agent_plan */ + planId: string; + /** Whether this task is an approval gate requiring human decision */ + requiresApproval?: boolean; + /** Who created the task: agent or user */ + source?: string; + /** Current status of this task */ + status?: string; + updatedAt?: string; + /** Who may read this task, inherited from its parent */ + visibility?: string; } -export interface DeleteAgentTaskInput { - clientMutationId?: string; - id: string; +/** An input for mutations affecting `PlatformAgentThread` */ +export interface PlatformAgentThreadInput { + /** Agent instance assigned to this thread */ + agentId?: string; + /** Timestamp when this record was archived, NULL if active */ + archivedAt?: string; + createdAt?: string; + id?: string; + /** Whether this record has been archived by the user */ + isArchived?: boolean; + /** Conversation mode: ask (plain Q&A) or agent (tool-enabled) */ + mode?: string; + /** LLM model id this thread is bound to */ + model?: string; + /** User who owns this thread */ + ownerId?: string; + /** Parent thread that spawned this sub-conversation */ + parentThreadId?: string; + /** Optional FK to a shared prompt template */ + promptTemplateId?: string; + /** Current status of this thread */ + status?: string; + /** System prompt active for this thread */ + systemPrompt?: string; + /** User-defined labels for organizing and filtering threads */ + tags?: string[]; + /** Human-readable conversation title */ + title?: string; + updatedAt?: string; + /** Who may read this thread: private (owner only) or entity (the scope's members) */ + visibility?: string; } -export interface CreateAgentThreadInput { - clientMutationId?: string; - agentThread: { - agentId?: string; - archivedAt?: string; - databaseId: string; - isArchived?: boolean; - mode?: string; - model?: string; - ownerId?: string; - parentThreadId?: string; - promptTemplateId?: string; - status?: string; - systemPrompt?: string; - tags?: string[]; - title?: string; - }; +/** A filter to be used against `AgentMessage` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentMessageFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `agent` relation. */ + agent?: AgentFilter; + /** A related `agent` exists. */ + agentExists?: boolean; + /** Filter by the object’s `agentId` field. */ + agentId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: AgentMessageFilter[]; + /** Filter by the object’s `authorRole` field. */ + authorRole?: StringFilter; + /** 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 `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `model` field. */ + model?: StringFilter; + /** Negates the expression. */ + not?: AgentMessageFilter; + /** Checks for any expressions in this list. */ + or?: AgentMessageFilter[]; + /** Filter by the object’s `parts` field. */ + parts?: JSONFilter; + /** Filter by the object’s `thread` relation. */ + thread?: AgentThreadFilter; + /** Filter by the object’s `threadId` field. */ + threadId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `visibility` field. */ + visibility?: StringFilter; +} +/** A filter to be used against `AgentThread` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentThreadFilter { + /** Filter by the object’s `agent` relation. */ + agent?: AgentFilter; + /** A related `agent` exists. */ + agentExists?: boolean; + /** Filter by the object’s `agentId` field. */ + agentId?: UUIDFilter; + /** Filter by the object’s `agentMessagesByThreadId` relation. */ + agentMessagesByThreadId?: AgentThreadToManyAgentMessageFilter; + /** `agentMessagesByThreadId` exist. */ + agentMessagesByThreadIdExist?: boolean; + /** Filter by the object’s `agentPlansByThreadId` relation. */ + agentPlansByThreadId?: AgentThreadToManyAgentPlanFilter; + /** `agentPlansByThreadId` exist. */ + agentPlansByThreadIdExist?: boolean; + /** Filter by the object’s `agentThreadsByParentThreadId` relation. */ + agentThreadsByParentThreadId?: AgentThreadToManyAgentThreadFilter; + /** `agentThreadsByParentThreadId` exist. */ + agentThreadsByParentThreadIdExist?: boolean; + /** Checks for all expressions in this list. */ + and?: AgentThreadFilter[]; + /** Filter by the object’s `archivedAt` field. */ + archivedAt?: DatetimeFilter; + /** 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 `isArchived` field. */ + isArchived?: BooleanFilter; + /** Filter by the object’s `mode` field. */ + mode?: StringFilter; + /** Filter by the object’s `model` field. */ + model?: StringFilter; + /** Negates the expression. */ + not?: AgentThreadFilter; + /** Checks for any expressions in this list. */ + or?: AgentThreadFilter[]; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `parentThread` relation. */ + parentThread?: AgentThreadFilter; + /** A related `parentThread` exists. */ + parentThreadExists?: boolean; + /** Filter by the object’s `parentThreadId` field. */ + parentThreadId?: UUIDFilter; + /** Filter by the object’s `promptTemplate` relation. */ + promptTemplate?: AgentPromptFilter; + /** A related `promptTemplate` exists. */ + promptTemplateExists?: boolean; + /** Filter by the object’s `promptTemplateId` field. */ + promptTemplateId?: UUIDFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `systemPrompt` field. */ + systemPrompt?: StringFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Filter by the object’s `title` field. */ + title?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `visibility` field. */ + visibility?: StringFilter; } -export interface AgentThreadPatch { - agentId?: string | null; - archivedAt?: string | null; - databaseId?: string | null; - isArchived?: boolean | null; - mode?: string | null; - model?: string | null; - ownerId?: string | null; - parentThreadId?: string | null; - promptTemplateId?: string | null; - status?: string | null; - systemPrompt?: string | null; - tags?: string[] | null; - title?: string | null; +/** A filter to be used against `Agent` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentFilter { + /** Filter by the object’s `agentMessages` relation. */ + agentMessages?: AgentToManyAgentMessageFilter; + /** `agentMessages` exist. */ + agentMessagesExist?: boolean; + /** Filter by the object’s `agentThreads` relation. */ + agentThreads?: AgentToManyAgentThreadFilter; + /** `agentThreads` exist. */ + agentThreadsExist?: boolean; + /** Checks for all expressions in this list. */ + and?: AgentFilter[]; + /** Filter by the object’s `childAgents` relation. */ + childAgents?: AgentToManyAgentFilter; + /** `childAgents` exist. */ + childAgentsExist?: boolean; + /** Filter by the object’s `config` field. */ + config?: 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; + /** Filter by the object’s `isEphemeral` field. */ + isEphemeral?: BooleanFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: AgentFilter; + /** Checks for any expressions in this list. */ + or?: AgentFilter[]; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `parent` relation. */ + parent?: AgentFilter; + /** A related `parent` exists. */ + parentExists?: boolean; + /** Filter by the object’s `parentId` field. */ + parentId?: UUIDFilter; + /** Filter by the object’s `persona` relation. */ + persona?: AgentPersonaFilter; + /** A related `persona` exists. */ + personaExists?: boolean; + /** Filter by the object’s `personaId` field. */ + personaId?: UUIDFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `systemPrompt` field. */ + systemPrompt?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; } -export interface UpdateAgentThreadInput { - clientMutationId?: string; - id: string; - agentThreadPatch: AgentThreadPatch; +/** A filter to be used against `AgentTask` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentTaskFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: AgentTaskFilter[]; + /** Filter by the object’s `approvalFeedback` field. */ + approvalFeedback?: StringFilter; + /** Filter by the object’s `approvalStatus` field. */ + approvalStatus?: StringFilter; + /** Filter by the object’s `approvedAt` field. */ + approvedAt?: DatetimeFilter; + /** Filter by the object’s `approvedBy` field. */ + approvedBy?: 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 `error` field. */ + error?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: AgentTaskFilter; + /** Checks for any expressions in this list. */ + or?: AgentTaskFilter[]; + /** Filter by the object’s `orderIndex` field. */ + orderIndex?: IntFilter; + /** Filter by the object’s `plan` relation. */ + plan?: AgentPlanFilter; + /** Filter by the object’s `planId` field. */ + planId?: UUIDFilter; + /** Filter by the object’s `requiresApproval` field. */ + requiresApproval?: BooleanFilter; + /** Filter by the object’s `source` field. */ + source?: StringFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `visibility` field. */ + visibility?: StringFilter; } -export interface DeleteAgentThreadInput { - clientMutationId?: string; - id: string; +/** Similarity metric for vector search */ +export type VectorMetric = 'COSINE' | 'IP' | 'L2'; +/** A filter to be used against `AgentResourceChunk` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentResourceChunkFilter { + /** Filter by the object’s `agentResource` relation. */ + agentResource?: AgentResourceFilter; + /** Filter by the object’s `agentResourceId` field. */ + agentResourceId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: AgentResourceChunkFilter[]; + /** Filter by the object’s `body` field. */ + body?: StringFilter; + /** Filter by the object’s `chunkIndex` field. */ + chunkIndex?: IntFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `embedding` field. */ + embedding?: VectorFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Negates the expression. */ + not?: AgentResourceChunkFilter; + /** Checks for any expressions in this list. */ + or?: AgentResourceChunkFilter[]; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** VECTOR search on the `embedding` column. */ + vectorEmbedding?: VectorNearbyInput; } -// ============ Connection Fields Map ============ -export const connectionFieldsMap = { - Agent: { - agentMessages: 'AgentMessage', - agentThreads: 'AgentThread', - childAgents: 'Agent', - }, - AgentPersona: { - agentsByPersonaId: 'Agent', - }, - AgentPlan: { - agentTasksByPlanId: 'AgentTask', - }, - AgentPrompt: { - agentThreadsByPromptTemplateId: 'AgentThread', - }, - AgentResource: { - agentResourceChunks: 'AgentResourceChunk', - }, - AgentThread: { - agentMessagesByThreadId: 'AgentMessage', - agentPlansByThreadId: 'AgentPlan', - agentThreadsByParentThreadId: 'AgentThread', - }, -} 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; +/** A filter to be used against `AgentPlan` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentPlanFilter { + /** Filter by the object’s `agentTasksByPlanId` relation. */ + agentTasksByPlanId?: AgentPlanToManyAgentTaskFilter; + /** `agentTasksByPlanId` exist. */ + agentTasksByPlanIdExist?: boolean; + /** Checks for all expressions in this list. */ + and?: AgentPlanFilter[]; + /** 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 `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: AgentPlanFilter; + /** Checks for any expressions in this list. */ + or?: AgentPlanFilter[]; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `thread` relation. */ + thread?: AgentThreadFilter; + /** Filter by the object’s `threadId` field. */ + threadId?: UUIDFilter; + /** Filter by the object’s `title` field. */ + title?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `visibility` field. */ + visibility?: StringFilter; } -/** A filter to be used against many `AgentMessage` object types. All fields are combined with a logical ‘and.’ */ -export interface AgentToManyAgentMessageFilter { - /** Filters to entities where every related entity matches. */ - every?: AgentMessageFilter; - /** Filters to entities where no related entity matches. */ - none?: AgentMessageFilter; - /** Filters to entities where at least one related entity matches. */ - some?: AgentMessageFilter; +/** A filter to be used against `PlatformAgent` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentFilter { + /** Checks for all expressions in this list. */ + and?: PlatformAgentFilter[]; + /** Filter by the object’s `childPlatformAgents` relation. */ + childPlatformAgents?: PlatformAgentToManyPlatformAgentFilter; + /** `childPlatformAgents` exist. */ + childPlatformAgentsExist?: boolean; + /** Filter by the object’s `config` field. */ + config?: JSONFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isEphemeral` field. */ + isEphemeral?: BooleanFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: PlatformAgentFilter; + /** Checks for any expressions in this list. */ + or?: PlatformAgentFilter[]; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `parent` relation. */ + parent?: PlatformAgentFilter; + /** A related `parent` exists. */ + parentExists?: boolean; + /** Filter by the object’s `parentId` field. */ + parentId?: UUIDFilter; + /** Filter by the object’s `persona` relation. */ + persona?: PlatformAgentPersonaFilter; + /** A related `persona` exists. */ + personaExists?: boolean; + /** Filter by the object’s `personaId` field. */ + personaId?: UUIDFilter; + /** Filter by the object’s `platformAgentMessagesByAgentId` relation. */ + platformAgentMessagesByAgentId?: PlatformAgentToManyPlatformAgentMessageFilter; + /** `platformAgentMessagesByAgentId` exist. */ + platformAgentMessagesByAgentIdExist?: boolean; + /** Filter by the object’s `platformAgentThreadsByAgentId` relation. */ + platformAgentThreadsByAgentId?: PlatformAgentToManyPlatformAgentThreadFilter; + /** `platformAgentThreadsByAgentId` exist. */ + platformAgentThreadsByAgentIdExist?: boolean; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `systemPrompt` field. */ + systemPrompt?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; } -/** A filter to be used against many `AgentThread` object types. All fields are combined with a logical ‘and.’ */ -export interface AgentToManyAgentThreadFilter { - /** Filters to entities where every related entity matches. */ - every?: AgentThreadFilter; - /** Filters to entities where no related entity matches. */ - none?: AgentThreadFilter; - /** Filters to entities where at least one related entity matches. */ - some?: AgentThreadFilter; +/** A filter to be used against `PlatformAgentMessage` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentMessageFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `agent` relation. */ + agent?: PlatformAgentFilter; + /** A related `agent` exists. */ + agentExists?: boolean; + /** Filter by the object’s `agentId` field. */ + agentId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: PlatformAgentMessageFilter[]; + /** Filter by the object’s `authorRole` field. */ + authorRole?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `deliveredRun` relation. */ + deliveredRun?: PlatformAgentRunFilter; + /** A related `deliveredRun` exists. */ + deliveredRunExists?: boolean; + /** Filter by the object’s `deliveredRunId` field. */ + deliveredRunId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `model` field. */ + model?: StringFilter; + /** Negates the expression. */ + not?: PlatformAgentMessageFilter; + /** Checks for any expressions in this list. */ + or?: PlatformAgentMessageFilter[]; + /** Filter by the object’s `parts` field. */ + parts?: JSONFilter; + /** Filter by the object’s `thread` relation. */ + thread?: PlatformAgentThreadFilter; + /** Filter by the object’s `threadId` field. */ + threadId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `visibility` field. */ + visibility?: StringFilter; } -/** A filter to be used against many `Agent` object types. All fields are combined with a logical ‘and.’ */ -export interface AgentToManyAgentFilter { - /** Filters to entities where every related entity matches. */ - every?: AgentFilter; - /** Filters to entities where no related entity matches. */ - none?: AgentFilter; - /** Filters to entities where at least one related entity matches. */ - some?: AgentFilter; +/** A filter to be used against `PlatformAgentThread` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentThreadFilter { + /** Filter by the object’s `agent` relation. */ + agent?: PlatformAgentFilter; + /** A related `agent` exists. */ + agentExists?: boolean; + /** Filter by the object’s `agentId` field. */ + agentId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: PlatformAgentThreadFilter[]; + /** Filter by the object’s `archivedAt` field. */ + archivedAt?: DatetimeFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isArchived` field. */ + isArchived?: BooleanFilter; + /** Filter by the object’s `mode` field. */ + mode?: StringFilter; + /** Filter by the object’s `model` field. */ + model?: StringFilter; + /** Negates the expression. */ + not?: PlatformAgentThreadFilter; + /** Checks for any expressions in this list. */ + or?: PlatformAgentThreadFilter[]; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `parentThread` relation. */ + parentThread?: PlatformAgentThreadFilter; + /** A related `parentThread` exists. */ + parentThreadExists?: boolean; + /** Filter by the object’s `parentThreadId` field. */ + parentThreadId?: UUIDFilter; + /** Filter by the object’s `platformAgentMessagesByThreadId` relation. */ + platformAgentMessagesByThreadId?: PlatformAgentThreadToManyPlatformAgentMessageFilter; + /** `platformAgentMessagesByThreadId` exist. */ + platformAgentMessagesByThreadIdExist?: boolean; + /** Filter by the object’s `platformAgentPlansByThreadId` relation. */ + platformAgentPlansByThreadId?: PlatformAgentThreadToManyPlatformAgentPlanFilter; + /** `platformAgentPlansByThreadId` exist. */ + platformAgentPlansByThreadIdExist?: boolean; + /** Filter by the object’s `platformAgentRunsByThreadId` relation. */ + platformAgentRunsByThreadId?: PlatformAgentThreadToManyPlatformAgentRunFilter; + /** `platformAgentRunsByThreadId` exist. */ + platformAgentRunsByThreadIdExist?: boolean; + /** Filter by the object’s `platformAgentThreadsByParentThreadId` relation. */ + platformAgentThreadsByParentThreadId?: PlatformAgentThreadToManyPlatformAgentThreadFilter; + /** `platformAgentThreadsByParentThreadId` exist. */ + platformAgentThreadsByParentThreadIdExist?: boolean; + /** Filter by the object’s `promptTemplate` relation. */ + promptTemplate?: PlatformAgentPromptFilter; + /** A related `promptTemplate` exists. */ + promptTemplateExists?: boolean; + /** Filter by the object’s `promptTemplateId` field. */ + promptTemplateId?: UUIDFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `systemPrompt` field. */ + systemPrompt?: StringFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Filter by the object’s `title` field. */ + title?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `visibility` field. */ + visibility?: StringFilter; } -/** A filter to be used against many `Agent` object types. All fields are combined with a logical ‘and.’ */ -export interface AgentPersonaToManyAgentFilter { - /** Filters to entities where every related entity matches. */ - every?: AgentFilter; - /** Filters to entities where no related entity matches. */ - none?: AgentFilter; - /** Filters to entities where at least one related entity matches. */ - some?: AgentFilter; +/** A filter to be used against `PlatformAgentTask` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentTaskFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: PlatformAgentTaskFilter[]; + /** Filter by the object’s `approvalFeedback` field. */ + approvalFeedback?: StringFilter; + /** Filter by the object’s `approvalStatus` field. */ + approvalStatus?: StringFilter; + /** Filter by the object’s `approvedAt` field. */ + approvedAt?: DatetimeFilter; + /** Filter by the object’s `approvedBy` field. */ + approvedBy?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `error` field. */ + error?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformAgentTaskFilter; + /** Checks for any expressions in this list. */ + or?: PlatformAgentTaskFilter[]; + /** Filter by the object’s `orderIndex` field. */ + orderIndex?: IntFilter; + /** Filter by the object’s `plan` relation. */ + plan?: PlatformAgentPlanFilter; + /** Filter by the object’s `planId` field. */ + planId?: UUIDFilter; + /** Filter by the object’s `requiresApproval` field. */ + requiresApproval?: BooleanFilter; + /** Filter by the object’s `source` field. */ + source?: StringFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `visibility` field. */ + visibility?: StringFilter; } -/** A filter to be used against many `AgentTask` object types. All fields are combined with a logical ‘and.’ */ -export interface AgentPlanToManyAgentTaskFilter { - /** Filters to entities where every related entity matches. */ - every?: AgentTaskFilter; - /** Filters to entities where no related entity matches. */ - none?: AgentTaskFilter; - /** Filters to entities where at least one related entity matches. */ - some?: AgentTaskFilter; +/** A filter to be used against `PlatformAgentResourceChunk` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentResourceChunkFilter { + /** Checks for all expressions in this list. */ + and?: PlatformAgentResourceChunkFilter[]; + /** Filter by the object’s `body` field. */ + body?: StringFilter; + /** Filter by the object’s `chunkIndex` field. */ + chunkIndex?: IntFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `embedding` field. */ + embedding?: VectorFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Negates the expression. */ + not?: PlatformAgentResourceChunkFilter; + /** Checks for any expressions in this list. */ + or?: PlatformAgentResourceChunkFilter[]; + /** Filter by the object’s `platformAgentResource` relation. */ + platformAgentResource?: PlatformAgentResourceFilter; + /** Filter by the object’s `platformAgentResourceId` field. */ + platformAgentResourceId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** VECTOR search on the `embedding` column. */ + vectorEmbedding?: VectorNearbyInput; } -/** A filter to be used against many `AgentThread` object types. All fields are combined with a logical ‘and.’ */ -export interface AgentPromptToManyAgentThreadFilter { - /** Filters to entities where every related entity matches. */ - every?: AgentThreadFilter; - /** Filters to entities where no related entity matches. */ - none?: AgentThreadFilter; - /** Filters to entities where at least one related entity matches. */ - some?: AgentThreadFilter; +/** A filter to be used against `PlatformAgentEvent` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentEventFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: PlatformAgentEventFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `entry` field. */ + entry?: JSONFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformAgentEventFilter; + /** Checks for any expressions in this list. */ + or?: PlatformAgentEventFilter[]; + /** Filter by the object’s `recordedAt` field. */ + recordedAt?: DatetimeFilter; + /** Filter by the object’s `run` relation. */ + run?: PlatformAgentRunFilter; + /** Filter by the object’s `runId` field. */ + runId?: UUIDFilter; + /** Filter by the object’s `seq` field. */ + seq?: IntFilter; + /** Filter by the object’s `transcriptFormat` field. */ + transcriptFormat?: StringFilter; + /** Filter by the object’s `transcriptVersion` field. */ + transcriptVersion?: IntFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `visibility` field. */ + visibility?: StringFilter; } -/** Input for vector similarity search. Provide a query vector, optional metric, and optional max distance threshold. */ -export interface VectorNearbyInput { - /** Maximum distance threshold. Only rows within this distance are returned. */ - distance?: number; - /** When true (default for tables with @hasChunks), transparently queries the chunks table and returns the minimum distance across parent + all chunks. Set to false to only search the parent embedding. */ - includeChunks?: boolean; - /** Similarity metric to use (default: COSINE). */ - metric?: VectorMetric; - /** Natural language text to embed server-side for similarity search. Mutually exclusive with `vector` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ - text?: string; - /** Query vector for similarity search. */ - vector: number[]; +/** A filter to be used against `PlatformAgentRunWorkspace` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentRunWorkspaceFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: PlatformAgentRunWorkspaceFilter[]; + /** Filter by the object’s `artifacts` field. */ + artifacts?: JSONFilter; + /** Filter by the object’s `baseBranch` field. */ + baseBranch?: StringFilter; + /** Filter by the object’s `baseCommit` field. */ + baseCommit?: StringFilter; + /** Filter by the object’s `branch` field. */ + branch?: StringFilter; + /** Filter by the object’s `clonedAt` field. */ + clonedAt?: DatetimeFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `headCommit` field. */ + headCommit?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `lastUsedAt` field. */ + lastUsedAt?: DatetimeFilter; + /** Negates the expression. */ + not?: PlatformAgentRunWorkspaceFilter; + /** Checks for any expressions in this list. */ + or?: PlatformAgentRunWorkspaceFilter[]; + /** Filter by the object’s `ordinal` field. */ + ordinal?: IntFilter; + /** Filter by the object’s `provider` field. */ + provider?: StringFilter; + /** Filter by the object’s `publication` field. */ + publication?: StringFilter; + /** Filter by the object’s `repo` field. */ + repo?: StringFilter; + /** Filter by the object’s `repositoryId` field. */ + repositoryId?: UUIDFilter; + /** Filter by the object’s `run` relation. */ + run?: PlatformAgentRunFilter; + /** Filter by the object’s `runId` field. */ + runId?: UUIDFilter; + /** Filter by the object’s `state` field. */ + state?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `visibility` field. */ + visibility?: StringFilter; +} +/** A filter to be used against `PlatformAgentPlan` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentPlanFilter { + /** Checks for all expressions in this list. */ + and?: PlatformAgentPlanFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformAgentPlanFilter; + /** Checks for any expressions in this list. */ + or?: PlatformAgentPlanFilter[]; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `platformAgentTasksByPlanId` relation. */ + platformAgentTasksByPlanId?: PlatformAgentPlanToManyPlatformAgentTaskFilter; + /** `platformAgentTasksByPlanId` exist. */ + platformAgentTasksByPlanIdExist?: boolean; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `thread` relation. */ + thread?: PlatformAgentThreadFilter; + /** Filter by the object’s `threadId` field. */ + threadId?: UUIDFilter; + /** Filter by the object’s `title` field. */ + title?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `visibility` field. */ + visibility?: StringFilter; } -/** A filter to be used against many `AgentResourceChunk` object types. All fields are combined with a logical ‘and.’ */ -export interface AgentResourceToManyAgentResourceChunkFilter { - /** Filters to entities where every related entity matches. */ - every?: AgentResourceChunkFilter; - /** Filters to entities where no related entity matches. */ - none?: AgentResourceChunkFilter; - /** Filters to entities where at least one related entity matches. */ - some?: AgentResourceChunkFilter; +/** A filter to be used against `PlatformAgentRun` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentRunFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: PlatformAgentRunFilter[]; + /** Filter by the object’s `artifacts` field. */ + artifacts?: JSONFilter; + /** Filter by the object’s `attempt` field. */ + attempt?: IntFilter; + /** Filter by the object’s `baseCommit` field. */ + baseCommit?: StringFilter; + /** Filter by the object’s `branch` field. */ + branch?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `deadlineAt` field. */ + deadlineAt?: DatetimeFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `error` field. */ + error?: StringFilter; + /** Filter by the object’s `executionId` field. */ + executionId?: UUIDFilter; + /** Filter by the object’s `finishedAt` field. */ + finishedAt?: DatetimeFilter; + /** Filter by the object’s `headCommit` field. */ + headCommit?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `lastEventSeq` field. */ + lastEventSeq?: IntFilter; + /** Negates the expression. */ + not?: PlatformAgentRunFilter; + /** Checks for any expressions in this list. */ + or?: PlatformAgentRunFilter[]; + /** Filter by the object’s `parentRunId` field. */ + parentRunId?: UUIDFilter; + /** Filter by the object’s `placement` field. */ + placement?: StringFilter; + /** Filter by the object’s `platformAgentEventsByRunId` relation. */ + platformAgentEventsByRunId?: PlatformAgentRunToManyPlatformAgentEventFilter; + /** `platformAgentEventsByRunId` exist. */ + platformAgentEventsByRunIdExist?: boolean; + /** Filter by the object’s `platformAgentMessagesByDeliveredRunId` relation. */ + platformAgentMessagesByDeliveredRunId?: PlatformAgentRunToManyPlatformAgentMessageFilter; + /** `platformAgentMessagesByDeliveredRunId` exist. */ + platformAgentMessagesByDeliveredRunIdExist?: boolean; + /** Filter by the object’s `platformAgentRunWorkspacesByRunId` relation. */ + platformAgentRunWorkspacesByRunId?: PlatformAgentRunToManyPlatformAgentRunWorkspaceFilter; + /** `platformAgentRunWorkspacesByRunId` exist. */ + platformAgentRunWorkspacesByRunIdExist?: boolean; + /** Filter by the object’s `principalId` field. */ + principalId?: UUIDFilter; + /** Filter by the object’s `repoUrl` field. */ + repoUrl?: StringFilter; + /** Filter by the object’s `startedAt` field. */ + startedAt?: DatetimeFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `thread` relation. */ + thread?: PlatformAgentThreadFilter; + /** Filter by the object’s `threadId` field. */ + threadId?: UUIDFilter; + /** Filter by the object’s `tokenUsage` field. */ + tokenUsage?: JSONFilter; + /** Filter by the object’s `totalCost` field. */ + totalCost?: BigFloatFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `visibility` field. */ + visibility?: StringFilter; } -/** A filter to be used against String fields with pg_trgm support. All fields are combined with a logical ‘and.’ */ -export interface StringTrgmFilter { +/** 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 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). */ @@ -1935,527 +5785,487 @@ export interface StringTrgmFilter { notStartsWith?: string; /** Does not start with the specified string (case-insensitive). */ notStartsWithInsensitive?: string; - /** Fuzzy matches using pg_trgm trigram similarity. Tolerates typos and misspellings. */ - similarTo?: TrgmSearchInput; /** Starts with the specified string (case-sensitive). */ startsWith?: string; /** Starts with the specified string (case-insensitive). */ startsWithInsensitive?: string; - /** Fuzzy matches using pg_trgm word_similarity. Finds the best matching substring within the column value. */ - wordSimilarTo?: TrgmSearchInput; -} -/** Input for pg_trgm fuzzy text matching. Provide a search value and optional similarity threshold. */ -export interface TrgmSearchInput { - /** Minimum similarity threshold (0.0 to 1.0). Higher = stricter matching. Default is 0.3. */ - threshold?: number; - /** The text to fuzzy-match against. Typos and misspellings are tolerated. */ - value: string; -} -/** A filter to be used against many `AgentMessage` object types. All fields are combined with a logical ‘and.’ */ -export interface AgentThreadToManyAgentMessageFilter { - /** Filters to entities where every related entity matches. */ - every?: AgentMessageFilter; - /** Filters to entities where no related entity matches. */ - none?: AgentMessageFilter; - /** Filters to entities where at least one related entity matches. */ - some?: AgentMessageFilter; -} -/** A filter to be used against many `AgentPlan` object types. All fields are combined with a logical ‘and.’ */ -export interface AgentThreadToManyAgentPlanFilter { - /** Filters to entities where every related entity matches. */ - every?: AgentPlanFilter; - /** Filters to entities where no related entity matches. */ - none?: AgentPlanFilter; - /** Filters to entities where at least one related entity matches. */ - some?: AgentPlanFilter; -} -/** A filter to be used against many `AgentThread` object types. All fields are combined with a logical ‘and.’ */ -export interface AgentThreadToManyAgentThreadFilter { - /** Filters to entities where every related entity matches. */ - every?: AgentThreadFilter; - /** Filters to entities where no related entity matches. */ - none?: AgentThreadFilter; - /** Filters to entities where at least one related entity matches. */ - some?: AgentThreadFilter; -} -/** An input for mutations affecting `Agent` */ -export interface AgentInput { - /** Per-instance config overrides (model, temperature, tools) */ - config?: Record; - createdAt?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - id?: string; - /** If true, agent is deleted when its spawning thread is deleted */ - isEphemeral?: boolean; - /** Display name for this agent instance */ - name: string; - /** Human who owns/manages this agent */ - ownerId?: string; - /** Parent agent (for sub-agent delegation hierarchy) */ - parentId?: string; - /** Persona template this agent was created from */ - personaId?: string; - /** Agent lifecycle status: active, paused, terminated */ - status?: string; - /** System prompt override (NULL = inherit from persona) */ - systemPrompt?: string; - updatedAt?: string; -} -/** An input for mutations affecting `AgentMessage` */ -export interface AgentMessageInput { - /** User who authored this message */ - actorId?: string; - /** Agent that authored this message (NULL for human messages) */ - agentId?: string; - /** Who authored this message: user or assistant */ - authorRole: string; - createdAt?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - id?: string; - /** LLM model that generated this response */ - model?: string; - /** Message content: TextPart and ToolPart array */ - parts?: Record; - /** Foreign key to agent_thread */ - threadId: string; - updatedAt?: string; -} -/** An input for mutations affecting `AgentPersona` */ -export interface AgentPersonaInput { - /** Model preferences, temperature, tool access, constraints */ - config?: Record; - createdAt?: string; - createdBy?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - /** Brief description of this persona role */ - description?: string; - id?: string; - /** Whether this persona is available for use */ - isActive?: boolean; - /** Display name for this persona */ - name: string; - /** Slugs of agent_resource entries to link when spawning */ - resources?: string[]; - /** Unique human-readable identifier for this persona */ - slug: string; - /** Default system prompt for agents using this persona */ - systemPrompt?: string; - updatedAt?: string; - updatedBy?: string; -} -/** An input for mutations affecting `AgentPlan` */ -export interface AgentPlanInput { - createdAt?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - /** Overall goal or context for this plan */ - description?: string; - id?: string; - /** User who owns this plan */ - ownerId?: string; - /** Plan lifecycle: draft, active, completed, failed, cancelled */ - status?: string; - /** Foreign key to agent_thread */ - threadId: string; - /** Human-readable plan name */ - title: string; - updatedAt?: string; -} -/** An input for mutations affecting `AgentPrompt` */ -export interface AgentPromptInput { - /** The system prompt template content */ - content: string; - createdAt?: string; - createdBy?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - /** What this prompt template is for */ - description?: string; - id?: string; - /** Whether this is the default prompt for the entity/app */ - isDefault?: boolean; - /** Variables, tags, category metadata */ - metadata?: Record; - /** Unique name for lookup (e.g. default, code-review, sales-assistant) */ - name: string; - updatedAt?: string; - updatedBy?: string; -} -/** An input for mutations affecting `AgentResourceChunk` */ -export interface AgentResourceChunkInput { - agentResourceId: string; - body: string; - chunkIndex?: number; - createdAt?: string; - embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ - embeddingText?: string; - id?: string; - metadata?: Record; - updatedAt?: string; } -/** An input for mutations affecting `AgentResource` */ -export interface AgentResourceInput { - /** Timestamp when this record was archived, NULL if active */ - archivedAt?: string; - /** Full content (instructions for skills, reference text for knowledge) */ - body: string; - createdAt?: string; - createdBy?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - /** Brief description of this resource */ - description?: string; - embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ - embeddingText?: string; - id?: string; - /** Whether this resource is active and retrievable */ - isActive?: boolean; - /** Whether this record has been archived by the user */ - isArchived?: boolean; - /** Keywords for deterministic retrieval routing */ - keywords?: string[]; - /** Resource type: skill, knowledge, or convention */ - kind?: string; - /** Structured metadata: category, version, author, custom attributes */ - metadata?: Record; - /** Unique human-readable identifier for portable references */ - slug: string; - /** Resource name or title */ - title: string; - updatedAt?: string; - updatedBy?: string; +/** 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[]; } -/** An input for mutations affecting `AgentTask` */ -export interface AgentTaskInput { - /** User who authored this task */ - actorId?: string; - /** Reviewer feedback or reason for the decision */ - approvalFeedback?: string; - /** Approval decision: pending, approved, rejected (NULL if not an approval task) */ - approvalStatus?: string; - /** Timestamp of the approval or rejection decision */ - approvedAt?: string; - /** User who approved or rejected this task */ - approvedBy?: string; - createdAt?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - /** Natural-language description of the work to do */ - description: string; - /** Error message captured when the task failed */ - error?: string; - id?: string; - /** Position within the plan (for ordered task lists) */ - orderIndex?: number; - /** Foreign key to agent_plan */ - planId: string; - /** Whether this task is an approval gate requiring human decision */ - requiresApproval?: boolean; - /** Who created the task: agent or user */ - source?: string; - /** Current status of this task */ - status?: string; - updatedAt?: string; +/** A filter to be used against JSON fields. All fields are combined with a logical ‘and.’ */ +export interface JSONFilter { + /** Contained by the specified JSON. */ + containedBy?: Record; + /** Contains the specified JSON. */ + contains?: Record; + /** Contains all of the specified keys. */ + containsAllKeys?: string[]; + /** Contains any of the specified keys. */ + containsAnyKeys?: string[]; + /** Contains the specified key. */ + containsKey?: string; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: Record; + /** Equal to the specified value. */ + equalTo?: Record; + /** Greater than the specified value. */ + greaterThan?: Record; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: Record; + /** Included in the specified list. */ + in?: Record[]; + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Less than the specified value. */ + lessThan?: Record; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: Record; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: Record; + /** Not equal to the specified value. */ + notEqualTo?: Record; + /** Not included in the specified list. */ + notIn?: Record[]; } -/** An input for mutations affecting `AgentThread` */ -export interface AgentThreadInput { - /** Agent instance assigned to this thread */ - agentId?: string; - /** Timestamp when this record was archived, NULL if active */ - archivedAt?: string; - createdAt?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - id?: string; - /** Whether this record has been archived by the user */ - isArchived?: boolean; - /** Conversation mode: ask (plain Q&A) or agent (tool-enabled) */ - mode?: string; - /** LLM model id this thread is bound to */ - model?: string; - /** User who owns this thread */ - ownerId?: string; - /** Parent thread that spawned this sub-conversation */ - parentThreadId?: string; - /** Optional FK to a shared prompt template */ - promptTemplateId?: string; - /** Current status of this thread */ - status?: string; - /** System prompt active for this thread */ - systemPrompt?: string; - /** User-defined labels for organizing and filtering threads */ - tags?: string[]; - /** Human-readable conversation title */ - title?: string; - updatedAt?: 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 `AgentMessage` object types. All fields are combined with a logical ‘and.’ */ -export interface AgentMessageFilter { - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `agent` relation. */ - agent?: AgentFilter; - /** A related `agent` exists. */ - agentExists?: boolean; - /** Filter by the object’s `agentId` field. */ - agentId?: UUIDFilter; +/** A filter to be used against `AgentPrompt` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentPromptFilter { + /** Filter by the object’s `agentThreadsByPromptTemplateId` relation. */ + agentThreadsByPromptTemplateId?: AgentPromptToManyAgentThreadFilter; + /** `agentThreadsByPromptTemplateId` exist. */ + agentThreadsByPromptTemplateIdExist?: boolean; /** Checks for all expressions in this list. */ - and?: AgentMessageFilter[]; - /** Filter by the object’s `authorRole` field. */ - authorRole?: StringFilter; + and?: AgentPromptFilter[]; + /** Filter by the object’s `content` field. */ + content?: StringFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `model` field. */ - model?: StringFilter; + /** Filter by the object’s `isDefault` field. */ + isDefault?: BooleanFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; /** Negates the expression. */ - not?: AgentMessageFilter; + not?: AgentPromptFilter; /** Checks for any expressions in this list. */ - or?: AgentMessageFilter[]; - /** Filter by the object’s `parts` field. */ - parts?: JSONFilter; - /** Filter by the object’s `thread` relation. */ - thread?: AgentThreadFilter; - /** Filter by the object’s `threadId` field. */ - threadId?: UUIDFilter; + or?: AgentPromptFilter[]; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -/** A filter to be used against `AgentThread` object types. All fields are combined with a logical ‘and.’ */ -export interface AgentThreadFilter { - /** Filter by the object’s `agent` relation. */ - agent?: AgentFilter; - /** A related `agent` exists. */ - agentExists?: boolean; - /** Filter by the object’s `agentId` field. */ - agentId?: UUIDFilter; - /** Filter by the object’s `agentMessagesByThreadId` relation. */ - agentMessagesByThreadId?: AgentThreadToManyAgentMessageFilter; - /** `agentMessagesByThreadId` exist. */ - agentMessagesByThreadIdExist?: boolean; - /** Filter by the object’s `agentPlansByThreadId` relation. */ - agentPlansByThreadId?: AgentThreadToManyAgentPlanFilter; - /** `agentPlansByThreadId` exist. */ - agentPlansByThreadIdExist?: boolean; - /** Filter by the object’s `agentThreadsByParentThreadId` relation. */ - agentThreadsByParentThreadId?: AgentThreadToManyAgentThreadFilter; - /** `agentThreadsByParentThreadId` exist. */ - agentThreadsByParentThreadIdExist?: boolean; - /** Checks for all expressions in this list. */ - and?: AgentThreadFilter[]; - /** Filter by the object’s `archivedAt` field. */ - archivedAt?: DatetimeFilter; +/** A filter to be used against String List fields. All fields are combined with a logical ‘and.’ */ +export interface StringListFilter { + /** Any array item is equal to the specified value. */ + anyEqualTo?: string; + /** Any array item is greater than the specified value. */ + anyGreaterThan?: string; + /** Any array item is greater than or equal to the specified value. */ + anyGreaterThanOrEqualTo?: string; + /** Any array item is less than the specified value. */ + anyLessThan?: string; + /** Any array item is less than or equal to the specified value. */ + anyLessThanOrEqualTo?: string; + /** Any array item is not equal to the specified value. */ + anyNotEqualTo?: string; + /** Contained by the specified list of values. */ + containedBy?: string[]; + /** Contains the specified list of values. */ + contains?: string[]; + /** 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[]; + /** 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[]; + /** Overlaps the specified list of values. */ + overlaps?: string[]; +} +/** A filter to be used against `AgentPersona` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentPersonaFilter { + /** Filter by the object’s `agentsByPersonaId` relation. */ + agentsByPersonaId?: AgentPersonaToManyAgentFilter; + /** `agentsByPersonaId` exist. */ + agentsByPersonaIdExist?: boolean; + /** Checks for all expressions in this list. */ + and?: AgentPersonaFilter[]; + /** Filter by the object’s `config` field. */ + config?: JSONFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `isArchived` field. */ - isArchived?: BooleanFilter; - /** Filter by the object’s `mode` field. */ - mode?: StringFilter; - /** Filter by the object’s `model` field. */ - model?: StringFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; /** Negates the expression. */ - not?: AgentThreadFilter; + not?: AgentPersonaFilter; /** Checks for any expressions in this list. */ - or?: AgentThreadFilter[]; - /** Filter by the object’s `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `parentThread` relation. */ - parentThread?: AgentThreadFilter; - /** A related `parentThread` exists. */ - parentThreadExists?: boolean; - /** Filter by the object’s `parentThreadId` field. */ - parentThreadId?: UUIDFilter; - /** Filter by the object’s `promptTemplate` relation. */ - promptTemplate?: AgentPromptFilter; - /** A related `promptTemplate` exists. */ - promptTemplateExists?: boolean; - /** Filter by the object’s `promptTemplateId` field. */ - promptTemplateId?: UUIDFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; + or?: AgentPersonaFilter[]; + /** Filter by the object’s `resources` field. */ + resources?: StringListFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; /** Filter by the object’s `systemPrompt` field. */ systemPrompt?: StringFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** 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; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -/** A filter to be used against `Agent` object types. All fields are combined with a logical ‘and.’ */ -export interface AgentFilter { - /** Filter by the object’s `agentMessages` relation. */ - agentMessages?: AgentToManyAgentMessageFilter; - /** `agentMessages` exist. */ - agentMessagesExist?: boolean; - /** Filter by the object’s `agentThreads` relation. */ - agentThreads?: AgentToManyAgentThreadFilter; - /** `agentThreads` exist. */ - agentThreadsExist?: boolean; +/** 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 `AgentResource` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentResourceFilter { + /** Filter by the object’s `agentResourceChunks` relation. */ + agentResourceChunks?: AgentResourceToManyAgentResourceChunkFilter; + /** `agentResourceChunks` exist. */ + agentResourceChunksExist?: boolean; /** Checks for all expressions in this list. */ - and?: AgentFilter[]; - /** Filter by the object’s `childAgents` relation. */ - childAgents?: AgentToManyAgentFilter; - /** `childAgents` exist. */ - childAgentsExist?: boolean; - /** Filter by the object’s `config` field. */ - config?: JSONFilter; + and?: AgentResourceFilter[]; + /** Filter by the object’s `archivedAt` field. */ + archivedAt?: DatetimeFilter; + /** Filter by the object’s `body` field. */ + body?: StringTrgmFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `description` field. */ + description?: StringTrgmFilter; + /** Filter by the object’s `embedding` field. */ + embedding?: VectorFilter; + /** Filter by the object’s `embeddingUpdatedAt` field. */ + embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `isEphemeral` field. */ - isEphemeral?: BooleanFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; + /** Filter by the object’s `isArchived` field. */ + isArchived?: BooleanFilter; + /** Filter by the object’s `keywords` field. */ + keywords?: StringListFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringTrgmFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; /** Negates the expression. */ - not?: AgentFilter; + not?: AgentResourceFilter; /** Checks for any expressions in this list. */ - or?: AgentFilter[]; - /** Filter by the object’s `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `parent` relation. */ - parent?: AgentFilter; - /** A related `parent` exists. */ - parentExists?: boolean; - /** Filter by the object’s `parentId` field. */ - parentId?: UUIDFilter; - /** Filter by the object’s `persona` relation. */ - persona?: AgentPersonaFilter; - /** A related `persona` exists. */ - personaExists?: boolean; - /** Filter by the object’s `personaId` field. */ - personaId?: UUIDFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `systemPrompt` field. */ - systemPrompt?: StringFilter; + or?: AgentResourceFilter[]; + /** Filter by the object’s `search` field. */ + search?: FullTextFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringTrgmFilter; + /** Filter by the object’s `title` field. */ + title?: StringTrgmFilter; + /** TRGM search on the `body` column. */ + trgmBody?: TrgmSearchInput; + /** TRGM search on the `description` column. */ + trgmDescription?: TrgmSearchInput; + /** TRGM search on the `kind` column. */ + trgmKind?: TrgmSearchInput; + /** TRGM search on the `title` column. */ + trgmTitle?: TrgmSearchInput; + /** TSV search on the `search` column. */ + tsvSearch?: string; + /** + * Composite unified search. Provide a search string and it will be dispatched to + * all text-compatible search algorithms (tsvector, BM25, pg_trgm) + * simultaneously. When the LLM plugin is active, pgvector also participates via + * auto-embedding. Rows matching ANY algorithm are returned. All matching score + * fields are populated. + */ + unifiedSearch?: string; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** VECTOR search on the `embedding` column. */ + vectorEmbedding?: VectorNearbyInput; } -/** A filter to be used against `AgentTask` object types. All fields are combined with a logical ‘and.’ */ -export interface AgentTaskFilter { - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; +/** A filter to be used against Vector fields. All fields are combined with a logical ‘and.’ */ +export interface VectorFilter { + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: number[]; + /** Equal to the specified value. */ + equalTo?: number[]; + /** Included in the specified list. */ + in?: number[][]; + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** 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 `PlatformAgentPersona` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentPersonaFilter { /** Checks for all expressions in this list. */ - and?: AgentTaskFilter[]; - /** Filter by the object’s `approvalFeedback` field. */ - approvalFeedback?: StringFilter; - /** Filter by the object’s `approvalStatus` field. */ - approvalStatus?: StringFilter; - /** Filter by the object’s `approvedAt` field. */ - approvedAt?: DatetimeFilter; - /** Filter by the object’s `approvedBy` field. */ - approvedBy?: UUIDFilter; + and?: PlatformAgentPersonaFilter[]; + /** Filter by the object’s `config` field. */ + config?: JSONFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `description` field. */ description?: StringFilter; - /** Filter by the object’s `error` field. */ - error?: 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?: AgentTaskFilter; + not?: PlatformAgentPersonaFilter; /** Checks for any expressions in this list. */ - or?: AgentTaskFilter[]; - /** Filter by the object’s `orderIndex` field. */ - orderIndex?: IntFilter; - /** Filter by the object’s `plan` relation. */ - plan?: AgentPlanFilter; - /** Filter by the object’s `planId` field. */ - planId?: UUIDFilter; - /** Filter by the object’s `requiresApproval` field. */ - requiresApproval?: BooleanFilter; - /** Filter by the object’s `source` field. */ - source?: StringFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; + or?: PlatformAgentPersonaFilter[]; + /** Filter by the object’s `platformAgentsByPersonaId` relation. */ + platformAgentsByPersonaId?: PlatformAgentPersonaToManyPlatformAgentFilter; + /** `platformAgentsByPersonaId` exist. */ + platformAgentsByPersonaIdExist?: boolean; + /** Filter by the object’s `resources` field. */ + resources?: StringListFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `systemPrompt` field. */ + systemPrompt?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -/** Similarity metric for vector search */ -export type VectorMetric = 'COSINE' | 'IP' | 'L2'; -/** A filter to be used against `AgentResourceChunk` object types. All fields are combined with a logical ‘and.’ */ -export interface AgentResourceChunkFilter { - /** Filter by the object’s `agentResource` relation. */ - agentResource?: AgentResourceFilter; - /** Filter by the object’s `agentResourceId` field. */ - agentResourceId?: UUIDFilter; +/** A filter to be used against `PlatformAgentPrompt` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentPromptFilter { /** Checks for all expressions in this list. */ - and?: AgentResourceChunkFilter[]; - /** Filter by the object’s `body` field. */ - body?: StringFilter; - /** Filter by the object’s `chunkIndex` field. */ - chunkIndex?: IntFilter; + and?: PlatformAgentPromptFilter[]; + /** Filter by the object’s `content` field. */ + content?: StringFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; - /** Filter by the object’s `embedding` field. */ - embedding?: VectorFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `isDefault` field. */ + isDefault?: BooleanFilter; /** Filter by the object’s `metadata` field. */ metadata?: JSONFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; /** Negates the expression. */ - not?: AgentResourceChunkFilter; + not?: PlatformAgentPromptFilter; /** Checks for any expressions in this list. */ - or?: AgentResourceChunkFilter[]; + or?: PlatformAgentPromptFilter[]; + /** Filter by the object’s `platformAgentThreadsByPromptTemplateId` relation. */ + platformAgentThreadsByPromptTemplateId?: PlatformAgentPromptToManyPlatformAgentThreadFilter; + /** `platformAgentThreadsByPromptTemplateId` exist. */ + platformAgentThreadsByPromptTemplateIdExist?: boolean; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; - /** VECTOR search on the `embedding` column. */ - vectorEmbedding?: VectorNearbyInput; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -/** A filter to be used against `AgentPlan` object types. All fields are combined with a logical ‘and.’ */ -export interface AgentPlanFilter { - /** Filter by the object’s `agentTasksByPlanId` relation. */ - agentTasksByPlanId?: AgentPlanToManyAgentTaskFilter; - /** `agentTasksByPlanId` exist. */ - agentTasksByPlanIdExist?: boolean; +/** A filter to be used against `PlatformAgentResource` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentResourceFilter { /** Checks for all expressions in this list. */ - and?: AgentPlanFilter[]; + and?: PlatformAgentResourceFilter[]; + /** Filter by the object’s `archivedAt` field. */ + archivedAt?: DatetimeFilter; + /** Filter by the object’s `body` field. */ + body?: StringTrgmFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `description` field. */ - description?: StringFilter; + description?: StringTrgmFilter; + /** Filter by the object’s `embedding` field. */ + embedding?: VectorFilter; + /** Filter by the object’s `embeddingUpdatedAt` field. */ + embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; + /** Filter by the object’s `isArchived` field. */ + isArchived?: BooleanFilter; + /** Filter by the object’s `keywords` field. */ + keywords?: StringListFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringTrgmFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; /** Negates the expression. */ - not?: AgentPlanFilter; + not?: PlatformAgentResourceFilter; /** Checks for any expressions in this list. */ - or?: AgentPlanFilter[]; - /** Filter by the object’s `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `thread` relation. */ - thread?: AgentThreadFilter; - /** Filter by the object’s `threadId` field. */ - threadId?: UUIDFilter; + or?: PlatformAgentResourceFilter[]; + /** Filter by the object’s `platformAgentResourceChunks` relation. */ + platformAgentResourceChunks?: PlatformAgentResourceToManyPlatformAgentResourceChunkFilter; + /** `platformAgentResourceChunks` exist. */ + platformAgentResourceChunksExist?: boolean; + /** Filter by the object’s `search` field. */ + search?: FullTextFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringTrgmFilter; /** Filter by the object’s `title` field. */ - title?: StringFilter; + title?: StringTrgmFilter; + /** TRGM search on the `body` column. */ + trgmBody?: TrgmSearchInput; + /** TRGM search on the `description` column. */ + trgmDescription?: TrgmSearchInput; + /** TRGM search on the `kind` column. */ + trgmKind?: TrgmSearchInput; + /** TRGM search on the `title` column. */ + trgmTitle?: TrgmSearchInput; + /** TSV search on the `search` column. */ + tsvSearch?: string; + /** + * Composite unified search. Provide a search string and it will be dispatched to + * all text-compatible search algorithms (tsvector, BM25, pg_trgm) + * simultaneously. When the LLM plugin is active, pgvector also participates via + * auto-embedding. Rows matching ANY algorithm are returned. All matching score + * fields are populated. + */ + unifiedSearch?: string; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** VECTOR search on the `embedding` column. */ + vectorEmbedding?: VectorNearbyInput; } -/** A filter to be used against UUID fields. All fields are combined with a logical ‘and.’ */ -export interface UUIDFilter { +/** A filter to be used against BigFloat fields. All fields are combined with a logical ‘and.’ */ +export interface BigFloatFilter { /** Not equal to the specified value, treating null like an ordinary value. */ distinctFrom?: string; /** Equal to the specified value. */ @@ -2479,840 +6289,985 @@ export interface UUIDFilter { /** 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 { +/** A filter to be used against FullText fields. All fields are combined with a logical ‘and.’ */ +export interface FullTextFilter { /** 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; + /** Performs a full text search on the field. */ + matches?: 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 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[]; +// ============ Payload/Return Types (for custom operations) ============ +export interface ProvisionBucketPayload { + /** The logical bucket row that was queued for reconciliation. */ + bucketId: string; + bucketKey: string; + /** The reconciler job enqueued to provision this bucket. */ + jobId: string; + /** The physical bucket name already recorded, or null when reconciliation has not completed. */ + physicalName?: string | null; +} +export type ProvisionBucketPayloadSelect = { + bucketId?: boolean; + bucketKey?: boolean; + jobId?: boolean; + physicalName?: boolean; +}; +export interface CreateAgentPayload { + /** The `Agent` that was created by this mutation. */ + agent?: Agent | null; + agentEdge?: AgentEdge | null; + clientMutationId?: string | null; +} +export type CreateAgentPayloadSelect = { + agent?: { + select: AgentSelect; + }; + agentEdge?: { + select: AgentEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface UpdateAgentPayload { + /** The `Agent` that was updated by this mutation. */ + agent?: Agent | null; + agentEdge?: AgentEdge | null; + clientMutationId?: string | null; +} +export type UpdateAgentPayloadSelect = { + agent?: { + select: AgentSelect; + }; + agentEdge?: { + select: AgentEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface DeleteAgentPayload { + /** The `Agent` that was deleted by this mutation. */ + agent?: Agent | null; + agentEdge?: AgentEdge | null; + clientMutationId?: string | null; +} +export type DeleteAgentPayloadSelect = { + agent?: { + select: AgentSelect; + }; + agentEdge?: { + select: AgentEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface CreateAgentMessagePayload { + /** The `AgentMessage` that was created by this mutation. */ + agentMessage?: AgentMessage | null; + agentMessageEdge?: AgentMessageEdge | null; + clientMutationId?: string | null; +} +export type CreateAgentMessagePayloadSelect = { + agentMessage?: { + select: AgentMessageSelect; + }; + agentMessageEdge?: { + select: AgentMessageEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface UpdateAgentMessagePayload { + /** The `AgentMessage` that was updated by this mutation. */ + agentMessage?: AgentMessage | null; + agentMessageEdge?: AgentMessageEdge | null; + clientMutationId?: string | null; +} +export type UpdateAgentMessagePayloadSelect = { + agentMessage?: { + select: AgentMessageSelect; + }; + agentMessageEdge?: { + select: AgentMessageEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface DeleteAgentMessagePayload { + /** The `AgentMessage` that was deleted by this mutation. */ + agentMessage?: AgentMessage | null; + agentMessageEdge?: AgentMessageEdge | null; + clientMutationId?: string | null; +} +export type DeleteAgentMessagePayloadSelect = { + agentMessage?: { + select: AgentMessageSelect; + }; + agentMessageEdge?: { + select: AgentMessageEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface CreateAgentPersonaPayload { + /** The `AgentPersona` that was created by this mutation. */ + agentPersona?: AgentPersona | null; + agentPersonaEdge?: AgentPersonaEdge | null; + clientMutationId?: string | null; +} +export type CreateAgentPersonaPayloadSelect = { + agentPersona?: { + select: AgentPersonaSelect; + }; + agentPersonaEdge?: { + select: AgentPersonaEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface UpdateAgentPersonaPayload { + /** The `AgentPersona` that was updated by this mutation. */ + agentPersona?: AgentPersona | null; + agentPersonaEdge?: AgentPersonaEdge | null; + clientMutationId?: string | null; +} +export type UpdateAgentPersonaPayloadSelect = { + agentPersona?: { + select: AgentPersonaSelect; + }; + agentPersonaEdge?: { + select: AgentPersonaEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface DeleteAgentPersonaPayload { + /** The `AgentPersona` that was deleted by this mutation. */ + agentPersona?: AgentPersona | null; + agentPersonaEdge?: AgentPersonaEdge | null; + clientMutationId?: string | null; } -/** A filter to be used against JSON fields. All fields are combined with a logical ‘and.’ */ -export interface JSONFilter { - /** Contained by the specified JSON. */ - containedBy?: Record; - /** Contains the specified JSON. */ - contains?: Record; - /** Contains all of the specified keys. */ - containsAllKeys?: string[]; - /** Contains any of the specified keys. */ - containsAnyKeys?: string[]; - /** Contains the specified key. */ - containsKey?: string; - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: Record; - /** Equal to the specified value. */ - equalTo?: Record; - /** Greater than the specified value. */ - greaterThan?: Record; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: Record; - /** Included in the specified list. */ - in?: Record[]; - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Less than the specified value. */ - lessThan?: Record; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: Record; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: Record; - /** Not equal to the specified value. */ - notEqualTo?: Record; - /** Not included in the specified list. */ - notIn?: Record[]; +export type DeleteAgentPersonaPayloadSelect = { + agentPersona?: { + select: AgentPersonaSelect; + }; + agentPersonaEdge?: { + select: AgentPersonaEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface CreateAgentPlanPayload { + /** The `AgentPlan` that was created by this mutation. */ + agentPlan?: AgentPlan | null; + agentPlanEdge?: AgentPlanEdge | null; + clientMutationId?: string | null; } -/** 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[]; +export type CreateAgentPlanPayloadSelect = { + agentPlan?: { + select: AgentPlanSelect; + }; + agentPlanEdge?: { + select: AgentPlanEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface UpdateAgentPlanPayload { + /** The `AgentPlan` that was updated by this mutation. */ + agentPlan?: AgentPlan | null; + agentPlanEdge?: AgentPlanEdge | null; + clientMutationId?: string | null; } -/** A filter to be used against `AgentPrompt` object types. All fields are combined with a logical ‘and.’ */ -export interface AgentPromptFilter { - /** Filter by the object’s `agentThreadsByPromptTemplateId` relation. */ - agentThreadsByPromptTemplateId?: AgentPromptToManyAgentThreadFilter; - /** `agentThreadsByPromptTemplateId` exist. */ - agentThreadsByPromptTemplateIdExist?: boolean; - /** Checks for all expressions in this list. */ - and?: AgentPromptFilter[]; - /** Filter by the object’s `content` field. */ - content?: StringFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isDefault` field. */ - isDefault?: BooleanFilter; - /** Filter by the object’s `metadata` field. */ - metadata?: JSONFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Negates the expression. */ - not?: AgentPromptFilter; - /** Checks for any expressions in this list. */ - or?: AgentPromptFilter[]; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; +export type UpdateAgentPlanPayloadSelect = { + agentPlan?: { + select: AgentPlanSelect; + }; + agentPlanEdge?: { + select: AgentPlanEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface DeleteAgentPlanPayload { + /** The `AgentPlan` that was deleted by this mutation. */ + agentPlan?: AgentPlan | null; + agentPlanEdge?: AgentPlanEdge | null; + clientMutationId?: string | null; +} +export type DeleteAgentPlanPayloadSelect = { + agentPlan?: { + select: AgentPlanSelect; + }; + agentPlanEdge?: { + select: AgentPlanEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface CreateAgentPromptPayload { + /** The `AgentPrompt` that was created by this mutation. */ + agentPrompt?: AgentPrompt | null; + agentPromptEdge?: AgentPromptEdge | null; + clientMutationId?: string | null; +} +export type CreateAgentPromptPayloadSelect = { + agentPrompt?: { + select: AgentPromptSelect; + }; + agentPromptEdge?: { + select: AgentPromptEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface UpdateAgentPromptPayload { + /** The `AgentPrompt` that was updated by this mutation. */ + agentPrompt?: AgentPrompt | null; + agentPromptEdge?: AgentPromptEdge | null; + clientMutationId?: string | null; +} +export type UpdateAgentPromptPayloadSelect = { + agentPrompt?: { + select: AgentPromptSelect; + }; + agentPromptEdge?: { + select: AgentPromptEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface DeleteAgentPromptPayload { + /** The `AgentPrompt` that was deleted by this mutation. */ + agentPrompt?: AgentPrompt | null; + agentPromptEdge?: AgentPromptEdge | null; + clientMutationId?: string | null; +} +export type DeleteAgentPromptPayloadSelect = { + agentPrompt?: { + select: AgentPromptSelect; + }; + agentPromptEdge?: { + select: AgentPromptEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface CreateAgentResourceChunkPayload { + /** The `AgentResourceChunk` that was created by this mutation. */ + agentResourceChunk?: AgentResourceChunk | null; + agentResourceChunkEdge?: AgentResourceChunkEdge | null; + clientMutationId?: string | null; +} +export type CreateAgentResourceChunkPayloadSelect = { + agentResourceChunk?: { + select: AgentResourceChunkSelect; + }; + agentResourceChunkEdge?: { + select: AgentResourceChunkEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface UpdateAgentResourceChunkPayload { + /** The `AgentResourceChunk` that was updated by this mutation. */ + agentResourceChunk?: AgentResourceChunk | null; + agentResourceChunkEdge?: AgentResourceChunkEdge | null; + clientMutationId?: string | null; } -/** A filter to be used against String List fields. All fields are combined with a logical ‘and.’ */ -export interface StringListFilter { - /** Any array item is equal to the specified value. */ - anyEqualTo?: string; - /** Any array item is greater than the specified value. */ - anyGreaterThan?: string; - /** Any array item is greater than or equal to the specified value. */ - anyGreaterThanOrEqualTo?: string; - /** Any array item is less than the specified value. */ - anyLessThan?: string; - /** Any array item is less than or equal to the specified value. */ - anyLessThanOrEqualTo?: string; - /** Any array item is not equal to the specified value. */ - anyNotEqualTo?: string; - /** Contained by the specified list of values. */ - containedBy?: string[]; - /** Contains the specified list of values. */ - contains?: string[]; - /** 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[]; - /** 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[]; - /** Overlaps the specified list of values. */ - overlaps?: string[]; +export type UpdateAgentResourceChunkPayloadSelect = { + agentResourceChunk?: { + select: AgentResourceChunkSelect; + }; + agentResourceChunkEdge?: { + select: AgentResourceChunkEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface DeleteAgentResourceChunkPayload { + /** The `AgentResourceChunk` that was deleted by this mutation. */ + agentResourceChunk?: AgentResourceChunk | null; + agentResourceChunkEdge?: AgentResourceChunkEdge | null; + clientMutationId?: string | null; } -/** A filter to be used against `AgentPersona` object types. All fields are combined with a logical ‘and.’ */ -export interface AgentPersonaFilter { - /** Filter by the object’s `agentsByPersonaId` relation. */ - agentsByPersonaId?: AgentPersonaToManyAgentFilter; - /** `agentsByPersonaId` exist. */ - agentsByPersonaIdExist?: boolean; - /** Checks for all expressions in this list. */ - and?: AgentPersonaFilter[]; - /** Filter by the object’s `config` field. */ - config?: JSONFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `description` field. */ - description?: 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?: AgentPersonaFilter; - /** Checks for any expressions in this list. */ - or?: AgentPersonaFilter[]; - /** Filter by the object’s `resources` field. */ - resources?: StringListFilter; - /** Filter by the object’s `slug` field. */ - slug?: StringFilter; - /** Filter by the object’s `systemPrompt` field. */ - systemPrompt?: StringFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; +export type DeleteAgentResourceChunkPayloadSelect = { + agentResourceChunk?: { + select: AgentResourceChunkSelect; + }; + agentResourceChunkEdge?: { + select: AgentResourceChunkEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface CreateAgentResourcePayload { + /** The `AgentResource` that was created by this mutation. */ + agentResource?: AgentResource | null; + agentResourceEdge?: AgentResourceEdge | null; + clientMutationId?: string | null; } -/** 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[]; +export type CreateAgentResourcePayloadSelect = { + agentResource?: { + select: AgentResourceSelect; + }; + agentResourceEdge?: { + select: AgentResourceEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface UpdateAgentResourcePayload { + /** The `AgentResource` that was updated by this mutation. */ + agentResource?: AgentResource | null; + agentResourceEdge?: AgentResourceEdge | null; + clientMutationId?: string | null; } -/** A filter to be used against `AgentResource` object types. All fields are combined with a logical ‘and.’ */ -export interface AgentResourceFilter { - /** Filter by the object’s `agentResourceChunks` relation. */ - agentResourceChunks?: AgentResourceToManyAgentResourceChunkFilter; - /** `agentResourceChunks` exist. */ - agentResourceChunksExist?: boolean; - /** Checks for all expressions in this list. */ - and?: AgentResourceFilter[]; - /** Filter by the object’s `archivedAt` field. */ - archivedAt?: DatetimeFilter; - /** Filter by the object’s `body` field. */ - body?: StringTrgmFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `description` field. */ - description?: StringTrgmFilter; - /** Filter by the object’s `embedding` field. */ - embedding?: VectorFilter; - /** Filter by the object’s `embeddingUpdatedAt` field. */ - embeddingUpdatedAt?: DatetimeFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isActive` field. */ - isActive?: BooleanFilter; - /** Filter by the object’s `isArchived` field. */ - isArchived?: BooleanFilter; - /** Filter by the object’s `keywords` field. */ - keywords?: StringListFilter; - /** Filter by the object’s `kind` field. */ - kind?: StringTrgmFilter; - /** Filter by the object’s `metadata` field. */ - metadata?: JSONFilter; - /** Negates the expression. */ - not?: AgentResourceFilter; - /** Checks for any expressions in this list. */ - or?: AgentResourceFilter[]; - /** Filter by the object’s `search` field. */ - search?: FullTextFilter; - /** Filter by the object’s `slug` field. */ - slug?: StringTrgmFilter; - /** Filter by the object’s `title` field. */ - title?: StringTrgmFilter; - /** TRGM search on the `body` column. */ - trgmBody?: TrgmSearchInput; - /** TRGM search on the `description` column. */ - trgmDescription?: TrgmSearchInput; - /** TRGM search on the `kind` column. */ - trgmKind?: TrgmSearchInput; - /** TRGM search on the `title` column. */ - trgmTitle?: TrgmSearchInput; - /** TSV search on the `search` column. */ - tsvSearch?: string; - /** - * Composite unified search. Provide a search string and it will be dispatched to - * all text-compatible search algorithms (tsvector, BM25, pg_trgm) - * simultaneously. When the LLM plugin is active, pgvector also participates via - * auto-embedding. Rows matching ANY algorithm are returned. All matching score - * fields are populated. - */ - unifiedSearch?: string; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** VECTOR search on the `embedding` column. */ - vectorEmbedding?: VectorNearbyInput; +export type UpdateAgentResourcePayloadSelect = { + agentResource?: { + select: AgentResourceSelect; + }; + agentResourceEdge?: { + select: AgentResourceEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface DeleteAgentResourcePayload { + /** The `AgentResource` that was deleted by this mutation. */ + agentResource?: AgentResource | null; + agentResourceEdge?: AgentResourceEdge | null; + clientMutationId?: string | null; +} +export type DeleteAgentResourcePayloadSelect = { + agentResource?: { + select: AgentResourceSelect; + }; + agentResourceEdge?: { + select: AgentResourceEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface CreateAgentTaskPayload { + /** The `AgentTask` that was created by this mutation. */ + agentTask?: AgentTask | null; + agentTaskEdge?: AgentTaskEdge | null; + clientMutationId?: string | null; +} +export type CreateAgentTaskPayloadSelect = { + agentTask?: { + select: AgentTaskSelect; + }; + agentTaskEdge?: { + select: AgentTaskEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface UpdateAgentTaskPayload { + /** The `AgentTask` that was updated by this mutation. */ + agentTask?: AgentTask | null; + agentTaskEdge?: AgentTaskEdge | null; + clientMutationId?: string | null; } -/** A filter to be used against Vector fields. All fields are combined with a logical ‘and.’ */ -export interface VectorFilter { - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: number[]; - /** Equal to the specified value. */ - equalTo?: number[]; - /** Included in the specified list. */ - in?: number[][]; - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** 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[][]; +export type UpdateAgentTaskPayloadSelect = { + agentTask?: { + select: AgentTaskSelect; + }; + agentTaskEdge?: { + select: AgentTaskEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface DeleteAgentTaskPayload { + /** The `AgentTask` that was deleted by this mutation. */ + agentTask?: AgentTask | null; + agentTaskEdge?: AgentTaskEdge | null; + clientMutationId?: string | null; } -/** A filter to be used against FullText fields. All fields are combined with a logical ‘and.’ */ -export interface FullTextFilter { - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: string; - /** Equal to the specified value. */ - equalTo?: string; - /** Included in the specified list. */ - in?: string[]; - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Performs a full text search on the field. */ - matches?: 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[]; +export type DeleteAgentTaskPayloadSelect = { + agentTask?: { + select: AgentTaskSelect; + }; + agentTaskEdge?: { + select: AgentTaskEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface CreateAgentThreadPayload { + /** The `AgentThread` that was created by this mutation. */ + agentThread?: AgentThread | null; + agentThreadEdge?: AgentThreadEdge | null; + clientMutationId?: string | null; } -// ============ Payload/Return Types (for custom operations) ============ -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 CreateAgentThreadPayloadSelect = { + agentThread?: { + select: AgentThreadSelect; + }; + agentThreadEdge?: { + select: AgentThreadEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface UpdateAgentThreadPayload { + /** The `AgentThread` that was updated by this mutation. */ + agentThread?: AgentThread | null; + agentThreadEdge?: AgentThreadEdge | null; + clientMutationId?: string | null; } -export type ProvisionBucketPayloadSelect = { - accessType?: boolean; - bucketName?: boolean; - endpoint?: boolean; - error?: boolean; - provider?: boolean; - success?: boolean; +export type UpdateAgentThreadPayloadSelect = { + agentThread?: { + select: AgentThreadSelect; + }; + agentThreadEdge?: { + select: AgentThreadEdgeSelect; + }; + clientMutationId?: boolean; }; -export interface CreateAgentPayload { - /** The `Agent` that was created by this mutation. */ - agent?: Agent | null; - agentEdge?: AgentEdge | null; +export interface DeleteAgentThreadPayload { + /** The `AgentThread` that was deleted by this mutation. */ + agentThread?: AgentThread | null; + agentThreadEdge?: AgentThreadEdge | null; clientMutationId?: string | null; } -export type CreateAgentPayloadSelect = { - agent?: { - select: AgentSelect; +export type DeleteAgentThreadPayloadSelect = { + agentThread?: { + select: AgentThreadSelect; }; - agentEdge?: { - select: AgentEdgeSelect; + agentThreadEdge?: { + select: AgentThreadEdgeSelect; }; clientMutationId?: boolean; }; -export interface UpdateAgentPayload { - /** The `Agent` that was updated by this mutation. */ - agent?: Agent | null; - agentEdge?: AgentEdge | null; +export interface CreatePlatformAgentPayload { clientMutationId?: string | null; + /** The `PlatformAgent` that was created by this mutation. */ + platformAgent?: PlatformAgent | null; + platformAgentEdge?: PlatformAgentEdge | null; } -export type UpdateAgentPayloadSelect = { - agent?: { - select: AgentSelect; +export type CreatePlatformAgentPayloadSelect = { + clientMutationId?: boolean; + platformAgent?: { + select: PlatformAgentSelect; }; - agentEdge?: { - select: AgentEdgeSelect; + platformAgentEdge?: { + select: PlatformAgentEdgeSelect; }; +}; +export interface UpdatePlatformAgentPayload { + clientMutationId?: string | null; + /** The `PlatformAgent` that was updated by this mutation. */ + platformAgent?: PlatformAgent | null; + platformAgentEdge?: PlatformAgentEdge | null; +} +export type UpdatePlatformAgentPayloadSelect = { clientMutationId?: boolean; + platformAgent?: { + select: PlatformAgentSelect; + }; + platformAgentEdge?: { + select: PlatformAgentEdgeSelect; + }; }; -export interface DeleteAgentPayload { - /** The `Agent` that was deleted by this mutation. */ - agent?: Agent | null; - agentEdge?: AgentEdge | null; +export interface DeletePlatformAgentPayload { clientMutationId?: string | null; + /** The `PlatformAgent` that was deleted by this mutation. */ + platformAgent?: PlatformAgent | null; + platformAgentEdge?: PlatformAgentEdge | null; } -export type DeleteAgentPayloadSelect = { - agent?: { - select: AgentSelect; +export type DeletePlatformAgentPayloadSelect = { + clientMutationId?: boolean; + platformAgent?: { + select: PlatformAgentSelect; }; - agentEdge?: { - select: AgentEdgeSelect; + platformAgentEdge?: { + select: PlatformAgentEdgeSelect; }; +}; +export interface CreatePlatformAgentEventPayload { + clientMutationId?: string | null; + /** The `PlatformAgentEvent` that was created by this mutation. */ + platformAgentEvent?: PlatformAgentEvent | null; + platformAgentEventEdge?: PlatformAgentEventEdge | null; +} +export type CreatePlatformAgentEventPayloadSelect = { clientMutationId?: boolean; + platformAgentEvent?: { + select: PlatformAgentEventSelect; + }; + platformAgentEventEdge?: { + select: PlatformAgentEventEdgeSelect; + }; }; -export interface CreateAgentMessagePayload { - /** The `AgentMessage` that was created by this mutation. */ - agentMessage?: AgentMessage | null; - agentMessageEdge?: AgentMessageEdge | null; +export interface UpdatePlatformAgentEventPayload { clientMutationId?: string | null; + /** The `PlatformAgentEvent` that was updated by this mutation. */ + platformAgentEvent?: PlatformAgentEvent | null; + platformAgentEventEdge?: PlatformAgentEventEdge | null; } -export type CreateAgentMessagePayloadSelect = { - agentMessage?: { - select: AgentMessageSelect; +export type UpdatePlatformAgentEventPayloadSelect = { + clientMutationId?: boolean; + platformAgentEvent?: { + select: PlatformAgentEventSelect; }; - agentMessageEdge?: { - select: AgentMessageEdgeSelect; + platformAgentEventEdge?: { + select: PlatformAgentEventEdgeSelect; }; +}; +export interface DeletePlatformAgentEventPayload { + clientMutationId?: string | null; + /** The `PlatformAgentEvent` that was deleted by this mutation. */ + platformAgentEvent?: PlatformAgentEvent | null; + platformAgentEventEdge?: PlatformAgentEventEdge | null; +} +export type DeletePlatformAgentEventPayloadSelect = { clientMutationId?: boolean; + platformAgentEvent?: { + select: PlatformAgentEventSelect; + }; + platformAgentEventEdge?: { + select: PlatformAgentEventEdgeSelect; + }; }; -export interface UpdateAgentMessagePayload { - /** The `AgentMessage` that was updated by this mutation. */ - agentMessage?: AgentMessage | null; - agentMessageEdge?: AgentMessageEdge | null; +export interface CreatePlatformAgentMessagePayload { clientMutationId?: string | null; + /** The `PlatformAgentMessage` that was created by this mutation. */ + platformAgentMessage?: PlatformAgentMessage | null; + platformAgentMessageEdge?: PlatformAgentMessageEdge | null; } -export type UpdateAgentMessagePayloadSelect = { - agentMessage?: { - select: AgentMessageSelect; +export type CreatePlatformAgentMessagePayloadSelect = { + clientMutationId?: boolean; + platformAgentMessage?: { + select: PlatformAgentMessageSelect; }; - agentMessageEdge?: { - select: AgentMessageEdgeSelect; + platformAgentMessageEdge?: { + select: PlatformAgentMessageEdgeSelect; }; +}; +export interface UpdatePlatformAgentMessagePayload { + clientMutationId?: string | null; + /** The `PlatformAgentMessage` that was updated by this mutation. */ + platformAgentMessage?: PlatformAgentMessage | null; + platformAgentMessageEdge?: PlatformAgentMessageEdge | null; +} +export type UpdatePlatformAgentMessagePayloadSelect = { clientMutationId?: boolean; + platformAgentMessage?: { + select: PlatformAgentMessageSelect; + }; + platformAgentMessageEdge?: { + select: PlatformAgentMessageEdgeSelect; + }; }; -export interface DeleteAgentMessagePayload { - /** The `AgentMessage` that was deleted by this mutation. */ - agentMessage?: AgentMessage | null; - agentMessageEdge?: AgentMessageEdge | null; +export interface DeletePlatformAgentMessagePayload { clientMutationId?: string | null; + /** The `PlatformAgentMessage` that was deleted by this mutation. */ + platformAgentMessage?: PlatformAgentMessage | null; + platformAgentMessageEdge?: PlatformAgentMessageEdge | null; } -export type DeleteAgentMessagePayloadSelect = { - agentMessage?: { - select: AgentMessageSelect; +export type DeletePlatformAgentMessagePayloadSelect = { + clientMutationId?: boolean; + platformAgentMessage?: { + select: PlatformAgentMessageSelect; }; - agentMessageEdge?: { - select: AgentMessageEdgeSelect; + platformAgentMessageEdge?: { + select: PlatformAgentMessageEdgeSelect; }; +}; +export interface CreatePlatformAgentPersonaPayload { + clientMutationId?: string | null; + /** The `PlatformAgentPersona` that was created by this mutation. */ + platformAgentPersona?: PlatformAgentPersona | null; + platformAgentPersonaEdge?: PlatformAgentPersonaEdge | null; +} +export type CreatePlatformAgentPersonaPayloadSelect = { clientMutationId?: boolean; + platformAgentPersona?: { + select: PlatformAgentPersonaSelect; + }; + platformAgentPersonaEdge?: { + select: PlatformAgentPersonaEdgeSelect; + }; }; -export interface CreateAgentPersonaPayload { - /** The `AgentPersona` that was created by this mutation. */ - agentPersona?: AgentPersona | null; - agentPersonaEdge?: AgentPersonaEdge | null; +export interface UpdatePlatformAgentPersonaPayload { clientMutationId?: string | null; + /** The `PlatformAgentPersona` that was updated by this mutation. */ + platformAgentPersona?: PlatformAgentPersona | null; + platformAgentPersonaEdge?: PlatformAgentPersonaEdge | null; } -export type CreateAgentPersonaPayloadSelect = { - agentPersona?: { - select: AgentPersonaSelect; +export type UpdatePlatformAgentPersonaPayloadSelect = { + clientMutationId?: boolean; + platformAgentPersona?: { + select: PlatformAgentPersonaSelect; }; - agentPersonaEdge?: { - select: AgentPersonaEdgeSelect; + platformAgentPersonaEdge?: { + select: PlatformAgentPersonaEdgeSelect; }; +}; +export interface DeletePlatformAgentPersonaPayload { + clientMutationId?: string | null; + /** The `PlatformAgentPersona` that was deleted by this mutation. */ + platformAgentPersona?: PlatformAgentPersona | null; + platformAgentPersonaEdge?: PlatformAgentPersonaEdge | null; +} +export type DeletePlatformAgentPersonaPayloadSelect = { clientMutationId?: boolean; + platformAgentPersona?: { + select: PlatformAgentPersonaSelect; + }; + platformAgentPersonaEdge?: { + select: PlatformAgentPersonaEdgeSelect; + }; }; -export interface UpdateAgentPersonaPayload { - /** The `AgentPersona` that was updated by this mutation. */ - agentPersona?: AgentPersona | null; - agentPersonaEdge?: AgentPersonaEdge | null; +export interface CreatePlatformAgentPlanPayload { clientMutationId?: string | null; + /** The `PlatformAgentPlan` that was created by this mutation. */ + platformAgentPlan?: PlatformAgentPlan | null; + platformAgentPlanEdge?: PlatformAgentPlanEdge | null; } -export type UpdateAgentPersonaPayloadSelect = { - agentPersona?: { - select: AgentPersonaSelect; +export type CreatePlatformAgentPlanPayloadSelect = { + clientMutationId?: boolean; + platformAgentPlan?: { + select: PlatformAgentPlanSelect; }; - agentPersonaEdge?: { - select: AgentPersonaEdgeSelect; + platformAgentPlanEdge?: { + select: PlatformAgentPlanEdgeSelect; }; +}; +export interface UpdatePlatformAgentPlanPayload { + clientMutationId?: string | null; + /** The `PlatformAgentPlan` that was updated by this mutation. */ + platformAgentPlan?: PlatformAgentPlan | null; + platformAgentPlanEdge?: PlatformAgentPlanEdge | null; +} +export type UpdatePlatformAgentPlanPayloadSelect = { clientMutationId?: boolean; + platformAgentPlan?: { + select: PlatformAgentPlanSelect; + }; + platformAgentPlanEdge?: { + select: PlatformAgentPlanEdgeSelect; + }; }; -export interface DeleteAgentPersonaPayload { - /** The `AgentPersona` that was deleted by this mutation. */ - agentPersona?: AgentPersona | null; - agentPersonaEdge?: AgentPersonaEdge | null; +export interface DeletePlatformAgentPlanPayload { clientMutationId?: string | null; + /** The `PlatformAgentPlan` that was deleted by this mutation. */ + platformAgentPlan?: PlatformAgentPlan | null; + platformAgentPlanEdge?: PlatformAgentPlanEdge | null; } -export type DeleteAgentPersonaPayloadSelect = { - agentPersona?: { - select: AgentPersonaSelect; +export type DeletePlatformAgentPlanPayloadSelect = { + clientMutationId?: boolean; + platformAgentPlan?: { + select: PlatformAgentPlanSelect; }; - agentPersonaEdge?: { - select: AgentPersonaEdgeSelect; + platformAgentPlanEdge?: { + select: PlatformAgentPlanEdgeSelect; }; +}; +export interface CreatePlatformAgentPromptPayload { + clientMutationId?: string | null; + /** The `PlatformAgentPrompt` that was created by this mutation. */ + platformAgentPrompt?: PlatformAgentPrompt | null; + platformAgentPromptEdge?: PlatformAgentPromptEdge | null; +} +export type CreatePlatformAgentPromptPayloadSelect = { clientMutationId?: boolean; + platformAgentPrompt?: { + select: PlatformAgentPromptSelect; + }; + platformAgentPromptEdge?: { + select: PlatformAgentPromptEdgeSelect; + }; }; -export interface CreateAgentPlanPayload { - /** The `AgentPlan` that was created by this mutation. */ - agentPlan?: AgentPlan | null; - agentPlanEdge?: AgentPlanEdge | null; +export interface UpdatePlatformAgentPromptPayload { clientMutationId?: string | null; + /** The `PlatformAgentPrompt` that was updated by this mutation. */ + platformAgentPrompt?: PlatformAgentPrompt | null; + platformAgentPromptEdge?: PlatformAgentPromptEdge | null; } -export type CreateAgentPlanPayloadSelect = { - agentPlan?: { - select: AgentPlanSelect; +export type UpdatePlatformAgentPromptPayloadSelect = { + clientMutationId?: boolean; + platformAgentPrompt?: { + select: PlatformAgentPromptSelect; }; - agentPlanEdge?: { - select: AgentPlanEdgeSelect; + platformAgentPromptEdge?: { + select: PlatformAgentPromptEdgeSelect; }; +}; +export interface DeletePlatformAgentPromptPayload { + clientMutationId?: string | null; + /** The `PlatformAgentPrompt` that was deleted by this mutation. */ + platformAgentPrompt?: PlatformAgentPrompt | null; + platformAgentPromptEdge?: PlatformAgentPromptEdge | null; +} +export type DeletePlatformAgentPromptPayloadSelect = { clientMutationId?: boolean; + platformAgentPrompt?: { + select: PlatformAgentPromptSelect; + }; + platformAgentPromptEdge?: { + select: PlatformAgentPromptEdgeSelect; + }; }; -export interface UpdateAgentPlanPayload { - /** The `AgentPlan` that was updated by this mutation. */ - agentPlan?: AgentPlan | null; - agentPlanEdge?: AgentPlanEdge | null; +export interface CreatePlatformAgentResourceChunkPayload { + clientMutationId?: string | null; + /** The `PlatformAgentResourceChunk` that was created by this mutation. */ + platformAgentResourceChunk?: PlatformAgentResourceChunk | null; + platformAgentResourceChunkEdge?: PlatformAgentResourceChunkEdge | null; +} +export type CreatePlatformAgentResourceChunkPayloadSelect = { + clientMutationId?: boolean; + platformAgentResourceChunk?: { + select: PlatformAgentResourceChunkSelect; + }; + platformAgentResourceChunkEdge?: { + select: PlatformAgentResourceChunkEdgeSelect; + }; +}; +export interface UpdatePlatformAgentResourceChunkPayload { clientMutationId?: string | null; + /** The `PlatformAgentResourceChunk` that was updated by this mutation. */ + platformAgentResourceChunk?: PlatformAgentResourceChunk | null; + platformAgentResourceChunkEdge?: PlatformAgentResourceChunkEdge | null; } -export type UpdateAgentPlanPayloadSelect = { - agentPlan?: { - select: AgentPlanSelect; +export type UpdatePlatformAgentResourceChunkPayloadSelect = { + clientMutationId?: boolean; + platformAgentResourceChunk?: { + select: PlatformAgentResourceChunkSelect; }; - agentPlanEdge?: { - select: AgentPlanEdgeSelect; + platformAgentResourceChunkEdge?: { + select: PlatformAgentResourceChunkEdgeSelect; }; - clientMutationId?: boolean; }; -export interface DeleteAgentPlanPayload { - /** The `AgentPlan` that was deleted by this mutation. */ - agentPlan?: AgentPlan | null; - agentPlanEdge?: AgentPlanEdge | null; +export interface DeletePlatformAgentResourceChunkPayload { clientMutationId?: string | null; + /** The `PlatformAgentResourceChunk` that was deleted by this mutation. */ + platformAgentResourceChunk?: PlatformAgentResourceChunk | null; + platformAgentResourceChunkEdge?: PlatformAgentResourceChunkEdge | null; } -export type DeleteAgentPlanPayloadSelect = { - agentPlan?: { - select: AgentPlanSelect; +export type DeletePlatformAgentResourceChunkPayloadSelect = { + clientMutationId?: boolean; + platformAgentResourceChunk?: { + select: PlatformAgentResourceChunkSelect; }; - agentPlanEdge?: { - select: AgentPlanEdgeSelect; + platformAgentResourceChunkEdge?: { + select: PlatformAgentResourceChunkEdgeSelect; }; - clientMutationId?: boolean; }; -export interface CreateAgentPromptPayload { - /** The `AgentPrompt` that was created by this mutation. */ - agentPrompt?: AgentPrompt | null; - agentPromptEdge?: AgentPromptEdge | null; +export interface CreatePlatformAgentResourcePayload { clientMutationId?: string | null; + /** The `PlatformAgentResource` that was created by this mutation. */ + platformAgentResource?: PlatformAgentResource | null; + platformAgentResourceEdge?: PlatformAgentResourceEdge | null; } -export type CreateAgentPromptPayloadSelect = { - agentPrompt?: { - select: AgentPromptSelect; +export type CreatePlatformAgentResourcePayloadSelect = { + clientMutationId?: boolean; + platformAgentResource?: { + select: PlatformAgentResourceSelect; }; - agentPromptEdge?: { - select: AgentPromptEdgeSelect; + platformAgentResourceEdge?: { + select: PlatformAgentResourceEdgeSelect; }; - clientMutationId?: boolean; }; -export interface UpdateAgentPromptPayload { - /** The `AgentPrompt` that was updated by this mutation. */ - agentPrompt?: AgentPrompt | null; - agentPromptEdge?: AgentPromptEdge | null; +export interface UpdatePlatformAgentResourcePayload { clientMutationId?: string | null; + /** The `PlatformAgentResource` that was updated by this mutation. */ + platformAgentResource?: PlatformAgentResource | null; + platformAgentResourceEdge?: PlatformAgentResourceEdge | null; } -export type UpdateAgentPromptPayloadSelect = { - agentPrompt?: { - select: AgentPromptSelect; +export type UpdatePlatformAgentResourcePayloadSelect = { + clientMutationId?: boolean; + platformAgentResource?: { + select: PlatformAgentResourceSelect; }; - agentPromptEdge?: { - select: AgentPromptEdgeSelect; + platformAgentResourceEdge?: { + select: PlatformAgentResourceEdgeSelect; }; - clientMutationId?: boolean; }; -export interface DeleteAgentPromptPayload { - /** The `AgentPrompt` that was deleted by this mutation. */ - agentPrompt?: AgentPrompt | null; - agentPromptEdge?: AgentPromptEdge | null; +export interface DeletePlatformAgentResourcePayload { clientMutationId?: string | null; + /** The `PlatformAgentResource` that was deleted by this mutation. */ + platformAgentResource?: PlatformAgentResource | null; + platformAgentResourceEdge?: PlatformAgentResourceEdge | null; } -export type DeleteAgentPromptPayloadSelect = { - agentPrompt?: { - select: AgentPromptSelect; +export type DeletePlatformAgentResourcePayloadSelect = { + clientMutationId?: boolean; + platformAgentResource?: { + select: PlatformAgentResourceSelect; }; - agentPromptEdge?: { - select: AgentPromptEdgeSelect; + platformAgentResourceEdge?: { + select: PlatformAgentResourceEdgeSelect; }; - clientMutationId?: boolean; }; -export interface CreateAgentResourceChunkPayload { - /** The `AgentResourceChunk` that was created by this mutation. */ - agentResourceChunk?: AgentResourceChunk | null; - agentResourceChunkEdge?: AgentResourceChunkEdge | null; +export interface CreatePlatformAgentRunPayload { clientMutationId?: string | null; + /** The `PlatformAgentRun` that was created by this mutation. */ + platformAgentRun?: PlatformAgentRun | null; + platformAgentRunEdge?: PlatformAgentRunEdge | null; } -export type CreateAgentResourceChunkPayloadSelect = { - agentResourceChunk?: { - select: AgentResourceChunkSelect; +export type CreatePlatformAgentRunPayloadSelect = { + clientMutationId?: boolean; + platformAgentRun?: { + select: PlatformAgentRunSelect; }; - agentResourceChunkEdge?: { - select: AgentResourceChunkEdgeSelect; + platformAgentRunEdge?: { + select: PlatformAgentRunEdgeSelect; }; - clientMutationId?: boolean; }; -export interface UpdateAgentResourceChunkPayload { - /** The `AgentResourceChunk` that was updated by this mutation. */ - agentResourceChunk?: AgentResourceChunk | null; - agentResourceChunkEdge?: AgentResourceChunkEdge | null; +export interface UpdatePlatformAgentRunPayload { clientMutationId?: string | null; + /** The `PlatformAgentRun` that was updated by this mutation. */ + platformAgentRun?: PlatformAgentRun | null; + platformAgentRunEdge?: PlatformAgentRunEdge | null; } -export type UpdateAgentResourceChunkPayloadSelect = { - agentResourceChunk?: { - select: AgentResourceChunkSelect; +export type UpdatePlatformAgentRunPayloadSelect = { + clientMutationId?: boolean; + platformAgentRun?: { + select: PlatformAgentRunSelect; }; - agentResourceChunkEdge?: { - select: AgentResourceChunkEdgeSelect; + platformAgentRunEdge?: { + select: PlatformAgentRunEdgeSelect; }; - clientMutationId?: boolean; }; -export interface DeleteAgentResourceChunkPayload { - /** The `AgentResourceChunk` that was deleted by this mutation. */ - agentResourceChunk?: AgentResourceChunk | null; - agentResourceChunkEdge?: AgentResourceChunkEdge | null; +export interface DeletePlatformAgentRunPayload { clientMutationId?: string | null; + /** The `PlatformAgentRun` that was deleted by this mutation. */ + platformAgentRun?: PlatformAgentRun | null; + platformAgentRunEdge?: PlatformAgentRunEdge | null; } -export type DeleteAgentResourceChunkPayloadSelect = { - agentResourceChunk?: { - select: AgentResourceChunkSelect; +export type DeletePlatformAgentRunPayloadSelect = { + clientMutationId?: boolean; + platformAgentRun?: { + select: PlatformAgentRunSelect; }; - agentResourceChunkEdge?: { - select: AgentResourceChunkEdgeSelect; + platformAgentRunEdge?: { + select: PlatformAgentRunEdgeSelect; }; - clientMutationId?: boolean; }; -export interface CreateAgentResourcePayload { - /** The `AgentResource` that was created by this mutation. */ - agentResource?: AgentResource | null; - agentResourceEdge?: AgentResourceEdge | null; +export interface CreatePlatformAgentRunWorkspacePayload { clientMutationId?: string | null; + /** The `PlatformAgentRunWorkspace` that was created by this mutation. */ + platformAgentRunWorkspace?: PlatformAgentRunWorkspace | null; + platformAgentRunWorkspaceEdge?: PlatformAgentRunWorkspaceEdge | null; } -export type CreateAgentResourcePayloadSelect = { - agentResource?: { - select: AgentResourceSelect; +export type CreatePlatformAgentRunWorkspacePayloadSelect = { + clientMutationId?: boolean; + platformAgentRunWorkspace?: { + select: PlatformAgentRunWorkspaceSelect; }; - agentResourceEdge?: { - select: AgentResourceEdgeSelect; + platformAgentRunWorkspaceEdge?: { + select: PlatformAgentRunWorkspaceEdgeSelect; }; - clientMutationId?: boolean; }; -export interface UpdateAgentResourcePayload { - /** The `AgentResource` that was updated by this mutation. */ - agentResource?: AgentResource | null; - agentResourceEdge?: AgentResourceEdge | null; +export interface UpdatePlatformAgentRunWorkspacePayload { clientMutationId?: string | null; + /** The `PlatformAgentRunWorkspace` that was updated by this mutation. */ + platformAgentRunWorkspace?: PlatformAgentRunWorkspace | null; + platformAgentRunWorkspaceEdge?: PlatformAgentRunWorkspaceEdge | null; } -export type UpdateAgentResourcePayloadSelect = { - agentResource?: { - select: AgentResourceSelect; +export type UpdatePlatformAgentRunWorkspacePayloadSelect = { + clientMutationId?: boolean; + platformAgentRunWorkspace?: { + select: PlatformAgentRunWorkspaceSelect; }; - agentResourceEdge?: { - select: AgentResourceEdgeSelect; + platformAgentRunWorkspaceEdge?: { + select: PlatformAgentRunWorkspaceEdgeSelect; }; - clientMutationId?: boolean; }; -export interface DeleteAgentResourcePayload { - /** The `AgentResource` that was deleted by this mutation. */ - agentResource?: AgentResource | null; - agentResourceEdge?: AgentResourceEdge | null; +export interface DeletePlatformAgentRunWorkspacePayload { clientMutationId?: string | null; + /** The `PlatformAgentRunWorkspace` that was deleted by this mutation. */ + platformAgentRunWorkspace?: PlatformAgentRunWorkspace | null; + platformAgentRunWorkspaceEdge?: PlatformAgentRunWorkspaceEdge | null; } -export type DeleteAgentResourcePayloadSelect = { - agentResource?: { - select: AgentResourceSelect; +export type DeletePlatformAgentRunWorkspacePayloadSelect = { + clientMutationId?: boolean; + platformAgentRunWorkspace?: { + select: PlatformAgentRunWorkspaceSelect; }; - agentResourceEdge?: { - select: AgentResourceEdgeSelect; + platformAgentRunWorkspaceEdge?: { + select: PlatformAgentRunWorkspaceEdgeSelect; }; - clientMutationId?: boolean; }; -export interface CreateAgentTaskPayload { - /** The `AgentTask` that was created by this mutation. */ - agentTask?: AgentTask | null; - agentTaskEdge?: AgentTaskEdge | null; +export interface CreatePlatformAgentTaskPayload { clientMutationId?: string | null; + /** The `PlatformAgentTask` that was created by this mutation. */ + platformAgentTask?: PlatformAgentTask | null; + platformAgentTaskEdge?: PlatformAgentTaskEdge | null; } -export type CreateAgentTaskPayloadSelect = { - agentTask?: { - select: AgentTaskSelect; +export type CreatePlatformAgentTaskPayloadSelect = { + clientMutationId?: boolean; + platformAgentTask?: { + select: PlatformAgentTaskSelect; }; - agentTaskEdge?: { - select: AgentTaskEdgeSelect; + platformAgentTaskEdge?: { + select: PlatformAgentTaskEdgeSelect; }; - clientMutationId?: boolean; }; -export interface UpdateAgentTaskPayload { - /** The `AgentTask` that was updated by this mutation. */ - agentTask?: AgentTask | null; - agentTaskEdge?: AgentTaskEdge | null; +export interface UpdatePlatformAgentTaskPayload { clientMutationId?: string | null; + /** The `PlatformAgentTask` that was updated by this mutation. */ + platformAgentTask?: PlatformAgentTask | null; + platformAgentTaskEdge?: PlatformAgentTaskEdge | null; } -export type UpdateAgentTaskPayloadSelect = { - agentTask?: { - select: AgentTaskSelect; +export type UpdatePlatformAgentTaskPayloadSelect = { + clientMutationId?: boolean; + platformAgentTask?: { + select: PlatformAgentTaskSelect; }; - agentTaskEdge?: { - select: AgentTaskEdgeSelect; + platformAgentTaskEdge?: { + select: PlatformAgentTaskEdgeSelect; }; - clientMutationId?: boolean; }; -export interface DeleteAgentTaskPayload { - /** The `AgentTask` that was deleted by this mutation. */ - agentTask?: AgentTask | null; - agentTaskEdge?: AgentTaskEdge | null; +export interface DeletePlatformAgentTaskPayload { clientMutationId?: string | null; + /** The `PlatformAgentTask` that was deleted by this mutation. */ + platformAgentTask?: PlatformAgentTask | null; + platformAgentTaskEdge?: PlatformAgentTaskEdge | null; } -export type DeleteAgentTaskPayloadSelect = { - agentTask?: { - select: AgentTaskSelect; +export type DeletePlatformAgentTaskPayloadSelect = { + clientMutationId?: boolean; + platformAgentTask?: { + select: PlatformAgentTaskSelect; }; - agentTaskEdge?: { - select: AgentTaskEdgeSelect; + platformAgentTaskEdge?: { + select: PlatformAgentTaskEdgeSelect; }; - clientMutationId?: boolean; }; -export interface CreateAgentThreadPayload { - /** The `AgentThread` that was created by this mutation. */ - agentThread?: AgentThread | null; - agentThreadEdge?: AgentThreadEdge | null; +export interface CreatePlatformAgentThreadPayload { clientMutationId?: string | null; + /** The `PlatformAgentThread` that was created by this mutation. */ + platformAgentThread?: PlatformAgentThread | null; + platformAgentThreadEdge?: PlatformAgentThreadEdge | null; } -export type CreateAgentThreadPayloadSelect = { - agentThread?: { - select: AgentThreadSelect; +export type CreatePlatformAgentThreadPayloadSelect = { + clientMutationId?: boolean; + platformAgentThread?: { + select: PlatformAgentThreadSelect; }; - agentThreadEdge?: { - select: AgentThreadEdgeSelect; + platformAgentThreadEdge?: { + select: PlatformAgentThreadEdgeSelect; }; - clientMutationId?: boolean; }; -export interface UpdateAgentThreadPayload { - /** The `AgentThread` that was updated by this mutation. */ - agentThread?: AgentThread | null; - agentThreadEdge?: AgentThreadEdge | null; +export interface UpdatePlatformAgentThreadPayload { clientMutationId?: string | null; + /** The `PlatformAgentThread` that was updated by this mutation. */ + platformAgentThread?: PlatformAgentThread | null; + platformAgentThreadEdge?: PlatformAgentThreadEdge | null; } -export type UpdateAgentThreadPayloadSelect = { - agentThread?: { - select: AgentThreadSelect; +export type UpdatePlatformAgentThreadPayloadSelect = { + clientMutationId?: boolean; + platformAgentThread?: { + select: PlatformAgentThreadSelect; }; - agentThreadEdge?: { - select: AgentThreadEdgeSelect; + platformAgentThreadEdge?: { + select: PlatformAgentThreadEdgeSelect; }; - clientMutationId?: boolean; }; -export interface DeleteAgentThreadPayload { - /** The `AgentThread` that was deleted by this mutation. */ - agentThread?: AgentThread | null; - agentThreadEdge?: AgentThreadEdge | null; +export interface DeletePlatformAgentThreadPayload { clientMutationId?: string | null; + /** The `PlatformAgentThread` that was deleted by this mutation. */ + platformAgentThread?: PlatformAgentThread | null; + platformAgentThreadEdge?: PlatformAgentThreadEdge | null; } -export type DeleteAgentThreadPayloadSelect = { - agentThread?: { - select: AgentThreadSelect; +export type DeletePlatformAgentThreadPayloadSelect = { + clientMutationId?: boolean; + platformAgentThread?: { + select: PlatformAgentThreadSelect; }; - agentThreadEdge?: { - select: AgentThreadEdgeSelect; + platformAgentThreadEdge?: { + select: PlatformAgentThreadEdgeSelect; }; - clientMutationId?: boolean; }; /** A `Agent` edge in the connection. */ export interface AgentEdge { @@ -3422,3 +7377,147 @@ export type AgentThreadEdgeSelect = { select: AgentThreadSelect; }; }; +/** A `PlatformAgent` edge in the connection. */ +export interface PlatformAgentEdge { + cursor?: string | null; + /** The `PlatformAgent` at the end of the edge. */ + node?: PlatformAgent | null; +} +export type PlatformAgentEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformAgentSelect; + }; +}; +/** A `PlatformAgentEvent` edge in the connection. */ +export interface PlatformAgentEventEdge { + cursor?: string | null; + /** The `PlatformAgentEvent` at the end of the edge. */ + node?: PlatformAgentEvent | null; +} +export type PlatformAgentEventEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformAgentEventSelect; + }; +}; +/** A `PlatformAgentMessage` edge in the connection. */ +export interface PlatformAgentMessageEdge { + cursor?: string | null; + /** The `PlatformAgentMessage` at the end of the edge. */ + node?: PlatformAgentMessage | null; +} +export type PlatformAgentMessageEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformAgentMessageSelect; + }; +}; +/** A `PlatformAgentPersona` edge in the connection. */ +export interface PlatformAgentPersonaEdge { + cursor?: string | null; + /** The `PlatformAgentPersona` at the end of the edge. */ + node?: PlatformAgentPersona | null; +} +export type PlatformAgentPersonaEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformAgentPersonaSelect; + }; +}; +/** A `PlatformAgentPlan` edge in the connection. */ +export interface PlatformAgentPlanEdge { + cursor?: string | null; + /** The `PlatformAgentPlan` at the end of the edge. */ + node?: PlatformAgentPlan | null; +} +export type PlatformAgentPlanEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformAgentPlanSelect; + }; +}; +/** A `PlatformAgentPrompt` edge in the connection. */ +export interface PlatformAgentPromptEdge { + cursor?: string | null; + /** The `PlatformAgentPrompt` at the end of the edge. */ + node?: PlatformAgentPrompt | null; +} +export type PlatformAgentPromptEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformAgentPromptSelect; + }; +}; +/** A `PlatformAgentResourceChunk` edge in the connection. */ +export interface PlatformAgentResourceChunkEdge { + cursor?: string | null; + /** The `PlatformAgentResourceChunk` at the end of the edge. */ + node?: PlatformAgentResourceChunk | null; +} +export type PlatformAgentResourceChunkEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformAgentResourceChunkSelect; + }; +}; +/** A `PlatformAgentResource` edge in the connection. */ +export interface PlatformAgentResourceEdge { + cursor?: string | null; + /** The `PlatformAgentResource` at the end of the edge. */ + node?: PlatformAgentResource | null; +} +export type PlatformAgentResourceEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformAgentResourceSelect; + }; +}; +/** A `PlatformAgentRun` edge in the connection. */ +export interface PlatformAgentRunEdge { + cursor?: string | null; + /** The `PlatformAgentRun` at the end of the edge. */ + node?: PlatformAgentRun | null; +} +export type PlatformAgentRunEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformAgentRunSelect; + }; +}; +/** A `PlatformAgentRunWorkspace` edge in the connection. */ +export interface PlatformAgentRunWorkspaceEdge { + cursor?: string | null; + /** The `PlatformAgentRunWorkspace` at the end of the edge. */ + node?: PlatformAgentRunWorkspace | null; +} +export type PlatformAgentRunWorkspaceEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformAgentRunWorkspaceSelect; + }; +}; +/** A `PlatformAgentTask` edge in the connection. */ +export interface PlatformAgentTaskEdge { + cursor?: string | null; + /** The `PlatformAgentTask` at the end of the edge. */ + node?: PlatformAgentTask | null; +} +export type PlatformAgentTaskEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformAgentTaskSelect; + }; +}; +/** A `PlatformAgentThread` edge in the connection. */ +export interface PlatformAgentThreadEdge { + cursor?: string | null; + /** The `PlatformAgentThread` at the end of the edge. */ + node?: PlatformAgentThread | null; +} +export type PlatformAgentThreadEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformAgentThreadSelect; + }; +}; diff --git a/sdk/constructive-react/src/agent/orm/models/index.ts b/sdk/constructive-react/src/agent/orm/models/index.ts index 4d02471c8a..399c45027a 100644 --- a/sdk/constructive-react/src/agent/orm/models/index.ts +++ b/sdk/constructive-react/src/agent/orm/models/index.ts @@ -12,3 +12,15 @@ export { AgentResourceChunkModel } from './agentResourceChunk'; export { AgentResourceModel } from './agentResource'; export { AgentTaskModel } from './agentTask'; export { AgentThreadModel } from './agentThread'; +export { PlatformAgentModel } from './platformAgent'; +export { PlatformAgentEventModel } from './platformAgentEvent'; +export { PlatformAgentMessageModel } from './platformAgentMessage'; +export { PlatformAgentPersonaModel } from './platformAgentPersona'; +export { PlatformAgentPlanModel } from './platformAgentPlan'; +export { PlatformAgentPromptModel } from './platformAgentPrompt'; +export { PlatformAgentResourceChunkModel } from './platformAgentResourceChunk'; +export { PlatformAgentResourceModel } from './platformAgentResource'; +export { PlatformAgentRunModel } from './platformAgentRun'; +export { PlatformAgentRunWorkspaceModel } from './platformAgentRunWorkspace'; +export { PlatformAgentTaskModel } from './platformAgentTask'; +export { PlatformAgentThreadModel } from './platformAgentThread'; diff --git a/sdk/constructive-react/src/agent/orm/models/platformAgent.ts b/sdk/constructive-react/src/agent/orm/models/platformAgent.ts new file mode 100644 index 0000000000..fad9efeb9c --- /dev/null +++ b/sdk/constructive-react/src/agent/orm/models/platformAgent.ts @@ -0,0 +1,245 @@ +/** + * PlatformAgent 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 { + PlatformAgent, + PlatformAgentWithRelations, + PlatformAgentSelect, + PlatformAgentFilter, + PlatformAgentOrderBy, + CreatePlatformAgentInput, + UpdatePlatformAgentInput, + PlatformAgentPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformAgentModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgents: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformAgent', + 'platformAgents', + 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, + }, + 'PlatformAgentFilter', + 'PlatformAgentOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgent', + fieldName: 'platformAgents', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgent: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformAgent', + 'platformAgents', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformAgentFilter', + 'PlatformAgentOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgent', + fieldName: 'platformAgent', + document, + variables, + transform: (data: { + platformAgents?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformAgent: data.platformAgents?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgent: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformAgent', + 'platformAgents', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformAgentFilter', + 'PlatformAgentOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgent', + fieldName: 'platformAgent', + document, + variables, + transform: (data: { + platformAgents?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformAgent: data.platformAgents?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformAgent: { + platformAgent: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformAgent', + 'createPlatformAgent', + 'platformAgent', + args.select, + args.data, + 'CreatePlatformAgentInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgent', + fieldName: 'createPlatformAgent', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformAgentPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformAgent: { + platformAgent: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformAgent', + 'updatePlatformAgent', + 'platformAgent', + args.select, + args.where.id, + args.data, + 'UpdatePlatformAgentInput', + 'id', + 'platformAgentPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgent', + fieldName: 'updatePlatformAgent', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformAgent: { + platformAgent: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformAgent', + 'deletePlatformAgent', + 'platformAgent', + { + id: args.where.id, + }, + 'DeletePlatformAgentInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgent', + fieldName: 'deletePlatformAgent', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/agent/orm/models/platformAgentEvent.ts b/sdk/constructive-react/src/agent/orm/models/platformAgentEvent.ts new file mode 100644 index 0000000000..b9fb61422a --- /dev/null +++ b/sdk/constructive-react/src/agent/orm/models/platformAgentEvent.ts @@ -0,0 +1,245 @@ +/** + * PlatformAgentEvent 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 { + PlatformAgentEvent, + PlatformAgentEventWithRelations, + PlatformAgentEventSelect, + PlatformAgentEventFilter, + PlatformAgentEventOrderBy, + CreatePlatformAgentEventInput, + UpdatePlatformAgentEventInput, + PlatformAgentEventPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformAgentEventModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgentEvents: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformAgentEvent', + 'platformAgentEvents', + 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, + }, + 'PlatformAgentEventFilter', + 'PlatformAgentEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgentEvent', + fieldName: 'platformAgentEvents', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgentEvent: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformAgentEvent', + 'platformAgentEvents', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformAgentEventFilter', + 'PlatformAgentEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgentEvent', + fieldName: 'platformAgentEvent', + document, + variables, + transform: (data: { + platformAgentEvents?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformAgentEvent: data.platformAgentEvents?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgentEvent: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformAgentEvent', + 'platformAgentEvents', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformAgentEventFilter', + 'PlatformAgentEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgentEvent', + fieldName: 'platformAgentEvent', + document, + variables, + transform: (data: { + platformAgentEvents?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformAgentEvent: data.platformAgentEvents?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformAgentEvent: { + platformAgentEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformAgentEvent', + 'createPlatformAgentEvent', + 'platformAgentEvent', + args.select, + args.data, + 'CreatePlatformAgentEventInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgentEvent', + fieldName: 'createPlatformAgentEvent', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformAgentEventPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformAgentEvent: { + platformAgentEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformAgentEvent', + 'updatePlatformAgentEvent', + 'platformAgentEvent', + args.select, + args.where.id, + args.data, + 'UpdatePlatformAgentEventInput', + 'id', + 'platformAgentEventPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgentEvent', + fieldName: 'updatePlatformAgentEvent', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformAgentEvent: { + platformAgentEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformAgentEvent', + 'deletePlatformAgentEvent', + 'platformAgentEvent', + { + id: args.where.id, + }, + 'DeletePlatformAgentEventInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgentEvent', + fieldName: 'deletePlatformAgentEvent', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/agent/orm/models/platformAgentMessage.ts b/sdk/constructive-react/src/agent/orm/models/platformAgentMessage.ts new file mode 100644 index 0000000000..e8187514b3 --- /dev/null +++ b/sdk/constructive-react/src/agent/orm/models/platformAgentMessage.ts @@ -0,0 +1,247 @@ +/** + * PlatformAgentMessage 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 { + PlatformAgentMessage, + PlatformAgentMessageWithRelations, + PlatformAgentMessageSelect, + PlatformAgentMessageFilter, + PlatformAgentMessageOrderBy, + CreatePlatformAgentMessageInput, + UpdatePlatformAgentMessageInput, + PlatformAgentMessagePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformAgentMessageModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgentMessages: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformAgentMessage', + 'platformAgentMessages', + 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, + }, + 'PlatformAgentMessageFilter', + 'PlatformAgentMessageOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgentMessage', + fieldName: 'platformAgentMessages', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgentMessage: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformAgentMessage', + 'platformAgentMessages', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformAgentMessageFilter', + 'PlatformAgentMessageOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgentMessage', + fieldName: 'platformAgentMessage', + document, + variables, + transform: (data: { + platformAgentMessages?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformAgentMessage: data.platformAgentMessages?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgentMessage: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformAgentMessage', + 'platformAgentMessages', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformAgentMessageFilter', + 'PlatformAgentMessageOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgentMessage', + fieldName: 'platformAgentMessage', + document, + variables, + transform: (data: { + platformAgentMessages?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformAgentMessage: data.platformAgentMessages?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformAgentMessage: { + platformAgentMessage: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformAgentMessage', + 'createPlatformAgentMessage', + 'platformAgentMessage', + args.select, + args.data, + 'CreatePlatformAgentMessageInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgentMessage', + fieldName: 'createPlatformAgentMessage', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformAgentMessagePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformAgentMessage: { + platformAgentMessage: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformAgentMessage', + 'updatePlatformAgentMessage', + 'platformAgentMessage', + args.select, + args.where.id, + args.data, + 'UpdatePlatformAgentMessageInput', + 'id', + 'platformAgentMessagePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgentMessage', + fieldName: 'updatePlatformAgentMessage', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformAgentMessage: { + platformAgentMessage: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformAgentMessage', + 'deletePlatformAgentMessage', + 'platformAgentMessage', + { + id: args.where.id, + }, + 'DeletePlatformAgentMessageInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgentMessage', + fieldName: 'deletePlatformAgentMessage', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/agent/orm/models/platformAgentPersona.ts b/sdk/constructive-react/src/agent/orm/models/platformAgentPersona.ts new file mode 100644 index 0000000000..7f78da643b --- /dev/null +++ b/sdk/constructive-react/src/agent/orm/models/platformAgentPersona.ts @@ -0,0 +1,247 @@ +/** + * PlatformAgentPersona 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 { + PlatformAgentPersona, + PlatformAgentPersonaWithRelations, + PlatformAgentPersonaSelect, + PlatformAgentPersonaFilter, + PlatformAgentPersonaOrderBy, + CreatePlatformAgentPersonaInput, + UpdatePlatformAgentPersonaInput, + PlatformAgentPersonaPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformAgentPersonaModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgentPersonas: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformAgentPersona', + 'platformAgentPersonas', + 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, + }, + 'PlatformAgentPersonaFilter', + 'PlatformAgentPersonaOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgentPersona', + fieldName: 'platformAgentPersonas', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgentPersona: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformAgentPersona', + 'platformAgentPersonas', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformAgentPersonaFilter', + 'PlatformAgentPersonaOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgentPersona', + fieldName: 'platformAgentPersona', + document, + variables, + transform: (data: { + platformAgentPersonas?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformAgentPersona: data.platformAgentPersonas?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgentPersona: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformAgentPersona', + 'platformAgentPersonas', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformAgentPersonaFilter', + 'PlatformAgentPersonaOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgentPersona', + fieldName: 'platformAgentPersona', + document, + variables, + transform: (data: { + platformAgentPersonas?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformAgentPersona: data.platformAgentPersonas?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformAgentPersona: { + platformAgentPersona: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformAgentPersona', + 'createPlatformAgentPersona', + 'platformAgentPersona', + args.select, + args.data, + 'CreatePlatformAgentPersonaInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgentPersona', + fieldName: 'createPlatformAgentPersona', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformAgentPersonaPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformAgentPersona: { + platformAgentPersona: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformAgentPersona', + 'updatePlatformAgentPersona', + 'platformAgentPersona', + args.select, + args.where.id, + args.data, + 'UpdatePlatformAgentPersonaInput', + 'id', + 'platformAgentPersonaPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgentPersona', + fieldName: 'updatePlatformAgentPersona', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformAgentPersona: { + platformAgentPersona: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformAgentPersona', + 'deletePlatformAgentPersona', + 'platformAgentPersona', + { + id: args.where.id, + }, + 'DeletePlatformAgentPersonaInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgentPersona', + fieldName: 'deletePlatformAgentPersona', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/agent/orm/models/platformAgentPlan.ts b/sdk/constructive-react/src/agent/orm/models/platformAgentPlan.ts new file mode 100644 index 0000000000..c029b7a96f --- /dev/null +++ b/sdk/constructive-react/src/agent/orm/models/platformAgentPlan.ts @@ -0,0 +1,245 @@ +/** + * PlatformAgentPlan 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 { + PlatformAgentPlan, + PlatformAgentPlanWithRelations, + PlatformAgentPlanSelect, + PlatformAgentPlanFilter, + PlatformAgentPlanOrderBy, + CreatePlatformAgentPlanInput, + UpdatePlatformAgentPlanInput, + PlatformAgentPlanPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformAgentPlanModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgentPlans: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformAgentPlan', + 'platformAgentPlans', + 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, + }, + 'PlatformAgentPlanFilter', + 'PlatformAgentPlanOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgentPlan', + fieldName: 'platformAgentPlans', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgentPlan: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformAgentPlan', + 'platformAgentPlans', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformAgentPlanFilter', + 'PlatformAgentPlanOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgentPlan', + fieldName: 'platformAgentPlan', + document, + variables, + transform: (data: { + platformAgentPlans?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformAgentPlan: data.platformAgentPlans?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgentPlan: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformAgentPlan', + 'platformAgentPlans', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformAgentPlanFilter', + 'PlatformAgentPlanOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgentPlan', + fieldName: 'platformAgentPlan', + document, + variables, + transform: (data: { + platformAgentPlans?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformAgentPlan: data.platformAgentPlans?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformAgentPlan: { + platformAgentPlan: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformAgentPlan', + 'createPlatformAgentPlan', + 'platformAgentPlan', + args.select, + args.data, + 'CreatePlatformAgentPlanInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgentPlan', + fieldName: 'createPlatformAgentPlan', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformAgentPlanPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformAgentPlan: { + platformAgentPlan: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformAgentPlan', + 'updatePlatformAgentPlan', + 'platformAgentPlan', + args.select, + args.where.id, + args.data, + 'UpdatePlatformAgentPlanInput', + 'id', + 'platformAgentPlanPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgentPlan', + fieldName: 'updatePlatformAgentPlan', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformAgentPlan: { + platformAgentPlan: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformAgentPlan', + 'deletePlatformAgentPlan', + 'platformAgentPlan', + { + id: args.where.id, + }, + 'DeletePlatformAgentPlanInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgentPlan', + fieldName: 'deletePlatformAgentPlan', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/agent/orm/models/platformAgentPrompt.ts b/sdk/constructive-react/src/agent/orm/models/platformAgentPrompt.ts new file mode 100644 index 0000000000..3fd42f1d26 --- /dev/null +++ b/sdk/constructive-react/src/agent/orm/models/platformAgentPrompt.ts @@ -0,0 +1,245 @@ +/** + * PlatformAgentPrompt 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 { + PlatformAgentPrompt, + PlatformAgentPromptWithRelations, + PlatformAgentPromptSelect, + PlatformAgentPromptFilter, + PlatformAgentPromptOrderBy, + CreatePlatformAgentPromptInput, + UpdatePlatformAgentPromptInput, + PlatformAgentPromptPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformAgentPromptModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgentPrompts: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformAgentPrompt', + 'platformAgentPrompts', + 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, + }, + 'PlatformAgentPromptFilter', + 'PlatformAgentPromptOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgentPrompt', + fieldName: 'platformAgentPrompts', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgentPrompt: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformAgentPrompt', + 'platformAgentPrompts', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformAgentPromptFilter', + 'PlatformAgentPromptOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgentPrompt', + fieldName: 'platformAgentPrompt', + document, + variables, + transform: (data: { + platformAgentPrompts?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformAgentPrompt: data.platformAgentPrompts?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgentPrompt: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformAgentPrompt', + 'platformAgentPrompts', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformAgentPromptFilter', + 'PlatformAgentPromptOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgentPrompt', + fieldName: 'platformAgentPrompt', + document, + variables, + transform: (data: { + platformAgentPrompts?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformAgentPrompt: data.platformAgentPrompts?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformAgentPrompt: { + platformAgentPrompt: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformAgentPrompt', + 'createPlatformAgentPrompt', + 'platformAgentPrompt', + args.select, + args.data, + 'CreatePlatformAgentPromptInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgentPrompt', + fieldName: 'createPlatformAgentPrompt', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformAgentPromptPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformAgentPrompt: { + platformAgentPrompt: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformAgentPrompt', + 'updatePlatformAgentPrompt', + 'platformAgentPrompt', + args.select, + args.where.id, + args.data, + 'UpdatePlatformAgentPromptInput', + 'id', + 'platformAgentPromptPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgentPrompt', + fieldName: 'updatePlatformAgentPrompt', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformAgentPrompt: { + platformAgentPrompt: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformAgentPrompt', + 'deletePlatformAgentPrompt', + 'platformAgentPrompt', + { + id: args.where.id, + }, + 'DeletePlatformAgentPromptInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgentPrompt', + fieldName: 'deletePlatformAgentPrompt', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/agent/orm/models/platformAgentResource.ts b/sdk/constructive-react/src/agent/orm/models/platformAgentResource.ts new file mode 100644 index 0000000000..fe7b5c666d --- /dev/null +++ b/sdk/constructive-react/src/agent/orm/models/platformAgentResource.ts @@ -0,0 +1,247 @@ +/** + * PlatformAgentResource 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 { + PlatformAgentResource, + PlatformAgentResourceWithRelations, + PlatformAgentResourceSelect, + PlatformAgentResourceFilter, + PlatformAgentResourceOrderBy, + CreatePlatformAgentResourceInput, + UpdatePlatformAgentResourceInput, + PlatformAgentResourcePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformAgentResourceModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgentResources: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformAgentResource', + 'platformAgentResources', + 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, + }, + 'PlatformAgentResourceFilter', + 'PlatformAgentResourceOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgentResource', + fieldName: 'platformAgentResources', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgentResource: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformAgentResource', + 'platformAgentResources', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformAgentResourceFilter', + 'PlatformAgentResourceOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgentResource', + fieldName: 'platformAgentResource', + document, + variables, + transform: (data: { + platformAgentResources?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformAgentResource: data.platformAgentResources?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgentResource: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformAgentResource', + 'platformAgentResources', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformAgentResourceFilter', + 'PlatformAgentResourceOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgentResource', + fieldName: 'platformAgentResource', + document, + variables, + transform: (data: { + platformAgentResources?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformAgentResource: data.platformAgentResources?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformAgentResource: { + platformAgentResource: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformAgentResource', + 'createPlatformAgentResource', + 'platformAgentResource', + args.select, + args.data, + 'CreatePlatformAgentResourceInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgentResource', + fieldName: 'createPlatformAgentResource', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformAgentResourcePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformAgentResource: { + platformAgentResource: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformAgentResource', + 'updatePlatformAgentResource', + 'platformAgentResource', + args.select, + args.where.id, + args.data, + 'UpdatePlatformAgentResourceInput', + 'id', + 'platformAgentResourcePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgentResource', + fieldName: 'updatePlatformAgentResource', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformAgentResource: { + platformAgentResource: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformAgentResource', + 'deletePlatformAgentResource', + 'platformAgentResource', + { + id: args.where.id, + }, + 'DeletePlatformAgentResourceInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgentResource', + fieldName: 'deletePlatformAgentResource', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/agent/orm/models/platformAgentResourceChunk.ts b/sdk/constructive-react/src/agent/orm/models/platformAgentResourceChunk.ts new file mode 100644 index 0000000000..0eb14fdf90 --- /dev/null +++ b/sdk/constructive-react/src/agent/orm/models/platformAgentResourceChunk.ts @@ -0,0 +1,253 @@ +/** + * PlatformAgentResourceChunk 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 { + PlatformAgentResourceChunk, + PlatformAgentResourceChunkWithRelations, + PlatformAgentResourceChunkSelect, + PlatformAgentResourceChunkFilter, + PlatformAgentResourceChunkOrderBy, + CreatePlatformAgentResourceChunkInput, + UpdatePlatformAgentResourceChunkInput, + PlatformAgentResourceChunkPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformAgentResourceChunkModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgentResourceChunks: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformAgentResourceChunk', + 'platformAgentResourceChunks', + 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, + }, + 'PlatformAgentResourceChunkFilter', + 'PlatformAgentResourceChunkOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgentResourceChunk', + fieldName: 'platformAgentResourceChunks', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgentResourceChunk: InferSelectResult< + PlatformAgentResourceChunkWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformAgentResourceChunk', + 'platformAgentResourceChunks', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformAgentResourceChunkFilter', + 'PlatformAgentResourceChunkOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgentResourceChunk', + fieldName: 'platformAgentResourceChunk', + document, + variables, + transform: (data: { + platformAgentResourceChunks?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformAgentResourceChunk: data.platformAgentResourceChunks?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgentResourceChunk: InferSelectResult< + PlatformAgentResourceChunkWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformAgentResourceChunk', + 'platformAgentResourceChunks', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformAgentResourceChunkFilter', + 'PlatformAgentResourceChunkOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgentResourceChunk', + fieldName: 'platformAgentResourceChunk', + document, + variables, + transform: (data: { + platformAgentResourceChunks?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformAgentResourceChunk: data.platformAgentResourceChunks?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformAgentResourceChunk: { + platformAgentResourceChunk: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformAgentResourceChunk', + 'createPlatformAgentResourceChunk', + 'platformAgentResourceChunk', + args.select, + args.data, + 'CreatePlatformAgentResourceChunkInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgentResourceChunk', + fieldName: 'createPlatformAgentResourceChunk', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformAgentResourceChunkPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformAgentResourceChunk: { + platformAgentResourceChunk: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformAgentResourceChunk', + 'updatePlatformAgentResourceChunk', + 'platformAgentResourceChunk', + args.select, + args.where.id, + args.data, + 'UpdatePlatformAgentResourceChunkInput', + 'id', + 'platformAgentResourceChunkPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgentResourceChunk', + fieldName: 'updatePlatformAgentResourceChunk', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformAgentResourceChunk: { + platformAgentResourceChunk: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformAgentResourceChunk', + 'deletePlatformAgentResourceChunk', + 'platformAgentResourceChunk', + { + id: args.where.id, + }, + 'DeletePlatformAgentResourceChunkInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgentResourceChunk', + fieldName: 'deletePlatformAgentResourceChunk', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/agent/orm/models/platformAgentRun.ts b/sdk/constructive-react/src/agent/orm/models/platformAgentRun.ts new file mode 100644 index 0000000000..86de43f916 --- /dev/null +++ b/sdk/constructive-react/src/agent/orm/models/platformAgentRun.ts @@ -0,0 +1,245 @@ +/** + * PlatformAgentRun 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 { + PlatformAgentRun, + PlatformAgentRunWithRelations, + PlatformAgentRunSelect, + PlatformAgentRunFilter, + PlatformAgentRunOrderBy, + CreatePlatformAgentRunInput, + UpdatePlatformAgentRunInput, + PlatformAgentRunPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformAgentRunModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgentRuns: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformAgentRun', + 'platformAgentRuns', + 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, + }, + 'PlatformAgentRunFilter', + 'PlatformAgentRunOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgentRun', + fieldName: 'platformAgentRuns', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgentRun: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformAgentRun', + 'platformAgentRuns', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformAgentRunFilter', + 'PlatformAgentRunOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgentRun', + fieldName: 'platformAgentRun', + document, + variables, + transform: (data: { + platformAgentRuns?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformAgentRun: data.platformAgentRuns?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgentRun: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformAgentRun', + 'platformAgentRuns', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformAgentRunFilter', + 'PlatformAgentRunOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgentRun', + fieldName: 'platformAgentRun', + document, + variables, + transform: (data: { + platformAgentRuns?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformAgentRun: data.platformAgentRuns?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformAgentRun: { + platformAgentRun: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformAgentRun', + 'createPlatformAgentRun', + 'platformAgentRun', + args.select, + args.data, + 'CreatePlatformAgentRunInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgentRun', + fieldName: 'createPlatformAgentRun', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformAgentRunPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformAgentRun: { + platformAgentRun: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformAgentRun', + 'updatePlatformAgentRun', + 'platformAgentRun', + args.select, + args.where.id, + args.data, + 'UpdatePlatformAgentRunInput', + 'id', + 'platformAgentRunPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgentRun', + fieldName: 'updatePlatformAgentRun', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformAgentRun: { + platformAgentRun: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformAgentRun', + 'deletePlatformAgentRun', + 'platformAgentRun', + { + id: args.where.id, + }, + 'DeletePlatformAgentRunInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgentRun', + fieldName: 'deletePlatformAgentRun', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/agent/orm/models/platformAgentRunWorkspace.ts b/sdk/constructive-react/src/agent/orm/models/platformAgentRunWorkspace.ts new file mode 100644 index 0000000000..a948ae7f75 --- /dev/null +++ b/sdk/constructive-react/src/agent/orm/models/platformAgentRunWorkspace.ts @@ -0,0 +1,247 @@ +/** + * PlatformAgentRunWorkspace 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 { + PlatformAgentRunWorkspace, + PlatformAgentRunWorkspaceWithRelations, + PlatformAgentRunWorkspaceSelect, + PlatformAgentRunWorkspaceFilter, + PlatformAgentRunWorkspaceOrderBy, + CreatePlatformAgentRunWorkspaceInput, + UpdatePlatformAgentRunWorkspaceInput, + PlatformAgentRunWorkspacePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformAgentRunWorkspaceModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgentRunWorkspaces: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformAgentRunWorkspace', + 'platformAgentRunWorkspaces', + 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, + }, + 'PlatformAgentRunWorkspaceFilter', + 'PlatformAgentRunWorkspaceOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgentRunWorkspace', + fieldName: 'platformAgentRunWorkspaces', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgentRunWorkspace: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformAgentRunWorkspace', + 'platformAgentRunWorkspaces', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformAgentRunWorkspaceFilter', + 'PlatformAgentRunWorkspaceOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgentRunWorkspace', + fieldName: 'platformAgentRunWorkspace', + document, + variables, + transform: (data: { + platformAgentRunWorkspaces?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformAgentRunWorkspace: data.platformAgentRunWorkspaces?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgentRunWorkspace: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformAgentRunWorkspace', + 'platformAgentRunWorkspaces', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformAgentRunWorkspaceFilter', + 'PlatformAgentRunWorkspaceOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgentRunWorkspace', + fieldName: 'platformAgentRunWorkspace', + document, + variables, + transform: (data: { + platformAgentRunWorkspaces?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformAgentRunWorkspace: data.platformAgentRunWorkspaces?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformAgentRunWorkspace: { + platformAgentRunWorkspace: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformAgentRunWorkspace', + 'createPlatformAgentRunWorkspace', + 'platformAgentRunWorkspace', + args.select, + args.data, + 'CreatePlatformAgentRunWorkspaceInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgentRunWorkspace', + fieldName: 'createPlatformAgentRunWorkspace', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformAgentRunWorkspacePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformAgentRunWorkspace: { + platformAgentRunWorkspace: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformAgentRunWorkspace', + 'updatePlatformAgentRunWorkspace', + 'platformAgentRunWorkspace', + args.select, + args.where.id, + args.data, + 'UpdatePlatformAgentRunWorkspaceInput', + 'id', + 'platformAgentRunWorkspacePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgentRunWorkspace', + fieldName: 'updatePlatformAgentRunWorkspace', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformAgentRunWorkspace: { + platformAgentRunWorkspace: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformAgentRunWorkspace', + 'deletePlatformAgentRunWorkspace', + 'platformAgentRunWorkspace', + { + id: args.where.id, + }, + 'DeletePlatformAgentRunWorkspaceInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgentRunWorkspace', + fieldName: 'deletePlatformAgentRunWorkspace', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/agent/orm/models/platformAgentTask.ts b/sdk/constructive-react/src/agent/orm/models/platformAgentTask.ts new file mode 100644 index 0000000000..a71fb03e7b --- /dev/null +++ b/sdk/constructive-react/src/agent/orm/models/platformAgentTask.ts @@ -0,0 +1,245 @@ +/** + * PlatformAgentTask 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 { + PlatformAgentTask, + PlatformAgentTaskWithRelations, + PlatformAgentTaskSelect, + PlatformAgentTaskFilter, + PlatformAgentTaskOrderBy, + CreatePlatformAgentTaskInput, + UpdatePlatformAgentTaskInput, + PlatformAgentTaskPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformAgentTaskModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgentTasks: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformAgentTask', + 'platformAgentTasks', + 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, + }, + 'PlatformAgentTaskFilter', + 'PlatformAgentTaskOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgentTask', + fieldName: 'platformAgentTasks', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgentTask: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformAgentTask', + 'platformAgentTasks', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformAgentTaskFilter', + 'PlatformAgentTaskOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgentTask', + fieldName: 'platformAgentTask', + document, + variables, + transform: (data: { + platformAgentTasks?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformAgentTask: data.platformAgentTasks?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgentTask: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformAgentTask', + 'platformAgentTasks', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformAgentTaskFilter', + 'PlatformAgentTaskOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgentTask', + fieldName: 'platformAgentTask', + document, + variables, + transform: (data: { + platformAgentTasks?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformAgentTask: data.platformAgentTasks?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformAgentTask: { + platformAgentTask: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformAgentTask', + 'createPlatformAgentTask', + 'platformAgentTask', + args.select, + args.data, + 'CreatePlatformAgentTaskInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgentTask', + fieldName: 'createPlatformAgentTask', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformAgentTaskPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformAgentTask: { + platformAgentTask: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformAgentTask', + 'updatePlatformAgentTask', + 'platformAgentTask', + args.select, + args.where.id, + args.data, + 'UpdatePlatformAgentTaskInput', + 'id', + 'platformAgentTaskPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgentTask', + fieldName: 'updatePlatformAgentTask', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformAgentTask: { + platformAgentTask: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformAgentTask', + 'deletePlatformAgentTask', + 'platformAgentTask', + { + id: args.where.id, + }, + 'DeletePlatformAgentTaskInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgentTask', + fieldName: 'deletePlatformAgentTask', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/agent/orm/models/platformAgentThread.ts b/sdk/constructive-react/src/agent/orm/models/platformAgentThread.ts new file mode 100644 index 0000000000..7738100a6e --- /dev/null +++ b/sdk/constructive-react/src/agent/orm/models/platformAgentThread.ts @@ -0,0 +1,245 @@ +/** + * PlatformAgentThread 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 { + PlatformAgentThread, + PlatformAgentThreadWithRelations, + PlatformAgentThreadSelect, + PlatformAgentThreadFilter, + PlatformAgentThreadOrderBy, + CreatePlatformAgentThreadInput, + UpdatePlatformAgentThreadInput, + PlatformAgentThreadPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformAgentThreadModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgentThreads: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformAgentThread', + 'platformAgentThreads', + 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, + }, + 'PlatformAgentThreadFilter', + 'PlatformAgentThreadOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgentThread', + fieldName: 'platformAgentThreads', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgentThread: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformAgentThread', + 'platformAgentThreads', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformAgentThreadFilter', + 'PlatformAgentThreadOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgentThread', + fieldName: 'platformAgentThread', + document, + variables, + transform: (data: { + platformAgentThreads?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformAgentThread: data.platformAgentThreads?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgentThread: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformAgentThread', + 'platformAgentThreads', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformAgentThreadFilter', + 'PlatformAgentThreadOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgentThread', + fieldName: 'platformAgentThread', + document, + variables, + transform: (data: { + platformAgentThreads?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformAgentThread: data.platformAgentThreads?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformAgentThread: { + platformAgentThread: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformAgentThread', + 'createPlatformAgentThread', + 'platformAgentThread', + args.select, + args.data, + 'CreatePlatformAgentThreadInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgentThread', + fieldName: 'createPlatformAgentThread', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformAgentThreadPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformAgentThread: { + platformAgentThread: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformAgentThread', + 'updatePlatformAgentThread', + 'platformAgentThread', + args.select, + args.where.id, + args.data, + 'UpdatePlatformAgentThreadInput', + 'id', + 'platformAgentThreadPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgentThread', + fieldName: 'updatePlatformAgentThread', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformAgentThread: { + platformAgentThread: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformAgentThread', + 'deletePlatformAgentThread', + 'platformAgentThread', + { + id: args.where.id, + }, + 'DeletePlatformAgentThreadInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgentThread', + fieldName: 'deletePlatformAgentThread', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/agent/orm/mutation/index.ts b/sdk/constructive-react/src/agent/orm/mutation/index.ts index 989afbcbd6..5491e16cd0 100644 --- a/sdk/constructive-react/src/agent/orm/mutation/index.ts +++ b/sdk/constructive-react/src/agent/orm/mutation/index.ts @@ -14,10 +14,11 @@ import type { import { connectionFieldsMap } from '../input-types'; /** * Variables for provisionBucket - * 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. + * Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. */ export interface ProvisionBucketVariables { input: ProvisionBucketInput; diff --git a/sdk/constructive-react/src/agent/schema-types.ts b/sdk/constructive-react/src/agent/schema-types.ts index e9eda96232..4fe584320c 100644 --- a/sdk/constructive-react/src/agent/schema-types.ts +++ b/sdk/constructive-react/src/agent/schema-types.ts @@ -14,6 +14,18 @@ import type { AgentResourceChunk, AgentTask, AgentThread, + PlatformAgent, + PlatformAgentEvent, + PlatformAgentMessage, + PlatformAgentPersona, + PlatformAgentPlan, + PlatformAgentPrompt, + PlatformAgentResource, + PlatformAgentResourceChunk, + PlatformAgentRun, + PlatformAgentRunWorkspace, + PlatformAgentTask, + PlatformAgentThread, BigFloatFilter, BigIntFilter, BitStringFilter, @@ -46,6 +58,8 @@ export type AgentMessageOrderBy = | 'DATABASE_ID_DESC' | 'ID_ASC' | 'ID_DESC' + | 'KIND_ASC' + | 'KIND_DESC' | 'MODEL_ASC' | 'MODEL_DESC' | 'NATURAL' @@ -56,7 +70,9 @@ export type AgentMessageOrderBy = | 'THREAD_ID_ASC' | 'THREAD_ID_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; + | 'UPDATED_AT_DESC' + | 'VISIBILITY_ASC' + | 'VISIBILITY_DESC'; /** Methods to use when ordering `Agent`. */ export type AgentOrderBy = | 'CONFIG_ASC' @@ -94,6 +110,8 @@ export type AgentPersonaOrderBy = | 'CREATED_AT_DESC' | 'CREATED_BY_ASC' | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'DESCRIPTION_ASC' @@ -116,7 +134,9 @@ export type AgentPersonaOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC'; + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; /** Methods to use when ordering `AgentPlan`. */ export type AgentPlanOrderBy = | 'CREATED_AT_ASC' @@ -139,7 +159,9 @@ export type AgentPlanOrderBy = | 'TITLE_ASC' | 'TITLE_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; + | 'UPDATED_AT_DESC' + | 'VISIBILITY_ASC' + | 'VISIBILITY_DESC'; /** Methods to use when ordering `AgentPrompt`. */ export type AgentPromptOrderBy = | 'CONTENT_ASC' @@ -148,6 +170,8 @@ export type AgentPromptOrderBy = | 'CREATED_AT_DESC' | 'CREATED_BY_ASC' | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'DESCRIPTION_ASC' @@ -166,7 +190,9 @@ export type AgentPromptOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC'; + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; /** Methods to use when ordering `AgentResourceChunk`. */ export type AgentResourceChunkOrderBy = | 'AGENT_RESOURCE_ID_ASC' @@ -177,6 +203,8 @@ export type AgentResourceChunkOrderBy = | 'CHUNK_INDEX_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' | 'EMBEDDING_ASC' | 'EMBEDDING_DESC' | 'EMBEDDING_VECTOR_DISTANCE_ASC' @@ -204,6 +232,8 @@ export type AgentResourceOrderBy = | 'CREATED_AT_DESC' | 'CREATED_BY_ASC' | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'DESCRIPTION_ASC' @@ -248,7 +278,9 @@ export type AgentResourceOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC'; + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; /** Methods to use when ordering `AgentTask`. */ export type AgentTaskOrderBy = | 'ACTOR_ID_ASC' @@ -285,7 +317,9 @@ export type AgentTaskOrderBy = | 'STATUS_ASC' | 'STATUS_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; + | 'UPDATED_AT_DESC' + | 'VISIBILITY_ASC' + | 'VISIBILITY_DESC'; /** Methods to use when ordering `AgentThread`. */ export type AgentThreadOrderBy = | 'AGENT_ID_ASC' @@ -322,201 +356,1886 @@ export type AgentThreadOrderBy = | 'TITLE_ASC' | 'TITLE_DESC' | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'VISIBILITY_ASC' + | 'VISIBILITY_DESC'; +/** Methods to use when ordering `PlatformAgentEvent`. */ +export type PlatformAgentEventOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ENTRY_ASC' + | 'ENTRY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'RECORDED_AT_ASC' + | 'RECORDED_AT_DESC' + | 'RUN_ID_ASC' + | 'RUN_ID_DESC' + | 'SEQ_ASC' + | 'SEQ_DESC' + | 'TRANSCRIPT_FORMAT_ASC' + | 'TRANSCRIPT_FORMAT_DESC' + | 'TRANSCRIPT_VERSION_ASC' + | 'TRANSCRIPT_VERSION_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'VISIBILITY_ASC' + | 'VISIBILITY_DESC'; +/** Methods to use when ordering `PlatformAgentMessage`. */ +export type PlatformAgentMessageOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'AGENT_ID_ASC' + | 'AGENT_ID_DESC' + | 'AUTHOR_ROLE_ASC' + | 'AUTHOR_ROLE_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DELIVERED_RUN_ID_ASC' + | 'DELIVERED_RUN_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'KIND_ASC' + | 'KIND_DESC' + | 'MODEL_ASC' + | 'MODEL_DESC' + | 'NATURAL' + | 'PARTS_ASC' + | 'PARTS_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'THREAD_ID_ASC' + | 'THREAD_ID_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'VISIBILITY_ASC' + | 'VISIBILITY_DESC'; +/** Methods to use when ordering `PlatformAgent`. */ +export type PlatformAgentOrderBy = + | 'CONFIG_ASC' + | 'CONFIG_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_EPHEMERAL_ASC' + | 'IS_EPHEMERAL_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'PARENT_ID_ASC' + | 'PARENT_ID_DESC' + | 'PERSONA_ID_ASC' + | 'PERSONA_ID_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'SYSTEM_PROMPT_ASC' + | 'SYSTEM_PROMPT_DESC' + | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -/** Similarity metric for vector search */ -export type VectorMetric = 'COSINE' | 'IP' | 'L2'; -/** A filter to be used against `Agent` object types. All fields are combined with a logical ‘and.’ */ -export interface AgentFilter { - /** Filter by the object’s `agentMessages` relation. */ - agentMessages?: AgentToManyAgentMessageFilter; - /** `agentMessages` exist. */ - agentMessagesExist?: boolean; - /** Filter by the object’s `agentThreads` relation. */ - agentThreads?: AgentToManyAgentThreadFilter; - /** `agentThreads` exist. */ - agentThreadsExist?: boolean; - /** Checks for all expressions in this list. */ - and?: AgentFilter[]; - /** Filter by the object’s `childAgents` relation. */ - childAgents?: AgentToManyAgentFilter; - /** `childAgents` exist. */ - childAgentsExist?: boolean; - /** Filter by the object’s `config` field. */ - config?: 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; - /** Filter by the object’s `isEphemeral` field. */ - isEphemeral?: BooleanFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Negates the expression. */ - not?: AgentFilter; - /** Checks for any expressions in this list. */ - or?: AgentFilter[]; - /** Filter by the object’s `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `parent` relation. */ - parent?: AgentFilter; - /** A related `parent` exists. */ - parentExists?: boolean; - /** Filter by the object’s `parentId` field. */ - parentId?: UUIDFilter; - /** Filter by the object’s `persona` relation. */ - persona?: AgentPersonaFilter; - /** A related `persona` exists. */ - personaExists?: boolean; - /** Filter by the object’s `personaId` field. */ - personaId?: UUIDFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `systemPrompt` field. */ - systemPrompt?: StringFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -/** An input for mutations affecting `Agent` */ -export interface AgentInput { - /** Per-instance config overrides (model, temperature, tools) */ - config?: unknown; - createdAt?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - id?: string; - /** If true, agent is deleted when its spawning thread is deleted */ - isEphemeral?: boolean; - /** Display name for this agent instance */ - name: string; - /** Human who owns/manages this agent */ - ownerId?: string; - /** Parent agent (for sub-agent delegation hierarchy) */ - parentId?: string; - /** Persona template this agent was created from */ - personaId?: string; - /** Agent lifecycle status: active, paused, terminated */ - status?: string; - /** System prompt override (NULL = inherit from persona) */ - systemPrompt?: string; - updatedAt?: string; -} -/** A filter to be used against `AgentMessage` object types. All fields are combined with a logical ‘and.’ */ -export interface AgentMessageFilter { - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `agent` relation. */ - agent?: AgentFilter; - /** A related `agent` exists. */ - agentExists?: boolean; - /** Filter by the object’s `agentId` field. */ - agentId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: AgentMessageFilter[]; - /** Filter by the object’s `authorRole` field. */ - authorRole?: StringFilter; - /** 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 `model` field. */ - model?: StringFilter; - /** Negates the expression. */ - not?: AgentMessageFilter; - /** Checks for any expressions in this list. */ - or?: AgentMessageFilter[]; - /** Filter by the object’s `parts` field. */ - parts?: JSONFilter; - /** Filter by the object’s `thread` relation. */ - thread?: AgentThreadFilter; - /** Filter by the object’s `threadId` field. */ - threadId?: UUIDFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -/** An input for mutations affecting `AgentMessage` */ -export interface AgentMessageInput { - /** User who authored this message */ - actorId?: string; - /** Agent that authored this message (NULL for human messages) */ - agentId?: string; - /** Who authored this message: user or assistant */ - authorRole: string; - createdAt?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - id?: string; - /** LLM model that generated this response */ - model?: string; - /** Message content: TextPart and ToolPart array */ - parts?: unknown; - /** Foreign key to agent_thread */ - threadId: string; - updatedAt?: string; -} -/** Represents an update to a `AgentMessage`. Fields that are set will be updated. */ -export interface AgentMessagePatch { - /** User who authored this message */ - actorId?: string; - /** Agent that authored this message (NULL for human messages) */ - agentId?: string; - /** Who authored this message: user or assistant */ - authorRole?: string; - createdAt?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId?: string; - id?: string; - /** LLM model that generated this response */ - model?: string; - /** Message content: TextPart and ToolPart array */ - parts?: unknown; - /** Foreign key to agent_thread */ - threadId?: string; - updatedAt?: string; -} -/** Represents an update to a `Agent`. Fields that are set will be updated. */ -export interface AgentPatch { - /** Per-instance config overrides (model, temperature, tools) */ - config?: unknown; - createdAt?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId?: string; - id?: string; - /** If true, agent is deleted when its spawning thread is deleted */ - isEphemeral?: boolean; - /** Display name for this agent instance */ - name?: string; - /** Human who owns/manages this agent */ - ownerId?: string; - /** Parent agent (for sub-agent delegation hierarchy) */ - parentId?: string; - /** Persona template this agent was created from */ - personaId?: string; - /** Agent lifecycle status: active, paused, terminated */ - status?: string; - /** System prompt override (NULL = inherit from persona) */ - systemPrompt?: string; - updatedAt?: string; -} -/** A filter to be used against `AgentPersona` object types. All fields are combined with a logical ‘and.’ */ -export interface AgentPersonaFilter { - /** Filter by the object’s `agentsByPersonaId` relation. */ - agentsByPersonaId?: AgentPersonaToManyAgentFilter; - /** `agentsByPersonaId` exist. */ - agentsByPersonaIdExist?: boolean; - /** Checks for all expressions in this list. */ - and?: AgentPersonaFilter[]; - /** Filter by the object’s `config` field. */ +/** Methods to use when ordering `PlatformAgentPersona`. */ +export type PlatformAgentPersonaOrderBy = + | 'CONFIG_ASC' + | 'CONFIG_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_ACTIVE_ASC' + | 'IS_ACTIVE_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'RESOURCES_ASC' + | 'RESOURCES_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'SYSTEM_PROMPT_ASC' + | 'SYSTEM_PROMPT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +/** Methods to use when ordering `PlatformAgentPlan`. */ +export type PlatformAgentPlanOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'THREAD_ID_ASC' + | 'THREAD_ID_DESC' + | 'TITLE_ASC' + | 'TITLE_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'VISIBILITY_ASC' + | 'VISIBILITY_DESC'; +/** Methods to use when ordering `PlatformAgentPrompt`. */ +export type PlatformAgentPromptOrderBy = + | 'CONTENT_ASC' + | 'CONTENT_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_DEFAULT_ASC' + | 'IS_DEFAULT_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +/** Methods to use when ordering `PlatformAgentResourceChunk`. */ +export type PlatformAgentResourceChunkOrderBy = + | 'BODY_ASC' + | 'BODY_DESC' + | 'CHUNK_INDEX_ASC' + | 'CHUNK_INDEX_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'EMBEDDING_ASC' + | 'EMBEDDING_DESC' + | 'EMBEDDING_VECTOR_DISTANCE_ASC' + | 'EMBEDDING_VECTOR_DISTANCE_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'NATURAL' + | 'PLATFORM_AGENT_RESOURCE_ID_ASC' + | 'PLATFORM_AGENT_RESOURCE_ID_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'SEARCH_SCORE_ASC' + | 'SEARCH_SCORE_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `PlatformAgentResource`. */ +export type PlatformAgentResourceOrderBy = + | 'ARCHIVED_AT_ASC' + | 'ARCHIVED_AT_DESC' + | 'BODY_ASC' + | 'BODY_DESC' + | 'BODY_TRGM_SIMILARITY_ASC' + | 'BODY_TRGM_SIMILARITY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'DESCRIPTION_TRGM_SIMILARITY_ASC' + | 'DESCRIPTION_TRGM_SIMILARITY_DESC' + | 'EMBEDDING_ASC' + | 'EMBEDDING_DESC' + | 'EMBEDDING_UPDATED_AT_ASC' + | 'EMBEDDING_UPDATED_AT_DESC' + | 'EMBEDDING_VECTOR_DISTANCE_ASC' + | 'EMBEDDING_VECTOR_DISTANCE_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_ACTIVE_ASC' + | 'IS_ACTIVE_DESC' + | 'IS_ARCHIVED_ASC' + | 'IS_ARCHIVED_DESC' + | 'KEYWORDS_ASC' + | 'KEYWORDS_DESC' + | 'KIND_ASC' + | 'KIND_DESC' + | 'KIND_TRGM_SIMILARITY_ASC' + | 'KIND_TRGM_SIMILARITY_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'SEARCH_ASC' + | 'SEARCH_DESC' + | 'SEARCH_SCORE_ASC' + | 'SEARCH_SCORE_DESC' + | 'SEARCH_TSV_RANK_ASC' + | 'SEARCH_TSV_RANK_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'TITLE_ASC' + | 'TITLE_DESC' + | 'TITLE_TRGM_SIMILARITY_ASC' + | 'TITLE_TRGM_SIMILARITY_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +/** Methods to use when ordering `PlatformAgentRun`. */ +export type PlatformAgentRunOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'ARTIFACTS_ASC' + | 'ARTIFACTS_DESC' + | 'ATTEMPT_ASC' + | 'ATTEMPT_DESC' + | 'BASE_COMMIT_ASC' + | 'BASE_COMMIT_DESC' + | 'BRANCH_ASC' + | 'BRANCH_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DEADLINE_AT_ASC' + | 'DEADLINE_AT_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'ERROR_ASC' + | 'ERROR_DESC' + | 'EXECUTION_ID_ASC' + | 'EXECUTION_ID_DESC' + | 'FINISHED_AT_ASC' + | 'FINISHED_AT_DESC' + | 'HEAD_COMMIT_ASC' + | 'HEAD_COMMIT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'LAST_EVENT_SEQ_ASC' + | 'LAST_EVENT_SEQ_DESC' + | 'NATURAL' + | 'PARENT_RUN_ID_ASC' + | 'PARENT_RUN_ID_DESC' + | 'PLACEMENT_ASC' + | 'PLACEMENT_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PRINCIPAL_ID_ASC' + | 'PRINCIPAL_ID_DESC' + | 'REPO_URL_ASC' + | 'REPO_URL_DESC' + | 'STARTED_AT_ASC' + | 'STARTED_AT_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'THREAD_ID_ASC' + | 'THREAD_ID_DESC' + | 'TOKEN_USAGE_ASC' + | 'TOKEN_USAGE_DESC' + | 'TOTAL_COST_ASC' + | 'TOTAL_COST_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'VISIBILITY_ASC' + | 'VISIBILITY_DESC'; +/** Methods to use when ordering `PlatformAgentRunWorkspace`. */ +export type PlatformAgentRunWorkspaceOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'ARTIFACTS_ASC' + | 'ARTIFACTS_DESC' + | 'BASE_BRANCH_ASC' + | 'BASE_BRANCH_DESC' + | 'BASE_COMMIT_ASC' + | 'BASE_COMMIT_DESC' + | 'BRANCH_ASC' + | 'BRANCH_DESC' + | 'CLONED_AT_ASC' + | 'CLONED_AT_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'HEAD_COMMIT_ASC' + | 'HEAD_COMMIT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'LAST_USED_AT_ASC' + | 'LAST_USED_AT_DESC' + | 'NATURAL' + | 'ORDINAL_ASC' + | 'ORDINAL_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PROVIDER_ASC' + | 'PROVIDER_DESC' + | 'PUBLICATION_ASC' + | 'PUBLICATION_DESC' + | 'REPOSITORY_ID_ASC' + | 'REPOSITORY_ID_DESC' + | 'REPO_ASC' + | 'REPO_DESC' + | 'RUN_ID_ASC' + | 'RUN_ID_DESC' + | 'STATE_ASC' + | 'STATE_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'VISIBILITY_ASC' + | 'VISIBILITY_DESC'; +/** Methods to use when ordering `PlatformAgentTask`. */ +export type PlatformAgentTaskOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'APPROVAL_FEEDBACK_ASC' + | 'APPROVAL_FEEDBACK_DESC' + | 'APPROVAL_STATUS_ASC' + | 'APPROVAL_STATUS_DESC' + | 'APPROVED_AT_ASC' + | 'APPROVED_AT_DESC' + | 'APPROVED_BY_ASC' + | 'APPROVED_BY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'ERROR_ASC' + | 'ERROR_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' + | 'ORDER_INDEX_ASC' + | 'ORDER_INDEX_DESC' + | 'PLAN_ID_ASC' + | 'PLAN_ID_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'REQUIRES_APPROVAL_ASC' + | 'REQUIRES_APPROVAL_DESC' + | 'SOURCE_ASC' + | 'SOURCE_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'VISIBILITY_ASC' + | 'VISIBILITY_DESC'; +/** Methods to use when ordering `PlatformAgentThread`. */ +export type PlatformAgentThreadOrderBy = + | 'AGENT_ID_ASC' + | 'AGENT_ID_DESC' + | 'ARCHIVED_AT_ASC' + | 'ARCHIVED_AT_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_ARCHIVED_ASC' + | 'IS_ARCHIVED_DESC' + | 'MODEL_ASC' + | 'MODEL_DESC' + | 'MODE_ASC' + | 'MODE_DESC' + | 'NATURAL' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'PARENT_THREAD_ID_ASC' + | 'PARENT_THREAD_ID_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PROMPT_TEMPLATE_ID_ASC' + | 'PROMPT_TEMPLATE_ID_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'SYSTEM_PROMPT_ASC' + | 'SYSTEM_PROMPT_DESC' + | 'TAGS_ASC' + | 'TAGS_DESC' + | 'TITLE_ASC' + | 'TITLE_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'VISIBILITY_ASC' + | 'VISIBILITY_DESC'; +/** Similarity metric for vector search */ +export type VectorMetric = 'COSINE' | 'IP' | 'L2'; +/** A filter to be used against `Agent` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentFilter { + /** Filter by the object’s `agentMessages` relation. */ + agentMessages?: AgentToManyAgentMessageFilter; + /** `agentMessages` exist. */ + agentMessagesExist?: boolean; + /** Filter by the object’s `agentThreads` relation. */ + agentThreads?: AgentToManyAgentThreadFilter; + /** `agentThreads` exist. */ + agentThreadsExist?: boolean; + /** Checks for all expressions in this list. */ + and?: AgentFilter[]; + /** Filter by the object’s `childAgents` relation. */ + childAgents?: AgentToManyAgentFilter; + /** `childAgents` exist. */ + childAgentsExist?: boolean; + /** Filter by the object’s `config` field. */ + config?: 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; + /** Filter by the object’s `isEphemeral` field. */ + isEphemeral?: BooleanFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: AgentFilter; + /** Checks for any expressions in this list. */ + or?: AgentFilter[]; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `parent` relation. */ + parent?: AgentFilter; + /** A related `parent` exists. */ + parentExists?: boolean; + /** Filter by the object’s `parentId` field. */ + parentId?: UUIDFilter; + /** Filter by the object’s `persona` relation. */ + persona?: AgentPersonaFilter; + /** A related `persona` exists. */ + personaExists?: boolean; + /** Filter by the object’s `personaId` field. */ + personaId?: UUIDFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `systemPrompt` field. */ + systemPrompt?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} +/** An input for mutations affecting `Agent` */ +export interface AgentInput { + /** Per-instance config overrides (model, temperature, tools) */ + config?: unknown; + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + id?: string; + /** If true, agent is deleted when its spawning thread is deleted */ + isEphemeral?: boolean; + /** Display name for this agent instance */ + name: string; + /** Human who owns/manages this agent */ + ownerId?: string; + /** Parent agent (for sub-agent delegation hierarchy) */ + parentId?: string; + /** Persona template this agent was created from */ + personaId?: string; + /** Agent lifecycle status: active, paused, terminated */ + status?: string; + /** System prompt override (NULL = inherit from persona) */ + systemPrompt?: string; + updatedAt?: string; +} +/** A filter to be used against `AgentMessage` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentMessageFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `agent` relation. */ + agent?: AgentFilter; + /** A related `agent` exists. */ + agentExists?: boolean; + /** Filter by the object’s `agentId` field. */ + agentId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: AgentMessageFilter[]; + /** Filter by the object’s `authorRole` field. */ + authorRole?: StringFilter; + /** 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 `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `model` field. */ + model?: StringFilter; + /** Negates the expression. */ + not?: AgentMessageFilter; + /** Checks for any expressions in this list. */ + or?: AgentMessageFilter[]; + /** Filter by the object’s `parts` field. */ + parts?: JSONFilter; + /** Filter by the object’s `thread` relation. */ + thread?: AgentThreadFilter; + /** Filter by the object’s `threadId` field. */ + threadId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `visibility` field. */ + visibility?: StringFilter; +} +/** An input for mutations affecting `AgentMessage` */ +export interface AgentMessageInput { + /** User who authored this message */ + actorId?: string; + /** Agent that authored this message (NULL for human messages) */ + agentId?: string; + /** Who authored this message: user or assistant */ + authorRole: string; + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + id?: string; + /** Turn kind: user, assistant, system, or interrupt (arrived mid-run and redirects it) */ + kind?: string; + /** LLM model that generated this response */ + model?: string; + /** Message content: TextPart and ToolPart array */ + parts?: unknown; + /** Foreign key to agent_thread */ + threadId: string; + updatedAt?: string; + /** Who may read this message, inherited from the thread */ + visibility?: string; +} +/** Represents an update to a `AgentMessage`. Fields that are set will be updated. */ +export interface AgentMessagePatch { + /** User who authored this message */ + actorId?: string; + /** Agent that authored this message (NULL for human messages) */ + agentId?: string; + /** Who authored this message: user or assistant */ + authorRole?: string; + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string; + id?: string; + /** Turn kind: user, assistant, system, or interrupt (arrived mid-run and redirects it) */ + kind?: string; + /** LLM model that generated this response */ + model?: string; + /** Message content: TextPart and ToolPart array */ + parts?: unknown; + /** Foreign key to agent_thread */ + threadId?: string; + updatedAt?: string; + /** Who may read this message, inherited from the thread */ + visibility?: string; +} +/** Represents an update to a `Agent`. Fields that are set will be updated. */ +export interface AgentPatch { + /** Per-instance config overrides (model, temperature, tools) */ + config?: unknown; + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string; + id?: string; + /** If true, agent is deleted when its spawning thread is deleted */ + isEphemeral?: boolean; + /** Display name for this agent instance */ + name?: string; + /** Human who owns/manages this agent */ + ownerId?: string; + /** Parent agent (for sub-agent delegation hierarchy) */ + parentId?: string; + /** Persona template this agent was created from */ + personaId?: string; + /** Agent lifecycle status: active, paused, terminated */ + status?: string; + /** System prompt override (NULL = inherit from persona) */ + systemPrompt?: string; + updatedAt?: string; +} +/** A filter to be used against `AgentPersona` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentPersonaFilter { + /** Filter by the object’s `agentsByPersonaId` relation. */ + agentsByPersonaId?: AgentPersonaToManyAgentFilter; + /** `agentsByPersonaId` exist. */ + agentsByPersonaIdExist?: boolean; + /** Checks for all expressions in this list. */ + and?: AgentPersonaFilter[]; + /** Filter by the object’s `config` field. */ + config?: JSONFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `description` field. */ + description?: 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?: AgentPersonaFilter; + /** Checks for any expressions in this list. */ + or?: AgentPersonaFilter[]; + /** Filter by the object’s `resources` field. */ + resources?: StringListFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `systemPrompt` field. */ + systemPrompt?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} +/** An input for mutations affecting `AgentPersona` */ +export interface AgentPersonaInput { + /** Model preferences, temperature, tool access, constraints */ + config?: unknown; + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Brief description of this persona role */ + description?: string; + id?: string; + /** Whether this persona is available for use */ + isActive?: boolean; + /** Display name for this persona */ + name: string; + /** Slugs of agent_resource entries to link when spawning */ + resources?: string[]; + /** Unique human-readable identifier for this persona */ + slug: string; + /** Default system prompt for agents using this persona */ + systemPrompt?: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; +} +/** Represents an update to a `AgentPersona`. Fields that are set will be updated. */ +export interface AgentPersonaPatch { + /** Model preferences, temperature, tool access, constraints */ + config?: unknown; + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string; + /** Brief description of this persona role */ + description?: string; + id?: string; + /** Whether this persona is available for use */ + isActive?: boolean; + /** Display name for this persona */ + name?: string; + /** Slugs of agent_resource entries to link when spawning */ + resources?: string[]; + /** Unique human-readable identifier for this persona */ + slug?: string; + /** Default system prompt for agents using this persona */ + systemPrompt?: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; +} +/** A filter to be used against many `Agent` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentPersonaToManyAgentFilter { + /** Filters to entities where every related entity matches. */ + every?: AgentFilter; + /** Filters to entities where no related entity matches. */ + none?: AgentFilter; + /** Filters to entities where at least one related entity matches. */ + some?: AgentFilter; +} +/** A filter to be used against `AgentPlan` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentPlanFilter { + /** Filter by the object’s `agentTasksByPlanId` relation. */ + agentTasksByPlanId?: AgentPlanToManyAgentTaskFilter; + /** `agentTasksByPlanId` exist. */ + agentTasksByPlanIdExist?: boolean; + /** Checks for all expressions in this list. */ + and?: AgentPlanFilter[]; + /** 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 `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: AgentPlanFilter; + /** Checks for any expressions in this list. */ + or?: AgentPlanFilter[]; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `thread` relation. */ + thread?: AgentThreadFilter; + /** Filter by the object’s `threadId` field. */ + threadId?: UUIDFilter; + /** Filter by the object’s `title` field. */ + title?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `visibility` field. */ + visibility?: StringFilter; +} +/** An input for mutations affecting `AgentPlan` */ +export interface AgentPlanInput { + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Overall goal or context for this plan */ + description?: string; + id?: string; + /** User who owns this plan */ + ownerId?: string; + /** Plan lifecycle: draft, active, completed, failed, cancelled */ + status?: string; + /** Foreign key to agent_thread */ + threadId: string; + /** Human-readable plan name */ + title: string; + updatedAt?: string; + /** Who may read this plan, inherited from the thread */ + visibility?: string; +} +/** Represents an update to a `AgentPlan`. Fields that are set will be updated. */ +export interface AgentPlanPatch { + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string; + /** Overall goal or context for this plan */ + description?: string; + id?: string; + /** User who owns this plan */ + ownerId?: string; + /** Plan lifecycle: draft, active, completed, failed, cancelled */ + status?: string; + /** Foreign key to agent_thread */ + threadId?: string; + /** Human-readable plan name */ + title?: string; + updatedAt?: string; + /** Who may read this plan, inherited from the thread */ + visibility?: string; +} +/** A filter to be used against many `AgentTask` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentPlanToManyAgentTaskFilter { + /** Filters to entities where every related entity matches. */ + every?: AgentTaskFilter; + /** Filters to entities where no related entity matches. */ + none?: AgentTaskFilter; + /** Filters to entities where at least one related entity matches. */ + some?: AgentTaskFilter; +} +/** A filter to be used against `AgentPrompt` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentPromptFilter { + /** Filter by the object’s `agentThreadsByPromptTemplateId` relation. */ + agentThreadsByPromptTemplateId?: AgentPromptToManyAgentThreadFilter; + /** `agentThreadsByPromptTemplateId` exist. */ + agentThreadsByPromptTemplateIdExist?: boolean; + /** Checks for all expressions in this list. */ + and?: AgentPromptFilter[]; + /** Filter by the object’s `content` field. */ + content?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isDefault` field. */ + isDefault?: BooleanFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: AgentPromptFilter; + /** Checks for any expressions in this list. */ + or?: AgentPromptFilter[]; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} +/** An input for mutations affecting `AgentPrompt` */ +export interface AgentPromptInput { + /** The system prompt template content */ + content: string; + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** What this prompt template is for */ + description?: string; + id?: string; + /** Whether this is the default prompt for the entity/app */ + isDefault?: boolean; + /** Variables, tags, category metadata */ + metadata?: unknown; + /** Unique name for lookup (e.g. default, code-review, sales-assistant) */ + name: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; +} +/** Represents an update to a `AgentPrompt`. Fields that are set will be updated. */ +export interface AgentPromptPatch { + /** The system prompt template content */ + content?: string; + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string; + /** What this prompt template is for */ + description?: string; + id?: string; + /** Whether this is the default prompt for the entity/app */ + isDefault?: boolean; + /** Variables, tags, category metadata */ + metadata?: unknown; + /** Unique name for lookup (e.g. default, code-review, sales-assistant) */ + name?: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; +} +/** A filter to be used against many `AgentThread` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentPromptToManyAgentThreadFilter { + /** Filters to entities where every related entity matches. */ + every?: AgentThreadFilter; + /** Filters to entities where no related entity matches. */ + none?: AgentThreadFilter; + /** Filters to entities where at least one related entity matches. */ + some?: AgentThreadFilter; +} +/** A filter to be used against `AgentResourceChunk` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentResourceChunkFilter { + /** Filter by the object’s `agentResource` relation. */ + agentResource?: AgentResourceFilter; + /** Filter by the object’s `agentResourceId` field. */ + agentResourceId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: AgentResourceChunkFilter[]; + /** Filter by the object’s `body` field. */ + body?: StringFilter; + /** Filter by the object’s `chunkIndex` field. */ + chunkIndex?: IntFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `embedding` field. */ + embedding?: VectorFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Negates the expression. */ + not?: AgentResourceChunkFilter; + /** Checks for any expressions in this list. */ + or?: AgentResourceChunkFilter[]; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** VECTOR search on the `embedding` column. */ + vectorEmbedding?: VectorNearbyInput; +} +/** An input for mutations affecting `AgentResourceChunk` */ +export interface AgentResourceChunkInput { + agentResourceId: string; + body: string; + chunkIndex?: number; + createdAt?: string; + /** Policy-required field derived from source table (used by AuthzRelatedEntityMembership) */ + databaseId?: string; + embedding?: number[]; + /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + embeddingText?: string; + id?: string; + metadata?: unknown; + updatedAt?: string; +} +/** Represents an update to a `AgentResourceChunk`. Fields that are set will be updated. */ +export interface AgentResourceChunkPatch { + agentResourceId?: string; + body?: string; + chunkIndex?: number; + createdAt?: string; + /** Policy-required field derived from source table (used by AuthzRelatedEntityMembership) */ + databaseId?: string; + embedding?: number[]; + /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + embeddingText?: string; + id?: string; + metadata?: unknown; + updatedAt?: string; +} +/** A filter to be used against `AgentResource` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentResourceFilter { + /** Filter by the object’s `agentResourceChunks` relation. */ + agentResourceChunks?: AgentResourceToManyAgentResourceChunkFilter; + /** `agentResourceChunks` exist. */ + agentResourceChunksExist?: boolean; + /** Checks for all expressions in this list. */ + and?: AgentResourceFilter[]; + /** Filter by the object’s `archivedAt` field. */ + archivedAt?: DatetimeFilter; + /** Filter by the object’s `body` field. */ + body?: StringTrgmFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `description` field. */ + description?: StringTrgmFilter; + /** Filter by the object’s `embedding` field. */ + embedding?: VectorFilter; + /** Filter by the object’s `embeddingUpdatedAt` field. */ + embeddingUpdatedAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; + /** Filter by the object’s `isArchived` field. */ + isArchived?: BooleanFilter; + /** Filter by the object’s `keywords` field. */ + keywords?: StringListFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringTrgmFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Negates the expression. */ + not?: AgentResourceFilter; + /** Checks for any expressions in this list. */ + or?: AgentResourceFilter[]; + /** Filter by the object’s `search` field. */ + search?: FullTextFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringTrgmFilter; + /** Filter by the object’s `title` field. */ + title?: StringTrgmFilter; + /** TRGM search on the `body` column. */ + trgmBody?: TrgmSearchInput; + /** TRGM search on the `description` column. */ + trgmDescription?: TrgmSearchInput; + /** TRGM search on the `kind` column. */ + trgmKind?: TrgmSearchInput; + /** TRGM search on the `title` column. */ + trgmTitle?: TrgmSearchInput; + /** TSV search on the `search` column. */ + tsvSearch?: string; + /** + * Composite unified search. Provide a search string and it will be dispatched to + * all text-compatible search algorithms (tsvector, BM25, pg_trgm) + * simultaneously. When the LLM plugin is active, pgvector also participates via + * auto-embedding. Rows matching ANY algorithm are returned. All matching score + * fields are populated. + */ + unifiedSearch?: string; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** VECTOR search on the `embedding` column. */ + vectorEmbedding?: VectorNearbyInput; +} +/** An input for mutations affecting `AgentResource` */ +export interface AgentResourceInput { + /** Timestamp when this record was archived, NULL if active */ + archivedAt?: string; + /** Full content (instructions for skills, reference text for knowledge) */ + body: string; + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Brief description of this resource */ + description?: string; + embedding?: number[]; + /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + embeddingText?: string; + id?: string; + /** Whether this resource is active and retrievable */ + isActive?: boolean; + /** Whether this record has been archived by the user */ + isArchived?: boolean; + /** Keywords for deterministic retrieval routing */ + keywords?: string[]; + /** Resource type: skill, knowledge, or convention */ + kind?: string; + /** Structured metadata: category, version, author, custom attributes */ + metadata?: unknown; + /** Unique human-readable identifier for portable references */ + slug: string; + /** Resource name or title */ + title: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; +} +/** Represents an update to a `AgentResource`. Fields that are set will be updated. */ +export interface AgentResourcePatch { + /** Timestamp when this record was archived, NULL if active */ + archivedAt?: string; + /** Full content (instructions for skills, reference text for knowledge) */ + body?: string; + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string; + /** Brief description of this resource */ + description?: string; + embedding?: number[]; + /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + embeddingText?: string; + id?: string; + /** Whether this resource is active and retrievable */ + isActive?: boolean; + /** Whether this record has been archived by the user */ + isArchived?: boolean; + /** Keywords for deterministic retrieval routing */ + keywords?: string[]; + /** Resource type: skill, knowledge, or convention */ + kind?: string; + /** Structured metadata: category, version, author, custom attributes */ + metadata?: unknown; + /** Unique human-readable identifier for portable references */ + slug?: string; + /** Resource name or title */ + title?: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; +} +/** A filter to be used against many `AgentResourceChunk` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentResourceToManyAgentResourceChunkFilter { + /** Filters to entities where every related entity matches. */ + every?: AgentResourceChunkFilter; + /** Filters to entities where no related entity matches. */ + none?: AgentResourceChunkFilter; + /** Filters to entities where at least one related entity matches. */ + some?: AgentResourceChunkFilter; +} +/** A filter to be used against `AgentTask` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentTaskFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: AgentTaskFilter[]; + /** Filter by the object’s `approvalFeedback` field. */ + approvalFeedback?: StringFilter; + /** Filter by the object’s `approvalStatus` field. */ + approvalStatus?: StringFilter; + /** Filter by the object’s `approvedAt` field. */ + approvedAt?: DatetimeFilter; + /** Filter by the object’s `approvedBy` field. */ + approvedBy?: 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 `error` field. */ + error?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: AgentTaskFilter; + /** Checks for any expressions in this list. */ + or?: AgentTaskFilter[]; + /** Filter by the object’s `orderIndex` field. */ + orderIndex?: IntFilter; + /** Filter by the object’s `plan` relation. */ + plan?: AgentPlanFilter; + /** Filter by the object’s `planId` field. */ + planId?: UUIDFilter; + /** Filter by the object’s `requiresApproval` field. */ + requiresApproval?: BooleanFilter; + /** Filter by the object’s `source` field. */ + source?: StringFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `visibility` field. */ + visibility?: StringFilter; +} +/** An input for mutations affecting `AgentTask` */ +export interface AgentTaskInput { + /** User who authored this task */ + actorId?: string; + /** Reviewer feedback or reason for the decision */ + approvalFeedback?: string; + /** Approval decision: pending, approved, rejected (NULL if not an approval task) */ + approvalStatus?: string; + /** Timestamp of the approval or rejection decision */ + approvedAt?: string; + /** User who approved or rejected this task */ + approvedBy?: string; + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Natural-language description of the work to do */ + description: string; + /** Error message captured when the task failed */ + error?: string; + id?: string; + /** Position within the plan (for ordered task lists) */ + orderIndex?: number; + /** Foreign key to agent_plan */ + planId: string; + /** Whether this task is an approval gate requiring human decision */ + requiresApproval?: boolean; + /** Who created the task: agent or user */ + source?: string; + /** Current status of this task */ + status?: string; + updatedAt?: string; + /** Who may read this task, inherited from its parent */ + visibility?: string; +} +/** Represents an update to a `AgentTask`. Fields that are set will be updated. */ +export interface AgentTaskPatch { + /** User who authored this task */ + actorId?: string; + /** Reviewer feedback or reason for the decision */ + approvalFeedback?: string; + /** Approval decision: pending, approved, rejected (NULL if not an approval task) */ + approvalStatus?: string; + /** Timestamp of the approval or rejection decision */ + approvedAt?: string; + /** User who approved or rejected this task */ + approvedBy?: string; + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string; + /** Natural-language description of the work to do */ + description?: string; + /** Error message captured when the task failed */ + error?: string; + id?: string; + /** Position within the plan (for ordered task lists) */ + orderIndex?: number; + /** Foreign key to agent_plan */ + planId?: string; + /** Whether this task is an approval gate requiring human decision */ + requiresApproval?: boolean; + /** Who created the task: agent or user */ + source?: string; + /** Current status of this task */ + status?: string; + updatedAt?: string; + /** Who may read this task, inherited from its parent */ + visibility?: string; +} +/** A filter to be used against `AgentThread` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentThreadFilter { + /** Filter by the object’s `agent` relation. */ + agent?: AgentFilter; + /** A related `agent` exists. */ + agentExists?: boolean; + /** Filter by the object’s `agentId` field. */ + agentId?: UUIDFilter; + /** Filter by the object’s `agentMessagesByThreadId` relation. */ + agentMessagesByThreadId?: AgentThreadToManyAgentMessageFilter; + /** `agentMessagesByThreadId` exist. */ + agentMessagesByThreadIdExist?: boolean; + /** Filter by the object’s `agentPlansByThreadId` relation. */ + agentPlansByThreadId?: AgentThreadToManyAgentPlanFilter; + /** `agentPlansByThreadId` exist. */ + agentPlansByThreadIdExist?: boolean; + /** Filter by the object’s `agentThreadsByParentThreadId` relation. */ + agentThreadsByParentThreadId?: AgentThreadToManyAgentThreadFilter; + /** `agentThreadsByParentThreadId` exist. */ + agentThreadsByParentThreadIdExist?: boolean; + /** Checks for all expressions in this list. */ + and?: AgentThreadFilter[]; + /** Filter by the object’s `archivedAt` field. */ + archivedAt?: DatetimeFilter; + /** 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 `isArchived` field. */ + isArchived?: BooleanFilter; + /** Filter by the object’s `mode` field. */ + mode?: StringFilter; + /** Filter by the object’s `model` field. */ + model?: StringFilter; + /** Negates the expression. */ + not?: AgentThreadFilter; + /** Checks for any expressions in this list. */ + or?: AgentThreadFilter[]; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `parentThread` relation. */ + parentThread?: AgentThreadFilter; + /** A related `parentThread` exists. */ + parentThreadExists?: boolean; + /** Filter by the object’s `parentThreadId` field. */ + parentThreadId?: UUIDFilter; + /** Filter by the object’s `promptTemplate` relation. */ + promptTemplate?: AgentPromptFilter; + /** A related `promptTemplate` exists. */ + promptTemplateExists?: boolean; + /** Filter by the object’s `promptTemplateId` field. */ + promptTemplateId?: UUIDFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `systemPrompt` field. */ + systemPrompt?: StringFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Filter by the object’s `title` field. */ + title?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `visibility` field. */ + visibility?: StringFilter; +} +/** An input for mutations affecting `AgentThread` */ +export interface AgentThreadInput { + /** Agent instance assigned to this thread */ + agentId?: string; + /** Timestamp when this record was archived, NULL if active */ + archivedAt?: string; + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + id?: string; + /** Whether this record has been archived by the user */ + isArchived?: boolean; + /** Conversation mode: ask (plain Q&A) or agent (tool-enabled) */ + mode?: string; + /** LLM model id this thread is bound to */ + model?: string; + /** User who owns this thread */ + ownerId?: string; + /** Parent thread that spawned this sub-conversation */ + parentThreadId?: string; + /** Optional FK to a shared prompt template */ + promptTemplateId?: string; + /** Current status of this thread */ + status?: string; + /** System prompt active for this thread */ + systemPrompt?: string; + /** User-defined labels for organizing and filtering threads */ + tags?: string[]; + /** Human-readable conversation title */ + title?: string; + updatedAt?: string; + /** Who may read this thread: private (owner only) or entity (the scope's members) */ + visibility?: string; +} +/** Represents an update to a `AgentThread`. Fields that are set will be updated. */ +export interface AgentThreadPatch { + /** Agent instance assigned to this thread */ + agentId?: string; + /** Timestamp when this record was archived, NULL if active */ + archivedAt?: string; + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string; + id?: string; + /** Whether this record has been archived by the user */ + isArchived?: boolean; + /** Conversation mode: ask (plain Q&A) or agent (tool-enabled) */ + mode?: string; + /** LLM model id this thread is bound to */ + model?: string; + /** User who owns this thread */ + ownerId?: string; + /** Parent thread that spawned this sub-conversation */ + parentThreadId?: string; + /** Optional FK to a shared prompt template */ + promptTemplateId?: string; + /** Current status of this thread */ + status?: string; + /** System prompt active for this thread */ + systemPrompt?: string; + /** User-defined labels for organizing and filtering threads */ + tags?: string[]; + /** Human-readable conversation title */ + title?: string; + updatedAt?: string; + /** Who may read this thread: private (owner only) or entity (the scope's members) */ + visibility?: string; +} +/** A filter to be used against many `AgentMessage` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentThreadToManyAgentMessageFilter { + /** Filters to entities where every related entity matches. */ + every?: AgentMessageFilter; + /** Filters to entities where no related entity matches. */ + none?: AgentMessageFilter; + /** Filters to entities where at least one related entity matches. */ + some?: AgentMessageFilter; +} +/** A filter to be used against many `AgentPlan` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentThreadToManyAgentPlanFilter { + /** Filters to entities where every related entity matches. */ + every?: AgentPlanFilter; + /** Filters to entities where no related entity matches. */ + none?: AgentPlanFilter; + /** Filters to entities where at least one related entity matches. */ + some?: AgentPlanFilter; +} +/** A filter to be used against many `AgentThread` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentThreadToManyAgentThreadFilter { + /** Filters to entities where every related entity matches. */ + every?: AgentThreadFilter; + /** Filters to entities where no related entity matches. */ + none?: AgentThreadFilter; + /** Filters to entities where at least one related entity matches. */ + some?: AgentThreadFilter; +} +/** A filter to be used against many `Agent` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentToManyAgentFilter { + /** Filters to entities where every related entity matches. */ + every?: AgentFilter; + /** Filters to entities where no related entity matches. */ + none?: AgentFilter; + /** Filters to entities where at least one related entity matches. */ + some?: AgentFilter; +} +/** A filter to be used against many `AgentMessage` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentToManyAgentMessageFilter { + /** Filters to entities where every related entity matches. */ + every?: AgentMessageFilter; + /** Filters to entities where no related entity matches. */ + none?: AgentMessageFilter; + /** Filters to entities where at least one related entity matches. */ + some?: AgentMessageFilter; +} +/** A filter to be used against many `AgentThread` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentToManyAgentThreadFilter { + /** Filters to entities where every related entity matches. */ + every?: AgentThreadFilter; + /** Filters to entities where no related entity matches. */ + none?: AgentThreadFilter; + /** Filters to entities where at least one related entity matches. */ + some?: AgentThreadFilter; +} +export interface CreateAgentInput { + /** The `Agent` to be created by this mutation. */ + agent: AgentInput; + clientMutationId?: string; +} +export interface CreateAgentMessageInput { + /** The `AgentMessage` to be created by this mutation. */ + agentMessage: AgentMessageInput; + clientMutationId?: string; +} +export interface CreateAgentPersonaInput { + /** The `AgentPersona` to be created by this mutation. */ + agentPersona: AgentPersonaInput; + clientMutationId?: string; +} +export interface CreateAgentPlanInput { + /** The `AgentPlan` to be created by this mutation. */ + agentPlan: AgentPlanInput; + clientMutationId?: string; +} +export interface CreateAgentPromptInput { + /** The `AgentPrompt` to be created by this mutation. */ + agentPrompt: AgentPromptInput; + clientMutationId?: string; +} +export interface CreateAgentResourceChunkInput { + /** The `AgentResourceChunk` to be created by this mutation. */ + agentResourceChunk: AgentResourceChunkInput; + clientMutationId?: string; +} +export interface CreateAgentResourceInput { + /** The `AgentResource` to be created by this mutation. */ + agentResource: AgentResourceInput; + clientMutationId?: string; +} +export interface CreateAgentTaskInput { + /** The `AgentTask` to be created by this mutation. */ + agentTask: AgentTaskInput; + clientMutationId?: string; +} +export interface CreateAgentThreadInput { + /** The `AgentThread` to be created by this mutation. */ + agentThread: AgentThreadInput; + clientMutationId?: string; +} +export interface CreatePlatformAgentEventInput { + clientMutationId?: string; + /** The `PlatformAgentEvent` to be created by this mutation. */ + platformAgentEvent: PlatformAgentEventInput; +} +export interface CreatePlatformAgentInput { + clientMutationId?: string; + /** The `PlatformAgent` to be created by this mutation. */ + platformAgent: PlatformAgentInput; +} +export interface CreatePlatformAgentMessageInput { + clientMutationId?: string; + /** The `PlatformAgentMessage` to be created by this mutation. */ + platformAgentMessage: PlatformAgentMessageInput; +} +export interface CreatePlatformAgentPersonaInput { + clientMutationId?: string; + /** The `PlatformAgentPersona` to be created by this mutation. */ + platformAgentPersona: PlatformAgentPersonaInput; +} +export interface CreatePlatformAgentPlanInput { + clientMutationId?: string; + /** The `PlatformAgentPlan` to be created by this mutation. */ + platformAgentPlan: PlatformAgentPlanInput; +} +export interface CreatePlatformAgentPromptInput { + clientMutationId?: string; + /** The `PlatformAgentPrompt` to be created by this mutation. */ + platformAgentPrompt: PlatformAgentPromptInput; +} +export interface CreatePlatformAgentResourceChunkInput { + clientMutationId?: string; + /** The `PlatformAgentResourceChunk` to be created by this mutation. */ + platformAgentResourceChunk: PlatformAgentResourceChunkInput; +} +export interface CreatePlatformAgentResourceInput { + clientMutationId?: string; + /** The `PlatformAgentResource` to be created by this mutation. */ + platformAgentResource: PlatformAgentResourceInput; +} +export interface CreatePlatformAgentRunInput { + clientMutationId?: string; + /** The `PlatformAgentRun` to be created by this mutation. */ + platformAgentRun: PlatformAgentRunInput; +} +export interface CreatePlatformAgentRunWorkspaceInput { + clientMutationId?: string; + /** The `PlatformAgentRunWorkspace` to be created by this mutation. */ + platformAgentRunWorkspace: PlatformAgentRunWorkspaceInput; +} +export interface CreatePlatformAgentTaskInput { + clientMutationId?: string; + /** The `PlatformAgentTask` to be created by this mutation. */ + platformAgentTask: PlatformAgentTaskInput; +} +export interface CreatePlatformAgentThreadInput { + clientMutationId?: string; + /** The `PlatformAgentThread` to be created by this mutation. */ + platformAgentThread: PlatformAgentThreadInput; +} +export interface DeleteAgentInput { + clientMutationId?: string; + id: string; +} +export interface DeleteAgentMessageInput { + clientMutationId?: string; + id: string; +} +export interface DeleteAgentPersonaInput { + clientMutationId?: string; + id: string; +} +export interface DeleteAgentPlanInput { + clientMutationId?: string; + id: string; +} +export interface DeleteAgentPromptInput { + clientMutationId?: string; + id: string; +} +export interface DeleteAgentResourceChunkInput { + clientMutationId?: string; + id: string; +} +export interface DeleteAgentResourceInput { + clientMutationId?: string; + id: string; +} +export interface DeleteAgentTaskInput { + clientMutationId?: string; + id: string; +} +export interface DeleteAgentThreadInput { + clientMutationId?: string; + id: string; +} +export interface DeletePlatformAgentEventInput { + clientMutationId?: string; + id: string; +} +export interface DeletePlatformAgentInput { + clientMutationId?: string; + id: string; +} +export interface DeletePlatformAgentMessageInput { + clientMutationId?: string; + id: string; +} +export interface DeletePlatformAgentPersonaInput { + clientMutationId?: string; + id: string; +} +export interface DeletePlatformAgentPlanInput { + clientMutationId?: string; + id: string; +} +export interface DeletePlatformAgentPromptInput { + clientMutationId?: string; + id: string; +} +export interface DeletePlatformAgentResourceChunkInput { + clientMutationId?: string; + id: string; +} +export interface DeletePlatformAgentResourceInput { + clientMutationId?: string; + id: string; +} +export interface DeletePlatformAgentRunInput { + clientMutationId?: string; + id: string; +} +export interface DeletePlatformAgentRunWorkspaceInput { + clientMutationId?: string; + id: string; +} +export interface DeletePlatformAgentTaskInput { + clientMutationId?: string; + id: string; +} +export interface DeletePlatformAgentThreadInput { + clientMutationId?: string; + id: string; +} +/** A filter to be used against `PlatformAgentEvent` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentEventFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: PlatformAgentEventFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `entry` field. */ + entry?: JSONFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformAgentEventFilter; + /** Checks for any expressions in this list. */ + or?: PlatformAgentEventFilter[]; + /** Filter by the object’s `recordedAt` field. */ + recordedAt?: DatetimeFilter; + /** Filter by the object’s `run` relation. */ + run?: PlatformAgentRunFilter; + /** Filter by the object’s `runId` field. */ + runId?: UUIDFilter; + /** Filter by the object’s `seq` field. */ + seq?: IntFilter; + /** Filter by the object’s `transcriptFormat` field. */ + transcriptFormat?: StringFilter; + /** Filter by the object’s `transcriptVersion` field. */ + transcriptVersion?: IntFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `visibility` field. */ + visibility?: StringFilter; +} +/** An input for mutations affecting `PlatformAgentEvent` */ +export interface PlatformAgentEventInput { + /** User whose run this entry belongs to, inherited from the run */ + actorId?: string; + createdAt?: string; + /** The agent session entry, verbatim — every rendered surface is a projection of it */ + entry: unknown; + id?: string; + /** When the writer produced this entry, by its own clock */ + recordedAt: string; + /** Foreign key to agent_run */ + runId: string; + /** Position of this entry in the run, 1-based and gapless */ + seq: number; + /** Transcript format this entry is encoded in */ + transcriptFormat?: string; + /** Version of that transcript format this entry was written in */ + transcriptVersion: number; + updatedAt?: string; + /** Who may read this entry, inherited from the run */ + visibility?: string; +} +/** Represents an update to a `PlatformAgentEvent`. Fields that are set will be updated. */ +export interface PlatformAgentEventPatch { + /** User whose run this entry belongs to, inherited from the run */ + actorId?: string; + createdAt?: string; + /** The agent session entry, verbatim — every rendered surface is a projection of it */ + entry?: unknown; + id?: string; + /** When the writer produced this entry, by its own clock */ + recordedAt?: string; + /** Foreign key to agent_run */ + runId?: string; + /** Position of this entry in the run, 1-based and gapless */ + seq?: number; + /** Transcript format this entry is encoded in */ + transcriptFormat?: string; + /** Version of that transcript format this entry was written in */ + transcriptVersion?: number; + updatedAt?: string; + /** Who may read this entry, inherited from the run */ + visibility?: string; +} +/** A filter to be used against `PlatformAgent` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentFilter { + /** Checks for all expressions in this list. */ + and?: PlatformAgentFilter[]; + /** Filter by the object’s `childPlatformAgents` relation. */ + childPlatformAgents?: PlatformAgentToManyPlatformAgentFilter; + /** `childPlatformAgents` exist. */ + childPlatformAgentsExist?: boolean; + /** Filter by the object’s `config` field. */ + config?: JSONFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isEphemeral` field. */ + isEphemeral?: BooleanFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: PlatformAgentFilter; + /** Checks for any expressions in this list. */ + or?: PlatformAgentFilter[]; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `parent` relation. */ + parent?: PlatformAgentFilter; + /** A related `parent` exists. */ + parentExists?: boolean; + /** Filter by the object’s `parentId` field. */ + parentId?: UUIDFilter; + /** Filter by the object’s `persona` relation. */ + persona?: PlatformAgentPersonaFilter; + /** A related `persona` exists. */ + personaExists?: boolean; + /** Filter by the object’s `personaId` field. */ + personaId?: UUIDFilter; + /** Filter by the object’s `platformAgentMessagesByAgentId` relation. */ + platformAgentMessagesByAgentId?: PlatformAgentToManyPlatformAgentMessageFilter; + /** `platformAgentMessagesByAgentId` exist. */ + platformAgentMessagesByAgentIdExist?: boolean; + /** Filter by the object’s `platformAgentThreadsByAgentId` relation. */ + platformAgentThreadsByAgentId?: PlatformAgentToManyPlatformAgentThreadFilter; + /** `platformAgentThreadsByAgentId` exist. */ + platformAgentThreadsByAgentIdExist?: boolean; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `systemPrompt` field. */ + systemPrompt?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} +/** An input for mutations affecting `PlatformAgent` */ +export interface PlatformAgentInput { + /** Per-instance config overrides (model, temperature, tools) */ + config?: unknown; + createdAt?: string; + id?: string; + /** If true, agent is deleted when its spawning thread is deleted */ + isEphemeral?: boolean; + /** Display name for this agent instance */ + name: string; + /** Human who owns/manages this agent */ + ownerId?: string; + /** Parent agent (for sub-agent delegation hierarchy) */ + parentId?: string; + /** Persona template this agent was created from */ + personaId?: string; + /** Agent lifecycle status: active, paused, terminated */ + status?: string; + /** System prompt override (NULL = inherit from persona) */ + systemPrompt?: string; + updatedAt?: string; +} +/** A filter to be used against `PlatformAgentMessage` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentMessageFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `agent` relation. */ + agent?: PlatformAgentFilter; + /** A related `agent` exists. */ + agentExists?: boolean; + /** Filter by the object’s `agentId` field. */ + agentId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: PlatformAgentMessageFilter[]; + /** Filter by the object’s `authorRole` field. */ + authorRole?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `deliveredRun` relation. */ + deliveredRun?: PlatformAgentRunFilter; + /** A related `deliveredRun` exists. */ + deliveredRunExists?: boolean; + /** Filter by the object’s `deliveredRunId` field. */ + deliveredRunId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `model` field. */ + model?: StringFilter; + /** Negates the expression. */ + not?: PlatformAgentMessageFilter; + /** Checks for any expressions in this list. */ + or?: PlatformAgentMessageFilter[]; + /** Filter by the object’s `parts` field. */ + parts?: JSONFilter; + /** Filter by the object’s `thread` relation. */ + thread?: PlatformAgentThreadFilter; + /** Filter by the object’s `threadId` field. */ + threadId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `visibility` field. */ + visibility?: StringFilter; +} +/** An input for mutations affecting `PlatformAgentMessage` */ +export interface PlatformAgentMessageInput { + /** User who authored this message */ + actorId?: string; + /** Agent that authored this message (NULL for human messages) */ + agentId?: string; + /** Who authored this message: user or assistant */ + authorRole: string; + createdAt?: string; + /** Run that consumed this message; null while it is still queued */ + deliveredRunId?: string; + id?: string; + /** Turn kind: user, assistant, system, or interrupt (arrived mid-run and redirects it) */ + kind?: string; + /** LLM model that generated this response */ + model?: string; + /** Message content: TextPart and ToolPart array */ + parts?: unknown; + /** Foreign key to agent_thread */ + threadId: string; + updatedAt?: string; + /** Who may read this message, inherited from the thread */ + visibility?: string; +} +/** Represents an update to a `PlatformAgentMessage`. Fields that are set will be updated. */ +export interface PlatformAgentMessagePatch { + /** User who authored this message */ + actorId?: string; + /** Agent that authored this message (NULL for human messages) */ + agentId?: string; + /** Who authored this message: user or assistant */ + authorRole?: string; + createdAt?: string; + /** Run that consumed this message; null while it is still queued */ + deliveredRunId?: string; + id?: string; + /** Turn kind: user, assistant, system, or interrupt (arrived mid-run and redirects it) */ + kind?: string; + /** LLM model that generated this response */ + model?: string; + /** Message content: TextPart and ToolPart array */ + parts?: unknown; + /** Foreign key to agent_thread */ + threadId?: string; + updatedAt?: string; + /** Who may read this message, inherited from the thread */ + visibility?: string; +} +/** Represents an update to a `PlatformAgent`. Fields that are set will be updated. */ +export interface PlatformAgentPatch { + /** Per-instance config overrides (model, temperature, tools) */ + config?: unknown; + createdAt?: string; + id?: string; + /** If true, agent is deleted when its spawning thread is deleted */ + isEphemeral?: boolean; + /** Display name for this agent instance */ + name?: string; + /** Human who owns/manages this agent */ + ownerId?: string; + /** Parent agent (for sub-agent delegation hierarchy) */ + parentId?: string; + /** Persona template this agent was created from */ + personaId?: string; + /** Agent lifecycle status: active, paused, terminated */ + status?: string; + /** System prompt override (NULL = inherit from persona) */ + systemPrompt?: string; + updatedAt?: string; +} +/** A filter to be used against `PlatformAgentPersona` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentPersonaFilter { + /** Checks for all expressions in this list. */ + and?: PlatformAgentPersonaFilter[]; + /** Filter by the object’s `config` field. */ config?: JSONFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `createdBy` field. */ createdBy?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `description` field. */ description?: StringFilter; /** Filter by the object’s `id` field. */ @@ -526,9 +2245,13 @@ export interface AgentPersonaFilter { /** Filter by the object’s `name` field. */ name?: StringFilter; /** Negates the expression. */ - not?: AgentPersonaFilter; + not?: PlatformAgentPersonaFilter; /** Checks for any expressions in this list. */ - or?: AgentPersonaFilter[]; + or?: PlatformAgentPersonaFilter[]; + /** Filter by the object’s `platformAgentsByPersonaId` relation. */ + platformAgentsByPersonaId?: PlatformAgentPersonaToManyPlatformAgentFilter; + /** `platformAgentsByPersonaId` exist. */ + platformAgentsByPersonaIdExist?: boolean; /** Filter by the object’s `resources` field. */ resources?: StringListFilter; /** Filter by the object’s `slug` field. */ @@ -539,15 +2262,16 @@ export interface AgentPersonaFilter { updatedAt?: DatetimeFilter; /** Filter by the object’s `updatedBy` field. */ updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -/** An input for mutations affecting `AgentPersona` */ -export interface AgentPersonaInput { +/** An input for mutations affecting `PlatformAgentPersona` */ +export interface PlatformAgentPersonaInput { /** Model preferences, temperature, tool access, constraints */ config?: unknown; createdAt?: string; createdBy?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; + createdByPrincipal?: string; /** Brief description of this persona role */ description?: string; id?: string; @@ -563,15 +2287,15 @@ export interface AgentPersonaInput { systemPrompt?: string; updatedAt?: string; updatedBy?: string; + updatedByPrincipal?: string; } -/** Represents an update to a `AgentPersona`. Fields that are set will be updated. */ -export interface AgentPersonaPatch { +/** Represents an update to a `PlatformAgentPersona`. Fields that are set will be updated. */ +export interface PlatformAgentPersonaPatch { /** Model preferences, temperature, tool access, constraints */ config?: unknown; createdAt?: string; createdBy?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId?: string; + createdByPrincipal?: string; /** Brief description of this persona role */ description?: string; id?: string; @@ -587,54 +2311,53 @@ export interface AgentPersonaPatch { systemPrompt?: string; updatedAt?: string; updatedBy?: string; + updatedByPrincipal?: string; } -/** A filter to be used against many `Agent` object types. All fields are combined with a logical ‘and.’ */ -export interface AgentPersonaToManyAgentFilter { +/** A filter to be used against many `PlatformAgent` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentPersonaToManyPlatformAgentFilter { /** Filters to entities where every related entity matches. */ - every?: AgentFilter; + every?: PlatformAgentFilter; /** Filters to entities where no related entity matches. */ - none?: AgentFilter; + none?: PlatformAgentFilter; /** Filters to entities where at least one related entity matches. */ - some?: AgentFilter; + some?: PlatformAgentFilter; } -/** A filter to be used against `AgentPlan` object types. All fields are combined with a logical ‘and.’ */ -export interface AgentPlanFilter { - /** Filter by the object’s `agentTasksByPlanId` relation. */ - agentTasksByPlanId?: AgentPlanToManyAgentTaskFilter; - /** `agentTasksByPlanId` exist. */ - agentTasksByPlanIdExist?: boolean; +/** A filter to be used against `PlatformAgentPlan` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentPlanFilter { /** Checks for all expressions in this list. */ - and?: AgentPlanFilter[]; + and?: PlatformAgentPlanFilter[]; /** 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 `id` field. */ id?: UUIDFilter; /** Negates the expression. */ - not?: AgentPlanFilter; + not?: PlatformAgentPlanFilter; /** Checks for any expressions in this list. */ - or?: AgentPlanFilter[]; + or?: PlatformAgentPlanFilter[]; /** Filter by the object’s `ownerId` field. */ ownerId?: UUIDFilter; + /** Filter by the object’s `platformAgentTasksByPlanId` relation. */ + platformAgentTasksByPlanId?: PlatformAgentPlanToManyPlatformAgentTaskFilter; + /** `platformAgentTasksByPlanId` exist. */ + platformAgentTasksByPlanIdExist?: boolean; /** Filter by the object’s `status` field. */ status?: StringFilter; /** Filter by the object’s `thread` relation. */ - thread?: AgentThreadFilter; + thread?: PlatformAgentThreadFilter; /** Filter by the object’s `threadId` field. */ threadId?: UUIDFilter; /** Filter by the object’s `title` field. */ title?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `visibility` field. */ + visibility?: StringFilter; } -/** An input for mutations affecting `AgentPlan` */ -export interface AgentPlanInput { +/** An input for mutations affecting `PlatformAgentPlan` */ +export interface PlatformAgentPlanInput { createdAt?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; /** Overall goal or context for this plan */ description?: string; id?: string; @@ -647,12 +2370,12 @@ export interface AgentPlanInput { /** Human-readable plan name */ title: string; updatedAt?: string; + /** Who may read this plan, inherited from the thread */ + visibility?: string; } -/** Represents an update to a `AgentPlan`. Fields that are set will be updated. */ -export interface AgentPlanPatch { +/** Represents an update to a `PlatformAgentPlan`. Fields that are set will be updated. */ +export interface PlatformAgentPlanPatch { createdAt?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId?: string; /** Overall goal or context for this plan */ description?: string; id?: string; @@ -665,32 +2388,30 @@ export interface AgentPlanPatch { /** Human-readable plan name */ title?: string; updatedAt?: string; + /** Who may read this plan, inherited from the thread */ + visibility?: string; } -/** A filter to be used against many `AgentTask` object types. All fields are combined with a logical ‘and.’ */ -export interface AgentPlanToManyAgentTaskFilter { +/** A filter to be used against many `PlatformAgentTask` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentPlanToManyPlatformAgentTaskFilter { /** Filters to entities where every related entity matches. */ - every?: AgentTaskFilter; + every?: PlatformAgentTaskFilter; /** Filters to entities where no related entity matches. */ - none?: AgentTaskFilter; + none?: PlatformAgentTaskFilter; /** Filters to entities where at least one related entity matches. */ - some?: AgentTaskFilter; + some?: PlatformAgentTaskFilter; } -/** A filter to be used against `AgentPrompt` object types. All fields are combined with a logical ‘and.’ */ -export interface AgentPromptFilter { - /** Filter by the object’s `agentThreadsByPromptTemplateId` relation. */ - agentThreadsByPromptTemplateId?: AgentPromptToManyAgentThreadFilter; - /** `agentThreadsByPromptTemplateId` exist. */ - agentThreadsByPromptTemplateIdExist?: boolean; +/** A filter to be used against `PlatformAgentPrompt` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentPromptFilter { /** Checks for all expressions in this list. */ - and?: AgentPromptFilter[]; + and?: PlatformAgentPromptFilter[]; /** Filter by the object’s `content` field. */ content?: StringFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `createdBy` field. */ createdBy?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `description` field. */ description?: StringFilter; /** Filter by the object’s `id` field. */ @@ -702,22 +2423,27 @@ export interface AgentPromptFilter { /** Filter by the object’s `name` field. */ name?: StringFilter; /** Negates the expression. */ - not?: AgentPromptFilter; + not?: PlatformAgentPromptFilter; /** Checks for any expressions in this list. */ - or?: AgentPromptFilter[]; + or?: PlatformAgentPromptFilter[]; + /** Filter by the object’s `platformAgentThreadsByPromptTemplateId` relation. */ + platformAgentThreadsByPromptTemplateId?: PlatformAgentPromptToManyPlatformAgentThreadFilter; + /** `platformAgentThreadsByPromptTemplateId` exist. */ + platformAgentThreadsByPromptTemplateIdExist?: boolean; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; /** Filter by the object’s `updatedBy` field. */ updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -/** An input for mutations affecting `AgentPrompt` */ -export interface AgentPromptInput { +/** An input for mutations affecting `PlatformAgentPrompt` */ +export interface PlatformAgentPromptInput { /** The system prompt template content */ content: string; createdAt?: string; createdBy?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; + createdByPrincipal?: string; /** What this prompt template is for */ description?: string; id?: string; @@ -729,15 +2455,15 @@ export interface AgentPromptInput { name: string; updatedAt?: string; updatedBy?: string; + updatedByPrincipal?: string; } -/** Represents an update to a `AgentPrompt`. Fields that are set will be updated. */ -export interface AgentPromptPatch { +/** Represents an update to a `PlatformAgentPrompt`. Fields that are set will be updated. */ +export interface PlatformAgentPromptPatch { /** The system prompt template content */ content?: string; createdAt?: string; createdBy?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId?: string; + createdByPrincipal?: string; /** What this prompt template is for */ description?: string; id?: string; @@ -749,24 +2475,21 @@ export interface AgentPromptPatch { name?: string; updatedAt?: string; updatedBy?: string; + updatedByPrincipal?: string; } -/** A filter to be used against many `AgentThread` object types. All fields are combined with a logical ‘and.’ */ -export interface AgentPromptToManyAgentThreadFilter { +/** A filter to be used against many `PlatformAgentThread` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentPromptToManyPlatformAgentThreadFilter { /** Filters to entities where every related entity matches. */ - every?: AgentThreadFilter; + every?: PlatformAgentThreadFilter; /** Filters to entities where no related entity matches. */ - none?: AgentThreadFilter; + none?: PlatformAgentThreadFilter; /** Filters to entities where at least one related entity matches. */ - some?: AgentThreadFilter; + some?: PlatformAgentThreadFilter; } -/** A filter to be used against `AgentResourceChunk` object types. All fields are combined with a logical ‘and.’ */ -export interface AgentResourceChunkFilter { - /** Filter by the object’s `agentResource` relation. */ - agentResource?: AgentResourceFilter; - /** Filter by the object’s `agentResourceId` field. */ - agentResourceId?: UUIDFilter; +/** A filter to be used against `PlatformAgentResourceChunk` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentResourceChunkFilter { /** Checks for all expressions in this list. */ - and?: AgentResourceChunkFilter[]; + and?: PlatformAgentResourceChunkFilter[]; /** Filter by the object’s `body` field. */ body?: StringFilter; /** Filter by the object’s `chunkIndex` field. */ @@ -780,17 +2503,20 @@ export interface AgentResourceChunkFilter { /** Filter by the object’s `metadata` field. */ metadata?: JSONFilter; /** Negates the expression. */ - not?: AgentResourceChunkFilter; + not?: PlatformAgentResourceChunkFilter; /** Checks for any expressions in this list. */ - or?: AgentResourceChunkFilter[]; + or?: PlatformAgentResourceChunkFilter[]; + /** Filter by the object’s `platformAgentResource` relation. */ + platformAgentResource?: PlatformAgentResourceFilter; + /** Filter by the object’s `platformAgentResourceId` field. */ + platformAgentResourceId?: UUIDFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; /** VECTOR search on the `embedding` column. */ vectorEmbedding?: VectorNearbyInput; } -/** An input for mutations affecting `AgentResourceChunk` */ -export interface AgentResourceChunkInput { - agentResourceId: string; +/** An input for mutations affecting `PlatformAgentResourceChunk` */ +export interface PlatformAgentResourceChunkInput { body: string; chunkIndex?: number; createdAt?: string; @@ -799,11 +2525,11 @@ export interface AgentResourceChunkInput { embeddingText?: string; id?: string; metadata?: unknown; + platformAgentResourceId: string; updatedAt?: string; } -/** Represents an update to a `AgentResourceChunk`. Fields that are set will be updated. */ -export interface AgentResourceChunkPatch { - agentResourceId?: string; +/** Represents an update to a `PlatformAgentResourceChunk`. Fields that are set will be updated. */ +export interface PlatformAgentResourceChunkPatch { body?: string; chunkIndex?: number; createdAt?: string; @@ -812,16 +2538,13 @@ export interface AgentResourceChunkPatch { embeddingText?: string; id?: string; metadata?: unknown; + platformAgentResourceId?: string; updatedAt?: string; } -/** A filter to be used against `AgentResource` object types. All fields are combined with a logical ‘and.’ */ -export interface AgentResourceFilter { - /** Filter by the object’s `agentResourceChunks` relation. */ - agentResourceChunks?: AgentResourceToManyAgentResourceChunkFilter; - /** `agentResourceChunks` exist. */ - agentResourceChunksExist?: boolean; +/** A filter to be used against `PlatformAgentResource` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentResourceFilter { /** Checks for all expressions in this list. */ - and?: AgentResourceFilter[]; + and?: PlatformAgentResourceFilter[]; /** Filter by the object’s `archivedAt` field. */ archivedAt?: DatetimeFilter; /** Filter by the object’s `body` field. */ @@ -830,8 +2553,8 @@ export interface AgentResourceFilter { createdAt?: DatetimeFilter; /** Filter by the object’s `createdBy` field. */ createdBy?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `description` field. */ description?: StringTrgmFilter; /** Filter by the object’s `embedding` field. */ @@ -851,9 +2574,13 @@ export interface AgentResourceFilter { /** Filter by the object’s `metadata` field. */ metadata?: JSONFilter; /** Negates the expression. */ - not?: AgentResourceFilter; + not?: PlatformAgentResourceFilter; /** Checks for any expressions in this list. */ - or?: AgentResourceFilter[]; + or?: PlatformAgentResourceFilter[]; + /** Filter by the object’s `platformAgentResourceChunks` relation. */ + platformAgentResourceChunks?: PlatformAgentResourceToManyPlatformAgentResourceChunkFilter; + /** `platformAgentResourceChunks` exist. */ + platformAgentResourceChunksExist?: boolean; /** Filter by the object’s `search` field. */ search?: FullTextFilter; /** Filter by the object’s `slug` field. */ @@ -882,19 +2609,20 @@ export interface AgentResourceFilter { updatedAt?: DatetimeFilter; /** Filter by the object’s `updatedBy` field. */ updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; /** VECTOR search on the `embedding` column. */ vectorEmbedding?: VectorNearbyInput; } -/** An input for mutations affecting `AgentResource` */ -export interface AgentResourceInput { +/** An input for mutations affecting `PlatformAgentResource` */ +export interface PlatformAgentResourceInput { /** Timestamp when this record was archived, NULL if active */ archivedAt?: string; /** Full content (instructions for skills, reference text for knowledge) */ body: string; createdAt?: string; createdBy?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; + createdByPrincipal?: string; /** Brief description of this resource */ description?: string; embedding?: number[]; @@ -917,55 +2645,387 @@ export interface AgentResourceInput { title: string; updatedAt?: string; updatedBy?: string; + updatedByPrincipal?: string; } -/** Represents an update to a `AgentResource`. Fields that are set will be updated. */ -export interface AgentResourcePatch { +/** Represents an update to a `PlatformAgentResource`. Fields that are set will be updated. */ +export interface PlatformAgentResourcePatch { /** Timestamp when this record was archived, NULL if active */ archivedAt?: string; /** Full content (instructions for skills, reference text for knowledge) */ body?: string; createdAt?: string; - createdBy?: string; - /** Database that owns this resource (database-scoped isolation) */ + createdBy?: string; + createdByPrincipal?: string; + /** Brief description of this resource */ + description?: string; + embedding?: number[]; + /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + embeddingText?: string; + id?: string; + /** Whether this resource is active and retrievable */ + isActive?: boolean; + /** Whether this record has been archived by the user */ + isArchived?: boolean; + /** Keywords for deterministic retrieval routing */ + keywords?: string[]; + /** Resource type: skill, knowledge, or convention */ + kind?: string; + /** Structured metadata: category, version, author, custom attributes */ + metadata?: unknown; + /** Unique human-readable identifier for portable references */ + slug?: string; + /** Resource name or title */ + title?: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; +} +/** A filter to be used against many `PlatformAgentResourceChunk` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentResourceToManyPlatformAgentResourceChunkFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformAgentResourceChunkFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformAgentResourceChunkFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformAgentResourceChunkFilter; +} +/** A filter to be used against `PlatformAgentRun` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentRunFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: PlatformAgentRunFilter[]; + /** Filter by the object’s `artifacts` field. */ + artifacts?: JSONFilter; + /** Filter by the object’s `attempt` field. */ + attempt?: IntFilter; + /** Filter by the object’s `baseCommit` field. */ + baseCommit?: StringFilter; + /** Filter by the object’s `branch` field. */ + branch?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `deadlineAt` field. */ + deadlineAt?: DatetimeFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `error` field. */ + error?: StringFilter; + /** Filter by the object’s `executionId` field. */ + executionId?: UUIDFilter; + /** Filter by the object’s `finishedAt` field. */ + finishedAt?: DatetimeFilter; + /** Filter by the object’s `headCommit` field. */ + headCommit?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `lastEventSeq` field. */ + lastEventSeq?: IntFilter; + /** Negates the expression. */ + not?: PlatformAgentRunFilter; + /** Checks for any expressions in this list. */ + or?: PlatformAgentRunFilter[]; + /** Filter by the object’s `parentRunId` field. */ + parentRunId?: UUIDFilter; + /** Filter by the object’s `placement` field. */ + placement?: StringFilter; + /** Filter by the object’s `platformAgentEventsByRunId` relation. */ + platformAgentEventsByRunId?: PlatformAgentRunToManyPlatformAgentEventFilter; + /** `platformAgentEventsByRunId` exist. */ + platformAgentEventsByRunIdExist?: boolean; + /** Filter by the object’s `platformAgentMessagesByDeliveredRunId` relation. */ + platformAgentMessagesByDeliveredRunId?: PlatformAgentRunToManyPlatformAgentMessageFilter; + /** `platformAgentMessagesByDeliveredRunId` exist. */ + platformAgentMessagesByDeliveredRunIdExist?: boolean; + /** Filter by the object’s `platformAgentRunWorkspacesByRunId` relation. */ + platformAgentRunWorkspacesByRunId?: PlatformAgentRunToManyPlatformAgentRunWorkspaceFilter; + /** `platformAgentRunWorkspacesByRunId` exist. */ + platformAgentRunWorkspacesByRunIdExist?: boolean; + /** Filter by the object’s `principalId` field. */ + principalId?: UUIDFilter; + /** Filter by the object’s `repoUrl` field. */ + repoUrl?: StringFilter; + /** Filter by the object’s `startedAt` field. */ + startedAt?: DatetimeFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `thread` relation. */ + thread?: PlatformAgentThreadFilter; + /** Filter by the object’s `threadId` field. */ + threadId?: UUIDFilter; + /** Filter by the object’s `tokenUsage` field. */ + tokenUsage?: JSONFilter; + /** Filter by the object’s `totalCost` field. */ + totalCost?: BigFloatFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `visibility` field. */ + visibility?: StringFilter; +} +/** An input for mutations affecting `PlatformAgentRun` */ +export interface PlatformAgentRunInput { + /** User who invoked this run (audit/provenance; billing is entity_id) */ + actorId?: string; + /** What the run produced: commits, diffs, pull requests, usage totals */ + artifacts?: unknown; + /** Attempt number within this run lineage */ + attempt?: number; + /** Commit the run started from */ + baseCommit?: string; + /** Branch the run commits to */ + branch?: string; + createdAt?: string; + /** Tenant database this run is attributed to (usage/billing attribution) */ + databaseId?: string; + /** When a supervisor should consider this run abandoned */ + deadlineAt?: string; + /** Entity billed for this run: an org the actor invoked on behalf of, or the actor themselves */ + entityId?: string; + /** Failure reason when status is failed */ + error?: string; + /** Execution currently attached to this run, by id and without a foreign key; null when the run holds no compute */ + executionId?: string; + /** When the run reached a terminal status */ + finishedAt?: string; + /** Commit the run has reached */ + headCommit?: string; + id?: string; + /** Highest event seq appended for this run; 0 before the first event */ + lastEventSeq?: number; + /** Run this one retries, by id and without a foreign key so lineage survives pruning */ + parentRunId?: string; + /** Where this run executes: cloud (a job) or local (an embedded host) */ + placement?: string; + /** Principal that invoked this run; equals actor_id when the actor acted directly */ + principalId?: string; + /** Git remote the run works against — the workspace sync protocol */ + repoUrl?: string; + /** When the run began executing */ + startedAt?: string; + /** Lifecycle state: pending, running, waiting, idle, interrupted, succeeded, failed, cancelled */ + status?: string; + /** Foreign key to agent_thread */ + threadId: string; + /** Token counts this run accumulated, per model, as the runtime reports them; null until settled */ + tokenUsage?: unknown; + /** Settled cost of this run in the billing currency, summarising its metered rows; null until settled */ + totalCost?: string; + updatedAt?: string; + /** Who may read this run, inherited from the thread */ + visibility?: string; +} +/** Represents an update to a `PlatformAgentRun`. Fields that are set will be updated. */ +export interface PlatformAgentRunPatch { + /** User who invoked this run (audit/provenance; billing is entity_id) */ + actorId?: string; + /** What the run produced: commits, diffs, pull requests, usage totals */ + artifacts?: unknown; + /** Attempt number within this run lineage */ + attempt?: number; + /** Commit the run started from */ + baseCommit?: string; + /** Branch the run commits to */ + branch?: string; + createdAt?: string; + /** Tenant database this run is attributed to (usage/billing attribution) */ databaseId?: string; - /** Brief description of this resource */ - description?: string; - embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ - embeddingText?: string; + /** When a supervisor should consider this run abandoned */ + deadlineAt?: string; + /** Entity billed for this run: an org the actor invoked on behalf of, or the actor themselves */ + entityId?: string; + /** Failure reason when status is failed */ + error?: string; + /** Execution currently attached to this run, by id and without a foreign key; null when the run holds no compute */ + executionId?: string; + /** When the run reached a terminal status */ + finishedAt?: string; + /** Commit the run has reached */ + headCommit?: string; id?: string; - /** Whether this resource is active and retrievable */ - isActive?: boolean; - /** Whether this record has been archived by the user */ - isArchived?: boolean; - /** Keywords for deterministic retrieval routing */ - keywords?: string[]; - /** Resource type: skill, knowledge, or convention */ - kind?: string; - /** Structured metadata: category, version, author, custom attributes */ - metadata?: unknown; - /** Unique human-readable identifier for portable references */ - slug?: string; - /** Resource name or title */ - title?: string; + /** Highest event seq appended for this run; 0 before the first event */ + lastEventSeq?: number; + /** Run this one retries, by id and without a foreign key so lineage survives pruning */ + parentRunId?: string; + /** Where this run executes: cloud (a job) or local (an embedded host) */ + placement?: string; + /** Principal that invoked this run; equals actor_id when the actor acted directly */ + principalId?: string; + /** Git remote the run works against — the workspace sync protocol */ + repoUrl?: string; + /** When the run began executing */ + startedAt?: string; + /** Lifecycle state: pending, running, waiting, idle, interrupted, succeeded, failed, cancelled */ + status?: string; + /** Foreign key to agent_thread */ + threadId?: string; + /** Token counts this run accumulated, per model, as the runtime reports them; null until settled */ + tokenUsage?: unknown; + /** Settled cost of this run in the billing currency, summarising its metered rows; null until settled */ + totalCost?: string; updatedAt?: string; - updatedBy?: string; + /** Who may read this run, inherited from the thread */ + visibility?: string; } -/** A filter to be used against many `AgentResourceChunk` object types. All fields are combined with a logical ‘and.’ */ -export interface AgentResourceToManyAgentResourceChunkFilter { +/** A filter to be used against many `PlatformAgentEvent` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentRunToManyPlatformAgentEventFilter { /** Filters to entities where every related entity matches. */ - every?: AgentResourceChunkFilter; + every?: PlatformAgentEventFilter; /** Filters to entities where no related entity matches. */ - none?: AgentResourceChunkFilter; + none?: PlatformAgentEventFilter; /** Filters to entities where at least one related entity matches. */ - some?: AgentResourceChunkFilter; + some?: PlatformAgentEventFilter; } -/** A filter to be used against `AgentTask` object types. All fields are combined with a logical ‘and.’ */ -export interface AgentTaskFilter { +/** A filter to be used against many `PlatformAgentMessage` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentRunToManyPlatformAgentMessageFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformAgentMessageFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformAgentMessageFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformAgentMessageFilter; +} +/** A filter to be used against many `PlatformAgentRunWorkspace` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentRunToManyPlatformAgentRunWorkspaceFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformAgentRunWorkspaceFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformAgentRunWorkspaceFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformAgentRunWorkspaceFilter; +} +/** A filter to be used against `PlatformAgentRunWorkspace` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentRunWorkspaceFilter { /** Filter by the object’s `actorId` field. */ actorId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: AgentTaskFilter[]; + and?: PlatformAgentRunWorkspaceFilter[]; + /** Filter by the object’s `artifacts` field. */ + artifacts?: JSONFilter; + /** Filter by the object’s `baseBranch` field. */ + baseBranch?: StringFilter; + /** Filter by the object’s `baseCommit` field. */ + baseCommit?: StringFilter; + /** Filter by the object’s `branch` field. */ + branch?: StringFilter; + /** Filter by the object’s `clonedAt` field. */ + clonedAt?: DatetimeFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `headCommit` field. */ + headCommit?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `lastUsedAt` field. */ + lastUsedAt?: DatetimeFilter; + /** Negates the expression. */ + not?: PlatformAgentRunWorkspaceFilter; + /** Checks for any expressions in this list. */ + or?: PlatformAgentRunWorkspaceFilter[]; + /** Filter by the object’s `ordinal` field. */ + ordinal?: IntFilter; + /** Filter by the object’s `provider` field. */ + provider?: StringFilter; + /** Filter by the object’s `publication` field. */ + publication?: StringFilter; + /** Filter by the object’s `repo` field. */ + repo?: StringFilter; + /** Filter by the object’s `repositoryId` field. */ + repositoryId?: UUIDFilter; + /** Filter by the object’s `run` relation. */ + run?: PlatformAgentRunFilter; + /** Filter by the object’s `runId` field. */ + runId?: UUIDFilter; + /** Filter by the object’s `state` field. */ + state?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `visibility` field. */ + visibility?: StringFilter; +} +/** An input for mutations affecting `PlatformAgentRunWorkspace` */ +export interface PlatformAgentRunWorkspaceInput { + /** User whose run this workspace belongs to, inherited from the run */ + actorId?: string; + /** What publishing this workspace produced: diff stats, a pull request, a stored patch */ + artifacts?: unknown; + /** Branch the workspace was cut from, and what a pull request merges into */ + baseBranch: string; + /** Commit the workspace was cut from; fixed once recorded */ + baseCommit?: string; + /** Branch this run commits to in this repository */ + branch: string; + /** When an execution first cloned this workspace */ + clonedAt?: string; + createdAt?: string; + /** Commit the work in this repository has reached */ + headCommit?: string; + id?: string; + /** When an execution last worked in this workspace; what a reclaim policy reads */ + lastUsedAt?: string; + /** Position of this workspace among the run's, 1-based and in clone order */ + ordinal?: number; + /** Git host this workspace was cloned from, as the runtime names it: github, local */ + provider: string; + /** How the work is published: pull_request, push, patch_artifact or none */ + publication?: string; + /** Repository as its provider names it (owner/name) */ + repo: string; + /** Catalog repository this workspace was cloned from, when the platform hosts it */ + repositoryId?: string; + /** Foreign key to agent_run */ + runId: string; + /** Whether the tree still exists: active (on disk), cold (reclaimed, restorable from head_commit) or purged */ + state?: string; + updatedAt?: string; + /** Who may read this workspace, inherited from the run */ + visibility?: string; +} +/** Represents an update to a `PlatformAgentRunWorkspace`. Fields that are set will be updated. */ +export interface PlatformAgentRunWorkspacePatch { + /** User whose run this workspace belongs to, inherited from the run */ + actorId?: string; + /** What publishing this workspace produced: diff stats, a pull request, a stored patch */ + artifacts?: unknown; + /** Branch the workspace was cut from, and what a pull request merges into */ + baseBranch?: string; + /** Commit the workspace was cut from; fixed once recorded */ + baseCommit?: string; + /** Branch this run commits to in this repository */ + branch?: string; + /** When an execution first cloned this workspace */ + clonedAt?: string; + createdAt?: string; + /** Commit the work in this repository has reached */ + headCommit?: string; + id?: string; + /** When an execution last worked in this workspace; what a reclaim policy reads */ + lastUsedAt?: string; + /** Position of this workspace among the run's, 1-based and in clone order */ + ordinal?: number; + /** Git host this workspace was cloned from, as the runtime names it: github, local */ + provider?: string; + /** How the work is published: pull_request, push, patch_artifact or none */ + publication?: string; + /** Repository as its provider names it (owner/name) */ + repo?: string; + /** Catalog repository this workspace was cloned from, when the platform hosts it */ + repositoryId?: string; + /** Foreign key to agent_run */ + runId?: string; + /** Whether the tree still exists: active (on disk), cold (reclaimed, restorable from head_commit) or purged */ + state?: string; + updatedAt?: string; + /** Who may read this workspace, inherited from the run */ + visibility?: string; +} +/** A filter to be used against `PlatformAgentTask` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentTaskFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: PlatformAgentTaskFilter[]; /** Filter by the object’s `approvalFeedback` field. */ approvalFeedback?: StringFilter; /** Filter by the object’s `approvalStatus` field. */ @@ -976,8 +3036,6 @@ export interface AgentTaskFilter { approvedBy?: 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 `error` field. */ @@ -985,13 +3043,13 @@ export interface AgentTaskFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Negates the expression. */ - not?: AgentTaskFilter; + not?: PlatformAgentTaskFilter; /** Checks for any expressions in this list. */ - or?: AgentTaskFilter[]; + or?: PlatformAgentTaskFilter[]; /** Filter by the object’s `orderIndex` field. */ orderIndex?: IntFilter; /** Filter by the object’s `plan` relation. */ - plan?: AgentPlanFilter; + plan?: PlatformAgentPlanFilter; /** Filter by the object’s `planId` field. */ planId?: UUIDFilter; /** Filter by the object’s `requiresApproval` field. */ @@ -1002,9 +3060,11 @@ export interface AgentTaskFilter { status?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `visibility` field. */ + visibility?: StringFilter; } -/** An input for mutations affecting `AgentTask` */ -export interface AgentTaskInput { +/** An input for mutations affecting `PlatformAgentTask` */ +export interface PlatformAgentTaskInput { /** User who authored this task */ actorId?: string; /** Reviewer feedback or reason for the decision */ @@ -1016,8 +3076,6 @@ export interface AgentTaskInput { /** User who approved or rejected this task */ approvedBy?: string; createdAt?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; /** Natural-language description of the work to do */ description: string; /** Error message captured when the task failed */ @@ -1034,9 +3092,11 @@ export interface AgentTaskInput { /** Current status of this task */ status?: string; updatedAt?: string; + /** Who may read this task, inherited from its parent */ + visibility?: string; } -/** Represents an update to a `AgentTask`. Fields that are set will be updated. */ -export interface AgentTaskPatch { +/** Represents an update to a `PlatformAgentTask`. Fields that are set will be updated. */ +export interface PlatformAgentTaskPatch { /** User who authored this task */ actorId?: string; /** Reviewer feedback or reason for the decision */ @@ -1048,8 +3108,6 @@ export interface AgentTaskPatch { /** User who approved or rejected this task */ approvedBy?: string; createdAt?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId?: string; /** Natural-language description of the work to do */ description?: string; /** Error message captured when the task failed */ @@ -1066,35 +3124,23 @@ export interface AgentTaskPatch { /** Current status of this task */ status?: string; updatedAt?: string; + /** Who may read this task, inherited from its parent */ + visibility?: string; } -/** A filter to be used against `AgentThread` object types. All fields are combined with a logical ‘and.’ */ -export interface AgentThreadFilter { +/** A filter to be used against `PlatformAgentThread` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentThreadFilter { /** Filter by the object’s `agent` relation. */ - agent?: AgentFilter; + agent?: PlatformAgentFilter; /** A related `agent` exists. */ agentExists?: boolean; /** Filter by the object’s `agentId` field. */ agentId?: UUIDFilter; - /** Filter by the object’s `agentMessagesByThreadId` relation. */ - agentMessagesByThreadId?: AgentThreadToManyAgentMessageFilter; - /** `agentMessagesByThreadId` exist. */ - agentMessagesByThreadIdExist?: boolean; - /** Filter by the object’s `agentPlansByThreadId` relation. */ - agentPlansByThreadId?: AgentThreadToManyAgentPlanFilter; - /** `agentPlansByThreadId` exist. */ - agentPlansByThreadIdExist?: boolean; - /** Filter by the object’s `agentThreadsByParentThreadId` relation. */ - agentThreadsByParentThreadId?: AgentThreadToManyAgentThreadFilter; - /** `agentThreadsByParentThreadId` exist. */ - agentThreadsByParentThreadIdExist?: boolean; /** Checks for all expressions in this list. */ - and?: AgentThreadFilter[]; + and?: PlatformAgentThreadFilter[]; /** Filter by the object’s `archivedAt` field. */ archivedAt?: DatetimeFilter; /** 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 `isArchived` field. */ @@ -1104,19 +3150,35 @@ export interface AgentThreadFilter { /** Filter by the object’s `model` field. */ model?: StringFilter; /** Negates the expression. */ - not?: AgentThreadFilter; + not?: PlatformAgentThreadFilter; /** Checks for any expressions in this list. */ - or?: AgentThreadFilter[]; + or?: PlatformAgentThreadFilter[]; /** Filter by the object’s `ownerId` field. */ ownerId?: UUIDFilter; /** Filter by the object’s `parentThread` relation. */ - parentThread?: AgentThreadFilter; + parentThread?: PlatformAgentThreadFilter; /** A related `parentThread` exists. */ parentThreadExists?: boolean; /** Filter by the object’s `parentThreadId` field. */ parentThreadId?: UUIDFilter; + /** Filter by the object’s `platformAgentMessagesByThreadId` relation. */ + platformAgentMessagesByThreadId?: PlatformAgentThreadToManyPlatformAgentMessageFilter; + /** `platformAgentMessagesByThreadId` exist. */ + platformAgentMessagesByThreadIdExist?: boolean; + /** Filter by the object’s `platformAgentPlansByThreadId` relation. */ + platformAgentPlansByThreadId?: PlatformAgentThreadToManyPlatformAgentPlanFilter; + /** `platformAgentPlansByThreadId` exist. */ + platformAgentPlansByThreadIdExist?: boolean; + /** Filter by the object’s `platformAgentRunsByThreadId` relation. */ + platformAgentRunsByThreadId?: PlatformAgentThreadToManyPlatformAgentRunFilter; + /** `platformAgentRunsByThreadId` exist. */ + platformAgentRunsByThreadIdExist?: boolean; + /** Filter by the object’s `platformAgentThreadsByParentThreadId` relation. */ + platformAgentThreadsByParentThreadId?: PlatformAgentThreadToManyPlatformAgentThreadFilter; + /** `platformAgentThreadsByParentThreadId` exist. */ + platformAgentThreadsByParentThreadIdExist?: boolean; /** Filter by the object’s `promptTemplate` relation. */ - promptTemplate?: AgentPromptFilter; + promptTemplate?: PlatformAgentPromptFilter; /** A related `promptTemplate` exists. */ promptTemplateExists?: boolean; /** Filter by the object’s `promptTemplateId` field. */ @@ -1131,48 +3193,16 @@ export interface AgentThreadFilter { title?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `visibility` field. */ + visibility?: StringFilter; } -/** An input for mutations affecting `AgentThread` */ -export interface AgentThreadInput { - /** Agent instance assigned to this thread */ - agentId?: string; - /** Timestamp when this record was archived, NULL if active */ - archivedAt?: string; - createdAt?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - id?: string; - /** Whether this record has been archived by the user */ - isArchived?: boolean; - /** Conversation mode: ask (plain Q&A) or agent (tool-enabled) */ - mode?: string; - /** LLM model id this thread is bound to */ - model?: string; - /** User who owns this thread */ - ownerId?: string; - /** Parent thread that spawned this sub-conversation */ - parentThreadId?: string; - /** Optional FK to a shared prompt template */ - promptTemplateId?: string; - /** Current status of this thread */ - status?: string; - /** System prompt active for this thread */ - systemPrompt?: string; - /** User-defined labels for organizing and filtering threads */ - tags?: string[]; - /** Human-readable conversation title */ - title?: string; - updatedAt?: string; -} -/** Represents an update to a `AgentThread`. Fields that are set will be updated. */ -export interface AgentThreadPatch { +/** An input for mutations affecting `PlatformAgentThread` */ +export interface PlatformAgentThreadInput { /** Agent instance assigned to this thread */ agentId?: string; /** Timestamp when this record was archived, NULL if active */ archivedAt?: string; createdAt?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId?: string; id?: string; /** Whether this record has been archived by the user */ isArchived?: boolean; @@ -1182,154 +3212,116 @@ export interface AgentThreadPatch { model?: string; /** User who owns this thread */ ownerId?: string; - /** Parent thread that spawned this sub-conversation */ - parentThreadId?: string; - /** Optional FK to a shared prompt template */ - promptTemplateId?: string; - /** Current status of this thread */ - status?: string; - /** System prompt active for this thread */ - systemPrompt?: string; - /** User-defined labels for organizing and filtering threads */ - tags?: string[]; - /** Human-readable conversation title */ - title?: string; - updatedAt?: string; -} -/** A filter to be used against many `AgentMessage` object types. All fields are combined with a logical ‘and.’ */ -export interface AgentThreadToManyAgentMessageFilter { - /** Filters to entities where every related entity matches. */ - every?: AgentMessageFilter; - /** Filters to entities where no related entity matches. */ - none?: AgentMessageFilter; - /** Filters to entities where at least one related entity matches. */ - some?: AgentMessageFilter; -} -/** A filter to be used against many `AgentPlan` object types. All fields are combined with a logical ‘and.’ */ -export interface AgentThreadToManyAgentPlanFilter { - /** Filters to entities where every related entity matches. */ - every?: AgentPlanFilter; - /** Filters to entities where no related entity matches. */ - none?: AgentPlanFilter; - /** Filters to entities where at least one related entity matches. */ - some?: AgentPlanFilter; -} -/** A filter to be used against many `AgentThread` object types. All fields are combined with a logical ‘and.’ */ -export interface AgentThreadToManyAgentThreadFilter { - /** Filters to entities where every related entity matches. */ - every?: AgentThreadFilter; - /** Filters to entities where no related entity matches. */ - none?: AgentThreadFilter; - /** Filters to entities where at least one related entity matches. */ - some?: AgentThreadFilter; -} -/** A filter to be used against many `Agent` object types. All fields are combined with a logical ‘and.’ */ -export interface AgentToManyAgentFilter { - /** Filters to entities where every related entity matches. */ - every?: AgentFilter; - /** Filters to entities where no related entity matches. */ - none?: AgentFilter; - /** Filters to entities where at least one related entity matches. */ - some?: AgentFilter; -} -/** A filter to be used against many `AgentMessage` object types. All fields are combined with a logical ‘and.’ */ -export interface AgentToManyAgentMessageFilter { - /** Filters to entities where every related entity matches. */ - every?: AgentMessageFilter; - /** Filters to entities where no related entity matches. */ - none?: AgentMessageFilter; - /** Filters to entities where at least one related entity matches. */ - some?: AgentMessageFilter; -} -/** A filter to be used against many `AgentThread` object types. All fields are combined with a logical ‘and.’ */ -export interface AgentToManyAgentThreadFilter { - /** Filters to entities where every related entity matches. */ - every?: AgentThreadFilter; - /** Filters to entities where no related entity matches. */ - none?: AgentThreadFilter; - /** Filters to entities where at least one related entity matches. */ - some?: AgentThreadFilter; -} -export interface CreateAgentInput { - /** The `Agent` to be created by this mutation. */ - agent: AgentInput; - clientMutationId?: string; -} -export interface CreateAgentMessageInput { - /** The `AgentMessage` to be created by this mutation. */ - agentMessage: AgentMessageInput; - clientMutationId?: string; -} -export interface CreateAgentPersonaInput { - /** The `AgentPersona` to be created by this mutation. */ - agentPersona: AgentPersonaInput; - clientMutationId?: string; -} -export interface CreateAgentPlanInput { - /** The `AgentPlan` to be created by this mutation. */ - agentPlan: AgentPlanInput; - clientMutationId?: string; -} -export interface CreateAgentPromptInput { - /** The `AgentPrompt` to be created by this mutation. */ - agentPrompt: AgentPromptInput; - clientMutationId?: string; -} -export interface CreateAgentResourceChunkInput { - /** The `AgentResourceChunk` to be created by this mutation. */ - agentResourceChunk: AgentResourceChunkInput; - clientMutationId?: string; -} -export interface CreateAgentResourceInput { - /** The `AgentResource` to be created by this mutation. */ - agentResource: AgentResourceInput; - clientMutationId?: string; -} -export interface CreateAgentTaskInput { - /** The `AgentTask` to be created by this mutation. */ - agentTask: AgentTaskInput; - clientMutationId?: string; -} -export interface CreateAgentThreadInput { - /** The `AgentThread` to be created by this mutation. */ - agentThread: AgentThreadInput; - clientMutationId?: string; -} -export interface DeleteAgentInput { - clientMutationId?: string; - id: string; + /** Parent thread that spawned this sub-conversation */ + parentThreadId?: string; + /** Optional FK to a shared prompt template */ + promptTemplateId?: string; + /** Current status of this thread */ + status?: string; + /** System prompt active for this thread */ + systemPrompt?: string; + /** User-defined labels for organizing and filtering threads */ + tags?: string[]; + /** Human-readable conversation title */ + title?: string; + updatedAt?: string; + /** Who may read this thread: private (owner only) or entity (the scope's members) */ + visibility?: string; } -export interface DeleteAgentMessageInput { - clientMutationId?: string; - id: string; +/** Represents an update to a `PlatformAgentThread`. Fields that are set will be updated. */ +export interface PlatformAgentThreadPatch { + /** Agent instance assigned to this thread */ + agentId?: string; + /** Timestamp when this record was archived, NULL if active */ + archivedAt?: string; + createdAt?: string; + id?: string; + /** Whether this record has been archived by the user */ + isArchived?: boolean; + /** Conversation mode: ask (plain Q&A) or agent (tool-enabled) */ + mode?: string; + /** LLM model id this thread is bound to */ + model?: string; + /** User who owns this thread */ + ownerId?: string; + /** Parent thread that spawned this sub-conversation */ + parentThreadId?: string; + /** Optional FK to a shared prompt template */ + promptTemplateId?: string; + /** Current status of this thread */ + status?: string; + /** System prompt active for this thread */ + systemPrompt?: string; + /** User-defined labels for organizing and filtering threads */ + tags?: string[]; + /** Human-readable conversation title */ + title?: string; + updatedAt?: string; + /** Who may read this thread: private (owner only) or entity (the scope's members) */ + visibility?: string; } -export interface DeleteAgentPersonaInput { - clientMutationId?: string; - id: string; +/** A filter to be used against many `PlatformAgentMessage` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentThreadToManyPlatformAgentMessageFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformAgentMessageFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformAgentMessageFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformAgentMessageFilter; } -export interface DeleteAgentPlanInput { - clientMutationId?: string; - id: string; +/** A filter to be used against many `PlatformAgentPlan` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentThreadToManyPlatformAgentPlanFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformAgentPlanFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformAgentPlanFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformAgentPlanFilter; } -export interface DeleteAgentPromptInput { - clientMutationId?: string; - id: string; +/** A filter to be used against many `PlatformAgentRun` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentThreadToManyPlatformAgentRunFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformAgentRunFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformAgentRunFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformAgentRunFilter; } -export interface DeleteAgentResourceChunkInput { - clientMutationId?: string; - id: string; +/** A filter to be used against many `PlatformAgentThread` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentThreadToManyPlatformAgentThreadFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformAgentThreadFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformAgentThreadFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformAgentThreadFilter; } -export interface DeleteAgentResourceInput { - clientMutationId?: string; - id: string; +/** A filter to be used against many `PlatformAgent` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentToManyPlatformAgentFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformAgentFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformAgentFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformAgentFilter; } -export interface DeleteAgentTaskInput { - clientMutationId?: string; - id: string; +/** A filter to be used against many `PlatformAgentMessage` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentToManyPlatformAgentMessageFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformAgentMessageFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformAgentMessageFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformAgentMessageFilter; } -export interface DeleteAgentThreadInput { - clientMutationId?: string; - id: string; +/** A filter to be used against many `PlatformAgentThread` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentToManyPlatformAgentThreadFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformAgentThreadFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformAgentThreadFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformAgentThreadFilter; } export interface ProvisionBucketInput { /** The logical bucket key (e.g., "public", "private") */ @@ -1482,6 +3474,78 @@ export interface UpdateAgentThreadInput { clientMutationId?: string; id: string; } +export interface UpdatePlatformAgentEventInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `PlatformAgentEvent` being updated. */ + platformAgentEventPatch: PlatformAgentEventPatch; +} +export interface UpdatePlatformAgentInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `PlatformAgent` being updated. */ + platformAgentPatch: PlatformAgentPatch; +} +export interface UpdatePlatformAgentMessageInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `PlatformAgentMessage` being updated. */ + platformAgentMessagePatch: PlatformAgentMessagePatch; +} +export interface UpdatePlatformAgentPersonaInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `PlatformAgentPersona` being updated. */ + platformAgentPersonaPatch: PlatformAgentPersonaPatch; +} +export interface UpdatePlatformAgentPlanInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `PlatformAgentPlan` being updated. */ + platformAgentPlanPatch: PlatformAgentPlanPatch; +} +export interface UpdatePlatformAgentPromptInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `PlatformAgentPrompt` being updated. */ + platformAgentPromptPatch: PlatformAgentPromptPatch; +} +export interface UpdatePlatformAgentResourceChunkInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `PlatformAgentResourceChunk` being updated. */ + platformAgentResourceChunkPatch: PlatformAgentResourceChunkPatch; +} +export interface UpdatePlatformAgentResourceInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `PlatformAgentResource` being updated. */ + platformAgentResourcePatch: PlatformAgentResourcePatch; +} +export interface UpdatePlatformAgentRunInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `PlatformAgentRun` being updated. */ + platformAgentRunPatch: PlatformAgentRunPatch; +} +export interface UpdatePlatformAgentRunWorkspaceInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `PlatformAgentRunWorkspace` being updated. */ + platformAgentRunWorkspacePatch: PlatformAgentRunWorkspacePatch; +} +export interface UpdatePlatformAgentTaskInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `PlatformAgentTask` being updated. */ + platformAgentTaskPatch: PlatformAgentTaskPatch; +} +export interface UpdatePlatformAgentThreadInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `PlatformAgentThread` being updated. */ + platformAgentThreadPatch: PlatformAgentThreadPatch; +} /** Input for vector similarity search. Provide a query vector, optional metric, and optional max distance threshold. */ export interface VectorNearbyInput { /** Maximum distance threshold. Only rows within this distance are returned. */ @@ -1562,6 +3626,90 @@ export interface AgentConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `PlatformAgentEvent` values. */ +export interface PlatformAgentEventConnection { + edges: PlatformAgentEventEdge[]; + nodes: PlatformAgentEvent[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `PlatformAgentMessage` values. */ +export interface PlatformAgentMessageConnection { + edges: PlatformAgentMessageEdge[]; + nodes: PlatformAgentMessage[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `PlatformAgentPersona` values. */ +export interface PlatformAgentPersonaConnection { + edges: PlatformAgentPersonaEdge[]; + nodes: PlatformAgentPersona[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `PlatformAgentPlan` values. */ +export interface PlatformAgentPlanConnection { + edges: PlatformAgentPlanEdge[]; + nodes: PlatformAgentPlan[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `PlatformAgentPrompt` values. */ +export interface PlatformAgentPromptConnection { + edges: PlatformAgentPromptEdge[]; + nodes: PlatformAgentPrompt[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `PlatformAgentResourceChunk` values. */ +export interface PlatformAgentResourceChunkConnection { + edges: PlatformAgentResourceChunkEdge[]; + nodes: PlatformAgentResourceChunk[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `PlatformAgentResource` values. */ +export interface PlatformAgentResourceConnection { + edges: PlatformAgentResourceEdge[]; + nodes: PlatformAgentResource[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `PlatformAgentRunWorkspace` values. */ +export interface PlatformAgentRunWorkspaceConnection { + edges: PlatformAgentRunWorkspaceEdge[]; + nodes: PlatformAgentRunWorkspace[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `PlatformAgentRun` values. */ +export interface PlatformAgentRunConnection { + edges: PlatformAgentRunEdge[]; + nodes: PlatformAgentRun[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `PlatformAgentTask` values. */ +export interface PlatformAgentTaskConnection { + edges: PlatformAgentTaskEdge[]; + nodes: PlatformAgentTask[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `PlatformAgentThread` values. */ +export interface PlatformAgentThreadConnection { + edges: PlatformAgentThreadEdge[]; + nodes: PlatformAgentThread[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `PlatformAgent` values. */ +export interface PlatformAgentConnection { + edges: PlatformAgentEdge[]; + nodes: PlatformAgent[]; + pageInfo: PageInfo; + totalCount: number; +} export interface CreateAgentPayload { /** The `Agent` that was created by this mutation. */ agent?: Agent | null; @@ -1616,6 +3764,78 @@ export interface CreateAgentThreadPayload { agentThreadEdge?: AgentThreadEdge | null; clientMutationId?: string | null; } +export interface CreatePlatformAgentPayload { + clientMutationId?: string | null; + /** The `PlatformAgent` that was created by this mutation. */ + platformAgent?: PlatformAgent | null; + platformAgentEdge?: PlatformAgentEdge | null; +} +export interface CreatePlatformAgentEventPayload { + clientMutationId?: string | null; + /** The `PlatformAgentEvent` that was created by this mutation. */ + platformAgentEvent?: PlatformAgentEvent | null; + platformAgentEventEdge?: PlatformAgentEventEdge | null; +} +export interface CreatePlatformAgentMessagePayload { + clientMutationId?: string | null; + /** The `PlatformAgentMessage` that was created by this mutation. */ + platformAgentMessage?: PlatformAgentMessage | null; + platformAgentMessageEdge?: PlatformAgentMessageEdge | null; +} +export interface CreatePlatformAgentPersonaPayload { + clientMutationId?: string | null; + /** The `PlatformAgentPersona` that was created by this mutation. */ + platformAgentPersona?: PlatformAgentPersona | null; + platformAgentPersonaEdge?: PlatformAgentPersonaEdge | null; +} +export interface CreatePlatformAgentPlanPayload { + clientMutationId?: string | null; + /** The `PlatformAgentPlan` that was created by this mutation. */ + platformAgentPlan?: PlatformAgentPlan | null; + platformAgentPlanEdge?: PlatformAgentPlanEdge | null; +} +export interface CreatePlatformAgentPromptPayload { + clientMutationId?: string | null; + /** The `PlatformAgentPrompt` that was created by this mutation. */ + platformAgentPrompt?: PlatformAgentPrompt | null; + platformAgentPromptEdge?: PlatformAgentPromptEdge | null; +} +export interface CreatePlatformAgentResourcePayload { + clientMutationId?: string | null; + /** The `PlatformAgentResource` that was created by this mutation. */ + platformAgentResource?: PlatformAgentResource | null; + platformAgentResourceEdge?: PlatformAgentResourceEdge | null; +} +export interface CreatePlatformAgentResourceChunkPayload { + clientMutationId?: string | null; + /** The `PlatformAgentResourceChunk` that was created by this mutation. */ + platformAgentResourceChunk?: PlatformAgentResourceChunk | null; + platformAgentResourceChunkEdge?: PlatformAgentResourceChunkEdge | null; +} +export interface CreatePlatformAgentRunPayload { + clientMutationId?: string | null; + /** The `PlatformAgentRun` that was created by this mutation. */ + platformAgentRun?: PlatformAgentRun | null; + platformAgentRunEdge?: PlatformAgentRunEdge | null; +} +export interface CreatePlatformAgentRunWorkspacePayload { + clientMutationId?: string | null; + /** The `PlatformAgentRunWorkspace` that was created by this mutation. */ + platformAgentRunWorkspace?: PlatformAgentRunWorkspace | null; + platformAgentRunWorkspaceEdge?: PlatformAgentRunWorkspaceEdge | null; +} +export interface CreatePlatformAgentTaskPayload { + clientMutationId?: string | null; + /** The `PlatformAgentTask` that was created by this mutation. */ + platformAgentTask?: PlatformAgentTask | null; + platformAgentTaskEdge?: PlatformAgentTaskEdge | null; +} +export interface CreatePlatformAgentThreadPayload { + clientMutationId?: string | null; + /** The `PlatformAgentThread` that was created by this mutation. */ + platformAgentThread?: PlatformAgentThread | null; + platformAgentThreadEdge?: PlatformAgentThreadEdge | null; +} export interface DeleteAgentPayload { /** The `Agent` that was deleted by this mutation. */ agent?: Agent | null; @@ -1670,19 +3890,86 @@ export interface DeleteAgentThreadPayload { agentThreadEdge?: AgentThreadEdge | null; clientMutationId?: string | null; } +export interface DeletePlatformAgentPayload { + clientMutationId?: string | null; + /** The `PlatformAgent` that was deleted by this mutation. */ + platformAgent?: PlatformAgent | null; + platformAgentEdge?: PlatformAgentEdge | null; +} +export interface DeletePlatformAgentEventPayload { + clientMutationId?: string | null; + /** The `PlatformAgentEvent` that was deleted by this mutation. */ + platformAgentEvent?: PlatformAgentEvent | null; + platformAgentEventEdge?: PlatformAgentEventEdge | null; +} +export interface DeletePlatformAgentMessagePayload { + clientMutationId?: string | null; + /** The `PlatformAgentMessage` that was deleted by this mutation. */ + platformAgentMessage?: PlatformAgentMessage | null; + platformAgentMessageEdge?: PlatformAgentMessageEdge | null; +} +export interface DeletePlatformAgentPersonaPayload { + clientMutationId?: string | null; + /** The `PlatformAgentPersona` that was deleted by this mutation. */ + platformAgentPersona?: PlatformAgentPersona | null; + platformAgentPersonaEdge?: PlatformAgentPersonaEdge | null; +} +export interface DeletePlatformAgentPlanPayload { + clientMutationId?: string | null; + /** The `PlatformAgentPlan` that was deleted by this mutation. */ + platformAgentPlan?: PlatformAgentPlan | null; + platformAgentPlanEdge?: PlatformAgentPlanEdge | null; +} +export interface DeletePlatformAgentPromptPayload { + clientMutationId?: string | null; + /** The `PlatformAgentPrompt` that was deleted by this mutation. */ + platformAgentPrompt?: PlatformAgentPrompt | null; + platformAgentPromptEdge?: PlatformAgentPromptEdge | null; +} +export interface DeletePlatformAgentResourcePayload { + clientMutationId?: string | null; + /** The `PlatformAgentResource` that was deleted by this mutation. */ + platformAgentResource?: PlatformAgentResource | null; + platformAgentResourceEdge?: PlatformAgentResourceEdge | null; +} +export interface DeletePlatformAgentResourceChunkPayload { + clientMutationId?: string | null; + /** The `PlatformAgentResourceChunk` that was deleted by this mutation. */ + platformAgentResourceChunk?: PlatformAgentResourceChunk | null; + platformAgentResourceChunkEdge?: PlatformAgentResourceChunkEdge | null; +} +export interface DeletePlatformAgentRunPayload { + clientMutationId?: string | null; + /** The `PlatformAgentRun` that was deleted by this mutation. */ + platformAgentRun?: PlatformAgentRun | null; + platformAgentRunEdge?: PlatformAgentRunEdge | null; +} +export interface DeletePlatformAgentRunWorkspacePayload { + clientMutationId?: string | null; + /** The `PlatformAgentRunWorkspace` that was deleted by this mutation. */ + platformAgentRunWorkspace?: PlatformAgentRunWorkspace | null; + platformAgentRunWorkspaceEdge?: PlatformAgentRunWorkspaceEdge | null; +} +export interface DeletePlatformAgentTaskPayload { + clientMutationId?: string | null; + /** The `PlatformAgentTask` that was deleted by this mutation. */ + platformAgentTask?: PlatformAgentTask | null; + platformAgentTaskEdge?: PlatformAgentTaskEdge | null; +} +export interface DeletePlatformAgentThreadPayload { + clientMutationId?: string | null; + /** The `PlatformAgentThread` that was deleted by this mutation. */ + platformAgentThread?: PlatformAgentThread | null; + platformAgentThreadEdge?: PlatformAgentThreadEdge | 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; + /** The logical bucket row that was queued for reconciliation. */ + bucketId: string; + bucketKey: string; + /** The reconciler job enqueued to provision this bucket. */ + jobId: string; + /** The physical bucket name already recorded, or null when reconciliation has not completed. */ + physicalName?: string | null; } export interface UpdateAgentPayload { /** The `Agent` that was updated by this mutation. */ @@ -1738,6 +4025,78 @@ export interface UpdateAgentThreadPayload { agentThreadEdge?: AgentThreadEdge | null; clientMutationId?: string | null; } +export interface UpdatePlatformAgentPayload { + clientMutationId?: string | null; + /** The `PlatformAgent` that was updated by this mutation. */ + platformAgent?: PlatformAgent | null; + platformAgentEdge?: PlatformAgentEdge | null; +} +export interface UpdatePlatformAgentEventPayload { + clientMutationId?: string | null; + /** The `PlatformAgentEvent` that was updated by this mutation. */ + platformAgentEvent?: PlatformAgentEvent | null; + platformAgentEventEdge?: PlatformAgentEventEdge | null; +} +export interface UpdatePlatformAgentMessagePayload { + clientMutationId?: string | null; + /** The `PlatformAgentMessage` that was updated by this mutation. */ + platformAgentMessage?: PlatformAgentMessage | null; + platformAgentMessageEdge?: PlatformAgentMessageEdge | null; +} +export interface UpdatePlatformAgentPersonaPayload { + clientMutationId?: string | null; + /** The `PlatformAgentPersona` that was updated by this mutation. */ + platformAgentPersona?: PlatformAgentPersona | null; + platformAgentPersonaEdge?: PlatformAgentPersonaEdge | null; +} +export interface UpdatePlatformAgentPlanPayload { + clientMutationId?: string | null; + /** The `PlatformAgentPlan` that was updated by this mutation. */ + platformAgentPlan?: PlatformAgentPlan | null; + platformAgentPlanEdge?: PlatformAgentPlanEdge | null; +} +export interface UpdatePlatformAgentPromptPayload { + clientMutationId?: string | null; + /** The `PlatformAgentPrompt` that was updated by this mutation. */ + platformAgentPrompt?: PlatformAgentPrompt | null; + platformAgentPromptEdge?: PlatformAgentPromptEdge | null; +} +export interface UpdatePlatformAgentResourcePayload { + clientMutationId?: string | null; + /** The `PlatformAgentResource` that was updated by this mutation. */ + platformAgentResource?: PlatformAgentResource | null; + platformAgentResourceEdge?: PlatformAgentResourceEdge | null; +} +export interface UpdatePlatformAgentResourceChunkPayload { + clientMutationId?: string | null; + /** The `PlatformAgentResourceChunk` that was updated by this mutation. */ + platformAgentResourceChunk?: PlatformAgentResourceChunk | null; + platformAgentResourceChunkEdge?: PlatformAgentResourceChunkEdge | null; +} +export interface UpdatePlatformAgentRunPayload { + clientMutationId?: string | null; + /** The `PlatformAgentRun` that was updated by this mutation. */ + platformAgentRun?: PlatformAgentRun | null; + platformAgentRunEdge?: PlatformAgentRunEdge | null; +} +export interface UpdatePlatformAgentRunWorkspacePayload { + clientMutationId?: string | null; + /** The `PlatformAgentRunWorkspace` that was updated by this mutation. */ + platformAgentRunWorkspace?: PlatformAgentRunWorkspace | null; + platformAgentRunWorkspaceEdge?: PlatformAgentRunWorkspaceEdge | null; +} +export interface UpdatePlatformAgentTaskPayload { + clientMutationId?: string | null; + /** The `PlatformAgentTask` that was updated by this mutation. */ + platformAgentTask?: PlatformAgentTask | null; + platformAgentTaskEdge?: PlatformAgentTaskEdge | null; +} +export interface UpdatePlatformAgentThreadPayload { + clientMutationId?: string | null; + /** The `PlatformAgentThread` that was updated by this mutation. */ + platformAgentThread?: PlatformAgentThread | null; + platformAgentThreadEdge?: PlatformAgentThreadEdge | null; +} /** Information about a database table */ export interface MetaTable { constraints: MetaConstraints; @@ -1830,6 +4189,78 @@ export interface AgentEdge { /** The `Agent` at the end of the edge. */ node?: Agent | null; } +/** A `PlatformAgentEvent` edge in the connection. */ +export interface PlatformAgentEventEdge { + cursor?: string | null; + /** The `PlatformAgentEvent` at the end of the edge. */ + node?: PlatformAgentEvent | null; +} +/** A `PlatformAgentMessage` edge in the connection. */ +export interface PlatformAgentMessageEdge { + cursor?: string | null; + /** The `PlatformAgentMessage` at the end of the edge. */ + node?: PlatformAgentMessage | null; +} +/** A `PlatformAgentPersona` edge in the connection. */ +export interface PlatformAgentPersonaEdge { + cursor?: string | null; + /** The `PlatformAgentPersona` at the end of the edge. */ + node?: PlatformAgentPersona | null; +} +/** A `PlatformAgentPlan` edge in the connection. */ +export interface PlatformAgentPlanEdge { + cursor?: string | null; + /** The `PlatformAgentPlan` at the end of the edge. */ + node?: PlatformAgentPlan | null; +} +/** A `PlatformAgentPrompt` edge in the connection. */ +export interface PlatformAgentPromptEdge { + cursor?: string | null; + /** The `PlatformAgentPrompt` at the end of the edge. */ + node?: PlatformAgentPrompt | null; +} +/** A `PlatformAgentResourceChunk` edge in the connection. */ +export interface PlatformAgentResourceChunkEdge { + cursor?: string | null; + /** The `PlatformAgentResourceChunk` at the end of the edge. */ + node?: PlatformAgentResourceChunk | null; +} +/** A `PlatformAgentResource` edge in the connection. */ +export interface PlatformAgentResourceEdge { + cursor?: string | null; + /** The `PlatformAgentResource` at the end of the edge. */ + node?: PlatformAgentResource | null; +} +/** A `PlatformAgentRunWorkspace` edge in the connection. */ +export interface PlatformAgentRunWorkspaceEdge { + cursor?: string | null; + /** The `PlatformAgentRunWorkspace` at the end of the edge. */ + node?: PlatformAgentRunWorkspace | null; +} +/** A `PlatformAgentRun` edge in the connection. */ +export interface PlatformAgentRunEdge { + cursor?: string | null; + /** The `PlatformAgentRun` at the end of the edge. */ + node?: PlatformAgentRun | null; +} +/** A `PlatformAgentTask` edge in the connection. */ +export interface PlatformAgentTaskEdge { + cursor?: string | null; + /** The `PlatformAgentTask` at the end of the edge. */ + node?: PlatformAgentTask | null; +} +/** A `PlatformAgentThread` edge in the connection. */ +export interface PlatformAgentThreadEdge { + cursor?: string | null; + /** The `PlatformAgentThread` at the end of the edge. */ + node?: PlatformAgentThread | null; +} +/** A `PlatformAgent` edge in the connection. */ +export interface PlatformAgentEdge { + cursor?: string | null; + /** The `PlatformAgent` at the end of the edge. */ + node?: PlatformAgent | null; +} /** Table constraints */ export interface MetaConstraints { foreignKey: MetaForeignKeyConstraint[]; @@ -1942,10 +4373,18 @@ export interface MetaSearch { } /** Storage metadata for a table */ export interface MetaStorage { + /** GraphQL type name of the plane's buckets table */ + bucketsType: string; + /** Computed download-URL field on the files type; null on the buckets side */ + downloadUrlField?: string | null; + /** GraphQL type name of the plane's files table */ + filesType: string; /** Whether this table is a storage buckets table */ isBucketsTable: boolean; /** Whether this table is a storage files table */ isFilesTable: boolean; + /** The plane's GraphQL upload surface */ + upload: MetaStorageUpload; } /** Information about a unique constraint */ export interface MetaUniqueConstraint { @@ -2028,6 +4467,27 @@ export interface MetaSearchConfig { /** JSON-encoded per-adapter score weights */ weights?: string | null; } +/** The GraphQL upload surface of a storage plane, derived from the registry facts the presigned-url plugin emits from */ +export interface MetaStorageUpload { + /** Per-file input type inside the bulk input */ + bulkFileInputType: string; + /** Per-file payload type inside the bulk payload */ + bulkFilePayloadType: string; + /** Input type of the bulk upload mutation */ + bulkInputType: string; + /** Root mutation field for bulk upload */ + bulkMutation: string; + /** Payload type of the bulk upload mutation */ + bulkPayloadType: string; + /** Input type of the single upload mutation */ + inputType: string; + /** Root mutation field for single-file upload (e.g. uploadAppFile) */ + mutation: string; + /** Payload type of the single upload mutation */ + payloadType: string; + /** Whether the upload input requires ownerId (entity-keyed plane) */ + requiresOwnerId: boolean; +} /** 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. */ export interface MetaScalarEncoding { /** For 'vector': declared length, else null. */ diff --git a/sdk/constructive-react/src/agent/types.ts b/sdk/constructive-react/src/agent/types.ts index b72c97f05d..cd613810cc 100644 --- a/sdk/constructive-react/src/agent/types.ts +++ b/sdk/constructive-react/src/agent/types.ts @@ -24,15 +24,18 @@ export interface AgentMessage { createdAt: string | null; databaseId: string | null; id: string | null; + kind: string | null; model: string | null; parts: unknown | null; threadId: string | null; updatedAt: string | null; + visibility: string | null; } export interface AgentPersona { config: unknown | null; createdAt: string | null; createdBy: string | null; + createdByPrincipal: string | null; databaseId: string | null; description: string | null; id: string | null; @@ -43,6 +46,7 @@ export interface AgentPersona { systemPrompt: string | null; updatedAt: string | null; updatedBy: string | null; + updatedByPrincipal: string | null; } export interface AgentPlan { createdAt: string | null; @@ -54,11 +58,13 @@ export interface AgentPlan { threadId: string | null; title: string | null; updatedAt: string | null; + visibility: string | null; } export interface AgentPrompt { content: string | null; createdAt: string | null; createdBy: string | null; + createdByPrincipal: string | null; databaseId: string | null; description: string | null; id: string | null; @@ -67,12 +73,14 @@ export interface AgentPrompt { name: string | null; updatedAt: string | null; updatedBy: string | null; + updatedByPrincipal: string | null; } export interface AgentResourceChunk { agentResourceId: string | null; body: string | null; chunkIndex: number | null; createdAt: string | null; + databaseId: string | null; embedding: number[] | null; embeddingVectorDistance: number | null; id: string | null; @@ -86,6 +94,7 @@ export interface AgentResource { bodyTrgmSimilarity: number | null; createdAt: string | null; createdBy: string | null; + createdByPrincipal: string | null; databaseId: string | null; description: string | null; descriptionTrgmSimilarity: number | null; @@ -107,6 +116,7 @@ export interface AgentResource { titleTrgmSimilarity: number | null; updatedAt: string | null; updatedBy: string | null; + updatedByPrincipal: string | null; } export interface AgentTask { actorId: string | null; @@ -125,6 +135,7 @@ export interface AgentTask { source: string | null; status: string | null; updatedAt: string | null; + visibility: string | null; } export interface AgentThread { agentId: string | null; @@ -143,6 +154,214 @@ export interface AgentThread { tags: string[] | null; title: string | null; updatedAt: string | null; + visibility: string | null; +} +export interface PlatformAgent { + config: unknown | null; + createdAt: string | null; + id: string | null; + isEphemeral: boolean | null; + name: string | null; + ownerId: string | null; + parentId: string | null; + personaId: string | null; + status: string | null; + systemPrompt: string | null; + updatedAt: string | null; +} +export interface PlatformAgentEvent { + actorId: string | null; + createdAt: string | null; + entry: unknown | null; + id: string | null; + recordedAt: string | null; + runId: string | null; + seq: number | null; + transcriptFormat: string | null; + transcriptVersion: number | null; + updatedAt: string | null; + visibility: string | null; +} +export interface PlatformAgentMessage { + actorId: string | null; + agentId: string | null; + authorRole: string | null; + createdAt: string | null; + deliveredRunId: string | null; + id: string | null; + kind: string | null; + model: string | null; + parts: unknown | null; + threadId: string | null; + updatedAt: string | null; + visibility: string | null; +} +export interface PlatformAgentPersona { + config: unknown | null; + createdAt: string | null; + createdBy: string | null; + createdByPrincipal: string | null; + description: string | null; + id: string | null; + isActive: boolean | null; + name: string | null; + resources: string[] | null; + slug: string | null; + systemPrompt: string | null; + updatedAt: string | null; + updatedBy: string | null; + updatedByPrincipal: string | null; +} +export interface PlatformAgentPlan { + createdAt: string | null; + description: string | null; + id: string | null; + ownerId: string | null; + status: string | null; + threadId: string | null; + title: string | null; + updatedAt: string | null; + visibility: string | null; +} +export interface PlatformAgentPrompt { + content: string | null; + createdAt: string | null; + createdBy: string | null; + createdByPrincipal: string | null; + description: string | null; + id: string | null; + isDefault: boolean | null; + metadata: unknown | null; + name: string | null; + updatedAt: string | null; + updatedBy: string | null; + updatedByPrincipal: string | null; +} +export interface PlatformAgentResourceChunk { + body: string | null; + chunkIndex: number | null; + createdAt: string | null; + embedding: number[] | null; + embeddingVectorDistance: number | null; + id: string | null; + metadata: unknown | null; + platformAgentResourceId: string | null; + searchScore: number | null; + updatedAt: string | null; +} +export interface PlatformAgentResource { + archivedAt: string | null; + body: string | null; + bodyTrgmSimilarity: number | null; + createdAt: string | null; + createdBy: string | null; + createdByPrincipal: string | null; + description: string | null; + descriptionTrgmSimilarity: number | null; + embedding: number[] | null; + embeddingUpdatedAt: string | null; + embeddingVectorDistance: number | null; + id: string | null; + isActive: boolean | null; + isArchived: boolean | null; + keywords: string[] | null; + kind: string | null; + kindTrgmSimilarity: number | null; + metadata: unknown | null; + search: string | null; + searchScore: number | null; + searchTsvRank: number | null; + slug: string | null; + title: string | null; + titleTrgmSimilarity: number | null; + updatedAt: string | null; + updatedBy: string | null; + updatedByPrincipal: string | null; +} +export interface PlatformAgentRun { + actorId: string | null; + artifacts: unknown | null; + attempt: number | null; + baseCommit: string | null; + branch: string | null; + createdAt: string | null; + databaseId: string | null; + deadlineAt: string | null; + entityId: string | null; + error: string | null; + executionId: string | null; + finishedAt: string | null; + headCommit: string | null; + id: string | null; + lastEventSeq: number | null; + parentRunId: string | null; + placement: string | null; + principalId: string | null; + repoUrl: string | null; + startedAt: string | null; + status: string | null; + threadId: string | null; + tokenUsage: unknown | null; + totalCost: string | null; + updatedAt: string | null; + visibility: string | null; +} +export interface PlatformAgentRunWorkspace { + actorId: string | null; + artifacts: unknown | null; + baseBranch: string | null; + baseCommit: string | null; + branch: string | null; + clonedAt: string | null; + createdAt: string | null; + headCommit: string | null; + id: string | null; + lastUsedAt: string | null; + ordinal: number | null; + provider: string | null; + publication: string | null; + repo: string | null; + repositoryId: string | null; + runId: string | null; + state: string | null; + updatedAt: string | null; + visibility: string | null; +} +export interface PlatformAgentTask { + actorId: string | null; + approvalFeedback: string | null; + approvalStatus: string | null; + approvedAt: string | null; + approvedBy: string | null; + createdAt: string | null; + description: string | null; + error: string | null; + id: string | null; + orderIndex: number | null; + planId: string | null; + requiresApproval: boolean | null; + source: string | null; + status: string | null; + updatedAt: string | null; + visibility: string | null; +} +export interface PlatformAgentThread { + agentId: string | null; + archivedAt: string | null; + createdAt: string | null; + id: string | null; + isArchived: boolean | null; + mode: string | null; + model: string | null; + ownerId: string | null; + parentThreadId: string | null; + promptTemplateId: string | null; + status: string | null; + systemPrompt: string | null; + tags: string[] | null; + title: string | null; + updatedAt: string | null; + visibility: string | null; } export interface StringFilter { isNull?: boolean; diff --git a/sdk/constructive-react/src/api/README.md b/sdk/constructive-react/src/api/README.md index ac800bf9e8..e68195d1ea 100644 --- a/sdk/constructive-react/src/api/README.md +++ b/sdk/constructive-react/src/api/README.md @@ -8,9 +8,9 @@ ## Overview -- **Tables:** 86 -- **Custom queries:** 6 -- **Custom mutations:** 11 +- **Tables:** 91 +- **Custom queries:** 17 +- **Custom mutations:** 27 **Generators:** ORM, React Query diff --git a/sdk/constructive-react/src/api/hooks/README.md b/sdk/constructive-react/src/api/hooks/README.md index 4399f0dbc8..289a1984ef 100644 --- a/sdk/constructive-react/src/api/hooks/README.md +++ b/sdk/constructive-react/src/api/hooks/README.md @@ -47,16 +47,11 @@ 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 | -| `useAppComponentsQuery` | Query | App component rows binding an app to typed catalog rows (exactly one typed component reference per row) | -| `useAppComponentQuery` | Query | App component rows binding an app to typed catalog rows (exactly one typed component reference per row) | -| `useCreateAppComponentMutation` | Mutation | App component rows binding an app to typed catalog rows (exactly one typed component reference per row) | -| `useUpdateAppComponentMutation` | Mutation | App component rows binding an app to typed catalog rows (exactly one typed component reference per row) | -| `useDeleteAppComponentMutation` | Mutation | App component rows binding an app to typed catalog rows (exactly one typed component reference per row) | -| `useAppsQuery` | Query | App aggregates: thin identity rows whose components are global catalog references | -| `useAppQuery` | Query | App aggregates: thin identity rows whose components are global catalog references | -| `useCreateAppMutation` | Mutation | App aggregates: thin identity rows whose components are global catalog references | -| `useUpdateAppMutation` | Mutation | App aggregates: thin identity rows whose components are global catalog references | -| `useDeleteAppMutation` | Mutation | App aggregates: thin identity rows whose components are global catalog references | +| `useAstMigrationsQuery` | Query | List all astMigrations | +| `useAstMigrationQuery` | Query | Get one astMigration | +| `useCreateAstMigrationMutation` | Mutation | Create a astMigration | +| `useUpdateAstMigrationMutation` | Mutation | Update a astMigration | +| `useDeleteAstMigrationMutation` | Mutation | Delete a astMigration | | `useCheckConstraintsQuery` | Query | List all checkConstraints | | `useCheckConstraintQuery` | Query | Get one checkConstraint | | `useCreateCheckConstraintMutation` | Mutation | Create a checkConstraint | @@ -177,16 +172,18 @@ function App() { | `useCreateFunctionMutation` | Mutation | Create a function | | `useUpdateFunctionMutation` | Mutation | Update a function | | `useDeleteFunctionMutation` | Mutation | Delete a function | +| `useGetSitePreviewsQuery` | Query | List all getSitePreviews | +| `useCreateGetSitePreviewsRecordMutation` | Mutation | Create a getSitePreviewsRecord | | `useHostnameBindingsQuery` | Query | Compiled hostname index maintained by domain sync triggers; read only through the resolver | | `useHostnameBindingQuery` | Query | Compiled hostname index maintained by domain sync triggers; read only through the resolver | | `useCreateHostnameBindingMutation` | Mutation | Compiled hostname index maintained by domain sync triggers; read only through the resolver | | `useUpdateHostnameBindingMutation` | Mutation | Compiled hostname index maintained by domain sync triggers; read only through the resolver | | `useDeleteHostnameBindingMutation` | Mutation | Compiled hostname index maintained by domain sync triggers; read only through the resolver | -| `useHttpRoutesQuery` | Query | Request-time HTTP routing authority: registered domain plus path prefix and optional method to a typed target | -| `useHttpRouteQuery` | Query | Request-time HTTP routing authority: registered domain plus path prefix and optional method to a typed target | -| `useCreateHttpRouteMutation` | Mutation | Request-time HTTP routing authority: registered domain plus path prefix and optional method to a typed target | -| `useUpdateHttpRouteMutation` | Mutation | Request-time HTTP routing authority: registered domain plus path prefix and optional method to a typed target | -| `useDeleteHttpRouteMutation` | Mutation | Request-time HTTP routing authority: registered domain plus path prefix and optional method to a typed target | +| `useIdentityProviderRegistriesQuery` | Query | List all identityProviderRegistries | +| `useIdentityProviderRegistryQuery` | Query | Get one identityProviderRegistry | +| `useCreateIdentityProviderRegistryMutation` | Mutation | Create a identityProviderRegistry | +| `useUpdateIdentityProviderRegistryMutation` | Mutation | Update a identityProviderRegistry | +| `useDeleteIdentityProviderRegistryMutation` | Mutation | Delete a identityProviderRegistry | | `useIndicesQuery` | Query | List all indices | | `useIndexQuery` | Query | Get one index | | `useCreateIndexMutation` | Mutation | Create a index | @@ -262,6 +259,8 @@ function App() { | `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. | +| `usePlatformGetSitePreviewsQuery` | Query | List all platformGetSitePreviews | +| `useCreatePlatformGetSitePreviewsRecordMutation` | Mutation | Create a platformGetSitePreviewsRecord | | `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 | @@ -272,11 +271,11 @@ function App() { | `useCreatePlatformPageMutation` | Mutation | Site-owned page content — merkle-versioned head over the infra store; never a routing surface | | `useUpdatePlatformPageMutation` | Mutation | Site-owned page content — merkle-versioned head over the infra store; never a routing surface | | `useDeletePlatformPageMutation` | Mutation | Site-owned page content — merkle-versioned head over the infra store; never a routing surface | -| `usePlatformSiteAppLinksQuery` | Query | Native-app deep-link association metadata for a site surface (feeds AASA / assetlinks.json generation) | -| `usePlatformSiteAppLinkQuery` | Query | Native-app deep-link association metadata for a site surface (feeds AASA / assetlinks.json generation) | -| `useCreatePlatformSiteAppLinkMutation` | Mutation | Native-app deep-link association metadata for a site surface (feeds AASA / assetlinks.json generation) | -| `useUpdatePlatformSiteAppLinkMutation` | Mutation | Native-app deep-link association metadata for a site surface (feeds AASA / assetlinks.json generation) | -| `useDeletePlatformSiteAppLinkMutation` | Mutation | Native-app deep-link association metadata for a site surface (feeds AASA / assetlinks.json generation) | +| `usePlatformSiteAppLinksQuery` | Query | Per-host native-app association for a site surface: which app-owned store identity this host serves, and the path patterns it claims (joined with the store identity to render AASA / assetlinks.json) | +| `usePlatformSiteAppLinkQuery` | Query | Per-host native-app association for a site surface: which app-owned store identity this host serves, and the path patterns it claims (joined with the store identity to render AASA / assetlinks.json) | +| `useCreatePlatformSiteAppLinkMutation` | Mutation | Per-host native-app association for a site surface: which app-owned store identity this host serves, and the path patterns it claims (joined with the store identity to render AASA / assetlinks.json) | +| `useUpdatePlatformSiteAppLinkMutation` | Mutation | Per-host native-app association for a site surface: which app-owned store identity this host serves, and the path patterns it claims (joined with the store identity to render AASA / assetlinks.json) | +| `useDeletePlatformSiteAppLinkMutation` | Mutation | Per-host native-app association for a site surface: which app-owned store identity this host serves, and the path patterns it claims (joined with the store identity to render AASA / assetlinks.json) | | `usePlatformSitesQuery` | Query | Site surfaces exposed by this scope; publication makes a surface bindable from other scopes | | `usePlatformSiteQuery` | Query | Site surfaces exposed by this scope; publication makes a surface bindable from other scopes | | `useCreatePlatformSiteMutation` | Mutation | Site surfaces exposed by this scope; publication makes a surface bindable from other scopes | @@ -302,6 +301,11 @@ function App() { | `useCreatePlatformSiteModuleMutation` | Mutation | Frontend module configuration for a site surface; stores module name and JSON settings | | `useUpdatePlatformSiteModuleMutation` | Mutation | Frontend module configuration for a site surface; stores module name and JSON settings | | `useDeletePlatformSiteModuleMutation` | Mutation | Frontend module configuration for a site surface; stores module name and JSON settings | +| `usePlatformSiteReleasesQuery` | Query | Immutable static-site release manifest head, versioned in the site-owned merkle store | +| `usePlatformSiteReleaseQuery` | Query | Immutable static-site release manifest head, versioned in the site-owned merkle store | +| `useCreatePlatformSiteReleaseMutation` | Mutation | Immutable static-site release manifest head, versioned in the site-owned merkle store | +| `useUpdatePlatformSiteReleaseMutation` | Mutation | Immutable static-site release manifest head, versioned in the site-owned merkle store | +| `useDeletePlatformSiteReleaseMutation` | Mutation | Immutable static-site release manifest head, versioned in the site-owned merkle store | | `usePlatformSiteThemesQuery` | Query | Theme (colors, fonts, design tokens) for a site surface | | `usePlatformSiteThemeQuery` | Query | Theme (colors, fonts, design tokens) for a site surface | | `useCreatePlatformSiteThemeMutation` | Mutation | Theme (colors, fonts, design tokens) for a site surface | @@ -327,6 +331,11 @@ function App() { | `useCreatePubkeySettingMutation` | Mutation | Public-key crypto auth runtime configuration; typed references to the crypto sign-up/sign-in function plumbing | | `useUpdatePubkeySettingMutation` | Mutation | Public-key crypto auth runtime configuration; typed references to the crypto sign-up/sign-in function plumbing | | `useDeletePubkeySettingMutation` | Mutation | Public-key crypto auth runtime configuration; typed references to the crypto sign-up/sign-in function plumbing | +| `useRedirectsQuery` | Query | Redirect targets a route can point at; the edge answers with a redirect status instead of a backend | +| `useRedirectQuery` | Query | Redirect targets a route can point at; the edge answers with a redirect status instead of a backend | +| `useCreateRedirectMutation` | Mutation | Redirect targets a route can point at; the edge answers with a redirect status instead of a backend | +| `useUpdateRedirectMutation` | Mutation | Redirect targets a route can point at; the edge answers with a redirect status instead of a backend | +| `useDeleteRedirectMutation` | Mutation | Redirect targets a route can point at; the edge answers with a redirect status instead of a backend | | `useRlsSettingsQuery` | Query | RLS module runtime configuration; typed references to the authenticate/current_role function plumbing | | `useRlsSettingQuery` | Query | RLS module runtime configuration; typed references to the authenticate/current_role function plumbing | | `useCreateRlsSettingMutation` | Mutation | RLS module runtime configuration; typed references to the authenticate/current_role function plumbing | @@ -352,11 +361,11 @@ function App() { | `useCreateSchemaGrantMutation` | Mutation | Create a schemaGrant | | `useUpdateSchemaGrantMutation` | Mutation | Update a schemaGrant | | `useDeleteSchemaGrantMutation` | Mutation | Delete a schemaGrant | -| `useSiteAppLinksQuery` | Query | Native-app deep-link association metadata for a site surface (feeds AASA / assetlinks.json generation) | -| `useSiteAppLinkQuery` | Query | Native-app deep-link association metadata for a site surface (feeds AASA / assetlinks.json generation) | -| `useCreateSiteAppLinkMutation` | Mutation | Native-app deep-link association metadata for a site surface (feeds AASA / assetlinks.json generation) | -| `useUpdateSiteAppLinkMutation` | Mutation | Native-app deep-link association metadata for a site surface (feeds AASA / assetlinks.json generation) | -| `useDeleteSiteAppLinkMutation` | Mutation | Native-app deep-link association metadata for a site surface (feeds AASA / assetlinks.json generation) | +| `useSiteAppLinksQuery` | Query | Per-host native-app association for a site surface: which app-owned store identity this host serves, and the path patterns it claims (joined with the store identity to render AASA / assetlinks.json) | +| `useSiteAppLinkQuery` | Query | Per-host native-app association for a site surface: which app-owned store identity this host serves, and the path patterns it claims (joined with the store identity to render AASA / assetlinks.json) | +| `useCreateSiteAppLinkMutation` | Mutation | Per-host native-app association for a site surface: which app-owned store identity this host serves, and the path patterns it claims (joined with the store identity to render AASA / assetlinks.json) | +| `useUpdateSiteAppLinkMutation` | Mutation | Per-host native-app association for a site surface: which app-owned store identity this host serves, and the path patterns it claims (joined with the store identity to render AASA / assetlinks.json) | +| `useDeleteSiteAppLinkMutation` | Mutation | Per-host native-app association for a site surface: which app-owned store identity this host serves, and the path patterns it claims (joined with the store identity to render AASA / assetlinks.json) | | `useSitesQuery` | Query | Site surfaces exposed by this scope; publication makes a surface bindable from other scopes | | `useSiteQuery` | Query | Site surfaces exposed by this scope; publication makes a surface bindable from other scopes | | `useCreateSiteMutation` | Mutation | Site surfaces exposed by this scope; publication makes a surface bindable from other scopes | @@ -382,6 +391,11 @@ function App() { | `useCreateSiteModuleMutation` | Mutation | Frontend module configuration for a site surface; stores module name and JSON settings | | `useUpdateSiteModuleMutation` | Mutation | Frontend module configuration for a site surface; stores module name and JSON settings | | `useDeleteSiteModuleMutation` | Mutation | Frontend module configuration for a site surface; stores module name and JSON settings | +| `useSiteReleasesQuery` | Query | Immutable static-site release manifest head, versioned in the site-owned merkle store | +| `useSiteReleaseQuery` | Query | Immutable static-site release manifest head, versioned in the site-owned merkle store | +| `useCreateSiteReleaseMutation` | Mutation | Immutable static-site release manifest head, versioned in the site-owned merkle store | +| `useUpdateSiteReleaseMutation` | Mutation | Immutable static-site release manifest head, versioned in the site-owned merkle store | +| `useDeleteSiteReleaseMutation` | Mutation | Immutable static-site release manifest head, versioned in the site-owned merkle store | | `useSiteThemesQuery` | Query | Theme (colors, fonts, design tokens) for a site surface | | `useSiteThemeQuery` | Query | Theme (colors, fonts, design tokens) for a site surface | | `useCreateSiteThemeMutation` | Mutation | Theme (colors, fonts, design tokens) for a site surface | @@ -397,6 +411,11 @@ function App() { | `useCreateSpatialRelationMutation` | Mutation | Create a spatialRelation | | `useUpdateSpatialRelationMutation` | Mutation | Update a spatialRelation | | `useDeleteSpatialRelationMutation` | Mutation | Delete a spatialRelation | +| `useSqlActionsQuery` | Query | List all sqlActions | +| `useSqlActionQuery` | Query | Get one sqlAction | +| `useCreateSqlActionMutation` | Mutation | Create a sqlAction | +| `useUpdateSqlActionMutation` | Mutation | Update a sqlAction | +| `useDeleteSqlActionMutation` | Mutation | Delete a sqlAction | | `useTableBehaviorsQuery` | Query | List all tableBehaviors | | `useTableBehaviorQuery` | Query | Get one tableBehavior | | `useCreateTableBehaviorMutation` | Mutation | Create a tableBehavior | @@ -464,29 +483,58 @@ function App() { | `useDeleteWebauthnSettingMutation` | Mutation | WebAuthn/passkey runtime configuration; relying party options and typed references to the credential/session storage | | `useApiSchemaNamesQuery` | Query | apiSchemaNames | | `useApplyRegistryDefaultsQuery` | Query | applyRegistryDefaults | +| `useGetSitePreviewCommitQuery` | Query | getSitePreviewCommit | +| `useGetSiteReleaseManifestQuery` | Query | getSiteReleaseManifest | +| `usePagePublishedQuery` | Query | pagePublished | +| `usePlatformGetSitePreviewCommitQuery` | Query | platformGetSitePreviewCommit | +| `usePlatformGetSiteReleaseManifestQuery` | Query | platformGetSiteReleaseManifest | +| `usePlatformPagePublishedQuery` | Query | platformPagePublished | +| `usePlatformSitesDeepLinkUrlQuery` | Query | platformSitesDeepLinkUrl | +| `usePlatformSitesSiteOriginQuery` | Query | platformSitesSiteOrigin | +| `usePlatformVerifySitePreviewTokenQuery` | Query | platformVerifySitePreviewToken | | `useResolveDeepLinkQuery` | Query | resolveDeepLink | -| `useResolveHttpRouteQuery` | Query | resolveHttpRoute | | `useResolveRouteQuery` | Query | resolveRoute | | `useResolveSiteAppLinksQuery` | Query | resolveSiteAppLinks | +| `useSitesDeepLinkUrlQuery` | Query | sitesDeepLinkUrl | +| `useSitesSiteOriginQuery` | Query | sitesSiteOrigin | +| `useVerifySitePreviewTokenQuery` | Query | verifySitePreviewToken | +| `useAcceptDatabaseTransferMutation` | Mutation | acceptDatabaseTransfer | | `useApplyRlsMutation` | Mutation | applyRls | -| `useAppsInstallAppMutation` | Mutation | appsInstallApp | -| `useAppsUninstallAppMutation` | Mutation | appsUninstallApp | -| `useAppsUpgradeAppMutation` | Mutation | appsUpgradeApp | +| `useCancelDatabaseTransferMutation` | Mutation | cancelDatabaseTransfer | +| `useDeleteSitePreviewMutation` | Mutation | deleteSitePreview | | `useDomainsAssignSubdomainMutation` | Mutation | domainsAssignSubdomain | +| `useMintSitePreviewTokenMutation` | Mutation | mintSitePreviewToken | +| `usePagesInstallPagesMutation` | Mutation | pagesInstallPages | +| `usePlatformDeleteSitePreviewMutation` | Mutation | platformDeleteSitePreview | | `usePlatformDomainsAssignSubdomainMutation` | Mutation | platformDomainsAssignSubdomain | +| `usePlatformMintSitePreviewTokenMutation` | Mutation | platformMintSitePreviewToken | +| `usePlatformPagesInstallPagesMutation` | Mutation | platformPagesInstallPages | +| `usePlatformProvisionSitePreviewMutation` | Mutation | platformProvisionSitePreview | +| `usePlatformSetSitePreviewMutation` | Mutation | platformSetSitePreview | +| `usePlatformSiteMetadataInstallRobotsMutation` | Mutation | platformSiteMetadataInstallRobots | +| `usePlatformSitesInstallContentPresetMutation` | Mutation | platformSitesInstallContentPreset | +| `usePlatformSitesInstallMantraMutation` | Mutation | platformSitesInstallMantra | | `usePlatformSitesProvisionStaticSiteMutation` | Mutation | platformSitesProvisionStaticSite | -| `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. | +| `useProvisionBucketMutation` | Mutation | Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. | +| `useProvisionSitePreviewMutation` | Mutation | provisionSitePreview | +| `useRejectDatabaseTransferMutation` | Mutation | rejectDatabaseTransfer | | `useRequestDatabaseMutation` | Mutation | 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. +Pass exactly one of preset_slug or modules. Pass organization_id to have the organization own the database from the start (the caller must be an owner of that organization); the requesting user is still the identity bootstrapped into the new database. Omit it for a personal database. 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); | + SELECT * FROM metaschema_public.request_database('my_app', 'example.com', modules := '["users_module", "emails_module"]'::jsonb); + SELECT * FROM metaschema_public.request_database('team_app', 'example.com', preset_slug := 'full', organization_id := '00000000-0000-0000-0000-000000000000'::uuid); | | `useSetFieldOrderMutation` | Mutation | setFieldOrder | +| `useSetSitePreviewMutation` | Mutation | setSitePreview | +| `useSiteMetadataInstallRobotsMutation` | Mutation | siteMetadataInstallRobots | +| `useSitesInstallContentPresetMutation` | Mutation | sitesInstallContentPreset | +| `useSitesInstallMantraMutation` | Mutation | sitesInstallMantra | | `useSitesProvisionStaticSiteMutation` | Mutation | sitesProvisionStaticSite | ## Table Hooks @@ -538,62 +586,41 @@ create({ apiId: '', databaseId: '', schemaId: '' }); ```typescript // List all apiSettings const { data, isLoading } = useApiSettingsQuery({ - selection: { fields: { apiId: true, createdAt: true, databaseId: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, options: true, statementTimeoutMs: true, updatedAt: true } }, + selection: { fields: { apiId: true, createdAt: true, databaseId: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }, }); // Get one apiSetting const { data: item } = useApiSettingQuery({ id: '', - selection: { fields: { apiId: true, createdAt: true, databaseId: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, options: true, statementTimeoutMs: true, updatedAt: true } }, + selection: { fields: { apiId: true, createdAt: true, databaseId: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }, }); // Create a apiSetting const { mutate: create } = useCreateApiSettingMutation({ selection: { fields: { id: true } }, }); -create({ apiId: '', databaseId: '', enableAggregates: '', enableBulk: '', enableConnectionFilter: '', enableDirectUploads: '', enableI18N: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', options: '', statementTimeoutMs: '' }); -``` - -### AppComponent - -```typescript -// List all appComponents -const { data, isLoading } = useAppComponentsQuery({ - selection: { fields: { appId: true, componentApiId: true, componentDomainId: true, componentInstallationId: true, componentSiteId: true, componentType: true, config: true, createdAt: true, databaseId: true, id: true, updatedAt: true } }, -}); - -// Get one appComponent -const { data: item } = useAppComponentQuery({ - id: '', - selection: { fields: { appId: true, componentApiId: true, componentDomainId: true, componentInstallationId: true, componentSiteId: true, componentType: true, config: true, createdAt: true, databaseId: true, id: true, updatedAt: true } }, -}); - -// Create a appComponent -const { mutate: create } = useCreateAppComponentMutation({ - selection: { fields: { id: true } }, -}); -create({ appId: '', componentApiId: '', componentDomainId: '', componentInstallationId: '', componentSiteId: '', componentType: '', config: '', databaseId: '' }); +create({ apiId: '', databaseId: '', enableAggregates: '', enableBulk: '', enableConnectionFilter: '', enableDirectUploads: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }); ``` -### App +### AstMigration ```typescript -// List all apps -const { data, isLoading } = useAppsQuery({ - selection: { fields: { config: true, createdAt: true, databaseId: true, description: true, id: true, isPublished: true, name: true, status: true, title: true, updatedAt: true } }, +// List all astMigrations +const { data, isLoading } = useAstMigrationsQuery({ + selection: { fields: { actionId: true, actionName: true, actorId: true, createdAt: true, databaseId: true, deploy: true, deploys: true, id: true, name: true, payload: true, requires: true, revert: true, verify: true } }, }); -// Get one app -const { data: item } = useAppQuery({ - id: '', - selection: { fields: { config: true, createdAt: true, databaseId: true, description: true, id: true, isPublished: true, name: true, status: true, title: true, updatedAt: true } }, +// Get one astMigration +const { data: item } = useAstMigrationQuery({ + id: '', + selection: { fields: { actionId: true, actionName: true, actorId: true, createdAt: true, databaseId: true, deploy: true, deploys: true, id: true, name: true, payload: true, requires: true, revert: true, verify: true } }, }); -// Create a app -const { mutate: create } = useCreateAppMutation({ +// Create a astMigration +const { mutate: create } = useCreateAstMigrationMutation({ selection: { fields: { id: true } }, }); -create({ config: '', databaseId: '', description: '', isPublished: '', name: '', status: '', title: '' }); +create({ actionId: '', actionName: '', actorId: '', databaseId: '', deploy: '', deploys: '', name: '', payload: '', requires: '', revert: '', verify: '' }); ``` ### CheckConstraint @@ -685,20 +712,20 @@ create({ hash: '', label: '', name: '', ownerId: '', ```typescript // List all databaseSettings const { data, isLoading } = useDatabaseSettingsQuery({ - selection: { fields: { annotations: true, createdAt: true, databaseId: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, labels: true, options: true, statementTimeoutMs: true, updatedAt: true } }, + selection: { fields: { annotations: true, createdAt: true, databaseId: true, enableAggregates: true, enableBilling: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, labels: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }, }); // Get one databaseSetting const { data: item } = useDatabaseSettingQuery({ id: '', - selection: { fields: { annotations: true, createdAt: true, databaseId: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, labels: true, options: true, statementTimeoutMs: true, updatedAt: true } }, + selection: { fields: { annotations: true, createdAt: true, databaseId: true, enableAggregates: true, enableBilling: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, labels: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }, }); // Create a databaseSetting const { mutate: create } = useCreateDatabaseSettingMutation({ selection: { fields: { id: true } }, }); -create({ annotations: '', databaseId: '', enableAggregates: '', enableBulk: '', enableConnectionFilter: '', enableDirectUploads: '', enableI18N: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', labels: '', options: '', statementTimeoutMs: '' }); +create({ annotations: '', databaseId: '', enableAggregates: '', enableBilling: '', enableBulk: '', enableConnectionFilter: '', enableDirectUploads: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', labels: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }); ``` ### DatabaseTransfer @@ -748,20 +775,20 @@ create({ databaseId: '', granteeName: '', isGrant: '', ob ```typescript // List all derives const { data, isLoading } = useDerivesQuery({ - selection: { fields: { createdAt: true, databaseId: true, id: true, includeMutations: true, kind: true, policyPrefix: true, sourceTableId: true, tableId: true, updatedAt: true } }, + selection: { fields: { createdAt: true, databaseId: true, id: true, includeGrants: true, includeMutations: true, kind: true, policyPrefix: true, sourceTableId: true, tableId: true, updatedAt: true } }, }); // Get one derive const { data: item } = useDeriveQuery({ id: '', - selection: { fields: { createdAt: true, databaseId: true, id: true, includeMutations: true, kind: true, policyPrefix: true, sourceTableId: true, tableId: true, updatedAt: true } }, + selection: { fields: { createdAt: true, databaseId: true, id: true, includeGrants: true, includeMutations: true, kind: true, policyPrefix: true, sourceTableId: true, tableId: true, updatedAt: true } }, }); // Create a derive const { mutate: create } = useCreateDeriveMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', includeMutations: '', kind: '', policyPrefix: '', sourceTableId: '', tableId: '' }); +create({ databaseId: '', includeGrants: '', includeMutations: '', kind: '', policyPrefix: '', sourceTableId: '', tableId: '' }); ``` ### Domain @@ -769,20 +796,20 @@ create({ databaseId: '', includeMutations: '', kind: '', ```typescript // List all domains const { data, isLoading } = useDomainsQuery({ - selection: { fields: { config: true, createdAt: true, databaseId: true, hostname: true, id: true, isPublished: true, isWildcard: true, managed: true, parentHostname: true, tlsReadyAt: true, tlsSecretName: true, tlsStatus: true, updatedAt: true, verificationStatus: true, verifiedAt: true } }, + selection: { fields: { config: true, createdAt: true, createdByPrincipal: true, databaseId: true, hostname: true, id: true, isPublished: true, isWildcard: true, managed: true, parentHostname: true, tlsReadyAt: true, tlsSecretName: true, tlsStatus: true, updatedAt: true, updatedByPrincipal: true, verificationStatus: true, verifiedAt: true } }, }); // Get one domain const { data: item } = useDomainQuery({ id: '', - selection: { fields: { config: true, createdAt: true, databaseId: true, hostname: true, id: true, isPublished: true, isWildcard: true, managed: true, parentHostname: true, tlsReadyAt: true, tlsSecretName: true, tlsStatus: true, updatedAt: true, verificationStatus: true, verifiedAt: true } }, + selection: { fields: { config: true, createdAt: true, createdByPrincipal: true, databaseId: true, hostname: true, id: true, isPublished: true, isWildcard: true, managed: true, parentHostname: true, tlsReadyAt: true, tlsSecretName: true, tlsStatus: true, updatedAt: true, updatedByPrincipal: true, verificationStatus: true, verifiedAt: true } }, }); // Create a domain const { mutate: create } = useCreateDomainMutation({ selection: { fields: { id: true } }, }); -create({ config: '', databaseId: '', hostname: '', isPublished: '', isWildcard: '', managed: '', parentHostname: '', tlsReadyAt: '', tlsSecretName: '', tlsStatus: '', verificationStatus: '', verifiedAt: '' }); +create({ config: '', createdByPrincipal: '', databaseId: '', hostname: '', isPublished: '', isWildcard: '', managed: '', parentHostname: '', tlsReadyAt: '', tlsSecretName: '', tlsStatus: '', updatedByPrincipal: '', verificationStatus: '', verifiedAt: '' }); ``` ### DomainEvent @@ -1084,20 +1111,35 @@ create({ databaseId: '', fieldId: '', fieldIds: '', langColumn ```typescript // List all functions const { data, isLoading } = useFunctionsQuery({ - selection: { fields: { databaseId: true, id: true, name: true, schemaId: true } }, + selection: { fields: { apiExposed: true, arguments: true, bodyAst: true, category: true, data: true, databaseId: true, functionType: true, id: true, isStrict: true, kind: true, name: true, returns: true, schemaId: true, securityInvoker: true, smartTags: true, tags: true, volatility: true } }, }); // Get one function const { data: item } = useFunctionQuery({ id: '', - selection: { fields: { databaseId: true, id: true, name: true, schemaId: true } }, + selection: { fields: { apiExposed: true, arguments: true, bodyAst: true, category: true, data: true, databaseId: true, functionType: true, id: true, isStrict: true, kind: true, name: true, returns: true, schemaId: true, securityInvoker: true, smartTags: true, tags: true, volatility: true } }, }); // Create a function const { mutate: create } = useCreateFunctionMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', name: '', schemaId: '' }); +create({ apiExposed: '', arguments: '', bodyAst: '', category: '', data: '', databaseId: '', functionType: '', isStrict: '', kind: '', name: '', returns: '', schemaId: '', securityInvoker: '', smartTags: '', tags: '', volatility: '' }); +``` + +### GetSitePreviewsRecord + +```typescript +// List all getSitePreviews +const { data, isLoading } = useGetSitePreviewsQuery({ + selection: { fields: { commitId: true, name: true } }, +}); + +// Create a getSitePreviewsRecord +const { mutate: create } = useCreateGetSitePreviewsRecordMutation({ + selection: { fields: { id: true } }, +}); +create({ commitId: '', name: '' }); ``` ### HostnameBinding @@ -1121,25 +1163,25 @@ const { mutate: create } = useCreateHostnameBindingMutation({ create({ domainId: '', hostname: '', isWildcard: '', managed: '', parentHostname: '', tlsSecretName: '', tlsStatus: '', verificationStatus: '' }); ``` -### HttpRoute +### IdentityProviderRegistry ```typescript -// List all httpRoutes -const { data, isLoading } = useHttpRoutesQuery({ - selection: { fields: { createdAt: true, createdBy: true, databaseId: true, domainId: true, id: true, isActive: true, method: true, path: true, priority: true, targetId: true, targetKind: true, updatedAt: true, updatedBy: true } }, +// List all identityProviderRegistries +const { data, isLoading } = useIdentityProviderRegistriesQuery({ + selection: { fields: { authorizationUrl: true, displayName: true, issuerUrl: true, kind: true, scopes: true, slug: true, tokenUrl: true, userinfoUrl: true } }, }); -// Get one httpRoute -const { data: item } = useHttpRouteQuery({ - id: '', - selection: { fields: { createdAt: true, createdBy: true, databaseId: true, domainId: true, id: true, isActive: true, method: true, path: true, priority: true, targetId: true, targetKind: true, updatedAt: true, updatedBy: true } }, +// Get one identityProviderRegistry +const { data: item } = useIdentityProviderRegistryQuery({ + slug: '', + selection: { fields: { authorizationUrl: true, displayName: true, issuerUrl: true, kind: true, scopes: true, slug: true, tokenUrl: true, userinfoUrl: true } }, }); -// Create a httpRoute -const { mutate: create } = useCreateHttpRouteMutation({ - selection: { fields: { id: true } }, +// Create a identityProviderRegistry +const { mutate: create } = useCreateIdentityProviderRegistryMutation({ + selection: { fields: { slug: true } }, }); -create({ createdBy: '', databaseId: '', domainId: '', isActive: '', method: '', path: '', priority: '', targetId: '', targetKind: '', updatedBy: '' }); +create({ authorizationUrl: '', displayName: '', issuerUrl: '', kind: '', scopes: '', tokenUrl: '', userinfoUrl: '' }); ``` ### Index @@ -1147,20 +1189,20 @@ create({ createdBy: '', databaseId: '', domainId: '', isActive ```typescript // List all indices const { data, isLoading } = useIndicesQuery({ - selection: { fields: { accessMethod: true, category: true, createdAt: true, databaseId: true, fieldIds: true, id: true, includeFieldIds: true, indexParams: true, isUnique: true, name: true, opClasses: true, options: true, smartTags: true, tableId: true, tags: true, updatedAt: true, whereClause: true } }, + selection: { fields: { accessMethod: true, category: true, createdAt: true, databaseId: true, fieldIds: true, id: true, includeFieldIds: true, indexParams: true, isUnique: true, name: true, nullsNotDistinct: true, opClasses: true, options: true, smartTags: true, tableId: true, tags: true, updatedAt: true, whereClause: true } }, }); // Get one index const { data: item } = useIndexQuery({ id: '', - selection: { fields: { accessMethod: true, category: true, createdAt: true, databaseId: true, fieldIds: true, id: true, includeFieldIds: true, indexParams: true, isUnique: true, name: true, opClasses: true, options: true, smartTags: true, tableId: true, tags: true, updatedAt: true, whereClause: true } }, + selection: { fields: { accessMethod: true, category: true, createdAt: true, databaseId: true, fieldIds: true, id: true, includeFieldIds: true, indexParams: true, isUnique: true, name: true, nullsNotDistinct: true, opClasses: true, options: true, smartTags: true, tableId: true, tags: true, updatedAt: true, whereClause: true } }, }); // Create a index const { mutate: create } = useCreateIndexMutation({ selection: { fields: { id: true } }, }); -create({ accessMethod: '', category: '', databaseId: '', fieldIds: '', includeFieldIds: '', indexParams: '', isUnique: '', name: '', opClasses: '', options: '', smartTags: '', tableId: '', tags: '', whereClause: '' }); +create({ accessMethod: '', category: '', databaseId: '', fieldIds: '', includeFieldIds: '', indexParams: '', isUnique: '', name: '', nullsNotDistinct: '', opClasses: '', options: '', smartTags: '', tableId: '', tags: '', whereClause: '' }); ``` ### ManagedDomain @@ -1168,20 +1210,20 @@ create({ accessMethod: '', category: '', databaseId: '', - selection: { fields: { allowPublicUsage: true, annotations: true, certStatus: true, createdAt: true, databaseId: true, domain: true, id: true, isWildcard: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, verificationStatus: true, verifiedAt: true } }, + selection: { fields: { allowPublicUsage: true, annotations: true, certStatus: true, createdAt: true, createdByPrincipal: true, databaseId: true, domain: true, id: true, isWildcard: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, updatedByPrincipal: true, verificationStatus: true, verifiedAt: true } }, }); // Create a managedDomain const { mutate: create } = useCreateManagedDomainMutation({ selection: { fields: { id: true } }, }); -create({ allowPublicUsage: '', annotations: '', certStatus: '', databaseId: '', domain: '', isWildcard: '', tlsReadyAt: '', tlsStatus: '', verificationStatus: '', verifiedAt: '' }); +create({ allowPublicUsage: '', annotations: '', certStatus: '', createdByPrincipal: '', databaseId: '', domain: '', isWildcard: '', tlsReadyAt: '', tlsStatus: '', updatedByPrincipal: '', verificationStatus: '', verifiedAt: '' }); ``` ### NodeTypeRegistry @@ -1210,20 +1252,20 @@ create({ category: '', description: '', displayName: '', ```typescript // List all pages const { data, isLoading } = usePagesQuery({ - selection: { fields: { commitId: true, content: true, createdAt: true, databaseId: true, id: true, siteId: true, slug: true, storeId: true, updatedAt: true } }, + selection: { fields: { commitId: true, content: true, createdAt: true, databaseId: true, id: true, seededFrom: true, siteId: true, slug: true, storeId: true, updatedAt: true } }, }); // Get one page const { data: item } = usePageQuery({ id: '', - selection: { fields: { commitId: true, content: true, createdAt: true, databaseId: true, id: true, siteId: true, slug: true, storeId: true, updatedAt: true } }, + selection: { fields: { commitId: true, content: true, createdAt: true, databaseId: true, id: true, seededFrom: true, siteId: true, slug: true, storeId: true, updatedAt: true } }, }); // Create a page const { mutate: create } = useCreatePageMutation({ selection: { fields: { id: true } }, }); -create({ commitId: '', content: '', databaseId: '', siteId: '', slug: '', storeId: '' }); +create({ commitId: '', content: '', databaseId: '', seededFrom: '', siteId: '', slug: '', storeId: '' }); ``` ### Partition @@ -1294,20 +1336,20 @@ create({ apiId: '', schemaId: '' }); ```typescript // List all platformApiSettings const { data, isLoading } = usePlatformApiSettingsQuery({ - selection: { fields: { apiId: true, createdAt: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, options: true, statementTimeoutMs: true, updatedAt: true } }, + selection: { fields: { apiId: true, createdAt: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }, }); // Get one platformApiSetting const { data: item } = usePlatformApiSettingQuery({ id: '', - selection: { fields: { apiId: true, createdAt: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, options: true, statementTimeoutMs: true, updatedAt: true } }, + selection: { fields: { apiId: true, createdAt: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }, }); // Create a platformApiSetting const { mutate: create } = useCreatePlatformApiSettingMutation({ selection: { fields: { id: true } }, }); -create({ apiId: '', enableAggregates: '', enableBulk: '', enableConnectionFilter: '', enableDirectUploads: '', enableI18N: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', options: '', statementTimeoutMs: '' }); +create({ apiId: '', enableAggregates: '', enableBulk: '', enableConnectionFilter: '', enableDirectUploads: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }); ``` ### PlatformCorsSetting @@ -1336,20 +1378,20 @@ create({ allowedOrigins: '', apiId: '' }); ```typescript // List all platformDomains const { data, isLoading } = usePlatformDomainsQuery({ - selection: { fields: { config: true, createdAt: true, hostname: true, id: true, isPublished: true, isWildcard: true, managed: true, parentHostname: true, tlsReadyAt: true, tlsSecretName: true, tlsStatus: true, updatedAt: true, verificationStatus: true, verifiedAt: true } }, + selection: { fields: { config: true, createdAt: true, createdByPrincipal: true, hostname: true, id: true, isPublished: true, isWildcard: true, managed: true, parentHostname: true, tlsReadyAt: true, tlsSecretName: true, tlsStatus: true, updatedAt: true, updatedByPrincipal: true, verificationStatus: true, verifiedAt: true } }, }); // Get one platformDomain const { data: item } = usePlatformDomainQuery({ id: '', - selection: { fields: { config: true, createdAt: true, hostname: true, id: true, isPublished: true, isWildcard: true, managed: true, parentHostname: true, tlsReadyAt: true, tlsSecretName: true, tlsStatus: true, updatedAt: true, verificationStatus: true, verifiedAt: true } }, + selection: { fields: { config: true, createdAt: true, createdByPrincipal: true, hostname: true, id: true, isPublished: true, isWildcard: true, managed: true, parentHostname: true, tlsReadyAt: true, tlsSecretName: true, tlsStatus: true, updatedAt: true, updatedByPrincipal: true, verificationStatus: true, verifiedAt: true } }, }); // Create a platformDomain const { mutate: create } = useCreatePlatformDomainMutation({ selection: { fields: { id: true } }, }); -create({ config: '', hostname: '', isPublished: '', isWildcard: '', managed: '', parentHostname: '', tlsReadyAt: '', tlsSecretName: '', tlsStatus: '', verificationStatus: '', verifiedAt: '' }); +create({ config: '', createdByPrincipal: '', hostname: '', isPublished: '', isWildcard: '', managed: '', parentHostname: '', tlsReadyAt: '', tlsSecretName: '', tlsStatus: '', updatedByPrincipal: '', verificationStatus: '', verifiedAt: '' }); ``` ### PlatformDomainEvent @@ -1457,25 +1499,40 @@ const { mutate: create } = useCreatePlatformEmailSiteIdentityMutation({ create({ emailIdentityId: '', siteId: '' }); ``` +### PlatformGetSitePreviewsRecord + +```typescript +// List all platformGetSitePreviews +const { data, isLoading } = usePlatformGetSitePreviewsQuery({ + selection: { fields: { commitId: true, name: true } }, +}); + +// Create a platformGetSitePreviewsRecord +const { mutate: create } = useCreatePlatformGetSitePreviewsRecordMutation({ + selection: { fields: { id: true } }, +}); +create({ commitId: '', name: '' }); +``` + ### PlatformManagedDomain ```typescript // List all platformManagedDomains const { data, isLoading } = usePlatformManagedDomainsQuery({ - selection: { fields: { allowPublicUsage: true, annotations: true, certStatus: true, createdAt: true, domain: true, id: true, isWildcard: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, verificationStatus: true, verifiedAt: true } }, + selection: { fields: { allowPublicUsage: true, annotations: true, certStatus: true, createdAt: true, createdByPrincipal: true, domain: true, id: true, isWildcard: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, updatedByPrincipal: true, verificationStatus: true, verifiedAt: true } }, }); // Get one platformManagedDomain const { data: item } = usePlatformManagedDomainQuery({ id: '', - selection: { fields: { allowPublicUsage: true, annotations: true, certStatus: true, createdAt: true, domain: true, id: true, isWildcard: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, verificationStatus: true, verifiedAt: true } }, + selection: { fields: { allowPublicUsage: true, annotations: true, certStatus: true, createdAt: true, createdByPrincipal: true, domain: true, id: true, isWildcard: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, updatedByPrincipal: true, verificationStatus: true, verifiedAt: true } }, }); // Create a platformManagedDomain const { mutate: create } = useCreatePlatformManagedDomainMutation({ selection: { fields: { id: true } }, }); -create({ allowPublicUsage: '', annotations: '', certStatus: '', domain: '', isWildcard: '', tlsReadyAt: '', tlsStatus: '', verificationStatus: '', verifiedAt: '' }); +create({ allowPublicUsage: '', annotations: '', certStatus: '', createdByPrincipal: '', domain: '', isWildcard: '', tlsReadyAt: '', tlsStatus: '', updatedByPrincipal: '', verificationStatus: '', verifiedAt: '' }); ``` ### PlatformPage @@ -1483,20 +1540,20 @@ create({ allowPublicUsage: '', annotations: '', certStatus: '', - selection: { fields: { commitId: true, content: true, createdAt: true, id: true, siteId: true, slug: true, storeId: true, updatedAt: true } }, + selection: { fields: { commitId: true, content: true, createdAt: true, id: true, seededFrom: true, siteId: true, slug: true, storeId: true, updatedAt: true } }, }); // Create a platformPage const { mutate: create } = useCreatePlatformPageMutation({ selection: { fields: { id: true } }, }); -create({ commitId: '', content: '', siteId: '', slug: '', storeId: '' }); +create({ commitId: '', content: '', seededFrom: '', siteId: '', slug: '', storeId: '' }); ``` ### PlatformSiteAppLink @@ -1504,20 +1561,20 @@ create({ commitId: '', content: '', siteId: '', slug: '', - selection: { fields: { appIdentifier: true, createdAt: true, id: true, pathComponents: true, platform: true, sha256CertFingerprints: true, siteId: true, storeUrl: true, teamId: true, updatedAt: true, webcredentials: true } }, + selection: { fields: { appStoreIdentityId: true, createdAt: true, id: true, pathComponents: true, siteId: true, updatedAt: true, webcredentials: true } }, }); // Create a platformSiteAppLink const { mutate: create } = useCreatePlatformSiteAppLinkMutation({ selection: { fields: { id: true } }, }); -create({ appIdentifier: '', pathComponents: '', platform: '', sha256CertFingerprints: '', siteId: '', storeUrl: '', teamId: '', webcredentials: '' }); +create({ appStoreIdentityId: '', pathComponents: '', siteId: '', webcredentials: '' }); ``` ### PlatformSite @@ -1525,20 +1582,20 @@ create({ appIdentifier: '', pathComponents: '', platform: '', - selection: { fields: { activeCommitId: true, bucketId: true, createdAt: true, description: true, id: true, installationId: true, installationMemberSlug: true, isPublished: true, name: true, resourceId: true, title: true, updatedAt: true } }, + selection: { fields: { activeCommitId: true, bucketId: true, createdAt: true, createdByPrincipal: true, description: true, id: true, installationId: true, installationMemberSlug: true, isPublished: true, name: true, resourceId: true, title: true, updatedAt: true, updatedByPrincipal: true } }, }); // Create a platformSite const { mutate: create } = useCreatePlatformSiteMutation({ selection: { fields: { id: true } }, }); -create({ activeCommitId: '', bucketId: '', description: '', installationId: '', installationMemberSlug: '', isPublished: '', name: '', resourceId: '', title: '' }); +create({ activeCommitId: '', bucketId: '', createdByPrincipal: '', description: '', installationId: '', installationMemberSlug: '', isPublished: '', name: '', resourceId: '', title: '', updatedByPrincipal: '' }); ``` ### PlatformSiteDeepLink @@ -1546,20 +1603,20 @@ create({ activeCommitId: '', bucketId: '', description: '', ```typescript // List all platformSiteDeepLinks const { data, isLoading } = usePlatformSiteDeepLinksQuery({ - selection: { fields: { appPath: true, createdAt: true, fallbackUrl: true, id: true, metadata: true, siteId: true, slug: true, updatedAt: true, webPath: true } }, + selection: { fields: { appPath: true, createdAt: true, fallbackUrl: true, id: true, metadata: true, pageId: true, siteId: true, slug: true, updatedAt: true, webPath: true } }, }); // Get one platformSiteDeepLink const { data: item } = usePlatformSiteDeepLinkQuery({ id: '', - selection: { fields: { appPath: true, createdAt: true, fallbackUrl: true, id: true, metadata: true, siteId: true, slug: true, updatedAt: true, webPath: true } }, + selection: { fields: { appPath: true, createdAt: true, fallbackUrl: true, id: true, metadata: true, pageId: true, siteId: true, slug: true, updatedAt: true, webPath: true } }, }); // Create a platformSiteDeepLink const { mutate: create } = useCreatePlatformSiteDeepLinkMutation({ selection: { fields: { id: true } }, }); -create({ appPath: '', fallbackUrl: '', metadata: '', siteId: '', slug: '', webPath: '' }); +create({ appPath: '', fallbackUrl: '', metadata: '', pageId: '', siteId: '', slug: '', webPath: '' }); ``` ### PlatformSiteErrorPage @@ -1588,20 +1645,20 @@ create({ objectPath: '', siteId: '', statusCode: '' }); ```typescript // List all platformSiteMetadata const { data, isLoading } = usePlatformSiteMetadataQuery({ - selection: { fields: { appleTouchIcon: true, canonicalUrl: true, commitId: true, createdAt: true, description: true, favicon: true, id: true, logo: true, ogImage: true, robots: true, siteId: true, storeId: true, title: true, updatedAt: true } }, + selection: { fields: { appleTouchIcon: true, canonicalUrl: true, commitId: true, createdAt: true, description: true, favicon: true, id: true, logo: true, ogImage: true, robots: true, robotsSeededFrom: true, siteId: true, storeId: true, title: true, updatedAt: true } }, }); // Get one platformSiteMetadatum const { data: item } = usePlatformSiteMetadatumQuery({ id: '', - selection: { fields: { appleTouchIcon: true, canonicalUrl: true, commitId: true, createdAt: true, description: true, favicon: true, id: true, logo: true, ogImage: true, robots: true, siteId: true, storeId: true, title: true, updatedAt: true } }, + selection: { fields: { appleTouchIcon: true, canonicalUrl: true, commitId: true, createdAt: true, description: true, favicon: true, id: true, logo: true, ogImage: true, robots: true, robotsSeededFrom: true, siteId: true, storeId: true, title: true, updatedAt: true } }, }); // Create a platformSiteMetadatum const { mutate: create } = useCreatePlatformSiteMetadatumMutation({ selection: { fields: { id: true } }, }); -create({ appleTouchIcon: '', canonicalUrl: '', commitId: '', description: '', favicon: '', logo: '', ogImage: '', robots: '', siteId: '', storeId: '', title: '' }); +create({ appleTouchIcon: '', canonicalUrl: '', commitId: '', description: '', favicon: '', logo: '', ogImage: '', robots: '', robotsSeededFrom: '', siteId: '', storeId: '', title: '' }); ``` ### PlatformSiteModule @@ -1625,6 +1682,27 @@ const { mutate: create } = useCreatePlatformSiteModuleMutation({ create({ data: '', isEnabled: '', name: '', position: '', siteId: '' }); ``` +### PlatformSiteRelease + +```typescript +// List all platformSiteReleases +const { data, isLoading } = usePlatformSiteReleasesQuery({ + selection: { fields: { commitId: true, createdAt: true, id: true, manifest: true, siteId: true, storeId: true, updatedAt: true } }, +}); + +// Get one platformSiteRelease +const { data: item } = usePlatformSiteReleaseQuery({ + id: '', + selection: { fields: { commitId: true, createdAt: true, id: true, manifest: true, siteId: true, storeId: true, updatedAt: true } }, +}); + +// Create a platformSiteRelease +const { mutate: create } = useCreatePlatformSiteReleaseMutation({ + selection: { fields: { id: true } }, +}); +create({ commitId: '', manifest: '', siteId: '', storeId: '' }); +``` + ### PlatformSiteTheme ```typescript @@ -1672,20 +1750,20 @@ create({ cleanUrls: '', indexDocument: '', metadata: '', ```typescript // List all policies const { data, isLoading } = usePoliciesQuery({ - selection: { fields: { category: true, createdAt: true, data: true, databaseId: true, derivedFromPolicyId: true, derivedFromTableId: true, disabled: true, granteeName: true, id: true, name: true, permissive: true, policyType: true, privilege: true, smartTags: true, tableId: true, tags: true, updatedAt: true, withCheck: true } }, + selection: { fields: { category: true, columnRefs: true, createdAt: true, data: true, databaseId: true, derivedFromPolicyId: true, derivedFromTableId: true, disabled: true, granteeName: true, id: true, name: true, permissive: true, policyType: true, privilege: true, smartTags: true, tableId: true, tags: true, updatedAt: true, withCheck: true } }, }); // Get one policy const { data: item } = usePolicyQuery({ id: '', - selection: { fields: { category: true, createdAt: true, data: true, databaseId: true, derivedFromPolicyId: true, derivedFromTableId: true, disabled: true, granteeName: true, id: true, name: true, permissive: true, policyType: true, privilege: true, smartTags: true, tableId: true, tags: true, updatedAt: true, withCheck: true } }, + selection: { fields: { category: true, columnRefs: true, createdAt: true, data: true, databaseId: true, derivedFromPolicyId: true, derivedFromTableId: true, disabled: true, granteeName: true, id: true, name: true, permissive: true, policyType: true, privilege: true, smartTags: true, tableId: true, tags: true, updatedAt: true, withCheck: true } }, }); // Create a policy const { mutate: create } = useCreatePolicyMutation({ selection: { fields: { id: true } }, }); -create({ category: '', data: '', databaseId: '', derivedFromPolicyId: '', derivedFromTableId: '', disabled: '', granteeName: '', name: '', permissive: '', policyType: '', privilege: '', smartTags: '', tableId: '', tags: '', withCheck: '' }); +create({ category: '', columnRefs: '', data: '', databaseId: '', derivedFromPolicyId: '', derivedFromTableId: '', disabled: '', granteeName: '', name: '', permissive: '', policyType: '', privilege: '', smartTags: '', tableId: '', tags: '', withCheck: '' }); ``` ### PrimaryKeyConstraint @@ -1730,6 +1808,27 @@ const { mutate: create } = useCreatePubkeySettingMutation({ create({ cryptoNetwork: '', databaseId: '', schemaId: '', signInRecordFailureFunctionId: '', signInRequestChallengeFunctionId: '', signInWithChallengeFunctionId: '', signUpWithKeyFunctionId: '', userField: '' }); ``` +### Redirect + +```typescript +// List all redirects +const { data, isLoading } = useRedirectsQuery({ + selection: { fields: { createdAt: true, databaseId: true, id: true, name: true, preservePath: true, preserveQuery: true, statusCode: true, toHost: true, toPath: true, updatedAt: true } }, +}); + +// Get one redirect +const { data: item } = useRedirectQuery({ + id: '', + selection: { fields: { createdAt: true, databaseId: true, id: true, name: true, preservePath: true, preserveQuery: true, statusCode: true, toHost: true, toPath: true, updatedAt: true } }, +}); + +// Create a redirect +const { mutate: create } = useCreateRedirectMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', name: '', preservePath: '', preserveQuery: '', statusCode: '', toHost: '', toPath: '' }); +``` + ### RlsSetting ```typescript @@ -1756,20 +1855,20 @@ create({ authenticateFunctionId: '', authenticateSchemaId: '', authe ```typescript // List all routeBindings const { data, isLoading } = useRouteBindingsQuery({ - selection: { fields: { domainId: true, id: true, isActive: true, method: true, path: true, priority: true, targetApiId: true, targetBucketId: true, targetFunctionId: true, targetServiceId: true, targetSiteId: true, updatedAt: true } }, + selection: { fields: { domainId: true, id: true, isActive: true, method: true, path: true, priority: true, servingSiteId: true, targetApiId: true, targetBucketId: true, targetFunctionId: true, targetRedirectId: true, targetServiceId: true, targetSiteId: true, updatedAt: true } }, }); // Get one routeBinding const { data: item } = useRouteBindingQuery({ id: '', - selection: { fields: { domainId: true, id: true, isActive: true, method: true, path: true, priority: true, targetApiId: true, targetBucketId: true, targetFunctionId: true, targetServiceId: true, targetSiteId: true, updatedAt: true } }, + selection: { fields: { domainId: true, id: true, isActive: true, method: true, path: true, priority: true, servingSiteId: true, targetApiId: true, targetBucketId: true, targetFunctionId: true, targetRedirectId: true, targetServiceId: true, targetSiteId: true, updatedAt: true } }, }); // Create a routeBinding const { mutate: create } = useCreateRouteBindingMutation({ selection: { fields: { id: true } }, }); -create({ domainId: '', isActive: '', method: '', path: '', priority: '', targetApiId: '', targetBucketId: '', targetFunctionId: '', targetServiceId: '', targetSiteId: '' }); +create({ domainId: '', isActive: '', method: '', path: '', priority: '', servingSiteId: '', targetApiId: '', targetBucketId: '', targetFunctionId: '', targetRedirectId: '', targetServiceId: '', targetSiteId: '' }); ``` ### Route @@ -1777,20 +1876,20 @@ create({ domainId: '', isActive: '', method: '', path: '< ```typescript // List all routes const { data, isLoading } = useRoutesQuery({ - selection: { fields: { config: true, createdAt: true, databaseId: true, domainId: true, id: true, isActive: true, method: true, path: true, priority: true, targetApiId: true, targetBucketId: true, targetFunctionId: true, targetServiceId: true, targetSiteId: true, updatedAt: true } }, + selection: { fields: { anonymous: true, config: true, createdAt: true, databaseId: true, domainId: true, id: true, isActive: true, method: true, path: true, previewRef: true, priority: true, servingSiteId: true, targetApiId: true, targetBucketId: true, targetFunctionId: true, targetRedirectId: true, targetServiceId: true, targetSiteId: true, updatedAt: true } }, }); // Get one route const { data: item } = useRouteQuery({ id: '', - selection: { fields: { config: true, createdAt: true, databaseId: true, domainId: true, id: true, isActive: true, method: true, path: true, priority: true, targetApiId: true, targetBucketId: true, targetFunctionId: true, targetServiceId: true, targetSiteId: true, updatedAt: true } }, + selection: { fields: { anonymous: true, config: true, createdAt: true, databaseId: true, domainId: true, id: true, isActive: true, method: true, path: true, previewRef: true, priority: true, servingSiteId: true, targetApiId: true, targetBucketId: true, targetFunctionId: true, targetRedirectId: true, targetServiceId: true, targetSiteId: true, updatedAt: true } }, }); // Create a route const { mutate: create } = useCreateRouteMutation({ selection: { fields: { id: true } }, }); -create({ config: '', databaseId: '', domainId: '', isActive: '', method: '', path: '', priority: '', targetApiId: '', targetBucketId: '', targetFunctionId: '', targetServiceId: '', targetSiteId: '' }); +create({ anonymous: '', config: '', databaseId: '', domainId: '', isActive: '', method: '', path: '', previewRef: '', priority: '', servingSiteId: '', targetApiId: '', targetBucketId: '', targetFunctionId: '', targetRedirectId: '', targetServiceId: '', targetSiteId: '' }); ``` ### Schema @@ -1840,20 +1939,20 @@ create({ databaseId: '', granteeName: '', schemaId: '' }); ```typescript // List all siteAppLinks const { data, isLoading } = useSiteAppLinksQuery({ - selection: { fields: { appIdentifier: true, createdAt: true, databaseId: true, id: true, pathComponents: true, platform: true, sha256CertFingerprints: true, siteId: true, storeUrl: true, teamId: true, updatedAt: true, webcredentials: true } }, + selection: { fields: { appStoreIdentityId: true, createdAt: true, databaseId: true, id: true, pathComponents: true, siteId: true, updatedAt: true, webcredentials: true } }, }); // Get one siteAppLink const { data: item } = useSiteAppLinkQuery({ id: '', - selection: { fields: { appIdentifier: true, createdAt: true, databaseId: true, id: true, pathComponents: true, platform: true, sha256CertFingerprints: true, siteId: true, storeUrl: true, teamId: true, updatedAt: true, webcredentials: true } }, + selection: { fields: { appStoreIdentityId: true, createdAt: true, databaseId: true, id: true, pathComponents: true, siteId: true, updatedAt: true, webcredentials: true } }, }); // Create a siteAppLink const { mutate: create } = useCreateSiteAppLinkMutation({ selection: { fields: { id: true } }, }); -create({ appIdentifier: '', databaseId: '', pathComponents: '', platform: '', sha256CertFingerprints: '', siteId: '', storeUrl: '', teamId: '', webcredentials: '' }); +create({ appStoreIdentityId: '', databaseId: '', pathComponents: '', siteId: '', webcredentials: '' }); ``` ### Site @@ -1861,20 +1960,20 @@ create({ appIdentifier: '', databaseId: '', pathComponents: '', - selection: { fields: { activeCommitId: true, bucketId: true, createdAt: true, databaseId: true, description: true, id: true, installationId: true, installationMemberSlug: true, isPublished: true, name: true, resourceId: true, title: true, updatedAt: true } }, + selection: { fields: { activeCommitId: true, bucketId: true, createdAt: true, createdByPrincipal: true, databaseId: true, description: true, id: true, installationId: true, installationMemberSlug: true, isPublished: true, name: true, resourceId: true, title: true, updatedAt: true, updatedByPrincipal: true } }, }); // Create a site const { mutate: create } = useCreateSiteMutation({ selection: { fields: { id: true } }, }); -create({ activeCommitId: '', bucketId: '', databaseId: '', description: '', installationId: '', installationMemberSlug: '', isPublished: '', name: '', resourceId: '', title: '' }); +create({ activeCommitId: '', bucketId: '', createdByPrincipal: '', databaseId: '', description: '', installationId: '', installationMemberSlug: '', isPublished: '', name: '', resourceId: '', title: '', updatedByPrincipal: '' }); ``` ### SiteDeepLink @@ -1882,20 +1981,20 @@ create({ activeCommitId: '', bucketId: '', databaseId: '', des ```typescript // List all siteDeepLinks const { data, isLoading } = useSiteDeepLinksQuery({ - selection: { fields: { appPath: true, createdAt: true, databaseId: true, fallbackUrl: true, id: true, metadata: true, siteId: true, slug: true, updatedAt: true, webPath: true } }, + selection: { fields: { appPath: true, createdAt: true, databaseId: true, fallbackUrl: true, id: true, metadata: true, pageId: true, siteId: true, slug: true, updatedAt: true, webPath: true } }, }); // Get one siteDeepLink const { data: item } = useSiteDeepLinkQuery({ id: '', - selection: { fields: { appPath: true, createdAt: true, databaseId: true, fallbackUrl: true, id: true, metadata: true, siteId: true, slug: true, updatedAt: true, webPath: true } }, + selection: { fields: { appPath: true, createdAt: true, databaseId: true, fallbackUrl: true, id: true, metadata: true, pageId: true, siteId: true, slug: true, updatedAt: true, webPath: true } }, }); // Create a siteDeepLink const { mutate: create } = useCreateSiteDeepLinkMutation({ selection: { fields: { id: true } }, }); -create({ appPath: '', databaseId: '', fallbackUrl: '', metadata: '', siteId: '', slug: '', webPath: '' }); +create({ appPath: '', databaseId: '', fallbackUrl: '', metadata: '', pageId: '', siteId: '', slug: '', webPath: '' }); ``` ### SiteErrorPage @@ -1924,20 +2023,20 @@ create({ databaseId: '', objectPath: '', siteId: '', statusC ```typescript // List all siteMetadata const { data, isLoading } = useSiteMetadataQuery({ - selection: { fields: { appleTouchIcon: true, canonicalUrl: true, commitId: true, createdAt: true, databaseId: true, description: true, favicon: true, id: true, logo: true, ogImage: true, robots: true, siteId: true, storeId: true, title: true, updatedAt: true } }, + selection: { fields: { appleTouchIcon: true, canonicalUrl: true, commitId: true, createdAt: true, databaseId: true, description: true, favicon: true, id: true, logo: true, ogImage: true, robots: true, robotsSeededFrom: true, siteId: true, storeId: true, title: true, updatedAt: true } }, }); // Get one siteMetadatum const { data: item } = useSiteMetadatumQuery({ id: '', - selection: { fields: { appleTouchIcon: true, canonicalUrl: true, commitId: true, createdAt: true, databaseId: true, description: true, favicon: true, id: true, logo: true, ogImage: true, robots: true, siteId: true, storeId: true, title: true, updatedAt: true } }, + selection: { fields: { appleTouchIcon: true, canonicalUrl: true, commitId: true, createdAt: true, databaseId: true, description: true, favicon: true, id: true, logo: true, ogImage: true, robots: true, robotsSeededFrom: true, siteId: true, storeId: true, title: true, updatedAt: true } }, }); // Create a siteMetadatum const { mutate: create } = useCreateSiteMetadatumMutation({ selection: { fields: { id: true } }, }); -create({ appleTouchIcon: '', canonicalUrl: '', commitId: '', databaseId: '', description: '', favicon: '', logo: '', ogImage: '', robots: '', siteId: '', storeId: '', title: '' }); +create({ appleTouchIcon: '', canonicalUrl: '', commitId: '', databaseId: '', description: '', favicon: '', logo: '', ogImage: '', robots: '', robotsSeededFrom: '', siteId: '', storeId: '', title: '' }); ``` ### SiteModule @@ -1961,6 +2060,27 @@ const { mutate: create } = useCreateSiteModuleMutation({ create({ data: '', databaseId: '', isEnabled: '', name: '', position: '', siteId: '' }); ``` +### SiteRelease + +```typescript +// List all siteReleases +const { data, isLoading } = useSiteReleasesQuery({ + selection: { fields: { commitId: true, createdAt: true, databaseId: true, id: true, manifest: true, siteId: true, storeId: true, updatedAt: true } }, +}); + +// Get one siteRelease +const { data: item } = useSiteReleaseQuery({ + id: '', + selection: { fields: { commitId: true, createdAt: true, databaseId: true, id: true, manifest: true, siteId: true, storeId: true, updatedAt: true } }, +}); + +// Create a siteRelease +const { mutate: create } = useCreateSiteReleaseMutation({ + selection: { fields: { id: true } }, +}); +create({ commitId: '', databaseId: '', manifest: '', siteId: '', storeId: '' }); +``` + ### SiteTheme ```typescript @@ -2024,6 +2144,27 @@ const { mutate: create } = useCreateSpatialRelationMutation({ create({ category: '', databaseId: '', fieldId: '', name: '', operator: '', paramName: '', refFieldId: '', refTableId: '', tableId: '', tags: '' }); ``` +### SqlAction + +```typescript +// List all sqlActions +const { data, isLoading } = useSqlActionsQuery({ + selection: { fields: { actionId: true, actionName: true, actorId: true, content: true, createdAt: true, databaseId: true, deploy: true, deps: true, id: true, name: true, payload: true, revert: true, verify: true } }, +}); + +// Get one sqlAction +const { data: item } = useSqlActionQuery({ + id: '', + selection: { fields: { actionId: true, actionName: true, actorId: true, content: true, createdAt: true, databaseId: true, deploy: true, deps: true, id: true, name: true, payload: true, revert: true, verify: true } }, +}); + +// Create a sqlAction +const { mutate: create } = useCreateSqlActionMutation({ + selection: { fields: { id: true } }, +}); +create({ actionId: '', actionName: '', actorId: '', content: '', databaseId: '', deploy: '', deps: '', name: '', payload: '', revert: '', verify: '' }); +``` + ### TableBehavior ```typescript @@ -2092,20 +2233,20 @@ create({ databaseId: '', fieldIds: '', granteeName: '', isGr ```typescript // List all triggers const { data, isLoading } = useTriggersQuery({ - selection: { fields: { category: true, createdAt: true, databaseId: true, event: true, functionName: true, id: true, name: true, smartTags: true, tableId: true, tags: true, updatedAt: true } }, + selection: { fields: { category: true, createdAt: true, databaseId: true, event: true, events: true, forEachRow: true, functionId: true, functionName: true, id: true, kind: true, name: true, smartTags: true, tableId: true, tags: true, timing: true, updatedAt: true, whenAst: true } }, }); // Get one trigger const { data: item } = useTriggerQuery({ id: '', - selection: { fields: { category: true, createdAt: true, databaseId: true, event: true, functionName: true, id: true, name: true, smartTags: true, tableId: true, tags: true, updatedAt: true } }, + selection: { fields: { category: true, createdAt: true, databaseId: true, event: true, events: true, forEachRow: true, functionId: true, functionName: true, id: true, kind: true, name: true, smartTags: true, tableId: true, tags: true, timing: true, updatedAt: true, whenAst: true } }, }); // Create a trigger const { mutate: create } = useCreateTriggerMutation({ selection: { fields: { id: true } }, }); -create({ category: '', databaseId: '', event: '', functionName: '', name: '', smartTags: '', tableId: '', tags: '' }); +create({ category: '', databaseId: '', event: '', events: '', forEachRow: '', functionId: '', functionName: '', kind: '', name: '', smartTags: '', tableId: '', tags: '', timing: '', whenAst: '' }); ``` ### TriggerFunction @@ -2322,9 +2463,81 @@ applyRegistryDefaults | `data` | JSON | | `nodeType` | String | -### `useResolveDeepLinkQuery` +### `useGetSitePreviewCommitQuery` -resolveDeepLink +getSitePreviewCommit + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `targetName` | String | + | `targetSiteId` | UUID | + +### `useGetSiteReleaseManifestQuery` + +getSiteReleaseManifest + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `targetCommitId` | UUID | + | `targetSiteId` | UUID | + +### `usePagePublishedQuery` + +pagePublished + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `pageSlug` | String | + | `targetSiteId` | UUID | + +### `usePlatformGetSitePreviewCommitQuery` + +platformGetSitePreviewCommit + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `targetName` | String | + | `targetSiteId` | UUID | + +### `usePlatformGetSiteReleaseManifestQuery` + +platformGetSiteReleaseManifest + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `targetCommitId` | UUID | + | `targetSiteId` | UUID | + +### `usePlatformPagePublishedQuery` + +platformPagePublished + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `pageSlug` | String | + | `targetSiteId` | UUID | + +### `usePlatformSitesDeepLinkUrlQuery` + +platformSitesDeepLinkUrl - **Type:** query - **Arguments:** @@ -2334,18 +2547,40 @@ resolveDeepLink | `linkSlug` | String | | `targetSiteId` | UUID | -### `useResolveHttpRouteQuery` +### `usePlatformSitesSiteOriginQuery` -resolveHttpRoute +platformSitesSiteOrigin - **Type:** query - **Arguments:** | Argument | Type | |----------|------| - | `requestHost` | String | - | `requestMethod` | String | - | `requestPath` | String | + | `targetSiteId` | UUID | + +### `usePlatformVerifySitePreviewTokenQuery` + +platformVerifySitePreviewToken + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `siteId` | UUID | + | `token` | String | + +### `useResolveDeepLinkQuery` + +resolveDeepLink + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `linkSlug` | String | + | `targetSiteId` | UUID | ### `useResolveRouteQuery` @@ -2371,49 +2606,84 @@ resolveSiteAppLinks |----------|------| | `targetSiteId` | UUID | -### `useApplyRlsMutation` +### `useSitesDeepLinkUrlQuery` -applyRls +sitesDeepLinkUrl + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `linkSlug` | String | + | `targetSiteId` | UUID | + +### `useSitesSiteOriginQuery` + +sitesSiteOrigin + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `targetSiteId` | UUID | + +### `useVerifySitePreviewTokenQuery` + +verifySitePreviewToken + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `siteId` | UUID | + | `token` | String | + +### `useAcceptDatabaseTransferMutation` + +acceptDatabaseTransfer - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | ApplyRlsInput (required) | + | `input` | AcceptDatabaseTransferInput (required) | -### `useAppsInstallAppMutation` +### `useApplyRlsMutation` -appsInstallApp +applyRls - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | AppsInstallAppInput (required) | + | `input` | ApplyRlsInput (required) | -### `useAppsUninstallAppMutation` +### `useCancelDatabaseTransferMutation` -appsUninstallApp +cancelDatabaseTransfer - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | AppsUninstallAppInput (required) | + | `input` | CancelDatabaseTransferInput (required) | -### `useAppsUpgradeAppMutation` +### `useDeleteSitePreviewMutation` -appsUpgradeApp +deleteSitePreview - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | AppsUpgradeAppInput (required) | + | `input` | DeleteSitePreviewInput (required) | ### `useDomainsAssignSubdomainMutation` @@ -2426,6 +2696,39 @@ domainsAssignSubdomain |----------|------| | `input` | DomainsAssignSubdomainInput (required) | +### `useMintSitePreviewTokenMutation` + +mintSitePreviewToken + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | MintSitePreviewTokenInput (required) | + +### `usePagesInstallPagesMutation` + +pagesInstallPages + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | PagesInstallPagesInput (required) | + +### `usePlatformDeleteSitePreviewMutation` + +platformDeleteSitePreview + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | PlatformDeleteSitePreviewInput (required) | + ### `usePlatformDomainsAssignSubdomainMutation` platformDomainsAssignSubdomain @@ -2437,6 +2740,83 @@ platformDomainsAssignSubdomain |----------|------| | `input` | PlatformDomainsAssignSubdomainInput (required) | +### `usePlatformMintSitePreviewTokenMutation` + +platformMintSitePreviewToken + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | PlatformMintSitePreviewTokenInput (required) | + +### `usePlatformPagesInstallPagesMutation` + +platformPagesInstallPages + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | PlatformPagesInstallPagesInput (required) | + +### `usePlatformProvisionSitePreviewMutation` + +platformProvisionSitePreview + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | PlatformProvisionSitePreviewInput (required) | + +### `usePlatformSetSitePreviewMutation` + +platformSetSitePreview + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | PlatformSetSitePreviewInput (required) | + +### `usePlatformSiteMetadataInstallRobotsMutation` + +platformSiteMetadataInstallRobots + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | PlatformSiteMetadataInstallRobotsInput (required) | + +### `usePlatformSitesInstallContentPresetMutation` + +platformSitesInstallContentPreset + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | PlatformSitesInstallContentPresetInput (required) | + +### `usePlatformSitesInstallMantraMutation` + +platformSitesInstallMantra + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | PlatformSitesInstallMantraInput (required) | + ### `usePlatformSitesProvisionStaticSiteMutation` platformSitesProvisionStaticSite @@ -2450,10 +2830,11 @@ platformSitesProvisionStaticSite ### `useProvisionBucketMutation` -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. +Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. - **Type:** mutation - **Arguments:** @@ -2462,15 +2843,38 @@ and lifecycle settings. |----------|------| | `input` | ProvisionBucketInput (required) | +### `useProvisionSitePreviewMutation` + +provisionSitePreview + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | ProvisionSitePreviewInput (required) | + +### `useRejectDatabaseTransferMutation` + +rejectDatabaseTransfer + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | RejectDatabaseTransferInput (required) | + ### `useRequestDatabaseMutation` 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. +Pass exactly one of preset_slug or modules. Pass organization_id to have the organization own the database from the start (the caller must be an owner of that organization); the requesting user is still the identity bootstrapped into the new database. Omit it for a personal database. 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); + SELECT * FROM metaschema_public.request_database('team_app', 'example.com', preset_slug := 'full', organization_id := '00000000-0000-0000-0000-000000000000'::uuid); - **Type:** mutation - **Arguments:** @@ -2490,6 +2894,50 @@ setFieldOrder |----------|------| | `input` | SetFieldOrderInput (required) | +### `useSetSitePreviewMutation` + +setSitePreview + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SetSitePreviewInput (required) | + +### `useSiteMetadataInstallRobotsMutation` + +siteMetadataInstallRobots + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SiteMetadataInstallRobotsInput (required) | + +### `useSitesInstallContentPresetMutation` + +sitesInstallContentPreset + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SitesInstallContentPresetInput (required) | + +### `useSitesInstallMantraMutation` + +sitesInstallMantra + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SitesInstallMantraInput (required) | + ### `useSitesProvisionStaticSiteMutation` sitesProvisionStaticSite diff --git a/sdk/constructive-react/src/api/hooks/index.ts b/sdk/constructive-react/src/api/hooks/index.ts index c76aeb1015..9520d4123d 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: Api, ApiSchema, ApiSetting, AppComponent, App, 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, 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, GetSitePreviewsRecord, HostnameBinding, IdentityProviderRegistry, Index, ManagedDomain, NodeTypeRegistry, Page, Partition, PlatformApi, PlatformApiSchema, PlatformApiSetting, PlatformCorsSetting, PlatformDomain, PlatformDomainEvent, PlatformDomainVerification, PlatformEmailIdentity, PlatformEmailProviderAccount, PlatformEmailSiteIdentity, PlatformGetSitePreviewsRecord, PlatformManagedDomain, PlatformPage, PlatformSiteAppLink, PlatformSite, PlatformSiteDeepLink, PlatformSiteErrorPage, PlatformSiteMetadatum, PlatformSiteModule, PlatformSiteRelease, PlatformSiteTheme, PlatformSiteWebConfig, Policy, PrimaryKeyConstraint, PubkeySetting, Redirect, RlsSetting, RouteBinding, Route, Schema, SchemaGrant, SiteAppLink, Site, SiteDeepLink, SiteErrorPage, SiteMetadatum, SiteModule, SiteRelease, 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 059fe0663f..2860a1dbfb 100644 --- a/sdk/constructive-react/src/api/hooks/invalidation.ts +++ b/sdk/constructive-react/src/api/hooks/invalidation.ts @@ -18,8 +18,7 @@ import { apiKeys, apiSchemaKeys, apiSettingKeys, - appComponentKeys, - appKeys, + astMigrationKeys, checkConstraintKeys, compositeTypeKeys, corsSettingKeys, @@ -44,8 +43,9 @@ import { foreignKeyConstraintKeys, fullTextSearchKeys, functionKeys, + getSitePreviewsRecordKeys, hostnameBindingKeys, - httpRouteKeys, + identityProviderRegistryKeys, indexKeys, managedDomainKeys, nodeTypeRegistryKeys, @@ -61,6 +61,7 @@ import { platformEmailIdentityKeys, platformEmailProviderAccountKeys, platformEmailSiteIdentityKeys, + platformGetSitePreviewsRecordKeys, platformManagedDomainKeys, platformPageKeys, platformSiteAppLinkKeys, @@ -69,11 +70,13 @@ import { platformSiteErrorPageKeys, platformSiteMetadatumKeys, platformSiteModuleKeys, + platformSiteReleaseKeys, platformSiteThemeKeys, platformSiteWebConfigKeys, policyKeys, primaryKeyConstraintKeys, pubkeySettingKeys, + redirectKeys, rlsSettingKeys, routeBindingKeys, routeKeys, @@ -85,9 +88,11 @@ import { siteErrorPageKeys, siteMetadatumKeys, siteModuleKeys, + siteReleaseKeys, siteThemeKeys, siteWebConfigKeys, spatialRelationKeys, + sqlActionKeys, tableBehaviorKeys, tableKeys, tableGrantKeys, @@ -170,35 +175,21 @@ export const invalidate = { queryKey: apiSettingKeys.detail(id), }), }, - /** Invalidate appComponent queries */ appComponent: { - /** Invalidate all appComponent queries */ all: (queryClient: QueryClient) => + /** Invalidate astMigration queries */ astMigration: { + /** Invalidate all astMigration queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: appComponentKeys.all, + queryKey: astMigrationKeys.all, }), - /** Invalidate appComponent list queries */ lists: (queryClient: QueryClient) => + /** Invalidate astMigration list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: appComponentKeys.lists(), + queryKey: astMigrationKeys.lists(), }), - /** Invalidate a specific appComponent */ detail: ( + /** Invalidate a specific astMigration */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: appComponentKeys.detail(id), - }), - }, - /** Invalidate app queries */ app: { - /** Invalidate all app queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appKeys.all, - }), - /** Invalidate app list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appKeys.lists(), - }), - /** Invalidate a specific app */ detail: (queryClient: QueryClient, id: string | number) => - queryClient.invalidateQueries({ - queryKey: appKeys.detail(id), + queryKey: astMigrationKeys.detail(id), }), }, /** Invalidate checkConstraint queries */ checkConstraint: { @@ -591,6 +582,23 @@ export const invalidate = { queryKey: functionKeys.detail(id), }), }, + /** Invalidate getSitePreviewsRecord queries */ getSitePreviewsRecord: { + /** Invalidate all getSitePreviewsRecord queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: getSitePreviewsRecordKeys.all, + }), + /** Invalidate getSitePreviewsRecord list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: getSitePreviewsRecordKeys.lists(), + }), + /** Invalidate a specific getSitePreviewsRecord */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: getSitePreviewsRecordKeys.detail(id), + }), + }, /** Invalidate hostnameBinding queries */ hostnameBinding: { /** Invalidate all hostnameBinding queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -608,21 +616,21 @@ export const invalidate = { queryKey: hostnameBindingKeys.detail(id), }), }, - /** Invalidate httpRoute queries */ httpRoute: { - /** Invalidate all httpRoute queries */ all: (queryClient: QueryClient) => + /** Invalidate identityProviderRegistry queries */ identityProviderRegistry: { + /** Invalidate all identityProviderRegistry queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: httpRouteKeys.all, + queryKey: identityProviderRegistryKeys.all, }), - /** Invalidate httpRoute list queries */ lists: (queryClient: QueryClient) => + /** Invalidate identityProviderRegistry list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: httpRouteKeys.lists(), + queryKey: identityProviderRegistryKeys.lists(), }), - /** Invalidate a specific httpRoute */ detail: ( + /** Invalidate a specific identityProviderRegistry */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: httpRouteKeys.detail(id), + queryKey: identityProviderRegistryKeys.detail(id), }), }, /** Invalidate index queries */ index: { @@ -874,6 +882,25 @@ export const invalidate = { queryKey: platformEmailSiteIdentityKeys.detail(id), }), }, + /** Invalidate platformGetSitePreviewsRecord queries */ platformGetSitePreviewsRecord: { + /** Invalidate all platformGetSitePreviewsRecord queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformGetSitePreviewsRecordKeys.all, + }), + /** Invalidate platformGetSitePreviewsRecord list queries */ lists: ( + queryClient: QueryClient + ) => + queryClient.invalidateQueries({ + queryKey: platformGetSitePreviewsRecordKeys.lists(), + }), + /** Invalidate a specific platformGetSitePreviewsRecord */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: platformGetSitePreviewsRecordKeys.detail(id), + }), + }, /** Invalidate platformManagedDomain queries */ platformManagedDomain: { /** Invalidate all platformManagedDomain queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -1010,6 +1037,23 @@ export const invalidate = { queryKey: platformSiteModuleKeys.detail(id), }), }, + /** Invalidate platformSiteRelease queries */ platformSiteRelease: { + /** Invalidate all platformSiteRelease queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformSiteReleaseKeys.all, + }), + /** Invalidate platformSiteRelease list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformSiteReleaseKeys.lists(), + }), + /** Invalidate a specific platformSiteRelease */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: platformSiteReleaseKeys.detail(id), + }), + }, /** Invalidate platformSiteTheme queries */ platformSiteTheme: { /** Invalidate all platformSiteTheme queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -1092,6 +1136,20 @@ export const invalidate = { queryKey: pubkeySettingKeys.detail(id), }), }, + /** Invalidate redirect queries */ redirect: { + /** Invalidate all redirect queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: redirectKeys.all, + }), + /** Invalidate redirect list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: redirectKeys.lists(), + }), + /** Invalidate a specific redirect */ detail: (queryClient: QueryClient, id: string | number) => + queryClient.invalidateQueries({ + queryKey: redirectKeys.detail(id), + }), + }, /** Invalidate rlsSetting queries */ rlsSetting: { /** Invalidate all rlsSetting queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -1270,6 +1328,23 @@ export const invalidate = { queryKey: siteModuleKeys.detail(id), }), }, + /** Invalidate siteRelease queries */ siteRelease: { + /** Invalidate all siteRelease queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: siteReleaseKeys.all, + }), + /** Invalidate siteRelease list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: siteReleaseKeys.lists(), + }), + /** Invalidate a specific siteRelease */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: siteReleaseKeys.detail(id), + }), + }, /** Invalidate siteTheme queries */ siteTheme: { /** Invalidate all siteTheme queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -1321,6 +1396,23 @@ export const invalidate = { queryKey: spatialRelationKeys.detail(id), }), }, + /** Invalidate sqlAction queries */ sqlAction: { + /** Invalidate all sqlAction queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: sqlActionKeys.all, + }), + /** Invalidate sqlAction list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: sqlActionKeys.lists(), + }), + /** Invalidate a specific sqlAction */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: sqlActionKeys.detail(id), + }), + }, /** Invalidate tableBehavior queries */ tableBehavior: { /** Invalidate all tableBehavior queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -1561,17 +1653,12 @@ export const remove = { queryKey: apiSettingKeys.detail(id), }); }, - /** Remove appComponent from cache */ appComponent: ( + /** Remove astMigration from cache */ astMigration: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: appComponentKeys.detail(id), - }); - }, - /** Remove app from cache */ app: (queryClient: QueryClient, id: string | number) => { - queryClient.removeQueries({ - queryKey: appKeys.detail(id), + queryKey: astMigrationKeys.detail(id), }); }, /** Remove checkConstraint from cache */ checkConstraint: ( @@ -1748,6 +1835,14 @@ export const remove = { queryKey: functionKeys.detail(id), }); }, + /** Remove getSitePreviewsRecord from cache */ getSitePreviewsRecord: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: getSitePreviewsRecordKeys.detail(id), + }); + }, /** Remove hostnameBinding from cache */ hostnameBinding: ( queryClient: QueryClient, id: string | number @@ -1756,9 +1851,12 @@ export const remove = { queryKey: hostnameBindingKeys.detail(id), }); }, - /** Remove httpRoute from cache */ httpRoute: (queryClient: QueryClient, id: string | number) => { + /** Remove identityProviderRegistry from cache */ identityProviderRegistry: ( + queryClient: QueryClient, + id: string | number + ) => { queryClient.removeQueries({ - queryKey: httpRouteKeys.detail(id), + queryKey: identityProviderRegistryKeys.detail(id), }); }, /** Remove index from cache */ index: (queryClient: QueryClient, id: string | number) => { @@ -1872,6 +1970,14 @@ export const remove = { queryKey: platformEmailSiteIdentityKeys.detail(id), }); }, + /** Remove platformGetSitePreviewsRecord from cache */ platformGetSitePreviewsRecord: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: platformGetSitePreviewsRecordKeys.detail(id), + }); + }, /** Remove platformManagedDomain from cache */ platformManagedDomain: ( queryClient: QueryClient, id: string | number @@ -1936,6 +2042,14 @@ export const remove = { queryKey: platformSiteModuleKeys.detail(id), }); }, + /** Remove platformSiteRelease from cache */ platformSiteRelease: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: platformSiteReleaseKeys.detail(id), + }); + }, /** Remove platformSiteTheme from cache */ platformSiteTheme: ( queryClient: QueryClient, id: string | number @@ -1973,6 +2087,11 @@ export const remove = { queryKey: pubkeySettingKeys.detail(id), }); }, + /** Remove redirect from cache */ redirect: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: redirectKeys.detail(id), + }); + }, /** Remove rlsSetting from cache */ rlsSetting: ( queryClient: QueryClient, id: string | number @@ -2052,6 +2171,14 @@ export const remove = { queryKey: siteModuleKeys.detail(id), }); }, + /** Remove siteRelease from cache */ siteRelease: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: siteReleaseKeys.detail(id), + }); + }, /** Remove siteTheme from cache */ siteTheme: (queryClient: QueryClient, id: string | number) => { queryClient.removeQueries({ queryKey: siteThemeKeys.detail(id), @@ -2073,6 +2200,11 @@ export const remove = { queryKey: spatialRelationKeys.detail(id), }); }, + /** Remove sqlAction from cache */ sqlAction: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: sqlActionKeys.detail(id), + }); + }, /** Remove tableBehavior from cache */ tableBehavior: ( 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 1a5c7cfc71..556951e0f0 100644 --- a/sdk/constructive-react/src/api/hooks/mutation-keys.ts +++ b/sdk/constructive-react/src/api/hooks/mutation-keys.ts @@ -42,22 +42,14 @@ export const apiSettingMutationKeys = { /** Delete apiSetting mutation key */ delete: (id: string | number) => ['mutation', 'apisetting', 'delete', id] as const, } as const; -export const appComponentMutationKeys = { - /** All appComponent mutation keys */ all: ['mutation', 'appcomponent'] as const, - /** Create appComponent mutation key */ create: () => - ['mutation', 'appcomponent', 'create'] as const, - /** Update appComponent mutation key */ update: (id: string | number) => - ['mutation', 'appcomponent', 'update', id] as const, - /** Delete appComponent mutation key */ delete: (id: string | number) => - ['mutation', 'appcomponent', 'delete', id] as const, -} as const; -export const appMutationKeys = { - /** All app mutation keys */ all: ['mutation', 'app'] as const, - /** Create app mutation key */ create: () => ['mutation', 'app', 'create'] as const, - /** Update app mutation key */ update: (id: string | number) => - ['mutation', 'app', 'update', id] as const, - /** Delete app mutation key */ delete: (id: string | number) => - ['mutation', 'app', 'delete', id] as const, +export const astMigrationMutationKeys = { + /** All astMigration mutation keys */ all: ['mutation', 'astmigration'] as const, + /** Create astMigration mutation key */ create: () => + ['mutation', 'astmigration', 'create'] as const, + /** Update astMigration mutation key */ update: (id: string | number) => + ['mutation', 'astmigration', 'update', id] as const, + /** Delete astMigration mutation key */ delete: (id: string | number) => + ['mutation', 'astmigration', 'delete', id] as const, } as const; export const checkConstraintMutationKeys = { /** All checkConstraint mutation keys */ all: ['mutation', 'checkconstraint'] as const, @@ -271,6 +263,18 @@ export const functionMutationKeys = { /** Delete function mutation key */ delete: (id: string | number) => ['mutation', 'function', 'delete', id] as const, } as const; +export const getSitePreviewsRecordMutationKeys = { + /** All getSitePreviewsRecord mutation keys */ all: [ + 'mutation', + 'getsitepreviewsrecord', + ] as const, + /** Create getSitePreviewsRecord mutation key */ create: () => + ['mutation', 'getsitepreviewsrecord', 'create'] as const, + /** Update getSitePreviewsRecord mutation key */ update: (id: string | number) => + ['mutation', 'getsitepreviewsrecord', 'update', id] as const, + /** Delete getSitePreviewsRecord mutation key */ delete: (id: string | number) => + ['mutation', 'getsitepreviewsrecord', 'delete', id] as const, +} as const; export const hostnameBindingMutationKeys = { /** All hostnameBinding mutation keys */ all: ['mutation', 'hostnamebinding'] as const, /** Create hostnameBinding mutation key */ create: () => @@ -280,13 +284,17 @@ export const hostnameBindingMutationKeys = { /** Delete hostnameBinding mutation key */ delete: (id: string | number) => ['mutation', 'hostnamebinding', 'delete', id] as const, } as const; -export const httpRouteMutationKeys = { - /** All httpRoute mutation keys */ all: ['mutation', 'httproute'] as const, - /** Create httpRoute mutation key */ create: () => ['mutation', 'httproute', 'create'] as const, - /** Update httpRoute mutation key */ update: (id: string | number) => - ['mutation', 'httproute', 'update', id] as const, - /** Delete httpRoute mutation key */ delete: (id: string | number) => - ['mutation', 'httproute', 'delete', id] as const, +export const identityProviderRegistryMutationKeys = { + /** All identityProviderRegistry mutation keys */ all: [ + 'mutation', + 'identityproviderregistry', + ] as const, + /** Create identityProviderRegistry mutation key */ create: () => + ['mutation', 'identityproviderregistry', 'create'] as const, + /** Update identityProviderRegistry mutation key */ update: (id: string | number) => + ['mutation', 'identityproviderregistry', 'update', id] as const, + /** Delete identityProviderRegistry mutation key */ delete: (id: string | number) => + ['mutation', 'identityproviderregistry', 'delete', id] as const, } as const; export const indexMutationKeys = { /** All index mutation keys */ all: ['mutation', 'index'] as const, @@ -432,6 +440,18 @@ export const platformEmailSiteIdentityMutationKeys = { /** Delete platformEmailSiteIdentity mutation key */ delete: (id: string | number) => ['mutation', 'platformemailsiteidentity', 'delete', id] as const, } as const; +export const platformGetSitePreviewsRecordMutationKeys = { + /** All platformGetSitePreviewsRecord mutation keys */ all: [ + 'mutation', + 'platformgetsitepreviewsrecord', + ] as const, + /** Create platformGetSitePreviewsRecord mutation key */ create: () => + ['mutation', 'platformgetsitepreviewsrecord', 'create'] as const, + /** Update platformGetSitePreviewsRecord mutation key */ update: (id: string | number) => + ['mutation', 'platformgetsitepreviewsrecord', 'update', id] as const, + /** Delete platformGetSitePreviewsRecord mutation key */ delete: (id: string | number) => + ['mutation', 'platformgetsitepreviewsrecord', 'delete', id] as const, +} as const; export const platformManagedDomainMutationKeys = { /** All platformManagedDomain mutation keys */ all: [ 'mutation', @@ -513,6 +533,15 @@ export const platformSiteModuleMutationKeys = { /** Delete platformSiteModule mutation key */ delete: (id: string | number) => ['mutation', 'platformsitemodule', 'delete', id] as const, } as const; +export const platformSiteReleaseMutationKeys = { + /** All platformSiteRelease mutation keys */ all: ['mutation', 'platformsiterelease'] as const, + /** Create platformSiteRelease mutation key */ create: () => + ['mutation', 'platformsiterelease', 'create'] as const, + /** Update platformSiteRelease mutation key */ update: (id: string | number) => + ['mutation', 'platformsiterelease', 'update', id] as const, + /** Delete platformSiteRelease mutation key */ delete: (id: string | number) => + ['mutation', 'platformsiterelease', 'delete', id] as const, +} as const; export const platformSiteThemeMutationKeys = { /** All platformSiteTheme mutation keys */ all: ['mutation', 'platformsitetheme'] as const, /** Create platformSiteTheme mutation key */ create: () => @@ -560,6 +589,14 @@ export const pubkeySettingMutationKeys = { /** Delete pubkeySetting mutation key */ delete: (id: string | number) => ['mutation', 'pubkeysetting', 'delete', id] as const, } as const; +export const redirectMutationKeys = { + /** All redirect mutation keys */ all: ['mutation', 'redirect'] as const, + /** Create redirect mutation key */ create: () => ['mutation', 'redirect', 'create'] as const, + /** Update redirect mutation key */ update: (id: string | number) => + ['mutation', 'redirect', 'update', id] as const, + /** Delete redirect mutation key */ delete: (id: string | number) => + ['mutation', 'redirect', 'delete', id] as const, +} as const; export const rlsSettingMutationKeys = { /** All rlsSetting mutation keys */ all: ['mutation', 'rlssetting'] as const, /** Create rlsSetting mutation key */ create: () => ['mutation', 'rlssetting', 'create'] as const, @@ -654,6 +691,15 @@ export const siteModuleMutationKeys = { /** Delete siteModule mutation key */ delete: (id: string | number) => ['mutation', 'sitemodule', 'delete', id] as const, } as const; +export const siteReleaseMutationKeys = { + /** All siteRelease mutation keys */ all: ['mutation', 'siterelease'] as const, + /** Create siteRelease mutation key */ create: () => + ['mutation', 'siterelease', 'create'] as const, + /** Update siteRelease mutation key */ update: (id: string | number) => + ['mutation', 'siterelease', 'update', id] as const, + /** Delete siteRelease mutation key */ delete: (id: string | number) => + ['mutation', 'siterelease', 'delete', id] as const, +} as const; export const siteThemeMutationKeys = { /** All siteTheme mutation keys */ all: ['mutation', 'sitetheme'] as const, /** Create siteTheme mutation key */ create: () => ['mutation', 'sitetheme', 'create'] as const, @@ -680,6 +726,14 @@ export const spatialRelationMutationKeys = { /** Delete spatialRelation mutation key */ delete: (id: string | number) => ['mutation', 'spatialrelation', 'delete', id] as const, } as const; +export const sqlActionMutationKeys = { + /** All sqlAction mutation keys */ all: ['mutation', 'sqlaction'] as const, + /** Create sqlAction mutation key */ create: () => ['mutation', 'sqlaction', 'create'] as const, + /** Update sqlAction mutation key */ update: (id: string | number) => + ['mutation', 'sqlaction', 'update', id] as const, + /** Delete sqlAction mutation key */ delete: (id: string | number) => + ['mutation', 'sqlaction', 'delete', id] as const, +} as const; export const tableBehaviorMutationKeys = { /** All tableBehavior mutation keys */ all: ['mutation', 'tablebehavior'] as const, /** Create tableBehavior mutation key */ create: () => @@ -799,32 +853,86 @@ export const webauthnSettingMutationKeys = { // ============================================================================ export const customMutationKeys = { + /** Mutation key for acceptDatabaseTransfer */ acceptDatabaseTransfer: (identifier?: string) => + identifier + ? (['mutation', 'acceptDatabaseTransfer', identifier] as const) + : (['mutation', 'acceptDatabaseTransfer'] as const), /** Mutation key for applyRls */ applyRls: (identifier?: string) => identifier ? (['mutation', 'applyRls', identifier] as const) : (['mutation', 'applyRls'] as const), - /** Mutation key for appsInstallApp */ appsInstallApp: (identifier?: string) => - identifier - ? (['mutation', 'appsInstallApp', identifier] as const) - : (['mutation', 'appsInstallApp'] as const), - /** Mutation key for appsUninstallApp */ appsUninstallApp: (identifier?: string) => + /** Mutation key for cancelDatabaseTransfer */ cancelDatabaseTransfer: (identifier?: string) => identifier - ? (['mutation', 'appsUninstallApp', identifier] as const) - : (['mutation', 'appsUninstallApp'] as const), - /** Mutation key for appsUpgradeApp */ appsUpgradeApp: (identifier?: string) => + ? (['mutation', 'cancelDatabaseTransfer', identifier] as const) + : (['mutation', 'cancelDatabaseTransfer'] as const), + /** Mutation key for deleteSitePreview */ deleteSitePreview: (identifier?: string) => identifier - ? (['mutation', 'appsUpgradeApp', identifier] as const) - : (['mutation', 'appsUpgradeApp'] as const), + ? (['mutation', 'deleteSitePreview', identifier] as const) + : (['mutation', 'deleteSitePreview'] as const), /** Mutation key for domainsAssignSubdomain */ domainsAssignSubdomain: (identifier?: string) => identifier ? (['mutation', 'domainsAssignSubdomain', identifier] as const) : (['mutation', 'domainsAssignSubdomain'] as const), + /** Mutation key for mintSitePreviewToken */ mintSitePreviewToken: (identifier?: string) => + identifier + ? (['mutation', 'mintSitePreviewToken', identifier] as const) + : (['mutation', 'mintSitePreviewToken'] as const), + /** Mutation key for pagesInstallPages */ pagesInstallPages: (identifier?: string) => + identifier + ? (['mutation', 'pagesInstallPages', identifier] as const) + : (['mutation', 'pagesInstallPages'] as const), + /** Mutation key for platformDeleteSitePreview */ platformDeleteSitePreview: ( + identifier?: string + ) => + identifier + ? (['mutation', 'platformDeleteSitePreview', identifier] as const) + : (['mutation', 'platformDeleteSitePreview'] as const), /** Mutation key for platformDomainsAssignSubdomain */ platformDomainsAssignSubdomain: ( identifier?: string ) => identifier ? (['mutation', 'platformDomainsAssignSubdomain', identifier] as const) : (['mutation', 'platformDomainsAssignSubdomain'] as const), + /** Mutation key for platformMintSitePreviewToken */ platformMintSitePreviewToken: ( + identifier?: string + ) => + identifier + ? (['mutation', 'platformMintSitePreviewToken', identifier] as const) + : (['mutation', 'platformMintSitePreviewToken'] as const), + /** Mutation key for platformPagesInstallPages */ platformPagesInstallPages: ( + identifier?: string + ) => + identifier + ? (['mutation', 'platformPagesInstallPages', identifier] as const) + : (['mutation', 'platformPagesInstallPages'] as const), + /** Mutation key for platformProvisionSitePreview */ platformProvisionSitePreview: ( + identifier?: string + ) => + identifier + ? (['mutation', 'platformProvisionSitePreview', identifier] as const) + : (['mutation', 'platformProvisionSitePreview'] as const), + /** Mutation key for platformSetSitePreview */ platformSetSitePreview: (identifier?: string) => + identifier + ? (['mutation', 'platformSetSitePreview', identifier] as const) + : (['mutation', 'platformSetSitePreview'] as const), + /** Mutation key for platformSiteMetadataInstallRobots */ platformSiteMetadataInstallRobots: ( + identifier?: string + ) => + identifier + ? (['mutation', 'platformSiteMetadataInstallRobots', identifier] as const) + : (['mutation', 'platformSiteMetadataInstallRobots'] as const), + /** Mutation key for platformSitesInstallContentPreset */ platformSitesInstallContentPreset: ( + identifier?: string + ) => + identifier + ? (['mutation', 'platformSitesInstallContentPreset', identifier] as const) + : (['mutation', 'platformSitesInstallContentPreset'] as const), + /** Mutation key for platformSitesInstallMantra */ platformSitesInstallMantra: ( + identifier?: string + ) => + identifier + ? (['mutation', 'platformSitesInstallMantra', identifier] as const) + : (['mutation', 'platformSitesInstallMantra'] as const), /** Mutation key for platformSitesProvisionStaticSite */ platformSitesProvisionStaticSite: ( identifier?: string ) => @@ -835,6 +943,14 @@ export const customMutationKeys = { identifier ? (['mutation', 'provisionBucket', identifier] as const) : (['mutation', 'provisionBucket'] as const), + /** Mutation key for provisionSitePreview */ provisionSitePreview: (identifier?: string) => + identifier + ? (['mutation', 'provisionSitePreview', identifier] as const) + : (['mutation', 'provisionSitePreview'] as const), + /** Mutation key for rejectDatabaseTransfer */ rejectDatabaseTransfer: (identifier?: string) => + identifier + ? (['mutation', 'rejectDatabaseTransfer', identifier] as const) + : (['mutation', 'rejectDatabaseTransfer'] as const), /** Mutation key for requestDatabase */ requestDatabase: (identifier?: string) => identifier ? (['mutation', 'requestDatabase', identifier] as const) @@ -843,6 +959,26 @@ export const customMutationKeys = { identifier ? (['mutation', 'setFieldOrder', identifier] as const) : (['mutation', 'setFieldOrder'] as const), + /** Mutation key for setSitePreview */ setSitePreview: (identifier?: string) => + identifier + ? (['mutation', 'setSitePreview', identifier] as const) + : (['mutation', 'setSitePreview'] as const), + /** Mutation key for siteMetadataInstallRobots */ siteMetadataInstallRobots: ( + identifier?: string + ) => + identifier + ? (['mutation', 'siteMetadataInstallRobots', identifier] as const) + : (['mutation', 'siteMetadataInstallRobots'] as const), + /** Mutation key for sitesInstallContentPreset */ sitesInstallContentPreset: ( + identifier?: string + ) => + identifier + ? (['mutation', 'sitesInstallContentPreset', identifier] as const) + : (['mutation', 'sitesInstallContentPreset'] as const), + /** Mutation key for sitesInstallMantra */ sitesInstallMantra: (identifier?: string) => + identifier + ? (['mutation', 'sitesInstallMantra', identifier] as const) + : (['mutation', 'sitesInstallMantra'] as const), /** Mutation key for sitesProvisionStaticSite */ sitesProvisionStaticSite: ( identifier?: string ) => @@ -876,8 +1012,7 @@ export const mutationKeys = { api: apiMutationKeys, apiSchema: apiSchemaMutationKeys, apiSetting: apiSettingMutationKeys, - appComponent: appComponentMutationKeys, - app: appMutationKeys, + astMigration: astMigrationMutationKeys, checkConstraint: checkConstraintMutationKeys, compositeType: compositeTypeMutationKeys, corsSetting: corsSettingMutationKeys, @@ -902,8 +1037,9 @@ export const mutationKeys = { foreignKeyConstraint: foreignKeyConstraintMutationKeys, fullTextSearch: fullTextSearchMutationKeys, function: functionMutationKeys, + getSitePreviewsRecord: getSitePreviewsRecordMutationKeys, hostnameBinding: hostnameBindingMutationKeys, - httpRoute: httpRouteMutationKeys, + identityProviderRegistry: identityProviderRegistryMutationKeys, index: indexMutationKeys, managedDomain: managedDomainMutationKeys, nodeTypeRegistry: nodeTypeRegistryMutationKeys, @@ -919,6 +1055,7 @@ export const mutationKeys = { platformEmailIdentity: platformEmailIdentityMutationKeys, platformEmailProviderAccount: platformEmailProviderAccountMutationKeys, platformEmailSiteIdentity: platformEmailSiteIdentityMutationKeys, + platformGetSitePreviewsRecord: platformGetSitePreviewsRecordMutationKeys, platformManagedDomain: platformManagedDomainMutationKeys, platformPage: platformPageMutationKeys, platformSiteAppLink: platformSiteAppLinkMutationKeys, @@ -927,11 +1064,13 @@ export const mutationKeys = { platformSiteErrorPage: platformSiteErrorPageMutationKeys, platformSiteMetadatum: platformSiteMetadatumMutationKeys, platformSiteModule: platformSiteModuleMutationKeys, + platformSiteRelease: platformSiteReleaseMutationKeys, platformSiteTheme: platformSiteThemeMutationKeys, platformSiteWebConfig: platformSiteWebConfigMutationKeys, policy: policyMutationKeys, primaryKeyConstraint: primaryKeyConstraintMutationKeys, pubkeySetting: pubkeySettingMutationKeys, + redirect: redirectMutationKeys, rlsSetting: rlsSettingMutationKeys, routeBinding: routeBindingMutationKeys, route: routeMutationKeys, @@ -943,9 +1082,11 @@ export const mutationKeys = { siteErrorPage: siteErrorPageMutationKeys, siteMetadatum: siteMetadatumMutationKeys, siteModule: siteModuleMutationKeys, + siteRelease: siteReleaseMutationKeys, siteTheme: siteThemeMutationKeys, siteWebConfig: siteWebConfigMutationKeys, spatialRelation: spatialRelationMutationKeys, + sqlAction: sqlActionMutationKeys, tableBehavior: tableBehaviorMutationKeys, table: tableMutationKeys, tableGrant: tableGrantMutationKeys, diff --git a/sdk/constructive-react/src/api/hooks/mutations/index.ts b/sdk/constructive-react/src/api/hooks/mutations/index.ts index b22347264f..89f7de17be 100644 --- a/sdk/constructive-react/src/api/hooks/mutations/index.ts +++ b/sdk/constructive-react/src/api/hooks/mutations/index.ts @@ -12,12 +12,7 @@ export * from './useDeleteApiSchemaMutation'; export * from './useCreateApiSettingMutation'; export * from './useUpdateApiSettingMutation'; export * from './useDeleteApiSettingMutation'; -export * from './useCreateAppComponentMutation'; -export * from './useUpdateAppComponentMutation'; -export * from './useDeleteAppComponentMutation'; -export * from './useCreateAppMutation'; -export * from './useUpdateAppMutation'; -export * from './useDeleteAppMutation'; +export * from './useCreateAstMigrationMutation'; export * from './useCreateCheckConstraintMutation'; export * from './useUpdateCheckConstraintMutation'; export * from './useDeleteCheckConstraintMutation'; @@ -90,12 +85,13 @@ export * from './useDeleteFullTextSearchMutation'; export * from './useCreateFunctionMutation'; export * from './useUpdateFunctionMutation'; export * from './useDeleteFunctionMutation'; +export * from './useCreateGetSitePreviewsRecordMutation'; export * from './useCreateHostnameBindingMutation'; export * from './useUpdateHostnameBindingMutation'; export * from './useDeleteHostnameBindingMutation'; -export * from './useCreateHttpRouteMutation'; -export * from './useUpdateHttpRouteMutation'; -export * from './useDeleteHttpRouteMutation'; +export * from './useCreateIdentityProviderRegistryMutation'; +export * from './useUpdateIdentityProviderRegistryMutation'; +export * from './useDeleteIdentityProviderRegistryMutation'; export * from './useCreateIndexMutation'; export * from './useUpdateIndexMutation'; export * from './useDeleteIndexMutation'; @@ -141,6 +137,7 @@ export * from './useDeletePlatformEmailProviderAccountMutation'; export * from './useCreatePlatformEmailSiteIdentityMutation'; export * from './useUpdatePlatformEmailSiteIdentityMutation'; export * from './useDeletePlatformEmailSiteIdentityMutation'; +export * from './useCreatePlatformGetSitePreviewsRecordMutation'; export * from './useCreatePlatformManagedDomainMutation'; export * from './useUpdatePlatformManagedDomainMutation'; export * from './useDeletePlatformManagedDomainMutation'; @@ -165,6 +162,9 @@ export * from './useDeletePlatformSiteMetadatumMutation'; export * from './useCreatePlatformSiteModuleMutation'; export * from './useUpdatePlatformSiteModuleMutation'; export * from './useDeletePlatformSiteModuleMutation'; +export * from './useCreatePlatformSiteReleaseMutation'; +export * from './useUpdatePlatformSiteReleaseMutation'; +export * from './useDeletePlatformSiteReleaseMutation'; export * from './useCreatePlatformSiteThemeMutation'; export * from './useUpdatePlatformSiteThemeMutation'; export * from './useDeletePlatformSiteThemeMutation'; @@ -180,6 +180,9 @@ export * from './useDeletePrimaryKeyConstraintMutation'; export * from './useCreatePubkeySettingMutation'; export * from './useUpdatePubkeySettingMutation'; export * from './useDeletePubkeySettingMutation'; +export * from './useCreateRedirectMutation'; +export * from './useUpdateRedirectMutation'; +export * from './useDeleteRedirectMutation'; export * from './useCreateRlsSettingMutation'; export * from './useUpdateRlsSettingMutation'; export * from './useDeleteRlsSettingMutation'; @@ -213,6 +216,9 @@ export * from './useDeleteSiteMetadatumMutation'; export * from './useCreateSiteModuleMutation'; export * from './useUpdateSiteModuleMutation'; export * from './useDeleteSiteModuleMutation'; +export * from './useCreateSiteReleaseMutation'; +export * from './useUpdateSiteReleaseMutation'; +export * from './useDeleteSiteReleaseMutation'; export * from './useCreateSiteThemeMutation'; export * from './useUpdateSiteThemeMutation'; export * from './useDeleteSiteThemeMutation'; @@ -222,6 +228,7 @@ export * from './useDeleteSiteWebConfigMutation'; export * from './useCreateSpatialRelationMutation'; export * from './useUpdateSpatialRelationMutation'; export * from './useDeleteSpatialRelationMutation'; +export * from './useCreateSqlActionMutation'; export * from './useCreateTableBehaviorMutation'; export * from './useUpdateTableBehaviorMutation'; export * from './useDeleteTableBehaviorMutation'; @@ -261,14 +268,30 @@ export * from './useDeleteViewTableMutation'; export * from './useCreateWebauthnSettingMutation'; export * from './useUpdateWebauthnSettingMutation'; export * from './useDeleteWebauthnSettingMutation'; +export * from './useAcceptDatabaseTransferMutation'; export * from './useApplyRlsMutation'; -export * from './useAppsInstallAppMutation'; -export * from './useAppsUninstallAppMutation'; -export * from './useAppsUpgradeAppMutation'; +export * from './useCancelDatabaseTransferMutation'; +export * from './useDeleteSitePreviewMutation'; export * from './useDomainsAssignSubdomainMutation'; +export * from './useMintSitePreviewTokenMutation'; +export * from './usePagesInstallPagesMutation'; +export * from './usePlatformDeleteSitePreviewMutation'; export * from './usePlatformDomainsAssignSubdomainMutation'; +export * from './usePlatformMintSitePreviewTokenMutation'; +export * from './usePlatformPagesInstallPagesMutation'; +export * from './usePlatformProvisionSitePreviewMutation'; +export * from './usePlatformSetSitePreviewMutation'; +export * from './usePlatformSiteMetadataInstallRobotsMutation'; +export * from './usePlatformSitesInstallContentPresetMutation'; +export * from './usePlatformSitesInstallMantraMutation'; export * from './usePlatformSitesProvisionStaticSiteMutation'; export * from './useProvisionBucketMutation'; +export * from './useProvisionSitePreviewMutation'; +export * from './useRejectDatabaseTransferMutation'; export * from './useRequestDatabaseMutation'; export * from './useSetFieldOrderMutation'; +export * from './useSetSitePreviewMutation'; +export * from './useSiteMetadataInstallRobotsMutation'; +export * from './useSitesInstallContentPresetMutation'; +export * from './useSitesInstallMantraMutation'; export * from './useSitesProvisionStaticSiteMutation'; diff --git a/sdk/constructive-react/src/api/hooks/mutations/useAcceptDatabaseTransferMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useAcceptDatabaseTransferMutation.ts new file mode 100644 index 0000000000..c31146bfe5 --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/mutations/useAcceptDatabaseTransferMutation.ts @@ -0,0 +1,58 @@ +/** + * Custom mutation hook for acceptDatabaseTransfer + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { customMutationKeys } from '../mutation-keys'; +import type { AcceptDatabaseTransferVariables } from '../../orm/mutation'; +import type { + AcceptDatabaseTransferPayloadSelect, + AcceptDatabaseTransferPayload, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { AcceptDatabaseTransferVariables } from '../../orm/mutation'; +export type { AcceptDatabaseTransferPayloadSelect } from '../../orm/input-types'; +export function useAcceptDatabaseTransferMutation( + params: { + selection: { + fields: S & AcceptDatabaseTransferPayloadSelect; + } & HookStrictSelect, AcceptDatabaseTransferPayloadSelect>; + } & Omit< + UseMutationOptions< + { + acceptDatabaseTransfer: InferSelectResult | null; + }, + Error, + AcceptDatabaseTransferVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + acceptDatabaseTransfer: InferSelectResult | null; + }, + Error, + AcceptDatabaseTransferVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.acceptDatabaseTransfer(), + mutationFn: (variables: AcceptDatabaseTransferVariables) => + getClient() + .mutation.acceptDatabaseTransfer(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/api/hooks/mutations/useAppsInstallAppMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useAppsInstallAppMutation.ts deleted file mode 100644 index 5f49f5f8e4..0000000000 --- a/sdk/constructive-react/src/api/hooks/mutations/useAppsInstallAppMutation.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * Custom mutation hook for appsInstallApp - * @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 { AppsInstallAppVariables } from '../../orm/mutation'; -import type { AppsInstallAppPayloadSelect, AppsInstallAppPayload } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; -export type { AppsInstallAppVariables } from '../../orm/mutation'; -export type { AppsInstallAppPayloadSelect } from '../../orm/input-types'; -export function useAppsInstallAppMutation( - params: { - selection: { - fields: S & AppsInstallAppPayloadSelect; - } & HookStrictSelect, AppsInstallAppPayloadSelect>; - } & Omit< - UseMutationOptions< - { - appsInstallApp: InferSelectResult | null; - }, - Error, - AppsInstallAppVariables - >, - 'mutationFn' - > -): UseMutationResult< - { - appsInstallApp: InferSelectResult | null; - }, - Error, - AppsInstallAppVariables -> { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - return useMutation({ - mutationKey: customMutationKeys.appsInstallApp(), - mutationFn: (variables: AppsInstallAppVariables) => - getClient() - .mutation.appsInstallApp(variables, { - select: args.select, - } as { - select: S; - } & StrictSelect) - .unwrap(), - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/api/hooks/mutations/useAppsUninstallAppMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useAppsUninstallAppMutation.ts deleted file mode 100644 index 91492e5fbd..0000000000 --- a/sdk/constructive-react/src/api/hooks/mutations/useAppsUninstallAppMutation.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * Custom mutation hook for appsUninstallApp - * @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 { AppsUninstallAppVariables } from '../../orm/mutation'; -import type { AppsUninstallAppPayloadSelect, AppsUninstallAppPayload } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; -export type { AppsUninstallAppVariables } from '../../orm/mutation'; -export type { AppsUninstallAppPayloadSelect } from '../../orm/input-types'; -export function useAppsUninstallAppMutation( - params: { - selection: { - fields: S & AppsUninstallAppPayloadSelect; - } & HookStrictSelect, AppsUninstallAppPayloadSelect>; - } & Omit< - UseMutationOptions< - { - appsUninstallApp: InferSelectResult | null; - }, - Error, - AppsUninstallAppVariables - >, - 'mutationFn' - > -): UseMutationResult< - { - appsUninstallApp: InferSelectResult | null; - }, - Error, - AppsUninstallAppVariables -> { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - return useMutation({ - mutationKey: customMutationKeys.appsUninstallApp(), - mutationFn: (variables: AppsUninstallAppVariables) => - getClient() - .mutation.appsUninstallApp(variables, { - select: args.select, - } as { - select: S; - } & StrictSelect) - .unwrap(), - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/api/hooks/mutations/useAppsUpgradeAppMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useAppsUpgradeAppMutation.ts deleted file mode 100644 index c25006dab4..0000000000 --- a/sdk/constructive-react/src/api/hooks/mutations/useAppsUpgradeAppMutation.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * Custom mutation hook for appsUpgradeApp - * @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 { AppsUpgradeAppVariables } from '../../orm/mutation'; -import type { AppsUpgradeAppPayloadSelect, AppsUpgradeAppPayload } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; -export type { AppsUpgradeAppVariables } from '../../orm/mutation'; -export type { AppsUpgradeAppPayloadSelect } from '../../orm/input-types'; -export function useAppsUpgradeAppMutation( - params: { - selection: { - fields: S & AppsUpgradeAppPayloadSelect; - } & HookStrictSelect, AppsUpgradeAppPayloadSelect>; - } & Omit< - UseMutationOptions< - { - appsUpgradeApp: InferSelectResult | null; - }, - Error, - AppsUpgradeAppVariables - >, - 'mutationFn' - > -): UseMutationResult< - { - appsUpgradeApp: InferSelectResult | null; - }, - Error, - AppsUpgradeAppVariables -> { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - return useMutation({ - mutationKey: customMutationKeys.appsUpgradeApp(), - mutationFn: (variables: AppsUpgradeAppVariables) => - getClient() - .mutation.appsUpgradeApp(variables, { - select: args.select, - } as { - select: S; - } & StrictSelect) - .unwrap(), - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/api/hooks/mutations/useCancelDatabaseTransferMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useCancelDatabaseTransferMutation.ts new file mode 100644 index 0000000000..99fa89988a --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/mutations/useCancelDatabaseTransferMutation.ts @@ -0,0 +1,58 @@ +/** + * Custom mutation hook for cancelDatabaseTransfer + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { customMutationKeys } from '../mutation-keys'; +import type { CancelDatabaseTransferVariables } from '../../orm/mutation'; +import type { + CancelDatabaseTransferPayloadSelect, + CancelDatabaseTransferPayload, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { CancelDatabaseTransferVariables } from '../../orm/mutation'; +export type { CancelDatabaseTransferPayloadSelect } from '../../orm/input-types'; +export function useCancelDatabaseTransferMutation( + params: { + selection: { + fields: S & CancelDatabaseTransferPayloadSelect; + } & HookStrictSelect, CancelDatabaseTransferPayloadSelect>; + } & Omit< + UseMutationOptions< + { + cancelDatabaseTransfer: InferSelectResult | null; + }, + Error, + CancelDatabaseTransferVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + cancelDatabaseTransfer: InferSelectResult | null; + }, + Error, + CancelDatabaseTransferVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.cancelDatabaseTransfer(), + mutationFn: (variables: CancelDatabaseTransferVariables) => + getClient() + .mutation.cancelDatabaseTransfer(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/api/hooks/mutations/useCreateAppComponentMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useCreateAppComponentMutation.ts deleted file mode 100644 index 0eea64763e..0000000000 --- a/sdk/constructive-react/src/api/hooks/mutations/useCreateAppComponentMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * App component rows binding an app to typed catalog rows (exactly one typed component reference per row) - * @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 { appComponentKeys } from '../query-keys'; -import { appComponentMutationKeys } from '../mutation-keys'; -import type { - AppComponentSelect, - AppComponentWithRelations, - CreateAppComponentInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppComponentSelect, - AppComponentWithRelations, - CreateAppComponentInput, -} from '../../orm/input-types'; -/** - * App component rows binding an app to typed catalog rows (exactly one typed component reference per row) - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateAppComponentMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateAppComponentMutation( - params: { - selection: { - fields: S & AppComponentSelect; - } & HookStrictSelect, AppComponentSelect>; - } & Omit< - UseMutationOptions< - { - createAppComponent: { - appComponent: InferSelectResult; - }; - }, - Error, - CreateAppComponentInput['appComponent'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createAppComponent: { - appComponent: InferSelectResult; - }; - }, - Error, - CreateAppComponentInput['appComponent'] ->; -export function useCreateAppComponentMutation( - params: { - selection: SelectionConfig; - } & Omit, 'mutationFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: appComponentMutationKeys.create(), - mutationFn: (data: CreateAppComponentInput['appComponent']) => - getClient() - .appComponent.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: appComponentKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/api/hooks/mutations/useCreateAppMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useCreateAppMutation.ts deleted file mode 100644 index cf6664b6b8..0000000000 --- a/sdk/constructive-react/src/api/hooks/mutations/useCreateAppMutation.ts +++ /dev/null @@ -1,80 +0,0 @@ -/** - * App aggregates: thin identity rows whose components are global catalog references - * @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 { appKeys } from '../query-keys'; -import { appMutationKeys } from '../mutation-keys'; -import type { AppSelect, AppWithRelations, CreateAppInput } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { AppSelect, AppWithRelations, CreateAppInput } from '../../orm/input-types'; -/** - * App aggregates: thin identity rows whose components are global catalog references - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateAppMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateAppMutation( - params: { - selection: { - fields: S & AppSelect; - } & HookStrictSelect, AppSelect>; - } & Omit< - UseMutationOptions< - { - createApp: { - app: InferSelectResult; - }; - }, - Error, - CreateAppInput['app'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createApp: { - app: InferSelectResult; - }; - }, - Error, - CreateAppInput['app'] ->; -export function useCreateAppMutation( - params: { - selection: SelectionConfig; - } & Omit, 'mutationFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: appMutationKeys.create(), - mutationFn: (data: CreateAppInput['app']) => - getClient() - .app.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: appKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/api/hooks/mutations/useCreateAstMigrationMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useCreateAstMigrationMutation.ts new file mode 100644 index 0000000000..7f9caacb12 --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/mutations/useCreateAstMigrationMutation.ts @@ -0,0 +1,88 @@ +/** + * Create mutation hook for AstMigration + * @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 { astMigrationKeys } from '../query-keys'; +import { astMigrationMutationKeys } from '../mutation-keys'; +import type { + AstMigrationSelect, + AstMigrationWithRelations, + CreateAstMigrationInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AstMigrationSelect, + AstMigrationWithRelations, + CreateAstMigrationInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a AstMigration + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateAstMigrationMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateAstMigrationMutation( + params: { + selection: { + fields: S & AstMigrationSelect; + } & HookStrictSelect, AstMigrationSelect>; + } & Omit< + UseMutationOptions< + { + createAstMigration: { + astMigration: InferSelectResult; + }; + }, + Error, + CreateAstMigrationInput['astMigration'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createAstMigration: { + astMigration: InferSelectResult; + }; + }, + Error, + CreateAstMigrationInput['astMigration'] +>; +export function useCreateAstMigrationMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: astMigrationMutationKeys.create(), + mutationFn: (data: CreateAstMigrationInput['astMigration']) => + getClient() + .astMigration.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: astMigrationKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/api/hooks/mutations/useCreateGetSitePreviewsRecordMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useCreateGetSitePreviewsRecordMutation.ts new file mode 100644 index 0000000000..a4db420795 --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/mutations/useCreateGetSitePreviewsRecordMutation.ts @@ -0,0 +1,91 @@ +/** + * Create mutation hook for GetSitePreviewsRecord + * @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 { getSitePreviewsRecordKeys } from '../query-keys'; +import { getSitePreviewsRecordMutationKeys } from '../mutation-keys'; +import type { + GetSitePreviewsRecordSelect, + GetSitePreviewsRecordWithRelations, + CreateGetSitePreviewsRecordInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + GetSitePreviewsRecordSelect, + GetSitePreviewsRecordWithRelations, + CreateGetSitePreviewsRecordInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a GetSitePreviewsRecord + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateGetSitePreviewsRecordMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateGetSitePreviewsRecordMutation( + params: { + selection: { + fields: S & GetSitePreviewsRecordSelect; + } & HookStrictSelect, GetSitePreviewsRecordSelect>; + } & Omit< + UseMutationOptions< + { + createGetSitePreviewsRecord: { + getSitePreviewsRecord: InferSelectResult; + }; + }, + Error, + CreateGetSitePreviewsRecordInput['getSitePreviewsRecord'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createGetSitePreviewsRecord: { + getSitePreviewsRecord: InferSelectResult; + }; + }, + Error, + CreateGetSitePreviewsRecordInput['getSitePreviewsRecord'] +>; +export function useCreateGetSitePreviewsRecordMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: getSitePreviewsRecordMutationKeys.create(), + mutationFn: (data: CreateGetSitePreviewsRecordInput['getSitePreviewsRecord']) => + getClient() + .getSitePreviewsRecord.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: getSitePreviewsRecordKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/api/hooks/mutations/useCreateHttpRouteMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useCreateHttpRouteMutation.ts deleted file mode 100644 index dfac46d247..0000000000 --- a/sdk/constructive-react/src/api/hooks/mutations/useCreateHttpRouteMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * Request-time HTTP routing authority: registered domain plus path prefix and optional method to a typed target - * @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 { httpRouteKeys } from '../query-keys'; -import { httpRouteMutationKeys } from '../mutation-keys'; -import type { - HttpRouteSelect, - HttpRouteWithRelations, - CreateHttpRouteInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - HttpRouteSelect, - HttpRouteWithRelations, - CreateHttpRouteInput, -} from '../../orm/input-types'; -/** - * Request-time HTTP routing authority: registered domain plus path prefix and optional method to a typed target - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateHttpRouteMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateHttpRouteMutation( - params: { - selection: { - fields: S & HttpRouteSelect; - } & HookStrictSelect, HttpRouteSelect>; - } & Omit< - UseMutationOptions< - { - createHttpRoute: { - httpRoute: InferSelectResult; - }; - }, - Error, - CreateHttpRouteInput['httpRoute'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createHttpRoute: { - httpRoute: InferSelectResult; - }; - }, - Error, - CreateHttpRouteInput['httpRoute'] ->; -export function useCreateHttpRouteMutation( - params: { - selection: SelectionConfig; - } & Omit, 'mutationFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: httpRouteMutationKeys.create(), - mutationFn: (data: CreateHttpRouteInput['httpRoute']) => - getClient() - .httpRoute.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: httpRouteKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/api/hooks/mutations/useCreateIdentityProviderRegistryMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useCreateIdentityProviderRegistryMutation.ts new file mode 100644 index 0000000000..368b9c94d1 --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/mutations/useCreateIdentityProviderRegistryMutation.ts @@ -0,0 +1,91 @@ +/** + * Create mutation hook for IdentityProviderRegistry + * @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 { identityProviderRegistryKeys } from '../query-keys'; +import { identityProviderRegistryMutationKeys } from '../mutation-keys'; +import type { + IdentityProviderRegistrySelect, + IdentityProviderRegistryWithRelations, + CreateIdentityProviderRegistryInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + IdentityProviderRegistrySelect, + IdentityProviderRegistryWithRelations, + CreateIdentityProviderRegistryInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a IdentityProviderRegistry + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateIdentityProviderRegistryMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateIdentityProviderRegistryMutation( + params: { + selection: { + fields: S & IdentityProviderRegistrySelect; + } & HookStrictSelect, IdentityProviderRegistrySelect>; + } & Omit< + UseMutationOptions< + { + createIdentityProviderRegistry: { + identityProviderRegistry: InferSelectResult; + }; + }, + Error, + CreateIdentityProviderRegistryInput['identityProviderRegistry'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createIdentityProviderRegistry: { + identityProviderRegistry: InferSelectResult; + }; + }, + Error, + CreateIdentityProviderRegistryInput['identityProviderRegistry'] +>; +export function useCreateIdentityProviderRegistryMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: identityProviderRegistryMutationKeys.create(), + mutationFn: (data: CreateIdentityProviderRegistryInput['identityProviderRegistry']) => + getClient() + .identityProviderRegistry.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: identityProviderRegistryKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/api/hooks/mutations/useCreatePlatformGetSitePreviewsRecordMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useCreatePlatformGetSitePreviewsRecordMutation.ts new file mode 100644 index 0000000000..c2f3e8c5c5 --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/mutations/useCreatePlatformGetSitePreviewsRecordMutation.ts @@ -0,0 +1,103 @@ +/** + * Create mutation hook for PlatformGetSitePreviewsRecord + * @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 { platformGetSitePreviewsRecordKeys } from '../query-keys'; +import { platformGetSitePreviewsRecordMutationKeys } from '../mutation-keys'; +import type { + PlatformGetSitePreviewsRecordSelect, + PlatformGetSitePreviewsRecordWithRelations, + CreatePlatformGetSitePreviewsRecordInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformGetSitePreviewsRecordSelect, + PlatformGetSitePreviewsRecordWithRelations, + CreatePlatformGetSitePreviewsRecordInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a PlatformGetSitePreviewsRecord + * + * @example + * ```tsx + * const { mutate, isPending } = useCreatePlatformGetSitePreviewsRecordMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreatePlatformGetSitePreviewsRecordMutation< + S extends PlatformGetSitePreviewsRecordSelect, +>( + params: { + selection: { + fields: S & PlatformGetSitePreviewsRecordSelect; + } & HookStrictSelect, PlatformGetSitePreviewsRecordSelect>; + } & Omit< + UseMutationOptions< + { + createPlatformGetSitePreviewsRecord: { + platformGetSitePreviewsRecord: InferSelectResult< + PlatformGetSitePreviewsRecordWithRelations, + S + >; + }; + }, + Error, + CreatePlatformGetSitePreviewsRecordInput['platformGetSitePreviewsRecord'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createPlatformGetSitePreviewsRecord: { + platformGetSitePreviewsRecord: InferSelectResult< + PlatformGetSitePreviewsRecordWithRelations, + S + >; + }; + }, + Error, + CreatePlatformGetSitePreviewsRecordInput['platformGetSitePreviewsRecord'] +>; +export function useCreatePlatformGetSitePreviewsRecordMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + CreatePlatformGetSitePreviewsRecordInput['platformGetSitePreviewsRecord'] + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformGetSitePreviewsRecordMutationKeys.create(), + mutationFn: (data: CreatePlatformGetSitePreviewsRecordInput['platformGetSitePreviewsRecord']) => + getClient() + .platformGetSitePreviewsRecord.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: platformGetSitePreviewsRecordKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/api/hooks/mutations/useCreatePlatformSiteAppLinkMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useCreatePlatformSiteAppLinkMutation.ts index 42a4d05bc8..3cfa81cc8e 100644 --- a/sdk/constructive-react/src/api/hooks/mutations/useCreatePlatformSiteAppLinkMutation.ts +++ b/sdk/constructive-react/src/api/hooks/mutations/useCreatePlatformSiteAppLinkMutation.ts @@ -1,5 +1,5 @@ /** - * Native-app deep-link association metadata for a site surface (feeds AASA / assetlinks.json generation) + * Per-host native-app association for a site surface: which app-owned store identity this host serves, and the path patterns it claims (joined with the store identity to render AASA / assetlinks.json) * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreatePlatformSiteAppLinkInput, } from '../../orm/input-types'; /** - * Native-app deep-link association metadata for a site surface (feeds AASA / assetlinks.json generation) + * Per-host native-app association for a site surface: which app-owned store identity this host serves, and the path patterns it claims (joined with the store identity to render AASA / assetlinks.json) * * @example * ```tsx diff --git a/sdk/constructive-react/src/api/hooks/mutations/useCreatePlatformSiteReleaseMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useCreatePlatformSiteReleaseMutation.ts new file mode 100644 index 0000000000..6f35dd2bc7 --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/mutations/useCreatePlatformSiteReleaseMutation.ts @@ -0,0 +1,91 @@ +/** + * Immutable static-site release manifest head, versioned in the site-owned merkle 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 { platformSiteReleaseKeys } from '../query-keys'; +import { platformSiteReleaseMutationKeys } from '../mutation-keys'; +import type { + PlatformSiteReleaseSelect, + PlatformSiteReleaseWithRelations, + CreatePlatformSiteReleaseInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformSiteReleaseSelect, + PlatformSiteReleaseWithRelations, + CreatePlatformSiteReleaseInput, +} from '../../orm/input-types'; +/** + * Immutable static-site release manifest head, versioned in the site-owned merkle store + * + * @example + * ```tsx + * const { mutate, isPending } = useCreatePlatformSiteReleaseMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreatePlatformSiteReleaseMutation( + params: { + selection: { + fields: S & PlatformSiteReleaseSelect; + } & HookStrictSelect, PlatformSiteReleaseSelect>; + } & Omit< + UseMutationOptions< + { + createPlatformSiteRelease: { + platformSiteRelease: InferSelectResult; + }; + }, + Error, + CreatePlatformSiteReleaseInput['platformSiteRelease'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createPlatformSiteRelease: { + platformSiteRelease: InferSelectResult; + }; + }, + Error, + CreatePlatformSiteReleaseInput['platformSiteRelease'] +>; +export function useCreatePlatformSiteReleaseMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformSiteReleaseMutationKeys.create(), + mutationFn: (data: CreatePlatformSiteReleaseInput['platformSiteRelease']) => + getClient() + .platformSiteRelease.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: platformSiteReleaseKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/api/hooks/mutations/useCreateRedirectMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useCreateRedirectMutation.ts new file mode 100644 index 0000000000..bae62c4c16 --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/mutations/useCreateRedirectMutation.ts @@ -0,0 +1,88 @@ +/** + * Redirect targets a route can point at; the edge answers with a redirect status instead of a backend + * @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 { redirectKeys } from '../query-keys'; +import { redirectMutationKeys } from '../mutation-keys'; +import type { + RedirectSelect, + RedirectWithRelations, + CreateRedirectInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + RedirectSelect, + RedirectWithRelations, + CreateRedirectInput, +} from '../../orm/input-types'; +/** + * Redirect targets a route can point at; the edge answers with a redirect status instead of a backend + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateRedirectMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateRedirectMutation( + params: { + selection: { + fields: S & RedirectSelect; + } & HookStrictSelect, RedirectSelect>; + } & Omit< + UseMutationOptions< + { + createRedirect: { + redirect: InferSelectResult; + }; + }, + Error, + CreateRedirectInput['redirect'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createRedirect: { + redirect: InferSelectResult; + }; + }, + Error, + CreateRedirectInput['redirect'] +>; +export function useCreateRedirectMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: redirectMutationKeys.create(), + mutationFn: (data: CreateRedirectInput['redirect']) => + getClient() + .redirect.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: redirectKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/api/hooks/mutations/useCreateSiteAppLinkMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useCreateSiteAppLinkMutation.ts index 259a0ce7a8..4f6b13c484 100644 --- a/sdk/constructive-react/src/api/hooks/mutations/useCreateSiteAppLinkMutation.ts +++ b/sdk/constructive-react/src/api/hooks/mutations/useCreateSiteAppLinkMutation.ts @@ -1,5 +1,5 @@ /** - * Native-app deep-link association metadata for a site surface (feeds AASA / assetlinks.json generation) + * Per-host native-app association for a site surface: which app-owned store identity this host serves, and the path patterns it claims (joined with the store identity to render AASA / assetlinks.json) * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateSiteAppLinkInput, } from '../../orm/input-types'; /** - * Native-app deep-link association metadata for a site surface (feeds AASA / assetlinks.json generation) + * Per-host native-app association for a site surface: which app-owned store identity this host serves, and the path patterns it claims (joined with the store identity to render AASA / assetlinks.json) * * @example * ```tsx diff --git a/sdk/constructive-react/src/api/hooks/mutations/useCreateSiteReleaseMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useCreateSiteReleaseMutation.ts new file mode 100644 index 0000000000..a3bbc19454 --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/mutations/useCreateSiteReleaseMutation.ts @@ -0,0 +1,88 @@ +/** + * Immutable static-site release manifest head, versioned in the site-owned merkle 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 { siteReleaseKeys } from '../query-keys'; +import { siteReleaseMutationKeys } from '../mutation-keys'; +import type { + SiteReleaseSelect, + SiteReleaseWithRelations, + CreateSiteReleaseInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + SiteReleaseSelect, + SiteReleaseWithRelations, + CreateSiteReleaseInput, +} from '../../orm/input-types'; +/** + * Immutable static-site release manifest head, versioned in the site-owned merkle store + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateSiteReleaseMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateSiteReleaseMutation( + params: { + selection: { + fields: S & SiteReleaseSelect; + } & HookStrictSelect, SiteReleaseSelect>; + } & Omit< + UseMutationOptions< + { + createSiteRelease: { + siteRelease: InferSelectResult; + }; + }, + Error, + CreateSiteReleaseInput['siteRelease'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createSiteRelease: { + siteRelease: InferSelectResult; + }; + }, + Error, + CreateSiteReleaseInput['siteRelease'] +>; +export function useCreateSiteReleaseMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: siteReleaseMutationKeys.create(), + mutationFn: (data: CreateSiteReleaseInput['siteRelease']) => + getClient() + .siteRelease.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: siteReleaseKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/api/hooks/mutations/useCreateSqlActionMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useCreateSqlActionMutation.ts new file mode 100644 index 0000000000..d8eaa7564f --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/mutations/useCreateSqlActionMutation.ts @@ -0,0 +1,88 @@ +/** + * Create mutation hook for SqlAction + * @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 { sqlActionKeys } from '../query-keys'; +import { sqlActionMutationKeys } from '../mutation-keys'; +import type { + SqlActionSelect, + SqlActionWithRelations, + CreateSqlActionInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + SqlActionSelect, + SqlActionWithRelations, + CreateSqlActionInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a SqlAction + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateSqlActionMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateSqlActionMutation( + params: { + selection: { + fields: S & SqlActionSelect; + } & HookStrictSelect, SqlActionSelect>; + } & Omit< + UseMutationOptions< + { + createSqlAction: { + sqlAction: InferSelectResult; + }; + }, + Error, + CreateSqlActionInput['sqlAction'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createSqlAction: { + sqlAction: InferSelectResult; + }; + }, + Error, + CreateSqlActionInput['sqlAction'] +>; +export function useCreateSqlActionMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: sqlActionMutationKeys.create(), + mutationFn: (data: CreateSqlActionInput['sqlAction']) => + getClient() + .sqlAction.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: sqlActionKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/api/hooks/mutations/useDeleteAppComponentMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useDeleteAppComponentMutation.ts deleted file mode 100644 index 1a94370747..0000000000 --- a/sdk/constructive-react/src/api/hooks/mutations/useDeleteAppComponentMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * App component rows binding an app to typed catalog rows (exactly one typed component reference per row) - * @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 { appComponentKeys } from '../query-keys'; -import { appComponentMutationKeys } from '../mutation-keys'; -import type { AppComponentSelect, AppComponentWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { AppComponentSelect, AppComponentWithRelations } from '../../orm/input-types'; -/** - * App component rows binding an app to typed catalog rows (exactly one typed component reference per row) - * - * @example - * ```tsx - * const { mutate, isPending } = useDeleteAppComponentMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 'value-to-delete' }); - * ``` - */ -export function useDeleteAppComponentMutation( - params: { - selection: { - fields: S & AppComponentSelect; - } & HookStrictSelect, AppComponentSelect>; - } & Omit< - UseMutationOptions< - { - deleteAppComponent: { - appComponent: InferSelectResult; - }; - }, - Error, - { - id: string; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deleteAppComponent: { - appComponent: InferSelectResult; - }; - }, - Error, - { - id: string; - } ->; -export function useDeleteAppComponentMutation( - 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: appComponentMutationKeys.all, - mutationFn: ({ id }: { id: string }) => - getClient() - .appComponent.delete({ - where: { - id, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: appComponentKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: appComponentKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/api/hooks/mutations/useDeleteAppMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useDeleteAppMutation.ts deleted file mode 100644 index 36d4d068ee..0000000000 --- a/sdk/constructive-react/src/api/hooks/mutations/useDeleteAppMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * App aggregates: thin identity rows whose components are global catalog references - * @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 { appKeys } from '../query-keys'; -import { appMutationKeys } from '../mutation-keys'; -import type { AppSelect, AppWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { AppSelect, AppWithRelations } from '../../orm/input-types'; -/** - * App aggregates: thin identity rows whose components are global catalog references - * - * @example - * ```tsx - * const { mutate, isPending } = useDeleteAppMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 'value-to-delete' }); - * ``` - */ -export function useDeleteAppMutation( - params: { - selection: { - fields: S & AppSelect; - } & HookStrictSelect, AppSelect>; - } & Omit< - UseMutationOptions< - { - deleteApp: { - app: InferSelectResult; - }; - }, - Error, - { - id: string; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deleteApp: { - app: InferSelectResult; - }; - }, - Error, - { - id: string; - } ->; -export function useDeleteAppMutation( - 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: appMutationKeys.all, - mutationFn: ({ id }: { id: string }) => - getClient() - .app.delete({ - where: { - id, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: appKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: appKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/api/hooks/mutations/useDeleteHttpRouteMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useDeleteHttpRouteMutation.ts deleted file mode 100644 index cb6c46876b..0000000000 --- a/sdk/constructive-react/src/api/hooks/mutations/useDeleteHttpRouteMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * Request-time HTTP routing authority: registered domain plus path prefix and optional method to a typed target - * @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 { httpRouteKeys } from '../query-keys'; -import { httpRouteMutationKeys } from '../mutation-keys'; -import type { HttpRouteSelect, HttpRouteWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { HttpRouteSelect, HttpRouteWithRelations } from '../../orm/input-types'; -/** - * Request-time HTTP routing authority: registered domain plus path prefix and optional method to a typed target - * - * @example - * ```tsx - * const { mutate, isPending } = useDeleteHttpRouteMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 'value-to-delete' }); - * ``` - */ -export function useDeleteHttpRouteMutation( - params: { - selection: { - fields: S & HttpRouteSelect; - } & HookStrictSelect, HttpRouteSelect>; - } & Omit< - UseMutationOptions< - { - deleteHttpRoute: { - httpRoute: InferSelectResult; - }; - }, - Error, - { - id: string; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deleteHttpRoute: { - httpRoute: InferSelectResult; - }; - }, - Error, - { - id: string; - } ->; -export function useDeleteHttpRouteMutation( - 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: httpRouteMutationKeys.all, - mutationFn: ({ id }: { id: string }) => - getClient() - .httpRoute.delete({ - where: { - id, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: httpRouteKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: httpRouteKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/api/hooks/mutations/useDeleteIdentityProviderRegistryMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useDeleteIdentityProviderRegistryMutation.ts new file mode 100644 index 0000000000..9f2b36675a --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/mutations/useDeleteIdentityProviderRegistryMutation.ts @@ -0,0 +1,104 @@ +/** + * Delete mutation hook for IdentityProviderRegistry + * @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 { identityProviderRegistryKeys } from '../query-keys'; +import { identityProviderRegistryMutationKeys } from '../mutation-keys'; +import type { + IdentityProviderRegistrySelect, + IdentityProviderRegistryWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + IdentityProviderRegistrySelect, + IdentityProviderRegistryWithRelations, +} from '../../orm/input-types'; +/** + * Mutation hook for deleting a IdentityProviderRegistry with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteIdentityProviderRegistryMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ slug: 'value-to-delete' }); + * ``` + */ +export function useDeleteIdentityProviderRegistryMutation( + params: { + selection: { + fields: S & IdentityProviderRegistrySelect; + } & HookStrictSelect, IdentityProviderRegistrySelect>; + } & Omit< + UseMutationOptions< + { + deleteIdentityProviderRegistry: { + identityProviderRegistry: InferSelectResult; + }; + }, + Error, + { + slug: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteIdentityProviderRegistry: { + identityProviderRegistry: InferSelectResult; + }; + }, + Error, + { + slug: string; + } +>; +export function useDeleteIdentityProviderRegistryMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + slug: string; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: identityProviderRegistryMutationKeys.all, + mutationFn: ({ slug }: { slug: string }) => + getClient() + .identityProviderRegistry.delete({ + where: { + slug, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: identityProviderRegistryKeys.detail(variables.slug), + }); + queryClient.invalidateQueries({ + queryKey: identityProviderRegistryKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/api/hooks/mutations/useDeletePlatformSiteAppLinkMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useDeletePlatformSiteAppLinkMutation.ts index 9ebe9fdd39..8dd2db7fb5 100644 --- a/sdk/constructive-react/src/api/hooks/mutations/useDeletePlatformSiteAppLinkMutation.ts +++ b/sdk/constructive-react/src/api/hooks/mutations/useDeletePlatformSiteAppLinkMutation.ts @@ -1,5 +1,5 @@ /** - * Native-app deep-link association metadata for a site surface (feeds AASA / assetlinks.json generation) + * Per-host native-app association for a site surface: which app-owned store identity this host serves, and the path patterns it claims (joined with the store identity to render AASA / assetlinks.json) * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -21,7 +21,7 @@ export type { PlatformSiteAppLinkWithRelations, } from '../../orm/input-types'; /** - * Native-app deep-link association metadata for a site surface (feeds AASA / assetlinks.json generation) + * Per-host native-app association for a site surface: which app-owned store identity this host serves, and the path patterns it claims (joined with the store identity to render AASA / assetlinks.json) * * @example * ```tsx diff --git a/sdk/constructive-react/src/api/hooks/mutations/useDeletePlatformSiteReleaseMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useDeletePlatformSiteReleaseMutation.ts new file mode 100644 index 0000000000..63b61b391a --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/mutations/useDeletePlatformSiteReleaseMutation.ts @@ -0,0 +1,104 @@ +/** + * Immutable static-site release manifest head, versioned in the site-owned merkle 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 { platformSiteReleaseKeys } from '../query-keys'; +import { platformSiteReleaseMutationKeys } from '../mutation-keys'; +import type { + PlatformSiteReleaseSelect, + PlatformSiteReleaseWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformSiteReleaseSelect, + PlatformSiteReleaseWithRelations, +} from '../../orm/input-types'; +/** + * Immutable static-site release manifest head, versioned in the site-owned merkle store + * + * @example + * ```tsx + * const { mutate, isPending } = useDeletePlatformSiteReleaseMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeletePlatformSiteReleaseMutation( + params: { + selection: { + fields: S & PlatformSiteReleaseSelect; + } & HookStrictSelect, PlatformSiteReleaseSelect>; + } & Omit< + UseMutationOptions< + { + deletePlatformSiteRelease: { + platformSiteRelease: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deletePlatformSiteRelease: { + platformSiteRelease: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeletePlatformSiteReleaseMutation( + 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: platformSiteReleaseMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .platformSiteRelease.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: platformSiteReleaseKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformSiteReleaseKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/api/hooks/mutations/useDeleteRedirectMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useDeleteRedirectMutation.ts new file mode 100644 index 0000000000..08300f37c8 --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/mutations/useDeleteRedirectMutation.ts @@ -0,0 +1,98 @@ +/** + * Redirect targets a route can point at; the edge answers with a redirect status instead of a backend + * @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 { redirectKeys } from '../query-keys'; +import { redirectMutationKeys } from '../mutation-keys'; +import type { RedirectSelect, RedirectWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { RedirectSelect, RedirectWithRelations } from '../../orm/input-types'; +/** + * Redirect targets a route can point at; the edge answers with a redirect status instead of a backend + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteRedirectMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteRedirectMutation( + params: { + selection: { + fields: S & RedirectSelect; + } & HookStrictSelect, RedirectSelect>; + } & Omit< + UseMutationOptions< + { + deleteRedirect: { + redirect: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteRedirect: { + redirect: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteRedirectMutation( + 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: redirectMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .redirect.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: redirectKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: redirectKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/api/hooks/mutations/useDeleteSiteAppLinkMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useDeleteSiteAppLinkMutation.ts index 316f68a47a..c320fa3d51 100644 --- a/sdk/constructive-react/src/api/hooks/mutations/useDeleteSiteAppLinkMutation.ts +++ b/sdk/constructive-react/src/api/hooks/mutations/useDeleteSiteAppLinkMutation.ts @@ -1,5 +1,5 @@ /** - * Native-app deep-link association metadata for a site surface (feeds AASA / assetlinks.json generation) + * Per-host native-app association for a site surface: which app-owned store identity this host serves, and the path patterns it claims (joined with the store identity to render AASA / assetlinks.json) * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { SiteAppLinkSelect, SiteAppLinkWithRelations } from '../../orm/inpu import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { SiteAppLinkSelect, SiteAppLinkWithRelations } from '../../orm/input-types'; /** - * Native-app deep-link association metadata for a site surface (feeds AASA / assetlinks.json generation) + * Per-host native-app association for a site surface: which app-owned store identity this host serves, and the path patterns it claims (joined with the store identity to render AASA / assetlinks.json) * * @example * ```tsx diff --git a/sdk/constructive-react/src/api/hooks/mutations/useDeleteSitePreviewMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useDeleteSitePreviewMutation.ts new file mode 100644 index 0000000000..00fdf0c993 --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/mutations/useDeleteSitePreviewMutation.ts @@ -0,0 +1,58 @@ +/** + * Custom mutation hook for deleteSitePreview + * @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 { DeleteSitePreviewVariables } from '../../orm/mutation'; +import type { + DeleteSitePreviewPayloadSelect, + DeleteSitePreviewPayload, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { DeleteSitePreviewVariables } from '../../orm/mutation'; +export type { DeleteSitePreviewPayloadSelect } from '../../orm/input-types'; +export function useDeleteSitePreviewMutation( + params: { + selection: { + fields: S & DeleteSitePreviewPayloadSelect; + } & HookStrictSelect, DeleteSitePreviewPayloadSelect>; + } & Omit< + UseMutationOptions< + { + deleteSitePreview: InferSelectResult | null; + }, + Error, + DeleteSitePreviewVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteSitePreview: InferSelectResult | null; + }, + Error, + DeleteSitePreviewVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.deleteSitePreview(), + mutationFn: (variables: DeleteSitePreviewVariables) => + getClient() + .mutation.deleteSitePreview(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/api/hooks/mutations/useDeleteSiteReleaseMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useDeleteSiteReleaseMutation.ts new file mode 100644 index 0000000000..c9b82c7350 --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/mutations/useDeleteSiteReleaseMutation.ts @@ -0,0 +1,98 @@ +/** + * Immutable static-site release manifest head, versioned in the site-owned merkle 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 { siteReleaseKeys } from '../query-keys'; +import { siteReleaseMutationKeys } from '../mutation-keys'; +import type { SiteReleaseSelect, SiteReleaseWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { SiteReleaseSelect, SiteReleaseWithRelations } from '../../orm/input-types'; +/** + * Immutable static-site release manifest head, versioned in the site-owned merkle store + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteSiteReleaseMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteSiteReleaseMutation( + params: { + selection: { + fields: S & SiteReleaseSelect; + } & HookStrictSelect, SiteReleaseSelect>; + } & Omit< + UseMutationOptions< + { + deleteSiteRelease: { + siteRelease: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteSiteRelease: { + siteRelease: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteSiteReleaseMutation( + 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: siteReleaseMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .siteRelease.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: siteReleaseKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: siteReleaseKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/api/hooks/mutations/useMintSitePreviewTokenMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useMintSitePreviewTokenMutation.ts new file mode 100644 index 0000000000..9255a56b6a --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/mutations/useMintSitePreviewTokenMutation.ts @@ -0,0 +1,58 @@ +/** + * Custom mutation hook for mintSitePreviewToken + * @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 { MintSitePreviewTokenVariables } from '../../orm/mutation'; +import type { + MintSitePreviewTokenPayloadSelect, + MintSitePreviewTokenPayload, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { MintSitePreviewTokenVariables } from '../../orm/mutation'; +export type { MintSitePreviewTokenPayloadSelect } from '../../orm/input-types'; +export function useMintSitePreviewTokenMutation( + params: { + selection: { + fields: S & MintSitePreviewTokenPayloadSelect; + } & HookStrictSelect, MintSitePreviewTokenPayloadSelect>; + } & Omit< + UseMutationOptions< + { + mintSitePreviewToken: InferSelectResult | null; + }, + Error, + MintSitePreviewTokenVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + mintSitePreviewToken: InferSelectResult | null; + }, + Error, + MintSitePreviewTokenVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.mintSitePreviewToken(), + mutationFn: (variables: MintSitePreviewTokenVariables) => + getClient() + .mutation.mintSitePreviewToken(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/api/hooks/mutations/usePagesInstallPagesMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/usePagesInstallPagesMutation.ts new file mode 100644 index 0000000000..6a8d03be60 --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/mutations/usePagesInstallPagesMutation.ts @@ -0,0 +1,58 @@ +/** + * Custom mutation hook for pagesInstallPages + * @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 { PagesInstallPagesVariables } from '../../orm/mutation'; +import type { + PagesInstallPagesPayloadSelect, + PagesInstallPagesPayload, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { PagesInstallPagesVariables } from '../../orm/mutation'; +export type { PagesInstallPagesPayloadSelect } from '../../orm/input-types'; +export function usePagesInstallPagesMutation( + params: { + selection: { + fields: S & PagesInstallPagesPayloadSelect; + } & HookStrictSelect, PagesInstallPagesPayloadSelect>; + } & Omit< + UseMutationOptions< + { + pagesInstallPages: InferSelectResult | null; + }, + Error, + PagesInstallPagesVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + pagesInstallPages: InferSelectResult | null; + }, + Error, + PagesInstallPagesVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.pagesInstallPages(), + mutationFn: (variables: PagesInstallPagesVariables) => + getClient() + .mutation.pagesInstallPages(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/api/hooks/mutations/usePlatformDeleteSitePreviewMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/usePlatformDeleteSitePreviewMutation.ts new file mode 100644 index 0000000000..83b62909cb --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/mutations/usePlatformDeleteSitePreviewMutation.ts @@ -0,0 +1,60 @@ +/** + * Custom mutation hook for platformDeleteSitePreview + * @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 { PlatformDeleteSitePreviewVariables } from '../../orm/mutation'; +import type { + PlatformDeleteSitePreviewPayloadSelect, + PlatformDeleteSitePreviewPayload, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { PlatformDeleteSitePreviewVariables } from '../../orm/mutation'; +export type { PlatformDeleteSitePreviewPayloadSelect } from '../../orm/input-types'; +export function usePlatformDeleteSitePreviewMutation< + S extends PlatformDeleteSitePreviewPayloadSelect, +>( + params: { + selection: { + fields: S & PlatformDeleteSitePreviewPayloadSelect; + } & HookStrictSelect, PlatformDeleteSitePreviewPayloadSelect>; + } & Omit< + UseMutationOptions< + { + platformDeleteSitePreview: InferSelectResult | null; + }, + Error, + PlatformDeleteSitePreviewVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + platformDeleteSitePreview: InferSelectResult | null; + }, + Error, + PlatformDeleteSitePreviewVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.platformDeleteSitePreview(), + mutationFn: (variables: PlatformDeleteSitePreviewVariables) => + getClient() + .mutation.platformDeleteSitePreview(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/api/hooks/mutations/usePlatformMintSitePreviewTokenMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/usePlatformMintSitePreviewTokenMutation.ts new file mode 100644 index 0000000000..ff22b3ee7d --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/mutations/usePlatformMintSitePreviewTokenMutation.ts @@ -0,0 +1,63 @@ +/** + * Custom mutation hook for platformMintSitePreviewToken + * @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 { PlatformMintSitePreviewTokenVariables } from '../../orm/mutation'; +import type { + PlatformMintSitePreviewTokenPayloadSelect, + PlatformMintSitePreviewTokenPayload, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { PlatformMintSitePreviewTokenVariables } from '../../orm/mutation'; +export type { PlatformMintSitePreviewTokenPayloadSelect } from '../../orm/input-types'; +export function usePlatformMintSitePreviewTokenMutation< + S extends PlatformMintSitePreviewTokenPayloadSelect, +>( + params: { + selection: { + fields: S & PlatformMintSitePreviewTokenPayloadSelect; + } & HookStrictSelect, PlatformMintSitePreviewTokenPayloadSelect>; + } & Omit< + UseMutationOptions< + { + platformMintSitePreviewToken: InferSelectResult< + PlatformMintSitePreviewTokenPayload, + S + > | null; + }, + Error, + PlatformMintSitePreviewTokenVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + platformMintSitePreviewToken: InferSelectResult | null; + }, + Error, + PlatformMintSitePreviewTokenVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.platformMintSitePreviewToken(), + mutationFn: (variables: PlatformMintSitePreviewTokenVariables) => + getClient() + .mutation.platformMintSitePreviewToken(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/api/hooks/mutations/usePlatformPagesInstallPagesMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/usePlatformPagesInstallPagesMutation.ts new file mode 100644 index 0000000000..8d8910cc2e --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/mutations/usePlatformPagesInstallPagesMutation.ts @@ -0,0 +1,60 @@ +/** + * Custom mutation hook for platformPagesInstallPages + * @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 { PlatformPagesInstallPagesVariables } from '../../orm/mutation'; +import type { + PlatformPagesInstallPagesPayloadSelect, + PlatformPagesInstallPagesPayload, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { PlatformPagesInstallPagesVariables } from '../../orm/mutation'; +export type { PlatformPagesInstallPagesPayloadSelect } from '../../orm/input-types'; +export function usePlatformPagesInstallPagesMutation< + S extends PlatformPagesInstallPagesPayloadSelect, +>( + params: { + selection: { + fields: S & PlatformPagesInstallPagesPayloadSelect; + } & HookStrictSelect, PlatformPagesInstallPagesPayloadSelect>; + } & Omit< + UseMutationOptions< + { + platformPagesInstallPages: InferSelectResult | null; + }, + Error, + PlatformPagesInstallPagesVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + platformPagesInstallPages: InferSelectResult | null; + }, + Error, + PlatformPagesInstallPagesVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.platformPagesInstallPages(), + mutationFn: (variables: PlatformPagesInstallPagesVariables) => + getClient() + .mutation.platformPagesInstallPages(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/api/hooks/mutations/usePlatformProvisionSitePreviewMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/usePlatformProvisionSitePreviewMutation.ts new file mode 100644 index 0000000000..8f7afc6878 --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/mutations/usePlatformProvisionSitePreviewMutation.ts @@ -0,0 +1,63 @@ +/** + * Custom mutation hook for platformProvisionSitePreview + * @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 { PlatformProvisionSitePreviewVariables } from '../../orm/mutation'; +import type { + PlatformProvisionSitePreviewPayloadSelect, + PlatformProvisionSitePreviewPayload, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { PlatformProvisionSitePreviewVariables } from '../../orm/mutation'; +export type { PlatformProvisionSitePreviewPayloadSelect } from '../../orm/input-types'; +export function usePlatformProvisionSitePreviewMutation< + S extends PlatformProvisionSitePreviewPayloadSelect, +>( + params: { + selection: { + fields: S & PlatformProvisionSitePreviewPayloadSelect; + } & HookStrictSelect, PlatformProvisionSitePreviewPayloadSelect>; + } & Omit< + UseMutationOptions< + { + platformProvisionSitePreview: InferSelectResult< + PlatformProvisionSitePreviewPayload, + S + > | null; + }, + Error, + PlatformProvisionSitePreviewVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + platformProvisionSitePreview: InferSelectResult | null; + }, + Error, + PlatformProvisionSitePreviewVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.platformProvisionSitePreview(), + mutationFn: (variables: PlatformProvisionSitePreviewVariables) => + getClient() + .mutation.platformProvisionSitePreview(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/api/hooks/mutations/usePlatformSetSitePreviewMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/usePlatformSetSitePreviewMutation.ts new file mode 100644 index 0000000000..476f7bde31 --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/mutations/usePlatformSetSitePreviewMutation.ts @@ -0,0 +1,58 @@ +/** + * Custom mutation hook for platformSetSitePreview + * @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 { PlatformSetSitePreviewVariables } from '../../orm/mutation'; +import type { + PlatformSetSitePreviewPayloadSelect, + PlatformSetSitePreviewPayload, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { PlatformSetSitePreviewVariables } from '../../orm/mutation'; +export type { PlatformSetSitePreviewPayloadSelect } from '../../orm/input-types'; +export function usePlatformSetSitePreviewMutation( + params: { + selection: { + fields: S & PlatformSetSitePreviewPayloadSelect; + } & HookStrictSelect, PlatformSetSitePreviewPayloadSelect>; + } & Omit< + UseMutationOptions< + { + platformSetSitePreview: InferSelectResult | null; + }, + Error, + PlatformSetSitePreviewVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + platformSetSitePreview: InferSelectResult | null; + }, + Error, + PlatformSetSitePreviewVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.platformSetSitePreview(), + mutationFn: (variables: PlatformSetSitePreviewVariables) => + getClient() + .mutation.platformSetSitePreview(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/api/hooks/mutations/usePlatformSiteMetadataInstallRobotsMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/usePlatformSiteMetadataInstallRobotsMutation.ts new file mode 100644 index 0000000000..efd0390333 --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/mutations/usePlatformSiteMetadataInstallRobotsMutation.ts @@ -0,0 +1,66 @@ +/** + * Custom mutation hook for platformSiteMetadataInstallRobots + * @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 { PlatformSiteMetadataInstallRobotsVariables } from '../../orm/mutation'; +import type { + PlatformSiteMetadataInstallRobotsPayloadSelect, + PlatformSiteMetadataInstallRobotsPayload, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { PlatformSiteMetadataInstallRobotsVariables } from '../../orm/mutation'; +export type { PlatformSiteMetadataInstallRobotsPayloadSelect } from '../../orm/input-types'; +export function usePlatformSiteMetadataInstallRobotsMutation< + S extends PlatformSiteMetadataInstallRobotsPayloadSelect, +>( + params: { + selection: { + fields: S & PlatformSiteMetadataInstallRobotsPayloadSelect; + } & HookStrictSelect, PlatformSiteMetadataInstallRobotsPayloadSelect>; + } & Omit< + UseMutationOptions< + { + platformSiteMetadataInstallRobots: InferSelectResult< + PlatformSiteMetadataInstallRobotsPayload, + S + > | null; + }, + Error, + PlatformSiteMetadataInstallRobotsVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + platformSiteMetadataInstallRobots: InferSelectResult< + PlatformSiteMetadataInstallRobotsPayload, + S + > | null; + }, + Error, + PlatformSiteMetadataInstallRobotsVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.platformSiteMetadataInstallRobots(), + mutationFn: (variables: PlatformSiteMetadataInstallRobotsVariables) => + getClient() + .mutation.platformSiteMetadataInstallRobots(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/api/hooks/mutations/usePlatformSitesInstallContentPresetMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/usePlatformSitesInstallContentPresetMutation.ts new file mode 100644 index 0000000000..ea8c8226fb --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/mutations/usePlatformSitesInstallContentPresetMutation.ts @@ -0,0 +1,66 @@ +/** + * Custom mutation hook for platformSitesInstallContentPreset + * @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 { PlatformSitesInstallContentPresetVariables } from '../../orm/mutation'; +import type { + PlatformSitesInstallContentPresetPayloadSelect, + PlatformSitesInstallContentPresetPayload, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { PlatformSitesInstallContentPresetVariables } from '../../orm/mutation'; +export type { PlatformSitesInstallContentPresetPayloadSelect } from '../../orm/input-types'; +export function usePlatformSitesInstallContentPresetMutation< + S extends PlatformSitesInstallContentPresetPayloadSelect, +>( + params: { + selection: { + fields: S & PlatformSitesInstallContentPresetPayloadSelect; + } & HookStrictSelect, PlatformSitesInstallContentPresetPayloadSelect>; + } & Omit< + UseMutationOptions< + { + platformSitesInstallContentPreset: InferSelectResult< + PlatformSitesInstallContentPresetPayload, + S + > | null; + }, + Error, + PlatformSitesInstallContentPresetVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + platformSitesInstallContentPreset: InferSelectResult< + PlatformSitesInstallContentPresetPayload, + S + > | null; + }, + Error, + PlatformSitesInstallContentPresetVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.platformSitesInstallContentPreset(), + mutationFn: (variables: PlatformSitesInstallContentPresetVariables) => + getClient() + .mutation.platformSitesInstallContentPreset(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/api/hooks/mutations/usePlatformSitesInstallMantraMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/usePlatformSitesInstallMantraMutation.ts new file mode 100644 index 0000000000..add6c6b94d --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/mutations/usePlatformSitesInstallMantraMutation.ts @@ -0,0 +1,60 @@ +/** + * Custom mutation hook for platformSitesInstallMantra + * @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 { PlatformSitesInstallMantraVariables } from '../../orm/mutation'; +import type { + PlatformSitesInstallMantraPayloadSelect, + PlatformSitesInstallMantraPayload, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { PlatformSitesInstallMantraVariables } from '../../orm/mutation'; +export type { PlatformSitesInstallMantraPayloadSelect } from '../../orm/input-types'; +export function usePlatformSitesInstallMantraMutation< + S extends PlatformSitesInstallMantraPayloadSelect, +>( + params: { + selection: { + fields: S & PlatformSitesInstallMantraPayloadSelect; + } & HookStrictSelect, PlatformSitesInstallMantraPayloadSelect>; + } & Omit< + UseMutationOptions< + { + platformSitesInstallMantra: InferSelectResult | null; + }, + Error, + PlatformSitesInstallMantraVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + platformSitesInstallMantra: InferSelectResult | null; + }, + Error, + PlatformSitesInstallMantraVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.platformSitesInstallMantra(), + mutationFn: (variables: PlatformSitesInstallMantraVariables) => + getClient() + .mutation.platformSitesInstallMantra(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/api/hooks/mutations/useProvisionSitePreviewMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useProvisionSitePreviewMutation.ts new file mode 100644 index 0000000000..02a0ea5bb9 --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/mutations/useProvisionSitePreviewMutation.ts @@ -0,0 +1,58 @@ +/** + * Custom mutation hook for provisionSitePreview + * @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 { ProvisionSitePreviewVariables } from '../../orm/mutation'; +import type { + ProvisionSitePreviewPayloadSelect, + ProvisionSitePreviewPayload, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { ProvisionSitePreviewVariables } from '../../orm/mutation'; +export type { ProvisionSitePreviewPayloadSelect } from '../../orm/input-types'; +export function useProvisionSitePreviewMutation( + params: { + selection: { + fields: S & ProvisionSitePreviewPayloadSelect; + } & HookStrictSelect, ProvisionSitePreviewPayloadSelect>; + } & Omit< + UseMutationOptions< + { + provisionSitePreview: InferSelectResult | null; + }, + Error, + ProvisionSitePreviewVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + provisionSitePreview: InferSelectResult | null; + }, + Error, + ProvisionSitePreviewVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.provisionSitePreview(), + mutationFn: (variables: ProvisionSitePreviewVariables) => + getClient() + .mutation.provisionSitePreview(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/api/hooks/mutations/useRejectDatabaseTransferMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useRejectDatabaseTransferMutation.ts new file mode 100644 index 0000000000..10cdc7f840 --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/mutations/useRejectDatabaseTransferMutation.ts @@ -0,0 +1,58 @@ +/** + * Custom mutation hook for rejectDatabaseTransfer + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { customMutationKeys } from '../mutation-keys'; +import type { RejectDatabaseTransferVariables } from '../../orm/mutation'; +import type { + RejectDatabaseTransferPayloadSelect, + RejectDatabaseTransferPayload, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { RejectDatabaseTransferVariables } from '../../orm/mutation'; +export type { RejectDatabaseTransferPayloadSelect } from '../../orm/input-types'; +export function useRejectDatabaseTransferMutation( + params: { + selection: { + fields: S & RejectDatabaseTransferPayloadSelect; + } & HookStrictSelect, RejectDatabaseTransferPayloadSelect>; + } & Omit< + UseMutationOptions< + { + rejectDatabaseTransfer: InferSelectResult | null; + }, + Error, + RejectDatabaseTransferVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + rejectDatabaseTransfer: InferSelectResult | null; + }, + Error, + RejectDatabaseTransferVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.rejectDatabaseTransfer(), + mutationFn: (variables: RejectDatabaseTransferVariables) => + getClient() + .mutation.rejectDatabaseTransfer(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/api/hooks/mutations/useSetSitePreviewMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useSetSitePreviewMutation.ts new file mode 100644 index 0000000000..d527ca31b3 --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/mutations/useSetSitePreviewMutation.ts @@ -0,0 +1,55 @@ +/** + * Custom mutation hook for setSitePreview + * @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 { SetSitePreviewVariables } from '../../orm/mutation'; +import type { SetSitePreviewPayloadSelect, SetSitePreviewPayload } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { SetSitePreviewVariables } from '../../orm/mutation'; +export type { SetSitePreviewPayloadSelect } from '../../orm/input-types'; +export function useSetSitePreviewMutation( + params: { + selection: { + fields: S & SetSitePreviewPayloadSelect; + } & HookStrictSelect, SetSitePreviewPayloadSelect>; + } & Omit< + UseMutationOptions< + { + setSitePreview: InferSelectResult | null; + }, + Error, + SetSitePreviewVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + setSitePreview: InferSelectResult | null; + }, + Error, + SetSitePreviewVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.setSitePreview(), + mutationFn: (variables: SetSitePreviewVariables) => + getClient() + .mutation.setSitePreview(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/api/hooks/mutations/useSiteMetadataInstallRobotsMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useSiteMetadataInstallRobotsMutation.ts new file mode 100644 index 0000000000..12710fd02c --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/mutations/useSiteMetadataInstallRobotsMutation.ts @@ -0,0 +1,60 @@ +/** + * Custom mutation hook for siteMetadataInstallRobots + * @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 { SiteMetadataInstallRobotsVariables } from '../../orm/mutation'; +import type { + SiteMetadataInstallRobotsPayloadSelect, + SiteMetadataInstallRobotsPayload, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { SiteMetadataInstallRobotsVariables } from '../../orm/mutation'; +export type { SiteMetadataInstallRobotsPayloadSelect } from '../../orm/input-types'; +export function useSiteMetadataInstallRobotsMutation< + S extends SiteMetadataInstallRobotsPayloadSelect, +>( + params: { + selection: { + fields: S & SiteMetadataInstallRobotsPayloadSelect; + } & HookStrictSelect, SiteMetadataInstallRobotsPayloadSelect>; + } & Omit< + UseMutationOptions< + { + siteMetadataInstallRobots: InferSelectResult | null; + }, + Error, + SiteMetadataInstallRobotsVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + siteMetadataInstallRobots: InferSelectResult | null; + }, + Error, + SiteMetadataInstallRobotsVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.siteMetadataInstallRobots(), + mutationFn: (variables: SiteMetadataInstallRobotsVariables) => + getClient() + .mutation.siteMetadataInstallRobots(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/api/hooks/mutations/useSitesInstallContentPresetMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useSitesInstallContentPresetMutation.ts new file mode 100644 index 0000000000..1a8644e765 --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/mutations/useSitesInstallContentPresetMutation.ts @@ -0,0 +1,60 @@ +/** + * Custom mutation hook for sitesInstallContentPreset + * @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 { SitesInstallContentPresetVariables } from '../../orm/mutation'; +import type { + SitesInstallContentPresetPayloadSelect, + SitesInstallContentPresetPayload, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { SitesInstallContentPresetVariables } from '../../orm/mutation'; +export type { SitesInstallContentPresetPayloadSelect } from '../../orm/input-types'; +export function useSitesInstallContentPresetMutation< + S extends SitesInstallContentPresetPayloadSelect, +>( + params: { + selection: { + fields: S & SitesInstallContentPresetPayloadSelect; + } & HookStrictSelect, SitesInstallContentPresetPayloadSelect>; + } & Omit< + UseMutationOptions< + { + sitesInstallContentPreset: InferSelectResult | null; + }, + Error, + SitesInstallContentPresetVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + sitesInstallContentPreset: InferSelectResult | null; + }, + Error, + SitesInstallContentPresetVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.sitesInstallContentPreset(), + mutationFn: (variables: SitesInstallContentPresetVariables) => + getClient() + .mutation.sitesInstallContentPreset(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/api/hooks/mutations/useSitesInstallMantraMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useSitesInstallMantraMutation.ts new file mode 100644 index 0000000000..cdcd0e090e --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/mutations/useSitesInstallMantraMutation.ts @@ -0,0 +1,58 @@ +/** + * Custom mutation hook for sitesInstallMantra + * @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 { SitesInstallMantraVariables } from '../../orm/mutation'; +import type { + SitesInstallMantraPayloadSelect, + SitesInstallMantraPayload, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { SitesInstallMantraVariables } from '../../orm/mutation'; +export type { SitesInstallMantraPayloadSelect } from '../../orm/input-types'; +export function useSitesInstallMantraMutation( + params: { + selection: { + fields: S & SitesInstallMantraPayloadSelect; + } & HookStrictSelect, SitesInstallMantraPayloadSelect>; + } & Omit< + UseMutationOptions< + { + sitesInstallMantra: InferSelectResult | null; + }, + Error, + SitesInstallMantraVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + sitesInstallMantra: InferSelectResult | null; + }, + Error, + SitesInstallMantraVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.sitesInstallMantra(), + mutationFn: (variables: SitesInstallMantraVariables) => + getClient() + .mutation.sitesInstallMantra(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/api/hooks/mutations/useUpdateAppComponentMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useUpdateAppComponentMutation.ts deleted file mode 100644 index d9a8c79bff..0000000000 --- a/sdk/constructive-react/src/api/hooks/mutations/useUpdateAppComponentMutation.ts +++ /dev/null @@ -1,110 +0,0 @@ -/** - * App component rows binding an app to typed catalog rows (exactly one typed component reference per row) - * @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 { appComponentKeys } from '../query-keys'; -import { appComponentMutationKeys } from '../mutation-keys'; -import type { - AppComponentSelect, - AppComponentWithRelations, - AppComponentPatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppComponentSelect, - AppComponentWithRelations, - AppComponentPatch, -} from '../../orm/input-types'; -/** - * App component rows binding an app to typed catalog rows (exactly one typed component reference per row) - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateAppComponentMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', appComponentPatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateAppComponentMutation( - params: { - selection: { - fields: S & AppComponentSelect; - } & HookStrictSelect, AppComponentSelect>; - } & Omit< - UseMutationOptions< - { - updateAppComponent: { - appComponent: InferSelectResult; - }; - }, - Error, - { - id: string; - appComponentPatch: AppComponentPatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateAppComponent: { - appComponent: InferSelectResult; - }; - }, - Error, - { - id: string; - appComponentPatch: AppComponentPatch; - } ->; -export function useUpdateAppComponentMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - appComponentPatch: AppComponentPatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: appComponentMutationKeys.all, - mutationFn: ({ id, appComponentPatch }: { id: string; appComponentPatch: AppComponentPatch }) => - getClient() - .appComponent.update({ - where: { - id, - }, - data: appComponentPatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: appComponentKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: appComponentKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/api/hooks/mutations/useUpdateAppMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useUpdateAppMutation.ts deleted file mode 100644 index 6816b72c5a..0000000000 --- a/sdk/constructive-react/src/api/hooks/mutations/useUpdateAppMutation.ts +++ /dev/null @@ -1,102 +0,0 @@ -/** - * App aggregates: thin identity rows whose components are global catalog references - * @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 { appKeys } from '../query-keys'; -import { appMutationKeys } from '../mutation-keys'; -import type { AppSelect, AppWithRelations, AppPatch } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { AppSelect, AppWithRelations, AppPatch } from '../../orm/input-types'; -/** - * App aggregates: thin identity rows whose components are global catalog references - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateAppMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', appPatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateAppMutation( - params: { - selection: { - fields: S & AppSelect; - } & HookStrictSelect, AppSelect>; - } & Omit< - UseMutationOptions< - { - updateApp: { - app: InferSelectResult; - }; - }, - Error, - { - id: string; - appPatch: AppPatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateApp: { - app: InferSelectResult; - }; - }, - Error, - { - id: string; - appPatch: AppPatch; - } ->; -export function useUpdateAppMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - appPatch: AppPatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: appMutationKeys.all, - mutationFn: ({ id, appPatch }: { id: string; appPatch: AppPatch }) => - getClient() - .app.update({ - where: { - id, - }, - data: appPatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: appKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: appKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/api/hooks/mutations/useUpdateHttpRouteMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useUpdateHttpRouteMutation.ts deleted file mode 100644 index be8e6ac971..0000000000 --- a/sdk/constructive-react/src/api/hooks/mutations/useUpdateHttpRouteMutation.ts +++ /dev/null @@ -1,110 +0,0 @@ -/** - * Request-time HTTP routing authority: registered domain plus path prefix and optional method to a typed target - * @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 { httpRouteKeys } from '../query-keys'; -import { httpRouteMutationKeys } from '../mutation-keys'; -import type { - HttpRouteSelect, - HttpRouteWithRelations, - HttpRoutePatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - HttpRouteSelect, - HttpRouteWithRelations, - HttpRoutePatch, -} from '../../orm/input-types'; -/** - * Request-time HTTP routing authority: registered domain plus path prefix and optional method to a typed target - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateHttpRouteMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', httpRoutePatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateHttpRouteMutation( - params: { - selection: { - fields: S & HttpRouteSelect; - } & HookStrictSelect, HttpRouteSelect>; - } & Omit< - UseMutationOptions< - { - updateHttpRoute: { - httpRoute: InferSelectResult; - }; - }, - Error, - { - id: string; - httpRoutePatch: HttpRoutePatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateHttpRoute: { - httpRoute: InferSelectResult; - }; - }, - Error, - { - id: string; - httpRoutePatch: HttpRoutePatch; - } ->; -export function useUpdateHttpRouteMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - httpRoutePatch: HttpRoutePatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: httpRouteMutationKeys.all, - mutationFn: ({ id, httpRoutePatch }: { id: string; httpRoutePatch: HttpRoutePatch }) => - getClient() - .httpRoute.update({ - where: { - id, - }, - data: httpRoutePatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: httpRouteKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: httpRouteKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/api/hooks/mutations/useUpdateIdentityProviderRegistryMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useUpdateIdentityProviderRegistryMutation.ts new file mode 100644 index 0000000000..9e65ee3b35 --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/mutations/useUpdateIdentityProviderRegistryMutation.ts @@ -0,0 +1,116 @@ +/** + * Update mutation hook for IdentityProviderRegistry + * @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 { identityProviderRegistryKeys } from '../query-keys'; +import { identityProviderRegistryMutationKeys } from '../mutation-keys'; +import type { + IdentityProviderRegistrySelect, + IdentityProviderRegistryWithRelations, + IdentityProviderRegistryPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + IdentityProviderRegistrySelect, + IdentityProviderRegistryWithRelations, + IdentityProviderRegistryPatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a IdentityProviderRegistry + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateIdentityProviderRegistryMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ slug: 'value-here', identityProviderRegistryPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateIdentityProviderRegistryMutation( + params: { + selection: { + fields: S & IdentityProviderRegistrySelect; + } & HookStrictSelect, IdentityProviderRegistrySelect>; + } & Omit< + UseMutationOptions< + { + updateIdentityProviderRegistry: { + identityProviderRegistry: InferSelectResult; + }; + }, + Error, + { + slug: string; + identityProviderRegistryPatch: IdentityProviderRegistryPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateIdentityProviderRegistry: { + identityProviderRegistry: InferSelectResult; + }; + }, + Error, + { + slug: string; + identityProviderRegistryPatch: IdentityProviderRegistryPatch; + } +>; +export function useUpdateIdentityProviderRegistryMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + slug: string; + identityProviderRegistryPatch: IdentityProviderRegistryPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: identityProviderRegistryMutationKeys.all, + mutationFn: ({ + slug, + identityProviderRegistryPatch, + }: { + slug: string; + identityProviderRegistryPatch: IdentityProviderRegistryPatch; + }) => + getClient() + .identityProviderRegistry.update({ + where: { + slug, + }, + data: identityProviderRegistryPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: identityProviderRegistryKeys.detail(variables.slug), + }); + queryClient.invalidateQueries({ + queryKey: identityProviderRegistryKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/api/hooks/mutations/useUpdatePlatformSiteAppLinkMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useUpdatePlatformSiteAppLinkMutation.ts index 952c1dcf2a..956315b1a7 100644 --- a/sdk/constructive-react/src/api/hooks/mutations/useUpdatePlatformSiteAppLinkMutation.ts +++ b/sdk/constructive-react/src/api/hooks/mutations/useUpdatePlatformSiteAppLinkMutation.ts @@ -1,5 +1,5 @@ /** - * Native-app deep-link association metadata for a site surface (feeds AASA / assetlinks.json generation) + * Per-host native-app association for a site surface: which app-owned store identity this host serves, and the path patterns it claims (joined with the store identity to render AASA / assetlinks.json) * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { PlatformSiteAppLinkPatch, } from '../../orm/input-types'; /** - * Native-app deep-link association metadata for a site surface (feeds AASA / assetlinks.json generation) + * Per-host native-app association for a site surface: which app-owned store identity this host serves, and the path patterns it claims (joined with the store identity to render AASA / assetlinks.json) * * @example * ```tsx diff --git a/sdk/constructive-react/src/api/hooks/mutations/useUpdatePlatformSiteReleaseMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useUpdatePlatformSiteReleaseMutation.ts new file mode 100644 index 0000000000..b737247975 --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/mutations/useUpdatePlatformSiteReleaseMutation.ts @@ -0,0 +1,116 @@ +/** + * Immutable static-site release manifest head, versioned in the site-owned merkle 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 { platformSiteReleaseKeys } from '../query-keys'; +import { platformSiteReleaseMutationKeys } from '../mutation-keys'; +import type { + PlatformSiteReleaseSelect, + PlatformSiteReleaseWithRelations, + PlatformSiteReleasePatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformSiteReleaseSelect, + PlatformSiteReleaseWithRelations, + PlatformSiteReleasePatch, +} from '../../orm/input-types'; +/** + * Immutable static-site release manifest head, versioned in the site-owned merkle store + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdatePlatformSiteReleaseMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', platformSiteReleasePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdatePlatformSiteReleaseMutation( + params: { + selection: { + fields: S & PlatformSiteReleaseSelect; + } & HookStrictSelect, PlatformSiteReleaseSelect>; + } & Omit< + UseMutationOptions< + { + updatePlatformSiteRelease: { + platformSiteRelease: InferSelectResult; + }; + }, + Error, + { + id: string; + platformSiteReleasePatch: PlatformSiteReleasePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updatePlatformSiteRelease: { + platformSiteRelease: InferSelectResult; + }; + }, + Error, + { + id: string; + platformSiteReleasePatch: PlatformSiteReleasePatch; + } +>; +export function useUpdatePlatformSiteReleaseMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + platformSiteReleasePatch: PlatformSiteReleasePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformSiteReleaseMutationKeys.all, + mutationFn: ({ + id, + platformSiteReleasePatch, + }: { + id: string; + platformSiteReleasePatch: PlatformSiteReleasePatch; + }) => + getClient() + .platformSiteRelease.update({ + where: { + id, + }, + data: platformSiteReleasePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: platformSiteReleaseKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformSiteReleaseKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/api/hooks/mutations/useUpdateRedirectMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useUpdateRedirectMutation.ts new file mode 100644 index 0000000000..90c755eafb --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/mutations/useUpdateRedirectMutation.ts @@ -0,0 +1,102 @@ +/** + * Redirect targets a route can point at; the edge answers with a redirect status instead of a backend + * @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 { redirectKeys } from '../query-keys'; +import { redirectMutationKeys } from '../mutation-keys'; +import type { RedirectSelect, RedirectWithRelations, RedirectPatch } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { RedirectSelect, RedirectWithRelations, RedirectPatch } from '../../orm/input-types'; +/** + * Redirect targets a route can point at; the edge answers with a redirect status instead of a backend + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateRedirectMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', redirectPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateRedirectMutation( + params: { + selection: { + fields: S & RedirectSelect; + } & HookStrictSelect, RedirectSelect>; + } & Omit< + UseMutationOptions< + { + updateRedirect: { + redirect: InferSelectResult; + }; + }, + Error, + { + id: string; + redirectPatch: RedirectPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateRedirect: { + redirect: InferSelectResult; + }; + }, + Error, + { + id: string; + redirectPatch: RedirectPatch; + } +>; +export function useUpdateRedirectMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + redirectPatch: RedirectPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: redirectMutationKeys.all, + mutationFn: ({ id, redirectPatch }: { id: string; redirectPatch: RedirectPatch }) => + getClient() + .redirect.update({ + where: { + id, + }, + data: redirectPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: redirectKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: redirectKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/api/hooks/mutations/useUpdateSiteAppLinkMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useUpdateSiteAppLinkMutation.ts index 7773271dc7..1e4703fd2b 100644 --- a/sdk/constructive-react/src/api/hooks/mutations/useUpdateSiteAppLinkMutation.ts +++ b/sdk/constructive-react/src/api/hooks/mutations/useUpdateSiteAppLinkMutation.ts @@ -1,5 +1,5 @@ /** - * Native-app deep-link association metadata for a site surface (feeds AASA / assetlinks.json generation) + * Per-host native-app association for a site surface: which app-owned store identity this host serves, and the path patterns it claims (joined with the store identity to render AASA / assetlinks.json) * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { SiteAppLinkPatch, } from '../../orm/input-types'; /** - * Native-app deep-link association metadata for a site surface (feeds AASA / assetlinks.json generation) + * Per-host native-app association for a site surface: which app-owned store identity this host serves, and the path patterns it claims (joined with the store identity to render AASA / assetlinks.json) * * @example * ```tsx diff --git a/sdk/constructive-react/src/api/hooks/mutations/useUpdateSiteReleaseMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useUpdateSiteReleaseMutation.ts new file mode 100644 index 0000000000..cb9665d408 --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/mutations/useUpdateSiteReleaseMutation.ts @@ -0,0 +1,110 @@ +/** + * Immutable static-site release manifest head, versioned in the site-owned merkle 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 { siteReleaseKeys } from '../query-keys'; +import { siteReleaseMutationKeys } from '../mutation-keys'; +import type { + SiteReleaseSelect, + SiteReleaseWithRelations, + SiteReleasePatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + SiteReleaseSelect, + SiteReleaseWithRelations, + SiteReleasePatch, +} from '../../orm/input-types'; +/** + * Immutable static-site release manifest head, versioned in the site-owned merkle store + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateSiteReleaseMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', siteReleasePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateSiteReleaseMutation( + params: { + selection: { + fields: S & SiteReleaseSelect; + } & HookStrictSelect, SiteReleaseSelect>; + } & Omit< + UseMutationOptions< + { + updateSiteRelease: { + siteRelease: InferSelectResult; + }; + }, + Error, + { + id: string; + siteReleasePatch: SiteReleasePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateSiteRelease: { + siteRelease: InferSelectResult; + }; + }, + Error, + { + id: string; + siteReleasePatch: SiteReleasePatch; + } +>; +export function useUpdateSiteReleaseMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + siteReleasePatch: SiteReleasePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: siteReleaseMutationKeys.all, + mutationFn: ({ id, siteReleasePatch }: { id: string; siteReleasePatch: SiteReleasePatch }) => + getClient() + .siteRelease.update({ + where: { + id, + }, + data: siteReleasePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: siteReleaseKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: siteReleaseKeys.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 50c728a5f9..d104b8fdd2 100644 --- a/sdk/constructive-react/src/api/hooks/queries/index.ts +++ b/sdk/constructive-react/src/api/hooks/queries/index.ts @@ -9,10 +9,8 @@ export * from './useApiSchemasQuery'; export * from './useApiSchemaQuery'; export * from './useApiSettingsQuery'; export * from './useApiSettingQuery'; -export * from './useAppComponentsQuery'; -export * from './useAppComponentQuery'; -export * from './useAppsQuery'; -export * from './useAppQuery'; +export * from './useAstMigrationsQuery'; +export * from './useAstMigrationQuery'; export * from './useCheckConstraintsQuery'; export * from './useCheckConstraintQuery'; export * from './useCompositeTypesQuery'; @@ -61,10 +59,11 @@ export * from './useFullTextSearchesQuery'; export * from './useFullTextSearchQuery'; export * from './useFunctionsQuery'; export * from './useFunctionQuery'; +export * from './useGetSitePreviewsQuery'; export * from './useHostnameBindingsQuery'; export * from './useHostnameBindingQuery'; -export * from './useHttpRoutesQuery'; -export * from './useHttpRouteQuery'; +export * from './useIdentityProviderRegistriesQuery'; +export * from './useIdentityProviderRegistryQuery'; export * from './useIndicesQuery'; export * from './useIndexQuery'; export * from './useManagedDomainsQuery'; @@ -95,6 +94,7 @@ export * from './usePlatformEmailProviderAccountsQuery'; export * from './usePlatformEmailProviderAccountQuery'; export * from './usePlatformEmailSiteIdentitiesQuery'; export * from './usePlatformEmailSiteIdentityQuery'; +export * from './usePlatformGetSitePreviewsQuery'; export * from './usePlatformManagedDomainsQuery'; export * from './usePlatformManagedDomainQuery'; export * from './usePlatformPagesQuery'; @@ -111,6 +111,8 @@ export * from './usePlatformSiteMetadataQuery'; export * from './usePlatformSiteMetadatumQuery'; export * from './usePlatformSiteModulesQuery'; export * from './usePlatformSiteModuleQuery'; +export * from './usePlatformSiteReleasesQuery'; +export * from './usePlatformSiteReleaseQuery'; export * from './usePlatformSiteThemesQuery'; export * from './usePlatformSiteThemeQuery'; export * from './usePlatformSiteWebConfigsQuery'; @@ -121,6 +123,8 @@ export * from './usePrimaryKeyConstraintsQuery'; export * from './usePrimaryKeyConstraintQuery'; export * from './usePubkeySettingsQuery'; export * from './usePubkeySettingQuery'; +export * from './useRedirectsQuery'; +export * from './useRedirectQuery'; export * from './useRlsSettingsQuery'; export * from './useRlsSettingQuery'; export * from './useRouteBindingsQuery'; @@ -143,12 +147,16 @@ export * from './useSiteMetadataQuery'; export * from './useSiteMetadatumQuery'; export * from './useSiteModulesQuery'; export * from './useSiteModuleQuery'; +export * from './useSiteReleasesQuery'; +export * from './useSiteReleaseQuery'; export * from './useSiteThemesQuery'; export * from './useSiteThemeQuery'; export * from './useSiteWebConfigsQuery'; export * from './useSiteWebConfigQuery'; export * from './useSpatialRelationsQuery'; export * from './useSpatialRelationQuery'; +export * from './useSqlActionsQuery'; +export * from './useSqlActionQuery'; export * from './useTableBehaviorsQuery'; export * from './useTableBehaviorQuery'; export * from './useTablesQuery'; @@ -177,7 +185,18 @@ export * from './useWebauthnSettingsQuery'; export * from './useWebauthnSettingQuery'; export * from './useApiSchemaNamesQuery'; export * from './useApplyRegistryDefaultsQuery'; +export * from './useGetSitePreviewCommitQuery'; +export * from './useGetSiteReleaseManifestQuery'; +export * from './usePagePublishedQuery'; +export * from './usePlatformGetSitePreviewCommitQuery'; +export * from './usePlatformGetSiteReleaseManifestQuery'; +export * from './usePlatformPagePublishedQuery'; +export * from './usePlatformSitesDeepLinkUrlQuery'; +export * from './usePlatformSitesSiteOriginQuery'; +export * from './usePlatformVerifySitePreviewTokenQuery'; export * from './useResolveDeepLinkQuery'; -export * from './useResolveHttpRouteQuery'; export * from './useResolveRouteQuery'; export * from './useResolveSiteAppLinksQuery'; +export * from './useSitesDeepLinkUrlQuery'; +export * from './useSitesSiteOriginQuery'; +export * from './useVerifySitePreviewTokenQuery'; diff --git a/sdk/constructive-react/src/api/hooks/queries/useAppComponentQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useAppComponentQuery.ts deleted file mode 100644 index f45aff9af9..0000000000 --- a/sdk/constructive-react/src/api/hooks/queries/useAppComponentQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * App component rows binding an app to typed catalog rows (exactly one typed component reference per row) - * @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 { appComponentKeys } from '../query-keys'; -import type { AppComponentSelect, AppComponentWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { AppComponentSelect, AppComponentWithRelations } from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const appComponentQueryKey = appComponentKeys.detail; -/** - * App component rows binding an app to typed catalog rows (exactly one typed component reference per row) - * - * @example - * ```tsx - * const { data, isLoading } = useAppComponentQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useAppComponentQuery< - S extends AppComponentSelect, - TData = { - appComponent: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppComponentSelect>; - } & Omit< - UseQueryOptions< - { - appComponent: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAppComponentQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: appComponentKeys.detail(params.id), - queryFn: () => - getClient() - .appComponent.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * App component rows binding an app to typed catalog rows (exactly one typed component reference per row) - * - * @example - * ```ts - * const data = await fetchAppComponentQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchAppComponentQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppComponentSelect>; -}): Promise<{ - appComponent: InferSelectResult | null; -}>; -export async function fetchAppComponentQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .appComponent.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * App component rows binding an app to typed catalog rows (exactly one typed component reference per row) - * - * @example - * ```ts - * await prefetchAppComponentQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchAppComponentQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppComponentSelect>; - } -): Promise; -export async function prefetchAppComponentQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: appComponentKeys.detail(params.id), - queryFn: () => - getClient() - .appComponent.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/api/hooks/queries/useAppComponentsQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useAppComponentsQuery.ts deleted file mode 100644 index b6dfbdb698..0000000000 --- a/sdk/constructive-react/src/api/hooks/queries/useAppComponentsQuery.ts +++ /dev/null @@ -1,145 +0,0 @@ -/** - * App component rows binding an app to typed catalog rows (exactly one typed component reference per row) - * @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 { appComponentKeys } from '../query-keys'; -import type { - AppComponentSelect, - AppComponentWithRelations, - AppComponentFilter, - AppComponentOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - AppComponentSelect, - AppComponentWithRelations, - AppComponentFilter, - AppComponentOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const appComponentsQueryKey = appComponentKeys.list; -/** - * App component rows binding an app to typed catalog rows (exactly one typed component reference per row) - * - * @example - * ```tsx - * const { data, isLoading } = useAppComponentsQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useAppComponentsQuery< - S extends AppComponentSelect, - TData = { - appComponents: ConnectionResult>; - }, ->( - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, AppComponentSelect>; - } & Omit< - UseQueryOptions< - { - appComponents: ConnectionResult>; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAppComponentsQuery( - params: { - selection: ListSelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs( - params.selection - ); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: appComponentKeys.list(args), - queryFn: () => getClient().appComponent.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * App component rows binding an app to typed catalog rows (exactly one typed component reference per row) - * - * @example - * ```ts - * const data = await fetchAppComponentsQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchAppComponentsQuery(params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, AppComponentSelect>; -}): Promise<{ - appComponents: ConnectionResult>; -}>; -export async function fetchAppComponentsQuery(params: { - selection: ListSelectionConfig; -}) { - const args = buildListSelectionArgs( - params.selection - ); - return getClient().appComponent.findMany(args).unwrap(); -} -/** - * App component rows binding an app to typed catalog rows (exactly one typed component reference per row) - * - * @example - * ```ts - * await prefetchAppComponentsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchAppComponentsQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, AppComponentSelect>; - } -): Promise; -export async function prefetchAppComponentsQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig; - } -): Promise { - const args = buildListSelectionArgs( - params.selection - ); - await queryClient.prefetchQuery({ - queryKey: appComponentKeys.list(args), - queryFn: () => getClient().appComponent.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/api/hooks/queries/useAppQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useAppQuery.ts deleted file mode 100644 index e8d6c671be..0000000000 --- a/sdk/constructive-react/src/api/hooks/queries/useAppQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * App aggregates: thin identity rows whose components are global catalog references - * @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 { appKeys } from '../query-keys'; -import type { AppSelect, AppWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { AppSelect, AppWithRelations } from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const appQueryKey = appKeys.detail; -/** - * App aggregates: thin identity rows whose components are global catalog references - * - * @example - * ```tsx - * const { data, isLoading } = useAppQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useAppQuery< - S extends AppSelect, - TData = { - app: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppSelect>; - } & Omit< - UseQueryOptions< - { - app: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAppQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: appKeys.detail(params.id), - queryFn: () => - getClient() - .app.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * App aggregates: thin identity rows whose components are global catalog references - * - * @example - * ```ts - * const data = await fetchAppQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchAppQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppSelect>; -}): Promise<{ - app: InferSelectResult | null; -}>; -export async function fetchAppQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .app.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * App aggregates: thin identity rows whose components are global catalog references - * - * @example - * ```ts - * await prefetchAppQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchAppQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppSelect>; - } -): Promise; -export async function prefetchAppQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: appKeys.detail(params.id), - queryFn: () => - getClient() - .app.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/api/hooks/queries/useAppsQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useAppsQuery.ts deleted file mode 100644 index cf1c5d4c45..0000000000 --- a/sdk/constructive-react/src/api/hooks/queries/useAppsQuery.ts +++ /dev/null @@ -1,129 +0,0 @@ -/** - * App aggregates: thin identity rows whose components are global catalog references - * @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 { appKeys } from '../query-keys'; -import type { AppSelect, AppWithRelations, AppFilter, AppOrderBy } from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { AppSelect, AppWithRelations, AppFilter, AppOrderBy } from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const appsQueryKey = appKeys.list; -/** - * App aggregates: thin identity rows whose components are global catalog references - * - * @example - * ```tsx - * const { data, isLoading } = useAppsQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useAppsQuery< - S extends AppSelect, - TData = { - apps: ConnectionResult>; - }, ->( - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, AppSelect>; - } & Omit< - UseQueryOptions< - { - apps: ConnectionResult>; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAppsQuery( - params: { - selection: ListSelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: appKeys.list(args), - queryFn: () => getClient().app.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * App aggregates: thin identity rows whose components are global catalog references - * - * @example - * ```ts - * const data = await fetchAppsQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchAppsQuery(params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, AppSelect>; -}): Promise<{ - apps: ConnectionResult>; -}>; -export async function fetchAppsQuery(params: { - selection: ListSelectionConfig; -}) { - const args = buildListSelectionArgs(params.selection); - return getClient().app.findMany(args).unwrap(); -} -/** - * App aggregates: thin identity rows whose components are global catalog references - * - * @example - * ```ts - * await prefetchAppsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchAppsQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, AppSelect>; - } -): Promise; -export async function prefetchAppsQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig; - } -): Promise { - const args = buildListSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: appKeys.list(args), - queryFn: () => getClient().app.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/api/hooks/queries/useAstMigrationQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useAstMigrationQuery.ts new file mode 100644 index 0000000000..ef2c2a95e3 --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/queries/useAstMigrationQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for AstMigration + * @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 { astMigrationKeys } from '../query-keys'; +import type { AstMigrationSelect, AstMigrationWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { AstMigrationSelect, AstMigrationWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const astMigrationQueryKey = astMigrationKeys.detail; +/** + * Query hook for fetching a single AstMigration + * + * @example + * ```tsx + * const { data, isLoading } = useAstMigrationQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useAstMigrationQuery< + S extends AstMigrationSelect, + TData = { + astMigration: InferSelectResult | null; + }, +>( + params: { + id: number; + selection: { + fields: S; + } & HookStrictSelect, AstMigrationSelect>; + } & Omit< + UseQueryOptions< + { + astMigration: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAstMigrationQuery( + params: { + id: number; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: astMigrationKeys.detail(params.id), + queryFn: () => + getClient() + .astMigration.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single AstMigration without React hooks + * + * @example + * ```ts + * const data = await fetchAstMigrationQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchAstMigrationQuery(params: { + id: number; + selection: { + fields: S; + } & HookStrictSelect, AstMigrationSelect>; +}): Promise<{ + astMigration: InferSelectResult | null; +}>; +export async function fetchAstMigrationQuery(params: { + id: number; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .astMigration.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single AstMigration for SSR or cache warming + * + * @example + * ```ts + * await prefetchAstMigrationQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchAstMigrationQuery( + queryClient: QueryClient, + params: { + id: number; + selection: { + fields: S; + } & HookStrictSelect, AstMigrationSelect>; + } +): Promise; +export async function prefetchAstMigrationQuery( + queryClient: QueryClient, + params: { + id: number; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: astMigrationKeys.detail(params.id), + queryFn: () => + getClient() + .astMigration.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/api/hooks/queries/useAstMigrationsQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useAstMigrationsQuery.ts new file mode 100644 index 0000000000..d2f3812967 --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/queries/useAstMigrationsQuery.ts @@ -0,0 +1,145 @@ +/** + * List query hook for AstMigration + * @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 { astMigrationKeys } from '../query-keys'; +import type { + AstMigrationSelect, + AstMigrationWithRelations, + AstMigrationFilter, + AstMigrationOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + AstMigrationSelect, + AstMigrationWithRelations, + AstMigrationFilter, + AstMigrationOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const astMigrationsQueryKey = astMigrationKeys.list; +/** + * Query hook for fetching AstMigration list + * + * @example + * ```tsx + * const { data, isLoading } = useAstMigrationsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useAstMigrationsQuery< + S extends AstMigrationSelect, + TData = { + astMigrations: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AstMigrationSelect>; + } & Omit< + UseQueryOptions< + { + astMigrations: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAstMigrationsQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs( + params.selection + ); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: astMigrationKeys.list(args), + queryFn: () => getClient().astMigration.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch AstMigration list without React hooks + * + * @example + * ```ts + * const data = await fetchAstMigrationsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchAstMigrationsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AstMigrationSelect>; +}): Promise<{ + astMigrations: ConnectionResult>; +}>; +export async function fetchAstMigrationsQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs( + params.selection + ); + return getClient().astMigration.findMany(args).unwrap(); +} +/** + * Prefetch AstMigration list for SSR or cache warming + * + * @example + * ```ts + * await prefetchAstMigrationsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchAstMigrationsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AstMigrationSelect>; + } +): Promise; +export async function prefetchAstMigrationsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs( + params.selection + ); + await queryClient.prefetchQuery({ + queryKey: astMigrationKeys.list(args), + queryFn: () => getClient().astMigration.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/api/hooks/queries/useGetSitePreviewCommitQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useGetSitePreviewCommitQuery.ts new file mode 100644 index 0000000000..2ab96cc5cf --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/queries/useGetSitePreviewCommitQuery.ts @@ -0,0 +1,107 @@ +/** + * Custom query hook for getSitePreviewCommit + * @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 { GetSitePreviewCommitVariables } from '../../orm/query'; +export type { GetSitePreviewCommitVariables } from '../../orm/query'; +/** Query key factory - re-exported from query-keys.ts */ +export const getSitePreviewCommitQueryKey = customQueryKeys.getSitePreviewCommit; +/** + * Query hook for getSitePreviewCommit + * + * @example + * ```tsx + * const { data, isLoading } = useGetSitePreviewCommitQuery({ variables: { targetName, targetSiteId } }); + * + * if (data?.getSitePreviewCommit) { + * console.log(data.getSitePreviewCommit); + * } + * ``` + */ +export function useGetSitePreviewCommitQuery< + TData = { + getSitePreviewCommit: string | null; + }, +>( + params?: { + variables?: GetSitePreviewCommitVariables; + } & Omit< + UseQueryOptions< + { + getSitePreviewCommit: string | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useGetSitePreviewCommitQuery< + TData = { + getSitePreviewCommit: string | null; + }, +>( + params?: { + variables?: GetSitePreviewCommitVariables; + } & Omit< + UseQueryOptions< + { + getSitePreviewCommit: string | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult { + const variables = params?.variables ?? {}; + const { variables: _variables, ...queryOptions } = params ?? {}; + void _variables; + return useQuery({ + queryKey: getSitePreviewCommitQueryKey(variables), + queryFn: () => getClient().query.getSitePreviewCommit(variables).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch getSitePreviewCommit without React hooks + * + * @example + * ```ts + * const data = await fetchGetSitePreviewCommitQuery({ variables: { targetName, targetSiteId } }); + * ``` + */ +export async function fetchGetSitePreviewCommitQuery(params?: { + variables?: GetSitePreviewCommitVariables; +}) { + const variables = params?.variables ?? {}; + return getClient().query.getSitePreviewCommit(variables).unwrap(); +} +/** + * Prefetch getSitePreviewCommit for SSR or cache warming + * + * @example + * ```ts + * await prefetchGetSitePreviewCommitQuery(queryClient, { variables: { targetName, targetSiteId } }); + * ``` + */ +export async function prefetchGetSitePreviewCommitQuery( + queryClient: QueryClient, + params?: { + variables?: GetSitePreviewCommitVariables; + } +): Promise { + const variables = params?.variables ?? {}; + await queryClient.prefetchQuery({ + queryKey: getSitePreviewCommitQueryKey(variables), + queryFn: () => getClient().query.getSitePreviewCommit(variables).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/api/hooks/queries/useGetSitePreviewsQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useGetSitePreviewsQuery.ts new file mode 100644 index 0000000000..49839921d3 --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/queries/useGetSitePreviewsQuery.ts @@ -0,0 +1,172 @@ +/** + * List query hook for GetSitePreviewsRecord + * @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 { getSitePreviewsRecordKeys } from '../query-keys'; +import type { + GetSitePreviewsRecordSelect, + GetSitePreviewsRecordWithRelations, + GetSitePreviewsRecordFilter, + GetSitePreviewsRecordsOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + GetSitePreviewsRecordSelect, + GetSitePreviewsRecordWithRelations, + GetSitePreviewsRecordFilter, + GetSitePreviewsRecordsOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const getSitePreviewsQueryKey = getSitePreviewsRecordKeys.list; +/** + * Query hook for fetching GetSitePreviewsRecord list + * + * @example + * ```tsx + * const { data, isLoading } = useGetSitePreviewsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useGetSitePreviewsQuery< + S extends GetSitePreviewsRecordSelect, + TData = { + getSitePreviews: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, GetSitePreviewsRecordSelect>; + } & Omit< + UseQueryOptions< + { + getSitePreviews: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useGetSitePreviewsQuery( + params: { + selection: ListSelectionConfig< + GetSitePreviewsRecordSelect, + GetSitePreviewsRecordFilter, + GetSitePreviewsRecordsOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + GetSitePreviewsRecordSelect, + GetSitePreviewsRecordFilter, + GetSitePreviewsRecordsOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: getSitePreviewsRecordKeys.list(args), + queryFn: () => getClient().getSitePreviewsRecord.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch GetSitePreviewsRecord list without React hooks + * + * @example + * ```ts + * const data = await fetchGetSitePreviewsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchGetSitePreviewsQuery(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, GetSitePreviewsRecordSelect>; +}): Promise<{ + getSitePreviews: ConnectionResult>; +}>; +export async function fetchGetSitePreviewsQuery(params: { + selection: ListSelectionConfig< + GetSitePreviewsRecordSelect, + GetSitePreviewsRecordFilter, + GetSitePreviewsRecordsOrderBy + >; +}) { + const args = buildListSelectionArgs< + GetSitePreviewsRecordSelect, + GetSitePreviewsRecordFilter, + GetSitePreviewsRecordsOrderBy + >(params.selection); + return getClient().getSitePreviewsRecord.findMany(args).unwrap(); +} +/** + * Prefetch GetSitePreviewsRecord list for SSR or cache warming + * + * @example + * ```ts + * await prefetchGetSitePreviewsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchGetSitePreviewsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, GetSitePreviewsRecordSelect>; + } +): Promise; +export async function prefetchGetSitePreviewsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + GetSitePreviewsRecordSelect, + GetSitePreviewsRecordFilter, + GetSitePreviewsRecordsOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + GetSitePreviewsRecordSelect, + GetSitePreviewsRecordFilter, + GetSitePreviewsRecordsOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: getSitePreviewsRecordKeys.list(args), + queryFn: () => getClient().getSitePreviewsRecord.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/api/hooks/queries/useGetSiteReleaseManifestQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useGetSiteReleaseManifestQuery.ts new file mode 100644 index 0000000000..f4115aef73 --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/queries/useGetSiteReleaseManifestQuery.ts @@ -0,0 +1,107 @@ +/** + * Custom query hook for getSiteReleaseManifest + * @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 { GetSiteReleaseManifestVariables } from '../../orm/query'; +export type { GetSiteReleaseManifestVariables } from '../../orm/query'; +/** Query key factory - re-exported from query-keys.ts */ +export const getSiteReleaseManifestQueryKey = customQueryKeys.getSiteReleaseManifest; +/** + * Query hook for getSiteReleaseManifest + * + * @example + * ```tsx + * const { data, isLoading } = useGetSiteReleaseManifestQuery({ variables: { targetCommitId, targetSiteId } }); + * + * if (data?.getSiteReleaseManifest) { + * console.log(data.getSiteReleaseManifest); + * } + * ``` + */ +export function useGetSiteReleaseManifestQuery< + TData = { + getSiteReleaseManifest: unknown | null; + }, +>( + params?: { + variables?: GetSiteReleaseManifestVariables; + } & Omit< + UseQueryOptions< + { + getSiteReleaseManifest: unknown | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useGetSiteReleaseManifestQuery< + TData = { + getSiteReleaseManifest: unknown | null; + }, +>( + params?: { + variables?: GetSiteReleaseManifestVariables; + } & Omit< + UseQueryOptions< + { + getSiteReleaseManifest: unknown | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult { + const variables = params?.variables ?? {}; + const { variables: _variables, ...queryOptions } = params ?? {}; + void _variables; + return useQuery({ + queryKey: getSiteReleaseManifestQueryKey(variables), + queryFn: () => getClient().query.getSiteReleaseManifest(variables).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch getSiteReleaseManifest without React hooks + * + * @example + * ```ts + * const data = await fetchGetSiteReleaseManifestQuery({ variables: { targetCommitId, targetSiteId } }); + * ``` + */ +export async function fetchGetSiteReleaseManifestQuery(params?: { + variables?: GetSiteReleaseManifestVariables; +}) { + const variables = params?.variables ?? {}; + return getClient().query.getSiteReleaseManifest(variables).unwrap(); +} +/** + * Prefetch getSiteReleaseManifest for SSR or cache warming + * + * @example + * ```ts + * await prefetchGetSiteReleaseManifestQuery(queryClient, { variables: { targetCommitId, targetSiteId } }); + * ``` + */ +export async function prefetchGetSiteReleaseManifestQuery( + queryClient: QueryClient, + params?: { + variables?: GetSiteReleaseManifestVariables; + } +): Promise { + const variables = params?.variables ?? {}; + await queryClient.prefetchQuery({ + queryKey: getSiteReleaseManifestQueryKey(variables), + queryFn: () => getClient().query.getSiteReleaseManifest(variables).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/api/hooks/queries/useHttpRouteQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useHttpRouteQuery.ts deleted file mode 100644 index d649477526..0000000000 --- a/sdk/constructive-react/src/api/hooks/queries/useHttpRouteQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * Request-time HTTP routing authority: registered domain plus path prefix and optional method to a typed target - * @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 { httpRouteKeys } from '../query-keys'; -import type { HttpRouteSelect, HttpRouteWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { HttpRouteSelect, HttpRouteWithRelations } from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const httpRouteQueryKey = httpRouteKeys.detail; -/** - * Request-time HTTP routing authority: registered domain plus path prefix and optional method to a typed target - * - * @example - * ```tsx - * const { data, isLoading } = useHttpRouteQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useHttpRouteQuery< - S extends HttpRouteSelect, - TData = { - httpRoute: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, HttpRouteSelect>; - } & Omit< - UseQueryOptions< - { - httpRoute: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useHttpRouteQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: httpRouteKeys.detail(params.id), - queryFn: () => - getClient() - .httpRoute.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Request-time HTTP routing authority: registered domain plus path prefix and optional method to a typed target - * - * @example - * ```ts - * const data = await fetchHttpRouteQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchHttpRouteQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, HttpRouteSelect>; -}): Promise<{ - httpRoute: InferSelectResult | null; -}>; -export async function fetchHttpRouteQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .httpRoute.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Request-time HTTP routing authority: registered domain plus path prefix and optional method to a typed target - * - * @example - * ```ts - * await prefetchHttpRouteQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchHttpRouteQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, HttpRouteSelect>; - } -): Promise; -export async function prefetchHttpRouteQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: httpRouteKeys.detail(params.id), - queryFn: () => - getClient() - .httpRoute.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/api/hooks/queries/useHttpRoutesQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useHttpRoutesQuery.ts deleted file mode 100644 index ae14ba7655..0000000000 --- a/sdk/constructive-react/src/api/hooks/queries/useHttpRoutesQuery.ts +++ /dev/null @@ -1,145 +0,0 @@ -/** - * Request-time HTTP routing authority: registered domain plus path prefix and optional method to a typed target - * @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 { httpRouteKeys } from '../query-keys'; -import type { - HttpRouteSelect, - HttpRouteWithRelations, - HttpRouteFilter, - HttpRouteOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - HttpRouteSelect, - HttpRouteWithRelations, - HttpRouteFilter, - HttpRouteOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const httpRoutesQueryKey = httpRouteKeys.list; -/** - * Request-time HTTP routing authority: registered domain plus path prefix and optional method to a typed target - * - * @example - * ```tsx - * const { data, isLoading } = useHttpRoutesQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useHttpRoutesQuery< - S extends HttpRouteSelect, - TData = { - httpRoutes: ConnectionResult>; - }, ->( - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, HttpRouteSelect>; - } & Omit< - UseQueryOptions< - { - httpRoutes: ConnectionResult>; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useHttpRoutesQuery( - params: { - selection: ListSelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs( - params.selection - ); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: httpRouteKeys.list(args), - queryFn: () => getClient().httpRoute.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Request-time HTTP routing authority: registered domain plus path prefix and optional method to a typed target - * - * @example - * ```ts - * const data = await fetchHttpRoutesQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchHttpRoutesQuery(params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, HttpRouteSelect>; -}): Promise<{ - httpRoutes: ConnectionResult>; -}>; -export async function fetchHttpRoutesQuery(params: { - selection: ListSelectionConfig; -}) { - const args = buildListSelectionArgs( - params.selection - ); - return getClient().httpRoute.findMany(args).unwrap(); -} -/** - * Request-time HTTP routing authority: registered domain plus path prefix and optional method to a typed target - * - * @example - * ```ts - * await prefetchHttpRoutesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchHttpRoutesQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, HttpRouteSelect>; - } -): Promise; -export async function prefetchHttpRoutesQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig; - } -): Promise { - const args = buildListSelectionArgs( - params.selection - ); - await queryClient.prefetchQuery({ - queryKey: httpRouteKeys.list(args), - queryFn: () => getClient().httpRoute.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/api/hooks/queries/useIdentityProviderRegistriesQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useIdentityProviderRegistriesQuery.ts new file mode 100644 index 0000000000..8528d5c9a4 --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/queries/useIdentityProviderRegistriesQuery.ts @@ -0,0 +1,182 @@ +/** + * List query hook for IdentityProviderRegistry + * @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 { identityProviderRegistryKeys } from '../query-keys'; +import type { + IdentityProviderRegistrySelect, + IdentityProviderRegistryWithRelations, + IdentityProviderRegistryFilter, + IdentityProviderRegistryOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + IdentityProviderRegistrySelect, + IdentityProviderRegistryWithRelations, + IdentityProviderRegistryFilter, + IdentityProviderRegistryOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const identityProviderRegistriesQueryKey = identityProviderRegistryKeys.list; +/** + * Query hook for fetching IdentityProviderRegistry list + * + * @example + * ```tsx + * const { data, isLoading } = useIdentityProviderRegistriesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useIdentityProviderRegistriesQuery< + S extends IdentityProviderRegistrySelect, + TData = { + identityProviderRegistries: ConnectionResult< + InferSelectResult + >; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, IdentityProviderRegistrySelect>; + } & Omit< + UseQueryOptions< + { + identityProviderRegistries: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useIdentityProviderRegistriesQuery( + params: { + selection: ListSelectionConfig< + IdentityProviderRegistrySelect, + IdentityProviderRegistryFilter, + IdentityProviderRegistryOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + IdentityProviderRegistrySelect, + IdentityProviderRegistryFilter, + IdentityProviderRegistryOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: identityProviderRegistryKeys.list(args), + queryFn: () => getClient().identityProviderRegistry.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch IdentityProviderRegistry list without React hooks + * + * @example + * ```ts + * const data = await fetchIdentityProviderRegistriesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchIdentityProviderRegistriesQuery< + S extends IdentityProviderRegistrySelect, +>(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, IdentityProviderRegistrySelect>; +}): Promise<{ + identityProviderRegistries: ConnectionResult< + InferSelectResult + >; +}>; +export async function fetchIdentityProviderRegistriesQuery(params: { + selection: ListSelectionConfig< + IdentityProviderRegistrySelect, + IdentityProviderRegistryFilter, + IdentityProviderRegistryOrderBy + >; +}) { + const args = buildListSelectionArgs< + IdentityProviderRegistrySelect, + IdentityProviderRegistryFilter, + IdentityProviderRegistryOrderBy + >(params.selection); + return getClient().identityProviderRegistry.findMany(args).unwrap(); +} +/** + * Prefetch IdentityProviderRegistry list for SSR or cache warming + * + * @example + * ```ts + * await prefetchIdentityProviderRegistriesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchIdentityProviderRegistriesQuery< + S extends IdentityProviderRegistrySelect, +>( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, IdentityProviderRegistrySelect>; + } +): Promise; +export async function prefetchIdentityProviderRegistriesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + IdentityProviderRegistrySelect, + IdentityProviderRegistryFilter, + IdentityProviderRegistryOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + IdentityProviderRegistrySelect, + IdentityProviderRegistryFilter, + IdentityProviderRegistryOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: identityProviderRegistryKeys.list(args), + queryFn: () => getClient().identityProviderRegistry.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/api/hooks/queries/useIdentityProviderRegistryQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useIdentityProviderRegistryQuery.ts new file mode 100644 index 0000000000..3ef957047f --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/queries/useIdentityProviderRegistryQuery.ts @@ -0,0 +1,151 @@ +/** + * Single item query hook for IdentityProviderRegistry + * @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 { identityProviderRegistryKeys } from '../query-keys'; +import type { + IdentityProviderRegistrySelect, + IdentityProviderRegistryWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + IdentityProviderRegistrySelect, + IdentityProviderRegistryWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const identityProviderRegistryQueryKey = identityProviderRegistryKeys.detail; +/** + * Query hook for fetching a single IdentityProviderRegistry + * + * @example + * ```tsx + * const { data, isLoading } = useIdentityProviderRegistryQuery({ + * slug: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useIdentityProviderRegistryQuery< + S extends IdentityProviderRegistrySelect, + TData = { + identityProviderRegistry: InferSelectResult | null; + }, +>( + params: { + slug: string; + selection: { + fields: S; + } & HookStrictSelect, IdentityProviderRegistrySelect>; + } & Omit< + UseQueryOptions< + { + identityProviderRegistry: InferSelectResult< + IdentityProviderRegistryWithRelations, + S + > | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useIdentityProviderRegistryQuery( + params: { + slug: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: identityProviderRegistryKeys.detail(params.slug), + queryFn: () => + getClient() + .identityProviderRegistry.findOne({ + slug: params.slug, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single IdentityProviderRegistry without React hooks + * + * @example + * ```ts + * const data = await fetchIdentityProviderRegistryQuery({ + * slug: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchIdentityProviderRegistryQuery< + S extends IdentityProviderRegistrySelect, +>(params: { + slug: string; + selection: { + fields: S; + } & HookStrictSelect, IdentityProviderRegistrySelect>; +}): Promise<{ + identityProviderRegistry: InferSelectResult | null; +}>; +export async function fetchIdentityProviderRegistryQuery(params: { + slug: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .identityProviderRegistry.findOne({ + slug: params.slug, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single IdentityProviderRegistry for SSR or cache warming + * + * @example + * ```ts + * await prefetchIdentityProviderRegistryQuery(queryClient, { slug: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchIdentityProviderRegistryQuery< + S extends IdentityProviderRegistrySelect, +>( + queryClient: QueryClient, + params: { + slug: string; + selection: { + fields: S; + } & HookStrictSelect, IdentityProviderRegistrySelect>; + } +): Promise; +export async function prefetchIdentityProviderRegistryQuery( + queryClient: QueryClient, + params: { + slug: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: identityProviderRegistryKeys.detail(params.slug), + queryFn: () => + getClient() + .identityProviderRegistry.findOne({ + slug: params.slug, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/api/hooks/queries/usePagePublishedQuery.ts b/sdk/constructive-react/src/api/hooks/queries/usePagePublishedQuery.ts new file mode 100644 index 0000000000..52ef876da4 --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/queries/usePagePublishedQuery.ts @@ -0,0 +1,105 @@ +/** + * Custom query hook for pagePublished + * @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 { PagePublishedVariables } from '../../orm/query'; +export type { PagePublishedVariables } from '../../orm/query'; +/** Query key factory - re-exported from query-keys.ts */ +export const pagePublishedQueryKey = customQueryKeys.pagePublished; +/** + * Query hook for pagePublished + * + * @example + * ```tsx + * const { data, isLoading } = usePagePublishedQuery({ variables: { pageSlug, targetSiteId } }); + * + * if (data?.pagePublished) { + * console.log(data.pagePublished); + * } + * ``` + */ +export function usePagePublishedQuery< + TData = { + pagePublished: unknown | null; + }, +>( + params?: { + variables?: PagePublishedVariables; + } & Omit< + UseQueryOptions< + { + pagePublished: unknown | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePagePublishedQuery< + TData = { + pagePublished: unknown | null; + }, +>( + params?: { + variables?: PagePublishedVariables; + } & Omit< + UseQueryOptions< + { + pagePublished: unknown | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult { + const variables = params?.variables ?? {}; + const { variables: _variables, ...queryOptions } = params ?? {}; + void _variables; + return useQuery({ + queryKey: pagePublishedQueryKey(variables), + queryFn: () => getClient().query.pagePublished(variables).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch pagePublished without React hooks + * + * @example + * ```ts + * const data = await fetchPagePublishedQuery({ variables: { pageSlug, targetSiteId } }); + * ``` + */ +export async function fetchPagePublishedQuery(params?: { variables?: PagePublishedVariables }) { + const variables = params?.variables ?? {}; + return getClient().query.pagePublished(variables).unwrap(); +} +/** + * Prefetch pagePublished for SSR or cache warming + * + * @example + * ```ts + * await prefetchPagePublishedQuery(queryClient, { variables: { pageSlug, targetSiteId } }); + * ``` + */ +export async function prefetchPagePublishedQuery( + queryClient: QueryClient, + params?: { + variables?: PagePublishedVariables; + } +): Promise { + const variables = params?.variables ?? {}; + await queryClient.prefetchQuery({ + queryKey: pagePublishedQueryKey(variables), + queryFn: () => getClient().query.pagePublished(variables).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/api/hooks/queries/usePlatformGetSitePreviewCommitQuery.ts b/sdk/constructive-react/src/api/hooks/queries/usePlatformGetSitePreviewCommitQuery.ts new file mode 100644 index 0000000000..52f2514b51 --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/queries/usePlatformGetSitePreviewCommitQuery.ts @@ -0,0 +1,107 @@ +/** + * Custom query hook for platformGetSitePreviewCommit + * @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 { PlatformGetSitePreviewCommitVariables } from '../../orm/query'; +export type { PlatformGetSitePreviewCommitVariables } from '../../orm/query'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformGetSitePreviewCommitQueryKey = customQueryKeys.platformGetSitePreviewCommit; +/** + * Query hook for platformGetSitePreviewCommit + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformGetSitePreviewCommitQuery({ variables: { targetName, targetSiteId } }); + * + * if (data?.platformGetSitePreviewCommit) { + * console.log(data.platformGetSitePreviewCommit); + * } + * ``` + */ +export function usePlatformGetSitePreviewCommitQuery< + TData = { + platformGetSitePreviewCommit: string | null; + }, +>( + params?: { + variables?: PlatformGetSitePreviewCommitVariables; + } & Omit< + UseQueryOptions< + { + platformGetSitePreviewCommit: string | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformGetSitePreviewCommitQuery< + TData = { + platformGetSitePreviewCommit: string | null; + }, +>( + params?: { + variables?: PlatformGetSitePreviewCommitVariables; + } & Omit< + UseQueryOptions< + { + platformGetSitePreviewCommit: string | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult { + const variables = params?.variables ?? {}; + const { variables: _variables, ...queryOptions } = params ?? {}; + void _variables; + return useQuery({ + queryKey: platformGetSitePreviewCommitQueryKey(variables), + queryFn: () => getClient().query.platformGetSitePreviewCommit(variables).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch platformGetSitePreviewCommit without React hooks + * + * @example + * ```ts + * const data = await fetchPlatformGetSitePreviewCommitQuery({ variables: { targetName, targetSiteId } }); + * ``` + */ +export async function fetchPlatformGetSitePreviewCommitQuery(params?: { + variables?: PlatformGetSitePreviewCommitVariables; +}) { + const variables = params?.variables ?? {}; + return getClient().query.platformGetSitePreviewCommit(variables).unwrap(); +} +/** + * Prefetch platformGetSitePreviewCommit for SSR or cache warming + * + * @example + * ```ts + * await prefetchPlatformGetSitePreviewCommitQuery(queryClient, { variables: { targetName, targetSiteId } }); + * ``` + */ +export async function prefetchPlatformGetSitePreviewCommitQuery( + queryClient: QueryClient, + params?: { + variables?: PlatformGetSitePreviewCommitVariables; + } +): Promise { + const variables = params?.variables ?? {}; + await queryClient.prefetchQuery({ + queryKey: platformGetSitePreviewCommitQueryKey(variables), + queryFn: () => getClient().query.platformGetSitePreviewCommit(variables).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/api/hooks/queries/usePlatformGetSitePreviewsQuery.ts b/sdk/constructive-react/src/api/hooks/queries/usePlatformGetSitePreviewsQuery.ts new file mode 100644 index 0000000000..a867ad9d91 --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/queries/usePlatformGetSitePreviewsQuery.ts @@ -0,0 +1,194 @@ +/** + * List query hook for PlatformGetSitePreviewsRecord + * @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 { platformGetSitePreviewsRecordKeys } from '../query-keys'; +import type { + PlatformGetSitePreviewsRecordSelect, + PlatformGetSitePreviewsRecordWithRelations, + PlatformGetSitePreviewsRecordFilter, + PlatformGetSitePreviewsRecordsOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + PlatformGetSitePreviewsRecordSelect, + PlatformGetSitePreviewsRecordWithRelations, + PlatformGetSitePreviewsRecordFilter, + PlatformGetSitePreviewsRecordsOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformGetSitePreviewsQueryKey = platformGetSitePreviewsRecordKeys.list; +/** + * Query hook for fetching PlatformGetSitePreviewsRecord list + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformGetSitePreviewsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function usePlatformGetSitePreviewsQuery< + S extends PlatformGetSitePreviewsRecordSelect, + TData = { + platformGetSitePreviews: ConnectionResult< + InferSelectResult + >; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig< + S, + PlatformGetSitePreviewsRecordFilter, + PlatformGetSitePreviewsRecordsOrderBy + >, + 'fields' + > & + HookStrictSelect, PlatformGetSitePreviewsRecordSelect>; + } & Omit< + UseQueryOptions< + { + platformGetSitePreviews: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformGetSitePreviewsQuery( + params: { + selection: ListSelectionConfig< + PlatformGetSitePreviewsRecordSelect, + PlatformGetSitePreviewsRecordFilter, + PlatformGetSitePreviewsRecordsOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + PlatformGetSitePreviewsRecordSelect, + PlatformGetSitePreviewsRecordFilter, + PlatformGetSitePreviewsRecordsOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformGetSitePreviewsRecordKeys.list(args), + queryFn: () => getClient().platformGetSitePreviewsRecord.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch PlatformGetSitePreviewsRecord list without React hooks + * + * @example + * ```ts + * const data = await fetchPlatformGetSitePreviewsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchPlatformGetSitePreviewsQuery< + S extends PlatformGetSitePreviewsRecordSelect, +>(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig< + S, + PlatformGetSitePreviewsRecordFilter, + PlatformGetSitePreviewsRecordsOrderBy + >, + 'fields' + > & + HookStrictSelect, PlatformGetSitePreviewsRecordSelect>; +}): Promise<{ + platformGetSitePreviews: ConnectionResult< + InferSelectResult + >; +}>; +export async function fetchPlatformGetSitePreviewsQuery(params: { + selection: ListSelectionConfig< + PlatformGetSitePreviewsRecordSelect, + PlatformGetSitePreviewsRecordFilter, + PlatformGetSitePreviewsRecordsOrderBy + >; +}) { + const args = buildListSelectionArgs< + PlatformGetSitePreviewsRecordSelect, + PlatformGetSitePreviewsRecordFilter, + PlatformGetSitePreviewsRecordsOrderBy + >(params.selection); + return getClient().platformGetSitePreviewsRecord.findMany(args).unwrap(); +} +/** + * Prefetch PlatformGetSitePreviewsRecord list for SSR or cache warming + * + * @example + * ```ts + * await prefetchPlatformGetSitePreviewsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchPlatformGetSitePreviewsQuery< + S extends PlatformGetSitePreviewsRecordSelect, +>( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig< + S, + PlatformGetSitePreviewsRecordFilter, + PlatformGetSitePreviewsRecordsOrderBy + >, + 'fields' + > & + HookStrictSelect, PlatformGetSitePreviewsRecordSelect>; + } +): Promise; +export async function prefetchPlatformGetSitePreviewsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + PlatformGetSitePreviewsRecordSelect, + PlatformGetSitePreviewsRecordFilter, + PlatformGetSitePreviewsRecordsOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + PlatformGetSitePreviewsRecordSelect, + PlatformGetSitePreviewsRecordFilter, + PlatformGetSitePreviewsRecordsOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformGetSitePreviewsRecordKeys.list(args), + queryFn: () => getClient().platformGetSitePreviewsRecord.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/api/hooks/queries/usePlatformGetSiteReleaseManifestQuery.ts b/sdk/constructive-react/src/api/hooks/queries/usePlatformGetSiteReleaseManifestQuery.ts new file mode 100644 index 0000000000..f5ed64ab26 --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/queries/usePlatformGetSiteReleaseManifestQuery.ts @@ -0,0 +1,108 @@ +/** + * Custom query hook for platformGetSiteReleaseManifest + * @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 { PlatformGetSiteReleaseManifestVariables } from '../../orm/query'; +export type { PlatformGetSiteReleaseManifestVariables } from '../../orm/query'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformGetSiteReleaseManifestQueryKey = + customQueryKeys.platformGetSiteReleaseManifest; +/** + * Query hook for platformGetSiteReleaseManifest + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformGetSiteReleaseManifestQuery({ variables: { targetCommitId, targetSiteId } }); + * + * if (data?.platformGetSiteReleaseManifest) { + * console.log(data.platformGetSiteReleaseManifest); + * } + * ``` + */ +export function usePlatformGetSiteReleaseManifestQuery< + TData = { + platformGetSiteReleaseManifest: unknown | null; + }, +>( + params?: { + variables?: PlatformGetSiteReleaseManifestVariables; + } & Omit< + UseQueryOptions< + { + platformGetSiteReleaseManifest: unknown | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformGetSiteReleaseManifestQuery< + TData = { + platformGetSiteReleaseManifest: unknown | null; + }, +>( + params?: { + variables?: PlatformGetSiteReleaseManifestVariables; + } & Omit< + UseQueryOptions< + { + platformGetSiteReleaseManifest: unknown | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult { + const variables = params?.variables ?? {}; + const { variables: _variables, ...queryOptions } = params ?? {}; + void _variables; + return useQuery({ + queryKey: platformGetSiteReleaseManifestQueryKey(variables), + queryFn: () => getClient().query.platformGetSiteReleaseManifest(variables).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch platformGetSiteReleaseManifest without React hooks + * + * @example + * ```ts + * const data = await fetchPlatformGetSiteReleaseManifestQuery({ variables: { targetCommitId, targetSiteId } }); + * ``` + */ +export async function fetchPlatformGetSiteReleaseManifestQuery(params?: { + variables?: PlatformGetSiteReleaseManifestVariables; +}) { + const variables = params?.variables ?? {}; + return getClient().query.platformGetSiteReleaseManifest(variables).unwrap(); +} +/** + * Prefetch platformGetSiteReleaseManifest for SSR or cache warming + * + * @example + * ```ts + * await prefetchPlatformGetSiteReleaseManifestQuery(queryClient, { variables: { targetCommitId, targetSiteId } }); + * ``` + */ +export async function prefetchPlatformGetSiteReleaseManifestQuery( + queryClient: QueryClient, + params?: { + variables?: PlatformGetSiteReleaseManifestVariables; + } +): Promise { + const variables = params?.variables ?? {}; + await queryClient.prefetchQuery({ + queryKey: platformGetSiteReleaseManifestQueryKey(variables), + queryFn: () => getClient().query.platformGetSiteReleaseManifest(variables).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/api/hooks/queries/usePlatformPagePublishedQuery.ts b/sdk/constructive-react/src/api/hooks/queries/usePlatformPagePublishedQuery.ts new file mode 100644 index 0000000000..dfd1d45647 --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/queries/usePlatformPagePublishedQuery.ts @@ -0,0 +1,107 @@ +/** + * Custom query hook for platformPagePublished + * @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 { PlatformPagePublishedVariables } from '../../orm/query'; +export type { PlatformPagePublishedVariables } from '../../orm/query'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformPagePublishedQueryKey = customQueryKeys.platformPagePublished; +/** + * Query hook for platformPagePublished + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformPagePublishedQuery({ variables: { pageSlug, targetSiteId } }); + * + * if (data?.platformPagePublished) { + * console.log(data.platformPagePublished); + * } + * ``` + */ +export function usePlatformPagePublishedQuery< + TData = { + platformPagePublished: unknown | null; + }, +>( + params?: { + variables?: PlatformPagePublishedVariables; + } & Omit< + UseQueryOptions< + { + platformPagePublished: unknown | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformPagePublishedQuery< + TData = { + platformPagePublished: unknown | null; + }, +>( + params?: { + variables?: PlatformPagePublishedVariables; + } & Omit< + UseQueryOptions< + { + platformPagePublished: unknown | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult { + const variables = params?.variables ?? {}; + const { variables: _variables, ...queryOptions } = params ?? {}; + void _variables; + return useQuery({ + queryKey: platformPagePublishedQueryKey(variables), + queryFn: () => getClient().query.platformPagePublished(variables).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch platformPagePublished without React hooks + * + * @example + * ```ts + * const data = await fetchPlatformPagePublishedQuery({ variables: { pageSlug, targetSiteId } }); + * ``` + */ +export async function fetchPlatformPagePublishedQuery(params?: { + variables?: PlatformPagePublishedVariables; +}) { + const variables = params?.variables ?? {}; + return getClient().query.platformPagePublished(variables).unwrap(); +} +/** + * Prefetch platformPagePublished for SSR or cache warming + * + * @example + * ```ts + * await prefetchPlatformPagePublishedQuery(queryClient, { variables: { pageSlug, targetSiteId } }); + * ``` + */ +export async function prefetchPlatformPagePublishedQuery( + queryClient: QueryClient, + params?: { + variables?: PlatformPagePublishedVariables; + } +): Promise { + const variables = params?.variables ?? {}; + await queryClient.prefetchQuery({ + queryKey: platformPagePublishedQueryKey(variables), + queryFn: () => getClient().query.platformPagePublished(variables).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/api/hooks/queries/usePlatformSiteAppLinkQuery.ts b/sdk/constructive-react/src/api/hooks/queries/usePlatformSiteAppLinkQuery.ts index d76f39afd2..c4756b8bb9 100644 --- a/sdk/constructive-react/src/api/hooks/queries/usePlatformSiteAppLinkQuery.ts +++ b/sdk/constructive-react/src/api/hooks/queries/usePlatformSiteAppLinkQuery.ts @@ -1,5 +1,5 @@ /** - * Native-app deep-link association metadata for a site surface (feeds AASA / assetlinks.json generation) + * Per-host native-app association for a site surface: which app-owned store identity this host serves, and the path patterns it claims (joined with the store identity to render AASA / assetlinks.json) * @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 platformSiteAppLinkQueryKey = platformSiteAppLinkKeys.detail; /** - * Native-app deep-link association metadata for a site surface (feeds AASA / assetlinks.json generation) + * Per-host native-app association for a site surface: which app-owned store identity this host serves, and the path patterns it claims (joined with the store identity to render AASA / assetlinks.json) * * @example * ```tsx @@ -76,7 +76,7 @@ export function usePlatformSiteAppLinkQuery( }); } /** - * Native-app deep-link association metadata for a site surface (feeds AASA / assetlinks.json generation) + * Per-host native-app association for a site surface: which app-owned store identity this host serves, and the path patterns it claims (joined with the store identity to render AASA / assetlinks.json) * * @example * ```ts @@ -107,7 +107,7 @@ export async function fetchPlatformSiteAppLinkQuery(params: { .unwrap(); } /** - * Native-app deep-link association metadata for a site surface (feeds AASA / assetlinks.json generation) + * Per-host native-app association for a site surface: which app-owned store identity this host serves, and the path patterns it claims (joined with the store identity to render AASA / assetlinks.json) * * @example * ```ts diff --git a/sdk/constructive-react/src/api/hooks/queries/usePlatformSiteAppLinksQuery.ts b/sdk/constructive-react/src/api/hooks/queries/usePlatformSiteAppLinksQuery.ts index 5a4e292fb9..e51768cb3f 100644 --- a/sdk/constructive-react/src/api/hooks/queries/usePlatformSiteAppLinksQuery.ts +++ b/sdk/constructive-react/src/api/hooks/queries/usePlatformSiteAppLinksQuery.ts @@ -1,5 +1,5 @@ /** - * Native-app deep-link association metadata for a site surface (feeds AASA / assetlinks.json generation) + * Per-host native-app association for a site surface: which app-owned store identity this host serves, and the path patterns it claims (joined with the store identity to render AASA / assetlinks.json) * @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 platformSiteAppLinksQueryKey = platformSiteAppLinkKeys.list; /** - * Native-app deep-link association metadata for a site surface (feeds AASA / assetlinks.json generation) + * Per-host native-app association for a site surface: which app-owned store identity this host serves, and the path patterns it claims (joined with the store identity to render AASA / assetlinks.json) * * @example * ```tsx @@ -95,7 +95,7 @@ export function usePlatformSiteAppLinksQuery( }); } /** - * Native-app deep-link association metadata for a site surface (feeds AASA / assetlinks.json generation) + * Per-host native-app association for a site surface: which app-owned store identity this host serves, and the path patterns it claims (joined with the store identity to render AASA / assetlinks.json) * * @example * ```ts @@ -133,7 +133,7 @@ export async function fetchPlatformSiteAppLinksQuery(params: { return getClient().platformSiteAppLink.findMany(args).unwrap(); } /** - * Native-app deep-link association metadata for a site surface (feeds AASA / assetlinks.json generation) + * Per-host native-app association for a site surface: which app-owned store identity this host serves, and the path patterns it claims (joined with the store identity to render AASA / assetlinks.json) * * @example * ```ts diff --git a/sdk/constructive-react/src/api/hooks/queries/usePlatformSiteReleaseQuery.ts b/sdk/constructive-react/src/api/hooks/queries/usePlatformSiteReleaseQuery.ts new file mode 100644 index 0000000000..dae25cf3cc --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/queries/usePlatformSiteReleaseQuery.ts @@ -0,0 +1,144 @@ +/** + * Immutable static-site release manifest head, versioned in the site-owned merkle 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 { platformSiteReleaseKeys } from '../query-keys'; +import type { + PlatformSiteReleaseSelect, + PlatformSiteReleaseWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformSiteReleaseSelect, + PlatformSiteReleaseWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformSiteReleaseQueryKey = platformSiteReleaseKeys.detail; +/** + * Immutable static-site release manifest head, versioned in the site-owned merkle store + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformSiteReleaseQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function usePlatformSiteReleaseQuery< + S extends PlatformSiteReleaseSelect, + TData = { + platformSiteRelease: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformSiteReleaseSelect>; + } & Omit< + UseQueryOptions< + { + platformSiteRelease: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformSiteReleaseQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformSiteReleaseKeys.detail(params.id), + queryFn: () => + getClient() + .platformSiteRelease.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Immutable static-site release manifest head, versioned in the site-owned merkle store + * + * @example + * ```ts + * const data = await fetchPlatformSiteReleaseQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchPlatformSiteReleaseQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformSiteReleaseSelect>; +}): Promise<{ + platformSiteRelease: InferSelectResult | null; +}>; +export async function fetchPlatformSiteReleaseQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .platformSiteRelease.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Immutable static-site release manifest head, versioned in the site-owned merkle store + * + * @example + * ```ts + * await prefetchPlatformSiteReleaseQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchPlatformSiteReleaseQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformSiteReleaseSelect>; + } +): Promise; +export async function prefetchPlatformSiteReleaseQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformSiteReleaseKeys.detail(params.id), + queryFn: () => + getClient() + .platformSiteRelease.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/api/hooks/queries/usePlatformSiteReleasesQuery.ts b/sdk/constructive-react/src/api/hooks/queries/usePlatformSiteReleasesQuery.ts new file mode 100644 index 0000000000..cc5afb2ee6 --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/queries/usePlatformSiteReleasesQuery.ts @@ -0,0 +1,174 @@ +/** + * Immutable static-site release manifest head, versioned in the site-owned merkle 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 { platformSiteReleaseKeys } from '../query-keys'; +import type { + PlatformSiteReleaseSelect, + PlatformSiteReleaseWithRelations, + PlatformSiteReleaseFilter, + PlatformSiteReleaseOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + PlatformSiteReleaseSelect, + PlatformSiteReleaseWithRelations, + PlatformSiteReleaseFilter, + PlatformSiteReleaseOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformSiteReleasesQueryKey = platformSiteReleaseKeys.list; +/** + * Immutable static-site release manifest head, versioned in the site-owned merkle store + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformSiteReleasesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function usePlatformSiteReleasesQuery< + S extends PlatformSiteReleaseSelect, + TData = { + platformSiteReleases: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformSiteReleaseSelect>; + } & Omit< + UseQueryOptions< + { + platformSiteReleases: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformSiteReleasesQuery( + params: { + selection: ListSelectionConfig< + PlatformSiteReleaseSelect, + PlatformSiteReleaseFilter, + PlatformSiteReleaseOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + PlatformSiteReleaseSelect, + PlatformSiteReleaseFilter, + PlatformSiteReleaseOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformSiteReleaseKeys.list(args), + queryFn: () => getClient().platformSiteRelease.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Immutable static-site release manifest head, versioned in the site-owned merkle store + * + * @example + * ```ts + * const data = await fetchPlatformSiteReleasesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchPlatformSiteReleasesQuery(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformSiteReleaseSelect>; +}): Promise<{ + platformSiteReleases: ConnectionResult>; +}>; +export async function fetchPlatformSiteReleasesQuery(params: { + selection: ListSelectionConfig< + PlatformSiteReleaseSelect, + PlatformSiteReleaseFilter, + PlatformSiteReleaseOrderBy + >; +}) { + const args = buildListSelectionArgs< + PlatformSiteReleaseSelect, + PlatformSiteReleaseFilter, + PlatformSiteReleaseOrderBy + >(params.selection); + return getClient().platformSiteRelease.findMany(args).unwrap(); +} +/** + * Immutable static-site release manifest head, versioned in the site-owned merkle store + * + * @example + * ```ts + * await prefetchPlatformSiteReleasesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchPlatformSiteReleasesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformSiteReleaseSelect>; + } +): Promise; +export async function prefetchPlatformSiteReleasesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + PlatformSiteReleaseSelect, + PlatformSiteReleaseFilter, + PlatformSiteReleaseOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + PlatformSiteReleaseSelect, + PlatformSiteReleaseFilter, + PlatformSiteReleaseOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformSiteReleaseKeys.list(args), + queryFn: () => getClient().platformSiteRelease.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/api/hooks/queries/usePlatformSitesDeepLinkUrlQuery.ts b/sdk/constructive-react/src/api/hooks/queries/usePlatformSitesDeepLinkUrlQuery.ts new file mode 100644 index 0000000000..40b37ed1ab --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/queries/usePlatformSitesDeepLinkUrlQuery.ts @@ -0,0 +1,107 @@ +/** + * Custom query hook for platformSitesDeepLinkUrl + * @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 { PlatformSitesDeepLinkUrlVariables } from '../../orm/query'; +export type { PlatformSitesDeepLinkUrlVariables } from '../../orm/query'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformSitesDeepLinkUrlQueryKey = customQueryKeys.platformSitesDeepLinkUrl; +/** + * Query hook for platformSitesDeepLinkUrl + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformSitesDeepLinkUrlQuery({ variables: { linkSlug, targetSiteId } }); + * + * if (data?.platformSitesDeepLinkUrl) { + * console.log(data.platformSitesDeepLinkUrl); + * } + * ``` + */ +export function usePlatformSitesDeepLinkUrlQuery< + TData = { + platformSitesDeepLinkUrl: string | null; + }, +>( + params?: { + variables?: PlatformSitesDeepLinkUrlVariables; + } & Omit< + UseQueryOptions< + { + platformSitesDeepLinkUrl: string | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformSitesDeepLinkUrlQuery< + TData = { + platformSitesDeepLinkUrl: string | null; + }, +>( + params?: { + variables?: PlatformSitesDeepLinkUrlVariables; + } & Omit< + UseQueryOptions< + { + platformSitesDeepLinkUrl: string | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult { + const variables = params?.variables ?? {}; + const { variables: _variables, ...queryOptions } = params ?? {}; + void _variables; + return useQuery({ + queryKey: platformSitesDeepLinkUrlQueryKey(variables), + queryFn: () => getClient().query.platformSitesDeepLinkUrl(variables).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch platformSitesDeepLinkUrl without React hooks + * + * @example + * ```ts + * const data = await fetchPlatformSitesDeepLinkUrlQuery({ variables: { linkSlug, targetSiteId } }); + * ``` + */ +export async function fetchPlatformSitesDeepLinkUrlQuery(params?: { + variables?: PlatformSitesDeepLinkUrlVariables; +}) { + const variables = params?.variables ?? {}; + return getClient().query.platformSitesDeepLinkUrl(variables).unwrap(); +} +/** + * Prefetch platformSitesDeepLinkUrl for SSR or cache warming + * + * @example + * ```ts + * await prefetchPlatformSitesDeepLinkUrlQuery(queryClient, { variables: { linkSlug, targetSiteId } }); + * ``` + */ +export async function prefetchPlatformSitesDeepLinkUrlQuery( + queryClient: QueryClient, + params?: { + variables?: PlatformSitesDeepLinkUrlVariables; + } +): Promise { + const variables = params?.variables ?? {}; + await queryClient.prefetchQuery({ + queryKey: platformSitesDeepLinkUrlQueryKey(variables), + queryFn: () => getClient().query.platformSitesDeepLinkUrl(variables).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/api/hooks/queries/usePlatformSitesSiteOriginQuery.ts b/sdk/constructive-react/src/api/hooks/queries/usePlatformSitesSiteOriginQuery.ts new file mode 100644 index 0000000000..26a219d058 --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/queries/usePlatformSitesSiteOriginQuery.ts @@ -0,0 +1,107 @@ +/** + * Custom query hook for platformSitesSiteOrigin + * @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 { PlatformSitesSiteOriginVariables } from '../../orm/query'; +export type { PlatformSitesSiteOriginVariables } from '../../orm/query'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformSitesSiteOriginQueryKey = customQueryKeys.platformSitesSiteOrigin; +/** + * Query hook for platformSitesSiteOrigin + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformSitesSiteOriginQuery({ variables: { targetSiteId } }); + * + * if (data?.platformSitesSiteOrigin) { + * console.log(data.platformSitesSiteOrigin); + * } + * ``` + */ +export function usePlatformSitesSiteOriginQuery< + TData = { + platformSitesSiteOrigin: string | null; + }, +>( + params?: { + variables?: PlatformSitesSiteOriginVariables; + } & Omit< + UseQueryOptions< + { + platformSitesSiteOrigin: string | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformSitesSiteOriginQuery< + TData = { + platformSitesSiteOrigin: string | null; + }, +>( + params?: { + variables?: PlatformSitesSiteOriginVariables; + } & Omit< + UseQueryOptions< + { + platformSitesSiteOrigin: string | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult { + const variables = params?.variables ?? {}; + const { variables: _variables, ...queryOptions } = params ?? {}; + void _variables; + return useQuery({ + queryKey: platformSitesSiteOriginQueryKey(variables), + queryFn: () => getClient().query.platformSitesSiteOrigin(variables).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch platformSitesSiteOrigin without React hooks + * + * @example + * ```ts + * const data = await fetchPlatformSitesSiteOriginQuery({ variables: { targetSiteId } }); + * ``` + */ +export async function fetchPlatformSitesSiteOriginQuery(params?: { + variables?: PlatformSitesSiteOriginVariables; +}) { + const variables = params?.variables ?? {}; + return getClient().query.platformSitesSiteOrigin(variables).unwrap(); +} +/** + * Prefetch platformSitesSiteOrigin for SSR or cache warming + * + * @example + * ```ts + * await prefetchPlatformSitesSiteOriginQuery(queryClient, { variables: { targetSiteId } }); + * ``` + */ +export async function prefetchPlatformSitesSiteOriginQuery( + queryClient: QueryClient, + params?: { + variables?: PlatformSitesSiteOriginVariables; + } +): Promise { + const variables = params?.variables ?? {}; + await queryClient.prefetchQuery({ + queryKey: platformSitesSiteOriginQueryKey(variables), + queryFn: () => getClient().query.platformSitesSiteOrigin(variables).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/api/hooks/queries/usePlatformVerifySitePreviewTokenQuery.ts b/sdk/constructive-react/src/api/hooks/queries/usePlatformVerifySitePreviewTokenQuery.ts new file mode 100644 index 0000000000..260625cc97 --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/queries/usePlatformVerifySitePreviewTokenQuery.ts @@ -0,0 +1,108 @@ +/** + * Custom query hook for platformVerifySitePreviewToken + * @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 { PlatformVerifySitePreviewTokenVariables } from '../../orm/query'; +export type { PlatformVerifySitePreviewTokenVariables } from '../../orm/query'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformVerifySitePreviewTokenQueryKey = + customQueryKeys.platformVerifySitePreviewToken; +/** + * Query hook for platformVerifySitePreviewToken + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformVerifySitePreviewTokenQuery({ variables: { siteId, token } }); + * + * if (data?.platformVerifySitePreviewToken) { + * console.log(data.platformVerifySitePreviewToken); + * } + * ``` + */ +export function usePlatformVerifySitePreviewTokenQuery< + TData = { + platformVerifySitePreviewToken: string | null; + }, +>( + params?: { + variables?: PlatformVerifySitePreviewTokenVariables; + } & Omit< + UseQueryOptions< + { + platformVerifySitePreviewToken: string | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformVerifySitePreviewTokenQuery< + TData = { + platformVerifySitePreviewToken: string | null; + }, +>( + params?: { + variables?: PlatformVerifySitePreviewTokenVariables; + } & Omit< + UseQueryOptions< + { + platformVerifySitePreviewToken: string | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult { + const variables = params?.variables ?? {}; + const { variables: _variables, ...queryOptions } = params ?? {}; + void _variables; + return useQuery({ + queryKey: platformVerifySitePreviewTokenQueryKey(variables), + queryFn: () => getClient().query.platformVerifySitePreviewToken(variables).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch platformVerifySitePreviewToken without React hooks + * + * @example + * ```ts + * const data = await fetchPlatformVerifySitePreviewTokenQuery({ variables: { siteId, token } }); + * ``` + */ +export async function fetchPlatformVerifySitePreviewTokenQuery(params?: { + variables?: PlatformVerifySitePreviewTokenVariables; +}) { + const variables = params?.variables ?? {}; + return getClient().query.platformVerifySitePreviewToken(variables).unwrap(); +} +/** + * Prefetch platformVerifySitePreviewToken for SSR or cache warming + * + * @example + * ```ts + * await prefetchPlatformVerifySitePreviewTokenQuery(queryClient, { variables: { siteId, token } }); + * ``` + */ +export async function prefetchPlatformVerifySitePreviewTokenQuery( + queryClient: QueryClient, + params?: { + variables?: PlatformVerifySitePreviewTokenVariables; + } +): Promise { + const variables = params?.variables ?? {}; + await queryClient.prefetchQuery({ + queryKey: platformVerifySitePreviewTokenQueryKey(variables), + queryFn: () => getClient().query.platformVerifySitePreviewToken(variables).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/api/hooks/queries/useRedirectQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useRedirectQuery.ts new file mode 100644 index 0000000000..1ac0c3f9e9 --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/queries/useRedirectQuery.ts @@ -0,0 +1,138 @@ +/** + * Redirect targets a route can point at; the edge answers with a redirect status instead of a backend + * @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 { redirectKeys } from '../query-keys'; +import type { RedirectSelect, RedirectWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { RedirectSelect, RedirectWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const redirectQueryKey = redirectKeys.detail; +/** + * Redirect targets a route can point at; the edge answers with a redirect status instead of a backend + * + * @example + * ```tsx + * const { data, isLoading } = useRedirectQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useRedirectQuery< + S extends RedirectSelect, + TData = { + redirect: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, RedirectSelect>; + } & Omit< + UseQueryOptions< + { + redirect: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useRedirectQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: redirectKeys.detail(params.id), + queryFn: () => + getClient() + .redirect.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Redirect targets a route can point at; the edge answers with a redirect status instead of a backend + * + * @example + * ```ts + * const data = await fetchRedirectQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchRedirectQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, RedirectSelect>; +}): Promise<{ + redirect: InferSelectResult | null; +}>; +export async function fetchRedirectQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .redirect.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Redirect targets a route can point at; the edge answers with a redirect status instead of a backend + * + * @example + * ```ts + * await prefetchRedirectQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchRedirectQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, RedirectSelect>; + } +): Promise; +export async function prefetchRedirectQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: redirectKeys.detail(params.id), + queryFn: () => + getClient() + .redirect.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/api/hooks/queries/useRedirectsQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useRedirectsQuery.ts new file mode 100644 index 0000000000..c49d370307 --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/queries/useRedirectsQuery.ts @@ -0,0 +1,145 @@ +/** + * Redirect targets a route can point at; the edge answers with a redirect status instead of a backend + * @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 { redirectKeys } from '../query-keys'; +import type { + RedirectSelect, + RedirectWithRelations, + RedirectFilter, + RedirectOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + RedirectSelect, + RedirectWithRelations, + RedirectFilter, + RedirectOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const redirectsQueryKey = redirectKeys.list; +/** + * Redirect targets a route can point at; the edge answers with a redirect status instead of a backend + * + * @example + * ```tsx + * const { data, isLoading } = useRedirectsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useRedirectsQuery< + S extends RedirectSelect, + TData = { + redirects: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, RedirectSelect>; + } & Omit< + UseQueryOptions< + { + redirects: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useRedirectsQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs( + params.selection + ); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: redirectKeys.list(args), + queryFn: () => getClient().redirect.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Redirect targets a route can point at; the edge answers with a redirect status instead of a backend + * + * @example + * ```ts + * const data = await fetchRedirectsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchRedirectsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, RedirectSelect>; +}): Promise<{ + redirects: ConnectionResult>; +}>; +export async function fetchRedirectsQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs( + params.selection + ); + return getClient().redirect.findMany(args).unwrap(); +} +/** + * Redirect targets a route can point at; the edge answers with a redirect status instead of a backend + * + * @example + * ```ts + * await prefetchRedirectsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchRedirectsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, RedirectSelect>; + } +): Promise; +export async function prefetchRedirectsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs( + params.selection + ); + await queryClient.prefetchQuery({ + queryKey: redirectKeys.list(args), + queryFn: () => getClient().redirect.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/api/hooks/queries/useResolveHttpRouteQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useResolveHttpRouteQuery.ts deleted file mode 100644 index 104d052586..0000000000 --- a/sdk/constructive-react/src/api/hooks/queries/useResolveHttpRouteQuery.ts +++ /dev/null @@ -1,139 +0,0 @@ -/** - * Custom query hook for resolveHttpRoute - * @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 { ResolveHttpRouteVariables } from '../../orm/query'; -import type { ResolveHttpRouteRecordSelect, ResolveHttpRouteRecord } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { ResolveHttpRouteVariables } from '../../orm/query'; -export type { ResolveHttpRouteRecordSelect } from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const resolveHttpRouteQueryKey = customQueryKeys.resolveHttpRoute; -/** - * Query hook for resolveHttpRoute - * - * @example - * ```tsx - * const { data, isLoading } = useResolveHttpRouteQuery({ variables: { requestHost, requestMethod, requestPath }, selection: { fields: { id: true } } }); - * - * if (data?.resolveHttpRoute) { - * console.log(data.resolveHttpRoute); - * } - * ``` - */ -export function useResolveHttpRouteQuery< - S extends ResolveHttpRouteRecordSelect, - TData = { - resolveHttpRoute: InferSelectResult | null; - }, ->( - params: { - variables?: ResolveHttpRouteVariables; - selection: { - fields: S & ResolveHttpRouteRecordSelect; - } & HookStrictSelect, ResolveHttpRouteRecordSelect>; - } & Omit< - UseQueryOptions< - { - resolveHttpRoute: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useResolveHttpRouteQuery( - params: { - variables?: ResolveHttpRouteVariables; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const variables = params.variables ?? {}; - const args = buildSelectionArgs(params.selection); - const { variables: _variables, selection: _selection, ...queryOptions } = params ?? {}; - void _variables; - void _selection; - return useQuery({ - queryKey: resolveHttpRouteQueryKey(variables), - queryFn: () => - getClient() - .query.resolveHttpRoute(variables, { - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Fetch resolveHttpRoute without React hooks - * - * @example - * ```ts - * const data = await fetchResolveHttpRouteQuery({ variables: { requestHost, requestMethod, requestPath }, selection: { fields: { id: true } } }); - * ``` - */ -export async function fetchResolveHttpRouteQuery(params: { - variables?: ResolveHttpRouteVariables; - selection: { - fields: S & ResolveHttpRouteRecordSelect; - } & HookStrictSelect, ResolveHttpRouteRecordSelect>; -}): Promise<{ - resolveHttpRoute: InferSelectResult | null; -}>; -export async function fetchResolveHttpRouteQuery(params: { - variables?: ResolveHttpRouteVariables; - selection: SelectionConfig; -}) { - const variables = params.variables ?? {}; - const args = buildSelectionArgs(params.selection); - return getClient() - .query.resolveHttpRoute(variables, { - select: args.select, - }) - .unwrap(); -} -/** - * Prefetch resolveHttpRoute for SSR or cache warming - * - * @example - * ```ts - * await prefetchResolveHttpRouteQuery(queryClient, { variables: { requestHost, requestMethod, requestPath }, selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchResolveHttpRouteQuery( - queryClient: QueryClient, - params: { - variables?: ResolveHttpRouteVariables; - selection: { - fields: S & ResolveHttpRouteRecordSelect; - } & HookStrictSelect, ResolveHttpRouteRecordSelect>; - } -): Promise; -export async function prefetchResolveHttpRouteQuery( - queryClient: QueryClient, - params: { - variables?: ResolveHttpRouteVariables; - selection: SelectionConfig; - } -): Promise { - const variables = params.variables ?? {}; - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: resolveHttpRouteQueryKey(variables), - queryFn: () => - getClient() - .query.resolveHttpRoute(variables, { - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/api/hooks/queries/useSiteAppLinkQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useSiteAppLinkQuery.ts index facfeeb2f1..f3533824fb 100644 --- a/sdk/constructive-react/src/api/hooks/queries/useSiteAppLinkQuery.ts +++ b/sdk/constructive-react/src/api/hooks/queries/useSiteAppLinkQuery.ts @@ -1,5 +1,5 @@ /** - * Native-app deep-link association metadata for a site surface (feeds AASA / assetlinks.json generation) + * Per-host native-app association for a site surface: which app-owned store identity this host serves, and the path patterns it claims (joined with the store identity to render AASA / assetlinks.json) * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { SiteAppLinkSelect, SiteAppLinkWithRelations } from '../../orm/inpu /** Query key factory - re-exported from query-keys.ts */ export const siteAppLinkQueryKey = siteAppLinkKeys.detail; /** - * Native-app deep-link association metadata for a site surface (feeds AASA / assetlinks.json generation) + * Per-host native-app association for a site surface: which app-owned store identity this host serves, and the path patterns it claims (joined with the store identity to render AASA / assetlinks.json) * * @example * ```tsx @@ -70,7 +70,7 @@ export function useSiteAppLinkQuery( }); } /** - * Native-app deep-link association metadata for a site surface (feeds AASA / assetlinks.json generation) + * Per-host native-app association for a site surface: which app-owned store identity this host serves, and the path patterns it claims (joined with the store identity to render AASA / assetlinks.json) * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchSiteAppLinkQuery(params: { .unwrap(); } /** - * Native-app deep-link association metadata for a site surface (feeds AASA / assetlinks.json generation) + * Per-host native-app association for a site surface: which app-owned store identity this host serves, and the path patterns it claims (joined with the store identity to render AASA / assetlinks.json) * * @example * ```ts diff --git a/sdk/constructive-react/src/api/hooks/queries/useSiteAppLinksQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useSiteAppLinksQuery.ts index 70b08d9459..5a450c3504 100644 --- a/sdk/constructive-react/src/api/hooks/queries/useSiteAppLinksQuery.ts +++ b/sdk/constructive-react/src/api/hooks/queries/useSiteAppLinksQuery.ts @@ -1,5 +1,5 @@ /** - * Native-app deep-link association metadata for a site surface (feeds AASA / assetlinks.json generation) + * Per-host native-app association for a site surface: which app-owned store identity this host serves, and the path patterns it claims (joined with the store identity to render AASA / assetlinks.json) * @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 siteAppLinksQueryKey = siteAppLinkKeys.list; /** - * Native-app deep-link association metadata for a site surface (feeds AASA / assetlinks.json generation) + * Per-host native-app association for a site surface: which app-owned store identity this host serves, and the path patterns it claims (joined with the store identity to render AASA / assetlinks.json) * * @example * ```tsx @@ -84,7 +84,7 @@ export function useSiteAppLinksQuery( }); } /** - * Native-app deep-link association metadata for a site surface (feeds AASA / assetlinks.json generation) + * Per-host native-app association for a site surface: which app-owned store identity this host serves, and the path patterns it claims (joined with the store identity to render AASA / assetlinks.json) * * @example * ```ts @@ -113,7 +113,7 @@ export async function fetchSiteAppLinksQuery(params: { return getClient().siteAppLink.findMany(args).unwrap(); } /** - * Native-app deep-link association metadata for a site surface (feeds AASA / assetlinks.json generation) + * Per-host native-app association for a site surface: which app-owned store identity this host serves, and the path patterns it claims (joined with the store identity to render AASA / assetlinks.json) * * @example * ```ts diff --git a/sdk/constructive-react/src/api/hooks/queries/useSiteReleaseQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useSiteReleaseQuery.ts new file mode 100644 index 0000000000..440919a310 --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/queries/useSiteReleaseQuery.ts @@ -0,0 +1,138 @@ +/** + * Immutable static-site release manifest head, versioned in the site-owned merkle 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 { siteReleaseKeys } from '../query-keys'; +import type { SiteReleaseSelect, SiteReleaseWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { SiteReleaseSelect, SiteReleaseWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const siteReleaseQueryKey = siteReleaseKeys.detail; +/** + * Immutable static-site release manifest head, versioned in the site-owned merkle store + * + * @example + * ```tsx + * const { data, isLoading } = useSiteReleaseQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useSiteReleaseQuery< + S extends SiteReleaseSelect, + TData = { + siteRelease: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, SiteReleaseSelect>; + } & Omit< + UseQueryOptions< + { + siteRelease: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useSiteReleaseQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: siteReleaseKeys.detail(params.id), + queryFn: () => + getClient() + .siteRelease.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Immutable static-site release manifest head, versioned in the site-owned merkle store + * + * @example + * ```ts + * const data = await fetchSiteReleaseQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchSiteReleaseQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, SiteReleaseSelect>; +}): Promise<{ + siteRelease: InferSelectResult | null; +}>; +export async function fetchSiteReleaseQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .siteRelease.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Immutable static-site release manifest head, versioned in the site-owned merkle store + * + * @example + * ```ts + * await prefetchSiteReleaseQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchSiteReleaseQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, SiteReleaseSelect>; + } +): Promise; +export async function prefetchSiteReleaseQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: siteReleaseKeys.detail(params.id), + queryFn: () => + getClient() + .siteRelease.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/api/hooks/queries/useSiteReleasesQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useSiteReleasesQuery.ts new file mode 100644 index 0000000000..b8b6530695 --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/queries/useSiteReleasesQuery.ts @@ -0,0 +1,145 @@ +/** + * Immutable static-site release manifest head, versioned in the site-owned merkle 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 { siteReleaseKeys } from '../query-keys'; +import type { + SiteReleaseSelect, + SiteReleaseWithRelations, + SiteReleaseFilter, + SiteReleaseOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + SiteReleaseSelect, + SiteReleaseWithRelations, + SiteReleaseFilter, + SiteReleaseOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const siteReleasesQueryKey = siteReleaseKeys.list; +/** + * Immutable static-site release manifest head, versioned in the site-owned merkle store + * + * @example + * ```tsx + * const { data, isLoading } = useSiteReleasesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useSiteReleasesQuery< + S extends SiteReleaseSelect, + TData = { + siteReleases: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, SiteReleaseSelect>; + } & Omit< + UseQueryOptions< + { + siteReleases: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useSiteReleasesQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs( + params.selection + ); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: siteReleaseKeys.list(args), + queryFn: () => getClient().siteRelease.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Immutable static-site release manifest head, versioned in the site-owned merkle store + * + * @example + * ```ts + * const data = await fetchSiteReleasesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchSiteReleasesQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, SiteReleaseSelect>; +}): Promise<{ + siteReleases: ConnectionResult>; +}>; +export async function fetchSiteReleasesQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs( + params.selection + ); + return getClient().siteRelease.findMany(args).unwrap(); +} +/** + * Immutable static-site release manifest head, versioned in the site-owned merkle store + * + * @example + * ```ts + * await prefetchSiteReleasesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchSiteReleasesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, SiteReleaseSelect>; + } +): Promise; +export async function prefetchSiteReleasesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs( + params.selection + ); + await queryClient.prefetchQuery({ + queryKey: siteReleaseKeys.list(args), + queryFn: () => getClient().siteRelease.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/api/hooks/queries/useSitesDeepLinkUrlQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useSitesDeepLinkUrlQuery.ts new file mode 100644 index 0000000000..1b420cd570 --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/queries/useSitesDeepLinkUrlQuery.ts @@ -0,0 +1,107 @@ +/** + * Custom query hook for sitesDeepLinkUrl + * @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 { SitesDeepLinkUrlVariables } from '../../orm/query'; +export type { SitesDeepLinkUrlVariables } from '../../orm/query'; +/** Query key factory - re-exported from query-keys.ts */ +export const sitesDeepLinkUrlQueryKey = customQueryKeys.sitesDeepLinkUrl; +/** + * Query hook for sitesDeepLinkUrl + * + * @example + * ```tsx + * const { data, isLoading } = useSitesDeepLinkUrlQuery({ variables: { linkSlug, targetSiteId } }); + * + * if (data?.sitesDeepLinkUrl) { + * console.log(data.sitesDeepLinkUrl); + * } + * ``` + */ +export function useSitesDeepLinkUrlQuery< + TData = { + sitesDeepLinkUrl: string | null; + }, +>( + params?: { + variables?: SitesDeepLinkUrlVariables; + } & Omit< + UseQueryOptions< + { + sitesDeepLinkUrl: string | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useSitesDeepLinkUrlQuery< + TData = { + sitesDeepLinkUrl: string | null; + }, +>( + params?: { + variables?: SitesDeepLinkUrlVariables; + } & Omit< + UseQueryOptions< + { + sitesDeepLinkUrl: string | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult { + const variables = params?.variables ?? {}; + const { variables: _variables, ...queryOptions } = params ?? {}; + void _variables; + return useQuery({ + queryKey: sitesDeepLinkUrlQueryKey(variables), + queryFn: () => getClient().query.sitesDeepLinkUrl(variables).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch sitesDeepLinkUrl without React hooks + * + * @example + * ```ts + * const data = await fetchSitesDeepLinkUrlQuery({ variables: { linkSlug, targetSiteId } }); + * ``` + */ +export async function fetchSitesDeepLinkUrlQuery(params?: { + variables?: SitesDeepLinkUrlVariables; +}) { + const variables = params?.variables ?? {}; + return getClient().query.sitesDeepLinkUrl(variables).unwrap(); +} +/** + * Prefetch sitesDeepLinkUrl for SSR or cache warming + * + * @example + * ```ts + * await prefetchSitesDeepLinkUrlQuery(queryClient, { variables: { linkSlug, targetSiteId } }); + * ``` + */ +export async function prefetchSitesDeepLinkUrlQuery( + queryClient: QueryClient, + params?: { + variables?: SitesDeepLinkUrlVariables; + } +): Promise { + const variables = params?.variables ?? {}; + await queryClient.prefetchQuery({ + queryKey: sitesDeepLinkUrlQueryKey(variables), + queryFn: () => getClient().query.sitesDeepLinkUrl(variables).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/api/hooks/queries/useSitesSiteOriginQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useSitesSiteOriginQuery.ts new file mode 100644 index 0000000000..41bbf8fff6 --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/queries/useSitesSiteOriginQuery.ts @@ -0,0 +1,105 @@ +/** + * Custom query hook for sitesSiteOrigin + * @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 { SitesSiteOriginVariables } from '../../orm/query'; +export type { SitesSiteOriginVariables } from '../../orm/query'; +/** Query key factory - re-exported from query-keys.ts */ +export const sitesSiteOriginQueryKey = customQueryKeys.sitesSiteOrigin; +/** + * Query hook for sitesSiteOrigin + * + * @example + * ```tsx + * const { data, isLoading } = useSitesSiteOriginQuery({ variables: { targetSiteId } }); + * + * if (data?.sitesSiteOrigin) { + * console.log(data.sitesSiteOrigin); + * } + * ``` + */ +export function useSitesSiteOriginQuery< + TData = { + sitesSiteOrigin: string | null; + }, +>( + params?: { + variables?: SitesSiteOriginVariables; + } & Omit< + UseQueryOptions< + { + sitesSiteOrigin: string | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useSitesSiteOriginQuery< + TData = { + sitesSiteOrigin: string | null; + }, +>( + params?: { + variables?: SitesSiteOriginVariables; + } & Omit< + UseQueryOptions< + { + sitesSiteOrigin: string | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult { + const variables = params?.variables ?? {}; + const { variables: _variables, ...queryOptions } = params ?? {}; + void _variables; + return useQuery({ + queryKey: sitesSiteOriginQueryKey(variables), + queryFn: () => getClient().query.sitesSiteOrigin(variables).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch sitesSiteOrigin without React hooks + * + * @example + * ```ts + * const data = await fetchSitesSiteOriginQuery({ variables: { targetSiteId } }); + * ``` + */ +export async function fetchSitesSiteOriginQuery(params?: { variables?: SitesSiteOriginVariables }) { + const variables = params?.variables ?? {}; + return getClient().query.sitesSiteOrigin(variables).unwrap(); +} +/** + * Prefetch sitesSiteOrigin for SSR or cache warming + * + * @example + * ```ts + * await prefetchSitesSiteOriginQuery(queryClient, { variables: { targetSiteId } }); + * ``` + */ +export async function prefetchSitesSiteOriginQuery( + queryClient: QueryClient, + params?: { + variables?: SitesSiteOriginVariables; + } +): Promise { + const variables = params?.variables ?? {}; + await queryClient.prefetchQuery({ + queryKey: sitesSiteOriginQueryKey(variables), + queryFn: () => getClient().query.sitesSiteOrigin(variables).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/api/hooks/queries/useSqlActionQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useSqlActionQuery.ts new file mode 100644 index 0000000000..8ca9fab570 --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/queries/useSqlActionQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for SqlAction + * @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 { sqlActionKeys } from '../query-keys'; +import type { SqlActionSelect, SqlActionWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { SqlActionSelect, SqlActionWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const sqlActionQueryKey = sqlActionKeys.detail; +/** + * Query hook for fetching a single SqlAction + * + * @example + * ```tsx + * const { data, isLoading } = useSqlActionQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useSqlActionQuery< + S extends SqlActionSelect, + TData = { + sqlAction: InferSelectResult | null; + }, +>( + params: { + id: number; + selection: { + fields: S; + } & HookStrictSelect, SqlActionSelect>; + } & Omit< + UseQueryOptions< + { + sqlAction: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useSqlActionQuery( + params: { + id: number; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: sqlActionKeys.detail(params.id), + queryFn: () => + getClient() + .sqlAction.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single SqlAction without React hooks + * + * @example + * ```ts + * const data = await fetchSqlActionQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchSqlActionQuery(params: { + id: number; + selection: { + fields: S; + } & HookStrictSelect, SqlActionSelect>; +}): Promise<{ + sqlAction: InferSelectResult | null; +}>; +export async function fetchSqlActionQuery(params: { + id: number; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .sqlAction.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single SqlAction for SSR or cache warming + * + * @example + * ```ts + * await prefetchSqlActionQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchSqlActionQuery( + queryClient: QueryClient, + params: { + id: number; + selection: { + fields: S; + } & HookStrictSelect, SqlActionSelect>; + } +): Promise; +export async function prefetchSqlActionQuery( + queryClient: QueryClient, + params: { + id: number; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: sqlActionKeys.detail(params.id), + queryFn: () => + getClient() + .sqlAction.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/api/hooks/queries/useSqlActionsQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useSqlActionsQuery.ts new file mode 100644 index 0000000000..3ea449b0a2 --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/queries/useSqlActionsQuery.ts @@ -0,0 +1,145 @@ +/** + * List query hook for SqlAction + * @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 { sqlActionKeys } from '../query-keys'; +import type { + SqlActionSelect, + SqlActionWithRelations, + SqlActionFilter, + SqlActionOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + SqlActionSelect, + SqlActionWithRelations, + SqlActionFilter, + SqlActionOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const sqlActionsQueryKey = sqlActionKeys.list; +/** + * Query hook for fetching SqlAction list + * + * @example + * ```tsx + * const { data, isLoading } = useSqlActionsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useSqlActionsQuery< + S extends SqlActionSelect, + TData = { + sqlActions: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, SqlActionSelect>; + } & Omit< + UseQueryOptions< + { + sqlActions: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useSqlActionsQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs( + params.selection + ); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: sqlActionKeys.list(args), + queryFn: () => getClient().sqlAction.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch SqlAction list without React hooks + * + * @example + * ```ts + * const data = await fetchSqlActionsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchSqlActionsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, SqlActionSelect>; +}): Promise<{ + sqlActions: ConnectionResult>; +}>; +export async function fetchSqlActionsQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs( + params.selection + ); + return getClient().sqlAction.findMany(args).unwrap(); +} +/** + * Prefetch SqlAction list for SSR or cache warming + * + * @example + * ```ts + * await prefetchSqlActionsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchSqlActionsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, SqlActionSelect>; + } +): Promise; +export async function prefetchSqlActionsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs( + params.selection + ); + await queryClient.prefetchQuery({ + queryKey: sqlActionKeys.list(args), + queryFn: () => getClient().sqlAction.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/api/hooks/queries/useVerifySitePreviewTokenQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useVerifySitePreviewTokenQuery.ts new file mode 100644 index 0000000000..cb3e3960ce --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/queries/useVerifySitePreviewTokenQuery.ts @@ -0,0 +1,107 @@ +/** + * Custom query hook for verifySitePreviewToken + * @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 { VerifySitePreviewTokenVariables } from '../../orm/query'; +export type { VerifySitePreviewTokenVariables } from '../../orm/query'; +/** Query key factory - re-exported from query-keys.ts */ +export const verifySitePreviewTokenQueryKey = customQueryKeys.verifySitePreviewToken; +/** + * Query hook for verifySitePreviewToken + * + * @example + * ```tsx + * const { data, isLoading } = useVerifySitePreviewTokenQuery({ variables: { siteId, token } }); + * + * if (data?.verifySitePreviewToken) { + * console.log(data.verifySitePreviewToken); + * } + * ``` + */ +export function useVerifySitePreviewTokenQuery< + TData = { + verifySitePreviewToken: string | null; + }, +>( + params?: { + variables?: VerifySitePreviewTokenVariables; + } & Omit< + UseQueryOptions< + { + verifySitePreviewToken: string | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useVerifySitePreviewTokenQuery< + TData = { + verifySitePreviewToken: string | null; + }, +>( + params?: { + variables?: VerifySitePreviewTokenVariables; + } & Omit< + UseQueryOptions< + { + verifySitePreviewToken: string | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult { + const variables = params?.variables ?? {}; + const { variables: _variables, ...queryOptions } = params ?? {}; + void _variables; + return useQuery({ + queryKey: verifySitePreviewTokenQueryKey(variables), + queryFn: () => getClient().query.verifySitePreviewToken(variables).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch verifySitePreviewToken without React hooks + * + * @example + * ```ts + * const data = await fetchVerifySitePreviewTokenQuery({ variables: { siteId, token } }); + * ``` + */ +export async function fetchVerifySitePreviewTokenQuery(params?: { + variables?: VerifySitePreviewTokenVariables; +}) { + const variables = params?.variables ?? {}; + return getClient().query.verifySitePreviewToken(variables).unwrap(); +} +/** + * Prefetch verifySitePreviewToken for SSR or cache warming + * + * @example + * ```ts + * await prefetchVerifySitePreviewTokenQuery(queryClient, { variables: { siteId, token } }); + * ``` + */ +export async function prefetchVerifySitePreviewTokenQuery( + queryClient: QueryClient, + params?: { + variables?: VerifySitePreviewTokenVariables; + } +): Promise { + const variables = params?.variables ?? {}; + await queryClient.prefetchQuery({ + queryKey: verifySitePreviewTokenQueryKey(variables), + queryFn: () => getClient().query.verifySitePreviewToken(variables).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/api/hooks/query-keys.ts b/sdk/constructive-react/src/api/hooks/query-keys.ts index c89c6352fb..761c45b9d9 100644 --- a/sdk/constructive-react/src/api/hooks/query-keys.ts +++ b/sdk/constructive-react/src/api/hooks/query-keys.ts @@ -46,23 +46,14 @@ export const apiSettingKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...apiSettingKeys.details(), id] as const, } as const; -export const appComponentKeys = { - /** All appComponent queries */ all: ['appcomponent'] as const, - /** List query keys */ lists: () => [...appComponentKeys.all, 'list'] as const, +export const astMigrationKeys = { + /** All astMigration queries */ all: ['astmigration'] as const, + /** List query keys */ lists: () => [...astMigrationKeys.all, 'list'] as const, /** List query key with variables */ list: (variables?: object) => - [...appComponentKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...appComponentKeys.all, 'detail'] as const, + [...astMigrationKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...astMigrationKeys.all, 'detail'] as const, /** Detail query key for specific item */ detail: (id: string | number) => - [...appComponentKeys.details(), id] as const, -} as const; -export const appKeys = { - /** All app queries */ all: ['app'] as const, - /** List query keys */ lists: () => [...appKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...appKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...appKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...appKeys.details(), id] as const, + [...astMigrationKeys.details(), id] as const, } as const; export const checkConstraintKeys = { /** All checkConstraint queries */ all: ['checkconstraint'] as const, @@ -281,6 +272,15 @@ export const functionKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...functionKeys.details(), id] as const, } as const; +export const getSitePreviewsRecordKeys = { + /** All getSitePreviewsRecord queries */ all: ['getsitepreviewsrecord'] as const, + /** List query keys */ lists: () => [...getSitePreviewsRecordKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...getSitePreviewsRecordKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...getSitePreviewsRecordKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...getSitePreviewsRecordKeys.details(), id] as const, +} as const; export const hostnameBindingKeys = { /** All hostnameBinding queries */ all: ['hostnamebinding'] as const, /** List query keys */ lists: () => [...hostnameBindingKeys.all, 'list'] as const, @@ -290,14 +290,14 @@ export const hostnameBindingKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...hostnameBindingKeys.details(), id] as const, } as const; -export const httpRouteKeys = { - /** All httpRoute queries */ all: ['httproute'] as const, - /** List query keys */ lists: () => [...httpRouteKeys.all, 'list'] as const, +export const identityProviderRegistryKeys = { + /** All identityProviderRegistry queries */ all: ['identityproviderregistry'] as const, + /** List query keys */ lists: () => [...identityProviderRegistryKeys.all, 'list'] as const, /** List query key with variables */ list: (variables?: object) => - [...httpRouteKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...httpRouteKeys.all, 'detail'] as const, + [...identityProviderRegistryKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...identityProviderRegistryKeys.all, 'detail'] as const, /** Detail query key for specific item */ detail: (id: string | number) => - [...httpRouteKeys.details(), id] as const, + [...identityProviderRegistryKeys.details(), id] as const, } as const; export const indexKeys = { /** All index queries */ all: ['index'] as const, @@ -436,6 +436,16 @@ export const platformEmailSiteIdentityKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...platformEmailSiteIdentityKeys.details(), id] as const, } as const; +export const platformGetSitePreviewsRecordKeys = { + /** All platformGetSitePreviewsRecord queries */ all: ['platformgetsitepreviewsrecord'] as const, + /** List query keys */ lists: () => [...platformGetSitePreviewsRecordKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...platformGetSitePreviewsRecordKeys.lists(), variables] as const, + /** Detail query keys */ details: () => + [...platformGetSitePreviewsRecordKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...platformGetSitePreviewsRecordKeys.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, @@ -508,6 +518,15 @@ export const platformSiteModuleKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...platformSiteModuleKeys.details(), id] as const, } as const; +export const platformSiteReleaseKeys = { + /** All platformSiteRelease queries */ all: ['platformsiterelease'] as const, + /** List query keys */ lists: () => [...platformSiteReleaseKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...platformSiteReleaseKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...platformSiteReleaseKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...platformSiteReleaseKeys.details(), id] as const, +} as const; export const platformSiteThemeKeys = { /** All platformSiteTheme queries */ all: ['platformsitetheme'] as const, /** List query keys */ lists: () => [...platformSiteThemeKeys.all, 'list'] as const, @@ -553,6 +572,15 @@ export const pubkeySettingKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...pubkeySettingKeys.details(), id] as const, } as const; +export const redirectKeys = { + /** All redirect queries */ all: ['redirect'] as const, + /** List query keys */ lists: () => [...redirectKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...redirectKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...redirectKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...redirectKeys.details(), id] as const, +} as const; export const rlsSettingKeys = { /** All rlsSetting queries */ all: ['rlssetting'] as const, /** List query keys */ lists: () => [...rlsSettingKeys.all, 'list'] as const, @@ -652,6 +680,15 @@ export const siteModuleKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...siteModuleKeys.details(), id] as const, } as const; +export const siteReleaseKeys = { + /** All siteRelease queries */ all: ['siterelease'] as const, + /** List query keys */ lists: () => [...siteReleaseKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...siteReleaseKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...siteReleaseKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...siteReleaseKeys.details(), id] as const, +} as const; export const siteThemeKeys = { /** All siteTheme queries */ all: ['sitetheme'] as const, /** List query keys */ lists: () => [...siteThemeKeys.all, 'list'] as const, @@ -679,6 +716,15 @@ export const spatialRelationKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...spatialRelationKeys.details(), id] as const, } as const; +export const sqlActionKeys = { + /** All sqlAction queries */ all: ['sqlaction'] as const, + /** List query keys */ lists: () => [...sqlActionKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...sqlActionKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...sqlActionKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...sqlActionKeys.details(), id] as const, +} as const; export const tableBehaviorKeys = { /** All tableBehavior queries */ all: ['tablebehavior'] as const, /** List query keys */ lists: () => [...tableBehaviorKeys.all, 'list'] as const, @@ -806,14 +852,39 @@ export const customQueryKeys = { ['apiSchemaNames', variables] as const, /** Query key for applyRegistryDefaults */ applyRegistryDefaults: (variables?: object) => ['applyRegistryDefaults', variables] as const, + /** Query key for getSitePreviewCommit */ getSitePreviewCommit: (variables?: object) => + ['getSitePreviewCommit', variables] as const, + /** Query key for getSiteReleaseManifest */ getSiteReleaseManifest: (variables?: object) => + ['getSiteReleaseManifest', variables] as const, + /** Query key for pagePublished */ pagePublished: (variables?: object) => + ['pagePublished', variables] as const, + /** Query key for platformGetSitePreviewCommit */ platformGetSitePreviewCommit: ( + variables?: object + ) => ['platformGetSitePreviewCommit', variables] as const, + /** Query key for platformGetSiteReleaseManifest */ platformGetSiteReleaseManifest: ( + variables?: object + ) => ['platformGetSiteReleaseManifest', variables] as const, + /** Query key for platformPagePublished */ platformPagePublished: (variables?: object) => + ['platformPagePublished', variables] as const, + /** Query key for platformSitesDeepLinkUrl */ platformSitesDeepLinkUrl: (variables?: object) => + ['platformSitesDeepLinkUrl', variables] as const, + /** Query key for platformSitesSiteOrigin */ platformSitesSiteOrigin: (variables?: object) => + ['platformSitesSiteOrigin', variables] as const, + /** Query key for platformVerifySitePreviewToken */ platformVerifySitePreviewToken: ( + variables?: object + ) => ['platformVerifySitePreviewToken', variables] as const, /** Query key for resolveDeepLink */ resolveDeepLink: (variables?: object) => ['resolveDeepLink', variables] as const, - /** Query key for resolveHttpRoute */ resolveHttpRoute: (variables?: object) => - ['resolveHttpRoute', variables] as const, /** Query key for resolveRoute */ resolveRoute: (variables?: object) => ['resolveRoute', variables] as const, /** Query key for resolveSiteAppLinks */ resolveSiteAppLinks: (variables?: object) => ['resolveSiteAppLinks', variables] as const, + /** Query key for sitesDeepLinkUrl */ sitesDeepLinkUrl: (variables?: object) => + ['sitesDeepLinkUrl', variables] as const, + /** Query key for sitesSiteOrigin */ sitesSiteOrigin: (variables?: object) => + ['sitesSiteOrigin', variables] as const, + /** Query key for verifySitePreviewToken */ verifySitePreviewToken: (variables?: object) => + ['verifySitePreviewToken', variables] as const, } as const; /** @@ -841,8 +912,7 @@ export const queryKeys = { api: apiKeys, apiSchema: apiSchemaKeys, apiSetting: apiSettingKeys, - appComponent: appComponentKeys, - app: appKeys, + astMigration: astMigrationKeys, checkConstraint: checkConstraintKeys, compositeType: compositeTypeKeys, corsSetting: corsSettingKeys, @@ -867,8 +937,9 @@ export const queryKeys = { foreignKeyConstraint: foreignKeyConstraintKeys, fullTextSearch: fullTextSearchKeys, function: functionKeys, + getSitePreviewsRecord: getSitePreviewsRecordKeys, hostnameBinding: hostnameBindingKeys, - httpRoute: httpRouteKeys, + identityProviderRegistry: identityProviderRegistryKeys, index: indexKeys, managedDomain: managedDomainKeys, nodeTypeRegistry: nodeTypeRegistryKeys, @@ -884,6 +955,7 @@ export const queryKeys = { platformEmailIdentity: platformEmailIdentityKeys, platformEmailProviderAccount: platformEmailProviderAccountKeys, platformEmailSiteIdentity: platformEmailSiteIdentityKeys, + platformGetSitePreviewsRecord: platformGetSitePreviewsRecordKeys, platformManagedDomain: platformManagedDomainKeys, platformPage: platformPageKeys, platformSiteAppLink: platformSiteAppLinkKeys, @@ -892,11 +964,13 @@ export const queryKeys = { platformSiteErrorPage: platformSiteErrorPageKeys, platformSiteMetadatum: platformSiteMetadatumKeys, platformSiteModule: platformSiteModuleKeys, + platformSiteRelease: platformSiteReleaseKeys, platformSiteTheme: platformSiteThemeKeys, platformSiteWebConfig: platformSiteWebConfigKeys, policy: policyKeys, primaryKeyConstraint: primaryKeyConstraintKeys, pubkeySetting: pubkeySettingKeys, + redirect: redirectKeys, rlsSetting: rlsSettingKeys, routeBinding: routeBindingKeys, route: routeKeys, @@ -908,9 +982,11 @@ export const queryKeys = { siteErrorPage: siteErrorPageKeys, siteMetadatum: siteMetadatumKeys, siteModule: siteModuleKeys, + siteRelease: siteReleaseKeys, siteTheme: siteThemeKeys, siteWebConfig: siteWebConfigKeys, spatialRelation: spatialRelationKeys, + sqlAction: sqlActionKeys, tableBehavior: tableBehaviorKeys, table: tableKeys, tableGrant: tableGrantKeys, diff --git a/sdk/constructive-react/src/api/orm/README.md b/sdk/constructive-react/src/api/orm/README.md index 8d92fe2572..95c893dcb5 100644 --- a/sdk/constructive-react/src/api/orm/README.md +++ b/sdk/constructive-react/src/api/orm/README.md @@ -24,8 +24,7 @@ const db = createClient({ | `api` | findMany, findOne, create, update, delete | | `apiSchema` | findMany, findOne, create, update, delete | | `apiSetting` | findMany, findOne, create, update, delete | -| `appComponent` | findMany, findOne, create, update, delete | -| `app` | findMany, findOne, create, update, delete | +| `astMigration` | findMany, findOne, create, update, delete | | `checkConstraint` | findMany, findOne, create, update, delete | | `compositeType` | findMany, findOne, create, update, delete | | `corsSetting` | findMany, findOne, create, update, delete | @@ -50,8 +49,9 @@ const db = createClient({ | `foreignKeyConstraint` | findMany, findOne, create, update, delete | | `fullTextSearch` | findMany, findOne, create, update, delete | | `function` | findMany, findOne, create, update, delete | +| `getSitePreviewsRecord` | findMany, findOne, create, update, delete | | `hostnameBinding` | findMany, findOne, create, update, delete | -| `httpRoute` | findMany, findOne, create, update, delete | +| `identityProviderRegistry` | findMany, findOne, create, update, delete | | `index` | findMany, findOne, create, update, delete | | `managedDomain` | findMany, findOne, create, update, delete | | `nodeTypeRegistry` | findMany, findOne, create, update, delete | @@ -67,6 +67,7 @@ const db = createClient({ | `platformEmailIdentity` | findMany, findOne, create, update, delete | | `platformEmailProviderAccount` | findMany, findOne, create, update, delete | | `platformEmailSiteIdentity` | findMany, findOne, create, update, delete | +| `platformGetSitePreviewsRecord` | findMany, findOne, create, update, delete | | `platformManagedDomain` | findMany, findOne, create, update, delete | | `platformPage` | findMany, findOne, create, update, delete | | `platformSiteAppLink` | findMany, findOne, create, update, delete | @@ -75,11 +76,13 @@ const db = createClient({ | `platformSiteErrorPage` | findMany, findOne, create, update, delete | | `platformSiteMetadatum` | findMany, findOne, create, update, delete | | `platformSiteModule` | findMany, findOne, create, update, delete | +| `platformSiteRelease` | findMany, findOne, create, update, delete | | `platformSiteTheme` | findMany, findOne, create, update, delete | | `platformSiteWebConfig` | findMany, findOne, create, update, delete | | `policy` | findMany, findOne, create, update, delete | | `primaryKeyConstraint` | findMany, findOne, create, update, delete | | `pubkeySetting` | findMany, findOne, create, update, delete | +| `redirect` | findMany, findOne, create, update, delete | | `rlsSetting` | findMany, findOne, create, update, delete | | `routeBinding` | findMany, findOne, create, update, delete | | `route` | findMany, findOne, create, update, delete | @@ -91,9 +94,11 @@ const db = createClient({ | `siteErrorPage` | findMany, findOne, create, update, delete | | `siteMetadatum` | findMany, findOne, create, update, delete | | `siteModule` | findMany, findOne, create, update, delete | +| `siteRelease` | findMany, findOne, create, update, delete | | `siteTheme` | findMany, findOne, create, update, delete | | `siteWebConfig` | findMany, findOne, create, update, delete | | `spatialRelation` | findMany, findOne, create, update, delete | +| `sqlAction` | findMany, findOne, create, update, delete | | `tableBehavior` | findMany, findOne, create, update, delete | | `table` | findMany, findOne, create, update, delete | | `tableGrant` | findMany, findOne, create, update, delete | @@ -198,6 +203,7 @@ CRUD operations for ApiSetting records. | `enableConnectionFilter` | Boolean | Yes | | `enableDirectUploads` | Boolean | Yes | | `enableI18N` | Boolean | Yes | +| `enableIntrospection` | Boolean | Yes | | `enableLlm` | Boolean | Yes | | `enableLtree` | Boolean | Yes | | `enableManyToMany` | Boolean | Yes | @@ -206,7 +212,17 @@ CRUD operations for ApiSetting records. | `enableRealtime` | Boolean | Yes | | `enableSearch` | Boolean | Yes | | `id` | UUID | No | +| `idleInTransactionTimeoutMs` | BigInt | Yes | +| `lockTimeoutMs` | BigInt | Yes | +| `maxConcurrentRequests` | Int | Yes | +| `maxPageSize` | Int | Yes | +| `maxQueryCost` | Int | Yes | +| `maxQueryDepth` | Int | Yes | +| `maxQueueWaitMs` | Int | Yes | +| `maxRequestBytes` | Int | Yes | | `options` | JSON | Yes | +| `rateLimitBurst` | Int | Yes | +| `rateLimitRpm` | Int | Yes | | `statementTimeoutMs` | BigInt | Yes | | `updatedAt` | Datetime | No | @@ -214,13 +230,13 @@ CRUD operations for ApiSetting records. ```typescript // List all apiSetting records -const items = await db.apiSetting.findMany({ select: { apiId: true, createdAt: true, databaseId: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, options: true, statementTimeoutMs: true, updatedAt: true } }).execute(); +const items = await db.apiSetting.findMany({ select: { apiId: true, createdAt: true, databaseId: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.apiSetting.findOne({ id: '', select: { apiId: true, createdAt: true, databaseId: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, options: true, statementTimeoutMs: true, updatedAt: true } }).execute(); +const item = await db.apiSetting.findOne({ id: '', select: { apiId: true, createdAt: true, databaseId: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }).execute(); // Create -const created = await db.apiSetting.create({ data: { apiId: '', databaseId: '', enableAggregates: '', enableBulk: '', enableConnectionFilter: '', enableDirectUploads: '', enableI18N: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', options: '', statementTimeoutMs: '' }, select: { id: true } }).execute(); +const created = await db.apiSetting.create({ data: { apiId: '', databaseId: '', enableAggregates: '', enableBulk: '', enableConnectionFilter: '', enableDirectUploads: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }, select: { id: true } }).execute(); // Update const updated = await db.apiSetting.update({ where: { id: '' }, data: { apiId: '' }, select: { id: true } }).execute(); @@ -229,81 +245,45 @@ const updated = await db.apiSetting.update({ where: { id: '' }, data: { ap const deleted = await db.apiSetting.delete({ where: { id: '' } }).execute(); ``` -### `db.appComponent` +### `db.astMigration` -CRUD operations for AppComponent records. +CRUD operations for AstMigration records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `appId` | UUID | Yes | -| `componentApiId` | UUID | Yes | -| `componentDomainId` | UUID | Yes | -| `componentInstallationId` | UUID | Yes | -| `componentSiteId` | UUID | Yes | -| `componentType` | String | Yes | -| `config` | JSON | Yes | -| `createdAt` | Datetime | No | -| `databaseId` | UUID | Yes | -| `id` | UUID | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all appComponent records -const items = await db.appComponent.findMany({ select: { appId: true, componentApiId: true, componentDomainId: true, componentInstallationId: true, componentSiteId: true, componentType: true, config: true, createdAt: true, databaseId: true, id: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.appComponent.findOne({ id: '', select: { appId: true, componentApiId: true, componentDomainId: true, componentInstallationId: true, componentSiteId: true, componentType: true, config: true, createdAt: true, databaseId: true, id: true, updatedAt: true } }).execute(); - -// Create -const created = await db.appComponent.create({ data: { appId: '', componentApiId: '', componentDomainId: '', componentInstallationId: '', componentSiteId: '', componentType: '', config: '', databaseId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appComponent.update({ where: { id: '' }, data: { appId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appComponent.delete({ where: { id: '' } }).execute(); -``` - -### `db.app` - -CRUD operations for App records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `config` | JSON | Yes | +| `actionId` | UUID | Yes | +| `actionName` | String | Yes | +| `actorId` | UUID | Yes | | `createdAt` | Datetime | No | | `databaseId` | UUID | Yes | -| `description` | String | Yes | -| `id` | UUID | No | -| `isPublished` | Boolean | Yes | +| `deploy` | JSON | Yes | +| `deploys` | String | Yes | +| `id` | Int | No | | `name` | String | Yes | -| `status` | String | Yes | -| `title` | String | Yes | -| `updatedAt` | Datetime | No | +| `payload` | JSON | Yes | +| `requires` | String | Yes | +| `revert` | JSON | Yes | +| `verify` | JSON | Yes | **Operations:** ```typescript -// List all app records -const items = await db.app.findMany({ select: { config: true, createdAt: true, databaseId: true, description: true, id: true, isPublished: true, name: true, status: true, title: true, updatedAt: true } }).execute(); +// List all astMigration records +const items = await db.astMigration.findMany({ select: { actionId: true, actionName: true, actorId: true, createdAt: true, databaseId: true, deploy: true, deploys: true, id: true, name: true, payload: true, requires: true, revert: true, verify: true } }).execute(); // Get one by id -const item = await db.app.findOne({ id: '', select: { config: true, createdAt: true, databaseId: true, description: true, id: true, isPublished: true, name: true, status: true, title: true, updatedAt: true } }).execute(); +const item = await db.astMigration.findOne({ id: '', select: { actionId: true, actionName: true, actorId: true, createdAt: true, databaseId: true, deploy: true, deploys: true, id: true, name: true, payload: true, requires: true, revert: true, verify: true } }).execute(); // Create -const created = await db.app.create({ data: { config: '', databaseId: '', description: '', isPublished: '', name: '', status: '', title: '' }, select: { id: true } }).execute(); +const created = await db.astMigration.create({ data: { actionId: '', actionName: '', actorId: '', databaseId: '', deploy: '', deploys: '', name: '', payload: '', requires: '', revert: '', verify: '' }, select: { id: true } }).execute(); // Update -const updated = await db.app.update({ where: { id: '' }, data: { config: '' }, select: { id: true } }).execute(); +const updated = await db.astMigration.update({ where: { id: '' }, data: { actionId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.app.delete({ where: { id: '' } }).execute(); +const deleted = await db.astMigration.delete({ where: { id: '' } }).execute(); ``` ### `db.checkConstraint` @@ -468,10 +448,12 @@ CRUD operations for DatabaseSetting records. | `createdAt` | Datetime | No | | `databaseId` | UUID | Yes | | `enableAggregates` | Boolean | Yes | +| `enableBilling` | Boolean | Yes | | `enableBulk` | Boolean | Yes | | `enableConnectionFilter` | Boolean | Yes | | `enableDirectUploads` | Boolean | Yes | | `enableI18N` | Boolean | Yes | +| `enableIntrospection` | Boolean | Yes | | `enableLlm` | Boolean | Yes | | `enableLtree` | Boolean | Yes | | `enableManyToMany` | Boolean | Yes | @@ -480,8 +462,18 @@ CRUD operations for DatabaseSetting records. | `enableRealtime` | Boolean | Yes | | `enableSearch` | Boolean | Yes | | `id` | UUID | No | +| `idleInTransactionTimeoutMs` | BigInt | Yes | | `labels` | JSON | Yes | +| `lockTimeoutMs` | BigInt | Yes | +| `maxConcurrentRequests` | Int | Yes | +| `maxPageSize` | Int | Yes | +| `maxQueryCost` | Int | Yes | +| `maxQueryDepth` | Int | Yes | +| `maxQueueWaitMs` | Int | Yes | +| `maxRequestBytes` | Int | Yes | | `options` | JSON | Yes | +| `rateLimitBurst` | Int | Yes | +| `rateLimitRpm` | Int | Yes | | `statementTimeoutMs` | BigInt | Yes | | `updatedAt` | Datetime | No | @@ -489,13 +481,13 @@ CRUD operations for DatabaseSetting records. ```typescript // List all databaseSetting records -const items = await db.databaseSetting.findMany({ select: { annotations: true, createdAt: true, databaseId: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, labels: true, options: true, statementTimeoutMs: true, updatedAt: true } }).execute(); +const items = await db.databaseSetting.findMany({ select: { annotations: true, createdAt: true, databaseId: true, enableAggregates: true, enableBilling: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, labels: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.databaseSetting.findOne({ id: '', select: { annotations: true, createdAt: true, databaseId: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, labels: true, options: true, statementTimeoutMs: true, updatedAt: true } }).execute(); +const item = await db.databaseSetting.findOne({ id: '', select: { annotations: true, createdAt: true, databaseId: true, enableAggregates: true, enableBilling: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, labels: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }).execute(); // Create -const created = await db.databaseSetting.create({ data: { annotations: '', databaseId: '', enableAggregates: '', enableBulk: '', enableConnectionFilter: '', enableDirectUploads: '', enableI18N: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', labels: '', options: '', statementTimeoutMs: '' }, select: { id: true } }).execute(); +const created = await db.databaseSetting.create({ data: { annotations: '', databaseId: '', enableAggregates: '', enableBilling: '', enableBulk: '', enableConnectionFilter: '', enableDirectUploads: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', labels: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }, select: { id: true } }).execute(); // Update const updated = await db.databaseSetting.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); @@ -592,6 +584,7 @@ CRUD operations for Derive records. | `createdAt` | Datetime | No | | `databaseId` | UUID | Yes | | `id` | UUID | No | +| `includeGrants` | Boolean | Yes | | `includeMutations` | Boolean | Yes | | `kind` | String | Yes | | `policyPrefix` | String | Yes | @@ -603,13 +596,13 @@ CRUD operations for Derive records. ```typescript // List all derive records -const items = await db.derive.findMany({ select: { createdAt: true, databaseId: true, id: true, includeMutations: true, kind: true, policyPrefix: true, sourceTableId: true, tableId: true, updatedAt: true } }).execute(); +const items = await db.derive.findMany({ select: { createdAt: true, databaseId: true, id: true, includeGrants: true, includeMutations: true, kind: true, policyPrefix: true, sourceTableId: true, tableId: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.derive.findOne({ id: '', select: { createdAt: true, databaseId: true, id: true, includeMutations: true, kind: true, policyPrefix: true, sourceTableId: true, tableId: true, updatedAt: true } }).execute(); +const item = await db.derive.findOne({ id: '', select: { createdAt: true, databaseId: true, id: true, includeGrants: true, includeMutations: true, kind: true, policyPrefix: true, sourceTableId: true, tableId: true, updatedAt: true } }).execute(); // Create -const created = await db.derive.create({ data: { databaseId: '', includeMutations: '', kind: '', policyPrefix: '', sourceTableId: '', tableId: '' }, select: { id: true } }).execute(); +const created = await db.derive.create({ data: { databaseId: '', includeGrants: '', includeMutations: '', kind: '', policyPrefix: '', sourceTableId: '', tableId: '' }, select: { id: true } }).execute(); // Update const updated = await db.derive.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -628,6 +621,7 @@ CRUD operations for Domain records. |-------|------|----------| | `config` | JSON | Yes | | `createdAt` | Datetime | No | +| `createdByPrincipal` | UUID | Yes | | `databaseId` | UUID | Yes | | `hostname` | String | Yes | | `id` | UUID | No | @@ -639,6 +633,7 @@ CRUD operations for Domain records. | `tlsSecretName` | String | Yes | | `tlsStatus` | String | Yes | | `updatedAt` | Datetime | No | +| `updatedByPrincipal` | UUID | Yes | | `verificationStatus` | String | Yes | | `verifiedAt` | Datetime | Yes | @@ -646,13 +641,13 @@ CRUD operations for Domain records. ```typescript // List all domain records -const items = await db.domain.findMany({ select: { config: true, createdAt: true, databaseId: true, hostname: true, id: true, isPublished: true, isWildcard: true, managed: true, parentHostname: true, tlsReadyAt: true, tlsSecretName: true, tlsStatus: true, updatedAt: true, verificationStatus: true, verifiedAt: true } }).execute(); +const items = await db.domain.findMany({ select: { config: true, createdAt: true, createdByPrincipal: true, databaseId: true, hostname: true, id: true, isPublished: true, isWildcard: true, managed: true, parentHostname: true, tlsReadyAt: true, tlsSecretName: true, tlsStatus: true, updatedAt: true, updatedByPrincipal: true, verificationStatus: true, verifiedAt: true } }).execute(); // Get one by id -const item = await db.domain.findOne({ id: '', select: { config: true, createdAt: true, databaseId: true, hostname: true, id: true, isPublished: true, isWildcard: true, managed: true, parentHostname: true, tlsReadyAt: true, tlsSecretName: true, tlsStatus: true, updatedAt: true, verificationStatus: true, verifiedAt: true } }).execute(); +const item = await db.domain.findOne({ id: '', select: { config: true, createdAt: true, createdByPrincipal: true, databaseId: true, hostname: true, id: true, isPublished: true, isWildcard: true, managed: true, parentHostname: true, tlsReadyAt: true, tlsSecretName: true, tlsStatus: true, updatedAt: true, updatedByPrincipal: true, verificationStatus: true, verifiedAt: true } }).execute(); // Create -const created = await db.domain.create({ data: { config: '', databaseId: '', hostname: '', isPublished: '', isWildcard: '', managed: '', parentHostname: '', tlsReadyAt: '', tlsSecretName: '', tlsStatus: '', verificationStatus: '', verifiedAt: '' }, select: { id: true } }).execute(); +const created = await db.domain.create({ data: { config: '', createdByPrincipal: '', databaseId: '', hostname: '', isPublished: '', isWildcard: '', managed: '', parentHostname: '', tlsReadyAt: '', tlsSecretName: '', tlsStatus: '', updatedByPrincipal: '', verificationStatus: '', verifiedAt: '' }, select: { id: true } }).execute(); // Update const updated = await db.domain.update({ where: { id: '' }, data: { config: '' }, select: { id: true } }).execute(); @@ -1253,30 +1248,73 @@ CRUD operations for Function records. | Field | Type | Editable | |-------|------|----------| +| `apiExposed` | Boolean | Yes | +| `arguments` | JSON | Yes | +| `bodyAst` | JSON | Yes | +| `category` | ObjectCategory | Yes | +| `data` | JSON | Yes | | `databaseId` | UUID | Yes | +| `functionType` | String | Yes | | `id` | UUID | No | +| `isStrict` | Boolean | Yes | +| `kind` | String | Yes | | `name` | String | Yes | +| `returns` | JSON | Yes | | `schemaId` | UUID | Yes | +| `securityInvoker` | Boolean | Yes | +| `smartTags` | JSON | Yes | +| `tags` | String | Yes | +| `volatility` | String | Yes | **Operations:** ```typescript // List all function records -const items = await db.function.findMany({ select: { databaseId: true, id: true, name: true, schemaId: true } }).execute(); +const items = await db.function.findMany({ select: { apiExposed: true, arguments: true, bodyAst: true, category: true, data: true, databaseId: true, functionType: true, id: true, isStrict: true, kind: true, name: true, returns: true, schemaId: true, securityInvoker: true, smartTags: true, tags: true, volatility: true } }).execute(); // Get one by id -const item = await db.function.findOne({ id: '', select: { databaseId: true, id: true, name: true, schemaId: true } }).execute(); +const item = await db.function.findOne({ id: '', select: { apiExposed: true, arguments: true, bodyAst: true, category: true, data: true, databaseId: true, functionType: true, id: true, isStrict: true, kind: true, name: true, returns: true, schemaId: true, securityInvoker: true, smartTags: true, tags: true, volatility: true } }).execute(); // Create -const created = await db.function.create({ data: { databaseId: '', name: '', schemaId: '' }, select: { id: true } }).execute(); +const created = await db.function.create({ data: { apiExposed: '', arguments: '', bodyAst: '', category: '', data: '', databaseId: '', functionType: '', isStrict: '', kind: '', name: '', returns: '', schemaId: '', securityInvoker: '', smartTags: '', tags: '', volatility: '' }, select: { id: true } }).execute(); // Update -const updated = await db.function.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.function.update({ where: { id: '' }, data: { apiExposed: '' }, select: { id: true } }).execute(); // Delete const deleted = await db.function.delete({ where: { id: '' } }).execute(); ``` +### `db.getSitePreviewsRecord` + +CRUD operations for GetSitePreviewsRecord records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `commitId` | UUID | Yes | +| `name` | String | Yes | + +**Operations:** + +```typescript +// List all getSitePreviewsRecord records +const items = await db.getSitePreviewsRecord.findMany({ select: { commitId: true, name: true } }).execute(); + +// Get one by id +const item = await db.getSitePreviewsRecord.findOne({ id: '', select: { commitId: true, name: true } }).execute(); + +// Create +const created = await db.getSitePreviewsRecord.create({ data: { commitId: '', name: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.getSitePreviewsRecord.update({ where: { id: '' }, data: { commitId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.getSitePreviewsRecord.delete({ where: { id: '' } }).execute(); +``` + ### `db.hostnameBinding` CRUD operations for HostnameBinding records. @@ -1315,45 +1353,40 @@ const updated = await db.hostnameBinding.update({ where: { id: '' }, data: const deleted = await db.hostnameBinding.delete({ where: { id: '' } }).execute(); ``` -### `db.httpRoute` +### `db.identityProviderRegistry` -CRUD operations for HttpRoute records. +CRUD operations for IdentityProviderRegistry records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `createdAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `databaseId` | UUID | Yes | -| `domainId` | UUID | Yes | -| `id` | UUID | No | -| `isActive` | Boolean | Yes | -| `method` | String | Yes | -| `path` | String | Yes | -| `priority` | Int | Yes | -| `targetId` | UUID | Yes | -| `targetKind` | String | Yes | -| `updatedAt` | Datetime | No | -| `updatedBy` | UUID | Yes | +| `authorizationUrl` | String | Yes | +| `displayName` | String | Yes | +| `issuerUrl` | String | Yes | +| `kind` | String | Yes | +| `scopes` | String | Yes | +| `slug` | String | No | +| `tokenUrl` | String | Yes | +| `userinfoUrl` | String | Yes | **Operations:** ```typescript -// List all httpRoute records -const items = await db.httpRoute.findMany({ select: { createdAt: true, createdBy: true, databaseId: true, domainId: true, id: true, isActive: true, method: true, path: true, priority: true, targetId: true, targetKind: true, updatedAt: true, updatedBy: true } }).execute(); +// List all identityProviderRegistry records +const items = await db.identityProviderRegistry.findMany({ select: { authorizationUrl: true, displayName: true, issuerUrl: true, kind: true, scopes: true, slug: true, tokenUrl: true, userinfoUrl: true } }).execute(); -// Get one by id -const item = await db.httpRoute.findOne({ id: '', select: { createdAt: true, createdBy: true, databaseId: true, domainId: true, id: true, isActive: true, method: true, path: true, priority: true, targetId: true, targetKind: true, updatedAt: true, updatedBy: true } }).execute(); +// Get one by slug +const item = await db.identityProviderRegistry.findOne({ slug: '', select: { authorizationUrl: true, displayName: true, issuerUrl: true, kind: true, scopes: true, slug: true, tokenUrl: true, userinfoUrl: true } }).execute(); // Create -const created = await db.httpRoute.create({ data: { createdBy: '', databaseId: '', domainId: '', isActive: '', method: '', path: '', priority: '', targetId: '', targetKind: '', updatedBy: '' }, select: { id: true } }).execute(); +const created = await db.identityProviderRegistry.create({ data: { authorizationUrl: '', displayName: '', issuerUrl: '', kind: '', scopes: '', tokenUrl: '', userinfoUrl: '' }, select: { slug: true } }).execute(); // Update -const updated = await db.httpRoute.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); +const updated = await db.identityProviderRegistry.update({ where: { slug: '' }, data: { authorizationUrl: '' }, select: { slug: true } }).execute(); // Delete -const deleted = await db.httpRoute.delete({ where: { id: '' } }).execute(); +const deleted = await db.identityProviderRegistry.delete({ where: { slug: '' } }).execute(); ``` ### `db.index` @@ -1374,6 +1407,7 @@ CRUD operations for Index records. | `indexParams` | JSON | Yes | | `isUnique` | Boolean | Yes | | `name` | String | Yes | +| `nullsNotDistinct` | Boolean | Yes | | `opClasses` | String | Yes | | `options` | JSON | Yes | | `smartTags` | JSON | Yes | @@ -1386,13 +1420,13 @@ CRUD operations for Index records. ```typescript // List all index records -const items = await db.index.findMany({ select: { accessMethod: true, category: true, createdAt: true, databaseId: true, fieldIds: true, id: true, includeFieldIds: true, indexParams: true, isUnique: true, name: true, opClasses: true, options: true, smartTags: true, tableId: true, tags: true, updatedAt: true, whereClause: true } }).execute(); +const items = await db.index.findMany({ select: { accessMethod: true, category: true, createdAt: true, databaseId: true, fieldIds: true, id: true, includeFieldIds: true, indexParams: true, isUnique: true, name: true, nullsNotDistinct: true, opClasses: true, options: true, smartTags: true, tableId: true, tags: true, updatedAt: true, whereClause: true } }).execute(); // Get one by id -const item = await db.index.findOne({ id: '', select: { accessMethod: true, category: true, createdAt: true, databaseId: true, fieldIds: true, id: true, includeFieldIds: true, indexParams: true, isUnique: true, name: true, opClasses: true, options: true, smartTags: true, tableId: true, tags: true, updatedAt: true, whereClause: true } }).execute(); +const item = await db.index.findOne({ id: '', select: { accessMethod: true, category: true, createdAt: true, databaseId: true, fieldIds: true, id: true, includeFieldIds: true, indexParams: true, isUnique: true, name: true, nullsNotDistinct: true, opClasses: true, options: true, smartTags: true, tableId: true, tags: true, updatedAt: true, whereClause: true } }).execute(); // Create -const created = await db.index.create({ data: { accessMethod: '', category: '', databaseId: '', fieldIds: '', includeFieldIds: '', indexParams: '', isUnique: '', name: '', opClasses: '', options: '', smartTags: '', tableId: '', tags: '', whereClause: '' }, select: { id: true } }).execute(); +const created = await db.index.create({ data: { accessMethod: '', category: '', databaseId: '', fieldIds: '', includeFieldIds: '', indexParams: '', isUnique: '', name: '', nullsNotDistinct: '', opClasses: '', options: '', smartTags: '', tableId: '', tags: '', whereClause: '' }, select: { id: true } }).execute(); // Update const updated = await db.index.update({ where: { id: '' }, data: { accessMethod: '' }, select: { id: true } }).execute(); @@ -1413,6 +1447,7 @@ CRUD operations for ManagedDomain records. | `annotations` | JSON | Yes | | `certStatus` | String | Yes | | `createdAt` | Datetime | No | +| `createdByPrincipal` | UUID | Yes | | `databaseId` | UUID | Yes | | `domain` | String | Yes | | `id` | UUID | No | @@ -1420,6 +1455,7 @@ CRUD operations for ManagedDomain records. | `tlsReadyAt` | Datetime | Yes | | `tlsStatus` | String | Yes | | `updatedAt` | Datetime | No | +| `updatedByPrincipal` | UUID | Yes | | `verificationStatus` | String | Yes | | `verifiedAt` | Datetime | Yes | @@ -1427,13 +1463,13 @@ CRUD operations for ManagedDomain records. ```typescript // List all managedDomain records -const items = await db.managedDomain.findMany({ select: { allowPublicUsage: true, annotations: true, certStatus: true, createdAt: true, databaseId: true, domain: true, id: true, isWildcard: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, verificationStatus: true, verifiedAt: true } }).execute(); +const items = await db.managedDomain.findMany({ select: { allowPublicUsage: true, annotations: true, certStatus: true, createdAt: true, createdByPrincipal: true, databaseId: true, domain: true, id: true, isWildcard: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, updatedByPrincipal: true, verificationStatus: true, verifiedAt: true } }).execute(); // Get one by id -const item = await db.managedDomain.findOne({ id: '', select: { allowPublicUsage: true, annotations: true, certStatus: true, createdAt: true, databaseId: true, domain: true, id: true, isWildcard: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, verificationStatus: true, verifiedAt: true } }).execute(); +const item = await db.managedDomain.findOne({ id: '', select: { allowPublicUsage: true, annotations: true, certStatus: true, createdAt: true, createdByPrincipal: true, databaseId: true, domain: true, id: true, isWildcard: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, updatedByPrincipal: true, verificationStatus: true, verifiedAt: true } }).execute(); // Create -const created = await db.managedDomain.create({ data: { allowPublicUsage: '', annotations: '', certStatus: '', databaseId: '', domain: '', isWildcard: '', tlsReadyAt: '', tlsStatus: '', verificationStatus: '', verifiedAt: '' }, select: { id: true } }).execute(); +const created = await db.managedDomain.create({ data: { allowPublicUsage: '', annotations: '', certStatus: '', createdByPrincipal: '', databaseId: '', domain: '', isWildcard: '', tlsReadyAt: '', tlsStatus: '', updatedByPrincipal: '', verificationStatus: '', verifiedAt: '' }, select: { id: true } }).execute(); // Update const updated = await db.managedDomain.update({ where: { id: '' }, data: { allowPublicUsage: '' }, select: { id: true } }).execute(); @@ -1490,6 +1526,7 @@ CRUD operations for Page records. | `createdAt` | Datetime | No | | `databaseId` | UUID | Yes | | `id` | UUID | No | +| `seededFrom` | JSON | Yes | | `siteId` | UUID | Yes | | `slug` | String | Yes | | `storeId` | UUID | Yes | @@ -1499,13 +1536,13 @@ CRUD operations for Page records. ```typescript // List all page records -const items = await db.page.findMany({ select: { commitId: true, content: true, createdAt: true, databaseId: true, id: true, siteId: true, slug: true, storeId: true, updatedAt: true } }).execute(); +const items = await db.page.findMany({ select: { commitId: true, content: true, createdAt: true, databaseId: true, id: true, seededFrom: true, siteId: true, slug: true, storeId: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.page.findOne({ id: '', select: { commitId: true, content: true, createdAt: true, databaseId: true, id: true, siteId: true, slug: true, storeId: true, updatedAt: true } }).execute(); +const item = await db.page.findOne({ id: '', select: { commitId: true, content: true, createdAt: true, databaseId: true, id: true, seededFrom: true, siteId: true, slug: true, storeId: true, updatedAt: true } }).execute(); // Create -const created = await db.page.create({ data: { commitId: '', content: '', databaseId: '', siteId: '', slug: '', storeId: '' }, select: { id: true } }).execute(); +const created = await db.page.create({ data: { commitId: '', content: '', databaseId: '', seededFrom: '', siteId: '', slug: '', storeId: '' }, select: { id: true } }).execute(); // Update const updated = await db.page.update({ where: { id: '' }, data: { commitId: '' }, select: { id: true } }).execute(); @@ -1640,6 +1677,7 @@ CRUD operations for PlatformApiSetting records. | `enableConnectionFilter` | Boolean | Yes | | `enableDirectUploads` | Boolean | Yes | | `enableI18N` | Boolean | Yes | +| `enableIntrospection` | Boolean | Yes | | `enableLlm` | Boolean | Yes | | `enableLtree` | Boolean | Yes | | `enableManyToMany` | Boolean | Yes | @@ -1648,7 +1686,17 @@ CRUD operations for PlatformApiSetting records. | `enableRealtime` | Boolean | Yes | | `enableSearch` | Boolean | Yes | | `id` | UUID | No | +| `idleInTransactionTimeoutMs` | BigInt | Yes | +| `lockTimeoutMs` | BigInt | Yes | +| `maxConcurrentRequests` | Int | Yes | +| `maxPageSize` | Int | Yes | +| `maxQueryCost` | Int | Yes | +| `maxQueryDepth` | Int | Yes | +| `maxQueueWaitMs` | Int | Yes | +| `maxRequestBytes` | Int | Yes | | `options` | JSON | Yes | +| `rateLimitBurst` | Int | Yes | +| `rateLimitRpm` | Int | Yes | | `statementTimeoutMs` | BigInt | Yes | | `updatedAt` | Datetime | No | @@ -1656,13 +1704,13 @@ CRUD operations for PlatformApiSetting records. ```typescript // List all platformApiSetting records -const items = await db.platformApiSetting.findMany({ select: { apiId: true, createdAt: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, options: true, statementTimeoutMs: true, updatedAt: true } }).execute(); +const items = await db.platformApiSetting.findMany({ select: { apiId: true, createdAt: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.platformApiSetting.findOne({ id: '', select: { apiId: true, createdAt: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, options: true, statementTimeoutMs: true, updatedAt: true } }).execute(); +const item = await db.platformApiSetting.findOne({ id: '', select: { apiId: true, createdAt: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }).execute(); // Create -const created = await db.platformApiSetting.create({ data: { apiId: '', enableAggregates: '', enableBulk: '', enableConnectionFilter: '', enableDirectUploads: '', enableI18N: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', options: '', statementTimeoutMs: '' }, select: { id: true } }).execute(); +const created = await db.platformApiSetting.create({ data: { apiId: '', enableAggregates: '', enableBulk: '', enableConnectionFilter: '', enableDirectUploads: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformApiSetting.update({ where: { id: '' }, data: { apiId: '' }, select: { id: true } }).execute(); @@ -1714,6 +1762,7 @@ CRUD operations for PlatformDomain records. |-------|------|----------| | `config` | JSON | Yes | | `createdAt` | Datetime | No | +| `createdByPrincipal` | UUID | Yes | | `hostname` | String | Yes | | `id` | UUID | No | | `isPublished` | Boolean | Yes | @@ -1724,6 +1773,7 @@ CRUD operations for PlatformDomain records. | `tlsSecretName` | String | Yes | | `tlsStatus` | String | Yes | | `updatedAt` | Datetime | No | +| `updatedByPrincipal` | UUID | Yes | | `verificationStatus` | String | Yes | | `verifiedAt` | Datetime | Yes | @@ -1731,13 +1781,13 @@ CRUD operations for PlatformDomain records. ```typescript // List all platformDomain records -const items = await db.platformDomain.findMany({ select: { config: true, createdAt: true, hostname: true, id: true, isPublished: true, isWildcard: true, managed: true, parentHostname: true, tlsReadyAt: true, tlsSecretName: true, tlsStatus: true, updatedAt: true, verificationStatus: true, verifiedAt: true } }).execute(); +const items = await db.platformDomain.findMany({ select: { config: true, createdAt: true, createdByPrincipal: true, hostname: true, id: true, isPublished: true, isWildcard: true, managed: true, parentHostname: true, tlsReadyAt: true, tlsSecretName: true, tlsStatus: true, updatedAt: true, updatedByPrincipal: true, verificationStatus: true, verifiedAt: true } }).execute(); // Get one by id -const item = await db.platformDomain.findOne({ id: '', select: { config: true, createdAt: true, hostname: true, id: true, isPublished: true, isWildcard: true, managed: true, parentHostname: true, tlsReadyAt: true, tlsSecretName: true, tlsStatus: true, updatedAt: true, verificationStatus: true, verifiedAt: true } }).execute(); +const item = await db.platformDomain.findOne({ id: '', select: { config: true, createdAt: true, createdByPrincipal: true, hostname: true, id: true, isPublished: true, isWildcard: true, managed: true, parentHostname: true, tlsReadyAt: true, tlsSecretName: true, tlsStatus: true, updatedAt: true, updatedByPrincipal: true, verificationStatus: true, verifiedAt: true } }).execute(); // Create -const created = await db.platformDomain.create({ data: { config: '', hostname: '', isPublished: '', isWildcard: '', managed: '', parentHostname: '', tlsReadyAt: '', tlsSecretName: '', tlsStatus: '', verificationStatus: '', verifiedAt: '' }, select: { id: true } }).execute(); +const created = await db.platformDomain.create({ data: { config: '', createdByPrincipal: '', hostname: '', isPublished: '', isWildcard: '', managed: '', parentHostname: '', tlsReadyAt: '', tlsSecretName: '', tlsStatus: '', updatedByPrincipal: '', verificationStatus: '', verifiedAt: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformDomain.update({ where: { id: '' }, data: { config: '' }, select: { id: true } }).execute(); @@ -1943,6 +1993,36 @@ const updated = await db.platformEmailSiteIdentity.update({ where: { id: ' const deleted = await db.platformEmailSiteIdentity.delete({ where: { id: '' } }).execute(); ``` +### `db.platformGetSitePreviewsRecord` + +CRUD operations for PlatformGetSitePreviewsRecord records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `commitId` | UUID | Yes | +| `name` | String | Yes | + +**Operations:** + +```typescript +// List all platformGetSitePreviewsRecord records +const items = await db.platformGetSitePreviewsRecord.findMany({ select: { commitId: true, name: true } }).execute(); + +// Get one by id +const item = await db.platformGetSitePreviewsRecord.findOne({ id: '', select: { commitId: true, name: true } }).execute(); + +// Create +const created = await db.platformGetSitePreviewsRecord.create({ data: { commitId: '', name: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformGetSitePreviewsRecord.update({ where: { id: '' }, data: { commitId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformGetSitePreviewsRecord.delete({ where: { id: '' } }).execute(); +``` + ### `db.platformManagedDomain` CRUD operations for PlatformManagedDomain records. @@ -1955,12 +2035,14 @@ CRUD operations for PlatformManagedDomain records. | `annotations` | JSON | Yes | | `certStatus` | String | Yes | | `createdAt` | Datetime | No | +| `createdByPrincipal` | UUID | Yes | | `domain` | String | Yes | | `id` | UUID | No | | `isWildcard` | Boolean | Yes | | `tlsReadyAt` | Datetime | Yes | | `tlsStatus` | String | Yes | | `updatedAt` | Datetime | No | +| `updatedByPrincipal` | UUID | Yes | | `verificationStatus` | String | Yes | | `verifiedAt` | Datetime | Yes | @@ -1968,13 +2050,13 @@ CRUD operations for PlatformManagedDomain records. ```typescript // List all platformManagedDomain records -const items = await db.platformManagedDomain.findMany({ select: { allowPublicUsage: true, annotations: true, certStatus: true, createdAt: true, domain: true, id: true, isWildcard: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, verificationStatus: true, verifiedAt: true } }).execute(); +const items = await db.platformManagedDomain.findMany({ select: { allowPublicUsage: true, annotations: true, certStatus: true, createdAt: true, createdByPrincipal: true, domain: true, id: true, isWildcard: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, updatedByPrincipal: true, verificationStatus: true, verifiedAt: true } }).execute(); // Get one by id -const item = await db.platformManagedDomain.findOne({ id: '', select: { allowPublicUsage: true, annotations: true, certStatus: true, createdAt: true, domain: true, id: true, isWildcard: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, verificationStatus: true, verifiedAt: true } }).execute(); +const item = await db.platformManagedDomain.findOne({ id: '', select: { allowPublicUsage: true, annotations: true, certStatus: true, createdAt: true, createdByPrincipal: true, domain: true, id: true, isWildcard: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, updatedByPrincipal: true, verificationStatus: true, verifiedAt: true } }).execute(); // Create -const created = await db.platformManagedDomain.create({ data: { allowPublicUsage: '', annotations: '', certStatus: '', domain: '', isWildcard: '', tlsReadyAt: '', tlsStatus: '', verificationStatus: '', verifiedAt: '' }, select: { id: true } }).execute(); +const created = await db.platformManagedDomain.create({ data: { allowPublicUsage: '', annotations: '', certStatus: '', createdByPrincipal: '', domain: '', isWildcard: '', tlsReadyAt: '', tlsStatus: '', updatedByPrincipal: '', verificationStatus: '', verifiedAt: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformManagedDomain.update({ where: { id: '' }, data: { allowPublicUsage: '' }, select: { id: true } }).execute(); @@ -1995,6 +2077,7 @@ CRUD operations for PlatformPage records. | `content` | JSON | Yes | | `createdAt` | Datetime | No | | `id` | UUID | No | +| `seededFrom` | JSON | Yes | | `siteId` | UUID | Yes | | `slug` | String | Yes | | `storeId` | UUID | Yes | @@ -2004,13 +2087,13 @@ CRUD operations for PlatformPage records. ```typescript // List all platformPage records -const items = await db.platformPage.findMany({ select: { commitId: true, content: true, createdAt: true, id: true, siteId: true, slug: true, storeId: true, updatedAt: true } }).execute(); +const items = await db.platformPage.findMany({ select: { commitId: true, content: true, createdAt: true, id: true, seededFrom: true, siteId: true, slug: true, storeId: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.platformPage.findOne({ id: '', select: { commitId: true, content: true, createdAt: true, id: true, siteId: true, slug: true, storeId: true, updatedAt: true } }).execute(); +const item = await db.platformPage.findOne({ id: '', select: { commitId: true, content: true, createdAt: true, id: true, seededFrom: true, siteId: true, slug: true, storeId: true, updatedAt: true } }).execute(); // Create -const created = await db.platformPage.create({ data: { commitId: '', content: '', siteId: '', slug: '', storeId: '' }, select: { id: true } }).execute(); +const created = await db.platformPage.create({ data: { commitId: '', content: '', seededFrom: '', siteId: '', slug: '', storeId: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformPage.update({ where: { id: '' }, data: { commitId: '' }, select: { id: true } }).execute(); @@ -2027,15 +2110,11 @@ CRUD operations for PlatformSiteAppLink records. | Field | Type | Editable | |-------|------|----------| -| `appIdentifier` | String | Yes | +| `appStoreIdentityId` | UUID | Yes | | `createdAt` | Datetime | No | | `id` | UUID | No | | `pathComponents` | String | Yes | -| `platform` | String | Yes | -| `sha256CertFingerprints` | String | Yes | | `siteId` | UUID | Yes | -| `storeUrl` | String | Yes | -| `teamId` | String | Yes | | `updatedAt` | Datetime | No | | `webcredentials` | Boolean | Yes | @@ -2043,16 +2122,16 @@ CRUD operations for PlatformSiteAppLink records. ```typescript // List all platformSiteAppLink records -const items = await db.platformSiteAppLink.findMany({ select: { appIdentifier: true, createdAt: true, id: true, pathComponents: true, platform: true, sha256CertFingerprints: true, siteId: true, storeUrl: true, teamId: true, updatedAt: true, webcredentials: true } }).execute(); +const items = await db.platformSiteAppLink.findMany({ select: { appStoreIdentityId: true, createdAt: true, id: true, pathComponents: true, siteId: true, updatedAt: true, webcredentials: true } }).execute(); // Get one by id -const item = await db.platformSiteAppLink.findOne({ id: '', select: { appIdentifier: true, createdAt: true, id: true, pathComponents: true, platform: true, sha256CertFingerprints: true, siteId: true, storeUrl: true, teamId: true, updatedAt: true, webcredentials: true } }).execute(); +const item = await db.platformSiteAppLink.findOne({ id: '', select: { appStoreIdentityId: true, createdAt: true, id: true, pathComponents: true, siteId: true, updatedAt: true, webcredentials: true } }).execute(); // Create -const created = await db.platformSiteAppLink.create({ data: { appIdentifier: '', pathComponents: '', platform: '', sha256CertFingerprints: '', siteId: '', storeUrl: '', teamId: '', webcredentials: '' }, select: { id: true } }).execute(); +const created = await db.platformSiteAppLink.create({ data: { appStoreIdentityId: '', pathComponents: '', siteId: '', webcredentials: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformSiteAppLink.update({ where: { id: '' }, data: { appIdentifier: '' }, select: { id: true } }).execute(); +const updated = await db.platformSiteAppLink.update({ where: { id: '' }, data: { appStoreIdentityId: '' }, select: { id: true } }).execute(); // Delete const deleted = await db.platformSiteAppLink.delete({ where: { id: '' } }).execute(); @@ -2069,6 +2148,7 @@ CRUD operations for PlatformSite records. | `activeCommitId` | UUID | Yes | | `bucketId` | UUID | Yes | | `createdAt` | Datetime | No | +| `createdByPrincipal` | UUID | Yes | | `description` | String | Yes | | `id` | UUID | No | | `installationId` | UUID | Yes | @@ -2078,18 +2158,19 @@ CRUD operations for PlatformSite records. | `resourceId` | UUID | Yes | | `title` | String | Yes | | `updatedAt` | Datetime | No | +| `updatedByPrincipal` | UUID | Yes | **Operations:** ```typescript // List all platformSite records -const items = await db.platformSite.findMany({ select: { activeCommitId: true, bucketId: true, createdAt: true, description: true, id: true, installationId: true, installationMemberSlug: true, isPublished: true, name: true, resourceId: true, title: true, updatedAt: true } }).execute(); +const items = await db.platformSite.findMany({ select: { activeCommitId: true, bucketId: true, createdAt: true, createdByPrincipal: true, description: true, id: true, installationId: true, installationMemberSlug: true, isPublished: true, name: true, resourceId: true, title: true, updatedAt: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.platformSite.findOne({ id: '', select: { activeCommitId: true, bucketId: true, createdAt: true, description: true, id: true, installationId: true, installationMemberSlug: true, isPublished: true, name: true, resourceId: true, title: true, updatedAt: true } }).execute(); +const item = await db.platformSite.findOne({ id: '', select: { activeCommitId: true, bucketId: true, createdAt: true, createdByPrincipal: true, description: true, id: true, installationId: true, installationMemberSlug: true, isPublished: true, name: true, resourceId: true, title: true, updatedAt: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.platformSite.create({ data: { activeCommitId: '', bucketId: '', description: '', installationId: '', installationMemberSlug: '', isPublished: '', name: '', resourceId: '', title: '' }, select: { id: true } }).execute(); +const created = await db.platformSite.create({ data: { activeCommitId: '', bucketId: '', createdByPrincipal: '', description: '', installationId: '', installationMemberSlug: '', isPublished: '', name: '', resourceId: '', title: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformSite.update({ where: { id: '' }, data: { activeCommitId: '' }, select: { id: true } }).execute(); @@ -2111,6 +2192,7 @@ CRUD operations for PlatformSiteDeepLink records. | `fallbackUrl` | String | Yes | | `id` | UUID | No | | `metadata` | JSON | Yes | +| `pageId` | UUID | Yes | | `siteId` | UUID | Yes | | `slug` | String | Yes | | `updatedAt` | Datetime | No | @@ -2120,13 +2202,13 @@ CRUD operations for PlatformSiteDeepLink records. ```typescript // List all platformSiteDeepLink records -const items = await db.platformSiteDeepLink.findMany({ select: { appPath: true, createdAt: true, fallbackUrl: true, id: true, metadata: true, siteId: true, slug: true, updatedAt: true, webPath: true } }).execute(); +const items = await db.platformSiteDeepLink.findMany({ select: { appPath: true, createdAt: true, fallbackUrl: true, id: true, metadata: true, pageId: true, siteId: true, slug: true, updatedAt: true, webPath: true } }).execute(); // Get one by id -const item = await db.platformSiteDeepLink.findOne({ id: '', select: { appPath: true, createdAt: true, fallbackUrl: true, id: true, metadata: true, siteId: true, slug: true, updatedAt: true, webPath: true } }).execute(); +const item = await db.platformSiteDeepLink.findOne({ id: '', select: { appPath: true, createdAt: true, fallbackUrl: true, id: true, metadata: true, pageId: true, siteId: true, slug: true, updatedAt: true, webPath: true } }).execute(); // Create -const created = await db.platformSiteDeepLink.create({ data: { appPath: '', fallbackUrl: '', metadata: '', siteId: '', slug: '', webPath: '' }, select: { id: true } }).execute(); +const created = await db.platformSiteDeepLink.create({ data: { appPath: '', fallbackUrl: '', metadata: '', pageId: '', siteId: '', slug: '', webPath: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformSiteDeepLink.update({ where: { id: '' }, data: { appPath: '' }, select: { id: true } }).execute(); @@ -2187,6 +2269,7 @@ CRUD operations for PlatformSiteMetadatum records. | `logo` | ConstructiveInternalTypeImage | Yes | | `ogImage` | ConstructiveInternalTypeImage | Yes | | `robots` | String | Yes | +| `robotsSeededFrom` | JSON | Yes | | `siteId` | UUID | Yes | | `storeId` | UUID | Yes | | `title` | String | Yes | @@ -2196,13 +2279,13 @@ CRUD operations for PlatformSiteMetadatum records. ```typescript // List all platformSiteMetadatum records -const items = await db.platformSiteMetadatum.findMany({ select: { appleTouchIcon: true, canonicalUrl: true, commitId: true, createdAt: true, description: true, favicon: true, id: true, logo: true, ogImage: true, robots: true, siteId: true, storeId: true, title: true, updatedAt: true } }).execute(); +const items = await db.platformSiteMetadatum.findMany({ select: { appleTouchIcon: true, canonicalUrl: true, commitId: true, createdAt: true, description: true, favicon: true, id: true, logo: true, ogImage: true, robots: true, robotsSeededFrom: true, siteId: true, storeId: true, title: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.platformSiteMetadatum.findOne({ id: '', select: { appleTouchIcon: true, canonicalUrl: true, commitId: true, createdAt: true, description: true, favicon: true, id: true, logo: true, ogImage: true, robots: true, siteId: true, storeId: true, title: true, updatedAt: true } }).execute(); +const item = await db.platformSiteMetadatum.findOne({ id: '', select: { appleTouchIcon: true, canonicalUrl: true, commitId: true, createdAt: true, description: true, favicon: true, id: true, logo: true, ogImage: true, robots: true, robotsSeededFrom: true, siteId: true, storeId: true, title: true, updatedAt: true } }).execute(); // Create -const created = await db.platformSiteMetadatum.create({ data: { appleTouchIcon: '', canonicalUrl: '', commitId: '', description: '', favicon: '', logo: '', ogImage: '', robots: '', siteId: '', storeId: '', title: '' }, select: { id: true } }).execute(); +const created = await db.platformSiteMetadatum.create({ data: { appleTouchIcon: '', canonicalUrl: '', commitId: '', description: '', favicon: '', logo: '', ogImage: '', robots: '', robotsSeededFrom: '', siteId: '', storeId: '', title: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformSiteMetadatum.update({ where: { id: '' }, data: { appleTouchIcon: '' }, select: { id: true } }).execute(); @@ -2247,6 +2330,41 @@ const updated = await db.platformSiteModule.update({ where: { id: '' }, da const deleted = await db.platformSiteModule.delete({ where: { id: '' } }).execute(); ``` +### `db.platformSiteRelease` + +CRUD operations for PlatformSiteRelease records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `commitId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `id` | UUID | No | +| `manifest` | JSON | Yes | +| `siteId` | UUID | Yes | +| `storeId` | UUID | Yes | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all platformSiteRelease records +const items = await db.platformSiteRelease.findMany({ select: { commitId: true, createdAt: true, id: true, manifest: true, siteId: true, storeId: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.platformSiteRelease.findOne({ id: '', select: { commitId: true, createdAt: true, id: true, manifest: true, siteId: true, storeId: true, updatedAt: true } }).execute(); + +// Create +const created = await db.platformSiteRelease.create({ data: { commitId: '', manifest: '', siteId: '', storeId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformSiteRelease.update({ where: { id: '' }, data: { commitId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformSiteRelease.delete({ where: { id: '' } }).execute(); +``` + ### `db.platformSiteTheme` CRUD operations for PlatformSiteTheme records. @@ -2329,6 +2447,7 @@ CRUD operations for Policy records. | Field | Type | Editable | |-------|------|----------| | `category` | ObjectCategory | Yes | +| `columnRefs` | String | Yes | | `createdAt` | Datetime | No | | `data` | JSON | Yes | | `databaseId` | UUID | Yes | @@ -2351,13 +2470,13 @@ CRUD operations for Policy records. ```typescript // List all policy records -const items = await db.policy.findMany({ select: { category: true, createdAt: true, data: true, databaseId: true, derivedFromPolicyId: true, derivedFromTableId: true, disabled: true, granteeName: true, id: true, name: true, permissive: true, policyType: true, privilege: true, smartTags: true, tableId: true, tags: true, updatedAt: true, withCheck: true } }).execute(); +const items = await db.policy.findMany({ select: { category: true, columnRefs: true, createdAt: true, data: true, databaseId: true, derivedFromPolicyId: true, derivedFromTableId: true, disabled: true, granteeName: true, id: true, name: true, permissive: true, policyType: true, privilege: true, smartTags: true, tableId: true, tags: true, updatedAt: true, withCheck: true } }).execute(); // Get one by id -const item = await db.policy.findOne({ id: '', select: { category: true, createdAt: true, data: true, databaseId: true, derivedFromPolicyId: true, derivedFromTableId: true, disabled: true, granteeName: true, id: true, name: true, permissive: true, policyType: true, privilege: true, smartTags: true, tableId: true, tags: true, updatedAt: true, withCheck: true } }).execute(); +const item = await db.policy.findOne({ id: '', select: { category: true, columnRefs: true, createdAt: true, data: true, databaseId: true, derivedFromPolicyId: true, derivedFromTableId: true, disabled: true, granteeName: true, id: true, name: true, permissive: true, policyType: true, privilege: true, smartTags: true, tableId: true, tags: true, updatedAt: true, withCheck: true } }).execute(); // Create -const created = await db.policy.create({ data: { category: '', data: '', databaseId: '', derivedFromPolicyId: '', derivedFromTableId: '', disabled: '', granteeName: '', name: '', permissive: '', policyType: '', privilege: '', smartTags: '', tableId: '', tags: '', withCheck: '' }, select: { id: true } }).execute(); +const created = await db.policy.create({ data: { category: '', columnRefs: '', data: '', databaseId: '', derivedFromPolicyId: '', derivedFromTableId: '', disabled: '', granteeName: '', name: '', permissive: '', policyType: '', privilege: '', smartTags: '', tableId: '', tags: '', withCheck: '' }, select: { id: true } }).execute(); // Update const updated = await db.policy.update({ where: { id: '' }, data: { category: '' }, select: { id: true } }).execute(); @@ -2447,6 +2566,44 @@ const updated = await db.pubkeySetting.update({ where: { id: '' }, data: { const deleted = await db.pubkeySetting.delete({ where: { id: '' } }).execute(); ``` +### `db.redirect` + +CRUD operations for Redirect records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `createdAt` | Datetime | No | +| `databaseId` | UUID | Yes | +| `id` | UUID | No | +| `name` | String | Yes | +| `preservePath` | Boolean | Yes | +| `preserveQuery` | Boolean | Yes | +| `statusCode` | Int | Yes | +| `toHost` | String | Yes | +| `toPath` | String | Yes | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all redirect records +const items = await db.redirect.findMany({ select: { createdAt: true, databaseId: true, id: true, name: true, preservePath: true, preserveQuery: true, statusCode: true, toHost: true, toPath: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.redirect.findOne({ id: '', select: { createdAt: true, databaseId: true, id: true, name: true, preservePath: true, preserveQuery: true, statusCode: true, toHost: true, toPath: true, updatedAt: true } }).execute(); + +// Create +const created = await db.redirect.create({ data: { databaseId: '', name: '', preservePath: '', preserveQuery: '', statusCode: '', toHost: '', toPath: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.redirect.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.redirect.delete({ where: { id: '' } }).execute(); +``` + ### `db.rlsSetting` CRUD operations for RlsSetting records. @@ -2501,9 +2658,11 @@ CRUD operations for RouteBinding records. | `method` | String | Yes | | `path` | String | Yes | | `priority` | Int | Yes | +| `servingSiteId` | UUID | Yes | | `targetApiId` | UUID | Yes | | `targetBucketId` | UUID | Yes | | `targetFunctionId` | UUID | Yes | +| `targetRedirectId` | UUID | Yes | | `targetServiceId` | UUID | Yes | | `targetSiteId` | UUID | Yes | | `updatedAt` | Datetime | No | @@ -2512,13 +2671,13 @@ CRUD operations for RouteBinding records. ```typescript // List all routeBinding records -const items = await db.routeBinding.findMany({ select: { domainId: true, id: true, isActive: true, method: true, path: true, priority: true, targetApiId: true, targetBucketId: true, targetFunctionId: true, targetServiceId: true, targetSiteId: true, updatedAt: true } }).execute(); +const items = await db.routeBinding.findMany({ select: { domainId: true, id: true, isActive: true, method: true, path: true, priority: true, servingSiteId: true, targetApiId: true, targetBucketId: true, targetFunctionId: true, targetRedirectId: true, targetServiceId: true, targetSiteId: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.routeBinding.findOne({ id: '', select: { domainId: true, id: true, isActive: true, method: true, path: true, priority: true, targetApiId: true, targetBucketId: true, targetFunctionId: true, targetServiceId: true, targetSiteId: true, updatedAt: true } }).execute(); +const item = await db.routeBinding.findOne({ id: '', select: { domainId: true, id: true, isActive: true, method: true, path: true, priority: true, servingSiteId: true, targetApiId: true, targetBucketId: true, targetFunctionId: true, targetRedirectId: true, targetServiceId: true, targetSiteId: true, updatedAt: true } }).execute(); // Create -const created = await db.routeBinding.create({ data: { domainId: '', isActive: '', method: '', path: '', priority: '', targetApiId: '', targetBucketId: '', targetFunctionId: '', targetServiceId: '', targetSiteId: '' }, select: { id: true } }).execute(); +const created = await db.routeBinding.create({ data: { domainId: '', isActive: '', method: '', path: '', priority: '', servingSiteId: '', targetApiId: '', targetBucketId: '', targetFunctionId: '', targetRedirectId: '', targetServiceId: '', targetSiteId: '' }, select: { id: true } }).execute(); // Update const updated = await db.routeBinding.update({ where: { id: '' }, data: { domainId: '' }, select: { id: true } }).execute(); @@ -2535,6 +2694,7 @@ CRUD operations for Route records. | Field | Type | Editable | |-------|------|----------| +| `anonymous` | Boolean | Yes | | `config` | JSON | Yes | | `createdAt` | Datetime | No | | `databaseId` | UUID | Yes | @@ -2543,10 +2703,13 @@ CRUD operations for Route records. | `isActive` | Boolean | Yes | | `method` | String | Yes | | `path` | String | Yes | +| `previewRef` | String | Yes | | `priority` | Int | Yes | +| `servingSiteId` | UUID | Yes | | `targetApiId` | UUID | Yes | | `targetBucketId` | UUID | Yes | | `targetFunctionId` | UUID | Yes | +| `targetRedirectId` | UUID | Yes | | `targetServiceId` | UUID | Yes | | `targetSiteId` | UUID | Yes | | `updatedAt` | Datetime | No | @@ -2555,16 +2718,16 @@ CRUD operations for Route records. ```typescript // List all route records -const items = await db.route.findMany({ select: { config: true, createdAt: true, databaseId: true, domainId: true, id: true, isActive: true, method: true, path: true, priority: true, targetApiId: true, targetBucketId: true, targetFunctionId: true, targetServiceId: true, targetSiteId: true, updatedAt: true } }).execute(); +const items = await db.route.findMany({ select: { anonymous: true, config: true, createdAt: true, databaseId: true, domainId: true, id: true, isActive: true, method: true, path: true, previewRef: true, priority: true, servingSiteId: true, targetApiId: true, targetBucketId: true, targetFunctionId: true, targetRedirectId: true, targetServiceId: true, targetSiteId: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.route.findOne({ id: '', select: { config: true, createdAt: true, databaseId: true, domainId: true, id: true, isActive: true, method: true, path: true, priority: true, targetApiId: true, targetBucketId: true, targetFunctionId: true, targetServiceId: true, targetSiteId: true, updatedAt: true } }).execute(); +const item = await db.route.findOne({ id: '', select: { anonymous: true, config: true, createdAt: true, databaseId: true, domainId: true, id: true, isActive: true, method: true, path: true, previewRef: true, priority: true, servingSiteId: true, targetApiId: true, targetBucketId: true, targetFunctionId: true, targetRedirectId: true, targetServiceId: true, targetSiteId: true, updatedAt: true } }).execute(); // Create -const created = await db.route.create({ data: { config: '', databaseId: '', domainId: '', isActive: '', method: '', path: '', priority: '', targetApiId: '', targetBucketId: '', targetFunctionId: '', targetServiceId: '', targetSiteId: '' }, select: { id: true } }).execute(); +const created = await db.route.create({ data: { anonymous: '', config: '', databaseId: '', domainId: '', isActive: '', method: '', path: '', previewRef: '', priority: '', servingSiteId: '', targetApiId: '', targetBucketId: '', targetFunctionId: '', targetRedirectId: '', targetServiceId: '', targetSiteId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.route.update({ where: { id: '' }, data: { config: '' }, select: { id: true } }).execute(); +const updated = await db.route.update({ where: { id: '' }, data: { anonymous: '' }, select: { id: true } }).execute(); // Delete const deleted = await db.route.delete({ where: { id: '' } }).execute(); @@ -2653,16 +2816,12 @@ CRUD operations for SiteAppLink records. | Field | Type | Editable | |-------|------|----------| -| `appIdentifier` | String | Yes | +| `appStoreIdentityId` | UUID | Yes | | `createdAt` | Datetime | No | | `databaseId` | UUID | Yes | | `id` | UUID | No | | `pathComponents` | String | Yes | -| `platform` | String | Yes | -| `sha256CertFingerprints` | String | Yes | | `siteId` | UUID | Yes | -| `storeUrl` | String | Yes | -| `teamId` | String | Yes | | `updatedAt` | Datetime | No | | `webcredentials` | Boolean | Yes | @@ -2670,16 +2829,16 @@ CRUD operations for SiteAppLink records. ```typescript // List all siteAppLink records -const items = await db.siteAppLink.findMany({ select: { appIdentifier: true, createdAt: true, databaseId: true, id: true, pathComponents: true, platform: true, sha256CertFingerprints: true, siteId: true, storeUrl: true, teamId: true, updatedAt: true, webcredentials: true } }).execute(); +const items = await db.siteAppLink.findMany({ select: { appStoreIdentityId: true, createdAt: true, databaseId: true, id: true, pathComponents: true, siteId: true, updatedAt: true, webcredentials: true } }).execute(); // Get one by id -const item = await db.siteAppLink.findOne({ id: '', select: { appIdentifier: true, createdAt: true, databaseId: true, id: true, pathComponents: true, platform: true, sha256CertFingerprints: true, siteId: true, storeUrl: true, teamId: true, updatedAt: true, webcredentials: true } }).execute(); +const item = await db.siteAppLink.findOne({ id: '', select: { appStoreIdentityId: true, createdAt: true, databaseId: true, id: true, pathComponents: true, siteId: true, updatedAt: true, webcredentials: true } }).execute(); // Create -const created = await db.siteAppLink.create({ data: { appIdentifier: '', databaseId: '', pathComponents: '', platform: '', sha256CertFingerprints: '', siteId: '', storeUrl: '', teamId: '', webcredentials: '' }, select: { id: true } }).execute(); +const created = await db.siteAppLink.create({ data: { appStoreIdentityId: '', databaseId: '', pathComponents: '', siteId: '', webcredentials: '' }, select: { id: true } }).execute(); // Update -const updated = await db.siteAppLink.update({ where: { id: '' }, data: { appIdentifier: '' }, select: { id: true } }).execute(); +const updated = await db.siteAppLink.update({ where: { id: '' }, data: { appStoreIdentityId: '' }, select: { id: true } }).execute(); // Delete const deleted = await db.siteAppLink.delete({ where: { id: '' } }).execute(); @@ -2696,6 +2855,7 @@ CRUD operations for Site records. | `activeCommitId` | UUID | Yes | | `bucketId` | UUID | Yes | | `createdAt` | Datetime | No | +| `createdByPrincipal` | UUID | Yes | | `databaseId` | UUID | Yes | | `description` | String | Yes | | `id` | UUID | No | @@ -2706,18 +2866,19 @@ CRUD operations for Site records. | `resourceId` | UUID | Yes | | `title` | String | Yes | | `updatedAt` | Datetime | No | +| `updatedByPrincipal` | UUID | Yes | **Operations:** ```typescript // List all site records -const items = await db.site.findMany({ select: { activeCommitId: true, bucketId: true, createdAt: true, databaseId: true, description: true, id: true, installationId: true, installationMemberSlug: true, isPublished: true, name: true, resourceId: true, title: true, updatedAt: true } }).execute(); +const items = await db.site.findMany({ select: { activeCommitId: true, bucketId: true, createdAt: true, createdByPrincipal: true, databaseId: true, description: true, id: true, installationId: true, installationMemberSlug: true, isPublished: true, name: true, resourceId: true, title: true, updatedAt: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.site.findOne({ id: '', select: { activeCommitId: true, bucketId: true, createdAt: true, databaseId: true, description: true, id: true, installationId: true, installationMemberSlug: true, isPublished: true, name: true, resourceId: true, title: true, updatedAt: true } }).execute(); +const item = await db.site.findOne({ id: '', select: { activeCommitId: true, bucketId: true, createdAt: true, createdByPrincipal: true, databaseId: true, description: true, id: true, installationId: true, installationMemberSlug: true, isPublished: true, name: true, resourceId: true, title: true, updatedAt: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.site.create({ data: { activeCommitId: '', bucketId: '', databaseId: '', description: '', installationId: '', installationMemberSlug: '', isPublished: '', name: '', resourceId: '', title: '' }, select: { id: true } }).execute(); +const created = await db.site.create({ data: { activeCommitId: '', bucketId: '', createdByPrincipal: '', databaseId: '', description: '', installationId: '', installationMemberSlug: '', isPublished: '', name: '', resourceId: '', title: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update const updated = await db.site.update({ where: { id: '' }, data: { activeCommitId: '' }, select: { id: true } }).execute(); @@ -2740,6 +2901,7 @@ CRUD operations for SiteDeepLink records. | `fallbackUrl` | String | Yes | | `id` | UUID | No | | `metadata` | JSON | Yes | +| `pageId` | UUID | Yes | | `siteId` | UUID | Yes | | `slug` | String | Yes | | `updatedAt` | Datetime | No | @@ -2749,13 +2911,13 @@ CRUD operations for SiteDeepLink records. ```typescript // List all siteDeepLink records -const items = await db.siteDeepLink.findMany({ select: { appPath: true, createdAt: true, databaseId: true, fallbackUrl: true, id: true, metadata: true, siteId: true, slug: true, updatedAt: true, webPath: true } }).execute(); +const items = await db.siteDeepLink.findMany({ select: { appPath: true, createdAt: true, databaseId: true, fallbackUrl: true, id: true, metadata: true, pageId: true, siteId: true, slug: true, updatedAt: true, webPath: true } }).execute(); // Get one by id -const item = await db.siteDeepLink.findOne({ id: '', select: { appPath: true, createdAt: true, databaseId: true, fallbackUrl: true, id: true, metadata: true, siteId: true, slug: true, updatedAt: true, webPath: true } }).execute(); +const item = await db.siteDeepLink.findOne({ id: '', select: { appPath: true, createdAt: true, databaseId: true, fallbackUrl: true, id: true, metadata: true, pageId: true, siteId: true, slug: true, updatedAt: true, webPath: true } }).execute(); // Create -const created = await db.siteDeepLink.create({ data: { appPath: '', databaseId: '', fallbackUrl: '', metadata: '', siteId: '', slug: '', webPath: '' }, select: { id: true } }).execute(); +const created = await db.siteDeepLink.create({ data: { appPath: '', databaseId: '', fallbackUrl: '', metadata: '', pageId: '', siteId: '', slug: '', webPath: '' }, select: { id: true } }).execute(); // Update const updated = await db.siteDeepLink.update({ where: { id: '' }, data: { appPath: '' }, select: { id: true } }).execute(); @@ -2818,6 +2980,7 @@ CRUD operations for SiteMetadatum records. | `logo` | ConstructiveInternalTypeImage | Yes | | `ogImage` | ConstructiveInternalTypeImage | Yes | | `robots` | String | Yes | +| `robotsSeededFrom` | JSON | Yes | | `siteId` | UUID | Yes | | `storeId` | UUID | Yes | | `title` | String | Yes | @@ -2827,13 +2990,13 @@ CRUD operations for SiteMetadatum records. ```typescript // List all siteMetadatum records -const items = await db.siteMetadatum.findMany({ select: { appleTouchIcon: true, canonicalUrl: true, commitId: true, createdAt: true, databaseId: true, description: true, favicon: true, id: true, logo: true, ogImage: true, robots: true, siteId: true, storeId: true, title: true, updatedAt: true } }).execute(); +const items = await db.siteMetadatum.findMany({ select: { appleTouchIcon: true, canonicalUrl: true, commitId: true, createdAt: true, databaseId: true, description: true, favicon: true, id: true, logo: true, ogImage: true, robots: true, robotsSeededFrom: true, siteId: true, storeId: true, title: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.siteMetadatum.findOne({ id: '', select: { appleTouchIcon: true, canonicalUrl: true, commitId: true, createdAt: true, databaseId: true, description: true, favicon: true, id: true, logo: true, ogImage: true, robots: true, siteId: true, storeId: true, title: true, updatedAt: true } }).execute(); +const item = await db.siteMetadatum.findOne({ id: '', select: { appleTouchIcon: true, canonicalUrl: true, commitId: true, createdAt: true, databaseId: true, description: true, favicon: true, id: true, logo: true, ogImage: true, robots: true, robotsSeededFrom: true, siteId: true, storeId: true, title: true, updatedAt: true } }).execute(); // Create -const created = await db.siteMetadatum.create({ data: { appleTouchIcon: '', canonicalUrl: '', commitId: '', databaseId: '', description: '', favicon: '', logo: '', ogImage: '', robots: '', siteId: '', storeId: '', title: '' }, select: { id: true } }).execute(); +const created = await db.siteMetadatum.create({ data: { appleTouchIcon: '', canonicalUrl: '', commitId: '', databaseId: '', description: '', favicon: '', logo: '', ogImage: '', robots: '', robotsSeededFrom: '', siteId: '', storeId: '', title: '' }, select: { id: true } }).execute(); // Update const updated = await db.siteMetadatum.update({ where: { id: '' }, data: { appleTouchIcon: '' }, select: { id: true } }).execute(); @@ -2879,6 +3042,42 @@ const updated = await db.siteModule.update({ where: { id: '' }, data: { da const deleted = await db.siteModule.delete({ where: { id: '' } }).execute(); ``` +### `db.siteRelease` + +CRUD operations for SiteRelease records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `commitId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `databaseId` | UUID | Yes | +| `id` | UUID | No | +| `manifest` | JSON | Yes | +| `siteId` | UUID | Yes | +| `storeId` | UUID | Yes | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all siteRelease records +const items = await db.siteRelease.findMany({ select: { commitId: true, createdAt: true, databaseId: true, id: true, manifest: true, siteId: true, storeId: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.siteRelease.findOne({ id: '', select: { commitId: true, createdAt: true, databaseId: true, id: true, manifest: true, siteId: true, storeId: true, updatedAt: true } }).execute(); + +// Create +const created = await db.siteRelease.create({ data: { commitId: '', databaseId: '', manifest: '', siteId: '', storeId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.siteRelease.update({ where: { id: '' }, data: { commitId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.siteRelease.delete({ where: { id: '' } }).execute(); +``` + ### `db.siteTheme` CRUD operations for SiteTheme records. @@ -2995,6 +3194,47 @@ const updated = await db.spatialRelation.update({ where: { id: '' }, data: const deleted = await db.spatialRelation.delete({ where: { id: '' } }).execute(); ``` +### `db.sqlAction` + +CRUD operations for SqlAction records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `actionId` | UUID | Yes | +| `actionName` | String | Yes | +| `actorId` | UUID | Yes | +| `content` | String | Yes | +| `createdAt` | Datetime | No | +| `databaseId` | UUID | Yes | +| `deploy` | String | Yes | +| `deps` | String | Yes | +| `id` | Int | No | +| `name` | String | Yes | +| `payload` | JSON | Yes | +| `revert` | String | Yes | +| `verify` | String | Yes | + +**Operations:** + +```typescript +// List all sqlAction records +const items = await db.sqlAction.findMany({ select: { actionId: true, actionName: true, actorId: true, content: true, createdAt: true, databaseId: true, deploy: true, deps: true, id: true, name: true, payload: true, revert: true, verify: true } }).execute(); + +// Get one by id +const item = await db.sqlAction.findOne({ id: '', select: { actionId: true, actionName: true, actorId: true, content: true, createdAt: true, databaseId: true, deploy: true, deps: true, id: true, name: true, payload: true, revert: true, verify: true } }).execute(); + +// Create +const created = await db.sqlAction.create({ data: { actionId: '', actionName: '', actorId: '', content: '', databaseId: '', deploy: '', deps: '', name: '', payload: '', revert: '', verify: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.sqlAction.update({ where: { id: '' }, data: { actionId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.sqlAction.delete({ where: { id: '' } }).execute(); +``` + ### `db.tableBehavior` CRUD operations for TableBehavior records. @@ -3131,25 +3371,31 @@ CRUD operations for Trigger records. | `createdAt` | Datetime | No | | `databaseId` | UUID | Yes | | `event` | String | Yes | +| `events` | String | Yes | +| `forEachRow` | Boolean | Yes | +| `functionId` | UUID | Yes | | `functionName` | String | Yes | | `id` | UUID | No | +| `kind` | String | Yes | | `name` | String | Yes | | `smartTags` | JSON | Yes | | `tableId` | UUID | Yes | | `tags` | String | Yes | +| `timing` | String | Yes | | `updatedAt` | Datetime | No | +| `whenAst` | JSON | Yes | **Operations:** ```typescript // List all trigger records -const items = await db.trigger.findMany({ select: { category: true, createdAt: true, databaseId: true, event: true, functionName: true, id: true, name: true, smartTags: true, tableId: true, tags: true, updatedAt: true } }).execute(); +const items = await db.trigger.findMany({ select: { category: true, createdAt: true, databaseId: true, event: true, events: true, forEachRow: true, functionId: true, functionName: true, id: true, kind: true, name: true, smartTags: true, tableId: true, tags: true, timing: true, updatedAt: true, whenAst: true } }).execute(); // Get one by id -const item = await db.trigger.findOne({ id: '', select: { category: true, createdAt: true, databaseId: true, event: true, functionName: true, id: true, name: true, smartTags: true, tableId: true, tags: true, updatedAt: true } }).execute(); +const item = await db.trigger.findOne({ id: '', select: { category: true, createdAt: true, databaseId: true, event: true, events: true, forEachRow: true, functionId: true, functionName: true, id: true, kind: true, name: true, smartTags: true, tableId: true, tags: true, timing: true, updatedAt: true, whenAst: true } }).execute(); // Create -const created = await db.trigger.create({ data: { category: '', databaseId: '', event: '', functionName: '', name: '', smartTags: '', tableId: '', tags: '' }, select: { id: true } }).execute(); +const created = await db.trigger.create({ data: { category: '', databaseId: '', event: '', events: '', forEachRow: '', functionId: '', functionName: '', kind: '', name: '', smartTags: '', tableId: '', tags: '', timing: '', whenAst: '' }, select: { id: true } }).execute(); // Update const updated = await db.trigger.update({ where: { id: '' }, data: { category: '' }, select: { id: true } }).execute(); @@ -3534,166 +3780,489 @@ applyRegistryDefaults const result = await db.query.applyRegistryDefaults({ data: '', nodeType: '' }).execute(); ``` -### `db.query.resolveDeepLink` +### `db.query.getSitePreviewCommit` -resolveDeepLink +getSitePreviewCommit - **Type:** query - **Arguments:** | Argument | Type | |----------|------| - | `linkSlug` | String | + | `targetName` | String | | `targetSiteId` | UUID | ```typescript -const result = await db.query.resolveDeepLink({ linkSlug: '', targetSiteId: '' }).execute(); +const result = await db.query.getSitePreviewCommit({ targetName: '', targetSiteId: '' }).execute(); ``` -### `db.query.resolveHttpRoute` +### `db.query.getSiteReleaseManifest` -resolveHttpRoute +getSiteReleaseManifest - **Type:** query - **Arguments:** | Argument | Type | |----------|------| - | `requestHost` | String | - | `requestMethod` | String | - | `requestPath` | String | + | `targetCommitId` | UUID | + | `targetSiteId` | UUID | ```typescript -const result = await db.query.resolveHttpRoute({ requestHost: '', requestMethod: '', requestPath: '' }).execute(); +const result = await db.query.getSiteReleaseManifest({ targetCommitId: '', targetSiteId: '' }).execute(); ``` -### `db.query.resolveRoute` +### `db.query.pagePublished` -resolveRoute +pagePublished - **Type:** query - **Arguments:** | Argument | Type | |----------|------| - | `requestHost` | String | - | `requestMethod` | String | - | `requestPath` | String | + | `pageSlug` | String | + | `targetSiteId` | UUID | ```typescript -const result = await db.query.resolveRoute({ requestHost: '', requestMethod: '', requestPath: '' }).execute(); +const result = await db.query.pagePublished({ pageSlug: '', targetSiteId: '' }).execute(); ``` -### `db.query.resolveSiteAppLinks` +### `db.query.platformGetSitePreviewCommit` -resolveSiteAppLinks +platformGetSitePreviewCommit - **Type:** query - **Arguments:** | Argument | Type | |----------|------| + | `targetName` | String | | `targetSiteId` | UUID | ```typescript -const result = await db.query.resolveSiteAppLinks({ targetSiteId: '' }).execute(); +const result = await db.query.platformGetSitePreviewCommit({ targetName: '', targetSiteId: '' }).execute(); ``` -### `db.mutation.applyRls` +### `db.query.platformGetSiteReleaseManifest` -applyRls +platformGetSiteReleaseManifest -- **Type:** mutation +- **Type:** query - **Arguments:** | Argument | Type | |----------|------| - | `input` | ApplyRlsInput (required) | + | `targetCommitId` | UUID | + | `targetSiteId` | UUID | ```typescript -const result = await db.mutation.applyRls({ input: '' }).execute(); +const result = await db.query.platformGetSiteReleaseManifest({ targetCommitId: '', targetSiteId: '' }).execute(); ``` -### `db.mutation.appsInstallApp` +### `db.query.platformPagePublished` -appsInstallApp +platformPagePublished -- **Type:** mutation +- **Type:** query - **Arguments:** | Argument | Type | |----------|------| - | `input` | AppsInstallAppInput (required) | + | `pageSlug` | String | + | `targetSiteId` | UUID | ```typescript -const result = await db.mutation.appsInstallApp({ input: '' }).execute(); +const result = await db.query.platformPagePublished({ pageSlug: '', targetSiteId: '' }).execute(); ``` -### `db.mutation.appsUninstallApp` +### `db.query.platformSitesDeepLinkUrl` -appsUninstallApp +platformSitesDeepLinkUrl -- **Type:** mutation +- **Type:** query - **Arguments:** | Argument | Type | |----------|------| - | `input` | AppsUninstallAppInput (required) | + | `linkSlug` | String | + | `targetSiteId` | UUID | ```typescript -const result = await db.mutation.appsUninstallApp({ input: { targetAppId: '' } }).execute(); +const result = await db.query.platformSitesDeepLinkUrl({ linkSlug: '', targetSiteId: '' }).execute(); ``` -### `db.mutation.appsUpgradeApp` +### `db.query.platformSitesSiteOrigin` -appsUpgradeApp +platformSitesSiteOrigin -- **Type:** mutation +- **Type:** query - **Arguments:** | Argument | Type | |----------|------| - | `input` | AppsUpgradeAppInput (required) | + | `targetSiteId` | UUID | ```typescript -const result = await db.mutation.appsUpgradeApp({ input: { newParams: '', targetAppId: '' } }).execute(); +const result = await db.query.platformSitesSiteOrigin({ targetSiteId: '' }).execute(); ``` -### `db.mutation.domainsAssignSubdomain` +### `db.query.platformVerifySitePreviewToken` -domainsAssignSubdomain +platformVerifySitePreviewToken -- **Type:** mutation +- **Type:** query - **Arguments:** | Argument | Type | |----------|------| - | `input` | DomainsAssignSubdomainInput (required) | + | `siteId` | UUID | + | `token` | String | ```typescript -const result = await db.mutation.domainsAssignSubdomain({ input: { apex: '', label: '', maxAttempts: '' } }).execute(); +const result = await db.query.platformVerifySitePreviewToken({ siteId: '', token: '' }).execute(); ``` -### `db.mutation.platformDomainsAssignSubdomain` +### `db.query.resolveDeepLink` -platformDomainsAssignSubdomain +resolveDeepLink -- **Type:** mutation +- **Type:** query - **Arguments:** | Argument | Type | |----------|------| - | `input` | PlatformDomainsAssignSubdomainInput (required) | + | `linkSlug` | String | + | `targetSiteId` | UUID | ```typescript -const result = await db.mutation.platformDomainsAssignSubdomain({ input: { apex: '', label: '', maxAttempts: '' } }).execute(); +const result = await db.query.resolveDeepLink({ linkSlug: '', targetSiteId: '' }).execute(); ``` -### `db.mutation.platformSitesProvisionStaticSite` +### `db.query.resolveRoute` -platformSitesProvisionStaticSite +resolveRoute -- **Type:** mutation +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `requestHost` | String | + | `requestMethod` | String | + | `requestPath` | String | + +```typescript +const result = await db.query.resolveRoute({ requestHost: '', requestMethod: '', requestPath: '' }).execute(); +``` + +### `db.query.resolveSiteAppLinks` + +resolveSiteAppLinks + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `targetSiteId` | UUID | + +```typescript +const result = await db.query.resolveSiteAppLinks({ targetSiteId: '' }).execute(); +``` + +### `db.query.sitesDeepLinkUrl` + +sitesDeepLinkUrl + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `linkSlug` | String | + | `targetSiteId` | UUID | + +```typescript +const result = await db.query.sitesDeepLinkUrl({ linkSlug: '', targetSiteId: '' }).execute(); +``` + +### `db.query.sitesSiteOrigin` + +sitesSiteOrigin + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `targetSiteId` | UUID | + +```typescript +const result = await db.query.sitesSiteOrigin({ targetSiteId: '' }).execute(); +``` + +### `db.query.verifySitePreviewToken` + +verifySitePreviewToken + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `siteId` | UUID | + | `token` | String | + +```typescript +const result = await db.query.verifySitePreviewToken({ siteId: '', token: '' }).execute(); +``` + +### `db.mutation.acceptDatabaseTransfer` + +acceptDatabaseTransfer + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | AcceptDatabaseTransferInput (required) | + +```typescript +const result = await db.mutation.acceptDatabaseTransfer({ input: { transferId: '' } }).execute(); +``` + +### `db.mutation.applyRls` + +applyRls + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | ApplyRlsInput (required) | + +```typescript +const result = await db.mutation.applyRls({ input: '' }).execute(); +``` + +### `db.mutation.cancelDatabaseTransfer` + +cancelDatabaseTransfer + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | CancelDatabaseTransferInput (required) | + +```typescript +const result = await db.mutation.cancelDatabaseTransfer({ input: { transferId: '' } }).execute(); +``` + +### `db.mutation.deleteSitePreview` + +deleteSitePreview + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | DeleteSitePreviewInput (required) | + +```typescript +const result = await db.mutation.deleteSitePreview({ input: { targetName: '', targetSiteId: '' } }).execute(); +``` + +### `db.mutation.domainsAssignSubdomain` + +domainsAssignSubdomain + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | DomainsAssignSubdomainInput (required) | + +```typescript +const result = await db.mutation.domainsAssignSubdomain({ input: { apex: '', label: '', maxAttempts: '' } }).execute(); +``` + +### `db.mutation.mintSitePreviewToken` + +mintSitePreviewToken + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | MintSitePreviewTokenInput (required) | + +```typescript +const result = await db.mutation.mintSitePreviewToken({ input: { siteId: '', target: '', targetKind: '', ttlSeconds: '' } }).execute(); +``` + +### `db.mutation.pagesInstallPages` + +pagesInstallPages + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | PagesInstallPagesInput (required) | + +```typescript +const result = await db.mutation.pagesInstallPages({ input: { entityId: '', pagesPreset: '', siteId: '' } }).execute(); +``` + +### `db.mutation.platformDeleteSitePreview` + +platformDeleteSitePreview + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | PlatformDeleteSitePreviewInput (required) | + +```typescript +const result = await db.mutation.platformDeleteSitePreview({ input: { targetName: '', targetSiteId: '' } }).execute(); +``` + +### `db.mutation.platformDomainsAssignSubdomain` + +platformDomainsAssignSubdomain + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | PlatformDomainsAssignSubdomainInput (required) | + +```typescript +const result = await db.mutation.platformDomainsAssignSubdomain({ input: { apex: '', label: '', maxAttempts: '' } }).execute(); +``` + +### `db.mutation.platformMintSitePreviewToken` + +platformMintSitePreviewToken + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | PlatformMintSitePreviewTokenInput (required) | + +```typescript +const result = await db.mutation.platformMintSitePreviewToken({ input: { siteId: '', target: '', targetKind: '', ttlSeconds: '' } }).execute(); +``` + +### `db.mutation.platformPagesInstallPages` + +platformPagesInstallPages + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | PlatformPagesInstallPagesInput (required) | + +```typescript +const result = await db.mutation.platformPagesInstallPages({ input: { entityId: '', pagesPreset: '', siteId: '' } }).execute(); +``` + +### `db.mutation.platformProvisionSitePreview` + +platformProvisionSitePreview + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | PlatformProvisionSitePreviewInput (required) | + +```typescript +const result = await db.mutation.platformProvisionSitePreview({ input: { apex: '', commitId: '', name: '', siteId: '' } }).execute(); +``` + +### `db.mutation.platformSetSitePreview` + +platformSetSitePreview + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | PlatformSetSitePreviewInput (required) | + +```typescript +const result = await db.mutation.platformSetSitePreview({ input: { targetCommitId: '', targetName: '', targetSiteId: '' } }).execute(); +``` + +### `db.mutation.platformSiteMetadataInstallRobots` + +platformSiteMetadataInstallRobots + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | PlatformSiteMetadataInstallRobotsInput (required) | + +```typescript +const result = await db.mutation.platformSiteMetadataInstallRobots({ input: { entityId: '', robotsPreset: '', siteId: '' } }).execute(); +``` + +### `db.mutation.platformSitesInstallContentPreset` + +platformSitesInstallContentPreset + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | PlatformSitesInstallContentPresetInput (required) | + +```typescript +const result = await db.mutation.platformSitesInstallContentPreset({ input: { entityId: '', presetKind: '', presetSlug: '', siteId: '' } }).execute(); +``` + +### `db.mutation.platformSitesInstallMantra` + +platformSitesInstallMantra + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | PlatformSitesInstallMantraInput (required) | + +```typescript +const result = await db.mutation.platformSitesInstallMantra({ input: { entityId: '', routePreset: '', siteId: '' } }).execute(); +``` + +### `db.mutation.platformSitesProvisionStaticSite` + +platformSitesProvisionStaticSite + +- **Type:** mutation - **Arguments:** | Argument | Type | @@ -3706,10 +4275,11 @@ const result = await db.mutation.platformSitesProvisionStaticSite({ input: '', ownerId: '' } }).execute(); ``` +### `db.mutation.provisionSitePreview` + +provisionSitePreview + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | ProvisionSitePreviewInput (required) | + +```typescript +const result = await db.mutation.provisionSitePreview({ input: { apex: '', commitId: '', name: '', siteId: '' } }).execute(); +``` + +### `db.mutation.rejectDatabaseTransfer` + +rejectDatabaseTransfer + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | RejectDatabaseTransferInput (required) | + +```typescript +const result = await db.mutation.rejectDatabaseTransfer({ input: { transferId: '' } }).execute(); +``` + ### `db.mutation.requestDatabase` 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. +Pass exactly one of preset_slug or modules. Pass organization_id to have the organization own the database from the start (the caller must be an owner of that organization); the requesting user is still the identity bootstrapped into the new database. Omit it for a personal database. 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); + SELECT * FROM metaschema_public.request_database('team_app', 'example.com', preset_slug := 'full', organization_id := '00000000-0000-0000-0000-000000000000'::uuid); - **Type:** mutation - **Arguments:** @@ -3758,6 +4359,66 @@ setFieldOrder const result = await db.mutation.setFieldOrder({ input: { fieldIds: '' } }).execute(); ``` +### `db.mutation.setSitePreview` + +setSitePreview + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SetSitePreviewInput (required) | + +```typescript +const result = await db.mutation.setSitePreview({ input: { targetCommitId: '', targetName: '', targetSiteId: '' } }).execute(); +``` + +### `db.mutation.siteMetadataInstallRobots` + +siteMetadataInstallRobots + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SiteMetadataInstallRobotsInput (required) | + +```typescript +const result = await db.mutation.siteMetadataInstallRobots({ input: { entityId: '', robotsPreset: '', siteId: '' } }).execute(); +``` + +### `db.mutation.sitesInstallContentPreset` + +sitesInstallContentPreset + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SitesInstallContentPresetInput (required) | + +```typescript +const result = await db.mutation.sitesInstallContentPreset({ input: { entityId: '', presetKind: '', presetSlug: '', siteId: '' } }).execute(); +``` + +### `db.mutation.sitesInstallMantra` + +sitesInstallMantra + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SitesInstallMantraInput (required) | + +```typescript +const result = await db.mutation.sitesInstallMantra({ input: { entityId: '', routePreset: '', siteId: '' } }).execute(); +``` + ### `db.mutation.sitesProvisionStaticSite` sitesProvisionStaticSite diff --git a/sdk/constructive-react/src/api/orm/index.ts b/sdk/constructive-react/src/api/orm/index.ts index 1e0236a966..fb9f4c5b7e 100644 --- a/sdk/constructive-react/src/api/orm/index.ts +++ b/sdk/constructive-react/src/api/orm/index.ts @@ -8,8 +8,7 @@ import type { OrmClientConfig } from './client'; import { ApiModel } from './models/api'; import { ApiSchemaModel } from './models/apiSchema'; import { ApiSettingModel } from './models/apiSetting'; -import { AppComponentModel } from './models/appComponent'; -import { AppModel } from './models/app'; +import { AstMigrationModel } from './models/astMigration'; import { CheckConstraintModel } from './models/checkConstraint'; import { CompositeTypeModel } from './models/compositeType'; import { CorsSettingModel } from './models/corsSetting'; @@ -34,8 +33,9 @@ import { ForeignKeyConstraintBehaviorModel } from './models/foreignKeyConstraint import { ForeignKeyConstraintModel } from './models/foreignKeyConstraint'; import { FullTextSearchModel } from './models/fullTextSearch'; import { FunctionModel } from './models/function'; +import { GetSitePreviewsRecordModel } from './models/getSitePreviewsRecord'; import { HostnameBindingModel } from './models/hostnameBinding'; -import { HttpRouteModel } from './models/httpRoute'; +import { IdentityProviderRegistryModel } from './models/identityProviderRegistry'; import { IndexModel } from './models/index'; import { ManagedDomainModel } from './models/managedDomain'; import { NodeTypeRegistryModel } from './models/nodeTypeRegistry'; @@ -51,6 +51,7 @@ import { PlatformDomainVerificationModel } from './models/platformDomainVerifica import { PlatformEmailIdentityModel } from './models/platformEmailIdentity'; import { PlatformEmailProviderAccountModel } from './models/platformEmailProviderAccount'; import { PlatformEmailSiteIdentityModel } from './models/platformEmailSiteIdentity'; +import { PlatformGetSitePreviewsRecordModel } from './models/platformGetSitePreviewsRecord'; import { PlatformManagedDomainModel } from './models/platformManagedDomain'; import { PlatformPageModel } from './models/platformPage'; import { PlatformSiteAppLinkModel } from './models/platformSiteAppLink'; @@ -59,11 +60,13 @@ import { PlatformSiteDeepLinkModel } from './models/platformSiteDeepLink'; import { PlatformSiteErrorPageModel } from './models/platformSiteErrorPage'; import { PlatformSiteMetadatumModel } from './models/platformSiteMetadatum'; import { PlatformSiteModuleModel } from './models/platformSiteModule'; +import { PlatformSiteReleaseModel } from './models/platformSiteRelease'; import { PlatformSiteThemeModel } from './models/platformSiteTheme'; import { PlatformSiteWebConfigModel } from './models/platformSiteWebConfig'; import { PolicyModel } from './models/policy'; import { PrimaryKeyConstraintModel } from './models/primaryKeyConstraint'; import { PubkeySettingModel } from './models/pubkeySetting'; +import { RedirectModel } from './models/redirect'; import { RlsSettingModel } from './models/rlsSetting'; import { RouteBindingModel } from './models/routeBinding'; import { RouteModel } from './models/route'; @@ -75,9 +78,11 @@ import { SiteDeepLinkModel } from './models/siteDeepLink'; import { SiteErrorPageModel } from './models/siteErrorPage'; import { SiteMetadatumModel } from './models/siteMetadatum'; import { SiteModuleModel } from './models/siteModule'; +import { SiteReleaseModel } from './models/siteRelease'; import { SiteThemeModel } from './models/siteTheme'; import { SiteWebConfigModel } from './models/siteWebConfig'; import { SpatialRelationModel } from './models/spatialRelation'; +import { SqlActionModel } from './models/sqlAction'; import { TableBehaviorModel } from './models/tableBehavior'; import { TableModel } from './models/table'; import { TableGrantModel } from './models/tableGrant'; @@ -129,8 +134,7 @@ export function createClient(config: OrmClientConfig) { api: new ApiModel(client), apiSchema: new ApiSchemaModel(client), apiSetting: new ApiSettingModel(client), - appComponent: new AppComponentModel(client), - app: new AppModel(client), + astMigration: new AstMigrationModel(client), checkConstraint: new CheckConstraintModel(client), compositeType: new CompositeTypeModel(client), corsSetting: new CorsSettingModel(client), @@ -155,8 +159,9 @@ export function createClient(config: OrmClientConfig) { foreignKeyConstraint: new ForeignKeyConstraintModel(client), fullTextSearch: new FullTextSearchModel(client), function: new FunctionModel(client), + getSitePreviewsRecord: new GetSitePreviewsRecordModel(client), hostnameBinding: new HostnameBindingModel(client), - httpRoute: new HttpRouteModel(client), + identityProviderRegistry: new IdentityProviderRegistryModel(client), index: new IndexModel(client), managedDomain: new ManagedDomainModel(client), nodeTypeRegistry: new NodeTypeRegistryModel(client), @@ -172,6 +177,7 @@ export function createClient(config: OrmClientConfig) { platformEmailIdentity: new PlatformEmailIdentityModel(client), platformEmailProviderAccount: new PlatformEmailProviderAccountModel(client), platformEmailSiteIdentity: new PlatformEmailSiteIdentityModel(client), + platformGetSitePreviewsRecord: new PlatformGetSitePreviewsRecordModel(client), platformManagedDomain: new PlatformManagedDomainModel(client), platformPage: new PlatformPageModel(client), platformSiteAppLink: new PlatformSiteAppLinkModel(client), @@ -180,11 +186,13 @@ export function createClient(config: OrmClientConfig) { platformSiteErrorPage: new PlatformSiteErrorPageModel(client), platformSiteMetadatum: new PlatformSiteMetadatumModel(client), platformSiteModule: new PlatformSiteModuleModel(client), + platformSiteRelease: new PlatformSiteReleaseModel(client), platformSiteTheme: new PlatformSiteThemeModel(client), platformSiteWebConfig: new PlatformSiteWebConfigModel(client), policy: new PolicyModel(client), primaryKeyConstraint: new PrimaryKeyConstraintModel(client), pubkeySetting: new PubkeySettingModel(client), + redirect: new RedirectModel(client), rlsSetting: new RlsSettingModel(client), routeBinding: new RouteBindingModel(client), route: new RouteModel(client), @@ -196,9 +204,11 @@ export function createClient(config: OrmClientConfig) { siteErrorPage: new SiteErrorPageModel(client), siteMetadatum: new SiteMetadatumModel(client), siteModule: new SiteModuleModel(client), + siteRelease: new SiteReleaseModel(client), siteTheme: new SiteThemeModel(client), siteWebConfig: new SiteWebConfigModel(client), spatialRelation: new SpatialRelationModel(client), + sqlAction: new SqlActionModel(client), tableBehavior: new TableBehaviorModel(client), table: new TableModel(client), tableGrant: new TableGrantModel(client), diff --git a/sdk/constructive-react/src/api/orm/input-types.ts b/sdk/constructive-react/src/api/orm/input-types.ts index 554d99df9d..258cd246b2 100644 --- a/sdk/constructive-react/src/api/orm/input-types.ts +++ b/sdk/constructive-react/src/api/orm/input-types.ts @@ -285,6 +285,8 @@ export interface ApiSetting { enableDirectUploads?: boolean | null; /** Override: enable internationalization plugin (NULL = inherit from database_settings) */ enableI18N?: boolean | null; + /** Override: enable GraphQL schema introspection queries (NULL = inherit from database_settings) */ + enableIntrospection?: boolean | null; /** Override: enable LLM/AI integration features (NULL = inherit from database_settings) */ enableLlm?: boolean | null; /** Override: enable ltree hierarchical data type (NULL = inherit from database_settings) */ @@ -300,53 +302,46 @@ export interface ApiSetting { /** Override: enable unified search (NULL = inherit from database_settings) */ enableSearch?: boolean | null; id: string; + /** Override: idle-in-transaction timeout in milliseconds (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + idleInTransactionTimeoutMs?: string | null; + /** Override: lock acquisition timeout in milliseconds (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + lockTimeoutMs?: string | null; + /** Override: maximum concurrently executing GraphQL requests (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + maxConcurrentRequests?: number | null; + /** Override: maximum page size for connection queries (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + maxPageSize?: number | null; + /** Override: maximum GraphQL query cost (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + maxQueryCost?: number | null; + /** Override: maximum GraphQL query depth (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + maxQueryDepth?: number | null; + /** Override: maximum time in milliseconds a request may wait for a concurrency slot (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + maxQueueWaitMs?: number | null; + /** Override: maximum request body size in bytes (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + maxRequestBytes?: number | null; /** Extensible JSON for additional per-API settings that do not have dedicated columns */ options?: Record | null; + /** Override: rate-limit burst allowance (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + rateLimitBurst?: number | null; + /** Override: request rate limit in requests per minute (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + rateLimitRpm?: number | null; /** Override: GraphQL statement timeout in milliseconds (NULL = inherit from database_settings). Clamped by the plan cap at read time. */ statementTimeoutMs?: string | null; updatedAt?: string | null; } -/** App component rows binding an app to typed catalog rows (exactly one typed component reference per row) */ -export interface AppComponent { - /** App this component belongs to */ - appId?: string | null; - /** Typed catalog api row of the component surface; must be owner-matched or visible cross-scope */ - componentApiId?: string | null; - /** Typed catalog domain row of the component surface; must be owner-matched or visible cross-scope */ - componentDomainId?: string | null; - /** Typed catalog resource installation row of the component release; must be owner-matched or visible cross-scope */ - componentInstallationId?: string | null; - /** Typed catalog site row of the component surface; must be owner-matched or visible cross-scope */ - componentSiteId?: string | null; - /** Which kind of catalog row this component binds (api, site, domain, installation) */ - componentType?: string | null; - /** Component-specific configuration inside this app */ - config?: Record | null; - createdAt?: string | null; - /** Database that owns this resource (database-scoped isolation) */ - databaseId?: string | null; - id: string; - updatedAt?: string | null; -} -/** App aggregates: thin identity rows whose components are global catalog references */ -export interface App { - /** Module-specific configuration for this app */ - config?: Record | null; +export interface AstMigration { + actionId?: string | null; + actionName?: string | null; + actorId?: string | null; createdAt?: string | null; - /** Database that owns this resource (database-scoped isolation) */ databaseId?: string | null; - /** Human-readable app description */ - description?: string | null; - id: string; - /** Whether other scopes may see and reference this app */ - isPublished?: boolean | null; - /** Owner-local app name */ + deploy?: Record | null; + deploys?: string | null; + id: number; name?: string | null; - /** App lifecycle status: active, suspended, archived */ - status?: string | null; - /** Human-readable app title */ - title?: string | null; - updatedAt?: string | null; + payload?: Record | null; + requires?: string[] | null; + revert?: Record | null; + verify?: Record | null; } export interface CheckConstraint { category?: ObjectCategory | null; @@ -407,6 +402,8 @@ export interface DatabaseSetting { databaseId?: string | null; /** Enable aggregate queries (sum, avg, min, max, etc.) in the GraphQL API */ enableAggregates?: boolean | null; + /** Enable billing: financial provider actions (customer/subscription/usage sync, overdue sweep) are refused while false. Activation gate for the billing rollout — flipped only after billing:doctor passes. */ + enableBilling?: boolean | null; /** Enable bulk mutation operations (insert, upsert, update, delete) in the GraphQL API */ enableBulk?: boolean | null; /** Enable connection filter (where argument) in the GraphQL API */ @@ -415,6 +412,8 @@ export interface DatabaseSetting { enableDirectUploads?: boolean | null; /** Enable internationalization plugin (localeStrings field, translation table discovery) in the GraphQL API */ enableI18N?: boolean | null; + /** Enable GraphQL schema introspection queries in the GraphQL API. A tenant may only ever lower a bound, so the stored default is the permissive end: turning introspection off is the opt-in. */ + enableIntrospection?: boolean | null; /** Enable LLM/AI integration features in the GraphQL API */ enableLlm?: boolean | null; /** Enable ltree hierarchical data type support in the GraphQL API */ @@ -430,10 +429,30 @@ export interface DatabaseSetting { /** Enable unified search (tsvector, BM25, pg_trgm, pgvector) in the GraphQL API */ enableSearch?: boolean | null; id: string; + /** Scope-wide default idle-in-transaction timeout in milliseconds; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. */ + idleInTransactionTimeoutMs?: string | null; /** Key/value pairs for selecting and filtering settings */ labels?: Record | null; + /** Scope-wide default lock acquisition timeout in milliseconds; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. */ + lockTimeoutMs?: string | null; + /** Scope-wide default maximum concurrently executing GraphQL requests; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. */ + maxConcurrentRequests?: number | null; + /** Scope-wide default maximum page size for connection queries; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. */ + maxPageSize?: number | null; + /** Scope-wide default maximum GraphQL query cost; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. */ + maxQueryCost?: number | null; + /** Scope-wide default maximum GraphQL query depth; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. */ + maxQueryDepth?: number | null; + /** Scope-wide default maximum time in milliseconds a request may wait for a concurrency slot; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. */ + maxQueueWaitMs?: number | null; + /** Scope-wide default maximum request body size in bytes; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. */ + maxRequestBytes?: number | null; /** Extensible JSON for additional settings that do not have dedicated columns */ options?: Record | null; + /** Scope-wide default rate-limit burst allowance; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. */ + rateLimitBurst?: number | null; + /** Scope-wide default request rate limit in requests per minute; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. */ + rateLimitRpm?: number | null; /** Scope-wide default GraphQL statement timeout in milliseconds; NULL inherits the platform default. Clamped by the plan cap at read time. */ statementTimeoutMs?: string | null; updatedAt?: string | null; @@ -467,6 +486,7 @@ export interface Derive { createdAt?: string | null; databaseId?: string | null; id: string; + includeGrants?: boolean | null; includeMutations?: boolean | null; kind?: string | null; policyPrefix?: string | null; @@ -479,6 +499,7 @@ export interface Domain { /** Module-specific configuration for this hostname */ config?: Record | null; createdAt?: string | null; + createdByPrincipal?: string | null; /** Database that owns this resource (database-scoped isolation) */ databaseId?: string | null; /** Lowercase fully-qualified hostname; wildcards use the *.parent form */ @@ -499,6 +520,7 @@ export interface Domain { /** Certificate lifecycle state for this hostname */ tlsStatus?: string | null; updatedAt?: string | null; + updatedByPrincipal?: string | null; /** Ownership verification state of this hostname */ verificationStatus?: string | null; /** When ownership verification last succeeded */ @@ -506,7 +528,7 @@ export interface Domain { } /** Audit trail of domain lifecycle events */ export interface DomainEvent { - /** User who triggered this event, if any */ + /** User who triggered this event; NULL only when no human actor was proven */ actorId?: string | null; createdAt?: string | null; /** Database that owns this resource (database-scoped isolation) */ @@ -777,10 +799,27 @@ export interface FullTextSearch { weights?: string[] | null; } export interface Function { + apiExposed?: boolean | null; + arguments?: Record | null; + bodyAst?: Record | null; + category?: ObjectCategory | null; + data?: Record | null; databaseId?: string | null; + functionType?: string | null; id: string; + isStrict?: boolean | null; + kind?: string | null; name?: string | null; + returns?: Record | null; schemaId?: string | null; + securityInvoker?: boolean | null; + smartTags?: Record | null; + tags?: string[] | null; + volatility?: string | null; +} +export interface GetSitePreviewsRecord { + commitId?: string | null; + name?: string | null; } /** Compiled hostname index maintained by domain sync triggers; read only through the resolver */ export interface HostnameBinding { @@ -804,29 +843,15 @@ export interface HostnameBinding { /** Ownership verification state compiled from the domain row */ verificationStatus?: string | null; } -/** Request-time HTTP routing authority: registered domain plus path prefix and optional method to a typed target */ -export interface HttpRoute { - createdAt?: string | null; - createdBy?: string | null; - /** Database that owns this resource (database-scoped isolation) */ - databaseId?: string | null; - /** Registered host in the scoped routing domains table */ - domainId?: string | null; - id: string; - /** Whether the resolver may select this route */ - isActive?: boolean | null; - /** Optional uppercase HTTP method; NULL matches every method */ - method?: string | null; - /** Normalized request path prefix; longest matching prefix wins */ - path?: string | null; - /** Tie-break precedence after path length and method specificity */ - priority?: number | null; - /** Target row of the type named by target_kind; existence enforced by trigger */ - targetId?: string | null; - /** Discriminator selecting the type of target_id */ - targetKind?: string | null; - updatedAt?: string | null; - updatedBy?: string | null; +export interface IdentityProviderRegistry { + authorizationUrl?: string | null; + displayName?: string | null; + issuerUrl?: string | null; + kind?: string | null; + scopes?: string[] | null; + slug?: string | null; + tokenUrl?: string | null; + userinfoUrl?: string | null; } export interface Index { accessMethod?: string | null; @@ -839,6 +864,7 @@ export interface Index { indexParams?: Record | null; isUnique?: boolean | null; name?: string | null; + nullsNotDistinct?: boolean | null; opClasses?: string[] | null; options?: Record | null; smartTags?: Record | null; @@ -856,6 +882,7 @@ export interface ManagedDomain { /** Certificate issuance state for this managed hostname */ certStatus?: string | null; createdAt?: string | null; + createdByPrincipal?: string | null; /** Database that owns this resource (database-scoped isolation) */ databaseId?: string | null; /** Lowercase fully-qualified managed hostname; wildcards use the *.parent form */ @@ -868,6 +895,7 @@ export interface ManagedDomain { /** TLS provisioning state for this managed hostname */ tlsStatus?: string | null; updatedAt?: string | null; + updatedByPrincipal?: string | null; /** DNS ownership verification state of this managed hostname */ verificationStatus?: string | null; /** When ownership verification last succeeded */ @@ -894,6 +922,8 @@ export interface Page { databaseId?: string | null; /** Unique page identifier */ id: string; + /** Provenance of a seeded page: the content preset (kind, slug, catalog commit_id) it was installed from, or NULL when authored directly */ + seededFrom?: Record | null; /** Site surface this page belongs to; each site owns its own infra store and pages live at path [page, slug] within it */ siteId?: string | null; /** Page slug (unique per site) */ @@ -961,6 +991,8 @@ export interface PlatformApiSetting { enableDirectUploads?: boolean | null; /** Override: enable internationalization plugin (NULL = inherit from database_settings) */ enableI18N?: boolean | null; + /** Override: enable GraphQL schema introspection queries (NULL = inherit from database_settings) */ + enableIntrospection?: boolean | null; /** Override: enable LLM/AI integration features (NULL = inherit from database_settings) */ enableLlm?: boolean | null; /** Override: enable ltree hierarchical data type (NULL = inherit from database_settings) */ @@ -976,8 +1008,28 @@ export interface PlatformApiSetting { /** Override: enable unified search (NULL = inherit from database_settings) */ enableSearch?: boolean | null; id: string; + /** Override: idle-in-transaction timeout in milliseconds (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + idleInTransactionTimeoutMs?: string | null; + /** Override: lock acquisition timeout in milliseconds (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + lockTimeoutMs?: string | null; + /** Override: maximum concurrently executing GraphQL requests (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + maxConcurrentRequests?: number | null; + /** Override: maximum page size for connection queries (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + maxPageSize?: number | null; + /** Override: maximum GraphQL query cost (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + maxQueryCost?: number | null; + /** Override: maximum GraphQL query depth (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + maxQueryDepth?: number | null; + /** Override: maximum time in milliseconds a request may wait for a concurrency slot (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + maxQueueWaitMs?: number | null; + /** Override: maximum request body size in bytes (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + maxRequestBytes?: number | null; /** Extensible JSON for additional per-API settings that do not have dedicated columns */ options?: Record | null; + /** Override: rate-limit burst allowance (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + rateLimitBurst?: number | null; + /** Override: request rate limit in requests per minute (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + rateLimitRpm?: number | null; /** Override: GraphQL statement timeout in milliseconds (NULL = inherit from database_settings). Clamped by the plan cap at read time. */ statementTimeoutMs?: string | null; updatedAt?: string | null; @@ -997,6 +1049,7 @@ export interface PlatformDomain { /** Module-specific configuration for this hostname */ config?: Record | null; createdAt?: string | null; + createdByPrincipal?: string | null; /** Lowercase fully-qualified hostname; wildcards use the *.parent form */ hostname?: string | null; id: string; @@ -1015,6 +1068,7 @@ export interface PlatformDomain { /** Certificate lifecycle state for this hostname */ tlsStatus?: string | null; updatedAt?: string | null; + updatedByPrincipal?: string | null; /** Ownership verification state of this hostname */ verificationStatus?: string | null; /** When ownership verification last succeeded */ @@ -1022,7 +1076,7 @@ export interface PlatformDomain { } /** Audit trail of domain lifecycle events */ export interface PlatformDomainEvent { - /** User who triggered this event, if any */ + /** User who triggered this event; NULL only when no human actor was proven */ actorId?: string | null; createdAt?: string | null; /** Scoped domain this event belongs to */ @@ -1134,6 +1188,10 @@ export interface PlatformEmailSiteIdentity { siteId?: string | null; updatedAt?: string | null; } +export interface PlatformGetSitePreviewsRecord { + commitId?: string | null; + name?: 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 */ @@ -1143,6 +1201,7 @@ export interface PlatformManagedDomain { /** Certificate issuance state for this managed hostname */ certStatus?: string | null; createdAt?: string | null; + createdByPrincipal?: string | null; /** Lowercase fully-qualified managed hostname; wildcards use the *.parent form */ domain?: string | null; id: string; @@ -1153,6 +1212,7 @@ export interface PlatformManagedDomain { /** TLS provisioning state for this managed hostname */ tlsStatus?: string | null; updatedAt?: string | null; + updatedByPrincipal?: string | null; /** DNS ownership verification state of this managed hostname */ verificationStatus?: string | null; /** When ownership verification last succeeded */ @@ -1168,6 +1228,8 @@ export interface PlatformPage { createdAt?: string | null; /** Unique page identifier */ id: string; + /** Provenance of a seeded page: the content preset (kind, slug, catalog commit_id) it was installed from, or NULL when authored directly */ + seededFrom?: Record | null; /** Site surface this page belongs to; each site owns its own infra store and pages live at path [page, slug] within it */ siteId?: string | null; /** Page slug (unique per site) */ @@ -1177,24 +1239,16 @@ export interface PlatformPage { /** Timestamp of last modification */ updatedAt?: string | null; } -/** Native-app deep-link association metadata for a site surface (feeds AASA / assetlinks.json generation) */ +/** Per-host native-app association for a site surface: which app-owned store identity this host serves, and the path patterns it claims (joined with the store identity to render AASA / assetlinks.json) */ export interface PlatformSiteAppLink { - /** App identifier: iOS bundle id or Android package name */ - appIdentifier?: string | null; + /** App-owned store identity this association serves (app_store_identities row in this scope's app plane; the association carries no store facts of its own) */ + appStoreIdentityId?: string | null; createdAt?: string | null; id: string; /** Path patterns this association applies to (AASA paths / Android intent-filter paths) */ pathComponents?: string[] | null; - /** Target platform for this association (ios, android) */ - platform?: string | null; - /** Android signing certificate SHA-256 fingerprints for assetlinks.json */ - sha256CertFingerprints?: string[] | null; /** Site surface this app-link association belongs to */ siteId?: string | null; - /** App/Play store URL for this app (used by install banners and fallbacks) */ - storeUrl?: string | null; - /** Apple Developer team id (iOS); combined with app_identifier to form the AASA appID */ - teamId?: string | null; updatedAt?: string | null; /** Whether to emit the webcredentials service (iOS shared-web-credentials / password autofill) */ webcredentials?: boolean | null; @@ -1203,13 +1257,14 @@ export interface PlatformSiteAppLink { export interface PlatformSite { /** Infra-store commit pinned as the live page content for this site (manual publish pointer; NULL = nothing published yet) */ activeCommitId?: string | null; - /** Catalog bucket that backs this site (static content store; exactly one of bucket_id/resource_id) */ + /** Bucket that backs this site (static content store; exactly one of bucket_id/resource_id) */ bucketId?: string | null; createdAt?: string | null; + createdByPrincipal?: string | null; /** Human-readable site description */ description?: string | null; id: string; - /** Catalog resource_installation (release) that backs this site; the servable member is named by installation_member_slug (exactly one of bucket_id/resource_id/installation_id) */ + /** Resource installation (release) that backs this site; the servable member is named by installation_member_slug (exactly one of bucket_id/resource_id/installation_id) */ installationId?: string | null; /** Slug of the release member (a Service resource) that serves this site; set iff installation_id is set */ installationMemberSlug?: string | null; @@ -1217,11 +1272,12 @@ export interface PlatformSite { isPublished?: boolean | null; /** Owner-local site surface name */ name?: string | null; - /** Catalog resource/service that backs this site (SSR/app Service pinned to one concrete resource row; exactly one of bucket_id/resource_id/installation_id) */ + /** Resource/service that backs this site (SSR/app Service pinned to one concrete resource row; exactly one of bucket_id/resource_id/installation_id) */ resourceId?: string | null; /** Human-readable site title */ title?: string | null; updatedAt?: string | null; + updatedByPrincipal?: string | null; } /** Named, retargetable deep links owned by a site surface (served at the deep-link path prefix; app interception via site_app_links) */ export interface PlatformSiteDeepLink { @@ -1233,6 +1289,8 @@ export interface PlatformSiteDeepLink { id: string; /** Additional link metadata (campaign/UTM parameters, escape hatch) */ metadata?: Record | null; + /** Page this link's web_path resolves to (soft reference into the pages module; NULL for external or non-page targets) */ + pageId?: string | null; /** Site surface this deep link belongs to (the hostname plane that serves it) */ siteId?: string | null; /** Link name unique per site; addressed at the deep-link path prefix (e.g. /l/) */ @@ -1273,6 +1331,8 @@ export interface PlatformSiteMetadatum { ogImage?: ConstructiveInternalTypeImage | null; /** robots meta directive (e.g. index,follow / noindex,nofollow) */ robots?: string | null; + /** Provenance of the robots value: the content preset (kind, slug, catalog commit_id) an install applied, or NULL when it was authored directly */ + robotsSeededFrom?: Record | null; /** Site surface this metadata belongs to */ siteId?: string | null; /** Infra Merkle store holding this row's history (stamped by the versioned trigger) */ @@ -1297,6 +1357,20 @@ export interface PlatformSiteModule { siteId?: string | null; updatedAt?: string | null; } +/** Immutable static-site release manifest head, versioned in the site-owned merkle store */ +export interface PlatformSiteRelease { + /** Infra store commit for the current content (stamped by the versioned trigger on every write) */ + commitId?: string | null; + createdAt?: string | null; + id: string; + /** Release manifest: {"files":{"":{"hash":"<64-hex sha256>","content_type":"...","size":123}},"file_count":N,"total_bytes":N} */ + manifest?: Record | null; + /** Site surface this release manifest belongs to */ + siteId?: string | null; + /** Infra Merkle store holding this row's history (stamped by the versioned trigger) */ + storeId?: string | null; + updatedAt?: string | null; +} /** Theme (colors, fonts, design tokens) for a site surface */ export interface PlatformSiteTheme { /** Infra store commit for the current content (stamped by the versioned trigger on every write) */ @@ -1333,6 +1407,8 @@ export interface PlatformSiteWebConfig { } export interface Policy { category?: ObjectCategory | null; + /** Columns of this policy's table that its expression filters on. Stamped when the policy is derived onto a companion table, so a consumer needing those columns (e.g. a chunking worker copying them from the parent row) reads them here instead of re-walking the node type's parameter schema. */ + columnRefs?: string[] | null; createdAt?: string | null; data?: Record | null; databaseId?: string | null; @@ -1390,6 +1466,26 @@ export interface PubkeySetting { /** Field name used to identify the user in crypto auth functions */ userField?: string | null; } +/** Redirect targets a route can point at; the edge answers with a redirect status instead of a backend */ +export interface Redirect { + createdAt?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; + id: string; + /** Owner-local name for this redirect */ + name?: string | null; + /** Whether the incoming path is appended to the destination */ + preservePath?: boolean | null; + /** Whether the incoming query string is carried to the destination */ + preserveQuery?: boolean | null; + /** HTTP redirect status the edge answers with (301, 302, 307 or 308) */ + statusCode?: number | null; + /** Destination hostname the edge redirects to */ + toHost?: string | null; + /** Destination path; NULL keeps the incoming path (see preserve_path) */ + toPath?: string | null; + updatedAt?: string | null; +} /** RLS module runtime configuration; typed references to the authenticate/current_role function plumbing */ export interface RlsSetting { /** Reference to the authenticate function (FK to metaschema_public.function) */ @@ -1427,12 +1523,16 @@ export interface RouteBinding { path?: string | null; /** Priority compiled from the source route */ priority?: number | null; + /** Site whose surface the source route serves; NULL when it serves no site */ + servingSiteId?: string | null; /** Api catalog row the source route targets */ targetApiId?: string | null; /** Bucket catalog row the source route targets */ targetBucketId?: string | null; /** Function catalog row the source route targets */ targetFunctionId?: string | null; + /** Redirect catalog row the source route targets */ + targetRedirectId?: string | null; /** Resource catalog row (a Service resource) the source route targets */ targetServiceId?: string | null; /** Site catalog row the source route targets */ @@ -1442,6 +1542,8 @@ export interface RouteBinding { } /** Routes binding a domain hostname and path to a typed catalog target */ export interface Route { + /** Whether this route answers callers with no identity. Requires the target function to declare anonymous_callable; default false = an identity is required */ + anonymous?: boolean | null; /** Route metadata; target configuration is read live from the typed catalog, never copied here */ config?: Record | null; createdAt?: string | null; @@ -1456,17 +1558,23 @@ export interface Route { method?: string | null; /** Path prefix this route matches; must begin with / and carry no trailing slash */ path?: string | null; + /** The site preview this route serves; NULL serves the site's published release */ + previewRef?: string | null; /** Higher priority wins between otherwise-equal matches */ priority?: number | null; - /** Api catalog row this route targets; must be owner-matched or visible cross-scope */ + /** Site whose surface this route serves; the serving lane renders as this site. NULL when the route serves no site */ + servingSiteId?: string | null; + /** Api surface this route targets; must be this scope's own api */ targetApiId?: string | null; - /** Bucket catalog row this route targets; must be a public bucket that is owner-matched or visible cross-scope */ + /** Bucket this route targets; must be a public bucket in this scope's own storage plane */ targetBucketId?: string | null; - /** Function catalog row this route targets; must be owner-matched or visible cross-scope */ + /** Function this route targets; must be this scope's own function */ targetFunctionId?: string | null; - /** Resource catalog row (a Service resource) this route targets; must be owner-matched or visible cross-scope */ + /** Redirect this route targets; the edge answers with a redirect status instead of proxying a backend */ + targetRedirectId?: string | null; + /** Resource (a Service resource) this route targets; must be this scope's own resource */ targetServiceId?: string | null; - /** Site catalog row this route targets; must be owner-matched or visible cross-scope */ + /** Site surface this route targets; must be this scope's own site */ targetSiteId?: string | null; updatedAt?: string | null; } @@ -1493,26 +1601,18 @@ export interface SchemaGrant { schemaId?: string | null; updatedAt?: string | null; } -/** Native-app deep-link association metadata for a site surface (feeds AASA / assetlinks.json generation) */ +/** Per-host native-app association for a site surface: which app-owned store identity this host serves, and the path patterns it claims (joined with the store identity to render AASA / assetlinks.json) */ export interface SiteAppLink { - /** App identifier: iOS bundle id or Android package name */ - appIdentifier?: string | null; + /** App-owned store identity this association serves (app_store_identities row in this scope's app plane; the association carries no store facts of its own) */ + appStoreIdentityId?: string | null; createdAt?: string | null; /** Database that owns this resource (database-scoped isolation) */ databaseId?: string | null; id: string; /** Path patterns this association applies to (AASA paths / Android intent-filter paths) */ pathComponents?: string[] | null; - /** Target platform for this association (ios, android) */ - platform?: string | null; - /** Android signing certificate SHA-256 fingerprints for assetlinks.json */ - sha256CertFingerprints?: string[] | null; /** Site surface this app-link association belongs to */ siteId?: string | null; - /** App/Play store URL for this app (used by install banners and fallbacks) */ - storeUrl?: string | null; - /** Apple Developer team id (iOS); combined with app_identifier to form the AASA appID */ - teamId?: string | null; updatedAt?: string | null; /** Whether to emit the webcredentials service (iOS shared-web-credentials / password autofill) */ webcredentials?: boolean | null; @@ -1521,15 +1621,16 @@ export interface SiteAppLink { export interface Site { /** Infra-store commit pinned as the live page content for this site (manual publish pointer; NULL = nothing published yet) */ activeCommitId?: string | null; - /** Catalog bucket that backs this site (static content store; exactly one of bucket_id/resource_id) */ + /** Bucket that backs this site (static content store; exactly one of bucket_id/resource_id) */ bucketId?: string | null; createdAt?: string | null; + createdByPrincipal?: string | null; /** Database that owns this resource (database-scoped isolation) */ databaseId?: string | null; /** Human-readable site description */ description?: string | null; id: string; - /** Catalog resource_installation (release) that backs this site; the servable member is named by installation_member_slug (exactly one of bucket_id/resource_id/installation_id) */ + /** Resource installation (release) that backs this site; the servable member is named by installation_member_slug (exactly one of bucket_id/resource_id/installation_id) */ installationId?: string | null; /** Slug of the release member (a Service resource) that serves this site; set iff installation_id is set */ installationMemberSlug?: string | null; @@ -1537,11 +1638,12 @@ export interface Site { isPublished?: boolean | null; /** Owner-local site surface name */ name?: string | null; - /** Catalog resource/service that backs this site (SSR/app Service pinned to one concrete resource row; exactly one of bucket_id/resource_id/installation_id) */ + /** Resource/service that backs this site (SSR/app Service pinned to one concrete resource row; exactly one of bucket_id/resource_id/installation_id) */ resourceId?: string | null; /** Human-readable site title */ title?: string | null; updatedAt?: string | null; + updatedByPrincipal?: string | null; } /** Named, retargetable deep links owned by a site surface (served at the deep-link path prefix; app interception via site_app_links) */ export interface SiteDeepLink { @@ -1555,6 +1657,8 @@ export interface SiteDeepLink { id: string; /** Additional link metadata (campaign/UTM parameters, escape hatch) */ metadata?: Record | null; + /** Page this link's web_path resolves to (soft reference into the pages module; NULL for external or non-page targets) */ + pageId?: string | null; /** Site surface this deep link belongs to (the hostname plane that serves it) */ siteId?: string | null; /** Link name unique per site; addressed at the deep-link path prefix (e.g. /l/) */ @@ -1599,6 +1703,8 @@ export interface SiteMetadatum { ogImage?: ConstructiveInternalTypeImage | null; /** robots meta directive (e.g. index,follow / noindex,nofollow) */ robots?: string | null; + /** Provenance of the robots value: the content preset (kind, slug, catalog commit_id) an install applied, or NULL when it was authored directly */ + robotsSeededFrom?: Record | null; /** Site surface this metadata belongs to */ siteId?: string | null; /** Infra Merkle store holding this row's history (stamped by the versioned trigger) */ @@ -1625,6 +1731,22 @@ export interface SiteModule { siteId?: string | null; updatedAt?: string | null; } +/** Immutable static-site release manifest head, versioned in the site-owned merkle store */ +export interface SiteRelease { + /** Infra store commit for the current content (stamped by the versioned trigger on every write) */ + commitId?: string | null; + createdAt?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; + id: string; + /** Release manifest: {"files":{"":{"hash":"<64-hex sha256>","content_type":"...","size":123}},"file_count":N,"total_bytes":N} */ + manifest?: Record | null; + /** Site surface this release manifest belongs to */ + siteId?: string | null; + /** Infra Merkle store holding this row's history (stamped by the versioned trigger) */ + storeId?: string | null; + updatedAt?: string | null; +} /** Theme (colors, fonts, design tokens) for a site surface */ export interface SiteTheme { /** Infra store commit for the current content (stamped by the versioned trigger on every write) */ @@ -1678,6 +1800,21 @@ export interface SpatialRelation { tags?: string[] | null; updatedAt?: string | null; } +export interface SqlAction { + actionId?: string | null; + actionName?: string | null; + actorId?: string | null; + content?: string | null; + createdAt?: string | null; + databaseId?: string | null; + deploy?: string | null; + deps?: string[] | null; + id: number; + name?: string | null; + payload?: Record | null; + revert?: string | null; + verify?: string | null; +} export interface TableBehavior { createdAt?: string | null; databaseId?: string | null; @@ -1730,13 +1867,19 @@ export interface Trigger { createdAt?: string | null; databaseId?: string | null; event?: string | null; + events?: string[] | null; + forEachRow?: boolean | null; + functionId?: string | null; functionName?: string | null; id: string; + kind?: string | null; name?: string | null; smartTags?: Record | null; tableId?: string | null; tags?: string[] | null; + timing?: string | null; updatedAt?: string | null; + whenAst?: Record | null; } export interface TriggerFunction { code?: string | null; @@ -1894,12 +2037,7 @@ export interface ApiSchemaRelations { export interface ApiSettingRelations { api?: Api | null; } -export interface AppComponentRelations { - app?: App | null; -} -export interface AppRelations { - appComponents?: ConnectionResult; -} +export interface AstMigrationRelations {} export interface CheckConstraintRelations { database?: Database | null; table?: Table | null; @@ -1963,7 +2101,6 @@ export interface DeriveRelations { export interface DomainRelations { domainEvents?: ConnectionResult; domainVerifications?: ConnectionResult; - httpRoutes?: ConnectionResult; routes?: ConnectionResult; } export interface DomainEventRelations { @@ -2036,11 +2173,11 @@ export interface FullTextSearchRelations { export interface FunctionRelations { database?: Database | null; schema?: Schema | null; + triggers?: ConnectionResult; } +export interface GetSitePreviewsRecordRelations {} export interface HostnameBindingRelations {} -export interface HttpRouteRelations { - domain?: Domain | null; -} +export interface IdentityProviderRegistryRelations {} export interface IndexRelations { database?: Database | null; table?: Table | null; @@ -2097,6 +2234,7 @@ export interface PlatformEmailSiteIdentityRelations { emailIdentity?: PlatformEmailIdentity | null; site?: PlatformSite | null; } +export interface PlatformGetSitePreviewsRecordRelations {} export interface PlatformManagedDomainRelations { platformDomainEventsByManagedDomainId?: ConnectionResult; platformDomainVerificationsByManagedDomainId?: ConnectionResult; @@ -2110,6 +2248,7 @@ export interface PlatformSiteAppLinkRelations { export interface PlatformSiteRelations { platformEmailSiteIdentityBySiteId?: PlatformEmailSiteIdentity | null; platformSiteMetadatumBySiteId?: PlatformSiteMetadatum | null; + platformSiteReleaseBySiteId?: PlatformSiteRelease | null; platformSiteWebConfigBySiteId?: PlatformSiteWebConfig | null; platformPagesBySiteId?: ConnectionResult; platformSiteAppLinksBySiteId?: ConnectionResult; @@ -2130,6 +2269,9 @@ export interface PlatformSiteMetadatumRelations { export interface PlatformSiteModuleRelations { site?: PlatformSite | null; } +export interface PlatformSiteReleaseRelations { + site?: PlatformSite | null; +} export interface PlatformSiteThemeRelations { site?: PlatformSite | null; } @@ -2153,6 +2295,9 @@ export interface PubkeySettingRelations { signInWithChallengeFunction?: Function | null; signUpWithKeyFunction?: Function | null; } +export interface RedirectRelations { + routesByTargetRedirectId?: ConnectionResult; +} export interface RlsSettingRelations { authenticateFunction?: Function | null; authenticateSchema?: Schema | null; @@ -2166,6 +2311,10 @@ export interface RlsSettingRelations { export interface RouteBindingRelations {} export interface RouteRelations { domain?: Domain | null; + servingSite?: Site | null; + targetApi?: Api | null; + targetRedirect?: Redirect | null; + targetSite?: Site | null; } export interface SchemaRelations { database?: Database | null; @@ -2190,8 +2339,10 @@ export interface SiteAppLinkRelations { export interface SiteRelations { emailSiteIdentity?: EmailSiteIdentity | null; siteMetadatum?: SiteMetadatum | null; + siteRelease?: SiteRelease | null; siteWebConfig?: SiteWebConfig | null; pages?: ConnectionResult; + routesByServingSiteId?: ConnectionResult; siteAppLinks?: ConnectionResult; siteDeepLinks?: ConnectionResult; siteErrorPages?: ConnectionResult; @@ -2210,6 +2361,9 @@ export interface SiteMetadatumRelations { export interface SiteModuleRelations { site?: Site | null; } +export interface SiteReleaseRelations { + site?: Site | null; +} export interface SiteThemeRelations { site?: Site | null; } @@ -2223,6 +2377,7 @@ export interface SpatialRelationRelations { refTable?: Table | null; table?: Table | null; } +export interface SqlActionRelations {} export interface TableBehaviorRelations { database?: Database | null; table?: Table | null; @@ -2261,6 +2416,7 @@ export interface TableGrantRelations { } export interface TriggerRelations { database?: Database | null; + function?: Function | null; table?: Table | null; } export interface TriggerFunctionRelations { @@ -2316,8 +2472,7 @@ export interface WebauthnSettingRelations { export type ApiWithRelations = Api & ApiRelations; export type ApiSchemaWithRelations = ApiSchema & ApiSchemaRelations; export type ApiSettingWithRelations = ApiSetting & ApiSettingRelations; -export type AppComponentWithRelations = AppComponent & AppComponentRelations; -export type AppWithRelations = App & AppRelations; +export type AstMigrationWithRelations = AstMigration & AstMigrationRelations; export type CheckConstraintWithRelations = CheckConstraint & CheckConstraintRelations; export type CompositeTypeWithRelations = CompositeType & CompositeTypeRelations; export type CorsSettingWithRelations = CorsSetting & CorsSettingRelations; @@ -2345,8 +2500,11 @@ export type ForeignKeyConstraintWithRelations = ForeignKeyConstraint & ForeignKeyConstraintRelations; export type FullTextSearchWithRelations = FullTextSearch & FullTextSearchRelations; export type FunctionWithRelations = Function & FunctionRelations; +export type GetSitePreviewsRecordWithRelations = GetSitePreviewsRecord & + GetSitePreviewsRecordRelations; export type HostnameBindingWithRelations = HostnameBinding & HostnameBindingRelations; -export type HttpRouteWithRelations = HttpRoute & HttpRouteRelations; +export type IdentityProviderRegistryWithRelations = IdentityProviderRegistry & + IdentityProviderRegistryRelations; export type IndexWithRelations = Index & IndexRelations; export type ManagedDomainWithRelations = ManagedDomain & ManagedDomainRelations; export type NodeTypeRegistryWithRelations = NodeTypeRegistry & NodeTypeRegistryRelations; @@ -2366,6 +2524,8 @@ export type PlatformEmailProviderAccountWithRelations = PlatformEmailProviderAcc PlatformEmailProviderAccountRelations; export type PlatformEmailSiteIdentityWithRelations = PlatformEmailSiteIdentity & PlatformEmailSiteIdentityRelations; +export type PlatformGetSitePreviewsRecordWithRelations = PlatformGetSitePreviewsRecord & + PlatformGetSitePreviewsRecordRelations; export type PlatformManagedDomainWithRelations = PlatformManagedDomain & PlatformManagedDomainRelations; export type PlatformPageWithRelations = PlatformPage & PlatformPageRelations; @@ -2378,6 +2538,7 @@ export type PlatformSiteErrorPageWithRelations = PlatformSiteErrorPage & export type PlatformSiteMetadatumWithRelations = PlatformSiteMetadatum & PlatformSiteMetadatumRelations; export type PlatformSiteModuleWithRelations = PlatformSiteModule & PlatformSiteModuleRelations; +export type PlatformSiteReleaseWithRelations = PlatformSiteRelease & PlatformSiteReleaseRelations; export type PlatformSiteThemeWithRelations = PlatformSiteTheme & PlatformSiteThemeRelations; export type PlatformSiteWebConfigWithRelations = PlatformSiteWebConfig & PlatformSiteWebConfigRelations; @@ -2385,6 +2546,7 @@ export type PolicyWithRelations = Policy & PolicyRelations; export type PrimaryKeyConstraintWithRelations = PrimaryKeyConstraint & PrimaryKeyConstraintRelations; export type PubkeySettingWithRelations = PubkeySetting & PubkeySettingRelations; +export type RedirectWithRelations = Redirect & RedirectRelations; export type RlsSettingWithRelations = RlsSetting & RlsSettingRelations; export type RouteBindingWithRelations = RouteBinding & RouteBindingRelations; export type RouteWithRelations = Route & RouteRelations; @@ -2396,9 +2558,11 @@ export type SiteDeepLinkWithRelations = SiteDeepLink & SiteDeepLinkRelations; export type SiteErrorPageWithRelations = SiteErrorPage & SiteErrorPageRelations; export type SiteMetadatumWithRelations = SiteMetadatum & SiteMetadatumRelations; export type SiteModuleWithRelations = SiteModule & SiteModuleRelations; +export type SiteReleaseWithRelations = SiteRelease & SiteReleaseRelations; export type SiteThemeWithRelations = SiteTheme & SiteThemeRelations; export type SiteWebConfigWithRelations = SiteWebConfig & SiteWebConfigRelations; export type SpatialRelationWithRelations = SpatialRelation & SpatialRelationRelations; +export type SqlActionWithRelations = SqlAction & SqlActionRelations; export type TableBehaviorWithRelations = TableBehavior & TableBehaviorRelations; export type TableWithRelations = Table & TableRelations; export type TableGrantWithRelations = TableGrant & TableGrantRelations; @@ -2464,6 +2628,7 @@ export type ApiSettingSelect = { enableConnectionFilter?: boolean; enableDirectUploads?: boolean; enableI18N?: boolean; + enableIntrospection?: boolean; enableLlm?: boolean; enableLtree?: boolean; enableManyToMany?: boolean; @@ -2472,46 +2637,37 @@ export type ApiSettingSelect = { enableRealtime?: boolean; enableSearch?: boolean; id?: boolean; + idleInTransactionTimeoutMs?: boolean; + lockTimeoutMs?: boolean; + maxConcurrentRequests?: boolean; + maxPageSize?: boolean; + maxQueryCost?: boolean; + maxQueryDepth?: boolean; + maxQueueWaitMs?: boolean; + maxRequestBytes?: boolean; options?: boolean; + rateLimitBurst?: boolean; + rateLimitRpm?: boolean; statementTimeoutMs?: boolean; updatedAt?: boolean; api?: { select: ApiSelect; }; }; -export type AppComponentSelect = { - appId?: boolean; - componentApiId?: boolean; - componentDomainId?: boolean; - componentInstallationId?: boolean; - componentSiteId?: boolean; - componentType?: boolean; - config?: boolean; - createdAt?: boolean; - databaseId?: boolean; - id?: boolean; - updatedAt?: boolean; - app?: { - select: AppSelect; - }; -}; -export type AppSelect = { - config?: boolean; +export type AstMigrationSelect = { + actionId?: boolean; + actionName?: boolean; + actorId?: boolean; createdAt?: boolean; databaseId?: boolean; - description?: boolean; + deploy?: boolean; + deploys?: boolean; id?: boolean; - isPublished?: boolean; name?: boolean; - status?: boolean; - title?: boolean; - updatedAt?: boolean; - appComponents?: { - select: AppComponentSelect; - first?: number; - filter?: AppComponentFilter; - orderBy?: AppComponentOrderBy[]; - }; + payload?: boolean; + requires?: boolean; + revert?: boolean; + verify?: boolean; }; export type CheckConstraintSelect = { category?: boolean; @@ -2783,10 +2939,12 @@ export type DatabaseSettingSelect = { createdAt?: boolean; databaseId?: boolean; enableAggregates?: boolean; + enableBilling?: boolean; enableBulk?: boolean; enableConnectionFilter?: boolean; enableDirectUploads?: boolean; enableI18N?: boolean; + enableIntrospection?: boolean; enableLlm?: boolean; enableLtree?: boolean; enableManyToMany?: boolean; @@ -2795,8 +2953,18 @@ export type DatabaseSettingSelect = { enableRealtime?: boolean; enableSearch?: boolean; id?: boolean; + idleInTransactionTimeoutMs?: boolean; labels?: boolean; + lockTimeoutMs?: boolean; + maxConcurrentRequests?: boolean; + maxPageSize?: boolean; + maxQueryCost?: boolean; + maxQueryDepth?: boolean; + maxQueueWaitMs?: boolean; + maxRequestBytes?: boolean; options?: boolean; + rateLimitBurst?: boolean; + rateLimitRpm?: boolean; statementTimeoutMs?: boolean; updatedAt?: boolean; }; @@ -2838,6 +3006,7 @@ export type DeriveSelect = { createdAt?: boolean; databaseId?: boolean; id?: boolean; + includeGrants?: boolean; includeMutations?: boolean; kind?: boolean; policyPrefix?: boolean; @@ -2857,6 +3026,7 @@ export type DeriveSelect = { export type DomainSelect = { config?: boolean; createdAt?: boolean; + createdByPrincipal?: boolean; databaseId?: boolean; hostname?: boolean; id?: boolean; @@ -2868,6 +3038,7 @@ export type DomainSelect = { tlsSecretName?: boolean; tlsStatus?: boolean; updatedAt?: boolean; + updatedByPrincipal?: boolean; verificationStatus?: boolean; verifiedAt?: boolean; domainEvents?: { @@ -2882,12 +3053,6 @@ export type DomainSelect = { filter?: DomainVerificationFilter; orderBy?: DomainVerificationOrderBy[]; }; - httpRoutes?: { - select: HttpRouteSelect; - first?: number; - filter?: HttpRouteFilter; - orderBy?: HttpRouteOrderBy[]; - }; routes?: { select: RouteSelect; first?: number; @@ -3260,16 +3425,39 @@ export type FullTextSearchSelect = { }; }; export type FunctionSelect = { + apiExposed?: boolean; + arguments?: boolean; + bodyAst?: boolean; + category?: boolean; + data?: boolean; databaseId?: boolean; + functionType?: boolean; id?: boolean; + isStrict?: boolean; + kind?: boolean; name?: boolean; + returns?: boolean; schemaId?: boolean; + securityInvoker?: boolean; + smartTags?: boolean; + tags?: boolean; + volatility?: boolean; database?: { select: DatabaseSelect; }; schema?: { select: SchemaSelect; }; + triggers?: { + select: TriggerSelect; + first?: number; + filter?: TriggerFilter; + orderBy?: TriggerOrderBy[]; + }; +}; +export type GetSitePreviewsRecordSelect = { + commitId?: boolean; + name?: boolean; }; export type HostnameBindingSelect = { domainId?: boolean; @@ -3283,23 +3471,15 @@ export type HostnameBindingSelect = { updatedAt?: boolean; verificationStatus?: boolean; }; -export type HttpRouteSelect = { - createdAt?: boolean; - createdBy?: boolean; - databaseId?: boolean; - domainId?: boolean; - id?: boolean; - isActive?: boolean; - method?: boolean; - path?: boolean; - priority?: boolean; - targetId?: boolean; - targetKind?: boolean; - updatedAt?: boolean; - updatedBy?: boolean; - domain?: { - select: DomainSelect; - }; +export type IdentityProviderRegistrySelect = { + authorizationUrl?: boolean; + displayName?: boolean; + issuerUrl?: boolean; + kind?: boolean; + scopes?: boolean; + slug?: boolean; + tokenUrl?: boolean; + userinfoUrl?: boolean; }; export type IndexSelect = { accessMethod?: boolean; @@ -3312,6 +3492,7 @@ export type IndexSelect = { indexParams?: boolean; isUnique?: boolean; name?: boolean; + nullsNotDistinct?: boolean; opClasses?: boolean; options?: boolean; smartTags?: boolean; @@ -3331,6 +3512,7 @@ export type ManagedDomainSelect = { annotations?: boolean; certStatus?: boolean; createdAt?: boolean; + createdByPrincipal?: boolean; databaseId?: boolean; domain?: boolean; id?: boolean; @@ -3338,6 +3520,7 @@ export type ManagedDomainSelect = { tlsReadyAt?: boolean; tlsStatus?: boolean; updatedAt?: boolean; + updatedByPrincipal?: boolean; verificationStatus?: boolean; verifiedAt?: boolean; domainEvents?: { @@ -3368,6 +3551,7 @@ export type PageSelect = { createdAt?: boolean; databaseId?: boolean; id?: boolean; + seededFrom?: boolean; siteId?: boolean; slug?: boolean; storeId?: boolean; @@ -3444,6 +3628,7 @@ export type PlatformApiSettingSelect = { enableConnectionFilter?: boolean; enableDirectUploads?: boolean; enableI18N?: boolean; + enableIntrospection?: boolean; enableLlm?: boolean; enableLtree?: boolean; enableManyToMany?: boolean; @@ -3452,7 +3637,17 @@ export type PlatformApiSettingSelect = { enableRealtime?: boolean; enableSearch?: boolean; id?: boolean; + idleInTransactionTimeoutMs?: boolean; + lockTimeoutMs?: boolean; + maxConcurrentRequests?: boolean; + maxPageSize?: boolean; + maxQueryCost?: boolean; + maxQueryDepth?: boolean; + maxQueueWaitMs?: boolean; + maxRequestBytes?: boolean; options?: boolean; + rateLimitBurst?: boolean; + rateLimitRpm?: boolean; statementTimeoutMs?: boolean; updatedAt?: boolean; api?: { @@ -3472,6 +3667,7 @@ export type PlatformCorsSettingSelect = { export type PlatformDomainSelect = { config?: boolean; createdAt?: boolean; + createdByPrincipal?: boolean; hostname?: boolean; id?: boolean; isPublished?: boolean; @@ -3482,6 +3678,7 @@ export type PlatformDomainSelect = { tlsSecretName?: boolean; tlsStatus?: boolean; updatedAt?: boolean; + updatedByPrincipal?: boolean; verificationStatus?: boolean; verifiedAt?: boolean; platformDomainEventsByDomainId?: { @@ -3600,17 +3797,23 @@ export type PlatformEmailSiteIdentitySelect = { select: PlatformSiteSelect; }; }; +export type PlatformGetSitePreviewsRecordSelect = { + commitId?: boolean; + name?: boolean; +}; export type PlatformManagedDomainSelect = { allowPublicUsage?: boolean; annotations?: boolean; certStatus?: boolean; createdAt?: boolean; + createdByPrincipal?: boolean; domain?: boolean; id?: boolean; isWildcard?: boolean; tlsReadyAt?: boolean; tlsStatus?: boolean; updatedAt?: boolean; + updatedByPrincipal?: boolean; verificationStatus?: boolean; verifiedAt?: boolean; platformDomainEventsByManagedDomainId?: { @@ -3631,6 +3834,7 @@ export type PlatformPageSelect = { content?: boolean; createdAt?: boolean; id?: boolean; + seededFrom?: boolean; siteId?: boolean; slug?: boolean; storeId?: boolean; @@ -3640,15 +3844,11 @@ export type PlatformPageSelect = { }; }; export type PlatformSiteAppLinkSelect = { - appIdentifier?: boolean; + appStoreIdentityId?: boolean; createdAt?: boolean; id?: boolean; pathComponents?: boolean; - platform?: boolean; - sha256CertFingerprints?: boolean; siteId?: boolean; - storeUrl?: boolean; - teamId?: boolean; updatedAt?: boolean; webcredentials?: boolean; site?: { @@ -3659,6 +3859,7 @@ export type PlatformSiteSelect = { activeCommitId?: boolean; bucketId?: boolean; createdAt?: boolean; + createdByPrincipal?: boolean; description?: boolean; id?: boolean; installationId?: boolean; @@ -3668,12 +3869,16 @@ export type PlatformSiteSelect = { resourceId?: boolean; title?: boolean; updatedAt?: boolean; + updatedByPrincipal?: boolean; platformEmailSiteIdentityBySiteId?: { select: PlatformEmailSiteIdentitySelect; }; platformSiteMetadatumBySiteId?: { select: PlatformSiteMetadatumSelect; }; + platformSiteReleaseBySiteId?: { + select: PlatformSiteReleaseSelect; + }; platformSiteWebConfigBySiteId?: { select: PlatformSiteWebConfigSelect; }; @@ -3720,6 +3925,7 @@ export type PlatformSiteDeepLinkSelect = { fallbackUrl?: boolean; id?: boolean; metadata?: boolean; + pageId?: boolean; siteId?: boolean; slug?: boolean; updatedAt?: boolean; @@ -3750,6 +3956,7 @@ export type PlatformSiteMetadatumSelect = { logo?: boolean; ogImage?: boolean; robots?: boolean; + robotsSeededFrom?: boolean; siteId?: boolean; storeId?: boolean; title?: boolean; @@ -3771,6 +3978,18 @@ export type PlatformSiteModuleSelect = { select: PlatformSiteSelect; }; }; +export type PlatformSiteReleaseSelect = { + commitId?: boolean; + createdAt?: boolean; + id?: boolean; + manifest?: boolean; + siteId?: boolean; + storeId?: boolean; + updatedAt?: boolean; + site?: { + select: PlatformSiteSelect; + }; +}; export type PlatformSiteThemeSelect = { commitId?: boolean; createdAt?: boolean; @@ -3800,6 +4019,7 @@ export type PlatformSiteWebConfigSelect = { }; export type PolicySelect = { category?: boolean; + columnRefs?: boolean; createdAt?: boolean; data?: boolean; databaseId?: boolean; @@ -3880,6 +4100,24 @@ export type PubkeySettingSelect = { select: FunctionSelect; }; }; +export type RedirectSelect = { + createdAt?: boolean; + databaseId?: boolean; + id?: boolean; + name?: boolean; + preservePath?: boolean; + preserveQuery?: boolean; + statusCode?: boolean; + toHost?: boolean; + toPath?: boolean; + updatedAt?: boolean; + routesByTargetRedirectId?: { + select: RouteSelect; + first?: number; + filter?: RouteFilter; + orderBy?: RouteOrderBy[]; + }; +}; export type RlsSettingSelect = { authenticateFunctionId?: boolean; authenticateSchemaId?: boolean; @@ -3925,14 +4163,17 @@ export type RouteBindingSelect = { method?: boolean; path?: boolean; priority?: boolean; + servingSiteId?: boolean; targetApiId?: boolean; targetBucketId?: boolean; targetFunctionId?: boolean; + targetRedirectId?: boolean; targetServiceId?: boolean; targetSiteId?: boolean; updatedAt?: boolean; }; export type RouteSelect = { + anonymous?: boolean; config?: boolean; createdAt?: boolean; databaseId?: boolean; @@ -3941,16 +4182,31 @@ export type RouteSelect = { isActive?: boolean; method?: boolean; path?: boolean; + previewRef?: boolean; priority?: boolean; + servingSiteId?: boolean; targetApiId?: boolean; targetBucketId?: boolean; targetFunctionId?: boolean; + targetRedirectId?: boolean; targetServiceId?: boolean; targetSiteId?: boolean; updatedAt?: boolean; domain?: { select: DomainSelect; }; + servingSite?: { + select: SiteSelect; + }; + targetApi?: { + select: ApiSelect; + }; + targetRedirect?: { + select: RedirectSelect; + }; + targetSite?: { + select: SiteSelect; + }; }; export type SchemaSelect = { apiExposure?: boolean; @@ -4045,16 +4301,12 @@ export type SchemaGrantSelect = { }; }; export type SiteAppLinkSelect = { - appIdentifier?: boolean; + appStoreIdentityId?: boolean; createdAt?: boolean; databaseId?: boolean; id?: boolean; pathComponents?: boolean; - platform?: boolean; - sha256CertFingerprints?: boolean; siteId?: boolean; - storeUrl?: boolean; - teamId?: boolean; updatedAt?: boolean; webcredentials?: boolean; site?: { @@ -4065,6 +4317,7 @@ export type SiteSelect = { activeCommitId?: boolean; bucketId?: boolean; createdAt?: boolean; + createdByPrincipal?: boolean; databaseId?: boolean; description?: boolean; id?: boolean; @@ -4075,12 +4328,16 @@ export type SiteSelect = { resourceId?: boolean; title?: boolean; updatedAt?: boolean; + updatedByPrincipal?: boolean; emailSiteIdentity?: { select: EmailSiteIdentitySelect; }; siteMetadatum?: { select: SiteMetadatumSelect; }; + siteRelease?: { + select: SiteReleaseSelect; + }; siteWebConfig?: { select: SiteWebConfigSelect; }; @@ -4090,6 +4347,12 @@ export type SiteSelect = { filter?: PageFilter; orderBy?: PageOrderBy[]; }; + routesByServingSiteId?: { + select: RouteSelect; + first?: number; + filter?: RouteFilter; + orderBy?: RouteOrderBy[]; + }; siteAppLinks?: { select: SiteAppLinkSelect; first?: number; @@ -4128,6 +4391,7 @@ export type SiteDeepLinkSelect = { fallbackUrl?: boolean; id?: boolean; metadata?: boolean; + pageId?: boolean; siteId?: boolean; slug?: boolean; updatedAt?: boolean; @@ -4160,6 +4424,7 @@ export type SiteMetadatumSelect = { logo?: boolean; ogImage?: boolean; robots?: boolean; + robotsSeededFrom?: boolean; siteId?: boolean; storeId?: boolean; title?: boolean; @@ -4182,6 +4447,19 @@ export type SiteModuleSelect = { select: SiteSelect; }; }; +export type SiteReleaseSelect = { + commitId?: boolean; + createdAt?: boolean; + databaseId?: boolean; + id?: boolean; + manifest?: boolean; + siteId?: boolean; + storeId?: boolean; + updatedAt?: boolean; + site?: { + select: SiteSelect; + }; +}; export type SiteThemeSelect = { commitId?: boolean; createdAt?: boolean; @@ -4241,6 +4519,21 @@ export type SpatialRelationSelect = { select: TableSelect; }; }; +export type SqlActionSelect = { + actionId?: boolean; + actionName?: boolean; + actorId?: boolean; + content?: boolean; + createdAt?: boolean; + databaseId?: boolean; + deploy?: boolean; + deps?: boolean; + id?: boolean; + name?: boolean; + payload?: boolean; + revert?: boolean; + verify?: boolean; +}; export type TableBehaviorSelect = { createdAt?: boolean; databaseId?: boolean; @@ -4448,16 +4741,25 @@ export type TriggerSelect = { createdAt?: boolean; databaseId?: boolean; event?: boolean; + events?: boolean; + forEachRow?: boolean; + functionId?: boolean; functionName?: boolean; id?: boolean; + kind?: boolean; name?: boolean; smartTags?: boolean; tableId?: boolean; tags?: boolean; + timing?: boolean; updatedAt?: boolean; + whenAst?: boolean; database?: { select: DatabaseSelect; }; + function?: { + select: FunctionSelect; + }; table?: { select: TableSelect; }; @@ -4765,6 +5067,8 @@ export interface ApiSettingFilter { enableDirectUploads?: BooleanFilter; /** Filter by the object’s `enableI18N` field. */ enableI18N?: BooleanFilter; + /** Filter by the object’s `enableIntrospection` field. */ + enableIntrospection?: BooleanFilter; /** Filter by the object’s `enableLlm` field. */ enableLlm?: BooleanFilter; /** Filter by the object’s `enableLtree` field. */ @@ -4781,80 +5085,70 @@ export interface ApiSettingFilter { enableSearch?: BooleanFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `idleInTransactionTimeoutMs` field. */ + idleInTransactionTimeoutMs?: BigIntFilter; + /** Filter by the object’s `lockTimeoutMs` field. */ + lockTimeoutMs?: BigIntFilter; + /** Filter by the object’s `maxConcurrentRequests` field. */ + maxConcurrentRequests?: IntFilter; + /** Filter by the object’s `maxPageSize` field. */ + maxPageSize?: IntFilter; + /** Filter by the object’s `maxQueryCost` field. */ + maxQueryCost?: IntFilter; + /** Filter by the object’s `maxQueryDepth` field. */ + maxQueryDepth?: IntFilter; + /** Filter by the object’s `maxQueueWaitMs` field. */ + maxQueueWaitMs?: IntFilter; + /** Filter by the object’s `maxRequestBytes` field. */ + maxRequestBytes?: IntFilter; /** Negates the expression. */ not?: ApiSettingFilter; /** Filter by the object’s `options` field. */ options?: JSONFilter; /** Checks for any expressions in this list. */ or?: ApiSettingFilter[]; + /** Filter by the object’s `rateLimitBurst` field. */ + rateLimitBurst?: IntFilter; + /** Filter by the object’s `rateLimitRpm` field. */ + rateLimitRpm?: IntFilter; /** Filter by the object’s `statementTimeoutMs` field. */ statementTimeoutMs?: BigIntFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } -export interface AppComponentFilter { - /** Checks for all expressions in this list. */ - and?: AppComponentFilter[]; - /** Filter by the object’s `app` relation. */ - app?: AppFilter; - /** Filter by the object’s `appId` field. */ - appId?: UUIDFilter; - /** Filter by the object’s `componentApiId` field. */ - componentApiId?: UUIDFilter; - /** Filter by the object’s `componentDomainId` field. */ - componentDomainId?: UUIDFilter; - /** Filter by the object’s `componentInstallationId` field. */ - componentInstallationId?: UUIDFilter; - /** Filter by the object’s `componentSiteId` field. */ - componentSiteId?: UUIDFilter; - /** Filter by the object’s `componentType` field. */ - componentType?: StringFilter; - /** Filter by the object’s `config` field. */ - config?: 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?: AppComponentFilter; - /** Checks for any expressions in this list. */ - or?: AppComponentFilter[]; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -export interface AppFilter { +export interface AstMigrationFilter { + /** Filter by the object’s `actionId` field. */ + actionId?: UUIDFilter; + /** Filter by the object’s `actionName` field. */ + actionName?: StringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: AppFilter[]; - /** Filter by the object’s `appComponents` relation. */ - appComponents?: AppToManyAppComponentFilter; - /** `appComponents` exist. */ - appComponentsExist?: boolean; - /** Filter by the object’s `config` field. */ - config?: JSONFilter; + and?: AstMigrationFilter[]; /** 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 `deploy` field. */ + deploy?: JSONFilter; + /** Filter by the object’s `deploys` field. */ + deploys?: StringFilter; /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isPublished` field. */ - isPublished?: BooleanFilter; + id?: IntFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; /** Negates the expression. */ - not?: AppFilter; + not?: AstMigrationFilter; /** Checks for any expressions in this list. */ - or?: AppFilter[]; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `title` field. */ - title?: StringFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; + or?: AstMigrationFilter[]; + /** Filter by the object’s `payload` field. */ + payload?: JSONFilter; + /** Filter by the object’s `requires` field. */ + requires?: StringListFilter; + /** Filter by the object’s `revert` field. */ + revert?: JSONFilter; + /** Filter by the object’s `verify` field. */ + verify?: JSONFilter; } export interface CheckConstraintFilter { /** Checks for all expressions in this list. */ @@ -5123,6 +5417,8 @@ export interface DatabaseSettingFilter { databaseId?: UUIDFilter; /** Filter by the object’s `enableAggregates` field. */ enableAggregates?: BooleanFilter; + /** Filter by the object’s `enableBilling` field. */ + enableBilling?: BooleanFilter; /** Filter by the object’s `enableBulk` field. */ enableBulk?: BooleanFilter; /** Filter by the object’s `enableConnectionFilter` field. */ @@ -5131,6 +5427,8 @@ export interface DatabaseSettingFilter { enableDirectUploads?: BooleanFilter; /** Filter by the object’s `enableI18N` field. */ enableI18N?: BooleanFilter; + /** Filter by the object’s `enableIntrospection` field. */ + enableIntrospection?: BooleanFilter; /** Filter by the object’s `enableLlm` field. */ enableLlm?: BooleanFilter; /** Filter by the object’s `enableLtree` field. */ @@ -5147,14 +5445,34 @@ export interface DatabaseSettingFilter { enableSearch?: BooleanFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `idleInTransactionTimeoutMs` field. */ + idleInTransactionTimeoutMs?: BigIntFilter; /** Filter by the object’s `labels` field. */ labels?: JSONFilter; + /** Filter by the object’s `lockTimeoutMs` field. */ + lockTimeoutMs?: BigIntFilter; + /** Filter by the object’s `maxConcurrentRequests` field. */ + maxConcurrentRequests?: IntFilter; + /** Filter by the object’s `maxPageSize` field. */ + maxPageSize?: IntFilter; + /** Filter by the object’s `maxQueryCost` field. */ + maxQueryCost?: IntFilter; + /** Filter by the object’s `maxQueryDepth` field. */ + maxQueryDepth?: IntFilter; + /** Filter by the object’s `maxQueueWaitMs` field. */ + maxQueueWaitMs?: IntFilter; + /** Filter by the object’s `maxRequestBytes` field. */ + maxRequestBytes?: IntFilter; /** Negates the expression. */ not?: DatabaseSettingFilter; /** Filter by the object’s `options` field. */ options?: JSONFilter; /** Checks for any expressions in this list. */ or?: DatabaseSettingFilter[]; + /** Filter by the object’s `rateLimitBurst` field. */ + rateLimitBurst?: IntFilter; + /** Filter by the object’s `rateLimitRpm` field. */ + rateLimitRpm?: IntFilter; /** Filter by the object’s `statementTimeoutMs` field. */ statementTimeoutMs?: BigIntFilter; /** Filter by the object’s `updatedAt` field. */ @@ -5235,6 +5553,8 @@ export interface DeriveFilter { databaseId?: UUIDFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `includeGrants` field. */ + includeGrants?: BooleanFilter; /** Filter by the object’s `includeMutations` field. */ includeMutations?: BooleanFilter; /** Filter by the object’s `kind` field. */ @@ -5263,6 +5583,8 @@ export interface DomainFilter { config?: JSONFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; /** Filter by the object’s `domainEvents` relation. */ @@ -5275,10 +5597,6 @@ export interface DomainFilter { domainVerificationsExist?: boolean; /** Filter by the object’s `hostname` field. */ hostname?: StringFilter; - /** Filter by the object’s `httpRoutes` relation. */ - httpRoutes?: DomainToManyHttpRouteFilter; - /** `httpRoutes` exist. */ - httpRoutesExist?: boolean; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `isPublished` field. */ @@ -5305,6 +5623,8 @@ export interface DomainFilter { tlsStatus?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; /** Filter by the object’s `verificationStatus` field. */ verificationStatus?: StringFilter; /** Filter by the object’s `verifiedAt` field. */ @@ -5923,22 +6243,59 @@ export interface FullTextSearchFilter { export interface FunctionFilter { /** Checks for all expressions in this list. */ and?: FunctionFilter[]; + /** Filter by the object’s `apiExposed` field. */ + apiExposed?: BooleanFilter; + /** Filter by the object’s `arguments` field. */ + arguments?: JSONFilter; + /** Filter by the object’s `bodyAst` field. */ + bodyAst?: JSONFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `data` field. */ + data?: JSONFilter; /** Filter by the object’s `database` relation. */ database?: DatabaseFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `functionType` field. */ + functionType?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `isStrict` field. */ + isStrict?: BooleanFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; /** Negates the expression. */ not?: FunctionFilter; /** Checks for any expressions in this list. */ or?: FunctionFilter[]; + /** Filter by the object’s `returns` field. */ + returns?: JSONFilter; /** Filter by the object’s `schema` relation. */ schema?: SchemaFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; + /** Filter by the object’s `securityInvoker` field. */ + securityInvoker?: BooleanFilter; + /** Filter by the object’s `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Filter by the object’s `triggers` relation. */ + triggers?: FunctionToManyTriggerFilter; + /** `triggers` exist. */ + triggersExist?: boolean; + /** Filter by the object’s `volatility` field. */ + volatility?: StringFilter; +} +export interface GetSitePreviewsRecordFilter { + commitId?: UUIDFilter; + name?: StringFilter; + and?: GetSitePreviewsRecordFilter[]; + or?: GetSitePreviewsRecordFilter[]; + not?: GetSitePreviewsRecordFilter; } export interface HostnameBindingFilter { /** Checks for all expressions in this list. */ @@ -5968,41 +6325,29 @@ export interface HostnameBindingFilter { /** Filter by the object’s `verificationStatus` field. */ verificationStatus?: StringFilter; } -export interface HttpRouteFilter { +export interface IdentityProviderRegistryFilter { /** Checks for all expressions in this list. */ - and?: HttpRouteFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `domain` relation. */ - domain?: DomainFilter; - /** Filter by the object’s `domainId` field. */ - domainId?: 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; + and?: IdentityProviderRegistryFilter[]; + /** Filter by the object’s `authorizationUrl` field. */ + authorizationUrl?: StringFilter; + /** Filter by the object’s `displayName` field. */ + displayName?: StringFilter; + /** Filter by the object’s `issuerUrl` field. */ + issuerUrl?: StringFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; /** Negates the expression. */ - not?: HttpRouteFilter; + not?: IdentityProviderRegistryFilter; /** 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; - /** Filter by the object’s `targetId` field. */ - targetId?: UUIDFilter; - /** Filter by the object’s `targetKind` field. */ - targetKind?: StringFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; + or?: IdentityProviderRegistryFilter[]; + /** Filter by the object’s `scopes` field. */ + scopes?: StringListFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `tokenUrl` field. */ + tokenUrl?: StringFilter; + /** Filter by the object’s `userinfoUrl` field. */ + userinfoUrl?: StringFilter; } export interface IndexFilter { /** Filter by the object’s `accessMethod` field. */ @@ -6031,6 +6376,8 @@ export interface IndexFilter { name?: StringFilter; /** Negates the expression. */ not?: IndexFilter; + /** Filter by the object’s `nullsNotDistinct` field. */ + nullsNotDistinct?: BooleanFilter; /** Filter by the object’s `opClasses` field. */ opClasses?: StringListFilter; /** Filter by the object’s `options` field. */ @@ -6061,6 +6408,8 @@ export interface ManagedDomainFilter { certStatus?: StringFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; /** Filter by the object’s `domain` field. */ @@ -6087,6 +6436,8 @@ export interface ManagedDomainFilter { tlsStatus?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; /** Filter by the object’s `verificationStatus` field. */ verificationStatus?: StringFilter; /** Filter by the object’s `verifiedAt` field. */ @@ -6131,6 +6482,8 @@ export interface PageFilter { not?: PageFilter; /** Checks for any expressions in this list. */ or?: PageFilter[]; + /** Filter by the object’s `seededFrom` field. */ + seededFrom?: JSONFilter; /** Filter by the object’s `site` relation. */ site?: SiteFilter; /** Filter by the object’s `siteId` field. */ @@ -6261,6 +6614,8 @@ export interface PlatformApiSettingFilter { enableDirectUploads?: BooleanFilter; /** Filter by the object’s `enableI18N` field. */ enableI18N?: BooleanFilter; + /** Filter by the object’s `enableIntrospection` field. */ + enableIntrospection?: BooleanFilter; /** Filter by the object’s `enableLlm` field. */ enableLlm?: BooleanFilter; /** Filter by the object’s `enableLtree` field. */ @@ -6277,12 +6632,32 @@ export interface PlatformApiSettingFilter { enableSearch?: BooleanFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `idleInTransactionTimeoutMs` field. */ + idleInTransactionTimeoutMs?: BigIntFilter; + /** Filter by the object’s `lockTimeoutMs` field. */ + lockTimeoutMs?: BigIntFilter; + /** Filter by the object’s `maxConcurrentRequests` field. */ + maxConcurrentRequests?: IntFilter; + /** Filter by the object’s `maxPageSize` field. */ + maxPageSize?: IntFilter; + /** Filter by the object’s `maxQueryCost` field. */ + maxQueryCost?: IntFilter; + /** Filter by the object’s `maxQueryDepth` field. */ + maxQueryDepth?: IntFilter; + /** Filter by the object’s `maxQueueWaitMs` field. */ + maxQueueWaitMs?: IntFilter; + /** Filter by the object’s `maxRequestBytes` field. */ + maxRequestBytes?: IntFilter; /** Negates the expression. */ not?: PlatformApiSettingFilter; /** Filter by the object’s `options` field. */ options?: JSONFilter; /** Checks for any expressions in this list. */ or?: PlatformApiSettingFilter[]; + /** Filter by the object’s `rateLimitBurst` field. */ + rateLimitBurst?: IntFilter; + /** Filter by the object’s `rateLimitRpm` field. */ + rateLimitRpm?: IntFilter; /** Filter by the object’s `statementTimeoutMs` field. */ statementTimeoutMs?: BigIntFilter; /** Filter by the object’s `updatedAt` field. */ @@ -6317,6 +6692,8 @@ export interface PlatformDomainFilter { config?: JSONFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `hostname` field. */ hostname?: StringFilter; /** Filter by the object’s `id` field. */ @@ -6349,6 +6726,8 @@ export interface PlatformDomainFilter { tlsStatus?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; /** Filter by the object’s `verificationStatus` field. */ verificationStatus?: StringFilter; /** Filter by the object’s `verifiedAt` field. */ @@ -6544,6 +6923,13 @@ export interface PlatformEmailSiteIdentityFilter { /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } +export interface PlatformGetSitePreviewsRecordFilter { + commitId?: UUIDFilter; + name?: StringFilter; + and?: PlatformGetSitePreviewsRecordFilter[]; + or?: PlatformGetSitePreviewsRecordFilter[]; + not?: PlatformGetSitePreviewsRecordFilter; +} export interface PlatformManagedDomainFilter { /** Filter by the object’s `allowPublicUsage` field. */ allowPublicUsage?: BooleanFilter; @@ -6555,6 +6941,8 @@ export interface PlatformManagedDomainFilter { certStatus?: StringFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `domain` field. */ domain?: StringFilter; /** Filter by the object’s `id` field. */ @@ -6579,6 +6967,8 @@ export interface PlatformManagedDomainFilter { tlsStatus?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; /** Filter by the object’s `verificationStatus` field. */ verificationStatus?: StringFilter; /** Filter by the object’s `verifiedAt` field. */ @@ -6599,6 +6989,8 @@ export interface PlatformPageFilter { not?: PlatformPageFilter; /** Checks for any expressions in this list. */ or?: PlatformPageFilter[]; + /** Filter by the object’s `seededFrom` field. */ + seededFrom?: JSONFilter; /** Filter by the object’s `site` relation. */ site?: PlatformSiteFilter; /** Filter by the object’s `siteId` field. */ @@ -6613,8 +7005,8 @@ export interface PlatformPageFilter { export interface PlatformSiteAppLinkFilter { /** Checks for all expressions in this list. */ and?: PlatformSiteAppLinkFilter[]; - /** Filter by the object’s `appIdentifier` field. */ - appIdentifier?: StringFilter; + /** Filter by the object’s `appStoreIdentityId` field. */ + appStoreIdentityId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -6625,18 +7017,10 @@ export interface PlatformSiteAppLinkFilter { or?: PlatformSiteAppLinkFilter[]; /** Filter by the object’s `pathComponents` field. */ pathComponents?: StringListFilter; - /** Filter by the object’s `platform` field. */ - platform?: StringFilter; - /** Filter by the object’s `sha256CertFingerprints` field. */ - sha256CertFingerprints?: StringListFilter; /** Filter by the object’s `site` relation. */ site?: PlatformSiteFilter; /** Filter by the object’s `siteId` field. */ siteId?: UUIDFilter; - /** Filter by the object’s `storeUrl` field. */ - storeUrl?: StringFilter; - /** Filter by the object’s `teamId` field. */ - teamId?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; /** Filter by the object’s `webcredentials` field. */ @@ -6651,6 +7035,8 @@ export interface PlatformSiteFilter { bucketId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `description` field. */ description?: StringFilter; /** Filter by the object’s `id` field. */ @@ -6695,6 +7081,10 @@ export interface PlatformSiteFilter { platformSiteModulesBySiteId?: PlatformSiteToManyPlatformSiteModuleFilter; /** `platformSiteModulesBySiteId` exist. */ platformSiteModulesBySiteIdExist?: boolean; + /** Filter by the object’s `platformSiteReleaseBySiteId` relation. */ + platformSiteReleaseBySiteId?: PlatformSiteReleaseFilter; + /** A related `platformSiteReleaseBySiteId` exists. */ + platformSiteReleaseBySiteIdExists?: boolean; /** Filter by the object’s `platformSiteThemesBySiteId` relation. */ platformSiteThemesBySiteId?: PlatformSiteToManyPlatformSiteThemeFilter; /** `platformSiteThemesBySiteId` exist. */ @@ -6709,6 +7099,8 @@ export interface PlatformSiteFilter { title?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } export interface PlatformSiteDeepLinkFilter { /** Checks for all expressions in this list. */ @@ -6727,6 +7119,8 @@ export interface PlatformSiteDeepLinkFilter { not?: PlatformSiteDeepLinkFilter; /** Checks for any expressions in this list. */ or?: PlatformSiteDeepLinkFilter[]; + /** Filter by the object’s `pageId` field. */ + pageId?: UUIDFilter; /** Filter by the object’s `site` relation. */ site?: PlatformSiteFilter; /** Filter by the object’s `siteId` field. */ @@ -6787,6 +7181,8 @@ export interface PlatformSiteMetadatumFilter { or?: PlatformSiteMetadatumFilter[]; /** Filter by the object’s `robots` field. */ robots?: StringFilter; + /** Filter by the object’s `robotsSeededFrom` field. */ + robotsSeededFrom?: JSONFilter; /** Filter by the object’s `site` relation. */ site?: PlatformSiteFilter; /** Filter by the object’s `siteId` field. */ @@ -6822,6 +7218,30 @@ export interface PlatformSiteModuleFilter { /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } +export interface PlatformSiteReleaseFilter { + /** Checks for all expressions in this list. */ + and?: PlatformSiteReleaseFilter[]; + /** Filter by the object’s `commitId` field. */ + commitId?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `manifest` field. */ + manifest?: JSONFilter; + /** Negates the expression. */ + not?: PlatformSiteReleaseFilter; + /** Checks for any expressions in this list. */ + or?: PlatformSiteReleaseFilter[]; + /** Filter by the object’s `site` relation. */ + site?: PlatformSiteFilter; + /** Filter by the object’s `siteId` field. */ + siteId?: UUIDFilter; + /** Filter by the object’s `storeId` field. */ + storeId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} export interface PlatformSiteThemeFilter { /** Checks for all expressions in this list. */ and?: PlatformSiteThemeFilter[]; @@ -6881,6 +7301,8 @@ export interface PolicyFilter { and?: PolicyFilter[]; /** Filter by the object’s `category` field. */ category?: ObjectCategoryFilter; + /** Filter by the object’s `columnRefs` field. */ + columnRefs?: StringListFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `data` field. */ @@ -7022,6 +7444,38 @@ export interface PubkeySettingFilter { /** Filter by the object’s `userField` field. */ userField?: StringFilter; } +export interface RedirectFilter { + /** Checks for all expressions in this list. */ + and?: RedirectFilter[]; + /** 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 `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: RedirectFilter; + /** Checks for any expressions in this list. */ + or?: RedirectFilter[]; + /** Filter by the object’s `preservePath` field. */ + preservePath?: BooleanFilter; + /** Filter by the object’s `preserveQuery` field. */ + preserveQuery?: BooleanFilter; + /** Filter by the object’s `routesByTargetRedirectId` relation. */ + routesByTargetRedirectId?: RedirectToManyRouteFilter; + /** `routesByTargetRedirectId` exist. */ + routesByTargetRedirectIdExist?: boolean; + /** Filter by the object’s `statusCode` field. */ + statusCode?: IntFilter; + /** Filter by the object’s `toHost` field. */ + toHost?: StringFilter; + /** Filter by the object’s `toPath` field. */ + toPath?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} export interface RlsSettingFilter { /** Checks for all expressions in this list. */ and?: RlsSettingFilter[]; @@ -7105,12 +7559,16 @@ export interface RouteBindingFilter { path?: StringFilter; /** Filter by the object’s `priority` field. */ priority?: IntFilter; + /** Filter by the object’s `servingSiteId` field. */ + servingSiteId?: UUIDFilter; /** Filter by the object’s `targetApiId` field. */ targetApiId?: UUIDFilter; /** Filter by the object’s `targetBucketId` field. */ targetBucketId?: UUIDFilter; /** Filter by the object’s `targetFunctionId` field. */ targetFunctionId?: UUIDFilter; + /** Filter by the object’s `targetRedirectId` field. */ + targetRedirectId?: UUIDFilter; /** Filter by the object’s `targetServiceId` field. */ targetServiceId?: UUIDFilter; /** Filter by the object’s `targetSiteId` field. */ @@ -7121,6 +7579,8 @@ export interface RouteBindingFilter { export interface RouteFilter { /** Checks for all expressions in this list. */ and?: RouteFilter[]; + /** Filter by the object’s `anonymous` field. */ + anonymous?: BooleanFilter; /** Filter by the object’s `config` field. */ config?: JSONFilter; /** Filter by the object’s `createdAt` field. */ @@ -7143,16 +7603,38 @@ export interface RouteFilter { or?: RouteFilter[]; /** Filter by the object’s `path` field. */ path?: StringFilter; + /** Filter by the object’s `previewRef` field. */ + previewRef?: StringFilter; /** Filter by the object’s `priority` field. */ priority?: IntFilter; + /** Filter by the object’s `servingSite` relation. */ + servingSite?: SiteFilter; + /** A related `servingSite` exists. */ + servingSiteExists?: boolean; + /** Filter by the object’s `servingSiteId` field. */ + servingSiteId?: UUIDFilter; + /** Filter by the object’s `targetApi` relation. */ + targetApi?: ApiFilter; + /** A related `targetApi` exists. */ + targetApiExists?: boolean; /** Filter by the object’s `targetApiId` field. */ targetApiId?: UUIDFilter; /** Filter by the object’s `targetBucketId` field. */ targetBucketId?: UUIDFilter; /** Filter by the object’s `targetFunctionId` field. */ targetFunctionId?: UUIDFilter; + /** Filter by the object’s `targetRedirect` relation. */ + targetRedirect?: RedirectFilter; + /** A related `targetRedirect` exists. */ + targetRedirectExists?: boolean; + /** Filter by the object’s `targetRedirectId` field. */ + targetRedirectId?: UUIDFilter; /** Filter by the object’s `targetServiceId` field. */ targetServiceId?: UUIDFilter; + /** Filter by the object’s `targetSite` relation. */ + targetSite?: SiteFilter; + /** A related `targetSite` exists. */ + targetSiteExists?: boolean; /** Filter by the object’s `targetSiteId` field. */ targetSiteId?: UUIDFilter; /** Filter by the object’s `updatedAt` field. */ @@ -7261,8 +7743,8 @@ export interface SchemaGrantFilter { export interface SiteAppLinkFilter { /** Checks for all expressions in this list. */ and?: SiteAppLinkFilter[]; - /** Filter by the object’s `appIdentifier` field. */ - appIdentifier?: StringFilter; + /** Filter by the object’s `appStoreIdentityId` field. */ + appStoreIdentityId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `databaseId` field. */ @@ -7275,18 +7757,10 @@ export interface SiteAppLinkFilter { or?: SiteAppLinkFilter[]; /** Filter by the object’s `pathComponents` field. */ pathComponents?: StringListFilter; - /** Filter by the object’s `platform` field. */ - platform?: StringFilter; - /** Filter by the object’s `sha256CertFingerprints` field. */ - sha256CertFingerprints?: StringListFilter; /** Filter by the object’s `site` relation. */ site?: SiteFilter; /** Filter by the object’s `siteId` field. */ siteId?: UUIDFilter; - /** Filter by the object’s `storeUrl` field. */ - storeUrl?: StringFilter; - /** Filter by the object’s `teamId` field. */ - teamId?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; /** Filter by the object’s `webcredentials` field. */ @@ -7301,6 +7775,8 @@ export interface SiteFilter { bucketId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; /** Filter by the object’s `description` field. */ @@ -7329,6 +7805,10 @@ export interface SiteFilter { pagesExist?: boolean; /** Filter by the object’s `resourceId` field. */ resourceId?: UUIDFilter; + /** Filter by the object’s `routesByServingSiteId` relation. */ + routesByServingSiteId?: SiteToManyRouteFilter; + /** `routesByServingSiteId` exist. */ + routesByServingSiteIdExist?: boolean; /** Filter by the object’s `siteAppLinks` relation. */ siteAppLinks?: SiteToManySiteAppLinkFilter; /** `siteAppLinks` exist. */ @@ -7349,6 +7829,10 @@ export interface SiteFilter { siteModules?: SiteToManySiteModuleFilter; /** `siteModules` exist. */ siteModulesExist?: boolean; + /** Filter by the object’s `siteRelease` relation. */ + siteRelease?: SiteReleaseFilter; + /** A related `siteRelease` exists. */ + siteReleaseExists?: boolean; /** Filter by the object’s `siteThemes` relation. */ siteThemes?: SiteToManySiteThemeFilter; /** `siteThemes` exist. */ @@ -7361,6 +7845,8 @@ export interface SiteFilter { title?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } export interface SiteDeepLinkFilter { /** Checks for all expressions in this list. */ @@ -7381,6 +7867,8 @@ export interface SiteDeepLinkFilter { not?: SiteDeepLinkFilter; /** Checks for any expressions in this list. */ or?: SiteDeepLinkFilter[]; + /** Filter by the object’s `pageId` field. */ + pageId?: UUIDFilter; /** Filter by the object’s `site` relation. */ site?: SiteFilter; /** Filter by the object’s `siteId` field. */ @@ -7445,6 +7933,8 @@ export interface SiteMetadatumFilter { or?: SiteMetadatumFilter[]; /** Filter by the object’s `robots` field. */ robots?: StringFilter; + /** Filter by the object’s `robotsSeededFrom` field. */ + robotsSeededFrom?: JSONFilter; /** Filter by the object’s `site` relation. */ site?: SiteFilter; /** Filter by the object’s `siteId` field. */ @@ -7482,6 +7972,32 @@ export interface SiteModuleFilter { /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } +export interface SiteReleaseFilter { + /** Checks for all expressions in this list. */ + and?: SiteReleaseFilter[]; + /** 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 `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `manifest` field. */ + manifest?: JSONFilter; + /** Negates the expression. */ + not?: SiteReleaseFilter; + /** Checks for any expressions in this list. */ + or?: SiteReleaseFilter[]; + /** 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 `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} export interface SiteThemeFilter { /** Checks for all expressions in this list. */ and?: SiteThemeFilter[]; @@ -7584,6 +8100,38 @@ export interface SpatialRelationFilter { /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } +export interface SqlActionFilter { + /** Filter by the object’s `actionId` field. */ + actionId?: UUIDFilter; + /** Filter by the object’s `actionName` field. */ + actionName?: StringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: SqlActionFilter[]; + /** Filter by the object’s `content` field. */ + content?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `deploy` field. */ + deploy?: StringFilter; + /** Filter by the object’s `deps` field. */ + deps?: StringListFilter; + /** Filter by the object’s `id` field. */ + id?: IntFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: SqlActionFilter; + /** Checks for any expressions in this list. */ + or?: SqlActionFilter[]; + /** Filter by the object’s `revert` field. */ + revert?: StringFilter; + /** Filter by the object’s `verify` field. */ + verify?: StringFilter; +} export interface TableBehaviorFilter { /** Checks for all expressions in this list. */ and?: TableBehaviorFilter[]; @@ -7809,10 +8357,22 @@ export interface TriggerFilter { databaseId?: UUIDFilter; /** Filter by the object’s `event` field. */ event?: StringFilter; + /** Filter by the object’s `events` field. */ + events?: StringListFilter; + /** Filter by the object’s `forEachRow` field. */ + forEachRow?: BooleanFilter; + /** Filter by the object’s `function` relation. */ + function?: FunctionFilter; + /** A related `function` exists. */ + functionExists?: boolean; + /** Filter by the object’s `functionId` field. */ + functionId?: UUIDFilter; /** Filter by the object’s `functionName` field. */ functionName?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; /** Negates the expression. */ @@ -7827,8 +8387,12 @@ export interface TriggerFilter { tableId?: UUIDFilter; /** Filter by the object’s `tags` field. */ tags?: StringListFilter; + /** Filter by the object’s `timing` field. */ + timing?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `whenAst` field. */ + whenAst?: JSONFilter; } export interface TriggerFunctionFilter { /** Checks for all expressions in this list. */ @@ -8234,6 +8798,8 @@ export type ApiSettingOrderBy = | 'ENABLE_DIRECT_UPLOADS_DESC' | 'ENABLE_I18N_ASC' | 'ENABLE_I18N_DESC' + | 'ENABLE_INTROSPECTION_ASC' + | 'ENABLE_INTROSPECTION_DESC' | 'ENABLE_LLM_ASC' | 'ENABLE_LLM_DESC' | 'ENABLE_LTREE_ASC' @@ -8248,67 +8814,65 @@ export type ApiSettingOrderBy = | 'ENABLE_REALTIME_DESC' | 'ENABLE_SEARCH_ASC' | 'ENABLE_SEARCH_DESC' + | 'IDLE_IN_TRANSACTION_TIMEOUT_MS_ASC' + | 'IDLE_IN_TRANSACTION_TIMEOUT_MS_DESC' | 'ID_ASC' | 'ID_DESC' + | 'LOCK_TIMEOUT_MS_ASC' + | 'LOCK_TIMEOUT_MS_DESC' + | 'MAX_CONCURRENT_REQUESTS_ASC' + | 'MAX_CONCURRENT_REQUESTS_DESC' + | 'MAX_PAGE_SIZE_ASC' + | 'MAX_PAGE_SIZE_DESC' + | 'MAX_QUERY_COST_ASC' + | 'MAX_QUERY_COST_DESC' + | 'MAX_QUERY_DEPTH_ASC' + | 'MAX_QUERY_DEPTH_DESC' + | 'MAX_QUEUE_WAIT_MS_ASC' + | 'MAX_QUEUE_WAIT_MS_DESC' + | 'MAX_REQUEST_BYTES_ASC' + | 'MAX_REQUEST_BYTES_DESC' | 'NATURAL' | 'OPTIONS_ASC' | 'OPTIONS_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' + | 'RATE_LIMIT_BURST_ASC' + | 'RATE_LIMIT_BURST_DESC' + | 'RATE_LIMIT_RPM_ASC' + | 'RATE_LIMIT_RPM_DESC' | 'STATEMENT_TIMEOUT_MS_ASC' | 'STATEMENT_TIMEOUT_MS_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type AppComponentOrderBy = - | 'APP_ID_ASC' - | 'APP_ID_DESC' - | 'COMPONENT_API_ID_ASC' - | 'COMPONENT_API_ID_DESC' - | 'COMPONENT_DOMAIN_ID_ASC' - | 'COMPONENT_DOMAIN_ID_DESC' - | 'COMPONENT_INSTALLATION_ID_ASC' - | 'COMPONENT_INSTALLATION_ID_DESC' - | 'COMPONENT_SITE_ID_ASC' - | 'COMPONENT_SITE_ID_DESC' - | 'COMPONENT_TYPE_ASC' - | 'COMPONENT_TYPE_DESC' - | 'CONFIG_ASC' - | 'CONFIG_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type AppOrderBy = - | 'CONFIG_ASC' - | 'CONFIG_DESC' +export type AstMigrationOrderBy = + | 'ACTION_ID_ASC' + | 'ACTION_ID_DESC' + | 'ACTION_NAME_ASC' + | 'ACTION_NAME_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' + | 'DEPLOYS_ASC' + | 'DEPLOYS_DESC' + | 'DEPLOY_ASC' + | 'DEPLOY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'IS_PUBLISHED_ASC' - | 'IS_PUBLISHED_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'STATUS_ASC' - | 'STATUS_DESC' - | 'TITLE_ASC' - | 'TITLE_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; + | 'PAYLOAD_ASC' + | 'PAYLOAD_DESC' + | 'REQUIRES_ASC' + | 'REQUIRES_DESC' + | 'REVERT_ASC' + | 'REVERT_DESC' + | 'VERIFY_ASC' + | 'VERIFY_DESC'; export type CheckConstraintOrderBy = | 'CATEGORY_ASC' | 'CATEGORY_DESC' @@ -8410,6 +8974,8 @@ export type DatabaseSettingOrderBy = | 'DATABASE_ID_DESC' | 'ENABLE_AGGREGATES_ASC' | 'ENABLE_AGGREGATES_DESC' + | 'ENABLE_BILLING_ASC' + | 'ENABLE_BILLING_DESC' | 'ENABLE_BULK_ASC' | 'ENABLE_BULK_DESC' | 'ENABLE_CONNECTION_FILTER_ASC' @@ -8418,6 +8984,8 @@ export type DatabaseSettingOrderBy = | 'ENABLE_DIRECT_UPLOADS_DESC' | 'ENABLE_I18N_ASC' | 'ENABLE_I18N_DESC' + | 'ENABLE_INTROSPECTION_ASC' + | 'ENABLE_INTROSPECTION_DESC' | 'ENABLE_LLM_ASC' | 'ENABLE_LLM_DESC' | 'ENABLE_LTREE_ASC' @@ -8432,15 +9000,35 @@ export type DatabaseSettingOrderBy = | 'ENABLE_REALTIME_DESC' | 'ENABLE_SEARCH_ASC' | 'ENABLE_SEARCH_DESC' + | 'IDLE_IN_TRANSACTION_TIMEOUT_MS_ASC' + | 'IDLE_IN_TRANSACTION_TIMEOUT_MS_DESC' | 'ID_ASC' | 'ID_DESC' | 'LABELS_ASC' | 'LABELS_DESC' + | 'LOCK_TIMEOUT_MS_ASC' + | 'LOCK_TIMEOUT_MS_DESC' + | 'MAX_CONCURRENT_REQUESTS_ASC' + | 'MAX_CONCURRENT_REQUESTS_DESC' + | 'MAX_PAGE_SIZE_ASC' + | 'MAX_PAGE_SIZE_DESC' + | 'MAX_QUERY_COST_ASC' + | 'MAX_QUERY_COST_DESC' + | 'MAX_QUERY_DEPTH_ASC' + | 'MAX_QUERY_DEPTH_DESC' + | 'MAX_QUEUE_WAIT_MS_ASC' + | 'MAX_QUEUE_WAIT_MS_DESC' + | 'MAX_REQUEST_BYTES_ASC' + | 'MAX_REQUEST_BYTES_DESC' | 'NATURAL' | 'OPTIONS_ASC' | 'OPTIONS_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' + | 'RATE_LIMIT_BURST_ASC' + | 'RATE_LIMIT_BURST_DESC' + | 'RATE_LIMIT_RPM_ASC' + | 'RATE_LIMIT_RPM_DESC' | 'STATEMENT_TIMEOUT_MS_ASC' | 'STATEMENT_TIMEOUT_MS_DESC' | 'UPDATED_AT_ASC' @@ -8502,6 +9090,8 @@ export type DeriveOrderBy = | 'DATABASE_ID_DESC' | 'ID_ASC' | 'ID_DESC' + | 'INCLUDE_GRANTS_ASC' + | 'INCLUDE_GRANTS_DESC' | 'INCLUDE_MUTATIONS_ASC' | 'INCLUDE_MUTATIONS_DESC' | 'KIND_ASC' @@ -8522,6 +9112,8 @@ export type DomainOrderBy = | 'CONFIG_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'HOSTNAME_ASC' @@ -8547,6 +9139,8 @@ export type DomainOrderBy = | 'TLS_STATUS_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC' | 'VERIFICATION_STATUS_ASC' | 'VERIFICATION_STATUS_DESC' | 'VERIFIED_AT_ASC' @@ -8992,17 +9586,51 @@ export type FullTextSearchOrderBy = | 'WEIGHTS_ASC' | 'WEIGHTS_DESC'; export type FunctionOrderBy = + | 'API_EXPOSED_ASC' + | 'API_EXPOSED_DESC' + | 'ARGUMENTS_ASC' + | 'ARGUMENTS_DESC' + | 'BODY_AST_ASC' + | 'BODY_AST_DESC' + | 'CATEGORY_ASC' + | 'CATEGORY_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'DATA_ASC' + | 'DATA_DESC' + | 'FUNCTION_TYPE_ASC' + | 'FUNCTION_TYPE_DESC' | 'ID_ASC' | 'ID_DESC' + | 'IS_STRICT_ASC' + | 'IS_STRICT_DESC' + | 'KIND_ASC' + | 'KIND_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' + | 'RETURNS_ASC' + | 'RETURNS_DESC' | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC'; + | 'SCHEMA_ID_DESC' + | 'SECURITY_INVOKER_ASC' + | 'SECURITY_INVOKER_DESC' + | 'SMART_TAGS_ASC' + | 'SMART_TAGS_DESC' + | 'TAGS_ASC' + | 'TAGS_DESC' + | 'VOLATILITY_ASC' + | 'VOLATILITY_DESC'; +export type GetSitePreviewsRecordsOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'COMMIT_ID_ASC' + | 'COMMIT_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC'; export type HostnameBindingOrderBy = | 'DOMAIN_ID_ASC' | 'DOMAIN_ID_DESC' @@ -9027,36 +9655,26 @@ export type HostnameBindingOrderBy = | 'UPDATED_AT_DESC' | 'VERIFICATION_STATUS_ASC' | 'VERIFICATION_STATUS_DESC'; -export type 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' +export type IdentityProviderRegistryOrderBy = + | 'AUTHORIZATION_URL_ASC' + | 'AUTHORIZATION_URL_DESC' + | 'DISPLAY_NAME_ASC' + | 'DISPLAY_NAME_DESC' + | 'ISSUER_URL_ASC' + | 'ISSUER_URL_DESC' + | 'KIND_ASC' + | 'KIND_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'; + | 'SCOPES_ASC' + | 'SCOPES_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'TOKEN_URL_ASC' + | 'TOKEN_URL_DESC' + | 'USERINFO_URL_ASC' + | 'USERINFO_URL_DESC'; export type IndexOrderBy = | 'ACCESS_METHOD_ASC' | 'ACCESS_METHOD_DESC' @@ -9079,6 +9697,8 @@ export type IndexOrderBy = | 'NAME_ASC' | 'NAME_DESC' | 'NATURAL' + | 'NULLS_NOT_DISTINCT_ASC' + | 'NULLS_NOT_DISTINCT_DESC' | 'OPTIONS_ASC' | 'OPTIONS_DESC' | 'OP_CLASSES_ASC' @@ -9104,6 +9724,8 @@ export type ManagedDomainOrderBy = | 'CERT_STATUS_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'DOMAIN_ASC' @@ -9121,6 +9743,8 @@ export type ManagedDomainOrderBy = | 'TLS_STATUS_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC' | 'VERIFICATION_STATUS_ASC' | 'VERIFICATION_STATUS_DESC' | 'VERIFIED_AT_ASC' @@ -9157,6 +9781,8 @@ export type PageOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' + | 'SEEDED_FROM_ASC' + | 'SEEDED_FROM_DESC' | 'SITE_ID_ASC' | 'SITE_ID_DESC' | 'SLUG_ASC' @@ -9246,6 +9872,8 @@ export type PlatformApiSettingOrderBy = | 'ENABLE_DIRECT_UPLOADS_DESC' | 'ENABLE_I18N_ASC' | 'ENABLE_I18N_DESC' + | 'ENABLE_INTROSPECTION_ASC' + | 'ENABLE_INTROSPECTION_DESC' | 'ENABLE_LLM_ASC' | 'ENABLE_LLM_DESC' | 'ENABLE_LTREE_ASC' @@ -9260,13 +9888,33 @@ export type PlatformApiSettingOrderBy = | 'ENABLE_REALTIME_DESC' | 'ENABLE_SEARCH_ASC' | 'ENABLE_SEARCH_DESC' + | 'IDLE_IN_TRANSACTION_TIMEOUT_MS_ASC' + | 'IDLE_IN_TRANSACTION_TIMEOUT_MS_DESC' | 'ID_ASC' | 'ID_DESC' + | 'LOCK_TIMEOUT_MS_ASC' + | 'LOCK_TIMEOUT_MS_DESC' + | 'MAX_CONCURRENT_REQUESTS_ASC' + | 'MAX_CONCURRENT_REQUESTS_DESC' + | 'MAX_PAGE_SIZE_ASC' + | 'MAX_PAGE_SIZE_DESC' + | 'MAX_QUERY_COST_ASC' + | 'MAX_QUERY_COST_DESC' + | 'MAX_QUERY_DEPTH_ASC' + | 'MAX_QUERY_DEPTH_DESC' + | 'MAX_QUEUE_WAIT_MS_ASC' + | 'MAX_QUEUE_WAIT_MS_DESC' + | 'MAX_REQUEST_BYTES_ASC' + | 'MAX_REQUEST_BYTES_DESC' | 'NATURAL' | 'OPTIONS_ASC' | 'OPTIONS_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' + | 'RATE_LIMIT_BURST_ASC' + | 'RATE_LIMIT_BURST_DESC' + | 'RATE_LIMIT_RPM_ASC' + | 'RATE_LIMIT_RPM_DESC' | 'STATEMENT_TIMEOUT_MS_ASC' | 'STATEMENT_TIMEOUT_MS_DESC' | 'UPDATED_AT_ASC' @@ -9290,6 +9938,8 @@ export type PlatformDomainOrderBy = | 'CONFIG_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'HOSTNAME_ASC' | 'HOSTNAME_DESC' | 'ID_ASC' @@ -9313,6 +9963,8 @@ export type PlatformDomainOrderBy = | 'TLS_STATUS_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC' | 'VERIFICATION_STATUS_ASC' | 'VERIFICATION_STATUS_DESC' | 'VERIFIED_AT_ASC' @@ -9451,6 +10103,14 @@ export type PlatformEmailSiteIdentityOrderBy = | 'SITE_ID_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; +export type PlatformGetSitePreviewsRecordsOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'COMMIT_ID_ASC' + | 'COMMIT_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC'; export type PlatformManagedDomainOrderBy = | 'ALLOW_PUBLIC_USAGE_ASC' | 'ALLOW_PUBLIC_USAGE_DESC' @@ -9460,6 +10120,8 @@ export type PlatformManagedDomainOrderBy = | 'CERT_STATUS_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'DOMAIN_ASC' | 'DOMAIN_DESC' | 'ID_ASC' @@ -9475,6 +10137,8 @@ export type PlatformManagedDomainOrderBy = | 'TLS_STATUS_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC' | 'VERIFICATION_STATUS_ASC' | 'VERIFICATION_STATUS_DESC' | 'VERIFIED_AT_ASC' @@ -9491,6 +10155,8 @@ export type PlatformPageOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' + | 'SEEDED_FROM_ASC' + | 'SEEDED_FROM_DESC' | 'SITE_ID_ASC' | 'SITE_ID_DESC' | 'SLUG_ASC' @@ -9500,8 +10166,8 @@ export type PlatformPageOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; export type PlatformSiteAppLinkOrderBy = - | 'APP_IDENTIFIER_ASC' - | 'APP_IDENTIFIER_DESC' + | 'APP_STORE_IDENTITY_ID_ASC' + | 'APP_STORE_IDENTITY_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'ID_ASC' @@ -9509,18 +10175,10 @@ export type PlatformSiteAppLinkOrderBy = | 'NATURAL' | 'PATH_COMPONENTS_ASC' | 'PATH_COMPONENTS_DESC' - | 'PLATFORM_ASC' - | 'PLATFORM_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'SHA256_CERT_FINGERPRINTS_ASC' - | 'SHA256_CERT_FINGERPRINTS_DESC' | 'SITE_ID_ASC' | 'SITE_ID_DESC' - | 'STORE_URL_ASC' - | 'STORE_URL_DESC' - | 'TEAM_ID_ASC' - | 'TEAM_ID_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'WEBCREDENTIALS_ASC' @@ -9532,6 +10190,8 @@ export type PlatformSiteOrderBy = | 'BUCKET_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' | 'ID_ASC' @@ -9552,7 +10212,9 @@ export type PlatformSiteOrderBy = | 'TITLE_ASC' | 'TITLE_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; export type PlatformSiteDeepLinkOrderBy = | 'APP_PATH_ASC' | 'APP_PATH_DESC' @@ -9565,6 +10227,8 @@ export type PlatformSiteDeepLinkOrderBy = | 'METADATA_ASC' | 'METADATA_DESC' | 'NATURAL' + | 'PAGE_ID_ASC' + | 'PAGE_ID_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'SITE_ID_ASC' @@ -9615,6 +10279,8 @@ export type PlatformSiteMetadatumOrderBy = | 'PRIMARY_KEY_DESC' | 'ROBOTS_ASC' | 'ROBOTS_DESC' + | 'ROBOTS_SEEDED_FROM_ASC' + | 'ROBOTS_SEEDED_FROM_DESC' | 'SITE_ID_ASC' | 'SITE_ID_DESC' | 'STORE_ID_ASC' @@ -9643,6 +10309,24 @@ export type PlatformSiteModuleOrderBy = | 'SITE_ID_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; +export type PlatformSiteReleaseOrderBy = + | 'COMMIT_ID_ASC' + | 'COMMIT_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'MANIFEST_ASC' + | 'MANIFEST_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'SITE_ID_ASC' + | 'SITE_ID_DESC' + | 'STORE_ID_ASC' + | 'STORE_ID_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; export type PlatformSiteThemeOrderBy = | 'COMMIT_ID_ASC' | 'COMMIT_ID_DESC' @@ -9688,6 +10372,8 @@ export type PlatformSiteWebConfigOrderBy = export type PolicyOrderBy = | 'CATEGORY_ASC' | 'CATEGORY_DESC' + | 'COLUMN_REFS_ASC' + | 'COLUMN_REFS_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'DATABASE_ID_ASC' @@ -9783,6 +10469,30 @@ export type PubkeySettingOrderBy = | 'UPDATED_AT_DESC' | 'USER_FIELD_ASC' | 'USER_FIELD_DESC'; +export type RedirectOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'PRESERVE_PATH_ASC' + | 'PRESERVE_PATH_DESC' + | 'PRESERVE_QUERY_ASC' + | 'PRESERVE_QUERY_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'STATUS_CODE_ASC' + | 'STATUS_CODE_DESC' + | 'TO_HOST_ASC' + | 'TO_HOST_DESC' + | 'TO_PATH_ASC' + | 'TO_PATH_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; export type RlsSettingOrderBy = | 'AUTHENTICATE_FUNCTION_ID_ASC' | 'AUTHENTICATE_FUNCTION_ID_DESC' @@ -9827,12 +10537,16 @@ export type RouteBindingOrderBy = | 'PRIMARY_KEY_DESC' | 'PRIORITY_ASC' | 'PRIORITY_DESC' + | 'SERVING_SITE_ID_ASC' + | 'SERVING_SITE_ID_DESC' | 'TARGET_API_ID_ASC' | 'TARGET_API_ID_DESC' | 'TARGET_BUCKET_ID_ASC' | 'TARGET_BUCKET_ID_DESC' | 'TARGET_FUNCTION_ID_ASC' | 'TARGET_FUNCTION_ID_DESC' + | 'TARGET_REDIRECT_ID_ASC' + | 'TARGET_REDIRECT_ID_DESC' | 'TARGET_SERVICE_ID_ASC' | 'TARGET_SERVICE_ID_DESC' | 'TARGET_SITE_ID_ASC' @@ -9840,6 +10554,8 @@ export type RouteBindingOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; export type RouteOrderBy = + | 'ANONYMOUS_ASC' + | 'ANONYMOUS_DESC' | 'CONFIG_ASC' | 'CONFIG_DESC' | 'CREATED_AT_ASC' @@ -9857,16 +10573,22 @@ export type RouteOrderBy = | 'NATURAL' | 'PATH_ASC' | 'PATH_DESC' + | 'PREVIEW_REF_ASC' + | 'PREVIEW_REF_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'PRIORITY_ASC' | 'PRIORITY_DESC' + | 'SERVING_SITE_ID_ASC' + | 'SERVING_SITE_ID_DESC' | 'TARGET_API_ID_ASC' | 'TARGET_API_ID_DESC' | 'TARGET_BUCKET_ID_ASC' | 'TARGET_BUCKET_ID_DESC' | 'TARGET_FUNCTION_ID_ASC' | 'TARGET_FUNCTION_ID_DESC' + | 'TARGET_REDIRECT_ID_ASC' + | 'TARGET_REDIRECT_ID_DESC' | 'TARGET_SERVICE_ID_ASC' | 'TARGET_SERVICE_ID_DESC' | 'TARGET_SITE_ID_ASC' @@ -9920,8 +10642,8 @@ export type SchemaGrantOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; export type SiteAppLinkOrderBy = - | 'APP_IDENTIFIER_ASC' - | 'APP_IDENTIFIER_DESC' + | 'APP_STORE_IDENTITY_ID_ASC' + | 'APP_STORE_IDENTITY_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'DATABASE_ID_ASC' @@ -9931,18 +10653,10 @@ export type SiteAppLinkOrderBy = | 'NATURAL' | 'PATH_COMPONENTS_ASC' | 'PATH_COMPONENTS_DESC' - | 'PLATFORM_ASC' - | 'PLATFORM_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'SHA256_CERT_FINGERPRINTS_ASC' - | 'SHA256_CERT_FINGERPRINTS_DESC' | 'SITE_ID_ASC' | 'SITE_ID_DESC' - | 'STORE_URL_ASC' - | 'STORE_URL_DESC' - | 'TEAM_ID_ASC' - | 'TEAM_ID_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'WEBCREDENTIALS_ASC' @@ -9954,6 +10668,8 @@ export type SiteOrderBy = | 'BUCKET_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'DESCRIPTION_ASC' @@ -9976,7 +10692,9 @@ export type SiteOrderBy = | 'TITLE_ASC' | 'TITLE_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; export type SiteDeepLinkOrderBy = | 'APP_PATH_ASC' | 'APP_PATH_DESC' @@ -9991,6 +10709,8 @@ export type SiteDeepLinkOrderBy = | 'METADATA_ASC' | 'METADATA_DESC' | 'NATURAL' + | 'PAGE_ID_ASC' + | 'PAGE_ID_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'SITE_ID_ASC' @@ -10045,6 +10765,8 @@ export type SiteMetadatumOrderBy = | 'PRIMARY_KEY_DESC' | 'ROBOTS_ASC' | 'ROBOTS_DESC' + | 'ROBOTS_SEEDED_FROM_ASC' + | 'ROBOTS_SEEDED_FROM_DESC' | 'SITE_ID_ASC' | 'SITE_ID_DESC' | 'STORE_ID_ASC' @@ -10075,6 +10797,26 @@ export type SiteModuleOrderBy = | 'SITE_ID_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; +export type SiteReleaseOrderBy = + | 'COMMIT_ID_ASC' + | 'COMMIT_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'MANIFEST_ASC' + | 'MANIFEST_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'SITE_ID_ASC' + | 'SITE_ID_DESC' + | 'STORE_ID_ASC' + | 'STORE_ID_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; export type SiteThemeOrderBy = | 'COMMIT_ID_ASC' | 'COMMIT_ID_DESC' @@ -10151,6 +10893,34 @@ export type SpatialRelationOrderBy = | 'TAGS_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; +export type SqlActionOrderBy = + | 'ACTION_ID_ASC' + | 'ACTION_ID_DESC' + | 'ACTION_NAME_ASC' + | 'ACTION_NAME_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'CONTENT_ASC' + | 'CONTENT_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DEPLOY_ASC' + | 'DEPLOY_DESC' + | 'DEPS_ASC' + | 'DEPS_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'PAYLOAD_ASC' + | 'PAYLOAD_DESC' + | 'REVERT_ASC' + | 'REVERT_DESC' + | 'VERIFY_ASC' + | 'VERIFY_DESC'; export type TableBehaviorOrderBy = | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' @@ -10250,12 +11020,20 @@ export type TriggerOrderBy = | 'CREATED_AT_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'EVENTS_ASC' + | 'EVENTS_DESC' | 'EVENT_ASC' | 'EVENT_DESC' + | 'FOR_EACH_ROW_ASC' + | 'FOR_EACH_ROW_DESC' + | 'FUNCTION_ID_ASC' + | 'FUNCTION_ID_DESC' | 'FUNCTION_NAME_ASC' | 'FUNCTION_NAME_DESC' | 'ID_ASC' | 'ID_DESC' + | 'KIND_ASC' + | 'KIND_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'NATURAL' @@ -10267,8 +11045,12 @@ export type TriggerOrderBy = | 'TABLE_ID_DESC' | 'TAGS_ASC' | 'TAGS_DESC' + | 'TIMING_ASC' + | 'TIMING_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; + | 'UPDATED_AT_DESC' + | 'WHEN_AST_ASC' + | 'WHEN_AST_DESC'; export type TriggerFunctionOrderBy = | 'CODE_ASC' | 'CODE_DESC' @@ -10550,6 +11332,7 @@ export interface CreateApiSettingInput { enableConnectionFilter?: boolean; enableDirectUploads?: boolean; enableI18N?: boolean; + enableIntrospection?: boolean; enableLlm?: boolean; enableLtree?: boolean; enableManyToMany?: boolean; @@ -10557,7 +11340,17 @@ export interface CreateApiSettingInput { enablePresignedUploads?: boolean; enableRealtime?: boolean; enableSearch?: boolean; + idleInTransactionTimeoutMs?: string; + lockTimeoutMs?: string; + maxConcurrentRequests?: number; + maxPageSize?: number; + maxQueryCost?: number; + maxQueryDepth?: number; + maxQueueWaitMs?: number; + maxRequestBytes?: number; options?: Record; + rateLimitBurst?: number; + rateLimitRpm?: number; statementTimeoutMs?: string; }; } @@ -10569,6 +11362,7 @@ export interface ApiSettingPatch { enableConnectionFilter?: boolean | null; enableDirectUploads?: boolean | null; enableI18N?: boolean | null; + enableIntrospection?: boolean | null; enableLlm?: boolean | null; enableLtree?: boolean | null; enableManyToMany?: boolean | null; @@ -10576,7 +11370,17 @@ export interface ApiSettingPatch { enablePresignedUploads?: boolean | null; enableRealtime?: boolean | null; enableSearch?: boolean | null; + idleInTransactionTimeoutMs?: string | null; + lockTimeoutMs?: string | null; + maxConcurrentRequests?: number | null; + maxPageSize?: number | null; + maxQueryCost?: number | null; + maxQueryDepth?: number | null; + maxQueueWaitMs?: number | null; + maxRequestBytes?: number | null; options?: Record | null; + rateLimitBurst?: number | null; + rateLimitRpm?: number | null; statementTimeoutMs?: string | null; } export interface UpdateApiSettingInput { @@ -10588,69 +11392,45 @@ export interface DeleteApiSettingInput { clientMutationId?: string; id: string; } -export interface CreateAppComponentInput { +export interface CreateAstMigrationInput { clientMutationId?: string; - appComponent: { - appId: string; - componentApiId?: string; - componentDomainId?: string; - componentInstallationId?: string; - componentSiteId?: string; - componentType?: string; - config?: Record; + astMigration: { + actionId: string; + actionName?: string; + actorId: string; databaseId: string; + deploy?: Record; + deploys?: string; + name?: string; + payload?: Record; + requires?: string[]; + revert?: Record; + verify?: Record; }; } -export interface AppComponentPatch { - appId?: string | null; - componentApiId?: string | null; - componentDomainId?: string | null; - componentInstallationId?: string | null; - componentSiteId?: string | null; - componentType?: string | null; - config?: Record | null; +export interface AstMigrationPatch { + actionId?: string | null; + actionName?: string | null; + actorId?: string | null; databaseId?: string | null; + deploy?: Record | null; + deploys?: string | null; + name?: string | null; + payload?: Record | null; + requires?: string[] | null; + revert?: Record | null; + verify?: Record | null; } -export interface UpdateAppComponentInput { +export interface UpdateAstMigrationInput { clientMutationId?: string; - id: string; - appComponentPatch: AppComponentPatch; + id: number; + astMigrationPatch: AstMigrationPatch; } -export interface DeleteAppComponentInput { +export interface DeleteAstMigrationInput { clientMutationId?: string; - id: string; + id: number; } -export interface CreateAppInput { - clientMutationId?: string; - app: { - config?: Record; - databaseId: string; - description?: string; - isPublished?: boolean; - name: string; - status?: string; - title?: string; - }; -} -export interface AppPatch { - config?: Record | null; - databaseId?: string | null; - description?: string | null; - isPublished?: boolean | null; - name?: string | null; - status?: string | null; - title?: string | null; -} -export interface UpdateAppInput { - clientMutationId?: string; - id: string; - appPatch: AppPatch; -} -export interface DeleteAppInput { - clientMutationId?: string; - id: string; -} -export interface CreateCheckConstraintInput { +export interface CreateCheckConstraintInput { clientMutationId?: string; checkConstraint: { category?: ObjectCategory; @@ -10776,10 +11556,12 @@ export interface CreateDatabaseSettingInput { annotations?: Record; databaseId: string; enableAggregates?: boolean; + enableBilling?: boolean; enableBulk?: boolean; enableConnectionFilter?: boolean; enableDirectUploads?: boolean; enableI18N?: boolean; + enableIntrospection?: boolean; enableLlm?: boolean; enableLtree?: boolean; enableManyToMany?: boolean; @@ -10787,8 +11569,18 @@ export interface CreateDatabaseSettingInput { enablePresignedUploads?: boolean; enableRealtime?: boolean; enableSearch?: boolean; + idleInTransactionTimeoutMs?: string; labels?: Record; + lockTimeoutMs?: string; + maxConcurrentRequests?: number; + maxPageSize?: number; + maxQueryCost?: number; + maxQueryDepth?: number; + maxQueueWaitMs?: number; + maxRequestBytes?: number; options?: Record; + rateLimitBurst?: number; + rateLimitRpm?: number; statementTimeoutMs?: string; }; } @@ -10796,10 +11588,12 @@ export interface DatabaseSettingPatch { annotations?: Record | null; databaseId?: string | null; enableAggregates?: boolean | null; + enableBilling?: boolean | null; enableBulk?: boolean | null; enableConnectionFilter?: boolean | null; enableDirectUploads?: boolean | null; enableI18N?: boolean | null; + enableIntrospection?: boolean | null; enableLlm?: boolean | null; enableLtree?: boolean | null; enableManyToMany?: boolean | null; @@ -10807,8 +11601,18 @@ export interface DatabaseSettingPatch { enablePresignedUploads?: boolean | null; enableRealtime?: boolean | null; enableSearch?: boolean | null; + idleInTransactionTimeoutMs?: string | null; labels?: Record | null; + lockTimeoutMs?: string | null; + maxConcurrentRequests?: number | null; + maxPageSize?: number | null; + maxQueryCost?: number | null; + maxQueryDepth?: number | null; + maxQueueWaitMs?: number | null; + maxRequestBytes?: number | null; options?: Record | null; + rateLimitBurst?: number | null; + rateLimitRpm?: number | null; statementTimeoutMs?: string | null; } export interface UpdateDatabaseSettingInput { @@ -10890,6 +11694,7 @@ export interface CreateDeriveInput { clientMutationId?: string; derive: { databaseId?: string; + includeGrants?: boolean; includeMutations?: boolean; kind: string; policyPrefix?: string; @@ -10899,6 +11704,7 @@ export interface CreateDeriveInput { } export interface DerivePatch { databaseId?: string | null; + includeGrants?: boolean | null; includeMutations?: boolean | null; kind?: string | null; policyPrefix?: string | null; @@ -10918,6 +11724,7 @@ export interface CreateDomainInput { clientMutationId?: string; domain: { config?: Record; + createdByPrincipal?: string; databaseId: string; hostname: string; isPublished?: boolean; @@ -10927,12 +11734,14 @@ export interface CreateDomainInput { tlsReadyAt?: string; tlsSecretName?: string; tlsStatus?: string; + updatedByPrincipal?: string; verificationStatus?: string; verifiedAt?: string; }; } export interface DomainPatch { config?: Record | null; + createdByPrincipal?: string | null; databaseId?: string | null; hostname?: string | null; isPublished?: boolean | null; @@ -10942,6 +11751,7 @@ export interface DomainPatch { tlsReadyAt?: string | null; tlsSecretName?: string | null; tlsStatus?: string | null; + updatedByPrincipal?: string | null; verificationStatus?: string | null; verifiedAt?: string | null; } @@ -11489,15 +12299,41 @@ export interface DeleteFullTextSearchInput { export interface CreateFunctionInput { clientMutationId?: string; function: { + apiExposed?: boolean; + arguments?: Record; + bodyAst?: Record; + category?: ObjectCategory; + data?: Record; databaseId: string; + functionType?: string; + isStrict?: boolean; + kind?: string; name: string; + returns?: Record; schemaId: string; + securityInvoker?: boolean; + smartTags?: Record; + tags?: string[]; + volatility?: string; }; } export interface FunctionPatch { + apiExposed?: boolean | null; + arguments?: Record | null; + bodyAst?: Record | null; + category?: ObjectCategory | null; + data?: Record | null; databaseId?: string | null; + functionType?: string | null; + isStrict?: boolean | null; + kind?: string | null; name?: string | null; + returns?: Record | null; schemaId?: string | null; + securityInvoker?: boolean | null; + smartTags?: Record | null; + tags?: string[] | null; + volatility?: string | null; } export interface UpdateFunctionInput { clientMutationId?: string; @@ -11508,6 +12344,26 @@ export interface DeleteFunctionInput { clientMutationId?: string; id: string; } +export interface CreateGetSitePreviewsRecordInput { + clientMutationId?: string; + getSitePreviewsRecord: { + commitId: string; + name?: string; + }; +} +export interface GetSitePreviewsRecordPatch { + commitId?: string | null; + name?: string | null; +} +export interface UpdateGetSitePreviewsRecordInput { + clientMutationId?: string; + id: string; + getSitePreviewsRecordPatch: GetSitePreviewsRecordPatch; +} +export interface DeleteGetSitePreviewsRecordInput { + clientMutationId?: string; + id: string; +} export interface CreateHostnameBindingInput { clientMutationId?: string; hostnameBinding: { @@ -11540,41 +12396,37 @@ export interface DeleteHostnameBindingInput { clientMutationId?: string; id: string; } -export interface CreateHttpRouteInput { +export interface CreateIdentityProviderRegistryInput { clientMutationId?: string; - httpRoute: { - createdBy?: string; - databaseId: string; - domainId: string; - isActive?: boolean; - method?: string; - path?: string; - priority?: number; - targetId: string; - targetKind: string; - updatedBy?: string; + identityProviderRegistry: { + authorizationUrl?: string; + displayName: string; + issuerUrl?: string; + kind: string; + scopes?: string[]; + slug: string; + tokenUrl?: string; + userinfoUrl?: string; }; } -export interface HttpRoutePatch { - createdBy?: string | null; - databaseId?: string | null; - domainId?: string | null; - isActive?: boolean | null; - method?: string | null; - path?: string | null; - priority?: number | null; - targetId?: string | null; - targetKind?: string | null; - updatedBy?: string | null; +export interface IdentityProviderRegistryPatch { + authorizationUrl?: string | null; + displayName?: string | null; + issuerUrl?: string | null; + kind?: string | null; + scopes?: string[] | null; + slug?: string | null; + tokenUrl?: string | null; + userinfoUrl?: string | null; } -export interface UpdateHttpRouteInput { +export interface UpdateIdentityProviderRegistryInput { clientMutationId?: string; - id: string; - httpRoutePatch: HttpRoutePatch; + slug: string; + identityProviderRegistryPatch: IdentityProviderRegistryPatch; } -export interface DeleteHttpRouteInput { +export interface DeleteIdentityProviderRegistryInput { clientMutationId?: string; - id: string; + slug: string; } export interface CreateIndexInput { clientMutationId?: string; @@ -11587,6 +12439,7 @@ export interface CreateIndexInput { indexParams?: Record; isUnique?: boolean; name?: string; + nullsNotDistinct?: boolean; opClasses?: string[]; options?: Record; smartTags?: Record; @@ -11604,6 +12457,7 @@ export interface IndexPatch { indexParams?: Record | null; isUnique?: boolean | null; name?: string | null; + nullsNotDistinct?: boolean | null; opClasses?: string[] | null; options?: Record | null; smartTags?: Record | null; @@ -11626,11 +12480,13 @@ export interface CreateManagedDomainInput { allowPublicUsage?: boolean; annotations?: Record; certStatus?: string; + createdByPrincipal?: string; databaseId: string; domain: string; isWildcard?: boolean; tlsReadyAt?: string; tlsStatus?: string; + updatedByPrincipal?: string; verificationStatus?: string; verifiedAt?: string; }; @@ -11639,11 +12495,13 @@ export interface ManagedDomainPatch { allowPublicUsage?: boolean | null; annotations?: Record | null; certStatus?: string | null; + createdByPrincipal?: string | null; databaseId?: string | null; domain?: string | null; isWildcard?: boolean | null; tlsReadyAt?: string | null; tlsStatus?: string | null; + updatedByPrincipal?: string | null; verificationStatus?: string | null; verifiedAt?: string | null; } @@ -11692,6 +12550,7 @@ export interface CreatePageInput { commitId?: string; content: Record; databaseId: string; + seededFrom?: Record; siteId: string; slug: string; storeId?: string; @@ -11701,6 +12560,7 @@ export interface PagePatch { commitId?: string | null; content?: Record | null; databaseId?: string | null; + seededFrom?: Record | null; siteId?: string | null; slug?: string | null; storeId?: string | null; @@ -11807,6 +12667,7 @@ export interface CreatePlatformApiSettingInput { enableConnectionFilter?: boolean; enableDirectUploads?: boolean; enableI18N?: boolean; + enableIntrospection?: boolean; enableLlm?: boolean; enableLtree?: boolean; enableManyToMany?: boolean; @@ -11814,7 +12675,17 @@ export interface CreatePlatformApiSettingInput { enablePresignedUploads?: boolean; enableRealtime?: boolean; enableSearch?: boolean; + idleInTransactionTimeoutMs?: string; + lockTimeoutMs?: string; + maxConcurrentRequests?: number; + maxPageSize?: number; + maxQueryCost?: number; + maxQueryDepth?: number; + maxQueueWaitMs?: number; + maxRequestBytes?: number; options?: Record; + rateLimitBurst?: number; + rateLimitRpm?: number; statementTimeoutMs?: string; }; } @@ -11825,6 +12696,7 @@ export interface PlatformApiSettingPatch { enableConnectionFilter?: boolean | null; enableDirectUploads?: boolean | null; enableI18N?: boolean | null; + enableIntrospection?: boolean | null; enableLlm?: boolean | null; enableLtree?: boolean | null; enableManyToMany?: boolean | null; @@ -11832,7 +12704,17 @@ export interface PlatformApiSettingPatch { enablePresignedUploads?: boolean | null; enableRealtime?: boolean | null; enableSearch?: boolean | null; + idleInTransactionTimeoutMs?: string | null; + lockTimeoutMs?: string | null; + maxConcurrentRequests?: number | null; + maxPageSize?: number | null; + maxQueryCost?: number | null; + maxQueryDepth?: number | null; + maxQueueWaitMs?: number | null; + maxRequestBytes?: number | null; options?: Record | null; + rateLimitBurst?: number | null; + rateLimitRpm?: number | null; statementTimeoutMs?: string | null; } export interface UpdatePlatformApiSettingInput { @@ -11868,6 +12750,7 @@ export interface CreatePlatformDomainInput { clientMutationId?: string; platformDomain: { config?: Record; + createdByPrincipal?: string; hostname: string; isPublished?: boolean; isWildcard?: boolean; @@ -11876,12 +12759,14 @@ export interface CreatePlatformDomainInput { tlsReadyAt?: string; tlsSecretName?: string; tlsStatus?: string; + updatedByPrincipal?: string; verificationStatus?: string; verifiedAt?: string; }; } export interface PlatformDomainPatch { config?: Record | null; + createdByPrincipal?: string | null; hostname?: string | null; isPublished?: boolean | null; isWildcard?: boolean | null; @@ -11890,6 +12775,7 @@ export interface PlatformDomainPatch { tlsReadyAt?: string | null; tlsSecretName?: string | null; tlsStatus?: string | null; + updatedByPrincipal?: string | null; verificationStatus?: string | null; verifiedAt?: string | null; } @@ -12066,16 +12952,38 @@ export interface DeletePlatformEmailSiteIdentityInput { clientMutationId?: string; id: string; } +export interface CreatePlatformGetSitePreviewsRecordInput { + clientMutationId?: string; + platformGetSitePreviewsRecord: { + commitId: string; + name?: string; + }; +} +export interface PlatformGetSitePreviewsRecordPatch { + commitId?: string | null; + name?: string | null; +} +export interface UpdatePlatformGetSitePreviewsRecordInput { + clientMutationId?: string; + id: string; + platformGetSitePreviewsRecordPatch: PlatformGetSitePreviewsRecordPatch; +} +export interface DeletePlatformGetSitePreviewsRecordInput { + clientMutationId?: string; + id: string; +} export interface CreatePlatformManagedDomainInput { clientMutationId?: string; platformManagedDomain: { allowPublicUsage?: boolean; annotations?: Record; certStatus?: string; + createdByPrincipal?: string; domain: string; isWildcard?: boolean; tlsReadyAt?: string; tlsStatus?: string; + updatedByPrincipal?: string; verificationStatus?: string; verifiedAt?: string; }; @@ -12084,10 +12992,12 @@ export interface PlatformManagedDomainPatch { allowPublicUsage?: boolean | null; annotations?: Record | null; certStatus?: string | null; + createdByPrincipal?: string | null; domain?: string | null; isWildcard?: boolean | null; tlsReadyAt?: string | null; tlsStatus?: string | null; + updatedByPrincipal?: string | null; verificationStatus?: string | null; verifiedAt?: string | null; } @@ -12105,6 +13015,7 @@ export interface CreatePlatformPageInput { platformPage: { commitId?: string; content: Record; + seededFrom?: Record; siteId: string; slug: string; storeId?: string; @@ -12113,6 +13024,7 @@ export interface CreatePlatformPageInput { export interface PlatformPagePatch { commitId?: string | null; content?: Record | null; + seededFrom?: Record | null; siteId?: string | null; slug?: string | null; storeId?: string | null; @@ -12129,24 +13041,16 @@ export interface DeletePlatformPageInput { export interface CreatePlatformSiteAppLinkInput { clientMutationId?: string; platformSiteAppLink: { - appIdentifier: string; + appStoreIdentityId: string; pathComponents?: string[]; - platform: string; - sha256CertFingerprints?: string[]; siteId: string; - storeUrl?: string; - teamId?: string; webcredentials?: boolean; }; } export interface PlatformSiteAppLinkPatch { - appIdentifier?: string | null; + appStoreIdentityId?: string | null; pathComponents?: string[] | null; - platform?: string | null; - sha256CertFingerprints?: string[] | null; siteId?: string | null; - storeUrl?: string | null; - teamId?: string | null; webcredentials?: boolean | null; } export interface UpdatePlatformSiteAppLinkInput { @@ -12163,6 +13067,7 @@ export interface CreatePlatformSiteInput { platformSite: { activeCommitId?: string; bucketId?: string; + createdByPrincipal?: string; description?: string; installationId?: string; installationMemberSlug?: string; @@ -12170,11 +13075,13 @@ export interface CreatePlatformSiteInput { name: string; resourceId?: string; title?: string; + updatedByPrincipal?: string; }; } export interface PlatformSitePatch { activeCommitId?: string | null; bucketId?: string | null; + createdByPrincipal?: string | null; description?: string | null; installationId?: string | null; installationMemberSlug?: string | null; @@ -12182,6 +13089,7 @@ export interface PlatformSitePatch { name?: string | null; resourceId?: string | null; title?: string | null; + updatedByPrincipal?: string | null; } export interface UpdatePlatformSiteInput { clientMutationId?: string; @@ -12198,6 +13106,7 @@ export interface CreatePlatformSiteDeepLinkInput { appPath: string; fallbackUrl?: string; metadata?: Record; + pageId?: string; siteId: string; slug: string; webPath?: string; @@ -12207,6 +13116,7 @@ export interface PlatformSiteDeepLinkPatch { appPath?: string | null; fallbackUrl?: string | null; metadata?: Record | null; + pageId?: string | null; siteId?: string | null; slug?: string | null; webPath?: string | null; @@ -12253,6 +13163,7 @@ export interface CreatePlatformSiteMetadatumInput { logo?: ConstructiveInternalTypeImage; ogImage?: ConstructiveInternalTypeImage; robots?: string; + robotsSeededFrom?: Record; siteId: string; storeId?: string; title?: string; @@ -12271,6 +13182,7 @@ export interface PlatformSiteMetadatumPatch { ogImage?: ConstructiveInternalTypeImage | null; ogImageUpload?: File | null; robots?: string | null; + robotsSeededFrom?: Record | null; siteId?: string | null; storeId?: string | null; title?: string | null; @@ -12310,6 +13222,30 @@ export interface DeletePlatformSiteModuleInput { clientMutationId?: string; id: string; } +export interface CreatePlatformSiteReleaseInput { + clientMutationId?: string; + platformSiteRelease: { + commitId?: string; + manifest: Record; + siteId: string; + storeId?: string; + }; +} +export interface PlatformSiteReleasePatch { + commitId?: string | null; + manifest?: Record | null; + siteId?: string | null; + storeId?: string | null; +} +export interface UpdatePlatformSiteReleaseInput { + clientMutationId?: string; + id: string; + platformSiteReleasePatch: PlatformSiteReleasePatch; +} +export interface DeletePlatformSiteReleaseInput { + clientMutationId?: string; + id: string; +} export interface CreatePlatformSiteThemeInput { clientMutationId?: string; platformSiteTheme: { @@ -12368,6 +13304,7 @@ export interface CreatePolicyInput { clientMutationId?: string; policy: { category?: ObjectCategory; + columnRefs?: string[]; data?: Record; databaseId?: string; derivedFromPolicyId?: string; @@ -12386,6 +13323,7 @@ export interface CreatePolicyInput { } export interface PolicyPatch { category?: ObjectCategory | null; + columnRefs?: string[] | null; data?: Record | null; databaseId?: string | null; derivedFromPolicyId?: string | null; @@ -12480,6 +13418,36 @@ export interface DeletePubkeySettingInput { clientMutationId?: string; id: string; } +export interface CreateRedirectInput { + clientMutationId?: string; + redirect: { + databaseId: string; + name: string; + preservePath?: boolean; + preserveQuery?: boolean; + statusCode?: number; + toHost: string; + toPath?: string; + }; +} +export interface RedirectPatch { + databaseId?: string | null; + name?: string | null; + preservePath?: boolean | null; + preserveQuery?: boolean | null; + statusCode?: number | null; + toHost?: string | null; + toPath?: string | null; +} +export interface UpdateRedirectInput { + clientMutationId?: string; + id: string; + redirectPatch: RedirectPatch; +} +export interface DeleteRedirectInput { + clientMutationId?: string; + id: string; +} export interface CreateRlsSettingInput { clientMutationId?: string; rlsSetting: { @@ -12522,9 +13490,11 @@ export interface CreateRouteBindingInput { method?: string; path: string; priority?: number; + servingSiteId?: string; targetApiId?: string; targetBucketId?: string; targetFunctionId?: string; + targetRedirectId?: string; targetServiceId?: string; targetSiteId?: string; }; @@ -12535,9 +13505,11 @@ export interface RouteBindingPatch { method?: string | null; path?: string | null; priority?: number | null; + servingSiteId?: string | null; targetApiId?: string | null; targetBucketId?: string | null; targetFunctionId?: string | null; + targetRedirectId?: string | null; targetServiceId?: string | null; targetSiteId?: string | null; } @@ -12553,31 +13525,39 @@ export interface DeleteRouteBindingInput { export interface CreateRouteInput { clientMutationId?: string; route: { + anonymous?: boolean; config?: Record; databaseId: string; domainId: string; isActive?: boolean; method?: string; path?: string; + previewRef?: string; priority?: number; + servingSiteId?: string; targetApiId?: string; targetBucketId?: string; targetFunctionId?: string; + targetRedirectId?: string; targetServiceId?: string; targetSiteId?: string; }; } export interface RoutePatch { + anonymous?: boolean | null; config?: Record | null; databaseId?: string | null; domainId?: string | null; isActive?: boolean | null; method?: string | null; path?: string | null; + previewRef?: string | null; priority?: number | null; + servingSiteId?: string | null; targetApiId?: string | null; targetBucketId?: string | null; targetFunctionId?: string | null; + targetRedirectId?: string | null; targetServiceId?: string | null; targetSiteId?: string | null; } @@ -12651,26 +13631,18 @@ export interface DeleteSchemaGrantInput { export interface CreateSiteAppLinkInput { clientMutationId?: string; siteAppLink: { - appIdentifier: string; + appStoreIdentityId: string; databaseId: string; pathComponents?: string[]; - platform: string; - sha256CertFingerprints?: string[]; siteId: string; - storeUrl?: string; - teamId?: string; webcredentials?: boolean; }; } export interface SiteAppLinkPatch { - appIdentifier?: string | null; + appStoreIdentityId?: string | null; databaseId?: string | null; pathComponents?: string[] | null; - platform?: string | null; - sha256CertFingerprints?: string[] | null; siteId?: string | null; - storeUrl?: string | null; - teamId?: string | null; webcredentials?: boolean | null; } export interface UpdateSiteAppLinkInput { @@ -12687,6 +13659,7 @@ export interface CreateSiteInput { site: { activeCommitId?: string; bucketId?: string; + createdByPrincipal?: string; databaseId: string; description?: string; installationId?: string; @@ -12695,11 +13668,13 @@ export interface CreateSiteInput { name: string; resourceId?: string; title?: string; + updatedByPrincipal?: string; }; } export interface SitePatch { activeCommitId?: string | null; bucketId?: string | null; + createdByPrincipal?: string | null; databaseId?: string | null; description?: string | null; installationId?: string | null; @@ -12708,6 +13683,7 @@ export interface SitePatch { name?: string | null; resourceId?: string | null; title?: string | null; + updatedByPrincipal?: string | null; } export interface UpdateSiteInput { clientMutationId?: string; @@ -12725,6 +13701,7 @@ export interface CreateSiteDeepLinkInput { databaseId: string; fallbackUrl?: string; metadata?: Record; + pageId?: string; siteId: string; slug: string; webPath?: string; @@ -12735,6 +13712,7 @@ export interface SiteDeepLinkPatch { databaseId?: string | null; fallbackUrl?: string | null; metadata?: Record | null; + pageId?: string | null; siteId?: string | null; slug?: string | null; webPath?: string | null; @@ -12784,6 +13762,7 @@ export interface CreateSiteMetadatumInput { logo?: ConstructiveInternalTypeImage; ogImage?: ConstructiveInternalTypeImage; robots?: string; + robotsSeededFrom?: Record; siteId: string; storeId?: string; title?: string; @@ -12803,6 +13782,7 @@ export interface SiteMetadatumPatch { ogImage?: ConstructiveInternalTypeImage | null; ogImageUpload?: File | null; robots?: string | null; + robotsSeededFrom?: Record | null; siteId?: string | null; storeId?: string | null; title?: string | null; @@ -12844,6 +13824,32 @@ export interface DeleteSiteModuleInput { clientMutationId?: string; id: string; } +export interface CreateSiteReleaseInput { + clientMutationId?: string; + siteRelease: { + commitId?: string; + databaseId: string; + manifest: Record; + siteId: string; + storeId?: string; + }; +} +export interface SiteReleasePatch { + commitId?: string | null; + databaseId?: string | null; + manifest?: Record | null; + siteId?: string | null; + storeId?: string | null; +} +export interface UpdateSiteReleaseInput { + clientMutationId?: string; + id: string; + siteReleasePatch: SiteReleasePatch; +} +export interface DeleteSiteReleaseInput { + clientMutationId?: string; + id: string; +} export interface CreateSiteThemeInput { clientMutationId?: string; siteTheme: { @@ -12938,6 +13944,44 @@ export interface DeleteSpatialRelationInput { clientMutationId?: string; id: string; } +export interface CreateSqlActionInput { + clientMutationId?: string; + sqlAction: { + actionId: string; + actionName?: string; + actorId: string; + content?: string; + databaseId: string; + deploy?: string; + deps?: string[]; + name?: string; + payload?: Record; + revert?: string; + verify?: string; + }; +} +export interface SqlActionPatch { + actionId?: string | null; + actionName?: string | null; + actorId?: string | null; + content?: string | null; + databaseId?: string | null; + deploy?: string | null; + deps?: string[] | null; + name?: string | null; + payload?: Record | null; + revert?: string | null; + verify?: string | null; +} +export interface UpdateSqlActionInput { + clientMutationId?: string; + id: number; + sqlActionPatch: SqlActionPatch; +} +export interface DeleteSqlActionInput { + clientMutationId?: string; + id: number; +} export interface CreateTableBehaviorInput { clientMutationId?: string; tableBehavior: { @@ -13054,22 +14098,34 @@ export interface CreateTriggerInput { category?: ObjectCategory; databaseId?: string; event?: string; + events?: string[]; + forEachRow?: boolean; + functionId?: string; functionName?: string; + kind?: string; name: string; smartTags?: Record; tableId: string; tags?: string[]; + timing?: string; + whenAst?: Record; }; } export interface TriggerPatch { category?: ObjectCategory | null; databaseId?: string | null; event?: string | null; + events?: string[] | null; + forEachRow?: boolean | null; + functionId?: string | null; functionName?: string | null; + kind?: string | null; name?: string | null; smartTags?: Record | null; tableId?: string | null; tags?: string[] | null; + timing?: string | null; + whenAst?: Record | null; } export interface UpdateTriggerInput { clientMutationId?: string; @@ -13374,9 +14430,6 @@ export const connectionFieldsMap = { apiSchemas: 'ApiSchema', corsSettings: 'CorsSetting', }, - App: { - appComponents: 'AppComponent', - }, Database: { checkConstraints: 'CheckConstraint', compositeTypes: 'CompositeType', @@ -13416,7 +14469,6 @@ export const connectionFieldsMap = { Domain: { domainEvents: 'DomainEvent', domainVerifications: 'DomainVerification', - httpRoutes: 'HttpRoute', routes: 'Route', }, EmailIdentity: { @@ -13436,6 +14488,9 @@ export const connectionFieldsMap = { ForeignKeyConstraint: { foreignKeyConstraintBehaviors: 'ForeignKeyConstraintBehavior', }, + Function: { + triggers: 'Trigger', + }, ManagedDomain: { domainEvents: 'DomainEvent', domainVerifications: 'DomainVerification', @@ -13465,6 +14520,9 @@ export const connectionFieldsMap = { platformSiteModulesBySiteId: 'PlatformSiteModule', platformSiteThemesBySiteId: 'PlatformSiteTheme', }, + Redirect: { + routesByTargetRedirectId: 'Route', + }, Schema: { apiSchemas: 'ApiSchema', compositeTypes: 'CompositeType', @@ -13479,6 +14537,7 @@ export const connectionFieldsMap = { }, Site: { pages: 'Page', + routesByServingSiteId: 'Route', siteAppLinks: 'SiteAppLink', siteDeepLinks: 'SiteDeepLink', siteErrorPages: 'SiteErrorPage', @@ -13520,6 +14579,10 @@ export const connectionFieldsMap = { }, } as Record>; // ============ Custom Input Types (from schema) ============ +export interface AcceptDatabaseTransferInput { + clientMutationId?: string; + transferId?: string; +} export interface ApplyRlsInput { clientMutationId?: string; fieldIds?: string[]; @@ -13530,28 +14593,14 @@ export interface ApplyRlsInput { tableId?: string; vars?: Record; } -export interface AppsInstallAppInput { - apex?: string; - clientMutationId?: string; - config?: Record; - definitionIds?: string[]; - hostname?: string; - label?: string; - name?: string; - namespaceId?: string; - params?: Record; - routePath?: string; - slug?: string; - title?: string; -} -export interface AppsUninstallAppInput { +export interface CancelDatabaseTransferInput { clientMutationId?: string; - targetAppId?: string; + transferId?: string; } -export interface AppsUpgradeAppInput { +export interface DeleteSitePreviewInput { clientMutationId?: string; - newParams?: Record; - targetAppId?: string; + targetName?: string; + targetSiteId?: string; } export interface DomainsAssignSubdomainInput { apex?: string; @@ -13559,12 +14608,75 @@ export interface DomainsAssignSubdomainInput { label?: string; maxAttempts?: number; } +export interface MintSitePreviewTokenInput { + clientMutationId?: string; + siteId?: string; + target?: string; + targetKind?: string; + ttlSeconds?: number; +} +export interface PagesInstallPagesInput { + clientMutationId?: string; + entityId?: string; + pagesPreset?: string; + siteId?: string; +} +export interface PlatformDeleteSitePreviewInput { + clientMutationId?: string; + targetName?: string; + targetSiteId?: string; +} export interface PlatformDomainsAssignSubdomainInput { apex?: string; clientMutationId?: string; label?: string; maxAttempts?: number; } +export interface PlatformMintSitePreviewTokenInput { + clientMutationId?: string; + siteId?: string; + target?: string; + targetKind?: string; + ttlSeconds?: number; +} +export interface PlatformPagesInstallPagesInput { + clientMutationId?: string; + entityId?: string; + pagesPreset?: string; + siteId?: string; +} +export interface PlatformProvisionSitePreviewInput { + apex?: string; + clientMutationId?: string; + commitId?: string; + name?: string; + siteId?: string; +} +export interface PlatformSetSitePreviewInput { + clientMutationId?: string; + targetCommitId?: string; + targetName?: string; + targetSiteId?: string; +} +export interface PlatformSiteMetadataInstallRobotsInput { + clientMutationId?: string; + entityId?: string; + robotsPreset?: string; + siteId?: string; +} +export interface PlatformSitesInstallContentPresetInput { + clientMutationId?: string; + entityId?: string; + presetKind?: string; + presetSlug?: string; + siteId?: string; +} +export interface PlatformSitesInstallMantraInput { + clientMutationId?: string; + entityId?: string; + routePreset?: string; + siteId?: string; +} export interface PlatformSitesProvisionStaticSiteInput { apex?: string; clientMutationId?: string; @@ -13583,12 +14695,24 @@ export interface ProvisionBucketInput { */ ownerId?: string; } +export interface ProvisionSitePreviewInput { + apex?: string; + clientMutationId?: string; + commitId?: string; + name?: string; + siteId?: string; +} +export interface RejectDatabaseTransferInput { + clientMutationId?: string; + transferId?: string; +} export interface RequestDatabaseInput { clientMutationId?: string; databaseName?: string; domain?: string; modules?: Record; options?: Record; + organizationId?: string; presetSlug?: string; subdomain?: string; } @@ -13596,6 +14720,31 @@ export interface SetFieldOrderInput { clientMutationId?: string; fieldIds?: string[]; } +export interface SetSitePreviewInput { + clientMutationId?: string; + targetCommitId?: string; + targetName?: string; + targetSiteId?: string; +} +export interface SiteMetadataInstallRobotsInput { + clientMutationId?: string; + entityId?: string; + robotsPreset?: string; + siteId?: string; +} +export interface SitesInstallContentPresetInput { + clientMutationId?: string; + entityId?: string; + presetKind?: string; + presetSlug?: string; + siteId?: string; +} +export interface SitesInstallMantraInput { + clientMutationId?: string; + entityId?: string; + routePreset?: string; + siteId?: string; +} export interface SitesProvisionStaticSiteInput { apex?: string; clientMutationId?: string; @@ -13623,15 +14772,6 @@ export interface ApiToManyCorsSettingFilter { /** Filters to entities where at least one related entity matches. */ some?: CorsSettingFilter; } -/** A filter to be used against many `AppComponent` object types. All fields are combined with a logical ‘and.’ */ -export interface AppToManyAppComponentFilter { - /** Filters to entities where every related entity matches. */ - every?: AppComponentFilter; - /** Filters to entities where no related entity matches. */ - none?: AppComponentFilter; - /** Filters to entities where at least one related entity matches. */ - some?: AppComponentFilter; -} /** A filter to be used against ObjectCategory fields. All fields are combined with a logical ‘and.’ */ export interface ObjectCategoryFilter { /** Not equal to the specified value, treating null like an ordinary value. */ @@ -13981,15 +15121,6 @@ export interface DomainToManyDomainVerificationFilter { /** Filters to entities where at least one related entity matches. */ some?: DomainVerificationFilter; } -/** A filter to be used against many `HttpRoute` object types. All fields are combined with a logical ‘and.’ */ -export interface DomainToManyHttpRouteFilter { - /** Filters to entities where every related entity matches. */ - every?: HttpRouteFilter; - /** Filters to entities where no related entity matches. */ - none?: HttpRouteFilter; - /** Filters to entities where at least one related entity matches. */ - some?: HttpRouteFilter; -} /** A filter to be used against many `Route` object types. All fields are combined with a logical ‘and.’ */ export interface DomainToManyRouteFilter { /** Filters to entities where every related entity matches. */ @@ -14062,6 +15193,15 @@ export interface ForeignKeyConstraintToManyForeignKeyConstraintBehaviorFilter { /** Filters to entities where at least one related entity matches. */ some?: ForeignKeyConstraintBehaviorFilter; } +/** A filter to be used against many `Trigger` object types. All fields are combined with a logical ‘and.’ */ +export interface FunctionToManyTriggerFilter { + /** Filters to entities where every related entity matches. */ + every?: TriggerFilter; + /** Filters to entities where no related entity matches. */ + none?: TriggerFilter; + /** Filters to entities where at least one related entity matches. */ + some?: TriggerFilter; +} /** A filter to be used against many `DomainEvent` object types. All fields are combined with a logical ‘and.’ */ export interface ManagedDomainToManyDomainEventFilter { /** Filters to entities where every related entity matches. */ @@ -14232,6 +15372,15 @@ export interface ConstructiveInternalTypeImageFilter { /** Not included in the specified list. */ notIn?: ConstructiveInternalTypeImage[]; } +/** A filter to be used against many `Route` object types. All fields are combined with a logical ‘and.’ */ +export interface RedirectToManyRouteFilter { + /** Filters to entities where every related entity matches. */ + every?: RouteFilter; + /** Filters to entities where no related entity matches. */ + none?: RouteFilter; + /** Filters to entities where at least one related entity matches. */ + some?: RouteFilter; +} /** A filter to be used against ApiExposureLevel fields. All fields are combined with a logical ‘and.’ */ export interface ApiExposureLevelFilter { /** Not equal to the specified value, treating null like an ordinary value. */ @@ -14356,6 +15505,15 @@ export interface SiteToManyPageFilter { /** Filters to entities where at least one related entity matches. */ some?: PageFilter; } +/** A filter to be used against many `Route` object types. All fields are combined with a logical ‘and.’ */ +export interface SiteToManyRouteFilter { + /** Filters to entities where every related entity matches. */ + every?: RouteFilter; + /** Filters to entities where no related entity matches. */ + none?: RouteFilter; + /** Filters to entities where at least one related entity matches. */ + some?: RouteFilter; +} /** A filter to be used against many `SiteAppLink` object types. All fields are combined with a logical ‘and.’ */ export interface SiteToManySiteAppLinkFilter { /** Filters to entities where every related entity matches. */ @@ -14657,6 +15815,8 @@ export interface ApiSettingInput { enableDirectUploads?: boolean; /** Override: enable internationalization plugin (NULL = inherit from database_settings) */ enableI18N?: boolean; + /** Override: enable GraphQL schema introspection queries (NULL = inherit from database_settings) */ + enableIntrospection?: 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) */ @@ -14672,54 +15832,32 @@ export interface ApiSettingInput { /** Override: enable unified search (NULL = inherit from database_settings) */ enableSearch?: boolean; id?: string; + /** Override: idle-in-transaction timeout in milliseconds (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + idleInTransactionTimeoutMs?: string; + /** Override: lock acquisition timeout in milliseconds (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + lockTimeoutMs?: string; + /** Override: maximum concurrently executing GraphQL requests (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + maxConcurrentRequests?: number; + /** Override: maximum page size for connection queries (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + maxPageSize?: number; + /** Override: maximum GraphQL query cost (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + maxQueryCost?: number; + /** Override: maximum GraphQL query depth (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + maxQueryDepth?: number; + /** Override: maximum time in milliseconds a request may wait for a concurrency slot (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + maxQueueWaitMs?: number; + /** Override: maximum request body size in bytes (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + maxRequestBytes?: number; /** Extensible JSON for additional per-API settings that do not have dedicated columns */ options?: Record; + /** Override: rate-limit burst allowance (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + rateLimitBurst?: number; + /** Override: request rate limit in requests per minute (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + rateLimitRpm?: number; /** Override: GraphQL statement timeout in milliseconds (NULL = inherit from database_settings). Clamped by the plan cap at read time. */ statementTimeoutMs?: string; updatedAt?: string; } -/** An input for mutations affecting `AppComponent` */ -export interface AppComponentInput { - /** App this component belongs to */ - appId: string; - /** Typed catalog api row of the component surface; must be owner-matched or visible cross-scope */ - componentApiId?: string; - /** Typed catalog domain row of the component surface; must be owner-matched or visible cross-scope */ - componentDomainId?: string; - /** Typed catalog resource installation row of the component release; must be owner-matched or visible cross-scope */ - componentInstallationId?: string; - /** Typed catalog site row of the component surface; must be owner-matched or visible cross-scope */ - componentSiteId?: string; - /** Which kind of catalog row this component binds (api, site, domain, installation) */ - componentType?: string; - /** Component-specific configuration inside this app */ - config?: Record; - createdAt?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - id?: string; - updatedAt?: string; -} -/** An input for mutations affecting `App` */ -export interface AppInput { - /** Module-specific configuration for this app */ - config?: Record; - createdAt?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - /** Human-readable app description */ - description?: string; - id?: string; - /** Whether other scopes may see and reference this app */ - isPublished?: boolean; - /** Owner-local app name */ - name: string; - /** App lifecycle status: active, suspended, archived */ - status?: string; - /** Human-readable app title */ - title?: string; - updatedAt?: string; -} /** An input for mutations affecting `CheckConstraint` */ export interface CheckConstraintInput { category?: ObjectCategory; @@ -14782,6 +15920,8 @@ export interface DatabaseSettingInput { databaseId: string; /** Enable aggregate queries (sum, avg, min, max, etc.) in the GraphQL API */ enableAggregates?: boolean; + /** Enable billing: financial provider actions (customer/subscription/usage sync, overdue sweep) are refused while false. Activation gate for the billing rollout — flipped only after billing:doctor passes. */ + enableBilling?: boolean; /** Enable bulk mutation operations (insert, upsert, update, delete) in the GraphQL API */ enableBulk?: boolean; /** Enable connection filter (where argument) in the GraphQL API */ @@ -14790,6 +15930,8 @@ export interface DatabaseSettingInput { enableDirectUploads?: boolean; /** Enable internationalization plugin (localeStrings field, translation table discovery) in the GraphQL API */ enableI18N?: boolean; + /** Enable GraphQL schema introspection queries in the GraphQL API. A tenant may only ever lower a bound, so the stored default is the permissive end: turning introspection off is the opt-in. */ + enableIntrospection?: boolean; /** Enable LLM/AI integration features in the GraphQL API */ enableLlm?: boolean; /** Enable ltree hierarchical data type support in the GraphQL API */ @@ -14805,10 +15947,30 @@ export interface DatabaseSettingInput { /** Enable unified search (tsvector, BM25, pg_trgm, pgvector) in the GraphQL API */ enableSearch?: boolean; id?: string; + /** Scope-wide default idle-in-transaction timeout in milliseconds; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. */ + idleInTransactionTimeoutMs?: string; /** Key/value pairs for selecting and filtering settings */ labels?: Record; + /** Scope-wide default lock acquisition timeout in milliseconds; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. */ + lockTimeoutMs?: string; + /** Scope-wide default maximum concurrently executing GraphQL requests; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. */ + maxConcurrentRequests?: number; + /** Scope-wide default maximum page size for connection queries; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. */ + maxPageSize?: number; + /** Scope-wide default maximum GraphQL query cost; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. */ + maxQueryCost?: number; + /** Scope-wide default maximum GraphQL query depth; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. */ + maxQueryDepth?: number; + /** Scope-wide default maximum time in milliseconds a request may wait for a concurrency slot; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. */ + maxQueueWaitMs?: number; + /** Scope-wide default maximum request body size in bytes; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. */ + maxRequestBytes?: number; /** Extensible JSON for additional settings that do not have dedicated columns */ options?: Record; + /** Scope-wide default rate-limit burst allowance; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. */ + rateLimitBurst?: number; + /** Scope-wide default request rate limit in requests per minute; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. */ + rateLimitRpm?: number; /** Scope-wide default GraphQL statement timeout in milliseconds; NULL inherits the platform default. Clamped by the plan cap at read time. */ statementTimeoutMs?: string; updatedAt?: string; @@ -14845,6 +16007,7 @@ export interface DeriveInput { createdAt?: string; databaseId?: string; id?: string; + includeGrants?: boolean; includeMutations?: boolean; kind: string; policyPrefix?: string; @@ -14857,6 +16020,7 @@ export interface DomainInput { /** Module-specific configuration for this hostname */ config?: Record; createdAt?: string; + createdByPrincipal?: string; /** Database that owns this resource (database-scoped isolation) */ databaseId: string; /** Lowercase fully-qualified hostname; wildcards use the *.parent form */ @@ -14877,6 +16041,7 @@ export interface DomainInput { /** Certificate lifecycle state for this hostname */ tlsStatus?: string; updatedAt?: string; + updatedByPrincipal?: string; /** Ownership verification state of this hostname */ verificationStatus?: string; /** When ownership verification last succeeded */ @@ -14884,7 +16049,7 @@ export interface DomainInput { } /** An input for mutations affecting `DomainEvent` */ export interface DomainEventInput { - /** User who triggered this event, if any */ + /** User who triggered this event; NULL only when no human actor was proven */ actorId?: string; createdAt?: string; /** Database that owns this resource (database-scoped isolation) */ @@ -15165,10 +16330,23 @@ export interface FullTextSearchInput { } /** An input for mutations affecting `Function` */ export interface FunctionInput { + apiExposed?: boolean; + arguments?: Record; + bodyAst?: Record; + category?: ObjectCategory; + data?: Record; databaseId: string; + functionType?: string; id?: string; + isStrict?: boolean; + kind?: string; name: string; + returns?: Record; schemaId: string; + securityInvoker?: boolean; + smartTags?: Record; + tags?: string[]; + volatility?: string; } /** An input for mutations affecting `HostnameBinding` */ export interface HostnameBindingInput { @@ -15192,29 +16370,16 @@ export interface HostnameBindingInput { /** Ownership verification state compiled from the domain row */ verificationStatus?: string; } -/** An input for mutations affecting `HttpRoute` */ -export interface HttpRouteInput { - createdAt?: string; - createdBy?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - /** Registered host in the scoped routing domains table */ - domainId: string; - id?: string; - /** 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?: number; - /** Target row of the type named by target_kind; existence enforced by trigger */ - targetId: string; - /** Discriminator selecting the type of target_id */ - targetKind: string; - updatedAt?: string; - updatedBy?: string; +/** An input for mutations affecting `IdentityProviderRegistry` */ +export interface IdentityProviderRegistryInput { + authorizationUrl?: string; + displayName: string; + issuerUrl?: string; + kind: string; + scopes?: string[]; + slug: string; + tokenUrl?: string; + userinfoUrl?: string; } /** An input for mutations affecting `Index` */ export interface IndexInput { @@ -15228,6 +16393,7 @@ export interface IndexInput { indexParams?: Record; isUnique?: boolean; name?: string; + nullsNotDistinct?: boolean; opClasses?: string[]; options?: Record; smartTags?: Record; @@ -15245,6 +16411,7 @@ export interface ManagedDomainInput { /** Certificate issuance state for this managed hostname */ certStatus?: string; createdAt?: string; + createdByPrincipal?: string; /** Database that owns this resource (database-scoped isolation) */ databaseId: string; /** Lowercase fully-qualified managed hostname; wildcards use the *.parent form */ @@ -15257,6 +16424,7 @@ export interface ManagedDomainInput { /** TLS provisioning state for this managed hostname */ tlsStatus?: string; updatedAt?: string; + updatedByPrincipal?: string; /** DNS ownership verification state of this managed hostname */ verificationStatus?: string; /** When ownership verification last succeeded */ @@ -15284,6 +16452,8 @@ export interface PageInput { databaseId: string; /** Unique page identifier */ id?: string; + /** Provenance of a seeded page: the content preset (kind, slug, catalog commit_id) it was installed from, or NULL when authored directly */ + seededFrom?: Record; /** Site surface this page belongs to; each site owns its own infra store and pages live at path [page, slug] within it */ siteId: string; /** Page slug (unique per site) */ @@ -15352,6 +16522,8 @@ export interface PlatformApiSettingInput { enableDirectUploads?: boolean; /** Override: enable internationalization plugin (NULL = inherit from database_settings) */ enableI18N?: boolean; + /** Override: enable GraphQL schema introspection queries (NULL = inherit from database_settings) */ + enableIntrospection?: 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) */ @@ -15367,8 +16539,28 @@ export interface PlatformApiSettingInput { /** Override: enable unified search (NULL = inherit from database_settings) */ enableSearch?: boolean; id?: string; + /** Override: idle-in-transaction timeout in milliseconds (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + idleInTransactionTimeoutMs?: string; + /** Override: lock acquisition timeout in milliseconds (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + lockTimeoutMs?: string; + /** Override: maximum concurrently executing GraphQL requests (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + maxConcurrentRequests?: number; + /** Override: maximum page size for connection queries (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + maxPageSize?: number; + /** Override: maximum GraphQL query cost (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + maxQueryCost?: number; + /** Override: maximum GraphQL query depth (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + maxQueryDepth?: number; + /** Override: maximum time in milliseconds a request may wait for a concurrency slot (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + maxQueueWaitMs?: number; + /** Override: maximum request body size in bytes (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + maxRequestBytes?: number; /** Extensible JSON for additional per-API settings that do not have dedicated columns */ options?: Record; + /** Override: rate-limit burst allowance (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + rateLimitBurst?: number; + /** Override: request rate limit in requests per minute (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + rateLimitRpm?: number; /** Override: GraphQL statement timeout in milliseconds (NULL = inherit from database_settings). Clamped by the plan cap at read time. */ statementTimeoutMs?: string; updatedAt?: string; @@ -15388,6 +16580,7 @@ export interface PlatformDomainInput { /** Module-specific configuration for this hostname */ config?: Record; createdAt?: string; + createdByPrincipal?: string; /** Lowercase fully-qualified hostname; wildcards use the *.parent form */ hostname: string; id?: string; @@ -15406,6 +16599,7 @@ export interface PlatformDomainInput { /** Certificate lifecycle state for this hostname */ tlsStatus?: string; updatedAt?: string; + updatedByPrincipal?: string; /** Ownership verification state of this hostname */ verificationStatus?: string; /** When ownership verification last succeeded */ @@ -15413,7 +16607,7 @@ export interface PlatformDomainInput { } /** An input for mutations affecting `PlatformDomainEvent` */ export interface PlatformDomainEventInput { - /** User who triggered this event, if any */ + /** User who triggered this event; NULL only when no human actor was proven */ actorId?: string; createdAt?: string; /** Scoped domain this event belongs to */ @@ -15534,6 +16728,7 @@ export interface PlatformManagedDomainInput { /** Certificate issuance state for this managed hostname */ certStatus?: string; createdAt?: string; + createdByPrincipal?: string; /** Lowercase fully-qualified managed hostname; wildcards use the *.parent form */ domain: string; id?: string; @@ -15544,6 +16739,7 @@ export interface PlatformManagedDomainInput { /** TLS provisioning state for this managed hostname */ tlsStatus?: string; updatedAt?: string; + updatedByPrincipal?: string; /** DNS ownership verification state of this managed hostname */ verificationStatus?: string; /** When ownership verification last succeeded */ @@ -15559,6 +16755,8 @@ export interface PlatformPageInput { createdAt?: string; /** Unique page identifier */ id?: string; + /** Provenance of a seeded page: the content preset (kind, slug, catalog commit_id) it was installed from, or NULL when authored directly */ + seededFrom?: Record; /** Site surface this page belongs to; each site owns its own infra store and pages live at path [page, slug] within it */ siteId: string; /** Page slug (unique per site) */ @@ -15570,22 +16768,14 @@ export interface PlatformPageInput { } /** An input for mutations affecting `PlatformSiteAppLink` */ export interface PlatformSiteAppLinkInput { - /** App identifier: iOS bundle id or Android package name */ - appIdentifier: string; + /** App-owned store identity this association serves (app_store_identities row in this scope's app plane; the association carries no store facts of its own) */ + appStoreIdentityId: string; createdAt?: string; id?: string; /** Path patterns this association applies to (AASA paths / Android intent-filter paths) */ pathComponents?: string[]; - /** Target platform for this association (ios, android) */ - platform: string; - /** Android signing certificate SHA-256 fingerprints for assetlinks.json */ - sha256CertFingerprints?: string[]; /** Site surface this app-link association belongs to */ siteId: string; - /** App/Play store URL for this app (used by install banners and fallbacks) */ - storeUrl?: string; - /** Apple Developer team id (iOS); combined with app_identifier to form the AASA appID */ - teamId?: string; updatedAt?: string; /** Whether to emit the webcredentials service (iOS shared-web-credentials / password autofill) */ webcredentials?: boolean; @@ -15594,13 +16784,14 @@ export interface PlatformSiteAppLinkInput { export interface PlatformSiteInput { /** Infra-store commit pinned as the live page content for this site (manual publish pointer; NULL = nothing published yet) */ activeCommitId?: string; - /** Catalog bucket that backs this site (static content store; exactly one of bucket_id/resource_id) */ + /** Bucket that backs this site (static content store; exactly one of bucket_id/resource_id) */ bucketId?: string; createdAt?: string; + createdByPrincipal?: string; /** Human-readable site description */ description?: string; id?: string; - /** Catalog resource_installation (release) that backs this site; the servable member is named by installation_member_slug (exactly one of bucket_id/resource_id/installation_id) */ + /** Resource installation (release) that backs this site; the servable member is named by installation_member_slug (exactly one of bucket_id/resource_id/installation_id) */ installationId?: string; /** Slug of the release member (a Service resource) that serves this site; set iff installation_id is set */ installationMemberSlug?: string; @@ -15608,11 +16799,12 @@ export interface PlatformSiteInput { isPublished?: boolean; /** Owner-local site surface name */ name: string; - /** Catalog resource/service that backs this site (SSR/app Service pinned to one concrete resource row; exactly one of bucket_id/resource_id/installation_id) */ + /** Resource/service that backs this site (SSR/app Service pinned to one concrete resource row; exactly one of bucket_id/resource_id/installation_id) */ resourceId?: string; /** Human-readable site title */ title?: string; updatedAt?: string; + updatedByPrincipal?: string; } /** An input for mutations affecting `PlatformSiteDeepLink` */ export interface PlatformSiteDeepLinkInput { @@ -15624,6 +16816,8 @@ export interface PlatformSiteDeepLinkInput { id?: string; /** Additional link metadata (campaign/UTM parameters, escape hatch) */ metadata?: Record; + /** Page this link's web_path resolves to (soft reference into the pages module; NULL for external or non-page targets) */ + pageId?: string; /** Site surface this deep link belongs to (the hostname plane that serves it) */ siteId: string; /** Link name unique per site; addressed at the deep-link path prefix (e.g. /l/) */ @@ -15664,6 +16858,8 @@ export interface PlatformSiteMetadatumInput { ogImage?: ConstructiveInternalTypeImage; /** robots meta directive (e.g. index,follow / noindex,nofollow) */ robots?: string; + /** Provenance of the robots value: the content preset (kind, slug, catalog commit_id) an install applied, or NULL when it was authored directly */ + robotsSeededFrom?: Record; /** Site surface this metadata belongs to */ siteId: string; /** Infra Merkle store holding this row's history (stamped by the versioned trigger) */ @@ -15688,6 +16884,20 @@ export interface PlatformSiteModuleInput { siteId: string; updatedAt?: string; } +/** An input for mutations affecting `PlatformSiteRelease` */ +export interface PlatformSiteReleaseInput { + /** Infra store commit for the current content (stamped by the versioned trigger on every write) */ + commitId?: string; + createdAt?: string; + id?: string; + /** Release manifest: {"files":{"":{"hash":"<64-hex sha256>","content_type":"...","size":123}},"file_count":N,"total_bytes":N} */ + manifest: Record; + /** Site surface this release manifest belongs to */ + siteId: string; + /** Infra Merkle store holding this row's history (stamped by the versioned trigger) */ + storeId?: string; + updatedAt?: string; +} /** An input for mutations affecting `PlatformSiteTheme` */ export interface PlatformSiteThemeInput { /** Infra store commit for the current content (stamped by the versioned trigger on every write) */ @@ -15725,6 +16935,8 @@ export interface PlatformSiteWebConfigInput { /** An input for mutations affecting `Policy` */ export interface PolicyInput { category?: ObjectCategory; + /** Columns of this policy's table that its expression filters on. Stamped when the policy is derived onto a companion table, so a consumer needing those columns (e.g. a chunking worker copying them from the parent row) reads them here instead of re-walking the node type's parameter schema. */ + columnRefs?: string[]; createdAt?: string; data?: Record; databaseId?: string; @@ -15783,6 +16995,26 @@ export interface PubkeySettingInput { /** Field name used to identify the user in crypto auth functions */ userField?: string; } +/** An input for mutations affecting `Redirect` */ +export interface RedirectInput { + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + id?: string; + /** Owner-local name for this redirect */ + name: string; + /** Whether the incoming path is appended to the destination */ + preservePath?: boolean; + /** Whether the incoming query string is carried to the destination */ + preserveQuery?: boolean; + /** HTTP redirect status the edge answers with (301, 302, 307 or 308) */ + statusCode?: number; + /** Destination hostname the edge redirects to */ + toHost: string; + /** Destination path; NULL keeps the incoming path (see preserve_path) */ + toPath?: string; + updatedAt?: string; +} /** An input for mutations affecting `RlsSetting` */ export interface RlsSettingInput { /** Reference to the authenticate function (FK to metaschema_public.function) */ @@ -15820,12 +17052,16 @@ export interface RouteBindingInput { path: string; /** Priority compiled from the source route */ priority?: number; + /** Site whose surface the source route serves; NULL when it serves no site */ + servingSiteId?: string; /** Api catalog row the source route targets */ targetApiId?: string; /** Bucket catalog row the source route targets */ targetBucketId?: string; /** Function catalog row the source route targets */ targetFunctionId?: string; + /** Redirect catalog row the source route targets */ + targetRedirectId?: string; /** Resource catalog row (a Service resource) the source route targets */ targetServiceId?: string; /** Site catalog row the source route targets */ @@ -15835,6 +17071,8 @@ export interface RouteBindingInput { } /** An input for mutations affecting `Route` */ export interface RouteInput { + /** Whether this route answers callers with no identity. Requires the target function to declare anonymous_callable; default false = an identity is required */ + anonymous?: boolean; /** Route metadata; target configuration is read live from the typed catalog, never copied here */ config?: Record; createdAt?: string; @@ -15849,17 +17087,23 @@ export interface RouteInput { method?: string; /** Path prefix this route matches; must begin with / and carry no trailing slash */ path?: string; + /** The site preview this route serves; NULL serves the site's published release */ + previewRef?: string; /** Higher priority wins between otherwise-equal matches */ priority?: number; - /** Api catalog row this route targets; must be owner-matched or visible cross-scope */ + /** Site whose surface this route serves; the serving lane renders as this site. NULL when the route serves no site */ + servingSiteId?: string; + /** Api surface this route targets; must be this scope's own api */ targetApiId?: string; - /** Bucket catalog row this route targets; must be a public bucket that is owner-matched or visible cross-scope */ + /** Bucket this route targets; must be a public bucket in this scope's own storage plane */ targetBucketId?: string; - /** Function catalog row this route targets; must be owner-matched or visible cross-scope */ + /** Function this route targets; must be this scope's own function */ targetFunctionId?: string; - /** Resource catalog row (a Service resource) this route targets; must be owner-matched or visible cross-scope */ + /** Redirect this route targets; the edge answers with a redirect status instead of proxying a backend */ + targetRedirectId?: string; + /** Resource (a Service resource) this route targets; must be this scope's own resource */ targetServiceId?: string; - /** Site catalog row this route targets; must be owner-matched or visible cross-scope */ + /** Site surface this route targets; must be this scope's own site */ targetSiteId?: string; updatedAt?: string; } @@ -15890,24 +17134,16 @@ export interface SchemaGrantInput { } /** An input for mutations affecting `SiteAppLink` */ export interface SiteAppLinkInput { - /** App identifier: iOS bundle id or Android package name */ - appIdentifier: string; + /** App-owned store identity this association serves (app_store_identities row in this scope's app plane; the association carries no store facts of its own) */ + appStoreIdentityId: string; createdAt?: string; /** Database that owns this resource (database-scoped isolation) */ databaseId: string; id?: string; /** Path patterns this association applies to (AASA paths / Android intent-filter paths) */ pathComponents?: string[]; - /** Target platform for this association (ios, android) */ - platform: string; - /** Android signing certificate SHA-256 fingerprints for assetlinks.json */ - sha256CertFingerprints?: string[]; /** Site surface this app-link association belongs to */ siteId: string; - /** App/Play store URL for this app (used by install banners and fallbacks) */ - storeUrl?: string; - /** Apple Developer team id (iOS); combined with app_identifier to form the AASA appID */ - teamId?: string; updatedAt?: string; /** Whether to emit the webcredentials service (iOS shared-web-credentials / password autofill) */ webcredentials?: boolean; @@ -15916,15 +17152,16 @@ export interface SiteAppLinkInput { export interface SiteInput { /** Infra-store commit pinned as the live page content for this site (manual publish pointer; NULL = nothing published yet) */ activeCommitId?: string; - /** Catalog bucket that backs this site (static content store; exactly one of bucket_id/resource_id) */ + /** Bucket that backs this site (static content store; exactly one of bucket_id/resource_id) */ bucketId?: string; createdAt?: string; + createdByPrincipal?: string; /** Database that owns this resource (database-scoped isolation) */ databaseId: string; /** Human-readable site description */ description?: string; id?: string; - /** Catalog resource_installation (release) that backs this site; the servable member is named by installation_member_slug (exactly one of bucket_id/resource_id/installation_id) */ + /** Resource installation (release) that backs this site; the servable member is named by installation_member_slug (exactly one of bucket_id/resource_id/installation_id) */ installationId?: string; /** Slug of the release member (a Service resource) that serves this site; set iff installation_id is set */ installationMemberSlug?: string; @@ -15932,11 +17169,12 @@ export interface SiteInput { isPublished?: boolean; /** Owner-local site surface name */ name: string; - /** Catalog resource/service that backs this site (SSR/app Service pinned to one concrete resource row; exactly one of bucket_id/resource_id/installation_id) */ + /** Resource/service that backs this site (SSR/app Service pinned to one concrete resource row; exactly one of bucket_id/resource_id/installation_id) */ resourceId?: string; /** Human-readable site title */ title?: string; updatedAt?: string; + updatedByPrincipal?: string; } /** An input for mutations affecting `SiteDeepLink` */ export interface SiteDeepLinkInput { @@ -15950,6 +17188,8 @@ export interface SiteDeepLinkInput { id?: string; /** Additional link metadata (campaign/UTM parameters, escape hatch) */ metadata?: Record; + /** Page this link's web_path resolves to (soft reference into the pages module; NULL for external or non-page targets) */ + pageId?: string; /** Site surface this deep link belongs to (the hostname plane that serves it) */ siteId: string; /** Link name unique per site; addressed at the deep-link path prefix (e.g. /l/) */ @@ -15994,6 +17234,8 @@ export interface SiteMetadatumInput { ogImage?: ConstructiveInternalTypeImage; /** robots meta directive (e.g. index,follow / noindex,nofollow) */ robots?: string; + /** Provenance of the robots value: the content preset (kind, slug, catalog commit_id) an install applied, or NULL when it was authored directly */ + robotsSeededFrom?: Record; /** Site surface this metadata belongs to */ siteId: string; /** Infra Merkle store holding this row's history (stamped by the versioned trigger) */ @@ -16020,6 +17262,22 @@ export interface SiteModuleInput { siteId: string; updatedAt?: string; } +/** An input for mutations affecting `SiteRelease` */ +export interface SiteReleaseInput { + /** Infra store commit for the current content (stamped by the versioned trigger on every write) */ + commitId?: string; + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + id?: string; + /** Release manifest: {"files":{"":{"hash":"<64-hex sha256>","content_type":"...","size":123}},"file_count":N,"total_bytes":N} */ + manifest: Record; + /** Site surface this release manifest belongs to */ + siteId: string; + /** Infra Merkle store holding this row's history (stamped by the versioned trigger) */ + storeId?: string; + updatedAt?: string; +} /** An input for mutations affecting `SiteTheme` */ export interface SiteThemeInput { /** Infra store commit for the current content (stamped by the versioned trigger on every write) */ @@ -16130,13 +17388,19 @@ export interface TriggerInput { createdAt?: string; databaseId?: string; event?: string; + events?: string[]; + forEachRow?: boolean; + functionId?: string; functionName?: string; id?: string; + kind?: string; name: string; smartTags?: Record; tableId: string; tags?: string[]; + timing?: string; updatedAt?: string; + whenAst?: Record; } /** An input for mutations affecting `TriggerFunction` */ export interface TriggerFunctionInput { @@ -16325,39 +17589,6 @@ export interface CorsSettingFilter { /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } -/** A filter to be used against `AppComponent` object types. All fields are combined with a logical ‘and.’ */ -export interface AppComponentFilter { - /** Checks for all expressions in this list. */ - and?: AppComponentFilter[]; - /** Filter by the object’s `app` relation. */ - app?: AppFilter; - /** Filter by the object’s `appId` field. */ - appId?: UUIDFilter; - /** Filter by the object’s `componentApiId` field. */ - componentApiId?: UUIDFilter; - /** Filter by the object’s `componentDomainId` field. */ - componentDomainId?: UUIDFilter; - /** Filter by the object’s `componentInstallationId` field. */ - componentInstallationId?: UUIDFilter; - /** Filter by the object’s `componentSiteId` field. */ - componentSiteId?: UUIDFilter; - /** Filter by the object’s `componentType` field. */ - componentType?: StringFilter; - /** Filter by the object’s `config` field. */ - config?: 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?: AppComponentFilter; - /** Checks for any expressions in this list. */ - or?: AppComponentFilter[]; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} /** A filter to be used against `CheckConstraint` object types. All fields are combined with a logical ‘and.’ */ export interface CheckConstraintFilter { /** Checks for all expressions in this list. */ @@ -16510,6 +17741,8 @@ export interface DeriveFilter { databaseId?: UUIDFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `includeGrants` field. */ + includeGrants?: BooleanFilter; /** Filter by the object’s `includeMutations` field. */ includeMutations?: BooleanFilter; /** Filter by the object’s `kind` field. */ @@ -16954,22 +18187,52 @@ export interface FullTextSearchFilter { export interface FunctionFilter { /** Checks for all expressions in this list. */ and?: FunctionFilter[]; + /** Filter by the object’s `apiExposed` field. */ + apiExposed?: BooleanFilter; + /** Filter by the object’s `arguments` field. */ + arguments?: JSONFilter; + /** Filter by the object’s `bodyAst` field. */ + bodyAst?: JSONFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `data` field. */ + data?: JSONFilter; /** Filter by the object’s `database` relation. */ database?: DatabaseFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `functionType` field. */ + functionType?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `isStrict` field. */ + isStrict?: BooleanFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; /** Negates the expression. */ not?: FunctionFilter; /** Checks for any expressions in this list. */ or?: FunctionFilter[]; + /** Filter by the object’s `returns` field. */ + returns?: JSONFilter; /** Filter by the object’s `schema` relation. */ schema?: SchemaFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; + /** Filter by the object’s `securityInvoker` field. */ + securityInvoker?: BooleanFilter; + /** Filter by the object’s `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Filter by the object’s `triggers` relation. */ + triggers?: FunctionToManyTriggerFilter; + /** `triggers` exist. */ + triggersExist?: boolean; + /** Filter by the object’s `volatility` field. */ + volatility?: StringFilter; } /** A filter to be used against `Index` object types. All fields are combined with a logical ‘and.’ */ export interface IndexFilter { @@ -16999,6 +18262,8 @@ export interface IndexFilter { name?: StringFilter; /** Negates the expression. */ not?: IndexFilter; + /** Filter by the object’s `nullsNotDistinct` field. */ + nullsNotDistinct?: BooleanFilter; /** Filter by the object’s `opClasses` field. */ opClasses?: StringListFilter; /** Filter by the object’s `options` field. */ @@ -17065,6 +18330,8 @@ export interface PolicyFilter { and?: PolicyFilter[]; /** Filter by the object’s `category` field. */ category?: ObjectCategoryFilter; + /** Filter by the object’s `columnRefs` field. */ + columnRefs?: StringListFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `data` field. */ @@ -17556,10 +18823,22 @@ export interface TriggerFilter { databaseId?: UUIDFilter; /** Filter by the object’s `event` field. */ event?: StringFilter; + /** Filter by the object’s `events` field. */ + events?: StringListFilter; + /** Filter by the object’s `forEachRow` field. */ + forEachRow?: BooleanFilter; + /** Filter by the object’s `function` relation. */ + function?: FunctionFilter; + /** A related `function` exists. */ + functionExists?: boolean; + /** Filter by the object’s `functionId` field. */ + functionId?: UUIDFilter; /** Filter by the object’s `functionName` field. */ functionName?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; /** Negates the expression. */ @@ -17574,8 +18853,12 @@ export interface TriggerFilter { tableId?: UUIDFilter; /** Filter by the object’s `tags` field. */ tags?: StringListFilter; + /** Filter by the object’s `timing` field. */ + timing?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `whenAst` field. */ + whenAst?: JSONFilter; } /** A filter to be used against `UniqueConstraintBehavior` object types. All fields are combined with a logical ‘and.’ */ export interface UniqueConstraintBehaviorFilter { @@ -17916,47 +19199,12 @@ export interface DomainVerificationFilter { /** Filter by the object’s `verifiedAt` field. */ verifiedAt?: DatetimeFilter; } -/** A filter to be used against `HttpRoute` object types. All fields are combined with a logical ‘and.’ */ -export interface HttpRouteFilter { - /** Checks for all expressions in this list. */ - and?: HttpRouteFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `domain` relation. */ - domain?: DomainFilter; - /** Filter by the object’s `domainId` field. */ - domainId?: 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; - /** Negates the expression. */ - not?: HttpRouteFilter; - /** 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; - /** Filter by the object’s `targetId` field. */ - targetId?: UUIDFilter; - /** Filter by the object’s `targetKind` field. */ - targetKind?: StringFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; -} /** A filter to be used against `Route` object types. All fields are combined with a logical ‘and.’ */ export interface RouteFilter { /** Checks for all expressions in this list. */ and?: RouteFilter[]; + /** Filter by the object’s `anonymous` field. */ + anonymous?: BooleanFilter; /** Filter by the object’s `config` field. */ config?: JSONFilter; /** Filter by the object’s `createdAt` field. */ @@ -17979,16 +19227,38 @@ export interface RouteFilter { or?: RouteFilter[]; /** Filter by the object’s `path` field. */ path?: StringFilter; + /** Filter by the object’s `previewRef` field. */ + previewRef?: StringFilter; /** Filter by the object’s `priority` field. */ priority?: IntFilter; + /** Filter by the object’s `servingSite` relation. */ + servingSite?: SiteFilter; + /** A related `servingSite` exists. */ + servingSiteExists?: boolean; + /** Filter by the object’s `servingSiteId` field. */ + servingSiteId?: UUIDFilter; + /** Filter by the object’s `targetApi` relation. */ + targetApi?: ApiFilter; + /** A related `targetApi` exists. */ + targetApiExists?: boolean; /** Filter by the object’s `targetApiId` field. */ targetApiId?: UUIDFilter; /** Filter by the object’s `targetBucketId` field. */ targetBucketId?: UUIDFilter; /** Filter by the object’s `targetFunctionId` field. */ targetFunctionId?: UUIDFilter; + /** Filter by the object’s `targetRedirect` relation. */ + targetRedirect?: RedirectFilter; + /** A related `targetRedirect` exists. */ + targetRedirectExists?: boolean; + /** Filter by the object’s `targetRedirectId` field. */ + targetRedirectId?: UUIDFilter; /** Filter by the object’s `targetServiceId` field. */ targetServiceId?: UUIDFilter; + /** Filter by the object’s `targetSite` relation. */ + targetSite?: SiteFilter; + /** A related `targetSite` exists. */ + targetSiteExists?: boolean; /** Filter by the object’s `targetSiteId` field. */ targetSiteId?: UUIDFilter; /** Filter by the object’s `updatedAt` field. */ @@ -18253,6 +19523,8 @@ export interface PlatformPageFilter { not?: PlatformPageFilter; /** Checks for any expressions in this list. */ or?: PlatformPageFilter[]; + /** Filter by the object’s `seededFrom` field. */ + seededFrom?: JSONFilter; /** Filter by the object’s `site` relation. */ site?: PlatformSiteFilter; /** Filter by the object’s `siteId` field. */ @@ -18268,8 +19540,8 @@ export interface PlatformPageFilter { export interface PlatformSiteAppLinkFilter { /** Checks for all expressions in this list. */ and?: PlatformSiteAppLinkFilter[]; - /** Filter by the object’s `appIdentifier` field. */ - appIdentifier?: StringFilter; + /** Filter by the object’s `appStoreIdentityId` field. */ + appStoreIdentityId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -18280,18 +19552,10 @@ export interface PlatformSiteAppLinkFilter { or?: PlatformSiteAppLinkFilter[]; /** Filter by the object’s `pathComponents` field. */ pathComponents?: StringListFilter; - /** Filter by the object’s `platform` field. */ - platform?: StringFilter; - /** Filter by the object’s `sha256CertFingerprints` field. */ - sha256CertFingerprints?: StringListFilter; /** Filter by the object’s `site` relation. */ site?: PlatformSiteFilter; /** Filter by the object’s `siteId` field. */ siteId?: UUIDFilter; - /** Filter by the object’s `storeUrl` field. */ - storeUrl?: StringFilter; - /** Filter by the object’s `teamId` field. */ - teamId?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; /** Filter by the object’s `webcredentials` field. */ @@ -18315,6 +19579,8 @@ export interface PlatformSiteDeepLinkFilter { not?: PlatformSiteDeepLinkFilter; /** Checks for any expressions in this list. */ or?: PlatformSiteDeepLinkFilter[]; + /** Filter by the object’s `pageId` field. */ + pageId?: UUIDFilter; /** Filter by the object’s `site` relation. */ site?: PlatformSiteFilter; /** Filter by the object’s `siteId` field. */ @@ -18421,6 +19687,8 @@ export interface PageFilter { not?: PageFilter; /** Checks for any expressions in this list. */ or?: PageFilter[]; + /** Filter by the object’s `seededFrom` field. */ + seededFrom?: JSONFilter; /** Filter by the object’s `site` relation. */ site?: SiteFilter; /** Filter by the object’s `siteId` field. */ @@ -18436,8 +19704,8 @@ export interface PageFilter { export interface SiteAppLinkFilter { /** Checks for all expressions in this list. */ and?: SiteAppLinkFilter[]; - /** Filter by the object’s `appIdentifier` field. */ - appIdentifier?: StringFilter; + /** Filter by the object’s `appStoreIdentityId` field. */ + appStoreIdentityId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `databaseId` field. */ @@ -18450,18 +19718,10 @@ export interface SiteAppLinkFilter { or?: SiteAppLinkFilter[]; /** Filter by the object’s `pathComponents` field. */ pathComponents?: StringListFilter; - /** Filter by the object’s `platform` field. */ - platform?: StringFilter; - /** Filter by the object’s `sha256CertFingerprints` field. */ - sha256CertFingerprints?: StringListFilter; /** Filter by the object’s `site` relation. */ site?: SiteFilter; /** Filter by the object’s `siteId` field. */ siteId?: UUIDFilter; - /** Filter by the object’s `storeUrl` field. */ - storeUrl?: StringFilter; - /** Filter by the object’s `teamId` field. */ - teamId?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; /** Filter by the object’s `webcredentials` field. */ @@ -18487,6 +19747,8 @@ export interface SiteDeepLinkFilter { not?: SiteDeepLinkFilter; /** Checks for any expressions in this list. */ or?: SiteDeepLinkFilter[]; + /** Filter by the object’s `pageId` field. */ + pageId?: UUIDFilter; /** Filter by the object’s `site` relation. */ site?: SiteFilter; /** Filter by the object’s `siteId` field. */ @@ -18711,151 +19973,6 @@ export interface StringListFilter { /** Overlaps the specified list of values. */ overlaps?: string[]; } -/** A filter to be used against `App` object types. All fields are combined with a logical ‘and.’ */ -export interface AppFilter { - /** Checks for all expressions in this list. */ - and?: AppFilter[]; - /** Filter by the object’s `appComponents` relation. */ - appComponents?: AppToManyAppComponentFilter; - /** `appComponents` exist. */ - appComponentsExist?: boolean; - /** Filter by the object’s `config` field. */ - config?: JSONFilter; - /** 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 `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?: AppFilter; - /** Checks for any expressions in this list. */ - or?: AppFilter[]; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `title` field. */ - title?: StringFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -/** 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 filter to be used against JSON fields. All fields are combined with a logical ‘and.’ */ -export interface JSONFilter { - /** Contained by the specified JSON. */ - containedBy?: Record; - /** Contains the specified JSON. */ - contains?: Record; - /** Contains all of the specified keys. */ - containsAllKeys?: string[]; - /** Contains any of the specified keys. */ - containsAnyKeys?: string[]; - /** Contains the specified key. */ - containsKey?: string; - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: Record; - /** Equal to the specified value. */ - equalTo?: Record; - /** Greater than the specified value. */ - greaterThan?: Record; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: Record; - /** Included in the specified list. */ - in?: Record[]; - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Less than the specified value. */ - lessThan?: Record; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: Record; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: Record; - /** Not equal to the specified value. */ - notEqualTo?: Record; - /** Not included in the specified list. */ - notIn?: Record[]; -} /** A filter to be used against `Database` object types. All fields are combined with a logical ‘and.’ */ export interface DatabaseFilter { /** Checks for all expressions in this list. */ @@ -19017,6 +20134,41 @@ export interface DatabaseFilter { /** `views` exist. */ viewsExist?: boolean; } +/** A filter to be used against JSON fields. All fields are combined with a logical ‘and.’ */ +export interface JSONFilter { + /** Contained by the specified JSON. */ + containedBy?: Record; + /** Contains the specified JSON. */ + contains?: Record; + /** Contains all of the specified keys. */ + containsAllKeys?: string[]; + /** Contains any of the specified keys. */ + containsAnyKeys?: string[]; + /** Contains the specified key. */ + containsKey?: string; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: Record; + /** Equal to the specified value. */ + equalTo?: Record; + /** Greater than the specified value. */ + greaterThan?: Record; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: Record; + /** Included in the specified list. */ + in?: Record[]; + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Less than the specified value. */ + lessThan?: Record; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: Record; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: Record; + /** Not equal to the specified value. */ + notEqualTo?: Record; + /** Not included in the specified list. */ + notIn?: Record[]; +} /** A filter to be used against UUID List fields. All fields are combined with a logical ‘and.’ */ export interface UUIDListFilter { /** Any array item is equal to the specified value. */ @@ -19081,6 +20233,83 @@ export interface BooleanFilter { /** Not included in the specified list. */ notIn?: boolean[]; } +/** 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 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. */ @@ -19139,6 +20368,8 @@ export interface DomainFilter { config?: JSONFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; /** Filter by the object’s `domainEvents` relation. */ @@ -19151,10 +20382,6 @@ export interface DomainFilter { domainVerificationsExist?: boolean; /** Filter by the object’s `hostname` field. */ hostname?: StringFilter; - /** Filter by the object’s `httpRoutes` relation. */ - httpRoutes?: DomainToManyHttpRouteFilter; - /** `httpRoutes` exist. */ - httpRoutesExist?: boolean; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `isPublished` field. */ @@ -19181,6 +20408,8 @@ export interface DomainFilter { tlsStatus?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; /** Filter by the object’s `verificationStatus` field. */ verificationStatus?: StringFilter; /** Filter by the object’s `verifiedAt` field. */ @@ -19198,6 +20427,8 @@ export interface ManagedDomainFilter { certStatus?: StringFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; /** Filter by the object’s `domain` field. */ @@ -19224,6 +20455,8 @@ export interface ManagedDomainFilter { tlsStatus?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; /** Filter by the object’s `verificationStatus` field. */ verificationStatus?: StringFilter; /** Filter by the object’s `verifiedAt` field. */ @@ -19239,6 +20472,8 @@ export interface SiteFilter { bucketId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; /** Filter by the object’s `description` field. */ @@ -19267,6 +20502,10 @@ export interface SiteFilter { pagesExist?: boolean; /** Filter by the object’s `resourceId` field. */ resourceId?: UUIDFilter; + /** Filter by the object’s `routesByServingSiteId` relation. */ + routesByServingSiteId?: SiteToManyRouteFilter; + /** `routesByServingSiteId` exist. */ + routesByServingSiteIdExist?: boolean; /** Filter by the object’s `siteAppLinks` relation. */ siteAppLinks?: SiteToManySiteAppLinkFilter; /** `siteAppLinks` exist. */ @@ -19287,6 +20526,10 @@ export interface SiteFilter { siteModules?: SiteToManySiteModuleFilter; /** `siteModules` exist. */ siteModulesExist?: boolean; + /** Filter by the object’s `siteRelease` relation. */ + siteRelease?: SiteReleaseFilter; + /** A related `siteRelease` exists. */ + siteReleaseExists?: boolean; /** Filter by the object’s `siteThemes` relation. */ siteThemes?: SiteToManySiteThemeFilter; /** `siteThemes` exist. */ @@ -19299,6 +20542,41 @@ export interface SiteFilter { title?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} +/** A filter to be used against `Redirect` object types. All fields are combined with a logical ‘and.’ */ +export interface RedirectFilter { + /** Checks for all expressions in this list. */ + and?: RedirectFilter[]; + /** 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 `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: RedirectFilter; + /** Checks for any expressions in this list. */ + or?: RedirectFilter[]; + /** Filter by the object’s `preservePath` field. */ + preservePath?: BooleanFilter; + /** Filter by the object’s `preserveQuery` field. */ + preserveQuery?: BooleanFilter; + /** Filter by the object’s `routesByTargetRedirectId` relation. */ + routesByTargetRedirectId?: RedirectToManyRouteFilter; + /** `routesByTargetRedirectId` exist. */ + routesByTargetRedirectIdExist?: boolean; + /** Filter by the object’s `statusCode` field. */ + statusCode?: IntFilter; + /** Filter by the object’s `toHost` field. */ + toHost?: StringFilter; + /** Filter by the object’s `toPath` field. */ + toPath?: 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 { @@ -19392,6 +20670,8 @@ export interface PlatformDomainFilter { config?: JSONFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `hostname` field. */ hostname?: StringFilter; /** Filter by the object’s `id` field. */ @@ -19424,6 +20704,8 @@ export interface PlatformDomainFilter { tlsStatus?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; /** Filter by the object’s `verificationStatus` field. */ verificationStatus?: StringFilter; /** Filter by the object’s `verifiedAt` field. */ @@ -19441,6 +20723,8 @@ export interface PlatformManagedDomainFilter { certStatus?: StringFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `domain` field. */ domain?: StringFilter; /** Filter by the object’s `id` field. */ @@ -19465,6 +20749,8 @@ export interface PlatformManagedDomainFilter { tlsStatus?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; /** Filter by the object’s `verificationStatus` field. */ verificationStatus?: StringFilter; /** Filter by the object’s `verifiedAt` field. */ @@ -19480,6 +20766,8 @@ export interface PlatformSiteFilter { bucketId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `description` field. */ description?: StringFilter; /** Filter by the object’s `id` field. */ @@ -19524,6 +20812,10 @@ export interface PlatformSiteFilter { platformSiteModulesBySiteId?: PlatformSiteToManyPlatformSiteModuleFilter; /** `platformSiteModulesBySiteId` exist. */ platformSiteModulesBySiteIdExist?: boolean; + /** Filter by the object’s `platformSiteReleaseBySiteId` relation. */ + platformSiteReleaseBySiteId?: PlatformSiteReleaseFilter; + /** A related `platformSiteReleaseBySiteId` exists. */ + platformSiteReleaseBySiteIdExists?: boolean; /** Filter by the object’s `platformSiteThemesBySiteId` relation. */ platformSiteThemesBySiteId?: PlatformSiteToManyPlatformSiteThemeFilter; /** `platformSiteThemesBySiteId` exist. */ @@ -19538,6 +20830,8 @@ export interface PlatformSiteFilter { title?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } /** A filter to be used against `PlatformEmailProviderAccount` object types. All fields are combined with a logical ‘and.’ */ export interface PlatformEmailProviderAccountFilter { @@ -19604,6 +20898,8 @@ export interface ApiSettingFilter { enableDirectUploads?: BooleanFilter; /** Filter by the object’s `enableI18N` field. */ enableI18N?: BooleanFilter; + /** Filter by the object’s `enableIntrospection` field. */ + enableIntrospection?: BooleanFilter; /** Filter by the object’s `enableLlm` field. */ enableLlm?: BooleanFilter; /** Filter by the object’s `enableLtree` field. */ @@ -19620,12 +20916,32 @@ export interface ApiSettingFilter { enableSearch?: BooleanFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `idleInTransactionTimeoutMs` field. */ + idleInTransactionTimeoutMs?: BigIntFilter; + /** Filter by the object’s `lockTimeoutMs` field. */ + lockTimeoutMs?: BigIntFilter; + /** Filter by the object’s `maxConcurrentRequests` field. */ + maxConcurrentRequests?: IntFilter; + /** Filter by the object’s `maxPageSize` field. */ + maxPageSize?: IntFilter; + /** Filter by the object’s `maxQueryCost` field. */ + maxQueryCost?: IntFilter; + /** Filter by the object’s `maxQueryDepth` field. */ + maxQueryDepth?: IntFilter; + /** Filter by the object’s `maxQueueWaitMs` field. */ + maxQueueWaitMs?: IntFilter; + /** Filter by the object’s `maxRequestBytes` field. */ + maxRequestBytes?: IntFilter; /** Negates the expression. */ not?: ApiSettingFilter; /** Filter by the object’s `options` field. */ options?: JSONFilter; /** Checks for any expressions in this list. */ or?: ApiSettingFilter[]; + /** Filter by the object’s `rateLimitBurst` field. */ + rateLimitBurst?: IntFilter; + /** Filter by the object’s `rateLimitRpm` field. */ + rateLimitRpm?: IntFilter; /** Filter by the object’s `statementTimeoutMs` field. */ statementTimeoutMs?: BigIntFilter; /** Filter by the object’s `updatedAt` field. */ @@ -19661,6 +20977,8 @@ export interface SiteMetadatumFilter { or?: SiteMetadatumFilter[]; /** Filter by the object’s `robots` field. */ robots?: StringFilter; + /** Filter by the object’s `robotsSeededFrom` field. */ + robotsSeededFrom?: JSONFilter; /** Filter by the object’s `site` relation. */ site?: SiteFilter; /** Filter by the object’s `siteId` field. */ @@ -19672,6 +20990,33 @@ export interface SiteMetadatumFilter { /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } +/** A filter to be used against `SiteRelease` object types. All fields are combined with a logical ‘and.’ */ +export interface SiteReleaseFilter { + /** Checks for all expressions in this list. */ + and?: SiteReleaseFilter[]; + /** 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 `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `manifest` field. */ + manifest?: JSONFilter; + /** Negates the expression. */ + not?: SiteReleaseFilter; + /** Checks for any expressions in this list. */ + or?: SiteReleaseFilter[]; + /** 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 `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. */ @@ -19721,6 +21066,8 @@ export interface PlatformApiSettingFilter { enableDirectUploads?: BooleanFilter; /** Filter by the object’s `enableI18N` field. */ enableI18N?: BooleanFilter; + /** Filter by the object’s `enableIntrospection` field. */ + enableIntrospection?: BooleanFilter; /** Filter by the object’s `enableLlm` field. */ enableLlm?: BooleanFilter; /** Filter by the object’s `enableLtree` field. */ @@ -19737,12 +21084,32 @@ export interface PlatformApiSettingFilter { enableSearch?: BooleanFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `idleInTransactionTimeoutMs` field. */ + idleInTransactionTimeoutMs?: BigIntFilter; + /** Filter by the object’s `lockTimeoutMs` field. */ + lockTimeoutMs?: BigIntFilter; + /** Filter by the object’s `maxConcurrentRequests` field. */ + maxConcurrentRequests?: IntFilter; + /** Filter by the object’s `maxPageSize` field. */ + maxPageSize?: IntFilter; + /** Filter by the object’s `maxQueryCost` field. */ + maxQueryCost?: IntFilter; + /** Filter by the object’s `maxQueryDepth` field. */ + maxQueryDepth?: IntFilter; + /** Filter by the object’s `maxQueueWaitMs` field. */ + maxQueueWaitMs?: IntFilter; + /** Filter by the object’s `maxRequestBytes` field. */ + maxRequestBytes?: IntFilter; /** Negates the expression. */ not?: PlatformApiSettingFilter; /** Filter by the object’s `options` field. */ options?: JSONFilter; /** Checks for any expressions in this list. */ or?: PlatformApiSettingFilter[]; + /** Filter by the object’s `rateLimitBurst` field. */ + rateLimitBurst?: IntFilter; + /** Filter by the object’s `rateLimitRpm` field. */ + rateLimitRpm?: IntFilter; /** Filter by the object’s `statementTimeoutMs` field. */ statementTimeoutMs?: BigIntFilter; /** Filter by the object’s `updatedAt` field. */ @@ -19799,6 +21166,8 @@ export interface PlatformSiteMetadatumFilter { or?: PlatformSiteMetadatumFilter[]; /** Filter by the object’s `robots` field. */ robots?: StringFilter; + /** Filter by the object’s `robotsSeededFrom` field. */ + robotsSeededFrom?: JSONFilter; /** Filter by the object’s `site` relation. */ site?: PlatformSiteFilter; /** Filter by the object’s `siteId` field. */ @@ -19810,6 +21179,31 @@ export interface PlatformSiteMetadatumFilter { /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } +/** A filter to be used against `PlatformSiteRelease` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformSiteReleaseFilter { + /** Checks for all expressions in this list. */ + and?: PlatformSiteReleaseFilter[]; + /** Filter by the object’s `commitId` field. */ + commitId?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `manifest` field. */ + manifest?: JSONFilter; + /** Negates the expression. */ + not?: PlatformSiteReleaseFilter; + /** Checks for any expressions in this list. */ + or?: PlatformSiteReleaseFilter[]; + /** Filter by the object’s `site` relation. */ + site?: PlatformSiteFilter; + /** Filter by the object’s `siteId` field. */ + siteId?: UUIDFilter; + /** Filter by the object’s `storeId` field. */ + storeId?: UUIDFilter; + /** 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. */ @@ -19863,24 +21257,6 @@ export interface BigIntFilter { notIn?: string[]; } // ============ Payload/Return Types (for custom operations) ============ -export interface ResolveHttpRouteRecord { - databaseId?: string | null; - domainId?: string | null; - matchedPath?: string | null; - method?: string | null; - routeId?: string | null; - targetId?: string | null; - targetKind?: string | null; -} -export type ResolveHttpRouteRecordSelect = { - databaseId?: boolean; - domainId?: boolean; - matchedPath?: boolean; - method?: boolean; - routeId?: boolean; - targetId?: boolean; - targetKind?: boolean; -}; export interface ResolveRouteRecord { domainId?: string | null; hostname?: string | null; @@ -19919,36 +21295,32 @@ export type ResolveRouteRecordSelect = { tlsStatus?: boolean; verificationStatus?: boolean; }; -export interface ApplyRlsPayload { +export interface AcceptDatabaseTransferPayload { clientMutationId?: string | null; + result?: boolean | null; } -export type ApplyRlsPayloadSelect = { +export type AcceptDatabaseTransferPayloadSelect = { clientMutationId?: boolean; + result?: boolean; }; -export interface AppsInstallAppPayload { - appEdge?: AppEdge | null; +export interface ApplyRlsPayload { clientMutationId?: string | null; - result?: App | null; } -export type AppsInstallAppPayloadSelect = { - appEdge?: { - select: AppEdgeSelect; - }; +export type ApplyRlsPayloadSelect = { clientMutationId?: boolean; - result?: { - select: AppSelect; - }; }; -export interface AppsUninstallAppPayload { +export interface CancelDatabaseTransferPayload { clientMutationId?: string | null; + result?: boolean | null; } -export type AppsUninstallAppPayloadSelect = { +export type CancelDatabaseTransferPayloadSelect = { clientMutationId?: boolean; + result?: boolean; }; -export interface AppsUpgradeAppPayload { +export interface DeleteSitePreviewPayload { clientMutationId?: string | null; } -export type AppsUpgradeAppPayloadSelect = { +export type DeleteSitePreviewPayloadSelect = { clientMutationId?: boolean; }; export interface DomainsAssignSubdomainPayload { @@ -19965,6 +21337,30 @@ export type DomainsAssignSubdomainPayloadSelect = { select: DomainSelect; }; }; +export interface MintSitePreviewTokenPayload { + clientMutationId?: string | null; + result?: MintSitePreviewTokenRecord[] | null; +} +export type MintSitePreviewTokenPayloadSelect = { + clientMutationId?: boolean; + result?: { + select: MintSitePreviewTokenRecordSelect; + }; +}; +export interface PagesInstallPagesPayload { + clientMutationId?: string | null; + result?: Record | null; +} +export type PagesInstallPagesPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface PlatformDeleteSitePreviewPayload { + clientMutationId?: string | null; +} +export type PlatformDeleteSitePreviewPayloadSelect = { + clientMutationId?: boolean; +}; export interface PlatformDomainsAssignSubdomainPayload { clientMutationId?: string | null; platformDomainEdge?: PlatformDomainEdge | null; @@ -19976,7 +21372,73 @@ export type PlatformDomainsAssignSubdomainPayloadSelect = { select: PlatformDomainEdgeSelect; }; result?: { - select: PlatformDomainSelect; + select: PlatformDomainSelect; + }; +}; +export interface PlatformMintSitePreviewTokenPayload { + clientMutationId?: string | null; + result?: PlatformMintSitePreviewTokenRecord[] | null; +} +export type PlatformMintSitePreviewTokenPayloadSelect = { + clientMutationId?: boolean; + result?: { + select: PlatformMintSitePreviewTokenRecordSelect; + }; +}; +export interface PlatformPagesInstallPagesPayload { + clientMutationId?: string | null; + result?: Record | null; +} +export type PlatformPagesInstallPagesPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface PlatformProvisionSitePreviewPayload { + clientMutationId?: string | null; + result?: PlatformRoute | null; +} +export type PlatformProvisionSitePreviewPayloadSelect = { + clientMutationId?: boolean; + result?: { + select: PlatformRouteSelect; + }; +}; +export interface PlatformSetSitePreviewPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type PlatformSetSitePreviewPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface PlatformSiteMetadataInstallRobotsPayload { + clientMutationId?: string | null; + result?: Record | null; +} +export type PlatformSiteMetadataInstallRobotsPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface PlatformSitesInstallContentPresetPayload { + clientMutationId?: string | null; + result?: Record | null; +} +export type PlatformSitesInstallContentPresetPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface PlatformSitesInstallMantraPayload { + clientMutationId?: string | null; + platformSiteEdge?: PlatformSiteEdge | null; + result?: PlatformSite | null; +} +export type PlatformSitesInstallMantraPayloadSelect = { + clientMutationId?: boolean; + platformSiteEdge?: { + select: PlatformSiteEdgeSelect; + }; + result?: { + select: PlatformSiteSelect; }; }; export interface PlatformSitesProvisionStaticSitePayload { @@ -19990,26 +21452,41 @@ export type PlatformSitesProvisionStaticSitePayloadSelect = { }; }; 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; + /** The logical bucket row that was queued for reconciliation. */ + bucketId: string; + bucketKey: string; + /** The reconciler job enqueued to provision this bucket. */ + jobId: string; + /** The physical bucket name already recorded, or null when reconciliation has not completed. */ + physicalName?: string | null; } export type ProvisionBucketPayloadSelect = { - accessType?: boolean; - bucketName?: boolean; - endpoint?: boolean; - error?: boolean; - provider?: boolean; - success?: boolean; + bucketId?: boolean; + bucketKey?: boolean; + jobId?: boolean; + physicalName?: boolean; +}; +export interface ProvisionSitePreviewPayload { + clientMutationId?: string | null; + result?: Route | null; + routeEdge?: RouteEdge | null; +} +export type ProvisionSitePreviewPayloadSelect = { + clientMutationId?: boolean; + result?: { + select: RouteSelect; + }; + routeEdge?: { + select: RouteEdgeSelect; + }; +}; +export interface RejectDatabaseTransferPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type RejectDatabaseTransferPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; }; export interface RequestDatabasePayload { clientMutationId?: string | null; @@ -20027,14 +21504,56 @@ export interface SetFieldOrderPayload { export type SetFieldOrderPayloadSelect = { clientMutationId?: boolean; }; +export interface SetSitePreviewPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type SetSitePreviewPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface SiteMetadataInstallRobotsPayload { + clientMutationId?: string | null; + result?: Record | null; +} +export type SiteMetadataInstallRobotsPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface SitesInstallContentPresetPayload { + clientMutationId?: string | null; + result?: Record | null; +} +export type SitesInstallContentPresetPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface SitesInstallMantraPayload { + clientMutationId?: string | null; + result?: Site | null; + siteEdge?: SiteEdge | null; +} +export type SitesInstallMantraPayloadSelect = { + clientMutationId?: boolean; + result?: { + select: SiteSelect; + }; + siteEdge?: { + select: SiteEdgeSelect; + }; +}; export interface SitesProvisionStaticSitePayload { clientMutationId?: string | null; - result?: PlatformRoute | null; + result?: Route | null; + routeEdge?: RouteEdge | null; } export type SitesProvisionStaticSitePayloadSelect = { clientMutationId?: boolean; result?: { - select: PlatformRouteSelect; + select: RouteSelect; + }; + routeEdge?: { + select: RouteEdgeSelect; }; }; export interface CreateApiPayload { @@ -20172,96 +21691,6 @@ export type DeleteApiSettingPayloadSelect = { }; clientMutationId?: boolean; }; -export interface CreateAppComponentPayload { - /** The `AppComponent` that was created by this mutation. */ - appComponent?: AppComponent | null; - appComponentEdge?: AppComponentEdge | null; - clientMutationId?: string | null; -} -export type CreateAppComponentPayloadSelect = { - appComponent?: { - select: AppComponentSelect; - }; - appComponentEdge?: { - select: AppComponentEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface UpdateAppComponentPayload { - /** The `AppComponent` that was updated by this mutation. */ - appComponent?: AppComponent | null; - appComponentEdge?: AppComponentEdge | null; - clientMutationId?: string | null; -} -export type UpdateAppComponentPayloadSelect = { - appComponent?: { - select: AppComponentSelect; - }; - appComponentEdge?: { - select: AppComponentEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface DeleteAppComponentPayload { - /** The `AppComponent` that was deleted by this mutation. */ - appComponent?: AppComponent | null; - appComponentEdge?: AppComponentEdge | null; - clientMutationId?: string | null; -} -export type DeleteAppComponentPayloadSelect = { - appComponent?: { - select: AppComponentSelect; - }; - appComponentEdge?: { - select: AppComponentEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface CreateAppPayload { - /** The `App` that was created by this mutation. */ - app?: App | null; - appEdge?: AppEdge | null; - clientMutationId?: string | null; -} -export type CreateAppPayloadSelect = { - app?: { - select: AppSelect; - }; - appEdge?: { - select: AppEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface UpdateAppPayload { - /** The `App` that was updated by this mutation. */ - app?: App | null; - appEdge?: AppEdge | null; - clientMutationId?: string | null; -} -export type UpdateAppPayloadSelect = { - app?: { - select: AppSelect; - }; - appEdge?: { - select: AppEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface DeleteAppPayload { - /** The `App` that was deleted by this mutation. */ - app?: App | null; - appEdge?: AppEdge | null; - clientMutationId?: string | null; -} -export type DeleteAppPayloadSelect = { - app?: { - select: AppSelect; - }; - appEdge?: { - select: AppEdgeSelect; - }; - clientMutationId?: boolean; -}; export interface CreateCheckConstraintPayload { /** The `CheckConstraint` that was created by this mutation. */ checkConstraint?: CheckConstraint | null; @@ -21387,49 +22816,49 @@ export type DeleteHostnameBindingPayloadSelect = { select: HostnameBindingEdgeSelect; }; }; -export interface CreateHttpRoutePayload { +export interface CreateIdentityProviderRegistryPayload { clientMutationId?: string | null; - /** The `HttpRoute` that was created by this mutation. */ - httpRoute?: HttpRoute | null; - httpRouteEdge?: HttpRouteEdge | null; + /** The `IdentityProviderRegistry` that was created by this mutation. */ + identityProviderRegistry?: IdentityProviderRegistry | null; + identityProviderRegistryEdge?: IdentityProviderRegistryEdge | null; } -export type CreateHttpRoutePayloadSelect = { +export type CreateIdentityProviderRegistryPayloadSelect = { clientMutationId?: boolean; - httpRoute?: { - select: HttpRouteSelect; + identityProviderRegistry?: { + select: IdentityProviderRegistrySelect; }; - httpRouteEdge?: { - select: HttpRouteEdgeSelect; + identityProviderRegistryEdge?: { + select: IdentityProviderRegistryEdgeSelect; }; }; -export interface UpdateHttpRoutePayload { +export interface UpdateIdentityProviderRegistryPayload { clientMutationId?: string | null; - /** The `HttpRoute` that was updated by this mutation. */ - httpRoute?: HttpRoute | null; - httpRouteEdge?: HttpRouteEdge | null; + /** The `IdentityProviderRegistry` that was updated by this mutation. */ + identityProviderRegistry?: IdentityProviderRegistry | null; + identityProviderRegistryEdge?: IdentityProviderRegistryEdge | null; } -export type UpdateHttpRoutePayloadSelect = { +export type UpdateIdentityProviderRegistryPayloadSelect = { clientMutationId?: boolean; - httpRoute?: { - select: HttpRouteSelect; + identityProviderRegistry?: { + select: IdentityProviderRegistrySelect; }; - httpRouteEdge?: { - select: HttpRouteEdgeSelect; + identityProviderRegistryEdge?: { + select: IdentityProviderRegistryEdgeSelect; }; }; -export interface DeleteHttpRoutePayload { +export interface DeleteIdentityProviderRegistryPayload { clientMutationId?: string | null; - /** The `HttpRoute` that was deleted by this mutation. */ - httpRoute?: HttpRoute | null; - httpRouteEdge?: HttpRouteEdge | null; + /** The `IdentityProviderRegistry` that was deleted by this mutation. */ + identityProviderRegistry?: IdentityProviderRegistry | null; + identityProviderRegistryEdge?: IdentityProviderRegistryEdge | null; } -export type DeleteHttpRoutePayloadSelect = { +export type DeleteIdentityProviderRegistryPayloadSelect = { clientMutationId?: boolean; - httpRoute?: { - select: HttpRouteSelect; + identityProviderRegistry?: { + select: IdentityProviderRegistrySelect; }; - httpRouteEdge?: { - select: HttpRouteEdgeSelect; + identityProviderRegistryEdge?: { + select: IdentityProviderRegistryEdgeSelect; }; }; export interface CreateIndexPayload { @@ -22467,6 +23896,51 @@ export type DeletePlatformSiteModulePayloadSelect = { select: PlatformSiteModuleEdgeSelect; }; }; +export interface CreatePlatformSiteReleasePayload { + clientMutationId?: string | null; + /** The `PlatformSiteRelease` that was created by this mutation. */ + platformSiteRelease?: PlatformSiteRelease | null; + platformSiteReleaseEdge?: PlatformSiteReleaseEdge | null; +} +export type CreatePlatformSiteReleasePayloadSelect = { + clientMutationId?: boolean; + platformSiteRelease?: { + select: PlatformSiteReleaseSelect; + }; + platformSiteReleaseEdge?: { + select: PlatformSiteReleaseEdgeSelect; + }; +}; +export interface UpdatePlatformSiteReleasePayload { + clientMutationId?: string | null; + /** The `PlatformSiteRelease` that was updated by this mutation. */ + platformSiteRelease?: PlatformSiteRelease | null; + platformSiteReleaseEdge?: PlatformSiteReleaseEdge | null; +} +export type UpdatePlatformSiteReleasePayloadSelect = { + clientMutationId?: boolean; + platformSiteRelease?: { + select: PlatformSiteReleaseSelect; + }; + platformSiteReleaseEdge?: { + select: PlatformSiteReleaseEdgeSelect; + }; +}; +export interface DeletePlatformSiteReleasePayload { + clientMutationId?: string | null; + /** The `PlatformSiteRelease` that was deleted by this mutation. */ + platformSiteRelease?: PlatformSiteRelease | null; + platformSiteReleaseEdge?: PlatformSiteReleaseEdge | null; +} +export type DeletePlatformSiteReleasePayloadSelect = { + clientMutationId?: boolean; + platformSiteRelease?: { + select: PlatformSiteReleaseSelect; + }; + platformSiteReleaseEdge?: { + select: PlatformSiteReleaseEdgeSelect; + }; +}; export interface CreatePlatformSiteThemePayload { clientMutationId?: string | null; /** The `PlatformSiteTheme` that was created by this mutation. */ @@ -22692,6 +24166,51 @@ export type DeletePubkeySettingPayloadSelect = { select: PubkeySettingEdgeSelect; }; }; +export interface CreateRedirectPayload { + clientMutationId?: string | null; + /** The `Redirect` that was created by this mutation. */ + redirect?: Redirect | null; + redirectEdge?: RedirectEdge | null; +} +export type CreateRedirectPayloadSelect = { + clientMutationId?: boolean; + redirect?: { + select: RedirectSelect; + }; + redirectEdge?: { + select: RedirectEdgeSelect; + }; +}; +export interface UpdateRedirectPayload { + clientMutationId?: string | null; + /** The `Redirect` that was updated by this mutation. */ + redirect?: Redirect | null; + redirectEdge?: RedirectEdge | null; +} +export type UpdateRedirectPayloadSelect = { + clientMutationId?: boolean; + redirect?: { + select: RedirectSelect; + }; + redirectEdge?: { + select: RedirectEdgeSelect; + }; +}; +export interface DeleteRedirectPayload { + clientMutationId?: string | null; + /** The `Redirect` that was deleted by this mutation. */ + redirect?: Redirect | null; + redirectEdge?: RedirectEdge | null; +} +export type DeleteRedirectPayloadSelect = { + clientMutationId?: boolean; + redirect?: { + select: RedirectSelect; + }; + redirectEdge?: { + select: RedirectEdgeSelect; + }; +}; export interface CreateRlsSettingPayload { clientMutationId?: string | null; /** The `RlsSetting` that was created by this mutation. */ @@ -23187,6 +24706,51 @@ export type DeleteSiteModulePayloadSelect = { select: SiteModuleEdgeSelect; }; }; +export interface CreateSiteReleasePayload { + clientMutationId?: string | null; + /** The `SiteRelease` that was created by this mutation. */ + siteRelease?: SiteRelease | null; + siteReleaseEdge?: SiteReleaseEdge | null; +} +export type CreateSiteReleasePayloadSelect = { + clientMutationId?: boolean; + siteRelease?: { + select: SiteReleaseSelect; + }; + siteReleaseEdge?: { + select: SiteReleaseEdgeSelect; + }; +}; +export interface UpdateSiteReleasePayload { + clientMutationId?: string | null; + /** The `SiteRelease` that was updated by this mutation. */ + siteRelease?: SiteRelease | null; + siteReleaseEdge?: SiteReleaseEdge | null; +} +export type UpdateSiteReleasePayloadSelect = { + clientMutationId?: boolean; + siteRelease?: { + select: SiteReleaseSelect; + }; + siteReleaseEdge?: { + select: SiteReleaseEdgeSelect; + }; +}; +export interface DeleteSiteReleasePayload { + clientMutationId?: string | null; + /** The `SiteRelease` that was deleted by this mutation. */ + siteRelease?: SiteRelease | null; + siteReleaseEdge?: SiteReleaseEdge | null; +} +export type DeleteSiteReleasePayloadSelect = { + clientMutationId?: boolean; + siteRelease?: { + select: SiteReleaseSelect; + }; + siteReleaseEdge?: { + select: SiteReleaseEdgeSelect; + }; +}; export interface CreateSiteThemePayload { clientMutationId?: string | null; /** The `SiteTheme` that was created by this mutation. */ @@ -23907,18 +25471,6 @@ export type DeleteWebauthnSettingPayloadSelect = { select: WebauthnSettingEdgeSelect; }; }; -/** A `App` edge in the connection. */ -export interface AppEdge { - cursor?: string | null; - /** The `App` at the end of the edge. */ - node?: App | null; -} -export type AppEdgeSelect = { - cursor?: boolean; - node?: { - select: AppSelect; - }; -}; /** A `Domain` edge in the connection. */ export interface DomainEdge { cursor?: string | null; @@ -23931,6 +25483,14 @@ export type DomainEdgeSelect = { select: DomainSelect; }; }; +export interface MintSitePreviewTokenRecord { + expiresAt?: string | null; + token?: string | null; +} +export type MintSitePreviewTokenRecordSelect = { + expiresAt?: boolean; + token?: boolean; +}; /** A `PlatformDomain` edge in the connection. */ export interface PlatformDomainEdge { cursor?: string | null; @@ -23943,8 +25503,18 @@ export type PlatformDomainEdgeSelect = { select: PlatformDomainSelect; }; }; +export interface PlatformMintSitePreviewTokenRecord { + expiresAt?: string | null; + token?: string | null; +} +export type PlatformMintSitePreviewTokenRecordSelect = { + expiresAt?: boolean; + token?: boolean; +}; /** Routes binding a domain hostname and path to a typed catalog target */ export interface PlatformRoute { + /** Whether this route answers callers with no identity. Requires the target function to declare anonymous_callable; default false = an identity is required */ + anonymous: boolean; /** Route metadata; target configuration is read live from the typed catalog, never copied here */ config?: Record | null; createdAt?: string | null; @@ -23957,21 +25527,28 @@ export interface PlatformRoute { method?: string | null; /** Path prefix this route matches; must begin with / and carry no trailing slash */ path: string; + /** The site preview this route serves; NULL serves the site's published release */ + previewRef?: string | null; /** Higher priority wins between otherwise-equal matches */ priority: number; - /** Api catalog row this route targets; must be owner-matched or visible cross-scope */ + /** Site whose surface this route serves; the serving lane renders as this site. NULL when the route serves no site */ + servingSiteId?: string | null; + /** Api surface this route targets; must be this scope's own api */ targetApiId?: string | null; - /** Bucket catalog row this route targets; must be a public bucket that is owner-matched or visible cross-scope */ + /** Bucket this route targets; must be a public bucket in this scope's own storage plane */ targetBucketId?: string | null; - /** Function catalog row this route targets; must be owner-matched or visible cross-scope */ + /** Function this route targets; must be this scope's own function */ targetFunctionId?: string | null; - /** Resource catalog row (a Service resource) this route targets; must be owner-matched or visible cross-scope */ + /** Redirect this route targets; the edge answers with a redirect status instead of proxying a backend */ + targetRedirectId?: string | null; + /** Resource (a Service resource) this route targets; must be this scope's own resource */ targetServiceId?: string | null; - /** Site catalog row this route targets; must be owner-matched or visible cross-scope */ + /** Site surface this route targets; must be this scope's own site */ targetSiteId?: string | null; updatedAt?: string | null; } export type PlatformRouteSelect = { + anonymous?: boolean; config?: boolean; createdAt?: boolean; domainId?: boolean; @@ -23979,23 +25556,52 @@ export type PlatformRouteSelect = { isActive?: boolean; method?: boolean; path?: boolean; + previewRef?: boolean; priority?: boolean; + servingSiteId?: boolean; targetApiId?: boolean; targetBucketId?: boolean; targetFunctionId?: boolean; + targetRedirectId?: boolean; targetServiceId?: boolean; targetSiteId?: boolean; updatedAt?: boolean; }; +/** A `PlatformSite` edge in the connection. */ +export interface PlatformSiteEdge { + cursor?: string | null; + /** The `PlatformSite` at the end of the edge. */ + node?: PlatformSite | null; +} +export type PlatformSiteEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformSiteSelect; + }; +}; +/** A `Route` edge in the connection. */ +export interface RouteEdge { + cursor?: string | null; + /** The `Route` at the end of the edge. */ + node?: Route | null; +} +export type RouteEdgeSelect = { + cursor?: boolean; + node?: { + select: RouteSelect; + }; +}; /** 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 */ async: boolean; + /** The user whose identity is copied into the new database. Defaults to owner_id when NULL; set explicitly when owner_id is an organization */ + bootstrapActorId?: string | null; /** Error message from the most recent failed bootstrap attempt */ bootstrapError?: string | null; /** Status of the deferred owner bootstrap job: not_requested, pending, completed, or failed */ bootstrapStatus: string; - /** When true, copies the owner user and password hash from source database to the newly provisioned database */ + /** When true, copies the bootstrap user and password hash from source database to the newly provisioned database */ bootstrapUser: boolean; completedAt?: string | null; createdAt: string; @@ -24013,7 +25619,7 @@ export interface DatabaseProvisionModule { modules: Record; /** Additional configuration options for provisioning */ options: Record; - /** UUID of the user who owns this database */ + /** UUID of the entity that owns this database: a user, or an organization for an org-owned request */ ownerId: string; /** The database the owner user is copied from during bootstrap (captured from JWT context at provision time) */ sourceDatabaseId?: string | null; @@ -24025,6 +25631,7 @@ export interface DatabaseProvisionModule { } export type DatabaseProvisionModuleSelect = { async?: boolean; + bootstrapActorId?: boolean; bootstrapError?: boolean; bootstrapStatus?: boolean; bootstrapUser?: boolean; @@ -24044,6 +25651,18 @@ export type DatabaseProvisionModuleSelect = { subdomain?: boolean; updatedAt?: boolean; }; +/** A `Site` edge in the connection. */ +export interface SiteEdge { + cursor?: string | null; + /** The `Site` at the end of the edge. */ + node?: Site | null; +} +export type SiteEdgeSelect = { + cursor?: boolean; + node?: { + select: SiteSelect; + }; +}; /** A `Api` edge in the connection. */ export interface ApiEdge { cursor?: string | null; @@ -24080,18 +25699,6 @@ export type ApiSettingEdgeSelect = { select: ApiSettingSelect; }; }; -/** A `AppComponent` edge in the connection. */ -export interface AppComponentEdge { - cursor?: string | null; - /** The `AppComponent` at the end of the edge. */ - node?: AppComponent | null; -} -export type AppComponentEdgeSelect = { - cursor?: boolean; - node?: { - select: AppComponentSelect; - }; -}; /** A `CheckConstraint` edge in the connection. */ export interface CheckConstraintEdge { cursor?: string | null; @@ -24380,16 +25987,16 @@ export type HostnameBindingEdgeSelect = { select: HostnameBindingSelect; }; }; -/** A `HttpRoute` edge in the connection. */ -export interface HttpRouteEdge { +/** A `IdentityProviderRegistry` edge in the connection. */ +export interface IdentityProviderRegistryEdge { cursor?: string | null; - /** The `HttpRoute` at the end of the edge. */ - node?: HttpRoute | null; + /** The `IdentityProviderRegistry` at the end of the edge. */ + node?: IdentityProviderRegistry | null; } -export type HttpRouteEdgeSelect = { +export type IdentityProviderRegistryEdgeSelect = { cursor?: boolean; node?: { - select: HttpRouteSelect; + select: IdentityProviderRegistrySelect; }; }; /** A `Index` edge in the connection. */ @@ -24596,18 +26203,6 @@ export type PlatformSiteAppLinkEdgeSelect = { select: PlatformSiteAppLinkSelect; }; }; -/** A `PlatformSite` edge in the connection. */ -export interface PlatformSiteEdge { - cursor?: string | null; - /** The `PlatformSite` at the end of the edge. */ - node?: PlatformSite | null; -} -export type PlatformSiteEdgeSelect = { - cursor?: boolean; - node?: { - select: PlatformSiteSelect; - }; -}; /** A `PlatformSiteDeepLink` edge in the connection. */ export interface PlatformSiteDeepLinkEdge { cursor?: string | null; @@ -24656,6 +26251,18 @@ export type PlatformSiteModuleEdgeSelect = { select: PlatformSiteModuleSelect; }; }; +/** A `PlatformSiteRelease` edge in the connection. */ +export interface PlatformSiteReleaseEdge { + cursor?: string | null; + /** The `PlatformSiteRelease` at the end of the edge. */ + node?: PlatformSiteRelease | null; +} +export type PlatformSiteReleaseEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformSiteReleaseSelect; + }; +}; /** A `PlatformSiteTheme` edge in the connection. */ export interface PlatformSiteThemeEdge { cursor?: string | null; @@ -24716,6 +26323,18 @@ export type PubkeySettingEdgeSelect = { select: PubkeySettingSelect; }; }; +/** A `Redirect` edge in the connection. */ +export interface RedirectEdge { + cursor?: string | null; + /** The `Redirect` at the end of the edge. */ + node?: Redirect | null; +} +export type RedirectEdgeSelect = { + cursor?: boolean; + node?: { + select: RedirectSelect; + }; +}; /** A `RlsSetting` edge in the connection. */ export interface RlsSettingEdge { cursor?: string | null; @@ -24740,18 +26359,6 @@ export type RouteBindingEdgeSelect = { select: RouteBindingSelect; }; }; -/** A `Route` edge in the connection. */ -export interface RouteEdge { - cursor?: string | null; - /** The `Route` at the end of the edge. */ - node?: Route | null; -} -export type RouteEdgeSelect = { - cursor?: boolean; - node?: { - select: RouteSelect; - }; -}; /** A `Schema` edge in the connection. */ export interface SchemaEdge { cursor?: string | null; @@ -24788,18 +26395,6 @@ export type SiteAppLinkEdgeSelect = { select: SiteAppLinkSelect; }; }; -/** A `Site` edge in the connection. */ -export interface SiteEdge { - cursor?: string | null; - /** The `Site` at the end of the edge. */ - node?: Site | null; -} -export type SiteEdgeSelect = { - cursor?: boolean; - node?: { - select: SiteSelect; - }; -}; /** A `SiteDeepLink` edge in the connection. */ export interface SiteDeepLinkEdge { cursor?: string | null; @@ -24848,6 +26443,18 @@ export type SiteModuleEdgeSelect = { select: SiteModuleSelect; }; }; +/** A `SiteRelease` edge in the connection. */ +export interface SiteReleaseEdge { + cursor?: string | null; + /** The `SiteRelease` at the end of the edge. */ + node?: SiteRelease | null; +} +export type SiteReleaseEdgeSelect = { + cursor?: boolean; + node?: { + select: SiteReleaseSelect; + }; +}; /** A `SiteTheme` edge in the connection. */ export interface SiteThemeEdge { cursor?: string | null; diff --git a/sdk/constructive-react/src/api/orm/models/app.ts b/sdk/constructive-react/src/api/orm/models/app.ts deleted file mode 100644 index 049d73f6c0..0000000000 --- a/sdk/constructive-react/src/api/orm/models/app.ts +++ /dev/null @@ -1,245 +0,0 @@ -/** - * App 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 { - App, - AppWithRelations, - AppSelect, - AppFilter, - AppOrderBy, - CreateAppInput, - UpdateAppInput, - AppPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AppModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - apps: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'App', - 'apps', - 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, - }, - 'AppFilter', - 'AppOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'App', - fieldName: 'apps', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - app: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'App', - 'apps', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AppFilter', - 'AppOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'App', - fieldName: 'app', - document, - variables, - transform: (data: { - apps?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - app: data.apps?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - app: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'App', - 'apps', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AppFilter', - 'AppOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'App', - fieldName: 'app', - document, - variables, - transform: (data: { - apps?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - app: data.apps?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createApp: { - app: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'App', - 'createApp', - 'app', - args.select, - args.data, - 'CreateAppInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'App', - fieldName: 'createApp', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AppPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateApp: { - app: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'App', - 'updateApp', - 'app', - args.select, - args.where.id, - args.data, - 'UpdateAppInput', - 'id', - 'appPatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'App', - fieldName: 'updateApp', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteApp: { - app: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'App', - 'deleteApp', - 'app', - { - id: args.where.id, - }, - 'DeleteAppInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'App', - fieldName: 'deleteApp', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/api/orm/models/appComponent.ts b/sdk/constructive-react/src/api/orm/models/appComponent.ts deleted file mode 100644 index 2aa5994098..0000000000 --- a/sdk/constructive-react/src/api/orm/models/appComponent.ts +++ /dev/null @@ -1,245 +0,0 @@ -/** - * AppComponent 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 { - AppComponent, - AppComponentWithRelations, - AppComponentSelect, - AppComponentFilter, - AppComponentOrderBy, - CreateAppComponentInput, - UpdateAppComponentInput, - AppComponentPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AppComponentModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appComponents: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'AppComponent', - 'appComponents', - 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, - }, - 'AppComponentFilter', - 'AppComponentOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppComponent', - fieldName: 'appComponents', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appComponent: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AppComponent', - 'appComponents', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AppComponentFilter', - 'AppComponentOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppComponent', - fieldName: 'appComponent', - document, - variables, - transform: (data: { - appComponents?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appComponent: data.appComponents?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - appComponent: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AppComponent', - 'appComponents', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AppComponentFilter', - 'AppComponentOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppComponent', - fieldName: 'appComponent', - document, - variables, - transform: (data: { - appComponents?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appComponent: data.appComponents?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppComponent: { - appComponent: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppComponent', - 'createAppComponent', - 'appComponent', - args.select, - args.data, - 'CreateAppComponentInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppComponent', - fieldName: 'createAppComponent', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AppComponentPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAppComponent: { - appComponent: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AppComponent', - 'updateAppComponent', - 'appComponent', - args.select, - args.where.id, - args.data, - 'UpdateAppComponentInput', - 'id', - 'appComponentPatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppComponent', - fieldName: 'updateAppComponent', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAppComponent: { - appComponent: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AppComponent', - 'deleteAppComponent', - 'appComponent', - { - id: args.where.id, - }, - 'DeleteAppComponentInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppComponent', - fieldName: 'deleteAppComponent', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/api/orm/models/astMigration.ts b/sdk/constructive-react/src/api/orm/models/astMigration.ts new file mode 100644 index 0000000000..bfcc5f455a --- /dev/null +++ b/sdk/constructive-react/src/api/orm/models/astMigration.ts @@ -0,0 +1,174 @@ +/** + * AstMigration 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 { + AstMigration, + AstMigrationWithRelations, + AstMigrationSelect, + AstMigrationFilter, + AstMigrationOrderBy, + CreateAstMigrationInput, + UpdateAstMigrationInput, + AstMigrationPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class AstMigrationModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + astMigrations: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'AstMigration', + 'astMigrations', + 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, + }, + 'AstMigrationFilter', + 'AstMigrationOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AstMigration', + fieldName: 'astMigrations', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + astMigration: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'AstMigration', + 'astMigrations', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'AstMigrationFilter', + 'AstMigrationOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AstMigration', + fieldName: 'astMigration', + document, + variables, + transform: (data: { + astMigrations?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + astMigration: data.astMigrations?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: number; + select: S; + } & StrictSelect + ): QueryBuilder<{ + astMigration: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'AstMigration', + 'astMigrations', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'AstMigrationFilter', + 'AstMigrationOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AstMigration', + fieldName: 'astMigration', + document, + variables, + transform: (data: { + astMigrations?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + astMigration: data.astMigrations?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createAstMigration: { + astMigration: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'AstMigration', + 'createAstMigration', + 'astMigration', + args.select, + args.data, + 'CreateAstMigrationInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AstMigration', + fieldName: 'createAstMigration', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/api/orm/models/getSitePreviewsRecord.ts b/sdk/constructive-react/src/api/orm/models/getSitePreviewsRecord.ts new file mode 100644 index 0000000000..dc2c778221 --- /dev/null +++ b/sdk/constructive-react/src/api/orm/models/getSitePreviewsRecord.ts @@ -0,0 +1,134 @@ +/** + * GetSitePreviewsRecord 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 { + GetSitePreviewsRecord, + GetSitePreviewsRecordWithRelations, + GetSitePreviewsRecordSelect, + GetSitePreviewsRecordFilter, + GetSitePreviewsRecordsOrderBy, + CreateGetSitePreviewsRecordInput, + UpdateGetSitePreviewsRecordInput, + GetSitePreviewsRecordPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class GetSitePreviewsRecordModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + getSitePreviews: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'GetSitePreviewsRecord', + 'getSitePreviews', + 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, + }, + 'GetSitePreviewsRecordFilter', + 'GetSitePreviewsRecordsOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'GetSitePreviewsRecord', + fieldName: 'getSitePreviews', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + getSitePreviewsRecord: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'GetSitePreviewsRecord', + 'getSitePreviews', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'GetSitePreviewsRecordFilter', + 'GetSitePreviewsRecordsOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'GetSitePreviewsRecord', + fieldName: 'getSitePreviewsRecord', + document, + variables, + transform: (data: { + getSitePreviews?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + getSitePreviewsRecord: data.getSitePreviews?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createGetSitePreviewsRecord: { + getSitePreviewsRecord: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'GetSitePreviewsRecord', + 'createGetSitePreviewsRecord', + 'getSitePreviewsRecord', + args.select, + args.data, + 'CreateGetSitePreviewsRecordInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'GetSitePreviewsRecord', + fieldName: 'createGetSitePreviewsRecord', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/api/orm/models/httpRoute.ts b/sdk/constructive-react/src/api/orm/models/httpRoute.ts deleted file mode 100644 index 0af2bf2fac..0000000000 --- a/sdk/constructive-react/src/api/orm/models/httpRoute.ts +++ /dev/null @@ -1,245 +0,0 @@ -/** - * HttpRoute 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 { - HttpRoute, - HttpRouteWithRelations, - HttpRouteSelect, - HttpRouteFilter, - HttpRouteOrderBy, - CreateHttpRouteInput, - UpdateHttpRouteInput, - HttpRoutePatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class HttpRouteModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - httpRoutes: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'HttpRoute', - 'httpRoutes', - 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, - }, - 'HttpRouteFilter', - 'HttpRouteOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'HttpRoute', - fieldName: 'httpRoutes', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - httpRoute: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'HttpRoute', - 'httpRoutes', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'HttpRouteFilter', - 'HttpRouteOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'HttpRoute', - fieldName: 'httpRoute', - document, - variables, - transform: (data: { - httpRoutes?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - httpRoute: data.httpRoutes?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - httpRoute: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'HttpRoute', - 'httpRoutes', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'HttpRouteFilter', - 'HttpRouteOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'HttpRoute', - fieldName: 'httpRoute', - document, - variables, - transform: (data: { - httpRoutes?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - httpRoute: data.httpRoutes?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createHttpRoute: { - httpRoute: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'HttpRoute', - 'createHttpRoute', - 'httpRoute', - args.select, - args.data, - 'CreateHttpRouteInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'HttpRoute', - fieldName: 'createHttpRoute', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - HttpRoutePatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateHttpRoute: { - httpRoute: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'HttpRoute', - 'updateHttpRoute', - 'httpRoute', - args.select, - args.where.id, - args.data, - 'UpdateHttpRouteInput', - 'id', - 'httpRoutePatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'HttpRoute', - fieldName: 'updateHttpRoute', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteHttpRoute: { - httpRoute: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'HttpRoute', - 'deleteHttpRoute', - 'httpRoute', - { - id: args.where.id, - }, - 'DeleteHttpRouteInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'HttpRoute', - fieldName: 'deleteHttpRoute', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/api/orm/models/identityProviderRegistry.ts b/sdk/constructive-react/src/api/orm/models/identityProviderRegistry.ts new file mode 100644 index 0000000000..5c314ea984 --- /dev/null +++ b/sdk/constructive-react/src/api/orm/models/identityProviderRegistry.ts @@ -0,0 +1,247 @@ +/** + * IdentityProviderRegistry 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 { + IdentityProviderRegistry, + IdentityProviderRegistryWithRelations, + IdentityProviderRegistrySelect, + IdentityProviderRegistryFilter, + IdentityProviderRegistryOrderBy, + CreateIdentityProviderRegistryInput, + UpdateIdentityProviderRegistryInput, + IdentityProviderRegistryPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class IdentityProviderRegistryModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + identityProviderRegistries: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'IdentityProviderRegistry', + 'identityProviderRegistries', + 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, + }, + 'IdentityProviderRegistryFilter', + 'IdentityProviderRegistryOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'IdentityProviderRegistry', + fieldName: 'identityProviderRegistries', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + identityProviderRegistry: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'IdentityProviderRegistry', + 'identityProviderRegistries', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'IdentityProviderRegistryFilter', + 'IdentityProviderRegistryOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'IdentityProviderRegistry', + fieldName: 'identityProviderRegistry', + document, + variables, + transform: (data: { + identityProviderRegistries?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + identityProviderRegistry: data.identityProviderRegistries?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + slug: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + identityProviderRegistry: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'IdentityProviderRegistry', + 'identityProviderRegistries', + args.select, + { + where: { + slug: { + equalTo: args.slug, + }, + }, + first: 1, + }, + 'IdentityProviderRegistryFilter', + 'IdentityProviderRegistryOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'IdentityProviderRegistry', + fieldName: 'identityProviderRegistry', + document, + variables, + transform: (data: { + identityProviderRegistries?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + identityProviderRegistry: data.identityProviderRegistries?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createIdentityProviderRegistry: { + identityProviderRegistry: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'IdentityProviderRegistry', + 'createIdentityProviderRegistry', + 'identityProviderRegistry', + args.select, + args.data, + 'CreateIdentityProviderRegistryInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'IdentityProviderRegistry', + fieldName: 'createIdentityProviderRegistry', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + slug: string; + }, + IdentityProviderRegistryPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateIdentityProviderRegistry: { + identityProviderRegistry: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'IdentityProviderRegistry', + 'updateIdentityProviderRegistry', + 'identityProviderRegistry', + args.select, + args.where.slug, + args.data, + 'UpdateIdentityProviderRegistryInput', + 'slug', + 'identityProviderRegistryPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'IdentityProviderRegistry', + fieldName: 'updateIdentityProviderRegistry', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + slug: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteIdentityProviderRegistry: { + identityProviderRegistry: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'IdentityProviderRegistry', + 'deleteIdentityProviderRegistry', + 'identityProviderRegistry', + { + slug: args.where.slug, + }, + 'DeleteIdentityProviderRegistryInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'IdentityProviderRegistry', + fieldName: 'deleteIdentityProviderRegistry', + 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 e423940bea..0dde470052 100644 --- a/sdk/constructive-react/src/api/orm/models/index.ts +++ b/sdk/constructive-react/src/api/orm/models/index.ts @@ -6,8 +6,7 @@ export { ApiModel } from './api'; export { ApiSchemaModel } from './apiSchema'; export { ApiSettingModel } from './apiSetting'; -export { AppComponentModel } from './appComponent'; -export { AppModel } from './app'; +export { AstMigrationModel } from './astMigration'; export { CheckConstraintModel } from './checkConstraint'; export { CompositeTypeModel } from './compositeType'; export { CorsSettingModel } from './corsSetting'; @@ -32,8 +31,9 @@ export { ForeignKeyConstraintBehaviorModel } from './foreignKeyConstraintBehavio export { ForeignKeyConstraintModel } from './foreignKeyConstraint'; export { FullTextSearchModel } from './fullTextSearch'; export { FunctionModel } from './function'; +export { GetSitePreviewsRecordModel } from './getSitePreviewsRecord'; export { HostnameBindingModel } from './hostnameBinding'; -export { HttpRouteModel } from './httpRoute'; +export { IdentityProviderRegistryModel } from './identityProviderRegistry'; export { IndexModel } from './indexModel'; export { ManagedDomainModel } from './managedDomain'; export { NodeTypeRegistryModel } from './nodeTypeRegistry'; @@ -49,6 +49,7 @@ export { PlatformDomainVerificationModel } from './platformDomainVerification'; export { PlatformEmailIdentityModel } from './platformEmailIdentity'; export { PlatformEmailProviderAccountModel } from './platformEmailProviderAccount'; export { PlatformEmailSiteIdentityModel } from './platformEmailSiteIdentity'; +export { PlatformGetSitePreviewsRecordModel } from './platformGetSitePreviewsRecord'; export { PlatformManagedDomainModel } from './platformManagedDomain'; export { PlatformPageModel } from './platformPage'; export { PlatformSiteAppLinkModel } from './platformSiteAppLink'; @@ -57,11 +58,13 @@ export { PlatformSiteDeepLinkModel } from './platformSiteDeepLink'; export { PlatformSiteErrorPageModel } from './platformSiteErrorPage'; export { PlatformSiteMetadatumModel } from './platformSiteMetadatum'; export { PlatformSiteModuleModel } from './platformSiteModule'; +export { PlatformSiteReleaseModel } from './platformSiteRelease'; export { PlatformSiteThemeModel } from './platformSiteTheme'; export { PlatformSiteWebConfigModel } from './platformSiteWebConfig'; export { PolicyModel } from './policy'; export { PrimaryKeyConstraintModel } from './primaryKeyConstraint'; export { PubkeySettingModel } from './pubkeySetting'; +export { RedirectModel } from './redirect'; export { RlsSettingModel } from './rlsSetting'; export { RouteBindingModel } from './routeBinding'; export { RouteModel } from './route'; @@ -73,9 +76,11 @@ export { SiteDeepLinkModel } from './siteDeepLink'; export { SiteErrorPageModel } from './siteErrorPage'; export { SiteMetadatumModel } from './siteMetadatum'; export { SiteModuleModel } from './siteModule'; +export { SiteReleaseModel } from './siteRelease'; export { SiteThemeModel } from './siteTheme'; export { SiteWebConfigModel } from './siteWebConfig'; export { SpatialRelationModel } from './spatialRelation'; +export { SqlActionModel } from './sqlAction'; export { TableBehaviorModel } from './tableBehavior'; export { TableModel } from './table'; export { TableGrantModel } from './tableGrant'; diff --git a/sdk/constructive-react/src/api/orm/models/platformGetSitePreviewsRecord.ts b/sdk/constructive-react/src/api/orm/models/platformGetSitePreviewsRecord.ts new file mode 100644 index 0000000000..b2282eaa16 --- /dev/null +++ b/sdk/constructive-react/src/api/orm/models/platformGetSitePreviewsRecord.ts @@ -0,0 +1,153 @@ +/** + * PlatformGetSitePreviewsRecord 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 { + PlatformGetSitePreviewsRecord, + PlatformGetSitePreviewsRecordWithRelations, + PlatformGetSitePreviewsRecordSelect, + PlatformGetSitePreviewsRecordFilter, + PlatformGetSitePreviewsRecordsOrderBy, + CreatePlatformGetSitePreviewsRecordInput, + UpdatePlatformGetSitePreviewsRecordInput, + PlatformGetSitePreviewsRecordPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformGetSitePreviewsRecordModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs< + S, + PlatformGetSitePreviewsRecordFilter, + PlatformGetSitePreviewsRecordsOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformGetSitePreviews: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformGetSitePreviewsRecord', + 'platformGetSitePreviews', + 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, + }, + 'PlatformGetSitePreviewsRecordFilter', + 'PlatformGetSitePreviewsRecordsOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformGetSitePreviewsRecord', + fieldName: 'platformGetSitePreviews', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs< + S, + PlatformGetSitePreviewsRecordFilter, + PlatformGetSitePreviewsRecordsOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformGetSitePreviewsRecord: InferSelectResult< + PlatformGetSitePreviewsRecordWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformGetSitePreviewsRecord', + 'platformGetSitePreviews', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformGetSitePreviewsRecordFilter', + 'PlatformGetSitePreviewsRecordsOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformGetSitePreviewsRecord', + fieldName: 'platformGetSitePreviewsRecord', + document, + variables, + transform: (data: { + platformGetSitePreviews?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformGetSitePreviewsRecord: data.platformGetSitePreviews?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs< + S, + CreatePlatformGetSitePreviewsRecordInput['platformGetSitePreviewsRecord'] + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformGetSitePreviewsRecord: { + platformGetSitePreviewsRecord: InferSelectResult< + PlatformGetSitePreviewsRecordWithRelations, + S + >; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformGetSitePreviewsRecord', + 'createPlatformGetSitePreviewsRecord', + 'platformGetSitePreviewsRecord', + args.select, + args.data, + 'CreatePlatformGetSitePreviewsRecordInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformGetSitePreviewsRecord', + fieldName: 'createPlatformGetSitePreviewsRecord', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/api/orm/models/platformSiteRelease.ts b/sdk/constructive-react/src/api/orm/models/platformSiteRelease.ts new file mode 100644 index 0000000000..cf973ae971 --- /dev/null +++ b/sdk/constructive-react/src/api/orm/models/platformSiteRelease.ts @@ -0,0 +1,245 @@ +/** + * PlatformSiteRelease 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 { + PlatformSiteRelease, + PlatformSiteReleaseWithRelations, + PlatformSiteReleaseSelect, + PlatformSiteReleaseFilter, + PlatformSiteReleaseOrderBy, + CreatePlatformSiteReleaseInput, + UpdatePlatformSiteReleaseInput, + PlatformSiteReleasePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformSiteReleaseModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformSiteReleases: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformSiteRelease', + 'platformSiteReleases', + 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, + }, + 'PlatformSiteReleaseFilter', + 'PlatformSiteReleaseOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformSiteRelease', + fieldName: 'platformSiteReleases', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformSiteRelease: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformSiteRelease', + 'platformSiteReleases', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformSiteReleaseFilter', + 'PlatformSiteReleaseOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformSiteRelease', + fieldName: 'platformSiteRelease', + document, + variables, + transform: (data: { + platformSiteReleases?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformSiteRelease: data.platformSiteReleases?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformSiteRelease: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformSiteRelease', + 'platformSiteReleases', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformSiteReleaseFilter', + 'PlatformSiteReleaseOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformSiteRelease', + fieldName: 'platformSiteRelease', + document, + variables, + transform: (data: { + platformSiteReleases?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformSiteRelease: data.platformSiteReleases?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformSiteRelease: { + platformSiteRelease: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformSiteRelease', + 'createPlatformSiteRelease', + 'platformSiteRelease', + args.select, + args.data, + 'CreatePlatformSiteReleaseInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformSiteRelease', + fieldName: 'createPlatformSiteRelease', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformSiteReleasePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformSiteRelease: { + platformSiteRelease: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformSiteRelease', + 'updatePlatformSiteRelease', + 'platformSiteRelease', + args.select, + args.where.id, + args.data, + 'UpdatePlatformSiteReleaseInput', + 'id', + 'platformSiteReleasePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformSiteRelease', + fieldName: 'updatePlatformSiteRelease', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformSiteRelease: { + platformSiteRelease: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformSiteRelease', + 'deletePlatformSiteRelease', + 'platformSiteRelease', + { + id: args.where.id, + }, + 'DeletePlatformSiteReleaseInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformSiteRelease', + fieldName: 'deletePlatformSiteRelease', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/api/orm/models/redirect.ts b/sdk/constructive-react/src/api/orm/models/redirect.ts new file mode 100644 index 0000000000..87cfd5f9c5 --- /dev/null +++ b/sdk/constructive-react/src/api/orm/models/redirect.ts @@ -0,0 +1,245 @@ +/** + * Redirect 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 { + Redirect, + RedirectWithRelations, + RedirectSelect, + RedirectFilter, + RedirectOrderBy, + CreateRedirectInput, + UpdateRedirectInput, + RedirectPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class RedirectModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + redirects: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'Redirect', + 'redirects', + 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, + }, + 'RedirectFilter', + 'RedirectOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Redirect', + fieldName: 'redirects', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + redirect: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'Redirect', + 'redirects', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'RedirectFilter', + 'RedirectOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Redirect', + fieldName: 'redirect', + document, + variables, + transform: (data: { + redirects?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + redirect: data.redirects?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + redirect: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'Redirect', + 'redirects', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'RedirectFilter', + 'RedirectOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Redirect', + fieldName: 'redirect', + document, + variables, + transform: (data: { + redirects?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + redirect: data.redirects?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createRedirect: { + redirect: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'Redirect', + 'createRedirect', + 'redirect', + args.select, + args.data, + 'CreateRedirectInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Redirect', + fieldName: 'createRedirect', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + RedirectPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateRedirect: { + redirect: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'Redirect', + 'updateRedirect', + 'redirect', + args.select, + args.where.id, + args.data, + 'UpdateRedirectInput', + 'id', + 'redirectPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Redirect', + fieldName: 'updateRedirect', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteRedirect: { + redirect: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'Redirect', + 'deleteRedirect', + 'redirect', + { + id: args.where.id, + }, + 'DeleteRedirectInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Redirect', + fieldName: 'deleteRedirect', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/api/orm/models/siteRelease.ts b/sdk/constructive-react/src/api/orm/models/siteRelease.ts new file mode 100644 index 0000000000..25953aa204 --- /dev/null +++ b/sdk/constructive-react/src/api/orm/models/siteRelease.ts @@ -0,0 +1,245 @@ +/** + * SiteRelease 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 { + SiteRelease, + SiteReleaseWithRelations, + SiteReleaseSelect, + SiteReleaseFilter, + SiteReleaseOrderBy, + CreateSiteReleaseInput, + UpdateSiteReleaseInput, + SiteReleasePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class SiteReleaseModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + siteReleases: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'SiteRelease', + 'siteReleases', + 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, + }, + 'SiteReleaseFilter', + 'SiteReleaseOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'SiteRelease', + fieldName: 'siteReleases', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + siteRelease: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'SiteRelease', + 'siteReleases', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'SiteReleaseFilter', + 'SiteReleaseOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'SiteRelease', + fieldName: 'siteRelease', + document, + variables, + transform: (data: { + siteReleases?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + siteRelease: data.siteReleases?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + siteRelease: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'SiteRelease', + 'siteReleases', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'SiteReleaseFilter', + 'SiteReleaseOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'SiteRelease', + fieldName: 'siteRelease', + document, + variables, + transform: (data: { + siteReleases?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + siteRelease: data.siteReleases?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createSiteRelease: { + siteRelease: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'SiteRelease', + 'createSiteRelease', + 'siteRelease', + args.select, + args.data, + 'CreateSiteReleaseInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'SiteRelease', + fieldName: 'createSiteRelease', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + SiteReleasePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateSiteRelease: { + siteRelease: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'SiteRelease', + 'updateSiteRelease', + 'siteRelease', + args.select, + args.where.id, + args.data, + 'UpdateSiteReleaseInput', + 'id', + 'siteReleasePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'SiteRelease', + fieldName: 'updateSiteRelease', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteSiteRelease: { + siteRelease: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'SiteRelease', + 'deleteSiteRelease', + 'siteRelease', + { + id: args.where.id, + }, + 'DeleteSiteReleaseInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'SiteRelease', + fieldName: 'deleteSiteRelease', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/api/orm/models/sqlAction.ts b/sdk/constructive-react/src/api/orm/models/sqlAction.ts new file mode 100644 index 0000000000..74b4418688 --- /dev/null +++ b/sdk/constructive-react/src/api/orm/models/sqlAction.ts @@ -0,0 +1,174 @@ +/** + * SqlAction 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 { + SqlAction, + SqlActionWithRelations, + SqlActionSelect, + SqlActionFilter, + SqlActionOrderBy, + CreateSqlActionInput, + UpdateSqlActionInput, + SqlActionPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class SqlActionModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + sqlActions: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'SqlAction', + 'sqlActions', + 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, + }, + 'SqlActionFilter', + 'SqlActionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'SqlAction', + fieldName: 'sqlActions', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + sqlAction: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'SqlAction', + 'sqlActions', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'SqlActionFilter', + 'SqlActionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'SqlAction', + fieldName: 'sqlAction', + document, + variables, + transform: (data: { + sqlActions?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + sqlAction: data.sqlActions?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: number; + select: S; + } & StrictSelect + ): QueryBuilder<{ + sqlAction: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'SqlAction', + 'sqlActions', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'SqlActionFilter', + 'SqlActionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'SqlAction', + fieldName: 'sqlAction', + document, + variables, + transform: (data: { + sqlActions?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + sqlAction: data.sqlActions?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createSqlAction: { + sqlAction: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'SqlAction', + 'createSqlAction', + 'sqlAction', + args.select, + args.data, + 'CreateSqlActionInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'SqlAction', + fieldName: 'createSqlAction', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/api/orm/mutation/index.ts b/sdk/constructive-react/src/api/orm/mutation/index.ts index 2dd79f41bf..94888543cf 100644 --- a/sdk/constructive-react/src/api/orm/mutation/index.ts +++ b/sdk/constructive-react/src/api/orm/mutation/index.ts @@ -7,81 +7,167 @@ import { OrmClient } from '../client'; import { QueryBuilder, buildCustomDocument } from '../query-builder'; import type { InferSelectResult, StrictSelect } from '../select-types'; import type { + AcceptDatabaseTransferInput, ApplyRlsInput, - AppsInstallAppInput, - AppsUninstallAppInput, - AppsUpgradeAppInput, + CancelDatabaseTransferInput, + DeleteSitePreviewInput, DomainsAssignSubdomainInput, + MintSitePreviewTokenInput, + PagesInstallPagesInput, + PlatformDeleteSitePreviewInput, PlatformDomainsAssignSubdomainInput, + PlatformMintSitePreviewTokenInput, + PlatformPagesInstallPagesInput, + PlatformProvisionSitePreviewInput, + PlatformSetSitePreviewInput, + PlatformSiteMetadataInstallRobotsInput, + PlatformSitesInstallContentPresetInput, + PlatformSitesInstallMantraInput, PlatformSitesProvisionStaticSiteInput, ProvisionBucketInput, + ProvisionSitePreviewInput, + RejectDatabaseTransferInput, RequestDatabaseInput, SetFieldOrderInput, + SetSitePreviewInput, + SiteMetadataInstallRobotsInput, + SitesInstallContentPresetInput, + SitesInstallMantraInput, SitesProvisionStaticSiteInput, + AcceptDatabaseTransferPayload, ApplyRlsPayload, - AppsInstallAppPayload, - AppsUninstallAppPayload, - AppsUpgradeAppPayload, + CancelDatabaseTransferPayload, + DeleteSitePreviewPayload, DomainsAssignSubdomainPayload, + MintSitePreviewTokenPayload, + PagesInstallPagesPayload, + PlatformDeleteSitePreviewPayload, PlatformDomainsAssignSubdomainPayload, + PlatformMintSitePreviewTokenPayload, + PlatformPagesInstallPagesPayload, + PlatformProvisionSitePreviewPayload, + PlatformSetSitePreviewPayload, + PlatformSiteMetadataInstallRobotsPayload, + PlatformSitesInstallContentPresetPayload, + PlatformSitesInstallMantraPayload, PlatformSitesProvisionStaticSitePayload, ProvisionBucketPayload, + ProvisionSitePreviewPayload, + RejectDatabaseTransferPayload, RequestDatabasePayload, SetFieldOrderPayload, + SetSitePreviewPayload, + SiteMetadataInstallRobotsPayload, + SitesInstallContentPresetPayload, + SitesInstallMantraPayload, SitesProvisionStaticSitePayload, + AcceptDatabaseTransferPayloadSelect, ApplyRlsPayloadSelect, - AppsInstallAppPayloadSelect, - AppsUninstallAppPayloadSelect, - AppsUpgradeAppPayloadSelect, + CancelDatabaseTransferPayloadSelect, + DeleteSitePreviewPayloadSelect, DomainsAssignSubdomainPayloadSelect, + MintSitePreviewTokenPayloadSelect, + PagesInstallPagesPayloadSelect, + PlatformDeleteSitePreviewPayloadSelect, PlatformDomainsAssignSubdomainPayloadSelect, + PlatformMintSitePreviewTokenPayloadSelect, + PlatformPagesInstallPagesPayloadSelect, + PlatformProvisionSitePreviewPayloadSelect, + PlatformSetSitePreviewPayloadSelect, + PlatformSiteMetadataInstallRobotsPayloadSelect, + PlatformSitesInstallContentPresetPayloadSelect, + PlatformSitesInstallMantraPayloadSelect, PlatformSitesProvisionStaticSitePayloadSelect, ProvisionBucketPayloadSelect, + ProvisionSitePreviewPayloadSelect, + RejectDatabaseTransferPayloadSelect, RequestDatabasePayloadSelect, SetFieldOrderPayloadSelect, + SetSitePreviewPayloadSelect, + SiteMetadataInstallRobotsPayloadSelect, + SitesInstallContentPresetPayloadSelect, + SitesInstallMantraPayloadSelect, SitesProvisionStaticSitePayloadSelect, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; +export interface AcceptDatabaseTransferVariables { + input: AcceptDatabaseTransferInput; +} export interface ApplyRlsVariables { input: ApplyRlsInput; } -export interface AppsInstallAppVariables { - input: AppsInstallAppInput; -} -export interface AppsUninstallAppVariables { - input: AppsUninstallAppInput; +export interface CancelDatabaseTransferVariables { + input: CancelDatabaseTransferInput; } -export interface AppsUpgradeAppVariables { - input: AppsUpgradeAppInput; +export interface DeleteSitePreviewVariables { + input: DeleteSitePreviewInput; } export interface DomainsAssignSubdomainVariables { input: DomainsAssignSubdomainInput; } +export interface MintSitePreviewTokenVariables { + input: MintSitePreviewTokenInput; +} +export interface PagesInstallPagesVariables { + input: PagesInstallPagesInput; +} +export interface PlatformDeleteSitePreviewVariables { + input: PlatformDeleteSitePreviewInput; +} export interface PlatformDomainsAssignSubdomainVariables { input: PlatformDomainsAssignSubdomainInput; } +export interface PlatformMintSitePreviewTokenVariables { + input: PlatformMintSitePreviewTokenInput; +} +export interface PlatformPagesInstallPagesVariables { + input: PlatformPagesInstallPagesInput; +} +export interface PlatformProvisionSitePreviewVariables { + input: PlatformProvisionSitePreviewInput; +} +export interface PlatformSetSitePreviewVariables { + input: PlatformSetSitePreviewInput; +} +export interface PlatformSiteMetadataInstallRobotsVariables { + input: PlatformSiteMetadataInstallRobotsInput; +} +export interface PlatformSitesInstallContentPresetVariables { + input: PlatformSitesInstallContentPresetInput; +} +export interface PlatformSitesInstallMantraVariables { + input: PlatformSitesInstallMantraInput; +} export interface PlatformSitesProvisionStaticSiteVariables { input: PlatformSitesProvisionStaticSiteInput; } /** * Variables for provisionBucket - * 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. + * Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. */ export interface ProvisionBucketVariables { input: ProvisionBucketInput; } +export interface ProvisionSitePreviewVariables { + input: ProvisionSitePreviewInput; +} +export interface RejectDatabaseTransferVariables { + input: RejectDatabaseTransferInput; +} /** * Variables for requestDatabase * 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. +Pass exactly one of preset_slug or modules. Pass organization_id to have the organization own the database from the start (the caller must be an owner of that organization); the requesting user is still the identity bootstrapped into the new database. Omit it for a personal database. 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); + SELECT * FROM metaschema_public.request_database('team_app', 'example.com', preset_slug := 'full', organization_id := '00000000-0000-0000-0000-000000000000'::uuid); */ export interface RequestDatabaseVariables { input: RequestDatabaseInput; @@ -89,125 +175,137 @@ export interface RequestDatabaseVariables { export interface SetFieldOrderVariables { input: SetFieldOrderInput; } +export interface SetSitePreviewVariables { + input: SetSitePreviewInput; +} +export interface SiteMetadataInstallRobotsVariables { + input: SiteMetadataInstallRobotsInput; +} +export interface SitesInstallContentPresetVariables { + input: SitesInstallContentPresetInput; +} +export interface SitesInstallMantraVariables { + input: SitesInstallMantraInput; +} export interface SitesProvisionStaticSiteVariables { input: SitesProvisionStaticSiteInput; } export function createMutationOperations(client: OrmClient) { return { - applyRls: ( - args: ApplyRlsVariables, + acceptDatabaseTransfer: ( + args: AcceptDatabaseTransferVariables, options: { select: S; - } & StrictSelect + } & StrictSelect ) => new QueryBuilder<{ - applyRls: InferSelectResult | null; + acceptDatabaseTransfer: InferSelectResult | null; }>({ client, operation: 'mutation', - operationName: 'ApplyRls', - fieldName: 'applyRls', + operationName: 'AcceptDatabaseTransfer', + fieldName: 'acceptDatabaseTransfer', ...buildCustomDocument( 'mutation', - 'ApplyRls', - 'applyRls', + 'AcceptDatabaseTransfer', + 'acceptDatabaseTransfer', options.select, args, [ { name: 'input', - type: 'ApplyRlsInput!', + type: 'AcceptDatabaseTransferInput!', }, ], connectionFieldsMap, - 'ApplyRlsPayload' + 'AcceptDatabaseTransferPayload' ), }), - appsInstallApp: ( - args: AppsInstallAppVariables, + applyRls: ( + args: ApplyRlsVariables, options: { select: S; - } & StrictSelect + } & StrictSelect ) => new QueryBuilder<{ - appsInstallApp: InferSelectResult | null; + applyRls: InferSelectResult | null; }>({ client, operation: 'mutation', - operationName: 'AppsInstallApp', - fieldName: 'appsInstallApp', + operationName: 'ApplyRls', + fieldName: 'applyRls', ...buildCustomDocument( 'mutation', - 'AppsInstallApp', - 'appsInstallApp', + 'ApplyRls', + 'applyRls', options.select, args, [ { name: 'input', - type: 'AppsInstallAppInput!', + type: 'ApplyRlsInput!', }, ], connectionFieldsMap, - 'AppsInstallAppPayload' + 'ApplyRlsPayload' ), }), - appsUninstallApp: ( - args: AppsUninstallAppVariables, + cancelDatabaseTransfer: ( + args: CancelDatabaseTransferVariables, options: { select: S; - } & StrictSelect + } & StrictSelect ) => new QueryBuilder<{ - appsUninstallApp: InferSelectResult | null; + cancelDatabaseTransfer: InferSelectResult | null; }>({ client, operation: 'mutation', - operationName: 'AppsUninstallApp', - fieldName: 'appsUninstallApp', + operationName: 'CancelDatabaseTransfer', + fieldName: 'cancelDatabaseTransfer', ...buildCustomDocument( 'mutation', - 'AppsUninstallApp', - 'appsUninstallApp', + 'CancelDatabaseTransfer', + 'cancelDatabaseTransfer', options.select, args, [ { name: 'input', - type: 'AppsUninstallAppInput!', + type: 'CancelDatabaseTransferInput!', }, ], connectionFieldsMap, - 'AppsUninstallAppPayload' + 'CancelDatabaseTransferPayload' ), }), - appsUpgradeApp: ( - args: AppsUpgradeAppVariables, + deleteSitePreview: ( + args: DeleteSitePreviewVariables, options: { select: S; - } & StrictSelect + } & StrictSelect ) => new QueryBuilder<{ - appsUpgradeApp: InferSelectResult | null; + deleteSitePreview: InferSelectResult | null; }>({ client, operation: 'mutation', - operationName: 'AppsUpgradeApp', - fieldName: 'appsUpgradeApp', + operationName: 'DeleteSitePreview', + fieldName: 'deleteSitePreview', ...buildCustomDocument( 'mutation', - 'AppsUpgradeApp', - 'appsUpgradeApp', + 'DeleteSitePreview', + 'deleteSitePreview', options.select, args, [ { name: 'input', - type: 'AppsUpgradeAppInput!', + type: 'DeleteSitePreviewInput!', }, ], connectionFieldsMap, - 'AppsUpgradeAppPayload' + 'DeleteSitePreviewPayload' ), }), domainsAssignSubdomain: ( @@ -239,6 +337,93 @@ export function createMutationOperations(client: OrmClient) { 'DomainsAssignSubdomainPayload' ), }), + mintSitePreviewToken: ( + args: MintSitePreviewTokenVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + mintSitePreviewToken: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'MintSitePreviewToken', + fieldName: 'mintSitePreviewToken', + ...buildCustomDocument( + 'mutation', + 'MintSitePreviewToken', + 'mintSitePreviewToken', + options.select, + args, + [ + { + name: 'input', + type: 'MintSitePreviewTokenInput!', + }, + ], + connectionFieldsMap, + 'MintSitePreviewTokenPayload' + ), + }), + pagesInstallPages: ( + args: PagesInstallPagesVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + pagesInstallPages: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'PagesInstallPages', + fieldName: 'pagesInstallPages', + ...buildCustomDocument( + 'mutation', + 'PagesInstallPages', + 'pagesInstallPages', + options.select, + args, + [ + { + name: 'input', + type: 'PagesInstallPagesInput!', + }, + ], + connectionFieldsMap, + 'PagesInstallPagesPayload' + ), + }), + platformDeleteSitePreview: ( + args: PlatformDeleteSitePreviewVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + platformDeleteSitePreview: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'PlatformDeleteSitePreview', + fieldName: 'platformDeleteSitePreview', + ...buildCustomDocument( + 'mutation', + 'PlatformDeleteSitePreview', + 'platformDeleteSitePreview', + options.select, + args, + [ + { + name: 'input', + type: 'PlatformDeleteSitePreviewInput!', + }, + ], + connectionFieldsMap, + 'PlatformDeleteSitePreviewPayload' + ), + }), platformDomainsAssignSubdomain: ( args: PlatformDomainsAssignSubdomainVariables, options: { @@ -271,6 +456,221 @@ export function createMutationOperations(client: OrmClient) { 'PlatformDomainsAssignSubdomainPayload' ), }), + platformMintSitePreviewToken: ( + args: PlatformMintSitePreviewTokenVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + platformMintSitePreviewToken: InferSelectResult< + PlatformMintSitePreviewTokenPayload, + S + > | null; + }>({ + client, + operation: 'mutation', + operationName: 'PlatformMintSitePreviewToken', + fieldName: 'platformMintSitePreviewToken', + ...buildCustomDocument( + 'mutation', + 'PlatformMintSitePreviewToken', + 'platformMintSitePreviewToken', + options.select, + args, + [ + { + name: 'input', + type: 'PlatformMintSitePreviewTokenInput!', + }, + ], + connectionFieldsMap, + 'PlatformMintSitePreviewTokenPayload' + ), + }), + platformPagesInstallPages: ( + args: PlatformPagesInstallPagesVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + platformPagesInstallPages: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'PlatformPagesInstallPages', + fieldName: 'platformPagesInstallPages', + ...buildCustomDocument( + 'mutation', + 'PlatformPagesInstallPages', + 'platformPagesInstallPages', + options.select, + args, + [ + { + name: 'input', + type: 'PlatformPagesInstallPagesInput!', + }, + ], + connectionFieldsMap, + 'PlatformPagesInstallPagesPayload' + ), + }), + platformProvisionSitePreview: ( + args: PlatformProvisionSitePreviewVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + platformProvisionSitePreview: InferSelectResult< + PlatformProvisionSitePreviewPayload, + S + > | null; + }>({ + client, + operation: 'mutation', + operationName: 'PlatformProvisionSitePreview', + fieldName: 'platformProvisionSitePreview', + ...buildCustomDocument( + 'mutation', + 'PlatformProvisionSitePreview', + 'platformProvisionSitePreview', + options.select, + args, + [ + { + name: 'input', + type: 'PlatformProvisionSitePreviewInput!', + }, + ], + connectionFieldsMap, + 'PlatformProvisionSitePreviewPayload' + ), + }), + platformSetSitePreview: ( + args: PlatformSetSitePreviewVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + platformSetSitePreview: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'PlatformSetSitePreview', + fieldName: 'platformSetSitePreview', + ...buildCustomDocument( + 'mutation', + 'PlatformSetSitePreview', + 'platformSetSitePreview', + options.select, + args, + [ + { + name: 'input', + type: 'PlatformSetSitePreviewInput!', + }, + ], + connectionFieldsMap, + 'PlatformSetSitePreviewPayload' + ), + }), + platformSiteMetadataInstallRobots: ( + args: PlatformSiteMetadataInstallRobotsVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + platformSiteMetadataInstallRobots: InferSelectResult< + PlatformSiteMetadataInstallRobotsPayload, + S + > | null; + }>({ + client, + operation: 'mutation', + operationName: 'PlatformSiteMetadataInstallRobots', + fieldName: 'platformSiteMetadataInstallRobots', + ...buildCustomDocument( + 'mutation', + 'PlatformSiteMetadataInstallRobots', + 'platformSiteMetadataInstallRobots', + options.select, + args, + [ + { + name: 'input', + type: 'PlatformSiteMetadataInstallRobotsInput!', + }, + ], + connectionFieldsMap, + 'PlatformSiteMetadataInstallRobotsPayload' + ), + }), + platformSitesInstallContentPreset: ( + args: PlatformSitesInstallContentPresetVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + platformSitesInstallContentPreset: InferSelectResult< + PlatformSitesInstallContentPresetPayload, + S + > | null; + }>({ + client, + operation: 'mutation', + operationName: 'PlatformSitesInstallContentPreset', + fieldName: 'platformSitesInstallContentPreset', + ...buildCustomDocument( + 'mutation', + 'PlatformSitesInstallContentPreset', + 'platformSitesInstallContentPreset', + options.select, + args, + [ + { + name: 'input', + type: 'PlatformSitesInstallContentPresetInput!', + }, + ], + connectionFieldsMap, + 'PlatformSitesInstallContentPresetPayload' + ), + }), + platformSitesInstallMantra: ( + args: PlatformSitesInstallMantraVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + platformSitesInstallMantra: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'PlatformSitesInstallMantra', + fieldName: 'platformSitesInstallMantra', + ...buildCustomDocument( + 'mutation', + 'PlatformSitesInstallMantra', + 'platformSitesInstallMantra', + options.select, + args, + [ + { + name: 'input', + type: 'PlatformSitesInstallMantraInput!', + }, + ], + connectionFieldsMap, + 'PlatformSitesInstallMantraPayload' + ), + }), platformSitesProvisionStaticSite: ( args: PlatformSitesProvisionStaticSiteVariables, options: { @@ -332,6 +732,64 @@ export function createMutationOperations(client: OrmClient) { 'ProvisionBucketPayload' ), }), + provisionSitePreview: ( + args: ProvisionSitePreviewVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + provisionSitePreview: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'ProvisionSitePreview', + fieldName: 'provisionSitePreview', + ...buildCustomDocument( + 'mutation', + 'ProvisionSitePreview', + 'provisionSitePreview', + options.select, + args, + [ + { + name: 'input', + type: 'ProvisionSitePreviewInput!', + }, + ], + connectionFieldsMap, + 'ProvisionSitePreviewPayload' + ), + }), + rejectDatabaseTransfer: ( + args: RejectDatabaseTransferVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + rejectDatabaseTransfer: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'RejectDatabaseTransfer', + fieldName: 'rejectDatabaseTransfer', + ...buildCustomDocument( + 'mutation', + 'RejectDatabaseTransfer', + 'rejectDatabaseTransfer', + options.select, + args, + [ + { + name: 'input', + type: 'RejectDatabaseTransferInput!', + }, + ], + connectionFieldsMap, + 'RejectDatabaseTransferPayload' + ), + }), requestDatabase: ( args: RequestDatabaseVariables, options: { @@ -390,6 +848,122 @@ export function createMutationOperations(client: OrmClient) { 'SetFieldOrderPayload' ), }), + setSitePreview: ( + args: SetSitePreviewVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + setSitePreview: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SetSitePreview', + fieldName: 'setSitePreview', + ...buildCustomDocument( + 'mutation', + 'SetSitePreview', + 'setSitePreview', + options.select, + args, + [ + { + name: 'input', + type: 'SetSitePreviewInput!', + }, + ], + connectionFieldsMap, + 'SetSitePreviewPayload' + ), + }), + siteMetadataInstallRobots: ( + args: SiteMetadataInstallRobotsVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + siteMetadataInstallRobots: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SiteMetadataInstallRobots', + fieldName: 'siteMetadataInstallRobots', + ...buildCustomDocument( + 'mutation', + 'SiteMetadataInstallRobots', + 'siteMetadataInstallRobots', + options.select, + args, + [ + { + name: 'input', + type: 'SiteMetadataInstallRobotsInput!', + }, + ], + connectionFieldsMap, + 'SiteMetadataInstallRobotsPayload' + ), + }), + sitesInstallContentPreset: ( + args: SitesInstallContentPresetVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + sitesInstallContentPreset: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SitesInstallContentPreset', + fieldName: 'sitesInstallContentPreset', + ...buildCustomDocument( + 'mutation', + 'SitesInstallContentPreset', + 'sitesInstallContentPreset', + options.select, + args, + [ + { + name: 'input', + type: 'SitesInstallContentPresetInput!', + }, + ], + connectionFieldsMap, + 'SitesInstallContentPresetPayload' + ), + }), + sitesInstallMantra: ( + args: SitesInstallMantraVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + sitesInstallMantra: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SitesInstallMantra', + fieldName: 'sitesInstallMantra', + ...buildCustomDocument( + 'mutation', + 'SitesInstallMantra', + 'sitesInstallMantra', + options.select, + args, + [ + { + name: 'input', + type: 'SitesInstallMantraInput!', + }, + ], + connectionFieldsMap, + 'SitesInstallMantraPayload' + ), + }), sitesProvisionStaticSite: ( args: SitesProvisionStaticSiteVariables, options: { diff --git a/sdk/constructive-react/src/api/orm/query/index.ts b/sdk/constructive-react/src/api/orm/query/index.ts index 1d38cd7001..0c2a655e71 100644 --- a/sdk/constructive-react/src/api/orm/query/index.ts +++ b/sdk/constructive-react/src/api/orm/query/index.ts @@ -6,12 +6,7 @@ import { OrmClient } from '../client'; import { QueryBuilder, buildCustomDocument } from '../query-builder'; import type { InferSelectResult, StrictSelect } from '../select-types'; -import type { - ResolveHttpRouteRecord, - ResolveRouteRecord, - ResolveHttpRouteRecordSelect, - ResolveRouteRecordSelect, -} from '../input-types'; +import type { ResolveRouteRecord, ResolveRouteRecordSelect } from '../input-types'; import { connectionFieldsMap } from '../input-types'; export interface ApiSchemaNamesVariables { targetApiId?: string; @@ -20,14 +15,44 @@ export interface ApplyRegistryDefaultsVariables { data?: unknown; nodeType?: string; } -export interface ResolveDeepLinkVariables { +export interface GetSitePreviewCommitVariables { + targetName?: string; + targetSiteId?: string; +} +export interface GetSiteReleaseManifestVariables { + targetCommitId?: string; + targetSiteId?: string; +} +export interface PagePublishedVariables { + pageSlug?: string; + targetSiteId?: string; +} +export interface PlatformGetSitePreviewCommitVariables { + targetName?: string; + targetSiteId?: string; +} +export interface PlatformGetSiteReleaseManifestVariables { + targetCommitId?: string; + targetSiteId?: string; +} +export interface PlatformPagePublishedVariables { + pageSlug?: string; + targetSiteId?: string; +} +export interface PlatformSitesDeepLinkUrlVariables { linkSlug?: string; targetSiteId?: string; } -export interface ResolveHttpRouteVariables { - requestHost?: string; - requestMethod?: string; - requestPath?: string; +export interface PlatformSitesSiteOriginVariables { + targetSiteId?: string; +} +export interface PlatformVerifySitePreviewTokenVariables { + siteId?: string; + token?: string; +} +export interface ResolveDeepLinkVariables { + linkSlug?: string; + targetSiteId?: string; } export interface ResolveRouteVariables { requestHost?: string; @@ -37,6 +62,17 @@ export interface ResolveRouteVariables { export interface ResolveSiteAppLinksVariables { targetSiteId?: string; } +export interface SitesDeepLinkUrlVariables { + linkSlug?: string; + targetSiteId?: string; +} +export interface SitesSiteOriginVariables { + targetSiteId?: string; +} +export interface VerifySitePreviewTokenVariables { + siteId?: string; + token?: string; +} export function createQueryOperations(client: OrmClient) { return { apiSchemaNames: ( @@ -101,28 +137,28 @@ export function createQueryOperations(client: OrmClient) { undefined ), }), - resolveDeepLink: ( - args: ResolveDeepLinkVariables, + getSitePreviewCommit: ( + args: GetSitePreviewCommitVariables, options?: { select?: Record; } ) => new QueryBuilder<{ - resolveDeepLink: unknown | null; + getSitePreviewCommit: string | null; }>({ client, operation: 'query', - operationName: 'ResolveDeepLink', - fieldName: 'resolveDeepLink', + operationName: 'GetSitePreviewCommit', + fieldName: 'getSitePreviewCommit', ...buildCustomDocument( 'query', - 'ResolveDeepLink', - 'resolveDeepLink', + 'GetSitePreviewCommit', + 'getSitePreviewCommit', options?.select, args, [ { - name: 'linkSlug', + name: 'targetName', type: 'String', }, { @@ -134,41 +170,297 @@ export function createQueryOperations(client: OrmClient) { undefined ), }), - resolveHttpRoute: ( - args: ResolveHttpRouteVariables, - options: { - select: S; - } & StrictSelect + getSiteReleaseManifest: ( + args: GetSiteReleaseManifestVariables, + options?: { + select?: Record; + } ) => new QueryBuilder<{ - resolveHttpRoute: InferSelectResult | null; + getSiteReleaseManifest: unknown | null; }>({ client, operation: 'query', - operationName: 'ResolveHttpRoute', - fieldName: 'resolveHttpRoute', + operationName: 'GetSiteReleaseManifest', + fieldName: 'getSiteReleaseManifest', ...buildCustomDocument( 'query', - 'ResolveHttpRoute', - 'resolveHttpRoute', - options.select, + 'GetSiteReleaseManifest', + 'getSiteReleaseManifest', + options?.select, args, [ { - name: 'requestHost', + name: 'targetCommitId', + type: 'UUID', + }, + { + name: 'targetSiteId', + type: 'UUID', + }, + ], + connectionFieldsMap, + undefined + ), + }), + pagePublished: ( + args: PagePublishedVariables, + options?: { + select?: Record; + } + ) => + new QueryBuilder<{ + pagePublished: unknown | null; + }>({ + client, + operation: 'query', + operationName: 'PagePublished', + fieldName: 'pagePublished', + ...buildCustomDocument( + 'query', + 'PagePublished', + 'pagePublished', + options?.select, + args, + [ + { + name: 'pageSlug', type: 'String', }, { - name: 'requestMethod', + name: 'targetSiteId', + type: 'UUID', + }, + ], + connectionFieldsMap, + undefined + ), + }), + platformGetSitePreviewCommit: ( + args: PlatformGetSitePreviewCommitVariables, + options?: { + select?: Record; + } + ) => + new QueryBuilder<{ + platformGetSitePreviewCommit: string | null; + }>({ + client, + operation: 'query', + operationName: 'PlatformGetSitePreviewCommit', + fieldName: 'platformGetSitePreviewCommit', + ...buildCustomDocument( + 'query', + 'PlatformGetSitePreviewCommit', + 'platformGetSitePreviewCommit', + options?.select, + args, + [ + { + name: 'targetName', type: 'String', }, { - name: 'requestPath', + name: 'targetSiteId', + type: 'UUID', + }, + ], + connectionFieldsMap, + undefined + ), + }), + platformGetSiteReleaseManifest: ( + args: PlatformGetSiteReleaseManifestVariables, + options?: { + select?: Record; + } + ) => + new QueryBuilder<{ + platformGetSiteReleaseManifest: unknown | null; + }>({ + client, + operation: 'query', + operationName: 'PlatformGetSiteReleaseManifest', + fieldName: 'platformGetSiteReleaseManifest', + ...buildCustomDocument( + 'query', + 'PlatformGetSiteReleaseManifest', + 'platformGetSiteReleaseManifest', + options?.select, + args, + [ + { + name: 'targetCommitId', + type: 'UUID', + }, + { + name: 'targetSiteId', + type: 'UUID', + }, + ], + connectionFieldsMap, + undefined + ), + }), + platformPagePublished: ( + args: PlatformPagePublishedVariables, + options?: { + select?: Record; + } + ) => + new QueryBuilder<{ + platformPagePublished: unknown | null; + }>({ + client, + operation: 'query', + operationName: 'PlatformPagePublished', + fieldName: 'platformPagePublished', + ...buildCustomDocument( + 'query', + 'PlatformPagePublished', + 'platformPagePublished', + options?.select, + args, + [ + { + name: 'pageSlug', + type: 'String', + }, + { + name: 'targetSiteId', + type: 'UUID', + }, + ], + connectionFieldsMap, + undefined + ), + }), + platformSitesDeepLinkUrl: ( + args: PlatformSitesDeepLinkUrlVariables, + options?: { + select?: Record; + } + ) => + new QueryBuilder<{ + platformSitesDeepLinkUrl: string | null; + }>({ + client, + operation: 'query', + operationName: 'PlatformSitesDeepLinkUrl', + fieldName: 'platformSitesDeepLinkUrl', + ...buildCustomDocument( + 'query', + 'PlatformSitesDeepLinkUrl', + 'platformSitesDeepLinkUrl', + options?.select, + args, + [ + { + name: 'linkSlug', type: 'String', }, + { + name: 'targetSiteId', + type: 'UUID', + }, ], connectionFieldsMap, - 'ResolveHttpRouteRecord' + undefined + ), + }), + platformSitesSiteOrigin: ( + args: PlatformSitesSiteOriginVariables, + options?: { + select?: Record; + } + ) => + new QueryBuilder<{ + platformSitesSiteOrigin: string | null; + }>({ + client, + operation: 'query', + operationName: 'PlatformSitesSiteOrigin', + fieldName: 'platformSitesSiteOrigin', + ...buildCustomDocument( + 'query', + 'PlatformSitesSiteOrigin', + 'platformSitesSiteOrigin', + options?.select, + args, + [ + { + name: 'targetSiteId', + type: 'UUID', + }, + ], + connectionFieldsMap, + undefined + ), + }), + platformVerifySitePreviewToken: ( + args: PlatformVerifySitePreviewTokenVariables, + options?: { + select?: Record; + } + ) => + new QueryBuilder<{ + platformVerifySitePreviewToken: string | null; + }>({ + client, + operation: 'query', + operationName: 'PlatformVerifySitePreviewToken', + fieldName: 'platformVerifySitePreviewToken', + ...buildCustomDocument( + 'query', + 'PlatformVerifySitePreviewToken', + 'platformVerifySitePreviewToken', + options?.select, + args, + [ + { + name: 'siteId', + type: 'UUID', + }, + { + name: 'token', + type: 'String', + }, + ], + connectionFieldsMap, + undefined + ), + }), + resolveDeepLink: ( + args: ResolveDeepLinkVariables, + options?: { + select?: Record; + } + ) => + new QueryBuilder<{ + resolveDeepLink: unknown | null; + }>({ + client, + operation: 'query', + operationName: 'ResolveDeepLink', + fieldName: 'resolveDeepLink', + ...buildCustomDocument( + 'query', + 'ResolveDeepLink', + 'resolveDeepLink', + options?.select, + args, + [ + { + name: 'linkSlug', + type: 'String', + }, + { + name: 'targetSiteId', + type: 'UUID', + }, + ], + connectionFieldsMap, + undefined ), }), resolveRoute: ( @@ -237,5 +529,100 @@ export function createQueryOperations(client: OrmClient) { undefined ), }), + sitesDeepLinkUrl: ( + args: SitesDeepLinkUrlVariables, + options?: { + select?: Record; + } + ) => + new QueryBuilder<{ + sitesDeepLinkUrl: string | null; + }>({ + client, + operation: 'query', + operationName: 'SitesDeepLinkUrl', + fieldName: 'sitesDeepLinkUrl', + ...buildCustomDocument( + 'query', + 'SitesDeepLinkUrl', + 'sitesDeepLinkUrl', + options?.select, + args, + [ + { + name: 'linkSlug', + type: 'String', + }, + { + name: 'targetSiteId', + type: 'UUID', + }, + ], + connectionFieldsMap, + undefined + ), + }), + sitesSiteOrigin: ( + args: SitesSiteOriginVariables, + options?: { + select?: Record; + } + ) => + new QueryBuilder<{ + sitesSiteOrigin: string | null; + }>({ + client, + operation: 'query', + operationName: 'SitesSiteOrigin', + fieldName: 'sitesSiteOrigin', + ...buildCustomDocument( + 'query', + 'SitesSiteOrigin', + 'sitesSiteOrigin', + options?.select, + args, + [ + { + name: 'targetSiteId', + type: 'UUID', + }, + ], + connectionFieldsMap, + undefined + ), + }), + verifySitePreviewToken: ( + args: VerifySitePreviewTokenVariables, + options?: { + select?: Record; + } + ) => + new QueryBuilder<{ + verifySitePreviewToken: string | null; + }>({ + client, + operation: 'query', + operationName: 'VerifySitePreviewToken', + fieldName: 'verifySitePreviewToken', + ...buildCustomDocument( + 'query', + 'VerifySitePreviewToken', + 'verifySitePreviewToken', + options?.select, + args, + [ + { + name: 'siteId', + type: 'UUID', + }, + { + name: 'token', + type: 'String', + }, + ], + connectionFieldsMap, + undefined + ), + }), }; } diff --git a/sdk/constructive-react/src/api/schema-types.ts b/sdk/constructive-react/src/api/schema-types.ts index a95202ef55..3c2045dd03 100644 --- a/sdk/constructive-react/src/api/schema-types.ts +++ b/sdk/constructive-react/src/api/schema-types.ts @@ -8,8 +8,7 @@ import type { Api, ApiSchema, ApiSetting, - App, - AppComponent, + AstMigration, CheckConstraint, CompositeType, CorsSetting, @@ -34,8 +33,9 @@ import type { ForeignKeyConstraintBehavior, FullTextSearch, Function, + GetSitePreviewsRecord, HostnameBinding, - HttpRoute, + IdentityProviderRegistry, Index, ManagedDomain, NodeTypeRegistry, @@ -51,6 +51,7 @@ import type { PlatformEmailIdentity, PlatformEmailProviderAccount, PlatformEmailSiteIdentity, + PlatformGetSitePreviewsRecord, PlatformManagedDomain, PlatformPage, PlatformSite, @@ -59,11 +60,13 @@ import type { PlatformSiteErrorPage, PlatformSiteMetadatum, PlatformSiteModule, + PlatformSiteRelease, PlatformSiteTheme, PlatformSiteWebConfig, Policy, PrimaryKeyConstraint, PubkeySetting, + Redirect, RlsSetting, Route, RouteBinding, @@ -75,9 +78,11 @@ import type { SiteErrorPage, SiteMetadatum, SiteModule, + SiteRelease, SiteTheme, SiteWebConfig, SpatialRelation, + SqlAction, Table, TableBehavior, TableGrant, @@ -171,6 +176,8 @@ export type ApiSettingOrderBy = | 'ENABLE_DIRECT_UPLOADS_DESC' | 'ENABLE_I18N_ASC' | 'ENABLE_I18N_DESC' + | 'ENABLE_INTROSPECTION_ASC' + | 'ENABLE_INTROSPECTION_DESC' | 'ENABLE_LLM_ASC' | 'ENABLE_LLM_DESC' | 'ENABLE_LTREE_ASC' @@ -185,69 +192,66 @@ export type ApiSettingOrderBy = | 'ENABLE_REALTIME_DESC' | 'ENABLE_SEARCH_ASC' | 'ENABLE_SEARCH_DESC' + | 'IDLE_IN_TRANSACTION_TIMEOUT_MS_ASC' + | 'IDLE_IN_TRANSACTION_TIMEOUT_MS_DESC' | 'ID_ASC' | 'ID_DESC' + | 'LOCK_TIMEOUT_MS_ASC' + | 'LOCK_TIMEOUT_MS_DESC' + | 'MAX_CONCURRENT_REQUESTS_ASC' + | 'MAX_CONCURRENT_REQUESTS_DESC' + | 'MAX_PAGE_SIZE_ASC' + | 'MAX_PAGE_SIZE_DESC' + | 'MAX_QUERY_COST_ASC' + | 'MAX_QUERY_COST_DESC' + | 'MAX_QUERY_DEPTH_ASC' + | 'MAX_QUERY_DEPTH_DESC' + | 'MAX_QUEUE_WAIT_MS_ASC' + | 'MAX_QUEUE_WAIT_MS_DESC' + | 'MAX_REQUEST_BYTES_ASC' + | 'MAX_REQUEST_BYTES_DESC' | 'NATURAL' | 'OPTIONS_ASC' | 'OPTIONS_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' + | 'RATE_LIMIT_BURST_ASC' + | 'RATE_LIMIT_BURST_DESC' + | 'RATE_LIMIT_RPM_ASC' + | 'RATE_LIMIT_RPM_DESC' | 'STATEMENT_TIMEOUT_MS_ASC' | 'STATEMENT_TIMEOUT_MS_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `AppComponent`. */ -export type AppComponentOrderBy = - | 'APP_ID_ASC' - | 'APP_ID_DESC' - | 'COMPONENT_API_ID_ASC' - | 'COMPONENT_API_ID_DESC' - | 'COMPONENT_DOMAIN_ID_ASC' - | 'COMPONENT_DOMAIN_ID_DESC' - | 'COMPONENT_INSTALLATION_ID_ASC' - | 'COMPONENT_INSTALLATION_ID_DESC' - | 'COMPONENT_SITE_ID_ASC' - | 'COMPONENT_SITE_ID_DESC' - | 'COMPONENT_TYPE_ASC' - | 'COMPONENT_TYPE_DESC' - | 'CONFIG_ASC' - | 'CONFIG_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `App`. */ -export type AppOrderBy = - | 'CONFIG_ASC' - | 'CONFIG_DESC' +/** Methods to use when ordering `AstMigration`. */ +export type AstMigrationOrderBy = + | 'ACTION_ID_ASC' + | 'ACTION_ID_DESC' + | 'ACTION_NAME_ASC' + | 'ACTION_NAME_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' + | 'DEPLOYS_ASC' + | 'DEPLOYS_DESC' + | 'DEPLOY_ASC' + | 'DEPLOY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'IS_PUBLISHED_ASC' - | 'IS_PUBLISHED_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'STATUS_ASC' - | 'STATUS_DESC' - | 'TITLE_ASC' - | 'TITLE_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; + | 'PAYLOAD_ASC' + | 'PAYLOAD_DESC' + | 'REQUIRES_ASC' + | 'REQUIRES_DESC' + | 'REVERT_ASC' + | 'REVERT_DESC' + | 'VERIFY_ASC' + | 'VERIFY_DESC'; /** Methods to use when ordering `CheckConstraint`. */ export type CheckConstraintOrderBy = | 'CATEGORY_ASC' @@ -354,6 +358,8 @@ export type DatabaseSettingOrderBy = | 'DATABASE_ID_DESC' | 'ENABLE_AGGREGATES_ASC' | 'ENABLE_AGGREGATES_DESC' + | 'ENABLE_BILLING_ASC' + | 'ENABLE_BILLING_DESC' | 'ENABLE_BULK_ASC' | 'ENABLE_BULK_DESC' | 'ENABLE_CONNECTION_FILTER_ASC' @@ -362,6 +368,8 @@ export type DatabaseSettingOrderBy = | 'ENABLE_DIRECT_UPLOADS_DESC' | 'ENABLE_I18N_ASC' | 'ENABLE_I18N_DESC' + | 'ENABLE_INTROSPECTION_ASC' + | 'ENABLE_INTROSPECTION_DESC' | 'ENABLE_LLM_ASC' | 'ENABLE_LLM_DESC' | 'ENABLE_LTREE_ASC' @@ -376,15 +384,35 @@ export type DatabaseSettingOrderBy = | 'ENABLE_REALTIME_DESC' | 'ENABLE_SEARCH_ASC' | 'ENABLE_SEARCH_DESC' + | 'IDLE_IN_TRANSACTION_TIMEOUT_MS_ASC' + | 'IDLE_IN_TRANSACTION_TIMEOUT_MS_DESC' | 'ID_ASC' | 'ID_DESC' | 'LABELS_ASC' | 'LABELS_DESC' + | 'LOCK_TIMEOUT_MS_ASC' + | 'LOCK_TIMEOUT_MS_DESC' + | 'MAX_CONCURRENT_REQUESTS_ASC' + | 'MAX_CONCURRENT_REQUESTS_DESC' + | 'MAX_PAGE_SIZE_ASC' + | 'MAX_PAGE_SIZE_DESC' + | 'MAX_QUERY_COST_ASC' + | 'MAX_QUERY_COST_DESC' + | 'MAX_QUERY_DEPTH_ASC' + | 'MAX_QUERY_DEPTH_DESC' + | 'MAX_QUEUE_WAIT_MS_ASC' + | 'MAX_QUEUE_WAIT_MS_DESC' + | 'MAX_REQUEST_BYTES_ASC' + | 'MAX_REQUEST_BYTES_DESC' | 'NATURAL' | 'OPTIONS_ASC' | 'OPTIONS_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' + | 'RATE_LIMIT_BURST_ASC' + | 'RATE_LIMIT_BURST_DESC' + | 'RATE_LIMIT_RPM_ASC' + | 'RATE_LIMIT_RPM_DESC' | 'STATEMENT_TIMEOUT_MS_ASC' | 'STATEMENT_TIMEOUT_MS_DESC' | 'UPDATED_AT_ASC' @@ -449,6 +477,8 @@ export type DeriveOrderBy = | 'DATABASE_ID_DESC' | 'ID_ASC' | 'ID_DESC' + | 'INCLUDE_GRANTS_ASC' + | 'INCLUDE_GRANTS_DESC' | 'INCLUDE_MUTATIONS_ASC' | 'INCLUDE_MUTATIONS_DESC' | 'KIND_ASC' @@ -497,6 +527,8 @@ export type DomainOrderBy = | 'CONFIG_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'HOSTNAME_ASC' @@ -522,6 +554,8 @@ export type DomainOrderBy = | 'TLS_STATUS_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC' | 'VERIFICATION_STATUS_ASC' | 'VERIFICATION_STATUS_DESC' | 'VERIFIED_AT_ASC' @@ -955,17 +989,43 @@ export type FullTextSearchOrderBy = | 'WEIGHTS_DESC'; /** Methods to use when ordering `Function`. */ export type FunctionOrderBy = + | 'API_EXPOSED_ASC' + | 'API_EXPOSED_DESC' + | 'ARGUMENTS_ASC' + | 'ARGUMENTS_DESC' + | 'BODY_AST_ASC' + | 'BODY_AST_DESC' + | 'CATEGORY_ASC' + | 'CATEGORY_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'DATA_ASC' + | 'DATA_DESC' + | 'FUNCTION_TYPE_ASC' + | 'FUNCTION_TYPE_DESC' | 'ID_ASC' | 'ID_DESC' + | 'IS_STRICT_ASC' + | 'IS_STRICT_DESC' + | 'KIND_ASC' + | 'KIND_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' + | 'RETURNS_ASC' + | 'RETURNS_DESC' | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC'; + | 'SCHEMA_ID_DESC' + | 'SECURITY_INVOKER_ASC' + | 'SECURITY_INVOKER_DESC' + | 'SMART_TAGS_ASC' + | 'SMART_TAGS_DESC' + | 'TAGS_ASC' + | 'TAGS_DESC' + | 'VOLATILITY_ASC' + | 'VOLATILITY_DESC'; /** Methods to use when ordering `HostnameBinding`. */ export type HostnameBindingOrderBy = | 'DOMAIN_ID_ASC' @@ -991,37 +1051,27 @@ export type HostnameBindingOrderBy = | 'UPDATED_AT_DESC' | 'VERIFICATION_STATUS_ASC' | 'VERIFICATION_STATUS_DESC'; -/** Methods to use when ordering `HttpRoute`. */ -export type 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' +/** Methods to use when ordering `IdentityProviderRegistry`. */ +export type IdentityProviderRegistryOrderBy = + | 'AUTHORIZATION_URL_ASC' + | 'AUTHORIZATION_URL_DESC' + | 'DISPLAY_NAME_ASC' + | 'DISPLAY_NAME_DESC' + | 'ISSUER_URL_ASC' + | 'ISSUER_URL_DESC' + | 'KIND_ASC' + | 'KIND_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'; + | 'SCOPES_ASC' + | 'SCOPES_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'TOKEN_URL_ASC' + | 'TOKEN_URL_DESC' + | 'USERINFO_URL_ASC' + | 'USERINFO_URL_DESC'; /** Methods to use when ordering `Index`. */ export type IndexOrderBy = | 'ACCESS_METHOD_ASC' @@ -1045,6 +1095,8 @@ export type IndexOrderBy = | 'NAME_ASC' | 'NAME_DESC' | 'NATURAL' + | 'NULLS_NOT_DISTINCT_ASC' + | 'NULLS_NOT_DISTINCT_DESC' | 'OPTIONS_ASC' | 'OPTIONS_DESC' | 'OP_CLASSES_ASC' @@ -1071,6 +1123,8 @@ export type ManagedDomainOrderBy = | 'CERT_STATUS_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'DOMAIN_ASC' @@ -1088,6 +1142,8 @@ export type ManagedDomainOrderBy = | 'TLS_STATUS_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC' | 'VERIFICATION_STATUS_ASC' | 'VERIFICATION_STATUS_DESC' | 'VERIFIED_AT_ASC' @@ -1127,6 +1183,8 @@ export type PageOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' + | 'SEEDED_FROM_ASC' + | 'SEEDED_FROM_DESC' | 'SITE_ID_ASC' | 'SITE_ID_DESC' | 'SLUG_ASC' @@ -1220,6 +1278,8 @@ export type PlatformApiSettingOrderBy = | 'ENABLE_DIRECT_UPLOADS_DESC' | 'ENABLE_I18N_ASC' | 'ENABLE_I18N_DESC' + | 'ENABLE_INTROSPECTION_ASC' + | 'ENABLE_INTROSPECTION_DESC' | 'ENABLE_LLM_ASC' | 'ENABLE_LLM_DESC' | 'ENABLE_LTREE_ASC' @@ -1234,13 +1294,33 @@ export type PlatformApiSettingOrderBy = | 'ENABLE_REALTIME_DESC' | 'ENABLE_SEARCH_ASC' | 'ENABLE_SEARCH_DESC' + | 'IDLE_IN_TRANSACTION_TIMEOUT_MS_ASC' + | 'IDLE_IN_TRANSACTION_TIMEOUT_MS_DESC' | 'ID_ASC' | 'ID_DESC' + | 'LOCK_TIMEOUT_MS_ASC' + | 'LOCK_TIMEOUT_MS_DESC' + | 'MAX_CONCURRENT_REQUESTS_ASC' + | 'MAX_CONCURRENT_REQUESTS_DESC' + | 'MAX_PAGE_SIZE_ASC' + | 'MAX_PAGE_SIZE_DESC' + | 'MAX_QUERY_COST_ASC' + | 'MAX_QUERY_COST_DESC' + | 'MAX_QUERY_DEPTH_ASC' + | 'MAX_QUERY_DEPTH_DESC' + | 'MAX_QUEUE_WAIT_MS_ASC' + | 'MAX_QUEUE_WAIT_MS_DESC' + | 'MAX_REQUEST_BYTES_ASC' + | 'MAX_REQUEST_BYTES_DESC' | 'NATURAL' | 'OPTIONS_ASC' | 'OPTIONS_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' + | 'RATE_LIMIT_BURST_ASC' + | 'RATE_LIMIT_BURST_DESC' + | 'RATE_LIMIT_RPM_ASC' + | 'RATE_LIMIT_RPM_DESC' | 'STATEMENT_TIMEOUT_MS_ASC' | 'STATEMENT_TIMEOUT_MS_DESC' | 'UPDATED_AT_ASC' @@ -1291,6 +1371,8 @@ export type PlatformDomainOrderBy = | 'CONFIG_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'HOSTNAME_ASC' | 'HOSTNAME_DESC' | 'ID_ASC' @@ -1314,6 +1396,8 @@ export type PlatformDomainOrderBy = | 'TLS_STATUS_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC' | 'VERIFICATION_STATUS_ASC' | 'VERIFICATION_STATUS_DESC' | 'VERIFIED_AT_ASC' @@ -1442,6 +1526,8 @@ export type PlatformManagedDomainOrderBy = | 'CERT_STATUS_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'DOMAIN_ASC' | 'DOMAIN_DESC' | 'ID_ASC' @@ -1457,6 +1543,8 @@ export type PlatformManagedDomainOrderBy = | 'TLS_STATUS_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC' | 'VERIFICATION_STATUS_ASC' | 'VERIFICATION_STATUS_DESC' | 'VERIFIED_AT_ASC' @@ -1474,6 +1562,8 @@ export type PlatformPageOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' + | 'SEEDED_FROM_ASC' + | 'SEEDED_FROM_DESC' | 'SITE_ID_ASC' | 'SITE_ID_DESC' | 'SLUG_ASC' @@ -1484,8 +1574,8 @@ export type PlatformPageOrderBy = | 'UPDATED_AT_DESC'; /** Methods to use when ordering `PlatformSiteAppLink`. */ export type PlatformSiteAppLinkOrderBy = - | 'APP_IDENTIFIER_ASC' - | 'APP_IDENTIFIER_DESC' + | 'APP_STORE_IDENTITY_ID_ASC' + | 'APP_STORE_IDENTITY_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'ID_ASC' @@ -1493,18 +1583,10 @@ export type PlatformSiteAppLinkOrderBy = | 'NATURAL' | 'PATH_COMPONENTS_ASC' | 'PATH_COMPONENTS_DESC' - | 'PLATFORM_ASC' - | 'PLATFORM_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'SHA256_CERT_FINGERPRINTS_ASC' - | 'SHA256_CERT_FINGERPRINTS_DESC' | 'SITE_ID_ASC' | 'SITE_ID_DESC' - | 'STORE_URL_ASC' - | 'STORE_URL_DESC' - | 'TEAM_ID_ASC' - | 'TEAM_ID_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'WEBCREDENTIALS_ASC' @@ -1522,6 +1604,8 @@ export type PlatformSiteDeepLinkOrderBy = | 'METADATA_ASC' | 'METADATA_DESC' | 'NATURAL' + | 'PAGE_ID_ASC' + | 'PAGE_ID_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'SITE_ID_ASC' @@ -1574,6 +1658,8 @@ export type PlatformSiteMetadatumOrderBy = | 'PRIMARY_KEY_DESC' | 'ROBOTS_ASC' | 'ROBOTS_DESC' + | 'ROBOTS_SEEDED_FROM_ASC' + | 'ROBOTS_SEEDED_FROM_DESC' | 'SITE_ID_ASC' | 'SITE_ID_DESC' | 'STORE_ID_ASC' @@ -1611,6 +1697,8 @@ export type PlatformSiteOrderBy = | 'BUCKET_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' | 'ID_ASC' @@ -1631,6 +1719,27 @@ export type PlatformSiteOrderBy = | 'TITLE_ASC' | 'TITLE_DESC' | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +/** Methods to use when ordering `PlatformSiteRelease`. */ +export type PlatformSiteReleaseOrderBy = + | 'COMMIT_ID_ASC' + | 'COMMIT_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'MANIFEST_ASC' + | 'MANIFEST_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'SITE_ID_ASC' + | 'SITE_ID_DESC' + | 'STORE_ID_ASC' + | 'STORE_ID_DESC' + | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; /** Methods to use when ordering `PlatformSiteTheme`. */ export type PlatformSiteThemeOrderBy = @@ -1680,6 +1789,8 @@ export type PlatformSiteWebConfigOrderBy = export type PolicyOrderBy = | 'CATEGORY_ASC' | 'CATEGORY_DESC' + | 'COLUMN_REFS_ASC' + | 'COLUMN_REFS_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'DATABASE_ID_ASC' @@ -1777,6 +1888,31 @@ export type PubkeySettingOrderBy = | 'UPDATED_AT_DESC' | 'USER_FIELD_ASC' | 'USER_FIELD_DESC'; +/** Methods to use when ordering `Redirect`. */ +export type RedirectOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'PRESERVE_PATH_ASC' + | 'PRESERVE_PATH_DESC' + | 'PRESERVE_QUERY_ASC' + | 'PRESERVE_QUERY_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'STATUS_CODE_ASC' + | 'STATUS_CODE_DESC' + | 'TO_HOST_ASC' + | 'TO_HOST_DESC' + | 'TO_PATH_ASC' + | 'TO_PATH_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; /** Methods to use when ordering `RlsSetting`. */ export type RlsSettingOrderBy = | 'AUTHENTICATE_FUNCTION_ID_ASC' @@ -1823,12 +1959,16 @@ export type RouteBindingOrderBy = | 'PRIMARY_KEY_DESC' | 'PRIORITY_ASC' | 'PRIORITY_DESC' + | 'SERVING_SITE_ID_ASC' + | 'SERVING_SITE_ID_DESC' | 'TARGET_API_ID_ASC' | 'TARGET_API_ID_DESC' | 'TARGET_BUCKET_ID_ASC' | 'TARGET_BUCKET_ID_DESC' | 'TARGET_FUNCTION_ID_ASC' | 'TARGET_FUNCTION_ID_DESC' + | 'TARGET_REDIRECT_ID_ASC' + | 'TARGET_REDIRECT_ID_DESC' | 'TARGET_SERVICE_ID_ASC' | 'TARGET_SERVICE_ID_DESC' | 'TARGET_SITE_ID_ASC' @@ -1837,6 +1977,8 @@ export type RouteBindingOrderBy = | 'UPDATED_AT_DESC'; /** Methods to use when ordering `Route`. */ export type RouteOrderBy = + | 'ANONYMOUS_ASC' + | 'ANONYMOUS_DESC' | 'CONFIG_ASC' | 'CONFIG_DESC' | 'CREATED_AT_ASC' @@ -1854,16 +1996,22 @@ export type RouteOrderBy = | 'NATURAL' | 'PATH_ASC' | 'PATH_DESC' + | 'PREVIEW_REF_ASC' + | 'PREVIEW_REF_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'PRIORITY_ASC' | 'PRIORITY_DESC' + | 'SERVING_SITE_ID_ASC' + | 'SERVING_SITE_ID_DESC' | 'TARGET_API_ID_ASC' | 'TARGET_API_ID_DESC' | 'TARGET_BUCKET_ID_ASC' | 'TARGET_BUCKET_ID_DESC' | 'TARGET_FUNCTION_ID_ASC' | 'TARGET_FUNCTION_ID_DESC' + | 'TARGET_REDIRECT_ID_ASC' + | 'TARGET_REDIRECT_ID_DESC' | 'TARGET_SERVICE_ID_ASC' | 'TARGET_SERVICE_ID_DESC' | 'TARGET_SITE_ID_ASC' @@ -1920,8 +2068,8 @@ export type SchemaOrderBy = | 'UPDATED_AT_DESC'; /** Methods to use when ordering `SiteAppLink`. */ export type SiteAppLinkOrderBy = - | 'APP_IDENTIFIER_ASC' - | 'APP_IDENTIFIER_DESC' + | 'APP_STORE_IDENTITY_ID_ASC' + | 'APP_STORE_IDENTITY_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'DATABASE_ID_ASC' @@ -1931,18 +2079,10 @@ export type SiteAppLinkOrderBy = | 'NATURAL' | 'PATH_COMPONENTS_ASC' | 'PATH_COMPONENTS_DESC' - | 'PLATFORM_ASC' - | 'PLATFORM_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'SHA256_CERT_FINGERPRINTS_ASC' - | 'SHA256_CERT_FINGERPRINTS_DESC' | 'SITE_ID_ASC' | 'SITE_ID_DESC' - | 'STORE_URL_ASC' - | 'STORE_URL_DESC' - | 'TEAM_ID_ASC' - | 'TEAM_ID_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'WEBCREDENTIALS_ASC' @@ -1962,6 +2102,8 @@ export type SiteDeepLinkOrderBy = | 'METADATA_ASC' | 'METADATA_DESC' | 'NATURAL' + | 'PAGE_ID_ASC' + | 'PAGE_ID_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'SITE_ID_ASC' @@ -2018,6 +2160,8 @@ export type SiteMetadatumOrderBy = | 'PRIMARY_KEY_DESC' | 'ROBOTS_ASC' | 'ROBOTS_DESC' + | 'ROBOTS_SEEDED_FROM_ASC' + | 'ROBOTS_SEEDED_FROM_DESC' | 'SITE_ID_ASC' | 'SITE_ID_DESC' | 'STORE_ID_ASC' @@ -2057,6 +2201,8 @@ export type SiteOrderBy = | 'BUCKET_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'DESCRIPTION_ASC' @@ -2079,6 +2225,29 @@ export type SiteOrderBy = | 'TITLE_ASC' | 'TITLE_DESC' | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +/** Methods to use when ordering `SiteRelease`. */ +export type SiteReleaseOrderBy = + | 'COMMIT_ID_ASC' + | 'COMMIT_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'MANIFEST_ASC' + | 'MANIFEST_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'SITE_ID_ASC' + | 'SITE_ID_DESC' + | 'STORE_ID_ASC' + | 'STORE_ID_DESC' + | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; /** Methods to use when ordering `SiteTheme`. */ export type SiteThemeOrderBy = @@ -2159,6 +2328,35 @@ export type SpatialRelationOrderBy = | 'TAGS_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `SqlAction`. */ +export type SqlActionOrderBy = + | 'ACTION_ID_ASC' + | 'ACTION_ID_DESC' + | 'ACTION_NAME_ASC' + | 'ACTION_NAME_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'CONTENT_ASC' + | 'CONTENT_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DEPLOY_ASC' + | 'DEPLOY_DESC' + | 'DEPS_ASC' + | 'DEPS_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'PAYLOAD_ASC' + | 'PAYLOAD_DESC' + | 'REVERT_ASC' + | 'REVERT_DESC' + | 'VERIFY_ASC' + | 'VERIFY_DESC'; /** Methods to use when ordering `TableBehavior`. */ export type TableBehaviorOrderBy = | 'CREATED_AT_ASC' @@ -2279,12 +2477,20 @@ export type TriggerOrderBy = | 'CREATED_AT_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'EVENTS_ASC' + | 'EVENTS_DESC' | 'EVENT_ASC' | 'EVENT_DESC' + | 'FOR_EACH_ROW_ASC' + | 'FOR_EACH_ROW_DESC' + | 'FUNCTION_ID_ASC' + | 'FUNCTION_ID_DESC' | 'FUNCTION_NAME_ASC' | 'FUNCTION_NAME_DESC' | 'ID_ASC' | 'ID_DESC' + | 'KIND_ASC' + | 'KIND_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'NATURAL' @@ -2296,8 +2502,12 @@ export type TriggerOrderBy = | 'TABLE_ID_DESC' | 'TAGS_ASC' | 'TAGS_DESC' + | 'TIMING_ASC' + | 'TIMING_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; + | 'UPDATED_AT_DESC' + | 'WHEN_AST_ASC' + | 'WHEN_AST_DESC'; /** Methods to use when ordering `UniqueConstraintBehavior`. */ export type UniqueConstraintBehaviorOrderBy = | 'CREATED_AT_ASC' @@ -2508,6 +2718,10 @@ export type WebauthnSettingOrderBy = | 'UPDATED_AT_DESC' | 'USER_FIELD_ID_ASC' | 'USER_FIELD_ID_DESC'; +export interface AcceptDatabaseTransferInput { + clientMutationId?: string; + transferId?: string; +} /** A filter to be used against ApiExposureLevel fields. All fields are combined with a logical ‘and.’ */ export interface ApiExposureLevelFilter { /** Not equal to the specified value, treating null like an ordinary value. */ @@ -2685,6 +2899,8 @@ export interface ApiSettingFilter { enableDirectUploads?: BooleanFilter; /** Filter by the object’s `enableI18N` field. */ enableI18N?: BooleanFilter; + /** Filter by the object’s `enableIntrospection` field. */ + enableIntrospection?: BooleanFilter; /** Filter by the object’s `enableLlm` field. */ enableLlm?: BooleanFilter; /** Filter by the object’s `enableLtree` field. */ @@ -2701,12 +2917,32 @@ export interface ApiSettingFilter { enableSearch?: BooleanFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `idleInTransactionTimeoutMs` field. */ + idleInTransactionTimeoutMs?: BigIntFilter; + /** Filter by the object’s `lockTimeoutMs` field. */ + lockTimeoutMs?: BigIntFilter; + /** Filter by the object’s `maxConcurrentRequests` field. */ + maxConcurrentRequests?: IntFilter; + /** Filter by the object’s `maxPageSize` field. */ + maxPageSize?: IntFilter; + /** Filter by the object’s `maxQueryCost` field. */ + maxQueryCost?: IntFilter; + /** Filter by the object’s `maxQueryDepth` field. */ + maxQueryDepth?: IntFilter; + /** Filter by the object’s `maxQueueWaitMs` field. */ + maxQueueWaitMs?: IntFilter; + /** Filter by the object’s `maxRequestBytes` field. */ + maxRequestBytes?: IntFilter; /** Negates the expression. */ not?: ApiSettingFilter; /** Filter by the object’s `options` field. */ options?: JSONFilter; /** Checks for any expressions in this list. */ or?: ApiSettingFilter[]; + /** Filter by the object’s `rateLimitBurst` field. */ + rateLimitBurst?: IntFilter; + /** Filter by the object’s `rateLimitRpm` field. */ + rateLimitRpm?: IntFilter; /** Filter by the object’s `statementTimeoutMs` field. */ statementTimeoutMs?: BigIntFilter; /** Filter by the object’s `updatedAt` field. */ @@ -2729,6 +2965,8 @@ export interface ApiSettingInput { enableDirectUploads?: boolean; /** Override: enable internationalization plugin (NULL = inherit from database_settings) */ enableI18N?: boolean; + /** Override: enable GraphQL schema introspection queries (NULL = inherit from database_settings) */ + enableIntrospection?: 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) */ @@ -2744,8 +2982,28 @@ export interface ApiSettingInput { /** Override: enable unified search (NULL = inherit from database_settings) */ enableSearch?: boolean; id?: string; + /** Override: idle-in-transaction timeout in milliseconds (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + idleInTransactionTimeoutMs?: string; + /** Override: lock acquisition timeout in milliseconds (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + lockTimeoutMs?: string; + /** Override: maximum concurrently executing GraphQL requests (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + maxConcurrentRequests?: number; + /** Override: maximum page size for connection queries (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + maxPageSize?: number; + /** Override: maximum GraphQL query cost (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + maxQueryCost?: number; + /** Override: maximum GraphQL query depth (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + maxQueryDepth?: number; + /** Override: maximum time in milliseconds a request may wait for a concurrency slot (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + maxQueueWaitMs?: number; + /** Override: maximum request body size in bytes (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + maxRequestBytes?: number; /** Extensible JSON for additional per-API settings that do not have dedicated columns */ options?: unknown; + /** Override: rate-limit burst allowance (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + rateLimitBurst?: number; + /** Override: request rate limit in requests per minute (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + rateLimitRpm?: number; /** Override: GraphQL statement timeout in milliseconds (NULL = inherit from database_settings). Clamped by the plan cap at read time. */ statementTimeoutMs?: string; updatedAt?: string; @@ -2767,6 +3025,8 @@ export interface ApiSettingPatch { enableDirectUploads?: boolean; /** Override: enable internationalization plugin (NULL = inherit from database_settings) */ enableI18N?: boolean; + /** Override: enable GraphQL schema introspection queries (NULL = inherit from database_settings) */ + enableIntrospection?: 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) */ @@ -2782,8 +3042,28 @@ export interface ApiSettingPatch { /** Override: enable unified search (NULL = inherit from database_settings) */ enableSearch?: boolean; id?: string; + /** Override: idle-in-transaction timeout in milliseconds (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + idleInTransactionTimeoutMs?: string; + /** Override: lock acquisition timeout in milliseconds (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + lockTimeoutMs?: string; + /** Override: maximum concurrently executing GraphQL requests (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + maxConcurrentRequests?: number; + /** Override: maximum page size for connection queries (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + maxPageSize?: number; + /** Override: maximum GraphQL query cost (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + maxQueryCost?: number; + /** Override: maximum GraphQL query depth (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + maxQueryDepth?: number; + /** Override: maximum time in milliseconds a request may wait for a concurrency slot (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + maxQueueWaitMs?: number; + /** Override: maximum request body size in bytes (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + maxRequestBytes?: number; /** Extensible JSON for additional per-API settings that do not have dedicated columns */ options?: unknown; + /** Override: rate-limit burst allowance (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + rateLimitBurst?: number; + /** Override: request rate limit in requests per minute (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + rateLimitRpm?: number; /** Override: GraphQL statement timeout in milliseconds (NULL = inherit from database_settings). Clamped by the plan cap at read time. */ statementTimeoutMs?: string; updatedAt?: string; @@ -2806,197 +3086,54 @@ export interface ApiToManyCorsSettingFilter { /** Filters to entities where at least one related entity matches. */ some?: CorsSettingFilter; } -/** A filter to be used against `AppComponent` object types. All fields are combined with a logical ‘and.’ */ -export interface AppComponentFilter { - /** Checks for all expressions in this list. */ - and?: AppComponentFilter[]; - /** Filter by the object’s `app` relation. */ - app?: AppFilter; - /** Filter by the object’s `appId` field. */ - appId?: UUIDFilter; - /** Filter by the object’s `componentApiId` field. */ - componentApiId?: UUIDFilter; - /** Filter by the object’s `componentDomainId` field. */ - componentDomainId?: UUIDFilter; - /** Filter by the object’s `componentInstallationId` field. */ - componentInstallationId?: UUIDFilter; - /** Filter by the object’s `componentSiteId` field. */ - componentSiteId?: UUIDFilter; - /** Filter by the object’s `componentType` field. */ - componentType?: StringFilter; - /** Filter by the object’s `config` field. */ - config?: 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?: AppComponentFilter; - /** Checks for any expressions in this list. */ - or?: AppComponentFilter[]; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -/** An input for mutations affecting `AppComponent` */ -export interface AppComponentInput { - /** App this component belongs to */ - appId: string; - /** Typed catalog api row of the component surface; must be owner-matched or visible cross-scope */ - componentApiId?: string; - /** Typed catalog domain row of the component surface; must be owner-matched or visible cross-scope */ - componentDomainId?: string; - /** Typed catalog resource installation row of the component release; must be owner-matched or visible cross-scope */ - componentInstallationId?: string; - /** Typed catalog site row of the component surface; must be owner-matched or visible cross-scope */ - componentSiteId?: string; - /** Which kind of catalog row this component binds (api, site, domain, installation) */ - componentType?: string; - /** Component-specific configuration inside this app */ - config?: unknown; - createdAt?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - id?: string; - updatedAt?: string; -} -/** Represents an update to a `AppComponent`. Fields that are set will be updated. */ -export interface AppComponentPatch { - /** App this component belongs to */ - appId?: string; - /** Typed catalog api row of the component surface; must be owner-matched or visible cross-scope */ - componentApiId?: string; - /** Typed catalog domain row of the component surface; must be owner-matched or visible cross-scope */ - componentDomainId?: string; - /** Typed catalog resource installation row of the component release; must be owner-matched or visible cross-scope */ - componentInstallationId?: string; - /** Typed catalog site row of the component surface; must be owner-matched or visible cross-scope */ - componentSiteId?: string; - /** Which kind of catalog row this component binds (api, site, domain, installation) */ - componentType?: string; - /** Component-specific configuration inside this app */ - config?: unknown; - createdAt?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId?: string; - id?: string; - updatedAt?: string; +export interface ApplyRlsInput { + clientMutationId?: string; + fieldIds?: string[]; + grants?: unknown; + name?: string; + permissive?: boolean; + policyType?: string; + tableId?: string; + vars?: unknown; } -/** A filter to be used against `App` object types. All fields are combined with a logical ‘and.’ */ -export interface AppFilter { +/** A filter to be used against `AstMigration` object types. All fields are combined with a logical ‘and.’ */ +export interface AstMigrationFilter { + /** Filter by the object’s `actionId` field. */ + actionId?: UUIDFilter; + /** Filter by the object’s `actionName` field. */ + actionName?: StringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: AppFilter[]; - /** Filter by the object’s `appComponents` relation. */ - appComponents?: AppToManyAppComponentFilter; - /** `appComponents` exist. */ - appComponentsExist?: boolean; - /** Filter by the object’s `config` field. */ - config?: JSONFilter; + and?: AstMigrationFilter[]; /** 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 `deploy` field. */ + deploy?: JSONFilter; + /** Filter by the object’s `deploys` field. */ + deploys?: StringFilter; /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isPublished` field. */ - isPublished?: BooleanFilter; + id?: IntFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; /** Negates the expression. */ - not?: AppFilter; + not?: AstMigrationFilter; /** Checks for any expressions in this list. */ - or?: AppFilter[]; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `title` field. */ - title?: StringFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -/** An input for mutations affecting `App` */ -export interface AppInput { - /** Module-specific configuration for this app */ - config?: unknown; - createdAt?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - /** Human-readable app description */ - description?: string; - id?: string; - /** Whether other scopes may see and reference this app */ - isPublished?: boolean; - /** Owner-local app name */ - name: string; - /** App lifecycle status: active, suspended, archived */ - status?: string; - /** Human-readable app title */ - title?: string; - updatedAt?: string; + or?: AstMigrationFilter[]; + /** Filter by the object’s `payload` field. */ + payload?: JSONFilter; + /** Filter by the object’s `requires` field. */ + requires?: StringListFilter; + /** Filter by the object’s `revert` field. */ + revert?: JSONFilter; + /** Filter by the object’s `verify` field. */ + verify?: JSONFilter; } -/** Represents an update to a `App`. Fields that are set will be updated. */ -export interface AppPatch { - /** Module-specific configuration for this app */ - config?: unknown; - createdAt?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId?: string; - /** Human-readable app description */ - description?: string; - id?: string; - /** Whether other scopes may see and reference this app */ - isPublished?: boolean; - /** Owner-local app name */ - name?: string; - /** App lifecycle status: active, suspended, archived */ - status?: string; - /** Human-readable app title */ - title?: string; - updatedAt?: string; -} -/** A filter to be used against many `AppComponent` object types. All fields are combined with a logical ‘and.’ */ -export interface AppToManyAppComponentFilter { - /** Filters to entities where every related entity matches. */ - every?: AppComponentFilter; - /** Filters to entities where no related entity matches. */ - none?: AppComponentFilter; - /** Filters to entities where at least one related entity matches. */ - some?: AppComponentFilter; -} -export interface ApplyRlsInput { +export interface CancelDatabaseTransferInput { clientMutationId?: string; - fieldIds?: string[]; - grants?: unknown; - name?: string; - permissive?: boolean; - policyType?: string; - tableId?: string; - vars?: unknown; -} -export interface AppsInstallAppInput { - apex?: string; - clientMutationId?: string; - config?: unknown; - definitionIds?: string[]; - hostname?: string; - label?: string; - name?: string; - namespaceId?: string; - params?: unknown; - routePath?: string; - slug?: string; - title?: string; -} -export interface AppsUninstallAppInput { - clientMutationId?: string; - targetAppId?: string; -} -export interface AppsUpgradeAppInput { - clientMutationId?: string; - newParams?: unknown; - targetAppId?: string; + transferId?: string; } /** A filter to be used against `CheckConstraint` object types. All fields are combined with a logical ‘and.’ */ export interface CheckConstraintFilter { @@ -3231,16 +3368,6 @@ export interface CreateApiSettingInput { apiSetting: ApiSettingInput; clientMutationId?: string; } -export interface CreateAppComponentInput { - /** The `AppComponent` to be created by this mutation. */ - appComponent: AppComponentInput; - clientMutationId?: string; -} -export interface CreateAppInput { - /** The `App` to be created by this mutation. */ - app: AppInput; - clientMutationId?: string; -} export interface CreateCheckConstraintInput { /** The `CheckConstraint` to be created by this mutation. */ checkConstraint: CheckConstraintInput; @@ -3366,10 +3493,10 @@ export interface CreateHostnameBindingInput { /** The `HostnameBinding` to be created by this mutation. */ hostnameBinding: HostnameBindingInput; } -export interface CreateHttpRouteInput { +export interface CreateIdentityProviderRegistryInput { clientMutationId?: string; - /** The `HttpRoute` to be created by this mutation. */ - httpRoute: HttpRouteInput; + /** The `IdentityProviderRegistry` to be created by this mutation. */ + identityProviderRegistry: IdentityProviderRegistryInput; } export interface CreateIndexInput { clientMutationId?: string; @@ -3486,6 +3613,11 @@ export interface CreatePlatformSiteModuleInput { /** The `PlatformSiteModule` to be created by this mutation. */ platformSiteModule: PlatformSiteModuleInput; } +export interface CreatePlatformSiteReleaseInput { + clientMutationId?: string; + /** The `PlatformSiteRelease` to be created by this mutation. */ + platformSiteRelease: PlatformSiteReleaseInput; +} export interface CreatePlatformSiteThemeInput { clientMutationId?: string; /** The `PlatformSiteTheme` to be created by this mutation. */ @@ -3511,6 +3643,11 @@ export interface CreatePubkeySettingInput { /** The `PubkeySetting` to be created by this mutation. */ pubkeySetting: PubkeySettingInput; } +export interface CreateRedirectInput { + clientMutationId?: string; + /** The `Redirect` to be created by this mutation. */ + redirect: RedirectInput; +} export interface CreateRlsSettingInput { clientMutationId?: string; /** The `RlsSetting` to be created by this mutation. */ @@ -3566,6 +3703,11 @@ export interface CreateSiteModuleInput { /** The `SiteModule` to be created by this mutation. */ siteModule: SiteModuleInput; } +export interface CreateSiteReleaseInput { + clientMutationId?: string; + /** The `SiteRelease` to be created by this mutation. */ + siteRelease: SiteReleaseInput; +} export interface CreateSiteThemeInput { clientMutationId?: string; /** The `SiteTheme` to be created by this mutation. */ @@ -3841,6 +3983,8 @@ export interface DatabaseSettingFilter { databaseId?: UUIDFilter; /** Filter by the object’s `enableAggregates` field. */ enableAggregates?: BooleanFilter; + /** Filter by the object’s `enableBilling` field. */ + enableBilling?: BooleanFilter; /** Filter by the object’s `enableBulk` field. */ enableBulk?: BooleanFilter; /** Filter by the object’s `enableConnectionFilter` field. */ @@ -3849,6 +3993,8 @@ export interface DatabaseSettingFilter { enableDirectUploads?: BooleanFilter; /** Filter by the object’s `enableI18N` field. */ enableI18N?: BooleanFilter; + /** Filter by the object’s `enableIntrospection` field. */ + enableIntrospection?: BooleanFilter; /** Filter by the object’s `enableLlm` field. */ enableLlm?: BooleanFilter; /** Filter by the object’s `enableLtree` field. */ @@ -3865,14 +4011,34 @@ export interface DatabaseSettingFilter { enableSearch?: BooleanFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `idleInTransactionTimeoutMs` field. */ + idleInTransactionTimeoutMs?: BigIntFilter; /** Filter by the object’s `labels` field. */ labels?: JSONFilter; + /** Filter by the object’s `lockTimeoutMs` field. */ + lockTimeoutMs?: BigIntFilter; + /** Filter by the object’s `maxConcurrentRequests` field. */ + maxConcurrentRequests?: IntFilter; + /** Filter by the object’s `maxPageSize` field. */ + maxPageSize?: IntFilter; + /** Filter by the object’s `maxQueryCost` field. */ + maxQueryCost?: IntFilter; + /** Filter by the object’s `maxQueryDepth` field. */ + maxQueryDepth?: IntFilter; + /** Filter by the object’s `maxQueueWaitMs` field. */ + maxQueueWaitMs?: IntFilter; + /** Filter by the object’s `maxRequestBytes` field. */ + maxRequestBytes?: IntFilter; /** Negates the expression. */ not?: DatabaseSettingFilter; /** Filter by the object’s `options` field. */ options?: JSONFilter; /** Checks for any expressions in this list. */ or?: DatabaseSettingFilter[]; + /** Filter by the object’s `rateLimitBurst` field. */ + rateLimitBurst?: IntFilter; + /** Filter by the object’s `rateLimitRpm` field. */ + rateLimitRpm?: IntFilter; /** Filter by the object’s `statementTimeoutMs` field. */ statementTimeoutMs?: BigIntFilter; /** Filter by the object’s `updatedAt` field. */ @@ -3887,6 +4053,8 @@ export interface DatabaseSettingInput { databaseId: string; /** Enable aggregate queries (sum, avg, min, max, etc.) in the GraphQL API */ enableAggregates?: boolean; + /** Enable billing: financial provider actions (customer/subscription/usage sync, overdue sweep) are refused while false. Activation gate for the billing rollout — flipped only after billing:doctor passes. */ + enableBilling?: boolean; /** Enable bulk mutation operations (insert, upsert, update, delete) in the GraphQL API */ enableBulk?: boolean; /** Enable connection filter (where argument) in the GraphQL API */ @@ -3895,6 +4063,8 @@ export interface DatabaseSettingInput { enableDirectUploads?: boolean; /** Enable internationalization plugin (localeStrings field, translation table discovery) in the GraphQL API */ enableI18N?: boolean; + /** Enable GraphQL schema introspection queries in the GraphQL API. A tenant may only ever lower a bound, so the stored default is the permissive end: turning introspection off is the opt-in. */ + enableIntrospection?: boolean; /** Enable LLM/AI integration features in the GraphQL API */ enableLlm?: boolean; /** Enable ltree hierarchical data type support in the GraphQL API */ @@ -3910,10 +4080,30 @@ export interface DatabaseSettingInput { /** Enable unified search (tsvector, BM25, pg_trgm, pgvector) in the GraphQL API */ enableSearch?: boolean; id?: string; + /** Scope-wide default idle-in-transaction timeout in milliseconds; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. */ + idleInTransactionTimeoutMs?: string; /** Key/value pairs for selecting and filtering settings */ labels?: unknown; + /** Scope-wide default lock acquisition timeout in milliseconds; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. */ + lockTimeoutMs?: string; + /** Scope-wide default maximum concurrently executing GraphQL requests; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. */ + maxConcurrentRequests?: number; + /** Scope-wide default maximum page size for connection queries; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. */ + maxPageSize?: number; + /** Scope-wide default maximum GraphQL query cost; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. */ + maxQueryCost?: number; + /** Scope-wide default maximum GraphQL query depth; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. */ + maxQueryDepth?: number; + /** Scope-wide default maximum time in milliseconds a request may wait for a concurrency slot; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. */ + maxQueueWaitMs?: number; + /** Scope-wide default maximum request body size in bytes; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. */ + maxRequestBytes?: number; /** Extensible JSON for additional settings that do not have dedicated columns */ options?: unknown; + /** Scope-wide default rate-limit burst allowance; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. */ + rateLimitBurst?: number; + /** Scope-wide default request rate limit in requests per minute; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. */ + rateLimitRpm?: number; /** Scope-wide default GraphQL statement timeout in milliseconds; NULL inherits the platform default. Clamped by the plan cap at read time. */ statementTimeoutMs?: string; updatedAt?: string; @@ -3927,6 +4117,8 @@ export interface DatabaseSettingPatch { databaseId?: string; /** Enable aggregate queries (sum, avg, min, max, etc.) in the GraphQL API */ enableAggregates?: boolean; + /** Enable billing: financial provider actions (customer/subscription/usage sync, overdue sweep) are refused while false. Activation gate for the billing rollout — flipped only after billing:doctor passes. */ + enableBilling?: boolean; /** Enable bulk mutation operations (insert, upsert, update, delete) in the GraphQL API */ enableBulk?: boolean; /** Enable connection filter (where argument) in the GraphQL API */ @@ -3935,6 +4127,8 @@ export interface DatabaseSettingPatch { enableDirectUploads?: boolean; /** Enable internationalization plugin (localeStrings field, translation table discovery) in the GraphQL API */ enableI18N?: boolean; + /** Enable GraphQL schema introspection queries in the GraphQL API. A tenant may only ever lower a bound, so the stored default is the permissive end: turning introspection off is the opt-in. */ + enableIntrospection?: boolean; /** Enable LLM/AI integration features in the GraphQL API */ enableLlm?: boolean; /** Enable ltree hierarchical data type support in the GraphQL API */ @@ -3950,10 +4144,30 @@ export interface DatabaseSettingPatch { /** Enable unified search (tsvector, BM25, pg_trgm, pgvector) in the GraphQL API */ enableSearch?: boolean; id?: string; + /** Scope-wide default idle-in-transaction timeout in milliseconds; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. */ + idleInTransactionTimeoutMs?: string; /** Key/value pairs for selecting and filtering settings */ labels?: unknown; + /** Scope-wide default lock acquisition timeout in milliseconds; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. */ + lockTimeoutMs?: string; + /** Scope-wide default maximum concurrently executing GraphQL requests; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. */ + maxConcurrentRequests?: number; + /** Scope-wide default maximum page size for connection queries; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. */ + maxPageSize?: number; + /** Scope-wide default maximum GraphQL query cost; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. */ + maxQueryCost?: number; + /** Scope-wide default maximum GraphQL query depth; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. */ + maxQueryDepth?: number; + /** Scope-wide default maximum time in milliseconds a request may wait for a concurrency slot; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. */ + maxQueueWaitMs?: number; + /** Scope-wide default maximum request body size in bytes; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. */ + maxRequestBytes?: number; /** Extensible JSON for additional settings that do not have dedicated columns */ options?: unknown; + /** Scope-wide default rate-limit burst allowance; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. */ + rateLimitBurst?: number; + /** Scope-wide default request rate limit in requests per minute; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. */ + rateLimitRpm?: number; /** Scope-wide default GraphQL statement timeout in milliseconds; NULL inherits the platform default. Clamped by the plan cap at read time. */ statementTimeoutMs?: string; updatedAt?: string; @@ -4396,14 +4610,6 @@ export interface DeleteApiSettingInput { clientMutationId?: string; id: string; } -export interface DeleteAppComponentInput { - clientMutationId?: string; - id: string; -} -export interface DeleteAppInput { - clientMutationId?: string; - id: string; -} export interface DeleteCheckConstraintInput { clientMutationId?: string; id: string; @@ -4504,9 +4710,9 @@ export interface DeleteHostnameBindingInput { clientMutationId?: string; id: string; } -export interface DeleteHttpRouteInput { +export interface DeleteIdentityProviderRegistryInput { clientMutationId?: string; - id: string; + slug: string; } export interface DeleteIndexInput { clientMutationId?: string; @@ -4602,6 +4808,10 @@ export interface DeletePlatformSiteModuleInput { clientMutationId?: string; id: string; } +export interface DeletePlatformSiteReleaseInput { + clientMutationId?: string; + id: string; +} export interface DeletePlatformSiteThemeInput { clientMutationId?: string; id: string; @@ -4622,6 +4832,10 @@ export interface DeletePubkeySettingInput { clientMutationId?: string; id: string; } +export interface DeleteRedirectInput { + clientMutationId?: string; + id: string; +} export interface DeleteRlsSettingInput { clientMutationId?: string; id: string; @@ -4666,6 +4880,15 @@ export interface DeleteSiteModuleInput { clientMutationId?: string; id: string; } +export interface DeleteSitePreviewInput { + clientMutationId?: string; + targetName?: string; + targetSiteId?: string; +} +export interface DeleteSiteReleaseInput { + clientMutationId?: string; + id: string; +} export interface DeleteSiteThemeInput { clientMutationId?: string; id: string; @@ -4742,6 +4965,8 @@ export interface DeriveFilter { databaseId?: UUIDFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `includeGrants` field. */ + includeGrants?: BooleanFilter; /** Filter by the object’s `includeMutations` field. */ includeMutations?: BooleanFilter; /** Filter by the object’s `kind` field. */ @@ -4768,6 +4993,7 @@ export interface DeriveInput { createdAt?: string; databaseId?: string; id?: string; + includeGrants?: boolean; includeMutations?: boolean; kind: string; policyPrefix?: string; @@ -4780,6 +5006,7 @@ export interface DerivePatch { createdAt?: string; databaseId?: string; id?: string; + includeGrants?: boolean; includeMutations?: boolean; kind?: string; policyPrefix?: string; @@ -4832,7 +5059,7 @@ export interface DomainEventFilter { } /** An input for mutations affecting `DomainEvent` */ export interface DomainEventInput { - /** User who triggered this event, if any */ + /** User who triggered this event; NULL only when no human actor was proven */ actorId?: string; createdAt?: string; /** Database that owns this resource (database-scoped isolation) */ @@ -4854,7 +5081,7 @@ export interface DomainEventInput { } /** Represents an update to a `DomainEvent`. Fields that are set will be updated. */ export interface DomainEventPatch { - /** User who triggered this event, if any */ + /** User who triggered this event; NULL only when no human actor was proven */ actorId?: string; createdAt?: string; /** Database that owns this resource (database-scoped isolation) */ @@ -4882,6 +5109,8 @@ export interface DomainFilter { config?: JSONFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; /** Filter by the object’s `domainEvents` relation. */ @@ -4894,10 +5123,6 @@ export interface DomainFilter { domainVerificationsExist?: boolean; /** Filter by the object’s `hostname` field. */ hostname?: StringFilter; - /** Filter by the object’s `httpRoutes` relation. */ - httpRoutes?: DomainToManyHttpRouteFilter; - /** `httpRoutes` exist. */ - httpRoutesExist?: boolean; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `isPublished` field. */ @@ -4924,6 +5149,8 @@ export interface DomainFilter { tlsStatus?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; /** Filter by the object’s `verificationStatus` field. */ verificationStatus?: StringFilter; /** Filter by the object’s `verifiedAt` field. */ @@ -4934,6 +5161,7 @@ export interface DomainInput { /** Module-specific configuration for this hostname */ config?: unknown; createdAt?: string; + createdByPrincipal?: string; /** Database that owns this resource (database-scoped isolation) */ databaseId: string; /** Lowercase fully-qualified hostname; wildcards use the *.parent form */ @@ -4954,6 +5182,7 @@ export interface DomainInput { /** Certificate lifecycle state for this hostname */ tlsStatus?: string; updatedAt?: string; + updatedByPrincipal?: string; /** Ownership verification state of this hostname */ verificationStatus?: string; /** When ownership verification last succeeded */ @@ -4964,6 +5193,7 @@ export interface DomainPatch { /** Module-specific configuration for this hostname */ config?: unknown; createdAt?: string; + createdByPrincipal?: string; /** Database that owns this resource (database-scoped isolation) */ databaseId?: string; /** Lowercase fully-qualified hostname; wildcards use the *.parent form */ @@ -4984,6 +5214,7 @@ export interface DomainPatch { /** Certificate lifecycle state for this hostname */ tlsStatus?: string; updatedAt?: string; + updatedByPrincipal?: string; /** Ownership verification state of this hostname */ verificationStatus?: string; /** When ownership verification last succeeded */ @@ -5007,15 +5238,6 @@ export interface DomainToManyDomainVerificationFilter { /** Filters to entities where at least one related entity matches. */ some?: DomainVerificationFilter; } -/** A filter to be used against many `HttpRoute` object types. All fields are combined with a logical ‘and.’ */ -export interface DomainToManyHttpRouteFilter { - /** Filters to entities where every related entity matches. */ - every?: HttpRouteFilter; - /** Filters to entities where no related entity matches. */ - none?: HttpRouteFilter; - /** Filters to entities where at least one related entity matches. */ - some?: HttpRouteFilter; -} /** A filter to be used against many `Route` object types. All fields are combined with a logical ‘and.’ */ export interface DomainToManyRouteFilter { /** Filters to entities where every related entity matches. */ @@ -6197,36 +6419,101 @@ export interface FullTextSearchPatch { export interface FunctionFilter { /** Checks for all expressions in this list. */ and?: FunctionFilter[]; + /** Filter by the object’s `apiExposed` field. */ + apiExposed?: BooleanFilter; + /** Filter by the object’s `arguments` field. */ + arguments?: JSONFilter; + /** Filter by the object’s `bodyAst` field. */ + bodyAst?: JSONFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `data` field. */ + data?: JSONFilter; /** Filter by the object’s `database` relation. */ database?: DatabaseFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `functionType` field. */ + functionType?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `isStrict` field. */ + isStrict?: BooleanFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; /** Negates the expression. */ not?: FunctionFilter; /** Checks for any expressions in this list. */ or?: FunctionFilter[]; + /** Filter by the object’s `returns` field. */ + returns?: JSONFilter; /** Filter by the object’s `schema` relation. */ schema?: SchemaFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; + /** Filter by the object’s `securityInvoker` field. */ + securityInvoker?: BooleanFilter; + /** Filter by the object’s `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Filter by the object’s `triggers` relation. */ + triggers?: FunctionToManyTriggerFilter; + /** `triggers` exist. */ + triggersExist?: boolean; + /** Filter by the object’s `volatility` field. */ + volatility?: StringFilter; } /** An input for mutations affecting `Function` */ export interface FunctionInput { + apiExposed?: boolean; + arguments?: unknown; + bodyAst?: unknown; + category?: ObjectCategory; + data?: unknown; databaseId: string; + functionType?: string; id?: string; + isStrict?: boolean; + kind?: string; name: string; + returns?: unknown; schemaId: string; + securityInvoker?: boolean; + smartTags?: unknown; + tags?: string[]; + volatility?: string; } /** Represents an update to a `Function`. Fields that are set will be updated. */ export interface FunctionPatch { + apiExposed?: boolean; + arguments?: unknown; + bodyAst?: unknown; + category?: ObjectCategory; + data?: unknown; databaseId?: string; + functionType?: string; id?: string; + isStrict?: boolean; + kind?: string; name?: string; + returns?: unknown; schemaId?: string; + securityInvoker?: boolean; + smartTags?: unknown; + tags?: string[]; + volatility?: string; +} +/** A filter to be used against many `Trigger` object types. All fields are combined with a logical ‘and.’ */ +export interface FunctionToManyTriggerFilter { + /** Filters to entities where every related entity matches. */ + every?: TriggerFilter; + /** Filters to entities where no related entity matches. */ + none?: TriggerFilter; + /** Filters to entities where at least one related entity matches. */ + some?: TriggerFilter; } /** A filter to be used against `HostnameBinding` object types. All fields are combined with a logical ‘and.’ */ export interface HostnameBindingFilter { @@ -6301,90 +6588,52 @@ export interface HostnameBindingPatch { /** Ownership verification state compiled from the domain row */ verificationStatus?: string; } -/** A filter to be used against `HttpRoute` object types. All fields are combined with a logical ‘and.’ */ -export interface HttpRouteFilter { +/** A filter to be used against `IdentityProviderRegistry` object types. All fields are combined with a logical ‘and.’ */ +export interface IdentityProviderRegistryFilter { /** Checks for all expressions in this list. */ - and?: HttpRouteFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `domain` relation. */ - domain?: DomainFilter; - /** Filter by the object’s `domainId` field. */ - domainId?: 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; + and?: IdentityProviderRegistryFilter[]; + /** Filter by the object’s `authorizationUrl` field. */ + authorizationUrl?: StringFilter; + /** Filter by the object’s `displayName` field. */ + displayName?: StringFilter; + /** Filter by the object’s `issuerUrl` field. */ + issuerUrl?: StringFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; /** Negates the expression. */ - not?: HttpRouteFilter; + not?: IdentityProviderRegistryFilter; /** 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; - /** Filter by the object’s `targetId` field. */ - targetId?: UUIDFilter; - /** Filter by the object’s `targetKind` field. */ - targetKind?: StringFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; -} -/** An input for mutations affecting `HttpRoute` */ -export interface HttpRouteInput { - createdAt?: string; - createdBy?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - /** Registered host in the scoped routing domains table */ - domainId: string; - id?: string; - /** 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?: number; - /** Target row of the type named by target_kind; existence enforced by trigger */ - targetId: string; - /** Discriminator selecting the type of target_id */ - targetKind: string; - updatedAt?: string; - updatedBy?: string; + or?: IdentityProviderRegistryFilter[]; + /** Filter by the object’s `scopes` field. */ + scopes?: StringListFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `tokenUrl` field. */ + tokenUrl?: StringFilter; + /** Filter by the object’s `userinfoUrl` field. */ + userinfoUrl?: StringFilter; +} +/** An input for mutations affecting `IdentityProviderRegistry` */ +export interface IdentityProviderRegistryInput { + authorizationUrl?: string; + displayName: string; + issuerUrl?: string; + kind: string; + scopes?: string[]; + slug: string; + tokenUrl?: string; + userinfoUrl?: string; } -/** Represents an update to a `HttpRoute`. Fields that are set will be updated. */ -export interface HttpRoutePatch { - createdAt?: string; - createdBy?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId?: string; - /** Registered host in the scoped routing domains table */ - domainId?: string; - id?: string; - /** 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?: number; - /** Target row of the type named by target_kind; existence enforced by trigger */ - targetId?: string; - /** Discriminator selecting the type of target_id */ - targetKind?: string; - updatedAt?: string; - updatedBy?: string; +/** Represents an update to a `IdentityProviderRegistry`. Fields that are set will be updated. */ +export interface IdentityProviderRegistryPatch { + authorizationUrl?: string; + displayName?: string; + issuerUrl?: string; + kind?: string; + scopes?: string[]; + slug?: string; + tokenUrl?: string; + userinfoUrl?: string; } /** A filter to be used against `Index` object types. All fields are combined with a logical ‘and.’ */ export interface IndexFilter { @@ -6414,6 +6663,8 @@ export interface IndexFilter { name?: StringFilter; /** Negates the expression. */ not?: IndexFilter; + /** Filter by the object’s `nullsNotDistinct` field. */ + nullsNotDistinct?: BooleanFilter; /** Filter by the object’s `opClasses` field. */ opClasses?: StringListFilter; /** Filter by the object’s `options` field. */ @@ -6445,6 +6696,7 @@ export interface IndexInput { indexParams?: unknown; isUnique?: boolean; name?: string; + nullsNotDistinct?: boolean; opClasses?: string[]; options?: unknown; smartTags?: unknown; @@ -6465,6 +6717,7 @@ export interface IndexPatch { indexParams?: unknown; isUnique?: boolean; name?: string; + nullsNotDistinct?: boolean; opClasses?: string[]; options?: unknown; smartTags?: unknown; @@ -6485,6 +6738,8 @@ export interface ManagedDomainFilter { certStatus?: StringFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; /** Filter by the object’s `domain` field. */ @@ -6511,6 +6766,8 @@ export interface ManagedDomainFilter { tlsStatus?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; /** Filter by the object’s `verificationStatus` field. */ verificationStatus?: StringFilter; /** Filter by the object’s `verifiedAt` field. */ @@ -6525,6 +6782,7 @@ export interface ManagedDomainInput { /** Certificate issuance state for this managed hostname */ certStatus?: string; createdAt?: string; + createdByPrincipal?: string; /** Database that owns this resource (database-scoped isolation) */ databaseId: string; /** Lowercase fully-qualified managed hostname; wildcards use the *.parent form */ @@ -6537,6 +6795,7 @@ export interface ManagedDomainInput { /** TLS provisioning state for this managed hostname */ tlsStatus?: string; updatedAt?: string; + updatedByPrincipal?: string; /** DNS ownership verification state of this managed hostname */ verificationStatus?: string; /** When ownership verification last succeeded */ @@ -6551,6 +6810,7 @@ export interface ManagedDomainPatch { /** Certificate issuance state for this managed hostname */ certStatus?: string; createdAt?: string; + createdByPrincipal?: string; /** Database that owns this resource (database-scoped isolation) */ databaseId?: string; /** Lowercase fully-qualified managed hostname; wildcards use the *.parent form */ @@ -6563,6 +6823,7 @@ export interface ManagedDomainPatch { /** TLS provisioning state for this managed hostname */ tlsStatus?: string; updatedAt?: string; + updatedByPrincipal?: string; /** DNS ownership verification state of this managed hostname */ verificationStatus?: string; /** When ownership verification last succeeded */ @@ -6586,6 +6847,13 @@ export interface ManagedDomainToManyDomainVerificationFilter { /** Filters to entities where at least one related entity matches. */ some?: DomainVerificationFilter; } +export interface MintSitePreviewTokenInput { + clientMutationId?: string; + siteId?: string; + target?: string; + targetKind?: string; + ttlSeconds?: number; +} /** A filter to be used against `NodeTypeRegistry` object types. All fields are combined with a logical ‘and.’ */ export interface NodeTypeRegistryFilter { /** Checks for all expressions in this list. */ @@ -6672,6 +6940,8 @@ export interface PageFilter { not?: PageFilter; /** Checks for any expressions in this list. */ or?: PageFilter[]; + /** Filter by the object’s `seededFrom` field. */ + seededFrom?: JSONFilter; /** Filter by the object’s `site` relation. */ site?: SiteFilter; /** Filter by the object’s `siteId` field. */ @@ -6695,6 +6965,8 @@ export interface PageInput { databaseId: string; /** Unique page identifier */ id?: string; + /** Provenance of a seeded page: the content preset (kind, slug, catalog commit_id) it was installed from, or NULL when authored directly */ + seededFrom?: unknown; /** Site surface this page belongs to; each site owns its own infra store and pages live at path [page, slug] within it */ siteId: string; /** Page slug (unique per site) */ @@ -6716,6 +6988,8 @@ export interface PagePatch { databaseId?: string; /** Unique page identifier */ id?: string; + /** Provenance of a seeded page: the content preset (kind, slug, catalog commit_id) it was installed from, or NULL when authored directly */ + seededFrom?: unknown; /** Site surface this page belongs to; each site owns its own infra store and pages live at path [page, slug] within it */ siteId?: string; /** Page slug (unique per site) */ @@ -6725,6 +6999,12 @@ export interface PagePatch { /** Timestamp of last modification */ updatedAt?: string; } +export interface PagesInstallPagesInput { + clientMutationId?: string; + entityId?: string; + pagesPreset?: string; + siteId?: string; +} /** A filter to be used against `Partition` object types. All fields are combined with a logical ‘and.’ */ export interface PartitionFilter { /** Checks for all expressions in this list. */ @@ -6936,6 +7216,8 @@ export interface PlatformApiSettingFilter { enableDirectUploads?: BooleanFilter; /** Filter by the object’s `enableI18N` field. */ enableI18N?: BooleanFilter; + /** Filter by the object’s `enableIntrospection` field. */ + enableIntrospection?: BooleanFilter; /** Filter by the object’s `enableLlm` field. */ enableLlm?: BooleanFilter; /** Filter by the object’s `enableLtree` field. */ @@ -6952,12 +7234,32 @@ export interface PlatformApiSettingFilter { enableSearch?: BooleanFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `idleInTransactionTimeoutMs` field. */ + idleInTransactionTimeoutMs?: BigIntFilter; + /** Filter by the object’s `lockTimeoutMs` field. */ + lockTimeoutMs?: BigIntFilter; + /** Filter by the object’s `maxConcurrentRequests` field. */ + maxConcurrentRequests?: IntFilter; + /** Filter by the object’s `maxPageSize` field. */ + maxPageSize?: IntFilter; + /** Filter by the object’s `maxQueryCost` field. */ + maxQueryCost?: IntFilter; + /** Filter by the object’s `maxQueryDepth` field. */ + maxQueryDepth?: IntFilter; + /** Filter by the object’s `maxQueueWaitMs` field. */ + maxQueueWaitMs?: IntFilter; + /** Filter by the object’s `maxRequestBytes` field. */ + maxRequestBytes?: IntFilter; /** Negates the expression. */ not?: PlatformApiSettingFilter; /** Filter by the object’s `options` field. */ options?: JSONFilter; /** Checks for any expressions in this list. */ or?: PlatformApiSettingFilter[]; + /** Filter by the object’s `rateLimitBurst` field. */ + rateLimitBurst?: IntFilter; + /** Filter by the object’s `rateLimitRpm` field. */ + rateLimitRpm?: IntFilter; /** Filter by the object’s `statementTimeoutMs` field. */ statementTimeoutMs?: BigIntFilter; /** Filter by the object’s `updatedAt` field. */ @@ -6978,6 +7280,8 @@ export interface PlatformApiSettingInput { enableDirectUploads?: boolean; /** Override: enable internationalization plugin (NULL = inherit from database_settings) */ enableI18N?: boolean; + /** Override: enable GraphQL schema introspection queries (NULL = inherit from database_settings) */ + enableIntrospection?: 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) */ @@ -6993,8 +7297,28 @@ export interface PlatformApiSettingInput { /** Override: enable unified search (NULL = inherit from database_settings) */ enableSearch?: boolean; id?: string; + /** Override: idle-in-transaction timeout in milliseconds (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + idleInTransactionTimeoutMs?: string; + /** Override: lock acquisition timeout in milliseconds (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + lockTimeoutMs?: string; + /** Override: maximum concurrently executing GraphQL requests (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + maxConcurrentRequests?: number; + /** Override: maximum page size for connection queries (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + maxPageSize?: number; + /** Override: maximum GraphQL query cost (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + maxQueryCost?: number; + /** Override: maximum GraphQL query depth (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + maxQueryDepth?: number; + /** Override: maximum time in milliseconds a request may wait for a concurrency slot (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + maxQueueWaitMs?: number; + /** Override: maximum request body size in bytes (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + maxRequestBytes?: number; /** Extensible JSON for additional per-API settings that do not have dedicated columns */ options?: unknown; + /** Override: rate-limit burst allowance (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + rateLimitBurst?: number; + /** Override: request rate limit in requests per minute (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + rateLimitRpm?: number; /** Override: GraphQL statement timeout in milliseconds (NULL = inherit from database_settings). Clamped by the plan cap at read time. */ statementTimeoutMs?: string; updatedAt?: string; @@ -7014,6 +7338,8 @@ export interface PlatformApiSettingPatch { enableDirectUploads?: boolean; /** Override: enable internationalization plugin (NULL = inherit from database_settings) */ enableI18N?: boolean; + /** Override: enable GraphQL schema introspection queries (NULL = inherit from database_settings) */ + enableIntrospection?: 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) */ @@ -7029,8 +7355,28 @@ export interface PlatformApiSettingPatch { /** Override: enable unified search (NULL = inherit from database_settings) */ enableSearch?: boolean; id?: string; + /** Override: idle-in-transaction timeout in milliseconds (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + idleInTransactionTimeoutMs?: string; + /** Override: lock acquisition timeout in milliseconds (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + lockTimeoutMs?: string; + /** Override: maximum concurrently executing GraphQL requests (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + maxConcurrentRequests?: number; + /** Override: maximum page size for connection queries (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + maxPageSize?: number; + /** Override: maximum GraphQL query cost (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + maxQueryCost?: number; + /** Override: maximum GraphQL query depth (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + maxQueryDepth?: number; + /** Override: maximum time in milliseconds a request may wait for a concurrency slot (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + maxQueueWaitMs?: number; + /** Override: maximum request body size in bytes (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + maxRequestBytes?: number; /** Extensible JSON for additional per-API settings that do not have dedicated columns */ options?: unknown; + /** Override: rate-limit burst allowance (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + rateLimitBurst?: number; + /** Override: request rate limit in requests per minute (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + rateLimitRpm?: number; /** Override: GraphQL statement timeout in milliseconds (NULL = inherit from database_settings). Clamped by the plan cap at read time. */ statementTimeoutMs?: string; updatedAt?: string; @@ -7087,6 +7433,11 @@ export interface PlatformCorsSettingPatch { id?: string; updatedAt?: string; } +export interface PlatformDeleteSitePreviewInput { + clientMutationId?: string; + targetName?: string; + targetSiteId?: string; +} /** A filter to be used against `PlatformDomainEvent` object types. All fields are combined with a logical ‘and.’ */ export interface PlatformDomainEventFilter { /** Filter by the object’s `actorId` field. */ @@ -7130,7 +7481,7 @@ export interface PlatformDomainEventFilter { } /** An input for mutations affecting `PlatformDomainEvent` */ export interface PlatformDomainEventInput { - /** User who triggered this event, if any */ + /** User who triggered this event; NULL only when no human actor was proven */ actorId?: string; createdAt?: string; /** Scoped domain this event belongs to */ @@ -7150,7 +7501,7 @@ export interface PlatformDomainEventInput { } /** Represents an update to a `PlatformDomainEvent`. Fields that are set will be updated. */ export interface PlatformDomainEventPatch { - /** User who triggered this event, if any */ + /** User who triggered this event; NULL only when no human actor was proven */ actorId?: string; createdAt?: string; /** Scoped domain this event belongs to */ @@ -7176,6 +7527,8 @@ export interface PlatformDomainFilter { config?: JSONFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `hostname` field. */ hostname?: StringFilter; /** Filter by the object’s `id` field. */ @@ -7208,6 +7561,8 @@ export interface PlatformDomainFilter { tlsStatus?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; /** Filter by the object’s `verificationStatus` field. */ verificationStatus?: StringFilter; /** Filter by the object’s `verifiedAt` field. */ @@ -7218,6 +7573,7 @@ export interface PlatformDomainInput { /** Module-specific configuration for this hostname */ config?: unknown; createdAt?: string; + createdByPrincipal?: string; /** Lowercase fully-qualified hostname; wildcards use the *.parent form */ hostname: string; id?: string; @@ -7236,6 +7592,7 @@ export interface PlatformDomainInput { /** Certificate lifecycle state for this hostname */ tlsStatus?: string; updatedAt?: string; + updatedByPrincipal?: string; /** Ownership verification state of this hostname */ verificationStatus?: string; /** When ownership verification last succeeded */ @@ -7246,6 +7603,7 @@ export interface PlatformDomainPatch { /** Module-specific configuration for this hostname */ config?: unknown; createdAt?: string; + createdByPrincipal?: string; /** Lowercase fully-qualified hostname; wildcards use the *.parent form */ hostname?: string; id?: string; @@ -7264,6 +7622,7 @@ export interface PlatformDomainPatch { /** Certificate lifecycle state for this hostname */ tlsStatus?: string; updatedAt?: string; + updatedByPrincipal?: string; /** Ownership verification state of this hostname */ verificationStatus?: string; /** When ownership verification last succeeded */ @@ -7665,6 +8024,8 @@ export interface PlatformManagedDomainFilter { certStatus?: StringFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `domain` field. */ domain?: StringFilter; /** Filter by the object’s `id` field. */ @@ -7689,6 +8050,8 @@ export interface PlatformManagedDomainFilter { tlsStatus?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; /** Filter by the object’s `verificationStatus` field. */ verificationStatus?: StringFilter; /** Filter by the object’s `verifiedAt` field. */ @@ -7703,6 +8066,7 @@ export interface PlatformManagedDomainInput { /** Certificate issuance state for this managed hostname */ certStatus?: string; createdAt?: string; + createdByPrincipal?: string; /** Lowercase fully-qualified managed hostname; wildcards use the *.parent form */ domain: string; id?: string; @@ -7713,6 +8077,7 @@ export interface PlatformManagedDomainInput { /** TLS provisioning state for this managed hostname */ tlsStatus?: string; updatedAt?: string; + updatedByPrincipal?: string; /** DNS ownership verification state of this managed hostname */ verificationStatus?: string; /** When ownership verification last succeeded */ @@ -7727,6 +8092,7 @@ export interface PlatformManagedDomainPatch { /** Certificate issuance state for this managed hostname */ certStatus?: string; createdAt?: string; + createdByPrincipal?: string; /** Lowercase fully-qualified managed hostname; wildcards use the *.parent form */ domain?: string; id?: string; @@ -7737,6 +8103,7 @@ export interface PlatformManagedDomainPatch { /** TLS provisioning state for this managed hostname */ tlsStatus?: string; updatedAt?: string; + updatedByPrincipal?: string; /** DNS ownership verification state of this managed hostname */ verificationStatus?: string; /** When ownership verification last succeeded */ @@ -7760,6 +8127,13 @@ export interface PlatformManagedDomainToManyPlatformDomainVerificationFilter { /** Filters to entities where at least one related entity matches. */ some?: PlatformDomainVerificationFilter; } +export interface PlatformMintSitePreviewTokenInput { + clientMutationId?: string; + siteId?: string; + target?: string; + targetKind?: string; + ttlSeconds?: number; +} /** 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. */ @@ -7776,6 +8150,8 @@ export interface PlatformPageFilter { not?: PlatformPageFilter; /** Checks for any expressions in this list. */ or?: PlatformPageFilter[]; + /** Filter by the object’s `seededFrom` field. */ + seededFrom?: JSONFilter; /** Filter by the object’s `site` relation. */ site?: PlatformSiteFilter; /** Filter by the object’s `siteId` field. */ @@ -7797,6 +8173,8 @@ export interface PlatformPageInput { createdAt?: string; /** Unique page identifier */ id?: string; + /** Provenance of a seeded page: the content preset (kind, slug, catalog commit_id) it was installed from, or NULL when authored directly */ + seededFrom?: unknown; /** Site surface this page belongs to; each site owns its own infra store and pages live at path [page, slug] within it */ siteId: string; /** Page slug (unique per site) */ @@ -7816,6 +8194,8 @@ export interface PlatformPagePatch { createdAt?: string; /** Unique page identifier */ id?: string; + /** Provenance of a seeded page: the content preset (kind, slug, catalog commit_id) it was installed from, or NULL when authored directly */ + seededFrom?: unknown; /** Site surface this page belongs to; each site owns its own infra store and pages live at path [page, slug] within it */ siteId?: string; /** Page slug (unique per site) */ @@ -7825,12 +8205,31 @@ export interface PlatformPagePatch { /** Timestamp of last modification */ updatedAt?: string; } +export interface PlatformPagesInstallPagesInput { + clientMutationId?: string; + entityId?: string; + pagesPreset?: string; + siteId?: string; +} +export interface PlatformProvisionSitePreviewInput { + apex?: string; + clientMutationId?: string; + commitId?: string; + name?: string; + siteId?: string; +} +export interface PlatformSetSitePreviewInput { + clientMutationId?: string; + targetCommitId?: string; + targetName?: string; + targetSiteId?: string; +} /** A filter to be used against `PlatformSiteAppLink` object types. All fields are combined with a logical ‘and.’ */ export interface PlatformSiteAppLinkFilter { /** Checks for all expressions in this list. */ and?: PlatformSiteAppLinkFilter[]; - /** Filter by the object’s `appIdentifier` field. */ - appIdentifier?: StringFilter; + /** Filter by the object’s `appStoreIdentityId` field. */ + appStoreIdentityId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -7841,18 +8240,10 @@ export interface PlatformSiteAppLinkFilter { or?: PlatformSiteAppLinkFilter[]; /** Filter by the object’s `pathComponents` field. */ pathComponents?: StringListFilter; - /** Filter by the object’s `platform` field. */ - platform?: StringFilter; - /** Filter by the object’s `sha256CertFingerprints` field. */ - sha256CertFingerprints?: StringListFilter; /** Filter by the object’s `site` relation. */ site?: PlatformSiteFilter; /** Filter by the object’s `siteId` field. */ siteId?: UUIDFilter; - /** Filter by the object’s `storeUrl` field. */ - storeUrl?: StringFilter; - /** Filter by the object’s `teamId` field. */ - teamId?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; /** Filter by the object’s `webcredentials` field. */ @@ -7860,44 +8251,28 @@ export interface PlatformSiteAppLinkFilter { } /** An input for mutations affecting `PlatformSiteAppLink` */ export interface PlatformSiteAppLinkInput { - /** App identifier: iOS bundle id or Android package name */ - appIdentifier: string; + /** App-owned store identity this association serves (app_store_identities row in this scope's app plane; the association carries no store facts of its own) */ + appStoreIdentityId: string; createdAt?: string; id?: string; /** Path patterns this association applies to (AASA paths / Android intent-filter paths) */ pathComponents?: string[]; - /** Target platform for this association (ios, android) */ - platform: string; - /** Android signing certificate SHA-256 fingerprints for assetlinks.json */ - sha256CertFingerprints?: string[]; /** Site surface this app-link association belongs to */ siteId: string; - /** App/Play store URL for this app (used by install banners and fallbacks) */ - storeUrl?: string; - /** Apple Developer team id (iOS); combined with app_identifier to form the AASA appID */ - teamId?: string; updatedAt?: string; /** Whether to emit the webcredentials service (iOS shared-web-credentials / password autofill) */ webcredentials?: boolean; } /** Represents an update to a `PlatformSiteAppLink`. Fields that are set will be updated. */ export interface PlatformSiteAppLinkPatch { - /** App identifier: iOS bundle id or Android package name */ - appIdentifier?: string; + /** App-owned store identity this association serves (app_store_identities row in this scope's app plane; the association carries no store facts of its own) */ + appStoreIdentityId?: string; createdAt?: string; id?: string; /** Path patterns this association applies to (AASA paths / Android intent-filter paths) */ pathComponents?: string[]; - /** Target platform for this association (ios, android) */ - platform?: string; - /** Android signing certificate SHA-256 fingerprints for assetlinks.json */ - sha256CertFingerprints?: string[]; /** Site surface this app-link association belongs to */ siteId?: string; - /** App/Play store URL for this app (used by install banners and fallbacks) */ - storeUrl?: string; - /** Apple Developer team id (iOS); combined with app_identifier to form the AASA appID */ - teamId?: string; updatedAt?: string; /** Whether to emit the webcredentials service (iOS shared-web-credentials / password autofill) */ webcredentials?: boolean; @@ -7920,6 +8295,8 @@ export interface PlatformSiteDeepLinkFilter { not?: PlatformSiteDeepLinkFilter; /** Checks for any expressions in this list. */ or?: PlatformSiteDeepLinkFilter[]; + /** Filter by the object’s `pageId` field. */ + pageId?: UUIDFilter; /** Filter by the object’s `site` relation. */ site?: PlatformSiteFilter; /** Filter by the object’s `siteId` field. */ @@ -7941,6 +8318,8 @@ export interface PlatformSiteDeepLinkInput { id?: string; /** Additional link metadata (campaign/UTM parameters, escape hatch) */ metadata?: unknown; + /** Page this link's web_path resolves to (soft reference into the pages module; NULL for external or non-page targets) */ + pageId?: string; /** Site surface this deep link belongs to (the hostname plane that serves it) */ siteId: string; /** Link name unique per site; addressed at the deep-link path prefix (e.g. /l/) */ @@ -7959,6 +8338,8 @@ export interface PlatformSiteDeepLinkPatch { id?: string; /** Additional link metadata (campaign/UTM parameters, escape hatch) */ metadata?: unknown; + /** Page this link's web_path resolves to (soft reference into the pages module; NULL for external or non-page targets) */ + pageId?: string; /** Site surface this deep link belongs to (the hostname plane that serves it) */ siteId?: string; /** Link name unique per site; addressed at the deep-link path prefix (e.g. /l/) */ @@ -8024,6 +8405,8 @@ export interface PlatformSiteFilter { bucketId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `description` field. */ description?: StringFilter; /** Filter by the object’s `id` field. */ @@ -8068,6 +8451,10 @@ export interface PlatformSiteFilter { platformSiteModulesBySiteId?: PlatformSiteToManyPlatformSiteModuleFilter; /** `platformSiteModulesBySiteId` exist. */ platformSiteModulesBySiteIdExist?: boolean; + /** Filter by the object’s `platformSiteReleaseBySiteId` relation. */ + platformSiteReleaseBySiteId?: PlatformSiteReleaseFilter; + /** A related `platformSiteReleaseBySiteId` exists. */ + platformSiteReleaseBySiteIdExists?: boolean; /** Filter by the object’s `platformSiteThemesBySiteId` relation. */ platformSiteThemesBySiteId?: PlatformSiteToManyPlatformSiteThemeFilter; /** `platformSiteThemesBySiteId` exist. */ @@ -8082,18 +8469,21 @@ export interface PlatformSiteFilter { title?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } /** An input for mutations affecting `PlatformSite` */ export interface PlatformSiteInput { /** Infra-store commit pinned as the live page content for this site (manual publish pointer; NULL = nothing published yet) */ activeCommitId?: string; - /** Catalog bucket that backs this site (static content store; exactly one of bucket_id/resource_id) */ + /** Bucket that backs this site (static content store; exactly one of bucket_id/resource_id) */ bucketId?: string; createdAt?: string; + createdByPrincipal?: string; /** Human-readable site description */ description?: string; id?: string; - /** Catalog resource_installation (release) that backs this site; the servable member is named by installation_member_slug (exactly one of bucket_id/resource_id/installation_id) */ + /** Resource installation (release) that backs this site; the servable member is named by installation_member_slug (exactly one of bucket_id/resource_id/installation_id) */ installationId?: string; /** Slug of the release member (a Service resource) that serves this site; set iff installation_id is set */ installationMemberSlug?: string; @@ -8101,11 +8491,18 @@ export interface PlatformSiteInput { isPublished?: boolean; /** Owner-local site surface name */ name: string; - /** Catalog resource/service that backs this site (SSR/app Service pinned to one concrete resource row; exactly one of bucket_id/resource_id/installation_id) */ + /** Resource/service that backs this site (SSR/app Service pinned to one concrete resource row; exactly one of bucket_id/resource_id/installation_id) */ resourceId?: string; /** Human-readable site title */ title?: string; updatedAt?: string; + updatedByPrincipal?: string; +} +export interface PlatformSiteMetadataInstallRobotsInput { + clientMutationId?: string; + entityId?: string; + robotsPreset?: string; + siteId?: string; } /** A filter to be used against `PlatformSiteMetadatum` object types. All fields are combined with a logical ‘and.’ */ export interface PlatformSiteMetadatumFilter { @@ -8135,6 +8532,8 @@ export interface PlatformSiteMetadatumFilter { or?: PlatformSiteMetadatumFilter[]; /** Filter by the object’s `robots` field. */ robots?: StringFilter; + /** Filter by the object’s `robotsSeededFrom` field. */ + robotsSeededFrom?: JSONFilter; /** Filter by the object’s `site` relation. */ site?: PlatformSiteFilter; /** Filter by the object’s `siteId` field. */ @@ -8166,6 +8565,8 @@ export interface PlatformSiteMetadatumInput { ogImage?: ConstructiveInternalTypeImage; /** robots meta directive (e.g. index,follow / noindex,nofollow) */ robots?: string; + /** Provenance of the robots value: the content preset (kind, slug, catalog commit_id) an install applied, or NULL when it was authored directly */ + robotsSeededFrom?: unknown; /** Site surface this metadata belongs to */ siteId: string; /** Infra Merkle store holding this row's history (stamped by the versioned trigger) */ @@ -8202,6 +8603,8 @@ export interface PlatformSiteMetadatumPatch { ogImageUpload?: File; /** robots meta directive (e.g. index,follow / noindex,nofollow) */ robots?: string; + /** Provenance of the robots value: the content preset (kind, slug, catalog commit_id) an install applied, or NULL when it was authored directly */ + robotsSeededFrom?: unknown; /** Site surface this metadata belongs to */ siteId?: string; /** Infra Merkle store holding this row's history (stamped by the versioned trigger) */ @@ -8271,13 +8674,14 @@ export interface PlatformSiteModulePatch { export interface PlatformSitePatch { /** Infra-store commit pinned as the live page content for this site (manual publish pointer; NULL = nothing published yet) */ activeCommitId?: string; - /** Catalog bucket that backs this site (static content store; exactly one of bucket_id/resource_id) */ + /** Bucket that backs this site (static content store; exactly one of bucket_id/resource_id) */ bucketId?: string; createdAt?: string; + createdByPrincipal?: string; /** Human-readable site description */ description?: string; id?: string; - /** Catalog resource_installation (release) that backs this site; the servable member is named by installation_member_slug (exactly one of bucket_id/resource_id/installation_id) */ + /** Resource installation (release) that backs this site; the servable member is named by installation_member_slug (exactly one of bucket_id/resource_id/installation_id) */ installationId?: string; /** Slug of the release member (a Service resource) that serves this site; set iff installation_id is set */ installationMemberSlug?: string; @@ -8285,11 +8689,65 @@ export interface PlatformSitePatch { isPublished?: boolean; /** Owner-local site surface name */ name?: string; - /** Catalog resource/service that backs this site (SSR/app Service pinned to one concrete resource row; exactly one of bucket_id/resource_id/installation_id) */ + /** Resource/service that backs this site (SSR/app Service pinned to one concrete resource row; exactly one of bucket_id/resource_id/installation_id) */ resourceId?: string; /** Human-readable site title */ title?: string; updatedAt?: string; + updatedByPrincipal?: string; +} +/** A filter to be used against `PlatformSiteRelease` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformSiteReleaseFilter { + /** Checks for all expressions in this list. */ + and?: PlatformSiteReleaseFilter[]; + /** Filter by the object’s `commitId` field. */ + commitId?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `manifest` field. */ + manifest?: JSONFilter; + /** Negates the expression. */ + not?: PlatformSiteReleaseFilter; + /** Checks for any expressions in this list. */ + or?: PlatformSiteReleaseFilter[]; + /** Filter by the object’s `site` relation. */ + site?: PlatformSiteFilter; + /** Filter by the object’s `siteId` field. */ + siteId?: UUIDFilter; + /** Filter by the object’s `storeId` field. */ + storeId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} +/** An input for mutations affecting `PlatformSiteRelease` */ +export interface PlatformSiteReleaseInput { + /** Infra store commit for the current content (stamped by the versioned trigger on every write) */ + commitId?: string; + createdAt?: string; + id?: string; + /** Release manifest: {"files":{"":{"hash":"<64-hex sha256>","content_type":"...","size":123}},"file_count":N,"total_bytes":N} */ + manifest: unknown; + /** Site surface this release manifest belongs to */ + siteId: string; + /** Infra Merkle store holding this row's history (stamped by the versioned trigger) */ + storeId?: string; + updatedAt?: string; +} +/** Represents an update to a `PlatformSiteRelease`. Fields that are set will be updated. */ +export interface PlatformSiteReleasePatch { + /** Infra store commit for the current content (stamped by the versioned trigger on every write) */ + commitId?: string; + createdAt?: string; + id?: string; + /** Release manifest: {"files":{"":{"hash":"<64-hex sha256>","content_type":"...","size":123}},"file_count":N,"total_bytes":N} */ + manifest?: unknown; + /** Site surface this release manifest belongs to */ + siteId?: string; + /** Infra Merkle store holding this row's history (stamped by the versioned trigger) */ + storeId?: string; + updatedAt?: string; } /** A filter to be used against `PlatformSiteTheme` object types. All fields are combined with a logical ‘and.’ */ export interface PlatformSiteThemeFilter { @@ -8469,6 +8927,19 @@ export interface PlatformSiteWebConfigPatch { spaFallback?: boolean; updatedAt?: string; } +export interface PlatformSitesInstallContentPresetInput { + clientMutationId?: string; + entityId?: string; + presetKind?: string; + presetSlug?: string; + siteId?: string; +} +export interface PlatformSitesInstallMantraInput { + clientMutationId?: string; + entityId?: string; + routePreset?: string; + siteId?: string; +} export interface PlatformSitesProvisionStaticSiteInput { apex?: string; clientMutationId?: string; @@ -8484,6 +8955,8 @@ export interface PolicyFilter { and?: PolicyFilter[]; /** Filter by the object’s `category` field. */ category?: ObjectCategoryFilter; + /** Filter by the object’s `columnRefs` field. */ + columnRefs?: StringListFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `data` field. */ @@ -8538,6 +9011,8 @@ export interface PolicyFilter { /** An input for mutations affecting `Policy` */ export interface PolicyInput { category?: ObjectCategory; + /** Columns of this policy's table that its expression filters on. Stamped when the policy is derived onto a companion table, so a consumer needing those columns (e.g. a chunking worker copying them from the parent row) reads them here instead of re-walking the node type's parameter schema. */ + columnRefs?: string[]; createdAt?: string; data?: unknown; databaseId?: string; @@ -8560,6 +9035,8 @@ export interface PolicyInput { /** Represents an update to a `Policy`. Fields that are set will be updated. */ export interface PolicyPatch { category?: ObjectCategory; + /** Columns of this policy's table that its expression filters on. Stamped when the policy is derived onto a companion table, so a consumer needing those columns (e.g. a chunking worker copying them from the parent row) reads them here instead of re-walking the node type's parameter schema. */ + columnRefs?: string[]; createdAt?: string; data?: unknown; databaseId?: string; @@ -8663,6 +9140,13 @@ export interface ProvisionBucketInput { */ ownerId?: string; } +export interface ProvisionSitePreviewInput { + apex?: string; + clientMutationId?: string; + commitId?: string; + name?: string; + siteId?: string; +} /** A filter to be used against `PubkeySetting` object types. All fields are combined with a logical ‘and.’ */ export interface PubkeySettingFilter { /** Checks for all expressions in this list. */ @@ -8733,30 +9217,116 @@ export interface PubkeySettingInput { /** Reference to the sign-up-with-key function (FK to metaschema_public.function) */ signUpWithKeyFunctionId?: string; updatedAt?: string; - /** Field name used to identify the user in crypto auth functions */ - userField?: string; + /** Field name used to identify the user in crypto auth functions */ + userField?: string; +} +/** Represents an update to a `PubkeySetting`. Fields that are set will be updated. */ +export interface PubkeySettingPatch { + createdAt?: string; + /** Crypto network for key derivation (e.g. cosmos, ethereum) */ + cryptoNetwork?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string; + id?: string; + /** Schema containing the crypto auth functions (FK to metaschema_public.schema) */ + schemaId?: string; + /** Reference to the sign-in failure recording function (FK to metaschema_public.function) */ + signInRecordFailureFunctionId?: string; + /** Reference to the sign-in challenge request function (FK to metaschema_public.function) */ + signInRequestChallengeFunctionId?: string; + /** Reference to the sign-in-with-challenge function (FK to metaschema_public.function) */ + signInWithChallengeFunctionId?: string; + /** Reference to the sign-up-with-key function (FK to metaschema_public.function) */ + signUpWithKeyFunctionId?: string; + updatedAt?: string; + /** Field name used to identify the user in crypto auth functions */ + userField?: string; +} +/** A filter to be used against `Redirect` object types. All fields are combined with a logical ‘and.’ */ +export interface RedirectFilter { + /** Checks for all expressions in this list. */ + and?: RedirectFilter[]; + /** 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 `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: RedirectFilter; + /** Checks for any expressions in this list. */ + or?: RedirectFilter[]; + /** Filter by the object’s `preservePath` field. */ + preservePath?: BooleanFilter; + /** Filter by the object’s `preserveQuery` field. */ + preserveQuery?: BooleanFilter; + /** Filter by the object’s `routesByTargetRedirectId` relation. */ + routesByTargetRedirectId?: RedirectToManyRouteFilter; + /** `routesByTargetRedirectId` exist. */ + routesByTargetRedirectIdExist?: boolean; + /** Filter by the object’s `statusCode` field. */ + statusCode?: IntFilter; + /** Filter by the object’s `toHost` field. */ + toHost?: StringFilter; + /** Filter by the object’s `toPath` field. */ + toPath?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} +/** An input for mutations affecting `Redirect` */ +export interface RedirectInput { + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + id?: string; + /** Owner-local name for this redirect */ + name: string; + /** Whether the incoming path is appended to the destination */ + preservePath?: boolean; + /** Whether the incoming query string is carried to the destination */ + preserveQuery?: boolean; + /** HTTP redirect status the edge answers with (301, 302, 307 or 308) */ + statusCode?: number; + /** Destination hostname the edge redirects to */ + toHost: string; + /** Destination path; NULL keeps the incoming path (see preserve_path) */ + toPath?: string; + updatedAt?: string; } -/** Represents an update to a `PubkeySetting`. Fields that are set will be updated. */ -export interface PubkeySettingPatch { +/** Represents an update to a `Redirect`. Fields that are set will be updated. */ +export interface RedirectPatch { createdAt?: string; - /** Crypto network for key derivation (e.g. cosmos, ethereum) */ - cryptoNetwork?: string; /** Database that owns this resource (database-scoped isolation) */ databaseId?: string; id?: string; - /** Schema containing the crypto auth functions (FK to metaschema_public.schema) */ - schemaId?: string; - /** Reference to the sign-in failure recording function (FK to metaschema_public.function) */ - signInRecordFailureFunctionId?: string; - /** Reference to the sign-in challenge request function (FK to metaschema_public.function) */ - signInRequestChallengeFunctionId?: string; - /** Reference to the sign-in-with-challenge function (FK to metaschema_public.function) */ - signInWithChallengeFunctionId?: string; - /** Reference to the sign-up-with-key function (FK to metaschema_public.function) */ - signUpWithKeyFunctionId?: string; + /** Owner-local name for this redirect */ + name?: string; + /** Whether the incoming path is appended to the destination */ + preservePath?: boolean; + /** Whether the incoming query string is carried to the destination */ + preserveQuery?: boolean; + /** HTTP redirect status the edge answers with (301, 302, 307 or 308) */ + statusCode?: number; + /** Destination hostname the edge redirects to */ + toHost?: string; + /** Destination path; NULL keeps the incoming path (see preserve_path) */ + toPath?: string; updatedAt?: string; - /** Field name used to identify the user in crypto auth functions */ - userField?: string; +} +/** A filter to be used against many `Route` object types. All fields are combined with a logical ‘and.’ */ +export interface RedirectToManyRouteFilter { + /** Filters to entities where every related entity matches. */ + every?: RouteFilter; + /** Filters to entities where no related entity matches. */ + none?: RouteFilter; + /** Filters to entities where at least one related entity matches. */ + some?: RouteFilter; +} +export interface RejectDatabaseTransferInput { + clientMutationId?: string; + transferId?: string; } export interface RequestDatabaseInput { clientMutationId?: string; @@ -8764,6 +9334,7 @@ export interface RequestDatabaseInput { domain?: string; modules?: unknown; options?: unknown; + organizationId?: string; presetSlug?: string; subdomain?: string; } @@ -8900,12 +9471,16 @@ export interface RouteBindingFilter { path?: StringFilter; /** Filter by the object’s `priority` field. */ priority?: IntFilter; + /** Filter by the object’s `servingSiteId` field. */ + servingSiteId?: UUIDFilter; /** Filter by the object’s `targetApiId` field. */ targetApiId?: UUIDFilter; /** Filter by the object’s `targetBucketId` field. */ targetBucketId?: UUIDFilter; /** Filter by the object’s `targetFunctionId` field. */ targetFunctionId?: UUIDFilter; + /** Filter by the object’s `targetRedirectId` field. */ + targetRedirectId?: UUIDFilter; /** Filter by the object’s `targetServiceId` field. */ targetServiceId?: UUIDFilter; /** Filter by the object’s `targetSiteId` field. */ @@ -8926,12 +9501,16 @@ export interface RouteBindingInput { path: string; /** Priority compiled from the source route */ priority?: number; + /** Site whose surface the source route serves; NULL when it serves no site */ + servingSiteId?: string; /** Api catalog row the source route targets */ targetApiId?: string; /** Bucket catalog row the source route targets */ targetBucketId?: string; /** Function catalog row the source route targets */ targetFunctionId?: string; + /** Redirect catalog row the source route targets */ + targetRedirectId?: string; /** Resource catalog row (a Service resource) the source route targets */ targetServiceId?: string; /** Site catalog row the source route targets */ @@ -8952,12 +9531,16 @@ export interface RouteBindingPatch { path?: string; /** Priority compiled from the source route */ priority?: number; + /** Site whose surface the source route serves; NULL when it serves no site */ + servingSiteId?: string; /** Api catalog row the source route targets */ targetApiId?: string; /** Bucket catalog row the source route targets */ targetBucketId?: string; /** Function catalog row the source route targets */ targetFunctionId?: string; + /** Redirect catalog row the source route targets */ + targetRedirectId?: string; /** Resource catalog row (a Service resource) the source route targets */ targetServiceId?: string; /** Site catalog row the source route targets */ @@ -8969,6 +9552,8 @@ export interface RouteBindingPatch { export interface RouteFilter { /** Checks for all expressions in this list. */ and?: RouteFilter[]; + /** Filter by the object’s `anonymous` field. */ + anonymous?: BooleanFilter; /** Filter by the object’s `config` field. */ config?: JSONFilter; /** Filter by the object’s `createdAt` field. */ @@ -8991,16 +9576,38 @@ export interface RouteFilter { or?: RouteFilter[]; /** Filter by the object’s `path` field. */ path?: StringFilter; + /** Filter by the object’s `previewRef` field. */ + previewRef?: StringFilter; /** Filter by the object’s `priority` field. */ priority?: IntFilter; + /** Filter by the object’s `servingSite` relation. */ + servingSite?: SiteFilter; + /** A related `servingSite` exists. */ + servingSiteExists?: boolean; + /** Filter by the object’s `servingSiteId` field. */ + servingSiteId?: UUIDFilter; + /** Filter by the object’s `targetApi` relation. */ + targetApi?: ApiFilter; + /** A related `targetApi` exists. */ + targetApiExists?: boolean; /** Filter by the object’s `targetApiId` field. */ targetApiId?: UUIDFilter; /** Filter by the object’s `targetBucketId` field. */ targetBucketId?: UUIDFilter; /** Filter by the object’s `targetFunctionId` field. */ targetFunctionId?: UUIDFilter; + /** Filter by the object’s `targetRedirect` relation. */ + targetRedirect?: RedirectFilter; + /** A related `targetRedirect` exists. */ + targetRedirectExists?: boolean; + /** Filter by the object’s `targetRedirectId` field. */ + targetRedirectId?: UUIDFilter; /** Filter by the object’s `targetServiceId` field. */ targetServiceId?: UUIDFilter; + /** Filter by the object’s `targetSite` relation. */ + targetSite?: SiteFilter; + /** A related `targetSite` exists. */ + targetSiteExists?: boolean; /** Filter by the object’s `targetSiteId` field. */ targetSiteId?: UUIDFilter; /** Filter by the object’s `updatedAt` field. */ @@ -9008,6 +9615,8 @@ export interface RouteFilter { } /** An input for mutations affecting `Route` */ export interface RouteInput { + /** Whether this route answers callers with no identity. Requires the target function to declare anonymous_callable; default false = an identity is required */ + anonymous?: boolean; /** Route metadata; target configuration is read live from the typed catalog, never copied here */ config?: unknown; createdAt?: string; @@ -9022,22 +9631,30 @@ export interface RouteInput { method?: string; /** Path prefix this route matches; must begin with / and carry no trailing slash */ path?: string; + /** The site preview this route serves; NULL serves the site's published release */ + previewRef?: string; /** Higher priority wins between otherwise-equal matches */ priority?: number; - /** Api catalog row this route targets; must be owner-matched or visible cross-scope */ + /** Site whose surface this route serves; the serving lane renders as this site. NULL when the route serves no site */ + servingSiteId?: string; + /** Api surface this route targets; must be this scope's own api */ targetApiId?: string; - /** Bucket catalog row this route targets; must be a public bucket that is owner-matched or visible cross-scope */ + /** Bucket this route targets; must be a public bucket in this scope's own storage plane */ targetBucketId?: string; - /** Function catalog row this route targets; must be owner-matched or visible cross-scope */ + /** Function this route targets; must be this scope's own function */ targetFunctionId?: string; - /** Resource catalog row (a Service resource) this route targets; must be owner-matched or visible cross-scope */ + /** Redirect this route targets; the edge answers with a redirect status instead of proxying a backend */ + targetRedirectId?: string; + /** Resource (a Service resource) this route targets; must be this scope's own resource */ targetServiceId?: string; - /** Site catalog row this route targets; must be owner-matched or visible cross-scope */ + /** Site surface this route targets; must be this scope's own site */ targetSiteId?: string; updatedAt?: string; } /** Represents an update to a `Route`. Fields that are set will be updated. */ export interface RoutePatch { + /** Whether this route answers callers with no identity. Requires the target function to declare anonymous_callable; default false = an identity is required */ + anonymous?: boolean; /** Route metadata; target configuration is read live from the typed catalog, never copied here */ config?: unknown; createdAt?: string; @@ -9052,17 +9669,23 @@ export interface RoutePatch { method?: string; /** Path prefix this route matches; must begin with / and carry no trailing slash */ path?: string; + /** The site preview this route serves; NULL serves the site's published release */ + previewRef?: string; /** Higher priority wins between otherwise-equal matches */ priority?: number; - /** Api catalog row this route targets; must be owner-matched or visible cross-scope */ + /** Site whose surface this route serves; the serving lane renders as this site. NULL when the route serves no site */ + servingSiteId?: string; + /** Api surface this route targets; must be this scope's own api */ targetApiId?: string; - /** Bucket catalog row this route targets; must be a public bucket that is owner-matched or visible cross-scope */ + /** Bucket this route targets; must be a public bucket in this scope's own storage plane */ targetBucketId?: string; - /** Function catalog row this route targets; must be owner-matched or visible cross-scope */ + /** Function this route targets; must be this scope's own function */ targetFunctionId?: string; - /** Resource catalog row (a Service resource) this route targets; must be owner-matched or visible cross-scope */ + /** Redirect this route targets; the edge answers with a redirect status instead of proxying a backend */ + targetRedirectId?: string; + /** Resource (a Service resource) this route targets; must be this scope's own resource */ targetServiceId?: string; - /** Site catalog row this route targets; must be owner-matched or visible cross-scope */ + /** Site surface this route targets; must be this scope's own site */ targetSiteId?: string; updatedAt?: string; } @@ -9312,12 +9935,18 @@ export interface SetFieldOrderInput { clientMutationId?: string; fieldIds?: string[]; } +export interface SetSitePreviewInput { + clientMutationId?: string; + targetCommitId?: string; + targetName?: string; + targetSiteId?: string; +} /** A filter to be used against `SiteAppLink` object types. All fields are combined with a logical ‘and.’ */ export interface SiteAppLinkFilter { /** Checks for all expressions in this list. */ and?: SiteAppLinkFilter[]; - /** Filter by the object’s `appIdentifier` field. */ - appIdentifier?: StringFilter; + /** Filter by the object’s `appStoreIdentityId` field. */ + appStoreIdentityId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `databaseId` field. */ @@ -9330,18 +9959,10 @@ export interface SiteAppLinkFilter { or?: SiteAppLinkFilter[]; /** Filter by the object’s `pathComponents` field. */ pathComponents?: StringListFilter; - /** Filter by the object’s `platform` field. */ - platform?: StringFilter; - /** Filter by the object’s `sha256CertFingerprints` field. */ - sha256CertFingerprints?: StringListFilter; /** Filter by the object’s `site` relation. */ site?: SiteFilter; /** Filter by the object’s `siteId` field. */ siteId?: UUIDFilter; - /** Filter by the object’s `storeUrl` field. */ - storeUrl?: StringFilter; - /** Filter by the object’s `teamId` field. */ - teamId?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; /** Filter by the object’s `webcredentials` field. */ @@ -9349,48 +9970,32 @@ export interface SiteAppLinkFilter { } /** An input for mutations affecting `SiteAppLink` */ export interface SiteAppLinkInput { - /** App identifier: iOS bundle id or Android package name */ - appIdentifier: string; + /** App-owned store identity this association serves (app_store_identities row in this scope's app plane; the association carries no store facts of its own) */ + appStoreIdentityId: string; createdAt?: string; /** Database that owns this resource (database-scoped isolation) */ databaseId: string; id?: string; /** Path patterns this association applies to (AASA paths / Android intent-filter paths) */ pathComponents?: string[]; - /** Target platform for this association (ios, android) */ - platform: string; - /** Android signing certificate SHA-256 fingerprints for assetlinks.json */ - sha256CertFingerprints?: string[]; /** Site surface this app-link association belongs to */ siteId: string; - /** App/Play store URL for this app (used by install banners and fallbacks) */ - storeUrl?: string; - /** Apple Developer team id (iOS); combined with app_identifier to form the AASA appID */ - teamId?: string; updatedAt?: string; /** Whether to emit the webcredentials service (iOS shared-web-credentials / password autofill) */ webcredentials?: boolean; } /** Represents an update to a `SiteAppLink`. Fields that are set will be updated. */ export interface SiteAppLinkPatch { - /** App identifier: iOS bundle id or Android package name */ - appIdentifier?: string; + /** App-owned store identity this association serves (app_store_identities row in this scope's app plane; the association carries no store facts of its own) */ + appStoreIdentityId?: string; createdAt?: string; /** Database that owns this resource (database-scoped isolation) */ databaseId?: string; id?: string; /** Path patterns this association applies to (AASA paths / Android intent-filter paths) */ pathComponents?: string[]; - /** Target platform for this association (ios, android) */ - platform?: string; - /** Android signing certificate SHA-256 fingerprints for assetlinks.json */ - sha256CertFingerprints?: string[]; /** Site surface this app-link association belongs to */ siteId?: string; - /** App/Play store URL for this app (used by install banners and fallbacks) */ - storeUrl?: string; - /** Apple Developer team id (iOS); combined with app_identifier to form the AASA appID */ - teamId?: string; updatedAt?: string; /** Whether to emit the webcredentials service (iOS shared-web-credentials / password autofill) */ webcredentials?: boolean; @@ -9415,6 +10020,8 @@ export interface SiteDeepLinkFilter { not?: SiteDeepLinkFilter; /** Checks for any expressions in this list. */ or?: SiteDeepLinkFilter[]; + /** Filter by the object’s `pageId` field. */ + pageId?: UUIDFilter; /** Filter by the object’s `site` relation. */ site?: SiteFilter; /** Filter by the object’s `siteId` field. */ @@ -9438,6 +10045,8 @@ export interface SiteDeepLinkInput { id?: string; /** Additional link metadata (campaign/UTM parameters, escape hatch) */ metadata?: unknown; + /** Page this link's web_path resolves to (soft reference into the pages module; NULL for external or non-page targets) */ + pageId?: string; /** Site surface this deep link belongs to (the hostname plane that serves it) */ siteId: string; /** Link name unique per site; addressed at the deep-link path prefix (e.g. /l/) */ @@ -9458,6 +10067,8 @@ export interface SiteDeepLinkPatch { id?: string; /** Additional link metadata (campaign/UTM parameters, escape hatch) */ metadata?: unknown; + /** Page this link's web_path resolves to (soft reference into the pages module; NULL for external or non-page targets) */ + pageId?: string; /** Site surface this deep link belongs to (the hostname plane that serves it) */ siteId?: string; /** Link name unique per site; addressed at the deep-link path prefix (e.g. /l/) */ @@ -9529,6 +10140,8 @@ export interface SiteFilter { bucketId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; /** Filter by the object’s `description` field. */ @@ -9557,6 +10170,10 @@ export interface SiteFilter { pagesExist?: boolean; /** Filter by the object’s `resourceId` field. */ resourceId?: UUIDFilter; + /** Filter by the object’s `routesByServingSiteId` relation. */ + routesByServingSiteId?: SiteToManyRouteFilter; + /** `routesByServingSiteId` exist. */ + routesByServingSiteIdExist?: boolean; /** Filter by the object’s `siteAppLinks` relation. */ siteAppLinks?: SiteToManySiteAppLinkFilter; /** `siteAppLinks` exist. */ @@ -9577,6 +10194,10 @@ export interface SiteFilter { siteModules?: SiteToManySiteModuleFilter; /** `siteModules` exist. */ siteModulesExist?: boolean; + /** Filter by the object’s `siteRelease` relation. */ + siteRelease?: SiteReleaseFilter; + /** A related `siteRelease` exists. */ + siteReleaseExists?: boolean; /** Filter by the object’s `siteThemes` relation. */ siteThemes?: SiteToManySiteThemeFilter; /** `siteThemes` exist. */ @@ -9589,20 +10210,23 @@ export interface SiteFilter { title?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } /** An input for mutations affecting `Site` */ export interface SiteInput { /** Infra-store commit pinned as the live page content for this site (manual publish pointer; NULL = nothing published yet) */ activeCommitId?: string; - /** Catalog bucket that backs this site (static content store; exactly one of bucket_id/resource_id) */ + /** Bucket that backs this site (static content store; exactly one of bucket_id/resource_id) */ bucketId?: string; createdAt?: string; + createdByPrincipal?: string; /** Database that owns this resource (database-scoped isolation) */ databaseId: string; /** Human-readable site description */ description?: string; id?: string; - /** Catalog resource_installation (release) that backs this site; the servable member is named by installation_member_slug (exactly one of bucket_id/resource_id/installation_id) */ + /** Resource installation (release) that backs this site; the servable member is named by installation_member_slug (exactly one of bucket_id/resource_id/installation_id) */ installationId?: string; /** Slug of the release member (a Service resource) that serves this site; set iff installation_id is set */ installationMemberSlug?: string; @@ -9610,11 +10234,18 @@ export interface SiteInput { isPublished?: boolean; /** Owner-local site surface name */ name: string; - /** Catalog resource/service that backs this site (SSR/app Service pinned to one concrete resource row; exactly one of bucket_id/resource_id/installation_id) */ + /** Resource/service that backs this site (SSR/app Service pinned to one concrete resource row; exactly one of bucket_id/resource_id/installation_id) */ resourceId?: string; /** Human-readable site title */ title?: string; updatedAt?: string; + updatedByPrincipal?: string; +} +export interface SiteMetadataInstallRobotsInput { + clientMutationId?: string; + entityId?: string; + robotsPreset?: string; + siteId?: string; } /** A filter to be used against `SiteMetadatum` object types. All fields are combined with a logical ‘and.’ */ export interface SiteMetadatumFilter { @@ -9646,6 +10277,8 @@ export interface SiteMetadatumFilter { or?: SiteMetadatumFilter[]; /** Filter by the object’s `robots` field. */ robots?: StringFilter; + /** Filter by the object’s `robotsSeededFrom` field. */ + robotsSeededFrom?: JSONFilter; /** Filter by the object’s `site` relation. */ site?: SiteFilter; /** Filter by the object’s `siteId` field. */ @@ -9679,6 +10312,8 @@ export interface SiteMetadatumInput { ogImage?: ConstructiveInternalTypeImage; /** robots meta directive (e.g. index,follow / noindex,nofollow) */ robots?: string; + /** Provenance of the robots value: the content preset (kind, slug, catalog commit_id) an install applied, or NULL when it was authored directly */ + robotsSeededFrom?: unknown; /** Site surface this metadata belongs to */ siteId: string; /** Infra Merkle store holding this row's history (stamped by the versioned trigger) */ @@ -9717,6 +10352,8 @@ export interface SiteMetadatumPatch { ogImageUpload?: File; /** robots meta directive (e.g. index,follow / noindex,nofollow) */ robots?: string; + /** Provenance of the robots value: the content preset (kind, slug, catalog commit_id) an install applied, or NULL when it was authored directly */ + robotsSeededFrom?: unknown; /** Site surface this metadata belongs to */ siteId?: string; /** Infra Merkle store holding this row's history (stamped by the versioned trigger) */ @@ -9792,15 +10429,16 @@ export interface SiteModulePatch { export interface SitePatch { /** Infra-store commit pinned as the live page content for this site (manual publish pointer; NULL = nothing published yet) */ activeCommitId?: string; - /** Catalog bucket that backs this site (static content store; exactly one of bucket_id/resource_id) */ + /** Bucket that backs this site (static content store; exactly one of bucket_id/resource_id) */ bucketId?: string; createdAt?: string; + createdByPrincipal?: string; /** Database that owns this resource (database-scoped isolation) */ databaseId?: string; /** Human-readable site description */ description?: string; id?: string; - /** Catalog resource_installation (release) that backs this site; the servable member is named by installation_member_slug (exactly one of bucket_id/resource_id/installation_id) */ + /** Resource installation (release) that backs this site; the servable member is named by installation_member_slug (exactly one of bucket_id/resource_id/installation_id) */ installationId?: string; /** Slug of the release member (a Service resource) that serves this site; set iff installation_id is set */ installationMemberSlug?: string; @@ -9808,11 +10446,71 @@ export interface SitePatch { isPublished?: boolean; /** Owner-local site surface name */ name?: string; - /** Catalog resource/service that backs this site (SSR/app Service pinned to one concrete resource row; exactly one of bucket_id/resource_id/installation_id) */ + /** Resource/service that backs this site (SSR/app Service pinned to one concrete resource row; exactly one of bucket_id/resource_id/installation_id) */ resourceId?: string; /** Human-readable site title */ title?: string; updatedAt?: string; + updatedByPrincipal?: string; +} +/** A filter to be used against `SiteRelease` object types. All fields are combined with a logical ‘and.’ */ +export interface SiteReleaseFilter { + /** Checks for all expressions in this list. */ + and?: SiteReleaseFilter[]; + /** 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 `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `manifest` field. */ + manifest?: JSONFilter; + /** Negates the expression. */ + not?: SiteReleaseFilter; + /** Checks for any expressions in this list. */ + or?: SiteReleaseFilter[]; + /** 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 `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} +/** An input for mutations affecting `SiteRelease` */ +export interface SiteReleaseInput { + /** Infra store commit for the current content (stamped by the versioned trigger on every write) */ + commitId?: string; + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + id?: string; + /** Release manifest: {"files":{"":{"hash":"<64-hex sha256>","content_type":"...","size":123}},"file_count":N,"total_bytes":N} */ + manifest: unknown; + /** Site surface this release manifest belongs to */ + siteId: string; + /** Infra Merkle store holding this row's history (stamped by the versioned trigger) */ + storeId?: string; + updatedAt?: string; +} +/** Represents an update to a `SiteRelease`. Fields that are set will be updated. */ +export interface SiteReleasePatch { + /** Infra store commit for the current content (stamped by the versioned trigger on every write) */ + commitId?: string; + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string; + id?: string; + /** Release manifest: {"files":{"":{"hash":"<64-hex sha256>","content_type":"...","size":123}},"file_count":N,"total_bytes":N} */ + manifest?: unknown; + /** Site surface this release manifest belongs to */ + siteId?: string; + /** Infra Merkle store holding this row's history (stamped by the versioned trigger) */ + storeId?: string; + updatedAt?: string; } /** A filter to be used against `SiteTheme` object types. All fields are combined with a logical ‘and.’ */ export interface SiteThemeFilter { @@ -9894,6 +10592,15 @@ export interface SiteToManyPageFilter { /** Filters to entities where at least one related entity matches. */ some?: PageFilter; } +/** A filter to be used against many `Route` object types. All fields are combined with a logical ‘and.’ */ +export interface SiteToManyRouteFilter { + /** Filters to entities where every related entity matches. */ + every?: RouteFilter; + /** Filters to entities where no related entity matches. */ + none?: RouteFilter; + /** Filters to entities where at least one related entity matches. */ + some?: RouteFilter; +} /** A filter to be used against many `SiteAppLink` object types. All fields are combined with a logical ‘and.’ */ export interface SiteToManySiteAppLinkFilter { /** Filters to entities where every related entity matches. */ @@ -10004,6 +10711,19 @@ export interface SiteWebConfigPatch { spaFallback?: boolean; updatedAt?: string; } +export interface SitesInstallContentPresetInput { + clientMutationId?: string; + entityId?: string; + presetKind?: string; + presetSlug?: string; + siteId?: string; +} +export interface SitesInstallMantraInput { + clientMutationId?: string; + entityId?: string; + routePreset?: string; + siteId?: string; +} export interface SitesProvisionStaticSiteInput { apex?: string; clientMutationId?: string; @@ -10090,6 +10810,39 @@ export interface SpatialRelationPatch { tags?: string[]; updatedAt?: string; } +/** A filter to be used against `SqlAction` object types. All fields are combined with a logical ‘and.’ */ +export interface SqlActionFilter { + /** Filter by the object’s `actionId` field. */ + actionId?: UUIDFilter; + /** Filter by the object’s `actionName` field. */ + actionName?: StringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: SqlActionFilter[]; + /** Filter by the object’s `content` field. */ + content?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `deploy` field. */ + deploy?: StringFilter; + /** Filter by the object’s `deps` field. */ + deps?: StringListFilter; + /** Filter by the object’s `id` field. */ + id?: IntFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: SqlActionFilter; + /** Checks for any expressions in this list. */ + or?: SqlActionFilter[]; + /** Filter by the object’s `revert` field. */ + revert?: StringFilter; + /** Filter by the object’s `verify` field. */ + verify?: StringFilter; +} /** A filter to be used against `TableBehavior` object types. All fields are combined with a logical ‘and.’ */ export interface TableBehaviorFilter { /** Checks for all expressions in this list. */ @@ -10581,10 +11334,22 @@ export interface TriggerFilter { databaseId?: UUIDFilter; /** Filter by the object’s `event` field. */ event?: StringFilter; + /** Filter by the object’s `events` field. */ + events?: StringListFilter; + /** Filter by the object’s `forEachRow` field. */ + forEachRow?: BooleanFilter; + /** Filter by the object’s `function` relation. */ + function?: FunctionFilter; + /** A related `function` exists. */ + functionExists?: boolean; + /** Filter by the object’s `functionId` field. */ + functionId?: UUIDFilter; /** Filter by the object’s `functionName` field. */ functionName?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; /** Negates the expression. */ @@ -10599,8 +11364,12 @@ export interface TriggerFilter { tableId?: UUIDFilter; /** Filter by the object’s `tags` field. */ tags?: StringListFilter; + /** Filter by the object’s `timing` field. */ + timing?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `whenAst` field. */ + whenAst?: JSONFilter; } /** A filter to be used against `TriggerFunction` object types. All fields are combined with a logical ‘and.’ */ export interface TriggerFunctionFilter { @@ -10649,13 +11418,19 @@ export interface TriggerInput { createdAt?: string; databaseId?: string; event?: string; + events?: string[]; + forEachRow?: boolean; + functionId?: string; functionName?: string; id?: string; + kind?: string; name: string; smartTags?: unknown; tableId: string; tags?: string[]; + timing?: string; updatedAt?: string; + whenAst?: unknown; } /** Represents an update to a `Trigger`. Fields that are set will be updated. */ export interface TriggerPatch { @@ -10663,13 +11438,19 @@ export interface TriggerPatch { createdAt?: string; databaseId?: string; event?: string; + events?: string[]; + forEachRow?: boolean; + functionId?: string; functionName?: string; id?: string; + kind?: string; name?: string; smartTags?: unknown; tableId?: string; tags?: string[]; + timing?: string; updatedAt?: string; + whenAst?: unknown; } /** A filter to be used against `UniqueConstraintBehavior` object types. All fields are combined with a logical ‘and.’ */ export interface UniqueConstraintBehaviorFilter { @@ -10832,18 +11613,6 @@ export interface UpdateApiSettingInput { clientMutationId?: string; id: string; } -export interface UpdateAppComponentInput { - /** An object where the defined keys will be set on the `AppComponent` being updated. */ - appComponentPatch: AppComponentPatch; - clientMutationId?: string; - id: string; -} -export interface UpdateAppInput { - /** An object where the defined keys will be set on the `App` being updated. */ - appPatch: AppPatch; - clientMutationId?: string; - id: string; -} export interface UpdateCheckConstraintInput { /** An object where the defined keys will be set on the `CheckConstraint` being updated. */ checkConstraintPatch: CheckConstraintPatch; @@ -10994,11 +11763,11 @@ export interface UpdateHostnameBindingInput { hostnameBindingPatch: HostnameBindingPatch; id: string; } -export interface UpdateHttpRouteInput { +export interface UpdateIdentityProviderRegistryInput { clientMutationId?: string; - /** An object where the defined keys will be set on the `HttpRoute` being updated. */ - httpRoutePatch: HttpRoutePatch; - id: string; + /** An object where the defined keys will be set on the `IdentityProviderRegistry` being updated. */ + identityProviderRegistryPatch: IdentityProviderRegistryPatch; + slug: string; } export interface UpdateIndexInput { clientMutationId?: string; @@ -11140,6 +11909,12 @@ export interface UpdatePlatformSiteModuleInput { /** An object where the defined keys will be set on the `PlatformSiteModule` being updated. */ platformSiteModulePatch: PlatformSiteModulePatch; } +export interface UpdatePlatformSiteReleaseInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `PlatformSiteRelease` being updated. */ + platformSiteReleasePatch: PlatformSiteReleasePatch; +} export interface UpdatePlatformSiteThemeInput { clientMutationId?: string; id: string; @@ -11170,6 +11945,12 @@ export interface UpdatePubkeySettingInput { /** An object where the defined keys will be set on the `PubkeySetting` being updated. */ pubkeySettingPatch: PubkeySettingPatch; } +export interface UpdateRedirectInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `Redirect` being updated. */ + redirectPatch: RedirectPatch; +} export interface UpdateRlsSettingInput { clientMutationId?: string; id: string; @@ -11236,6 +12017,12 @@ export interface UpdateSiteModuleInput { /** An object where the defined keys will be set on the `SiteModule` being updated. */ siteModulePatch: SiteModulePatch; } +export interface UpdateSiteReleaseInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `SiteRelease` being updated. */ + siteReleasePatch: SiteReleasePatch; +} export interface UpdateSiteThemeInput { clientMutationId?: string; id: string; @@ -11847,17 +12634,10 @@ export interface ApiConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `AppComponent` values. */ -export interface AppComponentConnection { - edges: AppComponentEdge[]; - nodes: AppComponent[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `App` values. */ -export interface AppConnection { - edges: AppEdge[]; - nodes: App[]; +/** A connection to a list of `AstMigration` values. */ +export interface AstMigrationConnection { + edges: AstMigrationEdge[]; + nodes: AstMigration[]; pageInfo: PageInfo; totalCount: number; } @@ -12029,6 +12809,13 @@ export interface FunctionConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `GetSitePreviewsRecord` values. */ +export interface GetSitePreviewsConnection { + edges: GetSitePreviewsEdge[]; + nodes: GetSitePreviewsRecord[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `HostnameBinding` values. */ export interface HostnameBindingConnection { edges: HostnameBindingEdge[]; @@ -12036,10 +12823,10 @@ export interface HostnameBindingConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `HttpRoute` values. */ -export interface HttpRouteConnection { - edges: HttpRouteEdge[]; - nodes: HttpRoute[]; +/** A connection to a list of `IdentityProviderRegistry` values. */ +export interface IdentityProviderRegistryConnection { + edges: IdentityProviderRegistryEdge[]; + nodes: IdentityProviderRegistry[]; pageInfo: PageInfo; totalCount: number; } @@ -12148,6 +12935,13 @@ export interface PlatformEmailSiteIdentityConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `PlatformGetSitePreviewsRecord` values. */ +export interface PlatformGetSitePreviewsConnection { + edges: PlatformGetSitePreviewsEdge[]; + nodes: PlatformGetSitePreviewsRecord[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `PlatformManagedDomain` values. */ export interface PlatformManagedDomainConnection { edges: PlatformManagedDomainEdge[]; @@ -12197,6 +12991,13 @@ export interface PlatformSiteModuleConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `PlatformSiteRelease` values. */ +export interface PlatformSiteReleaseConnection { + edges: PlatformSiteReleaseEdge[]; + nodes: PlatformSiteRelease[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `PlatformSiteTheme` values. */ export interface PlatformSiteThemeConnection { edges: PlatformSiteThemeEdge[]; @@ -12239,14 +13040,12 @@ export interface PubkeySettingConnection { pageInfo: PageInfo; totalCount: number; } -export interface ResolveHttpRouteRecord { - databaseId?: string | null; - domainId?: string | null; - matchedPath?: string | null; - method?: string | null; - routeId?: string | null; - targetId?: string | null; - targetKind?: string | null; +/** A connection to a list of `Redirect` values. */ +export interface RedirectConnection { + edges: RedirectEdge[]; + nodes: Redirect[]; + pageInfo: PageInfo; + totalCount: number; } export interface ResolveRouteRecord { domainId?: string | null; @@ -12337,6 +13136,13 @@ export interface SiteModuleConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `SiteRelease` values. */ +export interface SiteReleaseConnection { + edges: SiteReleaseEdge[]; + nodes: SiteRelease[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `SiteTheme` values. */ export interface SiteThemeConnection { edges: SiteThemeEdge[]; @@ -12365,6 +13171,13 @@ export interface SpatialRelationConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `SqlAction` values. */ +export interface SqlActionConnection { + edges: SqlActionEdge[]; + nodes: SqlAction[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `TableBehavior` values. */ export interface TableBehaviorConnection { edges: TableBehaviorEdge[]; @@ -12456,19 +13269,16 @@ export interface WebauthnSettingConnection { pageInfo: PageInfo; totalCount: number; } -export interface ApplyRlsPayload { - clientMutationId?: string | null; -} -export interface AppsInstallAppPayload { - appEdge?: AppEdge | null; +export interface AcceptDatabaseTransferPayload { clientMutationId?: string | null; - result?: App | null; + result?: boolean | null; } -export interface AppsUninstallAppPayload { +export interface ApplyRlsPayload { clientMutationId?: string | null; } -export interface AppsUpgradeAppPayload { +export interface CancelDatabaseTransferPayload { clientMutationId?: string | null; + result?: boolean | null; } export interface CreateApiPayload { /** The `Api` that was created by this mutation. */ @@ -12488,18 +13298,6 @@ export interface CreateApiSettingPayload { apiSettingEdge?: ApiSettingEdge | null; clientMutationId?: string | null; } -export interface CreateAppPayload { - /** The `App` that was created by this mutation. */ - app?: App | null; - appEdge?: AppEdge | null; - clientMutationId?: string | null; -} -export interface CreateAppComponentPayload { - /** The `AppComponent` that was created by this mutation. */ - appComponent?: AppComponent | null; - appComponentEdge?: AppComponentEdge | null; - clientMutationId?: string | null; -} export interface CreateCheckConstraintPayload { /** The `CheckConstraint` that was created by this mutation. */ checkConstraint?: CheckConstraint | null; @@ -12650,11 +13448,11 @@ export interface CreateHostnameBindingPayload { hostnameBinding?: HostnameBinding | null; hostnameBindingEdge?: HostnameBindingEdge | null; } -export interface CreateHttpRoutePayload { +export interface CreateIdentityProviderRegistryPayload { clientMutationId?: string | null; - /** The `HttpRoute` that was created by this mutation. */ - httpRoute?: HttpRoute | null; - httpRouteEdge?: HttpRouteEdge | null; + /** The `IdentityProviderRegistry` that was created by this mutation. */ + identityProviderRegistry?: IdentityProviderRegistry | null; + identityProviderRegistryEdge?: IdentityProviderRegistryEdge | null; } export interface CreateIndexPayload { clientMutationId?: string | null; @@ -12794,6 +13592,12 @@ export interface CreatePlatformSiteModulePayload { platformSiteModule?: PlatformSiteModule | null; platformSiteModuleEdge?: PlatformSiteModuleEdge | null; } +export interface CreatePlatformSiteReleasePayload { + clientMutationId?: string | null; + /** The `PlatformSiteRelease` that was created by this mutation. */ + platformSiteRelease?: PlatformSiteRelease | null; + platformSiteReleaseEdge?: PlatformSiteReleaseEdge | null; +} export interface CreatePlatformSiteThemePayload { clientMutationId?: string | null; /** The `PlatformSiteTheme` that was created by this mutation. */ @@ -12824,6 +13628,12 @@ export interface CreatePubkeySettingPayload { pubkeySetting?: PubkeySetting | null; pubkeySettingEdge?: PubkeySettingEdge | null; } +export interface CreateRedirectPayload { + clientMutationId?: string | null; + /** The `Redirect` that was created by this mutation. */ + redirect?: Redirect | null; + redirectEdge?: RedirectEdge | null; +} export interface CreateRlsSettingPayload { clientMutationId?: string | null; /** The `RlsSetting` that was created by this mutation. */ @@ -12890,6 +13700,12 @@ export interface CreateSiteModulePayload { siteModule?: SiteModule | null; siteModuleEdge?: SiteModuleEdge | null; } +export interface CreateSiteReleasePayload { + clientMutationId?: string | null; + /** The `SiteRelease` that was created by this mutation. */ + siteRelease?: SiteRelease | null; + siteReleaseEdge?: SiteReleaseEdge | null; +} export interface CreateSiteThemePayload { clientMutationId?: string | null; /** The `SiteTheme` that was created by this mutation. */ @@ -13004,18 +13820,6 @@ export interface DeleteApiSettingPayload { apiSettingEdge?: ApiSettingEdge | null; clientMutationId?: string | null; } -export interface DeleteAppPayload { - /** The `App` that was deleted by this mutation. */ - app?: App | null; - appEdge?: AppEdge | null; - clientMutationId?: string | null; -} -export interface DeleteAppComponentPayload { - /** The `AppComponent` that was deleted by this mutation. */ - appComponent?: AppComponent | null; - appComponentEdge?: AppComponentEdge | null; - clientMutationId?: string | null; -} export interface DeleteCheckConstraintPayload { /** The `CheckConstraint` that was deleted by this mutation. */ checkConstraint?: CheckConstraint | null; @@ -13166,11 +13970,11 @@ export interface DeleteHostnameBindingPayload { hostnameBinding?: HostnameBinding | null; hostnameBindingEdge?: HostnameBindingEdge | null; } -export interface DeleteHttpRoutePayload { +export interface DeleteIdentityProviderRegistryPayload { clientMutationId?: string | null; - /** The `HttpRoute` that was deleted by this mutation. */ - httpRoute?: HttpRoute | null; - httpRouteEdge?: HttpRouteEdge | null; + /** The `IdentityProviderRegistry` that was deleted by this mutation. */ + identityProviderRegistry?: IdentityProviderRegistry | null; + identityProviderRegistryEdge?: IdentityProviderRegistryEdge | null; } export interface DeleteIndexPayload { clientMutationId?: string | null; @@ -13310,6 +14114,12 @@ export interface DeletePlatformSiteModulePayload { platformSiteModule?: PlatformSiteModule | null; platformSiteModuleEdge?: PlatformSiteModuleEdge | null; } +export interface DeletePlatformSiteReleasePayload { + clientMutationId?: string | null; + /** The `PlatformSiteRelease` that was deleted by this mutation. */ + platformSiteRelease?: PlatformSiteRelease | null; + platformSiteReleaseEdge?: PlatformSiteReleaseEdge | null; +} export interface DeletePlatformSiteThemePayload { clientMutationId?: string | null; /** The `PlatformSiteTheme` that was deleted by this mutation. */ @@ -13340,6 +14150,12 @@ export interface DeletePubkeySettingPayload { pubkeySetting?: PubkeySetting | null; pubkeySettingEdge?: PubkeySettingEdge | null; } +export interface DeleteRedirectPayload { + clientMutationId?: string | null; + /** The `Redirect` that was deleted by this mutation. */ + redirect?: Redirect | null; + redirectEdge?: RedirectEdge | null; +} export interface DeleteRlsSettingPayload { clientMutationId?: string | null; /** The `RlsSetting` that was deleted by this mutation. */ @@ -13406,6 +14222,15 @@ export interface DeleteSiteModulePayload { siteModule?: SiteModule | null; siteModuleEdge?: SiteModuleEdge | null; } +export interface DeleteSitePreviewPayload { + clientMutationId?: string | null; +} +export interface DeleteSiteReleasePayload { + clientMutationId?: string | null; + /** The `SiteRelease` that was deleted by this mutation. */ + siteRelease?: SiteRelease | null; + siteReleaseEdge?: SiteReleaseEdge | null; +} export interface DeleteSiteThemePayload { clientMutationId?: string | null; /** The `SiteTheme` that was deleted by this mutation. */ @@ -13507,28 +14332,72 @@ export interface DomainsAssignSubdomainPayload { domainEdge?: DomainEdge | null; result?: Domain | null; } +export interface MintSitePreviewTokenPayload { + clientMutationId?: string | null; + result?: MintSitePreviewTokenRecord[] | null; +} +export interface PagesInstallPagesPayload { + clientMutationId?: string | null; + result?: unknown | null; +} +export interface PlatformDeleteSitePreviewPayload { + clientMutationId?: string | null; +} export interface PlatformDomainsAssignSubdomainPayload { clientMutationId?: string | null; platformDomainEdge?: PlatformDomainEdge | null; result?: PlatformDomain | null; } +export interface PlatformMintSitePreviewTokenPayload { + clientMutationId?: string | null; + result?: PlatformMintSitePreviewTokenRecord[] | null; +} +export interface PlatformPagesInstallPagesPayload { + clientMutationId?: string | null; + result?: unknown | null; +} +export interface PlatformProvisionSitePreviewPayload { + clientMutationId?: string | null; + result?: PlatformRoute | null; +} +export interface PlatformSetSitePreviewPayload { + clientMutationId?: string | null; + result?: string | null; +} +export interface PlatformSiteMetadataInstallRobotsPayload { + clientMutationId?: string | null; + result?: unknown | null; +} +export interface PlatformSitesInstallContentPresetPayload { + clientMutationId?: string | null; + result?: unknown | null; +} +export interface PlatformSitesInstallMantraPayload { + clientMutationId?: string | null; + platformSiteEdge?: PlatformSiteEdge | null; + result?: PlatformSite | null; +} export interface PlatformSitesProvisionStaticSitePayload { clientMutationId?: string | null; result?: PlatformRoute | 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; + /** The logical bucket row that was queued for reconciliation. */ + bucketId: string; + bucketKey: string; + /** The reconciler job enqueued to provision this bucket. */ + jobId: string; + /** The physical bucket name already recorded, or null when reconciliation has not completed. */ + physicalName?: string | null; +} +export interface ProvisionSitePreviewPayload { + clientMutationId?: string | null; + result?: Route | null; + routeEdge?: RouteEdge | null; +} +export interface RejectDatabaseTransferPayload { + clientMutationId?: string | null; + result?: boolean | null; } export interface RequestDatabasePayload { clientMutationId?: string | null; @@ -13537,9 +14406,27 @@ export interface RequestDatabasePayload { export interface SetFieldOrderPayload { clientMutationId?: string | null; } +export interface SetSitePreviewPayload { + clientMutationId?: string | null; + result?: string | null; +} +export interface SiteMetadataInstallRobotsPayload { + clientMutationId?: string | null; + result?: unknown | null; +} +export interface SitesInstallContentPresetPayload { + clientMutationId?: string | null; + result?: unknown | null; +} +export interface SitesInstallMantraPayload { + clientMutationId?: string | null; + result?: Site | null; + siteEdge?: SiteEdge | null; +} export interface SitesProvisionStaticSitePayload { clientMutationId?: string | null; - result?: PlatformRoute | null; + result?: Route | null; + routeEdge?: RouteEdge | null; } export interface UpdateApiPayload { /** The `Api` that was updated by this mutation. */ @@ -13559,18 +14446,6 @@ export interface UpdateApiSettingPayload { apiSettingEdge?: ApiSettingEdge | null; clientMutationId?: string | null; } -export interface UpdateAppPayload { - /** The `App` that was updated by this mutation. */ - app?: App | null; - appEdge?: AppEdge | null; - clientMutationId?: string | null; -} -export interface UpdateAppComponentPayload { - /** The `AppComponent` that was updated by this mutation. */ - appComponent?: AppComponent | null; - appComponentEdge?: AppComponentEdge | null; - clientMutationId?: string | null; -} export interface UpdateCheckConstraintPayload { /** The `CheckConstraint` that was updated by this mutation. */ checkConstraint?: CheckConstraint | null; @@ -13721,11 +14596,11 @@ export interface UpdateHostnameBindingPayload { hostnameBinding?: HostnameBinding | null; hostnameBindingEdge?: HostnameBindingEdge | null; } -export interface UpdateHttpRoutePayload { +export interface UpdateIdentityProviderRegistryPayload { clientMutationId?: string | null; - /** The `HttpRoute` that was updated by this mutation. */ - httpRoute?: HttpRoute | null; - httpRouteEdge?: HttpRouteEdge | null; + /** The `IdentityProviderRegistry` that was updated by this mutation. */ + identityProviderRegistry?: IdentityProviderRegistry | null; + identityProviderRegistryEdge?: IdentityProviderRegistryEdge | null; } export interface UpdateIndexPayload { clientMutationId?: string | null; @@ -13865,6 +14740,12 @@ export interface UpdatePlatformSiteModulePayload { platformSiteModule?: PlatformSiteModule | null; platformSiteModuleEdge?: PlatformSiteModuleEdge | null; } +export interface UpdatePlatformSiteReleasePayload { + clientMutationId?: string | null; + /** The `PlatformSiteRelease` that was updated by this mutation. */ + platformSiteRelease?: PlatformSiteRelease | null; + platformSiteReleaseEdge?: PlatformSiteReleaseEdge | null; +} export interface UpdatePlatformSiteThemePayload { clientMutationId?: string | null; /** The `PlatformSiteTheme` that was updated by this mutation. */ @@ -13895,6 +14776,12 @@ export interface UpdatePubkeySettingPayload { pubkeySetting?: PubkeySetting | null; pubkeySettingEdge?: PubkeySettingEdge | null; } +export interface UpdateRedirectPayload { + clientMutationId?: string | null; + /** The `Redirect` that was updated by this mutation. */ + redirect?: Redirect | null; + redirectEdge?: RedirectEdge | null; +} export interface UpdateRlsSettingPayload { clientMutationId?: string | null; /** The `RlsSetting` that was updated by this mutation. */ @@ -13961,6 +14848,12 @@ export interface UpdateSiteModulePayload { siteModule?: SiteModule | null; siteModuleEdge?: SiteModuleEdge | null; } +export interface UpdateSiteReleasePayload { + clientMutationId?: string | null; + /** The `SiteRelease` that was updated by this mutation. */ + siteRelease?: SiteRelease | null; + siteReleaseEdge?: SiteReleaseEdge | null; +} export interface UpdateSiteThemePayload { clientMutationId?: string | null; /** The `SiteTheme` that was updated by this mutation. */ @@ -14113,17 +15006,11 @@ export interface ApiEdge { /** The `Api` at the end of the edge. */ node?: Api | null; } -/** A `AppComponent` edge in the connection. */ -export interface AppComponentEdge { - cursor?: string | null; - /** The `AppComponent` at the end of the edge. */ - node?: AppComponent | null; -} -/** A `App` edge in the connection. */ -export interface AppEdge { +/** A `AstMigration` edge in the connection. */ +export interface AstMigrationEdge { cursor?: string | null; - /** The `App` at the end of the edge. */ - node?: App | null; + /** The `AstMigration` at the end of the edge. */ + node?: AstMigration | null; } /** A `CheckConstraint` edge in the connection. */ export interface CheckConstraintEdge { @@ -14269,17 +15156,23 @@ export interface FunctionEdge { /** The `Function` at the end of the edge. */ node?: Function | null; } +/** A `GetSitePreviewsRecord` edge in the connection. */ +export interface GetSitePreviewsEdge { + cursor?: string | null; + /** The `GetSitePreviewsRecord` at the end of the edge. */ + node?: GetSitePreviewsRecord | null; +} /** A `HostnameBinding` edge in the connection. */ export interface HostnameBindingEdge { cursor?: string | null; /** The `HostnameBinding` at the end of the edge. */ node?: HostnameBinding | null; } -/** A `HttpRoute` edge in the connection. */ -export interface HttpRouteEdge { +/** A `IdentityProviderRegistry` edge in the connection. */ +export interface IdentityProviderRegistryEdge { cursor?: string | null; - /** The `HttpRoute` at the end of the edge. */ - node?: HttpRoute | null; + /** The `IdentityProviderRegistry` at the end of the edge. */ + node?: IdentityProviderRegistry | null; } /** A `Index` edge in the connection. */ export interface IndexEdge { @@ -14371,6 +15264,12 @@ export interface PlatformEmailSiteIdentityEdge { /** The `PlatformEmailSiteIdentity` at the end of the edge. */ node?: PlatformEmailSiteIdentity | null; } +/** A `PlatformGetSitePreviewsRecord` edge in the connection. */ +export interface PlatformGetSitePreviewsEdge { + cursor?: string | null; + /** The `PlatformGetSitePreviewsRecord` at the end of the edge. */ + node?: PlatformGetSitePreviewsRecord | null; +} /** A `PlatformManagedDomain` edge in the connection. */ export interface PlatformManagedDomainEdge { cursor?: string | null; @@ -14413,6 +15312,12 @@ export interface PlatformSiteModuleEdge { /** The `PlatformSiteModule` at the end of the edge. */ node?: PlatformSiteModule | null; } +/** A `PlatformSiteRelease` edge in the connection. */ +export interface PlatformSiteReleaseEdge { + cursor?: string | null; + /** The `PlatformSiteRelease` at the end of the edge. */ + node?: PlatformSiteRelease | null; +} /** A `PlatformSiteTheme` edge in the connection. */ export interface PlatformSiteThemeEdge { cursor?: string | null; @@ -14449,6 +15354,12 @@ export interface PubkeySettingEdge { /** The `PubkeySetting` at the end of the edge. */ node?: PubkeySetting | null; } +/** A `Redirect` edge in the connection. */ +export interface RedirectEdge { + cursor?: string | null; + /** The `Redirect` at the end of the edge. */ + node?: Redirect | null; +} /** A `RlsSetting` edge in the connection. */ export interface RlsSettingEdge { cursor?: string | null; @@ -14509,6 +15420,12 @@ export interface SiteModuleEdge { /** The `SiteModule` at the end of the edge. */ node?: SiteModule | null; } +/** A `SiteRelease` edge in the connection. */ +export interface SiteReleaseEdge { + cursor?: string | null; + /** The `SiteRelease` at the end of the edge. */ + node?: SiteRelease | null; +} /** A `SiteTheme` edge in the connection. */ export interface SiteThemeEdge { cursor?: string | null; @@ -14533,6 +15450,12 @@ export interface SpatialRelationEdge { /** The `SpatialRelation` at the end of the edge. */ node?: SpatialRelation | null; } +/** A `SqlAction` edge in the connection. */ +export interface SqlActionEdge { + cursor?: string | null; + /** The `SqlAction` at the end of the edge. */ + node?: SqlAction | null; +} /** A `TableBehavior` edge in the connection. */ export interface TableBehaviorEdge { cursor?: string | null; @@ -14611,8 +15534,18 @@ export interface WebauthnSettingEdge { /** The `WebauthnSetting` at the end of the edge. */ node?: WebauthnSetting | null; } +export interface MintSitePreviewTokenRecord { + expiresAt?: string | null; + token?: string | null; +} +export interface PlatformMintSitePreviewTokenRecord { + expiresAt?: string | null; + token?: string | null; +} /** Routes binding a domain hostname and path to a typed catalog target */ export interface PlatformRoute { + /** Whether this route answers callers with no identity. Requires the target function to declare anonymous_callable; default false = an identity is required */ + anonymous: boolean; /** Route metadata; target configuration is read live from the typed catalog, never copied here */ config?: unknown | null; createdAt?: string | null; @@ -14625,17 +15558,23 @@ export interface PlatformRoute { method?: string | null; /** Path prefix this route matches; must begin with / and carry no trailing slash */ path: string; + /** The site preview this route serves; NULL serves the site's published release */ + previewRef?: string | null; /** Higher priority wins between otherwise-equal matches */ priority: number; - /** Api catalog row this route targets; must be owner-matched or visible cross-scope */ + /** Site whose surface this route serves; the serving lane renders as this site. NULL when the route serves no site */ + servingSiteId?: string | null; + /** Api surface this route targets; must be this scope's own api */ targetApiId?: string | null; - /** Bucket catalog row this route targets; must be a public bucket that is owner-matched or visible cross-scope */ + /** Bucket this route targets; must be a public bucket in this scope's own storage plane */ targetBucketId?: string | null; - /** Function catalog row this route targets; must be owner-matched or visible cross-scope */ + /** Function this route targets; must be this scope's own function */ targetFunctionId?: string | null; - /** Resource catalog row (a Service resource) this route targets; must be owner-matched or visible cross-scope */ + /** Redirect this route targets; the edge answers with a redirect status instead of proxying a backend */ + targetRedirectId?: string | null; + /** Resource (a Service resource) this route targets; must be this scope's own resource */ targetServiceId?: string | null; - /** Site catalog row this route targets; must be owner-matched or visible cross-scope */ + /** Site surface this route targets; must be this scope's own site */ targetSiteId?: string | null; updatedAt?: string | null; } @@ -14643,11 +15582,13 @@ export interface PlatformRoute { 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 */ async: boolean; + /** The user whose identity is copied into the new database. Defaults to owner_id when NULL; set explicitly when owner_id is an organization */ + bootstrapActorId?: string | null; /** Error message from the most recent failed bootstrap attempt */ bootstrapError?: string | null; /** Status of the deferred owner bootstrap job: not_requested, pending, completed, or failed */ bootstrapStatus: string; - /** When true, copies the owner user and password hash from source database to the newly provisioned database */ + /** When true, copies the bootstrap user and password hash from source database to the newly provisioned database */ bootstrapUser: boolean; completedAt?: string | null; createdAt: string; @@ -14665,7 +15606,7 @@ export interface DatabaseProvisionModule { modules: unknown; /** Additional configuration options for provisioning */ options: unknown; - /** UUID of the user who owns this database */ + /** UUID of the entity that owns this database: a user, or an organization for an org-owned request */ ownerId: string; /** The database the owner user is copied from during bootstrap (captured from JWT context at provision time) */ sourceDatabaseId?: string | null; @@ -14787,10 +15728,18 @@ export interface MetaSearch { } /** Storage metadata for a table */ export interface MetaStorage { + /** GraphQL type name of the plane's buckets table */ + bucketsType: string; + /** Computed download-URL field on the files type; null on the buckets side */ + downloadUrlField?: string | null; + /** GraphQL type name of the plane's files table */ + filesType: string; /** Whether this table is a storage buckets table */ isBucketsTable: boolean; /** Whether this table is a storage files table */ isFilesTable: boolean; + /** The plane's GraphQL upload surface */ + upload: MetaStorageUpload; } /** Information about a unique constraint */ export interface MetaUniqueConstraint { @@ -14873,6 +15822,27 @@ export interface MetaSearchConfig { /** JSON-encoded per-adapter score weights */ weights?: string | null; } +/** The GraphQL upload surface of a storage plane, derived from the registry facts the presigned-url plugin emits from */ +export interface MetaStorageUpload { + /** Per-file input type inside the bulk input */ + bulkFileInputType: string; + /** Per-file payload type inside the bulk payload */ + bulkFilePayloadType: string; + /** Input type of the bulk upload mutation */ + bulkInputType: string; + /** Root mutation field for bulk upload */ + bulkMutation: string; + /** Payload type of the bulk upload mutation */ + bulkPayloadType: string; + /** Input type of the single upload mutation */ + inputType: string; + /** Root mutation field for single-file upload (e.g. uploadAppFile) */ + mutation: string; + /** Payload type of the single upload mutation */ + payloadType: string; + /** Whether the upload input requires ownerId (entity-keyed plane) */ + requiresOwnerId: boolean; +} /** 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. */ export interface MetaScalarEncoding { /** For 'vector': declared length, else null. */ diff --git a/sdk/constructive-react/src/api/types.ts b/sdk/constructive-react/src/api/types.ts index 1b3f7a477f..8546ed7695 100644 --- a/sdk/constructive-react/src/api/types.ts +++ b/sdk/constructive-react/src/api/types.ts @@ -34,6 +34,7 @@ export interface ApiSetting { enableConnectionFilter: boolean | null; enableDirectUploads: boolean | null; enableI18N: boolean | null; + enableIntrospection: boolean | null; enableLlm: boolean | null; enableLtree: boolean | null; enableManyToMany: boolean | null; @@ -42,34 +43,34 @@ export interface ApiSetting { enableRealtime: boolean | null; enableSearch: boolean | null; id: string | null; + idleInTransactionTimeoutMs: string | null; + lockTimeoutMs: string | null; + maxConcurrentRequests: number | null; + maxPageSize: number | null; + maxQueryCost: number | null; + maxQueryDepth: number | null; + maxQueueWaitMs: number | null; + maxRequestBytes: number | null; options: unknown | null; + rateLimitBurst: number | null; + rateLimitRpm: number | null; statementTimeoutMs: string | null; updatedAt: string | null; } -export interface AppComponent { - appId: string | null; - componentApiId: string | null; - componentDomainId: string | null; - componentInstallationId: string | null; - componentSiteId: string | null; - componentType: string | null; - config: unknown | null; - createdAt: string | null; - databaseId: string | null; - id: string | null; - updatedAt: string | null; -} -export interface App { - config: unknown | null; +export interface AstMigration { + actionId: string | null; + actionName: string | null; + actorId: string | null; createdAt: string | null; databaseId: string | null; - description: string | null; - id: string | null; - isPublished: boolean | null; + deploy: unknown | null; + deploys: string | null; + id: number | null; name: string | null; - status: string | null; - title: string | null; - updatedAt: string | null; + payload: unknown | null; + requires: string[] | null; + revert: unknown | null; + verify: unknown | null; } export interface CheckConstraint { category: ObjectCategory | null; @@ -122,10 +123,12 @@ export interface DatabaseSetting { createdAt: string | null; databaseId: string | null; enableAggregates: boolean | null; + enableBilling: boolean | null; enableBulk: boolean | null; enableConnectionFilter: boolean | null; enableDirectUploads: boolean | null; enableI18N: boolean | null; + enableIntrospection: boolean | null; enableLlm: boolean | null; enableLtree: boolean | null; enableManyToMany: boolean | null; @@ -134,8 +137,18 @@ export interface DatabaseSetting { enableRealtime: boolean | null; enableSearch: boolean | null; id: string | null; + idleInTransactionTimeoutMs: string | null; labels: unknown | null; + lockTimeoutMs: string | null; + maxConcurrentRequests: number | null; + maxPageSize: number | null; + maxQueryCost: number | null; + maxQueryDepth: number | null; + maxQueueWaitMs: number | null; + maxRequestBytes: number | null; options: unknown | null; + rateLimitBurst: number | null; + rateLimitRpm: number | null; statementTimeoutMs: string | null; updatedAt: string | null; } @@ -168,6 +181,7 @@ export interface Derive { createdAt: string | null; databaseId: string | null; id: string | null; + includeGrants: boolean | null; includeMutations: boolean | null; kind: string | null; policyPrefix: string | null; @@ -178,6 +192,7 @@ export interface Derive { export interface Domain { config: unknown | null; createdAt: string | null; + createdByPrincipal: string | null; databaseId: string | null; hostname: string | null; id: string | null; @@ -189,6 +204,7 @@ export interface Domain { tlsSecretName: string | null; tlsStatus: string | null; updatedAt: string | null; + updatedByPrincipal: string | null; verificationStatus: string | null; verifiedAt: string | null; } @@ -413,10 +429,27 @@ export interface FullTextSearch { weights: string[] | null; } export interface Function { + apiExposed: boolean | null; + arguments: unknown | null; + bodyAst: unknown | null; + category: ObjectCategory | null; + data: unknown | null; databaseId: string | null; + functionType: string | null; id: string | null; + isStrict: boolean | null; + kind: string | null; name: string | null; + returns: unknown | null; schemaId: string | null; + securityInvoker: boolean | null; + smartTags: unknown | null; + tags: string[] | null; + volatility: string | null; +} +export interface GetSitePreviewsRecord { + commitId: string | null; + name: string | null; } export interface HostnameBinding { domainId: string | null; @@ -430,20 +463,15 @@ export interface HostnameBinding { updatedAt: string | null; verificationStatus: string | null; } -export interface HttpRoute { - createdAt: string | null; - createdBy: string | null; - databaseId: string | null; - domainId: string | null; - id: string | null; - isActive: boolean | null; - method: string | null; - path: string | null; - priority: number | null; - targetId: string | null; - targetKind: string | null; - updatedAt: string | null; - updatedBy: string | null; +export interface IdentityProviderRegistry { + authorizationUrl: string | null; + displayName: string | null; + issuerUrl: string | null; + kind: string | null; + scopes: string[] | null; + slug: string | null; + tokenUrl: string | null; + userinfoUrl: string | null; } export interface Index { accessMethod: string | null; @@ -456,6 +484,7 @@ export interface Index { indexParams: unknown | null; isUnique: boolean | null; name: string | null; + nullsNotDistinct: boolean | null; opClasses: string[] | null; options: unknown | null; smartTags: unknown | null; @@ -469,6 +498,7 @@ export interface ManagedDomain { annotations: unknown | null; certStatus: string | null; createdAt: string | null; + createdByPrincipal: string | null; databaseId: string | null; domain: string | null; id: string | null; @@ -476,6 +506,7 @@ export interface ManagedDomain { tlsReadyAt: string | null; tlsStatus: string | null; updatedAt: string | null; + updatedByPrincipal: string | null; verificationStatus: string | null; verifiedAt: string | null; } @@ -494,6 +525,7 @@ export interface Page { createdAt: string | null; databaseId: string | null; id: string | null; + seededFrom: unknown | null; siteId: string | null; slug: string | null; storeId: string | null; @@ -540,6 +572,7 @@ export interface PlatformApiSetting { enableConnectionFilter: boolean | null; enableDirectUploads: boolean | null; enableI18N: boolean | null; + enableIntrospection: boolean | null; enableLlm: boolean | null; enableLtree: boolean | null; enableManyToMany: boolean | null; @@ -548,7 +581,17 @@ export interface PlatformApiSetting { enableRealtime: boolean | null; enableSearch: boolean | null; id: string | null; + idleInTransactionTimeoutMs: string | null; + lockTimeoutMs: string | null; + maxConcurrentRequests: number | null; + maxPageSize: number | null; + maxQueryCost: number | null; + maxQueryDepth: number | null; + maxQueueWaitMs: number | null; + maxRequestBytes: number | null; options: unknown | null; + rateLimitBurst: number | null; + rateLimitRpm: number | null; statementTimeoutMs: string | null; updatedAt: string | null; } @@ -562,6 +605,7 @@ export interface PlatformCorsSetting { export interface PlatformDomain { config: unknown | null; createdAt: string | null; + createdByPrincipal: string | null; hostname: string | null; id: string | null; isPublished: boolean | null; @@ -572,6 +616,7 @@ export interface PlatformDomain { tlsSecretName: string | null; tlsStatus: string | null; updatedAt: string | null; + updatedByPrincipal: string | null; verificationStatus: string | null; verifiedAt: string | null; } @@ -642,17 +687,23 @@ export interface PlatformEmailSiteIdentity { siteId: string | null; updatedAt: string | null; } +export interface PlatformGetSitePreviewsRecord { + commitId: string | null; + name: string | null; +} export interface PlatformManagedDomain { allowPublicUsage: boolean | null; annotations: unknown | null; certStatus: string | null; createdAt: string | null; + createdByPrincipal: string | null; domain: string | null; id: string | null; isWildcard: boolean | null; tlsReadyAt: string | null; tlsStatus: string | null; updatedAt: string | null; + updatedByPrincipal: string | null; verificationStatus: string | null; verifiedAt: string | null; } @@ -661,21 +712,18 @@ export interface PlatformPage { content: unknown | null; createdAt: string | null; id: string | null; + seededFrom: unknown | null; siteId: string | null; slug: string | null; storeId: string | null; updatedAt: string | null; } export interface PlatformSiteAppLink { - appIdentifier: string | null; + appStoreIdentityId: string | null; createdAt: string | null; id: string | null; pathComponents: string[] | null; - platform: string | null; - sha256CertFingerprints: string[] | null; siteId: string | null; - storeUrl: string | null; - teamId: string | null; updatedAt: string | null; webcredentials: boolean | null; } @@ -683,6 +731,7 @@ export interface PlatformSite { activeCommitId: string | null; bucketId: string | null; createdAt: string | null; + createdByPrincipal: string | null; description: string | null; id: string | null; installationId: string | null; @@ -692,6 +741,7 @@ export interface PlatformSite { resourceId: string | null; title: string | null; updatedAt: string | null; + updatedByPrincipal: string | null; } export interface PlatformSiteDeepLink { appPath: string | null; @@ -699,6 +749,7 @@ export interface PlatformSiteDeepLink { fallbackUrl: string | null; id: string | null; metadata: unknown | null; + pageId: string | null; siteId: string | null; slug: string | null; updatedAt: string | null; @@ -723,6 +774,7 @@ export interface PlatformSiteMetadatum { logo: ConstructiveInternalTypeImage | null; ogImage: ConstructiveInternalTypeImage | null; robots: string | null; + robotsSeededFrom: unknown | null; siteId: string | null; storeId: string | null; title: string | null; @@ -738,6 +790,15 @@ export interface PlatformSiteModule { siteId: string | null; updatedAt: string | null; } +export interface PlatformSiteRelease { + commitId: string | null; + createdAt: string | null; + id: string | null; + manifest: unknown | null; + siteId: string | null; + storeId: string | null; + updatedAt: string | null; +} export interface PlatformSiteTheme { commitId: string | null; createdAt: string | null; @@ -761,6 +822,7 @@ export interface PlatformSiteWebConfig { } export interface Policy { category: ObjectCategory | null; + columnRefs: string[] | null; createdAt: string | null; data: unknown | null; databaseId: string | null; @@ -808,6 +870,18 @@ export interface PubkeySetting { updatedAt: string | null; userField: string | null; } +export interface Redirect { + createdAt: string | null; + databaseId: string | null; + id: string | null; + name: string | null; + preservePath: boolean | null; + preserveQuery: boolean | null; + statusCode: number | null; + toHost: string | null; + toPath: string | null; + updatedAt: string | null; +} export interface RlsSetting { authenticateFunctionId: string | null; authenticateSchemaId: string | null; @@ -829,14 +903,17 @@ export interface RouteBinding { method: string | null; path: string | null; priority: number | null; + servingSiteId: string | null; targetApiId: string | null; targetBucketId: string | null; targetFunctionId: string | null; + targetRedirectId: string | null; targetServiceId: string | null; targetSiteId: string | null; updatedAt: string | null; } export interface Route { + anonymous: boolean | null; config: unknown | null; createdAt: string | null; databaseId: string | null; @@ -845,10 +922,13 @@ export interface Route { isActive: boolean | null; method: string | null; path: string | null; + previewRef: string | null; priority: number | null; + servingSiteId: string | null; targetApiId: string | null; targetBucketId: string | null; targetFunctionId: string | null; + targetRedirectId: string | null; targetServiceId: string | null; targetSiteId: string | null; updatedAt: string | null; @@ -877,16 +957,12 @@ export interface SchemaGrant { updatedAt: string | null; } export interface SiteAppLink { - appIdentifier: string | null; + appStoreIdentityId: string | null; createdAt: string | null; databaseId: string | null; id: string | null; pathComponents: string[] | null; - platform: string | null; - sha256CertFingerprints: string[] | null; siteId: string | null; - storeUrl: string | null; - teamId: string | null; updatedAt: string | null; webcredentials: boolean | null; } @@ -894,6 +970,7 @@ export interface Site { activeCommitId: string | null; bucketId: string | null; createdAt: string | null; + createdByPrincipal: string | null; databaseId: string | null; description: string | null; id: string | null; @@ -904,6 +981,7 @@ export interface Site { resourceId: string | null; title: string | null; updatedAt: string | null; + updatedByPrincipal: string | null; } export interface SiteDeepLink { appPath: string | null; @@ -912,6 +990,7 @@ export interface SiteDeepLink { fallbackUrl: string | null; id: string | null; metadata: unknown | null; + pageId: string | null; siteId: string | null; slug: string | null; updatedAt: string | null; @@ -938,6 +1017,7 @@ export interface SiteMetadatum { logo: ConstructiveInternalTypeImage | null; ogImage: ConstructiveInternalTypeImage | null; robots: string | null; + robotsSeededFrom: unknown | null; siteId: string | null; storeId: string | null; title: string | null; @@ -954,6 +1034,16 @@ export interface SiteModule { siteId: string | null; updatedAt: string | null; } +export interface SiteRelease { + commitId: string | null; + createdAt: string | null; + databaseId: string | null; + id: string | null; + manifest: unknown | null; + siteId: string | null; + storeId: string | null; + updatedAt: string | null; +} export interface SiteTheme { commitId: string | null; createdAt: string | null; @@ -992,6 +1082,21 @@ export interface SpatialRelation { tags: string[] | null; updatedAt: string | null; } +export interface SqlAction { + actionId: string | null; + actionName: string | null; + actorId: string | null; + content: string | null; + createdAt: string | null; + databaseId: string | null; + deploy: string | null; + deps: string[] | null; + id: number | null; + name: string | null; + payload: unknown | null; + revert: string | null; + verify: string | null; +} export interface TableBehavior { createdAt: string | null; databaseId: string | null; @@ -1043,13 +1148,19 @@ export interface Trigger { createdAt: string | null; databaseId: string | null; event: string | null; + events: string[] | null; + forEachRow: boolean | null; + functionId: string | null; functionName: string | null; id: string | null; + kind: string | null; name: string | null; smartTags: unknown | null; tableId: string | null; tags: string[] | null; + timing: string | null; updatedAt: string | null; + whenAst: unknown | null; } export interface TriggerFunction { code: string | null; diff --git a/sdk/constructive-react/src/auth/README.md b/sdk/constructive-react/src/auth/README.md index cb212e33d8..077a4ad8e2 100644 --- a/sdk/constructive-react/src/auth/README.md +++ b/sdk/constructive-react/src/auth/README.md @@ -8,9 +8,9 @@ ## Overview -- **Tables:** 13 -- **Custom queries:** 5 -- **Custom mutations:** 32 +- **Tables:** 15 +- **Custom queries:** 6 +- **Custom mutations:** 49 **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 a788130205..6235e3af8c 100644 --- a/sdk/constructive-react/src/auth/hooks/README.md +++ b/sdk/constructive-react/src/auth/hooks/README.md @@ -89,6 +89,16 @@ function App() { | `useCreateUserMutation` | Mutation | Create a user | | `useUpdateUserMutation` | Mutation | Update a user | | `useDeleteUserMutation` | Mutation | Delete a user | +| `useUserSettingsQuery` | Query | Per-user settings and preferences. Extended by other modules (i18n, notifications, MFA) via metaschema.create_field(). | +| `useUserSettingQuery` | Query | Per-user settings and preferences. Extended by other modules (i18n, notifications, MFA) via metaschema.create_field(). | +| `useCreateUserSettingMutation` | Mutation | Per-user settings and preferences. Extended by other modules (i18n, notifications, MFA) via metaschema.create_field(). | +| `useUpdateUserSettingMutation` | Mutation | Per-user settings and preferences. Extended by other modules (i18n, notifications, MFA) via metaschema.create_field(). | +| `useDeleteUserSettingMutation` | Mutation | Per-user settings and preferences. Extended by other modules (i18n, notifications, MFA) via metaschema.create_field(). | +| `useUserSettingsSecuritiesQuery` | Query | Per-user security settings for MFA configuration (separate from user_settings preferences) | +| `useUserSettingsSecurityQuery` | Query | Per-user security settings for MFA configuration (separate from user_settings preferences) | +| `useCreateUserSettingsSecurityMutation` | Mutation | Per-user security settings for MFA configuration (separate from user_settings preferences) | +| `useUpdateUserSettingsSecurityMutation` | Mutation | Per-user security settings for MFA configuration (separate from user_settings preferences) | +| `useDeleteUserSettingsSecurityMutation` | Mutation | Per-user security settings for MFA configuration (separate from user_settings preferences) | | `useWebauthnCredentialsQuery` | Query | WebAuthn/passkey credentials owned by users. One row per registered authenticator (security key, device biometric, synced passkey). Schema mirrors SimpleWebAuthn's canonical Passkey object. | | `useWebauthnCredentialQuery` | Query | WebAuthn/passkey credentials owned by users. One row per registered authenticator (security key, device biometric, synced passkey). Schema mirrors SimpleWebAuthn's canonical Passkey object. | | `useCreateWebauthnCredentialMutation` | Mutation | WebAuthn/passkey credentials owned by users. One row per registered authenticator (security key, device biometric, synced passkey). Schema mirrors SimpleWebAuthn's canonical Passkey object. | @@ -98,23 +108,39 @@ function App() { | `useCurrentUserQuery` | Query | currentUser | | `useCurrentUserAgentQuery` | Query | currentUserAgent | | `useCurrentUserIdQuery` | Query | currentUserId | +| `useGetMfaStatusQuery` | Query | getMfaStatus | | `useRequireStepUpQuery` | Query | requireStepUp | +| `useApproveDeviceMutation` | Mutation | approveDevice | | `useCheckPasswordMutation` | Mutation | checkPassword | +| `useCompleteMfaChallengeMutation` | Mutation | completeMfaChallenge | | `useConfirmDeleteAccountMutation` | Mutation | confirmDeleteAccount | +| `useConfirmTotpSetupMutation` | Mutation | confirmTotpSetup | | `useCreateApiKeyMutation` | Mutation | createApiKey | +| `useCreateChildPrincipalMutation` | Mutation | createChildPrincipal | | `useCreateOrgApiKeyMutation` | Mutation | createOrgApiKey | | `useCreateOrgPrincipalMutation` | Mutation | createOrgPrincipal | +| `useCreatePrincipalFromPresetMutation` | Mutation | createPrincipalFromPreset | | `useDeleteOrgPrincipalMutation` | Mutation | deleteOrgPrincipal | | `useDeletePrincipalMutation` | Mutation | deletePrincipal | +| `useDisableEmailMfaMutation` | Mutation | disableEmailMfa | +| `useDisableSmsMfaMutation` | Mutation | disableSmsMfa | +| `useDisableTotpMutation` | Mutation | disableTotp | | `useDisconnectAccountMutation` | Mutation | disconnectAccount | +| `useEnableEmailMfaMutation` | Mutation | enableEmailMfa | +| `useEnableSmsMfaMutation` | Mutation | enableSmsMfa | +| `useEnableTotpMutation` | Mutation | enableTotp | | `useExtendTokenExpiresMutation` | Mutation | extendTokenExpires | | `useForgotPasswordMutation` | Mutation | forgotPassword | +| `useGenerateBackupCodesMutation` | Mutation | generateBackupCodes | | `useLinkIdentityMutation` | Mutation | linkIdentity | -| `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. | +| `useMintAccessTokenMutation` | Mutation | mintAccessToken | +| `useProvisionBucketMutation` | Mutation | Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. | | `useProvisionNewUserMutation` | Mutation | provisionNewUser | +| `useRefreshAccessTokenMutation` | Mutation | refreshAccessToken | | `useRequestCrossOriginTokenMutation` | Mutation | requestCrossOriginToken | | `useResetPasswordMutation` | Mutation | resetPassword | | `useRevokeApiKeyMutation` | Mutation | revokeApiKey | @@ -123,6 +149,8 @@ and lifecycle settings. | | `useSendAccountDeletionEmailMutation` | Mutation | sendAccountDeletionEmail | | `useSendVerificationEmailMutation` | Mutation | sendVerificationEmail | | `useSetPasswordMutation` | Mutation | setPassword | +| `useSetPrincipalEntitiesMutation` | Mutation | setPrincipalEntities | +| `useSetPrincipalScopeMutation` | Mutation | setPrincipalScope | | `useSignInMutation` | Mutation | signIn | | `useSignInCrossOriginMutation` | Mutation | signInCrossOrigin | | `useSignInMagicLinkMutation` | Mutation | signInMagicLink | @@ -131,6 +159,7 @@ and lifecycle settings. | | `useSignUpMutation` | Mutation | signUp | | `useSignUpMagicLinkMutation` | Mutation | signUpMagicLink | | `useSignUpSmsMutation` | Mutation | signUpSms | +| `useUpdatePrincipalMutation` | Mutation | updatePrincipal | | `useVerifyEmailMutation` | Mutation | verifyEmail | | `useVerifyPasswordMutation` | Mutation | verifyPassword | | `useVerifyTotpMutation` | Mutation | verifyTotp | @@ -142,20 +171,20 @@ and lifecycle settings. | ```typescript // List all auditLogAuths const { data, isLoading } = useAuditLogAuthsQuery({ - selection: { fields: { actorId: true, createdAt: true, event: true, id: true, ipAddress: true, origin: true, success: true, userAgent: true } }, + selection: { fields: { actorId: true, createdAt: true, details: true, event: true, id: true, ipAddress: true, origin: true, success: true, userAgent: true } }, }); // Get one auditLogAuth const { data: item } = useAuditLogAuthQuery({ id: '', - selection: { fields: { actorId: true, createdAt: true, event: true, id: true, ipAddress: true, origin: true, success: true, userAgent: true } }, + selection: { fields: { actorId: true, createdAt: true, details: true, event: true, id: true, ipAddress: true, origin: true, success: true, userAgent: true } }, }); // Create a auditLogAuth const { mutate: create } = useCreateAuditLogAuthMutation({ selection: { fields: { id: true } }, }); -create({ actorId: '', event: '', ipAddress: '', origin: '', success: '', userAgent: '' }); +create({ actorId: '', details: '', event: '', ipAddress: '', origin: '', success: '', userAgent: '' }); ``` ### CryptoAddress @@ -262,20 +291,20 @@ create({ cc: '', isPrimary: '', isVerified: '', name: ```typescript // List all principals const { data, isLoading } = usePrincipalsQuery({ - selection: { fields: { bypassStepUp: true, createdAt: true, id: true, isReadOnly: true, name: true, ownerId: true, updatedAt: true, useAdminOwner: true, userId: true } }, + selection: { fields: { bypassStepUp: true, createdAt: true, createdBySessionId: true, depth: true, expiresAt: true, id: true, isReadOnly: true, name: true, ownerId: true, parentPrincipalId: true, updatedAt: true, useAdminOwner: true, userId: true } }, }); // Get one principal const { data: item } = usePrincipalQuery({ principalId: '', - selection: { fields: { bypassStepUp: true, createdAt: true, id: true, isReadOnly: true, name: true, ownerId: true, updatedAt: true, useAdminOwner: true, userId: true } }, + selection: { fields: { bypassStepUp: true, createdAt: true, createdBySessionId: true, depth: true, expiresAt: true, id: true, isReadOnly: true, name: true, ownerId: true, parentPrincipalId: true, updatedAt: true, useAdminOwner: true, userId: true } }, }); // Create a principal const { mutate: create } = useCreatePrincipalMutation({ selection: { fields: { principalId: true } }, }); -create({ bypassStepUp: '', id: '', isReadOnly: '', name: '', ownerId: '', useAdminOwner: '', userId: '' }); +create({ bypassStepUp: '', createdBySessionId: '', depth: '', expiresAt: '', id: '', isReadOnly: '', name: '', ownerId: '', parentPrincipalId: '', useAdminOwner: '', userId: '' }); ``` ### PrincipalEntity @@ -383,6 +412,48 @@ const { mutate: create } = useCreateUserMutation({ create({ displayName: '', displayNameTrgmSimilarity: '', profilePicture: '', searchScore: '', searchTsv: '', searchTsvRank: '', type: '', username: '' }); ``` +### UserSetting + +```typescript +// List all userSettings +const { data, isLoading } = useUserSettingsQuery({ + selection: { fields: { createdAt: true, id: true, ownerId: true, updatedAt: true } }, +}); + +// Get one userSetting +const { data: item } = useUserSettingQuery({ + id: '', + selection: { fields: { createdAt: true, id: true, ownerId: true, updatedAt: true } }, +}); + +// Create a userSetting +const { mutate: create } = useCreateUserSettingMutation({ + selection: { fields: { id: true } }, +}); +create({ ownerId: '' }); +``` + +### UserSettingsSecurity + +```typescript +// List all userSettingsSecurities +const { data, isLoading } = useUserSettingsSecuritiesQuery({ + selection: { fields: { backupCodesCount: true, createdAt: true, emailMfaEnabled: true, id: true, mfaEnrolledAt: true, mfaLastUsedAt: true, ownerId: true, smsMfaEnabled: true, totpEnabled: true, updatedAt: true } }, +}); + +// Get one userSettingsSecurity +const { data: item } = useUserSettingsSecurityQuery({ + id: '', + selection: { fields: { backupCodesCount: true, createdAt: true, emailMfaEnabled: true, id: true, mfaEnrolledAt: true, mfaLastUsedAt: true, ownerId: true, smsMfaEnabled: true, totpEnabled: true, updatedAt: true } }, +}); + +// Create a userSettingsSecurity +const { mutate: create } = useCreateUserSettingsSecurityMutation({ + selection: { fields: { id: true } }, +}); +create({ backupCodesCount: '', emailMfaEnabled: '', mfaEnrolledAt: '', mfaLastUsedAt: '', ownerId: '', smsMfaEnabled: '', totpEnabled: '' }); +``` + ### WebauthnCredential ```typescript @@ -434,6 +505,13 @@ currentUserId - **Type:** query - **Arguments:** none +### `useGetMfaStatusQuery` + +getMfaStatus + +- **Type:** query +- **Arguments:** none + ### `useRequireStepUpQuery` requireStepUp @@ -445,6 +523,17 @@ requireStepUp |----------|------| | `stepUpType` | String | +### `useApproveDeviceMutation` + +approveDevice + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | ApproveDeviceInput (required) | + ### `useCheckPasswordMutation` checkPassword @@ -456,6 +545,17 @@ checkPassword |----------|------| | `input` | CheckPasswordInput (required) | +### `useCompleteMfaChallengeMutation` + +completeMfaChallenge + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | CompleteMfaChallengeInput (required) | + ### `useConfirmDeleteAccountMutation` confirmDeleteAccount @@ -467,6 +567,17 @@ confirmDeleteAccount |----------|------| | `input` | ConfirmDeleteAccountInput (required) | +### `useConfirmTotpSetupMutation` + +confirmTotpSetup + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | ConfirmTotpSetupInput (required) | + ### `useCreateApiKeyMutation` createApiKey @@ -478,6 +589,17 @@ createApiKey |----------|------| | `input` | CreateApiKeyInput (required) | +### `useCreateChildPrincipalMutation` + +createChildPrincipal + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | CreateChildPrincipalInput (required) | + ### `useCreateOrgApiKeyMutation` createOrgApiKey @@ -500,6 +622,17 @@ createOrgPrincipal |----------|------| | `input` | CreateOrgPrincipalInput (required) | +### `useCreatePrincipalFromPresetMutation` + +createPrincipalFromPreset + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | CreatePrincipalFromPresetInput (required) | + ### `useDeleteOrgPrincipalMutation` deleteOrgPrincipal @@ -522,6 +655,39 @@ deletePrincipal |----------|------| | `input` | DeletePrincipalInput (required) | +### `useDisableEmailMfaMutation` + +disableEmailMfa + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | DisableEmailMfaInput (required) | + +### `useDisableSmsMfaMutation` + +disableSmsMfa + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | DisableSmsMfaInput (required) | + +### `useDisableTotpMutation` + +disableTotp + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | DisableTotpInput (required) | + ### `useDisconnectAccountMutation` disconnectAccount @@ -533,6 +699,39 @@ disconnectAccount |----------|------| | `input` | DisconnectAccountInput (required) | +### `useEnableEmailMfaMutation` + +enableEmailMfa + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | EnableEmailMfaInput (required) | + +### `useEnableSmsMfaMutation` + +enableSmsMfa + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | EnableSmsMfaInput (required) | + +### `useEnableTotpMutation` + +enableTotp + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | EnableTotpInput (required) | + ### `useExtendTokenExpiresMutation` extendTokenExpires @@ -555,6 +754,17 @@ forgotPassword |----------|------| | `input` | ForgotPasswordInput (required) | +### `useGenerateBackupCodesMutation` + +generateBackupCodes + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | GenerateBackupCodesInput (required) | + ### `useLinkIdentityMutation` linkIdentity @@ -566,12 +776,24 @@ linkIdentity |----------|------| | `input` | LinkIdentityInput (required) | +### `useMintAccessTokenMutation` + +mintAccessToken + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | MintAccessTokenInput (required) | + ### `useProvisionBucketMutation` -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. +Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. - **Type:** mutation - **Arguments:** @@ -591,6 +813,17 @@ provisionNewUser |----------|------| | `input` | ProvisionNewUserInput (required) | +### `useRefreshAccessTokenMutation` + +refreshAccessToken + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | RefreshAccessTokenInput (required) | + ### `useRequestCrossOriginTokenMutation` requestCrossOriginToken @@ -679,6 +912,28 @@ setPassword |----------|------| | `input` | SetPasswordInput (required) | +### `useSetPrincipalEntitiesMutation` + +setPrincipalEntities + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SetPrincipalEntitiesInput (required) | + +### `useSetPrincipalScopeMutation` + +setPrincipalScope + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SetPrincipalScopeInput (required) | + ### `useSignInMutation` signIn @@ -767,6 +1022,17 @@ signUpSms |----------|------| | `input` | SignUpSmsInput (required) | +### `useUpdatePrincipalMutation` + +updatePrincipal + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | UpdatePrincipalInput (required) | + ### `useVerifyEmailMutation` verifyEmail diff --git a/sdk/constructive-react/src/auth/hooks/index.ts b/sdk/constructive-react/src/auth/hooks/index.ts index 7d01e7b11d..4fd77d226f 100644 --- a/sdk/constructive-react/src/auth/hooks/index.ts +++ b/sdk/constructive-react/src/auth/hooks/index.ts @@ -2,7 +2,7 @@ * GraphQL SDK * @generated by @constructive-io/graphql-codegen * - * Tables: AuditLogAuth, CryptoAddress, Email, IdentityProvider, OrgApiKeyList, PhoneNumber, Principal, PrincipalEntity, PrincipalScopeOverride, RoleType, UserConnectedAccount, User, WebauthnCredential + * Tables: AuditLogAuth, CryptoAddress, Email, IdentityProvider, OrgApiKeyList, PhoneNumber, Principal, PrincipalEntity, PrincipalScopeOverride, RoleType, UserConnectedAccount, User, UserSetting, UserSettingsSecurity, WebauthnCredential * * Usage: * diff --git a/sdk/constructive-react/src/auth/hooks/invalidation.ts b/sdk/constructive-react/src/auth/hooks/invalidation.ts index dfe4aad49c..5c1307b78f 100644 --- a/sdk/constructive-react/src/auth/hooks/invalidation.ts +++ b/sdk/constructive-react/src/auth/hooks/invalidation.ts @@ -27,6 +27,8 @@ import { roleTypeKeys, userConnectedAccountKeys, userKeys, + userSettingKeys, + userSettingsSecurityKeys, webauthnCredentialKeys, } from './query-keys'; /** @@ -244,6 +246,40 @@ export const invalidate = { queryKey: userKeys.detail(id), }), }, + /** Invalidate userSetting queries */ userSetting: { + /** Invalidate all userSetting queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: userSettingKeys.all, + }), + /** Invalidate userSetting list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: userSettingKeys.lists(), + }), + /** Invalidate a specific userSetting */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: userSettingKeys.detail(id), + }), + }, + /** Invalidate userSettingsSecurity queries */ userSettingsSecurity: { + /** Invalidate all userSettingsSecurity queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: userSettingsSecurityKeys.all, + }), + /** Invalidate userSettingsSecurity list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: userSettingsSecurityKeys.lists(), + }), + /** Invalidate a specific userSettingsSecurity */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: userSettingsSecurityKeys.detail(id), + }), + }, /** Invalidate webauthnCredential queries */ webauthnCredential: { /** Invalidate all webauthnCredential queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -358,6 +394,22 @@ export const remove = { queryKey: userKeys.detail(id), }); }, + /** Remove userSetting from cache */ userSetting: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: userSettingKeys.detail(id), + }); + }, + /** Remove userSettingsSecurity from cache */ userSettingsSecurity: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: userSettingsSecurityKeys.detail(id), + }); + }, /** Remove webauthnCredential from cache */ webauthnCredential: ( queryClient: QueryClient, id: string | number diff --git a/sdk/constructive-react/src/auth/hooks/mutation-keys.ts b/sdk/constructive-react/src/auth/hooks/mutation-keys.ts index 168402ac9e..353acb2eb3 100644 --- a/sdk/constructive-react/src/auth/hooks/mutation-keys.ts +++ b/sdk/constructive-react/src/auth/hooks/mutation-keys.ts @@ -125,6 +125,24 @@ export const userMutationKeys = { /** Delete user mutation key */ delete: (id: string | number) => ['mutation', 'user', 'delete', id] as const, } as const; +export const userSettingMutationKeys = { + /** All userSetting mutation keys */ all: ['mutation', 'usersetting'] as const, + /** Create userSetting mutation key */ create: () => + ['mutation', 'usersetting', 'create'] as const, + /** Update userSetting mutation key */ update: (id: string | number) => + ['mutation', 'usersetting', 'update', id] as const, + /** Delete userSetting mutation key */ delete: (id: string | number) => + ['mutation', 'usersetting', 'delete', id] as const, +} as const; +export const userSettingsSecurityMutationKeys = { + /** All userSettingsSecurity mutation keys */ all: ['mutation', 'usersettingssecurity'] as const, + /** Create userSettingsSecurity mutation key */ create: () => + ['mutation', 'usersettingssecurity', 'create'] as const, + /** Update userSettingsSecurity mutation key */ update: (id: string | number) => + ['mutation', 'usersettingssecurity', 'update', id] as const, + /** Delete userSettingsSecurity mutation key */ delete: (id: string | number) => + ['mutation', 'usersettingssecurity', 'delete', id] as const, +} as const; export const webauthnCredentialMutationKeys = { /** All webauthnCredential mutation keys */ all: ['mutation', 'webauthncredential'] as const, /** Create webauthnCredential mutation key */ create: () => @@ -140,18 +158,34 @@ export const webauthnCredentialMutationKeys = { // ============================================================================ export const customMutationKeys = { + /** Mutation key for approveDevice */ approveDevice: (identifier?: string) => + identifier + ? (['mutation', 'approveDevice', identifier] as const) + : (['mutation', 'approveDevice'] as const), /** Mutation key for checkPassword */ checkPassword: (identifier?: string) => identifier ? (['mutation', 'checkPassword', identifier] as const) : (['mutation', 'checkPassword'] as const), + /** Mutation key for completeMfaChallenge */ completeMfaChallenge: (identifier?: string) => + identifier + ? (['mutation', 'completeMfaChallenge', identifier] as const) + : (['mutation', 'completeMfaChallenge'] as const), /** Mutation key for confirmDeleteAccount */ confirmDeleteAccount: (identifier?: string) => identifier ? (['mutation', 'confirmDeleteAccount', identifier] as const) : (['mutation', 'confirmDeleteAccount'] as const), + /** Mutation key for confirmTotpSetup */ confirmTotpSetup: (identifier?: string) => + identifier + ? (['mutation', 'confirmTotpSetup', identifier] as const) + : (['mutation', 'confirmTotpSetup'] as const), /** Mutation key for createApiKey */ createApiKey: (identifier?: string) => identifier ? (['mutation', 'createApiKey', identifier] as const) : (['mutation', 'createApiKey'] as const), + /** Mutation key for createChildPrincipal */ createChildPrincipal: (identifier?: string) => + identifier + ? (['mutation', 'createChildPrincipal', identifier] as const) + : (['mutation', 'createChildPrincipal'] as const), /** Mutation key for createOrgApiKey */ createOrgApiKey: (identifier?: string) => identifier ? (['mutation', 'createOrgApiKey', identifier] as const) @@ -160,6 +194,12 @@ export const customMutationKeys = { identifier ? (['mutation', 'createOrgPrincipal', identifier] as const) : (['mutation', 'createOrgPrincipal'] as const), + /** Mutation key for createPrincipalFromPreset */ createPrincipalFromPreset: ( + identifier?: string + ) => + identifier + ? (['mutation', 'createPrincipalFromPreset', identifier] as const) + : (['mutation', 'createPrincipalFromPreset'] as const), /** Mutation key for deleteOrgPrincipal */ deleteOrgPrincipal: (identifier?: string) => identifier ? (['mutation', 'deleteOrgPrincipal', identifier] as const) @@ -168,10 +208,34 @@ export const customMutationKeys = { identifier ? (['mutation', 'deletePrincipal', identifier] as const) : (['mutation', 'deletePrincipal'] as const), + /** Mutation key for disableEmailMfa */ disableEmailMfa: (identifier?: string) => + identifier + ? (['mutation', 'disableEmailMfa', identifier] as const) + : (['mutation', 'disableEmailMfa'] as const), + /** Mutation key for disableSmsMfa */ disableSmsMfa: (identifier?: string) => + identifier + ? (['mutation', 'disableSmsMfa', identifier] as const) + : (['mutation', 'disableSmsMfa'] as const), + /** Mutation key for disableTotp */ disableTotp: (identifier?: string) => + identifier + ? (['mutation', 'disableTotp', identifier] as const) + : (['mutation', 'disableTotp'] as const), /** Mutation key for disconnectAccount */ disconnectAccount: (identifier?: string) => identifier ? (['mutation', 'disconnectAccount', identifier] as const) : (['mutation', 'disconnectAccount'] as const), + /** Mutation key for enableEmailMfa */ enableEmailMfa: (identifier?: string) => + identifier + ? (['mutation', 'enableEmailMfa', identifier] as const) + : (['mutation', 'enableEmailMfa'] as const), + /** Mutation key for enableSmsMfa */ enableSmsMfa: (identifier?: string) => + identifier + ? (['mutation', 'enableSmsMfa', identifier] as const) + : (['mutation', 'enableSmsMfa'] as const), + /** Mutation key for enableTotp */ enableTotp: (identifier?: string) => + identifier + ? (['mutation', 'enableTotp', identifier] as const) + : (['mutation', 'enableTotp'] as const), /** Mutation key for extendTokenExpires */ extendTokenExpires: (identifier?: string) => identifier ? (['mutation', 'extendTokenExpires', identifier] as const) @@ -180,10 +244,18 @@ export const customMutationKeys = { identifier ? (['mutation', 'forgotPassword', identifier] as const) : (['mutation', 'forgotPassword'] as const), + /** Mutation key for generateBackupCodes */ generateBackupCodes: (identifier?: string) => + identifier + ? (['mutation', 'generateBackupCodes', identifier] as const) + : (['mutation', 'generateBackupCodes'] as const), /** Mutation key for linkIdentity */ linkIdentity: (identifier?: string) => identifier ? (['mutation', 'linkIdentity', identifier] as const) : (['mutation', 'linkIdentity'] as const), + /** Mutation key for mintAccessToken */ mintAccessToken: (identifier?: string) => + identifier + ? (['mutation', 'mintAccessToken', identifier] as const) + : (['mutation', 'mintAccessToken'] as const), /** Mutation key for provisionBucket */ provisionBucket: (identifier?: string) => identifier ? (['mutation', 'provisionBucket', identifier] as const) @@ -192,6 +264,10 @@ export const customMutationKeys = { identifier ? (['mutation', 'provisionNewUser', identifier] as const) : (['mutation', 'provisionNewUser'] as const), + /** Mutation key for refreshAccessToken */ refreshAccessToken: (identifier?: string) => + identifier + ? (['mutation', 'refreshAccessToken', identifier] as const) + : (['mutation', 'refreshAccessToken'] as const), /** Mutation key for requestCrossOriginToken */ requestCrossOriginToken: (identifier?: string) => identifier ? (['mutation', 'requestCrossOriginToken', identifier] as const) @@ -226,6 +302,14 @@ export const customMutationKeys = { identifier ? (['mutation', 'setPassword', identifier] as const) : (['mutation', 'setPassword'] as const), + /** Mutation key for setPrincipalEntities */ setPrincipalEntities: (identifier?: string) => + identifier + ? (['mutation', 'setPrincipalEntities', identifier] as const) + : (['mutation', 'setPrincipalEntities'] as const), + /** Mutation key for setPrincipalScope */ setPrincipalScope: (identifier?: string) => + identifier + ? (['mutation', 'setPrincipalScope', identifier] as const) + : (['mutation', 'setPrincipalScope'] as const), /** Mutation key for signIn */ signIn: (identifier?: string) => identifier ? (['mutation', 'signIn', identifier] as const) : (['mutation', 'signIn'] as const), /** Mutation key for signInCrossOrigin */ signInCrossOrigin: (identifier?: string) => @@ -254,6 +338,10 @@ export const customMutationKeys = { identifier ? (['mutation', 'signUpSms', identifier] as const) : (['mutation', 'signUpSms'] as const), + /** Mutation key for updatePrincipal */ updatePrincipal: (identifier?: string) => + identifier + ? (['mutation', 'updatePrincipal', identifier] as const) + : (['mutation', 'updatePrincipal'] as const), /** Mutation key for verifyEmail */ verifyEmail: (identifier?: string) => identifier ? (['mutation', 'verifyEmail', identifier] as const) @@ -302,6 +390,8 @@ export const mutationKeys = { roleType: roleTypeMutationKeys, userConnectedAccount: userConnectedAccountMutationKeys, user: userMutationKeys, + userSetting: userSettingMutationKeys, + userSettingsSecurity: userSettingsSecurityMutationKeys, webauthnCredential: webauthnCredentialMutationKeys, custom: customMutationKeys, } as const; diff --git a/sdk/constructive-react/src/auth/hooks/mutations/index.ts b/sdk/constructive-react/src/auth/hooks/mutations/index.ts index b82c9b4728..48e8910cd4 100644 --- a/sdk/constructive-react/src/auth/hooks/mutations/index.ts +++ b/sdk/constructive-react/src/auth/hooks/mutations/index.ts @@ -19,8 +19,6 @@ export * from './useUpdatePhoneNumberMutation'; export * from './useDeletePhoneNumberMutation'; export * from './useCreatePrincipalMutation'; export * from './useCreatePrincipalEntityMutation'; -export * from './useUpdatePrincipalEntityMutation'; -export * from './useDeletePrincipalEntityMutation'; export * from './useCreatePrincipalScopeOverrideMutation'; export * from './useCreateRoleTypeMutation'; export * from './useUpdateRoleTypeMutation'; @@ -29,22 +27,42 @@ export * from './useCreateUserConnectedAccountMutation'; export * from './useCreateUserMutation'; export * from './useUpdateUserMutation'; export * from './useDeleteUserMutation'; +export * from './useCreateUserSettingMutation'; +export * from './useUpdateUserSettingMutation'; +export * from './useDeleteUserSettingMutation'; +export * from './useCreateUserSettingsSecurityMutation'; +export * from './useUpdateUserSettingsSecurityMutation'; +export * from './useDeleteUserSettingsSecurityMutation'; export * from './useCreateWebauthnCredentialMutation'; export * from './useUpdateWebauthnCredentialMutation'; export * from './useDeleteWebauthnCredentialMutation'; +export * from './useApproveDeviceMutation'; export * from './useCheckPasswordMutation'; +export * from './useCompleteMfaChallengeMutation'; export * from './useConfirmDeleteAccountMutation'; +export * from './useConfirmTotpSetupMutation'; export * from './useCreateApiKeyMutation'; +export * from './useCreateChildPrincipalMutation'; export * from './useCreateOrgApiKeyMutation'; export * from './useCreateOrgPrincipalMutation'; +export * from './useCreatePrincipalFromPresetMutation'; export * from './useDeleteOrgPrincipalMutation'; export * from './useDeletePrincipalMutation'; +export * from './useDisableEmailMfaMutation'; +export * from './useDisableSmsMfaMutation'; +export * from './useDisableTotpMutation'; export * from './useDisconnectAccountMutation'; +export * from './useEnableEmailMfaMutation'; +export * from './useEnableSmsMfaMutation'; +export * from './useEnableTotpMutation'; export * from './useExtendTokenExpiresMutation'; export * from './useForgotPasswordMutation'; +export * from './useGenerateBackupCodesMutation'; export * from './useLinkIdentityMutation'; +export * from './useMintAccessTokenMutation'; export * from './useProvisionBucketMutation'; export * from './useProvisionNewUserMutation'; +export * from './useRefreshAccessTokenMutation'; export * from './useRequestCrossOriginTokenMutation'; export * from './useResetPasswordMutation'; export * from './useRevokeApiKeyMutation'; @@ -53,6 +71,8 @@ export * from './useRevokeSessionMutation'; export * from './useSendAccountDeletionEmailMutation'; export * from './useSendVerificationEmailMutation'; export * from './useSetPasswordMutation'; +export * from './useSetPrincipalEntitiesMutation'; +export * from './useSetPrincipalScopeMutation'; export * from './useSignInMutation'; export * from './useSignInCrossOriginMutation'; export * from './useSignInMagicLinkMutation'; @@ -61,6 +81,7 @@ export * from './useSignOutMutation'; export * from './useSignUpMutation'; export * from './useSignUpMagicLinkMutation'; export * from './useSignUpSmsMutation'; +export * from './useUpdatePrincipalMutation'; export * from './useVerifyEmailMutation'; export * from './useVerifyPasswordMutation'; export * from './useVerifyTotpMutation'; diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useApproveDeviceMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useApproveDeviceMutation.ts new file mode 100644 index 0000000000..04ba611e03 --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/mutations/useApproveDeviceMutation.ts @@ -0,0 +1,55 @@ +/** + * Custom mutation hook for approveDevice + * @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 { ApproveDeviceVariables } from '../../orm/mutation'; +import type { ApproveDevicePayloadSelect, ApproveDevicePayload } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { ApproveDeviceVariables } from '../../orm/mutation'; +export type { ApproveDevicePayloadSelect } from '../../orm/input-types'; +export function useApproveDeviceMutation( + params: { + selection: { + fields: S & ApproveDevicePayloadSelect; + } & HookStrictSelect, ApproveDevicePayloadSelect>; + } & Omit< + UseMutationOptions< + { + approveDevice: InferSelectResult | null; + }, + Error, + ApproveDeviceVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + approveDevice: InferSelectResult | null; + }, + Error, + ApproveDeviceVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.approveDevice(), + mutationFn: (variables: ApproveDeviceVariables) => + getClient() + .mutation.approveDevice(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useCompleteMfaChallengeMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useCompleteMfaChallengeMutation.ts new file mode 100644 index 0000000000..5e09691303 --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/mutations/useCompleteMfaChallengeMutation.ts @@ -0,0 +1,58 @@ +/** + * Custom mutation hook for completeMfaChallenge + * @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 { CompleteMfaChallengeVariables } from '../../orm/mutation'; +import type { + CompleteMfaChallengePayloadSelect, + CompleteMfaChallengePayload, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { CompleteMfaChallengeVariables } from '../../orm/mutation'; +export type { CompleteMfaChallengePayloadSelect } from '../../orm/input-types'; +export function useCompleteMfaChallengeMutation( + params: { + selection: { + fields: S & CompleteMfaChallengePayloadSelect; + } & HookStrictSelect, CompleteMfaChallengePayloadSelect>; + } & Omit< + UseMutationOptions< + { + completeMfaChallenge: InferSelectResult | null; + }, + Error, + CompleteMfaChallengeVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + completeMfaChallenge: InferSelectResult | null; + }, + Error, + CompleteMfaChallengeVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.completeMfaChallenge(), + mutationFn: (variables: CompleteMfaChallengeVariables) => + getClient() + .mutation.completeMfaChallenge(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useConfirmTotpSetupMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useConfirmTotpSetupMutation.ts new file mode 100644 index 0000000000..b3ad0482d9 --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/mutations/useConfirmTotpSetupMutation.ts @@ -0,0 +1,55 @@ +/** + * Custom mutation hook for confirmTotpSetup + * @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 { ConfirmTotpSetupVariables } from '../../orm/mutation'; +import type { ConfirmTotpSetupPayloadSelect, ConfirmTotpSetupPayload } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { ConfirmTotpSetupVariables } from '../../orm/mutation'; +export type { ConfirmTotpSetupPayloadSelect } from '../../orm/input-types'; +export function useConfirmTotpSetupMutation( + params: { + selection: { + fields: S & ConfirmTotpSetupPayloadSelect; + } & HookStrictSelect, ConfirmTotpSetupPayloadSelect>; + } & Omit< + UseMutationOptions< + { + confirmTotpSetup: InferSelectResult | null; + }, + Error, + ConfirmTotpSetupVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + confirmTotpSetup: InferSelectResult | null; + }, + Error, + ConfirmTotpSetupVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.confirmTotpSetup(), + mutationFn: (variables: ConfirmTotpSetupVariables) => + getClient() + .mutation.confirmTotpSetup(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useCreateChildPrincipalMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useCreateChildPrincipalMutation.ts new file mode 100644 index 0000000000..104f6287ae --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/mutations/useCreateChildPrincipalMutation.ts @@ -0,0 +1,58 @@ +/** + * Custom mutation hook for createChildPrincipal + * @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 { CreateChildPrincipalVariables } from '../../orm/mutation'; +import type { + CreateChildPrincipalPayloadSelect, + CreateChildPrincipalPayload, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { CreateChildPrincipalVariables } from '../../orm/mutation'; +export type { CreateChildPrincipalPayloadSelect } from '../../orm/input-types'; +export function useCreateChildPrincipalMutation( + params: { + selection: { + fields: S & CreateChildPrincipalPayloadSelect; + } & HookStrictSelect, CreateChildPrincipalPayloadSelect>; + } & Omit< + UseMutationOptions< + { + createChildPrincipal: InferSelectResult | null; + }, + Error, + CreateChildPrincipalVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + createChildPrincipal: InferSelectResult | null; + }, + Error, + CreateChildPrincipalVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.createChildPrincipal(), + mutationFn: (variables: CreateChildPrincipalVariables) => + getClient() + .mutation.createChildPrincipal(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useCreatePrincipalFromPresetMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useCreatePrincipalFromPresetMutation.ts new file mode 100644 index 0000000000..389da451bd --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/mutations/useCreatePrincipalFromPresetMutation.ts @@ -0,0 +1,60 @@ +/** + * Custom mutation hook for createPrincipalFromPreset + * @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 { CreatePrincipalFromPresetVariables } from '../../orm/mutation'; +import type { + CreatePrincipalFromPresetPayloadSelect, + CreatePrincipalFromPresetPayload, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { CreatePrincipalFromPresetVariables } from '../../orm/mutation'; +export type { CreatePrincipalFromPresetPayloadSelect } from '../../orm/input-types'; +export function useCreatePrincipalFromPresetMutation< + S extends CreatePrincipalFromPresetPayloadSelect, +>( + params: { + selection: { + fields: S & CreatePrincipalFromPresetPayloadSelect; + } & HookStrictSelect, CreatePrincipalFromPresetPayloadSelect>; + } & Omit< + UseMutationOptions< + { + createPrincipalFromPreset: InferSelectResult | null; + }, + Error, + CreatePrincipalFromPresetVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + createPrincipalFromPreset: InferSelectResult | null; + }, + Error, + CreatePrincipalFromPresetVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.createPrincipalFromPreset(), + mutationFn: (variables: CreatePrincipalFromPresetVariables) => + getClient() + .mutation.createPrincipalFromPreset(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useCreateUserSettingMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useCreateUserSettingMutation.ts new file mode 100644 index 0000000000..ede1fa29e3 --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/mutations/useCreateUserSettingMutation.ts @@ -0,0 +1,88 @@ +/** + * Per-user settings and preferences. Extended by other modules (i18n, notifications, MFA) via metaschema.create_field(). + * @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 { userSettingKeys } from '../query-keys'; +import { userSettingMutationKeys } from '../mutation-keys'; +import type { + UserSettingSelect, + UserSettingWithRelations, + CreateUserSettingInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + UserSettingSelect, + UserSettingWithRelations, + CreateUserSettingInput, +} from '../../orm/input-types'; +/** + * Per-user settings and preferences. Extended by other modules (i18n, notifications, MFA) via metaschema.create_field(). + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateUserSettingMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateUserSettingMutation( + params: { + selection: { + fields: S & UserSettingSelect; + } & HookStrictSelect, UserSettingSelect>; + } & Omit< + UseMutationOptions< + { + createUserSetting: { + userSetting: InferSelectResult; + }; + }, + Error, + CreateUserSettingInput['userSetting'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createUserSetting: { + userSetting: InferSelectResult; + }; + }, + Error, + CreateUserSettingInput['userSetting'] +>; +export function useCreateUserSettingMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: userSettingMutationKeys.create(), + mutationFn: (data: CreateUserSettingInput['userSetting']) => + getClient() + .userSetting.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: userSettingKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useCreateUserSettingsSecurityMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useCreateUserSettingsSecurityMutation.ts new file mode 100644 index 0000000000..4e673d99cd --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/mutations/useCreateUserSettingsSecurityMutation.ts @@ -0,0 +1,91 @@ +/** + * Per-user security settings for MFA configuration (separate from user_settings preferences) + * @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 { userSettingsSecurityKeys } from '../query-keys'; +import { userSettingsSecurityMutationKeys } from '../mutation-keys'; +import type { + UserSettingsSecuritySelect, + UserSettingsSecurityWithRelations, + CreateUserSettingsSecurityInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + UserSettingsSecuritySelect, + UserSettingsSecurityWithRelations, + CreateUserSettingsSecurityInput, +} from '../../orm/input-types'; +/** + * Per-user security settings for MFA configuration (separate from user_settings preferences) + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateUserSettingsSecurityMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateUserSettingsSecurityMutation( + params: { + selection: { + fields: S & UserSettingsSecuritySelect; + } & HookStrictSelect, UserSettingsSecuritySelect>; + } & Omit< + UseMutationOptions< + { + createUserSettingsSecurity: { + userSettingsSecurity: InferSelectResult; + }; + }, + Error, + CreateUserSettingsSecurityInput['userSettingsSecurity'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createUserSettingsSecurity: { + userSettingsSecurity: InferSelectResult; + }; + }, + Error, + CreateUserSettingsSecurityInput['userSettingsSecurity'] +>; +export function useCreateUserSettingsSecurityMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: userSettingsSecurityMutationKeys.create(), + mutationFn: (data: CreateUserSettingsSecurityInput['userSettingsSecurity']) => + getClient() + .userSettingsSecurity.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: userSettingsSecurityKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useDeletePrincipalEntityMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useDeletePrincipalEntityMutation.ts deleted file mode 100644 index f084cb2466..0000000000 --- a/sdk/constructive-react/src/auth/hooks/mutations/useDeletePrincipalEntityMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * Association table scoping principals to specific organizations - * @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 { principalEntityKeys } from '../query-keys'; -import { principalEntityMutationKeys } from '../mutation-keys'; -import type { PrincipalEntitySelect, PrincipalEntityWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { PrincipalEntitySelect, PrincipalEntityWithRelations } from '../../orm/input-types'; -/** - * Association table scoping principals to specific organizations - * - * @example - * ```tsx - * const { mutate, isPending } = useDeletePrincipalEntityMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 'value-to-delete' }); - * ``` - */ -export function useDeletePrincipalEntityMutation( - params: { - selection: { - fields: S & PrincipalEntitySelect; - } & HookStrictSelect, PrincipalEntitySelect>; - } & Omit< - UseMutationOptions< - { - deletePrincipalEntity: { - principalEntity: InferSelectResult; - }; - }, - Error, - { - id: string; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deletePrincipalEntity: { - principalEntity: InferSelectResult; - }; - }, - Error, - { - id: string; - } ->; -export function useDeletePrincipalEntityMutation( - 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: principalEntityMutationKeys.all, - mutationFn: ({ id }: { id: string }) => - getClient() - .principalEntity.delete({ - where: { - id, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: principalEntityKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: principalEntityKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useDeleteUserSettingMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useDeleteUserSettingMutation.ts new file mode 100644 index 0000000000..a06c4875ed --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/mutations/useDeleteUserSettingMutation.ts @@ -0,0 +1,98 @@ +/** + * Per-user settings and preferences. Extended by other modules (i18n, notifications, MFA) via metaschema.create_field(). + * @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 { userSettingKeys } from '../query-keys'; +import { userSettingMutationKeys } from '../mutation-keys'; +import type { UserSettingSelect, UserSettingWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { UserSettingSelect, UserSettingWithRelations } from '../../orm/input-types'; +/** + * Per-user settings and preferences. Extended by other modules (i18n, notifications, MFA) via metaschema.create_field(). + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteUserSettingMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteUserSettingMutation( + params: { + selection: { + fields: S & UserSettingSelect; + } & HookStrictSelect, UserSettingSelect>; + } & Omit< + UseMutationOptions< + { + deleteUserSetting: { + userSetting: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteUserSetting: { + userSetting: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteUserSettingMutation( + 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: userSettingMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .userSetting.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: userSettingKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: userSettingKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useDeleteUserSettingsSecurityMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useDeleteUserSettingsSecurityMutation.ts new file mode 100644 index 0000000000..ca39dd9be0 --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/mutations/useDeleteUserSettingsSecurityMutation.ts @@ -0,0 +1,104 @@ +/** + * Per-user security settings for MFA configuration (separate from user_settings preferences) + * @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 { userSettingsSecurityKeys } from '../query-keys'; +import { userSettingsSecurityMutationKeys } from '../mutation-keys'; +import type { + UserSettingsSecuritySelect, + UserSettingsSecurityWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + UserSettingsSecuritySelect, + UserSettingsSecurityWithRelations, +} from '../../orm/input-types'; +/** + * Per-user security settings for MFA configuration (separate from user_settings preferences) + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteUserSettingsSecurityMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteUserSettingsSecurityMutation( + params: { + selection: { + fields: S & UserSettingsSecuritySelect; + } & HookStrictSelect, UserSettingsSecuritySelect>; + } & Omit< + UseMutationOptions< + { + deleteUserSettingsSecurity: { + userSettingsSecurity: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteUserSettingsSecurity: { + userSettingsSecurity: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteUserSettingsSecurityMutation( + 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: userSettingsSecurityMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .userSettingsSecurity.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: userSettingsSecurityKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: userSettingsSecurityKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useDisableEmailMfaMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useDisableEmailMfaMutation.ts new file mode 100644 index 0000000000..3250555368 --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/mutations/useDisableEmailMfaMutation.ts @@ -0,0 +1,55 @@ +/** + * Custom mutation hook for disableEmailMfa + * @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 { DisableEmailMfaVariables } from '../../orm/mutation'; +import type { DisableEmailMfaPayloadSelect, DisableEmailMfaPayload } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { DisableEmailMfaVariables } from '../../orm/mutation'; +export type { DisableEmailMfaPayloadSelect } from '../../orm/input-types'; +export function useDisableEmailMfaMutation( + params: { + selection: { + fields: S & DisableEmailMfaPayloadSelect; + } & HookStrictSelect, DisableEmailMfaPayloadSelect>; + } & Omit< + UseMutationOptions< + { + disableEmailMfa: InferSelectResult | null; + }, + Error, + DisableEmailMfaVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + disableEmailMfa: InferSelectResult | null; + }, + Error, + DisableEmailMfaVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.disableEmailMfa(), + mutationFn: (variables: DisableEmailMfaVariables) => + getClient() + .mutation.disableEmailMfa(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useDisableSmsMfaMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useDisableSmsMfaMutation.ts new file mode 100644 index 0000000000..8491f638e2 --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/mutations/useDisableSmsMfaMutation.ts @@ -0,0 +1,55 @@ +/** + * Custom mutation hook for disableSmsMfa + * @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 { DisableSmsMfaVariables } from '../../orm/mutation'; +import type { DisableSmsMfaPayloadSelect, DisableSmsMfaPayload } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { DisableSmsMfaVariables } from '../../orm/mutation'; +export type { DisableSmsMfaPayloadSelect } from '../../orm/input-types'; +export function useDisableSmsMfaMutation( + params: { + selection: { + fields: S & DisableSmsMfaPayloadSelect; + } & HookStrictSelect, DisableSmsMfaPayloadSelect>; + } & Omit< + UseMutationOptions< + { + disableSmsMfa: InferSelectResult | null; + }, + Error, + DisableSmsMfaVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + disableSmsMfa: InferSelectResult | null; + }, + Error, + DisableSmsMfaVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.disableSmsMfa(), + mutationFn: (variables: DisableSmsMfaVariables) => + getClient() + .mutation.disableSmsMfa(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useDisableTotpMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useDisableTotpMutation.ts new file mode 100644 index 0000000000..cf30d376a9 --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/mutations/useDisableTotpMutation.ts @@ -0,0 +1,55 @@ +/** + * Custom mutation hook for disableTotp + * @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 { DisableTotpVariables } from '../../orm/mutation'; +import type { DisableTotpPayloadSelect, DisableTotpPayload } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { DisableTotpVariables } from '../../orm/mutation'; +export type { DisableTotpPayloadSelect } from '../../orm/input-types'; +export function useDisableTotpMutation( + params: { + selection: { + fields: S & DisableTotpPayloadSelect; + } & HookStrictSelect, DisableTotpPayloadSelect>; + } & Omit< + UseMutationOptions< + { + disableTotp: InferSelectResult | null; + }, + Error, + DisableTotpVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + disableTotp: InferSelectResult | null; + }, + Error, + DisableTotpVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.disableTotp(), + mutationFn: (variables: DisableTotpVariables) => + getClient() + .mutation.disableTotp(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useEnableEmailMfaMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useEnableEmailMfaMutation.ts new file mode 100644 index 0000000000..1c7585c738 --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/mutations/useEnableEmailMfaMutation.ts @@ -0,0 +1,55 @@ +/** + * Custom mutation hook for enableEmailMfa + * @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 { EnableEmailMfaVariables } from '../../orm/mutation'; +import type { EnableEmailMfaPayloadSelect, EnableEmailMfaPayload } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { EnableEmailMfaVariables } from '../../orm/mutation'; +export type { EnableEmailMfaPayloadSelect } from '../../orm/input-types'; +export function useEnableEmailMfaMutation( + params: { + selection: { + fields: S & EnableEmailMfaPayloadSelect; + } & HookStrictSelect, EnableEmailMfaPayloadSelect>; + } & Omit< + UseMutationOptions< + { + enableEmailMfa: InferSelectResult | null; + }, + Error, + EnableEmailMfaVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + enableEmailMfa: InferSelectResult | null; + }, + Error, + EnableEmailMfaVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.enableEmailMfa(), + mutationFn: (variables: EnableEmailMfaVariables) => + getClient() + .mutation.enableEmailMfa(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useEnableSmsMfaMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useEnableSmsMfaMutation.ts new file mode 100644 index 0000000000..fdf7449fb5 --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/mutations/useEnableSmsMfaMutation.ts @@ -0,0 +1,55 @@ +/** + * Custom mutation hook for enableSmsMfa + * @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 { EnableSmsMfaVariables } from '../../orm/mutation'; +import type { EnableSmsMfaPayloadSelect, EnableSmsMfaPayload } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { EnableSmsMfaVariables } from '../../orm/mutation'; +export type { EnableSmsMfaPayloadSelect } from '../../orm/input-types'; +export function useEnableSmsMfaMutation( + params: { + selection: { + fields: S & EnableSmsMfaPayloadSelect; + } & HookStrictSelect, EnableSmsMfaPayloadSelect>; + } & Omit< + UseMutationOptions< + { + enableSmsMfa: InferSelectResult | null; + }, + Error, + EnableSmsMfaVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + enableSmsMfa: InferSelectResult | null; + }, + Error, + EnableSmsMfaVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.enableSmsMfa(), + mutationFn: (variables: EnableSmsMfaVariables) => + getClient() + .mutation.enableSmsMfa(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useEnableTotpMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useEnableTotpMutation.ts new file mode 100644 index 0000000000..9fc113b2b2 --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/mutations/useEnableTotpMutation.ts @@ -0,0 +1,55 @@ +/** + * Custom mutation hook for enableTotp + * @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 { EnableTotpVariables } from '../../orm/mutation'; +import type { EnableTotpPayloadSelect, EnableTotpPayload } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { EnableTotpVariables } from '../../orm/mutation'; +export type { EnableTotpPayloadSelect } from '../../orm/input-types'; +export function useEnableTotpMutation( + params: { + selection: { + fields: S & EnableTotpPayloadSelect; + } & HookStrictSelect, EnableTotpPayloadSelect>; + } & Omit< + UseMutationOptions< + { + enableTotp: InferSelectResult | null; + }, + Error, + EnableTotpVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + enableTotp: InferSelectResult | null; + }, + Error, + EnableTotpVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.enableTotp(), + mutationFn: (variables: EnableTotpVariables) => + getClient() + .mutation.enableTotp(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useGenerateBackupCodesMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useGenerateBackupCodesMutation.ts new file mode 100644 index 0000000000..c9fa685795 --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/mutations/useGenerateBackupCodesMutation.ts @@ -0,0 +1,58 @@ +/** + * Custom mutation hook for generateBackupCodes + * @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 { GenerateBackupCodesVariables } from '../../orm/mutation'; +import type { + GenerateBackupCodesPayloadSelect, + GenerateBackupCodesPayload, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { GenerateBackupCodesVariables } from '../../orm/mutation'; +export type { GenerateBackupCodesPayloadSelect } from '../../orm/input-types'; +export function useGenerateBackupCodesMutation( + params: { + selection: { + fields: S & GenerateBackupCodesPayloadSelect; + } & HookStrictSelect, GenerateBackupCodesPayloadSelect>; + } & Omit< + UseMutationOptions< + { + generateBackupCodes: InferSelectResult | null; + }, + Error, + GenerateBackupCodesVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + generateBackupCodes: InferSelectResult | null; + }, + Error, + GenerateBackupCodesVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.generateBackupCodes(), + mutationFn: (variables: GenerateBackupCodesVariables) => + getClient() + .mutation.generateBackupCodes(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useMintAccessTokenMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useMintAccessTokenMutation.ts new file mode 100644 index 0000000000..e06968a4cc --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/mutations/useMintAccessTokenMutation.ts @@ -0,0 +1,55 @@ +/** + * Custom mutation hook for mintAccessToken + * @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 { MintAccessTokenVariables } from '../../orm/mutation'; +import type { MintAccessTokenPayloadSelect, MintAccessTokenPayload } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { MintAccessTokenVariables } from '../../orm/mutation'; +export type { MintAccessTokenPayloadSelect } from '../../orm/input-types'; +export function useMintAccessTokenMutation( + params: { + selection: { + fields: S & MintAccessTokenPayloadSelect; + } & HookStrictSelect, MintAccessTokenPayloadSelect>; + } & Omit< + UseMutationOptions< + { + mintAccessToken: InferSelectResult | null; + }, + Error, + MintAccessTokenVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + mintAccessToken: InferSelectResult | null; + }, + Error, + MintAccessTokenVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.mintAccessToken(), + mutationFn: (variables: MintAccessTokenVariables) => + getClient() + .mutation.mintAccessToken(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useRefreshAccessTokenMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useRefreshAccessTokenMutation.ts new file mode 100644 index 0000000000..dc2037e02a --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/mutations/useRefreshAccessTokenMutation.ts @@ -0,0 +1,58 @@ +/** + * Custom mutation hook for refreshAccessToken + * @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 { RefreshAccessTokenVariables } from '../../orm/mutation'; +import type { + RefreshAccessTokenPayloadSelect, + RefreshAccessTokenPayload, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { RefreshAccessTokenVariables } from '../../orm/mutation'; +export type { RefreshAccessTokenPayloadSelect } from '../../orm/input-types'; +export function useRefreshAccessTokenMutation( + params: { + selection: { + fields: S & RefreshAccessTokenPayloadSelect; + } & HookStrictSelect, RefreshAccessTokenPayloadSelect>; + } & Omit< + UseMutationOptions< + { + refreshAccessToken: InferSelectResult | null; + }, + Error, + RefreshAccessTokenVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + refreshAccessToken: InferSelectResult | null; + }, + Error, + RefreshAccessTokenVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.refreshAccessToken(), + mutationFn: (variables: RefreshAccessTokenVariables) => + getClient() + .mutation.refreshAccessToken(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useSetPrincipalEntitiesMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useSetPrincipalEntitiesMutation.ts new file mode 100644 index 0000000000..3fac2681d4 --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/mutations/useSetPrincipalEntitiesMutation.ts @@ -0,0 +1,58 @@ +/** + * Custom mutation hook for setPrincipalEntities + * @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 { SetPrincipalEntitiesVariables } from '../../orm/mutation'; +import type { + SetPrincipalEntitiesPayloadSelect, + SetPrincipalEntitiesPayload, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { SetPrincipalEntitiesVariables } from '../../orm/mutation'; +export type { SetPrincipalEntitiesPayloadSelect } from '../../orm/input-types'; +export function useSetPrincipalEntitiesMutation( + params: { + selection: { + fields: S & SetPrincipalEntitiesPayloadSelect; + } & HookStrictSelect, SetPrincipalEntitiesPayloadSelect>; + } & Omit< + UseMutationOptions< + { + setPrincipalEntities: InferSelectResult | null; + }, + Error, + SetPrincipalEntitiesVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + setPrincipalEntities: InferSelectResult | null; + }, + Error, + SetPrincipalEntitiesVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.setPrincipalEntities(), + mutationFn: (variables: SetPrincipalEntitiesVariables) => + getClient() + .mutation.setPrincipalEntities(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useSetPrincipalScopeMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useSetPrincipalScopeMutation.ts new file mode 100644 index 0000000000..3d8b8eb979 --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/mutations/useSetPrincipalScopeMutation.ts @@ -0,0 +1,58 @@ +/** + * Custom mutation hook for setPrincipalScope + * @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 { SetPrincipalScopeVariables } from '../../orm/mutation'; +import type { + SetPrincipalScopePayloadSelect, + SetPrincipalScopePayload, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { SetPrincipalScopeVariables } from '../../orm/mutation'; +export type { SetPrincipalScopePayloadSelect } from '../../orm/input-types'; +export function useSetPrincipalScopeMutation( + params: { + selection: { + fields: S & SetPrincipalScopePayloadSelect; + } & HookStrictSelect, SetPrincipalScopePayloadSelect>; + } & Omit< + UseMutationOptions< + { + setPrincipalScope: InferSelectResult | null; + }, + Error, + SetPrincipalScopeVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + setPrincipalScope: InferSelectResult | null; + }, + Error, + SetPrincipalScopeVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.setPrincipalScope(), + mutationFn: (variables: SetPrincipalScopeVariables) => + getClient() + .mutation.setPrincipalScope(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useUpdatePrincipalEntityMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useUpdatePrincipalEntityMutation.ts deleted file mode 100644 index 3c6e55c0a1..0000000000 --- a/sdk/constructive-react/src/auth/hooks/mutations/useUpdatePrincipalEntityMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * Association table scoping principals to specific organizations - * @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 { principalEntityKeys } from '../query-keys'; -import { principalEntityMutationKeys } from '../mutation-keys'; -import type { - PrincipalEntitySelect, - PrincipalEntityWithRelations, - PrincipalEntityPatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - PrincipalEntitySelect, - PrincipalEntityWithRelations, - PrincipalEntityPatch, -} from '../../orm/input-types'; -/** - * Association table scoping principals to specific organizations - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdatePrincipalEntityMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', principalEntityPatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdatePrincipalEntityMutation( - params: { - selection: { - fields: S & PrincipalEntitySelect; - } & HookStrictSelect, PrincipalEntitySelect>; - } & Omit< - UseMutationOptions< - { - updatePrincipalEntity: { - principalEntity: InferSelectResult; - }; - }, - Error, - { - id: string; - principalEntityPatch: PrincipalEntityPatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updatePrincipalEntity: { - principalEntity: InferSelectResult; - }; - }, - Error, - { - id: string; - principalEntityPatch: PrincipalEntityPatch; - } ->; -export function useUpdatePrincipalEntityMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - principalEntityPatch: PrincipalEntityPatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: principalEntityMutationKeys.all, - mutationFn: ({ - id, - principalEntityPatch, - }: { - id: string; - principalEntityPatch: PrincipalEntityPatch; - }) => - getClient() - .principalEntity.update({ - where: { - id, - }, - data: principalEntityPatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: principalEntityKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: principalEntityKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useUpdatePrincipalMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useUpdatePrincipalMutation.ts new file mode 100644 index 0000000000..61184a15e8 --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/mutations/useUpdatePrincipalMutation.ts @@ -0,0 +1,55 @@ +/** + * Custom mutation hook for updatePrincipal + * @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 { UpdatePrincipalVariables } from '../../orm/mutation'; +import type { UpdatePrincipalPayloadSelect, UpdatePrincipalPayload } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { UpdatePrincipalVariables } from '../../orm/mutation'; +export type { UpdatePrincipalPayloadSelect } from '../../orm/input-types'; +export function useUpdatePrincipalMutation( + params: { + selection: { + fields: S & UpdatePrincipalPayloadSelect; + } & HookStrictSelect, UpdatePrincipalPayloadSelect>; + } & Omit< + UseMutationOptions< + { + updatePrincipal: InferSelectResult | null; + }, + Error, + UpdatePrincipalVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + updatePrincipal: InferSelectResult | null; + }, + Error, + UpdatePrincipalVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.updatePrincipal(), + mutationFn: (variables: UpdatePrincipalVariables) => + getClient() + .mutation.updatePrincipal(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useUpdateUserSettingMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useUpdateUserSettingMutation.ts new file mode 100644 index 0000000000..ea62f3de66 --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/mutations/useUpdateUserSettingMutation.ts @@ -0,0 +1,110 @@ +/** + * Per-user settings and preferences. Extended by other modules (i18n, notifications, MFA) via metaschema.create_field(). + * @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 { userSettingKeys } from '../query-keys'; +import { userSettingMutationKeys } from '../mutation-keys'; +import type { + UserSettingSelect, + UserSettingWithRelations, + UserSettingPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + UserSettingSelect, + UserSettingWithRelations, + UserSettingPatch, +} from '../../orm/input-types'; +/** + * Per-user settings and preferences. Extended by other modules (i18n, notifications, MFA) via metaschema.create_field(). + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateUserSettingMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', userSettingPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateUserSettingMutation( + params: { + selection: { + fields: S & UserSettingSelect; + } & HookStrictSelect, UserSettingSelect>; + } & Omit< + UseMutationOptions< + { + updateUserSetting: { + userSetting: InferSelectResult; + }; + }, + Error, + { + id: string; + userSettingPatch: UserSettingPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateUserSetting: { + userSetting: InferSelectResult; + }; + }, + Error, + { + id: string; + userSettingPatch: UserSettingPatch; + } +>; +export function useUpdateUserSettingMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + userSettingPatch: UserSettingPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: userSettingMutationKeys.all, + mutationFn: ({ id, userSettingPatch }: { id: string; userSettingPatch: UserSettingPatch }) => + getClient() + .userSetting.update({ + where: { + id, + }, + data: userSettingPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: userSettingKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: userSettingKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useUpdateUserSettingsSecurityMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useUpdateUserSettingsSecurityMutation.ts new file mode 100644 index 0000000000..a5609e353e --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/mutations/useUpdateUserSettingsSecurityMutation.ts @@ -0,0 +1,116 @@ +/** + * Per-user security settings for MFA configuration (separate from user_settings preferences) + * @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 { userSettingsSecurityKeys } from '../query-keys'; +import { userSettingsSecurityMutationKeys } from '../mutation-keys'; +import type { + UserSettingsSecuritySelect, + UserSettingsSecurityWithRelations, + UserSettingsSecurityPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + UserSettingsSecuritySelect, + UserSettingsSecurityWithRelations, + UserSettingsSecurityPatch, +} from '../../orm/input-types'; +/** + * Per-user security settings for MFA configuration (separate from user_settings preferences) + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateUserSettingsSecurityMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', userSettingsSecurityPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateUserSettingsSecurityMutation( + params: { + selection: { + fields: S & UserSettingsSecuritySelect; + } & HookStrictSelect, UserSettingsSecuritySelect>; + } & Omit< + UseMutationOptions< + { + updateUserSettingsSecurity: { + userSettingsSecurity: InferSelectResult; + }; + }, + Error, + { + id: string; + userSettingsSecurityPatch: UserSettingsSecurityPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateUserSettingsSecurity: { + userSettingsSecurity: InferSelectResult; + }; + }, + Error, + { + id: string; + userSettingsSecurityPatch: UserSettingsSecurityPatch; + } +>; +export function useUpdateUserSettingsSecurityMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + userSettingsSecurityPatch: UserSettingsSecurityPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: userSettingsSecurityMutationKeys.all, + mutationFn: ({ + id, + userSettingsSecurityPatch, + }: { + id: string; + userSettingsSecurityPatch: UserSettingsSecurityPatch; + }) => + getClient() + .userSettingsSecurity.update({ + where: { + id, + }, + data: userSettingsSecurityPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: userSettingsSecurityKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: userSettingsSecurityKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/auth/hooks/queries/index.ts b/sdk/constructive-react/src/auth/hooks/queries/index.ts index c08fb4d08d..0baeef2927 100644 --- a/sdk/constructive-react/src/auth/hooks/queries/index.ts +++ b/sdk/constructive-react/src/auth/hooks/queries/index.ts @@ -26,10 +26,15 @@ export * from './useUserConnectedAccountsQuery'; export * from './useUserConnectedAccountQuery'; export * from './useUsersQuery'; export * from './useUserQuery'; +export * from './useUserSettingsQuery'; +export * from './useUserSettingQuery'; +export * from './useUserSettingsSecuritiesQuery'; +export * from './useUserSettingsSecurityQuery'; export * from './useWebauthnCredentialsQuery'; export * from './useWebauthnCredentialQuery'; export * from './useCurrentIpAddressQuery'; export * from './useCurrentUserQuery'; export * from './useCurrentUserAgentQuery'; export * from './useCurrentUserIdQuery'; +export * from './useGetMfaStatusQuery'; export * from './useRequireStepUpQuery'; diff --git a/sdk/constructive-react/src/auth/hooks/queries/useGetMfaStatusQuery.ts b/sdk/constructive-react/src/auth/hooks/queries/useGetMfaStatusQuery.ts new file mode 100644 index 0000000000..ec2f41cfbd --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/queries/useGetMfaStatusQuery.ts @@ -0,0 +1,127 @@ +/** + * Custom query hook for getMfaStatus + * @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 { GetMfaStatusRecordSelect, GetMfaStatusRecord } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { GetMfaStatusRecordSelect } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const getMfaStatusQueryKey = customQueryKeys.getMfaStatus; +/** + * Query hook for getMfaStatus + * + * @example + * ```tsx + * const { data, isLoading } = useGetMfaStatusQuery({ selection: { fields: { id: true } } }); + * + * if (data?.getMfaStatus) { + * console.log(data.getMfaStatus); + * } + * ``` + */ +export function useGetMfaStatusQuery< + S extends GetMfaStatusRecordSelect, + TData = { + getMfaStatus: InferSelectResult | null; + }, +>( + params: { + selection: { + fields: S & GetMfaStatusRecordSelect; + } & HookStrictSelect, GetMfaStatusRecordSelect>; + } & Omit< + UseQueryOptions< + { + getMfaStatus: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useGetMfaStatusQuery( + params: { + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: getMfaStatusQueryKey(), + queryFn: () => + getClient() + .query.getMfaStatus({ + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch getMfaStatus without React hooks + * + * @example + * ```ts + * const data = await fetchGetMfaStatusQuery({ selection: { fields: { id: true } } }); + * ``` + */ +export async function fetchGetMfaStatusQuery(params: { + selection: { + fields: S & GetMfaStatusRecordSelect; + } & HookStrictSelect, GetMfaStatusRecordSelect>; +}): Promise<{ + getMfaStatus: InferSelectResult | null; +}>; +export async function fetchGetMfaStatusQuery(params: { + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .query.getMfaStatus({ + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch getMfaStatus for SSR or cache warming + * + * @example + * ```ts + * await prefetchGetMfaStatusQuery(queryClient, { selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchGetMfaStatusQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S & GetMfaStatusRecordSelect; + } & HookStrictSelect, GetMfaStatusRecordSelect>; + } +): Promise; +export async function prefetchGetMfaStatusQuery( + queryClient: QueryClient, + params: { + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: getMfaStatusQueryKey(), + queryFn: () => + getClient() + .query.getMfaStatus({ + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/auth/hooks/queries/useUserSettingQuery.ts b/sdk/constructive-react/src/auth/hooks/queries/useUserSettingQuery.ts new file mode 100644 index 0000000000..afc2aaf51c --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/queries/useUserSettingQuery.ts @@ -0,0 +1,138 @@ +/** + * Per-user settings and preferences. Extended by other modules (i18n, notifications, MFA) via metaschema.create_field(). + * @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 { userSettingKeys } from '../query-keys'; +import type { UserSettingSelect, UserSettingWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { UserSettingSelect, UserSettingWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const userSettingQueryKey = userSettingKeys.detail; +/** + * Per-user settings and preferences. Extended by other modules (i18n, notifications, MFA) via metaschema.create_field(). + * + * @example + * ```tsx + * const { data, isLoading } = useUserSettingQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useUserSettingQuery< + S extends UserSettingSelect, + TData = { + userSetting: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, UserSettingSelect>; + } & Omit< + UseQueryOptions< + { + userSetting: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useUserSettingQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: userSettingKeys.detail(params.id), + queryFn: () => + getClient() + .userSetting.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Per-user settings and preferences. Extended by other modules (i18n, notifications, MFA) via metaschema.create_field(). + * + * @example + * ```ts + * const data = await fetchUserSettingQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchUserSettingQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, UserSettingSelect>; +}): Promise<{ + userSetting: InferSelectResult | null; +}>; +export async function fetchUserSettingQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .userSetting.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Per-user settings and preferences. Extended by other modules (i18n, notifications, MFA) via metaschema.create_field(). + * + * @example + * ```ts + * await prefetchUserSettingQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchUserSettingQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, UserSettingSelect>; + } +): Promise; +export async function prefetchUserSettingQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: userSettingKeys.detail(params.id), + queryFn: () => + getClient() + .userSetting.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/auth/hooks/queries/useUserSettingsQuery.ts b/sdk/constructive-react/src/auth/hooks/queries/useUserSettingsQuery.ts new file mode 100644 index 0000000000..a1dd679a35 --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/queries/useUserSettingsQuery.ts @@ -0,0 +1,145 @@ +/** + * Per-user settings and preferences. Extended by other modules (i18n, notifications, MFA) via metaschema.create_field(). + * @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 { userSettingKeys } from '../query-keys'; +import type { + UserSettingSelect, + UserSettingWithRelations, + UserSettingFilter, + UserSettingOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + UserSettingSelect, + UserSettingWithRelations, + UserSettingFilter, + UserSettingOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const userSettingsQueryKey = userSettingKeys.list; +/** + * Per-user settings and preferences. Extended by other modules (i18n, notifications, MFA) via metaschema.create_field(). + * + * @example + * ```tsx + * const { data, isLoading } = useUserSettingsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useUserSettingsQuery< + S extends UserSettingSelect, + TData = { + userSettings: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, UserSettingSelect>; + } & Omit< + UseQueryOptions< + { + userSettings: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useUserSettingsQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs( + params.selection + ); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: userSettingKeys.list(args), + queryFn: () => getClient().userSetting.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Per-user settings and preferences. Extended by other modules (i18n, notifications, MFA) via metaschema.create_field(). + * + * @example + * ```ts + * const data = await fetchUserSettingsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchUserSettingsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, UserSettingSelect>; +}): Promise<{ + userSettings: ConnectionResult>; +}>; +export async function fetchUserSettingsQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs( + params.selection + ); + return getClient().userSetting.findMany(args).unwrap(); +} +/** + * Per-user settings and preferences. Extended by other modules (i18n, notifications, MFA) via metaschema.create_field(). + * + * @example + * ```ts + * await prefetchUserSettingsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchUserSettingsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, UserSettingSelect>; + } +): Promise; +export async function prefetchUserSettingsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs( + params.selection + ); + await queryClient.prefetchQuery({ + queryKey: userSettingKeys.list(args), + queryFn: () => getClient().userSetting.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/auth/hooks/queries/useUserSettingsSecuritiesQuery.ts b/sdk/constructive-react/src/auth/hooks/queries/useUserSettingsSecuritiesQuery.ts new file mode 100644 index 0000000000..e7191861ef --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/queries/useUserSettingsSecuritiesQuery.ts @@ -0,0 +1,178 @@ +/** + * Per-user security settings for MFA configuration (separate from user_settings preferences) + * @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 { userSettingsSecurityKeys } from '../query-keys'; +import type { + UserSettingsSecuritySelect, + UserSettingsSecurityWithRelations, + UserSettingsSecurityFilter, + UserSettingsSecurityOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + UserSettingsSecuritySelect, + UserSettingsSecurityWithRelations, + UserSettingsSecurityFilter, + UserSettingsSecurityOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const userSettingsSecuritiesQueryKey = userSettingsSecurityKeys.list; +/** + * Per-user security settings for MFA configuration (separate from user_settings preferences) + * + * @example + * ```tsx + * const { data, isLoading } = useUserSettingsSecuritiesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useUserSettingsSecuritiesQuery< + S extends UserSettingsSecuritySelect, + TData = { + userSettingsSecurities: ConnectionResult< + InferSelectResult + >; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, UserSettingsSecuritySelect>; + } & Omit< + UseQueryOptions< + { + userSettingsSecurities: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useUserSettingsSecuritiesQuery( + params: { + selection: ListSelectionConfig< + UserSettingsSecuritySelect, + UserSettingsSecurityFilter, + UserSettingsSecurityOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + UserSettingsSecuritySelect, + UserSettingsSecurityFilter, + UserSettingsSecurityOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: userSettingsSecurityKeys.list(args), + queryFn: () => getClient().userSettingsSecurity.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Per-user security settings for MFA configuration (separate from user_settings preferences) + * + * @example + * ```ts + * const data = await fetchUserSettingsSecuritiesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchUserSettingsSecuritiesQuery< + S extends UserSettingsSecuritySelect, +>(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, UserSettingsSecuritySelect>; +}): Promise<{ + userSettingsSecurities: ConnectionResult>; +}>; +export async function fetchUserSettingsSecuritiesQuery(params: { + selection: ListSelectionConfig< + UserSettingsSecuritySelect, + UserSettingsSecurityFilter, + UserSettingsSecurityOrderBy + >; +}) { + const args = buildListSelectionArgs< + UserSettingsSecuritySelect, + UserSettingsSecurityFilter, + UserSettingsSecurityOrderBy + >(params.selection); + return getClient().userSettingsSecurity.findMany(args).unwrap(); +} +/** + * Per-user security settings for MFA configuration (separate from user_settings preferences) + * + * @example + * ```ts + * await prefetchUserSettingsSecuritiesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchUserSettingsSecuritiesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, UserSettingsSecuritySelect>; + } +): Promise; +export async function prefetchUserSettingsSecuritiesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + UserSettingsSecuritySelect, + UserSettingsSecurityFilter, + UserSettingsSecurityOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + UserSettingsSecuritySelect, + UserSettingsSecurityFilter, + UserSettingsSecurityOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: userSettingsSecurityKeys.list(args), + queryFn: () => getClient().userSettingsSecurity.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/auth/hooks/queries/useUserSettingsSecurityQuery.ts b/sdk/constructive-react/src/auth/hooks/queries/useUserSettingsSecurityQuery.ts new file mode 100644 index 0000000000..1bc9e9de16 --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/queries/useUserSettingsSecurityQuery.ts @@ -0,0 +1,144 @@ +/** + * Per-user security settings for MFA configuration (separate from user_settings preferences) + * @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 { userSettingsSecurityKeys } from '../query-keys'; +import type { + UserSettingsSecuritySelect, + UserSettingsSecurityWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + UserSettingsSecuritySelect, + UserSettingsSecurityWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const userSettingsSecurityQueryKey = userSettingsSecurityKeys.detail; +/** + * Per-user security settings for MFA configuration (separate from user_settings preferences) + * + * @example + * ```tsx + * const { data, isLoading } = useUserSettingsSecurityQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useUserSettingsSecurityQuery< + S extends UserSettingsSecuritySelect, + TData = { + userSettingsSecurity: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, UserSettingsSecuritySelect>; + } & Omit< + UseQueryOptions< + { + userSettingsSecurity: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useUserSettingsSecurityQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: userSettingsSecurityKeys.detail(params.id), + queryFn: () => + getClient() + .userSettingsSecurity.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Per-user security settings for MFA configuration (separate from user_settings preferences) + * + * @example + * ```ts + * const data = await fetchUserSettingsSecurityQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchUserSettingsSecurityQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, UserSettingsSecuritySelect>; +}): Promise<{ + userSettingsSecurity: InferSelectResult | null; +}>; +export async function fetchUserSettingsSecurityQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .userSettingsSecurity.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Per-user security settings for MFA configuration (separate from user_settings preferences) + * + * @example + * ```ts + * await prefetchUserSettingsSecurityQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchUserSettingsSecurityQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, UserSettingsSecuritySelect>; + } +): Promise; +export async function prefetchUserSettingsSecurityQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: userSettingsSecurityKeys.detail(params.id), + queryFn: () => + getClient() + .userSettingsSecurity.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/auth/hooks/query-keys.ts b/sdk/constructive-react/src/auth/hooks/query-keys.ts index 037996584c..57cfc97741 100644 --- a/sdk/constructive-react/src/auth/hooks/query-keys.ts +++ b/sdk/constructive-react/src/auth/hooks/query-keys.ts @@ -127,6 +127,24 @@ export const userKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...userKeys.details(), id] as const, } as const; +export const userSettingKeys = { + /** All userSetting queries */ all: ['usersetting'] as const, + /** List query keys */ lists: () => [...userSettingKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...userSettingKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...userSettingKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...userSettingKeys.details(), id] as const, +} as const; +export const userSettingsSecurityKeys = { + /** All userSettingsSecurity queries */ all: ['usersettingssecurity'] as const, + /** List query keys */ lists: () => [...userSettingsSecurityKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...userSettingsSecurityKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...userSettingsSecurityKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...userSettingsSecurityKeys.details(), id] as const, +} as const; export const webauthnCredentialKeys = { /** All webauthnCredential queries */ all: ['webauthncredential'] as const, /** List query keys */ lists: () => [...webauthnCredentialKeys.all, 'list'] as const, @@ -146,6 +164,7 @@ export const customQueryKeys = { /** Query key for currentUser */ currentUser: () => ['currentUser'] as const, /** Query key for currentUserAgent */ currentUserAgent: () => ['currentUserAgent'] as const, /** Query key for currentUserId */ currentUserId: () => ['currentUserId'] as const, + /** Query key for getMfaStatus */ getMfaStatus: () => ['getMfaStatus'] as const, /** Query key for requireStepUp */ requireStepUp: (variables?: object) => ['requireStepUp', variables] as const, } as const; @@ -184,6 +203,8 @@ export const queryKeys = { roleType: roleTypeKeys, userConnectedAccount: userConnectedAccountKeys, user: userKeys, + userSetting: userSettingKeys, + userSettingsSecurity: userSettingsSecurityKeys, webauthnCredential: webauthnCredentialKeys, custom: customQueryKeys, } as const; diff --git a/sdk/constructive-react/src/auth/orm/README.md b/sdk/constructive-react/src/auth/orm/README.md index 54c1c05969..431112c14e 100644 --- a/sdk/constructive-react/src/auth/orm/README.md +++ b/sdk/constructive-react/src/auth/orm/README.md @@ -33,6 +33,8 @@ const db = createClient({ | `roleType` | findMany, findOne, create, update, delete | | `userConnectedAccount` | findMany, findOne, create, update, delete | | `user` | findMany, findOne, create, update, delete | +| `userSetting` | findMany, findOne, create, update, delete | +| `userSettingsSecurity` | findMany, findOne, create, update, delete | | `webauthnCredential` | findMany, findOne, create, update, delete | ## Table Operations @@ -47,6 +49,7 @@ CRUD operations for AuditLogAuth records. |-------|------|----------| | `actorId` | UUID | Yes | | `createdAt` | Datetime | No | +| `details` | JSON | Yes | | `event` | String | Yes | | `id` | UUID | No | | `ipAddress` | InternetAddress | Yes | @@ -58,13 +61,13 @@ CRUD operations for AuditLogAuth records. ```typescript // List all auditLogAuth records -const items = await db.auditLogAuth.findMany({ select: { actorId: true, createdAt: true, event: true, id: true, ipAddress: true, origin: true, success: true, userAgent: true } }).execute(); +const items = await db.auditLogAuth.findMany({ select: { actorId: true, createdAt: true, details: true, event: true, id: true, ipAddress: true, origin: true, success: true, userAgent: true } }).execute(); // Get one by id -const item = await db.auditLogAuth.findOne({ id: '', select: { actorId: true, createdAt: true, event: true, id: true, ipAddress: true, origin: true, success: true, userAgent: true } }).execute(); +const item = await db.auditLogAuth.findOne({ id: '', select: { actorId: true, createdAt: true, details: true, event: true, id: true, ipAddress: true, origin: true, success: true, userAgent: true } }).execute(); // Create -const created = await db.auditLogAuth.create({ data: { actorId: '', event: '', ipAddress: '', origin: '', success: '', userAgent: '' }, select: { id: true } }).execute(); +const created = await db.auditLogAuth.create({ data: { actorId: '', details: '', event: '', ipAddress: '', origin: '', success: '', userAgent: '' }, select: { id: true } }).execute(); // Update const updated = await db.auditLogAuth.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); @@ -264,10 +267,14 @@ CRUD operations for Principal records. |-------|------|----------| | `bypassStepUp` | Boolean | Yes | | `createdAt` | Datetime | No | +| `createdBySessionId` | UUID | Yes | +| `depth` | Int | Yes | +| `expiresAt` | Datetime | Yes | | `id` | UUID | Yes | | `isReadOnly` | Boolean | Yes | | `name` | String | Yes | | `ownerId` | UUID | Yes | +| `parentPrincipalId` | UUID | Yes | | `updatedAt` | Datetime | No | | `useAdminOwner` | Boolean | Yes | | `userId` | UUID | Yes | @@ -276,13 +283,13 @@ CRUD operations for Principal records. ```typescript // List all principal records -const items = await db.principal.findMany({ select: { bypassStepUp: true, createdAt: true, id: true, isReadOnly: true, name: true, ownerId: true, updatedAt: true, useAdminOwner: true, userId: true } }).execute(); +const items = await db.principal.findMany({ select: { bypassStepUp: true, createdAt: true, createdBySessionId: true, depth: true, expiresAt: true, id: true, isReadOnly: true, name: true, ownerId: true, parentPrincipalId: true, updatedAt: true, useAdminOwner: true, userId: true } }).execute(); // Get one by principalId -const item = await db.principal.findOne({ principalId: '', select: { bypassStepUp: true, createdAt: true, id: true, isReadOnly: true, name: true, ownerId: true, updatedAt: true, useAdminOwner: true, userId: true } }).execute(); +const item = await db.principal.findOne({ principalId: '', select: { bypassStepUp: true, createdAt: true, createdBySessionId: true, depth: true, expiresAt: true, id: true, isReadOnly: true, name: true, ownerId: true, parentPrincipalId: true, updatedAt: true, useAdminOwner: true, userId: true } }).execute(); // Create -const created = await db.principal.create({ data: { bypassStepUp: '', id: '', isReadOnly: '', name: '', ownerId: '', useAdminOwner: '', userId: '' }, select: { principalId: true } }).execute(); +const created = await db.principal.create({ data: { bypassStepUp: '', createdBySessionId: '', depth: '', expiresAt: '', id: '', isReadOnly: '', name: '', ownerId: '', parentPrincipalId: '', useAdminOwner: '', userId: '' }, select: { principalId: true } }).execute(); // Update const updated = await db.principal.update({ where: { principalId: '' }, data: { bypassStepUp: '' }, select: { principalId: true } }).execute(); @@ -470,6 +477,76 @@ const deleted = await db.user.delete({ where: { id: '' } }).execute(); > **Unified Search API fields:** `searchTsv` > Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. +### `db.userSetting` + +CRUD operations for UserSetting records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `createdAt` | Datetime | No | +| `id` | UUID | No | +| `ownerId` | UUID | Yes | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all userSetting records +const items = await db.userSetting.findMany({ select: { createdAt: true, id: true, ownerId: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.userSetting.findOne({ id: '', select: { createdAt: true, id: true, ownerId: true, updatedAt: true } }).execute(); + +// Create +const created = await db.userSetting.create({ data: { ownerId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.userSetting.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.userSetting.delete({ where: { id: '' } }).execute(); +``` + +### `db.userSettingsSecurity` + +CRUD operations for UserSettingsSecurity records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `backupCodesCount` | Int | Yes | +| `createdAt` | Datetime | No | +| `emailMfaEnabled` | Boolean | Yes | +| `id` | UUID | No | +| `mfaEnrolledAt` | Datetime | Yes | +| `mfaLastUsedAt` | Datetime | Yes | +| `ownerId` | UUID | Yes | +| `smsMfaEnabled` | Boolean | Yes | +| `totpEnabled` | Boolean | Yes | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all userSettingsSecurity records +const items = await db.userSettingsSecurity.findMany({ select: { backupCodesCount: true, createdAt: true, emailMfaEnabled: true, id: true, mfaEnrolledAt: true, mfaLastUsedAt: true, ownerId: true, smsMfaEnabled: true, totpEnabled: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.userSettingsSecurity.findOne({ id: '', select: { backupCodesCount: true, createdAt: true, emailMfaEnabled: true, id: true, mfaEnrolledAt: true, mfaLastUsedAt: true, ownerId: true, smsMfaEnabled: true, totpEnabled: true, updatedAt: true } }).execute(); + +// Create +const created = await db.userSettingsSecurity.create({ data: { backupCodesCount: '', emailMfaEnabled: '', mfaEnrolledAt: '', mfaLastUsedAt: '', ownerId: '', smsMfaEnabled: '', totpEnabled: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.userSettingsSecurity.update({ where: { id: '' }, data: { backupCodesCount: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.userSettingsSecurity.delete({ where: { id: '' } }).execute(); +``` + ### `db.webauthnCredential` CRUD operations for WebauthnCredential records. @@ -558,6 +635,17 @@ currentUserId const result = await db.query.currentUserId().execute(); ``` +### `db.query.getMfaStatus` + +getMfaStatus + +- **Type:** query +- **Arguments:** none + +```typescript +const result = await db.query.getMfaStatus().execute(); +``` + ### `db.query.requireStepUp` requireStepUp @@ -573,6 +661,21 @@ requireStepUp const result = await db.query.requireStepUp({ stepUpType: '' }).execute(); ``` +### `db.mutation.approveDevice` + +approveDevice + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | ApproveDeviceInput (required) | + +```typescript +const result = await db.mutation.approveDevice({ input: { approvalToken: '' } }).execute(); +``` + ### `db.mutation.checkPassword` checkPassword @@ -588,6 +691,21 @@ checkPassword const result = await db.mutation.checkPassword({ input: { password: '' } }).execute(); ``` +### `db.mutation.completeMfaChallenge` + +completeMfaChallenge + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | CompleteMfaChallengeInput (required) | + +```typescript +const result = await db.mutation.completeMfaChallenge({ input: '' }).execute(); +``` + ### `db.mutation.confirmDeleteAccount` confirmDeleteAccount @@ -603,6 +721,21 @@ confirmDeleteAccount const result = await db.mutation.confirmDeleteAccount({ input: { token: '', userId: '' } }).execute(); ``` +### `db.mutation.confirmTotpSetup` + +confirmTotpSetup + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | ConfirmTotpSetupInput (required) | + +```typescript +const result = await db.mutation.confirmTotpSetup({ input: { totpValue: '' } }).execute(); +``` + ### `db.mutation.createApiKey` createApiKey @@ -618,6 +751,21 @@ createApiKey const result = await db.mutation.createApiKey({ input: { accessLevel: '', expiresIn: '', keyName: '', mfaLevel: '', principalId: '' } }).execute(); ``` +### `db.mutation.createChildPrincipal` + +createChildPrincipal + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | CreateChildPrincipalInput (required) | + +```typescript +const result = await db.mutation.createChildPrincipal({ input: '' }).execute(); +``` + ### `db.mutation.createOrgApiKey` createOrgApiKey @@ -648,6 +796,21 @@ createOrgPrincipal const result = await db.mutation.createOrgPrincipal({ input: { bypassStepUp: '', isReadOnly: '', name: '', orgId: '', useAdminOwner: '' } }).execute(); ``` +### `db.mutation.createPrincipalFromPreset` + +createPrincipalFromPreset + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | CreatePrincipalFromPresetInput (required) | + +```typescript +const result = await db.mutation.createPrincipalFromPreset({ input: { entityIds: '', name: '', overrides: '', slug: '' } }).execute(); +``` + ### `db.mutation.deleteOrgPrincipal` deleteOrgPrincipal @@ -678,6 +841,51 @@ deletePrincipal const result = await db.mutation.deletePrincipal({ input: { principalId: '' } }).execute(); ``` +### `db.mutation.disableEmailMfa` + +disableEmailMfa + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | DisableEmailMfaInput (required) | + +```typescript +const result = await db.mutation.disableEmailMfa({ input: '' }).execute(); +``` + +### `db.mutation.disableSmsMfa` + +disableSmsMfa + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | DisableSmsMfaInput (required) | + +```typescript +const result = await db.mutation.disableSmsMfa({ input: '' }).execute(); +``` + +### `db.mutation.disableTotp` + +disableTotp + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | DisableTotpInput (required) | + +```typescript +const result = await db.mutation.disableTotp({ input: { totpValue: '' } }).execute(); +``` + ### `db.mutation.disconnectAccount` disconnectAccount @@ -693,6 +901,51 @@ disconnectAccount const result = await db.mutation.disconnectAccount({ input: { accountId: '' } }).execute(); ``` +### `db.mutation.enableEmailMfa` + +enableEmailMfa + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | EnableEmailMfaInput (required) | + +```typescript +const result = await db.mutation.enableEmailMfa({ input: '' }).execute(); +``` + +### `db.mutation.enableSmsMfa` + +enableSmsMfa + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | EnableSmsMfaInput (required) | + +```typescript +const result = await db.mutation.enableSmsMfa({ input: '' }).execute(); +``` + +### `db.mutation.enableTotp` + +enableTotp + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | EnableTotpInput (required) | + +```typescript +const result = await db.mutation.enableTotp({ input: '' }).execute(); +``` + ### `db.mutation.extendTokenExpires` extendTokenExpires @@ -723,6 +976,21 @@ forgotPassword const result = await db.mutation.forgotPassword({ input: { email: '' } }).execute(); ``` +### `db.mutation.generateBackupCodes` + +generateBackupCodes + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | GenerateBackupCodesInput (required) | + +```typescript +const result = await db.mutation.generateBackupCodes({ input: '' }).execute(); +``` + ### `db.mutation.linkIdentity` linkIdentity @@ -738,12 +1006,28 @@ linkIdentity const result = await db.mutation.linkIdentity({ input: { details: '', identifier: '', service: '' } }).execute(); ``` +### `db.mutation.mintAccessToken` + +mintAccessToken + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | MintAccessTokenInput (required) | + +```typescript +const result = await db.mutation.mintAccessToken({ input: { accessTtl: '', intent: '', principalId: '' } }).execute(); +``` + ### `db.mutation.provisionBucket` -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. +Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. - **Type:** mutation - **Arguments:** @@ -771,6 +1055,21 @@ provisionNewUser const result = await db.mutation.provisionNewUser({ input: { email: '', password: '' } }).execute(); ``` +### `db.mutation.refreshAccessToken` + +refreshAccessToken + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | RefreshAccessTokenInput (required) | + +```typescript +const result = await db.mutation.refreshAccessToken({ input: { token: '' } }).execute(); +``` + ### `db.mutation.requestCrossOriginToken` requestCrossOriginToken @@ -891,6 +1190,36 @@ setPassword const result = await db.mutation.setPassword({ input: { currentPassword: '', newPassword: '' } }).execute(); ``` +### `db.mutation.setPrincipalEntities` + +setPrincipalEntities + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SetPrincipalEntitiesInput (required) | + +```typescript +const result = await db.mutation.setPrincipalEntities({ input: { entityIds: '', principalId: '' } }).execute(); +``` + +### `db.mutation.setPrincipalScope` + +setPrincipalScope + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SetPrincipalScopeInput (required) | + +```typescript +const result = await db.mutation.setPrincipalScope({ input: '' }).execute(); +``` + ### `db.mutation.signIn` signIn @@ -1011,6 +1340,21 @@ signUpSms const result = await db.mutation.signUpSms({ input: { code: '', credentialKind: '', deviceToken: '', phone: '', rememberMe: '' } }).execute(); ``` +### `db.mutation.updatePrincipal` + +updatePrincipal + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | UpdatePrincipalInput (required) | + +```typescript +const result = await db.mutation.updatePrincipal({ input: { bypassStepUp: '', isReadOnly: '', name: '', principalId: '', useAdminOwner: '' } }).execute(); +``` + ### `db.mutation.verifyEmail` verifyEmail diff --git a/sdk/constructive-react/src/auth/orm/index.ts b/sdk/constructive-react/src/auth/orm/index.ts index b677b5b306..60da7f9b43 100644 --- a/sdk/constructive-react/src/auth/orm/index.ts +++ b/sdk/constructive-react/src/auth/orm/index.ts @@ -17,6 +17,8 @@ import { PrincipalScopeOverrideModel } from './models/principalScopeOverride'; import { RoleTypeModel } from './models/roleType'; import { UserConnectedAccountModel } from './models/userConnectedAccount'; import { UserModel } from './models/user'; +import { UserSettingModel } from './models/userSetting'; +import { UserSettingsSecurityModel } from './models/userSettingsSecurity'; import { WebauthnCredentialModel } from './models/webauthnCredential'; import { createQueryOperations } from './query'; import { createMutationOperations } from './mutation'; @@ -65,6 +67,8 @@ export function createClient(config: OrmClientConfig) { roleType: new RoleTypeModel(client), userConnectedAccount: new UserConnectedAccountModel(client), user: new UserModel(client), + userSetting: new UserSettingModel(client), + userSettingsSecurity: new UserSettingsSecurityModel(client), webauthnCredential: new WebauthnCredentialModel(client), query: createQueryOperations(client), mutation: createMutationOperations(client), diff --git a/sdk/constructive-react/src/auth/orm/input-types.ts b/sdk/constructive-react/src/auth/orm/input-types.ts index f2ea8e5716..3885b35aa7 100644 --- a/sdk/constructive-react/src/auth/orm/input-types.ts +++ b/sdk/constructive-react/src/auth/orm/input-types.ts @@ -241,6 +241,8 @@ export interface AuditLogAuth { /** User who performed the authentication action; NULL if user was deleted */ actorId?: string | null; createdAt?: string | null; + /** Event-specific structured payload (e.g. preset slug and catalog commit id for create_principal_from_preset) */ + details?: Record | null; /** Type of authentication event (e.g. sign_in, sign_up, password_change, verify_email) */ event?: string | null; /** Unique identifier for each audit event (uuidv7 provides temporal ordering) */ @@ -326,6 +328,12 @@ export interface Principal { /** Whether this principal bypasses MFA step-up requirements */ bypassStepUp?: boolean | null; createdAt?: string | null; + /** Session that minted this child principal; NULL for principals created outside a session chain */ + createdBySessionId?: string | null; + /** Depth of this principal below its owner-derived root (0 for standing principals), bounded by auth_settings.max_principal_depth */ + depth?: number | null; + /** When this ephemeral child principal expires; NULL for standing principals */ + expiresAt?: string | null; id: string; /** Whether this principal is restricted to read-only operations */ isReadOnly?: boolean | null; @@ -333,6 +341,8 @@ export interface Principal { name?: string | null; /** The human user who owns and manages this principal */ ownerId?: string | null; + /** Principal this child principal derives its authority from; NULL for principals that derive from owner_id */ + parentPrincipalId?: string | null; updatedAt?: string | null; /** Whether this principal inherits admin/owner privileges from the owner */ useAdminOwner?: boolean | null; @@ -399,6 +409,32 @@ export interface User { updatedAt?: string | null; username?: string | null; } +/** Per-user settings and preferences. Extended by other modules (i18n, notifications, MFA) via metaschema.create_field(). */ +export interface UserSetting { + createdAt?: string | null; + id: string; + ownerId?: string | null; + updatedAt?: string | null; +} +/** Per-user security settings for MFA configuration (separate from user_settings preferences) */ +export interface UserSettingsSecurity { + /** Number of remaining unused backup codes */ + backupCodesCount?: number | null; + createdAt?: string | null; + /** Whether email-based MFA codes are active for this user */ + emailMfaEnabled?: boolean | null; + id: string; + /** When the first MFA method was enabled */ + mfaEnrolledAt?: string | null; + /** When MFA was last successfully verified */ + mfaLastUsedAt?: string | null; + ownerId?: string | null; + /** Whether SMS-based MFA codes are active for this user */ + smsMfaEnabled?: boolean | null; + /** Whether TOTP (authenticator app) MFA is active for this user */ + totpEnabled?: boolean | null; + updatedAt?: string | null; +} /** WebAuthn/passkey credentials owned by users. One row per registered authenticator (security key, device biometric, synced passkey). Schema mirrors SimpleWebAuthn's canonical Passkey object. */ export interface WebauthnCredential { /** Whether this credential is eligible for backup (syncing) per the authenticator's flags at registration. */ @@ -455,7 +491,9 @@ export interface PhoneNumberRelations { } export interface PrincipalRelations { owner?: User | null; + parentPrincipal?: Principal | null; user?: User | null; + child_principals?: ConnectionResult; principalEntities?: ConnectionResult; principalScopeOverrides?: ConnectionResult; } @@ -470,6 +508,8 @@ export interface PrincipalScopeOverrideRelations { export interface RoleTypeRelations {} export interface UserConnectedAccountRelations {} export interface UserRelations { + ownedUserSetting?: UserSetting | null; + ownedUserSettingsSecurity?: UserSettingsSecurity | null; roleType?: RoleType | null; authAuditLog?: ConnectionResult; cryptoAddresses?: ConnectionResult; @@ -479,6 +519,12 @@ export interface UserRelations { scopedPrincipals?: ConnectionResult; webauthnCredentials?: ConnectionResult; } +export interface UserSettingRelations { + owner?: User | null; +} +export interface UserSettingsSecurityRelations { + owner?: User | null; +} export interface WebauthnCredentialRelations { owner?: User | null; } @@ -497,11 +543,15 @@ export type RoleTypeWithRelations = RoleType & RoleTypeRelations; export type UserConnectedAccountWithRelations = UserConnectedAccount & UserConnectedAccountRelations; export type UserWithRelations = User & UserRelations; +export type UserSettingWithRelations = UserSetting & UserSettingRelations; +export type UserSettingsSecurityWithRelations = UserSettingsSecurity & + UserSettingsSecurityRelations; export type WebauthnCredentialWithRelations = WebauthnCredential & WebauthnCredentialRelations; // ============ Entity Select Types ============ export type AuditLogAuthSelect = { actorId?: boolean; createdAt?: boolean; + details?: boolean; event?: boolean; id?: boolean; ipAddress?: boolean; @@ -575,19 +625,32 @@ export type PhoneNumberSelect = { export type PrincipalSelect = { bypassStepUp?: boolean; createdAt?: boolean; + createdBySessionId?: boolean; + depth?: boolean; + expiresAt?: boolean; id?: boolean; isReadOnly?: boolean; name?: boolean; ownerId?: boolean; + parentPrincipalId?: boolean; updatedAt?: boolean; useAdminOwner?: boolean; userId?: boolean; owner?: { select: UserSelect; }; + parentPrincipal?: { + select: PrincipalSelect; + }; user?: { select: UserSelect; }; + child_principals?: { + select: PrincipalSelect; + first?: number; + filter?: PrincipalFilter; + orderBy?: PrincipalOrderBy[]; + }; principalEntities?: { select: PrincipalEntitySelect; first?: number; @@ -658,6 +721,12 @@ export type UserSelect = { type?: boolean; updatedAt?: boolean; username?: boolean; + ownedUserSetting?: { + select: UserSettingSelect; + }; + ownedUserSettingsSecurity?: { + select: UserSettingsSecuritySelect; + }; roleType?: { select: RoleTypeSelect; }; @@ -704,6 +773,30 @@ export type UserSelect = { orderBy?: WebauthnCredentialOrderBy[]; }; }; +export type UserSettingSelect = { + createdAt?: boolean; + id?: boolean; + ownerId?: boolean; + updatedAt?: boolean; + owner?: { + select: UserSelect; + }; +}; +export type UserSettingsSecuritySelect = { + backupCodesCount?: boolean; + createdAt?: boolean; + emailMfaEnabled?: boolean; + id?: boolean; + mfaEnrolledAt?: boolean; + mfaLastUsedAt?: boolean; + ownerId?: boolean; + smsMfaEnabled?: boolean; + totpEnabled?: boolean; + updatedAt?: boolean; + owner?: { + select: UserSelect; + }; +}; export type WebauthnCredentialSelect = { backupEligible?: boolean; backupState?: boolean; @@ -735,6 +828,8 @@ export interface AuditLogAuthFilter { and?: AuditLogAuthFilter[]; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `details` field. */ + details?: JSONFilter; /** Filter by the object’s `event` field. */ event?: StringFilter; /** Filter by the object’s `id` field. */ @@ -885,8 +980,18 @@ export interface PrincipalFilter { and?: PrincipalFilter[]; /** Filter by the object’s `bypassStepUp` field. */ bypassStepUp?: BooleanFilter; + /** Filter by the object’s `child_principals` relation. */ + child_principals?: PrincipalToManyPrincipalFilter; + /** `child_principals` exist. */ + child_principalsExist?: boolean; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBySessionId` field. */ + createdBySessionId?: UUIDFilter; + /** Filter by the object’s `depth` field. */ + depth?: IntFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `isReadOnly` field. */ @@ -901,6 +1006,12 @@ export interface PrincipalFilter { owner?: UserFilter; /** Filter by the object’s `ownerId` field. */ ownerId?: UUIDFilter; + /** Filter by the object’s `parentPrincipal` relation. */ + parentPrincipal?: PrincipalFilter; + /** A related `parentPrincipal` exists. */ + parentPrincipalExists?: boolean; + /** Filter by the object’s `parentPrincipalId` field. */ + parentPrincipalId?: UUIDFilter; /** Filter by the object’s `principalEntities` relation. */ principalEntities?: PrincipalToManyPrincipalEntityFilter; /** `principalEntities` exist. */ @@ -1033,6 +1144,14 @@ export interface UserFilter { not?: UserFilter; /** Checks for any expressions in this list. */ or?: UserFilter[]; + /** Filter by the object’s `ownedUserSetting` relation. */ + ownedUserSetting?: UserSettingFilter; + /** A related `ownedUserSetting` exists. */ + ownedUserSettingExists?: boolean; + /** Filter by the object’s `ownedUserSettingsSecurity` relation. */ + ownedUserSettingsSecurity?: UserSettingsSecurityFilter; + /** A related `ownedUserSettingsSecurity` exists. */ + ownedUserSettingsSecurityExists?: boolean; /** Filter by the object’s `phoneNumbers` relation. */ phoneNumbers?: UserToManyPhoneNumberFilter; /** `phoneNumbers` exist. */ @@ -1074,6 +1193,54 @@ export interface UserFilter { /** `webauthnCredentials` exist. */ webauthnCredentialsExist?: boolean; } +export interface UserSettingFilter { + /** Checks for all expressions in this list. */ + and?: UserSettingFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: UserSettingFilter; + /** Checks for any expressions in this list. */ + or?: UserSettingFilter[]; + /** Filter by the object’s `owner` relation. */ + owner?: UserFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} +export interface UserSettingsSecurityFilter { + /** Checks for all expressions in this list. */ + and?: UserSettingsSecurityFilter[]; + /** Filter by the object’s `backupCodesCount` field. */ + backupCodesCount?: IntFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `emailMfaEnabled` field. */ + emailMfaEnabled?: BooleanFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `mfaEnrolledAt` field. */ + mfaEnrolledAt?: DatetimeFilter; + /** Filter by the object’s `mfaLastUsedAt` field. */ + mfaLastUsedAt?: DatetimeFilter; + /** Negates the expression. */ + not?: UserSettingsSecurityFilter; + /** Checks for any expressions in this list. */ + or?: UserSettingsSecurityFilter[]; + /** Filter by the object’s `owner` relation. */ + owner?: UserFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `smsMfaEnabled` field. */ + smsMfaEnabled?: BooleanFilter; + /** Filter by the object’s `totpEnabled` field. */ + totpEnabled?: BooleanFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} export interface WebauthnCredentialFilter { /** Checks for all expressions in this list. */ and?: WebauthnCredentialFilter[]; @@ -1118,6 +1285,8 @@ export type AuditLogAuthOrderBy = | 'ACTOR_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' + | 'DETAILS_ASC' + | 'DETAILS_DESC' | 'EVENT_ASC' | 'EVENT_DESC' | 'ID_ASC' @@ -1236,6 +1405,12 @@ export type PrincipalOrderBy = | 'BYPASS_STEP_UP_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' + | 'CREATED_BY_SESSION_ID_ASC' + | 'CREATED_BY_SESSION_ID_DESC' + | 'DEPTH_ASC' + | 'DEPTH_DESC' + | 'EXPIRES_AT_ASC' + | 'EXPIRES_AT_DESC' | 'ID_ASC' | 'ID_DESC' | 'IS_READ_ONLY_ASC' @@ -1245,6 +1420,8 @@ export type PrincipalOrderBy = | 'NATURAL' | 'OWNER_ID_ASC' | 'OWNER_ID_DESC' + | 'PARENT_PRINCIPAL_ID_ASC' + | 'PARENT_PRINCIPAL_ID_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'UPDATED_AT_ASC' @@ -1343,6 +1520,42 @@ export type UserOrderBy = | 'UPDATED_AT_DESC' | 'USERNAME_ASC' | 'USERNAME_DESC'; +export type UserSettingOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type UserSettingsSecurityOrderBy = + | 'BACKUP_CODES_COUNT_ASC' + | 'BACKUP_CODES_COUNT_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'EMAIL_MFA_ENABLED_ASC' + | 'EMAIL_MFA_ENABLED_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'MFA_ENROLLED_AT_ASC' + | 'MFA_ENROLLED_AT_DESC' + | 'MFA_LAST_USED_AT_ASC' + | 'MFA_LAST_USED_AT_DESC' + | 'NATURAL' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'SMS_MFA_ENABLED_ASC' + | 'SMS_MFA_ENABLED_DESC' + | 'TOTP_ENABLED_ASC' + | 'TOTP_ENABLED_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; export type WebauthnCredentialOrderBy = | 'BACKUP_ELIGIBLE_ASC' | 'BACKUP_ELIGIBLE_DESC' @@ -1380,6 +1593,7 @@ export interface CreateAuditLogAuthInput { clientMutationId?: string; auditLogAuth: { actorId?: string; + details?: Record; event: string; ipAddress?: string; origin?: ConstructiveInternalTypeOrigin; @@ -1389,6 +1603,7 @@ export interface CreateAuditLogAuthInput { } export interface AuditLogAuthPatch { actorId?: string | null; + details?: Record | null; event?: string | null; ipAddress?: string | null; origin?: ConstructiveInternalTypeOrigin | null; @@ -1546,18 +1761,26 @@ export interface CreatePrincipalInput { clientMutationId?: string; principal: { bypassStepUp?: boolean; + createdBySessionId: string; + depth?: number; + expiresAt?: string; isReadOnly?: boolean; name?: string; ownerId: string; + parentPrincipalId: string; useAdminOwner?: boolean; userId: string; }; } export interface PrincipalPatch { bypassStepUp?: boolean | null; + createdBySessionId?: string | null; + depth?: number | null; + expiresAt?: string | null; isReadOnly?: boolean | null; name?: string | null; ownerId?: string | null; + parentPrincipalId?: string | null; useAdminOwner?: boolean | null; userId?: string | null; } @@ -1689,6 +1912,54 @@ export interface DeleteUserInput { clientMutationId?: string; id: string; } +export interface CreateUserSettingInput { + clientMutationId?: string; + userSetting: { + ownerId?: string; + }; +} +export interface UserSettingPatch { + ownerId?: string | null; +} +export interface UpdateUserSettingInput { + clientMutationId?: string; + id: string; + userSettingPatch: UserSettingPatch; +} +export interface DeleteUserSettingInput { + clientMutationId?: string; + id: string; +} +export interface CreateUserSettingsSecurityInput { + clientMutationId?: string; + userSettingsSecurity: { + backupCodesCount?: number; + emailMfaEnabled?: boolean; + mfaEnrolledAt?: string; + mfaLastUsedAt?: string; + ownerId?: string; + smsMfaEnabled?: boolean; + totpEnabled?: boolean; + }; +} +export interface UserSettingsSecurityPatch { + backupCodesCount?: number | null; + emailMfaEnabled?: boolean | null; + mfaEnrolledAt?: string | null; + mfaLastUsedAt?: string | null; + ownerId?: string | null; + smsMfaEnabled?: boolean | null; + totpEnabled?: boolean | null; +} +export interface UpdateUserSettingsSecurityInput { + clientMutationId?: string; + id: string; + userSettingsSecurityPatch: UserSettingsSecurityPatch; +} +export interface DeleteUserSettingsSecurityInput { + clientMutationId?: string; + id: string; +} export interface CreateWebauthnCredentialInput { clientMutationId?: string; webauthnCredential: { @@ -1730,6 +2001,7 @@ export interface DeleteWebauthnCredentialInput { // ============ Connection Fields Map ============ export const connectionFieldsMap = { Principal: { + child_principals: 'Principal', principalEntities: 'PrincipalEntity', principalScopeOverrides: 'PrincipalScopeOverride', }, @@ -1744,15 +2016,35 @@ export const connectionFieldsMap = { }, } as Record>; // ============ Custom Input Types (from schema) ============ +export interface ApproveDeviceInput { + approvalToken: string; + clientMutationId?: string; +} export interface CheckPasswordInput { clientMutationId?: string; password?: string; } +export interface CompleteMfaChallengeInput { + authMethod?: string; + clientMutationId?: string; + credentialKind?: string; + deviceToken?: string; + mfaChallengeToken?: string; + mfaMethod?: string; + rememberMe?: boolean; + totpCode?: string; + trustDevice?: boolean; + userId?: string; +} export interface ConfirmDeleteAccountInput { clientMutationId?: string; token?: string; userId?: string; } +export interface ConfirmTotpSetupInput { + clientMutationId?: string; + totpValue: string; +} export interface CreateApiKeyInput { accessLevel?: string; clientMutationId?: string; @@ -1761,6 +2053,16 @@ export interface CreateApiKeyInput { mfaLevel?: string; principalId?: string; } +export interface CreateChildPrincipalInput { + allowedMask?: string; + clientMutationId?: string; + entityIds?: string[]; + expiresAt?: string; + intent?: string; + isReadOnly?: boolean; + name?: string; + parentPrincipalId?: string; +} export interface CreateOrgApiKeyInput { accessLevel?: string; clientMutationId?: string; @@ -1778,14 +2080,40 @@ export interface CreateOrgPrincipalInput { orgId?: string; useAdminOwner?: boolean; } +export interface CreatePrincipalFromPresetInput { + clientMutationId?: string; + entityIds?: string[]; + name?: string; + overrides?: Record; + slug?: string; +} export interface DeleteOrgPrincipalInput { clientMutationId?: string; principalId?: string; } +export interface DisableEmailMfaInput { + clientMutationId?: string; +} +export interface DisableSmsMfaInput { + clientMutationId?: string; +} +export interface DisableTotpInput { + clientMutationId?: string; + totpValue: string; +} export interface DisconnectAccountInput { accountId: string; clientMutationId?: string; } +export interface EnableEmailMfaInput { + clientMutationId?: string; +} +export interface EnableSmsMfaInput { + clientMutationId?: string; +} +export interface EnableTotpInput { + clientMutationId?: string; +} export interface ExtendTokenExpiresInput { amount?: IntervalInput; clientMutationId?: string; @@ -1794,12 +2122,21 @@ export interface ForgotPasswordInput { clientMutationId?: string; email?: ConstructiveInternalTypeEmail; } +export interface GenerateBackupCodesInput { + clientMutationId?: string; +} export interface LinkIdentityInput { clientMutationId?: string; details?: Record; identifier: string; service: string; } +export interface MintAccessTokenInput { + accessTtl?: IntervalInput; + clientMutationId?: string; + intent?: string; + principalId?: string; +} export interface ProvisionBucketInput { /** The logical bucket key (e.g., "public", "private") */ bucketKey: string; @@ -1814,6 +2151,10 @@ export interface ProvisionNewUserInput { email?: string; password?: string; } +export interface RefreshAccessTokenInput { + clientMutationId?: string; + token?: string; +} export interface RequestCrossOriginTokenInput { clientMutationId?: string; email?: string; @@ -1852,6 +2193,20 @@ export interface SetPasswordInput { currentPassword?: string; newPassword?: string; } +export interface SetPrincipalEntitiesInput { + clientMutationId?: string; + entityIds?: string[]; + principalId?: string; +} +export interface SetPrincipalScopeInput { + allowedMask?: string; + clientMutationId?: string; + isActive?: boolean; + isReadOnly?: boolean; + membershipType?: number; + principalId?: string; + useAdminOwner?: boolean; +} export interface SignInInput { clientMutationId?: string; credentialKind?: string; @@ -2075,6 +2430,15 @@ export interface ConstructiveInternalTypeEmailFilter { /** Starts with the specified string (case-insensitive). */ startsWithInsensitive?: ConstructiveInternalTypeEmail; } +/** A filter to be used against many `Principal` object types. All fields are combined with a logical ‘and.’ */ +export interface PrincipalToManyPrincipalFilter { + /** Filters to entities where every related entity matches. */ + every?: PrincipalFilter; + /** Filters to entities where no related entity matches. */ + none?: PrincipalFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PrincipalFilter; +} /** A filter to be used against many `PrincipalEntity` object types. All fields are combined with a logical ‘and.’ */ export interface PrincipalToManyPrincipalEntityFilter { /** Filters to entities where every related entity matches. */ @@ -2301,6 +2665,8 @@ export interface AuditLogAuthInput { /** User who performed the authentication action; NULL if user was deleted */ actorId?: string; createdAt?: string; + /** Event-specific structured payload (e.g. preset slug and catalog commit id for create_principal_from_preset) */ + details?: Record; /** Type of authentication event (e.g. sign_in, sign_up, password_change, verify_email) */ event: string; /** Unique identifier for each audit event (uuidv7 provides temporal ordering) */ @@ -2361,18 +2727,6 @@ export interface PhoneNumberInput { ownerId?: string; updatedAt?: string; } -/** An input for mutations affecting `PrincipalEntity` */ -export interface PrincipalEntityInput { - createdAt?: string; - /** The organization this principal is scoped to */ - entityId: string; - id?: string; - /** Denormalized owner_id from principals table for RLS */ - ownerId: string; - /** The principal this scoping row belongs to */ - principalId: string; - updatedAt?: string; -} /** An input for mutations affecting `RoleType` */ export interface RoleTypeInput { id: number; @@ -2388,6 +2742,32 @@ export interface UserInput { updatedAt?: string; username?: string; } +/** An input for mutations affecting `UserSetting` */ +export interface UserSettingInput { + createdAt?: string; + id?: string; + ownerId?: string; + updatedAt?: string; +} +/** An input for mutations affecting `UserSettingsSecurity` */ +export interface UserSettingsSecurityInput { + /** Number of remaining unused backup codes */ + backupCodesCount?: number; + createdAt?: string; + /** Whether email-based MFA codes are active for this user */ + emailMfaEnabled?: boolean; + id?: string; + /** When the first MFA method was enabled */ + mfaEnrolledAt?: string; + /** When MFA was last successfully verified */ + mfaLastUsedAt?: string; + ownerId?: string; + /** Whether SMS-based MFA codes are active for this user */ + smsMfaEnabled?: boolean; + /** Whether TOTP (authenticator app) MFA is active for this user */ + totpEnabled?: boolean; + updatedAt?: string; +} /** An input for mutations affecting `WebauthnCredential` */ export interface WebauthnCredentialInput { /** Whether this credential is eligible for backup (syncing) per the authenticator's flags at registration. */ @@ -2434,6 +2814,61 @@ export interface IntervalInput { /** A quantity of years. */ years?: number; } +/** A filter to be used against `Principal` object types. All fields are combined with a logical ‘and.’ */ +export interface PrincipalFilter { + /** Checks for all expressions in this list. */ + and?: PrincipalFilter[]; + /** Filter by the object’s `bypassStepUp` field. */ + bypassStepUp?: BooleanFilter; + /** Filter by the object’s `child_principals` relation. */ + child_principals?: PrincipalToManyPrincipalFilter; + /** `child_principals` exist. */ + child_principalsExist?: boolean; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBySessionId` field. */ + createdBySessionId?: UUIDFilter; + /** Filter by the object’s `depth` field. */ + depth?: IntFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isReadOnly` field. */ + isReadOnly?: BooleanFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: PrincipalFilter; + /** Checks for any expressions in this list. */ + or?: PrincipalFilter[]; + /** Filter by the object’s `owner` relation. */ + owner?: UserFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `parentPrincipal` relation. */ + parentPrincipal?: PrincipalFilter; + /** A related `parentPrincipal` exists. */ + parentPrincipalExists?: boolean; + /** Filter by the object’s `parentPrincipalId` field. */ + parentPrincipalId?: UUIDFilter; + /** Filter by the object’s `principalEntities` relation. */ + principalEntities?: PrincipalToManyPrincipalEntityFilter; + /** `principalEntities` exist. */ + principalEntitiesExist?: boolean; + /** Filter by the object’s `principalScopeOverrides` relation. */ + principalScopeOverrides?: PrincipalToManyPrincipalScopeOverrideFilter; + /** `principalScopeOverrides` exist. */ + principalScopeOverridesExist?: boolean; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `useAdminOwner` field. */ + useAdminOwner?: BooleanFilter; + /** Filter by the object’s `user` relation. */ + user?: UserFilter; + /** Filter by the object’s `userId` field. */ + userId?: UUIDFilter; +} /** A filter to be used against `PrincipalEntity` object types. All fields are combined with a logical ‘and.’ */ export interface PrincipalEntityFilter { /** Checks for all expressions in this list. */ @@ -2502,6 +2937,8 @@ export interface AuditLogAuthFilter { and?: AuditLogAuthFilter[]; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `details` field. */ + details?: JSONFilter; /** Filter by the object’s `event` field. */ event?: StringFilter; /** Filter by the object’s `id` field. */ @@ -2602,47 +3039,8 @@ export interface PhoneNumberFilter { /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } -/** A filter to be used against `Principal` object types. All fields are combined with a logical ‘and.’ */ -export interface PrincipalFilter { - /** Checks for all expressions in this list. */ - and?: PrincipalFilter[]; - /** Filter by the object’s `bypassStepUp` field. */ - bypassStepUp?: BooleanFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isReadOnly` field. */ - isReadOnly?: BooleanFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Negates the expression. */ - not?: PrincipalFilter; - /** Checks for any expressions in this list. */ - or?: PrincipalFilter[]; - /** Filter by the object’s `owner` relation. */ - owner?: UserFilter; - /** Filter by the object’s `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `principalEntities` relation. */ - principalEntities?: PrincipalToManyPrincipalEntityFilter; - /** `principalEntities` exist. */ - principalEntitiesExist?: boolean; - /** Filter by the object’s `principalScopeOverrides` relation. */ - principalScopeOverrides?: PrincipalToManyPrincipalScopeOverrideFilter; - /** `principalScopeOverrides` exist. */ - principalScopeOverridesExist?: boolean; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `useAdminOwner` field. */ - useAdminOwner?: BooleanFilter; - /** Filter by the object’s `user` relation. */ - user?: UserFilter; - /** Filter by the object’s `userId` field. */ - userId?: UUIDFilter; -} -/** A filter to be used against `WebauthnCredential` object types. All fields are combined with a logical ‘and.’ */ -export interface WebauthnCredentialFilter { +/** A filter to be used against `WebauthnCredential` object types. All fields are combined with a logical ‘and.’ */ +export interface WebauthnCredentialFilter { /** Checks for all expressions in this list. */ and?: WebauthnCredentialFilter[]; /** Filter by the object’s `backupEligible` field. */ @@ -2680,100 +3078,33 @@ export interface WebauthnCredentialFilter { /** Filter by the object’s `webauthnUserId` field. */ webauthnUserId?: StringFilter; } -/** A filter to be used against Datetime fields. All fields are combined with a logical ‘and.’ */ -export interface DatetimeFilter { +/** 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?: string; + distinctFrom?: boolean; /** Equal to the specified value. */ - equalTo?: string; + equalTo?: boolean; /** Greater than the specified value. */ - greaterThan?: string; + greaterThan?: boolean; /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: string; + greaterThanOrEqualTo?: boolean; /** Included in the specified list. */ - in?: string[]; + in?: boolean[]; /** Is null (if `true` is specified) or is not null (if `false` is specified). */ isNull?: boolean; /** Less than the specified value. */ - lessThan?: string; + lessThan?: boolean; /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: string; + lessThanOrEqualTo?: boolean; /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: string; + notDistinctFrom?: boolean; /** Not equal to the specified value. */ - notEqualTo?: string; + notEqualTo?: boolean; /** Not included in the specified list. */ - notIn?: string[]; -} -/** A filter to be used against `User` object types. All fields are combined with a logical ‘and.’ */ -export interface UserFilter { - /** Checks for all expressions in this list. */ - and?: UserFilter[]; - /** Filter by the object’s `authAuditLog` relation. */ - authAuditLog?: UserToManyAuditLogAuthFilter; - /** `authAuditLog` exist. */ - authAuditLogExist?: boolean; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `cryptoAddresses` relation. */ - cryptoAddresses?: UserToManyCryptoAddressFilter; - /** `cryptoAddresses` exist. */ - cryptoAddressesExist?: boolean; - /** Filter by the object’s `displayName` field. */ - displayName?: StringTrgmFilter; - /** Filter by the object’s `emails` relation. */ - emails?: UserToManyEmailFilter; - /** `emails` exist. */ - emailsExist?: boolean; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Negates the expression. */ - not?: UserFilter; - /** Checks for any expressions in this list. */ - or?: UserFilter[]; - /** Filter by the object’s `phoneNumbers` relation. */ - phoneNumbers?: UserToManyPhoneNumberFilter; - /** `phoneNumbers` exist. */ - phoneNumbersExist?: boolean; - /** Filter by the object’s `principals` relation. */ - principals?: UserToManyPrincipalFilter; - /** `principals` exist. */ - principalsExist?: boolean; - /** Filter by the object’s `profilePicture` field. */ - profilePicture?: ConstructiveInternalTypeImageFilter; - /** Filter by the object’s `roleType` relation. */ - roleType?: RoleTypeFilter; - /** Filter by the object’s `scopedPrincipals` relation. */ - scopedPrincipals?: UserToManyPrincipalEntityFilter; - /** `scopedPrincipals` exist. */ - scopedPrincipalsExist?: boolean; - /** Filter by the object’s `searchTsv` field. */ - searchTsv?: FullTextFilter; - /** TRGM search on the `display_name` column. */ - trgmDisplayName?: TrgmSearchInput; - /** TSV search on the `search_tsv` column. */ - tsvSearchTsv?: string; - /** Filter by the object’s `type` field. */ - type?: IntFilter; - /** - * Composite unified search. Provide a search string and it will be dispatched to - * all text-compatible search algorithms (tsvector, BM25, pg_trgm) - * simultaneously. When the LLM plugin is active, pgvector also participates via - * auto-embedding. Rows matching ANY algorithm are returned. All matching score - * fields are populated. - */ - unifiedSearch?: string; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `username` field. */ - username?: StringTrgmFilter; - /** Filter by the object’s `webauthnCredentials` relation. */ - webauthnCredentials?: UserToManyWebauthnCredentialFilter; - /** `webauthnCredentials` exist. */ - webauthnCredentialsExist?: boolean; + notIn?: boolean[]; } -/** A filter to be used against UUID fields. All fields are combined with a logical ‘and.’ */ -export interface UUIDFilter { +/** 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. */ @@ -2797,8 +3128,8 @@ export interface UUIDFilter { /** Not included in the specified list. */ notIn?: string[]; } -/** A filter to be used against BitString fields. All fields are combined with a logical ‘and.’ */ -export interface BitStringFilter { +/** 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. */ @@ -2822,31 +3153,6 @@ export interface BitStringFilter { /** 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 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. */ @@ -2929,25 +3235,160 @@ export interface StringFilter { /** 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; + 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 filter to be used against `User` object types. All fields are combined with a logical ‘and.’ */ +export interface UserFilter { + /** Checks for all expressions in this list. */ + and?: UserFilter[]; + /** Filter by the object’s `authAuditLog` relation. */ + authAuditLog?: UserToManyAuditLogAuthFilter; + /** `authAuditLog` exist. */ + authAuditLogExist?: boolean; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `cryptoAddresses` relation. */ + cryptoAddresses?: UserToManyCryptoAddressFilter; + /** `cryptoAddresses` exist. */ + cryptoAddressesExist?: boolean; + /** Filter by the object’s `displayName` field. */ + displayName?: StringTrgmFilter; + /** Filter by the object’s `emails` relation. */ + emails?: UserToManyEmailFilter; + /** `emails` exist. */ + emailsExist?: boolean; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: UserFilter; + /** Checks for any expressions in this list. */ + or?: UserFilter[]; + /** Filter by the object’s `ownedUserSetting` relation. */ + ownedUserSetting?: UserSettingFilter; + /** A related `ownedUserSetting` exists. */ + ownedUserSettingExists?: boolean; + /** Filter by the object’s `ownedUserSettingsSecurity` relation. */ + ownedUserSettingsSecurity?: UserSettingsSecurityFilter; + /** A related `ownedUserSettingsSecurity` exists. */ + ownedUserSettingsSecurityExists?: boolean; + /** Filter by the object’s `phoneNumbers` relation. */ + phoneNumbers?: UserToManyPhoneNumberFilter; + /** `phoneNumbers` exist. */ + phoneNumbersExist?: boolean; + /** Filter by the object’s `principals` relation. */ + principals?: UserToManyPrincipalFilter; + /** `principals` exist. */ + principalsExist?: boolean; + /** Filter by the object’s `profilePicture` field. */ + profilePicture?: ConstructiveInternalTypeImageFilter; + /** Filter by the object’s `roleType` relation. */ + roleType?: RoleTypeFilter; + /** Filter by the object’s `scopedPrincipals` relation. */ + scopedPrincipals?: UserToManyPrincipalEntityFilter; + /** `scopedPrincipals` exist. */ + scopedPrincipalsExist?: boolean; + /** Filter by the object’s `searchTsv` field. */ + searchTsv?: FullTextFilter; + /** TRGM search on the `display_name` column. */ + trgmDisplayName?: TrgmSearchInput; + /** TSV search on the `search_tsv` column. */ + tsvSearchTsv?: string; + /** Filter by the object’s `type` field. */ + type?: IntFilter; + /** + * Composite unified search. Provide a search string and it will be dispatched to + * all text-compatible search algorithms (tsvector, BM25, pg_trgm) + * simultaneously. When the LLM plugin is active, pgvector also participates via + * auto-embedding. Rows matching ANY algorithm are returned. All matching score + * fields are populated. + */ + unifiedSearch?: string; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `username` field. */ + username?: StringTrgmFilter; + /** Filter by the object’s `webauthnCredentials` relation. */ + webauthnCredentials?: UserToManyWebauthnCredentialFilter; + /** `webauthnCredentials` exist. */ + webauthnCredentialsExist?: boolean; +} +/** 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 JSON fields. All fields are combined with a logical ‘and.’ */ +export interface JSONFilter { + /** Contained by the specified JSON. */ + containedBy?: Record; + /** Contains the specified JSON. */ + contains?: Record; + /** Contains all of the specified keys. */ + containsAllKeys?: string[]; + /** Contains any of the specified keys. */ + containsAnyKeys?: string[]; + /** Contains the specified key. */ + containsKey?: string; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: Record; + /** Equal to the specified value. */ + equalTo?: Record; + /** Greater than the specified value. */ + greaterThan?: Record; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: Record; + /** Included in the specified list. */ + in?: Record[]; + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Less than the specified value. */ + lessThan?: Record; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: Record; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: Record; + /** Not equal to the specified value. */ + notEqualTo?: Record; + /** Not included in the specified list. */ + notIn?: Record[]; } /** A filter to be used against InternetAddress fields. All fields are combined with a logical ‘and.’ */ export interface InternetAddressFilter { @@ -3048,6 +3489,56 @@ export interface StringListFilter { /** Overlaps the specified list of values. */ overlaps?: string[]; } +/** A filter to be used against `UserSetting` object types. All fields are combined with a logical ‘and.’ */ +export interface UserSettingFilter { + /** Checks for all expressions in this list. */ + and?: UserSettingFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: UserSettingFilter; + /** Checks for any expressions in this list. */ + or?: UserSettingFilter[]; + /** Filter by the object’s `owner` relation. */ + owner?: UserFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} +/** A filter to be used against `UserSettingsSecurity` object types. All fields are combined with a logical ‘and.’ */ +export interface UserSettingsSecurityFilter { + /** Checks for all expressions in this list. */ + and?: UserSettingsSecurityFilter[]; + /** Filter by the object’s `backupCodesCount` field. */ + backupCodesCount?: IntFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `emailMfaEnabled` field. */ + emailMfaEnabled?: BooleanFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `mfaEnrolledAt` field. */ + mfaEnrolledAt?: DatetimeFilter; + /** Filter by the object’s `mfaLastUsedAt` field. */ + mfaLastUsedAt?: DatetimeFilter; + /** Negates the expression. */ + not?: UserSettingsSecurityFilter; + /** Checks for any expressions in this list. */ + or?: UserSettingsSecurityFilter[]; + /** Filter by the object’s `owner` relation. */ + owner?: UserFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `smsMfaEnabled` field. */ + smsMfaEnabled?: BooleanFilter; + /** Filter by the object’s `totpEnabled` field. */ + totpEnabled?: BooleanFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} /** A filter to be used against `RoleType` object types. All fields are combined with a logical ‘and.’ */ export interface RoleTypeFilter { /** Checks for all expressions in this list. */ @@ -3081,12 +3572,42 @@ export interface FullTextFilter { notIn?: string[]; } // ============ Payload/Return Types (for custom operations) ============ +export interface GetMfaStatusRecord { + backupCodesCount?: number | null; + emailMfaEnabled?: boolean | null; + smsMfaEnabled?: boolean | null; + totpEnabled?: boolean | null; +} +export type GetMfaStatusRecordSelect = { + backupCodesCount?: boolean; + emailMfaEnabled?: boolean; + smsMfaEnabled?: boolean; + totpEnabled?: boolean; +}; +export interface ApproveDevicePayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type ApproveDevicePayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; export interface CheckPasswordPayload { clientMutationId?: string | null; } export type CheckPasswordPayloadSelect = { clientMutationId?: boolean; }; +export interface CompleteMfaChallengePayload { + clientMutationId?: string | null; + result?: CompleteMfaChallengeRecord | null; +} +export type CompleteMfaChallengePayloadSelect = { + clientMutationId?: boolean; + result?: { + select: CompleteMfaChallengeRecordSelect; + }; +}; export interface ConfirmDeleteAccountPayload { clientMutationId?: string | null; result?: boolean | null; @@ -3095,6 +3616,14 @@ export type ConfirmDeleteAccountPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface ConfirmTotpSetupPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type ConfirmTotpSetupPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; export interface CreateApiKeyPayload { clientMutationId?: string | null; result?: CreateApiKeyRecord | null; @@ -3105,6 +3634,14 @@ export type CreateApiKeyPayloadSelect = { select: CreateApiKeyRecordSelect; }; }; +export interface CreateChildPrincipalPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type CreateChildPrincipalPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; export interface CreateOrgApiKeyPayload { clientMutationId?: string | null; result?: CreateOrgApiKeyRecord | null; @@ -3123,6 +3660,14 @@ export type CreateOrgPrincipalPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface CreatePrincipalFromPresetPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type CreatePrincipalFromPresetPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; export interface DeleteOrgPrincipalPayload { clientMutationId?: string | null; result?: boolean | null; @@ -3139,6 +3684,30 @@ export type DeletePrincipalPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface DisableEmailMfaPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type DisableEmailMfaPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface DisableSmsMfaPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type DisableSmsMfaPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface DisableTotpPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type DisableTotpPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; export interface DisconnectAccountPayload { clientMutationId?: string | null; result?: boolean | null; @@ -3147,6 +3716,30 @@ export type DisconnectAccountPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface EnableEmailMfaPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type EnableEmailMfaPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface EnableSmsMfaPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type EnableSmsMfaPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface EnableTotpPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type EnableTotpPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; export interface ExtendTokenExpiresPayload { clientMutationId?: string | null; result?: ExtendTokenExpiresRecord[] | null; @@ -3163,6 +3756,14 @@ export interface ForgotPasswordPayload { export type ForgotPasswordPayloadSelect = { clientMutationId?: boolean; }; +export interface GenerateBackupCodesPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type GenerateBackupCodesPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; export interface LinkIdentityPayload { clientMutationId?: string | null; result?: boolean | null; @@ -3171,27 +3772,30 @@ export type LinkIdentityPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface MintAccessTokenPayload { + clientMutationId?: string | null; + result?: MintAccessTokenRecord | null; +} +export type MintAccessTokenPayloadSelect = { + clientMutationId?: boolean; + result?: { + select: MintAccessTokenRecordSelect; + }; +}; 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; + /** The logical bucket row that was queued for reconciliation. */ + bucketId: string; + bucketKey: string; + /** The reconciler job enqueued to provision this bucket. */ + jobId: string; + /** The physical bucket name already recorded, or null when reconciliation has not completed. */ + physicalName?: string | null; } export type ProvisionBucketPayloadSelect = { - accessType?: boolean; - bucketName?: boolean; - endpoint?: boolean; - error?: boolean; - provider?: boolean; - success?: boolean; + bucketId?: boolean; + bucketKey?: boolean; + jobId?: boolean; + physicalName?: boolean; }; export interface ProvisionNewUserPayload { clientMutationId?: string | null; @@ -3201,6 +3805,16 @@ export type ProvisionNewUserPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface RefreshAccessTokenPayload { + clientMutationId?: string | null; + result?: RefreshAccessTokenRecord | null; +} +export type RefreshAccessTokenPayloadSelect = { + clientMutationId?: boolean; + result?: { + select: RefreshAccessTokenRecordSelect; + }; +}; export interface RequestCrossOriginTokenPayload { clientMutationId?: string | null; result?: string | null; @@ -3265,6 +3879,22 @@ export type SetPasswordPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface SetPrincipalEntitiesPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type SetPrincipalEntitiesPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface SetPrincipalScopePayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type SetPrincipalScopePayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; export interface SignInPayload { clientMutationId?: string | null; result?: SignInRecord | null; @@ -3341,6 +3971,14 @@ export type SignUpSmsPayloadSelect = { select: SignUpSmsRecordSelect; }; }; +export interface UpdatePrincipalPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type UpdatePrincipalPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; export interface VerifyEmailPayload { clientMutationId?: string | null; result?: boolean | null; @@ -3553,51 +4191,6 @@ export type CreatePrincipalPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; -export interface CreatePrincipalEntityPayload { - clientMutationId?: string | null; - /** The `PrincipalEntity` that was created by this mutation. */ - principalEntity?: PrincipalEntity | null; - principalEntityEdge?: PrincipalEntityEdge | null; -} -export type CreatePrincipalEntityPayloadSelect = { - clientMutationId?: boolean; - principalEntity?: { - select: PrincipalEntitySelect; - }; - principalEntityEdge?: { - select: PrincipalEntityEdgeSelect; - }; -}; -export interface UpdatePrincipalEntityPayload { - clientMutationId?: string | null; - /** The `PrincipalEntity` that was updated by this mutation. */ - principalEntity?: PrincipalEntity | null; - principalEntityEdge?: PrincipalEntityEdge | null; -} -export type UpdatePrincipalEntityPayloadSelect = { - clientMutationId?: boolean; - principalEntity?: { - select: PrincipalEntitySelect; - }; - principalEntityEdge?: { - select: PrincipalEntityEdgeSelect; - }; -}; -export interface DeletePrincipalEntityPayload { - clientMutationId?: string | null; - /** The `PrincipalEntity` that was deleted by this mutation. */ - principalEntity?: PrincipalEntity | null; - principalEntityEdge?: PrincipalEntityEdge | null; -} -export type DeletePrincipalEntityPayloadSelect = { - clientMutationId?: boolean; - principalEntity?: { - select: PrincipalEntitySelect; - }; - principalEntityEdge?: { - select: PrincipalEntityEdgeSelect; - }; -}; export interface CreateRoleTypePayload { clientMutationId?: string | null; /** The `RoleType` that was created by this mutation. */ @@ -3688,6 +4281,96 @@ export type DeleteUserPayloadSelect = { select: UserEdgeSelect; }; }; +export interface CreateUserSettingPayload { + clientMutationId?: string | null; + /** The `UserSetting` that was created by this mutation. */ + userSetting?: UserSetting | null; + userSettingEdge?: UserSettingEdge | null; +} +export type CreateUserSettingPayloadSelect = { + clientMutationId?: boolean; + userSetting?: { + select: UserSettingSelect; + }; + userSettingEdge?: { + select: UserSettingEdgeSelect; + }; +}; +export interface UpdateUserSettingPayload { + clientMutationId?: string | null; + /** The `UserSetting` that was updated by this mutation. */ + userSetting?: UserSetting | null; + userSettingEdge?: UserSettingEdge | null; +} +export type UpdateUserSettingPayloadSelect = { + clientMutationId?: boolean; + userSetting?: { + select: UserSettingSelect; + }; + userSettingEdge?: { + select: UserSettingEdgeSelect; + }; +}; +export interface DeleteUserSettingPayload { + clientMutationId?: string | null; + /** The `UserSetting` that was deleted by this mutation. */ + userSetting?: UserSetting | null; + userSettingEdge?: UserSettingEdge | null; +} +export type DeleteUserSettingPayloadSelect = { + clientMutationId?: boolean; + userSetting?: { + select: UserSettingSelect; + }; + userSettingEdge?: { + select: UserSettingEdgeSelect; + }; +}; +export interface CreateUserSettingsSecurityPayload { + clientMutationId?: string | null; + /** The `UserSettingsSecurity` that was created by this mutation. */ + userSettingsSecurity?: UserSettingsSecurity | null; + userSettingsSecurityEdge?: UserSettingsSecurityEdge | null; +} +export type CreateUserSettingsSecurityPayloadSelect = { + clientMutationId?: boolean; + userSettingsSecurity?: { + select: UserSettingsSecuritySelect; + }; + userSettingsSecurityEdge?: { + select: UserSettingsSecurityEdgeSelect; + }; +}; +export interface UpdateUserSettingsSecurityPayload { + clientMutationId?: string | null; + /** The `UserSettingsSecurity` that was updated by this mutation. */ + userSettingsSecurity?: UserSettingsSecurity | null; + userSettingsSecurityEdge?: UserSettingsSecurityEdge | null; +} +export type UpdateUserSettingsSecurityPayloadSelect = { + clientMutationId?: boolean; + userSettingsSecurity?: { + select: UserSettingsSecuritySelect; + }; + userSettingsSecurityEdge?: { + select: UserSettingsSecurityEdgeSelect; + }; +}; +export interface DeleteUserSettingsSecurityPayload { + clientMutationId?: string | null; + /** The `UserSettingsSecurity` that was deleted by this mutation. */ + userSettingsSecurity?: UserSettingsSecurity | null; + userSettingsSecurityEdge?: UserSettingsSecurityEdge | null; +} +export type DeleteUserSettingsSecurityPayloadSelect = { + clientMutationId?: boolean; + userSettingsSecurity?: { + select: UserSettingsSecuritySelect; + }; + userSettingsSecurityEdge?: { + select: UserSettingsSecurityEdgeSelect; + }; +}; export interface CreateWebauthnCredentialPayload { clientMutationId?: string | null; /** The `WebauthnCredential` that was created by this mutation. */ @@ -3733,6 +4416,24 @@ export type DeleteWebauthnCredentialPayloadSelect = { select: WebauthnCredentialEdgeSelect; }; }; +export interface CompleteMfaChallengeRecord { + accessToken?: string | null; + accessTokenExpiresAt?: string | null; + deviceApprovalRequired?: boolean | null; + id?: string | null; + isVerified?: boolean | null; + outDeviceToken?: string | null; + outUserId?: string | null; +} +export type CompleteMfaChallengeRecordSelect = { + accessToken?: boolean; + accessTokenExpiresAt?: boolean; + deviceApprovalRequired?: boolean; + id?: boolean; + isVerified?: boolean; + outDeviceToken?: boolean; + outUserId?: boolean; +}; export interface CreateApiKeyRecord { apiKey?: string | null; expiresAt?: string | null; @@ -3763,23 +4464,59 @@ export type ExtendTokenExpiresRecordSelect = { id?: boolean; sessionId?: boolean; }; +export interface MintAccessTokenRecord { + accessExpiresAt?: string | null; + accessToken?: string | null; + principalUserId?: string | null; + refreshExpiresAt?: string | null; + refreshToken?: string | null; + sessionId?: string | null; +} +export type MintAccessTokenRecordSelect = { + accessExpiresAt?: boolean; + accessToken?: boolean; + principalUserId?: boolean; + refreshExpiresAt?: boolean; + refreshToken?: boolean; + sessionId?: boolean; +}; +export interface RefreshAccessTokenRecord { + accessExpiresAt?: string | null; + accessToken?: string | null; + principalUserId?: string | null; + refreshExpiresAt?: string | null; + refreshToken?: string | null; + sessionId?: string | null; +} +export type RefreshAccessTokenRecordSelect = { + accessExpiresAt?: boolean; + accessToken?: boolean; + principalUserId?: boolean; + refreshExpiresAt?: boolean; + refreshToken?: boolean; + sessionId?: boolean; +}; export interface SignInRecord { accessToken?: string | null; accessTokenExpiresAt?: string | null; + deviceApprovalRequired?: boolean | null; id?: string | null; isVerified?: boolean | null; mfaChallengeToken?: string | null; mfaRequired?: boolean | null; + outDeviceToken?: string | null; totpEnabled?: boolean | null; userId?: string | null; } export type SignInRecordSelect = { accessToken?: boolean; accessTokenExpiresAt?: boolean; + deviceApprovalRequired?: boolean; id?: boolean; isVerified?: boolean; mfaChallengeToken?: boolean; mfaRequired?: boolean; + outDeviceToken?: boolean; totpEnabled?: boolean; userId?: boolean; }; @@ -3802,21 +4539,29 @@ export type SignInCrossOriginRecordSelect = { export interface SignInMagicLinkRecord { accessToken?: string | null; accessTokenExpiresAt?: string | null; + deviceApprovalRequired?: boolean | null; + outDeviceToken?: string | null; userId?: string | null; } export type SignInMagicLinkRecordSelect = { accessToken?: boolean; accessTokenExpiresAt?: boolean; + deviceApprovalRequired?: boolean; + outDeviceToken?: boolean; userId?: boolean; }; export interface SignInSmsOtpRecord { accessToken?: string | null; accessTokenExpiresAt?: string | null; + deviceApprovalRequired?: boolean | null; + outDeviceToken?: string | null; userId?: string | null; } export type SignInSmsOtpRecordSelect = { accessToken?: boolean; accessTokenExpiresAt?: boolean; + deviceApprovalRequired?: boolean; + outDeviceToken?: boolean; userId?: boolean; }; export interface SignUpRecord { @@ -3824,6 +4569,7 @@ export interface SignUpRecord { accessTokenExpiresAt?: string | null; id?: string | null; isVerified?: boolean | null; + outDeviceToken?: string | null; totpEnabled?: boolean | null; userId?: string | null; } @@ -3832,27 +4578,32 @@ export type SignUpRecordSelect = { accessTokenExpiresAt?: boolean; id?: boolean; isVerified?: boolean; + outDeviceToken?: boolean; totpEnabled?: boolean; userId?: boolean; }; export interface SignUpMagicLinkRecord { accessToken?: string | null; accessTokenExpiresAt?: string | null; + outDeviceToken?: string | null; userId?: string | null; } export type SignUpMagicLinkRecordSelect = { accessToken?: boolean; accessTokenExpiresAt?: boolean; + outDeviceToken?: boolean; userId?: boolean; }; export interface SignUpSmsRecord { accessToken?: string | null; accessTokenExpiresAt?: string | null; + outDeviceToken?: string | null; userId?: string | null; } export type SignUpSmsRecordSelect = { accessToken?: boolean; accessTokenExpiresAt?: boolean; + outDeviceToken?: boolean; userId?: boolean; }; /** A `AuditLogAuth` edge in the connection. */ @@ -3903,18 +4654,6 @@ export type PhoneNumberEdgeSelect = { select: PhoneNumberSelect; }; }; -/** A `PrincipalEntity` edge in the connection. */ -export interface PrincipalEntityEdge { - cursor?: string | null; - /** The `PrincipalEntity` at the end of the edge. */ - node?: PrincipalEntity | null; -} -export type PrincipalEntityEdgeSelect = { - cursor?: boolean; - node?: { - select: PrincipalEntitySelect; - }; -}; /** A `RoleType` edge in the connection. */ export interface RoleTypeEdge { cursor?: string | null; @@ -3939,6 +4678,30 @@ export type UserEdgeSelect = { select: UserSelect; }; }; +/** A `UserSetting` edge in the connection. */ +export interface UserSettingEdge { + cursor?: string | null; + /** The `UserSetting` at the end of the edge. */ + node?: UserSetting | null; +} +export type UserSettingEdgeSelect = { + cursor?: boolean; + node?: { + select: UserSettingSelect; + }; +}; +/** A `UserSettingsSecurity` edge in the connection. */ +export interface UserSettingsSecurityEdge { + cursor?: string | null; + /** The `UserSettingsSecurity` at the end of the edge. */ + node?: UserSettingsSecurity | null; +} +export type UserSettingsSecurityEdgeSelect = { + cursor?: boolean; + node?: { + select: UserSettingsSecuritySelect; + }; +}; /** A `WebauthnCredential` edge in the connection. */ export interface WebauthnCredentialEdge { cursor?: string | null; diff --git a/sdk/constructive-react/src/auth/orm/models/index.ts b/sdk/constructive-react/src/auth/orm/models/index.ts index 16f584ff03..32994d8c84 100644 --- a/sdk/constructive-react/src/auth/orm/models/index.ts +++ b/sdk/constructive-react/src/auth/orm/models/index.ts @@ -15,4 +15,6 @@ export { PrincipalScopeOverrideModel } from './principalScopeOverride'; export { RoleTypeModel } from './roleType'; export { UserConnectedAccountModel } from './userConnectedAccount'; export { UserModel } from './user'; +export { UserSettingModel } from './userSetting'; +export { UserSettingsSecurityModel } from './userSettingsSecurity'; export { WebauthnCredentialModel } from './webauthnCredential'; diff --git a/sdk/constructive-react/src/auth/orm/models/principalEntity.ts b/sdk/constructive-react/src/auth/orm/models/principalEntity.ts index 0c265501f5..516e110743 100644 --- a/sdk/constructive-react/src/auth/orm/models/principalEntity.ts +++ b/sdk/constructive-react/src/auth/orm/models/principalEntity.ts @@ -171,75 +171,4 @@ export class PrincipalEntityModel { variables, }); } - update( - args: UpdateArgs< - S, - { - id: string; - }, - PrincipalEntityPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updatePrincipalEntity: { - principalEntity: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'PrincipalEntity', - 'updatePrincipalEntity', - 'principalEntity', - args.select, - args.where.id, - args.data, - 'UpdatePrincipalEntityInput', - 'id', - 'principalEntityPatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PrincipalEntity', - fieldName: 'updatePrincipalEntity', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deletePrincipalEntity: { - principalEntity: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'PrincipalEntity', - 'deletePrincipalEntity', - 'principalEntity', - { - id: args.where.id, - }, - 'DeletePrincipalEntityInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PrincipalEntity', - fieldName: 'deletePrincipalEntity', - document, - variables, - }); - } } diff --git a/sdk/constructive-react/src/auth/orm/models/userSetting.ts b/sdk/constructive-react/src/auth/orm/models/userSetting.ts new file mode 100644 index 0000000000..7a880e40e5 --- /dev/null +++ b/sdk/constructive-react/src/auth/orm/models/userSetting.ts @@ -0,0 +1,245 @@ +/** + * UserSetting 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 { + UserSetting, + UserSettingWithRelations, + UserSettingSelect, + UserSettingFilter, + UserSettingOrderBy, + CreateUserSettingInput, + UpdateUserSettingInput, + UserSettingPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class UserSettingModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + userSettings: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'UserSetting', + 'userSettings', + 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, + }, + 'UserSettingFilter', + 'UserSettingOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'UserSetting', + fieldName: 'userSettings', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + userSetting: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'UserSetting', + 'userSettings', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'UserSettingFilter', + 'UserSettingOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'UserSetting', + fieldName: 'userSetting', + document, + variables, + transform: (data: { + userSettings?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + userSetting: data.userSettings?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + userSetting: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'UserSetting', + 'userSettings', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'UserSettingFilter', + 'UserSettingOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'UserSetting', + fieldName: 'userSetting', + document, + variables, + transform: (data: { + userSettings?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + userSetting: data.userSettings?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createUserSetting: { + userSetting: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'UserSetting', + 'createUserSetting', + 'userSetting', + args.select, + args.data, + 'CreateUserSettingInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'UserSetting', + fieldName: 'createUserSetting', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + UserSettingPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateUserSetting: { + userSetting: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'UserSetting', + 'updateUserSetting', + 'userSetting', + args.select, + args.where.id, + args.data, + 'UpdateUserSettingInput', + 'id', + 'userSettingPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'UserSetting', + fieldName: 'updateUserSetting', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteUserSetting: { + userSetting: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'UserSetting', + 'deleteUserSetting', + 'userSetting', + { + id: args.where.id, + }, + 'DeleteUserSettingInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'UserSetting', + fieldName: 'deleteUserSetting', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/auth/orm/models/userSettingsSecurity.ts b/sdk/constructive-react/src/auth/orm/models/userSettingsSecurity.ts new file mode 100644 index 0000000000..c5965bf3ff --- /dev/null +++ b/sdk/constructive-react/src/auth/orm/models/userSettingsSecurity.ts @@ -0,0 +1,247 @@ +/** + * UserSettingsSecurity 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 { + UserSettingsSecurity, + UserSettingsSecurityWithRelations, + UserSettingsSecuritySelect, + UserSettingsSecurityFilter, + UserSettingsSecurityOrderBy, + CreateUserSettingsSecurityInput, + UpdateUserSettingsSecurityInput, + UserSettingsSecurityPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class UserSettingsSecurityModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + userSettingsSecurities: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'UserSettingsSecurity', + 'userSettingsSecurities', + 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, + }, + 'UserSettingsSecurityFilter', + 'UserSettingsSecurityOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'UserSettingsSecurity', + fieldName: 'userSettingsSecurities', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + userSettingsSecurity: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'UserSettingsSecurity', + 'userSettingsSecurities', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'UserSettingsSecurityFilter', + 'UserSettingsSecurityOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'UserSettingsSecurity', + fieldName: 'userSettingsSecurity', + document, + variables, + transform: (data: { + userSettingsSecurities?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + userSettingsSecurity: data.userSettingsSecurities?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + userSettingsSecurity: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'UserSettingsSecurity', + 'userSettingsSecurities', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'UserSettingsSecurityFilter', + 'UserSettingsSecurityOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'UserSettingsSecurity', + fieldName: 'userSettingsSecurity', + document, + variables, + transform: (data: { + userSettingsSecurities?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + userSettingsSecurity: data.userSettingsSecurities?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createUserSettingsSecurity: { + userSettingsSecurity: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'UserSettingsSecurity', + 'createUserSettingsSecurity', + 'userSettingsSecurity', + args.select, + args.data, + 'CreateUserSettingsSecurityInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'UserSettingsSecurity', + fieldName: 'createUserSettingsSecurity', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + UserSettingsSecurityPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateUserSettingsSecurity: { + userSettingsSecurity: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'UserSettingsSecurity', + 'updateUserSettingsSecurity', + 'userSettingsSecurity', + args.select, + args.where.id, + args.data, + 'UpdateUserSettingsSecurityInput', + 'id', + 'userSettingsSecurityPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'UserSettingsSecurity', + fieldName: 'updateUserSettingsSecurity', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteUserSettingsSecurity: { + userSettingsSecurity: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'UserSettingsSecurity', + 'deleteUserSettingsSecurity', + 'userSettingsSecurity', + { + id: args.where.id, + }, + 'DeleteUserSettingsSecurityInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'UserSettingsSecurity', + fieldName: 'deleteUserSettingsSecurity', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/auth/orm/mutation/index.ts b/sdk/constructive-react/src/auth/orm/mutation/index.ts index d1531288e5..fdaa7b9a5f 100644 --- a/sdk/constructive-react/src/auth/orm/mutation/index.ts +++ b/sdk/constructive-react/src/auth/orm/mutation/index.ts @@ -7,19 +7,33 @@ import { OrmClient } from '../client'; import { QueryBuilder, buildCustomDocument } from '../query-builder'; import type { InferSelectResult, StrictSelect } from '../select-types'; import type { + ApproveDeviceInput, CheckPasswordInput, + CompleteMfaChallengeInput, ConfirmDeleteAccountInput, + ConfirmTotpSetupInput, CreateApiKeyInput, + CreateChildPrincipalInput, CreateOrgApiKeyInput, CreateOrgPrincipalInput, + CreatePrincipalFromPresetInput, DeleteOrgPrincipalInput, DeletePrincipalInput, + DisableEmailMfaInput, + DisableSmsMfaInput, + DisableTotpInput, DisconnectAccountInput, + EnableEmailMfaInput, + EnableSmsMfaInput, + EnableTotpInput, ExtendTokenExpiresInput, ForgotPasswordInput, + GenerateBackupCodesInput, LinkIdentityInput, + MintAccessTokenInput, ProvisionBucketInput, ProvisionNewUserInput, + RefreshAccessTokenInput, RequestCrossOriginTokenInput, ResetPasswordInput, RevokeApiKeyInput, @@ -28,6 +42,8 @@ import type { SendAccountDeletionEmailInput, SendVerificationEmailInput, SetPasswordInput, + SetPrincipalEntitiesInput, + SetPrincipalScopeInput, SignInInput, SignInCrossOriginInput, SignInMagicLinkInput, @@ -36,22 +52,37 @@ import type { SignUpInput, SignUpMagicLinkInput, SignUpSmsInput, + UpdatePrincipalInput, VerifyEmailInput, VerifyPasswordInput, VerifyTotpInput, + ApproveDevicePayload, CheckPasswordPayload, + CompleteMfaChallengePayload, ConfirmDeleteAccountPayload, + ConfirmTotpSetupPayload, CreateApiKeyPayload, + CreateChildPrincipalPayload, CreateOrgApiKeyPayload, CreateOrgPrincipalPayload, + CreatePrincipalFromPresetPayload, DeleteOrgPrincipalPayload, DeletePrincipalPayload, + DisableEmailMfaPayload, + DisableSmsMfaPayload, + DisableTotpPayload, DisconnectAccountPayload, + EnableEmailMfaPayload, + EnableSmsMfaPayload, + EnableTotpPayload, ExtendTokenExpiresPayload, ForgotPasswordPayload, + GenerateBackupCodesPayload, LinkIdentityPayload, + MintAccessTokenPayload, ProvisionBucketPayload, ProvisionNewUserPayload, + RefreshAccessTokenPayload, RequestCrossOriginTokenPayload, ResetPasswordPayload, RevokeApiKeyPayload, @@ -60,6 +91,8 @@ import type { SendAccountDeletionEmailPayload, SendVerificationEmailPayload, SetPasswordPayload, + SetPrincipalEntitiesPayload, + SetPrincipalScopePayload, SignInPayload, SignInCrossOriginPayload, SignInMagicLinkPayload, @@ -68,22 +101,37 @@ import type { SignUpPayload, SignUpMagicLinkPayload, SignUpSmsPayload, + UpdatePrincipalPayload, VerifyEmailPayload, VerifyPasswordPayload, VerifyTotpPayload, + ApproveDevicePayloadSelect, CheckPasswordPayloadSelect, + CompleteMfaChallengePayloadSelect, ConfirmDeleteAccountPayloadSelect, + ConfirmTotpSetupPayloadSelect, CreateApiKeyPayloadSelect, + CreateChildPrincipalPayloadSelect, CreateOrgApiKeyPayloadSelect, CreateOrgPrincipalPayloadSelect, + CreatePrincipalFromPresetPayloadSelect, DeleteOrgPrincipalPayloadSelect, DeletePrincipalPayloadSelect, + DisableEmailMfaPayloadSelect, + DisableSmsMfaPayloadSelect, + DisableTotpPayloadSelect, DisconnectAccountPayloadSelect, + EnableEmailMfaPayloadSelect, + EnableSmsMfaPayloadSelect, + EnableTotpPayloadSelect, ExtendTokenExpiresPayloadSelect, ForgotPasswordPayloadSelect, + GenerateBackupCodesPayloadSelect, LinkIdentityPayloadSelect, + MintAccessTokenPayloadSelect, ProvisionBucketPayloadSelect, ProvisionNewUserPayloadSelect, + RefreshAccessTokenPayloadSelect, RequestCrossOriginTokenPayloadSelect, ResetPasswordPayloadSelect, RevokeApiKeyPayloadSelect, @@ -92,6 +140,8 @@ import type { SendAccountDeletionEmailPayloadSelect, SendVerificationEmailPayloadSelect, SetPasswordPayloadSelect, + SetPrincipalEntitiesPayloadSelect, + SetPrincipalScopePayloadSelect, SignInPayloadSelect, SignInCrossOriginPayloadSelect, SignInMagicLinkPayloadSelect, @@ -100,50 +150,91 @@ import type { SignUpPayloadSelect, SignUpMagicLinkPayloadSelect, SignUpSmsPayloadSelect, + UpdatePrincipalPayloadSelect, VerifyEmailPayloadSelect, VerifyPasswordPayloadSelect, VerifyTotpPayloadSelect, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; +export interface ApproveDeviceVariables { + input: ApproveDeviceInput; +} export interface CheckPasswordVariables { input: CheckPasswordInput; } +export interface CompleteMfaChallengeVariables { + input: CompleteMfaChallengeInput; +} export interface ConfirmDeleteAccountVariables { input: ConfirmDeleteAccountInput; } +export interface ConfirmTotpSetupVariables { + input: ConfirmTotpSetupInput; +} export interface CreateApiKeyVariables { input: CreateApiKeyInput; } +export interface CreateChildPrincipalVariables { + input: CreateChildPrincipalInput; +} export interface CreateOrgApiKeyVariables { input: CreateOrgApiKeyInput; } export interface CreateOrgPrincipalVariables { input: CreateOrgPrincipalInput; } +export interface CreatePrincipalFromPresetVariables { + input: CreatePrincipalFromPresetInput; +} export interface DeleteOrgPrincipalVariables { input: DeleteOrgPrincipalInput; } export interface DeletePrincipalVariables { input: DeletePrincipalInput; } +export interface DisableEmailMfaVariables { + input: DisableEmailMfaInput; +} +export interface DisableSmsMfaVariables { + input: DisableSmsMfaInput; +} +export interface DisableTotpVariables { + input: DisableTotpInput; +} export interface DisconnectAccountVariables { input: DisconnectAccountInput; } +export interface EnableEmailMfaVariables { + input: EnableEmailMfaInput; +} +export interface EnableSmsMfaVariables { + input: EnableSmsMfaInput; +} +export interface EnableTotpVariables { + input: EnableTotpInput; +} export interface ExtendTokenExpiresVariables { input: ExtendTokenExpiresInput; } export interface ForgotPasswordVariables { input: ForgotPasswordInput; } +export interface GenerateBackupCodesVariables { + input: GenerateBackupCodesInput; +} export interface LinkIdentityVariables { input: LinkIdentityInput; } +export interface MintAccessTokenVariables { + input: MintAccessTokenInput; +} /** * Variables for provisionBucket - * 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. + * Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. */ export interface ProvisionBucketVariables { input: ProvisionBucketInput; @@ -151,6 +242,9 @@ export interface ProvisionBucketVariables { export interface ProvisionNewUserVariables { input: ProvisionNewUserInput; } +export interface RefreshAccessTokenVariables { + input: RefreshAccessTokenInput; +} export interface RequestCrossOriginTokenVariables { input: RequestCrossOriginTokenInput; } @@ -175,6 +269,12 @@ export interface SendVerificationEmailVariables { export interface SetPasswordVariables { input: SetPasswordInput; } +export interface SetPrincipalEntitiesVariables { + input: SetPrincipalEntitiesInput; +} +export interface SetPrincipalScopeVariables { + input: SetPrincipalScopeInput; +} export interface SignInVariables { input: SignInInput; } @@ -199,6 +299,9 @@ export interface SignUpMagicLinkVariables { export interface SignUpSmsVariables { input: SignUpSmsInput; } +export interface UpdatePrincipalVariables { + input: UpdatePrincipalInput; +} export interface VerifyEmailVariables { input: VerifyEmailInput; } @@ -210,6 +313,35 @@ export interface VerifyTotpVariables { } export function createMutationOperations(client: OrmClient) { return { + approveDevice: ( + args: ApproveDeviceVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + approveDevice: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'ApproveDevice', + fieldName: 'approveDevice', + ...buildCustomDocument( + 'mutation', + 'ApproveDevice', + 'approveDevice', + options.select, + args, + [ + { + name: 'input', + type: 'ApproveDeviceInput!', + }, + ], + connectionFieldsMap, + 'ApproveDevicePayload' + ), + }), checkPassword: ( args: CheckPasswordVariables, options: { @@ -239,6 +371,35 @@ export function createMutationOperations(client: OrmClient) { 'CheckPasswordPayload' ), }), + completeMfaChallenge: ( + args: CompleteMfaChallengeVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + completeMfaChallenge: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'CompleteMfaChallenge', + fieldName: 'completeMfaChallenge', + ...buildCustomDocument( + 'mutation', + 'CompleteMfaChallenge', + 'completeMfaChallenge', + options.select, + args, + [ + { + name: 'input', + type: 'CompleteMfaChallengeInput!', + }, + ], + connectionFieldsMap, + 'CompleteMfaChallengePayload' + ), + }), confirmDeleteAccount: ( args: ConfirmDeleteAccountVariables, options: { @@ -268,6 +429,35 @@ export function createMutationOperations(client: OrmClient) { 'ConfirmDeleteAccountPayload' ), }), + confirmTotpSetup: ( + args: ConfirmTotpSetupVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + confirmTotpSetup: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'ConfirmTotpSetup', + fieldName: 'confirmTotpSetup', + ...buildCustomDocument( + 'mutation', + 'ConfirmTotpSetup', + 'confirmTotpSetup', + options.select, + args, + [ + { + name: 'input', + type: 'ConfirmTotpSetupInput!', + }, + ], + connectionFieldsMap, + 'ConfirmTotpSetupPayload' + ), + }), createApiKey: ( args: CreateApiKeyVariables, options: { @@ -297,6 +487,35 @@ export function createMutationOperations(client: OrmClient) { 'CreateApiKeyPayload' ), }), + createChildPrincipal: ( + args: CreateChildPrincipalVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + createChildPrincipal: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'CreateChildPrincipal', + fieldName: 'createChildPrincipal', + ...buildCustomDocument( + 'mutation', + 'CreateChildPrincipal', + 'createChildPrincipal', + options.select, + args, + [ + { + name: 'input', + type: 'CreateChildPrincipalInput!', + }, + ], + connectionFieldsMap, + 'CreateChildPrincipalPayload' + ), + }), createOrgApiKey: ( args: CreateOrgApiKeyVariables, options: { @@ -355,6 +574,35 @@ export function createMutationOperations(client: OrmClient) { 'CreateOrgPrincipalPayload' ), }), + createPrincipalFromPreset: ( + args: CreatePrincipalFromPresetVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + createPrincipalFromPreset: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'CreatePrincipalFromPreset', + fieldName: 'createPrincipalFromPreset', + ...buildCustomDocument( + 'mutation', + 'CreatePrincipalFromPreset', + 'createPrincipalFromPreset', + options.select, + args, + [ + { + name: 'input', + type: 'CreatePrincipalFromPresetInput!', + }, + ], + connectionFieldsMap, + 'CreatePrincipalFromPresetPayload' + ), + }), deleteOrgPrincipal: ( args: DeleteOrgPrincipalVariables, options: { @@ -413,6 +661,93 @@ export function createMutationOperations(client: OrmClient) { 'DeletePrincipalPayload' ), }), + disableEmailMfa: ( + args: DisableEmailMfaVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + disableEmailMfa: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'DisableEmailMfa', + fieldName: 'disableEmailMfa', + ...buildCustomDocument( + 'mutation', + 'DisableEmailMfa', + 'disableEmailMfa', + options.select, + args, + [ + { + name: 'input', + type: 'DisableEmailMfaInput!', + }, + ], + connectionFieldsMap, + 'DisableEmailMfaPayload' + ), + }), + disableSmsMfa: ( + args: DisableSmsMfaVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + disableSmsMfa: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'DisableSmsMfa', + fieldName: 'disableSmsMfa', + ...buildCustomDocument( + 'mutation', + 'DisableSmsMfa', + 'disableSmsMfa', + options.select, + args, + [ + { + name: 'input', + type: 'DisableSmsMfaInput!', + }, + ], + connectionFieldsMap, + 'DisableSmsMfaPayload' + ), + }), + disableTotp: ( + args: DisableTotpVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + disableTotp: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'DisableTotp', + fieldName: 'disableTotp', + ...buildCustomDocument( + 'mutation', + 'DisableTotp', + 'disableTotp', + options.select, + args, + [ + { + name: 'input', + type: 'DisableTotpInput!', + }, + ], + connectionFieldsMap, + 'DisableTotpPayload' + ), + }), disconnectAccount: ( args: DisconnectAccountVariables, options: { @@ -442,6 +777,93 @@ export function createMutationOperations(client: OrmClient) { 'DisconnectAccountPayload' ), }), + enableEmailMfa: ( + args: EnableEmailMfaVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + enableEmailMfa: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'EnableEmailMfa', + fieldName: 'enableEmailMfa', + ...buildCustomDocument( + 'mutation', + 'EnableEmailMfa', + 'enableEmailMfa', + options.select, + args, + [ + { + name: 'input', + type: 'EnableEmailMfaInput!', + }, + ], + connectionFieldsMap, + 'EnableEmailMfaPayload' + ), + }), + enableSmsMfa: ( + args: EnableSmsMfaVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + enableSmsMfa: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'EnableSmsMfa', + fieldName: 'enableSmsMfa', + ...buildCustomDocument( + 'mutation', + 'EnableSmsMfa', + 'enableSmsMfa', + options.select, + args, + [ + { + name: 'input', + type: 'EnableSmsMfaInput!', + }, + ], + connectionFieldsMap, + 'EnableSmsMfaPayload' + ), + }), + enableTotp: ( + args: EnableTotpVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + enableTotp: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'EnableTotp', + fieldName: 'enableTotp', + ...buildCustomDocument( + 'mutation', + 'EnableTotp', + 'enableTotp', + options.select, + args, + [ + { + name: 'input', + type: 'EnableTotpInput!', + }, + ], + connectionFieldsMap, + 'EnableTotpPayload' + ), + }), extendTokenExpires: ( args: ExtendTokenExpiresVariables, options: { @@ -500,6 +922,35 @@ export function createMutationOperations(client: OrmClient) { 'ForgotPasswordPayload' ), }), + generateBackupCodes: ( + args: GenerateBackupCodesVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + generateBackupCodes: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'GenerateBackupCodes', + fieldName: 'generateBackupCodes', + ...buildCustomDocument( + 'mutation', + 'GenerateBackupCodes', + 'generateBackupCodes', + options.select, + args, + [ + { + name: 'input', + type: 'GenerateBackupCodesInput!', + }, + ], + connectionFieldsMap, + 'GenerateBackupCodesPayload' + ), + }), linkIdentity: ( args: LinkIdentityVariables, options: { @@ -529,6 +980,35 @@ export function createMutationOperations(client: OrmClient) { 'LinkIdentityPayload' ), }), + mintAccessToken: ( + args: MintAccessTokenVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + mintAccessToken: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'MintAccessToken', + fieldName: 'mintAccessToken', + ...buildCustomDocument( + 'mutation', + 'MintAccessToken', + 'mintAccessToken', + options.select, + args, + [ + { + name: 'input', + type: 'MintAccessTokenInput!', + }, + ], + connectionFieldsMap, + 'MintAccessTokenPayload' + ), + }), provisionBucket: ( args: ProvisionBucketVariables, options: { @@ -587,6 +1067,35 @@ export function createMutationOperations(client: OrmClient) { 'ProvisionNewUserPayload' ), }), + refreshAccessToken: ( + args: RefreshAccessTokenVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + refreshAccessToken: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'RefreshAccessToken', + fieldName: 'refreshAccessToken', + ...buildCustomDocument( + 'mutation', + 'RefreshAccessToken', + 'refreshAccessToken', + options.select, + args, + [ + { + name: 'input', + type: 'RefreshAccessTokenInput!', + }, + ], + connectionFieldsMap, + 'RefreshAccessTokenPayload' + ), + }), requestCrossOriginToken: ( args: RequestCrossOriginTokenVariables, options: { @@ -819,6 +1328,64 @@ export function createMutationOperations(client: OrmClient) { 'SetPasswordPayload' ), }), + setPrincipalEntities: ( + args: SetPrincipalEntitiesVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + setPrincipalEntities: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SetPrincipalEntities', + fieldName: 'setPrincipalEntities', + ...buildCustomDocument( + 'mutation', + 'SetPrincipalEntities', + 'setPrincipalEntities', + options.select, + args, + [ + { + name: 'input', + type: 'SetPrincipalEntitiesInput!', + }, + ], + connectionFieldsMap, + 'SetPrincipalEntitiesPayload' + ), + }), + setPrincipalScope: ( + args: SetPrincipalScopeVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + setPrincipalScope: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SetPrincipalScope', + fieldName: 'setPrincipalScope', + ...buildCustomDocument( + 'mutation', + 'SetPrincipalScope', + 'setPrincipalScope', + options.select, + args, + [ + { + name: 'input', + type: 'SetPrincipalScopeInput!', + }, + ], + connectionFieldsMap, + 'SetPrincipalScopePayload' + ), + }), signIn: ( args: SignInVariables, options: { @@ -1051,6 +1618,35 @@ export function createMutationOperations(client: OrmClient) { 'SignUpSmsPayload' ), }), + updatePrincipal: ( + args: UpdatePrincipalVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + updatePrincipal: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'UpdatePrincipal', + fieldName: 'updatePrincipal', + ...buildCustomDocument( + 'mutation', + 'UpdatePrincipal', + 'updatePrincipal', + options.select, + args, + [ + { + name: 'input', + type: 'UpdatePrincipalInput!', + }, + ], + connectionFieldsMap, + 'UpdatePrincipalPayload' + ), + }), verifyEmail: ( args: VerifyEmailVariables, options: { diff --git a/sdk/constructive-react/src/auth/orm/query/index.ts b/sdk/constructive-react/src/auth/orm/query/index.ts index d13999f7b4..671fb80d21 100644 --- a/sdk/constructive-react/src/auth/orm/query/index.ts +++ b/sdk/constructive-react/src/auth/orm/query/index.ts @@ -6,7 +6,12 @@ import { OrmClient } from '../client'; import { QueryBuilder, buildCustomDocument } from '../query-builder'; import type { InferSelectResult, StrictSelect } from '../select-types'; -import type { User, UserSelect } from '../input-types'; +import type { + User, + GetMfaStatusRecord, + UserSelect, + GetMfaStatusRecordSelect, +} from '../input-types'; import { connectionFieldsMap } from '../input-types'; export interface RequireStepUpVariables { stepUpType?: string; @@ -93,6 +98,29 @@ export function createQueryOperations(client: OrmClient) { undefined ), }), + getMfaStatus: ( + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + getMfaStatus: InferSelectResult | null; + }>({ + client, + operation: 'query', + operationName: 'GetMfaStatus', + fieldName: 'getMfaStatus', + ...buildCustomDocument( + 'query', + 'GetMfaStatus', + 'getMfaStatus', + options.select, + undefined, + [], + connectionFieldsMap, + 'GetMfaStatusRecord' + ), + }), requireStepUp: ( args: RequireStepUpVariables, options?: { diff --git a/sdk/constructive-react/src/auth/schema-types.ts b/sdk/constructive-react/src/auth/schema-types.ts index 6c3a334363..b6682b8034 100644 --- a/sdk/constructive-react/src/auth/schema-types.ts +++ b/sdk/constructive-react/src/auth/schema-types.ts @@ -17,6 +17,8 @@ import type { RoleType, User, UserConnectedAccount, + UserSetting, + UserSettingsSecurity, WebauthnCredential, BigFloatFilter, BigIntFilter, @@ -46,6 +48,8 @@ export type AuditLogAuthOrderBy = | 'ACTOR_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' + | 'DETAILS_ASC' + | 'DETAILS_DESC' | 'EVENT_ASC' | 'EVENT_DESC' | 'ID_ASC' @@ -187,6 +191,12 @@ export type PrincipalOrderBy = | 'BYPASS_STEP_UP_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' + | 'CREATED_BY_SESSION_ID_ASC' + | 'CREATED_BY_SESSION_ID_DESC' + | 'DEPTH_ASC' + | 'DEPTH_DESC' + | 'EXPIRES_AT_ASC' + | 'EXPIRES_AT_DESC' | 'ID_ASC' | 'ID_DESC' | 'IS_READ_ONLY_ASC' @@ -196,6 +206,8 @@ export type PrincipalOrderBy = | 'NATURAL' | 'OWNER_ID_ASC' | 'OWNER_ID_DESC' + | 'PARENT_PRINCIPAL_ID_ASC' + | 'PARENT_PRINCIPAL_ID_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'UPDATED_AT_ASC' @@ -282,6 +294,44 @@ export type UserOrderBy = | 'UPDATED_AT_DESC' | 'USERNAME_ASC' | 'USERNAME_DESC'; +/** Methods to use when ordering `UserSetting`. */ +export type UserSettingOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `UserSettingsSecurity`. */ +export type UserSettingsSecurityOrderBy = + | 'BACKUP_CODES_COUNT_ASC' + | 'BACKUP_CODES_COUNT_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'EMAIL_MFA_ENABLED_ASC' + | 'EMAIL_MFA_ENABLED_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'MFA_ENROLLED_AT_ASC' + | 'MFA_ENROLLED_AT_DESC' + | 'MFA_LAST_USED_AT_ASC' + | 'MFA_LAST_USED_AT_DESC' + | 'NATURAL' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'SMS_MFA_ENABLED_ASC' + | 'SMS_MFA_ENABLED_DESC' + | 'TOTP_ENABLED_ASC' + | 'TOTP_ENABLED_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; /** Methods to use when ordering `WebauthnCredential`. */ export type WebauthnCredentialOrderBy = | 'BACKUP_ELIGIBLE_ASC' @@ -315,6 +365,10 @@ export type WebauthnCredentialOrderBy = | 'UPDATED_AT_DESC' | 'WEBAUTHN_USER_ID_ASC' | 'WEBAUTHN_USER_ID_DESC'; +export interface ApproveDeviceInput { + approvalToken: string; + clientMutationId?: string; +} /** A filter to be used against `AuditLogAuth` object types. All fields are combined with a logical ‘and.’ */ export interface AuditLogAuthFilter { /** Filter by the object’s `actor` relation. */ @@ -327,6 +381,8 @@ export interface AuditLogAuthFilter { and?: AuditLogAuthFilter[]; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `details` field. */ + details?: JSONFilter; /** Filter by the object’s `event` field. */ event?: StringFilter; /** Filter by the object’s `id` field. */ @@ -349,6 +405,8 @@ export interface AuditLogAuthInput { /** User who performed the authentication action; NULL if user was deleted */ actorId?: string; createdAt?: string; + /** Event-specific structured payload (e.g. preset slug and catalog commit id for create_principal_from_preset) */ + details?: unknown; /** Type of authentication event (e.g. sign_in, sign_up, password_change, verify_email) */ event: string; /** Unique identifier for each audit event (uuidv7 provides temporal ordering) */ @@ -367,6 +425,8 @@ export interface AuditLogAuthPatch { /** User who performed the authentication action; NULL if user was deleted */ actorId?: string; createdAt?: string; + /** Event-specific structured payload (e.g. preset slug and catalog commit id for create_principal_from_preset) */ + details?: unknown; /** Type of authentication event (e.g. sign_in, sign_up, password_change, verify_email) */ event?: string; /** Unique identifier for each audit event (uuidv7 provides temporal ordering) */ @@ -401,11 +461,27 @@ export interface CheckPasswordInput { clientMutationId?: string; password?: string; } +export interface CompleteMfaChallengeInput { + authMethod?: string; + clientMutationId?: string; + credentialKind?: string; + deviceToken?: string; + mfaChallengeToken?: string; + mfaMethod?: string; + rememberMe?: boolean; + totpCode?: string; + trustDevice?: boolean; + userId?: string; +} export interface ConfirmDeleteAccountInput { clientMutationId?: string; token?: string; userId?: string; } +export interface ConfirmTotpSetupInput { + clientMutationId?: string; + totpValue: string; +} /** 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. */ @@ -608,6 +684,16 @@ export interface CreateAuditLogAuthInput { auditLogAuth: AuditLogAuthInput; clientMutationId?: string; } +export interface CreateChildPrincipalInput { + allowedMask?: string; + clientMutationId?: string; + entityIds?: string[]; + expiresAt?: string; + intent?: string; + isReadOnly?: boolean; + name?: string; + parentPrincipalId?: string; +} export interface CreateCryptoAddressInput { clientMutationId?: string; /** The `CryptoAddress` to be created by this mutation. */ @@ -640,10 +726,12 @@ export interface CreatePhoneNumberInput { /** The `PhoneNumber` to be created by this mutation. */ phoneNumber: PhoneNumberInput; } -export interface CreatePrincipalEntityInput { +export interface CreatePrincipalFromPresetInput { clientMutationId?: string; - /** The `PrincipalEntity` to be created by this mutation. */ - principalEntity: PrincipalEntityInput; + entityIds?: string[]; + name?: string; + overrides?: unknown; + slug?: string; } export interface CreatePrincipalInput { bypassStepUp?: boolean; @@ -663,6 +751,16 @@ export interface CreateUserInput { /** The `User` to be created by this mutation. */ user: UserInput; } +export interface CreateUserSettingInput { + clientMutationId?: string; + /** The `UserSetting` to be created by this mutation. */ + userSetting: UserSettingInput; +} +export interface CreateUserSettingsSecurityInput { + clientMutationId?: string; + /** The `UserSettingsSecurity` to be created by this mutation. */ + userSettingsSecurity: UserSettingsSecurityInput; +} export interface CreateWebauthnCredentialInput { clientMutationId?: string; /** The `WebauthnCredential` to be created by this mutation. */ @@ -747,10 +845,6 @@ export interface DeletePhoneNumberInput { clientMutationId?: string; id: string; } -export interface DeletePrincipalEntityInput { - clientMutationId?: string; - id: string; -} export interface DeletePrincipalInput { clientMutationId?: string; principalId?: string; @@ -763,10 +857,28 @@ export interface DeleteUserInput { clientMutationId?: string; id: string; } +export interface DeleteUserSettingInput { + clientMutationId?: string; + id: string; +} +export interface DeleteUserSettingsSecurityInput { + clientMutationId?: string; + id: string; +} export interface DeleteWebauthnCredentialInput { clientMutationId?: string; id: string; } +export interface DisableEmailMfaInput { + clientMutationId?: string; +} +export interface DisableSmsMfaInput { + clientMutationId?: string; +} +export interface DisableTotpInput { + clientMutationId?: string; + totpValue: string; +} export interface DisconnectAccountInput { accountId: string; clientMutationId?: string; @@ -828,6 +940,15 @@ export interface EmailPatch { ownerId?: string; updatedAt?: string; } +export interface EnableEmailMfaInput { + clientMutationId?: string; +} +export interface EnableSmsMfaInput { + clientMutationId?: string; +} +export interface EnableTotpInput { + clientMutationId?: string; +} export interface ExtendTokenExpiresInput { amount?: IntervalInput; clientMutationId?: string; @@ -836,6 +957,9 @@ export interface ForgotPasswordInput { clientMutationId?: string; email?: ConstructiveInternalTypeEmail; } +export interface GenerateBackupCodesInput { + clientMutationId?: string; +} /** A filter to be used against `IdentityProvider` object types. All fields are combined with a logical ‘and.’ */ export interface IdentityProviderFilter { /** Checks for all expressions in this list. */ @@ -878,6 +1002,12 @@ export interface LinkIdentityInput { identifier: string; service: string; } +export interface MintAccessTokenInput { + accessTtl?: IntervalInput; + clientMutationId?: string; + intent?: string; + principalId?: string; +} /** A filter to be used against `OrgApiKeyList` object types. All fields are combined with a logical ‘and.’ */ export interface OrgApiKeyListFilter { /** Filter by the object’s `accessLevel` field. */ @@ -1001,38 +1131,24 @@ export interface PrincipalEntityFilter { /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } -/** An input for mutations affecting `PrincipalEntity` */ -export interface PrincipalEntityInput { - createdAt?: string; - /** The organization this principal is scoped to */ - entityId: string; - id?: string; - /** Denormalized owner_id from principals table for RLS */ - ownerId: string; - /** The principal this scoping row belongs to */ - principalId: string; - updatedAt?: string; -} -/** Represents an update to a `PrincipalEntity`. Fields that are set will be updated. */ -export interface PrincipalEntityPatch { - createdAt?: string; - /** The organization this principal is scoped to */ - entityId?: string; - id?: string; - /** Denormalized owner_id from principals table for RLS */ - ownerId?: string; - /** The principal this scoping row belongs to */ - principalId?: string; - updatedAt?: string; -} /** A filter to be used against `Principal` object types. All fields are combined with a logical ‘and.’ */ export interface PrincipalFilter { /** Checks for all expressions in this list. */ and?: PrincipalFilter[]; /** Filter by the object’s `bypassStepUp` field. */ bypassStepUp?: BooleanFilter; + /** Filter by the object’s `child_principals` relation. */ + child_principals?: PrincipalToManyPrincipalFilter; + /** `child_principals` exist. */ + child_principalsExist?: boolean; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBySessionId` field. */ + createdBySessionId?: UUIDFilter; + /** Filter by the object’s `depth` field. */ + depth?: IntFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `isReadOnly` field. */ @@ -1047,6 +1163,12 @@ export interface PrincipalFilter { owner?: UserFilter; /** Filter by the object’s `ownerId` field. */ ownerId?: UUIDFilter; + /** Filter by the object’s `parentPrincipal` relation. */ + parentPrincipal?: PrincipalFilter; + /** A related `parentPrincipal` exists. */ + parentPrincipalExists?: boolean; + /** Filter by the object’s `parentPrincipalId` field. */ + parentPrincipalId?: UUIDFilter; /** Filter by the object’s `principalEntities` relation. */ principalEntities?: PrincipalToManyPrincipalEntityFilter; /** `principalEntities` exist. */ @@ -1102,6 +1224,15 @@ export interface PrincipalToManyPrincipalEntityFilter { /** Filters to entities where at least one related entity matches. */ some?: PrincipalEntityFilter; } +/** A filter to be used against many `Principal` object types. All fields are combined with a logical ‘and.’ */ +export interface PrincipalToManyPrincipalFilter { + /** Filters to entities where every related entity matches. */ + every?: PrincipalFilter; + /** Filters to entities where no related entity matches. */ + none?: PrincipalFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PrincipalFilter; +} /** A filter to be used against many `PrincipalScopeOverride` object types. All fields are combined with a logical ‘and.’ */ export interface PrincipalToManyPrincipalScopeOverrideFilter { /** Filters to entities where every related entity matches. */ @@ -1125,6 +1256,10 @@ export interface ProvisionNewUserInput { email?: string; password?: string; } +export interface RefreshAccessTokenInput { + clientMutationId?: string; + token?: string; +} export interface RequestCrossOriginTokenInput { clientMutationId?: string; email?: string; @@ -1186,6 +1321,20 @@ export interface SetPasswordInput { currentPassword?: string; newPassword?: string; } +export interface SetPrincipalEntitiesInput { + clientMutationId?: string; + entityIds?: string[]; + principalId?: string; +} +export interface SetPrincipalScopeInput { + allowedMask?: string; + clientMutationId?: string; + isActive?: boolean; + isReadOnly?: boolean; + membershipType?: number; + principalId?: string; + useAdminOwner?: boolean; +} export interface SignInCrossOriginInput { clientMutationId?: string; credentialKind?: string; @@ -1356,11 +1505,13 @@ export interface UpdatePhoneNumberInput { /** An object where the defined keys will be set on the `PhoneNumber` being updated. */ phoneNumberPatch: PhoneNumberPatch; } -export interface UpdatePrincipalEntityInput { +export interface UpdatePrincipalInput { + bypassStepUp?: boolean; clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `PrincipalEntity` being updated. */ - principalEntityPatch: PrincipalEntityPatch; + isReadOnly?: boolean; + name?: string; + principalId?: string; + useAdminOwner?: boolean; } export interface UpdateRoleTypeInput { clientMutationId?: string; @@ -1374,6 +1525,18 @@ export interface UpdateUserInput { /** An object where the defined keys will be set on the `User` being updated. */ userPatch: UserPatch; } +export interface UpdateUserSettingInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `UserSetting` being updated. */ + userSettingPatch: UserSettingPatch; +} +export interface UpdateUserSettingsSecurityInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `UserSettingsSecurity` being updated. */ + userSettingsSecurityPatch: UserSettingsSecurityPatch; +} export interface UpdateWebauthnCredentialInput { clientMutationId?: string; id: string; @@ -1431,6 +1594,14 @@ export interface UserFilter { not?: UserFilter; /** Checks for any expressions in this list. */ or?: UserFilter[]; + /** Filter by the object’s `ownedUserSetting` relation. */ + ownedUserSetting?: UserSettingFilter; + /** A related `ownedUserSetting` exists. */ + ownedUserSettingExists?: boolean; + /** Filter by the object’s `ownedUserSettingsSecurity` relation. */ + ownedUserSettingsSecurity?: UserSettingsSecurityFilter; + /** A related `ownedUserSettingsSecurity` exists. */ + ownedUserSettingsSecurityExists?: boolean; /** Filter by the object’s `phoneNumbers` relation. */ phoneNumbers?: UserToManyPhoneNumberFilter; /** `phoneNumbers` exist. */ @@ -1494,6 +1665,108 @@ export interface UserPatch { updatedAt?: string; username?: string; } +/** A filter to be used against `UserSetting` object types. All fields are combined with a logical ‘and.’ */ +export interface UserSettingFilter { + /** Checks for all expressions in this list. */ + and?: UserSettingFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: UserSettingFilter; + /** Checks for any expressions in this list. */ + or?: UserSettingFilter[]; + /** Filter by the object’s `owner` relation. */ + owner?: UserFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} +/** An input for mutations affecting `UserSetting` */ +export interface UserSettingInput { + createdAt?: string; + id?: string; + ownerId?: string; + updatedAt?: string; +} +/** Represents an update to a `UserSetting`. Fields that are set will be updated. */ +export interface UserSettingPatch { + createdAt?: string; + id?: string; + ownerId?: string; + updatedAt?: string; +} +/** A filter to be used against `UserSettingsSecurity` object types. All fields are combined with a logical ‘and.’ */ +export interface UserSettingsSecurityFilter { + /** Checks for all expressions in this list. */ + and?: UserSettingsSecurityFilter[]; + /** Filter by the object’s `backupCodesCount` field. */ + backupCodesCount?: IntFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `emailMfaEnabled` field. */ + emailMfaEnabled?: BooleanFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `mfaEnrolledAt` field. */ + mfaEnrolledAt?: DatetimeFilter; + /** Filter by the object’s `mfaLastUsedAt` field. */ + mfaLastUsedAt?: DatetimeFilter; + /** Negates the expression. */ + not?: UserSettingsSecurityFilter; + /** Checks for any expressions in this list. */ + or?: UserSettingsSecurityFilter[]; + /** Filter by the object’s `owner` relation. */ + owner?: UserFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `smsMfaEnabled` field. */ + smsMfaEnabled?: BooleanFilter; + /** Filter by the object’s `totpEnabled` field. */ + totpEnabled?: BooleanFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} +/** An input for mutations affecting `UserSettingsSecurity` */ +export interface UserSettingsSecurityInput { + /** Number of remaining unused backup codes */ + backupCodesCount?: number; + createdAt?: string; + /** Whether email-based MFA codes are active for this user */ + emailMfaEnabled?: boolean; + id?: string; + /** When the first MFA method was enabled */ + mfaEnrolledAt?: string; + /** When MFA was last successfully verified */ + mfaLastUsedAt?: string; + ownerId?: string; + /** Whether SMS-based MFA codes are active for this user */ + smsMfaEnabled?: boolean; + /** Whether TOTP (authenticator app) MFA is active for this user */ + totpEnabled?: boolean; + updatedAt?: string; +} +/** Represents an update to a `UserSettingsSecurity`. Fields that are set will be updated. */ +export interface UserSettingsSecurityPatch { + /** Number of remaining unused backup codes */ + backupCodesCount?: number; + createdAt?: string; + /** Whether email-based MFA codes are active for this user */ + emailMfaEnabled?: boolean; + id?: string; + /** When the first MFA method was enabled */ + mfaEnrolledAt?: string; + /** When MFA was last successfully verified */ + mfaLastUsedAt?: string; + ownerId?: string; + /** Whether SMS-based MFA codes are active for this user */ + smsMfaEnabled?: boolean; + /** Whether TOTP (authenticator app) MFA is active for this user */ + totpEnabled?: boolean; + updatedAt?: string; +} /** A filter to be used against many `AuditLogAuth` object types. All fields are combined with a logical ‘and.’ */ export interface UserToManyAuditLogAuthFilter { /** Filters to entities where every related entity matches. */ @@ -1688,6 +1961,12 @@ export interface EmailConnection { pageInfo: PageInfo; totalCount: number; } +export interface GetMfaStatusRecord { + backupCodesCount?: number | null; + emailMfaEnabled?: boolean | null; + smsMfaEnabled?: boolean | null; + totpEnabled?: boolean | null; +} /** A connection to a list of `IdentityProvider` values. */ export interface IdentityProviderConnection { edges: IdentityProviderEdge[]; @@ -1744,6 +2023,20 @@ export interface UserConnectedAccountConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `UserSetting` values. */ +export interface UserSettingConnection { + edges: UserSettingEdge[]; + nodes: UserSetting[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `UserSettingsSecurity` values. */ +export interface UserSettingsSecurityConnection { + edges: UserSettingsSecurityEdge[]; + nodes: UserSettingsSecurity[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `User` values. */ export interface UserConnection { edges: UserEdge[]; @@ -1758,13 +2051,25 @@ export interface WebauthnCredentialConnection { pageInfo: PageInfo; totalCount: number; } +export interface ApproveDevicePayload { + clientMutationId?: string | null; + result?: boolean | null; +} export interface CheckPasswordPayload { clientMutationId?: string | null; } +export interface CompleteMfaChallengePayload { + clientMutationId?: string | null; + result?: CompleteMfaChallengeRecord | null; +} export interface ConfirmDeleteAccountPayload { clientMutationId?: string | null; result?: boolean | null; } +export interface ConfirmTotpSetupPayload { + clientMutationId?: string | null; + result?: boolean | null; +} export interface CreateApiKeyPayload { clientMutationId?: string | null; result?: CreateApiKeyRecord | null; @@ -1775,6 +2080,10 @@ export interface CreateAuditLogAuthPayload { auditLogAuthEdge?: AuditLogAuthEdge | null; clientMutationId?: string | null; } +export interface CreateChildPrincipalPayload { + clientMutationId?: string | null; + result?: string | null; +} export interface CreateCryptoAddressPayload { clientMutationId?: string | null; /** The `CryptoAddress` that was created by this mutation. */ @@ -1805,11 +2114,9 @@ export interface CreatePrincipalPayload { clientMutationId?: string | null; result?: string | null; } -export interface CreatePrincipalEntityPayload { +export interface CreatePrincipalFromPresetPayload { clientMutationId?: string | null; - /** The `PrincipalEntity` that was created by this mutation. */ - principalEntity?: PrincipalEntity | null; - principalEntityEdge?: PrincipalEntityEdge | null; + result?: string | null; } export interface CreateRoleTypePayload { clientMutationId?: string | null; @@ -1823,6 +2130,18 @@ export interface CreateUserPayload { user?: User | null; userEdge?: UserEdge | null; } +export interface CreateUserSettingPayload { + clientMutationId?: string | null; + /** The `UserSetting` that was created by this mutation. */ + userSetting?: UserSetting | null; + userSettingEdge?: UserSettingEdge | null; +} +export interface CreateUserSettingsSecurityPayload { + clientMutationId?: string | null; + /** The `UserSettingsSecurity` that was created by this mutation. */ + userSettingsSecurity?: UserSettingsSecurity | null; + userSettingsSecurityEdge?: UserSettingsSecurityEdge | null; +} export interface CreateWebauthnCredentialPayload { clientMutationId?: string | null; /** The `WebauthnCredential` that was created by this mutation. */ @@ -1861,12 +2180,6 @@ export interface DeletePrincipalPayload { clientMutationId?: string | null; result?: boolean | null; } -export interface DeletePrincipalEntityPayload { - clientMutationId?: string | null; - /** The `PrincipalEntity` that was deleted by this mutation. */ - principalEntity?: PrincipalEntity | null; - principalEntityEdge?: PrincipalEntityEdge | null; -} export interface DeleteRoleTypePayload { clientMutationId?: string | null; /** The `RoleType` that was deleted by this mutation. */ @@ -1879,16 +2192,52 @@ export interface DeleteUserPayload { user?: User | null; userEdge?: UserEdge | null; } +export interface DeleteUserSettingPayload { + clientMutationId?: string | null; + /** The `UserSetting` that was deleted by this mutation. */ + userSetting?: UserSetting | null; + userSettingEdge?: UserSettingEdge | null; +} +export interface DeleteUserSettingsSecurityPayload { + clientMutationId?: string | null; + /** The `UserSettingsSecurity` that was deleted by this mutation. */ + userSettingsSecurity?: UserSettingsSecurity | null; + userSettingsSecurityEdge?: UserSettingsSecurityEdge | null; +} export interface DeleteWebauthnCredentialPayload { clientMutationId?: string | null; /** The `WebauthnCredential` that was deleted by this mutation. */ webauthnCredential?: WebauthnCredential | null; webauthnCredentialEdge?: WebauthnCredentialEdge | null; } +export interface DisableEmailMfaPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export interface DisableSmsMfaPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export interface DisableTotpPayload { + clientMutationId?: string | null; + result?: boolean | null; +} export interface DisconnectAccountPayload { clientMutationId?: string | null; result?: boolean | null; } +export interface EnableEmailMfaPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export interface EnableSmsMfaPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export interface EnableTotpPayload { + clientMutationId?: string | null; + result?: string | null; +} export interface ExtendTokenExpiresPayload { clientMutationId?: string | null; result?: ExtendTokenExpiresRecord[] | null; @@ -1896,28 +2245,35 @@ export interface ExtendTokenExpiresPayload { export interface ForgotPasswordPayload { clientMutationId?: string | null; } +export interface GenerateBackupCodesPayload { + clientMutationId?: string | null; + result?: string | null; +} export interface LinkIdentityPayload { clientMutationId?: string | null; result?: boolean | null; } +export interface MintAccessTokenPayload { + clientMutationId?: string | null; + result?: MintAccessTokenRecord | 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; + /** The logical bucket row that was queued for reconciliation. */ + bucketId: string; + bucketKey: string; + /** The reconciler job enqueued to provision this bucket. */ + jobId: string; + /** The physical bucket name already recorded, or null when reconciliation has not completed. */ + physicalName?: string | null; } export interface ProvisionNewUserPayload { clientMutationId?: string | null; result?: string | null; } +export interface RefreshAccessTokenPayload { + clientMutationId?: string | null; + result?: RefreshAccessTokenRecord | null; +} export interface RequestCrossOriginTokenPayload { clientMutationId?: string | null; result?: string | null; @@ -1950,6 +2306,14 @@ export interface SetPasswordPayload { clientMutationId?: string | null; result?: boolean | null; } +export interface SetPrincipalEntitiesPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export interface SetPrincipalScopePayload { + clientMutationId?: string | null; + result?: boolean | null; +} export interface SignInPayload { clientMutationId?: string | null; result?: SignInRecord | null; @@ -2005,11 +2369,9 @@ export interface UpdatePhoneNumberPayload { phoneNumber?: PhoneNumber | null; phoneNumberEdge?: PhoneNumberEdge | null; } -export interface UpdatePrincipalEntityPayload { +export interface UpdatePrincipalPayload { clientMutationId?: string | null; - /** The `PrincipalEntity` that was updated by this mutation. */ - principalEntity?: PrincipalEntity | null; - principalEntityEdge?: PrincipalEntityEdge | null; + result?: boolean | null; } export interface UpdateRoleTypePayload { clientMutationId?: string | null; @@ -2023,6 +2385,18 @@ export interface UpdateUserPayload { user?: User | null; userEdge?: UserEdge | null; } +export interface UpdateUserSettingPayload { + clientMutationId?: string | null; + /** The `UserSetting` that was updated by this mutation. */ + userSetting?: UserSetting | null; + userSettingEdge?: UserSettingEdge | null; +} +export interface UpdateUserSettingsSecurityPayload { + clientMutationId?: string | null; + /** The `UserSettingsSecurity` that was updated by this mutation. */ + userSettingsSecurity?: UserSettingsSecurity | null; + userSettingsSecurityEdge?: UserSettingsSecurityEdge | null; +} export interface UpdateWebauthnCredentialPayload { clientMutationId?: string | null; /** The `WebauthnCredential` that was updated by this mutation. */ @@ -2145,6 +2519,18 @@ export interface UserConnectedAccountEdge { /** The `UserConnectedAccount` at the end of the edge. */ node?: UserConnectedAccount | null; } +/** A `UserSetting` edge in the connection. */ +export interface UserSettingEdge { + cursor?: string | null; + /** The `UserSetting` at the end of the edge. */ + node?: UserSetting | null; +} +/** A `UserSettingsSecurity` edge in the connection. */ +export interface UserSettingsSecurityEdge { + cursor?: string | null; + /** The `UserSettingsSecurity` at the end of the edge. */ + node?: UserSettingsSecurity | null; +} /** A `User` edge in the connection. */ export interface UserEdge { cursor?: string | null; @@ -2157,6 +2543,15 @@ export interface WebauthnCredentialEdge { /** The `WebauthnCredential` at the end of the edge. */ node?: WebauthnCredential | null; } +export interface CompleteMfaChallengeRecord { + accessToken?: string | null; + accessTokenExpiresAt?: string | null; + deviceApprovalRequired?: boolean | null; + id?: string | null; + isVerified?: boolean | null; + outDeviceToken?: string | null; + outUserId?: string | null; +} export interface CreateApiKeyRecord { apiKey?: string | null; expiresAt?: string | null; @@ -2172,13 +2567,31 @@ export interface ExtendTokenExpiresRecord { id?: string | null; sessionId?: string | null; } +export interface MintAccessTokenRecord { + accessExpiresAt?: string | null; + accessToken?: string | null; + principalUserId?: string | null; + refreshExpiresAt?: string | null; + refreshToken?: string | null; + sessionId?: string | null; +} +export interface RefreshAccessTokenRecord { + accessExpiresAt?: string | null; + accessToken?: string | null; + principalUserId?: string | null; + refreshExpiresAt?: string | null; + refreshToken?: string | null; + sessionId?: string | null; +} export interface SignInRecord { accessToken?: string | null; accessTokenExpiresAt?: string | null; + deviceApprovalRequired?: boolean | null; id?: string | null; isVerified?: boolean | null; mfaChallengeToken?: string | null; mfaRequired?: boolean | null; + outDeviceToken?: string | null; totpEnabled?: boolean | null; userId?: string | null; } @@ -2193,11 +2606,15 @@ export interface SignInCrossOriginRecord { export interface SignInMagicLinkRecord { accessToken?: string | null; accessTokenExpiresAt?: string | null; + deviceApprovalRequired?: boolean | null; + outDeviceToken?: string | null; userId?: string | null; } export interface SignInSmsOtpRecord { accessToken?: string | null; accessTokenExpiresAt?: string | null; + deviceApprovalRequired?: boolean | null; + outDeviceToken?: string | null; userId?: string | null; } export interface SignUpRecord { @@ -2205,17 +2622,20 @@ export interface SignUpRecord { accessTokenExpiresAt?: string | null; id?: string | null; isVerified?: boolean | null; + outDeviceToken?: string | null; totpEnabled?: boolean | null; userId?: string | null; } export interface SignUpMagicLinkRecord { accessToken?: string | null; accessTokenExpiresAt?: string | null; + outDeviceToken?: string | null; userId?: string | null; } export interface SignUpSmsRecord { accessToken?: string | null; accessTokenExpiresAt?: string | null; + outDeviceToken?: string | null; userId?: string | null; } /** Table constraints */ @@ -2330,10 +2750,18 @@ export interface MetaSearch { } /** Storage metadata for a table */ export interface MetaStorage { + /** GraphQL type name of the plane's buckets table */ + bucketsType: string; + /** Computed download-URL field on the files type; null on the buckets side */ + downloadUrlField?: string | null; + /** GraphQL type name of the plane's files table */ + filesType: string; /** Whether this table is a storage buckets table */ isBucketsTable: boolean; /** Whether this table is a storage files table */ isFilesTable: boolean; + /** The plane's GraphQL upload surface */ + upload: MetaStorageUpload; } /** Information about a unique constraint */ export interface MetaUniqueConstraint { @@ -2416,6 +2844,27 @@ export interface MetaSearchConfig { /** JSON-encoded per-adapter score weights */ weights?: string | null; } +/** The GraphQL upload surface of a storage plane, derived from the registry facts the presigned-url plugin emits from */ +export interface MetaStorageUpload { + /** Per-file input type inside the bulk input */ + bulkFileInputType: string; + /** Per-file payload type inside the bulk payload */ + bulkFilePayloadType: string; + /** Input type of the bulk upload mutation */ + bulkInputType: string; + /** Root mutation field for bulk upload */ + bulkMutation: string; + /** Payload type of the bulk upload mutation */ + bulkPayloadType: string; + /** Input type of the single upload mutation */ + inputType: string; + /** Root mutation field for single-file upload (e.g. uploadAppFile) */ + mutation: string; + /** Payload type of the single upload mutation */ + payloadType: string; + /** Whether the upload input requires ownerId (entity-keyed plane) */ + requiresOwnerId: boolean; +} /** 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. */ export interface MetaScalarEncoding { /** For 'vector': declared length, else null. */ diff --git a/sdk/constructive-react/src/auth/types.ts b/sdk/constructive-react/src/auth/types.ts index c3ee09df88..ea04745fb7 100644 --- a/sdk/constructive-react/src/auth/types.ts +++ b/sdk/constructive-react/src/auth/types.ts @@ -10,6 +10,7 @@ export type ConstructiveInternalTypeOrigin = unknown; export interface AuditLogAuth { actorId: string | null; createdAt: string | null; + details: unknown | null; event: string | null; id: string | null; ipAddress: string | null; @@ -71,10 +72,14 @@ export interface PhoneNumber { export interface Principal { bypassStepUp: boolean | null; createdAt: string | null; + createdBySessionId: string | null; + depth: number | null; + expiresAt: string | null; id: string | null; isReadOnly: boolean | null; name: string | null; ownerId: string | null; + parentPrincipalId: string | null; updatedAt: string | null; useAdminOwner: boolean | null; userId: string | null; @@ -125,6 +130,24 @@ export interface User { updatedAt: string | null; username: string | null; } +export interface UserSetting { + createdAt: string | null; + id: string | null; + ownerId: string | null; + updatedAt: string | null; +} +export interface UserSettingsSecurity { + backupCodesCount: number | null; + createdAt: string | null; + emailMfaEnabled: boolean | null; + id: string | null; + mfaEnrolledAt: string | null; + mfaLastUsedAt: string | null; + ownerId: string | null; + smsMfaEnabled: boolean | null; + totpEnabled: boolean | null; + updatedAt: string | null; +} export interface WebauthnCredential { backupEligible: boolean | null; backupState: boolean | null; diff --git a/sdk/constructive-react/src/compute/README.md b/sdk/constructive-react/src/compute/README.md index 0eae92d387..3ed988cd00 100644 --- a/sdk/constructive-react/src/compute/README.md +++ b/sdk/constructive-react/src/compute/README.md @@ -8,9 +8,9 @@ ## Overview -- **Tables:** 70 -- **Custom queries:** 1 -- **Custom mutations:** 37 +- **Tables:** 119 +- **Custom queries:** 2 +- **Custom mutations:** 58 **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 97a8bff6ea..8a8367d519 100644 --- a/sdk/constructive-react/src/compute/hooks/README.md +++ b/sdk/constructive-react/src/compute/hooks/README.md @@ -32,11 +32,68 @@ function App() { | Hook | Type | Description | |------|------|-------------| +| `useBuildsQuery` | Query | One run of a repository workflow: its commit, its job, and what it produced | +| `useBuildQuery` | Query | One run of a repository workflow: its commit, its job, and what it produced | +| `useCreateBuildMutation` | Mutation | One run of a repository workflow: its commit, its job, and what it produced | +| `useUpdateBuildMutation` | Mutation | One run of a repository workflow: its commit, its job, and what it produced | +| `useDeleteBuildMutation` | Mutation | One run of a repository workflow: its commit, its job, and what it produced | +| `useBuildStepsQuery` | Query | Partitioned append-only step and test results of a build, keyed into its log object | +| `useBuildStepQuery` | Query | Partitioned append-only step and test results of a build, keyed into its log object | +| `useCreateBuildStepMutation` | Mutation | Partitioned append-only step and test results of a build, keyed into its log object | +| `useUpdateBuildStepMutation` | Mutation | Partitioned append-only step and test results of a build, keyed into its log object | +| `useDeleteBuildStepMutation` | Mutation | Partitioned append-only step and test results of a build, keyed into its log object | +| `useBuilderBindingsQuery` | Query | Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST | +| `useBuilderBindingQuery` | Query | Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST | +| `useCreateBuilderBindingMutation` | Mutation | Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST | +| `useUpdateBuilderBindingMutation` | Mutation | Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST | +| `useDeleteBuilderBindingMutation` | Mutation | Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST | | `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 | +| `useDatabaseFunctionGraphsQuery` | Query | Flow graph definitions — FBP graphs stored in the dedicated graph Merkle store | +| `useDatabaseFunctionGraphQuery` | Query | Flow graph definitions — FBP graphs stored in the dedicated graph Merkle store | +| `useCreateDatabaseFunctionGraphMutation` | Mutation | Flow graph definitions — FBP graphs stored in the dedicated graph Merkle store | +| `useUpdateDatabaseFunctionGraphMutation` | Mutation | Flow graph definitions — FBP graphs stored in the dedicated graph Merkle store | +| `useDeleteDatabaseFunctionGraphMutation` | Mutation | Flow graph definitions — FBP graphs stored in the dedicated graph Merkle store | +| `useDatabaseFunctionGraphExecutionsQuery` | Query | Ephemeral execution state for flow graph evaluation | +| `useDatabaseFunctionGraphExecutionQuery` | Query | Ephemeral execution state for flow graph evaluation | +| `useCreateDatabaseFunctionGraphExecutionMutation` | Mutation | Ephemeral execution state for flow graph evaluation | +| `useUpdateDatabaseFunctionGraphExecutionMutation` | Mutation | Ephemeral execution state for flow graph evaluation | +| `useDeleteDatabaseFunctionGraphExecutionMutation` | Mutation | Ephemeral execution state for flow graph evaluation | +| `useDatabaseFunctionGraphExecutionNodeStatesQuery` | Query | Per-node execution state — tracks individual node lifecycle for debugging | +| `useDatabaseFunctionGraphExecutionNodeStateQuery` | Query | Per-node execution state — tracks individual node lifecycle for debugging | +| `useCreateDatabaseFunctionGraphExecutionNodeStateMutation` | Mutation | Per-node execution state — tracks individual node lifecycle for debugging | +| `useUpdateDatabaseFunctionGraphExecutionNodeStateMutation` | Mutation | Per-node execution state — tracks individual node lifecycle for debugging | +| `useDeleteDatabaseFunctionGraphExecutionNodeStateMutation` | Mutation | Per-node execution state — tracks individual node lifecycle for debugging | +| `useDatabaseFunctionGraphExecutionOutputsQuery` | Query | Content-addressed store for execution outputs — hash-referenced from node_outputs | +| `useDatabaseFunctionGraphExecutionOutputQuery` | Query | Content-addressed store for execution outputs — hash-referenced from node_outputs | +| `useCreateDatabaseFunctionGraphExecutionOutputMutation` | Mutation | Content-addressed store for execution outputs — hash-referenced from node_outputs | +| `useUpdateDatabaseFunctionGraphExecutionOutputMutation` | Mutation | Content-addressed store for execution outputs — hash-referenced from node_outputs | +| `useDeleteDatabaseFunctionGraphExecutionOutputMutation` | Mutation | Content-addressed store for execution outputs — hash-referenced from node_outputs | +| `useDatabaseGraphCommitsQuery` | Query | Commit history — each commit snapshots a tree root for a store | +| `useDatabaseGraphCommitQuery` | Query | Commit history — each commit snapshots a tree root for a store | +| `useCreateDatabaseGraphCommitMutation` | Mutation | Commit history — each commit snapshots a tree root for a store | +| `useUpdateDatabaseGraphCommitMutation` | Mutation | Commit history — each commit snapshots a tree root for a store | +| `useDeleteDatabaseGraphCommitMutation` | Mutation | Commit history — each commit snapshots a tree root for a store | +| `useDatabaseGraphGetAllTreeNodesQuery` | Query | List all databaseGraphGetAllTreeNodes | +| `useCreateDatabaseGraphGetAllTreeNodesRecordMutation` | Mutation | Create a databaseGraphGetAllTreeNodesRecord | +| `useDatabaseGraphObjectsQuery` | Query | Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children | +| `useDatabaseGraphObjectQuery` | Query | Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children | +| `useCreateDatabaseGraphObjectMutation` | Mutation | Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children | +| `useUpdateDatabaseGraphObjectMutation` | Mutation | Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children | +| `useDeleteDatabaseGraphObjectMutation` | Mutation | Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children | +| `useDatabaseGraphRefsQuery` | Query | Branch heads — mutable pointers into the commit chain | +| `useDatabaseGraphRefQuery` | Query | Branch heads — mutable pointers into the commit chain | +| `useCreateDatabaseGraphRefMutation` | Mutation | Branch heads — mutable pointers into the commit chain | +| `useUpdateDatabaseGraphRefMutation` | Mutation | Branch heads — mutable pointers into the commit chain | +| `useDeleteDatabaseGraphRefMutation` | Mutation | Branch heads — mutable pointers into the commit chain | +| `useDatabaseGraphStoresQuery` | Query | Named stores — one per version-controlled tree (e.g. one graph, one definition set) | +| `useDatabaseGraphStoreQuery` | Query | Named stores — one per version-controlled tree (e.g. one graph, one definition set) | +| `useCreateDatabaseGraphStoreMutation` | Mutation | Named stores — one per version-controlled tree (e.g. one graph, one definition set) | +| `useUpdateDatabaseGraphStoreMutation` | Mutation | Named stores — one per version-controlled tree (e.g. one graph, one definition set) | +| `useDeleteDatabaseGraphStoreMutation` | Mutation | Named stores — one per version-controlled tree (e.g. one graph, one definition set) | | `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 | @@ -124,6 +181,16 @@ function App() { | `useDeleteFunctionInvocationMutation` | Mutation | Function invocation log — INSERT to call a function (business-layer, metered). Linked to definitions via function_definition_id FK, with task_identifier as the denormalized routing/audit slug. | | `useGetAllTreeNodesQuery` | Query | List all getAllTreeNodes | | `useCreateGetAllTreeNodesRecordMutation` | Mutation | Create a getAllTreeNodesRecord | +| `useImagesQuery` | Query | Container image catalog: images available to run as functions, resources, and builds | +| `useImageQuery` | Query | Container image catalog: images available to run as functions, resources, and builds | +| `useCreateImageMutation` | Mutation | Container image catalog: images available to run as functions, resources, and builds | +| `useUpdateImageMutation` | Mutation | Container image catalog: images available to run as functions, resources, and builds | +| `useDeleteImageMutation` | Mutation | Container image catalog: images available to run as functions, resources, and builds | +| `useImageGrantsQuery` | Query | Grants that make a catalog image usable by one scope | +| `useImageGrantQuery` | Query | Grants that make a catalog image usable by one scope | +| `useCreateImageGrantMutation` | Mutation | Grants that make a catalog image usable by one scope | +| `useUpdateImageGrantMutation` | Mutation | Grants that make a catalog image usable by one scope | +| `useDeleteImageGrantMutation` | Mutation | Grants that make a catalog image usable by one scope | | `useInfraCommitsQuery` | Query | Commit history — each commit snapshots a tree root for a store | | `useInfraCommitQuery` | Query | Commit history — each commit snapshots a tree root for a store | | `useCreateInfraCommitMutation` | Mutation | Commit history — each commit snapshots a tree root for a store | @@ -161,6 +228,21 @@ function App() { | `useCreateNamespaceEventMutation` | Mutation | Namespace lifecycle events — audit log of creation, activation, deactivation, label changes | | `useUpdateNamespaceEventMutation` | Mutation | Namespace lifecycle events — audit log of creation, activation, deactivation, label changes | | `useDeleteNamespaceEventMutation` | Mutation | Namespace lifecycle events — audit log of creation, activation, deactivation, label changes | +| `usePlatformBuildsQuery` | Query | One run of a repository workflow: its commit, its job, and what it produced | +| `usePlatformBuildQuery` | Query | One run of a repository workflow: its commit, its job, and what it produced | +| `useCreatePlatformBuildMutation` | Mutation | One run of a repository workflow: its commit, its job, and what it produced | +| `useUpdatePlatformBuildMutation` | Mutation | One run of a repository workflow: its commit, its job, and what it produced | +| `useDeletePlatformBuildMutation` | Mutation | One run of a repository workflow: its commit, its job, and what it produced | +| `usePlatformBuildStepsQuery` | Query | Partitioned append-only step and test results of a build, keyed into its log object | +| `usePlatformBuildStepQuery` | Query | Partitioned append-only step and test results of a build, keyed into its log object | +| `useCreatePlatformBuildStepMutation` | Mutation | Partitioned append-only step and test results of a build, keyed into its log object | +| `useUpdatePlatformBuildStepMutation` | Mutation | Partitioned append-only step and test results of a build, keyed into its log object | +| `useDeletePlatformBuildStepMutation` | Mutation | Partitioned append-only step and test results of a build, keyed into its log object | +| `usePlatformBuilderBindingsQuery` | Query | Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST | +| `usePlatformBuilderBindingQuery` | Query | Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST | +| `useCreatePlatformBuilderBindingMutation` | Mutation | Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST | +| `useUpdatePlatformBuilderBindingMutation` | Mutation | Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST | +| `useDeletePlatformBuilderBindingMutation` | Mutation | Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST | | `usePlatformFunctionApiBindingsQuery` | Query | Join table binding function definitions to API endpoints with per-binding alias and config | | `usePlatformFunctionApiBindingQuery` | Query | Join table binding function definitions to API endpoints with per-binding alias and config | | `useCreatePlatformFunctionApiBindingMutation` | Mutation | Join table binding function definitions to API endpoints with per-binding alias and config | @@ -201,6 +283,16 @@ function App() { | `useCreatePlatformFunctionInvocationMutation` | Mutation | Function invocation log — INSERT to call a function (business-layer, metered). Linked to definitions via function_definition_id FK, with task_identifier as the denormalized routing/audit slug. | | `useUpdatePlatformFunctionInvocationMutation` | Mutation | Function invocation log — INSERT to call a function (business-layer, metered). Linked to definitions via function_definition_id FK, with task_identifier as the denormalized routing/audit slug. | | `useDeletePlatformFunctionInvocationMutation` | Mutation | Function invocation log — INSERT to call a function (business-layer, metered). Linked to definitions via function_definition_id FK, with task_identifier as the denormalized routing/audit slug. | +| `usePlatformImagesQuery` | Query | Container image catalog: images available to run as functions, resources, and builds | +| `usePlatformImageQuery` | Query | Container image catalog: images available to run as functions, resources, and builds | +| `useCreatePlatformImageMutation` | Mutation | Container image catalog: images available to run as functions, resources, and builds | +| `useUpdatePlatformImageMutation` | Mutation | Container image catalog: images available to run as functions, resources, and builds | +| `useDeletePlatformImageMutation` | Mutation | Container image catalog: images available to run as functions, resources, and builds | +| `usePlatformImageGrantsQuery` | Query | Grants that make a catalog image usable by one scope | +| `usePlatformImageGrantQuery` | Query | Grants that make a catalog image usable by one scope | +| `useCreatePlatformImageGrantMutation` | Mutation | Grants that make a catalog image usable by one scope | +| `useUpdatePlatformImageGrantMutation` | Mutation | Grants that make a catalog image usable by one scope | +| `useDeletePlatformImageGrantMutation` | Mutation | Grants that make a catalog image usable by one scope | | `usePlatformInfraCommitsQuery` | Query | Commit history — each commit snapshots a tree root for a store | | `usePlatformInfraCommitQuery` | Query | Commit history — each commit snapshots a tree root for a store | | `useCreatePlatformInfraCommitMutation` | Mutation | Commit history — each commit snapshots a tree root for a store | @@ -223,6 +315,16 @@ function App() { | `useCreatePlatformInfraStoreMutation` | Mutation | Named stores — one per version-controlled tree (e.g. one graph, one definition set) | | `useUpdatePlatformInfraStoreMutation` | Mutation | Named stores — one per version-controlled tree (e.g. one graph, one definition set) | | `useDeletePlatformInfraStoreMutation` | Mutation | Named stores — one per version-controlled tree (e.g. one graph, one definition set) | +| `usePlatformK8sResourceKindsQuery` | Query | Kubernetes kind allow-list for DB-driven resources — merkle-versioned head over the infra store; the admission gate fails closed on kinds without an active row | +| `usePlatformK8sResourceKindQuery` | Query | Kubernetes kind allow-list for DB-driven resources — merkle-versioned head over the infra store; the admission gate fails closed on kinds without an active row | +| `useCreatePlatformK8sResourceKindMutation` | Mutation | Kubernetes kind allow-list for DB-driven resources — merkle-versioned head over the infra store; the admission gate fails closed on kinds without an active row | +| `useUpdatePlatformK8sResourceKindMutation` | Mutation | Kubernetes kind allow-list for DB-driven resources — merkle-versioned head over the infra store; the admission gate fails closed on kinds without an active row | +| `useDeletePlatformK8sResourceKindMutation` | Mutation | Kubernetes kind allow-list for DB-driven resources — merkle-versioned head over the infra store; the admission gate fails closed on kinds without an active row | +| `usePlatformK8sSpecRulesQuery` | Query | Spec rulebook for DB-driven resources — merkle-versioned head over the infra store; enforced by the generated admission gate via infra_utils.check_resource_admission | +| `usePlatformK8sSpecRuleQuery` | Query | Spec rulebook for DB-driven resources — merkle-versioned head over the infra store; enforced by the generated admission gate via infra_utils.check_resource_admission | +| `useCreatePlatformK8sSpecRuleMutation` | Mutation | Spec rulebook for DB-driven resources — merkle-versioned head over the infra store; enforced by the generated admission gate via infra_utils.check_resource_admission | +| `useUpdatePlatformK8sSpecRuleMutation` | Mutation | Spec rulebook for DB-driven resources — merkle-versioned head over the infra store; enforced by the generated admission gate via infra_utils.check_resource_admission | +| `useDeletePlatformK8sSpecRuleMutation` | Mutation | Spec rulebook for DB-driven resources — merkle-versioned head over the infra store; enforced by the generated admission gate via infra_utils.check_resource_admission | | `usePlatformNamespacesQuery` | Query | Logical namespace containers for grouping secrets, config, functions, and other resources | | `usePlatformNamespaceQuery` | Query | Logical namespace containers for grouping secrets, config, functions, and other resources | | `useCreatePlatformNamespaceMutation` | Mutation | Logical namespace containers for grouping secrets, config, functions, and other resources | @@ -233,6 +335,71 @@ function App() { | `useCreatePlatformNamespaceEventMutation` | Mutation | Namespace lifecycle events — audit log of creation, activation, deactivation, label changes | | `useUpdatePlatformNamespaceEventMutation` | Mutation | Namespace lifecycle events — audit log of creation, activation, deactivation, label changes | | `useDeletePlatformNamespaceEventMutation` | Mutation | Namespace lifecycle events — audit log of creation, activation, deactivation, label changes | +| `usePlatformProposalCommentsQuery` | Query | Comments on a local proposal, optionally anchored to a line | +| `usePlatformProposalCommentQuery` | Query | Comments on a local proposal, optionally anchored to a line | +| `useCreatePlatformProposalCommentMutation` | Mutation | Comments on a local proposal, optionally anchored to a line | +| `useUpdatePlatformProposalCommentMutation` | Mutation | Comments on a local proposal, optionally anchored to a line | +| `useDeletePlatformProposalCommentMutation` | Mutation | Comments on a local proposal, optionally anchored to a line | +| `usePlatformProposalsQuery` | Query | Proposals against a repository: issues, changes to merge, discussions and decisions | +| `usePlatformProposalQuery` | Query | Proposals against a repository: issues, changes to merge, discussions and decisions | +| `useCreatePlatformProposalMutation` | Mutation | Proposals against a repository: issues, changes to merge, discussions and decisions | +| `useUpdatePlatformProposalMutation` | Mutation | Proposals against a repository: issues, changes to merge, discussions and decisions | +| `useDeletePlatformProposalMutation` | Mutation | Proposals against a repository: issues, changes to merge, discussions and decisions | +| `usePlatformProposalFileViewsQuery` | Query | Files a reviewer has read, pinned to the blob they read | +| `usePlatformProposalFileViewQuery` | Query | Files a reviewer has read, pinned to the blob they read | +| `useCreatePlatformProposalFileViewMutation` | Mutation | Files a reviewer has read, pinned to the blob they read | +| `useUpdatePlatformProposalFileViewMutation` | Mutation | Files a reviewer has read, pinned to the blob they read | +| `useDeletePlatformProposalFileViewMutation` | Mutation | Files a reviewer has read, pinned to the blob they read | +| `usePlatformProposalReactionsQuery` | Query | Emoji reactions to a local proposal or one of its comments | +| `usePlatformProposalReactionQuery` | Query | Emoji reactions to a local proposal or one of its comments | +| `useCreatePlatformProposalReactionMutation` | Mutation | Emoji reactions to a local proposal or one of its comments | +| `useUpdatePlatformProposalReactionMutation` | Mutation | Emoji reactions to a local proposal or one of its comments | +| `useDeletePlatformProposalReactionMutation` | Mutation | Emoji reactions to a local proposal or one of its comments | +| `usePlatformProposalReviewsQuery` | Query | Review verdicts on a proposal, each pinned to the commit reviewed | +| `usePlatformProposalReviewQuery` | Query | Review verdicts on a proposal, each pinned to the commit reviewed | +| `useCreatePlatformProposalReviewMutation` | Mutation | Review verdicts on a proposal, each pinned to the commit reviewed | +| `useUpdatePlatformProposalReviewMutation` | Mutation | Review verdicts on a proposal, each pinned to the commit reviewed | +| `useDeletePlatformProposalReviewMutation` | Mutation | Review verdicts on a proposal, each pinned to the commit reviewed | +| `usePlatformProposalsChunksQuery` | Query | List all platformProposalsChunks | +| `usePlatformProposalsChunkQuery` | Query | Get one platformProposalsChunk | +| `useCreatePlatformProposalsChunkMutation` | Mutation | Create a platformProposalsChunk | +| `useUpdatePlatformProposalsChunkMutation` | Mutation | Update a platformProposalsChunk | +| `useDeletePlatformProposalsChunkMutation` | Mutation | Delete a platformProposalsChunk | +| `usePlatformRegistryBindingsQuery` | Query | Binds a namespace to an installed container registry for a lane (realm) — the reconciler projects that registry's credentials into the namespace as an image pull secret | +| `usePlatformRegistryBindingQuery` | Query | Binds a namespace to an installed container registry for a lane (realm) — the reconciler projects that registry's credentials into the namespace as an image pull secret | +| `useCreatePlatformRegistryBindingMutation` | Mutation | Binds a namespace to an installed container registry for a lane (realm) — the reconciler projects that registry's credentials into the namespace as an image pull secret | +| `useUpdatePlatformRegistryBindingMutation` | Mutation | Binds a namespace to an installed container registry for a lane (realm) — the reconciler projects that registry's credentials into the namespace as an image pull secret | +| `useDeletePlatformRegistryBindingMutation` | Mutation | Binds a namespace to an installed container registry for a lane (realm) — the reconciler projects that registry's credentials into the namespace as an image pull secret | +| `usePlatformRegistriesQuery` | Query | Artifact registries this scope pulls from or pushes to (OCI images, npm packages), platform-run or external | +| `usePlatformRegistryQuery` | Query | Artifact registries this scope pulls from or pushes to (OCI images, npm packages), platform-run or external | +| `useCreatePlatformRegistryMutation` | Mutation | Artifact registries this scope pulls from or pushes to (OCI images, npm packages), platform-run or external | +| `useUpdatePlatformRegistryMutation` | Mutation | Artifact registries this scope pulls from or pushes to (OCI images, npm packages), platform-run or external | +| `useDeletePlatformRegistryMutation` | Mutation | Artifact registries this scope pulls from or pushes to (OCI images, npm packages), platform-run or external | +| `usePlatformRegistryGrantsQuery` | Query | Grants that make a registry usable by one scope | +| `usePlatformRegistryGrantQuery` | Query | Grants that make a registry usable by one scope | +| `useCreatePlatformRegistryGrantMutation` | Mutation | Grants that make a registry usable by one scope | +| `useUpdatePlatformRegistryGrantMutation` | Mutation | Grants that make a registry usable by one scope | +| `useDeletePlatformRegistryGrantMutation` | Mutation | Grants that make a registry usable by one scope | +| `usePlatformRepositoriesQuery` | Query | Source repositories, hosted locally or on an external provider | +| `usePlatformRepositoryQuery` | Query | Source repositories, hosted locally or on an external provider | +| `useCreatePlatformRepositoryMutation` | Mutation | Source repositories, hosted locally or on an external provider | +| `useUpdatePlatformRepositoryMutation` | Mutation | Source repositories, hosted locally or on an external provider | +| `useDeletePlatformRepositoryMutation` | Mutation | Source repositories, hosted locally or on an external provider | +| `usePlatformRepositoryEventsQuery` | Query | Normalized repository events from local hooks and external providers | +| `usePlatformRepositoryEventQuery` | Query | Normalized repository events from local hooks and external providers | +| `useCreatePlatformRepositoryEventMutation` | Mutation | Normalized repository events from local hooks and external providers | +| `useUpdatePlatformRepositoryEventMutation` | Mutation | Normalized repository events from local hooks and external providers | +| `useDeletePlatformRepositoryEventMutation` | Mutation | Normalized repository events from local hooks and external providers | +| `usePlatformRepositoryRequiredChecksQuery` | Query | Workflows required to pass before a repository proposal merges | +| `usePlatformRepositoryRequiredCheckQuery` | Query | Workflows required to pass before a repository proposal merges | +| `useCreatePlatformRepositoryRequiredCheckMutation` | Mutation | Workflows required to pass before a repository proposal merges | +| `useUpdatePlatformRepositoryRequiredCheckMutation` | Mutation | Workflows required to pass before a repository proposal merges | +| `useDeletePlatformRepositoryRequiredCheckMutation` | Mutation | Workflows required to pass before a repository proposal merges | +| `usePlatformRepositoryWorkflowsQuery` | Query | Bindings from a repository event to the flow graph that should run | +| `usePlatformRepositoryWorkflowQuery` | Query | Bindings from a repository event to the flow graph that should run | +| `useCreatePlatformRepositoryWorkflowMutation` | Mutation | Bindings from a repository event to the flow graph that should run | +| `useUpdatePlatformRepositoryWorkflowMutation` | Mutation | Bindings from a repository event to the flow graph that should run | +| `useDeletePlatformRepositoryWorkflowMutation` | Mutation | Bindings from a repository event to the flow graph that should run | | `usePlatformResourcesQuery` | Query | Unified K8s resource declarations — stores desired state (spec) and observed state (status) for all resource kinds within a namespace | | `usePlatformResourceQuery` | Query | Unified K8s resource declarations — stores desired state (spec) and observed state (status) for all resource kinds within a namespace | | `useCreatePlatformResourceMutation` | Mutation | Unified K8s resource declarations — stores desired state (spec) and observed state (status) for all resource kinds within a namespace | @@ -255,6 +422,8 @@ function App() { | `useCreatePlatformResourceInstallationMutation` | Mutation | Installed resource bundle ("release") — groups a set of resources; params are merkle-versioned in the scope's shared infra store for rollback | | `useUpdatePlatformResourceInstallationMutation` | Mutation | Installed resource bundle ("release") — groups a set of resources; params are merkle-versioned in the scope's shared infra store for rollback | | `useDeletePlatformResourceInstallationMutation` | Mutation | Installed resource bundle ("release") — groups a set of resources; params are merkle-versioned in the scope's shared infra store for rollback | +| `usePlatformResourceObservedStoragesQuery` | Query | List all platformResourceObservedStorages | +| `useCreatePlatformResourceObservedStorageMutation` | Mutation | Create a platformResourceObservedStorage | | `usePlatformResourceStatusChecksQuery` | Query | On-demand resource status checks — diagnostic snapshots from the runtime (K8s status, conditions, log tails) | | `usePlatformResourceStatusCheckQuery` | Query | On-demand resource status checks — diagnostic snapshots from the runtime (K8s status, conditions, log tails) | | `useCreatePlatformResourceStatusCheckMutation` | Mutation | On-demand resource status checks — diagnostic snapshots from the runtime (K8s status, conditions, log tails) | @@ -291,6 +460,71 @@ function App() { | `useCreatePlatformWebhookEventMutation` | Mutation | Durable webhook acceptance log — one row per accepted delivery, deduplicated on (endpoint_id, external_event_id), linked to the pending function invocation it enqueued | | `useUpdatePlatformWebhookEventMutation` | Mutation | Durable webhook acceptance log — one row per accepted delivery, deduplicated on (endpoint_id, external_event_id), linked to the pending function invocation it enqueued | | `useDeletePlatformWebhookEventMutation` | Mutation | Durable webhook acceptance log — one row per accepted delivery, deduplicated on (endpoint_id, external_event_id), linked to the pending function invocation it enqueued | +| `useProposalCommentsQuery` | Query | Comments on a local proposal, optionally anchored to a line | +| `useProposalCommentQuery` | Query | Comments on a local proposal, optionally anchored to a line | +| `useCreateProposalCommentMutation` | Mutation | Comments on a local proposal, optionally anchored to a line | +| `useUpdateProposalCommentMutation` | Mutation | Comments on a local proposal, optionally anchored to a line | +| `useDeleteProposalCommentMutation` | Mutation | Comments on a local proposal, optionally anchored to a line | +| `useProposalsQuery` | Query | Proposals against a repository: issues, changes to merge, discussions and decisions | +| `useProposalQuery` | Query | Proposals against a repository: issues, changes to merge, discussions and decisions | +| `useCreateProposalMutation` | Mutation | Proposals against a repository: issues, changes to merge, discussions and decisions | +| `useUpdateProposalMutation` | Mutation | Proposals against a repository: issues, changes to merge, discussions and decisions | +| `useDeleteProposalMutation` | Mutation | Proposals against a repository: issues, changes to merge, discussions and decisions | +| `useProposalFileViewsQuery` | Query | Files a reviewer has read, pinned to the blob they read | +| `useProposalFileViewQuery` | Query | Files a reviewer has read, pinned to the blob they read | +| `useCreateProposalFileViewMutation` | Mutation | Files a reviewer has read, pinned to the blob they read | +| `useUpdateProposalFileViewMutation` | Mutation | Files a reviewer has read, pinned to the blob they read | +| `useDeleteProposalFileViewMutation` | Mutation | Files a reviewer has read, pinned to the blob they read | +| `useProposalReactionsQuery` | Query | Emoji reactions to a local proposal or one of its comments | +| `useProposalReactionQuery` | Query | Emoji reactions to a local proposal or one of its comments | +| `useCreateProposalReactionMutation` | Mutation | Emoji reactions to a local proposal or one of its comments | +| `useUpdateProposalReactionMutation` | Mutation | Emoji reactions to a local proposal or one of its comments | +| `useDeleteProposalReactionMutation` | Mutation | Emoji reactions to a local proposal or one of its comments | +| `useProposalReviewsQuery` | Query | Review verdicts on a proposal, each pinned to the commit reviewed | +| `useProposalReviewQuery` | Query | Review verdicts on a proposal, each pinned to the commit reviewed | +| `useCreateProposalReviewMutation` | Mutation | Review verdicts on a proposal, each pinned to the commit reviewed | +| `useUpdateProposalReviewMutation` | Mutation | Review verdicts on a proposal, each pinned to the commit reviewed | +| `useDeleteProposalReviewMutation` | Mutation | Review verdicts on a proposal, each pinned to the commit reviewed | +| `useProposalsChunksQuery` | Query | List all proposalsChunks | +| `useProposalsChunkQuery` | Query | Get one proposalsChunk | +| `useCreateProposalsChunkMutation` | Mutation | Create a proposalsChunk | +| `useUpdateProposalsChunkMutation` | Mutation | Update a proposalsChunk | +| `useDeleteProposalsChunkMutation` | Mutation | Delete a proposalsChunk | +| `useRegistryBindingsQuery` | Query | Binds a namespace to an installed container registry for a lane (realm) — the reconciler projects that registry's credentials into the namespace as an image pull secret | +| `useRegistryBindingQuery` | Query | Binds a namespace to an installed container registry for a lane (realm) — the reconciler projects that registry's credentials into the namespace as an image pull secret | +| `useCreateRegistryBindingMutation` | Mutation | Binds a namespace to an installed container registry for a lane (realm) — the reconciler projects that registry's credentials into the namespace as an image pull secret | +| `useUpdateRegistryBindingMutation` | Mutation | Binds a namespace to an installed container registry for a lane (realm) — the reconciler projects that registry's credentials into the namespace as an image pull secret | +| `useDeleteRegistryBindingMutation` | Mutation | Binds a namespace to an installed container registry for a lane (realm) — the reconciler projects that registry's credentials into the namespace as an image pull secret | +| `useRegistriesQuery` | Query | Artifact registries this scope pulls from or pushes to (OCI images, npm packages), platform-run or external | +| `useRegistryQuery` | Query | Artifact registries this scope pulls from or pushes to (OCI images, npm packages), platform-run or external | +| `useCreateRegistryMutation` | Mutation | Artifact registries this scope pulls from or pushes to (OCI images, npm packages), platform-run or external | +| `useUpdateRegistryMutation` | Mutation | Artifact registries this scope pulls from or pushes to (OCI images, npm packages), platform-run or external | +| `useDeleteRegistryMutation` | Mutation | Artifact registries this scope pulls from or pushes to (OCI images, npm packages), platform-run or external | +| `useRegistryGrantsQuery` | Query | Grants that make a registry usable by one scope | +| `useRegistryGrantQuery` | Query | Grants that make a registry usable by one scope | +| `useCreateRegistryGrantMutation` | Mutation | Grants that make a registry usable by one scope | +| `useUpdateRegistryGrantMutation` | Mutation | Grants that make a registry usable by one scope | +| `useDeleteRegistryGrantMutation` | Mutation | Grants that make a registry usable by one scope | +| `useRepositoriesQuery` | Query | Source repositories, hosted locally or on an external provider | +| `useRepositoryQuery` | Query | Source repositories, hosted locally or on an external provider | +| `useCreateRepositoryMutation` | Mutation | Source repositories, hosted locally or on an external provider | +| `useUpdateRepositoryMutation` | Mutation | Source repositories, hosted locally or on an external provider | +| `useDeleteRepositoryMutation` | Mutation | Source repositories, hosted locally or on an external provider | +| `useRepositoryEventsQuery` | Query | Normalized repository events from local hooks and external providers | +| `useRepositoryEventQuery` | Query | Normalized repository events from local hooks and external providers | +| `useCreateRepositoryEventMutation` | Mutation | Normalized repository events from local hooks and external providers | +| `useUpdateRepositoryEventMutation` | Mutation | Normalized repository events from local hooks and external providers | +| `useDeleteRepositoryEventMutation` | Mutation | Normalized repository events from local hooks and external providers | +| `useRepositoryRequiredChecksQuery` | Query | Workflows required to pass before a repository proposal merges | +| `useRepositoryRequiredCheckQuery` | Query | Workflows required to pass before a repository proposal merges | +| `useCreateRepositoryRequiredCheckMutation` | Mutation | Workflows required to pass before a repository proposal merges | +| `useUpdateRepositoryRequiredCheckMutation` | Mutation | Workflows required to pass before a repository proposal merges | +| `useDeleteRepositoryRequiredCheckMutation` | Mutation | Workflows required to pass before a repository proposal merges | +| `useRepositoryWorkflowsQuery` | Query | Bindings from a repository event to the flow graph that should run | +| `useRepositoryWorkflowQuery` | Query | Bindings from a repository event to the flow graph that should run | +| `useCreateRepositoryWorkflowMutation` | Mutation | Bindings from a repository event to the flow graph that should run | +| `useUpdateRepositoryWorkflowMutation` | Mutation | Bindings from a repository event to the flow graph that should run | +| `useDeleteRepositoryWorkflowMutation` | Mutation | Bindings from a repository event to the flow graph that should run | | `useResourcesQuery` | Query | Unified K8s resource declarations — stores desired state (spec) and observed state (status) for all resource kinds within a namespace | | `useResourceQuery` | Query | Unified K8s resource declarations — stores desired state (spec) and observed state (status) for all resource kinds within a namespace | | `useCreateResourceMutation` | Mutation | Unified K8s resource declarations — stores desired state (spec) and observed state (status) for all resource kinds within a namespace | @@ -313,6 +547,8 @@ function App() { | `useCreateResourceInstallationMutation` | Mutation | Installed resource bundle ("release") — groups a set of resources; params are merkle-versioned in the scope's shared infra store for rollback | | `useUpdateResourceInstallationMutation` | Mutation | Installed resource bundle ("release") — groups a set of resources; params are merkle-versioned in the scope's shared infra store for rollback | | `useDeleteResourceInstallationMutation` | Mutation | Installed resource bundle ("release") — groups a set of resources; params are merkle-versioned in the scope's shared infra store for rollback | +| `useResourceObservedStoragesQuery` | Query | List all resourceObservedStorages | +| `useCreateResourceObservedStorageMutation` | Mutation | Create a resourceObservedStorage | | `useResourceStatusChecksQuery` | Query | On-demand resource status checks — diagnostic snapshots from the runtime (K8s status, conditions, log tails) | | `useResourceStatusCheckQuery` | Query | On-demand resource status checks — diagnostic snapshots from the runtime (K8s status, conditions, log tails) | | `useCreateResourceStatusCheckMutation` | Mutation | On-demand resource status checks — diagnostic snapshots from the runtime (K8s status, conditions, log tails) | @@ -349,12 +585,33 @@ function App() { | `useCreateWebhookEventMutation` | Mutation | Durable webhook acceptance log — one row per accepted delivery, deduplicated on (endpoint_id, external_event_id), linked to the pending function invocation it enqueued | | `useUpdateWebhookEventMutation` | Mutation | Durable webhook acceptance log — one row per accepted delivery, deduplicated on (endpoint_id, external_event_id), linked to the pending function invocation it enqueued | | `useDeleteWebhookEventMutation` | Mutation | Durable webhook acceptance log — one row per accepted delivery, deduplicated on (endpoint_id, external_event_id), linked to the pending function invocation it enqueued | +| `useDatabaseReadFunctionGraphQuery` | Query | databaseReadFunctionGraph | | `useReadFunctionGraphQuery` | Query | readFunctionGraph | | `useAddEdgeMutation` | Mutation | addEdge | | `useAddEdgeAndSaveMutation` | Mutation | addEdgeAndSave | | `useAddNodeMutation` | Mutation | addNode | | `useAddNodeAndSaveMutation` | Mutation | addNodeAndSave | +| `useApproveNodeMutation` | Mutation | approveNode | | `useCopyGraphMutation` | Mutation | copyGraph | +| `useDatabaseAddEdgeMutation` | Mutation | databaseAddEdge | +| `useDatabaseAddEdgeAndSaveMutation` | Mutation | databaseAddEdgeAndSave | +| `useDatabaseAddNodeMutation` | Mutation | databaseAddNode | +| `useDatabaseAddNodeAndSaveMutation` | Mutation | databaseAddNodeAndSave | +| `useDatabaseApproveNodeMutation` | Mutation | databaseApproveNode | +| `useDatabaseCopyGraphMutation` | Mutation | databaseCopyGraph | +| `useDatabaseCreateFunctionGraphMutation` | Mutation | databaseCreateFunctionGraph | +| `useDatabaseGraphInitEmptyRepoMutation` | Mutation | databaseGraphInitEmptyRepo | +| `useDatabaseGraphInsertNodeAtPathMutation` | Mutation | databaseGraphInsertNodeAtPath | +| `useDatabaseGraphInsertNodesAtPathsMutation` | Mutation | databaseGraphInsertNodesAtPaths | +| `useDatabaseGraphSetAndCommitMutation` | Mutation | databaseGraphSetAndCommit | +| `useDatabaseGraphSetDataAtPathMutation` | Mutation | databaseGraphSetDataAtPath | +| `useDatabaseGraphSetManyAndCommitMutation` | Mutation | databaseGraphSetManyAndCommit | +| `useDatabaseImportDefinitionsMutation` | Mutation | databaseImportDefinitions | +| `useDatabaseImportGraphJsonMutation` | Mutation | databaseImportGraphJson | +| `useDatabaseSaveGraphMutation` | Mutation | databaseSaveGraph | +| `useDatabaseStartExecutionMutation` | Mutation | databaseStartExecution | +| `useDatabaseValidateFunctionGraphMutation` | Mutation | databaseValidateFunctionGraph | +| `useFunctionInvocationsCreateSyncMutation` | Mutation | functionInvocationsCreateSync | | `useImportDefinitionsMutation` | Mutation | importDefinitions | | `useImportGraphJsonMutation` | Mutation | importGraphJson | | `useInfraInitEmptyRepoMutation` | Mutation | infraInitEmptyRepo | @@ -366,6 +623,7 @@ function App() { | `useInitEmptyRepoMutation` | Mutation | initEmptyRepo | | `useInsertNodeAtPathMutation` | Mutation | insertNodeAtPath | | `useInsertNodesAtPathsMutation` | Mutation | insertNodesAtPaths | +| `usePlatformFunctionInvocationsCreateSyncMutation` | Mutation | platformFunctionInvocationsCreateSync | | `usePlatformInfraInitEmptyRepoMutation` | Mutation | platformInfraInitEmptyRepo | | `usePlatformInfraInsertNodeAtPathMutation` | Mutation | platformInfraInsertNodeAtPath | | `usePlatformInfraInsertNodesAtPathsMutation` | Mutation | platformInfraInsertNodesAtPaths | @@ -376,10 +634,11 @@ function App() { | `usePlatformResourceInstallationsRollbackMutation` | Mutation | platformResourceInstallationsRollback | | `usePlatformResourceInstallationsUninstallMutation` | Mutation | platformResourceInstallationsUninstall | | `usePlatformResourceInstallationsUpgradeMutation` | Mutation | platformResourceInstallationsUpgrade | -| `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. | +| `useProvisionBucketMutation` | Mutation | Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. | | `useResourceInstallationsInstallMutation` | Mutation | resourceInstallationsInstall | | `useResourceInstallationsRollbackMutation` | Mutation | resourceInstallationsRollback | | `useResourceInstallationsUninstallMutation` | Mutation | resourceInstallationsUninstall | @@ -393,6 +652,69 @@ and lifecycle settings. | ## Table Hooks +### Build + +```typescript +// List all builds +const { data, isLoading } = useBuildsQuery({ + selection: { fields: { actorId: true, attempt: true, commitSha: true, conclusion: true, createdAt: true, createdByPrincipal: true, databaseId: true, eventId: true, finishedAt: true, id: true, imageRef: true, jobId: true, logs: true, matrixKey: true, metadata: true, proposalId: true, ref: true, repositoryId: true, startedAt: true, status: true, updatedAt: true, updatedByPrincipal: true, workflowId: true } }, +}); + +// Get one build +const { data: item } = useBuildQuery({ + id: '', + selection: { fields: { actorId: true, attempt: true, commitSha: true, conclusion: true, createdAt: true, createdByPrincipal: true, databaseId: true, eventId: true, finishedAt: true, id: true, imageRef: true, jobId: true, logs: true, matrixKey: true, metadata: true, proposalId: true, ref: true, repositoryId: true, startedAt: true, status: true, updatedAt: true, updatedByPrincipal: true, workflowId: true } }, +}); + +// Create a build +const { mutate: create } = useCreateBuildMutation({ + selection: { fields: { id: true } }, +}); +create({ actorId: '', attempt: '', commitSha: '', conclusion: '', createdByPrincipal: '', databaseId: '', eventId: '', finishedAt: '', imageRef: '', jobId: '', logs: '', matrixKey: '', metadata: '', proposalId: '', ref: '', repositoryId: '', startedAt: '', status: '', updatedByPrincipal: '', workflowId: '' }); +``` + +### BuildStep + +```typescript +// List all buildSteps +const { data, isLoading } = useBuildStepsQuery({ + selection: { fields: { buildId: true, createdByPrincipal: true, databaseId: true, exitCode: true, finishedAt: true, id: true, kind: true, logBytes: true, logOffset: true, name: true, parentSeq: true, recordedAt: true, seq: true, startedAt: true, status: true, summary: true } }, +}); + +// Get one buildStep +const { data: item } = useBuildStepQuery({ + id: '', + selection: { fields: { buildId: true, createdByPrincipal: true, databaseId: true, exitCode: true, finishedAt: true, id: true, kind: true, logBytes: true, logOffset: true, name: true, parentSeq: true, recordedAt: true, seq: true, startedAt: true, status: true, summary: true } }, +}); + +// Create a buildStep +const { mutate: create } = useCreateBuildStepMutation({ + selection: { fields: { id: true } }, +}); +create({ buildId: '', createdByPrincipal: '', databaseId: '', exitCode: '', finishedAt: '', kind: '', logBytes: '', logOffset: '', name: '', parentSeq: '', recordedAt: '', seq: '', startedAt: '', status: '', summary: '' }); +``` + +### BuilderBinding + +```typescript +// List all builderBindings +const { data, isLoading } = useBuilderBindingsQuery({ + selection: { fields: { createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, id: true, installationId: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, +}); + +// Get one builderBinding +const { data: item } = useBuilderBindingQuery({ + id: '', + selection: { fields: { createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, id: true, installationId: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, +}); + +// Create a builderBinding +const { mutate: create } = useCreateBuilderBindingMutation({ + selection: { fields: { id: true } }, +}); +create({ createdBy: '', createdByPrincipal: '', databaseId: '', installationId: '', lastError: '', metadata: '', namespaceId: '', observedHost: '', realm: '', status: '', updatedBy: '', updatedByPrincipal: '' }); +``` + ### ContentPreset ```typescript @@ -414,6 +736,189 @@ const { mutate: create } = useCreateContentPresetMutation({ create({ active: '', commitId: '', definition: '', description: '', kind: '', label: '', slug: '', storeId: '' }); ``` +### DatabaseFunctionGraph + +```typescript +// List all databaseFunctionGraphs +const { data, isLoading } = useDatabaseFunctionGraphsQuery({ + selection: { fields: { context: true, createdAt: true, createdBy: true, databaseId: true, definitionsCommitId: true, description: true, id: true, isValid: true, name: true, storeId: true, updatedAt: true, validationErrors: true } }, +}); + +// Get one databaseFunctionGraph +const { data: item } = useDatabaseFunctionGraphQuery({ + id: '', + selection: { fields: { context: true, createdAt: true, createdBy: true, databaseId: true, definitionsCommitId: true, description: true, id: true, isValid: true, name: true, storeId: true, updatedAt: true, validationErrors: true } }, +}); + +// Create a databaseFunctionGraph +const { mutate: create } = useCreateDatabaseFunctionGraphMutation({ + selection: { fields: { id: true } }, +}); +create({ context: '', createdBy: '', databaseId: '', definitionsCommitId: '', description: '', isValid: '', name: '', storeId: '', validationErrors: '' }); +``` + +### DatabaseFunctionGraphExecution + +```typescript +// List all databaseFunctionGraphExecutions +const { data, isLoading } = useDatabaseFunctionGraphExecutionsQuery({ + selection: { fields: { actorId: true, completedAt: true, currentWave: true, databaseId: true, definitionsCommitId: true, entityId: true, entityType: true, errorCode: true, errorMessage: true, executionPlan: true, graphId: true, id: true, inputPayload: true, invocationCreatedAt: true, invocationId: true, lastProgressAt: true, maxPendingJobs: true, maxTicks: true, nodeOutputs: true, organizationId: true, outputNames: true, outputNode: true, outputPayload: true, outputPort: true, parentExecutionId: true, parentInvocationId: true, parentNodeName: true, principalId: true, startedAt: true, status: true, tickCount: true, timeoutAt: true } }, +}); + +// Get one databaseFunctionGraphExecution +const { data: item } = useDatabaseFunctionGraphExecutionQuery({ + id: '', + selection: { fields: { actorId: true, completedAt: true, currentWave: true, databaseId: true, definitionsCommitId: true, entityId: true, entityType: true, errorCode: true, errorMessage: true, executionPlan: true, graphId: true, id: true, inputPayload: true, invocationCreatedAt: true, invocationId: true, lastProgressAt: true, maxPendingJobs: true, maxTicks: true, nodeOutputs: true, organizationId: true, outputNames: true, outputNode: true, outputPayload: true, outputPort: true, parentExecutionId: true, parentInvocationId: true, parentNodeName: true, principalId: true, startedAt: true, status: true, tickCount: true, timeoutAt: true } }, +}); + +// Create a databaseFunctionGraphExecution +const { mutate: create } = useCreateDatabaseFunctionGraphExecutionMutation({ + selection: { fields: { id: true } }, +}); +create({ actorId: '', completedAt: '', currentWave: '', databaseId: '', definitionsCommitId: '', entityId: '', entityType: '', errorCode: '', errorMessage: '', executionPlan: '', graphId: '', inputPayload: '', invocationCreatedAt: '', invocationId: '', lastProgressAt: '', maxPendingJobs: '', maxTicks: '', nodeOutputs: '', organizationId: '', outputNames: '', outputNode: '', outputPayload: '', outputPort: '', parentExecutionId: '', parentInvocationId: '', parentNodeName: '', principalId: '', startedAt: '', status: '', tickCount: '', timeoutAt: '' }); +``` + +### DatabaseFunctionGraphExecutionNodeState + +```typescript +// List all databaseFunctionGraphExecutionNodeStates +const { data, isLoading } = useDatabaseFunctionGraphExecutionNodeStatesQuery({ + selection: { fields: { callbackInputs: true, callbackMeta: true, callbackTokenHash: true, completedAt: true, createdAt: true, databaseId: true, errorCode: true, errorMessage: true, executionId: true, expiryDefaultOutput: true, expiryEscalatedAt: true, expiryPolicy: true, id: true, nodeName: true, nodePath: true, outputId: true, startedAt: true, status: true, waitingDeadlineAt: true, waitingOn: true, waitingSince: true } }, +}); + +// Get one databaseFunctionGraphExecutionNodeState +const { data: item } = useDatabaseFunctionGraphExecutionNodeStateQuery({ + id: '', + selection: { fields: { callbackInputs: true, callbackMeta: true, callbackTokenHash: true, completedAt: true, createdAt: true, databaseId: true, errorCode: true, errorMessage: true, executionId: true, expiryDefaultOutput: true, expiryEscalatedAt: true, expiryPolicy: true, id: true, nodeName: true, nodePath: true, outputId: true, startedAt: true, status: true, waitingDeadlineAt: true, waitingOn: true, waitingSince: true } }, +}); + +// Create a databaseFunctionGraphExecutionNodeState +const { mutate: create } = useCreateDatabaseFunctionGraphExecutionNodeStateMutation({ + selection: { fields: { id: true } }, +}); +create({ callbackInputs: '', callbackMeta: '', callbackTokenHash: '', completedAt: '', databaseId: '', errorCode: '', errorMessage: '', executionId: '', expiryDefaultOutput: '', expiryEscalatedAt: '', expiryPolicy: '', nodeName: '', nodePath: '', outputId: '', startedAt: '', status: '', waitingDeadlineAt: '', waitingOn: '', waitingSince: '' }); +``` + +### DatabaseFunctionGraphExecutionOutput + +```typescript +// List all databaseFunctionGraphExecutionOutputs +const { data, isLoading } = useDatabaseFunctionGraphExecutionOutputsQuery({ + selection: { fields: { createdAt: true, data: true, databaseId: true, hash: true, id: true } }, +}); + +// Get one databaseFunctionGraphExecutionOutput +const { data: item } = useDatabaseFunctionGraphExecutionOutputQuery({ + id: '', + selection: { fields: { createdAt: true, data: true, databaseId: true, hash: true, id: true } }, +}); + +// Create a databaseFunctionGraphExecutionOutput +const { mutate: create } = useCreateDatabaseFunctionGraphExecutionOutputMutation({ + selection: { fields: { id: true } }, +}); +create({ data: '', databaseId: '', hash: '' }); +``` + +### DatabaseGraphCommit + +```typescript +// List all databaseGraphCommits +const { data, isLoading } = useDatabaseGraphCommitsQuery({ + selection: { fields: { authorId: true, committerId: true, databaseId: true, date: true, id: true, message: true, parentIds: true, storeId: true, treeId: true } }, +}); + +// Get one databaseGraphCommit +const { data: item } = useDatabaseGraphCommitQuery({ + id: '', + selection: { fields: { authorId: true, committerId: true, databaseId: true, date: true, id: true, message: true, parentIds: true, storeId: true, treeId: true } }, +}); + +// Create a databaseGraphCommit +const { mutate: create } = useCreateDatabaseGraphCommitMutation({ + selection: { fields: { id: true } }, +}); +create({ authorId: '', committerId: '', databaseId: '', date: '', message: '', parentIds: '', storeId: '', treeId: '' }); +``` + +### DatabaseGraphGetAllTreeNodesRecord + +```typescript +// List all databaseGraphGetAllTreeNodes +const { data, isLoading } = useDatabaseGraphGetAllTreeNodesQuery({ + selection: { fields: { data: true, path: true } }, +}); + +// Create a databaseGraphGetAllTreeNodesRecord +const { mutate: create } = useCreateDatabaseGraphGetAllTreeNodesRecordMutation({ + selection: { fields: { id: true } }, +}); +create({ data: '', path: '' }); +``` + +### DatabaseGraphObject + +```typescript +// List all databaseGraphObjects +const { data, isLoading } = useDatabaseGraphObjectsQuery({ + selection: { fields: { createdAt: true, data: true, databaseId: true, id: true, kids: true, ktree: true } }, +}); + +// Get one databaseGraphObject +const { data: item } = useDatabaseGraphObjectQuery({ + id: '', + selection: { fields: { createdAt: true, data: true, databaseId: true, id: true, kids: true, ktree: true } }, +}); + +// Create a databaseGraphObject +const { mutate: create } = useCreateDatabaseGraphObjectMutation({ + selection: { fields: { id: true } }, +}); +create({ data: '', databaseId: '', kids: '', ktree: '' }); +``` + +### DatabaseGraphRef + +```typescript +// List all databaseGraphRefs +const { data, isLoading } = useDatabaseGraphRefsQuery({ + selection: { fields: { commitId: true, databaseId: true, id: true, name: true, storeId: true } }, +}); + +// Get one databaseGraphRef +const { data: item } = useDatabaseGraphRefQuery({ + id: '', + selection: { fields: { commitId: true, databaseId: true, id: true, name: true, storeId: true } }, +}); + +// Create a databaseGraphRef +const { mutate: create } = useCreateDatabaseGraphRefMutation({ + selection: { fields: { id: true } }, +}); +create({ commitId: '', databaseId: '', name: '', storeId: '' }); +``` + +### DatabaseGraphStore + +```typescript +// List all databaseGraphStores +const { data, isLoading } = useDatabaseGraphStoresQuery({ + selection: { fields: { createdAt: true, databaseId: true, hash: true, id: true, name: true } }, +}); + +// Get one databaseGraphStore +const { data: item } = useDatabaseGraphStoreQuery({ + id: '', + selection: { fields: { createdAt: true, databaseId: true, hash: true, id: true, name: true } }, +}); + +// Create a databaseGraphStore +const { mutate: create } = useCreateDatabaseGraphStoreMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', hash: '', name: '' }); +``` + ### DbPreset ```typescript @@ -482,20 +987,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, requiredModules: 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, anonymousCallable: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdByPrincipal: 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, requiredCapabilities: 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, updatedByPrincipal: 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, requiredModules: 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, anonymousCallable: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdByPrincipal: 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, requiredCapabilities: 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, updatedByPrincipal: 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: '', requiredModules: '', requiredSecrets: '', resources: '', runtime: '', scaleMax: '', scaleMin: '', targetFunction: '', targetSchema: '', taskIdentifier: '', timeoutSeconds: '', volatile: '' }); +create({ accessChannels: '', anonymousCallable: '', category: '', concurrency: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdByPrincipal: '', databaseId: '', description: '', fnCategory: '', functionColumns: '', graphId: '', icon: '', image: '', inputs: '', integrations: '', isPublished: '', maxAttempts: '', memoryLimitBytes: '', memoryRequestBytes: '', moduleTable: '', name: '', outputs: '', payloadArgs: '', priority: '', props: '', protected: '', publishedAt: '', queueName: '', requiredBuckets: '', requiredCapabilities: '', requiredConfigs: '', requiredModels: '', requiredModules: '', requiredSecrets: '', resources: '', runtime: '', scaleMax: '', scaleMin: '', targetFunction: '', targetSchema: '', taskIdentifier: '', timeoutSeconds: '', updatedByPrincipal: '', volatile: '' }); ``` ### FunctionDeployment @@ -503,20 +1008,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, realm: 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, createdByPrincipal: 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, updatedByPrincipal: 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, realm: 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, createdByPrincipal: 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, updatedByPrincipal: true } }, }); // Create a functionDeployment const { mutate: create } = useCreateFunctionDeploymentMutation({ selection: { fields: { id: true } }, }); -create({ annotations: '', concurrency: '', databaseId: '', errorCount: '', handlerName: '', image: '', imageVersion: '', labels: '', lastError: '', lastErrorAt: '', namespaceId: '', realm: '', resources: '', revision: '', scaleMax: '', scaleMin: '', serviceName: '', serviceUrl: '', status: '', timeoutSeconds: '' }); +create({ annotations: '', concurrency: '', createdByPrincipal: '', databaseId: '', errorCount: '', handlerName: '', image: '', imageVersion: '', labels: '', lastError: '', lastErrorAt: '', namespaceId: '', realm: '', resources: '', revision: '', scaleMax: '', scaleMin: '', serviceName: '', serviceUrl: '', status: '', timeoutSeconds: '', updatedByPrincipal: '' }); ``` ### FunctionDeploymentEvent @@ -629,20 +1134,20 @@ create({ actorId: '', completedAt: '', currentWave: '', def ```typescript // List all functionGraphExecutionNodeStates const { data, isLoading } = useFunctionGraphExecutionNodeStatesQuery({ - selection: { fields: { callbackInputs: true, callbackMeta: true, callbackTokenHash: true, completedAt: true, createdAt: true, errorCode: true, errorMessage: true, executionId: true, id: true, nodeName: true, nodePath: true, outputId: true, scopeId: true, startedAt: true, status: true } }, + selection: { fields: { callbackInputs: true, callbackMeta: true, callbackTokenHash: true, completedAt: true, createdAt: true, errorCode: true, errorMessage: true, executionId: true, expiryDefaultOutput: true, expiryEscalatedAt: true, expiryPolicy: true, id: true, nodeName: true, nodePath: true, outputId: true, scopeId: true, startedAt: true, status: true, waitingDeadlineAt: true, waitingOn: true, waitingSince: true } }, }); // Get one functionGraphExecutionNodeState const { data: item } = useFunctionGraphExecutionNodeStateQuery({ id: '', - selection: { fields: { callbackInputs: true, callbackMeta: true, callbackTokenHash: true, completedAt: true, createdAt: true, errorCode: true, errorMessage: true, executionId: true, id: true, nodeName: true, nodePath: true, outputId: true, scopeId: true, startedAt: true, status: true } }, + selection: { fields: { callbackInputs: true, callbackMeta: true, callbackTokenHash: true, completedAt: true, createdAt: true, errorCode: true, errorMessage: true, executionId: true, expiryDefaultOutput: true, expiryEscalatedAt: true, expiryPolicy: true, id: true, nodeName: true, nodePath: true, outputId: true, scopeId: true, startedAt: true, status: true, waitingDeadlineAt: true, waitingOn: true, waitingSince: true } }, }); // Create a functionGraphExecutionNodeState const { mutate: create } = useCreateFunctionGraphExecutionNodeStateMutation({ selection: { fields: { id: true } }, }); -create({ callbackInputs: '', callbackMeta: '', callbackTokenHash: '', completedAt: '', errorCode: '', errorMessage: '', executionId: '', nodeName: '', nodePath: '', outputId: '', scopeId: '', startedAt: '', status: '' }); +create({ callbackInputs: '', callbackMeta: '', callbackTokenHash: '', completedAt: '', errorCode: '', errorMessage: '', executionId: '', expiryDefaultOutput: '', expiryEscalatedAt: '', expiryPolicy: '', nodeName: '', nodePath: '', outputId: '', scopeId: '', startedAt: '', status: '', waitingDeadlineAt: '', waitingOn: '', waitingSince: '' }); ``` ### FunctionGraphExecutionOutput @@ -755,20 +1260,20 @@ create({ actorId: '', attempt: '', databaseId: '', durationMs: ```typescript // List all functionInvocations const { data, isLoading } = useFunctionInvocationsQuery({ - selection: { fields: { actorId: true, apiBindingId: true, channel: true, completedAt: true, createdAt: true, databaseId: true, definitionScope: true, durationMs: true, error: true, functionDefinitionId: true, graphExecutionId: true, id: true, jobId: true, parentInvocationId: true, payload: true, provenance: true, result: true, startedAt: true, status: true, taskIdentifier: true } }, + selection: { fields: { actorId: true, apiBindingId: true, channel: true, completedAt: true, createdAt: true, createdByPrincipal: true, databaseId: true, definitionScope: true, durationMs: true, entityId: true, entityType: true, error: true, functionDefinitionId: true, graphExecutionId: true, id: true, jobId: true, organizationId: true, parentInvocationId: true, payload: true, principalId: true, provenance: true, result: true, startedAt: true, status: true, taskIdentifier: true } }, }); // Get one functionInvocation const { data: item } = useFunctionInvocationQuery({ id: '', - selection: { fields: { actorId: true, apiBindingId: true, channel: true, completedAt: true, createdAt: true, databaseId: true, definitionScope: true, durationMs: true, error: true, functionDefinitionId: true, graphExecutionId: true, id: true, jobId: true, parentInvocationId: true, payload: true, provenance: true, result: true, startedAt: true, status: true, taskIdentifier: true } }, + selection: { fields: { actorId: true, apiBindingId: true, channel: true, completedAt: true, createdAt: true, createdByPrincipal: true, databaseId: true, definitionScope: true, durationMs: true, entityId: true, entityType: true, error: true, functionDefinitionId: true, graphExecutionId: true, id: true, jobId: true, organizationId: true, parentInvocationId: true, payload: true, principalId: true, provenance: true, result: true, startedAt: true, status: true, taskIdentifier: true } }, }); // Create a functionInvocation const { mutate: create } = useCreateFunctionInvocationMutation({ selection: { fields: { id: true } }, }); -create({ actorId: '', apiBindingId: '', channel: '', completedAt: '', databaseId: '', definitionScope: '', durationMs: '', error: '', functionDefinitionId: '', graphExecutionId: '', jobId: '', parentInvocationId: '', payload: '', provenance: '', result: '', startedAt: '', status: '', taskIdentifier: '' }); +create({ actorId: '', apiBindingId: '', channel: '', completedAt: '', createdByPrincipal: '', databaseId: '', definitionScope: '', durationMs: '', entityId: '', entityType: '', error: '', functionDefinitionId: '', graphExecutionId: '', jobId: '', organizationId: '', parentInvocationId: '', payload: '', principalId: '', provenance: '', result: '', startedAt: '', status: '', taskIdentifier: '' }); ``` ### GetAllTreeNodesRecord @@ -786,6 +1291,48 @@ const { mutate: create } = useCreateGetAllTreeNodesRecordMutation({ create({ data: '', path: '' }); ``` +### Image + +```typescript +// List all images +const { data, isLoading } = useImagesQuery({ + selection: { fields: { createdAt: true, createdByPrincipal: true, databaseId: true, description: true, digest: true, expiresAt: true, id: true, isPublished: true, labels: true, metadata: true, name: true, ownerId: true, platformOnly: true, registryHost: true, repository: true, runtime: true, tag: true, updatedAt: true, updatedByPrincipal: true } }, +}); + +// Get one image +const { data: item } = useImageQuery({ + id: '', + selection: { fields: { createdAt: true, createdByPrincipal: true, databaseId: true, description: true, digest: true, expiresAt: true, id: true, isPublished: true, labels: true, metadata: true, name: true, ownerId: true, platformOnly: true, registryHost: true, repository: true, runtime: true, tag: true, updatedAt: true, updatedByPrincipal: true } }, +}); + +// Create a image +const { mutate: create } = useCreateImageMutation({ + selection: { fields: { id: true } }, +}); +create({ createdByPrincipal: '', databaseId: '', description: '', digest: '', expiresAt: '', isPublished: '', labels: '', metadata: '', name: '', ownerId: '', platformOnly: '', registryHost: '', repository: '', runtime: '', tag: '', updatedByPrincipal: '' }); +``` + +### ImageGrant + +```typescript +// List all imageGrants +const { data, isLoading } = useImageGrantsQuery({ + selection: { fields: { actions: true, createdAt: true, createdByPrincipal: true, databaseId: true, expiresAt: true, grantedBy: true, granteeKey: true, granteeScope: true, id: true, imageId: true, updatedAt: true, updatedByPrincipal: true } }, +}); + +// Get one imageGrant +const { data: item } = useImageGrantQuery({ + id: '', + selection: { fields: { actions: true, createdAt: true, createdByPrincipal: true, databaseId: true, expiresAt: true, grantedBy: true, granteeKey: true, granteeScope: true, id: true, imageId: true, updatedAt: true, updatedByPrincipal: true } }, +}); + +// Create a imageGrant +const { mutate: create } = useCreateImageGrantMutation({ + selection: { fields: { id: true } }, +}); +create({ actions: '', createdByPrincipal: '', databaseId: '', expiresAt: '', grantedBy: '', granteeKey: '', granteeScope: '', imageId: '', updatedByPrincipal: '' }); +``` + ### InfraCommit ```typescript @@ -911,20 +1458,20 @@ create({ brand: '', category: '', description: '', icon: ' ```typescript // List all namespaces const { data, isLoading } = useNamespacesQuery({ - selection: { fields: { annotations: true, createdAt: true, databaseId: true, description: true, id: true, isActive: true, isManaged: true, labels: true, lastError: true, name: true, namespaceName: true, status: true, updatedAt: true } }, + selection: { fields: { annotations: true, clusterId: true, createdAt: true, databaseId: true, description: true, id: true, isActive: true, isManaged: true, labels: true, lastError: true, name: true, namespaceName: true, status: true, updatedAt: true } }, }); // Get one namespace const { data: item } = useNamespaceQuery({ id: '', - selection: { fields: { annotations: true, createdAt: true, databaseId: true, description: true, id: true, isActive: true, isManaged: true, labels: true, lastError: true, name: true, namespaceName: true, status: true, updatedAt: true } }, + selection: { fields: { annotations: true, clusterId: true, createdAt: true, databaseId: true, description: true, id: true, isActive: true, isManaged: true, labels: true, lastError: true, name: true, namespaceName: true, status: true, updatedAt: true } }, }); // Create a namespace const { mutate: create } = useCreateNamespaceMutation({ selection: { fields: { id: true } }, }); -create({ annotations: '', databaseId: '', description: '', isActive: '', isManaged: '', labels: '', lastError: '', name: '', namespaceName: '', status: '' }); +create({ annotations: '', clusterId: '', databaseId: '', description: '', isActive: '', isManaged: '', labels: '', lastError: '', name: '', namespaceName: '', status: '' }); ``` ### NamespaceEvent @@ -948,6 +1495,69 @@ const { mutate: create } = useCreateNamespaceEventMutation({ create({ actorId: '', databaseId: '', eventType: '', message: '', metadata: '', namespaceId: '' }); ``` +### PlatformBuild + +```typescript +// List all platformBuilds +const { data, isLoading } = usePlatformBuildsQuery({ + selection: { fields: { actorId: true, attempt: true, commitSha: true, conclusion: true, createdAt: true, createdByPrincipal: true, eventId: true, finishedAt: true, id: true, imageRef: true, jobId: true, logs: true, matrixKey: true, metadata: true, proposalId: true, ref: true, repositoryId: true, startedAt: true, status: true, updatedAt: true, updatedByPrincipal: true, workflowId: true } }, +}); + +// Get one platformBuild +const { data: item } = usePlatformBuildQuery({ + id: '', + selection: { fields: { actorId: true, attempt: true, commitSha: true, conclusion: true, createdAt: true, createdByPrincipal: true, eventId: true, finishedAt: true, id: true, imageRef: true, jobId: true, logs: true, matrixKey: true, metadata: true, proposalId: true, ref: true, repositoryId: true, startedAt: true, status: true, updatedAt: true, updatedByPrincipal: true, workflowId: true } }, +}); + +// Create a platformBuild +const { mutate: create } = useCreatePlatformBuildMutation({ + selection: { fields: { id: true } }, +}); +create({ actorId: '', attempt: '', commitSha: '', conclusion: '', createdByPrincipal: '', eventId: '', finishedAt: '', imageRef: '', jobId: '', logs: '', matrixKey: '', metadata: '', proposalId: '', ref: '', repositoryId: '', startedAt: '', status: '', updatedByPrincipal: '', workflowId: '' }); +``` + +### PlatformBuildStep + +```typescript +// List all platformBuildSteps +const { data, isLoading } = usePlatformBuildStepsQuery({ + selection: { fields: { buildId: true, createdByPrincipal: true, exitCode: true, finishedAt: true, id: true, kind: true, logBytes: true, logOffset: true, name: true, parentSeq: true, recordedAt: true, seq: true, startedAt: true, status: true, summary: true } }, +}); + +// Get one platformBuildStep +const { data: item } = usePlatformBuildStepQuery({ + id: '', + selection: { fields: { buildId: true, createdByPrincipal: true, exitCode: true, finishedAt: true, id: true, kind: true, logBytes: true, logOffset: true, name: true, parentSeq: true, recordedAt: true, seq: true, startedAt: true, status: true, summary: true } }, +}); + +// Create a platformBuildStep +const { mutate: create } = useCreatePlatformBuildStepMutation({ + selection: { fields: { id: true } }, +}); +create({ buildId: '', createdByPrincipal: '', exitCode: '', finishedAt: '', kind: '', logBytes: '', logOffset: '', name: '', parentSeq: '', recordedAt: '', seq: '', startedAt: '', status: '', summary: '' }); +``` + +### PlatformBuilderBinding + +```typescript +// List all platformBuilderBindings +const { data, isLoading } = usePlatformBuilderBindingsQuery({ + selection: { fields: { createdAt: true, createdBy: true, createdByPrincipal: true, id: true, installationId: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, +}); + +// Get one platformBuilderBinding +const { data: item } = usePlatformBuilderBindingQuery({ + id: '', + selection: { fields: { createdAt: true, createdBy: true, createdByPrincipal: true, id: true, installationId: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, +}); + +// Create a platformBuilderBinding +const { mutate: create } = useCreatePlatformBuilderBindingMutation({ + selection: { fields: { id: true } }, +}); +create({ createdBy: '', createdByPrincipal: '', installationId: '', lastError: '', metadata: '', namespaceId: '', observedHost: '', realm: '', status: '', updatedBy: '', updatedByPrincipal: '' }); +``` + ### PlatformFunctionApiBinding ```typescript @@ -995,20 +1605,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, 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 } }, + selection: { fields: { accessChannels: true, anonymousCallable: true, billable: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdByPrincipal: 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, requiredCapabilities: 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, updatedByPrincipal: 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: '', requiredModules: '', requiredSecrets: '', resources: '', runtime: '', scaleMax: '', scaleMin: '', system: '', targetFunction: '', targetSchema: '', taskIdentifier: '', timeoutSeconds: '', volatile: '' }); +create({ accessChannels: '', anonymousCallable: '', billable: '', category: '', concurrency: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdByPrincipal: '', description: '', fnCategory: '', functionColumns: '', graphId: '', icon: '', image: '', inputs: '', integrations: '', isPublished: '', maxAttempts: '', memoryLimitBytes: '', memoryRequestBytes: '', moduleTable: '', name: '', outputs: '', payloadArgs: '', priority: '', props: '', protected: '', publishedAt: '', queueName: '', requiredBuckets: '', requiredCapabilities: '', requiredConfigs: '', requiredModels: '', requiredModules: '', requiredSecrets: '', resources: '', runtime: '', scaleMax: '', scaleMin: '', system: '', targetFunction: '', targetSchema: '', taskIdentifier: '', timeoutSeconds: '', updatedByPrincipal: '', volatile: '' }); ``` ### PlatformFunctionDeployment @@ -1016,20 +1626,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, realm: 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, createdByPrincipal: 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, updatedByPrincipal: 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, realm: 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, createdByPrincipal: 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, updatedByPrincipal: true } }, }); // Create a platformFunctionDeployment const { mutate: create } = useCreatePlatformFunctionDeploymentMutation({ selection: { fields: { id: true } }, }); -create({ annotations: '', concurrency: '', errorCount: '', handlerName: '', image: '', imageVersion: '', labels: '', lastError: '', lastErrorAt: '', namespaceId: '', realm: '', resources: '', revision: '', scaleMax: '', scaleMin: '', serviceName: '', serviceUrl: '', status: '', timeoutSeconds: '' }); +create({ annotations: '', concurrency: '', createdByPrincipal: '', errorCount: '', handlerName: '', image: '', imageVersion: '', labels: '', lastError: '', lastErrorAt: '', namespaceId: '', realm: '', resources: '', revision: '', scaleMax: '', scaleMin: '', serviceName: '', serviceUrl: '', status: '', timeoutSeconds: '', updatedByPrincipal: '' }); ``` ### PlatformFunctionDeploymentEvent @@ -1100,20 +1710,62 @@ create({ actorId: '', attempt: '', durationMs: '', error: '', - selection: { fields: { actorId: true, apiBindingId: true, channel: true, completedAt: true, createdAt: true, databaseId: true, definitionScope: true, durationMs: true, error: true, functionDefinitionId: true, graphExecutionId: true, id: true, jobId: true, parentInvocationId: true, payload: true, provenance: true, result: true, startedAt: true, status: true, taskIdentifier: true } }, + selection: { fields: { actorId: true, apiBindingId: true, channel: true, completedAt: true, createdAt: true, createdByPrincipal: true, databaseId: true, definitionScope: true, durationMs: true, entityId: true, entityType: true, error: true, functionDefinitionId: true, graphExecutionId: true, id: true, jobId: true, organizationId: true, parentInvocationId: true, payload: true, principalId: true, provenance: true, result: true, startedAt: true, status: true, taskIdentifier: true } }, }); // Create a platformFunctionInvocation const { mutate: create } = useCreatePlatformFunctionInvocationMutation({ selection: { fields: { id: true } }, }); -create({ actorId: '', apiBindingId: '', channel: '', completedAt: '', databaseId: '', definitionScope: '', durationMs: '', error: '', functionDefinitionId: '', graphExecutionId: '', jobId: '', parentInvocationId: '', payload: '', provenance: '', result: '', startedAt: '', status: '', taskIdentifier: '' }); +create({ actorId: '', apiBindingId: '', channel: '', completedAt: '', createdByPrincipal: '', databaseId: '', definitionScope: '', durationMs: '', entityId: '', entityType: '', error: '', functionDefinitionId: '', graphExecutionId: '', jobId: '', organizationId: '', parentInvocationId: '', payload: '', principalId: '', provenance: '', result: '', startedAt: '', status: '', taskIdentifier: '' }); +``` + +### PlatformImage + +```typescript +// List all platformImages +const { data, isLoading } = usePlatformImagesQuery({ + selection: { fields: { createdAt: true, createdByPrincipal: true, description: true, digest: true, expiresAt: true, id: true, isPublished: true, labels: true, metadata: true, name: true, ownerId: true, platformOnly: true, registryHost: true, repository: true, runtime: true, tag: true, updatedAt: true, updatedByPrincipal: true } }, +}); + +// Get one platformImage +const { data: item } = usePlatformImageQuery({ + id: '', + selection: { fields: { createdAt: true, createdByPrincipal: true, description: true, digest: true, expiresAt: true, id: true, isPublished: true, labels: true, metadata: true, name: true, ownerId: true, platformOnly: true, registryHost: true, repository: true, runtime: true, tag: true, updatedAt: true, updatedByPrincipal: true } }, +}); + +// Create a platformImage +const { mutate: create } = useCreatePlatformImageMutation({ + selection: { fields: { id: true } }, +}); +create({ createdByPrincipal: '', description: '', digest: '', expiresAt: '', isPublished: '', labels: '', metadata: '', name: '', ownerId: '', platformOnly: '', registryHost: '', repository: '', runtime: '', tag: '', updatedByPrincipal: '' }); +``` + +### PlatformImageGrant + +```typescript +// List all platformImageGrants +const { data, isLoading } = usePlatformImageGrantsQuery({ + selection: { fields: { actions: true, createdAt: true, createdByPrincipal: true, expiresAt: true, grantedBy: true, granteeKey: true, granteeScope: true, id: true, imageId: true, updatedAt: true, updatedByPrincipal: true } }, +}); + +// Get one platformImageGrant +const { data: item } = usePlatformImageGrantQuery({ + id: '', + selection: { fields: { actions: true, createdAt: true, createdByPrincipal: true, expiresAt: true, grantedBy: true, granteeKey: true, granteeScope: true, id: true, imageId: true, updatedAt: true, updatedByPrincipal: true } }, +}); + +// Create a platformImageGrant +const { mutate: create } = useCreatePlatformImageGrantMutation({ + selection: { fields: { id: true } }, +}); +create({ actions: '', createdByPrincipal: '', expiresAt: '', grantedBy: '', granteeKey: '', granteeScope: '', imageId: '', updatedByPrincipal: '' }); ``` ### PlatformInfraCommit @@ -1215,25 +1867,67 @@ const { mutate: create } = useCreatePlatformInfraStoreMutation({ create({ hash: '', name: '', scopeId: '' }); ``` +### PlatformK8sResourceKind + +```typescript +// List all platformK8sResourceKinds +const { data, isLoading } = usePlatformK8sResourceKindsQuery({ + selection: { fields: { active: true, commitId: true, createdAt: true, definition: true, description: true, id: true, label: true, slug: true, storeId: true, updatedAt: true } }, +}); + +// Get one platformK8sResourceKind +const { data: item } = usePlatformK8sResourceKindQuery({ + id: '', + selection: { fields: { active: true, commitId: true, createdAt: true, definition: true, description: true, id: true, label: true, slug: true, storeId: true, updatedAt: true } }, +}); + +// Create a platformK8sResourceKind +const { mutate: create } = useCreatePlatformK8sResourceKindMutation({ + selection: { fields: { id: true } }, +}); +create({ active: '', commitId: '', definition: '', description: '', label: '', slug: '', storeId: '' }); +``` + +### PlatformK8sSpecRule + +```typescript +// List all platformK8sSpecRules +const { data, isLoading } = usePlatformK8sSpecRulesQuery({ + selection: { fields: { active: true, commitId: true, createdAt: true, definition: true, description: true, id: true, label: true, slug: true, storeId: true, updatedAt: true } }, +}); + +// Get one platformK8sSpecRule +const { data: item } = usePlatformK8sSpecRuleQuery({ + id: '', + selection: { fields: { active: true, commitId: true, createdAt: true, definition: true, description: true, id: true, label: true, slug: true, storeId: true, updatedAt: true } }, +}); + +// Create a platformK8sSpecRule +const { mutate: create } = useCreatePlatformK8sSpecRuleMutation({ + selection: { fields: { id: true } }, +}); +create({ active: '', commitId: '', definition: '', description: '', label: '', slug: '', storeId: '' }); +``` + ### PlatformNamespace ```typescript // List all platformNamespaces const { data, isLoading } = usePlatformNamespacesQuery({ - selection: { fields: { annotations: true, createdAt: true, description: true, id: true, isActive: true, isManaged: true, labels: true, lastError: true, name: true, namespaceName: true, status: true, updatedAt: true } }, + selection: { fields: { annotations: true, clusterId: true, createdAt: true, description: true, id: true, isActive: true, isManaged: true, labels: true, lastError: true, name: true, namespaceName: true, status: true, updatedAt: true } }, }); // Get one platformNamespace const { data: item } = usePlatformNamespaceQuery({ id: '', - selection: { fields: { annotations: true, createdAt: true, description: true, id: true, isActive: true, isManaged: true, labels: true, lastError: true, name: true, namespaceName: true, status: true, updatedAt: true } }, + selection: { fields: { annotations: true, clusterId: true, createdAt: true, description: true, id: true, isActive: true, isManaged: true, labels: true, lastError: true, name: true, namespaceName: true, status: true, updatedAt: true } }, }); // Create a platformNamespace const { mutate: create } = useCreatePlatformNamespaceMutation({ selection: { fields: { id: true } }, }); -create({ annotations: '', description: '', isActive: '', isManaged: '', labels: '', lastError: '', name: '', namespaceName: '', status: '' }); +create({ annotations: '', clusterId: '', description: '', isActive: '', isManaged: '', labels: '', lastError: '', name: '', namespaceName: '', status: '' }); ``` ### PlatformNamespaceEvent @@ -1257,40 +1951,313 @@ const { mutate: create } = useCreatePlatformNamespaceEventMutation({ create({ actorId: '', eventType: '', message: '', metadata: '', namespaceId: '' }); ``` -### PlatformResource +### PlatformProposalComment ```typescript -// List all platformResources -const { data, isLoading } = usePlatformResourcesQuery({ - selection: { fields: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, errorCount: true, id: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusObserved: true, storageClass: true, storageSizeBytes: true, updatedAt: true, updatedBy: true } }, +// List all platformProposalComments +const { data, isLoading } = usePlatformProposalCommentsQuery({ + selection: { fields: { actorId: true, attachments: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); -// Get one platformResource -const { data: item } = usePlatformResourceQuery({ +// Get one platformProposalComment +const { data: item } = usePlatformProposalCommentQuery({ id: '', - selection: { fields: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, errorCount: true, id: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusObserved: true, storageClass: true, storageSizeBytes: true, updatedAt: true, updatedBy: true } }, + selection: { fields: { actorId: true, attachments: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); -// Create a platformResource -const { mutate: create } = useCreatePlatformResourceMutation({ +// Create a platformProposalComment +const { mutate: create } = useCreatePlatformProposalCommentMutation({ selection: { fields: { id: true } }, }); -create({ annotations: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', errorCount: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusObserved: '', storageClass: '', storageSizeBytes: '', updatedBy: '' }); +create({ actorId: '', attachments: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', line: '', outdatedAt: '', path: '', pathTrgmSimilarity: '', proposalId: '', resolvedAt: '', search: '', searchScore: '', searchTsvRank: '', updatedBy: '', updatedByPrincipal: '' }); ``` -### PlatformResourceDeclaredCapacity +### PlatformProposal ```typescript -// List all platformResourceDeclaredCapacities -const { data, isLoading } = usePlatformResourceDeclaredCapacitiesQuery({ - selection: { fields: { cpuLimitMillicores: true, cpuRequestMillicores: true, installationId: true, isTransient: true, kind: true, memoryLimitBytes: true, memoryRequestBytes: true, namespaceId: true, podCountMax: true, podCountMin: true, source: true, sourceId: true, storageSizeBytes: true } }, +// List all platformProposals +const { data, isLoading } = usePlatformProposalsQuery({ + selection: { fields: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, decidedAt: true, dueAt: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); -// Create a platformResourceDeclaredCapacity -const { mutate: create } = useCreatePlatformResourceDeclaredCapacityMutation({ - selection: { fields: { id: true } }, +// Get one platformProposal +const { data: item } = usePlatformProposalQuery({ + id: '', + selection: { fields: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, decidedAt: true, dueAt: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); -create({ cpuLimitMillicores: '', cpuRequestMillicores: '', installationId: '', isTransient: '', kind: '', memoryLimitBytes: '', memoryRequestBytes: '', namespaceId: '', podCountMax: '', podCountMin: '', source: '', sourceId: '', storageSizeBytes: '' }); + +// Create a platformProposal +const { mutate: create } = useCreatePlatformProposalMutation({ + selection: { fields: { id: true } }, +}); +create({ actorId: '', body: '', bodyTrgmSimilarity: '', closedReason: '', closedReasonTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', decidedAt: '', dueAt: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', kind: '', kindTrgmSimilarity: '', labels: '', mergeCommit: '', mergeCommitTrgmSimilarity: '', mergeMethod: '', mergeMethodTrgmSimilarity: '', mergeRequestedAt: '', mergedAt: '', metadata: '', parentId: '', priority: '', repositoryId: '', resolution: '', resolutionTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', sourceRef: '', sourceRefTrgmSimilarity: '', status: '', statusTrgmSimilarity: '', targetRef: '', targetRefTrgmSimilarity: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }); +``` + +### PlatformProposalFileView + +```typescript +// List all platformProposalFileViews +const { data, isLoading } = usePlatformProposalFileViewsQuery({ + selection: { fields: { blobSha: true, createdAt: true, createdByPrincipal: true, id: true, path: true, proposalId: true, reviewerId: true, updatedAt: true, updatedByPrincipal: true, viewedAt: true } }, +}); + +// Get one platformProposalFileView +const { data: item } = usePlatformProposalFileViewQuery({ + id: '', + selection: { fields: { blobSha: true, createdAt: true, createdByPrincipal: true, id: true, path: true, proposalId: true, reviewerId: true, updatedAt: true, updatedByPrincipal: true, viewedAt: true } }, +}); + +// Create a platformProposalFileView +const { mutate: create } = useCreatePlatformProposalFileViewMutation({ + selection: { fields: { id: true } }, +}); +create({ blobSha: '', createdByPrincipal: '', path: '', proposalId: '', reviewerId: '', updatedByPrincipal: '', viewedAt: '' }); +``` + +### PlatformProposalReaction + +```typescript +// List all platformProposalReactions +const { data, isLoading } = usePlatformProposalReactionsQuery({ + selection: { fields: { actorId: true, commentId: true, createdAt: true, createdByPrincipal: true, emoji: true, id: true, proposalId: true, updatedAt: true, updatedByPrincipal: true } }, +}); + +// Get one platformProposalReaction +const { data: item } = usePlatformProposalReactionQuery({ + id: '', + selection: { fields: { actorId: true, commentId: true, createdAt: true, createdByPrincipal: true, emoji: true, id: true, proposalId: true, updatedAt: true, updatedByPrincipal: true } }, +}); + +// Create a platformProposalReaction +const { mutate: create } = useCreatePlatformProposalReactionMutation({ + selection: { fields: { id: true } }, +}); +create({ actorId: '', commentId: '', createdByPrincipal: '', emoji: '', proposalId: '', updatedByPrincipal: '' }); +``` + +### PlatformProposalReview + +```typescript +// List all platformProposalReviews +const { data, isLoading } = usePlatformProposalReviewsQuery({ + selection: { fields: { body: true, bodyTrgmSimilarity: true, commitSha: true, commitShaTrgmSimilarity: true, createdAt: true, createdByPrincipal: true, id: true, proposalId: true, reviewerId: true, search: true, searchScore: true, searchTsvRank: true, submittedAt: true, updatedAt: true, updatedByPrincipal: true, verdict: true, verdictTrgmSimilarity: true } }, +}); + +// Get one platformProposalReview +const { data: item } = usePlatformProposalReviewQuery({ + id: '', + selection: { fields: { body: true, bodyTrgmSimilarity: true, commitSha: true, commitShaTrgmSimilarity: true, createdAt: true, createdByPrincipal: true, id: true, proposalId: true, reviewerId: true, search: true, searchScore: true, searchTsvRank: true, submittedAt: true, updatedAt: true, updatedByPrincipal: true, verdict: true, verdictTrgmSimilarity: true } }, +}); + +// Create a platformProposalReview +const { mutate: create } = useCreatePlatformProposalReviewMutation({ + selection: { fields: { id: true } }, +}); +create({ body: '', bodyTrgmSimilarity: '', commitSha: '', commitShaTrgmSimilarity: '', createdByPrincipal: '', proposalId: '', reviewerId: '', search: '', searchScore: '', searchTsvRank: '', submittedAt: '', updatedByPrincipal: '', verdict: '', verdictTrgmSimilarity: '' }); +``` + +### PlatformProposalsChunk + +```typescript +// List all platformProposalsChunks +const { data, isLoading } = usePlatformProposalsChunksQuery({ + selection: { fields: { actorId: true, body: true, chunkIndex: true, createdAt: true, embedding: true, embeddingVectorDistance: true, id: true, metadata: true, platformProposalsId: true, searchScore: true, updatedAt: true } }, +}); + +// Get one platformProposalsChunk +const { data: item } = usePlatformProposalsChunkQuery({ + id: '', + selection: { fields: { actorId: true, body: true, chunkIndex: true, createdAt: true, embedding: true, embeddingVectorDistance: true, id: true, metadata: true, platformProposalsId: true, searchScore: true, updatedAt: true } }, +}); + +// Create a platformProposalsChunk +const { mutate: create } = useCreatePlatformProposalsChunkMutation({ + selection: { fields: { id: true } }, +}); +create({ actorId: '', body: '', chunkIndex: '', embedding: '', embeddingVectorDistance: '', metadata: '', platformProposalsId: '', searchScore: '' }); +``` + +### PlatformRegistryBinding + +```typescript +// List all platformRegistryBindings +const { data, isLoading } = usePlatformRegistryBindingsQuery({ + selection: { fields: { createdAt: true, createdBy: true, createdByPrincipal: true, id: true, metadata: true, namespaceId: true, observedCredentialVersion: true, pullSecretName: true, realm: true, registryHost: true, registryId: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, +}); + +// Get one platformRegistryBinding +const { data: item } = usePlatformRegistryBindingQuery({ + id: '', + selection: { fields: { createdAt: true, createdBy: true, createdByPrincipal: true, id: true, metadata: true, namespaceId: true, observedCredentialVersion: true, pullSecretName: true, realm: true, registryHost: true, registryId: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, +}); + +// Create a platformRegistryBinding +const { mutate: create } = useCreatePlatformRegistryBindingMutation({ + selection: { fields: { id: true } }, +}); +create({ createdBy: '', createdByPrincipal: '', metadata: '', namespaceId: '', observedCredentialVersion: '', pullSecretName: '', realm: '', registryHost: '', registryId: '', status: '', updatedBy: '', updatedByPrincipal: '' }); +``` + +### PlatformRegistry + +```typescript +// List all platformRegistries +const { data, isLoading } = usePlatformRegistriesQuery({ + selection: { fields: { authMode: true, basePath: true, createdAt: true, createdByPrincipal: true, credentialSecretName: true, host: true, id: true, installationId: true, isPublished: true, kind: true, labels: true, lastError: true, metadata: true, name: true, platformOnly: true, role: true, status: true, updatedAt: true, updatedByPrincipal: true } }, +}); + +// Get one platformRegistry +const { data: item } = usePlatformRegistryQuery({ + id: '', + selection: { fields: { authMode: true, basePath: true, createdAt: true, createdByPrincipal: true, credentialSecretName: true, host: true, id: true, installationId: true, isPublished: true, kind: true, labels: true, lastError: true, metadata: true, name: true, platformOnly: true, role: true, status: true, updatedAt: true, updatedByPrincipal: true } }, +}); + +// Create a platformRegistry +const { mutate: create } = useCreatePlatformRegistryMutation({ + selection: { fields: { id: true } }, +}); +create({ authMode: '', basePath: '', createdByPrincipal: '', credentialSecretName: '', host: '', installationId: '', isPublished: '', kind: '', labels: '', lastError: '', metadata: '', name: '', platformOnly: '', role: '', status: '', updatedByPrincipal: '' }); +``` + +### PlatformRegistryGrant + +```typescript +// List all platformRegistryGrants +const { data, isLoading } = usePlatformRegistryGrantsQuery({ + selection: { fields: { actions: true, createdAt: true, createdByPrincipal: true, expiresAt: true, grantedBy: true, granteeKey: true, granteeScope: true, id: true, registryId: true, updatedAt: true, updatedByPrincipal: true } }, +}); + +// Get one platformRegistryGrant +const { data: item } = usePlatformRegistryGrantQuery({ + id: '', + selection: { fields: { actions: true, createdAt: true, createdByPrincipal: true, expiresAt: true, grantedBy: true, granteeKey: true, granteeScope: true, id: true, registryId: true, updatedAt: true, updatedByPrincipal: true } }, +}); + +// Create a platformRegistryGrant +const { mutate: create } = useCreatePlatformRegistryGrantMutation({ + selection: { fields: { id: true } }, +}); +create({ actions: '', createdByPrincipal: '', expiresAt: '', grantedBy: '', granteeKey: '', granteeScope: '', registryId: '', updatedByPrincipal: '' }); +``` + +### PlatformRepository + +```typescript +// List all platformRepositories +const { data, isLoading } = usePlatformRepositoriesQuery({ + selection: { fields: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } }, +}); + +// Get one platformRepository +const { data: item } = usePlatformRepositoryQuery({ + id: '', + selection: { fields: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } }, +}); + +// Create a platformRepository +const { mutate: create } = useCreatePlatformRepositoryMutation({ + selection: { fields: { id: true } }, +}); +create({ cloneUrl: '', cloneUrlTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', defaultBranch: '', defaultBranchTrgmSimilarity: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', externalId: '', externalIdTrgmSimilarity: '', isArchived: '', metadata: '', name: '', nameTrgmSimilarity: '', ownerId: '', provider: '', providerTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', slug: '', slugTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '', visibility: '', visibilityTrgmSimilarity: '' }); +``` + +### PlatformRepositoryEvent + +```typescript +// List all platformRepositoryEvents +const { data, isLoading } = usePlatformRepositoryEventsQuery({ + selection: { fields: { actorId: true, commitSha: true, createdAt: true, createdByPrincipal: true, deliveryId: true, eventType: true, id: true, metadata: true, payload: true, ref: true, repositoryId: true, updatedAt: true, updatedByPrincipal: true } }, +}); + +// Get one platformRepositoryEvent +const { data: item } = usePlatformRepositoryEventQuery({ + id: '', + selection: { fields: { actorId: true, commitSha: true, createdAt: true, createdByPrincipal: true, deliveryId: true, eventType: true, id: true, metadata: true, payload: true, ref: true, repositoryId: true, updatedAt: true, updatedByPrincipal: true } }, +}); + +// Create a platformRepositoryEvent +const { mutate: create } = useCreatePlatformRepositoryEventMutation({ + selection: { fields: { id: true } }, +}); +create({ actorId: '', commitSha: '', createdByPrincipal: '', deliveryId: '', eventType: '', metadata: '', payload: '', ref: '', repositoryId: '', updatedByPrincipal: '' }); +``` + +### PlatformRepositoryRequiredCheck + +```typescript +// List all platformRepositoryRequiredChecks +const { data, isLoading } = usePlatformRepositoryRequiredChecksQuery({ + selection: { fields: { createdAt: true, id: true, repositoryId: true, updatedAt: true, workflowId: true } }, +}); + +// Get one platformRepositoryRequiredCheck +const { data: item } = usePlatformRepositoryRequiredCheckQuery({ + id: '', + selection: { fields: { createdAt: true, id: true, repositoryId: true, updatedAt: true, workflowId: true } }, +}); + +// Create a platformRepositoryRequiredCheck +const { mutate: create } = useCreatePlatformRepositoryRequiredCheckMutation({ + selection: { fields: { id: true } }, +}); +create({ repositoryId: '', workflowId: '' }); +``` + +### PlatformRepositoryWorkflow + +```typescript +// List all platformRepositoryWorkflows +const { data, isLoading } = usePlatformRepositoryWorkflowsQuery({ + selection: { fields: { cancelInProgress: true, concurrencyKey: true, createdAt: true, createdBy: true, createdByPrincipal: true, eventType: true, graphId: true, id: true, inputs: true, isEnabled: true, name: true, refPattern: true, repositoryId: true, requiredSecrets: true, slug: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, +}); + +// Get one platformRepositoryWorkflow +const { data: item } = usePlatformRepositoryWorkflowQuery({ + id: '', + selection: { fields: { cancelInProgress: true, concurrencyKey: true, createdAt: true, createdBy: true, createdByPrincipal: true, eventType: true, graphId: true, id: true, inputs: true, isEnabled: true, name: true, refPattern: true, repositoryId: true, requiredSecrets: true, slug: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, +}); + +// Create a platformRepositoryWorkflow +const { mutate: create } = useCreatePlatformRepositoryWorkflowMutation({ + selection: { fields: { id: true } }, +}); +create({ cancelInProgress: '', concurrencyKey: '', createdBy: '', createdByPrincipal: '', eventType: '', graphId: '', inputs: '', isEnabled: '', name: '', refPattern: '', repositoryId: '', requiredSecrets: '', slug: '', updatedBy: '', updatedByPrincipal: '' }); +``` + +### PlatformResource + +```typescript +// List all platformResources +const { data, isLoading } = usePlatformResourcesQuery({ + selection: { fields: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, +}); + +// Get one platformResource +const { data: item } = usePlatformResourceQuery({ + id: '', + selection: { fields: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, +}); + +// Create a platformResource +const { mutate: create } = useCreatePlatformResourceMutation({ + selection: { fields: { id: true } }, +}); +create({ annotations: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', createdByPrincipal: '', errorCount: '', imageRef: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusObserved: '', storageClass: '', storageSizeBytes: '', storageTotalBytes: '', updatedBy: '', updatedByPrincipal: '' }); +``` + +### PlatformResourceDeclaredCapacity + +```typescript +// List all platformResourceDeclaredCapacities +const { data, isLoading } = usePlatformResourceDeclaredCapacitiesQuery({ + selection: { fields: { cpuLimitMillicores: true, cpuRequestMillicores: true, installationId: true, isTransient: true, kind: true, memoryLimitBytes: true, memoryRequestBytes: true, namespaceId: true, podCountMax: true, podCountMin: true, source: true, sourceId: true, storageSizeBytes: true, storageTotalBytes: true } }, +}); + +// Create a platformResourceDeclaredCapacity +const { mutate: create } = useCreatePlatformResourceDeclaredCapacityMutation({ + selection: { fields: { id: true } }, +}); +create({ cpuLimitMillicores: '', cpuRequestMillicores: '', installationId: '', isTransient: '', kind: '', memoryLimitBytes: '', memoryRequestBytes: '', namespaceId: '', podCountMax: '', podCountMin: '', source: '', sourceId: '', storageSizeBytes: '', storageTotalBytes: '' }); ``` ### PlatformResourceDefinition @@ -1298,20 +2265,20 @@ create({ cpuLimitMillicores: '', cpuRequestMillicores: '', insta ```typescript // List all platformResourceDefinitions const { data, isLoading } = usePlatformResourceDefinitionsQuery({ - selection: { fields: { annotations: true, createdAt: true, createdBy: true, defaultSpec: true, description: true, id: true, integrations: true, kind: true, labels: true, name: true, namespaceId: true, paramsSchema: true, requiredConfigs: true, requiredSecrets: true, slug: true, stepUpMinAge: true, updatedAt: true, updatedBy: true } }, + selection: { fields: { annotations: true, createdAt: true, createdBy: true, createdByPrincipal: true, defaultSpec: true, description: true, id: true, integrations: true, kind: true, labels: true, name: true, namespaceId: true, paramsSchema: true, requiredConfigs: true, requiredSecrets: true, slug: true, stepUpMinAge: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); // Get one platformResourceDefinition const { data: item } = usePlatformResourceDefinitionQuery({ id: '', - selection: { fields: { annotations: true, createdAt: true, createdBy: true, defaultSpec: true, description: true, id: true, integrations: true, kind: true, labels: true, name: true, namespaceId: true, paramsSchema: true, requiredConfigs: true, requiredSecrets: true, slug: true, stepUpMinAge: true, updatedAt: true, updatedBy: true } }, + selection: { fields: { annotations: true, createdAt: true, createdBy: true, createdByPrincipal: true, defaultSpec: true, description: true, id: true, integrations: true, kind: true, labels: true, name: true, namespaceId: true, paramsSchema: true, requiredConfigs: true, requiredSecrets: true, slug: true, stepUpMinAge: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); // Create a platformResourceDefinition const { mutate: create } = useCreatePlatformResourceDefinitionMutation({ selection: { fields: { id: true } }, }); -create({ annotations: '', createdBy: '', defaultSpec: '', description: '', integrations: '', kind: '', labels: '', name: '', namespaceId: '', paramsSchema: '', requiredConfigs: '', requiredSecrets: '', slug: '', stepUpMinAge: '', updatedBy: '' }); +create({ annotations: '', createdBy: '', createdByPrincipal: '', defaultSpec: '', description: '', integrations: '', kind: '', labels: '', name: '', namespaceId: '', paramsSchema: '', requiredConfigs: '', requiredSecrets: '', slug: '', stepUpMinAge: '', updatedBy: '', updatedByPrincipal: '' }); ``` ### PlatformResourceEvent @@ -1340,20 +2307,35 @@ create({ actorId: '', eventType: '', message: '', metadata ```typescript // List all platformResourceInstallations const { data, isLoading } = usePlatformResourceInstallationsQuery({ - selection: { fields: { commitId: true, createdAt: true, createdBy: true, id: true, name: true, namespaceId: true, params: true, revision: true, slug: true, status: true, storeId: true, updatedAt: true, updatedBy: true } }, + selection: { fields: { commitId: true, createdAt: true, createdBy: true, createdByPrincipal: true, id: true, name: true, namespaceId: true, params: true, revision: true, slug: true, status: true, storeId: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); // Get one platformResourceInstallation const { data: item } = usePlatformResourceInstallationQuery({ id: '', - selection: { fields: { commitId: true, createdAt: true, createdBy: true, id: true, name: true, namespaceId: true, params: true, revision: true, slug: true, status: true, storeId: true, updatedAt: true, updatedBy: true } }, + selection: { fields: { commitId: true, createdAt: true, createdBy: true, createdByPrincipal: true, id: true, name: true, namespaceId: true, params: true, revision: true, slug: true, status: true, storeId: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); // Create a platformResourceInstallation const { mutate: create } = useCreatePlatformResourceInstallationMutation({ selection: { fields: { id: true } }, }); -create({ commitId: '', createdBy: '', name: '', namespaceId: '', params: '', revision: '', slug: '', status: '', storeId: '', updatedBy: '' }); +create({ commitId: '', createdBy: '', createdByPrincipal: '', name: '', namespaceId: '', params: '', revision: '', slug: '', status: '', storeId: '', updatedBy: '', updatedByPrincipal: '' }); +``` + +### PlatformResourceObservedStorage + +```typescript +// List all platformResourceObservedStorages +const { data, isLoading } = usePlatformResourceObservedStoragesQuery({ + selection: { fields: { capacity: true, capacityBytes: true, claimName: true, declaredStorageClass: true, declaredStorageSizeBytes: true, declaredStorageTotalBytes: true, installationId: true, isBound: true, kind: true, namespaceId: true, phase: true, requested: true, requestedBytes: true, resourceId: true, resourceStatus: true, slug: true, storageClass: true, storageName: true } }, +}); + +// Create a platformResourceObservedStorage +const { mutate: create } = useCreatePlatformResourceObservedStorageMutation({ + selection: { fields: { id: true } }, +}); +create({ capacity: '', capacityBytes: '', claimName: '', declaredStorageClass: '', declaredStorageSizeBytes: '', declaredStorageTotalBytes: '', installationId: '', isBound: '', kind: '', namespaceId: '', phase: '', requested: '', requestedBytes: '', resourceId: '', resourceStatus: '', slug: '', storageClass: '', storageName: '' }); ``` ### PlatformResourceStatusCheck @@ -1439,20 +2421,20 @@ create({ avgMemoryBytes: '', cpuLimitMillicores: '', cpuPeakUtil ```typescript // List all platformResourcesHealths const { data, isLoading } = usePlatformResourcesHealthsQuery({ - selection: { fields: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, errorCount: true, id: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusDetail: true, statusObserved: true, storageClass: true, storageSizeBytes: true, updatedAt: true, updatedBy: true } }, + selection: { fields: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusDetail: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); // Get one platformResourcesHealth const { data: item } = usePlatformResourcesHealthQuery({ id: '', - selection: { fields: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, errorCount: true, id: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusDetail: true, statusObserved: true, storageClass: true, storageSizeBytes: true, updatedAt: true, updatedBy: true } }, + selection: { fields: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusDetail: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); // Create a platformResourcesHealth const { mutate: create } = useCreatePlatformResourcesHealthMutation({ selection: { fields: { id: true } }, }); -create({ annotations: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', errorCount: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusDetail: '', statusObserved: '', storageClass: '', storageSizeBytes: '', updatedBy: '' }); +create({ annotations: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', createdByPrincipal: '', errorCount: '', imageRef: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusDetail: '', statusObserved: '', storageClass: '', storageSizeBytes: '', storageTotalBytes: '', updatedBy: '', updatedByPrincipal: '' }); ``` ### PlatformResourcesRequirementsState @@ -1490,20 +2472,20 @@ create({ atomId: '', configObjectName: '', name: '', names ```typescript // List all platformWebhookEndpoints const { data, isLoading } = usePlatformWebhookEndpointsQuery({ - selection: { fields: { active: true, createdAt: true, createdBy: true, functionDefinitionId: true, host: true, id: true, namespaceId: true, path: true, provider: true, replayWindowSeconds: true, signingSecretName: true, updatedAt: true, updatedBy: true } }, + selection: { fields: { active: true, createdAt: true, createdBy: true, createdByPrincipal: true, functionDefinitionId: true, host: true, id: true, namespaceId: true, path: true, provider: true, replayWindowSeconds: true, signingSecretName: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); // Get one platformWebhookEndpoint const { data: item } = usePlatformWebhookEndpointQuery({ id: '', - selection: { fields: { active: true, createdAt: true, createdBy: true, functionDefinitionId: true, host: true, id: true, namespaceId: true, path: true, provider: true, replayWindowSeconds: true, signingSecretName: true, updatedAt: true, updatedBy: true } }, + selection: { fields: { active: true, createdAt: true, createdBy: true, createdByPrincipal: true, functionDefinitionId: true, host: true, id: true, namespaceId: true, path: true, provider: true, replayWindowSeconds: true, signingSecretName: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); // Create a platformWebhookEndpoint const { mutate: create } = useCreatePlatformWebhookEndpointMutation({ selection: { fields: { id: true } }, }); -create({ active: '', createdBy: '', functionDefinitionId: '', host: '', namespaceId: '', path: '', provider: '', replayWindowSeconds: '', signingSecretName: '', updatedBy: '' }); +create({ active: '', createdBy: '', createdByPrincipal: '', functionDefinitionId: '', host: '', namespaceId: '', path: '', provider: '', replayWindowSeconds: '', signingSecretName: '', updatedBy: '', updatedByPrincipal: '' }); ``` ### PlatformWebhookEvent @@ -1527,25 +2509,298 @@ const { mutate: create } = useCreatePlatformWebhookEventMutation({ create({ endpointId: '', error: '', externalEventId: '', invocationCreatedAt: '', invocationId: '', payload: '', provider: '', providerTimestamp: '', status: '' }); ``` +### ProposalComment + +```typescript +// List all proposalComments +const { data, isLoading } = useProposalCommentsQuery({ + selection: { fields: { actorId: true, attachments: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, +}); + +// Get one proposalComment +const { data: item } = useProposalCommentQuery({ + id: '', + selection: { fields: { actorId: true, attachments: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, +}); + +// Create a proposalComment +const { mutate: create } = useCreateProposalCommentMutation({ + selection: { fields: { id: true } }, +}); +create({ actorId: '', attachments: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', line: '', outdatedAt: '', path: '', pathTrgmSimilarity: '', proposalId: '', resolvedAt: '', search: '', searchScore: '', searchTsvRank: '', updatedBy: '', updatedByPrincipal: '' }); +``` + +### Proposal + +```typescript +// List all proposals +const { data, isLoading } = useProposalsQuery({ + selection: { fields: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, decidedAt: true, dueAt: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, +}); + +// Get one proposal +const { data: item } = useProposalQuery({ + id: '', + selection: { fields: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, decidedAt: true, dueAt: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, +}); + +// Create a proposal +const { mutate: create } = useCreateProposalMutation({ + selection: { fields: { id: true } }, +}); +create({ actorId: '', body: '', bodyTrgmSimilarity: '', closedReason: '', closedReasonTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', decidedAt: '', dueAt: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', kind: '', kindTrgmSimilarity: '', labels: '', mergeCommit: '', mergeCommitTrgmSimilarity: '', mergeMethod: '', mergeMethodTrgmSimilarity: '', mergeRequestedAt: '', mergedAt: '', metadata: '', parentId: '', priority: '', repositoryId: '', resolution: '', resolutionTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', sourceRef: '', sourceRefTrgmSimilarity: '', status: '', statusTrgmSimilarity: '', targetRef: '', targetRefTrgmSimilarity: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }); +``` + +### ProposalFileView + +```typescript +// List all proposalFileViews +const { data, isLoading } = useProposalFileViewsQuery({ + selection: { fields: { blobSha: true, createdAt: true, createdByPrincipal: true, databaseId: true, id: true, path: true, proposalId: true, reviewerId: true, updatedAt: true, updatedByPrincipal: true, viewedAt: true } }, +}); + +// Get one proposalFileView +const { data: item } = useProposalFileViewQuery({ + id: '', + selection: { fields: { blobSha: true, createdAt: true, createdByPrincipal: true, databaseId: true, id: true, path: true, proposalId: true, reviewerId: true, updatedAt: true, updatedByPrincipal: true, viewedAt: true } }, +}); + +// Create a proposalFileView +const { mutate: create } = useCreateProposalFileViewMutation({ + selection: { fields: { id: true } }, +}); +create({ blobSha: '', createdByPrincipal: '', databaseId: '', path: '', proposalId: '', reviewerId: '', updatedByPrincipal: '', viewedAt: '' }); +``` + +### ProposalReaction + +```typescript +// List all proposalReactions +const { data, isLoading } = useProposalReactionsQuery({ + selection: { fields: { actorId: true, commentId: true, createdAt: true, createdByPrincipal: true, databaseId: true, emoji: true, id: true, proposalId: true, updatedAt: true, updatedByPrincipal: true } }, +}); + +// Get one proposalReaction +const { data: item } = useProposalReactionQuery({ + id: '', + selection: { fields: { actorId: true, commentId: true, createdAt: true, createdByPrincipal: true, databaseId: true, emoji: true, id: true, proposalId: true, updatedAt: true, updatedByPrincipal: true } }, +}); + +// Create a proposalReaction +const { mutate: create } = useCreateProposalReactionMutation({ + selection: { fields: { id: true } }, +}); +create({ actorId: '', commentId: '', createdByPrincipal: '', databaseId: '', emoji: '', proposalId: '', updatedByPrincipal: '' }); +``` + +### ProposalReview + +```typescript +// List all proposalReviews +const { data, isLoading } = useProposalReviewsQuery({ + selection: { fields: { body: true, bodyTrgmSimilarity: true, commitSha: true, commitShaTrgmSimilarity: true, createdAt: true, createdByPrincipal: true, databaseId: true, id: true, proposalId: true, reviewerId: true, search: true, searchScore: true, searchTsvRank: true, submittedAt: true, updatedAt: true, updatedByPrincipal: true, verdict: true, verdictTrgmSimilarity: true } }, +}); + +// Get one proposalReview +const { data: item } = useProposalReviewQuery({ + id: '', + selection: { fields: { body: true, bodyTrgmSimilarity: true, commitSha: true, commitShaTrgmSimilarity: true, createdAt: true, createdByPrincipal: true, databaseId: true, id: true, proposalId: true, reviewerId: true, search: true, searchScore: true, searchTsvRank: true, submittedAt: true, updatedAt: true, updatedByPrincipal: true, verdict: true, verdictTrgmSimilarity: true } }, +}); + +// Create a proposalReview +const { mutate: create } = useCreateProposalReviewMutation({ + selection: { fields: { id: true } }, +}); +create({ body: '', bodyTrgmSimilarity: '', commitSha: '', commitShaTrgmSimilarity: '', createdByPrincipal: '', databaseId: '', proposalId: '', reviewerId: '', search: '', searchScore: '', searchTsvRank: '', submittedAt: '', updatedByPrincipal: '', verdict: '', verdictTrgmSimilarity: '' }); +``` + +### ProposalsChunk + +```typescript +// List all proposalsChunks +const { data, isLoading } = useProposalsChunksQuery({ + selection: { fields: { actorId: true, body: true, chunkIndex: true, createdAt: true, databaseId: true, embedding: true, embeddingVectorDistance: true, id: true, metadata: true, proposalsId: true, searchScore: true, updatedAt: true } }, +}); + +// Get one proposalsChunk +const { data: item } = useProposalsChunkQuery({ + id: '', + selection: { fields: { actorId: true, body: true, chunkIndex: true, createdAt: true, databaseId: true, embedding: true, embeddingVectorDistance: true, id: true, metadata: true, proposalsId: true, searchScore: true, updatedAt: true } }, +}); + +// Create a proposalsChunk +const { mutate: create } = useCreateProposalsChunkMutation({ + selection: { fields: { id: true } }, +}); +create({ actorId: '', body: '', chunkIndex: '', databaseId: '', embedding: '', embeddingVectorDistance: '', metadata: '', proposalsId: '', searchScore: '' }); +``` + +### RegistryBinding + +```typescript +// List all registryBindings +const { data, isLoading } = useRegistryBindingsQuery({ + selection: { fields: { createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, id: true, metadata: true, namespaceId: true, observedCredentialVersion: true, pullSecretName: true, realm: true, registryHost: true, registryId: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, +}); + +// Get one registryBinding +const { data: item } = useRegistryBindingQuery({ + id: '', + selection: { fields: { createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, id: true, metadata: true, namespaceId: true, observedCredentialVersion: true, pullSecretName: true, realm: true, registryHost: true, registryId: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, +}); + +// Create a registryBinding +const { mutate: create } = useCreateRegistryBindingMutation({ + selection: { fields: { id: true } }, +}); +create({ createdBy: '', createdByPrincipal: '', databaseId: '', metadata: '', namespaceId: '', observedCredentialVersion: '', pullSecretName: '', realm: '', registryHost: '', registryId: '', status: '', updatedBy: '', updatedByPrincipal: '' }); +``` + +### Registry + +```typescript +// List all registries +const { data, isLoading } = useRegistriesQuery({ + selection: { fields: { authMode: true, basePath: true, createdAt: true, createdByPrincipal: true, credentialSecretName: true, databaseId: true, host: true, id: true, installationId: true, isPublished: true, kind: true, labels: true, lastError: true, metadata: true, name: true, platformOnly: true, role: true, status: true, updatedAt: true, updatedByPrincipal: true } }, +}); + +// Get one registry +const { data: item } = useRegistryQuery({ + id: '', + selection: { fields: { authMode: true, basePath: true, createdAt: true, createdByPrincipal: true, credentialSecretName: true, databaseId: true, host: true, id: true, installationId: true, isPublished: true, kind: true, labels: true, lastError: true, metadata: true, name: true, platformOnly: true, role: true, status: true, updatedAt: true, updatedByPrincipal: true } }, +}); + +// Create a registry +const { mutate: create } = useCreateRegistryMutation({ + selection: { fields: { id: true } }, +}); +create({ authMode: '', basePath: '', createdByPrincipal: '', credentialSecretName: '', databaseId: '', host: '', installationId: '', isPublished: '', kind: '', labels: '', lastError: '', metadata: '', name: '', platformOnly: '', role: '', status: '', updatedByPrincipal: '' }); +``` + +### RegistryGrant + +```typescript +// List all registryGrants +const { data, isLoading } = useRegistryGrantsQuery({ + selection: { fields: { actions: true, createdAt: true, createdByPrincipal: true, databaseId: true, expiresAt: true, grantedBy: true, granteeKey: true, granteeScope: true, id: true, registryId: true, updatedAt: true, updatedByPrincipal: true } }, +}); + +// Get one registryGrant +const { data: item } = useRegistryGrantQuery({ + id: '', + selection: { fields: { actions: true, createdAt: true, createdByPrincipal: true, databaseId: true, expiresAt: true, grantedBy: true, granteeKey: true, granteeScope: true, id: true, registryId: true, updatedAt: true, updatedByPrincipal: true } }, +}); + +// Create a registryGrant +const { mutate: create } = useCreateRegistryGrantMutation({ + selection: { fields: { id: true } }, +}); +create({ actions: '', createdByPrincipal: '', databaseId: '', expiresAt: '', grantedBy: '', granteeKey: '', granteeScope: '', registryId: '', updatedByPrincipal: '' }); +``` + +### Repository + +```typescript +// List all repositories +const { data, isLoading } = useRepositoriesQuery({ + selection: { fields: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } }, +}); + +// Get one repository +const { data: item } = useRepositoryQuery({ + id: '', + selection: { fields: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } }, +}); + +// Create a repository +const { mutate: create } = useCreateRepositoryMutation({ + selection: { fields: { id: true } }, +}); +create({ cloneUrl: '', cloneUrlTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', defaultBranch: '', defaultBranchTrgmSimilarity: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', externalId: '', externalIdTrgmSimilarity: '', isArchived: '', metadata: '', name: '', nameTrgmSimilarity: '', ownerId: '', provider: '', providerTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', slug: '', slugTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '', visibility: '', visibilityTrgmSimilarity: '' }); +``` + +### RepositoryEvent + +```typescript +// List all repositoryEvents +const { data, isLoading } = useRepositoryEventsQuery({ + selection: { fields: { actorId: true, commitSha: true, createdAt: true, createdByPrincipal: true, databaseId: true, deliveryId: true, eventType: true, id: true, metadata: true, payload: true, ref: true, repositoryId: true, updatedAt: true, updatedByPrincipal: true } }, +}); + +// Get one repositoryEvent +const { data: item } = useRepositoryEventQuery({ + id: '', + selection: { fields: { actorId: true, commitSha: true, createdAt: true, createdByPrincipal: true, databaseId: true, deliveryId: true, eventType: true, id: true, metadata: true, payload: true, ref: true, repositoryId: true, updatedAt: true, updatedByPrincipal: true } }, +}); + +// Create a repositoryEvent +const { mutate: create } = useCreateRepositoryEventMutation({ + selection: { fields: { id: true } }, +}); +create({ actorId: '', commitSha: '', createdByPrincipal: '', databaseId: '', deliveryId: '', eventType: '', metadata: '', payload: '', ref: '', repositoryId: '', updatedByPrincipal: '' }); +``` + +### RepositoryRequiredCheck + +```typescript +// List all repositoryRequiredChecks +const { data, isLoading } = useRepositoryRequiredChecksQuery({ + selection: { fields: { createdAt: true, databaseId: true, id: true, repositoryId: true, updatedAt: true, workflowId: true } }, +}); + +// Get one repositoryRequiredCheck +const { data: item } = useRepositoryRequiredCheckQuery({ + id: '', + selection: { fields: { createdAt: true, databaseId: true, id: true, repositoryId: true, updatedAt: true, workflowId: true } }, +}); + +// Create a repositoryRequiredCheck +const { mutate: create } = useCreateRepositoryRequiredCheckMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', repositoryId: '', workflowId: '' }); +``` + +### RepositoryWorkflow + +```typescript +// List all repositoryWorkflows +const { data, isLoading } = useRepositoryWorkflowsQuery({ + selection: { fields: { cancelInProgress: true, concurrencyKey: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, eventType: true, graphId: true, id: true, inputs: true, isEnabled: true, name: true, refPattern: true, repositoryId: true, requiredSecrets: true, slug: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, +}); + +// Get one repositoryWorkflow +const { data: item } = useRepositoryWorkflowQuery({ + id: '', + selection: { fields: { cancelInProgress: true, concurrencyKey: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, eventType: true, graphId: true, id: true, inputs: true, isEnabled: true, name: true, refPattern: true, repositoryId: true, requiredSecrets: true, slug: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, +}); + +// Create a repositoryWorkflow +const { mutate: create } = useCreateRepositoryWorkflowMutation({ + selection: { fields: { id: true } }, +}); +create({ cancelInProgress: '', concurrencyKey: '', createdBy: '', createdByPrincipal: '', databaseId: '', eventType: '', graphId: '', inputs: '', isEnabled: '', name: '', refPattern: '', repositoryId: '', requiredSecrets: '', slug: '', updatedBy: '', updatedByPrincipal: '' }); +``` + ### Resource ```typescript // List all resources const { data, isLoading } = useResourcesQuery({ - selection: { fields: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, databaseId: true, errorCount: true, id: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusObserved: true, storageClass: true, storageSizeBytes: true, updatedAt: true, updatedBy: true } }, + selection: { fields: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); // Get one resource const { data: item } = useResourceQuery({ id: '', - selection: { fields: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, databaseId: true, errorCount: true, id: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusObserved: true, storageClass: true, storageSizeBytes: true, updatedAt: true, updatedBy: true } }, + selection: { fields: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); // Create a resource const { mutate: create } = useCreateResourceMutation({ selection: { fields: { id: true } }, }); -create({ annotations: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', databaseId: '', errorCount: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusObserved: '', storageClass: '', storageSizeBytes: '', updatedBy: '' }); +create({ annotations: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', createdByPrincipal: '', databaseId: '', errorCount: '', imageRef: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusObserved: '', storageClass: '', storageSizeBytes: '', storageTotalBytes: '', updatedBy: '', updatedByPrincipal: '' }); ``` ### ResourceDeclaredCapacity @@ -1553,14 +2808,14 @@ create({ annotations: '', cpuLimitMillicores: '', cpuRequestMillic ```typescript // List all resourceDeclaredCapacities const { data, isLoading } = useResourceDeclaredCapacitiesQuery({ - selection: { fields: { cpuLimitMillicores: true, cpuRequestMillicores: true, installationId: true, isTransient: true, kind: true, memoryLimitBytes: true, memoryRequestBytes: true, namespaceId: true, podCountMax: true, podCountMin: true, source: true, sourceId: true, storageSizeBytes: true } }, + selection: { fields: { cpuLimitMillicores: true, cpuRequestMillicores: true, installationId: true, isTransient: true, kind: true, memoryLimitBytes: true, memoryRequestBytes: true, namespaceId: true, podCountMax: true, podCountMin: true, source: true, sourceId: true, storageSizeBytes: true, storageTotalBytes: true } }, }); // Create a resourceDeclaredCapacity const { mutate: create } = useCreateResourceDeclaredCapacityMutation({ selection: { fields: { id: true } }, }); -create({ cpuLimitMillicores: '', cpuRequestMillicores: '', installationId: '', isTransient: '', kind: '', memoryLimitBytes: '', memoryRequestBytes: '', namespaceId: '', podCountMax: '', podCountMin: '', source: '', sourceId: '', storageSizeBytes: '' }); +create({ cpuLimitMillicores: '', cpuRequestMillicores: '', installationId: '', isTransient: '', kind: '', memoryLimitBytes: '', memoryRequestBytes: '', namespaceId: '', podCountMax: '', podCountMin: '', source: '', sourceId: '', storageSizeBytes: '', storageTotalBytes: '' }); ``` ### ResourceDefinition @@ -1568,20 +2823,20 @@ create({ cpuLimitMillicores: '', cpuRequestMillicores: '', insta ```typescript // List all resourceDefinitions const { data, isLoading } = useResourceDefinitionsQuery({ - selection: { fields: { annotations: true, createdAt: true, createdBy: true, databaseId: true, defaultSpec: true, description: true, id: true, integrations: true, kind: true, labels: true, name: true, namespaceId: true, paramsSchema: true, requiredConfigs: true, requiredSecrets: true, slug: true, stepUpMinAge: true, updatedAt: true, updatedBy: true } }, + selection: { fields: { annotations: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, defaultSpec: true, description: true, id: true, integrations: true, kind: true, labels: true, name: true, namespaceId: true, paramsSchema: true, requiredConfigs: true, requiredSecrets: true, slug: true, stepUpMinAge: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); // Get one resourceDefinition const { data: item } = useResourceDefinitionQuery({ id: '', - selection: { fields: { annotations: true, createdAt: true, createdBy: true, databaseId: true, defaultSpec: true, description: true, id: true, integrations: true, kind: true, labels: true, name: true, namespaceId: true, paramsSchema: true, requiredConfigs: true, requiredSecrets: true, slug: true, stepUpMinAge: true, updatedAt: true, updatedBy: true } }, + selection: { fields: { annotations: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, defaultSpec: true, description: true, id: true, integrations: true, kind: true, labels: true, name: true, namespaceId: true, paramsSchema: true, requiredConfigs: true, requiredSecrets: true, slug: true, stepUpMinAge: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); // Create a resourceDefinition const { mutate: create } = useCreateResourceDefinitionMutation({ selection: { fields: { id: true } }, }); -create({ annotations: '', createdBy: '', databaseId: '', defaultSpec: '', description: '', integrations: '', kind: '', labels: '', name: '', namespaceId: '', paramsSchema: '', requiredConfigs: '', requiredSecrets: '', slug: '', stepUpMinAge: '', updatedBy: '' }); +create({ annotations: '', createdBy: '', createdByPrincipal: '', databaseId: '', defaultSpec: '', description: '', integrations: '', kind: '', labels: '', name: '', namespaceId: '', paramsSchema: '', requiredConfigs: '', requiredSecrets: '', slug: '', stepUpMinAge: '', updatedBy: '', updatedByPrincipal: '' }); ``` ### ResourceEvent @@ -1610,20 +2865,35 @@ create({ actorId: '', databaseId: '', eventType: '', message ```typescript // List all resourceInstallations const { data, isLoading } = useResourceInstallationsQuery({ - selection: { fields: { commitId: true, createdAt: true, createdBy: true, databaseId: true, id: true, name: true, namespaceId: true, params: true, revision: true, slug: true, status: true, storeId: true, updatedAt: true, updatedBy: true } }, + selection: { fields: { commitId: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, id: true, name: true, namespaceId: true, params: true, revision: true, slug: true, status: true, storeId: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); // Get one resourceInstallation const { data: item } = useResourceInstallationQuery({ id: '', - selection: { fields: { commitId: true, createdAt: true, createdBy: true, databaseId: true, id: true, name: true, namespaceId: true, params: true, revision: true, slug: true, status: true, storeId: true, updatedAt: true, updatedBy: true } }, + selection: { fields: { commitId: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, id: true, name: true, namespaceId: true, params: true, revision: true, slug: true, status: true, storeId: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); // Create a resourceInstallation const { mutate: create } = useCreateResourceInstallationMutation({ selection: { fields: { id: true } }, }); -create({ commitId: '', createdBy: '', databaseId: '', name: '', namespaceId: '', params: '', revision: '', slug: '', status: '', storeId: '', updatedBy: '' }); +create({ commitId: '', createdBy: '', createdByPrincipal: '', databaseId: '', name: '', namespaceId: '', params: '', revision: '', slug: '', status: '', storeId: '', updatedBy: '', updatedByPrincipal: '' }); +``` + +### ResourceObservedStorage + +```typescript +// List all resourceObservedStorages +const { data, isLoading } = useResourceObservedStoragesQuery({ + selection: { fields: { capacity: true, capacityBytes: true, claimName: true, declaredStorageClass: true, declaredStorageSizeBytes: true, declaredStorageTotalBytes: true, installationId: true, isBound: true, kind: true, namespaceId: true, phase: true, requested: true, requestedBytes: true, resourceId: true, resourceStatus: true, slug: true, storageClass: true, storageName: true } }, +}); + +// Create a resourceObservedStorage +const { mutate: create } = useCreateResourceObservedStorageMutation({ + selection: { fields: { id: true } }, +}); +create({ capacity: '', capacityBytes: '', claimName: '', declaredStorageClass: '', declaredStorageSizeBytes: '', declaredStorageTotalBytes: '', installationId: '', isBound: '', kind: '', namespaceId: '', phase: '', requested: '', requestedBytes: '', resourceId: '', resourceStatus: '', slug: '', storageClass: '', storageName: '' }); ``` ### ResourceStatusCheck @@ -1709,20 +2979,20 @@ create({ avgMemoryBytes: '', cpuLimitMillicores: '', cpuPeakUtil ```typescript // List all resourcesHealths const { data, isLoading } = useResourcesHealthsQuery({ - selection: { fields: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, databaseId: true, errorCount: true, id: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusDetail: true, statusObserved: true, storageClass: true, storageSizeBytes: true, updatedAt: true, updatedBy: true } }, + selection: { fields: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusDetail: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); // Get one resourcesHealth const { data: item } = useResourcesHealthQuery({ id: '', - selection: { fields: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, databaseId: true, errorCount: true, id: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusDetail: true, statusObserved: true, storageClass: true, storageSizeBytes: true, updatedAt: true, updatedBy: true } }, + selection: { fields: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusDetail: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); // Create a resourcesHealth const { mutate: create } = useCreateResourcesHealthMutation({ selection: { fields: { id: true } }, }); -create({ annotations: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', databaseId: '', errorCount: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusDetail: '', statusObserved: '', storageClass: '', storageSizeBytes: '', updatedBy: '' }); +create({ annotations: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', createdByPrincipal: '', databaseId: '', errorCount: '', imageRef: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusDetail: '', statusObserved: '', storageClass: '', storageSizeBytes: '', storageTotalBytes: '', updatedBy: '', updatedByPrincipal: '' }); ``` ### ResourcesRequirementsState @@ -1760,20 +3030,20 @@ create({ atomId: '', configObjectName: '', name: '', names ```typescript // List all webhookEndpoints const { data, isLoading } = useWebhookEndpointsQuery({ - selection: { fields: { active: true, createdAt: true, createdBy: true, databaseId: true, functionDefinitionId: true, host: true, id: true, namespaceId: true, path: true, provider: true, replayWindowSeconds: true, signingSecretName: true, updatedAt: true, updatedBy: true } }, + selection: { fields: { active: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, functionDefinitionId: true, host: true, id: true, namespaceId: true, path: true, provider: true, replayWindowSeconds: true, signingSecretName: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); // Get one webhookEndpoint const { data: item } = useWebhookEndpointQuery({ id: '', - selection: { fields: { active: true, createdAt: true, createdBy: true, databaseId: true, functionDefinitionId: true, host: true, id: true, namespaceId: true, path: true, provider: true, replayWindowSeconds: true, signingSecretName: true, updatedAt: true, updatedBy: true } }, + selection: { fields: { active: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, functionDefinitionId: true, host: true, id: true, namespaceId: true, path: true, provider: true, replayWindowSeconds: true, signingSecretName: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); // Create a webhookEndpoint const { mutate: create } = useCreateWebhookEndpointMutation({ selection: { fields: { id: true } }, }); -create({ active: '', createdBy: '', databaseId: '', functionDefinitionId: '', host: '', namespaceId: '', path: '', provider: '', replayWindowSeconds: '', signingSecretName: '', updatedBy: '' }); +create({ active: '', createdBy: '', createdByPrincipal: '', databaseId: '', functionDefinitionId: '', host: '', namespaceId: '', path: '', provider: '', replayWindowSeconds: '', signingSecretName: '', updatedBy: '', updatedByPrincipal: '' }); ``` ### WebhookEvent @@ -1799,6 +3069,17 @@ create({ databaseId: '', endpointId: '', error: '', external ## Custom Operation Hooks +### `useDatabaseReadFunctionGraphQuery` + +databaseReadFunctionGraph + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `graphId` | UUID | + ### `useReadFunctionGraphQuery` readFunctionGraph @@ -1854,6 +3135,17 @@ addNodeAndSave |----------|------| | `input` | AddNodeAndSaveInput (required) | +### `useApproveNodeMutation` + +approveNode + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | ApproveNodeInput (required) | + ### `useCopyGraphMutation` copyGraph @@ -1865,6 +3157,215 @@ copyGraph |----------|------| | `input` | CopyGraphInput (required) | +### `useDatabaseAddEdgeMutation` + +databaseAddEdge + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | DatabaseAddEdgeInput (required) | + +### `useDatabaseAddEdgeAndSaveMutation` + +databaseAddEdgeAndSave + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | DatabaseAddEdgeAndSaveInput (required) | + +### `useDatabaseAddNodeMutation` + +databaseAddNode + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | DatabaseAddNodeInput (required) | + +### `useDatabaseAddNodeAndSaveMutation` + +databaseAddNodeAndSave + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | DatabaseAddNodeAndSaveInput (required) | + +### `useDatabaseApproveNodeMutation` + +databaseApproveNode + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | DatabaseApproveNodeInput (required) | + +### `useDatabaseCopyGraphMutation` + +databaseCopyGraph + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | DatabaseCopyGraphInput (required) | + +### `useDatabaseCreateFunctionGraphMutation` + +databaseCreateFunctionGraph + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | DatabaseCreateFunctionGraphInput (required) | + +### `useDatabaseGraphInitEmptyRepoMutation` + +databaseGraphInitEmptyRepo + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | DatabaseGraphInitEmptyRepoInput (required) | + +### `useDatabaseGraphInsertNodeAtPathMutation` + +databaseGraphInsertNodeAtPath + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | DatabaseGraphInsertNodeAtPathInput (required) | + +### `useDatabaseGraphInsertNodesAtPathsMutation` + +databaseGraphInsertNodesAtPaths + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | DatabaseGraphInsertNodesAtPathsInput (required) | + +### `useDatabaseGraphSetAndCommitMutation` + +databaseGraphSetAndCommit + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | DatabaseGraphSetAndCommitInput (required) | + +### `useDatabaseGraphSetDataAtPathMutation` + +databaseGraphSetDataAtPath + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | DatabaseGraphSetDataAtPathInput (required) | + +### `useDatabaseGraphSetManyAndCommitMutation` + +databaseGraphSetManyAndCommit + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | DatabaseGraphSetManyAndCommitInput (required) | + +### `useDatabaseImportDefinitionsMutation` + +databaseImportDefinitions + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | DatabaseImportDefinitionsInput (required) | + +### `useDatabaseImportGraphJsonMutation` + +databaseImportGraphJson + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | DatabaseImportGraphJsonInput (required) | + +### `useDatabaseSaveGraphMutation` + +databaseSaveGraph + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | DatabaseSaveGraphInput (required) | + +### `useDatabaseStartExecutionMutation` + +databaseStartExecution + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | DatabaseStartExecutionInput (required) | + +### `useDatabaseValidateFunctionGraphMutation` + +databaseValidateFunctionGraph + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | DatabaseValidateFunctionGraphInput (required) | + +### `useFunctionInvocationsCreateSyncMutation` + +functionInvocationsCreateSync + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | FunctionInvocationsCreateSyncInput (required) | + ### `useImportDefinitionsMutation` importDefinitions @@ -1986,6 +3487,17 @@ insertNodesAtPaths |----------|------| | `input` | InsertNodesAtPathsInput (required) | +### `usePlatformFunctionInvocationsCreateSyncMutation` + +platformFunctionInvocationsCreateSync + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | PlatformFunctionInvocationsCreateSyncInput (required) | + ### `usePlatformInfraInitEmptyRepoMutation` platformInfraInitEmptyRepo @@ -2098,10 +3610,11 @@ platformResourceInstallationsUpgrade ### `useProvisionBucketMutation` -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. +Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. - **Type:** mutation - **Arguments:** diff --git a/sdk/constructive-react/src/compute/hooks/index.ts b/sdk/constructive-react/src/compute/hooks/index.ts index 0507a6d4e8..2404ad0bb5 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: 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 + * Tables: Build, BuildStep, BuilderBinding, ContentPreset, DatabaseFunctionGraph, DatabaseFunctionGraphExecution, DatabaseFunctionGraphExecutionNodeState, DatabaseFunctionGraphExecutionOutput, DatabaseGraphCommit, DatabaseGraphGetAllTreeNodesRecord, DatabaseGraphObject, DatabaseGraphRef, DatabaseGraphStore, DbPreset, FunctionApiBinding, FunctionCapabilityBinding, FunctionDefinition, FunctionDeployment, FunctionDeploymentEvent, FunctionExecutionLog, FunctionGraphCommit, FunctionGraph, FunctionGraphExecution, FunctionGraphExecutionNodeState, FunctionGraphExecutionOutput, FunctionGraphObject, FunctionGraphRef, FunctionGraphStore, FunctionInvocationAttempt, FunctionInvocation, GetAllTreeNodesRecord, Image, ImageGrant, InfraCommit, InfraGetAllTreeNodesRecord, InfraObject, InfraRef, InfraStore, IntegrationProvider, Namespace, NamespaceEvent, PlatformBuild, PlatformBuildStep, PlatformBuilderBinding, PlatformFunctionApiBinding, PlatformFunctionCapabilityBinding, PlatformFunctionDefinition, PlatformFunctionDeployment, PlatformFunctionDeploymentEvent, PlatformFunctionExecutionLog, PlatformFunctionInvocationAttempt, PlatformFunctionInvocation, PlatformImage, PlatformImageGrant, PlatformInfraCommit, PlatformInfraGetAllTreeNodesRecord, PlatformInfraObject, PlatformInfraRef, PlatformInfraStore, PlatformK8sResourceKind, PlatformK8sSpecRule, PlatformNamespace, PlatformNamespaceEvent, PlatformProposalComment, PlatformProposal, PlatformProposalFileView, PlatformProposalReaction, PlatformProposalReview, PlatformProposalsChunk, PlatformRegistryBinding, PlatformRegistry, PlatformRegistryGrant, PlatformRepository, PlatformRepositoryEvent, PlatformRepositoryRequiredCheck, PlatformRepositoryWorkflow, PlatformResource, PlatformResourceDeclaredCapacity, PlatformResourceDefinition, PlatformResourceEvent, PlatformResourceInstallation, PlatformResourceObservedStorage, PlatformResourceStatusCheck, PlatformResourceUsageLog, PlatformResourceUsageSummary, PlatformResourceUtilization, PlatformResourcesHealth, PlatformResourcesRequirementsState, PlatformResourcesResolvedRequirement, PlatformWebhookEndpoint, PlatformWebhookEvent, ProposalComment, Proposal, ProposalFileView, ProposalReaction, ProposalReview, ProposalsChunk, RegistryBinding, Registry, RegistryGrant, Repository, RepositoryEvent, RepositoryRequiredCheck, RepositoryWorkflow, Resource, ResourceDeclaredCapacity, ResourceDefinition, ResourceEvent, ResourceInstallation, ResourceObservedStorage, 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 968d643276..b8fd4c79b2 100644 --- a/sdk/constructive-react/src/compute/hooks/invalidation.ts +++ b/sdk/constructive-react/src/compute/hooks/invalidation.ts @@ -15,7 +15,19 @@ import type { QueryClient } from '@tanstack/react-query'; import { + buildKeys, + buildStepKeys, + builderBindingKeys, contentPresetKeys, + databaseFunctionGraphKeys, + databaseFunctionGraphExecutionKeys, + databaseFunctionGraphExecutionNodeStateKeys, + databaseFunctionGraphExecutionOutputKeys, + databaseGraphCommitKeys, + databaseGraphGetAllTreeNodesRecordKeys, + databaseGraphObjectKeys, + databaseGraphRefKeys, + databaseGraphStoreKeys, dbPresetKeys, functionApiBindingKeys, functionCapabilityBindingKeys, @@ -34,6 +46,8 @@ import { functionInvocationAttemptKeys, functionInvocationKeys, getAllTreeNodesRecordKeys, + imageKeys, + imageGrantKeys, infraCommitKeys, infraGetAllTreeNodesRecordKeys, infraObjectKeys, @@ -42,6 +56,9 @@ import { integrationProviderKeys, namespaceKeys, namespaceEventKeys, + platformBuildKeys, + platformBuildStepKeys, + platformBuilderBindingKeys, platformFunctionApiBindingKeys, platformFunctionCapabilityBindingKeys, platformFunctionDefinitionKeys, @@ -50,18 +67,36 @@ import { platformFunctionExecutionLogKeys, platformFunctionInvocationAttemptKeys, platformFunctionInvocationKeys, + platformImageKeys, + platformImageGrantKeys, platformInfraCommitKeys, platformInfraGetAllTreeNodesRecordKeys, platformInfraObjectKeys, platformInfraRefKeys, platformInfraStoreKeys, + platformK8sResourceKindKeys, + platformK8sSpecRuleKeys, platformNamespaceKeys, platformNamespaceEventKeys, + platformProposalCommentKeys, + platformProposalKeys, + platformProposalFileViewKeys, + platformProposalReactionKeys, + platformProposalReviewKeys, + platformProposalsChunkKeys, + platformRegistryBindingKeys, + platformRegistryKeys, + platformRegistryGrantKeys, + platformRepositoryKeys, + platformRepositoryEventKeys, + platformRepositoryRequiredCheckKeys, + platformRepositoryWorkflowKeys, platformResourceKeys, platformResourceDeclaredCapacityKeys, platformResourceDefinitionKeys, platformResourceEventKeys, platformResourceInstallationKeys, + platformResourceObservedStorageKeys, platformResourceStatusCheckKeys, platformResourceUsageLogKeys, platformResourceUsageSummaryKeys, @@ -71,11 +106,25 @@ import { platformResourcesResolvedRequirementKeys, platformWebhookEndpointKeys, platformWebhookEventKeys, + proposalCommentKeys, + proposalKeys, + proposalFileViewKeys, + proposalReactionKeys, + proposalReviewKeys, + proposalsChunkKeys, + registryBindingKeys, + registryKeys, + registryGrantKeys, + repositoryKeys, + repositoryEventKeys, + repositoryRequiredCheckKeys, + repositoryWorkflowKeys, resourceKeys, resourceDeclaredCapacityKeys, resourceDefinitionKeys, resourceEventKeys, resourceInstallationKeys, + resourceObservedStorageKeys, resourceStatusCheckKeys, resourceUsageLogKeys, resourceUsageSummaryKeys, @@ -106,6 +155,54 @@ import { * ``` */ export const invalidate = { + /** Invalidate build queries */ build: { + /** Invalidate all build queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: buildKeys.all, + }), + /** Invalidate build list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: buildKeys.lists(), + }), + /** Invalidate a specific build */ detail: (queryClient: QueryClient, id: string | number) => + queryClient.invalidateQueries({ + queryKey: buildKeys.detail(id), + }), + }, + /** Invalidate buildStep queries */ buildStep: { + /** Invalidate all buildStep queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: buildStepKeys.all, + }), + /** Invalidate buildStep list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: buildStepKeys.lists(), + }), + /** Invalidate a specific buildStep */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: buildStepKeys.detail(id), + }), + }, + /** Invalidate builderBinding queries */ builderBinding: { + /** Invalidate all builderBinding queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: builderBindingKeys.all, + }), + /** Invalidate builderBinding list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: builderBindingKeys.lists(), + }), + /** Invalidate a specific builderBinding */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: builderBindingKeys.detail(id), + }), + }, /** Invalidate contentPreset queries */ contentPreset: { /** Invalidate all contentPreset queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -123,6 +220,175 @@ export const invalidate = { queryKey: contentPresetKeys.detail(id), }), }, + /** Invalidate databaseFunctionGraph queries */ databaseFunctionGraph: { + /** Invalidate all databaseFunctionGraph queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: databaseFunctionGraphKeys.all, + }), + /** Invalidate databaseFunctionGraph list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: databaseFunctionGraphKeys.lists(), + }), + /** Invalidate a specific databaseFunctionGraph */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: databaseFunctionGraphKeys.detail(id), + }), + }, + /** Invalidate databaseFunctionGraphExecution queries */ databaseFunctionGraphExecution: { + /** Invalidate all databaseFunctionGraphExecution queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: databaseFunctionGraphExecutionKeys.all, + }), + /** Invalidate databaseFunctionGraphExecution list queries */ lists: ( + queryClient: QueryClient + ) => + queryClient.invalidateQueries({ + queryKey: databaseFunctionGraphExecutionKeys.lists(), + }), + /** Invalidate a specific databaseFunctionGraphExecution */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: databaseFunctionGraphExecutionKeys.detail(id), + }), + }, + /** Invalidate databaseFunctionGraphExecutionNodeState queries */ databaseFunctionGraphExecutionNodeState: + { + /** Invalidate all databaseFunctionGraphExecutionNodeState queries */ all: ( + queryClient: QueryClient + ) => + queryClient.invalidateQueries({ + queryKey: databaseFunctionGraphExecutionNodeStateKeys.all, + }), + /** Invalidate databaseFunctionGraphExecutionNodeState list queries */ lists: ( + queryClient: QueryClient + ) => + queryClient.invalidateQueries({ + queryKey: databaseFunctionGraphExecutionNodeStateKeys.lists(), + }), + /** Invalidate a specific databaseFunctionGraphExecutionNodeState */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: databaseFunctionGraphExecutionNodeStateKeys.detail(id), + }), + }, + /** Invalidate databaseFunctionGraphExecutionOutput queries */ databaseFunctionGraphExecutionOutput: + { + /** Invalidate all databaseFunctionGraphExecutionOutput queries */ all: ( + queryClient: QueryClient + ) => + queryClient.invalidateQueries({ + queryKey: databaseFunctionGraphExecutionOutputKeys.all, + }), + /** Invalidate databaseFunctionGraphExecutionOutput list queries */ lists: ( + queryClient: QueryClient + ) => + queryClient.invalidateQueries({ + queryKey: databaseFunctionGraphExecutionOutputKeys.lists(), + }), + /** Invalidate a specific databaseFunctionGraphExecutionOutput */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: databaseFunctionGraphExecutionOutputKeys.detail(id), + }), + }, + /** Invalidate databaseGraphCommit queries */ databaseGraphCommit: { + /** Invalidate all databaseGraphCommit queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: databaseGraphCommitKeys.all, + }), + /** Invalidate databaseGraphCommit list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: databaseGraphCommitKeys.lists(), + }), + /** Invalidate a specific databaseGraphCommit */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: databaseGraphCommitKeys.detail(id), + }), + }, + /** Invalidate databaseGraphGetAllTreeNodesRecord queries */ databaseGraphGetAllTreeNodesRecord: { + /** Invalidate all databaseGraphGetAllTreeNodesRecord queries */ all: ( + queryClient: QueryClient + ) => + queryClient.invalidateQueries({ + queryKey: databaseGraphGetAllTreeNodesRecordKeys.all, + }), + /** Invalidate databaseGraphGetAllTreeNodesRecord list queries */ lists: ( + queryClient: QueryClient + ) => + queryClient.invalidateQueries({ + queryKey: databaseGraphGetAllTreeNodesRecordKeys.lists(), + }), + /** Invalidate a specific databaseGraphGetAllTreeNodesRecord */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: databaseGraphGetAllTreeNodesRecordKeys.detail(id), + }), + }, + /** Invalidate databaseGraphObject queries */ databaseGraphObject: { + /** Invalidate all databaseGraphObject queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: databaseGraphObjectKeys.all, + }), + /** Invalidate databaseGraphObject list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: databaseGraphObjectKeys.lists(), + }), + /** Invalidate a specific databaseGraphObject */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: databaseGraphObjectKeys.detail(id), + }), + }, + /** Invalidate databaseGraphRef queries */ databaseGraphRef: { + /** Invalidate all databaseGraphRef queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: databaseGraphRefKeys.all, + }), + /** Invalidate databaseGraphRef list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: databaseGraphRefKeys.lists(), + }), + /** Invalidate a specific databaseGraphRef */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: databaseGraphRefKeys.detail(id), + }), + }, + /** Invalidate databaseGraphStore queries */ databaseGraphStore: { + /** Invalidate all databaseGraphStore queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: databaseGraphStoreKeys.all, + }), + /** Invalidate databaseGraphStore list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: databaseGraphStoreKeys.lists(), + }), + /** Invalidate a specific databaseGraphStore */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: databaseGraphStoreKeys.detail(id), + }), + }, /** Invalidate dbPreset queries */ dbPreset: { /** Invalidate all dbPreset queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -428,6 +694,37 @@ export const invalidate = { queryKey: getAllTreeNodesRecordKeys.detail(id), }), }, + /** Invalidate image queries */ image: { + /** Invalidate all image queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: imageKeys.all, + }), + /** Invalidate image list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: imageKeys.lists(), + }), + /** Invalidate a specific image */ detail: (queryClient: QueryClient, id: string | number) => + queryClient.invalidateQueries({ + queryKey: imageKeys.detail(id), + }), + }, + /** Invalidate imageGrant queries */ imageGrant: { + /** Invalidate all imageGrant queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: imageGrantKeys.all, + }), + /** Invalidate imageGrant list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: imageGrantKeys.lists(), + }), + /** Invalidate a specific imageGrant */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: imageGrantKeys.detail(id), + }), + }, /** Invalidate infraCommit queries */ infraCommit: { /** Invalidate all infraCommit queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -561,6 +858,57 @@ export const invalidate = { queryKey: namespaceEventKeys.detail(id), }), }, + /** Invalidate platformBuild queries */ platformBuild: { + /** Invalidate all platformBuild queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformBuildKeys.all, + }), + /** Invalidate platformBuild list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformBuildKeys.lists(), + }), + /** Invalidate a specific platformBuild */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: platformBuildKeys.detail(id), + }), + }, + /** Invalidate platformBuildStep queries */ platformBuildStep: { + /** Invalidate all platformBuildStep queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformBuildStepKeys.all, + }), + /** Invalidate platformBuildStep list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformBuildStepKeys.lists(), + }), + /** Invalidate a specific platformBuildStep */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: platformBuildStepKeys.detail(id), + }), + }, + /** Invalidate platformBuilderBinding queries */ platformBuilderBinding: { + /** Invalidate all platformBuilderBinding queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformBuilderBindingKeys.all, + }), + /** Invalidate platformBuilderBinding list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformBuilderBindingKeys.lists(), + }), + /** Invalidate a specific platformBuilderBinding */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: platformBuilderBindingKeys.detail(id), + }), + }, /** Invalidate platformFunctionApiBinding queries */ platformFunctionApiBinding: { /** Invalidate all platformFunctionApiBinding queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -707,6 +1055,40 @@ export const invalidate = { queryKey: platformFunctionInvocationKeys.detail(id), }), }, + /** Invalidate platformImage queries */ platformImage: { + /** Invalidate all platformImage queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformImageKeys.all, + }), + /** Invalidate platformImage list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformImageKeys.lists(), + }), + /** Invalidate a specific platformImage */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: platformImageKeys.detail(id), + }), + }, + /** Invalidate platformImageGrant queries */ platformImageGrant: { + /** Invalidate all platformImageGrant queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformImageGrantKeys.all, + }), + /** Invalidate platformImageGrant list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformImageGrantKeys.lists(), + }), + /** Invalidate a specific platformImageGrant */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: platformImageGrantKeys.detail(id), + }), + }, /** Invalidate platformInfraCommit queries */ platformInfraCommit: { /** Invalidate all platformInfraCommit queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -796,6 +1178,40 @@ export const invalidate = { queryKey: platformInfraStoreKeys.detail(id), }), }, + /** Invalidate platformK8sResourceKind queries */ platformK8sResourceKind: { + /** Invalidate all platformK8sResourceKind queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformK8sResourceKindKeys.all, + }), + /** Invalidate platformK8sResourceKind list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformK8sResourceKindKeys.lists(), + }), + /** Invalidate a specific platformK8sResourceKind */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: platformK8sResourceKindKeys.detail(id), + }), + }, + /** Invalidate platformK8sSpecRule queries */ platformK8sSpecRule: { + /** Invalidate all platformK8sSpecRule queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformK8sSpecRuleKeys.all, + }), + /** Invalidate platformK8sSpecRule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformK8sSpecRuleKeys.lists(), + }), + /** Invalidate a specific platformK8sSpecRule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: platformK8sSpecRuleKeys.detail(id), + }), + }, /** Invalidate platformNamespace queries */ platformNamespace: { /** Invalidate all platformNamespace queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -830,84 +1246,307 @@ export const invalidate = { queryKey: platformNamespaceEventKeys.detail(id), }), }, - /** Invalidate platformResource queries */ platformResource: { - /** Invalidate all platformResource queries */ all: (queryClient: QueryClient) => + /** Invalidate platformProposalComment queries */ platformProposalComment: { + /** Invalidate all platformProposalComment queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: platformResourceKeys.all, + queryKey: platformProposalCommentKeys.all, }), - /** Invalidate platformResource list queries */ lists: (queryClient: QueryClient) => + /** Invalidate platformProposalComment list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: platformResourceKeys.lists(), + queryKey: platformProposalCommentKeys.lists(), }), - /** Invalidate a specific platformResource */ detail: ( + /** Invalidate a specific platformProposalComment */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: platformResourceKeys.detail(id), + queryKey: platformProposalCommentKeys.detail(id), }), }, - /** Invalidate platformResourceDeclaredCapacity queries */ platformResourceDeclaredCapacity: { - /** Invalidate all platformResourceDeclaredCapacity queries */ all: ( - queryClient: QueryClient - ) => + /** Invalidate platformProposal queries */ platformProposal: { + /** Invalidate all platformProposal queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: platformResourceDeclaredCapacityKeys.all, + queryKey: platformProposalKeys.all, }), - /** Invalidate platformResourceDeclaredCapacity list queries */ lists: ( - queryClient: QueryClient - ) => + /** Invalidate platformProposal list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: platformResourceDeclaredCapacityKeys.lists(), + queryKey: platformProposalKeys.lists(), }), - /** Invalidate a specific platformResourceDeclaredCapacity */ detail: ( + /** Invalidate a specific platformProposal */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: platformResourceDeclaredCapacityKeys.detail(id), + queryKey: platformProposalKeys.detail(id), }), }, - /** Invalidate platformResourceDefinition queries */ platformResourceDefinition: { - /** Invalidate all platformResourceDefinition queries */ all: (queryClient: QueryClient) => + /** Invalidate platformProposalFileView queries */ platformProposalFileView: { + /** Invalidate all platformProposalFileView queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: platformResourceDefinitionKeys.all, + queryKey: platformProposalFileViewKeys.all, }), - /** Invalidate platformResourceDefinition list queries */ lists: (queryClient: QueryClient) => + /** Invalidate platformProposalFileView list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: platformResourceDefinitionKeys.lists(), + queryKey: platformProposalFileViewKeys.lists(), }), - /** Invalidate a specific platformResourceDefinition */ detail: ( + /** Invalidate a specific platformProposalFileView */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: platformResourceDefinitionKeys.detail(id), + queryKey: platformProposalFileViewKeys.detail(id), }), }, - /** Invalidate platformResourceEvent queries */ platformResourceEvent: { - /** Invalidate all platformResourceEvent queries */ all: (queryClient: QueryClient) => + /** Invalidate platformProposalReaction queries */ platformProposalReaction: { + /** Invalidate all platformProposalReaction queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: platformResourceEventKeys.all, + queryKey: platformProposalReactionKeys.all, }), - /** Invalidate platformResourceEvent list queries */ lists: (queryClient: QueryClient) => + /** Invalidate platformProposalReaction list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: platformResourceEventKeys.lists(), + queryKey: platformProposalReactionKeys.lists(), }), - /** Invalidate a specific platformResourceEvent */ detail: ( + /** Invalidate a specific platformProposalReaction */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: platformResourceEventKeys.detail(id), + queryKey: platformProposalReactionKeys.detail(id), }), }, - /** Invalidate platformResourceInstallation queries */ platformResourceInstallation: { - /** Invalidate all platformResourceInstallation queries */ all: (queryClient: QueryClient) => + /** Invalidate platformProposalReview queries */ platformProposalReview: { + /** Invalidate all platformProposalReview queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: platformResourceInstallationKeys.all, + queryKey: platformProposalReviewKeys.all, }), - /** Invalidate platformResourceInstallation list queries */ lists: (queryClient: QueryClient) => + /** Invalidate platformProposalReview list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformProposalReviewKeys.lists(), + }), + /** Invalidate a specific platformProposalReview */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: platformProposalReviewKeys.detail(id), + }), + }, + /** Invalidate platformProposalsChunk queries */ platformProposalsChunk: { + /** Invalidate all platformProposalsChunk queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformProposalsChunkKeys.all, + }), + /** Invalidate platformProposalsChunk list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformProposalsChunkKeys.lists(), + }), + /** Invalidate a specific platformProposalsChunk */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: platformProposalsChunkKeys.detail(id), + }), + }, + /** Invalidate platformRegistryBinding queries */ platformRegistryBinding: { + /** Invalidate all platformRegistryBinding queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformRegistryBindingKeys.all, + }), + /** Invalidate platformRegistryBinding list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformRegistryBindingKeys.lists(), + }), + /** Invalidate a specific platformRegistryBinding */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: platformRegistryBindingKeys.detail(id), + }), + }, + /** Invalidate platformRegistry queries */ platformRegistry: { + /** Invalidate all platformRegistry queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformRegistryKeys.all, + }), + /** Invalidate platformRegistry list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformRegistryKeys.lists(), + }), + /** Invalidate a specific platformRegistry */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: platformRegistryKeys.detail(id), + }), + }, + /** Invalidate platformRegistryGrant queries */ platformRegistryGrant: { + /** Invalidate all platformRegistryGrant queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformRegistryGrantKeys.all, + }), + /** Invalidate platformRegistryGrant list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformRegistryGrantKeys.lists(), + }), + /** Invalidate a specific platformRegistryGrant */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: platformRegistryGrantKeys.detail(id), + }), + }, + /** Invalidate platformRepository queries */ platformRepository: { + /** Invalidate all platformRepository queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformRepositoryKeys.all, + }), + /** Invalidate platformRepository list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformRepositoryKeys.lists(), + }), + /** Invalidate a specific platformRepository */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: platformRepositoryKeys.detail(id), + }), + }, + /** Invalidate platformRepositoryEvent queries */ platformRepositoryEvent: { + /** Invalidate all platformRepositoryEvent queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformRepositoryEventKeys.all, + }), + /** Invalidate platformRepositoryEvent list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformRepositoryEventKeys.lists(), + }), + /** Invalidate a specific platformRepositoryEvent */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: platformRepositoryEventKeys.detail(id), + }), + }, + /** Invalidate platformRepositoryRequiredCheck queries */ platformRepositoryRequiredCheck: { + /** Invalidate all platformRepositoryRequiredCheck queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformRepositoryRequiredCheckKeys.all, + }), + /** Invalidate platformRepositoryRequiredCheck list queries */ lists: ( + queryClient: QueryClient + ) => + queryClient.invalidateQueries({ + queryKey: platformRepositoryRequiredCheckKeys.lists(), + }), + /** Invalidate a specific platformRepositoryRequiredCheck */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: platformRepositoryRequiredCheckKeys.detail(id), + }), + }, + /** Invalidate platformRepositoryWorkflow queries */ platformRepositoryWorkflow: { + /** Invalidate all platformRepositoryWorkflow queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformRepositoryWorkflowKeys.all, + }), + /** Invalidate platformRepositoryWorkflow list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformRepositoryWorkflowKeys.lists(), + }), + /** Invalidate a specific platformRepositoryWorkflow */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: platformRepositoryWorkflowKeys.detail(id), + }), + }, + /** Invalidate platformResource queries */ platformResource: { + /** Invalidate all platformResource queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformResourceKeys.all, + }), + /** Invalidate platformResource list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformResourceKeys.lists(), + }), + /** Invalidate a specific platformResource */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: platformResourceKeys.detail(id), + }), + }, + /** Invalidate platformResourceDeclaredCapacity queries */ platformResourceDeclaredCapacity: { + /** Invalidate all platformResourceDeclaredCapacity queries */ all: ( + queryClient: QueryClient + ) => + queryClient.invalidateQueries({ + queryKey: platformResourceDeclaredCapacityKeys.all, + }), + /** Invalidate platformResourceDeclaredCapacity list queries */ lists: ( + queryClient: QueryClient + ) => + queryClient.invalidateQueries({ + queryKey: platformResourceDeclaredCapacityKeys.lists(), + }), + /** Invalidate a specific platformResourceDeclaredCapacity */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: platformResourceDeclaredCapacityKeys.detail(id), + }), + }, + /** Invalidate platformResourceDefinition queries */ platformResourceDefinition: { + /** Invalidate all platformResourceDefinition queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformResourceDefinitionKeys.all, + }), + /** Invalidate platformResourceDefinition list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformResourceDefinitionKeys.lists(), + }), + /** Invalidate a specific platformResourceDefinition */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: platformResourceDefinitionKeys.detail(id), + }), + }, + /** Invalidate platformResourceEvent queries */ platformResourceEvent: { + /** Invalidate all platformResourceEvent queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformResourceEventKeys.all, + }), + /** Invalidate platformResourceEvent list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformResourceEventKeys.lists(), + }), + /** Invalidate a specific platformResourceEvent */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: platformResourceEventKeys.detail(id), + }), + }, + /** Invalidate platformResourceInstallation queries */ platformResourceInstallation: { + /** Invalidate all platformResourceInstallation queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformResourceInstallationKeys.all, + }), + /** Invalidate platformResourceInstallation list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ queryKey: platformResourceInstallationKeys.lists(), }), @@ -919,6 +1558,25 @@ export const invalidate = { queryKey: platformResourceInstallationKeys.detail(id), }), }, + /** Invalidate platformResourceObservedStorage queries */ platformResourceObservedStorage: { + /** Invalidate all platformResourceObservedStorage queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformResourceObservedStorageKeys.all, + }), + /** Invalidate platformResourceObservedStorage list queries */ lists: ( + queryClient: QueryClient + ) => + queryClient.invalidateQueries({ + queryKey: platformResourceObservedStorageKeys.lists(), + }), + /** Invalidate a specific platformResourceObservedStorage */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: platformResourceObservedStorageKeys.detail(id), + }), + }, /** Invalidate platformResourceStatusCheck queries */ platformResourceStatusCheck: { /** Invalidate all platformResourceStatusCheck queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -1081,6 +1739,221 @@ export const invalidate = { queryKey: platformWebhookEventKeys.detail(id), }), }, + /** Invalidate proposalComment queries */ proposalComment: { + /** Invalidate all proposalComment queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: proposalCommentKeys.all, + }), + /** Invalidate proposalComment list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: proposalCommentKeys.lists(), + }), + /** Invalidate a specific proposalComment */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: proposalCommentKeys.detail(id), + }), + }, + /** Invalidate proposal queries */ proposal: { + /** Invalidate all proposal queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: proposalKeys.all, + }), + /** Invalidate proposal list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: proposalKeys.lists(), + }), + /** Invalidate a specific proposal */ detail: (queryClient: QueryClient, id: string | number) => + queryClient.invalidateQueries({ + queryKey: proposalKeys.detail(id), + }), + }, + /** Invalidate proposalFileView queries */ proposalFileView: { + /** Invalidate all proposalFileView queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: proposalFileViewKeys.all, + }), + /** Invalidate proposalFileView list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: proposalFileViewKeys.lists(), + }), + /** Invalidate a specific proposalFileView */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: proposalFileViewKeys.detail(id), + }), + }, + /** Invalidate proposalReaction queries */ proposalReaction: { + /** Invalidate all proposalReaction queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: proposalReactionKeys.all, + }), + /** Invalidate proposalReaction list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: proposalReactionKeys.lists(), + }), + /** Invalidate a specific proposalReaction */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: proposalReactionKeys.detail(id), + }), + }, + /** Invalidate proposalReview queries */ proposalReview: { + /** Invalidate all proposalReview queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: proposalReviewKeys.all, + }), + /** Invalidate proposalReview list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: proposalReviewKeys.lists(), + }), + /** Invalidate a specific proposalReview */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: proposalReviewKeys.detail(id), + }), + }, + /** Invalidate proposalsChunk queries */ proposalsChunk: { + /** Invalidate all proposalsChunk queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: proposalsChunkKeys.all, + }), + /** Invalidate proposalsChunk list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: proposalsChunkKeys.lists(), + }), + /** Invalidate a specific proposalsChunk */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: proposalsChunkKeys.detail(id), + }), + }, + /** Invalidate registryBinding queries */ registryBinding: { + /** Invalidate all registryBinding queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: registryBindingKeys.all, + }), + /** Invalidate registryBinding list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: registryBindingKeys.lists(), + }), + /** Invalidate a specific registryBinding */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: registryBindingKeys.detail(id), + }), + }, + /** Invalidate registry queries */ registry: { + /** Invalidate all registry queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: registryKeys.all, + }), + /** Invalidate registry list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: registryKeys.lists(), + }), + /** Invalidate a specific registry */ detail: (queryClient: QueryClient, id: string | number) => + queryClient.invalidateQueries({ + queryKey: registryKeys.detail(id), + }), + }, + /** Invalidate registryGrant queries */ registryGrant: { + /** Invalidate all registryGrant queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: registryGrantKeys.all, + }), + /** Invalidate registryGrant list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: registryGrantKeys.lists(), + }), + /** Invalidate a specific registryGrant */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: registryGrantKeys.detail(id), + }), + }, + /** Invalidate repository queries */ repository: { + /** Invalidate all repository queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: repositoryKeys.all, + }), + /** Invalidate repository list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: repositoryKeys.lists(), + }), + /** Invalidate a specific repository */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: repositoryKeys.detail(id), + }), + }, + /** Invalidate repositoryEvent queries */ repositoryEvent: { + /** Invalidate all repositoryEvent queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: repositoryEventKeys.all, + }), + /** Invalidate repositoryEvent list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: repositoryEventKeys.lists(), + }), + /** Invalidate a specific repositoryEvent */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: repositoryEventKeys.detail(id), + }), + }, + /** Invalidate repositoryRequiredCheck queries */ repositoryRequiredCheck: { + /** Invalidate all repositoryRequiredCheck queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: repositoryRequiredCheckKeys.all, + }), + /** Invalidate repositoryRequiredCheck list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: repositoryRequiredCheckKeys.lists(), + }), + /** Invalidate a specific repositoryRequiredCheck */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: repositoryRequiredCheckKeys.detail(id), + }), + }, + /** Invalidate repositoryWorkflow queries */ repositoryWorkflow: { + /** Invalidate all repositoryWorkflow queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: repositoryWorkflowKeys.all, + }), + /** Invalidate repositoryWorkflow list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: repositoryWorkflowKeys.lists(), + }), + /** Invalidate a specific repositoryWorkflow */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: repositoryWorkflowKeys.detail(id), + }), + }, /** Invalidate resource queries */ resource: { /** Invalidate all resource queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -1163,6 +2036,23 @@ export const invalidate = { queryKey: resourceInstallationKeys.detail(id), }), }, + /** Invalidate resourceObservedStorage queries */ resourceObservedStorage: { + /** Invalidate all resourceObservedStorage queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: resourceObservedStorageKeys.all, + }), + /** Invalidate resourceObservedStorage list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: resourceObservedStorageKeys.lists(), + }), + /** Invalidate a specific resourceObservedStorage */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: resourceObservedStorageKeys.detail(id), + }), + }, /** Invalidate resourceStatusCheck queries */ resourceStatusCheck: { /** Invalidate all resourceStatusCheck queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -1299,42 +2189,128 @@ export const invalidate = { queryKey: webhookEndpointKeys.detail(id), }), }, - /** Invalidate webhookEvent queries */ webhookEvent: { - /** Invalidate all webhookEvent queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: webhookEventKeys.all, - }), - /** Invalidate webhookEvent list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: webhookEventKeys.lists(), - }), - /** Invalidate a specific webhookEvent */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: webhookEventKeys.detail(id), - }), + /** Invalidate webhookEvent queries */ webhookEvent: { + /** Invalidate all webhookEvent queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: webhookEventKeys.all, + }), + /** Invalidate webhookEvent list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: webhookEventKeys.lists(), + }), + /** Invalidate a specific webhookEvent */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: webhookEventKeys.detail(id), + }), + }, +} as const; +/** + +// ============================================================================ +// Remove Helpers (for delete operations) +// ============================================================================ + + * Remove queries from cache (for delete operations) + * + * Use these when an entity is deleted to remove it from cache + * instead of just invalidating (which would trigger a refetch). + */ +export const remove = { + /** Remove build from cache */ build: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: buildKeys.detail(id), + }); + }, + /** Remove buildStep from cache */ buildStep: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: buildStepKeys.detail(id), + }); + }, + /** Remove builderBinding from cache */ builderBinding: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: builderBindingKeys.detail(id), + }); + }, + /** Remove contentPreset from cache */ contentPreset: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: contentPresetKeys.detail(id), + }); + }, + /** Remove databaseFunctionGraph from cache */ databaseFunctionGraph: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: databaseFunctionGraphKeys.detail(id), + }); + }, + /** Remove databaseFunctionGraphExecution from cache */ databaseFunctionGraphExecution: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: databaseFunctionGraphExecutionKeys.detail(id), + }); + }, + /** Remove databaseFunctionGraphExecutionNodeState from cache */ databaseFunctionGraphExecutionNodeState: + (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: databaseFunctionGraphExecutionNodeStateKeys.detail(id), + }); + }, + /** Remove databaseFunctionGraphExecutionOutput from cache */ databaseFunctionGraphExecutionOutput: + (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: databaseFunctionGraphExecutionOutputKeys.detail(id), + }); + }, + /** Remove databaseGraphCommit from cache */ databaseGraphCommit: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: databaseGraphCommitKeys.detail(id), + }); + }, + /** Remove databaseGraphGetAllTreeNodesRecord from cache */ databaseGraphGetAllTreeNodesRecord: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: databaseGraphGetAllTreeNodesRecordKeys.detail(id), + }); + }, + /** Remove databaseGraphObject from cache */ databaseGraphObject: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: databaseGraphObjectKeys.detail(id), + }); }, -} as const; -/** - -// ============================================================================ -// Remove Helpers (for delete operations) -// ============================================================================ - - * Remove queries from cache (for delete operations) - * - * Use these when an entity is deleted to remove it from cache - * instead of just invalidating (which would trigger a refetch). - */ -export const remove = { - /** Remove contentPreset from cache */ contentPreset: ( + /** Remove databaseGraphRef from cache */ databaseGraphRef: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: contentPresetKeys.detail(id), + queryKey: databaseGraphRefKeys.detail(id), + }); + }, + /** Remove databaseGraphStore from cache */ databaseGraphStore: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: databaseGraphStoreKeys.detail(id), }); }, /** Remove dbPreset from cache */ dbPreset: (queryClient: QueryClient, id: string | number) => { @@ -1478,6 +2454,19 @@ export const remove = { queryKey: getAllTreeNodesRecordKeys.detail(id), }); }, + /** Remove image from cache */ image: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: imageKeys.detail(id), + }); + }, + /** Remove imageGrant from cache */ imageGrant: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: imageGrantKeys.detail(id), + }); + }, /** Remove infraCommit from cache */ infraCommit: ( queryClient: QueryClient, id: string | number @@ -1536,6 +2525,30 @@ export const remove = { queryKey: namespaceEventKeys.detail(id), }); }, + /** Remove platformBuild from cache */ platformBuild: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: platformBuildKeys.detail(id), + }); + }, + /** Remove platformBuildStep from cache */ platformBuildStep: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: platformBuildStepKeys.detail(id), + }); + }, + /** Remove platformBuilderBinding from cache */ platformBuilderBinding: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: platformBuilderBindingKeys.detail(id), + }); + }, /** Remove platformFunctionApiBinding from cache */ platformFunctionApiBinding: ( queryClient: QueryClient, id: string | number @@ -1600,6 +2613,22 @@ export const remove = { queryKey: platformFunctionInvocationKeys.detail(id), }); }, + /** Remove platformImage from cache */ platformImage: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: platformImageKeys.detail(id), + }); + }, + /** Remove platformImageGrant from cache */ platformImageGrant: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: platformImageGrantKeys.detail(id), + }); + }, /** Remove platformInfraCommit from cache */ platformInfraCommit: ( queryClient: QueryClient, id: string | number @@ -1640,6 +2669,22 @@ export const remove = { queryKey: platformInfraStoreKeys.detail(id), }); }, + /** Remove platformK8sResourceKind from cache */ platformK8sResourceKind: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: platformK8sResourceKindKeys.detail(id), + }); + }, + /** Remove platformK8sSpecRule from cache */ platformK8sSpecRule: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: platformK8sSpecRuleKeys.detail(id), + }); + }, /** Remove platformNamespace from cache */ platformNamespace: ( queryClient: QueryClient, id: string | number @@ -1656,6 +2701,110 @@ export const remove = { queryKey: platformNamespaceEventKeys.detail(id), }); }, + /** Remove platformProposalComment from cache */ platformProposalComment: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: platformProposalCommentKeys.detail(id), + }); + }, + /** Remove platformProposal from cache */ platformProposal: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: platformProposalKeys.detail(id), + }); + }, + /** Remove platformProposalFileView from cache */ platformProposalFileView: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: platformProposalFileViewKeys.detail(id), + }); + }, + /** Remove platformProposalReaction from cache */ platformProposalReaction: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: platformProposalReactionKeys.detail(id), + }); + }, + /** Remove platformProposalReview from cache */ platformProposalReview: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: platformProposalReviewKeys.detail(id), + }); + }, + /** Remove platformProposalsChunk from cache */ platformProposalsChunk: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: platformProposalsChunkKeys.detail(id), + }); + }, + /** Remove platformRegistryBinding from cache */ platformRegistryBinding: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: platformRegistryBindingKeys.detail(id), + }); + }, + /** Remove platformRegistry from cache */ platformRegistry: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: platformRegistryKeys.detail(id), + }); + }, + /** Remove platformRegistryGrant from cache */ platformRegistryGrant: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: platformRegistryGrantKeys.detail(id), + }); + }, + /** Remove platformRepository from cache */ platformRepository: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: platformRepositoryKeys.detail(id), + }); + }, + /** Remove platformRepositoryEvent from cache */ platformRepositoryEvent: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: platformRepositoryEventKeys.detail(id), + }); + }, + /** Remove platformRepositoryRequiredCheck from cache */ platformRepositoryRequiredCheck: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: platformRepositoryRequiredCheckKeys.detail(id), + }); + }, + /** Remove platformRepositoryWorkflow from cache */ platformRepositoryWorkflow: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: platformRepositoryWorkflowKeys.detail(id), + }); + }, /** Remove platformResource from cache */ platformResource: ( queryClient: QueryClient, id: string | number @@ -1696,6 +2845,14 @@ export const remove = { queryKey: platformResourceInstallationKeys.detail(id), }); }, + /** Remove platformResourceObservedStorage from cache */ platformResourceObservedStorage: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: platformResourceObservedStorageKeys.detail(id), + }); + }, /** Remove platformResourceStatusCheck from cache */ platformResourceStatusCheck: ( queryClient: QueryClient, id: string | number @@ -1766,6 +2923,104 @@ export const remove = { queryKey: platformWebhookEventKeys.detail(id), }); }, + /** Remove proposalComment from cache */ proposalComment: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: proposalCommentKeys.detail(id), + }); + }, + /** Remove proposal from cache */ proposal: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: proposalKeys.detail(id), + }); + }, + /** Remove proposalFileView from cache */ proposalFileView: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: proposalFileViewKeys.detail(id), + }); + }, + /** Remove proposalReaction from cache */ proposalReaction: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: proposalReactionKeys.detail(id), + }); + }, + /** Remove proposalReview from cache */ proposalReview: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: proposalReviewKeys.detail(id), + }); + }, + /** Remove proposalsChunk from cache */ proposalsChunk: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: proposalsChunkKeys.detail(id), + }); + }, + /** Remove registryBinding from cache */ registryBinding: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: registryBindingKeys.detail(id), + }); + }, + /** Remove registry from cache */ registry: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: registryKeys.detail(id), + }); + }, + /** Remove registryGrant from cache */ registryGrant: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: registryGrantKeys.detail(id), + }); + }, + /** Remove repository from cache */ repository: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: repositoryKeys.detail(id), + }); + }, + /** Remove repositoryEvent from cache */ repositoryEvent: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: repositoryEventKeys.detail(id), + }); + }, + /** Remove repositoryRequiredCheck from cache */ repositoryRequiredCheck: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: repositoryRequiredCheckKeys.detail(id), + }); + }, + /** Remove repositoryWorkflow from cache */ repositoryWorkflow: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: repositoryWorkflowKeys.detail(id), + }); + }, /** Remove resource from cache */ resource: (queryClient: QueryClient, id: string | number) => { queryClient.removeQueries({ queryKey: resourceKeys.detail(id), @@ -1803,6 +3058,14 @@ export const remove = { queryKey: resourceInstallationKeys.detail(id), }); }, + /** Remove resourceObservedStorage from cache */ resourceObservedStorage: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: resourceObservedStorageKeys.detail(id), + }); + }, /** Remove resourceStatusCheck from cache */ resourceStatusCheck: ( queryClient: QueryClient, id: string | number diff --git a/sdk/constructive-react/src/compute/hooks/mutation-keys.ts b/sdk/constructive-react/src/compute/hooks/mutation-keys.ts index 2f18965532..79410c87de 100644 --- a/sdk/constructive-react/src/compute/hooks/mutation-keys.ts +++ b/sdk/constructive-react/src/compute/hooks/mutation-keys.ts @@ -18,6 +18,31 @@ // Entity Mutation Keys // ============================================================================ +export const buildMutationKeys = { + /** All build mutation keys */ all: ['mutation', 'build'] as const, + /** Create build mutation key */ create: () => ['mutation', 'build', 'create'] as const, + /** Update build mutation key */ update: (id: string | number) => + ['mutation', 'build', 'update', id] as const, + /** Delete build mutation key */ delete: (id: string | number) => + ['mutation', 'build', 'delete', id] as const, +} as const; +export const buildStepMutationKeys = { + /** All buildStep mutation keys */ all: ['mutation', 'buildstep'] as const, + /** Create buildStep mutation key */ create: () => ['mutation', 'buildstep', 'create'] as const, + /** Update buildStep mutation key */ update: (id: string | number) => + ['mutation', 'buildstep', 'update', id] as const, + /** Delete buildStep mutation key */ delete: (id: string | number) => + ['mutation', 'buildstep', 'delete', id] as const, +} as const; +export const builderBindingMutationKeys = { + /** All builderBinding mutation keys */ all: ['mutation', 'builderbinding'] as const, + /** Create builderBinding mutation key */ create: () => + ['mutation', 'builderbinding', 'create'] as const, + /** Update builderBinding mutation key */ update: (id: string | number) => + ['mutation', 'builderbinding', 'update', id] as const, + /** Delete builderBinding mutation key */ delete: (id: string | number) => + ['mutation', 'builderbinding', 'delete', id] as const, +} as const; export const contentPresetMutationKeys = { /** All contentPreset mutation keys */ all: ['mutation', 'contentpreset'] as const, /** Create contentPreset mutation key */ create: () => @@ -27,6 +52,104 @@ export const contentPresetMutationKeys = { /** Delete contentPreset mutation key */ delete: (id: string | number) => ['mutation', 'contentpreset', 'delete', id] as const, } as const; +export const databaseFunctionGraphMutationKeys = { + /** All databaseFunctionGraph mutation keys */ all: [ + 'mutation', + 'databasefunctiongraph', + ] as const, + /** Create databaseFunctionGraph mutation key */ create: () => + ['mutation', 'databasefunctiongraph', 'create'] as const, + /** Update databaseFunctionGraph mutation key */ update: (id: string | number) => + ['mutation', 'databasefunctiongraph', 'update', id] as const, + /** Delete databaseFunctionGraph mutation key */ delete: (id: string | number) => + ['mutation', 'databasefunctiongraph', 'delete', id] as const, +} as const; +export const databaseFunctionGraphExecutionMutationKeys = { + /** All databaseFunctionGraphExecution mutation keys */ all: [ + 'mutation', + 'databasefunctiongraphexecution', + ] as const, + /** Create databaseFunctionGraphExecution mutation key */ create: () => + ['mutation', 'databasefunctiongraphexecution', 'create'] as const, + /** Update databaseFunctionGraphExecution mutation key */ update: (id: string | number) => + ['mutation', 'databasefunctiongraphexecution', 'update', id] as const, + /** Delete databaseFunctionGraphExecution mutation key */ delete: (id: string | number) => + ['mutation', 'databasefunctiongraphexecution', 'delete', id] as const, +} as const; +export const databaseFunctionGraphExecutionNodeStateMutationKeys = { + /** All databaseFunctionGraphExecutionNodeState mutation keys */ all: [ + 'mutation', + 'databasefunctiongraphexecutionnodestate', + ] as const, + /** Create databaseFunctionGraphExecutionNodeState mutation key */ create: () => + ['mutation', 'databasefunctiongraphexecutionnodestate', 'create'] as const, + /** Update databaseFunctionGraphExecutionNodeState mutation key */ update: ( + id: string | number + ) => ['mutation', 'databasefunctiongraphexecutionnodestate', 'update', id] as const, + /** Delete databaseFunctionGraphExecutionNodeState mutation key */ delete: ( + id: string | number + ) => ['mutation', 'databasefunctiongraphexecutionnodestate', 'delete', id] as const, +} as const; +export const databaseFunctionGraphExecutionOutputMutationKeys = { + /** All databaseFunctionGraphExecutionOutput mutation keys */ all: [ + 'mutation', + 'databasefunctiongraphexecutionoutput', + ] as const, + /** Create databaseFunctionGraphExecutionOutput mutation key */ create: () => + ['mutation', 'databasefunctiongraphexecutionoutput', 'create'] as const, + /** Update databaseFunctionGraphExecutionOutput mutation key */ update: (id: string | number) => + ['mutation', 'databasefunctiongraphexecutionoutput', 'update', id] as const, + /** Delete databaseFunctionGraphExecutionOutput mutation key */ delete: (id: string | number) => + ['mutation', 'databasefunctiongraphexecutionoutput', 'delete', id] as const, +} as const; +export const databaseGraphCommitMutationKeys = { + /** All databaseGraphCommit mutation keys */ all: ['mutation', 'databasegraphcommit'] as const, + /** Create databaseGraphCommit mutation key */ create: () => + ['mutation', 'databasegraphcommit', 'create'] as const, + /** Update databaseGraphCommit mutation key */ update: (id: string | number) => + ['mutation', 'databasegraphcommit', 'update', id] as const, + /** Delete databaseGraphCommit mutation key */ delete: (id: string | number) => + ['mutation', 'databasegraphcommit', 'delete', id] as const, +} as const; +export const databaseGraphGetAllTreeNodesRecordMutationKeys = { + /** All databaseGraphGetAllTreeNodesRecord mutation keys */ all: [ + 'mutation', + 'databasegraphgetalltreenodesrecord', + ] as const, + /** Create databaseGraphGetAllTreeNodesRecord mutation key */ create: () => + ['mutation', 'databasegraphgetalltreenodesrecord', 'create'] as const, + /** Update databaseGraphGetAllTreeNodesRecord mutation key */ update: (id: string | number) => + ['mutation', 'databasegraphgetalltreenodesrecord', 'update', id] as const, + /** Delete databaseGraphGetAllTreeNodesRecord mutation key */ delete: (id: string | number) => + ['mutation', 'databasegraphgetalltreenodesrecord', 'delete', id] as const, +} as const; +export const databaseGraphObjectMutationKeys = { + /** All databaseGraphObject mutation keys */ all: ['mutation', 'databasegraphobject'] as const, + /** Create databaseGraphObject mutation key */ create: () => + ['mutation', 'databasegraphobject', 'create'] as const, + /** Update databaseGraphObject mutation key */ update: (id: string | number) => + ['mutation', 'databasegraphobject', 'update', id] as const, + /** Delete databaseGraphObject mutation key */ delete: (id: string | number) => + ['mutation', 'databasegraphobject', 'delete', id] as const, +} as const; +export const databaseGraphRefMutationKeys = { + /** All databaseGraphRef mutation keys */ all: ['mutation', 'databasegraphref'] as const, + /** Create databaseGraphRef mutation key */ create: () => + ['mutation', 'databasegraphref', 'create'] as const, + /** Update databaseGraphRef mutation key */ update: (id: string | number) => + ['mutation', 'databasegraphref', 'update', id] as const, + /** Delete databaseGraphRef mutation key */ delete: (id: string | number) => + ['mutation', 'databasegraphref', 'delete', id] as const, +} as const; +export const databaseGraphStoreMutationKeys = { + /** All databaseGraphStore mutation keys */ all: ['mutation', 'databasegraphstore'] as const, + /** Create databaseGraphStore mutation key */ create: () => + ['mutation', 'databasegraphstore', 'create'] as const, + /** Update databaseGraphStore mutation key */ update: (id: string | number) => + ['mutation', 'databasegraphstore', 'update', id] as const, + /** Delete databaseGraphStore mutation key */ delete: (id: string | number) => + ['mutation', 'databasegraphstore', '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, @@ -209,6 +332,22 @@ export const getAllTreeNodesRecordMutationKeys = { /** Delete getAllTreeNodesRecord mutation key */ delete: (id: string | number) => ['mutation', 'getalltreenodesrecord', 'delete', id] as const, } as const; +export const imageMutationKeys = { + /** All image mutation keys */ all: ['mutation', 'image'] as const, + /** Create image mutation key */ create: () => ['mutation', 'image', 'create'] as const, + /** Update image mutation key */ update: (id: string | number) => + ['mutation', 'image', 'update', id] as const, + /** Delete image mutation key */ delete: (id: string | number) => + ['mutation', 'image', 'delete', id] as const, +} as const; +export const imageGrantMutationKeys = { + /** All imageGrant mutation keys */ all: ['mutation', 'imagegrant'] as const, + /** Create imageGrant mutation key */ create: () => ['mutation', 'imagegrant', 'create'] as const, + /** Update imageGrant mutation key */ update: (id: string | number) => + ['mutation', 'imagegrant', 'update', id] as const, + /** Delete imageGrant mutation key */ delete: (id: string | number) => + ['mutation', 'imagegrant', 'delete', id] as const, +} as const; export const infraCommitMutationKeys = { /** All infraCommit mutation keys */ all: ['mutation', 'infracommit'] as const, /** Create infraCommit mutation key */ create: () => @@ -281,6 +420,36 @@ export const namespaceEventMutationKeys = { /** Delete namespaceEvent mutation key */ delete: (id: string | number) => ['mutation', 'namespaceevent', 'delete', id] as const, } as const; +export const platformBuildMutationKeys = { + /** All platformBuild mutation keys */ all: ['mutation', 'platformbuild'] as const, + /** Create platformBuild mutation key */ create: () => + ['mutation', 'platformbuild', 'create'] as const, + /** Update platformBuild mutation key */ update: (id: string | number) => + ['mutation', 'platformbuild', 'update', id] as const, + /** Delete platformBuild mutation key */ delete: (id: string | number) => + ['mutation', 'platformbuild', 'delete', id] as const, +} as const; +export const platformBuildStepMutationKeys = { + /** All platformBuildStep mutation keys */ all: ['mutation', 'platformbuildstep'] as const, + /** Create platformBuildStep mutation key */ create: () => + ['mutation', 'platformbuildstep', 'create'] as const, + /** Update platformBuildStep mutation key */ update: (id: string | number) => + ['mutation', 'platformbuildstep', 'update', id] as const, + /** Delete platformBuildStep mutation key */ delete: (id: string | number) => + ['mutation', 'platformbuildstep', 'delete', id] as const, +} as const; +export const platformBuilderBindingMutationKeys = { + /** All platformBuilderBinding mutation keys */ all: [ + 'mutation', + 'platformbuilderbinding', + ] as const, + /** Create platformBuilderBinding mutation key */ create: () => + ['mutation', 'platformbuilderbinding', 'create'] as const, + /** Update platformBuilderBinding mutation key */ update: (id: string | number) => + ['mutation', 'platformbuilderbinding', 'update', id] as const, + /** Delete platformBuilderBinding mutation key */ delete: (id: string | number) => + ['mutation', 'platformbuilderbinding', 'delete', id] as const, +} as const; export const platformFunctionApiBindingMutationKeys = { /** All platformFunctionApiBinding mutation keys */ all: [ 'mutation', @@ -377,6 +546,24 @@ export const platformFunctionInvocationMutationKeys = { /** Delete platformFunctionInvocation mutation key */ delete: (id: string | number) => ['mutation', 'platformfunctioninvocation', 'delete', id] as const, } as const; +export const platformImageMutationKeys = { + /** All platformImage mutation keys */ all: ['mutation', 'platformimage'] as const, + /** Create platformImage mutation key */ create: () => + ['mutation', 'platformimage', 'create'] as const, + /** Update platformImage mutation key */ update: (id: string | number) => + ['mutation', 'platformimage', 'update', id] as const, + /** Delete platformImage mutation key */ delete: (id: string | number) => + ['mutation', 'platformimage', 'delete', id] as const, +} as const; +export const platformImageGrantMutationKeys = { + /** All platformImageGrant mutation keys */ all: ['mutation', 'platformimagegrant'] as const, + /** Create platformImageGrant mutation key */ create: () => + ['mutation', 'platformimagegrant', 'create'] as const, + /** Update platformImageGrant mutation key */ update: (id: string | number) => + ['mutation', 'platformimagegrant', 'update', id] as const, + /** Delete platformImageGrant mutation key */ delete: (id: string | number) => + ['mutation', 'platformimagegrant', 'delete', id] as const, +} as const; export const platformInfraCommitMutationKeys = { /** All platformInfraCommit mutation keys */ all: ['mutation', 'platforminfracommit'] as const, /** Create platformInfraCommit mutation key */ create: () => @@ -425,6 +612,27 @@ export const platformInfraStoreMutationKeys = { /** Delete platformInfraStore mutation key */ delete: (id: string | number) => ['mutation', 'platforminfrastore', 'delete', id] as const, } as const; +export const platformK8sResourceKindMutationKeys = { + /** All platformK8sResourceKind mutation keys */ all: [ + 'mutation', + 'platformk8sresourcekind', + ] as const, + /** Create platformK8sResourceKind mutation key */ create: () => + ['mutation', 'platformk8sresourcekind', 'create'] as const, + /** Update platformK8sResourceKind mutation key */ update: (id: string | number) => + ['mutation', 'platformk8sresourcekind', 'update', id] as const, + /** Delete platformK8sResourceKind mutation key */ delete: (id: string | number) => + ['mutation', 'platformk8sresourcekind', 'delete', id] as const, +} as const; +export const platformK8sSpecRuleMutationKeys = { + /** All platformK8sSpecRule mutation keys */ all: ['mutation', 'platformk8sspecrule'] as const, + /** Create platformK8sSpecRule mutation key */ create: () => + ['mutation', 'platformk8sspecrule', 'create'] as const, + /** Update platformK8sSpecRule mutation key */ update: (id: string | number) => + ['mutation', 'platformk8sspecrule', 'update', id] as const, + /** Delete platformK8sSpecRule mutation key */ delete: (id: string | number) => + ['mutation', 'platformk8sspecrule', 'delete', id] as const, +} as const; export const platformNamespaceMutationKeys = { /** All platformNamespace mutation keys */ all: ['mutation', 'platformnamespace'] as const, /** Create platformNamespace mutation key */ create: () => @@ -446,6 +654,153 @@ export const platformNamespaceEventMutationKeys = { /** Delete platformNamespaceEvent mutation key */ delete: (id: string | number) => ['mutation', 'platformnamespaceevent', 'delete', id] as const, } as const; +export const platformProposalCommentMutationKeys = { + /** All platformProposalComment mutation keys */ all: [ + 'mutation', + 'platformproposalcomment', + ] as const, + /** Create platformProposalComment mutation key */ create: () => + ['mutation', 'platformproposalcomment', 'create'] as const, + /** Update platformProposalComment mutation key */ update: (id: string | number) => + ['mutation', 'platformproposalcomment', 'update', id] as const, + /** Delete platformProposalComment mutation key */ delete: (id: string | number) => + ['mutation', 'platformproposalcomment', 'delete', id] as const, +} as const; +export const platformProposalMutationKeys = { + /** All platformProposal mutation keys */ all: ['mutation', 'platformproposal'] as const, + /** Create platformProposal mutation key */ create: () => + ['mutation', 'platformproposal', 'create'] as const, + /** Update platformProposal mutation key */ update: (id: string | number) => + ['mutation', 'platformproposal', 'update', id] as const, + /** Delete platformProposal mutation key */ delete: (id: string | number) => + ['mutation', 'platformproposal', 'delete', id] as const, +} as const; +export const platformProposalFileViewMutationKeys = { + /** All platformProposalFileView mutation keys */ all: [ + 'mutation', + 'platformproposalfileview', + ] as const, + /** Create platformProposalFileView mutation key */ create: () => + ['mutation', 'platformproposalfileview', 'create'] as const, + /** Update platformProposalFileView mutation key */ update: (id: string | number) => + ['mutation', 'platformproposalfileview', 'update', id] as const, + /** Delete platformProposalFileView mutation key */ delete: (id: string | number) => + ['mutation', 'platformproposalfileview', 'delete', id] as const, +} as const; +export const platformProposalReactionMutationKeys = { + /** All platformProposalReaction mutation keys */ all: [ + 'mutation', + 'platformproposalreaction', + ] as const, + /** Create platformProposalReaction mutation key */ create: () => + ['mutation', 'platformproposalreaction', 'create'] as const, + /** Update platformProposalReaction mutation key */ update: (id: string | number) => + ['mutation', 'platformproposalreaction', 'update', id] as const, + /** Delete platformProposalReaction mutation key */ delete: (id: string | number) => + ['mutation', 'platformproposalreaction', 'delete', id] as const, +} as const; +export const platformProposalReviewMutationKeys = { + /** All platformProposalReview mutation keys */ all: [ + 'mutation', + 'platformproposalreview', + ] as const, + /** Create platformProposalReview mutation key */ create: () => + ['mutation', 'platformproposalreview', 'create'] as const, + /** Update platformProposalReview mutation key */ update: (id: string | number) => + ['mutation', 'platformproposalreview', 'update', id] as const, + /** Delete platformProposalReview mutation key */ delete: (id: string | number) => + ['mutation', 'platformproposalreview', 'delete', id] as const, +} as const; +export const platformProposalsChunkMutationKeys = { + /** All platformProposalsChunk mutation keys */ all: [ + 'mutation', + 'platformproposalschunk', + ] as const, + /** Create platformProposalsChunk mutation key */ create: () => + ['mutation', 'platformproposalschunk', 'create'] as const, + /** Update platformProposalsChunk mutation key */ update: (id: string | number) => + ['mutation', 'platformproposalschunk', 'update', id] as const, + /** Delete platformProposalsChunk mutation key */ delete: (id: string | number) => + ['mutation', 'platformproposalschunk', 'delete', id] as const, +} as const; +export const platformRegistryBindingMutationKeys = { + /** All platformRegistryBinding mutation keys */ all: [ + 'mutation', + 'platformregistrybinding', + ] as const, + /** Create platformRegistryBinding mutation key */ create: () => + ['mutation', 'platformregistrybinding', 'create'] as const, + /** Update platformRegistryBinding mutation key */ update: (id: string | number) => + ['mutation', 'platformregistrybinding', 'update', id] as const, + /** Delete platformRegistryBinding mutation key */ delete: (id: string | number) => + ['mutation', 'platformregistrybinding', 'delete', id] as const, +} as const; +export const platformRegistryMutationKeys = { + /** All platformRegistry mutation keys */ all: ['mutation', 'platformregistry'] as const, + /** Create platformRegistry mutation key */ create: () => + ['mutation', 'platformregistry', 'create'] as const, + /** Update platformRegistry mutation key */ update: (id: string | number) => + ['mutation', 'platformregistry', 'update', id] as const, + /** Delete platformRegistry mutation key */ delete: (id: string | number) => + ['mutation', 'platformregistry', 'delete', id] as const, +} as const; +export const platformRegistryGrantMutationKeys = { + /** All platformRegistryGrant mutation keys */ all: [ + 'mutation', + 'platformregistrygrant', + ] as const, + /** Create platformRegistryGrant mutation key */ create: () => + ['mutation', 'platformregistrygrant', 'create'] as const, + /** Update platformRegistryGrant mutation key */ update: (id: string | number) => + ['mutation', 'platformregistrygrant', 'update', id] as const, + /** Delete platformRegistryGrant mutation key */ delete: (id: string | number) => + ['mutation', 'platformregistrygrant', 'delete', id] as const, +} as const; +export const platformRepositoryMutationKeys = { + /** All platformRepository mutation keys */ all: ['mutation', 'platformrepository'] as const, + /** Create platformRepository mutation key */ create: () => + ['mutation', 'platformrepository', 'create'] as const, + /** Update platformRepository mutation key */ update: (id: string | number) => + ['mutation', 'platformrepository', 'update', id] as const, + /** Delete platformRepository mutation key */ delete: (id: string | number) => + ['mutation', 'platformrepository', 'delete', id] as const, +} as const; +export const platformRepositoryEventMutationKeys = { + /** All platformRepositoryEvent mutation keys */ all: [ + 'mutation', + 'platformrepositoryevent', + ] as const, + /** Create platformRepositoryEvent mutation key */ create: () => + ['mutation', 'platformrepositoryevent', 'create'] as const, + /** Update platformRepositoryEvent mutation key */ update: (id: string | number) => + ['mutation', 'platformrepositoryevent', 'update', id] as const, + /** Delete platformRepositoryEvent mutation key */ delete: (id: string | number) => + ['mutation', 'platformrepositoryevent', 'delete', id] as const, +} as const; +export const platformRepositoryRequiredCheckMutationKeys = { + /** All platformRepositoryRequiredCheck mutation keys */ all: [ + 'mutation', + 'platformrepositoryrequiredcheck', + ] as const, + /** Create platformRepositoryRequiredCheck mutation key */ create: () => + ['mutation', 'platformrepositoryrequiredcheck', 'create'] as const, + /** Update platformRepositoryRequiredCheck mutation key */ update: (id: string | number) => + ['mutation', 'platformrepositoryrequiredcheck', 'update', id] as const, + /** Delete platformRepositoryRequiredCheck mutation key */ delete: (id: string | number) => + ['mutation', 'platformrepositoryrequiredcheck', 'delete', id] as const, +} as const; +export const platformRepositoryWorkflowMutationKeys = { + /** All platformRepositoryWorkflow mutation keys */ all: [ + 'mutation', + 'platformrepositoryworkflow', + ] as const, + /** Create platformRepositoryWorkflow mutation key */ create: () => + ['mutation', 'platformrepositoryworkflow', 'create'] as const, + /** Update platformRepositoryWorkflow mutation key */ update: (id: string | number) => + ['mutation', 'platformrepositoryworkflow', 'update', id] as const, + /** Delete platformRepositoryWorkflow mutation key */ delete: (id: string | number) => + ['mutation', 'platformrepositoryworkflow', 'delete', id] as const, +} as const; export const platformResourceMutationKeys = { /** All platformResource mutation keys */ all: ['mutation', 'platformresource'] as const, /** Create platformResource mutation key */ create: () => @@ -503,6 +858,18 @@ export const platformResourceInstallationMutationKeys = { /** Delete platformResourceInstallation mutation key */ delete: (id: string | number) => ['mutation', 'platformresourceinstallation', 'delete', id] as const, } as const; +export const platformResourceObservedStorageMutationKeys = { + /** All platformResourceObservedStorage mutation keys */ all: [ + 'mutation', + 'platformresourceobservedstorage', + ] as const, + /** Create platformResourceObservedStorage mutation key */ create: () => + ['mutation', 'platformresourceobservedstorage', 'create'] as const, + /** Update platformResourceObservedStorage mutation key */ update: (id: string | number) => + ['mutation', 'platformresourceobservedstorage', 'update', id] as const, + /** Delete platformResourceObservedStorage mutation key */ delete: (id: string | number) => + ['mutation', 'platformresourceobservedstorage', 'delete', id] as const, +} as const; export const platformResourceStatusCheckMutationKeys = { /** All platformResourceStatusCheck mutation keys */ all: [ 'mutation', @@ -608,6 +975,123 @@ export const platformWebhookEventMutationKeys = { /** Delete platformWebhookEvent mutation key */ delete: (id: string | number) => ['mutation', 'platformwebhookevent', 'delete', id] as const, } as const; +export const proposalCommentMutationKeys = { + /** All proposalComment mutation keys */ all: ['mutation', 'proposalcomment'] as const, + /** Create proposalComment mutation key */ create: () => + ['mutation', 'proposalcomment', 'create'] as const, + /** Update proposalComment mutation key */ update: (id: string | number) => + ['mutation', 'proposalcomment', 'update', id] as const, + /** Delete proposalComment mutation key */ delete: (id: string | number) => + ['mutation', 'proposalcomment', 'delete', id] as const, +} as const; +export const proposalMutationKeys = { + /** All proposal mutation keys */ all: ['mutation', 'proposal'] as const, + /** Create proposal mutation key */ create: () => ['mutation', 'proposal', 'create'] as const, + /** Update proposal mutation key */ update: (id: string | number) => + ['mutation', 'proposal', 'update', id] as const, + /** Delete proposal mutation key */ delete: (id: string | number) => + ['mutation', 'proposal', 'delete', id] as const, +} as const; +export const proposalFileViewMutationKeys = { + /** All proposalFileView mutation keys */ all: ['mutation', 'proposalfileview'] as const, + /** Create proposalFileView mutation key */ create: () => + ['mutation', 'proposalfileview', 'create'] as const, + /** Update proposalFileView mutation key */ update: (id: string | number) => + ['mutation', 'proposalfileview', 'update', id] as const, + /** Delete proposalFileView mutation key */ delete: (id: string | number) => + ['mutation', 'proposalfileview', 'delete', id] as const, +} as const; +export const proposalReactionMutationKeys = { + /** All proposalReaction mutation keys */ all: ['mutation', 'proposalreaction'] as const, + /** Create proposalReaction mutation key */ create: () => + ['mutation', 'proposalreaction', 'create'] as const, + /** Update proposalReaction mutation key */ update: (id: string | number) => + ['mutation', 'proposalreaction', 'update', id] as const, + /** Delete proposalReaction mutation key */ delete: (id: string | number) => + ['mutation', 'proposalreaction', 'delete', id] as const, +} as const; +export const proposalReviewMutationKeys = { + /** All proposalReview mutation keys */ all: ['mutation', 'proposalreview'] as const, + /** Create proposalReview mutation key */ create: () => + ['mutation', 'proposalreview', 'create'] as const, + /** Update proposalReview mutation key */ update: (id: string | number) => + ['mutation', 'proposalreview', 'update', id] as const, + /** Delete proposalReview mutation key */ delete: (id: string | number) => + ['mutation', 'proposalreview', 'delete', id] as const, +} as const; +export const proposalsChunkMutationKeys = { + /** All proposalsChunk mutation keys */ all: ['mutation', 'proposalschunk'] as const, + /** Create proposalsChunk mutation key */ create: () => + ['mutation', 'proposalschunk', 'create'] as const, + /** Update proposalsChunk mutation key */ update: (id: string | number) => + ['mutation', 'proposalschunk', 'update', id] as const, + /** Delete proposalsChunk mutation key */ delete: (id: string | number) => + ['mutation', 'proposalschunk', 'delete', id] as const, +} as const; +export const registryBindingMutationKeys = { + /** All registryBinding mutation keys */ all: ['mutation', 'registrybinding'] as const, + /** Create registryBinding mutation key */ create: () => + ['mutation', 'registrybinding', 'create'] as const, + /** Update registryBinding mutation key */ update: (id: string | number) => + ['mutation', 'registrybinding', 'update', id] as const, + /** Delete registryBinding mutation key */ delete: (id: string | number) => + ['mutation', 'registrybinding', 'delete', id] as const, +} as const; +export const registryMutationKeys = { + /** All registry mutation keys */ all: ['mutation', 'registry'] as const, + /** Create registry mutation key */ create: () => ['mutation', 'registry', 'create'] as const, + /** Update registry mutation key */ update: (id: string | number) => + ['mutation', 'registry', 'update', id] as const, + /** Delete registry mutation key */ delete: (id: string | number) => + ['mutation', 'registry', 'delete', id] as const, +} as const; +export const registryGrantMutationKeys = { + /** All registryGrant mutation keys */ all: ['mutation', 'registrygrant'] as const, + /** Create registryGrant mutation key */ create: () => + ['mutation', 'registrygrant', 'create'] as const, + /** Update registryGrant mutation key */ update: (id: string | number) => + ['mutation', 'registrygrant', 'update', id] as const, + /** Delete registryGrant mutation key */ delete: (id: string | number) => + ['mutation', 'registrygrant', 'delete', id] as const, +} as const; +export const repositoryMutationKeys = { + /** All repository mutation keys */ all: ['mutation', 'repository'] as const, + /** Create repository mutation key */ create: () => ['mutation', 'repository', 'create'] as const, + /** Update repository mutation key */ update: (id: string | number) => + ['mutation', 'repository', 'update', id] as const, + /** Delete repository mutation key */ delete: (id: string | number) => + ['mutation', 'repository', 'delete', id] as const, +} as const; +export const repositoryEventMutationKeys = { + /** All repositoryEvent mutation keys */ all: ['mutation', 'repositoryevent'] as const, + /** Create repositoryEvent mutation key */ create: () => + ['mutation', 'repositoryevent', 'create'] as const, + /** Update repositoryEvent mutation key */ update: (id: string | number) => + ['mutation', 'repositoryevent', 'update', id] as const, + /** Delete repositoryEvent mutation key */ delete: (id: string | number) => + ['mutation', 'repositoryevent', 'delete', id] as const, +} as const; +export const repositoryRequiredCheckMutationKeys = { + /** All repositoryRequiredCheck mutation keys */ all: [ + 'mutation', + 'repositoryrequiredcheck', + ] as const, + /** Create repositoryRequiredCheck mutation key */ create: () => + ['mutation', 'repositoryrequiredcheck', 'create'] as const, + /** Update repositoryRequiredCheck mutation key */ update: (id: string | number) => + ['mutation', 'repositoryrequiredcheck', 'update', id] as const, + /** Delete repositoryRequiredCheck mutation key */ delete: (id: string | number) => + ['mutation', 'repositoryrequiredcheck', 'delete', id] as const, +} as const; +export const repositoryWorkflowMutationKeys = { + /** All repositoryWorkflow mutation keys */ all: ['mutation', 'repositoryworkflow'] as const, + /** Create repositoryWorkflow mutation key */ create: () => + ['mutation', 'repositoryworkflow', 'create'] as const, + /** Update repositoryWorkflow mutation key */ update: (id: string | number) => + ['mutation', 'repositoryworkflow', 'update', id] as const, + /** Delete repositoryWorkflow mutation key */ delete: (id: string | number) => + ['mutation', 'repositoryworkflow', 'delete', id] as const, +} as const; export const resourceMutationKeys = { /** All resource mutation keys */ all: ['mutation', 'resource'] as const, /** Create resource mutation key */ create: () => ['mutation', 'resource', 'create'] as const, @@ -655,6 +1139,18 @@ export const resourceInstallationMutationKeys = { /** Delete resourceInstallation mutation key */ delete: (id: string | number) => ['mutation', 'resourceinstallation', 'delete', id] as const, } as const; +export const resourceObservedStorageMutationKeys = { + /** All resourceObservedStorage mutation keys */ all: [ + 'mutation', + 'resourceobservedstorage', + ] as const, + /** Create resourceObservedStorage mutation key */ create: () => + ['mutation', 'resourceobservedstorage', 'create'] as const, + /** Update resourceObservedStorage mutation key */ update: (id: string | number) => + ['mutation', 'resourceobservedstorage', 'update', id] as const, + /** Delete resourceObservedStorage mutation key */ delete: (id: string | number) => + ['mutation', 'resourceobservedstorage', 'delete', id] as const, +} as const; export const resourceStatusCheckMutationKeys = { /** All resourceStatusCheck mutation keys */ all: ['mutation', 'resourcestatuscheck'] as const, /** Create resourceStatusCheck mutation key */ create: () => @@ -764,10 +1260,110 @@ export const customMutationKeys = { identifier ? (['mutation', 'addNodeAndSave', identifier] as const) : (['mutation', 'addNodeAndSave'] as const), + /** Mutation key for approveNode */ approveNode: (identifier?: string) => + identifier + ? (['mutation', 'approveNode', identifier] as const) + : (['mutation', 'approveNode'] as const), /** Mutation key for copyGraph */ copyGraph: (identifier?: string) => identifier ? (['mutation', 'copyGraph', identifier] as const) : (['mutation', 'copyGraph'] as const), + /** Mutation key for databaseAddEdge */ databaseAddEdge: (identifier?: string) => + identifier + ? (['mutation', 'databaseAddEdge', identifier] as const) + : (['mutation', 'databaseAddEdge'] as const), + /** Mutation key for databaseAddEdgeAndSave */ databaseAddEdgeAndSave: (identifier?: string) => + identifier + ? (['mutation', 'databaseAddEdgeAndSave', identifier] as const) + : (['mutation', 'databaseAddEdgeAndSave'] as const), + /** Mutation key for databaseAddNode */ databaseAddNode: (identifier?: string) => + identifier + ? (['mutation', 'databaseAddNode', identifier] as const) + : (['mutation', 'databaseAddNode'] as const), + /** Mutation key for databaseAddNodeAndSave */ databaseAddNodeAndSave: (identifier?: string) => + identifier + ? (['mutation', 'databaseAddNodeAndSave', identifier] as const) + : (['mutation', 'databaseAddNodeAndSave'] as const), + /** Mutation key for databaseApproveNode */ databaseApproveNode: (identifier?: string) => + identifier + ? (['mutation', 'databaseApproveNode', identifier] as const) + : (['mutation', 'databaseApproveNode'] as const), + /** Mutation key for databaseCopyGraph */ databaseCopyGraph: (identifier?: string) => + identifier + ? (['mutation', 'databaseCopyGraph', identifier] as const) + : (['mutation', 'databaseCopyGraph'] as const), + /** Mutation key for databaseCreateFunctionGraph */ databaseCreateFunctionGraph: ( + identifier?: string + ) => + identifier + ? (['mutation', 'databaseCreateFunctionGraph', identifier] as const) + : (['mutation', 'databaseCreateFunctionGraph'] as const), + /** Mutation key for databaseGraphInitEmptyRepo */ databaseGraphInitEmptyRepo: ( + identifier?: string + ) => + identifier + ? (['mutation', 'databaseGraphInitEmptyRepo', identifier] as const) + : (['mutation', 'databaseGraphInitEmptyRepo'] as const), + /** Mutation key for databaseGraphInsertNodeAtPath */ databaseGraphInsertNodeAtPath: ( + identifier?: string + ) => + identifier + ? (['mutation', 'databaseGraphInsertNodeAtPath', identifier] as const) + : (['mutation', 'databaseGraphInsertNodeAtPath'] as const), + /** Mutation key for databaseGraphInsertNodesAtPaths */ databaseGraphInsertNodesAtPaths: ( + identifier?: string + ) => + identifier + ? (['mutation', 'databaseGraphInsertNodesAtPaths', identifier] as const) + : (['mutation', 'databaseGraphInsertNodesAtPaths'] as const), + /** Mutation key for databaseGraphSetAndCommit */ databaseGraphSetAndCommit: ( + identifier?: string + ) => + identifier + ? (['mutation', 'databaseGraphSetAndCommit', identifier] as const) + : (['mutation', 'databaseGraphSetAndCommit'] as const), + /** Mutation key for databaseGraphSetDataAtPath */ databaseGraphSetDataAtPath: ( + identifier?: string + ) => + identifier + ? (['mutation', 'databaseGraphSetDataAtPath', identifier] as const) + : (['mutation', 'databaseGraphSetDataAtPath'] as const), + /** Mutation key for databaseGraphSetManyAndCommit */ databaseGraphSetManyAndCommit: ( + identifier?: string + ) => + identifier + ? (['mutation', 'databaseGraphSetManyAndCommit', identifier] as const) + : (['mutation', 'databaseGraphSetManyAndCommit'] as const), + /** Mutation key for databaseImportDefinitions */ databaseImportDefinitions: ( + identifier?: string + ) => + identifier + ? (['mutation', 'databaseImportDefinitions', identifier] as const) + : (['mutation', 'databaseImportDefinitions'] as const), + /** Mutation key for databaseImportGraphJson */ databaseImportGraphJson: (identifier?: string) => + identifier + ? (['mutation', 'databaseImportGraphJson', identifier] as const) + : (['mutation', 'databaseImportGraphJson'] as const), + /** Mutation key for databaseSaveGraph */ databaseSaveGraph: (identifier?: string) => + identifier + ? (['mutation', 'databaseSaveGraph', identifier] as const) + : (['mutation', 'databaseSaveGraph'] as const), + /** Mutation key for databaseStartExecution */ databaseStartExecution: (identifier?: string) => + identifier + ? (['mutation', 'databaseStartExecution', identifier] as const) + : (['mutation', 'databaseStartExecution'] as const), + /** Mutation key for databaseValidateFunctionGraph */ databaseValidateFunctionGraph: ( + identifier?: string + ) => + identifier + ? (['mutation', 'databaseValidateFunctionGraph', identifier] as const) + : (['mutation', 'databaseValidateFunctionGraph'] as const), + /** Mutation key for functionInvocationsCreateSync */ functionInvocationsCreateSync: ( + identifier?: string + ) => + identifier + ? (['mutation', 'functionInvocationsCreateSync', identifier] as const) + : (['mutation', 'functionInvocationsCreateSync'] as const), /** Mutation key for importDefinitions */ importDefinitions: (identifier?: string) => identifier ? (['mutation', 'importDefinitions', identifier] as const) @@ -812,6 +1408,11 @@ export const customMutationKeys = { identifier ? (['mutation', 'insertNodesAtPaths', identifier] as const) : (['mutation', 'insertNodesAtPaths'] as const), + /** Mutation key for platformFunctionInvocationsCreateSync */ platformFunctionInvocationsCreateSync: + (identifier?: string) => + identifier + ? (['mutation', 'platformFunctionInvocationsCreateSync', identifier] as const) + : (['mutation', 'platformFunctionInvocationsCreateSync'] as const), /** Mutation key for platformInfraInitEmptyRepo */ platformInfraInitEmptyRepo: ( identifier?: string ) => @@ -944,7 +1545,19 @@ export const customMutationKeys = { * ``` */ export const mutationKeys = { + build: buildMutationKeys, + buildStep: buildStepMutationKeys, + builderBinding: builderBindingMutationKeys, contentPreset: contentPresetMutationKeys, + databaseFunctionGraph: databaseFunctionGraphMutationKeys, + databaseFunctionGraphExecution: databaseFunctionGraphExecutionMutationKeys, + databaseFunctionGraphExecutionNodeState: databaseFunctionGraphExecutionNodeStateMutationKeys, + databaseFunctionGraphExecutionOutput: databaseFunctionGraphExecutionOutputMutationKeys, + databaseGraphCommit: databaseGraphCommitMutationKeys, + databaseGraphGetAllTreeNodesRecord: databaseGraphGetAllTreeNodesRecordMutationKeys, + databaseGraphObject: databaseGraphObjectMutationKeys, + databaseGraphRef: databaseGraphRefMutationKeys, + databaseGraphStore: databaseGraphStoreMutationKeys, dbPreset: dbPresetMutationKeys, functionApiBinding: functionApiBindingMutationKeys, functionCapabilityBinding: functionCapabilityBindingMutationKeys, @@ -963,6 +1576,8 @@ export const mutationKeys = { functionInvocationAttempt: functionInvocationAttemptMutationKeys, functionInvocation: functionInvocationMutationKeys, getAllTreeNodesRecord: getAllTreeNodesRecordMutationKeys, + image: imageMutationKeys, + imageGrant: imageGrantMutationKeys, infraCommit: infraCommitMutationKeys, infraGetAllTreeNodesRecord: infraGetAllTreeNodesRecordMutationKeys, infraObject: infraObjectMutationKeys, @@ -971,6 +1586,9 @@ export const mutationKeys = { integrationProvider: integrationProviderMutationKeys, namespace: namespaceMutationKeys, namespaceEvent: namespaceEventMutationKeys, + platformBuild: platformBuildMutationKeys, + platformBuildStep: platformBuildStepMutationKeys, + platformBuilderBinding: platformBuilderBindingMutationKeys, platformFunctionApiBinding: platformFunctionApiBindingMutationKeys, platformFunctionCapabilityBinding: platformFunctionCapabilityBindingMutationKeys, platformFunctionDefinition: platformFunctionDefinitionMutationKeys, @@ -979,18 +1597,36 @@ export const mutationKeys = { platformFunctionExecutionLog: platformFunctionExecutionLogMutationKeys, platformFunctionInvocationAttempt: platformFunctionInvocationAttemptMutationKeys, platformFunctionInvocation: platformFunctionInvocationMutationKeys, + platformImage: platformImageMutationKeys, + platformImageGrant: platformImageGrantMutationKeys, platformInfraCommit: platformInfraCommitMutationKeys, platformInfraGetAllTreeNodesRecord: platformInfraGetAllTreeNodesRecordMutationKeys, platformInfraObject: platformInfraObjectMutationKeys, platformInfraRef: platformInfraRefMutationKeys, platformInfraStore: platformInfraStoreMutationKeys, + platformK8sResourceKind: platformK8sResourceKindMutationKeys, + platformK8sSpecRule: platformK8sSpecRuleMutationKeys, platformNamespace: platformNamespaceMutationKeys, platformNamespaceEvent: platformNamespaceEventMutationKeys, + platformProposalComment: platformProposalCommentMutationKeys, + platformProposal: platformProposalMutationKeys, + platformProposalFileView: platformProposalFileViewMutationKeys, + platformProposalReaction: platformProposalReactionMutationKeys, + platformProposalReview: platformProposalReviewMutationKeys, + platformProposalsChunk: platformProposalsChunkMutationKeys, + platformRegistryBinding: platformRegistryBindingMutationKeys, + platformRegistry: platformRegistryMutationKeys, + platformRegistryGrant: platformRegistryGrantMutationKeys, + platformRepository: platformRepositoryMutationKeys, + platformRepositoryEvent: platformRepositoryEventMutationKeys, + platformRepositoryRequiredCheck: platformRepositoryRequiredCheckMutationKeys, + platformRepositoryWorkflow: platformRepositoryWorkflowMutationKeys, platformResource: platformResourceMutationKeys, platformResourceDeclaredCapacity: platformResourceDeclaredCapacityMutationKeys, platformResourceDefinition: platformResourceDefinitionMutationKeys, platformResourceEvent: platformResourceEventMutationKeys, platformResourceInstallation: platformResourceInstallationMutationKeys, + platformResourceObservedStorage: platformResourceObservedStorageMutationKeys, platformResourceStatusCheck: platformResourceStatusCheckMutationKeys, platformResourceUsageLog: platformResourceUsageLogMutationKeys, platformResourceUsageSummary: platformResourceUsageSummaryMutationKeys, @@ -1000,11 +1636,25 @@ export const mutationKeys = { platformResourcesResolvedRequirement: platformResourcesResolvedRequirementMutationKeys, platformWebhookEndpoint: platformWebhookEndpointMutationKeys, platformWebhookEvent: platformWebhookEventMutationKeys, + proposalComment: proposalCommentMutationKeys, + proposal: proposalMutationKeys, + proposalFileView: proposalFileViewMutationKeys, + proposalReaction: proposalReactionMutationKeys, + proposalReview: proposalReviewMutationKeys, + proposalsChunk: proposalsChunkMutationKeys, + registryBinding: registryBindingMutationKeys, + registry: registryMutationKeys, + registryGrant: registryGrantMutationKeys, + repository: repositoryMutationKeys, + repositoryEvent: repositoryEventMutationKeys, + repositoryRequiredCheck: repositoryRequiredCheckMutationKeys, + repositoryWorkflow: repositoryWorkflowMutationKeys, resource: resourceMutationKeys, resourceDeclaredCapacity: resourceDeclaredCapacityMutationKeys, resourceDefinition: resourceDefinitionMutationKeys, resourceEvent: resourceEventMutationKeys, resourceInstallation: resourceInstallationMutationKeys, + resourceObservedStorage: resourceObservedStorageMutationKeys, resourceStatusCheck: resourceStatusCheckMutationKeys, resourceUsageLog: resourceUsageLogMutationKeys, resourceUsageSummary: resourceUsageSummaryMutationKeys, diff --git a/sdk/constructive-react/src/compute/hooks/mutations/index.ts b/sdk/constructive-react/src/compute/hooks/mutations/index.ts index c2ec348302..33256f62ea 100644 --- a/sdk/constructive-react/src/compute/hooks/mutations/index.ts +++ b/sdk/constructive-react/src/compute/hooks/mutations/index.ts @@ -3,9 +3,43 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ +export * from './useCreateBuildMutation'; +export * from './useUpdateBuildMutation'; +export * from './useDeleteBuildMutation'; +export * from './useCreateBuildStepMutation'; +export * from './useUpdateBuildStepMutation'; +export * from './useDeleteBuildStepMutation'; +export * from './useCreateBuilderBindingMutation'; +export * from './useUpdateBuilderBindingMutation'; +export * from './useDeleteBuilderBindingMutation'; export * from './useCreateContentPresetMutation'; export * from './useUpdateContentPresetMutation'; export * from './useDeleteContentPresetMutation'; +export * from './useCreateDatabaseFunctionGraphMutation'; +export * from './useUpdateDatabaseFunctionGraphMutation'; +export * from './useDeleteDatabaseFunctionGraphMutation'; +export * from './useCreateDatabaseFunctionGraphExecutionMutation'; +export * from './useUpdateDatabaseFunctionGraphExecutionMutation'; +export * from './useDeleteDatabaseFunctionGraphExecutionMutation'; +export * from './useCreateDatabaseFunctionGraphExecutionNodeStateMutation'; +export * from './useUpdateDatabaseFunctionGraphExecutionNodeStateMutation'; +export * from './useDeleteDatabaseFunctionGraphExecutionNodeStateMutation'; +export * from './useCreateDatabaseFunctionGraphExecutionOutputMutation'; +export * from './useUpdateDatabaseFunctionGraphExecutionOutputMutation'; +export * from './useDeleteDatabaseFunctionGraphExecutionOutputMutation'; +export * from './useCreateDatabaseGraphCommitMutation'; +export * from './useUpdateDatabaseGraphCommitMutation'; +export * from './useDeleteDatabaseGraphCommitMutation'; +export * from './useCreateDatabaseGraphGetAllTreeNodesRecordMutation'; +export * from './useCreateDatabaseGraphObjectMutation'; +export * from './useUpdateDatabaseGraphObjectMutation'; +export * from './useDeleteDatabaseGraphObjectMutation'; +export * from './useCreateDatabaseGraphRefMutation'; +export * from './useUpdateDatabaseGraphRefMutation'; +export * from './useDeleteDatabaseGraphRefMutation'; +export * from './useCreateDatabaseGraphStoreMutation'; +export * from './useUpdateDatabaseGraphStoreMutation'; +export * from './useDeleteDatabaseGraphStoreMutation'; export * from './useCreateDbPresetMutation'; export * from './useUpdateDbPresetMutation'; export * from './useDeleteDbPresetMutation'; @@ -58,6 +92,12 @@ export * from './useCreateFunctionInvocationMutation'; export * from './useUpdateFunctionInvocationMutation'; export * from './useDeleteFunctionInvocationMutation'; export * from './useCreateGetAllTreeNodesRecordMutation'; +export * from './useCreateImageMutation'; +export * from './useUpdateImageMutation'; +export * from './useDeleteImageMutation'; +export * from './useCreateImageGrantMutation'; +export * from './useUpdateImageGrantMutation'; +export * from './useDeleteImageGrantMutation'; export * from './useCreateInfraCommitMutation'; export * from './useUpdateInfraCommitMutation'; export * from './useDeleteInfraCommitMutation'; @@ -80,6 +120,15 @@ export * from './useDeleteNamespaceMutation'; export * from './useCreateNamespaceEventMutation'; export * from './useUpdateNamespaceEventMutation'; export * from './useDeleteNamespaceEventMutation'; +export * from './useCreatePlatformBuildMutation'; +export * from './useUpdatePlatformBuildMutation'; +export * from './useDeletePlatformBuildMutation'; +export * from './useCreatePlatformBuildStepMutation'; +export * from './useUpdatePlatformBuildStepMutation'; +export * from './useDeletePlatformBuildStepMutation'; +export * from './useCreatePlatformBuilderBindingMutation'; +export * from './useUpdatePlatformBuilderBindingMutation'; +export * from './useDeletePlatformBuilderBindingMutation'; export * from './useCreatePlatformFunctionApiBindingMutation'; export * from './useUpdatePlatformFunctionApiBindingMutation'; export * from './useDeletePlatformFunctionApiBindingMutation'; @@ -104,6 +153,12 @@ export * from './useDeletePlatformFunctionInvocationAttemptMutation'; export * from './useCreatePlatformFunctionInvocationMutation'; export * from './useUpdatePlatformFunctionInvocationMutation'; export * from './useDeletePlatformFunctionInvocationMutation'; +export * from './useCreatePlatformImageMutation'; +export * from './useUpdatePlatformImageMutation'; +export * from './useDeletePlatformImageMutation'; +export * from './useCreatePlatformImageGrantMutation'; +export * from './useUpdatePlatformImageGrantMutation'; +export * from './useDeletePlatformImageGrantMutation'; export * from './useCreatePlatformInfraCommitMutation'; export * from './useUpdatePlatformInfraCommitMutation'; export * from './useDeletePlatformInfraCommitMutation'; @@ -117,12 +172,57 @@ export * from './useDeletePlatformInfraRefMutation'; export * from './useCreatePlatformInfraStoreMutation'; export * from './useUpdatePlatformInfraStoreMutation'; export * from './useDeletePlatformInfraStoreMutation'; +export * from './useCreatePlatformK8sResourceKindMutation'; +export * from './useUpdatePlatformK8sResourceKindMutation'; +export * from './useDeletePlatformK8sResourceKindMutation'; +export * from './useCreatePlatformK8sSpecRuleMutation'; +export * from './useUpdatePlatformK8sSpecRuleMutation'; +export * from './useDeletePlatformK8sSpecRuleMutation'; export * from './useCreatePlatformNamespaceMutation'; export * from './useUpdatePlatformNamespaceMutation'; export * from './useDeletePlatformNamespaceMutation'; export * from './useCreatePlatformNamespaceEventMutation'; export * from './useUpdatePlatformNamespaceEventMutation'; export * from './useDeletePlatformNamespaceEventMutation'; +export * from './useCreatePlatformProposalCommentMutation'; +export * from './useUpdatePlatformProposalCommentMutation'; +export * from './useDeletePlatformProposalCommentMutation'; +export * from './useCreatePlatformProposalMutation'; +export * from './useUpdatePlatformProposalMutation'; +export * from './useDeletePlatformProposalMutation'; +export * from './useCreatePlatformProposalFileViewMutation'; +export * from './useUpdatePlatformProposalFileViewMutation'; +export * from './useDeletePlatformProposalFileViewMutation'; +export * from './useCreatePlatformProposalReactionMutation'; +export * from './useUpdatePlatformProposalReactionMutation'; +export * from './useDeletePlatformProposalReactionMutation'; +export * from './useCreatePlatformProposalReviewMutation'; +export * from './useUpdatePlatformProposalReviewMutation'; +export * from './useDeletePlatformProposalReviewMutation'; +export * from './useCreatePlatformProposalsChunkMutation'; +export * from './useUpdatePlatformProposalsChunkMutation'; +export * from './useDeletePlatformProposalsChunkMutation'; +export * from './useCreatePlatformRegistryBindingMutation'; +export * from './useUpdatePlatformRegistryBindingMutation'; +export * from './useDeletePlatformRegistryBindingMutation'; +export * from './useCreatePlatformRegistryMutation'; +export * from './useUpdatePlatformRegistryMutation'; +export * from './useDeletePlatformRegistryMutation'; +export * from './useCreatePlatformRegistryGrantMutation'; +export * from './useUpdatePlatformRegistryGrantMutation'; +export * from './useDeletePlatformRegistryGrantMutation'; +export * from './useCreatePlatformRepositoryMutation'; +export * from './useUpdatePlatformRepositoryMutation'; +export * from './useDeletePlatformRepositoryMutation'; +export * from './useCreatePlatformRepositoryEventMutation'; +export * from './useUpdatePlatformRepositoryEventMutation'; +export * from './useDeletePlatformRepositoryEventMutation'; +export * from './useCreatePlatformRepositoryRequiredCheckMutation'; +export * from './useUpdatePlatformRepositoryRequiredCheckMutation'; +export * from './useDeletePlatformRepositoryRequiredCheckMutation'; +export * from './useCreatePlatformRepositoryWorkflowMutation'; +export * from './useUpdatePlatformRepositoryWorkflowMutation'; +export * from './useDeletePlatformRepositoryWorkflowMutation'; export * from './useCreatePlatformResourceMutation'; export * from './useUpdatePlatformResourceMutation'; export * from './useDeletePlatformResourceMutation'; @@ -136,6 +236,7 @@ export * from './useDeletePlatformResourceEventMutation'; export * from './useCreatePlatformResourceInstallationMutation'; export * from './useUpdatePlatformResourceInstallationMutation'; export * from './useDeletePlatformResourceInstallationMutation'; +export * from './useCreatePlatformResourceObservedStorageMutation'; export * from './useCreatePlatformResourceStatusCheckMutation'; export * from './useUpdatePlatformResourceStatusCheckMutation'; export * from './useDeletePlatformResourceStatusCheckMutation'; @@ -155,6 +256,45 @@ export * from './useDeletePlatformWebhookEndpointMutation'; export * from './useCreatePlatformWebhookEventMutation'; export * from './useUpdatePlatformWebhookEventMutation'; export * from './useDeletePlatformWebhookEventMutation'; +export * from './useCreateProposalCommentMutation'; +export * from './useUpdateProposalCommentMutation'; +export * from './useDeleteProposalCommentMutation'; +export * from './useCreateProposalMutation'; +export * from './useUpdateProposalMutation'; +export * from './useDeleteProposalMutation'; +export * from './useCreateProposalFileViewMutation'; +export * from './useUpdateProposalFileViewMutation'; +export * from './useDeleteProposalFileViewMutation'; +export * from './useCreateProposalReactionMutation'; +export * from './useUpdateProposalReactionMutation'; +export * from './useDeleteProposalReactionMutation'; +export * from './useCreateProposalReviewMutation'; +export * from './useUpdateProposalReviewMutation'; +export * from './useDeleteProposalReviewMutation'; +export * from './useCreateProposalsChunkMutation'; +export * from './useUpdateProposalsChunkMutation'; +export * from './useDeleteProposalsChunkMutation'; +export * from './useCreateRegistryBindingMutation'; +export * from './useUpdateRegistryBindingMutation'; +export * from './useDeleteRegistryBindingMutation'; +export * from './useCreateRegistryMutation'; +export * from './useUpdateRegistryMutation'; +export * from './useDeleteRegistryMutation'; +export * from './useCreateRegistryGrantMutation'; +export * from './useUpdateRegistryGrantMutation'; +export * from './useDeleteRegistryGrantMutation'; +export * from './useCreateRepositoryMutation'; +export * from './useUpdateRepositoryMutation'; +export * from './useDeleteRepositoryMutation'; +export * from './useCreateRepositoryEventMutation'; +export * from './useUpdateRepositoryEventMutation'; +export * from './useDeleteRepositoryEventMutation'; +export * from './useCreateRepositoryRequiredCheckMutation'; +export * from './useUpdateRepositoryRequiredCheckMutation'; +export * from './useDeleteRepositoryRequiredCheckMutation'; +export * from './useCreateRepositoryWorkflowMutation'; +export * from './useUpdateRepositoryWorkflowMutation'; +export * from './useDeleteRepositoryWorkflowMutation'; export * from './useCreateResourceMutation'; export * from './useUpdateResourceMutation'; export * from './useDeleteResourceMutation'; @@ -168,6 +308,7 @@ export * from './useDeleteResourceEventMutation'; export * from './useCreateResourceInstallationMutation'; export * from './useUpdateResourceInstallationMutation'; export * from './useDeleteResourceInstallationMutation'; +export * from './useCreateResourceObservedStorageMutation'; export * from './useCreateResourceStatusCheckMutation'; export * from './useUpdateResourceStatusCheckMutation'; export * from './useDeleteResourceStatusCheckMutation'; @@ -191,7 +332,27 @@ export * from './useAddEdgeMutation'; export * from './useAddEdgeAndSaveMutation'; export * from './useAddNodeMutation'; export * from './useAddNodeAndSaveMutation'; +export * from './useApproveNodeMutation'; export * from './useCopyGraphMutation'; +export * from './useDatabaseAddEdgeMutation'; +export * from './useDatabaseAddEdgeAndSaveMutation'; +export * from './useDatabaseAddNodeMutation'; +export * from './useDatabaseAddNodeAndSaveMutation'; +export * from './useDatabaseApproveNodeMutation'; +export * from './useDatabaseCopyGraphMutation'; +export * from './useDatabaseCreateFunctionGraphMutation'; +export * from './useDatabaseGraphInitEmptyRepoMutation'; +export * from './useDatabaseGraphInsertNodeAtPathMutation'; +export * from './useDatabaseGraphInsertNodesAtPathsMutation'; +export * from './useDatabaseGraphSetAndCommitMutation'; +export * from './useDatabaseGraphSetDataAtPathMutation'; +export * from './useDatabaseGraphSetManyAndCommitMutation'; +export * from './useDatabaseImportDefinitionsMutation'; +export * from './useDatabaseImportGraphJsonMutation'; +export * from './useDatabaseSaveGraphMutation'; +export * from './useDatabaseStartExecutionMutation'; +export * from './useDatabaseValidateFunctionGraphMutation'; +export * from './useFunctionInvocationsCreateSyncMutation'; export * from './useImportDefinitionsMutation'; export * from './useImportGraphJsonMutation'; export * from './useInfraInitEmptyRepoMutation'; @@ -203,6 +364,7 @@ export * from './useInfraSetManyAndCommitMutation'; export * from './useInitEmptyRepoMutation'; export * from './useInsertNodeAtPathMutation'; export * from './useInsertNodesAtPathsMutation'; +export * from './usePlatformFunctionInvocationsCreateSyncMutation'; export * from './usePlatformInfraInitEmptyRepoMutation'; export * from './usePlatformInfraInsertNodeAtPathMutation'; export * from './usePlatformInfraInsertNodesAtPathsMutation'; diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useApproveNodeMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useApproveNodeMutation.ts new file mode 100644 index 0000000000..93cfa67a0c --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useApproveNodeMutation.ts @@ -0,0 +1,55 @@ +/** + * Custom mutation hook for approveNode + * @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 { ApproveNodeVariables } from '../../orm/mutation'; +import type { ApproveNodePayloadSelect, ApproveNodePayload } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { ApproveNodeVariables } from '../../orm/mutation'; +export type { ApproveNodePayloadSelect } from '../../orm/input-types'; +export function useApproveNodeMutation( + params: { + selection: { + fields: S & ApproveNodePayloadSelect; + } & HookStrictSelect, ApproveNodePayloadSelect>; + } & Omit< + UseMutationOptions< + { + approveNode: InferSelectResult | null; + }, + Error, + ApproveNodeVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + approveNode: InferSelectResult | null; + }, + Error, + ApproveNodeVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.approveNode(), + mutationFn: (variables: ApproveNodeVariables) => + getClient() + .mutation.approveNode(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreateBuildMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreateBuildMutation.ts new file mode 100644 index 0000000000..76707beb87 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useCreateBuildMutation.ts @@ -0,0 +1,80 @@ +/** + * One run of a repository workflow: its commit, its job, and what it produced + * @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 { buildKeys } from '../query-keys'; +import { buildMutationKeys } from '../mutation-keys'; +import type { BuildSelect, BuildWithRelations, CreateBuildInput } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { BuildSelect, BuildWithRelations, CreateBuildInput } from '../../orm/input-types'; +/** + * One run of a repository workflow: its commit, its job, and what it produced + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateBuildMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateBuildMutation( + params: { + selection: { + fields: S & BuildSelect; + } & HookStrictSelect, BuildSelect>; + } & Omit< + UseMutationOptions< + { + createBuild: { + build: InferSelectResult; + }; + }, + Error, + CreateBuildInput['build'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createBuild: { + build: InferSelectResult; + }; + }, + Error, + CreateBuildInput['build'] +>; +export function useCreateBuildMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: buildMutationKeys.create(), + mutationFn: (data: CreateBuildInput['build']) => + getClient() + .build.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: buildKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreateBuildStepMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreateBuildStepMutation.ts new file mode 100644 index 0000000000..ea69eaaf1d --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useCreateBuildStepMutation.ts @@ -0,0 +1,88 @@ +/** + * Partitioned append-only step and test results of a build, keyed into its log object + * @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 { buildStepKeys } from '../query-keys'; +import { buildStepMutationKeys } from '../mutation-keys'; +import type { + BuildStepSelect, + BuildStepWithRelations, + CreateBuildStepInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + BuildStepSelect, + BuildStepWithRelations, + CreateBuildStepInput, +} from '../../orm/input-types'; +/** + * Partitioned append-only step and test results of a build, keyed into its log object + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateBuildStepMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateBuildStepMutation( + params: { + selection: { + fields: S & BuildStepSelect; + } & HookStrictSelect, BuildStepSelect>; + } & Omit< + UseMutationOptions< + { + createBuildStep: { + buildStep: InferSelectResult; + }; + }, + Error, + CreateBuildStepInput['buildStep'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createBuildStep: { + buildStep: InferSelectResult; + }; + }, + Error, + CreateBuildStepInput['buildStep'] +>; +export function useCreateBuildStepMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: buildStepMutationKeys.create(), + mutationFn: (data: CreateBuildStepInput['buildStep']) => + getClient() + .buildStep.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: buildStepKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreateBuilderBindingMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreateBuilderBindingMutation.ts new file mode 100644 index 0000000000..4aceb82c89 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useCreateBuilderBindingMutation.ts @@ -0,0 +1,91 @@ +/** + * Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST + * @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 { builderBindingKeys } from '../query-keys'; +import { builderBindingMutationKeys } from '../mutation-keys'; +import type { + BuilderBindingSelect, + BuilderBindingWithRelations, + CreateBuilderBindingInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + BuilderBindingSelect, + BuilderBindingWithRelations, + CreateBuilderBindingInput, +} from '../../orm/input-types'; +/** + * Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateBuilderBindingMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateBuilderBindingMutation( + params: { + selection: { + fields: S & BuilderBindingSelect; + } & HookStrictSelect, BuilderBindingSelect>; + } & Omit< + UseMutationOptions< + { + createBuilderBinding: { + builderBinding: InferSelectResult; + }; + }, + Error, + CreateBuilderBindingInput['builderBinding'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createBuilderBinding: { + builderBinding: InferSelectResult; + }; + }, + Error, + CreateBuilderBindingInput['builderBinding'] +>; +export function useCreateBuilderBindingMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: builderBindingMutationKeys.create(), + mutationFn: (data: CreateBuilderBindingInput['builderBinding']) => + getClient() + .builderBinding.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: builderBindingKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreateDatabaseFunctionGraphExecutionMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreateDatabaseFunctionGraphExecutionMutation.ts new file mode 100644 index 0000000000..88e996d1d9 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useCreateDatabaseFunctionGraphExecutionMutation.ts @@ -0,0 +1,105 @@ +/** + * Ephemeral execution state for flow graph evaluation + * @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 { databaseFunctionGraphExecutionKeys } from '../query-keys'; +import { databaseFunctionGraphExecutionMutationKeys } from '../mutation-keys'; +import type { + DatabaseFunctionGraphExecutionSelect, + DatabaseFunctionGraphExecutionWithRelations, + CreateDatabaseFunctionGraphExecutionInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + DatabaseFunctionGraphExecutionSelect, + DatabaseFunctionGraphExecutionWithRelations, + CreateDatabaseFunctionGraphExecutionInput, +} from '../../orm/input-types'; +/** + * Ephemeral execution state for flow graph evaluation + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateDatabaseFunctionGraphExecutionMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateDatabaseFunctionGraphExecutionMutation< + S extends DatabaseFunctionGraphExecutionSelect, +>( + params: { + selection: { + fields: S & DatabaseFunctionGraphExecutionSelect; + } & HookStrictSelect, DatabaseFunctionGraphExecutionSelect>; + } & Omit< + UseMutationOptions< + { + createDatabaseFunctionGraphExecution: { + databaseFunctionGraphExecution: InferSelectResult< + DatabaseFunctionGraphExecutionWithRelations, + S + >; + }; + }, + Error, + CreateDatabaseFunctionGraphExecutionInput['databaseFunctionGraphExecution'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createDatabaseFunctionGraphExecution: { + databaseFunctionGraphExecution: InferSelectResult< + DatabaseFunctionGraphExecutionWithRelations, + S + >; + }; + }, + Error, + CreateDatabaseFunctionGraphExecutionInput['databaseFunctionGraphExecution'] +>; +export function useCreateDatabaseFunctionGraphExecutionMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + CreateDatabaseFunctionGraphExecutionInput['databaseFunctionGraphExecution'] + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: databaseFunctionGraphExecutionMutationKeys.create(), + mutationFn: ( + data: CreateDatabaseFunctionGraphExecutionInput['databaseFunctionGraphExecution'] + ) => + getClient() + .databaseFunctionGraphExecution.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: databaseFunctionGraphExecutionKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreateDatabaseFunctionGraphExecutionNodeStateMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreateDatabaseFunctionGraphExecutionNodeStateMutation.ts new file mode 100644 index 0000000000..8bdec7d382 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useCreateDatabaseFunctionGraphExecutionNodeStateMutation.ts @@ -0,0 +1,105 @@ +/** + * Per-node execution state — tracks individual node lifecycle for debugging + * @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 { databaseFunctionGraphExecutionNodeStateKeys } from '../query-keys'; +import { databaseFunctionGraphExecutionNodeStateMutationKeys } from '../mutation-keys'; +import type { + DatabaseFunctionGraphExecutionNodeStateSelect, + DatabaseFunctionGraphExecutionNodeStateWithRelations, + CreateDatabaseFunctionGraphExecutionNodeStateInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + DatabaseFunctionGraphExecutionNodeStateSelect, + DatabaseFunctionGraphExecutionNodeStateWithRelations, + CreateDatabaseFunctionGraphExecutionNodeStateInput, +} from '../../orm/input-types'; +/** + * Per-node execution state — tracks individual node lifecycle for debugging + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateDatabaseFunctionGraphExecutionNodeStateMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateDatabaseFunctionGraphExecutionNodeStateMutation< + S extends DatabaseFunctionGraphExecutionNodeStateSelect, +>( + params: { + selection: { + fields: S & DatabaseFunctionGraphExecutionNodeStateSelect; + } & HookStrictSelect, DatabaseFunctionGraphExecutionNodeStateSelect>; + } & Omit< + UseMutationOptions< + { + createDatabaseFunctionGraphExecutionNodeState: { + databaseFunctionGraphExecutionNodeState: InferSelectResult< + DatabaseFunctionGraphExecutionNodeStateWithRelations, + S + >; + }; + }, + Error, + CreateDatabaseFunctionGraphExecutionNodeStateInput['databaseFunctionGraphExecutionNodeState'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createDatabaseFunctionGraphExecutionNodeState: { + databaseFunctionGraphExecutionNodeState: InferSelectResult< + DatabaseFunctionGraphExecutionNodeStateWithRelations, + S + >; + }; + }, + Error, + CreateDatabaseFunctionGraphExecutionNodeStateInput['databaseFunctionGraphExecutionNodeState'] +>; +export function useCreateDatabaseFunctionGraphExecutionNodeStateMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + CreateDatabaseFunctionGraphExecutionNodeStateInput['databaseFunctionGraphExecutionNodeState'] + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: databaseFunctionGraphExecutionNodeStateMutationKeys.create(), + mutationFn: ( + data: CreateDatabaseFunctionGraphExecutionNodeStateInput['databaseFunctionGraphExecutionNodeState'] + ) => + getClient() + .databaseFunctionGraphExecutionNodeState.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: databaseFunctionGraphExecutionNodeStateKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreateDatabaseFunctionGraphExecutionOutputMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreateDatabaseFunctionGraphExecutionOutputMutation.ts new file mode 100644 index 0000000000..9282e3f30b --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useCreateDatabaseFunctionGraphExecutionOutputMutation.ts @@ -0,0 +1,105 @@ +/** + * Content-addressed store for execution outputs — hash-referenced from node_outputs + * @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 { databaseFunctionGraphExecutionOutputKeys } from '../query-keys'; +import { databaseFunctionGraphExecutionOutputMutationKeys } from '../mutation-keys'; +import type { + DatabaseFunctionGraphExecutionOutputSelect, + DatabaseFunctionGraphExecutionOutputWithRelations, + CreateDatabaseFunctionGraphExecutionOutputInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + DatabaseFunctionGraphExecutionOutputSelect, + DatabaseFunctionGraphExecutionOutputWithRelations, + CreateDatabaseFunctionGraphExecutionOutputInput, +} from '../../orm/input-types'; +/** + * Content-addressed store for execution outputs — hash-referenced from node_outputs + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateDatabaseFunctionGraphExecutionOutputMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateDatabaseFunctionGraphExecutionOutputMutation< + S extends DatabaseFunctionGraphExecutionOutputSelect, +>( + params: { + selection: { + fields: S & DatabaseFunctionGraphExecutionOutputSelect; + } & HookStrictSelect, DatabaseFunctionGraphExecutionOutputSelect>; + } & Omit< + UseMutationOptions< + { + createDatabaseFunctionGraphExecutionOutput: { + databaseFunctionGraphExecutionOutput: InferSelectResult< + DatabaseFunctionGraphExecutionOutputWithRelations, + S + >; + }; + }, + Error, + CreateDatabaseFunctionGraphExecutionOutputInput['databaseFunctionGraphExecutionOutput'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createDatabaseFunctionGraphExecutionOutput: { + databaseFunctionGraphExecutionOutput: InferSelectResult< + DatabaseFunctionGraphExecutionOutputWithRelations, + S + >; + }; + }, + Error, + CreateDatabaseFunctionGraphExecutionOutputInput['databaseFunctionGraphExecutionOutput'] +>; +export function useCreateDatabaseFunctionGraphExecutionOutputMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + CreateDatabaseFunctionGraphExecutionOutputInput['databaseFunctionGraphExecutionOutput'] + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: databaseFunctionGraphExecutionOutputMutationKeys.create(), + mutationFn: ( + data: CreateDatabaseFunctionGraphExecutionOutputInput['databaseFunctionGraphExecutionOutput'] + ) => + getClient() + .databaseFunctionGraphExecutionOutput.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: databaseFunctionGraphExecutionOutputKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreateDatabaseFunctionGraphMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreateDatabaseFunctionGraphMutation.ts new file mode 100644 index 0000000000..06acd7ea6f --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useCreateDatabaseFunctionGraphMutation.ts @@ -0,0 +1,91 @@ +/** + * Flow graph definitions — FBP graphs stored in the dedicated graph Merkle 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 { databaseFunctionGraphKeys } from '../query-keys'; +import { databaseFunctionGraphMutationKeys } from '../mutation-keys'; +import type { + DatabaseFunctionGraphSelect, + DatabaseFunctionGraphWithRelations, + CreateDatabaseFunctionGraphInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + DatabaseFunctionGraphSelect, + DatabaseFunctionGraphWithRelations, + CreateDatabaseFunctionGraphInput, +} from '../../orm/input-types'; +/** + * Flow graph definitions — FBP graphs stored in the dedicated graph Merkle store + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateDatabaseFunctionGraphMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateDatabaseFunctionGraphMutation( + params: { + selection: { + fields: S & DatabaseFunctionGraphSelect; + } & HookStrictSelect, DatabaseFunctionGraphSelect>; + } & Omit< + UseMutationOptions< + { + createDatabaseFunctionGraph: { + databaseFunctionGraph: InferSelectResult; + }; + }, + Error, + CreateDatabaseFunctionGraphInput['databaseFunctionGraph'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createDatabaseFunctionGraph: { + databaseFunctionGraph: InferSelectResult; + }; + }, + Error, + CreateDatabaseFunctionGraphInput['databaseFunctionGraph'] +>; +export function useCreateDatabaseFunctionGraphMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: databaseFunctionGraphMutationKeys.create(), + mutationFn: (data: CreateDatabaseFunctionGraphInput['databaseFunctionGraph']) => + getClient() + .databaseFunctionGraph.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: databaseFunctionGraphKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreateDatabaseGraphCommitMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreateDatabaseGraphCommitMutation.ts new file mode 100644 index 0000000000..60ab440bf2 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useCreateDatabaseGraphCommitMutation.ts @@ -0,0 +1,91 @@ +/** + * Commit history — each commit snapshots a tree root for a 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 { databaseGraphCommitKeys } from '../query-keys'; +import { databaseGraphCommitMutationKeys } from '../mutation-keys'; +import type { + DatabaseGraphCommitSelect, + DatabaseGraphCommitWithRelations, + CreateDatabaseGraphCommitInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + DatabaseGraphCommitSelect, + DatabaseGraphCommitWithRelations, + CreateDatabaseGraphCommitInput, +} from '../../orm/input-types'; +/** + * Commit history — each commit snapshots a tree root for a store + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateDatabaseGraphCommitMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateDatabaseGraphCommitMutation( + params: { + selection: { + fields: S & DatabaseGraphCommitSelect; + } & HookStrictSelect, DatabaseGraphCommitSelect>; + } & Omit< + UseMutationOptions< + { + createDatabaseGraphCommit: { + databaseGraphCommit: InferSelectResult; + }; + }, + Error, + CreateDatabaseGraphCommitInput['databaseGraphCommit'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createDatabaseGraphCommit: { + databaseGraphCommit: InferSelectResult; + }; + }, + Error, + CreateDatabaseGraphCommitInput['databaseGraphCommit'] +>; +export function useCreateDatabaseGraphCommitMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: databaseGraphCommitMutationKeys.create(), + mutationFn: (data: CreateDatabaseGraphCommitInput['databaseGraphCommit']) => + getClient() + .databaseGraphCommit.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: databaseGraphCommitKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreateDatabaseGraphGetAllTreeNodesRecordMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreateDatabaseGraphGetAllTreeNodesRecordMutation.ts new file mode 100644 index 0000000000..beed0adea1 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useCreateDatabaseGraphGetAllTreeNodesRecordMutation.ts @@ -0,0 +1,105 @@ +/** + * Create mutation hook for DatabaseGraphGetAllTreeNodesRecord + * @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 { databaseGraphGetAllTreeNodesRecordKeys } from '../query-keys'; +import { databaseGraphGetAllTreeNodesRecordMutationKeys } from '../mutation-keys'; +import type { + DatabaseGraphGetAllTreeNodesRecordSelect, + DatabaseGraphGetAllTreeNodesRecordWithRelations, + CreateDatabaseGraphGetAllTreeNodesRecordInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + DatabaseGraphGetAllTreeNodesRecordSelect, + DatabaseGraphGetAllTreeNodesRecordWithRelations, + CreateDatabaseGraphGetAllTreeNodesRecordInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a DatabaseGraphGetAllTreeNodesRecord + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateDatabaseGraphGetAllTreeNodesRecordMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateDatabaseGraphGetAllTreeNodesRecordMutation< + S extends DatabaseGraphGetAllTreeNodesRecordSelect, +>( + params: { + selection: { + fields: S & DatabaseGraphGetAllTreeNodesRecordSelect; + } & HookStrictSelect, DatabaseGraphGetAllTreeNodesRecordSelect>; + } & Omit< + UseMutationOptions< + { + createDatabaseGraphGetAllTreeNodesRecord: { + databaseGraphGetAllTreeNodesRecord: InferSelectResult< + DatabaseGraphGetAllTreeNodesRecordWithRelations, + S + >; + }; + }, + Error, + CreateDatabaseGraphGetAllTreeNodesRecordInput['databaseGraphGetAllTreeNodesRecord'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createDatabaseGraphGetAllTreeNodesRecord: { + databaseGraphGetAllTreeNodesRecord: InferSelectResult< + DatabaseGraphGetAllTreeNodesRecordWithRelations, + S + >; + }; + }, + Error, + CreateDatabaseGraphGetAllTreeNodesRecordInput['databaseGraphGetAllTreeNodesRecord'] +>; +export function useCreateDatabaseGraphGetAllTreeNodesRecordMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + CreateDatabaseGraphGetAllTreeNodesRecordInput['databaseGraphGetAllTreeNodesRecord'] + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: databaseGraphGetAllTreeNodesRecordMutationKeys.create(), + mutationFn: ( + data: CreateDatabaseGraphGetAllTreeNodesRecordInput['databaseGraphGetAllTreeNodesRecord'] + ) => + getClient() + .databaseGraphGetAllTreeNodesRecord.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: databaseGraphGetAllTreeNodesRecordKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreateDatabaseGraphObjectMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreateDatabaseGraphObjectMutation.ts new file mode 100644 index 0000000000..e42091e15c --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useCreateDatabaseGraphObjectMutation.ts @@ -0,0 +1,91 @@ +/** + * Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children + * @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 { databaseGraphObjectKeys } from '../query-keys'; +import { databaseGraphObjectMutationKeys } from '../mutation-keys'; +import type { + DatabaseGraphObjectSelect, + DatabaseGraphObjectWithRelations, + CreateDatabaseGraphObjectInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + DatabaseGraphObjectSelect, + DatabaseGraphObjectWithRelations, + CreateDatabaseGraphObjectInput, +} from '../../orm/input-types'; +/** + * Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateDatabaseGraphObjectMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateDatabaseGraphObjectMutation( + params: { + selection: { + fields: S & DatabaseGraphObjectSelect; + } & HookStrictSelect, DatabaseGraphObjectSelect>; + } & Omit< + UseMutationOptions< + { + createDatabaseGraphObject: { + databaseGraphObject: InferSelectResult; + }; + }, + Error, + CreateDatabaseGraphObjectInput['databaseGraphObject'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createDatabaseGraphObject: { + databaseGraphObject: InferSelectResult; + }; + }, + Error, + CreateDatabaseGraphObjectInput['databaseGraphObject'] +>; +export function useCreateDatabaseGraphObjectMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: databaseGraphObjectMutationKeys.create(), + mutationFn: (data: CreateDatabaseGraphObjectInput['databaseGraphObject']) => + getClient() + .databaseGraphObject.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: databaseGraphObjectKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreateDatabaseGraphRefMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreateDatabaseGraphRefMutation.ts new file mode 100644 index 0000000000..699292fe44 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useCreateDatabaseGraphRefMutation.ts @@ -0,0 +1,91 @@ +/** + * Branch heads — mutable pointers into the commit chain + * @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 { databaseGraphRefKeys } from '../query-keys'; +import { databaseGraphRefMutationKeys } from '../mutation-keys'; +import type { + DatabaseGraphRefSelect, + DatabaseGraphRefWithRelations, + CreateDatabaseGraphRefInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + DatabaseGraphRefSelect, + DatabaseGraphRefWithRelations, + CreateDatabaseGraphRefInput, +} from '../../orm/input-types'; +/** + * Branch heads — mutable pointers into the commit chain + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateDatabaseGraphRefMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateDatabaseGraphRefMutation( + params: { + selection: { + fields: S & DatabaseGraphRefSelect; + } & HookStrictSelect, DatabaseGraphRefSelect>; + } & Omit< + UseMutationOptions< + { + createDatabaseGraphRef: { + databaseGraphRef: InferSelectResult; + }; + }, + Error, + CreateDatabaseGraphRefInput['databaseGraphRef'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createDatabaseGraphRef: { + databaseGraphRef: InferSelectResult; + }; + }, + Error, + CreateDatabaseGraphRefInput['databaseGraphRef'] +>; +export function useCreateDatabaseGraphRefMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: databaseGraphRefMutationKeys.create(), + mutationFn: (data: CreateDatabaseGraphRefInput['databaseGraphRef']) => + getClient() + .databaseGraphRef.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: databaseGraphRefKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreateDatabaseGraphStoreMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreateDatabaseGraphStoreMutation.ts new file mode 100644 index 0000000000..89798e44cf --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useCreateDatabaseGraphStoreMutation.ts @@ -0,0 +1,91 @@ +/** + * Named stores — one per version-controlled tree (e.g. one graph, one definition set) + * @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 { databaseGraphStoreKeys } from '../query-keys'; +import { databaseGraphStoreMutationKeys } from '../mutation-keys'; +import type { + DatabaseGraphStoreSelect, + DatabaseGraphStoreWithRelations, + CreateDatabaseGraphStoreInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + DatabaseGraphStoreSelect, + DatabaseGraphStoreWithRelations, + CreateDatabaseGraphStoreInput, +} from '../../orm/input-types'; +/** + * Named stores — one per version-controlled tree (e.g. one graph, one definition set) + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateDatabaseGraphStoreMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateDatabaseGraphStoreMutation( + params: { + selection: { + fields: S & DatabaseGraphStoreSelect; + } & HookStrictSelect, DatabaseGraphStoreSelect>; + } & Omit< + UseMutationOptions< + { + createDatabaseGraphStore: { + databaseGraphStore: InferSelectResult; + }; + }, + Error, + CreateDatabaseGraphStoreInput['databaseGraphStore'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createDatabaseGraphStore: { + databaseGraphStore: InferSelectResult; + }; + }, + Error, + CreateDatabaseGraphStoreInput['databaseGraphStore'] +>; +export function useCreateDatabaseGraphStoreMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: databaseGraphStoreMutationKeys.create(), + mutationFn: (data: CreateDatabaseGraphStoreInput['databaseGraphStore']) => + getClient() + .databaseGraphStore.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: databaseGraphStoreKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreateImageGrantMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreateImageGrantMutation.ts new file mode 100644 index 0000000000..37d99f4332 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useCreateImageGrantMutation.ts @@ -0,0 +1,88 @@ +/** + * Grants that make a catalog image usable by one scope + * @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 { imageGrantKeys } from '../query-keys'; +import { imageGrantMutationKeys } from '../mutation-keys'; +import type { + ImageGrantSelect, + ImageGrantWithRelations, + CreateImageGrantInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + ImageGrantSelect, + ImageGrantWithRelations, + CreateImageGrantInput, +} from '../../orm/input-types'; +/** + * Grants that make a catalog image usable by one scope + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateImageGrantMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateImageGrantMutation( + params: { + selection: { + fields: S & ImageGrantSelect; + } & HookStrictSelect, ImageGrantSelect>; + } & Omit< + UseMutationOptions< + { + createImageGrant: { + imageGrant: InferSelectResult; + }; + }, + Error, + CreateImageGrantInput['imageGrant'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createImageGrant: { + imageGrant: InferSelectResult; + }; + }, + Error, + CreateImageGrantInput['imageGrant'] +>; +export function useCreateImageGrantMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: imageGrantMutationKeys.create(), + mutationFn: (data: CreateImageGrantInput['imageGrant']) => + getClient() + .imageGrant.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: imageGrantKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreateImageMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreateImageMutation.ts new file mode 100644 index 0000000000..10552c3d08 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useCreateImageMutation.ts @@ -0,0 +1,80 @@ +/** + * Container image catalog: images available to run as functions, resources, and builds + * @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 { imageKeys } from '../query-keys'; +import { imageMutationKeys } from '../mutation-keys'; +import type { ImageSelect, ImageWithRelations, CreateImageInput } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { ImageSelect, ImageWithRelations, CreateImageInput } from '../../orm/input-types'; +/** + * Container image catalog: images available to run as functions, resources, and builds + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateImageMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateImageMutation( + params: { + selection: { + fields: S & ImageSelect; + } & HookStrictSelect, ImageSelect>; + } & Omit< + UseMutationOptions< + { + createImage: { + image: InferSelectResult; + }; + }, + Error, + CreateImageInput['image'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createImage: { + image: InferSelectResult; + }; + }, + Error, + CreateImageInput['image'] +>; +export function useCreateImageMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: imageMutationKeys.create(), + mutationFn: (data: CreateImageInput['image']) => + getClient() + .image.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: imageKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformBuildMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformBuildMutation.ts new file mode 100644 index 0000000000..680ae13df5 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformBuildMutation.ts @@ -0,0 +1,88 @@ +/** + * One run of a repository workflow: its commit, its job, and what it produced + * @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 { platformBuildKeys } from '../query-keys'; +import { platformBuildMutationKeys } from '../mutation-keys'; +import type { + PlatformBuildSelect, + PlatformBuildWithRelations, + CreatePlatformBuildInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformBuildSelect, + PlatformBuildWithRelations, + CreatePlatformBuildInput, +} from '../../orm/input-types'; +/** + * One run of a repository workflow: its commit, its job, and what it produced + * + * @example + * ```tsx + * const { mutate, isPending } = useCreatePlatformBuildMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreatePlatformBuildMutation( + params: { + selection: { + fields: S & PlatformBuildSelect; + } & HookStrictSelect, PlatformBuildSelect>; + } & Omit< + UseMutationOptions< + { + createPlatformBuild: { + platformBuild: InferSelectResult; + }; + }, + Error, + CreatePlatformBuildInput['platformBuild'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createPlatformBuild: { + platformBuild: InferSelectResult; + }; + }, + Error, + CreatePlatformBuildInput['platformBuild'] +>; +export function useCreatePlatformBuildMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformBuildMutationKeys.create(), + mutationFn: (data: CreatePlatformBuildInput['platformBuild']) => + getClient() + .platformBuild.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: platformBuildKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformBuildStepMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformBuildStepMutation.ts new file mode 100644 index 0000000000..8983d6e926 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformBuildStepMutation.ts @@ -0,0 +1,91 @@ +/** + * Partitioned append-only step and test results of a build, keyed into its log object + * @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 { platformBuildStepKeys } from '../query-keys'; +import { platformBuildStepMutationKeys } from '../mutation-keys'; +import type { + PlatformBuildStepSelect, + PlatformBuildStepWithRelations, + CreatePlatformBuildStepInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformBuildStepSelect, + PlatformBuildStepWithRelations, + CreatePlatformBuildStepInput, +} from '../../orm/input-types'; +/** + * Partitioned append-only step and test results of a build, keyed into its log object + * + * @example + * ```tsx + * const { mutate, isPending } = useCreatePlatformBuildStepMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreatePlatformBuildStepMutation( + params: { + selection: { + fields: S & PlatformBuildStepSelect; + } & HookStrictSelect, PlatformBuildStepSelect>; + } & Omit< + UseMutationOptions< + { + createPlatformBuildStep: { + platformBuildStep: InferSelectResult; + }; + }, + Error, + CreatePlatformBuildStepInput['platformBuildStep'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createPlatformBuildStep: { + platformBuildStep: InferSelectResult; + }; + }, + Error, + CreatePlatformBuildStepInput['platformBuildStep'] +>; +export function useCreatePlatformBuildStepMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformBuildStepMutationKeys.create(), + mutationFn: (data: CreatePlatformBuildStepInput['platformBuildStep']) => + getClient() + .platformBuildStep.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: platformBuildStepKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformBuilderBindingMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformBuilderBindingMutation.ts new file mode 100644 index 0000000000..5bf54919a9 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformBuilderBindingMutation.ts @@ -0,0 +1,91 @@ +/** + * Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST + * @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 { platformBuilderBindingKeys } from '../query-keys'; +import { platformBuilderBindingMutationKeys } from '../mutation-keys'; +import type { + PlatformBuilderBindingSelect, + PlatformBuilderBindingWithRelations, + CreatePlatformBuilderBindingInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformBuilderBindingSelect, + PlatformBuilderBindingWithRelations, + CreatePlatformBuilderBindingInput, +} from '../../orm/input-types'; +/** + * Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST + * + * @example + * ```tsx + * const { mutate, isPending } = useCreatePlatformBuilderBindingMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreatePlatformBuilderBindingMutation( + params: { + selection: { + fields: S & PlatformBuilderBindingSelect; + } & HookStrictSelect, PlatformBuilderBindingSelect>; + } & Omit< + UseMutationOptions< + { + createPlatformBuilderBinding: { + platformBuilderBinding: InferSelectResult; + }; + }, + Error, + CreatePlatformBuilderBindingInput['platformBuilderBinding'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createPlatformBuilderBinding: { + platformBuilderBinding: InferSelectResult; + }; + }, + Error, + CreatePlatformBuilderBindingInput['platformBuilderBinding'] +>; +export function useCreatePlatformBuilderBindingMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformBuilderBindingMutationKeys.create(), + mutationFn: (data: CreatePlatformBuilderBindingInput['platformBuilderBinding']) => + getClient() + .platformBuilderBinding.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: platformBuilderBindingKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformImageGrantMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformImageGrantMutation.ts new file mode 100644 index 0000000000..6562818f47 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformImageGrantMutation.ts @@ -0,0 +1,91 @@ +/** + * Grants that make a catalog image usable by one scope + * @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 { platformImageGrantKeys } from '../query-keys'; +import { platformImageGrantMutationKeys } from '../mutation-keys'; +import type { + PlatformImageGrantSelect, + PlatformImageGrantWithRelations, + CreatePlatformImageGrantInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformImageGrantSelect, + PlatformImageGrantWithRelations, + CreatePlatformImageGrantInput, +} from '../../orm/input-types'; +/** + * Grants that make a catalog image usable by one scope + * + * @example + * ```tsx + * const { mutate, isPending } = useCreatePlatformImageGrantMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreatePlatformImageGrantMutation( + params: { + selection: { + fields: S & PlatformImageGrantSelect; + } & HookStrictSelect, PlatformImageGrantSelect>; + } & Omit< + UseMutationOptions< + { + createPlatformImageGrant: { + platformImageGrant: InferSelectResult; + }; + }, + Error, + CreatePlatformImageGrantInput['platformImageGrant'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createPlatformImageGrant: { + platformImageGrant: InferSelectResult; + }; + }, + Error, + CreatePlatformImageGrantInput['platformImageGrant'] +>; +export function useCreatePlatformImageGrantMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformImageGrantMutationKeys.create(), + mutationFn: (data: CreatePlatformImageGrantInput['platformImageGrant']) => + getClient() + .platformImageGrant.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: platformImageGrantKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformImageMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformImageMutation.ts new file mode 100644 index 0000000000..429912abd8 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformImageMutation.ts @@ -0,0 +1,88 @@ +/** + * Container image catalog: images available to run as functions, resources, and builds + * @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 { platformImageKeys } from '../query-keys'; +import { platformImageMutationKeys } from '../mutation-keys'; +import type { + PlatformImageSelect, + PlatformImageWithRelations, + CreatePlatformImageInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformImageSelect, + PlatformImageWithRelations, + CreatePlatformImageInput, +} from '../../orm/input-types'; +/** + * Container image catalog: images available to run as functions, resources, and builds + * + * @example + * ```tsx + * const { mutate, isPending } = useCreatePlatformImageMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreatePlatformImageMutation( + params: { + selection: { + fields: S & PlatformImageSelect; + } & HookStrictSelect, PlatformImageSelect>; + } & Omit< + UseMutationOptions< + { + createPlatformImage: { + platformImage: InferSelectResult; + }; + }, + Error, + CreatePlatformImageInput['platformImage'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createPlatformImage: { + platformImage: InferSelectResult; + }; + }, + Error, + CreatePlatformImageInput['platformImage'] +>; +export function useCreatePlatformImageMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformImageMutationKeys.create(), + mutationFn: (data: CreatePlatformImageInput['platformImage']) => + getClient() + .platformImage.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: platformImageKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformK8sResourceKindMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformK8sResourceKindMutation.ts new file mode 100644 index 0000000000..de5b020ffd --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformK8sResourceKindMutation.ts @@ -0,0 +1,91 @@ +/** + * Kubernetes kind allow-list for DB-driven resources — merkle-versioned head over the infra store; the admission gate fails closed on kinds without an active row + * @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 { platformK8sResourceKindKeys } from '../query-keys'; +import { platformK8sResourceKindMutationKeys } from '../mutation-keys'; +import type { + PlatformK8sResourceKindSelect, + PlatformK8sResourceKindWithRelations, + CreatePlatformK8sResourceKindInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformK8sResourceKindSelect, + PlatformK8sResourceKindWithRelations, + CreatePlatformK8sResourceKindInput, +} from '../../orm/input-types'; +/** + * Kubernetes kind allow-list for DB-driven resources — merkle-versioned head over the infra store; the admission gate fails closed on kinds without an active row + * + * @example + * ```tsx + * const { mutate, isPending } = useCreatePlatformK8sResourceKindMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreatePlatformK8sResourceKindMutation( + params: { + selection: { + fields: S & PlatformK8sResourceKindSelect; + } & HookStrictSelect, PlatformK8sResourceKindSelect>; + } & Omit< + UseMutationOptions< + { + createPlatformK8sResourceKind: { + platformK8sResourceKind: InferSelectResult; + }; + }, + Error, + CreatePlatformK8sResourceKindInput['platformK8sResourceKind'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createPlatformK8sResourceKind: { + platformK8sResourceKind: InferSelectResult; + }; + }, + Error, + CreatePlatformK8sResourceKindInput['platformK8sResourceKind'] +>; +export function useCreatePlatformK8sResourceKindMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformK8sResourceKindMutationKeys.create(), + mutationFn: (data: CreatePlatformK8sResourceKindInput['platformK8sResourceKind']) => + getClient() + .platformK8sResourceKind.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: platformK8sResourceKindKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformK8sSpecRuleMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformK8sSpecRuleMutation.ts new file mode 100644 index 0000000000..8edda38ebe --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformK8sSpecRuleMutation.ts @@ -0,0 +1,91 @@ +/** + * Spec rulebook for DB-driven resources — merkle-versioned head over the infra store; enforced by the generated admission gate via infra_utils.check_resource_admission + * @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 { platformK8sSpecRuleKeys } from '../query-keys'; +import { platformK8sSpecRuleMutationKeys } from '../mutation-keys'; +import type { + PlatformK8sSpecRuleSelect, + PlatformK8sSpecRuleWithRelations, + CreatePlatformK8sSpecRuleInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformK8sSpecRuleSelect, + PlatformK8sSpecRuleWithRelations, + CreatePlatformK8sSpecRuleInput, +} from '../../orm/input-types'; +/** + * Spec rulebook for DB-driven resources — merkle-versioned head over the infra store; enforced by the generated admission gate via infra_utils.check_resource_admission + * + * @example + * ```tsx + * const { mutate, isPending } = useCreatePlatformK8sSpecRuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreatePlatformK8sSpecRuleMutation( + params: { + selection: { + fields: S & PlatformK8sSpecRuleSelect; + } & HookStrictSelect, PlatformK8sSpecRuleSelect>; + } & Omit< + UseMutationOptions< + { + createPlatformK8sSpecRule: { + platformK8sSpecRule: InferSelectResult; + }; + }, + Error, + CreatePlatformK8sSpecRuleInput['platformK8sSpecRule'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createPlatformK8sSpecRule: { + platformK8sSpecRule: InferSelectResult; + }; + }, + Error, + CreatePlatformK8sSpecRuleInput['platformK8sSpecRule'] +>; +export function useCreatePlatformK8sSpecRuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformK8sSpecRuleMutationKeys.create(), + mutationFn: (data: CreatePlatformK8sSpecRuleInput['platformK8sSpecRule']) => + getClient() + .platformK8sSpecRule.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: platformK8sSpecRuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformProposalCommentMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformProposalCommentMutation.ts new file mode 100644 index 0000000000..ba24b5a6ac --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformProposalCommentMutation.ts @@ -0,0 +1,91 @@ +/** + * Comments on a local proposal, optionally anchored to a line + * @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 { platformProposalCommentKeys } from '../query-keys'; +import { platformProposalCommentMutationKeys } from '../mutation-keys'; +import type { + PlatformProposalCommentSelect, + PlatformProposalCommentWithRelations, + CreatePlatformProposalCommentInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformProposalCommentSelect, + PlatformProposalCommentWithRelations, + CreatePlatformProposalCommentInput, +} from '../../orm/input-types'; +/** + * Comments on a local proposal, optionally anchored to a line + * + * @example + * ```tsx + * const { mutate, isPending } = useCreatePlatformProposalCommentMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreatePlatformProposalCommentMutation( + params: { + selection: { + fields: S & PlatformProposalCommentSelect; + } & HookStrictSelect, PlatformProposalCommentSelect>; + } & Omit< + UseMutationOptions< + { + createPlatformProposalComment: { + platformProposalComment: InferSelectResult; + }; + }, + Error, + CreatePlatformProposalCommentInput['platformProposalComment'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createPlatformProposalComment: { + platformProposalComment: InferSelectResult; + }; + }, + Error, + CreatePlatformProposalCommentInput['platformProposalComment'] +>; +export function useCreatePlatformProposalCommentMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformProposalCommentMutationKeys.create(), + mutationFn: (data: CreatePlatformProposalCommentInput['platformProposalComment']) => + getClient() + .platformProposalComment.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: platformProposalCommentKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformProposalFileViewMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformProposalFileViewMutation.ts new file mode 100644 index 0000000000..a929a769f6 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformProposalFileViewMutation.ts @@ -0,0 +1,91 @@ +/** + * Files a reviewer has read, pinned to the blob they read + * @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 { platformProposalFileViewKeys } from '../query-keys'; +import { platformProposalFileViewMutationKeys } from '../mutation-keys'; +import type { + PlatformProposalFileViewSelect, + PlatformProposalFileViewWithRelations, + CreatePlatformProposalFileViewInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformProposalFileViewSelect, + PlatformProposalFileViewWithRelations, + CreatePlatformProposalFileViewInput, +} from '../../orm/input-types'; +/** + * Files a reviewer has read, pinned to the blob they read + * + * @example + * ```tsx + * const { mutate, isPending } = useCreatePlatformProposalFileViewMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreatePlatformProposalFileViewMutation( + params: { + selection: { + fields: S & PlatformProposalFileViewSelect; + } & HookStrictSelect, PlatformProposalFileViewSelect>; + } & Omit< + UseMutationOptions< + { + createPlatformProposalFileView: { + platformProposalFileView: InferSelectResult; + }; + }, + Error, + CreatePlatformProposalFileViewInput['platformProposalFileView'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createPlatformProposalFileView: { + platformProposalFileView: InferSelectResult; + }; + }, + Error, + CreatePlatformProposalFileViewInput['platformProposalFileView'] +>; +export function useCreatePlatformProposalFileViewMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformProposalFileViewMutationKeys.create(), + mutationFn: (data: CreatePlatformProposalFileViewInput['platformProposalFileView']) => + getClient() + .platformProposalFileView.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: platformProposalFileViewKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformProposalMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformProposalMutation.ts new file mode 100644 index 0000000000..88d6361b36 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformProposalMutation.ts @@ -0,0 +1,91 @@ +/** + * Proposals against a repository: issues, changes to merge, discussions and decisions + * @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 { platformProposalKeys } from '../query-keys'; +import { platformProposalMutationKeys } from '../mutation-keys'; +import type { + PlatformProposalSelect, + PlatformProposalWithRelations, + CreatePlatformProposalInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformProposalSelect, + PlatformProposalWithRelations, + CreatePlatformProposalInput, +} from '../../orm/input-types'; +/** + * Proposals against a repository: issues, changes to merge, discussions and decisions + * + * @example + * ```tsx + * const { mutate, isPending } = useCreatePlatformProposalMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreatePlatformProposalMutation( + params: { + selection: { + fields: S & PlatformProposalSelect; + } & HookStrictSelect, PlatformProposalSelect>; + } & Omit< + UseMutationOptions< + { + createPlatformProposal: { + platformProposal: InferSelectResult; + }; + }, + Error, + CreatePlatformProposalInput['platformProposal'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createPlatformProposal: { + platformProposal: InferSelectResult; + }; + }, + Error, + CreatePlatformProposalInput['platformProposal'] +>; +export function useCreatePlatformProposalMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformProposalMutationKeys.create(), + mutationFn: (data: CreatePlatformProposalInput['platformProposal']) => + getClient() + .platformProposal.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: platformProposalKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformProposalReactionMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformProposalReactionMutation.ts new file mode 100644 index 0000000000..4b3dedba5b --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformProposalReactionMutation.ts @@ -0,0 +1,91 @@ +/** + * Emoji reactions to a local proposal or one of its comments + * @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 { platformProposalReactionKeys } from '../query-keys'; +import { platformProposalReactionMutationKeys } from '../mutation-keys'; +import type { + PlatformProposalReactionSelect, + PlatformProposalReactionWithRelations, + CreatePlatformProposalReactionInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformProposalReactionSelect, + PlatformProposalReactionWithRelations, + CreatePlatformProposalReactionInput, +} from '../../orm/input-types'; +/** + * Emoji reactions to a local proposal or one of its comments + * + * @example + * ```tsx + * const { mutate, isPending } = useCreatePlatformProposalReactionMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreatePlatformProposalReactionMutation( + params: { + selection: { + fields: S & PlatformProposalReactionSelect; + } & HookStrictSelect, PlatformProposalReactionSelect>; + } & Omit< + UseMutationOptions< + { + createPlatformProposalReaction: { + platformProposalReaction: InferSelectResult; + }; + }, + Error, + CreatePlatformProposalReactionInput['platformProposalReaction'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createPlatformProposalReaction: { + platformProposalReaction: InferSelectResult; + }; + }, + Error, + CreatePlatformProposalReactionInput['platformProposalReaction'] +>; +export function useCreatePlatformProposalReactionMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformProposalReactionMutationKeys.create(), + mutationFn: (data: CreatePlatformProposalReactionInput['platformProposalReaction']) => + getClient() + .platformProposalReaction.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: platformProposalReactionKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformProposalReviewMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformProposalReviewMutation.ts new file mode 100644 index 0000000000..e59521cb2a --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformProposalReviewMutation.ts @@ -0,0 +1,91 @@ +/** + * Review verdicts on a proposal, each pinned to the commit reviewed + * @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 { platformProposalReviewKeys } from '../query-keys'; +import { platformProposalReviewMutationKeys } from '../mutation-keys'; +import type { + PlatformProposalReviewSelect, + PlatformProposalReviewWithRelations, + CreatePlatformProposalReviewInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformProposalReviewSelect, + PlatformProposalReviewWithRelations, + CreatePlatformProposalReviewInput, +} from '../../orm/input-types'; +/** + * Review verdicts on a proposal, each pinned to the commit reviewed + * + * @example + * ```tsx + * const { mutate, isPending } = useCreatePlatformProposalReviewMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreatePlatformProposalReviewMutation( + params: { + selection: { + fields: S & PlatformProposalReviewSelect; + } & HookStrictSelect, PlatformProposalReviewSelect>; + } & Omit< + UseMutationOptions< + { + createPlatformProposalReview: { + platformProposalReview: InferSelectResult; + }; + }, + Error, + CreatePlatformProposalReviewInput['platformProposalReview'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createPlatformProposalReview: { + platformProposalReview: InferSelectResult; + }; + }, + Error, + CreatePlatformProposalReviewInput['platformProposalReview'] +>; +export function useCreatePlatformProposalReviewMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformProposalReviewMutationKeys.create(), + mutationFn: (data: CreatePlatformProposalReviewInput['platformProposalReview']) => + getClient() + .platformProposalReview.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: platformProposalReviewKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformProposalsChunkMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformProposalsChunkMutation.ts new file mode 100644 index 0000000000..443ce2a2f6 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformProposalsChunkMutation.ts @@ -0,0 +1,91 @@ +/** + * Create mutation hook for PlatformProposalsChunk + * @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 { platformProposalsChunkKeys } from '../query-keys'; +import { platformProposalsChunkMutationKeys } from '../mutation-keys'; +import type { + PlatformProposalsChunkSelect, + PlatformProposalsChunkWithRelations, + CreatePlatformProposalsChunkInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformProposalsChunkSelect, + PlatformProposalsChunkWithRelations, + CreatePlatformProposalsChunkInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a PlatformProposalsChunk + * + * @example + * ```tsx + * const { mutate, isPending } = useCreatePlatformProposalsChunkMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreatePlatformProposalsChunkMutation( + params: { + selection: { + fields: S & PlatformProposalsChunkSelect; + } & HookStrictSelect, PlatformProposalsChunkSelect>; + } & Omit< + UseMutationOptions< + { + createPlatformProposalsChunk: { + platformProposalsChunk: InferSelectResult; + }; + }, + Error, + CreatePlatformProposalsChunkInput['platformProposalsChunk'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createPlatformProposalsChunk: { + platformProposalsChunk: InferSelectResult; + }; + }, + Error, + CreatePlatformProposalsChunkInput['platformProposalsChunk'] +>; +export function useCreatePlatformProposalsChunkMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformProposalsChunkMutationKeys.create(), + mutationFn: (data: CreatePlatformProposalsChunkInput['platformProposalsChunk']) => + getClient() + .platformProposalsChunk.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: platformProposalsChunkKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformRegistryBindingMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformRegistryBindingMutation.ts new file mode 100644 index 0000000000..220666c44d --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformRegistryBindingMutation.ts @@ -0,0 +1,91 @@ +/** + * Binds a namespace to an installed container registry for a lane (realm) — the reconciler projects that registry's credentials into the namespace as an image pull secret + * @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 { platformRegistryBindingKeys } from '../query-keys'; +import { platformRegistryBindingMutationKeys } from '../mutation-keys'; +import type { + PlatformRegistryBindingSelect, + PlatformRegistryBindingWithRelations, + CreatePlatformRegistryBindingInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformRegistryBindingSelect, + PlatformRegistryBindingWithRelations, + CreatePlatformRegistryBindingInput, +} from '../../orm/input-types'; +/** + * Binds a namespace to an installed container registry for a lane (realm) — the reconciler projects that registry's credentials into the namespace as an image pull secret + * + * @example + * ```tsx + * const { mutate, isPending } = useCreatePlatformRegistryBindingMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreatePlatformRegistryBindingMutation( + params: { + selection: { + fields: S & PlatformRegistryBindingSelect; + } & HookStrictSelect, PlatformRegistryBindingSelect>; + } & Omit< + UseMutationOptions< + { + createPlatformRegistryBinding: { + platformRegistryBinding: InferSelectResult; + }; + }, + Error, + CreatePlatformRegistryBindingInput['platformRegistryBinding'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createPlatformRegistryBinding: { + platformRegistryBinding: InferSelectResult; + }; + }, + Error, + CreatePlatformRegistryBindingInput['platformRegistryBinding'] +>; +export function useCreatePlatformRegistryBindingMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformRegistryBindingMutationKeys.create(), + mutationFn: (data: CreatePlatformRegistryBindingInput['platformRegistryBinding']) => + getClient() + .platformRegistryBinding.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: platformRegistryBindingKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformRegistryGrantMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformRegistryGrantMutation.ts new file mode 100644 index 0000000000..0dcc75ca8a --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformRegistryGrantMutation.ts @@ -0,0 +1,91 @@ +/** + * Grants that make a registry usable by one scope + * @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 { platformRegistryGrantKeys } from '../query-keys'; +import { platformRegistryGrantMutationKeys } from '../mutation-keys'; +import type { + PlatformRegistryGrantSelect, + PlatformRegistryGrantWithRelations, + CreatePlatformRegistryGrantInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformRegistryGrantSelect, + PlatformRegistryGrantWithRelations, + CreatePlatformRegistryGrantInput, +} from '../../orm/input-types'; +/** + * Grants that make a registry usable by one scope + * + * @example + * ```tsx + * const { mutate, isPending } = useCreatePlatformRegistryGrantMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreatePlatformRegistryGrantMutation( + params: { + selection: { + fields: S & PlatformRegistryGrantSelect; + } & HookStrictSelect, PlatformRegistryGrantSelect>; + } & Omit< + UseMutationOptions< + { + createPlatformRegistryGrant: { + platformRegistryGrant: InferSelectResult; + }; + }, + Error, + CreatePlatformRegistryGrantInput['platformRegistryGrant'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createPlatformRegistryGrant: { + platformRegistryGrant: InferSelectResult; + }; + }, + Error, + CreatePlatformRegistryGrantInput['platformRegistryGrant'] +>; +export function useCreatePlatformRegistryGrantMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformRegistryGrantMutationKeys.create(), + mutationFn: (data: CreatePlatformRegistryGrantInput['platformRegistryGrant']) => + getClient() + .platformRegistryGrant.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: platformRegistryGrantKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformRegistryMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformRegistryMutation.ts new file mode 100644 index 0000000000..946e28536d --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformRegistryMutation.ts @@ -0,0 +1,91 @@ +/** + * Artifact registries this scope pulls from or pushes to (OCI images, npm packages), platform-run or external + * @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 { platformRegistryKeys } from '../query-keys'; +import { platformRegistryMutationKeys } from '../mutation-keys'; +import type { + PlatformRegistrySelect, + PlatformRegistryWithRelations, + CreatePlatformRegistryInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformRegistrySelect, + PlatformRegistryWithRelations, + CreatePlatformRegistryInput, +} from '../../orm/input-types'; +/** + * Artifact registries this scope pulls from or pushes to (OCI images, npm packages), platform-run or external + * + * @example + * ```tsx + * const { mutate, isPending } = useCreatePlatformRegistryMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreatePlatformRegistryMutation( + params: { + selection: { + fields: S & PlatformRegistrySelect; + } & HookStrictSelect, PlatformRegistrySelect>; + } & Omit< + UseMutationOptions< + { + createPlatformRegistry: { + platformRegistry: InferSelectResult; + }; + }, + Error, + CreatePlatformRegistryInput['platformRegistry'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createPlatformRegistry: { + platformRegistry: InferSelectResult; + }; + }, + Error, + CreatePlatformRegistryInput['platformRegistry'] +>; +export function useCreatePlatformRegistryMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformRegistryMutationKeys.create(), + mutationFn: (data: CreatePlatformRegistryInput['platformRegistry']) => + getClient() + .platformRegistry.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: platformRegistryKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformRepositoryEventMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformRepositoryEventMutation.ts new file mode 100644 index 0000000000..4f38ca1007 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformRepositoryEventMutation.ts @@ -0,0 +1,91 @@ +/** + * Normalized repository events from local hooks and external providers + * @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 { platformRepositoryEventKeys } from '../query-keys'; +import { platformRepositoryEventMutationKeys } from '../mutation-keys'; +import type { + PlatformRepositoryEventSelect, + PlatformRepositoryEventWithRelations, + CreatePlatformRepositoryEventInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformRepositoryEventSelect, + PlatformRepositoryEventWithRelations, + CreatePlatformRepositoryEventInput, +} from '../../orm/input-types'; +/** + * Normalized repository events from local hooks and external providers + * + * @example + * ```tsx + * const { mutate, isPending } = useCreatePlatformRepositoryEventMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreatePlatformRepositoryEventMutation( + params: { + selection: { + fields: S & PlatformRepositoryEventSelect; + } & HookStrictSelect, PlatformRepositoryEventSelect>; + } & Omit< + UseMutationOptions< + { + createPlatformRepositoryEvent: { + platformRepositoryEvent: InferSelectResult; + }; + }, + Error, + CreatePlatformRepositoryEventInput['platformRepositoryEvent'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createPlatformRepositoryEvent: { + platformRepositoryEvent: InferSelectResult; + }; + }, + Error, + CreatePlatformRepositoryEventInput['platformRepositoryEvent'] +>; +export function useCreatePlatformRepositoryEventMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformRepositoryEventMutationKeys.create(), + mutationFn: (data: CreatePlatformRepositoryEventInput['platformRepositoryEvent']) => + getClient() + .platformRepositoryEvent.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: platformRepositoryEventKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformRepositoryMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformRepositoryMutation.ts new file mode 100644 index 0000000000..edfdb18941 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformRepositoryMutation.ts @@ -0,0 +1,91 @@ +/** + * Source repositories, hosted locally or on an external provider + * @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 { platformRepositoryKeys } from '../query-keys'; +import { platformRepositoryMutationKeys } from '../mutation-keys'; +import type { + PlatformRepositorySelect, + PlatformRepositoryWithRelations, + CreatePlatformRepositoryInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformRepositorySelect, + PlatformRepositoryWithRelations, + CreatePlatformRepositoryInput, +} from '../../orm/input-types'; +/** + * Source repositories, hosted locally or on an external provider + * + * @example + * ```tsx + * const { mutate, isPending } = useCreatePlatformRepositoryMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreatePlatformRepositoryMutation( + params: { + selection: { + fields: S & PlatformRepositorySelect; + } & HookStrictSelect, PlatformRepositorySelect>; + } & Omit< + UseMutationOptions< + { + createPlatformRepository: { + platformRepository: InferSelectResult; + }; + }, + Error, + CreatePlatformRepositoryInput['platformRepository'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createPlatformRepository: { + platformRepository: InferSelectResult; + }; + }, + Error, + CreatePlatformRepositoryInput['platformRepository'] +>; +export function useCreatePlatformRepositoryMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformRepositoryMutationKeys.create(), + mutationFn: (data: CreatePlatformRepositoryInput['platformRepository']) => + getClient() + .platformRepository.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: platformRepositoryKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformRepositoryRequiredCheckMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformRepositoryRequiredCheckMutation.ts new file mode 100644 index 0000000000..5edeb05d5f --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformRepositoryRequiredCheckMutation.ts @@ -0,0 +1,105 @@ +/** + * Workflows required to pass before a repository proposal merges + * @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 { platformRepositoryRequiredCheckKeys } from '../query-keys'; +import { platformRepositoryRequiredCheckMutationKeys } from '../mutation-keys'; +import type { + PlatformRepositoryRequiredCheckSelect, + PlatformRepositoryRequiredCheckWithRelations, + CreatePlatformRepositoryRequiredCheckInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformRepositoryRequiredCheckSelect, + PlatformRepositoryRequiredCheckWithRelations, + CreatePlatformRepositoryRequiredCheckInput, +} from '../../orm/input-types'; +/** + * Workflows required to pass before a repository proposal merges + * + * @example + * ```tsx + * const { mutate, isPending } = useCreatePlatformRepositoryRequiredCheckMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreatePlatformRepositoryRequiredCheckMutation< + S extends PlatformRepositoryRequiredCheckSelect, +>( + params: { + selection: { + fields: S & PlatformRepositoryRequiredCheckSelect; + } & HookStrictSelect, PlatformRepositoryRequiredCheckSelect>; + } & Omit< + UseMutationOptions< + { + createPlatformRepositoryRequiredCheck: { + platformRepositoryRequiredCheck: InferSelectResult< + PlatformRepositoryRequiredCheckWithRelations, + S + >; + }; + }, + Error, + CreatePlatformRepositoryRequiredCheckInput['platformRepositoryRequiredCheck'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createPlatformRepositoryRequiredCheck: { + platformRepositoryRequiredCheck: InferSelectResult< + PlatformRepositoryRequiredCheckWithRelations, + S + >; + }; + }, + Error, + CreatePlatformRepositoryRequiredCheckInput['platformRepositoryRequiredCheck'] +>; +export function useCreatePlatformRepositoryRequiredCheckMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + CreatePlatformRepositoryRequiredCheckInput['platformRepositoryRequiredCheck'] + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformRepositoryRequiredCheckMutationKeys.create(), + mutationFn: ( + data: CreatePlatformRepositoryRequiredCheckInput['platformRepositoryRequiredCheck'] + ) => + getClient() + .platformRepositoryRequiredCheck.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: platformRepositoryRequiredCheckKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformRepositoryWorkflowMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformRepositoryWorkflowMutation.ts new file mode 100644 index 0000000000..f24286262a --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformRepositoryWorkflowMutation.ts @@ -0,0 +1,97 @@ +/** + * Bindings from a repository event to the flow graph that should run + * @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 { platformRepositoryWorkflowKeys } from '../query-keys'; +import { platformRepositoryWorkflowMutationKeys } from '../mutation-keys'; +import type { + PlatformRepositoryWorkflowSelect, + PlatformRepositoryWorkflowWithRelations, + CreatePlatformRepositoryWorkflowInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformRepositoryWorkflowSelect, + PlatformRepositoryWorkflowWithRelations, + CreatePlatformRepositoryWorkflowInput, +} from '../../orm/input-types'; +/** + * Bindings from a repository event to the flow graph that should run + * + * @example + * ```tsx + * const { mutate, isPending } = useCreatePlatformRepositoryWorkflowMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreatePlatformRepositoryWorkflowMutation< + S extends PlatformRepositoryWorkflowSelect, +>( + params: { + selection: { + fields: S & PlatformRepositoryWorkflowSelect; + } & HookStrictSelect, PlatformRepositoryWorkflowSelect>; + } & Omit< + UseMutationOptions< + { + createPlatformRepositoryWorkflow: { + platformRepositoryWorkflow: InferSelectResult; + }; + }, + Error, + CreatePlatformRepositoryWorkflowInput['platformRepositoryWorkflow'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createPlatformRepositoryWorkflow: { + platformRepositoryWorkflow: InferSelectResult; + }; + }, + Error, + CreatePlatformRepositoryWorkflowInput['platformRepositoryWorkflow'] +>; +export function useCreatePlatformRepositoryWorkflowMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + CreatePlatformRepositoryWorkflowInput['platformRepositoryWorkflow'] + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformRepositoryWorkflowMutationKeys.create(), + mutationFn: (data: CreatePlatformRepositoryWorkflowInput['platformRepositoryWorkflow']) => + getClient() + .platformRepositoryWorkflow.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: platformRepositoryWorkflowKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformResourceObservedStorageMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformResourceObservedStorageMutation.ts new file mode 100644 index 0000000000..8de6986922 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformResourceObservedStorageMutation.ts @@ -0,0 +1,105 @@ +/** + * Create mutation hook for PlatformResourceObservedStorage + * @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 { platformResourceObservedStorageKeys } from '../query-keys'; +import { platformResourceObservedStorageMutationKeys } from '../mutation-keys'; +import type { + PlatformResourceObservedStorageSelect, + PlatformResourceObservedStorageWithRelations, + CreatePlatformResourceObservedStorageInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformResourceObservedStorageSelect, + PlatformResourceObservedStorageWithRelations, + CreatePlatformResourceObservedStorageInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a PlatformResourceObservedStorage + * + * @example + * ```tsx + * const { mutate, isPending } = useCreatePlatformResourceObservedStorageMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreatePlatformResourceObservedStorageMutation< + S extends PlatformResourceObservedStorageSelect, +>( + params: { + selection: { + fields: S & PlatformResourceObservedStorageSelect; + } & HookStrictSelect, PlatformResourceObservedStorageSelect>; + } & Omit< + UseMutationOptions< + { + createPlatformResourceObservedStorage: { + platformResourceObservedStorage: InferSelectResult< + PlatformResourceObservedStorageWithRelations, + S + >; + }; + }, + Error, + CreatePlatformResourceObservedStorageInput['platformResourceObservedStorage'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createPlatformResourceObservedStorage: { + platformResourceObservedStorage: InferSelectResult< + PlatformResourceObservedStorageWithRelations, + S + >; + }; + }, + Error, + CreatePlatformResourceObservedStorageInput['platformResourceObservedStorage'] +>; +export function useCreatePlatformResourceObservedStorageMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + CreatePlatformResourceObservedStorageInput['platformResourceObservedStorage'] + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformResourceObservedStorageMutationKeys.create(), + mutationFn: ( + data: CreatePlatformResourceObservedStorageInput['platformResourceObservedStorage'] + ) => + getClient() + .platformResourceObservedStorage.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: platformResourceObservedStorageKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreateProposalCommentMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreateProposalCommentMutation.ts new file mode 100644 index 0000000000..9291f8cc6e --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useCreateProposalCommentMutation.ts @@ -0,0 +1,91 @@ +/** + * Comments on a local proposal, optionally anchored to a line + * @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 { proposalCommentKeys } from '../query-keys'; +import { proposalCommentMutationKeys } from '../mutation-keys'; +import type { + ProposalCommentSelect, + ProposalCommentWithRelations, + CreateProposalCommentInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + ProposalCommentSelect, + ProposalCommentWithRelations, + CreateProposalCommentInput, +} from '../../orm/input-types'; +/** + * Comments on a local proposal, optionally anchored to a line + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateProposalCommentMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateProposalCommentMutation( + params: { + selection: { + fields: S & ProposalCommentSelect; + } & HookStrictSelect, ProposalCommentSelect>; + } & Omit< + UseMutationOptions< + { + createProposalComment: { + proposalComment: InferSelectResult; + }; + }, + Error, + CreateProposalCommentInput['proposalComment'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createProposalComment: { + proposalComment: InferSelectResult; + }; + }, + Error, + CreateProposalCommentInput['proposalComment'] +>; +export function useCreateProposalCommentMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: proposalCommentMutationKeys.create(), + mutationFn: (data: CreateProposalCommentInput['proposalComment']) => + getClient() + .proposalComment.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: proposalCommentKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreateProposalFileViewMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreateProposalFileViewMutation.ts new file mode 100644 index 0000000000..49b48799fe --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useCreateProposalFileViewMutation.ts @@ -0,0 +1,91 @@ +/** + * Files a reviewer has read, pinned to the blob they read + * @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 { proposalFileViewKeys } from '../query-keys'; +import { proposalFileViewMutationKeys } from '../mutation-keys'; +import type { + ProposalFileViewSelect, + ProposalFileViewWithRelations, + CreateProposalFileViewInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + ProposalFileViewSelect, + ProposalFileViewWithRelations, + CreateProposalFileViewInput, +} from '../../orm/input-types'; +/** + * Files a reviewer has read, pinned to the blob they read + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateProposalFileViewMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateProposalFileViewMutation( + params: { + selection: { + fields: S & ProposalFileViewSelect; + } & HookStrictSelect, ProposalFileViewSelect>; + } & Omit< + UseMutationOptions< + { + createProposalFileView: { + proposalFileView: InferSelectResult; + }; + }, + Error, + CreateProposalFileViewInput['proposalFileView'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createProposalFileView: { + proposalFileView: InferSelectResult; + }; + }, + Error, + CreateProposalFileViewInput['proposalFileView'] +>; +export function useCreateProposalFileViewMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: proposalFileViewMutationKeys.create(), + mutationFn: (data: CreateProposalFileViewInput['proposalFileView']) => + getClient() + .proposalFileView.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: proposalFileViewKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreateProposalMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreateProposalMutation.ts new file mode 100644 index 0000000000..01279089d0 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useCreateProposalMutation.ts @@ -0,0 +1,88 @@ +/** + * Proposals against a repository: issues, changes to merge, discussions and decisions + * @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 { proposalKeys } from '../query-keys'; +import { proposalMutationKeys } from '../mutation-keys'; +import type { + ProposalSelect, + ProposalWithRelations, + CreateProposalInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + ProposalSelect, + ProposalWithRelations, + CreateProposalInput, +} from '../../orm/input-types'; +/** + * Proposals against a repository: issues, changes to merge, discussions and decisions + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateProposalMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateProposalMutation( + params: { + selection: { + fields: S & ProposalSelect; + } & HookStrictSelect, ProposalSelect>; + } & Omit< + UseMutationOptions< + { + createProposal: { + proposal: InferSelectResult; + }; + }, + Error, + CreateProposalInput['proposal'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createProposal: { + proposal: InferSelectResult; + }; + }, + Error, + CreateProposalInput['proposal'] +>; +export function useCreateProposalMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: proposalMutationKeys.create(), + mutationFn: (data: CreateProposalInput['proposal']) => + getClient() + .proposal.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: proposalKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreateProposalReactionMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreateProposalReactionMutation.ts new file mode 100644 index 0000000000..b0ac69ff34 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useCreateProposalReactionMutation.ts @@ -0,0 +1,91 @@ +/** + * Emoji reactions to a local proposal or one of its comments + * @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 { proposalReactionKeys } from '../query-keys'; +import { proposalReactionMutationKeys } from '../mutation-keys'; +import type { + ProposalReactionSelect, + ProposalReactionWithRelations, + CreateProposalReactionInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + ProposalReactionSelect, + ProposalReactionWithRelations, + CreateProposalReactionInput, +} from '../../orm/input-types'; +/** + * Emoji reactions to a local proposal or one of its comments + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateProposalReactionMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateProposalReactionMutation( + params: { + selection: { + fields: S & ProposalReactionSelect; + } & HookStrictSelect, ProposalReactionSelect>; + } & Omit< + UseMutationOptions< + { + createProposalReaction: { + proposalReaction: InferSelectResult; + }; + }, + Error, + CreateProposalReactionInput['proposalReaction'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createProposalReaction: { + proposalReaction: InferSelectResult; + }; + }, + Error, + CreateProposalReactionInput['proposalReaction'] +>; +export function useCreateProposalReactionMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: proposalReactionMutationKeys.create(), + mutationFn: (data: CreateProposalReactionInput['proposalReaction']) => + getClient() + .proposalReaction.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: proposalReactionKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreateProposalReviewMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreateProposalReviewMutation.ts new file mode 100644 index 0000000000..3a9beb2e64 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useCreateProposalReviewMutation.ts @@ -0,0 +1,91 @@ +/** + * Review verdicts on a proposal, each pinned to the commit reviewed + * @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 { proposalReviewKeys } from '../query-keys'; +import { proposalReviewMutationKeys } from '../mutation-keys'; +import type { + ProposalReviewSelect, + ProposalReviewWithRelations, + CreateProposalReviewInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + ProposalReviewSelect, + ProposalReviewWithRelations, + CreateProposalReviewInput, +} from '../../orm/input-types'; +/** + * Review verdicts on a proposal, each pinned to the commit reviewed + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateProposalReviewMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateProposalReviewMutation( + params: { + selection: { + fields: S & ProposalReviewSelect; + } & HookStrictSelect, ProposalReviewSelect>; + } & Omit< + UseMutationOptions< + { + createProposalReview: { + proposalReview: InferSelectResult; + }; + }, + Error, + CreateProposalReviewInput['proposalReview'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createProposalReview: { + proposalReview: InferSelectResult; + }; + }, + Error, + CreateProposalReviewInput['proposalReview'] +>; +export function useCreateProposalReviewMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: proposalReviewMutationKeys.create(), + mutationFn: (data: CreateProposalReviewInput['proposalReview']) => + getClient() + .proposalReview.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: proposalReviewKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreateProposalsChunkMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreateProposalsChunkMutation.ts new file mode 100644 index 0000000000..c27fca4eb8 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useCreateProposalsChunkMutation.ts @@ -0,0 +1,91 @@ +/** + * Create mutation hook for ProposalsChunk + * @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 { proposalsChunkKeys } from '../query-keys'; +import { proposalsChunkMutationKeys } from '../mutation-keys'; +import type { + ProposalsChunkSelect, + ProposalsChunkWithRelations, + CreateProposalsChunkInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + ProposalsChunkSelect, + ProposalsChunkWithRelations, + CreateProposalsChunkInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a ProposalsChunk + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateProposalsChunkMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateProposalsChunkMutation( + params: { + selection: { + fields: S & ProposalsChunkSelect; + } & HookStrictSelect, ProposalsChunkSelect>; + } & Omit< + UseMutationOptions< + { + createProposalsChunk: { + proposalsChunk: InferSelectResult; + }; + }, + Error, + CreateProposalsChunkInput['proposalsChunk'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createProposalsChunk: { + proposalsChunk: InferSelectResult; + }; + }, + Error, + CreateProposalsChunkInput['proposalsChunk'] +>; +export function useCreateProposalsChunkMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: proposalsChunkMutationKeys.create(), + mutationFn: (data: CreateProposalsChunkInput['proposalsChunk']) => + getClient() + .proposalsChunk.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: proposalsChunkKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreateRegistryBindingMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreateRegistryBindingMutation.ts new file mode 100644 index 0000000000..28d8af4ca5 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useCreateRegistryBindingMutation.ts @@ -0,0 +1,91 @@ +/** + * Binds a namespace to an installed container registry for a lane (realm) — the reconciler projects that registry's credentials into the namespace as an image pull secret + * @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 { registryBindingKeys } from '../query-keys'; +import { registryBindingMutationKeys } from '../mutation-keys'; +import type { + RegistryBindingSelect, + RegistryBindingWithRelations, + CreateRegistryBindingInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + RegistryBindingSelect, + RegistryBindingWithRelations, + CreateRegistryBindingInput, +} from '../../orm/input-types'; +/** + * Binds a namespace to an installed container registry for a lane (realm) — the reconciler projects that registry's credentials into the namespace as an image pull secret + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateRegistryBindingMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateRegistryBindingMutation( + params: { + selection: { + fields: S & RegistryBindingSelect; + } & HookStrictSelect, RegistryBindingSelect>; + } & Omit< + UseMutationOptions< + { + createRegistryBinding: { + registryBinding: InferSelectResult; + }; + }, + Error, + CreateRegistryBindingInput['registryBinding'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createRegistryBinding: { + registryBinding: InferSelectResult; + }; + }, + Error, + CreateRegistryBindingInput['registryBinding'] +>; +export function useCreateRegistryBindingMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: registryBindingMutationKeys.create(), + mutationFn: (data: CreateRegistryBindingInput['registryBinding']) => + getClient() + .registryBinding.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: registryBindingKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreateRegistryGrantMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreateRegistryGrantMutation.ts new file mode 100644 index 0000000000..0e906a7bcf --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useCreateRegistryGrantMutation.ts @@ -0,0 +1,88 @@ +/** + * Grants that make a registry usable by one scope + * @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 { registryGrantKeys } from '../query-keys'; +import { registryGrantMutationKeys } from '../mutation-keys'; +import type { + RegistryGrantSelect, + RegistryGrantWithRelations, + CreateRegistryGrantInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + RegistryGrantSelect, + RegistryGrantWithRelations, + CreateRegistryGrantInput, +} from '../../orm/input-types'; +/** + * Grants that make a registry usable by one scope + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateRegistryGrantMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateRegistryGrantMutation( + params: { + selection: { + fields: S & RegistryGrantSelect; + } & HookStrictSelect, RegistryGrantSelect>; + } & Omit< + UseMutationOptions< + { + createRegistryGrant: { + registryGrant: InferSelectResult; + }; + }, + Error, + CreateRegistryGrantInput['registryGrant'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createRegistryGrant: { + registryGrant: InferSelectResult; + }; + }, + Error, + CreateRegistryGrantInput['registryGrant'] +>; +export function useCreateRegistryGrantMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: registryGrantMutationKeys.create(), + mutationFn: (data: CreateRegistryGrantInput['registryGrant']) => + getClient() + .registryGrant.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: registryGrantKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreateRegistryMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreateRegistryMutation.ts new file mode 100644 index 0000000000..ffe350dcd4 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useCreateRegistryMutation.ts @@ -0,0 +1,88 @@ +/** + * Artifact registries this scope pulls from or pushes to (OCI images, npm packages), platform-run or external + * @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 { registryKeys } from '../query-keys'; +import { registryMutationKeys } from '../mutation-keys'; +import type { + RegistrySelect, + RegistryWithRelations, + CreateRegistryInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + RegistrySelect, + RegistryWithRelations, + CreateRegistryInput, +} from '../../orm/input-types'; +/** + * Artifact registries this scope pulls from or pushes to (OCI images, npm packages), platform-run or external + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateRegistryMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateRegistryMutation( + params: { + selection: { + fields: S & RegistrySelect; + } & HookStrictSelect, RegistrySelect>; + } & Omit< + UseMutationOptions< + { + createRegistry: { + registry: InferSelectResult; + }; + }, + Error, + CreateRegistryInput['registry'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createRegistry: { + registry: InferSelectResult; + }; + }, + Error, + CreateRegistryInput['registry'] +>; +export function useCreateRegistryMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: registryMutationKeys.create(), + mutationFn: (data: CreateRegistryInput['registry']) => + getClient() + .registry.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: registryKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreateRepositoryEventMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreateRepositoryEventMutation.ts new file mode 100644 index 0000000000..d22c665609 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useCreateRepositoryEventMutation.ts @@ -0,0 +1,91 @@ +/** + * Normalized repository events from local hooks and external providers + * @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 { repositoryEventKeys } from '../query-keys'; +import { repositoryEventMutationKeys } from '../mutation-keys'; +import type { + RepositoryEventSelect, + RepositoryEventWithRelations, + CreateRepositoryEventInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + RepositoryEventSelect, + RepositoryEventWithRelations, + CreateRepositoryEventInput, +} from '../../orm/input-types'; +/** + * Normalized repository events from local hooks and external providers + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateRepositoryEventMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateRepositoryEventMutation( + params: { + selection: { + fields: S & RepositoryEventSelect; + } & HookStrictSelect, RepositoryEventSelect>; + } & Omit< + UseMutationOptions< + { + createRepositoryEvent: { + repositoryEvent: InferSelectResult; + }; + }, + Error, + CreateRepositoryEventInput['repositoryEvent'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createRepositoryEvent: { + repositoryEvent: InferSelectResult; + }; + }, + Error, + CreateRepositoryEventInput['repositoryEvent'] +>; +export function useCreateRepositoryEventMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: repositoryEventMutationKeys.create(), + mutationFn: (data: CreateRepositoryEventInput['repositoryEvent']) => + getClient() + .repositoryEvent.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: repositoryEventKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreateRepositoryMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreateRepositoryMutation.ts new file mode 100644 index 0000000000..9941f682f3 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useCreateRepositoryMutation.ts @@ -0,0 +1,88 @@ +/** + * Source repositories, hosted locally or on an external provider + * @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 { repositoryKeys } from '../query-keys'; +import { repositoryMutationKeys } from '../mutation-keys'; +import type { + RepositorySelect, + RepositoryWithRelations, + CreateRepositoryInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + RepositorySelect, + RepositoryWithRelations, + CreateRepositoryInput, +} from '../../orm/input-types'; +/** + * Source repositories, hosted locally or on an external provider + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateRepositoryMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateRepositoryMutation( + params: { + selection: { + fields: S & RepositorySelect; + } & HookStrictSelect, RepositorySelect>; + } & Omit< + UseMutationOptions< + { + createRepository: { + repository: InferSelectResult; + }; + }, + Error, + CreateRepositoryInput['repository'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createRepository: { + repository: InferSelectResult; + }; + }, + Error, + CreateRepositoryInput['repository'] +>; +export function useCreateRepositoryMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: repositoryMutationKeys.create(), + mutationFn: (data: CreateRepositoryInput['repository']) => + getClient() + .repository.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: repositoryKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreateRepositoryRequiredCheckMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreateRepositoryRequiredCheckMutation.ts new file mode 100644 index 0000000000..587e27e04f --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useCreateRepositoryRequiredCheckMutation.ts @@ -0,0 +1,91 @@ +/** + * Workflows required to pass before a repository proposal merges + * @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 { repositoryRequiredCheckKeys } from '../query-keys'; +import { repositoryRequiredCheckMutationKeys } from '../mutation-keys'; +import type { + RepositoryRequiredCheckSelect, + RepositoryRequiredCheckWithRelations, + CreateRepositoryRequiredCheckInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + RepositoryRequiredCheckSelect, + RepositoryRequiredCheckWithRelations, + CreateRepositoryRequiredCheckInput, +} from '../../orm/input-types'; +/** + * Workflows required to pass before a repository proposal merges + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateRepositoryRequiredCheckMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateRepositoryRequiredCheckMutation( + params: { + selection: { + fields: S & RepositoryRequiredCheckSelect; + } & HookStrictSelect, RepositoryRequiredCheckSelect>; + } & Omit< + UseMutationOptions< + { + createRepositoryRequiredCheck: { + repositoryRequiredCheck: InferSelectResult; + }; + }, + Error, + CreateRepositoryRequiredCheckInput['repositoryRequiredCheck'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createRepositoryRequiredCheck: { + repositoryRequiredCheck: InferSelectResult; + }; + }, + Error, + CreateRepositoryRequiredCheckInput['repositoryRequiredCheck'] +>; +export function useCreateRepositoryRequiredCheckMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: repositoryRequiredCheckMutationKeys.create(), + mutationFn: (data: CreateRepositoryRequiredCheckInput['repositoryRequiredCheck']) => + getClient() + .repositoryRequiredCheck.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: repositoryRequiredCheckKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreateRepositoryWorkflowMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreateRepositoryWorkflowMutation.ts new file mode 100644 index 0000000000..5446585c0a --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useCreateRepositoryWorkflowMutation.ts @@ -0,0 +1,91 @@ +/** + * Bindings from a repository event to the flow graph that should run + * @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 { repositoryWorkflowKeys } from '../query-keys'; +import { repositoryWorkflowMutationKeys } from '../mutation-keys'; +import type { + RepositoryWorkflowSelect, + RepositoryWorkflowWithRelations, + CreateRepositoryWorkflowInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + RepositoryWorkflowSelect, + RepositoryWorkflowWithRelations, + CreateRepositoryWorkflowInput, +} from '../../orm/input-types'; +/** + * Bindings from a repository event to the flow graph that should run + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateRepositoryWorkflowMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateRepositoryWorkflowMutation( + params: { + selection: { + fields: S & RepositoryWorkflowSelect; + } & HookStrictSelect, RepositoryWorkflowSelect>; + } & Omit< + UseMutationOptions< + { + createRepositoryWorkflow: { + repositoryWorkflow: InferSelectResult; + }; + }, + Error, + CreateRepositoryWorkflowInput['repositoryWorkflow'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createRepositoryWorkflow: { + repositoryWorkflow: InferSelectResult; + }; + }, + Error, + CreateRepositoryWorkflowInput['repositoryWorkflow'] +>; +export function useCreateRepositoryWorkflowMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: repositoryWorkflowMutationKeys.create(), + mutationFn: (data: CreateRepositoryWorkflowInput['repositoryWorkflow']) => + getClient() + .repositoryWorkflow.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: repositoryWorkflowKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreateResourceObservedStorageMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreateResourceObservedStorageMutation.ts new file mode 100644 index 0000000000..6a226a4e57 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useCreateResourceObservedStorageMutation.ts @@ -0,0 +1,91 @@ +/** + * Create mutation hook for ResourceObservedStorage + * @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 { resourceObservedStorageKeys } from '../query-keys'; +import { resourceObservedStorageMutationKeys } from '../mutation-keys'; +import type { + ResourceObservedStorageSelect, + ResourceObservedStorageWithRelations, + CreateResourceObservedStorageInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + ResourceObservedStorageSelect, + ResourceObservedStorageWithRelations, + CreateResourceObservedStorageInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a ResourceObservedStorage + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateResourceObservedStorageMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateResourceObservedStorageMutation( + params: { + selection: { + fields: S & ResourceObservedStorageSelect; + } & HookStrictSelect, ResourceObservedStorageSelect>; + } & Omit< + UseMutationOptions< + { + createResourceObservedStorage: { + resourceObservedStorage: InferSelectResult; + }; + }, + Error, + CreateResourceObservedStorageInput['resourceObservedStorage'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createResourceObservedStorage: { + resourceObservedStorage: InferSelectResult; + }; + }, + Error, + CreateResourceObservedStorageInput['resourceObservedStorage'] +>; +export function useCreateResourceObservedStorageMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: resourceObservedStorageMutationKeys.create(), + mutationFn: (data: CreateResourceObservedStorageInput['resourceObservedStorage']) => + getClient() + .resourceObservedStorage.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: resourceObservedStorageKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useDatabaseAddEdgeAndSaveMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useDatabaseAddEdgeAndSaveMutation.ts new file mode 100644 index 0000000000..4984debd24 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useDatabaseAddEdgeAndSaveMutation.ts @@ -0,0 +1,58 @@ +/** + * Custom mutation hook for databaseAddEdgeAndSave + * @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 { DatabaseAddEdgeAndSaveVariables } from '../../orm/mutation'; +import type { + DatabaseAddEdgeAndSavePayloadSelect, + DatabaseAddEdgeAndSavePayload, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { DatabaseAddEdgeAndSaveVariables } from '../../orm/mutation'; +export type { DatabaseAddEdgeAndSavePayloadSelect } from '../../orm/input-types'; +export function useDatabaseAddEdgeAndSaveMutation( + params: { + selection: { + fields: S & DatabaseAddEdgeAndSavePayloadSelect; + } & HookStrictSelect, DatabaseAddEdgeAndSavePayloadSelect>; + } & Omit< + UseMutationOptions< + { + databaseAddEdgeAndSave: InferSelectResult | null; + }, + Error, + DatabaseAddEdgeAndSaveVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + databaseAddEdgeAndSave: InferSelectResult | null; + }, + Error, + DatabaseAddEdgeAndSaveVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.databaseAddEdgeAndSave(), + mutationFn: (variables: DatabaseAddEdgeAndSaveVariables) => + getClient() + .mutation.databaseAddEdgeAndSave(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useDatabaseAddEdgeMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useDatabaseAddEdgeMutation.ts new file mode 100644 index 0000000000..e1a1cbc747 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useDatabaseAddEdgeMutation.ts @@ -0,0 +1,55 @@ +/** + * Custom mutation hook for databaseAddEdge + * @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 { DatabaseAddEdgeVariables } from '../../orm/mutation'; +import type { DatabaseAddEdgePayloadSelect, DatabaseAddEdgePayload } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { DatabaseAddEdgeVariables } from '../../orm/mutation'; +export type { DatabaseAddEdgePayloadSelect } from '../../orm/input-types'; +export function useDatabaseAddEdgeMutation( + params: { + selection: { + fields: S & DatabaseAddEdgePayloadSelect; + } & HookStrictSelect, DatabaseAddEdgePayloadSelect>; + } & Omit< + UseMutationOptions< + { + databaseAddEdge: InferSelectResult | null; + }, + Error, + DatabaseAddEdgeVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + databaseAddEdge: InferSelectResult | null; + }, + Error, + DatabaseAddEdgeVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.databaseAddEdge(), + mutationFn: (variables: DatabaseAddEdgeVariables) => + getClient() + .mutation.databaseAddEdge(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useDatabaseAddNodeAndSaveMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useDatabaseAddNodeAndSaveMutation.ts new file mode 100644 index 0000000000..4448177472 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useDatabaseAddNodeAndSaveMutation.ts @@ -0,0 +1,58 @@ +/** + * Custom mutation hook for databaseAddNodeAndSave + * @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 { DatabaseAddNodeAndSaveVariables } from '../../orm/mutation'; +import type { + DatabaseAddNodeAndSavePayloadSelect, + DatabaseAddNodeAndSavePayload, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { DatabaseAddNodeAndSaveVariables } from '../../orm/mutation'; +export type { DatabaseAddNodeAndSavePayloadSelect } from '../../orm/input-types'; +export function useDatabaseAddNodeAndSaveMutation( + params: { + selection: { + fields: S & DatabaseAddNodeAndSavePayloadSelect; + } & HookStrictSelect, DatabaseAddNodeAndSavePayloadSelect>; + } & Omit< + UseMutationOptions< + { + databaseAddNodeAndSave: InferSelectResult | null; + }, + Error, + DatabaseAddNodeAndSaveVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + databaseAddNodeAndSave: InferSelectResult | null; + }, + Error, + DatabaseAddNodeAndSaveVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.databaseAddNodeAndSave(), + mutationFn: (variables: DatabaseAddNodeAndSaveVariables) => + getClient() + .mutation.databaseAddNodeAndSave(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useDatabaseAddNodeMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useDatabaseAddNodeMutation.ts new file mode 100644 index 0000000000..07230ecffd --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useDatabaseAddNodeMutation.ts @@ -0,0 +1,55 @@ +/** + * Custom mutation hook for databaseAddNode + * @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 { DatabaseAddNodeVariables } from '../../orm/mutation'; +import type { DatabaseAddNodePayloadSelect, DatabaseAddNodePayload } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { DatabaseAddNodeVariables } from '../../orm/mutation'; +export type { DatabaseAddNodePayloadSelect } from '../../orm/input-types'; +export function useDatabaseAddNodeMutation( + params: { + selection: { + fields: S & DatabaseAddNodePayloadSelect; + } & HookStrictSelect, DatabaseAddNodePayloadSelect>; + } & Omit< + UseMutationOptions< + { + databaseAddNode: InferSelectResult | null; + }, + Error, + DatabaseAddNodeVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + databaseAddNode: InferSelectResult | null; + }, + Error, + DatabaseAddNodeVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.databaseAddNode(), + mutationFn: (variables: DatabaseAddNodeVariables) => + getClient() + .mutation.databaseAddNode(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useDatabaseApproveNodeMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useDatabaseApproveNodeMutation.ts new file mode 100644 index 0000000000..fb0bbd85a7 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useDatabaseApproveNodeMutation.ts @@ -0,0 +1,58 @@ +/** + * Custom mutation hook for databaseApproveNode + * @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 { DatabaseApproveNodeVariables } from '../../orm/mutation'; +import type { + DatabaseApproveNodePayloadSelect, + DatabaseApproveNodePayload, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { DatabaseApproveNodeVariables } from '../../orm/mutation'; +export type { DatabaseApproveNodePayloadSelect } from '../../orm/input-types'; +export function useDatabaseApproveNodeMutation( + params: { + selection: { + fields: S & DatabaseApproveNodePayloadSelect; + } & HookStrictSelect, DatabaseApproveNodePayloadSelect>; + } & Omit< + UseMutationOptions< + { + databaseApproveNode: InferSelectResult | null; + }, + Error, + DatabaseApproveNodeVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + databaseApproveNode: InferSelectResult | null; + }, + Error, + DatabaseApproveNodeVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.databaseApproveNode(), + mutationFn: (variables: DatabaseApproveNodeVariables) => + getClient() + .mutation.databaseApproveNode(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useDatabaseCopyGraphMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useDatabaseCopyGraphMutation.ts new file mode 100644 index 0000000000..1a0210bd87 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useDatabaseCopyGraphMutation.ts @@ -0,0 +1,58 @@ +/** + * Custom mutation hook for databaseCopyGraph + * @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 { DatabaseCopyGraphVariables } from '../../orm/mutation'; +import type { + DatabaseCopyGraphPayloadSelect, + DatabaseCopyGraphPayload, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { DatabaseCopyGraphVariables } from '../../orm/mutation'; +export type { DatabaseCopyGraphPayloadSelect } from '../../orm/input-types'; +export function useDatabaseCopyGraphMutation( + params: { + selection: { + fields: S & DatabaseCopyGraphPayloadSelect; + } & HookStrictSelect, DatabaseCopyGraphPayloadSelect>; + } & Omit< + UseMutationOptions< + { + databaseCopyGraph: InferSelectResult | null; + }, + Error, + DatabaseCopyGraphVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + databaseCopyGraph: InferSelectResult | null; + }, + Error, + DatabaseCopyGraphVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.databaseCopyGraph(), + mutationFn: (variables: DatabaseCopyGraphVariables) => + getClient() + .mutation.databaseCopyGraph(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useDatabaseCreateFunctionGraphMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useDatabaseCreateFunctionGraphMutation.ts new file mode 100644 index 0000000000..74b1e8d692 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useDatabaseCreateFunctionGraphMutation.ts @@ -0,0 +1,63 @@ +/** + * Custom mutation hook for databaseCreateFunctionGraph + * @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 { DatabaseCreateFunctionGraphVariables } from '../../orm/mutation'; +import type { + DatabaseCreateFunctionGraphPayloadSelect, + DatabaseCreateFunctionGraphPayload, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { DatabaseCreateFunctionGraphVariables } from '../../orm/mutation'; +export type { DatabaseCreateFunctionGraphPayloadSelect } from '../../orm/input-types'; +export function useDatabaseCreateFunctionGraphMutation< + S extends DatabaseCreateFunctionGraphPayloadSelect, +>( + params: { + selection: { + fields: S & DatabaseCreateFunctionGraphPayloadSelect; + } & HookStrictSelect, DatabaseCreateFunctionGraphPayloadSelect>; + } & Omit< + UseMutationOptions< + { + databaseCreateFunctionGraph: InferSelectResult< + DatabaseCreateFunctionGraphPayload, + S + > | null; + }, + Error, + DatabaseCreateFunctionGraphVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + databaseCreateFunctionGraph: InferSelectResult | null; + }, + Error, + DatabaseCreateFunctionGraphVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.databaseCreateFunctionGraph(), + mutationFn: (variables: DatabaseCreateFunctionGraphVariables) => + getClient() + .mutation.databaseCreateFunctionGraph(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useDatabaseGraphInitEmptyRepoMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useDatabaseGraphInitEmptyRepoMutation.ts new file mode 100644 index 0000000000..3a0c6a86e7 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useDatabaseGraphInitEmptyRepoMutation.ts @@ -0,0 +1,60 @@ +/** + * Custom mutation hook for databaseGraphInitEmptyRepo + * @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 { DatabaseGraphInitEmptyRepoVariables } from '../../orm/mutation'; +import type { + DatabaseGraphInitEmptyRepoPayloadSelect, + DatabaseGraphInitEmptyRepoPayload, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { DatabaseGraphInitEmptyRepoVariables } from '../../orm/mutation'; +export type { DatabaseGraphInitEmptyRepoPayloadSelect } from '../../orm/input-types'; +export function useDatabaseGraphInitEmptyRepoMutation< + S extends DatabaseGraphInitEmptyRepoPayloadSelect, +>( + params: { + selection: { + fields: S & DatabaseGraphInitEmptyRepoPayloadSelect; + } & HookStrictSelect, DatabaseGraphInitEmptyRepoPayloadSelect>; + } & Omit< + UseMutationOptions< + { + databaseGraphInitEmptyRepo: InferSelectResult | null; + }, + Error, + DatabaseGraphInitEmptyRepoVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + databaseGraphInitEmptyRepo: InferSelectResult | null; + }, + Error, + DatabaseGraphInitEmptyRepoVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.databaseGraphInitEmptyRepo(), + mutationFn: (variables: DatabaseGraphInitEmptyRepoVariables) => + getClient() + .mutation.databaseGraphInitEmptyRepo(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useDatabaseGraphInsertNodeAtPathMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useDatabaseGraphInsertNodeAtPathMutation.ts new file mode 100644 index 0000000000..02d157e82d --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useDatabaseGraphInsertNodeAtPathMutation.ts @@ -0,0 +1,66 @@ +/** + * Custom mutation hook for databaseGraphInsertNodeAtPath + * @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 { DatabaseGraphInsertNodeAtPathVariables } from '../../orm/mutation'; +import type { + DatabaseGraphInsertNodeAtPathPayloadSelect, + DatabaseGraphInsertNodeAtPathPayload, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { DatabaseGraphInsertNodeAtPathVariables } from '../../orm/mutation'; +export type { DatabaseGraphInsertNodeAtPathPayloadSelect } from '../../orm/input-types'; +export function useDatabaseGraphInsertNodeAtPathMutation< + S extends DatabaseGraphInsertNodeAtPathPayloadSelect, +>( + params: { + selection: { + fields: S & DatabaseGraphInsertNodeAtPathPayloadSelect; + } & HookStrictSelect, DatabaseGraphInsertNodeAtPathPayloadSelect>; + } & Omit< + UseMutationOptions< + { + databaseGraphInsertNodeAtPath: InferSelectResult< + DatabaseGraphInsertNodeAtPathPayload, + S + > | null; + }, + Error, + DatabaseGraphInsertNodeAtPathVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + databaseGraphInsertNodeAtPath: InferSelectResult< + DatabaseGraphInsertNodeAtPathPayload, + S + > | null; + }, + Error, + DatabaseGraphInsertNodeAtPathVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.databaseGraphInsertNodeAtPath(), + mutationFn: (variables: DatabaseGraphInsertNodeAtPathVariables) => + getClient() + .mutation.databaseGraphInsertNodeAtPath(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useDatabaseGraphInsertNodesAtPathsMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useDatabaseGraphInsertNodesAtPathsMutation.ts new file mode 100644 index 0000000000..d0abfc3fb5 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useDatabaseGraphInsertNodesAtPathsMutation.ts @@ -0,0 +1,66 @@ +/** + * Custom mutation hook for databaseGraphInsertNodesAtPaths + * @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 { DatabaseGraphInsertNodesAtPathsVariables } from '../../orm/mutation'; +import type { + DatabaseGraphInsertNodesAtPathsPayloadSelect, + DatabaseGraphInsertNodesAtPathsPayload, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { DatabaseGraphInsertNodesAtPathsVariables } from '../../orm/mutation'; +export type { DatabaseGraphInsertNodesAtPathsPayloadSelect } from '../../orm/input-types'; +export function useDatabaseGraphInsertNodesAtPathsMutation< + S extends DatabaseGraphInsertNodesAtPathsPayloadSelect, +>( + params: { + selection: { + fields: S & DatabaseGraphInsertNodesAtPathsPayloadSelect; + } & HookStrictSelect, DatabaseGraphInsertNodesAtPathsPayloadSelect>; + } & Omit< + UseMutationOptions< + { + databaseGraphInsertNodesAtPaths: InferSelectResult< + DatabaseGraphInsertNodesAtPathsPayload, + S + > | null; + }, + Error, + DatabaseGraphInsertNodesAtPathsVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + databaseGraphInsertNodesAtPaths: InferSelectResult< + DatabaseGraphInsertNodesAtPathsPayload, + S + > | null; + }, + Error, + DatabaseGraphInsertNodesAtPathsVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.databaseGraphInsertNodesAtPaths(), + mutationFn: (variables: DatabaseGraphInsertNodesAtPathsVariables) => + getClient() + .mutation.databaseGraphInsertNodesAtPaths(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useDatabaseGraphSetAndCommitMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useDatabaseGraphSetAndCommitMutation.ts new file mode 100644 index 0000000000..63f8620e43 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useDatabaseGraphSetAndCommitMutation.ts @@ -0,0 +1,60 @@ +/** + * Custom mutation hook for databaseGraphSetAndCommit + * @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 { DatabaseGraphSetAndCommitVariables } from '../../orm/mutation'; +import type { + DatabaseGraphSetAndCommitPayloadSelect, + DatabaseGraphSetAndCommitPayload, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { DatabaseGraphSetAndCommitVariables } from '../../orm/mutation'; +export type { DatabaseGraphSetAndCommitPayloadSelect } from '../../orm/input-types'; +export function useDatabaseGraphSetAndCommitMutation< + S extends DatabaseGraphSetAndCommitPayloadSelect, +>( + params: { + selection: { + fields: S & DatabaseGraphSetAndCommitPayloadSelect; + } & HookStrictSelect, DatabaseGraphSetAndCommitPayloadSelect>; + } & Omit< + UseMutationOptions< + { + databaseGraphSetAndCommit: InferSelectResult | null; + }, + Error, + DatabaseGraphSetAndCommitVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + databaseGraphSetAndCommit: InferSelectResult | null; + }, + Error, + DatabaseGraphSetAndCommitVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.databaseGraphSetAndCommit(), + mutationFn: (variables: DatabaseGraphSetAndCommitVariables) => + getClient() + .mutation.databaseGraphSetAndCommit(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useDatabaseGraphSetDataAtPathMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useDatabaseGraphSetDataAtPathMutation.ts new file mode 100644 index 0000000000..4dc7a79dbc --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useDatabaseGraphSetDataAtPathMutation.ts @@ -0,0 +1,60 @@ +/** + * Custom mutation hook for databaseGraphSetDataAtPath + * @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 { DatabaseGraphSetDataAtPathVariables } from '../../orm/mutation'; +import type { + DatabaseGraphSetDataAtPathPayloadSelect, + DatabaseGraphSetDataAtPathPayload, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { DatabaseGraphSetDataAtPathVariables } from '../../orm/mutation'; +export type { DatabaseGraphSetDataAtPathPayloadSelect } from '../../orm/input-types'; +export function useDatabaseGraphSetDataAtPathMutation< + S extends DatabaseGraphSetDataAtPathPayloadSelect, +>( + params: { + selection: { + fields: S & DatabaseGraphSetDataAtPathPayloadSelect; + } & HookStrictSelect, DatabaseGraphSetDataAtPathPayloadSelect>; + } & Omit< + UseMutationOptions< + { + databaseGraphSetDataAtPath: InferSelectResult | null; + }, + Error, + DatabaseGraphSetDataAtPathVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + databaseGraphSetDataAtPath: InferSelectResult | null; + }, + Error, + DatabaseGraphSetDataAtPathVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.databaseGraphSetDataAtPath(), + mutationFn: (variables: DatabaseGraphSetDataAtPathVariables) => + getClient() + .mutation.databaseGraphSetDataAtPath(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useDatabaseGraphSetManyAndCommitMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useDatabaseGraphSetManyAndCommitMutation.ts new file mode 100644 index 0000000000..05a8838373 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useDatabaseGraphSetManyAndCommitMutation.ts @@ -0,0 +1,66 @@ +/** + * Custom mutation hook for databaseGraphSetManyAndCommit + * @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 { DatabaseGraphSetManyAndCommitVariables } from '../../orm/mutation'; +import type { + DatabaseGraphSetManyAndCommitPayloadSelect, + DatabaseGraphSetManyAndCommitPayload, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { DatabaseGraphSetManyAndCommitVariables } from '../../orm/mutation'; +export type { DatabaseGraphSetManyAndCommitPayloadSelect } from '../../orm/input-types'; +export function useDatabaseGraphSetManyAndCommitMutation< + S extends DatabaseGraphSetManyAndCommitPayloadSelect, +>( + params: { + selection: { + fields: S & DatabaseGraphSetManyAndCommitPayloadSelect; + } & HookStrictSelect, DatabaseGraphSetManyAndCommitPayloadSelect>; + } & Omit< + UseMutationOptions< + { + databaseGraphSetManyAndCommit: InferSelectResult< + DatabaseGraphSetManyAndCommitPayload, + S + > | null; + }, + Error, + DatabaseGraphSetManyAndCommitVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + databaseGraphSetManyAndCommit: InferSelectResult< + DatabaseGraphSetManyAndCommitPayload, + S + > | null; + }, + Error, + DatabaseGraphSetManyAndCommitVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.databaseGraphSetManyAndCommit(), + mutationFn: (variables: DatabaseGraphSetManyAndCommitVariables) => + getClient() + .mutation.databaseGraphSetManyAndCommit(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useDatabaseImportDefinitionsMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useDatabaseImportDefinitionsMutation.ts new file mode 100644 index 0000000000..80b7dab4a0 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useDatabaseImportDefinitionsMutation.ts @@ -0,0 +1,60 @@ +/** + * Custom mutation hook for databaseImportDefinitions + * @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 { DatabaseImportDefinitionsVariables } from '../../orm/mutation'; +import type { + DatabaseImportDefinitionsPayloadSelect, + DatabaseImportDefinitionsPayload, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { DatabaseImportDefinitionsVariables } from '../../orm/mutation'; +export type { DatabaseImportDefinitionsPayloadSelect } from '../../orm/input-types'; +export function useDatabaseImportDefinitionsMutation< + S extends DatabaseImportDefinitionsPayloadSelect, +>( + params: { + selection: { + fields: S & DatabaseImportDefinitionsPayloadSelect; + } & HookStrictSelect, DatabaseImportDefinitionsPayloadSelect>; + } & Omit< + UseMutationOptions< + { + databaseImportDefinitions: InferSelectResult | null; + }, + Error, + DatabaseImportDefinitionsVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + databaseImportDefinitions: InferSelectResult | null; + }, + Error, + DatabaseImportDefinitionsVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.databaseImportDefinitions(), + mutationFn: (variables: DatabaseImportDefinitionsVariables) => + getClient() + .mutation.databaseImportDefinitions(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useDatabaseImportGraphJsonMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useDatabaseImportGraphJsonMutation.ts new file mode 100644 index 0000000000..cd73e72523 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useDatabaseImportGraphJsonMutation.ts @@ -0,0 +1,58 @@ +/** + * Custom mutation hook for databaseImportGraphJson + * @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 { DatabaseImportGraphJsonVariables } from '../../orm/mutation'; +import type { + DatabaseImportGraphJsonPayloadSelect, + DatabaseImportGraphJsonPayload, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { DatabaseImportGraphJsonVariables } from '../../orm/mutation'; +export type { DatabaseImportGraphJsonPayloadSelect } from '../../orm/input-types'; +export function useDatabaseImportGraphJsonMutation( + params: { + selection: { + fields: S & DatabaseImportGraphJsonPayloadSelect; + } & HookStrictSelect, DatabaseImportGraphJsonPayloadSelect>; + } & Omit< + UseMutationOptions< + { + databaseImportGraphJson: InferSelectResult | null; + }, + Error, + DatabaseImportGraphJsonVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + databaseImportGraphJson: InferSelectResult | null; + }, + Error, + DatabaseImportGraphJsonVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.databaseImportGraphJson(), + mutationFn: (variables: DatabaseImportGraphJsonVariables) => + getClient() + .mutation.databaseImportGraphJson(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useDatabaseSaveGraphMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useDatabaseSaveGraphMutation.ts new file mode 100644 index 0000000000..fbff2ca86a --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useDatabaseSaveGraphMutation.ts @@ -0,0 +1,58 @@ +/** + * Custom mutation hook for databaseSaveGraph + * @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 { DatabaseSaveGraphVariables } from '../../orm/mutation'; +import type { + DatabaseSaveGraphPayloadSelect, + DatabaseSaveGraphPayload, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { DatabaseSaveGraphVariables } from '../../orm/mutation'; +export type { DatabaseSaveGraphPayloadSelect } from '../../orm/input-types'; +export function useDatabaseSaveGraphMutation( + params: { + selection: { + fields: S & DatabaseSaveGraphPayloadSelect; + } & HookStrictSelect, DatabaseSaveGraphPayloadSelect>; + } & Omit< + UseMutationOptions< + { + databaseSaveGraph: InferSelectResult | null; + }, + Error, + DatabaseSaveGraphVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + databaseSaveGraph: InferSelectResult | null; + }, + Error, + DatabaseSaveGraphVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.databaseSaveGraph(), + mutationFn: (variables: DatabaseSaveGraphVariables) => + getClient() + .mutation.databaseSaveGraph(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useDatabaseStartExecutionMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useDatabaseStartExecutionMutation.ts new file mode 100644 index 0000000000..2327b405f1 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useDatabaseStartExecutionMutation.ts @@ -0,0 +1,58 @@ +/** + * Custom mutation hook for databaseStartExecution + * @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 { DatabaseStartExecutionVariables } from '../../orm/mutation'; +import type { + DatabaseStartExecutionPayloadSelect, + DatabaseStartExecutionPayload, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { DatabaseStartExecutionVariables } from '../../orm/mutation'; +export type { DatabaseStartExecutionPayloadSelect } from '../../orm/input-types'; +export function useDatabaseStartExecutionMutation( + params: { + selection: { + fields: S & DatabaseStartExecutionPayloadSelect; + } & HookStrictSelect, DatabaseStartExecutionPayloadSelect>; + } & Omit< + UseMutationOptions< + { + databaseStartExecution: InferSelectResult | null; + }, + Error, + DatabaseStartExecutionVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + databaseStartExecution: InferSelectResult | null; + }, + Error, + DatabaseStartExecutionVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.databaseStartExecution(), + mutationFn: (variables: DatabaseStartExecutionVariables) => + getClient() + .mutation.databaseStartExecution(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useDatabaseValidateFunctionGraphMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useDatabaseValidateFunctionGraphMutation.ts new file mode 100644 index 0000000000..39c877a892 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useDatabaseValidateFunctionGraphMutation.ts @@ -0,0 +1,66 @@ +/** + * Custom mutation hook for databaseValidateFunctionGraph + * @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 { DatabaseValidateFunctionGraphVariables } from '../../orm/mutation'; +import type { + DatabaseValidateFunctionGraphPayloadSelect, + DatabaseValidateFunctionGraphPayload, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { DatabaseValidateFunctionGraphVariables } from '../../orm/mutation'; +export type { DatabaseValidateFunctionGraphPayloadSelect } from '../../orm/input-types'; +export function useDatabaseValidateFunctionGraphMutation< + S extends DatabaseValidateFunctionGraphPayloadSelect, +>( + params: { + selection: { + fields: S & DatabaseValidateFunctionGraphPayloadSelect; + } & HookStrictSelect, DatabaseValidateFunctionGraphPayloadSelect>; + } & Omit< + UseMutationOptions< + { + databaseValidateFunctionGraph: InferSelectResult< + DatabaseValidateFunctionGraphPayload, + S + > | null; + }, + Error, + DatabaseValidateFunctionGraphVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + databaseValidateFunctionGraph: InferSelectResult< + DatabaseValidateFunctionGraphPayload, + S + > | null; + }, + Error, + DatabaseValidateFunctionGraphVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.databaseValidateFunctionGraph(), + mutationFn: (variables: DatabaseValidateFunctionGraphVariables) => + getClient() + .mutation.databaseValidateFunctionGraph(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useDeleteBuildMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useDeleteBuildMutation.ts new file mode 100644 index 0000000000..6472cccd56 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useDeleteBuildMutation.ts @@ -0,0 +1,98 @@ +/** + * One run of a repository workflow: its commit, its job, and what it produced + * @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 { buildKeys } from '../query-keys'; +import { buildMutationKeys } from '../mutation-keys'; +import type { BuildSelect, BuildWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { BuildSelect, BuildWithRelations } from '../../orm/input-types'; +/** + * One run of a repository workflow: its commit, its job, and what it produced + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteBuildMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteBuildMutation( + params: { + selection: { + fields: S & BuildSelect; + } & HookStrictSelect, BuildSelect>; + } & Omit< + UseMutationOptions< + { + deleteBuild: { + build: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteBuild: { + build: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteBuildMutation( + 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: buildMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .build.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: buildKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: buildKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useDeleteBuildStepMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useDeleteBuildStepMutation.ts new file mode 100644 index 0000000000..2de28d065f --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useDeleteBuildStepMutation.ts @@ -0,0 +1,102 @@ +/** + * Partitioned append-only step and test results of a build, keyed into its log object + * @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 { buildStepKeys } from '../query-keys'; +import { buildStepMutationKeys } from '../mutation-keys'; +import type { BuildStepSelect, BuildStepWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { BuildStepSelect, BuildStepWithRelations } from '../../orm/input-types'; +/** + * Partitioned append-only step and test results of a build, keyed into its log object + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteBuildStepMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteBuildStepMutation( + params: { + selection: { + fields: S & BuildStepSelect; + } & HookStrictSelect, BuildStepSelect>; + } & Omit< + UseMutationOptions< + { + deleteBuildStep: { + buildStep: InferSelectResult; + }; + }, + Error, + { + id: string; + recordedAt: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteBuildStep: { + buildStep: InferSelectResult; + }; + }, + Error, + { + id: string; + recordedAt: string; + } +>; +export function useDeleteBuildStepMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + recordedAt: string; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: buildStepMutationKeys.all, + mutationFn: ({ id, recordedAt }: { id: string; recordedAt: string }) => + getClient() + .buildStep.delete({ + where: { + id, + recordedAt, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: buildStepKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: buildStepKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useDeleteBuilderBindingMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useDeleteBuilderBindingMutation.ts new file mode 100644 index 0000000000..26004519c8 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useDeleteBuilderBindingMutation.ts @@ -0,0 +1,98 @@ +/** + * Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST + * @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 { builderBindingKeys } from '../query-keys'; +import { builderBindingMutationKeys } from '../mutation-keys'; +import type { BuilderBindingSelect, BuilderBindingWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { BuilderBindingSelect, BuilderBindingWithRelations } from '../../orm/input-types'; +/** + * Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteBuilderBindingMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteBuilderBindingMutation( + params: { + selection: { + fields: S & BuilderBindingSelect; + } & HookStrictSelect, BuilderBindingSelect>; + } & Omit< + UseMutationOptions< + { + deleteBuilderBinding: { + builderBinding: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteBuilderBinding: { + builderBinding: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteBuilderBindingMutation( + 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: builderBindingMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .builderBinding.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: builderBindingKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: builderBindingKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useDeleteDatabaseFunctionGraphExecutionMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useDeleteDatabaseFunctionGraphExecutionMutation.ts new file mode 100644 index 0000000000..e7c64fdd3b --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useDeleteDatabaseFunctionGraphExecutionMutation.ts @@ -0,0 +1,116 @@ +/** + * Ephemeral execution state for flow graph evaluation + * @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 { databaseFunctionGraphExecutionKeys } from '../query-keys'; +import { databaseFunctionGraphExecutionMutationKeys } from '../mutation-keys'; +import type { + DatabaseFunctionGraphExecutionSelect, + DatabaseFunctionGraphExecutionWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + DatabaseFunctionGraphExecutionSelect, + DatabaseFunctionGraphExecutionWithRelations, +} from '../../orm/input-types'; +/** + * Ephemeral execution state for flow graph evaluation + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteDatabaseFunctionGraphExecutionMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteDatabaseFunctionGraphExecutionMutation< + S extends DatabaseFunctionGraphExecutionSelect, +>( + params: { + selection: { + fields: S & DatabaseFunctionGraphExecutionSelect; + } & HookStrictSelect, DatabaseFunctionGraphExecutionSelect>; + } & Omit< + UseMutationOptions< + { + deleteDatabaseFunctionGraphExecution: { + databaseFunctionGraphExecution: InferSelectResult< + DatabaseFunctionGraphExecutionWithRelations, + S + >; + }; + }, + Error, + { + id: string; + startedAt: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteDatabaseFunctionGraphExecution: { + databaseFunctionGraphExecution: InferSelectResult< + DatabaseFunctionGraphExecutionWithRelations, + S + >; + }; + }, + Error, + { + id: string; + startedAt: string; + } +>; +export function useDeleteDatabaseFunctionGraphExecutionMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + startedAt: string; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: databaseFunctionGraphExecutionMutationKeys.all, + mutationFn: ({ id, startedAt }: { id: string; startedAt: string }) => + getClient() + .databaseFunctionGraphExecution.delete({ + where: { + id, + startedAt, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: databaseFunctionGraphExecutionKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: databaseFunctionGraphExecutionKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useDeleteDatabaseFunctionGraphExecutionNodeStateMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useDeleteDatabaseFunctionGraphExecutionNodeStateMutation.ts new file mode 100644 index 0000000000..79479303ef --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useDeleteDatabaseFunctionGraphExecutionNodeStateMutation.ts @@ -0,0 +1,116 @@ +/** + * Per-node execution state — tracks individual node lifecycle for debugging + * @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 { databaseFunctionGraphExecutionNodeStateKeys } from '../query-keys'; +import { databaseFunctionGraphExecutionNodeStateMutationKeys } from '../mutation-keys'; +import type { + DatabaseFunctionGraphExecutionNodeStateSelect, + DatabaseFunctionGraphExecutionNodeStateWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + DatabaseFunctionGraphExecutionNodeStateSelect, + DatabaseFunctionGraphExecutionNodeStateWithRelations, +} from '../../orm/input-types'; +/** + * Per-node execution state — tracks individual node lifecycle for debugging + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteDatabaseFunctionGraphExecutionNodeStateMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteDatabaseFunctionGraphExecutionNodeStateMutation< + S extends DatabaseFunctionGraphExecutionNodeStateSelect, +>( + params: { + selection: { + fields: S & DatabaseFunctionGraphExecutionNodeStateSelect; + } & HookStrictSelect, DatabaseFunctionGraphExecutionNodeStateSelect>; + } & Omit< + UseMutationOptions< + { + deleteDatabaseFunctionGraphExecutionNodeState: { + databaseFunctionGraphExecutionNodeState: InferSelectResult< + DatabaseFunctionGraphExecutionNodeStateWithRelations, + S + >; + }; + }, + Error, + { + id: string; + createdAt: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteDatabaseFunctionGraphExecutionNodeState: { + databaseFunctionGraphExecutionNodeState: InferSelectResult< + DatabaseFunctionGraphExecutionNodeStateWithRelations, + S + >; + }; + }, + Error, + { + id: string; + createdAt: string; + } +>; +export function useDeleteDatabaseFunctionGraphExecutionNodeStateMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + createdAt: string; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: databaseFunctionGraphExecutionNodeStateMutationKeys.all, + mutationFn: ({ id, createdAt }: { id: string; createdAt: string }) => + getClient() + .databaseFunctionGraphExecutionNodeState.delete({ + where: { + id, + createdAt, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: databaseFunctionGraphExecutionNodeStateKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: databaseFunctionGraphExecutionNodeStateKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useDeleteDatabaseFunctionGraphExecutionOutputMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useDeleteDatabaseFunctionGraphExecutionOutputMutation.ts new file mode 100644 index 0000000000..e7ea65b6aa --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useDeleteDatabaseFunctionGraphExecutionOutputMutation.ts @@ -0,0 +1,116 @@ +/** + * Content-addressed store for execution outputs — hash-referenced from node_outputs + * @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 { databaseFunctionGraphExecutionOutputKeys } from '../query-keys'; +import { databaseFunctionGraphExecutionOutputMutationKeys } from '../mutation-keys'; +import type { + DatabaseFunctionGraphExecutionOutputSelect, + DatabaseFunctionGraphExecutionOutputWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + DatabaseFunctionGraphExecutionOutputSelect, + DatabaseFunctionGraphExecutionOutputWithRelations, +} from '../../orm/input-types'; +/** + * Content-addressed store for execution outputs — hash-referenced from node_outputs + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteDatabaseFunctionGraphExecutionOutputMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteDatabaseFunctionGraphExecutionOutputMutation< + S extends DatabaseFunctionGraphExecutionOutputSelect, +>( + params: { + selection: { + fields: S & DatabaseFunctionGraphExecutionOutputSelect; + } & HookStrictSelect, DatabaseFunctionGraphExecutionOutputSelect>; + } & Omit< + UseMutationOptions< + { + deleteDatabaseFunctionGraphExecutionOutput: { + databaseFunctionGraphExecutionOutput: InferSelectResult< + DatabaseFunctionGraphExecutionOutputWithRelations, + S + >; + }; + }, + Error, + { + id: string; + createdAt: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteDatabaseFunctionGraphExecutionOutput: { + databaseFunctionGraphExecutionOutput: InferSelectResult< + DatabaseFunctionGraphExecutionOutputWithRelations, + S + >; + }; + }, + Error, + { + id: string; + createdAt: string; + } +>; +export function useDeleteDatabaseFunctionGraphExecutionOutputMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + createdAt: string; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: databaseFunctionGraphExecutionOutputMutationKeys.all, + mutationFn: ({ id, createdAt }: { id: string; createdAt: string }) => + getClient() + .databaseFunctionGraphExecutionOutput.delete({ + where: { + id, + createdAt, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: databaseFunctionGraphExecutionOutputKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: databaseFunctionGraphExecutionOutputKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useDeleteDatabaseFunctionGraphMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useDeleteDatabaseFunctionGraphMutation.ts new file mode 100644 index 0000000000..7ab2a5ad5b --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useDeleteDatabaseFunctionGraphMutation.ts @@ -0,0 +1,104 @@ +/** + * Flow graph definitions — FBP graphs stored in the dedicated graph Merkle 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 { databaseFunctionGraphKeys } from '../query-keys'; +import { databaseFunctionGraphMutationKeys } from '../mutation-keys'; +import type { + DatabaseFunctionGraphSelect, + DatabaseFunctionGraphWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + DatabaseFunctionGraphSelect, + DatabaseFunctionGraphWithRelations, +} from '../../orm/input-types'; +/** + * Flow graph definitions — FBP graphs stored in the dedicated graph Merkle store + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteDatabaseFunctionGraphMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteDatabaseFunctionGraphMutation( + params: { + selection: { + fields: S & DatabaseFunctionGraphSelect; + } & HookStrictSelect, DatabaseFunctionGraphSelect>; + } & Omit< + UseMutationOptions< + { + deleteDatabaseFunctionGraph: { + databaseFunctionGraph: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteDatabaseFunctionGraph: { + databaseFunctionGraph: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteDatabaseFunctionGraphMutation( + 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: databaseFunctionGraphMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .databaseFunctionGraph.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: databaseFunctionGraphKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: databaseFunctionGraphKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useDeleteDatabaseGraphCommitMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useDeleteDatabaseGraphCommitMutation.ts new file mode 100644 index 0000000000..b3b57c60b3 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useDeleteDatabaseGraphCommitMutation.ts @@ -0,0 +1,108 @@ +/** + * Commit history — each commit snapshots a tree root for a 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 { databaseGraphCommitKeys } from '../query-keys'; +import { databaseGraphCommitMutationKeys } from '../mutation-keys'; +import type { + DatabaseGraphCommitSelect, + DatabaseGraphCommitWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + DatabaseGraphCommitSelect, + DatabaseGraphCommitWithRelations, +} from '../../orm/input-types'; +/** + * Commit history — each commit snapshots a tree root for a store + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteDatabaseGraphCommitMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteDatabaseGraphCommitMutation( + params: { + selection: { + fields: S & DatabaseGraphCommitSelect; + } & HookStrictSelect, DatabaseGraphCommitSelect>; + } & Omit< + UseMutationOptions< + { + deleteDatabaseGraphCommit: { + databaseGraphCommit: InferSelectResult; + }; + }, + Error, + { + id: string; + databaseId: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteDatabaseGraphCommit: { + databaseGraphCommit: InferSelectResult; + }; + }, + Error, + { + id: string; + databaseId: string; + } +>; +export function useDeleteDatabaseGraphCommitMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + databaseId: string; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: databaseGraphCommitMutationKeys.all, + mutationFn: ({ id, databaseId }: { id: string; databaseId: string }) => + getClient() + .databaseGraphCommit.delete({ + where: { + id, + databaseId, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: databaseGraphCommitKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: databaseGraphCommitKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useDeleteDatabaseGraphObjectMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useDeleteDatabaseGraphObjectMutation.ts new file mode 100644 index 0000000000..43bff5811c --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useDeleteDatabaseGraphObjectMutation.ts @@ -0,0 +1,108 @@ +/** + * Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children + * @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 { databaseGraphObjectKeys } from '../query-keys'; +import { databaseGraphObjectMutationKeys } from '../mutation-keys'; +import type { + DatabaseGraphObjectSelect, + DatabaseGraphObjectWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + DatabaseGraphObjectSelect, + DatabaseGraphObjectWithRelations, +} from '../../orm/input-types'; +/** + * Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteDatabaseGraphObjectMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteDatabaseGraphObjectMutation( + params: { + selection: { + fields: S & DatabaseGraphObjectSelect; + } & HookStrictSelect, DatabaseGraphObjectSelect>; + } & Omit< + UseMutationOptions< + { + deleteDatabaseGraphObject: { + databaseGraphObject: InferSelectResult; + }; + }, + Error, + { + id: string; + databaseId: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteDatabaseGraphObject: { + databaseGraphObject: InferSelectResult; + }; + }, + Error, + { + id: string; + databaseId: string; + } +>; +export function useDeleteDatabaseGraphObjectMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + databaseId: string; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: databaseGraphObjectMutationKeys.all, + mutationFn: ({ id, databaseId }: { id: string; databaseId: string }) => + getClient() + .databaseGraphObject.delete({ + where: { + id, + databaseId, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: databaseGraphObjectKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: databaseGraphObjectKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useDeleteDatabaseGraphRefMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useDeleteDatabaseGraphRefMutation.ts new file mode 100644 index 0000000000..f0209a589e --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useDeleteDatabaseGraphRefMutation.ts @@ -0,0 +1,102 @@ +/** + * Branch heads — mutable pointers into the commit chain + * @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 { databaseGraphRefKeys } from '../query-keys'; +import { databaseGraphRefMutationKeys } from '../mutation-keys'; +import type { DatabaseGraphRefSelect, DatabaseGraphRefWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { DatabaseGraphRefSelect, DatabaseGraphRefWithRelations } from '../../orm/input-types'; +/** + * Branch heads — mutable pointers into the commit chain + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteDatabaseGraphRefMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteDatabaseGraphRefMutation( + params: { + selection: { + fields: S & DatabaseGraphRefSelect; + } & HookStrictSelect, DatabaseGraphRefSelect>; + } & Omit< + UseMutationOptions< + { + deleteDatabaseGraphRef: { + databaseGraphRef: InferSelectResult; + }; + }, + Error, + { + id: string; + databaseId: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteDatabaseGraphRef: { + databaseGraphRef: InferSelectResult; + }; + }, + Error, + { + id: string; + databaseId: string; + } +>; +export function useDeleteDatabaseGraphRefMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + databaseId: string; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: databaseGraphRefMutationKeys.all, + mutationFn: ({ id, databaseId }: { id: string; databaseId: string }) => + getClient() + .databaseGraphRef.delete({ + where: { + id, + databaseId, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: databaseGraphRefKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: databaseGraphRefKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useDeleteDatabaseGraphStoreMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useDeleteDatabaseGraphStoreMutation.ts new file mode 100644 index 0000000000..b700178aaa --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useDeleteDatabaseGraphStoreMutation.ts @@ -0,0 +1,104 @@ +/** + * Named stores — one per version-controlled tree (e.g. one graph, one definition set) + * @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 { databaseGraphStoreKeys } from '../query-keys'; +import { databaseGraphStoreMutationKeys } from '../mutation-keys'; +import type { + DatabaseGraphStoreSelect, + DatabaseGraphStoreWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + DatabaseGraphStoreSelect, + DatabaseGraphStoreWithRelations, +} from '../../orm/input-types'; +/** + * Named stores — one per version-controlled tree (e.g. one graph, one definition set) + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteDatabaseGraphStoreMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteDatabaseGraphStoreMutation( + params: { + selection: { + fields: S & DatabaseGraphStoreSelect; + } & HookStrictSelect, DatabaseGraphStoreSelect>; + } & Omit< + UseMutationOptions< + { + deleteDatabaseGraphStore: { + databaseGraphStore: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteDatabaseGraphStore: { + databaseGraphStore: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteDatabaseGraphStoreMutation( + 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: databaseGraphStoreMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .databaseGraphStore.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: databaseGraphStoreKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: databaseGraphStoreKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useDeleteImageGrantMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useDeleteImageGrantMutation.ts new file mode 100644 index 0000000000..7eed675c71 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useDeleteImageGrantMutation.ts @@ -0,0 +1,98 @@ +/** + * Grants that make a catalog image usable by one scope + * @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 { imageGrantKeys } from '../query-keys'; +import { imageGrantMutationKeys } from '../mutation-keys'; +import type { ImageGrantSelect, ImageGrantWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { ImageGrantSelect, ImageGrantWithRelations } from '../../orm/input-types'; +/** + * Grants that make a catalog image usable by one scope + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteImageGrantMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteImageGrantMutation( + params: { + selection: { + fields: S & ImageGrantSelect; + } & HookStrictSelect, ImageGrantSelect>; + } & Omit< + UseMutationOptions< + { + deleteImageGrant: { + imageGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteImageGrant: { + imageGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteImageGrantMutation( + 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: imageGrantMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .imageGrant.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: imageGrantKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: imageGrantKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useDeleteImageMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useDeleteImageMutation.ts new file mode 100644 index 0000000000..e93456c9bc --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useDeleteImageMutation.ts @@ -0,0 +1,98 @@ +/** + * Container image catalog: images available to run as functions, resources, and builds + * @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 { imageKeys } from '../query-keys'; +import { imageMutationKeys } from '../mutation-keys'; +import type { ImageSelect, ImageWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { ImageSelect, ImageWithRelations } from '../../orm/input-types'; +/** + * Container image catalog: images available to run as functions, resources, and builds + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteImageMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteImageMutation( + params: { + selection: { + fields: S & ImageSelect; + } & HookStrictSelect, ImageSelect>; + } & Omit< + UseMutationOptions< + { + deleteImage: { + image: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteImage: { + image: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteImageMutation( + 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: imageMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .image.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: imageKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: imageKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useDeletePlatformBuildMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useDeletePlatformBuildMutation.ts new file mode 100644 index 0000000000..464e3f9676 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useDeletePlatformBuildMutation.ts @@ -0,0 +1,98 @@ +/** + * One run of a repository workflow: its commit, its job, and what it produced + * @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 { platformBuildKeys } from '../query-keys'; +import { platformBuildMutationKeys } from '../mutation-keys'; +import type { PlatformBuildSelect, PlatformBuildWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { PlatformBuildSelect, PlatformBuildWithRelations } from '../../orm/input-types'; +/** + * One run of a repository workflow: its commit, its job, and what it produced + * + * @example + * ```tsx + * const { mutate, isPending } = useDeletePlatformBuildMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeletePlatformBuildMutation( + params: { + selection: { + fields: S & PlatformBuildSelect; + } & HookStrictSelect, PlatformBuildSelect>; + } & Omit< + UseMutationOptions< + { + deletePlatformBuild: { + platformBuild: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deletePlatformBuild: { + platformBuild: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeletePlatformBuildMutation( + 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: platformBuildMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .platformBuild.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: platformBuildKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformBuildKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useDeletePlatformBuildStepMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useDeletePlatformBuildStepMutation.ts new file mode 100644 index 0000000000..26d08aec02 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useDeletePlatformBuildStepMutation.ts @@ -0,0 +1,108 @@ +/** + * Partitioned append-only step and test results of a build, keyed into its log object + * @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 { platformBuildStepKeys } from '../query-keys'; +import { platformBuildStepMutationKeys } from '../mutation-keys'; +import type { + PlatformBuildStepSelect, + PlatformBuildStepWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformBuildStepSelect, + PlatformBuildStepWithRelations, +} from '../../orm/input-types'; +/** + * Partitioned append-only step and test results of a build, keyed into its log object + * + * @example + * ```tsx + * const { mutate, isPending } = useDeletePlatformBuildStepMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeletePlatformBuildStepMutation( + params: { + selection: { + fields: S & PlatformBuildStepSelect; + } & HookStrictSelect, PlatformBuildStepSelect>; + } & Omit< + UseMutationOptions< + { + deletePlatformBuildStep: { + platformBuildStep: InferSelectResult; + }; + }, + Error, + { + id: string; + recordedAt: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deletePlatformBuildStep: { + platformBuildStep: InferSelectResult; + }; + }, + Error, + { + id: string; + recordedAt: string; + } +>; +export function useDeletePlatformBuildStepMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + recordedAt: string; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformBuildStepMutationKeys.all, + mutationFn: ({ id, recordedAt }: { id: string; recordedAt: string }) => + getClient() + .platformBuildStep.delete({ + where: { + id, + recordedAt, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: platformBuildStepKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformBuildStepKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useDeletePlatformBuilderBindingMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useDeletePlatformBuilderBindingMutation.ts new file mode 100644 index 0000000000..df71f1af3f --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useDeletePlatformBuilderBindingMutation.ts @@ -0,0 +1,104 @@ +/** + * Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST + * @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 { platformBuilderBindingKeys } from '../query-keys'; +import { platformBuilderBindingMutationKeys } from '../mutation-keys'; +import type { + PlatformBuilderBindingSelect, + PlatformBuilderBindingWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformBuilderBindingSelect, + PlatformBuilderBindingWithRelations, +} from '../../orm/input-types'; +/** + * Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST + * + * @example + * ```tsx + * const { mutate, isPending } = useDeletePlatformBuilderBindingMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeletePlatformBuilderBindingMutation( + params: { + selection: { + fields: S & PlatformBuilderBindingSelect; + } & HookStrictSelect, PlatformBuilderBindingSelect>; + } & Omit< + UseMutationOptions< + { + deletePlatformBuilderBinding: { + platformBuilderBinding: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deletePlatformBuilderBinding: { + platformBuilderBinding: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeletePlatformBuilderBindingMutation( + 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: platformBuilderBindingMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .platformBuilderBinding.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: platformBuilderBindingKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformBuilderBindingKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useDeletePlatformImageGrantMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useDeletePlatformImageGrantMutation.ts new file mode 100644 index 0000000000..d0d5258814 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useDeletePlatformImageGrantMutation.ts @@ -0,0 +1,104 @@ +/** + * Grants that make a catalog image usable by one scope + * @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 { platformImageGrantKeys } from '../query-keys'; +import { platformImageGrantMutationKeys } from '../mutation-keys'; +import type { + PlatformImageGrantSelect, + PlatformImageGrantWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformImageGrantSelect, + PlatformImageGrantWithRelations, +} from '../../orm/input-types'; +/** + * Grants that make a catalog image usable by one scope + * + * @example + * ```tsx + * const { mutate, isPending } = useDeletePlatformImageGrantMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeletePlatformImageGrantMutation( + params: { + selection: { + fields: S & PlatformImageGrantSelect; + } & HookStrictSelect, PlatformImageGrantSelect>; + } & Omit< + UseMutationOptions< + { + deletePlatformImageGrant: { + platformImageGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deletePlatformImageGrant: { + platformImageGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeletePlatformImageGrantMutation( + 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: platformImageGrantMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .platformImageGrant.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: platformImageGrantKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformImageGrantKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useDeletePlatformImageMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useDeletePlatformImageMutation.ts new file mode 100644 index 0000000000..24a7742787 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useDeletePlatformImageMutation.ts @@ -0,0 +1,98 @@ +/** + * Container image catalog: images available to run as functions, resources, and builds + * @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 { platformImageKeys } from '../query-keys'; +import { platformImageMutationKeys } from '../mutation-keys'; +import type { PlatformImageSelect, PlatformImageWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { PlatformImageSelect, PlatformImageWithRelations } from '../../orm/input-types'; +/** + * Container image catalog: images available to run as functions, resources, and builds + * + * @example + * ```tsx + * const { mutate, isPending } = useDeletePlatformImageMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeletePlatformImageMutation( + params: { + selection: { + fields: S & PlatformImageSelect; + } & HookStrictSelect, PlatformImageSelect>; + } & Omit< + UseMutationOptions< + { + deletePlatformImage: { + platformImage: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deletePlatformImage: { + platformImage: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeletePlatformImageMutation( + 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: platformImageMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .platformImage.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: platformImageKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformImageKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useDeletePlatformK8sResourceKindMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useDeletePlatformK8sResourceKindMutation.ts new file mode 100644 index 0000000000..de38c4eb06 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useDeletePlatformK8sResourceKindMutation.ts @@ -0,0 +1,104 @@ +/** + * Kubernetes kind allow-list for DB-driven resources — merkle-versioned head over the infra store; the admission gate fails closed on kinds without an active row + * @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 { platformK8sResourceKindKeys } from '../query-keys'; +import { platformK8sResourceKindMutationKeys } from '../mutation-keys'; +import type { + PlatformK8sResourceKindSelect, + PlatformK8sResourceKindWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformK8sResourceKindSelect, + PlatformK8sResourceKindWithRelations, +} from '../../orm/input-types'; +/** + * Kubernetes kind allow-list for DB-driven resources — merkle-versioned head over the infra store; the admission gate fails closed on kinds without an active row + * + * @example + * ```tsx + * const { mutate, isPending } = useDeletePlatformK8sResourceKindMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeletePlatformK8sResourceKindMutation( + params: { + selection: { + fields: S & PlatformK8sResourceKindSelect; + } & HookStrictSelect, PlatformK8sResourceKindSelect>; + } & Omit< + UseMutationOptions< + { + deletePlatformK8sResourceKind: { + platformK8sResourceKind: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deletePlatformK8sResourceKind: { + platformK8sResourceKind: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeletePlatformK8sResourceKindMutation( + 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: platformK8sResourceKindMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .platformK8sResourceKind.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: platformK8sResourceKindKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformK8sResourceKindKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useDeletePlatformK8sSpecRuleMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useDeletePlatformK8sSpecRuleMutation.ts new file mode 100644 index 0000000000..d81fb10bf6 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useDeletePlatformK8sSpecRuleMutation.ts @@ -0,0 +1,104 @@ +/** + * Spec rulebook for DB-driven resources — merkle-versioned head over the infra store; enforced by the generated admission gate via infra_utils.check_resource_admission + * @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 { platformK8sSpecRuleKeys } from '../query-keys'; +import { platformK8sSpecRuleMutationKeys } from '../mutation-keys'; +import type { + PlatformK8sSpecRuleSelect, + PlatformK8sSpecRuleWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformK8sSpecRuleSelect, + PlatformK8sSpecRuleWithRelations, +} from '../../orm/input-types'; +/** + * Spec rulebook for DB-driven resources — merkle-versioned head over the infra store; enforced by the generated admission gate via infra_utils.check_resource_admission + * + * @example + * ```tsx + * const { mutate, isPending } = useDeletePlatformK8sSpecRuleMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeletePlatformK8sSpecRuleMutation( + params: { + selection: { + fields: S & PlatformK8sSpecRuleSelect; + } & HookStrictSelect, PlatformK8sSpecRuleSelect>; + } & Omit< + UseMutationOptions< + { + deletePlatformK8sSpecRule: { + platformK8sSpecRule: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deletePlatformK8sSpecRule: { + platformK8sSpecRule: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeletePlatformK8sSpecRuleMutation( + 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: platformK8sSpecRuleMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .platformK8sSpecRule.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: platformK8sSpecRuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformK8sSpecRuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useDeletePlatformProposalCommentMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useDeletePlatformProposalCommentMutation.ts new file mode 100644 index 0000000000..3a9d3cc279 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useDeletePlatformProposalCommentMutation.ts @@ -0,0 +1,104 @@ +/** + * Comments on a local proposal, optionally anchored to a line + * @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 { platformProposalCommentKeys } from '../query-keys'; +import { platformProposalCommentMutationKeys } from '../mutation-keys'; +import type { + PlatformProposalCommentSelect, + PlatformProposalCommentWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformProposalCommentSelect, + PlatformProposalCommentWithRelations, +} from '../../orm/input-types'; +/** + * Comments on a local proposal, optionally anchored to a line + * + * @example + * ```tsx + * const { mutate, isPending } = useDeletePlatformProposalCommentMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeletePlatformProposalCommentMutation( + params: { + selection: { + fields: S & PlatformProposalCommentSelect; + } & HookStrictSelect, PlatformProposalCommentSelect>; + } & Omit< + UseMutationOptions< + { + deletePlatformProposalComment: { + platformProposalComment: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deletePlatformProposalComment: { + platformProposalComment: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeletePlatformProposalCommentMutation( + 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: platformProposalCommentMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .platformProposalComment.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: platformProposalCommentKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformProposalCommentKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useDeletePlatformProposalFileViewMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useDeletePlatformProposalFileViewMutation.ts new file mode 100644 index 0000000000..1605f10e28 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useDeletePlatformProposalFileViewMutation.ts @@ -0,0 +1,104 @@ +/** + * Files a reviewer has read, pinned to the blob they read + * @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 { platformProposalFileViewKeys } from '../query-keys'; +import { platformProposalFileViewMutationKeys } from '../mutation-keys'; +import type { + PlatformProposalFileViewSelect, + PlatformProposalFileViewWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformProposalFileViewSelect, + PlatformProposalFileViewWithRelations, +} from '../../orm/input-types'; +/** + * Files a reviewer has read, pinned to the blob they read + * + * @example + * ```tsx + * const { mutate, isPending } = useDeletePlatformProposalFileViewMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeletePlatformProposalFileViewMutation( + params: { + selection: { + fields: S & PlatformProposalFileViewSelect; + } & HookStrictSelect, PlatformProposalFileViewSelect>; + } & Omit< + UseMutationOptions< + { + deletePlatformProposalFileView: { + platformProposalFileView: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deletePlatformProposalFileView: { + platformProposalFileView: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeletePlatformProposalFileViewMutation( + 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: platformProposalFileViewMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .platformProposalFileView.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: platformProposalFileViewKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformProposalFileViewKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useDeletePlatformProposalMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useDeletePlatformProposalMutation.ts new file mode 100644 index 0000000000..7b88647193 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useDeletePlatformProposalMutation.ts @@ -0,0 +1,98 @@ +/** + * Proposals against a repository: issues, changes to merge, discussions and decisions + * @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 { platformProposalKeys } from '../query-keys'; +import { platformProposalMutationKeys } from '../mutation-keys'; +import type { PlatformProposalSelect, PlatformProposalWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { PlatformProposalSelect, PlatformProposalWithRelations } from '../../orm/input-types'; +/** + * Proposals against a repository: issues, changes to merge, discussions and decisions + * + * @example + * ```tsx + * const { mutate, isPending } = useDeletePlatformProposalMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeletePlatformProposalMutation( + params: { + selection: { + fields: S & PlatformProposalSelect; + } & HookStrictSelect, PlatformProposalSelect>; + } & Omit< + UseMutationOptions< + { + deletePlatformProposal: { + platformProposal: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deletePlatformProposal: { + platformProposal: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeletePlatformProposalMutation( + 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: platformProposalMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .platformProposal.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: platformProposalKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformProposalKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useDeletePlatformProposalReactionMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useDeletePlatformProposalReactionMutation.ts new file mode 100644 index 0000000000..4f550fc9c2 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useDeletePlatformProposalReactionMutation.ts @@ -0,0 +1,104 @@ +/** + * Emoji reactions to a local proposal or one of its comments + * @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 { platformProposalReactionKeys } from '../query-keys'; +import { platformProposalReactionMutationKeys } from '../mutation-keys'; +import type { + PlatformProposalReactionSelect, + PlatformProposalReactionWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformProposalReactionSelect, + PlatformProposalReactionWithRelations, +} from '../../orm/input-types'; +/** + * Emoji reactions to a local proposal or one of its comments + * + * @example + * ```tsx + * const { mutate, isPending } = useDeletePlatformProposalReactionMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeletePlatformProposalReactionMutation( + params: { + selection: { + fields: S & PlatformProposalReactionSelect; + } & HookStrictSelect, PlatformProposalReactionSelect>; + } & Omit< + UseMutationOptions< + { + deletePlatformProposalReaction: { + platformProposalReaction: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deletePlatformProposalReaction: { + platformProposalReaction: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeletePlatformProposalReactionMutation( + 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: platformProposalReactionMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .platformProposalReaction.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: platformProposalReactionKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformProposalReactionKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useDeletePlatformProposalReviewMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useDeletePlatformProposalReviewMutation.ts new file mode 100644 index 0000000000..1664e4760e --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useDeletePlatformProposalReviewMutation.ts @@ -0,0 +1,104 @@ +/** + * Review verdicts on a proposal, each pinned to the commit reviewed + * @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 { platformProposalReviewKeys } from '../query-keys'; +import { platformProposalReviewMutationKeys } from '../mutation-keys'; +import type { + PlatformProposalReviewSelect, + PlatformProposalReviewWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformProposalReviewSelect, + PlatformProposalReviewWithRelations, +} from '../../orm/input-types'; +/** + * Review verdicts on a proposal, each pinned to the commit reviewed + * + * @example + * ```tsx + * const { mutate, isPending } = useDeletePlatformProposalReviewMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeletePlatformProposalReviewMutation( + params: { + selection: { + fields: S & PlatformProposalReviewSelect; + } & HookStrictSelect, PlatformProposalReviewSelect>; + } & Omit< + UseMutationOptions< + { + deletePlatformProposalReview: { + platformProposalReview: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deletePlatformProposalReview: { + platformProposalReview: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeletePlatformProposalReviewMutation( + 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: platformProposalReviewMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .platformProposalReview.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: platformProposalReviewKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformProposalReviewKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useDeletePlatformProposalsChunkMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useDeletePlatformProposalsChunkMutation.ts new file mode 100644 index 0000000000..55ba68e0f0 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useDeletePlatformProposalsChunkMutation.ts @@ -0,0 +1,104 @@ +/** + * Delete mutation hook for PlatformProposalsChunk + * @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 { platformProposalsChunkKeys } from '../query-keys'; +import { platformProposalsChunkMutationKeys } from '../mutation-keys'; +import type { + PlatformProposalsChunkSelect, + PlatformProposalsChunkWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformProposalsChunkSelect, + PlatformProposalsChunkWithRelations, +} from '../../orm/input-types'; +/** + * Mutation hook for deleting a PlatformProposalsChunk with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeletePlatformProposalsChunkMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeletePlatformProposalsChunkMutation( + params: { + selection: { + fields: S & PlatformProposalsChunkSelect; + } & HookStrictSelect, PlatformProposalsChunkSelect>; + } & Omit< + UseMutationOptions< + { + deletePlatformProposalsChunk: { + platformProposalsChunk: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deletePlatformProposalsChunk: { + platformProposalsChunk: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeletePlatformProposalsChunkMutation( + 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: platformProposalsChunkMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .platformProposalsChunk.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: platformProposalsChunkKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformProposalsChunkKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useDeletePlatformRegistryBindingMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useDeletePlatformRegistryBindingMutation.ts new file mode 100644 index 0000000000..f64efc0240 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useDeletePlatformRegistryBindingMutation.ts @@ -0,0 +1,104 @@ +/** + * Binds a namespace to an installed container registry for a lane (realm) — the reconciler projects that registry's credentials into the namespace as an image pull secret + * @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 { platformRegistryBindingKeys } from '../query-keys'; +import { platformRegistryBindingMutationKeys } from '../mutation-keys'; +import type { + PlatformRegistryBindingSelect, + PlatformRegistryBindingWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformRegistryBindingSelect, + PlatformRegistryBindingWithRelations, +} from '../../orm/input-types'; +/** + * Binds a namespace to an installed container registry for a lane (realm) — the reconciler projects that registry's credentials into the namespace as an image pull secret + * + * @example + * ```tsx + * const { mutate, isPending } = useDeletePlatformRegistryBindingMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeletePlatformRegistryBindingMutation( + params: { + selection: { + fields: S & PlatformRegistryBindingSelect; + } & HookStrictSelect, PlatformRegistryBindingSelect>; + } & Omit< + UseMutationOptions< + { + deletePlatformRegistryBinding: { + platformRegistryBinding: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deletePlatformRegistryBinding: { + platformRegistryBinding: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeletePlatformRegistryBindingMutation( + 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: platformRegistryBindingMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .platformRegistryBinding.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: platformRegistryBindingKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformRegistryBindingKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useDeletePlatformRegistryGrantMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useDeletePlatformRegistryGrantMutation.ts new file mode 100644 index 0000000000..205903fbbb --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useDeletePlatformRegistryGrantMutation.ts @@ -0,0 +1,104 @@ +/** + * Grants that make a registry usable by one scope + * @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 { platformRegistryGrantKeys } from '../query-keys'; +import { platformRegistryGrantMutationKeys } from '../mutation-keys'; +import type { + PlatformRegistryGrantSelect, + PlatformRegistryGrantWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformRegistryGrantSelect, + PlatformRegistryGrantWithRelations, +} from '../../orm/input-types'; +/** + * Grants that make a registry usable by one scope + * + * @example + * ```tsx + * const { mutate, isPending } = useDeletePlatformRegistryGrantMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeletePlatformRegistryGrantMutation( + params: { + selection: { + fields: S & PlatformRegistryGrantSelect; + } & HookStrictSelect, PlatformRegistryGrantSelect>; + } & Omit< + UseMutationOptions< + { + deletePlatformRegistryGrant: { + platformRegistryGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deletePlatformRegistryGrant: { + platformRegistryGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeletePlatformRegistryGrantMutation( + 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: platformRegistryGrantMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .platformRegistryGrant.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: platformRegistryGrantKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformRegistryGrantKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useDeletePlatformRegistryMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useDeletePlatformRegistryMutation.ts new file mode 100644 index 0000000000..3ea844e39a --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useDeletePlatformRegistryMutation.ts @@ -0,0 +1,98 @@ +/** + * Artifact registries this scope pulls from or pushes to (OCI images, npm packages), platform-run or external + * @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 { platformRegistryKeys } from '../query-keys'; +import { platformRegistryMutationKeys } from '../mutation-keys'; +import type { PlatformRegistrySelect, PlatformRegistryWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { PlatformRegistrySelect, PlatformRegistryWithRelations } from '../../orm/input-types'; +/** + * Artifact registries this scope pulls from or pushes to (OCI images, npm packages), platform-run or external + * + * @example + * ```tsx + * const { mutate, isPending } = useDeletePlatformRegistryMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeletePlatformRegistryMutation( + params: { + selection: { + fields: S & PlatformRegistrySelect; + } & HookStrictSelect, PlatformRegistrySelect>; + } & Omit< + UseMutationOptions< + { + deletePlatformRegistry: { + platformRegistry: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deletePlatformRegistry: { + platformRegistry: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeletePlatformRegistryMutation( + 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: platformRegistryMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .platformRegistry.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: platformRegistryKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformRegistryKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useDeletePlatformRepositoryEventMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useDeletePlatformRepositoryEventMutation.ts new file mode 100644 index 0000000000..05f5b36b92 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useDeletePlatformRepositoryEventMutation.ts @@ -0,0 +1,104 @@ +/** + * Normalized repository events from local hooks and external providers + * @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 { platformRepositoryEventKeys } from '../query-keys'; +import { platformRepositoryEventMutationKeys } from '../mutation-keys'; +import type { + PlatformRepositoryEventSelect, + PlatformRepositoryEventWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformRepositoryEventSelect, + PlatformRepositoryEventWithRelations, +} from '../../orm/input-types'; +/** + * Normalized repository events from local hooks and external providers + * + * @example + * ```tsx + * const { mutate, isPending } = useDeletePlatformRepositoryEventMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeletePlatformRepositoryEventMutation( + params: { + selection: { + fields: S & PlatformRepositoryEventSelect; + } & HookStrictSelect, PlatformRepositoryEventSelect>; + } & Omit< + UseMutationOptions< + { + deletePlatformRepositoryEvent: { + platformRepositoryEvent: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deletePlatformRepositoryEvent: { + platformRepositoryEvent: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeletePlatformRepositoryEventMutation( + 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: platformRepositoryEventMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .platformRepositoryEvent.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: platformRepositoryEventKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformRepositoryEventKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useDeletePlatformRepositoryMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useDeletePlatformRepositoryMutation.ts new file mode 100644 index 0000000000..1472a51012 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useDeletePlatformRepositoryMutation.ts @@ -0,0 +1,104 @@ +/** + * Source repositories, hosted locally or on an external provider + * @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 { platformRepositoryKeys } from '../query-keys'; +import { platformRepositoryMutationKeys } from '../mutation-keys'; +import type { + PlatformRepositorySelect, + PlatformRepositoryWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformRepositorySelect, + PlatformRepositoryWithRelations, +} from '../../orm/input-types'; +/** + * Source repositories, hosted locally or on an external provider + * + * @example + * ```tsx + * const { mutate, isPending } = useDeletePlatformRepositoryMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeletePlatformRepositoryMutation( + params: { + selection: { + fields: S & PlatformRepositorySelect; + } & HookStrictSelect, PlatformRepositorySelect>; + } & Omit< + UseMutationOptions< + { + deletePlatformRepository: { + platformRepository: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deletePlatformRepository: { + platformRepository: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeletePlatformRepositoryMutation( + 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: platformRepositoryMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .platformRepository.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: platformRepositoryKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformRepositoryKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useDeletePlatformRepositoryRequiredCheckMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useDeletePlatformRepositoryRequiredCheckMutation.ts new file mode 100644 index 0000000000..c85ce1620b --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useDeletePlatformRepositoryRequiredCheckMutation.ts @@ -0,0 +1,112 @@ +/** + * Workflows required to pass before a repository proposal merges + * @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 { platformRepositoryRequiredCheckKeys } from '../query-keys'; +import { platformRepositoryRequiredCheckMutationKeys } from '../mutation-keys'; +import type { + PlatformRepositoryRequiredCheckSelect, + PlatformRepositoryRequiredCheckWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformRepositoryRequiredCheckSelect, + PlatformRepositoryRequiredCheckWithRelations, +} from '../../orm/input-types'; +/** + * Workflows required to pass before a repository proposal merges + * + * @example + * ```tsx + * const { mutate, isPending } = useDeletePlatformRepositoryRequiredCheckMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeletePlatformRepositoryRequiredCheckMutation< + S extends PlatformRepositoryRequiredCheckSelect, +>( + params: { + selection: { + fields: S & PlatformRepositoryRequiredCheckSelect; + } & HookStrictSelect, PlatformRepositoryRequiredCheckSelect>; + } & Omit< + UseMutationOptions< + { + deletePlatformRepositoryRequiredCheck: { + platformRepositoryRequiredCheck: InferSelectResult< + PlatformRepositoryRequiredCheckWithRelations, + S + >; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deletePlatformRepositoryRequiredCheck: { + platformRepositoryRequiredCheck: InferSelectResult< + PlatformRepositoryRequiredCheckWithRelations, + S + >; + }; + }, + Error, + { + id: string; + } +>; +export function useDeletePlatformRepositoryRequiredCheckMutation( + 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: platformRepositoryRequiredCheckMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .platformRepositoryRequiredCheck.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: platformRepositoryRequiredCheckKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformRepositoryRequiredCheckKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useDeletePlatformRepositoryWorkflowMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useDeletePlatformRepositoryWorkflowMutation.ts new file mode 100644 index 0000000000..2b122d4635 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useDeletePlatformRepositoryWorkflowMutation.ts @@ -0,0 +1,106 @@ +/** + * Bindings from a repository event to the flow graph that should run + * @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 { platformRepositoryWorkflowKeys } from '../query-keys'; +import { platformRepositoryWorkflowMutationKeys } from '../mutation-keys'; +import type { + PlatformRepositoryWorkflowSelect, + PlatformRepositoryWorkflowWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformRepositoryWorkflowSelect, + PlatformRepositoryWorkflowWithRelations, +} from '../../orm/input-types'; +/** + * Bindings from a repository event to the flow graph that should run + * + * @example + * ```tsx + * const { mutate, isPending } = useDeletePlatformRepositoryWorkflowMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeletePlatformRepositoryWorkflowMutation< + S extends PlatformRepositoryWorkflowSelect, +>( + params: { + selection: { + fields: S & PlatformRepositoryWorkflowSelect; + } & HookStrictSelect, PlatformRepositoryWorkflowSelect>; + } & Omit< + UseMutationOptions< + { + deletePlatformRepositoryWorkflow: { + platformRepositoryWorkflow: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deletePlatformRepositoryWorkflow: { + platformRepositoryWorkflow: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeletePlatformRepositoryWorkflowMutation( + 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: platformRepositoryWorkflowMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .platformRepositoryWorkflow.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: platformRepositoryWorkflowKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformRepositoryWorkflowKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useDeleteProposalCommentMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useDeleteProposalCommentMutation.ts new file mode 100644 index 0000000000..b6a061dc75 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useDeleteProposalCommentMutation.ts @@ -0,0 +1,98 @@ +/** + * Comments on a local proposal, optionally anchored to a line + * @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 { proposalCommentKeys } from '../query-keys'; +import { proposalCommentMutationKeys } from '../mutation-keys'; +import type { ProposalCommentSelect, ProposalCommentWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { ProposalCommentSelect, ProposalCommentWithRelations } from '../../orm/input-types'; +/** + * Comments on a local proposal, optionally anchored to a line + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteProposalCommentMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteProposalCommentMutation( + params: { + selection: { + fields: S & ProposalCommentSelect; + } & HookStrictSelect, ProposalCommentSelect>; + } & Omit< + UseMutationOptions< + { + deleteProposalComment: { + proposalComment: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteProposalComment: { + proposalComment: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteProposalCommentMutation( + 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: proposalCommentMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .proposalComment.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: proposalCommentKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: proposalCommentKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useDeleteProposalFileViewMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useDeleteProposalFileViewMutation.ts new file mode 100644 index 0000000000..1a9d339c1b --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useDeleteProposalFileViewMutation.ts @@ -0,0 +1,98 @@ +/** + * Files a reviewer has read, pinned to the blob they read + * @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 { proposalFileViewKeys } from '../query-keys'; +import { proposalFileViewMutationKeys } from '../mutation-keys'; +import type { ProposalFileViewSelect, ProposalFileViewWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { ProposalFileViewSelect, ProposalFileViewWithRelations } from '../../orm/input-types'; +/** + * Files a reviewer has read, pinned to the blob they read + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteProposalFileViewMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteProposalFileViewMutation( + params: { + selection: { + fields: S & ProposalFileViewSelect; + } & HookStrictSelect, ProposalFileViewSelect>; + } & Omit< + UseMutationOptions< + { + deleteProposalFileView: { + proposalFileView: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteProposalFileView: { + proposalFileView: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteProposalFileViewMutation( + 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: proposalFileViewMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .proposalFileView.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: proposalFileViewKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: proposalFileViewKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useDeleteProposalMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useDeleteProposalMutation.ts new file mode 100644 index 0000000000..75cafe66bc --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useDeleteProposalMutation.ts @@ -0,0 +1,98 @@ +/** + * Proposals against a repository: issues, changes to merge, discussions and decisions + * @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 { proposalKeys } from '../query-keys'; +import { proposalMutationKeys } from '../mutation-keys'; +import type { ProposalSelect, ProposalWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { ProposalSelect, ProposalWithRelations } from '../../orm/input-types'; +/** + * Proposals against a repository: issues, changes to merge, discussions and decisions + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteProposalMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteProposalMutation( + params: { + selection: { + fields: S & ProposalSelect; + } & HookStrictSelect, ProposalSelect>; + } & Omit< + UseMutationOptions< + { + deleteProposal: { + proposal: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteProposal: { + proposal: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteProposalMutation( + 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: proposalMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .proposal.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: proposalKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: proposalKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useDeleteProposalReactionMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useDeleteProposalReactionMutation.ts new file mode 100644 index 0000000000..b57bafb054 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useDeleteProposalReactionMutation.ts @@ -0,0 +1,98 @@ +/** + * Emoji reactions to a local proposal or one of its comments + * @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 { proposalReactionKeys } from '../query-keys'; +import { proposalReactionMutationKeys } from '../mutation-keys'; +import type { ProposalReactionSelect, ProposalReactionWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { ProposalReactionSelect, ProposalReactionWithRelations } from '../../orm/input-types'; +/** + * Emoji reactions to a local proposal or one of its comments + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteProposalReactionMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteProposalReactionMutation( + params: { + selection: { + fields: S & ProposalReactionSelect; + } & HookStrictSelect, ProposalReactionSelect>; + } & Omit< + UseMutationOptions< + { + deleteProposalReaction: { + proposalReaction: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteProposalReaction: { + proposalReaction: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteProposalReactionMutation( + 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: proposalReactionMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .proposalReaction.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: proposalReactionKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: proposalReactionKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useDeleteProposalReviewMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useDeleteProposalReviewMutation.ts new file mode 100644 index 0000000000..3f86099f1f --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useDeleteProposalReviewMutation.ts @@ -0,0 +1,98 @@ +/** + * Review verdicts on a proposal, each pinned to the commit reviewed + * @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 { proposalReviewKeys } from '../query-keys'; +import { proposalReviewMutationKeys } from '../mutation-keys'; +import type { ProposalReviewSelect, ProposalReviewWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { ProposalReviewSelect, ProposalReviewWithRelations } from '../../orm/input-types'; +/** + * Review verdicts on a proposal, each pinned to the commit reviewed + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteProposalReviewMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteProposalReviewMutation( + params: { + selection: { + fields: S & ProposalReviewSelect; + } & HookStrictSelect, ProposalReviewSelect>; + } & Omit< + UseMutationOptions< + { + deleteProposalReview: { + proposalReview: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteProposalReview: { + proposalReview: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteProposalReviewMutation( + 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: proposalReviewMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .proposalReview.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: proposalReviewKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: proposalReviewKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useDeleteProposalsChunkMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useDeleteProposalsChunkMutation.ts new file mode 100644 index 0000000000..b03cc62bb9 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useDeleteProposalsChunkMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for ProposalsChunk + * @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 { proposalsChunkKeys } from '../query-keys'; +import { proposalsChunkMutationKeys } from '../mutation-keys'; +import type { ProposalsChunkSelect, ProposalsChunkWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { ProposalsChunkSelect, ProposalsChunkWithRelations } from '../../orm/input-types'; +/** + * Mutation hook for deleting a ProposalsChunk with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteProposalsChunkMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteProposalsChunkMutation( + params: { + selection: { + fields: S & ProposalsChunkSelect; + } & HookStrictSelect, ProposalsChunkSelect>; + } & Omit< + UseMutationOptions< + { + deleteProposalsChunk: { + proposalsChunk: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteProposalsChunk: { + proposalsChunk: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteProposalsChunkMutation( + 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: proposalsChunkMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .proposalsChunk.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: proposalsChunkKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: proposalsChunkKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useDeleteRegistryBindingMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useDeleteRegistryBindingMutation.ts new file mode 100644 index 0000000000..c0776a2abd --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useDeleteRegistryBindingMutation.ts @@ -0,0 +1,98 @@ +/** + * Binds a namespace to an installed container registry for a lane (realm) — the reconciler projects that registry's credentials into the namespace as an image pull secret + * @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 { registryBindingKeys } from '../query-keys'; +import { registryBindingMutationKeys } from '../mutation-keys'; +import type { RegistryBindingSelect, RegistryBindingWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { RegistryBindingSelect, RegistryBindingWithRelations } from '../../orm/input-types'; +/** + * Binds a namespace to an installed container registry for a lane (realm) — the reconciler projects that registry's credentials into the namespace as an image pull secret + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteRegistryBindingMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteRegistryBindingMutation( + params: { + selection: { + fields: S & RegistryBindingSelect; + } & HookStrictSelect, RegistryBindingSelect>; + } & Omit< + UseMutationOptions< + { + deleteRegistryBinding: { + registryBinding: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteRegistryBinding: { + registryBinding: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteRegistryBindingMutation( + 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: registryBindingMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .registryBinding.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: registryBindingKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: registryBindingKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useDeleteRegistryGrantMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useDeleteRegistryGrantMutation.ts new file mode 100644 index 0000000000..a220f3702f --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useDeleteRegistryGrantMutation.ts @@ -0,0 +1,98 @@ +/** + * Grants that make a registry usable by one scope + * @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 { registryGrantKeys } from '../query-keys'; +import { registryGrantMutationKeys } from '../mutation-keys'; +import type { RegistryGrantSelect, RegistryGrantWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { RegistryGrantSelect, RegistryGrantWithRelations } from '../../orm/input-types'; +/** + * Grants that make a registry usable by one scope + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteRegistryGrantMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteRegistryGrantMutation( + params: { + selection: { + fields: S & RegistryGrantSelect; + } & HookStrictSelect, RegistryGrantSelect>; + } & Omit< + UseMutationOptions< + { + deleteRegistryGrant: { + registryGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteRegistryGrant: { + registryGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteRegistryGrantMutation( + 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: registryGrantMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .registryGrant.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: registryGrantKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: registryGrantKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useDeleteRegistryMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useDeleteRegistryMutation.ts new file mode 100644 index 0000000000..6d609ca388 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useDeleteRegistryMutation.ts @@ -0,0 +1,98 @@ +/** + * Artifact registries this scope pulls from or pushes to (OCI images, npm packages), platform-run or external + * @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 { registryKeys } from '../query-keys'; +import { registryMutationKeys } from '../mutation-keys'; +import type { RegistrySelect, RegistryWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { RegistrySelect, RegistryWithRelations } from '../../orm/input-types'; +/** + * Artifact registries this scope pulls from or pushes to (OCI images, npm packages), platform-run or external + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteRegistryMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteRegistryMutation( + params: { + selection: { + fields: S & RegistrySelect; + } & HookStrictSelect, RegistrySelect>; + } & Omit< + UseMutationOptions< + { + deleteRegistry: { + registry: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteRegistry: { + registry: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteRegistryMutation( + 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: registryMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .registry.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: registryKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: registryKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useDeleteRepositoryEventMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useDeleteRepositoryEventMutation.ts new file mode 100644 index 0000000000..58bfd3f1aa --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useDeleteRepositoryEventMutation.ts @@ -0,0 +1,98 @@ +/** + * Normalized repository events from local hooks and external providers + * @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 { repositoryEventKeys } from '../query-keys'; +import { repositoryEventMutationKeys } from '../mutation-keys'; +import type { RepositoryEventSelect, RepositoryEventWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { RepositoryEventSelect, RepositoryEventWithRelations } from '../../orm/input-types'; +/** + * Normalized repository events from local hooks and external providers + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteRepositoryEventMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteRepositoryEventMutation( + params: { + selection: { + fields: S & RepositoryEventSelect; + } & HookStrictSelect, RepositoryEventSelect>; + } & Omit< + UseMutationOptions< + { + deleteRepositoryEvent: { + repositoryEvent: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteRepositoryEvent: { + repositoryEvent: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteRepositoryEventMutation( + 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: repositoryEventMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .repositoryEvent.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: repositoryEventKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: repositoryEventKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useDeleteRepositoryMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useDeleteRepositoryMutation.ts new file mode 100644 index 0000000000..28521a20c2 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useDeleteRepositoryMutation.ts @@ -0,0 +1,98 @@ +/** + * Source repositories, hosted locally or on an external provider + * @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 { repositoryKeys } from '../query-keys'; +import { repositoryMutationKeys } from '../mutation-keys'; +import type { RepositorySelect, RepositoryWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { RepositorySelect, RepositoryWithRelations } from '../../orm/input-types'; +/** + * Source repositories, hosted locally or on an external provider + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteRepositoryMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteRepositoryMutation( + params: { + selection: { + fields: S & RepositorySelect; + } & HookStrictSelect, RepositorySelect>; + } & Omit< + UseMutationOptions< + { + deleteRepository: { + repository: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteRepository: { + repository: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteRepositoryMutation( + 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: repositoryMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .repository.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: repositoryKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: repositoryKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useDeleteRepositoryRequiredCheckMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useDeleteRepositoryRequiredCheckMutation.ts new file mode 100644 index 0000000000..13da55f66e --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useDeleteRepositoryRequiredCheckMutation.ts @@ -0,0 +1,104 @@ +/** + * Workflows required to pass before a repository proposal merges + * @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 { repositoryRequiredCheckKeys } from '../query-keys'; +import { repositoryRequiredCheckMutationKeys } from '../mutation-keys'; +import type { + RepositoryRequiredCheckSelect, + RepositoryRequiredCheckWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + RepositoryRequiredCheckSelect, + RepositoryRequiredCheckWithRelations, +} from '../../orm/input-types'; +/** + * Workflows required to pass before a repository proposal merges + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteRepositoryRequiredCheckMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteRepositoryRequiredCheckMutation( + params: { + selection: { + fields: S & RepositoryRequiredCheckSelect; + } & HookStrictSelect, RepositoryRequiredCheckSelect>; + } & Omit< + UseMutationOptions< + { + deleteRepositoryRequiredCheck: { + repositoryRequiredCheck: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteRepositoryRequiredCheck: { + repositoryRequiredCheck: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteRepositoryRequiredCheckMutation( + 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: repositoryRequiredCheckMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .repositoryRequiredCheck.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: repositoryRequiredCheckKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: repositoryRequiredCheckKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useDeleteRepositoryWorkflowMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useDeleteRepositoryWorkflowMutation.ts new file mode 100644 index 0000000000..7db91d0924 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useDeleteRepositoryWorkflowMutation.ts @@ -0,0 +1,104 @@ +/** + * Bindings from a repository event to the flow graph that should run + * @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 { repositoryWorkflowKeys } from '../query-keys'; +import { repositoryWorkflowMutationKeys } from '../mutation-keys'; +import type { + RepositoryWorkflowSelect, + RepositoryWorkflowWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + RepositoryWorkflowSelect, + RepositoryWorkflowWithRelations, +} from '../../orm/input-types'; +/** + * Bindings from a repository event to the flow graph that should run + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteRepositoryWorkflowMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteRepositoryWorkflowMutation( + params: { + selection: { + fields: S & RepositoryWorkflowSelect; + } & HookStrictSelect, RepositoryWorkflowSelect>; + } & Omit< + UseMutationOptions< + { + deleteRepositoryWorkflow: { + repositoryWorkflow: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteRepositoryWorkflow: { + repositoryWorkflow: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteRepositoryWorkflowMutation( + 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: repositoryWorkflowMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .repositoryWorkflow.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: repositoryWorkflowKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: repositoryWorkflowKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useFunctionInvocationsCreateSyncMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useFunctionInvocationsCreateSyncMutation.ts new file mode 100644 index 0000000000..426400a4dd --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useFunctionInvocationsCreateSyncMutation.ts @@ -0,0 +1,66 @@ +/** + * Custom mutation hook for functionInvocationsCreateSync + * @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 { FunctionInvocationsCreateSyncVariables } from '../../orm/mutation'; +import type { + FunctionInvocationsCreateSyncPayloadSelect, + FunctionInvocationsCreateSyncPayload, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { FunctionInvocationsCreateSyncVariables } from '../../orm/mutation'; +export type { FunctionInvocationsCreateSyncPayloadSelect } from '../../orm/input-types'; +export function useFunctionInvocationsCreateSyncMutation< + S extends FunctionInvocationsCreateSyncPayloadSelect, +>( + params: { + selection: { + fields: S & FunctionInvocationsCreateSyncPayloadSelect; + } & HookStrictSelect, FunctionInvocationsCreateSyncPayloadSelect>; + } & Omit< + UseMutationOptions< + { + functionInvocationsCreateSync: InferSelectResult< + FunctionInvocationsCreateSyncPayload, + S + > | null; + }, + Error, + FunctionInvocationsCreateSyncVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + functionInvocationsCreateSync: InferSelectResult< + FunctionInvocationsCreateSyncPayload, + S + > | null; + }, + Error, + FunctionInvocationsCreateSyncVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.functionInvocationsCreateSync(), + mutationFn: (variables: FunctionInvocationsCreateSyncVariables) => + getClient() + .mutation.functionInvocationsCreateSync(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/usePlatformFunctionInvocationsCreateSyncMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/usePlatformFunctionInvocationsCreateSyncMutation.ts new file mode 100644 index 0000000000..797c82fdd7 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/usePlatformFunctionInvocationsCreateSyncMutation.ts @@ -0,0 +1,66 @@ +/** + * Custom mutation hook for platformFunctionInvocationsCreateSync + * @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 { PlatformFunctionInvocationsCreateSyncVariables } from '../../orm/mutation'; +import type { + PlatformFunctionInvocationsCreateSyncPayloadSelect, + PlatformFunctionInvocationsCreateSyncPayload, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { PlatformFunctionInvocationsCreateSyncVariables } from '../../orm/mutation'; +export type { PlatformFunctionInvocationsCreateSyncPayloadSelect } from '../../orm/input-types'; +export function usePlatformFunctionInvocationsCreateSyncMutation< + S extends PlatformFunctionInvocationsCreateSyncPayloadSelect, +>( + params: { + selection: { + fields: S & PlatformFunctionInvocationsCreateSyncPayloadSelect; + } & HookStrictSelect, PlatformFunctionInvocationsCreateSyncPayloadSelect>; + } & Omit< + UseMutationOptions< + { + platformFunctionInvocationsCreateSync: InferSelectResult< + PlatformFunctionInvocationsCreateSyncPayload, + S + > | null; + }, + Error, + PlatformFunctionInvocationsCreateSyncVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + platformFunctionInvocationsCreateSync: InferSelectResult< + PlatformFunctionInvocationsCreateSyncPayload, + S + > | null; + }, + Error, + PlatformFunctionInvocationsCreateSyncVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.platformFunctionInvocationsCreateSync(), + mutationFn: (variables: PlatformFunctionInvocationsCreateSyncVariables) => + getClient() + .mutation.platformFunctionInvocationsCreateSync(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useUpdateBuildMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useUpdateBuildMutation.ts new file mode 100644 index 0000000000..151c26a6fb --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useUpdateBuildMutation.ts @@ -0,0 +1,102 @@ +/** + * One run of a repository workflow: its commit, its job, and what it produced + * @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 { buildKeys } from '../query-keys'; +import { buildMutationKeys } from '../mutation-keys'; +import type { BuildSelect, BuildWithRelations, BuildPatch } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { BuildSelect, BuildWithRelations, BuildPatch } from '../../orm/input-types'; +/** + * One run of a repository workflow: its commit, its job, and what it produced + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateBuildMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', buildPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateBuildMutation( + params: { + selection: { + fields: S & BuildSelect; + } & HookStrictSelect, BuildSelect>; + } & Omit< + UseMutationOptions< + { + updateBuild: { + build: InferSelectResult; + }; + }, + Error, + { + id: string; + buildPatch: BuildPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateBuild: { + build: InferSelectResult; + }; + }, + Error, + { + id: string; + buildPatch: BuildPatch; + } +>; +export function useUpdateBuildMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + buildPatch: BuildPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: buildMutationKeys.all, + mutationFn: ({ id, buildPatch }: { id: string; buildPatch: BuildPatch }) => + getClient() + .build.update({ + where: { + id, + }, + data: buildPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: buildKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: buildKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useUpdateBuildStepMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useUpdateBuildStepMutation.ts new file mode 100644 index 0000000000..96fec1d1b4 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useUpdateBuildStepMutation.ts @@ -0,0 +1,122 @@ +/** + * Partitioned append-only step and test results of a build, keyed into its log object + * @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 { buildStepKeys } from '../query-keys'; +import { buildStepMutationKeys } from '../mutation-keys'; +import type { + BuildStepSelect, + BuildStepWithRelations, + BuildStepPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + BuildStepSelect, + BuildStepWithRelations, + BuildStepPatch, +} from '../../orm/input-types'; +/** + * Partitioned append-only step and test results of a build, keyed into its log object + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateBuildStepMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', buildStepPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateBuildStepMutation( + params: { + selection: { + fields: S & BuildStepSelect; + } & HookStrictSelect, BuildStepSelect>; + } & Omit< + UseMutationOptions< + { + updateBuildStep: { + buildStep: InferSelectResult; + }; + }, + Error, + { + id: string; + recordedAt: string; + buildStepPatch: BuildStepPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateBuildStep: { + buildStep: InferSelectResult; + }; + }, + Error, + { + id: string; + recordedAt: string; + buildStepPatch: BuildStepPatch; + } +>; +export function useUpdateBuildStepMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + recordedAt: string; + buildStepPatch: BuildStepPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: buildStepMutationKeys.all, + mutationFn: ({ + id, + recordedAt, + buildStepPatch, + }: { + id: string; + recordedAt: string; + buildStepPatch: BuildStepPatch; + }) => + getClient() + .buildStep.update({ + where: { + id, + recordedAt, + }, + data: buildStepPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: buildStepKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: buildStepKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useUpdateBuilderBindingMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useUpdateBuilderBindingMutation.ts new file mode 100644 index 0000000000..8e095c6826 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useUpdateBuilderBindingMutation.ts @@ -0,0 +1,116 @@ +/** + * Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST + * @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 { builderBindingKeys } from '../query-keys'; +import { builderBindingMutationKeys } from '../mutation-keys'; +import type { + BuilderBindingSelect, + BuilderBindingWithRelations, + BuilderBindingPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + BuilderBindingSelect, + BuilderBindingWithRelations, + BuilderBindingPatch, +} from '../../orm/input-types'; +/** + * Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateBuilderBindingMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', builderBindingPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateBuilderBindingMutation( + params: { + selection: { + fields: S & BuilderBindingSelect; + } & HookStrictSelect, BuilderBindingSelect>; + } & Omit< + UseMutationOptions< + { + updateBuilderBinding: { + builderBinding: InferSelectResult; + }; + }, + Error, + { + id: string; + builderBindingPatch: BuilderBindingPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateBuilderBinding: { + builderBinding: InferSelectResult; + }; + }, + Error, + { + id: string; + builderBindingPatch: BuilderBindingPatch; + } +>; +export function useUpdateBuilderBindingMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + builderBindingPatch: BuilderBindingPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: builderBindingMutationKeys.all, + mutationFn: ({ + id, + builderBindingPatch, + }: { + id: string; + builderBindingPatch: BuilderBindingPatch; + }) => + getClient() + .builderBinding.update({ + where: { + id, + }, + data: builderBindingPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: builderBindingKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: builderBindingKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useUpdateDatabaseFunctionGraphExecutionMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useUpdateDatabaseFunctionGraphExecutionMutation.ts new file mode 100644 index 0000000000..25ede83e98 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useUpdateDatabaseFunctionGraphExecutionMutation.ts @@ -0,0 +1,130 @@ +/** + * Ephemeral execution state for flow graph evaluation + * @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 { databaseFunctionGraphExecutionKeys } from '../query-keys'; +import { databaseFunctionGraphExecutionMutationKeys } from '../mutation-keys'; +import type { + DatabaseFunctionGraphExecutionSelect, + DatabaseFunctionGraphExecutionWithRelations, + DatabaseFunctionGraphExecutionPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + DatabaseFunctionGraphExecutionSelect, + DatabaseFunctionGraphExecutionWithRelations, + DatabaseFunctionGraphExecutionPatch, +} from '../../orm/input-types'; +/** + * Ephemeral execution state for flow graph evaluation + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateDatabaseFunctionGraphExecutionMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', databaseFunctionGraphExecutionPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateDatabaseFunctionGraphExecutionMutation< + S extends DatabaseFunctionGraphExecutionSelect, +>( + params: { + selection: { + fields: S & DatabaseFunctionGraphExecutionSelect; + } & HookStrictSelect, DatabaseFunctionGraphExecutionSelect>; + } & Omit< + UseMutationOptions< + { + updateDatabaseFunctionGraphExecution: { + databaseFunctionGraphExecution: InferSelectResult< + DatabaseFunctionGraphExecutionWithRelations, + S + >; + }; + }, + Error, + { + id: string; + startedAt: string; + databaseFunctionGraphExecutionPatch: DatabaseFunctionGraphExecutionPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateDatabaseFunctionGraphExecution: { + databaseFunctionGraphExecution: InferSelectResult< + DatabaseFunctionGraphExecutionWithRelations, + S + >; + }; + }, + Error, + { + id: string; + startedAt: string; + databaseFunctionGraphExecutionPatch: DatabaseFunctionGraphExecutionPatch; + } +>; +export function useUpdateDatabaseFunctionGraphExecutionMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + startedAt: string; + databaseFunctionGraphExecutionPatch: DatabaseFunctionGraphExecutionPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: databaseFunctionGraphExecutionMutationKeys.all, + mutationFn: ({ + id, + startedAt, + databaseFunctionGraphExecutionPatch, + }: { + id: string; + startedAt: string; + databaseFunctionGraphExecutionPatch: DatabaseFunctionGraphExecutionPatch; + }) => + getClient() + .databaseFunctionGraphExecution.update({ + where: { + id, + startedAt, + }, + data: databaseFunctionGraphExecutionPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: databaseFunctionGraphExecutionKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: databaseFunctionGraphExecutionKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useUpdateDatabaseFunctionGraphExecutionNodeStateMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useUpdateDatabaseFunctionGraphExecutionNodeStateMutation.ts new file mode 100644 index 0000000000..ada8814f09 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useUpdateDatabaseFunctionGraphExecutionNodeStateMutation.ts @@ -0,0 +1,130 @@ +/** + * Per-node execution state — tracks individual node lifecycle for debugging + * @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 { databaseFunctionGraphExecutionNodeStateKeys } from '../query-keys'; +import { databaseFunctionGraphExecutionNodeStateMutationKeys } from '../mutation-keys'; +import type { + DatabaseFunctionGraphExecutionNodeStateSelect, + DatabaseFunctionGraphExecutionNodeStateWithRelations, + DatabaseFunctionGraphExecutionNodeStatePatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + DatabaseFunctionGraphExecutionNodeStateSelect, + DatabaseFunctionGraphExecutionNodeStateWithRelations, + DatabaseFunctionGraphExecutionNodeStatePatch, +} from '../../orm/input-types'; +/** + * Per-node execution state — tracks individual node lifecycle for debugging + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateDatabaseFunctionGraphExecutionNodeStateMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', databaseFunctionGraphExecutionNodeStatePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateDatabaseFunctionGraphExecutionNodeStateMutation< + S extends DatabaseFunctionGraphExecutionNodeStateSelect, +>( + params: { + selection: { + fields: S & DatabaseFunctionGraphExecutionNodeStateSelect; + } & HookStrictSelect, DatabaseFunctionGraphExecutionNodeStateSelect>; + } & Omit< + UseMutationOptions< + { + updateDatabaseFunctionGraphExecutionNodeState: { + databaseFunctionGraphExecutionNodeState: InferSelectResult< + DatabaseFunctionGraphExecutionNodeStateWithRelations, + S + >; + }; + }, + Error, + { + id: string; + createdAt: string; + databaseFunctionGraphExecutionNodeStatePatch: DatabaseFunctionGraphExecutionNodeStatePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateDatabaseFunctionGraphExecutionNodeState: { + databaseFunctionGraphExecutionNodeState: InferSelectResult< + DatabaseFunctionGraphExecutionNodeStateWithRelations, + S + >; + }; + }, + Error, + { + id: string; + createdAt: string; + databaseFunctionGraphExecutionNodeStatePatch: DatabaseFunctionGraphExecutionNodeStatePatch; + } +>; +export function useUpdateDatabaseFunctionGraphExecutionNodeStateMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + createdAt: string; + databaseFunctionGraphExecutionNodeStatePatch: DatabaseFunctionGraphExecutionNodeStatePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: databaseFunctionGraphExecutionNodeStateMutationKeys.all, + mutationFn: ({ + id, + createdAt, + databaseFunctionGraphExecutionNodeStatePatch, + }: { + id: string; + createdAt: string; + databaseFunctionGraphExecutionNodeStatePatch: DatabaseFunctionGraphExecutionNodeStatePatch; + }) => + getClient() + .databaseFunctionGraphExecutionNodeState.update({ + where: { + id, + createdAt, + }, + data: databaseFunctionGraphExecutionNodeStatePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: databaseFunctionGraphExecutionNodeStateKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: databaseFunctionGraphExecutionNodeStateKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useUpdateDatabaseFunctionGraphExecutionOutputMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useUpdateDatabaseFunctionGraphExecutionOutputMutation.ts new file mode 100644 index 0000000000..24a4f51469 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useUpdateDatabaseFunctionGraphExecutionOutputMutation.ts @@ -0,0 +1,130 @@ +/** + * Content-addressed store for execution outputs — hash-referenced from node_outputs + * @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 { databaseFunctionGraphExecutionOutputKeys } from '../query-keys'; +import { databaseFunctionGraphExecutionOutputMutationKeys } from '../mutation-keys'; +import type { + DatabaseFunctionGraphExecutionOutputSelect, + DatabaseFunctionGraphExecutionOutputWithRelations, + DatabaseFunctionGraphExecutionOutputPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + DatabaseFunctionGraphExecutionOutputSelect, + DatabaseFunctionGraphExecutionOutputWithRelations, + DatabaseFunctionGraphExecutionOutputPatch, +} from '../../orm/input-types'; +/** + * Content-addressed store for execution outputs — hash-referenced from node_outputs + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateDatabaseFunctionGraphExecutionOutputMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', databaseFunctionGraphExecutionOutputPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateDatabaseFunctionGraphExecutionOutputMutation< + S extends DatabaseFunctionGraphExecutionOutputSelect, +>( + params: { + selection: { + fields: S & DatabaseFunctionGraphExecutionOutputSelect; + } & HookStrictSelect, DatabaseFunctionGraphExecutionOutputSelect>; + } & Omit< + UseMutationOptions< + { + updateDatabaseFunctionGraphExecutionOutput: { + databaseFunctionGraphExecutionOutput: InferSelectResult< + DatabaseFunctionGraphExecutionOutputWithRelations, + S + >; + }; + }, + Error, + { + id: string; + createdAt: string; + databaseFunctionGraphExecutionOutputPatch: DatabaseFunctionGraphExecutionOutputPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateDatabaseFunctionGraphExecutionOutput: { + databaseFunctionGraphExecutionOutput: InferSelectResult< + DatabaseFunctionGraphExecutionOutputWithRelations, + S + >; + }; + }, + Error, + { + id: string; + createdAt: string; + databaseFunctionGraphExecutionOutputPatch: DatabaseFunctionGraphExecutionOutputPatch; + } +>; +export function useUpdateDatabaseFunctionGraphExecutionOutputMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + createdAt: string; + databaseFunctionGraphExecutionOutputPatch: DatabaseFunctionGraphExecutionOutputPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: databaseFunctionGraphExecutionOutputMutationKeys.all, + mutationFn: ({ + id, + createdAt, + databaseFunctionGraphExecutionOutputPatch, + }: { + id: string; + createdAt: string; + databaseFunctionGraphExecutionOutputPatch: DatabaseFunctionGraphExecutionOutputPatch; + }) => + getClient() + .databaseFunctionGraphExecutionOutput.update({ + where: { + id, + createdAt, + }, + data: databaseFunctionGraphExecutionOutputPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: databaseFunctionGraphExecutionOutputKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: databaseFunctionGraphExecutionOutputKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useUpdateDatabaseFunctionGraphMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useUpdateDatabaseFunctionGraphMutation.ts new file mode 100644 index 0000000000..26edadb6f1 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useUpdateDatabaseFunctionGraphMutation.ts @@ -0,0 +1,116 @@ +/** + * Flow graph definitions — FBP graphs stored in the dedicated graph Merkle 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 { databaseFunctionGraphKeys } from '../query-keys'; +import { databaseFunctionGraphMutationKeys } from '../mutation-keys'; +import type { + DatabaseFunctionGraphSelect, + DatabaseFunctionGraphWithRelations, + DatabaseFunctionGraphPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + DatabaseFunctionGraphSelect, + DatabaseFunctionGraphWithRelations, + DatabaseFunctionGraphPatch, +} from '../../orm/input-types'; +/** + * Flow graph definitions — FBP graphs stored in the dedicated graph Merkle store + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateDatabaseFunctionGraphMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', databaseFunctionGraphPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateDatabaseFunctionGraphMutation( + params: { + selection: { + fields: S & DatabaseFunctionGraphSelect; + } & HookStrictSelect, DatabaseFunctionGraphSelect>; + } & Omit< + UseMutationOptions< + { + updateDatabaseFunctionGraph: { + databaseFunctionGraph: InferSelectResult; + }; + }, + Error, + { + id: string; + databaseFunctionGraphPatch: DatabaseFunctionGraphPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateDatabaseFunctionGraph: { + databaseFunctionGraph: InferSelectResult; + }; + }, + Error, + { + id: string; + databaseFunctionGraphPatch: DatabaseFunctionGraphPatch; + } +>; +export function useUpdateDatabaseFunctionGraphMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + databaseFunctionGraphPatch: DatabaseFunctionGraphPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: databaseFunctionGraphMutationKeys.all, + mutationFn: ({ + id, + databaseFunctionGraphPatch, + }: { + id: string; + databaseFunctionGraphPatch: DatabaseFunctionGraphPatch; + }) => + getClient() + .databaseFunctionGraph.update({ + where: { + id, + }, + data: databaseFunctionGraphPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: databaseFunctionGraphKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: databaseFunctionGraphKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useUpdateDatabaseGraphCommitMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useUpdateDatabaseGraphCommitMutation.ts new file mode 100644 index 0000000000..a6505a940d --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useUpdateDatabaseGraphCommitMutation.ts @@ -0,0 +1,122 @@ +/** + * Commit history — each commit snapshots a tree root for a 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 { databaseGraphCommitKeys } from '../query-keys'; +import { databaseGraphCommitMutationKeys } from '../mutation-keys'; +import type { + DatabaseGraphCommitSelect, + DatabaseGraphCommitWithRelations, + DatabaseGraphCommitPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + DatabaseGraphCommitSelect, + DatabaseGraphCommitWithRelations, + DatabaseGraphCommitPatch, +} from '../../orm/input-types'; +/** + * Commit history — each commit snapshots a tree root for a store + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateDatabaseGraphCommitMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', databaseGraphCommitPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateDatabaseGraphCommitMutation( + params: { + selection: { + fields: S & DatabaseGraphCommitSelect; + } & HookStrictSelect, DatabaseGraphCommitSelect>; + } & Omit< + UseMutationOptions< + { + updateDatabaseGraphCommit: { + databaseGraphCommit: InferSelectResult; + }; + }, + Error, + { + id: string; + databaseId: string; + databaseGraphCommitPatch: DatabaseGraphCommitPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateDatabaseGraphCommit: { + databaseGraphCommit: InferSelectResult; + }; + }, + Error, + { + id: string; + databaseId: string; + databaseGraphCommitPatch: DatabaseGraphCommitPatch; + } +>; +export function useUpdateDatabaseGraphCommitMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + databaseId: string; + databaseGraphCommitPatch: DatabaseGraphCommitPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: databaseGraphCommitMutationKeys.all, + mutationFn: ({ + id, + databaseId, + databaseGraphCommitPatch, + }: { + id: string; + databaseId: string; + databaseGraphCommitPatch: DatabaseGraphCommitPatch; + }) => + getClient() + .databaseGraphCommit.update({ + where: { + id, + databaseId, + }, + data: databaseGraphCommitPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: databaseGraphCommitKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: databaseGraphCommitKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useUpdateDatabaseGraphObjectMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useUpdateDatabaseGraphObjectMutation.ts new file mode 100644 index 0000000000..af03de54a5 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useUpdateDatabaseGraphObjectMutation.ts @@ -0,0 +1,122 @@ +/** + * Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children + * @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 { databaseGraphObjectKeys } from '../query-keys'; +import { databaseGraphObjectMutationKeys } from '../mutation-keys'; +import type { + DatabaseGraphObjectSelect, + DatabaseGraphObjectWithRelations, + DatabaseGraphObjectPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + DatabaseGraphObjectSelect, + DatabaseGraphObjectWithRelations, + DatabaseGraphObjectPatch, +} from '../../orm/input-types'; +/** + * Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateDatabaseGraphObjectMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', databaseGraphObjectPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateDatabaseGraphObjectMutation( + params: { + selection: { + fields: S & DatabaseGraphObjectSelect; + } & HookStrictSelect, DatabaseGraphObjectSelect>; + } & Omit< + UseMutationOptions< + { + updateDatabaseGraphObject: { + databaseGraphObject: InferSelectResult; + }; + }, + Error, + { + id: string; + databaseId: string; + databaseGraphObjectPatch: DatabaseGraphObjectPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateDatabaseGraphObject: { + databaseGraphObject: InferSelectResult; + }; + }, + Error, + { + id: string; + databaseId: string; + databaseGraphObjectPatch: DatabaseGraphObjectPatch; + } +>; +export function useUpdateDatabaseGraphObjectMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + databaseId: string; + databaseGraphObjectPatch: DatabaseGraphObjectPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: databaseGraphObjectMutationKeys.all, + mutationFn: ({ + id, + databaseId, + databaseGraphObjectPatch, + }: { + id: string; + databaseId: string; + databaseGraphObjectPatch: DatabaseGraphObjectPatch; + }) => + getClient() + .databaseGraphObject.update({ + where: { + id, + databaseId, + }, + data: databaseGraphObjectPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: databaseGraphObjectKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: databaseGraphObjectKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useUpdateDatabaseGraphRefMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useUpdateDatabaseGraphRefMutation.ts new file mode 100644 index 0000000000..b567a5a2ad --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useUpdateDatabaseGraphRefMutation.ts @@ -0,0 +1,122 @@ +/** + * Branch heads — mutable pointers into the commit chain + * @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 { databaseGraphRefKeys } from '../query-keys'; +import { databaseGraphRefMutationKeys } from '../mutation-keys'; +import type { + DatabaseGraphRefSelect, + DatabaseGraphRefWithRelations, + DatabaseGraphRefPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + DatabaseGraphRefSelect, + DatabaseGraphRefWithRelations, + DatabaseGraphRefPatch, +} from '../../orm/input-types'; +/** + * Branch heads — mutable pointers into the commit chain + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateDatabaseGraphRefMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', databaseGraphRefPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateDatabaseGraphRefMutation( + params: { + selection: { + fields: S & DatabaseGraphRefSelect; + } & HookStrictSelect, DatabaseGraphRefSelect>; + } & Omit< + UseMutationOptions< + { + updateDatabaseGraphRef: { + databaseGraphRef: InferSelectResult; + }; + }, + Error, + { + id: string; + databaseId: string; + databaseGraphRefPatch: DatabaseGraphRefPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateDatabaseGraphRef: { + databaseGraphRef: InferSelectResult; + }; + }, + Error, + { + id: string; + databaseId: string; + databaseGraphRefPatch: DatabaseGraphRefPatch; + } +>; +export function useUpdateDatabaseGraphRefMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + databaseId: string; + databaseGraphRefPatch: DatabaseGraphRefPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: databaseGraphRefMutationKeys.all, + mutationFn: ({ + id, + databaseId, + databaseGraphRefPatch, + }: { + id: string; + databaseId: string; + databaseGraphRefPatch: DatabaseGraphRefPatch; + }) => + getClient() + .databaseGraphRef.update({ + where: { + id, + databaseId, + }, + data: databaseGraphRefPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: databaseGraphRefKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: databaseGraphRefKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useUpdateDatabaseGraphStoreMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useUpdateDatabaseGraphStoreMutation.ts new file mode 100644 index 0000000000..50e7fe94f7 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useUpdateDatabaseGraphStoreMutation.ts @@ -0,0 +1,116 @@ +/** + * Named stores — one per version-controlled tree (e.g. one graph, one definition set) + * @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 { databaseGraphStoreKeys } from '../query-keys'; +import { databaseGraphStoreMutationKeys } from '../mutation-keys'; +import type { + DatabaseGraphStoreSelect, + DatabaseGraphStoreWithRelations, + DatabaseGraphStorePatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + DatabaseGraphStoreSelect, + DatabaseGraphStoreWithRelations, + DatabaseGraphStorePatch, +} from '../../orm/input-types'; +/** + * Named stores — one per version-controlled tree (e.g. one graph, one definition set) + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateDatabaseGraphStoreMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', databaseGraphStorePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateDatabaseGraphStoreMutation( + params: { + selection: { + fields: S & DatabaseGraphStoreSelect; + } & HookStrictSelect, DatabaseGraphStoreSelect>; + } & Omit< + UseMutationOptions< + { + updateDatabaseGraphStore: { + databaseGraphStore: InferSelectResult; + }; + }, + Error, + { + id: string; + databaseGraphStorePatch: DatabaseGraphStorePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateDatabaseGraphStore: { + databaseGraphStore: InferSelectResult; + }; + }, + Error, + { + id: string; + databaseGraphStorePatch: DatabaseGraphStorePatch; + } +>; +export function useUpdateDatabaseGraphStoreMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + databaseGraphStorePatch: DatabaseGraphStorePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: databaseGraphStoreMutationKeys.all, + mutationFn: ({ + id, + databaseGraphStorePatch, + }: { + id: string; + databaseGraphStorePatch: DatabaseGraphStorePatch; + }) => + getClient() + .databaseGraphStore.update({ + where: { + id, + }, + data: databaseGraphStorePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: databaseGraphStoreKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: databaseGraphStoreKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useUpdateImageGrantMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useUpdateImageGrantMutation.ts new file mode 100644 index 0000000000..eb1cefc9eb --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useUpdateImageGrantMutation.ts @@ -0,0 +1,110 @@ +/** + * Grants that make a catalog image usable by one scope + * @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 { imageGrantKeys } from '../query-keys'; +import { imageGrantMutationKeys } from '../mutation-keys'; +import type { + ImageGrantSelect, + ImageGrantWithRelations, + ImageGrantPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + ImageGrantSelect, + ImageGrantWithRelations, + ImageGrantPatch, +} from '../../orm/input-types'; +/** + * Grants that make a catalog image usable by one scope + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateImageGrantMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', imageGrantPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateImageGrantMutation( + params: { + selection: { + fields: S & ImageGrantSelect; + } & HookStrictSelect, ImageGrantSelect>; + } & Omit< + UseMutationOptions< + { + updateImageGrant: { + imageGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + imageGrantPatch: ImageGrantPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateImageGrant: { + imageGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + imageGrantPatch: ImageGrantPatch; + } +>; +export function useUpdateImageGrantMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + imageGrantPatch: ImageGrantPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: imageGrantMutationKeys.all, + mutationFn: ({ id, imageGrantPatch }: { id: string; imageGrantPatch: ImageGrantPatch }) => + getClient() + .imageGrant.update({ + where: { + id, + }, + data: imageGrantPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: imageGrantKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: imageGrantKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useUpdateImageMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useUpdateImageMutation.ts new file mode 100644 index 0000000000..5ce0119e0f --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useUpdateImageMutation.ts @@ -0,0 +1,102 @@ +/** + * Container image catalog: images available to run as functions, resources, and builds + * @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 { imageKeys } from '../query-keys'; +import { imageMutationKeys } from '../mutation-keys'; +import type { ImageSelect, ImageWithRelations, ImagePatch } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { ImageSelect, ImageWithRelations, ImagePatch } from '../../orm/input-types'; +/** + * Container image catalog: images available to run as functions, resources, and builds + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateImageMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', imagePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateImageMutation( + params: { + selection: { + fields: S & ImageSelect; + } & HookStrictSelect, ImageSelect>; + } & Omit< + UseMutationOptions< + { + updateImage: { + image: InferSelectResult; + }; + }, + Error, + { + id: string; + imagePatch: ImagePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateImage: { + image: InferSelectResult; + }; + }, + Error, + { + id: string; + imagePatch: ImagePatch; + } +>; +export function useUpdateImageMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + imagePatch: ImagePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: imageMutationKeys.all, + mutationFn: ({ id, imagePatch }: { id: string; imagePatch: ImagePatch }) => + getClient() + .image.update({ + where: { + id, + }, + data: imagePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: imageKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: imageKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useUpdatePlatformBuildMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useUpdatePlatformBuildMutation.ts new file mode 100644 index 0000000000..8560b305fc --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useUpdatePlatformBuildMutation.ts @@ -0,0 +1,116 @@ +/** + * One run of a repository workflow: its commit, its job, and what it produced + * @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 { platformBuildKeys } from '../query-keys'; +import { platformBuildMutationKeys } from '../mutation-keys'; +import type { + PlatformBuildSelect, + PlatformBuildWithRelations, + PlatformBuildPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformBuildSelect, + PlatformBuildWithRelations, + PlatformBuildPatch, +} from '../../orm/input-types'; +/** + * One run of a repository workflow: its commit, its job, and what it produced + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdatePlatformBuildMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', platformBuildPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdatePlatformBuildMutation( + params: { + selection: { + fields: S & PlatformBuildSelect; + } & HookStrictSelect, PlatformBuildSelect>; + } & Omit< + UseMutationOptions< + { + updatePlatformBuild: { + platformBuild: InferSelectResult; + }; + }, + Error, + { + id: string; + platformBuildPatch: PlatformBuildPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updatePlatformBuild: { + platformBuild: InferSelectResult; + }; + }, + Error, + { + id: string; + platformBuildPatch: PlatformBuildPatch; + } +>; +export function useUpdatePlatformBuildMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + platformBuildPatch: PlatformBuildPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformBuildMutationKeys.all, + mutationFn: ({ + id, + platformBuildPatch, + }: { + id: string; + platformBuildPatch: PlatformBuildPatch; + }) => + getClient() + .platformBuild.update({ + where: { + id, + }, + data: platformBuildPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: platformBuildKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformBuildKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useUpdatePlatformBuildStepMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useUpdatePlatformBuildStepMutation.ts new file mode 100644 index 0000000000..35c0a89150 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useUpdatePlatformBuildStepMutation.ts @@ -0,0 +1,122 @@ +/** + * Partitioned append-only step and test results of a build, keyed into its log object + * @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 { platformBuildStepKeys } from '../query-keys'; +import { platformBuildStepMutationKeys } from '../mutation-keys'; +import type { + PlatformBuildStepSelect, + PlatformBuildStepWithRelations, + PlatformBuildStepPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformBuildStepSelect, + PlatformBuildStepWithRelations, + PlatformBuildStepPatch, +} from '../../orm/input-types'; +/** + * Partitioned append-only step and test results of a build, keyed into its log object + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdatePlatformBuildStepMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', platformBuildStepPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdatePlatformBuildStepMutation( + params: { + selection: { + fields: S & PlatformBuildStepSelect; + } & HookStrictSelect, PlatformBuildStepSelect>; + } & Omit< + UseMutationOptions< + { + updatePlatformBuildStep: { + platformBuildStep: InferSelectResult; + }; + }, + Error, + { + id: string; + recordedAt: string; + platformBuildStepPatch: PlatformBuildStepPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updatePlatformBuildStep: { + platformBuildStep: InferSelectResult; + }; + }, + Error, + { + id: string; + recordedAt: string; + platformBuildStepPatch: PlatformBuildStepPatch; + } +>; +export function useUpdatePlatformBuildStepMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + recordedAt: string; + platformBuildStepPatch: PlatformBuildStepPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformBuildStepMutationKeys.all, + mutationFn: ({ + id, + recordedAt, + platformBuildStepPatch, + }: { + id: string; + recordedAt: string; + platformBuildStepPatch: PlatformBuildStepPatch; + }) => + getClient() + .platformBuildStep.update({ + where: { + id, + recordedAt, + }, + data: platformBuildStepPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: platformBuildStepKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformBuildStepKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useUpdatePlatformBuilderBindingMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useUpdatePlatformBuilderBindingMutation.ts new file mode 100644 index 0000000000..c4bb465f60 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useUpdatePlatformBuilderBindingMutation.ts @@ -0,0 +1,116 @@ +/** + * Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST + * @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 { platformBuilderBindingKeys } from '../query-keys'; +import { platformBuilderBindingMutationKeys } from '../mutation-keys'; +import type { + PlatformBuilderBindingSelect, + PlatformBuilderBindingWithRelations, + PlatformBuilderBindingPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformBuilderBindingSelect, + PlatformBuilderBindingWithRelations, + PlatformBuilderBindingPatch, +} from '../../orm/input-types'; +/** + * Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdatePlatformBuilderBindingMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', platformBuilderBindingPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdatePlatformBuilderBindingMutation( + params: { + selection: { + fields: S & PlatformBuilderBindingSelect; + } & HookStrictSelect, PlatformBuilderBindingSelect>; + } & Omit< + UseMutationOptions< + { + updatePlatformBuilderBinding: { + platformBuilderBinding: InferSelectResult; + }; + }, + Error, + { + id: string; + platformBuilderBindingPatch: PlatformBuilderBindingPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updatePlatformBuilderBinding: { + platformBuilderBinding: InferSelectResult; + }; + }, + Error, + { + id: string; + platformBuilderBindingPatch: PlatformBuilderBindingPatch; + } +>; +export function useUpdatePlatformBuilderBindingMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + platformBuilderBindingPatch: PlatformBuilderBindingPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformBuilderBindingMutationKeys.all, + mutationFn: ({ + id, + platformBuilderBindingPatch, + }: { + id: string; + platformBuilderBindingPatch: PlatformBuilderBindingPatch; + }) => + getClient() + .platformBuilderBinding.update({ + where: { + id, + }, + data: platformBuilderBindingPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: platformBuilderBindingKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformBuilderBindingKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useUpdatePlatformImageGrantMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useUpdatePlatformImageGrantMutation.ts new file mode 100644 index 0000000000..e5d71fff0d --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useUpdatePlatformImageGrantMutation.ts @@ -0,0 +1,116 @@ +/** + * Grants that make a catalog image usable by one scope + * @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 { platformImageGrantKeys } from '../query-keys'; +import { platformImageGrantMutationKeys } from '../mutation-keys'; +import type { + PlatformImageGrantSelect, + PlatformImageGrantWithRelations, + PlatformImageGrantPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformImageGrantSelect, + PlatformImageGrantWithRelations, + PlatformImageGrantPatch, +} from '../../orm/input-types'; +/** + * Grants that make a catalog image usable by one scope + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdatePlatformImageGrantMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', platformImageGrantPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdatePlatformImageGrantMutation( + params: { + selection: { + fields: S & PlatformImageGrantSelect; + } & HookStrictSelect, PlatformImageGrantSelect>; + } & Omit< + UseMutationOptions< + { + updatePlatformImageGrant: { + platformImageGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + platformImageGrantPatch: PlatformImageGrantPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updatePlatformImageGrant: { + platformImageGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + platformImageGrantPatch: PlatformImageGrantPatch; + } +>; +export function useUpdatePlatformImageGrantMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + platformImageGrantPatch: PlatformImageGrantPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformImageGrantMutationKeys.all, + mutationFn: ({ + id, + platformImageGrantPatch, + }: { + id: string; + platformImageGrantPatch: PlatformImageGrantPatch; + }) => + getClient() + .platformImageGrant.update({ + where: { + id, + }, + data: platformImageGrantPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: platformImageGrantKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformImageGrantKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useUpdatePlatformImageMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useUpdatePlatformImageMutation.ts new file mode 100644 index 0000000000..4a521065d5 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useUpdatePlatformImageMutation.ts @@ -0,0 +1,116 @@ +/** + * Container image catalog: images available to run as functions, resources, and builds + * @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 { platformImageKeys } from '../query-keys'; +import { platformImageMutationKeys } from '../mutation-keys'; +import type { + PlatformImageSelect, + PlatformImageWithRelations, + PlatformImagePatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformImageSelect, + PlatformImageWithRelations, + PlatformImagePatch, +} from '../../orm/input-types'; +/** + * Container image catalog: images available to run as functions, resources, and builds + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdatePlatformImageMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', platformImagePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdatePlatformImageMutation( + params: { + selection: { + fields: S & PlatformImageSelect; + } & HookStrictSelect, PlatformImageSelect>; + } & Omit< + UseMutationOptions< + { + updatePlatformImage: { + platformImage: InferSelectResult; + }; + }, + Error, + { + id: string; + platformImagePatch: PlatformImagePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updatePlatformImage: { + platformImage: InferSelectResult; + }; + }, + Error, + { + id: string; + platformImagePatch: PlatformImagePatch; + } +>; +export function useUpdatePlatformImageMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + platformImagePatch: PlatformImagePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformImageMutationKeys.all, + mutationFn: ({ + id, + platformImagePatch, + }: { + id: string; + platformImagePatch: PlatformImagePatch; + }) => + getClient() + .platformImage.update({ + where: { + id, + }, + data: platformImagePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: platformImageKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformImageKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useUpdatePlatformK8sResourceKindMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useUpdatePlatformK8sResourceKindMutation.ts new file mode 100644 index 0000000000..9d1e2f0069 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useUpdatePlatformK8sResourceKindMutation.ts @@ -0,0 +1,116 @@ +/** + * Kubernetes kind allow-list for DB-driven resources — merkle-versioned head over the infra store; the admission gate fails closed on kinds without an active row + * @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 { platformK8sResourceKindKeys } from '../query-keys'; +import { platformK8sResourceKindMutationKeys } from '../mutation-keys'; +import type { + PlatformK8sResourceKindSelect, + PlatformK8sResourceKindWithRelations, + PlatformK8sResourceKindPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformK8sResourceKindSelect, + PlatformK8sResourceKindWithRelations, + PlatformK8sResourceKindPatch, +} from '../../orm/input-types'; +/** + * Kubernetes kind allow-list for DB-driven resources — merkle-versioned head over the infra store; the admission gate fails closed on kinds without an active row + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdatePlatformK8sResourceKindMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', platformK8sResourceKindPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdatePlatformK8sResourceKindMutation( + params: { + selection: { + fields: S & PlatformK8sResourceKindSelect; + } & HookStrictSelect, PlatformK8sResourceKindSelect>; + } & Omit< + UseMutationOptions< + { + updatePlatformK8sResourceKind: { + platformK8sResourceKind: InferSelectResult; + }; + }, + Error, + { + id: string; + platformK8sResourceKindPatch: PlatformK8sResourceKindPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updatePlatformK8sResourceKind: { + platformK8sResourceKind: InferSelectResult; + }; + }, + Error, + { + id: string; + platformK8sResourceKindPatch: PlatformK8sResourceKindPatch; + } +>; +export function useUpdatePlatformK8sResourceKindMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + platformK8sResourceKindPatch: PlatformK8sResourceKindPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformK8sResourceKindMutationKeys.all, + mutationFn: ({ + id, + platformK8sResourceKindPatch, + }: { + id: string; + platformK8sResourceKindPatch: PlatformK8sResourceKindPatch; + }) => + getClient() + .platformK8sResourceKind.update({ + where: { + id, + }, + data: platformK8sResourceKindPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: platformK8sResourceKindKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformK8sResourceKindKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useUpdatePlatformK8sSpecRuleMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useUpdatePlatformK8sSpecRuleMutation.ts new file mode 100644 index 0000000000..5e956e10fa --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useUpdatePlatformK8sSpecRuleMutation.ts @@ -0,0 +1,116 @@ +/** + * Spec rulebook for DB-driven resources — merkle-versioned head over the infra store; enforced by the generated admission gate via infra_utils.check_resource_admission + * @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 { platformK8sSpecRuleKeys } from '../query-keys'; +import { platformK8sSpecRuleMutationKeys } from '../mutation-keys'; +import type { + PlatformK8sSpecRuleSelect, + PlatformK8sSpecRuleWithRelations, + PlatformK8sSpecRulePatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformK8sSpecRuleSelect, + PlatformK8sSpecRuleWithRelations, + PlatformK8sSpecRulePatch, +} from '../../orm/input-types'; +/** + * Spec rulebook for DB-driven resources — merkle-versioned head over the infra store; enforced by the generated admission gate via infra_utils.check_resource_admission + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdatePlatformK8sSpecRuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', platformK8sSpecRulePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdatePlatformK8sSpecRuleMutation( + params: { + selection: { + fields: S & PlatformK8sSpecRuleSelect; + } & HookStrictSelect, PlatformK8sSpecRuleSelect>; + } & Omit< + UseMutationOptions< + { + updatePlatformK8sSpecRule: { + platformK8sSpecRule: InferSelectResult; + }; + }, + Error, + { + id: string; + platformK8sSpecRulePatch: PlatformK8sSpecRulePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updatePlatformK8sSpecRule: { + platformK8sSpecRule: InferSelectResult; + }; + }, + Error, + { + id: string; + platformK8sSpecRulePatch: PlatformK8sSpecRulePatch; + } +>; +export function useUpdatePlatformK8sSpecRuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + platformK8sSpecRulePatch: PlatformK8sSpecRulePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformK8sSpecRuleMutationKeys.all, + mutationFn: ({ + id, + platformK8sSpecRulePatch, + }: { + id: string; + platformK8sSpecRulePatch: PlatformK8sSpecRulePatch; + }) => + getClient() + .platformK8sSpecRule.update({ + where: { + id, + }, + data: platformK8sSpecRulePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: platformK8sSpecRuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformK8sSpecRuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useUpdatePlatformProposalCommentMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useUpdatePlatformProposalCommentMutation.ts new file mode 100644 index 0000000000..e1205469ef --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useUpdatePlatformProposalCommentMutation.ts @@ -0,0 +1,116 @@ +/** + * Comments on a local proposal, optionally anchored to a line + * @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 { platformProposalCommentKeys } from '../query-keys'; +import { platformProposalCommentMutationKeys } from '../mutation-keys'; +import type { + PlatformProposalCommentSelect, + PlatformProposalCommentWithRelations, + PlatformProposalCommentPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformProposalCommentSelect, + PlatformProposalCommentWithRelations, + PlatformProposalCommentPatch, +} from '../../orm/input-types'; +/** + * Comments on a local proposal, optionally anchored to a line + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdatePlatformProposalCommentMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', platformProposalCommentPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdatePlatformProposalCommentMutation( + params: { + selection: { + fields: S & PlatformProposalCommentSelect; + } & HookStrictSelect, PlatformProposalCommentSelect>; + } & Omit< + UseMutationOptions< + { + updatePlatformProposalComment: { + platformProposalComment: InferSelectResult; + }; + }, + Error, + { + id: string; + platformProposalCommentPatch: PlatformProposalCommentPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updatePlatformProposalComment: { + platformProposalComment: InferSelectResult; + }; + }, + Error, + { + id: string; + platformProposalCommentPatch: PlatformProposalCommentPatch; + } +>; +export function useUpdatePlatformProposalCommentMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + platformProposalCommentPatch: PlatformProposalCommentPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformProposalCommentMutationKeys.all, + mutationFn: ({ + id, + platformProposalCommentPatch, + }: { + id: string; + platformProposalCommentPatch: PlatformProposalCommentPatch; + }) => + getClient() + .platformProposalComment.update({ + where: { + id, + }, + data: platformProposalCommentPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: platformProposalCommentKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformProposalCommentKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useUpdatePlatformProposalFileViewMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useUpdatePlatformProposalFileViewMutation.ts new file mode 100644 index 0000000000..fbad0307af --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useUpdatePlatformProposalFileViewMutation.ts @@ -0,0 +1,116 @@ +/** + * Files a reviewer has read, pinned to the blob they read + * @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 { platformProposalFileViewKeys } from '../query-keys'; +import { platformProposalFileViewMutationKeys } from '../mutation-keys'; +import type { + PlatformProposalFileViewSelect, + PlatformProposalFileViewWithRelations, + PlatformProposalFileViewPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformProposalFileViewSelect, + PlatformProposalFileViewWithRelations, + PlatformProposalFileViewPatch, +} from '../../orm/input-types'; +/** + * Files a reviewer has read, pinned to the blob they read + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdatePlatformProposalFileViewMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', platformProposalFileViewPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdatePlatformProposalFileViewMutation( + params: { + selection: { + fields: S & PlatformProposalFileViewSelect; + } & HookStrictSelect, PlatformProposalFileViewSelect>; + } & Omit< + UseMutationOptions< + { + updatePlatformProposalFileView: { + platformProposalFileView: InferSelectResult; + }; + }, + Error, + { + id: string; + platformProposalFileViewPatch: PlatformProposalFileViewPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updatePlatformProposalFileView: { + platformProposalFileView: InferSelectResult; + }; + }, + Error, + { + id: string; + platformProposalFileViewPatch: PlatformProposalFileViewPatch; + } +>; +export function useUpdatePlatformProposalFileViewMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + platformProposalFileViewPatch: PlatformProposalFileViewPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformProposalFileViewMutationKeys.all, + mutationFn: ({ + id, + platformProposalFileViewPatch, + }: { + id: string; + platformProposalFileViewPatch: PlatformProposalFileViewPatch; + }) => + getClient() + .platformProposalFileView.update({ + where: { + id, + }, + data: platformProposalFileViewPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: platformProposalFileViewKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformProposalFileViewKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useUpdatePlatformProposalMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useUpdatePlatformProposalMutation.ts new file mode 100644 index 0000000000..0c051f7fad --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useUpdatePlatformProposalMutation.ts @@ -0,0 +1,116 @@ +/** + * Proposals against a repository: issues, changes to merge, discussions and decisions + * @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 { platformProposalKeys } from '../query-keys'; +import { platformProposalMutationKeys } from '../mutation-keys'; +import type { + PlatformProposalSelect, + PlatformProposalWithRelations, + PlatformProposalPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformProposalSelect, + PlatformProposalWithRelations, + PlatformProposalPatch, +} from '../../orm/input-types'; +/** + * Proposals against a repository: issues, changes to merge, discussions and decisions + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdatePlatformProposalMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', platformProposalPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdatePlatformProposalMutation( + params: { + selection: { + fields: S & PlatformProposalSelect; + } & HookStrictSelect, PlatformProposalSelect>; + } & Omit< + UseMutationOptions< + { + updatePlatformProposal: { + platformProposal: InferSelectResult; + }; + }, + Error, + { + id: string; + platformProposalPatch: PlatformProposalPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updatePlatformProposal: { + platformProposal: InferSelectResult; + }; + }, + Error, + { + id: string; + platformProposalPatch: PlatformProposalPatch; + } +>; +export function useUpdatePlatformProposalMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + platformProposalPatch: PlatformProposalPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformProposalMutationKeys.all, + mutationFn: ({ + id, + platformProposalPatch, + }: { + id: string; + platformProposalPatch: PlatformProposalPatch; + }) => + getClient() + .platformProposal.update({ + where: { + id, + }, + data: platformProposalPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: platformProposalKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformProposalKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useUpdatePlatformProposalReactionMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useUpdatePlatformProposalReactionMutation.ts new file mode 100644 index 0000000000..d63e97ce64 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useUpdatePlatformProposalReactionMutation.ts @@ -0,0 +1,116 @@ +/** + * Emoji reactions to a local proposal or one of its comments + * @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 { platformProposalReactionKeys } from '../query-keys'; +import { platformProposalReactionMutationKeys } from '../mutation-keys'; +import type { + PlatformProposalReactionSelect, + PlatformProposalReactionWithRelations, + PlatformProposalReactionPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformProposalReactionSelect, + PlatformProposalReactionWithRelations, + PlatformProposalReactionPatch, +} from '../../orm/input-types'; +/** + * Emoji reactions to a local proposal or one of its comments + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdatePlatformProposalReactionMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', platformProposalReactionPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdatePlatformProposalReactionMutation( + params: { + selection: { + fields: S & PlatformProposalReactionSelect; + } & HookStrictSelect, PlatformProposalReactionSelect>; + } & Omit< + UseMutationOptions< + { + updatePlatformProposalReaction: { + platformProposalReaction: InferSelectResult; + }; + }, + Error, + { + id: string; + platformProposalReactionPatch: PlatformProposalReactionPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updatePlatformProposalReaction: { + platformProposalReaction: InferSelectResult; + }; + }, + Error, + { + id: string; + platformProposalReactionPatch: PlatformProposalReactionPatch; + } +>; +export function useUpdatePlatformProposalReactionMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + platformProposalReactionPatch: PlatformProposalReactionPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformProposalReactionMutationKeys.all, + mutationFn: ({ + id, + platformProposalReactionPatch, + }: { + id: string; + platformProposalReactionPatch: PlatformProposalReactionPatch; + }) => + getClient() + .platformProposalReaction.update({ + where: { + id, + }, + data: platformProposalReactionPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: platformProposalReactionKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformProposalReactionKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useUpdatePlatformProposalReviewMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useUpdatePlatformProposalReviewMutation.ts new file mode 100644 index 0000000000..799053230a --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useUpdatePlatformProposalReviewMutation.ts @@ -0,0 +1,116 @@ +/** + * Review verdicts on a proposal, each pinned to the commit reviewed + * @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 { platformProposalReviewKeys } from '../query-keys'; +import { platformProposalReviewMutationKeys } from '../mutation-keys'; +import type { + PlatformProposalReviewSelect, + PlatformProposalReviewWithRelations, + PlatformProposalReviewPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformProposalReviewSelect, + PlatformProposalReviewWithRelations, + PlatformProposalReviewPatch, +} from '../../orm/input-types'; +/** + * Review verdicts on a proposal, each pinned to the commit reviewed + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdatePlatformProposalReviewMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', platformProposalReviewPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdatePlatformProposalReviewMutation( + params: { + selection: { + fields: S & PlatformProposalReviewSelect; + } & HookStrictSelect, PlatformProposalReviewSelect>; + } & Omit< + UseMutationOptions< + { + updatePlatformProposalReview: { + platformProposalReview: InferSelectResult; + }; + }, + Error, + { + id: string; + platformProposalReviewPatch: PlatformProposalReviewPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updatePlatformProposalReview: { + platformProposalReview: InferSelectResult; + }; + }, + Error, + { + id: string; + platformProposalReviewPatch: PlatformProposalReviewPatch; + } +>; +export function useUpdatePlatformProposalReviewMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + platformProposalReviewPatch: PlatformProposalReviewPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformProposalReviewMutationKeys.all, + mutationFn: ({ + id, + platformProposalReviewPatch, + }: { + id: string; + platformProposalReviewPatch: PlatformProposalReviewPatch; + }) => + getClient() + .platformProposalReview.update({ + where: { + id, + }, + data: platformProposalReviewPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: platformProposalReviewKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformProposalReviewKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useUpdatePlatformProposalsChunkMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useUpdatePlatformProposalsChunkMutation.ts new file mode 100644 index 0000000000..857740fe0c --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useUpdatePlatformProposalsChunkMutation.ts @@ -0,0 +1,116 @@ +/** + * Update mutation hook for PlatformProposalsChunk + * @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 { platformProposalsChunkKeys } from '../query-keys'; +import { platformProposalsChunkMutationKeys } from '../mutation-keys'; +import type { + PlatformProposalsChunkSelect, + PlatformProposalsChunkWithRelations, + PlatformProposalsChunkPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformProposalsChunkSelect, + PlatformProposalsChunkWithRelations, + PlatformProposalsChunkPatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a PlatformProposalsChunk + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdatePlatformProposalsChunkMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', platformProposalsChunkPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdatePlatformProposalsChunkMutation( + params: { + selection: { + fields: S & PlatformProposalsChunkSelect; + } & HookStrictSelect, PlatformProposalsChunkSelect>; + } & Omit< + UseMutationOptions< + { + updatePlatformProposalsChunk: { + platformProposalsChunk: InferSelectResult; + }; + }, + Error, + { + id: string; + platformProposalsChunkPatch: PlatformProposalsChunkPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updatePlatformProposalsChunk: { + platformProposalsChunk: InferSelectResult; + }; + }, + Error, + { + id: string; + platformProposalsChunkPatch: PlatformProposalsChunkPatch; + } +>; +export function useUpdatePlatformProposalsChunkMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + platformProposalsChunkPatch: PlatformProposalsChunkPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformProposalsChunkMutationKeys.all, + mutationFn: ({ + id, + platformProposalsChunkPatch, + }: { + id: string; + platformProposalsChunkPatch: PlatformProposalsChunkPatch; + }) => + getClient() + .platformProposalsChunk.update({ + where: { + id, + }, + data: platformProposalsChunkPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: platformProposalsChunkKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformProposalsChunkKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useUpdatePlatformRegistryBindingMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useUpdatePlatformRegistryBindingMutation.ts new file mode 100644 index 0000000000..b8450186e2 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useUpdatePlatformRegistryBindingMutation.ts @@ -0,0 +1,116 @@ +/** + * Binds a namespace to an installed container registry for a lane (realm) — the reconciler projects that registry's credentials into the namespace as an image pull secret + * @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 { platformRegistryBindingKeys } from '../query-keys'; +import { platformRegistryBindingMutationKeys } from '../mutation-keys'; +import type { + PlatformRegistryBindingSelect, + PlatformRegistryBindingWithRelations, + PlatformRegistryBindingPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformRegistryBindingSelect, + PlatformRegistryBindingWithRelations, + PlatformRegistryBindingPatch, +} from '../../orm/input-types'; +/** + * Binds a namespace to an installed container registry for a lane (realm) — the reconciler projects that registry's credentials into the namespace as an image pull secret + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdatePlatformRegistryBindingMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', platformRegistryBindingPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdatePlatformRegistryBindingMutation( + params: { + selection: { + fields: S & PlatformRegistryBindingSelect; + } & HookStrictSelect, PlatformRegistryBindingSelect>; + } & Omit< + UseMutationOptions< + { + updatePlatformRegistryBinding: { + platformRegistryBinding: InferSelectResult; + }; + }, + Error, + { + id: string; + platformRegistryBindingPatch: PlatformRegistryBindingPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updatePlatformRegistryBinding: { + platformRegistryBinding: InferSelectResult; + }; + }, + Error, + { + id: string; + platformRegistryBindingPatch: PlatformRegistryBindingPatch; + } +>; +export function useUpdatePlatformRegistryBindingMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + platformRegistryBindingPatch: PlatformRegistryBindingPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformRegistryBindingMutationKeys.all, + mutationFn: ({ + id, + platformRegistryBindingPatch, + }: { + id: string; + platformRegistryBindingPatch: PlatformRegistryBindingPatch; + }) => + getClient() + .platformRegistryBinding.update({ + where: { + id, + }, + data: platformRegistryBindingPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: platformRegistryBindingKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformRegistryBindingKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useUpdatePlatformRegistryGrantMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useUpdatePlatformRegistryGrantMutation.ts new file mode 100644 index 0000000000..f8c3c463f7 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useUpdatePlatformRegistryGrantMutation.ts @@ -0,0 +1,116 @@ +/** + * Grants that make a registry usable by one scope + * @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 { platformRegistryGrantKeys } from '../query-keys'; +import { platformRegistryGrantMutationKeys } from '../mutation-keys'; +import type { + PlatformRegistryGrantSelect, + PlatformRegistryGrantWithRelations, + PlatformRegistryGrantPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformRegistryGrantSelect, + PlatformRegistryGrantWithRelations, + PlatformRegistryGrantPatch, +} from '../../orm/input-types'; +/** + * Grants that make a registry usable by one scope + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdatePlatformRegistryGrantMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', platformRegistryGrantPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdatePlatformRegistryGrantMutation( + params: { + selection: { + fields: S & PlatformRegistryGrantSelect; + } & HookStrictSelect, PlatformRegistryGrantSelect>; + } & Omit< + UseMutationOptions< + { + updatePlatformRegistryGrant: { + platformRegistryGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + platformRegistryGrantPatch: PlatformRegistryGrantPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updatePlatformRegistryGrant: { + platformRegistryGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + platformRegistryGrantPatch: PlatformRegistryGrantPatch; + } +>; +export function useUpdatePlatformRegistryGrantMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + platformRegistryGrantPatch: PlatformRegistryGrantPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformRegistryGrantMutationKeys.all, + mutationFn: ({ + id, + platformRegistryGrantPatch, + }: { + id: string; + platformRegistryGrantPatch: PlatformRegistryGrantPatch; + }) => + getClient() + .platformRegistryGrant.update({ + where: { + id, + }, + data: platformRegistryGrantPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: platformRegistryGrantKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformRegistryGrantKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useUpdatePlatformRegistryMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useUpdatePlatformRegistryMutation.ts new file mode 100644 index 0000000000..4847aac328 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useUpdatePlatformRegistryMutation.ts @@ -0,0 +1,116 @@ +/** + * Artifact registries this scope pulls from or pushes to (OCI images, npm packages), platform-run or external + * @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 { platformRegistryKeys } from '../query-keys'; +import { platformRegistryMutationKeys } from '../mutation-keys'; +import type { + PlatformRegistrySelect, + PlatformRegistryWithRelations, + PlatformRegistryPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformRegistrySelect, + PlatformRegistryWithRelations, + PlatformRegistryPatch, +} from '../../orm/input-types'; +/** + * Artifact registries this scope pulls from or pushes to (OCI images, npm packages), platform-run or external + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdatePlatformRegistryMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', platformRegistryPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdatePlatformRegistryMutation( + params: { + selection: { + fields: S & PlatformRegistrySelect; + } & HookStrictSelect, PlatformRegistrySelect>; + } & Omit< + UseMutationOptions< + { + updatePlatformRegistry: { + platformRegistry: InferSelectResult; + }; + }, + Error, + { + id: string; + platformRegistryPatch: PlatformRegistryPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updatePlatformRegistry: { + platformRegistry: InferSelectResult; + }; + }, + Error, + { + id: string; + platformRegistryPatch: PlatformRegistryPatch; + } +>; +export function useUpdatePlatformRegistryMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + platformRegistryPatch: PlatformRegistryPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformRegistryMutationKeys.all, + mutationFn: ({ + id, + platformRegistryPatch, + }: { + id: string; + platformRegistryPatch: PlatformRegistryPatch; + }) => + getClient() + .platformRegistry.update({ + where: { + id, + }, + data: platformRegistryPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: platformRegistryKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformRegistryKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useUpdatePlatformRepositoryEventMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useUpdatePlatformRepositoryEventMutation.ts new file mode 100644 index 0000000000..88b47d4ba3 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useUpdatePlatformRepositoryEventMutation.ts @@ -0,0 +1,116 @@ +/** + * Normalized repository events from local hooks and external providers + * @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 { platformRepositoryEventKeys } from '../query-keys'; +import { platformRepositoryEventMutationKeys } from '../mutation-keys'; +import type { + PlatformRepositoryEventSelect, + PlatformRepositoryEventWithRelations, + PlatformRepositoryEventPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformRepositoryEventSelect, + PlatformRepositoryEventWithRelations, + PlatformRepositoryEventPatch, +} from '../../orm/input-types'; +/** + * Normalized repository events from local hooks and external providers + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdatePlatformRepositoryEventMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', platformRepositoryEventPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdatePlatformRepositoryEventMutation( + params: { + selection: { + fields: S & PlatformRepositoryEventSelect; + } & HookStrictSelect, PlatformRepositoryEventSelect>; + } & Omit< + UseMutationOptions< + { + updatePlatformRepositoryEvent: { + platformRepositoryEvent: InferSelectResult; + }; + }, + Error, + { + id: string; + platformRepositoryEventPatch: PlatformRepositoryEventPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updatePlatformRepositoryEvent: { + platformRepositoryEvent: InferSelectResult; + }; + }, + Error, + { + id: string; + platformRepositoryEventPatch: PlatformRepositoryEventPatch; + } +>; +export function useUpdatePlatformRepositoryEventMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + platformRepositoryEventPatch: PlatformRepositoryEventPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformRepositoryEventMutationKeys.all, + mutationFn: ({ + id, + platformRepositoryEventPatch, + }: { + id: string; + platformRepositoryEventPatch: PlatformRepositoryEventPatch; + }) => + getClient() + .platformRepositoryEvent.update({ + where: { + id, + }, + data: platformRepositoryEventPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: platformRepositoryEventKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformRepositoryEventKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useUpdatePlatformRepositoryMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useUpdatePlatformRepositoryMutation.ts new file mode 100644 index 0000000000..87c1d1fc4f --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useUpdatePlatformRepositoryMutation.ts @@ -0,0 +1,116 @@ +/** + * Source repositories, hosted locally or on an external provider + * @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 { platformRepositoryKeys } from '../query-keys'; +import { platformRepositoryMutationKeys } from '../mutation-keys'; +import type { + PlatformRepositorySelect, + PlatformRepositoryWithRelations, + PlatformRepositoryPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformRepositorySelect, + PlatformRepositoryWithRelations, + PlatformRepositoryPatch, +} from '../../orm/input-types'; +/** + * Source repositories, hosted locally or on an external provider + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdatePlatformRepositoryMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', platformRepositoryPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdatePlatformRepositoryMutation( + params: { + selection: { + fields: S & PlatformRepositorySelect; + } & HookStrictSelect, PlatformRepositorySelect>; + } & Omit< + UseMutationOptions< + { + updatePlatformRepository: { + platformRepository: InferSelectResult; + }; + }, + Error, + { + id: string; + platformRepositoryPatch: PlatformRepositoryPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updatePlatformRepository: { + platformRepository: InferSelectResult; + }; + }, + Error, + { + id: string; + platformRepositoryPatch: PlatformRepositoryPatch; + } +>; +export function useUpdatePlatformRepositoryMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + platformRepositoryPatch: PlatformRepositoryPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformRepositoryMutationKeys.all, + mutationFn: ({ + id, + platformRepositoryPatch, + }: { + id: string; + platformRepositoryPatch: PlatformRepositoryPatch; + }) => + getClient() + .platformRepository.update({ + where: { + id, + }, + data: platformRepositoryPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: platformRepositoryKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformRepositoryKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useUpdatePlatformRepositoryRequiredCheckMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useUpdatePlatformRepositoryRequiredCheckMutation.ts new file mode 100644 index 0000000000..c2cc6f06e3 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useUpdatePlatformRepositoryRequiredCheckMutation.ts @@ -0,0 +1,124 @@ +/** + * Workflows required to pass before a repository proposal merges + * @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 { platformRepositoryRequiredCheckKeys } from '../query-keys'; +import { platformRepositoryRequiredCheckMutationKeys } from '../mutation-keys'; +import type { + PlatformRepositoryRequiredCheckSelect, + PlatformRepositoryRequiredCheckWithRelations, + PlatformRepositoryRequiredCheckPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformRepositoryRequiredCheckSelect, + PlatformRepositoryRequiredCheckWithRelations, + PlatformRepositoryRequiredCheckPatch, +} from '../../orm/input-types'; +/** + * Workflows required to pass before a repository proposal merges + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdatePlatformRepositoryRequiredCheckMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', platformRepositoryRequiredCheckPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdatePlatformRepositoryRequiredCheckMutation< + S extends PlatformRepositoryRequiredCheckSelect, +>( + params: { + selection: { + fields: S & PlatformRepositoryRequiredCheckSelect; + } & HookStrictSelect, PlatformRepositoryRequiredCheckSelect>; + } & Omit< + UseMutationOptions< + { + updatePlatformRepositoryRequiredCheck: { + platformRepositoryRequiredCheck: InferSelectResult< + PlatformRepositoryRequiredCheckWithRelations, + S + >; + }; + }, + Error, + { + id: string; + platformRepositoryRequiredCheckPatch: PlatformRepositoryRequiredCheckPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updatePlatformRepositoryRequiredCheck: { + platformRepositoryRequiredCheck: InferSelectResult< + PlatformRepositoryRequiredCheckWithRelations, + S + >; + }; + }, + Error, + { + id: string; + platformRepositoryRequiredCheckPatch: PlatformRepositoryRequiredCheckPatch; + } +>; +export function useUpdatePlatformRepositoryRequiredCheckMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + platformRepositoryRequiredCheckPatch: PlatformRepositoryRequiredCheckPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformRepositoryRequiredCheckMutationKeys.all, + mutationFn: ({ + id, + platformRepositoryRequiredCheckPatch, + }: { + id: string; + platformRepositoryRequiredCheckPatch: PlatformRepositoryRequiredCheckPatch; + }) => + getClient() + .platformRepositoryRequiredCheck.update({ + where: { + id, + }, + data: platformRepositoryRequiredCheckPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: platformRepositoryRequiredCheckKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformRepositoryRequiredCheckKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useUpdatePlatformRepositoryWorkflowMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useUpdatePlatformRepositoryWorkflowMutation.ts new file mode 100644 index 0000000000..4f741cd2e2 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useUpdatePlatformRepositoryWorkflowMutation.ts @@ -0,0 +1,118 @@ +/** + * Bindings from a repository event to the flow graph that should run + * @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 { platformRepositoryWorkflowKeys } from '../query-keys'; +import { platformRepositoryWorkflowMutationKeys } from '../mutation-keys'; +import type { + PlatformRepositoryWorkflowSelect, + PlatformRepositoryWorkflowWithRelations, + PlatformRepositoryWorkflowPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformRepositoryWorkflowSelect, + PlatformRepositoryWorkflowWithRelations, + PlatformRepositoryWorkflowPatch, +} from '../../orm/input-types'; +/** + * Bindings from a repository event to the flow graph that should run + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdatePlatformRepositoryWorkflowMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', platformRepositoryWorkflowPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdatePlatformRepositoryWorkflowMutation< + S extends PlatformRepositoryWorkflowSelect, +>( + params: { + selection: { + fields: S & PlatformRepositoryWorkflowSelect; + } & HookStrictSelect, PlatformRepositoryWorkflowSelect>; + } & Omit< + UseMutationOptions< + { + updatePlatformRepositoryWorkflow: { + platformRepositoryWorkflow: InferSelectResult; + }; + }, + Error, + { + id: string; + platformRepositoryWorkflowPatch: PlatformRepositoryWorkflowPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updatePlatformRepositoryWorkflow: { + platformRepositoryWorkflow: InferSelectResult; + }; + }, + Error, + { + id: string; + platformRepositoryWorkflowPatch: PlatformRepositoryWorkflowPatch; + } +>; +export function useUpdatePlatformRepositoryWorkflowMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + platformRepositoryWorkflowPatch: PlatformRepositoryWorkflowPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformRepositoryWorkflowMutationKeys.all, + mutationFn: ({ + id, + platformRepositoryWorkflowPatch, + }: { + id: string; + platformRepositoryWorkflowPatch: PlatformRepositoryWorkflowPatch; + }) => + getClient() + .platformRepositoryWorkflow.update({ + where: { + id, + }, + data: platformRepositoryWorkflowPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: platformRepositoryWorkflowKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformRepositoryWorkflowKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useUpdateProposalCommentMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useUpdateProposalCommentMutation.ts new file mode 100644 index 0000000000..6f318c462c --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useUpdateProposalCommentMutation.ts @@ -0,0 +1,116 @@ +/** + * Comments on a local proposal, optionally anchored to a line + * @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 { proposalCommentKeys } from '../query-keys'; +import { proposalCommentMutationKeys } from '../mutation-keys'; +import type { + ProposalCommentSelect, + ProposalCommentWithRelations, + ProposalCommentPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + ProposalCommentSelect, + ProposalCommentWithRelations, + ProposalCommentPatch, +} from '../../orm/input-types'; +/** + * Comments on a local proposal, optionally anchored to a line + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateProposalCommentMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', proposalCommentPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateProposalCommentMutation( + params: { + selection: { + fields: S & ProposalCommentSelect; + } & HookStrictSelect, ProposalCommentSelect>; + } & Omit< + UseMutationOptions< + { + updateProposalComment: { + proposalComment: InferSelectResult; + }; + }, + Error, + { + id: string; + proposalCommentPatch: ProposalCommentPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateProposalComment: { + proposalComment: InferSelectResult; + }; + }, + Error, + { + id: string; + proposalCommentPatch: ProposalCommentPatch; + } +>; +export function useUpdateProposalCommentMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + proposalCommentPatch: ProposalCommentPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: proposalCommentMutationKeys.all, + mutationFn: ({ + id, + proposalCommentPatch, + }: { + id: string; + proposalCommentPatch: ProposalCommentPatch; + }) => + getClient() + .proposalComment.update({ + where: { + id, + }, + data: proposalCommentPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: proposalCommentKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: proposalCommentKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useUpdateProposalFileViewMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useUpdateProposalFileViewMutation.ts new file mode 100644 index 0000000000..e30faa18dd --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useUpdateProposalFileViewMutation.ts @@ -0,0 +1,116 @@ +/** + * Files a reviewer has read, pinned to the blob they read + * @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 { proposalFileViewKeys } from '../query-keys'; +import { proposalFileViewMutationKeys } from '../mutation-keys'; +import type { + ProposalFileViewSelect, + ProposalFileViewWithRelations, + ProposalFileViewPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + ProposalFileViewSelect, + ProposalFileViewWithRelations, + ProposalFileViewPatch, +} from '../../orm/input-types'; +/** + * Files a reviewer has read, pinned to the blob they read + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateProposalFileViewMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', proposalFileViewPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateProposalFileViewMutation( + params: { + selection: { + fields: S & ProposalFileViewSelect; + } & HookStrictSelect, ProposalFileViewSelect>; + } & Omit< + UseMutationOptions< + { + updateProposalFileView: { + proposalFileView: InferSelectResult; + }; + }, + Error, + { + id: string; + proposalFileViewPatch: ProposalFileViewPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateProposalFileView: { + proposalFileView: InferSelectResult; + }; + }, + Error, + { + id: string; + proposalFileViewPatch: ProposalFileViewPatch; + } +>; +export function useUpdateProposalFileViewMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + proposalFileViewPatch: ProposalFileViewPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: proposalFileViewMutationKeys.all, + mutationFn: ({ + id, + proposalFileViewPatch, + }: { + id: string; + proposalFileViewPatch: ProposalFileViewPatch; + }) => + getClient() + .proposalFileView.update({ + where: { + id, + }, + data: proposalFileViewPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: proposalFileViewKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: proposalFileViewKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useUpdateProposalMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useUpdateProposalMutation.ts new file mode 100644 index 0000000000..e7e74c4940 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useUpdateProposalMutation.ts @@ -0,0 +1,102 @@ +/** + * Proposals against a repository: issues, changes to merge, discussions and decisions + * @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 { proposalKeys } from '../query-keys'; +import { proposalMutationKeys } from '../mutation-keys'; +import type { ProposalSelect, ProposalWithRelations, ProposalPatch } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { ProposalSelect, ProposalWithRelations, ProposalPatch } from '../../orm/input-types'; +/** + * Proposals against a repository: issues, changes to merge, discussions and decisions + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateProposalMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', proposalPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateProposalMutation( + params: { + selection: { + fields: S & ProposalSelect; + } & HookStrictSelect, ProposalSelect>; + } & Omit< + UseMutationOptions< + { + updateProposal: { + proposal: InferSelectResult; + }; + }, + Error, + { + id: string; + proposalPatch: ProposalPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateProposal: { + proposal: InferSelectResult; + }; + }, + Error, + { + id: string; + proposalPatch: ProposalPatch; + } +>; +export function useUpdateProposalMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + proposalPatch: ProposalPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: proposalMutationKeys.all, + mutationFn: ({ id, proposalPatch }: { id: string; proposalPatch: ProposalPatch }) => + getClient() + .proposal.update({ + where: { + id, + }, + data: proposalPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: proposalKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: proposalKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useUpdateProposalReactionMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useUpdateProposalReactionMutation.ts new file mode 100644 index 0000000000..e0480659a4 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useUpdateProposalReactionMutation.ts @@ -0,0 +1,116 @@ +/** + * Emoji reactions to a local proposal or one of its comments + * @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 { proposalReactionKeys } from '../query-keys'; +import { proposalReactionMutationKeys } from '../mutation-keys'; +import type { + ProposalReactionSelect, + ProposalReactionWithRelations, + ProposalReactionPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + ProposalReactionSelect, + ProposalReactionWithRelations, + ProposalReactionPatch, +} from '../../orm/input-types'; +/** + * Emoji reactions to a local proposal or one of its comments + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateProposalReactionMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', proposalReactionPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateProposalReactionMutation( + params: { + selection: { + fields: S & ProposalReactionSelect; + } & HookStrictSelect, ProposalReactionSelect>; + } & Omit< + UseMutationOptions< + { + updateProposalReaction: { + proposalReaction: InferSelectResult; + }; + }, + Error, + { + id: string; + proposalReactionPatch: ProposalReactionPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateProposalReaction: { + proposalReaction: InferSelectResult; + }; + }, + Error, + { + id: string; + proposalReactionPatch: ProposalReactionPatch; + } +>; +export function useUpdateProposalReactionMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + proposalReactionPatch: ProposalReactionPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: proposalReactionMutationKeys.all, + mutationFn: ({ + id, + proposalReactionPatch, + }: { + id: string; + proposalReactionPatch: ProposalReactionPatch; + }) => + getClient() + .proposalReaction.update({ + where: { + id, + }, + data: proposalReactionPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: proposalReactionKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: proposalReactionKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useUpdateProposalReviewMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useUpdateProposalReviewMutation.ts new file mode 100644 index 0000000000..2cd56a9765 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useUpdateProposalReviewMutation.ts @@ -0,0 +1,116 @@ +/** + * Review verdicts on a proposal, each pinned to the commit reviewed + * @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 { proposalReviewKeys } from '../query-keys'; +import { proposalReviewMutationKeys } from '../mutation-keys'; +import type { + ProposalReviewSelect, + ProposalReviewWithRelations, + ProposalReviewPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + ProposalReviewSelect, + ProposalReviewWithRelations, + ProposalReviewPatch, +} from '../../orm/input-types'; +/** + * Review verdicts on a proposal, each pinned to the commit reviewed + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateProposalReviewMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', proposalReviewPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateProposalReviewMutation( + params: { + selection: { + fields: S & ProposalReviewSelect; + } & HookStrictSelect, ProposalReviewSelect>; + } & Omit< + UseMutationOptions< + { + updateProposalReview: { + proposalReview: InferSelectResult; + }; + }, + Error, + { + id: string; + proposalReviewPatch: ProposalReviewPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateProposalReview: { + proposalReview: InferSelectResult; + }; + }, + Error, + { + id: string; + proposalReviewPatch: ProposalReviewPatch; + } +>; +export function useUpdateProposalReviewMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + proposalReviewPatch: ProposalReviewPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: proposalReviewMutationKeys.all, + mutationFn: ({ + id, + proposalReviewPatch, + }: { + id: string; + proposalReviewPatch: ProposalReviewPatch; + }) => + getClient() + .proposalReview.update({ + where: { + id, + }, + data: proposalReviewPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: proposalReviewKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: proposalReviewKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useUpdateProposalsChunkMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useUpdateProposalsChunkMutation.ts new file mode 100644 index 0000000000..bef549f6bb --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useUpdateProposalsChunkMutation.ts @@ -0,0 +1,116 @@ +/** + * Update mutation hook for ProposalsChunk + * @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 { proposalsChunkKeys } from '../query-keys'; +import { proposalsChunkMutationKeys } from '../mutation-keys'; +import type { + ProposalsChunkSelect, + ProposalsChunkWithRelations, + ProposalsChunkPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + ProposalsChunkSelect, + ProposalsChunkWithRelations, + ProposalsChunkPatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a ProposalsChunk + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateProposalsChunkMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', proposalsChunkPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateProposalsChunkMutation( + params: { + selection: { + fields: S & ProposalsChunkSelect; + } & HookStrictSelect, ProposalsChunkSelect>; + } & Omit< + UseMutationOptions< + { + updateProposalsChunk: { + proposalsChunk: InferSelectResult; + }; + }, + Error, + { + id: string; + proposalsChunkPatch: ProposalsChunkPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateProposalsChunk: { + proposalsChunk: InferSelectResult; + }; + }, + Error, + { + id: string; + proposalsChunkPatch: ProposalsChunkPatch; + } +>; +export function useUpdateProposalsChunkMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + proposalsChunkPatch: ProposalsChunkPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: proposalsChunkMutationKeys.all, + mutationFn: ({ + id, + proposalsChunkPatch, + }: { + id: string; + proposalsChunkPatch: ProposalsChunkPatch; + }) => + getClient() + .proposalsChunk.update({ + where: { + id, + }, + data: proposalsChunkPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: proposalsChunkKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: proposalsChunkKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useUpdateRegistryBindingMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useUpdateRegistryBindingMutation.ts new file mode 100644 index 0000000000..733dc3913d --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useUpdateRegistryBindingMutation.ts @@ -0,0 +1,116 @@ +/** + * Binds a namespace to an installed container registry for a lane (realm) — the reconciler projects that registry's credentials into the namespace as an image pull secret + * @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 { registryBindingKeys } from '../query-keys'; +import { registryBindingMutationKeys } from '../mutation-keys'; +import type { + RegistryBindingSelect, + RegistryBindingWithRelations, + RegistryBindingPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + RegistryBindingSelect, + RegistryBindingWithRelations, + RegistryBindingPatch, +} from '../../orm/input-types'; +/** + * Binds a namespace to an installed container registry for a lane (realm) — the reconciler projects that registry's credentials into the namespace as an image pull secret + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateRegistryBindingMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', registryBindingPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateRegistryBindingMutation( + params: { + selection: { + fields: S & RegistryBindingSelect; + } & HookStrictSelect, RegistryBindingSelect>; + } & Omit< + UseMutationOptions< + { + updateRegistryBinding: { + registryBinding: InferSelectResult; + }; + }, + Error, + { + id: string; + registryBindingPatch: RegistryBindingPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateRegistryBinding: { + registryBinding: InferSelectResult; + }; + }, + Error, + { + id: string; + registryBindingPatch: RegistryBindingPatch; + } +>; +export function useUpdateRegistryBindingMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + registryBindingPatch: RegistryBindingPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: registryBindingMutationKeys.all, + mutationFn: ({ + id, + registryBindingPatch, + }: { + id: string; + registryBindingPatch: RegistryBindingPatch; + }) => + getClient() + .registryBinding.update({ + where: { + id, + }, + data: registryBindingPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: registryBindingKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: registryBindingKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useUpdateRegistryGrantMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useUpdateRegistryGrantMutation.ts new file mode 100644 index 0000000000..0f9a7d76d1 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useUpdateRegistryGrantMutation.ts @@ -0,0 +1,116 @@ +/** + * Grants that make a registry usable by one scope + * @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 { registryGrantKeys } from '../query-keys'; +import { registryGrantMutationKeys } from '../mutation-keys'; +import type { + RegistryGrantSelect, + RegistryGrantWithRelations, + RegistryGrantPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + RegistryGrantSelect, + RegistryGrantWithRelations, + RegistryGrantPatch, +} from '../../orm/input-types'; +/** + * Grants that make a registry usable by one scope + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateRegistryGrantMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', registryGrantPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateRegistryGrantMutation( + params: { + selection: { + fields: S & RegistryGrantSelect; + } & HookStrictSelect, RegistryGrantSelect>; + } & Omit< + UseMutationOptions< + { + updateRegistryGrant: { + registryGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + registryGrantPatch: RegistryGrantPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateRegistryGrant: { + registryGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + registryGrantPatch: RegistryGrantPatch; + } +>; +export function useUpdateRegistryGrantMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + registryGrantPatch: RegistryGrantPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: registryGrantMutationKeys.all, + mutationFn: ({ + id, + registryGrantPatch, + }: { + id: string; + registryGrantPatch: RegistryGrantPatch; + }) => + getClient() + .registryGrant.update({ + where: { + id, + }, + data: registryGrantPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: registryGrantKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: registryGrantKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useUpdateRegistryMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useUpdateRegistryMutation.ts new file mode 100644 index 0000000000..34c5e5d837 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useUpdateRegistryMutation.ts @@ -0,0 +1,102 @@ +/** + * Artifact registries this scope pulls from or pushes to (OCI images, npm packages), platform-run or external + * @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 { registryKeys } from '../query-keys'; +import { registryMutationKeys } from '../mutation-keys'; +import type { RegistrySelect, RegistryWithRelations, RegistryPatch } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { RegistrySelect, RegistryWithRelations, RegistryPatch } from '../../orm/input-types'; +/** + * Artifact registries this scope pulls from or pushes to (OCI images, npm packages), platform-run or external + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateRegistryMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', registryPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateRegistryMutation( + params: { + selection: { + fields: S & RegistrySelect; + } & HookStrictSelect, RegistrySelect>; + } & Omit< + UseMutationOptions< + { + updateRegistry: { + registry: InferSelectResult; + }; + }, + Error, + { + id: string; + registryPatch: RegistryPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateRegistry: { + registry: InferSelectResult; + }; + }, + Error, + { + id: string; + registryPatch: RegistryPatch; + } +>; +export function useUpdateRegistryMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + registryPatch: RegistryPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: registryMutationKeys.all, + mutationFn: ({ id, registryPatch }: { id: string; registryPatch: RegistryPatch }) => + getClient() + .registry.update({ + where: { + id, + }, + data: registryPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: registryKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: registryKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useUpdateRepositoryEventMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useUpdateRepositoryEventMutation.ts new file mode 100644 index 0000000000..0317f4889e --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useUpdateRepositoryEventMutation.ts @@ -0,0 +1,116 @@ +/** + * Normalized repository events from local hooks and external providers + * @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 { repositoryEventKeys } from '../query-keys'; +import { repositoryEventMutationKeys } from '../mutation-keys'; +import type { + RepositoryEventSelect, + RepositoryEventWithRelations, + RepositoryEventPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + RepositoryEventSelect, + RepositoryEventWithRelations, + RepositoryEventPatch, +} from '../../orm/input-types'; +/** + * Normalized repository events from local hooks and external providers + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateRepositoryEventMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', repositoryEventPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateRepositoryEventMutation( + params: { + selection: { + fields: S & RepositoryEventSelect; + } & HookStrictSelect, RepositoryEventSelect>; + } & Omit< + UseMutationOptions< + { + updateRepositoryEvent: { + repositoryEvent: InferSelectResult; + }; + }, + Error, + { + id: string; + repositoryEventPatch: RepositoryEventPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateRepositoryEvent: { + repositoryEvent: InferSelectResult; + }; + }, + Error, + { + id: string; + repositoryEventPatch: RepositoryEventPatch; + } +>; +export function useUpdateRepositoryEventMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + repositoryEventPatch: RepositoryEventPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: repositoryEventMutationKeys.all, + mutationFn: ({ + id, + repositoryEventPatch, + }: { + id: string; + repositoryEventPatch: RepositoryEventPatch; + }) => + getClient() + .repositoryEvent.update({ + where: { + id, + }, + data: repositoryEventPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: repositoryEventKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: repositoryEventKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useUpdateRepositoryMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useUpdateRepositoryMutation.ts new file mode 100644 index 0000000000..382afab888 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useUpdateRepositoryMutation.ts @@ -0,0 +1,110 @@ +/** + * Source repositories, hosted locally or on an external provider + * @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 { repositoryKeys } from '../query-keys'; +import { repositoryMutationKeys } from '../mutation-keys'; +import type { + RepositorySelect, + RepositoryWithRelations, + RepositoryPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + RepositorySelect, + RepositoryWithRelations, + RepositoryPatch, +} from '../../orm/input-types'; +/** + * Source repositories, hosted locally or on an external provider + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateRepositoryMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', repositoryPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateRepositoryMutation( + params: { + selection: { + fields: S & RepositorySelect; + } & HookStrictSelect, RepositorySelect>; + } & Omit< + UseMutationOptions< + { + updateRepository: { + repository: InferSelectResult; + }; + }, + Error, + { + id: string; + repositoryPatch: RepositoryPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateRepository: { + repository: InferSelectResult; + }; + }, + Error, + { + id: string; + repositoryPatch: RepositoryPatch; + } +>; +export function useUpdateRepositoryMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + repositoryPatch: RepositoryPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: repositoryMutationKeys.all, + mutationFn: ({ id, repositoryPatch }: { id: string; repositoryPatch: RepositoryPatch }) => + getClient() + .repository.update({ + where: { + id, + }, + data: repositoryPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: repositoryKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: repositoryKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useUpdateRepositoryRequiredCheckMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useUpdateRepositoryRequiredCheckMutation.ts new file mode 100644 index 0000000000..299970906e --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useUpdateRepositoryRequiredCheckMutation.ts @@ -0,0 +1,116 @@ +/** + * Workflows required to pass before a repository proposal merges + * @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 { repositoryRequiredCheckKeys } from '../query-keys'; +import { repositoryRequiredCheckMutationKeys } from '../mutation-keys'; +import type { + RepositoryRequiredCheckSelect, + RepositoryRequiredCheckWithRelations, + RepositoryRequiredCheckPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + RepositoryRequiredCheckSelect, + RepositoryRequiredCheckWithRelations, + RepositoryRequiredCheckPatch, +} from '../../orm/input-types'; +/** + * Workflows required to pass before a repository proposal merges + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateRepositoryRequiredCheckMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', repositoryRequiredCheckPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateRepositoryRequiredCheckMutation( + params: { + selection: { + fields: S & RepositoryRequiredCheckSelect; + } & HookStrictSelect, RepositoryRequiredCheckSelect>; + } & Omit< + UseMutationOptions< + { + updateRepositoryRequiredCheck: { + repositoryRequiredCheck: InferSelectResult; + }; + }, + Error, + { + id: string; + repositoryRequiredCheckPatch: RepositoryRequiredCheckPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateRepositoryRequiredCheck: { + repositoryRequiredCheck: InferSelectResult; + }; + }, + Error, + { + id: string; + repositoryRequiredCheckPatch: RepositoryRequiredCheckPatch; + } +>; +export function useUpdateRepositoryRequiredCheckMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + repositoryRequiredCheckPatch: RepositoryRequiredCheckPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: repositoryRequiredCheckMutationKeys.all, + mutationFn: ({ + id, + repositoryRequiredCheckPatch, + }: { + id: string; + repositoryRequiredCheckPatch: RepositoryRequiredCheckPatch; + }) => + getClient() + .repositoryRequiredCheck.update({ + where: { + id, + }, + data: repositoryRequiredCheckPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: repositoryRequiredCheckKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: repositoryRequiredCheckKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useUpdateRepositoryWorkflowMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useUpdateRepositoryWorkflowMutation.ts new file mode 100644 index 0000000000..99e3db3072 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useUpdateRepositoryWorkflowMutation.ts @@ -0,0 +1,116 @@ +/** + * Bindings from a repository event to the flow graph that should run + * @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 { repositoryWorkflowKeys } from '../query-keys'; +import { repositoryWorkflowMutationKeys } from '../mutation-keys'; +import type { + RepositoryWorkflowSelect, + RepositoryWorkflowWithRelations, + RepositoryWorkflowPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + RepositoryWorkflowSelect, + RepositoryWorkflowWithRelations, + RepositoryWorkflowPatch, +} from '../../orm/input-types'; +/** + * Bindings from a repository event to the flow graph that should run + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateRepositoryWorkflowMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', repositoryWorkflowPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateRepositoryWorkflowMutation( + params: { + selection: { + fields: S & RepositoryWorkflowSelect; + } & HookStrictSelect, RepositoryWorkflowSelect>; + } & Omit< + UseMutationOptions< + { + updateRepositoryWorkflow: { + repositoryWorkflow: InferSelectResult; + }; + }, + Error, + { + id: string; + repositoryWorkflowPatch: RepositoryWorkflowPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateRepositoryWorkflow: { + repositoryWorkflow: InferSelectResult; + }; + }, + Error, + { + id: string; + repositoryWorkflowPatch: RepositoryWorkflowPatch; + } +>; +export function useUpdateRepositoryWorkflowMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + repositoryWorkflowPatch: RepositoryWorkflowPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: repositoryWorkflowMutationKeys.all, + mutationFn: ({ + id, + repositoryWorkflowPatch, + }: { + id: string; + repositoryWorkflowPatch: RepositoryWorkflowPatch; + }) => + getClient() + .repositoryWorkflow.update({ + where: { + id, + }, + data: repositoryWorkflowPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: repositoryWorkflowKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: repositoryWorkflowKeys.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 f6ad0cde08..a587624dc3 100644 --- a/sdk/constructive-react/src/compute/hooks/queries/index.ts +++ b/sdk/constructive-react/src/compute/hooks/queries/index.ts @@ -3,8 +3,31 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ +export * from './useBuildsQuery'; +export * from './useBuildQuery'; +export * from './useBuildStepsQuery'; +export * from './useBuildStepQuery'; +export * from './useBuilderBindingsQuery'; +export * from './useBuilderBindingQuery'; export * from './useContentPresetsQuery'; export * from './useContentPresetQuery'; +export * from './useDatabaseFunctionGraphsQuery'; +export * from './useDatabaseFunctionGraphQuery'; +export * from './useDatabaseFunctionGraphExecutionsQuery'; +export * from './useDatabaseFunctionGraphExecutionQuery'; +export * from './useDatabaseFunctionGraphExecutionNodeStatesQuery'; +export * from './useDatabaseFunctionGraphExecutionNodeStateQuery'; +export * from './useDatabaseFunctionGraphExecutionOutputsQuery'; +export * from './useDatabaseFunctionGraphExecutionOutputQuery'; +export * from './useDatabaseGraphCommitsQuery'; +export * from './useDatabaseGraphCommitQuery'; +export * from './useDatabaseGraphGetAllTreeNodesQuery'; +export * from './useDatabaseGraphObjectsQuery'; +export * from './useDatabaseGraphObjectQuery'; +export * from './useDatabaseGraphRefsQuery'; +export * from './useDatabaseGraphRefQuery'; +export * from './useDatabaseGraphStoresQuery'; +export * from './useDatabaseGraphStoreQuery'; export * from './useDbPresetsQuery'; export * from './useDbPresetQuery'; export * from './useFunctionApiBindingsQuery'; @@ -40,6 +63,10 @@ export * from './useFunctionInvocationAttemptQuery'; export * from './useFunctionInvocationsQuery'; export * from './useFunctionInvocationQuery'; export * from './useGetAllTreeNodesQuery'; +export * from './useImagesQuery'; +export * from './useImageQuery'; +export * from './useImageGrantsQuery'; +export * from './useImageGrantQuery'; export * from './useInfraCommitsQuery'; export * from './useInfraCommitQuery'; export * from './useInfraGetAllTreeNodesQuery'; @@ -55,6 +82,12 @@ export * from './useNamespacesQuery'; export * from './useNamespaceQuery'; export * from './useNamespaceEventsQuery'; export * from './useNamespaceEventQuery'; +export * from './usePlatformBuildsQuery'; +export * from './usePlatformBuildQuery'; +export * from './usePlatformBuildStepsQuery'; +export * from './usePlatformBuildStepQuery'; +export * from './usePlatformBuilderBindingsQuery'; +export * from './usePlatformBuilderBindingQuery'; export * from './usePlatformFunctionApiBindingsQuery'; export * from './usePlatformFunctionApiBindingQuery'; export * from './usePlatformFunctionCapabilityBindingsQuery'; @@ -71,6 +104,10 @@ export * from './usePlatformFunctionInvocationAttemptsQuery'; export * from './usePlatformFunctionInvocationAttemptQuery'; export * from './usePlatformFunctionInvocationsQuery'; export * from './usePlatformFunctionInvocationQuery'; +export * from './usePlatformImagesQuery'; +export * from './usePlatformImageQuery'; +export * from './usePlatformImageGrantsQuery'; +export * from './usePlatformImageGrantQuery'; export * from './usePlatformInfraCommitsQuery'; export * from './usePlatformInfraCommitQuery'; export * from './usePlatformInfraGetAllTreeNodesQuery'; @@ -80,10 +117,40 @@ export * from './usePlatformInfraRefsQuery'; export * from './usePlatformInfraRefQuery'; export * from './usePlatformInfraStoresQuery'; export * from './usePlatformInfraStoreQuery'; +export * from './usePlatformK8sResourceKindsQuery'; +export * from './usePlatformK8sResourceKindQuery'; +export * from './usePlatformK8sSpecRulesQuery'; +export * from './usePlatformK8sSpecRuleQuery'; export * from './usePlatformNamespacesQuery'; export * from './usePlatformNamespaceQuery'; export * from './usePlatformNamespaceEventsQuery'; export * from './usePlatformNamespaceEventQuery'; +export * from './usePlatformProposalCommentsQuery'; +export * from './usePlatformProposalCommentQuery'; +export * from './usePlatformProposalsQuery'; +export * from './usePlatformProposalQuery'; +export * from './usePlatformProposalFileViewsQuery'; +export * from './usePlatformProposalFileViewQuery'; +export * from './usePlatformProposalReactionsQuery'; +export * from './usePlatformProposalReactionQuery'; +export * from './usePlatformProposalReviewsQuery'; +export * from './usePlatformProposalReviewQuery'; +export * from './usePlatformProposalsChunksQuery'; +export * from './usePlatformProposalsChunkQuery'; +export * from './usePlatformRegistryBindingsQuery'; +export * from './usePlatformRegistryBindingQuery'; +export * from './usePlatformRegistriesQuery'; +export * from './usePlatformRegistryQuery'; +export * from './usePlatformRegistryGrantsQuery'; +export * from './usePlatformRegistryGrantQuery'; +export * from './usePlatformRepositoriesQuery'; +export * from './usePlatformRepositoryQuery'; +export * from './usePlatformRepositoryEventsQuery'; +export * from './usePlatformRepositoryEventQuery'; +export * from './usePlatformRepositoryRequiredChecksQuery'; +export * from './usePlatformRepositoryRequiredCheckQuery'; +export * from './usePlatformRepositoryWorkflowsQuery'; +export * from './usePlatformRepositoryWorkflowQuery'; export * from './usePlatformResourcesQuery'; export * from './usePlatformResourceQuery'; export * from './usePlatformResourceDeclaredCapacitiesQuery'; @@ -93,6 +160,7 @@ export * from './usePlatformResourceEventsQuery'; export * from './usePlatformResourceEventQuery'; export * from './usePlatformResourceInstallationsQuery'; export * from './usePlatformResourceInstallationQuery'; +export * from './usePlatformResourceObservedStoragesQuery'; export * from './usePlatformResourceStatusChecksQuery'; export * from './usePlatformResourceStatusCheckQuery'; export * from './usePlatformResourceUsageLogsQuery'; @@ -108,6 +176,32 @@ export * from './usePlatformWebhookEndpointsQuery'; export * from './usePlatformWebhookEndpointQuery'; export * from './usePlatformWebhookEventsQuery'; export * from './usePlatformWebhookEventQuery'; +export * from './useProposalCommentsQuery'; +export * from './useProposalCommentQuery'; +export * from './useProposalsQuery'; +export * from './useProposalQuery'; +export * from './useProposalFileViewsQuery'; +export * from './useProposalFileViewQuery'; +export * from './useProposalReactionsQuery'; +export * from './useProposalReactionQuery'; +export * from './useProposalReviewsQuery'; +export * from './useProposalReviewQuery'; +export * from './useProposalsChunksQuery'; +export * from './useProposalsChunkQuery'; +export * from './useRegistryBindingsQuery'; +export * from './useRegistryBindingQuery'; +export * from './useRegistriesQuery'; +export * from './useRegistryQuery'; +export * from './useRegistryGrantsQuery'; +export * from './useRegistryGrantQuery'; +export * from './useRepositoriesQuery'; +export * from './useRepositoryQuery'; +export * from './useRepositoryEventsQuery'; +export * from './useRepositoryEventQuery'; +export * from './useRepositoryRequiredChecksQuery'; +export * from './useRepositoryRequiredCheckQuery'; +export * from './useRepositoryWorkflowsQuery'; +export * from './useRepositoryWorkflowQuery'; export * from './useResourcesQuery'; export * from './useResourceQuery'; export * from './useResourceDeclaredCapacitiesQuery'; @@ -117,6 +211,7 @@ export * from './useResourceEventsQuery'; export * from './useResourceEventQuery'; export * from './useResourceInstallationsQuery'; export * from './useResourceInstallationQuery'; +export * from './useResourceObservedStoragesQuery'; export * from './useResourceStatusChecksQuery'; export * from './useResourceStatusCheckQuery'; export * from './useResourceUsageLogsQuery'; @@ -132,4 +227,5 @@ export * from './useWebhookEndpointsQuery'; export * from './useWebhookEndpointQuery'; export * from './useWebhookEventsQuery'; export * from './useWebhookEventQuery'; +export * from './useDatabaseReadFunctionGraphQuery'; export * from './useReadFunctionGraphQuery'; diff --git a/sdk/constructive-react/src/compute/hooks/queries/useBuildQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/useBuildQuery.ts new file mode 100644 index 0000000000..11b9dcb412 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/useBuildQuery.ts @@ -0,0 +1,138 @@ +/** + * One run of a repository workflow: its commit, its job, and what it produced + * @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 { buildKeys } from '../query-keys'; +import type { BuildSelect, BuildWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { BuildSelect, BuildWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const buildQueryKey = buildKeys.detail; +/** + * One run of a repository workflow: its commit, its job, and what it produced + * + * @example + * ```tsx + * const { data, isLoading } = useBuildQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useBuildQuery< + S extends BuildSelect, + TData = { + build: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, BuildSelect>; + } & Omit< + UseQueryOptions< + { + build: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useBuildQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: buildKeys.detail(params.id), + queryFn: () => + getClient() + .build.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * One run of a repository workflow: its commit, its job, and what it produced + * + * @example + * ```ts + * const data = await fetchBuildQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchBuildQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, BuildSelect>; +}): Promise<{ + build: InferSelectResult | null; +}>; +export async function fetchBuildQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .build.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * One run of a repository workflow: its commit, its job, and what it produced + * + * @example + * ```ts + * await prefetchBuildQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchBuildQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, BuildSelect>; + } +): Promise; +export async function prefetchBuildQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: buildKeys.detail(params.id), + queryFn: () => + getClient() + .build.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/useBuildStepQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/useBuildStepQuery.ts new file mode 100644 index 0000000000..8160762e24 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/useBuildStepQuery.ts @@ -0,0 +1,138 @@ +/** + * Partitioned append-only step and test results of a build, keyed into its log object + * @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 { buildStepKeys } from '../query-keys'; +import type { BuildStepSelect, BuildStepWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { BuildStepSelect, BuildStepWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const buildStepQueryKey = buildStepKeys.detail; +/** + * Partitioned append-only step and test results of a build, keyed into its log object + * + * @example + * ```tsx + * const { data, isLoading } = useBuildStepQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useBuildStepQuery< + S extends BuildStepSelect, + TData = { + buildStep: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, BuildStepSelect>; + } & Omit< + UseQueryOptions< + { + buildStep: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useBuildStepQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: buildStepKeys.detail(params.id), + queryFn: () => + getClient() + .buildStep.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Partitioned append-only step and test results of a build, keyed into its log object + * + * @example + * ```ts + * const data = await fetchBuildStepQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchBuildStepQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, BuildStepSelect>; +}): Promise<{ + buildStep: InferSelectResult | null; +}>; +export async function fetchBuildStepQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .buildStep.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Partitioned append-only step and test results of a build, keyed into its log object + * + * @example + * ```ts + * await prefetchBuildStepQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchBuildStepQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, BuildStepSelect>; + } +): Promise; +export async function prefetchBuildStepQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: buildStepKeys.detail(params.id), + queryFn: () => + getClient() + .buildStep.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/useBuildStepsQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/useBuildStepsQuery.ts new file mode 100644 index 0000000000..2c5a4cd4bb --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/useBuildStepsQuery.ts @@ -0,0 +1,145 @@ +/** + * Partitioned append-only step and test results of a build, keyed into its log object + * @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 { buildStepKeys } from '../query-keys'; +import type { + BuildStepSelect, + BuildStepWithRelations, + BuildStepFilter, + BuildStepOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + BuildStepSelect, + BuildStepWithRelations, + BuildStepFilter, + BuildStepOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const buildStepsQueryKey = buildStepKeys.list; +/** + * Partitioned append-only step and test results of a build, keyed into its log object + * + * @example + * ```tsx + * const { data, isLoading } = useBuildStepsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useBuildStepsQuery< + S extends BuildStepSelect, + TData = { + buildSteps: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, BuildStepSelect>; + } & Omit< + UseQueryOptions< + { + buildSteps: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useBuildStepsQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs( + params.selection + ); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: buildStepKeys.list(args), + queryFn: () => getClient().buildStep.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Partitioned append-only step and test results of a build, keyed into its log object + * + * @example + * ```ts + * const data = await fetchBuildStepsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchBuildStepsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, BuildStepSelect>; +}): Promise<{ + buildSteps: ConnectionResult>; +}>; +export async function fetchBuildStepsQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs( + params.selection + ); + return getClient().buildStep.findMany(args).unwrap(); +} +/** + * Partitioned append-only step and test results of a build, keyed into its log object + * + * @example + * ```ts + * await prefetchBuildStepsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchBuildStepsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, BuildStepSelect>; + } +): Promise; +export async function prefetchBuildStepsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs( + params.selection + ); + await queryClient.prefetchQuery({ + queryKey: buildStepKeys.list(args), + queryFn: () => getClient().buildStep.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/useBuilderBindingQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/useBuilderBindingQuery.ts new file mode 100644 index 0000000000..54533ab4ac --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/useBuilderBindingQuery.ts @@ -0,0 +1,138 @@ +/** + * Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST + * @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 { builderBindingKeys } from '../query-keys'; +import type { BuilderBindingSelect, BuilderBindingWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { BuilderBindingSelect, BuilderBindingWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const builderBindingQueryKey = builderBindingKeys.detail; +/** + * Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST + * + * @example + * ```tsx + * const { data, isLoading } = useBuilderBindingQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useBuilderBindingQuery< + S extends BuilderBindingSelect, + TData = { + builderBinding: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, BuilderBindingSelect>; + } & Omit< + UseQueryOptions< + { + builderBinding: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useBuilderBindingQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: builderBindingKeys.detail(params.id), + queryFn: () => + getClient() + .builderBinding.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST + * + * @example + * ```ts + * const data = await fetchBuilderBindingQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchBuilderBindingQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, BuilderBindingSelect>; +}): Promise<{ + builderBinding: InferSelectResult | null; +}>; +export async function fetchBuilderBindingQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .builderBinding.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST + * + * @example + * ```ts + * await prefetchBuilderBindingQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchBuilderBindingQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, BuilderBindingSelect>; + } +): Promise; +export async function prefetchBuilderBindingQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: builderBindingKeys.detail(params.id), + queryFn: () => + getClient() + .builderBinding.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/useBuilderBindingsQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/useBuilderBindingsQuery.ts new file mode 100644 index 0000000000..dd88c3c42c --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/useBuilderBindingsQuery.ts @@ -0,0 +1,159 @@ +/** + * Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST + * @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 { builderBindingKeys } from '../query-keys'; +import type { + BuilderBindingSelect, + BuilderBindingWithRelations, + BuilderBindingFilter, + BuilderBindingOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + BuilderBindingSelect, + BuilderBindingWithRelations, + BuilderBindingFilter, + BuilderBindingOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const builderBindingsQueryKey = builderBindingKeys.list; +/** + * Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST + * + * @example + * ```tsx + * const { data, isLoading } = useBuilderBindingsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useBuilderBindingsQuery< + S extends BuilderBindingSelect, + TData = { + builderBindings: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, BuilderBindingSelect>; + } & Omit< + UseQueryOptions< + { + builderBindings: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useBuilderBindingsQuery( + params: { + selection: ListSelectionConfig< + BuilderBindingSelect, + BuilderBindingFilter, + BuilderBindingOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + BuilderBindingSelect, + BuilderBindingFilter, + BuilderBindingOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: builderBindingKeys.list(args), + queryFn: () => getClient().builderBinding.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST + * + * @example + * ```ts + * const data = await fetchBuilderBindingsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchBuilderBindingsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, BuilderBindingSelect>; +}): Promise<{ + builderBindings: ConnectionResult>; +}>; +export async function fetchBuilderBindingsQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs< + BuilderBindingSelect, + BuilderBindingFilter, + BuilderBindingOrderBy + >(params.selection); + return getClient().builderBinding.findMany(args).unwrap(); +} +/** + * Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST + * + * @example + * ```ts + * await prefetchBuilderBindingsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchBuilderBindingsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, BuilderBindingSelect>; + } +): Promise; +export async function prefetchBuilderBindingsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + BuilderBindingSelect, + BuilderBindingFilter, + BuilderBindingOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + BuilderBindingSelect, + BuilderBindingFilter, + BuilderBindingOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: builderBindingKeys.list(args), + queryFn: () => getClient().builderBinding.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/useBuildsQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/useBuildsQuery.ts new file mode 100644 index 0000000000..71bf03b9e9 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/useBuildsQuery.ts @@ -0,0 +1,139 @@ +/** + * One run of a repository workflow: its commit, its job, and what it produced + * @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 { buildKeys } from '../query-keys'; +import type { + BuildSelect, + BuildWithRelations, + BuildFilter, + BuildOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + BuildSelect, + BuildWithRelations, + BuildFilter, + BuildOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const buildsQueryKey = buildKeys.list; +/** + * One run of a repository workflow: its commit, its job, and what it produced + * + * @example + * ```tsx + * const { data, isLoading } = useBuildsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useBuildsQuery< + S extends BuildSelect, + TData = { + builds: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, BuildSelect>; + } & Omit< + UseQueryOptions< + { + builds: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useBuildsQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: buildKeys.list(args), + queryFn: () => getClient().build.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * One run of a repository workflow: its commit, its job, and what it produced + * + * @example + * ```ts + * const data = await fetchBuildsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchBuildsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, BuildSelect>; +}): Promise<{ + builds: ConnectionResult>; +}>; +export async function fetchBuildsQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs(params.selection); + return getClient().build.findMany(args).unwrap(); +} +/** + * One run of a repository workflow: its commit, its job, and what it produced + * + * @example + * ```ts + * await prefetchBuildsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchBuildsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, BuildSelect>; + } +): Promise; +export async function prefetchBuildsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: buildKeys.list(args), + queryFn: () => getClient().build.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/useDatabaseFunctionGraphExecutionNodeStateQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/useDatabaseFunctionGraphExecutionNodeStateQuery.ts new file mode 100644 index 0000000000..a5128ca09a --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/useDatabaseFunctionGraphExecutionNodeStateQuery.ts @@ -0,0 +1,158 @@ +/** + * Per-node execution state — tracks individual node lifecycle for debugging + * @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 { databaseFunctionGraphExecutionNodeStateKeys } from '../query-keys'; +import type { + DatabaseFunctionGraphExecutionNodeStateSelect, + DatabaseFunctionGraphExecutionNodeStateWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + DatabaseFunctionGraphExecutionNodeStateSelect, + DatabaseFunctionGraphExecutionNodeStateWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const databaseFunctionGraphExecutionNodeStateQueryKey = + databaseFunctionGraphExecutionNodeStateKeys.detail; +/** + * Per-node execution state — tracks individual node lifecycle for debugging + * + * @example + * ```tsx + * const { data, isLoading } = useDatabaseFunctionGraphExecutionNodeStateQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useDatabaseFunctionGraphExecutionNodeStateQuery< + S extends DatabaseFunctionGraphExecutionNodeStateSelect, + TData = { + databaseFunctionGraphExecutionNodeState: InferSelectResult< + DatabaseFunctionGraphExecutionNodeStateWithRelations, + S + > | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, DatabaseFunctionGraphExecutionNodeStateSelect>; + } & Omit< + UseQueryOptions< + { + databaseFunctionGraphExecutionNodeState: InferSelectResult< + DatabaseFunctionGraphExecutionNodeStateWithRelations, + S + > | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useDatabaseFunctionGraphExecutionNodeStateQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: databaseFunctionGraphExecutionNodeStateKeys.detail(params.id), + queryFn: () => + getClient() + .databaseFunctionGraphExecutionNodeState.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Per-node execution state — tracks individual node lifecycle for debugging + * + * @example + * ```ts + * const data = await fetchDatabaseFunctionGraphExecutionNodeStateQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchDatabaseFunctionGraphExecutionNodeStateQuery< + S extends DatabaseFunctionGraphExecutionNodeStateSelect, +>(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, DatabaseFunctionGraphExecutionNodeStateSelect>; +}): Promise<{ + databaseFunctionGraphExecutionNodeState: InferSelectResult< + DatabaseFunctionGraphExecutionNodeStateWithRelations, + S + > | null; +}>; +export async function fetchDatabaseFunctionGraphExecutionNodeStateQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .databaseFunctionGraphExecutionNodeState.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Per-node execution state — tracks individual node lifecycle for debugging + * + * @example + * ```ts + * await prefetchDatabaseFunctionGraphExecutionNodeStateQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchDatabaseFunctionGraphExecutionNodeStateQuery< + S extends DatabaseFunctionGraphExecutionNodeStateSelect, +>( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, DatabaseFunctionGraphExecutionNodeStateSelect>; + } +): Promise; +export async function prefetchDatabaseFunctionGraphExecutionNodeStateQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: databaseFunctionGraphExecutionNodeStateKeys.detail(params.id), + queryFn: () => + getClient() + .databaseFunctionGraphExecutionNodeState.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/useDatabaseFunctionGraphExecutionNodeStatesQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/useDatabaseFunctionGraphExecutionNodeStatesQuery.ts new file mode 100644 index 0000000000..675e7787db --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/useDatabaseFunctionGraphExecutionNodeStatesQuery.ts @@ -0,0 +1,195 @@ +/** + * Per-node execution state — tracks individual node lifecycle for debugging + * @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 { databaseFunctionGraphExecutionNodeStateKeys } from '../query-keys'; +import type { + DatabaseFunctionGraphExecutionNodeStateSelect, + DatabaseFunctionGraphExecutionNodeStateWithRelations, + DatabaseFunctionGraphExecutionNodeStateFilter, + DatabaseFunctionGraphExecutionNodeStateOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + DatabaseFunctionGraphExecutionNodeStateSelect, + DatabaseFunctionGraphExecutionNodeStateWithRelations, + DatabaseFunctionGraphExecutionNodeStateFilter, + DatabaseFunctionGraphExecutionNodeStateOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const databaseFunctionGraphExecutionNodeStatesQueryKey = + databaseFunctionGraphExecutionNodeStateKeys.list; +/** + * Per-node execution state — tracks individual node lifecycle for debugging + * + * @example + * ```tsx + * const { data, isLoading } = useDatabaseFunctionGraphExecutionNodeStatesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useDatabaseFunctionGraphExecutionNodeStatesQuery< + S extends DatabaseFunctionGraphExecutionNodeStateSelect, + TData = { + databaseFunctionGraphExecutionNodeStates: ConnectionResult< + InferSelectResult + >; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig< + S, + DatabaseFunctionGraphExecutionNodeStateFilter, + DatabaseFunctionGraphExecutionNodeStateOrderBy + >, + 'fields' + > & + HookStrictSelect, DatabaseFunctionGraphExecutionNodeStateSelect>; + } & Omit< + UseQueryOptions< + { + databaseFunctionGraphExecutionNodeStates: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useDatabaseFunctionGraphExecutionNodeStatesQuery( + params: { + selection: ListSelectionConfig< + DatabaseFunctionGraphExecutionNodeStateSelect, + DatabaseFunctionGraphExecutionNodeStateFilter, + DatabaseFunctionGraphExecutionNodeStateOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + DatabaseFunctionGraphExecutionNodeStateSelect, + DatabaseFunctionGraphExecutionNodeStateFilter, + DatabaseFunctionGraphExecutionNodeStateOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: databaseFunctionGraphExecutionNodeStateKeys.list(args), + queryFn: () => getClient().databaseFunctionGraphExecutionNodeState.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Per-node execution state — tracks individual node lifecycle for debugging + * + * @example + * ```ts + * const data = await fetchDatabaseFunctionGraphExecutionNodeStatesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchDatabaseFunctionGraphExecutionNodeStatesQuery< + S extends DatabaseFunctionGraphExecutionNodeStateSelect, +>(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig< + S, + DatabaseFunctionGraphExecutionNodeStateFilter, + DatabaseFunctionGraphExecutionNodeStateOrderBy + >, + 'fields' + > & + HookStrictSelect, DatabaseFunctionGraphExecutionNodeStateSelect>; +}): Promise<{ + databaseFunctionGraphExecutionNodeStates: ConnectionResult< + InferSelectResult + >; +}>; +export async function fetchDatabaseFunctionGraphExecutionNodeStatesQuery(params: { + selection: ListSelectionConfig< + DatabaseFunctionGraphExecutionNodeStateSelect, + DatabaseFunctionGraphExecutionNodeStateFilter, + DatabaseFunctionGraphExecutionNodeStateOrderBy + >; +}) { + const args = buildListSelectionArgs< + DatabaseFunctionGraphExecutionNodeStateSelect, + DatabaseFunctionGraphExecutionNodeStateFilter, + DatabaseFunctionGraphExecutionNodeStateOrderBy + >(params.selection); + return getClient().databaseFunctionGraphExecutionNodeState.findMany(args).unwrap(); +} +/** + * Per-node execution state — tracks individual node lifecycle for debugging + * + * @example + * ```ts + * await prefetchDatabaseFunctionGraphExecutionNodeStatesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchDatabaseFunctionGraphExecutionNodeStatesQuery< + S extends DatabaseFunctionGraphExecutionNodeStateSelect, +>( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig< + S, + DatabaseFunctionGraphExecutionNodeStateFilter, + DatabaseFunctionGraphExecutionNodeStateOrderBy + >, + 'fields' + > & + HookStrictSelect, DatabaseFunctionGraphExecutionNodeStateSelect>; + } +): Promise; +export async function prefetchDatabaseFunctionGraphExecutionNodeStatesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + DatabaseFunctionGraphExecutionNodeStateSelect, + DatabaseFunctionGraphExecutionNodeStateFilter, + DatabaseFunctionGraphExecutionNodeStateOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + DatabaseFunctionGraphExecutionNodeStateSelect, + DatabaseFunctionGraphExecutionNodeStateFilter, + DatabaseFunctionGraphExecutionNodeStateOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: databaseFunctionGraphExecutionNodeStateKeys.list(args), + queryFn: () => getClient().databaseFunctionGraphExecutionNodeState.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/useDatabaseFunctionGraphExecutionOutputQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/useDatabaseFunctionGraphExecutionOutputQuery.ts new file mode 100644 index 0000000000..d7c035035e --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/useDatabaseFunctionGraphExecutionOutputQuery.ts @@ -0,0 +1,158 @@ +/** + * Content-addressed store for execution outputs — hash-referenced from node_outputs + * @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 { databaseFunctionGraphExecutionOutputKeys } from '../query-keys'; +import type { + DatabaseFunctionGraphExecutionOutputSelect, + DatabaseFunctionGraphExecutionOutputWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + DatabaseFunctionGraphExecutionOutputSelect, + DatabaseFunctionGraphExecutionOutputWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const databaseFunctionGraphExecutionOutputQueryKey = + databaseFunctionGraphExecutionOutputKeys.detail; +/** + * Content-addressed store for execution outputs — hash-referenced from node_outputs + * + * @example + * ```tsx + * const { data, isLoading } = useDatabaseFunctionGraphExecutionOutputQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useDatabaseFunctionGraphExecutionOutputQuery< + S extends DatabaseFunctionGraphExecutionOutputSelect, + TData = { + databaseFunctionGraphExecutionOutput: InferSelectResult< + DatabaseFunctionGraphExecutionOutputWithRelations, + S + > | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, DatabaseFunctionGraphExecutionOutputSelect>; + } & Omit< + UseQueryOptions< + { + databaseFunctionGraphExecutionOutput: InferSelectResult< + DatabaseFunctionGraphExecutionOutputWithRelations, + S + > | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useDatabaseFunctionGraphExecutionOutputQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: databaseFunctionGraphExecutionOutputKeys.detail(params.id), + queryFn: () => + getClient() + .databaseFunctionGraphExecutionOutput.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Content-addressed store for execution outputs — hash-referenced from node_outputs + * + * @example + * ```ts + * const data = await fetchDatabaseFunctionGraphExecutionOutputQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchDatabaseFunctionGraphExecutionOutputQuery< + S extends DatabaseFunctionGraphExecutionOutputSelect, +>(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, DatabaseFunctionGraphExecutionOutputSelect>; +}): Promise<{ + databaseFunctionGraphExecutionOutput: InferSelectResult< + DatabaseFunctionGraphExecutionOutputWithRelations, + S + > | null; +}>; +export async function fetchDatabaseFunctionGraphExecutionOutputQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .databaseFunctionGraphExecutionOutput.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Content-addressed store for execution outputs — hash-referenced from node_outputs + * + * @example + * ```ts + * await prefetchDatabaseFunctionGraphExecutionOutputQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchDatabaseFunctionGraphExecutionOutputQuery< + S extends DatabaseFunctionGraphExecutionOutputSelect, +>( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, DatabaseFunctionGraphExecutionOutputSelect>; + } +): Promise; +export async function prefetchDatabaseFunctionGraphExecutionOutputQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: databaseFunctionGraphExecutionOutputKeys.detail(params.id), + queryFn: () => + getClient() + .databaseFunctionGraphExecutionOutput.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/useDatabaseFunctionGraphExecutionOutputsQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/useDatabaseFunctionGraphExecutionOutputsQuery.ts new file mode 100644 index 0000000000..b4c5f46287 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/useDatabaseFunctionGraphExecutionOutputsQuery.ts @@ -0,0 +1,195 @@ +/** + * Content-addressed store for execution outputs — hash-referenced from node_outputs + * @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 { databaseFunctionGraphExecutionOutputKeys } from '../query-keys'; +import type { + DatabaseFunctionGraphExecutionOutputSelect, + DatabaseFunctionGraphExecutionOutputWithRelations, + DatabaseFunctionGraphExecutionOutputFilter, + DatabaseFunctionGraphExecutionOutputOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + DatabaseFunctionGraphExecutionOutputSelect, + DatabaseFunctionGraphExecutionOutputWithRelations, + DatabaseFunctionGraphExecutionOutputFilter, + DatabaseFunctionGraphExecutionOutputOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const databaseFunctionGraphExecutionOutputsQueryKey = + databaseFunctionGraphExecutionOutputKeys.list; +/** + * Content-addressed store for execution outputs — hash-referenced from node_outputs + * + * @example + * ```tsx + * const { data, isLoading } = useDatabaseFunctionGraphExecutionOutputsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useDatabaseFunctionGraphExecutionOutputsQuery< + S extends DatabaseFunctionGraphExecutionOutputSelect, + TData = { + databaseFunctionGraphExecutionOutputs: ConnectionResult< + InferSelectResult + >; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig< + S, + DatabaseFunctionGraphExecutionOutputFilter, + DatabaseFunctionGraphExecutionOutputOrderBy + >, + 'fields' + > & + HookStrictSelect, DatabaseFunctionGraphExecutionOutputSelect>; + } & Omit< + UseQueryOptions< + { + databaseFunctionGraphExecutionOutputs: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useDatabaseFunctionGraphExecutionOutputsQuery( + params: { + selection: ListSelectionConfig< + DatabaseFunctionGraphExecutionOutputSelect, + DatabaseFunctionGraphExecutionOutputFilter, + DatabaseFunctionGraphExecutionOutputOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + DatabaseFunctionGraphExecutionOutputSelect, + DatabaseFunctionGraphExecutionOutputFilter, + DatabaseFunctionGraphExecutionOutputOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: databaseFunctionGraphExecutionOutputKeys.list(args), + queryFn: () => getClient().databaseFunctionGraphExecutionOutput.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Content-addressed store for execution outputs — hash-referenced from node_outputs + * + * @example + * ```ts + * const data = await fetchDatabaseFunctionGraphExecutionOutputsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchDatabaseFunctionGraphExecutionOutputsQuery< + S extends DatabaseFunctionGraphExecutionOutputSelect, +>(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig< + S, + DatabaseFunctionGraphExecutionOutputFilter, + DatabaseFunctionGraphExecutionOutputOrderBy + >, + 'fields' + > & + HookStrictSelect, DatabaseFunctionGraphExecutionOutputSelect>; +}): Promise<{ + databaseFunctionGraphExecutionOutputs: ConnectionResult< + InferSelectResult + >; +}>; +export async function fetchDatabaseFunctionGraphExecutionOutputsQuery(params: { + selection: ListSelectionConfig< + DatabaseFunctionGraphExecutionOutputSelect, + DatabaseFunctionGraphExecutionOutputFilter, + DatabaseFunctionGraphExecutionOutputOrderBy + >; +}) { + const args = buildListSelectionArgs< + DatabaseFunctionGraphExecutionOutputSelect, + DatabaseFunctionGraphExecutionOutputFilter, + DatabaseFunctionGraphExecutionOutputOrderBy + >(params.selection); + return getClient().databaseFunctionGraphExecutionOutput.findMany(args).unwrap(); +} +/** + * Content-addressed store for execution outputs — hash-referenced from node_outputs + * + * @example + * ```ts + * await prefetchDatabaseFunctionGraphExecutionOutputsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchDatabaseFunctionGraphExecutionOutputsQuery< + S extends DatabaseFunctionGraphExecutionOutputSelect, +>( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig< + S, + DatabaseFunctionGraphExecutionOutputFilter, + DatabaseFunctionGraphExecutionOutputOrderBy + >, + 'fields' + > & + HookStrictSelect, DatabaseFunctionGraphExecutionOutputSelect>; + } +): Promise; +export async function prefetchDatabaseFunctionGraphExecutionOutputsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + DatabaseFunctionGraphExecutionOutputSelect, + DatabaseFunctionGraphExecutionOutputFilter, + DatabaseFunctionGraphExecutionOutputOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + DatabaseFunctionGraphExecutionOutputSelect, + DatabaseFunctionGraphExecutionOutputFilter, + DatabaseFunctionGraphExecutionOutputOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: databaseFunctionGraphExecutionOutputKeys.list(args), + queryFn: () => getClient().databaseFunctionGraphExecutionOutput.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/useDatabaseFunctionGraphExecutionQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/useDatabaseFunctionGraphExecutionQuery.ts new file mode 100644 index 0000000000..24132d9492 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/useDatabaseFunctionGraphExecutionQuery.ts @@ -0,0 +1,157 @@ +/** + * Ephemeral execution state for flow graph evaluation + * @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 { databaseFunctionGraphExecutionKeys } from '../query-keys'; +import type { + DatabaseFunctionGraphExecutionSelect, + DatabaseFunctionGraphExecutionWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + DatabaseFunctionGraphExecutionSelect, + DatabaseFunctionGraphExecutionWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const databaseFunctionGraphExecutionQueryKey = databaseFunctionGraphExecutionKeys.detail; +/** + * Ephemeral execution state for flow graph evaluation + * + * @example + * ```tsx + * const { data, isLoading } = useDatabaseFunctionGraphExecutionQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useDatabaseFunctionGraphExecutionQuery< + S extends DatabaseFunctionGraphExecutionSelect, + TData = { + databaseFunctionGraphExecution: InferSelectResult< + DatabaseFunctionGraphExecutionWithRelations, + S + > | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, DatabaseFunctionGraphExecutionSelect>; + } & Omit< + UseQueryOptions< + { + databaseFunctionGraphExecution: InferSelectResult< + DatabaseFunctionGraphExecutionWithRelations, + S + > | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useDatabaseFunctionGraphExecutionQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: databaseFunctionGraphExecutionKeys.detail(params.id), + queryFn: () => + getClient() + .databaseFunctionGraphExecution.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Ephemeral execution state for flow graph evaluation + * + * @example + * ```ts + * const data = await fetchDatabaseFunctionGraphExecutionQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchDatabaseFunctionGraphExecutionQuery< + S extends DatabaseFunctionGraphExecutionSelect, +>(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, DatabaseFunctionGraphExecutionSelect>; +}): Promise<{ + databaseFunctionGraphExecution: InferSelectResult< + DatabaseFunctionGraphExecutionWithRelations, + S + > | null; +}>; +export async function fetchDatabaseFunctionGraphExecutionQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .databaseFunctionGraphExecution.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Ephemeral execution state for flow graph evaluation + * + * @example + * ```ts + * await prefetchDatabaseFunctionGraphExecutionQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchDatabaseFunctionGraphExecutionQuery< + S extends DatabaseFunctionGraphExecutionSelect, +>( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, DatabaseFunctionGraphExecutionSelect>; + } +): Promise; +export async function prefetchDatabaseFunctionGraphExecutionQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: databaseFunctionGraphExecutionKeys.detail(params.id), + queryFn: () => + getClient() + .databaseFunctionGraphExecution.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/useDatabaseFunctionGraphExecutionsQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/useDatabaseFunctionGraphExecutionsQuery.ts new file mode 100644 index 0000000000..86a6af8f60 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/useDatabaseFunctionGraphExecutionsQuery.ts @@ -0,0 +1,194 @@ +/** + * Ephemeral execution state for flow graph evaluation + * @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 { databaseFunctionGraphExecutionKeys } from '../query-keys'; +import type { + DatabaseFunctionGraphExecutionSelect, + DatabaseFunctionGraphExecutionWithRelations, + DatabaseFunctionGraphExecutionFilter, + DatabaseFunctionGraphExecutionOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + DatabaseFunctionGraphExecutionSelect, + DatabaseFunctionGraphExecutionWithRelations, + DatabaseFunctionGraphExecutionFilter, + DatabaseFunctionGraphExecutionOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const databaseFunctionGraphExecutionsQueryKey = databaseFunctionGraphExecutionKeys.list; +/** + * Ephemeral execution state for flow graph evaluation + * + * @example + * ```tsx + * const { data, isLoading } = useDatabaseFunctionGraphExecutionsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useDatabaseFunctionGraphExecutionsQuery< + S extends DatabaseFunctionGraphExecutionSelect, + TData = { + databaseFunctionGraphExecutions: ConnectionResult< + InferSelectResult + >; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig< + S, + DatabaseFunctionGraphExecutionFilter, + DatabaseFunctionGraphExecutionOrderBy + >, + 'fields' + > & + HookStrictSelect, DatabaseFunctionGraphExecutionSelect>; + } & Omit< + UseQueryOptions< + { + databaseFunctionGraphExecutions: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useDatabaseFunctionGraphExecutionsQuery( + params: { + selection: ListSelectionConfig< + DatabaseFunctionGraphExecutionSelect, + DatabaseFunctionGraphExecutionFilter, + DatabaseFunctionGraphExecutionOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + DatabaseFunctionGraphExecutionSelect, + DatabaseFunctionGraphExecutionFilter, + DatabaseFunctionGraphExecutionOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: databaseFunctionGraphExecutionKeys.list(args), + queryFn: () => getClient().databaseFunctionGraphExecution.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Ephemeral execution state for flow graph evaluation + * + * @example + * ```ts + * const data = await fetchDatabaseFunctionGraphExecutionsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchDatabaseFunctionGraphExecutionsQuery< + S extends DatabaseFunctionGraphExecutionSelect, +>(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig< + S, + DatabaseFunctionGraphExecutionFilter, + DatabaseFunctionGraphExecutionOrderBy + >, + 'fields' + > & + HookStrictSelect, DatabaseFunctionGraphExecutionSelect>; +}): Promise<{ + databaseFunctionGraphExecutions: ConnectionResult< + InferSelectResult + >; +}>; +export async function fetchDatabaseFunctionGraphExecutionsQuery(params: { + selection: ListSelectionConfig< + DatabaseFunctionGraphExecutionSelect, + DatabaseFunctionGraphExecutionFilter, + DatabaseFunctionGraphExecutionOrderBy + >; +}) { + const args = buildListSelectionArgs< + DatabaseFunctionGraphExecutionSelect, + DatabaseFunctionGraphExecutionFilter, + DatabaseFunctionGraphExecutionOrderBy + >(params.selection); + return getClient().databaseFunctionGraphExecution.findMany(args).unwrap(); +} +/** + * Ephemeral execution state for flow graph evaluation + * + * @example + * ```ts + * await prefetchDatabaseFunctionGraphExecutionsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchDatabaseFunctionGraphExecutionsQuery< + S extends DatabaseFunctionGraphExecutionSelect, +>( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig< + S, + DatabaseFunctionGraphExecutionFilter, + DatabaseFunctionGraphExecutionOrderBy + >, + 'fields' + > & + HookStrictSelect, DatabaseFunctionGraphExecutionSelect>; + } +): Promise; +export async function prefetchDatabaseFunctionGraphExecutionsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + DatabaseFunctionGraphExecutionSelect, + DatabaseFunctionGraphExecutionFilter, + DatabaseFunctionGraphExecutionOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + DatabaseFunctionGraphExecutionSelect, + DatabaseFunctionGraphExecutionFilter, + DatabaseFunctionGraphExecutionOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: databaseFunctionGraphExecutionKeys.list(args), + queryFn: () => getClient().databaseFunctionGraphExecution.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/useDatabaseFunctionGraphQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/useDatabaseFunctionGraphQuery.ts new file mode 100644 index 0000000000..fea439e859 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/useDatabaseFunctionGraphQuery.ts @@ -0,0 +1,146 @@ +/** + * Flow graph definitions — FBP graphs stored in the dedicated graph Merkle 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 { databaseFunctionGraphKeys } from '../query-keys'; +import type { + DatabaseFunctionGraphSelect, + DatabaseFunctionGraphWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + DatabaseFunctionGraphSelect, + DatabaseFunctionGraphWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const databaseFunctionGraphQueryKey = databaseFunctionGraphKeys.detail; +/** + * Flow graph definitions — FBP graphs stored in the dedicated graph Merkle store + * + * @example + * ```tsx + * const { data, isLoading } = useDatabaseFunctionGraphQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useDatabaseFunctionGraphQuery< + S extends DatabaseFunctionGraphSelect, + TData = { + databaseFunctionGraph: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, DatabaseFunctionGraphSelect>; + } & Omit< + UseQueryOptions< + { + databaseFunctionGraph: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useDatabaseFunctionGraphQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: databaseFunctionGraphKeys.detail(params.id), + queryFn: () => + getClient() + .databaseFunctionGraph.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Flow graph definitions — FBP graphs stored in the dedicated graph Merkle store + * + * @example + * ```ts + * const data = await fetchDatabaseFunctionGraphQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchDatabaseFunctionGraphQuery< + S extends DatabaseFunctionGraphSelect, +>(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, DatabaseFunctionGraphSelect>; +}): Promise<{ + databaseFunctionGraph: InferSelectResult | null; +}>; +export async function fetchDatabaseFunctionGraphQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .databaseFunctionGraph.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Flow graph definitions — FBP graphs stored in the dedicated graph Merkle store + * + * @example + * ```ts + * await prefetchDatabaseFunctionGraphQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchDatabaseFunctionGraphQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, DatabaseFunctionGraphSelect>; + } +): Promise; +export async function prefetchDatabaseFunctionGraphQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: databaseFunctionGraphKeys.detail(params.id), + queryFn: () => + getClient() + .databaseFunctionGraph.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/useDatabaseFunctionGraphsQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/useDatabaseFunctionGraphsQuery.ts new file mode 100644 index 0000000000..b4dcdc6ecf --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/useDatabaseFunctionGraphsQuery.ts @@ -0,0 +1,180 @@ +/** + * Flow graph definitions — FBP graphs stored in the dedicated graph Merkle 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 { databaseFunctionGraphKeys } from '../query-keys'; +import type { + DatabaseFunctionGraphSelect, + DatabaseFunctionGraphWithRelations, + DatabaseFunctionGraphFilter, + DatabaseFunctionGraphOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + DatabaseFunctionGraphSelect, + DatabaseFunctionGraphWithRelations, + DatabaseFunctionGraphFilter, + DatabaseFunctionGraphOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const databaseFunctionGraphsQueryKey = databaseFunctionGraphKeys.list; +/** + * Flow graph definitions — FBP graphs stored in the dedicated graph Merkle store + * + * @example + * ```tsx + * const { data, isLoading } = useDatabaseFunctionGraphsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useDatabaseFunctionGraphsQuery< + S extends DatabaseFunctionGraphSelect, + TData = { + databaseFunctionGraphs: ConnectionResult< + InferSelectResult + >; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, DatabaseFunctionGraphSelect>; + } & Omit< + UseQueryOptions< + { + databaseFunctionGraphs: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useDatabaseFunctionGraphsQuery( + params: { + selection: ListSelectionConfig< + DatabaseFunctionGraphSelect, + DatabaseFunctionGraphFilter, + DatabaseFunctionGraphOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + DatabaseFunctionGraphSelect, + DatabaseFunctionGraphFilter, + DatabaseFunctionGraphOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: databaseFunctionGraphKeys.list(args), + queryFn: () => getClient().databaseFunctionGraph.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Flow graph definitions — FBP graphs stored in the dedicated graph Merkle store + * + * @example + * ```ts + * const data = await fetchDatabaseFunctionGraphsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchDatabaseFunctionGraphsQuery< + S extends DatabaseFunctionGraphSelect, +>(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, DatabaseFunctionGraphSelect>; +}): Promise<{ + databaseFunctionGraphs: ConnectionResult< + InferSelectResult + >; +}>; +export async function fetchDatabaseFunctionGraphsQuery(params: { + selection: ListSelectionConfig< + DatabaseFunctionGraphSelect, + DatabaseFunctionGraphFilter, + DatabaseFunctionGraphOrderBy + >; +}) { + const args = buildListSelectionArgs< + DatabaseFunctionGraphSelect, + DatabaseFunctionGraphFilter, + DatabaseFunctionGraphOrderBy + >(params.selection); + return getClient().databaseFunctionGraph.findMany(args).unwrap(); +} +/** + * Flow graph definitions — FBP graphs stored in the dedicated graph Merkle store + * + * @example + * ```ts + * await prefetchDatabaseFunctionGraphsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchDatabaseFunctionGraphsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, DatabaseFunctionGraphSelect>; + } +): Promise; +export async function prefetchDatabaseFunctionGraphsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + DatabaseFunctionGraphSelect, + DatabaseFunctionGraphFilter, + DatabaseFunctionGraphOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + DatabaseFunctionGraphSelect, + DatabaseFunctionGraphFilter, + DatabaseFunctionGraphOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: databaseFunctionGraphKeys.list(args), + queryFn: () => getClient().databaseFunctionGraph.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/useDatabaseGraphCommitQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/useDatabaseGraphCommitQuery.ts new file mode 100644 index 0000000000..af6cc42520 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/useDatabaseGraphCommitQuery.ts @@ -0,0 +1,144 @@ +/** + * Commit history — each commit snapshots a tree root for a 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 { databaseGraphCommitKeys } from '../query-keys'; +import type { + DatabaseGraphCommitSelect, + DatabaseGraphCommitWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + DatabaseGraphCommitSelect, + DatabaseGraphCommitWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const databaseGraphCommitQueryKey = databaseGraphCommitKeys.detail; +/** + * Commit history — each commit snapshots a tree root for a store + * + * @example + * ```tsx + * const { data, isLoading } = useDatabaseGraphCommitQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useDatabaseGraphCommitQuery< + S extends DatabaseGraphCommitSelect, + TData = { + databaseGraphCommit: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, DatabaseGraphCommitSelect>; + } & Omit< + UseQueryOptions< + { + databaseGraphCommit: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useDatabaseGraphCommitQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: databaseGraphCommitKeys.detail(params.id), + queryFn: () => + getClient() + .databaseGraphCommit.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Commit history — each commit snapshots a tree root for a store + * + * @example + * ```ts + * const data = await fetchDatabaseGraphCommitQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchDatabaseGraphCommitQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, DatabaseGraphCommitSelect>; +}): Promise<{ + databaseGraphCommit: InferSelectResult | null; +}>; +export async function fetchDatabaseGraphCommitQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .databaseGraphCommit.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Commit history — each commit snapshots a tree root for a store + * + * @example + * ```ts + * await prefetchDatabaseGraphCommitQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchDatabaseGraphCommitQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, DatabaseGraphCommitSelect>; + } +): Promise; +export async function prefetchDatabaseGraphCommitQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: databaseGraphCommitKeys.detail(params.id), + queryFn: () => + getClient() + .databaseGraphCommit.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/useDatabaseGraphCommitsQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/useDatabaseGraphCommitsQuery.ts new file mode 100644 index 0000000000..d9f4bdb7d6 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/useDatabaseGraphCommitsQuery.ts @@ -0,0 +1,174 @@ +/** + * Commit history — each commit snapshots a tree root for a 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 { databaseGraphCommitKeys } from '../query-keys'; +import type { + DatabaseGraphCommitSelect, + DatabaseGraphCommitWithRelations, + DatabaseGraphCommitFilter, + DatabaseGraphCommitOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + DatabaseGraphCommitSelect, + DatabaseGraphCommitWithRelations, + DatabaseGraphCommitFilter, + DatabaseGraphCommitOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const databaseGraphCommitsQueryKey = databaseGraphCommitKeys.list; +/** + * Commit history — each commit snapshots a tree root for a store + * + * @example + * ```tsx + * const { data, isLoading } = useDatabaseGraphCommitsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useDatabaseGraphCommitsQuery< + S extends DatabaseGraphCommitSelect, + TData = { + databaseGraphCommits: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, DatabaseGraphCommitSelect>; + } & Omit< + UseQueryOptions< + { + databaseGraphCommits: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useDatabaseGraphCommitsQuery( + params: { + selection: ListSelectionConfig< + DatabaseGraphCommitSelect, + DatabaseGraphCommitFilter, + DatabaseGraphCommitOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + DatabaseGraphCommitSelect, + DatabaseGraphCommitFilter, + DatabaseGraphCommitOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: databaseGraphCommitKeys.list(args), + queryFn: () => getClient().databaseGraphCommit.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Commit history — each commit snapshots a tree root for a store + * + * @example + * ```ts + * const data = await fetchDatabaseGraphCommitsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchDatabaseGraphCommitsQuery(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, DatabaseGraphCommitSelect>; +}): Promise<{ + databaseGraphCommits: ConnectionResult>; +}>; +export async function fetchDatabaseGraphCommitsQuery(params: { + selection: ListSelectionConfig< + DatabaseGraphCommitSelect, + DatabaseGraphCommitFilter, + DatabaseGraphCommitOrderBy + >; +}) { + const args = buildListSelectionArgs< + DatabaseGraphCommitSelect, + DatabaseGraphCommitFilter, + DatabaseGraphCommitOrderBy + >(params.selection); + return getClient().databaseGraphCommit.findMany(args).unwrap(); +} +/** + * Commit history — each commit snapshots a tree root for a store + * + * @example + * ```ts + * await prefetchDatabaseGraphCommitsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchDatabaseGraphCommitsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, DatabaseGraphCommitSelect>; + } +): Promise; +export async function prefetchDatabaseGraphCommitsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + DatabaseGraphCommitSelect, + DatabaseGraphCommitFilter, + DatabaseGraphCommitOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + DatabaseGraphCommitSelect, + DatabaseGraphCommitFilter, + DatabaseGraphCommitOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: databaseGraphCommitKeys.list(args), + queryFn: () => getClient().databaseGraphCommit.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/useDatabaseGraphGetAllTreeNodesQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/useDatabaseGraphGetAllTreeNodesQuery.ts new file mode 100644 index 0000000000..3537014ab3 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/useDatabaseGraphGetAllTreeNodesQuery.ts @@ -0,0 +1,194 @@ +/** + * List query hook for DatabaseGraphGetAllTreeNodesRecord + * @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 { databaseGraphGetAllTreeNodesRecordKeys } from '../query-keys'; +import type { + DatabaseGraphGetAllTreeNodesRecordSelect, + DatabaseGraphGetAllTreeNodesRecordWithRelations, + DatabaseGraphGetAllTreeNodesRecordFilter, + DatabaseGraphGetAllTreeNodesRecordsOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + DatabaseGraphGetAllTreeNodesRecordSelect, + DatabaseGraphGetAllTreeNodesRecordWithRelations, + DatabaseGraphGetAllTreeNodesRecordFilter, + DatabaseGraphGetAllTreeNodesRecordsOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const databaseGraphGetAllTreeNodesQueryKey = databaseGraphGetAllTreeNodesRecordKeys.list; +/** + * Query hook for fetching DatabaseGraphGetAllTreeNodesRecord list + * + * @example + * ```tsx + * const { data, isLoading } = useDatabaseGraphGetAllTreeNodesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useDatabaseGraphGetAllTreeNodesQuery< + S extends DatabaseGraphGetAllTreeNodesRecordSelect, + TData = { + databaseGraphGetAllTreeNodes: ConnectionResult< + InferSelectResult + >; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig< + S, + DatabaseGraphGetAllTreeNodesRecordFilter, + DatabaseGraphGetAllTreeNodesRecordsOrderBy + >, + 'fields' + > & + HookStrictSelect, DatabaseGraphGetAllTreeNodesRecordSelect>; + } & Omit< + UseQueryOptions< + { + databaseGraphGetAllTreeNodes: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useDatabaseGraphGetAllTreeNodesQuery( + params: { + selection: ListSelectionConfig< + DatabaseGraphGetAllTreeNodesRecordSelect, + DatabaseGraphGetAllTreeNodesRecordFilter, + DatabaseGraphGetAllTreeNodesRecordsOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + DatabaseGraphGetAllTreeNodesRecordSelect, + DatabaseGraphGetAllTreeNodesRecordFilter, + DatabaseGraphGetAllTreeNodesRecordsOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: databaseGraphGetAllTreeNodesRecordKeys.list(args), + queryFn: () => getClient().databaseGraphGetAllTreeNodesRecord.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch DatabaseGraphGetAllTreeNodesRecord list without React hooks + * + * @example + * ```ts + * const data = await fetchDatabaseGraphGetAllTreeNodesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchDatabaseGraphGetAllTreeNodesQuery< + S extends DatabaseGraphGetAllTreeNodesRecordSelect, +>(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig< + S, + DatabaseGraphGetAllTreeNodesRecordFilter, + DatabaseGraphGetAllTreeNodesRecordsOrderBy + >, + 'fields' + > & + HookStrictSelect, DatabaseGraphGetAllTreeNodesRecordSelect>; +}): Promise<{ + databaseGraphGetAllTreeNodes: ConnectionResult< + InferSelectResult + >; +}>; +export async function fetchDatabaseGraphGetAllTreeNodesQuery(params: { + selection: ListSelectionConfig< + DatabaseGraphGetAllTreeNodesRecordSelect, + DatabaseGraphGetAllTreeNodesRecordFilter, + DatabaseGraphGetAllTreeNodesRecordsOrderBy + >; +}) { + const args = buildListSelectionArgs< + DatabaseGraphGetAllTreeNodesRecordSelect, + DatabaseGraphGetAllTreeNodesRecordFilter, + DatabaseGraphGetAllTreeNodesRecordsOrderBy + >(params.selection); + return getClient().databaseGraphGetAllTreeNodesRecord.findMany(args).unwrap(); +} +/** + * Prefetch DatabaseGraphGetAllTreeNodesRecord list for SSR or cache warming + * + * @example + * ```ts + * await prefetchDatabaseGraphGetAllTreeNodesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchDatabaseGraphGetAllTreeNodesQuery< + S extends DatabaseGraphGetAllTreeNodesRecordSelect, +>( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig< + S, + DatabaseGraphGetAllTreeNodesRecordFilter, + DatabaseGraphGetAllTreeNodesRecordsOrderBy + >, + 'fields' + > & + HookStrictSelect, DatabaseGraphGetAllTreeNodesRecordSelect>; + } +): Promise; +export async function prefetchDatabaseGraphGetAllTreeNodesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + DatabaseGraphGetAllTreeNodesRecordSelect, + DatabaseGraphGetAllTreeNodesRecordFilter, + DatabaseGraphGetAllTreeNodesRecordsOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + DatabaseGraphGetAllTreeNodesRecordSelect, + DatabaseGraphGetAllTreeNodesRecordFilter, + DatabaseGraphGetAllTreeNodesRecordsOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: databaseGraphGetAllTreeNodesRecordKeys.list(args), + queryFn: () => getClient().databaseGraphGetAllTreeNodesRecord.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/useDatabaseGraphObjectQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/useDatabaseGraphObjectQuery.ts new file mode 100644 index 0000000000..01c0f8862f --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/useDatabaseGraphObjectQuery.ts @@ -0,0 +1,144 @@ +/** + * Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children + * @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 { databaseGraphObjectKeys } from '../query-keys'; +import type { + DatabaseGraphObjectSelect, + DatabaseGraphObjectWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + DatabaseGraphObjectSelect, + DatabaseGraphObjectWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const databaseGraphGetNodeAtPathQueryKey = databaseGraphObjectKeys.detail; +/** + * Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children + * + * @example + * ```tsx + * const { data, isLoading } = useDatabaseGraphObjectQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useDatabaseGraphObjectQuery< + S extends DatabaseGraphObjectSelect, + TData = { + databaseGraphGetNodeAtPath: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, DatabaseGraphObjectSelect>; + } & Omit< + UseQueryOptions< + { + databaseGraphGetNodeAtPath: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useDatabaseGraphObjectQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: databaseGraphObjectKeys.detail(params.id), + queryFn: () => + getClient() + .databaseGraphObject.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children + * + * @example + * ```ts + * const data = await fetchDatabaseGraphObjectQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchDatabaseGraphObjectQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, DatabaseGraphObjectSelect>; +}): Promise<{ + databaseGraphGetNodeAtPath: InferSelectResult | null; +}>; +export async function fetchDatabaseGraphObjectQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .databaseGraphObject.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children + * + * @example + * ```ts + * await prefetchDatabaseGraphObjectQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchDatabaseGraphObjectQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, DatabaseGraphObjectSelect>; + } +): Promise; +export async function prefetchDatabaseGraphObjectQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: databaseGraphObjectKeys.detail(params.id), + queryFn: () => + getClient() + .databaseGraphObject.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/useDatabaseGraphObjectsQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/useDatabaseGraphObjectsQuery.ts new file mode 100644 index 0000000000..a05091945f --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/useDatabaseGraphObjectsQuery.ts @@ -0,0 +1,174 @@ +/** + * Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children + * @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 { databaseGraphObjectKeys } from '../query-keys'; +import type { + DatabaseGraphObjectSelect, + DatabaseGraphObjectWithRelations, + DatabaseGraphObjectFilter, + DatabaseGraphObjectOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + DatabaseGraphObjectSelect, + DatabaseGraphObjectWithRelations, + DatabaseGraphObjectFilter, + DatabaseGraphObjectOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const databaseGraphObjectsQueryKey = databaseGraphObjectKeys.list; +/** + * Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children + * + * @example + * ```tsx + * const { data, isLoading } = useDatabaseGraphObjectsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useDatabaseGraphObjectsQuery< + S extends DatabaseGraphObjectSelect, + TData = { + databaseGraphObjects: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, DatabaseGraphObjectSelect>; + } & Omit< + UseQueryOptions< + { + databaseGraphObjects: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useDatabaseGraphObjectsQuery( + params: { + selection: ListSelectionConfig< + DatabaseGraphObjectSelect, + DatabaseGraphObjectFilter, + DatabaseGraphObjectOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + DatabaseGraphObjectSelect, + DatabaseGraphObjectFilter, + DatabaseGraphObjectOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: databaseGraphObjectKeys.list(args), + queryFn: () => getClient().databaseGraphObject.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children + * + * @example + * ```ts + * const data = await fetchDatabaseGraphObjectsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchDatabaseGraphObjectsQuery(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, DatabaseGraphObjectSelect>; +}): Promise<{ + databaseGraphObjects: ConnectionResult>; +}>; +export async function fetchDatabaseGraphObjectsQuery(params: { + selection: ListSelectionConfig< + DatabaseGraphObjectSelect, + DatabaseGraphObjectFilter, + DatabaseGraphObjectOrderBy + >; +}) { + const args = buildListSelectionArgs< + DatabaseGraphObjectSelect, + DatabaseGraphObjectFilter, + DatabaseGraphObjectOrderBy + >(params.selection); + return getClient().databaseGraphObject.findMany(args).unwrap(); +} +/** + * Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children + * + * @example + * ```ts + * await prefetchDatabaseGraphObjectsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchDatabaseGraphObjectsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, DatabaseGraphObjectSelect>; + } +): Promise; +export async function prefetchDatabaseGraphObjectsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + DatabaseGraphObjectSelect, + DatabaseGraphObjectFilter, + DatabaseGraphObjectOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + DatabaseGraphObjectSelect, + DatabaseGraphObjectFilter, + DatabaseGraphObjectOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: databaseGraphObjectKeys.list(args), + queryFn: () => getClient().databaseGraphObject.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/useDatabaseGraphRefQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/useDatabaseGraphRefQuery.ts new file mode 100644 index 0000000000..4e073b72dd --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/useDatabaseGraphRefQuery.ts @@ -0,0 +1,138 @@ +/** + * Branch heads — mutable pointers into the commit chain + * @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 { databaseGraphRefKeys } from '../query-keys'; +import type { DatabaseGraphRefSelect, DatabaseGraphRefWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { DatabaseGraphRefSelect, DatabaseGraphRefWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const databaseGraphRefQueryKey = databaseGraphRefKeys.detail; +/** + * Branch heads — mutable pointers into the commit chain + * + * @example + * ```tsx + * const { data, isLoading } = useDatabaseGraphRefQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useDatabaseGraphRefQuery< + S extends DatabaseGraphRefSelect, + TData = { + databaseGraphRef: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, DatabaseGraphRefSelect>; + } & Omit< + UseQueryOptions< + { + databaseGraphRef: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useDatabaseGraphRefQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: databaseGraphRefKeys.detail(params.id), + queryFn: () => + getClient() + .databaseGraphRef.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Branch heads — mutable pointers into the commit chain + * + * @example + * ```ts + * const data = await fetchDatabaseGraphRefQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchDatabaseGraphRefQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, DatabaseGraphRefSelect>; +}): Promise<{ + databaseGraphRef: InferSelectResult | null; +}>; +export async function fetchDatabaseGraphRefQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .databaseGraphRef.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Branch heads — mutable pointers into the commit chain + * + * @example + * ```ts + * await prefetchDatabaseGraphRefQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchDatabaseGraphRefQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, DatabaseGraphRefSelect>; + } +): Promise; +export async function prefetchDatabaseGraphRefQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: databaseGraphRefKeys.detail(params.id), + queryFn: () => + getClient() + .databaseGraphRef.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/useDatabaseGraphRefsQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/useDatabaseGraphRefsQuery.ts new file mode 100644 index 0000000000..a18a6bea66 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/useDatabaseGraphRefsQuery.ts @@ -0,0 +1,163 @@ +/** + * Branch heads — mutable pointers into the commit chain + * @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 { databaseGraphRefKeys } from '../query-keys'; +import type { + DatabaseGraphRefSelect, + DatabaseGraphRefWithRelations, + DatabaseGraphRefFilter, + DatabaseGraphRefOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + DatabaseGraphRefSelect, + DatabaseGraphRefWithRelations, + DatabaseGraphRefFilter, + DatabaseGraphRefOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const databaseGraphRefsQueryKey = databaseGraphRefKeys.list; +/** + * Branch heads — mutable pointers into the commit chain + * + * @example + * ```tsx + * const { data, isLoading } = useDatabaseGraphRefsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useDatabaseGraphRefsQuery< + S extends DatabaseGraphRefSelect, + TData = { + databaseGraphRefs: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, DatabaseGraphRefSelect>; + } & Omit< + UseQueryOptions< + { + databaseGraphRefs: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useDatabaseGraphRefsQuery( + params: { + selection: ListSelectionConfig< + DatabaseGraphRefSelect, + DatabaseGraphRefFilter, + DatabaseGraphRefOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + DatabaseGraphRefSelect, + DatabaseGraphRefFilter, + DatabaseGraphRefOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: databaseGraphRefKeys.list(args), + queryFn: () => getClient().databaseGraphRef.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Branch heads — mutable pointers into the commit chain + * + * @example + * ```ts + * const data = await fetchDatabaseGraphRefsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchDatabaseGraphRefsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, DatabaseGraphRefSelect>; +}): Promise<{ + databaseGraphRefs: ConnectionResult>; +}>; +export async function fetchDatabaseGraphRefsQuery(params: { + selection: ListSelectionConfig< + DatabaseGraphRefSelect, + DatabaseGraphRefFilter, + DatabaseGraphRefOrderBy + >; +}) { + const args = buildListSelectionArgs< + DatabaseGraphRefSelect, + DatabaseGraphRefFilter, + DatabaseGraphRefOrderBy + >(params.selection); + return getClient().databaseGraphRef.findMany(args).unwrap(); +} +/** + * Branch heads — mutable pointers into the commit chain + * + * @example + * ```ts + * await prefetchDatabaseGraphRefsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchDatabaseGraphRefsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, DatabaseGraphRefSelect>; + } +): Promise; +export async function prefetchDatabaseGraphRefsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + DatabaseGraphRefSelect, + DatabaseGraphRefFilter, + DatabaseGraphRefOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + DatabaseGraphRefSelect, + DatabaseGraphRefFilter, + DatabaseGraphRefOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: databaseGraphRefKeys.list(args), + queryFn: () => getClient().databaseGraphRef.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/useDatabaseGraphStoreQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/useDatabaseGraphStoreQuery.ts new file mode 100644 index 0000000000..988b2f0f25 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/useDatabaseGraphStoreQuery.ts @@ -0,0 +1,144 @@ +/** + * Named stores — one per version-controlled tree (e.g. one graph, one definition set) + * @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 { databaseGraphStoreKeys } from '../query-keys'; +import type { + DatabaseGraphStoreSelect, + DatabaseGraphStoreWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + DatabaseGraphStoreSelect, + DatabaseGraphStoreWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const databaseGraphStoreQueryKey = databaseGraphStoreKeys.detail; +/** + * Named stores — one per version-controlled tree (e.g. one graph, one definition set) + * + * @example + * ```tsx + * const { data, isLoading } = useDatabaseGraphStoreQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useDatabaseGraphStoreQuery< + S extends DatabaseGraphStoreSelect, + TData = { + databaseGraphStore: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, DatabaseGraphStoreSelect>; + } & Omit< + UseQueryOptions< + { + databaseGraphStore: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useDatabaseGraphStoreQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: databaseGraphStoreKeys.detail(params.id), + queryFn: () => + getClient() + .databaseGraphStore.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Named stores — one per version-controlled tree (e.g. one graph, one definition set) + * + * @example + * ```ts + * const data = await fetchDatabaseGraphStoreQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchDatabaseGraphStoreQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, DatabaseGraphStoreSelect>; +}): Promise<{ + databaseGraphStore: InferSelectResult | null; +}>; +export async function fetchDatabaseGraphStoreQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .databaseGraphStore.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Named stores — one per version-controlled tree (e.g. one graph, one definition set) + * + * @example + * ```ts + * await prefetchDatabaseGraphStoreQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchDatabaseGraphStoreQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, DatabaseGraphStoreSelect>; + } +): Promise; +export async function prefetchDatabaseGraphStoreQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: databaseGraphStoreKeys.detail(params.id), + queryFn: () => + getClient() + .databaseGraphStore.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/useDatabaseGraphStoresQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/useDatabaseGraphStoresQuery.ts new file mode 100644 index 0000000000..959773e75e --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/useDatabaseGraphStoresQuery.ts @@ -0,0 +1,171 @@ +/** + * Named stores — one per version-controlled tree (e.g. one graph, one definition set) + * @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 { databaseGraphStoreKeys } from '../query-keys'; +import type { + DatabaseGraphStoreSelect, + DatabaseGraphStoreWithRelations, + DatabaseGraphStoreFilter, + DatabaseGraphStoreOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + DatabaseGraphStoreSelect, + DatabaseGraphStoreWithRelations, + DatabaseGraphStoreFilter, + DatabaseGraphStoreOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const databaseGraphStoresQueryKey = databaseGraphStoreKeys.list; +/** + * Named stores — one per version-controlled tree (e.g. one graph, one definition set) + * + * @example + * ```tsx + * const { data, isLoading } = useDatabaseGraphStoresQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useDatabaseGraphStoresQuery< + S extends DatabaseGraphStoreSelect, + TData = { + databaseGraphStores: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, DatabaseGraphStoreSelect>; + } & Omit< + UseQueryOptions< + { + databaseGraphStores: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useDatabaseGraphStoresQuery( + params: { + selection: ListSelectionConfig< + DatabaseGraphStoreSelect, + DatabaseGraphStoreFilter, + DatabaseGraphStoreOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + DatabaseGraphStoreSelect, + DatabaseGraphStoreFilter, + DatabaseGraphStoreOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: databaseGraphStoreKeys.list(args), + queryFn: () => getClient().databaseGraphStore.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Named stores — one per version-controlled tree (e.g. one graph, one definition set) + * + * @example + * ```ts + * const data = await fetchDatabaseGraphStoresQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchDatabaseGraphStoresQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, DatabaseGraphStoreSelect>; +}): Promise<{ + databaseGraphStores: ConnectionResult>; +}>; +export async function fetchDatabaseGraphStoresQuery(params: { + selection: ListSelectionConfig< + DatabaseGraphStoreSelect, + DatabaseGraphStoreFilter, + DatabaseGraphStoreOrderBy + >; +}) { + const args = buildListSelectionArgs< + DatabaseGraphStoreSelect, + DatabaseGraphStoreFilter, + DatabaseGraphStoreOrderBy + >(params.selection); + return getClient().databaseGraphStore.findMany(args).unwrap(); +} +/** + * Named stores — one per version-controlled tree (e.g. one graph, one definition set) + * + * @example + * ```ts + * await prefetchDatabaseGraphStoresQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchDatabaseGraphStoresQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, DatabaseGraphStoreSelect>; + } +): Promise; +export async function prefetchDatabaseGraphStoresQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + DatabaseGraphStoreSelect, + DatabaseGraphStoreFilter, + DatabaseGraphStoreOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + DatabaseGraphStoreSelect, + DatabaseGraphStoreFilter, + DatabaseGraphStoreOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: databaseGraphStoreKeys.list(args), + queryFn: () => getClient().databaseGraphStore.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/useDatabaseReadFunctionGraphQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/useDatabaseReadFunctionGraphQuery.ts new file mode 100644 index 0000000000..ca8ba42a11 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/useDatabaseReadFunctionGraphQuery.ts @@ -0,0 +1,107 @@ +/** + * Custom query hook for databaseReadFunctionGraph + * @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 { DatabaseReadFunctionGraphVariables } from '../../orm/query'; +export type { DatabaseReadFunctionGraphVariables } from '../../orm/query'; +/** Query key factory - re-exported from query-keys.ts */ +export const databaseReadFunctionGraphQueryKey = customQueryKeys.databaseReadFunctionGraph; +/** + * Query hook for databaseReadFunctionGraph + * + * @example + * ```tsx + * const { data, isLoading } = useDatabaseReadFunctionGraphQuery({ variables: { graphId } }); + * + * if (data?.databaseReadFunctionGraph) { + * console.log(data.databaseReadFunctionGraph); + * } + * ``` + */ +export function useDatabaseReadFunctionGraphQuery< + TData = { + databaseReadFunctionGraph: unknown | null; + }, +>( + params?: { + variables?: DatabaseReadFunctionGraphVariables; + } & Omit< + UseQueryOptions< + { + databaseReadFunctionGraph: unknown | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useDatabaseReadFunctionGraphQuery< + TData = { + databaseReadFunctionGraph: unknown | null; + }, +>( + params?: { + variables?: DatabaseReadFunctionGraphVariables; + } & Omit< + UseQueryOptions< + { + databaseReadFunctionGraph: unknown | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult { + const variables = params?.variables ?? {}; + const { variables: _variables, ...queryOptions } = params ?? {}; + void _variables; + return useQuery({ + queryKey: databaseReadFunctionGraphQueryKey(variables), + queryFn: () => getClient().query.databaseReadFunctionGraph(variables).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch databaseReadFunctionGraph without React hooks + * + * @example + * ```ts + * const data = await fetchDatabaseReadFunctionGraphQuery({ variables: { graphId } }); + * ``` + */ +export async function fetchDatabaseReadFunctionGraphQuery(params?: { + variables?: DatabaseReadFunctionGraphVariables; +}) { + const variables = params?.variables ?? {}; + return getClient().query.databaseReadFunctionGraph(variables).unwrap(); +} +/** + * Prefetch databaseReadFunctionGraph for SSR or cache warming + * + * @example + * ```ts + * await prefetchDatabaseReadFunctionGraphQuery(queryClient, { variables: { graphId } }); + * ``` + */ +export async function prefetchDatabaseReadFunctionGraphQuery( + queryClient: QueryClient, + params?: { + variables?: DatabaseReadFunctionGraphVariables; + } +): Promise { + const variables = params?.variables ?? {}; + await queryClient.prefetchQuery({ + queryKey: databaseReadFunctionGraphQueryKey(variables), + queryFn: () => getClient().query.databaseReadFunctionGraph(variables).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/useImageGrantQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/useImageGrantQuery.ts new file mode 100644 index 0000000000..948163b993 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/useImageGrantQuery.ts @@ -0,0 +1,138 @@ +/** + * Grants that make a catalog image usable by one scope + * @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 { imageGrantKeys } from '../query-keys'; +import type { ImageGrantSelect, ImageGrantWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { ImageGrantSelect, ImageGrantWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const imageGrantQueryKey = imageGrantKeys.detail; +/** + * Grants that make a catalog image usable by one scope + * + * @example + * ```tsx + * const { data, isLoading } = useImageGrantQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useImageGrantQuery< + S extends ImageGrantSelect, + TData = { + imageGrant: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ImageGrantSelect>; + } & Omit< + UseQueryOptions< + { + imageGrant: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useImageGrantQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: imageGrantKeys.detail(params.id), + queryFn: () => + getClient() + .imageGrant.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Grants that make a catalog image usable by one scope + * + * @example + * ```ts + * const data = await fetchImageGrantQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchImageGrantQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ImageGrantSelect>; +}): Promise<{ + imageGrant: InferSelectResult | null; +}>; +export async function fetchImageGrantQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .imageGrant.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Grants that make a catalog image usable by one scope + * + * @example + * ```ts + * await prefetchImageGrantQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchImageGrantQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ImageGrantSelect>; + } +): Promise; +export async function prefetchImageGrantQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: imageGrantKeys.detail(params.id), + queryFn: () => + getClient() + .imageGrant.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/useImageGrantsQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/useImageGrantsQuery.ts new file mode 100644 index 0000000000..fc5301f6b5 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/useImageGrantsQuery.ts @@ -0,0 +1,145 @@ +/** + * Grants that make a catalog image usable by one scope + * @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 { imageGrantKeys } from '../query-keys'; +import type { + ImageGrantSelect, + ImageGrantWithRelations, + ImageGrantFilter, + ImageGrantOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + ImageGrantSelect, + ImageGrantWithRelations, + ImageGrantFilter, + ImageGrantOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const imageGrantsQueryKey = imageGrantKeys.list; +/** + * Grants that make a catalog image usable by one scope + * + * @example + * ```tsx + * const { data, isLoading } = useImageGrantsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useImageGrantsQuery< + S extends ImageGrantSelect, + TData = { + imageGrants: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, ImageGrantSelect>; + } & Omit< + UseQueryOptions< + { + imageGrants: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useImageGrantsQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs( + params.selection + ); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: imageGrantKeys.list(args), + queryFn: () => getClient().imageGrant.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Grants that make a catalog image usable by one scope + * + * @example + * ```ts + * const data = await fetchImageGrantsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchImageGrantsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, ImageGrantSelect>; +}): Promise<{ + imageGrants: ConnectionResult>; +}>; +export async function fetchImageGrantsQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs( + params.selection + ); + return getClient().imageGrant.findMany(args).unwrap(); +} +/** + * Grants that make a catalog image usable by one scope + * + * @example + * ```ts + * await prefetchImageGrantsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchImageGrantsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, ImageGrantSelect>; + } +): Promise; +export async function prefetchImageGrantsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs( + params.selection + ); + await queryClient.prefetchQuery({ + queryKey: imageGrantKeys.list(args), + queryFn: () => getClient().imageGrant.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/useImageQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/useImageQuery.ts new file mode 100644 index 0000000000..abcea06b8e --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/useImageQuery.ts @@ -0,0 +1,138 @@ +/** + * Container image catalog: images available to run as functions, resources, and builds + * @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 { imageKeys } from '../query-keys'; +import type { ImageSelect, ImageWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { ImageSelect, ImageWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const imageQueryKey = imageKeys.detail; +/** + * Container image catalog: images available to run as functions, resources, and builds + * + * @example + * ```tsx + * const { data, isLoading } = useImageQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useImageQuery< + S extends ImageSelect, + TData = { + image: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ImageSelect>; + } & Omit< + UseQueryOptions< + { + image: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useImageQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: imageKeys.detail(params.id), + queryFn: () => + getClient() + .image.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Container image catalog: images available to run as functions, resources, and builds + * + * @example + * ```ts + * const data = await fetchImageQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchImageQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ImageSelect>; +}): Promise<{ + image: InferSelectResult | null; +}>; +export async function fetchImageQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .image.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Container image catalog: images available to run as functions, resources, and builds + * + * @example + * ```ts + * await prefetchImageQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchImageQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ImageSelect>; + } +): Promise; +export async function prefetchImageQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: imageKeys.detail(params.id), + queryFn: () => + getClient() + .image.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/useImagesQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/useImagesQuery.ts new file mode 100644 index 0000000000..351e6bb34e --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/useImagesQuery.ts @@ -0,0 +1,139 @@ +/** + * Container image catalog: images available to run as functions, resources, and builds + * @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 { imageKeys } from '../query-keys'; +import type { + ImageSelect, + ImageWithRelations, + ImageFilter, + ImageOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + ImageSelect, + ImageWithRelations, + ImageFilter, + ImageOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const imagesQueryKey = imageKeys.list; +/** + * Container image catalog: images available to run as functions, resources, and builds + * + * @example + * ```tsx + * const { data, isLoading } = useImagesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useImagesQuery< + S extends ImageSelect, + TData = { + images: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, ImageSelect>; + } & Omit< + UseQueryOptions< + { + images: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useImagesQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: imageKeys.list(args), + queryFn: () => getClient().image.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Container image catalog: images available to run as functions, resources, and builds + * + * @example + * ```ts + * const data = await fetchImagesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchImagesQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, ImageSelect>; +}): Promise<{ + images: ConnectionResult>; +}>; +export async function fetchImagesQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs(params.selection); + return getClient().image.findMany(args).unwrap(); +} +/** + * Container image catalog: images available to run as functions, resources, and builds + * + * @example + * ```ts + * await prefetchImagesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchImagesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, ImageSelect>; + } +): Promise; +export async function prefetchImagesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: imageKeys.list(args), + queryFn: () => getClient().image.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/usePlatformBuildQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/usePlatformBuildQuery.ts new file mode 100644 index 0000000000..126ae65ed0 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/usePlatformBuildQuery.ts @@ -0,0 +1,138 @@ +/** + * One run of a repository workflow: its commit, its job, and what it produced + * @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 { platformBuildKeys } from '../query-keys'; +import type { PlatformBuildSelect, PlatformBuildWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { PlatformBuildSelect, PlatformBuildWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformBuildQueryKey = platformBuildKeys.detail; +/** + * One run of a repository workflow: its commit, its job, and what it produced + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformBuildQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function usePlatformBuildQuery< + S extends PlatformBuildSelect, + TData = { + platformBuild: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformBuildSelect>; + } & Omit< + UseQueryOptions< + { + platformBuild: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformBuildQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformBuildKeys.detail(params.id), + queryFn: () => + getClient() + .platformBuild.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * One run of a repository workflow: its commit, its job, and what it produced + * + * @example + * ```ts + * const data = await fetchPlatformBuildQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchPlatformBuildQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformBuildSelect>; +}): Promise<{ + platformBuild: InferSelectResult | null; +}>; +export async function fetchPlatformBuildQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .platformBuild.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * One run of a repository workflow: its commit, its job, and what it produced + * + * @example + * ```ts + * await prefetchPlatformBuildQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchPlatformBuildQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformBuildSelect>; + } +): Promise; +export async function prefetchPlatformBuildQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformBuildKeys.detail(params.id), + queryFn: () => + getClient() + .platformBuild.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/usePlatformBuildStepQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/usePlatformBuildStepQuery.ts new file mode 100644 index 0000000000..03485cacfa --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/usePlatformBuildStepQuery.ts @@ -0,0 +1,144 @@ +/** + * Partitioned append-only step and test results of a build, keyed into its log object + * @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 { platformBuildStepKeys } from '../query-keys'; +import type { + PlatformBuildStepSelect, + PlatformBuildStepWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformBuildStepSelect, + PlatformBuildStepWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformBuildStepQueryKey = platformBuildStepKeys.detail; +/** + * Partitioned append-only step and test results of a build, keyed into its log object + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformBuildStepQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function usePlatformBuildStepQuery< + S extends PlatformBuildStepSelect, + TData = { + platformBuildStep: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformBuildStepSelect>; + } & Omit< + UseQueryOptions< + { + platformBuildStep: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformBuildStepQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformBuildStepKeys.detail(params.id), + queryFn: () => + getClient() + .platformBuildStep.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Partitioned append-only step and test results of a build, keyed into its log object + * + * @example + * ```ts + * const data = await fetchPlatformBuildStepQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchPlatformBuildStepQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformBuildStepSelect>; +}): Promise<{ + platformBuildStep: InferSelectResult | null; +}>; +export async function fetchPlatformBuildStepQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .platformBuildStep.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Partitioned append-only step and test results of a build, keyed into its log object + * + * @example + * ```ts + * await prefetchPlatformBuildStepQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchPlatformBuildStepQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformBuildStepSelect>; + } +): Promise; +export async function prefetchPlatformBuildStepQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformBuildStepKeys.detail(params.id), + queryFn: () => + getClient() + .platformBuildStep.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/usePlatformBuildStepsQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/usePlatformBuildStepsQuery.ts new file mode 100644 index 0000000000..4a9876c54e --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/usePlatformBuildStepsQuery.ts @@ -0,0 +1,163 @@ +/** + * Partitioned append-only step and test results of a build, keyed into its log object + * @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 { platformBuildStepKeys } from '../query-keys'; +import type { + PlatformBuildStepSelect, + PlatformBuildStepWithRelations, + PlatformBuildStepFilter, + PlatformBuildStepOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + PlatformBuildStepSelect, + PlatformBuildStepWithRelations, + PlatformBuildStepFilter, + PlatformBuildStepOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformBuildStepsQueryKey = platformBuildStepKeys.list; +/** + * Partitioned append-only step and test results of a build, keyed into its log object + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformBuildStepsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function usePlatformBuildStepsQuery< + S extends PlatformBuildStepSelect, + TData = { + platformBuildSteps: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, PlatformBuildStepSelect>; + } & Omit< + UseQueryOptions< + { + platformBuildSteps: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformBuildStepsQuery( + params: { + selection: ListSelectionConfig< + PlatformBuildStepSelect, + PlatformBuildStepFilter, + PlatformBuildStepOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + PlatformBuildStepSelect, + PlatformBuildStepFilter, + PlatformBuildStepOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformBuildStepKeys.list(args), + queryFn: () => getClient().platformBuildStep.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Partitioned append-only step and test results of a build, keyed into its log object + * + * @example + * ```ts + * const data = await fetchPlatformBuildStepsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchPlatformBuildStepsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, PlatformBuildStepSelect>; +}): Promise<{ + platformBuildSteps: ConnectionResult>; +}>; +export async function fetchPlatformBuildStepsQuery(params: { + selection: ListSelectionConfig< + PlatformBuildStepSelect, + PlatformBuildStepFilter, + PlatformBuildStepOrderBy + >; +}) { + const args = buildListSelectionArgs< + PlatformBuildStepSelect, + PlatformBuildStepFilter, + PlatformBuildStepOrderBy + >(params.selection); + return getClient().platformBuildStep.findMany(args).unwrap(); +} +/** + * Partitioned append-only step and test results of a build, keyed into its log object + * + * @example + * ```ts + * await prefetchPlatformBuildStepsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchPlatformBuildStepsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, PlatformBuildStepSelect>; + } +): Promise; +export async function prefetchPlatformBuildStepsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + PlatformBuildStepSelect, + PlatformBuildStepFilter, + PlatformBuildStepOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + PlatformBuildStepSelect, + PlatformBuildStepFilter, + PlatformBuildStepOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformBuildStepKeys.list(args), + queryFn: () => getClient().platformBuildStep.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/usePlatformBuilderBindingQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/usePlatformBuilderBindingQuery.ts new file mode 100644 index 0000000000..638ca58416 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/usePlatformBuilderBindingQuery.ts @@ -0,0 +1,146 @@ +/** + * Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST + * @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 { platformBuilderBindingKeys } from '../query-keys'; +import type { + PlatformBuilderBindingSelect, + PlatformBuilderBindingWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformBuilderBindingSelect, + PlatformBuilderBindingWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformBuilderBindingQueryKey = platformBuilderBindingKeys.detail; +/** + * Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformBuilderBindingQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function usePlatformBuilderBindingQuery< + S extends PlatformBuilderBindingSelect, + TData = { + platformBuilderBinding: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformBuilderBindingSelect>; + } & Omit< + UseQueryOptions< + { + platformBuilderBinding: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformBuilderBindingQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformBuilderBindingKeys.detail(params.id), + queryFn: () => + getClient() + .platformBuilderBinding.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST + * + * @example + * ```ts + * const data = await fetchPlatformBuilderBindingQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchPlatformBuilderBindingQuery< + S extends PlatformBuilderBindingSelect, +>(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformBuilderBindingSelect>; +}): Promise<{ + platformBuilderBinding: InferSelectResult | null; +}>; +export async function fetchPlatformBuilderBindingQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .platformBuilderBinding.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST + * + * @example + * ```ts + * await prefetchPlatformBuilderBindingQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchPlatformBuilderBindingQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformBuilderBindingSelect>; + } +): Promise; +export async function prefetchPlatformBuilderBindingQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformBuilderBindingKeys.detail(params.id), + queryFn: () => + getClient() + .platformBuilderBinding.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/usePlatformBuilderBindingsQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/usePlatformBuilderBindingsQuery.ts new file mode 100644 index 0000000000..9071bbe899 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/usePlatformBuilderBindingsQuery.ts @@ -0,0 +1,180 @@ +/** + * Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST + * @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 { platformBuilderBindingKeys } from '../query-keys'; +import type { + PlatformBuilderBindingSelect, + PlatformBuilderBindingWithRelations, + PlatformBuilderBindingFilter, + PlatformBuilderBindingOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + PlatformBuilderBindingSelect, + PlatformBuilderBindingWithRelations, + PlatformBuilderBindingFilter, + PlatformBuilderBindingOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformBuilderBindingsQueryKey = platformBuilderBindingKeys.list; +/** + * Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformBuilderBindingsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function usePlatformBuilderBindingsQuery< + S extends PlatformBuilderBindingSelect, + TData = { + platformBuilderBindings: ConnectionResult< + InferSelectResult + >; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformBuilderBindingSelect>; + } & Omit< + UseQueryOptions< + { + platformBuilderBindings: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformBuilderBindingsQuery( + params: { + selection: ListSelectionConfig< + PlatformBuilderBindingSelect, + PlatformBuilderBindingFilter, + PlatformBuilderBindingOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + PlatformBuilderBindingSelect, + PlatformBuilderBindingFilter, + PlatformBuilderBindingOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformBuilderBindingKeys.list(args), + queryFn: () => getClient().platformBuilderBinding.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST + * + * @example + * ```ts + * const data = await fetchPlatformBuilderBindingsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchPlatformBuilderBindingsQuery< + S extends PlatformBuilderBindingSelect, +>(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformBuilderBindingSelect>; +}): Promise<{ + platformBuilderBindings: ConnectionResult< + InferSelectResult + >; +}>; +export async function fetchPlatformBuilderBindingsQuery(params: { + selection: ListSelectionConfig< + PlatformBuilderBindingSelect, + PlatformBuilderBindingFilter, + PlatformBuilderBindingOrderBy + >; +}) { + const args = buildListSelectionArgs< + PlatformBuilderBindingSelect, + PlatformBuilderBindingFilter, + PlatformBuilderBindingOrderBy + >(params.selection); + return getClient().platformBuilderBinding.findMany(args).unwrap(); +} +/** + * Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST + * + * @example + * ```ts + * await prefetchPlatformBuilderBindingsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchPlatformBuilderBindingsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformBuilderBindingSelect>; + } +): Promise; +export async function prefetchPlatformBuilderBindingsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + PlatformBuilderBindingSelect, + PlatformBuilderBindingFilter, + PlatformBuilderBindingOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + PlatformBuilderBindingSelect, + PlatformBuilderBindingFilter, + PlatformBuilderBindingOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformBuilderBindingKeys.list(args), + queryFn: () => getClient().platformBuilderBinding.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/usePlatformBuildsQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/usePlatformBuildsQuery.ts new file mode 100644 index 0000000000..68b33f9b70 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/usePlatformBuildsQuery.ts @@ -0,0 +1,151 @@ +/** + * One run of a repository workflow: its commit, its job, and what it produced + * @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 { platformBuildKeys } from '../query-keys'; +import type { + PlatformBuildSelect, + PlatformBuildWithRelations, + PlatformBuildFilter, + PlatformBuildOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + PlatformBuildSelect, + PlatformBuildWithRelations, + PlatformBuildFilter, + PlatformBuildOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformBuildsQueryKey = platformBuildKeys.list; +/** + * One run of a repository workflow: its commit, its job, and what it produced + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformBuildsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function usePlatformBuildsQuery< + S extends PlatformBuildSelect, + TData = { + platformBuilds: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, PlatformBuildSelect>; + } & Omit< + UseQueryOptions< + { + platformBuilds: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformBuildsQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + PlatformBuildSelect, + PlatformBuildFilter, + PlatformBuildOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformBuildKeys.list(args), + queryFn: () => getClient().platformBuild.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * One run of a repository workflow: its commit, its job, and what it produced + * + * @example + * ```ts + * const data = await fetchPlatformBuildsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchPlatformBuildsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, PlatformBuildSelect>; +}): Promise<{ + platformBuilds: ConnectionResult>; +}>; +export async function fetchPlatformBuildsQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs< + PlatformBuildSelect, + PlatformBuildFilter, + PlatformBuildOrderBy + >(params.selection); + return getClient().platformBuild.findMany(args).unwrap(); +} +/** + * One run of a repository workflow: its commit, its job, and what it produced + * + * @example + * ```ts + * await prefetchPlatformBuildsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchPlatformBuildsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, PlatformBuildSelect>; + } +): Promise; +export async function prefetchPlatformBuildsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs< + PlatformBuildSelect, + PlatformBuildFilter, + PlatformBuildOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformBuildKeys.list(args), + queryFn: () => getClient().platformBuild.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/usePlatformImageGrantQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/usePlatformImageGrantQuery.ts new file mode 100644 index 0000000000..6f188a1fea --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/usePlatformImageGrantQuery.ts @@ -0,0 +1,144 @@ +/** + * Grants that make a catalog image usable by one scope + * @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 { platformImageGrantKeys } from '../query-keys'; +import type { + PlatformImageGrantSelect, + PlatformImageGrantWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformImageGrantSelect, + PlatformImageGrantWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformImageGrantQueryKey = platformImageGrantKeys.detail; +/** + * Grants that make a catalog image usable by one scope + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformImageGrantQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function usePlatformImageGrantQuery< + S extends PlatformImageGrantSelect, + TData = { + platformImageGrant: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformImageGrantSelect>; + } & Omit< + UseQueryOptions< + { + platformImageGrant: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformImageGrantQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformImageGrantKeys.detail(params.id), + queryFn: () => + getClient() + .platformImageGrant.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Grants that make a catalog image usable by one scope + * + * @example + * ```ts + * const data = await fetchPlatformImageGrantQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchPlatformImageGrantQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformImageGrantSelect>; +}): Promise<{ + platformImageGrant: InferSelectResult | null; +}>; +export async function fetchPlatformImageGrantQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .platformImageGrant.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Grants that make a catalog image usable by one scope + * + * @example + * ```ts + * await prefetchPlatformImageGrantQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchPlatformImageGrantQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformImageGrantSelect>; + } +): Promise; +export async function prefetchPlatformImageGrantQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformImageGrantKeys.detail(params.id), + queryFn: () => + getClient() + .platformImageGrant.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/usePlatformImageGrantsQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/usePlatformImageGrantsQuery.ts new file mode 100644 index 0000000000..72b4d52b97 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/usePlatformImageGrantsQuery.ts @@ -0,0 +1,171 @@ +/** + * Grants that make a catalog image usable by one scope + * @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 { platformImageGrantKeys } from '../query-keys'; +import type { + PlatformImageGrantSelect, + PlatformImageGrantWithRelations, + PlatformImageGrantFilter, + PlatformImageGrantOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + PlatformImageGrantSelect, + PlatformImageGrantWithRelations, + PlatformImageGrantFilter, + PlatformImageGrantOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformImageGrantsQueryKey = platformImageGrantKeys.list; +/** + * Grants that make a catalog image usable by one scope + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformImageGrantsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function usePlatformImageGrantsQuery< + S extends PlatformImageGrantSelect, + TData = { + platformImageGrants: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformImageGrantSelect>; + } & Omit< + UseQueryOptions< + { + platformImageGrants: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformImageGrantsQuery( + params: { + selection: ListSelectionConfig< + PlatformImageGrantSelect, + PlatformImageGrantFilter, + PlatformImageGrantOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + PlatformImageGrantSelect, + PlatformImageGrantFilter, + PlatformImageGrantOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformImageGrantKeys.list(args), + queryFn: () => getClient().platformImageGrant.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Grants that make a catalog image usable by one scope + * + * @example + * ```ts + * const data = await fetchPlatformImageGrantsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchPlatformImageGrantsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, PlatformImageGrantSelect>; +}): Promise<{ + platformImageGrants: ConnectionResult>; +}>; +export async function fetchPlatformImageGrantsQuery(params: { + selection: ListSelectionConfig< + PlatformImageGrantSelect, + PlatformImageGrantFilter, + PlatformImageGrantOrderBy + >; +}) { + const args = buildListSelectionArgs< + PlatformImageGrantSelect, + PlatformImageGrantFilter, + PlatformImageGrantOrderBy + >(params.selection); + return getClient().platformImageGrant.findMany(args).unwrap(); +} +/** + * Grants that make a catalog image usable by one scope + * + * @example + * ```ts + * await prefetchPlatformImageGrantsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchPlatformImageGrantsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformImageGrantSelect>; + } +): Promise; +export async function prefetchPlatformImageGrantsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + PlatformImageGrantSelect, + PlatformImageGrantFilter, + PlatformImageGrantOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + PlatformImageGrantSelect, + PlatformImageGrantFilter, + PlatformImageGrantOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformImageGrantKeys.list(args), + queryFn: () => getClient().platformImageGrant.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/usePlatformImageQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/usePlatformImageQuery.ts new file mode 100644 index 0000000000..cd97c9e36f --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/usePlatformImageQuery.ts @@ -0,0 +1,138 @@ +/** + * Container image catalog: images available to run as functions, resources, and builds + * @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 { platformImageKeys } from '../query-keys'; +import type { PlatformImageSelect, PlatformImageWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { PlatformImageSelect, PlatformImageWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformImageQueryKey = platformImageKeys.detail; +/** + * Container image catalog: images available to run as functions, resources, and builds + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformImageQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function usePlatformImageQuery< + S extends PlatformImageSelect, + TData = { + platformImage: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformImageSelect>; + } & Omit< + UseQueryOptions< + { + platformImage: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformImageQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformImageKeys.detail(params.id), + queryFn: () => + getClient() + .platformImage.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Container image catalog: images available to run as functions, resources, and builds + * + * @example + * ```ts + * const data = await fetchPlatformImageQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchPlatformImageQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformImageSelect>; +}): Promise<{ + platformImage: InferSelectResult | null; +}>; +export async function fetchPlatformImageQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .platformImage.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Container image catalog: images available to run as functions, resources, and builds + * + * @example + * ```ts + * await prefetchPlatformImageQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchPlatformImageQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformImageSelect>; + } +): Promise; +export async function prefetchPlatformImageQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformImageKeys.detail(params.id), + queryFn: () => + getClient() + .platformImage.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/usePlatformImagesQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/usePlatformImagesQuery.ts new file mode 100644 index 0000000000..8ecd351d61 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/usePlatformImagesQuery.ts @@ -0,0 +1,151 @@ +/** + * Container image catalog: images available to run as functions, resources, and builds + * @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 { platformImageKeys } from '../query-keys'; +import type { + PlatformImageSelect, + PlatformImageWithRelations, + PlatformImageFilter, + PlatformImageOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + PlatformImageSelect, + PlatformImageWithRelations, + PlatformImageFilter, + PlatformImageOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformImagesQueryKey = platformImageKeys.list; +/** + * Container image catalog: images available to run as functions, resources, and builds + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformImagesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function usePlatformImagesQuery< + S extends PlatformImageSelect, + TData = { + platformImages: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, PlatformImageSelect>; + } & Omit< + UseQueryOptions< + { + platformImages: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformImagesQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + PlatformImageSelect, + PlatformImageFilter, + PlatformImageOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformImageKeys.list(args), + queryFn: () => getClient().platformImage.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Container image catalog: images available to run as functions, resources, and builds + * + * @example + * ```ts + * const data = await fetchPlatformImagesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchPlatformImagesQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, PlatformImageSelect>; +}): Promise<{ + platformImages: ConnectionResult>; +}>; +export async function fetchPlatformImagesQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs< + PlatformImageSelect, + PlatformImageFilter, + PlatformImageOrderBy + >(params.selection); + return getClient().platformImage.findMany(args).unwrap(); +} +/** + * Container image catalog: images available to run as functions, resources, and builds + * + * @example + * ```ts + * await prefetchPlatformImagesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchPlatformImagesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, PlatformImageSelect>; + } +): Promise; +export async function prefetchPlatformImagesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs< + PlatformImageSelect, + PlatformImageFilter, + PlatformImageOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformImageKeys.list(args), + queryFn: () => getClient().platformImage.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/usePlatformK8sResourceKindQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/usePlatformK8sResourceKindQuery.ts new file mode 100644 index 0000000000..9dff0c3b55 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/usePlatformK8sResourceKindQuery.ts @@ -0,0 +1,146 @@ +/** + * Kubernetes kind allow-list for DB-driven resources — merkle-versioned head over the infra store; the admission gate fails closed on kinds without an active row + * @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 { platformK8sResourceKindKeys } from '../query-keys'; +import type { + PlatformK8sResourceKindSelect, + PlatformK8sResourceKindWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformK8sResourceKindSelect, + PlatformK8sResourceKindWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformK8sResourceKindQueryKey = platformK8sResourceKindKeys.detail; +/** + * Kubernetes kind allow-list for DB-driven resources — merkle-versioned head over the infra store; the admission gate fails closed on kinds without an active row + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformK8sResourceKindQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function usePlatformK8sResourceKindQuery< + S extends PlatformK8sResourceKindSelect, + TData = { + platformK8sResourceKind: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformK8sResourceKindSelect>; + } & Omit< + UseQueryOptions< + { + platformK8sResourceKind: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformK8sResourceKindQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformK8sResourceKindKeys.detail(params.id), + queryFn: () => + getClient() + .platformK8sResourceKind.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Kubernetes kind allow-list for DB-driven resources — merkle-versioned head over the infra store; the admission gate fails closed on kinds without an active row + * + * @example + * ```ts + * const data = await fetchPlatformK8sResourceKindQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchPlatformK8sResourceKindQuery< + S extends PlatformK8sResourceKindSelect, +>(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformK8sResourceKindSelect>; +}): Promise<{ + platformK8sResourceKind: InferSelectResult | null; +}>; +export async function fetchPlatformK8sResourceKindQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .platformK8sResourceKind.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Kubernetes kind allow-list for DB-driven resources — merkle-versioned head over the infra store; the admission gate fails closed on kinds without an active row + * + * @example + * ```ts + * await prefetchPlatformK8sResourceKindQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchPlatformK8sResourceKindQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformK8sResourceKindSelect>; + } +): Promise; +export async function prefetchPlatformK8sResourceKindQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformK8sResourceKindKeys.detail(params.id), + queryFn: () => + getClient() + .platformK8sResourceKind.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/usePlatformK8sResourceKindsQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/usePlatformK8sResourceKindsQuery.ts new file mode 100644 index 0000000000..9cd1b1d864 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/usePlatformK8sResourceKindsQuery.ts @@ -0,0 +1,182 @@ +/** + * Kubernetes kind allow-list for DB-driven resources — merkle-versioned head over the infra store; the admission gate fails closed on kinds without an active row + * @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 { platformK8sResourceKindKeys } from '../query-keys'; +import type { + PlatformK8sResourceKindSelect, + PlatformK8sResourceKindWithRelations, + PlatformK8sResourceKindFilter, + PlatformK8sResourceKindOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + PlatformK8sResourceKindSelect, + PlatformK8sResourceKindWithRelations, + PlatformK8sResourceKindFilter, + PlatformK8sResourceKindOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformK8sResourceKindsQueryKey = platformK8sResourceKindKeys.list; +/** + * Kubernetes kind allow-list for DB-driven resources — merkle-versioned head over the infra store; the admission gate fails closed on kinds without an active row + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformK8sResourceKindsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function usePlatformK8sResourceKindsQuery< + S extends PlatformK8sResourceKindSelect, + TData = { + platformK8sResourceKinds: ConnectionResult< + InferSelectResult + >; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformK8sResourceKindSelect>; + } & Omit< + UseQueryOptions< + { + platformK8sResourceKinds: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformK8sResourceKindsQuery( + params: { + selection: ListSelectionConfig< + PlatformK8sResourceKindSelect, + PlatformK8sResourceKindFilter, + PlatformK8sResourceKindOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + PlatformK8sResourceKindSelect, + PlatformK8sResourceKindFilter, + PlatformK8sResourceKindOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformK8sResourceKindKeys.list(args), + queryFn: () => getClient().platformK8sResourceKind.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Kubernetes kind allow-list for DB-driven resources — merkle-versioned head over the infra store; the admission gate fails closed on kinds without an active row + * + * @example + * ```ts + * const data = await fetchPlatformK8sResourceKindsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchPlatformK8sResourceKindsQuery< + S extends PlatformK8sResourceKindSelect, +>(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformK8sResourceKindSelect>; +}): Promise<{ + platformK8sResourceKinds: ConnectionResult< + InferSelectResult + >; +}>; +export async function fetchPlatformK8sResourceKindsQuery(params: { + selection: ListSelectionConfig< + PlatformK8sResourceKindSelect, + PlatformK8sResourceKindFilter, + PlatformK8sResourceKindOrderBy + >; +}) { + const args = buildListSelectionArgs< + PlatformK8sResourceKindSelect, + PlatformK8sResourceKindFilter, + PlatformK8sResourceKindOrderBy + >(params.selection); + return getClient().platformK8sResourceKind.findMany(args).unwrap(); +} +/** + * Kubernetes kind allow-list for DB-driven resources — merkle-versioned head over the infra store; the admission gate fails closed on kinds without an active row + * + * @example + * ```ts + * await prefetchPlatformK8sResourceKindsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchPlatformK8sResourceKindsQuery< + S extends PlatformK8sResourceKindSelect, +>( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformK8sResourceKindSelect>; + } +): Promise; +export async function prefetchPlatformK8sResourceKindsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + PlatformK8sResourceKindSelect, + PlatformK8sResourceKindFilter, + PlatformK8sResourceKindOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + PlatformK8sResourceKindSelect, + PlatformK8sResourceKindFilter, + PlatformK8sResourceKindOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformK8sResourceKindKeys.list(args), + queryFn: () => getClient().platformK8sResourceKind.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/usePlatformK8sSpecRuleQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/usePlatformK8sSpecRuleQuery.ts new file mode 100644 index 0000000000..bd7722daab --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/usePlatformK8sSpecRuleQuery.ts @@ -0,0 +1,144 @@ +/** + * Spec rulebook for DB-driven resources — merkle-versioned head over the infra store; enforced by the generated admission gate via infra_utils.check_resource_admission + * @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 { platformK8sSpecRuleKeys } from '../query-keys'; +import type { + PlatformK8sSpecRuleSelect, + PlatformK8sSpecRuleWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformK8sSpecRuleSelect, + PlatformK8sSpecRuleWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformK8sSpecRuleQueryKey = platformK8sSpecRuleKeys.detail; +/** + * Spec rulebook for DB-driven resources — merkle-versioned head over the infra store; enforced by the generated admission gate via infra_utils.check_resource_admission + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformK8sSpecRuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function usePlatformK8sSpecRuleQuery< + S extends PlatformK8sSpecRuleSelect, + TData = { + platformK8sSpecRule: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformK8sSpecRuleSelect>; + } & Omit< + UseQueryOptions< + { + platformK8sSpecRule: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformK8sSpecRuleQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformK8sSpecRuleKeys.detail(params.id), + queryFn: () => + getClient() + .platformK8sSpecRule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Spec rulebook for DB-driven resources — merkle-versioned head over the infra store; enforced by the generated admission gate via infra_utils.check_resource_admission + * + * @example + * ```ts + * const data = await fetchPlatformK8sSpecRuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchPlatformK8sSpecRuleQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformK8sSpecRuleSelect>; +}): Promise<{ + platformK8sSpecRule: InferSelectResult | null; +}>; +export async function fetchPlatformK8sSpecRuleQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .platformK8sSpecRule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Spec rulebook for DB-driven resources — merkle-versioned head over the infra store; enforced by the generated admission gate via infra_utils.check_resource_admission + * + * @example + * ```ts + * await prefetchPlatformK8sSpecRuleQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchPlatformK8sSpecRuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformK8sSpecRuleSelect>; + } +): Promise; +export async function prefetchPlatformK8sSpecRuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformK8sSpecRuleKeys.detail(params.id), + queryFn: () => + getClient() + .platformK8sSpecRule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/usePlatformK8sSpecRulesQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/usePlatformK8sSpecRulesQuery.ts new file mode 100644 index 0000000000..19472ccbca --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/usePlatformK8sSpecRulesQuery.ts @@ -0,0 +1,174 @@ +/** + * Spec rulebook for DB-driven resources — merkle-versioned head over the infra store; enforced by the generated admission gate via infra_utils.check_resource_admission + * @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 { platformK8sSpecRuleKeys } from '../query-keys'; +import type { + PlatformK8sSpecRuleSelect, + PlatformK8sSpecRuleWithRelations, + PlatformK8sSpecRuleFilter, + PlatformK8sSpecRuleOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + PlatformK8sSpecRuleSelect, + PlatformK8sSpecRuleWithRelations, + PlatformK8sSpecRuleFilter, + PlatformK8sSpecRuleOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformK8sSpecRulesQueryKey = platformK8sSpecRuleKeys.list; +/** + * Spec rulebook for DB-driven resources — merkle-versioned head over the infra store; enforced by the generated admission gate via infra_utils.check_resource_admission + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformK8sSpecRulesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function usePlatformK8sSpecRulesQuery< + S extends PlatformK8sSpecRuleSelect, + TData = { + platformK8sSpecRules: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformK8sSpecRuleSelect>; + } & Omit< + UseQueryOptions< + { + platformK8sSpecRules: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformK8sSpecRulesQuery( + params: { + selection: ListSelectionConfig< + PlatformK8sSpecRuleSelect, + PlatformK8sSpecRuleFilter, + PlatformK8sSpecRuleOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + PlatformK8sSpecRuleSelect, + PlatformK8sSpecRuleFilter, + PlatformK8sSpecRuleOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformK8sSpecRuleKeys.list(args), + queryFn: () => getClient().platformK8sSpecRule.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Spec rulebook for DB-driven resources — merkle-versioned head over the infra store; enforced by the generated admission gate via infra_utils.check_resource_admission + * + * @example + * ```ts + * const data = await fetchPlatformK8sSpecRulesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchPlatformK8sSpecRulesQuery(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformK8sSpecRuleSelect>; +}): Promise<{ + platformK8sSpecRules: ConnectionResult>; +}>; +export async function fetchPlatformK8sSpecRulesQuery(params: { + selection: ListSelectionConfig< + PlatformK8sSpecRuleSelect, + PlatformK8sSpecRuleFilter, + PlatformK8sSpecRuleOrderBy + >; +}) { + const args = buildListSelectionArgs< + PlatformK8sSpecRuleSelect, + PlatformK8sSpecRuleFilter, + PlatformK8sSpecRuleOrderBy + >(params.selection); + return getClient().platformK8sSpecRule.findMany(args).unwrap(); +} +/** + * Spec rulebook for DB-driven resources — merkle-versioned head over the infra store; enforced by the generated admission gate via infra_utils.check_resource_admission + * + * @example + * ```ts + * await prefetchPlatformK8sSpecRulesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchPlatformK8sSpecRulesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformK8sSpecRuleSelect>; + } +): Promise; +export async function prefetchPlatformK8sSpecRulesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + PlatformK8sSpecRuleSelect, + PlatformK8sSpecRuleFilter, + PlatformK8sSpecRuleOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + PlatformK8sSpecRuleSelect, + PlatformK8sSpecRuleFilter, + PlatformK8sSpecRuleOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformK8sSpecRuleKeys.list(args), + queryFn: () => getClient().platformK8sSpecRule.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/usePlatformProposalCommentQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/usePlatformProposalCommentQuery.ts new file mode 100644 index 0000000000..da25c24eb3 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/usePlatformProposalCommentQuery.ts @@ -0,0 +1,146 @@ +/** + * Comments on a local proposal, optionally anchored to a line + * @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 { platformProposalCommentKeys } from '../query-keys'; +import type { + PlatformProposalCommentSelect, + PlatformProposalCommentWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformProposalCommentSelect, + PlatformProposalCommentWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformProposalCommentQueryKey = platformProposalCommentKeys.detail; +/** + * Comments on a local proposal, optionally anchored to a line + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformProposalCommentQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function usePlatformProposalCommentQuery< + S extends PlatformProposalCommentSelect, + TData = { + platformProposalComment: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformProposalCommentSelect>; + } & Omit< + UseQueryOptions< + { + platformProposalComment: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformProposalCommentQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformProposalCommentKeys.detail(params.id), + queryFn: () => + getClient() + .platformProposalComment.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Comments on a local proposal, optionally anchored to a line + * + * @example + * ```ts + * const data = await fetchPlatformProposalCommentQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchPlatformProposalCommentQuery< + S extends PlatformProposalCommentSelect, +>(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformProposalCommentSelect>; +}): Promise<{ + platformProposalComment: InferSelectResult | null; +}>; +export async function fetchPlatformProposalCommentQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .platformProposalComment.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Comments on a local proposal, optionally anchored to a line + * + * @example + * ```ts + * await prefetchPlatformProposalCommentQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchPlatformProposalCommentQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformProposalCommentSelect>; + } +): Promise; +export async function prefetchPlatformProposalCommentQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformProposalCommentKeys.detail(params.id), + queryFn: () => + getClient() + .platformProposalComment.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/usePlatformProposalCommentsQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/usePlatformProposalCommentsQuery.ts new file mode 100644 index 0000000000..e7f25947e2 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/usePlatformProposalCommentsQuery.ts @@ -0,0 +1,182 @@ +/** + * Comments on a local proposal, optionally anchored to a line + * @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 { platformProposalCommentKeys } from '../query-keys'; +import type { + PlatformProposalCommentSelect, + PlatformProposalCommentWithRelations, + PlatformProposalCommentFilter, + PlatformProposalCommentOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + PlatformProposalCommentSelect, + PlatformProposalCommentWithRelations, + PlatformProposalCommentFilter, + PlatformProposalCommentOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformProposalCommentsQueryKey = platformProposalCommentKeys.list; +/** + * Comments on a local proposal, optionally anchored to a line + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformProposalCommentsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function usePlatformProposalCommentsQuery< + S extends PlatformProposalCommentSelect, + TData = { + platformProposalComments: ConnectionResult< + InferSelectResult + >; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformProposalCommentSelect>; + } & Omit< + UseQueryOptions< + { + platformProposalComments: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformProposalCommentsQuery( + params: { + selection: ListSelectionConfig< + PlatformProposalCommentSelect, + PlatformProposalCommentFilter, + PlatformProposalCommentOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + PlatformProposalCommentSelect, + PlatformProposalCommentFilter, + PlatformProposalCommentOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformProposalCommentKeys.list(args), + queryFn: () => getClient().platformProposalComment.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Comments on a local proposal, optionally anchored to a line + * + * @example + * ```ts + * const data = await fetchPlatformProposalCommentsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchPlatformProposalCommentsQuery< + S extends PlatformProposalCommentSelect, +>(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformProposalCommentSelect>; +}): Promise<{ + platformProposalComments: ConnectionResult< + InferSelectResult + >; +}>; +export async function fetchPlatformProposalCommentsQuery(params: { + selection: ListSelectionConfig< + PlatformProposalCommentSelect, + PlatformProposalCommentFilter, + PlatformProposalCommentOrderBy + >; +}) { + const args = buildListSelectionArgs< + PlatformProposalCommentSelect, + PlatformProposalCommentFilter, + PlatformProposalCommentOrderBy + >(params.selection); + return getClient().platformProposalComment.findMany(args).unwrap(); +} +/** + * Comments on a local proposal, optionally anchored to a line + * + * @example + * ```ts + * await prefetchPlatformProposalCommentsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchPlatformProposalCommentsQuery< + S extends PlatformProposalCommentSelect, +>( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformProposalCommentSelect>; + } +): Promise; +export async function prefetchPlatformProposalCommentsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + PlatformProposalCommentSelect, + PlatformProposalCommentFilter, + PlatformProposalCommentOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + PlatformProposalCommentSelect, + PlatformProposalCommentFilter, + PlatformProposalCommentOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformProposalCommentKeys.list(args), + queryFn: () => getClient().platformProposalComment.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/usePlatformProposalFileViewQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/usePlatformProposalFileViewQuery.ts new file mode 100644 index 0000000000..942f7285bf --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/usePlatformProposalFileViewQuery.ts @@ -0,0 +1,151 @@ +/** + * Files a reviewer has read, pinned to the blob they read + * @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 { platformProposalFileViewKeys } from '../query-keys'; +import type { + PlatformProposalFileViewSelect, + PlatformProposalFileViewWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformProposalFileViewSelect, + PlatformProposalFileViewWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformProposalFileViewQueryKey = platformProposalFileViewKeys.detail; +/** + * Files a reviewer has read, pinned to the blob they read + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformProposalFileViewQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function usePlatformProposalFileViewQuery< + S extends PlatformProposalFileViewSelect, + TData = { + platformProposalFileView: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformProposalFileViewSelect>; + } & Omit< + UseQueryOptions< + { + platformProposalFileView: InferSelectResult< + PlatformProposalFileViewWithRelations, + S + > | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformProposalFileViewQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformProposalFileViewKeys.detail(params.id), + queryFn: () => + getClient() + .platformProposalFileView.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Files a reviewer has read, pinned to the blob they read + * + * @example + * ```ts + * const data = await fetchPlatformProposalFileViewQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchPlatformProposalFileViewQuery< + S extends PlatformProposalFileViewSelect, +>(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformProposalFileViewSelect>; +}): Promise<{ + platformProposalFileView: InferSelectResult | null; +}>; +export async function fetchPlatformProposalFileViewQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .platformProposalFileView.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Files a reviewer has read, pinned to the blob they read + * + * @example + * ```ts + * await prefetchPlatformProposalFileViewQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchPlatformProposalFileViewQuery< + S extends PlatformProposalFileViewSelect, +>( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformProposalFileViewSelect>; + } +): Promise; +export async function prefetchPlatformProposalFileViewQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformProposalFileViewKeys.detail(params.id), + queryFn: () => + getClient() + .platformProposalFileView.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/usePlatformProposalFileViewsQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/usePlatformProposalFileViewsQuery.ts new file mode 100644 index 0000000000..75970588af --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/usePlatformProposalFileViewsQuery.ts @@ -0,0 +1,182 @@ +/** + * Files a reviewer has read, pinned to the blob they read + * @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 { platformProposalFileViewKeys } from '../query-keys'; +import type { + PlatformProposalFileViewSelect, + PlatformProposalFileViewWithRelations, + PlatformProposalFileViewFilter, + PlatformProposalFileViewOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + PlatformProposalFileViewSelect, + PlatformProposalFileViewWithRelations, + PlatformProposalFileViewFilter, + PlatformProposalFileViewOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformProposalFileViewsQueryKey = platformProposalFileViewKeys.list; +/** + * Files a reviewer has read, pinned to the blob they read + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformProposalFileViewsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function usePlatformProposalFileViewsQuery< + S extends PlatformProposalFileViewSelect, + TData = { + platformProposalFileViews: ConnectionResult< + InferSelectResult + >; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformProposalFileViewSelect>; + } & Omit< + UseQueryOptions< + { + platformProposalFileViews: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformProposalFileViewsQuery( + params: { + selection: ListSelectionConfig< + PlatformProposalFileViewSelect, + PlatformProposalFileViewFilter, + PlatformProposalFileViewOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + PlatformProposalFileViewSelect, + PlatformProposalFileViewFilter, + PlatformProposalFileViewOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformProposalFileViewKeys.list(args), + queryFn: () => getClient().platformProposalFileView.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Files a reviewer has read, pinned to the blob they read + * + * @example + * ```ts + * const data = await fetchPlatformProposalFileViewsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchPlatformProposalFileViewsQuery< + S extends PlatformProposalFileViewSelect, +>(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformProposalFileViewSelect>; +}): Promise<{ + platformProposalFileViews: ConnectionResult< + InferSelectResult + >; +}>; +export async function fetchPlatformProposalFileViewsQuery(params: { + selection: ListSelectionConfig< + PlatformProposalFileViewSelect, + PlatformProposalFileViewFilter, + PlatformProposalFileViewOrderBy + >; +}) { + const args = buildListSelectionArgs< + PlatformProposalFileViewSelect, + PlatformProposalFileViewFilter, + PlatformProposalFileViewOrderBy + >(params.selection); + return getClient().platformProposalFileView.findMany(args).unwrap(); +} +/** + * Files a reviewer has read, pinned to the blob they read + * + * @example + * ```ts + * await prefetchPlatformProposalFileViewsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchPlatformProposalFileViewsQuery< + S extends PlatformProposalFileViewSelect, +>( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformProposalFileViewSelect>; + } +): Promise; +export async function prefetchPlatformProposalFileViewsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + PlatformProposalFileViewSelect, + PlatformProposalFileViewFilter, + PlatformProposalFileViewOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + PlatformProposalFileViewSelect, + PlatformProposalFileViewFilter, + PlatformProposalFileViewOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformProposalFileViewKeys.list(args), + queryFn: () => getClient().platformProposalFileView.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/usePlatformProposalQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/usePlatformProposalQuery.ts new file mode 100644 index 0000000000..b41a9cb884 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/usePlatformProposalQuery.ts @@ -0,0 +1,138 @@ +/** + * Proposals against a repository: issues, changes to merge, discussions and decisions + * @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 { platformProposalKeys } from '../query-keys'; +import type { PlatformProposalSelect, PlatformProposalWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { PlatformProposalSelect, PlatformProposalWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformProposalQueryKey = platformProposalKeys.detail; +/** + * Proposals against a repository: issues, changes to merge, discussions and decisions + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformProposalQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function usePlatformProposalQuery< + S extends PlatformProposalSelect, + TData = { + platformProposal: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformProposalSelect>; + } & Omit< + UseQueryOptions< + { + platformProposal: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformProposalQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformProposalKeys.detail(params.id), + queryFn: () => + getClient() + .platformProposal.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Proposals against a repository: issues, changes to merge, discussions and decisions + * + * @example + * ```ts + * const data = await fetchPlatformProposalQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchPlatformProposalQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformProposalSelect>; +}): Promise<{ + platformProposal: InferSelectResult | null; +}>; +export async function fetchPlatformProposalQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .platformProposal.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Proposals against a repository: issues, changes to merge, discussions and decisions + * + * @example + * ```ts + * await prefetchPlatformProposalQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchPlatformProposalQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformProposalSelect>; + } +): Promise; +export async function prefetchPlatformProposalQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformProposalKeys.detail(params.id), + queryFn: () => + getClient() + .platformProposal.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/usePlatformProposalReactionQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/usePlatformProposalReactionQuery.ts new file mode 100644 index 0000000000..d916fc8164 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/usePlatformProposalReactionQuery.ts @@ -0,0 +1,151 @@ +/** + * Emoji reactions to a local proposal or one of its comments + * @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 { platformProposalReactionKeys } from '../query-keys'; +import type { + PlatformProposalReactionSelect, + PlatformProposalReactionWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformProposalReactionSelect, + PlatformProposalReactionWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformProposalReactionQueryKey = platformProposalReactionKeys.detail; +/** + * Emoji reactions to a local proposal or one of its comments + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformProposalReactionQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function usePlatformProposalReactionQuery< + S extends PlatformProposalReactionSelect, + TData = { + platformProposalReaction: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformProposalReactionSelect>; + } & Omit< + UseQueryOptions< + { + platformProposalReaction: InferSelectResult< + PlatformProposalReactionWithRelations, + S + > | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformProposalReactionQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformProposalReactionKeys.detail(params.id), + queryFn: () => + getClient() + .platformProposalReaction.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Emoji reactions to a local proposal or one of its comments + * + * @example + * ```ts + * const data = await fetchPlatformProposalReactionQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchPlatformProposalReactionQuery< + S extends PlatformProposalReactionSelect, +>(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformProposalReactionSelect>; +}): Promise<{ + platformProposalReaction: InferSelectResult | null; +}>; +export async function fetchPlatformProposalReactionQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .platformProposalReaction.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Emoji reactions to a local proposal or one of its comments + * + * @example + * ```ts + * await prefetchPlatformProposalReactionQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchPlatformProposalReactionQuery< + S extends PlatformProposalReactionSelect, +>( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformProposalReactionSelect>; + } +): Promise; +export async function prefetchPlatformProposalReactionQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformProposalReactionKeys.detail(params.id), + queryFn: () => + getClient() + .platformProposalReaction.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/usePlatformProposalReactionsQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/usePlatformProposalReactionsQuery.ts new file mode 100644 index 0000000000..d387230b9c --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/usePlatformProposalReactionsQuery.ts @@ -0,0 +1,182 @@ +/** + * Emoji reactions to a local proposal or one of its comments + * @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 { platformProposalReactionKeys } from '../query-keys'; +import type { + PlatformProposalReactionSelect, + PlatformProposalReactionWithRelations, + PlatformProposalReactionFilter, + PlatformProposalReactionOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + PlatformProposalReactionSelect, + PlatformProposalReactionWithRelations, + PlatformProposalReactionFilter, + PlatformProposalReactionOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformProposalReactionsQueryKey = platformProposalReactionKeys.list; +/** + * Emoji reactions to a local proposal or one of its comments + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformProposalReactionsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function usePlatformProposalReactionsQuery< + S extends PlatformProposalReactionSelect, + TData = { + platformProposalReactions: ConnectionResult< + InferSelectResult + >; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformProposalReactionSelect>; + } & Omit< + UseQueryOptions< + { + platformProposalReactions: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformProposalReactionsQuery( + params: { + selection: ListSelectionConfig< + PlatformProposalReactionSelect, + PlatformProposalReactionFilter, + PlatformProposalReactionOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + PlatformProposalReactionSelect, + PlatformProposalReactionFilter, + PlatformProposalReactionOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformProposalReactionKeys.list(args), + queryFn: () => getClient().platformProposalReaction.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Emoji reactions to a local proposal or one of its comments + * + * @example + * ```ts + * const data = await fetchPlatformProposalReactionsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchPlatformProposalReactionsQuery< + S extends PlatformProposalReactionSelect, +>(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformProposalReactionSelect>; +}): Promise<{ + platformProposalReactions: ConnectionResult< + InferSelectResult + >; +}>; +export async function fetchPlatformProposalReactionsQuery(params: { + selection: ListSelectionConfig< + PlatformProposalReactionSelect, + PlatformProposalReactionFilter, + PlatformProposalReactionOrderBy + >; +}) { + const args = buildListSelectionArgs< + PlatformProposalReactionSelect, + PlatformProposalReactionFilter, + PlatformProposalReactionOrderBy + >(params.selection); + return getClient().platformProposalReaction.findMany(args).unwrap(); +} +/** + * Emoji reactions to a local proposal or one of its comments + * + * @example + * ```ts + * await prefetchPlatformProposalReactionsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchPlatformProposalReactionsQuery< + S extends PlatformProposalReactionSelect, +>( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformProposalReactionSelect>; + } +): Promise; +export async function prefetchPlatformProposalReactionsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + PlatformProposalReactionSelect, + PlatformProposalReactionFilter, + PlatformProposalReactionOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + PlatformProposalReactionSelect, + PlatformProposalReactionFilter, + PlatformProposalReactionOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformProposalReactionKeys.list(args), + queryFn: () => getClient().platformProposalReaction.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/usePlatformProposalReviewQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/usePlatformProposalReviewQuery.ts new file mode 100644 index 0000000000..ad9c833fb8 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/usePlatformProposalReviewQuery.ts @@ -0,0 +1,146 @@ +/** + * Review verdicts on a proposal, each pinned to the commit reviewed + * @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 { platformProposalReviewKeys } from '../query-keys'; +import type { + PlatformProposalReviewSelect, + PlatformProposalReviewWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformProposalReviewSelect, + PlatformProposalReviewWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformProposalReviewQueryKey = platformProposalReviewKeys.detail; +/** + * Review verdicts on a proposal, each pinned to the commit reviewed + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformProposalReviewQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function usePlatformProposalReviewQuery< + S extends PlatformProposalReviewSelect, + TData = { + platformProposalReview: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformProposalReviewSelect>; + } & Omit< + UseQueryOptions< + { + platformProposalReview: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformProposalReviewQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformProposalReviewKeys.detail(params.id), + queryFn: () => + getClient() + .platformProposalReview.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Review verdicts on a proposal, each pinned to the commit reviewed + * + * @example + * ```ts + * const data = await fetchPlatformProposalReviewQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchPlatformProposalReviewQuery< + S extends PlatformProposalReviewSelect, +>(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformProposalReviewSelect>; +}): Promise<{ + platformProposalReview: InferSelectResult | null; +}>; +export async function fetchPlatformProposalReviewQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .platformProposalReview.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Review verdicts on a proposal, each pinned to the commit reviewed + * + * @example + * ```ts + * await prefetchPlatformProposalReviewQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchPlatformProposalReviewQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformProposalReviewSelect>; + } +): Promise; +export async function prefetchPlatformProposalReviewQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformProposalReviewKeys.detail(params.id), + queryFn: () => + getClient() + .platformProposalReview.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/usePlatformProposalReviewsQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/usePlatformProposalReviewsQuery.ts new file mode 100644 index 0000000000..8bb363da6c --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/usePlatformProposalReviewsQuery.ts @@ -0,0 +1,180 @@ +/** + * Review verdicts on a proposal, each pinned to the commit reviewed + * @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 { platformProposalReviewKeys } from '../query-keys'; +import type { + PlatformProposalReviewSelect, + PlatformProposalReviewWithRelations, + PlatformProposalReviewFilter, + PlatformProposalReviewOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + PlatformProposalReviewSelect, + PlatformProposalReviewWithRelations, + PlatformProposalReviewFilter, + PlatformProposalReviewOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformProposalReviewsQueryKey = platformProposalReviewKeys.list; +/** + * Review verdicts on a proposal, each pinned to the commit reviewed + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformProposalReviewsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function usePlatformProposalReviewsQuery< + S extends PlatformProposalReviewSelect, + TData = { + platformProposalReviews: ConnectionResult< + InferSelectResult + >; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformProposalReviewSelect>; + } & Omit< + UseQueryOptions< + { + platformProposalReviews: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformProposalReviewsQuery( + params: { + selection: ListSelectionConfig< + PlatformProposalReviewSelect, + PlatformProposalReviewFilter, + PlatformProposalReviewOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + PlatformProposalReviewSelect, + PlatformProposalReviewFilter, + PlatformProposalReviewOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformProposalReviewKeys.list(args), + queryFn: () => getClient().platformProposalReview.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Review verdicts on a proposal, each pinned to the commit reviewed + * + * @example + * ```ts + * const data = await fetchPlatformProposalReviewsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchPlatformProposalReviewsQuery< + S extends PlatformProposalReviewSelect, +>(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformProposalReviewSelect>; +}): Promise<{ + platformProposalReviews: ConnectionResult< + InferSelectResult + >; +}>; +export async function fetchPlatformProposalReviewsQuery(params: { + selection: ListSelectionConfig< + PlatformProposalReviewSelect, + PlatformProposalReviewFilter, + PlatformProposalReviewOrderBy + >; +}) { + const args = buildListSelectionArgs< + PlatformProposalReviewSelect, + PlatformProposalReviewFilter, + PlatformProposalReviewOrderBy + >(params.selection); + return getClient().platformProposalReview.findMany(args).unwrap(); +} +/** + * Review verdicts on a proposal, each pinned to the commit reviewed + * + * @example + * ```ts + * await prefetchPlatformProposalReviewsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchPlatformProposalReviewsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformProposalReviewSelect>; + } +): Promise; +export async function prefetchPlatformProposalReviewsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + PlatformProposalReviewSelect, + PlatformProposalReviewFilter, + PlatformProposalReviewOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + PlatformProposalReviewSelect, + PlatformProposalReviewFilter, + PlatformProposalReviewOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformProposalReviewKeys.list(args), + queryFn: () => getClient().platformProposalReview.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/usePlatformProposalsChunkQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/usePlatformProposalsChunkQuery.ts new file mode 100644 index 0000000000..6911a3bbb6 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/usePlatformProposalsChunkQuery.ts @@ -0,0 +1,146 @@ +/** + * Single item query hook for PlatformProposalsChunk + * @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 { platformProposalsChunkKeys } from '../query-keys'; +import type { + PlatformProposalsChunkSelect, + PlatformProposalsChunkWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformProposalsChunkSelect, + PlatformProposalsChunkWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformProposalsChunkQueryKey = platformProposalsChunkKeys.detail; +/** + * Query hook for fetching a single PlatformProposalsChunk + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformProposalsChunkQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function usePlatformProposalsChunkQuery< + S extends PlatformProposalsChunkSelect, + TData = { + platformProposalsChunk: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformProposalsChunkSelect>; + } & Omit< + UseQueryOptions< + { + platformProposalsChunk: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformProposalsChunkQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformProposalsChunkKeys.detail(params.id), + queryFn: () => + getClient() + .platformProposalsChunk.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single PlatformProposalsChunk without React hooks + * + * @example + * ```ts + * const data = await fetchPlatformProposalsChunkQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchPlatformProposalsChunkQuery< + S extends PlatformProposalsChunkSelect, +>(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformProposalsChunkSelect>; +}): Promise<{ + platformProposalsChunk: InferSelectResult | null; +}>; +export async function fetchPlatformProposalsChunkQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .platformProposalsChunk.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single PlatformProposalsChunk for SSR or cache warming + * + * @example + * ```ts + * await prefetchPlatformProposalsChunkQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchPlatformProposalsChunkQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformProposalsChunkSelect>; + } +): Promise; +export async function prefetchPlatformProposalsChunkQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformProposalsChunkKeys.detail(params.id), + queryFn: () => + getClient() + .platformProposalsChunk.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/usePlatformProposalsChunksQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/usePlatformProposalsChunksQuery.ts new file mode 100644 index 0000000000..03e794a896 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/usePlatformProposalsChunksQuery.ts @@ -0,0 +1,180 @@ +/** + * List query hook for PlatformProposalsChunk + * @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 { platformProposalsChunkKeys } from '../query-keys'; +import type { + PlatformProposalsChunkSelect, + PlatformProposalsChunkWithRelations, + PlatformProposalsChunkFilter, + PlatformProposalsChunkOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + PlatformProposalsChunkSelect, + PlatformProposalsChunkWithRelations, + PlatformProposalsChunkFilter, + PlatformProposalsChunkOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformProposalsChunksQueryKey = platformProposalsChunkKeys.list; +/** + * Query hook for fetching PlatformProposalsChunk list + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformProposalsChunksQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function usePlatformProposalsChunksQuery< + S extends PlatformProposalsChunkSelect, + TData = { + platformProposalsChunks: ConnectionResult< + InferSelectResult + >; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformProposalsChunkSelect>; + } & Omit< + UseQueryOptions< + { + platformProposalsChunks: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformProposalsChunksQuery( + params: { + selection: ListSelectionConfig< + PlatformProposalsChunkSelect, + PlatformProposalsChunkFilter, + PlatformProposalsChunkOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + PlatformProposalsChunkSelect, + PlatformProposalsChunkFilter, + PlatformProposalsChunkOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformProposalsChunkKeys.list(args), + queryFn: () => getClient().platformProposalsChunk.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch PlatformProposalsChunk list without React hooks + * + * @example + * ```ts + * const data = await fetchPlatformProposalsChunksQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchPlatformProposalsChunksQuery< + S extends PlatformProposalsChunkSelect, +>(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformProposalsChunkSelect>; +}): Promise<{ + platformProposalsChunks: ConnectionResult< + InferSelectResult + >; +}>; +export async function fetchPlatformProposalsChunksQuery(params: { + selection: ListSelectionConfig< + PlatformProposalsChunkSelect, + PlatformProposalsChunkFilter, + PlatformProposalsChunkOrderBy + >; +}) { + const args = buildListSelectionArgs< + PlatformProposalsChunkSelect, + PlatformProposalsChunkFilter, + PlatformProposalsChunkOrderBy + >(params.selection); + return getClient().platformProposalsChunk.findMany(args).unwrap(); +} +/** + * Prefetch PlatformProposalsChunk list for SSR or cache warming + * + * @example + * ```ts + * await prefetchPlatformProposalsChunksQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchPlatformProposalsChunksQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformProposalsChunkSelect>; + } +): Promise; +export async function prefetchPlatformProposalsChunksQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + PlatformProposalsChunkSelect, + PlatformProposalsChunkFilter, + PlatformProposalsChunkOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + PlatformProposalsChunkSelect, + PlatformProposalsChunkFilter, + PlatformProposalsChunkOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformProposalsChunkKeys.list(args), + queryFn: () => getClient().platformProposalsChunk.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/usePlatformProposalsQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/usePlatformProposalsQuery.ts new file mode 100644 index 0000000000..d6de80b1a2 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/usePlatformProposalsQuery.ts @@ -0,0 +1,163 @@ +/** + * Proposals against a repository: issues, changes to merge, discussions and decisions + * @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 { platformProposalKeys } from '../query-keys'; +import type { + PlatformProposalSelect, + PlatformProposalWithRelations, + PlatformProposalFilter, + PlatformProposalOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + PlatformProposalSelect, + PlatformProposalWithRelations, + PlatformProposalFilter, + PlatformProposalOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformProposalsQueryKey = platformProposalKeys.list; +/** + * Proposals against a repository: issues, changes to merge, discussions and decisions + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformProposalsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function usePlatformProposalsQuery< + S extends PlatformProposalSelect, + TData = { + platformProposals: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, PlatformProposalSelect>; + } & Omit< + UseQueryOptions< + { + platformProposals: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformProposalsQuery( + params: { + selection: ListSelectionConfig< + PlatformProposalSelect, + PlatformProposalFilter, + PlatformProposalOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + PlatformProposalSelect, + PlatformProposalFilter, + PlatformProposalOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformProposalKeys.list(args), + queryFn: () => getClient().platformProposal.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Proposals against a repository: issues, changes to merge, discussions and decisions + * + * @example + * ```ts + * const data = await fetchPlatformProposalsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchPlatformProposalsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, PlatformProposalSelect>; +}): Promise<{ + platformProposals: ConnectionResult>; +}>; +export async function fetchPlatformProposalsQuery(params: { + selection: ListSelectionConfig< + PlatformProposalSelect, + PlatformProposalFilter, + PlatformProposalOrderBy + >; +}) { + const args = buildListSelectionArgs< + PlatformProposalSelect, + PlatformProposalFilter, + PlatformProposalOrderBy + >(params.selection); + return getClient().platformProposal.findMany(args).unwrap(); +} +/** + * Proposals against a repository: issues, changes to merge, discussions and decisions + * + * @example + * ```ts + * await prefetchPlatformProposalsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchPlatformProposalsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, PlatformProposalSelect>; + } +): Promise; +export async function prefetchPlatformProposalsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + PlatformProposalSelect, + PlatformProposalFilter, + PlatformProposalOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + PlatformProposalSelect, + PlatformProposalFilter, + PlatformProposalOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformProposalKeys.list(args), + queryFn: () => getClient().platformProposal.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/usePlatformRegistriesQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/usePlatformRegistriesQuery.ts new file mode 100644 index 0000000000..7c6bfcde06 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/usePlatformRegistriesQuery.ts @@ -0,0 +1,163 @@ +/** + * Artifact registries this scope pulls from or pushes to (OCI images, npm packages), platform-run or external + * @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 { platformRegistryKeys } from '../query-keys'; +import type { + PlatformRegistrySelect, + PlatformRegistryWithRelations, + PlatformRegistryFilter, + PlatformRegistryOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + PlatformRegistrySelect, + PlatformRegistryWithRelations, + PlatformRegistryFilter, + PlatformRegistryOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformRegistriesQueryKey = platformRegistryKeys.list; +/** + * Artifact registries this scope pulls from or pushes to (OCI images, npm packages), platform-run or external + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformRegistriesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function usePlatformRegistriesQuery< + S extends PlatformRegistrySelect, + TData = { + platformRegistries: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, PlatformRegistrySelect>; + } & Omit< + UseQueryOptions< + { + platformRegistries: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformRegistriesQuery( + params: { + selection: ListSelectionConfig< + PlatformRegistrySelect, + PlatformRegistryFilter, + PlatformRegistryOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + PlatformRegistrySelect, + PlatformRegistryFilter, + PlatformRegistryOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformRegistryKeys.list(args), + queryFn: () => getClient().platformRegistry.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Artifact registries this scope pulls from or pushes to (OCI images, npm packages), platform-run or external + * + * @example + * ```ts + * const data = await fetchPlatformRegistriesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchPlatformRegistriesQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, PlatformRegistrySelect>; +}): Promise<{ + platformRegistries: ConnectionResult>; +}>; +export async function fetchPlatformRegistriesQuery(params: { + selection: ListSelectionConfig< + PlatformRegistrySelect, + PlatformRegistryFilter, + PlatformRegistryOrderBy + >; +}) { + const args = buildListSelectionArgs< + PlatformRegistrySelect, + PlatformRegistryFilter, + PlatformRegistryOrderBy + >(params.selection); + return getClient().platformRegistry.findMany(args).unwrap(); +} +/** + * Artifact registries this scope pulls from or pushes to (OCI images, npm packages), platform-run or external + * + * @example + * ```ts + * await prefetchPlatformRegistriesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchPlatformRegistriesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, PlatformRegistrySelect>; + } +): Promise; +export async function prefetchPlatformRegistriesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + PlatformRegistrySelect, + PlatformRegistryFilter, + PlatformRegistryOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + PlatformRegistrySelect, + PlatformRegistryFilter, + PlatformRegistryOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformRegistryKeys.list(args), + queryFn: () => getClient().platformRegistry.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/usePlatformRegistryBindingQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/usePlatformRegistryBindingQuery.ts new file mode 100644 index 0000000000..40c200d56f --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/usePlatformRegistryBindingQuery.ts @@ -0,0 +1,146 @@ +/** + * Binds a namespace to an installed container registry for a lane (realm) — the reconciler projects that registry's credentials into the namespace as an image pull secret + * @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 { platformRegistryBindingKeys } from '../query-keys'; +import type { + PlatformRegistryBindingSelect, + PlatformRegistryBindingWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformRegistryBindingSelect, + PlatformRegistryBindingWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformRegistryBindingQueryKey = platformRegistryBindingKeys.detail; +/** + * Binds a namespace to an installed container registry for a lane (realm) — the reconciler projects that registry's credentials into the namespace as an image pull secret + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformRegistryBindingQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function usePlatformRegistryBindingQuery< + S extends PlatformRegistryBindingSelect, + TData = { + platformRegistryBinding: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformRegistryBindingSelect>; + } & Omit< + UseQueryOptions< + { + platformRegistryBinding: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformRegistryBindingQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformRegistryBindingKeys.detail(params.id), + queryFn: () => + getClient() + .platformRegistryBinding.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Binds a namespace to an installed container registry for a lane (realm) — the reconciler projects that registry's credentials into the namespace as an image pull secret + * + * @example + * ```ts + * const data = await fetchPlatformRegistryBindingQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchPlatformRegistryBindingQuery< + S extends PlatformRegistryBindingSelect, +>(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformRegistryBindingSelect>; +}): Promise<{ + platformRegistryBinding: InferSelectResult | null; +}>; +export async function fetchPlatformRegistryBindingQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .platformRegistryBinding.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Binds a namespace to an installed container registry for a lane (realm) — the reconciler projects that registry's credentials into the namespace as an image pull secret + * + * @example + * ```ts + * await prefetchPlatformRegistryBindingQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchPlatformRegistryBindingQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformRegistryBindingSelect>; + } +): Promise; +export async function prefetchPlatformRegistryBindingQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformRegistryBindingKeys.detail(params.id), + queryFn: () => + getClient() + .platformRegistryBinding.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/usePlatformRegistryBindingsQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/usePlatformRegistryBindingsQuery.ts new file mode 100644 index 0000000000..09cbdf92e2 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/usePlatformRegistryBindingsQuery.ts @@ -0,0 +1,182 @@ +/** + * Binds a namespace to an installed container registry for a lane (realm) — the reconciler projects that registry's credentials into the namespace as an image pull secret + * @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 { platformRegistryBindingKeys } from '../query-keys'; +import type { + PlatformRegistryBindingSelect, + PlatformRegistryBindingWithRelations, + PlatformRegistryBindingFilter, + PlatformRegistryBindingOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + PlatformRegistryBindingSelect, + PlatformRegistryBindingWithRelations, + PlatformRegistryBindingFilter, + PlatformRegistryBindingOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformRegistryBindingsQueryKey = platformRegistryBindingKeys.list; +/** + * Binds a namespace to an installed container registry for a lane (realm) — the reconciler projects that registry's credentials into the namespace as an image pull secret + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformRegistryBindingsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function usePlatformRegistryBindingsQuery< + S extends PlatformRegistryBindingSelect, + TData = { + platformRegistryBindings: ConnectionResult< + InferSelectResult + >; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformRegistryBindingSelect>; + } & Omit< + UseQueryOptions< + { + platformRegistryBindings: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformRegistryBindingsQuery( + params: { + selection: ListSelectionConfig< + PlatformRegistryBindingSelect, + PlatformRegistryBindingFilter, + PlatformRegistryBindingOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + PlatformRegistryBindingSelect, + PlatformRegistryBindingFilter, + PlatformRegistryBindingOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformRegistryBindingKeys.list(args), + queryFn: () => getClient().platformRegistryBinding.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Binds a namespace to an installed container registry for a lane (realm) — the reconciler projects that registry's credentials into the namespace as an image pull secret + * + * @example + * ```ts + * const data = await fetchPlatformRegistryBindingsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchPlatformRegistryBindingsQuery< + S extends PlatformRegistryBindingSelect, +>(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformRegistryBindingSelect>; +}): Promise<{ + platformRegistryBindings: ConnectionResult< + InferSelectResult + >; +}>; +export async function fetchPlatformRegistryBindingsQuery(params: { + selection: ListSelectionConfig< + PlatformRegistryBindingSelect, + PlatformRegistryBindingFilter, + PlatformRegistryBindingOrderBy + >; +}) { + const args = buildListSelectionArgs< + PlatformRegistryBindingSelect, + PlatformRegistryBindingFilter, + PlatformRegistryBindingOrderBy + >(params.selection); + return getClient().platformRegistryBinding.findMany(args).unwrap(); +} +/** + * Binds a namespace to an installed container registry for a lane (realm) — the reconciler projects that registry's credentials into the namespace as an image pull secret + * + * @example + * ```ts + * await prefetchPlatformRegistryBindingsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchPlatformRegistryBindingsQuery< + S extends PlatformRegistryBindingSelect, +>( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformRegistryBindingSelect>; + } +): Promise; +export async function prefetchPlatformRegistryBindingsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + PlatformRegistryBindingSelect, + PlatformRegistryBindingFilter, + PlatformRegistryBindingOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + PlatformRegistryBindingSelect, + PlatformRegistryBindingFilter, + PlatformRegistryBindingOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformRegistryBindingKeys.list(args), + queryFn: () => getClient().platformRegistryBinding.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/usePlatformRegistryGrantQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/usePlatformRegistryGrantQuery.ts new file mode 100644 index 0000000000..7e16142a22 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/usePlatformRegistryGrantQuery.ts @@ -0,0 +1,146 @@ +/** + * Grants that make a registry usable by one scope + * @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 { platformRegistryGrantKeys } from '../query-keys'; +import type { + PlatformRegistryGrantSelect, + PlatformRegistryGrantWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformRegistryGrantSelect, + PlatformRegistryGrantWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformRegistryGrantQueryKey = platformRegistryGrantKeys.detail; +/** + * Grants that make a registry usable by one scope + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformRegistryGrantQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function usePlatformRegistryGrantQuery< + S extends PlatformRegistryGrantSelect, + TData = { + platformRegistryGrant: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformRegistryGrantSelect>; + } & Omit< + UseQueryOptions< + { + platformRegistryGrant: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformRegistryGrantQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformRegistryGrantKeys.detail(params.id), + queryFn: () => + getClient() + .platformRegistryGrant.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Grants that make a registry usable by one scope + * + * @example + * ```ts + * const data = await fetchPlatformRegistryGrantQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchPlatformRegistryGrantQuery< + S extends PlatformRegistryGrantSelect, +>(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformRegistryGrantSelect>; +}): Promise<{ + platformRegistryGrant: InferSelectResult | null; +}>; +export async function fetchPlatformRegistryGrantQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .platformRegistryGrant.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Grants that make a registry usable by one scope + * + * @example + * ```ts + * await prefetchPlatformRegistryGrantQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchPlatformRegistryGrantQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformRegistryGrantSelect>; + } +): Promise; +export async function prefetchPlatformRegistryGrantQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformRegistryGrantKeys.detail(params.id), + queryFn: () => + getClient() + .platformRegistryGrant.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/usePlatformRegistryGrantsQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/usePlatformRegistryGrantsQuery.ts new file mode 100644 index 0000000000..2771259318 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/usePlatformRegistryGrantsQuery.ts @@ -0,0 +1,180 @@ +/** + * Grants that make a registry usable by one scope + * @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 { platformRegistryGrantKeys } from '../query-keys'; +import type { + PlatformRegistryGrantSelect, + PlatformRegistryGrantWithRelations, + PlatformRegistryGrantFilter, + PlatformRegistryGrantOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + PlatformRegistryGrantSelect, + PlatformRegistryGrantWithRelations, + PlatformRegistryGrantFilter, + PlatformRegistryGrantOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformRegistryGrantsQueryKey = platformRegistryGrantKeys.list; +/** + * Grants that make a registry usable by one scope + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformRegistryGrantsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function usePlatformRegistryGrantsQuery< + S extends PlatformRegistryGrantSelect, + TData = { + platformRegistryGrants: ConnectionResult< + InferSelectResult + >; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformRegistryGrantSelect>; + } & Omit< + UseQueryOptions< + { + platformRegistryGrants: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformRegistryGrantsQuery( + params: { + selection: ListSelectionConfig< + PlatformRegistryGrantSelect, + PlatformRegistryGrantFilter, + PlatformRegistryGrantOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + PlatformRegistryGrantSelect, + PlatformRegistryGrantFilter, + PlatformRegistryGrantOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformRegistryGrantKeys.list(args), + queryFn: () => getClient().platformRegistryGrant.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Grants that make a registry usable by one scope + * + * @example + * ```ts + * const data = await fetchPlatformRegistryGrantsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchPlatformRegistryGrantsQuery< + S extends PlatformRegistryGrantSelect, +>(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformRegistryGrantSelect>; +}): Promise<{ + platformRegistryGrants: ConnectionResult< + InferSelectResult + >; +}>; +export async function fetchPlatformRegistryGrantsQuery(params: { + selection: ListSelectionConfig< + PlatformRegistryGrantSelect, + PlatformRegistryGrantFilter, + PlatformRegistryGrantOrderBy + >; +}) { + const args = buildListSelectionArgs< + PlatformRegistryGrantSelect, + PlatformRegistryGrantFilter, + PlatformRegistryGrantOrderBy + >(params.selection); + return getClient().platformRegistryGrant.findMany(args).unwrap(); +} +/** + * Grants that make a registry usable by one scope + * + * @example + * ```ts + * await prefetchPlatformRegistryGrantsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchPlatformRegistryGrantsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformRegistryGrantSelect>; + } +): Promise; +export async function prefetchPlatformRegistryGrantsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + PlatformRegistryGrantSelect, + PlatformRegistryGrantFilter, + PlatformRegistryGrantOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + PlatformRegistryGrantSelect, + PlatformRegistryGrantFilter, + PlatformRegistryGrantOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformRegistryGrantKeys.list(args), + queryFn: () => getClient().platformRegistryGrant.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/usePlatformRegistryQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/usePlatformRegistryQuery.ts new file mode 100644 index 0000000000..46ac95df92 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/usePlatformRegistryQuery.ts @@ -0,0 +1,138 @@ +/** + * Artifact registries this scope pulls from or pushes to (OCI images, npm packages), platform-run or external + * @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 { platformRegistryKeys } from '../query-keys'; +import type { PlatformRegistrySelect, PlatformRegistryWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { PlatformRegistrySelect, PlatformRegistryWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformRegistryQueryKey = platformRegistryKeys.detail; +/** + * Artifact registries this scope pulls from or pushes to (OCI images, npm packages), platform-run or external + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformRegistryQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function usePlatformRegistryQuery< + S extends PlatformRegistrySelect, + TData = { + platformRegistry: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformRegistrySelect>; + } & Omit< + UseQueryOptions< + { + platformRegistry: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformRegistryQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformRegistryKeys.detail(params.id), + queryFn: () => + getClient() + .platformRegistry.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Artifact registries this scope pulls from or pushes to (OCI images, npm packages), platform-run or external + * + * @example + * ```ts + * const data = await fetchPlatformRegistryQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchPlatformRegistryQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformRegistrySelect>; +}): Promise<{ + platformRegistry: InferSelectResult | null; +}>; +export async function fetchPlatformRegistryQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .platformRegistry.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Artifact registries this scope pulls from or pushes to (OCI images, npm packages), platform-run or external + * + * @example + * ```ts + * await prefetchPlatformRegistryQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchPlatformRegistryQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformRegistrySelect>; + } +): Promise; +export async function prefetchPlatformRegistryQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformRegistryKeys.detail(params.id), + queryFn: () => + getClient() + .platformRegistry.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/usePlatformRepositoriesQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/usePlatformRepositoriesQuery.ts new file mode 100644 index 0000000000..2686154cc9 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/usePlatformRepositoriesQuery.ts @@ -0,0 +1,171 @@ +/** + * Source repositories, hosted locally or on an external provider + * @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 { platformRepositoryKeys } from '../query-keys'; +import type { + PlatformRepositorySelect, + PlatformRepositoryWithRelations, + PlatformRepositoryFilter, + PlatformRepositoryOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + PlatformRepositorySelect, + PlatformRepositoryWithRelations, + PlatformRepositoryFilter, + PlatformRepositoryOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformRepositoriesQueryKey = platformRepositoryKeys.list; +/** + * Source repositories, hosted locally or on an external provider + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformRepositoriesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function usePlatformRepositoriesQuery< + S extends PlatformRepositorySelect, + TData = { + platformRepositories: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformRepositorySelect>; + } & Omit< + UseQueryOptions< + { + platformRepositories: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformRepositoriesQuery( + params: { + selection: ListSelectionConfig< + PlatformRepositorySelect, + PlatformRepositoryFilter, + PlatformRepositoryOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + PlatformRepositorySelect, + PlatformRepositoryFilter, + PlatformRepositoryOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformRepositoryKeys.list(args), + queryFn: () => getClient().platformRepository.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Source repositories, hosted locally or on an external provider + * + * @example + * ```ts + * const data = await fetchPlatformRepositoriesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchPlatformRepositoriesQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, PlatformRepositorySelect>; +}): Promise<{ + platformRepositories: ConnectionResult>; +}>; +export async function fetchPlatformRepositoriesQuery(params: { + selection: ListSelectionConfig< + PlatformRepositorySelect, + PlatformRepositoryFilter, + PlatformRepositoryOrderBy + >; +}) { + const args = buildListSelectionArgs< + PlatformRepositorySelect, + PlatformRepositoryFilter, + PlatformRepositoryOrderBy + >(params.selection); + return getClient().platformRepository.findMany(args).unwrap(); +} +/** + * Source repositories, hosted locally or on an external provider + * + * @example + * ```ts + * await prefetchPlatformRepositoriesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchPlatformRepositoriesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformRepositorySelect>; + } +): Promise; +export async function prefetchPlatformRepositoriesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + PlatformRepositorySelect, + PlatformRepositoryFilter, + PlatformRepositoryOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + PlatformRepositorySelect, + PlatformRepositoryFilter, + PlatformRepositoryOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformRepositoryKeys.list(args), + queryFn: () => getClient().platformRepository.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/usePlatformRepositoryEventQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/usePlatformRepositoryEventQuery.ts new file mode 100644 index 0000000000..f794e46571 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/usePlatformRepositoryEventQuery.ts @@ -0,0 +1,146 @@ +/** + * Normalized repository events from local hooks and external providers + * @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 { platformRepositoryEventKeys } from '../query-keys'; +import type { + PlatformRepositoryEventSelect, + PlatformRepositoryEventWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformRepositoryEventSelect, + PlatformRepositoryEventWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformRepositoryEventQueryKey = platformRepositoryEventKeys.detail; +/** + * Normalized repository events from local hooks and external providers + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformRepositoryEventQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function usePlatformRepositoryEventQuery< + S extends PlatformRepositoryEventSelect, + TData = { + platformRepositoryEvent: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformRepositoryEventSelect>; + } & Omit< + UseQueryOptions< + { + platformRepositoryEvent: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformRepositoryEventQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformRepositoryEventKeys.detail(params.id), + queryFn: () => + getClient() + .platformRepositoryEvent.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Normalized repository events from local hooks and external providers + * + * @example + * ```ts + * const data = await fetchPlatformRepositoryEventQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchPlatformRepositoryEventQuery< + S extends PlatformRepositoryEventSelect, +>(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformRepositoryEventSelect>; +}): Promise<{ + platformRepositoryEvent: InferSelectResult | null; +}>; +export async function fetchPlatformRepositoryEventQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .platformRepositoryEvent.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Normalized repository events from local hooks and external providers + * + * @example + * ```ts + * await prefetchPlatformRepositoryEventQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchPlatformRepositoryEventQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformRepositoryEventSelect>; + } +): Promise; +export async function prefetchPlatformRepositoryEventQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformRepositoryEventKeys.detail(params.id), + queryFn: () => + getClient() + .platformRepositoryEvent.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/usePlatformRepositoryEventsQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/usePlatformRepositoryEventsQuery.ts new file mode 100644 index 0000000000..93694f7815 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/usePlatformRepositoryEventsQuery.ts @@ -0,0 +1,182 @@ +/** + * Normalized repository events from local hooks and external providers + * @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 { platformRepositoryEventKeys } from '../query-keys'; +import type { + PlatformRepositoryEventSelect, + PlatformRepositoryEventWithRelations, + PlatformRepositoryEventFilter, + PlatformRepositoryEventOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + PlatformRepositoryEventSelect, + PlatformRepositoryEventWithRelations, + PlatformRepositoryEventFilter, + PlatformRepositoryEventOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformRepositoryEventsQueryKey = platformRepositoryEventKeys.list; +/** + * Normalized repository events from local hooks and external providers + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformRepositoryEventsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function usePlatformRepositoryEventsQuery< + S extends PlatformRepositoryEventSelect, + TData = { + platformRepositoryEvents: ConnectionResult< + InferSelectResult + >; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformRepositoryEventSelect>; + } & Omit< + UseQueryOptions< + { + platformRepositoryEvents: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformRepositoryEventsQuery( + params: { + selection: ListSelectionConfig< + PlatformRepositoryEventSelect, + PlatformRepositoryEventFilter, + PlatformRepositoryEventOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + PlatformRepositoryEventSelect, + PlatformRepositoryEventFilter, + PlatformRepositoryEventOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformRepositoryEventKeys.list(args), + queryFn: () => getClient().platformRepositoryEvent.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Normalized repository events from local hooks and external providers + * + * @example + * ```ts + * const data = await fetchPlatformRepositoryEventsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchPlatformRepositoryEventsQuery< + S extends PlatformRepositoryEventSelect, +>(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformRepositoryEventSelect>; +}): Promise<{ + platformRepositoryEvents: ConnectionResult< + InferSelectResult + >; +}>; +export async function fetchPlatformRepositoryEventsQuery(params: { + selection: ListSelectionConfig< + PlatformRepositoryEventSelect, + PlatformRepositoryEventFilter, + PlatformRepositoryEventOrderBy + >; +}) { + const args = buildListSelectionArgs< + PlatformRepositoryEventSelect, + PlatformRepositoryEventFilter, + PlatformRepositoryEventOrderBy + >(params.selection); + return getClient().platformRepositoryEvent.findMany(args).unwrap(); +} +/** + * Normalized repository events from local hooks and external providers + * + * @example + * ```ts + * await prefetchPlatformRepositoryEventsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchPlatformRepositoryEventsQuery< + S extends PlatformRepositoryEventSelect, +>( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformRepositoryEventSelect>; + } +): Promise; +export async function prefetchPlatformRepositoryEventsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + PlatformRepositoryEventSelect, + PlatformRepositoryEventFilter, + PlatformRepositoryEventOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + PlatformRepositoryEventSelect, + PlatformRepositoryEventFilter, + PlatformRepositoryEventOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformRepositoryEventKeys.list(args), + queryFn: () => getClient().platformRepositoryEvent.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/usePlatformRepositoryQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/usePlatformRepositoryQuery.ts new file mode 100644 index 0000000000..114233d9f0 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/usePlatformRepositoryQuery.ts @@ -0,0 +1,144 @@ +/** + * Source repositories, hosted locally or on an external provider + * @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 { platformRepositoryKeys } from '../query-keys'; +import type { + PlatformRepositorySelect, + PlatformRepositoryWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformRepositorySelect, + PlatformRepositoryWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformRepositoryQueryKey = platformRepositoryKeys.detail; +/** + * Source repositories, hosted locally or on an external provider + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformRepositoryQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function usePlatformRepositoryQuery< + S extends PlatformRepositorySelect, + TData = { + platformRepository: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformRepositorySelect>; + } & Omit< + UseQueryOptions< + { + platformRepository: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformRepositoryQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformRepositoryKeys.detail(params.id), + queryFn: () => + getClient() + .platformRepository.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Source repositories, hosted locally or on an external provider + * + * @example + * ```ts + * const data = await fetchPlatformRepositoryQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchPlatformRepositoryQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformRepositorySelect>; +}): Promise<{ + platformRepository: InferSelectResult | null; +}>; +export async function fetchPlatformRepositoryQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .platformRepository.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Source repositories, hosted locally or on an external provider + * + * @example + * ```ts + * await prefetchPlatformRepositoryQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchPlatformRepositoryQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformRepositorySelect>; + } +): Promise; +export async function prefetchPlatformRepositoryQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformRepositoryKeys.detail(params.id), + queryFn: () => + getClient() + .platformRepository.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/usePlatformRepositoryRequiredCheckQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/usePlatformRepositoryRequiredCheckQuery.ts new file mode 100644 index 0000000000..6f98e27c32 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/usePlatformRepositoryRequiredCheckQuery.ts @@ -0,0 +1,157 @@ +/** + * Workflows required to pass before a repository proposal merges + * @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 { platformRepositoryRequiredCheckKeys } from '../query-keys'; +import type { + PlatformRepositoryRequiredCheckSelect, + PlatformRepositoryRequiredCheckWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformRepositoryRequiredCheckSelect, + PlatformRepositoryRequiredCheckWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformRepositoryRequiredCheckQueryKey = platformRepositoryRequiredCheckKeys.detail; +/** + * Workflows required to pass before a repository proposal merges + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformRepositoryRequiredCheckQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function usePlatformRepositoryRequiredCheckQuery< + S extends PlatformRepositoryRequiredCheckSelect, + TData = { + platformRepositoryRequiredCheck: InferSelectResult< + PlatformRepositoryRequiredCheckWithRelations, + S + > | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformRepositoryRequiredCheckSelect>; + } & Omit< + UseQueryOptions< + { + platformRepositoryRequiredCheck: InferSelectResult< + PlatformRepositoryRequiredCheckWithRelations, + S + > | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformRepositoryRequiredCheckQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformRepositoryRequiredCheckKeys.detail(params.id), + queryFn: () => + getClient() + .platformRepositoryRequiredCheck.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Workflows required to pass before a repository proposal merges + * + * @example + * ```ts + * const data = await fetchPlatformRepositoryRequiredCheckQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchPlatformRepositoryRequiredCheckQuery< + S extends PlatformRepositoryRequiredCheckSelect, +>(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformRepositoryRequiredCheckSelect>; +}): Promise<{ + platformRepositoryRequiredCheck: InferSelectResult< + PlatformRepositoryRequiredCheckWithRelations, + S + > | null; +}>; +export async function fetchPlatformRepositoryRequiredCheckQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .platformRepositoryRequiredCheck.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Workflows required to pass before a repository proposal merges + * + * @example + * ```ts + * await prefetchPlatformRepositoryRequiredCheckQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchPlatformRepositoryRequiredCheckQuery< + S extends PlatformRepositoryRequiredCheckSelect, +>( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformRepositoryRequiredCheckSelect>; + } +): Promise; +export async function prefetchPlatformRepositoryRequiredCheckQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformRepositoryRequiredCheckKeys.detail(params.id), + queryFn: () => + getClient() + .platformRepositoryRequiredCheck.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/usePlatformRepositoryRequiredChecksQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/usePlatformRepositoryRequiredChecksQuery.ts new file mode 100644 index 0000000000..e179214a54 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/usePlatformRepositoryRequiredChecksQuery.ts @@ -0,0 +1,194 @@ +/** + * Workflows required to pass before a repository proposal merges + * @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 { platformRepositoryRequiredCheckKeys } from '../query-keys'; +import type { + PlatformRepositoryRequiredCheckSelect, + PlatformRepositoryRequiredCheckWithRelations, + PlatformRepositoryRequiredCheckFilter, + PlatformRepositoryRequiredCheckOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + PlatformRepositoryRequiredCheckSelect, + PlatformRepositoryRequiredCheckWithRelations, + PlatformRepositoryRequiredCheckFilter, + PlatformRepositoryRequiredCheckOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformRepositoryRequiredChecksQueryKey = platformRepositoryRequiredCheckKeys.list; +/** + * Workflows required to pass before a repository proposal merges + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformRepositoryRequiredChecksQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function usePlatformRepositoryRequiredChecksQuery< + S extends PlatformRepositoryRequiredCheckSelect, + TData = { + platformRepositoryRequiredChecks: ConnectionResult< + InferSelectResult + >; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig< + S, + PlatformRepositoryRequiredCheckFilter, + PlatformRepositoryRequiredCheckOrderBy + >, + 'fields' + > & + HookStrictSelect, PlatformRepositoryRequiredCheckSelect>; + } & Omit< + UseQueryOptions< + { + platformRepositoryRequiredChecks: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformRepositoryRequiredChecksQuery( + params: { + selection: ListSelectionConfig< + PlatformRepositoryRequiredCheckSelect, + PlatformRepositoryRequiredCheckFilter, + PlatformRepositoryRequiredCheckOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + PlatformRepositoryRequiredCheckSelect, + PlatformRepositoryRequiredCheckFilter, + PlatformRepositoryRequiredCheckOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformRepositoryRequiredCheckKeys.list(args), + queryFn: () => getClient().platformRepositoryRequiredCheck.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Workflows required to pass before a repository proposal merges + * + * @example + * ```ts + * const data = await fetchPlatformRepositoryRequiredChecksQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchPlatformRepositoryRequiredChecksQuery< + S extends PlatformRepositoryRequiredCheckSelect, +>(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig< + S, + PlatformRepositoryRequiredCheckFilter, + PlatformRepositoryRequiredCheckOrderBy + >, + 'fields' + > & + HookStrictSelect, PlatformRepositoryRequiredCheckSelect>; +}): Promise<{ + platformRepositoryRequiredChecks: ConnectionResult< + InferSelectResult + >; +}>; +export async function fetchPlatformRepositoryRequiredChecksQuery(params: { + selection: ListSelectionConfig< + PlatformRepositoryRequiredCheckSelect, + PlatformRepositoryRequiredCheckFilter, + PlatformRepositoryRequiredCheckOrderBy + >; +}) { + const args = buildListSelectionArgs< + PlatformRepositoryRequiredCheckSelect, + PlatformRepositoryRequiredCheckFilter, + PlatformRepositoryRequiredCheckOrderBy + >(params.selection); + return getClient().platformRepositoryRequiredCheck.findMany(args).unwrap(); +} +/** + * Workflows required to pass before a repository proposal merges + * + * @example + * ```ts + * await prefetchPlatformRepositoryRequiredChecksQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchPlatformRepositoryRequiredChecksQuery< + S extends PlatformRepositoryRequiredCheckSelect, +>( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig< + S, + PlatformRepositoryRequiredCheckFilter, + PlatformRepositoryRequiredCheckOrderBy + >, + 'fields' + > & + HookStrictSelect, PlatformRepositoryRequiredCheckSelect>; + } +): Promise; +export async function prefetchPlatformRepositoryRequiredChecksQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + PlatformRepositoryRequiredCheckSelect, + PlatformRepositoryRequiredCheckFilter, + PlatformRepositoryRequiredCheckOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + PlatformRepositoryRequiredCheckSelect, + PlatformRepositoryRequiredCheckFilter, + PlatformRepositoryRequiredCheckOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformRepositoryRequiredCheckKeys.list(args), + queryFn: () => getClient().platformRepositoryRequiredCheck.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/usePlatformRepositoryWorkflowQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/usePlatformRepositoryWorkflowQuery.ts new file mode 100644 index 0000000000..47ca581773 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/usePlatformRepositoryWorkflowQuery.ts @@ -0,0 +1,154 @@ +/** + * Bindings from a repository event to the flow graph that should run + * @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 { platformRepositoryWorkflowKeys } from '../query-keys'; +import type { + PlatformRepositoryWorkflowSelect, + PlatformRepositoryWorkflowWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformRepositoryWorkflowSelect, + PlatformRepositoryWorkflowWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformRepositoryWorkflowQueryKey = platformRepositoryWorkflowKeys.detail; +/** + * Bindings from a repository event to the flow graph that should run + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformRepositoryWorkflowQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function usePlatformRepositoryWorkflowQuery< + S extends PlatformRepositoryWorkflowSelect, + TData = { + platformRepositoryWorkflow: InferSelectResult< + PlatformRepositoryWorkflowWithRelations, + S + > | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformRepositoryWorkflowSelect>; + } & Omit< + UseQueryOptions< + { + platformRepositoryWorkflow: InferSelectResult< + PlatformRepositoryWorkflowWithRelations, + S + > | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformRepositoryWorkflowQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformRepositoryWorkflowKeys.detail(params.id), + queryFn: () => + getClient() + .platformRepositoryWorkflow.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Bindings from a repository event to the flow graph that should run + * + * @example + * ```ts + * const data = await fetchPlatformRepositoryWorkflowQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchPlatformRepositoryWorkflowQuery< + S extends PlatformRepositoryWorkflowSelect, +>(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformRepositoryWorkflowSelect>; +}): Promise<{ + platformRepositoryWorkflow: InferSelectResult | null; +}>; +export async function fetchPlatformRepositoryWorkflowQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .platformRepositoryWorkflow.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Bindings from a repository event to the flow graph that should run + * + * @example + * ```ts + * await prefetchPlatformRepositoryWorkflowQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchPlatformRepositoryWorkflowQuery< + S extends PlatformRepositoryWorkflowSelect, +>( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformRepositoryWorkflowSelect>; + } +): Promise; +export async function prefetchPlatformRepositoryWorkflowQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformRepositoryWorkflowKeys.detail(params.id), + queryFn: () => + getClient() + .platformRepositoryWorkflow.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/usePlatformRepositoryWorkflowsQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/usePlatformRepositoryWorkflowsQuery.ts new file mode 100644 index 0000000000..516971d0c2 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/usePlatformRepositoryWorkflowsQuery.ts @@ -0,0 +1,182 @@ +/** + * Bindings from a repository event to the flow graph that should run + * @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 { platformRepositoryWorkflowKeys } from '../query-keys'; +import type { + PlatformRepositoryWorkflowSelect, + PlatformRepositoryWorkflowWithRelations, + PlatformRepositoryWorkflowFilter, + PlatformRepositoryWorkflowOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + PlatformRepositoryWorkflowSelect, + PlatformRepositoryWorkflowWithRelations, + PlatformRepositoryWorkflowFilter, + PlatformRepositoryWorkflowOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformRepositoryWorkflowsQueryKey = platformRepositoryWorkflowKeys.list; +/** + * Bindings from a repository event to the flow graph that should run + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformRepositoryWorkflowsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function usePlatformRepositoryWorkflowsQuery< + S extends PlatformRepositoryWorkflowSelect, + TData = { + platformRepositoryWorkflows: ConnectionResult< + InferSelectResult + >; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformRepositoryWorkflowSelect>; + } & Omit< + UseQueryOptions< + { + platformRepositoryWorkflows: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformRepositoryWorkflowsQuery( + params: { + selection: ListSelectionConfig< + PlatformRepositoryWorkflowSelect, + PlatformRepositoryWorkflowFilter, + PlatformRepositoryWorkflowOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + PlatformRepositoryWorkflowSelect, + PlatformRepositoryWorkflowFilter, + PlatformRepositoryWorkflowOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformRepositoryWorkflowKeys.list(args), + queryFn: () => getClient().platformRepositoryWorkflow.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Bindings from a repository event to the flow graph that should run + * + * @example + * ```ts + * const data = await fetchPlatformRepositoryWorkflowsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchPlatformRepositoryWorkflowsQuery< + S extends PlatformRepositoryWorkflowSelect, +>(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformRepositoryWorkflowSelect>; +}): Promise<{ + platformRepositoryWorkflows: ConnectionResult< + InferSelectResult + >; +}>; +export async function fetchPlatformRepositoryWorkflowsQuery(params: { + selection: ListSelectionConfig< + PlatformRepositoryWorkflowSelect, + PlatformRepositoryWorkflowFilter, + PlatformRepositoryWorkflowOrderBy + >; +}) { + const args = buildListSelectionArgs< + PlatformRepositoryWorkflowSelect, + PlatformRepositoryWorkflowFilter, + PlatformRepositoryWorkflowOrderBy + >(params.selection); + return getClient().platformRepositoryWorkflow.findMany(args).unwrap(); +} +/** + * Bindings from a repository event to the flow graph that should run + * + * @example + * ```ts + * await prefetchPlatformRepositoryWorkflowsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchPlatformRepositoryWorkflowsQuery< + S extends PlatformRepositoryWorkflowSelect, +>( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformRepositoryWorkflowSelect>; + } +): Promise; +export async function prefetchPlatformRepositoryWorkflowsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + PlatformRepositoryWorkflowSelect, + PlatformRepositoryWorkflowFilter, + PlatformRepositoryWorkflowOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + PlatformRepositoryWorkflowSelect, + PlatformRepositoryWorkflowFilter, + PlatformRepositoryWorkflowOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformRepositoryWorkflowKeys.list(args), + queryFn: () => getClient().platformRepositoryWorkflow.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/usePlatformResourceObservedStoragesQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/usePlatformResourceObservedStoragesQuery.ts new file mode 100644 index 0000000000..8ece343b3e --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/usePlatformResourceObservedStoragesQuery.ts @@ -0,0 +1,194 @@ +/** + * List query hook for PlatformResourceObservedStorage + * @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 { platformResourceObservedStorageKeys } from '../query-keys'; +import type { + PlatformResourceObservedStorageSelect, + PlatformResourceObservedStorageWithRelations, + PlatformResourceObservedStorageFilter, + PlatformResourceObservedStorageOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + PlatformResourceObservedStorageSelect, + PlatformResourceObservedStorageWithRelations, + PlatformResourceObservedStorageFilter, + PlatformResourceObservedStorageOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformResourceObservedStoragesQueryKey = platformResourceObservedStorageKeys.list; +/** + * Query hook for fetching PlatformResourceObservedStorage list + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformResourceObservedStoragesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function usePlatformResourceObservedStoragesQuery< + S extends PlatformResourceObservedStorageSelect, + TData = { + platformResourceObservedStorages: ConnectionResult< + InferSelectResult + >; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig< + S, + PlatformResourceObservedStorageFilter, + PlatformResourceObservedStorageOrderBy + >, + 'fields' + > & + HookStrictSelect, PlatformResourceObservedStorageSelect>; + } & Omit< + UseQueryOptions< + { + platformResourceObservedStorages: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformResourceObservedStoragesQuery( + params: { + selection: ListSelectionConfig< + PlatformResourceObservedStorageSelect, + PlatformResourceObservedStorageFilter, + PlatformResourceObservedStorageOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + PlatformResourceObservedStorageSelect, + PlatformResourceObservedStorageFilter, + PlatformResourceObservedStorageOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformResourceObservedStorageKeys.list(args), + queryFn: () => getClient().platformResourceObservedStorage.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch PlatformResourceObservedStorage list without React hooks + * + * @example + * ```ts + * const data = await fetchPlatformResourceObservedStoragesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchPlatformResourceObservedStoragesQuery< + S extends PlatformResourceObservedStorageSelect, +>(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig< + S, + PlatformResourceObservedStorageFilter, + PlatformResourceObservedStorageOrderBy + >, + 'fields' + > & + HookStrictSelect, PlatformResourceObservedStorageSelect>; +}): Promise<{ + platformResourceObservedStorages: ConnectionResult< + InferSelectResult + >; +}>; +export async function fetchPlatformResourceObservedStoragesQuery(params: { + selection: ListSelectionConfig< + PlatformResourceObservedStorageSelect, + PlatformResourceObservedStorageFilter, + PlatformResourceObservedStorageOrderBy + >; +}) { + const args = buildListSelectionArgs< + PlatformResourceObservedStorageSelect, + PlatformResourceObservedStorageFilter, + PlatformResourceObservedStorageOrderBy + >(params.selection); + return getClient().platformResourceObservedStorage.findMany(args).unwrap(); +} +/** + * Prefetch PlatformResourceObservedStorage list for SSR or cache warming + * + * @example + * ```ts + * await prefetchPlatformResourceObservedStoragesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchPlatformResourceObservedStoragesQuery< + S extends PlatformResourceObservedStorageSelect, +>( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig< + S, + PlatformResourceObservedStorageFilter, + PlatformResourceObservedStorageOrderBy + >, + 'fields' + > & + HookStrictSelect, PlatformResourceObservedStorageSelect>; + } +): Promise; +export async function prefetchPlatformResourceObservedStoragesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + PlatformResourceObservedStorageSelect, + PlatformResourceObservedStorageFilter, + PlatformResourceObservedStorageOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + PlatformResourceObservedStorageSelect, + PlatformResourceObservedStorageFilter, + PlatformResourceObservedStorageOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformResourceObservedStorageKeys.list(args), + queryFn: () => getClient().platformResourceObservedStorage.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/useProposalCommentQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/useProposalCommentQuery.ts new file mode 100644 index 0000000000..368476f967 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/useProposalCommentQuery.ts @@ -0,0 +1,138 @@ +/** + * Comments on a local proposal, optionally anchored to a line + * @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 { proposalCommentKeys } from '../query-keys'; +import type { ProposalCommentSelect, ProposalCommentWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { ProposalCommentSelect, ProposalCommentWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const proposalCommentQueryKey = proposalCommentKeys.detail; +/** + * Comments on a local proposal, optionally anchored to a line + * + * @example + * ```tsx + * const { data, isLoading } = useProposalCommentQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useProposalCommentQuery< + S extends ProposalCommentSelect, + TData = { + proposalComment: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ProposalCommentSelect>; + } & Omit< + UseQueryOptions< + { + proposalComment: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useProposalCommentQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: proposalCommentKeys.detail(params.id), + queryFn: () => + getClient() + .proposalComment.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Comments on a local proposal, optionally anchored to a line + * + * @example + * ```ts + * const data = await fetchProposalCommentQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchProposalCommentQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ProposalCommentSelect>; +}): Promise<{ + proposalComment: InferSelectResult | null; +}>; +export async function fetchProposalCommentQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .proposalComment.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Comments on a local proposal, optionally anchored to a line + * + * @example + * ```ts + * await prefetchProposalCommentQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchProposalCommentQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ProposalCommentSelect>; + } +): Promise; +export async function prefetchProposalCommentQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: proposalCommentKeys.detail(params.id), + queryFn: () => + getClient() + .proposalComment.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/useProposalCommentsQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/useProposalCommentsQuery.ts new file mode 100644 index 0000000000..d903ecec93 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/useProposalCommentsQuery.ts @@ -0,0 +1,163 @@ +/** + * Comments on a local proposal, optionally anchored to a line + * @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 { proposalCommentKeys } from '../query-keys'; +import type { + ProposalCommentSelect, + ProposalCommentWithRelations, + ProposalCommentFilter, + ProposalCommentOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + ProposalCommentSelect, + ProposalCommentWithRelations, + ProposalCommentFilter, + ProposalCommentOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const proposalCommentsQueryKey = proposalCommentKeys.list; +/** + * Comments on a local proposal, optionally anchored to a line + * + * @example + * ```tsx + * const { data, isLoading } = useProposalCommentsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useProposalCommentsQuery< + S extends ProposalCommentSelect, + TData = { + proposalComments: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, ProposalCommentSelect>; + } & Omit< + UseQueryOptions< + { + proposalComments: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useProposalCommentsQuery( + params: { + selection: ListSelectionConfig< + ProposalCommentSelect, + ProposalCommentFilter, + ProposalCommentOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + ProposalCommentSelect, + ProposalCommentFilter, + ProposalCommentOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: proposalCommentKeys.list(args), + queryFn: () => getClient().proposalComment.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Comments on a local proposal, optionally anchored to a line + * + * @example + * ```ts + * const data = await fetchProposalCommentsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchProposalCommentsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, ProposalCommentSelect>; +}): Promise<{ + proposalComments: ConnectionResult>; +}>; +export async function fetchProposalCommentsQuery(params: { + selection: ListSelectionConfig< + ProposalCommentSelect, + ProposalCommentFilter, + ProposalCommentOrderBy + >; +}) { + const args = buildListSelectionArgs< + ProposalCommentSelect, + ProposalCommentFilter, + ProposalCommentOrderBy + >(params.selection); + return getClient().proposalComment.findMany(args).unwrap(); +} +/** + * Comments on a local proposal, optionally anchored to a line + * + * @example + * ```ts + * await prefetchProposalCommentsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchProposalCommentsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, ProposalCommentSelect>; + } +): Promise; +export async function prefetchProposalCommentsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + ProposalCommentSelect, + ProposalCommentFilter, + ProposalCommentOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + ProposalCommentSelect, + ProposalCommentFilter, + ProposalCommentOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: proposalCommentKeys.list(args), + queryFn: () => getClient().proposalComment.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/useProposalFileViewQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/useProposalFileViewQuery.ts new file mode 100644 index 0000000000..e6cff95660 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/useProposalFileViewQuery.ts @@ -0,0 +1,138 @@ +/** + * Files a reviewer has read, pinned to the blob they read + * @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 { proposalFileViewKeys } from '../query-keys'; +import type { ProposalFileViewSelect, ProposalFileViewWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { ProposalFileViewSelect, ProposalFileViewWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const proposalFileViewQueryKey = proposalFileViewKeys.detail; +/** + * Files a reviewer has read, pinned to the blob they read + * + * @example + * ```tsx + * const { data, isLoading } = useProposalFileViewQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useProposalFileViewQuery< + S extends ProposalFileViewSelect, + TData = { + proposalFileView: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ProposalFileViewSelect>; + } & Omit< + UseQueryOptions< + { + proposalFileView: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useProposalFileViewQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: proposalFileViewKeys.detail(params.id), + queryFn: () => + getClient() + .proposalFileView.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Files a reviewer has read, pinned to the blob they read + * + * @example + * ```ts + * const data = await fetchProposalFileViewQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchProposalFileViewQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ProposalFileViewSelect>; +}): Promise<{ + proposalFileView: InferSelectResult | null; +}>; +export async function fetchProposalFileViewQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .proposalFileView.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Files a reviewer has read, pinned to the blob they read + * + * @example + * ```ts + * await prefetchProposalFileViewQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchProposalFileViewQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ProposalFileViewSelect>; + } +): Promise; +export async function prefetchProposalFileViewQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: proposalFileViewKeys.detail(params.id), + queryFn: () => + getClient() + .proposalFileView.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/useProposalFileViewsQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/useProposalFileViewsQuery.ts new file mode 100644 index 0000000000..e5fea722fb --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/useProposalFileViewsQuery.ts @@ -0,0 +1,163 @@ +/** + * Files a reviewer has read, pinned to the blob they read + * @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 { proposalFileViewKeys } from '../query-keys'; +import type { + ProposalFileViewSelect, + ProposalFileViewWithRelations, + ProposalFileViewFilter, + ProposalFileViewOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + ProposalFileViewSelect, + ProposalFileViewWithRelations, + ProposalFileViewFilter, + ProposalFileViewOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const proposalFileViewsQueryKey = proposalFileViewKeys.list; +/** + * Files a reviewer has read, pinned to the blob they read + * + * @example + * ```tsx + * const { data, isLoading } = useProposalFileViewsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useProposalFileViewsQuery< + S extends ProposalFileViewSelect, + TData = { + proposalFileViews: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, ProposalFileViewSelect>; + } & Omit< + UseQueryOptions< + { + proposalFileViews: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useProposalFileViewsQuery( + params: { + selection: ListSelectionConfig< + ProposalFileViewSelect, + ProposalFileViewFilter, + ProposalFileViewOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + ProposalFileViewSelect, + ProposalFileViewFilter, + ProposalFileViewOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: proposalFileViewKeys.list(args), + queryFn: () => getClient().proposalFileView.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Files a reviewer has read, pinned to the blob they read + * + * @example + * ```ts + * const data = await fetchProposalFileViewsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchProposalFileViewsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, ProposalFileViewSelect>; +}): Promise<{ + proposalFileViews: ConnectionResult>; +}>; +export async function fetchProposalFileViewsQuery(params: { + selection: ListSelectionConfig< + ProposalFileViewSelect, + ProposalFileViewFilter, + ProposalFileViewOrderBy + >; +}) { + const args = buildListSelectionArgs< + ProposalFileViewSelect, + ProposalFileViewFilter, + ProposalFileViewOrderBy + >(params.selection); + return getClient().proposalFileView.findMany(args).unwrap(); +} +/** + * Files a reviewer has read, pinned to the blob they read + * + * @example + * ```ts + * await prefetchProposalFileViewsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchProposalFileViewsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, ProposalFileViewSelect>; + } +): Promise; +export async function prefetchProposalFileViewsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + ProposalFileViewSelect, + ProposalFileViewFilter, + ProposalFileViewOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + ProposalFileViewSelect, + ProposalFileViewFilter, + ProposalFileViewOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: proposalFileViewKeys.list(args), + queryFn: () => getClient().proposalFileView.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/useProposalQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/useProposalQuery.ts new file mode 100644 index 0000000000..c335fc87f2 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/useProposalQuery.ts @@ -0,0 +1,138 @@ +/** + * Proposals against a repository: issues, changes to merge, discussions and decisions + * @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 { proposalKeys } from '../query-keys'; +import type { ProposalSelect, ProposalWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { ProposalSelect, ProposalWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const proposalQueryKey = proposalKeys.detail; +/** + * Proposals against a repository: issues, changes to merge, discussions and decisions + * + * @example + * ```tsx + * const { data, isLoading } = useProposalQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useProposalQuery< + S extends ProposalSelect, + TData = { + proposal: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ProposalSelect>; + } & Omit< + UseQueryOptions< + { + proposal: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useProposalQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: proposalKeys.detail(params.id), + queryFn: () => + getClient() + .proposal.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Proposals against a repository: issues, changes to merge, discussions and decisions + * + * @example + * ```ts + * const data = await fetchProposalQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchProposalQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ProposalSelect>; +}): Promise<{ + proposal: InferSelectResult | null; +}>; +export async function fetchProposalQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .proposal.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Proposals against a repository: issues, changes to merge, discussions and decisions + * + * @example + * ```ts + * await prefetchProposalQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchProposalQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ProposalSelect>; + } +): Promise; +export async function prefetchProposalQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: proposalKeys.detail(params.id), + queryFn: () => + getClient() + .proposal.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/useProposalReactionQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/useProposalReactionQuery.ts new file mode 100644 index 0000000000..40931880d0 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/useProposalReactionQuery.ts @@ -0,0 +1,138 @@ +/** + * Emoji reactions to a local proposal or one of its comments + * @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 { proposalReactionKeys } from '../query-keys'; +import type { ProposalReactionSelect, ProposalReactionWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { ProposalReactionSelect, ProposalReactionWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const proposalReactionQueryKey = proposalReactionKeys.detail; +/** + * Emoji reactions to a local proposal or one of its comments + * + * @example + * ```tsx + * const { data, isLoading } = useProposalReactionQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useProposalReactionQuery< + S extends ProposalReactionSelect, + TData = { + proposalReaction: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ProposalReactionSelect>; + } & Omit< + UseQueryOptions< + { + proposalReaction: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useProposalReactionQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: proposalReactionKeys.detail(params.id), + queryFn: () => + getClient() + .proposalReaction.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Emoji reactions to a local proposal or one of its comments + * + * @example + * ```ts + * const data = await fetchProposalReactionQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchProposalReactionQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ProposalReactionSelect>; +}): Promise<{ + proposalReaction: InferSelectResult | null; +}>; +export async function fetchProposalReactionQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .proposalReaction.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Emoji reactions to a local proposal or one of its comments + * + * @example + * ```ts + * await prefetchProposalReactionQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchProposalReactionQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ProposalReactionSelect>; + } +): Promise; +export async function prefetchProposalReactionQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: proposalReactionKeys.detail(params.id), + queryFn: () => + getClient() + .proposalReaction.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/useProposalReactionsQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/useProposalReactionsQuery.ts new file mode 100644 index 0000000000..581322abfb --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/useProposalReactionsQuery.ts @@ -0,0 +1,163 @@ +/** + * Emoji reactions to a local proposal or one of its comments + * @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 { proposalReactionKeys } from '../query-keys'; +import type { + ProposalReactionSelect, + ProposalReactionWithRelations, + ProposalReactionFilter, + ProposalReactionOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + ProposalReactionSelect, + ProposalReactionWithRelations, + ProposalReactionFilter, + ProposalReactionOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const proposalReactionsQueryKey = proposalReactionKeys.list; +/** + * Emoji reactions to a local proposal or one of its comments + * + * @example + * ```tsx + * const { data, isLoading } = useProposalReactionsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useProposalReactionsQuery< + S extends ProposalReactionSelect, + TData = { + proposalReactions: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, ProposalReactionSelect>; + } & Omit< + UseQueryOptions< + { + proposalReactions: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useProposalReactionsQuery( + params: { + selection: ListSelectionConfig< + ProposalReactionSelect, + ProposalReactionFilter, + ProposalReactionOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + ProposalReactionSelect, + ProposalReactionFilter, + ProposalReactionOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: proposalReactionKeys.list(args), + queryFn: () => getClient().proposalReaction.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Emoji reactions to a local proposal or one of its comments + * + * @example + * ```ts + * const data = await fetchProposalReactionsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchProposalReactionsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, ProposalReactionSelect>; +}): Promise<{ + proposalReactions: ConnectionResult>; +}>; +export async function fetchProposalReactionsQuery(params: { + selection: ListSelectionConfig< + ProposalReactionSelect, + ProposalReactionFilter, + ProposalReactionOrderBy + >; +}) { + const args = buildListSelectionArgs< + ProposalReactionSelect, + ProposalReactionFilter, + ProposalReactionOrderBy + >(params.selection); + return getClient().proposalReaction.findMany(args).unwrap(); +} +/** + * Emoji reactions to a local proposal or one of its comments + * + * @example + * ```ts + * await prefetchProposalReactionsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchProposalReactionsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, ProposalReactionSelect>; + } +): Promise; +export async function prefetchProposalReactionsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + ProposalReactionSelect, + ProposalReactionFilter, + ProposalReactionOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + ProposalReactionSelect, + ProposalReactionFilter, + ProposalReactionOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: proposalReactionKeys.list(args), + queryFn: () => getClient().proposalReaction.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/useProposalReviewQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/useProposalReviewQuery.ts new file mode 100644 index 0000000000..fa9e13fd50 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/useProposalReviewQuery.ts @@ -0,0 +1,138 @@ +/** + * Review verdicts on a proposal, each pinned to the commit reviewed + * @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 { proposalReviewKeys } from '../query-keys'; +import type { ProposalReviewSelect, ProposalReviewWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { ProposalReviewSelect, ProposalReviewWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const proposalReviewQueryKey = proposalReviewKeys.detail; +/** + * Review verdicts on a proposal, each pinned to the commit reviewed + * + * @example + * ```tsx + * const { data, isLoading } = useProposalReviewQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useProposalReviewQuery< + S extends ProposalReviewSelect, + TData = { + proposalReview: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ProposalReviewSelect>; + } & Omit< + UseQueryOptions< + { + proposalReview: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useProposalReviewQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: proposalReviewKeys.detail(params.id), + queryFn: () => + getClient() + .proposalReview.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Review verdicts on a proposal, each pinned to the commit reviewed + * + * @example + * ```ts + * const data = await fetchProposalReviewQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchProposalReviewQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ProposalReviewSelect>; +}): Promise<{ + proposalReview: InferSelectResult | null; +}>; +export async function fetchProposalReviewQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .proposalReview.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Review verdicts on a proposal, each pinned to the commit reviewed + * + * @example + * ```ts + * await prefetchProposalReviewQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchProposalReviewQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ProposalReviewSelect>; + } +): Promise; +export async function prefetchProposalReviewQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: proposalReviewKeys.detail(params.id), + queryFn: () => + getClient() + .proposalReview.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/useProposalReviewsQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/useProposalReviewsQuery.ts new file mode 100644 index 0000000000..7c5e77674c --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/useProposalReviewsQuery.ts @@ -0,0 +1,159 @@ +/** + * Review verdicts on a proposal, each pinned to the commit reviewed + * @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 { proposalReviewKeys } from '../query-keys'; +import type { + ProposalReviewSelect, + ProposalReviewWithRelations, + ProposalReviewFilter, + ProposalReviewOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + ProposalReviewSelect, + ProposalReviewWithRelations, + ProposalReviewFilter, + ProposalReviewOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const proposalReviewsQueryKey = proposalReviewKeys.list; +/** + * Review verdicts on a proposal, each pinned to the commit reviewed + * + * @example + * ```tsx + * const { data, isLoading } = useProposalReviewsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useProposalReviewsQuery< + S extends ProposalReviewSelect, + TData = { + proposalReviews: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, ProposalReviewSelect>; + } & Omit< + UseQueryOptions< + { + proposalReviews: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useProposalReviewsQuery( + params: { + selection: ListSelectionConfig< + ProposalReviewSelect, + ProposalReviewFilter, + ProposalReviewOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + ProposalReviewSelect, + ProposalReviewFilter, + ProposalReviewOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: proposalReviewKeys.list(args), + queryFn: () => getClient().proposalReview.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Review verdicts on a proposal, each pinned to the commit reviewed + * + * @example + * ```ts + * const data = await fetchProposalReviewsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchProposalReviewsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, ProposalReviewSelect>; +}): Promise<{ + proposalReviews: ConnectionResult>; +}>; +export async function fetchProposalReviewsQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs< + ProposalReviewSelect, + ProposalReviewFilter, + ProposalReviewOrderBy + >(params.selection); + return getClient().proposalReview.findMany(args).unwrap(); +} +/** + * Review verdicts on a proposal, each pinned to the commit reviewed + * + * @example + * ```ts + * await prefetchProposalReviewsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchProposalReviewsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, ProposalReviewSelect>; + } +): Promise; +export async function prefetchProposalReviewsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + ProposalReviewSelect, + ProposalReviewFilter, + ProposalReviewOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + ProposalReviewSelect, + ProposalReviewFilter, + ProposalReviewOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: proposalReviewKeys.list(args), + queryFn: () => getClient().proposalReview.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/useProposalsChunkQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/useProposalsChunkQuery.ts new file mode 100644 index 0000000000..1f92b6ac33 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/useProposalsChunkQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for ProposalsChunk + * @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 { proposalsChunkKeys } from '../query-keys'; +import type { ProposalsChunkSelect, ProposalsChunkWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { ProposalsChunkSelect, ProposalsChunkWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const proposalsChunkQueryKey = proposalsChunkKeys.detail; +/** + * Query hook for fetching a single ProposalsChunk + * + * @example + * ```tsx + * const { data, isLoading } = useProposalsChunkQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useProposalsChunkQuery< + S extends ProposalsChunkSelect, + TData = { + proposalsChunk: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ProposalsChunkSelect>; + } & Omit< + UseQueryOptions< + { + proposalsChunk: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useProposalsChunkQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: proposalsChunkKeys.detail(params.id), + queryFn: () => + getClient() + .proposalsChunk.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single ProposalsChunk without React hooks + * + * @example + * ```ts + * const data = await fetchProposalsChunkQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchProposalsChunkQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ProposalsChunkSelect>; +}): Promise<{ + proposalsChunk: InferSelectResult | null; +}>; +export async function fetchProposalsChunkQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .proposalsChunk.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single ProposalsChunk for SSR or cache warming + * + * @example + * ```ts + * await prefetchProposalsChunkQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchProposalsChunkQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ProposalsChunkSelect>; + } +): Promise; +export async function prefetchProposalsChunkQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: proposalsChunkKeys.detail(params.id), + queryFn: () => + getClient() + .proposalsChunk.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/useProposalsChunksQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/useProposalsChunksQuery.ts new file mode 100644 index 0000000000..e4cd4512a8 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/useProposalsChunksQuery.ts @@ -0,0 +1,159 @@ +/** + * List query hook for ProposalsChunk + * @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 { proposalsChunkKeys } from '../query-keys'; +import type { + ProposalsChunkSelect, + ProposalsChunkWithRelations, + ProposalsChunkFilter, + ProposalsChunkOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + ProposalsChunkSelect, + ProposalsChunkWithRelations, + ProposalsChunkFilter, + ProposalsChunkOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const proposalsChunksQueryKey = proposalsChunkKeys.list; +/** + * Query hook for fetching ProposalsChunk list + * + * @example + * ```tsx + * const { data, isLoading } = useProposalsChunksQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useProposalsChunksQuery< + S extends ProposalsChunkSelect, + TData = { + proposalsChunks: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, ProposalsChunkSelect>; + } & Omit< + UseQueryOptions< + { + proposalsChunks: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useProposalsChunksQuery( + params: { + selection: ListSelectionConfig< + ProposalsChunkSelect, + ProposalsChunkFilter, + ProposalsChunkOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + ProposalsChunkSelect, + ProposalsChunkFilter, + ProposalsChunkOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: proposalsChunkKeys.list(args), + queryFn: () => getClient().proposalsChunk.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch ProposalsChunk list without React hooks + * + * @example + * ```ts + * const data = await fetchProposalsChunksQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchProposalsChunksQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, ProposalsChunkSelect>; +}): Promise<{ + proposalsChunks: ConnectionResult>; +}>; +export async function fetchProposalsChunksQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs< + ProposalsChunkSelect, + ProposalsChunkFilter, + ProposalsChunkOrderBy + >(params.selection); + return getClient().proposalsChunk.findMany(args).unwrap(); +} +/** + * Prefetch ProposalsChunk list for SSR or cache warming + * + * @example + * ```ts + * await prefetchProposalsChunksQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchProposalsChunksQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, ProposalsChunkSelect>; + } +): Promise; +export async function prefetchProposalsChunksQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + ProposalsChunkSelect, + ProposalsChunkFilter, + ProposalsChunkOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + ProposalsChunkSelect, + ProposalsChunkFilter, + ProposalsChunkOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: proposalsChunkKeys.list(args), + queryFn: () => getClient().proposalsChunk.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/useProposalsQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/useProposalsQuery.ts new file mode 100644 index 0000000000..15ff1af26d --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/useProposalsQuery.ts @@ -0,0 +1,145 @@ +/** + * Proposals against a repository: issues, changes to merge, discussions and decisions + * @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 { proposalKeys } from '../query-keys'; +import type { + ProposalSelect, + ProposalWithRelations, + ProposalFilter, + ProposalOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + ProposalSelect, + ProposalWithRelations, + ProposalFilter, + ProposalOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const proposalsQueryKey = proposalKeys.list; +/** + * Proposals against a repository: issues, changes to merge, discussions and decisions + * + * @example + * ```tsx + * const { data, isLoading } = useProposalsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useProposalsQuery< + S extends ProposalSelect, + TData = { + proposals: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, ProposalSelect>; + } & Omit< + UseQueryOptions< + { + proposals: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useProposalsQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs( + params.selection + ); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: proposalKeys.list(args), + queryFn: () => getClient().proposal.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Proposals against a repository: issues, changes to merge, discussions and decisions + * + * @example + * ```ts + * const data = await fetchProposalsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchProposalsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, ProposalSelect>; +}): Promise<{ + proposals: ConnectionResult>; +}>; +export async function fetchProposalsQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs( + params.selection + ); + return getClient().proposal.findMany(args).unwrap(); +} +/** + * Proposals against a repository: issues, changes to merge, discussions and decisions + * + * @example + * ```ts + * await prefetchProposalsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchProposalsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, ProposalSelect>; + } +): Promise; +export async function prefetchProposalsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs( + params.selection + ); + await queryClient.prefetchQuery({ + queryKey: proposalKeys.list(args), + queryFn: () => getClient().proposal.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/useRegistriesQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/useRegistriesQuery.ts new file mode 100644 index 0000000000..6c79bd7aef --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/useRegistriesQuery.ts @@ -0,0 +1,145 @@ +/** + * Artifact registries this scope pulls from or pushes to (OCI images, npm packages), platform-run or external + * @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 { registryKeys } from '../query-keys'; +import type { + RegistrySelect, + RegistryWithRelations, + RegistryFilter, + RegistryOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + RegistrySelect, + RegistryWithRelations, + RegistryFilter, + RegistryOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const registriesQueryKey = registryKeys.list; +/** + * Artifact registries this scope pulls from or pushes to (OCI images, npm packages), platform-run or external + * + * @example + * ```tsx + * const { data, isLoading } = useRegistriesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useRegistriesQuery< + S extends RegistrySelect, + TData = { + registries: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, RegistrySelect>; + } & Omit< + UseQueryOptions< + { + registries: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useRegistriesQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs( + params.selection + ); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: registryKeys.list(args), + queryFn: () => getClient().registry.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Artifact registries this scope pulls from or pushes to (OCI images, npm packages), platform-run or external + * + * @example + * ```ts + * const data = await fetchRegistriesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchRegistriesQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, RegistrySelect>; +}): Promise<{ + registries: ConnectionResult>; +}>; +export async function fetchRegistriesQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs( + params.selection + ); + return getClient().registry.findMany(args).unwrap(); +} +/** + * Artifact registries this scope pulls from or pushes to (OCI images, npm packages), platform-run or external + * + * @example + * ```ts + * await prefetchRegistriesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchRegistriesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, RegistrySelect>; + } +): Promise; +export async function prefetchRegistriesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs( + params.selection + ); + await queryClient.prefetchQuery({ + queryKey: registryKeys.list(args), + queryFn: () => getClient().registry.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/useRegistryBindingQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/useRegistryBindingQuery.ts new file mode 100644 index 0000000000..f6aa4fbd4f --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/useRegistryBindingQuery.ts @@ -0,0 +1,138 @@ +/** + * Binds a namespace to an installed container registry for a lane (realm) — the reconciler projects that registry's credentials into the namespace as an image pull secret + * @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 { registryBindingKeys } from '../query-keys'; +import type { RegistryBindingSelect, RegistryBindingWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { RegistryBindingSelect, RegistryBindingWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const registryBindingQueryKey = registryBindingKeys.detail; +/** + * Binds a namespace to an installed container registry for a lane (realm) — the reconciler projects that registry's credentials into the namespace as an image pull secret + * + * @example + * ```tsx + * const { data, isLoading } = useRegistryBindingQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useRegistryBindingQuery< + S extends RegistryBindingSelect, + TData = { + registryBinding: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, RegistryBindingSelect>; + } & Omit< + UseQueryOptions< + { + registryBinding: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useRegistryBindingQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: registryBindingKeys.detail(params.id), + queryFn: () => + getClient() + .registryBinding.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Binds a namespace to an installed container registry for a lane (realm) — the reconciler projects that registry's credentials into the namespace as an image pull secret + * + * @example + * ```ts + * const data = await fetchRegistryBindingQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchRegistryBindingQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, RegistryBindingSelect>; +}): Promise<{ + registryBinding: InferSelectResult | null; +}>; +export async function fetchRegistryBindingQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .registryBinding.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Binds a namespace to an installed container registry for a lane (realm) — the reconciler projects that registry's credentials into the namespace as an image pull secret + * + * @example + * ```ts + * await prefetchRegistryBindingQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchRegistryBindingQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, RegistryBindingSelect>; + } +): Promise; +export async function prefetchRegistryBindingQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: registryBindingKeys.detail(params.id), + queryFn: () => + getClient() + .registryBinding.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/useRegistryBindingsQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/useRegistryBindingsQuery.ts new file mode 100644 index 0000000000..377a2ff72f --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/useRegistryBindingsQuery.ts @@ -0,0 +1,163 @@ +/** + * Binds a namespace to an installed container registry for a lane (realm) — the reconciler projects that registry's credentials into the namespace as an image pull secret + * @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 { registryBindingKeys } from '../query-keys'; +import type { + RegistryBindingSelect, + RegistryBindingWithRelations, + RegistryBindingFilter, + RegistryBindingOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + RegistryBindingSelect, + RegistryBindingWithRelations, + RegistryBindingFilter, + RegistryBindingOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const registryBindingsQueryKey = registryBindingKeys.list; +/** + * Binds a namespace to an installed container registry for a lane (realm) — the reconciler projects that registry's credentials into the namespace as an image pull secret + * + * @example + * ```tsx + * const { data, isLoading } = useRegistryBindingsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useRegistryBindingsQuery< + S extends RegistryBindingSelect, + TData = { + registryBindings: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, RegistryBindingSelect>; + } & Omit< + UseQueryOptions< + { + registryBindings: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useRegistryBindingsQuery( + params: { + selection: ListSelectionConfig< + RegistryBindingSelect, + RegistryBindingFilter, + RegistryBindingOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + RegistryBindingSelect, + RegistryBindingFilter, + RegistryBindingOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: registryBindingKeys.list(args), + queryFn: () => getClient().registryBinding.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Binds a namespace to an installed container registry for a lane (realm) — the reconciler projects that registry's credentials into the namespace as an image pull secret + * + * @example + * ```ts + * const data = await fetchRegistryBindingsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchRegistryBindingsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, RegistryBindingSelect>; +}): Promise<{ + registryBindings: ConnectionResult>; +}>; +export async function fetchRegistryBindingsQuery(params: { + selection: ListSelectionConfig< + RegistryBindingSelect, + RegistryBindingFilter, + RegistryBindingOrderBy + >; +}) { + const args = buildListSelectionArgs< + RegistryBindingSelect, + RegistryBindingFilter, + RegistryBindingOrderBy + >(params.selection); + return getClient().registryBinding.findMany(args).unwrap(); +} +/** + * Binds a namespace to an installed container registry for a lane (realm) — the reconciler projects that registry's credentials into the namespace as an image pull secret + * + * @example + * ```ts + * await prefetchRegistryBindingsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchRegistryBindingsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, RegistryBindingSelect>; + } +): Promise; +export async function prefetchRegistryBindingsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + RegistryBindingSelect, + RegistryBindingFilter, + RegistryBindingOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + RegistryBindingSelect, + RegistryBindingFilter, + RegistryBindingOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: registryBindingKeys.list(args), + queryFn: () => getClient().registryBinding.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/useRegistryGrantQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/useRegistryGrantQuery.ts new file mode 100644 index 0000000000..eac6fb0e52 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/useRegistryGrantQuery.ts @@ -0,0 +1,138 @@ +/** + * Grants that make a registry usable by one scope + * @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 { registryGrantKeys } from '../query-keys'; +import type { RegistryGrantSelect, RegistryGrantWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { RegistryGrantSelect, RegistryGrantWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const registryGrantQueryKey = registryGrantKeys.detail; +/** + * Grants that make a registry usable by one scope + * + * @example + * ```tsx + * const { data, isLoading } = useRegistryGrantQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useRegistryGrantQuery< + S extends RegistryGrantSelect, + TData = { + registryGrant: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, RegistryGrantSelect>; + } & Omit< + UseQueryOptions< + { + registryGrant: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useRegistryGrantQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: registryGrantKeys.detail(params.id), + queryFn: () => + getClient() + .registryGrant.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Grants that make a registry usable by one scope + * + * @example + * ```ts + * const data = await fetchRegistryGrantQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchRegistryGrantQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, RegistryGrantSelect>; +}): Promise<{ + registryGrant: InferSelectResult | null; +}>; +export async function fetchRegistryGrantQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .registryGrant.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Grants that make a registry usable by one scope + * + * @example + * ```ts + * await prefetchRegistryGrantQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchRegistryGrantQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, RegistryGrantSelect>; + } +): Promise; +export async function prefetchRegistryGrantQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: registryGrantKeys.detail(params.id), + queryFn: () => + getClient() + .registryGrant.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/useRegistryGrantsQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/useRegistryGrantsQuery.ts new file mode 100644 index 0000000000..af9a23afea --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/useRegistryGrantsQuery.ts @@ -0,0 +1,151 @@ +/** + * Grants that make a registry usable by one scope + * @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 { registryGrantKeys } from '../query-keys'; +import type { + RegistryGrantSelect, + RegistryGrantWithRelations, + RegistryGrantFilter, + RegistryGrantOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + RegistryGrantSelect, + RegistryGrantWithRelations, + RegistryGrantFilter, + RegistryGrantOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const registryGrantsQueryKey = registryGrantKeys.list; +/** + * Grants that make a registry usable by one scope + * + * @example + * ```tsx + * const { data, isLoading } = useRegistryGrantsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useRegistryGrantsQuery< + S extends RegistryGrantSelect, + TData = { + registryGrants: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, RegistryGrantSelect>; + } & Omit< + UseQueryOptions< + { + registryGrants: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useRegistryGrantsQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + RegistryGrantSelect, + RegistryGrantFilter, + RegistryGrantOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: registryGrantKeys.list(args), + queryFn: () => getClient().registryGrant.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Grants that make a registry usable by one scope + * + * @example + * ```ts + * const data = await fetchRegistryGrantsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchRegistryGrantsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, RegistryGrantSelect>; +}): Promise<{ + registryGrants: ConnectionResult>; +}>; +export async function fetchRegistryGrantsQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs< + RegistryGrantSelect, + RegistryGrantFilter, + RegistryGrantOrderBy + >(params.selection); + return getClient().registryGrant.findMany(args).unwrap(); +} +/** + * Grants that make a registry usable by one scope + * + * @example + * ```ts + * await prefetchRegistryGrantsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchRegistryGrantsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, RegistryGrantSelect>; + } +): Promise; +export async function prefetchRegistryGrantsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs< + RegistryGrantSelect, + RegistryGrantFilter, + RegistryGrantOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: registryGrantKeys.list(args), + queryFn: () => getClient().registryGrant.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/useRegistryQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/useRegistryQuery.ts new file mode 100644 index 0000000000..85c9be1591 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/useRegistryQuery.ts @@ -0,0 +1,138 @@ +/** + * Artifact registries this scope pulls from or pushes to (OCI images, npm packages), platform-run or external + * @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 { registryKeys } from '../query-keys'; +import type { RegistrySelect, RegistryWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { RegistrySelect, RegistryWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const registryQueryKey = registryKeys.detail; +/** + * Artifact registries this scope pulls from or pushes to (OCI images, npm packages), platform-run or external + * + * @example + * ```tsx + * const { data, isLoading } = useRegistryQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useRegistryQuery< + S extends RegistrySelect, + TData = { + registry: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, RegistrySelect>; + } & Omit< + UseQueryOptions< + { + registry: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useRegistryQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: registryKeys.detail(params.id), + queryFn: () => + getClient() + .registry.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Artifact registries this scope pulls from or pushes to (OCI images, npm packages), platform-run or external + * + * @example + * ```ts + * const data = await fetchRegistryQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchRegistryQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, RegistrySelect>; +}): Promise<{ + registry: InferSelectResult | null; +}>; +export async function fetchRegistryQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .registry.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Artifact registries this scope pulls from or pushes to (OCI images, npm packages), platform-run or external + * + * @example + * ```ts + * await prefetchRegistryQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchRegistryQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, RegistrySelect>; + } +): Promise; +export async function prefetchRegistryQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: registryKeys.detail(params.id), + queryFn: () => + getClient() + .registry.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/useRepositoriesQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/useRepositoriesQuery.ts new file mode 100644 index 0000000000..742550412a --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/useRepositoriesQuery.ts @@ -0,0 +1,145 @@ +/** + * Source repositories, hosted locally or on an external provider + * @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 { repositoryKeys } from '../query-keys'; +import type { + RepositorySelect, + RepositoryWithRelations, + RepositoryFilter, + RepositoryOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + RepositorySelect, + RepositoryWithRelations, + RepositoryFilter, + RepositoryOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const repositoriesQueryKey = repositoryKeys.list; +/** + * Source repositories, hosted locally or on an external provider + * + * @example + * ```tsx + * const { data, isLoading } = useRepositoriesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useRepositoriesQuery< + S extends RepositorySelect, + TData = { + repositories: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, RepositorySelect>; + } & Omit< + UseQueryOptions< + { + repositories: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useRepositoriesQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs( + params.selection + ); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: repositoryKeys.list(args), + queryFn: () => getClient().repository.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Source repositories, hosted locally or on an external provider + * + * @example + * ```ts + * const data = await fetchRepositoriesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchRepositoriesQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, RepositorySelect>; +}): Promise<{ + repositories: ConnectionResult>; +}>; +export async function fetchRepositoriesQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs( + params.selection + ); + return getClient().repository.findMany(args).unwrap(); +} +/** + * Source repositories, hosted locally or on an external provider + * + * @example + * ```ts + * await prefetchRepositoriesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchRepositoriesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, RepositorySelect>; + } +): Promise; +export async function prefetchRepositoriesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs( + params.selection + ); + await queryClient.prefetchQuery({ + queryKey: repositoryKeys.list(args), + queryFn: () => getClient().repository.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/useRepositoryEventQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/useRepositoryEventQuery.ts new file mode 100644 index 0000000000..358b34acc3 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/useRepositoryEventQuery.ts @@ -0,0 +1,138 @@ +/** + * Normalized repository events from local hooks and external providers + * @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 { repositoryEventKeys } from '../query-keys'; +import type { RepositoryEventSelect, RepositoryEventWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { RepositoryEventSelect, RepositoryEventWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const repositoryEventQueryKey = repositoryEventKeys.detail; +/** + * Normalized repository events from local hooks and external providers + * + * @example + * ```tsx + * const { data, isLoading } = useRepositoryEventQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useRepositoryEventQuery< + S extends RepositoryEventSelect, + TData = { + repositoryEvent: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, RepositoryEventSelect>; + } & Omit< + UseQueryOptions< + { + repositoryEvent: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useRepositoryEventQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: repositoryEventKeys.detail(params.id), + queryFn: () => + getClient() + .repositoryEvent.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Normalized repository events from local hooks and external providers + * + * @example + * ```ts + * const data = await fetchRepositoryEventQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchRepositoryEventQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, RepositoryEventSelect>; +}): Promise<{ + repositoryEvent: InferSelectResult | null; +}>; +export async function fetchRepositoryEventQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .repositoryEvent.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Normalized repository events from local hooks and external providers + * + * @example + * ```ts + * await prefetchRepositoryEventQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchRepositoryEventQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, RepositoryEventSelect>; + } +): Promise; +export async function prefetchRepositoryEventQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: repositoryEventKeys.detail(params.id), + queryFn: () => + getClient() + .repositoryEvent.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/useRepositoryEventsQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/useRepositoryEventsQuery.ts new file mode 100644 index 0000000000..9f38bdeba9 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/useRepositoryEventsQuery.ts @@ -0,0 +1,163 @@ +/** + * Normalized repository events from local hooks and external providers + * @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 { repositoryEventKeys } from '../query-keys'; +import type { + RepositoryEventSelect, + RepositoryEventWithRelations, + RepositoryEventFilter, + RepositoryEventOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + RepositoryEventSelect, + RepositoryEventWithRelations, + RepositoryEventFilter, + RepositoryEventOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const repositoryEventsQueryKey = repositoryEventKeys.list; +/** + * Normalized repository events from local hooks and external providers + * + * @example + * ```tsx + * const { data, isLoading } = useRepositoryEventsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useRepositoryEventsQuery< + S extends RepositoryEventSelect, + TData = { + repositoryEvents: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, RepositoryEventSelect>; + } & Omit< + UseQueryOptions< + { + repositoryEvents: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useRepositoryEventsQuery( + params: { + selection: ListSelectionConfig< + RepositoryEventSelect, + RepositoryEventFilter, + RepositoryEventOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + RepositoryEventSelect, + RepositoryEventFilter, + RepositoryEventOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: repositoryEventKeys.list(args), + queryFn: () => getClient().repositoryEvent.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Normalized repository events from local hooks and external providers + * + * @example + * ```ts + * const data = await fetchRepositoryEventsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchRepositoryEventsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, RepositoryEventSelect>; +}): Promise<{ + repositoryEvents: ConnectionResult>; +}>; +export async function fetchRepositoryEventsQuery(params: { + selection: ListSelectionConfig< + RepositoryEventSelect, + RepositoryEventFilter, + RepositoryEventOrderBy + >; +}) { + const args = buildListSelectionArgs< + RepositoryEventSelect, + RepositoryEventFilter, + RepositoryEventOrderBy + >(params.selection); + return getClient().repositoryEvent.findMany(args).unwrap(); +} +/** + * Normalized repository events from local hooks and external providers + * + * @example + * ```ts + * await prefetchRepositoryEventsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchRepositoryEventsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, RepositoryEventSelect>; + } +): Promise; +export async function prefetchRepositoryEventsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + RepositoryEventSelect, + RepositoryEventFilter, + RepositoryEventOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + RepositoryEventSelect, + RepositoryEventFilter, + RepositoryEventOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: repositoryEventKeys.list(args), + queryFn: () => getClient().repositoryEvent.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/useRepositoryQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/useRepositoryQuery.ts new file mode 100644 index 0000000000..d1503c67ed --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/useRepositoryQuery.ts @@ -0,0 +1,138 @@ +/** + * Source repositories, hosted locally or on an external provider + * @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 { repositoryKeys } from '../query-keys'; +import type { RepositorySelect, RepositoryWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { RepositorySelect, RepositoryWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const repositoryQueryKey = repositoryKeys.detail; +/** + * Source repositories, hosted locally or on an external provider + * + * @example + * ```tsx + * const { data, isLoading } = useRepositoryQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useRepositoryQuery< + S extends RepositorySelect, + TData = { + repository: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, RepositorySelect>; + } & Omit< + UseQueryOptions< + { + repository: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useRepositoryQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: repositoryKeys.detail(params.id), + queryFn: () => + getClient() + .repository.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Source repositories, hosted locally or on an external provider + * + * @example + * ```ts + * const data = await fetchRepositoryQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchRepositoryQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, RepositorySelect>; +}): Promise<{ + repository: InferSelectResult | null; +}>; +export async function fetchRepositoryQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .repository.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Source repositories, hosted locally or on an external provider + * + * @example + * ```ts + * await prefetchRepositoryQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchRepositoryQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, RepositorySelect>; + } +): Promise; +export async function prefetchRepositoryQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: repositoryKeys.detail(params.id), + queryFn: () => + getClient() + .repository.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/useRepositoryRequiredCheckQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/useRepositoryRequiredCheckQuery.ts new file mode 100644 index 0000000000..1d6103f6d4 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/useRepositoryRequiredCheckQuery.ts @@ -0,0 +1,146 @@ +/** + * Workflows required to pass before a repository proposal merges + * @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 { repositoryRequiredCheckKeys } from '../query-keys'; +import type { + RepositoryRequiredCheckSelect, + RepositoryRequiredCheckWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + RepositoryRequiredCheckSelect, + RepositoryRequiredCheckWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const repositoryRequiredCheckQueryKey = repositoryRequiredCheckKeys.detail; +/** + * Workflows required to pass before a repository proposal merges + * + * @example + * ```tsx + * const { data, isLoading } = useRepositoryRequiredCheckQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useRepositoryRequiredCheckQuery< + S extends RepositoryRequiredCheckSelect, + TData = { + repositoryRequiredCheck: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, RepositoryRequiredCheckSelect>; + } & Omit< + UseQueryOptions< + { + repositoryRequiredCheck: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useRepositoryRequiredCheckQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: repositoryRequiredCheckKeys.detail(params.id), + queryFn: () => + getClient() + .repositoryRequiredCheck.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Workflows required to pass before a repository proposal merges + * + * @example + * ```ts + * const data = await fetchRepositoryRequiredCheckQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchRepositoryRequiredCheckQuery< + S extends RepositoryRequiredCheckSelect, +>(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, RepositoryRequiredCheckSelect>; +}): Promise<{ + repositoryRequiredCheck: InferSelectResult | null; +}>; +export async function fetchRepositoryRequiredCheckQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .repositoryRequiredCheck.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Workflows required to pass before a repository proposal merges + * + * @example + * ```ts + * await prefetchRepositoryRequiredCheckQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchRepositoryRequiredCheckQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, RepositoryRequiredCheckSelect>; + } +): Promise; +export async function prefetchRepositoryRequiredCheckQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: repositoryRequiredCheckKeys.detail(params.id), + queryFn: () => + getClient() + .repositoryRequiredCheck.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/useRepositoryRequiredChecksQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/useRepositoryRequiredChecksQuery.ts new file mode 100644 index 0000000000..cf26e639fb --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/useRepositoryRequiredChecksQuery.ts @@ -0,0 +1,182 @@ +/** + * Workflows required to pass before a repository proposal merges + * @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 { repositoryRequiredCheckKeys } from '../query-keys'; +import type { + RepositoryRequiredCheckSelect, + RepositoryRequiredCheckWithRelations, + RepositoryRequiredCheckFilter, + RepositoryRequiredCheckOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + RepositoryRequiredCheckSelect, + RepositoryRequiredCheckWithRelations, + RepositoryRequiredCheckFilter, + RepositoryRequiredCheckOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const repositoryRequiredChecksQueryKey = repositoryRequiredCheckKeys.list; +/** + * Workflows required to pass before a repository proposal merges + * + * @example + * ```tsx + * const { data, isLoading } = useRepositoryRequiredChecksQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useRepositoryRequiredChecksQuery< + S extends RepositoryRequiredCheckSelect, + TData = { + repositoryRequiredChecks: ConnectionResult< + InferSelectResult + >; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, RepositoryRequiredCheckSelect>; + } & Omit< + UseQueryOptions< + { + repositoryRequiredChecks: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useRepositoryRequiredChecksQuery( + params: { + selection: ListSelectionConfig< + RepositoryRequiredCheckSelect, + RepositoryRequiredCheckFilter, + RepositoryRequiredCheckOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + RepositoryRequiredCheckSelect, + RepositoryRequiredCheckFilter, + RepositoryRequiredCheckOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: repositoryRequiredCheckKeys.list(args), + queryFn: () => getClient().repositoryRequiredCheck.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Workflows required to pass before a repository proposal merges + * + * @example + * ```ts + * const data = await fetchRepositoryRequiredChecksQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchRepositoryRequiredChecksQuery< + S extends RepositoryRequiredCheckSelect, +>(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, RepositoryRequiredCheckSelect>; +}): Promise<{ + repositoryRequiredChecks: ConnectionResult< + InferSelectResult + >; +}>; +export async function fetchRepositoryRequiredChecksQuery(params: { + selection: ListSelectionConfig< + RepositoryRequiredCheckSelect, + RepositoryRequiredCheckFilter, + RepositoryRequiredCheckOrderBy + >; +}) { + const args = buildListSelectionArgs< + RepositoryRequiredCheckSelect, + RepositoryRequiredCheckFilter, + RepositoryRequiredCheckOrderBy + >(params.selection); + return getClient().repositoryRequiredCheck.findMany(args).unwrap(); +} +/** + * Workflows required to pass before a repository proposal merges + * + * @example + * ```ts + * await prefetchRepositoryRequiredChecksQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchRepositoryRequiredChecksQuery< + S extends RepositoryRequiredCheckSelect, +>( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, RepositoryRequiredCheckSelect>; + } +): Promise; +export async function prefetchRepositoryRequiredChecksQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + RepositoryRequiredCheckSelect, + RepositoryRequiredCheckFilter, + RepositoryRequiredCheckOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + RepositoryRequiredCheckSelect, + RepositoryRequiredCheckFilter, + RepositoryRequiredCheckOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: repositoryRequiredCheckKeys.list(args), + queryFn: () => getClient().repositoryRequiredCheck.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/useRepositoryWorkflowQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/useRepositoryWorkflowQuery.ts new file mode 100644 index 0000000000..a0d353dda0 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/useRepositoryWorkflowQuery.ts @@ -0,0 +1,144 @@ +/** + * Bindings from a repository event to the flow graph that should run + * @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 { repositoryWorkflowKeys } from '../query-keys'; +import type { + RepositoryWorkflowSelect, + RepositoryWorkflowWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + RepositoryWorkflowSelect, + RepositoryWorkflowWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const repositoryWorkflowQueryKey = repositoryWorkflowKeys.detail; +/** + * Bindings from a repository event to the flow graph that should run + * + * @example + * ```tsx + * const { data, isLoading } = useRepositoryWorkflowQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useRepositoryWorkflowQuery< + S extends RepositoryWorkflowSelect, + TData = { + repositoryWorkflow: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, RepositoryWorkflowSelect>; + } & Omit< + UseQueryOptions< + { + repositoryWorkflow: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useRepositoryWorkflowQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: repositoryWorkflowKeys.detail(params.id), + queryFn: () => + getClient() + .repositoryWorkflow.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Bindings from a repository event to the flow graph that should run + * + * @example + * ```ts + * const data = await fetchRepositoryWorkflowQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchRepositoryWorkflowQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, RepositoryWorkflowSelect>; +}): Promise<{ + repositoryWorkflow: InferSelectResult | null; +}>; +export async function fetchRepositoryWorkflowQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .repositoryWorkflow.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Bindings from a repository event to the flow graph that should run + * + * @example + * ```ts + * await prefetchRepositoryWorkflowQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchRepositoryWorkflowQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, RepositoryWorkflowSelect>; + } +): Promise; +export async function prefetchRepositoryWorkflowQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: repositoryWorkflowKeys.detail(params.id), + queryFn: () => + getClient() + .repositoryWorkflow.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/useRepositoryWorkflowsQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/useRepositoryWorkflowsQuery.ts new file mode 100644 index 0000000000..e498b68c4c --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/useRepositoryWorkflowsQuery.ts @@ -0,0 +1,171 @@ +/** + * Bindings from a repository event to the flow graph that should run + * @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 { repositoryWorkflowKeys } from '../query-keys'; +import type { + RepositoryWorkflowSelect, + RepositoryWorkflowWithRelations, + RepositoryWorkflowFilter, + RepositoryWorkflowOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + RepositoryWorkflowSelect, + RepositoryWorkflowWithRelations, + RepositoryWorkflowFilter, + RepositoryWorkflowOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const repositoryWorkflowsQueryKey = repositoryWorkflowKeys.list; +/** + * Bindings from a repository event to the flow graph that should run + * + * @example + * ```tsx + * const { data, isLoading } = useRepositoryWorkflowsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useRepositoryWorkflowsQuery< + S extends RepositoryWorkflowSelect, + TData = { + repositoryWorkflows: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, RepositoryWorkflowSelect>; + } & Omit< + UseQueryOptions< + { + repositoryWorkflows: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useRepositoryWorkflowsQuery( + params: { + selection: ListSelectionConfig< + RepositoryWorkflowSelect, + RepositoryWorkflowFilter, + RepositoryWorkflowOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + RepositoryWorkflowSelect, + RepositoryWorkflowFilter, + RepositoryWorkflowOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: repositoryWorkflowKeys.list(args), + queryFn: () => getClient().repositoryWorkflow.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Bindings from a repository event to the flow graph that should run + * + * @example + * ```ts + * const data = await fetchRepositoryWorkflowsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchRepositoryWorkflowsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, RepositoryWorkflowSelect>; +}): Promise<{ + repositoryWorkflows: ConnectionResult>; +}>; +export async function fetchRepositoryWorkflowsQuery(params: { + selection: ListSelectionConfig< + RepositoryWorkflowSelect, + RepositoryWorkflowFilter, + RepositoryWorkflowOrderBy + >; +}) { + const args = buildListSelectionArgs< + RepositoryWorkflowSelect, + RepositoryWorkflowFilter, + RepositoryWorkflowOrderBy + >(params.selection); + return getClient().repositoryWorkflow.findMany(args).unwrap(); +} +/** + * Bindings from a repository event to the flow graph that should run + * + * @example + * ```ts + * await prefetchRepositoryWorkflowsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchRepositoryWorkflowsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, RepositoryWorkflowSelect>; + } +): Promise; +export async function prefetchRepositoryWorkflowsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + RepositoryWorkflowSelect, + RepositoryWorkflowFilter, + RepositoryWorkflowOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + RepositoryWorkflowSelect, + RepositoryWorkflowFilter, + RepositoryWorkflowOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: repositoryWorkflowKeys.list(args), + queryFn: () => getClient().repositoryWorkflow.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/useResourceObservedStoragesQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/useResourceObservedStoragesQuery.ts new file mode 100644 index 0000000000..18f42cd719 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/useResourceObservedStoragesQuery.ts @@ -0,0 +1,182 @@ +/** + * List query hook for ResourceObservedStorage + * @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 { resourceObservedStorageKeys } from '../query-keys'; +import type { + ResourceObservedStorageSelect, + ResourceObservedStorageWithRelations, + ResourceObservedStorageFilter, + ResourceObservedStorageOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + ResourceObservedStorageSelect, + ResourceObservedStorageWithRelations, + ResourceObservedStorageFilter, + ResourceObservedStorageOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const resourceObservedStoragesQueryKey = resourceObservedStorageKeys.list; +/** + * Query hook for fetching ResourceObservedStorage list + * + * @example + * ```tsx + * const { data, isLoading } = useResourceObservedStoragesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useResourceObservedStoragesQuery< + S extends ResourceObservedStorageSelect, + TData = { + resourceObservedStorages: ConnectionResult< + InferSelectResult + >; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, ResourceObservedStorageSelect>; + } & Omit< + UseQueryOptions< + { + resourceObservedStorages: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useResourceObservedStoragesQuery( + params: { + selection: ListSelectionConfig< + ResourceObservedStorageSelect, + ResourceObservedStorageFilter, + ResourceObservedStorageOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + ResourceObservedStorageSelect, + ResourceObservedStorageFilter, + ResourceObservedStorageOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: resourceObservedStorageKeys.list(args), + queryFn: () => getClient().resourceObservedStorage.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch ResourceObservedStorage list without React hooks + * + * @example + * ```ts + * const data = await fetchResourceObservedStoragesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchResourceObservedStoragesQuery< + S extends ResourceObservedStorageSelect, +>(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, ResourceObservedStorageSelect>; +}): Promise<{ + resourceObservedStorages: ConnectionResult< + InferSelectResult + >; +}>; +export async function fetchResourceObservedStoragesQuery(params: { + selection: ListSelectionConfig< + ResourceObservedStorageSelect, + ResourceObservedStorageFilter, + ResourceObservedStorageOrderBy + >; +}) { + const args = buildListSelectionArgs< + ResourceObservedStorageSelect, + ResourceObservedStorageFilter, + ResourceObservedStorageOrderBy + >(params.selection); + return getClient().resourceObservedStorage.findMany(args).unwrap(); +} +/** + * Prefetch ResourceObservedStorage list for SSR or cache warming + * + * @example + * ```ts + * await prefetchResourceObservedStoragesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchResourceObservedStoragesQuery< + S extends ResourceObservedStorageSelect, +>( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, ResourceObservedStorageSelect>; + } +): Promise; +export async function prefetchResourceObservedStoragesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + ResourceObservedStorageSelect, + ResourceObservedStorageFilter, + ResourceObservedStorageOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + ResourceObservedStorageSelect, + ResourceObservedStorageFilter, + ResourceObservedStorageOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: resourceObservedStorageKeys.list(args), + queryFn: () => getClient().resourceObservedStorage.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 4958367027..5957e56c88 100644 --- a/sdk/constructive-react/src/compute/hooks/query-keys.ts +++ b/sdk/constructive-react/src/compute/hooks/query-keys.ts @@ -19,6 +19,33 @@ // Entity Query Keys // ============================================================================ +export const buildKeys = { + /** All build queries */ all: ['build'] as const, + /** List query keys */ lists: () => [...buildKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...buildKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...buildKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...buildKeys.details(), id] as const, +} as const; +export const buildStepKeys = { + /** All buildStep queries */ all: ['buildstep'] as const, + /** List query keys */ lists: () => [...buildStepKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...buildStepKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...buildStepKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...buildStepKeys.details(), id] as const, +} as const; +export const builderBindingKeys = { + /** All builderBinding queries */ all: ['builderbinding'] as const, + /** List query keys */ lists: () => [...builderBindingKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...builderBindingKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...builderBindingKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...builderBindingKeys.details(), id] as const, +} as const; export const contentPresetKeys = { /** All contentPreset queries */ all: ['contentpreset'] as const, /** List query keys */ lists: () => [...contentPresetKeys.all, 'list'] as const, @@ -28,6 +55,102 @@ export const contentPresetKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...contentPresetKeys.details(), id] as const, } as const; +export const databaseFunctionGraphKeys = { + /** All databaseFunctionGraph queries */ all: ['databasefunctiongraph'] as const, + /** List query keys */ lists: () => [...databaseFunctionGraphKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...databaseFunctionGraphKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...databaseFunctionGraphKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...databaseFunctionGraphKeys.details(), id] as const, +} as const; +export const databaseFunctionGraphExecutionKeys = { + /** All databaseFunctionGraphExecution queries */ all: [ + 'databasefunctiongraphexecution', + ] as const, + /** List query keys */ lists: () => [...databaseFunctionGraphExecutionKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...databaseFunctionGraphExecutionKeys.lists(), variables] as const, + /** Detail query keys */ details: () => + [...databaseFunctionGraphExecutionKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...databaseFunctionGraphExecutionKeys.details(), id] as const, +} as const; +export const databaseFunctionGraphExecutionNodeStateKeys = { + /** All databaseFunctionGraphExecutionNodeState queries */ all: [ + 'databasefunctiongraphexecutionnodestate', + ] as const, + /** List query keys */ lists: () => + [...databaseFunctionGraphExecutionNodeStateKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...databaseFunctionGraphExecutionNodeStateKeys.lists(), variables] as const, + /** Detail query keys */ details: () => + [...databaseFunctionGraphExecutionNodeStateKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...databaseFunctionGraphExecutionNodeStateKeys.details(), id] as const, +} as const; +export const databaseFunctionGraphExecutionOutputKeys = { + /** All databaseFunctionGraphExecutionOutput queries */ all: [ + 'databasefunctiongraphexecutionoutput', + ] as const, + /** List query keys */ lists: () => + [...databaseFunctionGraphExecutionOutputKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...databaseFunctionGraphExecutionOutputKeys.lists(), variables] as const, + /** Detail query keys */ details: () => + [...databaseFunctionGraphExecutionOutputKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...databaseFunctionGraphExecutionOutputKeys.details(), id] as const, +} as const; +export const databaseGraphCommitKeys = { + /** All databaseGraphCommit queries */ all: ['databasegraphcommit'] as const, + /** List query keys */ lists: () => [...databaseGraphCommitKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...databaseGraphCommitKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...databaseGraphCommitKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...databaseGraphCommitKeys.details(), id] as const, +} as const; +export const databaseGraphGetAllTreeNodesRecordKeys = { + /** All databaseGraphGetAllTreeNodesRecord queries */ all: [ + 'databasegraphgetalltreenodesrecord', + ] as const, + /** List query keys */ lists: () => + [...databaseGraphGetAllTreeNodesRecordKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...databaseGraphGetAllTreeNodesRecordKeys.lists(), variables] as const, + /** Detail query keys */ details: () => + [...databaseGraphGetAllTreeNodesRecordKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...databaseGraphGetAllTreeNodesRecordKeys.details(), id] as const, +} as const; +export const databaseGraphObjectKeys = { + /** All databaseGraphObject queries */ all: ['databasegraphobject'] as const, + /** List query keys */ lists: () => [...databaseGraphObjectKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...databaseGraphObjectKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...databaseGraphObjectKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...databaseGraphObjectKeys.details(), id] as const, +} as const; +export const databaseGraphRefKeys = { + /** All databaseGraphRef queries */ all: ['databasegraphref'] as const, + /** List query keys */ lists: () => [...databaseGraphRefKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...databaseGraphRefKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...databaseGraphRefKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...databaseGraphRefKeys.details(), id] as const, +} as const; +export const databaseGraphStoreKeys = { + /** All databaseGraphStore queries */ all: ['databasegraphstore'] as const, + /** List query keys */ lists: () => [...databaseGraphStoreKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...databaseGraphStoreKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...databaseGraphStoreKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...databaseGraphStoreKeys.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, @@ -194,6 +317,24 @@ export const getAllTreeNodesRecordKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...getAllTreeNodesRecordKeys.details(), id] as const, } as const; +export const imageKeys = { + /** All image queries */ all: ['image'] as const, + /** List query keys */ lists: () => [...imageKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...imageKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...imageKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...imageKeys.details(), id] as const, +} as const; +export const imageGrantKeys = { + /** All imageGrant queries */ all: ['imagegrant'] as const, + /** List query keys */ lists: () => [...imageGrantKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...imageGrantKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...imageGrantKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...imageGrantKeys.details(), id] as const, +} as const; export const infraCommitKeys = { /** All infraCommit queries */ all: ['infracommit'] as const, /** List query keys */ lists: () => [...infraCommitKeys.all, 'list'] as const, @@ -267,6 +408,33 @@ export const namespaceEventKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...namespaceEventKeys.details(), id] as const, } as const; +export const platformBuildKeys = { + /** All platformBuild queries */ all: ['platformbuild'] as const, + /** List query keys */ lists: () => [...platformBuildKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...platformBuildKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...platformBuildKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...platformBuildKeys.details(), id] as const, +} as const; +export const platformBuildStepKeys = { + /** All platformBuildStep queries */ all: ['platformbuildstep'] as const, + /** List query keys */ lists: () => [...platformBuildStepKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...platformBuildStepKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...platformBuildStepKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...platformBuildStepKeys.details(), id] as const, +} as const; +export const platformBuilderBindingKeys = { + /** All platformBuilderBinding queries */ all: ['platformbuilderbinding'] as const, + /** List query keys */ lists: () => [...platformBuilderBindingKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...platformBuilderBindingKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...platformBuilderBindingKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...platformBuilderBindingKeys.details(), id] as const, +} as const; export const platformFunctionApiBindingKeys = { /** All platformFunctionApiBinding queries */ all: ['platformfunctionapibinding'] as const, /** List query keys */ lists: () => [...platformFunctionApiBindingKeys.all, 'list'] as const, @@ -355,6 +523,24 @@ export const platformFunctionInvocationKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...platformFunctionInvocationKeys.details(), id] as const, } as const; +export const platformImageKeys = { + /** All platformImage queries */ all: ['platformimage'] as const, + /** List query keys */ lists: () => [...platformImageKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...platformImageKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...platformImageKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...platformImageKeys.details(), id] as const, +} as const; +export const platformImageGrantKeys = { + /** All platformImageGrant queries */ all: ['platformimagegrant'] as const, + /** List query keys */ lists: () => [...platformImageGrantKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...platformImageGrantKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...platformImageGrantKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...platformImageGrantKeys.details(), id] as const, +} as const; export const platformInfraCommitKeys = { /** All platformInfraCommit queries */ all: ['platforminfracommit'] as const, /** List query keys */ lists: () => [...platformInfraCommitKeys.all, 'list'] as const, @@ -404,6 +590,24 @@ export const platformInfraStoreKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...platformInfraStoreKeys.details(), id] as const, } as const; +export const platformK8sResourceKindKeys = { + /** All platformK8sResourceKind queries */ all: ['platformk8sresourcekind'] as const, + /** List query keys */ lists: () => [...platformK8sResourceKindKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...platformK8sResourceKindKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...platformK8sResourceKindKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...platformK8sResourceKindKeys.details(), id] as const, +} as const; +export const platformK8sSpecRuleKeys = { + /** All platformK8sSpecRule queries */ all: ['platformk8sspecrule'] as const, + /** List query keys */ lists: () => [...platformK8sSpecRuleKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...platformK8sSpecRuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...platformK8sSpecRuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...platformK8sSpecRuleKeys.details(), id] as const, +} as const; export const platformNamespaceKeys = { /** All platformNamespace queries */ all: ['platformnamespace'] as const, /** List query keys */ lists: () => [...platformNamespaceKeys.all, 'list'] as const, @@ -422,6 +626,127 @@ export const platformNamespaceEventKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...platformNamespaceEventKeys.details(), id] as const, } as const; +export const platformProposalCommentKeys = { + /** All platformProposalComment queries */ all: ['platformproposalcomment'] as const, + /** List query keys */ lists: () => [...platformProposalCommentKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...platformProposalCommentKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...platformProposalCommentKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...platformProposalCommentKeys.details(), id] as const, +} as const; +export const platformProposalKeys = { + /** All platformProposal queries */ all: ['platformproposal'] as const, + /** List query keys */ lists: () => [...platformProposalKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...platformProposalKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...platformProposalKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...platformProposalKeys.details(), id] as const, +} as const; +export const platformProposalFileViewKeys = { + /** All platformProposalFileView queries */ all: ['platformproposalfileview'] as const, + /** List query keys */ lists: () => [...platformProposalFileViewKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...platformProposalFileViewKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...platformProposalFileViewKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...platformProposalFileViewKeys.details(), id] as const, +} as const; +export const platformProposalReactionKeys = { + /** All platformProposalReaction queries */ all: ['platformproposalreaction'] as const, + /** List query keys */ lists: () => [...platformProposalReactionKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...platformProposalReactionKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...platformProposalReactionKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...platformProposalReactionKeys.details(), id] as const, +} as const; +export const platformProposalReviewKeys = { + /** All platformProposalReview queries */ all: ['platformproposalreview'] as const, + /** List query keys */ lists: () => [...platformProposalReviewKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...platformProposalReviewKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...platformProposalReviewKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...platformProposalReviewKeys.details(), id] as const, +} as const; +export const platformProposalsChunkKeys = { + /** All platformProposalsChunk queries */ all: ['platformproposalschunk'] as const, + /** List query keys */ lists: () => [...platformProposalsChunkKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...platformProposalsChunkKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...platformProposalsChunkKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...platformProposalsChunkKeys.details(), id] as const, +} as const; +export const platformRegistryBindingKeys = { + /** All platformRegistryBinding queries */ all: ['platformregistrybinding'] as const, + /** List query keys */ lists: () => [...platformRegistryBindingKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...platformRegistryBindingKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...platformRegistryBindingKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...platformRegistryBindingKeys.details(), id] as const, +} as const; +export const platformRegistryKeys = { + /** All platformRegistry queries */ all: ['platformregistry'] as const, + /** List query keys */ lists: () => [...platformRegistryKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...platformRegistryKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...platformRegistryKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...platformRegistryKeys.details(), id] as const, +} as const; +export const platformRegistryGrantKeys = { + /** All platformRegistryGrant queries */ all: ['platformregistrygrant'] as const, + /** List query keys */ lists: () => [...platformRegistryGrantKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...platformRegistryGrantKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...platformRegistryGrantKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...platformRegistryGrantKeys.details(), id] as const, +} as const; +export const platformRepositoryKeys = { + /** All platformRepository queries */ all: ['platformrepository'] as const, + /** List query keys */ lists: () => [...platformRepositoryKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...platformRepositoryKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...platformRepositoryKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...platformRepositoryKeys.details(), id] as const, +} as const; +export const platformRepositoryEventKeys = { + /** All platformRepositoryEvent queries */ all: ['platformrepositoryevent'] as const, + /** List query keys */ lists: () => [...platformRepositoryEventKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...platformRepositoryEventKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...platformRepositoryEventKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...platformRepositoryEventKeys.details(), id] as const, +} as const; +export const platformRepositoryRequiredCheckKeys = { + /** All platformRepositoryRequiredCheck queries */ all: [ + 'platformrepositoryrequiredcheck', + ] as const, + /** List query keys */ lists: () => [...platformRepositoryRequiredCheckKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...platformRepositoryRequiredCheckKeys.lists(), variables] as const, + /** Detail query keys */ details: () => + [...platformRepositoryRequiredCheckKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...platformRepositoryRequiredCheckKeys.details(), id] as const, +} as const; +export const platformRepositoryWorkflowKeys = { + /** All platformRepositoryWorkflow queries */ all: ['platformrepositoryworkflow'] as const, + /** List query keys */ lists: () => [...platformRepositoryWorkflowKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...platformRepositoryWorkflowKeys.lists(), variables] as const, + /** Detail query keys */ details: () => + [...platformRepositoryWorkflowKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...platformRepositoryWorkflowKeys.details(), id] as const, +} as const; export const platformResourceKeys = { /** All platformResource queries */ all: ['platformresource'] as const, /** List query keys */ lists: () => [...platformResourceKeys.all, 'list'] as const, @@ -473,6 +798,18 @@ export const platformResourceInstallationKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...platformResourceInstallationKeys.details(), id] as const, } as const; +export const platformResourceObservedStorageKeys = { + /** All platformResourceObservedStorage queries */ all: [ + 'platformresourceobservedstorage', + ] as const, + /** List query keys */ lists: () => [...platformResourceObservedStorageKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...platformResourceObservedStorageKeys.lists(), variables] as const, + /** Detail query keys */ details: () => + [...platformResourceObservedStorageKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...platformResourceObservedStorageKeys.details(), id] as const, +} as const; export const platformResourceStatusCheckKeys = { /** All platformResourceStatusCheck queries */ all: ['platformresourcestatuscheck'] as const, /** List query keys */ lists: () => [...platformResourceStatusCheckKeys.all, 'list'] as const, @@ -565,6 +902,123 @@ export const platformWebhookEventKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...platformWebhookEventKeys.details(), id] as const, } as const; +export const proposalCommentKeys = { + /** All proposalComment queries */ all: ['proposalcomment'] as const, + /** List query keys */ lists: () => [...proposalCommentKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...proposalCommentKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...proposalCommentKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...proposalCommentKeys.details(), id] as const, +} as const; +export const proposalKeys = { + /** All proposal queries */ all: ['proposal'] as const, + /** List query keys */ lists: () => [...proposalKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...proposalKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...proposalKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...proposalKeys.details(), id] as const, +} as const; +export const proposalFileViewKeys = { + /** All proposalFileView queries */ all: ['proposalfileview'] as const, + /** List query keys */ lists: () => [...proposalFileViewKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...proposalFileViewKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...proposalFileViewKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...proposalFileViewKeys.details(), id] as const, +} as const; +export const proposalReactionKeys = { + /** All proposalReaction queries */ all: ['proposalreaction'] as const, + /** List query keys */ lists: () => [...proposalReactionKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...proposalReactionKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...proposalReactionKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...proposalReactionKeys.details(), id] as const, +} as const; +export const proposalReviewKeys = { + /** All proposalReview queries */ all: ['proposalreview'] as const, + /** List query keys */ lists: () => [...proposalReviewKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...proposalReviewKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...proposalReviewKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...proposalReviewKeys.details(), id] as const, +} as const; +export const proposalsChunkKeys = { + /** All proposalsChunk queries */ all: ['proposalschunk'] as const, + /** List query keys */ lists: () => [...proposalsChunkKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...proposalsChunkKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...proposalsChunkKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...proposalsChunkKeys.details(), id] as const, +} as const; +export const registryBindingKeys = { + /** All registryBinding queries */ all: ['registrybinding'] as const, + /** List query keys */ lists: () => [...registryBindingKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...registryBindingKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...registryBindingKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...registryBindingKeys.details(), id] as const, +} as const; +export const registryKeys = { + /** All registry queries */ all: ['registry'] as const, + /** List query keys */ lists: () => [...registryKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...registryKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...registryKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...registryKeys.details(), id] as const, +} as const; +export const registryGrantKeys = { + /** All registryGrant queries */ all: ['registrygrant'] as const, + /** List query keys */ lists: () => [...registryGrantKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...registryGrantKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...registryGrantKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...registryGrantKeys.details(), id] as const, +} as const; +export const repositoryKeys = { + /** All repository queries */ all: ['repository'] as const, + /** List query keys */ lists: () => [...repositoryKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...repositoryKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...repositoryKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...repositoryKeys.details(), id] as const, +} as const; +export const repositoryEventKeys = { + /** All repositoryEvent queries */ all: ['repositoryevent'] as const, + /** List query keys */ lists: () => [...repositoryEventKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...repositoryEventKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...repositoryEventKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...repositoryEventKeys.details(), id] as const, +} as const; +export const repositoryRequiredCheckKeys = { + /** All repositoryRequiredCheck queries */ all: ['repositoryrequiredcheck'] as const, + /** List query keys */ lists: () => [...repositoryRequiredCheckKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...repositoryRequiredCheckKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...repositoryRequiredCheckKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...repositoryRequiredCheckKeys.details(), id] as const, +} as const; +export const repositoryWorkflowKeys = { + /** All repositoryWorkflow queries */ all: ['repositoryworkflow'] as const, + /** List query keys */ lists: () => [...repositoryWorkflowKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...repositoryWorkflowKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...repositoryWorkflowKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...repositoryWorkflowKeys.details(), id] as const, +} as const; export const resourceKeys = { /** All resource queries */ all: ['resource'] as const, /** List query keys */ lists: () => [...resourceKeys.all, 'list'] as const, @@ -610,6 +1064,15 @@ export const resourceInstallationKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...resourceInstallationKeys.details(), id] as const, } as const; +export const resourceObservedStorageKeys = { + /** All resourceObservedStorage queries */ all: ['resourceobservedstorage'] as const, + /** List query keys */ lists: () => [...resourceObservedStorageKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...resourceObservedStorageKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...resourceObservedStorageKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...resourceObservedStorageKeys.details(), id] as const, +} as const; export const resourceStatusCheckKeys = { /** All resourceStatusCheck queries */ all: ['resourcestatuscheck'] as const, /** List query keys */ lists: () => [...resourceStatusCheckKeys.all, 'list'] as const, @@ -699,6 +1162,8 @@ export const webhookEventKeys = { // ============================================================================ export const customQueryKeys = { + /** Query key for databaseReadFunctionGraph */ databaseReadFunctionGraph: (variables?: object) => + ['databaseReadFunctionGraph', variables] as const, /** Query key for readFunctionGraph */ readFunctionGraph: (variables?: object) => ['readFunctionGraph', variables] as const, } as const; @@ -725,7 +1190,19 @@ export const customQueryKeys = { * ``` */ export const queryKeys = { + build: buildKeys, + buildStep: buildStepKeys, + builderBinding: builderBindingKeys, contentPreset: contentPresetKeys, + databaseFunctionGraph: databaseFunctionGraphKeys, + databaseFunctionGraphExecution: databaseFunctionGraphExecutionKeys, + databaseFunctionGraphExecutionNodeState: databaseFunctionGraphExecutionNodeStateKeys, + databaseFunctionGraphExecutionOutput: databaseFunctionGraphExecutionOutputKeys, + databaseGraphCommit: databaseGraphCommitKeys, + databaseGraphGetAllTreeNodesRecord: databaseGraphGetAllTreeNodesRecordKeys, + databaseGraphObject: databaseGraphObjectKeys, + databaseGraphRef: databaseGraphRefKeys, + databaseGraphStore: databaseGraphStoreKeys, dbPreset: dbPresetKeys, functionApiBinding: functionApiBindingKeys, functionCapabilityBinding: functionCapabilityBindingKeys, @@ -744,6 +1221,8 @@ export const queryKeys = { functionInvocationAttempt: functionInvocationAttemptKeys, functionInvocation: functionInvocationKeys, getAllTreeNodesRecord: getAllTreeNodesRecordKeys, + image: imageKeys, + imageGrant: imageGrantKeys, infraCommit: infraCommitKeys, infraGetAllTreeNodesRecord: infraGetAllTreeNodesRecordKeys, infraObject: infraObjectKeys, @@ -752,6 +1231,9 @@ export const queryKeys = { integrationProvider: integrationProviderKeys, namespace: namespaceKeys, namespaceEvent: namespaceEventKeys, + platformBuild: platformBuildKeys, + platformBuildStep: platformBuildStepKeys, + platformBuilderBinding: platformBuilderBindingKeys, platformFunctionApiBinding: platformFunctionApiBindingKeys, platformFunctionCapabilityBinding: platformFunctionCapabilityBindingKeys, platformFunctionDefinition: platformFunctionDefinitionKeys, @@ -760,18 +1242,36 @@ export const queryKeys = { platformFunctionExecutionLog: platformFunctionExecutionLogKeys, platformFunctionInvocationAttempt: platformFunctionInvocationAttemptKeys, platformFunctionInvocation: platformFunctionInvocationKeys, + platformImage: platformImageKeys, + platformImageGrant: platformImageGrantKeys, platformInfraCommit: platformInfraCommitKeys, platformInfraGetAllTreeNodesRecord: platformInfraGetAllTreeNodesRecordKeys, platformInfraObject: platformInfraObjectKeys, platformInfraRef: platformInfraRefKeys, platformInfraStore: platformInfraStoreKeys, + platformK8sResourceKind: platformK8sResourceKindKeys, + platformK8sSpecRule: platformK8sSpecRuleKeys, platformNamespace: platformNamespaceKeys, platformNamespaceEvent: platformNamespaceEventKeys, + platformProposalComment: platformProposalCommentKeys, + platformProposal: platformProposalKeys, + platformProposalFileView: platformProposalFileViewKeys, + platformProposalReaction: platformProposalReactionKeys, + platformProposalReview: platformProposalReviewKeys, + platformProposalsChunk: platformProposalsChunkKeys, + platformRegistryBinding: platformRegistryBindingKeys, + platformRegistry: platformRegistryKeys, + platformRegistryGrant: platformRegistryGrantKeys, + platformRepository: platformRepositoryKeys, + platformRepositoryEvent: platformRepositoryEventKeys, + platformRepositoryRequiredCheck: platformRepositoryRequiredCheckKeys, + platformRepositoryWorkflow: platformRepositoryWorkflowKeys, platformResource: platformResourceKeys, platformResourceDeclaredCapacity: platformResourceDeclaredCapacityKeys, platformResourceDefinition: platformResourceDefinitionKeys, platformResourceEvent: platformResourceEventKeys, platformResourceInstallation: platformResourceInstallationKeys, + platformResourceObservedStorage: platformResourceObservedStorageKeys, platformResourceStatusCheck: platformResourceStatusCheckKeys, platformResourceUsageLog: platformResourceUsageLogKeys, platformResourceUsageSummary: platformResourceUsageSummaryKeys, @@ -781,11 +1281,25 @@ export const queryKeys = { platformResourcesResolvedRequirement: platformResourcesResolvedRequirementKeys, platformWebhookEndpoint: platformWebhookEndpointKeys, platformWebhookEvent: platformWebhookEventKeys, + proposalComment: proposalCommentKeys, + proposal: proposalKeys, + proposalFileView: proposalFileViewKeys, + proposalReaction: proposalReactionKeys, + proposalReview: proposalReviewKeys, + proposalsChunk: proposalsChunkKeys, + registryBinding: registryBindingKeys, + registry: registryKeys, + registryGrant: registryGrantKeys, + repository: repositoryKeys, + repositoryEvent: repositoryEventKeys, + repositoryRequiredCheck: repositoryRequiredCheckKeys, + repositoryWorkflow: repositoryWorkflowKeys, resource: resourceKeys, resourceDeclaredCapacity: resourceDeclaredCapacityKeys, resourceDefinition: resourceDefinitionKeys, resourceEvent: resourceEventKeys, resourceInstallation: resourceInstallationKeys, + resourceObservedStorage: resourceObservedStorageKeys, resourceStatusCheck: resourceStatusCheckKeys, resourceUsageLog: resourceUsageLogKeys, resourceUsageSummary: resourceUsageSummaryKeys, diff --git a/sdk/constructive-react/src/compute/orm/README.md b/sdk/constructive-react/src/compute/orm/README.md index dd356c3de8..2ffc724fdb 100644 --- a/sdk/constructive-react/src/compute/orm/README.md +++ b/sdk/constructive-react/src/compute/orm/README.md @@ -21,7 +21,19 @@ const db = createClient({ | Model | Operations | |-------|------------| +| `build` | findMany, findOne, create, update, delete | +| `buildStep` | findMany, findOne, create, update, delete | +| `builderBinding` | findMany, findOne, create, update, delete | | `contentPreset` | findMany, findOne, create, update, delete | +| `databaseFunctionGraph` | findMany, findOne, create, update, delete | +| `databaseFunctionGraphExecution` | findMany, findOne, create, update, delete | +| `databaseFunctionGraphExecutionNodeState` | findMany, findOne, create, update, delete | +| `databaseFunctionGraphExecutionOutput` | findMany, findOne, create, update, delete | +| `databaseGraphCommit` | findMany, findOne, create, update, delete | +| `databaseGraphGetAllTreeNodesRecord` | findMany, findOne, create, update, delete | +| `databaseGraphObject` | findMany, findOne, create, update, delete | +| `databaseGraphRef` | findMany, findOne, create, update, delete | +| `databaseGraphStore` | findMany, findOne, create, update, delete | | `dbPreset` | findMany, findOne, create, update, delete | | `functionApiBinding` | findMany, findOne, create, update, delete | | `functionCapabilityBinding` | findMany, findOne, create, update, delete | @@ -40,6 +52,8 @@ const db = createClient({ | `functionInvocationAttempt` | findMany, findOne, create, update, delete | | `functionInvocation` | findMany, findOne, create, update, delete | | `getAllTreeNodesRecord` | findMany, findOne, create, update, delete | +| `image` | findMany, findOne, create, update, delete | +| `imageGrant` | findMany, findOne, create, update, delete | | `infraCommit` | findMany, findOne, create, update, delete | | `infraGetAllTreeNodesRecord` | findMany, findOne, create, update, delete | | `infraObject` | findMany, findOne, create, update, delete | @@ -48,6 +62,9 @@ const db = createClient({ | `integrationProvider` | findMany, findOne, create, update, delete | | `namespace` | findMany, findOne, create, update, delete | | `namespaceEvent` | findMany, findOne, create, update, delete | +| `platformBuild` | findMany, findOne, create, update, delete | +| `platformBuildStep` | findMany, findOne, create, update, delete | +| `platformBuilderBinding` | findMany, findOne, create, update, delete | | `platformFunctionApiBinding` | findMany, findOne, create, update, delete | | `platformFunctionCapabilityBinding` | findMany, findOne, create, update, delete | | `platformFunctionDefinition` | findMany, findOne, create, update, delete | @@ -56,18 +73,36 @@ const db = createClient({ | `platformFunctionExecutionLog` | findMany, findOne, create, update, delete | | `platformFunctionInvocationAttempt` | findMany, findOne, create, update, delete | | `platformFunctionInvocation` | findMany, findOne, create, update, delete | +| `platformImage` | findMany, findOne, create, update, delete | +| `platformImageGrant` | findMany, findOne, create, update, delete | | `platformInfraCommit` | findMany, findOne, create, update, delete | | `platformInfraGetAllTreeNodesRecord` | findMany, findOne, create, update, delete | | `platformInfraObject` | findMany, findOne, create, update, delete | | `platformInfraRef` | findMany, findOne, create, update, delete | | `platformInfraStore` | findMany, findOne, create, update, delete | +| `platformK8sResourceKind` | findMany, findOne, create, update, delete | +| `platformK8sSpecRule` | findMany, findOne, create, update, delete | | `platformNamespace` | findMany, findOne, create, update, delete | | `platformNamespaceEvent` | findMany, findOne, create, update, delete | +| `platformProposalComment` | findMany, findOne, create, update, delete | +| `platformProposal` | findMany, findOne, create, update, delete | +| `platformProposalFileView` | findMany, findOne, create, update, delete | +| `platformProposalReaction` | findMany, findOne, create, update, delete | +| `platformProposalReview` | findMany, findOne, create, update, delete | +| `platformProposalsChunk` | findMany, findOne, create, update, delete | +| `platformRegistryBinding` | findMany, findOne, create, update, delete | +| `platformRegistry` | findMany, findOne, create, update, delete | +| `platformRegistryGrant` | findMany, findOne, create, update, delete | +| `platformRepository` | findMany, findOne, create, update, delete | +| `platformRepositoryEvent` | findMany, findOne, create, update, delete | +| `platformRepositoryRequiredCheck` | findMany, findOne, create, update, delete | +| `platformRepositoryWorkflow` | findMany, findOne, create, update, delete | | `platformResource` | findMany, findOne, create, update, delete | | `platformResourceDeclaredCapacity` | findMany, findOne, create, update, delete | | `platformResourceDefinition` | findMany, findOne, create, update, delete | | `platformResourceEvent` | findMany, findOne, create, update, delete | | `platformResourceInstallation` | findMany, findOne, create, update, delete | +| `platformResourceObservedStorage` | findMany, findOne, create, update, delete | | `platformResourceStatusCheck` | findMany, findOne, create, update, delete | | `platformResourceUsageLog` | findMany, findOne, create, update, delete | | `platformResourceUsageSummary` | findMany, findOne, create, update, delete | @@ -77,11 +112,25 @@ const db = createClient({ | `platformResourcesResolvedRequirement` | findMany, findOne, create, update, delete | | `platformWebhookEndpoint` | findMany, findOne, create, update, delete | | `platformWebhookEvent` | findMany, findOne, create, update, delete | +| `proposalComment` | findMany, findOne, create, update, delete | +| `proposal` | findMany, findOne, create, update, delete | +| `proposalFileView` | findMany, findOne, create, update, delete | +| `proposalReaction` | findMany, findOne, create, update, delete | +| `proposalReview` | findMany, findOne, create, update, delete | +| `proposalsChunk` | findMany, findOne, create, update, delete | +| `registryBinding` | findMany, findOne, create, update, delete | +| `registry` | findMany, findOne, create, update, delete | +| `registryGrant` | findMany, findOne, create, update, delete | +| `repository` | findMany, findOne, create, update, delete | +| `repositoryEvent` | findMany, findOne, create, update, delete | +| `repositoryRequiredCheck` | findMany, findOne, create, update, delete | +| `repositoryWorkflow` | findMany, findOne, create, update, delete | | `resource` | findMany, findOne, create, update, delete | | `resourceDeclaredCapacity` | findMany, findOne, create, update, delete | | `resourceDefinition` | findMany, findOne, create, update, delete | | `resourceEvent` | findMany, findOne, create, update, delete | | `resourceInstallation` | findMany, findOne, create, update, delete | +| `resourceObservedStorage` | findMany, findOne, create, update, delete | | `resourceStatusCheck` | findMany, findOne, create, update, delete | | `resourceUsageLog` | findMany, findOne, create, update, delete | | `resourceUsageSummary` | findMany, findOne, create, update, delete | @@ -94,356 +143,368 @@ const db = createClient({ ## Table Operations -### `db.contentPreset` +### `db.build` -CRUD operations for ContentPreset records. +CRUD operations for Build records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `active` | Boolean | Yes | -| `commitId` | UUID | Yes | +| `actorId` | UUID | Yes | +| `attempt` | Int | Yes | +| `commitSha` | String | Yes | +| `conclusion` | String | Yes | | `createdAt` | Datetime | No | -| `definition` | JSON | Yes | -| `description` | String | Yes | +| `createdByPrincipal` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `eventId` | UUID | Yes | +| `finishedAt` | Datetime | Yes | | `id` | UUID | No | -| `kind` | String | Yes | -| `label` | String | Yes | -| `slug` | String | Yes | -| `storeId` | UUID | Yes | +| `imageRef` | String | Yes | +| `jobId` | BigInt | Yes | +| `logs` | ConstructiveInternalTypeUpload | Yes | +| `matrixKey` | String | Yes | +| `metadata` | JSON | Yes | +| `proposalId` | UUID | Yes | +| `ref` | String | Yes | +| `repositoryId` | UUID | Yes | +| `startedAt` | Datetime | Yes | +| `status` | String | Yes | | `updatedAt` | Datetime | No | +| `updatedByPrincipal` | UUID | Yes | +| `workflowId` | UUID | Yes | **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(); +// List all build records +const items = await db.build.findMany({ select: { actorId: true, attempt: true, commitSha: true, conclusion: true, createdAt: true, createdByPrincipal: true, databaseId: true, eventId: true, finishedAt: true, id: true, imageRef: true, jobId: true, logs: true, matrixKey: true, metadata: true, proposalId: true, ref: true, repositoryId: true, startedAt: true, status: true, updatedAt: true, updatedByPrincipal: true, workflowId: 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(); +const item = await db.build.findOne({ id: '', select: { actorId: true, attempt: true, commitSha: true, conclusion: true, createdAt: true, createdByPrincipal: true, databaseId: true, eventId: true, finishedAt: true, id: true, imageRef: true, jobId: true, logs: true, matrixKey: true, metadata: true, proposalId: true, ref: true, repositoryId: true, startedAt: true, status: true, updatedAt: true, updatedByPrincipal: true, workflowId: true } }).execute(); // Create -const created = await db.contentPreset.create({ data: { active: '', commitId: '', definition: '', description: '', kind: '', label: '', slug: '', storeId: '' }, select: { id: true } }).execute(); +const created = await db.build.create({ data: { actorId: '', attempt: '', commitSha: '', conclusion: '', createdByPrincipal: '', databaseId: '', eventId: '', finishedAt: '', imageRef: '', jobId: '', logs: '', matrixKey: '', metadata: '', proposalId: '', ref: '', repositoryId: '', startedAt: '', status: '', updatedByPrincipal: '', workflowId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.contentPreset.update({ where: { id: '' }, data: { active: '' }, select: { id: true } }).execute(); +const updated = await db.build.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.contentPreset.delete({ where: { id: '' } }).execute(); +const deleted = await db.build.delete({ where: { id: '' } }).execute(); ``` -### `db.dbPreset` +### `db.buildStep` -CRUD operations for DbPreset records. +CRUD operations for BuildStep records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `active` | Boolean | Yes | -| `commitId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `definition` | JSON | Yes | -| `description` | String | Yes | +| `buildId` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `exitCode` | Int | Yes | +| `finishedAt` | Datetime | Yes | | `id` | UUID | No | -| `label` | String | Yes | -| `modulesHash` | UUID | Yes | -| `slug` | String | Yes | -| `storeId` | UUID | Yes | -| `updatedAt` | Datetime | No | +| `kind` | String | Yes | +| `logBytes` | BigInt | Yes | +| `logOffset` | BigInt | Yes | +| `name` | String | Yes | +| `parentSeq` | Int | Yes | +| `recordedAt` | Datetime | Yes | +| `seq` | Int | Yes | +| `startedAt` | Datetime | Yes | +| `status` | String | Yes | +| `summary` | JSON | Yes | **Operations:** ```typescript -// List all dbPreset records -const items = await db.dbPreset.findMany({ select: { active: true, commitId: true, createdAt: true, definition: true, description: true, id: true, label: true, modulesHash: true, slug: true, storeId: true, updatedAt: true } }).execute(); +// List all buildStep records +const items = await db.buildStep.findMany({ select: { buildId: true, createdByPrincipal: true, databaseId: true, exitCode: true, finishedAt: true, id: true, kind: true, logBytes: true, logOffset: true, name: true, parentSeq: true, recordedAt: true, seq: true, startedAt: true, status: true, summary: true } }).execute(); // Get one by id -const item = await db.dbPreset.findOne({ id: '', select: { active: true, commitId: true, createdAt: true, definition: true, description: true, id: true, label: true, modulesHash: true, slug: true, storeId: true, updatedAt: true } }).execute(); +const item = await db.buildStep.findOne({ id: '', select: { buildId: true, createdByPrincipal: true, databaseId: true, exitCode: true, finishedAt: true, id: true, kind: true, logBytes: true, logOffset: true, name: true, parentSeq: true, recordedAt: true, seq: true, startedAt: true, status: true, summary: true } }).execute(); // Create -const created = await db.dbPreset.create({ data: { active: '', commitId: '', definition: '', description: '', label: '', modulesHash: '', slug: '', storeId: '' }, select: { id: true } }).execute(); +const created = await db.buildStep.create({ data: { buildId: '', createdByPrincipal: '', databaseId: '', exitCode: '', finishedAt: '', kind: '', logBytes: '', logOffset: '', name: '', parentSeq: '', recordedAt: '', seq: '', startedAt: '', status: '', summary: '' }, select: { id: true } }).execute(); // Update -const updated = await db.dbPreset.update({ where: { id: '' }, data: { active: '' }, select: { id: true } }).execute(); +const updated = await db.buildStep.update({ where: { id: '' }, data: { buildId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.dbPreset.delete({ where: { id: '' } }).execute(); +const deleted = await db.buildStep.delete({ where: { id: '' } }).execute(); ``` -### `db.functionApiBinding` +### `db.builderBinding` -CRUD operations for FunctionApiBinding records. +CRUD operations for BuilderBinding records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `alias` | String | Yes | -| `apiId` | UUID | Yes | -| `config` | JSON | Yes | | `createdAt` | Datetime | No | -| `functionDefinitionId` | UUID | Yes | +| `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | +| `databaseId` | UUID | Yes | | `id` | UUID | No | +| `installationId` | UUID | Yes | +| `lastError` | String | Yes | +| `metadata` | JSON | Yes | +| `namespaceId` | UUID | Yes | +| `observedHost` | String | Yes | +| `realm` | String | Yes | +| `status` | String | Yes | | `updatedAt` | Datetime | No | +| `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | **Operations:** ```typescript -// List all functionApiBinding records -const items = await db.functionApiBinding.findMany({ select: { alias: true, apiId: true, config: true, createdAt: true, functionDefinitionId: true, id: true, updatedAt: true } }).execute(); +// List all builderBinding records +const items = await db.builderBinding.findMany({ select: { createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, id: true, installationId: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.functionApiBinding.findOne({ id: '', select: { alias: true, apiId: true, config: true, createdAt: true, functionDefinitionId: true, id: true, updatedAt: true } }).execute(); +const item = await db.builderBinding.findOne({ id: '', select: { createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, id: true, installationId: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.functionApiBinding.create({ data: { alias: '', apiId: '', config: '', functionDefinitionId: '' }, select: { id: true } }).execute(); +const created = await db.builderBinding.create({ data: { createdBy: '', createdByPrincipal: '', databaseId: '', installationId: '', lastError: '', metadata: '', namespaceId: '', observedHost: '', realm: '', status: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update -const updated = await db.functionApiBinding.update({ where: { id: '' }, data: { alias: '' }, select: { id: true } }).execute(); +const updated = await db.builderBinding.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionApiBinding.delete({ where: { id: '' } }).execute(); +const deleted = await db.builderBinding.delete({ where: { id: '' } }).execute(); ``` -### `db.functionCapabilityBinding` +### `db.contentPreset` -CRUD operations for FunctionCapabilityBinding records. +CRUD operations for ContentPreset records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `bucketId` | UUID | Yes | +| `active` | Boolean | Yes | +| `commitId` | UUID | Yes | | `createdAt` | Datetime | No | -| `databaseId` | UUID | Yes | -| `functionId` | UUID | Yes | -| `graphId` | UUID | Yes | +| `definition` | JSON | Yes | +| `description` | String | Yes | | `id` | UUID | No | -| `key` | String | Yes | -| `lifecycle` | String | Yes | -| `metadata` | JSON | Yes | +| `kind` | String | Yes | +| `label` | String | Yes | +| `slug` | String | Yes | +| `storeId` | UUID | Yes | | `updatedAt` | Datetime | No | **Operations:** ```typescript -// List all functionCapabilityBinding records -const items = await db.functionCapabilityBinding.findMany({ select: { bucketId: true, createdAt: true, databaseId: true, functionId: true, graphId: true, id: true, key: true, lifecycle: true, metadata: true, updatedAt: true } }).execute(); +// 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.functionCapabilityBinding.findOne({ id: '', select: { bucketId: true, createdAt: true, databaseId: true, functionId: true, graphId: true, id: true, key: true, lifecycle: true, metadata: true, updatedAt: true } }).execute(); +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.functionCapabilityBinding.create({ data: { bucketId: '', databaseId: '', functionId: '', graphId: '', key: '', lifecycle: '', metadata: '' }, select: { id: true } }).execute(); +const created = await db.contentPreset.create({ data: { active: '', commitId: '', definition: '', description: '', kind: '', label: '', slug: '', storeId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.functionCapabilityBinding.update({ where: { id: '' }, data: { bucketId: '' }, select: { id: true } }).execute(); +const updated = await db.contentPreset.update({ where: { id: '' }, data: { active: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionCapabilityBinding.delete({ where: { id: '' } }).execute(); +const deleted = await db.contentPreset.delete({ where: { id: '' } }).execute(); ``` -### `db.functionDefinition` +### `db.databaseFunctionGraph` -CRUD operations for FunctionDefinition records. +CRUD operations for DatabaseFunctionGraph records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `accessChannels` | String | Yes | -| `category` | String | Yes | -| `concurrency` | Int | Yes | -| `cpuLimitMillicores` | BigInt | Yes | -| `cpuRequestMillicores` | BigInt | Yes | +| `context` | String | Yes | | `createdAt` | Datetime | No | +| `createdBy` | UUID | Yes | | `databaseId` | UUID | Yes | +| `definitionsCommitId` | UUID | Yes | | `description` | String | Yes | -| `fnCategory` | String | Yes | -| `functionColumns` | JSON | Yes | -| `graphId` | UUID | Yes | -| `icon` | String | Yes | | `id` | UUID | No | -| `image` | String | Yes | -| `inputs` | JSON | Yes | -| `integrations` | String | Yes | -| `isPublished` | Boolean | Yes | -| `maxAttempts` | Int | Yes | -| `memoryLimitBytes` | BigInt | Yes | -| `memoryRequestBytes` | BigInt | Yes | -| `moduleTable` | String | Yes | +| `isValid` | Boolean | Yes | | `name` | String | Yes | -| `outputs` | JSON | Yes | -| `payloadArgs` | JSON | Yes | -| `priority` | Int | Yes | -| `props` | JSON | Yes | -| `protected` | Boolean | Yes | -| `publishedAt` | Datetime | Yes | -| `queueName` | String | Yes | -| `requiredBuckets` | String | Yes | -| `requiredConfigs` | ResourceRequirement | Yes | -| `requiredModels` | String | Yes | -| `requiredModules` | String | Yes | -| `requiredSecrets` | ResourceRequirement | Yes | -| `resources` | JSON | Yes | -| `runtime` | String | Yes | -| `scaleMax` | Int | Yes | -| `scaleMin` | Int | Yes | -| `targetFunction` | String | Yes | -| `targetSchema` | String | Yes | -| `taskIdentifier` | String | Yes | -| `timeoutSeconds` | Int | Yes | +| `storeId` | UUID | Yes | | `updatedAt` | Datetime | No | -| `volatile` | Boolean | Yes | +| `validationErrors` | JSON | Yes | **Operations:** ```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, 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(); +// List all databaseFunctionGraph records +const items = await db.databaseFunctionGraph.findMany({ select: { context: true, createdAt: true, createdBy: true, databaseId: true, definitionsCommitId: true, description: true, id: true, isValid: true, name: true, storeId: true, updatedAt: true, validationErrors: 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, 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(); +const item = await db.databaseFunctionGraph.findOne({ id: '', select: { context: true, createdAt: true, createdBy: true, databaseId: true, definitionsCommitId: true, description: true, id: true, isValid: true, name: true, storeId: true, updatedAt: true, validationErrors: 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: '', requiredModules: '', requiredSecrets: '', resources: '', runtime: '', scaleMax: '', scaleMin: '', targetFunction: '', targetSchema: '', taskIdentifier: '', timeoutSeconds: '', volatile: '' }, select: { id: true } }).execute(); +const created = await db.databaseFunctionGraph.create({ data: { context: '', createdBy: '', databaseId: '', definitionsCommitId: '', description: '', isValid: '', name: '', storeId: '', validationErrors: '' }, select: { id: true } }).execute(); // Update -const updated = await db.functionDefinition.update({ where: { id: '' }, data: { accessChannels: '' }, select: { id: true } }).execute(); +const updated = await db.databaseFunctionGraph.update({ where: { id: '' }, data: { context: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionDefinition.delete({ where: { id: '' } }).execute(); +const deleted = await db.databaseFunctionGraph.delete({ where: { id: '' } }).execute(); ``` -### `db.functionDeployment` +### `db.databaseFunctionGraphExecution` -CRUD operations for FunctionDeployment records. +CRUD operations for DatabaseFunctionGraphExecution records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `annotations` | JSON | Yes | -| `concurrency` | Int | Yes | -| `createdAt` | Datetime | No | +| `actorId` | UUID | Yes | +| `completedAt` | Datetime | Yes | +| `currentWave` | Int | Yes | | `databaseId` | UUID | Yes | -| `errorCount` | Int | Yes | -| `handlerName` | String | Yes | +| `definitionsCommitId` | UUID | Yes | +| `entityId` | UUID | Yes | +| `entityType` | String | Yes | +| `errorCode` | String | Yes | +| `errorMessage` | String | Yes | +| `executionPlan` | JSON | Yes | +| `graphId` | UUID | Yes | | `id` | UUID | No | -| `image` | String | Yes | -| `imageVersion` | String | Yes | -| `labels` | JSON | Yes | -| `lastError` | String | Yes | -| `lastErrorAt` | Datetime | Yes | -| `namespaceId` | UUID | Yes | -| `realm` | String | Yes | -| `resources` | JSON | Yes | -| `revision` | Int | Yes | -| `scaleMax` | Int | Yes | -| `scaleMin` | Int | Yes | -| `serviceName` | String | Yes | -| `serviceUrl` | String | Yes | +| `inputPayload` | JSON | Yes | +| `invocationCreatedAt` | Datetime | Yes | +| `invocationId` | UUID | Yes | +| `lastProgressAt` | Datetime | Yes | +| `maxPendingJobs` | Int | Yes | +| `maxTicks` | Int | Yes | +| `nodeOutputs` | JSON | Yes | +| `organizationId` | UUID | Yes | +| `outputNames` | String | Yes | +| `outputNode` | String | Yes | +| `outputPayload` | JSON | Yes | +| `outputPort` | String | Yes | +| `parentExecutionId` | UUID | Yes | +| `parentInvocationId` | UUID | Yes | +| `parentNodeName` | String | Yes | +| `principalId` | UUID | Yes | +| `startedAt` | Datetime | Yes | | `status` | String | Yes | -| `timeoutSeconds` | Int | Yes | -| `updatedAt` | Datetime | No | +| `tickCount` | Int | Yes | +| `timeoutAt` | Datetime | Yes | **Operations:** ```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, realm: true, resources: true, revision: true, scaleMax: true, scaleMin: true, serviceName: true, serviceUrl: true, status: true, timeoutSeconds: true, updatedAt: true } }).execute(); +// List all databaseFunctionGraphExecution records +const items = await db.databaseFunctionGraphExecution.findMany({ select: { actorId: true, completedAt: true, currentWave: true, databaseId: true, definitionsCommitId: true, entityId: true, entityType: true, errorCode: true, errorMessage: true, executionPlan: true, graphId: true, id: true, inputPayload: true, invocationCreatedAt: true, invocationId: true, lastProgressAt: true, maxPendingJobs: true, maxTicks: true, nodeOutputs: true, organizationId: true, outputNames: true, outputNode: true, outputPayload: true, outputPort: true, parentExecutionId: true, parentInvocationId: true, parentNodeName: true, principalId: true, startedAt: true, status: true, tickCount: true, timeoutAt: 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, realm: true, resources: true, revision: true, scaleMax: true, scaleMin: true, serviceName: true, serviceUrl: true, status: true, timeoutSeconds: true, updatedAt: true } }).execute(); +const item = await db.databaseFunctionGraphExecution.findOne({ id: '', select: { actorId: true, completedAt: true, currentWave: true, databaseId: true, definitionsCommitId: true, entityId: true, entityType: true, errorCode: true, errorMessage: true, executionPlan: true, graphId: true, id: true, inputPayload: true, invocationCreatedAt: true, invocationId: true, lastProgressAt: true, maxPendingJobs: true, maxTicks: true, nodeOutputs: true, organizationId: true, outputNames: true, outputNode: true, outputPayload: true, outputPort: true, parentExecutionId: true, parentInvocationId: true, parentNodeName: true, principalId: true, startedAt: true, status: true, tickCount: true, timeoutAt: true } }).execute(); // Create -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(); +const created = await db.databaseFunctionGraphExecution.create({ data: { actorId: '', completedAt: '', currentWave: '', databaseId: '', definitionsCommitId: '', entityId: '', entityType: '', errorCode: '', errorMessage: '', executionPlan: '', graphId: '', inputPayload: '', invocationCreatedAt: '', invocationId: '', lastProgressAt: '', maxPendingJobs: '', maxTicks: '', nodeOutputs: '', organizationId: '', outputNames: '', outputNode: '', outputPayload: '', outputPort: '', parentExecutionId: '', parentInvocationId: '', parentNodeName: '', principalId: '', startedAt: '', status: '', tickCount: '', timeoutAt: '' }, select: { id: true } }).execute(); // Update -const updated = await db.functionDeployment.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); +const updated = await db.databaseFunctionGraphExecution.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionDeployment.delete({ where: { id: '' } }).execute(); +const deleted = await db.databaseFunctionGraphExecution.delete({ where: { id: '' } }).execute(); ``` -### `db.functionDeploymentEvent` +### `db.databaseFunctionGraphExecutionNodeState` -CRUD operations for FunctionDeploymentEvent records. +CRUD operations for DatabaseFunctionGraphExecutionNodeState records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `actorId` | UUID | Yes | +| `callbackInputs` | JSON | Yes | +| `callbackMeta` | JSON | Yes | +| `callbackTokenHash` | String | Yes | +| `completedAt` | Datetime | Yes | | `createdAt` | Datetime | No | | `databaseId` | UUID | Yes | -| `deploymentId` | UUID | Yes | -| `eventType` | String | Yes | +| `errorCode` | String | Yes | +| `errorMessage` | String | Yes | +| `executionId` | UUID | Yes | +| `expiryDefaultOutput` | JSON | Yes | +| `expiryEscalatedAt` | Datetime | Yes | +| `expiryPolicy` | String | Yes | | `id` | UUID | No | -| `message` | String | Yes | -| `metadata` | JSON | Yes | +| `nodeName` | String | Yes | +| `nodePath` | String | Yes | +| `outputId` | UUID | Yes | +| `startedAt` | Datetime | Yes | +| `status` | String | Yes | +| `waitingDeadlineAt` | Datetime | Yes | +| `waitingOn` | String | Yes | +| `waitingSince` | Datetime | Yes | **Operations:** ```typescript -// List all functionDeploymentEvent records -const items = await db.functionDeploymentEvent.findMany({ select: { actorId: true, createdAt: true, databaseId: true, deploymentId: true, eventType: true, id: true, message: true, metadata: true } }).execute(); +// List all databaseFunctionGraphExecutionNodeState records +const items = await db.databaseFunctionGraphExecutionNodeState.findMany({ select: { callbackInputs: true, callbackMeta: true, callbackTokenHash: true, completedAt: true, createdAt: true, databaseId: true, errorCode: true, errorMessage: true, executionId: true, expiryDefaultOutput: true, expiryEscalatedAt: true, expiryPolicy: true, id: true, nodeName: true, nodePath: true, outputId: true, startedAt: true, status: true, waitingDeadlineAt: true, waitingOn: true, waitingSince: true } }).execute(); // Get one by id -const item = await db.functionDeploymentEvent.findOne({ id: '', select: { actorId: true, createdAt: true, databaseId: true, deploymentId: true, eventType: true, id: true, message: true, metadata: true } }).execute(); +const item = await db.databaseFunctionGraphExecutionNodeState.findOne({ id: '', select: { callbackInputs: true, callbackMeta: true, callbackTokenHash: true, completedAt: true, createdAt: true, databaseId: true, errorCode: true, errorMessage: true, executionId: true, expiryDefaultOutput: true, expiryEscalatedAt: true, expiryPolicy: true, id: true, nodeName: true, nodePath: true, outputId: true, startedAt: true, status: true, waitingDeadlineAt: true, waitingOn: true, waitingSince: true } }).execute(); // Create -const created = await db.functionDeploymentEvent.create({ data: { actorId: '', databaseId: '', deploymentId: '', eventType: '', message: '', metadata: '' }, select: { id: true } }).execute(); +const created = await db.databaseFunctionGraphExecutionNodeState.create({ data: { callbackInputs: '', callbackMeta: '', callbackTokenHash: '', completedAt: '', databaseId: '', errorCode: '', errorMessage: '', executionId: '', expiryDefaultOutput: '', expiryEscalatedAt: '', expiryPolicy: '', nodeName: '', nodePath: '', outputId: '', startedAt: '', status: '', waitingDeadlineAt: '', waitingOn: '', waitingSince: '' }, select: { id: true } }).execute(); // Update -const updated = await db.functionDeploymentEvent.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); +const updated = await db.databaseFunctionGraphExecutionNodeState.update({ where: { id: '' }, data: { callbackInputs: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionDeploymentEvent.delete({ where: { id: '' } }).execute(); +const deleted = await db.databaseFunctionGraphExecutionNodeState.delete({ where: { id: '' } }).execute(); ``` -### `db.functionExecutionLog` +### `db.databaseFunctionGraphExecutionOutput` -CRUD operations for FunctionExecutionLog records. +CRUD operations for DatabaseFunctionGraphExecutionOutput records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `actorId` | UUID | Yes | | `createdAt` | Datetime | No | +| `data` | JSON | Yes | | `databaseId` | UUID | Yes | +| `hash` | Base64EncodedBinary | Yes | | `id` | UUID | No | -| `invocationId` | UUID | Yes | -| `logLevel` | String | Yes | -| `message` | String | Yes | -| `metadata` | JSON | Yes | -| `taskIdentifier` | String | Yes | **Operations:** ```typescript -// List all functionExecutionLog records -const items = await db.functionExecutionLog.findMany({ select: { actorId: true, createdAt: true, databaseId: true, id: true, invocationId: true, logLevel: true, message: true, metadata: true, taskIdentifier: true } }).execute(); +// List all databaseFunctionGraphExecutionOutput records +const items = await db.databaseFunctionGraphExecutionOutput.findMany({ select: { createdAt: true, data: true, databaseId: true, hash: true, id: true } }).execute(); // Get one by id -const item = await db.functionExecutionLog.findOne({ id: '', select: { actorId: true, createdAt: true, databaseId: true, id: true, invocationId: true, logLevel: true, message: true, metadata: true, taskIdentifier: true } }).execute(); +const item = await db.databaseFunctionGraphExecutionOutput.findOne({ id: '', select: { createdAt: true, data: true, databaseId: true, hash: true, id: true } }).execute(); // Create -const created = await db.functionExecutionLog.create({ data: { actorId: '', databaseId: '', invocationId: '', logLevel: '', message: '', metadata: '', taskIdentifier: '' }, select: { id: true } }).execute(); +const created = await db.databaseFunctionGraphExecutionOutput.create({ data: { data: '', databaseId: '', hash: '' }, select: { id: true } }).execute(); // Update -const updated = await db.functionExecutionLog.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); +const updated = await db.databaseFunctionGraphExecutionOutput.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionExecutionLog.delete({ where: { id: '' } }).execute(); +const deleted = await db.databaseFunctionGraphExecutionOutput.delete({ where: { id: '' } }).execute(); ``` -### `db.functionGraphCommit` +### `db.databaseGraphCommit` -CRUD operations for FunctionGraphCommit records. +CRUD operations for DatabaseGraphCommit records. **Fields:** @@ -451,979 +512,1700 @@ CRUD operations for FunctionGraphCommit records. |-------|------|----------| | `authorId` | UUID | Yes | | `committerId` | UUID | Yes | +| `databaseId` | UUID | Yes | | `date` | Datetime | Yes | | `id` | UUID | No | | `message` | String | Yes | | `parentIds` | UUID | Yes | -| `scopeId` | UUID | Yes | | `storeId` | UUID | Yes | | `treeId` | UUID | Yes | **Operations:** ```typescript -// List all functionGraphCommit records -const items = await db.functionGraphCommit.findMany({ select: { authorId: true, committerId: true, date: true, id: true, message: true, parentIds: true, scopeId: true, storeId: true, treeId: true } }).execute(); +// List all databaseGraphCommit records +const items = await db.databaseGraphCommit.findMany({ select: { authorId: true, committerId: true, databaseId: true, date: true, id: true, message: true, parentIds: true, storeId: true, treeId: true } }).execute(); // Get one by id -const item = await db.functionGraphCommit.findOne({ id: '', select: { authorId: true, committerId: true, date: true, id: true, message: true, parentIds: true, scopeId: true, storeId: true, treeId: true } }).execute(); +const item = await db.databaseGraphCommit.findOne({ id: '', select: { authorId: true, committerId: true, databaseId: true, date: true, id: true, message: true, parentIds: true, storeId: true, treeId: true } }).execute(); // Create -const created = await db.functionGraphCommit.create({ data: { authorId: '', committerId: '', date: '', message: '', parentIds: '', scopeId: '', storeId: '', treeId: '' }, select: { id: true } }).execute(); +const created = await db.databaseGraphCommit.create({ data: { authorId: '', committerId: '', databaseId: '', date: '', message: '', parentIds: '', storeId: '', treeId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.functionGraphCommit.update({ where: { id: '' }, data: { authorId: '' }, select: { id: true } }).execute(); +const updated = await db.databaseGraphCommit.update({ where: { id: '' }, data: { authorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionGraphCommit.delete({ where: { id: '' } }).execute(); +const deleted = await db.databaseGraphCommit.delete({ where: { id: '' } }).execute(); ``` -### `db.functionGraph` +### `db.databaseGraphGetAllTreeNodesRecord` -CRUD operations for FunctionGraph records. +CRUD operations for DatabaseGraphGetAllTreeNodesRecord records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `context` | String | Yes | -| `createdAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `definitionsCommitId` | UUID | Yes | -| `description` | String | Yes | -| `id` | UUID | No | -| `isValid` | Boolean | Yes | -| `name` | String | Yes | -| `scopeId` | UUID | Yes | -| `storeId` | UUID | Yes | -| `updatedAt` | Datetime | No | -| `validationErrors` | JSON | Yes | +| `data` | JSON | Yes | +| `path` | String | Yes | **Operations:** ```typescript -// List all functionGraph records -const items = await db.functionGraph.findMany({ select: { context: true, createdAt: true, createdBy: true, definitionsCommitId: true, description: true, id: true, isValid: true, name: true, scopeId: true, storeId: true, updatedAt: true, validationErrors: true } }).execute(); +// List all databaseGraphGetAllTreeNodesRecord records +const items = await db.databaseGraphGetAllTreeNodesRecord.findMany({ select: { data: true, path: true } }).execute(); // Get one by id -const item = await db.functionGraph.findOne({ id: '', select: { context: true, createdAt: true, createdBy: true, definitionsCommitId: true, description: true, id: true, isValid: true, name: true, scopeId: true, storeId: true, updatedAt: true, validationErrors: true } }).execute(); +const item = await db.databaseGraphGetAllTreeNodesRecord.findOne({ id: '', select: { data: true, path: true } }).execute(); // Create -const created = await db.functionGraph.create({ data: { context: '', createdBy: '', definitionsCommitId: '', description: '', isValid: '', name: '', scopeId: '', storeId: '', validationErrors: '' }, select: { id: true } }).execute(); +const created = await db.databaseGraphGetAllTreeNodesRecord.create({ data: { data: '', path: '' }, select: { id: true } }).execute(); // Update -const updated = await db.functionGraph.update({ where: { id: '' }, data: { context: '' }, select: { id: true } }).execute(); +const updated = await db.databaseGraphGetAllTreeNodesRecord.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionGraph.delete({ where: { id: '' } }).execute(); +const deleted = await db.databaseGraphGetAllTreeNodesRecord.delete({ where: { id: '' } }).execute(); ``` -### `db.functionGraphExecution` +### `db.databaseGraphObject` -CRUD operations for FunctionGraphExecution records. +CRUD operations for DatabaseGraphObject records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `actorId` | UUID | Yes | -| `completedAt` | Datetime | Yes | -| `currentWave` | Int | Yes | -| `definitionsCommitId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `entityType` | String | Yes | -| `errorCode` | String | Yes | -| `errorMessage` | String | Yes | -| `executionPlan` | JSON | Yes | -| `graphId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `data` | JSON | Yes | +| `databaseId` | UUID | Yes | | `id` | UUID | No | -| `inputPayload` | JSON | Yes | -| `invocationCreatedAt` | Datetime | Yes | -| `invocationId` | UUID | Yes | -| `lastProgressAt` | Datetime | Yes | -| `maxPendingJobs` | Int | Yes | -| `maxTicks` | Int | Yes | -| `nodeOutputs` | JSON | Yes | -| `organizationId` | UUID | Yes | -| `outputNames` | String | Yes | -| `outputNode` | String | Yes | -| `outputPayload` | JSON | Yes | -| `outputPort` | String | Yes | -| `parentExecutionId` | UUID | Yes | -| `parentInvocationId` | UUID | Yes | -| `parentNodeName` | String | Yes | -| `principalId` | UUID | Yes | -| `scopeId` | UUID | Yes | -| `startedAt` | Datetime | Yes | -| `status` | String | Yes | -| `tickCount` | Int | Yes | -| `timeoutAt` | Datetime | Yes | +| `kids` | UUID | Yes | +| `ktree` | String | Yes | **Operations:** ```typescript -// List all functionGraphExecution records -const items = await db.functionGraphExecution.findMany({ select: { actorId: true, completedAt: true, currentWave: true, definitionsCommitId: true, entityId: true, entityType: true, errorCode: true, errorMessage: true, executionPlan: true, graphId: true, id: true, inputPayload: true, invocationCreatedAt: true, invocationId: true, lastProgressAt: true, maxPendingJobs: true, maxTicks: true, nodeOutputs: true, organizationId: true, outputNames: true, outputNode: true, outputPayload: true, outputPort: true, parentExecutionId: true, parentInvocationId: true, parentNodeName: true, principalId: true, scopeId: true, startedAt: true, status: true, tickCount: true, timeoutAt: true } }).execute(); +// List all databaseGraphObject records +const items = await db.databaseGraphObject.findMany({ select: { createdAt: true, data: true, databaseId: true, id: true, kids: true, ktree: true } }).execute(); // Get one by id -const item = await db.functionGraphExecution.findOne({ id: '', select: { actorId: true, completedAt: true, currentWave: true, definitionsCommitId: true, entityId: true, entityType: true, errorCode: true, errorMessage: true, executionPlan: true, graphId: true, id: true, inputPayload: true, invocationCreatedAt: true, invocationId: true, lastProgressAt: true, maxPendingJobs: true, maxTicks: true, nodeOutputs: true, organizationId: true, outputNames: true, outputNode: true, outputPayload: true, outputPort: true, parentExecutionId: true, parentInvocationId: true, parentNodeName: true, principalId: true, scopeId: true, startedAt: true, status: true, tickCount: true, timeoutAt: true } }).execute(); +const item = await db.databaseGraphObject.findOne({ id: '', select: { createdAt: true, data: true, databaseId: true, id: true, kids: true, ktree: true } }).execute(); // Create -const created = await db.functionGraphExecution.create({ data: { actorId: '', completedAt: '', currentWave: '', definitionsCommitId: '', entityId: '', entityType: '', errorCode: '', errorMessage: '', executionPlan: '', graphId: '', inputPayload: '', invocationCreatedAt: '', invocationId: '', lastProgressAt: '', maxPendingJobs: '', maxTicks: '', nodeOutputs: '', organizationId: '', outputNames: '', outputNode: '', outputPayload: '', outputPort: '', parentExecutionId: '', parentInvocationId: '', parentNodeName: '', principalId: '', scopeId: '', startedAt: '', status: '', tickCount: '', timeoutAt: '' }, select: { id: true } }).execute(); +const created = await db.databaseGraphObject.create({ data: { data: '', databaseId: '', kids: '', ktree: '' }, select: { id: true } }).execute(); // Update -const updated = await db.functionGraphExecution.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); +const updated = await db.databaseGraphObject.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionGraphExecution.delete({ where: { id: '' } }).execute(); +const deleted = await db.databaseGraphObject.delete({ where: { id: '' } }).execute(); ``` -### `db.functionGraphExecutionNodeState` +### `db.databaseGraphRef` -CRUD operations for FunctionGraphExecutionNodeState records. +CRUD operations for DatabaseGraphRef records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `callbackInputs` | JSON | Yes | -| `callbackMeta` | JSON | Yes | -| `callbackTokenHash` | String | Yes | -| `completedAt` | Datetime | Yes | -| `createdAt` | Datetime | No | -| `errorCode` | String | Yes | -| `errorMessage` | String | Yes | -| `executionId` | UUID | Yes | +| `commitId` | UUID | Yes | +| `databaseId` | UUID | Yes | | `id` | UUID | No | -| `nodeName` | String | Yes | -| `nodePath` | String | Yes | -| `outputId` | UUID | Yes | -| `scopeId` | UUID | Yes | -| `startedAt` | Datetime | Yes | -| `status` | String | Yes | +| `name` | String | Yes | +| `storeId` | UUID | Yes | **Operations:** ```typescript -// List all functionGraphExecutionNodeState records -const items = await db.functionGraphExecutionNodeState.findMany({ select: { callbackInputs: true, callbackMeta: true, callbackTokenHash: true, completedAt: true, createdAt: true, errorCode: true, errorMessage: true, executionId: true, id: true, nodeName: true, nodePath: true, outputId: true, scopeId: true, startedAt: true, status: true } }).execute(); +// List all databaseGraphRef records +const items = await db.databaseGraphRef.findMany({ select: { commitId: true, databaseId: true, id: true, name: true, storeId: true } }).execute(); // Get one by id -const item = await db.functionGraphExecutionNodeState.findOne({ id: '', select: { callbackInputs: true, callbackMeta: true, callbackTokenHash: true, completedAt: true, createdAt: true, errorCode: true, errorMessage: true, executionId: true, id: true, nodeName: true, nodePath: true, outputId: true, scopeId: true, startedAt: true, status: true } }).execute(); +const item = await db.databaseGraphRef.findOne({ id: '', select: { commitId: true, databaseId: true, id: true, name: true, storeId: true } }).execute(); // Create -const created = await db.functionGraphExecutionNodeState.create({ data: { callbackInputs: '', callbackMeta: '', callbackTokenHash: '', completedAt: '', errorCode: '', errorMessage: '', executionId: '', nodeName: '', nodePath: '', outputId: '', scopeId: '', startedAt: '', status: '' }, select: { id: true } }).execute(); +const created = await db.databaseGraphRef.create({ data: { commitId: '', databaseId: '', name: '', storeId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.functionGraphExecutionNodeState.update({ where: { id: '' }, data: { callbackInputs: '' }, select: { id: true } }).execute(); +const updated = await db.databaseGraphRef.update({ where: { id: '' }, data: { commitId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionGraphExecutionNodeState.delete({ where: { id: '' } }).execute(); +const deleted = await db.databaseGraphRef.delete({ where: { id: '' } }).execute(); ``` -### `db.functionGraphExecutionOutput` +### `db.databaseGraphStore` -CRUD operations for FunctionGraphExecutionOutput records. +CRUD operations for DatabaseGraphStore records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `createdAt` | Datetime | No | -| `data` | JSON | Yes | -| `hash` | Base64EncodedBinary | Yes | +| `databaseId` | UUID | Yes | +| `hash` | UUID | Yes | | `id` | UUID | No | -| `scopeId` | UUID | Yes | +| `name` | String | Yes | **Operations:** ```typescript -// List all functionGraphExecutionOutput records -const items = await db.functionGraphExecutionOutput.findMany({ select: { createdAt: true, data: true, hash: true, id: true, scopeId: true } }).execute(); +// List all databaseGraphStore records +const items = await db.databaseGraphStore.findMany({ select: { createdAt: true, databaseId: true, hash: true, id: true, name: true } }).execute(); // Get one by id -const item = await db.functionGraphExecutionOutput.findOne({ id: '', select: { createdAt: true, data: true, hash: true, id: true, scopeId: true } }).execute(); +const item = await db.databaseGraphStore.findOne({ id: '', select: { createdAt: true, databaseId: true, hash: true, id: true, name: true } }).execute(); // Create -const created = await db.functionGraphExecutionOutput.create({ data: { data: '', hash: '', scopeId: '' }, select: { id: true } }).execute(); +const created = await db.databaseGraphStore.create({ data: { databaseId: '', hash: '', name: '' }, select: { id: true } }).execute(); // Update -const updated = await db.functionGraphExecutionOutput.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); +const updated = await db.databaseGraphStore.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionGraphExecutionOutput.delete({ where: { id: '' } }).execute(); +const deleted = await db.databaseGraphStore.delete({ where: { id: '' } }).execute(); ``` -### `db.functionGraphObject` +### `db.dbPreset` -CRUD operations for FunctionGraphObject records. +CRUD operations for DbPreset records. **Fields:** | Field | Type | Editable | |-------|------|----------| +| `active` | Boolean | Yes | +| `commitId` | UUID | Yes | | `createdAt` | Datetime | No | -| `data` | JSON | Yes | +| `definition` | JSON | Yes | +| `description` | String | Yes | | `id` | UUID | No | -| `kids` | UUID | Yes | -| `ktree` | String | Yes | -| `scopeId` | UUID | Yes | +| `label` | String | Yes | +| `modulesHash` | UUID | Yes | +| `slug` | String | Yes | +| `storeId` | UUID | Yes | +| `updatedAt` | Datetime | No | **Operations:** ```typescript -// List all functionGraphObject records -const items = await db.functionGraphObject.findMany({ select: { createdAt: true, data: true, id: true, kids: true, ktree: true, scopeId: true } }).execute(); +// List all dbPreset records +const items = await db.dbPreset.findMany({ select: { active: true, commitId: true, createdAt: true, definition: true, description: true, id: true, label: true, modulesHash: true, slug: true, storeId: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.functionGraphObject.findOne({ id: '', select: { createdAt: true, data: true, id: true, kids: true, ktree: true, scopeId: true } }).execute(); +const item = await db.dbPreset.findOne({ id: '', select: { active: true, commitId: true, createdAt: true, definition: true, description: true, id: true, label: true, modulesHash: true, slug: true, storeId: true, updatedAt: true } }).execute(); // Create -const created = await db.functionGraphObject.create({ data: { data: '', kids: '', ktree: '', scopeId: '' }, select: { id: true } }).execute(); +const created = await db.dbPreset.create({ data: { active: '', commitId: '', definition: '', description: '', label: '', modulesHash: '', slug: '', storeId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.functionGraphObject.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); +const updated = await db.dbPreset.update({ where: { id: '' }, data: { active: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionGraphObject.delete({ where: { id: '' } }).execute(); +const deleted = await db.dbPreset.delete({ where: { id: '' } }).execute(); ``` -### `db.functionGraphRef` +### `db.functionApiBinding` -CRUD operations for FunctionGraphRef records. +CRUD operations for FunctionApiBinding records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `commitId` | UUID | Yes | +| `alias` | String | Yes | +| `apiId` | UUID | Yes | +| `config` | JSON | Yes | +| `createdAt` | Datetime | No | +| `functionDefinitionId` | UUID | Yes | | `id` | UUID | No | -| `name` | String | Yes | -| `scopeId` | UUID | Yes | -| `storeId` | UUID | Yes | +| `updatedAt` | Datetime | No | **Operations:** ```typescript -// List all functionGraphRef records -const items = await db.functionGraphRef.findMany({ select: { commitId: true, id: true, name: true, scopeId: true, storeId: true } }).execute(); +// List all functionApiBinding records +const items = await db.functionApiBinding.findMany({ select: { alias: true, apiId: true, config: true, createdAt: true, functionDefinitionId: true, id: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.functionGraphRef.findOne({ id: '', select: { commitId: true, id: true, name: true, scopeId: true, storeId: true } }).execute(); +const item = await db.functionApiBinding.findOne({ id: '', select: { alias: true, apiId: true, config: true, createdAt: true, functionDefinitionId: true, id: true, updatedAt: true } }).execute(); // Create -const created = await db.functionGraphRef.create({ data: { commitId: '', name: '', scopeId: '', storeId: '' }, select: { id: true } }).execute(); +const created = await db.functionApiBinding.create({ data: { alias: '', apiId: '', config: '', functionDefinitionId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.functionGraphRef.update({ where: { id: '' }, data: { commitId: '' }, select: { id: true } }).execute(); +const updated = await db.functionApiBinding.update({ where: { id: '' }, data: { alias: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionGraphRef.delete({ where: { id: '' } }).execute(); +const deleted = await db.functionApiBinding.delete({ where: { id: '' } }).execute(); ``` -### `db.functionGraphStore` +### `db.functionCapabilityBinding` -CRUD operations for FunctionGraphStore records. +CRUD operations for FunctionCapabilityBinding records. **Fields:** | Field | Type | Editable | |-------|------|----------| +| `bucketId` | UUID | Yes | | `createdAt` | Datetime | No | -| `hash` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `functionId` | UUID | Yes | +| `graphId` | UUID | Yes | | `id` | UUID | No | -| `name` | String | Yes | -| `scopeId` | UUID | Yes | +| `key` | String | Yes | +| `lifecycle` | String | Yes | +| `metadata` | JSON | Yes | +| `updatedAt` | Datetime | No | **Operations:** ```typescript -// List all functionGraphStore records -const items = await db.functionGraphStore.findMany({ select: { createdAt: true, hash: true, id: true, name: true, scopeId: true } }).execute(); +// List all functionCapabilityBinding records +const items = await db.functionCapabilityBinding.findMany({ select: { bucketId: true, createdAt: true, databaseId: true, functionId: true, graphId: true, id: true, key: true, lifecycle: true, metadata: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.functionGraphStore.findOne({ id: '', select: { createdAt: true, hash: true, id: true, name: true, scopeId: true } }).execute(); +const item = await db.functionCapabilityBinding.findOne({ id: '', select: { bucketId: true, createdAt: true, databaseId: true, functionId: true, graphId: true, id: true, key: true, lifecycle: true, metadata: true, updatedAt: true } }).execute(); // Create -const created = await db.functionGraphStore.create({ data: { hash: '', name: '', scopeId: '' }, select: { id: true } }).execute(); +const created = await db.functionCapabilityBinding.create({ data: { bucketId: '', databaseId: '', functionId: '', graphId: '', key: '', lifecycle: '', metadata: '' }, select: { id: true } }).execute(); // Update -const updated = await db.functionGraphStore.update({ where: { id: '' }, data: { hash: '' }, select: { id: true } }).execute(); +const updated = await db.functionCapabilityBinding.update({ where: { id: '' }, data: { bucketId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionGraphStore.delete({ where: { id: '' } }).execute(); +const deleted = await db.functionCapabilityBinding.delete({ where: { id: '' } }).execute(); ``` -### `db.functionInvocationAttempt` +### `db.functionDefinition` -CRUD operations for FunctionInvocationAttempt records. +CRUD operations for FunctionDefinition records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `actorId` | UUID | Yes | -| `attempt` | Int | Yes | +| `accessChannels` | String | Yes | +| `anonymousCallable` | Boolean | Yes | +| `category` | String | Yes | +| `concurrency` | Int | Yes | +| `cpuLimitMillicores` | BigInt | Yes | +| `cpuRequestMillicores` | BigInt | Yes | | `createdAt` | Datetime | No | +| `createdByPrincipal` | UUID | Yes | | `databaseId` | UUID | Yes | -| `durationMs` | Int | Yes | -| `error` | String | Yes | -| `errorDetail` | JSON | Yes | +| `description` | String | Yes | +| `fnCategory` | String | Yes | +| `functionColumns` | JSON | Yes | +| `graphId` | UUID | Yes | +| `icon` | String | Yes | | `id` | UUID | No | -| `invocationCreatedAt` | Datetime | Yes | -| `invocationId` | UUID | Yes | -| `startedAt` | Datetime | Yes | -| `success` | Boolean | Yes | +| `image` | String | Yes | +| `inputs` | JSON | Yes | +| `integrations` | String | Yes | +| `isPublished` | Boolean | Yes | +| `maxAttempts` | Int | Yes | +| `memoryLimitBytes` | BigInt | Yes | +| `memoryRequestBytes` | BigInt | Yes | +| `moduleTable` | String | Yes | +| `name` | String | Yes | +| `outputs` | JSON | Yes | +| `payloadArgs` | JSON | Yes | +| `priority` | Int | Yes | +| `props` | JSON | Yes | +| `protected` | Boolean | Yes | +| `publishedAt` | Datetime | Yes | +| `queueName` | String | Yes | +| `requiredBuckets` | String | Yes | +| `requiredCapabilities` | JSON | Yes | +| `requiredConfigs` | ResourceRequirement | Yes | +| `requiredModels` | String | Yes | +| `requiredModules` | String | Yes | +| `requiredSecrets` | ResourceRequirement | Yes | +| `resources` | JSON | Yes | +| `runtime` | String | Yes | +| `scaleMax` | Int | Yes | +| `scaleMin` | Int | Yes | +| `targetFunction` | String | Yes | +| `targetSchema` | String | Yes | | `taskIdentifier` | String | Yes | +| `timeoutSeconds` | Int | Yes | +| `updatedAt` | Datetime | No | +| `updatedByPrincipal` | UUID | Yes | +| `volatile` | Boolean | Yes | **Operations:** ```typescript -// List all functionInvocationAttempt records -const items = await db.functionInvocationAttempt.findMany({ select: { actorId: true, attempt: true, createdAt: true, databaseId: true, durationMs: true, error: true, errorDetail: true, id: true, invocationCreatedAt: true, invocationId: true, startedAt: true, success: true, taskIdentifier: true } }).execute(); +// List all functionDefinition records +const items = await db.functionDefinition.findMany({ select: { accessChannels: true, anonymousCallable: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdByPrincipal: 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, requiredCapabilities: 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, updatedByPrincipal: true, volatile: true } }).execute(); // Get one by id -const item = await db.functionInvocationAttempt.findOne({ id: '', select: { actorId: true, attempt: true, createdAt: true, databaseId: true, durationMs: true, error: true, errorDetail: true, id: true, invocationCreatedAt: true, invocationId: true, startedAt: true, success: true, taskIdentifier: true } }).execute(); +const item = await db.functionDefinition.findOne({ id: '', select: { accessChannels: true, anonymousCallable: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdByPrincipal: 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, requiredCapabilities: 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, updatedByPrincipal: true, volatile: true } }).execute(); // Create -const created = await db.functionInvocationAttempt.create({ data: { actorId: '', attempt: '', databaseId: '', durationMs: '', error: '', errorDetail: '', invocationCreatedAt: '', invocationId: '', startedAt: '', success: '', taskIdentifier: '' }, select: { id: true } }).execute(); +const created = await db.functionDefinition.create({ data: { accessChannels: '', anonymousCallable: '', category: '', concurrency: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdByPrincipal: '', databaseId: '', description: '', fnCategory: '', functionColumns: '', graphId: '', icon: '', image: '', inputs: '', integrations: '', isPublished: '', maxAttempts: '', memoryLimitBytes: '', memoryRequestBytes: '', moduleTable: '', name: '', outputs: '', payloadArgs: '', priority: '', props: '', protected: '', publishedAt: '', queueName: '', requiredBuckets: '', requiredCapabilities: '', requiredConfigs: '', requiredModels: '', requiredModules: '', requiredSecrets: '', resources: '', runtime: '', scaleMax: '', scaleMin: '', targetFunction: '', targetSchema: '', taskIdentifier: '', timeoutSeconds: '', updatedByPrincipal: '', volatile: '' }, select: { id: true } }).execute(); // Update -const updated = await db.functionInvocationAttempt.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); +const updated = await db.functionDefinition.update({ where: { id: '' }, data: { accessChannels: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionInvocationAttempt.delete({ where: { id: '' } }).execute(); +const deleted = await db.functionDefinition.delete({ where: { id: '' } }).execute(); ``` -### `db.functionInvocation` +### `db.functionDeployment` -CRUD operations for FunctionInvocation records. +CRUD operations for FunctionDeployment records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `actorId` | UUID | Yes | -| `apiBindingId` | UUID | Yes | -| `channel` | String | Yes | -| `completedAt` | Datetime | Yes | +| `annotations` | JSON | Yes | +| `concurrency` | Int | Yes | | `createdAt` | Datetime | No | +| `createdByPrincipal` | UUID | Yes | | `databaseId` | UUID | Yes | -| `definitionScope` | String | Yes | -| `durationMs` | Int | Yes | -| `error` | String | Yes | -| `functionDefinitionId` | UUID | Yes | -| `graphExecutionId` | UUID | Yes | +| `errorCount` | Int | Yes | +| `handlerName` | String | Yes | | `id` | UUID | No | -| `jobId` | BigInt | Yes | -| `parentInvocationId` | UUID | Yes | -| `payload` | JSON | Yes | -| `provenance` | JSON | Yes | -| `result` | JSON | Yes | -| `startedAt` | Datetime | Yes | +| `image` | String | Yes | +| `imageVersion` | String | Yes | +| `labels` | JSON | Yes | +| `lastError` | String | Yes | +| `lastErrorAt` | Datetime | Yes | +| `namespaceId` | UUID | Yes | +| `realm` | String | Yes | +| `resources` | JSON | Yes | +| `revision` | Int | Yes | +| `scaleMax` | Int | Yes | +| `scaleMin` | Int | Yes | +| `serviceName` | String | Yes | +| `serviceUrl` | String | Yes | | `status` | String | Yes | -| `taskIdentifier` | String | Yes | +| `timeoutSeconds` | Int | Yes | +| `updatedAt` | Datetime | No | +| `updatedByPrincipal` | UUID | Yes | **Operations:** ```typescript -// List all functionInvocation records -const items = await db.functionInvocation.findMany({ select: { actorId: true, apiBindingId: true, channel: true, completedAt: true, createdAt: true, databaseId: true, definitionScope: true, durationMs: true, error: true, functionDefinitionId: true, graphExecutionId: true, id: true, jobId: true, parentInvocationId: true, payload: true, provenance: true, result: true, startedAt: true, status: true, taskIdentifier: true } }).execute(); +// List all functionDeployment records +const items = await db.functionDeployment.findMany({ select: { annotations: true, concurrency: true, createdAt: true, createdByPrincipal: 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, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.functionInvocation.findOne({ id: '', select: { actorId: true, apiBindingId: true, channel: true, completedAt: true, createdAt: true, databaseId: true, definitionScope: true, durationMs: true, error: true, functionDefinitionId: true, graphExecutionId: true, id: true, jobId: true, parentInvocationId: true, payload: true, provenance: true, result: true, startedAt: true, status: true, taskIdentifier: true } }).execute(); +const item = await db.functionDeployment.findOne({ id: '', select: { annotations: true, concurrency: true, createdAt: true, createdByPrincipal: 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, updatedByPrincipal: true } }).execute(); // Create -const created = await db.functionInvocation.create({ data: { actorId: '', apiBindingId: '', channel: '', completedAt: '', databaseId: '', definitionScope: '', durationMs: '', error: '', functionDefinitionId: '', graphExecutionId: '', jobId: '', parentInvocationId: '', payload: '', provenance: '', result: '', startedAt: '', status: '', taskIdentifier: '' }, select: { id: true } }).execute(); +const created = await db.functionDeployment.create({ data: { annotations: '', concurrency: '', createdByPrincipal: '', databaseId: '', errorCount: '', handlerName: '', image: '', imageVersion: '', labels: '', lastError: '', lastErrorAt: '', namespaceId: '', realm: '', resources: '', revision: '', scaleMax: '', scaleMin: '', serviceName: '', serviceUrl: '', status: '', timeoutSeconds: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update -const updated = await db.functionInvocation.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); +const updated = await db.functionDeployment.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionInvocation.delete({ where: { id: '' } }).execute(); +const deleted = await db.functionDeployment.delete({ where: { id: '' } }).execute(); ``` -### `db.getAllTreeNodesRecord` +### `db.functionDeploymentEvent` -CRUD operations for GetAllTreeNodesRecord records. +CRUD operations for FunctionDeploymentEvent records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `data` | JSON | Yes | -| `path` | String | Yes | +| `actorId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `databaseId` | UUID | Yes | +| `deploymentId` | UUID | Yes | +| `eventType` | String | Yes | +| `id` | UUID | No | +| `message` | String | Yes | +| `metadata` | JSON | Yes | **Operations:** ```typescript -// List all getAllTreeNodesRecord records -const items = await db.getAllTreeNodesRecord.findMany({ select: { data: true, path: true } }).execute(); +// List all functionDeploymentEvent records +const items = await db.functionDeploymentEvent.findMany({ select: { actorId: true, createdAt: true, databaseId: true, deploymentId: true, eventType: true, id: true, message: true, metadata: true } }).execute(); // Get one by id -const item = await db.getAllTreeNodesRecord.findOne({ id: '', select: { data: true, path: true } }).execute(); +const item = await db.functionDeploymentEvent.findOne({ id: '', select: { actorId: true, createdAt: true, databaseId: true, deploymentId: true, eventType: true, id: true, message: true, metadata: true } }).execute(); // Create -const created = await db.getAllTreeNodesRecord.create({ data: { data: '', path: '' }, select: { id: true } }).execute(); +const created = await db.functionDeploymentEvent.create({ data: { actorId: '', databaseId: '', deploymentId: '', eventType: '', message: '', metadata: '' }, select: { id: true } }).execute(); // Update -const updated = await db.getAllTreeNodesRecord.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); +const updated = await db.functionDeploymentEvent.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.getAllTreeNodesRecord.delete({ where: { id: '' } }).execute(); +const deleted = await db.functionDeploymentEvent.delete({ where: { id: '' } }).execute(); ``` -### `db.infraCommit` +### `db.functionExecutionLog` -CRUD operations for InfraCommit records. +CRUD operations for FunctionExecutionLog records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `authorId` | UUID | Yes | -| `committerId` | UUID | Yes | +| `actorId` | UUID | Yes | +| `createdAt` | Datetime | No | | `databaseId` | UUID | Yes | -| `date` | Datetime | Yes | | `id` | UUID | No | +| `invocationId` | UUID | Yes | +| `logLevel` | String | Yes | | `message` | String | Yes | -| `parentIds` | UUID | Yes | -| `storeId` | UUID | Yes | -| `treeId` | UUID | Yes | +| `metadata` | JSON | Yes | +| `taskIdentifier` | String | Yes | **Operations:** ```typescript -// List all infraCommit records -const items = await db.infraCommit.findMany({ select: { authorId: true, committerId: true, databaseId: true, date: true, id: true, message: true, parentIds: true, storeId: true, treeId: true } }).execute(); +// List all functionExecutionLog records +const items = await db.functionExecutionLog.findMany({ select: { actorId: true, createdAt: true, databaseId: true, id: true, invocationId: true, logLevel: true, message: true, metadata: true, taskIdentifier: true } }).execute(); // Get one by id -const item = await db.infraCommit.findOne({ id: '', select: { authorId: true, committerId: true, databaseId: true, date: true, id: true, message: true, parentIds: true, storeId: true, treeId: true } }).execute(); +const item = await db.functionExecutionLog.findOne({ id: '', select: { actorId: true, createdAt: true, databaseId: true, id: true, invocationId: true, logLevel: true, message: true, metadata: true, taskIdentifier: true } }).execute(); // Create -const created = await db.infraCommit.create({ data: { authorId: '', committerId: '', databaseId: '', date: '', message: '', parentIds: '', storeId: '', treeId: '' }, select: { id: true } }).execute(); +const created = await db.functionExecutionLog.create({ data: { actorId: '', databaseId: '', invocationId: '', logLevel: '', message: '', metadata: '', taskIdentifier: '' }, select: { id: true } }).execute(); // Update -const updated = await db.infraCommit.update({ where: { id: '' }, data: { authorId: '' }, select: { id: true } }).execute(); +const updated = await db.functionExecutionLog.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.infraCommit.delete({ where: { id: '' } }).execute(); +const deleted = await db.functionExecutionLog.delete({ where: { id: '' } }).execute(); ``` -### `db.infraGetAllTreeNodesRecord` +### `db.functionGraphCommit` -CRUD operations for InfraGetAllTreeNodesRecord records. +CRUD operations for FunctionGraphCommit records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `data` | JSON | Yes | -| `path` | String | Yes | +| `authorId` | UUID | Yes | +| `committerId` | UUID | Yes | +| `date` | Datetime | Yes | +| `id` | UUID | No | +| `message` | String | Yes | +| `parentIds` | UUID | Yes | +| `scopeId` | UUID | Yes | +| `storeId` | UUID | Yes | +| `treeId` | UUID | Yes | **Operations:** ```typescript -// List all infraGetAllTreeNodesRecord records -const items = await db.infraGetAllTreeNodesRecord.findMany({ select: { data: true, path: true } }).execute(); +// List all functionGraphCommit records +const items = await db.functionGraphCommit.findMany({ select: { authorId: true, committerId: true, date: true, id: true, message: true, parentIds: true, scopeId: true, storeId: true, treeId: true } }).execute(); // Get one by id -const item = await db.infraGetAllTreeNodesRecord.findOne({ id: '', select: { data: true, path: true } }).execute(); +const item = await db.functionGraphCommit.findOne({ id: '', select: { authorId: true, committerId: true, date: true, id: true, message: true, parentIds: true, scopeId: true, storeId: true, treeId: true } }).execute(); // Create -const created = await db.infraGetAllTreeNodesRecord.create({ data: { data: '', path: '' }, select: { id: true } }).execute(); +const created = await db.functionGraphCommit.create({ data: { authorId: '', committerId: '', date: '', message: '', parentIds: '', scopeId: '', storeId: '', treeId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.infraGetAllTreeNodesRecord.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); +const updated = await db.functionGraphCommit.update({ where: { id: '' }, data: { authorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.infraGetAllTreeNodesRecord.delete({ where: { id: '' } }).execute(); +const deleted = await db.functionGraphCommit.delete({ where: { id: '' } }).execute(); ``` -### `db.infraObject` +### `db.functionGraph` -CRUD operations for InfraObject records. +CRUD operations for FunctionGraph records. **Fields:** | Field | Type | Editable | |-------|------|----------| +| `context` | String | Yes | | `createdAt` | Datetime | No | -| `data` | JSON | Yes | -| `databaseId` | UUID | Yes | +| `createdBy` | UUID | Yes | +| `definitionsCommitId` | UUID | Yes | +| `description` | String | Yes | | `id` | UUID | No | -| `kids` | UUID | Yes | -| `ktree` | String | Yes | +| `isValid` | Boolean | Yes | +| `name` | String | Yes | +| `scopeId` | UUID | Yes | +| `storeId` | UUID | Yes | +| `updatedAt` | Datetime | No | +| `validationErrors` | JSON | Yes | **Operations:** ```typescript -// List all infraObject records -const items = await db.infraObject.findMany({ select: { createdAt: true, data: true, databaseId: true, id: true, kids: true, ktree: true } }).execute(); +// List all functionGraph records +const items = await db.functionGraph.findMany({ select: { context: true, createdAt: true, createdBy: true, definitionsCommitId: true, description: true, id: true, isValid: true, name: true, scopeId: true, storeId: true, updatedAt: true, validationErrors: true } }).execute(); // Get one by id -const item = await db.infraObject.findOne({ id: '', select: { createdAt: true, data: true, databaseId: true, id: true, kids: true, ktree: true } }).execute(); +const item = await db.functionGraph.findOne({ id: '', select: { context: true, createdAt: true, createdBy: true, definitionsCommitId: true, description: true, id: true, isValid: true, name: true, scopeId: true, storeId: true, updatedAt: true, validationErrors: true } }).execute(); // Create -const created = await db.infraObject.create({ data: { data: '', databaseId: '', kids: '', ktree: '' }, select: { id: true } }).execute(); +const created = await db.functionGraph.create({ data: { context: '', createdBy: '', definitionsCommitId: '', description: '', isValid: '', name: '', scopeId: '', storeId: '', validationErrors: '' }, select: { id: true } }).execute(); // Update -const updated = await db.infraObject.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); +const updated = await db.functionGraph.update({ where: { id: '' }, data: { context: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.infraObject.delete({ where: { id: '' } }).execute(); +const deleted = await db.functionGraph.delete({ where: { id: '' } }).execute(); ``` -### `db.infraRef` +### `db.functionGraphExecution` -CRUD operations for InfraRef records. +CRUD operations for FunctionGraphExecution records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `commitId` | UUID | Yes | -| `databaseId` | UUID | Yes | +| `actorId` | UUID | Yes | +| `completedAt` | Datetime | Yes | +| `currentWave` | Int | Yes | +| `definitionsCommitId` | UUID | Yes | +| `entityId` | UUID | Yes | +| `entityType` | String | Yes | +| `errorCode` | String | Yes | +| `errorMessage` | String | Yes | +| `executionPlan` | JSON | Yes | +| `graphId` | UUID | Yes | | `id` | UUID | No | -| `name` | String | Yes | -| `storeId` | UUID | Yes | +| `inputPayload` | JSON | Yes | +| `invocationCreatedAt` | Datetime | Yes | +| `invocationId` | UUID | Yes | +| `lastProgressAt` | Datetime | Yes | +| `maxPendingJobs` | Int | Yes | +| `maxTicks` | Int | Yes | +| `nodeOutputs` | JSON | Yes | +| `organizationId` | UUID | Yes | +| `outputNames` | String | Yes | +| `outputNode` | String | Yes | +| `outputPayload` | JSON | Yes | +| `outputPort` | String | Yes | +| `parentExecutionId` | UUID | Yes | +| `parentInvocationId` | UUID | Yes | +| `parentNodeName` | String | Yes | +| `principalId` | UUID | Yes | +| `scopeId` | UUID | Yes | +| `startedAt` | Datetime | Yes | +| `status` | String | Yes | +| `tickCount` | Int | Yes | +| `timeoutAt` | Datetime | Yes | **Operations:** ```typescript -// List all infraRef records -const items = await db.infraRef.findMany({ select: { commitId: true, databaseId: true, id: true, name: true, storeId: true } }).execute(); +// List all functionGraphExecution records +const items = await db.functionGraphExecution.findMany({ select: { actorId: true, completedAt: true, currentWave: true, definitionsCommitId: true, entityId: true, entityType: true, errorCode: true, errorMessage: true, executionPlan: true, graphId: true, id: true, inputPayload: true, invocationCreatedAt: true, invocationId: true, lastProgressAt: true, maxPendingJobs: true, maxTicks: true, nodeOutputs: true, organizationId: true, outputNames: true, outputNode: true, outputPayload: true, outputPort: true, parentExecutionId: true, parentInvocationId: true, parentNodeName: true, principalId: true, scopeId: true, startedAt: true, status: true, tickCount: true, timeoutAt: true } }).execute(); // Get one by id -const item = await db.infraRef.findOne({ id: '', select: { commitId: true, databaseId: true, id: true, name: true, storeId: true } }).execute(); +const item = await db.functionGraphExecution.findOne({ id: '', select: { actorId: true, completedAt: true, currentWave: true, definitionsCommitId: true, entityId: true, entityType: true, errorCode: true, errorMessage: true, executionPlan: true, graphId: true, id: true, inputPayload: true, invocationCreatedAt: true, invocationId: true, lastProgressAt: true, maxPendingJobs: true, maxTicks: true, nodeOutputs: true, organizationId: true, outputNames: true, outputNode: true, outputPayload: true, outputPort: true, parentExecutionId: true, parentInvocationId: true, parentNodeName: true, principalId: true, scopeId: true, startedAt: true, status: true, tickCount: true, timeoutAt: true } }).execute(); // Create -const created = await db.infraRef.create({ data: { commitId: '', databaseId: '', name: '', storeId: '' }, select: { id: true } }).execute(); +const created = await db.functionGraphExecution.create({ data: { actorId: '', completedAt: '', currentWave: '', definitionsCommitId: '', entityId: '', entityType: '', errorCode: '', errorMessage: '', executionPlan: '', graphId: '', inputPayload: '', invocationCreatedAt: '', invocationId: '', lastProgressAt: '', maxPendingJobs: '', maxTicks: '', nodeOutputs: '', organizationId: '', outputNames: '', outputNode: '', outputPayload: '', outputPort: '', parentExecutionId: '', parentInvocationId: '', parentNodeName: '', principalId: '', scopeId: '', startedAt: '', status: '', tickCount: '', timeoutAt: '' }, select: { id: true } }).execute(); // Update -const updated = await db.infraRef.update({ where: { id: '' }, data: { commitId: '' }, select: { id: true } }).execute(); +const updated = await db.functionGraphExecution.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.infraRef.delete({ where: { id: '' } }).execute(); +const deleted = await db.functionGraphExecution.delete({ where: { id: '' } }).execute(); ``` -### `db.infraStore` +### `db.functionGraphExecutionNodeState` -CRUD operations for InfraStore records. +CRUD operations for FunctionGraphExecutionNodeState records. **Fields:** | Field | Type | Editable | |-------|------|----------| +| `callbackInputs` | JSON | Yes | +| `callbackMeta` | JSON | Yes | +| `callbackTokenHash` | String | Yes | +| `completedAt` | Datetime | Yes | | `createdAt` | Datetime | No | -| `databaseId` | UUID | Yes | -| `hash` | UUID | Yes | +| `errorCode` | String | Yes | +| `errorMessage` | String | Yes | +| `executionId` | UUID | Yes | +| `expiryDefaultOutput` | JSON | Yes | +| `expiryEscalatedAt` | Datetime | Yes | +| `expiryPolicy` | String | Yes | | `id` | UUID | No | -| `name` | String | Yes | +| `nodeName` | String | Yes | +| `nodePath` | String | Yes | +| `outputId` | UUID | Yes | +| `scopeId` | UUID | Yes | +| `startedAt` | Datetime | Yes | +| `status` | String | Yes | +| `waitingDeadlineAt` | Datetime | Yes | +| `waitingOn` | String | Yes | +| `waitingSince` | Datetime | Yes | **Operations:** ```typescript -// List all infraStore records -const items = await db.infraStore.findMany({ select: { createdAt: true, databaseId: true, hash: true, id: true, name: true } }).execute(); +// List all functionGraphExecutionNodeState records +const items = await db.functionGraphExecutionNodeState.findMany({ select: { callbackInputs: true, callbackMeta: true, callbackTokenHash: true, completedAt: true, createdAt: true, errorCode: true, errorMessage: true, executionId: true, expiryDefaultOutput: true, expiryEscalatedAt: true, expiryPolicy: true, id: true, nodeName: true, nodePath: true, outputId: true, scopeId: true, startedAt: true, status: true, waitingDeadlineAt: true, waitingOn: true, waitingSince: true } }).execute(); // Get one by id -const item = await db.infraStore.findOne({ id: '', select: { createdAt: true, databaseId: true, hash: true, id: true, name: true } }).execute(); +const item = await db.functionGraphExecutionNodeState.findOne({ id: '', select: { callbackInputs: true, callbackMeta: true, callbackTokenHash: true, completedAt: true, createdAt: true, errorCode: true, errorMessage: true, executionId: true, expiryDefaultOutput: true, expiryEscalatedAt: true, expiryPolicy: true, id: true, nodeName: true, nodePath: true, outputId: true, scopeId: true, startedAt: true, status: true, waitingDeadlineAt: true, waitingOn: true, waitingSince: true } }).execute(); // Create -const created = await db.infraStore.create({ data: { databaseId: '', hash: '', name: '' }, select: { id: true } }).execute(); +const created = await db.functionGraphExecutionNodeState.create({ data: { callbackInputs: '', callbackMeta: '', callbackTokenHash: '', completedAt: '', errorCode: '', errorMessage: '', executionId: '', expiryDefaultOutput: '', expiryEscalatedAt: '', expiryPolicy: '', nodeName: '', nodePath: '', outputId: '', scopeId: '', startedAt: '', status: '', waitingDeadlineAt: '', waitingOn: '', waitingSince: '' }, select: { id: true } }).execute(); // Update -const updated = await db.infraStore.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.functionGraphExecutionNodeState.update({ where: { id: '' }, data: { callbackInputs: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.infraStore.delete({ where: { id: '' } }).execute(); +const deleted = await db.functionGraphExecutionNodeState.delete({ where: { id: '' } }).execute(); ``` -### `db.integrationProvider` +### `db.functionGraphExecutionOutput` -CRUD operations for IntegrationProvider records. +CRUD operations for FunctionGraphExecutionOutput records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `brand` | JSON | Yes | -| `category` | String | Yes | | `createdAt` | Datetime | No | -| `description` | String | Yes | -| `icon` | String | Yes | +| `data` | JSON | Yes | +| `hash` | Base64EncodedBinary | Yes | | `id` | UUID | No | -| `logo` | ConstructiveInternalTypeImage | Yes | -| `name` | String | Yes | -| `requiredConfigs` | ResourceRequirement | Yes | -| `requiredSecrets` | ResourceRequirement | Yes | -| `slug` | String | Yes | -| `updatedAt` | Datetime | No | +| `scopeId` | UUID | Yes | **Operations:** ```typescript -// List all integrationProvider records -const items = await db.integrationProvider.findMany({ select: { brand: true, category: true, createdAt: true, description: true, icon: true, id: true, logo: true, name: true, requiredConfigs: true, requiredSecrets: true, slug: true, updatedAt: true } }).execute(); +// List all functionGraphExecutionOutput records +const items = await db.functionGraphExecutionOutput.findMany({ select: { createdAt: true, data: true, hash: true, id: true, scopeId: true } }).execute(); // Get one by id -const item = await db.integrationProvider.findOne({ id: '', select: { brand: true, category: true, createdAt: true, description: true, icon: true, id: true, logo: true, name: true, requiredConfigs: true, requiredSecrets: true, slug: true, updatedAt: true } }).execute(); +const item = await db.functionGraphExecutionOutput.findOne({ id: '', select: { createdAt: true, data: true, hash: true, id: true, scopeId: true } }).execute(); // Create -const created = await db.integrationProvider.create({ data: { brand: '', category: '', description: '', icon: '', logo: '', name: '', requiredConfigs: '', requiredSecrets: '', slug: '' }, select: { id: true } }).execute(); +const created = await db.functionGraphExecutionOutput.create({ data: { data: '', hash: '', scopeId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.integrationProvider.update({ where: { id: '' }, data: { brand: '' }, select: { id: true } }).execute(); +const updated = await db.functionGraphExecutionOutput.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.integrationProvider.delete({ where: { id: '' } }).execute(); +const deleted = await db.functionGraphExecutionOutput.delete({ where: { id: '' } }).execute(); ``` -### `db.namespace` +### `db.functionGraphObject` -CRUD operations for Namespace records. +CRUD operations for FunctionGraphObject records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `annotations` | JSON | Yes | | `createdAt` | Datetime | No | -| `databaseId` | UUID | Yes | -| `description` | String | Yes | +| `data` | JSON | Yes | | `id` | UUID | No | -| `isActive` | Boolean | Yes | -| `isManaged` | Boolean | Yes | -| `labels` | JSON | Yes | -| `lastError` | String | Yes | -| `name` | String | Yes | -| `namespaceName` | String | Yes | -| `status` | String | Yes | -| `updatedAt` | Datetime | No | +| `kids` | UUID | Yes | +| `ktree` | String | Yes | +| `scopeId` | UUID | Yes | **Operations:** ```typescript -// List all namespace records -const items = await db.namespace.findMany({ select: { annotations: true, createdAt: true, databaseId: true, description: true, id: true, isActive: true, isManaged: true, labels: true, lastError: true, name: true, namespaceName: true, status: true, updatedAt: true } }).execute(); +// List all functionGraphObject records +const items = await db.functionGraphObject.findMany({ select: { createdAt: true, data: true, id: true, kids: true, ktree: true, scopeId: true } }).execute(); // Get one by id -const item = await db.namespace.findOne({ id: '', select: { annotations: true, createdAt: true, databaseId: true, description: true, id: true, isActive: true, isManaged: true, labels: true, lastError: true, name: true, namespaceName: true, status: true, updatedAt: true } }).execute(); +const item = await db.functionGraphObject.findOne({ id: '', select: { createdAt: true, data: true, id: true, kids: true, ktree: true, scopeId: true } }).execute(); // Create -const created = await db.namespace.create({ data: { annotations: '', databaseId: '', description: '', isActive: '', isManaged: '', labels: '', lastError: '', name: '', namespaceName: '', status: '' }, select: { id: true } }).execute(); +const created = await db.functionGraphObject.create({ data: { data: '', kids: '', ktree: '', scopeId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.namespace.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); +const updated = await db.functionGraphObject.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.namespace.delete({ where: { id: '' } }).execute(); +const deleted = await db.functionGraphObject.delete({ where: { id: '' } }).execute(); ``` -### `db.namespaceEvent` +### `db.functionGraphRef` -CRUD operations for NamespaceEvent records. +CRUD operations for FunctionGraphRef records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `actorId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `databaseId` | UUID | Yes | -| `eventType` | String | Yes | +| `commitId` | UUID | Yes | | `id` | UUID | No | -| `message` | String | Yes | -| `metadata` | JSON | Yes | -| `namespaceId` | UUID | Yes | +| `name` | String | Yes | +| `scopeId` | UUID | Yes | +| `storeId` | UUID | Yes | **Operations:** ```typescript -// List all namespaceEvent records -const items = await db.namespaceEvent.findMany({ select: { actorId: true, createdAt: true, databaseId: true, eventType: true, id: true, message: true, metadata: true, namespaceId: true } }).execute(); +// List all functionGraphRef records +const items = await db.functionGraphRef.findMany({ select: { commitId: true, id: true, name: true, scopeId: true, storeId: true } }).execute(); // Get one by id -const item = await db.namespaceEvent.findOne({ id: '', select: { actorId: true, createdAt: true, databaseId: true, eventType: true, id: true, message: true, metadata: true, namespaceId: true } }).execute(); +const item = await db.functionGraphRef.findOne({ id: '', select: { commitId: true, id: true, name: true, scopeId: true, storeId: true } }).execute(); // Create -const created = await db.namespaceEvent.create({ data: { actorId: '', databaseId: '', eventType: '', message: '', metadata: '', namespaceId: '' }, select: { id: true } }).execute(); +const created = await db.functionGraphRef.create({ data: { commitId: '', name: '', scopeId: '', storeId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.namespaceEvent.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); +const updated = await db.functionGraphRef.update({ where: { id: '' }, data: { commitId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.namespaceEvent.delete({ where: { id: '' } }).execute(); +const deleted = await db.functionGraphRef.delete({ where: { id: '' } }).execute(); ``` -### `db.platformFunctionApiBinding` +### `db.functionGraphStore` -CRUD operations for PlatformFunctionApiBinding records. +CRUD operations for FunctionGraphStore records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `alias` | String | Yes | -| `apiId` | UUID | Yes | -| `config` | JSON | Yes | | `createdAt` | Datetime | No | -| `functionDefinitionId` | UUID | Yes | +| `hash` | UUID | Yes | | `id` | UUID | No | -| `updatedAt` | Datetime | No | +| `name` | String | Yes | +| `scopeId` | UUID | Yes | **Operations:** ```typescript -// List all platformFunctionApiBinding records -const items = await db.platformFunctionApiBinding.findMany({ select: { alias: true, apiId: true, config: true, createdAt: true, functionDefinitionId: true, id: true, updatedAt: true } }).execute(); +// List all functionGraphStore records +const items = await db.functionGraphStore.findMany({ select: { createdAt: true, hash: true, id: true, name: true, scopeId: true } }).execute(); // Get one by id -const item = await db.platformFunctionApiBinding.findOne({ id: '', select: { alias: true, apiId: true, config: true, createdAt: true, functionDefinitionId: true, id: true, updatedAt: true } }).execute(); +const item = await db.functionGraphStore.findOne({ id: '', select: { createdAt: true, hash: true, id: true, name: true, scopeId: true } }).execute(); // Create -const created = await db.platformFunctionApiBinding.create({ data: { alias: '', apiId: '', config: '', functionDefinitionId: '' }, select: { id: true } }).execute(); +const created = await db.functionGraphStore.create({ data: { hash: '', name: '', scopeId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformFunctionApiBinding.update({ where: { id: '' }, data: { alias: '' }, select: { id: true } }).execute(); +const updated = await db.functionGraphStore.update({ where: { id: '' }, data: { hash: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformFunctionApiBinding.delete({ where: { id: '' } }).execute(); +const deleted = await db.functionGraphStore.delete({ where: { id: '' } }).execute(); ``` -### `db.platformFunctionCapabilityBinding` +### `db.functionInvocationAttempt` -CRUD operations for PlatformFunctionCapabilityBinding records. +CRUD operations for FunctionInvocationAttempt records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `bucketId` | UUID | Yes | +| `actorId` | UUID | Yes | +| `attempt` | Int | Yes | | `createdAt` | Datetime | No | -| `functionId` | UUID | Yes | -| `graphId` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `durationMs` | Int | Yes | +| `error` | String | Yes | +| `errorDetail` | JSON | Yes | | `id` | UUID | No | -| `key` | String | Yes | -| `lifecycle` | String | Yes | -| `metadata` | JSON | Yes | -| `updatedAt` | Datetime | No | +| `invocationCreatedAt` | Datetime | Yes | +| `invocationId` | UUID | Yes | +| `startedAt` | Datetime | Yes | +| `success` | Boolean | Yes | +| `taskIdentifier` | String | Yes | **Operations:** ```typescript -// List all platformFunctionCapabilityBinding records -const items = await db.platformFunctionCapabilityBinding.findMany({ select: { bucketId: true, createdAt: true, functionId: true, graphId: true, id: true, key: true, lifecycle: true, metadata: true, updatedAt: true } }).execute(); +// List all functionInvocationAttempt records +const items = await db.functionInvocationAttempt.findMany({ select: { actorId: true, attempt: true, createdAt: true, databaseId: true, durationMs: true, error: true, errorDetail: true, id: true, invocationCreatedAt: true, invocationId: true, startedAt: true, success: true, taskIdentifier: true } }).execute(); // Get one by id -const item = await db.platformFunctionCapabilityBinding.findOne({ id: '', select: { bucketId: true, createdAt: true, functionId: true, graphId: true, id: true, key: true, lifecycle: true, metadata: true, updatedAt: true } }).execute(); +const item = await db.functionInvocationAttempt.findOne({ id: '', select: { actorId: true, attempt: true, createdAt: true, databaseId: true, durationMs: true, error: true, errorDetail: true, id: true, invocationCreatedAt: true, invocationId: true, startedAt: true, success: true, taskIdentifier: true } }).execute(); // Create -const created = await db.platformFunctionCapabilityBinding.create({ data: { bucketId: '', functionId: '', graphId: '', key: '', lifecycle: '', metadata: '' }, select: { id: true } }).execute(); +const created = await db.functionInvocationAttempt.create({ data: { actorId: '', attempt: '', databaseId: '', durationMs: '', error: '', errorDetail: '', invocationCreatedAt: '', invocationId: '', startedAt: '', success: '', taskIdentifier: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformFunctionCapabilityBinding.update({ where: { id: '' }, data: { bucketId: '' }, select: { id: true } }).execute(); +const updated = await db.functionInvocationAttempt.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformFunctionCapabilityBinding.delete({ where: { id: '' } }).execute(); +const deleted = await db.functionInvocationAttempt.delete({ where: { id: '' } }).execute(); ``` -### `db.platformFunctionDefinition` +### `db.functionInvocation` -CRUD operations for PlatformFunctionDefinition records. +CRUD operations for FunctionInvocation records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `accessChannels` | String | Yes | -| `billable` | Boolean | Yes | -| `category` | String | Yes | -| `concurrency` | Int | Yes | -| `cpuLimitMillicores` | BigInt | Yes | -| `cpuRequestMillicores` | BigInt | Yes | +| `actorId` | UUID | Yes | +| `apiBindingId` | UUID | Yes | +| `channel` | String | Yes | +| `completedAt` | Datetime | Yes | | `createdAt` | Datetime | No | -| `description` | String | Yes | -| `fnCategory` | String | Yes | -| `functionColumns` | JSON | Yes | -| `graphId` | UUID | Yes | -| `icon` | String | Yes | +| `createdByPrincipal` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `definitionScope` | String | Yes | +| `durationMs` | Int | Yes | +| `entityId` | UUID | Yes | +| `entityType` | String | Yes | +| `error` | String | Yes | +| `functionDefinitionId` | UUID | Yes | +| `graphExecutionId` | UUID | Yes | | `id` | UUID | No | -| `image` | String | Yes | -| `inputs` | JSON | Yes | -| `integrations` | String | Yes | -| `isPublished` | Boolean | Yes | -| `maxAttempts` | Int | Yes | -| `memoryLimitBytes` | BigInt | Yes | -| `memoryRequestBytes` | BigInt | Yes | -| `moduleTable` | String | Yes | -| `name` | String | Yes | -| `outputs` | JSON | Yes | -| `payloadArgs` | JSON | Yes | -| `priority` | Int | Yes | -| `props` | JSON | Yes | -| `protected` | Boolean | Yes | -| `publishedAt` | Datetime | Yes | -| `queueName` | String | Yes | -| `requiredBuckets` | String | Yes | -| `requiredConfigs` | ResourceRequirement | Yes | -| `requiredModels` | String | Yes | -| `requiredModules` | String | Yes | -| `requiredSecrets` | ResourceRequirement | Yes | -| `resources` | JSON | Yes | -| `runtime` | String | Yes | -| `scaleMax` | Int | Yes | -| `scaleMin` | Int | Yes | -| `system` | Boolean | Yes | -| `targetFunction` | String | Yes | -| `targetSchema` | String | Yes | +| `jobId` | BigInt | Yes | +| `organizationId` | UUID | Yes | +| `parentInvocationId` | UUID | Yes | +| `payload` | JSON | Yes | +| `principalId` | UUID | Yes | +| `provenance` | JSON | Yes | +| `result` | JSON | Yes | +| `startedAt` | Datetime | Yes | +| `status` | String | Yes | | `taskIdentifier` | String | Yes | -| `timeoutSeconds` | Int | Yes | -| `updatedAt` | Datetime | No | -| `volatile` | Boolean | Yes | **Operations:** ```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, 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(); +// List all functionInvocation records +const items = await db.functionInvocation.findMany({ select: { actorId: true, apiBindingId: true, channel: true, completedAt: true, createdAt: true, createdByPrincipal: true, databaseId: true, definitionScope: true, durationMs: true, entityId: true, entityType: true, error: true, functionDefinitionId: true, graphExecutionId: true, id: true, jobId: true, organizationId: true, parentInvocationId: true, payload: true, principalId: true, provenance: true, result: true, startedAt: true, status: true, taskIdentifier: 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, 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(); +const item = await db.functionInvocation.findOne({ id: '', select: { actorId: true, apiBindingId: true, channel: true, completedAt: true, createdAt: true, createdByPrincipal: true, databaseId: true, definitionScope: true, durationMs: true, entityId: true, entityType: true, error: true, functionDefinitionId: true, graphExecutionId: true, id: true, jobId: true, organizationId: true, parentInvocationId: true, payload: true, principalId: true, provenance: true, result: true, startedAt: true, status: true, taskIdentifier: 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: '', requiredModules: '', requiredSecrets: '', resources: '', runtime: '', scaleMax: '', scaleMin: '', system: '', targetFunction: '', targetSchema: '', taskIdentifier: '', timeoutSeconds: '', volatile: '' }, select: { id: true } }).execute(); +const created = await db.functionInvocation.create({ data: { actorId: '', apiBindingId: '', channel: '', completedAt: '', createdByPrincipal: '', databaseId: '', definitionScope: '', durationMs: '', entityId: '', entityType: '', error: '', functionDefinitionId: '', graphExecutionId: '', jobId: '', organizationId: '', parentInvocationId: '', payload: '', principalId: '', provenance: '', result: '', startedAt: '', status: '', taskIdentifier: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformFunctionDefinition.update({ where: { id: '' }, data: { accessChannels: '' }, select: { id: true } }).execute(); +const updated = await db.functionInvocation.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformFunctionDefinition.delete({ where: { id: '' } }).execute(); +const deleted = await db.functionInvocation.delete({ where: { id: '' } }).execute(); ``` -### `db.platformFunctionDeployment` +### `db.getAllTreeNodesRecord` -CRUD operations for PlatformFunctionDeployment records. +CRUD operations for GetAllTreeNodesRecord records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `annotations` | JSON | Yes | -| `concurrency` | Int | Yes | -| `createdAt` | Datetime | No | -| `errorCount` | Int | Yes | -| `handlerName` | String | Yes | -| `id` | UUID | No | -| `image` | String | Yes | -| `imageVersion` | String | Yes | -| `labels` | JSON | Yes | -| `lastError` | String | Yes | -| `lastErrorAt` | Datetime | Yes | -| `namespaceId` | UUID | Yes | -| `realm` | String | Yes | -| `resources` | JSON | Yes | -| `revision` | Int | Yes | -| `scaleMax` | Int | Yes | -| `scaleMin` | Int | Yes | -| `serviceName` | String | Yes | -| `serviceUrl` | String | Yes | -| `status` | String | Yes | -| `timeoutSeconds` | Int | Yes | -| `updatedAt` | Datetime | No | +| `data` | JSON | Yes | +| `path` | String | Yes | **Operations:** ```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, realm: true, resources: true, revision: true, scaleMax: true, scaleMin: true, serviceName: true, serviceUrl: true, status: true, timeoutSeconds: true, updatedAt: true } }).execute(); +// List all getAllTreeNodesRecord records +const items = await db.getAllTreeNodesRecord.findMany({ select: { data: true, path: 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, realm: true, resources: true, revision: true, scaleMax: true, scaleMin: true, serviceName: true, serviceUrl: true, status: true, timeoutSeconds: true, updatedAt: true } }).execute(); +const item = await db.getAllTreeNodesRecord.findOne({ id: '', select: { data: true, path: true } }).execute(); // Create -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(); +const created = await db.getAllTreeNodesRecord.create({ data: { data: '', path: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformFunctionDeployment.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); +const updated = await db.getAllTreeNodesRecord.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformFunctionDeployment.delete({ where: { id: '' } }).execute(); +const deleted = await db.getAllTreeNodesRecord.delete({ where: { id: '' } }).execute(); ``` -### `db.platformFunctionDeploymentEvent` +### `db.image` -CRUD operations for PlatformFunctionDeploymentEvent records. +CRUD operations for Image records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `actorId` | UUID | Yes | | `createdAt` | Datetime | No | -| `deploymentId` | UUID | Yes | -| `eventType` | String | Yes | +| `createdByPrincipal` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `description` | String | Yes | +| `digest` | String | Yes | +| `expiresAt` | Datetime | Yes | | `id` | UUID | No | -| `message` | String | Yes | +| `isPublished` | Boolean | Yes | +| `labels` | JSON | Yes | | `metadata` | JSON | Yes | +| `name` | String | Yes | +| `ownerId` | UUID | Yes | +| `platformOnly` | Boolean | Yes | +| `registryHost` | String | Yes | +| `repository` | String | Yes | +| `runtime` | String | Yes | +| `tag` | String | Yes | +| `updatedAt` | Datetime | No | +| `updatedByPrincipal` | UUID | Yes | **Operations:** ```typescript -// List all platformFunctionDeploymentEvent records -const items = await db.platformFunctionDeploymentEvent.findMany({ select: { actorId: true, createdAt: true, deploymentId: true, eventType: true, id: true, message: true, metadata: true } }).execute(); +// List all image records +const items = await db.image.findMany({ select: { createdAt: true, createdByPrincipal: true, databaseId: true, description: true, digest: true, expiresAt: true, id: true, isPublished: true, labels: true, metadata: true, name: true, ownerId: true, platformOnly: true, registryHost: true, repository: true, runtime: true, tag: true, updatedAt: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.platformFunctionDeploymentEvent.findOne({ id: '', select: { actorId: true, createdAt: true, deploymentId: true, eventType: true, id: true, message: true, metadata: true } }).execute(); +const item = await db.image.findOne({ id: '', select: { createdAt: true, createdByPrincipal: true, databaseId: true, description: true, digest: true, expiresAt: true, id: true, isPublished: true, labels: true, metadata: true, name: true, ownerId: true, platformOnly: true, registryHost: true, repository: true, runtime: true, tag: true, updatedAt: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.platformFunctionDeploymentEvent.create({ data: { actorId: '', deploymentId: '', eventType: '', message: '', metadata: '' }, select: { id: true } }).execute(); +const created = await db.image.create({ data: { createdByPrincipal: '', databaseId: '', description: '', digest: '', expiresAt: '', isPublished: '', labels: '', metadata: '', name: '', ownerId: '', platformOnly: '', registryHost: '', repository: '', runtime: '', tag: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformFunctionDeploymentEvent.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); +const updated = await db.image.update({ where: { id: '' }, data: { createdByPrincipal: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformFunctionDeploymentEvent.delete({ where: { id: '' } }).execute(); +const deleted = await db.image.delete({ where: { id: '' } }).execute(); ``` -### `db.platformFunctionExecutionLog` +### `db.imageGrant` -CRUD operations for PlatformFunctionExecutionLog records. +CRUD operations for ImageGrant records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `actorId` | UUID | Yes | +| `actions` | String | Yes | | `createdAt` | Datetime | No | +| `createdByPrincipal` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `expiresAt` | Datetime | Yes | +| `grantedBy` | UUID | Yes | +| `granteeKey` | UUID | Yes | +| `granteeScope` | String | Yes | | `id` | UUID | No | -| `invocationId` | UUID | Yes | -| `logLevel` | String | Yes | -| `message` | String | Yes | -| `metadata` | JSON | Yes | -| `taskIdentifier` | String | Yes | +| `imageId` | UUID | Yes | +| `updatedAt` | Datetime | No | +| `updatedByPrincipal` | UUID | Yes | **Operations:** ```typescript -// List all platformFunctionExecutionLog records -const items = await db.platformFunctionExecutionLog.findMany({ select: { actorId: true, createdAt: true, id: true, invocationId: true, logLevel: true, message: true, metadata: true, taskIdentifier: true } }).execute(); +// List all imageGrant records +const items = await db.imageGrant.findMany({ select: { actions: true, createdAt: true, createdByPrincipal: true, databaseId: true, expiresAt: true, grantedBy: true, granteeKey: true, granteeScope: true, id: true, imageId: true, updatedAt: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.platformFunctionExecutionLog.findOne({ id: '', select: { actorId: true, createdAt: true, id: true, invocationId: true, logLevel: true, message: true, metadata: true, taskIdentifier: true } }).execute(); +const item = await db.imageGrant.findOne({ id: '', select: { actions: true, createdAt: true, createdByPrincipal: true, databaseId: true, expiresAt: true, grantedBy: true, granteeKey: true, granteeScope: true, id: true, imageId: true, updatedAt: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.platformFunctionExecutionLog.create({ data: { actorId: '', invocationId: '', logLevel: '', message: '', metadata: '', taskIdentifier: '' }, select: { id: true } }).execute(); +const created = await db.imageGrant.create({ data: { actions: '', createdByPrincipal: '', databaseId: '', expiresAt: '', grantedBy: '', granteeKey: '', granteeScope: '', imageId: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformFunctionExecutionLog.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); +const updated = await db.imageGrant.update({ where: { id: '' }, data: { actions: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformFunctionExecutionLog.delete({ where: { id: '' } }).execute(); +const deleted = await db.imageGrant.delete({ where: { id: '' } }).execute(); ``` -### `db.platformFunctionInvocationAttempt` +### `db.infraCommit` + +CRUD operations for InfraCommit records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `authorId` | UUID | Yes | +| `committerId` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `date` | Datetime | Yes | +| `id` | UUID | No | +| `message` | String | Yes | +| `parentIds` | UUID | Yes | +| `storeId` | UUID | Yes | +| `treeId` | UUID | Yes | + +**Operations:** + +```typescript +// List all infraCommit records +const items = await db.infraCommit.findMany({ select: { authorId: true, committerId: true, databaseId: true, date: true, id: true, message: true, parentIds: true, storeId: true, treeId: true } }).execute(); + +// Get one by id +const item = await db.infraCommit.findOne({ id: '', select: { authorId: true, committerId: true, databaseId: true, date: true, id: true, message: true, parentIds: true, storeId: true, treeId: true } }).execute(); + +// Create +const created = await db.infraCommit.create({ data: { authorId: '', committerId: '', databaseId: '', date: '', message: '', parentIds: '', storeId: '', treeId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.infraCommit.update({ where: { id: '' }, data: { authorId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.infraCommit.delete({ where: { id: '' } }).execute(); +``` + +### `db.infraGetAllTreeNodesRecord` + +CRUD operations for InfraGetAllTreeNodesRecord records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `data` | JSON | Yes | +| `path` | String | Yes | + +**Operations:** + +```typescript +// List all infraGetAllTreeNodesRecord records +const items = await db.infraGetAllTreeNodesRecord.findMany({ select: { data: true, path: true } }).execute(); + +// Get one by id +const item = await db.infraGetAllTreeNodesRecord.findOne({ id: '', select: { data: true, path: true } }).execute(); + +// Create +const created = await db.infraGetAllTreeNodesRecord.create({ data: { data: '', path: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.infraGetAllTreeNodesRecord.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.infraGetAllTreeNodesRecord.delete({ where: { id: '' } }).execute(); +``` + +### `db.infraObject` + +CRUD operations for InfraObject records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `createdAt` | Datetime | No | +| `data` | JSON | Yes | +| `databaseId` | UUID | Yes | +| `id` | UUID | No | +| `kids` | UUID | Yes | +| `ktree` | String | Yes | + +**Operations:** + +```typescript +// List all infraObject records +const items = await db.infraObject.findMany({ select: { createdAt: true, data: true, databaseId: true, id: true, kids: true, ktree: true } }).execute(); + +// Get one by id +const item = await db.infraObject.findOne({ id: '', select: { createdAt: true, data: true, databaseId: true, id: true, kids: true, ktree: true } }).execute(); + +// Create +const created = await db.infraObject.create({ data: { data: '', databaseId: '', kids: '', ktree: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.infraObject.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.infraObject.delete({ where: { id: '' } }).execute(); +``` + +### `db.infraRef` + +CRUD operations for InfraRef records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `commitId` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `id` | UUID | No | +| `name` | String | Yes | +| `storeId` | UUID | Yes | + +**Operations:** + +```typescript +// List all infraRef records +const items = await db.infraRef.findMany({ select: { commitId: true, databaseId: true, id: true, name: true, storeId: true } }).execute(); + +// Get one by id +const item = await db.infraRef.findOne({ id: '', select: { commitId: true, databaseId: true, id: true, name: true, storeId: true } }).execute(); + +// Create +const created = await db.infraRef.create({ data: { commitId: '', databaseId: '', name: '', storeId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.infraRef.update({ where: { id: '' }, data: { commitId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.infraRef.delete({ where: { id: '' } }).execute(); +``` + +### `db.infraStore` + +CRUD operations for InfraStore records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `createdAt` | Datetime | No | +| `databaseId` | UUID | Yes | +| `hash` | UUID | Yes | +| `id` | UUID | No | +| `name` | String | Yes | + +**Operations:** + +```typescript +// List all infraStore records +const items = await db.infraStore.findMany({ select: { createdAt: true, databaseId: true, hash: true, id: true, name: true } }).execute(); + +// Get one by id +const item = await db.infraStore.findOne({ id: '', select: { createdAt: true, databaseId: true, hash: true, id: true, name: true } }).execute(); + +// Create +const created = await db.infraStore.create({ data: { databaseId: '', hash: '', name: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.infraStore.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.infraStore.delete({ where: { id: '' } }).execute(); +``` + +### `db.integrationProvider` + +CRUD operations for IntegrationProvider records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `brand` | JSON | Yes | +| `category` | String | Yes | +| `createdAt` | Datetime | No | +| `description` | String | Yes | +| `icon` | String | Yes | +| `id` | UUID | No | +| `logo` | ConstructiveInternalTypeImage | Yes | +| `name` | String | Yes | +| `requiredConfigs` | ResourceRequirement | Yes | +| `requiredSecrets` | ResourceRequirement | Yes | +| `slug` | String | Yes | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all integrationProvider records +const items = await db.integrationProvider.findMany({ select: { brand: true, category: true, createdAt: true, description: true, icon: true, id: true, logo: true, name: true, requiredConfigs: true, requiredSecrets: true, slug: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.integrationProvider.findOne({ id: '', select: { brand: true, category: true, createdAt: true, description: true, icon: true, id: true, logo: true, name: true, requiredConfigs: true, requiredSecrets: true, slug: true, updatedAt: true } }).execute(); + +// Create +const created = await db.integrationProvider.create({ data: { brand: '', category: '', description: '', icon: '', logo: '', name: '', requiredConfigs: '', requiredSecrets: '', slug: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.integrationProvider.update({ where: { id: '' }, data: { brand: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.integrationProvider.delete({ where: { id: '' } }).execute(); +``` + +### `db.namespace` + +CRUD operations for Namespace records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `annotations` | JSON | Yes | +| `clusterId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `databaseId` | UUID | Yes | +| `description` | String | Yes | +| `id` | UUID | No | +| `isActive` | Boolean | Yes | +| `isManaged` | Boolean | Yes | +| `labels` | JSON | Yes | +| `lastError` | String | Yes | +| `name` | String | Yes | +| `namespaceName` | String | Yes | +| `status` | String | Yes | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all namespace records +const items = await db.namespace.findMany({ select: { annotations: true, clusterId: true, createdAt: true, databaseId: true, description: true, id: true, isActive: true, isManaged: true, labels: true, lastError: true, name: true, namespaceName: true, status: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.namespace.findOne({ id: '', select: { annotations: true, clusterId: true, createdAt: true, databaseId: true, description: true, id: true, isActive: true, isManaged: true, labels: true, lastError: true, name: true, namespaceName: true, status: true, updatedAt: true } }).execute(); + +// Create +const created = await db.namespace.create({ data: { annotations: '', clusterId: '', databaseId: '', description: '', isActive: '', isManaged: '', labels: '', lastError: '', name: '', namespaceName: '', status: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.namespace.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.namespace.delete({ where: { id: '' } }).execute(); +``` + +### `db.namespaceEvent` + +CRUD operations for NamespaceEvent records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `actorId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `databaseId` | UUID | Yes | +| `eventType` | String | Yes | +| `id` | UUID | No | +| `message` | String | Yes | +| `metadata` | JSON | Yes | +| `namespaceId` | UUID | Yes | + +**Operations:** + +```typescript +// List all namespaceEvent records +const items = await db.namespaceEvent.findMany({ select: { actorId: true, createdAt: true, databaseId: true, eventType: true, id: true, message: true, metadata: true, namespaceId: true } }).execute(); + +// Get one by id +const item = await db.namespaceEvent.findOne({ id: '', select: { actorId: true, createdAt: true, databaseId: true, eventType: true, id: true, message: true, metadata: true, namespaceId: true } }).execute(); + +// Create +const created = await db.namespaceEvent.create({ data: { actorId: '', databaseId: '', eventType: '', message: '', metadata: '', namespaceId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.namespaceEvent.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.namespaceEvent.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformBuild` + +CRUD operations for PlatformBuild records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `actorId` | UUID | Yes | +| `attempt` | Int | Yes | +| `commitSha` | String | Yes | +| `conclusion` | String | Yes | +| `createdAt` | Datetime | No | +| `createdByPrincipal` | UUID | Yes | +| `eventId` | UUID | Yes | +| `finishedAt` | Datetime | Yes | +| `id` | UUID | No | +| `imageRef` | String | Yes | +| `jobId` | BigInt | Yes | +| `logs` | ConstructiveInternalTypeUpload | Yes | +| `matrixKey` | String | Yes | +| `metadata` | JSON | Yes | +| `proposalId` | UUID | Yes | +| `ref` | String | Yes | +| `repositoryId` | UUID | Yes | +| `startedAt` | Datetime | Yes | +| `status` | String | Yes | +| `updatedAt` | Datetime | No | +| `updatedByPrincipal` | UUID | Yes | +| `workflowId` | UUID | Yes | + +**Operations:** + +```typescript +// List all platformBuild records +const items = await db.platformBuild.findMany({ select: { actorId: true, attempt: true, commitSha: true, conclusion: true, createdAt: true, createdByPrincipal: true, eventId: true, finishedAt: true, id: true, imageRef: true, jobId: true, logs: true, matrixKey: true, metadata: true, proposalId: true, ref: true, repositoryId: true, startedAt: true, status: true, updatedAt: true, updatedByPrincipal: true, workflowId: true } }).execute(); + +// Get one by id +const item = await db.platformBuild.findOne({ id: '', select: { actorId: true, attempt: true, commitSha: true, conclusion: true, createdAt: true, createdByPrincipal: true, eventId: true, finishedAt: true, id: true, imageRef: true, jobId: true, logs: true, matrixKey: true, metadata: true, proposalId: true, ref: true, repositoryId: true, startedAt: true, status: true, updatedAt: true, updatedByPrincipal: true, workflowId: true } }).execute(); + +// Create +const created = await db.platformBuild.create({ data: { actorId: '', attempt: '', commitSha: '', conclusion: '', createdByPrincipal: '', eventId: '', finishedAt: '', imageRef: '', jobId: '', logs: '', matrixKey: '', metadata: '', proposalId: '', ref: '', repositoryId: '', startedAt: '', status: '', updatedByPrincipal: '', workflowId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformBuild.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformBuild.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformBuildStep` + +CRUD operations for PlatformBuildStep records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `buildId` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | +| `exitCode` | Int | Yes | +| `finishedAt` | Datetime | Yes | +| `id` | UUID | No | +| `kind` | String | Yes | +| `logBytes` | BigInt | Yes | +| `logOffset` | BigInt | Yes | +| `name` | String | Yes | +| `parentSeq` | Int | Yes | +| `recordedAt` | Datetime | Yes | +| `seq` | Int | Yes | +| `startedAt` | Datetime | Yes | +| `status` | String | Yes | +| `summary` | JSON | Yes | + +**Operations:** + +```typescript +// List all platformBuildStep records +const items = await db.platformBuildStep.findMany({ select: { buildId: true, createdByPrincipal: true, exitCode: true, finishedAt: true, id: true, kind: true, logBytes: true, logOffset: true, name: true, parentSeq: true, recordedAt: true, seq: true, startedAt: true, status: true, summary: true } }).execute(); + +// Get one by id +const item = await db.platformBuildStep.findOne({ id: '', select: { buildId: true, createdByPrincipal: true, exitCode: true, finishedAt: true, id: true, kind: true, logBytes: true, logOffset: true, name: true, parentSeq: true, recordedAt: true, seq: true, startedAt: true, status: true, summary: true } }).execute(); + +// Create +const created = await db.platformBuildStep.create({ data: { buildId: '', createdByPrincipal: '', exitCode: '', finishedAt: '', kind: '', logBytes: '', logOffset: '', name: '', parentSeq: '', recordedAt: '', seq: '', startedAt: '', status: '', summary: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformBuildStep.update({ where: { id: '' }, data: { buildId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformBuildStep.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformBuilderBinding` + +CRUD operations for PlatformBuilderBinding records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `createdAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | +| `id` | UUID | No | +| `installationId` | UUID | Yes | +| `lastError` | String | Yes | +| `metadata` | JSON | Yes | +| `namespaceId` | UUID | Yes | +| `observedHost` | String | Yes | +| `realm` | String | Yes | +| `status` | String | Yes | +| `updatedAt` | Datetime | No | +| `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | + +**Operations:** + +```typescript +// List all platformBuilderBinding records +const items = await db.platformBuilderBinding.findMany({ select: { createdAt: true, createdBy: true, createdByPrincipal: true, id: true, installationId: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Get one by id +const item = await db.platformBuilderBinding.findOne({ id: '', select: { createdAt: true, createdBy: true, createdByPrincipal: true, id: true, installationId: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Create +const created = await db.platformBuilderBinding.create({ data: { createdBy: '', createdByPrincipal: '', installationId: '', lastError: '', metadata: '', namespaceId: '', observedHost: '', realm: '', status: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformBuilderBinding.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformBuilderBinding.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformFunctionApiBinding` + +CRUD operations for PlatformFunctionApiBinding records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `alias` | String | Yes | +| `apiId` | UUID | Yes | +| `config` | JSON | Yes | +| `createdAt` | Datetime | No | +| `functionDefinitionId` | UUID | Yes | +| `id` | UUID | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all platformFunctionApiBinding records +const items = await db.platformFunctionApiBinding.findMany({ select: { alias: true, apiId: true, config: true, createdAt: true, functionDefinitionId: true, id: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.platformFunctionApiBinding.findOne({ id: '', select: { alias: true, apiId: true, config: true, createdAt: true, functionDefinitionId: true, id: true, updatedAt: true } }).execute(); + +// Create +const created = await db.platformFunctionApiBinding.create({ data: { alias: '', apiId: '', config: '', functionDefinitionId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformFunctionApiBinding.update({ where: { id: '' }, data: { alias: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformFunctionApiBinding.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformFunctionCapabilityBinding` + +CRUD operations for PlatformFunctionCapabilityBinding records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `bucketId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `functionId` | UUID | Yes | +| `graphId` | UUID | Yes | +| `id` | UUID | No | +| `key` | String | Yes | +| `lifecycle` | String | Yes | +| `metadata` | JSON | Yes | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all platformFunctionCapabilityBinding records +const items = await db.platformFunctionCapabilityBinding.findMany({ select: { bucketId: true, createdAt: true, functionId: true, graphId: true, id: true, key: true, lifecycle: true, metadata: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.platformFunctionCapabilityBinding.findOne({ id: '', select: { bucketId: true, createdAt: true, functionId: true, graphId: true, id: true, key: true, lifecycle: true, metadata: true, updatedAt: true } }).execute(); + +// Create +const created = await db.platformFunctionCapabilityBinding.create({ data: { bucketId: '', functionId: '', graphId: '', key: '', lifecycle: '', metadata: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformFunctionCapabilityBinding.update({ where: { id: '' }, data: { bucketId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformFunctionCapabilityBinding.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformFunctionDefinition` + +CRUD operations for PlatformFunctionDefinition records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `accessChannels` | String | Yes | +| `anonymousCallable` | Boolean | Yes | +| `billable` | Boolean | Yes | +| `category` | String | Yes | +| `concurrency` | Int | Yes | +| `cpuLimitMillicores` | BigInt | Yes | +| `cpuRequestMillicores` | BigInt | Yes | +| `createdAt` | Datetime | No | +| `createdByPrincipal` | UUID | Yes | +| `description` | String | Yes | +| `fnCategory` | String | Yes | +| `functionColumns` | JSON | Yes | +| `graphId` | UUID | Yes | +| `icon` | String | Yes | +| `id` | UUID | No | +| `image` | String | Yes | +| `inputs` | JSON | Yes | +| `integrations` | String | Yes | +| `isPublished` | Boolean | Yes | +| `maxAttempts` | Int | Yes | +| `memoryLimitBytes` | BigInt | Yes | +| `memoryRequestBytes` | BigInt | Yes | +| `moduleTable` | String | Yes | +| `name` | String | Yes | +| `outputs` | JSON | Yes | +| `payloadArgs` | JSON | Yes | +| `priority` | Int | Yes | +| `props` | JSON | Yes | +| `protected` | Boolean | Yes | +| `publishedAt` | Datetime | Yes | +| `queueName` | String | Yes | +| `requiredBuckets` | String | Yes | +| `requiredCapabilities` | JSON | Yes | +| `requiredConfigs` | ResourceRequirement | Yes | +| `requiredModels` | String | Yes | +| `requiredModules` | String | Yes | +| `requiredSecrets` | ResourceRequirement | Yes | +| `resources` | JSON | Yes | +| `runtime` | String | Yes | +| `scaleMax` | Int | Yes | +| `scaleMin` | Int | Yes | +| `system` | Boolean | Yes | +| `targetFunction` | String | Yes | +| `targetSchema` | String | Yes | +| `taskIdentifier` | String | Yes | +| `timeoutSeconds` | Int | Yes | +| `updatedAt` | Datetime | No | +| `updatedByPrincipal` | UUID | Yes | +| `volatile` | Boolean | Yes | + +**Operations:** + +```typescript +// List all platformFunctionDefinition records +const items = await db.platformFunctionDefinition.findMany({ select: { accessChannels: true, anonymousCallable: true, billable: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdByPrincipal: 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, requiredCapabilities: 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, updatedByPrincipal: true, volatile: true } }).execute(); + +// Get one by id +const item = await db.platformFunctionDefinition.findOne({ id: '', select: { accessChannels: true, anonymousCallable: true, billable: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdByPrincipal: 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, requiredCapabilities: 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, updatedByPrincipal: true, volatile: true } }).execute(); + +// Create +const created = await db.platformFunctionDefinition.create({ data: { accessChannels: '', anonymousCallable: '', billable: '', category: '', concurrency: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdByPrincipal: '', description: '', fnCategory: '', functionColumns: '', graphId: '', icon: '', image: '', inputs: '', integrations: '', isPublished: '', maxAttempts: '', memoryLimitBytes: '', memoryRequestBytes: '', moduleTable: '', name: '', outputs: '', payloadArgs: '', priority: '', props: '', protected: '', publishedAt: '', queueName: '', requiredBuckets: '', requiredCapabilities: '', requiredConfigs: '', requiredModels: '', requiredModules: '', requiredSecrets: '', resources: '', runtime: '', scaleMax: '', scaleMin: '', system: '', targetFunction: '', targetSchema: '', taskIdentifier: '', timeoutSeconds: '', updatedByPrincipal: '', volatile: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformFunctionDefinition.update({ where: { id: '' }, data: { accessChannels: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformFunctionDefinition.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformFunctionDeployment` + +CRUD operations for PlatformFunctionDeployment records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `annotations` | JSON | Yes | +| `concurrency` | Int | Yes | +| `createdAt` | Datetime | No | +| `createdByPrincipal` | UUID | Yes | +| `errorCount` | Int | Yes | +| `handlerName` | String | Yes | +| `id` | UUID | No | +| `image` | String | Yes | +| `imageVersion` | String | Yes | +| `labels` | JSON | Yes | +| `lastError` | String | Yes | +| `lastErrorAt` | Datetime | Yes | +| `namespaceId` | UUID | Yes | +| `realm` | String | Yes | +| `resources` | JSON | Yes | +| `revision` | Int | Yes | +| `scaleMax` | Int | Yes | +| `scaleMin` | Int | Yes | +| `serviceName` | String | Yes | +| `serviceUrl` | String | Yes | +| `status` | String | Yes | +| `timeoutSeconds` | Int | Yes | +| `updatedAt` | Datetime | No | +| `updatedByPrincipal` | UUID | Yes | + +**Operations:** + +```typescript +// List all platformFunctionDeployment records +const items = await db.platformFunctionDeployment.findMany({ select: { annotations: true, concurrency: true, createdAt: true, createdByPrincipal: 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, updatedByPrincipal: true } }).execute(); + +// Get one by id +const item = await db.platformFunctionDeployment.findOne({ id: '', select: { annotations: true, concurrency: true, createdAt: true, createdByPrincipal: 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, updatedByPrincipal: true } }).execute(); + +// Create +const created = await db.platformFunctionDeployment.create({ data: { annotations: '', concurrency: '', createdByPrincipal: '', errorCount: '', handlerName: '', image: '', imageVersion: '', labels: '', lastError: '', lastErrorAt: '', namespaceId: '', realm: '', resources: '', revision: '', scaleMax: '', scaleMin: '', serviceName: '', serviceUrl: '', status: '', timeoutSeconds: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformFunctionDeployment.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformFunctionDeployment.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformFunctionDeploymentEvent` + +CRUD operations for PlatformFunctionDeploymentEvent records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `actorId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `deploymentId` | UUID | Yes | +| `eventType` | String | Yes | +| `id` | UUID | No | +| `message` | String | Yes | +| `metadata` | JSON | Yes | + +**Operations:** + +```typescript +// List all platformFunctionDeploymentEvent records +const items = await db.platformFunctionDeploymentEvent.findMany({ select: { actorId: true, createdAt: true, deploymentId: true, eventType: true, id: true, message: true, metadata: true } }).execute(); + +// Get one by id +const item = await db.platformFunctionDeploymentEvent.findOne({ id: '', select: { actorId: true, createdAt: true, deploymentId: true, eventType: true, id: true, message: true, metadata: true } }).execute(); + +// Create +const created = await db.platformFunctionDeploymentEvent.create({ data: { actorId: '', deploymentId: '', eventType: '', message: '', metadata: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformFunctionDeploymentEvent.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformFunctionDeploymentEvent.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformFunctionExecutionLog` + +CRUD operations for PlatformFunctionExecutionLog records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `actorId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `id` | UUID | No | +| `invocationId` | UUID | Yes | +| `logLevel` | String | Yes | +| `message` | String | Yes | +| `metadata` | JSON | Yes | +| `taskIdentifier` | String | Yes | + +**Operations:** + +```typescript +// List all platformFunctionExecutionLog records +const items = await db.platformFunctionExecutionLog.findMany({ select: { actorId: true, createdAt: true, id: true, invocationId: true, logLevel: true, message: true, metadata: true, taskIdentifier: true } }).execute(); + +// Get one by id +const item = await db.platformFunctionExecutionLog.findOne({ id: '', select: { actorId: true, createdAt: true, id: true, invocationId: true, logLevel: true, message: true, metadata: true, taskIdentifier: true } }).execute(); + +// Create +const created = await db.platformFunctionExecutionLog.create({ data: { actorId: '', invocationId: '', logLevel: '', message: '', metadata: '', taskIdentifier: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformFunctionExecutionLog.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformFunctionExecutionLog.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformFunctionInvocationAttempt` CRUD operations for PlatformFunctionInvocationAttempt records. @@ -1431,917 +2213,2386 @@ CRUD operations for PlatformFunctionInvocationAttempt records. | Field | Type | Editable | |-------|------|----------| -| `actorId` | UUID | Yes | -| `attempt` | Int | Yes | +| `actorId` | UUID | Yes | +| `attempt` | Int | Yes | +| `createdAt` | Datetime | No | +| `durationMs` | Int | Yes | +| `error` | String | Yes | +| `errorDetail` | JSON | Yes | +| `id` | UUID | No | +| `invocationCreatedAt` | Datetime | Yes | +| `invocationId` | UUID | Yes | +| `startedAt` | Datetime | Yes | +| `success` | Boolean | Yes | +| `taskIdentifier` | String | Yes | + +**Operations:** + +```typescript +// List all platformFunctionInvocationAttempt records +const items = await db.platformFunctionInvocationAttempt.findMany({ select: { actorId: true, attempt: true, createdAt: true, durationMs: true, error: true, errorDetail: true, id: true, invocationCreatedAt: true, invocationId: true, startedAt: true, success: true, taskIdentifier: true } }).execute(); + +// Get one by id +const item = await db.platformFunctionInvocationAttempt.findOne({ id: '', select: { actorId: true, attempt: true, createdAt: true, durationMs: true, error: true, errorDetail: true, id: true, invocationCreatedAt: true, invocationId: true, startedAt: true, success: true, taskIdentifier: true } }).execute(); + +// Create +const created = await db.platformFunctionInvocationAttempt.create({ data: { actorId: '', attempt: '', durationMs: '', error: '', errorDetail: '', invocationCreatedAt: '', invocationId: '', startedAt: '', success: '', taskIdentifier: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformFunctionInvocationAttempt.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformFunctionInvocationAttempt.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformFunctionInvocation` + +CRUD operations for PlatformFunctionInvocation records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `actorId` | UUID | Yes | +| `apiBindingId` | UUID | Yes | +| `channel` | String | Yes | +| `completedAt` | Datetime | Yes | +| `createdAt` | Datetime | No | +| `createdByPrincipal` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `definitionScope` | String | Yes | +| `durationMs` | Int | Yes | +| `entityId` | UUID | Yes | +| `entityType` | String | Yes | +| `error` | String | Yes | +| `functionDefinitionId` | UUID | Yes | +| `graphExecutionId` | UUID | Yes | +| `id` | UUID | No | +| `jobId` | BigInt | Yes | +| `organizationId` | UUID | Yes | +| `parentInvocationId` | UUID | Yes | +| `payload` | JSON | Yes | +| `principalId` | UUID | Yes | +| `provenance` | JSON | Yes | +| `result` | JSON | Yes | +| `startedAt` | Datetime | Yes | +| `status` | String | Yes | +| `taskIdentifier` | String | Yes | + +**Operations:** + +```typescript +// List all platformFunctionInvocation records +const items = await db.platformFunctionInvocation.findMany({ select: { actorId: true, apiBindingId: true, channel: true, completedAt: true, createdAt: true, createdByPrincipal: true, databaseId: true, definitionScope: true, durationMs: true, entityId: true, entityType: true, error: true, functionDefinitionId: true, graphExecutionId: true, id: true, jobId: true, organizationId: true, parentInvocationId: true, payload: true, principalId: true, provenance: true, result: true, startedAt: true, status: true, taskIdentifier: true } }).execute(); + +// Get one by id +const item = await db.platformFunctionInvocation.findOne({ id: '', select: { actorId: true, apiBindingId: true, channel: true, completedAt: true, createdAt: true, createdByPrincipal: true, databaseId: true, definitionScope: true, durationMs: true, entityId: true, entityType: true, error: true, functionDefinitionId: true, graphExecutionId: true, id: true, jobId: true, organizationId: true, parentInvocationId: true, payload: true, principalId: true, provenance: true, result: true, startedAt: true, status: true, taskIdentifier: true } }).execute(); + +// Create +const created = await db.platformFunctionInvocation.create({ data: { actorId: '', apiBindingId: '', channel: '', completedAt: '', createdByPrincipal: '', databaseId: '', definitionScope: '', durationMs: '', entityId: '', entityType: '', error: '', functionDefinitionId: '', graphExecutionId: '', jobId: '', organizationId: '', parentInvocationId: '', payload: '', principalId: '', provenance: '', result: '', startedAt: '', status: '', taskIdentifier: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformFunctionInvocation.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformFunctionInvocation.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformImage` + +CRUD operations for PlatformImage records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `createdAt` | Datetime | No | +| `createdByPrincipal` | UUID | Yes | +| `description` | String | Yes | +| `digest` | String | Yes | +| `expiresAt` | Datetime | Yes | +| `id` | UUID | No | +| `isPublished` | Boolean | Yes | +| `labels` | JSON | Yes | +| `metadata` | JSON | Yes | +| `name` | String | Yes | +| `ownerId` | UUID | Yes | +| `platformOnly` | Boolean | Yes | +| `registryHost` | String | Yes | +| `repository` | String | Yes | +| `runtime` | String | Yes | +| `tag` | String | Yes | +| `updatedAt` | Datetime | No | +| `updatedByPrincipal` | UUID | Yes | + +**Operations:** + +```typescript +// List all platformImage records +const items = await db.platformImage.findMany({ select: { createdAt: true, createdByPrincipal: true, description: true, digest: true, expiresAt: true, id: true, isPublished: true, labels: true, metadata: true, name: true, ownerId: true, platformOnly: true, registryHost: true, repository: true, runtime: true, tag: true, updatedAt: true, updatedByPrincipal: true } }).execute(); + +// Get one by id +const item = await db.platformImage.findOne({ id: '', select: { createdAt: true, createdByPrincipal: true, description: true, digest: true, expiresAt: true, id: true, isPublished: true, labels: true, metadata: true, name: true, ownerId: true, platformOnly: true, registryHost: true, repository: true, runtime: true, tag: true, updatedAt: true, updatedByPrincipal: true } }).execute(); + +// Create +const created = await db.platformImage.create({ data: { createdByPrincipal: '', description: '', digest: '', expiresAt: '', isPublished: '', labels: '', metadata: '', name: '', ownerId: '', platformOnly: '', registryHost: '', repository: '', runtime: '', tag: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformImage.update({ where: { id: '' }, data: { createdByPrincipal: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformImage.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformImageGrant` + +CRUD operations for PlatformImageGrant records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `actions` | String | Yes | +| `createdAt` | Datetime | No | +| `createdByPrincipal` | UUID | Yes | +| `expiresAt` | Datetime | Yes | +| `grantedBy` | UUID | Yes | +| `granteeKey` | UUID | Yes | +| `granteeScope` | String | Yes | +| `id` | UUID | No | +| `imageId` | UUID | Yes | +| `updatedAt` | Datetime | No | +| `updatedByPrincipal` | UUID | Yes | + +**Operations:** + +```typescript +// List all platformImageGrant records +const items = await db.platformImageGrant.findMany({ select: { actions: true, createdAt: true, createdByPrincipal: true, expiresAt: true, grantedBy: true, granteeKey: true, granteeScope: true, id: true, imageId: true, updatedAt: true, updatedByPrincipal: true } }).execute(); + +// Get one by id +const item = await db.platformImageGrant.findOne({ id: '', select: { actions: true, createdAt: true, createdByPrincipal: true, expiresAt: true, grantedBy: true, granteeKey: true, granteeScope: true, id: true, imageId: true, updatedAt: true, updatedByPrincipal: true } }).execute(); + +// Create +const created = await db.platformImageGrant.create({ data: { actions: '', createdByPrincipal: '', expiresAt: '', grantedBy: '', granteeKey: '', granteeScope: '', imageId: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformImageGrant.update({ where: { id: '' }, data: { actions: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformImageGrant.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformInfraCommit` + +CRUD operations for PlatformInfraCommit records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `authorId` | UUID | Yes | +| `committerId` | UUID | Yes | +| `date` | Datetime | Yes | +| `id` | UUID | No | +| `message` | String | Yes | +| `parentIds` | UUID | Yes | +| `scopeId` | UUID | Yes | +| `storeId` | UUID | Yes | +| `treeId` | UUID | Yes | + +**Operations:** + +```typescript +// List all platformInfraCommit records +const items = await db.platformInfraCommit.findMany({ select: { authorId: true, committerId: true, date: true, id: true, message: true, parentIds: true, scopeId: true, storeId: true, treeId: true } }).execute(); + +// Get one by id +const item = await db.platformInfraCommit.findOne({ id: '', select: { authorId: true, committerId: true, date: true, id: true, message: true, parentIds: true, scopeId: true, storeId: true, treeId: true } }).execute(); + +// Create +const created = await db.platformInfraCommit.create({ data: { authorId: '', committerId: '', date: '', message: '', parentIds: '', scopeId: '', storeId: '', treeId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformInfraCommit.update({ where: { id: '' }, data: { authorId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformInfraCommit.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformInfraGetAllTreeNodesRecord` + +CRUD operations for PlatformInfraGetAllTreeNodesRecord records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `data` | JSON | Yes | +| `path` | String | Yes | + +**Operations:** + +```typescript +// List all platformInfraGetAllTreeNodesRecord records +const items = await db.platformInfraGetAllTreeNodesRecord.findMany({ select: { data: true, path: true } }).execute(); + +// Get one by id +const item = await db.platformInfraGetAllTreeNodesRecord.findOne({ id: '', select: { data: true, path: true } }).execute(); + +// Create +const created = await db.platformInfraGetAllTreeNodesRecord.create({ data: { data: '', path: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformInfraGetAllTreeNodesRecord.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformInfraGetAllTreeNodesRecord.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformInfraObject` + +CRUD operations for PlatformInfraObject records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `createdAt` | Datetime | No | +| `data` | JSON | Yes | +| `id` | UUID | No | +| `kids` | UUID | Yes | +| `ktree` | String | Yes | +| `scopeId` | UUID | Yes | + +**Operations:** + +```typescript +// List all platformInfraObject records +const items = await db.platformInfraObject.findMany({ select: { createdAt: true, data: true, id: true, kids: true, ktree: true, scopeId: true } }).execute(); + +// Get one by id +const item = await db.platformInfraObject.findOne({ id: '', select: { createdAt: true, data: true, id: true, kids: true, ktree: true, scopeId: true } }).execute(); + +// Create +const created = await db.platformInfraObject.create({ data: { data: '', kids: '', ktree: '', scopeId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformInfraObject.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformInfraObject.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformInfraRef` + +CRUD operations for PlatformInfraRef records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `commitId` | UUID | Yes | +| `id` | UUID | No | +| `name` | String | Yes | +| `scopeId` | UUID | Yes | +| `storeId` | UUID | Yes | + +**Operations:** + +```typescript +// List all platformInfraRef records +const items = await db.platformInfraRef.findMany({ select: { commitId: true, id: true, name: true, scopeId: true, storeId: true } }).execute(); + +// Get one by id +const item = await db.platformInfraRef.findOne({ id: '', select: { commitId: true, id: true, name: true, scopeId: true, storeId: true } }).execute(); + +// Create +const created = await db.platformInfraRef.create({ data: { commitId: '', name: '', scopeId: '', storeId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformInfraRef.update({ where: { id: '' }, data: { commitId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformInfraRef.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformInfraStore` + +CRUD operations for PlatformInfraStore records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `createdAt` | Datetime | No | +| `hash` | UUID | Yes | +| `id` | UUID | No | +| `name` | String | Yes | +| `scopeId` | UUID | Yes | + +**Operations:** + +```typescript +// List all platformInfraStore records +const items = await db.platformInfraStore.findMany({ select: { createdAt: true, hash: true, id: true, name: true, scopeId: true } }).execute(); + +// Get one by id +const item = await db.platformInfraStore.findOne({ id: '', select: { createdAt: true, hash: true, id: true, name: true, scopeId: true } }).execute(); + +// Create +const created = await db.platformInfraStore.create({ data: { hash: '', name: '', scopeId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformInfraStore.update({ where: { id: '' }, data: { hash: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformInfraStore.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformK8sResourceKind` + +CRUD operations for PlatformK8sResourceKind records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `active` | Boolean | Yes | +| `commitId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `definition` | JSON | Yes | +| `description` | String | Yes | +| `id` | UUID | No | +| `label` | String | Yes | +| `slug` | String | Yes | +| `storeId` | UUID | Yes | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all platformK8sResourceKind records +const items = await db.platformK8sResourceKind.findMany({ select: { active: true, commitId: true, createdAt: true, definition: true, description: true, id: true, label: true, slug: true, storeId: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.platformK8sResourceKind.findOne({ id: '', select: { active: true, commitId: true, createdAt: true, definition: true, description: true, id: true, label: true, slug: true, storeId: true, updatedAt: true } }).execute(); + +// Create +const created = await db.platformK8sResourceKind.create({ data: { active: '', commitId: '', definition: '', description: '', label: '', slug: '', storeId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformK8sResourceKind.update({ where: { id: '' }, data: { active: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformK8sResourceKind.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformK8sSpecRule` + +CRUD operations for PlatformK8sSpecRule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `active` | Boolean | Yes | +| `commitId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `definition` | JSON | Yes | +| `description` | String | Yes | +| `id` | UUID | No | +| `label` | String | Yes | +| `slug` | String | Yes | +| `storeId` | UUID | Yes | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all platformK8sSpecRule records +const items = await db.platformK8sSpecRule.findMany({ select: { active: true, commitId: true, createdAt: true, definition: true, description: true, id: true, label: true, slug: true, storeId: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.platformK8sSpecRule.findOne({ id: '', select: { active: true, commitId: true, createdAt: true, definition: true, description: true, id: true, label: true, slug: true, storeId: true, updatedAt: true } }).execute(); + +// Create +const created = await db.platformK8sSpecRule.create({ data: { active: '', commitId: '', definition: '', description: '', label: '', slug: '', storeId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformK8sSpecRule.update({ where: { id: '' }, data: { active: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformK8sSpecRule.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformNamespace` + +CRUD operations for PlatformNamespace records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `annotations` | JSON | Yes | +| `clusterId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `description` | String | Yes | +| `id` | UUID | No | +| `isActive` | Boolean | Yes | +| `isManaged` | Boolean | Yes | +| `labels` | JSON | Yes | +| `lastError` | String | Yes | +| `name` | String | Yes | +| `namespaceName` | String | Yes | +| `status` | String | Yes | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all platformNamespace records +const items = await db.platformNamespace.findMany({ select: { annotations: true, clusterId: true, createdAt: true, description: true, id: true, isActive: true, isManaged: true, labels: true, lastError: true, name: true, namespaceName: true, status: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.platformNamespace.findOne({ id: '', select: { annotations: true, clusterId: true, createdAt: true, description: true, id: true, isActive: true, isManaged: true, labels: true, lastError: true, name: true, namespaceName: true, status: true, updatedAt: true } }).execute(); + +// Create +const created = await db.platformNamespace.create({ data: { annotations: '', clusterId: '', description: '', isActive: '', isManaged: '', labels: '', lastError: '', name: '', namespaceName: '', status: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformNamespace.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformNamespace.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformNamespaceEvent` + +CRUD operations for PlatformNamespaceEvent records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `actorId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `eventType` | String | Yes | +| `id` | UUID | No | +| `message` | String | Yes | +| `metadata` | JSON | Yes | +| `namespaceId` | UUID | Yes | + +**Operations:** + +```typescript +// List all platformNamespaceEvent records +const items = await db.platformNamespaceEvent.findMany({ select: { actorId: true, createdAt: true, eventType: true, id: true, message: true, metadata: true, namespaceId: true } }).execute(); + +// Get one by id +const item = await db.platformNamespaceEvent.findOne({ id: '', select: { actorId: true, createdAt: true, eventType: true, id: true, message: true, metadata: true, namespaceId: true } }).execute(); + +// Create +const created = await db.platformNamespaceEvent.create({ data: { actorId: '', eventType: '', message: '', metadata: '', namespaceId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformNamespaceEvent.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformNamespaceEvent.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformProposalComment` + +CRUD operations for PlatformProposalComment records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `actorId` | UUID | Yes | +| `attachments` | ConstructiveInternalTypeUpload | Yes | +| `body` | String | Yes | +| `bodyTrgmSimilarity` | Float | Yes | +| `createdAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | +| `embedding` | Vector | Yes | +| `embeddingUpdatedAt` | Datetime | Yes | +| `embeddingVectorDistance` | Float | Yes | +| `id` | UUID | No | +| `line` | Int | Yes | +| `outdatedAt` | Datetime | Yes | +| `path` | String | Yes | +| `pathTrgmSimilarity` | Float | Yes | +| `proposalId` | UUID | Yes | +| `resolvedAt` | Datetime | Yes | +| `search` | FullText | Yes | +| `searchScore` | Float | Yes | +| `searchTsvRank` | Float | Yes | +| `updatedAt` | Datetime | No | +| `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | + +**Operations:** + +```typescript +// List all platformProposalComment records +const items = await db.platformProposalComment.findMany({ select: { actorId: true, attachments: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Get one by id +const item = await db.platformProposalComment.findOne({ id: '', select: { actorId: true, attachments: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Create +const created = await db.platformProposalComment.create({ data: { actorId: '', attachments: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', line: '', outdatedAt: '', path: '', pathTrgmSimilarity: '', proposalId: '', resolvedAt: '', search: '', searchScore: '', searchTsvRank: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformProposalComment.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformProposalComment.delete({ where: { id: '' } }).execute(); +``` + +> **pgvector embedding fields:** `embedding` +> High-dimensional vector columns for semantic similarity search. Query via the Unified Search API pgvector adapter using cosine, L2, or inner-product distance. + +> **Unified Search API fields:** `search` +> Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. + +### `db.platformProposal` + +CRUD operations for PlatformProposal records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `actorId` | UUID | Yes | +| `body` | String | Yes | +| `bodyTrgmSimilarity` | Float | Yes | +| `closedReason` | String | Yes | +| `closedReasonTrgmSimilarity` | Float | Yes | +| `createdAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | +| `decidedAt` | Datetime | Yes | +| `dueAt` | Datetime | Yes | +| `embedding` | Vector | Yes | +| `embeddingUpdatedAt` | Datetime | Yes | +| `embeddingVectorDistance` | Float | Yes | +| `id` | UUID | No | +| `kind` | String | Yes | +| `kindTrgmSimilarity` | Float | Yes | +| `labels` | String | Yes | +| `mergeCommit` | String | Yes | +| `mergeCommitTrgmSimilarity` | Float | Yes | +| `mergeMethod` | String | Yes | +| `mergeMethodTrgmSimilarity` | Float | Yes | +| `mergeRequestedAt` | Datetime | Yes | +| `mergedAt` | Datetime | Yes | +| `metadata` | JSON | Yes | +| `parentId` | UUID | Yes | +| `priority` | BigFloat | Yes | +| `repositoryId` | UUID | Yes | +| `resolution` | String | Yes | +| `resolutionTrgmSimilarity` | Float | Yes | +| `search` | FullText | Yes | +| `searchScore` | Float | Yes | +| `searchTsvRank` | Float | Yes | +| `sourceRef` | String | Yes | +| `sourceRefTrgmSimilarity` | Float | Yes | +| `status` | String | Yes | +| `statusTrgmSimilarity` | Float | Yes | +| `targetRef` | String | Yes | +| `targetRefTrgmSimilarity` | Float | Yes | +| `title` | String | Yes | +| `titleTrgmSimilarity` | Float | Yes | +| `updatedAt` | Datetime | No | +| `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | + +**Operations:** + +```typescript +// List all platformProposal records +const items = await db.platformProposal.findMany({ select: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, decidedAt: true, dueAt: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Get one by id +const item = await db.platformProposal.findOne({ id: '', select: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, decidedAt: true, dueAt: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Create +const created = await db.platformProposal.create({ data: { actorId: '', body: '', bodyTrgmSimilarity: '', closedReason: '', closedReasonTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', decidedAt: '', dueAt: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', kind: '', kindTrgmSimilarity: '', labels: '', mergeCommit: '', mergeCommitTrgmSimilarity: '', mergeMethod: '', mergeMethodTrgmSimilarity: '', mergeRequestedAt: '', mergedAt: '', metadata: '', parentId: '', priority: '', repositoryId: '', resolution: '', resolutionTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', sourceRef: '', sourceRefTrgmSimilarity: '', status: '', statusTrgmSimilarity: '', targetRef: '', targetRefTrgmSimilarity: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformProposal.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformProposal.delete({ where: { id: '' } }).execute(); +``` + +> **pgvector embedding fields:** `embedding` +> High-dimensional vector columns for semantic similarity search. Query via the Unified Search API pgvector adapter using cosine, L2, or inner-product distance. + +> **Unified Search API fields:** `search` +> Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. + +### `db.platformProposalFileView` + +CRUD operations for PlatformProposalFileView records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `blobSha` | String | Yes | +| `createdAt` | Datetime | No | +| `createdByPrincipal` | UUID | Yes | +| `id` | UUID | No | +| `path` | String | Yes | +| `proposalId` | UUID | Yes | +| `reviewerId` | UUID | Yes | +| `updatedAt` | Datetime | No | +| `updatedByPrincipal` | UUID | Yes | +| `viewedAt` | Datetime | Yes | + +**Operations:** + +```typescript +// List all platformProposalFileView records +const items = await db.platformProposalFileView.findMany({ select: { blobSha: true, createdAt: true, createdByPrincipal: true, id: true, path: true, proposalId: true, reviewerId: true, updatedAt: true, updatedByPrincipal: true, viewedAt: true } }).execute(); + +// Get one by id +const item = await db.platformProposalFileView.findOne({ id: '', select: { blobSha: true, createdAt: true, createdByPrincipal: true, id: true, path: true, proposalId: true, reviewerId: true, updatedAt: true, updatedByPrincipal: true, viewedAt: true } }).execute(); + +// Create +const created = await db.platformProposalFileView.create({ data: { blobSha: '', createdByPrincipal: '', path: '', proposalId: '', reviewerId: '', updatedByPrincipal: '', viewedAt: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformProposalFileView.update({ where: { id: '' }, data: { blobSha: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformProposalFileView.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformProposalReaction` + +CRUD operations for PlatformProposalReaction records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `actorId` | UUID | Yes | +| `commentId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `createdByPrincipal` | UUID | Yes | +| `emoji` | String | Yes | +| `id` | UUID | No | +| `proposalId` | UUID | Yes | +| `updatedAt` | Datetime | No | +| `updatedByPrincipal` | UUID | Yes | + +**Operations:** + +```typescript +// List all platformProposalReaction records +const items = await db.platformProposalReaction.findMany({ select: { actorId: true, commentId: true, createdAt: true, createdByPrincipal: true, emoji: true, id: true, proposalId: true, updatedAt: true, updatedByPrincipal: true } }).execute(); + +// Get one by id +const item = await db.platformProposalReaction.findOne({ id: '', select: { actorId: true, commentId: true, createdAt: true, createdByPrincipal: true, emoji: true, id: true, proposalId: true, updatedAt: true, updatedByPrincipal: true } }).execute(); + +// Create +const created = await db.platformProposalReaction.create({ data: { actorId: '', commentId: '', createdByPrincipal: '', emoji: '', proposalId: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformProposalReaction.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformProposalReaction.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformProposalReview` + +CRUD operations for PlatformProposalReview records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `body` | String | Yes | +| `bodyTrgmSimilarity` | Float | Yes | +| `commitSha` | String | Yes | +| `commitShaTrgmSimilarity` | Float | Yes | +| `createdAt` | Datetime | No | +| `createdByPrincipal` | UUID | Yes | +| `id` | UUID | No | +| `proposalId` | UUID | Yes | +| `reviewerId` | UUID | Yes | +| `search` | FullText | Yes | +| `searchScore` | Float | Yes | +| `searchTsvRank` | Float | Yes | +| `submittedAt` | Datetime | Yes | +| `updatedAt` | Datetime | No | +| `updatedByPrincipal` | UUID | Yes | +| `verdict` | String | Yes | +| `verdictTrgmSimilarity` | Float | Yes | + +**Operations:** + +```typescript +// List all platformProposalReview records +const items = await db.platformProposalReview.findMany({ select: { body: true, bodyTrgmSimilarity: true, commitSha: true, commitShaTrgmSimilarity: true, createdAt: true, createdByPrincipal: true, id: true, proposalId: true, reviewerId: true, search: true, searchScore: true, searchTsvRank: true, submittedAt: true, updatedAt: true, updatedByPrincipal: true, verdict: true, verdictTrgmSimilarity: true } }).execute(); + +// Get one by id +const item = await db.platformProposalReview.findOne({ id: '', select: { body: true, bodyTrgmSimilarity: true, commitSha: true, commitShaTrgmSimilarity: true, createdAt: true, createdByPrincipal: true, id: true, proposalId: true, reviewerId: true, search: true, searchScore: true, searchTsvRank: true, submittedAt: true, updatedAt: true, updatedByPrincipal: true, verdict: true, verdictTrgmSimilarity: true } }).execute(); + +// Create +const created = await db.platformProposalReview.create({ data: { body: '', bodyTrgmSimilarity: '', commitSha: '', commitShaTrgmSimilarity: '', createdByPrincipal: '', proposalId: '', reviewerId: '', search: '', searchScore: '', searchTsvRank: '', submittedAt: '', updatedByPrincipal: '', verdict: '', verdictTrgmSimilarity: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformProposalReview.update({ where: { id: '' }, data: { body: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformProposalReview.delete({ where: { id: '' } }).execute(); +``` + +> **Unified Search API fields:** `search` +> Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. + +### `db.platformProposalsChunk` + +CRUD operations for PlatformProposalsChunk records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `actorId` | UUID | Yes | +| `body` | String | Yes | +| `chunkIndex` | Int | Yes | +| `createdAt` | Datetime | No | +| `embedding` | Vector | Yes | +| `embeddingVectorDistance` | Float | Yes | +| `id` | UUID | No | +| `metadata` | JSON | Yes | +| `platformProposalsId` | UUID | Yes | +| `searchScore` | Float | Yes | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all platformProposalsChunk records +const items = await db.platformProposalsChunk.findMany({ select: { actorId: true, body: true, chunkIndex: true, createdAt: true, embedding: true, embeddingVectorDistance: true, id: true, metadata: true, platformProposalsId: true, searchScore: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.platformProposalsChunk.findOne({ id: '', select: { actorId: true, body: true, chunkIndex: true, createdAt: true, embedding: true, embeddingVectorDistance: true, id: true, metadata: true, platformProposalsId: true, searchScore: true, updatedAt: true } }).execute(); + +// Create +const created = await db.platformProposalsChunk.create({ data: { actorId: '', body: '', chunkIndex: '', embedding: '', embeddingVectorDistance: '', metadata: '', platformProposalsId: '', searchScore: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformProposalsChunk.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformProposalsChunk.delete({ where: { id: '' } }).execute(); +``` + +> **pgvector embedding fields:** `embedding` +> High-dimensional vector columns for semantic similarity search. Query via the Unified Search API pgvector adapter using cosine, L2, or inner-product distance. + +### `db.platformRegistryBinding` + +CRUD operations for PlatformRegistryBinding records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `createdAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | +| `id` | UUID | No | +| `metadata` | JSON | Yes | +| `namespaceId` | UUID | Yes | +| `observedCredentialVersion` | String | Yes | +| `pullSecretName` | String | Yes | +| `realm` | String | Yes | +| `registryHost` | String | Yes | +| `registryId` | UUID | Yes | +| `status` | String | Yes | +| `updatedAt` | Datetime | No | +| `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | + +**Operations:** + +```typescript +// List all platformRegistryBinding records +const items = await db.platformRegistryBinding.findMany({ select: { createdAt: true, createdBy: true, createdByPrincipal: true, id: true, metadata: true, namespaceId: true, observedCredentialVersion: true, pullSecretName: true, realm: true, registryHost: true, registryId: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Get one by id +const item = await db.platformRegistryBinding.findOne({ id: '', select: { createdAt: true, createdBy: true, createdByPrincipal: true, id: true, metadata: true, namespaceId: true, observedCredentialVersion: true, pullSecretName: true, realm: true, registryHost: true, registryId: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Create +const created = await db.platformRegistryBinding.create({ data: { createdBy: '', createdByPrincipal: '', metadata: '', namespaceId: '', observedCredentialVersion: '', pullSecretName: '', realm: '', registryHost: '', registryId: '', status: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformRegistryBinding.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformRegistryBinding.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformRegistry` + +CRUD operations for PlatformRegistry records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `authMode` | String | Yes | +| `basePath` | String | Yes | +| `createdAt` | Datetime | No | +| `createdByPrincipal` | UUID | Yes | +| `credentialSecretName` | String | Yes | +| `host` | String | Yes | +| `id` | UUID | No | +| `installationId` | UUID | Yes | +| `isPublished` | Boolean | Yes | +| `kind` | String | Yes | +| `labels` | JSON | Yes | +| `lastError` | String | Yes | +| `metadata` | JSON | Yes | +| `name` | String | Yes | +| `platformOnly` | Boolean | Yes | +| `role` | String | Yes | +| `status` | String | Yes | +| `updatedAt` | Datetime | No | +| `updatedByPrincipal` | UUID | Yes | + +**Operations:** + +```typescript +// List all platformRegistry records +const items = await db.platformRegistry.findMany({ select: { authMode: true, basePath: true, createdAt: true, createdByPrincipal: true, credentialSecretName: true, host: true, id: true, installationId: true, isPublished: true, kind: true, labels: true, lastError: true, metadata: true, name: true, platformOnly: true, role: true, status: true, updatedAt: true, updatedByPrincipal: true } }).execute(); + +// Get one by id +const item = await db.platformRegistry.findOne({ id: '', select: { authMode: true, basePath: true, createdAt: true, createdByPrincipal: true, credentialSecretName: true, host: true, id: true, installationId: true, isPublished: true, kind: true, labels: true, lastError: true, metadata: true, name: true, platformOnly: true, role: true, status: true, updatedAt: true, updatedByPrincipal: true } }).execute(); + +// Create +const created = await db.platformRegistry.create({ data: { authMode: '', basePath: '', createdByPrincipal: '', credentialSecretName: '', host: '', installationId: '', isPublished: '', kind: '', labels: '', lastError: '', metadata: '', name: '', platformOnly: '', role: '', status: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformRegistry.update({ where: { id: '' }, data: { authMode: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformRegistry.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformRegistryGrant` + +CRUD operations for PlatformRegistryGrant records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `actions` | String | Yes | +| `createdAt` | Datetime | No | +| `createdByPrincipal` | UUID | Yes | +| `expiresAt` | Datetime | Yes | +| `grantedBy` | UUID | Yes | +| `granteeKey` | UUID | Yes | +| `granteeScope` | String | Yes | +| `id` | UUID | No | +| `registryId` | UUID | Yes | +| `updatedAt` | Datetime | No | +| `updatedByPrincipal` | UUID | Yes | + +**Operations:** + +```typescript +// List all platformRegistryGrant records +const items = await db.platformRegistryGrant.findMany({ select: { actions: true, createdAt: true, createdByPrincipal: true, expiresAt: true, grantedBy: true, granteeKey: true, granteeScope: true, id: true, registryId: true, updatedAt: true, updatedByPrincipal: true } }).execute(); + +// Get one by id +const item = await db.platformRegistryGrant.findOne({ id: '', select: { actions: true, createdAt: true, createdByPrincipal: true, expiresAt: true, grantedBy: true, granteeKey: true, granteeScope: true, id: true, registryId: true, updatedAt: true, updatedByPrincipal: true } }).execute(); + +// Create +const created = await db.platformRegistryGrant.create({ data: { actions: '', createdByPrincipal: '', expiresAt: '', grantedBy: '', granteeKey: '', granteeScope: '', registryId: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformRegistryGrant.update({ where: { id: '' }, data: { actions: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformRegistryGrant.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformRepository` + +CRUD operations for PlatformRepository records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `cloneUrl` | String | Yes | +| `cloneUrlTrgmSimilarity` | Float | Yes | +| `createdAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | +| `defaultBranch` | String | Yes | +| `defaultBranchTrgmSimilarity` | Float | Yes | +| `description` | String | Yes | +| `descriptionTrgmSimilarity` | Float | Yes | +| `embedding` | Vector | Yes | +| `embeddingUpdatedAt` | Datetime | Yes | +| `embeddingVectorDistance` | Float | Yes | +| `externalId` | String | Yes | +| `externalIdTrgmSimilarity` | Float | Yes | +| `id` | UUID | No | +| `isArchived` | Boolean | Yes | +| `metadata` | JSON | Yes | +| `name` | String | Yes | +| `nameTrgmSimilarity` | Float | Yes | +| `ownerId` | UUID | Yes | +| `provider` | String | Yes | +| `providerTrgmSimilarity` | Float | Yes | +| `search` | FullText | Yes | +| `searchScore` | Float | Yes | +| `searchTsvRank` | Float | Yes | +| `slug` | String | Yes | +| `slugTrgmSimilarity` | Float | Yes | +| `updatedAt` | Datetime | No | +| `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | +| `visibility` | String | Yes | +| `visibilityTrgmSimilarity` | Float | Yes | + +**Operations:** + +```typescript +// List all platformRepository records +const items = await db.platformRepository.findMany({ select: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } }).execute(); + +// Get one by id +const item = await db.platformRepository.findOne({ id: '', select: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } }).execute(); + +// Create +const created = await db.platformRepository.create({ data: { cloneUrl: '', cloneUrlTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', defaultBranch: '', defaultBranchTrgmSimilarity: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', externalId: '', externalIdTrgmSimilarity: '', isArchived: '', metadata: '', name: '', nameTrgmSimilarity: '', ownerId: '', provider: '', providerTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', slug: '', slugTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '', visibility: '', visibilityTrgmSimilarity: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformRepository.update({ where: { id: '' }, data: { cloneUrl: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformRepository.delete({ where: { id: '' } }).execute(); +``` + +> **pgvector embedding fields:** `embedding` +> High-dimensional vector columns for semantic similarity search. Query via the Unified Search API pgvector adapter using cosine, L2, or inner-product distance. + +> **Unified Search API fields:** `search` +> Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. + +### `db.platformRepositoryEvent` + +CRUD operations for PlatformRepositoryEvent records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `actorId` | UUID | Yes | +| `commitSha` | String | Yes | +| `createdAt` | Datetime | No | +| `createdByPrincipal` | UUID | Yes | +| `deliveryId` | String | Yes | +| `eventType` | String | Yes | +| `id` | UUID | No | +| `metadata` | JSON | Yes | +| `payload` | JSON | Yes | +| `ref` | String | Yes | +| `repositoryId` | UUID | Yes | +| `updatedAt` | Datetime | No | +| `updatedByPrincipal` | UUID | Yes | + +**Operations:** + +```typescript +// List all platformRepositoryEvent records +const items = await db.platformRepositoryEvent.findMany({ select: { actorId: true, commitSha: true, createdAt: true, createdByPrincipal: true, deliveryId: true, eventType: true, id: true, metadata: true, payload: true, ref: true, repositoryId: true, updatedAt: true, updatedByPrincipal: true } }).execute(); + +// Get one by id +const item = await db.platformRepositoryEvent.findOne({ id: '', select: { actorId: true, commitSha: true, createdAt: true, createdByPrincipal: true, deliveryId: true, eventType: true, id: true, metadata: true, payload: true, ref: true, repositoryId: true, updatedAt: true, updatedByPrincipal: true } }).execute(); + +// Create +const created = await db.platformRepositoryEvent.create({ data: { actorId: '', commitSha: '', createdByPrincipal: '', deliveryId: '', eventType: '', metadata: '', payload: '', ref: '', repositoryId: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformRepositoryEvent.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformRepositoryEvent.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformRepositoryRequiredCheck` + +CRUD operations for PlatformRepositoryRequiredCheck records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `createdAt` | Datetime | No | +| `id` | UUID | No | +| `repositoryId` | UUID | Yes | +| `updatedAt` | Datetime | No | +| `workflowId` | UUID | Yes | + +**Operations:** + +```typescript +// List all platformRepositoryRequiredCheck records +const items = await db.platformRepositoryRequiredCheck.findMany({ select: { createdAt: true, id: true, repositoryId: true, updatedAt: true, workflowId: true } }).execute(); + +// Get one by id +const item = await db.platformRepositoryRequiredCheck.findOne({ id: '', select: { createdAt: true, id: true, repositoryId: true, updatedAt: true, workflowId: true } }).execute(); + +// Create +const created = await db.platformRepositoryRequiredCheck.create({ data: { repositoryId: '', workflowId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformRepositoryRequiredCheck.update({ where: { id: '' }, data: { repositoryId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformRepositoryRequiredCheck.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformRepositoryWorkflow` + +CRUD operations for PlatformRepositoryWorkflow records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `cancelInProgress` | Boolean | Yes | +| `concurrencyKey` | String | Yes | +| `createdAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | +| `eventType` | String | Yes | +| `graphId` | UUID | Yes | +| `id` | UUID | No | +| `inputs` | JSON | Yes | +| `isEnabled` | Boolean | Yes | +| `name` | String | Yes | +| `refPattern` | String | Yes | +| `repositoryId` | UUID | Yes | +| `requiredSecrets` | String | Yes | +| `slug` | String | Yes | +| `updatedAt` | Datetime | No | +| `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | + +**Operations:** + +```typescript +// List all platformRepositoryWorkflow records +const items = await db.platformRepositoryWorkflow.findMany({ select: { cancelInProgress: true, concurrencyKey: true, createdAt: true, createdBy: true, createdByPrincipal: true, eventType: true, graphId: true, id: true, inputs: true, isEnabled: true, name: true, refPattern: true, repositoryId: true, requiredSecrets: true, slug: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Get one by id +const item = await db.platformRepositoryWorkflow.findOne({ id: '', select: { cancelInProgress: true, concurrencyKey: true, createdAt: true, createdBy: true, createdByPrincipal: true, eventType: true, graphId: true, id: true, inputs: true, isEnabled: true, name: true, refPattern: true, repositoryId: true, requiredSecrets: true, slug: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Create +const created = await db.platformRepositoryWorkflow.create({ data: { cancelInProgress: '', concurrencyKey: '', createdBy: '', createdByPrincipal: '', eventType: '', graphId: '', inputs: '', isEnabled: '', name: '', refPattern: '', repositoryId: '', requiredSecrets: '', slug: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformRepositoryWorkflow.update({ where: { id: '' }, data: { cancelInProgress: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformRepositoryWorkflow.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformResource` + +CRUD operations for PlatformResource records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `annotations` | JSON | Yes | +| `cpuLimitMillicores` | BigInt | Yes | +| `cpuRequestMillicores` | BigInt | Yes | +| `createdAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | +| `errorCount` | Int | Yes | +| `id` | UUID | No | +| `imageRef` | String | Yes | +| `installationId` | UUID | Yes | +| `integrations` | String | Yes | +| `kind` | String | Yes | +| `labels` | JSON | Yes | +| `lastError` | String | Yes | +| `lastHeartbeatAt` | Datetime | Yes | +| `memoryLimitBytes` | BigInt | Yes | +| `memoryRequestBytes` | BigInt | Yes | +| `name` | String | Yes | +| `namespaceId` | UUID | Yes | +| `realm` | String | Yes | +| `replicas` | Int | Yes | +| `requiredConfigs` | ResourceRequirement | Yes | +| `requiredSecrets` | ResourceRequirement | Yes | +| `resourceDefinitionId` | UUID | Yes | +| `slug` | String | Yes | +| `spec` | JSON | Yes | +| `status` | String | Yes | +| `statusObserved` | JSON | Yes | +| `storageClass` | String | Yes | +| `storageSizeBytes` | BigInt | Yes | +| `storageTotalBytes` | BigInt | Yes | +| `updatedAt` | Datetime | No | +| `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | + +**Operations:** + +```typescript +// List all platformResource records +const items = await db.platformResource.findMany({ select: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Get one by id +const item = await db.platformResource.findOne({ id: '', select: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Create +const created = await db.platformResource.create({ data: { annotations: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', createdByPrincipal: '', errorCount: '', imageRef: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusObserved: '', storageClass: '', storageSizeBytes: '', storageTotalBytes: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformResource.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformResource.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformResourceDeclaredCapacity` + +CRUD operations for PlatformResourceDeclaredCapacity records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `cpuLimitMillicores` | BigInt | Yes | +| `cpuRequestMillicores` | BigInt | Yes | +| `installationId` | UUID | Yes | +| `isTransient` | Boolean | Yes | +| `kind` | String | Yes | +| `memoryLimitBytes` | BigInt | Yes | +| `memoryRequestBytes` | BigInt | Yes | +| `namespaceId` | UUID | Yes | +| `podCountMax` | Int | Yes | +| `podCountMin` | Int | Yes | +| `source` | String | Yes | +| `sourceId` | UUID | Yes | +| `storageSizeBytes` | BigInt | Yes | +| `storageTotalBytes` | BigInt | Yes | + +**Operations:** + +```typescript +// List all platformResourceDeclaredCapacity records +const items = await db.platformResourceDeclaredCapacity.findMany({ select: { cpuLimitMillicores: true, cpuRequestMillicores: true, installationId: true, isTransient: true, kind: true, memoryLimitBytes: true, memoryRequestBytes: true, namespaceId: true, podCountMax: true, podCountMin: true, source: true, sourceId: true, storageSizeBytes: true, storageTotalBytes: true } }).execute(); + +// Get one by id +const item = await db.platformResourceDeclaredCapacity.findOne({ id: '', select: { cpuLimitMillicores: true, cpuRequestMillicores: true, installationId: true, isTransient: true, kind: true, memoryLimitBytes: true, memoryRequestBytes: true, namespaceId: true, podCountMax: true, podCountMin: true, source: true, sourceId: true, storageSizeBytes: true, storageTotalBytes: true } }).execute(); + +// Create +const created = await db.platformResourceDeclaredCapacity.create({ data: { cpuLimitMillicores: '', cpuRequestMillicores: '', installationId: '', isTransient: '', kind: '', memoryLimitBytes: '', memoryRequestBytes: '', namespaceId: '', podCountMax: '', podCountMin: '', source: '', sourceId: '', storageSizeBytes: '', storageTotalBytes: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformResourceDeclaredCapacity.update({ where: { id: '' }, data: { cpuLimitMillicores: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformResourceDeclaredCapacity.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformResourceDefinition` + +CRUD operations for PlatformResourceDefinition records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `annotations` | JSON | Yes | +| `createdAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | +| `defaultSpec` | JSON | Yes | +| `description` | String | Yes | +| `id` | UUID | No | +| `integrations` | String | Yes | +| `kind` | String | Yes | +| `labels` | JSON | Yes | +| `name` | String | Yes | +| `namespaceId` | UUID | Yes | +| `paramsSchema` | JSON | Yes | +| `requiredConfigs` | ResourceRequirement | Yes | +| `requiredSecrets` | ResourceRequirement | Yes | +| `slug` | String | Yes | +| `stepUpMinAge` | Interval | Yes | +| `updatedAt` | Datetime | No | +| `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | + +**Operations:** + +```typescript +// List all platformResourceDefinition records +const items = await db.platformResourceDefinition.findMany({ select: { annotations: true, createdAt: true, createdBy: true, createdByPrincipal: true, defaultSpec: true, description: true, id: true, integrations: true, kind: true, labels: true, name: true, namespaceId: true, paramsSchema: true, requiredConfigs: true, requiredSecrets: true, slug: true, stepUpMinAge: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Get one by id +const item = await db.platformResourceDefinition.findOne({ id: '', select: { annotations: true, createdAt: true, createdBy: true, createdByPrincipal: true, defaultSpec: true, description: true, id: true, integrations: true, kind: true, labels: true, name: true, namespaceId: true, paramsSchema: true, requiredConfigs: true, requiredSecrets: true, slug: true, stepUpMinAge: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Create +const created = await db.platformResourceDefinition.create({ data: { annotations: '', createdBy: '', createdByPrincipal: '', defaultSpec: '', description: '', integrations: '', kind: '', labels: '', name: '', namespaceId: '', paramsSchema: '', requiredConfigs: '', requiredSecrets: '', slug: '', stepUpMinAge: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformResourceDefinition.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformResourceDefinition.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformResourceEvent` + +CRUD operations for PlatformResourceEvent records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `actorId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `eventType` | String | Yes | +| `id` | UUID | No | +| `message` | String | Yes | +| `metadata` | JSON | Yes | +| `resourceId` | UUID | Yes | + +**Operations:** + +```typescript +// List all platformResourceEvent records +const items = await db.platformResourceEvent.findMany({ select: { actorId: true, createdAt: true, eventType: true, id: true, message: true, metadata: true, resourceId: true } }).execute(); + +// Get one by id +const item = await db.platformResourceEvent.findOne({ id: '', select: { actorId: true, createdAt: true, eventType: true, id: true, message: true, metadata: true, resourceId: true } }).execute(); + +// Create +const created = await db.platformResourceEvent.create({ data: { actorId: '', eventType: '', message: '', metadata: '', resourceId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformResourceEvent.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformResourceEvent.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformResourceInstallation` + +CRUD operations for PlatformResourceInstallation records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `commitId` | UUID | Yes | | `createdAt` | Datetime | No | -| `durationMs` | Int | Yes | -| `error` | String | Yes | -| `errorDetail` | JSON | Yes | +| `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | | `id` | UUID | No | -| `invocationCreatedAt` | Datetime | Yes | -| `invocationId` | UUID | Yes | -| `startedAt` | Datetime | Yes | -| `success` | Boolean | Yes | -| `taskIdentifier` | String | Yes | +| `name` | String | Yes | +| `namespaceId` | UUID | Yes | +| `params` | JSON | Yes | +| `revision` | Int | Yes | +| `slug` | String | Yes | +| `status` | String | Yes | +| `storeId` | UUID | Yes | +| `updatedAt` | Datetime | No | +| `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | **Operations:** ```typescript -// List all platformFunctionInvocationAttempt records -const items = await db.platformFunctionInvocationAttempt.findMany({ select: { actorId: true, attempt: true, createdAt: true, durationMs: true, error: true, errorDetail: true, id: true, invocationCreatedAt: true, invocationId: true, startedAt: true, success: true, taskIdentifier: true } }).execute(); +// List all platformResourceInstallation records +const items = await db.platformResourceInstallation.findMany({ select: { commitId: true, createdAt: true, createdBy: true, createdByPrincipal: true, id: true, name: true, namespaceId: true, params: true, revision: true, slug: true, status: true, storeId: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.platformFunctionInvocationAttempt.findOne({ id: '', select: { actorId: true, attempt: true, createdAt: true, durationMs: true, error: true, errorDetail: true, id: true, invocationCreatedAt: true, invocationId: true, startedAt: true, success: true, taskIdentifier: true } }).execute(); +const item = await db.platformResourceInstallation.findOne({ id: '', select: { commitId: true, createdAt: true, createdBy: true, createdByPrincipal: true, id: true, name: true, namespaceId: true, params: true, revision: true, slug: true, status: true, storeId: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.platformFunctionInvocationAttempt.create({ data: { actorId: '', attempt: '', durationMs: '', error: '', errorDetail: '', invocationCreatedAt: '', invocationId: '', startedAt: '', success: '', taskIdentifier: '' }, select: { id: true } }).execute(); +const created = await db.platformResourceInstallation.create({ data: { commitId: '', createdBy: '', createdByPrincipal: '', name: '', namespaceId: '', params: '', revision: '', slug: '', status: '', storeId: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformFunctionInvocationAttempt.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); +const updated = await db.platformResourceInstallation.update({ where: { id: '' }, data: { commitId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformFunctionInvocationAttempt.delete({ where: { id: '' } }).execute(); +const deleted = await db.platformResourceInstallation.delete({ where: { id: '' } }).execute(); ``` -### `db.platformFunctionInvocation` +### `db.platformResourceObservedStorage` -CRUD operations for PlatformFunctionInvocation records. +CRUD operations for PlatformResourceObservedStorage records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `capacity` | String | Yes | +| `capacityBytes` | BigInt | Yes | +| `claimName` | String | Yes | +| `declaredStorageClass` | String | Yes | +| `declaredStorageSizeBytes` | BigInt | Yes | +| `declaredStorageTotalBytes` | BigInt | Yes | +| `installationId` | UUID | Yes | +| `isBound` | Boolean | Yes | +| `kind` | String | Yes | +| `namespaceId` | UUID | Yes | +| `phase` | String | Yes | +| `requested` | String | Yes | +| `requestedBytes` | BigInt | Yes | +| `resourceId` | UUID | Yes | +| `resourceStatus` | String | Yes | +| `slug` | String | Yes | +| `storageClass` | String | Yes | +| `storageName` | String | Yes | + +**Operations:** + +```typescript +// List all platformResourceObservedStorage records +const items = await db.platformResourceObservedStorage.findMany({ select: { capacity: true, capacityBytes: true, claimName: true, declaredStorageClass: true, declaredStorageSizeBytes: true, declaredStorageTotalBytes: true, installationId: true, isBound: true, kind: true, namespaceId: true, phase: true, requested: true, requestedBytes: true, resourceId: true, resourceStatus: true, slug: true, storageClass: true, storageName: true } }).execute(); + +// Get one by id +const item = await db.platformResourceObservedStorage.findOne({ id: '', select: { capacity: true, capacityBytes: true, claimName: true, declaredStorageClass: true, declaredStorageSizeBytes: true, declaredStorageTotalBytes: true, installationId: true, isBound: true, kind: true, namespaceId: true, phase: true, requested: true, requestedBytes: true, resourceId: true, resourceStatus: true, slug: true, storageClass: true, storageName: true } }).execute(); + +// Create +const created = await db.platformResourceObservedStorage.create({ data: { capacity: '', capacityBytes: '', claimName: '', declaredStorageClass: '', declaredStorageSizeBytes: '', declaredStorageTotalBytes: '', installationId: '', isBound: '', kind: '', namespaceId: '', phase: '', requested: '', requestedBytes: '', resourceId: '', resourceStatus: '', slug: '', storageClass: '', storageName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformResourceObservedStorage.update({ where: { id: '' }, data: { capacity: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformResourceObservedStorage.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformResourceStatusCheck` + +CRUD operations for PlatformResourceStatusCheck records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `actorId` | UUID | Yes | -| `apiBindingId` | UUID | Yes | -| `channel` | String | Yes | | `completedAt` | Datetime | Yes | -| `createdAt` | Datetime | No | -| `databaseId` | UUID | Yes | -| `definitionScope` | String | Yes | -| `durationMs` | Int | Yes | -| `error` | String | Yes | -| `functionDefinitionId` | UUID | Yes | -| `graphExecutionId` | UUID | Yes | | `id` | UUID | No | -| `jobId` | BigInt | Yes | -| `parentInvocationId` | UUID | Yes | -| `payload` | JSON | Yes | -| `provenance` | JSON | Yes | +| `requestedAt` | Datetime | Yes | +| `requestedBy` | UUID | Yes | +| `resourceId` | UUID | Yes | | `result` | JSON | Yes | -| `startedAt` | Datetime | Yes | | `status` | String | Yes | -| `taskIdentifier` | String | Yes | **Operations:** ```typescript -// List all platformFunctionInvocation records -const items = await db.platformFunctionInvocation.findMany({ select: { actorId: true, apiBindingId: true, channel: true, completedAt: true, createdAt: true, databaseId: true, definitionScope: true, durationMs: true, error: true, functionDefinitionId: true, graphExecutionId: true, id: true, jobId: true, parentInvocationId: true, payload: true, provenance: true, result: true, startedAt: true, status: true, taskIdentifier: true } }).execute(); +// List all platformResourceStatusCheck records +const items = await db.platformResourceStatusCheck.findMany({ select: { completedAt: true, id: true, requestedAt: true, requestedBy: true, resourceId: true, result: true, status: true } }).execute(); // Get one by id -const item = await db.platformFunctionInvocation.findOne({ id: '', select: { actorId: true, apiBindingId: true, channel: true, completedAt: true, createdAt: true, databaseId: true, definitionScope: true, durationMs: true, error: true, functionDefinitionId: true, graphExecutionId: true, id: true, jobId: true, parentInvocationId: true, payload: true, provenance: true, result: true, startedAt: true, status: true, taskIdentifier: true } }).execute(); +const item = await db.platformResourceStatusCheck.findOne({ id: '', select: { completedAt: true, id: true, requestedAt: true, requestedBy: true, resourceId: true, result: true, status: true } }).execute(); // Create -const created = await db.platformFunctionInvocation.create({ data: { actorId: '', apiBindingId: '', channel: '', completedAt: '', databaseId: '', definitionScope: '', durationMs: '', error: '', functionDefinitionId: '', graphExecutionId: '', jobId: '', parentInvocationId: '', payload: '', provenance: '', result: '', startedAt: '', status: '', taskIdentifier: '' }, select: { id: true } }).execute(); +const created = await db.platformResourceStatusCheck.create({ data: { completedAt: '', requestedAt: '', requestedBy: '', resourceId: '', result: '', status: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformFunctionInvocation.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); +const updated = await db.platformResourceStatusCheck.update({ where: { id: '' }, data: { completedAt: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformFunctionInvocation.delete({ where: { id: '' } }).execute(); +const deleted = await db.platformResourceStatusCheck.delete({ where: { id: '' } }).execute(); ``` -### `db.platformInfraCommit` +### `db.platformResourceUsageLog` -CRUD operations for PlatformInfraCommit records. +CRUD operations for PlatformResourceUsageLog records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `authorId` | UUID | Yes | -| `committerId` | UUID | Yes | -| `date` | Datetime | Yes | +| `cpuMillicores` | BigInt | Yes | | `id` | UUID | No | -| `message` | String | Yes | -| `parentIds` | UUID | Yes | -| `scopeId` | UUID | Yes | -| `storeId` | UUID | Yes | -| `treeId` | UUID | Yes | +| `intervalSeconds` | Int | Yes | +| `memoryBytes` | BigInt | Yes | +| `metrics` | JSON | Yes | +| `namespaceId` | UUID | Yes | +| `resourceId` | UUID | Yes | +| `sampledAt` | Datetime | Yes | +| `source` | String | Yes | **Operations:** ```typescript -// List all platformInfraCommit records -const items = await db.platformInfraCommit.findMany({ select: { authorId: true, committerId: true, date: true, id: true, message: true, parentIds: true, scopeId: true, storeId: true, treeId: true } }).execute(); +// List all platformResourceUsageLog records +const items = await db.platformResourceUsageLog.findMany({ select: { cpuMillicores: true, id: true, intervalSeconds: true, memoryBytes: true, metrics: true, namespaceId: true, resourceId: true, sampledAt: true, source: true } }).execute(); // Get one by id -const item = await db.platformInfraCommit.findOne({ id: '', select: { authorId: true, committerId: true, date: true, id: true, message: true, parentIds: true, scopeId: true, storeId: true, treeId: true } }).execute(); +const item = await db.platformResourceUsageLog.findOne({ id: '', select: { cpuMillicores: true, id: true, intervalSeconds: true, memoryBytes: true, metrics: true, namespaceId: true, resourceId: true, sampledAt: true, source: true } }).execute(); // Create -const created = await db.platformInfraCommit.create({ data: { authorId: '', committerId: '', date: '', message: '', parentIds: '', scopeId: '', storeId: '', treeId: '' }, select: { id: true } }).execute(); +const created = await db.platformResourceUsageLog.create({ data: { cpuMillicores: '', intervalSeconds: '', memoryBytes: '', metrics: '', namespaceId: '', resourceId: '', sampledAt: '', source: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformInfraCommit.update({ where: { id: '' }, data: { authorId: '' }, select: { id: true } }).execute(); +const updated = await db.platformResourceUsageLog.update({ where: { id: '' }, data: { cpuMillicores: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformInfraCommit.delete({ where: { id: '' } }).execute(); +const deleted = await db.platformResourceUsageLog.delete({ where: { id: '' } }).execute(); ``` -### `db.platformInfraGetAllTreeNodesRecord` +### `db.platformResourceUsageSummary` -CRUD operations for PlatformInfraGetAllTreeNodesRecord records. +CRUD operations for PlatformResourceUsageSummary records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `data` | JSON | Yes | -| `path` | String | Yes | +| `date` | Date | Yes | +| `gbSeconds` | BigFloat | Yes | +| `id` | UUID | No | +| `maxCpuMillicores` | BigInt | Yes | +| `maxMemoryBytes` | BigInt | Yes | +| `namespaceId` | UUID | Yes | +| `resourceId` | UUID | Yes | +| `runtimeSeconds` | BigInt | Yes | +| `sampleCount` | Int | Yes | **Operations:** ```typescript -// List all platformInfraGetAllTreeNodesRecord records -const items = await db.platformInfraGetAllTreeNodesRecord.findMany({ select: { data: true, path: true } }).execute(); +// List all platformResourceUsageSummary records +const items = await db.platformResourceUsageSummary.findMany({ select: { date: true, gbSeconds: true, id: true, maxCpuMillicores: true, maxMemoryBytes: true, namespaceId: true, resourceId: true, runtimeSeconds: true, sampleCount: true } }).execute(); // Get one by id -const item = await db.platformInfraGetAllTreeNodesRecord.findOne({ id: '', select: { data: true, path: true } }).execute(); +const item = await db.platformResourceUsageSummary.findOne({ id: '', select: { date: true, gbSeconds: true, id: true, maxCpuMillicores: true, maxMemoryBytes: true, namespaceId: true, resourceId: true, runtimeSeconds: true, sampleCount: true } }).execute(); // Create -const created = await db.platformInfraGetAllTreeNodesRecord.create({ data: { data: '', path: '' }, select: { id: true } }).execute(); +const created = await db.platformResourceUsageSummary.create({ data: { date: '', gbSeconds: '', maxCpuMillicores: '', maxMemoryBytes: '', namespaceId: '', resourceId: '', runtimeSeconds: '', sampleCount: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformInfraGetAllTreeNodesRecord.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); +const updated = await db.platformResourceUsageSummary.update({ where: { id: '' }, data: { date: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformInfraGetAllTreeNodesRecord.delete({ where: { id: '' } }).execute(); +const deleted = await db.platformResourceUsageSummary.delete({ where: { id: '' } }).execute(); ``` -### `db.platformInfraObject` +### `db.platformResourceUtilization` -CRUD operations for PlatformInfraObject records. +CRUD operations for PlatformResourceUtilization records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `avgMemoryBytes` | BigInt | Yes | +| `cpuLimitMillicores` | BigInt | Yes | +| `cpuPeakUtilization` | BigFloat | Yes | +| `cpuRequestHeadroomMillicores` | BigInt | Yes | +| `cpuRequestMillicores` | BigInt | Yes | +| `date` | Date | Yes | +| `gbSeconds` | BigFloat | Yes | +| `kind` | String | Yes | +| `maxCpuMillicores` | BigInt | Yes | +| `maxMemoryBytes` | BigInt | Yes | +| `memoryLimitBytes` | BigInt | Yes | +| `memoryPeakUtilization` | BigFloat | Yes | +| `memoryRequestBytes` | BigInt | Yes | +| `memoryRequestHeadroomBytes` | BigInt | Yes | +| `namespaceId` | UUID | Yes | +| `replicas` | Int | Yes | +| `resourceId` | UUID | Yes | +| `runtimeSeconds` | BigInt | Yes | +| `sampleCount` | Int | Yes | + +**Operations:** + +```typescript +// List all platformResourceUtilization records +const items = await db.platformResourceUtilization.findMany({ select: { avgMemoryBytes: true, cpuLimitMillicores: true, cpuPeakUtilization: true, cpuRequestHeadroomMillicores: true, cpuRequestMillicores: true, date: true, gbSeconds: true, kind: true, maxCpuMillicores: true, maxMemoryBytes: true, memoryLimitBytes: true, memoryPeakUtilization: true, memoryRequestBytes: true, memoryRequestHeadroomBytes: true, namespaceId: true, replicas: true, resourceId: true, runtimeSeconds: true, sampleCount: true } }).execute(); + +// Get one by id +const item = await db.platformResourceUtilization.findOne({ id: '', select: { avgMemoryBytes: true, cpuLimitMillicores: true, cpuPeakUtilization: true, cpuRequestHeadroomMillicores: true, cpuRequestMillicores: true, date: true, gbSeconds: true, kind: true, maxCpuMillicores: true, maxMemoryBytes: true, memoryLimitBytes: true, memoryPeakUtilization: true, memoryRequestBytes: true, memoryRequestHeadroomBytes: true, namespaceId: true, replicas: true, resourceId: true, runtimeSeconds: true, sampleCount: true } }).execute(); + +// Create +const created = await db.platformResourceUtilization.create({ data: { avgMemoryBytes: '', cpuLimitMillicores: '', cpuPeakUtilization: '', cpuRequestHeadroomMillicores: '', cpuRequestMillicores: '', date: '', gbSeconds: '', kind: '', maxCpuMillicores: '', maxMemoryBytes: '', memoryLimitBytes: '', memoryPeakUtilization: '', memoryRequestBytes: '', memoryRequestHeadroomBytes: '', namespaceId: '', replicas: '', resourceId: '', runtimeSeconds: '', sampleCount: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformResourceUtilization.update({ where: { id: '' }, data: { avgMemoryBytes: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformResourceUtilization.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformResourcesHealth` + +CRUD operations for PlatformResourcesHealth records. **Fields:** | Field | Type | Editable | |-------|------|----------| +| `annotations` | JSON | Yes | +| `cpuLimitMillicores` | BigInt | Yes | +| `cpuRequestMillicores` | BigInt | Yes | | `createdAt` | Datetime | No | -| `data` | JSON | Yes | +| `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | +| `errorCount` | Int | Yes | | `id` | UUID | No | -| `kids` | UUID | Yes | -| `ktree` | String | Yes | -| `scopeId` | UUID | Yes | +| `imageRef` | String | Yes | +| `installationId` | UUID | Yes | +| `integrations` | String | Yes | +| `kind` | String | Yes | +| `labels` | JSON | Yes | +| `lastError` | String | Yes | +| `lastHeartbeatAt` | Datetime | Yes | +| `memoryLimitBytes` | BigInt | Yes | +| `memoryRequestBytes` | BigInt | Yes | +| `name` | String | Yes | +| `namespaceId` | UUID | Yes | +| `realm` | String | Yes | +| `replicas` | Int | Yes | +| `requiredConfigs` | ResourceRequirement | Yes | +| `requiredSecrets` | ResourceRequirement | Yes | +| `resourceDefinitionId` | UUID | Yes | +| `slug` | String | Yes | +| `spec` | JSON | Yes | +| `status` | String | Yes | +| `statusDetail` | String | Yes | +| `statusObserved` | JSON | Yes | +| `storageClass` | String | Yes | +| `storageSizeBytes` | BigInt | Yes | +| `storageTotalBytes` | BigInt | Yes | +| `updatedAt` | Datetime | No | +| `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | **Operations:** ```typescript -// List all platformInfraObject records -const items = await db.platformInfraObject.findMany({ select: { createdAt: true, data: true, id: true, kids: true, ktree: true, scopeId: true } }).execute(); +// List all platformResourcesHealth records +const items = await db.platformResourcesHealth.findMany({ select: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusDetail: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.platformInfraObject.findOne({ id: '', select: { createdAt: true, data: true, id: true, kids: true, ktree: true, scopeId: true } }).execute(); +const item = await db.platformResourcesHealth.findOne({ id: '', select: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusDetail: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.platformInfraObject.create({ data: { data: '', kids: '', ktree: '', scopeId: '' }, select: { id: true } }).execute(); +const created = await db.platformResourcesHealth.create({ data: { annotations: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', createdByPrincipal: '', errorCount: '', imageRef: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusDetail: '', statusObserved: '', storageClass: '', storageSizeBytes: '', storageTotalBytes: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformInfraObject.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); +const updated = await db.platformResourcesHealth.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformInfraObject.delete({ where: { id: '' } }).execute(); +const deleted = await db.platformResourcesHealth.delete({ where: { id: '' } }).execute(); ``` -### `db.platformInfraRef` +### `db.platformResourcesRequirementsState` -CRUD operations for PlatformInfraRef records. +CRUD operations for PlatformResourcesRequirementsState records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `commitId` | UUID | Yes | -| `id` | UUID | No | -| `name` | String | Yes | -| `scopeId` | UUID | Yes | -| `storeId` | UUID | Yes | +| `configHash` | String | Yes | +| `configObjectName` | String | Yes | +| `requirementsHash` | String | Yes | +| `resourceId` | UUID | Yes | +| `secretsHash` | String | Yes | +| `secretsObjectName` | String | Yes | +| `slug` | String | Yes | **Operations:** ```typescript -// List all platformInfraRef records -const items = await db.platformInfraRef.findMany({ select: { commitId: true, id: true, name: true, scopeId: true, storeId: true } }).execute(); +// List all platformResourcesRequirementsState records +const items = await db.platformResourcesRequirementsState.findMany({ select: { configHash: true, configObjectName: true, requirementsHash: true, resourceId: true, secretsHash: true, secretsObjectName: true, slug: true } }).execute(); // Get one by id -const item = await db.platformInfraRef.findOne({ id: '', select: { commitId: true, id: true, name: true, scopeId: true, storeId: true } }).execute(); +const item = await db.platformResourcesRequirementsState.findOne({ id: '', select: { configHash: true, configObjectName: true, requirementsHash: true, resourceId: true, secretsHash: true, secretsObjectName: true, slug: true } }).execute(); // Create -const created = await db.platformInfraRef.create({ data: { commitId: '', name: '', scopeId: '', storeId: '' }, select: { id: true } }).execute(); +const created = await db.platformResourcesRequirementsState.create({ data: { configHash: '', configObjectName: '', requirementsHash: '', resourceId: '', secretsHash: '', secretsObjectName: '', slug: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformInfraRef.update({ where: { id: '' }, data: { commitId: '' }, select: { id: true } }).execute(); +const updated = await db.platformResourcesRequirementsState.update({ where: { id: '' }, data: { configHash: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformInfraRef.delete({ where: { id: '' } }).execute(); +const deleted = await db.platformResourcesRequirementsState.delete({ where: { id: '' } }).execute(); ``` -### `db.platformInfraStore` +### `db.platformResourcesResolvedRequirement` -CRUD operations for PlatformInfraStore records. +CRUD operations for PlatformResourcesResolvedRequirement records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `createdAt` | Datetime | No | -| `hash` | UUID | Yes | -| `id` | UUID | No | +| `atomId` | UUID | Yes | +| `configObjectName` | String | Yes | | `name` | String | Yes | -| `scopeId` | UUID | Yes | +| `namespaceId` | UUID | Yes | +| `present` | Boolean | Yes | +| `realm` | String | Yes | +| `required` | Boolean | Yes | +| `requirementKind` | String | Yes | +| `resourceId` | UUID | Yes | +| `secretsObjectName` | String | Yes | +| `slug` | String | Yes | **Operations:** ```typescript -// List all platformInfraStore records -const items = await db.platformInfraStore.findMany({ select: { createdAt: true, hash: true, id: true, name: true, scopeId: true } }).execute(); +// List all platformResourcesResolvedRequirement records +const items = await db.platformResourcesResolvedRequirement.findMany({ select: { atomId: true, configObjectName: true, name: true, namespaceId: true, present: true, realm: true, required: true, requirementKind: true, resourceId: true, secretsObjectName: true, slug: true } }).execute(); // Get one by id -const item = await db.platformInfraStore.findOne({ id: '', select: { createdAt: true, hash: true, id: true, name: true, scopeId: true } }).execute(); +const item = await db.platformResourcesResolvedRequirement.findOne({ id: '', select: { atomId: true, configObjectName: true, name: true, namespaceId: true, present: true, realm: true, required: true, requirementKind: true, resourceId: true, secretsObjectName: true, slug: true } }).execute(); // Create -const created = await db.platformInfraStore.create({ data: { hash: '', name: '', scopeId: '' }, select: { id: true } }).execute(); +const created = await db.platformResourcesResolvedRequirement.create({ data: { atomId: '', configObjectName: '', name: '', namespaceId: '', present: '', realm: '', required: '', requirementKind: '', resourceId: '', secretsObjectName: '', slug: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformInfraStore.update({ where: { id: '' }, data: { hash: '' }, select: { id: true } }).execute(); +const updated = await db.platformResourcesResolvedRequirement.update({ where: { id: '' }, data: { atomId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformInfraStore.delete({ where: { id: '' } }).execute(); +const deleted = await db.platformResourcesResolvedRequirement.delete({ where: { id: '' } }).execute(); ``` -### `db.platformNamespace` +### `db.platformWebhookEndpoint` -CRUD operations for PlatformNamespace records. +CRUD operations for PlatformWebhookEndpoint records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `annotations` | JSON | Yes | +| `active` | Boolean | Yes | | `createdAt` | Datetime | No | -| `description` | String | Yes | +| `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | +| `functionDefinitionId` | UUID | Yes | +| `host` | String | Yes | | `id` | UUID | No | -| `isActive` | Boolean | Yes | -| `isManaged` | Boolean | Yes | -| `labels` | JSON | Yes | -| `lastError` | String | Yes | -| `name` | String | Yes | -| `namespaceName` | String | Yes | -| `status` | String | Yes | +| `namespaceId` | UUID | Yes | +| `path` | String | Yes | +| `provider` | String | Yes | +| `replayWindowSeconds` | Int | Yes | +| `signingSecretName` | String | Yes | | `updatedAt` | Datetime | No | +| `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | **Operations:** ```typescript -// List all platformNamespace records -const items = await db.platformNamespace.findMany({ select: { annotations: true, createdAt: true, description: true, id: true, isActive: true, isManaged: true, labels: true, lastError: true, name: true, namespaceName: true, status: true, updatedAt: true } }).execute(); +// List all platformWebhookEndpoint records +const items = await db.platformWebhookEndpoint.findMany({ select: { active: true, createdAt: true, createdBy: true, createdByPrincipal: true, functionDefinitionId: true, host: true, id: true, namespaceId: true, path: true, provider: true, replayWindowSeconds: true, signingSecretName: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.platformNamespace.findOne({ id: '', select: { annotations: true, createdAt: true, description: true, id: true, isActive: true, isManaged: true, labels: true, lastError: true, name: true, namespaceName: true, status: true, updatedAt: true } }).execute(); +const item = await db.platformWebhookEndpoint.findOne({ id: '', select: { active: true, createdAt: true, createdBy: true, createdByPrincipal: true, functionDefinitionId: true, host: true, id: true, namespaceId: true, path: true, provider: true, replayWindowSeconds: true, signingSecretName: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.platformNamespace.create({ data: { annotations: '', description: '', isActive: '', isManaged: '', labels: '', lastError: '', name: '', namespaceName: '', status: '' }, select: { id: true } }).execute(); +const created = await db.platformWebhookEndpoint.create({ data: { active: '', createdBy: '', createdByPrincipal: '', functionDefinitionId: '', host: '', namespaceId: '', path: '', provider: '', replayWindowSeconds: '', signingSecretName: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformNamespace.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); +const updated = await db.platformWebhookEndpoint.update({ where: { id: '' }, data: { active: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformNamespace.delete({ where: { id: '' } }).execute(); +const deleted = await db.platformWebhookEndpoint.delete({ where: { id: '' } }).execute(); ``` -### `db.platformNamespaceEvent` +### `db.platformWebhookEvent` -CRUD operations for PlatformNamespaceEvent records. +CRUD operations for PlatformWebhookEvent records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `actorId` | UUID | Yes | | `createdAt` | Datetime | No | -| `eventType` | String | Yes | +| `endpointId` | UUID | Yes | +| `error` | String | Yes | +| `externalEventId` | String | Yes | | `id` | UUID | No | -| `message` | String | Yes | -| `metadata` | JSON | Yes | -| `namespaceId` | UUID | Yes | +| `invocationCreatedAt` | Datetime | Yes | +| `invocationId` | UUID | Yes | +| `payload` | JSON | Yes | +| `provider` | String | Yes | +| `providerTimestamp` | Datetime | Yes | +| `status` | String | Yes | +| `updatedAt` | Datetime | No | **Operations:** ```typescript -// List all platformNamespaceEvent records -const items = await db.platformNamespaceEvent.findMany({ select: { actorId: true, createdAt: true, eventType: true, id: true, message: true, metadata: true, namespaceId: true } }).execute(); +// List all platformWebhookEvent records +const items = await db.platformWebhookEvent.findMany({ select: { createdAt: true, endpointId: true, error: true, externalEventId: true, id: true, invocationCreatedAt: true, invocationId: true, payload: true, provider: true, providerTimestamp: true, status: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.platformNamespaceEvent.findOne({ id: '', select: { actorId: true, createdAt: true, eventType: true, id: true, message: true, metadata: true, namespaceId: true } }).execute(); +const item = await db.platformWebhookEvent.findOne({ id: '', select: { createdAt: true, endpointId: true, error: true, externalEventId: true, id: true, invocationCreatedAt: true, invocationId: true, payload: true, provider: true, providerTimestamp: true, status: true, updatedAt: true } }).execute(); // Create -const created = await db.platformNamespaceEvent.create({ data: { actorId: '', eventType: '', message: '', metadata: '', namespaceId: '' }, select: { id: true } }).execute(); +const created = await db.platformWebhookEvent.create({ data: { endpointId: '', error: '', externalEventId: '', invocationCreatedAt: '', invocationId: '', payload: '', provider: '', providerTimestamp: '', status: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformNamespaceEvent.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); +const updated = await db.platformWebhookEvent.update({ where: { id: '' }, data: { endpointId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformNamespaceEvent.delete({ where: { id: '' } }).execute(); +const deleted = await db.platformWebhookEvent.delete({ where: { id: '' } }).execute(); ``` -### `db.platformResource` +### `db.proposalComment` -CRUD operations for PlatformResource records. +CRUD operations for ProposalComment records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `annotations` | JSON | Yes | -| `cpuLimitMillicores` | BigInt | Yes | -| `cpuRequestMillicores` | BigInt | Yes | +| `actorId` | UUID | Yes | +| `attachments` | ConstructiveInternalTypeUpload | Yes | +| `body` | String | Yes | +| `bodyTrgmSimilarity` | Float | Yes | | `createdAt` | Datetime | No | | `createdBy` | UUID | Yes | -| `errorCount` | Int | Yes | +| `createdByPrincipal` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `embedding` | Vector | Yes | +| `embeddingUpdatedAt` | Datetime | Yes | +| `embeddingVectorDistance` | Float | Yes | | `id` | UUID | No | -| `installationId` | UUID | Yes | -| `integrations` | String | Yes | -| `kind` | String | Yes | -| `labels` | JSON | Yes | -| `lastError` | String | Yes | -| `lastHeartbeatAt` | Datetime | Yes | -| `memoryLimitBytes` | BigInt | Yes | -| `memoryRequestBytes` | BigInt | Yes | -| `name` | String | Yes | -| `namespaceId` | UUID | Yes | -| `realm` | String | Yes | -| `replicas` | Int | Yes | -| `requiredConfigs` | ResourceRequirement | Yes | -| `requiredSecrets` | ResourceRequirement | Yes | -| `resourceDefinitionId` | UUID | Yes | -| `slug` | String | Yes | -| `spec` | JSON | Yes | -| `status` | String | Yes | -| `statusObserved` | JSON | Yes | -| `storageClass` | String | Yes | -| `storageSizeBytes` | BigInt | Yes | +| `line` | Int | Yes | +| `outdatedAt` | Datetime | Yes | +| `path` | String | Yes | +| `pathTrgmSimilarity` | Float | Yes | +| `proposalId` | UUID | Yes | +| `resolvedAt` | Datetime | Yes | +| `search` | FullText | Yes | +| `searchScore` | Float | Yes | +| `searchTsvRank` | Float | Yes | | `updatedAt` | Datetime | No | | `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | **Operations:** ```typescript -// List all platformResource records -const items = await db.platformResource.findMany({ select: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, errorCount: true, id: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusObserved: true, storageClass: true, storageSizeBytes: true, updatedAt: true, updatedBy: true } }).execute(); +// List all proposalComment records +const items = await db.proposalComment.findMany({ select: { actorId: true, attachments: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.platformResource.findOne({ id: '', select: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, errorCount: true, id: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusObserved: true, storageClass: true, storageSizeBytes: true, updatedAt: true, updatedBy: true } }).execute(); +const item = await db.proposalComment.findOne({ id: '', select: { actorId: true, attachments: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.platformResource.create({ data: { annotations: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', errorCount: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusObserved: '', storageClass: '', storageSizeBytes: '', updatedBy: '' }, select: { id: true } }).execute(); +const created = await db.proposalComment.create({ data: { actorId: '', attachments: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', line: '', outdatedAt: '', path: '', pathTrgmSimilarity: '', proposalId: '', resolvedAt: '', search: '', searchScore: '', searchTsvRank: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformResource.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); +const updated = await db.proposalComment.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformResource.delete({ where: { id: '' } }).execute(); +const deleted = await db.proposalComment.delete({ where: { id: '' } }).execute(); ``` -### `db.platformResourceDeclaredCapacity` - -CRUD operations for PlatformResourceDeclaredCapacity records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `cpuLimitMillicores` | BigInt | Yes | -| `cpuRequestMillicores` | BigInt | Yes | -| `installationId` | UUID | Yes | -| `isTransient` | Boolean | Yes | -| `kind` | String | Yes | -| `memoryLimitBytes` | BigInt | Yes | -| `memoryRequestBytes` | BigInt | Yes | -| `namespaceId` | UUID | Yes | -| `podCountMax` | Int | Yes | -| `podCountMin` | Int | Yes | -| `source` | String | Yes | -| `sourceId` | UUID | Yes | -| `storageSizeBytes` | BigInt | Yes | - -**Operations:** - -```typescript -// List all platformResourceDeclaredCapacity records -const items = await db.platformResourceDeclaredCapacity.findMany({ select: { cpuLimitMillicores: true, cpuRequestMillicores: true, installationId: true, isTransient: true, kind: true, memoryLimitBytes: true, memoryRequestBytes: true, namespaceId: true, podCountMax: true, podCountMin: true, source: true, sourceId: true, storageSizeBytes: true } }).execute(); - -// Get one by id -const item = await db.platformResourceDeclaredCapacity.findOne({ id: '', select: { cpuLimitMillicores: true, cpuRequestMillicores: true, installationId: true, isTransient: true, kind: true, memoryLimitBytes: true, memoryRequestBytes: true, namespaceId: true, podCountMax: true, podCountMin: true, source: true, sourceId: true, storageSizeBytes: true } }).execute(); - -// Create -const created = await db.platformResourceDeclaredCapacity.create({ data: { cpuLimitMillicores: '', cpuRequestMillicores: '', installationId: '', isTransient: '', kind: '', memoryLimitBytes: '', memoryRequestBytes: '', namespaceId: '', podCountMax: '', podCountMin: '', source: '', sourceId: '', storageSizeBytes: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.platformResourceDeclaredCapacity.update({ where: { id: '' }, data: { cpuLimitMillicores: '' }, select: { id: true } }).execute(); +> **pgvector embedding fields:** `embedding` +> High-dimensional vector columns for semantic similarity search. Query via the Unified Search API pgvector adapter using cosine, L2, or inner-product distance. -// Delete -const deleted = await db.platformResourceDeclaredCapacity.delete({ where: { id: '' } }).execute(); -``` +> **Unified Search API fields:** `search` +> Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. -### `db.platformResourceDefinition` +### `db.proposal` -CRUD operations for PlatformResourceDefinition records. +CRUD operations for Proposal records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `annotations` | JSON | Yes | +| `actorId` | UUID | Yes | +| `body` | String | Yes | +| `bodyTrgmSimilarity` | Float | Yes | +| `closedReason` | String | Yes | +| `closedReasonTrgmSimilarity` | Float | Yes | | `createdAt` | Datetime | No | | `createdBy` | UUID | Yes | -| `defaultSpec` | JSON | Yes | -| `description` | String | Yes | +| `createdByPrincipal` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `decidedAt` | Datetime | Yes | +| `dueAt` | Datetime | Yes | +| `embedding` | Vector | Yes | +| `embeddingUpdatedAt` | Datetime | Yes | +| `embeddingVectorDistance` | Float | Yes | | `id` | UUID | No | -| `integrations` | String | Yes | | `kind` | String | Yes | -| `labels` | JSON | Yes | -| `name` | String | Yes | -| `namespaceId` | UUID | Yes | -| `paramsSchema` | JSON | Yes | -| `requiredConfigs` | ResourceRequirement | Yes | -| `requiredSecrets` | ResourceRequirement | Yes | -| `slug` | String | Yes | -| `stepUpMinAge` | Interval | Yes | +| `kindTrgmSimilarity` | Float | Yes | +| `labels` | String | Yes | +| `mergeCommit` | String | Yes | +| `mergeCommitTrgmSimilarity` | Float | Yes | +| `mergeMethod` | String | Yes | +| `mergeMethodTrgmSimilarity` | Float | Yes | +| `mergeRequestedAt` | Datetime | Yes | +| `mergedAt` | Datetime | Yes | +| `metadata` | JSON | Yes | +| `parentId` | UUID | Yes | +| `priority` | BigFloat | Yes | +| `repositoryId` | UUID | Yes | +| `resolution` | String | Yes | +| `resolutionTrgmSimilarity` | Float | Yes | +| `search` | FullText | Yes | +| `searchScore` | Float | Yes | +| `searchTsvRank` | Float | Yes | +| `sourceRef` | String | Yes | +| `sourceRefTrgmSimilarity` | Float | Yes | +| `status` | String | Yes | +| `statusTrgmSimilarity` | Float | Yes | +| `targetRef` | String | Yes | +| `targetRefTrgmSimilarity` | Float | Yes | +| `title` | String | Yes | +| `titleTrgmSimilarity` | Float | Yes | | `updatedAt` | Datetime | No | | `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | **Operations:** ```typescript -// List all platformResourceDefinition records -const items = await db.platformResourceDefinition.findMany({ select: { annotations: true, createdAt: true, createdBy: true, defaultSpec: true, description: true, id: true, integrations: true, kind: true, labels: true, name: true, namespaceId: true, paramsSchema: true, requiredConfigs: true, requiredSecrets: true, slug: true, stepUpMinAge: true, updatedAt: true, updatedBy: true } }).execute(); +// List all proposal records +const items = await db.proposal.findMany({ select: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, decidedAt: true, dueAt: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.platformResourceDefinition.findOne({ id: '', select: { annotations: true, createdAt: true, createdBy: true, defaultSpec: true, description: true, id: true, integrations: true, kind: true, labels: true, name: true, namespaceId: true, paramsSchema: true, requiredConfigs: true, requiredSecrets: true, slug: true, stepUpMinAge: true, updatedAt: true, updatedBy: true } }).execute(); +const item = await db.proposal.findOne({ id: '', select: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, decidedAt: true, dueAt: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.platformResourceDefinition.create({ data: { annotations: '', createdBy: '', defaultSpec: '', description: '', integrations: '', kind: '', labels: '', name: '', namespaceId: '', paramsSchema: '', requiredConfigs: '', requiredSecrets: '', slug: '', stepUpMinAge: '', updatedBy: '' }, select: { id: true } }).execute(); +const created = await db.proposal.create({ data: { actorId: '', body: '', bodyTrgmSimilarity: '', closedReason: '', closedReasonTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', decidedAt: '', dueAt: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', kind: '', kindTrgmSimilarity: '', labels: '', mergeCommit: '', mergeCommitTrgmSimilarity: '', mergeMethod: '', mergeMethodTrgmSimilarity: '', mergeRequestedAt: '', mergedAt: '', metadata: '', parentId: '', priority: '', repositoryId: '', resolution: '', resolutionTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', sourceRef: '', sourceRefTrgmSimilarity: '', status: '', statusTrgmSimilarity: '', targetRef: '', targetRefTrgmSimilarity: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformResourceDefinition.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); +const updated = await db.proposal.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformResourceDefinition.delete({ where: { id: '' } }).execute(); +const deleted = await db.proposal.delete({ where: { id: '' } }).execute(); ``` -### `db.platformResourceEvent` +> **pgvector embedding fields:** `embedding` +> High-dimensional vector columns for semantic similarity search. Query via the Unified Search API pgvector adapter using cosine, L2, or inner-product distance. -CRUD operations for PlatformResourceEvent records. +> **Unified Search API fields:** `search` +> Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. + +### `db.proposalFileView` + +CRUD operations for ProposalFileView records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `actorId` | UUID | Yes | +| `blobSha` | String | Yes | | `createdAt` | Datetime | No | -| `eventType` | String | Yes | +| `createdByPrincipal` | UUID | Yes | +| `databaseId` | UUID | Yes | | `id` | UUID | No | -| `message` | String | Yes | -| `metadata` | JSON | Yes | -| `resourceId` | UUID | Yes | +| `path` | String | Yes | +| `proposalId` | UUID | Yes | +| `reviewerId` | UUID | Yes | +| `updatedAt` | Datetime | No | +| `updatedByPrincipal` | UUID | Yes | +| `viewedAt` | Datetime | Yes | **Operations:** ```typescript -// List all platformResourceEvent records -const items = await db.platformResourceEvent.findMany({ select: { actorId: true, createdAt: true, eventType: true, id: true, message: true, metadata: true, resourceId: true } }).execute(); +// List all proposalFileView records +const items = await db.proposalFileView.findMany({ select: { blobSha: true, createdAt: true, createdByPrincipal: true, databaseId: true, id: true, path: true, proposalId: true, reviewerId: true, updatedAt: true, updatedByPrincipal: true, viewedAt: true } }).execute(); // Get one by id -const item = await db.platformResourceEvent.findOne({ id: '', select: { actorId: true, createdAt: true, eventType: true, id: true, message: true, metadata: true, resourceId: true } }).execute(); +const item = await db.proposalFileView.findOne({ id: '', select: { blobSha: true, createdAt: true, createdByPrincipal: true, databaseId: true, id: true, path: true, proposalId: true, reviewerId: true, updatedAt: true, updatedByPrincipal: true, viewedAt: true } }).execute(); // Create -const created = await db.platformResourceEvent.create({ data: { actorId: '', eventType: '', message: '', metadata: '', resourceId: '' }, select: { id: true } }).execute(); +const created = await db.proposalFileView.create({ data: { blobSha: '', createdByPrincipal: '', databaseId: '', path: '', proposalId: '', reviewerId: '', updatedByPrincipal: '', viewedAt: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformResourceEvent.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); +const updated = await db.proposalFileView.update({ where: { id: '' }, data: { blobSha: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformResourceEvent.delete({ where: { id: '' } }).execute(); +const deleted = await db.proposalFileView.delete({ where: { id: '' } }).execute(); ``` -### `db.platformResourceInstallation` +### `db.proposalReaction` -CRUD operations for PlatformResourceInstallation records. +CRUD operations for ProposalReaction records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `commitId` | UUID | Yes | +| `actorId` | UUID | Yes | +| `commentId` | UUID | Yes | | `createdAt` | Datetime | No | -| `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `emoji` | String | Yes | | `id` | UUID | No | -| `name` | String | Yes | -| `namespaceId` | UUID | Yes | -| `params` | JSON | Yes | -| `revision` | Int | Yes | -| `slug` | String | Yes | -| `status` | String | Yes | -| `storeId` | UUID | Yes | +| `proposalId` | UUID | Yes | | `updatedAt` | Datetime | No | -| `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | **Operations:** ```typescript -// List all platformResourceInstallation records -const items = await db.platformResourceInstallation.findMany({ select: { commitId: true, createdAt: true, createdBy: true, id: true, name: true, namespaceId: true, params: true, revision: true, slug: true, status: true, storeId: true, updatedAt: true, updatedBy: true } }).execute(); +// List all proposalReaction records +const items = await db.proposalReaction.findMany({ select: { actorId: true, commentId: true, createdAt: true, createdByPrincipal: true, databaseId: true, emoji: true, id: true, proposalId: true, updatedAt: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.platformResourceInstallation.findOne({ id: '', select: { commitId: true, createdAt: true, createdBy: true, id: true, name: true, namespaceId: true, params: true, revision: true, slug: true, status: true, storeId: true, updatedAt: true, updatedBy: true } }).execute(); +const item = await db.proposalReaction.findOne({ id: '', select: { actorId: true, commentId: true, createdAt: true, createdByPrincipal: true, databaseId: true, emoji: true, id: true, proposalId: true, updatedAt: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.platformResourceInstallation.create({ data: { commitId: '', createdBy: '', name: '', namespaceId: '', params: '', revision: '', slug: '', status: '', storeId: '', updatedBy: '' }, select: { id: true } }).execute(); +const created = await db.proposalReaction.create({ data: { actorId: '', commentId: '', createdByPrincipal: '', databaseId: '', emoji: '', proposalId: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformResourceInstallation.update({ where: { id: '' }, data: { commitId: '' }, select: { id: true } }).execute(); +const updated = await db.proposalReaction.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformResourceInstallation.delete({ where: { id: '' } }).execute(); +const deleted = await db.proposalReaction.delete({ where: { id: '' } }).execute(); ``` -### `db.platformResourceStatusCheck` +### `db.proposalReview` -CRUD operations for PlatformResourceStatusCheck records. +CRUD operations for ProposalReview records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `completedAt` | Datetime | Yes | +| `body` | String | Yes | +| `bodyTrgmSimilarity` | Float | Yes | +| `commitSha` | String | Yes | +| `commitShaTrgmSimilarity` | Float | Yes | +| `createdAt` | Datetime | No | +| `createdByPrincipal` | UUID | Yes | +| `databaseId` | UUID | Yes | | `id` | UUID | No | -| `requestedAt` | Datetime | Yes | -| `requestedBy` | UUID | Yes | -| `resourceId` | UUID | Yes | -| `result` | JSON | Yes | -| `status` | String | Yes | +| `proposalId` | UUID | Yes | +| `reviewerId` | UUID | Yes | +| `search` | FullText | Yes | +| `searchScore` | Float | Yes | +| `searchTsvRank` | Float | Yes | +| `submittedAt` | Datetime | Yes | +| `updatedAt` | Datetime | No | +| `updatedByPrincipal` | UUID | Yes | +| `verdict` | String | Yes | +| `verdictTrgmSimilarity` | Float | Yes | **Operations:** ```typescript -// List all platformResourceStatusCheck records -const items = await db.platformResourceStatusCheck.findMany({ select: { completedAt: true, id: true, requestedAt: true, requestedBy: true, resourceId: true, result: true, status: true } }).execute(); +// List all proposalReview records +const items = await db.proposalReview.findMany({ select: { body: true, bodyTrgmSimilarity: true, commitSha: true, commitShaTrgmSimilarity: true, createdAt: true, createdByPrincipal: true, databaseId: true, id: true, proposalId: true, reviewerId: true, search: true, searchScore: true, searchTsvRank: true, submittedAt: true, updatedAt: true, updatedByPrincipal: true, verdict: true, verdictTrgmSimilarity: true } }).execute(); // Get one by id -const item = await db.platformResourceStatusCheck.findOne({ id: '', select: { completedAt: true, id: true, requestedAt: true, requestedBy: true, resourceId: true, result: true, status: true } }).execute(); +const item = await db.proposalReview.findOne({ id: '', select: { body: true, bodyTrgmSimilarity: true, commitSha: true, commitShaTrgmSimilarity: true, createdAt: true, createdByPrincipal: true, databaseId: true, id: true, proposalId: true, reviewerId: true, search: true, searchScore: true, searchTsvRank: true, submittedAt: true, updatedAt: true, updatedByPrincipal: true, verdict: true, verdictTrgmSimilarity: true } }).execute(); // Create -const created = await db.platformResourceStatusCheck.create({ data: { completedAt: '', requestedAt: '', requestedBy: '', resourceId: '', result: '', status: '' }, select: { id: true } }).execute(); +const created = await db.proposalReview.create({ data: { body: '', bodyTrgmSimilarity: '', commitSha: '', commitShaTrgmSimilarity: '', createdByPrincipal: '', databaseId: '', proposalId: '', reviewerId: '', search: '', searchScore: '', searchTsvRank: '', submittedAt: '', updatedByPrincipal: '', verdict: '', verdictTrgmSimilarity: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformResourceStatusCheck.update({ where: { id: '' }, data: { completedAt: '' }, select: { id: true } }).execute(); +const updated = await db.proposalReview.update({ where: { id: '' }, data: { body: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformResourceStatusCheck.delete({ where: { id: '' } }).execute(); +const deleted = await db.proposalReview.delete({ where: { id: '' } }).execute(); ``` -### `db.platformResourceUsageLog` +> **Unified Search API fields:** `search` +> Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. -CRUD operations for PlatformResourceUsageLog records. +### `db.proposalsChunk` + +CRUD operations for ProposalsChunk records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `cpuMillicores` | BigInt | Yes | +| `actorId` | UUID | Yes | +| `body` | String | Yes | +| `chunkIndex` | Int | Yes | +| `createdAt` | Datetime | No | +| `databaseId` | UUID | Yes | +| `embedding` | Vector | Yes | +| `embeddingVectorDistance` | Float | Yes | | `id` | UUID | No | -| `intervalSeconds` | Int | Yes | -| `memoryBytes` | BigInt | Yes | -| `metrics` | JSON | Yes | -| `namespaceId` | UUID | Yes | -| `resourceId` | UUID | Yes | -| `sampledAt` | Datetime | Yes | -| `source` | String | Yes | +| `metadata` | JSON | Yes | +| `proposalsId` | UUID | Yes | +| `searchScore` | Float | Yes | +| `updatedAt` | Datetime | No | **Operations:** ```typescript -// List all platformResourceUsageLog records -const items = await db.platformResourceUsageLog.findMany({ select: { cpuMillicores: true, id: true, intervalSeconds: true, memoryBytes: true, metrics: true, namespaceId: true, resourceId: true, sampledAt: true, source: true } }).execute(); +// List all proposalsChunk records +const items = await db.proposalsChunk.findMany({ select: { actorId: true, body: true, chunkIndex: true, createdAt: true, databaseId: true, embedding: true, embeddingVectorDistance: true, id: true, metadata: true, proposalsId: true, searchScore: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.platformResourceUsageLog.findOne({ id: '', select: { cpuMillicores: true, id: true, intervalSeconds: true, memoryBytes: true, metrics: true, namespaceId: true, resourceId: true, sampledAt: true, source: true } }).execute(); +const item = await db.proposalsChunk.findOne({ id: '', select: { actorId: true, body: true, chunkIndex: true, createdAt: true, databaseId: true, embedding: true, embeddingVectorDistance: true, id: true, metadata: true, proposalsId: true, searchScore: true, updatedAt: true } }).execute(); // Create -const created = await db.platformResourceUsageLog.create({ data: { cpuMillicores: '', intervalSeconds: '', memoryBytes: '', metrics: '', namespaceId: '', resourceId: '', sampledAt: '', source: '' }, select: { id: true } }).execute(); +const created = await db.proposalsChunk.create({ data: { actorId: '', body: '', chunkIndex: '', databaseId: '', embedding: '', embeddingVectorDistance: '', metadata: '', proposalsId: '', searchScore: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformResourceUsageLog.update({ where: { id: '' }, data: { cpuMillicores: '' }, select: { id: true } }).execute(); +const updated = await db.proposalsChunk.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformResourceUsageLog.delete({ where: { id: '' } }).execute(); +const deleted = await db.proposalsChunk.delete({ where: { id: '' } }).execute(); ``` -### `db.platformResourceUsageSummary` +> **pgvector embedding fields:** `embedding` +> High-dimensional vector columns for semantic similarity search. Query via the Unified Search API pgvector adapter using cosine, L2, or inner-product distance. -CRUD operations for PlatformResourceUsageSummary records. +### `db.registryBinding` + +CRUD operations for RegistryBinding records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `date` | Date | Yes | -| `gbSeconds` | BigFloat | Yes | +| `createdAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | +| `databaseId` | UUID | Yes | | `id` | UUID | No | -| `maxCpuMillicores` | BigInt | Yes | -| `maxMemoryBytes` | BigInt | Yes | +| `metadata` | JSON | Yes | | `namespaceId` | UUID | Yes | -| `resourceId` | UUID | Yes | -| `runtimeSeconds` | BigInt | Yes | -| `sampleCount` | Int | Yes | +| `observedCredentialVersion` | String | Yes | +| `pullSecretName` | String | Yes | +| `realm` | String | Yes | +| `registryHost` | String | Yes | +| `registryId` | UUID | Yes | +| `status` | String | Yes | +| `updatedAt` | Datetime | No | +| `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | **Operations:** ```typescript -// List all platformResourceUsageSummary records -const items = await db.platformResourceUsageSummary.findMany({ select: { date: true, gbSeconds: true, id: true, maxCpuMillicores: true, maxMemoryBytes: true, namespaceId: true, resourceId: true, runtimeSeconds: true, sampleCount: true } }).execute(); +// List all registryBinding records +const items = await db.registryBinding.findMany({ select: { createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, id: true, metadata: true, namespaceId: true, observedCredentialVersion: true, pullSecretName: true, realm: true, registryHost: true, registryId: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.platformResourceUsageSummary.findOne({ id: '', select: { date: true, gbSeconds: true, id: true, maxCpuMillicores: true, maxMemoryBytes: true, namespaceId: true, resourceId: true, runtimeSeconds: true, sampleCount: true } }).execute(); +const item = await db.registryBinding.findOne({ id: '', select: { createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, id: true, metadata: true, namespaceId: true, observedCredentialVersion: true, pullSecretName: true, realm: true, registryHost: true, registryId: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.platformResourceUsageSummary.create({ data: { date: '', gbSeconds: '', maxCpuMillicores: '', maxMemoryBytes: '', namespaceId: '', resourceId: '', runtimeSeconds: '', sampleCount: '' }, select: { id: true } }).execute(); +const created = await db.registryBinding.create({ data: { createdBy: '', createdByPrincipal: '', databaseId: '', metadata: '', namespaceId: '', observedCredentialVersion: '', pullSecretName: '', realm: '', registryHost: '', registryId: '', status: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformResourceUsageSummary.update({ where: { id: '' }, data: { date: '' }, select: { id: true } }).execute(); +const updated = await db.registryBinding.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformResourceUsageSummary.delete({ where: { id: '' } }).execute(); +const deleted = await db.registryBinding.delete({ where: { id: '' } }).execute(); ``` -### `db.platformResourceUtilization` +### `db.registry` -CRUD operations for PlatformResourceUtilization records. +CRUD operations for Registry records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `avgMemoryBytes` | BigInt | Yes | -| `cpuLimitMillicores` | BigInt | Yes | -| `cpuPeakUtilization` | BigFloat | Yes | -| `cpuRequestHeadroomMillicores` | BigInt | Yes | -| `cpuRequestMillicores` | BigInt | Yes | -| `date` | Date | Yes | -| `gbSeconds` | BigFloat | Yes | +| `authMode` | String | Yes | +| `basePath` | String | Yes | +| `createdAt` | Datetime | No | +| `createdByPrincipal` | UUID | Yes | +| `credentialSecretName` | String | Yes | +| `databaseId` | UUID | Yes | +| `host` | String | Yes | +| `id` | UUID | No | +| `installationId` | UUID | Yes | +| `isPublished` | Boolean | Yes | | `kind` | String | Yes | -| `maxCpuMillicores` | BigInt | Yes | -| `maxMemoryBytes` | BigInt | Yes | -| `memoryLimitBytes` | BigInt | Yes | -| `memoryPeakUtilization` | BigFloat | Yes | -| `memoryRequestBytes` | BigInt | Yes | -| `memoryRequestHeadroomBytes` | BigInt | Yes | -| `namespaceId` | UUID | Yes | -| `replicas` | Int | Yes | -| `resourceId` | UUID | Yes | -| `runtimeSeconds` | BigInt | Yes | -| `sampleCount` | Int | Yes | +| `labels` | JSON | Yes | +| `lastError` | String | Yes | +| `metadata` | JSON | Yes | +| `name` | String | Yes | +| `platformOnly` | Boolean | Yes | +| `role` | String | Yes | +| `status` | String | Yes | +| `updatedAt` | Datetime | No | +| `updatedByPrincipal` | UUID | Yes | **Operations:** ```typescript -// List all platformResourceUtilization records -const items = await db.platformResourceUtilization.findMany({ select: { avgMemoryBytes: true, cpuLimitMillicores: true, cpuPeakUtilization: true, cpuRequestHeadroomMillicores: true, cpuRequestMillicores: true, date: true, gbSeconds: true, kind: true, maxCpuMillicores: true, maxMemoryBytes: true, memoryLimitBytes: true, memoryPeakUtilization: true, memoryRequestBytes: true, memoryRequestHeadroomBytes: true, namespaceId: true, replicas: true, resourceId: true, runtimeSeconds: true, sampleCount: true } }).execute(); +// List all registry records +const items = await db.registry.findMany({ select: { authMode: true, basePath: true, createdAt: true, createdByPrincipal: true, credentialSecretName: true, databaseId: true, host: true, id: true, installationId: true, isPublished: true, kind: true, labels: true, lastError: true, metadata: true, name: true, platformOnly: true, role: true, status: true, updatedAt: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.platformResourceUtilization.findOne({ id: '', select: { avgMemoryBytes: true, cpuLimitMillicores: true, cpuPeakUtilization: true, cpuRequestHeadroomMillicores: true, cpuRequestMillicores: true, date: true, gbSeconds: true, kind: true, maxCpuMillicores: true, maxMemoryBytes: true, memoryLimitBytes: true, memoryPeakUtilization: true, memoryRequestBytes: true, memoryRequestHeadroomBytes: true, namespaceId: true, replicas: true, resourceId: true, runtimeSeconds: true, sampleCount: true } }).execute(); +const item = await db.registry.findOne({ id: '', select: { authMode: true, basePath: true, createdAt: true, createdByPrincipal: true, credentialSecretName: true, databaseId: true, host: true, id: true, installationId: true, isPublished: true, kind: true, labels: true, lastError: true, metadata: true, name: true, platformOnly: true, role: true, status: true, updatedAt: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.platformResourceUtilization.create({ data: { avgMemoryBytes: '', cpuLimitMillicores: '', cpuPeakUtilization: '', cpuRequestHeadroomMillicores: '', cpuRequestMillicores: '', date: '', gbSeconds: '', kind: '', maxCpuMillicores: '', maxMemoryBytes: '', memoryLimitBytes: '', memoryPeakUtilization: '', memoryRequestBytes: '', memoryRequestHeadroomBytes: '', namespaceId: '', replicas: '', resourceId: '', runtimeSeconds: '', sampleCount: '' }, select: { id: true } }).execute(); +const created = await db.registry.create({ data: { authMode: '', basePath: '', createdByPrincipal: '', credentialSecretName: '', databaseId: '', host: '', installationId: '', isPublished: '', kind: '', labels: '', lastError: '', metadata: '', name: '', platformOnly: '', role: '', status: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformResourceUtilization.update({ where: { id: '' }, data: { avgMemoryBytes: '' }, select: { id: true } }).execute(); +const updated = await db.registry.update({ where: { id: '' }, data: { authMode: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformResourceUtilization.delete({ where: { id: '' } }).execute(); +const deleted = await db.registry.delete({ where: { id: '' } }).execute(); ``` -### `db.platformResourcesHealth` +### `db.registryGrant` -CRUD operations for PlatformResourcesHealth records. +CRUD operations for RegistryGrant records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `annotations` | JSON | Yes | -| `cpuLimitMillicores` | BigInt | Yes | -| `cpuRequestMillicores` | BigInt | Yes | +| `actions` | String | Yes | | `createdAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `errorCount` | Int | Yes | +| `createdByPrincipal` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `expiresAt` | Datetime | Yes | +| `grantedBy` | UUID | Yes | +| `granteeKey` | UUID | Yes | +| `granteeScope` | String | Yes | | `id` | UUID | No | -| `installationId` | UUID | Yes | -| `integrations` | String | Yes | -| `kind` | String | Yes | -| `labels` | JSON | Yes | -| `lastError` | String | Yes | -| `lastHeartbeatAt` | Datetime | Yes | -| `memoryLimitBytes` | BigInt | Yes | -| `memoryRequestBytes` | BigInt | Yes | -| `name` | String | Yes | -| `namespaceId` | UUID | Yes | -| `realm` | String | Yes | -| `replicas` | Int | Yes | -| `requiredConfigs` | ResourceRequirement | Yes | -| `requiredSecrets` | ResourceRequirement | Yes | -| `resourceDefinitionId` | UUID | Yes | -| `slug` | String | Yes | -| `spec` | JSON | Yes | -| `status` | String | Yes | -| `statusDetail` | String | Yes | -| `statusObserved` | JSON | Yes | -| `storageClass` | String | Yes | -| `storageSizeBytes` | BigInt | Yes | +| `registryId` | UUID | Yes | | `updatedAt` | Datetime | No | -| `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | **Operations:** ```typescript -// List all platformResourcesHealth records -const items = await db.platformResourcesHealth.findMany({ select: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, errorCount: true, id: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusDetail: true, statusObserved: true, storageClass: true, storageSizeBytes: true, updatedAt: true, updatedBy: true } }).execute(); +// List all registryGrant records +const items = await db.registryGrant.findMany({ select: { actions: true, createdAt: true, createdByPrincipal: true, databaseId: true, expiresAt: true, grantedBy: true, granteeKey: true, granteeScope: true, id: true, registryId: true, updatedAt: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.platformResourcesHealth.findOne({ id: '', select: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, errorCount: true, id: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusDetail: true, statusObserved: true, storageClass: true, storageSizeBytes: true, updatedAt: true, updatedBy: true } }).execute(); +const item = await db.registryGrant.findOne({ id: '', select: { actions: true, createdAt: true, createdByPrincipal: true, databaseId: true, expiresAt: true, grantedBy: true, granteeKey: true, granteeScope: true, id: true, registryId: true, updatedAt: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.platformResourcesHealth.create({ data: { annotations: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', errorCount: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusDetail: '', statusObserved: '', storageClass: '', storageSizeBytes: '', updatedBy: '' }, select: { id: true } }).execute(); +const created = await db.registryGrant.create({ data: { actions: '', createdByPrincipal: '', databaseId: '', expiresAt: '', grantedBy: '', granteeKey: '', granteeScope: '', registryId: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformResourcesHealth.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); +const updated = await db.registryGrant.update({ where: { id: '' }, data: { actions: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformResourcesHealth.delete({ where: { id: '' } }).execute(); +const deleted = await db.registryGrant.delete({ where: { id: '' } }).execute(); ``` -### `db.platformResourcesRequirementsState` +### `db.repository` -CRUD operations for PlatformResourcesRequirementsState records. +CRUD operations for Repository records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `configHash` | String | Yes | -| `configObjectName` | String | Yes | -| `requirementsHash` | String | Yes | -| `resourceId` | UUID | Yes | -| `secretsHash` | String | Yes | -| `secretsObjectName` | String | Yes | +| `cloneUrl` | String | Yes | +| `cloneUrlTrgmSimilarity` | Float | Yes | +| `createdAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `defaultBranch` | String | Yes | +| `defaultBranchTrgmSimilarity` | Float | Yes | +| `description` | String | Yes | +| `descriptionTrgmSimilarity` | Float | Yes | +| `embedding` | Vector | Yes | +| `embeddingUpdatedAt` | Datetime | Yes | +| `embeddingVectorDistance` | Float | Yes | +| `externalId` | String | Yes | +| `externalIdTrgmSimilarity` | Float | Yes | +| `id` | UUID | No | +| `isArchived` | Boolean | Yes | +| `metadata` | JSON | Yes | +| `name` | String | Yes | +| `nameTrgmSimilarity` | Float | Yes | +| `ownerId` | UUID | Yes | +| `provider` | String | Yes | +| `providerTrgmSimilarity` | Float | Yes | +| `search` | FullText | Yes | +| `searchScore` | Float | Yes | +| `searchTsvRank` | Float | Yes | | `slug` | String | Yes | +| `slugTrgmSimilarity` | Float | Yes | +| `updatedAt` | Datetime | No | +| `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | +| `visibility` | String | Yes | +| `visibilityTrgmSimilarity` | Float | Yes | **Operations:** ```typescript -// List all platformResourcesRequirementsState records -const items = await db.platformResourcesRequirementsState.findMany({ select: { configHash: true, configObjectName: true, requirementsHash: true, resourceId: true, secretsHash: true, secretsObjectName: true, slug: true } }).execute(); +// List all repository records +const items = await db.repository.findMany({ select: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } }).execute(); // Get one by id -const item = await db.platformResourcesRequirementsState.findOne({ id: '', select: { configHash: true, configObjectName: true, requirementsHash: true, resourceId: true, secretsHash: true, secretsObjectName: true, slug: true } }).execute(); +const item = await db.repository.findOne({ id: '', select: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } }).execute(); // Create -const created = await db.platformResourcesRequirementsState.create({ data: { configHash: '', configObjectName: '', requirementsHash: '', resourceId: '', secretsHash: '', secretsObjectName: '', slug: '' }, select: { id: true } }).execute(); +const created = await db.repository.create({ data: { cloneUrl: '', cloneUrlTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', defaultBranch: '', defaultBranchTrgmSimilarity: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', externalId: '', externalIdTrgmSimilarity: '', isArchived: '', metadata: '', name: '', nameTrgmSimilarity: '', ownerId: '', provider: '', providerTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', slug: '', slugTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '', visibility: '', visibilityTrgmSimilarity: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformResourcesRequirementsState.update({ where: { id: '' }, data: { configHash: '' }, select: { id: true } }).execute(); +const updated = await db.repository.update({ where: { id: '' }, data: { cloneUrl: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformResourcesRequirementsState.delete({ where: { id: '' } }).execute(); +const deleted = await db.repository.delete({ where: { id: '' } }).execute(); ``` -### `db.platformResourcesResolvedRequirement` +> **pgvector embedding fields:** `embedding` +> High-dimensional vector columns for semantic similarity search. Query via the Unified Search API pgvector adapter using cosine, L2, or inner-product distance. -CRUD operations for PlatformResourcesResolvedRequirement records. +> **Unified Search API fields:** `search` +> Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. + +### `db.repositoryEvent` + +CRUD operations for RepositoryEvent records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `atomId` | UUID | Yes | -| `configObjectName` | String | Yes | -| `name` | String | Yes | -| `namespaceId` | UUID | Yes | -| `present` | Boolean | Yes | -| `realm` | String | Yes | -| `required` | Boolean | Yes | -| `requirementKind` | String | Yes | -| `resourceId` | UUID | Yes | -| `secretsObjectName` | String | Yes | -| `slug` | String | Yes | +| `actorId` | UUID | Yes | +| `commitSha` | String | Yes | +| `createdAt` | Datetime | No | +| `createdByPrincipal` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `deliveryId` | String | Yes | +| `eventType` | String | Yes | +| `id` | UUID | No | +| `metadata` | JSON | Yes | +| `payload` | JSON | Yes | +| `ref` | String | Yes | +| `repositoryId` | UUID | Yes | +| `updatedAt` | Datetime | No | +| `updatedByPrincipal` | UUID | Yes | **Operations:** ```typescript -// List all platformResourcesResolvedRequirement records -const items = await db.platformResourcesResolvedRequirement.findMany({ select: { atomId: true, configObjectName: true, name: true, namespaceId: true, present: true, realm: true, required: true, requirementKind: true, resourceId: true, secretsObjectName: true, slug: true } }).execute(); +// List all repositoryEvent records +const items = await db.repositoryEvent.findMany({ select: { actorId: true, commitSha: true, createdAt: true, createdByPrincipal: true, databaseId: true, deliveryId: true, eventType: true, id: true, metadata: true, payload: true, ref: true, repositoryId: true, updatedAt: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.platformResourcesResolvedRequirement.findOne({ id: '', select: { atomId: true, configObjectName: true, name: true, namespaceId: true, present: true, realm: true, required: true, requirementKind: true, resourceId: true, secretsObjectName: true, slug: true } }).execute(); +const item = await db.repositoryEvent.findOne({ id: '', select: { actorId: true, commitSha: true, createdAt: true, createdByPrincipal: true, databaseId: true, deliveryId: true, eventType: true, id: true, metadata: true, payload: true, ref: true, repositoryId: true, updatedAt: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.platformResourcesResolvedRequirement.create({ data: { atomId: '', configObjectName: '', name: '', namespaceId: '', present: '', realm: '', required: '', requirementKind: '', resourceId: '', secretsObjectName: '', slug: '' }, select: { id: true } }).execute(); +const created = await db.repositoryEvent.create({ data: { actorId: '', commitSha: '', createdByPrincipal: '', databaseId: '', deliveryId: '', eventType: '', metadata: '', payload: '', ref: '', repositoryId: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformResourcesResolvedRequirement.update({ where: { id: '' }, data: { atomId: '' }, select: { id: true } }).execute(); +const updated = await db.repositoryEvent.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformResourcesResolvedRequirement.delete({ where: { id: '' } }).execute(); +const deleted = await db.repositoryEvent.delete({ where: { id: '' } }).execute(); ``` -### `db.platformWebhookEndpoint` +### `db.repositoryRequiredCheck` -CRUD operations for PlatformWebhookEndpoint records. +CRUD operations for RepositoryRequiredCheck records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `active` | Boolean | Yes | | `createdAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `functionDefinitionId` | UUID | Yes | -| `host` | String | Yes | +| `databaseId` | UUID | Yes | | `id` | UUID | No | -| `namespaceId` | UUID | Yes | -| `path` | String | Yes | -| `provider` | String | Yes | -| `replayWindowSeconds` | Int | Yes | -| `signingSecretName` | String | Yes | +| `repositoryId` | UUID | Yes | | `updatedAt` | Datetime | No | -| `updatedBy` | UUID | Yes | +| `workflowId` | UUID | Yes | **Operations:** ```typescript -// List all platformWebhookEndpoint records -const items = await db.platformWebhookEndpoint.findMany({ select: { active: true, createdAt: true, createdBy: true, functionDefinitionId: true, host: true, id: true, namespaceId: true, path: true, provider: true, replayWindowSeconds: true, signingSecretName: true, updatedAt: true, updatedBy: true } }).execute(); +// List all repositoryRequiredCheck records +const items = await db.repositoryRequiredCheck.findMany({ select: { createdAt: true, databaseId: true, id: true, repositoryId: true, updatedAt: true, workflowId: true } }).execute(); // Get one by id -const item = await db.platformWebhookEndpoint.findOne({ id: '', select: { active: true, createdAt: true, createdBy: true, functionDefinitionId: true, host: true, id: true, namespaceId: true, path: true, provider: true, replayWindowSeconds: true, signingSecretName: true, updatedAt: true, updatedBy: true } }).execute(); +const item = await db.repositoryRequiredCheck.findOne({ id: '', select: { createdAt: true, databaseId: true, id: true, repositoryId: true, updatedAt: true, workflowId: true } }).execute(); // Create -const created = await db.platformWebhookEndpoint.create({ data: { active: '', createdBy: '', functionDefinitionId: '', host: '', namespaceId: '', path: '', provider: '', replayWindowSeconds: '', signingSecretName: '', updatedBy: '' }, select: { id: true } }).execute(); +const created = await db.repositoryRequiredCheck.create({ data: { databaseId: '', repositoryId: '', workflowId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformWebhookEndpoint.update({ where: { id: '' }, data: { active: '' }, select: { id: true } }).execute(); +const updated = await db.repositoryRequiredCheck.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformWebhookEndpoint.delete({ where: { id: '' } }).execute(); +const deleted = await db.repositoryRequiredCheck.delete({ where: { id: '' } }).execute(); ``` -### `db.platformWebhookEvent` +### `db.repositoryWorkflow` -CRUD operations for PlatformWebhookEvent records. +CRUD operations for RepositoryWorkflow records. **Fields:** | Field | Type | Editable | |-------|------|----------| +| `cancelInProgress` | Boolean | Yes | +| `concurrencyKey` | String | Yes | | `createdAt` | Datetime | No | -| `endpointId` | UUID | Yes | -| `error` | String | Yes | -| `externalEventId` | String | Yes | +| `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `eventType` | String | Yes | +| `graphId` | UUID | Yes | | `id` | UUID | No | -| `invocationCreatedAt` | Datetime | Yes | -| `invocationId` | UUID | Yes | -| `payload` | JSON | Yes | -| `provider` | String | Yes | -| `providerTimestamp` | Datetime | Yes | -| `status` | String | Yes | +| `inputs` | JSON | Yes | +| `isEnabled` | Boolean | Yes | +| `name` | String | Yes | +| `refPattern` | String | Yes | +| `repositoryId` | UUID | Yes | +| `requiredSecrets` | String | Yes | +| `slug` | String | Yes | | `updatedAt` | Datetime | No | +| `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | **Operations:** ```typescript -// List all platformWebhookEvent records -const items = await db.platformWebhookEvent.findMany({ select: { createdAt: true, endpointId: true, error: true, externalEventId: true, id: true, invocationCreatedAt: true, invocationId: true, payload: true, provider: true, providerTimestamp: true, status: true, updatedAt: true } }).execute(); +// List all repositoryWorkflow records +const items = await db.repositoryWorkflow.findMany({ select: { cancelInProgress: true, concurrencyKey: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, eventType: true, graphId: true, id: true, inputs: true, isEnabled: true, name: true, refPattern: true, repositoryId: true, requiredSecrets: true, slug: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.platformWebhookEvent.findOne({ id: '', select: { createdAt: true, endpointId: true, error: true, externalEventId: true, id: true, invocationCreatedAt: true, invocationId: true, payload: true, provider: true, providerTimestamp: true, status: true, updatedAt: true } }).execute(); +const item = await db.repositoryWorkflow.findOne({ id: '', select: { cancelInProgress: true, concurrencyKey: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, eventType: true, graphId: true, id: true, inputs: true, isEnabled: true, name: true, refPattern: true, repositoryId: true, requiredSecrets: true, slug: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.platformWebhookEvent.create({ data: { endpointId: '', error: '', externalEventId: '', invocationCreatedAt: '', invocationId: '', payload: '', provider: '', providerTimestamp: '', status: '' }, select: { id: true } }).execute(); +const created = await db.repositoryWorkflow.create({ data: { cancelInProgress: '', concurrencyKey: '', createdBy: '', createdByPrincipal: '', databaseId: '', eventType: '', graphId: '', inputs: '', isEnabled: '', name: '', refPattern: '', repositoryId: '', requiredSecrets: '', slug: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformWebhookEvent.update({ where: { id: '' }, data: { endpointId: '' }, select: { id: true } }).execute(); +const updated = await db.repositoryWorkflow.update({ where: { id: '' }, data: { cancelInProgress: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformWebhookEvent.delete({ where: { id: '' } }).execute(); +const deleted = await db.repositoryWorkflow.delete({ where: { id: '' } }).execute(); ``` ### `db.resource` @@ -2357,9 +4608,11 @@ CRUD operations for Resource records. | `cpuRequestMillicores` | BigInt | Yes | | `createdAt` | Datetime | No | | `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | | `databaseId` | UUID | Yes | | `errorCount` | Int | Yes | | `id` | UUID | No | +| `imageRef` | String | Yes | | `installationId` | UUID | Yes | | `integrations` | String | Yes | | `kind` | String | Yes | @@ -2381,20 +4634,22 @@ CRUD operations for Resource records. | `statusObserved` | JSON | Yes | | `storageClass` | String | Yes | | `storageSizeBytes` | BigInt | Yes | +| `storageTotalBytes` | BigInt | Yes | | `updatedAt` | Datetime | No | | `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | **Operations:** ```typescript // List all resource records -const items = await db.resource.findMany({ select: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, databaseId: true, errorCount: true, id: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusObserved: true, storageClass: true, storageSizeBytes: true, updatedAt: true, updatedBy: true } }).execute(); +const items = await db.resource.findMany({ select: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.resource.findOne({ id: '', select: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, databaseId: true, errorCount: true, id: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusObserved: true, storageClass: true, storageSizeBytes: true, updatedAt: true, updatedBy: true } }).execute(); +const item = await db.resource.findOne({ id: '', select: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.resource.create({ data: { annotations: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', databaseId: '', errorCount: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusObserved: '', storageClass: '', storageSizeBytes: '', updatedBy: '' }, select: { id: true } }).execute(); +const created = await db.resource.create({ data: { annotations: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', createdByPrincipal: '', databaseId: '', errorCount: '', imageRef: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusObserved: '', storageClass: '', storageSizeBytes: '', storageTotalBytes: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update const updated = await db.resource.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); @@ -2424,18 +4679,19 @@ CRUD operations for ResourceDeclaredCapacity records. | `source` | String | Yes | | `sourceId` | UUID | Yes | | `storageSizeBytes` | BigInt | Yes | +| `storageTotalBytes` | BigInt | Yes | **Operations:** ```typescript // List all resourceDeclaredCapacity records -const items = await db.resourceDeclaredCapacity.findMany({ select: { cpuLimitMillicores: true, cpuRequestMillicores: true, installationId: true, isTransient: true, kind: true, memoryLimitBytes: true, memoryRequestBytes: true, namespaceId: true, podCountMax: true, podCountMin: true, source: true, sourceId: true, storageSizeBytes: true } }).execute(); +const items = await db.resourceDeclaredCapacity.findMany({ select: { cpuLimitMillicores: true, cpuRequestMillicores: true, installationId: true, isTransient: true, kind: true, memoryLimitBytes: true, memoryRequestBytes: true, namespaceId: true, podCountMax: true, podCountMin: true, source: true, sourceId: true, storageSizeBytes: true, storageTotalBytes: true } }).execute(); // Get one by id -const item = await db.resourceDeclaredCapacity.findOne({ id: '', select: { cpuLimitMillicores: true, cpuRequestMillicores: true, installationId: true, isTransient: true, kind: true, memoryLimitBytes: true, memoryRequestBytes: true, namespaceId: true, podCountMax: true, podCountMin: true, source: true, sourceId: true, storageSizeBytes: true } }).execute(); +const item = await db.resourceDeclaredCapacity.findOne({ id: '', select: { cpuLimitMillicores: true, cpuRequestMillicores: true, installationId: true, isTransient: true, kind: true, memoryLimitBytes: true, memoryRequestBytes: true, namespaceId: true, podCountMax: true, podCountMin: true, source: true, sourceId: true, storageSizeBytes: true, storageTotalBytes: true } }).execute(); // Create -const created = await db.resourceDeclaredCapacity.create({ data: { cpuLimitMillicores: '', cpuRequestMillicores: '', installationId: '', isTransient: '', kind: '', memoryLimitBytes: '', memoryRequestBytes: '', namespaceId: '', podCountMax: '', podCountMin: '', source: '', sourceId: '', storageSizeBytes: '' }, select: { id: true } }).execute(); +const created = await db.resourceDeclaredCapacity.create({ data: { cpuLimitMillicores: '', cpuRequestMillicores: '', installationId: '', isTransient: '', kind: '', memoryLimitBytes: '', memoryRequestBytes: '', namespaceId: '', podCountMax: '', podCountMin: '', source: '', sourceId: '', storageSizeBytes: '', storageTotalBytes: '' }, select: { id: true } }).execute(); // Update const updated = await db.resourceDeclaredCapacity.update({ where: { id: '' }, data: { cpuLimitMillicores: '' }, select: { id: true } }).execute(); @@ -2455,6 +4711,7 @@ CRUD operations for ResourceDefinition records. | `annotations` | JSON | Yes | | `createdAt` | Datetime | No | | `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | | `databaseId` | UUID | Yes | | `defaultSpec` | JSON | Yes | | `description` | String | Yes | @@ -2471,18 +4728,19 @@ CRUD operations for ResourceDefinition records. | `stepUpMinAge` | Interval | Yes | | `updatedAt` | Datetime | No | | `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | **Operations:** ```typescript // List all resourceDefinition records -const items = await db.resourceDefinition.findMany({ select: { annotations: true, createdAt: true, createdBy: true, databaseId: true, defaultSpec: true, description: true, id: true, integrations: true, kind: true, labels: true, name: true, namespaceId: true, paramsSchema: true, requiredConfigs: true, requiredSecrets: true, slug: true, stepUpMinAge: true, updatedAt: true, updatedBy: true } }).execute(); +const items = await db.resourceDefinition.findMany({ select: { annotations: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, defaultSpec: true, description: true, id: true, integrations: true, kind: true, labels: true, name: true, namespaceId: true, paramsSchema: true, requiredConfigs: true, requiredSecrets: true, slug: true, stepUpMinAge: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.resourceDefinition.findOne({ id: '', select: { annotations: true, createdAt: true, createdBy: true, databaseId: true, defaultSpec: true, description: true, id: true, integrations: true, kind: true, labels: true, name: true, namespaceId: true, paramsSchema: true, requiredConfigs: true, requiredSecrets: true, slug: true, stepUpMinAge: true, updatedAt: true, updatedBy: true } }).execute(); +const item = await db.resourceDefinition.findOne({ id: '', select: { annotations: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, defaultSpec: true, description: true, id: true, integrations: true, kind: true, labels: true, name: true, namespaceId: true, paramsSchema: true, requiredConfigs: true, requiredSecrets: true, slug: true, stepUpMinAge: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.resourceDefinition.create({ data: { annotations: '', createdBy: '', databaseId: '', defaultSpec: '', description: '', integrations: '', kind: '', labels: '', name: '', namespaceId: '', paramsSchema: '', requiredConfigs: '', requiredSecrets: '', slug: '', stepUpMinAge: '', updatedBy: '' }, select: { id: true } }).execute(); +const created = await db.resourceDefinition.create({ data: { annotations: '', createdBy: '', createdByPrincipal: '', databaseId: '', defaultSpec: '', description: '', integrations: '', kind: '', labels: '', name: '', namespaceId: '', paramsSchema: '', requiredConfigs: '', requiredSecrets: '', slug: '', stepUpMinAge: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update const updated = await db.resourceDefinition.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); @@ -2538,35 +4796,83 @@ CRUD operations for ResourceInstallation records. | `commitId` | UUID | Yes | | `createdAt` | Datetime | No | | `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | | `databaseId` | UUID | Yes | | `id` | UUID | No | | `name` | String | Yes | | `namespaceId` | UUID | Yes | -| `params` | JSON | Yes | -| `revision` | Int | Yes | +| `params` | JSON | Yes | +| `revision` | Int | Yes | +| `slug` | String | Yes | +| `status` | String | Yes | +| `storeId` | UUID | Yes | +| `updatedAt` | Datetime | No | +| `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | + +**Operations:** + +```typescript +// List all resourceInstallation records +const items = await db.resourceInstallation.findMany({ select: { commitId: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, id: true, name: true, namespaceId: true, params: true, revision: true, slug: true, status: true, storeId: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Get one by id +const item = await db.resourceInstallation.findOne({ id: '', select: { commitId: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, id: true, name: true, namespaceId: true, params: true, revision: true, slug: true, status: true, storeId: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Create +const created = await db.resourceInstallation.create({ data: { commitId: '', createdBy: '', createdByPrincipal: '', databaseId: '', name: '', namespaceId: '', params: '', revision: '', slug: '', status: '', storeId: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.resourceInstallation.update({ where: { id: '' }, data: { commitId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.resourceInstallation.delete({ where: { id: '' } }).execute(); +``` + +### `db.resourceObservedStorage` + +CRUD operations for ResourceObservedStorage records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `capacity` | String | Yes | +| `capacityBytes` | BigInt | Yes | +| `claimName` | String | Yes | +| `declaredStorageClass` | String | Yes | +| `declaredStorageSizeBytes` | BigInt | Yes | +| `declaredStorageTotalBytes` | BigInt | Yes | +| `installationId` | UUID | Yes | +| `isBound` | Boolean | Yes | +| `kind` | String | Yes | +| `namespaceId` | UUID | Yes | +| `phase` | String | Yes | +| `requested` | String | Yes | +| `requestedBytes` | BigInt | Yes | +| `resourceId` | UUID | Yes | +| `resourceStatus` | String | Yes | | `slug` | String | Yes | -| `status` | String | Yes | -| `storeId` | UUID | Yes | -| `updatedAt` | Datetime | No | -| `updatedBy` | UUID | Yes | +| `storageClass` | String | Yes | +| `storageName` | String | Yes | **Operations:** ```typescript -// List all resourceInstallation records -const items = await db.resourceInstallation.findMany({ select: { commitId: true, createdAt: true, createdBy: true, databaseId: true, id: true, name: true, namespaceId: true, params: true, revision: true, slug: true, status: true, storeId: true, updatedAt: true, updatedBy: true } }).execute(); +// List all resourceObservedStorage records +const items = await db.resourceObservedStorage.findMany({ select: { capacity: true, capacityBytes: true, claimName: true, declaredStorageClass: true, declaredStorageSizeBytes: true, declaredStorageTotalBytes: true, installationId: true, isBound: true, kind: true, namespaceId: true, phase: true, requested: true, requestedBytes: true, resourceId: true, resourceStatus: true, slug: true, storageClass: true, storageName: true } }).execute(); // Get one by id -const item = await db.resourceInstallation.findOne({ id: '', select: { commitId: true, createdAt: true, createdBy: true, databaseId: true, id: true, name: true, namespaceId: true, params: true, revision: true, slug: true, status: true, storeId: true, updatedAt: true, updatedBy: true } }).execute(); +const item = await db.resourceObservedStorage.findOne({ id: '', select: { capacity: true, capacityBytes: true, claimName: true, declaredStorageClass: true, declaredStorageSizeBytes: true, declaredStorageTotalBytes: true, installationId: true, isBound: true, kind: true, namespaceId: true, phase: true, requested: true, requestedBytes: true, resourceId: true, resourceStatus: true, slug: true, storageClass: true, storageName: true } }).execute(); // Create -const created = await db.resourceInstallation.create({ data: { commitId: '', createdBy: '', databaseId: '', name: '', namespaceId: '', params: '', revision: '', slug: '', status: '', storeId: '', updatedBy: '' }, select: { id: true } }).execute(); +const created = await db.resourceObservedStorage.create({ data: { capacity: '', capacityBytes: '', claimName: '', declaredStorageClass: '', declaredStorageSizeBytes: '', declaredStorageTotalBytes: '', installationId: '', isBound: '', kind: '', namespaceId: '', phase: '', requested: '', requestedBytes: '', resourceId: '', resourceStatus: '', slug: '', storageClass: '', storageName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.resourceInstallation.update({ where: { id: '' }, data: { commitId: '' }, select: { id: true } }).execute(); +const updated = await db.resourceObservedStorage.update({ where: { id: '' }, data: { capacity: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.resourceInstallation.delete({ where: { id: '' } }).execute(); +const deleted = await db.resourceObservedStorage.delete({ where: { id: '' } }).execute(); ``` ### `db.resourceStatusCheck` @@ -2741,9 +5047,11 @@ CRUD operations for ResourcesHealth records. | `cpuRequestMillicores` | BigInt | Yes | | `createdAt` | Datetime | No | | `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | | `databaseId` | UUID | Yes | | `errorCount` | Int | Yes | | `id` | UUID | No | +| `imageRef` | String | Yes | | `installationId` | UUID | Yes | | `integrations` | String | Yes | | `kind` | String | Yes | @@ -2766,20 +5074,22 @@ CRUD operations for ResourcesHealth records. | `statusObserved` | JSON | Yes | | `storageClass` | String | Yes | | `storageSizeBytes` | BigInt | Yes | +| `storageTotalBytes` | BigInt | Yes | | `updatedAt` | Datetime | No | | `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | **Operations:** ```typescript // List all resourcesHealth records -const items = await db.resourcesHealth.findMany({ select: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, databaseId: true, errorCount: true, id: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusDetail: true, statusObserved: true, storageClass: true, storageSizeBytes: true, updatedAt: true, updatedBy: true } }).execute(); +const items = await db.resourcesHealth.findMany({ select: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusDetail: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.resourcesHealth.findOne({ id: '', select: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, databaseId: true, errorCount: true, id: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusDetail: true, statusObserved: true, storageClass: true, storageSizeBytes: true, updatedAt: true, updatedBy: true } }).execute(); +const item = await db.resourcesHealth.findOne({ id: '', select: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusDetail: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.resourcesHealth.create({ data: { annotations: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', databaseId: '', errorCount: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusDetail: '', statusObserved: '', storageClass: '', storageSizeBytes: '', updatedBy: '' }, select: { id: true } }).execute(); +const created = await db.resourcesHealth.create({ data: { annotations: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', createdByPrincipal: '', databaseId: '', errorCount: '', imageRef: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusDetail: '', statusObserved: '', storageClass: '', storageSizeBytes: '', storageTotalBytes: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update const updated = await db.resourcesHealth.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); @@ -2873,6 +5183,7 @@ CRUD operations for WebhookEndpoint records. | `active` | Boolean | Yes | | `createdAt` | Datetime | No | | `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | | `databaseId` | UUID | Yes | | `functionDefinitionId` | UUID | Yes | | `host` | String | Yes | @@ -2884,18 +5195,19 @@ CRUD operations for WebhookEndpoint records. | `signingSecretName` | String | Yes | | `updatedAt` | Datetime | No | | `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | **Operations:** ```typescript // List all webhookEndpoint records -const items = await db.webhookEndpoint.findMany({ select: { active: true, createdAt: true, createdBy: true, databaseId: true, functionDefinitionId: true, host: true, id: true, namespaceId: true, path: true, provider: true, replayWindowSeconds: true, signingSecretName: true, updatedAt: true, updatedBy: true } }).execute(); +const items = await db.webhookEndpoint.findMany({ select: { active: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, functionDefinitionId: true, host: true, id: true, namespaceId: true, path: true, provider: true, replayWindowSeconds: true, signingSecretName: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.webhookEndpoint.findOne({ id: '', select: { active: true, createdAt: true, createdBy: true, databaseId: true, functionDefinitionId: true, host: true, id: true, namespaceId: true, path: true, provider: true, replayWindowSeconds: true, signingSecretName: true, updatedAt: true, updatedBy: true } }).execute(); +const item = await db.webhookEndpoint.findOne({ id: '', select: { active: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, functionDefinitionId: true, host: true, id: true, namespaceId: true, path: true, provider: true, replayWindowSeconds: true, signingSecretName: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.webhookEndpoint.create({ data: { active: '', createdBy: '', databaseId: '', functionDefinitionId: '', host: '', namespaceId: '', path: '', provider: '', replayWindowSeconds: '', signingSecretName: '', updatedBy: '' }, select: { id: true } }).execute(); +const created = await db.webhookEndpoint.create({ data: { active: '', createdBy: '', createdByPrincipal: '', databaseId: '', functionDefinitionId: '', host: '', namespaceId: '', path: '', provider: '', replayWindowSeconds: '', signingSecretName: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update const updated = await db.webhookEndpoint.update({ where: { id: '' }, data: { active: '' }, select: { id: true } }).execute(); @@ -2947,6 +5259,21 @@ const deleted = await db.webhookEvent.delete({ where: { id: '' } }).execut ## Custom Operations +### `db.query.databaseReadFunctionGraph` + +databaseReadFunctionGraph + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `graphId` | UUID | + +```typescript +const result = await db.query.databaseReadFunctionGraph({ graphId: '' }).execute(); +``` + ### `db.query.readFunctionGraph` readFunctionGraph @@ -3022,6 +5349,21 @@ addNodeAndSave const result = await db.mutation.addNodeAndSave({ input: '' }).execute(); ``` +### `db.mutation.approveNode` + +approveNode + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | ApproveNodeInput (required) | + +```typescript +const result = await db.mutation.approveNode({ input: { approved: '', executionId: '', feedback: '', nodeName: '' } }).execute(); +``` + ### `db.mutation.copyGraph` copyGraph @@ -3037,6 +5379,291 @@ copyGraph const result = await db.mutation.copyGraph({ input: { graphId: '', name: '', scopeId: '' } }).execute(); ``` +### `db.mutation.databaseAddEdge` + +databaseAddEdge + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | DatabaseAddEdgeInput (required) | + +```typescript +const result = await db.mutation.databaseAddEdge({ input: '' }).execute(); +``` + +### `db.mutation.databaseAddEdgeAndSave` + +databaseAddEdgeAndSave + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | DatabaseAddEdgeAndSaveInput (required) | + +```typescript +const result = await db.mutation.databaseAddEdgeAndSave({ input: '' }).execute(); +``` + +### `db.mutation.databaseAddNode` + +databaseAddNode + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | DatabaseAddNodeInput (required) | + +```typescript +const result = await db.mutation.databaseAddNode({ input: '' }).execute(); +``` + +### `db.mutation.databaseAddNodeAndSave` + +databaseAddNodeAndSave + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | DatabaseAddNodeAndSaveInput (required) | + +```typescript +const result = await db.mutation.databaseAddNodeAndSave({ input: '' }).execute(); +``` + +### `db.mutation.databaseApproveNode` + +databaseApproveNode + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | DatabaseApproveNodeInput (required) | + +```typescript +const result = await db.mutation.databaseApproveNode({ input: { approved: '', executionId: '', feedback: '', nodeName: '' } }).execute(); +``` + +### `db.mutation.databaseCopyGraph` + +databaseCopyGraph + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | DatabaseCopyGraphInput (required) | + +```typescript +const result = await db.mutation.databaseCopyGraph({ input: { databaseId: '', graphId: '', name: '' } }).execute(); +``` + +### `db.mutation.databaseCreateFunctionGraph` + +databaseCreateFunctionGraph + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | DatabaseCreateFunctionGraphInput (required) | + +```typescript +const result = await db.mutation.databaseCreateFunctionGraph({ input: '' }).execute(); +``` + +### `db.mutation.databaseGraphInitEmptyRepo` + +databaseGraphInitEmptyRepo + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | DatabaseGraphInitEmptyRepoInput (required) | + +```typescript +const result = await db.mutation.databaseGraphInitEmptyRepo({ input: { sId: '', storeId: '' } }).execute(); +``` + +### `db.mutation.databaseGraphInsertNodeAtPath` + +databaseGraphInsertNodeAtPath + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | DatabaseGraphInsertNodeAtPathInput (required) | + +```typescript +const result = await db.mutation.databaseGraphInsertNodeAtPath({ input: '' }).execute(); +``` + +### `db.mutation.databaseGraphInsertNodesAtPaths` + +databaseGraphInsertNodesAtPaths + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | DatabaseGraphInsertNodesAtPathsInput (required) | + +```typescript +const result = await db.mutation.databaseGraphInsertNodesAtPaths({ input: '' }).execute(); +``` + +### `db.mutation.databaseGraphSetAndCommit` + +databaseGraphSetAndCommit + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | DatabaseGraphSetAndCommitInput (required) | + +```typescript +const result = await db.mutation.databaseGraphSetAndCommit({ input: '' }).execute(); +``` + +### `db.mutation.databaseGraphSetDataAtPath` + +databaseGraphSetDataAtPath + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | DatabaseGraphSetDataAtPathInput (required) | + +```typescript +const result = await db.mutation.databaseGraphSetDataAtPath({ input: { data: '', path: '', root: '', sId: '' } }).execute(); +``` + +### `db.mutation.databaseGraphSetManyAndCommit` + +databaseGraphSetManyAndCommit + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | DatabaseGraphSetManyAndCommitInput (required) | + +```typescript +const result = await db.mutation.databaseGraphSetManyAndCommit({ input: { entries: '', message: '', refname: '', sId: '', storeId: '' } }).execute(); +``` + +### `db.mutation.databaseImportDefinitions` + +databaseImportDefinitions + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | DatabaseImportDefinitionsInput (required) | + +```typescript +const result = await db.mutation.databaseImportDefinitions({ input: { contexts: '', graphId: '', sourceCommitId: '', sourceScopeId: '' } }).execute(); +``` + +### `db.mutation.databaseImportGraphJson` + +databaseImportGraphJson + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | DatabaseImportGraphJsonInput (required) | + +```typescript +const result = await db.mutation.databaseImportGraphJson({ input: '' }).execute(); +``` + +### `db.mutation.databaseSaveGraph` + +databaseSaveGraph + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | DatabaseSaveGraphInput (required) | + +```typescript +const result = await db.mutation.databaseSaveGraph({ input: { graphId: '', message: '', rootHash: '' } }).execute(); +``` + +### `db.mutation.databaseStartExecution` + +databaseStartExecution + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | DatabaseStartExecutionInput (required) | + +```typescript +const result = await db.mutation.databaseStartExecution({ input: '' }).execute(); +``` + +### `db.mutation.databaseValidateFunctionGraph` + +databaseValidateFunctionGraph + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | DatabaseValidateFunctionGraphInput (required) | + +```typescript +const result = await db.mutation.databaseValidateFunctionGraph({ input: { graphId: '' } }).execute(); +``` + +### `db.mutation.functionInvocationsCreateSync` + +functionInvocationsCreateSync + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | FunctionInvocationsCreateSyncInput (required) | + +```typescript +const result = await db.mutation.functionInvocationsCreateSync({ input: { entityId: '', payload: '', provenance: '', routeBindingId: '', taskIdentifier: '' } }).execute(); +``` + ### `db.mutation.importDefinitions` importDefinitions @@ -3202,6 +5829,21 @@ insertNodesAtPaths const result = await db.mutation.insertNodesAtPaths({ input: '' }).execute(); ``` +### `db.mutation.platformFunctionInvocationsCreateSync` + +platformFunctionInvocationsCreateSync + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | PlatformFunctionInvocationsCreateSyncInput (required) | + +```typescript +const result = await db.mutation.platformFunctionInvocationsCreateSync({ input: { entityId: '', payload: '', provenance: '', routeBindingId: '', taskIdentifier: '' } }).execute(); +``` + ### `db.mutation.platformInfraInitEmptyRepo` platformInfraInitEmptyRepo @@ -3354,10 +5996,11 @@ const result = await db.mutation.platformResourceInstallationsUpgrade({ input: { ### `db.mutation.provisionBucket` -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. +Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. - **Type:** mutation - **Arguments:** diff --git a/sdk/constructive-react/src/compute/orm/index.ts b/sdk/constructive-react/src/compute/orm/index.ts index 62973ed4f2..49ca8f7c16 100644 --- a/sdk/constructive-react/src/compute/orm/index.ts +++ b/sdk/constructive-react/src/compute/orm/index.ts @@ -5,7 +5,19 @@ */ import { OrmClient } from './client'; import type { OrmClientConfig } from './client'; +import { BuildModel } from './models/build'; +import { BuildStepModel } from './models/buildStep'; +import { BuilderBindingModel } from './models/builderBinding'; import { ContentPresetModel } from './models/contentPreset'; +import { DatabaseFunctionGraphModel } from './models/databaseFunctionGraph'; +import { DatabaseFunctionGraphExecutionModel } from './models/databaseFunctionGraphExecution'; +import { DatabaseFunctionGraphExecutionNodeStateModel } from './models/databaseFunctionGraphExecutionNodeState'; +import { DatabaseFunctionGraphExecutionOutputModel } from './models/databaseFunctionGraphExecutionOutput'; +import { DatabaseGraphCommitModel } from './models/databaseGraphCommit'; +import { DatabaseGraphGetAllTreeNodesRecordModel } from './models/databaseGraphGetAllTreeNodesRecord'; +import { DatabaseGraphObjectModel } from './models/databaseGraphObject'; +import { DatabaseGraphRefModel } from './models/databaseGraphRef'; +import { DatabaseGraphStoreModel } from './models/databaseGraphStore'; import { DbPresetModel } from './models/dbPreset'; import { FunctionApiBindingModel } from './models/functionApiBinding'; import { FunctionCapabilityBindingModel } from './models/functionCapabilityBinding'; @@ -24,6 +36,8 @@ import { FunctionGraphStoreModel } from './models/functionGraphStore'; import { FunctionInvocationAttemptModel } from './models/functionInvocationAttempt'; import { FunctionInvocationModel } from './models/functionInvocation'; import { GetAllTreeNodesRecordModel } from './models/getAllTreeNodesRecord'; +import { ImageModel } from './models/image'; +import { ImageGrantModel } from './models/imageGrant'; import { InfraCommitModel } from './models/infraCommit'; import { InfraGetAllTreeNodesRecordModel } from './models/infraGetAllTreeNodesRecord'; import { InfraObjectModel } from './models/infraObject'; @@ -32,6 +46,9 @@ import { InfraStoreModel } from './models/infraStore'; import { IntegrationProviderModel } from './models/integrationProvider'; import { NamespaceModel } from './models/namespace'; import { NamespaceEventModel } from './models/namespaceEvent'; +import { PlatformBuildModel } from './models/platformBuild'; +import { PlatformBuildStepModel } from './models/platformBuildStep'; +import { PlatformBuilderBindingModel } from './models/platformBuilderBinding'; import { PlatformFunctionApiBindingModel } from './models/platformFunctionApiBinding'; import { PlatformFunctionCapabilityBindingModel } from './models/platformFunctionCapabilityBinding'; import { PlatformFunctionDefinitionModel } from './models/platformFunctionDefinition'; @@ -40,18 +57,36 @@ import { PlatformFunctionDeploymentEventModel } from './models/platformFunctionD import { PlatformFunctionExecutionLogModel } from './models/platformFunctionExecutionLog'; import { PlatformFunctionInvocationAttemptModel } from './models/platformFunctionInvocationAttempt'; import { PlatformFunctionInvocationModel } from './models/platformFunctionInvocation'; +import { PlatformImageModel } from './models/platformImage'; +import { PlatformImageGrantModel } from './models/platformImageGrant'; import { PlatformInfraCommitModel } from './models/platformInfraCommit'; import { PlatformInfraGetAllTreeNodesRecordModel } from './models/platformInfraGetAllTreeNodesRecord'; import { PlatformInfraObjectModel } from './models/platformInfraObject'; import { PlatformInfraRefModel } from './models/platformInfraRef'; import { PlatformInfraStoreModel } from './models/platformInfraStore'; +import { PlatformK8sResourceKindModel } from './models/platformK8sResourceKind'; +import { PlatformK8sSpecRuleModel } from './models/platformK8sSpecRule'; import { PlatformNamespaceModel } from './models/platformNamespace'; import { PlatformNamespaceEventModel } from './models/platformNamespaceEvent'; +import { PlatformProposalCommentModel } from './models/platformProposalComment'; +import { PlatformProposalModel } from './models/platformProposal'; +import { PlatformProposalFileViewModel } from './models/platformProposalFileView'; +import { PlatformProposalReactionModel } from './models/platformProposalReaction'; +import { PlatformProposalReviewModel } from './models/platformProposalReview'; +import { PlatformProposalsChunkModel } from './models/platformProposalsChunk'; +import { PlatformRegistryBindingModel } from './models/platformRegistryBinding'; +import { PlatformRegistryModel } from './models/platformRegistry'; +import { PlatformRegistryGrantModel } from './models/platformRegistryGrant'; +import { PlatformRepositoryModel } from './models/platformRepository'; +import { PlatformRepositoryEventModel } from './models/platformRepositoryEvent'; +import { PlatformRepositoryRequiredCheckModel } from './models/platformRepositoryRequiredCheck'; +import { PlatformRepositoryWorkflowModel } from './models/platformRepositoryWorkflow'; import { PlatformResourceModel } from './models/platformResource'; import { PlatformResourceDeclaredCapacityModel } from './models/platformResourceDeclaredCapacity'; import { PlatformResourceDefinitionModel } from './models/platformResourceDefinition'; import { PlatformResourceEventModel } from './models/platformResourceEvent'; import { PlatformResourceInstallationModel } from './models/platformResourceInstallation'; +import { PlatformResourceObservedStorageModel } from './models/platformResourceObservedStorage'; import { PlatformResourceStatusCheckModel } from './models/platformResourceStatusCheck'; import { PlatformResourceUsageLogModel } from './models/platformResourceUsageLog'; import { PlatformResourceUsageSummaryModel } from './models/platformResourceUsageSummary'; @@ -61,11 +96,25 @@ import { PlatformResourcesRequirementsStateModel } from './models/platformResour import { PlatformResourcesResolvedRequirementModel } from './models/platformResourcesResolvedRequirement'; import { PlatformWebhookEndpointModel } from './models/platformWebhookEndpoint'; import { PlatformWebhookEventModel } from './models/platformWebhookEvent'; +import { ProposalCommentModel } from './models/proposalComment'; +import { ProposalModel } from './models/proposal'; +import { ProposalFileViewModel } from './models/proposalFileView'; +import { ProposalReactionModel } from './models/proposalReaction'; +import { ProposalReviewModel } from './models/proposalReview'; +import { ProposalsChunkModel } from './models/proposalsChunk'; +import { RegistryBindingModel } from './models/registryBinding'; +import { RegistryModel } from './models/registry'; +import { RegistryGrantModel } from './models/registryGrant'; +import { RepositoryModel } from './models/repository'; +import { RepositoryEventModel } from './models/repositoryEvent'; +import { RepositoryRequiredCheckModel } from './models/repositoryRequiredCheck'; +import { RepositoryWorkflowModel } from './models/repositoryWorkflow'; import { ResourceModel } from './models/resource'; import { ResourceDeclaredCapacityModel } from './models/resourceDeclaredCapacity'; import { ResourceDefinitionModel } from './models/resourceDefinition'; import { ResourceEventModel } from './models/resourceEvent'; import { ResourceInstallationModel } from './models/resourceInstallation'; +import { ResourceObservedStorageModel } from './models/resourceObservedStorage'; import { ResourceStatusCheckModel } from './models/resourceStatusCheck'; import { ResourceUsageLogModel } from './models/resourceUsageLog'; import { ResourceUsageSummaryModel } from './models/resourceUsageSummary'; @@ -110,7 +159,21 @@ export { createMutationOperations } from './mutation'; export function createClient(config: OrmClientConfig) { const client = new OrmClient(config); return { + build: new BuildModel(client), + buildStep: new BuildStepModel(client), + builderBinding: new BuilderBindingModel(client), contentPreset: new ContentPresetModel(client), + databaseFunctionGraph: new DatabaseFunctionGraphModel(client), + databaseFunctionGraphExecution: new DatabaseFunctionGraphExecutionModel(client), + databaseFunctionGraphExecutionNodeState: new DatabaseFunctionGraphExecutionNodeStateModel( + client + ), + databaseFunctionGraphExecutionOutput: new DatabaseFunctionGraphExecutionOutputModel(client), + databaseGraphCommit: new DatabaseGraphCommitModel(client), + databaseGraphGetAllTreeNodesRecord: new DatabaseGraphGetAllTreeNodesRecordModel(client), + databaseGraphObject: new DatabaseGraphObjectModel(client), + databaseGraphRef: new DatabaseGraphRefModel(client), + databaseGraphStore: new DatabaseGraphStoreModel(client), dbPreset: new DbPresetModel(client), functionApiBinding: new FunctionApiBindingModel(client), functionCapabilityBinding: new FunctionCapabilityBindingModel(client), @@ -129,6 +192,8 @@ export function createClient(config: OrmClientConfig) { functionInvocationAttempt: new FunctionInvocationAttemptModel(client), functionInvocation: new FunctionInvocationModel(client), getAllTreeNodesRecord: new GetAllTreeNodesRecordModel(client), + image: new ImageModel(client), + imageGrant: new ImageGrantModel(client), infraCommit: new InfraCommitModel(client), infraGetAllTreeNodesRecord: new InfraGetAllTreeNodesRecordModel(client), infraObject: new InfraObjectModel(client), @@ -137,6 +202,9 @@ export function createClient(config: OrmClientConfig) { integrationProvider: new IntegrationProviderModel(client), namespace: new NamespaceModel(client), namespaceEvent: new NamespaceEventModel(client), + platformBuild: new PlatformBuildModel(client), + platformBuildStep: new PlatformBuildStepModel(client), + platformBuilderBinding: new PlatformBuilderBindingModel(client), platformFunctionApiBinding: new PlatformFunctionApiBindingModel(client), platformFunctionCapabilityBinding: new PlatformFunctionCapabilityBindingModel(client), platformFunctionDefinition: new PlatformFunctionDefinitionModel(client), @@ -145,18 +213,36 @@ export function createClient(config: OrmClientConfig) { platformFunctionExecutionLog: new PlatformFunctionExecutionLogModel(client), platformFunctionInvocationAttempt: new PlatformFunctionInvocationAttemptModel(client), platformFunctionInvocation: new PlatformFunctionInvocationModel(client), + platformImage: new PlatformImageModel(client), + platformImageGrant: new PlatformImageGrantModel(client), platformInfraCommit: new PlatformInfraCommitModel(client), platformInfraGetAllTreeNodesRecord: new PlatformInfraGetAllTreeNodesRecordModel(client), platformInfraObject: new PlatformInfraObjectModel(client), platformInfraRef: new PlatformInfraRefModel(client), platformInfraStore: new PlatformInfraStoreModel(client), + platformK8sResourceKind: new PlatformK8sResourceKindModel(client), + platformK8sSpecRule: new PlatformK8sSpecRuleModel(client), platformNamespace: new PlatformNamespaceModel(client), platformNamespaceEvent: new PlatformNamespaceEventModel(client), + platformProposalComment: new PlatformProposalCommentModel(client), + platformProposal: new PlatformProposalModel(client), + platformProposalFileView: new PlatformProposalFileViewModel(client), + platformProposalReaction: new PlatformProposalReactionModel(client), + platformProposalReview: new PlatformProposalReviewModel(client), + platformProposalsChunk: new PlatformProposalsChunkModel(client), + platformRegistryBinding: new PlatformRegistryBindingModel(client), + platformRegistry: new PlatformRegistryModel(client), + platformRegistryGrant: new PlatformRegistryGrantModel(client), + platformRepository: new PlatformRepositoryModel(client), + platformRepositoryEvent: new PlatformRepositoryEventModel(client), + platformRepositoryRequiredCheck: new PlatformRepositoryRequiredCheckModel(client), + platformRepositoryWorkflow: new PlatformRepositoryWorkflowModel(client), platformResource: new PlatformResourceModel(client), platformResourceDeclaredCapacity: new PlatformResourceDeclaredCapacityModel(client), platformResourceDefinition: new PlatformResourceDefinitionModel(client), platformResourceEvent: new PlatformResourceEventModel(client), platformResourceInstallation: new PlatformResourceInstallationModel(client), + platformResourceObservedStorage: new PlatformResourceObservedStorageModel(client), platformResourceStatusCheck: new PlatformResourceStatusCheckModel(client), platformResourceUsageLog: new PlatformResourceUsageLogModel(client), platformResourceUsageSummary: new PlatformResourceUsageSummaryModel(client), @@ -166,11 +252,25 @@ export function createClient(config: OrmClientConfig) { platformResourcesResolvedRequirement: new PlatformResourcesResolvedRequirementModel(client), platformWebhookEndpoint: new PlatformWebhookEndpointModel(client), platformWebhookEvent: new PlatformWebhookEventModel(client), + proposalComment: new ProposalCommentModel(client), + proposal: new ProposalModel(client), + proposalFileView: new ProposalFileViewModel(client), + proposalReaction: new ProposalReactionModel(client), + proposalReview: new ProposalReviewModel(client), + proposalsChunk: new ProposalsChunkModel(client), + registryBinding: new RegistryBindingModel(client), + registry: new RegistryModel(client), + registryGrant: new RegistryGrantModel(client), + repository: new RepositoryModel(client), + repositoryEvent: new RepositoryEventModel(client), + repositoryRequiredCheck: new RepositoryRequiredCheckModel(client), + repositoryWorkflow: new RepositoryWorkflowModel(client), resource: new ResourceModel(client), resourceDeclaredCapacity: new ResourceDeclaredCapacityModel(client), resourceDefinition: new ResourceDefinitionModel(client), resourceEvent: new ResourceEventModel(client), resourceInstallation: new ResourceInstallationModel(client), + resourceObservedStorage: new ResourceObservedStorageModel(client), resourceStatusCheck: new ResourceStatusCheckModel(client), resourceUsageLog: new ResourceUsageLogModel(client), resourceUsageSummary: new ResourceUsageSummaryModel(client), diff --git a/sdk/constructive-react/src/compute/orm/input-types.ts b/sdk/constructive-react/src/compute/orm/input-types.ts index 566e3f81b1..93713ee6d9 100644 --- a/sdk/constructive-react/src/compute/orm/input-types.ts +++ b/sdk/constructive-react/src/compute/orm/input-types.ts @@ -233,9 +233,115 @@ export interface UUIDListFilter { // ============ Custom Scalar Types ============ export type Base64EncodedBinary = unknown; export type ConstructiveInternalTypeImage = unknown; +export type ConstructiveInternalTypeUpload = unknown; export type ResourceRequirement = unknown; -/** Seed-content preset catalog (limit defaults, trust ladders, ...) — merkle-versioned head over the infra store */ +/** One run of a repository workflow: its commit, its job, and what it produced */ // ============ Entity Types ============ +export interface Build { + /** Authenticated actor this build is attributed to; NULL only when no human actor was proven */ + actorId?: string | null; + /** Retry attempt number for this workflow, commit, and matrix shard */ + attempt?: number | null; + /** Commit this build built */ + commitSha?: string | null; + /** Verdict: NULL while pending/running, then success, failure, neutral, cancelled, skipped, timed_out, or action_required */ + conclusion?: string | null; + createdAt?: string | null; + createdByPrincipal?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; + /** Event that triggered this build (NULL for a manual build) */ + eventId?: string | null; + /** When the build reached a terminal status */ + finishedAt?: string | null; + id: string; + /** Image reference this build produced (registry host/repository:tag; NULL when the build produced no image) */ + imageRef?: string | null; + /** app_jobs row running this build */ + jobId?: string | null; + /** Build log object in storage; step rows slice it by byte range */ + logs?: ConstructiveInternalTypeUpload | null; + /** Matrix shard identity; NULL for a non-matrix build */ + matrixKey?: string | null; + /** Build detail (step results, durations, failure reason) */ + metadata?: Record | null; + /** Proposal this build checks (NULL for builds not tied to a proposal) */ + proposalId?: string | null; + /** Ref this build built */ + ref?: string | null; + /** Repository this build is of */ + repositoryId?: string | null; + /** When the build began running */ + startedAt?: string | null; + /** Lifecycle: pending, running, succeeded, failed, cancelled */ + status?: string | null; + updatedAt?: string | null; + updatedByPrincipal?: string | null; + /** Workflow whose firing produced this build (NULL for a manual build) */ + workflowId?: string | null; +} +/** Partitioned append-only step and test results of a build, keyed into its log object */ +export interface BuildStep { + /** Build these results belong to */ + buildId?: string | null; + /** Acting principal (agent, API key, or user) who created this record */ + createdByPrincipal?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; + /** Process exit code of a step (NULL for a test result) */ + exitCode?: number | null; + /** When this step or test finished */ + finishedAt?: string | null; + /** Unique identifier (uuidv7 provides temporal ordering) */ + id: string; + /** What this row is: step, or test */ + kind?: string | null; + /** Byte length of this row's output in the build log object */ + logBytes?: string | null; + /** Byte offset of this row's output in the build log object */ + logOffset?: string | null; + /** Step name, or the test's fully qualified name */ + name?: string | null; + /** Sequence of the step that reported this test (NULL for a step itself) */ + parentSeq?: number | null; + /** When the result was recorded (partition key) */ + recordedAt?: string | null; + /** Position within the build, monotonically increasing across steps and their tests */ + seq?: number | null; + /** When this step or test began */ + startedAt?: string | null; + /** Outcome: running, succeeded, failed, skipped, cancelled */ + status?: string | null; + /** Parsed detail: failure message, assertion diff, counts, annotations */ + summary?: Record | null; +} +/** Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST */ +export interface BuilderBinding { + createdAt?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; + id: string; + /** BuildKit resource installation serving this binding; may belong to another resource scope */ + installationId?: string | null; + /** Most recent projection failure */ + lastError?: string | null; + /** Reconciler detail (projection timestamps and diagnostics) */ + metadata?: Record | null; + /** Namespace whose builds use this BuildKit installation */ + namespaceId?: string | null; + /** BuildKit address last projected into the namespace (NULL = never projected) */ + observedHost?: string | null; + /** Lane this binding applies to (NULL = the scope's default lane) */ + realm?: string | null; + /** Projection state of BUILDKIT_HOST: pending, active, failed */ + status?: string | null; + updatedAt?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +/** Seed-content preset catalog (limit defaults, trust ladders, ...) — merkle-versioned head over the infra store */ export interface ContentPreset { /** Whether this preset is selectable at provision time */ active?: boolean | null; @@ -260,6 +366,224 @@ export interface ContentPreset { /** Timestamp of last modification */ updatedAt?: string | null; } +/** Flow graph definitions — FBP graphs stored in the dedicated graph Merkle store */ +export interface DatabaseFunctionGraph { + /** Evaluator/runtime context (function, js, sql, system) */ + context?: string | null; + /** Timestamp of graph creation */ + createdAt?: string | null; + /** Actor who created this graph */ + createdBy?: string | null; + /** Database scope for multi-tenant isolation */ + databaseId?: string | null; + /** Pinned definitions store commit for deterministic evaluation */ + definitionsCommitId?: string | null; + /** Human-readable description of the graph */ + description?: string | null; + /** Unique graph identifier */ + id: string; + /** Whether graph passes structural validation */ + isValid?: boolean | null; + /** Graph name (unique per database) */ + name?: string | null; + /** Graph store (Merkle store) holding the graph definition */ + storeId?: string | null; + /** Timestamp of last modification */ + updatedAt?: string | null; + /** Array of validation error objects when is_valid = false */ + validationErrors?: Record | null; +} +/** Ephemeral execution state for flow graph evaluation */ +export interface DatabaseFunctionGraphExecution { + /** User actor propagated to asynchronous graph jobs */ + actorId?: string | null; + /** Execution completion timestamp */ + completedAt?: string | null; + /** Index into execution_plan — tick only processes this wave */ + currentWave?: number | null; + /** Database scope for multi-tenant isolation */ + databaseId?: string | null; + /** Pinned definitions store commit for deterministic evaluation */ + definitionsCommitId?: string | null; + /** Entity context propagated to asynchronous graph jobs */ + entityId?: string | null; + /** Scope discriminator propagated to asynchronous graph jobs */ + entityType?: string | null; + /** Machine-readable error code when status = failed */ + errorCode?: string | null; + /** Human-readable error description when status = failed */ + errorMessage?: string | null; + /** Pre-computed topological sort as array of wave objects */ + executionPlan?: Record | null; + /** FK to the graph definition being executed */ + graphId?: string | null; + /** Unique execution identifier */ + id: string; + /** Initial inputs provided at invocation time */ + inputPayload?: Record | null; + /** Partition coordinate for the function invocation that launched this graph execution */ + invocationCreatedAt?: string | null; + /** Function invocation that launched this top-level graph execution */ + invocationId?: string | null; + /** Timestamp of the last real progress (node enqueue, node output, completion) — drives the activity-debounced watchdog */ + lastProgressAt?: string | null; + /** Maximum pending jobs before execution is failed (default 50) */ + maxPendingJobs?: number | null; + /** Maximum ticks before execution is failed (default 100) */ + maxTicks?: number | null; + /** Map of node_name → execution output id (content-addressed hash reference) */ + nodeOutputs?: Record | null; + /** Organization context propagated to asynchronous graph jobs */ + organizationId?: string | null; + /** Selected graphOutput portName values; NULL or empty returns all graph outputs */ + outputNames?: string[] | null; + /** Target output boundary node name to resolve; NULL derives completion from the graph's graphOutput nodes */ + outputNode?: string | null; + /** Final result extracted from terminal output node */ + outputPayload?: Record | null; + /** Target output port name (default: value) */ + outputPort?: string | null; + /** Parent execution when this is a sub-execution */ + parentExecutionId?: string | null; + /** Function invocation parent assigned to node invocations spawned by this execution */ + parentInvocationId?: string | null; + /** Node name in parent execution that spawned this sub-execution */ + parentNodeName?: string | null; + /** Principal identity propagated to asynchronous graph jobs */ + principalId?: string | null; + /** Execution start timestamp */ + startedAt?: string | null; + /** Lifecycle: pending → running → completed/failed/cancelled */ + status?: string | null; + /** Number of evaluate_step ticks executed */ + tickCount?: number | null; + /** Absolute deadline — execution fails if still running after this time */ + timeoutAt?: string | null; +} +/** Per-node execution state — tracks individual node lifecycle for debugging */ +export interface DatabaseFunctionGraphExecutionNodeState { + /** Snapshot of the node's resolved inputs for resource-runtime nodes — served by the node gateway GET /inputs endpoint */ + callbackInputs?: Record | null; + /** Metering/attribution context stamped at resource dispatch (namespace_id, task_identifier, entity_id, scope, resource identity, dispatched_at, attempt) — lets the node gateway settle and attribute without extra lookups */ + callbackMeta?: Record | null; + /** SHA-256 hex digest of the node callback token — set for resource-runtime nodes so the node gateway can authenticate result/error/heartbeat callbacks */ + callbackTokenHash?: string | null; + /** Timestamp when the node finished (success or failure) */ + completedAt?: string | null; + /** Timestamp of node state creation (partition key) */ + createdAt?: string | null; + /** Database scope for multi-tenant isolation */ + databaseId?: string | null; + /** Machine-readable error code when status = failed */ + errorCode?: string | null; + /** Human-readable error description when status = failed */ + errorMessage?: string | null; + /** FK to the parent graph execution */ + executionId?: string | null; + /** Declared output applied by the default_answer expiry policy */ + expiryDefaultOutput?: Record | null; + /** When the escalate expiry policy fired — guards the one-time extension */ + expiryEscalatedAt?: string | null; + /** Declared expiry behaviour when waiting_deadline_at passes unanswered: fail (fail the execution), default_answer (settle with expiry_default_output), or escalate (notify and extend once) */ + expiryPolicy?: string | null; + /** Unique node state identifier */ + id: string; + /** Name of the node within the graph (e.g. send-email1) */ + nodeName?: string | null; + /** Full merkle tree path to this node (e.g. {function,graphs,myflow,nodes,send-email1}) — enables subnet hierarchy tracking */ + nodePath?: string[] | null; + /** FK to execution_outputs — content-addressed output blob for this node */ + outputId?: string | null; + /** Timestamp when the node began executing */ + startedAt?: string | null; + /** Node lifecycle: pending → queued → running → completed/failed/cancelled */ + status?: string | null; + /** When the declared expiry policy applies to the still-unanswered node */ + waitingDeadlineAt?: string | null; + /** What class of external reporter settles this node: human (a person answers) or external (webhook/adapter). NULL for nodes with an active workload */ + waitingOn?: string | null; + /** When the node parked awaiting its external report */ + waitingSince?: string | null; +} +/** Content-addressed store for execution outputs — hash-referenced from node_outputs */ +export interface DatabaseFunctionGraphExecutionOutput { + /** Timestamp of output creation */ + createdAt?: string | null; + /** The actual output payload from a completed node */ + data?: Record | null; + /** Database scope for multi-tenant isolation */ + databaseId?: string | null; + /** SHA-256 hash of the data JSONB — content-addressed deduplication */ + hash?: Base64EncodedBinary | null; + /** Unique execution output identifier */ + id: string; +} +/** Commit history — each commit snapshots a tree root for a store */ +export interface DatabaseGraphCommit { + /** User who authored the changes */ + authorId?: string | null; + /** User who committed (may differ from author) */ + committerId?: string | null; + /** Database scope for multi-tenant isolation */ + databaseId?: string | null; + /** Commit timestamp */ + date?: string | null; + /** Unique commit identifier */ + id: string; + /** Optional commit message */ + message?: string | null; + /** Parent commit IDs (supports merge commits) */ + parentIds?: string[] | null; + /** Store this commit belongs to */ + storeId?: string | null; + /** Root object ID of the tree snapshot at this commit */ + treeId?: string | null; +} +export interface DatabaseGraphGetAllTreeNodesRecord { + data?: Record | null; + path?: string[] | null; +} +/** Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children */ +export interface DatabaseGraphObject { + /** Timestamp of object creation */ + createdAt?: string | null; + /** Payload data for this object node */ + data?: Record | null; + /** Database scope for multi-tenant isolation */ + databaseId?: string | null; + /** Content-addressed UUID v5 — deterministic hash of (data, kids, ktree) */ + id: string; + /** Ordered array of child object IDs */ + kids?: string[] | null; + /** Ordered array of child path names (parallel to kids) */ + ktree?: string[] | null; +} +/** Branch heads — mutable pointers into the commit chain */ +export interface DatabaseGraphRef { + /** Commit this ref points to */ + commitId?: string | null; + /** Database scope for multi-tenant isolation */ + databaseId?: string | null; + /** Unique ref identifier */ + id: string; + /** Ref name (e.g. HEAD, main) */ + name?: string | null; + /** Store this ref belongs to */ + storeId?: string | null; +} +/** Named stores — one per version-controlled tree (e.g. one graph, one definition set) */ +export interface DatabaseGraphStore { + /** Timestamp of store creation */ + createdAt?: string | null; + /** Database scope for multi-tenant isolation */ + databaseId?: string | null; + /** Current root object hash of this store */ + hash?: string | null; + /** Unique store identifier */ + id: string; + /** Human-readable store name */ + name?: string | null; +} /** Database provisioning preset catalog — merkle-versioned head over the infra store */ export interface DbPreset { /** Whether this preset is selectable for new databases */ @@ -323,6 +647,8 @@ export interface FunctionCapabilityBinding { export interface FunctionDefinition { /** 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 this function consents to run for a caller with no identity (a sign-in surface, a public page). Anonymous execution additionally requires the matched route to declare anonymous access. Default false = an identity is required. */ + anonymousCallable?: boolean | null; /** Function task category (e.g. email, embed, chunk, custom) */ category?: string | null; /** Knative containerConcurrency — max concurrent requests per pod instance */ @@ -332,6 +658,7 @@ export interface FunctionDefinition { /** Requested CPU in millicores, derived from resources.requests.cpu (NULL if unset/invalid) */ cpuRequestMillicores?: string | null; createdAt?: string | null; + createdByPrincipal?: string | null; /** Database that owns this resource (database-scoped isolation) */ databaseId?: string | null; /** Human-readable description of what this function does */ @@ -379,6 +706,8 @@ export interface FunctionDefinition { queueName?: string | null; /** 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; + /** Capability providers the handler declared in handler.json requires.capabilities, as an array of {name, version, declaration}. NULL when the handler declares none, which mounts the full platform set. */ + requiredCapabilities?: Record | 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. */ @@ -389,7 +718,7 @@ export interface FunctionDefinition { requiredSecrets?: ResourceRequirement[] | null; /** Container resource requests and limits: {requests: {memory, cpu}, limits: {memory, cpu}} */ resources?: Record | null; - /** Execution mode: http (Knative Service dispatch), inline (in-process in compute worker), handler (registered infrastructure handler), sql (generic SQL dispatch via a trusted direct target or module-resolved function names), resource (Kubernetes Job via the resource module with node-gateway callbacks), or graph (existing flow graph referenced by graph_id) */ + /** Execution mode: http (Knative Service dispatch), inline (in-process in compute worker), handler (registered infrastructure handler), sql (generic SQL dispatch via a trusted direct target or module-resolved function names), resource (Kubernetes Job via the resource module with node-gateway callbacks), graph (existing flow graph referenced by graph_id), or human (parks the node awaiting a person's answer through approve_node) */ runtime?: string | null; /** Maximum pod count for Knative autoscaling (maxScale) */ scaleMax?: number | null; @@ -404,6 +733,7 @@ export interface FunctionDefinition { /** Knative request timeout in seconds */ timeoutSeconds?: number | null; updatedAt?: string | null; + updatedByPrincipal?: string | null; /** Whether this function has side effects and cannot be cached or memoized */ volatile?: boolean | null; } @@ -414,6 +744,7 @@ export interface FunctionDeployment { /** Max concurrent requests per pod (NULL = inherit from definition) */ concurrency?: number | null; createdAt?: string | null; + createdByPrincipal?: string | null; /** Database that owns this resource (database-scoped isolation) */ databaseId?: string | null; /** Cumulative error count for this deployment */ @@ -452,10 +783,11 @@ export interface FunctionDeployment { /** Request timeout override in seconds (NULL = inherit from definition) */ timeoutSeconds?: number | null; updatedAt?: string | null; + updatedByPrincipal?: string | null; } /** Deployment lifecycle events — audit log of provisioning, scaling, and failure events */ export interface FunctionDeploymentEvent { - /** User who triggered this event (NULL for system/automated) */ + /** User who triggered this event; NULL only when no human actor was proven */ actorId?: string | null; /** Event timestamp (partition key) */ createdAt?: string | null; @@ -474,7 +806,7 @@ export interface FunctionDeploymentEvent { } /** Function execution logs — structured console output per invocation */ export interface FunctionExecutionLog { - /** User who triggered the execution (NULL for system/cron) */ + /** User who triggered the execution; NULL only when no human actor was proven */ actorId?: string | null; /** Log entry timestamp (partition key) */ createdAt?: string | null; @@ -626,6 +958,12 @@ export interface FunctionGraphExecutionNodeState { errorMessage?: string | null; /** FK to the parent graph execution */ executionId?: string | null; + /** Declared output applied by the default_answer expiry policy */ + expiryDefaultOutput?: Record | null; + /** When the escalate expiry policy fired — guards the one-time extension */ + expiryEscalatedAt?: string | null; + /** Declared expiry behaviour when waiting_deadline_at passes unanswered: fail (fail the execution), default_answer (settle with expiry_default_output), or escalate (notify and extend once) */ + expiryPolicy?: string | null; /** Unique node state identifier */ id: string; /** Name of the node within the graph (e.g. send-email1) */ @@ -638,8 +976,14 @@ export interface FunctionGraphExecutionNodeState { scopeId?: string | null; /** Timestamp when the node began executing */ startedAt?: string | null; - /** Node lifecycle: pending → queued → running → completed/failed */ + /** Node lifecycle: pending → queued → running → completed/failed/cancelled */ status?: string | null; + /** When the declared expiry policy applies to the still-unanswered node */ + waitingDeadlineAt?: string | null; + /** What class of external reporter settles this node: human (a person answers) or external (webhook/adapter). NULL for nodes with an active workload */ + waitingOn?: string | null; + /** When the node parked awaiting its external report */ + waitingSince?: string | null; } /** Content-addressed store for execution outputs — hash-referenced from node_outputs */ export interface FunctionGraphExecutionOutput { @@ -697,7 +1041,7 @@ export interface FunctionGraphStore { } /** Function invocation attempts — one row per worker attempt (including failed retries) with duration and error detail */ export interface FunctionInvocationAttempt { - /** Who triggered the invocation (NULL for system/cron) */ + /** Who triggered the invocation; NULL only when no human actor was proven */ actorId?: string | null; /** 1-based attempt number for this invocation */ attempt?: number | null; @@ -726,22 +1070,28 @@ export interface FunctionInvocationAttempt { } /** Function invocation log — INSERT to call a function (business-layer, metered). Linked to definitions via function_definition_id FK, with task_identifier as the denormalized routing/audit slug. */ export interface FunctionInvocation { - /** Who triggered the invocation (NULL for system/cron) */ + /** Who triggered the invocation; NULL only when no human actor was proven */ actorId?: string | null; /** API binding this invocation arrived through (NULL for cron/graph/system/worker paths) */ apiBindingId?: string | null; - /** Invocation trigger channel: api, graph, cron, sync, webhook, or worker */ + /** Invocation trigger channel: api, graph, cron, sync, webhook, trigger, or worker */ channel?: string | null; /** When execution completed */ completedAt?: string | null; /** Invocation creation timestamp (partition key) */ createdAt?: string | null; + /** Acting principal (agent, API key, or user) who created this record */ + createdByPrincipal?: string | null; /** Database that owns this resource (database-scoped isolation) */ databaseId?: string | null; /** Scope that owns function_definition_id (e.g. app/org/database/platform) — the per-scope definitions table the resolver selected */ definitionScope?: string | null; /** Wall-clock execution time in milliseconds */ durationMs?: number | null; + /** Entity identity propagated with the invocation */ + entityId?: string | null; + /** Entity type propagated with the invocation */ + entityType?: string | null; /** Error message when status is failed, or the reason the run was skipped when status is skipped */ error?: string | null; /** Function definition this invocation ran (soft cross-scope ref; paired with definition_scope). task_identifier stays as the audit slug. */ @@ -752,10 +1102,14 @@ export interface FunctionInvocation { id: string; /** FK to app_jobs.jobs — the underlying transport */ jobId?: string | null; + /** Organization identity propagated with the invocation */ + organizationId?: string | null; /** Parent invocation when this is a child node of a flow graph execution */ parentInvocationId?: string | null; /** Function input payload */ payload?: Record | null; + /** Principal identity that triggered the invocation */ + principalId?: string | null; /** Non-secret channel-specific invocation provenance (route/binding/event identifiers only) */ provenance?: Record | null; /** Function return value (success) or structured error (failure) */ @@ -771,6 +1125,64 @@ export interface GetAllTreeNodesRecord { data?: Record | null; path?: string[] | null; } +/** Container image catalog: images available to run as functions, resources, and builds */ +export interface Image { + createdAt?: string | null; + createdByPrincipal?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; + /** Human-readable description of what this image runs */ + description?: string | null; + /** Content address (sha256:...) pinning this image, when known */ + digest?: string | null; + /** When this catalog row becomes eligible for retention cleanup (NULL = kept forever) */ + expiresAt?: string | null; + id: string; + /** Whether this image is published for use by any scope */ + isPublished?: boolean | null; + /** Labels for selecting images (architecture, capabilities, lane) */ + labels?: Record | null; + /** Freeform metadata (build provenance, source repository, SBOM pointer) */ + metadata?: Record | null; + /** Human-readable image name (e.g. node-runtime) */ + name?: string | null; + /** User who registered this catalog row */ + ownerId?: string | null; + /** Whether this image is reserved for platform-internal use */ + platformOnly?: boolean | null; + /** Registry host serving this image (NULL means the platform default registry) */ + registryHost?: string | null; + /** Repository path within the registry (e.g. constructiveio/worker) */ + repository?: string | null; + /** Runtime this image implements (e.g. nodejs, python, custom) */ + runtime?: string | null; + /** Mutable tag this row addresses */ + tag?: string | null; + updatedAt?: string | null; + updatedByPrincipal?: string | null; +} +/** Grants that make a catalog image usable by one scope */ +export interface ImageGrant { + /** Registry actions this grant allows (pull, push, delete) */ + actions?: string[] | null; + createdAt?: string | null; + createdByPrincipal?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; + /** When this grant stops applying (NULL never expires) */ + expiresAt?: string | null; + /** User who issued this grant */ + grantedBy?: string | null; + /** Scope key of the grantee (a database_id or an entity_id) */ + granteeKey?: string | null; + /** Scope tier of the grantee (database, org, app, platform) */ + granteeScope?: string | null; + id: string; + /** Catalog image this grant applies to */ + imageId?: string | null; + updatedAt?: string | null; + updatedByPrincipal?: string | null; +} /** Commit history — each commit snapshots a tree root for a store */ export interface InfraCommit { /** User who authored the changes */ @@ -865,6 +1277,8 @@ export interface IntegrationProvider { export interface Namespace { /** Freeform metadata for tooling and operational notes */ annotations?: Record | null; + /** Cluster this namespace is projected onto; NULL = the cluster the reconciler runs in */ + clusterId?: string | null; createdAt?: string | null; /** Database that owns this resource (database-scoped isolation) */ databaseId?: string | null; @@ -889,7 +1303,7 @@ export interface Namespace { } /** Namespace lifecycle events — audit log of creation, activation, deactivation, label changes */ export interface NamespaceEvent { - /** User who triggered this event (NULL for system/automated) */ + /** User who triggered this event; NULL only when no human actor was proven */ actorId?: string | null; /** Event timestamp (partition key) */ createdAt?: string | null; @@ -906,9 +1320,108 @@ export interface NamespaceEvent { /** Namespace this event belongs to */ namespaceId?: string | null; } -/** Join table binding function definitions to API endpoints with per-binding alias and config */ -export interface PlatformFunctionApiBinding { - /** Binding alias (e.g. default, staging, production) */ +/** One run of a repository workflow: its commit, its job, and what it produced */ +export interface PlatformBuild { + /** Authenticated actor this build is attributed to; NULL only when no human actor was proven */ + actorId?: string | null; + /** Retry attempt number for this workflow, commit, and matrix shard */ + attempt?: number | null; + /** Commit this build built */ + commitSha?: string | null; + /** Verdict: NULL while pending/running, then success, failure, neutral, cancelled, skipped, timed_out, or action_required */ + conclusion?: string | null; + createdAt?: string | null; + createdByPrincipal?: string | null; + /** Event that triggered this build (NULL for a manual build) */ + eventId?: string | null; + /** When the build reached a terminal status */ + finishedAt?: string | null; + id: string; + /** Image reference this build produced (registry host/repository:tag; NULL when the build produced no image) */ + imageRef?: string | null; + /** app_jobs row running this build */ + jobId?: string | null; + /** Build log object in storage; step rows slice it by byte range */ + logs?: ConstructiveInternalTypeUpload | null; + /** Matrix shard identity; NULL for a non-matrix build */ + matrixKey?: string | null; + /** Build detail (step results, durations, failure reason) */ + metadata?: Record | null; + /** Proposal this build checks (NULL for builds not tied to a proposal) */ + proposalId?: string | null; + /** Ref this build built */ + ref?: string | null; + /** Repository this build is of */ + repositoryId?: string | null; + /** When the build began running */ + startedAt?: string | null; + /** Lifecycle: pending, running, succeeded, failed, cancelled */ + status?: string | null; + updatedAt?: string | null; + updatedByPrincipal?: string | null; + /** Workflow whose firing produced this build (NULL for a manual build) */ + workflowId?: string | null; +} +/** Partitioned append-only step and test results of a build, keyed into its log object */ +export interface PlatformBuildStep { + /** Build these results belong to */ + buildId?: string | null; + /** Acting principal (agent, API key, or user) who created this record */ + createdByPrincipal?: string | null; + /** Process exit code of a step (NULL for a test result) */ + exitCode?: number | null; + /** When this step or test finished */ + finishedAt?: string | null; + /** Unique identifier (uuidv7 provides temporal ordering) */ + id: string; + /** What this row is: step, or test */ + kind?: string | null; + /** Byte length of this row's output in the build log object */ + logBytes?: string | null; + /** Byte offset of this row's output in the build log object */ + logOffset?: string | null; + /** Step name, or the test's fully qualified name */ + name?: string | null; + /** Sequence of the step that reported this test (NULL for a step itself) */ + parentSeq?: number | null; + /** When the result was recorded (partition key) */ + recordedAt?: string | null; + /** Position within the build, monotonically increasing across steps and their tests */ + seq?: number | null; + /** When this step or test began */ + startedAt?: string | null; + /** Outcome: running, succeeded, failed, skipped, cancelled */ + status?: string | null; + /** Parsed detail: failure message, assertion diff, counts, annotations */ + summary?: Record | null; +} +/** Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST */ +export interface PlatformBuilderBinding { + createdAt?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + id: string; + /** BuildKit resource installation serving this binding; may belong to another resource scope */ + installationId?: string | null; + /** Most recent projection failure */ + lastError?: string | null; + /** Reconciler detail (projection timestamps and diagnostics) */ + metadata?: Record | null; + /** Namespace whose builds use this BuildKit installation */ + namespaceId?: string | null; + /** BuildKit address last projected into the namespace (NULL = never projected) */ + observedHost?: string | null; + /** Lane this binding applies to (NULL = the scope's default lane) */ + realm?: string | null; + /** Projection state of BUILDKIT_HOST: pending, active, failed */ + status?: string | null; + updatedAt?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +/** Join table binding function definitions to API endpoints with per-binding alias and config */ +export interface PlatformFunctionApiBinding { + /** Binding alias (e.g. default, staging, production) */ alias?: string | null; /** API endpoint this function is bound to */ apiId?: string | null; @@ -942,6 +1455,8 @@ export interface PlatformFunctionCapabilityBinding { export interface PlatformFunctionDefinition { /** 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 this function consents to run for a caller with no identity (a sign-in surface, a public page). Anonymous execution additionally requires the matched route to declare anonymous access. Default false = an identity is required. */ + anonymousCallable?: boolean | null; /** Whether executions are metered through the invocation ledger and billing quota gate */ billable?: boolean | null; /** Function task category (e.g. email, embed, chunk, custom) */ @@ -953,6 +1468,7 @@ export interface PlatformFunctionDefinition { /** Requested CPU in millicores, derived from resources.requests.cpu (NULL if unset/invalid) */ cpuRequestMillicores?: string | null; createdAt?: string | null; + createdByPrincipal?: string | null; /** Human-readable description of what this function does */ description?: string | null; /** Palette grouping category (e.g. email, data, ai, custom) */ @@ -998,6 +1514,8 @@ export interface PlatformFunctionDefinition { queueName?: string | null; /** 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; + /** Capability providers the handler declared in handler.json requires.capabilities, as an array of {name, version, declaration}. NULL when the handler declares none, which mounts the full platform set. */ + requiredCapabilities?: Record | 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. */ @@ -1008,7 +1526,7 @@ export interface PlatformFunctionDefinition { requiredSecrets?: ResourceRequirement[] | null; /** Container resource requests and limits: {requests: {memory, cpu}, limits: {memory, cpu}} */ resources?: Record | null; - /** Execution mode: http (Knative Service dispatch), inline (in-process in compute worker), handler (registered infrastructure handler), sql (generic SQL dispatch via a trusted direct target or module-resolved function names), resource (Kubernetes Job via the resource module with node-gateway callbacks), or graph (existing flow graph referenced by graph_id) */ + /** Execution mode: http (Knative Service dispatch), inline (in-process in compute worker), handler (registered infrastructure handler), sql (generic SQL dispatch via a trusted direct target or module-resolved function names), resource (Kubernetes Job via the resource module with node-gateway callbacks), graph (existing flow graph referenced by graph_id), or human (parks the node awaiting a person's answer through approve_node) */ runtime?: string | null; /** Maximum pod count for Knative autoscaling (maxScale) */ scaleMax?: number | null; @@ -1025,6 +1543,7 @@ export interface PlatformFunctionDefinition { /** Knative request timeout in seconds */ timeoutSeconds?: number | null; updatedAt?: string | null; + updatedByPrincipal?: string | null; /** Whether this function has side effects and cannot be cached or memoized */ volatile?: boolean | null; } @@ -1035,6 +1554,7 @@ export interface PlatformFunctionDeployment { /** Max concurrent requests per pod (NULL = inherit from definition) */ concurrency?: number | null; createdAt?: string | null; + createdByPrincipal?: string | null; /** Cumulative error count for this deployment */ errorCount?: number | null; /** Handler directory name (e.g. email, document) — used as FN_HANDLER_NAME in combined-image mode to select the entry point */ @@ -1071,10 +1591,11 @@ export interface PlatformFunctionDeployment { /** Request timeout override in seconds (NULL = inherit from definition) */ timeoutSeconds?: number | null; updatedAt?: string | null; + updatedByPrincipal?: string | null; } /** Deployment lifecycle events — audit log of provisioning, scaling, and failure events */ export interface PlatformFunctionDeploymentEvent { - /** User who triggered this event (NULL for system/automated) */ + /** User who triggered this event; NULL only when no human actor was proven */ actorId?: string | null; /** Event timestamp (partition key) */ createdAt?: string | null; @@ -1091,7 +1612,7 @@ export interface PlatformFunctionDeploymentEvent { } /** Function execution logs — structured console output per invocation */ export interface PlatformFunctionExecutionLog { - /** User who triggered the execution (NULL for system/cron) */ + /** User who triggered the execution; NULL only when no human actor was proven */ actorId?: string | null; /** Log entry timestamp (partition key) */ createdAt?: string | null; @@ -1110,7 +1631,7 @@ export interface PlatformFunctionExecutionLog { } /** Function invocation attempts — one row per worker attempt (including failed retries) with duration and error detail */ export interface PlatformFunctionInvocationAttempt { - /** Who triggered the invocation (NULL for system/cron) */ + /** Who triggered the invocation; NULL only when no human actor was proven */ actorId?: string | null; /** 1-based attempt number for this invocation */ attempt?: number | null; @@ -1137,22 +1658,28 @@ export interface PlatformFunctionInvocationAttempt { } /** Function invocation log — INSERT to call a function (business-layer, metered). Linked to definitions via function_definition_id FK, with task_identifier as the denormalized routing/audit slug. */ export interface PlatformFunctionInvocation { - /** Who triggered the invocation (NULL for system/cron) */ + /** Who triggered the invocation; NULL only when no human actor was proven */ actorId?: string | null; /** API binding this invocation arrived through (NULL for cron/graph/system/worker paths) */ apiBindingId?: string | null; - /** Invocation trigger channel: api, graph, cron, sync, webhook, or worker */ + /** Invocation trigger channel: api, graph, cron, sync, webhook, trigger, or worker */ channel?: string | null; /** When execution completed */ completedAt?: string | null; /** Invocation creation timestamp (partition key) */ createdAt?: string | null; + /** Acting principal (agent, API key, or user) who created this record */ + createdByPrincipal?: string | null; /** Database this invocation is attributed to (usage/billing attribution) */ databaseId?: string | null; /** Scope that owns function_definition_id (e.g. app/org/database/platform) — the per-scope definitions table the resolver selected */ definitionScope?: string | null; /** Wall-clock execution time in milliseconds */ durationMs?: number | null; + /** Entity identity propagated with the invocation */ + entityId?: string | null; + /** Entity type propagated with the invocation */ + entityType?: string | null; /** Error message when status is failed, or the reason the run was skipped when status is skipped */ error?: string | null; /** Function definition this invocation ran (soft cross-scope ref; paired with definition_scope). task_identifier stays as the audit slug. */ @@ -1163,10 +1690,14 @@ export interface PlatformFunctionInvocation { id: string; /** FK to app_jobs.jobs — the underlying transport */ jobId?: string | null; + /** Organization identity propagated with the invocation */ + organizationId?: string | null; /** Parent invocation when this is a child node of a flow graph execution */ parentInvocationId?: string | null; /** Function input payload */ payload?: Record | null; + /** Principal identity that triggered the invocation */ + principalId?: string | null; /** Non-secret channel-specific invocation provenance (route/binding/event identifiers only) */ provenance?: Record | null; /** Function return value (success) or structured error (failure) */ @@ -1178,6 +1709,60 @@ export interface PlatformFunctionInvocation { /** Function routing slug (category:name). Denormalized from the definition — must match the row referenced by function_definition_id when that is set. */ taskIdentifier?: string | null; } +/** Container image catalog: images available to run as functions, resources, and builds */ +export interface PlatformImage { + createdAt?: string | null; + createdByPrincipal?: string | null; + /** Human-readable description of what this image runs */ + description?: string | null; + /** Content address (sha256:...) pinning this image, when known */ + digest?: string | null; + /** When this catalog row becomes eligible for retention cleanup (NULL = kept forever) */ + expiresAt?: string | null; + id: string; + /** Whether this image is published for use by any scope */ + isPublished?: boolean | null; + /** Labels for selecting images (architecture, capabilities, lane) */ + labels?: Record | null; + /** Freeform metadata (build provenance, source repository, SBOM pointer) */ + metadata?: Record | null; + /** Human-readable image name (e.g. node-runtime) */ + name?: string | null; + /** User who registered this catalog row */ + ownerId?: string | null; + /** Whether this image is reserved for platform-internal use */ + platformOnly?: boolean | null; + /** Registry host serving this image (NULL means the platform default registry) */ + registryHost?: string | null; + /** Repository path within the registry (e.g. constructiveio/worker) */ + repository?: string | null; + /** Runtime this image implements (e.g. nodejs, python, custom) */ + runtime?: string | null; + /** Mutable tag this row addresses */ + tag?: string | null; + updatedAt?: string | null; + updatedByPrincipal?: string | null; +} +/** Grants that make a catalog image usable by one scope */ +export interface PlatformImageGrant { + /** Registry actions this grant allows (pull, push, delete) */ + actions?: string[] | null; + createdAt?: string | null; + createdByPrincipal?: string | null; + /** When this grant stops applying (NULL never expires) */ + expiresAt?: string | null; + /** User who issued this grant */ + grantedBy?: string | null; + /** Scope key of the grantee (a database_id or an entity_id) */ + granteeKey?: string | null; + /** Scope tier of the grantee (database, org, app, platform) */ + granteeScope?: string | null; + id: string; + /** Catalog image this grant applies to */ + imageId?: string | null; + updatedAt?: string | null; + updatedByPrincipal?: string | null; +} /** Commit history — each commit snapshots a tree root for a store */ export interface PlatformInfraCommit { /** User who authored the changes */ @@ -1244,10 +1829,58 @@ export interface PlatformInfraStore { /** Opaque store partition key for the global tier */ scopeId?: string | null; } +/** Kubernetes kind allow-list for DB-driven resources — merkle-versioned head over the infra store; the admission gate fails closed on kinds without an active row */ +export interface PlatformK8sResourceKind { + /** Whether the admission gate consults this row; deactivating a kind row denies the kind (fail closed) */ + active?: boolean | null; + /** Infra store commit for the current definition (stamped by the versioned trigger on every write) */ + commitId?: string | null; + /** Timestamp of policy creation */ + createdAt?: string | null; + /** Kind policy: {allowed, allowed_scopes?, notes} — the readily-cached head; history lives in the infra store */ + definition?: Record | null; + /** Human-readable description of the kind policy */ + description?: string | null; + /** Unique kind policy identifier */ + id: string; + /** Human-readable kind policy name */ + label?: string | null; + /** Kubernetes kind this policy governs (e.g. Deployment); the policy's path in the infra tree is [k8s_resource_kind, slug] */ + slug?: string | null; + /** Infra Merkle store holding this policy's history (stamped by the versioned trigger) */ + storeId?: string | null; + /** Timestamp of last modification */ + updatedAt?: string | null; +} +/** Spec rulebook for DB-driven resources — merkle-versioned head over the infra store; enforced by the generated admission gate via infra_utils.check_resource_admission */ +export interface PlatformK8sSpecRule { + /** Whether the admission gate enforces this rule; rules are disabled here rather than deleted so history stays intact */ + active?: boolean | null; + /** Infra store commit for the current definition (stamped by the versioned trigger on every write) */ + commitId?: string | null; + /** Timestamp of rule creation */ + createdAt?: string | null; + /** Rule definition: {rule_type, kind?, match, notes?} — the readily-cached head; history lives in the infra store */ + definition?: Record | null; + /** Human-readable description of the rule */ + description?: string | null; + /** Unique spec rule identifier */ + id: string; + /** Human-readable rule name */ + label?: string | null; + /** Rule slug (unique per scope); the rule's path in the infra tree is [k8s_spec_rule, slug] */ + slug?: string | null; + /** Infra Merkle store holding this rule's history (stamped by the versioned trigger) */ + storeId?: string | null; + /** Timestamp of last modification */ + updatedAt?: string | null; +} /** Logical namespace containers for grouping secrets, config, functions, and other resources */ export interface PlatformNamespace { /** Freeform metadata for tooling and operational notes */ annotations?: Record | null; + /** Cluster this namespace is projected onto; NULL = the cluster the reconciler runs in */ + clusterId?: string | null; createdAt?: string | null; /** Optional human-readable description of this namespace */ description?: string | null; @@ -1270,7 +1903,7 @@ export interface PlatformNamespace { } /** Namespace lifecycle events — audit log of creation, activation, deactivation, label changes */ export interface PlatformNamespaceEvent { - /** User who triggered this event (NULL for system/automated) */ + /** User who triggered this event; NULL only when no human actor was proven */ actorId?: string | null; /** Event timestamp (partition key) */ createdAt?: string | null; @@ -1285,6 +1918,410 @@ export interface PlatformNamespaceEvent { /** Namespace this event belongs to */ namespaceId?: string | null; } +/** Comments on a local proposal, optionally anchored to a line */ +export interface PlatformProposalComment { + /** Actor who wrote the comment; NULL only when no human actor was proven */ + actorId?: string | null; + /** Files referenced by the comment body, in the order they were attached */ + attachments?: ConstructiveInternalTypeUpload[] | null; + /** Comment text */ + body?: string | null; + /** TRGM similarity when searching `body`. Returns null when no trgm search filter is active. */ + bodyTrgmSimilarity?: number | null; + createdAt?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + embedding?: number[] | null; + embeddingUpdatedAt?: string | null; + /** VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. */ + embeddingVectorDistance?: number | null; + id: string; + /** Line within path the comment is anchored to */ + line?: number | null; + /** When the anchored range this comment pointed at vanished from the diff */ + outdatedAt?: string | null; + /** File the comment is anchored to (NULL for a comment on the proposal) */ + path?: string | null; + /** TRGM similarity when searching `path`. Returns null when no trgm search filter is active. */ + pathTrgmSimilarity?: number | null; + /** Proposal being commented on */ + proposalId?: string | null; + /** When this comment was marked resolved */ + resolvedAt?: string | null; + search?: string | null; + /** Composite search relevance score (0..1, higher = more relevant). Computed using Reciprocal Rank Fusion (RRF) across all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. */ + searchScore?: number | null; + /** TSV rank when searching `search`. Returns null when no tsv search filter is active. */ + searchTsvRank?: number | null; + updatedAt?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +/** Proposals against a repository: issues, changes to merge, discussions and decisions */ +export interface PlatformProposal { + /** Actor who opened the proposal; NULL only when no human actor was proven */ + actorId?: string | null; + /** Description of the proposed change */ + body?: string | null; + /** TRGM similarity when searching `body`. Returns null when no trgm search filter is active. */ + bodyTrgmSimilarity?: number | null; + /** Why this was closed: completed, not_planned, duplicate, superseded */ + closedReason?: string | null; + /** TRGM similarity when searching `closedReason`. Returns null when no trgm search filter is active. */ + closedReasonTrgmSimilarity?: number | null; + createdAt?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + /** When the decision was taken (NULL while the question is open) */ + decidedAt?: string | null; + /** When this is wanted by (NULL when nothing is promised) */ + dueAt?: string | null; + embedding?: number[] | null; + embeddingUpdatedAt?: string | null; + /** VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. */ + embeddingVectorDistance?: number | null; + id: string; + /** issue (a report or plan), change (merge one ref into another), discussion (an open question), decision (a question answered) */ + kind?: string | null; + /** TRGM similarity when searching `kind`. Returns null when no trgm search filter is active. */ + kindTrgmSimilarity?: number | null; + /** Labels for filtering and grouping (a board is a query over kind, status and these) */ + labels?: string[] | null; + /** Commit the merge produced */ + mergeCommit?: string | null; + /** TRGM similarity when searching `mergeCommit`. Returns null when no trgm search filter is active. */ + mergeCommitTrgmSimilarity?: number | null; + /** How to merge when eligible: merge, squash, rebase */ + mergeMethod?: string | null; + /** TRGM similarity when searching `mergeMethod`. Returns null when no trgm search filter is active. */ + mergeMethodTrgmSimilarity?: number | null; + /** When merge-when-green was requested (NULL when no merge is pending) */ + mergeRequestedAt?: string | null; + /** When the merge completed */ + mergedAt?: string | null; + /** Review detail (reviewers, labels, checks summary) */ + metadata?: Record | null; + /** Proposal this one hangs under: an epic, or the discussion a decision came out of */ + parentId?: string | null; + /** Manual order within a board column, sparse so an insert between two rows moves one row (NULL when unranked) */ + priority?: string | null; + /** Repository this proposal is against */ + repositoryId?: string | null; + /** What was decided (for kind = decision; NULL while the question is open) */ + resolution?: string | null; + /** TRGM similarity when searching `resolution`. Returns null when no trgm search filter is active. */ + resolutionTrgmSimilarity?: number | null; + search?: string | null; + /** Composite search relevance score (0..1, higher = more relevant). Computed using Reciprocal Rank Fusion (RRF) across all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. */ + searchScore?: number | null; + /** TSV rank when searching `search`. Returns null when no tsv search filter is active. */ + searchTsvRank?: number | null; + /** Ref holding the proposed commits (NULL unless kind is change) */ + sourceRef?: string | null; + /** TRGM similarity when searching `sourceRef`. Returns null when no trgm search filter is active. */ + sourceRefTrgmSimilarity?: number | null; + /** Lifecycle state: draft, open, merged, closed */ + status?: string | null; + /** TRGM similarity when searching `status`. Returns null when no trgm search filter is active. */ + statusTrgmSimilarity?: number | null; + /** Ref the commits are proposed for (NULL unless kind is change) */ + targetRef?: string | null; + /** TRGM similarity when searching `targetRef`. Returns null when no trgm search filter is active. */ + targetRefTrgmSimilarity?: number | null; + /** What this proposal does */ + title?: string | null; + /** TRGM similarity when searching `title`. Returns null when no trgm search filter is active. */ + titleTrgmSimilarity?: number | null; + updatedAt?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +/** Files a reviewer has read, pinned to the blob they read */ +export interface PlatformProposalFileView { + /** Blob the reviewer read, which is what makes the mark survive a rebase or go stale */ + blobSha?: string | null; + createdAt?: string | null; + createdByPrincipal?: string | null; + id: string; + /** Path of the file as the diff named it */ + path?: string | null; + /** Proposal the file belongs to */ + proposalId?: string | null; + /** Actor who read the file */ + reviewerId?: string | null; + updatedAt?: string | null; + updatedByPrincipal?: string | null; + /** When the file was marked read */ + viewedAt?: string | null; +} +/** Emoji reactions to a local proposal or one of its comments */ +export interface PlatformProposalReaction { + /** Actor who reacted */ + actorId?: string | null; + /** Comment being reacted to (NULL for a reaction to the proposal itself) */ + commentId?: string | null; + createdAt?: string | null; + createdByPrincipal?: string | null; + /** Reaction shortcode (+1, eyes, rocket) */ + emoji?: string | null; + id: string; + /** Proposal the reaction belongs to */ + proposalId?: string | null; + updatedAt?: string | null; + updatedByPrincipal?: string | null; +} +/** Review verdicts on a proposal, each pinned to the commit reviewed */ +export interface PlatformProposalReview { + /** Summary the reviewer submitted with the verdict */ + body?: string | null; + /** TRGM similarity when searching `body`. Returns null when no trgm search filter is active. */ + bodyTrgmSimilarity?: number | null; + /** Head commit this verdict was submitted against */ + commitSha?: string | null; + /** TRGM similarity when searching `commitSha`. Returns null when no trgm search filter is active. */ + commitShaTrgmSimilarity?: number | null; + createdAt?: string | null; + createdByPrincipal?: string | null; + id: string; + /** Proposal being reviewed */ + proposalId?: string | null; + /** Actor who submitted the verdict */ + reviewerId?: string | null; + search?: string | null; + /** Composite search relevance score (0..1, higher = more relevant). Computed using Reciprocal Rank Fusion (RRF) across all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. */ + searchScore?: number | null; + /** TSV rank when searching `search`. Returns null when no tsv search filter is active. */ + searchTsvRank?: number | null; + /** When the verdict was submitted */ + submittedAt?: string | null; + updatedAt?: string | null; + updatedByPrincipal?: string | null; + /** approve, reject or comment (a review that gates nothing) */ + verdict?: string | null; + /** TRGM similarity when searching `verdict`. Returns null when no trgm search filter is active. */ + verdictTrgmSimilarity?: number | null; +} +export interface PlatformProposalsChunk { + /** Policy-required field derived from source table (used by AuthzComposite) */ + actorId?: string | null; + body?: string | null; + chunkIndex?: number | null; + createdAt?: string | null; + embedding?: number[] | null; + /** VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. */ + embeddingVectorDistance?: number | null; + id: string; + metadata?: Record | null; + platformProposalsId?: string | null; + /** Composite search relevance score (0..1, higher = more relevant). Computed using Reciprocal Rank Fusion (RRF) across all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. */ + searchScore?: number | null; + updatedAt?: string | null; +} +/** Binds a namespace to an installed container registry for a lane (realm) — the reconciler projects that registry's credentials into the namespace as an image pull secret */ +export interface PlatformRegistryBinding { + createdAt?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + id: string; + /** Reconciler detail (last error, projection timestamps) */ + metadata?: Record | null; + /** Namespace the registry credentials are projected into */ + namespaceId?: string | null; + /** Registry credential version last projected into the namespace (NULL = never projected) */ + observedCredentialVersion?: string | null; + /** Name of the image pull secret the reconciler writes into the namespace */ + pullSecretName?: string | null; + /** Lane this binding applies to (NULL = the scope's default lane) */ + realm?: string | null; + /** Registry host this binding's credentials authenticate to (what kubelet matches image references against) */ + registryHost?: string | null; + /** Registry endpoint (in this scope's registry catalog) the namespace pulls from */ + registryId?: string | null; + /** Projection state of the pull secret: pending, active, failed */ + status?: string | null; + updatedAt?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +/** Artifact registries this scope pulls from or pushes to (OCI images, npm packages), platform-run or external */ +export interface PlatformRegistry { + /** How a client authenticates to this registry (none, basic, token) */ + authMode?: string | null; + /** Path prefix within the host (npm scope, OCI project); NULL = the host root */ + basePath?: string | null; + createdAt?: string | null; + createdByPrincipal?: string | null; + /** Name of the infra secret carrying this registry's credential (NULL when auth_mode = none) */ + credentialSecretName?: string | null; + /** Registry host, without a scheme (e.g. ghcr.io, registry.npmjs.org); required unless role is source, where it is the optional requested host and is stamped with the provisioned one */ + host?: string | null; + id: string; + /** Resource installation running this registry (NULL for an external registry) */ + installationId?: string | null; + /** Whether this registry is published for use by any scope */ + isPublished?: boolean | null; + /** Artifact ecosystem this registry serves (oci, npm) */ + kind?: string | null; + /** Labels for selecting registries (lane, region, mirror role) */ + labels?: Record | null; + /** Message from the last failed provision/deprovision attempt (NULL when healthy) */ + lastError?: string | null; + /** Freeform metadata (mirror-of pointer, rate limits, contact) */ + metadata?: Record | null; + /** Human-readable registry name (e.g. github-container-registry) */ + name?: string | null; + /** Whether this registry is reserved for platform-internal use */ + platformOnly?: boolean | null; + /** Role in this scope: source (the push target), cache (read-through mirror), external (pull only) */ + role?: string | null; + /** Provisioning state (pending, provisioning, active, failed); rows the platform does not create are active on insert */ + status?: string | null; + updatedAt?: string | null; + updatedByPrincipal?: string | null; +} +/** Grants that make a registry usable by one scope */ +export interface PlatformRegistryGrant { + /** Endpoint actions this grant allows (read, write) */ + actions?: string[] | null; + createdAt?: string | null; + createdByPrincipal?: string | null; + /** When this grant stops applying (NULL never expires) */ + expiresAt?: string | null; + /** User who issued this grant */ + grantedBy?: string | null; + /** Scope key of the grantee (a database_id or an entity_id) */ + granteeKey?: string | null; + /** Scope tier of the grantee (database, org, app, platform) */ + granteeScope?: string | null; + id: string; + /** Registry this grant applies to */ + registryId?: string | null; + updatedAt?: string | null; + updatedByPrincipal?: string | null; +} +/** Source repositories, hosted locally or on an external provider */ +export interface PlatformRepository { + /** URL a workspace clones from (NULL until the repository is provisioned) */ + cloneUrl?: string | null; + /** TRGM similarity when searching `cloneUrl`. Returns null when no trgm search filter is active. */ + cloneUrlTrgmSimilarity?: number | null; + createdAt?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + /** Branch a clone checks out and a proposal targets by default */ + defaultBranch?: string | null; + /** TRGM similarity when searching `defaultBranch`. Returns null when no trgm search filter is active. */ + defaultBranchTrgmSimilarity?: number | null; + /** What this repository holds */ + description?: string | null; + /** TRGM similarity when searching `description`. Returns null when no trgm search filter is active. */ + descriptionTrgmSimilarity?: number | null; + embedding?: number[] | null; + embeddingUpdatedAt?: string | null; + /** VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. */ + embeddingVectorDistance?: number | null; + /** Identifier of this repository in the external provider (NULL for local) */ + externalId?: string | null; + /** TRGM similarity when searching `externalId`. Returns null when no trgm search filter is active. */ + externalIdTrgmSimilarity?: number | null; + id: string; + /** Whether this repository is retired: readable, not written to */ + isArchived?: boolean | null; + /** Provider detail (installation id, topics, external URLs) */ + metadata?: Record | null; + /** Human-readable repository name */ + name?: string | null; + /** TRGM similarity when searching `name`. Returns null when no trgm search filter is active. */ + nameTrgmSimilarity?: number | null; + /** User who owns this repository */ + ownerId?: string | null; + /** Where the repository lives: local (platform git server) or github */ + provider?: string | null; + /** TRGM similarity when searching `provider`. Returns null when no trgm search filter is active. */ + providerTrgmSimilarity?: number | null; + search?: string | null; + /** Composite search relevance score (0..1, higher = more relevant). Computed using Reciprocal Rank Fusion (RRF) across all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. */ + searchScore?: number | null; + /** TSV rank when searching `search`. Returns null when no tsv search filter is active. */ + searchTsvRank?: number | null; + /** URL-safe identifier, unique within the owning scope */ + slug?: string | null; + /** TRGM similarity when searching `slug`. Returns null when no trgm search filter is active. */ + slugTrgmSimilarity?: number | null; + updatedAt?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; + /** Read reach: private (owner), internal (scope members), public (any authenticated actor) */ + visibility?: string | null; + /** TRGM similarity when searching `visibility`. Returns null when no trgm search filter is active. */ + visibilityTrgmSimilarity?: number | null; +} +/** Normalized repository events from local hooks and external providers */ +export interface PlatformRepositoryEvent { + /** Authenticated actor behind the event (NULL when only the sending system was proven) */ + actorId?: string | null; + /** Commit the ref points at after the event */ + commitSha?: string | null; + createdAt?: string | null; + createdByPrincipal?: string | null; + /** Provider delivery identifier, for redelivery dedupe (NULL for local hooks) */ + deliveryId?: string | null; + /** What happened: push, tag, pr_open, pr_merge, proposal_comment, manual */ + eventType?: string | null; + id: string; + /** Unverified provider detail (payload login, commit author, external URLs) */ + metadata?: Record | null; + /** Normalized event body the workflows read */ + payload?: Record | null; + /** Git ref the event concerns (refs/heads/main) */ + ref?: string | null; + /** Repository this event happened to */ + repositoryId?: string | null; + updatedAt?: string | null; + updatedByPrincipal?: string | null; +} +/** Workflows required to pass before a repository proposal merges */ +export interface PlatformRepositoryRequiredCheck { + createdAt?: string | null; + id: string; + /** Repository whose merge gate requires this workflow */ + repositoryId?: string | null; + updatedAt?: string | null; + /** Workflow identity required by this repository gate */ + workflowId?: string | null; +} +/** Bindings from a repository event to the flow graph that should run */ +export interface PlatformRepositoryWorkflow { + /** Whether a new build cancels a running build with the same concurrency key instead of queueing */ + cancelInProgress?: boolean | null; + /** Builds of this workflow sharing this key run one at a time (NULL = unlimited) */ + concurrencyKey?: string | null; + createdAt?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + /** Event type that fires this workflow */ + eventType?: string | null; + /** Flow graph to run when this workflow fires */ + graphId?: string | null; + id: string; + /** Static inputs merged into the graph run alongside the event */ + inputs?: Record | null; + /** Whether matching events fire this workflow */ + isEnabled?: boolean | null; + /** Human-readable workflow name */ + name?: string | null; + /** Glob the event ref must match (NULL matches any ref) */ + refPattern?: string | null; + /** Repository whose events this workflow listens to */ + repositoryId?: string | null; + /** Secret names this workflow's builds may resolve, intersected with the build lane's realm */ + requiredSecrets?: string[] | null; + /** URL-safe identifier, unique within the repository */ + slug?: string | null; + updatedAt?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} /** Unified K8s resource declarations — stores desired state (spec) and observed state (status) for all resource kinds within a namespace */ export interface PlatformResource { /** Freeform metadata for tooling and operational notes */ @@ -1295,9 +2332,12 @@ export interface PlatformResource { cpuRequestMillicores?: string | null; createdAt?: string | null; createdBy?: string | null; + createdByPrincipal?: string | null; /** Cumulative error count for this resource */ errorCount?: number | null; id: string; + /** Pinned image reference this resource runs (registry host/repository:tag or @digest), written by promotion; NULL means spec.image decides */ + imageRef?: string | null; /** Installation ("release") this resource belongs to (NULL for standalone resources) */ installationId?: string | null; /** Provider slugs (e.g. mailgun, postgres) associated with this resource. The UI uses this to auto-fill required_secrets and required_configs from integration_providers. */ @@ -1336,12 +2376,15 @@ export interface PlatformResource { status?: string | null; /** Observed state from K8s — populated by handlers after reconciliation (service_url, clone_url, replicas, etc.) */ statusObserved?: Record | null; - /** Storage class/tier, derived from spec.storage_class (StatefulSet; NULL if unset) */ + /** Storage class/tier, derived from the legacy spec.storage_class else spec.storage[0].class (NULL if unset) */ storageClass?: string | null; - /** Persistent volume size in bytes, derived from spec.storage_size (StatefulSet; NULL if unset/invalid) */ + /** Declared persistent volume bytes per pod, summed over spec.storage[] plus the legacy spec.storage_size (NULL if none declared) */ storageSizeBytes?: string | null; + /** Total declared persistent volume bytes for the resource: per-pod bytes times replicas for StatefulSet (per-ordinal claims), per-pod bytes otherwise (claims shared across replicas) */ + storageTotalBytes?: string | null; updatedAt?: string | null; updatedBy?: string | null; + updatedByPrincipal?: string | null; } export interface PlatformResourceDeclaredCapacity { cpuLimitMillicores?: string | null; @@ -1357,6 +2400,7 @@ export interface PlatformResourceDeclaredCapacity { source?: string | null; sourceId?: string | null; storageSizeBytes?: string | null; + storageTotalBytes?: string | null; } /** Resource definitions — templates for resource kinds declaring default spec and secret/config requirements */ export interface PlatformResourceDefinition { @@ -1364,6 +2408,7 @@ export interface PlatformResourceDefinition { annotations?: Record | null; createdAt?: string | null; createdBy?: string | null; + createdByPrincipal?: string | null; /** Template spec for creating resource instances of this kind */ defaultSpec?: Record | null; /** What this resource definition provides */ @@ -1391,10 +2436,11 @@ export interface PlatformResourceDefinition { stepUpMinAge?: string | null; updatedAt?: string | null; updatedBy?: string | null; + updatedByPrincipal?: string | null; } /** Resource lifecycle events — audit log of provisioning, updates, and failure events */ export interface PlatformResourceEvent { - /** User who triggered this event (NULL for system/automated) */ + /** User who triggered this event; NULL only when no human actor was proven */ actorId?: string | null; /** Event timestamp (partition key) */ createdAt?: string | null; @@ -1415,6 +2461,7 @@ export interface PlatformResourceInstallation { commitId?: string | null; createdAt?: string | null; createdBy?: string | null; + createdByPrincipal?: string | null; id: string; /** Human-readable release name */ name?: string | null; @@ -1432,6 +2479,27 @@ export interface PlatformResourceInstallation { storeId?: string | null; updatedAt?: string | null; updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +export interface PlatformResourceObservedStorage { + capacity?: string | null; + capacityBytes?: string | null; + claimName?: string | null; + declaredStorageClass?: string | null; + declaredStorageSizeBytes?: string | null; + declaredStorageTotalBytes?: string | null; + installationId?: string | null; + isBound?: boolean | null; + kind?: string | null; + namespaceId?: string | null; + phase?: string | null; + requested?: string | null; + requestedBytes?: string | null; + resourceId?: string | null; + resourceStatus?: string | null; + slug?: string | null; + storageClass?: string | null; + storageName?: string | null; } /** On-demand resource status checks — diagnostic snapshots from the runtime (K8s status, conditions, log tails) */ export interface PlatformResourceStatusCheck { @@ -1519,8 +2587,10 @@ export interface PlatformResourcesHealth { cpuRequestMillicores?: string | null; createdAt?: string | null; createdBy?: string | null; + createdByPrincipal?: string | null; errorCount?: number | null; id: string; + imageRef?: string | null; installationId?: string | null; integrations?: string[] | null; kind?: string | null; @@ -1543,8 +2613,10 @@ export interface PlatformResourcesHealth { statusObserved?: Record | null; storageClass?: string | null; storageSizeBytes?: string | null; + storageTotalBytes?: string | null; updatedAt?: string | null; updatedBy?: string | null; + updatedByPrincipal?: string | null; } export interface PlatformResourcesRequirementsState { configHash?: string | null; @@ -1574,6 +2646,7 @@ export interface PlatformWebhookEndpoint { active?: boolean | null; createdAt?: string | null; createdBy?: string | null; + createdByPrincipal?: string | null; /** Same-scope function definition invoked on delivery. The function must list the webhook channel in access_channels. */ functionDefinitionId?: string | null; /** Inbound Host header this endpoint matches (normalized lower-case, no port) */ @@ -1591,6 +2664,7 @@ export interface PlatformWebhookEndpoint { signingSecretName?: string | null; updatedAt?: string | null; updatedBy?: string | null; + updatedByPrincipal?: string | null; } /** Durable webhook acceptance log — one row per accepted delivery, deduplicated on (endpoint_id, external_event_id), linked to the pending function invocation it enqueued */ export interface PlatformWebhookEvent { @@ -1616,102 +2690,540 @@ export interface PlatformWebhookEvent { status?: string | null; updatedAt?: string | null; } -/** Unified K8s resource declarations — stores desired state (spec) and observed state (status) for all resource kinds within a namespace */ -export interface Resource { - /** Freeform metadata for tooling and operational notes */ - annotations?: Record | null; - /** CPU limit in millicores, derived from spec.resources.limits.cpu (NULL if unset/invalid) */ - cpuLimitMillicores?: string | null; - /** Requested CPU in millicores, derived from spec.resources.requests.cpu (NULL if unset/invalid) */ - cpuRequestMillicores?: string | null; +/** Comments on a local proposal, optionally anchored to a line */ +export interface ProposalComment { + /** Actor who wrote the comment; NULL only when no human actor was proven */ + actorId?: string | null; + /** Files referenced by the comment body, in the order they were attached */ + attachments?: ConstructiveInternalTypeUpload[] | null; + /** Comment text */ + body?: string | null; + /** TRGM similarity when searching `body`. Returns null when no trgm search filter is active. */ + bodyTrgmSimilarity?: number | null; createdAt?: string | null; createdBy?: string | null; + createdByPrincipal?: string | null; /** Database that owns this resource (database-scoped isolation) */ databaseId?: string | null; - /** Cumulative error count for this resource */ - errorCount?: number | null; + embedding?: number[] | null; + embeddingUpdatedAt?: string | null; + /** VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. */ + embeddingVectorDistance?: number | null; id: string; - /** Installation ("release") this resource belongs to (NULL for standalone resources) */ - installationId?: string | null; - /** Provider slugs (e.g. mailgun, postgres) associated with this resource. The UI uses this to auto-fill required_secrets and required_configs from integration_providers. */ - integrations?: string[] | null; - /** Resource kind: Deployment, StatefulSet, Job, Service, Ingress, Certificate, ClusterIssuer */ - kind?: string | null; - /** Key/value pairs for selecting and filtering resources */ - labels?: Record | null; - /** Most recent provisioning or runtime error message */ - lastError?: string | null; - /** Last time a usage heartbeat was received for this resource (NULL until first heartbeat) */ - lastHeartbeatAt?: string | null; - /** Memory limit in bytes, derived from spec.resources.limits.memory (NULL if unset/invalid) */ - memoryLimitBytes?: string | null; - /** Requested memory in bytes, derived from spec.resources.requests.memory (NULL if unset/invalid) */ - memoryRequestBytes?: string | null; - /** Human-readable resource name */ - name?: string | null; - /** Namespace this resource belongs to (security boundary, maps to K8s namespace) */ - namespaceId?: string | null; - /** Config/secret realm this resource resolves against. Per key, the realm-specific atom wins over the NULL-realm default. NULL = the default lane. */ - realm?: string | null; - /** Desired pod count, derived from spec.replicas — the multiplier for total requested capacity (NULL if unset/invalid) */ - replicas?: number | null; - /** Embedded config requirements: array of (name, required, provider) tuples — extends the linked definition's requirements. provider is the integration slug this requirement belongs to, if any. */ - requiredConfigs?: ResourceRequirement[] | null; - /** Embedded secret requirements: array of (name, required, provider) tuples — extends the linked definition's requirements. provider is the integration slug this requirement belongs to, if any. */ - requiredSecrets?: ResourceRequirement[] | null; - /** Definition template this resource was created from (NULL for standalone resources) */ - resourceDefinitionId?: string | null; - /** URL-safe identifier, unique within (namespace_id, kind) */ - slug?: string | null; - /** Desired state — kind-specific configuration (image, ports, resources, etc.). Opaque to DB; validated by K8s. */ - spec?: Record | null; - /** Resource lifecycle status: pending, provisioning, active, completed, failed, draining, deleting */ - status?: string | null; - /** Observed state from K8s — populated by handlers after reconciliation (service_url, clone_url, replicas, etc.) */ - statusObserved?: Record | null; - /** Storage class/tier, derived from spec.storage_class (StatefulSet; NULL if unset) */ - storageClass?: string | null; - /** Persistent volume size in bytes, derived from spec.storage_size (StatefulSet; NULL if unset/invalid) */ - storageSizeBytes?: string | null; + /** Line within path the comment is anchored to */ + line?: number | null; + /** When the anchored range this comment pointed at vanished from the diff */ + outdatedAt?: string | null; + /** File the comment is anchored to (NULL for a comment on the proposal) */ + path?: string | null; + /** TRGM similarity when searching `path`. Returns null when no trgm search filter is active. */ + pathTrgmSimilarity?: number | null; + /** Proposal being commented on */ + proposalId?: string | null; + /** When this comment was marked resolved */ + resolvedAt?: string | null; + search?: string | null; + /** Composite search relevance score (0..1, higher = more relevant). Computed using Reciprocal Rank Fusion (RRF) across all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. */ + searchScore?: number | null; + /** TSV rank when searching `search`. Returns null when no tsv search filter is active. */ + searchTsvRank?: number | null; updatedAt?: string | null; updatedBy?: string | null; + updatedByPrincipal?: string | null; } -export interface ResourceDeclaredCapacity { - cpuLimitMillicores?: string | null; - cpuRequestMillicores?: string | null; - installationId?: string | null; - isTransient?: boolean | null; - kind?: string | null; - memoryLimitBytes?: string | null; - memoryRequestBytes?: string | null; - namespaceId?: string | null; - podCountMax?: number | null; - podCountMin?: number | null; - source?: string | null; - sourceId?: string | null; - storageSizeBytes?: string | null; -} -/** Resource definitions — templates for resource kinds declaring default spec and secret/config requirements */ -export interface ResourceDefinition { - /** Freeform metadata for tooling and operational notes */ - annotations?: Record | null; +/** Proposals against a repository: issues, changes to merge, discussions and decisions */ +export interface Proposal { + /** Actor who opened the proposal; NULL only when no human actor was proven */ + actorId?: string | null; + /** Description of the proposed change */ + body?: string | null; + /** TRGM similarity when searching `body`. Returns null when no trgm search filter is active. */ + bodyTrgmSimilarity?: number | null; + /** Why this was closed: completed, not_planned, duplicate, superseded */ + closedReason?: string | null; + /** TRGM similarity when searching `closedReason`. Returns null when no trgm search filter is active. */ + closedReasonTrgmSimilarity?: number | null; createdAt?: string | null; createdBy?: string | null; + createdByPrincipal?: string | null; /** Database that owns this resource (database-scoped isolation) */ databaseId?: string | null; - /** Template spec for creating resource instances of this kind */ - defaultSpec?: Record | null; - /** What this resource definition provides */ - description?: string | null; + /** When the decision was taken (NULL while the question is open) */ + decidedAt?: string | null; + /** When this is wanted by (NULL when nothing is promised) */ + dueAt?: string | null; + embedding?: number[] | null; + embeddingUpdatedAt?: string | null; + /** VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. */ + embeddingVectorDistance?: number | null; id: string; - /** Provider slugs (e.g. mailgun, postgres) associated with this resource definition. The UI uses this to auto-fill required_secrets and required_configs from integration_providers. */ - integrations?: string[] | null; - /** Resource kind: Deployment, StatefulSet, Job, Service, Ingress, Certificate, ClusterIssuer, or custom kinds */ + /** issue (a report or plan), change (merge one ref into another), discussion (an open question), decision (a question answered) */ kind?: string | null; - /** Key/value pairs for selecting and filtering definitions */ - labels?: Record | null; - /** Human-readable definition name */ - name?: string | null; + /** TRGM similarity when searching `kind`. Returns null when no trgm search filter is active. */ + kindTrgmSimilarity?: number | null; + /** Labels for filtering and grouping (a board is a query over kind, status and these) */ + labels?: string[] | null; + /** Commit the merge produced */ + mergeCommit?: string | null; + /** TRGM similarity when searching `mergeCommit`. Returns null when no trgm search filter is active. */ + mergeCommitTrgmSimilarity?: number | null; + /** How to merge when eligible: merge, squash, rebase */ + mergeMethod?: string | null; + /** TRGM similarity when searching `mergeMethod`. Returns null when no trgm search filter is active. */ + mergeMethodTrgmSimilarity?: number | null; + /** When merge-when-green was requested (NULL when no merge is pending) */ + mergeRequestedAt?: string | null; + /** When the merge completed */ + mergedAt?: string | null; + /** Review detail (reviewers, labels, checks summary) */ + metadata?: Record | null; + /** Proposal this one hangs under: an epic, or the discussion a decision came out of */ + parentId?: string | null; + /** Manual order within a board column, sparse so an insert between two rows moves one row (NULL when unranked) */ + priority?: string | null; + /** Repository this proposal is against */ + repositoryId?: string | null; + /** What was decided (for kind = decision; NULL while the question is open) */ + resolution?: string | null; + /** TRGM similarity when searching `resolution`. Returns null when no trgm search filter is active. */ + resolutionTrgmSimilarity?: number | null; + search?: string | null; + /** Composite search relevance score (0..1, higher = more relevant). Computed using Reciprocal Rank Fusion (RRF) across all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. */ + searchScore?: number | null; + /** TSV rank when searching `search`. Returns null when no tsv search filter is active. */ + searchTsvRank?: number | null; + /** Ref holding the proposed commits (NULL unless kind is change) */ + sourceRef?: string | null; + /** TRGM similarity when searching `sourceRef`. Returns null when no trgm search filter is active. */ + sourceRefTrgmSimilarity?: number | null; + /** Lifecycle state: draft, open, merged, closed */ + status?: string | null; + /** TRGM similarity when searching `status`. Returns null when no trgm search filter is active. */ + statusTrgmSimilarity?: number | null; + /** Ref the commits are proposed for (NULL unless kind is change) */ + targetRef?: string | null; + /** TRGM similarity when searching `targetRef`. Returns null when no trgm search filter is active. */ + targetRefTrgmSimilarity?: number | null; + /** What this proposal does */ + title?: string | null; + /** TRGM similarity when searching `title`. Returns null when no trgm search filter is active. */ + titleTrgmSimilarity?: number | null; + updatedAt?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +/** Files a reviewer has read, pinned to the blob they read */ +export interface ProposalFileView { + /** Blob the reviewer read, which is what makes the mark survive a rebase or go stale */ + blobSha?: string | null; + createdAt?: string | null; + createdByPrincipal?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; + id: string; + /** Path of the file as the diff named it */ + path?: string | null; + /** Proposal the file belongs to */ + proposalId?: string | null; + /** Actor who read the file */ + reviewerId?: string | null; + updatedAt?: string | null; + updatedByPrincipal?: string | null; + /** When the file was marked read */ + viewedAt?: string | null; +} +/** Emoji reactions to a local proposal or one of its comments */ +export interface ProposalReaction { + /** Actor who reacted */ + actorId?: string | null; + /** Comment being reacted to (NULL for a reaction to the proposal itself) */ + commentId?: string | null; + createdAt?: string | null; + createdByPrincipal?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; + /** Reaction shortcode (+1, eyes, rocket) */ + emoji?: string | null; + id: string; + /** Proposal the reaction belongs to */ + proposalId?: string | null; + updatedAt?: string | null; + updatedByPrincipal?: string | null; +} +/** Review verdicts on a proposal, each pinned to the commit reviewed */ +export interface ProposalReview { + /** Summary the reviewer submitted with the verdict */ + body?: string | null; + /** TRGM similarity when searching `body`. Returns null when no trgm search filter is active. */ + bodyTrgmSimilarity?: number | null; + /** Head commit this verdict was submitted against */ + commitSha?: string | null; + /** TRGM similarity when searching `commitSha`. Returns null when no trgm search filter is active. */ + commitShaTrgmSimilarity?: number | null; + createdAt?: string | null; + createdByPrincipal?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; + id: string; + /** Proposal being reviewed */ + proposalId?: string | null; + /** Actor who submitted the verdict */ + reviewerId?: string | null; + search?: string | null; + /** Composite search relevance score (0..1, higher = more relevant). Computed using Reciprocal Rank Fusion (RRF) across all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. */ + searchScore?: number | null; + /** TSV rank when searching `search`. Returns null when no tsv search filter is active. */ + searchTsvRank?: number | null; + /** When the verdict was submitted */ + submittedAt?: string | null; + updatedAt?: string | null; + updatedByPrincipal?: string | null; + /** approve, reject or comment (a review that gates nothing) */ + verdict?: string | null; + /** TRGM similarity when searching `verdict`. Returns null when no trgm search filter is active. */ + verdictTrgmSimilarity?: number | null; +} +export interface ProposalsChunk { + /** Policy-required field derived from source table (used by AuthzComposite) */ + actorId?: string | null; + body?: string | null; + chunkIndex?: number | null; + createdAt?: string | null; + /** Policy-required field derived from source table (used by AuthzRelatedEntityMembership) */ + databaseId?: string | null; + embedding?: number[] | null; + /** VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. */ + embeddingVectorDistance?: number | null; + id: string; + metadata?: Record | null; + proposalsId?: string | null; + /** Composite search relevance score (0..1, higher = more relevant). Computed using Reciprocal Rank Fusion (RRF) across all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. */ + searchScore?: number | null; + updatedAt?: string | null; +} +/** Binds a namespace to an installed container registry for a lane (realm) — the reconciler projects that registry's credentials into the namespace as an image pull secret */ +export interface RegistryBinding { + createdAt?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; + id: string; + /** Reconciler detail (last error, projection timestamps) */ + metadata?: Record | null; + /** Namespace the registry credentials are projected into */ + namespaceId?: string | null; + /** Registry credential version last projected into the namespace (NULL = never projected) */ + observedCredentialVersion?: string | null; + /** Name of the image pull secret the reconciler writes into the namespace */ + pullSecretName?: string | null; + /** Lane this binding applies to (NULL = the scope's default lane) */ + realm?: string | null; + /** Registry host this binding's credentials authenticate to (what kubelet matches image references against) */ + registryHost?: string | null; + /** Registry endpoint (in this scope's registry catalog) the namespace pulls from */ + registryId?: string | null; + /** Projection state of the pull secret: pending, active, failed */ + status?: string | null; + updatedAt?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +/** Artifact registries this scope pulls from or pushes to (OCI images, npm packages), platform-run or external */ +export interface Registry { + /** How a client authenticates to this registry (none, basic, token) */ + authMode?: string | null; + /** Path prefix within the host (npm scope, OCI project); NULL = the host root */ + basePath?: string | null; + createdAt?: string | null; + createdByPrincipal?: string | null; + /** Name of the infra secret carrying this registry's credential (NULL when auth_mode = none) */ + credentialSecretName?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; + /** Registry host, without a scheme (e.g. ghcr.io, registry.npmjs.org); required unless role is source, where it is the optional requested host and is stamped with the provisioned one */ + host?: string | null; + id: string; + /** Resource installation running this registry (NULL for an external registry) */ + installationId?: string | null; + /** Whether this registry is published for use by any scope */ + isPublished?: boolean | null; + /** Artifact ecosystem this registry serves (oci, npm) */ + kind?: string | null; + /** Labels for selecting registries (lane, region, mirror role) */ + labels?: Record | null; + /** Message from the last failed provision/deprovision attempt (NULL when healthy) */ + lastError?: string | null; + /** Freeform metadata (mirror-of pointer, rate limits, contact) */ + metadata?: Record | null; + /** Human-readable registry name (e.g. github-container-registry) */ + name?: string | null; + /** Whether this registry is reserved for platform-internal use */ + platformOnly?: boolean | null; + /** Role in this scope: source (the push target), cache (read-through mirror), external (pull only) */ + role?: string | null; + /** Provisioning state (pending, provisioning, active, failed); rows the platform does not create are active on insert */ + status?: string | null; + updatedAt?: string | null; + updatedByPrincipal?: string | null; +} +/** Grants that make a registry usable by one scope */ +export interface RegistryGrant { + /** Endpoint actions this grant allows (read, write) */ + actions?: string[] | null; + createdAt?: string | null; + createdByPrincipal?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; + /** When this grant stops applying (NULL never expires) */ + expiresAt?: string | null; + /** User who issued this grant */ + grantedBy?: string | null; + /** Scope key of the grantee (a database_id or an entity_id) */ + granteeKey?: string | null; + /** Scope tier of the grantee (database, org, app, platform) */ + granteeScope?: string | null; + id: string; + /** Registry this grant applies to */ + registryId?: string | null; + updatedAt?: string | null; + updatedByPrincipal?: string | null; +} +/** Source repositories, hosted locally or on an external provider */ +export interface Repository { + /** URL a workspace clones from (NULL until the repository is provisioned) */ + cloneUrl?: string | null; + /** TRGM similarity when searching `cloneUrl`. Returns null when no trgm search filter is active. */ + cloneUrlTrgmSimilarity?: number | null; + createdAt?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; + /** Branch a clone checks out and a proposal targets by default */ + defaultBranch?: string | null; + /** TRGM similarity when searching `defaultBranch`. Returns null when no trgm search filter is active. */ + defaultBranchTrgmSimilarity?: number | null; + /** What this repository holds */ + description?: string | null; + /** TRGM similarity when searching `description`. Returns null when no trgm search filter is active. */ + descriptionTrgmSimilarity?: number | null; + embedding?: number[] | null; + embeddingUpdatedAt?: string | null; + /** VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. */ + embeddingVectorDistance?: number | null; + /** Identifier of this repository in the external provider (NULL for local) */ + externalId?: string | null; + /** TRGM similarity when searching `externalId`. Returns null when no trgm search filter is active. */ + externalIdTrgmSimilarity?: number | null; + id: string; + /** Whether this repository is retired: readable, not written to */ + isArchived?: boolean | null; + /** Provider detail (installation id, topics, external URLs) */ + metadata?: Record | null; + /** Human-readable repository name */ + name?: string | null; + /** TRGM similarity when searching `name`. Returns null when no trgm search filter is active. */ + nameTrgmSimilarity?: number | null; + /** User who owns this repository */ + ownerId?: string | null; + /** Where the repository lives: local (platform git server) or github */ + provider?: string | null; + /** TRGM similarity when searching `provider`. Returns null when no trgm search filter is active. */ + providerTrgmSimilarity?: number | null; + search?: string | null; + /** Composite search relevance score (0..1, higher = more relevant). Computed using Reciprocal Rank Fusion (RRF) across all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. */ + searchScore?: number | null; + /** TSV rank when searching `search`. Returns null when no tsv search filter is active. */ + searchTsvRank?: number | null; + /** URL-safe identifier, unique within the owning scope */ + slug?: string | null; + /** TRGM similarity when searching `slug`. Returns null when no trgm search filter is active. */ + slugTrgmSimilarity?: number | null; + updatedAt?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; + /** Read reach: private (owner), internal (scope members), public (any authenticated actor) */ + visibility?: string | null; + /** TRGM similarity when searching `visibility`. Returns null when no trgm search filter is active. */ + visibilityTrgmSimilarity?: number | null; +} +/** Normalized repository events from local hooks and external providers */ +export interface RepositoryEvent { + /** Authenticated actor behind the event (NULL when only the sending system was proven) */ + actorId?: string | null; + /** Commit the ref points at after the event */ + commitSha?: string | null; + createdAt?: string | null; + createdByPrincipal?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; + /** Provider delivery identifier, for redelivery dedupe (NULL for local hooks) */ + deliveryId?: string | null; + /** What happened: push, tag, pr_open, pr_merge, proposal_comment, manual */ + eventType?: string | null; + id: string; + /** Unverified provider detail (payload login, commit author, external URLs) */ + metadata?: Record | null; + /** Normalized event body the workflows read */ + payload?: Record | null; + /** Git ref the event concerns (refs/heads/main) */ + ref?: string | null; + /** Repository this event happened to */ + repositoryId?: string | null; + updatedAt?: string | null; + updatedByPrincipal?: string | null; +} +/** Workflows required to pass before a repository proposal merges */ +export interface RepositoryRequiredCheck { + createdAt?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; + id: string; + /** Repository whose merge gate requires this workflow */ + repositoryId?: string | null; + updatedAt?: string | null; + /** Workflow identity required by this repository gate */ + workflowId?: string | null; +} +/** Bindings from a repository event to the flow graph that should run */ +export interface RepositoryWorkflow { + /** Whether a new build cancels a running build with the same concurrency key instead of queueing */ + cancelInProgress?: boolean | null; + /** Builds of this workflow sharing this key run one at a time (NULL = unlimited) */ + concurrencyKey?: string | null; + createdAt?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; + /** Event type that fires this workflow */ + eventType?: string | null; + /** Flow graph to run when this workflow fires */ + graphId?: string | null; + id: string; + /** Static inputs merged into the graph run alongside the event */ + inputs?: Record | null; + /** Whether matching events fire this workflow */ + isEnabled?: boolean | null; + /** Human-readable workflow name */ + name?: string | null; + /** Glob the event ref must match (NULL matches any ref) */ + refPattern?: string | null; + /** Repository whose events this workflow listens to */ + repositoryId?: string | null; + /** Secret names this workflow's builds may resolve, intersected with the build lane's realm */ + requiredSecrets?: string[] | null; + /** URL-safe identifier, unique within the repository */ + slug?: string | null; + updatedAt?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +/** Unified K8s resource declarations — stores desired state (spec) and observed state (status) for all resource kinds within a namespace */ +export interface Resource { + /** Freeform metadata for tooling and operational notes */ + annotations?: Record | null; + /** CPU limit in millicores, derived from spec.resources.limits.cpu (NULL if unset/invalid) */ + cpuLimitMillicores?: string | null; + /** Requested CPU in millicores, derived from spec.resources.requests.cpu (NULL if unset/invalid) */ + cpuRequestMillicores?: string | null; + createdAt?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; + /** Cumulative error count for this resource */ + errorCount?: number | null; + id: string; + /** Pinned image reference this resource runs (registry host/repository:tag or @digest), written by promotion; NULL means spec.image decides */ + imageRef?: string | null; + /** Installation ("release") this resource belongs to (NULL for standalone resources) */ + installationId?: string | null; + /** Provider slugs (e.g. mailgun, postgres) associated with this resource. The UI uses this to auto-fill required_secrets and required_configs from integration_providers. */ + integrations?: string[] | null; + /** Resource kind: Deployment, StatefulSet, Job, Service, Ingress, Certificate, ClusterIssuer */ + kind?: string | null; + /** Key/value pairs for selecting and filtering resources */ + labels?: Record | null; + /** Most recent provisioning or runtime error message */ + lastError?: string | null; + /** Last time a usage heartbeat was received for this resource (NULL until first heartbeat) */ + lastHeartbeatAt?: string | null; + /** Memory limit in bytes, derived from spec.resources.limits.memory (NULL if unset/invalid) */ + memoryLimitBytes?: string | null; + /** Requested memory in bytes, derived from spec.resources.requests.memory (NULL if unset/invalid) */ + memoryRequestBytes?: string | null; + /** Human-readable resource name */ + name?: string | null; + /** Namespace this resource belongs to (security boundary, maps to K8s namespace) */ + namespaceId?: string | null; + /** Config/secret realm this resource resolves against. Per key, the realm-specific atom wins over the NULL-realm default. NULL = the default lane. */ + realm?: string | null; + /** Desired pod count, derived from spec.replicas — the multiplier for total requested capacity (NULL if unset/invalid) */ + replicas?: number | null; + /** Embedded config requirements: array of (name, required, provider) tuples — extends the linked definition's requirements. provider is the integration slug this requirement belongs to, if any. */ + requiredConfigs?: ResourceRequirement[] | null; + /** Embedded secret requirements: array of (name, required, provider) tuples — extends the linked definition's requirements. provider is the integration slug this requirement belongs to, if any. */ + requiredSecrets?: ResourceRequirement[] | null; + /** Definition template this resource was created from (NULL for standalone resources) */ + resourceDefinitionId?: string | null; + /** URL-safe identifier, unique within (namespace_id, kind) */ + slug?: string | null; + /** Desired state — kind-specific configuration (image, ports, resources, etc.). Opaque to DB; validated by K8s. */ + spec?: Record | null; + /** Resource lifecycle status: pending, provisioning, active, completed, failed, draining, deleting */ + status?: string | null; + /** Observed state from K8s — populated by handlers after reconciliation (service_url, clone_url, replicas, etc.) */ + statusObserved?: Record | null; + /** Storage class/tier, derived from the legacy spec.storage_class else spec.storage[0].class (NULL if unset) */ + storageClass?: string | null; + /** Declared persistent volume bytes per pod, summed over spec.storage[] plus the legacy spec.storage_size (NULL if none declared) */ + storageSizeBytes?: string | null; + /** Total declared persistent volume bytes for the resource: per-pod bytes times replicas for StatefulSet (per-ordinal claims), per-pod bytes otherwise (claims shared across replicas) */ + storageTotalBytes?: string | null; + updatedAt?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +export interface ResourceDeclaredCapacity { + cpuLimitMillicores?: string | null; + cpuRequestMillicores?: string | null; + installationId?: string | null; + isTransient?: boolean | null; + kind?: string | null; + memoryLimitBytes?: string | null; + memoryRequestBytes?: string | null; + namespaceId?: string | null; + podCountMax?: number | null; + podCountMin?: number | null; + source?: string | null; + sourceId?: string | null; + storageSizeBytes?: string | null; + storageTotalBytes?: string | null; +} +/** Resource definitions — templates for resource kinds declaring default spec and secret/config requirements */ +export interface ResourceDefinition { + /** Freeform metadata for tooling and operational notes */ + annotations?: Record | null; + createdAt?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; + /** Template spec for creating resource instances of this kind */ + defaultSpec?: Record | null; + /** What this resource definition provides */ + description?: string | null; + id: string; + /** Provider slugs (e.g. mailgun, postgres) associated with this resource definition. The UI uses this to auto-fill required_secrets and required_configs from integration_providers. */ + integrations?: string[] | null; + /** Resource kind: Deployment, StatefulSet, Job, Service, Ingress, Certificate, ClusterIssuer, or custom kinds */ + kind?: string | null; + /** Key/value pairs for selecting and filtering definitions */ + labels?: Record | null; + /** Human-readable definition name */ + name?: string | null; /** Namespace this definition belongs to (security boundary, maps to K8s namespace) */ namespaceId?: string | null; /** Declared parameter interface: [{key,label,type,default,required,min,max,options,group,order,bindings:[{path,template,scale,round,unit}]}]. Installation params are validated and compiled through these declarations; [] keeps the legacy raw spec overlay. */ @@ -1726,10 +3238,11 @@ export interface ResourceDefinition { stepUpMinAge?: string | null; updatedAt?: string | null; updatedBy?: string | null; + updatedByPrincipal?: string | null; } /** Resource lifecycle events — audit log of provisioning, updates, and failure events */ export interface ResourceEvent { - /** User who triggered this event (NULL for system/automated) */ + /** User who triggered this event; NULL only when no human actor was proven */ actorId?: string | null; /** Event timestamp (partition key) */ createdAt?: string | null; @@ -1752,6 +3265,7 @@ export interface ResourceInstallation { commitId?: string | null; createdAt?: string | null; createdBy?: string | null; + createdByPrincipal?: string | null; /** Database that owns this resource (database-scoped isolation) */ databaseId?: string | null; id: string; @@ -1771,6 +3285,27 @@ export interface ResourceInstallation { storeId?: string | null; updatedAt?: string | null; updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +export interface ResourceObservedStorage { + capacity?: string | null; + capacityBytes?: string | null; + claimName?: string | null; + declaredStorageClass?: string | null; + declaredStorageSizeBytes?: string | null; + declaredStorageTotalBytes?: string | null; + installationId?: string | null; + isBound?: boolean | null; + kind?: string | null; + namespaceId?: string | null; + phase?: string | null; + requested?: string | null; + requestedBytes?: string | null; + resourceId?: string | null; + resourceStatus?: string | null; + slug?: string | null; + storageClass?: string | null; + storageName?: string | null; } /** On-demand resource status checks — diagnostic snapshots from the runtime (K8s status, conditions, log tails) */ export interface ResourceStatusCheck { @@ -1864,9 +3399,11 @@ export interface ResourcesHealth { cpuRequestMillicores?: string | null; createdAt?: string | null; createdBy?: string | null; + createdByPrincipal?: string | null; databaseId?: string | null; errorCount?: number | null; id: string; + imageRef?: string | null; installationId?: string | null; integrations?: string[] | null; kind?: string | null; @@ -1889,8 +3426,10 @@ export interface ResourcesHealth { statusObserved?: Record | null; storageClass?: string | null; storageSizeBytes?: string | null; + storageTotalBytes?: string | null; updatedAt?: string | null; updatedBy?: string | null; + updatedByPrincipal?: string | null; } export interface ResourcesRequirementsState { configHash?: string | null; @@ -1920,6 +3459,7 @@ export interface WebhookEndpoint { active?: boolean | null; createdAt?: string | null; createdBy?: string | null; + createdByPrincipal?: string | null; /** Database that owns this resource (database-scoped isolation) */ databaseId?: string | null; /** Same-scope function definition invoked on delivery. The function must list the webhook channel in access_channels. */ @@ -1939,6 +3479,7 @@ export interface WebhookEndpoint { signingSecretName?: string | null; updatedAt?: string | null; updatedBy?: string | null; + updatedByPrincipal?: string | null; } /** Durable webhook acceptance log — one row per accepted delivery, deduplicated on (endpoint_id, external_event_id), linked to the pending function invocation it enqueued */ export interface WebhookEvent { @@ -1979,7 +3520,32 @@ export interface PageInfo { endCursor?: string | null; } // ============ Entity Relation Types ============ +export interface BuildRelations { + event?: RepositoryEvent | null; + proposal?: Proposal | null; + repository?: Repository | null; + workflow?: RepositoryWorkflow | null; +} +export interface BuildStepRelations {} +export interface BuilderBindingRelations { + namespace?: Namespace | null; +} export interface ContentPresetRelations {} +export interface DatabaseFunctionGraphRelations { + databaseFunctionGraphExecutionsByGraphId?: ConnectionResult; + functionDefinitionsByGraphId?: ConnectionResult; + repositoryWorkflowsByGraphId?: ConnectionResult; +} +export interface DatabaseFunctionGraphExecutionRelations { + graph?: DatabaseFunctionGraph | null; +} +export interface DatabaseFunctionGraphExecutionNodeStateRelations {} +export interface DatabaseFunctionGraphExecutionOutputRelations {} +export interface DatabaseGraphCommitRelations {} +export interface DatabaseGraphGetAllTreeNodesRecordRelations {} +export interface DatabaseGraphObjectRelations {} +export interface DatabaseGraphRefRelations {} +export interface DatabaseGraphStoreRelations {} export interface DbPresetRelations {} export interface FunctionApiBindingRelations { functionDefinition?: FunctionDefinition | null; @@ -1989,6 +3555,7 @@ export interface FunctionCapabilityBindingRelations { function?: FunctionDefinition | null; } export interface FunctionDefinitionRelations { + graph?: DatabaseFunctionGraph | null; functionApiBindings?: ConnectionResult; functionCapabilityBindingsByFunctionId?: ConnectionResult; webhookEndpoints?: ConnectionResult; @@ -2002,6 +3569,7 @@ export interface FunctionGraphCommitRelations {} export interface FunctionGraphRelations { functionGraphExecutionsByGraphId?: ConnectionResult; platformFunctionDefinitionsByGraphId?: ConnectionResult; + platformRepositoryWorkflowsByGraphId?: ConnectionResult; } export interface FunctionGraphExecutionRelations { graph?: FunctionGraph | null; @@ -2016,6 +3584,12 @@ export interface FunctionInvocationRelations { apiBinding?: FunctionApiBinding | null; } export interface GetAllTreeNodesRecordRelations {} +export interface ImageRelations { + imageGrants?: ConnectionResult; +} +export interface ImageGrantRelations { + image?: Image | null; +} export interface InfraCommitRelations {} export interface InfraGetAllTreeNodesRecordRelations {} export interface InfraObjectRelations {} @@ -2023,13 +3597,25 @@ export interface InfraRefRelations {} export interface InfraStoreRelations {} export interface IntegrationProviderRelations {} export interface NamespaceRelations { + builderBindings?: ConnectionResult; functionDeployments?: ConnectionResult; + registryBindings?: ConnectionResult; resourceDefinitions?: ConnectionResult; resourceInstallations?: ConnectionResult; resources?: ConnectionResult; webhookEndpoints?: ConnectionResult; } export interface NamespaceEventRelations {} +export interface PlatformBuildRelations { + event?: PlatformRepositoryEvent | null; + proposal?: PlatformProposal | null; + repository?: PlatformRepository | null; + workflow?: PlatformRepositoryWorkflow | null; +} +export interface PlatformBuildStepRelations {} +export interface PlatformBuilderBindingRelations { + namespace?: PlatformNamespace | null; +} export interface PlatformFunctionApiBindingRelations { functionDefinition?: PlatformFunctionDefinition | null; platformFunctionInvocationsByApiBindingId?: ConnectionResult; @@ -2052,19 +3638,90 @@ export interface PlatformFunctionInvocationAttemptRelations {} export interface PlatformFunctionInvocationRelations { apiBinding?: PlatformFunctionApiBinding | null; } +export interface PlatformImageRelations { + platformImageGrantsByImageId?: ConnectionResult; +} +export interface PlatformImageGrantRelations { + image?: PlatformImage | null; +} export interface PlatformInfraCommitRelations {} export interface PlatformInfraGetAllTreeNodesRecordRelations {} export interface PlatformInfraObjectRelations {} export interface PlatformInfraRefRelations {} export interface PlatformInfraStoreRelations {} +export interface PlatformK8sResourceKindRelations {} +export interface PlatformK8sSpecRuleRelations {} export interface PlatformNamespaceRelations { + platformBuilderBindingsByNamespaceId?: ConnectionResult; platformFunctionDeploymentsByNamespaceId?: ConnectionResult; + platformRegistryBindingsByNamespaceId?: ConnectionResult; platformResourceDefinitionsByNamespaceId?: ConnectionResult; platformResourceInstallationsByNamespaceId?: ConnectionResult; platformResourcesByNamespaceId?: ConnectionResult; platformWebhookEndpointsByNamespaceId?: ConnectionResult; } export interface PlatformNamespaceEventRelations {} +export interface PlatformProposalCommentRelations { + proposal?: PlatformProposal | null; + platformProposalReactionsByCommentId?: ConnectionResult; +} +export interface PlatformProposalRelations { + parent?: PlatformProposal | null; + repository?: PlatformRepository | null; + childPlatformProposals?: ConnectionResult; + platformBuildsByProposalId?: ConnectionResult; + platformProposalCommentsByProposalId?: ConnectionResult; + platformProposalFileViewsByProposalId?: ConnectionResult; + platformProposalReactionsByProposalId?: ConnectionResult; + platformProposalReviewsByProposalId?: ConnectionResult; + platformProposalsChunksByPlatformProposalsId?: ConnectionResult; +} +export interface PlatformProposalFileViewRelations { + proposal?: PlatformProposal | null; +} +export interface PlatformProposalReactionRelations { + comment?: PlatformProposalComment | null; + proposal?: PlatformProposal | null; +} +export interface PlatformProposalReviewRelations { + proposal?: PlatformProposal | null; +} +export interface PlatformProposalsChunkRelations { + platformProposals?: PlatformProposal | null; +} +export interface PlatformRegistryBindingRelations { + namespace?: PlatformNamespace | null; + registry?: PlatformRegistry | null; +} +export interface PlatformRegistryRelations { + installation?: PlatformResourceInstallation | null; + platformRegistryBindingsByRegistryId?: ConnectionResult; + platformRegistryGrantsByRegistryId?: ConnectionResult; +} +export interface PlatformRegistryGrantRelations { + registry?: PlatformRegistry | null; +} +export interface PlatformRepositoryRelations { + platformBuildsByRepositoryId?: ConnectionResult; + platformProposalsByRepositoryId?: ConnectionResult; + platformRepositoryEventsByRepositoryId?: ConnectionResult; + platformRepositoryRequiredChecksByRepositoryId?: ConnectionResult; + platformRepositoryWorkflowsByRepositoryId?: ConnectionResult; +} +export interface PlatformRepositoryEventRelations { + repository?: PlatformRepository | null; + platformBuildsByEventId?: ConnectionResult; +} +export interface PlatformRepositoryRequiredCheckRelations { + repository?: PlatformRepository | null; + workflow?: PlatformRepositoryWorkflow | null; +} +export interface PlatformRepositoryWorkflowRelations { + graph?: FunctionGraph | null; + repository?: PlatformRepository | null; + platformBuildsByWorkflowId?: ConnectionResult; + platformRepositoryRequiredChecksByWorkflowId?: ConnectionResult; +} export interface PlatformResourceRelations { installation?: PlatformResourceInstallation | null; namespace?: PlatformNamespace | null; @@ -2079,8 +3736,10 @@ export interface PlatformResourceDefinitionRelations { export interface PlatformResourceEventRelations {} export interface PlatformResourceInstallationRelations { namespace?: PlatformNamespace | null; + platformRegistriesByInstallationId?: ConnectionResult; platformResourcesByInstallationId?: ConnectionResult; } +export interface PlatformResourceObservedStorageRelations {} export interface PlatformResourceStatusCheckRelations { resource?: PlatformResource | null; } @@ -2098,6 +3757,67 @@ export interface PlatformWebhookEndpointRelations { export interface PlatformWebhookEventRelations { endpoint?: PlatformWebhookEndpoint | null; } +export interface ProposalCommentRelations { + proposal?: Proposal | null; + proposalReactionsByCommentId?: ConnectionResult; +} +export interface ProposalRelations { + parent?: Proposal | null; + repository?: Repository | null; + builds?: ConnectionResult; + childProposals?: ConnectionResult; + proposalComments?: ConnectionResult; + proposalFileViews?: ConnectionResult; + proposalReactions?: ConnectionResult; + proposalReviews?: ConnectionResult; + proposalsChunksByProposalsId?: ConnectionResult; +} +export interface ProposalFileViewRelations { + proposal?: Proposal | null; +} +export interface ProposalReactionRelations { + comment?: ProposalComment | null; + proposal?: Proposal | null; +} +export interface ProposalReviewRelations { + proposal?: Proposal | null; +} +export interface ProposalsChunkRelations { + proposals?: Proposal | null; +} +export interface RegistryBindingRelations { + namespace?: Namespace | null; + registry?: Registry | null; +} +export interface RegistryRelations { + installation?: ResourceInstallation | null; + registryBindings?: ConnectionResult; + registryGrants?: ConnectionResult; +} +export interface RegistryGrantRelations { + registry?: Registry | null; +} +export interface RepositoryRelations { + builds?: ConnectionResult; + proposals?: ConnectionResult; + repositoryEvents?: ConnectionResult; + repositoryRequiredChecks?: ConnectionResult; + repositoryWorkflows?: ConnectionResult; +} +export interface RepositoryEventRelations { + repository?: Repository | null; + buildsByEventId?: ConnectionResult; +} +export interface RepositoryRequiredCheckRelations { + repository?: Repository | null; + workflow?: RepositoryWorkflow | null; +} +export interface RepositoryWorkflowRelations { + graph?: DatabaseFunctionGraph | null; + repository?: Repository | null; + buildsByWorkflowId?: ConnectionResult; + repositoryRequiredChecksByWorkflowId?: ConnectionResult; +} export interface ResourceRelations { installation?: ResourceInstallation | null; namespace?: Namespace | null; @@ -2112,8 +3832,10 @@ export interface ResourceDefinitionRelations { export interface ResourceEventRelations {} export interface ResourceInstallationRelations { namespace?: Namespace | null; + registriesByInstallationId?: ConnectionResult; resourcesByInstallationId?: ConnectionResult; } +export interface ResourceObservedStorageRelations {} export interface ResourceStatusCheckRelations { resource?: Resource | null; } @@ -2132,7 +3854,24 @@ export interface WebhookEventRelations { endpoint?: WebhookEndpoint | null; } // ============ Entity Types With Relations ============ +export type BuildWithRelations = Build & BuildRelations; +export type BuildStepWithRelations = BuildStep & BuildStepRelations; +export type BuilderBindingWithRelations = BuilderBinding & BuilderBindingRelations; export type ContentPresetWithRelations = ContentPreset & ContentPresetRelations; +export type DatabaseFunctionGraphWithRelations = DatabaseFunctionGraph & + DatabaseFunctionGraphRelations; +export type DatabaseFunctionGraphExecutionWithRelations = DatabaseFunctionGraphExecution & + DatabaseFunctionGraphExecutionRelations; +export type DatabaseFunctionGraphExecutionNodeStateWithRelations = + DatabaseFunctionGraphExecutionNodeState & DatabaseFunctionGraphExecutionNodeStateRelations; +export type DatabaseFunctionGraphExecutionOutputWithRelations = + DatabaseFunctionGraphExecutionOutput & DatabaseFunctionGraphExecutionOutputRelations; +export type DatabaseGraphCommitWithRelations = DatabaseGraphCommit & DatabaseGraphCommitRelations; +export type DatabaseGraphGetAllTreeNodesRecordWithRelations = DatabaseGraphGetAllTreeNodesRecord & + DatabaseGraphGetAllTreeNodesRecordRelations; +export type DatabaseGraphObjectWithRelations = DatabaseGraphObject & DatabaseGraphObjectRelations; +export type DatabaseGraphRefWithRelations = DatabaseGraphRef & DatabaseGraphRefRelations; +export type DatabaseGraphStoreWithRelations = DatabaseGraphStore & DatabaseGraphStoreRelations; export type DbPresetWithRelations = DbPreset & DbPresetRelations; export type FunctionApiBindingWithRelations = FunctionApiBinding & FunctionApiBindingRelations; export type FunctionCapabilityBindingWithRelations = FunctionCapabilityBinding & @@ -2159,6 +3898,8 @@ export type FunctionInvocationAttemptWithRelations = FunctionInvocationAttempt & export type FunctionInvocationWithRelations = FunctionInvocation & FunctionInvocationRelations; export type GetAllTreeNodesRecordWithRelations = GetAllTreeNodesRecord & GetAllTreeNodesRecordRelations; +export type ImageWithRelations = Image & ImageRelations; +export type ImageGrantWithRelations = ImageGrant & ImageGrantRelations; export type InfraCommitWithRelations = InfraCommit & InfraCommitRelations; export type InfraGetAllTreeNodesRecordWithRelations = InfraGetAllTreeNodesRecord & InfraGetAllTreeNodesRecordRelations; @@ -2168,6 +3909,10 @@ export type InfraStoreWithRelations = InfraStore & InfraStoreRelations; export type IntegrationProviderWithRelations = IntegrationProvider & IntegrationProviderRelations; export type NamespaceWithRelations = Namespace & NamespaceRelations; export type NamespaceEventWithRelations = NamespaceEvent & NamespaceEventRelations; +export type PlatformBuildWithRelations = PlatformBuild & PlatformBuildRelations; +export type PlatformBuildStepWithRelations = PlatformBuildStep & PlatformBuildStepRelations; +export type PlatformBuilderBindingWithRelations = PlatformBuilderBinding & + PlatformBuilderBindingRelations; export type PlatformFunctionApiBindingWithRelations = PlatformFunctionApiBinding & PlatformFunctionApiBindingRelations; export type PlatformFunctionCapabilityBindingWithRelations = PlatformFunctionCapabilityBinding & @@ -2184,15 +3929,43 @@ export type PlatformFunctionInvocationAttemptWithRelations = PlatformFunctionInv PlatformFunctionInvocationAttemptRelations; export type PlatformFunctionInvocationWithRelations = PlatformFunctionInvocation & PlatformFunctionInvocationRelations; +export type PlatformImageWithRelations = PlatformImage & PlatformImageRelations; +export type PlatformImageGrantWithRelations = PlatformImageGrant & PlatformImageGrantRelations; export type PlatformInfraCommitWithRelations = PlatformInfraCommit & PlatformInfraCommitRelations; export type PlatformInfraGetAllTreeNodesRecordWithRelations = PlatformInfraGetAllTreeNodesRecord & PlatformInfraGetAllTreeNodesRecordRelations; export type PlatformInfraObjectWithRelations = PlatformInfraObject & PlatformInfraObjectRelations; export type PlatformInfraRefWithRelations = PlatformInfraRef & PlatformInfraRefRelations; export type PlatformInfraStoreWithRelations = PlatformInfraStore & PlatformInfraStoreRelations; +export type PlatformK8sResourceKindWithRelations = PlatformK8sResourceKind & + PlatformK8sResourceKindRelations; +export type PlatformK8sSpecRuleWithRelations = PlatformK8sSpecRule & PlatformK8sSpecRuleRelations; export type PlatformNamespaceWithRelations = PlatformNamespace & PlatformNamespaceRelations; export type PlatformNamespaceEventWithRelations = PlatformNamespaceEvent & PlatformNamespaceEventRelations; +export type PlatformProposalCommentWithRelations = PlatformProposalComment & + PlatformProposalCommentRelations; +export type PlatformProposalWithRelations = PlatformProposal & PlatformProposalRelations; +export type PlatformProposalFileViewWithRelations = PlatformProposalFileView & + PlatformProposalFileViewRelations; +export type PlatformProposalReactionWithRelations = PlatformProposalReaction & + PlatformProposalReactionRelations; +export type PlatformProposalReviewWithRelations = PlatformProposalReview & + PlatformProposalReviewRelations; +export type PlatformProposalsChunkWithRelations = PlatformProposalsChunk & + PlatformProposalsChunkRelations; +export type PlatformRegistryBindingWithRelations = PlatformRegistryBinding & + PlatformRegistryBindingRelations; +export type PlatformRegistryWithRelations = PlatformRegistry & PlatformRegistryRelations; +export type PlatformRegistryGrantWithRelations = PlatformRegistryGrant & + PlatformRegistryGrantRelations; +export type PlatformRepositoryWithRelations = PlatformRepository & PlatformRepositoryRelations; +export type PlatformRepositoryEventWithRelations = PlatformRepositoryEvent & + PlatformRepositoryEventRelations; +export type PlatformRepositoryRequiredCheckWithRelations = PlatformRepositoryRequiredCheck & + PlatformRepositoryRequiredCheckRelations; +export type PlatformRepositoryWorkflowWithRelations = PlatformRepositoryWorkflow & + PlatformRepositoryWorkflowRelations; export type PlatformResourceWithRelations = PlatformResource & PlatformResourceRelations; export type PlatformResourceDeclaredCapacityWithRelations = PlatformResourceDeclaredCapacity & PlatformResourceDeclaredCapacityRelations; @@ -2202,6 +3975,8 @@ export type PlatformResourceEventWithRelations = PlatformResourceEvent & PlatformResourceEventRelations; export type PlatformResourceInstallationWithRelations = PlatformResourceInstallation & PlatformResourceInstallationRelations; +export type PlatformResourceObservedStorageWithRelations = PlatformResourceObservedStorage & + PlatformResourceObservedStorageRelations; export type PlatformResourceStatusCheckWithRelations = PlatformResourceStatusCheck & PlatformResourceStatusCheckRelations; export type PlatformResourceUsageLogWithRelations = PlatformResourceUsageLog & @@ -2220,6 +3995,20 @@ export type PlatformWebhookEndpointWithRelations = PlatformWebhookEndpoint & PlatformWebhookEndpointRelations; export type PlatformWebhookEventWithRelations = PlatformWebhookEvent & PlatformWebhookEventRelations; +export type ProposalCommentWithRelations = ProposalComment & ProposalCommentRelations; +export type ProposalWithRelations = Proposal & ProposalRelations; +export type ProposalFileViewWithRelations = ProposalFileView & ProposalFileViewRelations; +export type ProposalReactionWithRelations = ProposalReaction & ProposalReactionRelations; +export type ProposalReviewWithRelations = ProposalReview & ProposalReviewRelations; +export type ProposalsChunkWithRelations = ProposalsChunk & ProposalsChunkRelations; +export type RegistryBindingWithRelations = RegistryBinding & RegistryBindingRelations; +export type RegistryWithRelations = Registry & RegistryRelations; +export type RegistryGrantWithRelations = RegistryGrant & RegistryGrantRelations; +export type RepositoryWithRelations = Repository & RepositoryRelations; +export type RepositoryEventWithRelations = RepositoryEvent & RepositoryEventRelations; +export type RepositoryRequiredCheckWithRelations = RepositoryRequiredCheck & + RepositoryRequiredCheckRelations; +export type RepositoryWorkflowWithRelations = RepositoryWorkflow & RepositoryWorkflowRelations; export type ResourceWithRelations = Resource & ResourceRelations; export type ResourceDeclaredCapacityWithRelations = ResourceDeclaredCapacity & ResourceDeclaredCapacityRelations; @@ -2227,6 +4016,8 @@ export type ResourceDefinitionWithRelations = ResourceDefinition & ResourceDefin export type ResourceEventWithRelations = ResourceEvent & ResourceEventRelations; export type ResourceInstallationWithRelations = ResourceInstallation & ResourceInstallationRelations; +export type ResourceObservedStorageWithRelations = ResourceObservedStorage & + ResourceObservedStorageRelations; export type ResourceStatusCheckWithRelations = ResourceStatusCheck & ResourceStatusCheckRelations; export type ResourceUsageLogWithRelations = ResourceUsageLog & ResourceUsageLogRelations; export type ResourceUsageSummaryWithRelations = ResourceUsageSummary & @@ -2240,21 +4031,232 @@ export type ResourcesResolvedRequirementWithRelations = ResourcesResolvedRequire export type WebhookEndpointWithRelations = WebhookEndpoint & WebhookEndpointRelations; export type WebhookEventWithRelations = WebhookEvent & WebhookEventRelations; // ============ Entity Select Types ============ -export type ContentPresetSelect = { - active?: boolean; - commitId?: boolean; +export type BuildSelect = { + actorId?: boolean; + attempt?: boolean; + commitSha?: boolean; + conclusion?: boolean; createdAt?: boolean; - definition?: boolean; - description?: boolean; + createdByPrincipal?: boolean; + databaseId?: boolean; + eventId?: boolean; + finishedAt?: boolean; id?: boolean; - kind?: boolean; - label?: boolean; - slug?: boolean; - storeId?: boolean; + imageRef?: boolean; + jobId?: boolean; + logs?: boolean; + matrixKey?: boolean; + metadata?: boolean; + proposalId?: boolean; + ref?: boolean; + repositoryId?: boolean; + startedAt?: boolean; + status?: boolean; updatedAt?: boolean; + updatedByPrincipal?: boolean; + workflowId?: boolean; + event?: { + select: RepositoryEventSelect; + }; + proposal?: { + select: ProposalSelect; + }; + repository?: { + select: RepositorySelect; + }; + workflow?: { + select: RepositoryWorkflowSelect; + }; }; -export type DbPresetSelect = { - active?: boolean; +export type BuildStepSelect = { + buildId?: boolean; + createdByPrincipal?: boolean; + databaseId?: boolean; + exitCode?: boolean; + finishedAt?: boolean; + id?: boolean; + kind?: boolean; + logBytes?: boolean; + logOffset?: boolean; + name?: boolean; + parentSeq?: boolean; + recordedAt?: boolean; + seq?: boolean; + startedAt?: boolean; + status?: boolean; + summary?: boolean; +}; +export type BuilderBindingSelect = { + createdAt?: boolean; + createdBy?: boolean; + createdByPrincipal?: boolean; + databaseId?: boolean; + id?: boolean; + installationId?: boolean; + lastError?: boolean; + metadata?: boolean; + namespaceId?: boolean; + observedHost?: boolean; + realm?: boolean; + status?: boolean; + updatedAt?: boolean; + updatedBy?: boolean; + updatedByPrincipal?: boolean; + namespace?: { + select: NamespaceSelect; + }; +}; +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 DatabaseFunctionGraphSelect = { + context?: boolean; + createdAt?: boolean; + createdBy?: boolean; + databaseId?: boolean; + definitionsCommitId?: boolean; + description?: boolean; + id?: boolean; + isValid?: boolean; + name?: boolean; + storeId?: boolean; + updatedAt?: boolean; + validationErrors?: boolean; + databaseFunctionGraphExecutionsByGraphId?: { + select: DatabaseFunctionGraphExecutionSelect; + first?: number; + filter?: DatabaseFunctionGraphExecutionFilter; + orderBy?: DatabaseFunctionGraphExecutionOrderBy[]; + }; + functionDefinitionsByGraphId?: { + select: FunctionDefinitionSelect; + first?: number; + filter?: FunctionDefinitionFilter; + orderBy?: FunctionDefinitionOrderBy[]; + }; + repositoryWorkflowsByGraphId?: { + select: RepositoryWorkflowSelect; + first?: number; + filter?: RepositoryWorkflowFilter; + orderBy?: RepositoryWorkflowOrderBy[]; + }; +}; +export type DatabaseFunctionGraphExecutionSelect = { + actorId?: boolean; + completedAt?: boolean; + currentWave?: boolean; + databaseId?: boolean; + definitionsCommitId?: boolean; + entityId?: boolean; + entityType?: boolean; + errorCode?: boolean; + errorMessage?: boolean; + executionPlan?: boolean; + graphId?: boolean; + id?: boolean; + inputPayload?: boolean; + invocationCreatedAt?: boolean; + invocationId?: boolean; + lastProgressAt?: boolean; + maxPendingJobs?: boolean; + maxTicks?: boolean; + nodeOutputs?: boolean; + organizationId?: boolean; + outputNames?: boolean; + outputNode?: boolean; + outputPayload?: boolean; + outputPort?: boolean; + parentExecutionId?: boolean; + parentInvocationId?: boolean; + parentNodeName?: boolean; + principalId?: boolean; + startedAt?: boolean; + status?: boolean; + tickCount?: boolean; + timeoutAt?: boolean; + graph?: { + select: DatabaseFunctionGraphSelect; + }; +}; +export type DatabaseFunctionGraphExecutionNodeStateSelect = { + callbackInputs?: boolean; + callbackMeta?: boolean; + callbackTokenHash?: boolean; + completedAt?: boolean; + createdAt?: boolean; + databaseId?: boolean; + errorCode?: boolean; + errorMessage?: boolean; + executionId?: boolean; + expiryDefaultOutput?: boolean; + expiryEscalatedAt?: boolean; + expiryPolicy?: boolean; + id?: boolean; + nodeName?: boolean; + nodePath?: boolean; + outputId?: boolean; + startedAt?: boolean; + status?: boolean; + waitingDeadlineAt?: boolean; + waitingOn?: boolean; + waitingSince?: boolean; +}; +export type DatabaseFunctionGraphExecutionOutputSelect = { + createdAt?: boolean; + data?: boolean; + databaseId?: boolean; + hash?: boolean; + id?: boolean; +}; +export type DatabaseGraphCommitSelect = { + authorId?: boolean; + committerId?: boolean; + databaseId?: boolean; + date?: boolean; + id?: boolean; + message?: boolean; + parentIds?: boolean; + storeId?: boolean; + treeId?: boolean; +}; +export type DatabaseGraphGetAllTreeNodesRecordSelect = { + data?: boolean; + path?: boolean; +}; +export type DatabaseGraphObjectSelect = { + createdAt?: boolean; + data?: boolean; + databaseId?: boolean; + id?: boolean; + kids?: boolean; + ktree?: boolean; +}; +export type DatabaseGraphRefSelect = { + commitId?: boolean; + databaseId?: boolean; + id?: boolean; + name?: boolean; + storeId?: boolean; +}; +export type DatabaseGraphStoreSelect = { + createdAt?: boolean; + databaseId?: boolean; + hash?: boolean; + id?: boolean; + name?: boolean; +}; +export type DbPresetSelect = { + active?: boolean; commitId?: boolean; createdAt?: boolean; definition?: boolean; @@ -2301,11 +4303,13 @@ export type FunctionCapabilityBindingSelect = { }; export type FunctionDefinitionSelect = { accessChannels?: boolean; + anonymousCallable?: boolean; category?: boolean; concurrency?: boolean; cpuLimitMillicores?: boolean; cpuRequestMillicores?: boolean; createdAt?: boolean; + createdByPrincipal?: boolean; databaseId?: boolean; description?: boolean; fnCategory?: boolean; @@ -2330,6 +4334,7 @@ export type FunctionDefinitionSelect = { publishedAt?: boolean; queueName?: boolean; requiredBuckets?: boolean; + requiredCapabilities?: boolean; requiredConfigs?: boolean; requiredModels?: boolean; requiredModules?: boolean; @@ -2343,7 +4348,11 @@ export type FunctionDefinitionSelect = { taskIdentifier?: boolean; timeoutSeconds?: boolean; updatedAt?: boolean; + updatedByPrincipal?: boolean; volatile?: boolean; + graph?: { + select: DatabaseFunctionGraphSelect; + }; functionApiBindings?: { select: FunctionApiBindingSelect; first?: number; @@ -2367,6 +4376,7 @@ export type FunctionDeploymentSelect = { annotations?: boolean; concurrency?: boolean; createdAt?: boolean; + createdByPrincipal?: boolean; databaseId?: boolean; errorCount?: boolean; handlerName?: boolean; @@ -2387,6 +4397,7 @@ export type FunctionDeploymentSelect = { status?: boolean; timeoutSeconds?: boolean; updatedAt?: boolean; + updatedByPrincipal?: boolean; namespace?: { select: NamespaceSelect; }; @@ -2448,6 +4459,12 @@ export type FunctionGraphSelect = { filter?: PlatformFunctionDefinitionFilter; orderBy?: PlatformFunctionDefinitionOrderBy[]; }; + platformRepositoryWorkflowsByGraphId?: { + select: PlatformRepositoryWorkflowSelect; + first?: number; + filter?: PlatformRepositoryWorkflowFilter; + orderBy?: PlatformRepositoryWorkflowOrderBy[]; + }; }; export type FunctionGraphExecutionSelect = { actorId?: boolean; @@ -2495,6 +4512,9 @@ export type FunctionGraphExecutionNodeStateSelect = { errorCode?: boolean; errorMessage?: boolean; executionId?: boolean; + expiryDefaultOutput?: boolean; + expiryEscalatedAt?: boolean; + expiryPolicy?: boolean; id?: boolean; nodeName?: boolean; nodePath?: boolean; @@ -2502,6 +4522,9 @@ export type FunctionGraphExecutionNodeStateSelect = { scopeId?: boolean; startedAt?: boolean; status?: boolean; + waitingDeadlineAt?: boolean; + waitingOn?: boolean; + waitingSince?: boolean; }; export type FunctionGraphExecutionOutputSelect = { createdAt?: boolean; @@ -2553,16 +4576,21 @@ export type FunctionInvocationSelect = { channel?: boolean; completedAt?: boolean; createdAt?: boolean; + createdByPrincipal?: boolean; databaseId?: boolean; definitionScope?: boolean; durationMs?: boolean; + entityId?: boolean; + entityType?: boolean; error?: boolean; functionDefinitionId?: boolean; graphExecutionId?: boolean; id?: boolean; jobId?: boolean; + organizationId?: boolean; parentInvocationId?: boolean; payload?: boolean; + principalId?: boolean; provenance?: boolean; result?: boolean; startedAt?: boolean; @@ -2576,6 +4604,50 @@ export type GetAllTreeNodesRecordSelect = { data?: boolean; path?: boolean; }; +export type ImageSelect = { + createdAt?: boolean; + createdByPrincipal?: boolean; + databaseId?: boolean; + description?: boolean; + digest?: boolean; + expiresAt?: boolean; + id?: boolean; + isPublished?: boolean; + labels?: boolean; + metadata?: boolean; + name?: boolean; + ownerId?: boolean; + platformOnly?: boolean; + registryHost?: boolean; + repository?: boolean; + runtime?: boolean; + tag?: boolean; + updatedAt?: boolean; + updatedByPrincipal?: boolean; + imageGrants?: { + select: ImageGrantSelect; + first?: number; + filter?: ImageGrantFilter; + orderBy?: ImageGrantOrderBy[]; + }; +}; +export type ImageGrantSelect = { + actions?: boolean; + createdAt?: boolean; + createdByPrincipal?: boolean; + databaseId?: boolean; + expiresAt?: boolean; + grantedBy?: boolean; + granteeKey?: boolean; + granteeScope?: boolean; + id?: boolean; + imageId?: boolean; + updatedAt?: boolean; + updatedByPrincipal?: boolean; + image?: { + select: ImageSelect; + }; +}; export type InfraCommitSelect = { authorId?: boolean; committerId?: boolean; @@ -2629,6 +4701,7 @@ export type IntegrationProviderSelect = { }; export type NamespaceSelect = { annotations?: boolean; + clusterId?: boolean; createdAt?: boolean; databaseId?: boolean; description?: boolean; @@ -2641,12 +4714,24 @@ export type NamespaceSelect = { namespaceName?: boolean; status?: boolean; updatedAt?: boolean; + builderBindings?: { + select: BuilderBindingSelect; + first?: number; + filter?: BuilderBindingFilter; + orderBy?: BuilderBindingOrderBy[]; + }; functionDeployments?: { select: FunctionDeploymentSelect; first?: number; filter?: FunctionDeploymentFilter; orderBy?: FunctionDeploymentOrderBy[]; }; + registryBindings?: { + select: RegistryBindingSelect; + first?: number; + filter?: RegistryBindingFilter; + orderBy?: RegistryBindingOrderBy[]; + }; resourceDefinitions?: { select: ResourceDefinitionSelect; first?: number; @@ -2682,6 +4767,78 @@ export type NamespaceEventSelect = { metadata?: boolean; namespaceId?: boolean; }; +export type PlatformBuildSelect = { + actorId?: boolean; + attempt?: boolean; + commitSha?: boolean; + conclusion?: boolean; + createdAt?: boolean; + createdByPrincipal?: boolean; + eventId?: boolean; + finishedAt?: boolean; + id?: boolean; + imageRef?: boolean; + jobId?: boolean; + logs?: boolean; + matrixKey?: boolean; + metadata?: boolean; + proposalId?: boolean; + ref?: boolean; + repositoryId?: boolean; + startedAt?: boolean; + status?: boolean; + updatedAt?: boolean; + updatedByPrincipal?: boolean; + workflowId?: boolean; + event?: { + select: PlatformRepositoryEventSelect; + }; + proposal?: { + select: PlatformProposalSelect; + }; + repository?: { + select: PlatformRepositorySelect; + }; + workflow?: { + select: PlatformRepositoryWorkflowSelect; + }; +}; +export type PlatformBuildStepSelect = { + buildId?: boolean; + createdByPrincipal?: boolean; + exitCode?: boolean; + finishedAt?: boolean; + id?: boolean; + kind?: boolean; + logBytes?: boolean; + logOffset?: boolean; + name?: boolean; + parentSeq?: boolean; + recordedAt?: boolean; + seq?: boolean; + startedAt?: boolean; + status?: boolean; + summary?: boolean; +}; +export type PlatformBuilderBindingSelect = { + createdAt?: boolean; + createdBy?: boolean; + createdByPrincipal?: boolean; + id?: boolean; + installationId?: boolean; + lastError?: boolean; + metadata?: boolean; + namespaceId?: boolean; + observedHost?: boolean; + realm?: boolean; + status?: boolean; + updatedAt?: boolean; + updatedBy?: boolean; + updatedByPrincipal?: boolean; + namespace?: { + select: PlatformNamespaceSelect; + }; +}; export type PlatformFunctionApiBindingSelect = { alias?: boolean; apiId?: boolean; @@ -2716,12 +4873,14 @@ export type PlatformFunctionCapabilityBindingSelect = { }; export type PlatformFunctionDefinitionSelect = { accessChannels?: boolean; + anonymousCallable?: boolean; billable?: boolean; category?: boolean; concurrency?: boolean; cpuLimitMillicores?: boolean; cpuRequestMillicores?: boolean; createdAt?: boolean; + createdByPrincipal?: boolean; description?: boolean; fnCategory?: boolean; functionColumns?: boolean; @@ -2745,6 +4904,7 @@ export type PlatformFunctionDefinitionSelect = { publishedAt?: boolean; queueName?: boolean; requiredBuckets?: boolean; + requiredCapabilities?: boolean; requiredConfigs?: boolean; requiredModels?: boolean; requiredModules?: boolean; @@ -2759,6 +4919,7 @@ export type PlatformFunctionDefinitionSelect = { taskIdentifier?: boolean; timeoutSeconds?: boolean; updatedAt?: boolean; + updatedByPrincipal?: boolean; volatile?: boolean; graph?: { select: FunctionGraphSelect; @@ -2786,6 +4947,7 @@ export type PlatformFunctionDeploymentSelect = { annotations?: boolean; concurrency?: boolean; createdAt?: boolean; + createdByPrincipal?: boolean; errorCount?: boolean; handlerName?: boolean; id?: boolean; @@ -2805,6 +4967,7 @@ export type PlatformFunctionDeploymentSelect = { status?: boolean; timeoutSeconds?: boolean; updatedAt?: boolean; + updatedByPrincipal?: boolean; namespace?: { select: PlatformNamespaceSelect; }; @@ -2848,16 +5011,21 @@ export type PlatformFunctionInvocationSelect = { channel?: boolean; completedAt?: boolean; createdAt?: boolean; + createdByPrincipal?: boolean; databaseId?: boolean; definitionScope?: boolean; durationMs?: boolean; + entityId?: boolean; + entityType?: boolean; error?: boolean; functionDefinitionId?: boolean; graphExecutionId?: boolean; id?: boolean; jobId?: boolean; + organizationId?: boolean; parentInvocationId?: boolean; payload?: boolean; + principalId?: boolean; provenance?: boolean; result?: boolean; startedAt?: boolean; @@ -2867,6 +5035,48 @@ export type PlatformFunctionInvocationSelect = { select: PlatformFunctionApiBindingSelect; }; }; +export type PlatformImageSelect = { + createdAt?: boolean; + createdByPrincipal?: boolean; + description?: boolean; + digest?: boolean; + expiresAt?: boolean; + id?: boolean; + isPublished?: boolean; + labels?: boolean; + metadata?: boolean; + name?: boolean; + ownerId?: boolean; + platformOnly?: boolean; + registryHost?: boolean; + repository?: boolean; + runtime?: boolean; + tag?: boolean; + updatedAt?: boolean; + updatedByPrincipal?: boolean; + platformImageGrantsByImageId?: { + select: PlatformImageGrantSelect; + first?: number; + filter?: PlatformImageGrantFilter; + orderBy?: PlatformImageGrantOrderBy[]; + }; +}; +export type PlatformImageGrantSelect = { + actions?: boolean; + createdAt?: boolean; + createdByPrincipal?: boolean; + expiresAt?: boolean; + grantedBy?: boolean; + granteeKey?: boolean; + granteeScope?: boolean; + id?: boolean; + imageId?: boolean; + updatedAt?: boolean; + updatedByPrincipal?: boolean; + image?: { + select: PlatformImageSelect; + }; +}; export type PlatformInfraCommitSelect = { authorId?: boolean; committerId?: boolean; @@ -2904,8 +5114,33 @@ export type PlatformInfraStoreSelect = { name?: boolean; scopeId?: boolean; }; +export type PlatformK8sResourceKindSelect = { + active?: boolean; + commitId?: boolean; + createdAt?: boolean; + definition?: boolean; + description?: boolean; + id?: boolean; + label?: boolean; + slug?: boolean; + storeId?: boolean; + updatedAt?: boolean; +}; +export type PlatformK8sSpecRuleSelect = { + active?: boolean; + commitId?: boolean; + createdAt?: boolean; + definition?: boolean; + description?: boolean; + id?: boolean; + label?: boolean; + slug?: boolean; + storeId?: boolean; + updatedAt?: boolean; +}; export type PlatformNamespaceSelect = { annotations?: boolean; + clusterId?: boolean; createdAt?: boolean; description?: boolean; id?: boolean; @@ -2917,12 +5152,24 @@ export type PlatformNamespaceSelect = { namespaceName?: boolean; status?: boolean; updatedAt?: boolean; + platformBuilderBindingsByNamespaceId?: { + select: PlatformBuilderBindingSelect; + first?: number; + filter?: PlatformBuilderBindingFilter; + orderBy?: PlatformBuilderBindingOrderBy[]; + }; platformFunctionDeploymentsByNamespaceId?: { select: PlatformFunctionDeploymentSelect; first?: number; filter?: PlatformFunctionDeploymentFilter; orderBy?: PlatformFunctionDeploymentOrderBy[]; }; + platformRegistryBindingsByNamespaceId?: { + select: PlatformRegistryBindingSelect; + first?: number; + filter?: PlatformRegistryBindingFilter; + orderBy?: PlatformRegistryBindingOrderBy[]; + }; platformResourceDefinitionsByNamespaceId?: { select: PlatformResourceDefinitionSelect; first?: number; @@ -2957,14 +5204,427 @@ export type PlatformNamespaceEventSelect = { metadata?: boolean; namespaceId?: boolean; }; +export type PlatformProposalCommentSelect = { + actorId?: boolean; + attachments?: boolean; + body?: boolean; + bodyTrgmSimilarity?: boolean; + createdAt?: boolean; + createdBy?: boolean; + createdByPrincipal?: boolean; + embedding?: boolean; + embeddingUpdatedAt?: boolean; + embeddingVectorDistance?: boolean; + id?: boolean; + line?: boolean; + outdatedAt?: boolean; + path?: boolean; + pathTrgmSimilarity?: boolean; + proposalId?: boolean; + resolvedAt?: boolean; + search?: boolean; + searchScore?: boolean; + searchTsvRank?: boolean; + updatedAt?: boolean; + updatedBy?: boolean; + updatedByPrincipal?: boolean; + proposal?: { + select: PlatformProposalSelect; + }; + platformProposalReactionsByCommentId?: { + select: PlatformProposalReactionSelect; + first?: number; + filter?: PlatformProposalReactionFilter; + orderBy?: PlatformProposalReactionOrderBy[]; + }; +}; +export type PlatformProposalSelect = { + actorId?: boolean; + body?: boolean; + bodyTrgmSimilarity?: boolean; + closedReason?: boolean; + closedReasonTrgmSimilarity?: boolean; + createdAt?: boolean; + createdBy?: boolean; + createdByPrincipal?: boolean; + decidedAt?: boolean; + dueAt?: boolean; + embedding?: boolean; + embeddingUpdatedAt?: boolean; + embeddingVectorDistance?: boolean; + id?: boolean; + kind?: boolean; + kindTrgmSimilarity?: boolean; + labels?: boolean; + mergeCommit?: boolean; + mergeCommitTrgmSimilarity?: boolean; + mergeMethod?: boolean; + mergeMethodTrgmSimilarity?: boolean; + mergeRequestedAt?: boolean; + mergedAt?: boolean; + metadata?: boolean; + parentId?: boolean; + priority?: boolean; + repositoryId?: boolean; + resolution?: boolean; + resolutionTrgmSimilarity?: boolean; + search?: boolean; + searchScore?: boolean; + searchTsvRank?: boolean; + sourceRef?: boolean; + sourceRefTrgmSimilarity?: boolean; + status?: boolean; + statusTrgmSimilarity?: boolean; + targetRef?: boolean; + targetRefTrgmSimilarity?: boolean; + title?: boolean; + titleTrgmSimilarity?: boolean; + updatedAt?: boolean; + updatedBy?: boolean; + updatedByPrincipal?: boolean; + parent?: { + select: PlatformProposalSelect; + }; + repository?: { + select: PlatformRepositorySelect; + }; + childPlatformProposals?: { + select: PlatformProposalSelect; + first?: number; + filter?: PlatformProposalFilter; + orderBy?: PlatformProposalOrderBy[]; + }; + platformBuildsByProposalId?: { + select: PlatformBuildSelect; + first?: number; + filter?: PlatformBuildFilter; + orderBy?: PlatformBuildOrderBy[]; + }; + platformProposalCommentsByProposalId?: { + select: PlatformProposalCommentSelect; + first?: number; + filter?: PlatformProposalCommentFilter; + orderBy?: PlatformProposalCommentOrderBy[]; + }; + platformProposalFileViewsByProposalId?: { + select: PlatformProposalFileViewSelect; + first?: number; + filter?: PlatformProposalFileViewFilter; + orderBy?: PlatformProposalFileViewOrderBy[]; + }; + platformProposalReactionsByProposalId?: { + select: PlatformProposalReactionSelect; + first?: number; + filter?: PlatformProposalReactionFilter; + orderBy?: PlatformProposalReactionOrderBy[]; + }; + platformProposalReviewsByProposalId?: { + select: PlatformProposalReviewSelect; + first?: number; + filter?: PlatformProposalReviewFilter; + orderBy?: PlatformProposalReviewOrderBy[]; + }; + platformProposalsChunksByPlatformProposalsId?: { + select: PlatformProposalsChunkSelect; + first?: number; + filter?: PlatformProposalsChunkFilter; + orderBy?: PlatformProposalsChunkOrderBy[]; + }; +}; +export type PlatformProposalFileViewSelect = { + blobSha?: boolean; + createdAt?: boolean; + createdByPrincipal?: boolean; + id?: boolean; + path?: boolean; + proposalId?: boolean; + reviewerId?: boolean; + updatedAt?: boolean; + updatedByPrincipal?: boolean; + viewedAt?: boolean; + proposal?: { + select: PlatformProposalSelect; + }; +}; +export type PlatformProposalReactionSelect = { + actorId?: boolean; + commentId?: boolean; + createdAt?: boolean; + createdByPrincipal?: boolean; + emoji?: boolean; + id?: boolean; + proposalId?: boolean; + updatedAt?: boolean; + updatedByPrincipal?: boolean; + comment?: { + select: PlatformProposalCommentSelect; + }; + proposal?: { + select: PlatformProposalSelect; + }; +}; +export type PlatformProposalReviewSelect = { + body?: boolean; + bodyTrgmSimilarity?: boolean; + commitSha?: boolean; + commitShaTrgmSimilarity?: boolean; + createdAt?: boolean; + createdByPrincipal?: boolean; + id?: boolean; + proposalId?: boolean; + reviewerId?: boolean; + search?: boolean; + searchScore?: boolean; + searchTsvRank?: boolean; + submittedAt?: boolean; + updatedAt?: boolean; + updatedByPrincipal?: boolean; + verdict?: boolean; + verdictTrgmSimilarity?: boolean; + proposal?: { + select: PlatformProposalSelect; + }; +}; +export type PlatformProposalsChunkSelect = { + actorId?: boolean; + body?: boolean; + chunkIndex?: boolean; + createdAt?: boolean; + embedding?: boolean; + embeddingVectorDistance?: boolean; + id?: boolean; + metadata?: boolean; + platformProposalsId?: boolean; + searchScore?: boolean; + updatedAt?: boolean; + platformProposals?: { + select: PlatformProposalSelect; + }; +}; +export type PlatformRegistryBindingSelect = { + createdAt?: boolean; + createdBy?: boolean; + createdByPrincipal?: boolean; + id?: boolean; + metadata?: boolean; + namespaceId?: boolean; + observedCredentialVersion?: boolean; + pullSecretName?: boolean; + realm?: boolean; + registryHost?: boolean; + registryId?: boolean; + status?: boolean; + updatedAt?: boolean; + updatedBy?: boolean; + updatedByPrincipal?: boolean; + namespace?: { + select: PlatformNamespaceSelect; + }; + registry?: { + select: PlatformRegistrySelect; + }; +}; +export type PlatformRegistrySelect = { + authMode?: boolean; + basePath?: boolean; + createdAt?: boolean; + createdByPrincipal?: boolean; + credentialSecretName?: boolean; + host?: boolean; + id?: boolean; + installationId?: boolean; + isPublished?: boolean; + kind?: boolean; + labels?: boolean; + lastError?: boolean; + metadata?: boolean; + name?: boolean; + platformOnly?: boolean; + role?: boolean; + status?: boolean; + updatedAt?: boolean; + updatedByPrincipal?: boolean; + installation?: { + select: PlatformResourceInstallationSelect; + }; + platformRegistryBindingsByRegistryId?: { + select: PlatformRegistryBindingSelect; + first?: number; + filter?: PlatformRegistryBindingFilter; + orderBy?: PlatformRegistryBindingOrderBy[]; + }; + platformRegistryGrantsByRegistryId?: { + select: PlatformRegistryGrantSelect; + first?: number; + filter?: PlatformRegistryGrantFilter; + orderBy?: PlatformRegistryGrantOrderBy[]; + }; +}; +export type PlatformRegistryGrantSelect = { + actions?: boolean; + createdAt?: boolean; + createdByPrincipal?: boolean; + expiresAt?: boolean; + grantedBy?: boolean; + granteeKey?: boolean; + granteeScope?: boolean; + id?: boolean; + registryId?: boolean; + updatedAt?: boolean; + updatedByPrincipal?: boolean; + registry?: { + select: PlatformRegistrySelect; + }; +}; +export type PlatformRepositorySelect = { + cloneUrl?: boolean; + cloneUrlTrgmSimilarity?: boolean; + createdAt?: boolean; + createdBy?: boolean; + createdByPrincipal?: boolean; + defaultBranch?: boolean; + defaultBranchTrgmSimilarity?: boolean; + description?: boolean; + descriptionTrgmSimilarity?: boolean; + embedding?: boolean; + embeddingUpdatedAt?: boolean; + embeddingVectorDistance?: boolean; + externalId?: boolean; + externalIdTrgmSimilarity?: boolean; + id?: boolean; + isArchived?: boolean; + metadata?: boolean; + name?: boolean; + nameTrgmSimilarity?: boolean; + ownerId?: boolean; + provider?: boolean; + providerTrgmSimilarity?: boolean; + search?: boolean; + searchScore?: boolean; + searchTsvRank?: boolean; + slug?: boolean; + slugTrgmSimilarity?: boolean; + updatedAt?: boolean; + updatedBy?: boolean; + updatedByPrincipal?: boolean; + visibility?: boolean; + visibilityTrgmSimilarity?: boolean; + platformBuildsByRepositoryId?: { + select: PlatformBuildSelect; + first?: number; + filter?: PlatformBuildFilter; + orderBy?: PlatformBuildOrderBy[]; + }; + platformProposalsByRepositoryId?: { + select: PlatformProposalSelect; + first?: number; + filter?: PlatformProposalFilter; + orderBy?: PlatformProposalOrderBy[]; + }; + platformRepositoryEventsByRepositoryId?: { + select: PlatformRepositoryEventSelect; + first?: number; + filter?: PlatformRepositoryEventFilter; + orderBy?: PlatformRepositoryEventOrderBy[]; + }; + platformRepositoryRequiredChecksByRepositoryId?: { + select: PlatformRepositoryRequiredCheckSelect; + first?: number; + filter?: PlatformRepositoryRequiredCheckFilter; + orderBy?: PlatformRepositoryRequiredCheckOrderBy[]; + }; + platformRepositoryWorkflowsByRepositoryId?: { + select: PlatformRepositoryWorkflowSelect; + first?: number; + filter?: PlatformRepositoryWorkflowFilter; + orderBy?: PlatformRepositoryWorkflowOrderBy[]; + }; +}; +export type PlatformRepositoryEventSelect = { + actorId?: boolean; + commitSha?: boolean; + createdAt?: boolean; + createdByPrincipal?: boolean; + deliveryId?: boolean; + eventType?: boolean; + id?: boolean; + metadata?: boolean; + payload?: boolean; + ref?: boolean; + repositoryId?: boolean; + updatedAt?: boolean; + updatedByPrincipal?: boolean; + repository?: { + select: PlatformRepositorySelect; + }; + platformBuildsByEventId?: { + select: PlatformBuildSelect; + first?: number; + filter?: PlatformBuildFilter; + orderBy?: PlatformBuildOrderBy[]; + }; +}; +export type PlatformRepositoryRequiredCheckSelect = { + createdAt?: boolean; + id?: boolean; + repositoryId?: boolean; + updatedAt?: boolean; + workflowId?: boolean; + repository?: { + select: PlatformRepositorySelect; + }; + workflow?: { + select: PlatformRepositoryWorkflowSelect; + }; +}; +export type PlatformRepositoryWorkflowSelect = { + cancelInProgress?: boolean; + concurrencyKey?: boolean; + createdAt?: boolean; + createdBy?: boolean; + createdByPrincipal?: boolean; + eventType?: boolean; + graphId?: boolean; + id?: boolean; + inputs?: boolean; + isEnabled?: boolean; + name?: boolean; + refPattern?: boolean; + repositoryId?: boolean; + requiredSecrets?: boolean; + slug?: boolean; + updatedAt?: boolean; + updatedBy?: boolean; + updatedByPrincipal?: boolean; + graph?: { + select: FunctionGraphSelect; + }; + repository?: { + select: PlatformRepositorySelect; + }; + platformBuildsByWorkflowId?: { + select: PlatformBuildSelect; + first?: number; + filter?: PlatformBuildFilter; + orderBy?: PlatformBuildOrderBy[]; + }; + platformRepositoryRequiredChecksByWorkflowId?: { + select: PlatformRepositoryRequiredCheckSelect; + first?: number; + filter?: PlatformRepositoryRequiredCheckFilter; + orderBy?: PlatformRepositoryRequiredCheckOrderBy[]; + }; +}; export type PlatformResourceSelect = { annotations?: boolean; cpuLimitMillicores?: boolean; cpuRequestMillicores?: boolean; createdAt?: boolean; createdBy?: boolean; + createdByPrincipal?: boolean; errorCount?: boolean; id?: boolean; + imageRef?: boolean; installationId?: boolean; integrations?: boolean; kind?: boolean; @@ -2986,8 +5646,10 @@ export type PlatformResourceSelect = { statusObserved?: boolean; storageClass?: boolean; storageSizeBytes?: boolean; + storageTotalBytes?: boolean; updatedAt?: boolean; updatedBy?: boolean; + updatedByPrincipal?: boolean; installation?: { select: PlatformResourceInstallationSelect; }; @@ -3018,11 +5680,13 @@ export type PlatformResourceDeclaredCapacitySelect = { source?: boolean; sourceId?: boolean; storageSizeBytes?: boolean; + storageTotalBytes?: boolean; }; export type PlatformResourceDefinitionSelect = { annotations?: boolean; createdAt?: boolean; createdBy?: boolean; + createdByPrincipal?: boolean; defaultSpec?: boolean; description?: boolean; id?: boolean; @@ -3038,6 +5702,7 @@ export type PlatformResourceDefinitionSelect = { stepUpMinAge?: boolean; updatedAt?: boolean; updatedBy?: boolean; + updatedByPrincipal?: boolean; namespace?: { select: PlatformNamespaceSelect; }; @@ -3061,6 +5726,7 @@ export type PlatformResourceInstallationSelect = { commitId?: boolean; createdAt?: boolean; createdBy?: boolean; + createdByPrincipal?: boolean; id?: boolean; name?: boolean; namespaceId?: boolean; @@ -3071,9 +5737,16 @@ export type PlatformResourceInstallationSelect = { storeId?: boolean; updatedAt?: boolean; updatedBy?: boolean; + updatedByPrincipal?: boolean; namespace?: { select: PlatformNamespaceSelect; }; + platformRegistriesByInstallationId?: { + select: PlatformRegistrySelect; + first?: number; + filter?: PlatformRegistryFilter; + orderBy?: PlatformRegistryOrderBy[]; + }; platformResourcesByInstallationId?: { select: PlatformResourceSelect; first?: number; @@ -3081,6 +5754,26 @@ export type PlatformResourceInstallationSelect = { orderBy?: PlatformResourceOrderBy[]; }; }; +export type PlatformResourceObservedStorageSelect = { + capacity?: boolean; + capacityBytes?: boolean; + claimName?: boolean; + declaredStorageClass?: boolean; + declaredStorageSizeBytes?: boolean; + declaredStorageTotalBytes?: boolean; + installationId?: boolean; + isBound?: boolean; + kind?: boolean; + namespaceId?: boolean; + phase?: boolean; + requested?: boolean; + requestedBytes?: boolean; + resourceId?: boolean; + resourceStatus?: boolean; + slug?: boolean; + storageClass?: boolean; + storageName?: boolean; +}; export type PlatformResourceStatusCheckSelect = { completedAt?: boolean; id?: boolean; @@ -3142,8 +5835,10 @@ export type PlatformResourcesHealthSelect = { cpuRequestMillicores?: boolean; createdAt?: boolean; createdBy?: boolean; + createdByPrincipal?: boolean; errorCount?: boolean; id?: boolean; + imageRef?: boolean; installationId?: boolean; integrations?: boolean; kind?: boolean; @@ -3166,8 +5861,10 @@ export type PlatformResourcesHealthSelect = { statusObserved?: boolean; storageClass?: boolean; storageSizeBytes?: boolean; + storageTotalBytes?: boolean; updatedAt?: boolean; updatedBy?: boolean; + updatedByPrincipal?: boolean; }; export type PlatformResourcesRequirementsStateSelect = { configHash?: boolean; @@ -3195,6 +5892,7 @@ export type PlatformWebhookEndpointSelect = { active?: boolean; createdAt?: boolean; createdBy?: boolean; + createdByPrincipal?: boolean; functionDefinitionId?: boolean; host?: boolean; id?: boolean; @@ -3205,6 +5903,7 @@ export type PlatformWebhookEndpointSelect = { signingSecretName?: boolean; updatedAt?: boolean; updatedBy?: boolean; + updatedByPrincipal?: boolean; functionDefinition?: { select: PlatformFunctionDefinitionSelect; }; @@ -3235,102 +5934,533 @@ export type PlatformWebhookEventSelect = { select: PlatformWebhookEndpointSelect; }; }; -export type ResourceSelect = { - annotations?: boolean; - cpuLimitMillicores?: boolean; - cpuRequestMillicores?: boolean; +export type ProposalCommentSelect = { + actorId?: boolean; + attachments?: boolean; + body?: boolean; + bodyTrgmSimilarity?: boolean; createdAt?: boolean; createdBy?: boolean; + createdByPrincipal?: boolean; databaseId?: boolean; - errorCount?: boolean; + embedding?: boolean; + embeddingUpdatedAt?: boolean; + embeddingVectorDistance?: boolean; id?: boolean; - installationId?: boolean; - integrations?: boolean; - kind?: boolean; - labels?: boolean; - lastError?: boolean; - lastHeartbeatAt?: boolean; - memoryLimitBytes?: boolean; - memoryRequestBytes?: boolean; - name?: boolean; - namespaceId?: boolean; - realm?: boolean; - replicas?: boolean; - requiredConfigs?: boolean; - requiredSecrets?: boolean; - resourceDefinitionId?: boolean; - slug?: boolean; - spec?: boolean; - status?: boolean; - statusObserved?: boolean; - storageClass?: boolean; - storageSizeBytes?: boolean; + line?: boolean; + outdatedAt?: boolean; + path?: boolean; + pathTrgmSimilarity?: boolean; + proposalId?: boolean; + resolvedAt?: boolean; + search?: boolean; + searchScore?: boolean; + searchTsvRank?: boolean; updatedAt?: boolean; updatedBy?: boolean; - installation?: { - select: ResourceInstallationSelect; - }; - namespace?: { - select: NamespaceSelect; - }; - resourceDefinition?: { - select: ResourceDefinitionSelect; + updatedByPrincipal?: boolean; + proposal?: { + select: ProposalSelect; }; - resourceStatusChecks?: { - select: ResourceStatusCheckSelect; + proposalReactionsByCommentId?: { + select: ProposalReactionSelect; first?: number; - filter?: ResourceStatusCheckFilter; - orderBy?: ResourceStatusCheckOrderBy[]; + filter?: ProposalReactionFilter; + orderBy?: ProposalReactionOrderBy[]; }; }; -export type ResourceDeclaredCapacitySelect = { - cpuLimitMillicores?: boolean; - cpuRequestMillicores?: boolean; - installationId?: boolean; - isTransient?: boolean; - kind?: boolean; - memoryLimitBytes?: boolean; - memoryRequestBytes?: boolean; - namespaceId?: boolean; - podCountMax?: boolean; - podCountMin?: boolean; - source?: boolean; - sourceId?: boolean; - storageSizeBytes?: boolean; -}; -export type ResourceDefinitionSelect = { - annotations?: boolean; +export type ProposalSelect = { + actorId?: boolean; + body?: boolean; + bodyTrgmSimilarity?: boolean; + closedReason?: boolean; + closedReasonTrgmSimilarity?: boolean; createdAt?: boolean; createdBy?: boolean; + createdByPrincipal?: boolean; databaseId?: boolean; - defaultSpec?: boolean; - description?: boolean; + decidedAt?: boolean; + dueAt?: boolean; + embedding?: boolean; + embeddingUpdatedAt?: boolean; + embeddingVectorDistance?: boolean; id?: boolean; - integrations?: boolean; kind?: boolean; + kindTrgmSimilarity?: boolean; labels?: boolean; - name?: boolean; - namespaceId?: boolean; - paramsSchema?: boolean; - requiredConfigs?: boolean; - requiredSecrets?: boolean; - slug?: boolean; - stepUpMinAge?: boolean; + mergeCommit?: boolean; + mergeCommitTrgmSimilarity?: boolean; + mergeMethod?: boolean; + mergeMethodTrgmSimilarity?: boolean; + mergeRequestedAt?: boolean; + mergedAt?: boolean; + metadata?: boolean; + parentId?: boolean; + priority?: boolean; + repositoryId?: boolean; + resolution?: boolean; + resolutionTrgmSimilarity?: boolean; + search?: boolean; + searchScore?: boolean; + searchTsvRank?: boolean; + sourceRef?: boolean; + sourceRefTrgmSimilarity?: boolean; + status?: boolean; + statusTrgmSimilarity?: boolean; + targetRef?: boolean; + targetRefTrgmSimilarity?: boolean; + title?: boolean; + titleTrgmSimilarity?: boolean; updatedAt?: boolean; updatedBy?: boolean; - namespace?: { - select: NamespaceSelect; + updatedByPrincipal?: boolean; + parent?: { + select: ProposalSelect; }; - resources?: { - select: ResourceSelect; + repository?: { + select: RepositorySelect; + }; + builds?: { + select: BuildSelect; first?: number; - filter?: ResourceFilter; - orderBy?: ResourceOrderBy[]; + filter?: BuildFilter; + orderBy?: BuildOrderBy[]; }; -}; -export type ResourceEventSelect = { - actorId?: boolean; - createdAt?: boolean; + childProposals?: { + select: ProposalSelect; + first?: number; + filter?: ProposalFilter; + orderBy?: ProposalOrderBy[]; + }; + proposalComments?: { + select: ProposalCommentSelect; + first?: number; + filter?: ProposalCommentFilter; + orderBy?: ProposalCommentOrderBy[]; + }; + proposalFileViews?: { + select: ProposalFileViewSelect; + first?: number; + filter?: ProposalFileViewFilter; + orderBy?: ProposalFileViewOrderBy[]; + }; + proposalReactions?: { + select: ProposalReactionSelect; + first?: number; + filter?: ProposalReactionFilter; + orderBy?: ProposalReactionOrderBy[]; + }; + proposalReviews?: { + select: ProposalReviewSelect; + first?: number; + filter?: ProposalReviewFilter; + orderBy?: ProposalReviewOrderBy[]; + }; + proposalsChunksByProposalsId?: { + select: ProposalsChunkSelect; + first?: number; + filter?: ProposalsChunkFilter; + orderBy?: ProposalsChunkOrderBy[]; + }; +}; +export type ProposalFileViewSelect = { + blobSha?: boolean; + createdAt?: boolean; + createdByPrincipal?: boolean; + databaseId?: boolean; + id?: boolean; + path?: boolean; + proposalId?: boolean; + reviewerId?: boolean; + updatedAt?: boolean; + updatedByPrincipal?: boolean; + viewedAt?: boolean; + proposal?: { + select: ProposalSelect; + }; +}; +export type ProposalReactionSelect = { + actorId?: boolean; + commentId?: boolean; + createdAt?: boolean; + createdByPrincipal?: boolean; + databaseId?: boolean; + emoji?: boolean; + id?: boolean; + proposalId?: boolean; + updatedAt?: boolean; + updatedByPrincipal?: boolean; + comment?: { + select: ProposalCommentSelect; + }; + proposal?: { + select: ProposalSelect; + }; +}; +export type ProposalReviewSelect = { + body?: boolean; + bodyTrgmSimilarity?: boolean; + commitSha?: boolean; + commitShaTrgmSimilarity?: boolean; + createdAt?: boolean; + createdByPrincipal?: boolean; + databaseId?: boolean; + id?: boolean; + proposalId?: boolean; + reviewerId?: boolean; + search?: boolean; + searchScore?: boolean; + searchTsvRank?: boolean; + submittedAt?: boolean; + updatedAt?: boolean; + updatedByPrincipal?: boolean; + verdict?: boolean; + verdictTrgmSimilarity?: boolean; + proposal?: { + select: ProposalSelect; + }; +}; +export type ProposalsChunkSelect = { + actorId?: boolean; + body?: boolean; + chunkIndex?: boolean; + createdAt?: boolean; + databaseId?: boolean; + embedding?: boolean; + embeddingVectorDistance?: boolean; + id?: boolean; + metadata?: boolean; + proposalsId?: boolean; + searchScore?: boolean; + updatedAt?: boolean; + proposals?: { + select: ProposalSelect; + }; +}; +export type RegistryBindingSelect = { + createdAt?: boolean; + createdBy?: boolean; + createdByPrincipal?: boolean; + databaseId?: boolean; + id?: boolean; + metadata?: boolean; + namespaceId?: boolean; + observedCredentialVersion?: boolean; + pullSecretName?: boolean; + realm?: boolean; + registryHost?: boolean; + registryId?: boolean; + status?: boolean; + updatedAt?: boolean; + updatedBy?: boolean; + updatedByPrincipal?: boolean; + namespace?: { + select: NamespaceSelect; + }; + registry?: { + select: RegistrySelect; + }; +}; +export type RegistrySelect = { + authMode?: boolean; + basePath?: boolean; + createdAt?: boolean; + createdByPrincipal?: boolean; + credentialSecretName?: boolean; + databaseId?: boolean; + host?: boolean; + id?: boolean; + installationId?: boolean; + isPublished?: boolean; + kind?: boolean; + labels?: boolean; + lastError?: boolean; + metadata?: boolean; + name?: boolean; + platformOnly?: boolean; + role?: boolean; + status?: boolean; + updatedAt?: boolean; + updatedByPrincipal?: boolean; + installation?: { + select: ResourceInstallationSelect; + }; + registryBindings?: { + select: RegistryBindingSelect; + first?: number; + filter?: RegistryBindingFilter; + orderBy?: RegistryBindingOrderBy[]; + }; + registryGrants?: { + select: RegistryGrantSelect; + first?: number; + filter?: RegistryGrantFilter; + orderBy?: RegistryGrantOrderBy[]; + }; +}; +export type RegistryGrantSelect = { + actions?: boolean; + createdAt?: boolean; + createdByPrincipal?: boolean; + databaseId?: boolean; + expiresAt?: boolean; + grantedBy?: boolean; + granteeKey?: boolean; + granteeScope?: boolean; + id?: boolean; + registryId?: boolean; + updatedAt?: boolean; + updatedByPrincipal?: boolean; + registry?: { + select: RegistrySelect; + }; +}; +export type RepositorySelect = { + cloneUrl?: boolean; + cloneUrlTrgmSimilarity?: boolean; + createdAt?: boolean; + createdBy?: boolean; + createdByPrincipal?: boolean; + databaseId?: boolean; + defaultBranch?: boolean; + defaultBranchTrgmSimilarity?: boolean; + description?: boolean; + descriptionTrgmSimilarity?: boolean; + embedding?: boolean; + embeddingUpdatedAt?: boolean; + embeddingVectorDistance?: boolean; + externalId?: boolean; + externalIdTrgmSimilarity?: boolean; + id?: boolean; + isArchived?: boolean; + metadata?: boolean; + name?: boolean; + nameTrgmSimilarity?: boolean; + ownerId?: boolean; + provider?: boolean; + providerTrgmSimilarity?: boolean; + search?: boolean; + searchScore?: boolean; + searchTsvRank?: boolean; + slug?: boolean; + slugTrgmSimilarity?: boolean; + updatedAt?: boolean; + updatedBy?: boolean; + updatedByPrincipal?: boolean; + visibility?: boolean; + visibilityTrgmSimilarity?: boolean; + builds?: { + select: BuildSelect; + first?: number; + filter?: BuildFilter; + orderBy?: BuildOrderBy[]; + }; + proposals?: { + select: ProposalSelect; + first?: number; + filter?: ProposalFilter; + orderBy?: ProposalOrderBy[]; + }; + repositoryEvents?: { + select: RepositoryEventSelect; + first?: number; + filter?: RepositoryEventFilter; + orderBy?: RepositoryEventOrderBy[]; + }; + repositoryRequiredChecks?: { + select: RepositoryRequiredCheckSelect; + first?: number; + filter?: RepositoryRequiredCheckFilter; + orderBy?: RepositoryRequiredCheckOrderBy[]; + }; + repositoryWorkflows?: { + select: RepositoryWorkflowSelect; + first?: number; + filter?: RepositoryWorkflowFilter; + orderBy?: RepositoryWorkflowOrderBy[]; + }; +}; +export type RepositoryEventSelect = { + actorId?: boolean; + commitSha?: boolean; + createdAt?: boolean; + createdByPrincipal?: boolean; + databaseId?: boolean; + deliveryId?: boolean; + eventType?: boolean; + id?: boolean; + metadata?: boolean; + payload?: boolean; + ref?: boolean; + repositoryId?: boolean; + updatedAt?: boolean; + updatedByPrincipal?: boolean; + repository?: { + select: RepositorySelect; + }; + buildsByEventId?: { + select: BuildSelect; + first?: number; + filter?: BuildFilter; + orderBy?: BuildOrderBy[]; + }; +}; +export type RepositoryRequiredCheckSelect = { + createdAt?: boolean; + databaseId?: boolean; + id?: boolean; + repositoryId?: boolean; + updatedAt?: boolean; + workflowId?: boolean; + repository?: { + select: RepositorySelect; + }; + workflow?: { + select: RepositoryWorkflowSelect; + }; +}; +export type RepositoryWorkflowSelect = { + cancelInProgress?: boolean; + concurrencyKey?: boolean; + createdAt?: boolean; + createdBy?: boolean; + createdByPrincipal?: boolean; + databaseId?: boolean; + eventType?: boolean; + graphId?: boolean; + id?: boolean; + inputs?: boolean; + isEnabled?: boolean; + name?: boolean; + refPattern?: boolean; + repositoryId?: boolean; + requiredSecrets?: boolean; + slug?: boolean; + updatedAt?: boolean; + updatedBy?: boolean; + updatedByPrincipal?: boolean; + graph?: { + select: DatabaseFunctionGraphSelect; + }; + repository?: { + select: RepositorySelect; + }; + buildsByWorkflowId?: { + select: BuildSelect; + first?: number; + filter?: BuildFilter; + orderBy?: BuildOrderBy[]; + }; + repositoryRequiredChecksByWorkflowId?: { + select: RepositoryRequiredCheckSelect; + first?: number; + filter?: RepositoryRequiredCheckFilter; + orderBy?: RepositoryRequiredCheckOrderBy[]; + }; +}; +export type ResourceSelect = { + annotations?: boolean; + cpuLimitMillicores?: boolean; + cpuRequestMillicores?: boolean; + createdAt?: boolean; + createdBy?: boolean; + createdByPrincipal?: boolean; + databaseId?: boolean; + errorCount?: boolean; + id?: boolean; + imageRef?: boolean; + installationId?: boolean; + integrations?: boolean; + kind?: boolean; + labels?: boolean; + lastError?: boolean; + lastHeartbeatAt?: boolean; + memoryLimitBytes?: boolean; + memoryRequestBytes?: boolean; + name?: boolean; + namespaceId?: boolean; + realm?: boolean; + replicas?: boolean; + requiredConfigs?: boolean; + requiredSecrets?: boolean; + resourceDefinitionId?: boolean; + slug?: boolean; + spec?: boolean; + status?: boolean; + statusObserved?: boolean; + storageClass?: boolean; + storageSizeBytes?: boolean; + storageTotalBytes?: boolean; + updatedAt?: boolean; + updatedBy?: boolean; + updatedByPrincipal?: boolean; + installation?: { + select: ResourceInstallationSelect; + }; + namespace?: { + select: NamespaceSelect; + }; + resourceDefinition?: { + select: ResourceDefinitionSelect; + }; + resourceStatusChecks?: { + select: ResourceStatusCheckSelect; + first?: number; + filter?: ResourceStatusCheckFilter; + orderBy?: ResourceStatusCheckOrderBy[]; + }; +}; +export type ResourceDeclaredCapacitySelect = { + cpuLimitMillicores?: boolean; + cpuRequestMillicores?: boolean; + installationId?: boolean; + isTransient?: boolean; + kind?: boolean; + memoryLimitBytes?: boolean; + memoryRequestBytes?: boolean; + namespaceId?: boolean; + podCountMax?: boolean; + podCountMin?: boolean; + source?: boolean; + sourceId?: boolean; + storageSizeBytes?: boolean; + storageTotalBytes?: boolean; +}; +export type ResourceDefinitionSelect = { + annotations?: boolean; + createdAt?: boolean; + createdBy?: boolean; + createdByPrincipal?: boolean; + databaseId?: boolean; + defaultSpec?: boolean; + description?: boolean; + id?: boolean; + integrations?: boolean; + kind?: boolean; + labels?: boolean; + name?: boolean; + namespaceId?: boolean; + paramsSchema?: boolean; + requiredConfigs?: boolean; + requiredSecrets?: boolean; + slug?: boolean; + stepUpMinAge?: boolean; + updatedAt?: boolean; + updatedBy?: boolean; + updatedByPrincipal?: boolean; + namespace?: { + select: NamespaceSelect; + }; + resources?: { + select: ResourceSelect; + first?: number; + filter?: ResourceFilter; + orderBy?: ResourceOrderBy[]; + }; +}; +export type ResourceEventSelect = { + actorId?: boolean; + createdAt?: boolean; databaseId?: boolean; eventType?: boolean; id?: boolean; @@ -3342,6 +6472,7 @@ export type ResourceInstallationSelect = { commitId?: boolean; createdAt?: boolean; createdBy?: boolean; + createdByPrincipal?: boolean; databaseId?: boolean; id?: boolean; name?: boolean; @@ -3353,9 +6484,16 @@ export type ResourceInstallationSelect = { storeId?: boolean; updatedAt?: boolean; updatedBy?: boolean; + updatedByPrincipal?: boolean; namespace?: { select: NamespaceSelect; }; + registriesByInstallationId?: { + select: RegistrySelect; + first?: number; + filter?: RegistryFilter; + orderBy?: RegistryOrderBy[]; + }; resourcesByInstallationId?: { select: ResourceSelect; first?: number; @@ -3363,6 +6501,26 @@ export type ResourceInstallationSelect = { orderBy?: ResourceOrderBy[]; }; }; +export type ResourceObservedStorageSelect = { + capacity?: boolean; + capacityBytes?: boolean; + claimName?: boolean; + declaredStorageClass?: boolean; + declaredStorageSizeBytes?: boolean; + declaredStorageTotalBytes?: boolean; + installationId?: boolean; + isBound?: boolean; + kind?: boolean; + namespaceId?: boolean; + phase?: boolean; + requested?: boolean; + requestedBytes?: boolean; + resourceId?: boolean; + resourceStatus?: boolean; + slug?: boolean; + storageClass?: boolean; + storageName?: boolean; +}; export type ResourceStatusCheckSelect = { completedAt?: boolean; databaseId?: boolean; @@ -3427,9 +6585,11 @@ export type ResourcesHealthSelect = { cpuRequestMillicores?: boolean; createdAt?: boolean; createdBy?: boolean; + createdByPrincipal?: boolean; databaseId?: boolean; errorCount?: boolean; id?: boolean; + imageRef?: boolean; installationId?: boolean; integrations?: boolean; kind?: boolean; @@ -3452,8 +6612,10 @@ export type ResourcesHealthSelect = { statusObserved?: boolean; storageClass?: boolean; storageSizeBytes?: boolean; + storageTotalBytes?: boolean; updatedAt?: boolean; updatedBy?: boolean; + updatedByPrincipal?: boolean; }; export type ResourcesRequirementsStateSelect = { configHash?: boolean; @@ -3481,6 +6643,7 @@ export type WebhookEndpointSelect = { active?: boolean; createdAt?: boolean; createdBy?: boolean; + createdByPrincipal?: boolean; databaseId?: boolean; functionDefinitionId?: boolean; host?: boolean; @@ -3492,6 +6655,7 @@ export type WebhookEndpointSelect = { signingSecretName?: boolean; updatedAt?: boolean; updatedBy?: boolean; + updatedByPrincipal?: boolean; functionDefinition?: { select: FunctionDefinitionSelect; }; @@ -3524,41 +6688,159 @@ export type WebhookEventSelect = { }; }; // ============ Table Filter Types ============ -export interface ContentPresetFilter { - /** Filter by the object’s `active` field. */ - active?: BooleanFilter; +export interface BuildFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: ContentPresetFilter[]; - /** Filter by the object’s `commitId` field. */ - commitId?: UUIDFilter; + and?: BuildFilter[]; + /** Filter by the object’s `attempt` field. */ + attempt?: IntFilter; + /** Filter by the object’s `commitSha` field. */ + commitSha?: StringFilter; + /** Filter by the object’s `conclusion` field. */ + conclusion?: StringFilter; /** 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 `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `event` relation. */ + event?: RepositoryEventFilter; + /** A related `event` exists. */ + eventExists?: boolean; + /** Filter by the object’s `eventId` field. */ + eventId?: UUIDFilter; + /** Filter by the object’s `finishedAt` field. */ + finishedAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `imageRef` field. */ + imageRef?: StringFilter; + /** Filter by the object’s `jobId` field. */ + jobId?: BigIntFilter; + /** Filter by the object’s `logs` field. */ + logs?: ConstructiveInternalTypeUploadFilter; + /** Filter by the object’s `matrixKey` field. */ + matrixKey?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Negates the expression. */ + not?: BuildFilter; + /** Checks for any expressions in this list. */ + or?: BuildFilter[]; + /** Filter by the object’s `proposal` relation. */ + proposal?: ProposalFilter; + /** A related `proposal` exists. */ + proposalExists?: boolean; + /** Filter by the object’s `proposalId` field. */ + proposalId?: UUIDFilter; + /** Filter by the object’s `ref` field. */ + ref?: StringFilter; + /** Filter by the object’s `repository` relation. */ + repository?: RepositoryFilter; + /** Filter by the object’s `repositoryId` field. */ + repositoryId?: UUIDFilter; + /** Filter by the object’s `startedAt` field. */ + startedAt?: DatetimeFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** Filter by the object’s `workflow` relation. */ + workflow?: RepositoryWorkflowFilter; + /** A related `workflow` exists. */ + workflowExists?: boolean; + /** Filter by the object’s `workflowId` field. */ + workflowId?: UUIDFilter; +} +export interface BuildStepFilter { + /** Checks for all expressions in this list. */ + and?: BuildStepFilter[]; + /** Filter by the object’s `buildId` field. */ + buildId?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `exitCode` field. */ + exitCode?: IntFilter; + /** Filter by the object’s `finishedAt` field. */ + finishedAt?: DatetimeFilter; /** 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; + /** Filter by the object’s `logBytes` field. */ + logBytes?: BigIntFilter; + /** Filter by the object’s `logOffset` field. */ + logOffset?: BigIntFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; /** Negates the expression. */ - not?: ContentPresetFilter; + not?: BuildStepFilter; /** 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; + or?: BuildStepFilter[]; + /** Filter by the object’s `parentSeq` field. */ + parentSeq?: IntFilter; + /** Filter by the object’s `recordedAt` field. */ + recordedAt?: DatetimeFilter; + /** Filter by the object’s `seq` field. */ + seq?: IntFilter; + /** Filter by the object’s `startedAt` field. */ + startedAt?: DatetimeFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `summary` field. */ + summary?: JSONFilter; +} +export interface BuilderBindingFilter { + /** Checks for all expressions in this list. */ + and?: BuilderBindingFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `installationId` field. */ + installationId?: UUIDFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: BuilderBindingFilter; + /** Filter by the object’s `observedHost` field. */ + observedHost?: StringFilter; + /** Checks for any expressions in this list. */ + or?: BuilderBindingFilter[]; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface DbPresetFilter { +export interface ContentPresetFilter { /** Filter by the object’s `active` field. */ active?: BooleanFilter; /** Checks for all expressions in this list. */ - and?: DbPresetFilter[]; + and?: ContentPresetFilter[]; /** Filter by the object’s `commitId` field. */ commitId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ @@ -3569,14 +6851,14 @@ export interface DbPresetFilter { 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; - /** Filter by the object’s `modulesHash` field. */ - modulesHash?: UUIDFilter; /** Negates the expression. */ - not?: DbPresetFilter; + not?: ContentPresetFilter; /** Checks for any expressions in this list. */ - or?: DbPresetFilter[]; + or?: ContentPresetFilter[]; /** Filter by the object’s `slug` field. */ slug?: StringFilter; /** Filter by the object’s `storeId` field. */ @@ -3584,117 +6866,430 @@ export interface DbPresetFilter { /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } -export interface FunctionApiBindingFilter { - /** Filter by the object’s `alias` field. */ - alias?: StringFilter; +export interface DatabaseFunctionGraphFilter { /** Checks for all expressions in this list. */ - and?: FunctionApiBindingFilter[]; - /** Filter by the object’s `apiId` field. */ - apiId?: UUIDFilter; - /** Filter by the object’s `config` field. */ - config?: JSONFilter; + and?: DatabaseFunctionGraphFilter[]; + /** Filter by the object’s `context` field. */ + context?: StringFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; - /** Filter by the object’s `functionDefinition` relation. */ - functionDefinition?: FunctionDefinitionFilter; - /** Filter by the object’s `functionDefinitionId` field. */ - functionDefinitionId?: UUIDFilter; - /** Filter by the object’s `functionInvocationsByApiBindingId` relation. */ - functionInvocationsByApiBindingId?: FunctionApiBindingToManyFunctionInvocationFilter; - /** `functionInvocationsByApiBindingId` exist. */ - functionInvocationsByApiBindingIdExist?: boolean; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `databaseFunctionGraphExecutionsByGraphId` relation. */ + databaseFunctionGraphExecutionsByGraphId?: DatabaseFunctionGraphToManyDatabaseFunctionGraphExecutionFilter; + /** `databaseFunctionGraphExecutionsByGraphId` exist. */ + databaseFunctionGraphExecutionsByGraphIdExist?: boolean; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `definitionsCommitId` field. */ + definitionsCommitId?: UUIDFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `functionDefinitionsByGraphId` relation. */ + functionDefinitionsByGraphId?: DatabaseFunctionGraphToManyFunctionDefinitionFilter; + /** `functionDefinitionsByGraphId` exist. */ + functionDefinitionsByGraphIdExist?: boolean; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `isValid` field. */ + isValid?: BooleanFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; /** Negates the expression. */ - not?: FunctionApiBindingFilter; + not?: DatabaseFunctionGraphFilter; /** Checks for any expressions in this list. */ - or?: FunctionApiBindingFilter[]; + or?: DatabaseFunctionGraphFilter[]; + /** Filter by the object’s `repositoryWorkflowsByGraphId` relation. */ + repositoryWorkflowsByGraphId?: DatabaseFunctionGraphToManyRepositoryWorkflowFilter; + /** `repositoryWorkflowsByGraphId` exist. */ + repositoryWorkflowsByGraphIdExist?: boolean; + /** Filter by the object’s `storeId` field. */ + storeId?: UUIDFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `validationErrors` field. */ + validationErrors?: JSONFilter; } -export interface FunctionCapabilityBindingFilter { +export interface DatabaseFunctionGraphExecutionFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: FunctionCapabilityBindingFilter[]; - /** Filter by the object’s `bucketId` field. */ - bucketId?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; + and?: DatabaseFunctionGraphExecutionFilter[]; + /** Filter by the object’s `completedAt` field. */ + completedAt?: DatetimeFilter; + /** Filter by the object’s `currentWave` field. */ + currentWave?: IntFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `function` relation. */ - function?: FunctionDefinitionFilter; - /** A related `function` exists. */ - functionExists?: boolean; - /** Filter by the object’s `functionId` field. */ - functionId?: UUIDFilter; + /** Filter by the object’s `definitionsCommitId` field. */ + definitionsCommitId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `entityType` field. */ + entityType?: StringFilter; + /** Filter by the object’s `errorCode` field. */ + errorCode?: StringFilter; + /** Filter by the object’s `errorMessage` field. */ + errorMessage?: StringFilter; + /** Filter by the object’s `executionPlan` field. */ + executionPlan?: JSONFilter; + /** Filter by the object’s `graph` relation. */ + graph?: DatabaseFunctionGraphFilter; /** Filter by the object’s `graphId` field. */ graphId?: UUIDFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `key` field. */ - key?: StringFilter; - /** Filter by the object’s `lifecycle` field. */ - lifecycle?: StringFilter; - /** Filter by the object’s `metadata` field. */ - metadata?: JSONFilter; + /** Filter by the object’s `inputPayload` field. */ + inputPayload?: JSONFilter; + /** Filter by the object’s `invocationCreatedAt` field. */ + invocationCreatedAt?: DatetimeFilter; + /** Filter by the object’s `invocationId` field. */ + invocationId?: UUIDFilter; + /** Filter by the object’s `lastProgressAt` field. */ + lastProgressAt?: DatetimeFilter; + /** Filter by the object’s `maxPendingJobs` field. */ + maxPendingJobs?: IntFilter; + /** Filter by the object’s `maxTicks` field. */ + maxTicks?: IntFilter; + /** Filter by the object’s `nodeOutputs` field. */ + nodeOutputs?: JSONFilter; /** Negates the expression. */ - not?: FunctionCapabilityBindingFilter; + not?: DatabaseFunctionGraphExecutionFilter; /** Checks for any expressions in this list. */ - or?: FunctionCapabilityBindingFilter[]; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; + or?: DatabaseFunctionGraphExecutionFilter[]; + /** Filter by the object’s `organizationId` field. */ + organizationId?: UUIDFilter; + /** Filter by the object’s `outputNames` field. */ + outputNames?: StringListFilter; + /** Filter by the object’s `outputNode` field. */ + outputNode?: StringFilter; + /** Filter by the object’s `outputPayload` field. */ + outputPayload?: JSONFilter; + /** Filter by the object’s `outputPort` field. */ + outputPort?: StringFilter; + /** Filter by the object’s `parentExecutionId` field. */ + parentExecutionId?: UUIDFilter; + /** Filter by the object’s `parentInvocationId` field. */ + parentInvocationId?: UUIDFilter; + /** Filter by the object’s `parentNodeName` field. */ + parentNodeName?: StringFilter; + /** Filter by the object’s `principalId` field. */ + principalId?: UUIDFilter; + /** Filter by the object’s `startedAt` field. */ + startedAt?: DatetimeFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `tickCount` field. */ + tickCount?: IntFilter; + /** Filter by the object’s `timeoutAt` field. */ + timeoutAt?: DatetimeFilter; } -export interface FunctionDefinitionFilter { - /** Filter by the object’s `accessChannels` field. */ - accessChannels?: StringListFilter; +export interface DatabaseFunctionGraphExecutionNodeStateFilter { /** Checks for all expressions in this list. */ - and?: FunctionDefinitionFilter[]; - /** Filter by the object’s `category` field. */ - category?: StringFilter; - /** Filter by the object’s `concurrency` field. */ - concurrency?: IntFilter; - /** Filter by the object’s `cpuLimitMillicores` field. */ - cpuLimitMillicores?: BigIntFilter; - /** Filter by the object’s `cpuRequestMillicores` field. */ - cpuRequestMillicores?: BigIntFilter; + and?: DatabaseFunctionGraphExecutionNodeStateFilter[]; + /** Filter by the object’s `callbackInputs` field. */ + callbackInputs?: JSONFilter; + /** Filter by the object’s `callbackMeta` field. */ + callbackMeta?: JSONFilter; + /** Filter by the object’s `callbackTokenHash` field. */ + callbackTokenHash?: StringFilter; + /** Filter by the object’s `completedAt` field. */ + completedAt?: DatetimeFilter; /** 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 `fnCategory` field. */ - fnCategory?: StringFilter; - /** Filter by the object’s `functionApiBindings` relation. */ - functionApiBindings?: FunctionDefinitionToManyFunctionApiBindingFilter; - /** `functionApiBindings` exist. */ - functionApiBindingsExist?: boolean; - /** Filter by the object’s `functionCapabilityBindingsByFunctionId` relation. */ - functionCapabilityBindingsByFunctionId?: FunctionDefinitionToManyFunctionCapabilityBindingFilter; - /** `functionCapabilityBindingsByFunctionId` exist. */ - functionCapabilityBindingsByFunctionIdExist?: boolean; - /** Filter by the object’s `functionColumns` field. */ - functionColumns?: JSONFilter; - /** Filter by the object’s `graphId` field. */ - graphId?: UUIDFilter; - /** Filter by the object’s `icon` field. */ - icon?: StringFilter; + /** Filter by the object’s `errorCode` field. */ + errorCode?: StringFilter; + /** Filter by the object’s `errorMessage` field. */ + errorMessage?: StringFilter; + /** Filter by the object’s `executionId` field. */ + executionId?: UUIDFilter; + /** Filter by the object’s `expiryDefaultOutput` field. */ + expiryDefaultOutput?: JSONFilter; + /** Filter by the object’s `expiryEscalatedAt` field. */ + expiryEscalatedAt?: DatetimeFilter; + /** Filter by the object’s `expiryPolicy` field. */ + expiryPolicy?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `image` field. */ - image?: StringFilter; - /** Filter by the object’s `inputs` field. */ - inputs?: JSONFilter; - /** Filter by the object’s `integrations` field. */ - integrations?: StringListFilter; - /** Filter by the object’s `isPublished` field. */ - isPublished?: BooleanFilter; - /** Filter by the object’s `maxAttempts` field. */ - maxAttempts?: IntFilter; - /** Filter by the object’s `memoryLimitBytes` field. */ - memoryLimitBytes?: BigIntFilter; - /** Filter by the object’s `memoryRequestBytes` field. */ - memoryRequestBytes?: BigIntFilter; + /** Filter by the object’s `nodeName` field. */ + nodeName?: StringFilter; + /** Filter by the object’s `nodePath` field. */ + nodePath?: StringListFilter; + /** Negates the expression. */ + not?: DatabaseFunctionGraphExecutionNodeStateFilter; + /** Checks for any expressions in this list. */ + or?: DatabaseFunctionGraphExecutionNodeStateFilter[]; + /** Filter by the object’s `outputId` field. */ + outputId?: UUIDFilter; + /** Filter by the object’s `startedAt` field. */ + startedAt?: DatetimeFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `waitingDeadlineAt` field. */ + waitingDeadlineAt?: DatetimeFilter; + /** Filter by the object’s `waitingOn` field. */ + waitingOn?: StringFilter; + /** Filter by the object’s `waitingSince` field. */ + waitingSince?: DatetimeFilter; +} +export interface DatabaseFunctionGraphExecutionOutputFilter { + /** Checks for all expressions in this list. */ + and?: DatabaseFunctionGraphExecutionOutputFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `data` field. */ + data?: JSONFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `hash` field. */ + hash?: Base64EncodedBinaryFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: DatabaseFunctionGraphExecutionOutputFilter; + /** Checks for any expressions in this list. */ + or?: DatabaseFunctionGraphExecutionOutputFilter[]; +} +export interface DatabaseGraphCommitFilter { + /** Checks for all expressions in this list. */ + and?: DatabaseGraphCommitFilter[]; + /** Filter by the object’s `authorId` field. */ + authorId?: UUIDFilter; + /** Filter by the object’s `committerId` field. */ + committerId?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `date` field. */ + date?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `message` field. */ + message?: StringFilter; + /** Negates the expression. */ + not?: DatabaseGraphCommitFilter; + /** Checks for any expressions in this list. */ + or?: DatabaseGraphCommitFilter[]; + /** Filter by the object’s `parentIds` field. */ + parentIds?: UUIDListFilter; + /** Filter by the object’s `storeId` field. */ + storeId?: UUIDFilter; + /** Filter by the object’s `treeId` field. */ + treeId?: UUIDFilter; +} +export interface DatabaseGraphGetAllTreeNodesRecordFilter { + data?: JSONFilter; + path?: StringListFilter; + and?: DatabaseGraphGetAllTreeNodesRecordFilter[]; + or?: DatabaseGraphGetAllTreeNodesRecordFilter[]; + not?: DatabaseGraphGetAllTreeNodesRecordFilter; +} +export interface DatabaseGraphObjectFilter { + /** Checks for all expressions in this list. */ + and?: DatabaseGraphObjectFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `data` field. */ + data?: JSONFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `kids` field. */ + kids?: UUIDListFilter; + /** Filter by the object’s `ktree` field. */ + ktree?: StringListFilter; + /** Negates the expression. */ + not?: DatabaseGraphObjectFilter; + /** Checks for any expressions in this list. */ + or?: DatabaseGraphObjectFilter[]; +} +export interface DatabaseGraphRefFilter { + /** Checks for all expressions in this list. */ + and?: DatabaseGraphRefFilter[]; + /** Filter by the object’s `commitId` field. */ + commitId?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: DatabaseGraphRefFilter; + /** Checks for any expressions in this list. */ + or?: DatabaseGraphRefFilter[]; + /** Filter by the object’s `storeId` field. */ + storeId?: UUIDFilter; +} +export interface DatabaseGraphStoreFilter { + /** Checks for all expressions in this list. */ + and?: DatabaseGraphStoreFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `hash` field. */ + hash?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: DatabaseGraphStoreFilter; + /** Checks for any expressions in this list. */ + or?: DatabaseGraphStoreFilter[]; +} +export interface DbPresetFilter { + /** Filter by the object’s `active` field. */ + active?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: DbPresetFilter[]; + /** 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 `label` field. */ + label?: StringFilter; + /** Filter by the object’s `modulesHash` field. */ + modulesHash?: UUIDFilter; + /** Negates the expression. */ + not?: DbPresetFilter; + /** Checks for any expressions in this list. */ + or?: DbPresetFilter[]; + /** 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 FunctionApiBindingFilter { + /** Filter by the object’s `alias` field. */ + alias?: StringFilter; + /** Checks for all expressions in this list. */ + and?: FunctionApiBindingFilter[]; + /** 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 `functionDefinition` relation. */ + functionDefinition?: FunctionDefinitionFilter; + /** Filter by the object’s `functionDefinitionId` field. */ + functionDefinitionId?: UUIDFilter; + /** Filter by the object’s `functionInvocationsByApiBindingId` relation. */ + functionInvocationsByApiBindingId?: FunctionApiBindingToManyFunctionInvocationFilter; + /** `functionInvocationsByApiBindingId` exist. */ + functionInvocationsByApiBindingIdExist?: boolean; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: FunctionApiBindingFilter; + /** Checks for any expressions in this list. */ + or?: FunctionApiBindingFilter[]; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} +export interface FunctionCapabilityBindingFilter { + /** Checks for all expressions in this list. */ + and?: FunctionCapabilityBindingFilter[]; + /** 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 `function` relation. */ + function?: FunctionDefinitionFilter; + /** A related `function` exists. */ + functionExists?: boolean; + /** Filter by the object’s `functionId` field. */ + functionId?: UUIDFilter; + /** Filter by the object’s `graphId` field. */ + graphId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `key` field. */ + key?: StringFilter; + /** Filter by the object’s `lifecycle` field. */ + lifecycle?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Negates the expression. */ + not?: FunctionCapabilityBindingFilter; + /** Checks for any expressions in this list. */ + or?: FunctionCapabilityBindingFilter[]; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} +export interface FunctionDefinitionFilter { + /** Filter by the object’s `accessChannels` field. */ + accessChannels?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: FunctionDefinitionFilter[]; + /** Filter by the object’s `anonymousCallable` field. */ + anonymousCallable?: BooleanFilter; + /** Filter by the object’s `category` field. */ + category?: StringFilter; + /** Filter by the object’s `concurrency` field. */ + concurrency?: IntFilter; + /** Filter by the object’s `cpuLimitMillicores` field. */ + cpuLimitMillicores?: BigIntFilter; + /** Filter by the object’s `cpuRequestMillicores` field. */ + cpuRequestMillicores?: BigIntFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `fnCategory` field. */ + fnCategory?: StringFilter; + /** Filter by the object’s `functionApiBindings` relation. */ + functionApiBindings?: FunctionDefinitionToManyFunctionApiBindingFilter; + /** `functionApiBindings` exist. */ + functionApiBindingsExist?: boolean; + /** Filter by the object’s `functionCapabilityBindingsByFunctionId` relation. */ + functionCapabilityBindingsByFunctionId?: FunctionDefinitionToManyFunctionCapabilityBindingFilter; + /** `functionCapabilityBindingsByFunctionId` exist. */ + functionCapabilityBindingsByFunctionIdExist?: boolean; + /** Filter by the object’s `functionColumns` field. */ + functionColumns?: JSONFilter; + /** Filter by the object’s `graph` relation. */ + graph?: DatabaseFunctionGraphFilter; + /** A related `graph` exists. */ + graphExists?: boolean; + /** Filter by the object’s `graphId` field. */ + graphId?: UUIDFilter; + /** Filter by the object’s `icon` field. */ + icon?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `image` field. */ + image?: StringFilter; + /** Filter by the object’s `inputs` field. */ + inputs?: JSONFilter; + /** Filter by the object’s `integrations` field. */ + integrations?: StringListFilter; + /** Filter by the object’s `isPublished` field. */ + isPublished?: BooleanFilter; + /** Filter by the object’s `maxAttempts` field. */ + maxAttempts?: IntFilter; + /** Filter by the object’s `memoryLimitBytes` field. */ + memoryLimitBytes?: BigIntFilter; + /** Filter by the object’s `memoryRequestBytes` field. */ + memoryRequestBytes?: BigIntFilter; /** Filter by the object’s `moduleTable` field. */ moduleTable?: StringFilter; /** Filter by the object’s `name` field. */ @@ -3719,6 +7314,8 @@ export interface FunctionDefinitionFilter { queueName?: StringFilter; /** Filter by the object’s `requiredBuckets` field. */ requiredBuckets?: StringListFilter; + /** Filter by the object’s `requiredCapabilities` field. */ + requiredCapabilities?: JSONFilter; /** Filter by the object’s `requiredModels` field. */ requiredModels?: StringListFilter; /** Filter by the object’s `requiredModules` field. */ @@ -3741,6 +7338,8 @@ export interface FunctionDefinitionFilter { timeoutSeconds?: IntFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; /** Filter by the object’s `volatile` field. */ volatile?: BooleanFilter; /** Filter by the object’s `webhookEndpoints` relation. */ @@ -3757,6 +7356,8 @@ export interface FunctionDeploymentFilter { concurrency?: IntFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; /** Filter by the object’s `errorCount` field. */ @@ -3803,6 +7404,8 @@ export interface FunctionDeploymentFilter { timeoutSeconds?: IntFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } export interface FunctionDeploymentEventFilter { /** Filter by the object’s `actorId` field. */ @@ -3911,6 +7514,10 @@ export interface FunctionGraphFilter { platformFunctionDefinitionsByGraphId?: FunctionGraphToManyPlatformFunctionDefinitionFilter; /** `platformFunctionDefinitionsByGraphId` exist. */ platformFunctionDefinitionsByGraphIdExist?: boolean; + /** Filter by the object’s `platformRepositoryWorkflowsByGraphId` relation. */ + platformRepositoryWorkflowsByGraphId?: FunctionGraphToManyPlatformRepositoryWorkflowFilter; + /** `platformRepositoryWorkflowsByGraphId` exist. */ + platformRepositoryWorkflowsByGraphIdExist?: boolean; /** Filter by the object’s `scopeId` field. */ scopeId?: UUIDFilter; /** Filter by the object’s `storeId` field. */ @@ -4013,6 +7620,12 @@ export interface FunctionGraphExecutionNodeStateFilter { errorMessage?: StringFilter; /** Filter by the object’s `executionId` field. */ executionId?: UUIDFilter; + /** Filter by the object’s `expiryDefaultOutput` field. */ + expiryDefaultOutput?: JSONFilter; + /** Filter by the object’s `expiryEscalatedAt` field. */ + expiryEscalatedAt?: DatetimeFilter; + /** Filter by the object’s `expiryPolicy` field. */ + expiryPolicy?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `nodeName` field. */ @@ -4031,6 +7644,12 @@ export interface FunctionGraphExecutionNodeStateFilter { startedAt?: DatetimeFilter; /** Filter by the object’s `status` field. */ status?: StringFilter; + /** Filter by the object’s `waitingDeadlineAt` field. */ + waitingDeadlineAt?: DatetimeFilter; + /** Filter by the object’s `waitingOn` field. */ + waitingOn?: StringFilter; + /** Filter by the object’s `waitingSince` field. */ + waitingSince?: DatetimeFilter; } export interface FunctionGraphExecutionOutputFilter { /** Checks for all expressions in this list. */ @@ -4157,12 +7776,18 @@ export interface FunctionInvocationFilter { completedAt?: DatetimeFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; /** Filter by the object’s `definitionScope` field. */ definitionScope?: StringFilter; /** Filter by the object’s `durationMs` field. */ durationMs?: IntFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `entityType` field. */ + entityType?: StringFilter; /** Filter by the object’s `error` field. */ error?: StringFilter; /** Filter by the object’s `functionDefinitionId` field. */ @@ -4177,10 +7802,14 @@ export interface FunctionInvocationFilter { not?: FunctionInvocationFilter; /** Checks for any expressions in this list. */ or?: FunctionInvocationFilter[]; + /** Filter by the object’s `organizationId` field. */ + organizationId?: UUIDFilter; /** Filter by the object’s `parentInvocationId` field. */ parentInvocationId?: UUIDFilter; /** Filter by the object’s `payload` field. */ payload?: JSONFilter; + /** Filter by the object’s `principalId` field. */ + principalId?: UUIDFilter; /** Filter by the object’s `provenance` field. */ provenance?: JSONFilter; /** Filter by the object’s `result` field. */ @@ -4199,16 +7828,100 @@ export interface GetAllTreeNodesRecordFilter { or?: GetAllTreeNodesRecordFilter[]; not?: GetAllTreeNodesRecordFilter; } -export interface InfraCommitFilter { +export interface ImageFilter { /** Checks for all expressions in this list. */ - and?: InfraCommitFilter[]; - /** Filter by the object’s `authorId` field. */ - authorId?: UUIDFilter; - /** Filter by the object’s `committerId` field. */ - committerId?: UUIDFilter; + and?: ImageFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `date` field. */ + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `digest` field. */ + digest?: StringFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `imageGrants` relation. */ + imageGrants?: ImageToManyImageGrantFilter; + /** `imageGrants` exist. */ + imageGrantsExist?: boolean; + /** Filter by the object’s `isPublished` field. */ + isPublished?: BooleanFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: ImageFilter; + /** Checks for any expressions in this list. */ + or?: ImageFilter[]; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `platformOnly` field. */ + platformOnly?: BooleanFilter; + /** Filter by the object’s `registryHost` field. */ + registryHost?: StringFilter; + /** Filter by the object’s `repository` field. */ + repository?: StringFilter; + /** Filter by the object’s `runtime` field. */ + runtime?: StringFilter; + /** Filter by the object’s `tag` field. */ + tag?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} +export interface ImageGrantFilter { + /** Filter by the object’s `actions` field. */ + actions?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: ImageGrantFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; + /** Filter by the object’s `grantedBy` field. */ + grantedBy?: UUIDFilter; + /** Filter by the object’s `granteeKey` field. */ + granteeKey?: UUIDFilter; + /** Filter by the object’s `granteeScope` field. */ + granteeScope?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `image` relation. */ + image?: ImageFilter; + /** Filter by the object’s `imageId` field. */ + imageId?: UUIDFilter; + /** Negates the expression. */ + not?: ImageGrantFilter; + /** Checks for any expressions in this list. */ + or?: ImageGrantFilter[]; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} +export interface InfraCommitFilter { + /** Checks for all expressions in this list. */ + and?: InfraCommitFilter[]; + /** Filter by the object’s `authorId` field. */ + authorId?: UUIDFilter; + /** Filter by the object’s `committerId` field. */ + committerId?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `date` field. */ date?: DatetimeFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -4321,6 +8034,12 @@ export interface NamespaceFilter { and?: NamespaceFilter[]; /** Filter by the object’s `annotations` field. */ annotations?: JSONFilter; + /** Filter by the object’s `builderBindings` relation. */ + builderBindings?: NamespaceToManyBuilderBindingFilter; + /** `builderBindings` exist. */ + builderBindingsExist?: boolean; + /** Filter by the object’s `clusterId` field. */ + clusterId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `databaseId` field. */ @@ -4349,6 +8068,10 @@ export interface NamespaceFilter { not?: NamespaceFilter; /** Checks for any expressions in this list. */ or?: NamespaceFilter[]; + /** Filter by the object’s `registryBindings` relation. */ + registryBindings?: NamespaceToManyRegistryBindingFilter; + /** `registryBindings` exist. */ + registryBindingsExist?: boolean; /** Filter by the object’s `resourceDefinitions` relation. */ resourceDefinitions?: NamespaceToManyResourceDefinitionFilter; /** `resourceDefinitions` exist. */ @@ -4394,6 +8117,148 @@ export interface NamespaceEventFilter { /** Checks for any expressions in this list. */ or?: NamespaceEventFilter[]; } +export interface PlatformBuildFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: PlatformBuildFilter[]; + /** Filter by the object’s `attempt` field. */ + attempt?: IntFilter; + /** Filter by the object’s `commitSha` field. */ + commitSha?: StringFilter; + /** Filter by the object’s `conclusion` field. */ + conclusion?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `event` relation. */ + event?: PlatformRepositoryEventFilter; + /** A related `event` exists. */ + eventExists?: boolean; + /** Filter by the object’s `eventId` field. */ + eventId?: UUIDFilter; + /** Filter by the object’s `finishedAt` field. */ + finishedAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `imageRef` field. */ + imageRef?: StringFilter; + /** Filter by the object’s `jobId` field. */ + jobId?: BigIntFilter; + /** Filter by the object’s `logs` field. */ + logs?: ConstructiveInternalTypeUploadFilter; + /** Filter by the object’s `matrixKey` field. */ + matrixKey?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Negates the expression. */ + not?: PlatformBuildFilter; + /** Checks for any expressions in this list. */ + or?: PlatformBuildFilter[]; + /** Filter by the object’s `proposal` relation. */ + proposal?: PlatformProposalFilter; + /** A related `proposal` exists. */ + proposalExists?: boolean; + /** Filter by the object’s `proposalId` field. */ + proposalId?: UUIDFilter; + /** Filter by the object’s `ref` field. */ + ref?: StringFilter; + /** Filter by the object’s `repository` relation. */ + repository?: PlatformRepositoryFilter; + /** Filter by the object’s `repositoryId` field. */ + repositoryId?: UUIDFilter; + /** Filter by the object’s `startedAt` field. */ + startedAt?: DatetimeFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** Filter by the object’s `workflow` relation. */ + workflow?: PlatformRepositoryWorkflowFilter; + /** A related `workflow` exists. */ + workflowExists?: boolean; + /** Filter by the object’s `workflowId` field. */ + workflowId?: UUIDFilter; +} +export interface PlatformBuildStepFilter { + /** Checks for all expressions in this list. */ + and?: PlatformBuildStepFilter[]; + /** Filter by the object’s `buildId` field. */ + buildId?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `exitCode` field. */ + exitCode?: IntFilter; + /** Filter by the object’s `finishedAt` field. */ + finishedAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `logBytes` field. */ + logBytes?: BigIntFilter; + /** Filter by the object’s `logOffset` field. */ + logOffset?: BigIntFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: PlatformBuildStepFilter; + /** Checks for any expressions in this list. */ + or?: PlatformBuildStepFilter[]; + /** Filter by the object’s `parentSeq` field. */ + parentSeq?: IntFilter; + /** Filter by the object’s `recordedAt` field. */ + recordedAt?: DatetimeFilter; + /** Filter by the object’s `seq` field. */ + seq?: IntFilter; + /** Filter by the object’s `startedAt` field. */ + startedAt?: DatetimeFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `summary` field. */ + summary?: JSONFilter; +} +export interface PlatformBuilderBindingFilter { + /** Checks for all expressions in this list. */ + and?: PlatformBuilderBindingFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `installationId` field. */ + installationId?: UUIDFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: PlatformNamespaceFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformBuilderBindingFilter; + /** Filter by the object’s `observedHost` field. */ + observedHost?: StringFilter; + /** Checks for any expressions in this list. */ + or?: PlatformBuilderBindingFilter[]; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} export interface PlatformFunctionApiBindingFilter { /** Filter by the object’s `alias` field. */ alias?: StringFilter; @@ -4457,6 +8322,8 @@ export interface PlatformFunctionDefinitionFilter { accessChannels?: StringListFilter; /** Checks for all expressions in this list. */ and?: PlatformFunctionDefinitionFilter[]; + /** Filter by the object’s `anonymousCallable` field. */ + anonymousCallable?: BooleanFilter; /** Filter by the object’s `billable` field. */ billable?: BooleanFilter; /** Filter by the object’s `category` field. */ @@ -4469,6 +8336,8 @@ export interface PlatformFunctionDefinitionFilter { cpuRequestMillicores?: BigIntFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `description` field. */ description?: StringFilter; /** Filter by the object’s `fnCategory` field. */ @@ -4535,6 +8404,8 @@ export interface PlatformFunctionDefinitionFilter { queueName?: StringFilter; /** Filter by the object’s `requiredBuckets` field. */ requiredBuckets?: StringListFilter; + /** Filter by the object’s `requiredCapabilities` field. */ + requiredCapabilities?: JSONFilter; /** Filter by the object’s `requiredModels` field. */ requiredModels?: StringListFilter; /** Filter by the object’s `requiredModules` field. */ @@ -4559,6 +8430,8 @@ export interface PlatformFunctionDefinitionFilter { timeoutSeconds?: IntFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; /** Filter by the object’s `volatile` field. */ volatile?: BooleanFilter; } @@ -4571,6 +8444,8 @@ export interface PlatformFunctionDeploymentFilter { concurrency?: IntFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `errorCount` field. */ errorCount?: IntFilter; /** Filter by the object’s `handlerName` field. */ @@ -4615,6 +8490,8 @@ export interface PlatformFunctionDeploymentFilter { timeoutSeconds?: IntFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } export interface PlatformFunctionDeploymentEventFilter { /** Filter by the object’s `actorId` field. */ @@ -4711,12 +8588,18 @@ export interface PlatformFunctionInvocationFilter { completedAt?: DatetimeFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; /** Filter by the object’s `definitionScope` field. */ definitionScope?: StringFilter; /** Filter by the object’s `durationMs` field. */ durationMs?: IntFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `entityType` field. */ + entityType?: StringFilter; /** Filter by the object’s `error` field. */ error?: StringFilter; /** Filter by the object’s `functionDefinitionId` field. */ @@ -4731,10 +8614,14 @@ export interface PlatformFunctionInvocationFilter { not?: PlatformFunctionInvocationFilter; /** Checks for any expressions in this list. */ or?: PlatformFunctionInvocationFilter[]; + /** Filter by the object’s `organizationId` field. */ + organizationId?: UUIDFilter; /** Filter by the object’s `parentInvocationId` field. */ parentInvocationId?: UUIDFilter; /** Filter by the object’s `payload` field. */ payload?: JSONFilter; + /** Filter by the object’s `principalId` field. */ + principalId?: UUIDFilter; /** Filter by the object’s `provenance` field. */ provenance?: JSONFilter; /** Filter by the object’s `result` field. */ @@ -4746,6 +8633,86 @@ export interface PlatformFunctionInvocationFilter { /** Filter by the object’s `taskIdentifier` field. */ taskIdentifier?: StringFilter; } +export interface PlatformImageFilter { + /** Checks for all expressions in this list. */ + and?: PlatformImageFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `digest` field. */ + digest?: StringFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isPublished` field. */ + isPublished?: BooleanFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: PlatformImageFilter; + /** Checks for any expressions in this list. */ + or?: PlatformImageFilter[]; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `platformImageGrantsByImageId` relation. */ + platformImageGrantsByImageId?: PlatformImageToManyPlatformImageGrantFilter; + /** `platformImageGrantsByImageId` exist. */ + platformImageGrantsByImageIdExist?: boolean; + /** Filter by the object’s `platformOnly` field. */ + platformOnly?: BooleanFilter; + /** Filter by the object’s `registryHost` field. */ + registryHost?: StringFilter; + /** Filter by the object’s `repository` field. */ + repository?: StringFilter; + /** Filter by the object’s `runtime` field. */ + runtime?: StringFilter; + /** Filter by the object’s `tag` field. */ + tag?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} +export interface PlatformImageGrantFilter { + /** Filter by the object’s `actions` field. */ + actions?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: PlatformImageGrantFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; + /** Filter by the object’s `grantedBy` field. */ + grantedBy?: UUIDFilter; + /** Filter by the object’s `granteeKey` field. */ + granteeKey?: UUIDFilter; + /** Filter by the object’s `granteeScope` field. */ + granteeScope?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `image` relation. */ + image?: PlatformImageFilter; + /** Filter by the object’s `imageId` field. */ + imageId?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformImageGrantFilter; + /** Checks for any expressions in this list. */ + or?: PlatformImageGrantFilter[]; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} export interface PlatformInfraCommitFilter { /** Checks for all expressions in this list. */ and?: PlatformInfraCommitFilter[]; @@ -4835,11 +8802,69 @@ export interface PlatformInfraStoreFilter { /** Filter by the object’s `scopeId` field. */ scopeId?: UUIDFilter; } +export interface PlatformK8sResourceKindFilter { + /** Filter by the object’s `active` field. */ + active?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: PlatformK8sResourceKindFilter[]; + /** 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 `label` field. */ + label?: StringFilter; + /** Negates the expression. */ + not?: PlatformK8sResourceKindFilter; + /** Checks for any expressions in this list. */ + or?: PlatformK8sResourceKindFilter[]; + /** 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 PlatformK8sSpecRuleFilter { + /** Filter by the object’s `active` field. */ + active?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: PlatformK8sSpecRuleFilter[]; + /** 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 `label` field. */ + label?: StringFilter; + /** Negates the expression. */ + not?: PlatformK8sSpecRuleFilter; + /** Checks for any expressions in this list. */ + or?: PlatformK8sSpecRuleFilter[]; + /** 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 PlatformNamespaceFilter { /** Checks for all expressions in this list. */ and?: PlatformNamespaceFilter[]; /** Filter by the object’s `annotations` field. */ annotations?: JSONFilter; + /** Filter by the object’s `clusterId` field. */ + clusterId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `description` field. */ @@ -4862,10 +8887,18 @@ export interface PlatformNamespaceFilter { not?: PlatformNamespaceFilter; /** Checks for any expressions in this list. */ or?: PlatformNamespaceFilter[]; + /** Filter by the object’s `platformBuilderBindingsByNamespaceId` relation. */ + platformBuilderBindingsByNamespaceId?: PlatformNamespaceToManyPlatformBuilderBindingFilter; + /** `platformBuilderBindingsByNamespaceId` exist. */ + platformBuilderBindingsByNamespaceIdExist?: boolean; /** Filter by the object’s `platformFunctionDeploymentsByNamespaceId` relation. */ platformFunctionDeploymentsByNamespaceId?: PlatformNamespaceToManyPlatformFunctionDeploymentFilter; /** `platformFunctionDeploymentsByNamespaceId` exist. */ platformFunctionDeploymentsByNamespaceIdExist?: boolean; + /** Filter by the object’s `platformRegistryBindingsByNamespaceId` relation. */ + platformRegistryBindingsByNamespaceId?: PlatformNamespaceToManyPlatformRegistryBindingFilter; + /** `platformRegistryBindingsByNamespaceId` exist. */ + platformRegistryBindingsByNamespaceIdExist?: boolean; /** Filter by the object’s `platformResourceDefinitionsByNamespaceId` relation. */ platformResourceDefinitionsByNamespaceId?: PlatformNamespaceToManyPlatformResourceDefinitionFilter; /** `platformResourceDefinitionsByNamespaceId` exist. */ @@ -4909,58 +8942,754 @@ export interface PlatformNamespaceEventFilter { /** Checks for any expressions in this list. */ or?: PlatformNamespaceEventFilter[]; } -export interface PlatformResourceFilter { +export interface PlatformProposalCommentFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: PlatformResourceFilter[]; - /** Filter by the object’s `annotations` field. */ - annotations?: JSONFilter; - /** Filter by the object’s `cpuLimitMillicores` field. */ - cpuLimitMillicores?: BigIntFilter; - /** Filter by the object’s `cpuRequestMillicores` field. */ - cpuRequestMillicores?: BigIntFilter; + and?: PlatformProposalCommentFilter[]; + /** Filter by the object’s `attachments` field. */ + attachments?: ConstructiveInternalTypeUploadListFilter; + /** Filter by the object’s `body` field. */ + body?: StringTrgmFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `createdBy` field. */ createdBy?: UUIDFilter; - /** Filter by the object’s `errorCount` field. */ - errorCount?: IntFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `embedding` field. */ + embedding?: VectorFilter; + /** Filter by the object’s `embeddingUpdatedAt` field. */ + embeddingUpdatedAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `line` field. */ + line?: IntFilter; + /** Negates the expression. */ + not?: PlatformProposalCommentFilter; + /** Checks for any expressions in this list. */ + or?: PlatformProposalCommentFilter[]; + /** Filter by the object’s `outdatedAt` field. */ + outdatedAt?: DatetimeFilter; + /** Filter by the object’s `path` field. */ + path?: StringTrgmFilter; + /** Filter by the object’s `platformProposalReactionsByCommentId` relation. */ + platformProposalReactionsByCommentId?: PlatformProposalCommentToManyPlatformProposalReactionFilter; + /** `platformProposalReactionsByCommentId` exist. */ + platformProposalReactionsByCommentIdExist?: boolean; + /** Filter by the object’s `proposal` relation. */ + proposal?: PlatformProposalFilter; + /** Filter by the object’s `proposalId` field. */ + proposalId?: UUIDFilter; + /** Filter by the object’s `resolvedAt` field. */ + resolvedAt?: DatetimeFilter; + /** Filter by the object’s `search` field. */ + search?: FullTextFilter; + /** TRGM search on the `body` column. */ + trgmBody?: TrgmSearchInput; + /** TRGM search on the `path` column. */ + trgmPath?: TrgmSearchInput; + /** TSV search on the `search` column. */ + tsvSearch?: string; + /** + * Composite unified search. Provide a search string and it will be dispatched to + * all text-compatible search algorithms (tsvector, BM25, pg_trgm) + * simultaneously. When the LLM plugin is active, pgvector also participates via + * auto-embedding. Rows matching ANY algorithm are returned. All matching score + * fields are populated. + */ + unifiedSearch?: string; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** VECTOR search on the `embedding` column. */ + vectorEmbedding?: VectorNearbyInput; +} +export interface PlatformProposalFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: PlatformProposalFilter[]; + /** Filter by the object’s `body` field. */ + body?: StringTrgmFilter; + /** Filter by the object’s `childPlatformProposals` relation. */ + childPlatformProposals?: PlatformProposalToManyPlatformProposalFilter; + /** `childPlatformProposals` exist. */ + childPlatformProposalsExist?: boolean; + /** Filter by the object’s `closedReason` field. */ + closedReason?: StringTrgmFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `decidedAt` field. */ + decidedAt?: DatetimeFilter; + /** Filter by the object’s `dueAt` field. */ + dueAt?: DatetimeFilter; + /** Filter by the object’s `embedding` field. */ + embedding?: VectorFilter; + /** Filter by the object’s `embeddingUpdatedAt` field. */ + embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `installation` relation. */ - installation?: PlatformResourceInstallationFilter; - /** A related `installation` exists. */ - installationExists?: boolean; - /** Filter by the object’s `installationId` field. */ - installationId?: UUIDFilter; - /** Filter by the object’s `integrations` field. */ - integrations?: StringListFilter; /** Filter by the object’s `kind` field. */ - kind?: StringFilter; + kind?: StringTrgmFilter; /** Filter by the object’s `labels` field. */ - labels?: JSONFilter; - /** Filter by the object’s `lastError` field. */ - lastError?: StringFilter; - /** Filter by the object’s `lastHeartbeatAt` field. */ - lastHeartbeatAt?: DatetimeFilter; - /** Filter by the object’s `memoryLimitBytes` field. */ - memoryLimitBytes?: BigIntFilter; - /** Filter by the object’s `memoryRequestBytes` field. */ - memoryRequestBytes?: BigIntFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: PlatformNamespaceFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; + labels?: StringListFilter; + /** Filter by the object’s `mergeCommit` field. */ + mergeCommit?: StringTrgmFilter; + /** Filter by the object’s `mergeMethod` field. */ + mergeMethod?: StringTrgmFilter; + /** Filter by the object’s `mergeRequestedAt` field. */ + mergeRequestedAt?: DatetimeFilter; + /** Filter by the object’s `mergedAt` field. */ + mergedAt?: DatetimeFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; /** Negates the expression. */ - not?: PlatformResourceFilter; + not?: PlatformProposalFilter; /** Checks for any expressions in this list. */ - or?: PlatformResourceFilter[]; - /** Filter by the object’s `platformResourceStatusChecksByResourceId` relation. */ - platformResourceStatusChecksByResourceId?: PlatformResourceToManyPlatformResourceStatusCheckFilter; - /** `platformResourceStatusChecksByResourceId` exist. */ - platformResourceStatusChecksByResourceIdExist?: boolean; - /** Filter by the object’s `realm` field. */ + or?: PlatformProposalFilter[]; + /** Filter by the object’s `parent` relation. */ + parent?: PlatformProposalFilter; + /** A related `parent` exists. */ + parentExists?: boolean; + /** Filter by the object’s `parentId` field. */ + parentId?: UUIDFilter; + /** Filter by the object’s `platformBuildsByProposalId` relation. */ + platformBuildsByProposalId?: PlatformProposalToManyPlatformBuildFilter; + /** `platformBuildsByProposalId` exist. */ + platformBuildsByProposalIdExist?: boolean; + /** Filter by the object’s `platformProposalCommentsByProposalId` relation. */ + platformProposalCommentsByProposalId?: PlatformProposalToManyPlatformProposalCommentFilter; + /** `platformProposalCommentsByProposalId` exist. */ + platformProposalCommentsByProposalIdExist?: boolean; + /** Filter by the object’s `platformProposalFileViewsByProposalId` relation. */ + platformProposalFileViewsByProposalId?: PlatformProposalToManyPlatformProposalFileViewFilter; + /** `platformProposalFileViewsByProposalId` exist. */ + platformProposalFileViewsByProposalIdExist?: boolean; + /** Filter by the object’s `platformProposalReactionsByProposalId` relation. */ + platformProposalReactionsByProposalId?: PlatformProposalToManyPlatformProposalReactionFilter; + /** `platformProposalReactionsByProposalId` exist. */ + platformProposalReactionsByProposalIdExist?: boolean; + /** Filter by the object’s `platformProposalReviewsByProposalId` relation. */ + platformProposalReviewsByProposalId?: PlatformProposalToManyPlatformProposalReviewFilter; + /** `platformProposalReviewsByProposalId` exist. */ + platformProposalReviewsByProposalIdExist?: boolean; + /** Filter by the object’s `platformProposalsChunksByPlatformProposalsId` relation. */ + platformProposalsChunksByPlatformProposalsId?: PlatformProposalToManyPlatformProposalsChunkFilter; + /** `platformProposalsChunksByPlatformProposalsId` exist. */ + platformProposalsChunksByPlatformProposalsIdExist?: boolean; + /** Filter by the object’s `priority` field. */ + priority?: BigFloatFilter; + /** Filter by the object’s `repository` relation. */ + repository?: PlatformRepositoryFilter; + /** Filter by the object’s `repositoryId` field. */ + repositoryId?: UUIDFilter; + /** Filter by the object’s `resolution` field. */ + resolution?: StringTrgmFilter; + /** Filter by the object’s `search` field. */ + search?: FullTextFilter; + /** Filter by the object’s `sourceRef` field. */ + sourceRef?: StringTrgmFilter; + /** Filter by the object’s `status` field. */ + status?: StringTrgmFilter; + /** Filter by the object’s `targetRef` field. */ + targetRef?: StringTrgmFilter; + /** Filter by the object’s `title` field. */ + title?: StringTrgmFilter; + /** TRGM search on the `body` column. */ + trgmBody?: TrgmSearchInput; + /** TRGM search on the `closed_reason` column. */ + trgmClosedReason?: TrgmSearchInput; + /** TRGM search on the `kind` column. */ + trgmKind?: TrgmSearchInput; + /** TRGM search on the `merge_commit` column. */ + trgmMergeCommit?: TrgmSearchInput; + /** TRGM search on the `merge_method` column. */ + trgmMergeMethod?: TrgmSearchInput; + /** TRGM search on the `resolution` column. */ + trgmResolution?: TrgmSearchInput; + /** TRGM search on the `source_ref` column. */ + trgmSourceRef?: TrgmSearchInput; + /** TRGM search on the `status` column. */ + trgmStatus?: TrgmSearchInput; + /** TRGM search on the `target_ref` column. */ + trgmTargetRef?: TrgmSearchInput; + /** TRGM search on the `title` column. */ + trgmTitle?: TrgmSearchInput; + /** TSV search on the `search` column. */ + tsvSearch?: string; + /** + * Composite unified search. Provide a search string and it will be dispatched to + * all text-compatible search algorithms (tsvector, BM25, pg_trgm) + * simultaneously. When the LLM plugin is active, pgvector also participates via + * auto-embedding. Rows matching ANY algorithm are returned. All matching score + * fields are populated. + */ + unifiedSearch?: string; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** VECTOR search on the `embedding` column. */ + vectorEmbedding?: VectorNearbyInput; +} +export interface PlatformProposalFileViewFilter { + /** Checks for all expressions in this list. */ + and?: PlatformProposalFileViewFilter[]; + /** Filter by the object’s `blobSha` field. */ + blobSha?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformProposalFileViewFilter; + /** Checks for any expressions in this list. */ + or?: PlatformProposalFileViewFilter[]; + /** Filter by the object’s `path` field. */ + path?: StringFilter; + /** Filter by the object’s `proposal` relation. */ + proposal?: PlatformProposalFilter; + /** Filter by the object’s `proposalId` field. */ + proposalId?: UUIDFilter; + /** Filter by the object’s `reviewerId` field. */ + reviewerId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** Filter by the object’s `viewedAt` field. */ + viewedAt?: DatetimeFilter; +} +export interface PlatformProposalReactionFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: PlatformProposalReactionFilter[]; + /** Filter by the object’s `comment` relation. */ + comment?: PlatformProposalCommentFilter; + /** A related `comment` exists. */ + commentExists?: boolean; + /** Filter by the object’s `commentId` field. */ + commentId?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `emoji` field. */ + emoji?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformProposalReactionFilter; + /** Checks for any expressions in this list. */ + or?: PlatformProposalReactionFilter[]; + /** Filter by the object’s `proposal` relation. */ + proposal?: PlatformProposalFilter; + /** Filter by the object’s `proposalId` field. */ + proposalId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} +export interface PlatformProposalReviewFilter { + /** Checks for all expressions in this list. */ + and?: PlatformProposalReviewFilter[]; + /** Filter by the object’s `body` field. */ + body?: StringTrgmFilter; + /** Filter by the object’s `commitSha` field. */ + commitSha?: StringTrgmFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformProposalReviewFilter; + /** Checks for any expressions in this list. */ + or?: PlatformProposalReviewFilter[]; + /** Filter by the object’s `proposal` relation. */ + proposal?: PlatformProposalFilter; + /** Filter by the object’s `proposalId` field. */ + proposalId?: UUIDFilter; + /** Filter by the object’s `reviewerId` field. */ + reviewerId?: UUIDFilter; + /** Filter by the object’s `search` field. */ + search?: FullTextFilter; + /** Filter by the object’s `submittedAt` field. */ + submittedAt?: DatetimeFilter; + /** TRGM search on the `body` column. */ + trgmBody?: TrgmSearchInput; + /** TRGM search on the `commit_sha` column. */ + trgmCommitSha?: TrgmSearchInput; + /** TRGM search on the `verdict` column. */ + trgmVerdict?: TrgmSearchInput; + /** TSV search on the `search` column. */ + tsvSearch?: string; + /** + * Composite unified search. Provide a search string and it will be dispatched to + * all text-compatible search algorithms (tsvector, BM25, pg_trgm) + * simultaneously. When the LLM plugin is active, pgvector also participates via + * auto-embedding. Rows matching ANY algorithm are returned. All matching score + * fields are populated. + */ + unifiedSearch?: string; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** Filter by the object’s `verdict` field. */ + verdict?: StringTrgmFilter; +} +export interface PlatformProposalsChunkFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: PlatformProposalsChunkFilter[]; + /** Filter by the object’s `body` field. */ + body?: StringFilter; + /** Filter by the object’s `chunkIndex` field. */ + chunkIndex?: IntFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `embedding` field. */ + embedding?: VectorFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Negates the expression. */ + not?: PlatformProposalsChunkFilter; + /** Checks for any expressions in this list. */ + or?: PlatformProposalsChunkFilter[]; + /** Filter by the object’s `platformProposals` relation. */ + platformProposals?: PlatformProposalFilter; + /** Filter by the object’s `platformProposalsId` field. */ + platformProposalsId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** VECTOR search on the `embedding` column. */ + vectorEmbedding?: VectorNearbyInput; +} +export interface PlatformRegistryBindingFilter { + /** Checks for all expressions in this list. */ + and?: PlatformRegistryBindingFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: PlatformNamespaceFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformRegistryBindingFilter; + /** Filter by the object’s `observedCredentialVersion` field. */ + observedCredentialVersion?: StringFilter; + /** Checks for any expressions in this list. */ + or?: PlatformRegistryBindingFilter[]; + /** Filter by the object’s `pullSecretName` field. */ + pullSecretName?: StringFilter; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; + /** Filter by the object’s `registry` relation. */ + registry?: PlatformRegistryFilter; + /** Filter by the object’s `registryHost` field. */ + registryHost?: StringFilter; + /** Filter by the object’s `registryId` field. */ + registryId?: UUIDFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} +export interface PlatformRegistryFilter { + /** Checks for all expressions in this list. */ + and?: PlatformRegistryFilter[]; + /** Filter by the object’s `authMode` field. */ + authMode?: StringFilter; + /** Filter by the object’s `basePath` field. */ + basePath?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `credentialSecretName` field. */ + credentialSecretName?: StringFilter; + /** Filter by the object’s `host` field. */ + host?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `installation` relation. */ + installation?: PlatformResourceInstallationFilter; + /** A related `installation` exists. */ + installationExists?: boolean; + /** Filter by the object’s `installationId` field. */ + installationId?: UUIDFilter; + /** Filter by the object’s `isPublished` field. */ + isPublished?: BooleanFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: PlatformRegistryFilter; + /** Checks for any expressions in this list. */ + or?: PlatformRegistryFilter[]; + /** Filter by the object’s `platformOnly` field. */ + platformOnly?: BooleanFilter; + /** Filter by the object’s `platformRegistryBindingsByRegistryId` relation. */ + platformRegistryBindingsByRegistryId?: PlatformRegistryToManyPlatformRegistryBindingFilter; + /** `platformRegistryBindingsByRegistryId` exist. */ + platformRegistryBindingsByRegistryIdExist?: boolean; + /** Filter by the object’s `platformRegistryGrantsByRegistryId` relation. */ + platformRegistryGrantsByRegistryId?: PlatformRegistryToManyPlatformRegistryGrantFilter; + /** `platformRegistryGrantsByRegistryId` exist. */ + platformRegistryGrantsByRegistryIdExist?: boolean; + /** Filter by the object’s `role` field. */ + role?: StringFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} +export interface PlatformRegistryGrantFilter { + /** Filter by the object’s `actions` field. */ + actions?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: PlatformRegistryGrantFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; + /** Filter by the object’s `grantedBy` field. */ + grantedBy?: UUIDFilter; + /** Filter by the object’s `granteeKey` field. */ + granteeKey?: UUIDFilter; + /** Filter by the object’s `granteeScope` field. */ + granteeScope?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformRegistryGrantFilter; + /** Checks for any expressions in this list. */ + or?: PlatformRegistryGrantFilter[]; + /** Filter by the object’s `registry` relation. */ + registry?: PlatformRegistryFilter; + /** Filter by the object’s `registryId` field. */ + registryId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} +export interface PlatformRepositoryFilter { + /** Checks for all expressions in this list. */ + and?: PlatformRepositoryFilter[]; + /** Filter by the object’s `cloneUrl` field. */ + cloneUrl?: StringTrgmFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `defaultBranch` field. */ + defaultBranch?: StringTrgmFilter; + /** Filter by the object’s `description` field. */ + description?: StringTrgmFilter; + /** Filter by the object’s `embedding` field. */ + embedding?: VectorFilter; + /** Filter by the object’s `embeddingUpdatedAt` field. */ + embeddingUpdatedAt?: DatetimeFilter; + /** Filter by the object’s `externalId` field. */ + externalId?: StringTrgmFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isArchived` field. */ + isArchived?: BooleanFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `name` field. */ + name?: StringTrgmFilter; + /** Negates the expression. */ + not?: PlatformRepositoryFilter; + /** Checks for any expressions in this list. */ + or?: PlatformRepositoryFilter[]; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `platformBuildsByRepositoryId` relation. */ + platformBuildsByRepositoryId?: PlatformRepositoryToManyPlatformBuildFilter; + /** `platformBuildsByRepositoryId` exist. */ + platformBuildsByRepositoryIdExist?: boolean; + /** Filter by the object’s `platformProposalsByRepositoryId` relation. */ + platformProposalsByRepositoryId?: PlatformRepositoryToManyPlatformProposalFilter; + /** `platformProposalsByRepositoryId` exist. */ + platformProposalsByRepositoryIdExist?: boolean; + /** Filter by the object’s `platformRepositoryEventsByRepositoryId` relation. */ + platformRepositoryEventsByRepositoryId?: PlatformRepositoryToManyPlatformRepositoryEventFilter; + /** `platformRepositoryEventsByRepositoryId` exist. */ + platformRepositoryEventsByRepositoryIdExist?: boolean; + /** Filter by the object’s `platformRepositoryRequiredChecksByRepositoryId` relation. */ + platformRepositoryRequiredChecksByRepositoryId?: PlatformRepositoryToManyPlatformRepositoryRequiredCheckFilter; + /** `platformRepositoryRequiredChecksByRepositoryId` exist. */ + platformRepositoryRequiredChecksByRepositoryIdExist?: boolean; + /** Filter by the object’s `platformRepositoryWorkflowsByRepositoryId` relation. */ + platformRepositoryWorkflowsByRepositoryId?: PlatformRepositoryToManyPlatformRepositoryWorkflowFilter; + /** `platformRepositoryWorkflowsByRepositoryId` exist. */ + platformRepositoryWorkflowsByRepositoryIdExist?: boolean; + /** Filter by the object’s `provider` field. */ + provider?: StringTrgmFilter; + /** Filter by the object’s `search` field. */ + search?: FullTextFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringTrgmFilter; + /** TRGM search on the `clone_url` column. */ + trgmCloneUrl?: TrgmSearchInput; + /** TRGM search on the `default_branch` column. */ + trgmDefaultBranch?: TrgmSearchInput; + /** TRGM search on the `description` column. */ + trgmDescription?: TrgmSearchInput; + /** TRGM search on the `external_id` column. */ + trgmExternalId?: TrgmSearchInput; + /** TRGM search on the `name` column. */ + trgmName?: TrgmSearchInput; + /** TRGM search on the `provider` column. */ + trgmProvider?: TrgmSearchInput; + /** TRGM search on the `slug` column. */ + trgmSlug?: TrgmSearchInput; + /** TRGM search on the `visibility` column. */ + trgmVisibility?: TrgmSearchInput; + /** TSV search on the `search` column. */ + tsvSearch?: string; + /** + * Composite unified search. Provide a search string and it will be dispatched to + * all text-compatible search algorithms (tsvector, BM25, pg_trgm) + * simultaneously. When the LLM plugin is active, pgvector also participates via + * auto-embedding. Rows matching ANY algorithm are returned. All matching score + * fields are populated. + */ + unifiedSearch?: string; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** VECTOR search on the `embedding` column. */ + vectorEmbedding?: VectorNearbyInput; + /** Filter by the object’s `visibility` field. */ + visibility?: StringTrgmFilter; +} +export interface PlatformRepositoryEventFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: PlatformRepositoryEventFilter[]; + /** Filter by the object’s `commitSha` field. */ + commitSha?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `deliveryId` field. */ + deliveryId?: StringFilter; + /** Filter by the object’s `eventType` field. */ + eventType?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Negates the expression. */ + not?: PlatformRepositoryEventFilter; + /** Checks for any expressions in this list. */ + or?: PlatformRepositoryEventFilter[]; + /** Filter by the object’s `payload` field. */ + payload?: JSONFilter; + /** Filter by the object’s `platformBuildsByEventId` relation. */ + platformBuildsByEventId?: PlatformRepositoryEventToManyPlatformBuildFilter; + /** `platformBuildsByEventId` exist. */ + platformBuildsByEventIdExist?: boolean; + /** Filter by the object’s `ref` field. */ + ref?: StringFilter; + /** Filter by the object’s `repository` relation. */ + repository?: PlatformRepositoryFilter; + /** Filter by the object’s `repositoryId` field. */ + repositoryId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} +export interface PlatformRepositoryRequiredCheckFilter { + /** Checks for all expressions in this list. */ + and?: PlatformRepositoryRequiredCheckFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformRepositoryRequiredCheckFilter; + /** Checks for any expressions in this list. */ + or?: PlatformRepositoryRequiredCheckFilter[]; + /** Filter by the object’s `repository` relation. */ + repository?: PlatformRepositoryFilter; + /** Filter by the object’s `repositoryId` field. */ + repositoryId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `workflow` relation. */ + workflow?: PlatformRepositoryWorkflowFilter; + /** Filter by the object’s `workflowId` field. */ + workflowId?: UUIDFilter; +} +export interface PlatformRepositoryWorkflowFilter { + /** Checks for all expressions in this list. */ + and?: PlatformRepositoryWorkflowFilter[]; + /** Filter by the object’s `cancelInProgress` field. */ + cancelInProgress?: BooleanFilter; + /** Filter by the object’s `concurrencyKey` field. */ + concurrencyKey?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `eventType` field. */ + eventType?: StringFilter; + /** Filter by the object’s `graph` relation. */ + graph?: FunctionGraphFilter; + /** A related `graph` exists. */ + graphExists?: boolean; + /** Filter by the object’s `graphId` field. */ + graphId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `inputs` field. */ + inputs?: JSONFilter; + /** Filter by the object’s `isEnabled` field. */ + isEnabled?: BooleanFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: PlatformRepositoryWorkflowFilter; + /** Checks for any expressions in this list. */ + or?: PlatformRepositoryWorkflowFilter[]; + /** Filter by the object’s `platformBuildsByWorkflowId` relation. */ + platformBuildsByWorkflowId?: PlatformRepositoryWorkflowToManyPlatformBuildFilter; + /** `platformBuildsByWorkflowId` exist. */ + platformBuildsByWorkflowIdExist?: boolean; + /** Filter by the object’s `platformRepositoryRequiredChecksByWorkflowId` relation. */ + platformRepositoryRequiredChecksByWorkflowId?: PlatformRepositoryWorkflowToManyPlatformRepositoryRequiredCheckFilter; + /** `platformRepositoryRequiredChecksByWorkflowId` exist. */ + platformRepositoryRequiredChecksByWorkflowIdExist?: boolean; + /** Filter by the object’s `refPattern` field. */ + refPattern?: StringFilter; + /** Filter by the object’s `repository` relation. */ + repository?: PlatformRepositoryFilter; + /** Filter by the object’s `repositoryId` field. */ + repositoryId?: UUIDFilter; + /** Filter by the object’s `requiredSecrets` field. */ + requiredSecrets?: StringListFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} +export interface PlatformResourceFilter { + /** Checks for all expressions in this list. */ + and?: PlatformResourceFilter[]; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Filter by the object’s `cpuLimitMillicores` field. */ + cpuLimitMillicores?: BigIntFilter; + /** Filter by the object’s `cpuRequestMillicores` field. */ + cpuRequestMillicores?: BigIntFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `errorCount` field. */ + errorCount?: IntFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `imageRef` field. */ + imageRef?: StringFilter; + /** Filter by the object’s `installation` relation. */ + installation?: PlatformResourceInstallationFilter; + /** A related `installation` exists. */ + installationExists?: boolean; + /** Filter by the object’s `installationId` field. */ + installationId?: UUIDFilter; + /** Filter by the object’s `integrations` field. */ + integrations?: StringListFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `lastHeartbeatAt` field. */ + lastHeartbeatAt?: DatetimeFilter; + /** Filter by the object’s `memoryLimitBytes` field. */ + memoryLimitBytes?: BigIntFilter; + /** Filter by the object’s `memoryRequestBytes` field. */ + memoryRequestBytes?: BigIntFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: PlatformNamespaceFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformResourceFilter; + /** Checks for any expressions in this list. */ + or?: PlatformResourceFilter[]; + /** Filter by the object’s `platformResourceStatusChecksByResourceId` relation. */ + platformResourceStatusChecksByResourceId?: PlatformResourceToManyPlatformResourceStatusCheckFilter; + /** `platformResourceStatusChecksByResourceId` exist. */ + platformResourceStatusChecksByResourceIdExist?: boolean; + /** Filter by the object’s `realm` field. */ realm?: StringFilter; /** Filter by the object’s `replicas` field. */ replicas?: IntFilter; @@ -4982,10 +9711,14 @@ export interface PlatformResourceFilter { storageClass?: StringFilter; /** Filter by the object’s `storageSizeBytes` field. */ storageSizeBytes?: BigIntFilter; + /** Filter by the object’s `storageTotalBytes` field. */ + storageTotalBytes?: BigIntFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; /** Filter by the object’s `updatedBy` field. */ updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } export interface PlatformResourceDeclaredCapacityFilter { /** Checks for all expressions in this list. */ @@ -5020,6 +9753,8 @@ export interface PlatformResourceDeclaredCapacityFilter { sourceId?: UUIDFilter; /** Filter by the object’s `storageSizeBytes` field. */ storageSizeBytes?: BigIntFilter; + /** Filter by the object’s `storageTotalBytes` field. */ + storageTotalBytes?: BigIntFilter; } export interface PlatformResourceDefinitionFilter { /** Checks for all expressions in this list. */ @@ -5030,6 +9765,8 @@ export interface PlatformResourceDefinitionFilter { createdAt?: DatetimeFilter; /** Filter by the object’s `createdBy` field. */ createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `defaultSpec` field. */ defaultSpec?: JSONFilter; /** Filter by the object’s `description` field. */ @@ -5066,6 +9803,8 @@ export interface PlatformResourceDefinitionFilter { updatedAt?: DatetimeFilter; /** Filter by the object’s `updatedBy` field. */ updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } export interface PlatformResourceEventFilter { /** Filter by the object’s `actorId` field. */ @@ -5098,6 +9837,8 @@ export interface PlatformResourceInstallationFilter { createdAt?: DatetimeFilter; /** Filter by the object’s `createdBy` field. */ createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `name` field. */ @@ -5112,6 +9853,10 @@ export interface PlatformResourceInstallationFilter { or?: PlatformResourceInstallationFilter[]; /** Filter by the object’s `params` field. */ params?: JSONFilter; + /** Filter by the object’s `platformRegistriesByInstallationId` relation. */ + platformRegistriesByInstallationId?: PlatformResourceInstallationToManyPlatformRegistryFilter; + /** `platformRegistriesByInstallationId` exist. */ + platformRegistriesByInstallationIdExist?: boolean; /** Filter by the object’s `platformResourcesByInstallationId` relation. */ platformResourcesByInstallationId?: PlatformResourceInstallationToManyPlatformResourceFilter; /** `platformResourcesByInstallationId` exist. */ @@ -5128,10 +9873,56 @@ export interface PlatformResourceInstallationFilter { updatedAt?: DatetimeFilter; /** Filter by the object’s `updatedBy` field. */ updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface PlatformResourceStatusCheckFilter { +export interface PlatformResourceObservedStorageFilter { /** Checks for all expressions in this list. */ - and?: PlatformResourceStatusCheckFilter[]; + and?: PlatformResourceObservedStorageFilter[]; + /** Filter by the object’s `capacity` field. */ + capacity?: StringFilter; + /** Filter by the object’s `capacityBytes` field. */ + capacityBytes?: BigIntFilter; + /** Filter by the object’s `claimName` field. */ + claimName?: StringFilter; + /** Filter by the object’s `declaredStorageClass` field. */ + declaredStorageClass?: StringFilter; + /** Filter by the object’s `declaredStorageSizeBytes` field. */ + declaredStorageSizeBytes?: BigIntFilter; + /** Filter by the object’s `declaredStorageTotalBytes` field. */ + declaredStorageTotalBytes?: BigIntFilter; + /** Filter by the object’s `installationId` field. */ + installationId?: UUIDFilter; + /** Filter by the object’s `isBound` field. */ + isBound?: BooleanFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformResourceObservedStorageFilter; + /** Checks for any expressions in this list. */ + or?: PlatformResourceObservedStorageFilter[]; + /** Filter by the object’s `phase` field. */ + phase?: StringFilter; + /** Filter by the object’s `requested` field. */ + requested?: StringFilter; + /** Filter by the object’s `requestedBytes` field. */ + requestedBytes?: BigIntFilter; + /** Filter by the object’s `resourceId` field. */ + resourceId?: UUIDFilter; + /** Filter by the object’s `resourceStatus` field. */ + resourceStatus?: StringFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `storageClass` field. */ + storageClass?: StringFilter; + /** Filter by the object’s `storageName` field. */ + storageName?: StringFilter; +} +export interface PlatformResourceStatusCheckFilter { + /** Checks for all expressions in this list. */ + and?: PlatformResourceStatusCheckFilter[]; /** Filter by the object’s `completedAt` field. */ completedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -5264,10 +10055,14 @@ export interface PlatformResourcesHealthFilter { createdAt?: DatetimeFilter; /** Filter by the object’s `createdBy` field. */ createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `errorCount` field. */ errorCount?: IntFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `imageRef` field. */ + imageRef?: StringFilter; /** Filter by the object’s `installationId` field. */ installationId?: UUIDFilter; /** Filter by the object’s `integrations` field. */ @@ -5312,10 +10107,14 @@ export interface PlatformResourcesHealthFilter { storageClass?: StringFilter; /** Filter by the object’s `storageSizeBytes` field. */ storageSizeBytes?: BigIntFilter; + /** Filter by the object’s `storageTotalBytes` field. */ + storageTotalBytes?: BigIntFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; /** Filter by the object’s `updatedBy` field. */ updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } export interface PlatformResourcesRequirementsStateFilter { /** Checks for all expressions in this list. */ @@ -5378,6 +10177,8 @@ export interface PlatformWebhookEndpointFilter { createdAt?: DatetimeFilter; /** Filter by the object’s `createdBy` field. */ createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `functionDefinition` relation. */ functionDefinition?: PlatformFunctionDefinitionFilter; /** Filter by the object’s `functionDefinitionId` field. */ @@ -5410,6 +10211,8 @@ export interface PlatformWebhookEndpointFilter { updatedAt?: DatetimeFilter; /** Filter by the object’s `updatedBy` field. */ updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } export interface PlatformWebhookEventFilter { /** Checks for all expressions in this list. */ @@ -5445,365 +10248,727 @@ export interface PlatformWebhookEventFilter { /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } -export interface ResourceFilter { +export interface ProposalCommentFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: ResourceFilter[]; - /** Filter by the object’s `annotations` field. */ - annotations?: JSONFilter; - /** Filter by the object’s `cpuLimitMillicores` field. */ - cpuLimitMillicores?: BigIntFilter; - /** Filter by the object’s `cpuRequestMillicores` field. */ - cpuRequestMillicores?: BigIntFilter; + and?: ProposalCommentFilter[]; + /** Filter by the object’s `attachments` field. */ + attachments?: ConstructiveInternalTypeUploadListFilter; + /** Filter by the object’s `body` field. */ + body?: StringTrgmFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `createdBy` field. */ createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `errorCount` field. */ - errorCount?: IntFilter; + /** Filter by the object’s `embedding` field. */ + embedding?: VectorFilter; + /** Filter by the object’s `embeddingUpdatedAt` field. */ + embeddingUpdatedAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `line` field. */ + line?: IntFilter; + /** Negates the expression. */ + not?: ProposalCommentFilter; + /** Checks for any expressions in this list. */ + or?: ProposalCommentFilter[]; + /** Filter by the object’s `outdatedAt` field. */ + outdatedAt?: DatetimeFilter; + /** Filter by the object’s `path` field. */ + path?: StringTrgmFilter; + /** Filter by the object’s `proposal` relation. */ + proposal?: ProposalFilter; + /** Filter by the object’s `proposalId` field. */ + proposalId?: UUIDFilter; + /** Filter by the object’s `proposalReactionsByCommentId` relation. */ + proposalReactionsByCommentId?: ProposalCommentToManyProposalReactionFilter; + /** `proposalReactionsByCommentId` exist. */ + proposalReactionsByCommentIdExist?: boolean; + /** Filter by the object’s `resolvedAt` field. */ + resolvedAt?: DatetimeFilter; + /** Filter by the object’s `search` field. */ + search?: FullTextFilter; + /** TRGM search on the `body` column. */ + trgmBody?: TrgmSearchInput; + /** TRGM search on the `path` column. */ + trgmPath?: TrgmSearchInput; + /** TSV search on the `search` column. */ + tsvSearch?: string; + /** + * Composite unified search. Provide a search string and it will be dispatched to + * all text-compatible search algorithms (tsvector, BM25, pg_trgm) + * simultaneously. When the LLM plugin is active, pgvector also participates via + * auto-embedding. Rows matching ANY algorithm are returned. All matching score + * fields are populated. + */ + unifiedSearch?: string; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** VECTOR search on the `embedding` column. */ + vectorEmbedding?: VectorNearbyInput; +} +export interface ProposalFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: ProposalFilter[]; + /** Filter by the object’s `body` field. */ + body?: StringTrgmFilter; + /** Filter by the object’s `builds` relation. */ + builds?: ProposalToManyBuildFilter; + /** `builds` exist. */ + buildsExist?: boolean; + /** Filter by the object’s `childProposals` relation. */ + childProposals?: ProposalToManyProposalFilter; + /** `childProposals` exist. */ + childProposalsExist?: boolean; + /** Filter by the object’s `closedReason` field. */ + closedReason?: StringTrgmFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `decidedAt` field. */ + decidedAt?: DatetimeFilter; + /** Filter by the object’s `dueAt` field. */ + dueAt?: DatetimeFilter; + /** Filter by the object’s `embedding` field. */ + embedding?: VectorFilter; + /** Filter by the object’s `embeddingUpdatedAt` field. */ + embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `installation` relation. */ - installation?: ResourceInstallationFilter; - /** A related `installation` exists. */ - installationExists?: boolean; - /** Filter by the object’s `installationId` field. */ - installationId?: UUIDFilter; - /** Filter by the object’s `integrations` field. */ - integrations?: StringListFilter; /** Filter by the object’s `kind` field. */ - kind?: StringFilter; + kind?: StringTrgmFilter; /** Filter by the object’s `labels` field. */ - labels?: JSONFilter; - /** Filter by the object’s `lastError` field. */ - lastError?: StringFilter; - /** Filter by the object’s `lastHeartbeatAt` field. */ - lastHeartbeatAt?: DatetimeFilter; - /** Filter by the object’s `memoryLimitBytes` field. */ - memoryLimitBytes?: BigIntFilter; - /** Filter by the object’s `memoryRequestBytes` field. */ - memoryRequestBytes?: BigIntFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; + labels?: StringListFilter; + /** Filter by the object’s `mergeCommit` field. */ + mergeCommit?: StringTrgmFilter; + /** Filter by the object’s `mergeMethod` field. */ + mergeMethod?: StringTrgmFilter; + /** Filter by the object’s `mergeRequestedAt` field. */ + mergeRequestedAt?: DatetimeFilter; + /** Filter by the object’s `mergedAt` field. */ + mergedAt?: DatetimeFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; /** Negates the expression. */ - not?: ResourceFilter; + not?: ProposalFilter; /** Checks for any expressions in this list. */ - or?: ResourceFilter[]; - /** Filter by the object’s `realm` field. */ - realm?: StringFilter; - /** Filter by the object’s `replicas` field. */ - replicas?: IntFilter; - /** Filter by the object’s `resourceDefinition` relation. */ - resourceDefinition?: ResourceDefinitionFilter; - /** A related `resourceDefinition` exists. */ - resourceDefinitionExists?: boolean; - /** Filter by the object’s `resourceDefinitionId` field. */ - resourceDefinitionId?: UUIDFilter; - /** Filter by the object’s `resourceStatusChecks` relation. */ - resourceStatusChecks?: ResourceToManyResourceStatusCheckFilter; - /** `resourceStatusChecks` exist. */ - resourceStatusChecksExist?: boolean; - /** Filter by the object’s `slug` field. */ - slug?: StringFilter; - /** Filter by the object’s `spec` field. */ - spec?: JSONFilter; + or?: ProposalFilter[]; + /** Filter by the object’s `parent` relation. */ + parent?: ProposalFilter; + /** A related `parent` exists. */ + parentExists?: boolean; + /** Filter by the object’s `parentId` field. */ + parentId?: UUIDFilter; + /** Filter by the object’s `priority` field. */ + priority?: BigFloatFilter; + /** Filter by the object’s `proposalComments` relation. */ + proposalComments?: ProposalToManyProposalCommentFilter; + /** `proposalComments` exist. */ + proposalCommentsExist?: boolean; + /** Filter by the object’s `proposalFileViews` relation. */ + proposalFileViews?: ProposalToManyProposalFileViewFilter; + /** `proposalFileViews` exist. */ + proposalFileViewsExist?: boolean; + /** Filter by the object’s `proposalReactions` relation. */ + proposalReactions?: ProposalToManyProposalReactionFilter; + /** `proposalReactions` exist. */ + proposalReactionsExist?: boolean; + /** Filter by the object’s `proposalReviews` relation. */ + proposalReviews?: ProposalToManyProposalReviewFilter; + /** `proposalReviews` exist. */ + proposalReviewsExist?: boolean; + /** Filter by the object’s `proposalsChunksByProposalsId` relation. */ + proposalsChunksByProposalsId?: ProposalToManyProposalsChunkFilter; + /** `proposalsChunksByProposalsId` exist. */ + proposalsChunksByProposalsIdExist?: boolean; + /** Filter by the object’s `repository` relation. */ + repository?: RepositoryFilter; + /** Filter by the object’s `repositoryId` field. */ + repositoryId?: UUIDFilter; + /** Filter by the object’s `resolution` field. */ + resolution?: StringTrgmFilter; + /** Filter by the object’s `search` field. */ + search?: FullTextFilter; + /** Filter by the object’s `sourceRef` field. */ + sourceRef?: StringTrgmFilter; /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `statusObserved` field. */ - statusObserved?: JSONFilter; - /** Filter by the object’s `storageClass` field. */ - storageClass?: StringFilter; - /** Filter by the object’s `storageSizeBytes` field. */ - storageSizeBytes?: BigIntFilter; + status?: StringTrgmFilter; + /** Filter by the object’s `targetRef` field. */ + targetRef?: StringTrgmFilter; + /** Filter by the object’s `title` field. */ + title?: StringTrgmFilter; + /** TRGM search on the `body` column. */ + trgmBody?: TrgmSearchInput; + /** TRGM search on the `closed_reason` column. */ + trgmClosedReason?: TrgmSearchInput; + /** TRGM search on the `kind` column. */ + trgmKind?: TrgmSearchInput; + /** TRGM search on the `merge_commit` column. */ + trgmMergeCommit?: TrgmSearchInput; + /** TRGM search on the `merge_method` column. */ + trgmMergeMethod?: TrgmSearchInput; + /** TRGM search on the `resolution` column. */ + trgmResolution?: TrgmSearchInput; + /** TRGM search on the `source_ref` column. */ + trgmSourceRef?: TrgmSearchInput; + /** TRGM search on the `status` column. */ + trgmStatus?: TrgmSearchInput; + /** TRGM search on the `target_ref` column. */ + trgmTargetRef?: TrgmSearchInput; + /** TRGM search on the `title` column. */ + trgmTitle?: TrgmSearchInput; + /** TSV search on the `search` column. */ + tsvSearch?: string; + /** + * Composite unified search. Provide a search string and it will be dispatched to + * all text-compatible search algorithms (tsvector, BM25, pg_trgm) + * simultaneously. When the LLM plugin is active, pgvector also participates via + * auto-embedding. Rows matching ANY algorithm are returned. All matching score + * fields are populated. + */ + unifiedSearch?: string; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; /** Filter by the object’s `updatedBy` field. */ updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** VECTOR search on the `embedding` column. */ + vectorEmbedding?: VectorNearbyInput; } -export interface ResourceDeclaredCapacityFilter { +export interface ProposalFileViewFilter { /** Checks for all expressions in this list. */ - and?: ResourceDeclaredCapacityFilter[]; - /** Filter by the object’s `cpuLimitMillicores` field. */ - cpuLimitMillicores?: BigIntFilter; - /** Filter by the object’s `cpuRequestMillicores` field. */ - cpuRequestMillicores?: BigIntFilter; - /** Filter by the object’s `installationId` field. */ - installationId?: UUIDFilter; - /** Filter by the object’s `isTransient` field. */ - isTransient?: BooleanFilter; - /** Filter by the object’s `kind` field. */ - kind?: StringFilter; - /** Filter by the object’s `memoryLimitBytes` field. */ - memoryLimitBytes?: BigIntFilter; - /** Filter by the object’s `memoryRequestBytes` field. */ - memoryRequestBytes?: BigIntFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; + and?: ProposalFileViewFilter[]; + /** Filter by the object’s `blobSha` field. */ + blobSha?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; /** Negates the expression. */ - not?: ResourceDeclaredCapacityFilter; + not?: ProposalFileViewFilter; /** Checks for any expressions in this list. */ - or?: ResourceDeclaredCapacityFilter[]; - /** Filter by the object’s `podCountMax` field. */ - podCountMax?: IntFilter; - /** Filter by the object’s `podCountMin` field. */ - podCountMin?: IntFilter; - /** Filter by the object’s `source` field. */ - source?: StringFilter; - /** Filter by the object’s `sourceId` field. */ - sourceId?: UUIDFilter; - /** Filter by the object’s `storageSizeBytes` field. */ - storageSizeBytes?: BigIntFilter; + or?: ProposalFileViewFilter[]; + /** Filter by the object’s `path` field. */ + path?: StringFilter; + /** Filter by the object’s `proposal` relation. */ + proposal?: ProposalFilter; + /** Filter by the object’s `proposalId` field. */ + proposalId?: UUIDFilter; + /** Filter by the object’s `reviewerId` field. */ + reviewerId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** Filter by the object’s `viewedAt` field. */ + viewedAt?: DatetimeFilter; } -export interface ResourceDefinitionFilter { +export interface ProposalReactionFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: ResourceDefinitionFilter[]; - /** Filter by the object’s `annotations` field. */ - annotations?: JSONFilter; + and?: ProposalReactionFilter[]; + /** Filter by the object’s `comment` relation. */ + comment?: ProposalCommentFilter; + /** A related `comment` exists. */ + commentExists?: boolean; + /** Filter by the object’s `commentId` field. */ + commentId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultSpec` field. */ - defaultSpec?: JSONFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; + /** Filter by the object’s `emoji` field. */ + emoji?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `integrations` field. */ - integrations?: StringListFilter; - /** Filter by the object’s `kind` field. */ - kind?: StringFilter; - /** Filter by the object’s `labels` field. */ - labels?: JSONFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; /** Negates the expression. */ - not?: ResourceDefinitionFilter; + not?: ProposalReactionFilter; /** Checks for any expressions in this list. */ - or?: ResourceDefinitionFilter[]; - /** Filter by the object’s `paramsSchema` field. */ - paramsSchema?: JSONFilter; - /** Filter by the object’s `resources` relation. */ - resources?: ResourceDefinitionToManyResourceFilter; - /** `resources` exist. */ - resourcesExist?: boolean; - /** Filter by the object’s `slug` field. */ - slug?: StringFilter; - /** Filter by the object’s `stepUpMinAge` field. */ - stepUpMinAge?: IntervalFilter; + or?: ProposalReactionFilter[]; + /** Filter by the object’s `proposal` relation. */ + proposal?: ProposalFilter; + /** Filter by the object’s `proposalId` field. */ + proposalId?: UUIDFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface ResourceEventFilter { +export interface ProposalReviewFilter { + /** Checks for all expressions in this list. */ + and?: ProposalReviewFilter[]; + /** Filter by the object’s `body` field. */ + body?: StringTrgmFilter; + /** Filter by the object’s `commitSha` field. */ + commitSha?: StringTrgmFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: ProposalReviewFilter; + /** Checks for any expressions in this list. */ + or?: ProposalReviewFilter[]; + /** Filter by the object’s `proposal` relation. */ + proposal?: ProposalFilter; + /** Filter by the object’s `proposalId` field. */ + proposalId?: UUIDFilter; + /** Filter by the object’s `reviewerId` field. */ + reviewerId?: UUIDFilter; + /** Filter by the object’s `search` field. */ + search?: FullTextFilter; + /** Filter by the object’s `submittedAt` field. */ + submittedAt?: DatetimeFilter; + /** TRGM search on the `body` column. */ + trgmBody?: TrgmSearchInput; + /** TRGM search on the `commit_sha` column. */ + trgmCommitSha?: TrgmSearchInput; + /** TRGM search on the `verdict` column. */ + trgmVerdict?: TrgmSearchInput; + /** TSV search on the `search` column. */ + tsvSearch?: string; + /** + * Composite unified search. Provide a search string and it will be dispatched to + * all text-compatible search algorithms (tsvector, BM25, pg_trgm) + * simultaneously. When the LLM plugin is active, pgvector also participates via + * auto-embedding. Rows matching ANY algorithm are returned. All matching score + * fields are populated. + */ + unifiedSearch?: string; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** Filter by the object’s `verdict` field. */ + verdict?: StringTrgmFilter; +} +export interface ProposalsChunkFilter { /** Filter by the object’s `actorId` field. */ actorId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: ResourceEventFilter[]; + and?: ProposalsChunkFilter[]; + /** Filter by the object’s `body` field. */ + body?: StringFilter; + /** Filter by the object’s `chunkIndex` field. */ + chunkIndex?: IntFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `eventType` field. */ - eventType?: StringFilter; + /** Filter by the object’s `embedding` field. */ + embedding?: VectorFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `message` field. */ - message?: StringFilter; /** Filter by the object’s `metadata` field. */ metadata?: JSONFilter; /** Negates the expression. */ - not?: ResourceEventFilter; + not?: ProposalsChunkFilter; /** Checks for any expressions in this list. */ - or?: ResourceEventFilter[]; - /** Filter by the object’s `resourceId` field. */ - resourceId?: UUIDFilter; + or?: ProposalsChunkFilter[]; + /** Filter by the object’s `proposals` relation. */ + proposals?: ProposalFilter; + /** Filter by the object’s `proposalsId` field. */ + proposalsId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** VECTOR search on the `embedding` column. */ + vectorEmbedding?: VectorNearbyInput; } -export interface ResourceInstallationFilter { +export interface RegistryBindingFilter { /** Checks for all expressions in this list. */ - and?: ResourceInstallationFilter[]; - /** Filter by the object’s `commitId` field. */ - commitId?: UUIDFilter; + and?: RegistryBindingFilter[]; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `createdBy` field. */ createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; /** Filter by the object’s `namespace` relation. */ namespace?: NamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ - not?: ResourceInstallationFilter; + not?: RegistryBindingFilter; + /** Filter by the object’s `observedCredentialVersion` field. */ + observedCredentialVersion?: StringFilter; /** Checks for any expressions in this list. */ - or?: ResourceInstallationFilter[]; - /** Filter by the object’s `params` field. */ - params?: JSONFilter; - /** Filter by the object’s `resourcesByInstallationId` relation. */ - resourcesByInstallationId?: ResourceInstallationToManyResourceFilter; - /** `resourcesByInstallationId` exist. */ - resourcesByInstallationIdExist?: boolean; - /** Filter by the object’s `revision` field. */ - revision?: IntFilter; - /** Filter by the object’s `slug` field. */ - slug?: StringFilter; + or?: RegistryBindingFilter[]; + /** Filter by the object’s `pullSecretName` field. */ + pullSecretName?: StringFilter; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; + /** Filter by the object’s `registry` relation. */ + registry?: RegistryFilter; + /** Filter by the object’s `registryHost` field. */ + registryHost?: StringFilter; + /** Filter by the object’s `registryId` field. */ + registryId?: UUIDFilter; /** Filter by the object’s `status` field. */ status?: StringFilter; - /** Filter by the object’s `storeId` field. */ - storeId?: UUIDFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; /** Filter by the object’s `updatedBy` field. */ updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface ResourceStatusCheckFilter { +export interface RegistryFilter { /** Checks for all expressions in this list. */ - and?: ResourceStatusCheckFilter[]; - /** Filter by the object’s `completedAt` field. */ - completedAt?: DatetimeFilter; + and?: RegistryFilter[]; + /** Filter by the object’s `authMode` field. */ + authMode?: StringFilter; + /** Filter by the object’s `basePath` field. */ + basePath?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `credentialSecretName` field. */ + credentialSecretName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `host` field. */ + host?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Negates the expression. */ - not?: ResourceStatusCheckFilter; - /** Checks for any expressions in this list. */ - or?: ResourceStatusCheckFilter[]; - /** Filter by the object’s `requestedAt` field. */ - requestedAt?: DatetimeFilter; - /** Filter by the object’s `requestedBy` field. */ - requestedBy?: UUIDFilter; - /** Filter by the object’s `resource` relation. */ - resource?: ResourceFilter; - /** Filter by the object’s `resourceId` field. */ - resourceId?: UUIDFilter; - /** Filter by the object’s `result` field. */ - result?: JSONFilter; + /** Filter by the object’s `installation` relation. */ + installation?: ResourceInstallationFilter; + /** A related `installation` exists. */ + installationExists?: boolean; + /** Filter by the object’s `installationId` field. */ + installationId?: UUIDFilter; + /** Filter by the object’s `isPublished` field. */ + isPublished?: BooleanFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: RegistryFilter; + /** Checks for any expressions in this list. */ + or?: RegistryFilter[]; + /** Filter by the object’s `platformOnly` field. */ + platformOnly?: BooleanFilter; + /** Filter by the object’s `registryBindings` relation. */ + registryBindings?: RegistryToManyRegistryBindingFilter; + /** `registryBindings` exist. */ + registryBindingsExist?: boolean; + /** Filter by the object’s `registryGrants` relation. */ + registryGrants?: RegistryToManyRegistryGrantFilter; + /** `registryGrants` exist. */ + registryGrantsExist?: boolean; + /** Filter by the object’s `role` field. */ + role?: StringFilter; /** Filter by the object’s `status` field. */ status?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface ResourceUsageLogFilter { +export interface RegistryGrantFilter { + /** Filter by the object’s `actions` field. */ + actions?: StringListFilter; /** Checks for all expressions in this list. */ - and?: ResourceUsageLogFilter[]; - /** Filter by the object’s `cpuMillicores` field. */ - cpuMillicores?: BigIntFilter; + and?: RegistryGrantFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; + /** Filter by the object’s `grantedBy` field. */ + grantedBy?: UUIDFilter; + /** Filter by the object’s `granteeKey` field. */ + granteeKey?: UUIDFilter; + /** Filter by the object’s `granteeScope` field. */ + granteeScope?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `intervalSeconds` field. */ - intervalSeconds?: IntFilter; - /** Filter by the object’s `memoryBytes` field. */ - memoryBytes?: BigIntFilter; - /** Filter by the object’s `metrics` field. */ - metrics?: JSONFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; /** Negates the expression. */ - not?: ResourceUsageLogFilter; + not?: RegistryGrantFilter; /** Checks for any expressions in this list. */ - or?: ResourceUsageLogFilter[]; - /** Filter by the object’s `resourceId` field. */ - resourceId?: UUIDFilter; - /** Filter by the object’s `sampledAt` field. */ - sampledAt?: DatetimeFilter; - /** Filter by the object’s `source` field. */ - source?: StringFilter; + or?: RegistryGrantFilter[]; + /** Filter by the object’s `registry` relation. */ + registry?: RegistryFilter; + /** Filter by the object’s `registryId` field. */ + registryId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface ResourceUsageSummaryFilter { +export interface RepositoryFilter { /** Checks for all expressions in this list. */ - and?: ResourceUsageSummaryFilter[]; + and?: RepositoryFilter[]; + /** Filter by the object’s `builds` relation. */ + builds?: RepositoryToManyBuildFilter; + /** `builds` exist. */ + buildsExist?: boolean; + /** Filter by the object’s `cloneUrl` field. */ + cloneUrl?: StringTrgmFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `date` field. */ - date?: DateFilter; - /** Filter by the object’s `gbSeconds` field. */ - gbSeconds?: BigFloatFilter; + /** Filter by the object’s `defaultBranch` field. */ + defaultBranch?: StringTrgmFilter; + /** Filter by the object’s `description` field. */ + description?: StringTrgmFilter; + /** Filter by the object’s `embedding` field. */ + embedding?: VectorFilter; + /** Filter by the object’s `embeddingUpdatedAt` field. */ + embeddingUpdatedAt?: DatetimeFilter; + /** Filter by the object’s `externalId` field. */ + externalId?: StringTrgmFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `maxCpuMillicores` field. */ - maxCpuMillicores?: BigIntFilter; - /** Filter by the object’s `maxMemoryBytes` field. */ - maxMemoryBytes?: BigIntFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; + /** Filter by the object’s `isArchived` field. */ + isArchived?: BooleanFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `name` field. */ + name?: StringTrgmFilter; /** Negates the expression. */ - not?: ResourceUsageSummaryFilter; + not?: RepositoryFilter; /** Checks for any expressions in this list. */ - or?: ResourceUsageSummaryFilter[]; - /** Filter by the object’s `resourceId` field. */ - resourceId?: UUIDFilter; - /** Filter by the object’s `runtimeSeconds` field. */ - runtimeSeconds?: BigIntFilter; - /** Filter by the object’s `sampleCount` field. */ - sampleCount?: IntFilter; + or?: RepositoryFilter[]; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `proposals` relation. */ + proposals?: RepositoryToManyProposalFilter; + /** `proposals` exist. */ + proposalsExist?: boolean; + /** Filter by the object’s `provider` field. */ + provider?: StringTrgmFilter; + /** Filter by the object’s `repositoryEvents` relation. */ + repositoryEvents?: RepositoryToManyRepositoryEventFilter; + /** `repositoryEvents` exist. */ + repositoryEventsExist?: boolean; + /** Filter by the object’s `repositoryRequiredChecks` relation. */ + repositoryRequiredChecks?: RepositoryToManyRepositoryRequiredCheckFilter; + /** `repositoryRequiredChecks` exist. */ + repositoryRequiredChecksExist?: boolean; + /** Filter by the object’s `repositoryWorkflows` relation. */ + repositoryWorkflows?: RepositoryToManyRepositoryWorkflowFilter; + /** `repositoryWorkflows` exist. */ + repositoryWorkflowsExist?: boolean; + /** Filter by the object’s `search` field. */ + search?: FullTextFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringTrgmFilter; + /** TRGM search on the `clone_url` column. */ + trgmCloneUrl?: TrgmSearchInput; + /** TRGM search on the `default_branch` column. */ + trgmDefaultBranch?: TrgmSearchInput; + /** TRGM search on the `description` column. */ + trgmDescription?: TrgmSearchInput; + /** TRGM search on the `external_id` column. */ + trgmExternalId?: TrgmSearchInput; + /** TRGM search on the `name` column. */ + trgmName?: TrgmSearchInput; + /** TRGM search on the `provider` column. */ + trgmProvider?: TrgmSearchInput; + /** TRGM search on the `slug` column. */ + trgmSlug?: TrgmSearchInput; + /** TRGM search on the `visibility` column. */ + trgmVisibility?: TrgmSearchInput; + /** TSV search on the `search` column. */ + tsvSearch?: string; + /** + * Composite unified search. Provide a search string and it will be dispatched to + * all text-compatible search algorithms (tsvector, BM25, pg_trgm) + * simultaneously. When the LLM plugin is active, pgvector also participates via + * auto-embedding. Rows matching ANY algorithm are returned. All matching score + * fields are populated. + */ + unifiedSearch?: string; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** VECTOR search on the `embedding` column. */ + vectorEmbedding?: VectorNearbyInput; + /** Filter by the object’s `visibility` field. */ + visibility?: StringTrgmFilter; +} +export interface RepositoryEventFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: RepositoryEventFilter[]; + /** Filter by the object’s `buildsByEventId` relation. */ + buildsByEventId?: RepositoryEventToManyBuildFilter; + /** `buildsByEventId` exist. */ + buildsByEventIdExist?: boolean; + /** Filter by the object’s `commitSha` field. */ + commitSha?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `deliveryId` field. */ + deliveryId?: StringFilter; + /** Filter by the object’s `eventType` field. */ + eventType?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Negates the expression. */ + not?: RepositoryEventFilter; + /** Checks for any expressions in this list. */ + or?: RepositoryEventFilter[]; + /** Filter by the object’s `payload` field. */ + payload?: JSONFilter; + /** Filter by the object’s `ref` field. */ + ref?: StringFilter; + /** Filter by the object’s `repository` relation. */ + repository?: RepositoryFilter; + /** Filter by the object’s `repositoryId` field. */ + repositoryId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface ResourceUtilizationFilter { +export interface RepositoryRequiredCheckFilter { /** Checks for all expressions in this list. */ - and?: ResourceUtilizationFilter[]; - /** Filter by the object’s `avgMemoryBytes` field. */ - avgMemoryBytes?: BigIntFilter; - /** Filter by the object’s `cpuLimitMillicores` field. */ - cpuLimitMillicores?: BigIntFilter; - /** Filter by the object’s `cpuPeakUtilization` field. */ - cpuPeakUtilization?: BigFloatFilter; - /** Filter by the object’s `cpuRequestHeadroomMillicores` field. */ - cpuRequestHeadroomMillicores?: BigIntFilter; - /** Filter by the object’s `cpuRequestMillicores` field. */ - cpuRequestMillicores?: BigIntFilter; - /** Filter by the object’s `date` field. */ - date?: DateFilter; - /** Filter by the object’s `gbSeconds` field. */ - gbSeconds?: BigFloatFilter; - /** Filter by the object’s `kind` field. */ - kind?: StringFilter; - /** Filter by the object’s `maxCpuMillicores` field. */ - maxCpuMillicores?: BigIntFilter; - /** Filter by the object’s `maxMemoryBytes` field. */ - maxMemoryBytes?: BigIntFilter; - /** Filter by the object’s `memoryLimitBytes` field. */ - memoryLimitBytes?: BigIntFilter; - /** Filter by the object’s `memoryPeakUtilization` field. */ - memoryPeakUtilization?: BigFloatFilter; - /** Filter by the object’s `memoryRequestBytes` field. */ - memoryRequestBytes?: BigIntFilter; - /** Filter by the object’s `memoryRequestHeadroomBytes` field. */ - memoryRequestHeadroomBytes?: BigIntFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; + and?: RepositoryRequiredCheckFilter[]; + /** 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?: ResourceUtilizationFilter; + not?: RepositoryRequiredCheckFilter; /** Checks for any expressions in this list. */ - or?: ResourceUtilizationFilter[]; - /** Filter by the object’s `replicas` field. */ - replicas?: IntFilter; - /** Filter by the object’s `resourceId` field. */ - resourceId?: UUIDFilter; - /** Filter by the object’s `runtimeSeconds` field. */ - runtimeSeconds?: BigIntFilter; - /** Filter by the object’s `sampleCount` field. */ - sampleCount?: IntFilter; + or?: RepositoryRequiredCheckFilter[]; + /** Filter by the object’s `repository` relation. */ + repository?: RepositoryFilter; + /** Filter by the object’s `repositoryId` field. */ + repositoryId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `workflow` relation. */ + workflow?: RepositoryWorkflowFilter; + /** Filter by the object’s `workflowId` field. */ + workflowId?: UUIDFilter; } -export interface ResourcesHealthFilter { +export interface RepositoryWorkflowFilter { /** Checks for all expressions in this list. */ - and?: ResourcesHealthFilter[]; + and?: RepositoryWorkflowFilter[]; + /** Filter by the object’s `buildsByWorkflowId` relation. */ + buildsByWorkflowId?: RepositoryWorkflowToManyBuildFilter; + /** `buildsByWorkflowId` exist. */ + buildsByWorkflowIdExist?: boolean; + /** Filter by the object’s `cancelInProgress` field. */ + cancelInProgress?: BooleanFilter; + /** Filter by the object’s `concurrencyKey` field. */ + concurrencyKey?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `eventType` field. */ + eventType?: StringFilter; + /** Filter by the object’s `graph` relation. */ + graph?: DatabaseFunctionGraphFilter; + /** A related `graph` exists. */ + graphExists?: boolean; + /** Filter by the object’s `graphId` field. */ + graphId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `inputs` field. */ + inputs?: JSONFilter; + /** Filter by the object’s `isEnabled` field. */ + isEnabled?: BooleanFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: RepositoryWorkflowFilter; + /** Checks for any expressions in this list. */ + or?: RepositoryWorkflowFilter[]; + /** Filter by the object’s `refPattern` field. */ + refPattern?: StringFilter; + /** Filter by the object’s `repository` relation. */ + repository?: RepositoryFilter; + /** Filter by the object’s `repositoryId` field. */ + repositoryId?: UUIDFilter; + /** Filter by the object’s `repositoryRequiredChecksByWorkflowId` relation. */ + repositoryRequiredChecksByWorkflowId?: RepositoryWorkflowToManyRepositoryRequiredCheckFilter; + /** `repositoryRequiredChecksByWorkflowId` exist. */ + repositoryRequiredChecksByWorkflowIdExist?: boolean; + /** Filter by the object’s `requiredSecrets` field. */ + requiredSecrets?: StringListFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} +export interface ResourceFilter { + /** Checks for all expressions in this list. */ + and?: ResourceFilter[]; /** Filter by the object’s `annotations` field. */ annotations?: JSONFilter; /** Filter by the object’s `cpuLimitMillicores` field. */ @@ -5814,12 +10979,20 @@ export interface ResourcesHealthFilter { createdAt?: DatetimeFilter; /** Filter by the object’s `createdBy` field. */ createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; /** Filter by the object’s `errorCount` field. */ errorCount?: IntFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `imageRef` field. */ + imageRef?: StringFilter; + /** Filter by the object’s `installation` relation. */ + installation?: ResourceInstallationFilter; + /** A related `installation` exists. */ + installationExists?: boolean; /** Filter by the object’s `installationId` field. */ installationId?: UUIDFilter; /** Filter by the object’s `integrations` field. */ @@ -5838,277 +11011,1057 @@ export interface ResourcesHealthFilter { memoryRequestBytes?: BigIntFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: NamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ - not?: ResourcesHealthFilter; + not?: ResourceFilter; /** Checks for any expressions in this list. */ - or?: ResourcesHealthFilter[]; + or?: ResourceFilter[]; /** Filter by the object’s `realm` field. */ realm?: StringFilter; /** Filter by the object’s `replicas` field. */ replicas?: IntFilter; + /** Filter by the object’s `resourceDefinition` relation. */ + resourceDefinition?: ResourceDefinitionFilter; + /** A related `resourceDefinition` exists. */ + resourceDefinitionExists?: boolean; /** Filter by the object’s `resourceDefinitionId` field. */ resourceDefinitionId?: UUIDFilter; + /** Filter by the object’s `resourceStatusChecks` relation. */ + resourceStatusChecks?: ResourceToManyResourceStatusCheckFilter; + /** `resourceStatusChecks` exist. */ + resourceStatusChecksExist?: boolean; /** Filter by the object’s `slug` field. */ slug?: StringFilter; /** Filter by the object’s `spec` field. */ spec?: JSONFilter; /** Filter by the object’s `status` field. */ status?: StringFilter; - /** Filter by the object’s `statusDetail` field. */ - statusDetail?: StringFilter; /** Filter by the object’s `statusObserved` field. */ statusObserved?: JSONFilter; /** Filter by the object’s `storageClass` field. */ storageClass?: StringFilter; /** Filter by the object’s `storageSizeBytes` field. */ storageSizeBytes?: BigIntFilter; + /** Filter by the object’s `storageTotalBytes` field. */ + storageTotalBytes?: BigIntFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; /** Filter by the object’s `updatedBy` field. */ updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface ResourcesRequirementsStateFilter { - /** Checks for all expressions in this list. */ - and?: ResourcesRequirementsStateFilter[]; - /** Filter by the object’s `configHash` field. */ - configHash?: StringFilter; - /** Filter by the object’s `configObjectName` field. */ - configObjectName?: StringFilter; - /** Negates the expression. */ - not?: ResourcesRequirementsStateFilter; - /** Checks for any expressions in this list. */ - or?: ResourcesRequirementsStateFilter[]; - /** Filter by the object’s `requirementsHash` field. */ - requirementsHash?: StringFilter; - /** Filter by the object’s `resourceId` field. */ - resourceId?: UUIDFilter; - /** Filter by the object’s `secretsHash` field. */ - secretsHash?: StringFilter; - /** Filter by the object’s `secretsObjectName` field. */ - secretsObjectName?: StringFilter; - /** Filter by the object’s `slug` field. */ - slug?: StringFilter; -} -export interface ResourcesResolvedRequirementFilter { +export interface ResourceDeclaredCapacityFilter { /** Checks for all expressions in this list. */ - and?: ResourcesResolvedRequirementFilter[]; - /** Filter by the object’s `atomId` field. */ - atomId?: UUIDFilter; - /** Filter by the object’s `configObjectName` field. */ - configObjectName?: StringFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; + and?: ResourceDeclaredCapacityFilter[]; + /** Filter by the object’s `cpuLimitMillicores` field. */ + cpuLimitMillicores?: BigIntFilter; + /** Filter by the object’s `cpuRequestMillicores` field. */ + cpuRequestMillicores?: BigIntFilter; + /** Filter by the object’s `installationId` field. */ + installationId?: UUIDFilter; + /** Filter by the object’s `isTransient` field. */ + isTransient?: BooleanFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `memoryLimitBytes` field. */ + memoryLimitBytes?: BigIntFilter; + /** Filter by the object’s `memoryRequestBytes` field. */ + memoryRequestBytes?: BigIntFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ - not?: ResourcesResolvedRequirementFilter; + not?: ResourceDeclaredCapacityFilter; /** Checks for any expressions in this list. */ - or?: ResourcesResolvedRequirementFilter[]; - /** Filter by the object’s `present` field. */ - present?: BooleanFilter; - /** Filter by the object’s `realm` field. */ - realm?: StringFilter; - /** Filter by the object’s `required` field. */ - required?: BooleanFilter; - /** Filter by the object’s `requirementKind` field. */ - requirementKind?: StringFilter; - /** Filter by the object’s `resourceId` field. */ - resourceId?: UUIDFilter; - /** Filter by the object’s `secretsObjectName` field. */ - secretsObjectName?: StringFilter; - /** Filter by the object’s `slug` field. */ - slug?: StringFilter; + or?: ResourceDeclaredCapacityFilter[]; + /** Filter by the object’s `podCountMax` field. */ + podCountMax?: IntFilter; + /** Filter by the object’s `podCountMin` field. */ + podCountMin?: IntFilter; + /** Filter by the object’s `source` field. */ + source?: StringFilter; + /** Filter by the object’s `sourceId` field. */ + sourceId?: UUIDFilter; + /** Filter by the object’s `storageSizeBytes` field. */ + storageSizeBytes?: BigIntFilter; + /** Filter by the object’s `storageTotalBytes` field. */ + storageTotalBytes?: BigIntFilter; } -export interface WebhookEndpointFilter { - /** Filter by the object’s `active` field. */ - active?: BooleanFilter; +export interface ResourceDefinitionFilter { /** Checks for all expressions in this list. */ - and?: WebhookEndpointFilter[]; + and?: ResourceDefinitionFilter[]; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `createdBy` field. */ createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `functionDefinition` relation. */ - functionDefinition?: FunctionDefinitionFilter; - /** Filter by the object’s `functionDefinitionId` field. */ - functionDefinitionId?: UUIDFilter; - /** Filter by the object’s `host` field. */ - host?: StringFilter; + /** Filter by the object’s `defaultSpec` field. */ + defaultSpec?: JSONFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `integrations` field. */ + integrations?: StringListFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; /** Filter by the object’s `namespace` relation. */ namespace?: NamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ - not?: WebhookEndpointFilter; + not?: ResourceDefinitionFilter; /** Checks for any expressions in this list. */ - or?: WebhookEndpointFilter[]; - /** Filter by the object’s `path` field. */ - path?: StringFilter; - /** Filter by the object’s `provider` field. */ - provider?: StringFilter; - /** Filter by the object’s `replayWindowSeconds` field. */ - replayWindowSeconds?: IntFilter; - /** Filter by the object’s `signingSecretName` field. */ - signingSecretName?: StringFilter; + or?: ResourceDefinitionFilter[]; + /** Filter by the object’s `paramsSchema` field. */ + paramsSchema?: JSONFilter; + /** Filter by the object’s `resources` relation. */ + resources?: ResourceDefinitionToManyResourceFilter; + /** `resources` exist. */ + resourcesExist?: boolean; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `stepUpMinAge` field. */ + stepUpMinAge?: IntervalFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; /** Filter by the object’s `updatedBy` field. */ updatedBy?: UUIDFilter; - /** Filter by the object’s `webhookEventsByEndpointId` relation. */ - webhookEventsByEndpointId?: WebhookEndpointToManyWebhookEventFilter; - /** `webhookEventsByEndpointId` exist. */ - webhookEventsByEndpointIdExist?: boolean; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface WebhookEventFilter { +export interface ResourceEventFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: WebhookEventFilter[]; + and?: ResourceEventFilter[]; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `endpoint` relation. */ - endpoint?: WebhookEndpointFilter; - /** Filter by the object’s `endpointId` field. */ - endpointId?: UUIDFilter; - /** Filter by the object’s `error` field. */ - error?: StringFilter; - /** Filter by the object’s `externalEventId` field. */ - externalEventId?: StringFilter; + /** Filter by the object’s `eventType` field. */ + eventType?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `invocationCreatedAt` field. */ - invocationCreatedAt?: DatetimeFilter; - /** Filter by the object’s `invocationId` field. */ - invocationId?: UUIDFilter; + /** Filter by the object’s `message` field. */ + message?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; /** Negates the expression. */ - not?: WebhookEventFilter; + not?: ResourceEventFilter; /** Checks for any expressions in this list. */ - or?: WebhookEventFilter[]; - /** Filter by the object’s `payload` field. */ - payload?: JSONFilter; - /** Filter by the object’s `provider` field. */ - provider?: StringFilter; - /** Filter by the object’s `providerTimestamp` field. */ - providerTimestamp?: DatetimeFilter; + or?: ResourceEventFilter[]; + /** Filter by the object’s `resourceId` field. */ + resourceId?: UUIDFilter; +} +export interface ResourceInstallationFilter { + /** Checks for all expressions in this list. */ + and?: ResourceInstallationFilter[]; + /** Filter by the object’s `commitId` field. */ + commitId?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: ResourceInstallationFilter; + /** Checks for any expressions in this list. */ + or?: ResourceInstallationFilter[]; + /** Filter by the object’s `params` field. */ + params?: JSONFilter; + /** Filter by the object’s `registriesByInstallationId` relation. */ + registriesByInstallationId?: ResourceInstallationToManyRegistryFilter; + /** `registriesByInstallationId` exist. */ + registriesByInstallationIdExist?: boolean; + /** Filter by the object’s `resourcesByInstallationId` relation. */ + resourcesByInstallationId?: ResourceInstallationToManyResourceFilter; + /** `resourcesByInstallationId` exist. */ + resourcesByInstallationIdExist?: boolean; + /** Filter by the object’s `revision` field. */ + revision?: IntFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; /** Filter by the object’s `status` field. */ status?: StringFilter; + /** Filter by the object’s `storeId` field. */ + storeId?: UUIDFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -// ============ 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' - | 'COMMIT_ID_ASC' - | 'COMMIT_ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'DEFINITION_ASC' - | 'DEFINITION_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'LABEL_ASC' - | 'LABEL_DESC' - | 'MODULES_HASH_ASC' - | 'MODULES_HASH_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 FunctionApiBindingOrderBy = - | 'ALIAS_ASC' - | 'ALIAS_DESC' - | 'API_ID_ASC' - | 'API_ID_DESC' - | 'CONFIG_ASC' - | 'CONFIG_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'FUNCTION_DEFINITION_ID_ASC' - | 'FUNCTION_DEFINITION_ID_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type FunctionCapabilityBindingOrderBy = - | 'BUCKET_ID_ASC' - | 'BUCKET_ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'FUNCTION_ID_ASC' - | 'FUNCTION_ID_DESC' - | 'GRAPH_ID_ASC' - | 'GRAPH_ID_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'KEY_ASC' - | 'KEY_DESC' - | 'LIFECYCLE_ASC' - | 'LIFECYCLE_DESC' - | 'METADATA_ASC' - | 'METADATA_DESC' - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type FunctionDefinitionOrderBy = - | 'ACCESS_CHANNELS_ASC' - | 'ACCESS_CHANNELS_DESC' - | 'CATEGORY_ASC' - | 'CATEGORY_DESC' - | 'CONCURRENCY_ASC' - | 'CONCURRENCY_DESC' - | 'CPU_LIMIT_MILLICORES_ASC' - | 'CPU_LIMIT_MILLICORES_DESC' - | 'CPU_REQUEST_MILLICORES_ASC' - | 'CPU_REQUEST_MILLICORES_DESC' - | 'CREATED_AT_ASC' +export interface ResourceObservedStorageFilter { + /** Checks for all expressions in this list. */ + and?: ResourceObservedStorageFilter[]; + /** Filter by the object’s `capacity` field. */ + capacity?: StringFilter; + /** Filter by the object’s `capacityBytes` field. */ + capacityBytes?: BigIntFilter; + /** Filter by the object’s `claimName` field. */ + claimName?: StringFilter; + /** Filter by the object’s `declaredStorageClass` field. */ + declaredStorageClass?: StringFilter; + /** Filter by the object’s `declaredStorageSizeBytes` field. */ + declaredStorageSizeBytes?: BigIntFilter; + /** Filter by the object’s `declaredStorageTotalBytes` field. */ + declaredStorageTotalBytes?: BigIntFilter; + /** Filter by the object’s `installationId` field. */ + installationId?: UUIDFilter; + /** Filter by the object’s `isBound` field. */ + isBound?: BooleanFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: ResourceObservedStorageFilter; + /** Checks for any expressions in this list. */ + or?: ResourceObservedStorageFilter[]; + /** Filter by the object’s `phase` field. */ + phase?: StringFilter; + /** Filter by the object’s `requested` field. */ + requested?: StringFilter; + /** Filter by the object’s `requestedBytes` field. */ + requestedBytes?: BigIntFilter; + /** Filter by the object’s `resourceId` field. */ + resourceId?: UUIDFilter; + /** Filter by the object’s `resourceStatus` field. */ + resourceStatus?: StringFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `storageClass` field. */ + storageClass?: StringFilter; + /** Filter by the object’s `storageName` field. */ + storageName?: StringFilter; +} +export interface ResourceStatusCheckFilter { + /** Checks for all expressions in this list. */ + and?: ResourceStatusCheckFilter[]; + /** Filter by the object’s `completedAt` field. */ + completedAt?: DatetimeFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: ResourceStatusCheckFilter; + /** Checks for any expressions in this list. */ + or?: ResourceStatusCheckFilter[]; + /** Filter by the object’s `requestedAt` field. */ + requestedAt?: DatetimeFilter; + /** Filter by the object’s `requestedBy` field. */ + requestedBy?: UUIDFilter; + /** Filter by the object’s `resource` relation. */ + resource?: ResourceFilter; + /** Filter by the object’s `resourceId` field. */ + resourceId?: UUIDFilter; + /** Filter by the object’s `result` field. */ + result?: JSONFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; +} +export interface ResourceUsageLogFilter { + /** Checks for all expressions in this list. */ + and?: ResourceUsageLogFilter[]; + /** Filter by the object’s `cpuMillicores` field. */ + cpuMillicores?: BigIntFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `intervalSeconds` field. */ + intervalSeconds?: IntFilter; + /** Filter by the object’s `memoryBytes` field. */ + memoryBytes?: BigIntFilter; + /** Filter by the object’s `metrics` field. */ + metrics?: JSONFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: ResourceUsageLogFilter; + /** Checks for any expressions in this list. */ + or?: ResourceUsageLogFilter[]; + /** Filter by the object’s `resourceId` field. */ + resourceId?: UUIDFilter; + /** Filter by the object’s `sampledAt` field. */ + sampledAt?: DatetimeFilter; + /** Filter by the object’s `source` field. */ + source?: StringFilter; +} +export interface ResourceUsageSummaryFilter { + /** Checks for all expressions in this list. */ + and?: ResourceUsageSummaryFilter[]; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `date` field. */ + date?: DateFilter; + /** Filter by the object’s `gbSeconds` field. */ + gbSeconds?: BigFloatFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `maxCpuMillicores` field. */ + maxCpuMillicores?: BigIntFilter; + /** Filter by the object’s `maxMemoryBytes` field. */ + maxMemoryBytes?: BigIntFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: ResourceUsageSummaryFilter; + /** Checks for any expressions in this list. */ + or?: ResourceUsageSummaryFilter[]; + /** Filter by the object’s `resourceId` field. */ + resourceId?: UUIDFilter; + /** Filter by the object’s `runtimeSeconds` field. */ + runtimeSeconds?: BigIntFilter; + /** Filter by the object’s `sampleCount` field. */ + sampleCount?: IntFilter; +} +export interface ResourceUtilizationFilter { + /** Checks for all expressions in this list. */ + and?: ResourceUtilizationFilter[]; + /** Filter by the object’s `avgMemoryBytes` field. */ + avgMemoryBytes?: BigIntFilter; + /** Filter by the object’s `cpuLimitMillicores` field. */ + cpuLimitMillicores?: BigIntFilter; + /** Filter by the object’s `cpuPeakUtilization` field. */ + cpuPeakUtilization?: BigFloatFilter; + /** Filter by the object’s `cpuRequestHeadroomMillicores` field. */ + cpuRequestHeadroomMillicores?: BigIntFilter; + /** Filter by the object’s `cpuRequestMillicores` field. */ + cpuRequestMillicores?: BigIntFilter; + /** Filter by the object’s `date` field. */ + date?: DateFilter; + /** Filter by the object’s `gbSeconds` field. */ + gbSeconds?: BigFloatFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `maxCpuMillicores` field. */ + maxCpuMillicores?: BigIntFilter; + /** Filter by the object’s `maxMemoryBytes` field. */ + maxMemoryBytes?: BigIntFilter; + /** Filter by the object’s `memoryLimitBytes` field. */ + memoryLimitBytes?: BigIntFilter; + /** Filter by the object’s `memoryPeakUtilization` field. */ + memoryPeakUtilization?: BigFloatFilter; + /** Filter by the object’s `memoryRequestBytes` field. */ + memoryRequestBytes?: BigIntFilter; + /** Filter by the object’s `memoryRequestHeadroomBytes` field. */ + memoryRequestHeadroomBytes?: BigIntFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: ResourceUtilizationFilter; + /** Checks for any expressions in this list. */ + or?: ResourceUtilizationFilter[]; + /** Filter by the object’s `replicas` field. */ + replicas?: IntFilter; + /** Filter by the object’s `resourceId` field. */ + resourceId?: UUIDFilter; + /** Filter by the object’s `runtimeSeconds` field. */ + runtimeSeconds?: BigIntFilter; + /** Filter by the object’s `sampleCount` field. */ + sampleCount?: IntFilter; +} +export interface ResourcesHealthFilter { + /** Checks for all expressions in this list. */ + and?: ResourcesHealthFilter[]; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Filter by the object’s `cpuLimitMillicores` field. */ + cpuLimitMillicores?: BigIntFilter; + /** Filter by the object’s `cpuRequestMillicores` field. */ + cpuRequestMillicores?: BigIntFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `errorCount` field. */ + errorCount?: IntFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `imageRef` field. */ + imageRef?: StringFilter; + /** Filter by the object’s `installationId` field. */ + installationId?: UUIDFilter; + /** Filter by the object’s `integrations` field. */ + integrations?: StringListFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `lastHeartbeatAt` field. */ + lastHeartbeatAt?: DatetimeFilter; + /** Filter by the object’s `memoryLimitBytes` field. */ + memoryLimitBytes?: BigIntFilter; + /** Filter by the object’s `memoryRequestBytes` field. */ + memoryRequestBytes?: BigIntFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: ResourcesHealthFilter; + /** Checks for any expressions in this list. */ + or?: ResourcesHealthFilter[]; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; + /** Filter by the object’s `replicas` field. */ + replicas?: IntFilter; + /** Filter by the object’s `resourceDefinitionId` field. */ + resourceDefinitionId?: UUIDFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `spec` field. */ + spec?: JSONFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `statusDetail` field. */ + statusDetail?: StringFilter; + /** Filter by the object’s `statusObserved` field. */ + statusObserved?: JSONFilter; + /** Filter by the object’s `storageClass` field. */ + storageClass?: StringFilter; + /** Filter by the object’s `storageSizeBytes` field. */ + storageSizeBytes?: BigIntFilter; + /** Filter by the object’s `storageTotalBytes` field. */ + storageTotalBytes?: BigIntFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} +export interface ResourcesRequirementsStateFilter { + /** Checks for all expressions in this list. */ + and?: ResourcesRequirementsStateFilter[]; + /** Filter by the object’s `configHash` field. */ + configHash?: StringFilter; + /** Filter by the object’s `configObjectName` field. */ + configObjectName?: StringFilter; + /** Negates the expression. */ + not?: ResourcesRequirementsStateFilter; + /** Checks for any expressions in this list. */ + or?: ResourcesRequirementsStateFilter[]; + /** Filter by the object’s `requirementsHash` field. */ + requirementsHash?: StringFilter; + /** Filter by the object’s `resourceId` field. */ + resourceId?: UUIDFilter; + /** Filter by the object’s `secretsHash` field. */ + secretsHash?: StringFilter; + /** Filter by the object’s `secretsObjectName` field. */ + secretsObjectName?: StringFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; +} +export interface ResourcesResolvedRequirementFilter { + /** Checks for all expressions in this list. */ + and?: ResourcesResolvedRequirementFilter[]; + /** Filter by the object’s `atomId` field. */ + atomId?: UUIDFilter; + /** Filter by the object’s `configObjectName` field. */ + configObjectName?: StringFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: ResourcesResolvedRequirementFilter; + /** Checks for any expressions in this list. */ + or?: ResourcesResolvedRequirementFilter[]; + /** Filter by the object’s `present` field. */ + present?: BooleanFilter; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; + /** Filter by the object’s `required` field. */ + required?: BooleanFilter; + /** Filter by the object’s `requirementKind` field. */ + requirementKind?: StringFilter; + /** Filter by the object’s `resourceId` field. */ + resourceId?: UUIDFilter; + /** Filter by the object’s `secretsObjectName` field. */ + secretsObjectName?: StringFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; +} +export interface WebhookEndpointFilter { + /** Filter by the object’s `active` field. */ + active?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: WebhookEndpointFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `functionDefinition` relation. */ + functionDefinition?: FunctionDefinitionFilter; + /** Filter by the object’s `functionDefinitionId` field. */ + functionDefinitionId?: UUIDFilter; + /** Filter by the object’s `host` field. */ + host?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: WebhookEndpointFilter; + /** Checks for any expressions in this list. */ + or?: WebhookEndpointFilter[]; + /** Filter by the object’s `path` field. */ + path?: StringFilter; + /** Filter by the object’s `provider` field. */ + provider?: StringFilter; + /** Filter by the object’s `replayWindowSeconds` field. */ + replayWindowSeconds?: IntFilter; + /** Filter by the object’s `signingSecretName` field. */ + signingSecretName?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** Filter by the object’s `webhookEventsByEndpointId` relation. */ + webhookEventsByEndpointId?: WebhookEndpointToManyWebhookEventFilter; + /** `webhookEventsByEndpointId` exist. */ + webhookEventsByEndpointIdExist?: boolean; +} +export interface WebhookEventFilter { + /** Checks for all expressions in this list. */ + and?: WebhookEventFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `endpoint` relation. */ + endpoint?: WebhookEndpointFilter; + /** Filter by the object’s `endpointId` field. */ + endpointId?: UUIDFilter; + /** Filter by the object’s `error` field. */ + error?: StringFilter; + /** Filter by the object’s `externalEventId` field. */ + externalEventId?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `invocationCreatedAt` field. */ + invocationCreatedAt?: DatetimeFilter; + /** Filter by the object’s `invocationId` field. */ + invocationId?: UUIDFilter; + /** Negates the expression. */ + not?: WebhookEventFilter; + /** Checks for any expressions in this list. */ + or?: WebhookEventFilter[]; + /** Filter by the object’s `payload` field. */ + payload?: JSONFilter; + /** Filter by the object’s `provider` field. */ + provider?: StringFilter; + /** Filter by the object’s `providerTimestamp` field. */ + providerTimestamp?: DatetimeFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} +// ============ OrderBy Types ============ +export type BuildOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'ATTEMPT_ASC' + | 'ATTEMPT_DESC' + | 'COMMIT_SHA_ASC' + | 'COMMIT_SHA_DESC' + | 'CONCLUSION_ASC' + | 'CONCLUSION_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'EVENT_ID_ASC' + | 'EVENT_ID_DESC' + | 'FINISHED_AT_ASC' + | 'FINISHED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IMAGE_REF_ASC' + | 'IMAGE_REF_DESC' + | 'JOB_ID_ASC' + | 'JOB_ID_DESC' + | 'LOGS_ASC' + | 'LOGS_DESC' + | 'MATRIX_KEY_ASC' + | 'MATRIX_KEY_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PROPOSAL_ID_ASC' + | 'PROPOSAL_ID_DESC' + | 'REF_ASC' + | 'REF_DESC' + | 'REPOSITORY_ID_ASC' + | 'REPOSITORY_ID_DESC' + | 'STARTED_AT_ASC' + | 'STARTED_AT_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC' + | 'WORKFLOW_ID_ASC' + | 'WORKFLOW_ID_DESC'; +export type BuildStepOrderBy = + | 'BUILD_ID_ASC' + | 'BUILD_ID_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'EXIT_CODE_ASC' + | 'EXIT_CODE_DESC' + | 'FINISHED_AT_ASC' + | 'FINISHED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'KIND_ASC' + | 'KIND_DESC' + | 'LOG_BYTES_ASC' + | 'LOG_BYTES_DESC' + | 'LOG_OFFSET_ASC' + | 'LOG_OFFSET_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'PARENT_SEQ_ASC' + | 'PARENT_SEQ_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'RECORDED_AT_ASC' + | 'RECORDED_AT_DESC' + | 'SEQ_ASC' + | 'SEQ_DESC' + | 'STARTED_AT_ASC' + | 'STARTED_AT_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'SUMMARY_ASC' + | 'SUMMARY_DESC'; +export type BuilderBindingOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'INSTALLATION_ID_ASC' + | 'INSTALLATION_ID_DESC' + | 'LAST_ERROR_ASC' + | 'LAST_ERROR_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'NATURAL' + | 'OBSERVED_HOST_ASC' + | 'OBSERVED_HOST_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'REALM_ASC' + | 'REALM_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +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 DatabaseFunctionGraphOrderBy = + | 'CONTEXT_ASC' + | 'CONTEXT_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DEFINITIONS_COMMIT_ID_ASC' + | 'DEFINITIONS_COMMIT_ID_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_VALID_ASC' + | 'IS_VALID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'STORE_ID_ASC' + | 'STORE_ID_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'VALIDATION_ERRORS_ASC' + | 'VALIDATION_ERRORS_DESC'; +export type DatabaseFunctionGraphExecutionOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'COMPLETED_AT_ASC' + | 'COMPLETED_AT_DESC' + | 'CURRENT_WAVE_ASC' + | 'CURRENT_WAVE_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DEFINITIONS_COMMIT_ID_ASC' + | 'DEFINITIONS_COMMIT_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'ENTITY_TYPE_ASC' + | 'ENTITY_TYPE_DESC' + | 'ERROR_CODE_ASC' + | 'ERROR_CODE_DESC' + | 'ERROR_MESSAGE_ASC' + | 'ERROR_MESSAGE_DESC' + | 'EXECUTION_PLAN_ASC' + | 'EXECUTION_PLAN_DESC' + | 'GRAPH_ID_ASC' + | 'GRAPH_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'INPUT_PAYLOAD_ASC' + | 'INPUT_PAYLOAD_DESC' + | 'INVOCATION_CREATED_AT_ASC' + | 'INVOCATION_CREATED_AT_DESC' + | 'INVOCATION_ID_ASC' + | 'INVOCATION_ID_DESC' + | 'LAST_PROGRESS_AT_ASC' + | 'LAST_PROGRESS_AT_DESC' + | 'MAX_PENDING_JOBS_ASC' + | 'MAX_PENDING_JOBS_DESC' + | 'MAX_TICKS_ASC' + | 'MAX_TICKS_DESC' + | 'NATURAL' + | 'NODE_OUTPUTS_ASC' + | 'NODE_OUTPUTS_DESC' + | 'ORGANIZATION_ID_ASC' + | 'ORGANIZATION_ID_DESC' + | 'OUTPUT_NAMES_ASC' + | 'OUTPUT_NAMES_DESC' + | 'OUTPUT_NODE_ASC' + | 'OUTPUT_NODE_DESC' + | 'OUTPUT_PAYLOAD_ASC' + | 'OUTPUT_PAYLOAD_DESC' + | 'OUTPUT_PORT_ASC' + | 'OUTPUT_PORT_DESC' + | 'PARENT_EXECUTION_ID_ASC' + | 'PARENT_EXECUTION_ID_DESC' + | 'PARENT_INVOCATION_ID_ASC' + | 'PARENT_INVOCATION_ID_DESC' + | 'PARENT_NODE_NAME_ASC' + | 'PARENT_NODE_NAME_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PRINCIPAL_ID_ASC' + | 'PRINCIPAL_ID_DESC' + | 'STARTED_AT_ASC' + | 'STARTED_AT_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'TICK_COUNT_ASC' + | 'TICK_COUNT_DESC' + | 'TIMEOUT_AT_ASC' + | 'TIMEOUT_AT_DESC'; +export type DatabaseFunctionGraphExecutionNodeStateOrderBy = + | 'CALLBACK_INPUTS_ASC' + | 'CALLBACK_INPUTS_DESC' + | 'CALLBACK_META_ASC' + | 'CALLBACK_META_DESC' + | 'CALLBACK_TOKEN_HASH_ASC' + | 'CALLBACK_TOKEN_HASH_DESC' + | 'COMPLETED_AT_ASC' + | 'COMPLETED_AT_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ERROR_CODE_ASC' + | 'ERROR_CODE_DESC' + | 'ERROR_MESSAGE_ASC' + | 'ERROR_MESSAGE_DESC' + | 'EXECUTION_ID_ASC' + | 'EXECUTION_ID_DESC' + | 'EXPIRY_DEFAULT_OUTPUT_ASC' + | 'EXPIRY_DEFAULT_OUTPUT_DESC' + | 'EXPIRY_ESCALATED_AT_ASC' + | 'EXPIRY_ESCALATED_AT_DESC' + | 'EXPIRY_POLICY_ASC' + | 'EXPIRY_POLICY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' + | 'NODE_NAME_ASC' + | 'NODE_NAME_DESC' + | 'NODE_PATH_ASC' + | 'NODE_PATH_DESC' + | 'OUTPUT_ID_ASC' + | 'OUTPUT_ID_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'STARTED_AT_ASC' + | 'STARTED_AT_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'WAITING_DEADLINE_AT_ASC' + | 'WAITING_DEADLINE_AT_DESC' + | 'WAITING_ON_ASC' + | 'WAITING_ON_DESC' + | 'WAITING_SINCE_ASC' + | 'WAITING_SINCE_DESC'; +export type DatabaseFunctionGraphExecutionOutputOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DATA_ASC' + | 'DATA_DESC' + | 'HASH_ASC' + | 'HASH_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC'; +export type DatabaseGraphCommitOrderBy = + | 'AUTHOR_ID_ASC' + | 'AUTHOR_ID_DESC' + | 'COMMITTER_ID_ASC' + | 'COMMITTER_ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DATE_ASC' + | 'DATE_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'MESSAGE_ASC' + | 'MESSAGE_DESC' + | 'NATURAL' + | 'PARENT_IDS_ASC' + | 'PARENT_IDS_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'STORE_ID_ASC' + | 'STORE_ID_DESC' + | 'TREE_ID_ASC' + | 'TREE_ID_DESC'; +export type DatabaseGraphGetAllTreeNodesRecordsOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'DATA_ASC' + | 'DATA_DESC' + | 'PATH_ASC' + | 'PATH_DESC'; +export type DatabaseGraphObjectOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DATA_ASC' + | 'DATA_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'KIDS_ASC' + | 'KIDS_DESC' + | 'KTREE_ASC' + | 'KTREE_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC'; +export type DatabaseGraphRefOrderBy = + | 'COMMIT_ID_ASC' + | 'COMMIT_ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'STORE_ID_ASC' + | 'STORE_ID_DESC'; +export type DatabaseGraphStoreOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'HASH_ASC' + | 'HASH_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC'; +export type DbPresetOrderBy = + | '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' + | 'LABEL_ASC' + | 'LABEL_DESC' + | 'MODULES_HASH_ASC' + | 'MODULES_HASH_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 FunctionApiBindingOrderBy = + | 'ALIAS_ASC' + | 'ALIAS_DESC' + | 'API_ID_ASC' + | 'API_ID_DESC' + | 'CONFIG_ASC' + | 'CONFIG_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'FUNCTION_DEFINITION_ID_ASC' + | 'FUNCTION_DEFINITION_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type FunctionCapabilityBindingOrderBy = + | 'BUCKET_ID_ASC' + | 'BUCKET_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'FUNCTION_ID_ASC' + | 'FUNCTION_ID_DESC' + | 'GRAPH_ID_ASC' + | 'GRAPH_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'KEY_ASC' + | 'KEY_DESC' + | 'LIFECYCLE_ASC' + | 'LIFECYCLE_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type FunctionDefinitionOrderBy = + | 'ACCESS_CHANNELS_ASC' + | 'ACCESS_CHANNELS_DESC' + | 'ANONYMOUS_CALLABLE_ASC' + | 'ANONYMOUS_CALLABLE_DESC' + | 'CATEGORY_ASC' + | 'CATEGORY_DESC' + | 'CONCURRENCY_ASC' + | 'CONCURRENCY_DESC' + | 'CPU_LIMIT_MILLICORES_ASC' + | 'CPU_LIMIT_MILLICORES_DESC' + | 'CPU_REQUEST_MILLICORES_ASC' + | 'CPU_REQUEST_MILLICORES_DESC' + | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'DESCRIPTION_ASC' @@ -6160,6 +12113,8 @@ export type FunctionDefinitionOrderBy = | 'QUEUE_NAME_DESC' | 'REQUIRED_BUCKETS_ASC' | 'REQUIRED_BUCKETS_DESC' + | 'REQUIRED_CAPABILITIES_ASC' + | 'REQUIRED_CAPABILITIES_DESC' | 'REQUIRED_CONFIGS_ASC' | 'REQUIRED_CONFIGS_DESC' | 'REQUIRED_MODELS_ASC' @@ -6186,6 +12141,8 @@ export type FunctionDefinitionOrderBy = | 'TIMEOUT_SECONDS_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC' | 'VOLATILE_ASC' | 'VOLATILE_DESC'; export type FunctionDeploymentOrderBy = @@ -6195,6 +12152,8 @@ export type FunctionDeploymentOrderBy = | 'CONCURRENCY_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'ERROR_COUNT_ASC' @@ -6237,7 +12196,9 @@ export type FunctionDeploymentOrderBy = | 'TIMEOUT_SECONDS_ASC' | 'TIMEOUT_SECONDS_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; export type FunctionDeploymentEventOrderBy = | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' @@ -6415,6 +12376,12 @@ export type FunctionGraphExecutionNodeStateOrderBy = | 'ERROR_MESSAGE_DESC' | 'EXECUTION_ID_ASC' | 'EXECUTION_ID_DESC' + | 'EXPIRY_DEFAULT_OUTPUT_ASC' + | 'EXPIRY_DEFAULT_OUTPUT_DESC' + | 'EXPIRY_ESCALATED_AT_ASC' + | 'EXPIRY_ESCALATED_AT_DESC' + | 'EXPIRY_POLICY_ASC' + | 'EXPIRY_POLICY_DESC' | 'ID_ASC' | 'ID_DESC' | 'NATURAL' @@ -6431,7 +12398,13 @@ export type FunctionGraphExecutionNodeStateOrderBy = | 'STARTED_AT_ASC' | 'STARTED_AT_DESC' | 'STATUS_ASC' - | 'STATUS_DESC'; + | 'STATUS_DESC' + | 'WAITING_DEADLINE_AT_ASC' + | 'WAITING_DEADLINE_AT_DESC' + | 'WAITING_ON_ASC' + | 'WAITING_ON_DESC' + | 'WAITING_SINCE_ASC' + | 'WAITING_SINCE_DESC'; export type FunctionGraphExecutionOutputOrderBy = | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' @@ -6531,12 +12504,18 @@ export type FunctionInvocationOrderBy = | 'COMPLETED_AT_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'DEFINITION_SCOPE_ASC' | 'DEFINITION_SCOPE_DESC' | 'DURATION_MS_ASC' | 'DURATION_MS_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'ENTITY_TYPE_ASC' + | 'ENTITY_TYPE_DESC' | 'ERROR_ASC' | 'ERROR_DESC' | 'FUNCTION_DEFINITION_ID_ASC' @@ -6548,12 +12527,16 @@ export type FunctionInvocationOrderBy = | 'JOB_ID_ASC' | 'JOB_ID_DESC' | 'NATURAL' + | 'ORGANIZATION_ID_ASC' + | 'ORGANIZATION_ID_DESC' | 'PARENT_INVOCATION_ID_ASC' | 'PARENT_INVOCATION_ID_DESC' | 'PAYLOAD_ASC' | 'PAYLOAD_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' + | 'PRINCIPAL_ID_ASC' + | 'PRINCIPAL_ID_DESC' | 'PROVENANCE_ASC' | 'PROVENANCE_DESC' | 'RESULT_ASC' @@ -6572,6 +12555,76 @@ export type GetAllTreeNodesRecordsOrderBy = | 'DATA_DESC' | 'PATH_ASC' | 'PATH_DESC'; +export type ImageOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'DIGEST_ASC' + | 'DIGEST_DESC' + | 'EXPIRES_AT_ASC' + | 'EXPIRES_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_PUBLISHED_ASC' + | 'IS_PUBLISHED_DESC' + | 'LABELS_ASC' + | 'LABELS_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'PLATFORM_ONLY_ASC' + | 'PLATFORM_ONLY_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'REGISTRY_HOST_ASC' + | 'REGISTRY_HOST_DESC' + | 'REPOSITORY_ASC' + | 'REPOSITORY_DESC' + | 'RUNTIME_ASC' + | 'RUNTIME_DESC' + | 'TAG_ASC' + | 'TAG_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +export type ImageGrantOrderBy = + | 'ACTIONS_ASC' + | 'ACTIONS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'EXPIRES_AT_ASC' + | 'EXPIRES_AT_DESC' + | 'GRANTED_BY_ASC' + | 'GRANTED_BY_DESC' + | 'GRANTEE_KEY_ASC' + | 'GRANTEE_KEY_DESC' + | 'GRANTEE_SCOPE_ASC' + | 'GRANTEE_SCOPE_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IMAGE_ID_ASC' + | 'IMAGE_ID_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; export type InfraCommitOrderBy = | 'AUTHOR_ID_ASC' | 'AUTHOR_ID_DESC' @@ -6677,6 +12730,8 @@ export type IntegrationProviderOrderBy = export type NamespaceOrderBy = | 'ANNOTATIONS_ASC' | 'ANNOTATIONS_DESC' + | 'CLUSTER_ID_ASC' + | 'CLUSTER_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'DATABASE_ID_ASC' @@ -6724,6 +12779,120 @@ export type NamespaceEventOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC'; +export type PlatformBuildOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'ATTEMPT_ASC' + | 'ATTEMPT_DESC' + | 'COMMIT_SHA_ASC' + | 'COMMIT_SHA_DESC' + | 'CONCLUSION_ASC' + | 'CONCLUSION_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'EVENT_ID_ASC' + | 'EVENT_ID_DESC' + | 'FINISHED_AT_ASC' + | 'FINISHED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IMAGE_REF_ASC' + | 'IMAGE_REF_DESC' + | 'JOB_ID_ASC' + | 'JOB_ID_DESC' + | 'LOGS_ASC' + | 'LOGS_DESC' + | 'MATRIX_KEY_ASC' + | 'MATRIX_KEY_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PROPOSAL_ID_ASC' + | 'PROPOSAL_ID_DESC' + | 'REF_ASC' + | 'REF_DESC' + | 'REPOSITORY_ID_ASC' + | 'REPOSITORY_ID_DESC' + | 'STARTED_AT_ASC' + | 'STARTED_AT_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC' + | 'WORKFLOW_ID_ASC' + | 'WORKFLOW_ID_DESC'; +export type PlatformBuildStepOrderBy = + | 'BUILD_ID_ASC' + | 'BUILD_ID_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'EXIT_CODE_ASC' + | 'EXIT_CODE_DESC' + | 'FINISHED_AT_ASC' + | 'FINISHED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'KIND_ASC' + | 'KIND_DESC' + | 'LOG_BYTES_ASC' + | 'LOG_BYTES_DESC' + | 'LOG_OFFSET_ASC' + | 'LOG_OFFSET_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'PARENT_SEQ_ASC' + | 'PARENT_SEQ_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'RECORDED_AT_ASC' + | 'RECORDED_AT_DESC' + | 'SEQ_ASC' + | 'SEQ_DESC' + | 'STARTED_AT_ASC' + | 'STARTED_AT_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'SUMMARY_ASC' + | 'SUMMARY_DESC'; +export type PlatformBuilderBindingOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'INSTALLATION_ID_ASC' + | 'INSTALLATION_ID_DESC' + | 'LAST_ERROR_ASC' + | 'LAST_ERROR_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'NATURAL' + | 'OBSERVED_HOST_ASC' + | 'OBSERVED_HOST_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'REALM_ASC' + | 'REALM_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; export type PlatformFunctionApiBindingOrderBy = | 'ALIAS_ASC' | 'ALIAS_DESC' @@ -6767,6 +12936,8 @@ export type PlatformFunctionCapabilityBindingOrderBy = export type PlatformFunctionDefinitionOrderBy = | 'ACCESS_CHANNELS_ASC' | 'ACCESS_CHANNELS_DESC' + | 'ANONYMOUS_CALLABLE_ASC' + | 'ANONYMOUS_CALLABLE_DESC' | 'BILLABLE_ASC' | 'BILLABLE_DESC' | 'CATEGORY_ASC' @@ -6779,6 +12950,8 @@ export type PlatformFunctionDefinitionOrderBy = | 'CPU_REQUEST_MILLICORES_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' | 'FN_CATEGORY_ASC' @@ -6828,6 +13001,8 @@ export type PlatformFunctionDefinitionOrderBy = | 'QUEUE_NAME_DESC' | 'REQUIRED_BUCKETS_ASC' | 'REQUIRED_BUCKETS_DESC' + | 'REQUIRED_CAPABILITIES_ASC' + | 'REQUIRED_CAPABILITIES_DESC' | 'REQUIRED_CONFIGS_ASC' | 'REQUIRED_CONFIGS_DESC' | 'REQUIRED_MODELS_ASC' @@ -6856,6 +13031,8 @@ export type PlatformFunctionDefinitionOrderBy = | 'TIMEOUT_SECONDS_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC' | 'VOLATILE_ASC' | 'VOLATILE_DESC'; export type PlatformFunctionDeploymentOrderBy = @@ -6865,6 +13042,8 @@ export type PlatformFunctionDeploymentOrderBy = | 'CONCURRENCY_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'ERROR_COUNT_ASC' | 'ERROR_COUNT_DESC' | 'HANDLER_NAME_ASC' @@ -6905,7 +13084,9 @@ export type PlatformFunctionDeploymentOrderBy = | 'TIMEOUT_SECONDS_ASC' | 'TIMEOUT_SECONDS_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; export type PlatformFunctionDeploymentEventOrderBy = | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' @@ -6983,12 +13164,18 @@ export type PlatformFunctionInvocationOrderBy = | 'COMPLETED_AT_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'DEFINITION_SCOPE_ASC' | 'DEFINITION_SCOPE_DESC' | 'DURATION_MS_ASC' | 'DURATION_MS_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'ENTITY_TYPE_ASC' + | 'ENTITY_TYPE_DESC' | 'ERROR_ASC' | 'ERROR_DESC' | 'FUNCTION_DEFINITION_ID_ASC' @@ -7000,12 +13187,16 @@ export type PlatformFunctionInvocationOrderBy = | 'JOB_ID_ASC' | 'JOB_ID_DESC' | 'NATURAL' + | 'ORGANIZATION_ID_ASC' + | 'ORGANIZATION_ID_DESC' | 'PARENT_INVOCATION_ID_ASC' | 'PARENT_INVOCATION_ID_DESC' | 'PAYLOAD_ASC' | 'PAYLOAD_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' + | 'PRINCIPAL_ID_ASC' + | 'PRINCIPAL_ID_DESC' | 'PROVENANCE_ASC' | 'PROVENANCE_DESC' | 'RESULT_ASC' @@ -7016,6 +13207,72 @@ export type PlatformFunctionInvocationOrderBy = | 'STATUS_DESC' | 'TASK_IDENTIFIER_ASC' | 'TASK_IDENTIFIER_DESC'; +export type PlatformImageOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'DIGEST_ASC' + | 'DIGEST_DESC' + | 'EXPIRES_AT_ASC' + | 'EXPIRES_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_PUBLISHED_ASC' + | 'IS_PUBLISHED_DESC' + | 'LABELS_ASC' + | 'LABELS_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'PLATFORM_ONLY_ASC' + | 'PLATFORM_ONLY_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'REGISTRY_HOST_ASC' + | 'REGISTRY_HOST_DESC' + | 'REPOSITORY_ASC' + | 'REPOSITORY_DESC' + | 'RUNTIME_ASC' + | 'RUNTIME_DESC' + | 'TAG_ASC' + | 'TAG_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +export type PlatformImageGrantOrderBy = + | 'ACTIONS_ASC' + | 'ACTIONS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'EXPIRES_AT_ASC' + | 'EXPIRES_AT_DESC' + | 'GRANTED_BY_ASC' + | 'GRANTED_BY_DESC' + | 'GRANTEE_KEY_ASC' + | 'GRANTEE_KEY_DESC' + | 'GRANTEE_SCOPE_ASC' + | 'GRANTEE_SCOPE_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IMAGE_ID_ASC' + | 'IMAGE_ID_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; export type PlatformInfraCommitOrderBy = | 'AUTHOR_ID_ASC' | 'AUTHOR_ID_DESC' @@ -7090,9 +13347,59 @@ export type PlatformInfraStoreOrderBy = | 'PRIMARY_KEY_DESC' | 'SCOPE_ID_ASC' | 'SCOPE_ID_DESC'; +export type PlatformK8sResourceKindOrderBy = + | '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' + | '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 PlatformK8sSpecRuleOrderBy = + | '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' + | '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 PlatformNamespaceOrderBy = | 'ANNOTATIONS_ASC' | 'ANNOTATIONS_DESC' + | 'CLUSTER_ID_ASC' + | 'CLUSTER_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'DESCRIPTION_ASC' @@ -7114,28 +13421,532 @@ export type PlatformNamespaceOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'STATUS_ASC' - | 'STATUS_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type PlatformNamespaceEventOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'EVENT_TYPE_ASC' + | 'EVENT_TYPE_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'MESSAGE_ASC' + | 'MESSAGE_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC'; +export type PlatformProposalCommentOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'ATTACHMENTS_ASC' + | 'ATTACHMENTS_DESC' + | 'BODY_ASC' + | 'BODY_DESC' + | 'BODY_TRGM_SIMILARITY_ASC' + | 'BODY_TRGM_SIMILARITY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'EMBEDDING_ASC' + | 'EMBEDDING_DESC' + | 'EMBEDDING_UPDATED_AT_ASC' + | 'EMBEDDING_UPDATED_AT_DESC' + | 'EMBEDDING_VECTOR_DISTANCE_ASC' + | 'EMBEDDING_VECTOR_DISTANCE_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'LINE_ASC' + | 'LINE_DESC' + | 'NATURAL' + | 'OUTDATED_AT_ASC' + | 'OUTDATED_AT_DESC' + | 'PATH_ASC' + | 'PATH_DESC' + | 'PATH_TRGM_SIMILARITY_ASC' + | 'PATH_TRGM_SIMILARITY_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PROPOSAL_ID_ASC' + | 'PROPOSAL_ID_DESC' + | 'RESOLVED_AT_ASC' + | 'RESOLVED_AT_DESC' + | 'SEARCH_ASC' + | 'SEARCH_DESC' + | 'SEARCH_SCORE_ASC' + | 'SEARCH_SCORE_DESC' + | 'SEARCH_TSV_RANK_ASC' + | 'SEARCH_TSV_RANK_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +export type PlatformProposalOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'BODY_ASC' + | 'BODY_DESC' + | 'BODY_TRGM_SIMILARITY_ASC' + | 'BODY_TRGM_SIMILARITY_DESC' + | 'CLOSED_REASON_ASC' + | 'CLOSED_REASON_DESC' + | 'CLOSED_REASON_TRGM_SIMILARITY_ASC' + | 'CLOSED_REASON_TRGM_SIMILARITY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DECIDED_AT_ASC' + | 'DECIDED_AT_DESC' + | 'DUE_AT_ASC' + | 'DUE_AT_DESC' + | 'EMBEDDING_ASC' + | 'EMBEDDING_DESC' + | 'EMBEDDING_UPDATED_AT_ASC' + | 'EMBEDDING_UPDATED_AT_DESC' + | 'EMBEDDING_VECTOR_DISTANCE_ASC' + | 'EMBEDDING_VECTOR_DISTANCE_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'KIND_ASC' + | 'KIND_DESC' + | 'KIND_TRGM_SIMILARITY_ASC' + | 'KIND_TRGM_SIMILARITY_DESC' + | 'LABELS_ASC' + | 'LABELS_DESC' + | 'MERGED_AT_ASC' + | 'MERGED_AT_DESC' + | 'MERGE_COMMIT_ASC' + | 'MERGE_COMMIT_DESC' + | 'MERGE_COMMIT_TRGM_SIMILARITY_ASC' + | 'MERGE_COMMIT_TRGM_SIMILARITY_DESC' + | 'MERGE_METHOD_ASC' + | 'MERGE_METHOD_DESC' + | 'MERGE_METHOD_TRGM_SIMILARITY_ASC' + | 'MERGE_METHOD_TRGM_SIMILARITY_DESC' + | 'MERGE_REQUESTED_AT_ASC' + | 'MERGE_REQUESTED_AT_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'NATURAL' + | 'PARENT_ID_ASC' + | 'PARENT_ID_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PRIORITY_ASC' + | 'PRIORITY_DESC' + | 'REPOSITORY_ID_ASC' + | 'REPOSITORY_ID_DESC' + | 'RESOLUTION_ASC' + | 'RESOLUTION_DESC' + | 'RESOLUTION_TRGM_SIMILARITY_ASC' + | 'RESOLUTION_TRGM_SIMILARITY_DESC' + | 'SEARCH_ASC' + | 'SEARCH_DESC' + | 'SEARCH_SCORE_ASC' + | 'SEARCH_SCORE_DESC' + | 'SEARCH_TSV_RANK_ASC' + | 'SEARCH_TSV_RANK_DESC' + | 'SOURCE_REF_ASC' + | 'SOURCE_REF_DESC' + | 'SOURCE_REF_TRGM_SIMILARITY_ASC' + | 'SOURCE_REF_TRGM_SIMILARITY_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'STATUS_TRGM_SIMILARITY_ASC' + | 'STATUS_TRGM_SIMILARITY_DESC' + | 'TARGET_REF_ASC' + | 'TARGET_REF_DESC' + | 'TARGET_REF_TRGM_SIMILARITY_ASC' + | 'TARGET_REF_TRGM_SIMILARITY_DESC' + | 'TITLE_ASC' + | 'TITLE_DESC' + | 'TITLE_TRGM_SIMILARITY_ASC' + | 'TITLE_TRGM_SIMILARITY_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +export type PlatformProposalFileViewOrderBy = + | 'BLOB_SHA_ASC' + | 'BLOB_SHA_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' + | 'PATH_ASC' + | 'PATH_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PROPOSAL_ID_ASC' + | 'PROPOSAL_ID_DESC' + | 'REVIEWER_ID_ASC' + | 'REVIEWER_ID_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC' + | 'VIEWED_AT_ASC' + | 'VIEWED_AT_DESC'; +export type PlatformProposalReactionOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'COMMENT_ID_ASC' + | 'COMMENT_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'EMOJI_ASC' + | 'EMOJI_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PROPOSAL_ID_ASC' + | 'PROPOSAL_ID_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +export type PlatformProposalReviewOrderBy = + | 'BODY_ASC' + | 'BODY_DESC' + | 'BODY_TRGM_SIMILARITY_ASC' + | 'BODY_TRGM_SIMILARITY_DESC' + | 'COMMIT_SHA_ASC' + | 'COMMIT_SHA_DESC' + | 'COMMIT_SHA_TRGM_SIMILARITY_ASC' + | 'COMMIT_SHA_TRGM_SIMILARITY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PROPOSAL_ID_ASC' + | 'PROPOSAL_ID_DESC' + | 'REVIEWER_ID_ASC' + | 'REVIEWER_ID_DESC' + | 'SEARCH_ASC' + | 'SEARCH_DESC' + | 'SEARCH_SCORE_ASC' + | 'SEARCH_SCORE_DESC' + | 'SEARCH_TSV_RANK_ASC' + | 'SEARCH_TSV_RANK_DESC' + | 'SUBMITTED_AT_ASC' + | 'SUBMITTED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC' + | 'VERDICT_ASC' + | 'VERDICT_DESC' + | 'VERDICT_TRGM_SIMILARITY_ASC' + | 'VERDICT_TRGM_SIMILARITY_DESC'; +export type PlatformProposalsChunkOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'BODY_ASC' + | 'BODY_DESC' + | 'CHUNK_INDEX_ASC' + | 'CHUNK_INDEX_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'EMBEDDING_ASC' + | 'EMBEDDING_DESC' + | 'EMBEDDING_VECTOR_DISTANCE_ASC' + | 'EMBEDDING_VECTOR_DISTANCE_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'NATURAL' + | 'PLATFORM_PROPOSALS_ID_ASC' + | 'PLATFORM_PROPOSALS_ID_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'SEARCH_SCORE_ASC' + | 'SEARCH_SCORE_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type PlatformRegistryBindingOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'NATURAL' + | 'OBSERVED_CREDENTIAL_VERSION_ASC' + | 'OBSERVED_CREDENTIAL_VERSION_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PULL_SECRET_NAME_ASC' + | 'PULL_SECRET_NAME_DESC' + | 'REALM_ASC' + | 'REALM_DESC' + | 'REGISTRY_HOST_ASC' + | 'REGISTRY_HOST_DESC' + | 'REGISTRY_ID_ASC' + | 'REGISTRY_ID_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +export type PlatformRegistryOrderBy = + | 'AUTH_MODE_ASC' + | 'AUTH_MODE_DESC' + | 'BASE_PATH_ASC' + | 'BASE_PATH_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'CREDENTIAL_SECRET_NAME_ASC' + | 'CREDENTIAL_SECRET_NAME_DESC' + | 'HOST_ASC' + | 'HOST_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'INSTALLATION_ID_ASC' + | 'INSTALLATION_ID_DESC' + | 'IS_PUBLISHED_ASC' + | 'IS_PUBLISHED_DESC' + | 'KIND_ASC' + | 'KIND_DESC' + | 'LABELS_ASC' + | 'LABELS_DESC' + | 'LAST_ERROR_ASC' + | 'LAST_ERROR_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'PLATFORM_ONLY_ASC' + | 'PLATFORM_ONLY_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ROLE_ASC' + | 'ROLE_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +export type PlatformRegistryGrantOrderBy = + | 'ACTIONS_ASC' + | 'ACTIONS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'EXPIRES_AT_ASC' + | 'EXPIRES_AT_DESC' + | 'GRANTED_BY_ASC' + | 'GRANTED_BY_DESC' + | 'GRANTEE_KEY_ASC' + | 'GRANTEE_KEY_DESC' + | 'GRANTEE_SCOPE_ASC' + | 'GRANTEE_SCOPE_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'REGISTRY_ID_ASC' + | 'REGISTRY_ID_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +export type PlatformRepositoryOrderBy = + | 'CLONE_URL_ASC' + | 'CLONE_URL_DESC' + | 'CLONE_URL_TRGM_SIMILARITY_ASC' + | 'CLONE_URL_TRGM_SIMILARITY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DEFAULT_BRANCH_ASC' + | 'DEFAULT_BRANCH_DESC' + | 'DEFAULT_BRANCH_TRGM_SIMILARITY_ASC' + | 'DEFAULT_BRANCH_TRGM_SIMILARITY_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'DESCRIPTION_TRGM_SIMILARITY_ASC' + | 'DESCRIPTION_TRGM_SIMILARITY_DESC' + | 'EMBEDDING_ASC' + | 'EMBEDDING_DESC' + | 'EMBEDDING_UPDATED_AT_ASC' + | 'EMBEDDING_UPDATED_AT_DESC' + | 'EMBEDDING_VECTOR_DISTANCE_ASC' + | 'EMBEDDING_VECTOR_DISTANCE_DESC' + | 'EXTERNAL_ID_ASC' + | 'EXTERNAL_ID_DESC' + | 'EXTERNAL_ID_TRGM_SIMILARITY_ASC' + | 'EXTERNAL_ID_TRGM_SIMILARITY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_ARCHIVED_ASC' + | 'IS_ARCHIVED_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NAME_TRGM_SIMILARITY_ASC' + | 'NAME_TRGM_SIMILARITY_DESC' + | 'NATURAL' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PROVIDER_ASC' + | 'PROVIDER_DESC' + | 'PROVIDER_TRGM_SIMILARITY_ASC' + | 'PROVIDER_TRGM_SIMILARITY_DESC' + | 'SEARCH_ASC' + | 'SEARCH_DESC' + | 'SEARCH_SCORE_ASC' + | 'SEARCH_SCORE_DESC' + | 'SEARCH_TSV_RANK_ASC' + | 'SEARCH_TSV_RANK_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'SLUG_TRGM_SIMILARITY_ASC' + | 'SLUG_TRGM_SIMILARITY_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC' + | 'VISIBILITY_ASC' + | 'VISIBILITY_DESC' + | 'VISIBILITY_TRGM_SIMILARITY_ASC' + | 'VISIBILITY_TRGM_SIMILARITY_DESC'; +export type PlatformRepositoryEventOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'COMMIT_SHA_ASC' + | 'COMMIT_SHA_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DELIVERY_ID_ASC' + | 'DELIVERY_ID_DESC' + | 'EVENT_TYPE_ASC' + | 'EVENT_TYPE_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'NATURAL' + | 'PAYLOAD_ASC' + | 'PAYLOAD_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'REF_ASC' + | 'REF_DESC' + | 'REPOSITORY_ID_ASC' + | 'REPOSITORY_ID_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +export type PlatformRepositoryRequiredCheckOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'REPOSITORY_ID_ASC' + | 'REPOSITORY_ID_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type PlatformNamespaceEventOrderBy = - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' + | 'UPDATED_AT_DESC' + | 'WORKFLOW_ID_ASC' + | 'WORKFLOW_ID_DESC'; +export type PlatformRepositoryWorkflowOrderBy = + | 'CANCEL_IN_PROGRESS_ASC' + | 'CANCEL_IN_PROGRESS_DESC' + | 'CONCURRENCY_KEY_ASC' + | 'CONCURRENCY_KEY_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'EVENT_TYPE_ASC' | 'EVENT_TYPE_DESC' + | 'GRAPH_ID_ASC' + | 'GRAPH_ID_DESC' | 'ID_ASC' | 'ID_DESC' - | 'MESSAGE_ASC' - | 'MESSAGE_DESC' - | 'METADATA_ASC' - | 'METADATA_DESC' - | 'NAMESPACE_ID_ASC' - | 'NAMESPACE_ID_DESC' + | 'INPUTS_ASC' + | 'INPUTS_DESC' + | 'IS_ENABLED_ASC' + | 'IS_ENABLED_DESC' + | 'NAME_ASC' + | 'NAME_DESC' | 'NATURAL' | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC'; + | 'PRIMARY_KEY_DESC' + | 'REF_PATTERN_ASC' + | 'REF_PATTERN_DESC' + | 'REPOSITORY_ID_ASC' + | 'REPOSITORY_ID_DESC' + | 'REQUIRED_SECRETS_ASC' + | 'REQUIRED_SECRETS_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; export type PlatformResourceOrderBy = | 'ANNOTATIONS_ASC' | 'ANNOTATIONS_DESC' @@ -7147,10 +13958,14 @@ export type PlatformResourceOrderBy = | 'CREATED_AT_DESC' | 'CREATED_BY_ASC' | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'ERROR_COUNT_ASC' | 'ERROR_COUNT_DESC' | 'ID_ASC' | 'ID_DESC' + | 'IMAGE_REF_ASC' + | 'IMAGE_REF_DESC' | 'INSTALLATION_ID_ASC' | 'INSTALLATION_ID_DESC' | 'INTEGRATIONS_ASC' @@ -7196,10 +14011,14 @@ export type PlatformResourceOrderBy = | 'STORAGE_CLASS_DESC' | 'STORAGE_SIZE_BYTES_ASC' | 'STORAGE_SIZE_BYTES_DESC' + | 'STORAGE_TOTAL_BYTES_ASC' + | 'STORAGE_TOTAL_BYTES_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC'; + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; export type PlatformResourceDeclaredCapacityOrderBy = | 'CPU_LIMIT_MILLICORES_ASC' | 'CPU_LIMIT_MILLICORES_DESC' @@ -7227,7 +14046,9 @@ export type PlatformResourceDeclaredCapacityOrderBy = | 'SOURCE_ID_ASC' | 'SOURCE_ID_DESC' | 'STORAGE_SIZE_BYTES_ASC' - | 'STORAGE_SIZE_BYTES_DESC'; + | 'STORAGE_SIZE_BYTES_DESC' + | 'STORAGE_TOTAL_BYTES_ASC' + | 'STORAGE_TOTAL_BYTES_DESC'; export type PlatformResourceDefinitionOrderBy = | 'ANNOTATIONS_ASC' | 'ANNOTATIONS_DESC' @@ -7235,6 +14056,8 @@ export type PlatformResourceDefinitionOrderBy = | 'CREATED_AT_DESC' | 'CREATED_BY_ASC' | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'DEFAULT_SPEC_ASC' | 'DEFAULT_SPEC_DESC' | 'DESCRIPTION_ASC' @@ -7267,7 +14090,9 @@ export type PlatformResourceDefinitionOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC'; + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; export type PlatformResourceEventOrderBy = | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' @@ -7293,6 +14118,8 @@ export type PlatformResourceInstallationOrderBy = | 'CREATED_AT_DESC' | 'CREATED_BY_ASC' | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'ID_ASC' | 'ID_DESC' | 'NAMESPACE_ID_ASC' @@ -7315,7 +14142,47 @@ export type PlatformResourceInstallationOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC'; + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +export type PlatformResourceObservedStorageOrderBy = + | 'CAPACITY_ASC' + | 'CAPACITY_BYTES_ASC' + | 'CAPACITY_BYTES_DESC' + | 'CAPACITY_DESC' + | 'CLAIM_NAME_ASC' + | 'CLAIM_NAME_DESC' + | 'DECLARED_STORAGE_CLASS_ASC' + | 'DECLARED_STORAGE_CLASS_DESC' + | 'DECLARED_STORAGE_SIZE_BYTES_ASC' + | 'DECLARED_STORAGE_SIZE_BYTES_DESC' + | 'DECLARED_STORAGE_TOTAL_BYTES_ASC' + | 'DECLARED_STORAGE_TOTAL_BYTES_DESC' + | 'INSTALLATION_ID_ASC' + | 'INSTALLATION_ID_DESC' + | 'IS_BOUND_ASC' + | 'IS_BOUND_DESC' + | 'KIND_ASC' + | 'KIND_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'NATURAL' + | 'PHASE_ASC' + | 'PHASE_DESC' + | 'REQUESTED_ASC' + | 'REQUESTED_BYTES_ASC' + | 'REQUESTED_BYTES_DESC' + | 'REQUESTED_DESC' + | 'RESOURCE_ID_ASC' + | 'RESOURCE_ID_DESC' + | 'RESOURCE_STATUS_ASC' + | 'RESOURCE_STATUS_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'STORAGE_CLASS_ASC' + | 'STORAGE_CLASS_DESC' + | 'STORAGE_NAME_ASC' + | 'STORAGE_NAME_DESC'; export type PlatformResourceStatusCheckOrderBy = | 'COMPLETED_AT_ASC' | 'COMPLETED_AT_DESC' @@ -7429,10 +14296,14 @@ export type PlatformResourcesHealthOrderBy = | 'CREATED_AT_DESC' | 'CREATED_BY_ASC' | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'ERROR_COUNT_ASC' | 'ERROR_COUNT_DESC' | 'ID_ASC' | 'ID_DESC' + | 'IMAGE_REF_ASC' + | 'IMAGE_REF_DESC' | 'INSTALLATION_ID_ASC' | 'INSTALLATION_ID_DESC' | 'INTEGRATIONS_ASC' @@ -7478,10 +14349,14 @@ export type PlatformResourcesHealthOrderBy = | 'STORAGE_CLASS_DESC' | 'STORAGE_SIZE_BYTES_ASC' | 'STORAGE_SIZE_BYTES_DESC' + | 'STORAGE_TOTAL_BYTES_ASC' + | 'STORAGE_TOTAL_BYTES_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC'; + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; export type PlatformResourcesRequirementsStateOrderBy = | 'CONFIG_HASH_ASC' | 'CONFIG_HASH_DESC' @@ -7508,78 +14383,612 @@ export type PlatformResourcesResolvedRequirementOrderBy = | 'NAME_ASC' | 'NAME_DESC' | 'NATURAL' - | 'PRESENT_ASC' - | 'PRESENT_DESC' - | 'REALM_ASC' - | 'REALM_DESC' - | 'REQUIRED_ASC' - | 'REQUIRED_DESC' - | 'REQUIREMENT_KIND_ASC' - | 'REQUIREMENT_KIND_DESC' - | 'RESOURCE_ID_ASC' - | 'RESOURCE_ID_DESC' - | 'SECRETS_OBJECT_NAME_ASC' - | 'SECRETS_OBJECT_NAME_DESC' - | 'SLUG_ASC' - | 'SLUG_DESC'; -export type PlatformWebhookEndpointOrderBy = - | 'ACTIVE_ASC' - | 'ACTIVE_DESC' + | 'PRESENT_ASC' + | 'PRESENT_DESC' + | 'REALM_ASC' + | 'REALM_DESC' + | 'REQUIRED_ASC' + | 'REQUIRED_DESC' + | 'REQUIREMENT_KIND_ASC' + | 'REQUIREMENT_KIND_DESC' + | 'RESOURCE_ID_ASC' + | 'RESOURCE_ID_DESC' + | 'SECRETS_OBJECT_NAME_ASC' + | 'SECRETS_OBJECT_NAME_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC'; +export type PlatformWebhookEndpointOrderBy = + | 'ACTIVE_ASC' + | 'ACTIVE_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'FUNCTION_DEFINITION_ID_ASC' + | 'FUNCTION_DEFINITION_ID_DESC' + | 'HOST_ASC' + | 'HOST_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'NATURAL' + | 'PATH_ASC' + | 'PATH_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PROVIDER_ASC' + | 'PROVIDER_DESC' + | 'REPLAY_WINDOW_SECONDS_ASC' + | 'REPLAY_WINDOW_SECONDS_DESC' + | 'SIGNING_SECRET_NAME_ASC' + | 'SIGNING_SECRET_NAME_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +export type PlatformWebhookEventOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ENDPOINT_ID_ASC' + | 'ENDPOINT_ID_DESC' + | 'ERROR_ASC' + | 'ERROR_DESC' + | 'EXTERNAL_EVENT_ID_ASC' + | 'EXTERNAL_EVENT_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'INVOCATION_CREATED_AT_ASC' + | 'INVOCATION_CREATED_AT_DESC' + | 'INVOCATION_ID_ASC' + | 'INVOCATION_ID_DESC' + | 'NATURAL' + | 'PAYLOAD_ASC' + | 'PAYLOAD_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PROVIDER_ASC' + | 'PROVIDER_DESC' + | 'PROVIDER_TIMESTAMP_ASC' + | 'PROVIDER_TIMESTAMP_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type ProposalCommentOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'ATTACHMENTS_ASC' + | 'ATTACHMENTS_DESC' + | 'BODY_ASC' + | 'BODY_DESC' + | 'BODY_TRGM_SIMILARITY_ASC' + | 'BODY_TRGM_SIMILARITY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'EMBEDDING_ASC' + | 'EMBEDDING_DESC' + | 'EMBEDDING_UPDATED_AT_ASC' + | 'EMBEDDING_UPDATED_AT_DESC' + | 'EMBEDDING_VECTOR_DISTANCE_ASC' + | 'EMBEDDING_VECTOR_DISTANCE_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'LINE_ASC' + | 'LINE_DESC' + | 'NATURAL' + | 'OUTDATED_AT_ASC' + | 'OUTDATED_AT_DESC' + | 'PATH_ASC' + | 'PATH_DESC' + | 'PATH_TRGM_SIMILARITY_ASC' + | 'PATH_TRGM_SIMILARITY_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PROPOSAL_ID_ASC' + | 'PROPOSAL_ID_DESC' + | 'RESOLVED_AT_ASC' + | 'RESOLVED_AT_DESC' + | 'SEARCH_ASC' + | 'SEARCH_DESC' + | 'SEARCH_SCORE_ASC' + | 'SEARCH_SCORE_DESC' + | 'SEARCH_TSV_RANK_ASC' + | 'SEARCH_TSV_RANK_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +export type ProposalOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'BODY_ASC' + | 'BODY_DESC' + | 'BODY_TRGM_SIMILARITY_ASC' + | 'BODY_TRGM_SIMILARITY_DESC' + | 'CLOSED_REASON_ASC' + | 'CLOSED_REASON_DESC' + | 'CLOSED_REASON_TRGM_SIMILARITY_ASC' + | 'CLOSED_REASON_TRGM_SIMILARITY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DECIDED_AT_ASC' + | 'DECIDED_AT_DESC' + | 'DUE_AT_ASC' + | 'DUE_AT_DESC' + | 'EMBEDDING_ASC' + | 'EMBEDDING_DESC' + | 'EMBEDDING_UPDATED_AT_ASC' + | 'EMBEDDING_UPDATED_AT_DESC' + | 'EMBEDDING_VECTOR_DISTANCE_ASC' + | 'EMBEDDING_VECTOR_DISTANCE_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'KIND_ASC' + | 'KIND_DESC' + | 'KIND_TRGM_SIMILARITY_ASC' + | 'KIND_TRGM_SIMILARITY_DESC' + | 'LABELS_ASC' + | 'LABELS_DESC' + | 'MERGED_AT_ASC' + | 'MERGED_AT_DESC' + | 'MERGE_COMMIT_ASC' + | 'MERGE_COMMIT_DESC' + | 'MERGE_COMMIT_TRGM_SIMILARITY_ASC' + | 'MERGE_COMMIT_TRGM_SIMILARITY_DESC' + | 'MERGE_METHOD_ASC' + | 'MERGE_METHOD_DESC' + | 'MERGE_METHOD_TRGM_SIMILARITY_ASC' + | 'MERGE_METHOD_TRGM_SIMILARITY_DESC' + | 'MERGE_REQUESTED_AT_ASC' + | 'MERGE_REQUESTED_AT_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'NATURAL' + | 'PARENT_ID_ASC' + | 'PARENT_ID_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PRIORITY_ASC' + | 'PRIORITY_DESC' + | 'REPOSITORY_ID_ASC' + | 'REPOSITORY_ID_DESC' + | 'RESOLUTION_ASC' + | 'RESOLUTION_DESC' + | 'RESOLUTION_TRGM_SIMILARITY_ASC' + | 'RESOLUTION_TRGM_SIMILARITY_DESC' + | 'SEARCH_ASC' + | 'SEARCH_DESC' + | 'SEARCH_SCORE_ASC' + | 'SEARCH_SCORE_DESC' + | 'SEARCH_TSV_RANK_ASC' + | 'SEARCH_TSV_RANK_DESC' + | 'SOURCE_REF_ASC' + | 'SOURCE_REF_DESC' + | 'SOURCE_REF_TRGM_SIMILARITY_ASC' + | 'SOURCE_REF_TRGM_SIMILARITY_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'STATUS_TRGM_SIMILARITY_ASC' + | 'STATUS_TRGM_SIMILARITY_DESC' + | 'TARGET_REF_ASC' + | 'TARGET_REF_DESC' + | 'TARGET_REF_TRGM_SIMILARITY_ASC' + | 'TARGET_REF_TRGM_SIMILARITY_DESC' + | 'TITLE_ASC' + | 'TITLE_DESC' + | 'TITLE_TRGM_SIMILARITY_ASC' + | 'TITLE_TRGM_SIMILARITY_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +export type ProposalFileViewOrderBy = + | 'BLOB_SHA_ASC' + | 'BLOB_SHA_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' + | 'PATH_ASC' + | 'PATH_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PROPOSAL_ID_ASC' + | 'PROPOSAL_ID_DESC' + | 'REVIEWER_ID_ASC' + | 'REVIEWER_ID_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC' + | 'VIEWED_AT_ASC' + | 'VIEWED_AT_DESC'; +export type ProposalReactionOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'COMMENT_ID_ASC' + | 'COMMENT_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'EMOJI_ASC' + | 'EMOJI_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PROPOSAL_ID_ASC' + | 'PROPOSAL_ID_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +export type ProposalReviewOrderBy = + | 'BODY_ASC' + | 'BODY_DESC' + | 'BODY_TRGM_SIMILARITY_ASC' + | 'BODY_TRGM_SIMILARITY_DESC' + | 'COMMIT_SHA_ASC' + | 'COMMIT_SHA_DESC' + | 'COMMIT_SHA_TRGM_SIMILARITY_ASC' + | 'COMMIT_SHA_TRGM_SIMILARITY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PROPOSAL_ID_ASC' + | 'PROPOSAL_ID_DESC' + | 'REVIEWER_ID_ASC' + | 'REVIEWER_ID_DESC' + | 'SEARCH_ASC' + | 'SEARCH_DESC' + | 'SEARCH_SCORE_ASC' + | 'SEARCH_SCORE_DESC' + | 'SEARCH_TSV_RANK_ASC' + | 'SEARCH_TSV_RANK_DESC' + | 'SUBMITTED_AT_ASC' + | 'SUBMITTED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC' + | 'VERDICT_ASC' + | 'VERDICT_DESC' + | 'VERDICT_TRGM_SIMILARITY_ASC' + | 'VERDICT_TRGM_SIMILARITY_DESC'; +export type ProposalsChunkOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'BODY_ASC' + | 'BODY_DESC' + | 'CHUNK_INDEX_ASC' + | 'CHUNK_INDEX_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'EMBEDDING_ASC' + | 'EMBEDDING_DESC' + | 'EMBEDDING_VECTOR_DISTANCE_ASC' + | 'EMBEDDING_VECTOR_DISTANCE_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PROPOSALS_ID_ASC' + | 'PROPOSALS_ID_DESC' + | 'SEARCH_SCORE_ASC' + | 'SEARCH_SCORE_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type RegistryBindingOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'NATURAL' + | 'OBSERVED_CREDENTIAL_VERSION_ASC' + | 'OBSERVED_CREDENTIAL_VERSION_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PULL_SECRET_NAME_ASC' + | 'PULL_SECRET_NAME_DESC' + | 'REALM_ASC' + | 'REALM_DESC' + | 'REGISTRY_HOST_ASC' + | 'REGISTRY_HOST_DESC' + | 'REGISTRY_ID_ASC' + | 'REGISTRY_ID_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +export type RegistryOrderBy = + | 'AUTH_MODE_ASC' + | 'AUTH_MODE_DESC' + | 'BASE_PATH_ASC' + | 'BASE_PATH_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'CREDENTIAL_SECRET_NAME_ASC' + | 'CREDENTIAL_SECRET_NAME_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'HOST_ASC' + | 'HOST_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'INSTALLATION_ID_ASC' + | 'INSTALLATION_ID_DESC' + | 'IS_PUBLISHED_ASC' + | 'IS_PUBLISHED_DESC' + | 'KIND_ASC' + | 'KIND_DESC' + | 'LABELS_ASC' + | 'LABELS_DESC' + | 'LAST_ERROR_ASC' + | 'LAST_ERROR_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'PLATFORM_ONLY_ASC' + | 'PLATFORM_ONLY_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ROLE_ASC' + | 'ROLE_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +export type RegistryGrantOrderBy = + | 'ACTIONS_ASC' + | 'ACTIONS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'EXPIRES_AT_ASC' + | 'EXPIRES_AT_DESC' + | 'GRANTED_BY_ASC' + | 'GRANTED_BY_DESC' + | 'GRANTEE_KEY_ASC' + | 'GRANTEE_KEY_DESC' + | 'GRANTEE_SCOPE_ASC' + | 'GRANTEE_SCOPE_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'REGISTRY_ID_ASC' + | 'REGISTRY_ID_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +export type RepositoryOrderBy = + | 'CLONE_URL_ASC' + | 'CLONE_URL_DESC' + | 'CLONE_URL_TRGM_SIMILARITY_ASC' + | 'CLONE_URL_TRGM_SIMILARITY_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'CREATED_BY_ASC' | 'CREATED_BY_DESC' - | 'FUNCTION_DEFINITION_ID_ASC' - | 'FUNCTION_DEFINITION_ID_DESC' - | 'HOST_ASC' - | 'HOST_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DEFAULT_BRANCH_ASC' + | 'DEFAULT_BRANCH_DESC' + | 'DEFAULT_BRANCH_TRGM_SIMILARITY_ASC' + | 'DEFAULT_BRANCH_TRGM_SIMILARITY_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'DESCRIPTION_TRGM_SIMILARITY_ASC' + | 'DESCRIPTION_TRGM_SIMILARITY_DESC' + | 'EMBEDDING_ASC' + | 'EMBEDDING_DESC' + | 'EMBEDDING_UPDATED_AT_ASC' + | 'EMBEDDING_UPDATED_AT_DESC' + | 'EMBEDDING_VECTOR_DISTANCE_ASC' + | 'EMBEDDING_VECTOR_DISTANCE_DESC' + | 'EXTERNAL_ID_ASC' + | 'EXTERNAL_ID_DESC' + | 'EXTERNAL_ID_TRGM_SIMILARITY_ASC' + | 'EXTERNAL_ID_TRGM_SIMILARITY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'NAMESPACE_ID_ASC' - | 'NAMESPACE_ID_DESC' + | 'IS_ARCHIVED_ASC' + | 'IS_ARCHIVED_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NAME_TRGM_SIMILARITY_ASC' + | 'NAME_TRGM_SIMILARITY_DESC' | 'NATURAL' - | 'PATH_ASC' - | 'PATH_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'PROVIDER_ASC' | 'PROVIDER_DESC' - | 'REPLAY_WINDOW_SECONDS_ASC' - | 'REPLAY_WINDOW_SECONDS_DESC' - | 'SIGNING_SECRET_NAME_ASC' - | 'SIGNING_SECRET_NAME_DESC' + | 'PROVIDER_TRGM_SIMILARITY_ASC' + | 'PROVIDER_TRGM_SIMILARITY_DESC' + | 'SEARCH_ASC' + | 'SEARCH_DESC' + | 'SEARCH_SCORE_ASC' + | 'SEARCH_SCORE_DESC' + | 'SEARCH_TSV_RANK_ASC' + | 'SEARCH_TSV_RANK_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'SLUG_TRGM_SIMILARITY_ASC' + | 'SLUG_TRGM_SIMILARITY_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC'; -export type PlatformWebhookEventOrderBy = + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC' + | 'VISIBILITY_ASC' + | 'VISIBILITY_DESC' + | 'VISIBILITY_TRGM_SIMILARITY_ASC' + | 'VISIBILITY_TRGM_SIMILARITY_DESC'; +export type RepositoryEventOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'COMMIT_SHA_ASC' + | 'COMMIT_SHA_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' - | 'ENDPOINT_ID_ASC' - | 'ENDPOINT_ID_DESC' - | 'ERROR_ASC' - | 'ERROR_DESC' - | 'EXTERNAL_EVENT_ID_ASC' - | 'EXTERNAL_EVENT_ID_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DELIVERY_ID_ASC' + | 'DELIVERY_ID_DESC' + | 'EVENT_TYPE_ASC' + | 'EVENT_TYPE_DESC' | 'ID_ASC' | 'ID_DESC' - | 'INVOCATION_CREATED_AT_ASC' - | 'INVOCATION_CREATED_AT_DESC' - | 'INVOCATION_ID_ASC' - | 'INVOCATION_ID_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' | 'NATURAL' | 'PAYLOAD_ASC' | 'PAYLOAD_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'PROVIDER_ASC' - | 'PROVIDER_DESC' - | 'PROVIDER_TIMESTAMP_ASC' - | 'PROVIDER_TIMESTAMP_DESC' - | 'STATUS_ASC' - | 'STATUS_DESC' + | 'REF_ASC' + | 'REF_DESC' + | 'REPOSITORY_ID_ASC' + | 'REPOSITORY_ID_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +export type RepositoryRequiredCheckOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'REPOSITORY_ID_ASC' + | 'REPOSITORY_ID_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'WORKFLOW_ID_ASC' + | 'WORKFLOW_ID_DESC'; +export type RepositoryWorkflowOrderBy = + | 'CANCEL_IN_PROGRESS_ASC' + | 'CANCEL_IN_PROGRESS_DESC' + | 'CONCURRENCY_KEY_ASC' + | 'CONCURRENCY_KEY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'EVENT_TYPE_ASC' + | 'EVENT_TYPE_DESC' + | 'GRAPH_ID_ASC' + | 'GRAPH_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'INPUTS_ASC' + | 'INPUTS_DESC' + | 'IS_ENABLED_ASC' + | 'IS_ENABLED_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'REF_PATTERN_ASC' + | 'REF_PATTERN_DESC' + | 'REPOSITORY_ID_ASC' + | 'REPOSITORY_ID_DESC' + | 'REQUIRED_SECRETS_ASC' + | 'REQUIRED_SECRETS_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; export type ResourceOrderBy = | 'ANNOTATIONS_ASC' | 'ANNOTATIONS_DESC' @@ -7591,12 +15000,16 @@ export type ResourceOrderBy = | 'CREATED_AT_DESC' | 'CREATED_BY_ASC' | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'ERROR_COUNT_ASC' | 'ERROR_COUNT_DESC' | 'ID_ASC' | 'ID_DESC' + | 'IMAGE_REF_ASC' + | 'IMAGE_REF_DESC' | 'INSTALLATION_ID_ASC' | 'INSTALLATION_ID_DESC' | 'INTEGRATIONS_ASC' @@ -7642,10 +15055,14 @@ export type ResourceOrderBy = | 'STORAGE_CLASS_DESC' | 'STORAGE_SIZE_BYTES_ASC' | 'STORAGE_SIZE_BYTES_DESC' + | 'STORAGE_TOTAL_BYTES_ASC' + | 'STORAGE_TOTAL_BYTES_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC'; + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; export type ResourceDeclaredCapacityOrderBy = | 'CPU_LIMIT_MILLICORES_ASC' | 'CPU_LIMIT_MILLICORES_DESC' @@ -7673,7 +15090,9 @@ export type ResourceDeclaredCapacityOrderBy = | 'SOURCE_ID_ASC' | 'SOURCE_ID_DESC' | 'STORAGE_SIZE_BYTES_ASC' - | 'STORAGE_SIZE_BYTES_DESC'; + | 'STORAGE_SIZE_BYTES_DESC' + | 'STORAGE_TOTAL_BYTES_ASC' + | 'STORAGE_TOTAL_BYTES_DESC'; export type ResourceDefinitionOrderBy = | 'ANNOTATIONS_ASC' | 'ANNOTATIONS_DESC' @@ -7681,6 +15100,8 @@ export type ResourceDefinitionOrderBy = | 'CREATED_AT_DESC' | 'CREATED_BY_ASC' | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'DEFAULT_SPEC_ASC' @@ -7715,7 +15136,9 @@ export type ResourceDefinitionOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC'; + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; export type ResourceEventOrderBy = | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' @@ -7743,6 +15166,8 @@ export type ResourceInstallationOrderBy = | 'CREATED_AT_DESC' | 'CREATED_BY_ASC' | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'ID_ASC' @@ -7767,7 +15192,47 @@ export type ResourceInstallationOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC'; + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +export type ResourceObservedStorageOrderBy = + | 'CAPACITY_ASC' + | 'CAPACITY_BYTES_ASC' + | 'CAPACITY_BYTES_DESC' + | 'CAPACITY_DESC' + | 'CLAIM_NAME_ASC' + | 'CLAIM_NAME_DESC' + | 'DECLARED_STORAGE_CLASS_ASC' + | 'DECLARED_STORAGE_CLASS_DESC' + | 'DECLARED_STORAGE_SIZE_BYTES_ASC' + | 'DECLARED_STORAGE_SIZE_BYTES_DESC' + | 'DECLARED_STORAGE_TOTAL_BYTES_ASC' + | 'DECLARED_STORAGE_TOTAL_BYTES_DESC' + | 'INSTALLATION_ID_ASC' + | 'INSTALLATION_ID_DESC' + | 'IS_BOUND_ASC' + | 'IS_BOUND_DESC' + | 'KIND_ASC' + | 'KIND_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'NATURAL' + | 'PHASE_ASC' + | 'PHASE_DESC' + | 'REQUESTED_ASC' + | 'REQUESTED_BYTES_ASC' + | 'REQUESTED_BYTES_DESC' + | 'REQUESTED_DESC' + | 'RESOURCE_ID_ASC' + | 'RESOURCE_ID_DESC' + | 'RESOURCE_STATUS_ASC' + | 'RESOURCE_STATUS_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'STORAGE_CLASS_ASC' + | 'STORAGE_CLASS_DESC' + | 'STORAGE_NAME_ASC' + | 'STORAGE_NAME_DESC'; export type ResourceStatusCheckOrderBy = | 'COMPLETED_AT_ASC' | 'COMPLETED_AT_DESC' @@ -7887,12 +15352,16 @@ export type ResourcesHealthOrderBy = | 'CREATED_AT_DESC' | 'CREATED_BY_ASC' | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'ERROR_COUNT_ASC' | 'ERROR_COUNT_DESC' | 'ID_ASC' | 'ID_DESC' + | 'IMAGE_REF_ASC' + | 'IMAGE_REF_DESC' | 'INSTALLATION_ID_ASC' | 'INSTALLATION_ID_DESC' | 'INTEGRATIONS_ASC' @@ -7938,10 +15407,14 @@ export type ResourcesHealthOrderBy = | 'STORAGE_CLASS_DESC' | 'STORAGE_SIZE_BYTES_ASC' | 'STORAGE_SIZE_BYTES_DESC' + | 'STORAGE_TOTAL_BYTES_ASC' + | 'STORAGE_TOTAL_BYTES_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC'; + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; export type ResourcesRequirementsStateOrderBy = | 'CONFIG_HASH_ASC' | 'CONFIG_HASH_DESC' @@ -7989,6 +15462,8 @@ export type WebhookEndpointOrderBy = | 'CREATED_AT_DESC' | 'CREATED_BY_ASC' | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'FUNCTION_DEFINITION_ID_ASC' @@ -8013,7 +15488,9 @@ export type WebhookEndpointOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC'; + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; export type WebhookEventOrderBy = | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' @@ -8045,8848 +15522,17441 @@ export type WebhookEventOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; // ============ CRUD Input Types ============ +export interface CreateBuildInput { + clientMutationId?: string; + build: { + actorId?: string; + attempt?: number; + commitSha?: string; + conclusion?: string; + createdByPrincipal?: string; + databaseId: string; + eventId?: string; + finishedAt?: string; + imageRef?: string; + jobId?: string; + logs?: ConstructiveInternalTypeUpload; + matrixKey?: string; + metadata?: Record; + proposalId?: string; + ref?: string; + repositoryId: string; + startedAt?: string; + status?: string; + updatedByPrincipal?: string; + workflowId?: string; + }; +} +export interface BuildPatch { + actorId?: string | null; + attempt?: number | null; + commitSha?: string | null; + conclusion?: string | null; + createdByPrincipal?: string | null; + databaseId?: string | null; + eventId?: string | null; + finishedAt?: string | null; + imageRef?: string | null; + jobId?: string | null; + logs?: ConstructiveInternalTypeUpload | null; + logsUpload?: File | null; + matrixKey?: string | null; + metadata?: Record | null; + proposalId?: string | null; + ref?: string | null; + repositoryId?: string | null; + startedAt?: string | null; + status?: string | null; + updatedByPrincipal?: string | null; + workflowId?: string | null; +} +export interface UpdateBuildInput { + clientMutationId?: string; + id: string; + buildPatch: BuildPatch; +} +export interface DeleteBuildInput { + clientMutationId?: string; + id: string; +} +export interface CreateBuildStepInput { + clientMutationId?: string; + buildStep: { + buildId: string; + createdByPrincipal?: string; + databaseId: string; + exitCode?: number; + finishedAt?: string; + kind?: string; + logBytes?: string; + logOffset?: string; + name: string; + parentSeq?: number; + recordedAt?: string; + seq: number; + startedAt?: string; + status?: string; + summary?: Record; + }; +} +export interface BuildStepPatch { + buildId?: string | null; + createdByPrincipal?: string | null; + databaseId?: string | null; + exitCode?: number | null; + finishedAt?: string | null; + kind?: string | null; + logBytes?: string | null; + logOffset?: string | null; + name?: string | null; + parentSeq?: number | null; + recordedAt?: string | null; + seq?: number | null; + startedAt?: string | null; + status?: string | null; + summary?: Record | null; +} +export interface UpdateBuildStepInput { + clientMutationId?: string; + id: string; + buildStepPatch: BuildStepPatch; +} +export interface DeleteBuildStepInput { + clientMutationId?: string; + id: string; +} +export interface CreateBuilderBindingInput { + clientMutationId?: string; + builderBinding: { + createdBy?: string; + createdByPrincipal?: string; + databaseId: string; + installationId: string; + lastError?: string; + metadata?: Record; + namespaceId: string; + observedHost?: string; + realm?: string; + status?: string; + updatedBy?: string; + updatedByPrincipal?: string; + }; +} +export interface BuilderBindingPatch { + createdBy?: string | null; + createdByPrincipal?: string | null; + databaseId?: string | null; + installationId?: string | null; + lastError?: string | null; + metadata?: Record | null; + namespaceId?: string | null; + observedHost?: string | null; + realm?: string | null; + status?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdateBuilderBindingInput { + clientMutationId?: string; + id: string; + builderBindingPatch: BuilderBindingPatch; +} +export interface DeleteBuilderBindingInput { + clientMutationId?: string; + id: string; +} export interface CreateContentPresetInput { clientMutationId?: string; - contentPreset: { - active?: boolean; - commitId?: string; - definition: Record; + 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 CreateDatabaseFunctionGraphInput { + clientMutationId?: string; + databaseFunctionGraph: { + context?: string; + createdBy?: string; + databaseId: string; + definitionsCommitId: string; + description?: string; + isValid?: boolean; + name?: string; + storeId: string; + validationErrors?: Record; + }; +} +export interface DatabaseFunctionGraphPatch { + context?: string | null; + createdBy?: string | null; + databaseId?: string | null; + definitionsCommitId?: string | null; + description?: string | null; + isValid?: boolean | null; + name?: string | null; + storeId?: string | null; + validationErrors?: Record | null; +} +export interface UpdateDatabaseFunctionGraphInput { + clientMutationId?: string; + id: string; + databaseFunctionGraphPatch: DatabaseFunctionGraphPatch; +} +export interface DeleteDatabaseFunctionGraphInput { + clientMutationId?: string; + id: string; +} +export interface CreateDatabaseFunctionGraphExecutionInput { + clientMutationId?: string; + databaseFunctionGraphExecution: { + actorId?: string; + completedAt?: string; + currentWave?: number; + databaseId: string; + definitionsCommitId?: string; + entityId?: string; + entityType?: string; + errorCode?: string; + errorMessage?: string; + executionPlan?: Record; + graphId: string; + inputPayload?: Record; + invocationCreatedAt?: string; + invocationId?: string; + lastProgressAt?: string; + maxPendingJobs?: number; + maxTicks?: number; + nodeOutputs?: Record; + organizationId?: string; + outputNames?: string[]; + outputNode?: string; + outputPayload?: Record; + outputPort?: string; + parentExecutionId?: string; + parentInvocationId?: string; + parentNodeName?: string; + principalId?: string; + startedAt?: string; + status?: string; + tickCount?: number; + timeoutAt?: string; + }; +} +export interface DatabaseFunctionGraphExecutionPatch { + actorId?: string | null; + completedAt?: string | null; + currentWave?: number | null; + databaseId?: string | null; + definitionsCommitId?: string | null; + entityId?: string | null; + entityType?: string | null; + errorCode?: string | null; + errorMessage?: string | null; + executionPlan?: Record | null; + graphId?: string | null; + inputPayload?: Record | null; + invocationCreatedAt?: string | null; + invocationId?: string | null; + lastProgressAt?: string | null; + maxPendingJobs?: number | null; + maxTicks?: number | null; + nodeOutputs?: Record | null; + organizationId?: string | null; + outputNames?: string[] | null; + outputNode?: string | null; + outputPayload?: Record | null; + outputPort?: string | null; + parentExecutionId?: string | null; + parentInvocationId?: string | null; + parentNodeName?: string | null; + principalId?: string | null; + startedAt?: string | null; + status?: string | null; + tickCount?: number | null; + timeoutAt?: string | null; +} +export interface UpdateDatabaseFunctionGraphExecutionInput { + clientMutationId?: string; + id: string; + databaseFunctionGraphExecutionPatch: DatabaseFunctionGraphExecutionPatch; +} +export interface DeleteDatabaseFunctionGraphExecutionInput { + clientMutationId?: string; + id: string; +} +export interface CreateDatabaseFunctionGraphExecutionNodeStateInput { + clientMutationId?: string; + databaseFunctionGraphExecutionNodeState: { + callbackInputs?: Record; + callbackMeta?: Record; + callbackTokenHash?: string; + completedAt?: string; + databaseId: string; + errorCode?: string; + errorMessage?: string; + executionId: string; + expiryDefaultOutput?: Record; + expiryEscalatedAt?: string; + expiryPolicy?: string; + nodeName: string; + nodePath?: string[]; + outputId?: string; + startedAt?: string; + status?: string; + waitingDeadlineAt?: string; + waitingOn?: string; + waitingSince?: string; + }; +} +export interface DatabaseFunctionGraphExecutionNodeStatePatch { + callbackInputs?: Record | null; + callbackMeta?: Record | null; + callbackTokenHash?: string | null; + completedAt?: string | null; + databaseId?: string | null; + errorCode?: string | null; + errorMessage?: string | null; + executionId?: string | null; + expiryDefaultOutput?: Record | null; + expiryEscalatedAt?: string | null; + expiryPolicy?: string | null; + nodeName?: string | null; + nodePath?: string[] | null; + outputId?: string | null; + startedAt?: string | null; + status?: string | null; + waitingDeadlineAt?: string | null; + waitingOn?: string | null; + waitingSince?: string | null; +} +export interface UpdateDatabaseFunctionGraphExecutionNodeStateInput { + clientMutationId?: string; + id: string; + databaseFunctionGraphExecutionNodeStatePatch: DatabaseFunctionGraphExecutionNodeStatePatch; +} +export interface DeleteDatabaseFunctionGraphExecutionNodeStateInput { + clientMutationId?: string; + id: string; +} +export interface CreateDatabaseFunctionGraphExecutionOutputInput { + clientMutationId?: string; + databaseFunctionGraphExecutionOutput: { + data: Record; + databaseId: string; + hash: Base64EncodedBinary; + }; +} +export interface DatabaseFunctionGraphExecutionOutputPatch { + data?: Record | null; + databaseId?: string | null; + hash?: Base64EncodedBinary | null; +} +export interface UpdateDatabaseFunctionGraphExecutionOutputInput { + clientMutationId?: string; + id: string; + databaseFunctionGraphExecutionOutputPatch: DatabaseFunctionGraphExecutionOutputPatch; +} +export interface DeleteDatabaseFunctionGraphExecutionOutputInput { + clientMutationId?: string; + id: string; +} +export interface CreateDatabaseGraphCommitInput { + clientMutationId?: string; + databaseGraphCommit: { + authorId?: string; + committerId?: string; + databaseId: string; + date?: string; + message?: string; + parentIds?: string[]; + storeId: string; + treeId?: string; + }; +} +export interface DatabaseGraphCommitPatch { + authorId?: string | null; + committerId?: string | null; + databaseId?: string | null; + date?: string | null; + message?: string | null; + parentIds?: string[] | null; + storeId?: string | null; + treeId?: string | null; +} +export interface UpdateDatabaseGraphCommitInput { + clientMutationId?: string; + id: string; + databaseGraphCommitPatch: DatabaseGraphCommitPatch; +} +export interface DeleteDatabaseGraphCommitInput { + clientMutationId?: string; + id: string; +} +export interface CreateDatabaseGraphGetAllTreeNodesRecordInput { + clientMutationId?: string; + databaseGraphGetAllTreeNodesRecord: { + data?: Record; + path?: string[]; + }; +} +export interface DatabaseGraphGetAllTreeNodesRecordPatch { + data?: Record | null; + path?: string[] | null; +} +export interface UpdateDatabaseGraphGetAllTreeNodesRecordInput { + clientMutationId?: string; + id: string; + databaseGraphGetAllTreeNodesRecordPatch: DatabaseGraphGetAllTreeNodesRecordPatch; +} +export interface DeleteDatabaseGraphGetAllTreeNodesRecordInput { + clientMutationId?: string; + id: string; +} +export interface CreateDatabaseGraphObjectInput { + clientMutationId?: string; + databaseGraphObject: { + data?: Record; + databaseId: string; + kids?: string[]; + ktree?: string[]; + }; +} +export interface DatabaseGraphObjectPatch { + data?: Record | null; + databaseId?: string | null; + kids?: string[] | null; + ktree?: string[] | null; +} +export interface UpdateDatabaseGraphObjectInput { + clientMutationId?: string; + id: string; + databaseGraphObjectPatch: DatabaseGraphObjectPatch; +} +export interface DeleteDatabaseGraphObjectInput { + clientMutationId?: string; + id: string; +} +export interface CreateDatabaseGraphRefInput { + clientMutationId?: string; + databaseGraphRef: { + commitId?: string; + databaseId: string; + name: string; + storeId: string; + }; +} +export interface DatabaseGraphRefPatch { + commitId?: string | null; + databaseId?: string | null; + name?: string | null; + storeId?: string | null; +} +export interface UpdateDatabaseGraphRefInput { + clientMutationId?: string; + id: string; + databaseGraphRefPatch: DatabaseGraphRefPatch; +} +export interface DeleteDatabaseGraphRefInput { + clientMutationId?: string; + id: string; +} +export interface CreateDatabaseGraphStoreInput { + clientMutationId?: string; + databaseGraphStore: { + databaseId: string; + hash?: string; + name: string; + }; +} +export interface DatabaseGraphStorePatch { + databaseId?: string | null; + hash?: string | null; + name?: string | null; +} +export interface UpdateDatabaseGraphStoreInput { + clientMutationId?: string; + id: string; + databaseGraphStorePatch: DatabaseGraphStorePatch; +} +export interface DeleteDatabaseGraphStoreInput { + clientMutationId?: string; + id: string; +} +export interface CreateDbPresetInput { + clientMutationId?: string; + dbPreset: { + active?: boolean; + commitId?: string; + definition: Record; + description?: string; + label?: string; + modulesHash?: string; + slug: string; + storeId?: string; + }; +} +export interface DbPresetPatch { + active?: boolean | null; + commitId?: string | null; + definition?: Record | null; + description?: string | null; + label?: string | null; + modulesHash?: string | null; + slug?: string | null; + storeId?: string | null; +} +export interface UpdateDbPresetInput { + clientMutationId?: string; + id: string; + dbPresetPatch: DbPresetPatch; +} +export interface DeleteDbPresetInput { + clientMutationId?: string; + id: string; +} +export interface CreateFunctionApiBindingInput { + clientMutationId?: string; + functionApiBinding: { + alias?: string; + apiId: string; + config?: Record; + functionDefinitionId: string; + }; +} +export interface FunctionApiBindingPatch { + alias?: string | null; + apiId?: string | null; + config?: Record | null; + functionDefinitionId?: string | null; +} +export interface UpdateFunctionApiBindingInput { + clientMutationId?: string; + id: string; + functionApiBindingPatch: FunctionApiBindingPatch; +} +export interface DeleteFunctionApiBindingInput { + clientMutationId?: string; + id: string; +} +export interface CreateFunctionCapabilityBindingInput { + clientMutationId?: string; + functionCapabilityBinding: { + bucketId?: string; + databaseId: string; + functionId?: string; + graphId?: string; + key?: string; + lifecycle: string; + metadata?: Record; + }; +} +export interface FunctionCapabilityBindingPatch { + bucketId?: string | null; + databaseId?: string | null; + functionId?: string | null; + graphId?: string | null; + key?: string | null; + lifecycle?: string | null; + metadata?: Record | null; +} +export interface UpdateFunctionCapabilityBindingInput { + clientMutationId?: string; + id: string; + functionCapabilityBindingPatch: FunctionCapabilityBindingPatch; +} +export interface DeleteFunctionCapabilityBindingInput { + clientMutationId?: string; + id: string; +} +export interface CreateFunctionDefinitionInput { + clientMutationId?: string; + functionDefinition: { + accessChannels?: string[]; + anonymousCallable?: boolean; + category: string; + concurrency?: number; + createdByPrincipal?: string; + databaseId: string; + description?: string; + fnCategory?: string; + functionColumns?: Record; + graphId?: string; + icon?: string; + image?: string; + inputs?: Record; + integrations?: string[]; + isPublished?: boolean; + maxAttempts?: number; + moduleTable?: string; + name: string; + outputs?: Record; + payloadArgs?: Record; + priority?: number; + props?: Record; + protected?: boolean; + publishedAt?: string; + queueName?: string; + requiredBuckets?: string[]; + requiredCapabilities?: Record; + requiredConfigs?: ResourceRequirementInput[]; + requiredModels?: string[]; + requiredModules?: string[]; + requiredSecrets?: ResourceRequirementInput[]; + resources?: Record; + runtime?: string; + scaleMax?: number; + scaleMin?: number; + targetFunction?: string; + targetSchema?: string; + timeoutSeconds?: number; + updatedByPrincipal?: string; + volatile?: boolean; + }; +} +export interface FunctionDefinitionPatch { + accessChannels?: string[] | null; + anonymousCallable?: boolean | null; + category?: string | null; + concurrency?: number | null; + createdByPrincipal?: string | null; + databaseId?: string | null; + description?: string | null; + fnCategory?: string | null; + functionColumns?: Record | null; + graphId?: string | null; + icon?: string | null; + image?: string | null; + inputs?: Record | null; + integrations?: string[] | null; + isPublished?: boolean | null; + maxAttempts?: number | null; + moduleTable?: string | null; + name?: string | null; + outputs?: Record | null; + payloadArgs?: Record | null; + priority?: number | null; + props?: Record | null; + protected?: boolean | null; + publishedAt?: string | null; + queueName?: string | null; + requiredBuckets?: string[] | null; + requiredCapabilities?: Record | null; + requiredConfigs?: ResourceRequirementInput[] | null; + requiredModels?: string[] | null; + requiredModules?: string[] | null; + requiredSecrets?: ResourceRequirementInput[] | null; + resources?: Record | null; + runtime?: string | null; + scaleMax?: number | null; + scaleMin?: number | null; + targetFunction?: string | null; + targetSchema?: string | null; + timeoutSeconds?: number | null; + updatedByPrincipal?: string | null; + volatile?: boolean | null; +} +export interface UpdateFunctionDefinitionInput { + clientMutationId?: string; + id: string; + functionDefinitionPatch: FunctionDefinitionPatch; +} +export interface DeleteFunctionDefinitionInput { + clientMutationId?: string; + id: string; +} +export interface CreateFunctionDeploymentInput { + clientMutationId?: string; + functionDeployment: { + annotations?: Record; + concurrency?: number; + createdByPrincipal?: string; + databaseId: string; + errorCount?: number; + handlerName?: string; + image: string; + imageVersion?: string; + labels?: Record; + lastError?: string; + lastErrorAt?: string; + namespaceId: string; + realm?: string; + resources?: Record; + revision?: number; + scaleMax?: number; + scaleMin?: number; + serviceName?: string; + serviceUrl?: string; + status?: string; + timeoutSeconds?: number; + updatedByPrincipal?: string; + }; +} +export interface FunctionDeploymentPatch { + annotations?: Record | null; + concurrency?: number | null; + createdByPrincipal?: string | null; + databaseId?: string | null; + errorCount?: number | null; + handlerName?: string | null; + image?: string | null; + imageVersion?: string | null; + labels?: Record | null; + lastError?: string | null; + lastErrorAt?: string | null; + namespaceId?: string | null; + realm?: string | null; + resources?: Record | null; + revision?: number | null; + scaleMax?: number | null; + scaleMin?: number | null; + serviceName?: string | null; + serviceUrl?: string | null; + status?: string | null; + timeoutSeconds?: number | null; + updatedByPrincipal?: string | null; +} +export interface UpdateFunctionDeploymentInput { + clientMutationId?: string; + id: string; + functionDeploymentPatch: FunctionDeploymentPatch; +} +export interface DeleteFunctionDeploymentInput { + clientMutationId?: string; + id: string; +} +export interface CreateFunctionDeploymentEventInput { + clientMutationId?: string; + functionDeploymentEvent: { + actorId?: string; + databaseId: string; + deploymentId: string; + eventType: string; + message?: string; + metadata?: Record; + }; +} +export interface FunctionDeploymentEventPatch { + actorId?: string | null; + databaseId?: string | null; + deploymentId?: string | null; + eventType?: string | null; + message?: string | null; + metadata?: Record | null; +} +export interface UpdateFunctionDeploymentEventInput { + clientMutationId?: string; + id: string; + functionDeploymentEventPatch: FunctionDeploymentEventPatch; +} +export interface DeleteFunctionDeploymentEventInput { + clientMutationId?: string; + id: string; +} +export interface CreateFunctionExecutionLogInput { + clientMutationId?: string; + functionExecutionLog: { + actorId?: string; + databaseId: string; + invocationId?: string; + logLevel?: string; + message: string; + metadata?: Record; + taskIdentifier?: string; + }; +} +export interface FunctionExecutionLogPatch { + actorId?: string | null; + databaseId?: string | null; + invocationId?: string | null; + logLevel?: string | null; + message?: string | null; + metadata?: Record | null; + taskIdentifier?: string | null; +} +export interface UpdateFunctionExecutionLogInput { + clientMutationId?: string; + id: string; + functionExecutionLogPatch: FunctionExecutionLogPatch; +} +export interface DeleteFunctionExecutionLogInput { + clientMutationId?: string; + id: string; +} +export interface CreateFunctionGraphCommitInput { + clientMutationId?: string; + functionGraphCommit: { + authorId?: string; + committerId?: string; + date?: string; + message?: string; + parentIds?: string[]; + scopeId: string; + storeId: string; + treeId?: string; + }; +} +export interface FunctionGraphCommitPatch { + authorId?: string | null; + committerId?: string | null; + date?: string | null; + message?: string | null; + parentIds?: string[] | null; + scopeId?: string | null; + storeId?: string | null; + treeId?: string | null; +} +export interface UpdateFunctionGraphCommitInput { + clientMutationId?: string; + id: string; + functionGraphCommitPatch: FunctionGraphCommitPatch; +} +export interface DeleteFunctionGraphCommitInput { + clientMutationId?: string; + id: string; +} +export interface CreateFunctionGraphInput { + clientMutationId?: string; + functionGraph: { + context?: string; + createdBy?: string; + definitionsCommitId: string; + description?: string; + isValid?: boolean; + name?: string; + scopeId: string; + storeId: string; + validationErrors?: Record; + }; +} +export interface FunctionGraphPatch { + context?: string | null; + createdBy?: string | null; + definitionsCommitId?: string | null; + description?: string | null; + isValid?: boolean | null; + name?: string | null; + scopeId?: string | null; + storeId?: string | null; + validationErrors?: Record | null; +} +export interface UpdateFunctionGraphInput { + clientMutationId?: string; + id: string; + functionGraphPatch: FunctionGraphPatch; +} +export interface DeleteFunctionGraphInput { + clientMutationId?: string; + id: string; +} +export interface CreateFunctionGraphExecutionInput { + clientMutationId?: string; + functionGraphExecution: { + actorId?: string; + completedAt?: string; + currentWave?: number; + definitionsCommitId?: string; + entityId?: string; + entityType?: string; + errorCode?: string; + errorMessage?: string; + executionPlan?: Record; + graphId: string; + inputPayload?: Record; + invocationCreatedAt?: string; + invocationId?: string; + lastProgressAt?: string; + maxPendingJobs?: number; + maxTicks?: number; + nodeOutputs?: Record; + organizationId?: string; + outputNames?: string[]; + outputNode?: string; + outputPayload?: Record; + outputPort?: string; + parentExecutionId?: string; + parentInvocationId?: string; + parentNodeName?: string; + principalId?: string; + scopeId: string; + startedAt?: string; + status?: string; + tickCount?: number; + timeoutAt?: string; + }; +} +export interface FunctionGraphExecutionPatch { + actorId?: string | null; + completedAt?: string | null; + currentWave?: number | null; + definitionsCommitId?: string | null; + entityId?: string | null; + entityType?: string | null; + errorCode?: string | null; + errorMessage?: string | null; + executionPlan?: Record | null; + graphId?: string | null; + inputPayload?: Record | null; + invocationCreatedAt?: string | null; + invocationId?: string | null; + lastProgressAt?: string | null; + maxPendingJobs?: number | null; + maxTicks?: number | null; + nodeOutputs?: Record | null; + organizationId?: string | null; + outputNames?: string[] | null; + outputNode?: string | null; + outputPayload?: Record | null; + outputPort?: string | null; + parentExecutionId?: string | null; + parentInvocationId?: string | null; + parentNodeName?: string | null; + principalId?: string | null; + scopeId?: string | null; + startedAt?: string | null; + status?: string | null; + tickCount?: number | null; + timeoutAt?: string | null; +} +export interface UpdateFunctionGraphExecutionInput { + clientMutationId?: string; + id: string; + functionGraphExecutionPatch: FunctionGraphExecutionPatch; +} +export interface DeleteFunctionGraphExecutionInput { + clientMutationId?: string; + id: string; +} +export interface CreateFunctionGraphExecutionNodeStateInput { + clientMutationId?: string; + functionGraphExecutionNodeState: { + callbackInputs?: Record; + callbackMeta?: Record; + callbackTokenHash?: string; + completedAt?: string; + errorCode?: string; + errorMessage?: string; + executionId: string; + expiryDefaultOutput?: Record; + expiryEscalatedAt?: string; + expiryPolicy?: string; + nodeName: string; + nodePath?: string[]; + outputId?: string; + scopeId: string; + startedAt?: string; + status?: string; + waitingDeadlineAt?: string; + waitingOn?: string; + waitingSince?: string; + }; +} +export interface FunctionGraphExecutionNodeStatePatch { + callbackInputs?: Record | null; + callbackMeta?: Record | null; + callbackTokenHash?: string | null; + completedAt?: string | null; + errorCode?: string | null; + errorMessage?: string | null; + executionId?: string | null; + expiryDefaultOutput?: Record | null; + expiryEscalatedAt?: string | null; + expiryPolicy?: string | null; + nodeName?: string | null; + nodePath?: string[] | null; + outputId?: string | null; + scopeId?: string | null; + startedAt?: string | null; + status?: string | null; + waitingDeadlineAt?: string | null; + waitingOn?: string | null; + waitingSince?: string | null; +} +export interface UpdateFunctionGraphExecutionNodeStateInput { + clientMutationId?: string; + id: string; + functionGraphExecutionNodeStatePatch: FunctionGraphExecutionNodeStatePatch; +} +export interface DeleteFunctionGraphExecutionNodeStateInput { + clientMutationId?: string; + id: string; +} +export interface CreateFunctionGraphExecutionOutputInput { + clientMutationId?: string; + functionGraphExecutionOutput: { + data: Record; + hash: Base64EncodedBinary; + scopeId: string; + }; +} +export interface FunctionGraphExecutionOutputPatch { + data?: Record | null; + hash?: Base64EncodedBinary | null; + scopeId?: string | null; +} +export interface UpdateFunctionGraphExecutionOutputInput { + clientMutationId?: string; + id: string; + functionGraphExecutionOutputPatch: FunctionGraphExecutionOutputPatch; +} +export interface DeleteFunctionGraphExecutionOutputInput { + clientMutationId?: string; + id: string; +} +export interface CreateFunctionGraphObjectInput { + clientMutationId?: string; + functionGraphObject: { + data?: Record; + kids?: string[]; + ktree?: string[]; + scopeId: string; + }; +} +export interface FunctionGraphObjectPatch { + data?: Record | null; + kids?: string[] | null; + ktree?: string[] | null; + scopeId?: string | null; +} +export interface UpdateFunctionGraphObjectInput { + clientMutationId?: string; + id: string; + functionGraphObjectPatch: FunctionGraphObjectPatch; +} +export interface DeleteFunctionGraphObjectInput { + clientMutationId?: string; + id: string; +} +export interface CreateFunctionGraphRefInput { + clientMutationId?: string; + functionGraphRef: { + commitId?: string; + name: string; + scopeId: string; + storeId: string; + }; +} +export interface FunctionGraphRefPatch { + commitId?: string | null; + name?: string | null; + scopeId?: string | null; + storeId?: string | null; +} +export interface UpdateFunctionGraphRefInput { + clientMutationId?: string; + id: string; + functionGraphRefPatch: FunctionGraphRefPatch; +} +export interface DeleteFunctionGraphRefInput { + clientMutationId?: string; + id: string; +} +export interface CreateFunctionGraphStoreInput { + clientMutationId?: string; + functionGraphStore: { + hash?: string; + name: string; + scopeId: string; + }; +} +export interface FunctionGraphStorePatch { + hash?: string | null; + name?: string | null; + scopeId?: string | null; +} +export interface UpdateFunctionGraphStoreInput { + clientMutationId?: string; + id: string; + functionGraphStorePatch: FunctionGraphStorePatch; +} +export interface DeleteFunctionGraphStoreInput { + clientMutationId?: string; + id: string; +} +export interface CreateFunctionInvocationAttemptInput { + clientMutationId?: string; + functionInvocationAttempt: { + actorId?: string; + attempt: number; + databaseId: string; + durationMs?: number; + error?: string; + errorDetail?: Record; + invocationCreatedAt: string; + invocationId: string; + startedAt?: string; + success: boolean; + taskIdentifier: string; + }; +} +export interface FunctionInvocationAttemptPatch { + actorId?: string | null; + attempt?: number | null; + databaseId?: string | null; + durationMs?: number | null; + error?: string | null; + errorDetail?: Record | null; + invocationCreatedAt?: string | null; + invocationId?: string | null; + startedAt?: string | null; + success?: boolean | null; + taskIdentifier?: string | null; +} +export interface UpdateFunctionInvocationAttemptInput { + clientMutationId?: string; + id: string; + functionInvocationAttemptPatch: FunctionInvocationAttemptPatch; +} +export interface DeleteFunctionInvocationAttemptInput { + clientMutationId?: string; + id: string; +} +export interface CreateFunctionInvocationInput { + clientMutationId?: string; + functionInvocation: { + actorId?: string; + apiBindingId?: string; + channel: string; + completedAt?: string; + createdByPrincipal?: string; + databaseId: string; + definitionScope?: string; + durationMs?: number; + entityId?: string; + entityType?: string; + error?: string; + functionDefinitionId?: string; + graphExecutionId?: string; + jobId?: string; + organizationId?: string; + parentInvocationId?: string; + payload?: Record; + principalId?: string; + provenance?: Record; + result?: Record; + startedAt?: string; + status?: string; + taskIdentifier: string; + }; +} +export interface FunctionInvocationPatch { + actorId?: string | null; + apiBindingId?: string | null; + channel?: string | null; + completedAt?: string | null; + createdByPrincipal?: string | null; + databaseId?: string | null; + definitionScope?: string | null; + durationMs?: number | null; + entityId?: string | null; + entityType?: string | null; + error?: string | null; + functionDefinitionId?: string | null; + graphExecutionId?: string | null; + jobId?: string | null; + organizationId?: string | null; + parentInvocationId?: string | null; + payload?: Record | null; + principalId?: string | null; + provenance?: Record | null; + result?: Record | null; + startedAt?: string | null; + status?: string | null; + taskIdentifier?: string | null; +} +export interface UpdateFunctionInvocationInput { + clientMutationId?: string; + id: string; + functionInvocationPatch: FunctionInvocationPatch; +} +export interface DeleteFunctionInvocationInput { + clientMutationId?: string; + id: string; +} +export interface CreateGetAllTreeNodesRecordInput { + clientMutationId?: string; + getAllTreeNodesRecord: { + data?: Record; + path?: string[]; + }; +} +export interface GetAllTreeNodesRecordPatch { + data?: Record | null; + path?: string[] | null; +} +export interface UpdateGetAllTreeNodesRecordInput { + clientMutationId?: string; + id: string; + getAllTreeNodesRecordPatch: GetAllTreeNodesRecordPatch; +} +export interface DeleteGetAllTreeNodesRecordInput { + clientMutationId?: string; + id: string; +} +export interface CreateImageInput { + clientMutationId?: string; + image: { + createdByPrincipal?: string; + databaseId: string; + description?: string; + digest?: string; + expiresAt?: string; + isPublished?: boolean; + labels?: Record; + metadata?: Record; + name: string; + ownerId?: string; + platformOnly?: boolean; + registryHost?: string; + repository: string; + runtime?: string; + tag?: string; + updatedByPrincipal?: string; + }; +} +export interface ImagePatch { + createdByPrincipal?: string | null; + databaseId?: string | null; + description?: string | null; + digest?: string | null; + expiresAt?: string | null; + isPublished?: boolean | null; + labels?: Record | null; + metadata?: Record | null; + name?: string | null; + ownerId?: string | null; + platformOnly?: boolean | null; + registryHost?: string | null; + repository?: string | null; + runtime?: string | null; + tag?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdateImageInput { + clientMutationId?: string; + id: string; + imagePatch: ImagePatch; +} +export interface DeleteImageInput { + clientMutationId?: string; + id: string; +} +export interface CreateImageGrantInput { + clientMutationId?: string; + imageGrant: { + actions?: string[]; + createdByPrincipal?: string; + databaseId: string; + expiresAt?: string; + grantedBy?: string; + granteeKey: string; + granteeScope: string; + imageId: string; + updatedByPrincipal?: string; + }; +} +export interface ImageGrantPatch { + actions?: string[] | null; + createdByPrincipal?: string | null; + databaseId?: string | null; + expiresAt?: string | null; + grantedBy?: string | null; + granteeKey?: string | null; + granteeScope?: string | null; + imageId?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdateImageGrantInput { + clientMutationId?: string; + id: string; + imageGrantPatch: ImageGrantPatch; +} +export interface DeleteImageGrantInput { + clientMutationId?: string; + id: string; +} +export interface CreateInfraCommitInput { + clientMutationId?: string; + infraCommit: { + authorId?: string; + committerId?: string; + databaseId: string; + date?: string; + message?: string; + parentIds?: string[]; + storeId: string; + treeId?: string; + }; +} +export interface InfraCommitPatch { + authorId?: string | null; + committerId?: string | null; + databaseId?: string | null; + date?: string | null; + message?: string | null; + parentIds?: string[] | null; + storeId?: string | null; + treeId?: string | null; +} +export interface UpdateInfraCommitInput { + clientMutationId?: string; + id: string; + infraCommitPatch: InfraCommitPatch; +} +export interface DeleteInfraCommitInput { + clientMutationId?: string; + id: string; +} +export interface CreateInfraGetAllTreeNodesRecordInput { + clientMutationId?: string; + infraGetAllTreeNodesRecord: { + data?: Record; + path?: string[]; + }; +} +export interface InfraGetAllTreeNodesRecordPatch { + data?: Record | null; + path?: string[] | null; +} +export interface UpdateInfraGetAllTreeNodesRecordInput { + clientMutationId?: string; + id: string; + infraGetAllTreeNodesRecordPatch: InfraGetAllTreeNodesRecordPatch; +} +export interface DeleteInfraGetAllTreeNodesRecordInput { + clientMutationId?: string; + id: string; +} +export interface CreateInfraObjectInput { + clientMutationId?: string; + infraObject: { + data?: Record; + databaseId: string; + kids?: string[]; + ktree?: string[]; + }; +} +export interface InfraObjectPatch { + data?: Record | null; + databaseId?: string | null; + kids?: string[] | null; + ktree?: string[] | null; +} +export interface UpdateInfraObjectInput { + clientMutationId?: string; + id: string; + infraObjectPatch: InfraObjectPatch; +} +export interface DeleteInfraObjectInput { + clientMutationId?: string; + id: string; +} +export interface CreateInfraRefInput { + clientMutationId?: string; + infraRef: { + commitId?: string; + databaseId: string; + name: string; + storeId: string; + }; +} +export interface InfraRefPatch { + commitId?: string | null; + databaseId?: string | null; + name?: string | null; + storeId?: string | null; +} +export interface UpdateInfraRefInput { + clientMutationId?: string; + id: string; + infraRefPatch: InfraRefPatch; +} +export interface DeleteInfraRefInput { + clientMutationId?: string; + id: string; +} +export interface CreateInfraStoreInput { + clientMutationId?: string; + infraStore: { + databaseId: string; + hash?: string; + name: string; + }; +} +export interface InfraStorePatch { + databaseId?: string | null; + hash?: string | null; + name?: string | null; +} +export interface UpdateInfraStoreInput { + clientMutationId?: string; + id: string; + infraStorePatch: InfraStorePatch; +} +export interface DeleteInfraStoreInput { + clientMutationId?: string; + id: string; +} +export interface CreateIntegrationProviderInput { + clientMutationId?: string; + integrationProvider: { + brand?: Record; + category?: string; + description?: string; + icon?: string; + logo?: ConstructiveInternalTypeImage; + name: string; + requiredConfigs?: ResourceRequirementInput[]; + requiredSecrets?: ResourceRequirementInput[]; + slug: string; + }; +} +export interface IntegrationProviderPatch { + brand?: Record | null; + category?: string | null; + description?: string | null; + icon?: string | null; + logo?: ConstructiveInternalTypeImage | null; + logoUpload?: File | null; + name?: string | null; + requiredConfigs?: ResourceRequirementInput[] | null; + requiredSecrets?: ResourceRequirementInput[] | null; + slug?: string | null; +} +export interface UpdateIntegrationProviderInput { + clientMutationId?: string; + id: string; + integrationProviderPatch: IntegrationProviderPatch; +} +export interface DeleteIntegrationProviderInput { + clientMutationId?: string; + id: string; +} +export interface CreateNamespaceInput { + clientMutationId?: string; + namespace: { + annotations?: Record; + clusterId?: string; + databaseId: string; + description?: string; + isActive?: boolean; + isManaged?: boolean; + labels?: Record; + lastError?: string; + name: string; + namespaceName: string; + status?: string; + }; +} +export interface NamespacePatch { + annotations?: Record | null; + clusterId?: string | null; + databaseId?: string | null; + description?: string | null; + isActive?: boolean | null; + isManaged?: boolean | null; + labels?: Record | null; + lastError?: string | null; + name?: string | null; + namespaceName?: string | null; + status?: string | null; +} +export interface UpdateNamespaceInput { + clientMutationId?: string; + id: string; + namespacePatch: NamespacePatch; +} +export interface DeleteNamespaceInput { + clientMutationId?: string; + id: string; +} +export interface CreateNamespaceEventInput { + clientMutationId?: string; + namespaceEvent: { + actorId?: string; + databaseId: string; + eventType: string; + message?: string; + metadata?: Record; + namespaceId: string; + }; +} +export interface NamespaceEventPatch { + actorId?: string | null; + databaseId?: string | null; + eventType?: string | null; + message?: string | null; + metadata?: Record | null; + namespaceId?: string | null; +} +export interface UpdateNamespaceEventInput { + clientMutationId?: string; + id: string; + namespaceEventPatch: NamespaceEventPatch; +} +export interface DeleteNamespaceEventInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformBuildInput { + clientMutationId?: string; + platformBuild: { + actorId?: string; + attempt?: number; + commitSha?: string; + conclusion?: string; + createdByPrincipal?: string; + eventId?: string; + finishedAt?: string; + imageRef?: string; + jobId?: string; + logs?: ConstructiveInternalTypeUpload; + matrixKey?: string; + metadata?: Record; + proposalId?: string; + ref?: string; + repositoryId: string; + startedAt?: string; + status?: string; + updatedByPrincipal?: string; + workflowId?: string; + }; +} +export interface PlatformBuildPatch { + actorId?: string | null; + attempt?: number | null; + commitSha?: string | null; + conclusion?: string | null; + createdByPrincipal?: string | null; + eventId?: string | null; + finishedAt?: string | null; + imageRef?: string | null; + jobId?: string | null; + logs?: ConstructiveInternalTypeUpload | null; + logsUpload?: File | null; + matrixKey?: string | null; + metadata?: Record | null; + proposalId?: string | null; + ref?: string | null; + repositoryId?: string | null; + startedAt?: string | null; + status?: string | null; + updatedByPrincipal?: string | null; + workflowId?: string | null; +} +export interface UpdatePlatformBuildInput { + clientMutationId?: string; + id: string; + platformBuildPatch: PlatformBuildPatch; +} +export interface DeletePlatformBuildInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformBuildStepInput { + clientMutationId?: string; + platformBuildStep: { + buildId: string; + createdByPrincipal?: string; + exitCode?: number; + finishedAt?: string; + kind?: string; + logBytes?: string; + logOffset?: string; + name: string; + parentSeq?: number; + recordedAt?: string; + seq: number; + startedAt?: string; + status?: string; + summary?: Record; + }; +} +export interface PlatformBuildStepPatch { + buildId?: string | null; + createdByPrincipal?: string | null; + exitCode?: number | null; + finishedAt?: string | null; + kind?: string | null; + logBytes?: string | null; + logOffset?: string | null; + name?: string | null; + parentSeq?: number | null; + recordedAt?: string | null; + seq?: number | null; + startedAt?: string | null; + status?: string | null; + summary?: Record | null; +} +export interface UpdatePlatformBuildStepInput { + clientMutationId?: string; + id: string; + platformBuildStepPatch: PlatformBuildStepPatch; +} +export interface DeletePlatformBuildStepInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformBuilderBindingInput { + clientMutationId?: string; + platformBuilderBinding: { + createdBy?: string; + createdByPrincipal?: string; + installationId: string; + lastError?: string; + metadata?: Record; + namespaceId: string; + observedHost?: string; + realm?: string; + status?: string; + updatedBy?: string; + updatedByPrincipal?: string; + }; +} +export interface PlatformBuilderBindingPatch { + createdBy?: string | null; + createdByPrincipal?: string | null; + installationId?: string | null; + lastError?: string | null; + metadata?: Record | null; + namespaceId?: string | null; + observedHost?: string | null; + realm?: string | null; + status?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdatePlatformBuilderBindingInput { + clientMutationId?: string; + id: string; + platformBuilderBindingPatch: PlatformBuilderBindingPatch; +} +export interface DeletePlatformBuilderBindingInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformFunctionApiBindingInput { + clientMutationId?: string; + platformFunctionApiBinding: { + alias?: string; + apiId: string; + config?: Record; + functionDefinitionId: string; + }; +} +export interface PlatformFunctionApiBindingPatch { + alias?: string | null; + apiId?: string | null; + config?: Record | null; + functionDefinitionId?: string | null; +} +export interface UpdatePlatformFunctionApiBindingInput { + clientMutationId?: string; + id: string; + platformFunctionApiBindingPatch: PlatformFunctionApiBindingPatch; +} +export interface DeletePlatformFunctionApiBindingInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformFunctionCapabilityBindingInput { + clientMutationId?: string; + platformFunctionCapabilityBinding: { + bucketId?: string; + functionId?: string; + graphId?: string; + key?: string; + lifecycle: string; + metadata?: Record; + }; +} +export interface PlatformFunctionCapabilityBindingPatch { + bucketId?: string | null; + functionId?: string | null; + graphId?: string | null; + key?: string | null; + lifecycle?: string | null; + metadata?: Record | null; +} +export interface UpdatePlatformFunctionCapabilityBindingInput { + clientMutationId?: string; + id: string; + platformFunctionCapabilityBindingPatch: PlatformFunctionCapabilityBindingPatch; +} +export interface DeletePlatformFunctionCapabilityBindingInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformFunctionDefinitionInput { + clientMutationId?: string; + platformFunctionDefinition: { + accessChannels?: string[]; + anonymousCallable?: boolean; + billable?: boolean; + category: string; + concurrency?: number; + createdByPrincipal?: string; + description?: string; + fnCategory?: string; + functionColumns?: Record; + graphId?: string; + icon?: string; + image?: string; + inputs?: Record; + integrations?: string[]; + isPublished?: boolean; + maxAttempts?: number; + moduleTable?: string; + name: string; + outputs?: Record; + payloadArgs?: Record; + priority?: number; + props?: Record; + protected?: boolean; + publishedAt?: string; + queueName?: string; + requiredBuckets?: string[]; + requiredCapabilities?: Record; + requiredConfigs?: ResourceRequirementInput[]; + requiredModels?: string[]; + requiredModules?: string[]; + requiredSecrets?: ResourceRequirementInput[]; + resources?: Record; + runtime?: string; + scaleMax?: number; + scaleMin?: number; + system?: boolean; + targetFunction?: string; + targetSchema?: string; + timeoutSeconds?: number; + updatedByPrincipal?: string; + volatile?: boolean; + }; +} +export interface PlatformFunctionDefinitionPatch { + accessChannels?: string[] | null; + anonymousCallable?: boolean | null; + billable?: boolean | null; + category?: string | null; + concurrency?: number | null; + createdByPrincipal?: string | null; + description?: string | null; + fnCategory?: string | null; + functionColumns?: Record | null; + graphId?: string | null; + icon?: string | null; + image?: string | null; + inputs?: Record | null; + integrations?: string[] | null; + isPublished?: boolean | null; + maxAttempts?: number | null; + moduleTable?: string | null; + name?: string | null; + outputs?: Record | null; + payloadArgs?: Record | null; + priority?: number | null; + props?: Record | null; + protected?: boolean | null; + publishedAt?: string | null; + queueName?: string | null; + requiredBuckets?: string[] | null; + requiredCapabilities?: Record | null; + requiredConfigs?: ResourceRequirementInput[] | null; + requiredModels?: string[] | null; + requiredModules?: string[] | null; + requiredSecrets?: ResourceRequirementInput[] | null; + resources?: Record | null; + runtime?: string | null; + scaleMax?: number | null; + scaleMin?: number | null; + system?: boolean | null; + targetFunction?: string | null; + targetSchema?: string | null; + timeoutSeconds?: number | null; + updatedByPrincipal?: string | null; + volatile?: boolean | null; +} +export interface UpdatePlatformFunctionDefinitionInput { + clientMutationId?: string; + id: string; + platformFunctionDefinitionPatch: PlatformFunctionDefinitionPatch; +} +export interface DeletePlatformFunctionDefinitionInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformFunctionDeploymentInput { + clientMutationId?: string; + platformFunctionDeployment: { + annotations?: Record; + concurrency?: number; + createdByPrincipal?: string; + errorCount?: number; + handlerName?: string; + image: string; + imageVersion?: string; + labels?: Record; + lastError?: string; + lastErrorAt?: string; + namespaceId: string; + realm?: string; + resources?: Record; + revision?: number; + scaleMax?: number; + scaleMin?: number; + serviceName?: string; + serviceUrl?: string; + status?: string; + timeoutSeconds?: number; + updatedByPrincipal?: string; + }; +} +export interface PlatformFunctionDeploymentPatch { + annotations?: Record | null; + concurrency?: number | null; + createdByPrincipal?: string | null; + errorCount?: number | null; + handlerName?: string | null; + image?: string | null; + imageVersion?: string | null; + labels?: Record | null; + lastError?: string | null; + lastErrorAt?: string | null; + namespaceId?: string | null; + realm?: string | null; + resources?: Record | null; + revision?: number | null; + scaleMax?: number | null; + scaleMin?: number | null; + serviceName?: string | null; + serviceUrl?: string | null; + status?: string | null; + timeoutSeconds?: number | null; + updatedByPrincipal?: string | null; +} +export interface UpdatePlatformFunctionDeploymentInput { + clientMutationId?: string; + id: string; + platformFunctionDeploymentPatch: PlatformFunctionDeploymentPatch; +} +export interface DeletePlatformFunctionDeploymentInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformFunctionDeploymentEventInput { + clientMutationId?: string; + platformFunctionDeploymentEvent: { + actorId?: string; + deploymentId: string; + eventType: string; + message?: string; + metadata?: Record; + }; +} +export interface PlatformFunctionDeploymentEventPatch { + actorId?: string | null; + deploymentId?: string | null; + eventType?: string | null; + message?: string | null; + metadata?: Record | null; +} +export interface UpdatePlatformFunctionDeploymentEventInput { + clientMutationId?: string; + id: string; + platformFunctionDeploymentEventPatch: PlatformFunctionDeploymentEventPatch; +} +export interface DeletePlatformFunctionDeploymentEventInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformFunctionExecutionLogInput { + clientMutationId?: string; + platformFunctionExecutionLog: { + actorId?: string; + invocationId?: string; + logLevel?: string; + message: string; + metadata?: Record; + taskIdentifier?: string; + }; +} +export interface PlatformFunctionExecutionLogPatch { + actorId?: string | null; + invocationId?: string | null; + logLevel?: string | null; + message?: string | null; + metadata?: Record | null; + taskIdentifier?: string | null; +} +export interface UpdatePlatformFunctionExecutionLogInput { + clientMutationId?: string; + id: string; + platformFunctionExecutionLogPatch: PlatformFunctionExecutionLogPatch; +} +export interface DeletePlatformFunctionExecutionLogInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformFunctionInvocationAttemptInput { + clientMutationId?: string; + platformFunctionInvocationAttempt: { + actorId?: string; + attempt: number; + durationMs?: number; + error?: string; + errorDetail?: Record; + invocationCreatedAt: string; + invocationId: string; + startedAt?: string; + success: boolean; + taskIdentifier: string; + }; +} +export interface PlatformFunctionInvocationAttemptPatch { + actorId?: string | null; + attempt?: number | null; + durationMs?: number | null; + error?: string | null; + errorDetail?: Record | null; + invocationCreatedAt?: string | null; + invocationId?: string | null; + startedAt?: string | null; + success?: boolean | null; + taskIdentifier?: string | null; +} +export interface UpdatePlatformFunctionInvocationAttemptInput { + clientMutationId?: string; + id: string; + platformFunctionInvocationAttemptPatch: PlatformFunctionInvocationAttemptPatch; +} +export interface DeletePlatformFunctionInvocationAttemptInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformFunctionInvocationInput { + clientMutationId?: string; + platformFunctionInvocation: { + actorId?: string; + apiBindingId?: string; + channel: string; + completedAt?: string; + createdByPrincipal?: string; + databaseId?: string; + definitionScope?: string; + durationMs?: number; + entityId?: string; + entityType?: string; + error?: string; + functionDefinitionId?: string; + graphExecutionId?: string; + jobId?: string; + organizationId?: string; + parentInvocationId?: string; + payload?: Record; + principalId?: string; + provenance?: Record; + result?: Record; + startedAt?: string; + status?: string; + taskIdentifier: string; + }; +} +export interface PlatformFunctionInvocationPatch { + actorId?: string | null; + apiBindingId?: string | null; + channel?: string | null; + completedAt?: string | null; + createdByPrincipal?: string | null; + databaseId?: string | null; + definitionScope?: string | null; + durationMs?: number | null; + entityId?: string | null; + entityType?: string | null; + error?: string | null; + functionDefinitionId?: string | null; + graphExecutionId?: string | null; + jobId?: string | null; + organizationId?: string | null; + parentInvocationId?: string | null; + payload?: Record | null; + principalId?: string | null; + provenance?: Record | null; + result?: Record | null; + startedAt?: string | null; + status?: string | null; + taskIdentifier?: string | null; +} +export interface UpdatePlatformFunctionInvocationInput { + clientMutationId?: string; + id: string; + platformFunctionInvocationPatch: PlatformFunctionInvocationPatch; +} +export interface DeletePlatformFunctionInvocationInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformImageInput { + clientMutationId?: string; + platformImage: { + createdByPrincipal?: string; + description?: string; + digest?: string; + expiresAt?: string; + isPublished?: boolean; + labels?: Record; + metadata?: Record; + name: string; + ownerId?: string; + platformOnly?: boolean; + registryHost?: string; + repository: string; + runtime?: string; + tag?: string; + updatedByPrincipal?: string; + }; +} +export interface PlatformImagePatch { + createdByPrincipal?: string | null; + description?: string | null; + digest?: string | null; + expiresAt?: string | null; + isPublished?: boolean | null; + labels?: Record | null; + metadata?: Record | null; + name?: string | null; + ownerId?: string | null; + platformOnly?: boolean | null; + registryHost?: string | null; + repository?: string | null; + runtime?: string | null; + tag?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdatePlatformImageInput { + clientMutationId?: string; + id: string; + platformImagePatch: PlatformImagePatch; +} +export interface DeletePlatformImageInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformImageGrantInput { + clientMutationId?: string; + platformImageGrant: { + actions?: string[]; + createdByPrincipal?: string; + expiresAt?: string; + grantedBy?: string; + granteeKey: string; + granteeScope: string; + imageId: string; + updatedByPrincipal?: string; + }; +} +export interface PlatformImageGrantPatch { + actions?: string[] | null; + createdByPrincipal?: string | null; + expiresAt?: string | null; + grantedBy?: string | null; + granteeKey?: string | null; + granteeScope?: string | null; + imageId?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdatePlatformImageGrantInput { + clientMutationId?: string; + id: string; + platformImageGrantPatch: PlatformImageGrantPatch; +} +export interface DeletePlatformImageGrantInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformInfraCommitInput { + clientMutationId?: string; + platformInfraCommit: { + authorId?: string; + committerId?: string; + date?: string; + message?: string; + parentIds?: string[]; + scopeId: string; + storeId: string; + treeId?: string; + }; +} +export interface PlatformInfraCommitPatch { + authorId?: string | null; + committerId?: string | null; + date?: string | null; + message?: string | null; + parentIds?: string[] | null; + scopeId?: string | null; + storeId?: string | null; + treeId?: string | null; +} +export interface UpdatePlatformInfraCommitInput { + clientMutationId?: string; + id: string; + platformInfraCommitPatch: PlatformInfraCommitPatch; +} +export interface DeletePlatformInfraCommitInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformInfraGetAllTreeNodesRecordInput { + clientMutationId?: string; + platformInfraGetAllTreeNodesRecord: { + data?: Record; + path?: string[]; + }; +} +export interface PlatformInfraGetAllTreeNodesRecordPatch { + data?: Record | null; + path?: string[] | null; +} +export interface UpdatePlatformInfraGetAllTreeNodesRecordInput { + clientMutationId?: string; + id: string; + platformInfraGetAllTreeNodesRecordPatch: PlatformInfraGetAllTreeNodesRecordPatch; +} +export interface DeletePlatformInfraGetAllTreeNodesRecordInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformInfraObjectInput { + clientMutationId?: string; + platformInfraObject: { + data?: Record; + kids?: string[]; + ktree?: string[]; + scopeId: string; + }; +} +export interface PlatformInfraObjectPatch { + data?: Record | null; + kids?: string[] | null; + ktree?: string[] | null; + scopeId?: string | null; +} +export interface UpdatePlatformInfraObjectInput { + clientMutationId?: string; + id: string; + platformInfraObjectPatch: PlatformInfraObjectPatch; +} +export interface DeletePlatformInfraObjectInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformInfraRefInput { + clientMutationId?: string; + platformInfraRef: { + commitId?: string; + name: string; + scopeId: string; + storeId: string; + }; +} +export interface PlatformInfraRefPatch { + commitId?: string | null; + name?: string | null; + scopeId?: string | null; + storeId?: string | null; +} +export interface UpdatePlatformInfraRefInput { + clientMutationId?: string; + id: string; + platformInfraRefPatch: PlatformInfraRefPatch; +} +export interface DeletePlatformInfraRefInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformInfraStoreInput { + clientMutationId?: string; + platformInfraStore: { + hash?: string; + name: string; + scopeId: string; + }; +} +export interface PlatformInfraStorePatch { + hash?: string | null; + name?: string | null; + scopeId?: string | null; +} +export interface UpdatePlatformInfraStoreInput { + clientMutationId?: string; + id: string; + platformInfraStorePatch: PlatformInfraStorePatch; +} +export interface DeletePlatformInfraStoreInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformK8sResourceKindInput { + clientMutationId?: string; + platformK8sResourceKind: { + active?: boolean; + commitId?: string; + definition: Record; + description?: string; + label?: string; + slug: string; + storeId?: string; + }; +} +export interface PlatformK8sResourceKindPatch { + active?: boolean | null; + commitId?: string | null; + definition?: Record | null; + description?: string | null; + label?: string | null; + slug?: string | null; + storeId?: string | null; +} +export interface UpdatePlatformK8sResourceKindInput { + clientMutationId?: string; + id: string; + platformK8sResourceKindPatch: PlatformK8sResourceKindPatch; +} +export interface DeletePlatformK8sResourceKindInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformK8sSpecRuleInput { + clientMutationId?: string; + platformK8sSpecRule: { + active?: boolean; + commitId?: string; + definition: Record; + description?: string; + label?: string; + slug: string; + storeId?: string; + }; +} +export interface PlatformK8sSpecRulePatch { + active?: boolean | null; + commitId?: string | null; + definition?: Record | null; + description?: string | null; + label?: string | null; + slug?: string | null; + storeId?: string | null; +} +export interface UpdatePlatformK8sSpecRuleInput { + clientMutationId?: string; + id: string; + platformK8sSpecRulePatch: PlatformK8sSpecRulePatch; +} +export interface DeletePlatformK8sSpecRuleInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformNamespaceInput { + clientMutationId?: string; + platformNamespace: { + annotations?: Record; + clusterId?: string; + description?: string; + isActive?: boolean; + isManaged?: boolean; + labels?: Record; + lastError?: string; + name: string; + namespaceName: string; + status?: string; + }; +} +export interface PlatformNamespacePatch { + annotations?: Record | null; + clusterId?: string | null; + description?: string | null; + isActive?: boolean | null; + isManaged?: boolean | null; + labels?: Record | null; + lastError?: string | null; + name?: string | null; + namespaceName?: string | null; + status?: string | null; +} +export interface UpdatePlatformNamespaceInput { + clientMutationId?: string; + id: string; + platformNamespacePatch: PlatformNamespacePatch; +} +export interface DeletePlatformNamespaceInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformNamespaceEventInput { + clientMutationId?: string; + platformNamespaceEvent: { + actorId?: string; + eventType: string; + message?: string; + metadata?: Record; + namespaceId: string; + }; +} +export interface PlatformNamespaceEventPatch { + actorId?: string | null; + eventType?: string | null; + message?: string | null; + metadata?: Record | null; + namespaceId?: string | null; +} +export interface UpdatePlatformNamespaceEventInput { + clientMutationId?: string; + id: string; + platformNamespaceEventPatch: PlatformNamespaceEventPatch; +} +export interface DeletePlatformNamespaceEventInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformProposalCommentInput { + clientMutationId?: string; + platformProposalComment: { + actorId?: string; + attachments?: ConstructiveInternalTypeUpload[]; + body: string; + createdBy?: string; + createdByPrincipal?: string; + embedding?: number[]; + embeddingText?: string; + line?: number; + outdatedAt?: string; + path?: string; + proposalId: string; + resolvedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; + }; +} +export interface PlatformProposalCommentPatch { + actorId?: string | null; + attachments?: ConstructiveInternalTypeUpload[] | null; + body?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + embedding?: number[] | null; + embeddingText?: string | null; + line?: number | null; + outdatedAt?: string | null; + path?: string | null; + proposalId?: string | null; + resolvedAt?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdatePlatformProposalCommentInput { + clientMutationId?: string; + id: string; + platformProposalCommentPatch: PlatformProposalCommentPatch; +} +export interface DeletePlatformProposalCommentInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformProposalInput { + clientMutationId?: string; + platformProposal: { + actorId?: string; + body?: string; + closedReason?: string; + createdBy?: string; + createdByPrincipal?: string; + decidedAt?: string; + dueAt?: string; + embedding?: number[]; + embeddingText?: string; + kind?: string; + labels?: string[]; + mergeCommit?: string; + mergeMethod?: string; + mergeRequestedAt?: string; + mergedAt?: string; + metadata?: Record; + parentId?: string; + priority?: string; + repositoryId: string; + resolution?: string; + sourceRef?: string; + status?: string; + targetRef?: string; + title: string; + updatedBy?: string; + updatedByPrincipal?: string; + }; +} +export interface PlatformProposalPatch { + actorId?: string | null; + body?: string | null; + closedReason?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + decidedAt?: string | null; + dueAt?: string | null; + embedding?: number[] | null; + embeddingText?: string | null; + kind?: string | null; + labels?: string[] | null; + mergeCommit?: string | null; + mergeMethod?: string | null; + mergeRequestedAt?: string | null; + mergedAt?: string | null; + metadata?: Record | null; + parentId?: string | null; + priority?: string | null; + repositoryId?: string | null; + resolution?: string | null; + sourceRef?: string | null; + status?: string | null; + targetRef?: string | null; + title?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdatePlatformProposalInput { + clientMutationId?: string; + id: string; + platformProposalPatch: PlatformProposalPatch; +} +export interface DeletePlatformProposalInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformProposalFileViewInput { + clientMutationId?: string; + platformProposalFileView: { + blobSha: string; + createdByPrincipal?: string; + path: string; + proposalId: string; + reviewerId: string; + updatedByPrincipal?: string; + viewedAt?: string; + }; +} +export interface PlatformProposalFileViewPatch { + blobSha?: string | null; + createdByPrincipal?: string | null; + path?: string | null; + proposalId?: string | null; + reviewerId?: string | null; + updatedByPrincipal?: string | null; + viewedAt?: string | null; +} +export interface UpdatePlatformProposalFileViewInput { + clientMutationId?: string; + id: string; + platformProposalFileViewPatch: PlatformProposalFileViewPatch; +} +export interface DeletePlatformProposalFileViewInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformProposalReactionInput { + clientMutationId?: string; + platformProposalReaction: { + actorId: string; + commentId?: string; + createdByPrincipal?: string; + emoji: string; + proposalId: string; + updatedByPrincipal?: string; + }; +} +export interface PlatformProposalReactionPatch { + actorId?: string | null; + commentId?: string | null; + createdByPrincipal?: string | null; + emoji?: string | null; + proposalId?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdatePlatformProposalReactionInput { + clientMutationId?: string; + id: string; + platformProposalReactionPatch: PlatformProposalReactionPatch; +} +export interface DeletePlatformProposalReactionInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformProposalReviewInput { + clientMutationId?: string; + platformProposalReview: { + body?: string; + commitSha: string; + createdByPrincipal?: string; + proposalId: string; + reviewerId: string; + submittedAt?: string; + updatedByPrincipal?: string; + verdict: string; + }; +} +export interface PlatformProposalReviewPatch { + body?: string | null; + commitSha?: string | null; + createdByPrincipal?: string | null; + proposalId?: string | null; + reviewerId?: string | null; + submittedAt?: string | null; + updatedByPrincipal?: string | null; + verdict?: string | null; +} +export interface UpdatePlatformProposalReviewInput { + clientMutationId?: string; + id: string; + platformProposalReviewPatch: PlatformProposalReviewPatch; +} +export interface DeletePlatformProposalReviewInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformProposalsChunkInput { + clientMutationId?: string; + platformProposalsChunk: { + actorId?: string; + body: string; + chunkIndex?: number; + embedding?: number[]; + embeddingText?: string; + metadata?: Record; + platformProposalsId: string; + }; +} +export interface PlatformProposalsChunkPatch { + actorId?: string | null; + body?: string | null; + chunkIndex?: number | null; + embedding?: number[] | null; + embeddingText?: string | null; + metadata?: Record | null; + platformProposalsId?: string | null; +} +export interface UpdatePlatformProposalsChunkInput { + clientMutationId?: string; + id: string; + platformProposalsChunkPatch: PlatformProposalsChunkPatch; +} +export interface DeletePlatformProposalsChunkInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformRegistryBindingInput { + clientMutationId?: string; + platformRegistryBinding: { + createdBy?: string; + createdByPrincipal?: string; + metadata?: Record; + namespaceId: string; + observedCredentialVersion?: string; + pullSecretName?: string; + realm?: string; + registryHost: string; + registryId: string; + status?: string; + updatedBy?: string; + updatedByPrincipal?: string; + }; +} +export interface PlatformRegistryBindingPatch { + createdBy?: string | null; + createdByPrincipal?: string | null; + metadata?: Record | null; + namespaceId?: string | null; + observedCredentialVersion?: string | null; + pullSecretName?: string | null; + realm?: string | null; + registryHost?: string | null; + registryId?: string | null; + status?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdatePlatformRegistryBindingInput { + clientMutationId?: string; + id: string; + platformRegistryBindingPatch: PlatformRegistryBindingPatch; +} +export interface DeletePlatformRegistryBindingInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformRegistryInput { + clientMutationId?: string; + platformRegistry: { + authMode?: string; + basePath?: string; + createdByPrincipal?: string; + credentialSecretName?: string; + host?: string; + installationId?: string; + isPublished?: boolean; + kind: string; + labels?: Record; + lastError?: string; + metadata?: Record; + name: string; + platformOnly?: boolean; + role?: string; + status?: string; + updatedByPrincipal?: string; + }; +} +export interface PlatformRegistryPatch { + authMode?: string | null; + basePath?: string | null; + createdByPrincipal?: string | null; + credentialSecretName?: string | null; + host?: string | null; + installationId?: string | null; + isPublished?: boolean | null; + kind?: string | null; + labels?: Record | null; + lastError?: string | null; + metadata?: Record | null; + name?: string | null; + platformOnly?: boolean | null; + role?: string | null; + status?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdatePlatformRegistryInput { + clientMutationId?: string; + id: string; + platformRegistryPatch: PlatformRegistryPatch; +} +export interface DeletePlatformRegistryInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformRegistryGrantInput { + clientMutationId?: string; + platformRegistryGrant: { + actions?: string[]; + createdByPrincipal?: string; + expiresAt?: string; + grantedBy?: string; + granteeKey: string; + granteeScope: string; + registryId: string; + updatedByPrincipal?: string; + }; +} +export interface PlatformRegistryGrantPatch { + actions?: string[] | null; + createdByPrincipal?: string | null; + expiresAt?: string | null; + grantedBy?: string | null; + granteeKey?: string | null; + granteeScope?: string | null; + registryId?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdatePlatformRegistryGrantInput { + clientMutationId?: string; + id: string; + platformRegistryGrantPatch: PlatformRegistryGrantPatch; +} +export interface DeletePlatformRegistryGrantInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformRepositoryInput { + clientMutationId?: string; + platformRepository: { + cloneUrl?: string; + createdBy?: string; + createdByPrincipal?: string; + defaultBranch?: string; + description?: string; + embedding?: number[]; + embeddingText?: string; + externalId?: string; + isArchived?: boolean; + metadata?: Record; + name: string; + ownerId?: string; + provider?: string; + slug: string; + updatedBy?: string; + updatedByPrincipal?: string; + visibility?: string; + }; +} +export interface PlatformRepositoryPatch { + cloneUrl?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + defaultBranch?: string | null; + description?: string | null; + embedding?: number[] | null; + embeddingText?: string | null; + externalId?: string | null; + isArchived?: boolean | null; + metadata?: Record | null; + name?: string | null; + ownerId?: string | null; + provider?: string | null; + slug?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; + visibility?: string | null; +} +export interface UpdatePlatformRepositoryInput { + clientMutationId?: string; + id: string; + platformRepositoryPatch: PlatformRepositoryPatch; +} +export interface DeletePlatformRepositoryInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformRepositoryEventInput { + clientMutationId?: string; + platformRepositoryEvent: { + actorId?: string; + commitSha?: string; + createdByPrincipal?: string; + deliveryId?: string; + eventType: string; + metadata?: Record; + payload?: Record; + ref?: string; + repositoryId: string; + updatedByPrincipal?: string; + }; +} +export interface PlatformRepositoryEventPatch { + actorId?: string | null; + commitSha?: string | null; + createdByPrincipal?: string | null; + deliveryId?: string | null; + eventType?: string | null; + metadata?: Record | null; + payload?: Record | null; + ref?: string | null; + repositoryId?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdatePlatformRepositoryEventInput { + clientMutationId?: string; + id: string; + platformRepositoryEventPatch: PlatformRepositoryEventPatch; +} +export interface DeletePlatformRepositoryEventInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformRepositoryRequiredCheckInput { + clientMutationId?: string; + platformRepositoryRequiredCheck: { + repositoryId: string; + workflowId: string; + }; +} +export interface PlatformRepositoryRequiredCheckPatch { + repositoryId?: string | null; + workflowId?: string | null; +} +export interface UpdatePlatformRepositoryRequiredCheckInput { + clientMutationId?: string; + id: string; + platformRepositoryRequiredCheckPatch: PlatformRepositoryRequiredCheckPatch; +} +export interface DeletePlatformRepositoryRequiredCheckInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformRepositoryWorkflowInput { + clientMutationId?: string; + platformRepositoryWorkflow: { + cancelInProgress?: boolean; + concurrencyKey?: string; + createdBy?: string; + createdByPrincipal?: string; + eventType: string; + graphId?: string; + inputs?: Record; + isEnabled?: boolean; + name: string; + refPattern?: string; + repositoryId: string; + requiredSecrets?: string[]; + slug: string; + updatedBy?: string; + updatedByPrincipal?: string; + }; +} +export interface PlatformRepositoryWorkflowPatch { + cancelInProgress?: boolean | null; + concurrencyKey?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + eventType?: string | null; + graphId?: string | null; + inputs?: Record | null; + isEnabled?: boolean | null; + name?: string | null; + refPattern?: string | null; + repositoryId?: string | null; + requiredSecrets?: string[] | null; + slug?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdatePlatformRepositoryWorkflowInput { + clientMutationId?: string; + id: string; + platformRepositoryWorkflowPatch: PlatformRepositoryWorkflowPatch; +} +export interface DeletePlatformRepositoryWorkflowInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformResourceInput { + clientMutationId?: string; + platformResource: { + annotations?: Record; + createdBy?: string; + createdByPrincipal?: string; + errorCount?: number; + imageRef?: string; + installationId?: string; + integrations?: string[]; + kind: string; + labels?: Record; + lastError?: string; + lastHeartbeatAt?: string; + name: string; + namespaceId: string; + realm?: string; + requiredConfigs?: ResourceRequirementInput[]; + requiredSecrets?: ResourceRequirementInput[]; + resourceDefinitionId?: string; + slug: string; + spec?: Record; + status?: string; + statusObserved?: Record; + updatedBy?: string; + updatedByPrincipal?: string; + }; +} +export interface PlatformResourcePatch { + annotations?: Record | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + errorCount?: number | null; + imageRef?: string | null; + installationId?: string | null; + integrations?: string[] | null; + kind?: string | null; + labels?: Record | null; + lastError?: string | null; + lastHeartbeatAt?: string | null; + name?: string | null; + namespaceId?: string | null; + realm?: string | null; + requiredConfigs?: ResourceRequirementInput[] | null; + requiredSecrets?: ResourceRequirementInput[] | null; + resourceDefinitionId?: string | null; + slug?: string | null; + spec?: Record | null; + status?: string | null; + statusObserved?: Record | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdatePlatformResourceInput { + clientMutationId?: string; + id: string; + platformResourcePatch: PlatformResourcePatch; +} +export interface DeletePlatformResourceInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformResourceDeclaredCapacityInput { + clientMutationId?: string; + platformResourceDeclaredCapacity: { + cpuLimitMillicores?: string; + cpuRequestMillicores?: string; + installationId: string; + isTransient?: boolean; + kind?: string; + memoryLimitBytes?: string; + memoryRequestBytes?: string; + namespaceId: string; + podCountMax?: number; + podCountMin?: number; + source?: string; + sourceId: string; + storageSizeBytes?: string; + storageTotalBytes?: string; + }; +} +export interface PlatformResourceDeclaredCapacityPatch { + cpuLimitMillicores?: string | null; + cpuRequestMillicores?: string | null; + installationId?: string | null; + isTransient?: boolean | null; + kind?: string | null; + memoryLimitBytes?: string | null; + memoryRequestBytes?: string | null; + namespaceId?: string | null; + podCountMax?: number | null; + podCountMin?: number | null; + source?: string | null; + sourceId?: string | null; + storageSizeBytes?: string | null; + storageTotalBytes?: string | null; +} +export interface UpdatePlatformResourceDeclaredCapacityInput { + clientMutationId?: string; + id: string; + platformResourceDeclaredCapacityPatch: PlatformResourceDeclaredCapacityPatch; +} +export interface DeletePlatformResourceDeclaredCapacityInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformResourceDefinitionInput { + clientMutationId?: string; + platformResourceDefinition: { + annotations?: Record; + createdBy?: string; + createdByPrincipal?: string; + defaultSpec?: Record; + description?: string; + integrations?: string[]; + kind: string; + labels?: Record; + name: string; + namespaceId: string; + paramsSchema?: Record; + requiredConfigs?: ResourceRequirementInput[]; + requiredSecrets?: ResourceRequirementInput[]; + slug: string; + stepUpMinAge?: IntervalInput; + updatedBy?: string; + updatedByPrincipal?: string; + }; +} +export interface PlatformResourceDefinitionPatch { + annotations?: Record | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + defaultSpec?: Record | null; + description?: string | null; + integrations?: string[] | null; + kind?: string | null; + labels?: Record | null; + name?: string | null; + namespaceId?: string | null; + paramsSchema?: Record | null; + requiredConfigs?: ResourceRequirementInput[] | null; + requiredSecrets?: ResourceRequirementInput[] | null; + slug?: string | null; + stepUpMinAge?: IntervalInput | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdatePlatformResourceDefinitionInput { + clientMutationId?: string; + id: string; + platformResourceDefinitionPatch: PlatformResourceDefinitionPatch; +} +export interface DeletePlatformResourceDefinitionInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformResourceEventInput { + clientMutationId?: string; + platformResourceEvent: { + actorId?: string; + eventType: string; + message?: string; + metadata?: Record; + resourceId: string; + }; +} +export interface PlatformResourceEventPatch { + actorId?: string | null; + eventType?: string | null; + message?: string | null; + metadata?: Record | null; + resourceId?: string | null; +} +export interface UpdatePlatformResourceEventInput { + clientMutationId?: string; + id: string; + platformResourceEventPatch: PlatformResourceEventPatch; +} +export interface DeletePlatformResourceEventInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformResourceInstallationInput { + clientMutationId?: string; + platformResourceInstallation: { + commitId?: string; + createdBy?: string; + createdByPrincipal?: string; + name: string; + namespaceId: string; + params?: Record; + revision?: number; + slug: string; + status?: string; + storeId?: string; + updatedBy?: string; + updatedByPrincipal?: string; + }; +} +export interface PlatformResourceInstallationPatch { + commitId?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + name?: string | null; + namespaceId?: string | null; + params?: Record | null; + revision?: number | null; + slug?: string | null; + status?: string | null; + storeId?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdatePlatformResourceInstallationInput { + clientMutationId?: string; + id: string; + platformResourceInstallationPatch: PlatformResourceInstallationPatch; +} +export interface DeletePlatformResourceInstallationInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformResourceObservedStorageInput { + clientMutationId?: string; + platformResourceObservedStorage: { + capacity?: string; + capacityBytes?: string; + claimName?: string; + declaredStorageClass?: string; + declaredStorageSizeBytes?: string; + declaredStorageTotalBytes?: string; + installationId: string; + isBound?: boolean; + kind?: string; + namespaceId: string; + phase?: string; + requested?: string; + requestedBytes?: string; + resourceId: string; + resourceStatus?: string; + slug?: string; + storageClass?: string; + storageName?: string; + }; +} +export interface PlatformResourceObservedStoragePatch { + capacity?: string | null; + capacityBytes?: string | null; + claimName?: string | null; + declaredStorageClass?: string | null; + declaredStorageSizeBytes?: string | null; + declaredStorageTotalBytes?: string | null; + installationId?: string | null; + isBound?: boolean | null; + kind?: string | null; + namespaceId?: string | null; + phase?: string | null; + requested?: string | null; + requestedBytes?: string | null; + resourceId?: string | null; + resourceStatus?: string | null; + slug?: string | null; + storageClass?: string | null; + storageName?: string | null; +} +export interface UpdatePlatformResourceObservedStorageInput { + clientMutationId?: string; + id: string; + platformResourceObservedStoragePatch: PlatformResourceObservedStoragePatch; +} +export interface DeletePlatformResourceObservedStorageInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformResourceStatusCheckInput { + clientMutationId?: string; + platformResourceStatusCheck: { + completedAt?: string; + requestedAt?: string; + requestedBy?: string; + resourceId: string; + result?: Record; + status?: string; + }; +} +export interface PlatformResourceStatusCheckPatch { + completedAt?: string | null; + requestedAt?: string | null; + requestedBy?: string | null; + resourceId?: string | null; + result?: Record | null; + status?: string | null; +} +export interface UpdatePlatformResourceStatusCheckInput { + clientMutationId?: string; + id: string; + platformResourceStatusCheckPatch: PlatformResourceStatusCheckPatch; +} +export interface DeletePlatformResourceStatusCheckInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformResourceUsageLogInput { + clientMutationId?: string; + platformResourceUsageLog: { + cpuMillicores?: string; + intervalSeconds: number; + memoryBytes?: string; + metrics?: Record; + namespaceId: string; + resourceId?: string; + sampledAt?: string; + source: string; + }; +} +export interface PlatformResourceUsageLogPatch { + cpuMillicores?: string | null; + intervalSeconds?: number | null; + memoryBytes?: string | null; + metrics?: Record | null; + namespaceId?: string | null; + resourceId?: string | null; + sampledAt?: string | null; + source?: string | null; +} +export interface UpdatePlatformResourceUsageLogInput { + clientMutationId?: string; + id: string; + platformResourceUsageLogPatch: PlatformResourceUsageLogPatch; +} +export interface DeletePlatformResourceUsageLogInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformResourceUsageSummaryInput { + clientMutationId?: string; + platformResourceUsageSummary: { + date: string; + gbSeconds?: string; + maxCpuMillicores?: string; + maxMemoryBytes?: string; + namespaceId: string; + resourceId?: string; + runtimeSeconds?: string; + sampleCount?: number; + }; +} +export interface PlatformResourceUsageSummaryPatch { + date?: string | null; + gbSeconds?: string | null; + maxCpuMillicores?: string | null; + maxMemoryBytes?: string | null; + namespaceId?: string | null; + resourceId?: string | null; + runtimeSeconds?: string | null; + sampleCount?: number | null; +} +export interface UpdatePlatformResourceUsageSummaryInput { + clientMutationId?: string; + id: string; + platformResourceUsageSummaryPatch: PlatformResourceUsageSummaryPatch; +} +export interface DeletePlatformResourceUsageSummaryInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformResourceUtilizationInput { + clientMutationId?: string; + platformResourceUtilization: { + avgMemoryBytes?: string; + cpuLimitMillicores?: string; + cpuPeakUtilization?: string; + cpuRequestHeadroomMillicores?: string; + cpuRequestMillicores?: string; + date?: string; + gbSeconds?: string; + kind?: string; + maxCpuMillicores?: string; + maxMemoryBytes?: string; + memoryLimitBytes?: string; + memoryPeakUtilization?: string; + memoryRequestBytes?: string; + memoryRequestHeadroomBytes?: string; + namespaceId: string; + replicas?: number; + resourceId: string; + runtimeSeconds?: string; + sampleCount?: number; + }; +} +export interface PlatformResourceUtilizationPatch { + avgMemoryBytes?: string | null; + cpuLimitMillicores?: string | null; + cpuPeakUtilization?: string | null; + cpuRequestHeadroomMillicores?: string | null; + cpuRequestMillicores?: string | null; + date?: string | null; + gbSeconds?: string | null; + kind?: string | null; + maxCpuMillicores?: string | null; + maxMemoryBytes?: string | null; + memoryLimitBytes?: string | null; + memoryPeakUtilization?: string | null; + memoryRequestBytes?: string | null; + memoryRequestHeadroomBytes?: string | null; + namespaceId?: string | null; + replicas?: number | null; + resourceId?: string | null; + runtimeSeconds?: string | null; + sampleCount?: number | null; +} +export interface UpdatePlatformResourceUtilizationInput { + clientMutationId?: string; + id: string; + platformResourceUtilizationPatch: PlatformResourceUtilizationPatch; +} +export interface DeletePlatformResourceUtilizationInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformResourcesHealthInput { + clientMutationId?: string; + platformResourcesHealth: { + annotations?: Record; + cpuLimitMillicores?: string; + cpuRequestMillicores?: string; + createdBy?: string; + createdByPrincipal?: string; + errorCount?: number; + imageRef?: string; + installationId: string; + integrations?: string[]; + kind?: string; + labels?: Record; + lastError?: string; + lastHeartbeatAt?: string; + memoryLimitBytes?: string; + memoryRequestBytes?: string; + name?: string; + namespaceId: string; + realm?: string; + replicas?: number; + requiredConfigs?: ResourceRequirement[]; + requiredSecrets?: ResourceRequirement[]; + resourceDefinitionId: string; + slug?: string; + spec?: Record; + status?: string; + statusDetail?: string; + statusObserved?: Record; + storageClass?: string; + storageSizeBytes?: string; + storageTotalBytes?: string; + updatedBy?: string; + updatedByPrincipal?: string; + }; +} +export interface PlatformResourcesHealthPatch { + annotations?: Record | null; + cpuLimitMillicores?: string | null; + cpuRequestMillicores?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + errorCount?: number | null; + imageRef?: string | null; + installationId?: string | null; + integrations?: string[] | null; + kind?: string | null; + labels?: Record | null; + lastError?: string | null; + lastHeartbeatAt?: string | null; + memoryLimitBytes?: string | null; + memoryRequestBytes?: string | null; + name?: string | null; + namespaceId?: string | null; + realm?: string | null; + replicas?: number | null; + requiredConfigs?: ResourceRequirement[] | null; + requiredSecrets?: ResourceRequirement[] | null; + resourceDefinitionId?: string | null; + slug?: string | null; + spec?: Record | null; + status?: string | null; + statusDetail?: string | null; + statusObserved?: Record | null; + storageClass?: string | null; + storageSizeBytes?: string | null; + storageTotalBytes?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdatePlatformResourcesHealthInput { + clientMutationId?: string; + id: string; + platformResourcesHealthPatch: PlatformResourcesHealthPatch; +} +export interface DeletePlatformResourcesHealthInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformResourcesRequirementsStateInput { + clientMutationId?: string; + platformResourcesRequirementsState: { + configHash?: string; + configObjectName?: string; + requirementsHash?: string; + resourceId: string; + secretsHash?: string; + secretsObjectName?: string; + slug?: string; + }; +} +export interface PlatformResourcesRequirementsStatePatch { + configHash?: string | null; + configObjectName?: string | null; + requirementsHash?: string | null; + resourceId?: string | null; + secretsHash?: string | null; + secretsObjectName?: string | null; + slug?: string | null; +} +export interface UpdatePlatformResourcesRequirementsStateInput { + clientMutationId?: string; + id: string; + platformResourcesRequirementsStatePatch: PlatformResourcesRequirementsStatePatch; +} +export interface DeletePlatformResourcesRequirementsStateInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformResourcesResolvedRequirementInput { + clientMutationId?: string; + platformResourcesResolvedRequirement: { + atomId: string; + configObjectName?: string; + name?: string; + namespaceId: string; + present?: boolean; + realm?: string; + required?: boolean; + requirementKind?: string; + resourceId: string; + secretsObjectName?: string; + slug?: string; + }; +} +export interface PlatformResourcesResolvedRequirementPatch { + atomId?: string | null; + configObjectName?: string | null; + name?: string | null; + namespaceId?: string | null; + present?: boolean | null; + realm?: string | null; + required?: boolean | null; + requirementKind?: string | null; + resourceId?: string | null; + secretsObjectName?: string | null; + slug?: string | null; +} +export interface UpdatePlatformResourcesResolvedRequirementInput { + clientMutationId?: string; + id: string; + platformResourcesResolvedRequirementPatch: PlatformResourcesResolvedRequirementPatch; +} +export interface DeletePlatformResourcesResolvedRequirementInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformWebhookEndpointInput { + clientMutationId?: string; + platformWebhookEndpoint: { + active?: boolean; + createdBy?: string; + createdByPrincipal?: string; + functionDefinitionId: string; + host: string; + namespaceId: string; + path: string; + provider?: string; + replayWindowSeconds?: number; + signingSecretName: string; + updatedBy?: string; + updatedByPrincipal?: string; + }; +} +export interface PlatformWebhookEndpointPatch { + active?: boolean | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + functionDefinitionId?: string | null; + host?: string | null; + namespaceId?: string | null; + path?: string | null; + provider?: string | null; + replayWindowSeconds?: number | null; + signingSecretName?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdatePlatformWebhookEndpointInput { + clientMutationId?: string; + id: string; + platformWebhookEndpointPatch: PlatformWebhookEndpointPatch; +} +export interface DeletePlatformWebhookEndpointInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformWebhookEventInput { + clientMutationId?: string; + platformWebhookEvent: { + endpointId: string; + error?: string; + externalEventId: string; + invocationCreatedAt?: string; + invocationId?: string; + payload?: Record; + provider: string; + providerTimestamp?: string; + status?: string; + }; +} +export interface PlatformWebhookEventPatch { + endpointId?: string | null; + error?: string | null; + externalEventId?: string | null; + invocationCreatedAt?: string | null; + invocationId?: string | null; + payload?: Record | null; + provider?: string | null; + providerTimestamp?: string | null; + status?: string | null; +} +export interface UpdatePlatformWebhookEventInput { + clientMutationId?: string; + id: string; + platformWebhookEventPatch: PlatformWebhookEventPatch; +} +export interface DeletePlatformWebhookEventInput { + clientMutationId?: string; + id: string; +} +export interface CreateProposalCommentInput { + clientMutationId?: string; + proposalComment: { + actorId?: string; + attachments?: ConstructiveInternalTypeUpload[]; + body: string; + createdBy?: string; + createdByPrincipal?: string; + databaseId: string; + embedding?: number[]; + embeddingText?: string; + line?: number; + outdatedAt?: string; + path?: string; + proposalId: string; + resolvedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; + }; +} +export interface ProposalCommentPatch { + actorId?: string | null; + attachments?: ConstructiveInternalTypeUpload[] | null; + body?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + databaseId?: string | null; + embedding?: number[] | null; + embeddingText?: string | null; + line?: number | null; + outdatedAt?: string | null; + path?: string | null; + proposalId?: string | null; + resolvedAt?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdateProposalCommentInput { + clientMutationId?: string; + id: string; + proposalCommentPatch: ProposalCommentPatch; +} +export interface DeleteProposalCommentInput { + clientMutationId?: string; + id: string; +} +export interface CreateProposalInput { + clientMutationId?: string; + proposal: { + actorId?: string; + body?: string; + closedReason?: string; + createdBy?: string; + createdByPrincipal?: string; + databaseId: string; + decidedAt?: string; + dueAt?: string; + embedding?: number[]; + embeddingText?: string; + kind?: string; + labels?: string[]; + mergeCommit?: string; + mergeMethod?: string; + mergeRequestedAt?: string; + mergedAt?: string; + metadata?: Record; + parentId?: string; + priority?: string; + repositoryId: string; + resolution?: string; + sourceRef?: string; + status?: string; + targetRef?: string; + title: string; + updatedBy?: string; + updatedByPrincipal?: string; + }; +} +export interface ProposalPatch { + actorId?: string | null; + body?: string | null; + closedReason?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + databaseId?: string | null; + decidedAt?: string | null; + dueAt?: string | null; + embedding?: number[] | null; + embeddingText?: string | null; + kind?: string | null; + labels?: string[] | null; + mergeCommit?: string | null; + mergeMethod?: string | null; + mergeRequestedAt?: string | null; + mergedAt?: string | null; + metadata?: Record | null; + parentId?: string | null; + priority?: string | null; + repositoryId?: string | null; + resolution?: string | null; + sourceRef?: string | null; + status?: string | null; + targetRef?: string | null; + title?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdateProposalInput { + clientMutationId?: string; + id: string; + proposalPatch: ProposalPatch; +} +export interface DeleteProposalInput { + clientMutationId?: string; + id: string; +} +export interface CreateProposalFileViewInput { + clientMutationId?: string; + proposalFileView: { + blobSha: string; + createdByPrincipal?: string; + databaseId: string; + path: string; + proposalId: string; + reviewerId: string; + updatedByPrincipal?: string; + viewedAt?: string; + }; +} +export interface ProposalFileViewPatch { + blobSha?: string | null; + createdByPrincipal?: string | null; + databaseId?: string | null; + path?: string | null; + proposalId?: string | null; + reviewerId?: string | null; + updatedByPrincipal?: string | null; + viewedAt?: string | null; +} +export interface UpdateProposalFileViewInput { + clientMutationId?: string; + id: string; + proposalFileViewPatch: ProposalFileViewPatch; +} +export interface DeleteProposalFileViewInput { + clientMutationId?: string; + id: string; +} +export interface CreateProposalReactionInput { + clientMutationId?: string; + proposalReaction: { + actorId: string; + commentId?: string; + createdByPrincipal?: string; + databaseId: string; + emoji: string; + proposalId: string; + updatedByPrincipal?: string; + }; +} +export interface ProposalReactionPatch { + actorId?: string | null; + commentId?: string | null; + createdByPrincipal?: string | null; + databaseId?: string | null; + emoji?: string | null; + proposalId?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdateProposalReactionInput { + clientMutationId?: string; + id: string; + proposalReactionPatch: ProposalReactionPatch; +} +export interface DeleteProposalReactionInput { + clientMutationId?: string; + id: string; +} +export interface CreateProposalReviewInput { + clientMutationId?: string; + proposalReview: { + body?: string; + commitSha: string; + createdByPrincipal?: string; + databaseId: string; + proposalId: string; + reviewerId: string; + submittedAt?: string; + updatedByPrincipal?: string; + verdict: string; + }; +} +export interface ProposalReviewPatch { + body?: string | null; + commitSha?: string | null; + createdByPrincipal?: string | null; + databaseId?: string | null; + proposalId?: string | null; + reviewerId?: string | null; + submittedAt?: string | null; + updatedByPrincipal?: string | null; + verdict?: string | null; +} +export interface UpdateProposalReviewInput { + clientMutationId?: string; + id: string; + proposalReviewPatch: ProposalReviewPatch; +} +export interface DeleteProposalReviewInput { + clientMutationId?: string; + id: string; +} +export interface CreateProposalsChunkInput { + clientMutationId?: string; + proposalsChunk: { + actorId?: string; + body: string; + chunkIndex?: number; + databaseId?: string; + embedding?: number[]; + embeddingText?: string; + metadata?: Record; + proposalsId: string; + }; +} +export interface ProposalsChunkPatch { + actorId?: string | null; + body?: string | null; + chunkIndex?: number | null; + databaseId?: string | null; + embedding?: number[] | null; + embeddingText?: string | null; + metadata?: Record | null; + proposalsId?: string | null; +} +export interface UpdateProposalsChunkInput { + clientMutationId?: string; + id: string; + proposalsChunkPatch: ProposalsChunkPatch; +} +export interface DeleteProposalsChunkInput { + clientMutationId?: string; + id: string; +} +export interface CreateRegistryBindingInput { + clientMutationId?: string; + registryBinding: { + createdBy?: string; + createdByPrincipal?: string; + databaseId: string; + metadata?: Record; + namespaceId: string; + observedCredentialVersion?: string; + pullSecretName?: string; + realm?: string; + registryHost: string; + registryId: string; + status?: string; + updatedBy?: string; + updatedByPrincipal?: string; + }; +} +export interface RegistryBindingPatch { + createdBy?: string | null; + createdByPrincipal?: string | null; + databaseId?: string | null; + metadata?: Record | null; + namespaceId?: string | null; + observedCredentialVersion?: string | null; + pullSecretName?: string | null; + realm?: string | null; + registryHost?: string | null; + registryId?: string | null; + status?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdateRegistryBindingInput { + clientMutationId?: string; + id: string; + registryBindingPatch: RegistryBindingPatch; +} +export interface DeleteRegistryBindingInput { + clientMutationId?: string; + id: string; +} +export interface CreateRegistryInput { + clientMutationId?: string; + registry: { + authMode?: string; + basePath?: string; + createdByPrincipal?: string; + credentialSecretName?: string; + databaseId: string; + host?: string; + installationId?: string; + isPublished?: boolean; + kind: string; + labels?: Record; + lastError?: string; + metadata?: Record; + name: string; + platformOnly?: boolean; + role?: string; + status?: string; + updatedByPrincipal?: string; + }; +} +export interface RegistryPatch { + authMode?: string | null; + basePath?: string | null; + createdByPrincipal?: string | null; + credentialSecretName?: string | null; + databaseId?: string | null; + host?: string | null; + installationId?: string | null; + isPublished?: boolean | null; + kind?: string | null; + labels?: Record | null; + lastError?: string | null; + metadata?: Record | null; + name?: string | null; + platformOnly?: boolean | null; + role?: string | null; + status?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdateRegistryInput { + clientMutationId?: string; + id: string; + registryPatch: RegistryPatch; +} +export interface DeleteRegistryInput { + clientMutationId?: string; + id: string; +} +export interface CreateRegistryGrantInput { + clientMutationId?: string; + registryGrant: { + actions?: string[]; + createdByPrincipal?: string; + databaseId: string; + expiresAt?: string; + grantedBy?: string; + granteeKey: string; + granteeScope: string; + registryId: string; + updatedByPrincipal?: string; + }; +} +export interface RegistryGrantPatch { + actions?: string[] | null; + createdByPrincipal?: string | null; + databaseId?: string | null; + expiresAt?: string | null; + grantedBy?: string | null; + granteeKey?: string | null; + granteeScope?: string | null; + registryId?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdateRegistryGrantInput { + clientMutationId?: string; + id: string; + registryGrantPatch: RegistryGrantPatch; +} +export interface DeleteRegistryGrantInput { + clientMutationId?: string; + id: string; +} +export interface CreateRepositoryInput { + clientMutationId?: string; + repository: { + cloneUrl?: string; + createdBy?: string; + createdByPrincipal?: string; + databaseId: string; + defaultBranch?: string; + description?: string; + embedding?: number[]; + embeddingText?: string; + externalId?: string; + isArchived?: boolean; + metadata?: Record; + name: string; + ownerId?: string; + provider?: string; + slug: string; + updatedBy?: string; + updatedByPrincipal?: string; + visibility?: string; + }; +} +export interface RepositoryPatch { + cloneUrl?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + databaseId?: string | null; + defaultBranch?: string | null; + description?: string | null; + embedding?: number[] | null; + embeddingText?: string | null; + externalId?: string | null; + isArchived?: boolean | null; + metadata?: Record | null; + name?: string | null; + ownerId?: string | null; + provider?: string | null; + slug?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; + visibility?: string | null; +} +export interface UpdateRepositoryInput { + clientMutationId?: string; + id: string; + repositoryPatch: RepositoryPatch; +} +export interface DeleteRepositoryInput { + clientMutationId?: string; + id: string; +} +export interface CreateRepositoryEventInput { + clientMutationId?: string; + repositoryEvent: { + actorId?: string; + commitSha?: string; + createdByPrincipal?: string; + databaseId: string; + deliveryId?: string; + eventType: string; + metadata?: Record; + payload?: Record; + ref?: string; + repositoryId: string; + updatedByPrincipal?: string; + }; +} +export interface RepositoryEventPatch { + actorId?: string | null; + commitSha?: string | null; + createdByPrincipal?: string | null; + databaseId?: string | null; + deliveryId?: string | null; + eventType?: string | null; + metadata?: Record | null; + payload?: Record | null; + ref?: string | null; + repositoryId?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdateRepositoryEventInput { + clientMutationId?: string; + id: string; + repositoryEventPatch: RepositoryEventPatch; +} +export interface DeleteRepositoryEventInput { + clientMutationId?: string; + id: string; +} +export interface CreateRepositoryRequiredCheckInput { + clientMutationId?: string; + repositoryRequiredCheck: { + databaseId: string; + repositoryId: string; + workflowId: string; + }; +} +export interface RepositoryRequiredCheckPatch { + databaseId?: string | null; + repositoryId?: string | null; + workflowId?: string | null; +} +export interface UpdateRepositoryRequiredCheckInput { + clientMutationId?: string; + id: string; + repositoryRequiredCheckPatch: RepositoryRequiredCheckPatch; +} +export interface DeleteRepositoryRequiredCheckInput { + clientMutationId?: string; + id: string; +} +export interface CreateRepositoryWorkflowInput { + clientMutationId?: string; + repositoryWorkflow: { + cancelInProgress?: boolean; + concurrencyKey?: string; + createdBy?: string; + createdByPrincipal?: string; + databaseId: string; + eventType: string; + graphId?: string; + inputs?: Record; + isEnabled?: boolean; + name: string; + refPattern?: string; + repositoryId: string; + requiredSecrets?: string[]; + slug: string; + updatedBy?: string; + updatedByPrincipal?: string; + }; +} +export interface RepositoryWorkflowPatch { + cancelInProgress?: boolean | null; + concurrencyKey?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + databaseId?: string | null; + eventType?: string | null; + graphId?: string | null; + inputs?: Record | null; + isEnabled?: boolean | null; + name?: string | null; + refPattern?: string | null; + repositoryId?: string | null; + requiredSecrets?: string[] | null; + slug?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdateRepositoryWorkflowInput { + clientMutationId?: string; + id: string; + repositoryWorkflowPatch: RepositoryWorkflowPatch; +} +export interface DeleteRepositoryWorkflowInput { + clientMutationId?: string; + id: string; +} +export interface CreateResourceInput { + clientMutationId?: string; + resource: { + annotations?: Record; + createdBy?: string; + createdByPrincipal?: string; + databaseId: string; + errorCount?: number; + imageRef?: string; + installationId?: string; + integrations?: string[]; + kind: string; + labels?: Record; + lastError?: string; + lastHeartbeatAt?: string; + name: string; + namespaceId: string; + realm?: string; + requiredConfigs?: ResourceRequirementInput[]; + requiredSecrets?: ResourceRequirementInput[]; + resourceDefinitionId?: string; + slug: string; + spec?: Record; + status?: string; + statusObserved?: Record; + updatedBy?: string; + updatedByPrincipal?: string; + }; +} +export interface ResourcePatch { + annotations?: Record | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + databaseId?: string | null; + errorCount?: number | null; + imageRef?: string | null; + installationId?: string | null; + integrations?: string[] | null; + kind?: string | null; + labels?: Record | null; + lastError?: string | null; + lastHeartbeatAt?: string | null; + name?: string | null; + namespaceId?: string | null; + realm?: string | null; + requiredConfigs?: ResourceRequirementInput[] | null; + requiredSecrets?: ResourceRequirementInput[] | null; + resourceDefinitionId?: string | null; + slug?: string | null; + spec?: Record | null; + status?: string | null; + statusObserved?: Record | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdateResourceInput { + clientMutationId?: string; + id: string; + resourcePatch: ResourcePatch; +} +export interface DeleteResourceInput { + clientMutationId?: string; + id: string; +} +export interface CreateResourceDeclaredCapacityInput { + clientMutationId?: string; + resourceDeclaredCapacity: { + cpuLimitMillicores?: string; + cpuRequestMillicores?: string; + installationId: string; + isTransient?: boolean; + kind?: string; + memoryLimitBytes?: string; + memoryRequestBytes?: string; + namespaceId: string; + podCountMax?: number; + podCountMin?: number; + source?: string; + sourceId: string; + storageSizeBytes?: string; + storageTotalBytes?: string; + }; +} +export interface ResourceDeclaredCapacityPatch { + cpuLimitMillicores?: string | null; + cpuRequestMillicores?: string | null; + installationId?: string | null; + isTransient?: boolean | null; + kind?: string | null; + memoryLimitBytes?: string | null; + memoryRequestBytes?: string | null; + namespaceId?: string | null; + podCountMax?: number | null; + podCountMin?: number | null; + source?: string | null; + sourceId?: string | null; + storageSizeBytes?: string | null; + storageTotalBytes?: string | null; +} +export interface UpdateResourceDeclaredCapacityInput { + clientMutationId?: string; + id: string; + resourceDeclaredCapacityPatch: ResourceDeclaredCapacityPatch; +} +export interface DeleteResourceDeclaredCapacityInput { + clientMutationId?: string; + id: string; +} +export interface CreateResourceDefinitionInput { + clientMutationId?: string; + resourceDefinition: { + annotations?: Record; + createdBy?: string; + createdByPrincipal?: string; + databaseId: string; + defaultSpec?: Record; description?: string; + integrations?: string[]; kind: string; - label?: string; + labels?: Record; + name: string; + namespaceId: string; + paramsSchema?: Record; + requiredConfigs?: ResourceRequirementInput[]; + requiredSecrets?: ResourceRequirementInput[]; + slug: string; + stepUpMinAge?: IntervalInput; + updatedBy?: string; + updatedByPrincipal?: string; + }; +} +export interface ResourceDefinitionPatch { + annotations?: Record | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + databaseId?: string | null; + defaultSpec?: Record | null; + description?: string | null; + integrations?: string[] | null; + kind?: string | null; + labels?: Record | null; + name?: string | null; + namespaceId?: string | null; + paramsSchema?: Record | null; + requiredConfigs?: ResourceRequirementInput[] | null; + requiredSecrets?: ResourceRequirementInput[] | null; + slug?: string | null; + stepUpMinAge?: IntervalInput | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdateResourceDefinitionInput { + clientMutationId?: string; + id: string; + resourceDefinitionPatch: ResourceDefinitionPatch; +} +export interface DeleteResourceDefinitionInput { + clientMutationId?: string; + id: string; +} +export interface CreateResourceEventInput { + clientMutationId?: string; + resourceEvent: { + actorId?: string; + databaseId: string; + eventType: string; + message?: string; + metadata?: Record; + resourceId: string; + }; +} +export interface ResourceEventPatch { + actorId?: string | null; + databaseId?: string | null; + eventType?: string | null; + message?: string | null; + metadata?: Record | null; + resourceId?: string | null; +} +export interface UpdateResourceEventInput { + clientMutationId?: string; + id: string; + resourceEventPatch: ResourceEventPatch; +} +export interface DeleteResourceEventInput { + clientMutationId?: string; + id: string; +} +export interface CreateResourceInstallationInput { + clientMutationId?: string; + resourceInstallation: { + commitId?: string; + createdBy?: string; + createdByPrincipal?: string; + databaseId: string; + name: string; + namespaceId: string; + params?: Record; + revision?: number; slug: string; + status?: string; storeId?: string; + updatedBy?: string; + updatedByPrincipal?: string; }; } -export interface ContentPresetPatch { - active?: boolean | null; +export interface ResourceInstallationPatch { commitId?: string | null; - definition?: Record | null; - description?: string | null; - kind?: string | null; - label?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + databaseId?: string | null; + name?: string | null; + namespaceId?: string | null; + params?: Record | null; + revision?: number | null; slug?: string | null; + status?: string | null; storeId?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; } -export interface UpdateContentPresetInput { +export interface UpdateResourceInstallationInput { clientMutationId?: string; id: string; - contentPresetPatch: ContentPresetPatch; + resourceInstallationPatch: ResourceInstallationPatch; } -export interface DeleteContentPresetInput { +export interface DeleteResourceInstallationInput { clientMutationId?: string; id: string; } -export interface CreateDbPresetInput { +export interface CreateResourceObservedStorageInput { clientMutationId?: string; - dbPreset: { - active?: boolean; - commitId?: string; - definition: Record; - description?: string; - label?: string; - modulesHash?: string; - slug: string; - storeId?: string; + resourceObservedStorage: { + capacity?: string; + capacityBytes?: string; + claimName?: string; + declaredStorageClass?: string; + declaredStorageSizeBytes?: string; + declaredStorageTotalBytes?: string; + installationId: string; + isBound?: boolean; + kind?: string; + namespaceId: string; + phase?: string; + requested?: string; + requestedBytes?: string; + resourceId: string; + resourceStatus?: string; + slug?: string; + storageClass?: string; + storageName?: string; }; } -export interface DbPresetPatch { - active?: boolean | null; - commitId?: string | null; - definition?: Record | null; - description?: string | null; - label?: string | null; - modulesHash?: string | null; +export interface ResourceObservedStoragePatch { + capacity?: string | null; + capacityBytes?: string | null; + claimName?: string | null; + declaredStorageClass?: string | null; + declaredStorageSizeBytes?: string | null; + declaredStorageTotalBytes?: string | null; + installationId?: string | null; + isBound?: boolean | null; + kind?: string | null; + namespaceId?: string | null; + phase?: string | null; + requested?: string | null; + requestedBytes?: string | null; + resourceId?: string | null; + resourceStatus?: string | null; slug?: string | null; - storeId?: string | null; + storageClass?: string | null; + storageName?: string | null; } -export interface UpdateDbPresetInput { +export interface UpdateResourceObservedStorageInput { clientMutationId?: string; id: string; - dbPresetPatch: DbPresetPatch; + resourceObservedStoragePatch: ResourceObservedStoragePatch; } -export interface DeleteDbPresetInput { +export interface DeleteResourceObservedStorageInput { clientMutationId?: string; id: string; } -export interface CreateFunctionApiBindingInput { +export interface CreateResourceStatusCheckInput { clientMutationId?: string; - functionApiBinding: { - alias?: string; - apiId: string; - config?: Record; - functionDefinitionId: string; + resourceStatusCheck: { + completedAt?: string; + databaseId: string; + requestedAt?: string; + requestedBy?: string; + resourceId: string; + result?: Record; + status?: string; }; } -export interface FunctionApiBindingPatch { - alias?: string | null; - apiId?: string | null; - config?: Record | null; - functionDefinitionId?: string | null; +export interface ResourceStatusCheckPatch { + completedAt?: string | null; + databaseId?: string | null; + requestedAt?: string | null; + requestedBy?: string | null; + resourceId?: string | null; + result?: Record | null; + status?: string | null; } -export interface UpdateFunctionApiBindingInput { +export interface UpdateResourceStatusCheckInput { clientMutationId?: string; id: string; - functionApiBindingPatch: FunctionApiBindingPatch; + resourceStatusCheckPatch: ResourceStatusCheckPatch; } -export interface DeleteFunctionApiBindingInput { +export interface DeleteResourceStatusCheckInput { clientMutationId?: string; id: string; } -export interface CreateFunctionCapabilityBindingInput { +export interface CreateResourceUsageLogInput { clientMutationId?: string; - functionCapabilityBinding: { - bucketId?: string; + resourceUsageLog: { + cpuMillicores?: string; databaseId: string; - functionId?: string; - graphId?: string; - key?: string; - lifecycle: string; - metadata?: Record; + intervalSeconds: number; + memoryBytes?: string; + metrics?: Record; + namespaceId: string; + resourceId?: string; + sampledAt?: string; + source: string; }; } -export interface FunctionCapabilityBindingPatch { - bucketId?: string | null; +export interface ResourceUsageLogPatch { + cpuMillicores?: string | null; databaseId?: string | null; - functionId?: string | null; - graphId?: string | null; - key?: string | null; - lifecycle?: string | null; - metadata?: Record | null; + intervalSeconds?: number | null; + memoryBytes?: string | null; + metrics?: Record | null; + namespaceId?: string | null; + resourceId?: string | null; + sampledAt?: string | null; + source?: string | null; } -export interface UpdateFunctionCapabilityBindingInput { +export interface UpdateResourceUsageLogInput { clientMutationId?: string; id: string; - functionCapabilityBindingPatch: FunctionCapabilityBindingPatch; + resourceUsageLogPatch: ResourceUsageLogPatch; } -export interface DeleteFunctionCapabilityBindingInput { +export interface DeleteResourceUsageLogInput { clientMutationId?: string; id: string; } -export interface CreateFunctionDefinitionInput { +export interface CreateResourceUsageSummaryInput { clientMutationId?: string; - functionDefinition: { - accessChannels?: string[]; - category: string; - concurrency?: number; + resourceUsageSummary: { databaseId: string; - description?: string; - fnCategory?: string; - functionColumns?: Record; - graphId?: string; - icon?: string; - image?: string; - inputs?: Record; - integrations?: string[]; - isPublished?: boolean; - maxAttempts?: number; - moduleTable?: string; - name: string; - outputs?: Record; - payloadArgs?: Record; - priority?: number; - props?: Record; - protected?: boolean; - publishedAt?: string; - queueName?: string; - requiredBuckets?: string[]; - requiredConfigs?: ResourceRequirementInput[]; - requiredModels?: string[]; - requiredModules?: string[]; - requiredSecrets?: ResourceRequirementInput[]; - resources?: Record; - runtime?: string; - scaleMax?: number; - scaleMin?: number; - targetFunction?: string; - targetSchema?: string; - timeoutSeconds?: number; - volatile?: boolean; + date: string; + gbSeconds?: string; + maxCpuMillicores?: string; + maxMemoryBytes?: string; + namespaceId: string; + resourceId?: string; + runtimeSeconds?: string; + sampleCount?: number; }; } -export interface FunctionDefinitionPatch { - accessChannels?: string[] | null; - category?: string | null; - concurrency?: number | null; +export interface ResourceUsageSummaryPatch { databaseId?: string | null; - description?: string | null; - fnCategory?: string | null; - functionColumns?: Record | null; - graphId?: string | null; - icon?: string | null; - image?: string | null; - inputs?: Record | null; - integrations?: string[] | null; - isPublished?: boolean | null; - maxAttempts?: number | null; - moduleTable?: string | null; - name?: string | null; - outputs?: Record | null; - payloadArgs?: Record | null; - priority?: number | null; - props?: Record | null; - protected?: boolean | null; - publishedAt?: string | null; - queueName?: string | null; - requiredBuckets?: string[] | null; - requiredConfigs?: ResourceRequirementInput[] | null; - requiredModels?: string[] | null; - requiredModules?: string[] | null; - requiredSecrets?: ResourceRequirementInput[] | null; - resources?: Record | null; - runtime?: string | null; - scaleMax?: number | null; - scaleMin?: number | null; - targetFunction?: string | null; - targetSchema?: string | null; - timeoutSeconds?: number | null; - volatile?: boolean | null; + date?: string | null; + gbSeconds?: string | null; + maxCpuMillicores?: string | null; + maxMemoryBytes?: string | null; + namespaceId?: string | null; + resourceId?: string | null; + runtimeSeconds?: string | null; + sampleCount?: number | null; +} +export interface UpdateResourceUsageSummaryInput { + clientMutationId?: string; + id: string; + resourceUsageSummaryPatch: ResourceUsageSummaryPatch; +} +export interface DeleteResourceUsageSummaryInput { + clientMutationId?: string; + id: string; +} +export interface CreateResourceUtilizationInput { + clientMutationId?: string; + resourceUtilization: { + avgMemoryBytes?: string; + cpuLimitMillicores?: string; + cpuPeakUtilization?: string; + cpuRequestHeadroomMillicores?: string; + cpuRequestMillicores?: string; + date?: string; + gbSeconds?: string; + kind?: string; + maxCpuMillicores?: string; + maxMemoryBytes?: string; + memoryLimitBytes?: string; + memoryPeakUtilization?: string; + memoryRequestBytes?: string; + memoryRequestHeadroomBytes?: string; + namespaceId: string; + replicas?: number; + resourceId: string; + runtimeSeconds?: string; + sampleCount?: number; + }; +} +export interface ResourceUtilizationPatch { + avgMemoryBytes?: string | null; + cpuLimitMillicores?: string | null; + cpuPeakUtilization?: string | null; + cpuRequestHeadroomMillicores?: string | null; + cpuRequestMillicores?: string | null; + date?: string | null; + gbSeconds?: string | null; + kind?: string | null; + maxCpuMillicores?: string | null; + maxMemoryBytes?: string | null; + memoryLimitBytes?: string | null; + memoryPeakUtilization?: string | null; + memoryRequestBytes?: string | null; + memoryRequestHeadroomBytes?: string | null; + namespaceId?: string | null; + replicas?: number | null; + resourceId?: string | null; + runtimeSeconds?: string | null; + sampleCount?: number | null; } -export interface UpdateFunctionDefinitionInput { +export interface UpdateResourceUtilizationInput { clientMutationId?: string; id: string; - functionDefinitionPatch: FunctionDefinitionPatch; + resourceUtilizationPatch: ResourceUtilizationPatch; } -export interface DeleteFunctionDefinitionInput { +export interface DeleteResourceUtilizationInput { clientMutationId?: string; id: string; } -export interface CreateFunctionDeploymentInput { +export interface CreateResourcesHealthInput { clientMutationId?: string; - functionDeployment: { + resourcesHealth: { annotations?: Record; - concurrency?: number; + cpuLimitMillicores?: string; + cpuRequestMillicores?: string; + createdBy?: string; + createdByPrincipal?: string; databaseId: string; errorCount?: number; - handlerName?: string; - image: string; - imageVersion?: string; + imageRef?: string; + installationId: string; + integrations?: string[]; + kind?: string; labels?: Record; lastError?: string; - lastErrorAt?: string; + lastHeartbeatAt?: string; + memoryLimitBytes?: string; + memoryRequestBytes?: string; + name?: string; namespaceId: string; realm?: string; - resources?: Record; - revision?: number; - scaleMax?: number; - scaleMin?: number; - serviceName?: string; - serviceUrl?: string; + replicas?: number; + requiredConfigs?: ResourceRequirement[]; + requiredSecrets?: ResourceRequirement[]; + resourceDefinitionId: string; + slug?: string; + spec?: Record; status?: string; - timeoutSeconds?: number; + statusDetail?: string; + statusObserved?: Record; + storageClass?: string; + storageSizeBytes?: string; + storageTotalBytes?: string; + updatedBy?: string; + updatedByPrincipal?: string; }; } -export interface FunctionDeploymentPatch { +export interface ResourcesHealthPatch { annotations?: Record | null; - concurrency?: number | null; + cpuLimitMillicores?: string | null; + cpuRequestMillicores?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; databaseId?: string | null; errorCount?: number | null; - handlerName?: string | null; - image?: string | null; - imageVersion?: string | null; + imageRef?: string | null; + installationId?: string | null; + integrations?: string[] | null; + kind?: string | null; labels?: Record | null; lastError?: string | null; - lastErrorAt?: string | null; + lastHeartbeatAt?: string | null; + memoryLimitBytes?: string | null; + memoryRequestBytes?: string | null; + name?: string | null; namespaceId?: string | null; realm?: string | null; - resources?: Record | null; - revision?: number | null; - scaleMax?: number | null; - scaleMin?: number | null; - serviceName?: string | null; - serviceUrl?: string | null; + replicas?: number | null; + requiredConfigs?: ResourceRequirement[] | null; + requiredSecrets?: ResourceRequirement[] | null; + resourceDefinitionId?: string | null; + slug?: string | null; + spec?: Record | null; status?: string | null; - timeoutSeconds?: number | null; + statusDetail?: string | null; + statusObserved?: Record | null; + storageClass?: string | null; + storageSizeBytes?: string | null; + storageTotalBytes?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; } -export interface UpdateFunctionDeploymentInput { +export interface UpdateResourcesHealthInput { clientMutationId?: string; id: string; - functionDeploymentPatch: FunctionDeploymentPatch; + resourcesHealthPatch: ResourcesHealthPatch; } -export interface DeleteFunctionDeploymentInput { +export interface DeleteResourcesHealthInput { clientMutationId?: string; id: string; } -export interface CreateFunctionDeploymentEventInput { +export interface CreateResourcesRequirementsStateInput { clientMutationId?: string; - functionDeploymentEvent: { - actorId?: string; + resourcesRequirementsState: { + configHash?: string; + configObjectName?: string; + requirementsHash?: string; + resourceId: string; + secretsHash?: string; + secretsObjectName?: string; + slug?: string; + }; +} +export interface ResourcesRequirementsStatePatch { + configHash?: string | null; + configObjectName?: string | null; + requirementsHash?: string | null; + resourceId?: string | null; + secretsHash?: string | null; + secretsObjectName?: string | null; + slug?: string | null; +} +export interface UpdateResourcesRequirementsStateInput { + clientMutationId?: string; + id: string; + resourcesRequirementsStatePatch: ResourcesRequirementsStatePatch; +} +export interface DeleteResourcesRequirementsStateInput { + clientMutationId?: string; + id: string; +} +export interface CreateResourcesResolvedRequirementInput { + clientMutationId?: string; + resourcesResolvedRequirement: { + atomId: string; + configObjectName?: string; + name?: string; + namespaceId: string; + present?: boolean; + realm?: string; + required?: boolean; + requirementKind?: string; + resourceId: string; + secretsObjectName?: string; + slug?: string; + }; +} +export interface ResourcesResolvedRequirementPatch { + atomId?: string | null; + configObjectName?: string | null; + name?: string | null; + namespaceId?: string | null; + present?: boolean | null; + realm?: string | null; + required?: boolean | null; + requirementKind?: string | null; + resourceId?: string | null; + secretsObjectName?: string | null; + slug?: string | null; +} +export interface UpdateResourcesResolvedRequirementInput { + clientMutationId?: string; + id: string; + resourcesResolvedRequirementPatch: ResourcesResolvedRequirementPatch; +} +export interface DeleteResourcesResolvedRequirementInput { + clientMutationId?: string; + id: string; +} +export interface CreateWebhookEndpointInput { + clientMutationId?: string; + webhookEndpoint: { + active?: boolean; + createdBy?: string; + createdByPrincipal?: string; databaseId: string; - deploymentId: string; - eventType: string; - message?: string; - metadata?: Record; + functionDefinitionId: string; + host: string; + namespaceId: string; + path: string; + provider?: string; + replayWindowSeconds?: number; + signingSecretName: string; + updatedBy?: string; + updatedByPrincipal?: string; }; } -export interface FunctionDeploymentEventPatch { - actorId?: string | null; +export interface WebhookEndpointPatch { + active?: boolean | null; + createdBy?: string | null; + createdByPrincipal?: string | null; databaseId?: string | null; - deploymentId?: string | null; - eventType?: string | null; - message?: string | null; - metadata?: Record | null; + functionDefinitionId?: string | null; + host?: string | null; + namespaceId?: string | null; + path?: string | null; + provider?: string | null; + replayWindowSeconds?: number | null; + signingSecretName?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; } -export interface UpdateFunctionDeploymentEventInput { +export interface UpdateWebhookEndpointInput { clientMutationId?: string; id: string; - functionDeploymentEventPatch: FunctionDeploymentEventPatch; + webhookEndpointPatch: WebhookEndpointPatch; } -export interface DeleteFunctionDeploymentEventInput { +export interface DeleteWebhookEndpointInput { clientMutationId?: string; id: string; } -export interface CreateFunctionExecutionLogInput { +export interface CreateWebhookEventInput { clientMutationId?: string; - functionExecutionLog: { - actorId?: string; + webhookEvent: { databaseId: string; + endpointId: string; + error?: string; + externalEventId: string; + invocationCreatedAt?: string; invocationId?: string; - logLevel?: string; - message: string; - metadata?: Record; - taskIdentifier?: string; + payload?: Record; + provider: string; + providerTimestamp?: string; + status?: string; }; } -export interface FunctionExecutionLogPatch { - actorId?: string | null; +export interface WebhookEventPatch { databaseId?: string | null; + endpointId?: string | null; + error?: string | null; + externalEventId?: string | null; + invocationCreatedAt?: string | null; invocationId?: string | null; - logLevel?: string | null; - message?: string | null; - metadata?: Record | null; - taskIdentifier?: string | null; + payload?: Record | null; + provider?: string | null; + providerTimestamp?: string | null; + status?: string | null; } -export interface UpdateFunctionExecutionLogInput { +export interface UpdateWebhookEventInput { + clientMutationId?: string; + id: string; + webhookEventPatch: WebhookEventPatch; +} +export interface DeleteWebhookEventInput { + clientMutationId?: string; + id: string; +} +// ============ Connection Fields Map ============ +export const connectionFieldsMap = { + DatabaseFunctionGraph: { + databaseFunctionGraphExecutionsByGraphId: 'DatabaseFunctionGraphExecution', + functionDefinitionsByGraphId: 'FunctionDefinition', + repositoryWorkflowsByGraphId: 'RepositoryWorkflow', + }, + FunctionApiBinding: { + functionInvocationsByApiBindingId: 'FunctionInvocation', + }, + FunctionDefinition: { + functionApiBindings: 'FunctionApiBinding', + functionCapabilityBindingsByFunctionId: 'FunctionCapabilityBinding', + webhookEndpoints: 'WebhookEndpoint', + }, + FunctionGraph: { + functionGraphExecutionsByGraphId: 'FunctionGraphExecution', + platformFunctionDefinitionsByGraphId: 'PlatformFunctionDefinition', + platformRepositoryWorkflowsByGraphId: 'PlatformRepositoryWorkflow', + }, + Image: { + imageGrants: 'ImageGrant', + }, + Namespace: { + builderBindings: 'BuilderBinding', + functionDeployments: 'FunctionDeployment', + registryBindings: 'RegistryBinding', + resourceDefinitions: 'ResourceDefinition', + resourceInstallations: 'ResourceInstallation', + resources: 'Resource', + webhookEndpoints: 'WebhookEndpoint', + }, + PlatformFunctionApiBinding: { + platformFunctionInvocationsByApiBindingId: 'PlatformFunctionInvocation', + }, + PlatformFunctionDefinition: { + platformFunctionApiBindingsByFunctionDefinitionId: 'PlatformFunctionApiBinding', + platformFunctionCapabilityBindingsByFunctionId: 'PlatformFunctionCapabilityBinding', + platformWebhookEndpointsByFunctionDefinitionId: 'PlatformWebhookEndpoint', + }, + PlatformImage: { + platformImageGrantsByImageId: 'PlatformImageGrant', + }, + PlatformNamespace: { + platformBuilderBindingsByNamespaceId: 'PlatformBuilderBinding', + platformFunctionDeploymentsByNamespaceId: 'PlatformFunctionDeployment', + platformRegistryBindingsByNamespaceId: 'PlatformRegistryBinding', + platformResourceDefinitionsByNamespaceId: 'PlatformResourceDefinition', + platformResourceInstallationsByNamespaceId: 'PlatformResourceInstallation', + platformResourcesByNamespaceId: 'PlatformResource', + platformWebhookEndpointsByNamespaceId: 'PlatformWebhookEndpoint', + }, + PlatformProposalComment: { + platformProposalReactionsByCommentId: 'PlatformProposalReaction', + }, + PlatformProposal: { + childPlatformProposals: 'PlatformProposal', + platformBuildsByProposalId: 'PlatformBuild', + platformProposalCommentsByProposalId: 'PlatformProposalComment', + platformProposalFileViewsByProposalId: 'PlatformProposalFileView', + platformProposalReactionsByProposalId: 'PlatformProposalReaction', + platformProposalReviewsByProposalId: 'PlatformProposalReview', + platformProposalsChunksByPlatformProposalsId: 'PlatformProposalsChunk', + }, + PlatformRegistry: { + platformRegistryBindingsByRegistryId: 'PlatformRegistryBinding', + platformRegistryGrantsByRegistryId: 'PlatformRegistryGrant', + }, + PlatformRepository: { + platformBuildsByRepositoryId: 'PlatformBuild', + platformProposalsByRepositoryId: 'PlatformProposal', + platformRepositoryEventsByRepositoryId: 'PlatformRepositoryEvent', + platformRepositoryRequiredChecksByRepositoryId: 'PlatformRepositoryRequiredCheck', + platformRepositoryWorkflowsByRepositoryId: 'PlatformRepositoryWorkflow', + }, + PlatformRepositoryEvent: { + platformBuildsByEventId: 'PlatformBuild', + }, + PlatformRepositoryWorkflow: { + platformBuildsByWorkflowId: 'PlatformBuild', + platformRepositoryRequiredChecksByWorkflowId: 'PlatformRepositoryRequiredCheck', + }, + PlatformResource: { + platformResourceStatusChecksByResourceId: 'PlatformResourceStatusCheck', + }, + PlatformResourceDefinition: { + platformResourcesByResourceDefinitionId: 'PlatformResource', + }, + PlatformResourceInstallation: { + platformRegistriesByInstallationId: 'PlatformRegistry', + platformResourcesByInstallationId: 'PlatformResource', + }, + PlatformWebhookEndpoint: { + platformWebhookEventsByEndpointId: 'PlatformWebhookEvent', + }, + ProposalComment: { + proposalReactionsByCommentId: 'ProposalReaction', + }, + Proposal: { + builds: 'Build', + childProposals: 'Proposal', + proposalComments: 'ProposalComment', + proposalFileViews: 'ProposalFileView', + proposalReactions: 'ProposalReaction', + proposalReviews: 'ProposalReview', + proposalsChunksByProposalsId: 'ProposalsChunk', + }, + Registry: { + registryBindings: 'RegistryBinding', + registryGrants: 'RegistryGrant', + }, + Repository: { + builds: 'Build', + proposals: 'Proposal', + repositoryEvents: 'RepositoryEvent', + repositoryRequiredChecks: 'RepositoryRequiredCheck', + repositoryWorkflows: 'RepositoryWorkflow', + }, + RepositoryEvent: { + buildsByEventId: 'Build', + }, + RepositoryWorkflow: { + buildsByWorkflowId: 'Build', + repositoryRequiredChecksByWorkflowId: 'RepositoryRequiredCheck', + }, + Resource: { + resourceStatusChecks: 'ResourceStatusCheck', + }, + ResourceDefinition: { + resources: 'Resource', + }, + ResourceInstallation: { + registriesByInstallationId: 'Registry', + resourcesByInstallationId: 'Resource', + }, + WebhookEndpoint: { + webhookEventsByEndpointId: 'WebhookEvent', + }, +} as Record>; +// ============ Custom Input Types (from schema) ============ +export interface AddEdgeInput { clientMutationId?: string; - id: string; - functionExecutionLogPatch: FunctionExecutionLogPatch; + context?: string; + dstNode?: string; + dstPort?: string; + graphName?: string; + rootHash?: string; + scopeId?: string; + srcNode?: string; + srcPort?: string; } -export interface DeleteFunctionExecutionLogInput { +export interface AddEdgeAndSaveInput { clientMutationId?: string; - id: string; + dstNode?: string; + dstPort?: string; + graphId?: string; + message?: string; + srcNode?: string; + srcPort?: string; } -export interface CreateFunctionGraphCommitInput { +export interface AddNodeInput { clientMutationId?: string; - functionGraphCommit: { - authorId?: string; - committerId?: string; - date?: string; - message?: string; - parentIds?: string[]; - scopeId: string; - storeId: string; - treeId?: string; - }; -} -export interface FunctionGraphCommitPatch { - authorId?: string | null; - committerId?: string | null; - date?: string | null; - message?: string | null; - parentIds?: string[] | null; - scopeId?: string | null; - storeId?: string | null; - treeId?: string | null; + context?: string; + graphName?: string; + meta?: Record; + nodeName?: string; + nodeType?: string; + props?: Record; + rootHash?: string; + scopeId?: string; } -export interface UpdateFunctionGraphCommitInput { +export interface AddNodeAndSaveInput { clientMutationId?: string; - id: string; - functionGraphCommitPatch: FunctionGraphCommitPatch; + graphId?: string; + message?: string; + meta?: Record; + nodeName?: string; + nodeType?: string; + props?: Record; } -export interface DeleteFunctionGraphCommitInput { +export interface ApproveNodeInput { + approved?: boolean; clientMutationId?: string; - id: string; + executionId?: string; + feedback?: Record; + nodeName?: string; } -export interface CreateFunctionGraphInput { +export interface CopyGraphInput { clientMutationId?: string; - functionGraph: { - context?: string; - createdBy?: string; - definitionsCommitId: string; - description?: string; - isValid?: boolean; - name?: string; - scopeId: string; - storeId: string; - validationErrors?: Record; - }; -} -export interface FunctionGraphPatch { - context?: string | null; - createdBy?: string | null; - definitionsCommitId?: string | null; - description?: string | null; - isValid?: boolean | null; - name?: string | null; - scopeId?: string | null; - storeId?: string | null; - validationErrors?: Record | null; + graphId?: string; + name?: string; + scopeId?: string; } -export interface UpdateFunctionGraphInput { +export interface DatabaseAddEdgeInput { clientMutationId?: string; - id: string; - functionGraphPatch: FunctionGraphPatch; + context?: string; + databaseId?: string; + dstNode?: string; + dstPort?: string; + graphName?: string; + rootHash?: string; + srcNode?: string; + srcPort?: string; } -export interface DeleteFunctionGraphInput { +export interface DatabaseAddEdgeAndSaveInput { clientMutationId?: string; - id: string; + dstNode?: string; + dstPort?: string; + graphId?: string; + message?: string; + srcNode?: string; + srcPort?: string; } -export interface CreateFunctionGraphExecutionInput { +export interface DatabaseAddNodeInput { clientMutationId?: string; - functionGraphExecution: { - actorId?: string; - completedAt?: string; - currentWave?: number; - definitionsCommitId?: string; - entityId?: string; - entityType?: string; - errorCode?: string; - errorMessage?: string; - executionPlan?: Record; - graphId: string; - inputPayload?: Record; - invocationCreatedAt?: string; - invocationId?: string; - lastProgressAt?: string; - maxPendingJobs?: number; - maxTicks?: number; - nodeOutputs?: Record; - organizationId?: string; - outputNames?: string[]; - outputNode?: string; - outputPayload?: Record; - outputPort?: string; - parentExecutionId?: string; - parentInvocationId?: string; - parentNodeName?: string; - principalId?: string; - scopeId: string; - startedAt?: string; - status?: string; - tickCount?: number; - timeoutAt?: string; - }; -} -export interface FunctionGraphExecutionPatch { - actorId?: string | null; - completedAt?: string | null; - currentWave?: number | null; - definitionsCommitId?: string | null; - entityId?: string | null; - entityType?: string | null; - errorCode?: string | null; - errorMessage?: string | null; - executionPlan?: Record | null; - graphId?: string | null; - inputPayload?: Record | null; - invocationCreatedAt?: string | null; - invocationId?: string | null; - lastProgressAt?: string | null; - maxPendingJobs?: number | null; - maxTicks?: number | null; - nodeOutputs?: Record | null; - organizationId?: string | null; - outputNames?: string[] | null; - outputNode?: string | null; - outputPayload?: Record | null; - outputPort?: string | null; - parentExecutionId?: string | null; - parentInvocationId?: string | null; - parentNodeName?: string | null; - principalId?: string | null; - scopeId?: string | null; - startedAt?: string | null; - status?: string | null; - tickCount?: number | null; - timeoutAt?: string | null; + context?: string; + databaseId?: string; + graphName?: string; + meta?: Record; + nodeName?: string; + nodeType?: string; + props?: Record; + rootHash?: string; } -export interface UpdateFunctionGraphExecutionInput { +export interface DatabaseAddNodeAndSaveInput { clientMutationId?: string; - id: string; - functionGraphExecutionPatch: FunctionGraphExecutionPatch; + graphId?: string; + message?: string; + meta?: Record; + nodeName?: string; + nodeType?: string; + props?: Record; } -export interface DeleteFunctionGraphExecutionInput { +export interface DatabaseApproveNodeInput { + approved?: boolean; clientMutationId?: string; - id: string; + executionId?: string; + feedback?: Record; + nodeName?: string; } -export interface CreateFunctionGraphExecutionNodeStateInput { +export interface DatabaseCopyGraphInput { clientMutationId?: string; - functionGraphExecutionNodeState: { - callbackInputs?: Record; - callbackMeta?: Record; - callbackTokenHash?: string; - completedAt?: string; - errorCode?: string; - errorMessage?: string; - executionId: string; - nodeName: string; - nodePath?: string[]; - outputId?: string; - scopeId: string; - startedAt?: string; - status?: string; - }; + databaseId?: string; + graphId?: string; + name?: string; } -export interface FunctionGraphExecutionNodeStatePatch { - callbackInputs?: Record | null; - callbackMeta?: Record | null; - callbackTokenHash?: string | null; - completedAt?: string | null; - errorCode?: string | null; - errorMessage?: string | null; - executionId?: string | null; - nodeName?: string | null; - nodePath?: string[] | null; - outputId?: string | null; - scopeId?: string | null; - startedAt?: string | null; - status?: string | null; +export interface DatabaseCreateFunctionGraphInput { + clientMutationId?: string; + context?: string; + createdBy?: string; + databaseId?: string; + definitionsCommitId?: string; + description?: string; + name?: string; } -export interface UpdateFunctionGraphExecutionNodeStateInput { +export interface DatabaseGraphInitEmptyRepoInput { clientMutationId?: string; - id: string; - functionGraphExecutionNodeStatePatch: FunctionGraphExecutionNodeStatePatch; + sId?: string; + storeId?: string; } -export interface DeleteFunctionGraphExecutionNodeStateInput { +export interface DatabaseGraphInsertNodeAtPathInput { clientMutationId?: string; - id: string; + data?: Record; + kids?: string[]; + ktree?: string[]; + path?: string[]; + root?: string; + sId?: string; } -export interface CreateFunctionGraphExecutionOutputInput { +export interface DatabaseGraphInsertNodesAtPathsInput { clientMutationId?: string; - functionGraphExecutionOutput: { - data: Record; - hash: Base64EncodedBinary; - scopeId: string; - }; + datas?: Record[]; + kidsList?: Record; + ktreeList?: Record; + paths?: Record; + root?: string; + sId?: string; } -export interface FunctionGraphExecutionOutputPatch { - data?: Record | null; - hash?: Base64EncodedBinary | null; - scopeId?: string | null; +export interface DatabaseGraphSetAndCommitInput { + clientMutationId?: string; + data?: Record; + kids?: string[]; + ktree?: string[]; + message?: string; + path?: string[]; + refname?: string; + sId?: string; + storeId?: string; } -export interface UpdateFunctionGraphExecutionOutputInput { +export interface DatabaseGraphSetDataAtPathInput { clientMutationId?: string; - id: string; - functionGraphExecutionOutputPatch: FunctionGraphExecutionOutputPatch; + data?: Record; + path?: string[]; + root?: string; + sId?: string; } -export interface DeleteFunctionGraphExecutionOutputInput { +export interface DatabaseGraphSetManyAndCommitInput { clientMutationId?: string; - id: string; + entries?: Record; + message?: string; + refname?: string; + sId?: string; + storeId?: string; } -export interface CreateFunctionGraphObjectInput { +export interface DatabaseImportDefinitionsInput { clientMutationId?: string; - functionGraphObject: { - data?: Record; - kids?: string[]; - ktree?: string[]; - scopeId: string; - }; + contexts?: string[]; + graphId?: string; + sourceCommitId?: string; + sourceScopeId?: string; } -export interface FunctionGraphObjectPatch { - data?: Record | null; - kids?: string[] | null; - ktree?: string[] | null; - scopeId?: string | null; +export interface DatabaseImportGraphJsonInput { + clientMutationId?: string; + context?: string; + createdBy?: string; + databaseId?: string; + definitionsCommitId?: string; + description?: string; + graphJson?: Record; + name?: string; } -export interface UpdateFunctionGraphObjectInput { +export interface DatabaseSaveGraphInput { clientMutationId?: string; - id: string; - functionGraphObjectPatch: FunctionGraphObjectPatch; + graphId?: string; + message?: string; + rootHash?: string; } -export interface DeleteFunctionGraphObjectInput { +export interface DatabaseStartExecutionInput { clientMutationId?: string; - id: string; + graphId?: string; + inputPayload?: Record; + maxPendingJobs?: number; + maxTicks?: number; + outputNames?: string[]; + outputNode?: string; + outputPort?: string; + parentExecutionId?: string; + parentNodeName?: string; + timeoutInterval?: IntervalInput; } -export interface CreateFunctionGraphRefInput { +export interface DatabaseValidateFunctionGraphInput { clientMutationId?: string; - functionGraphRef: { - commitId?: string; - name: string; - scopeId: string; - storeId: string; - }; + graphId?: string; } -export interface FunctionGraphRefPatch { - commitId?: string | null; - name?: string | null; - scopeId?: string | null; - storeId?: string | null; +export interface FunctionInvocationsCreateSyncInput { + clientMutationId?: string; + entityId?: string; + payload?: Record; + provenance?: Record; + routeBindingId?: string; + taskIdentifier?: string; } -export interface UpdateFunctionGraphRefInput { +export interface ImportDefinitionsInput { clientMutationId?: string; - id: string; - functionGraphRefPatch: FunctionGraphRefPatch; + contexts?: string[]; + graphId?: string; + sourceCommitId?: string; + sourceScopeId?: string; } -export interface DeleteFunctionGraphRefInput { +export interface ImportGraphJsonInput { clientMutationId?: string; - id: string; + context?: string; + createdBy?: string; + definitionsCommitId?: string; + description?: string; + graphJson?: Record; + name?: string; + scopeId?: string; } -export interface CreateFunctionGraphStoreInput { +export interface InfraInitEmptyRepoInput { clientMutationId?: string; - functionGraphStore: { - hash?: string; - name: string; - scopeId: string; - }; + sId?: string; + storeId?: string; } -export interface FunctionGraphStorePatch { - hash?: string | null; - name?: string | null; - scopeId?: string | null; +export interface InfraInsertNodeAtPathInput { + clientMutationId?: string; + data?: Record; + kids?: string[]; + ktree?: string[]; + path?: string[]; + root?: string; + sId?: string; } -export interface UpdateFunctionGraphStoreInput { +export interface InfraInsertNodesAtPathsInput { clientMutationId?: string; - id: string; - functionGraphStorePatch: FunctionGraphStorePatch; + datas?: Record[]; + kidsList?: Record; + ktreeList?: Record; + paths?: Record; + root?: string; + sId?: string; } -export interface DeleteFunctionGraphStoreInput { +export interface InfraSetAndCommitInput { clientMutationId?: string; - id: string; + data?: Record; + kids?: string[]; + ktree?: string[]; + message?: string; + path?: string[]; + refname?: string; + sId?: string; + storeId?: string; } -export interface CreateFunctionInvocationAttemptInput { +export interface InfraSetDataAtPathInput { clientMutationId?: string; - functionInvocationAttempt: { - actorId?: string; - attempt: number; - databaseId: string; - durationMs?: number; - error?: string; - errorDetail?: Record; - invocationCreatedAt: string; - invocationId: string; - startedAt?: string; - success: boolean; - taskIdentifier: string; - }; + data?: Record; + path?: string[]; + root?: string; + sId?: string; } -export interface FunctionInvocationAttemptPatch { - actorId?: string | null; - attempt?: number | null; - databaseId?: string | null; - durationMs?: number | null; - error?: string | null; - errorDetail?: Record | null; - invocationCreatedAt?: string | null; - invocationId?: string | null; - startedAt?: string | null; - success?: boolean | null; - taskIdentifier?: string | null; +export interface InfraSetManyAndCommitInput { + clientMutationId?: string; + entries?: Record; + message?: string; + refname?: string; + sId?: string; + storeId?: string; } -export interface UpdateFunctionInvocationAttemptInput { +export interface InitEmptyRepoInput { clientMutationId?: string; - id: string; - functionInvocationAttemptPatch: FunctionInvocationAttemptPatch; + sId?: string; + storeId?: string; } -export interface DeleteFunctionInvocationAttemptInput { +export interface InsertNodeAtPathInput { clientMutationId?: string; - id: string; + data?: Record; + kids?: string[]; + ktree?: string[]; + path?: string[]; + root?: string; + sId?: string; } -export interface CreateFunctionInvocationInput { +export interface InsertNodesAtPathsInput { clientMutationId?: string; - functionInvocation: { - actorId?: string; - apiBindingId?: string; - channel?: string; - completedAt?: string; - databaseId: string; - definitionScope?: string; - durationMs?: number; - error?: string; - functionDefinitionId?: string; - graphExecutionId?: string; - jobId?: string; - parentInvocationId?: string; - payload?: Record; - provenance?: Record; - result?: Record; - startedAt?: string; - status?: string; - taskIdentifier: string; - }; + datas?: Record[]; + kidsList?: Record; + ktreeList?: Record; + paths?: Record; + root?: string; + sId?: string; } -export interface FunctionInvocationPatch { - actorId?: string | null; - apiBindingId?: string | null; - channel?: string | null; - completedAt?: string | null; - databaseId?: string | null; - definitionScope?: string | null; - durationMs?: number | null; - error?: string | null; - functionDefinitionId?: string | null; - graphExecutionId?: string | null; - jobId?: string | null; - parentInvocationId?: string | null; - payload?: Record | null; - provenance?: Record | null; - result?: Record | null; - startedAt?: string | null; - status?: string | null; - taskIdentifier?: string | null; +export interface PlatformFunctionInvocationsCreateSyncInput { + clientMutationId?: string; + entityId?: string; + payload?: Record; + provenance?: Record; + routeBindingId?: string; + taskIdentifier?: string; } -export interface UpdateFunctionInvocationInput { +export interface PlatformInfraInitEmptyRepoInput { clientMutationId?: string; - id: string; - functionInvocationPatch: FunctionInvocationPatch; + sId?: string; + storeId?: string; } -export interface DeleteFunctionInvocationInput { +export interface PlatformInfraInsertNodeAtPathInput { clientMutationId?: string; - id: string; + data?: Record; + kids?: string[]; + ktree?: string[]; + path?: string[]; + root?: string; + sId?: string; } -export interface CreateGetAllTreeNodesRecordInput { +export interface PlatformInfraInsertNodesAtPathsInput { clientMutationId?: string; - getAllTreeNodesRecord: { - data?: Record; - path?: string[]; - }; + datas?: Record[]; + kidsList?: Record; + ktreeList?: Record; + paths?: Record; + root?: string; + sId?: string; } -export interface GetAllTreeNodesRecordPatch { - data?: Record | null; - path?: string[] | null; +export interface PlatformInfraSetAndCommitInput { + clientMutationId?: string; + data?: Record; + kids?: string[]; + ktree?: string[]; + message?: string; + path?: string[]; + refname?: string; + sId?: string; + storeId?: string; } -export interface UpdateGetAllTreeNodesRecordInput { +export interface PlatformInfraSetDataAtPathInput { clientMutationId?: string; - id: string; - getAllTreeNodesRecordPatch: GetAllTreeNodesRecordPatch; + data?: Record; + path?: string[]; + root?: string; + sId?: string; } -export interface DeleteGetAllTreeNodesRecordInput { +export interface PlatformInfraSetManyAndCommitInput { clientMutationId?: string; - id: string; + entries?: Record; + message?: string; + refname?: string; + sId?: string; + storeId?: string; } -export interface CreateInfraCommitInput { +export interface PlatformResourceInstallationsInstallInput { clientMutationId?: string; - infraCommit: { - authorId?: string; - committerId?: string; - databaseId: string; - date?: string; - message?: string; - parentIds?: string[]; - storeId: string; - treeId?: string; - }; + definitionIds?: string[]; + name?: string; + namespaceId?: string; + newParams?: Record; + slug?: string; } -export interface InfraCommitPatch { - authorId?: string | null; - committerId?: string | null; - databaseId?: string | null; - date?: string | null; - message?: string | null; - parentIds?: string[] | null; - storeId?: string | null; - treeId?: string | null; +export interface PlatformResourceInstallationsRollbackInput { + clientMutationId?: string; + commitId?: string; + targetInstallationId?: string; } -export interface UpdateInfraCommitInput { +export interface PlatformResourceInstallationsUninstallInput { clientMutationId?: string; - id: string; - infraCommitPatch: InfraCommitPatch; + targetInstallationId?: string; } -export interface DeleteInfraCommitInput { +export interface PlatformResourceInstallationsUpgradeInput { clientMutationId?: string; - id: string; + newParams?: Record; + targetInstallationId?: string; } -export interface CreateInfraGetAllTreeNodesRecordInput { +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 ResourceInstallationsInstallInput { clientMutationId?: string; - infraGetAllTreeNodesRecord: { - data?: Record; - path?: string[]; - }; + definitionIds?: string[]; + name?: string; + namespaceId?: string; + newParams?: Record; + slug?: string; } -export interface InfraGetAllTreeNodesRecordPatch { - data?: Record | null; - path?: string[] | null; +export interface ResourceInstallationsRollbackInput { + clientMutationId?: string; + commitId?: string; + targetInstallationId?: string; } -export interface UpdateInfraGetAllTreeNodesRecordInput { +export interface ResourceInstallationsUninstallInput { clientMutationId?: string; - id: string; - infraGetAllTreeNodesRecordPatch: InfraGetAllTreeNodesRecordPatch; + targetInstallationId?: string; } -export interface DeleteInfraGetAllTreeNodesRecordInput { +export interface ResourceInstallationsUpgradeInput { clientMutationId?: string; - id: string; + newParams?: Record; + targetInstallationId?: string; } -export interface CreateInfraObjectInput { +export interface SaveGraphInput { clientMutationId?: string; - infraObject: { - data?: Record; - databaseId: string; - kids?: string[]; - ktree?: string[]; - }; + graphId?: string; + message?: string; + rootHash?: string; } -export interface InfraObjectPatch { - data?: Record | null; - databaseId?: string | null; - kids?: string[] | null; - ktree?: string[] | null; +export interface SetAndCommitInput { + clientMutationId?: string; + data?: Record; + kids?: string[]; + ktree?: string[]; + message?: string; + path?: string[]; + refname?: string; + sId?: string; + storeId?: string; } -export interface UpdateInfraObjectInput { +export interface SetDataAtPathInput { clientMutationId?: string; - id: string; - infraObjectPatch: InfraObjectPatch; + data?: Record; + path?: string[]; + root?: string; + sId?: string; } -export interface DeleteInfraObjectInput { +export interface SetManyAndCommitInput { clientMutationId?: string; - id: string; + entries?: Record; + message?: string; + refname?: string; + sId?: string; + storeId?: string; +} +export interface StartExecutionInput { + clientMutationId?: string; + graphId?: string; + inputPayload?: Record; + maxPendingJobs?: number; + maxTicks?: number; + outputNames?: string[]; + outputNode?: string; + outputPort?: string; + parentExecutionId?: string; + parentNodeName?: string; + timeoutInterval?: IntervalInput; } -export interface CreateInfraRefInput { +export interface ValidateFunctionGraphInput { clientMutationId?: string; - infraRef: { - commitId?: string; - databaseId: string; - name: string; - storeId: string; - }; + graphId?: string; } -export interface InfraRefPatch { - commitId?: string | null; - databaseId?: string | null; - name?: string | null; - storeId?: string | null; +/** A filter to be used against ConstructiveInternalTypeUpload fields. All fields are combined with a logical ‘and.’ */ +export interface ConstructiveInternalTypeUploadFilter { + /** Contained by the specified JSON. */ + containedBy?: ConstructiveInternalTypeUpload; + /** Contains the specified JSON. */ + contains?: ConstructiveInternalTypeUpload; + /** Contains all of the specified keys. */ + containsAllKeys?: string[]; + /** Contains any of the specified keys. */ + containsAnyKeys?: string[]; + /** Contains the specified key. */ + containsKey?: string; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: ConstructiveInternalTypeUpload; + /** Equal to the specified value. */ + equalTo?: ConstructiveInternalTypeUpload; + /** Greater than the specified value. */ + greaterThan?: ConstructiveInternalTypeUpload; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: ConstructiveInternalTypeUpload; + /** Included in the specified list. */ + in?: ConstructiveInternalTypeUpload[]; + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Less than the specified value. */ + lessThan?: ConstructiveInternalTypeUpload; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: ConstructiveInternalTypeUpload; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: ConstructiveInternalTypeUpload; + /** Not equal to the specified value. */ + notEqualTo?: ConstructiveInternalTypeUpload; + /** Not included in the specified list. */ + notIn?: ConstructiveInternalTypeUpload[]; } -export interface UpdateInfraRefInput { - clientMutationId?: string; - id: string; - infraRefPatch: InfraRefPatch; +/** A filter to be used against many `DatabaseFunctionGraphExecution` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseFunctionGraphToManyDatabaseFunctionGraphExecutionFilter { + /** Filters to entities where every related entity matches. */ + every?: DatabaseFunctionGraphExecutionFilter; + /** Filters to entities where no related entity matches. */ + none?: DatabaseFunctionGraphExecutionFilter; + /** Filters to entities where at least one related entity matches. */ + some?: DatabaseFunctionGraphExecutionFilter; } -export interface DeleteInfraRefInput { - clientMutationId?: string; - id: string; +/** A filter to be used against many `FunctionDefinition` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseFunctionGraphToManyFunctionDefinitionFilter { + /** Filters to entities where every related entity matches. */ + every?: FunctionDefinitionFilter; + /** Filters to entities where no related entity matches. */ + none?: FunctionDefinitionFilter; + /** Filters to entities where at least one related entity matches. */ + some?: FunctionDefinitionFilter; } -export interface CreateInfraStoreInput { - clientMutationId?: string; - infraStore: { - databaseId: string; - hash?: string; - name: string; - }; +/** A filter to be used against many `RepositoryWorkflow` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseFunctionGraphToManyRepositoryWorkflowFilter { + /** Filters to entities where every related entity matches. */ + every?: RepositoryWorkflowFilter; + /** Filters to entities where no related entity matches. */ + none?: RepositoryWorkflowFilter; + /** Filters to entities where at least one related entity matches. */ + some?: RepositoryWorkflowFilter; } -export interface InfraStorePatch { - databaseId?: string | null; - hash?: string | null; - name?: string | null; +/** A filter to be used against Base64EncodedBinary fields. All fields are combined with a logical ‘and.’ */ +export interface Base64EncodedBinaryFilter { + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: Base64EncodedBinary; + /** Equal to the specified value. */ + equalTo?: Base64EncodedBinary; + /** Included in the specified list. */ + in?: Base64EncodedBinary[]; + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: Base64EncodedBinary; + /** Not equal to the specified value. */ + notEqualTo?: Base64EncodedBinary; + /** Not included in the specified list. */ + notIn?: Base64EncodedBinary[]; } -export interface UpdateInfraStoreInput { - clientMutationId?: string; - id: string; - infraStorePatch: InfraStorePatch; +/** A filter to be used against many `FunctionInvocation` object types. All fields are combined with a logical ‘and.’ */ +export interface FunctionApiBindingToManyFunctionInvocationFilter { + /** Filters to entities where every related entity matches. */ + every?: FunctionInvocationFilter; + /** Filters to entities where no related entity matches. */ + none?: FunctionInvocationFilter; + /** Filters to entities where at least one related entity matches. */ + some?: FunctionInvocationFilter; } -export interface DeleteInfraStoreInput { - clientMutationId?: string; - id: string; +/** A filter to be used against many `FunctionApiBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface FunctionDefinitionToManyFunctionApiBindingFilter { + /** Filters to entities where every related entity matches. */ + every?: FunctionApiBindingFilter; + /** Filters to entities where no related entity matches. */ + none?: FunctionApiBindingFilter; + /** Filters to entities where at least one related entity matches. */ + some?: FunctionApiBindingFilter; } -export interface CreateIntegrationProviderInput { - clientMutationId?: string; - integrationProvider: { - brand?: Record; - category?: string; - description?: string; - icon?: string; - logo?: ConstructiveInternalTypeImage; - name: string; - requiredConfigs?: ResourceRequirementInput[]; - requiredSecrets?: ResourceRequirementInput[]; - slug: string; - }; +/** A filter to be used against many `FunctionCapabilityBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface FunctionDefinitionToManyFunctionCapabilityBindingFilter { + /** Filters to entities where every related entity matches. */ + every?: FunctionCapabilityBindingFilter; + /** Filters to entities where no related entity matches. */ + none?: FunctionCapabilityBindingFilter; + /** Filters to entities where at least one related entity matches. */ + some?: FunctionCapabilityBindingFilter; } -export interface IntegrationProviderPatch { - brand?: Record | null; - category?: string | null; - description?: string | null; - icon?: string | null; - logo?: ConstructiveInternalTypeImage | null; - logoUpload?: File | null; - name?: string | null; - requiredConfigs?: ResourceRequirementInput[] | null; - requiredSecrets?: ResourceRequirementInput[] | null; - slug?: string | null; +/** A filter to be used against many `WebhookEndpoint` object types. All fields are combined with a logical ‘and.’ */ +export interface FunctionDefinitionToManyWebhookEndpointFilter { + /** Filters to entities where every related entity matches. */ + every?: WebhookEndpointFilter; + /** Filters to entities where no related entity matches. */ + none?: WebhookEndpointFilter; + /** Filters to entities where at least one related entity matches. */ + some?: WebhookEndpointFilter; } -export interface UpdateIntegrationProviderInput { - clientMutationId?: string; - id: string; - integrationProviderPatch: IntegrationProviderPatch; +/** A filter to be used against many `FunctionGraphExecution` object types. All fields are combined with a logical ‘and.’ */ +export interface FunctionGraphToManyFunctionGraphExecutionFilter { + /** Filters to entities where every related entity matches. */ + every?: FunctionGraphExecutionFilter; + /** Filters to entities where no related entity matches. */ + none?: FunctionGraphExecutionFilter; + /** Filters to entities where at least one related entity matches. */ + some?: FunctionGraphExecutionFilter; } -export interface DeleteIntegrationProviderInput { - clientMutationId?: string; - id: string; +/** A filter to be used against many `PlatformFunctionDefinition` object types. All fields are combined with a logical ‘and.’ */ +export interface FunctionGraphToManyPlatformFunctionDefinitionFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformFunctionDefinitionFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformFunctionDefinitionFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformFunctionDefinitionFilter; } -export interface CreateNamespaceInput { - clientMutationId?: string; - namespace: { - annotations?: Record; - databaseId: string; - description?: string; - isActive?: boolean; - isManaged?: boolean; - labels?: Record; - lastError?: string; - name: string; - namespaceName: string; - status?: string; - }; +/** A filter to be used against many `PlatformRepositoryWorkflow` object types. All fields are combined with a logical ‘and.’ */ +export interface FunctionGraphToManyPlatformRepositoryWorkflowFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformRepositoryWorkflowFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformRepositoryWorkflowFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformRepositoryWorkflowFilter; } -export interface NamespacePatch { - annotations?: Record | null; - databaseId?: string | null; - description?: string | null; - isActive?: boolean | null; - isManaged?: boolean | null; - labels?: Record | null; - lastError?: string | null; - name?: string | null; - namespaceName?: string | null; - status?: string | null; +/** A filter to be used against many `ImageGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface ImageToManyImageGrantFilter { + /** Filters to entities where every related entity matches. */ + every?: ImageGrantFilter; + /** Filters to entities where no related entity matches. */ + none?: ImageGrantFilter; + /** Filters to entities where at least one related entity matches. */ + some?: ImageGrantFilter; } -export interface UpdateNamespaceInput { - clientMutationId?: string; - id: string; - namespacePatch: NamespacePatch; +/** A filter to be used against ConstructiveInternalTypeImage fields. All fields are combined with a logical ‘and.’ */ +export interface ConstructiveInternalTypeImageFilter { + /** Contained by the specified JSON. */ + containedBy?: ConstructiveInternalTypeImage; + /** Contains the specified JSON. */ + contains?: ConstructiveInternalTypeImage; + /** Contains all of the specified keys. */ + containsAllKeys?: string[]; + /** Contains any of the specified keys. */ + containsAnyKeys?: string[]; + /** Contains the specified key. */ + containsKey?: string; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: ConstructiveInternalTypeImage; + /** Equal to the specified value. */ + equalTo?: ConstructiveInternalTypeImage; + /** Greater than the specified value. */ + greaterThan?: ConstructiveInternalTypeImage; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: ConstructiveInternalTypeImage; + /** Included in the specified list. */ + in?: ConstructiveInternalTypeImage[]; + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Less than the specified value. */ + lessThan?: ConstructiveInternalTypeImage; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: ConstructiveInternalTypeImage; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: ConstructiveInternalTypeImage; + /** Not equal to the specified value. */ + notEqualTo?: ConstructiveInternalTypeImage; + /** Not included in the specified list. */ + notIn?: ConstructiveInternalTypeImage[]; } -export interface DeleteNamespaceInput { - clientMutationId?: string; - id: string; +/** A filter to be used against many `BuilderBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface NamespaceToManyBuilderBindingFilter { + /** Filters to entities where every related entity matches. */ + every?: BuilderBindingFilter; + /** Filters to entities where no related entity matches. */ + none?: BuilderBindingFilter; + /** Filters to entities where at least one related entity matches. */ + some?: BuilderBindingFilter; } -export interface CreateNamespaceEventInput { - clientMutationId?: string; - namespaceEvent: { - actorId?: string; - databaseId: string; - eventType: string; - message?: string; - metadata?: Record; - namespaceId: string; - }; +/** A filter to be used against many `FunctionDeployment` object types. All fields are combined with a logical ‘and.’ */ +export interface NamespaceToManyFunctionDeploymentFilter { + /** Filters to entities where every related entity matches. */ + every?: FunctionDeploymentFilter; + /** Filters to entities where no related entity matches. */ + none?: FunctionDeploymentFilter; + /** Filters to entities where at least one related entity matches. */ + some?: FunctionDeploymentFilter; } -export interface NamespaceEventPatch { - actorId?: string | null; - databaseId?: string | null; - eventType?: string | null; - message?: string | null; - metadata?: Record | null; - namespaceId?: string | null; +/** A filter to be used against many `RegistryBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface NamespaceToManyRegistryBindingFilter { + /** Filters to entities where every related entity matches. */ + every?: RegistryBindingFilter; + /** Filters to entities where no related entity matches. */ + none?: RegistryBindingFilter; + /** Filters to entities where at least one related entity matches. */ + some?: RegistryBindingFilter; } -export interface UpdateNamespaceEventInput { - clientMutationId?: string; - id: string; - namespaceEventPatch: NamespaceEventPatch; +/** A filter to be used against many `ResourceDefinition` object types. All fields are combined with a logical ‘and.’ */ +export interface NamespaceToManyResourceDefinitionFilter { + /** Filters to entities where every related entity matches. */ + every?: ResourceDefinitionFilter; + /** Filters to entities where no related entity matches. */ + none?: ResourceDefinitionFilter; + /** Filters to entities where at least one related entity matches. */ + some?: ResourceDefinitionFilter; } -export interface DeleteNamespaceEventInput { - clientMutationId?: string; - id: string; +/** A filter to be used against many `ResourceInstallation` object types. All fields are combined with a logical ‘and.’ */ +export interface NamespaceToManyResourceInstallationFilter { + /** Filters to entities where every related entity matches. */ + every?: ResourceInstallationFilter; + /** Filters to entities where no related entity matches. */ + none?: ResourceInstallationFilter; + /** Filters to entities where at least one related entity matches. */ + some?: ResourceInstallationFilter; } -export interface CreatePlatformFunctionApiBindingInput { - clientMutationId?: string; - platformFunctionApiBinding: { - alias?: string; - apiId: string; - config?: Record; - functionDefinitionId: string; - }; +/** A filter to be used against many `Resource` object types. All fields are combined with a logical ‘and.’ */ +export interface NamespaceToManyResourceFilter { + /** Filters to entities where every related entity matches. */ + every?: ResourceFilter; + /** Filters to entities where no related entity matches. */ + none?: ResourceFilter; + /** Filters to entities where at least one related entity matches. */ + some?: ResourceFilter; } -export interface PlatformFunctionApiBindingPatch { - alias?: string | null; - apiId?: string | null; - config?: Record | null; - functionDefinitionId?: string | null; +/** A filter to be used against many `WebhookEndpoint` object types. All fields are combined with a logical ‘and.’ */ +export interface NamespaceToManyWebhookEndpointFilter { + /** Filters to entities where every related entity matches. */ + every?: WebhookEndpointFilter; + /** Filters to entities where no related entity matches. */ + none?: WebhookEndpointFilter; + /** Filters to entities where at least one related entity matches. */ + some?: WebhookEndpointFilter; } -export interface UpdatePlatformFunctionApiBindingInput { - clientMutationId?: string; - id: string; - platformFunctionApiBindingPatch: PlatformFunctionApiBindingPatch; +/** A filter to be used against many `PlatformFunctionInvocation` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformFunctionApiBindingToManyPlatformFunctionInvocationFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformFunctionInvocationFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformFunctionInvocationFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformFunctionInvocationFilter; } -export interface DeletePlatformFunctionApiBindingInput { - clientMutationId?: string; - id: string; +/** A filter to be used against many `PlatformFunctionApiBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformFunctionDefinitionToManyPlatformFunctionApiBindingFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformFunctionApiBindingFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformFunctionApiBindingFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformFunctionApiBindingFilter; } -export interface CreatePlatformFunctionCapabilityBindingInput { - clientMutationId?: string; - platformFunctionCapabilityBinding: { - bucketId?: string; - functionId?: string; - graphId?: string; - key?: string; - lifecycle: string; - metadata?: Record; - }; +/** A filter to be used against many `PlatformFunctionCapabilityBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformFunctionDefinitionToManyPlatformFunctionCapabilityBindingFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformFunctionCapabilityBindingFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformFunctionCapabilityBindingFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformFunctionCapabilityBindingFilter; } -export interface PlatformFunctionCapabilityBindingPatch { - bucketId?: string | null; - functionId?: string | null; - graphId?: string | null; - key?: string | null; - lifecycle?: string | null; - metadata?: Record | null; +/** A filter to be used against many `PlatformWebhookEndpoint` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformFunctionDefinitionToManyPlatformWebhookEndpointFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformWebhookEndpointFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformWebhookEndpointFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformWebhookEndpointFilter; } -export interface UpdatePlatformFunctionCapabilityBindingInput { - clientMutationId?: string; - id: string; - platformFunctionCapabilityBindingPatch: PlatformFunctionCapabilityBindingPatch; +/** A filter to be used against many `PlatformImageGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformImageToManyPlatformImageGrantFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformImageGrantFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformImageGrantFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformImageGrantFilter; } -export interface DeletePlatformFunctionCapabilityBindingInput { - clientMutationId?: string; - id: string; +/** A filter to be used against many `PlatformBuilderBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformNamespaceToManyPlatformBuilderBindingFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformBuilderBindingFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformBuilderBindingFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformBuilderBindingFilter; } -export interface CreatePlatformFunctionDefinitionInput { - clientMutationId?: string; - platformFunctionDefinition: { - accessChannels?: string[]; - billable?: boolean; - category: string; - concurrency?: number; - description?: string; - fnCategory?: string; - functionColumns?: Record; - graphId?: string; - icon?: string; - image?: string; - inputs?: Record; - integrations?: string[]; - isPublished?: boolean; - maxAttempts?: number; - moduleTable?: string; - name: string; - outputs?: Record; - payloadArgs?: Record; - priority?: number; - props?: Record; - protected?: boolean; - publishedAt?: string; - queueName?: string; - requiredBuckets?: string[]; - requiredConfigs?: ResourceRequirementInput[]; - requiredModels?: string[]; - requiredModules?: string[]; - requiredSecrets?: ResourceRequirementInput[]; - resources?: Record; - runtime?: string; - scaleMax?: number; - scaleMin?: number; - system?: boolean; - targetFunction?: string; - targetSchema?: string; - timeoutSeconds?: number; - volatile?: boolean; - }; +/** A filter to be used against many `PlatformFunctionDeployment` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformNamespaceToManyPlatformFunctionDeploymentFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformFunctionDeploymentFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformFunctionDeploymentFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformFunctionDeploymentFilter; } -export interface PlatformFunctionDefinitionPatch { - accessChannels?: string[] | null; - billable?: boolean | null; - category?: string | null; - concurrency?: number | null; - description?: string | null; - fnCategory?: string | null; - functionColumns?: Record | null; - graphId?: string | null; - icon?: string | null; - image?: string | null; - inputs?: Record | null; - integrations?: string[] | null; - isPublished?: boolean | null; - maxAttempts?: number | null; - moduleTable?: string | null; - name?: string | null; - outputs?: Record | null; - payloadArgs?: Record | null; - priority?: number | null; - props?: Record | null; - protected?: boolean | null; - publishedAt?: string | null; - queueName?: string | null; - requiredBuckets?: string[] | null; - requiredConfigs?: ResourceRequirementInput[] | null; - requiredModels?: string[] | null; - requiredModules?: string[] | null; - requiredSecrets?: ResourceRequirementInput[] | null; - resources?: Record | null; - runtime?: string | null; - scaleMax?: number | null; - scaleMin?: number | null; - system?: boolean | null; - targetFunction?: string | null; - targetSchema?: string | null; - timeoutSeconds?: number | null; - volatile?: boolean | null; +/** A filter to be used against many `PlatformRegistryBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformNamespaceToManyPlatformRegistryBindingFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformRegistryBindingFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformRegistryBindingFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformRegistryBindingFilter; } -export interface UpdatePlatformFunctionDefinitionInput { - clientMutationId?: string; - id: string; - platformFunctionDefinitionPatch: PlatformFunctionDefinitionPatch; +/** A filter to be used against many `PlatformResourceDefinition` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformNamespaceToManyPlatformResourceDefinitionFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformResourceDefinitionFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformResourceDefinitionFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformResourceDefinitionFilter; } -export interface DeletePlatformFunctionDefinitionInput { - clientMutationId?: string; - id: string; +/** A filter to be used against many `PlatformResourceInstallation` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformNamespaceToManyPlatformResourceInstallationFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformResourceInstallationFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformResourceInstallationFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformResourceInstallationFilter; +} +/** A filter to be used against many `PlatformResource` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformNamespaceToManyPlatformResourceFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformResourceFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformResourceFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformResourceFilter; } -export interface CreatePlatformFunctionDeploymentInput { - clientMutationId?: string; - platformFunctionDeployment: { - annotations?: Record; - concurrency?: number; - errorCount?: number; - handlerName?: string; - image: string; - imageVersion?: string; - labels?: Record; - lastError?: string; - lastErrorAt?: string; - namespaceId: string; - realm?: string; - resources?: Record; - revision?: number; - scaleMax?: number; - scaleMin?: number; - serviceName?: string; - serviceUrl?: string; - status?: string; - timeoutSeconds?: number; - }; +/** A filter to be used against many `PlatformWebhookEndpoint` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformNamespaceToManyPlatformWebhookEndpointFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformWebhookEndpointFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformWebhookEndpointFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformWebhookEndpointFilter; } -export interface PlatformFunctionDeploymentPatch { - annotations?: Record | null; - concurrency?: number | null; - errorCount?: number | null; - handlerName?: string | null; - image?: string | null; - imageVersion?: string | null; - labels?: Record | null; - lastError?: string | null; - lastErrorAt?: string | null; - namespaceId?: string | null; - realm?: string | null; - resources?: Record | null; - revision?: number | null; - scaleMax?: number | null; - scaleMin?: number | null; - serviceName?: string | null; - serviceUrl?: string | null; - status?: string | null; - timeoutSeconds?: number | null; +/** A filter to be used against ConstructiveInternalTypeUpload List fields. All fields are combined with a logical ‘and.’ */ +export interface ConstructiveInternalTypeUploadListFilter { + /** Any array item is equal to the specified value. */ + anyEqualTo?: ConstructiveInternalTypeUpload; + /** Any array item is greater than the specified value. */ + anyGreaterThan?: ConstructiveInternalTypeUpload; + /** Any array item is greater than or equal to the specified value. */ + anyGreaterThanOrEqualTo?: ConstructiveInternalTypeUpload; + /** Any array item is less than the specified value. */ + anyLessThan?: ConstructiveInternalTypeUpload; + /** Any array item is less than or equal to the specified value. */ + anyLessThanOrEqualTo?: ConstructiveInternalTypeUpload; + /** Any array item is not equal to the specified value. */ + anyNotEqualTo?: ConstructiveInternalTypeUpload; + /** Contained by the specified list of values. */ + containedBy?: ConstructiveInternalTypeUpload[]; + /** Contains the specified list of values. */ + contains?: ConstructiveInternalTypeUpload[]; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: ConstructiveInternalTypeUpload[]; + /** Equal to the specified value. */ + equalTo?: ConstructiveInternalTypeUpload[]; + /** Greater than the specified value. */ + greaterThan?: ConstructiveInternalTypeUpload[]; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: ConstructiveInternalTypeUpload[]; + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Less than the specified value. */ + lessThan?: ConstructiveInternalTypeUpload[]; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: ConstructiveInternalTypeUpload[]; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: ConstructiveInternalTypeUpload[]; + /** Not equal to the specified value. */ + notEqualTo?: ConstructiveInternalTypeUpload[]; + /** Overlaps the specified list of values. */ + overlaps?: ConstructiveInternalTypeUpload[]; } -export interface UpdatePlatformFunctionDeploymentInput { - clientMutationId?: string; - id: string; - platformFunctionDeploymentPatch: PlatformFunctionDeploymentPatch; +/** A filter to be used against String fields with pg_trgm support. All fields are combined with a logical ‘and.’ */ +export interface StringTrgmFilter { + /** 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; + /** Fuzzy matches using pg_trgm trigram similarity. Tolerates typos and misspellings. */ + similarTo?: TrgmSearchInput; + /** Starts with the specified string (case-sensitive). */ + startsWith?: string; + /** Starts with the specified string (case-insensitive). */ + startsWithInsensitive?: string; + /** Fuzzy matches using pg_trgm word_similarity. Finds the best matching substring within the column value. */ + wordSimilarTo?: TrgmSearchInput; } -export interface DeletePlatformFunctionDeploymentInput { - clientMutationId?: string; - id: string; +/** A filter to be used against many `PlatformProposalReaction` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformProposalCommentToManyPlatformProposalReactionFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformProposalReactionFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformProposalReactionFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformProposalReactionFilter; +} +/** Input for pg_trgm fuzzy text matching. Provide a search value and optional similarity threshold. */ +export interface TrgmSearchInput { + /** Minimum similarity threshold (0.0 to 1.0). Higher = stricter matching. Default is 0.3. */ + threshold?: number; + /** The text to fuzzy-match against. Typos and misspellings are tolerated. */ + value: string; +} +/** Input for vector similarity search. Provide a query vector, optional metric, and optional max distance threshold. */ +export interface VectorNearbyInput { + /** Maximum distance threshold. Only rows within this distance are returned. */ + distance?: number; + /** When true (default for tables with @hasChunks), transparently queries the chunks table and returns the minimum distance across parent + all chunks. Set to false to only search the parent embedding. */ + includeChunks?: boolean; + /** Similarity metric to use (default: COSINE). */ + metric?: VectorMetric; + /** Natural language text to embed server-side for similarity search. Mutually exclusive with `vector` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + text?: string; + /** Query vector for similarity search. */ + vector: number[]; +} +/** A filter to be used against many `PlatformProposal` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformProposalToManyPlatformProposalFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformProposalFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformProposalFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformProposalFilter; } -export interface CreatePlatformFunctionDeploymentEventInput { - clientMutationId?: string; - platformFunctionDeploymentEvent: { - actorId?: string; - deploymentId: string; - eventType: string; - message?: string; - metadata?: Record; - }; +/** A filter to be used against many `PlatformBuild` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformProposalToManyPlatformBuildFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformBuildFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformBuildFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformBuildFilter; } -export interface PlatformFunctionDeploymentEventPatch { - actorId?: string | null; - deploymentId?: string | null; - eventType?: string | null; - message?: string | null; - metadata?: Record | null; +/** A filter to be used against many `PlatformProposalComment` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformProposalToManyPlatformProposalCommentFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformProposalCommentFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformProposalCommentFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformProposalCommentFilter; } -export interface UpdatePlatformFunctionDeploymentEventInput { - clientMutationId?: string; - id: string; - platformFunctionDeploymentEventPatch: PlatformFunctionDeploymentEventPatch; +/** A filter to be used against many `PlatformProposalFileView` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformProposalToManyPlatformProposalFileViewFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformProposalFileViewFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformProposalFileViewFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformProposalFileViewFilter; } -export interface DeletePlatformFunctionDeploymentEventInput { - clientMutationId?: string; - id: string; +/** A filter to be used against many `PlatformProposalReaction` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformProposalToManyPlatformProposalReactionFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformProposalReactionFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformProposalReactionFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformProposalReactionFilter; } -export interface CreatePlatformFunctionExecutionLogInput { - clientMutationId?: string; - platformFunctionExecutionLog: { - actorId?: string; - invocationId?: string; - logLevel?: string; - message: string; - metadata?: Record; - taskIdentifier?: string; - }; +/** A filter to be used against many `PlatformProposalReview` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformProposalToManyPlatformProposalReviewFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformProposalReviewFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformProposalReviewFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformProposalReviewFilter; } -export interface PlatformFunctionExecutionLogPatch { - actorId?: string | null; - invocationId?: string | null; - logLevel?: string | null; - message?: string | null; - metadata?: Record | null; - taskIdentifier?: string | null; +/** A filter to be used against many `PlatformProposalsChunk` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformProposalToManyPlatformProposalsChunkFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformProposalsChunkFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformProposalsChunkFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformProposalsChunkFilter; } -export interface UpdatePlatformFunctionExecutionLogInput { - clientMutationId?: string; - id: string; - platformFunctionExecutionLogPatch: PlatformFunctionExecutionLogPatch; +/** A filter to be used against many `PlatformRegistryBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformRegistryToManyPlatformRegistryBindingFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformRegistryBindingFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformRegistryBindingFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformRegistryBindingFilter; } -export interface DeletePlatformFunctionExecutionLogInput { - clientMutationId?: string; - id: string; +/** A filter to be used against many `PlatformRegistryGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformRegistryToManyPlatformRegistryGrantFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformRegistryGrantFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformRegistryGrantFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformRegistryGrantFilter; } -export interface CreatePlatformFunctionInvocationAttemptInput { - clientMutationId?: string; - platformFunctionInvocationAttempt: { - actorId?: string; - attempt: number; - durationMs?: number; - error?: string; - errorDetail?: Record; - invocationCreatedAt: string; - invocationId: string; - startedAt?: string; - success: boolean; - taskIdentifier: string; - }; +/** A filter to be used against many `PlatformBuild` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformRepositoryToManyPlatformBuildFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformBuildFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformBuildFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformBuildFilter; } -export interface PlatformFunctionInvocationAttemptPatch { - actorId?: string | null; - attempt?: number | null; - durationMs?: number | null; - error?: string | null; - errorDetail?: Record | null; - invocationCreatedAt?: string | null; - invocationId?: string | null; - startedAt?: string | null; - success?: boolean | null; - taskIdentifier?: string | null; +/** A filter to be used against many `PlatformProposal` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformRepositoryToManyPlatformProposalFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformProposalFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformProposalFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformProposalFilter; } -export interface UpdatePlatformFunctionInvocationAttemptInput { - clientMutationId?: string; - id: string; - platformFunctionInvocationAttemptPatch: PlatformFunctionInvocationAttemptPatch; +/** A filter to be used against many `PlatformRepositoryEvent` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformRepositoryToManyPlatformRepositoryEventFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformRepositoryEventFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformRepositoryEventFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformRepositoryEventFilter; } -export interface DeletePlatformFunctionInvocationAttemptInput { - clientMutationId?: string; - id: string; +/** A filter to be used against many `PlatformRepositoryRequiredCheck` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformRepositoryToManyPlatformRepositoryRequiredCheckFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformRepositoryRequiredCheckFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformRepositoryRequiredCheckFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformRepositoryRequiredCheckFilter; } -export interface CreatePlatformFunctionInvocationInput { - clientMutationId?: string; - platformFunctionInvocation: { - actorId?: string; - apiBindingId?: string; - channel?: string; - completedAt?: string; - databaseId?: string; - definitionScope?: string; - durationMs?: number; - error?: string; - functionDefinitionId?: string; - graphExecutionId?: string; - jobId?: string; - parentInvocationId?: string; - payload?: Record; - provenance?: Record; - result?: Record; - startedAt?: string; - status?: string; - taskIdentifier: string; - }; +/** A filter to be used against many `PlatformRepositoryWorkflow` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformRepositoryToManyPlatformRepositoryWorkflowFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformRepositoryWorkflowFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformRepositoryWorkflowFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformRepositoryWorkflowFilter; } -export interface PlatformFunctionInvocationPatch { - actorId?: string | null; - apiBindingId?: string | null; - channel?: string | null; - completedAt?: string | null; - databaseId?: string | null; - definitionScope?: string | null; - durationMs?: number | null; - error?: string | null; - functionDefinitionId?: string | null; - graphExecutionId?: string | null; - jobId?: string | null; - parentInvocationId?: string | null; - payload?: Record | null; - provenance?: Record | null; - result?: Record | null; - startedAt?: string | null; - status?: string | null; - taskIdentifier?: string | null; +/** A filter to be used against many `PlatformBuild` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformRepositoryEventToManyPlatformBuildFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformBuildFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformBuildFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformBuildFilter; } -export interface UpdatePlatformFunctionInvocationInput { - clientMutationId?: string; - id: string; - platformFunctionInvocationPatch: PlatformFunctionInvocationPatch; +/** A filter to be used against many `PlatformBuild` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformRepositoryWorkflowToManyPlatformBuildFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformBuildFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformBuildFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformBuildFilter; } -export interface DeletePlatformFunctionInvocationInput { - clientMutationId?: string; - id: string; +/** A filter to be used against many `PlatformRepositoryRequiredCheck` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformRepositoryWorkflowToManyPlatformRepositoryRequiredCheckFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformRepositoryRequiredCheckFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformRepositoryRequiredCheckFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformRepositoryRequiredCheckFilter; } -export interface CreatePlatformInfraCommitInput { - clientMutationId?: string; - platformInfraCommit: { - authorId?: string; - committerId?: string; - date?: string; - message?: string; - parentIds?: string[]; - scopeId: string; - storeId: string; - treeId?: string; - }; +/** A filter to be used against many `PlatformResourceStatusCheck` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformResourceToManyPlatformResourceStatusCheckFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformResourceStatusCheckFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformResourceStatusCheckFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformResourceStatusCheckFilter; } -export interface PlatformInfraCommitPatch { - authorId?: string | null; - committerId?: string | null; - date?: string | null; - message?: string | null; - parentIds?: string[] | null; - scopeId?: string | null; - storeId?: string | null; - treeId?: string | null; +/** A filter to be used against many `PlatformResource` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformResourceDefinitionToManyPlatformResourceFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformResourceFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformResourceFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformResourceFilter; } -export interface UpdatePlatformInfraCommitInput { - clientMutationId?: string; - id: string; - platformInfraCommitPatch: PlatformInfraCommitPatch; +/** A filter to be used against Interval fields. All fields are combined with a logical ‘and.’ */ +export interface IntervalFilter { + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: IntervalInput; + /** Equal to the specified value. */ + equalTo?: IntervalInput; + /** Greater than the specified value. */ + greaterThan?: IntervalInput; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: IntervalInput; + /** Included in the specified list. */ + in?: IntervalInput[]; + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Less than the specified value. */ + lessThan?: IntervalInput; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: IntervalInput; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: IntervalInput; + /** Not equal to the specified value. */ + notEqualTo?: IntervalInput; + /** Not included in the specified list. */ + notIn?: IntervalInput[]; } -export interface DeletePlatformInfraCommitInput { - clientMutationId?: string; - id: string; +/** A filter to be used against many `PlatformRegistry` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformResourceInstallationToManyPlatformRegistryFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformRegistryFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformRegistryFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformRegistryFilter; } -export interface CreatePlatformInfraGetAllTreeNodesRecordInput { - clientMutationId?: string; - platformInfraGetAllTreeNodesRecord: { - data?: Record; - path?: string[]; - }; +/** A filter to be used against many `PlatformResource` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformResourceInstallationToManyPlatformResourceFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformResourceFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformResourceFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformResourceFilter; } -export interface PlatformInfraGetAllTreeNodesRecordPatch { - data?: Record | null; - path?: string[] | null; +/** A filter to be used against many `PlatformWebhookEvent` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformWebhookEndpointToManyPlatformWebhookEventFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformWebhookEventFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformWebhookEventFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformWebhookEventFilter; } -export interface UpdatePlatformInfraGetAllTreeNodesRecordInput { - clientMutationId?: string; - id: string; - platformInfraGetAllTreeNodesRecordPatch: PlatformInfraGetAllTreeNodesRecordPatch; +/** A filter to be used against many `ProposalReaction` object types. All fields are combined with a logical ‘and.’ */ +export interface ProposalCommentToManyProposalReactionFilter { + /** Filters to entities where every related entity matches. */ + every?: ProposalReactionFilter; + /** Filters to entities where no related entity matches. */ + none?: ProposalReactionFilter; + /** Filters to entities where at least one related entity matches. */ + some?: ProposalReactionFilter; } -export interface DeletePlatformInfraGetAllTreeNodesRecordInput { - clientMutationId?: string; - id: string; +/** A filter to be used against many `Build` object types. All fields are combined with a logical ‘and.’ */ +export interface ProposalToManyBuildFilter { + /** Filters to entities where every related entity matches. */ + every?: BuildFilter; + /** Filters to entities where no related entity matches. */ + none?: BuildFilter; + /** Filters to entities where at least one related entity matches. */ + some?: BuildFilter; } -export interface CreatePlatformInfraObjectInput { - clientMutationId?: string; - platformInfraObject: { - data?: Record; - kids?: string[]; - ktree?: string[]; - scopeId: string; - }; +/** A filter to be used against many `Proposal` object types. All fields are combined with a logical ‘and.’ */ +export interface ProposalToManyProposalFilter { + /** Filters to entities where every related entity matches. */ + every?: ProposalFilter; + /** Filters to entities where no related entity matches. */ + none?: ProposalFilter; + /** Filters to entities where at least one related entity matches. */ + some?: ProposalFilter; } -export interface PlatformInfraObjectPatch { - data?: Record | null; - kids?: string[] | null; - ktree?: string[] | null; - scopeId?: string | null; +/** A filter to be used against many `ProposalComment` object types. All fields are combined with a logical ‘and.’ */ +export interface ProposalToManyProposalCommentFilter { + /** Filters to entities where every related entity matches. */ + every?: ProposalCommentFilter; + /** Filters to entities where no related entity matches. */ + none?: ProposalCommentFilter; + /** Filters to entities where at least one related entity matches. */ + some?: ProposalCommentFilter; } -export interface UpdatePlatformInfraObjectInput { - clientMutationId?: string; - id: string; - platformInfraObjectPatch: PlatformInfraObjectPatch; +/** A filter to be used against many `ProposalFileView` object types. All fields are combined with a logical ‘and.’ */ +export interface ProposalToManyProposalFileViewFilter { + /** Filters to entities where every related entity matches. */ + every?: ProposalFileViewFilter; + /** Filters to entities where no related entity matches. */ + none?: ProposalFileViewFilter; + /** Filters to entities where at least one related entity matches. */ + some?: ProposalFileViewFilter; } -export interface DeletePlatformInfraObjectInput { - clientMutationId?: string; - id: string; +/** A filter to be used against many `ProposalReaction` object types. All fields are combined with a logical ‘and.’ */ +export interface ProposalToManyProposalReactionFilter { + /** Filters to entities where every related entity matches. */ + every?: ProposalReactionFilter; + /** Filters to entities where no related entity matches. */ + none?: ProposalReactionFilter; + /** Filters to entities where at least one related entity matches. */ + some?: ProposalReactionFilter; } -export interface CreatePlatformInfraRefInput { - clientMutationId?: string; - platformInfraRef: { - commitId?: string; - name: string; - scopeId: string; - storeId: string; - }; +/** A filter to be used against many `ProposalReview` object types. All fields are combined with a logical ‘and.’ */ +export interface ProposalToManyProposalReviewFilter { + /** Filters to entities where every related entity matches. */ + every?: ProposalReviewFilter; + /** Filters to entities where no related entity matches. */ + none?: ProposalReviewFilter; + /** Filters to entities where at least one related entity matches. */ + some?: ProposalReviewFilter; } -export interface PlatformInfraRefPatch { - commitId?: string | null; - name?: string | null; - scopeId?: string | null; - storeId?: string | null; +/** A filter to be used against many `ProposalsChunk` object types. All fields are combined with a logical ‘and.’ */ +export interface ProposalToManyProposalsChunkFilter { + /** Filters to entities where every related entity matches. */ + every?: ProposalsChunkFilter; + /** Filters to entities where no related entity matches. */ + none?: ProposalsChunkFilter; + /** Filters to entities where at least one related entity matches. */ + some?: ProposalsChunkFilter; } -export interface UpdatePlatformInfraRefInput { - clientMutationId?: string; - id: string; - platformInfraRefPatch: PlatformInfraRefPatch; +/** A filter to be used against many `RegistryBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface RegistryToManyRegistryBindingFilter { + /** Filters to entities where every related entity matches. */ + every?: RegistryBindingFilter; + /** Filters to entities where no related entity matches. */ + none?: RegistryBindingFilter; + /** Filters to entities where at least one related entity matches. */ + some?: RegistryBindingFilter; } -export interface DeletePlatformInfraRefInput { - clientMutationId?: string; - id: string; +/** A filter to be used against many `RegistryGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface RegistryToManyRegistryGrantFilter { + /** Filters to entities where every related entity matches. */ + every?: RegistryGrantFilter; + /** Filters to entities where no related entity matches. */ + none?: RegistryGrantFilter; + /** Filters to entities where at least one related entity matches. */ + some?: RegistryGrantFilter; } -export interface CreatePlatformInfraStoreInput { - clientMutationId?: string; - platformInfraStore: { - hash?: string; - name: string; - scopeId: string; - }; +/** A filter to be used against many `Build` object types. All fields are combined with a logical ‘and.’ */ +export interface RepositoryToManyBuildFilter { + /** Filters to entities where every related entity matches. */ + every?: BuildFilter; + /** Filters to entities where no related entity matches. */ + none?: BuildFilter; + /** Filters to entities where at least one related entity matches. */ + some?: BuildFilter; } -export interface PlatformInfraStorePatch { - hash?: string | null; - name?: string | null; - scopeId?: string | null; +/** A filter to be used against many `Proposal` object types. All fields are combined with a logical ‘and.’ */ +export interface RepositoryToManyProposalFilter { + /** Filters to entities where every related entity matches. */ + every?: ProposalFilter; + /** Filters to entities where no related entity matches. */ + none?: ProposalFilter; + /** Filters to entities where at least one related entity matches. */ + some?: ProposalFilter; } -export interface UpdatePlatformInfraStoreInput { - clientMutationId?: string; - id: string; - platformInfraStorePatch: PlatformInfraStorePatch; +/** A filter to be used against many `RepositoryEvent` object types. All fields are combined with a logical ‘and.’ */ +export interface RepositoryToManyRepositoryEventFilter { + /** Filters to entities where every related entity matches. */ + every?: RepositoryEventFilter; + /** Filters to entities where no related entity matches. */ + none?: RepositoryEventFilter; + /** Filters to entities where at least one related entity matches. */ + some?: RepositoryEventFilter; } -export interface DeletePlatformInfraStoreInput { - clientMutationId?: string; - id: string; +/** A filter to be used against many `RepositoryRequiredCheck` object types. All fields are combined with a logical ‘and.’ */ +export interface RepositoryToManyRepositoryRequiredCheckFilter { + /** Filters to entities where every related entity matches. */ + every?: RepositoryRequiredCheckFilter; + /** Filters to entities where no related entity matches. */ + none?: RepositoryRequiredCheckFilter; + /** Filters to entities where at least one related entity matches. */ + some?: RepositoryRequiredCheckFilter; } -export interface CreatePlatformNamespaceInput { - clientMutationId?: string; - platformNamespace: { - annotations?: Record; - description?: string; - isActive?: boolean; - isManaged?: boolean; - labels?: Record; - lastError?: string; - name: string; - namespaceName: string; - status?: string; - }; +/** A filter to be used against many `RepositoryWorkflow` object types. All fields are combined with a logical ‘and.’ */ +export interface RepositoryToManyRepositoryWorkflowFilter { + /** Filters to entities where every related entity matches. */ + every?: RepositoryWorkflowFilter; + /** Filters to entities where no related entity matches. */ + none?: RepositoryWorkflowFilter; + /** Filters to entities where at least one related entity matches. */ + some?: RepositoryWorkflowFilter; } -export interface PlatformNamespacePatch { - annotations?: Record | null; - description?: string | null; - isActive?: boolean | null; - isManaged?: boolean | null; - labels?: Record | null; - lastError?: string | null; - name?: string | null; - namespaceName?: string | null; - status?: string | null; +/** A filter to be used against many `Build` object types. All fields are combined with a logical ‘and.’ */ +export interface RepositoryEventToManyBuildFilter { + /** Filters to entities where every related entity matches. */ + every?: BuildFilter; + /** Filters to entities where no related entity matches. */ + none?: BuildFilter; + /** Filters to entities where at least one related entity matches. */ + some?: BuildFilter; } -export interface UpdatePlatformNamespaceInput { - clientMutationId?: string; - id: string; - platformNamespacePatch: PlatformNamespacePatch; +/** A filter to be used against many `Build` object types. All fields are combined with a logical ‘and.’ */ +export interface RepositoryWorkflowToManyBuildFilter { + /** Filters to entities where every related entity matches. */ + every?: BuildFilter; + /** Filters to entities where no related entity matches. */ + none?: BuildFilter; + /** Filters to entities where at least one related entity matches. */ + some?: BuildFilter; } -export interface DeletePlatformNamespaceInput { - clientMutationId?: string; - id: string; +/** A filter to be used against many `RepositoryRequiredCheck` object types. All fields are combined with a logical ‘and.’ */ +export interface RepositoryWorkflowToManyRepositoryRequiredCheckFilter { + /** Filters to entities where every related entity matches. */ + every?: RepositoryRequiredCheckFilter; + /** Filters to entities where no related entity matches. */ + none?: RepositoryRequiredCheckFilter; + /** Filters to entities where at least one related entity matches. */ + some?: RepositoryRequiredCheckFilter; } -export interface CreatePlatformNamespaceEventInput { - clientMutationId?: string; - platformNamespaceEvent: { - actorId?: string; - eventType: string; - message?: string; - metadata?: Record; - namespaceId: string; - }; +/** A filter to be used against many `ResourceStatusCheck` object types. All fields are combined with a logical ‘and.’ */ +export interface ResourceToManyResourceStatusCheckFilter { + /** Filters to entities where every related entity matches. */ + every?: ResourceStatusCheckFilter; + /** Filters to entities where no related entity matches. */ + none?: ResourceStatusCheckFilter; + /** Filters to entities where at least one related entity matches. */ + some?: ResourceStatusCheckFilter; } -export interface PlatformNamespaceEventPatch { - actorId?: string | null; - eventType?: string | null; - message?: string | null; - metadata?: Record | null; - namespaceId?: string | null; +/** A filter to be used against many `Resource` object types. All fields are combined with a logical ‘and.’ */ +export interface ResourceDefinitionToManyResourceFilter { + /** Filters to entities where every related entity matches. */ + every?: ResourceFilter; + /** Filters to entities where no related entity matches. */ + none?: ResourceFilter; + /** Filters to entities where at least one related entity matches. */ + some?: ResourceFilter; } -export interface UpdatePlatformNamespaceEventInput { - clientMutationId?: string; - id: string; - platformNamespaceEventPatch: PlatformNamespaceEventPatch; +/** A filter to be used against many `Registry` object types. All fields are combined with a logical ‘and.’ */ +export interface ResourceInstallationToManyRegistryFilter { + /** Filters to entities where every related entity matches. */ + every?: RegistryFilter; + /** Filters to entities where no related entity matches. */ + none?: RegistryFilter; + /** Filters to entities where at least one related entity matches. */ + some?: RegistryFilter; } -export interface DeletePlatformNamespaceEventInput { - clientMutationId?: string; - id: string; +/** A filter to be used against many `Resource` object types. All fields are combined with a logical ‘and.’ */ +export interface ResourceInstallationToManyResourceFilter { + /** Filters to entities where every related entity matches. */ + every?: ResourceFilter; + /** Filters to entities where no related entity matches. */ + none?: ResourceFilter; + /** Filters to entities where at least one related entity matches. */ + some?: ResourceFilter; } -export interface CreatePlatformResourceInput { - clientMutationId?: string; - platformResource: { - annotations?: Record; - createdBy?: string; - errorCount?: number; - installationId?: string; - integrations?: string[]; - kind: string; - labels?: Record; - lastError?: string; - lastHeartbeatAt?: string; - name: string; - namespaceId: string; - realm?: string; - requiredConfigs?: ResourceRequirementInput[]; - requiredSecrets?: ResourceRequirementInput[]; - resourceDefinitionId?: string; - slug: string; - spec?: Record; - status?: string; - statusObserved?: Record; - updatedBy?: string; - }; +/** A filter to be used against many `WebhookEvent` object types. All fields are combined with a logical ‘and.’ */ +export interface WebhookEndpointToManyWebhookEventFilter { + /** Filters to entities where every related entity matches. */ + every?: WebhookEventFilter; + /** Filters to entities where no related entity matches. */ + none?: WebhookEventFilter; + /** Filters to entities where at least one related entity matches. */ + some?: WebhookEventFilter; } -export interface PlatformResourcePatch { - annotations?: Record | null; - createdBy?: string | null; - errorCount?: number | null; - installationId?: string | null; - integrations?: string[] | null; - kind?: string | null; - labels?: Record | null; - lastError?: string | null; - lastHeartbeatAt?: string | null; - name?: string | null; - namespaceId?: string | null; - realm?: string | null; - requiredConfigs?: ResourceRequirementInput[] | null; - requiredSecrets?: ResourceRequirementInput[] | null; - resourceDefinitionId?: string | null; - slug?: string | null; - spec?: Record | null; - status?: string | null; - statusObserved?: Record | null; - updatedBy?: string | null; +/** An input for mutations affecting `Build` */ +export interface BuildInput { + /** Authenticated actor this build is attributed to; NULL only when no human actor was proven */ + actorId?: string; + /** Retry attempt number for this workflow, commit, and matrix shard */ + attempt?: number; + /** Commit this build built */ + commitSha?: string; + /** Verdict: NULL while pending/running, then success, failure, neutral, cancelled, skipped, timed_out, or action_required */ + conclusion?: string; + createdAt?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Event that triggered this build (NULL for a manual build) */ + eventId?: string; + /** When the build reached a terminal status */ + finishedAt?: string; + id?: string; + /** Image reference this build produced (registry host/repository:tag; NULL when the build produced no image) */ + imageRef?: string; + /** app_jobs row running this build */ + jobId?: string; + /** Build log object in storage; step rows slice it by byte range */ + logs?: ConstructiveInternalTypeUpload; + /** Matrix shard identity; NULL for a non-matrix build */ + matrixKey?: string; + /** Build detail (step results, durations, failure reason) */ + metadata?: Record; + /** Proposal this build checks (NULL for builds not tied to a proposal) */ + proposalId?: string; + /** Ref this build built */ + ref?: string; + /** Repository this build is of */ + repositoryId: string; + /** When the build began running */ + startedAt?: string; + /** Lifecycle: pending, running, succeeded, failed, cancelled */ + status?: string; + updatedAt?: string; + updatedByPrincipal?: string; + /** Workflow whose firing produced this build (NULL for a manual build) */ + workflowId?: string; +} +/** An input for mutations affecting `BuildStep` */ +export interface BuildStepInput { + /** Build these results belong to */ + buildId: string; + /** Acting principal (agent, API key, or user) who created this record */ + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Process exit code of a step (NULL for a test result) */ + exitCode?: number; + /** When this step or test finished */ + finishedAt?: string; + /** Unique identifier (uuidv7 provides temporal ordering) */ + id?: string; + /** What this row is: step, or test */ + kind?: string; + /** Byte length of this row's output in the build log object */ + logBytes?: string; + /** Byte offset of this row's output in the build log object */ + logOffset?: string; + /** Step name, or the test's fully qualified name */ + name: string; + /** Sequence of the step that reported this test (NULL for a step itself) */ + parentSeq?: number; + /** When the result was recorded (partition key) */ + recordedAt?: string; + /** Position within the build, monotonically increasing across steps and their tests */ + seq: number; + /** When this step or test began */ + startedAt?: string; + /** Outcome: running, succeeded, failed, skipped, cancelled */ + status?: string; + /** Parsed detail: failure message, assertion diff, counts, annotations */ + summary?: Record; } -export interface UpdatePlatformResourceInput { - clientMutationId?: string; - id: string; - platformResourcePatch: PlatformResourcePatch; +/** An input for mutations affecting `BuilderBinding` */ +export interface BuilderBindingInput { + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + id?: string; + /** BuildKit resource installation serving this binding; may belong to another resource scope */ + installationId: string; + /** Most recent projection failure */ + lastError?: string; + /** Reconciler detail (projection timestamps and diagnostics) */ + metadata?: Record; + /** Namespace whose builds use this BuildKit installation */ + namespaceId: string; + /** BuildKit address last projected into the namespace (NULL = never projected) */ + observedHost?: string; + /** Lane this binding applies to (NULL = the scope's default lane) */ + realm?: string; + /** Projection state of BUILDKIT_HOST: pending, active, failed */ + status?: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; } -export interface DeletePlatformResourceInput { - clientMutationId?: string; - id: 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; } -export interface CreatePlatformResourceDeclaredCapacityInput { - clientMutationId?: string; - platformResourceDeclaredCapacity: { - cpuLimitMillicores?: string; - cpuRequestMillicores?: string; - installationId: string; - isTransient?: boolean; - kind?: string; - memoryLimitBytes?: string; - memoryRequestBytes?: string; - namespaceId: string; - podCountMax?: number; - podCountMin?: number; - source?: string; - sourceId: string; - storageSizeBytes?: string; - }; +/** An input for mutations affecting `DatabaseFunctionGraphExecution` */ +export interface DatabaseFunctionGraphExecutionInput { + /** User actor propagated to asynchronous graph jobs */ + actorId?: string; + /** Execution completion timestamp */ + completedAt?: string; + /** Index into execution_plan — tick only processes this wave */ + currentWave?: number; + /** Database scope for multi-tenant isolation */ + databaseId: string; + /** Pinned definitions store commit for deterministic evaluation */ + definitionsCommitId?: string; + /** Entity context propagated to asynchronous graph jobs */ + entityId?: string; + /** Scope discriminator propagated to asynchronous graph jobs */ + entityType?: string; + /** Machine-readable error code when status = failed */ + errorCode?: string; + /** Human-readable error description when status = failed */ + errorMessage?: string; + /** Pre-computed topological sort as array of wave objects */ + executionPlan?: Record; + /** FK to the graph definition being executed */ + graphId: string; + /** Unique execution identifier */ + id?: string; + /** Initial inputs provided at invocation time */ + inputPayload?: Record; + /** Partition coordinate for the function invocation that launched this graph execution */ + invocationCreatedAt?: string; + /** Function invocation that launched this top-level graph execution */ + invocationId?: string; + /** Timestamp of the last real progress (node enqueue, node output, completion) — drives the activity-debounced watchdog */ + lastProgressAt?: string; + /** Maximum pending jobs before execution is failed (default 50) */ + maxPendingJobs?: number; + /** Maximum ticks before execution is failed (default 100) */ + maxTicks?: number; + /** Map of node_name → execution output id (content-addressed hash reference) */ + nodeOutputs?: Record; + /** Organization context propagated to asynchronous graph jobs */ + organizationId?: string; + /** Selected graphOutput portName values; NULL or empty returns all graph outputs */ + outputNames?: string[]; + /** Target output boundary node name to resolve; NULL derives completion from the graph's graphOutput nodes */ + outputNode?: string; + /** Final result extracted from terminal output node */ + outputPayload?: Record; + /** Target output port name (default: value) */ + outputPort?: string; + /** Parent execution when this is a sub-execution */ + parentExecutionId?: string; + /** Function invocation parent assigned to node invocations spawned by this execution */ + parentInvocationId?: string; + /** Node name in parent execution that spawned this sub-execution */ + parentNodeName?: string; + /** Principal identity propagated to asynchronous graph jobs */ + principalId?: string; + /** Execution start timestamp */ + startedAt?: string; + /** Lifecycle: pending → running → completed/failed/cancelled */ + status?: string; + /** Number of evaluate_step ticks executed */ + tickCount?: number; + /** Absolute deadline — execution fails if still running after this time */ + timeoutAt?: string; } -export interface PlatformResourceDeclaredCapacityPatch { - cpuLimitMillicores?: string | null; - cpuRequestMillicores?: string | null; - installationId?: string | null; - isTransient?: boolean | null; - kind?: string | null; - memoryLimitBytes?: string | null; - memoryRequestBytes?: string | null; - namespaceId?: string | null; - podCountMax?: number | null; - podCountMin?: number | null; - source?: string | null; - sourceId?: string | null; - storageSizeBytes?: string | null; +/** An input for mutations affecting `DatabaseFunctionGraphExecutionNodeState` */ +export interface DatabaseFunctionGraphExecutionNodeStateInput { + /** Snapshot of the node's resolved inputs for resource-runtime nodes — served by the node gateway GET /inputs endpoint */ + callbackInputs?: Record; + /** Metering/attribution context stamped at resource dispatch (namespace_id, task_identifier, entity_id, scope, resource identity, dispatched_at, attempt) — lets the node gateway settle and attribute without extra lookups */ + callbackMeta?: Record; + /** SHA-256 hex digest of the node callback token — set for resource-runtime nodes so the node gateway can authenticate result/error/heartbeat callbacks */ + callbackTokenHash?: string; + /** Timestamp when the node finished (success or failure) */ + completedAt?: string; + /** Timestamp of node state creation (partition key) */ + createdAt?: string; + /** Database scope for multi-tenant isolation */ + databaseId: string; + /** Machine-readable error code when status = failed */ + errorCode?: string; + /** Human-readable error description when status = failed */ + errorMessage?: string; + /** FK to the parent graph execution */ + executionId: string; + /** Declared output applied by the default_answer expiry policy */ + expiryDefaultOutput?: Record; + /** When the escalate expiry policy fired — guards the one-time extension */ + expiryEscalatedAt?: string; + /** Declared expiry behaviour when waiting_deadline_at passes unanswered: fail (fail the execution), default_answer (settle with expiry_default_output), or escalate (notify and extend once) */ + expiryPolicy?: string; + /** Unique node state identifier */ + id?: string; + /** Name of the node within the graph (e.g. send-email1) */ + nodeName: string; + /** Full merkle tree path to this node (e.g. {function,graphs,myflow,nodes,send-email1}) — enables subnet hierarchy tracking */ + nodePath?: string[]; + /** FK to execution_outputs — content-addressed output blob for this node */ + outputId?: string; + /** Timestamp when the node began executing */ + startedAt?: string; + /** Node lifecycle: pending → queued → running → completed/failed/cancelled */ + status?: string; + /** When the declared expiry policy applies to the still-unanswered node */ + waitingDeadlineAt?: string; + /** What class of external reporter settles this node: human (a person answers) or external (webhook/adapter). NULL for nodes with an active workload */ + waitingOn?: string; + /** When the node parked awaiting its external report */ + waitingSince?: string; +} +/** An input for mutations affecting `DatabaseFunctionGraphExecutionOutput` */ +export interface DatabaseFunctionGraphExecutionOutputInput { + /** Timestamp of output creation */ + createdAt?: string; + /** The actual output payload from a completed node */ + data: Record; + /** Database scope for multi-tenant isolation */ + databaseId: string; + /** SHA-256 hash of the data JSONB — content-addressed deduplication */ + hash: Base64EncodedBinary; + /** Unique execution output identifier */ + id?: string; } -export interface UpdatePlatformResourceDeclaredCapacityInput { - clientMutationId?: string; - id: string; - platformResourceDeclaredCapacityPatch: PlatformResourceDeclaredCapacityPatch; +/** An input for mutations affecting `DatabaseGraphCommit` */ +export interface DatabaseGraphCommitInput { + /** User who authored the changes */ + authorId?: string; + /** User who committed (may differ from author) */ + committerId?: string; + /** Database scope for multi-tenant isolation */ + databaseId: string; + /** Commit timestamp */ + date?: string; + /** Unique commit identifier */ + id?: string; + /** Optional commit message */ + message?: string; + /** Parent commit IDs (supports merge commits) */ + parentIds?: string[]; + /** Store this commit belongs to */ + storeId: string; + /** Root object ID of the tree snapshot at this commit */ + treeId?: string; } -export interface DeletePlatformResourceDeclaredCapacityInput { - clientMutationId?: string; +/** An input for mutations affecting `DatabaseGraphObject` */ +export interface DatabaseGraphObjectInput { + /** Timestamp of object creation */ + createdAt?: string; + /** Payload data for this object node */ + data?: Record; + /** Database scope for multi-tenant isolation */ + databaseId: string; + /** Content-addressed UUID v5 — deterministic hash of (data, kids, ktree) */ id: string; + /** Ordered array of child object IDs */ + kids?: string[]; + /** Ordered array of child path names (parallel to kids) */ + ktree?: string[]; } -export interface CreatePlatformResourceDefinitionInput { - clientMutationId?: string; - platformResourceDefinition: { - annotations?: Record; - createdBy?: string; - defaultSpec?: Record; - description?: string; - integrations?: string[]; - kind: string; - labels?: Record; - name: string; - namespaceId: string; - paramsSchema?: Record; - requiredConfigs?: ResourceRequirementInput[]; - requiredSecrets?: ResourceRequirementInput[]; - slug: string; - stepUpMinAge?: IntervalInput; - updatedBy?: string; - }; +/** An input for mutations affecting `DatabaseGraphRef` */ +export interface DatabaseGraphRefInput { + /** Commit this ref points to */ + commitId?: string; + /** Database scope for multi-tenant isolation */ + databaseId: string; + /** Unique ref identifier */ + id?: string; + /** Ref name (e.g. HEAD, main) */ + name: string; + /** Store this ref belongs to */ + storeId: string; } -export interface PlatformResourceDefinitionPatch { - annotations?: Record | null; - createdBy?: string | null; - defaultSpec?: Record | null; - description?: string | null; - integrations?: string[] | null; - kind?: string | null; - labels?: Record | null; - name?: string | null; - namespaceId?: string | null; - paramsSchema?: Record | null; - requiredConfigs?: ResourceRequirementInput[] | null; - requiredSecrets?: ResourceRequirementInput[] | null; - slug?: string | null; - stepUpMinAge?: IntervalInput | null; - updatedBy?: string | null; +/** An input for mutations affecting `DatabaseGraphStore` */ +export interface DatabaseGraphStoreInput { + /** Timestamp of store creation */ + createdAt?: string; + /** Database scope for multi-tenant isolation */ + databaseId: string; + /** Current root object hash of this store */ + hash?: string; + /** Unique store identifier */ + id?: string; + /** Human-readable store name */ + name: string; } -export interface UpdatePlatformResourceDefinitionInput { - clientMutationId?: string; - id: string; - platformResourceDefinitionPatch: PlatformResourceDefinitionPatch; +/** An input for mutations affecting `DbPreset` */ +export interface DbPresetInput { + /** Whether this preset is selectable for new databases */ + 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; + /** Preset definition (modules + options) — 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; + /** Human-readable preset name */ + label?: string; + /** Content-address of definition->modules via metaschema_private.modules_hash (stamped by the versioned trigger); fast exact-match lookup key for provisioning requests */ + modulesHash?: string; + /** Preset slug (unique per scope); the preset's path in the infra tree is [db_preset, 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 DeletePlatformResourceDefinitionInput { - clientMutationId?: string; - id: string; +/** An input for mutations affecting `FunctionApiBinding` */ +export interface FunctionApiBindingInput { + /** Binding alias (e.g. default, staging, production) */ + alias?: string; + /** API endpoint this function is bound to */ + apiId: string; + /** Per-binding configuration (overrides, routing rules, etc.) */ + config?: Record; + createdAt?: string; + /** Function definition this binding belongs to */ + functionDefinitionId: string; + id?: string; + updatedAt?: string; } -export interface CreatePlatformResourceEventInput { - clientMutationId?: string; - platformResourceEvent: { - actorId?: string; - eventType: string; - message?: string; - metadata?: Record; - resourceId: string; - }; +/** An input for mutations affecting `FunctionCapabilityBinding` */ +export interface FunctionCapabilityBindingInput { + /** Bucket this capability targets (exactly one typed target is set) */ + bucketId?: string; + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Function definition holding this capability (exactly one of function_id / graph_id is set) */ + functionId?: string; + /** Flow graph holding this capability (exactly one of function_id / graph_id is set) */ + graphId?: string; + id?: string; + /** Runtime handle the holder addresses this capability by (e.g. default, scratch) */ + key?: string; + /** Lifecycle the capability applies to: deployment (build/deploy time), execution (per invocation), root_execution (root of a graph execution tree) */ + lifecycle: string; + /** Per-binding annotations (no runtime semantics) */ + metadata?: Record; + updatedAt?: string; } -export interface PlatformResourceEventPatch { - actorId?: string | null; - eventType?: string | null; - message?: string | null; - metadata?: Record | null; - resourceId?: string | null; +/** An input for mutations affecting `FunctionDefinition` */ +export interface FunctionDefinitionInput { + /** 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 this function consents to run for a caller with no identity (a sign-in surface, a public page). Anonymous execution additionally requires the matched route to declare anonymous access. Default false = an identity is required. */ + anonymousCallable?: boolean; + /** Function task category (e.g. email, embed, chunk, custom) */ + category: string; + /** Knative containerConcurrency — max concurrent requests per pod instance */ + concurrency?: number; + createdAt?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Human-readable description of what this function does */ + description?: string; + /** Palette grouping category (e.g. email, data, ai, custom) */ + fnCategory?: string; + /** Ordered array of module_table column names holding the generated function names to invoke when runtime=sql (module mode). NULL for direct mode and other runtimes. */ + functionColumns?: Record; + /** Existing flow graph invoked when runtime=graph. Required for graph runtime and forbidden for all other runtimes. */ + graphId?: string; + /** Icon identifier for UI palette rendering (e.g. mail, database, code) */ + icon?: string; + id?: string; + /** Docker image reference (e.g. ghcr.io/constructive-io/email-send-fn:latest). Required when runtime=http or runtime=resource. NULL for inline functions. */ + image?: string; + /** Data input ports: [{name, type, description?, optional?, multi?, schema?}] */ + inputs?: Record; + /** Provider slugs (e.g. mailgun, postgres) associated with this function. The UI uses this to auto-fill required_secrets and required_configs from integration_providers. */ + integrations?: string[]; + /** Whether this function definition is published to the public catalog for direct authenticated invocation. Default false = internal-only via add_job() */ + isPublished?: boolean; + /** Maximum retry attempts for the underlying job */ + maxAttempts?: number; + /** metaschema_modules_public table whose per-database row carries the generated function names when runtime=sql (module mode). NULL for direct mode and other runtimes. */ + moduleTable?: string; + /** Function name within category (e.g. send_verification_link, process_file_embedding) */ + name: string; + /** Data output ports: [{name, type, description?, optional?, multi?, schema?}] */ + outputs?: Record; + /** Ordered bind-parameter mapping for runtime=sql: [{name, type}]. payload[name] is bound as $n::type. */ + payloadArgs?: Record; + /** Job priority (lower = higher priority) */ + priority?: number; + /** Configuration properties: [{name, type, default?, description?, required?, schema?}] */ + props?: Record; + /** Protected platform definition: narrower scopes cannot register the same task_identifier */ + protected?: boolean; + /** Timestamp when this function was published. NULL means immediately published when is_published is true; future timestamps delay public visibility */ + publishedAt?: string; + /** Job queue name for serialization (e.g. email, ai, default) */ + queueName?: string; + /** 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[]; + /** Capability providers the handler declared in handler.json requires.capabilities, as an array of {name, version, declaration}. NULL when the handler declares none, which mounts the full platform set. */ + requiredCapabilities?: Record; + /** 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}} */ + resources?: Record; + /** Execution mode: http (Knative Service dispatch), inline (in-process in compute worker), handler (registered infrastructure handler), sql (generic SQL dispatch via a trusted direct target or module-resolved function names), resource (Kubernetes Job via the resource module with node-gateway callbacks), graph (existing flow graph referenced by graph_id), or human (parks the node awaiting a person's answer through approve_node) */ + runtime?: string; + /** Maximum pod count for Knative autoscaling (maxScale) */ + scaleMax?: number; + /** Minimum pod count for Knative autoscaling (minScale) */ + scaleMin?: number; + /** Name of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. */ + targetFunction?: string; + /** Schema of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. */ + targetSchema?: string; + /** Knative request timeout in seconds */ + timeoutSeconds?: number; + updatedAt?: string; + updatedByPrincipal?: string; + /** Whether this function has side effects and cannot be cached or memoized */ + volatile?: boolean; } -export interface UpdatePlatformResourceEventInput { - clientMutationId?: string; - id: string; - platformResourceEventPatch: PlatformResourceEventPatch; +/** An input for mutations affecting `ResourceRequirement` */ +export interface ResourceRequirementInput { + name?: string; + provider?: string; + required?: boolean; } -export interface DeletePlatformResourceEventInput { - clientMutationId?: string; - id: string; +/** An input for mutations affecting `FunctionDeployment` */ +export interface FunctionDeploymentInput { + /** Freeform metadata for tooling and operational notes */ + annotations?: Record; + /** Max concurrent requests per pod (NULL = inherit from definition) */ + concurrency?: number; + createdAt?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Cumulative error count for this deployment */ + errorCount?: number; + /** Handler directory name (e.g. email, document) — used as FN_HANDLER_NAME in combined-image mode to select the entry point */ + handlerName?: string; + id?: string; + /** Logical image name — the handler identity and grouping key (e.g. fn-email). No registry host or tag; tag lives in image_version. */ + image: string; + /** Image tag/version for the handler container (e.g. latest, 2.6.4) */ + imageVersion?: string; + /** Key/value pairs for selecting and filtering deployments */ + labels?: Record; + /** Most recent provisioning or runtime error message */ + lastError?: string; + /** Timestamp of the most recent error */ + 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) */ + revision?: number; + /** Maximum replica count (NULL = inherit from definition or Knative default) */ + scaleMax?: number; + /** Minimum replica count (NULL = inherit from definition or Knative default) */ + scaleMin?: number; + /** Knative service name — a randomly minted cute name (unique_names.generate_name() + random hex suffix) assigned by the service_url trigger; unique per namespace, not derived from the image */ + serviceName?: string; + /** Knative service URL (http://{service-name}.{namespace}.svc.cluster.local) — populated after provisioning */ + serviceUrl?: string; + /** Deployment lifecycle status: pending, provisioning, active, failed, scaled_to_zero, deactivated */ + status?: string; + /** Request timeout override in seconds (NULL = inherit from definition) */ + timeoutSeconds?: number; + updatedAt?: string; + updatedByPrincipal?: string; } -export interface CreatePlatformResourceInstallationInput { - clientMutationId?: string; - platformResourceInstallation: { - commitId?: string; - createdBy?: string; - name: string; - namespaceId: string; - params?: Record; - revision?: number; - slug: string; - status?: string; - storeId?: string; - updatedBy?: string; - }; +/** An input for mutations affecting `FunctionDeploymentEvent` */ +export interface FunctionDeploymentEventInput { + /** User who triggered this event; NULL only when no human actor was proven */ + actorId?: string; + /** Event timestamp (partition key) */ + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Deployment this event belongs to */ + deploymentId: string; + /** Event type: provisioned, scaled, failed, deactivated, redeployed, health_check */ + eventType: string; + /** Unique event identifier */ + id?: string; + /** Human-readable description of the event */ + message?: string; + /** Structured context (old/new values, error details, etc.) */ + metadata?: Record; } -export interface PlatformResourceInstallationPatch { - commitId?: string | null; - createdBy?: string | null; - name?: string | null; - namespaceId?: string | null; - params?: Record | null; - revision?: number | null; - slug?: string | null; - status?: string | null; - storeId?: string | null; - updatedBy?: string | null; +/** An input for mutations affecting `FunctionExecutionLog` */ +export interface FunctionExecutionLogInput { + /** User who triggered the execution; NULL only when no human actor was proven */ + actorId?: string; + /** Log entry timestamp (partition key) */ + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Unique log entry identifier */ + id?: string; + /** Invocation this log entry belongs to (NULL for standalone job logs) */ + invocationId?: string; + /** Log severity: debug, info, warn, error */ + logLevel?: string; + /** Log message text */ + message: string; + /** Structured context (labels, trace data, extra fields) */ + metadata?: Record; + /** Function routing key (NULL for generic job logs) */ + taskIdentifier?: string; } -export interface UpdatePlatformResourceInstallationInput { - clientMutationId?: string; - id: string; - platformResourceInstallationPatch: PlatformResourceInstallationPatch; +/** An input for mutations affecting `FunctionGraphCommit` */ +export interface FunctionGraphCommitInput { + /** User who authored the changes */ + authorId?: string; + /** User who committed (may differ from author) */ + committerId?: string; + /** Commit timestamp */ + date?: string; + /** Unique commit identifier */ + id?: string; + /** Optional commit message */ + message?: string; + /** Parent commit IDs (supports merge commits) */ + parentIds?: string[]; + /** Opaque store partition key for the global tier */ + scopeId: string; + /** Store this commit belongs to */ + storeId: string; + /** Root object ID of the tree snapshot at this commit */ + treeId?: string; } -export interface DeletePlatformResourceInstallationInput { - clientMutationId?: string; - id: string; +/** An input for mutations affecting `FunctionGraphExecution` */ +export interface FunctionGraphExecutionInput { + /** User actor propagated to asynchronous graph jobs */ + actorId?: string; + /** Execution completion timestamp */ + completedAt?: string; + /** Index into execution_plan — tick only processes this wave */ + currentWave?: number; + /** Pinned definitions store commit for deterministic evaluation */ + definitionsCommitId?: string; + /** Entity context propagated to asynchronous graph jobs */ + entityId?: string; + /** Scope discriminator propagated to asynchronous graph jobs */ + entityType?: string; + /** Machine-readable error code when status = failed */ + errorCode?: string; + /** Human-readable error description when status = failed */ + errorMessage?: string; + /** Pre-computed topological sort as array of wave objects */ + executionPlan?: Record; + /** FK to the graph definition being executed */ + graphId: string; + /** Unique execution identifier */ + id?: string; + /** Initial inputs provided at invocation time */ + inputPayload?: Record; + /** Partition coordinate for the function invocation that launched this graph execution */ + invocationCreatedAt?: string; + /** Function invocation that launched this top-level graph execution */ + invocationId?: string; + /** Timestamp of the last real progress (node enqueue, node output, completion) — drives the activity-debounced watchdog */ + lastProgressAt?: string; + /** Maximum pending jobs before execution is failed (default 50) */ + maxPendingJobs?: number; + /** Maximum ticks before execution is failed (default 100) */ + maxTicks?: number; + /** Map of node_name → execution output id (content-addressed hash reference) */ + nodeOutputs?: Record; + /** Organization context propagated to asynchronous graph jobs */ + organizationId?: string; + /** Selected graphOutput portName values; NULL or empty returns all graph outputs */ + outputNames?: string[]; + /** Target output boundary node name to resolve; NULL derives completion from the graph's graphOutput nodes */ + outputNode?: string; + /** Final result extracted from terminal output node */ + outputPayload?: Record; + /** Target output port name (default: value) */ + outputPort?: string; + /** Parent execution when this is a sub-execution */ + parentExecutionId?: string; + /** Function invocation parent assigned to node invocations spawned by this execution */ + parentInvocationId?: string; + /** Node name in parent execution that spawned this sub-execution */ + parentNodeName?: string; + /** Principal identity propagated to asynchronous graph jobs */ + principalId?: string; + /** Opaque store partition key for the global tier */ + scopeId: string; + /** Execution start timestamp */ + startedAt?: string; + /** Lifecycle: pending → running → completed/failed/cancelled */ + status?: string; + /** Number of evaluate_step ticks executed */ + tickCount?: number; + /** Absolute deadline — execution fails if still running after this time */ + timeoutAt?: string; } -export interface CreatePlatformResourceStatusCheckInput { - clientMutationId?: string; - platformResourceStatusCheck: { - completedAt?: string; - requestedAt?: string; - requestedBy?: string; - resourceId: string; - result?: Record; - status?: string; - }; +/** An input for mutations affecting `FunctionGraphExecutionNodeState` */ +export interface FunctionGraphExecutionNodeStateInput { + /** Snapshot of the node's resolved inputs for resource-runtime nodes — served by the node gateway GET /inputs endpoint */ + callbackInputs?: Record; + /** Metering/attribution context stamped at resource dispatch (namespace_id, task_identifier, entity_id, scope, resource identity, dispatched_at, attempt) — lets the node gateway settle and attribute without extra lookups */ + callbackMeta?: Record; + /** SHA-256 hex digest of the node callback token — set for resource-runtime nodes so the node gateway can authenticate result/error/heartbeat callbacks */ + callbackTokenHash?: string; + /** Timestamp when the node finished (success or failure) */ + completedAt?: string; + /** Timestamp of node state creation (partition key) */ + createdAt?: string; + /** Machine-readable error code when status = failed */ + errorCode?: string; + /** Human-readable error description when status = failed */ + errorMessage?: string; + /** FK to the parent graph execution */ + executionId: string; + /** Declared output applied by the default_answer expiry policy */ + expiryDefaultOutput?: Record; + /** When the escalate expiry policy fired — guards the one-time extension */ + expiryEscalatedAt?: string; + /** Declared expiry behaviour when waiting_deadline_at passes unanswered: fail (fail the execution), default_answer (settle with expiry_default_output), or escalate (notify and extend once) */ + expiryPolicy?: string; + /** Unique node state identifier */ + id?: string; + /** Name of the node within the graph (e.g. send-email1) */ + nodeName: string; + /** Full merkle tree path to this node (e.g. {function,graphs,myflow,nodes,send-email1}) — enables subnet hierarchy tracking */ + nodePath?: string[]; + /** FK to execution_outputs — content-addressed output blob for this node */ + outputId?: string; + /** Opaque store partition key for the global tier */ + scopeId: string; + /** Timestamp when the node began executing */ + startedAt?: string; + /** Node lifecycle: pending → queued → running → completed/failed/cancelled */ + status?: string; + /** When the declared expiry policy applies to the still-unanswered node */ + waitingDeadlineAt?: string; + /** What class of external reporter settles this node: human (a person answers) or external (webhook/adapter). NULL for nodes with an active workload */ + waitingOn?: string; + /** When the node parked awaiting its external report */ + waitingSince?: string; } -export interface PlatformResourceStatusCheckPatch { - completedAt?: string | null; - requestedAt?: string | null; - requestedBy?: string | null; - resourceId?: string | null; - result?: Record | null; - status?: string | null; +/** An input for mutations affecting `FunctionGraphExecutionOutput` */ +export interface FunctionGraphExecutionOutputInput { + /** Timestamp of output creation */ + createdAt?: string; + /** The actual output payload from a completed node */ + data: Record; + /** SHA-256 hash of the data JSONB — content-addressed deduplication */ + hash: Base64EncodedBinary; + /** Unique execution output identifier */ + id?: string; + /** Opaque store partition key for the global tier */ + scopeId: string; } -export interface UpdatePlatformResourceStatusCheckInput { - clientMutationId?: string; +/** An input for mutations affecting `FunctionGraphObject` */ +export interface FunctionGraphObjectInput { + /** Timestamp of object creation */ + createdAt?: string; + /** Payload data for this object node */ + data?: Record; + /** Content-addressed UUID v5 — deterministic hash of (data, kids, ktree) */ id: string; - platformResourceStatusCheckPatch: PlatformResourceStatusCheckPatch; + /** Ordered array of child object IDs */ + kids?: string[]; + /** Ordered array of child path names (parallel to kids) */ + ktree?: string[]; + /** Opaque store partition key for the global tier */ + scopeId: string; } -export interface DeletePlatformResourceStatusCheckInput { - clientMutationId?: string; - id: string; +/** An input for mutations affecting `FunctionGraphRef` */ +export interface FunctionGraphRefInput { + /** Commit this ref points to */ + commitId?: string; + /** Unique ref identifier */ + id?: string; + /** Ref name (e.g. HEAD, main) */ + name: string; + /** Opaque store partition key for the global tier */ + scopeId: string; + /** Store this ref belongs to */ + storeId: string; } -export interface CreatePlatformResourceUsageLogInput { - clientMutationId?: string; - platformResourceUsageLog: { - cpuMillicores?: string; - intervalSeconds: number; - memoryBytes?: string; - metrics?: Record; - namespaceId: string; - resourceId?: string; - sampledAt?: string; - source: string; - }; +/** An input for mutations affecting `FunctionGraphStore` */ +export interface FunctionGraphStoreInput { + /** Timestamp of store creation */ + createdAt?: string; + /** Current root object hash of this store */ + hash?: string; + /** Unique store identifier */ + id?: string; + /** Human-readable store name */ + name: string; + /** Opaque store partition key for the global tier */ + scopeId: string; } -export interface PlatformResourceUsageLogPatch { - cpuMillicores?: string | null; - intervalSeconds?: number | null; - memoryBytes?: string | null; - metrics?: Record | null; - namespaceId?: string | null; - resourceId?: string | null; - sampledAt?: string | null; - source?: string | null; +/** An input for mutations affecting `FunctionInvocationAttempt` */ +export interface FunctionInvocationAttemptInput { + /** Who triggered the invocation; NULL only when no human actor was proven */ + actorId?: string; + /** 1-based attempt number for this invocation */ + attempt: number; + /** When the attempt result was recorded (partition key) */ + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Wall-clock attempt time in milliseconds */ + durationMs?: number; + /** Error message when the attempt failed */ + error?: string; + /** Structured error context (stack, code, provider response) */ + errorDetail?: Record; + /** Unique attempt identifier */ + id?: string; + /** created_at of the referenced invocation (partition-pruned lookups against the invocations PK) */ + invocationCreatedAt: string; + /** Invocation this attempt belongs to (soft reference paired with invocation_created_at) */ + invocationId: string; + /** When the attempt began executing */ + startedAt?: string; + /** Whether this attempt completed successfully */ + success: boolean; + /** Function routing slug (denormalized from the invocation) */ + taskIdentifier: string; } -export interface UpdatePlatformResourceUsageLogInput { - clientMutationId?: string; - id: string; - platformResourceUsageLogPatch: PlatformResourceUsageLogPatch; +/** An input for mutations affecting `FunctionInvocation` */ +export interface FunctionInvocationInput { + /** Who triggered the invocation; NULL only when no human actor was proven */ + actorId?: string; + /** API binding this invocation arrived through (NULL for cron/graph/system/worker paths) */ + apiBindingId?: string; + /** Invocation trigger channel: api, graph, cron, sync, webhook, trigger, or worker */ + channel: string; + /** When execution completed */ + completedAt?: string; + /** Invocation creation timestamp (partition key) */ + createdAt?: string; + /** Acting principal (agent, API key, or user) who created this record */ + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Scope that owns function_definition_id (e.g. app/org/database/platform) — the per-scope definitions table the resolver selected */ + definitionScope?: string; + /** Wall-clock execution time in milliseconds */ + durationMs?: number; + /** Entity identity propagated with the invocation */ + entityId?: string; + /** Entity type propagated with the invocation */ + entityType?: string; + /** Error message when status is failed, or the reason the run was skipped when status is skipped */ + error?: string; + /** Function definition this invocation ran (soft cross-scope ref; paired with definition_scope). task_identifier stays as the audit slug. */ + functionDefinitionId?: string; + /** Groups all node invocations from a single flow graph execution */ + graphExecutionId?: string; + /** Unique invocation identifier */ + id?: string; + /** FK to app_jobs.jobs — the underlying transport */ + jobId?: string; + /** Organization identity propagated with the invocation */ + organizationId?: string; + /** Parent invocation when this is a child node of a flow graph execution */ + parentInvocationId?: string; + /** Function input payload */ + payload?: Record; + /** Principal identity that triggered the invocation */ + principalId?: string; + /** Non-secret channel-specific invocation provenance (route/binding/event identifiers only) */ + provenance?: Record; + /** Function return value (success) or structured error (failure) */ + result?: Record; + /** When execution started */ + startedAt?: string; + /** Lifecycle: pending → running → completed/failed/cancelled; skipped = never ran (a gate rejected the intended run) */ + status?: string; + /** Function routing slug (category:name). Denormalized from the definition — must match the row referenced by function_definition_id when that is set. */ + taskIdentifier: string; } -export interface DeletePlatformResourceUsageLogInput { - clientMutationId?: string; - id: string; +/** An input for mutations affecting `Image` */ +export interface ImageInput { + createdAt?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Human-readable description of what this image runs */ + description?: string; + /** Content address (sha256:...) pinning this image, when known */ + digest?: string; + /** When this catalog row becomes eligible for retention cleanup (NULL = kept forever) */ + expiresAt?: string; + id?: string; + /** Whether this image is published for use by any scope */ + isPublished?: boolean; + /** Labels for selecting images (architecture, capabilities, lane) */ + labels?: Record; + /** Freeform metadata (build provenance, source repository, SBOM pointer) */ + metadata?: Record; + /** Human-readable image name (e.g. node-runtime) */ + name: string; + /** User who registered this catalog row */ + ownerId?: string; + /** Whether this image is reserved for platform-internal use */ + platformOnly?: boolean; + /** Registry host serving this image (NULL means the platform default registry) */ + registryHost?: string; + /** Repository path within the registry (e.g. constructiveio/worker) */ + repository: string; + /** Runtime this image implements (e.g. nodejs, python, custom) */ + runtime?: string; + /** Mutable tag this row addresses */ + tag?: string; + updatedAt?: string; + updatedByPrincipal?: string; } -export interface CreatePlatformResourceUsageSummaryInput { - clientMutationId?: string; - platformResourceUsageSummary: { - date: string; - gbSeconds?: string; - maxCpuMillicores?: string; - maxMemoryBytes?: string; - namespaceId: string; - resourceId?: string; - runtimeSeconds?: string; - sampleCount?: number; - }; +/** An input for mutations affecting `ImageGrant` */ +export interface ImageGrantInput { + /** Registry actions this grant allows (pull, push, delete) */ + actions?: string[]; + createdAt?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** When this grant stops applying (NULL never expires) */ + expiresAt?: string; + /** User who issued this grant */ + grantedBy?: string; + /** Scope key of the grantee (a database_id or an entity_id) */ + granteeKey: string; + /** Scope tier of the grantee (database, org, app, platform) */ + granteeScope: string; + id?: string; + /** Catalog image this grant applies to */ + imageId: string; + updatedAt?: string; + updatedByPrincipal?: string; } -export interface PlatformResourceUsageSummaryPatch { - date?: string | null; - gbSeconds?: string | null; - maxCpuMillicores?: string | null; - maxMemoryBytes?: string | null; - namespaceId?: string | null; - resourceId?: string | null; - runtimeSeconds?: string | null; - sampleCount?: number | null; +/** An input for mutations affecting `InfraCommit` */ +export interface InfraCommitInput { + /** User who authored the changes */ + authorId?: string; + /** User who committed (may differ from author) */ + committerId?: string; + /** Database scope for multi-tenant isolation */ + databaseId: string; + /** Commit timestamp */ + date?: string; + /** Unique commit identifier */ + id?: string; + /** Optional commit message */ + message?: string; + /** Parent commit IDs (supports merge commits) */ + parentIds?: string[]; + /** Store this commit belongs to */ + storeId: string; + /** Root object ID of the tree snapshot at this commit */ + treeId?: string; } -export interface UpdatePlatformResourceUsageSummaryInput { - clientMutationId?: string; +/** An input for mutations affecting `InfraObject` */ +export interface InfraObjectInput { + /** Timestamp of object creation */ + createdAt?: string; + /** Payload data for this object node */ + data?: Record; + /** Database scope for multi-tenant isolation */ + databaseId: string; + /** Content-addressed UUID v5 — deterministic hash of (data, kids, ktree) */ id: string; - platformResourceUsageSummaryPatch: PlatformResourceUsageSummaryPatch; + /** Ordered array of child object IDs */ + kids?: string[]; + /** Ordered array of child path names (parallel to kids) */ + ktree?: string[]; } -export interface DeletePlatformResourceUsageSummaryInput { - clientMutationId?: string; - id: string; +/** An input for mutations affecting `InfraRef` */ +export interface InfraRefInput { + /** Commit this ref points to */ + commitId?: string; + /** Database scope for multi-tenant isolation */ + databaseId: string; + /** Unique ref identifier */ + id?: string; + /** Ref name (e.g. HEAD, main) */ + name: string; + /** Store this ref belongs to */ + storeId: string; } -export interface CreatePlatformResourceUtilizationInput { - clientMutationId?: string; - platformResourceUtilization: { - avgMemoryBytes?: string; - cpuLimitMillicores?: string; - cpuPeakUtilization?: string; - cpuRequestHeadroomMillicores?: string; - cpuRequestMillicores?: string; - date?: string; - gbSeconds?: string; - kind?: string; - maxCpuMillicores?: string; - maxMemoryBytes?: string; - memoryLimitBytes?: string; - memoryPeakUtilization?: string; - memoryRequestBytes?: string; - memoryRequestHeadroomBytes?: string; - namespaceId: string; - replicas?: number; - resourceId: string; - runtimeSeconds?: string; - sampleCount?: number; - }; +/** An input for mutations affecting `InfraStore` */ +export interface InfraStoreInput { + /** Timestamp of store creation */ + createdAt?: string; + /** Database scope for multi-tenant isolation */ + databaseId: string; + /** Current root object hash of this store */ + hash?: string; + /** Unique store identifier */ + id?: string; + /** Human-readable store name */ + name: string; } -export interface PlatformResourceUtilizationPatch { - avgMemoryBytes?: string | null; - cpuLimitMillicores?: string | null; - cpuPeakUtilization?: string | null; - cpuRequestHeadroomMillicores?: string | null; - cpuRequestMillicores?: string | null; - date?: string | null; - gbSeconds?: string | null; - kind?: string | null; - maxCpuMillicores?: string | null; - maxMemoryBytes?: string | null; - memoryLimitBytes?: string | null; - memoryPeakUtilization?: string | null; - memoryRequestBytes?: string | null; - memoryRequestHeadroomBytes?: string | null; - namespaceId?: string | null; - replicas?: number | null; - resourceId?: string | null; - runtimeSeconds?: string | null; - sampleCount?: number | null; +/** An input for mutations affecting `IntegrationProvider` */ +export interface IntegrationProviderInput { + /** Brand metadata: colors, fonts, and other provider-specific styling. Not a foreign key. */ + brand?: Record; + /** Browser category (e.g. email, database, storage, ai, analytics) */ + category?: string; + createdAt?: string; + /** Short description of what this integration provides and when to use it */ + description?: string; + /** Icon identifier for the UI (e.g. mail, database, cloud) */ + icon?: string; + id?: string; + /** Provider logo as an image domain value (url, id, key, bucket, provider) */ + logo?: ConstructiveInternalTypeImage; + /** Human-readable brand name (e.g. 'Mailgun', 'PostgreSQL') */ + name: string; + /** Canonical config requirements for this provider: array of (name, required, provider) tuples. Used by the UI to auto-fill function/resource required_configs. */ + requiredConfigs?: ResourceRequirementInput[]; + /** Canonical secret requirements for this provider: array of (name, required, provider) tuples. Used by the UI to auto-fill function/resource required_secrets. */ + requiredSecrets?: ResourceRequirementInput[]; + /** Stable URL-safe identifier for the provider. Other tables match by this string, not by FK. */ + slug: string; + updatedAt?: string; } -export interface UpdatePlatformResourceUtilizationInput { - clientMutationId?: string; - id: string; - platformResourceUtilizationPatch: PlatformResourceUtilizationPatch; +/** An input for mutations affecting `Namespace` */ +export interface NamespaceInput { + /** Freeform metadata for tooling and operational notes */ + annotations?: Record; + /** Cluster this namespace is projected onto; NULL = the cluster the reconciler runs in */ + clusterId?: string; + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Optional human-readable description of this namespace */ + description?: string; + id?: string; + /** Whether this namespace is active (soft-disable for filtering) */ + isActive?: boolean; + /** true = provisioned by the platform via jobs, false = unmanaged/platform-native (bootstrapped externally) */ + isManaged?: boolean; + /** Key/value pairs for selecting and filtering namespaces */ + labels?: Record; + /** Most recent provisioning or reconcile error message */ + lastError?: string; + /** Human-readable namespace name (e.g. default, production, oauth) */ + name: string; + /** Globally unique computed namespace identifier via inflection.underscore */ + namespaceName: string; + /** Namespace provisioning lifecycle status: pending, provisioning, active, failed */ + status?: string; + updatedAt?: string; } -export interface DeletePlatformResourceUtilizationInput { - clientMutationId?: string; - id: string; +/** An input for mutations affecting `NamespaceEvent` */ +export interface NamespaceEventInput { + /** User who triggered this event; NULL only when no human actor was proven */ + actorId?: string; + /** Event timestamp (partition key) */ + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Event type: created, activated, deactivated, labels_updated, annotations_updated, renamed */ + eventType: string; + /** Unique event identifier */ + id?: string; + /** Human-readable description of the event */ + message?: string; + /** Structured context (old/new values, labels diff, etc.) */ + metadata?: Record; + /** Namespace this event belongs to */ + namespaceId: string; } -export interface CreatePlatformResourcesHealthInput { - clientMutationId?: string; - platformResourcesHealth: { - annotations?: Record; - cpuLimitMillicores?: string; - cpuRequestMillicores?: string; - createdBy?: string; - errorCount?: number; - installationId: string; - integrations?: string[]; - kind?: string; - labels?: Record; - lastError?: string; - lastHeartbeatAt?: string; - memoryLimitBytes?: string; - memoryRequestBytes?: string; - name?: string; - namespaceId: string; - realm?: string; - replicas?: number; - requiredConfigs?: ResourceRequirement[]; - requiredSecrets?: ResourceRequirement[]; - resourceDefinitionId: string; - slug?: string; - spec?: Record; - status?: string; - statusDetail?: string; - statusObserved?: Record; - storageClass?: string; - storageSizeBytes?: string; - updatedBy?: string; - }; +/** An input for mutations affecting `PlatformBuild` */ +export interface PlatformBuildInput { + /** Authenticated actor this build is attributed to; NULL only when no human actor was proven */ + actorId?: string; + /** Retry attempt number for this workflow, commit, and matrix shard */ + attempt?: number; + /** Commit this build built */ + commitSha?: string; + /** Verdict: NULL while pending/running, then success, failure, neutral, cancelled, skipped, timed_out, or action_required */ + conclusion?: string; + createdAt?: string; + createdByPrincipal?: string; + /** Event that triggered this build (NULL for a manual build) */ + eventId?: string; + /** When the build reached a terminal status */ + finishedAt?: string; + id?: string; + /** Image reference this build produced (registry host/repository:tag; NULL when the build produced no image) */ + imageRef?: string; + /** app_jobs row running this build */ + jobId?: string; + /** Build log object in storage; step rows slice it by byte range */ + logs?: ConstructiveInternalTypeUpload; + /** Matrix shard identity; NULL for a non-matrix build */ + matrixKey?: string; + /** Build detail (step results, durations, failure reason) */ + metadata?: Record; + /** Proposal this build checks (NULL for builds not tied to a proposal) */ + proposalId?: string; + /** Ref this build built */ + ref?: string; + /** Repository this build is of */ + repositoryId: string; + /** When the build began running */ + startedAt?: string; + /** Lifecycle: pending, running, succeeded, failed, cancelled */ + status?: string; + updatedAt?: string; + updatedByPrincipal?: string; + /** Workflow whose firing produced this build (NULL for a manual build) */ + workflowId?: string; +} +/** An input for mutations affecting `PlatformBuildStep` */ +export interface PlatformBuildStepInput { + /** Build these results belong to */ + buildId: string; + /** Acting principal (agent, API key, or user) who created this record */ + createdByPrincipal?: string; + /** Process exit code of a step (NULL for a test result) */ + exitCode?: number; + /** When this step or test finished */ + finishedAt?: string; + /** Unique identifier (uuidv7 provides temporal ordering) */ + id?: string; + /** What this row is: step, or test */ + kind?: string; + /** Byte length of this row's output in the build log object */ + logBytes?: string; + /** Byte offset of this row's output in the build log object */ + logOffset?: string; + /** Step name, or the test's fully qualified name */ + name: string; + /** Sequence of the step that reported this test (NULL for a step itself) */ + parentSeq?: number; + /** When the result was recorded (partition key) */ + recordedAt?: string; + /** Position within the build, monotonically increasing across steps and their tests */ + seq: number; + /** When this step or test began */ + startedAt?: string; + /** Outcome: running, succeeded, failed, skipped, cancelled */ + status?: string; + /** Parsed detail: failure message, assertion diff, counts, annotations */ + summary?: Record; +} +/** An input for mutations affecting `PlatformBuilderBinding` */ +export interface PlatformBuilderBindingInput { + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + id?: string; + /** BuildKit resource installation serving this binding; may belong to another resource scope */ + installationId: string; + /** Most recent projection failure */ + lastError?: string; + /** Reconciler detail (projection timestamps and diagnostics) */ + metadata?: Record; + /** Namespace whose builds use this BuildKit installation */ + namespaceId: string; + /** BuildKit address last projected into the namespace (NULL = never projected) */ + observedHost?: string; + /** Lane this binding applies to (NULL = the scope's default lane) */ + realm?: string; + /** Projection state of BUILDKIT_HOST: pending, active, failed */ + status?: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; } -export interface PlatformResourcesHealthPatch { - annotations?: Record | null; - cpuLimitMillicores?: string | null; - cpuRequestMillicores?: string | null; - createdBy?: string | null; - errorCount?: number | null; - installationId?: string | null; - integrations?: string[] | null; - kind?: string | null; - labels?: Record | null; - lastError?: string | null; - lastHeartbeatAt?: string | null; - memoryLimitBytes?: string | null; - memoryRequestBytes?: string | null; - name?: string | null; - namespaceId?: string | null; - realm?: string | null; - replicas?: number | null; - requiredConfigs?: ResourceRequirement[] | null; - requiredSecrets?: ResourceRequirement[] | null; - resourceDefinitionId?: string | null; - slug?: string | null; - spec?: Record | null; - status?: string | null; - statusDetail?: string | null; - statusObserved?: Record | null; - storageClass?: string | null; - storageSizeBytes?: string | null; - updatedBy?: string | null; +/** An input for mutations affecting `PlatformFunctionApiBinding` */ +export interface PlatformFunctionApiBindingInput { + /** Binding alias (e.g. default, staging, production) */ + alias?: string; + /** API endpoint this function is bound to */ + apiId: string; + /** Per-binding configuration (overrides, routing rules, etc.) */ + config?: Record; + createdAt?: string; + /** Function definition this binding belongs to */ + functionDefinitionId: string; + id?: string; + updatedAt?: string; } -export interface UpdatePlatformResourcesHealthInput { - clientMutationId?: string; - id: string; - platformResourcesHealthPatch: PlatformResourcesHealthPatch; +/** An input for mutations affecting `PlatformFunctionCapabilityBinding` */ +export interface PlatformFunctionCapabilityBindingInput { + /** Bucket this capability targets (exactly one typed target is set) */ + bucketId?: string; + createdAt?: string; + /** Function definition holding this capability (exactly one of function_id / graph_id is set) */ + functionId?: string; + /** Flow graph holding this capability (exactly one of function_id / graph_id is set) */ + graphId?: string; + id?: string; + /** Runtime handle the holder addresses this capability by (e.g. default, scratch) */ + key?: string; + /** Lifecycle the capability applies to: deployment (build/deploy time), execution (per invocation), root_execution (root of a graph execution tree) */ + lifecycle: string; + /** Per-binding annotations (no runtime semantics) */ + metadata?: Record; + updatedAt?: string; } -export interface DeletePlatformResourcesHealthInput { - clientMutationId?: string; - id: string; +/** An input for mutations affecting `PlatformFunctionDefinition` */ +export interface PlatformFunctionDefinitionInput { + /** 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 this function consents to run for a caller with no identity (a sign-in surface, a public page). Anonymous execution additionally requires the matched route to declare anonymous access. Default false = an identity is required. */ + anonymousCallable?: boolean; + /** Whether executions are metered through the invocation ledger and billing quota gate */ + billable?: boolean; + /** Function task category (e.g. email, embed, chunk, custom) */ + category: string; + /** Knative containerConcurrency — max concurrent requests per pod instance */ + concurrency?: number; + createdAt?: string; + createdByPrincipal?: string; + /** Human-readable description of what this function does */ + description?: string; + /** Palette grouping category (e.g. email, data, ai, custom) */ + fnCategory?: string; + /** Ordered array of module_table column names holding the generated function names to invoke when runtime=sql (module mode). NULL for direct mode and other runtimes. */ + functionColumns?: Record; + /** Existing flow graph invoked when runtime=graph. Required for graph runtime and forbidden for all other runtimes. */ + graphId?: string; + /** Icon identifier for UI palette rendering (e.g. mail, database, code) */ + icon?: string; + id?: string; + /** Docker image reference (e.g. ghcr.io/constructive-io/email-send-fn:latest). Required when runtime=http or runtime=resource. NULL for inline functions. */ + image?: string; + /** Data input ports: [{name, type, description?, optional?, multi?, schema?}] */ + inputs?: Record; + /** Provider slugs (e.g. mailgun, postgres) associated with this function. The UI uses this to auto-fill required_secrets and required_configs from integration_providers. */ + integrations?: string[]; + /** Whether this function definition is published to the public catalog for direct authenticated invocation. Default false = internal-only via add_job() */ + isPublished?: boolean; + /** Maximum retry attempts for the underlying job */ + maxAttempts?: number; + /** metaschema_modules_public table whose per-database row carries the generated function names when runtime=sql (module mode). NULL for direct mode and other runtimes. */ + moduleTable?: string; + /** Function name within category (e.g. send_verification_link, process_file_embedding) */ + name: string; + /** Data output ports: [{name, type, description?, optional?, multi?, schema?}] */ + outputs?: Record; + /** Ordered bind-parameter mapping for runtime=sql: [{name, type}]. payload[name] is bound as $n::type. */ + payloadArgs?: Record; + /** Job priority (lower = higher priority) */ + priority?: number; + /** Configuration properties: [{name, type, default?, description?, required?, schema?}] */ + props?: Record; + /** Protected platform definition: narrower scopes cannot register the same task_identifier */ + protected?: boolean; + /** Timestamp when this function was published. NULL means immediately published when is_published is true; future timestamps delay public visibility */ + publishedAt?: string; + /** Job queue name for serialization (e.g. email, ai, default) */ + queueName?: string; + /** 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[]; + /** Capability providers the handler declared in handler.json requires.capabilities, as an array of {name, version, declaration}. NULL when the handler declares none, which mounts the full platform set. */ + requiredCapabilities?: Record; + /** 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}} */ + resources?: Record; + /** Execution mode: http (Knative Service dispatch), inline (in-process in compute worker), handler (registered infrastructure handler), sql (generic SQL dispatch via a trusted direct target or module-resolved function names), resource (Kubernetes Job via the resource module with node-gateway callbacks), graph (existing flow graph referenced by graph_id), or human (parks the node awaiting a person's answer through approve_node) */ + runtime?: string; + /** Maximum pod count for Knative autoscaling (maxScale) */ + scaleMax?: number; + /** Minimum pod count for Knative autoscaling (minScale) */ + scaleMin?: number; + /** Platform system definition: its task_identifier cannot be shadowed by non-platform registration */ + system?: boolean; + /** Name of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. */ + targetFunction?: string; + /** Schema of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. */ + targetSchema?: string; + /** Knative request timeout in seconds */ + timeoutSeconds?: number; + updatedAt?: string; + updatedByPrincipal?: string; + /** Whether this function has side effects and cannot be cached or memoized */ + volatile?: boolean; } -export interface CreatePlatformResourcesRequirementsStateInput { - clientMutationId?: string; - platformResourcesRequirementsState: { - configHash?: string; - configObjectName?: string; - requirementsHash?: string; - resourceId: string; - secretsHash?: string; - secretsObjectName?: string; - slug?: string; - }; +/** An input for mutations affecting `PlatformFunctionDeployment` */ +export interface PlatformFunctionDeploymentInput { + /** Freeform metadata for tooling and operational notes */ + annotations?: Record; + /** Max concurrent requests per pod (NULL = inherit from definition) */ + concurrency?: number; + createdAt?: string; + createdByPrincipal?: string; + /** Cumulative error count for this deployment */ + errorCount?: number; + /** Handler directory name (e.g. email, document) — used as FN_HANDLER_NAME in combined-image mode to select the entry point */ + handlerName?: string; + id?: string; + /** Logical image name — the handler identity and grouping key (e.g. fn-email). No registry host or tag; tag lives in image_version. */ + image: string; + /** Image tag/version for the handler container (e.g. latest, 2.6.4) */ + imageVersion?: string; + /** Key/value pairs for selecting and filtering deployments */ + labels?: Record; + /** Most recent provisioning or runtime error message */ + lastError?: string; + /** Timestamp of the most recent error */ + 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) */ + revision?: number; + /** Maximum replica count (NULL = inherit from definition or Knative default) */ + scaleMax?: number; + /** Minimum replica count (NULL = inherit from definition or Knative default) */ + scaleMin?: number; + /** Knative service name — a randomly minted cute name (unique_names.generate_name() + random hex suffix) assigned by the service_url trigger; unique per namespace, not derived from the image */ + serviceName?: string; + /** Knative service URL (http://{service-name}.{namespace}.svc.cluster.local) — populated after provisioning */ + serviceUrl?: string; + /** Deployment lifecycle status: pending, provisioning, active, failed, scaled_to_zero, deactivated */ + status?: string; + /** Request timeout override in seconds (NULL = inherit from definition) */ + timeoutSeconds?: number; + updatedAt?: string; + updatedByPrincipal?: string; } -export interface PlatformResourcesRequirementsStatePatch { - configHash?: string | null; - configObjectName?: string | null; - requirementsHash?: string | null; - resourceId?: string | null; - secretsHash?: string | null; - secretsObjectName?: string | null; - slug?: string | null; +/** An input for mutations affecting `PlatformFunctionDeploymentEvent` */ +export interface PlatformFunctionDeploymentEventInput { + /** User who triggered this event; NULL only when no human actor was proven */ + actorId?: string; + /** Event timestamp (partition key) */ + createdAt?: string; + /** Deployment this event belongs to */ + deploymentId: string; + /** Event type: provisioned, scaled, failed, deactivated, redeployed, health_check */ + eventType: string; + /** Unique event identifier */ + id?: string; + /** Human-readable description of the event */ + message?: string; + /** Structured context (old/new values, error details, etc.) */ + metadata?: Record; } -export interface UpdatePlatformResourcesRequirementsStateInput { - clientMutationId?: string; - id: string; - platformResourcesRequirementsStatePatch: PlatformResourcesRequirementsStatePatch; +/** An input for mutations affecting `PlatformFunctionExecutionLog` */ +export interface PlatformFunctionExecutionLogInput { + /** User who triggered the execution; NULL only when no human actor was proven */ + actorId?: string; + /** Log entry timestamp (partition key) */ + createdAt?: string; + /** Unique log entry identifier */ + id?: string; + /** Invocation this log entry belongs to (NULL for standalone job logs) */ + invocationId?: string; + /** Log severity: debug, info, warn, error */ + logLevel?: string; + /** Log message text */ + message: string; + /** Structured context (labels, trace data, extra fields) */ + metadata?: Record; + /** Function routing key (NULL for generic job logs) */ + taskIdentifier?: string; +} +/** An input for mutations affecting `PlatformFunctionInvocationAttempt` */ +export interface PlatformFunctionInvocationAttemptInput { + /** Who triggered the invocation; NULL only when no human actor was proven */ + actorId?: string; + /** 1-based attempt number for this invocation */ + attempt: number; + /** When the attempt result was recorded (partition key) */ + createdAt?: string; + /** Wall-clock attempt time in milliseconds */ + durationMs?: number; + /** Error message when the attempt failed */ + error?: string; + /** Structured error context (stack, code, provider response) */ + errorDetail?: Record; + /** Unique attempt identifier */ + id?: string; + /** created_at of the referenced invocation (partition-pruned lookups against the invocations PK) */ + invocationCreatedAt: string; + /** Invocation this attempt belongs to (soft reference paired with invocation_created_at) */ + invocationId: string; + /** When the attempt began executing */ + startedAt?: string; + /** Whether this attempt completed successfully */ + success: boolean; + /** Function routing slug (denormalized from the invocation) */ + taskIdentifier: string; } -export interface DeletePlatformResourcesRequirementsStateInput { - clientMutationId?: string; - id: string; +/** An input for mutations affecting `PlatformFunctionInvocation` */ +export interface PlatformFunctionInvocationInput { + /** Who triggered the invocation; NULL only when no human actor was proven */ + actorId?: string; + /** API binding this invocation arrived through (NULL for cron/graph/system/worker paths) */ + apiBindingId?: string; + /** Invocation trigger channel: api, graph, cron, sync, webhook, trigger, or worker */ + channel: string; + /** When execution completed */ + completedAt?: string; + /** Invocation creation timestamp (partition key) */ + createdAt?: string; + /** Acting principal (agent, API key, or user) who created this record */ + createdByPrincipal?: string; + /** Database this invocation is attributed to (usage/billing attribution) */ + databaseId?: string; + /** Scope that owns function_definition_id (e.g. app/org/database/platform) — the per-scope definitions table the resolver selected */ + definitionScope?: string; + /** Wall-clock execution time in milliseconds */ + durationMs?: number; + /** Entity identity propagated with the invocation */ + entityId?: string; + /** Entity type propagated with the invocation */ + entityType?: string; + /** Error message when status is failed, or the reason the run was skipped when status is skipped */ + error?: string; + /** Function definition this invocation ran (soft cross-scope ref; paired with definition_scope). task_identifier stays as the audit slug. */ + functionDefinitionId?: string; + /** Groups all node invocations from a single flow graph execution */ + graphExecutionId?: string; + /** Unique invocation identifier */ + id?: string; + /** FK to app_jobs.jobs — the underlying transport */ + jobId?: string; + /** Organization identity propagated with the invocation */ + organizationId?: string; + /** Parent invocation when this is a child node of a flow graph execution */ + parentInvocationId?: string; + /** Function input payload */ + payload?: Record; + /** Principal identity that triggered the invocation */ + principalId?: string; + /** Non-secret channel-specific invocation provenance (route/binding/event identifiers only) */ + provenance?: Record; + /** Function return value (success) or structured error (failure) */ + result?: Record; + /** When execution started */ + startedAt?: string; + /** Lifecycle: pending → running → completed/failed/cancelled; skipped = never ran (a gate rejected the intended run) */ + status?: string; + /** Function routing slug (category:name). Denormalized from the definition — must match the row referenced by function_definition_id when that is set. */ + taskIdentifier: string; } -export interface CreatePlatformResourcesResolvedRequirementInput { - clientMutationId?: string; - platformResourcesResolvedRequirement: { - atomId: string; - configObjectName?: string; - name?: string; - namespaceId: string; - present?: boolean; - realm?: string; - required?: boolean; - requirementKind?: string; - resourceId: string; - secretsObjectName?: string; - slug?: string; - }; +/** An input for mutations affecting `PlatformImage` */ +export interface PlatformImageInput { + createdAt?: string; + createdByPrincipal?: string; + /** Human-readable description of what this image runs */ + description?: string; + /** Content address (sha256:...) pinning this image, when known */ + digest?: string; + /** When this catalog row becomes eligible for retention cleanup (NULL = kept forever) */ + expiresAt?: string; + id?: string; + /** Whether this image is published for use by any scope */ + isPublished?: boolean; + /** Labels for selecting images (architecture, capabilities, lane) */ + labels?: Record; + /** Freeform metadata (build provenance, source repository, SBOM pointer) */ + metadata?: Record; + /** Human-readable image name (e.g. node-runtime) */ + name: string; + /** User who registered this catalog row */ + ownerId?: string; + /** Whether this image is reserved for platform-internal use */ + platformOnly?: boolean; + /** Registry host serving this image (NULL means the platform default registry) */ + registryHost?: string; + /** Repository path within the registry (e.g. constructiveio/worker) */ + repository: string; + /** Runtime this image implements (e.g. nodejs, python, custom) */ + runtime?: string; + /** Mutable tag this row addresses */ + tag?: string; + updatedAt?: string; + updatedByPrincipal?: string; } -export interface PlatformResourcesResolvedRequirementPatch { - atomId?: string | null; - configObjectName?: string | null; - name?: string | null; - namespaceId?: string | null; - present?: boolean | null; - realm?: string | null; - required?: boolean | null; - requirementKind?: string | null; - resourceId?: string | null; - secretsObjectName?: string | null; - slug?: string | null; +/** An input for mutations affecting `PlatformImageGrant` */ +export interface PlatformImageGrantInput { + /** Registry actions this grant allows (pull, push, delete) */ + actions?: string[]; + createdAt?: string; + createdByPrincipal?: string; + /** When this grant stops applying (NULL never expires) */ + expiresAt?: string; + /** User who issued this grant */ + grantedBy?: string; + /** Scope key of the grantee (a database_id or an entity_id) */ + granteeKey: string; + /** Scope tier of the grantee (database, org, app, platform) */ + granteeScope: string; + id?: string; + /** Catalog image this grant applies to */ + imageId: string; + updatedAt?: string; + updatedByPrincipal?: string; } -export interface UpdatePlatformResourcesResolvedRequirementInput { - clientMutationId?: string; - id: string; - platformResourcesResolvedRequirementPatch: PlatformResourcesResolvedRequirementPatch; +/** An input for mutations affecting `PlatformInfraCommit` */ +export interface PlatformInfraCommitInput { + /** User who authored the changes */ + authorId?: string; + /** User who committed (may differ from author) */ + committerId?: string; + /** Commit timestamp */ + date?: string; + /** Unique commit identifier */ + id?: string; + /** Optional commit message */ + message?: string; + /** Parent commit IDs (supports merge commits) */ + parentIds?: string[]; + /** Opaque store partition key for the global tier */ + scopeId: string; + /** Store this commit belongs to */ + storeId: string; + /** Root object ID of the tree snapshot at this commit */ + treeId?: string; } -export interface DeletePlatformResourcesResolvedRequirementInput { - clientMutationId?: string; +/** An input for mutations affecting `PlatformInfraObject` */ +export interface PlatformInfraObjectInput { + /** Timestamp of object creation */ + createdAt?: string; + /** Payload data for this object node */ + data?: Record; + /** Content-addressed UUID v5 — deterministic hash of (data, kids, ktree) */ id: string; + /** Ordered array of child object IDs */ + kids?: string[]; + /** Ordered array of child path names (parallel to kids) */ + ktree?: string[]; + /** Opaque store partition key for the global tier */ + scopeId: string; } -export interface CreatePlatformWebhookEndpointInput { - clientMutationId?: string; - platformWebhookEndpoint: { - active?: boolean; - createdBy?: string; - functionDefinitionId: string; - host: string; - namespaceId: string; - path: string; - provider?: string; - replayWindowSeconds?: number; - signingSecretName: string; - updatedBy?: string; - }; +/** An input for mutations affecting `PlatformInfraRef` */ +export interface PlatformInfraRefInput { + /** Commit this ref points to */ + commitId?: string; + /** Unique ref identifier */ + id?: string; + /** Ref name (e.g. HEAD, main) */ + name: string; + /** Opaque store partition key for the global tier */ + scopeId: string; + /** Store this ref belongs to */ + storeId: string; } -export interface PlatformWebhookEndpointPatch { - active?: boolean | null; - createdBy?: string | null; - functionDefinitionId?: string | null; - host?: string | null; - namespaceId?: string | null; - path?: string | null; - provider?: string | null; - replayWindowSeconds?: number | null; - signingSecretName?: string | null; - updatedBy?: string | null; +/** An input for mutations affecting `PlatformInfraStore` */ +export interface PlatformInfraStoreInput { + /** Timestamp of store creation */ + createdAt?: string; + /** Current root object hash of this store */ + hash?: string; + /** Unique store identifier */ + id?: string; + /** Human-readable store name */ + name: string; + /** Opaque store partition key for the global tier */ + scopeId: string; } -export interface UpdatePlatformWebhookEndpointInput { - clientMutationId?: string; - id: string; - platformWebhookEndpointPatch: PlatformWebhookEndpointPatch; +/** An input for mutations affecting `PlatformK8sResourceKind` */ +export interface PlatformK8sResourceKindInput { + /** Whether the admission gate consults this row; deactivating a kind row denies the kind (fail closed) */ + active?: boolean; + /** Infra store commit for the current definition (stamped by the versioned trigger on every write) */ + commitId?: string; + /** Timestamp of policy creation */ + createdAt?: string; + /** Kind policy: {allowed, allowed_scopes?, notes} — the readily-cached head; history lives in the infra store */ + definition: Record; + /** Human-readable description of the kind policy */ + description?: string; + /** Unique kind policy identifier */ + id?: string; + /** Human-readable kind policy name */ + label?: string; + /** Kubernetes kind this policy governs (e.g. Deployment); the policy's path in the infra tree is [k8s_resource_kind, slug] */ + slug: string; + /** Infra Merkle store holding this policy's history (stamped by the versioned trigger) */ + storeId?: string; + /** Timestamp of last modification */ + updatedAt?: string; } -export interface DeletePlatformWebhookEndpointInput { - clientMutationId?: string; - id: string; +/** An input for mutations affecting `PlatformK8sSpecRule` */ +export interface PlatformK8sSpecRuleInput { + /** Whether the admission gate enforces this rule; rules are disabled here rather than deleted so history stays intact */ + active?: boolean; + /** Infra store commit for the current definition (stamped by the versioned trigger on every write) */ + commitId?: string; + /** Timestamp of rule creation */ + createdAt?: string; + /** Rule definition: {rule_type, kind?, match, notes?} — the readily-cached head; history lives in the infra store */ + definition: Record; + /** Human-readable description of the rule */ + description?: string; + /** Unique spec rule identifier */ + id?: string; + /** Human-readable rule name */ + label?: string; + /** Rule slug (unique per scope); the rule's path in the infra tree is [k8s_spec_rule, slug] */ + slug: string; + /** Infra Merkle store holding this rule's history (stamped by the versioned trigger) */ + storeId?: string; + /** Timestamp of last modification */ + updatedAt?: string; } -export interface CreatePlatformWebhookEventInput { - clientMutationId?: string; - platformWebhookEvent: { - endpointId: string; - error?: string; - externalEventId: string; - invocationCreatedAt?: string; - invocationId?: string; - payload?: Record; - provider: string; - providerTimestamp?: string; - status?: string; - }; +/** An input for mutations affecting `PlatformNamespace` */ +export interface PlatformNamespaceInput { + /** Freeform metadata for tooling and operational notes */ + annotations?: Record; + /** Cluster this namespace is projected onto; NULL = the cluster the reconciler runs in */ + clusterId?: string; + createdAt?: string; + /** Optional human-readable description of this namespace */ + description?: string; + id?: string; + /** Whether this namespace is active (soft-disable for filtering) */ + isActive?: boolean; + /** true = provisioned by the platform via jobs, false = unmanaged/platform-native (bootstrapped externally) */ + isManaged?: boolean; + /** Key/value pairs for selecting and filtering namespaces */ + labels?: Record; + /** Most recent provisioning or reconcile error message */ + lastError?: string; + /** Human-readable namespace name (e.g. default, production, oauth) */ + name: string; + /** Globally unique computed namespace identifier via inflection.underscore */ + namespaceName: string; + /** Namespace provisioning lifecycle status: pending, provisioning, active, failed */ + status?: string; + updatedAt?: string; } -export interface PlatformWebhookEventPatch { - endpointId?: string | null; - error?: string | null; - externalEventId?: string | null; - invocationCreatedAt?: string | null; - invocationId?: string | null; - payload?: Record | null; - provider?: string | null; - providerTimestamp?: string | null; - status?: string | null; +/** An input for mutations affecting `PlatformNamespaceEvent` */ +export interface PlatformNamespaceEventInput { + /** User who triggered this event; NULL only when no human actor was proven */ + actorId?: string; + /** Event timestamp (partition key) */ + createdAt?: string; + /** Event type: created, activated, deactivated, labels_updated, annotations_updated, renamed */ + eventType: string; + /** Unique event identifier */ + id?: string; + /** Human-readable description of the event */ + message?: string; + /** Structured context (old/new values, labels diff, etc.) */ + metadata?: Record; + /** Namespace this event belongs to */ + namespaceId: string; } -export interface UpdatePlatformWebhookEventInput { - clientMutationId?: string; - id: string; - platformWebhookEventPatch: PlatformWebhookEventPatch; +/** An input for mutations affecting `PlatformProposalComment` */ +export interface PlatformProposalCommentInput { + /** Actor who wrote the comment; NULL only when no human actor was proven */ + actorId?: string; + /** Files referenced by the comment body, in the order they were attached */ + attachments?: ConstructiveInternalTypeUpload[]; + /** Comment text */ + body: string; + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + embedding?: number[]; + /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + embeddingText?: string; + id?: string; + /** Line within path the comment is anchored to */ + line?: number; + /** When the anchored range this comment pointed at vanished from the diff */ + outdatedAt?: string; + /** File the comment is anchored to (NULL for a comment on the proposal) */ + path?: string; + /** Proposal being commented on */ + proposalId: string; + /** When this comment was marked resolved */ + resolvedAt?: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; } -export interface DeletePlatformWebhookEventInput { - clientMutationId?: string; - id: string; +/** An input for mutations affecting `PlatformProposal` */ +export interface PlatformProposalInput { + /** Actor who opened the proposal; NULL only when no human actor was proven */ + actorId?: string; + /** Description of the proposed change */ + body?: string; + /** Why this was closed: completed, not_planned, duplicate, superseded */ + closedReason?: string; + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** When the decision was taken (NULL while the question is open) */ + decidedAt?: string; + /** When this is wanted by (NULL when nothing is promised) */ + dueAt?: string; + embedding?: number[]; + /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + embeddingText?: string; + id?: string; + /** issue (a report or plan), change (merge one ref into another), discussion (an open question), decision (a question answered) */ + kind?: string; + /** Labels for filtering and grouping (a board is a query over kind, status and these) */ + labels?: string[]; + /** Commit the merge produced */ + mergeCommit?: string; + /** How to merge when eligible: merge, squash, rebase */ + mergeMethod?: string; + /** When merge-when-green was requested (NULL when no merge is pending) */ + mergeRequestedAt?: string; + /** When the merge completed */ + mergedAt?: string; + /** Review detail (reviewers, labels, checks summary) */ + metadata?: Record; + /** Proposal this one hangs under: an epic, or the discussion a decision came out of */ + parentId?: string; + /** Manual order within a board column, sparse so an insert between two rows moves one row (NULL when unranked) */ + priority?: string; + /** Repository this proposal is against */ + repositoryId: string; + /** What was decided (for kind = decision; NULL while the question is open) */ + resolution?: string; + /** Ref holding the proposed commits (NULL unless kind is change) */ + sourceRef?: string; + /** Lifecycle state: draft, open, merged, closed */ + status?: string; + /** Ref the commits are proposed for (NULL unless kind is change) */ + targetRef?: string; + /** What this proposal does */ + title: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; } -export interface CreateResourceInput { - clientMutationId?: string; - resource: { - annotations?: Record; - createdBy?: string; - databaseId: string; - errorCount?: number; - installationId?: string; - integrations?: string[]; - kind: string; - labels?: Record; - lastError?: string; - lastHeartbeatAt?: string; - name: string; - namespaceId: string; - realm?: string; - requiredConfigs?: ResourceRequirementInput[]; - requiredSecrets?: ResourceRequirementInput[]; - resourceDefinitionId?: string; - slug: string; - spec?: Record; - status?: string; - statusObserved?: Record; - updatedBy?: string; - }; +/** An input for mutations affecting `PlatformProposalFileView` */ +export interface PlatformProposalFileViewInput { + /** Blob the reviewer read, which is what makes the mark survive a rebase or go stale */ + blobSha: string; + createdAt?: string; + createdByPrincipal?: string; + id?: string; + /** Path of the file as the diff named it */ + path: string; + /** Proposal the file belongs to */ + proposalId: string; + /** Actor who read the file */ + reviewerId: string; + updatedAt?: string; + updatedByPrincipal?: string; + /** When the file was marked read */ + viewedAt?: string; +} +/** An input for mutations affecting `PlatformProposalReaction` */ +export interface PlatformProposalReactionInput { + /** Actor who reacted */ + actorId: string; + /** Comment being reacted to (NULL for a reaction to the proposal itself) */ + commentId?: string; + createdAt?: string; + createdByPrincipal?: string; + /** Reaction shortcode (+1, eyes, rocket) */ + emoji: string; + id?: string; + /** Proposal the reaction belongs to */ + proposalId: string; + updatedAt?: string; + updatedByPrincipal?: string; +} +/** An input for mutations affecting `PlatformProposalReview` */ +export interface PlatformProposalReviewInput { + /** Summary the reviewer submitted with the verdict */ + body?: string; + /** Head commit this verdict was submitted against */ + commitSha: string; + createdAt?: string; + createdByPrincipal?: string; + id?: string; + /** Proposal being reviewed */ + proposalId: string; + /** Actor who submitted the verdict */ + reviewerId: string; + /** When the verdict was submitted */ + submittedAt?: string; + updatedAt?: string; + updatedByPrincipal?: string; + /** approve, reject or comment (a review that gates nothing) */ + verdict: string; } -export interface ResourcePatch { - annotations?: Record | null; - createdBy?: string | null; - databaseId?: string | null; - errorCount?: number | null; - installationId?: string | null; - integrations?: string[] | null; - kind?: string | null; - labels?: Record | null; - lastError?: string | null; - lastHeartbeatAt?: string | null; - name?: string | null; - namespaceId?: string | null; - realm?: string | null; - requiredConfigs?: ResourceRequirementInput[] | null; - requiredSecrets?: ResourceRequirementInput[] | null; - resourceDefinitionId?: string | null; - slug?: string | null; - spec?: Record | null; - status?: string | null; - statusObserved?: Record | null; - updatedBy?: string | null; +/** An input for mutations affecting `PlatformProposalsChunk` */ +export interface PlatformProposalsChunkInput { + /** Policy-required field derived from source table (used by AuthzComposite) */ + actorId?: string; + body: string; + chunkIndex?: number; + createdAt?: string; + embedding?: number[]; + /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + embeddingText?: string; + id?: string; + metadata?: Record; + platformProposalsId: string; + updatedAt?: string; } -export interface UpdateResourceInput { - clientMutationId?: string; - id: string; - resourcePatch: ResourcePatch; +/** An input for mutations affecting `PlatformRegistryBinding` */ +export interface PlatformRegistryBindingInput { + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + id?: string; + /** Reconciler detail (last error, projection timestamps) */ + metadata?: Record; + /** Namespace the registry credentials are projected into */ + namespaceId: string; + /** Registry credential version last projected into the namespace (NULL = never projected) */ + observedCredentialVersion?: string; + /** Name of the image pull secret the reconciler writes into the namespace */ + pullSecretName?: string; + /** Lane this binding applies to (NULL = the scope's default lane) */ + realm?: string; + /** Registry host this binding's credentials authenticate to (what kubelet matches image references against) */ + registryHost: string; + /** Registry endpoint (in this scope's registry catalog) the namespace pulls from */ + registryId: string; + /** Projection state of the pull secret: pending, active, failed */ + status?: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; +} +/** An input for mutations affecting `PlatformRegistry` */ +export interface PlatformRegistryInput { + /** How a client authenticates to this registry (none, basic, token) */ + authMode?: string; + /** Path prefix within the host (npm scope, OCI project); NULL = the host root */ + basePath?: string; + createdAt?: string; + createdByPrincipal?: string; + /** Name of the infra secret carrying this registry's credential (NULL when auth_mode = none) */ + credentialSecretName?: string; + /** Registry host, without a scheme (e.g. ghcr.io, registry.npmjs.org); required unless role is source, where it is the optional requested host and is stamped with the provisioned one */ + host?: string; + id?: string; + /** Resource installation running this registry (NULL for an external registry) */ + installationId?: string; + /** Whether this registry is published for use by any scope */ + isPublished?: boolean; + /** Artifact ecosystem this registry serves (oci, npm) */ + kind: string; + /** Labels for selecting registries (lane, region, mirror role) */ + labels?: Record; + /** Message from the last failed provision/deprovision attempt (NULL when healthy) */ + lastError?: string; + /** Freeform metadata (mirror-of pointer, rate limits, contact) */ + metadata?: Record; + /** Human-readable registry name (e.g. github-container-registry) */ + name: string; + /** Whether this registry is reserved for platform-internal use */ + platformOnly?: boolean; + /** Role in this scope: source (the push target), cache (read-through mirror), external (pull only) */ + role?: string; + /** Provisioning state (pending, provisioning, active, failed); rows the platform does not create are active on insert */ + status?: string; + updatedAt?: string; + updatedByPrincipal?: string; } -export interface DeleteResourceInput { - clientMutationId?: string; - id: string; +/** An input for mutations affecting `PlatformRegistryGrant` */ +export interface PlatformRegistryGrantInput { + /** Endpoint actions this grant allows (read, write) */ + actions?: string[]; + createdAt?: string; + createdByPrincipal?: string; + /** When this grant stops applying (NULL never expires) */ + expiresAt?: string; + /** User who issued this grant */ + grantedBy?: string; + /** Scope key of the grantee (a database_id or an entity_id) */ + granteeKey: string; + /** Scope tier of the grantee (database, org, app, platform) */ + granteeScope: string; + id?: string; + /** Registry this grant applies to */ + registryId: string; + updatedAt?: string; + updatedByPrincipal?: string; } -export interface CreateResourceDeclaredCapacityInput { - clientMutationId?: string; - resourceDeclaredCapacity: { - cpuLimitMillicores?: string; - cpuRequestMillicores?: string; - installationId: string; - isTransient?: boolean; - kind?: string; - memoryLimitBytes?: string; - memoryRequestBytes?: string; - namespaceId: string; - podCountMax?: number; - podCountMin?: number; - source?: string; - sourceId: string; - storageSizeBytes?: string; - }; +/** An input for mutations affecting `PlatformRepository` */ +export interface PlatformRepositoryInput { + /** URL a workspace clones from (NULL until the repository is provisioned) */ + cloneUrl?: string; + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** Branch a clone checks out and a proposal targets by default */ + defaultBranch?: string; + /** What this repository holds */ + description?: string; + embedding?: number[]; + /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + embeddingText?: string; + /** Identifier of this repository in the external provider (NULL for local) */ + externalId?: string; + id?: string; + /** Whether this repository is retired: readable, not written to */ + isArchived?: boolean; + /** Provider detail (installation id, topics, external URLs) */ + metadata?: Record; + /** Human-readable repository name */ + name: string; + /** User who owns this repository */ + ownerId?: string; + /** Where the repository lives: local (platform git server) or github */ + provider?: string; + /** URL-safe identifier, unique within the owning scope */ + slug: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; + /** Read reach: private (owner), internal (scope members), public (any authenticated actor) */ + visibility?: string; } -export interface ResourceDeclaredCapacityPatch { - cpuLimitMillicores?: string | null; - cpuRequestMillicores?: string | null; - installationId?: string | null; - isTransient?: boolean | null; - kind?: string | null; - memoryLimitBytes?: string | null; - memoryRequestBytes?: string | null; - namespaceId?: string | null; - podCountMax?: number | null; - podCountMin?: number | null; - source?: string | null; - sourceId?: string | null; - storageSizeBytes?: string | null; +/** An input for mutations affecting `PlatformRepositoryEvent` */ +export interface PlatformRepositoryEventInput { + /** Authenticated actor behind the event (NULL when only the sending system was proven) */ + actorId?: string; + /** Commit the ref points at after the event */ + commitSha?: string; + createdAt?: string; + createdByPrincipal?: string; + /** Provider delivery identifier, for redelivery dedupe (NULL for local hooks) */ + deliveryId?: string; + /** What happened: push, tag, pr_open, pr_merge, proposal_comment, manual */ + eventType: string; + id?: string; + /** Unverified provider detail (payload login, commit author, external URLs) */ + metadata?: Record; + /** Normalized event body the workflows read */ + payload?: Record; + /** Git ref the event concerns (refs/heads/main) */ + ref?: string; + /** Repository this event happened to */ + repositoryId: string; + updatedAt?: string; + updatedByPrincipal?: string; } -export interface UpdateResourceDeclaredCapacityInput { - clientMutationId?: string; - id: string; - resourceDeclaredCapacityPatch: ResourceDeclaredCapacityPatch; +/** An input for mutations affecting `PlatformRepositoryRequiredCheck` */ +export interface PlatformRepositoryRequiredCheckInput { + createdAt?: string; + id?: string; + /** Repository whose merge gate requires this workflow */ + repositoryId: string; + updatedAt?: string; + /** Workflow identity required by this repository gate */ + workflowId: string; +} +/** An input for mutations affecting `PlatformRepositoryWorkflow` */ +export interface PlatformRepositoryWorkflowInput { + /** Whether a new build cancels a running build with the same concurrency key instead of queueing */ + cancelInProgress?: boolean; + /** Builds of this workflow sharing this key run one at a time (NULL = unlimited) */ + concurrencyKey?: string; + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** Event type that fires this workflow */ + eventType: string; + /** Flow graph to run when this workflow fires */ + graphId?: string; + id?: string; + /** Static inputs merged into the graph run alongside the event */ + inputs?: Record; + /** Whether matching events fire this workflow */ + isEnabled?: boolean; + /** Human-readable workflow name */ + name: string; + /** Glob the event ref must match (NULL matches any ref) */ + refPattern?: string; + /** Repository whose events this workflow listens to */ + repositoryId: string; + /** Secret names this workflow's builds may resolve, intersected with the build lane's realm */ + requiredSecrets?: string[]; + /** URL-safe identifier, unique within the repository */ + slug: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; } -export interface DeleteResourceDeclaredCapacityInput { - clientMutationId?: string; - id: string; +/** An input for mutations affecting `PlatformResource` */ +export interface PlatformResourceInput { + /** Freeform metadata for tooling and operational notes */ + annotations?: Record; + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** Cumulative error count for this resource */ + errorCount?: number; + id?: string; + /** Pinned image reference this resource runs (registry host/repository:tag or @digest), written by promotion; NULL means spec.image decides */ + imageRef?: string; + /** Installation ("release") this resource belongs to (NULL for standalone resources) */ + installationId?: string; + /** Provider slugs (e.g. mailgun, postgres) associated with this resource. The UI uses this to auto-fill required_secrets and required_configs from integration_providers. */ + integrations?: string[]; + /** Resource kind: Deployment, StatefulSet, Job, Service, Ingress, Certificate, ClusterIssuer */ + kind: string; + /** Key/value pairs for selecting and filtering resources */ + labels?: Record; + /** Most recent provisioning or runtime error message */ + lastError?: string; + /** Last time a usage heartbeat was received for this resource (NULL until first heartbeat) */ + lastHeartbeatAt?: string; + /** Human-readable resource name */ + name: string; + /** Namespace this resource belongs to (security boundary, maps to K8s namespace) */ + namespaceId: string; + /** Config/secret realm this resource resolves against. Per key, the realm-specific atom wins over the NULL-realm default. NULL = the default lane. */ + realm?: string; + /** Embedded config requirements: array of (name, required, provider) tuples — extends the linked definition's requirements. provider is the integration slug this requirement belongs to, if any. */ + requiredConfigs?: ResourceRequirementInput[]; + /** Embedded secret requirements: array of (name, required, provider) tuples — extends the linked definition's requirements. provider is the integration slug this requirement belongs to, if any. */ + requiredSecrets?: ResourceRequirementInput[]; + /** Definition template this resource was created from (NULL for standalone resources) */ + resourceDefinitionId?: string; + /** URL-safe identifier, unique within (namespace_id, kind) */ + slug: string; + /** Desired state — kind-specific configuration (image, ports, resources, etc.). Opaque to DB; validated by K8s. */ + spec?: Record; + /** Resource lifecycle status: pending, provisioning, active, completed, failed, draining, deleting */ + status?: string; + /** Observed state from K8s — populated by handlers after reconciliation (service_url, clone_url, replicas, etc.) */ + statusObserved?: Record; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; +} +/** An input for mutations affecting `PlatformResourceDefinition` */ +export interface PlatformResourceDefinitionInput { + /** Freeform metadata for tooling and operational notes */ + annotations?: Record; + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** Template spec for creating resource instances of this kind */ + defaultSpec?: Record; + /** What this resource definition provides */ + description?: string; + id?: string; + /** Provider slugs (e.g. mailgun, postgres) associated with this resource definition. The UI uses this to auto-fill required_secrets and required_configs from integration_providers. */ + integrations?: string[]; + /** Resource kind: Deployment, StatefulSet, Job, Service, Ingress, Certificate, ClusterIssuer, or custom kinds */ + kind: string; + /** Key/value pairs for selecting and filtering definitions */ + labels?: Record; + /** Human-readable definition name */ + name: string; + /** Namespace this definition belongs to (security boundary, maps to K8s namespace) */ + namespaceId: string; + /** Declared parameter interface: [{key,label,type,default,required,min,max,options,group,order,bindings:[{path,template,scale,round,unit}]}]. Installation params are validated and compiled through these declarations; [] keeps the legacy raw spec overlay. */ + paramsSchema?: Record; + /** Embedded config requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ + requiredConfigs?: ResourceRequirementInput[]; + /** Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ + requiredSecrets?: ResourceRequirementInput[]; + /** URL-safe identifier, unique within (namespace_id, kind) */ + slug: string; + /** Min age before DELETE of a resource of this kind requires step-up; NULL inherits the 6h default */ + stepUpMinAge?: IntervalInput; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; } -export interface CreateResourceDefinitionInput { - clientMutationId?: string; - resourceDefinition: { - annotations?: Record; - createdBy?: string; - databaseId: string; - defaultSpec?: Record; - description?: string; - integrations?: string[]; - kind: string; - labels?: Record; - name: string; - namespaceId: string; - paramsSchema?: Record; - requiredConfigs?: ResourceRequirementInput[]; - requiredSecrets?: ResourceRequirementInput[]; - slug: string; - stepUpMinAge?: IntervalInput; - updatedBy?: string; - }; +/** An interval of time that has passed where the smallest distinct unit is a second. */ +export interface IntervalInput { + /** A quantity of days. */ + days?: number; + /** A quantity of hours. */ + hours?: number; + /** A quantity of minutes. */ + minutes?: number; + /** A quantity of months. */ + months?: number; + /** + * A quantity of seconds. This is the only non-integer field, as all the other + * fields will dump their overflow into a smaller unit of time. Intervals don’t + * have a smaller unit than seconds. + */ + seconds?: number; + /** A quantity of years. */ + years?: number; } -export interface ResourceDefinitionPatch { - annotations?: Record | null; - createdBy?: string | null; - databaseId?: string | null; - defaultSpec?: Record | null; - description?: string | null; - integrations?: string[] | null; - kind?: string | null; - labels?: Record | null; - name?: string | null; - namespaceId?: string | null; - paramsSchema?: Record | null; - requiredConfigs?: ResourceRequirementInput[] | null; - requiredSecrets?: ResourceRequirementInput[] | null; - slug?: string | null; - stepUpMinAge?: IntervalInput | null; - updatedBy?: string | null; +/** An input for mutations affecting `PlatformResourceEvent` */ +export interface PlatformResourceEventInput { + /** User who triggered this event; NULL only when no human actor was proven */ + actorId?: string; + /** Event timestamp (partition key) */ + createdAt?: string; + /** Event type: provisioned, provisioning, updated, failed, deprovisioned, health_check */ + eventType: string; + /** Unique event identifier */ + id?: string; + /** Human-readable description of the event */ + message?: string; + /** Structured context (old/new values, error details, etc.) */ + metadata?: Record; + /** Resource this event belongs to */ + resourceId: string; } -export interface UpdateResourceDefinitionInput { - clientMutationId?: string; - id: string; - resourceDefinitionPatch: ResourceDefinitionPatch; +/** An input for mutations affecting `PlatformResourceInstallation` */ +export interface PlatformResourceInstallationInput { + /** Infra store commit for the current params (stamped by the versioned trigger on every write) */ + commitId?: string; + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + id?: string; + /** Human-readable release name */ + name: string; + /** Namespace this installation belongs to (security boundary) */ + namespaceId: string; + /** Release parameters — the readily-cached head; history lives in the infra store. Never contains secret/config literals. */ + params?: Record; + /** Monotonic release revision counter: install starts at 1, bumped on every upgrade/rollback */ + revision?: number; + /** URL-safe release identifier, unique within the namespace; the release's path in the infra tree is [resource_installation, slug] */ + slug: string; + /** Installation lifecycle status: pending, installed, uninstalled, failed */ + status?: string; + /** Infra merkle store holding this installation's history (stamped by the versioned trigger) */ + storeId?: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; } -export interface DeleteResourceDefinitionInput { - clientMutationId?: string; - id: string; +/** An input for mutations affecting `PlatformResourceStatusCheck` */ +export interface PlatformResourceStatusCheckInput { + /** When the check completed (NULL while pending/running) */ + completedAt?: string; + /** Unique status check identifier */ + id?: string; + /** When the check was requested */ + requestedAt?: string; + /** User who requested the check (NULL for system/scheduled) */ + requestedBy?: string; + /** Resource to check */ + resourceId: string; + /** Diagnostic snapshot: k8s_status, conditions, pod_logs_tail, events */ + result?: Record; + /** Check lifecycle: pending, running, completed, failed */ + status?: string; } -export interface CreateResourceEventInput { - clientMutationId?: string; - resourceEvent: { - actorId?: string; - databaseId: string; - eventType: string; - message?: string; - metadata?: Record; - resourceId: string; - }; +/** An input for mutations affecting `PlatformResourceUsageLog` */ +export interface PlatformResourceUsageLogInput { + /** CPU gauge in millicores at sample time (NULL when unknown) */ + cpuMillicores?: string; + /** Unique sample identifier */ + id?: string; + /** Seconds covered by this sample — runtime is SUM(interval_seconds) */ + intervalSeconds: number; + /** Memory gauge in bytes at sample time (NULL when unknown) */ + memoryBytes?: string; + /** Structured gauges: replicas, pod counts, phases, and other producer-specific metrics */ + metrics?: Record; + /** Namespace the measured workload runs in */ + namespaceId: string; + /** Resource this sample measures (NULL for namespace-grain catch-all rows) */ + resourceId?: string; + /** Sample timestamp (partition key) — end of the measured interval */ + sampledAt?: string; + /** Sample producer: self (workload heartbeat), observer (reconciler), or prometheus (namespace-grain usage collector) */ + source: string; } -export interface ResourceEventPatch { - actorId?: string | null; - databaseId?: string | null; - eventType?: string | null; - message?: string | null; - metadata?: Record | null; - resourceId?: string | null; +/** An input for mutations affecting `PlatformResourceUsageSummary` */ +export interface PlatformResourceUsageSummaryInput { + /** Day this summary covers (partition key) */ + date: string; + /** Memory usage for the day — SUM(memory_bytes * interval_seconds) normalized to GB-seconds */ + gbSeconds?: string; + /** Unique usage summary identifier */ + id?: string; + /** Maximum CPU gauge observed during the day (NULL when never reported) */ + maxCpuMillicores?: string; + /** Maximum memory gauge observed during the day (NULL when never reported) */ + maxMemoryBytes?: string; + /** Namespace the resource runs in */ + namespaceId: string; + /** Resource this summary covers (NULL for namespace-grain catch-all summaries) */ + resourceId?: string; + /** Total measured runtime for the day — SUM(interval_seconds) */ + runtimeSeconds?: string; + /** Number of raw samples aggregated into this summary */ + sampleCount?: number; } -export interface UpdateResourceEventInput { - clientMutationId?: string; - id: string; - resourceEventPatch: ResourceEventPatch; +/** An input for mutations affecting `PlatformWebhookEndpoint` */ +export interface PlatformWebhookEndpointInput { + /** Whether this endpoint currently accepts deliveries */ + active?: boolean; + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** Same-scope function definition invoked on delivery. The function must list the webhook channel in access_channels. */ + functionDefinitionId: string; + /** Inbound Host header this endpoint matches (normalized lower-case, no port) */ + host: string; + id?: string; + /** Namespace that owns this endpoint and contains its signing secret */ + namespaceId: string; + /** Exact request path this endpoint matches (e.g. /webhooks/stripe) */ + path: string; + /** Verification scheme: generic (HMAC), stripe, or github */ + provider?: string; + /** Maximum age (seconds) of a signed provider timestamp before the delivery is rejected as a replay */ + replayWindowSeconds?: number; + /** Name of the signing secret in the infra secrets store. The gateway resolves the value through the generated secrets getter — the plaintext secret is never stored here. */ + signingSecretName: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; } -export interface DeleteResourceEventInput { - clientMutationId?: string; - id: string; +/** An input for mutations affecting `PlatformWebhookEvent` */ +export interface PlatformWebhookEventInput { + createdAt?: string; + /** Endpoint that accepted this delivery */ + endpointId: string; + /** Failure detail when status = failed */ + error?: string; + /** Provider-supplied delivery/event id used for idempotent dedup */ + externalEventId: string; + id?: string; + /** created_at of the enqueued invocation (partition key companion to invocation_id) */ + invocationCreatedAt?: string; + /** Pending function invocation enqueued for this delivery (NULL until enqueued) */ + invocationId?: string; + /** Parsed delivery payload (parsed only after signature verification over the exact raw bytes) */ + payload?: Record; + /** Provider that produced this delivery (copied from the endpoint at acceptance) */ + provider: string; + /** Signed provider timestamp used for replay-window validation (NULL when the provider supplies none) */ + providerTimestamp?: string; + /** Acceptance lifecycle: accepted, processed, failed */ + status?: string; + updatedAt?: string; } -export interface CreateResourceInstallationInput { - clientMutationId?: string; - resourceInstallation: { - commitId?: string; - createdBy?: string; - databaseId: string; - name: string; - namespaceId: string; - params?: Record; - revision?: number; - slug: string; - status?: string; - storeId?: string; - updatedBy?: string; - }; +/** An input for mutations affecting `ProposalComment` */ +export interface ProposalCommentInput { + /** Actor who wrote the comment; NULL only when no human actor was proven */ + actorId?: string; + /** Files referenced by the comment body, in the order they were attached */ + attachments?: ConstructiveInternalTypeUpload[]; + /** Comment text */ + body: string; + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + embedding?: number[]; + /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + embeddingText?: string; + id?: string; + /** Line within path the comment is anchored to */ + line?: number; + /** When the anchored range this comment pointed at vanished from the diff */ + outdatedAt?: string; + /** File the comment is anchored to (NULL for a comment on the proposal) */ + path?: string; + /** Proposal being commented on */ + proposalId: string; + /** When this comment was marked resolved */ + resolvedAt?: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; } -export interface ResourceInstallationPatch { - commitId?: string | null; - createdBy?: string | null; - databaseId?: string | null; - name?: string | null; - namespaceId?: string | null; - params?: Record | null; - revision?: number | null; - slug?: string | null; - status?: string | null; - storeId?: string | null; - updatedBy?: string | null; +/** An input for mutations affecting `Proposal` */ +export interface ProposalInput { + /** Actor who opened the proposal; NULL only when no human actor was proven */ + actorId?: string; + /** Description of the proposed change */ + body?: string; + /** Why this was closed: completed, not_planned, duplicate, superseded */ + closedReason?: string; + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** When the decision was taken (NULL while the question is open) */ + decidedAt?: string; + /** When this is wanted by (NULL when nothing is promised) */ + dueAt?: string; + embedding?: number[]; + /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + embeddingText?: string; + id?: string; + /** issue (a report or plan), change (merge one ref into another), discussion (an open question), decision (a question answered) */ + kind?: string; + /** Labels for filtering and grouping (a board is a query over kind, status and these) */ + labels?: string[]; + /** Commit the merge produced */ + mergeCommit?: string; + /** How to merge when eligible: merge, squash, rebase */ + mergeMethod?: string; + /** When merge-when-green was requested (NULL when no merge is pending) */ + mergeRequestedAt?: string; + /** When the merge completed */ + mergedAt?: string; + /** Review detail (reviewers, labels, checks summary) */ + metadata?: Record; + /** Proposal this one hangs under: an epic, or the discussion a decision came out of */ + parentId?: string; + /** Manual order within a board column, sparse so an insert between two rows moves one row (NULL when unranked) */ + priority?: string; + /** Repository this proposal is against */ + repositoryId: string; + /** What was decided (for kind = decision; NULL while the question is open) */ + resolution?: string; + /** Ref holding the proposed commits (NULL unless kind is change) */ + sourceRef?: string; + /** Lifecycle state: draft, open, merged, closed */ + status?: string; + /** Ref the commits are proposed for (NULL unless kind is change) */ + targetRef?: string; + /** What this proposal does */ + title: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; } -export interface UpdateResourceInstallationInput { - clientMutationId?: string; - id: string; - resourceInstallationPatch: ResourceInstallationPatch; +/** An input for mutations affecting `ProposalFileView` */ +export interface ProposalFileViewInput { + /** Blob the reviewer read, which is what makes the mark survive a rebase or go stale */ + blobSha: string; + createdAt?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + id?: string; + /** Path of the file as the diff named it */ + path: string; + /** Proposal the file belongs to */ + proposalId: string; + /** Actor who read the file */ + reviewerId: string; + updatedAt?: string; + updatedByPrincipal?: string; + /** When the file was marked read */ + viewedAt?: string; +} +/** An input for mutations affecting `ProposalReaction` */ +export interface ProposalReactionInput { + /** Actor who reacted */ + actorId: string; + /** Comment being reacted to (NULL for a reaction to the proposal itself) */ + commentId?: string; + createdAt?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Reaction shortcode (+1, eyes, rocket) */ + emoji: string; + id?: string; + /** Proposal the reaction belongs to */ + proposalId: string; + updatedAt?: string; + updatedByPrincipal?: string; +} +/** An input for mutations affecting `ProposalReview` */ +export interface ProposalReviewInput { + /** Summary the reviewer submitted with the verdict */ + body?: string; + /** Head commit this verdict was submitted against */ + commitSha: string; + createdAt?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + id?: string; + /** Proposal being reviewed */ + proposalId: string; + /** Actor who submitted the verdict */ + reviewerId: string; + /** When the verdict was submitted */ + submittedAt?: string; + updatedAt?: string; + updatedByPrincipal?: string; + /** approve, reject or comment (a review that gates nothing) */ + verdict: string; } -export interface DeleteResourceInstallationInput { - clientMutationId?: string; - id: string; +/** An input for mutations affecting `ProposalsChunk` */ +export interface ProposalsChunkInput { + /** Policy-required field derived from source table (used by AuthzComposite) */ + actorId?: string; + body: string; + chunkIndex?: number; + createdAt?: string; + /** Policy-required field derived from source table (used by AuthzRelatedEntityMembership) */ + databaseId?: string; + embedding?: number[]; + /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + embeddingText?: string; + id?: string; + metadata?: Record; + proposalsId: string; + updatedAt?: string; } -export interface CreateResourceStatusCheckInput { - clientMutationId?: string; - resourceStatusCheck: { - completedAt?: string; - databaseId: string; - requestedAt?: string; - requestedBy?: string; - resourceId: string; - result?: Record; - status?: string; - }; +/** An input for mutations affecting `RegistryBinding` */ +export interface RegistryBindingInput { + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + id?: string; + /** Reconciler detail (last error, projection timestamps) */ + metadata?: Record; + /** Namespace the registry credentials are projected into */ + namespaceId: string; + /** Registry credential version last projected into the namespace (NULL = never projected) */ + observedCredentialVersion?: string; + /** Name of the image pull secret the reconciler writes into the namespace */ + pullSecretName?: string; + /** Lane this binding applies to (NULL = the scope's default lane) */ + realm?: string; + /** Registry host this binding's credentials authenticate to (what kubelet matches image references against) */ + registryHost: string; + /** Registry endpoint (in this scope's registry catalog) the namespace pulls from */ + registryId: string; + /** Projection state of the pull secret: pending, active, failed */ + status?: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; +} +/** An input for mutations affecting `Registry` */ +export interface RegistryInput { + /** How a client authenticates to this registry (none, basic, token) */ + authMode?: string; + /** Path prefix within the host (npm scope, OCI project); NULL = the host root */ + basePath?: string; + createdAt?: string; + createdByPrincipal?: string; + /** Name of the infra secret carrying this registry's credential (NULL when auth_mode = none) */ + credentialSecretName?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Registry host, without a scheme (e.g. ghcr.io, registry.npmjs.org); required unless role is source, where it is the optional requested host and is stamped with the provisioned one */ + host?: string; + id?: string; + /** Resource installation running this registry (NULL for an external registry) */ + installationId?: string; + /** Whether this registry is published for use by any scope */ + isPublished?: boolean; + /** Artifact ecosystem this registry serves (oci, npm) */ + kind: string; + /** Labels for selecting registries (lane, region, mirror role) */ + labels?: Record; + /** Message from the last failed provision/deprovision attempt (NULL when healthy) */ + lastError?: string; + /** Freeform metadata (mirror-of pointer, rate limits, contact) */ + metadata?: Record; + /** Human-readable registry name (e.g. github-container-registry) */ + name: string; + /** Whether this registry is reserved for platform-internal use */ + platformOnly?: boolean; + /** Role in this scope: source (the push target), cache (read-through mirror), external (pull only) */ + role?: string; + /** Provisioning state (pending, provisioning, active, failed); rows the platform does not create are active on insert */ + status?: string; + updatedAt?: string; + updatedByPrincipal?: string; } -export interface ResourceStatusCheckPatch { - completedAt?: string | null; - databaseId?: string | null; - requestedAt?: string | null; - requestedBy?: string | null; - resourceId?: string | null; - result?: Record | null; - status?: string | null; +/** An input for mutations affecting `RegistryGrant` */ +export interface RegistryGrantInput { + /** Endpoint actions this grant allows (read, write) */ + actions?: string[]; + createdAt?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** When this grant stops applying (NULL never expires) */ + expiresAt?: string; + /** User who issued this grant */ + grantedBy?: string; + /** Scope key of the grantee (a database_id or an entity_id) */ + granteeKey: string; + /** Scope tier of the grantee (database, org, app, platform) */ + granteeScope: string; + id?: string; + /** Registry this grant applies to */ + registryId: string; + updatedAt?: string; + updatedByPrincipal?: string; } -export interface UpdateResourceStatusCheckInput { - clientMutationId?: string; - id: string; - resourceStatusCheckPatch: ResourceStatusCheckPatch; +/** An input for mutations affecting `Repository` */ +export interface RepositoryInput { + /** URL a workspace clones from (NULL until the repository is provisioned) */ + cloneUrl?: string; + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Branch a clone checks out and a proposal targets by default */ + defaultBranch?: string; + /** What this repository holds */ + description?: string; + embedding?: number[]; + /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + embeddingText?: string; + /** Identifier of this repository in the external provider (NULL for local) */ + externalId?: string; + id?: string; + /** Whether this repository is retired: readable, not written to */ + isArchived?: boolean; + /** Provider detail (installation id, topics, external URLs) */ + metadata?: Record; + /** Human-readable repository name */ + name: string; + /** User who owns this repository */ + ownerId?: string; + /** Where the repository lives: local (platform git server) or github */ + provider?: string; + /** URL-safe identifier, unique within the owning scope */ + slug: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; + /** Read reach: private (owner), internal (scope members), public (any authenticated actor) */ + visibility?: string; } -export interface DeleteResourceStatusCheckInput { - clientMutationId?: string; - id: string; +/** An input for mutations affecting `RepositoryEvent` */ +export interface RepositoryEventInput { + /** Authenticated actor behind the event (NULL when only the sending system was proven) */ + actorId?: string; + /** Commit the ref points at after the event */ + commitSha?: string; + createdAt?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Provider delivery identifier, for redelivery dedupe (NULL for local hooks) */ + deliveryId?: string; + /** What happened: push, tag, pr_open, pr_merge, proposal_comment, manual */ + eventType: string; + id?: string; + /** Unverified provider detail (payload login, commit author, external URLs) */ + metadata?: Record; + /** Normalized event body the workflows read */ + payload?: Record; + /** Git ref the event concerns (refs/heads/main) */ + ref?: string; + /** Repository this event happened to */ + repositoryId: string; + updatedAt?: string; + updatedByPrincipal?: string; } -export interface CreateResourceUsageLogInput { - clientMutationId?: string; - resourceUsageLog: { - cpuMillicores?: string; - databaseId: string; - intervalSeconds: number; - memoryBytes?: string; - metrics?: Record; - namespaceId: string; - resourceId?: string; - sampledAt?: string; - source: string; - }; +/** An input for mutations affecting `RepositoryRequiredCheck` */ +export interface RepositoryRequiredCheckInput { + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + id?: string; + /** Repository whose merge gate requires this workflow */ + repositoryId: string; + updatedAt?: string; + /** Workflow identity required by this repository gate */ + workflowId: string; +} +/** An input for mutations affecting `RepositoryWorkflow` */ +export interface RepositoryWorkflowInput { + /** Whether a new build cancels a running build with the same concurrency key instead of queueing */ + cancelInProgress?: boolean; + /** Builds of this workflow sharing this key run one at a time (NULL = unlimited) */ + concurrencyKey?: string; + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Event type that fires this workflow */ + eventType: string; + /** Flow graph to run when this workflow fires */ + graphId?: string; + id?: string; + /** Static inputs merged into the graph run alongside the event */ + inputs?: Record; + /** Whether matching events fire this workflow */ + isEnabled?: boolean; + /** Human-readable workflow name */ + name: string; + /** Glob the event ref must match (NULL matches any ref) */ + refPattern?: string; + /** Repository whose events this workflow listens to */ + repositoryId: string; + /** Secret names this workflow's builds may resolve, intersected with the build lane's realm */ + requiredSecrets?: string[]; + /** URL-safe identifier, unique within the repository */ + slug: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; } -export interface ResourceUsageLogPatch { - cpuMillicores?: string | null; - databaseId?: string | null; - intervalSeconds?: number | null; - memoryBytes?: string | null; - metrics?: Record | null; - namespaceId?: string | null; - resourceId?: string | null; - sampledAt?: string | null; - source?: string | null; +/** An input for mutations affecting `Resource` */ +export interface ResourceInput { + /** Freeform metadata for tooling and operational notes */ + annotations?: Record; + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Cumulative error count for this resource */ + errorCount?: number; + id?: string; + /** Pinned image reference this resource runs (registry host/repository:tag or @digest), written by promotion; NULL means spec.image decides */ + imageRef?: string; + /** Installation ("release") this resource belongs to (NULL for standalone resources) */ + installationId?: string; + /** Provider slugs (e.g. mailgun, postgres) associated with this resource. The UI uses this to auto-fill required_secrets and required_configs from integration_providers. */ + integrations?: string[]; + /** Resource kind: Deployment, StatefulSet, Job, Service, Ingress, Certificate, ClusterIssuer */ + kind: string; + /** Key/value pairs for selecting and filtering resources */ + labels?: Record; + /** Most recent provisioning or runtime error message */ + lastError?: string; + /** Last time a usage heartbeat was received for this resource (NULL until first heartbeat) */ + lastHeartbeatAt?: string; + /** Human-readable resource name */ + name: string; + /** Namespace this resource belongs to (security boundary, maps to K8s namespace) */ + namespaceId: string; + /** Config/secret realm this resource resolves against. Per key, the realm-specific atom wins over the NULL-realm default. NULL = the default lane. */ + realm?: string; + /** Embedded config requirements: array of (name, required, provider) tuples — extends the linked definition's requirements. provider is the integration slug this requirement belongs to, if any. */ + requiredConfigs?: ResourceRequirementInput[]; + /** Embedded secret requirements: array of (name, required, provider) tuples — extends the linked definition's requirements. provider is the integration slug this requirement belongs to, if any. */ + requiredSecrets?: ResourceRequirementInput[]; + /** Definition template this resource was created from (NULL for standalone resources) */ + resourceDefinitionId?: string; + /** URL-safe identifier, unique within (namespace_id, kind) */ + slug: string; + /** Desired state — kind-specific configuration (image, ports, resources, etc.). Opaque to DB; validated by K8s. */ + spec?: Record; + /** Resource lifecycle status: pending, provisioning, active, completed, failed, draining, deleting */ + status?: string; + /** Observed state from K8s — populated by handlers after reconciliation (service_url, clone_url, replicas, etc.) */ + statusObserved?: Record; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; +} +/** An input for mutations affecting `ResourceDefinition` */ +export interface ResourceDefinitionInput { + /** Freeform metadata for tooling and operational notes */ + annotations?: Record; + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Template spec for creating resource instances of this kind */ + defaultSpec?: Record; + /** What this resource definition provides */ + description?: string; + id?: string; + /** Provider slugs (e.g. mailgun, postgres) associated with this resource definition. The UI uses this to auto-fill required_secrets and required_configs from integration_providers. */ + integrations?: string[]; + /** Resource kind: Deployment, StatefulSet, Job, Service, Ingress, Certificate, ClusterIssuer, or custom kinds */ + kind: string; + /** Key/value pairs for selecting and filtering definitions */ + labels?: Record; + /** Human-readable definition name */ + name: string; + /** Namespace this definition belongs to (security boundary, maps to K8s namespace) */ + namespaceId: string; + /** Declared parameter interface: [{key,label,type,default,required,min,max,options,group,order,bindings:[{path,template,scale,round,unit}]}]. Installation params are validated and compiled through these declarations; [] keeps the legacy raw spec overlay. */ + paramsSchema?: Record; + /** Embedded config requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ + requiredConfigs?: ResourceRequirementInput[]; + /** Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ + requiredSecrets?: ResourceRequirementInput[]; + /** URL-safe identifier, unique within (namespace_id, kind) */ + slug: string; + /** Min age before DELETE of a resource of this kind requires step-up; NULL inherits the 6h default */ + stepUpMinAge?: IntervalInput; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; } -export interface UpdateResourceUsageLogInput { - clientMutationId?: string; - id: string; - resourceUsageLogPatch: ResourceUsageLogPatch; +/** An input for mutations affecting `ResourceEvent` */ +export interface ResourceEventInput { + /** User who triggered this event; NULL only when no human actor was proven */ + actorId?: string; + /** Event timestamp (partition key) */ + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Event type: provisioned, provisioning, updated, failed, deprovisioned, health_check */ + eventType: string; + /** Unique event identifier */ + id?: string; + /** Human-readable description of the event */ + message?: string; + /** Structured context (old/new values, error details, etc.) */ + metadata?: Record; + /** Resource this event belongs to */ + resourceId: string; } -export interface DeleteResourceUsageLogInput { - clientMutationId?: string; - id: string; +/** An input for mutations affecting `ResourceInstallation` */ +export interface ResourceInstallationInput { + /** Infra store commit for the current params (stamped by the versioned trigger on every write) */ + commitId?: string; + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + id?: string; + /** Human-readable release name */ + name: string; + /** Namespace this installation belongs to (security boundary) */ + namespaceId: string; + /** Release parameters — the readily-cached head; history lives in the infra store. Never contains secret/config literals. */ + params?: Record; + /** Monotonic release revision counter: install starts at 1, bumped on every upgrade/rollback */ + revision?: number; + /** URL-safe release identifier, unique within the namespace; the release's path in the infra tree is [resource_installation, slug] */ + slug: string; + /** Installation lifecycle status: pending, installed, uninstalled, failed */ + status?: string; + /** Infra merkle store holding this installation's history (stamped by the versioned trigger) */ + storeId?: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; } -export interface CreateResourceUsageSummaryInput { - clientMutationId?: string; - resourceUsageSummary: { - databaseId: string; - date: string; - gbSeconds?: string; - maxCpuMillicores?: string; - maxMemoryBytes?: string; - namespaceId: string; - resourceId?: string; - runtimeSeconds?: string; - sampleCount?: number; - }; +/** An input for mutations affecting `ResourceStatusCheck` */ +export interface ResourceStatusCheckInput { + /** When the check completed (NULL while pending/running) */ + completedAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Unique status check identifier */ + id?: string; + /** When the check was requested */ + requestedAt?: string; + /** User who requested the check (NULL for system/scheduled) */ + requestedBy?: string; + /** Resource to check */ + resourceId: string; + /** Diagnostic snapshot: k8s_status, conditions, pod_logs_tail, events */ + result?: Record; + /** Check lifecycle: pending, running, completed, failed */ + status?: string; } -export interface ResourceUsageSummaryPatch { - databaseId?: string | null; - date?: string | null; - gbSeconds?: string | null; - maxCpuMillicores?: string | null; - maxMemoryBytes?: string | null; - namespaceId?: string | null; - resourceId?: string | null; - runtimeSeconds?: string | null; - sampleCount?: number | null; +/** An input for mutations affecting `ResourceUsageLog` */ +export interface ResourceUsageLogInput { + /** CPU gauge in millicores at sample time (NULL when unknown) */ + cpuMillicores?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Unique sample identifier */ + id?: string; + /** Seconds covered by this sample — runtime is SUM(interval_seconds) */ + intervalSeconds: number; + /** Memory gauge in bytes at sample time (NULL when unknown) */ + memoryBytes?: string; + /** Structured gauges: replicas, pod counts, phases, and other producer-specific metrics */ + metrics?: Record; + /** Namespace the measured workload runs in */ + namespaceId: string; + /** Resource this sample measures (NULL for namespace-grain catch-all rows) */ + resourceId?: string; + /** Sample timestamp (partition key) — end of the measured interval */ + sampledAt?: string; + /** Sample producer: self (workload heartbeat), observer (reconciler), or prometheus (namespace-grain usage collector) */ + source: string; } -export interface UpdateResourceUsageSummaryInput { - clientMutationId?: string; - id: string; - resourceUsageSummaryPatch: ResourceUsageSummaryPatch; +/** An input for mutations affecting `ResourceUsageSummary` */ +export interface ResourceUsageSummaryInput { + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Day this summary covers (partition key) */ + date: string; + /** Memory usage for the day — SUM(memory_bytes * interval_seconds) normalized to GB-seconds */ + gbSeconds?: string; + /** Unique usage summary identifier */ + id?: string; + /** Maximum CPU gauge observed during the day (NULL when never reported) */ + maxCpuMillicores?: string; + /** Maximum memory gauge observed during the day (NULL when never reported) */ + maxMemoryBytes?: string; + /** Namespace the resource runs in */ + namespaceId: string; + /** Resource this summary covers (NULL for namespace-grain catch-all summaries) */ + resourceId?: string; + /** Total measured runtime for the day — SUM(interval_seconds) */ + runtimeSeconds?: string; + /** Number of raw samples aggregated into this summary */ + sampleCount?: number; } -export interface DeleteResourceUsageSummaryInput { - clientMutationId?: string; - id: string; +/** An input for mutations affecting `WebhookEndpoint` */ +export interface WebhookEndpointInput { + /** Whether this endpoint currently accepts deliveries */ + active?: boolean; + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Same-scope function definition invoked on delivery. The function must list the webhook channel in access_channels. */ + functionDefinitionId: string; + /** Inbound Host header this endpoint matches (normalized lower-case, no port) */ + host: string; + id?: string; + /** Namespace that owns this endpoint and contains its signing secret */ + namespaceId: string; + /** Exact request path this endpoint matches (e.g. /webhooks/stripe) */ + path: string; + /** Verification scheme: generic (HMAC), stripe, or github */ + provider?: string; + /** Maximum age (seconds) of a signed provider timestamp before the delivery is rejected as a replay */ + replayWindowSeconds?: number; + /** Name of the signing secret in the infra secrets store. The gateway resolves the value through the generated secrets getter — the plaintext secret is never stored here. */ + signingSecretName: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; } -export interface CreateResourceUtilizationInput { - clientMutationId?: string; - resourceUtilization: { - avgMemoryBytes?: string; - cpuLimitMillicores?: string; - cpuPeakUtilization?: string; - cpuRequestHeadroomMillicores?: string; - cpuRequestMillicores?: string; - date?: string; - gbSeconds?: string; - kind?: string; - maxCpuMillicores?: string; - maxMemoryBytes?: string; - memoryLimitBytes?: string; - memoryPeakUtilization?: string; - memoryRequestBytes?: string; - memoryRequestHeadroomBytes?: string; - namespaceId: string; - replicas?: number; - resourceId: string; - runtimeSeconds?: string; - sampleCount?: number; - }; +/** An input for mutations affecting `WebhookEvent` */ +export interface WebhookEventInput { + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Endpoint that accepted this delivery */ + endpointId: string; + /** Failure detail when status = failed */ + error?: string; + /** Provider-supplied delivery/event id used for idempotent dedup */ + externalEventId: string; + id?: string; + /** created_at of the enqueued invocation (partition key companion to invocation_id) */ + invocationCreatedAt?: string; + /** Pending function invocation enqueued for this delivery (NULL until enqueued) */ + invocationId?: string; + /** Parsed delivery payload (parsed only after signature verification over the exact raw bytes) */ + payload?: Record; + /** Provider that produced this delivery (copied from the endpoint at acceptance) */ + provider: string; + /** Signed provider timestamp used for replay-window validation (NULL when the provider supplies none) */ + providerTimestamp?: string; + /** Acceptance lifecycle: accepted, processed, failed */ + status?: string; + updatedAt?: string; } -export interface ResourceUtilizationPatch { - avgMemoryBytes?: string | null; - cpuLimitMillicores?: string | null; - cpuPeakUtilization?: string | null; - cpuRequestHeadroomMillicores?: string | null; - cpuRequestMillicores?: string | null; - date?: string | null; - gbSeconds?: string | null; - kind?: string | null; - maxCpuMillicores?: string | null; - maxMemoryBytes?: string | null; - memoryLimitBytes?: string | null; - memoryPeakUtilization?: string | null; - memoryRequestBytes?: string | null; - memoryRequestHeadroomBytes?: string | null; - namespaceId?: string | null; - replicas?: number | null; - resourceId?: string | null; - runtimeSeconds?: string | null; - sampleCount?: number | null; +/** A filter to be used against `DatabaseFunctionGraphExecution` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseFunctionGraphExecutionFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: DatabaseFunctionGraphExecutionFilter[]; + /** Filter by the object’s `completedAt` field. */ + completedAt?: DatetimeFilter; + /** Filter by the object’s `currentWave` field. */ + currentWave?: IntFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `definitionsCommitId` field. */ + definitionsCommitId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `entityType` field. */ + entityType?: StringFilter; + /** Filter by the object’s `errorCode` field. */ + errorCode?: StringFilter; + /** Filter by the object’s `errorMessage` field. */ + errorMessage?: StringFilter; + /** Filter by the object’s `executionPlan` field. */ + executionPlan?: JSONFilter; + /** Filter by the object’s `graph` relation. */ + graph?: DatabaseFunctionGraphFilter; + /** Filter by the object’s `graphId` field. */ + graphId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `inputPayload` field. */ + inputPayload?: JSONFilter; + /** Filter by the object’s `invocationCreatedAt` field. */ + invocationCreatedAt?: DatetimeFilter; + /** Filter by the object’s `invocationId` field. */ + invocationId?: UUIDFilter; + /** Filter by the object’s `lastProgressAt` field. */ + lastProgressAt?: DatetimeFilter; + /** Filter by the object’s `maxPendingJobs` field. */ + maxPendingJobs?: IntFilter; + /** Filter by the object’s `maxTicks` field. */ + maxTicks?: IntFilter; + /** Filter by the object’s `nodeOutputs` field. */ + nodeOutputs?: JSONFilter; + /** Negates the expression. */ + not?: DatabaseFunctionGraphExecutionFilter; + /** Checks for any expressions in this list. */ + or?: DatabaseFunctionGraphExecutionFilter[]; + /** Filter by the object’s `organizationId` field. */ + organizationId?: UUIDFilter; + /** Filter by the object’s `outputNames` field. */ + outputNames?: StringListFilter; + /** Filter by the object’s `outputNode` field. */ + outputNode?: StringFilter; + /** Filter by the object’s `outputPayload` field. */ + outputPayload?: JSONFilter; + /** Filter by the object’s `outputPort` field. */ + outputPort?: StringFilter; + /** Filter by the object’s `parentExecutionId` field. */ + parentExecutionId?: UUIDFilter; + /** Filter by the object’s `parentInvocationId` field. */ + parentInvocationId?: UUIDFilter; + /** Filter by the object’s `parentNodeName` field. */ + parentNodeName?: StringFilter; + /** Filter by the object’s `principalId` field. */ + principalId?: UUIDFilter; + /** Filter by the object’s `startedAt` field. */ + startedAt?: DatetimeFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `tickCount` field. */ + tickCount?: IntFilter; + /** Filter by the object’s `timeoutAt` field. */ + timeoutAt?: DatetimeFilter; } -export interface UpdateResourceUtilizationInput { - clientMutationId?: string; - id: string; - resourceUtilizationPatch: ResourceUtilizationPatch; +/** A filter to be used against `FunctionDefinition` object types. All fields are combined with a logical ‘and.’ */ +export interface FunctionDefinitionFilter { + /** Filter by the object’s `accessChannels` field. */ + accessChannels?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: FunctionDefinitionFilter[]; + /** Filter by the object’s `anonymousCallable` field. */ + anonymousCallable?: BooleanFilter; + /** Filter by the object’s `category` field. */ + category?: StringFilter; + /** Filter by the object’s `concurrency` field. */ + concurrency?: IntFilter; + /** Filter by the object’s `cpuLimitMillicores` field. */ + cpuLimitMillicores?: BigIntFilter; + /** Filter by the object’s `cpuRequestMillicores` field. */ + cpuRequestMillicores?: BigIntFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `fnCategory` field. */ + fnCategory?: StringFilter; + /** Filter by the object’s `functionApiBindings` relation. */ + functionApiBindings?: FunctionDefinitionToManyFunctionApiBindingFilter; + /** `functionApiBindings` exist. */ + functionApiBindingsExist?: boolean; + /** Filter by the object’s `functionCapabilityBindingsByFunctionId` relation. */ + functionCapabilityBindingsByFunctionId?: FunctionDefinitionToManyFunctionCapabilityBindingFilter; + /** `functionCapabilityBindingsByFunctionId` exist. */ + functionCapabilityBindingsByFunctionIdExist?: boolean; + /** Filter by the object’s `functionColumns` field. */ + functionColumns?: JSONFilter; + /** Filter by the object’s `graph` relation. */ + graph?: DatabaseFunctionGraphFilter; + /** A related `graph` exists. */ + graphExists?: boolean; + /** Filter by the object’s `graphId` field. */ + graphId?: UUIDFilter; + /** Filter by the object’s `icon` field. */ + icon?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `image` field. */ + image?: StringFilter; + /** Filter by the object’s `inputs` field. */ + inputs?: JSONFilter; + /** Filter by the object’s `integrations` field. */ + integrations?: StringListFilter; + /** Filter by the object’s `isPublished` field. */ + isPublished?: BooleanFilter; + /** Filter by the object’s `maxAttempts` field. */ + maxAttempts?: IntFilter; + /** Filter by the object’s `memoryLimitBytes` field. */ + memoryLimitBytes?: BigIntFilter; + /** Filter by the object’s `memoryRequestBytes` field. */ + memoryRequestBytes?: BigIntFilter; + /** Filter by the object’s `moduleTable` field. */ + moduleTable?: StringFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: FunctionDefinitionFilter; + /** Checks for any expressions in this list. */ + or?: FunctionDefinitionFilter[]; + /** Filter by the object’s `outputs` field. */ + outputs?: JSONFilter; + /** Filter by the object’s `payloadArgs` field. */ + payloadArgs?: JSONFilter; + /** Filter by the object’s `priority` field. */ + priority?: IntFilter; + /** Filter by the object’s `props` field. */ + props?: JSONFilter; + /** Filter by the object’s `protected` field. */ + protected?: BooleanFilter; + /** Filter by the object’s `publishedAt` field. */ + publishedAt?: DatetimeFilter; + /** Filter by the object’s `queueName` field. */ + queueName?: StringFilter; + /** Filter by the object’s `requiredBuckets` field. */ + requiredBuckets?: StringListFilter; + /** Filter by the object’s `requiredCapabilities` field. */ + requiredCapabilities?: JSONFilter; + /** 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. */ + runtime?: StringFilter; + /** Filter by the object’s `scaleMax` field. */ + scaleMax?: IntFilter; + /** Filter by the object’s `scaleMin` field. */ + scaleMin?: IntFilter; + /** Filter by the object’s `targetFunction` field. */ + targetFunction?: StringFilter; + /** Filter by the object’s `targetSchema` field. */ + targetSchema?: StringFilter; + /** Filter by the object’s `taskIdentifier` field. */ + taskIdentifier?: StringFilter; + /** Filter by the object’s `timeoutSeconds` field. */ + timeoutSeconds?: IntFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** Filter by the object’s `volatile` field. */ + volatile?: BooleanFilter; + /** Filter by the object’s `webhookEndpoints` relation. */ + webhookEndpoints?: FunctionDefinitionToManyWebhookEndpointFilter; + /** `webhookEndpoints` exist. */ + webhookEndpointsExist?: boolean; } -export interface DeleteResourceUtilizationInput { - clientMutationId?: string; - id: string; +/** A filter to be used against `RepositoryWorkflow` object types. All fields are combined with a logical ‘and.’ */ +export interface RepositoryWorkflowFilter { + /** Checks for all expressions in this list. */ + and?: RepositoryWorkflowFilter[]; + /** Filter by the object’s `buildsByWorkflowId` relation. */ + buildsByWorkflowId?: RepositoryWorkflowToManyBuildFilter; + /** `buildsByWorkflowId` exist. */ + buildsByWorkflowIdExist?: boolean; + /** Filter by the object’s `cancelInProgress` field. */ + cancelInProgress?: BooleanFilter; + /** Filter by the object’s `concurrencyKey` field. */ + concurrencyKey?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `eventType` field. */ + eventType?: StringFilter; + /** Filter by the object’s `graph` relation. */ + graph?: DatabaseFunctionGraphFilter; + /** A related `graph` exists. */ + graphExists?: boolean; + /** Filter by the object’s `graphId` field. */ + graphId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `inputs` field. */ + inputs?: JSONFilter; + /** Filter by the object’s `isEnabled` field. */ + isEnabled?: BooleanFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: RepositoryWorkflowFilter; + /** Checks for any expressions in this list. */ + or?: RepositoryWorkflowFilter[]; + /** Filter by the object’s `refPattern` field. */ + refPattern?: StringFilter; + /** Filter by the object’s `repository` relation. */ + repository?: RepositoryFilter; + /** Filter by the object’s `repositoryId` field. */ + repositoryId?: UUIDFilter; + /** Filter by the object’s `repositoryRequiredChecksByWorkflowId` relation. */ + repositoryRequiredChecksByWorkflowId?: RepositoryWorkflowToManyRepositoryRequiredCheckFilter; + /** `repositoryRequiredChecksByWorkflowId` exist. */ + repositoryRequiredChecksByWorkflowIdExist?: boolean; + /** Filter by the object’s `requiredSecrets` field. */ + requiredSecrets?: StringListFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface CreateResourcesHealthInput { - clientMutationId?: string; - resourcesHealth: { - annotations?: Record; - cpuLimitMillicores?: string; - cpuRequestMillicores?: string; - createdBy?: string; - databaseId: string; - errorCount?: number; - installationId: string; - integrations?: string[]; - kind?: string; - labels?: Record; - lastError?: string; - lastHeartbeatAt?: string; - memoryLimitBytes?: string; - memoryRequestBytes?: string; - name?: string; - namespaceId: string; - realm?: string; - replicas?: number; - requiredConfigs?: ResourceRequirement[]; - requiredSecrets?: ResourceRequirement[]; - resourceDefinitionId: string; - slug?: string; - spec?: Record; - status?: string; - statusDetail?: string; - statusObserved?: Record; - storageClass?: string; - storageSizeBytes?: string; - updatedBy?: string; - }; +/** A filter to be used against `FunctionInvocation` object types. All fields are combined with a logical ‘and.’ */ +export interface FunctionInvocationFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: FunctionInvocationFilter[]; + /** Filter by the object’s `apiBinding` relation. */ + apiBinding?: FunctionApiBindingFilter; + /** A related `apiBinding` exists. */ + apiBindingExists?: boolean; + /** Filter by the object’s `apiBindingId` field. */ + apiBindingId?: UUIDFilter; + /** Filter by the object’s `channel` field. */ + channel?: StringFilter; + /** Filter by the object’s `completedAt` field. */ + completedAt?: DatetimeFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `definitionScope` field. */ + definitionScope?: StringFilter; + /** Filter by the object’s `durationMs` field. */ + durationMs?: IntFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `entityType` field. */ + entityType?: StringFilter; + /** Filter by the object’s `error` field. */ + error?: StringFilter; + /** Filter by the object’s `functionDefinitionId` field. */ + functionDefinitionId?: UUIDFilter; + /** Filter by the object’s `graphExecutionId` field. */ + graphExecutionId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `jobId` field. */ + jobId?: BigIntFilter; + /** Negates the expression. */ + not?: FunctionInvocationFilter; + /** Checks for any expressions in this list. */ + or?: FunctionInvocationFilter[]; + /** Filter by the object’s `organizationId` field. */ + organizationId?: UUIDFilter; + /** Filter by the object’s `parentInvocationId` field. */ + parentInvocationId?: UUIDFilter; + /** Filter by the object’s `payload` field. */ + payload?: JSONFilter; + /** Filter by the object’s `principalId` field. */ + principalId?: UUIDFilter; + /** Filter by the object’s `provenance` field. */ + provenance?: JSONFilter; + /** Filter by the object’s `result` field. */ + result?: JSONFilter; + /** Filter by the object’s `startedAt` field. */ + startedAt?: DatetimeFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `taskIdentifier` field. */ + taskIdentifier?: StringFilter; } -export interface ResourcesHealthPatch { - annotations?: Record | null; - cpuLimitMillicores?: string | null; - cpuRequestMillicores?: string | null; - createdBy?: string | null; - databaseId?: string | null; - errorCount?: number | null; - installationId?: string | null; - integrations?: string[] | null; - kind?: string | null; - labels?: Record | null; - lastError?: string | null; - lastHeartbeatAt?: string | null; - memoryLimitBytes?: string | null; - memoryRequestBytes?: string | null; - name?: string | null; - namespaceId?: string | null; - realm?: string | null; - replicas?: number | null; - requiredConfigs?: ResourceRequirement[] | null; - requiredSecrets?: ResourceRequirement[] | null; - resourceDefinitionId?: string | null; - slug?: string | null; - spec?: Record | null; - status?: string | null; - statusDetail?: string | null; - statusObserved?: Record | null; - storageClass?: string | null; - storageSizeBytes?: string | null; - updatedBy?: string | null; +/** A filter to be used against `FunctionApiBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface FunctionApiBindingFilter { + /** Filter by the object’s `alias` field. */ + alias?: StringFilter; + /** Checks for all expressions in this list. */ + and?: FunctionApiBindingFilter[]; + /** 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 `functionDefinition` relation. */ + functionDefinition?: FunctionDefinitionFilter; + /** Filter by the object’s `functionDefinitionId` field. */ + functionDefinitionId?: UUIDFilter; + /** Filter by the object’s `functionInvocationsByApiBindingId` relation. */ + functionInvocationsByApiBindingId?: FunctionApiBindingToManyFunctionInvocationFilter; + /** `functionInvocationsByApiBindingId` exist. */ + functionInvocationsByApiBindingIdExist?: boolean; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: FunctionApiBindingFilter; + /** Checks for any expressions in this list. */ + or?: FunctionApiBindingFilter[]; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; } -export interface UpdateResourcesHealthInput { - clientMutationId?: string; - id: string; - resourcesHealthPatch: ResourcesHealthPatch; +/** A filter to be used against `FunctionCapabilityBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface FunctionCapabilityBindingFilter { + /** Checks for all expressions in this list. */ + and?: FunctionCapabilityBindingFilter[]; + /** 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 `function` relation. */ + function?: FunctionDefinitionFilter; + /** A related `function` exists. */ + functionExists?: boolean; + /** Filter by the object’s `functionId` field. */ + functionId?: UUIDFilter; + /** Filter by the object’s `graphId` field. */ + graphId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `key` field. */ + key?: StringFilter; + /** Filter by the object’s `lifecycle` field. */ + lifecycle?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Negates the expression. */ + not?: FunctionCapabilityBindingFilter; + /** Checks for any expressions in this list. */ + or?: FunctionCapabilityBindingFilter[]; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; } -export interface DeleteResourcesHealthInput { - clientMutationId?: string; - id: string; +/** A filter to be used against `WebhookEndpoint` object types. All fields are combined with a logical ‘and.’ */ +export interface WebhookEndpointFilter { + /** Filter by the object’s `active` field. */ + active?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: WebhookEndpointFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `functionDefinition` relation. */ + functionDefinition?: FunctionDefinitionFilter; + /** Filter by the object’s `functionDefinitionId` field. */ + functionDefinitionId?: UUIDFilter; + /** Filter by the object’s `host` field. */ + host?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: WebhookEndpointFilter; + /** Checks for any expressions in this list. */ + or?: WebhookEndpointFilter[]; + /** Filter by the object’s `path` field. */ + path?: StringFilter; + /** Filter by the object’s `provider` field. */ + provider?: StringFilter; + /** Filter by the object’s `replayWindowSeconds` field. */ + replayWindowSeconds?: IntFilter; + /** Filter by the object’s `signingSecretName` field. */ + signingSecretName?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** Filter by the object’s `webhookEventsByEndpointId` relation. */ + webhookEventsByEndpointId?: WebhookEndpointToManyWebhookEventFilter; + /** `webhookEventsByEndpointId` exist. */ + webhookEventsByEndpointIdExist?: boolean; } -export interface CreateResourcesRequirementsStateInput { - clientMutationId?: string; - resourcesRequirementsState: { - configHash?: string; - configObjectName?: string; - requirementsHash?: string; - resourceId: string; - secretsHash?: string; - secretsObjectName?: string; - slug?: string; - }; +/** A filter to be used against `FunctionGraphExecution` object types. All fields are combined with a logical ‘and.’ */ +export interface FunctionGraphExecutionFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: FunctionGraphExecutionFilter[]; + /** Filter by the object’s `completedAt` field. */ + completedAt?: DatetimeFilter; + /** Filter by the object’s `currentWave` field. */ + currentWave?: IntFilter; + /** Filter by the object’s `definitionsCommitId` field. */ + definitionsCommitId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `entityType` field. */ + entityType?: StringFilter; + /** Filter by the object’s `errorCode` field. */ + errorCode?: StringFilter; + /** Filter by the object’s `errorMessage` field. */ + errorMessage?: StringFilter; + /** Filter by the object’s `executionPlan` field. */ + executionPlan?: JSONFilter; + /** Filter by the object’s `graph` relation. */ + graph?: FunctionGraphFilter; + /** Filter by the object’s `graphId` field. */ + graphId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `inputPayload` field. */ + inputPayload?: JSONFilter; + /** Filter by the object’s `invocationCreatedAt` field. */ + invocationCreatedAt?: DatetimeFilter; + /** Filter by the object’s `invocationId` field. */ + invocationId?: UUIDFilter; + /** Filter by the object’s `lastProgressAt` field. */ + lastProgressAt?: DatetimeFilter; + /** Filter by the object’s `maxPendingJobs` field. */ + maxPendingJobs?: IntFilter; + /** Filter by the object’s `maxTicks` field. */ + maxTicks?: IntFilter; + /** Filter by the object’s `nodeOutputs` field. */ + nodeOutputs?: JSONFilter; + /** Negates the expression. */ + not?: FunctionGraphExecutionFilter; + /** Checks for any expressions in this list. */ + or?: FunctionGraphExecutionFilter[]; + /** Filter by the object’s `organizationId` field. */ + organizationId?: UUIDFilter; + /** Filter by the object’s `outputNames` field. */ + outputNames?: StringListFilter; + /** Filter by the object’s `outputNode` field. */ + outputNode?: StringFilter; + /** Filter by the object’s `outputPayload` field. */ + outputPayload?: JSONFilter; + /** Filter by the object’s `outputPort` field. */ + outputPort?: StringFilter; + /** Filter by the object’s `parentExecutionId` field. */ + parentExecutionId?: UUIDFilter; + /** Filter by the object’s `parentInvocationId` field. */ + parentInvocationId?: UUIDFilter; + /** Filter by the object’s `parentNodeName` field. */ + parentNodeName?: StringFilter; + /** Filter by the object’s `principalId` field. */ + principalId?: UUIDFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; + /** Filter by the object’s `startedAt` field. */ + startedAt?: DatetimeFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `tickCount` field. */ + tickCount?: IntFilter; + /** Filter by the object’s `timeoutAt` field. */ + timeoutAt?: DatetimeFilter; } -export interface ResourcesRequirementsStatePatch { - configHash?: string | null; - configObjectName?: string | null; - requirementsHash?: string | null; - resourceId?: string | null; - secretsHash?: string | null; - secretsObjectName?: string | null; - slug?: string | null; +/** A filter to be used against `PlatformFunctionDefinition` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformFunctionDefinitionFilter { + /** Filter by the object’s `accessChannels` field. */ + accessChannels?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: PlatformFunctionDefinitionFilter[]; + /** Filter by the object’s `anonymousCallable` field. */ + anonymousCallable?: BooleanFilter; + /** Filter by the object’s `billable` field. */ + billable?: BooleanFilter; + /** Filter by the object’s `category` field. */ + category?: StringFilter; + /** Filter by the object’s `concurrency` field. */ + concurrency?: IntFilter; + /** Filter by the object’s `cpuLimitMillicores` field. */ + cpuLimitMillicores?: BigIntFilter; + /** Filter by the object’s `cpuRequestMillicores` field. */ + cpuRequestMillicores?: BigIntFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `fnCategory` field. */ + fnCategory?: StringFilter; + /** Filter by the object’s `functionColumns` field. */ + functionColumns?: JSONFilter; + /** Filter by the object’s `graph` relation. */ + graph?: FunctionGraphFilter; + /** A related `graph` exists. */ + graphExists?: boolean; + /** Filter by the object’s `graphId` field. */ + graphId?: UUIDFilter; + /** Filter by the object’s `icon` field. */ + icon?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `image` field. */ + image?: StringFilter; + /** Filter by the object’s `inputs` field. */ + inputs?: JSONFilter; + /** Filter by the object’s `integrations` field. */ + integrations?: StringListFilter; + /** Filter by the object’s `isPublished` field. */ + isPublished?: BooleanFilter; + /** Filter by the object’s `maxAttempts` field. */ + maxAttempts?: IntFilter; + /** Filter by the object’s `memoryLimitBytes` field. */ + memoryLimitBytes?: BigIntFilter; + /** Filter by the object’s `memoryRequestBytes` field. */ + memoryRequestBytes?: BigIntFilter; + /** Filter by the object’s `moduleTable` field. */ + moduleTable?: StringFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: PlatformFunctionDefinitionFilter; + /** Checks for any expressions in this list. */ + or?: PlatformFunctionDefinitionFilter[]; + /** Filter by the object’s `outputs` field. */ + outputs?: JSONFilter; + /** Filter by the object’s `payloadArgs` field. */ + payloadArgs?: JSONFilter; + /** Filter by the object’s `platformFunctionApiBindingsByFunctionDefinitionId` relation. */ + platformFunctionApiBindingsByFunctionDefinitionId?: PlatformFunctionDefinitionToManyPlatformFunctionApiBindingFilter; + /** `platformFunctionApiBindingsByFunctionDefinitionId` exist. */ + platformFunctionApiBindingsByFunctionDefinitionIdExist?: boolean; + /** Filter by the object’s `platformFunctionCapabilityBindingsByFunctionId` relation. */ + platformFunctionCapabilityBindingsByFunctionId?: PlatformFunctionDefinitionToManyPlatformFunctionCapabilityBindingFilter; + /** `platformFunctionCapabilityBindingsByFunctionId` exist. */ + platformFunctionCapabilityBindingsByFunctionIdExist?: boolean; + /** Filter by the object’s `platformWebhookEndpointsByFunctionDefinitionId` relation. */ + platformWebhookEndpointsByFunctionDefinitionId?: PlatformFunctionDefinitionToManyPlatformWebhookEndpointFilter; + /** `platformWebhookEndpointsByFunctionDefinitionId` exist. */ + platformWebhookEndpointsByFunctionDefinitionIdExist?: boolean; + /** Filter by the object’s `priority` field. */ + priority?: IntFilter; + /** Filter by the object’s `props` field. */ + props?: JSONFilter; + /** Filter by the object’s `protected` field. */ + protected?: BooleanFilter; + /** Filter by the object’s `publishedAt` field. */ + publishedAt?: DatetimeFilter; + /** Filter by the object’s `queueName` field. */ + queueName?: StringFilter; + /** Filter by the object’s `requiredBuckets` field. */ + requiredBuckets?: StringListFilter; + /** Filter by the object’s `requiredCapabilities` field. */ + requiredCapabilities?: JSONFilter; + /** 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. */ + runtime?: StringFilter; + /** Filter by the object’s `scaleMax` field. */ + scaleMax?: IntFilter; + /** Filter by the object’s `scaleMin` field. */ + scaleMin?: IntFilter; + /** Filter by the object’s `system` field. */ + system?: BooleanFilter; + /** Filter by the object’s `targetFunction` field. */ + targetFunction?: StringFilter; + /** Filter by the object’s `targetSchema` field. */ + targetSchema?: StringFilter; + /** Filter by the object’s `taskIdentifier` field. */ + taskIdentifier?: StringFilter; + /** Filter by the object’s `timeoutSeconds` field. */ + timeoutSeconds?: IntFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** Filter by the object’s `volatile` field. */ + volatile?: BooleanFilter; } -export interface UpdateResourcesRequirementsStateInput { - clientMutationId?: string; - id: string; - resourcesRequirementsStatePatch: ResourcesRequirementsStatePatch; +/** A filter to be used against `PlatformRepositoryWorkflow` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformRepositoryWorkflowFilter { + /** Checks for all expressions in this list. */ + and?: PlatformRepositoryWorkflowFilter[]; + /** Filter by the object’s `cancelInProgress` field. */ + cancelInProgress?: BooleanFilter; + /** Filter by the object’s `concurrencyKey` field. */ + concurrencyKey?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `eventType` field. */ + eventType?: StringFilter; + /** Filter by the object’s `graph` relation. */ + graph?: FunctionGraphFilter; + /** A related `graph` exists. */ + graphExists?: boolean; + /** Filter by the object’s `graphId` field. */ + graphId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `inputs` field. */ + inputs?: JSONFilter; + /** Filter by the object’s `isEnabled` field. */ + isEnabled?: BooleanFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: PlatformRepositoryWorkflowFilter; + /** Checks for any expressions in this list. */ + or?: PlatformRepositoryWorkflowFilter[]; + /** Filter by the object’s `platformBuildsByWorkflowId` relation. */ + platformBuildsByWorkflowId?: PlatformRepositoryWorkflowToManyPlatformBuildFilter; + /** `platformBuildsByWorkflowId` exist. */ + platformBuildsByWorkflowIdExist?: boolean; + /** Filter by the object’s `platformRepositoryRequiredChecksByWorkflowId` relation. */ + platformRepositoryRequiredChecksByWorkflowId?: PlatformRepositoryWorkflowToManyPlatformRepositoryRequiredCheckFilter; + /** `platformRepositoryRequiredChecksByWorkflowId` exist. */ + platformRepositoryRequiredChecksByWorkflowIdExist?: boolean; + /** Filter by the object’s `refPattern` field. */ + refPattern?: StringFilter; + /** Filter by the object’s `repository` relation. */ + repository?: PlatformRepositoryFilter; + /** Filter by the object’s `repositoryId` field. */ + repositoryId?: UUIDFilter; + /** Filter by the object’s `requiredSecrets` field. */ + requiredSecrets?: StringListFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface DeleteResourcesRequirementsStateInput { - clientMutationId?: string; - id: string; +/** A filter to be used against `ImageGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface ImageGrantFilter { + /** Filter by the object’s `actions` field. */ + actions?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: ImageGrantFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; + /** Filter by the object’s `grantedBy` field. */ + grantedBy?: UUIDFilter; + /** Filter by the object’s `granteeKey` field. */ + granteeKey?: UUIDFilter; + /** Filter by the object’s `granteeScope` field. */ + granteeScope?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `image` relation. */ + image?: ImageFilter; + /** Filter by the object’s `imageId` field. */ + imageId?: UUIDFilter; + /** Negates the expression. */ + not?: ImageGrantFilter; + /** Checks for any expressions in this list. */ + or?: ImageGrantFilter[]; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface CreateResourcesResolvedRequirementInput { - clientMutationId?: string; - resourcesResolvedRequirement: { - atomId: string; - configObjectName?: string; - name?: string; - namespaceId: string; - present?: boolean; - realm?: string; - required?: boolean; - requirementKind?: string; - resourceId: string; - secretsObjectName?: string; - slug?: string; - }; +/** A filter to be used against `BuilderBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface BuilderBindingFilter { + /** Checks for all expressions in this list. */ + and?: BuilderBindingFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `installationId` field. */ + installationId?: UUIDFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: BuilderBindingFilter; + /** Filter by the object’s `observedHost` field. */ + observedHost?: StringFilter; + /** Checks for any expressions in this list. */ + or?: BuilderBindingFilter[]; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface ResourcesResolvedRequirementPatch { - atomId?: string | null; - configObjectName?: string | null; - name?: string | null; - namespaceId?: string | null; - present?: boolean | null; - realm?: string | null; - required?: boolean | null; - requirementKind?: string | null; - resourceId?: string | null; - secretsObjectName?: string | null; - slug?: string | null; +/** A filter to be used against `FunctionDeployment` object types. All fields are combined with a logical ‘and.’ */ +export interface FunctionDeploymentFilter { + /** Checks for all expressions in this list. */ + and?: FunctionDeploymentFilter[]; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Filter by the object’s `concurrency` field. */ + concurrency?: IntFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `errorCount` field. */ + errorCount?: IntFilter; + /** Filter by the object’s `handlerName` field. */ + handlerName?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `image` field. */ + image?: StringFilter; + /** Filter by the object’s `imageVersion` field. */ + imageVersion?: StringFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `lastErrorAt` field. */ + lastErrorAt?: DatetimeFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + 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. */ + revision?: IntFilter; + /** Filter by the object’s `scaleMax` field. */ + scaleMax?: IntFilter; + /** Filter by the object’s `scaleMin` field. */ + scaleMin?: IntFilter; + /** Filter by the object’s `serviceName` field. */ + serviceName?: StringFilter; + /** Filter by the object’s `serviceUrl` field. */ + serviceUrl?: StringFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `timeoutSeconds` field. */ + timeoutSeconds?: IntFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface UpdateResourcesResolvedRequirementInput { - clientMutationId?: string; - id: string; - resourcesResolvedRequirementPatch: ResourcesResolvedRequirementPatch; +/** A filter to be used against `RegistryBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface RegistryBindingFilter { + /** Checks for all expressions in this list. */ + and?: RegistryBindingFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: RegistryBindingFilter; + /** Filter by the object’s `observedCredentialVersion` field. */ + observedCredentialVersion?: StringFilter; + /** Checks for any expressions in this list. */ + or?: RegistryBindingFilter[]; + /** Filter by the object’s `pullSecretName` field. */ + pullSecretName?: StringFilter; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; + /** Filter by the object’s `registry` relation. */ + registry?: RegistryFilter; + /** Filter by the object’s `registryHost` field. */ + registryHost?: StringFilter; + /** Filter by the object’s `registryId` field. */ + registryId?: UUIDFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface DeleteResourcesResolvedRequirementInput { - clientMutationId?: string; - id: string; +/** A filter to be used against `ResourceDefinition` object types. All fields are combined with a logical ‘and.’ */ +export interface ResourceDefinitionFilter { + /** Checks for all expressions in this list. */ + and?: ResourceDefinitionFilter[]; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `defaultSpec` field. */ + defaultSpec?: JSONFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `integrations` field. */ + integrations?: StringListFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: ResourceDefinitionFilter; + /** Checks for any expressions in this list. */ + or?: ResourceDefinitionFilter[]; + /** Filter by the object’s `paramsSchema` field. */ + paramsSchema?: JSONFilter; + /** Filter by the object’s `resources` relation. */ + resources?: ResourceDefinitionToManyResourceFilter; + /** `resources` exist. */ + resourcesExist?: boolean; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `stepUpMinAge` field. */ + stepUpMinAge?: IntervalFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface CreateWebhookEndpointInput { - clientMutationId?: string; - webhookEndpoint: { - active?: boolean; - createdBy?: string; - databaseId: string; - functionDefinitionId: string; - host: string; - namespaceId: string; - path: string; - provider?: string; - replayWindowSeconds?: number; - signingSecretName: string; - updatedBy?: string; - }; +/** A filter to be used against `ResourceInstallation` object types. All fields are combined with a logical ‘and.’ */ +export interface ResourceInstallationFilter { + /** Checks for all expressions in this list. */ + and?: ResourceInstallationFilter[]; + /** Filter by the object’s `commitId` field. */ + commitId?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: ResourceInstallationFilter; + /** Checks for any expressions in this list. */ + or?: ResourceInstallationFilter[]; + /** Filter by the object’s `params` field. */ + params?: JSONFilter; + /** Filter by the object’s `registriesByInstallationId` relation. */ + registriesByInstallationId?: ResourceInstallationToManyRegistryFilter; + /** `registriesByInstallationId` exist. */ + registriesByInstallationIdExist?: boolean; + /** Filter by the object’s `resourcesByInstallationId` relation. */ + resourcesByInstallationId?: ResourceInstallationToManyResourceFilter; + /** `resourcesByInstallationId` exist. */ + resourcesByInstallationIdExist?: boolean; + /** Filter by the object’s `revision` field. */ + revision?: IntFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `storeId` field. */ + storeId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface WebhookEndpointPatch { - active?: boolean | null; - createdBy?: string | null; - databaseId?: string | null; - functionDefinitionId?: string | null; - host?: string | null; - namespaceId?: string | null; - path?: string | null; - provider?: string | null; - replayWindowSeconds?: number | null; - signingSecretName?: string | null; - updatedBy?: string | null; +/** A filter to be used against `Resource` object types. All fields are combined with a logical ‘and.’ */ +export interface ResourceFilter { + /** Checks for all expressions in this list. */ + and?: ResourceFilter[]; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Filter by the object’s `cpuLimitMillicores` field. */ + cpuLimitMillicores?: BigIntFilter; + /** Filter by the object’s `cpuRequestMillicores` field. */ + cpuRequestMillicores?: BigIntFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `errorCount` field. */ + errorCount?: IntFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `imageRef` field. */ + imageRef?: StringFilter; + /** Filter by the object’s `installation` relation. */ + installation?: ResourceInstallationFilter; + /** A related `installation` exists. */ + installationExists?: boolean; + /** Filter by the object’s `installationId` field. */ + installationId?: UUIDFilter; + /** Filter by the object’s `integrations` field. */ + integrations?: StringListFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `lastHeartbeatAt` field. */ + lastHeartbeatAt?: DatetimeFilter; + /** Filter by the object’s `memoryLimitBytes` field. */ + memoryLimitBytes?: BigIntFilter; + /** Filter by the object’s `memoryRequestBytes` field. */ + memoryRequestBytes?: BigIntFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: ResourceFilter; + /** Checks for any expressions in this list. */ + or?: ResourceFilter[]; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; + /** Filter by the object’s `replicas` field. */ + replicas?: IntFilter; + /** Filter by the object’s `resourceDefinition` relation. */ + resourceDefinition?: ResourceDefinitionFilter; + /** A related `resourceDefinition` exists. */ + resourceDefinitionExists?: boolean; + /** Filter by the object’s `resourceDefinitionId` field. */ + resourceDefinitionId?: UUIDFilter; + /** Filter by the object’s `resourceStatusChecks` relation. */ + resourceStatusChecks?: ResourceToManyResourceStatusCheckFilter; + /** `resourceStatusChecks` exist. */ + resourceStatusChecksExist?: boolean; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `spec` field. */ + spec?: JSONFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `statusObserved` field. */ + statusObserved?: JSONFilter; + /** Filter by the object’s `storageClass` field. */ + storageClass?: StringFilter; + /** Filter by the object’s `storageSizeBytes` field. */ + storageSizeBytes?: BigIntFilter; + /** Filter by the object’s `storageTotalBytes` field. */ + storageTotalBytes?: BigIntFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface UpdateWebhookEndpointInput { - clientMutationId?: string; - id: string; - webhookEndpointPatch: WebhookEndpointPatch; +/** A filter to be used against `PlatformFunctionInvocation` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformFunctionInvocationFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: PlatformFunctionInvocationFilter[]; + /** Filter by the object’s `apiBinding` relation. */ + apiBinding?: PlatformFunctionApiBindingFilter; + /** A related `apiBinding` exists. */ + apiBindingExists?: boolean; + /** Filter by the object’s `apiBindingId` field. */ + apiBindingId?: UUIDFilter; + /** Filter by the object’s `channel` field. */ + channel?: StringFilter; + /** Filter by the object’s `completedAt` field. */ + completedAt?: DatetimeFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `definitionScope` field. */ + definitionScope?: StringFilter; + /** Filter by the object’s `durationMs` field. */ + durationMs?: IntFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `entityType` field. */ + entityType?: StringFilter; + /** Filter by the object’s `error` field. */ + error?: StringFilter; + /** Filter by the object’s `functionDefinitionId` field. */ + functionDefinitionId?: UUIDFilter; + /** Filter by the object’s `graphExecutionId` field. */ + graphExecutionId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `jobId` field. */ + jobId?: BigIntFilter; + /** Negates the expression. */ + not?: PlatformFunctionInvocationFilter; + /** Checks for any expressions in this list. */ + or?: PlatformFunctionInvocationFilter[]; + /** Filter by the object’s `organizationId` field. */ + organizationId?: UUIDFilter; + /** Filter by the object’s `parentInvocationId` field. */ + parentInvocationId?: UUIDFilter; + /** Filter by the object’s `payload` field. */ + payload?: JSONFilter; + /** Filter by the object’s `principalId` field. */ + principalId?: UUIDFilter; + /** Filter by the object’s `provenance` field. */ + provenance?: JSONFilter; + /** Filter by the object’s `result` field. */ + result?: JSONFilter; + /** Filter by the object’s `startedAt` field. */ + startedAt?: DatetimeFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `taskIdentifier` field. */ + taskIdentifier?: StringFilter; } -export interface DeleteWebhookEndpointInput { - clientMutationId?: string; - id: string; +/** A filter to be used against `PlatformFunctionApiBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformFunctionApiBindingFilter { + /** Filter by the object’s `alias` field. */ + alias?: StringFilter; + /** Checks for all expressions in this list. */ + and?: PlatformFunctionApiBindingFilter[]; + /** 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 `functionDefinition` relation. */ + functionDefinition?: PlatformFunctionDefinitionFilter; + /** Filter by the object’s `functionDefinitionId` field. */ + functionDefinitionId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformFunctionApiBindingFilter; + /** Checks for any expressions in this list. */ + or?: PlatformFunctionApiBindingFilter[]; + /** Filter by the object’s `platformFunctionInvocationsByApiBindingId` relation. */ + platformFunctionInvocationsByApiBindingId?: PlatformFunctionApiBindingToManyPlatformFunctionInvocationFilter; + /** `platformFunctionInvocationsByApiBindingId` exist. */ + platformFunctionInvocationsByApiBindingIdExist?: boolean; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; } -export interface CreateWebhookEventInput { - clientMutationId?: string; - webhookEvent: { - databaseId: string; - endpointId: string; - error?: string; - externalEventId: string; - invocationCreatedAt?: string; - invocationId?: string; - payload?: Record; - provider: string; - providerTimestamp?: string; - status?: string; - }; +/** A filter to be used against `PlatformFunctionCapabilityBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformFunctionCapabilityBindingFilter { + /** Checks for all expressions in this list. */ + and?: PlatformFunctionCapabilityBindingFilter[]; + /** Filter by the object’s `bucketId` field. */ + bucketId?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `function` relation. */ + function?: PlatformFunctionDefinitionFilter; + /** A related `function` exists. */ + functionExists?: boolean; + /** Filter by the object’s `functionId` field. */ + functionId?: UUIDFilter; + /** Filter by the object’s `graphId` field. */ + graphId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `key` field. */ + key?: StringFilter; + /** Filter by the object’s `lifecycle` field. */ + lifecycle?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Negates the expression. */ + not?: PlatformFunctionCapabilityBindingFilter; + /** Checks for any expressions in this list. */ + or?: PlatformFunctionCapabilityBindingFilter[]; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; } -export interface WebhookEventPatch { - databaseId?: string | null; - endpointId?: string | null; - error?: string | null; - externalEventId?: string | null; - invocationCreatedAt?: string | null; - invocationId?: string | null; - payload?: Record | null; - provider?: string | null; - providerTimestamp?: string | null; - status?: string | null; +/** A filter to be used against `PlatformWebhookEndpoint` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformWebhookEndpointFilter { + /** Filter by the object’s `active` field. */ + active?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: PlatformWebhookEndpointFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `functionDefinition` relation. */ + functionDefinition?: PlatformFunctionDefinitionFilter; + /** Filter by the object’s `functionDefinitionId` field. */ + functionDefinitionId?: UUIDFilter; + /** Filter by the object’s `host` field. */ + host?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: PlatformNamespaceFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformWebhookEndpointFilter; + /** Checks for any expressions in this list. */ + or?: PlatformWebhookEndpointFilter[]; + /** Filter by the object’s `path` field. */ + path?: StringFilter; + /** Filter by the object’s `platformWebhookEventsByEndpointId` relation. */ + platformWebhookEventsByEndpointId?: PlatformWebhookEndpointToManyPlatformWebhookEventFilter; + /** `platformWebhookEventsByEndpointId` exist. */ + platformWebhookEventsByEndpointIdExist?: boolean; + /** Filter by the object’s `provider` field. */ + provider?: StringFilter; + /** Filter by the object’s `replayWindowSeconds` field. */ + replayWindowSeconds?: IntFilter; + /** Filter by the object’s `signingSecretName` field. */ + signingSecretName?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface UpdateWebhookEventInput { - clientMutationId?: string; - id: string; - webhookEventPatch: WebhookEventPatch; +/** A filter to be used against `PlatformImageGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformImageGrantFilter { + /** Filter by the object’s `actions` field. */ + actions?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: PlatformImageGrantFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; + /** Filter by the object’s `grantedBy` field. */ + grantedBy?: UUIDFilter; + /** Filter by the object’s `granteeKey` field. */ + granteeKey?: UUIDFilter; + /** Filter by the object’s `granteeScope` field. */ + granteeScope?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `image` relation. */ + image?: PlatformImageFilter; + /** Filter by the object’s `imageId` field. */ + imageId?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformImageGrantFilter; + /** Checks for any expressions in this list. */ + or?: PlatformImageGrantFilter[]; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface DeleteWebhookEventInput { - clientMutationId?: string; - id: string; +/** A filter to be used against `PlatformBuilderBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformBuilderBindingFilter { + /** Checks for all expressions in this list. */ + and?: PlatformBuilderBindingFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `installationId` field. */ + installationId?: UUIDFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: PlatformNamespaceFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformBuilderBindingFilter; + /** Filter by the object’s `observedHost` field. */ + observedHost?: StringFilter; + /** Checks for any expressions in this list. */ + or?: PlatformBuilderBindingFilter[]; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} +/** A filter to be used against `PlatformFunctionDeployment` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformFunctionDeploymentFilter { + /** Checks for all expressions in this list. */ + and?: PlatformFunctionDeploymentFilter[]; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Filter by the object’s `concurrency` field. */ + concurrency?: IntFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `errorCount` field. */ + errorCount?: IntFilter; + /** Filter by the object’s `handlerName` field. */ + handlerName?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `image` field. */ + image?: StringFilter; + /** Filter by the object’s `imageVersion` field. */ + imageVersion?: StringFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `lastErrorAt` field. */ + lastErrorAt?: DatetimeFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: PlatformNamespaceFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + 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. */ + revision?: IntFilter; + /** Filter by the object’s `scaleMax` field. */ + scaleMax?: IntFilter; + /** Filter by the object’s `scaleMin` field. */ + scaleMin?: IntFilter; + /** Filter by the object’s `serviceName` field. */ + serviceName?: StringFilter; + /** Filter by the object’s `serviceUrl` field. */ + serviceUrl?: StringFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `timeoutSeconds` field. */ + timeoutSeconds?: IntFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -// ============ Connection Fields Map ============ -export const connectionFieldsMap = { - FunctionApiBinding: { - functionInvocationsByApiBindingId: 'FunctionInvocation', - }, - FunctionDefinition: { - functionApiBindings: 'FunctionApiBinding', - functionCapabilityBindingsByFunctionId: 'FunctionCapabilityBinding', - webhookEndpoints: 'WebhookEndpoint', - }, - FunctionGraph: { - functionGraphExecutionsByGraphId: 'FunctionGraphExecution', - platformFunctionDefinitionsByGraphId: 'PlatformFunctionDefinition', - }, - Namespace: { - functionDeployments: 'FunctionDeployment', - resourceDefinitions: 'ResourceDefinition', - resourceInstallations: 'ResourceInstallation', - resources: 'Resource', - webhookEndpoints: 'WebhookEndpoint', - }, - PlatformFunctionApiBinding: { - platformFunctionInvocationsByApiBindingId: 'PlatformFunctionInvocation', - }, - PlatformFunctionDefinition: { - platformFunctionApiBindingsByFunctionDefinitionId: 'PlatformFunctionApiBinding', - platformFunctionCapabilityBindingsByFunctionId: 'PlatformFunctionCapabilityBinding', - platformWebhookEndpointsByFunctionDefinitionId: 'PlatformWebhookEndpoint', - }, - PlatformNamespace: { - platformFunctionDeploymentsByNamespaceId: 'PlatformFunctionDeployment', - platformResourceDefinitionsByNamespaceId: 'PlatformResourceDefinition', - platformResourceInstallationsByNamespaceId: 'PlatformResourceInstallation', - platformResourcesByNamespaceId: 'PlatformResource', - platformWebhookEndpointsByNamespaceId: 'PlatformWebhookEndpoint', - }, - PlatformResource: { - platformResourceStatusChecksByResourceId: 'PlatformResourceStatusCheck', - }, - PlatformResourceDefinition: { - platformResourcesByResourceDefinitionId: 'PlatformResource', - }, - PlatformResourceInstallation: { - platformResourcesByInstallationId: 'PlatformResource', - }, - PlatformWebhookEndpoint: { - platformWebhookEventsByEndpointId: 'PlatformWebhookEvent', - }, - Resource: { - resourceStatusChecks: 'ResourceStatusCheck', - }, - ResourceDefinition: { - resources: 'Resource', - }, - ResourceInstallation: { - resourcesByInstallationId: 'Resource', - }, - WebhookEndpoint: { - webhookEventsByEndpointId: 'WebhookEvent', - }, -} as Record>; -// ============ Custom Input Types (from schema) ============ -export interface AddEdgeInput { - clientMutationId?: string; - context?: string; - dstNode?: string; - dstPort?: string; - graphName?: string; - rootHash?: string; - scopeId?: string; - srcNode?: string; - srcPort?: string; +/** A filter to be used against `PlatformRegistryBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformRegistryBindingFilter { + /** Checks for all expressions in this list. */ + and?: PlatformRegistryBindingFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: PlatformNamespaceFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformRegistryBindingFilter; + /** Filter by the object’s `observedCredentialVersion` field. */ + observedCredentialVersion?: StringFilter; + /** Checks for any expressions in this list. */ + or?: PlatformRegistryBindingFilter[]; + /** Filter by the object’s `pullSecretName` field. */ + pullSecretName?: StringFilter; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; + /** Filter by the object’s `registry` relation. */ + registry?: PlatformRegistryFilter; + /** Filter by the object’s `registryHost` field. */ + registryHost?: StringFilter; + /** Filter by the object’s `registryId` field. */ + registryId?: UUIDFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface AddEdgeAndSaveInput { - clientMutationId?: string; - dstNode?: string; - dstPort?: string; - graphId?: string; - message?: string; - srcNode?: string; - srcPort?: string; +/** A filter to be used against `PlatformResourceDefinition` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformResourceDefinitionFilter { + /** Checks for all expressions in this list. */ + and?: PlatformResourceDefinitionFilter[]; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `defaultSpec` field. */ + defaultSpec?: JSONFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `integrations` field. */ + integrations?: StringListFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: PlatformNamespaceFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformResourceDefinitionFilter; + /** Checks for any expressions in this list. */ + or?: PlatformResourceDefinitionFilter[]; + /** Filter by the object’s `paramsSchema` field. */ + paramsSchema?: JSONFilter; + /** Filter by the object’s `platformResourcesByResourceDefinitionId` relation. */ + platformResourcesByResourceDefinitionId?: PlatformResourceDefinitionToManyPlatformResourceFilter; + /** `platformResourcesByResourceDefinitionId` exist. */ + platformResourcesByResourceDefinitionIdExist?: boolean; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `stepUpMinAge` field. */ + stepUpMinAge?: IntervalFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface AddNodeInput { - clientMutationId?: string; - context?: string; - graphName?: string; - meta?: Record; - nodeName?: string; - nodeType?: string; - props?: Record; - rootHash?: string; - scopeId?: string; +/** A filter to be used against `PlatformResourceInstallation` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformResourceInstallationFilter { + /** Checks for all expressions in this list. */ + and?: PlatformResourceInstallationFilter[]; + /** Filter by the object’s `commitId` field. */ + commitId?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: PlatformNamespaceFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformResourceInstallationFilter; + /** Checks for any expressions in this list. */ + or?: PlatformResourceInstallationFilter[]; + /** Filter by the object’s `params` field. */ + params?: JSONFilter; + /** Filter by the object’s `platformRegistriesByInstallationId` relation. */ + platformRegistriesByInstallationId?: PlatformResourceInstallationToManyPlatformRegistryFilter; + /** `platformRegistriesByInstallationId` exist. */ + platformRegistriesByInstallationIdExist?: boolean; + /** Filter by the object’s `platformResourcesByInstallationId` relation. */ + platformResourcesByInstallationId?: PlatformResourceInstallationToManyPlatformResourceFilter; + /** `platformResourcesByInstallationId` exist. */ + platformResourcesByInstallationIdExist?: boolean; + /** Filter by the object’s `revision` field. */ + revision?: IntFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `storeId` field. */ + storeId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface AddNodeAndSaveInput { - clientMutationId?: string; - graphId?: string; - message?: string; - meta?: Record; - nodeName?: string; - nodeType?: string; - props?: Record; +/** A filter to be used against `PlatformResource` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformResourceFilter { + /** Checks for all expressions in this list. */ + and?: PlatformResourceFilter[]; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Filter by the object’s `cpuLimitMillicores` field. */ + cpuLimitMillicores?: BigIntFilter; + /** Filter by the object’s `cpuRequestMillicores` field. */ + cpuRequestMillicores?: BigIntFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `errorCount` field. */ + errorCount?: IntFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `imageRef` field. */ + imageRef?: StringFilter; + /** Filter by the object’s `installation` relation. */ + installation?: PlatformResourceInstallationFilter; + /** A related `installation` exists. */ + installationExists?: boolean; + /** Filter by the object’s `installationId` field. */ + installationId?: UUIDFilter; + /** Filter by the object’s `integrations` field. */ + integrations?: StringListFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `lastHeartbeatAt` field. */ + lastHeartbeatAt?: DatetimeFilter; + /** Filter by the object’s `memoryLimitBytes` field. */ + memoryLimitBytes?: BigIntFilter; + /** Filter by the object’s `memoryRequestBytes` field. */ + memoryRequestBytes?: BigIntFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: PlatformNamespaceFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformResourceFilter; + /** Checks for any expressions in this list. */ + or?: PlatformResourceFilter[]; + /** Filter by the object’s `platformResourceStatusChecksByResourceId` relation. */ + platformResourceStatusChecksByResourceId?: PlatformResourceToManyPlatformResourceStatusCheckFilter; + /** `platformResourceStatusChecksByResourceId` exist. */ + platformResourceStatusChecksByResourceIdExist?: boolean; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; + /** Filter by the object’s `replicas` field. */ + replicas?: IntFilter; + /** Filter by the object’s `resourceDefinition` relation. */ + resourceDefinition?: PlatformResourceDefinitionFilter; + /** A related `resourceDefinition` exists. */ + resourceDefinitionExists?: boolean; + /** Filter by the object’s `resourceDefinitionId` field. */ + resourceDefinitionId?: UUIDFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `spec` field. */ + spec?: JSONFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `statusObserved` field. */ + statusObserved?: JSONFilter; + /** Filter by the object’s `storageClass` field. */ + storageClass?: StringFilter; + /** Filter by the object’s `storageSizeBytes` field. */ + storageSizeBytes?: BigIntFilter; + /** Filter by the object’s `storageTotalBytes` field. */ + storageTotalBytes?: BigIntFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface CopyGraphInput { - clientMutationId?: string; - graphId?: string; - name?: string; - scopeId?: string; +/** A filter to be used against `PlatformProposalReaction` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformProposalReactionFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: PlatformProposalReactionFilter[]; + /** Filter by the object’s `comment` relation. */ + comment?: PlatformProposalCommentFilter; + /** A related `comment` exists. */ + commentExists?: boolean; + /** Filter by the object’s `commentId` field. */ + commentId?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `emoji` field. */ + emoji?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformProposalReactionFilter; + /** Checks for any expressions in this list. */ + or?: PlatformProposalReactionFilter[]; + /** Filter by the object’s `proposal` relation. */ + proposal?: PlatformProposalFilter; + /** Filter by the object’s `proposalId` field. */ + proposalId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface ImportDefinitionsInput { - clientMutationId?: string; - contexts?: string[]; - graphId?: string; - sourceCommitId?: string; - sourceScopeId?: string; +/** Similarity metric for vector search */ +export type VectorMetric = 'COSINE' | 'IP' | 'L2'; +/** A filter to be used against `PlatformProposal` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformProposalFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: PlatformProposalFilter[]; + /** Filter by the object’s `body` field. */ + body?: StringTrgmFilter; + /** Filter by the object’s `childPlatformProposals` relation. */ + childPlatformProposals?: PlatformProposalToManyPlatformProposalFilter; + /** `childPlatformProposals` exist. */ + childPlatformProposalsExist?: boolean; + /** Filter by the object’s `closedReason` field. */ + closedReason?: StringTrgmFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `decidedAt` field. */ + decidedAt?: DatetimeFilter; + /** Filter by the object’s `dueAt` field. */ + dueAt?: DatetimeFilter; + /** Filter by the object’s `embedding` field. */ + embedding?: VectorFilter; + /** Filter by the object’s `embeddingUpdatedAt` field. */ + embeddingUpdatedAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringTrgmFilter; + /** Filter by the object’s `labels` field. */ + labels?: StringListFilter; + /** Filter by the object’s `mergeCommit` field. */ + mergeCommit?: StringTrgmFilter; + /** Filter by the object’s `mergeMethod` field. */ + mergeMethod?: StringTrgmFilter; + /** Filter by the object’s `mergeRequestedAt` field. */ + mergeRequestedAt?: DatetimeFilter; + /** Filter by the object’s `mergedAt` field. */ + mergedAt?: DatetimeFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Negates the expression. */ + not?: PlatformProposalFilter; + /** Checks for any expressions in this list. */ + or?: PlatformProposalFilter[]; + /** Filter by the object’s `parent` relation. */ + parent?: PlatformProposalFilter; + /** A related `parent` exists. */ + parentExists?: boolean; + /** Filter by the object’s `parentId` field. */ + parentId?: UUIDFilter; + /** Filter by the object’s `platformBuildsByProposalId` relation. */ + platformBuildsByProposalId?: PlatformProposalToManyPlatformBuildFilter; + /** `platformBuildsByProposalId` exist. */ + platformBuildsByProposalIdExist?: boolean; + /** Filter by the object’s `platformProposalCommentsByProposalId` relation. */ + platformProposalCommentsByProposalId?: PlatformProposalToManyPlatformProposalCommentFilter; + /** `platformProposalCommentsByProposalId` exist. */ + platformProposalCommentsByProposalIdExist?: boolean; + /** Filter by the object’s `platformProposalFileViewsByProposalId` relation. */ + platformProposalFileViewsByProposalId?: PlatformProposalToManyPlatformProposalFileViewFilter; + /** `platformProposalFileViewsByProposalId` exist. */ + platformProposalFileViewsByProposalIdExist?: boolean; + /** Filter by the object’s `platformProposalReactionsByProposalId` relation. */ + platformProposalReactionsByProposalId?: PlatformProposalToManyPlatformProposalReactionFilter; + /** `platformProposalReactionsByProposalId` exist. */ + platformProposalReactionsByProposalIdExist?: boolean; + /** Filter by the object’s `platformProposalReviewsByProposalId` relation. */ + platformProposalReviewsByProposalId?: PlatformProposalToManyPlatformProposalReviewFilter; + /** `platformProposalReviewsByProposalId` exist. */ + platformProposalReviewsByProposalIdExist?: boolean; + /** Filter by the object’s `platformProposalsChunksByPlatformProposalsId` relation. */ + platformProposalsChunksByPlatformProposalsId?: PlatformProposalToManyPlatformProposalsChunkFilter; + /** `platformProposalsChunksByPlatformProposalsId` exist. */ + platformProposalsChunksByPlatformProposalsIdExist?: boolean; + /** Filter by the object’s `priority` field. */ + priority?: BigFloatFilter; + /** Filter by the object’s `repository` relation. */ + repository?: PlatformRepositoryFilter; + /** Filter by the object’s `repositoryId` field. */ + repositoryId?: UUIDFilter; + /** Filter by the object’s `resolution` field. */ + resolution?: StringTrgmFilter; + /** Filter by the object’s `search` field. */ + search?: FullTextFilter; + /** Filter by the object’s `sourceRef` field. */ + sourceRef?: StringTrgmFilter; + /** Filter by the object’s `status` field. */ + status?: StringTrgmFilter; + /** Filter by the object’s `targetRef` field. */ + targetRef?: StringTrgmFilter; + /** Filter by the object’s `title` field. */ + title?: StringTrgmFilter; + /** TRGM search on the `body` column. */ + trgmBody?: TrgmSearchInput; + /** TRGM search on the `closed_reason` column. */ + trgmClosedReason?: TrgmSearchInput; + /** TRGM search on the `kind` column. */ + trgmKind?: TrgmSearchInput; + /** TRGM search on the `merge_commit` column. */ + trgmMergeCommit?: TrgmSearchInput; + /** TRGM search on the `merge_method` column. */ + trgmMergeMethod?: TrgmSearchInput; + /** TRGM search on the `resolution` column. */ + trgmResolution?: TrgmSearchInput; + /** TRGM search on the `source_ref` column. */ + trgmSourceRef?: TrgmSearchInput; + /** TRGM search on the `status` column. */ + trgmStatus?: TrgmSearchInput; + /** TRGM search on the `target_ref` column. */ + trgmTargetRef?: TrgmSearchInput; + /** TRGM search on the `title` column. */ + trgmTitle?: TrgmSearchInput; + /** TSV search on the `search` column. */ + tsvSearch?: string; + /** + * Composite unified search. Provide a search string and it will be dispatched to + * all text-compatible search algorithms (tsvector, BM25, pg_trgm) + * simultaneously. When the LLM plugin is active, pgvector also participates via + * auto-embedding. Rows matching ANY algorithm are returned. All matching score + * fields are populated. + */ + unifiedSearch?: string; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** VECTOR search on the `embedding` column. */ + vectorEmbedding?: VectorNearbyInput; } -export interface ImportGraphJsonInput { - clientMutationId?: string; - context?: string; - createdBy?: string; - definitionsCommitId?: string; - description?: string; - graphJson?: Record; - name?: string; - scopeId?: string; +/** A filter to be used against `PlatformBuild` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformBuildFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: PlatformBuildFilter[]; + /** Filter by the object’s `attempt` field. */ + attempt?: IntFilter; + /** Filter by the object’s `commitSha` field. */ + commitSha?: StringFilter; + /** Filter by the object’s `conclusion` field. */ + conclusion?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `event` relation. */ + event?: PlatformRepositoryEventFilter; + /** A related `event` exists. */ + eventExists?: boolean; + /** Filter by the object’s `eventId` field. */ + eventId?: UUIDFilter; + /** Filter by the object’s `finishedAt` field. */ + finishedAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `imageRef` field. */ + imageRef?: StringFilter; + /** Filter by the object’s `jobId` field. */ + jobId?: BigIntFilter; + /** Filter by the object’s `logs` field. */ + logs?: ConstructiveInternalTypeUploadFilter; + /** Filter by the object’s `matrixKey` field. */ + matrixKey?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Negates the expression. */ + not?: PlatformBuildFilter; + /** Checks for any expressions in this list. */ + or?: PlatformBuildFilter[]; + /** Filter by the object’s `proposal` relation. */ + proposal?: PlatformProposalFilter; + /** A related `proposal` exists. */ + proposalExists?: boolean; + /** Filter by the object’s `proposalId` field. */ + proposalId?: UUIDFilter; + /** Filter by the object’s `ref` field. */ + ref?: StringFilter; + /** Filter by the object’s `repository` relation. */ + repository?: PlatformRepositoryFilter; + /** Filter by the object’s `repositoryId` field. */ + repositoryId?: UUIDFilter; + /** Filter by the object’s `startedAt` field. */ + startedAt?: DatetimeFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** Filter by the object’s `workflow` relation. */ + workflow?: PlatformRepositoryWorkflowFilter; + /** A related `workflow` exists. */ + workflowExists?: boolean; + /** Filter by the object’s `workflowId` field. */ + workflowId?: UUIDFilter; +} +/** A filter to be used against `PlatformProposalComment` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformProposalCommentFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: PlatformProposalCommentFilter[]; + /** Filter by the object’s `attachments` field. */ + attachments?: ConstructiveInternalTypeUploadListFilter; + /** Filter by the object’s `body` field. */ + body?: StringTrgmFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `embedding` field. */ + embedding?: VectorFilter; + /** Filter by the object’s `embeddingUpdatedAt` field. */ + embeddingUpdatedAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `line` field. */ + line?: IntFilter; + /** Negates the expression. */ + not?: PlatformProposalCommentFilter; + /** Checks for any expressions in this list. */ + or?: PlatformProposalCommentFilter[]; + /** Filter by the object’s `outdatedAt` field. */ + outdatedAt?: DatetimeFilter; + /** Filter by the object’s `path` field. */ + path?: StringTrgmFilter; + /** Filter by the object’s `platformProposalReactionsByCommentId` relation. */ + platformProposalReactionsByCommentId?: PlatformProposalCommentToManyPlatformProposalReactionFilter; + /** `platformProposalReactionsByCommentId` exist. */ + platformProposalReactionsByCommentIdExist?: boolean; + /** Filter by the object’s `proposal` relation. */ + proposal?: PlatformProposalFilter; + /** Filter by the object’s `proposalId` field. */ + proposalId?: UUIDFilter; + /** Filter by the object’s `resolvedAt` field. */ + resolvedAt?: DatetimeFilter; + /** Filter by the object’s `search` field. */ + search?: FullTextFilter; + /** TRGM search on the `body` column. */ + trgmBody?: TrgmSearchInput; + /** TRGM search on the `path` column. */ + trgmPath?: TrgmSearchInput; + /** TSV search on the `search` column. */ + tsvSearch?: string; + /** + * Composite unified search. Provide a search string and it will be dispatched to + * all text-compatible search algorithms (tsvector, BM25, pg_trgm) + * simultaneously. When the LLM plugin is active, pgvector also participates via + * auto-embedding. Rows matching ANY algorithm are returned. All matching score + * fields are populated. + */ + unifiedSearch?: string; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** VECTOR search on the `embedding` column. */ + vectorEmbedding?: VectorNearbyInput; } -export interface InfraInitEmptyRepoInput { - clientMutationId?: string; - sId?: string; - storeId?: string; +/** A filter to be used against `PlatformProposalFileView` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformProposalFileViewFilter { + /** Checks for all expressions in this list. */ + and?: PlatformProposalFileViewFilter[]; + /** Filter by the object’s `blobSha` field. */ + blobSha?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformProposalFileViewFilter; + /** Checks for any expressions in this list. */ + or?: PlatformProposalFileViewFilter[]; + /** Filter by the object’s `path` field. */ + path?: StringFilter; + /** Filter by the object’s `proposal` relation. */ + proposal?: PlatformProposalFilter; + /** Filter by the object’s `proposalId` field. */ + proposalId?: UUIDFilter; + /** Filter by the object’s `reviewerId` field. */ + reviewerId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** Filter by the object’s `viewedAt` field. */ + viewedAt?: DatetimeFilter; } -export interface InfraInsertNodeAtPathInput { - clientMutationId?: string; - data?: Record; - kids?: string[]; - ktree?: string[]; - path?: string[]; - root?: string; - sId?: string; +/** A filter to be used against `PlatformProposalReview` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformProposalReviewFilter { + /** Checks for all expressions in this list. */ + and?: PlatformProposalReviewFilter[]; + /** Filter by the object’s `body` field. */ + body?: StringTrgmFilter; + /** Filter by the object’s `commitSha` field. */ + commitSha?: StringTrgmFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformProposalReviewFilter; + /** Checks for any expressions in this list. */ + or?: PlatformProposalReviewFilter[]; + /** Filter by the object’s `proposal` relation. */ + proposal?: PlatformProposalFilter; + /** Filter by the object’s `proposalId` field. */ + proposalId?: UUIDFilter; + /** Filter by the object’s `reviewerId` field. */ + reviewerId?: UUIDFilter; + /** Filter by the object’s `search` field. */ + search?: FullTextFilter; + /** Filter by the object’s `submittedAt` field. */ + submittedAt?: DatetimeFilter; + /** TRGM search on the `body` column. */ + trgmBody?: TrgmSearchInput; + /** TRGM search on the `commit_sha` column. */ + trgmCommitSha?: TrgmSearchInput; + /** TRGM search on the `verdict` column. */ + trgmVerdict?: TrgmSearchInput; + /** TSV search on the `search` column. */ + tsvSearch?: string; + /** + * Composite unified search. Provide a search string and it will be dispatched to + * all text-compatible search algorithms (tsvector, BM25, pg_trgm) + * simultaneously. When the LLM plugin is active, pgvector also participates via + * auto-embedding. Rows matching ANY algorithm are returned. All matching score + * fields are populated. + */ + unifiedSearch?: string; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** Filter by the object’s `verdict` field. */ + verdict?: StringTrgmFilter; } -export interface InfraInsertNodesAtPathsInput { - clientMutationId?: string; - datas?: Record[]; - kidsList?: Record; - ktreeList?: Record; - paths?: Record; - root?: string; - sId?: string; +/** A filter to be used against `PlatformProposalsChunk` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformProposalsChunkFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: PlatformProposalsChunkFilter[]; + /** Filter by the object’s `body` field. */ + body?: StringFilter; + /** Filter by the object’s `chunkIndex` field. */ + chunkIndex?: IntFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `embedding` field. */ + embedding?: VectorFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Negates the expression. */ + not?: PlatformProposalsChunkFilter; + /** Checks for any expressions in this list. */ + or?: PlatformProposalsChunkFilter[]; + /** Filter by the object’s `platformProposals` relation. */ + platformProposals?: PlatformProposalFilter; + /** Filter by the object’s `platformProposalsId` field. */ + platformProposalsId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** VECTOR search on the `embedding` column. */ + vectorEmbedding?: VectorNearbyInput; } -export interface InfraSetAndCommitInput { - clientMutationId?: string; - data?: Record; - kids?: string[]; - ktree?: string[]; - message?: string; - path?: string[]; - refname?: string; - sId?: string; - storeId?: string; +/** A filter to be used against `PlatformRegistryGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformRegistryGrantFilter { + /** Filter by the object’s `actions` field. */ + actions?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: PlatformRegistryGrantFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; + /** Filter by the object’s `grantedBy` field. */ + grantedBy?: UUIDFilter; + /** Filter by the object’s `granteeKey` field. */ + granteeKey?: UUIDFilter; + /** Filter by the object’s `granteeScope` field. */ + granteeScope?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformRegistryGrantFilter; + /** Checks for any expressions in this list. */ + or?: PlatformRegistryGrantFilter[]; + /** Filter by the object’s `registry` relation. */ + registry?: PlatformRegistryFilter; + /** Filter by the object’s `registryId` field. */ + registryId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface InfraSetDataAtPathInput { - clientMutationId?: string; - data?: Record; - path?: string[]; - root?: string; - sId?: string; +/** A filter to be used against `PlatformRepositoryEvent` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformRepositoryEventFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: PlatformRepositoryEventFilter[]; + /** Filter by the object’s `commitSha` field. */ + commitSha?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `deliveryId` field. */ + deliveryId?: StringFilter; + /** Filter by the object’s `eventType` field. */ + eventType?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Negates the expression. */ + not?: PlatformRepositoryEventFilter; + /** Checks for any expressions in this list. */ + or?: PlatformRepositoryEventFilter[]; + /** Filter by the object’s `payload` field. */ + payload?: JSONFilter; + /** Filter by the object’s `platformBuildsByEventId` relation. */ + platformBuildsByEventId?: PlatformRepositoryEventToManyPlatformBuildFilter; + /** `platformBuildsByEventId` exist. */ + platformBuildsByEventIdExist?: boolean; + /** Filter by the object’s `ref` field. */ + ref?: StringFilter; + /** Filter by the object’s `repository` relation. */ + repository?: PlatformRepositoryFilter; + /** Filter by the object’s `repositoryId` field. */ + repositoryId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface InfraSetManyAndCommitInput { - clientMutationId?: string; - entries?: Record; - message?: string; - refname?: string; - sId?: string; - storeId?: string; +/** A filter to be used against `PlatformRepositoryRequiredCheck` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformRepositoryRequiredCheckFilter { + /** Checks for all expressions in this list. */ + and?: PlatformRepositoryRequiredCheckFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformRepositoryRequiredCheckFilter; + /** Checks for any expressions in this list. */ + or?: PlatformRepositoryRequiredCheckFilter[]; + /** Filter by the object’s `repository` relation. */ + repository?: PlatformRepositoryFilter; + /** Filter by the object’s `repositoryId` field. */ + repositoryId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `workflow` relation. */ + workflow?: PlatformRepositoryWorkflowFilter; + /** Filter by the object’s `workflowId` field. */ + workflowId?: UUIDFilter; } -export interface InitEmptyRepoInput { - clientMutationId?: string; - sId?: string; - storeId?: string; +/** A filter to be used against `PlatformResourceStatusCheck` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformResourceStatusCheckFilter { + /** Checks for all expressions in this list. */ + and?: PlatformResourceStatusCheckFilter[]; + /** Filter by the object’s `completedAt` field. */ + completedAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformResourceStatusCheckFilter; + /** Checks for any expressions in this list. */ + or?: PlatformResourceStatusCheckFilter[]; + /** Filter by the object’s `requestedAt` field. */ + requestedAt?: DatetimeFilter; + /** Filter by the object’s `requestedBy` field. */ + requestedBy?: UUIDFilter; + /** Filter by the object’s `resource` relation. */ + resource?: PlatformResourceFilter; + /** Filter by the object’s `resourceId` field. */ + resourceId?: UUIDFilter; + /** Filter by the object’s `result` field. */ + result?: JSONFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; } -export interface InsertNodeAtPathInput { - clientMutationId?: string; - data?: Record; - kids?: string[]; - ktree?: string[]; - path?: string[]; - root?: string; - sId?: string; +/** A filter to be used against `PlatformRegistry` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformRegistryFilter { + /** Checks for all expressions in this list. */ + and?: PlatformRegistryFilter[]; + /** Filter by the object’s `authMode` field. */ + authMode?: StringFilter; + /** Filter by the object’s `basePath` field. */ + basePath?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `credentialSecretName` field. */ + credentialSecretName?: StringFilter; + /** Filter by the object’s `host` field. */ + host?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `installation` relation. */ + installation?: PlatformResourceInstallationFilter; + /** A related `installation` exists. */ + installationExists?: boolean; + /** Filter by the object’s `installationId` field. */ + installationId?: UUIDFilter; + /** Filter by the object’s `isPublished` field. */ + isPublished?: BooleanFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: PlatformRegistryFilter; + /** Checks for any expressions in this list. */ + or?: PlatformRegistryFilter[]; + /** Filter by the object’s `platformOnly` field. */ + platformOnly?: BooleanFilter; + /** Filter by the object’s `platformRegistryBindingsByRegistryId` relation. */ + platformRegistryBindingsByRegistryId?: PlatformRegistryToManyPlatformRegistryBindingFilter; + /** `platformRegistryBindingsByRegistryId` exist. */ + platformRegistryBindingsByRegistryIdExist?: boolean; + /** Filter by the object’s `platformRegistryGrantsByRegistryId` relation. */ + platformRegistryGrantsByRegistryId?: PlatformRegistryToManyPlatformRegistryGrantFilter; + /** `platformRegistryGrantsByRegistryId` exist. */ + platformRegistryGrantsByRegistryIdExist?: boolean; + /** Filter by the object’s `role` field. */ + role?: StringFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface InsertNodesAtPathsInput { - clientMutationId?: string; - datas?: Record[]; - kidsList?: Record; - ktreeList?: Record; - paths?: Record; - root?: string; - sId?: string; +/** A filter to be used against `PlatformWebhookEvent` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformWebhookEventFilter { + /** Checks for all expressions in this list. */ + and?: PlatformWebhookEventFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `endpoint` relation. */ + endpoint?: PlatformWebhookEndpointFilter; + /** Filter by the object’s `endpointId` field. */ + endpointId?: UUIDFilter; + /** Filter by the object’s `error` field. */ + error?: StringFilter; + /** Filter by the object’s `externalEventId` field. */ + externalEventId?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `invocationCreatedAt` field. */ + invocationCreatedAt?: DatetimeFilter; + /** Filter by the object’s `invocationId` field. */ + invocationId?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformWebhookEventFilter; + /** Checks for any expressions in this list. */ + or?: PlatformWebhookEventFilter[]; + /** Filter by the object’s `payload` field. */ + payload?: JSONFilter; + /** Filter by the object’s `provider` field. */ + provider?: StringFilter; + /** Filter by the object’s `providerTimestamp` field. */ + providerTimestamp?: DatetimeFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; } -export interface PlatformInfraInitEmptyRepoInput { - clientMutationId?: string; - sId?: string; - storeId?: string; +/** A filter to be used against `ProposalReaction` object types. All fields are combined with a logical ‘and.’ */ +export interface ProposalReactionFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: ProposalReactionFilter[]; + /** Filter by the object’s `comment` relation. */ + comment?: ProposalCommentFilter; + /** A related `comment` exists. */ + commentExists?: boolean; + /** Filter by the object’s `commentId` field. */ + commentId?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `emoji` field. */ + emoji?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: ProposalReactionFilter; + /** Checks for any expressions in this list. */ + or?: ProposalReactionFilter[]; + /** Filter by the object’s `proposal` relation. */ + proposal?: ProposalFilter; + /** Filter by the object’s `proposalId` field. */ + proposalId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface PlatformInfraInsertNodeAtPathInput { - clientMutationId?: string; - data?: Record; - kids?: string[]; - ktree?: string[]; - path?: string[]; - root?: string; - sId?: string; +/** A filter to be used against `Build` object types. All fields are combined with a logical ‘and.’ */ +export interface BuildFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: BuildFilter[]; + /** Filter by the object’s `attempt` field. */ + attempt?: IntFilter; + /** Filter by the object’s `commitSha` field. */ + commitSha?: StringFilter; + /** Filter by the object’s `conclusion` field. */ + conclusion?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `event` relation. */ + event?: RepositoryEventFilter; + /** A related `event` exists. */ + eventExists?: boolean; + /** Filter by the object’s `eventId` field. */ + eventId?: UUIDFilter; + /** Filter by the object’s `finishedAt` field. */ + finishedAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `imageRef` field. */ + imageRef?: StringFilter; + /** Filter by the object’s `jobId` field. */ + jobId?: BigIntFilter; + /** Filter by the object’s `logs` field. */ + logs?: ConstructiveInternalTypeUploadFilter; + /** Filter by the object’s `matrixKey` field. */ + matrixKey?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Negates the expression. */ + not?: BuildFilter; + /** Checks for any expressions in this list. */ + or?: BuildFilter[]; + /** Filter by the object’s `proposal` relation. */ + proposal?: ProposalFilter; + /** A related `proposal` exists. */ + proposalExists?: boolean; + /** Filter by the object’s `proposalId` field. */ + proposalId?: UUIDFilter; + /** Filter by the object’s `ref` field. */ + ref?: StringFilter; + /** Filter by the object’s `repository` relation. */ + repository?: RepositoryFilter; + /** Filter by the object’s `repositoryId` field. */ + repositoryId?: UUIDFilter; + /** Filter by the object’s `startedAt` field. */ + startedAt?: DatetimeFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** Filter by the object’s `workflow` relation. */ + workflow?: RepositoryWorkflowFilter; + /** A related `workflow` exists. */ + workflowExists?: boolean; + /** Filter by the object’s `workflowId` field. */ + workflowId?: UUIDFilter; +} +/** A filter to be used against `Proposal` object types. All fields are combined with a logical ‘and.’ */ +export interface ProposalFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: ProposalFilter[]; + /** Filter by the object’s `body` field. */ + body?: StringTrgmFilter; + /** Filter by the object’s `builds` relation. */ + builds?: ProposalToManyBuildFilter; + /** `builds` exist. */ + buildsExist?: boolean; + /** Filter by the object’s `childProposals` relation. */ + childProposals?: ProposalToManyProposalFilter; + /** `childProposals` exist. */ + childProposalsExist?: boolean; + /** Filter by the object’s `closedReason` field. */ + closedReason?: StringTrgmFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `decidedAt` field. */ + decidedAt?: DatetimeFilter; + /** Filter by the object’s `dueAt` field. */ + dueAt?: DatetimeFilter; + /** Filter by the object’s `embedding` field. */ + embedding?: VectorFilter; + /** Filter by the object’s `embeddingUpdatedAt` field. */ + embeddingUpdatedAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringTrgmFilter; + /** Filter by the object’s `labels` field. */ + labels?: StringListFilter; + /** Filter by the object’s `mergeCommit` field. */ + mergeCommit?: StringTrgmFilter; + /** Filter by the object’s `mergeMethod` field. */ + mergeMethod?: StringTrgmFilter; + /** Filter by the object’s `mergeRequestedAt` field. */ + mergeRequestedAt?: DatetimeFilter; + /** Filter by the object’s `mergedAt` field. */ + mergedAt?: DatetimeFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Negates the expression. */ + not?: ProposalFilter; + /** Checks for any expressions in this list. */ + or?: ProposalFilter[]; + /** Filter by the object’s `parent` relation. */ + parent?: ProposalFilter; + /** A related `parent` exists. */ + parentExists?: boolean; + /** Filter by the object’s `parentId` field. */ + parentId?: UUIDFilter; + /** Filter by the object’s `priority` field. */ + priority?: BigFloatFilter; + /** Filter by the object’s `proposalComments` relation. */ + proposalComments?: ProposalToManyProposalCommentFilter; + /** `proposalComments` exist. */ + proposalCommentsExist?: boolean; + /** Filter by the object’s `proposalFileViews` relation. */ + proposalFileViews?: ProposalToManyProposalFileViewFilter; + /** `proposalFileViews` exist. */ + proposalFileViewsExist?: boolean; + /** Filter by the object’s `proposalReactions` relation. */ + proposalReactions?: ProposalToManyProposalReactionFilter; + /** `proposalReactions` exist. */ + proposalReactionsExist?: boolean; + /** Filter by the object’s `proposalReviews` relation. */ + proposalReviews?: ProposalToManyProposalReviewFilter; + /** `proposalReviews` exist. */ + proposalReviewsExist?: boolean; + /** Filter by the object’s `proposalsChunksByProposalsId` relation. */ + proposalsChunksByProposalsId?: ProposalToManyProposalsChunkFilter; + /** `proposalsChunksByProposalsId` exist. */ + proposalsChunksByProposalsIdExist?: boolean; + /** Filter by the object’s `repository` relation. */ + repository?: RepositoryFilter; + /** Filter by the object’s `repositoryId` field. */ + repositoryId?: UUIDFilter; + /** Filter by the object’s `resolution` field. */ + resolution?: StringTrgmFilter; + /** Filter by the object’s `search` field. */ + search?: FullTextFilter; + /** Filter by the object’s `sourceRef` field. */ + sourceRef?: StringTrgmFilter; + /** Filter by the object’s `status` field. */ + status?: StringTrgmFilter; + /** Filter by the object’s `targetRef` field. */ + targetRef?: StringTrgmFilter; + /** Filter by the object’s `title` field. */ + title?: StringTrgmFilter; + /** TRGM search on the `body` column. */ + trgmBody?: TrgmSearchInput; + /** TRGM search on the `closed_reason` column. */ + trgmClosedReason?: TrgmSearchInput; + /** TRGM search on the `kind` column. */ + trgmKind?: TrgmSearchInput; + /** TRGM search on the `merge_commit` column. */ + trgmMergeCommit?: TrgmSearchInput; + /** TRGM search on the `merge_method` column. */ + trgmMergeMethod?: TrgmSearchInput; + /** TRGM search on the `resolution` column. */ + trgmResolution?: TrgmSearchInput; + /** TRGM search on the `source_ref` column. */ + trgmSourceRef?: TrgmSearchInput; + /** TRGM search on the `status` column. */ + trgmStatus?: TrgmSearchInput; + /** TRGM search on the `target_ref` column. */ + trgmTargetRef?: TrgmSearchInput; + /** TRGM search on the `title` column. */ + trgmTitle?: TrgmSearchInput; + /** TSV search on the `search` column. */ + tsvSearch?: string; + /** + * Composite unified search. Provide a search string and it will be dispatched to + * all text-compatible search algorithms (tsvector, BM25, pg_trgm) + * simultaneously. When the LLM plugin is active, pgvector also participates via + * auto-embedding. Rows matching ANY algorithm are returned. All matching score + * fields are populated. + */ + unifiedSearch?: string; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** VECTOR search on the `embedding` column. */ + vectorEmbedding?: VectorNearbyInput; } -export interface PlatformInfraInsertNodesAtPathsInput { - clientMutationId?: string; - datas?: Record[]; - kidsList?: Record; - ktreeList?: Record; - paths?: Record; - root?: string; - sId?: string; +/** A filter to be used against `ProposalComment` object types. All fields are combined with a logical ‘and.’ */ +export interface ProposalCommentFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: ProposalCommentFilter[]; + /** Filter by the object’s `attachments` field. */ + attachments?: ConstructiveInternalTypeUploadListFilter; + /** Filter by the object’s `body` field. */ + body?: StringTrgmFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `embedding` field. */ + embedding?: VectorFilter; + /** Filter by the object’s `embeddingUpdatedAt` field. */ + embeddingUpdatedAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `line` field. */ + line?: IntFilter; + /** Negates the expression. */ + not?: ProposalCommentFilter; + /** Checks for any expressions in this list. */ + or?: ProposalCommentFilter[]; + /** Filter by the object’s `outdatedAt` field. */ + outdatedAt?: DatetimeFilter; + /** Filter by the object’s `path` field. */ + path?: StringTrgmFilter; + /** Filter by the object’s `proposal` relation. */ + proposal?: ProposalFilter; + /** Filter by the object’s `proposalId` field. */ + proposalId?: UUIDFilter; + /** Filter by the object’s `proposalReactionsByCommentId` relation. */ + proposalReactionsByCommentId?: ProposalCommentToManyProposalReactionFilter; + /** `proposalReactionsByCommentId` exist. */ + proposalReactionsByCommentIdExist?: boolean; + /** Filter by the object’s `resolvedAt` field. */ + resolvedAt?: DatetimeFilter; + /** Filter by the object’s `search` field. */ + search?: FullTextFilter; + /** TRGM search on the `body` column. */ + trgmBody?: TrgmSearchInput; + /** TRGM search on the `path` column. */ + trgmPath?: TrgmSearchInput; + /** TSV search on the `search` column. */ + tsvSearch?: string; + /** + * Composite unified search. Provide a search string and it will be dispatched to + * all text-compatible search algorithms (tsvector, BM25, pg_trgm) + * simultaneously. When the LLM plugin is active, pgvector also participates via + * auto-embedding. Rows matching ANY algorithm are returned. All matching score + * fields are populated. + */ + unifiedSearch?: string; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** VECTOR search on the `embedding` column. */ + vectorEmbedding?: VectorNearbyInput; } -export interface PlatformInfraSetAndCommitInput { - clientMutationId?: string; - data?: Record; - kids?: string[]; - ktree?: string[]; - message?: string; - path?: string[]; - refname?: string; - sId?: string; - storeId?: string; +/** A filter to be used against `ProposalFileView` object types. All fields are combined with a logical ‘and.’ */ +export interface ProposalFileViewFilter { + /** Checks for all expressions in this list. */ + and?: ProposalFileViewFilter[]; + /** Filter by the object’s `blobSha` field. */ + blobSha?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: ProposalFileViewFilter; + /** Checks for any expressions in this list. */ + or?: ProposalFileViewFilter[]; + /** Filter by the object’s `path` field. */ + path?: StringFilter; + /** Filter by the object’s `proposal` relation. */ + proposal?: ProposalFilter; + /** Filter by the object’s `proposalId` field. */ + proposalId?: UUIDFilter; + /** Filter by the object’s `reviewerId` field. */ + reviewerId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** Filter by the object’s `viewedAt` field. */ + viewedAt?: DatetimeFilter; } -export interface PlatformInfraSetDataAtPathInput { - clientMutationId?: string; - data?: Record; - path?: string[]; - root?: string; - sId?: string; +/** A filter to be used against `ProposalReview` object types. All fields are combined with a logical ‘and.’ */ +export interface ProposalReviewFilter { + /** Checks for all expressions in this list. */ + and?: ProposalReviewFilter[]; + /** Filter by the object’s `body` field. */ + body?: StringTrgmFilter; + /** Filter by the object’s `commitSha` field. */ + commitSha?: StringTrgmFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: ProposalReviewFilter; + /** Checks for any expressions in this list. */ + or?: ProposalReviewFilter[]; + /** Filter by the object’s `proposal` relation. */ + proposal?: ProposalFilter; + /** Filter by the object’s `proposalId` field. */ + proposalId?: UUIDFilter; + /** Filter by the object’s `reviewerId` field. */ + reviewerId?: UUIDFilter; + /** Filter by the object’s `search` field. */ + search?: FullTextFilter; + /** Filter by the object’s `submittedAt` field. */ + submittedAt?: DatetimeFilter; + /** TRGM search on the `body` column. */ + trgmBody?: TrgmSearchInput; + /** TRGM search on the `commit_sha` column. */ + trgmCommitSha?: TrgmSearchInput; + /** TRGM search on the `verdict` column. */ + trgmVerdict?: TrgmSearchInput; + /** TSV search on the `search` column. */ + tsvSearch?: string; + /** + * Composite unified search. Provide a search string and it will be dispatched to + * all text-compatible search algorithms (tsvector, BM25, pg_trgm) + * simultaneously. When the LLM plugin is active, pgvector also participates via + * auto-embedding. Rows matching ANY algorithm are returned. All matching score + * fields are populated. + */ + unifiedSearch?: string; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** Filter by the object’s `verdict` field. */ + verdict?: StringTrgmFilter; } -export interface PlatformInfraSetManyAndCommitInput { - clientMutationId?: string; - entries?: Record; - message?: string; - refname?: string; - sId?: string; - storeId?: string; +/** A filter to be used against `ProposalsChunk` object types. All fields are combined with a logical ‘and.’ */ +export interface ProposalsChunkFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: ProposalsChunkFilter[]; + /** Filter by the object’s `body` field. */ + body?: StringFilter; + /** Filter by the object’s `chunkIndex` field. */ + chunkIndex?: IntFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `embedding` field. */ + embedding?: VectorFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Negates the expression. */ + not?: ProposalsChunkFilter; + /** Checks for any expressions in this list. */ + or?: ProposalsChunkFilter[]; + /** Filter by the object’s `proposals` relation. */ + proposals?: ProposalFilter; + /** Filter by the object’s `proposalsId` field. */ + proposalsId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** VECTOR search on the `embedding` column. */ + vectorEmbedding?: VectorNearbyInput; } -export interface PlatformResourceInstallationsInstallInput { - clientMutationId?: string; - definitionIds?: string[]; - name?: string; - namespaceId?: string; - newParams?: Record; - slug?: string; +/** A filter to be used against `RegistryGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface RegistryGrantFilter { + /** Filter by the object’s `actions` field. */ + actions?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: RegistryGrantFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; + /** Filter by the object’s `grantedBy` field. */ + grantedBy?: UUIDFilter; + /** Filter by the object’s `granteeKey` field. */ + granteeKey?: UUIDFilter; + /** Filter by the object’s `granteeScope` field. */ + granteeScope?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: RegistryGrantFilter; + /** Checks for any expressions in this list. */ + or?: RegistryGrantFilter[]; + /** Filter by the object’s `registry` relation. */ + registry?: RegistryFilter; + /** Filter by the object’s `registryId` field. */ + registryId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface PlatformResourceInstallationsRollbackInput { - clientMutationId?: string; - commitId?: string; - targetInstallationId?: string; +/** A filter to be used against `RepositoryEvent` object types. All fields are combined with a logical ‘and.’ */ +export interface RepositoryEventFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: RepositoryEventFilter[]; + /** Filter by the object’s `buildsByEventId` relation. */ + buildsByEventId?: RepositoryEventToManyBuildFilter; + /** `buildsByEventId` exist. */ + buildsByEventIdExist?: boolean; + /** Filter by the object’s `commitSha` field. */ + commitSha?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `deliveryId` field. */ + deliveryId?: StringFilter; + /** Filter by the object’s `eventType` field. */ + eventType?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Negates the expression. */ + not?: RepositoryEventFilter; + /** Checks for any expressions in this list. */ + or?: RepositoryEventFilter[]; + /** Filter by the object’s `payload` field. */ + payload?: JSONFilter; + /** Filter by the object’s `ref` field. */ + ref?: StringFilter; + /** Filter by the object’s `repository` relation. */ + repository?: RepositoryFilter; + /** Filter by the object’s `repositoryId` field. */ + repositoryId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface PlatformResourceInstallationsUninstallInput { - clientMutationId?: string; - targetInstallationId?: string; +/** A filter to be used against `RepositoryRequiredCheck` object types. All fields are combined with a logical ‘and.’ */ +export interface RepositoryRequiredCheckFilter { + /** Checks for all expressions in this list. */ + and?: RepositoryRequiredCheckFilter[]; + /** 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?: RepositoryRequiredCheckFilter; + /** Checks for any expressions in this list. */ + or?: RepositoryRequiredCheckFilter[]; + /** Filter by the object’s `repository` relation. */ + repository?: RepositoryFilter; + /** Filter by the object’s `repositoryId` field. */ + repositoryId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `workflow` relation. */ + workflow?: RepositoryWorkflowFilter; + /** Filter by the object’s `workflowId` field. */ + workflowId?: UUIDFilter; } -export interface PlatformResourceInstallationsUpgradeInput { - clientMutationId?: string; - newParams?: Record; - targetInstallationId?: string; +/** A filter to be used against `ResourceStatusCheck` object types. All fields are combined with a logical ‘and.’ */ +export interface ResourceStatusCheckFilter { + /** Checks for all expressions in this list. */ + and?: ResourceStatusCheckFilter[]; + /** Filter by the object’s `completedAt` field. */ + completedAt?: DatetimeFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: ResourceStatusCheckFilter; + /** Checks for any expressions in this list. */ + or?: ResourceStatusCheckFilter[]; + /** Filter by the object’s `requestedAt` field. */ + requestedAt?: DatetimeFilter; + /** Filter by the object’s `requestedBy` field. */ + requestedBy?: UUIDFilter; + /** Filter by the object’s `resource` relation. */ + resource?: ResourceFilter; + /** Filter by the object’s `resourceId` field. */ + resourceId?: UUIDFilter; + /** Filter by the object’s `result` field. */ + result?: JSONFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; } -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 `Registry` object types. All fields are combined with a logical ‘and.’ */ +export interface RegistryFilter { + /** Checks for all expressions in this list. */ + and?: RegistryFilter[]; + /** Filter by the object’s `authMode` field. */ + authMode?: StringFilter; + /** Filter by the object’s `basePath` field. */ + basePath?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `credentialSecretName` field. */ + credentialSecretName?: StringFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `host` field. */ + host?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `installation` relation. */ + installation?: ResourceInstallationFilter; + /** A related `installation` exists. */ + installationExists?: boolean; + /** Filter by the object’s `installationId` field. */ + installationId?: UUIDFilter; + /** Filter by the object’s `isPublished` field. */ + isPublished?: BooleanFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: RegistryFilter; + /** Checks for any expressions in this list. */ + or?: RegistryFilter[]; + /** Filter by the object’s `platformOnly` field. */ + platformOnly?: BooleanFilter; + /** Filter by the object’s `registryBindings` relation. */ + registryBindings?: RegistryToManyRegistryBindingFilter; + /** `registryBindings` exist. */ + registryBindingsExist?: boolean; + /** Filter by the object’s `registryGrants` relation. */ + registryGrants?: RegistryToManyRegistryGrantFilter; + /** `registryGrants` exist. */ + registryGrantsExist?: boolean; + /** Filter by the object’s `role` field. */ + role?: StringFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface ResourceInstallationsInstallInput { - clientMutationId?: string; - definitionIds?: string[]; - name?: string; - namespaceId?: string; - newParams?: Record; - slug?: string; +/** A filter to be used against `WebhookEvent` object types. All fields are combined with a logical ‘and.’ */ +export interface WebhookEventFilter { + /** Checks for all expressions in this list. */ + and?: WebhookEventFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `endpoint` relation. */ + endpoint?: WebhookEndpointFilter; + /** Filter by the object’s `endpointId` field. */ + endpointId?: UUIDFilter; + /** Filter by the object’s `error` field. */ + error?: StringFilter; + /** Filter by the object’s `externalEventId` field. */ + externalEventId?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `invocationCreatedAt` field. */ + invocationCreatedAt?: DatetimeFilter; + /** Filter by the object’s `invocationId` field. */ + invocationId?: UUIDFilter; + /** Negates the expression. */ + not?: WebhookEventFilter; + /** Checks for any expressions in this list. */ + or?: WebhookEventFilter[]; + /** Filter by the object’s `payload` field. */ + payload?: JSONFilter; + /** Filter by the object’s `provider` field. */ + provider?: StringFilter; + /** Filter by the object’s `providerTimestamp` field. */ + providerTimestamp?: DatetimeFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; } -export interface ResourceInstallationsRollbackInput { - clientMutationId?: string; - commitId?: string; - targetInstallationId?: 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[]; } -export interface ResourceInstallationsUninstallInput { - clientMutationId?: string; - targetInstallationId?: string; +/** 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[]; } -export interface ResourceInstallationsUpgradeInput { - clientMutationId?: string; - newParams?: Record; - targetInstallationId?: string; +/** 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[]; } -export interface SaveGraphInput { - clientMutationId?: string; - graphId?: string; - message?: string; - rootHash?: 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; } -export interface SetAndCommitInput { - clientMutationId?: string; - data?: Record; - kids?: string[]; - ktree?: string[]; - message?: string; - path?: string[]; - refname?: string; - sId?: string; - storeId?: string; +/** A filter to be used against JSON fields. All fields are combined with a logical ‘and.’ */ +export interface JSONFilter { + /** Contained by the specified JSON. */ + containedBy?: Record; + /** Contains the specified JSON. */ + contains?: Record; + /** Contains all of the specified keys. */ + containsAllKeys?: string[]; + /** Contains any of the specified keys. */ + containsAnyKeys?: string[]; + /** Contains the specified key. */ + containsKey?: string; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: Record; + /** Equal to the specified value. */ + equalTo?: Record; + /** Greater than the specified value. */ + greaterThan?: Record; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: Record; + /** Included in the specified list. */ + in?: Record[]; + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Less than the specified value. */ + lessThan?: Record; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: Record; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: Record; + /** Not equal to the specified value. */ + notEqualTo?: Record; + /** Not included in the specified list. */ + notIn?: Record[]; } -export interface SetDataAtPathInput { - clientMutationId?: string; - data?: Record; - path?: string[]; - root?: string; - sId?: string; +/** A filter to be used against `DatabaseFunctionGraph` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseFunctionGraphFilter { + /** Checks for all expressions in this list. */ + and?: DatabaseFunctionGraphFilter[]; + /** Filter by the object’s `context` field. */ + context?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `databaseFunctionGraphExecutionsByGraphId` relation. */ + databaseFunctionGraphExecutionsByGraphId?: DatabaseFunctionGraphToManyDatabaseFunctionGraphExecutionFilter; + /** `databaseFunctionGraphExecutionsByGraphId` exist. */ + databaseFunctionGraphExecutionsByGraphIdExist?: boolean; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `definitionsCommitId` field. */ + definitionsCommitId?: UUIDFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `functionDefinitionsByGraphId` relation. */ + functionDefinitionsByGraphId?: DatabaseFunctionGraphToManyFunctionDefinitionFilter; + /** `functionDefinitionsByGraphId` exist. */ + functionDefinitionsByGraphIdExist?: boolean; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isValid` field. */ + isValid?: BooleanFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: DatabaseFunctionGraphFilter; + /** Checks for any expressions in this list. */ + or?: DatabaseFunctionGraphFilter[]; + /** Filter by the object’s `repositoryWorkflowsByGraphId` relation. */ + repositoryWorkflowsByGraphId?: DatabaseFunctionGraphToManyRepositoryWorkflowFilter; + /** `repositoryWorkflowsByGraphId` exist. */ + repositoryWorkflowsByGraphIdExist?: boolean; + /** Filter by the object’s `storeId` field. */ + storeId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `validationErrors` field. */ + validationErrors?: JSONFilter; } -export interface SetManyAndCommitInput { - clientMutationId?: string; - entries?: Record; - message?: string; - refname?: string; - sId?: string; - storeId?: string; +/** A filter to be used against String List fields. All fields are combined with a logical ‘and.’ */ +export interface StringListFilter { + /** Any array item is equal to the specified value. */ + anyEqualTo?: string; + /** Any array item is greater than the specified value. */ + anyGreaterThan?: string; + /** Any array item is greater than or equal to the specified value. */ + anyGreaterThanOrEqualTo?: string; + /** Any array item is less than the specified value. */ + anyLessThan?: string; + /** Any array item is less than or equal to the specified value. */ + anyLessThanOrEqualTo?: string; + /** Any array item is not equal to the specified value. */ + anyNotEqualTo?: string; + /** Contained by the specified list of values. */ + containedBy?: string[]; + /** Contains the specified list of values. */ + contains?: string[]; + /** 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[]; + /** 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[]; + /** Overlaps the specified list of values. */ + overlaps?: string[]; } -export interface StartExecutionInput { - clientMutationId?: string; - graphId?: string; - inputPayload?: Record; - maxPendingJobs?: number; - maxTicks?: number; - outputNames?: string[]; - outputNode?: string; - outputPort?: string; - parentExecutionId?: string; - parentNodeName?: string; - timeoutInterval?: IntervalInput; +/** 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[]; } -export interface ValidateFunctionGraphInput { - clientMutationId?: string; - graphId?: string; +/** 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. */ + 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 many `FunctionInvocation` object types. All fields are combined with a logical ‘and.’ */ -export interface FunctionApiBindingToManyFunctionInvocationFilter { - /** Filters to entities where every related entity matches. */ - every?: FunctionInvocationFilter; - /** Filters to entities where no related entity matches. */ - none?: FunctionInvocationFilter; - /** Filters to entities where at least one related entity matches. */ - some?: FunctionInvocationFilter; +/** A filter to be used against `Repository` object types. All fields are combined with a logical ‘and.’ */ +export interface RepositoryFilter { + /** Checks for all expressions in this list. */ + and?: RepositoryFilter[]; + /** Filter by the object’s `builds` relation. */ + builds?: RepositoryToManyBuildFilter; + /** `builds` exist. */ + buildsExist?: boolean; + /** Filter by the object’s `cloneUrl` field. */ + cloneUrl?: StringTrgmFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `defaultBranch` field. */ + defaultBranch?: StringTrgmFilter; + /** Filter by the object’s `description` field. */ + description?: StringTrgmFilter; + /** Filter by the object’s `embedding` field. */ + embedding?: VectorFilter; + /** Filter by the object’s `embeddingUpdatedAt` field. */ + embeddingUpdatedAt?: DatetimeFilter; + /** Filter by the object’s `externalId` field. */ + externalId?: StringTrgmFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isArchived` field. */ + isArchived?: BooleanFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `name` field. */ + name?: StringTrgmFilter; + /** Negates the expression. */ + not?: RepositoryFilter; + /** Checks for any expressions in this list. */ + or?: RepositoryFilter[]; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `proposals` relation. */ + proposals?: RepositoryToManyProposalFilter; + /** `proposals` exist. */ + proposalsExist?: boolean; + /** Filter by the object’s `provider` field. */ + provider?: StringTrgmFilter; + /** Filter by the object’s `repositoryEvents` relation. */ + repositoryEvents?: RepositoryToManyRepositoryEventFilter; + /** `repositoryEvents` exist. */ + repositoryEventsExist?: boolean; + /** Filter by the object’s `repositoryRequiredChecks` relation. */ + repositoryRequiredChecks?: RepositoryToManyRepositoryRequiredCheckFilter; + /** `repositoryRequiredChecks` exist. */ + repositoryRequiredChecksExist?: boolean; + /** Filter by the object’s `repositoryWorkflows` relation. */ + repositoryWorkflows?: RepositoryToManyRepositoryWorkflowFilter; + /** `repositoryWorkflows` exist. */ + repositoryWorkflowsExist?: boolean; + /** Filter by the object’s `search` field. */ + search?: FullTextFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringTrgmFilter; + /** TRGM search on the `clone_url` column. */ + trgmCloneUrl?: TrgmSearchInput; + /** TRGM search on the `default_branch` column. */ + trgmDefaultBranch?: TrgmSearchInput; + /** TRGM search on the `description` column. */ + trgmDescription?: TrgmSearchInput; + /** TRGM search on the `external_id` column. */ + trgmExternalId?: TrgmSearchInput; + /** TRGM search on the `name` column. */ + trgmName?: TrgmSearchInput; + /** TRGM search on the `provider` column. */ + trgmProvider?: TrgmSearchInput; + /** TRGM search on the `slug` column. */ + trgmSlug?: TrgmSearchInput; + /** TRGM search on the `visibility` column. */ + trgmVisibility?: TrgmSearchInput; + /** TSV search on the `search` column. */ + tsvSearch?: string; + /** + * Composite unified search. Provide a search string and it will be dispatched to + * all text-compatible search algorithms (tsvector, BM25, pg_trgm) + * simultaneously. When the LLM plugin is active, pgvector also participates via + * auto-embedding. Rows matching ANY algorithm are returned. All matching score + * fields are populated. + */ + unifiedSearch?: string; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** VECTOR search on the `embedding` column. */ + vectorEmbedding?: VectorNearbyInput; + /** Filter by the object’s `visibility` field. */ + visibility?: StringTrgmFilter; } -/** A filter to be used against many `FunctionApiBinding` object types. All fields are combined with a logical ‘and.’ */ -export interface FunctionDefinitionToManyFunctionApiBindingFilter { - /** Filters to entities where every related entity matches. */ - every?: FunctionApiBindingFilter; - /** Filters to entities where no related entity matches. */ - none?: FunctionApiBindingFilter; - /** Filters to entities where at least one related entity matches. */ - some?: FunctionApiBindingFilter; +/** A filter to be used against `Namespace` object types. All fields are combined with a logical ‘and.’ */ +export interface NamespaceFilter { + /** Checks for all expressions in this list. */ + and?: NamespaceFilter[]; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Filter by the object’s `builderBindings` relation. */ + builderBindings?: NamespaceToManyBuilderBindingFilter; + /** `builderBindings` exist. */ + builderBindingsExist?: boolean; + /** Filter by the object’s `clusterId` field. */ + clusterId?: 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 `functionDeployments` relation. */ + functionDeployments?: NamespaceToManyFunctionDeploymentFilter; + /** `functionDeployments` exist. */ + functionDeploymentsExist?: boolean; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; + /** Filter by the object’s `isManaged` field. */ + isManaged?: BooleanFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `namespaceName` field. */ + namespaceName?: StringFilter; + /** Negates the expression. */ + not?: NamespaceFilter; + /** Checks for any expressions in this list. */ + or?: NamespaceFilter[]; + /** Filter by the object’s `registryBindings` relation. */ + registryBindings?: NamespaceToManyRegistryBindingFilter; + /** `registryBindings` exist. */ + registryBindingsExist?: boolean; + /** Filter by the object’s `resourceDefinitions` relation. */ + resourceDefinitions?: NamespaceToManyResourceDefinitionFilter; + /** `resourceDefinitions` exist. */ + resourceDefinitionsExist?: boolean; + /** Filter by the object’s `resourceInstallations` relation. */ + resourceInstallations?: NamespaceToManyResourceInstallationFilter; + /** `resourceInstallations` exist. */ + resourceInstallationsExist?: boolean; + /** Filter by the object’s `resources` relation. */ + resources?: NamespaceToManyResourceFilter; + /** `resources` exist. */ + resourcesExist?: boolean; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `webhookEndpoints` relation. */ + webhookEndpoints?: NamespaceToManyWebhookEndpointFilter; + /** `webhookEndpoints` exist. */ + webhookEndpointsExist?: boolean; } -/** A filter to be used against many `FunctionCapabilityBinding` object types. All fields are combined with a logical ‘and.’ */ -export interface FunctionDefinitionToManyFunctionCapabilityBindingFilter { - /** Filters to entities where every related entity matches. */ - every?: FunctionCapabilityBindingFilter; - /** Filters to entities where no related entity matches. */ - none?: FunctionCapabilityBindingFilter; - /** Filters to entities where at least one related entity matches. */ - some?: FunctionCapabilityBindingFilter; +/** A filter to be used against `FunctionGraph` object types. All fields are combined with a logical ‘and.’ */ +export interface FunctionGraphFilter { + /** Checks for all expressions in this list. */ + and?: FunctionGraphFilter[]; + /** Filter by the object’s `context` field. */ + context?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `definitionsCommitId` field. */ + definitionsCommitId?: UUIDFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `functionGraphExecutionsByGraphId` relation. */ + functionGraphExecutionsByGraphId?: FunctionGraphToManyFunctionGraphExecutionFilter; + /** `functionGraphExecutionsByGraphId` exist. */ + functionGraphExecutionsByGraphIdExist?: boolean; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isValid` field. */ + isValid?: BooleanFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: FunctionGraphFilter; + /** Checks for any expressions in this list. */ + or?: FunctionGraphFilter[]; + /** Filter by the object’s `platformFunctionDefinitionsByGraphId` relation. */ + platformFunctionDefinitionsByGraphId?: FunctionGraphToManyPlatformFunctionDefinitionFilter; + /** `platformFunctionDefinitionsByGraphId` exist. */ + platformFunctionDefinitionsByGraphIdExist?: boolean; + /** Filter by the object’s `platformRepositoryWorkflowsByGraphId` relation. */ + platformRepositoryWorkflowsByGraphId?: FunctionGraphToManyPlatformRepositoryWorkflowFilter; + /** `platformRepositoryWorkflowsByGraphId` exist. */ + platformRepositoryWorkflowsByGraphIdExist?: boolean; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; + /** Filter by the object’s `storeId` field. */ + storeId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `validationErrors` field. */ + validationErrors?: JSONFilter; } -/** A filter to be used against many `WebhookEndpoint` object types. All fields are combined with a logical ‘and.’ */ -export interface FunctionDefinitionToManyWebhookEndpointFilter { - /** Filters to entities where every related entity matches. */ - every?: WebhookEndpointFilter; - /** Filters to entities where no related entity matches. */ - none?: WebhookEndpointFilter; - /** Filters to entities where at least one related entity matches. */ - some?: WebhookEndpointFilter; +/** A filter to be used against `PlatformRepository` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformRepositoryFilter { + /** Checks for all expressions in this list. */ + and?: PlatformRepositoryFilter[]; + /** Filter by the object’s `cloneUrl` field. */ + cloneUrl?: StringTrgmFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `defaultBranch` field. */ + defaultBranch?: StringTrgmFilter; + /** Filter by the object’s `description` field. */ + description?: StringTrgmFilter; + /** Filter by the object’s `embedding` field. */ + embedding?: VectorFilter; + /** Filter by the object’s `embeddingUpdatedAt` field. */ + embeddingUpdatedAt?: DatetimeFilter; + /** Filter by the object’s `externalId` field. */ + externalId?: StringTrgmFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isArchived` field. */ + isArchived?: BooleanFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `name` field. */ + name?: StringTrgmFilter; + /** Negates the expression. */ + not?: PlatformRepositoryFilter; + /** Checks for any expressions in this list. */ + or?: PlatformRepositoryFilter[]; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `platformBuildsByRepositoryId` relation. */ + platformBuildsByRepositoryId?: PlatformRepositoryToManyPlatformBuildFilter; + /** `platformBuildsByRepositoryId` exist. */ + platformBuildsByRepositoryIdExist?: boolean; + /** Filter by the object’s `platformProposalsByRepositoryId` relation. */ + platformProposalsByRepositoryId?: PlatformRepositoryToManyPlatformProposalFilter; + /** `platformProposalsByRepositoryId` exist. */ + platformProposalsByRepositoryIdExist?: boolean; + /** Filter by the object’s `platformRepositoryEventsByRepositoryId` relation. */ + platformRepositoryEventsByRepositoryId?: PlatformRepositoryToManyPlatformRepositoryEventFilter; + /** `platformRepositoryEventsByRepositoryId` exist. */ + platformRepositoryEventsByRepositoryIdExist?: boolean; + /** Filter by the object’s `platformRepositoryRequiredChecksByRepositoryId` relation. */ + platformRepositoryRequiredChecksByRepositoryId?: PlatformRepositoryToManyPlatformRepositoryRequiredCheckFilter; + /** `platformRepositoryRequiredChecksByRepositoryId` exist. */ + platformRepositoryRequiredChecksByRepositoryIdExist?: boolean; + /** Filter by the object’s `platformRepositoryWorkflowsByRepositoryId` relation. */ + platformRepositoryWorkflowsByRepositoryId?: PlatformRepositoryToManyPlatformRepositoryWorkflowFilter; + /** `platformRepositoryWorkflowsByRepositoryId` exist. */ + platformRepositoryWorkflowsByRepositoryIdExist?: boolean; + /** Filter by the object’s `provider` field. */ + provider?: StringTrgmFilter; + /** Filter by the object’s `search` field. */ + search?: FullTextFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringTrgmFilter; + /** TRGM search on the `clone_url` column. */ + trgmCloneUrl?: TrgmSearchInput; + /** TRGM search on the `default_branch` column. */ + trgmDefaultBranch?: TrgmSearchInput; + /** TRGM search on the `description` column. */ + trgmDescription?: TrgmSearchInput; + /** TRGM search on the `external_id` column. */ + trgmExternalId?: TrgmSearchInput; + /** TRGM search on the `name` column. */ + trgmName?: TrgmSearchInput; + /** TRGM search on the `provider` column. */ + trgmProvider?: TrgmSearchInput; + /** TRGM search on the `slug` column. */ + trgmSlug?: TrgmSearchInput; + /** TRGM search on the `visibility` column. */ + trgmVisibility?: TrgmSearchInput; + /** TSV search on the `search` column. */ + tsvSearch?: string; + /** + * Composite unified search. Provide a search string and it will be dispatched to + * all text-compatible search algorithms (tsvector, BM25, pg_trgm) + * simultaneously. When the LLM plugin is active, pgvector also participates via + * auto-embedding. Rows matching ANY algorithm are returned. All matching score + * fields are populated. + */ + unifiedSearch?: string; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** VECTOR search on the `embedding` column. */ + vectorEmbedding?: VectorNearbyInput; + /** Filter by the object’s `visibility` field. */ + visibility?: StringTrgmFilter; +} +/** A filter to be used against `Image` object types. All fields are combined with a logical ‘and.’ */ +export interface ImageFilter { + /** Checks for all expressions in this list. */ + and?: ImageFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `digest` field. */ + digest?: StringFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `imageGrants` relation. */ + imageGrants?: ImageToManyImageGrantFilter; + /** `imageGrants` exist. */ + imageGrantsExist?: boolean; + /** Filter by the object’s `isPublished` field. */ + isPublished?: BooleanFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: ImageFilter; + /** Checks for any expressions in this list. */ + or?: ImageFilter[]; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `platformOnly` field. */ + platformOnly?: BooleanFilter; + /** Filter by the object’s `registryHost` field. */ + registryHost?: StringFilter; + /** Filter by the object’s `repository` field. */ + repository?: StringFilter; + /** Filter by the object’s `runtime` field. */ + runtime?: StringFilter; + /** Filter by the object’s `tag` field. */ + tag?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -/** A filter to be used against many `FunctionGraphExecution` object types. All fields are combined with a logical ‘and.’ */ -export interface FunctionGraphToManyFunctionGraphExecutionFilter { - /** Filters to entities where every related entity matches. */ - every?: FunctionGraphExecutionFilter; - /** Filters to entities where no related entity matches. */ - none?: FunctionGraphExecutionFilter; - /** Filters to entities where at least one related entity matches. */ - some?: FunctionGraphExecutionFilter; +/** A filter to be used against `PlatformNamespace` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformNamespaceFilter { + /** Checks for all expressions in this list. */ + and?: PlatformNamespaceFilter[]; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Filter by the object’s `clusterId` field. */ + clusterId?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; + /** Filter by the object’s `isManaged` field. */ + isManaged?: BooleanFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `namespaceName` field. */ + namespaceName?: StringFilter; + /** Negates the expression. */ + not?: PlatformNamespaceFilter; + /** Checks for any expressions in this list. */ + or?: PlatformNamespaceFilter[]; + /** Filter by the object’s `platformBuilderBindingsByNamespaceId` relation. */ + platformBuilderBindingsByNamespaceId?: PlatformNamespaceToManyPlatformBuilderBindingFilter; + /** `platformBuilderBindingsByNamespaceId` exist. */ + platformBuilderBindingsByNamespaceIdExist?: boolean; + /** Filter by the object’s `platformFunctionDeploymentsByNamespaceId` relation. */ + platformFunctionDeploymentsByNamespaceId?: PlatformNamespaceToManyPlatformFunctionDeploymentFilter; + /** `platformFunctionDeploymentsByNamespaceId` exist. */ + platformFunctionDeploymentsByNamespaceIdExist?: boolean; + /** Filter by the object’s `platformRegistryBindingsByNamespaceId` relation. */ + platformRegistryBindingsByNamespaceId?: PlatformNamespaceToManyPlatformRegistryBindingFilter; + /** `platformRegistryBindingsByNamespaceId` exist. */ + platformRegistryBindingsByNamespaceIdExist?: boolean; + /** Filter by the object’s `platformResourceDefinitionsByNamespaceId` relation. */ + platformResourceDefinitionsByNamespaceId?: PlatformNamespaceToManyPlatformResourceDefinitionFilter; + /** `platformResourceDefinitionsByNamespaceId` exist. */ + platformResourceDefinitionsByNamespaceIdExist?: boolean; + /** Filter by the object’s `platformResourceInstallationsByNamespaceId` relation. */ + platformResourceInstallationsByNamespaceId?: PlatformNamespaceToManyPlatformResourceInstallationFilter; + /** `platformResourceInstallationsByNamespaceId` exist. */ + platformResourceInstallationsByNamespaceIdExist?: boolean; + /** Filter by the object’s `platformResourcesByNamespaceId` relation. */ + platformResourcesByNamespaceId?: PlatformNamespaceToManyPlatformResourceFilter; + /** `platformResourcesByNamespaceId` exist. */ + platformResourcesByNamespaceIdExist?: boolean; + /** Filter by the object’s `platformWebhookEndpointsByNamespaceId` relation. */ + platformWebhookEndpointsByNamespaceId?: PlatformNamespaceToManyPlatformWebhookEndpointFilter; + /** `platformWebhookEndpointsByNamespaceId` exist. */ + platformWebhookEndpointsByNamespaceIdExist?: boolean; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; } -/** A filter to be used against many `PlatformFunctionDefinition` object types. All fields are combined with a logical ‘and.’ */ -export interface FunctionGraphToManyPlatformFunctionDefinitionFilter { - /** Filters to entities where every related entity matches. */ - every?: PlatformFunctionDefinitionFilter; - /** Filters to entities where no related entity matches. */ - none?: PlatformFunctionDefinitionFilter; - /** Filters to entities where at least one related entity matches. */ - some?: PlatformFunctionDefinitionFilter; +/** A filter to be used against `PlatformImage` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformImageFilter { + /** Checks for all expressions in this list. */ + and?: PlatformImageFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `digest` field. */ + digest?: StringFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isPublished` field. */ + isPublished?: BooleanFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: PlatformImageFilter; + /** Checks for any expressions in this list. */ + or?: PlatformImageFilter[]; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `platformImageGrantsByImageId` relation. */ + platformImageGrantsByImageId?: PlatformImageToManyPlatformImageGrantFilter; + /** `platformImageGrantsByImageId` exist. */ + platformImageGrantsByImageIdExist?: boolean; + /** Filter by the object’s `platformOnly` field. */ + platformOnly?: BooleanFilter; + /** Filter by the object’s `registryHost` field. */ + registryHost?: StringFilter; + /** Filter by the object’s `repository` field. */ + repository?: StringFilter; + /** Filter by the object’s `runtime` field. */ + runtime?: StringFilter; + /** Filter by the object’s `tag` field. */ + tag?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -/** A filter to be used against Base64EncodedBinary fields. All fields are combined with a logical ‘and.’ */ -export interface Base64EncodedBinaryFilter { +/** A filter to be used against Vector fields. All fields are combined with a logical ‘and.’ */ +export interface VectorFilter { /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: Base64EncodedBinary; + distinctFrom?: number[]; /** Equal to the specified value. */ - equalTo?: Base64EncodedBinary; + equalTo?: number[]; /** Included in the specified list. */ - in?: Base64EncodedBinary[]; + in?: number[][]; /** Is null (if `true` is specified) or is not null (if `false` is specified). */ isNull?: boolean; /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: Base64EncodedBinary; + notDistinctFrom?: number[]; /** Not equal to the specified value. */ - notEqualTo?: Base64EncodedBinary; + notEqualTo?: number[]; /** Not included in the specified list. */ - notIn?: Base64EncodedBinary[]; + notIn?: number[][]; } -/** A filter to be used against ConstructiveInternalTypeImage fields. All fields are combined with a logical ‘and.’ */ -export interface ConstructiveInternalTypeImageFilter { - /** Contained by the specified JSON. */ - containedBy?: ConstructiveInternalTypeImage; - /** Contains the specified JSON. */ - contains?: ConstructiveInternalTypeImage; - /** Contains all of the specified keys. */ - containsAllKeys?: string[]; - /** Contains any of the specified keys. */ - containsAnyKeys?: string[]; - /** Contains the specified key. */ - containsKey?: string; +/** A filter to be used against BigFloat fields. All fields are combined with a logical ‘and.’ */ +export interface BigFloatFilter { /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: ConstructiveInternalTypeImage; + distinctFrom?: string; /** Equal to the specified value. */ - equalTo?: ConstructiveInternalTypeImage; + equalTo?: string; /** Greater than the specified value. */ - greaterThan?: ConstructiveInternalTypeImage; + greaterThan?: string; /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: ConstructiveInternalTypeImage; + greaterThanOrEqualTo?: string; /** Included in the specified list. */ - in?: ConstructiveInternalTypeImage[]; + in?: string[]; /** Is null (if `true` is specified) or is not null (if `false` is specified). */ isNull?: boolean; /** Less than the specified value. */ - lessThan?: ConstructiveInternalTypeImage; + lessThan?: string; /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: ConstructiveInternalTypeImage; + lessThanOrEqualTo?: string; /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: ConstructiveInternalTypeImage; + notDistinctFrom?: string; /** Not equal to the specified value. */ - notEqualTo?: ConstructiveInternalTypeImage; + notEqualTo?: string; /** Not included in the specified list. */ - notIn?: ConstructiveInternalTypeImage[]; + notIn?: string[]; } -/** A filter to be used against many `FunctionDeployment` object types. All fields are combined with a logical ‘and.’ */ -export interface NamespaceToManyFunctionDeploymentFilter { - /** Filters to entities where every related entity matches. */ - every?: FunctionDeploymentFilter; - /** Filters to entities where no related entity matches. */ - none?: FunctionDeploymentFilter; - /** Filters to entities where at least one related entity matches. */ - some?: FunctionDeploymentFilter; +/** A filter to be used against FullText fields. All fields are combined with a logical ‘and.’ */ +export interface FullTextFilter { + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: string; + /** Equal to the specified value. */ + equalTo?: string; + /** Included in the specified list. */ + in?: string[]; + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Performs a full text search on the field. */ + matches?: 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 many `ResourceDefinition` object types. All fields are combined with a logical ‘and.’ */ -export interface NamespaceToManyResourceDefinitionFilter { - /** Filters to entities where every related entity matches. */ - every?: ResourceDefinitionFilter; - /** Filters to entities where no related entity matches. */ - none?: ResourceDefinitionFilter; - /** Filters to entities where at least one related entity matches. */ - some?: ResourceDefinitionFilter; +// ============ Payload/Return Types (for custom operations) ============ +export interface AddEdgePayload { + clientMutationId?: string | null; + result?: string | null; } -/** A filter to be used against many `ResourceInstallation` object types. All fields are combined with a logical ‘and.’ */ -export interface NamespaceToManyResourceInstallationFilter { - /** Filters to entities where every related entity matches. */ - every?: ResourceInstallationFilter; - /** Filters to entities where no related entity matches. */ - none?: ResourceInstallationFilter; - /** Filters to entities where at least one related entity matches. */ - some?: ResourceInstallationFilter; +export type AddEdgePayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface AddEdgeAndSavePayload { + clientMutationId?: string | null; + result?: string | null; } -/** A filter to be used against many `Resource` object types. All fields are combined with a logical ‘and.’ */ -export interface NamespaceToManyResourceFilter { - /** Filters to entities where every related entity matches. */ - every?: ResourceFilter; - /** Filters to entities where no related entity matches. */ - none?: ResourceFilter; - /** Filters to entities where at least one related entity matches. */ - some?: ResourceFilter; +export type AddEdgeAndSavePayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface AddNodePayload { + clientMutationId?: string | null; + result?: string | null; } -/** A filter to be used against many `WebhookEndpoint` object types. All fields are combined with a logical ‘and.’ */ -export interface NamespaceToManyWebhookEndpointFilter { - /** Filters to entities where every related entity matches. */ - every?: WebhookEndpointFilter; - /** Filters to entities where no related entity matches. */ - none?: WebhookEndpointFilter; - /** Filters to entities where at least one related entity matches. */ - some?: WebhookEndpointFilter; +export type AddNodePayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface AddNodeAndSavePayload { + clientMutationId?: string | null; + result?: string | null; } -/** A filter to be used against many `PlatformFunctionInvocation` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformFunctionApiBindingToManyPlatformFunctionInvocationFilter { - /** Filters to entities where every related entity matches. */ - every?: PlatformFunctionInvocationFilter; - /** Filters to entities where no related entity matches. */ - none?: PlatformFunctionInvocationFilter; - /** Filters to entities where at least one related entity matches. */ - some?: PlatformFunctionInvocationFilter; +export type AddNodeAndSavePayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface ApproveNodePayload { + clientMutationId?: string | null; } -/** A filter to be used against many `PlatformFunctionApiBinding` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformFunctionDefinitionToManyPlatformFunctionApiBindingFilter { - /** Filters to entities where every related entity matches. */ - every?: PlatformFunctionApiBindingFilter; - /** Filters to entities where no related entity matches. */ - none?: PlatformFunctionApiBindingFilter; - /** Filters to entities where at least one related entity matches. */ - some?: PlatformFunctionApiBindingFilter; +export type ApproveNodePayloadSelect = { + clientMutationId?: boolean; +}; +export interface CopyGraphPayload { + clientMutationId?: string | null; + result?: string | null; } -/** A filter to be used against many `PlatformFunctionCapabilityBinding` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformFunctionDefinitionToManyPlatformFunctionCapabilityBindingFilter { - /** Filters to entities where every related entity matches. */ - every?: PlatformFunctionCapabilityBindingFilter; - /** Filters to entities where no related entity matches. */ - none?: PlatformFunctionCapabilityBindingFilter; - /** Filters to entities where at least one related entity matches. */ - some?: PlatformFunctionCapabilityBindingFilter; +export type CopyGraphPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface DatabaseAddEdgePayload { + clientMutationId?: string | null; + result?: string | null; +} +export type DatabaseAddEdgePayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface DatabaseAddEdgeAndSavePayload { + clientMutationId?: string | null; + result?: string | null; +} +export type DatabaseAddEdgeAndSavePayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface DatabaseAddNodePayload { + clientMutationId?: string | null; + result?: string | null; +} +export type DatabaseAddNodePayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface DatabaseAddNodeAndSavePayload { + clientMutationId?: string | null; + result?: string | null; +} +export type DatabaseAddNodeAndSavePayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface DatabaseApproveNodePayload { + clientMutationId?: string | null; } -/** A filter to be used against many `PlatformWebhookEndpoint` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformFunctionDefinitionToManyPlatformWebhookEndpointFilter { - /** Filters to entities where every related entity matches. */ - every?: PlatformWebhookEndpointFilter; - /** Filters to entities where no related entity matches. */ - none?: PlatformWebhookEndpointFilter; - /** Filters to entities where at least one related entity matches. */ - some?: PlatformWebhookEndpointFilter; +export type DatabaseApproveNodePayloadSelect = { + clientMutationId?: boolean; +}; +export interface DatabaseCopyGraphPayload { + clientMutationId?: string | null; + result?: string | null; } -/** A filter to be used against many `PlatformFunctionDeployment` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformNamespaceToManyPlatformFunctionDeploymentFilter { - /** Filters to entities where every related entity matches. */ - every?: PlatformFunctionDeploymentFilter; - /** Filters to entities where no related entity matches. */ - none?: PlatformFunctionDeploymentFilter; - /** Filters to entities where at least one related entity matches. */ - some?: PlatformFunctionDeploymentFilter; +export type DatabaseCopyGraphPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface DatabaseCreateFunctionGraphPayload { + clientMutationId?: string | null; + result?: string | null; } -/** A filter to be used against many `PlatformResourceDefinition` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformNamespaceToManyPlatformResourceDefinitionFilter { - /** Filters to entities where every related entity matches. */ - every?: PlatformResourceDefinitionFilter; - /** Filters to entities where no related entity matches. */ - none?: PlatformResourceDefinitionFilter; - /** Filters to entities where at least one related entity matches. */ - some?: PlatformResourceDefinitionFilter; +export type DatabaseCreateFunctionGraphPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface DatabaseGraphInitEmptyRepoPayload { + clientMutationId?: string | null; } -/** A filter to be used against many `PlatformResourceInstallation` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformNamespaceToManyPlatformResourceInstallationFilter { - /** Filters to entities where every related entity matches. */ - every?: PlatformResourceInstallationFilter; - /** Filters to entities where no related entity matches. */ - none?: PlatformResourceInstallationFilter; - /** Filters to entities where at least one related entity matches. */ - some?: PlatformResourceInstallationFilter; +export type DatabaseGraphInitEmptyRepoPayloadSelect = { + clientMutationId?: boolean; +}; +export interface DatabaseGraphInsertNodeAtPathPayload { + clientMutationId?: string | null; + result?: string | null; } -/** A filter to be used against many `PlatformResource` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformNamespaceToManyPlatformResourceFilter { - /** Filters to entities where every related entity matches. */ - every?: PlatformResourceFilter; - /** Filters to entities where no related entity matches. */ - none?: PlatformResourceFilter; - /** Filters to entities where at least one related entity matches. */ - some?: PlatformResourceFilter; +export type DatabaseGraphInsertNodeAtPathPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface DatabaseGraphInsertNodesAtPathsPayload { + clientMutationId?: string | null; + result?: string | null; } -/** A filter to be used against many `PlatformWebhookEndpoint` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformNamespaceToManyPlatformWebhookEndpointFilter { - /** Filters to entities where every related entity matches. */ - every?: PlatformWebhookEndpointFilter; - /** Filters to entities where no related entity matches. */ - none?: PlatformWebhookEndpointFilter; - /** Filters to entities where at least one related entity matches. */ - some?: PlatformWebhookEndpointFilter; +export type DatabaseGraphInsertNodesAtPathsPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface DatabaseGraphSetAndCommitPayload { + clientMutationId?: string | null; + databaseGraphCommitEdge?: DatabaseGraphCommitEdge | null; + result?: DatabaseGraphCommit | null; } -/** A filter to be used against many `PlatformResourceStatusCheck` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformResourceToManyPlatformResourceStatusCheckFilter { - /** Filters to entities where every related entity matches. */ - every?: PlatformResourceStatusCheckFilter; - /** Filters to entities where no related entity matches. */ - none?: PlatformResourceStatusCheckFilter; - /** Filters to entities where at least one related entity matches. */ - some?: PlatformResourceStatusCheckFilter; +export type DatabaseGraphSetAndCommitPayloadSelect = { + clientMutationId?: boolean; + databaseGraphCommitEdge?: { + select: DatabaseGraphCommitEdgeSelect; + }; + result?: { + select: DatabaseGraphCommitSelect; + }; +}; +export interface DatabaseGraphSetDataAtPathPayload { + clientMutationId?: string | null; + result?: string | null; } -/** A filter to be used against many `PlatformResource` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformResourceDefinitionToManyPlatformResourceFilter { - /** Filters to entities where every related entity matches. */ - every?: PlatformResourceFilter; - /** Filters to entities where no related entity matches. */ - none?: PlatformResourceFilter; - /** Filters to entities where at least one related entity matches. */ - some?: PlatformResourceFilter; +export type DatabaseGraphSetDataAtPathPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface DatabaseGraphSetManyAndCommitPayload { + clientMutationId?: string | null; + databaseGraphCommitEdge?: DatabaseGraphCommitEdge | null; + result?: DatabaseGraphCommit | null; } -/** A filter to be used against Interval fields. All fields are combined with a logical ‘and.’ */ -export interface IntervalFilter { - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: IntervalInput; - /** Equal to the specified value. */ - equalTo?: IntervalInput; - /** Greater than the specified value. */ - greaterThan?: IntervalInput; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: IntervalInput; - /** Included in the specified list. */ - in?: IntervalInput[]; - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Less than the specified value. */ - lessThan?: IntervalInput; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: IntervalInput; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: IntervalInput; - /** Not equal to the specified value. */ - notEqualTo?: IntervalInput; - /** Not included in the specified list. */ - notIn?: IntervalInput[]; +export type DatabaseGraphSetManyAndCommitPayloadSelect = { + clientMutationId?: boolean; + databaseGraphCommitEdge?: { + select: DatabaseGraphCommitEdgeSelect; + }; + result?: { + select: DatabaseGraphCommitSelect; + }; +}; +export interface DatabaseImportDefinitionsPayload { + clientMutationId?: string | null; } -/** A filter to be used against many `PlatformResource` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformResourceInstallationToManyPlatformResourceFilter { - /** Filters to entities where every related entity matches. */ - every?: PlatformResourceFilter; - /** Filters to entities where no related entity matches. */ - none?: PlatformResourceFilter; - /** Filters to entities where at least one related entity matches. */ - some?: PlatformResourceFilter; +export type DatabaseImportDefinitionsPayloadSelect = { + clientMutationId?: boolean; +}; +export interface DatabaseImportGraphJsonPayload { + clientMutationId?: string | null; + result?: string | null; } -/** A filter to be used against many `PlatformWebhookEvent` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformWebhookEndpointToManyPlatformWebhookEventFilter { - /** Filters to entities where every related entity matches. */ - every?: PlatformWebhookEventFilter; - /** Filters to entities where no related entity matches. */ - none?: PlatformWebhookEventFilter; - /** Filters to entities where at least one related entity matches. */ - some?: PlatformWebhookEventFilter; +export type DatabaseImportGraphJsonPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface DatabaseSaveGraphPayload { + clientMutationId?: string | null; + result?: string | null; } -/** A filter to be used against many `ResourceStatusCheck` object types. All fields are combined with a logical ‘and.’ */ -export interface ResourceToManyResourceStatusCheckFilter { - /** Filters to entities where every related entity matches. */ - every?: ResourceStatusCheckFilter; - /** Filters to entities where no related entity matches. */ - none?: ResourceStatusCheckFilter; - /** Filters to entities where at least one related entity matches. */ - some?: ResourceStatusCheckFilter; +export type DatabaseSaveGraphPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface DatabaseStartExecutionPayload { + clientMutationId?: string | null; + result?: string | null; } -/** A filter to be used against many `Resource` object types. All fields are combined with a logical ‘and.’ */ -export interface ResourceDefinitionToManyResourceFilter { - /** Filters to entities where every related entity matches. */ - every?: ResourceFilter; - /** Filters to entities where no related entity matches. */ - none?: ResourceFilter; - /** Filters to entities where at least one related entity matches. */ - some?: ResourceFilter; +export type DatabaseStartExecutionPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface DatabaseValidateFunctionGraphPayload { + clientMutationId?: string | null; + result?: boolean | null; } -/** A filter to be used against many `Resource` object types. All fields are combined with a logical ‘and.’ */ -export interface ResourceInstallationToManyResourceFilter { - /** Filters to entities where every related entity matches. */ - every?: ResourceFilter; - /** Filters to entities where no related entity matches. */ - none?: ResourceFilter; - /** Filters to entities where at least one related entity matches. */ - some?: ResourceFilter; +export type DatabaseValidateFunctionGraphPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface FunctionInvocationsCreateSyncPayload { + clientMutationId?: string | null; + functionInvocationEdge?: FunctionInvocationEdge | null; + result?: FunctionInvocation | null; } -/** A filter to be used against many `WebhookEvent` object types. All fields are combined with a logical ‘and.’ */ -export interface WebhookEndpointToManyWebhookEventFilter { - /** Filters to entities where every related entity matches. */ - every?: WebhookEventFilter; - /** Filters to entities where no related entity matches. */ - none?: WebhookEventFilter; - /** Filters to entities where at least one related entity matches. */ - some?: WebhookEventFilter; +export type FunctionInvocationsCreateSyncPayloadSelect = { + clientMutationId?: boolean; + functionInvocationEdge?: { + select: FunctionInvocationEdgeSelect; + }; + result?: { + select: FunctionInvocationSelect; + }; +}; +export interface ImportDefinitionsPayload { + clientMutationId?: string | null; } -/** 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; +export type ImportDefinitionsPayloadSelect = { + clientMutationId?: boolean; +}; +export interface ImportGraphJsonPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type ImportGraphJsonPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface InfraInitEmptyRepoPayload { + clientMutationId?: string | null; +} +export type InfraInitEmptyRepoPayloadSelect = { + clientMutationId?: boolean; +}; +export interface InfraInsertNodeAtPathPayload { + clientMutationId?: string | null; + result?: string | null; } -/** An input for mutations affecting `DbPreset` */ -export interface DbPresetInput { - /** Whether this preset is selectable for new databases */ - 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; - /** Preset definition (modules + options) — 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; - /** Human-readable preset name */ - label?: string; - /** Content-address of definition->modules via metaschema_private.modules_hash (stamped by the versioned trigger); fast exact-match lookup key for provisioning requests */ - modulesHash?: string; - /** Preset slug (unique per scope); the preset's path in the infra tree is [db_preset, 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 type InfraInsertNodeAtPathPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface InfraInsertNodesAtPathsPayload { + clientMutationId?: string | null; + result?: string | null; } -/** An input for mutations affecting `FunctionApiBinding` */ -export interface FunctionApiBindingInput { - /** Binding alias (e.g. default, staging, production) */ - alias?: string; - /** API endpoint this function is bound to */ - apiId: string; - /** Per-binding configuration (overrides, routing rules, etc.) */ - config?: Record; - createdAt?: string; - /** Function definition this binding belongs to */ - functionDefinitionId: string; - id?: string; - updatedAt?: string; +export type InfraInsertNodesAtPathsPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface InfraSetAndCommitPayload { + clientMutationId?: string | null; + infraCommitEdge?: InfraCommitEdge | null; + result?: InfraCommit | null; } -/** An input for mutations affecting `FunctionCapabilityBinding` */ -export interface FunctionCapabilityBindingInput { - /** Bucket this capability targets (exactly one typed target is set) */ - bucketId?: string; - createdAt?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - /** Function definition holding this capability (exactly one of function_id / graph_id is set) */ - functionId?: string; - /** Flow graph holding this capability (exactly one of function_id / graph_id is set) */ - graphId?: string; - id?: string; - /** Runtime handle the holder addresses this capability by (e.g. default, scratch) */ - key?: string; - /** Lifecycle the capability applies to: deployment (build/deploy time), execution (per invocation), root_execution (root of a graph execution tree) */ - lifecycle: string; - /** Per-binding annotations (no runtime semantics) */ - metadata?: Record; - updatedAt?: string; +export type InfraSetAndCommitPayloadSelect = { + clientMutationId?: boolean; + infraCommitEdge?: { + select: InfraCommitEdgeSelect; + }; + result?: { + select: InfraCommitSelect; + }; +}; +export interface InfraSetDataAtPathPayload { + clientMutationId?: string | null; + result?: string | null; } -/** An input for mutations affecting `FunctionDefinition` */ -export interface FunctionDefinitionInput { - /** 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; - /** Knative containerConcurrency — max concurrent requests per pod instance */ - concurrency?: number; - createdAt?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - /** Human-readable description of what this function does */ - description?: string; - /** Palette grouping category (e.g. email, data, ai, custom) */ - fnCategory?: string; - /** Ordered array of module_table column names holding the generated function names to invoke when runtime=sql (module mode). NULL for direct mode and other runtimes. */ - functionColumns?: Record; - /** Existing flow graph invoked when runtime=graph. Required for graph runtime and forbidden for all other runtimes. */ - graphId?: string; - /** Icon identifier for UI palette rendering (e.g. mail, database, code) */ - icon?: string; - id?: string; - /** Docker image reference (e.g. ghcr.io/constructive-io/email-send-fn:latest). Required when runtime=http or runtime=resource. NULL for inline functions. */ - image?: string; - /** Data input ports: [{name, type, description?, optional?, multi?, schema?}] */ - inputs?: Record; - /** Provider slugs (e.g. mailgun, postgres) associated with this function. The UI uses this to auto-fill required_secrets and required_configs from integration_providers. */ - integrations?: string[]; - /** Whether this function definition is published to the public catalog for direct authenticated invocation. Default false = internal-only via add_job() */ - isPublished?: boolean; - /** Maximum retry attempts for the underlying job */ - maxAttempts?: number; - /** metaschema_modules_public table whose per-database row carries the generated function names when runtime=sql (module mode). NULL for direct mode and other runtimes. */ - moduleTable?: string; - /** Function name within category (e.g. send_verification_link, process_file_embedding) */ - name: string; - /** Data output ports: [{name, type, description?, optional?, multi?, schema?}] */ - outputs?: Record; - /** Ordered bind-parameter mapping for runtime=sql: [{name, type}]. payload[name] is bound as $n::type. */ - payloadArgs?: Record; - /** Job priority (lower = higher priority) */ - priority?: number; - /** Configuration properties: [{name, type, default?, description?, required?, schema?}] */ - props?: Record; - /** Protected platform definition: narrower scopes cannot register the same task_identifier */ - protected?: boolean; - /** Timestamp when this function was published. NULL means immediately published when is_published is true; future timestamps delay public visibility */ - publishedAt?: string; - /** Job queue name for serialization (e.g. email, ai, default) */ - queueName?: string; - /** 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}} */ - resources?: Record; - /** Execution mode: http (Knative Service dispatch), inline (in-process in compute worker), handler (registered infrastructure handler), sql (generic SQL dispatch via a trusted direct target or module-resolved function names), resource (Kubernetes Job via the resource module with node-gateway callbacks), or graph (existing flow graph referenced by graph_id) */ - runtime?: string; - /** Maximum pod count for Knative autoscaling (maxScale) */ - scaleMax?: number; - /** Minimum pod count for Knative autoscaling (minScale) */ - scaleMin?: number; - /** Name of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. */ - targetFunction?: string; - /** Schema of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. */ - targetSchema?: string; - /** Knative request timeout in seconds */ - timeoutSeconds?: number; - updatedAt?: string; - /** Whether this function has side effects and cannot be cached or memoized */ - volatile?: boolean; +export type InfraSetDataAtPathPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface InfraSetManyAndCommitPayload { + clientMutationId?: string | null; + infraCommitEdge?: InfraCommitEdge | null; + result?: InfraCommit | null; } -/** An input for mutations affecting `ResourceRequirement` */ -export interface ResourceRequirementInput { - name?: string; - provider?: string; - required?: boolean; +export type InfraSetManyAndCommitPayloadSelect = { + clientMutationId?: boolean; + infraCommitEdge?: { + select: InfraCommitEdgeSelect; + }; + result?: { + select: InfraCommitSelect; + }; +}; +export interface InitEmptyRepoPayload { + clientMutationId?: string | null; } -/** An input for mutations affecting `FunctionDeployment` */ -export interface FunctionDeploymentInput { - /** Freeform metadata for tooling and operational notes */ - annotations?: Record; - /** Max concurrent requests per pod (NULL = inherit from definition) */ - concurrency?: number; - createdAt?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - /** Cumulative error count for this deployment */ - errorCount?: number; - /** Handler directory name (e.g. email, document) — used as FN_HANDLER_NAME in combined-image mode to select the entry point */ - handlerName?: string; - id?: string; - /** Logical image name — the handler identity and grouping key (e.g. fn-email). No registry host or tag; tag lives in image_version. */ - image: string; - /** Image tag/version for the handler container (e.g. latest, 2.6.4) */ - imageVersion?: string; - /** Key/value pairs for selecting and filtering deployments */ - labels?: Record; - /** Most recent provisioning or runtime error message */ - lastError?: string; - /** Timestamp of the most recent error */ - 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) */ - revision?: number; - /** Maximum replica count (NULL = inherit from definition or Knative default) */ - scaleMax?: number; - /** Minimum replica count (NULL = inherit from definition or Knative default) */ - scaleMin?: number; - /** Knative service name — a randomly minted cute name (unique_names.generate_name() + random hex suffix) assigned by the service_url trigger; unique per namespace, not derived from the image */ - serviceName?: string; - /** Knative service URL (http://{service-name}.{namespace}.svc.cluster.local) — populated after provisioning */ - serviceUrl?: string; - /** Deployment lifecycle status: pending, provisioning, active, failed, scaled_to_zero, deactivated */ - status?: string; - /** Request timeout override in seconds (NULL = inherit from definition) */ - timeoutSeconds?: number; - updatedAt?: string; +export type InitEmptyRepoPayloadSelect = { + clientMutationId?: boolean; +}; +export interface InsertNodeAtPathPayload { + clientMutationId?: string | null; + result?: string | null; +} +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 PlatformFunctionInvocationsCreateSyncPayload { + clientMutationId?: string | null; + platformFunctionInvocationEdge?: PlatformFunctionInvocationEdge | null; + result?: PlatformFunctionInvocation | null; +} +export type PlatformFunctionInvocationsCreateSyncPayloadSelect = { + clientMutationId?: boolean; + platformFunctionInvocationEdge?: { + select: PlatformFunctionInvocationEdgeSelect; + }; + result?: { + select: PlatformFunctionInvocationSelect; + }; +}; +export interface PlatformInfraInitEmptyRepoPayload { + clientMutationId?: string | null; } -/** An input for mutations affecting `FunctionDeploymentEvent` */ -export interface FunctionDeploymentEventInput { - /** User who triggered this event (NULL for system/automated) */ - actorId?: string; - /** Event timestamp (partition key) */ - createdAt?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - /** Deployment this event belongs to */ - deploymentId: string; - /** Event type: provisioned, scaled, failed, deactivated, redeployed, health_check */ - eventType: string; - /** Unique event identifier */ - id?: string; - /** Human-readable description of the event */ - message?: string; - /** Structured context (old/new values, error details, etc.) */ - metadata?: Record; +export type PlatformInfraInitEmptyRepoPayloadSelect = { + clientMutationId?: boolean; +}; +export interface PlatformInfraInsertNodeAtPathPayload { + clientMutationId?: string | null; + result?: string | null; } -/** An input for mutations affecting `FunctionExecutionLog` */ -export interface FunctionExecutionLogInput { - /** User who triggered the execution (NULL for system/cron) */ - actorId?: string; - /** Log entry timestamp (partition key) */ - createdAt?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - /** Unique log entry identifier */ - id?: string; - /** Invocation this log entry belongs to (NULL for standalone job logs) */ - invocationId?: string; - /** Log severity: debug, info, warn, error */ - logLevel?: string; - /** Log message text */ - message: string; - /** Structured context (labels, trace data, extra fields) */ - metadata?: Record; - /** Function routing key (NULL for generic job logs) */ - taskIdentifier?: string; +export type PlatformInfraInsertNodeAtPathPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface PlatformInfraInsertNodesAtPathsPayload { + clientMutationId?: string | null; + result?: string | null; } -/** An input for mutations affecting `FunctionGraphCommit` */ -export interface FunctionGraphCommitInput { - /** User who authored the changes */ - authorId?: string; - /** User who committed (may differ from author) */ - committerId?: string; - /** Commit timestamp */ - date?: string; - /** Unique commit identifier */ - id?: string; - /** Optional commit message */ - message?: string; - /** Parent commit IDs (supports merge commits) */ - parentIds?: string[]; - /** Opaque store partition key for the global tier */ - scopeId: string; - /** Store this commit belongs to */ - storeId: string; - /** Root object ID of the tree snapshot at this commit */ - treeId?: string; +export type PlatformInfraInsertNodesAtPathsPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface PlatformInfraSetAndCommitPayload { + clientMutationId?: string | null; + platformInfraCommitEdge?: PlatformInfraCommitEdge | null; + result?: PlatformInfraCommit | null; } -/** An input for mutations affecting `FunctionGraphExecution` */ -export interface FunctionGraphExecutionInput { - /** User actor propagated to asynchronous graph jobs */ - actorId?: string; - /** Execution completion timestamp */ - completedAt?: string; - /** Index into execution_plan — tick only processes this wave */ - currentWave?: number; - /** Pinned definitions store commit for deterministic evaluation */ - definitionsCommitId?: string; - /** Entity context propagated to asynchronous graph jobs */ - entityId?: string; - /** Scope discriminator propagated to asynchronous graph jobs */ - entityType?: string; - /** Machine-readable error code when status = failed */ - errorCode?: string; - /** Human-readable error description when status = failed */ - errorMessage?: string; - /** Pre-computed topological sort as array of wave objects */ - executionPlan?: Record; - /** FK to the graph definition being executed */ - graphId: string; - /** Unique execution identifier */ - id?: string; - /** Initial inputs provided at invocation time */ - inputPayload?: Record; - /** Partition coordinate for the function invocation that launched this graph execution */ - invocationCreatedAt?: string; - /** Function invocation that launched this top-level graph execution */ - invocationId?: string; - /** Timestamp of the last real progress (node enqueue, node output, completion) — drives the activity-debounced watchdog */ - lastProgressAt?: string; - /** Maximum pending jobs before execution is failed (default 50) */ - maxPendingJobs?: number; - /** Maximum ticks before execution is failed (default 100) */ - maxTicks?: number; - /** Map of node_name → execution output id (content-addressed hash reference) */ - nodeOutputs?: Record; - /** Organization context propagated to asynchronous graph jobs */ - organizationId?: string; - /** Selected graphOutput portName values; NULL or empty returns all graph outputs */ - outputNames?: string[]; - /** Target output boundary node name to resolve; NULL derives completion from the graph's graphOutput nodes */ - outputNode?: string; - /** Final result extracted from terminal output node */ - outputPayload?: Record; - /** Target output port name (default: value) */ - outputPort?: string; - /** Parent execution when this is a sub-execution */ - parentExecutionId?: string; - /** Function invocation parent assigned to node invocations spawned by this execution */ - parentInvocationId?: string; - /** Node name in parent execution that spawned this sub-execution */ - parentNodeName?: string; - /** Principal identity propagated to asynchronous graph jobs */ - principalId?: string; - /** Opaque store partition key for the global tier */ - scopeId: string; - /** Execution start timestamp */ - startedAt?: string; - /** Lifecycle: pending → running → completed/failed/cancelled */ - status?: string; - /** Number of evaluate_step ticks executed */ - tickCount?: number; - /** Absolute deadline — execution fails if still running after this time */ - timeoutAt?: string; +export type PlatformInfraSetAndCommitPayloadSelect = { + clientMutationId?: boolean; + platformInfraCommitEdge?: { + select: PlatformInfraCommitEdgeSelect; + }; + result?: { + select: PlatformInfraCommitSelect; + }; +}; +export interface PlatformInfraSetDataAtPathPayload { + clientMutationId?: string | null; + result?: string | null; } -/** An input for mutations affecting `FunctionGraphExecutionNodeState` */ -export interface FunctionGraphExecutionNodeStateInput { - /** Snapshot of the node's resolved inputs for resource-runtime nodes — served by the node gateway GET /inputs endpoint */ - callbackInputs?: Record; - /** Metering/attribution context stamped at resource dispatch (namespace_id, task_identifier, entity_id, scope, resource identity, dispatched_at, attempt) — lets the node gateway settle and attribute without extra lookups */ - callbackMeta?: Record; - /** SHA-256 hex digest of the node callback token — set for resource-runtime nodes so the node gateway can authenticate result/error/heartbeat callbacks */ - callbackTokenHash?: string; - /** Timestamp when the node finished (success or failure) */ - completedAt?: string; - /** Timestamp of node state creation (partition key) */ - createdAt?: string; - /** Machine-readable error code when status = failed */ - errorCode?: string; - /** Human-readable error description when status = failed */ - errorMessage?: string; - /** FK to the parent graph execution */ - executionId: string; - /** Unique node state identifier */ - id?: string; - /** Name of the node within the graph (e.g. send-email1) */ - nodeName: string; - /** Full merkle tree path to this node (e.g. {function,graphs,myflow,nodes,send-email1}) — enables subnet hierarchy tracking */ - nodePath?: string[]; - /** FK to execution_outputs — content-addressed output blob for this node */ - outputId?: string; - /** Opaque store partition key for the global tier */ - scopeId: string; - /** Timestamp when the node began executing */ - startedAt?: string; - /** Node lifecycle: pending → queued → running → completed/failed */ - status?: string; +export type PlatformInfraSetDataAtPathPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface PlatformInfraSetManyAndCommitPayload { + clientMutationId?: string | null; + platformInfraCommitEdge?: PlatformInfraCommitEdge | null; + result?: PlatformInfraCommit | null; } -/** An input for mutations affecting `FunctionGraphExecutionOutput` */ -export interface FunctionGraphExecutionOutputInput { - /** Timestamp of output creation */ - createdAt?: string; - /** The actual output payload from a completed node */ - data: Record; - /** SHA-256 hash of the data JSONB — content-addressed deduplication */ - hash: Base64EncodedBinary; - /** Unique execution output identifier */ - id?: string; - /** Opaque store partition key for the global tier */ - scopeId: string; +export type PlatformInfraSetManyAndCommitPayloadSelect = { + clientMutationId?: boolean; + platformInfraCommitEdge?: { + select: PlatformInfraCommitEdgeSelect; + }; + result?: { + select: PlatformInfraCommitSelect; + }; +}; +export interface PlatformResourceInstallationsInstallPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type PlatformResourceInstallationsInstallPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface PlatformResourceInstallationsRollbackPayload { + clientMutationId?: string | null; +} +export type PlatformResourceInstallationsRollbackPayloadSelect = { + clientMutationId?: boolean; +}; +export interface PlatformResourceInstallationsUninstallPayload { + clientMutationId?: string | null; +} +export type PlatformResourceInstallationsUninstallPayloadSelect = { + clientMutationId?: boolean; +}; +export interface PlatformResourceInstallationsUpgradePayload { + clientMutationId?: string | null; +} +export type PlatformResourceInstallationsUpgradePayloadSelect = { + clientMutationId?: boolean; +}; +export interface ProvisionBucketPayload { + /** The logical bucket row that was queued for reconciliation. */ + bucketId: string; + bucketKey: string; + /** The reconciler job enqueued to provision this bucket. */ + jobId: string; + /** The physical bucket name already recorded, or null when reconciliation has not completed. */ + physicalName?: string | null; +} +export type ProvisionBucketPayloadSelect = { + bucketId?: boolean; + bucketKey?: boolean; + jobId?: boolean; + physicalName?: boolean; +}; +export interface ResourceInstallationsInstallPayload { + clientMutationId?: string | null; + result?: string | null; } -/** An input for mutations affecting `FunctionGraphObject` */ -export interface FunctionGraphObjectInput { - /** Timestamp of object creation */ - createdAt?: string; - /** Payload data for this object node */ - data?: Record; - /** Content-addressed UUID v5 — deterministic hash of (data, kids, ktree) */ - id: string; - /** Ordered array of child object IDs */ - kids?: string[]; - /** Ordered array of child path names (parallel to kids) */ - ktree?: string[]; - /** Opaque store partition key for the global tier */ - scopeId: string; +export type ResourceInstallationsInstallPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface ResourceInstallationsRollbackPayload { + clientMutationId?: string | null; } -/** An input for mutations affecting `FunctionGraphRef` */ -export interface FunctionGraphRefInput { - /** Commit this ref points to */ - commitId?: string; - /** Unique ref identifier */ - id?: string; - /** Ref name (e.g. HEAD, main) */ - name: string; - /** Opaque store partition key for the global tier */ - scopeId: string; - /** Store this ref belongs to */ - storeId: string; +export type ResourceInstallationsRollbackPayloadSelect = { + clientMutationId?: boolean; +}; +export interface ResourceInstallationsUninstallPayload { + clientMutationId?: string | null; } -/** An input for mutations affecting `FunctionGraphStore` */ -export interface FunctionGraphStoreInput { - /** Timestamp of store creation */ - createdAt?: string; - /** Current root object hash of this store */ - hash?: string; - /** Unique store identifier */ - id?: string; - /** Human-readable store name */ - name: string; - /** Opaque store partition key for the global tier */ - scopeId: string; +export type ResourceInstallationsUninstallPayloadSelect = { + clientMutationId?: boolean; +}; +export interface ResourceInstallationsUpgradePayload { + clientMutationId?: string | null; } -/** An input for mutations affecting `FunctionInvocationAttempt` */ -export interface FunctionInvocationAttemptInput { - /** Who triggered the invocation (NULL for system/cron) */ - actorId?: string; - /** 1-based attempt number for this invocation */ - attempt: number; - /** When the attempt result was recorded (partition key) */ - createdAt?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - /** Wall-clock attempt time in milliseconds */ - durationMs?: number; - /** Error message when the attempt failed */ - error?: string; - /** Structured error context (stack, code, provider response) */ - errorDetail?: Record; - /** Unique attempt identifier */ - id?: string; - /** created_at of the referenced invocation (partition-pruned lookups against the invocations PK) */ - invocationCreatedAt: string; - /** Invocation this attempt belongs to (soft reference paired with invocation_created_at) */ - invocationId: string; - /** When the attempt began executing */ - startedAt?: string; - /** Whether this attempt completed successfully */ - success: boolean; - /** Function routing slug (denormalized from the invocation) */ - taskIdentifier: string; +export type ResourceInstallationsUpgradePayloadSelect = { + clientMutationId?: boolean; +}; +export interface SaveGraphPayload { + clientMutationId?: string | null; + result?: string | null; } -/** An input for mutations affecting `FunctionInvocation` */ -export interface FunctionInvocationInput { - /** Who triggered the invocation (NULL for system/cron) */ - actorId?: string; - /** API binding this invocation arrived through (NULL for cron/graph/system/worker paths) */ - apiBindingId?: string; - /** Invocation trigger channel: api, graph, cron, sync, webhook, or worker */ - channel?: string; - /** When execution completed */ - completedAt?: string; - /** Invocation creation timestamp (partition key) */ - createdAt?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - /** Scope that owns function_definition_id (e.g. app/org/database/platform) — the per-scope definitions table the resolver selected */ - definitionScope?: string; - /** Wall-clock execution time in milliseconds */ - durationMs?: number; - /** Error message when status is failed, or the reason the run was skipped when status is skipped */ - error?: string; - /** Function definition this invocation ran (soft cross-scope ref; paired with definition_scope). task_identifier stays as the audit slug. */ - functionDefinitionId?: string; - /** Groups all node invocations from a single flow graph execution */ - graphExecutionId?: string; - /** Unique invocation identifier */ - id?: string; - /** FK to app_jobs.jobs — the underlying transport */ - jobId?: string; - /** Parent invocation when this is a child node of a flow graph execution */ - parentInvocationId?: string; - /** Function input payload */ - payload?: Record; - /** Non-secret channel-specific invocation provenance (route/binding/event identifiers only) */ - provenance?: Record; - /** Function return value (success) or structured error (failure) */ - result?: Record; - /** When execution started */ - startedAt?: string; - /** Lifecycle: pending → running → completed/failed/cancelled; skipped = never ran (a gate rejected the intended run) */ - status?: string; - /** Function routing slug (category:name). Denormalized from the definition — must match the row referenced by function_definition_id when that is set. */ - taskIdentifier: string; +export type SaveGraphPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface SetAndCommitPayload { + clientMutationId?: string | null; + functionGraphCommitEdge?: FunctionGraphCommitEdge | null; + result?: FunctionGraphCommit | null; } -/** An input for mutations affecting `InfraCommit` */ -export interface InfraCommitInput { - /** User who authored the changes */ - authorId?: string; - /** User who committed (may differ from author) */ - committerId?: string; - /** Database scope for multi-tenant isolation */ - databaseId: string; - /** Commit timestamp */ - date?: string; - /** Unique commit identifier */ - id?: string; - /** Optional commit message */ - message?: string; - /** Parent commit IDs (supports merge commits) */ - parentIds?: string[]; - /** Store this commit belongs to */ - storeId: string; - /** Root object ID of the tree snapshot at this commit */ - treeId?: string; +export type SetAndCommitPayloadSelect = { + clientMutationId?: boolean; + functionGraphCommitEdge?: { + select: FunctionGraphCommitEdgeSelect; + }; + result?: { + select: FunctionGraphCommitSelect; + }; +}; +export interface SetDataAtPathPayload { + clientMutationId?: string | null; + result?: string | null; } -/** An input for mutations affecting `InfraObject` */ -export interface InfraObjectInput { - /** Timestamp of object creation */ - createdAt?: string; - /** Payload data for this object node */ - data?: Record; - /** Database scope for multi-tenant isolation */ - databaseId: string; - /** Content-addressed UUID v5 — deterministic hash of (data, kids, ktree) */ - id: string; - /** Ordered array of child object IDs */ - kids?: string[]; - /** Ordered array of child path names (parallel to kids) */ - ktree?: string[]; +export type SetDataAtPathPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface SetManyAndCommitPayload { + clientMutationId?: string | null; + functionGraphCommitEdge?: FunctionGraphCommitEdge | null; + result?: FunctionGraphCommit | null; } -/** An input for mutations affecting `InfraRef` */ -export interface InfraRefInput { - /** Commit this ref points to */ - commitId?: string; - /** Database scope for multi-tenant isolation */ - databaseId: string; - /** Unique ref identifier */ - id?: string; - /** Ref name (e.g. HEAD, main) */ - name: string; - /** Store this ref belongs to */ - storeId: string; +export type SetManyAndCommitPayloadSelect = { + clientMutationId?: boolean; + functionGraphCommitEdge?: { + select: FunctionGraphCommitEdgeSelect; + }; + result?: { + select: FunctionGraphCommitSelect; + }; +}; +export interface StartExecutionPayload { + clientMutationId?: string | null; + result?: string | null; } -/** An input for mutations affecting `InfraStore` */ -export interface InfraStoreInput { - /** Timestamp of store creation */ - createdAt?: string; - /** Database scope for multi-tenant isolation */ - databaseId: string; - /** Current root object hash of this store */ - hash?: string; - /** Unique store identifier */ - id?: string; - /** Human-readable store name */ - name: string; +export type StartExecutionPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface ValidateFunctionGraphPayload { + clientMutationId?: string | null; + result?: boolean | null; } -/** An input for mutations affecting `IntegrationProvider` */ -export interface IntegrationProviderInput { - /** Brand metadata: colors, fonts, and other provider-specific styling. Not a foreign key. */ - brand?: Record; - /** Browser category (e.g. email, database, storage, ai, analytics) */ - category?: string; - createdAt?: string; - /** Short description of what this integration provides and when to use it */ - description?: string; - /** Icon identifier for the UI (e.g. mail, database, cloud) */ - icon?: string; - id?: string; - /** Provider logo as an image domain value (url, id, key, bucket, provider) */ - logo?: ConstructiveInternalTypeImage; - /** Human-readable brand name (e.g. 'Mailgun', 'PostgreSQL') */ - name: string; - /** Canonical config requirements for this provider: array of (name, required, provider) tuples. Used by the UI to auto-fill function/resource required_configs. */ - requiredConfigs?: ResourceRequirementInput[]; - /** Canonical secret requirements for this provider: array of (name, required, provider) tuples. Used by the UI to auto-fill function/resource required_secrets. */ - requiredSecrets?: ResourceRequirementInput[]; - /** Stable URL-safe identifier for the provider. Other tables match by this string, not by FK. */ - slug: string; - updatedAt?: string; +export type ValidateFunctionGraphPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface CreateBuildPayload { + /** The `Build` that was created by this mutation. */ + build?: Build | null; + buildEdge?: BuildEdge | null; + clientMutationId?: string | null; } -/** An input for mutations affecting `Namespace` */ -export interface NamespaceInput { - /** Freeform metadata for tooling and operational notes */ - annotations?: Record; - createdAt?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - /** Optional human-readable description of this namespace */ - description?: string; - id?: string; - /** Whether this namespace is active (soft-disable for filtering) */ - isActive?: boolean; - /** true = provisioned by the platform via jobs, false = unmanaged/platform-native (bootstrapped externally) */ - isManaged?: boolean; - /** Key/value pairs for selecting and filtering namespaces */ - labels?: Record; - /** Most recent provisioning or reconcile error message */ - lastError?: string; - /** Human-readable namespace name (e.g. default, production, oauth) */ - name: string; - /** Globally unique computed namespace identifier via inflection.underscore */ - namespaceName: string; - /** Namespace provisioning lifecycle status: pending, provisioning, active, failed */ - status?: string; - updatedAt?: string; +export type CreateBuildPayloadSelect = { + build?: { + select: BuildSelect; + }; + buildEdge?: { + select: BuildEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface UpdateBuildPayload { + /** The `Build` that was updated by this mutation. */ + build?: Build | null; + buildEdge?: BuildEdge | null; + clientMutationId?: string | null; } -/** An input for mutations affecting `NamespaceEvent` */ -export interface NamespaceEventInput { - /** User who triggered this event (NULL for system/automated) */ - actorId?: string; - /** Event timestamp (partition key) */ - createdAt?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - /** Event type: created, activated, deactivated, labels_updated, annotations_updated, renamed */ - eventType: string; - /** Unique event identifier */ - id?: string; - /** Human-readable description of the event */ - message?: string; - /** Structured context (old/new values, labels diff, etc.) */ - metadata?: Record; - /** Namespace this event belongs to */ - namespaceId: string; +export type UpdateBuildPayloadSelect = { + build?: { + select: BuildSelect; + }; + buildEdge?: { + select: BuildEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface DeleteBuildPayload { + /** The `Build` that was deleted by this mutation. */ + build?: Build | null; + buildEdge?: BuildEdge | null; + clientMutationId?: string | null; } -/** An input for mutations affecting `PlatformFunctionApiBinding` */ -export interface PlatformFunctionApiBindingInput { - /** Binding alias (e.g. default, staging, production) */ - alias?: string; - /** API endpoint this function is bound to */ - apiId: string; - /** Per-binding configuration (overrides, routing rules, etc.) */ - config?: Record; - createdAt?: string; - /** Function definition this binding belongs to */ - functionDefinitionId: string; - id?: string; - updatedAt?: string; +export type DeleteBuildPayloadSelect = { + build?: { + select: BuildSelect; + }; + buildEdge?: { + select: BuildEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface CreateBuildStepPayload { + /** The `BuildStep` that was created by this mutation. */ + buildStep?: BuildStep | null; + buildStepEdge?: BuildStepEdge | null; + clientMutationId?: string | null; } -/** An input for mutations affecting `PlatformFunctionCapabilityBinding` */ -export interface PlatformFunctionCapabilityBindingInput { - /** Bucket this capability targets (exactly one typed target is set) */ - bucketId?: string; - createdAt?: string; - /** Function definition holding this capability (exactly one of function_id / graph_id is set) */ - functionId?: string; - /** Flow graph holding this capability (exactly one of function_id / graph_id is set) */ - graphId?: string; - id?: string; - /** Runtime handle the holder addresses this capability by (e.g. default, scratch) */ - key?: string; - /** Lifecycle the capability applies to: deployment (build/deploy time), execution (per invocation), root_execution (root of a graph execution tree) */ - lifecycle: string; - /** Per-binding annotations (no runtime semantics) */ - metadata?: Record; - updatedAt?: string; +export type CreateBuildStepPayloadSelect = { + buildStep?: { + select: BuildStepSelect; + }; + buildStepEdge?: { + select: BuildStepEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface UpdateBuildStepPayload { + /** The `BuildStep` that was updated by this mutation. */ + buildStep?: BuildStep | null; + buildStepEdge?: BuildStepEdge | null; + clientMutationId?: string | null; } -/** An input for mutations affecting `PlatformFunctionDefinition` */ -export interface PlatformFunctionDefinitionInput { - /** 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; - /** Function task category (e.g. email, embed, chunk, custom) */ - category: string; - /** Knative containerConcurrency — max concurrent requests per pod instance */ - concurrency?: number; - createdAt?: string; - /** Human-readable description of what this function does */ - description?: string; - /** Palette grouping category (e.g. email, data, ai, custom) */ - fnCategory?: string; - /** Ordered array of module_table column names holding the generated function names to invoke when runtime=sql (module mode). NULL for direct mode and other runtimes. */ - functionColumns?: Record; - /** Existing flow graph invoked when runtime=graph. Required for graph runtime and forbidden for all other runtimes. */ - graphId?: string; - /** Icon identifier for UI palette rendering (e.g. mail, database, code) */ - icon?: string; - id?: string; - /** Docker image reference (e.g. ghcr.io/constructive-io/email-send-fn:latest). Required when runtime=http or runtime=resource. NULL for inline functions. */ - image?: string; - /** Data input ports: [{name, type, description?, optional?, multi?, schema?}] */ - inputs?: Record; - /** Provider slugs (e.g. mailgun, postgres) associated with this function. The UI uses this to auto-fill required_secrets and required_configs from integration_providers. */ - integrations?: string[]; - /** Whether this function definition is published to the public catalog for direct authenticated invocation. Default false = internal-only via add_job() */ - isPublished?: boolean; - /** Maximum retry attempts for the underlying job */ - maxAttempts?: number; - /** metaschema_modules_public table whose per-database row carries the generated function names when runtime=sql (module mode). NULL for direct mode and other runtimes. */ - moduleTable?: string; - /** Function name within category (e.g. send_verification_link, process_file_embedding) */ - name: string; - /** Data output ports: [{name, type, description?, optional?, multi?, schema?}] */ - outputs?: Record; - /** Ordered bind-parameter mapping for runtime=sql: [{name, type}]. payload[name] is bound as $n::type. */ - payloadArgs?: Record; - /** Job priority (lower = higher priority) */ - priority?: number; - /** Configuration properties: [{name, type, default?, description?, required?, schema?}] */ - props?: Record; - /** Protected platform definition: narrower scopes cannot register the same task_identifier */ - protected?: boolean; - /** Timestamp when this function was published. NULL means immediately published when is_published is true; future timestamps delay public visibility */ - publishedAt?: string; - /** Job queue name for serialization (e.g. email, ai, default) */ - queueName?: string; - /** 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}} */ - resources?: Record; - /** Execution mode: http (Knative Service dispatch), inline (in-process in compute worker), handler (registered infrastructure handler), sql (generic SQL dispatch via a trusted direct target or module-resolved function names), resource (Kubernetes Job via the resource module with node-gateway callbacks), or graph (existing flow graph referenced by graph_id) */ - runtime?: string; - /** Maximum pod count for Knative autoscaling (maxScale) */ - scaleMax?: number; - /** Minimum pod count for Knative autoscaling (minScale) */ - scaleMin?: number; - /** Platform system definition: its task_identifier cannot be shadowed by non-platform registration */ - system?: boolean; - /** Name of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. */ - targetFunction?: string; - /** Schema of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. */ - targetSchema?: string; - /** Knative request timeout in seconds */ - timeoutSeconds?: number; - updatedAt?: string; - /** Whether this function has side effects and cannot be cached or memoized */ - volatile?: boolean; +export type UpdateBuildStepPayloadSelect = { + buildStep?: { + select: BuildStepSelect; + }; + buildStepEdge?: { + select: BuildStepEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface DeleteBuildStepPayload { + /** The `BuildStep` that was deleted by this mutation. */ + buildStep?: BuildStep | null; + buildStepEdge?: BuildStepEdge | null; + clientMutationId?: string | null; } -/** An input for mutations affecting `PlatformFunctionDeployment` */ -export interface PlatformFunctionDeploymentInput { - /** Freeform metadata for tooling and operational notes */ - annotations?: Record; - /** Max concurrent requests per pod (NULL = inherit from definition) */ - concurrency?: number; - createdAt?: string; - /** Cumulative error count for this deployment */ - errorCount?: number; - /** Handler directory name (e.g. email, document) — used as FN_HANDLER_NAME in combined-image mode to select the entry point */ - handlerName?: string; - id?: string; - /** Logical image name — the handler identity and grouping key (e.g. fn-email). No registry host or tag; tag lives in image_version. */ - image: string; - /** Image tag/version for the handler container (e.g. latest, 2.6.4) */ - imageVersion?: string; - /** Key/value pairs for selecting and filtering deployments */ - labels?: Record; - /** Most recent provisioning or runtime error message */ - lastError?: string; - /** Timestamp of the most recent error */ - 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) */ - revision?: number; - /** Maximum replica count (NULL = inherit from definition or Knative default) */ - scaleMax?: number; - /** Minimum replica count (NULL = inherit from definition or Knative default) */ - scaleMin?: number; - /** Knative service name — a randomly minted cute name (unique_names.generate_name() + random hex suffix) assigned by the service_url trigger; unique per namespace, not derived from the image */ - serviceName?: string; - /** Knative service URL (http://{service-name}.{namespace}.svc.cluster.local) — populated after provisioning */ - serviceUrl?: string; - /** Deployment lifecycle status: pending, provisioning, active, failed, scaled_to_zero, deactivated */ - status?: string; - /** Request timeout override in seconds (NULL = inherit from definition) */ - timeoutSeconds?: number; - updatedAt?: string; +export type DeleteBuildStepPayloadSelect = { + buildStep?: { + select: BuildStepSelect; + }; + buildStepEdge?: { + select: BuildStepEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface CreateBuilderBindingPayload { + /** The `BuilderBinding` that was created by this mutation. */ + builderBinding?: BuilderBinding | null; + builderBindingEdge?: BuilderBindingEdge | null; + clientMutationId?: string | null; +} +export type CreateBuilderBindingPayloadSelect = { + builderBinding?: { + select: BuilderBindingSelect; + }; + builderBindingEdge?: { + select: BuilderBindingEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface UpdateBuilderBindingPayload { + /** The `BuilderBinding` that was updated by this mutation. */ + builderBinding?: BuilderBinding | null; + builderBindingEdge?: BuilderBindingEdge | null; + clientMutationId?: string | null; +} +export type UpdateBuilderBindingPayloadSelect = { + builderBinding?: { + select: BuilderBindingSelect; + }; + builderBindingEdge?: { + select: BuilderBindingEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface DeleteBuilderBindingPayload { + /** The `BuilderBinding` that was deleted by this mutation. */ + builderBinding?: BuilderBinding | null; + builderBindingEdge?: BuilderBindingEdge | null; + clientMutationId?: string | null; +} +export type DeleteBuilderBindingPayloadSelect = { + builderBinding?: { + select: BuilderBindingSelect; + }; + builderBindingEdge?: { + select: BuilderBindingEdgeSelect; + }; + clientMutationId?: 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; } -/** An input for mutations affecting `PlatformFunctionDeploymentEvent` */ -export interface PlatformFunctionDeploymentEventInput { - /** User who triggered this event (NULL for system/automated) */ - actorId?: string; - /** Event timestamp (partition key) */ - createdAt?: string; - /** Deployment this event belongs to */ - deploymentId: string; - /** Event type: provisioned, scaled, failed, deactivated, redeployed, health_check */ - eventType: string; - /** Unique event identifier */ - id?: string; - /** Human-readable description of the event */ - message?: string; - /** Structured context (old/new values, error details, etc.) */ - metadata?: Record; +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; } -/** An input for mutations affecting `PlatformFunctionExecutionLog` */ -export interface PlatformFunctionExecutionLogInput { - /** User who triggered the execution (NULL for system/cron) */ - actorId?: string; - /** Log entry timestamp (partition key) */ - createdAt?: string; - /** Unique log entry identifier */ - id?: string; - /** Invocation this log entry belongs to (NULL for standalone job logs) */ - invocationId?: string; - /** Log severity: debug, info, warn, error */ - logLevel?: string; - /** Log message text */ - message: string; - /** Structured context (labels, trace data, extra fields) */ - metadata?: Record; - /** Function routing key (NULL for generic job logs) */ - taskIdentifier?: string; +export type DeleteContentPresetPayloadSelect = { + clientMutationId?: boolean; + contentPreset?: { + select: ContentPresetSelect; + }; + contentPresetEdge?: { + select: ContentPresetEdgeSelect; + }; +}; +export interface UpdateDatabaseFunctionGraphPayload { + clientMutationId?: string | null; + /** The `DatabaseFunctionGraph` that was updated by this mutation. */ + databaseFunctionGraph?: DatabaseFunctionGraph | null; + databaseFunctionGraphEdge?: DatabaseFunctionGraphEdge | null; } -/** An input for mutations affecting `PlatformFunctionInvocationAttempt` */ -export interface PlatformFunctionInvocationAttemptInput { - /** Who triggered the invocation (NULL for system/cron) */ - actorId?: string; - /** 1-based attempt number for this invocation */ - attempt: number; - /** When the attempt result was recorded (partition key) */ - createdAt?: string; - /** Wall-clock attempt time in milliseconds */ - durationMs?: number; - /** Error message when the attempt failed */ - error?: string; - /** Structured error context (stack, code, provider response) */ - errorDetail?: Record; - /** Unique attempt identifier */ - id?: string; - /** created_at of the referenced invocation (partition-pruned lookups against the invocations PK) */ - invocationCreatedAt: string; - /** Invocation this attempt belongs to (soft reference paired with invocation_created_at) */ - invocationId: string; - /** When the attempt began executing */ - startedAt?: string; - /** Whether this attempt completed successfully */ - success: boolean; - /** Function routing slug (denormalized from the invocation) */ - taskIdentifier: string; +export type UpdateDatabaseFunctionGraphPayloadSelect = { + clientMutationId?: boolean; + databaseFunctionGraph?: { + select: DatabaseFunctionGraphSelect; + }; + databaseFunctionGraphEdge?: { + select: DatabaseFunctionGraphEdgeSelect; + }; +}; +export interface DeleteDatabaseFunctionGraphPayload { + clientMutationId?: string | null; + /** The `DatabaseFunctionGraph` that was deleted by this mutation. */ + databaseFunctionGraph?: DatabaseFunctionGraph | null; + databaseFunctionGraphEdge?: DatabaseFunctionGraphEdge | null; } -/** An input for mutations affecting `PlatformFunctionInvocation` */ -export interface PlatformFunctionInvocationInput { - /** Who triggered the invocation (NULL for system/cron) */ - actorId?: string; - /** API binding this invocation arrived through (NULL for cron/graph/system/worker paths) */ - apiBindingId?: string; - /** Invocation trigger channel: api, graph, cron, sync, webhook, or worker */ - channel?: string; - /** When execution completed */ - completedAt?: string; - /** Invocation creation timestamp (partition key) */ - createdAt?: string; - /** Database this invocation is attributed to (usage/billing attribution) */ - databaseId?: string; - /** Scope that owns function_definition_id (e.g. app/org/database/platform) — the per-scope definitions table the resolver selected */ - definitionScope?: string; - /** Wall-clock execution time in milliseconds */ - durationMs?: number; - /** Error message when status is failed, or the reason the run was skipped when status is skipped */ - error?: string; - /** Function definition this invocation ran (soft cross-scope ref; paired with definition_scope). task_identifier stays as the audit slug. */ - functionDefinitionId?: string; - /** Groups all node invocations from a single flow graph execution */ - graphExecutionId?: string; - /** Unique invocation identifier */ - id?: string; - /** FK to app_jobs.jobs — the underlying transport */ - jobId?: string; - /** Parent invocation when this is a child node of a flow graph execution */ - parentInvocationId?: string; - /** Function input payload */ - payload?: Record; - /** Non-secret channel-specific invocation provenance (route/binding/event identifiers only) */ - provenance?: Record; - /** Function return value (success) or structured error (failure) */ - result?: Record; - /** When execution started */ - startedAt?: string; - /** Lifecycle: pending → running → completed/failed/cancelled; skipped = never ran (a gate rejected the intended run) */ - status?: string; - /** Function routing slug (category:name). Denormalized from the definition — must match the row referenced by function_definition_id when that is set. */ - taskIdentifier: string; +export type DeleteDatabaseFunctionGraphPayloadSelect = { + clientMutationId?: boolean; + databaseFunctionGraph?: { + select: DatabaseFunctionGraphSelect; + }; + databaseFunctionGraphEdge?: { + select: DatabaseFunctionGraphEdgeSelect; + }; +}; +export interface CreateDatabaseFunctionGraphExecutionPayload { + clientMutationId?: string | null; + /** The `DatabaseFunctionGraphExecution` that was created by this mutation. */ + databaseFunctionGraphExecution?: DatabaseFunctionGraphExecution | null; + databaseFunctionGraphExecutionEdge?: DatabaseFunctionGraphExecutionEdge | null; } -/** An input for mutations affecting `PlatformInfraCommit` */ -export interface PlatformInfraCommitInput { - /** User who authored the changes */ - authorId?: string; - /** User who committed (may differ from author) */ - committerId?: string; - /** Commit timestamp */ - date?: string; - /** Unique commit identifier */ - id?: string; - /** Optional commit message */ - message?: string; - /** Parent commit IDs (supports merge commits) */ - parentIds?: string[]; - /** Opaque store partition key for the global tier */ - scopeId: string; - /** Store this commit belongs to */ - storeId: string; - /** Root object ID of the tree snapshot at this commit */ - treeId?: string; +export type CreateDatabaseFunctionGraphExecutionPayloadSelect = { + clientMutationId?: boolean; + databaseFunctionGraphExecution?: { + select: DatabaseFunctionGraphExecutionSelect; + }; + databaseFunctionGraphExecutionEdge?: { + select: DatabaseFunctionGraphExecutionEdgeSelect; + }; +}; +export interface UpdateDatabaseFunctionGraphExecutionPayload { + clientMutationId?: string | null; + /** The `DatabaseFunctionGraphExecution` that was updated by this mutation. */ + databaseFunctionGraphExecution?: DatabaseFunctionGraphExecution | null; + databaseFunctionGraphExecutionEdge?: DatabaseFunctionGraphExecutionEdge | null; } -/** An input for mutations affecting `PlatformInfraObject` */ -export interface PlatformInfraObjectInput { - /** Timestamp of object creation */ - createdAt?: string; - /** Payload data for this object node */ - data?: Record; - /** Content-addressed UUID v5 — deterministic hash of (data, kids, ktree) */ - id: string; - /** Ordered array of child object IDs */ - kids?: string[]; - /** Ordered array of child path names (parallel to kids) */ - ktree?: string[]; - /** Opaque store partition key for the global tier */ - scopeId: string; +export type UpdateDatabaseFunctionGraphExecutionPayloadSelect = { + clientMutationId?: boolean; + databaseFunctionGraphExecution?: { + select: DatabaseFunctionGraphExecutionSelect; + }; + databaseFunctionGraphExecutionEdge?: { + select: DatabaseFunctionGraphExecutionEdgeSelect; + }; +}; +export interface DeleteDatabaseFunctionGraphExecutionPayload { + clientMutationId?: string | null; + /** The `DatabaseFunctionGraphExecution` that was deleted by this mutation. */ + databaseFunctionGraphExecution?: DatabaseFunctionGraphExecution | null; + databaseFunctionGraphExecutionEdge?: DatabaseFunctionGraphExecutionEdge | null; } -/** An input for mutations affecting `PlatformInfraRef` */ -export interface PlatformInfraRefInput { - /** Commit this ref points to */ - commitId?: string; - /** Unique ref identifier */ - id?: string; - /** Ref name (e.g. HEAD, main) */ - name: string; - /** Opaque store partition key for the global tier */ - scopeId: string; - /** Store this ref belongs to */ - storeId: string; +export type DeleteDatabaseFunctionGraphExecutionPayloadSelect = { + clientMutationId?: boolean; + databaseFunctionGraphExecution?: { + select: DatabaseFunctionGraphExecutionSelect; + }; + databaseFunctionGraphExecutionEdge?: { + select: DatabaseFunctionGraphExecutionEdgeSelect; + }; +}; +export interface CreateDatabaseFunctionGraphExecutionNodeStatePayload { + clientMutationId?: string | null; + /** The `DatabaseFunctionGraphExecutionNodeState` that was created by this mutation. */ + databaseFunctionGraphExecutionNodeState?: DatabaseFunctionGraphExecutionNodeState | null; + databaseFunctionGraphExecutionNodeStateEdge?: DatabaseFunctionGraphExecutionNodeStateEdge | null; } -/** An input for mutations affecting `PlatformInfraStore` */ -export interface PlatformInfraStoreInput { - /** Timestamp of store creation */ - createdAt?: string; - /** Current root object hash of this store */ - hash?: string; - /** Unique store identifier */ - id?: string; - /** Human-readable store name */ - name: string; - /** Opaque store partition key for the global tier */ - scopeId: string; +export type CreateDatabaseFunctionGraphExecutionNodeStatePayloadSelect = { + clientMutationId?: boolean; + databaseFunctionGraphExecutionNodeState?: { + select: DatabaseFunctionGraphExecutionNodeStateSelect; + }; + databaseFunctionGraphExecutionNodeStateEdge?: { + select: DatabaseFunctionGraphExecutionNodeStateEdgeSelect; + }; +}; +export interface UpdateDatabaseFunctionGraphExecutionNodeStatePayload { + clientMutationId?: string | null; + /** The `DatabaseFunctionGraphExecutionNodeState` that was updated by this mutation. */ + databaseFunctionGraphExecutionNodeState?: DatabaseFunctionGraphExecutionNodeState | null; + databaseFunctionGraphExecutionNodeStateEdge?: DatabaseFunctionGraphExecutionNodeStateEdge | null; } -/** An input for mutations affecting `PlatformNamespace` */ -export interface PlatformNamespaceInput { - /** Freeform metadata for tooling and operational notes */ - annotations?: Record; - createdAt?: string; - /** Optional human-readable description of this namespace */ - description?: string; - id?: string; - /** Whether this namespace is active (soft-disable for filtering) */ - isActive?: boolean; - /** true = provisioned by the platform via jobs, false = unmanaged/platform-native (bootstrapped externally) */ - isManaged?: boolean; - /** Key/value pairs for selecting and filtering namespaces */ - labels?: Record; - /** Most recent provisioning or reconcile error message */ - lastError?: string; - /** Human-readable namespace name (e.g. default, production, oauth) */ - name: string; - /** Globally unique computed namespace identifier via inflection.underscore */ - namespaceName: string; - /** Namespace provisioning lifecycle status: pending, provisioning, active, failed */ - status?: string; - updatedAt?: string; +export type UpdateDatabaseFunctionGraphExecutionNodeStatePayloadSelect = { + clientMutationId?: boolean; + databaseFunctionGraphExecutionNodeState?: { + select: DatabaseFunctionGraphExecutionNodeStateSelect; + }; + databaseFunctionGraphExecutionNodeStateEdge?: { + select: DatabaseFunctionGraphExecutionNodeStateEdgeSelect; + }; +}; +export interface DeleteDatabaseFunctionGraphExecutionNodeStatePayload { + clientMutationId?: string | null; + /** The `DatabaseFunctionGraphExecutionNodeState` that was deleted by this mutation. */ + databaseFunctionGraphExecutionNodeState?: DatabaseFunctionGraphExecutionNodeState | null; + databaseFunctionGraphExecutionNodeStateEdge?: DatabaseFunctionGraphExecutionNodeStateEdge | null; +} +export type DeleteDatabaseFunctionGraphExecutionNodeStatePayloadSelect = { + clientMutationId?: boolean; + databaseFunctionGraphExecutionNodeState?: { + select: DatabaseFunctionGraphExecutionNodeStateSelect; + }; + databaseFunctionGraphExecutionNodeStateEdge?: { + select: DatabaseFunctionGraphExecutionNodeStateEdgeSelect; + }; +}; +export interface CreateDatabaseFunctionGraphExecutionOutputPayload { + clientMutationId?: string | null; + /** The `DatabaseFunctionGraphExecutionOutput` that was created by this mutation. */ + databaseFunctionGraphExecutionOutput?: DatabaseFunctionGraphExecutionOutput | null; + databaseFunctionGraphExecutionOutputEdge?: DatabaseFunctionGraphExecutionOutputEdge | null; +} +export type CreateDatabaseFunctionGraphExecutionOutputPayloadSelect = { + clientMutationId?: boolean; + databaseFunctionGraphExecutionOutput?: { + select: DatabaseFunctionGraphExecutionOutputSelect; + }; + databaseFunctionGraphExecutionOutputEdge?: { + select: DatabaseFunctionGraphExecutionOutputEdgeSelect; + }; +}; +export interface UpdateDatabaseFunctionGraphExecutionOutputPayload { + clientMutationId?: string | null; + /** The `DatabaseFunctionGraphExecutionOutput` that was updated by this mutation. */ + databaseFunctionGraphExecutionOutput?: DatabaseFunctionGraphExecutionOutput | null; + databaseFunctionGraphExecutionOutputEdge?: DatabaseFunctionGraphExecutionOutputEdge | null; +} +export type UpdateDatabaseFunctionGraphExecutionOutputPayloadSelect = { + clientMutationId?: boolean; + databaseFunctionGraphExecutionOutput?: { + select: DatabaseFunctionGraphExecutionOutputSelect; + }; + databaseFunctionGraphExecutionOutputEdge?: { + select: DatabaseFunctionGraphExecutionOutputEdgeSelect; + }; +}; +export interface DeleteDatabaseFunctionGraphExecutionOutputPayload { + clientMutationId?: string | null; + /** The `DatabaseFunctionGraphExecutionOutput` that was deleted by this mutation. */ + databaseFunctionGraphExecutionOutput?: DatabaseFunctionGraphExecutionOutput | null; + databaseFunctionGraphExecutionOutputEdge?: DatabaseFunctionGraphExecutionOutputEdge | null; } -/** An input for mutations affecting `PlatformNamespaceEvent` */ -export interface PlatformNamespaceEventInput { - /** User who triggered this event (NULL for system/automated) */ - actorId?: string; - /** Event timestamp (partition key) */ - createdAt?: string; - /** Event type: created, activated, deactivated, labels_updated, annotations_updated, renamed */ - eventType: string; - /** Unique event identifier */ - id?: string; - /** Human-readable description of the event */ - message?: string; - /** Structured context (old/new values, labels diff, etc.) */ - metadata?: Record; - /** Namespace this event belongs to */ - namespaceId: string; +export type DeleteDatabaseFunctionGraphExecutionOutputPayloadSelect = { + clientMutationId?: boolean; + databaseFunctionGraphExecutionOutput?: { + select: DatabaseFunctionGraphExecutionOutputSelect; + }; + databaseFunctionGraphExecutionOutputEdge?: { + select: DatabaseFunctionGraphExecutionOutputEdgeSelect; + }; +}; +export interface CreateDatabaseGraphCommitPayload { + clientMutationId?: string | null; + /** The `DatabaseGraphCommit` that was created by this mutation. */ + databaseGraphCommit?: DatabaseGraphCommit | null; + databaseGraphCommitEdge?: DatabaseGraphCommitEdge | null; } -/** An input for mutations affecting `PlatformResource` */ -export interface PlatformResourceInput { - /** Freeform metadata for tooling and operational notes */ - annotations?: Record; - createdAt?: string; - createdBy?: string; - /** Cumulative error count for this resource */ - errorCount?: number; - id?: string; - /** Installation ("release") this resource belongs to (NULL for standalone resources) */ - installationId?: string; - /** Provider slugs (e.g. mailgun, postgres) associated with this resource. The UI uses this to auto-fill required_secrets and required_configs from integration_providers. */ - integrations?: string[]; - /** Resource kind: Deployment, StatefulSet, Job, Service, Ingress, Certificate, ClusterIssuer */ - kind: string; - /** Key/value pairs for selecting and filtering resources */ - labels?: Record; - /** Most recent provisioning or runtime error message */ - lastError?: string; - /** Last time a usage heartbeat was received for this resource (NULL until first heartbeat) */ - lastHeartbeatAt?: string; - /** Human-readable resource name */ - name: string; - /** Namespace this resource belongs to (security boundary, maps to K8s namespace) */ - namespaceId: string; - /** Config/secret realm this resource resolves against. Per key, the realm-specific atom wins over the NULL-realm default. NULL = the default lane. */ - realm?: string; - /** Embedded config requirements: array of (name, required, provider) tuples — extends the linked definition's requirements. provider is the integration slug this requirement belongs to, if any. */ - requiredConfigs?: ResourceRequirementInput[]; - /** Embedded secret requirements: array of (name, required, provider) tuples — extends the linked definition's requirements. provider is the integration slug this requirement belongs to, if any. */ - requiredSecrets?: ResourceRequirementInput[]; - /** Definition template this resource was created from (NULL for standalone resources) */ - resourceDefinitionId?: string; - /** URL-safe identifier, unique within (namespace_id, kind) */ - slug: string; - /** Desired state — kind-specific configuration (image, ports, resources, etc.). Opaque to DB; validated by K8s. */ - spec?: Record; - /** Resource lifecycle status: pending, provisioning, active, completed, failed, draining, deleting */ - status?: string; - /** Observed state from K8s — populated by handlers after reconciliation (service_url, clone_url, replicas, etc.) */ - statusObserved?: Record; - updatedAt?: string; - updatedBy?: string; +export type CreateDatabaseGraphCommitPayloadSelect = { + clientMutationId?: boolean; + databaseGraphCommit?: { + select: DatabaseGraphCommitSelect; + }; + databaseGraphCommitEdge?: { + select: DatabaseGraphCommitEdgeSelect; + }; +}; +export interface UpdateDatabaseGraphCommitPayload { + clientMutationId?: string | null; + /** The `DatabaseGraphCommit` that was updated by this mutation. */ + databaseGraphCommit?: DatabaseGraphCommit | null; + databaseGraphCommitEdge?: DatabaseGraphCommitEdge | null; } -/** An input for mutations affecting `PlatformResourceDefinition` */ -export interface PlatformResourceDefinitionInput { - /** Freeform metadata for tooling and operational notes */ - annotations?: Record; - createdAt?: string; - createdBy?: string; - /** Template spec for creating resource instances of this kind */ - defaultSpec?: Record; - /** What this resource definition provides */ - description?: string; - id?: string; - /** Provider slugs (e.g. mailgun, postgres) associated with this resource definition. The UI uses this to auto-fill required_secrets and required_configs from integration_providers. */ - integrations?: string[]; - /** Resource kind: Deployment, StatefulSet, Job, Service, Ingress, Certificate, ClusterIssuer, or custom kinds */ - kind: string; - /** Key/value pairs for selecting and filtering definitions */ - labels?: Record; - /** Human-readable definition name */ - name: string; - /** Namespace this definition belongs to (security boundary, maps to K8s namespace) */ - namespaceId: string; - /** Declared parameter interface: [{key,label,type,default,required,min,max,options,group,order,bindings:[{path,template,scale,round,unit}]}]. Installation params are validated and compiled through these declarations; [] keeps the legacy raw spec overlay. */ - paramsSchema?: Record; - /** Embedded config requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ - requiredConfigs?: ResourceRequirementInput[]; - /** Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ - requiredSecrets?: ResourceRequirementInput[]; - /** URL-safe identifier, unique within (namespace_id, kind) */ - slug: string; - /** Min age before DELETE of a resource of this kind requires step-up; NULL inherits the 6h default */ - stepUpMinAge?: IntervalInput; - updatedAt?: string; - updatedBy?: string; +export type UpdateDatabaseGraphCommitPayloadSelect = { + clientMutationId?: boolean; + databaseGraphCommit?: { + select: DatabaseGraphCommitSelect; + }; + databaseGraphCommitEdge?: { + select: DatabaseGraphCommitEdgeSelect; + }; +}; +export interface DeleteDatabaseGraphCommitPayload { + clientMutationId?: string | null; + /** The `DatabaseGraphCommit` that was deleted by this mutation. */ + databaseGraphCommit?: DatabaseGraphCommit | null; + databaseGraphCommitEdge?: DatabaseGraphCommitEdge | null; } -/** An interval of time that has passed where the smallest distinct unit is a second. */ -export interface IntervalInput { - /** A quantity of days. */ - days?: number; - /** A quantity of hours. */ - hours?: number; - /** A quantity of minutes. */ - minutes?: number; - /** A quantity of months. */ - months?: number; - /** - * A quantity of seconds. This is the only non-integer field, as all the other - * fields will dump their overflow into a smaller unit of time. Intervals don’t - * have a smaller unit than seconds. - */ - seconds?: number; - /** A quantity of years. */ - years?: number; +export type DeleteDatabaseGraphCommitPayloadSelect = { + clientMutationId?: boolean; + databaseGraphCommit?: { + select: DatabaseGraphCommitSelect; + }; + databaseGraphCommitEdge?: { + select: DatabaseGraphCommitEdgeSelect; + }; +}; +export interface CreateDatabaseGraphObjectPayload { + clientMutationId?: string | null; + /** The `DatabaseGraphObject` that was created by this mutation. */ + databaseGraphObject?: DatabaseGraphObject | null; + databaseGraphObjectEdge?: DatabaseGraphObjectEdge | null; } -/** An input for mutations affecting `PlatformResourceEvent` */ -export interface PlatformResourceEventInput { - /** User who triggered this event (NULL for system/automated) */ - actorId?: string; - /** Event timestamp (partition key) */ - createdAt?: string; - /** Event type: provisioned, provisioning, updated, failed, deprovisioned, health_check */ - eventType: string; - /** Unique event identifier */ - id?: string; - /** Human-readable description of the event */ - message?: string; - /** Structured context (old/new values, error details, etc.) */ - metadata?: Record; - /** Resource this event belongs to */ - resourceId: string; +export type CreateDatabaseGraphObjectPayloadSelect = { + clientMutationId?: boolean; + databaseGraphObject?: { + select: DatabaseGraphObjectSelect; + }; + databaseGraphObjectEdge?: { + select: DatabaseGraphObjectEdgeSelect; + }; +}; +export interface UpdateDatabaseGraphObjectPayload { + clientMutationId?: string | null; + /** The `DatabaseGraphObject` that was updated by this mutation. */ + databaseGraphObject?: DatabaseGraphObject | null; + databaseGraphObjectEdge?: DatabaseGraphObjectEdge | null; } -/** An input for mutations affecting `PlatformResourceInstallation` */ -export interface PlatformResourceInstallationInput { - /** Infra store commit for the current params (stamped by the versioned trigger on every write) */ - commitId?: string; - createdAt?: string; - createdBy?: string; - id?: string; - /** Human-readable release name */ - name: string; - /** Namespace this installation belongs to (security boundary) */ - namespaceId: string; - /** Release parameters — the readily-cached head; history lives in the infra store. Never contains secret/config literals. */ - params?: Record; - /** Monotonic release revision counter: install starts at 1, bumped on every upgrade/rollback */ - revision?: number; - /** URL-safe release identifier, unique within the namespace; the release's path in the infra tree is [resource_installation, slug] */ - slug: string; - /** Installation lifecycle status: pending, installed, uninstalled, failed */ - status?: string; - /** Infra merkle store holding this installation's history (stamped by the versioned trigger) */ - storeId?: string; - updatedAt?: string; - updatedBy?: string; +export type UpdateDatabaseGraphObjectPayloadSelect = { + clientMutationId?: boolean; + databaseGraphObject?: { + select: DatabaseGraphObjectSelect; + }; + databaseGraphObjectEdge?: { + select: DatabaseGraphObjectEdgeSelect; + }; +}; +export interface DeleteDatabaseGraphObjectPayload { + clientMutationId?: string | null; + /** The `DatabaseGraphObject` that was deleted by this mutation. */ + databaseGraphObject?: DatabaseGraphObject | null; + databaseGraphObjectEdge?: DatabaseGraphObjectEdge | null; } -/** An input for mutations affecting `PlatformResourceStatusCheck` */ -export interface PlatformResourceStatusCheckInput { - /** When the check completed (NULL while pending/running) */ - completedAt?: string; - /** Unique status check identifier */ - id?: string; - /** When the check was requested */ - requestedAt?: string; - /** User who requested the check (NULL for system/scheduled) */ - requestedBy?: string; - /** Resource to check */ - resourceId: string; - /** Diagnostic snapshot: k8s_status, conditions, pod_logs_tail, events */ - result?: Record; - /** Check lifecycle: pending, running, completed, failed */ - status?: string; +export type DeleteDatabaseGraphObjectPayloadSelect = { + clientMutationId?: boolean; + databaseGraphObject?: { + select: DatabaseGraphObjectSelect; + }; + databaseGraphObjectEdge?: { + select: DatabaseGraphObjectEdgeSelect; + }; +}; +export interface CreateDatabaseGraphRefPayload { + clientMutationId?: string | null; + /** The `DatabaseGraphRef` that was created by this mutation. */ + databaseGraphRef?: DatabaseGraphRef | null; + databaseGraphRefEdge?: DatabaseGraphRefEdge | null; } -/** An input for mutations affecting `PlatformResourceUsageLog` */ -export interface PlatformResourceUsageLogInput { - /** CPU gauge in millicores at sample time (NULL when unknown) */ - cpuMillicores?: string; - /** Unique sample identifier */ - id?: string; - /** Seconds covered by this sample — runtime is SUM(interval_seconds) */ - intervalSeconds: number; - /** Memory gauge in bytes at sample time (NULL when unknown) */ - memoryBytes?: string; - /** Structured gauges: replicas, pod counts, phases, and other producer-specific metrics */ - metrics?: Record; - /** Namespace the measured workload runs in */ - namespaceId: string; - /** Resource this sample measures (NULL for namespace-grain catch-all rows) */ - resourceId?: string; - /** Sample timestamp (partition key) — end of the measured interval */ - sampledAt?: string; - /** Sample producer: self (workload heartbeat), observer (reconciler), or prometheus (namespace-grain usage collector) */ - source: string; +export type CreateDatabaseGraphRefPayloadSelect = { + clientMutationId?: boolean; + databaseGraphRef?: { + select: DatabaseGraphRefSelect; + }; + databaseGraphRefEdge?: { + select: DatabaseGraphRefEdgeSelect; + }; +}; +export interface UpdateDatabaseGraphRefPayload { + clientMutationId?: string | null; + /** The `DatabaseGraphRef` that was updated by this mutation. */ + databaseGraphRef?: DatabaseGraphRef | null; + databaseGraphRefEdge?: DatabaseGraphRefEdge | null; } -/** An input for mutations affecting `PlatformResourceUsageSummary` */ -export interface PlatformResourceUsageSummaryInput { - /** Day this summary covers (partition key) */ - date: string; - /** Memory usage for the day — SUM(memory_bytes * interval_seconds) normalized to GB-seconds */ - gbSeconds?: string; - /** Unique usage summary identifier */ - id?: string; - /** Maximum CPU gauge observed during the day (NULL when never reported) */ - maxCpuMillicores?: string; - /** Maximum memory gauge observed during the day (NULL when never reported) */ - maxMemoryBytes?: string; - /** Namespace the resource runs in */ - namespaceId: string; - /** Resource this summary covers (NULL for namespace-grain catch-all summaries) */ - resourceId?: string; - /** Total measured runtime for the day — SUM(interval_seconds) */ - runtimeSeconds?: string; - /** Number of raw samples aggregated into this summary */ - sampleCount?: number; +export type UpdateDatabaseGraphRefPayloadSelect = { + clientMutationId?: boolean; + databaseGraphRef?: { + select: DatabaseGraphRefSelect; + }; + databaseGraphRefEdge?: { + select: DatabaseGraphRefEdgeSelect; + }; +}; +export interface DeleteDatabaseGraphRefPayload { + clientMutationId?: string | null; + /** The `DatabaseGraphRef` that was deleted by this mutation. */ + databaseGraphRef?: DatabaseGraphRef | null; + databaseGraphRefEdge?: DatabaseGraphRefEdge | null; +} +export type DeleteDatabaseGraphRefPayloadSelect = { + clientMutationId?: boolean; + databaseGraphRef?: { + select: DatabaseGraphRefSelect; + }; + databaseGraphRefEdge?: { + select: DatabaseGraphRefEdgeSelect; + }; +}; +export interface CreateDatabaseGraphStorePayload { + clientMutationId?: string | null; + /** The `DatabaseGraphStore` that was created by this mutation. */ + databaseGraphStore?: DatabaseGraphStore | null; + databaseGraphStoreEdge?: DatabaseGraphStoreEdge | null; } -/** An input for mutations affecting `PlatformWebhookEndpoint` */ -export interface PlatformWebhookEndpointInput { - /** Whether this endpoint currently accepts deliveries */ - active?: boolean; - createdAt?: string; - createdBy?: string; - /** Same-scope function definition invoked on delivery. The function must list the webhook channel in access_channels. */ - functionDefinitionId: string; - /** Inbound Host header this endpoint matches (normalized lower-case, no port) */ - host: string; - id?: string; - /** Namespace that owns this endpoint and contains its signing secret */ - namespaceId: string; - /** Exact request path this endpoint matches (e.g. /webhooks/stripe) */ - path: string; - /** Verification scheme: generic (HMAC), stripe, or github */ - provider?: string; - /** Maximum age (seconds) of a signed provider timestamp before the delivery is rejected as a replay */ - replayWindowSeconds?: number; - /** Name of the signing secret in the infra secrets store. The gateway resolves the value through the generated secrets getter — the plaintext secret is never stored here. */ - signingSecretName: string; - updatedAt?: string; - updatedBy?: string; +export type CreateDatabaseGraphStorePayloadSelect = { + clientMutationId?: boolean; + databaseGraphStore?: { + select: DatabaseGraphStoreSelect; + }; + databaseGraphStoreEdge?: { + select: DatabaseGraphStoreEdgeSelect; + }; +}; +export interface UpdateDatabaseGraphStorePayload { + clientMutationId?: string | null; + /** The `DatabaseGraphStore` that was updated by this mutation. */ + databaseGraphStore?: DatabaseGraphStore | null; + databaseGraphStoreEdge?: DatabaseGraphStoreEdge | null; } -/** An input for mutations affecting `PlatformWebhookEvent` */ -export interface PlatformWebhookEventInput { - createdAt?: string; - /** Endpoint that accepted this delivery */ - endpointId: string; - /** Failure detail when status = failed */ - error?: string; - /** Provider-supplied delivery/event id used for idempotent dedup */ - externalEventId: string; - id?: string; - /** created_at of the enqueued invocation (partition key companion to invocation_id) */ - invocationCreatedAt?: string; - /** Pending function invocation enqueued for this delivery (NULL until enqueued) */ - invocationId?: string; - /** Parsed delivery payload (parsed only after signature verification over the exact raw bytes) */ - payload?: Record; - /** Provider that produced this delivery (copied from the endpoint at acceptance) */ - provider: string; - /** Signed provider timestamp used for replay-window validation (NULL when the provider supplies none) */ - providerTimestamp?: string; - /** Acceptance lifecycle: accepted, processed, failed */ - status?: string; - updatedAt?: string; +export type UpdateDatabaseGraphStorePayloadSelect = { + clientMutationId?: boolean; + databaseGraphStore?: { + select: DatabaseGraphStoreSelect; + }; + databaseGraphStoreEdge?: { + select: DatabaseGraphStoreEdgeSelect; + }; +}; +export interface DeleteDatabaseGraphStorePayload { + clientMutationId?: string | null; + /** The `DatabaseGraphStore` that was deleted by this mutation. */ + databaseGraphStore?: DatabaseGraphStore | null; + databaseGraphStoreEdge?: DatabaseGraphStoreEdge | null; } -/** An input for mutations affecting `Resource` */ -export interface ResourceInput { - /** Freeform metadata for tooling and operational notes */ - annotations?: Record; - createdAt?: string; - createdBy?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - /** Cumulative error count for this resource */ - errorCount?: number; - id?: string; - /** Installation ("release") this resource belongs to (NULL for standalone resources) */ - installationId?: string; - /** Provider slugs (e.g. mailgun, postgres) associated with this resource. The UI uses this to auto-fill required_secrets and required_configs from integration_providers. */ - integrations?: string[]; - /** Resource kind: Deployment, StatefulSet, Job, Service, Ingress, Certificate, ClusterIssuer */ - kind: string; - /** Key/value pairs for selecting and filtering resources */ - labels?: Record; - /** Most recent provisioning or runtime error message */ - lastError?: string; - /** Last time a usage heartbeat was received for this resource (NULL until first heartbeat) */ - lastHeartbeatAt?: string; - /** Human-readable resource name */ - name: string; - /** Namespace this resource belongs to (security boundary, maps to K8s namespace) */ - namespaceId: string; - /** Config/secret realm this resource resolves against. Per key, the realm-specific atom wins over the NULL-realm default. NULL = the default lane. */ - realm?: string; - /** Embedded config requirements: array of (name, required, provider) tuples — extends the linked definition's requirements. provider is the integration slug this requirement belongs to, if any. */ - requiredConfigs?: ResourceRequirementInput[]; - /** Embedded secret requirements: array of (name, required, provider) tuples — extends the linked definition's requirements. provider is the integration slug this requirement belongs to, if any. */ - requiredSecrets?: ResourceRequirementInput[]; - /** Definition template this resource was created from (NULL for standalone resources) */ - resourceDefinitionId?: string; - /** URL-safe identifier, unique within (namespace_id, kind) */ - slug: string; - /** Desired state — kind-specific configuration (image, ports, resources, etc.). Opaque to DB; validated by K8s. */ - spec?: Record; - /** Resource lifecycle status: pending, provisioning, active, completed, failed, draining, deleting */ - status?: string; - /** Observed state from K8s — populated by handlers after reconciliation (service_url, clone_url, replicas, etc.) */ - statusObserved?: Record; - updatedAt?: string; - updatedBy?: string; +export type DeleteDatabaseGraphStorePayloadSelect = { + clientMutationId?: boolean; + databaseGraphStore?: { + select: DatabaseGraphStoreSelect; + }; + databaseGraphStoreEdge?: { + select: DatabaseGraphStoreEdgeSelect; + }; +}; +export interface CreateDbPresetPayload { + clientMutationId?: string | null; + /** The `DbPreset` that was created by this mutation. */ + dbPreset?: DbPreset | null; + dbPresetEdge?: DbPresetEdge | null; } -/** An input for mutations affecting `ResourceDefinition` */ -export interface ResourceDefinitionInput { - /** Freeform metadata for tooling and operational notes */ - annotations?: Record; - createdAt?: string; - createdBy?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - /** Template spec for creating resource instances of this kind */ - defaultSpec?: Record; - /** What this resource definition provides */ - description?: string; - id?: string; - /** Provider slugs (e.g. mailgun, postgres) associated with this resource definition. The UI uses this to auto-fill required_secrets and required_configs from integration_providers. */ - integrations?: string[]; - /** Resource kind: Deployment, StatefulSet, Job, Service, Ingress, Certificate, ClusterIssuer, or custom kinds */ - kind: string; - /** Key/value pairs for selecting and filtering definitions */ - labels?: Record; - /** Human-readable definition name */ - name: string; - /** Namespace this definition belongs to (security boundary, maps to K8s namespace) */ - namespaceId: string; - /** Declared parameter interface: [{key,label,type,default,required,min,max,options,group,order,bindings:[{path,template,scale,round,unit}]}]. Installation params are validated and compiled through these declarations; [] keeps the legacy raw spec overlay. */ - paramsSchema?: Record; - /** Embedded config requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ - requiredConfigs?: ResourceRequirementInput[]; - /** Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ - requiredSecrets?: ResourceRequirementInput[]; - /** URL-safe identifier, unique within (namespace_id, kind) */ - slug: string; - /** Min age before DELETE of a resource of this kind requires step-up; NULL inherits the 6h default */ - stepUpMinAge?: IntervalInput; - updatedAt?: string; - updatedBy?: string; +export type CreateDbPresetPayloadSelect = { + clientMutationId?: boolean; + dbPreset?: { + select: DbPresetSelect; + }; + dbPresetEdge?: { + select: DbPresetEdgeSelect; + }; +}; +export interface UpdateDbPresetPayload { + clientMutationId?: string | null; + /** The `DbPreset` that was updated by this mutation. */ + dbPreset?: DbPreset | null; + dbPresetEdge?: DbPresetEdge | null; } -/** An input for mutations affecting `ResourceEvent` */ -export interface ResourceEventInput { - /** User who triggered this event (NULL for system/automated) */ - actorId?: string; - /** Event timestamp (partition key) */ - createdAt?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - /** Event type: provisioned, provisioning, updated, failed, deprovisioned, health_check */ - eventType: string; - /** Unique event identifier */ - id?: string; - /** Human-readable description of the event */ - message?: string; - /** Structured context (old/new values, error details, etc.) */ - metadata?: Record; - /** Resource this event belongs to */ - resourceId: string; +export type UpdateDbPresetPayloadSelect = { + clientMutationId?: boolean; + dbPreset?: { + select: DbPresetSelect; + }; + dbPresetEdge?: { + select: DbPresetEdgeSelect; + }; +}; +export interface DeleteDbPresetPayload { + clientMutationId?: string | null; + /** The `DbPreset` that was deleted by this mutation. */ + dbPreset?: DbPreset | null; + dbPresetEdge?: DbPresetEdge | null; } -/** An input for mutations affecting `ResourceInstallation` */ -export interface ResourceInstallationInput { - /** Infra store commit for the current params (stamped by the versioned trigger on every write) */ - commitId?: string; - createdAt?: string; - createdBy?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - id?: string; - /** Human-readable release name */ - name: string; - /** Namespace this installation belongs to (security boundary) */ - namespaceId: string; - /** Release parameters — the readily-cached head; history lives in the infra store. Never contains secret/config literals. */ - params?: Record; - /** Monotonic release revision counter: install starts at 1, bumped on every upgrade/rollback */ - revision?: number; - /** URL-safe release identifier, unique within the namespace; the release's path in the infra tree is [resource_installation, slug] */ - slug: string; - /** Installation lifecycle status: pending, installed, uninstalled, failed */ - status?: string; - /** Infra merkle store holding this installation's history (stamped by the versioned trigger) */ - storeId?: string; - updatedAt?: string; - updatedBy?: string; +export type DeleteDbPresetPayloadSelect = { + clientMutationId?: boolean; + dbPreset?: { + select: DbPresetSelect; + }; + dbPresetEdge?: { + select: DbPresetEdgeSelect; + }; +}; +export interface CreateFunctionApiBindingPayload { + clientMutationId?: string | null; + /** The `FunctionApiBinding` that was created by this mutation. */ + functionApiBinding?: FunctionApiBinding | null; + functionApiBindingEdge?: FunctionApiBindingEdge | null; +} +export type CreateFunctionApiBindingPayloadSelect = { + clientMutationId?: boolean; + functionApiBinding?: { + select: FunctionApiBindingSelect; + }; + functionApiBindingEdge?: { + select: FunctionApiBindingEdgeSelect; + }; +}; +export interface UpdateFunctionApiBindingPayload { + clientMutationId?: string | null; + /** The `FunctionApiBinding` that was updated by this mutation. */ + functionApiBinding?: FunctionApiBinding | null; + functionApiBindingEdge?: FunctionApiBindingEdge | null; +} +export type UpdateFunctionApiBindingPayloadSelect = { + clientMutationId?: boolean; + functionApiBinding?: { + select: FunctionApiBindingSelect; + }; + functionApiBindingEdge?: { + select: FunctionApiBindingEdgeSelect; + }; +}; +export interface DeleteFunctionApiBindingPayload { + clientMutationId?: string | null; + /** The `FunctionApiBinding` that was deleted by this mutation. */ + functionApiBinding?: FunctionApiBinding | null; + functionApiBindingEdge?: FunctionApiBindingEdge | null; } -/** An input for mutations affecting `ResourceStatusCheck` */ -export interface ResourceStatusCheckInput { - /** When the check completed (NULL while pending/running) */ - completedAt?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - /** Unique status check identifier */ - id?: string; - /** When the check was requested */ - requestedAt?: string; - /** User who requested the check (NULL for system/scheduled) */ - requestedBy?: string; - /** Resource to check */ - resourceId: string; - /** Diagnostic snapshot: k8s_status, conditions, pod_logs_tail, events */ - result?: Record; - /** Check lifecycle: pending, running, completed, failed */ - status?: string; +export type DeleteFunctionApiBindingPayloadSelect = { + clientMutationId?: boolean; + functionApiBinding?: { + select: FunctionApiBindingSelect; + }; + functionApiBindingEdge?: { + select: FunctionApiBindingEdgeSelect; + }; +}; +export interface CreateFunctionCapabilityBindingPayload { + clientMutationId?: string | null; + /** The `FunctionCapabilityBinding` that was created by this mutation. */ + functionCapabilityBinding?: FunctionCapabilityBinding | null; + functionCapabilityBindingEdge?: FunctionCapabilityBindingEdge | null; } -/** An input for mutations affecting `ResourceUsageLog` */ -export interface ResourceUsageLogInput { - /** CPU gauge in millicores at sample time (NULL when unknown) */ - cpuMillicores?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - /** Unique sample identifier */ - id?: string; - /** Seconds covered by this sample — runtime is SUM(interval_seconds) */ - intervalSeconds: number; - /** Memory gauge in bytes at sample time (NULL when unknown) */ - memoryBytes?: string; - /** Structured gauges: replicas, pod counts, phases, and other producer-specific metrics */ - metrics?: Record; - /** Namespace the measured workload runs in */ - namespaceId: string; - /** Resource this sample measures (NULL for namespace-grain catch-all rows) */ - resourceId?: string; - /** Sample timestamp (partition key) — end of the measured interval */ - sampledAt?: string; - /** Sample producer: self (workload heartbeat), observer (reconciler), or prometheus (namespace-grain usage collector) */ - source: string; +export type CreateFunctionCapabilityBindingPayloadSelect = { + clientMutationId?: boolean; + functionCapabilityBinding?: { + select: FunctionCapabilityBindingSelect; + }; + functionCapabilityBindingEdge?: { + select: FunctionCapabilityBindingEdgeSelect; + }; +}; +export interface UpdateFunctionCapabilityBindingPayload { + clientMutationId?: string | null; + /** The `FunctionCapabilityBinding` that was updated by this mutation. */ + functionCapabilityBinding?: FunctionCapabilityBinding | null; + functionCapabilityBindingEdge?: FunctionCapabilityBindingEdge | null; } -/** An input for mutations affecting `ResourceUsageSummary` */ -export interface ResourceUsageSummaryInput { - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - /** Day this summary covers (partition key) */ - date: string; - /** Memory usage for the day — SUM(memory_bytes * interval_seconds) normalized to GB-seconds */ - gbSeconds?: string; - /** Unique usage summary identifier */ - id?: string; - /** Maximum CPU gauge observed during the day (NULL when never reported) */ - maxCpuMillicores?: string; - /** Maximum memory gauge observed during the day (NULL when never reported) */ - maxMemoryBytes?: string; - /** Namespace the resource runs in */ - namespaceId: string; - /** Resource this summary covers (NULL for namespace-grain catch-all summaries) */ - resourceId?: string; - /** Total measured runtime for the day — SUM(interval_seconds) */ - runtimeSeconds?: string; - /** Number of raw samples aggregated into this summary */ - sampleCount?: number; +export type UpdateFunctionCapabilityBindingPayloadSelect = { + clientMutationId?: boolean; + functionCapabilityBinding?: { + select: FunctionCapabilityBindingSelect; + }; + functionCapabilityBindingEdge?: { + select: FunctionCapabilityBindingEdgeSelect; + }; +}; +export interface DeleteFunctionCapabilityBindingPayload { + clientMutationId?: string | null; + /** The `FunctionCapabilityBinding` that was deleted by this mutation. */ + functionCapabilityBinding?: FunctionCapabilityBinding | null; + functionCapabilityBindingEdge?: FunctionCapabilityBindingEdge | null; } -/** An input for mutations affecting `WebhookEndpoint` */ -export interface WebhookEndpointInput { - /** Whether this endpoint currently accepts deliveries */ - active?: boolean; - createdAt?: string; - createdBy?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - /** Same-scope function definition invoked on delivery. The function must list the webhook channel in access_channels. */ - functionDefinitionId: string; - /** Inbound Host header this endpoint matches (normalized lower-case, no port) */ - host: string; - id?: string; - /** Namespace that owns this endpoint and contains its signing secret */ - namespaceId: string; - /** Exact request path this endpoint matches (e.g. /webhooks/stripe) */ - path: string; - /** Verification scheme: generic (HMAC), stripe, or github */ - provider?: string; - /** Maximum age (seconds) of a signed provider timestamp before the delivery is rejected as a replay */ - replayWindowSeconds?: number; - /** Name of the signing secret in the infra secrets store. The gateway resolves the value through the generated secrets getter — the plaintext secret is never stored here. */ - signingSecretName: string; - updatedAt?: string; - updatedBy?: string; +export type DeleteFunctionCapabilityBindingPayloadSelect = { + clientMutationId?: boolean; + functionCapabilityBinding?: { + select: FunctionCapabilityBindingSelect; + }; + functionCapabilityBindingEdge?: { + select: FunctionCapabilityBindingEdgeSelect; + }; +}; +export interface CreateFunctionDefinitionPayload { + clientMutationId?: string | null; + /** The `FunctionDefinition` that was created by this mutation. */ + functionDefinition?: FunctionDefinition | null; + functionDefinitionEdge?: FunctionDefinitionEdge | null; } -/** An input for mutations affecting `WebhookEvent` */ -export interface WebhookEventInput { - createdAt?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - /** Endpoint that accepted this delivery */ - endpointId: string; - /** Failure detail when status = failed */ - error?: string; - /** Provider-supplied delivery/event id used for idempotent dedup */ - externalEventId: string; - id?: string; - /** created_at of the enqueued invocation (partition key companion to invocation_id) */ - invocationCreatedAt?: string; - /** Pending function invocation enqueued for this delivery (NULL until enqueued) */ - invocationId?: string; - /** Parsed delivery payload (parsed only after signature verification over the exact raw bytes) */ - payload?: Record; - /** Provider that produced this delivery (copied from the endpoint at acceptance) */ - provider: string; - /** Signed provider timestamp used for replay-window validation (NULL when the provider supplies none) */ - providerTimestamp?: string; - /** Acceptance lifecycle: accepted, processed, failed */ - status?: string; - updatedAt?: string; +export type CreateFunctionDefinitionPayloadSelect = { + clientMutationId?: boolean; + functionDefinition?: { + select: FunctionDefinitionSelect; + }; + functionDefinitionEdge?: { + select: FunctionDefinitionEdgeSelect; + }; +}; +export interface UpdateFunctionDefinitionPayload { + clientMutationId?: string | null; + /** The `FunctionDefinition` that was updated by this mutation. */ + functionDefinition?: FunctionDefinition | null; + functionDefinitionEdge?: FunctionDefinitionEdge | null; } -/** A filter to be used against `FunctionInvocation` object types. All fields are combined with a logical ‘and.’ */ -export interface FunctionInvocationFilter { - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: FunctionInvocationFilter[]; - /** Filter by the object’s `apiBinding` relation. */ - apiBinding?: FunctionApiBindingFilter; - /** A related `apiBinding` exists. */ - apiBindingExists?: boolean; - /** Filter by the object’s `apiBindingId` field. */ - apiBindingId?: UUIDFilter; - /** Filter by the object’s `channel` field. */ - channel?: StringFilter; - /** Filter by the object’s `completedAt` field. */ - completedAt?: DatetimeFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `definitionScope` field. */ - definitionScope?: StringFilter; - /** Filter by the object’s `durationMs` field. */ - durationMs?: IntFilter; - /** Filter by the object’s `error` field. */ - error?: StringFilter; - /** Filter by the object’s `functionDefinitionId` field. */ - functionDefinitionId?: UUIDFilter; - /** Filter by the object’s `graphExecutionId` field. */ - graphExecutionId?: UUIDFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `jobId` field. */ - jobId?: BigIntFilter; - /** Negates the expression. */ - not?: FunctionInvocationFilter; - /** Checks for any expressions in this list. */ - or?: FunctionInvocationFilter[]; - /** Filter by the object’s `parentInvocationId` field. */ - parentInvocationId?: UUIDFilter; - /** Filter by the object’s `payload` field. */ - payload?: JSONFilter; - /** Filter by the object’s `provenance` field. */ - provenance?: JSONFilter; - /** Filter by the object’s `result` field. */ - result?: JSONFilter; - /** Filter by the object’s `startedAt` field. */ - startedAt?: DatetimeFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `taskIdentifier` field. */ - taskIdentifier?: StringFilter; +export type UpdateFunctionDefinitionPayloadSelect = { + clientMutationId?: boolean; + functionDefinition?: { + select: FunctionDefinitionSelect; + }; + functionDefinitionEdge?: { + select: FunctionDefinitionEdgeSelect; + }; +}; +export interface DeleteFunctionDefinitionPayload { + clientMutationId?: string | null; + /** The `FunctionDefinition` that was deleted by this mutation. */ + functionDefinition?: FunctionDefinition | null; + functionDefinitionEdge?: FunctionDefinitionEdge | null; +} +export type DeleteFunctionDefinitionPayloadSelect = { + clientMutationId?: boolean; + functionDefinition?: { + select: FunctionDefinitionSelect; + }; + functionDefinitionEdge?: { + select: FunctionDefinitionEdgeSelect; + }; +}; +export interface CreateFunctionDeploymentPayload { + clientMutationId?: string | null; + /** The `FunctionDeployment` that was created by this mutation. */ + functionDeployment?: FunctionDeployment | null; + functionDeploymentEdge?: FunctionDeploymentEdge | null; } -/** A filter to be used against `FunctionApiBinding` object types. All fields are combined with a logical ‘and.’ */ -export interface FunctionApiBindingFilter { - /** Filter by the object’s `alias` field. */ - alias?: StringFilter; - /** Checks for all expressions in this list. */ - and?: FunctionApiBindingFilter[]; - /** 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 `functionDefinition` relation. */ - functionDefinition?: FunctionDefinitionFilter; - /** Filter by the object’s `functionDefinitionId` field. */ - functionDefinitionId?: UUIDFilter; - /** Filter by the object’s `functionInvocationsByApiBindingId` relation. */ - functionInvocationsByApiBindingId?: FunctionApiBindingToManyFunctionInvocationFilter; - /** `functionInvocationsByApiBindingId` exist. */ - functionInvocationsByApiBindingIdExist?: boolean; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Negates the expression. */ - not?: FunctionApiBindingFilter; - /** Checks for any expressions in this list. */ - or?: FunctionApiBindingFilter[]; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; +export type CreateFunctionDeploymentPayloadSelect = { + clientMutationId?: boolean; + functionDeployment?: { + select: FunctionDeploymentSelect; + }; + functionDeploymentEdge?: { + select: FunctionDeploymentEdgeSelect; + }; +}; +export interface UpdateFunctionDeploymentPayload { + clientMutationId?: string | null; + /** The `FunctionDeployment` that was updated by this mutation. */ + functionDeployment?: FunctionDeployment | null; + functionDeploymentEdge?: FunctionDeploymentEdge | null; } -/** A filter to be used against `FunctionCapabilityBinding` object types. All fields are combined with a logical ‘and.’ */ -export interface FunctionCapabilityBindingFilter { - /** Checks for all expressions in this list. */ - and?: FunctionCapabilityBindingFilter[]; - /** 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 `function` relation. */ - function?: FunctionDefinitionFilter; - /** A related `function` exists. */ - functionExists?: boolean; - /** Filter by the object’s `functionId` field. */ - functionId?: UUIDFilter; - /** Filter by the object’s `graphId` field. */ - graphId?: UUIDFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `key` field. */ - key?: StringFilter; - /** Filter by the object’s `lifecycle` field. */ - lifecycle?: StringFilter; - /** Filter by the object’s `metadata` field. */ - metadata?: JSONFilter; - /** Negates the expression. */ - not?: FunctionCapabilityBindingFilter; - /** Checks for any expressions in this list. */ - or?: FunctionCapabilityBindingFilter[]; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; +export type UpdateFunctionDeploymentPayloadSelect = { + clientMutationId?: boolean; + functionDeployment?: { + select: FunctionDeploymentSelect; + }; + functionDeploymentEdge?: { + select: FunctionDeploymentEdgeSelect; + }; +}; +export interface DeleteFunctionDeploymentPayload { + clientMutationId?: string | null; + /** The `FunctionDeployment` that was deleted by this mutation. */ + functionDeployment?: FunctionDeployment | null; + functionDeploymentEdge?: FunctionDeploymentEdge | null; } -/** A filter to be used against `WebhookEndpoint` object types. All fields are combined with a logical ‘and.’ */ -export interface WebhookEndpointFilter { - /** Filter by the object’s `active` field. */ - active?: BooleanFilter; - /** Checks for all expressions in this list. */ - and?: WebhookEndpointFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `functionDefinition` relation. */ - functionDefinition?: FunctionDefinitionFilter; - /** Filter by the object’s `functionDefinitionId` field. */ - functionDefinitionId?: UUIDFilter; - /** Filter by the object’s `host` field. */ - host?: StringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; - /** Negates the expression. */ - not?: WebhookEndpointFilter; - /** Checks for any expressions in this list. */ - or?: WebhookEndpointFilter[]; - /** Filter by the object’s `path` field. */ - path?: StringFilter; - /** Filter by the object’s `provider` field. */ - provider?: StringFilter; - /** Filter by the object’s `replayWindowSeconds` field. */ - replayWindowSeconds?: IntFilter; - /** Filter by the object’s `signingSecretName` field. */ - signingSecretName?: StringFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `webhookEventsByEndpointId` relation. */ - webhookEventsByEndpointId?: WebhookEndpointToManyWebhookEventFilter; - /** `webhookEventsByEndpointId` exist. */ - webhookEventsByEndpointIdExist?: boolean; +export type DeleteFunctionDeploymentPayloadSelect = { + clientMutationId?: boolean; + functionDeployment?: { + select: FunctionDeploymentSelect; + }; + functionDeploymentEdge?: { + select: FunctionDeploymentEdgeSelect; + }; +}; +export interface CreateFunctionDeploymentEventPayload { + clientMutationId?: string | null; + /** The `FunctionDeploymentEvent` that was created by this mutation. */ + functionDeploymentEvent?: FunctionDeploymentEvent | null; + functionDeploymentEventEdge?: FunctionDeploymentEventEdge | null; } -/** A filter to be used against `FunctionGraphExecution` object types. All fields are combined with a logical ‘and.’ */ -export interface FunctionGraphExecutionFilter { - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: FunctionGraphExecutionFilter[]; - /** Filter by the object’s `completedAt` field. */ - completedAt?: DatetimeFilter; - /** Filter by the object’s `currentWave` field. */ - currentWave?: IntFilter; - /** Filter by the object’s `definitionsCommitId` field. */ - definitionsCommitId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `entityType` field. */ - entityType?: StringFilter; - /** Filter by the object’s `errorCode` field. */ - errorCode?: StringFilter; - /** Filter by the object’s `errorMessage` field. */ - errorMessage?: StringFilter; - /** Filter by the object’s `executionPlan` field. */ - executionPlan?: JSONFilter; - /** Filter by the object’s `graph` relation. */ - graph?: FunctionGraphFilter; - /** Filter by the object’s `graphId` field. */ - graphId?: UUIDFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `inputPayload` field. */ - inputPayload?: JSONFilter; - /** Filter by the object’s `invocationCreatedAt` field. */ - invocationCreatedAt?: DatetimeFilter; - /** Filter by the object’s `invocationId` field. */ - invocationId?: UUIDFilter; - /** Filter by the object’s `lastProgressAt` field. */ - lastProgressAt?: DatetimeFilter; - /** Filter by the object’s `maxPendingJobs` field. */ - maxPendingJobs?: IntFilter; - /** Filter by the object’s `maxTicks` field. */ - maxTicks?: IntFilter; - /** Filter by the object’s `nodeOutputs` field. */ - nodeOutputs?: JSONFilter; - /** Negates the expression. */ - not?: FunctionGraphExecutionFilter; - /** Checks for any expressions in this list. */ - or?: FunctionGraphExecutionFilter[]; - /** Filter by the object’s `organizationId` field. */ - organizationId?: UUIDFilter; - /** Filter by the object’s `outputNames` field. */ - outputNames?: StringListFilter; - /** Filter by the object’s `outputNode` field. */ - outputNode?: StringFilter; - /** Filter by the object’s `outputPayload` field. */ - outputPayload?: JSONFilter; - /** Filter by the object’s `outputPort` field. */ - outputPort?: StringFilter; - /** Filter by the object’s `parentExecutionId` field. */ - parentExecutionId?: UUIDFilter; - /** Filter by the object’s `parentInvocationId` field. */ - parentInvocationId?: UUIDFilter; - /** Filter by the object’s `parentNodeName` field. */ - parentNodeName?: StringFilter; - /** Filter by the object’s `principalId` field. */ - principalId?: UUIDFilter; - /** Filter by the object’s `scopeId` field. */ - scopeId?: UUIDFilter; - /** Filter by the object’s `startedAt` field. */ - startedAt?: DatetimeFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `tickCount` field. */ - tickCount?: IntFilter; - /** Filter by the object’s `timeoutAt` field. */ - timeoutAt?: DatetimeFilter; +export type CreateFunctionDeploymentEventPayloadSelect = { + clientMutationId?: boolean; + functionDeploymentEvent?: { + select: FunctionDeploymentEventSelect; + }; + functionDeploymentEventEdge?: { + select: FunctionDeploymentEventEdgeSelect; + }; +}; +export interface UpdateFunctionDeploymentEventPayload { + clientMutationId?: string | null; + /** The `FunctionDeploymentEvent` that was updated by this mutation. */ + functionDeploymentEvent?: FunctionDeploymentEvent | null; + functionDeploymentEventEdge?: FunctionDeploymentEventEdge | null; +} +export type UpdateFunctionDeploymentEventPayloadSelect = { + clientMutationId?: boolean; + functionDeploymentEvent?: { + select: FunctionDeploymentEventSelect; + }; + functionDeploymentEventEdge?: { + select: FunctionDeploymentEventEdgeSelect; + }; +}; +export interface DeleteFunctionDeploymentEventPayload { + clientMutationId?: string | null; + /** The `FunctionDeploymentEvent` that was deleted by this mutation. */ + functionDeploymentEvent?: FunctionDeploymentEvent | null; + functionDeploymentEventEdge?: FunctionDeploymentEventEdge | null; } -/** A filter to be used against `PlatformFunctionDefinition` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformFunctionDefinitionFilter { - /** Filter by the object’s `accessChannels` field. */ - accessChannels?: StringListFilter; - /** Checks for all expressions in this list. */ - and?: PlatformFunctionDefinitionFilter[]; - /** Filter by the object’s `billable` field. */ - billable?: BooleanFilter; - /** Filter by the object’s `category` field. */ - category?: StringFilter; - /** Filter by the object’s `concurrency` field. */ - concurrency?: IntFilter; - /** Filter by the object’s `cpuLimitMillicores` field. */ - cpuLimitMillicores?: BigIntFilter; - /** Filter by the object’s `cpuRequestMillicores` field. */ - cpuRequestMillicores?: BigIntFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `fnCategory` field. */ - fnCategory?: StringFilter; - /** Filter by the object’s `functionColumns` field. */ - functionColumns?: JSONFilter; - /** Filter by the object’s `graph` relation. */ - graph?: FunctionGraphFilter; - /** A related `graph` exists. */ - graphExists?: boolean; - /** Filter by the object’s `graphId` field. */ - graphId?: UUIDFilter; - /** Filter by the object’s `icon` field. */ - icon?: StringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `image` field. */ - image?: StringFilter; - /** Filter by the object’s `inputs` field. */ - inputs?: JSONFilter; - /** Filter by the object’s `integrations` field. */ - integrations?: StringListFilter; - /** Filter by the object’s `isPublished` field. */ - isPublished?: BooleanFilter; - /** Filter by the object’s `maxAttempts` field. */ - maxAttempts?: IntFilter; - /** Filter by the object’s `memoryLimitBytes` field. */ - memoryLimitBytes?: BigIntFilter; - /** Filter by the object’s `memoryRequestBytes` field. */ - memoryRequestBytes?: BigIntFilter; - /** Filter by the object’s `moduleTable` field. */ - moduleTable?: StringFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Negates the expression. */ - not?: PlatformFunctionDefinitionFilter; - /** Checks for any expressions in this list. */ - or?: PlatformFunctionDefinitionFilter[]; - /** Filter by the object’s `outputs` field. */ - outputs?: JSONFilter; - /** Filter by the object’s `payloadArgs` field. */ - payloadArgs?: JSONFilter; - /** Filter by the object’s `platformFunctionApiBindingsByFunctionDefinitionId` relation. */ - platformFunctionApiBindingsByFunctionDefinitionId?: PlatformFunctionDefinitionToManyPlatformFunctionApiBindingFilter; - /** `platformFunctionApiBindingsByFunctionDefinitionId` exist. */ - platformFunctionApiBindingsByFunctionDefinitionIdExist?: boolean; - /** Filter by the object’s `platformFunctionCapabilityBindingsByFunctionId` relation. */ - platformFunctionCapabilityBindingsByFunctionId?: PlatformFunctionDefinitionToManyPlatformFunctionCapabilityBindingFilter; - /** `platformFunctionCapabilityBindingsByFunctionId` exist. */ - platformFunctionCapabilityBindingsByFunctionIdExist?: boolean; - /** Filter by the object’s `platformWebhookEndpointsByFunctionDefinitionId` relation. */ - platformWebhookEndpointsByFunctionDefinitionId?: PlatformFunctionDefinitionToManyPlatformWebhookEndpointFilter; - /** `platformWebhookEndpointsByFunctionDefinitionId` exist. */ - platformWebhookEndpointsByFunctionDefinitionIdExist?: boolean; - /** Filter by the object’s `priority` field. */ - priority?: IntFilter; - /** Filter by the object’s `props` field. */ - props?: JSONFilter; - /** Filter by the object’s `protected` field. */ - protected?: BooleanFilter; - /** Filter by the object’s `publishedAt` field. */ - publishedAt?: DatetimeFilter; - /** Filter by the object’s `queueName` field. */ - queueName?: StringFilter; - /** Filter by the object’s `requiredBuckets` field. */ - 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. */ - runtime?: StringFilter; - /** Filter by the object’s `scaleMax` field. */ - scaleMax?: IntFilter; - /** Filter by the object’s `scaleMin` field. */ - scaleMin?: IntFilter; - /** Filter by the object’s `system` field. */ - system?: BooleanFilter; - /** Filter by the object’s `targetFunction` field. */ - targetFunction?: StringFilter; - /** Filter by the object’s `targetSchema` field. */ - targetSchema?: StringFilter; - /** Filter by the object’s `taskIdentifier` field. */ - taskIdentifier?: StringFilter; - /** Filter by the object’s `timeoutSeconds` field. */ - timeoutSeconds?: IntFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `volatile` field. */ - volatile?: BooleanFilter; +export type DeleteFunctionDeploymentEventPayloadSelect = { + clientMutationId?: boolean; + functionDeploymentEvent?: { + select: FunctionDeploymentEventSelect; + }; + functionDeploymentEventEdge?: { + select: FunctionDeploymentEventEdgeSelect; + }; +}; +export interface CreateFunctionExecutionLogPayload { + clientMutationId?: string | null; + /** The `FunctionExecutionLog` that was created by this mutation. */ + functionExecutionLog?: FunctionExecutionLog | null; + functionExecutionLogEdge?: FunctionExecutionLogEdge | null; } -/** A filter to be used against `FunctionDeployment` object types. All fields are combined with a logical ‘and.’ */ -export interface FunctionDeploymentFilter { - /** Checks for all expressions in this list. */ - and?: FunctionDeploymentFilter[]; - /** Filter by the object’s `annotations` field. */ - annotations?: JSONFilter; - /** Filter by the object’s `concurrency` field. */ - concurrency?: IntFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `errorCount` field. */ - errorCount?: IntFilter; - /** Filter by the object’s `handlerName` field. */ - handlerName?: StringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `image` field. */ - image?: StringFilter; - /** Filter by the object’s `imageVersion` field. */ - imageVersion?: StringFilter; - /** Filter by the object’s `labels` field. */ - labels?: JSONFilter; - /** Filter by the object’s `lastError` field. */ - lastError?: StringFilter; - /** Filter by the object’s `lastErrorAt` field. */ - lastErrorAt?: DatetimeFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; - /** Negates the expression. */ - 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. */ - revision?: IntFilter; - /** Filter by the object’s `scaleMax` field. */ - scaleMax?: IntFilter; - /** Filter by the object’s `scaleMin` field. */ - scaleMin?: IntFilter; - /** Filter by the object’s `serviceName` field. */ - serviceName?: StringFilter; - /** Filter by the object’s `serviceUrl` field. */ - serviceUrl?: StringFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `timeoutSeconds` field. */ - timeoutSeconds?: IntFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; +export type CreateFunctionExecutionLogPayloadSelect = { + clientMutationId?: boolean; + functionExecutionLog?: { + select: FunctionExecutionLogSelect; + }; + functionExecutionLogEdge?: { + select: FunctionExecutionLogEdgeSelect; + }; +}; +export interface UpdateFunctionExecutionLogPayload { + clientMutationId?: string | null; + /** The `FunctionExecutionLog` that was updated by this mutation. */ + functionExecutionLog?: FunctionExecutionLog | null; + functionExecutionLogEdge?: FunctionExecutionLogEdge | null; } -/** A filter to be used against `ResourceDefinition` object types. All fields are combined with a logical ‘and.’ */ -export interface ResourceDefinitionFilter { - /** Checks for all expressions in this list. */ - and?: ResourceDefinitionFilter[]; - /** Filter by the object’s `annotations` field. */ - annotations?: JSONFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `defaultSpec` field. */ - defaultSpec?: JSONFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `integrations` field. */ - integrations?: StringListFilter; - /** Filter by the object’s `kind` field. */ - kind?: StringFilter; - /** Filter by the object’s `labels` field. */ - labels?: JSONFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; - /** Negates the expression. */ - not?: ResourceDefinitionFilter; - /** Checks for any expressions in this list. */ - or?: ResourceDefinitionFilter[]; - /** Filter by the object’s `paramsSchema` field. */ - paramsSchema?: JSONFilter; - /** Filter by the object’s `resources` relation. */ - resources?: ResourceDefinitionToManyResourceFilter; - /** `resources` exist. */ - resourcesExist?: boolean; - /** Filter by the object’s `slug` field. */ - slug?: StringFilter; - /** Filter by the object’s `stepUpMinAge` field. */ - stepUpMinAge?: IntervalFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; +export type UpdateFunctionExecutionLogPayloadSelect = { + clientMutationId?: boolean; + functionExecutionLog?: { + select: FunctionExecutionLogSelect; + }; + functionExecutionLogEdge?: { + select: FunctionExecutionLogEdgeSelect; + }; +}; +export interface DeleteFunctionExecutionLogPayload { + clientMutationId?: string | null; + /** The `FunctionExecutionLog` that was deleted by this mutation. */ + functionExecutionLog?: FunctionExecutionLog | null; + functionExecutionLogEdge?: FunctionExecutionLogEdge | null; } -/** A filter to be used against `ResourceInstallation` object types. All fields are combined with a logical ‘and.’ */ -export interface ResourceInstallationFilter { - /** Checks for all expressions in this list. */ - and?: ResourceInstallationFilter[]; - /** Filter by the object’s `commitId` field. */ - commitId?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; - /** Negates the expression. */ - not?: ResourceInstallationFilter; - /** Checks for any expressions in this list. */ - or?: ResourceInstallationFilter[]; - /** Filter by the object’s `params` field. */ - params?: JSONFilter; - /** Filter by the object’s `resourcesByInstallationId` relation. */ - resourcesByInstallationId?: ResourceInstallationToManyResourceFilter; - /** `resourcesByInstallationId` exist. */ - resourcesByInstallationIdExist?: boolean; - /** Filter by the object’s `revision` field. */ - revision?: IntFilter; - /** Filter by the object’s `slug` field. */ - slug?: StringFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `storeId` field. */ - storeId?: UUIDFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; +export type DeleteFunctionExecutionLogPayloadSelect = { + clientMutationId?: boolean; + functionExecutionLog?: { + select: FunctionExecutionLogSelect; + }; + functionExecutionLogEdge?: { + select: FunctionExecutionLogEdgeSelect; + }; +}; +export interface CreateFunctionGraphCommitPayload { + clientMutationId?: string | null; + /** The `FunctionGraphCommit` that was created by this mutation. */ + functionGraphCommit?: FunctionGraphCommit | null; + functionGraphCommitEdge?: FunctionGraphCommitEdge | null; } -/** A filter to be used against `Resource` object types. All fields are combined with a logical ‘and.’ */ -export interface ResourceFilter { - /** Checks for all expressions in this list. */ - and?: ResourceFilter[]; - /** Filter by the object’s `annotations` field. */ - annotations?: JSONFilter; - /** Filter by the object’s `cpuLimitMillicores` field. */ - cpuLimitMillicores?: BigIntFilter; - /** Filter by the object’s `cpuRequestMillicores` field. */ - cpuRequestMillicores?: BigIntFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `errorCount` field. */ - errorCount?: IntFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `installation` relation. */ - installation?: ResourceInstallationFilter; - /** A related `installation` exists. */ - installationExists?: boolean; - /** Filter by the object’s `installationId` field. */ - installationId?: UUIDFilter; - /** Filter by the object’s `integrations` field. */ - integrations?: StringListFilter; - /** Filter by the object’s `kind` field. */ - kind?: StringFilter; - /** Filter by the object’s `labels` field. */ - labels?: JSONFilter; - /** Filter by the object’s `lastError` field. */ - lastError?: StringFilter; - /** Filter by the object’s `lastHeartbeatAt` field. */ - lastHeartbeatAt?: DatetimeFilter; - /** Filter by the object’s `memoryLimitBytes` field. */ - memoryLimitBytes?: BigIntFilter; - /** Filter by the object’s `memoryRequestBytes` field. */ - memoryRequestBytes?: BigIntFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; - /** Negates the expression. */ - not?: ResourceFilter; - /** Checks for any expressions in this list. */ - or?: ResourceFilter[]; - /** Filter by the object’s `realm` field. */ - realm?: StringFilter; - /** Filter by the object’s `replicas` field. */ - replicas?: IntFilter; - /** Filter by the object’s `resourceDefinition` relation. */ - resourceDefinition?: ResourceDefinitionFilter; - /** A related `resourceDefinition` exists. */ - resourceDefinitionExists?: boolean; - /** Filter by the object’s `resourceDefinitionId` field. */ - resourceDefinitionId?: UUIDFilter; - /** Filter by the object’s `resourceStatusChecks` relation. */ - resourceStatusChecks?: ResourceToManyResourceStatusCheckFilter; - /** `resourceStatusChecks` exist. */ - resourceStatusChecksExist?: boolean; - /** Filter by the object’s `slug` field. */ - slug?: StringFilter; - /** Filter by the object’s `spec` field. */ - spec?: JSONFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `statusObserved` field. */ - statusObserved?: JSONFilter; - /** Filter by the object’s `storageClass` field. */ - storageClass?: StringFilter; - /** Filter by the object’s `storageSizeBytes` field. */ - storageSizeBytes?: BigIntFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; +export type CreateFunctionGraphCommitPayloadSelect = { + clientMutationId?: boolean; + functionGraphCommit?: { + select: FunctionGraphCommitSelect; + }; + functionGraphCommitEdge?: { + select: FunctionGraphCommitEdgeSelect; + }; +}; +export interface UpdateFunctionGraphCommitPayload { + clientMutationId?: string | null; + /** The `FunctionGraphCommit` that was updated by this mutation. */ + functionGraphCommit?: FunctionGraphCommit | null; + functionGraphCommitEdge?: FunctionGraphCommitEdge | null; } -/** A filter to be used against `PlatformFunctionInvocation` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformFunctionInvocationFilter { - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: PlatformFunctionInvocationFilter[]; - /** Filter by the object’s `apiBinding` relation. */ - apiBinding?: PlatformFunctionApiBindingFilter; - /** A related `apiBinding` exists. */ - apiBindingExists?: boolean; - /** Filter by the object’s `apiBindingId` field. */ - apiBindingId?: UUIDFilter; - /** Filter by the object’s `channel` field. */ - channel?: StringFilter; - /** Filter by the object’s `completedAt` field. */ - completedAt?: DatetimeFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `definitionScope` field. */ - definitionScope?: StringFilter; - /** Filter by the object’s `durationMs` field. */ - durationMs?: IntFilter; - /** Filter by the object’s `error` field. */ - error?: StringFilter; - /** Filter by the object’s `functionDefinitionId` field. */ - functionDefinitionId?: UUIDFilter; - /** Filter by the object’s `graphExecutionId` field. */ - graphExecutionId?: UUIDFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `jobId` field. */ - jobId?: BigIntFilter; - /** Negates the expression. */ - not?: PlatformFunctionInvocationFilter; - /** Checks for any expressions in this list. */ - or?: PlatformFunctionInvocationFilter[]; - /** Filter by the object’s `parentInvocationId` field. */ - parentInvocationId?: UUIDFilter; - /** Filter by the object’s `payload` field. */ - payload?: JSONFilter; - /** Filter by the object’s `provenance` field. */ - provenance?: JSONFilter; - /** Filter by the object’s `result` field. */ - result?: JSONFilter; - /** Filter by the object’s `startedAt` field. */ - startedAt?: DatetimeFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `taskIdentifier` field. */ - taskIdentifier?: StringFilter; +export type UpdateFunctionGraphCommitPayloadSelect = { + clientMutationId?: boolean; + functionGraphCommit?: { + select: FunctionGraphCommitSelect; + }; + functionGraphCommitEdge?: { + select: FunctionGraphCommitEdgeSelect; + }; +}; +export interface DeleteFunctionGraphCommitPayload { + clientMutationId?: string | null; + /** The `FunctionGraphCommit` that was deleted by this mutation. */ + functionGraphCommit?: FunctionGraphCommit | null; + functionGraphCommitEdge?: FunctionGraphCommitEdge | null; +} +export type DeleteFunctionGraphCommitPayloadSelect = { + clientMutationId?: boolean; + functionGraphCommit?: { + select: FunctionGraphCommitSelect; + }; + functionGraphCommitEdge?: { + select: FunctionGraphCommitEdgeSelect; + }; +}; +export interface CreateFunctionGraphPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type CreateFunctionGraphPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface UpdateFunctionGraphPayload { + clientMutationId?: string | null; + /** The `FunctionGraph` that was updated by this mutation. */ + functionGraph?: FunctionGraph | null; + functionGraphEdge?: FunctionGraphEdge | null; +} +export type UpdateFunctionGraphPayloadSelect = { + clientMutationId?: boolean; + functionGraph?: { + select: FunctionGraphSelect; + }; + functionGraphEdge?: { + select: FunctionGraphEdgeSelect; + }; +}; +export interface DeleteFunctionGraphPayload { + clientMutationId?: string | null; + /** The `FunctionGraph` that was deleted by this mutation. */ + functionGraph?: FunctionGraph | null; + functionGraphEdge?: FunctionGraphEdge | null; } -/** A filter to be used against `PlatformFunctionApiBinding` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformFunctionApiBindingFilter { - /** Filter by the object’s `alias` field. */ - alias?: StringFilter; - /** Checks for all expressions in this list. */ - and?: PlatformFunctionApiBindingFilter[]; - /** 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 `functionDefinition` relation. */ - functionDefinition?: PlatformFunctionDefinitionFilter; - /** Filter by the object’s `functionDefinitionId` field. */ - functionDefinitionId?: UUIDFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Negates the expression. */ - not?: PlatformFunctionApiBindingFilter; - /** Checks for any expressions in this list. */ - or?: PlatformFunctionApiBindingFilter[]; - /** Filter by the object’s `platformFunctionInvocationsByApiBindingId` relation. */ - platformFunctionInvocationsByApiBindingId?: PlatformFunctionApiBindingToManyPlatformFunctionInvocationFilter; - /** `platformFunctionInvocationsByApiBindingId` exist. */ - platformFunctionInvocationsByApiBindingIdExist?: boolean; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; +export type DeleteFunctionGraphPayloadSelect = { + clientMutationId?: boolean; + functionGraph?: { + select: FunctionGraphSelect; + }; + functionGraphEdge?: { + select: FunctionGraphEdgeSelect; + }; +}; +export interface CreateFunctionGraphExecutionPayload { + clientMutationId?: string | null; + /** The `FunctionGraphExecution` that was created by this mutation. */ + functionGraphExecution?: FunctionGraphExecution | null; + functionGraphExecutionEdge?: FunctionGraphExecutionEdge | null; } -/** A filter to be used against `PlatformFunctionCapabilityBinding` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformFunctionCapabilityBindingFilter { - /** Checks for all expressions in this list. */ - and?: PlatformFunctionCapabilityBindingFilter[]; - /** Filter by the object’s `bucketId` field. */ - bucketId?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `function` relation. */ - function?: PlatformFunctionDefinitionFilter; - /** A related `function` exists. */ - functionExists?: boolean; - /** Filter by the object’s `functionId` field. */ - functionId?: UUIDFilter; - /** Filter by the object’s `graphId` field. */ - graphId?: UUIDFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `key` field. */ - key?: StringFilter; - /** Filter by the object’s `lifecycle` field. */ - lifecycle?: StringFilter; - /** Filter by the object’s `metadata` field. */ - metadata?: JSONFilter; - /** Negates the expression. */ - not?: PlatformFunctionCapabilityBindingFilter; - /** Checks for any expressions in this list. */ - or?: PlatformFunctionCapabilityBindingFilter[]; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; +export type CreateFunctionGraphExecutionPayloadSelect = { + clientMutationId?: boolean; + functionGraphExecution?: { + select: FunctionGraphExecutionSelect; + }; + functionGraphExecutionEdge?: { + select: FunctionGraphExecutionEdgeSelect; + }; +}; +export interface UpdateFunctionGraphExecutionPayload { + clientMutationId?: string | null; + /** The `FunctionGraphExecution` that was updated by this mutation. */ + functionGraphExecution?: FunctionGraphExecution | null; + functionGraphExecutionEdge?: FunctionGraphExecutionEdge | null; } -/** A filter to be used against `PlatformWebhookEndpoint` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformWebhookEndpointFilter { - /** Filter by the object’s `active` field. */ - active?: BooleanFilter; - /** Checks for all expressions in this list. */ - and?: PlatformWebhookEndpointFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `functionDefinition` relation. */ - functionDefinition?: PlatformFunctionDefinitionFilter; - /** Filter by the object’s `functionDefinitionId` field. */ - functionDefinitionId?: UUIDFilter; - /** Filter by the object’s `host` field. */ - host?: StringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: PlatformNamespaceFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; - /** Negates the expression. */ - not?: PlatformWebhookEndpointFilter; - /** Checks for any expressions in this list. */ - or?: PlatformWebhookEndpointFilter[]; - /** Filter by the object’s `path` field. */ - path?: StringFilter; - /** Filter by the object’s `platformWebhookEventsByEndpointId` relation. */ - platformWebhookEventsByEndpointId?: PlatformWebhookEndpointToManyPlatformWebhookEventFilter; - /** `platformWebhookEventsByEndpointId` exist. */ - platformWebhookEventsByEndpointIdExist?: boolean; - /** Filter by the object’s `provider` field. */ - provider?: StringFilter; - /** Filter by the object’s `replayWindowSeconds` field. */ - replayWindowSeconds?: IntFilter; - /** Filter by the object’s `signingSecretName` field. */ - signingSecretName?: StringFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; +export type UpdateFunctionGraphExecutionPayloadSelect = { + clientMutationId?: boolean; + functionGraphExecution?: { + select: FunctionGraphExecutionSelect; + }; + functionGraphExecutionEdge?: { + select: FunctionGraphExecutionEdgeSelect; + }; +}; +export interface DeleteFunctionGraphExecutionPayload { + clientMutationId?: string | null; + /** The `FunctionGraphExecution` that was deleted by this mutation. */ + functionGraphExecution?: FunctionGraphExecution | null; + functionGraphExecutionEdge?: FunctionGraphExecutionEdge | null; } -/** A filter to be used against `PlatformFunctionDeployment` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformFunctionDeploymentFilter { - /** Checks for all expressions in this list. */ - and?: PlatformFunctionDeploymentFilter[]; - /** Filter by the object’s `annotations` field. */ - annotations?: JSONFilter; - /** Filter by the object’s `concurrency` field. */ - concurrency?: IntFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `errorCount` field. */ - errorCount?: IntFilter; - /** Filter by the object’s `handlerName` field. */ - handlerName?: StringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `image` field. */ - image?: StringFilter; - /** Filter by the object’s `imageVersion` field. */ - imageVersion?: StringFilter; - /** Filter by the object’s `labels` field. */ - labels?: JSONFilter; - /** Filter by the object’s `lastError` field. */ - lastError?: StringFilter; - /** Filter by the object’s `lastErrorAt` field. */ - lastErrorAt?: DatetimeFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: PlatformNamespaceFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; - /** Negates the expression. */ - 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. */ - revision?: IntFilter; - /** Filter by the object’s `scaleMax` field. */ - scaleMax?: IntFilter; - /** Filter by the object’s `scaleMin` field. */ - scaleMin?: IntFilter; - /** Filter by the object’s `serviceName` field. */ - serviceName?: StringFilter; - /** Filter by the object’s `serviceUrl` field. */ - serviceUrl?: StringFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `timeoutSeconds` field. */ - timeoutSeconds?: IntFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; +export type DeleteFunctionGraphExecutionPayloadSelect = { + clientMutationId?: boolean; + functionGraphExecution?: { + select: FunctionGraphExecutionSelect; + }; + functionGraphExecutionEdge?: { + select: FunctionGraphExecutionEdgeSelect; + }; +}; +export interface CreateFunctionGraphExecutionNodeStatePayload { + clientMutationId?: string | null; + /** The `FunctionGraphExecutionNodeState` that was created by this mutation. */ + functionGraphExecutionNodeState?: FunctionGraphExecutionNodeState | null; + functionGraphExecutionNodeStateEdge?: FunctionGraphExecutionNodeStateEdge | null; +} +export type CreateFunctionGraphExecutionNodeStatePayloadSelect = { + clientMutationId?: boolean; + functionGraphExecutionNodeState?: { + select: FunctionGraphExecutionNodeStateSelect; + }; + functionGraphExecutionNodeStateEdge?: { + select: FunctionGraphExecutionNodeStateEdgeSelect; + }; +}; +export interface UpdateFunctionGraphExecutionNodeStatePayload { + clientMutationId?: string | null; + /** The `FunctionGraphExecutionNodeState` that was updated by this mutation. */ + functionGraphExecutionNodeState?: FunctionGraphExecutionNodeState | null; + functionGraphExecutionNodeStateEdge?: FunctionGraphExecutionNodeStateEdge | null; +} +export type UpdateFunctionGraphExecutionNodeStatePayloadSelect = { + clientMutationId?: boolean; + functionGraphExecutionNodeState?: { + select: FunctionGraphExecutionNodeStateSelect; + }; + functionGraphExecutionNodeStateEdge?: { + select: FunctionGraphExecutionNodeStateEdgeSelect; + }; +}; +export interface DeleteFunctionGraphExecutionNodeStatePayload { + clientMutationId?: string | null; + /** The `FunctionGraphExecutionNodeState` that was deleted by this mutation. */ + functionGraphExecutionNodeState?: FunctionGraphExecutionNodeState | null; + functionGraphExecutionNodeStateEdge?: FunctionGraphExecutionNodeStateEdge | null; +} +export type DeleteFunctionGraphExecutionNodeStatePayloadSelect = { + clientMutationId?: boolean; + functionGraphExecutionNodeState?: { + select: FunctionGraphExecutionNodeStateSelect; + }; + functionGraphExecutionNodeStateEdge?: { + select: FunctionGraphExecutionNodeStateEdgeSelect; + }; +}; +export interface CreateFunctionGraphExecutionOutputPayload { + clientMutationId?: string | null; + /** The `FunctionGraphExecutionOutput` that was created by this mutation. */ + functionGraphExecutionOutput?: FunctionGraphExecutionOutput | null; + functionGraphExecutionOutputEdge?: FunctionGraphExecutionOutputEdge | null; } -/** A filter to be used against `PlatformResourceDefinition` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformResourceDefinitionFilter { - /** Checks for all expressions in this list. */ - and?: PlatformResourceDefinitionFilter[]; - /** Filter by the object’s `annotations` field. */ - annotations?: JSONFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `defaultSpec` field. */ - defaultSpec?: JSONFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `integrations` field. */ - integrations?: StringListFilter; - /** Filter by the object’s `kind` field. */ - kind?: StringFilter; - /** Filter by the object’s `labels` field. */ - labels?: JSONFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: PlatformNamespaceFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; - /** Negates the expression. */ - not?: PlatformResourceDefinitionFilter; - /** Checks for any expressions in this list. */ - or?: PlatformResourceDefinitionFilter[]; - /** Filter by the object’s `paramsSchema` field. */ - paramsSchema?: JSONFilter; - /** Filter by the object’s `platformResourcesByResourceDefinitionId` relation. */ - platformResourcesByResourceDefinitionId?: PlatformResourceDefinitionToManyPlatformResourceFilter; - /** `platformResourcesByResourceDefinitionId` exist. */ - platformResourcesByResourceDefinitionIdExist?: boolean; - /** Filter by the object’s `slug` field. */ - slug?: StringFilter; - /** Filter by the object’s `stepUpMinAge` field. */ - stepUpMinAge?: IntervalFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; +export type CreateFunctionGraphExecutionOutputPayloadSelect = { + clientMutationId?: boolean; + functionGraphExecutionOutput?: { + select: FunctionGraphExecutionOutputSelect; + }; + functionGraphExecutionOutputEdge?: { + select: FunctionGraphExecutionOutputEdgeSelect; + }; +}; +export interface UpdateFunctionGraphExecutionOutputPayload { + clientMutationId?: string | null; + /** The `FunctionGraphExecutionOutput` that was updated by this mutation. */ + functionGraphExecutionOutput?: FunctionGraphExecutionOutput | null; + functionGraphExecutionOutputEdge?: FunctionGraphExecutionOutputEdge | null; } -/** A filter to be used against `PlatformResourceInstallation` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformResourceInstallationFilter { - /** Checks for all expressions in this list. */ - and?: PlatformResourceInstallationFilter[]; - /** Filter by the object’s `commitId` field. */ - commitId?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: PlatformNamespaceFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; - /** Negates the expression. */ - not?: PlatformResourceInstallationFilter; - /** Checks for any expressions in this list. */ - or?: PlatformResourceInstallationFilter[]; - /** Filter by the object’s `params` field. */ - params?: JSONFilter; - /** Filter by the object’s `platformResourcesByInstallationId` relation. */ - platformResourcesByInstallationId?: PlatformResourceInstallationToManyPlatformResourceFilter; - /** `platformResourcesByInstallationId` exist. */ - platformResourcesByInstallationIdExist?: boolean; - /** Filter by the object’s `revision` field. */ - revision?: IntFilter; - /** Filter by the object’s `slug` field. */ - slug?: StringFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `storeId` field. */ - storeId?: UUIDFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; +export type UpdateFunctionGraphExecutionOutputPayloadSelect = { + clientMutationId?: boolean; + functionGraphExecutionOutput?: { + select: FunctionGraphExecutionOutputSelect; + }; + functionGraphExecutionOutputEdge?: { + select: FunctionGraphExecutionOutputEdgeSelect; + }; +}; +export interface DeleteFunctionGraphExecutionOutputPayload { + clientMutationId?: string | null; + /** The `FunctionGraphExecutionOutput` that was deleted by this mutation. */ + functionGraphExecutionOutput?: FunctionGraphExecutionOutput | null; + functionGraphExecutionOutputEdge?: FunctionGraphExecutionOutputEdge | null; } -/** A filter to be used against `PlatformResource` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformResourceFilter { - /** Checks for all expressions in this list. */ - and?: PlatformResourceFilter[]; - /** Filter by the object’s `annotations` field. */ - annotations?: JSONFilter; - /** Filter by the object’s `cpuLimitMillicores` field. */ - cpuLimitMillicores?: BigIntFilter; - /** Filter by the object’s `cpuRequestMillicores` field. */ - cpuRequestMillicores?: BigIntFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `errorCount` field. */ - errorCount?: IntFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `installation` relation. */ - installation?: PlatformResourceInstallationFilter; - /** A related `installation` exists. */ - installationExists?: boolean; - /** Filter by the object’s `installationId` field. */ - installationId?: UUIDFilter; - /** Filter by the object’s `integrations` field. */ - integrations?: StringListFilter; - /** Filter by the object’s `kind` field. */ - kind?: StringFilter; - /** Filter by the object’s `labels` field. */ - labels?: JSONFilter; - /** Filter by the object’s `lastError` field. */ - lastError?: StringFilter; - /** Filter by the object’s `lastHeartbeatAt` field. */ - lastHeartbeatAt?: DatetimeFilter; - /** Filter by the object’s `memoryLimitBytes` field. */ - memoryLimitBytes?: BigIntFilter; - /** Filter by the object’s `memoryRequestBytes` field. */ - memoryRequestBytes?: BigIntFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: PlatformNamespaceFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; - /** Negates the expression. */ - not?: PlatformResourceFilter; - /** Checks for any expressions in this list. */ - or?: PlatformResourceFilter[]; - /** Filter by the object’s `platformResourceStatusChecksByResourceId` relation. */ - platformResourceStatusChecksByResourceId?: PlatformResourceToManyPlatformResourceStatusCheckFilter; - /** `platformResourceStatusChecksByResourceId` exist. */ - platformResourceStatusChecksByResourceIdExist?: boolean; - /** Filter by the object’s `realm` field. */ - realm?: StringFilter; - /** Filter by the object’s `replicas` field. */ - replicas?: IntFilter; - /** Filter by the object’s `resourceDefinition` relation. */ - resourceDefinition?: PlatformResourceDefinitionFilter; - /** A related `resourceDefinition` exists. */ - resourceDefinitionExists?: boolean; - /** Filter by the object’s `resourceDefinitionId` field. */ - resourceDefinitionId?: UUIDFilter; - /** Filter by the object’s `slug` field. */ - slug?: StringFilter; - /** Filter by the object’s `spec` field. */ - spec?: JSONFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `statusObserved` field. */ - statusObserved?: JSONFilter; - /** Filter by the object’s `storageClass` field. */ - storageClass?: StringFilter; - /** Filter by the object’s `storageSizeBytes` field. */ - storageSizeBytes?: BigIntFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; +export type DeleteFunctionGraphExecutionOutputPayloadSelect = { + clientMutationId?: boolean; + functionGraphExecutionOutput?: { + select: FunctionGraphExecutionOutputSelect; + }; + functionGraphExecutionOutputEdge?: { + select: FunctionGraphExecutionOutputEdgeSelect; + }; +}; +export interface CreateFunctionGraphObjectPayload { + clientMutationId?: string | null; + /** The `FunctionGraphObject` that was created by this mutation. */ + functionGraphObject?: FunctionGraphObject | null; + functionGraphObjectEdge?: FunctionGraphObjectEdge | null; +} +export type CreateFunctionGraphObjectPayloadSelect = { + clientMutationId?: boolean; + functionGraphObject?: { + select: FunctionGraphObjectSelect; + }; + functionGraphObjectEdge?: { + select: FunctionGraphObjectEdgeSelect; + }; +}; +export interface UpdateFunctionGraphObjectPayload { + clientMutationId?: string | null; + /** The `FunctionGraphObject` that was updated by this mutation. */ + functionGraphObject?: FunctionGraphObject | null; + functionGraphObjectEdge?: FunctionGraphObjectEdge | null; +} +export type UpdateFunctionGraphObjectPayloadSelect = { + clientMutationId?: boolean; + functionGraphObject?: { + select: FunctionGraphObjectSelect; + }; + functionGraphObjectEdge?: { + select: FunctionGraphObjectEdgeSelect; + }; +}; +export interface DeleteFunctionGraphObjectPayload { + clientMutationId?: string | null; + /** The `FunctionGraphObject` that was deleted by this mutation. */ + functionGraphObject?: FunctionGraphObject | null; + functionGraphObjectEdge?: FunctionGraphObjectEdge | null; +} +export type DeleteFunctionGraphObjectPayloadSelect = { + clientMutationId?: boolean; + functionGraphObject?: { + select: FunctionGraphObjectSelect; + }; + functionGraphObjectEdge?: { + select: FunctionGraphObjectEdgeSelect; + }; +}; +export interface CreateFunctionGraphRefPayload { + clientMutationId?: string | null; + /** The `FunctionGraphRef` that was created by this mutation. */ + functionGraphRef?: FunctionGraphRef | null; + functionGraphRefEdge?: FunctionGraphRefEdge | null; +} +export type CreateFunctionGraphRefPayloadSelect = { + clientMutationId?: boolean; + functionGraphRef?: { + select: FunctionGraphRefSelect; + }; + functionGraphRefEdge?: { + select: FunctionGraphRefEdgeSelect; + }; +}; +export interface UpdateFunctionGraphRefPayload { + clientMutationId?: string | null; + /** The `FunctionGraphRef` that was updated by this mutation. */ + functionGraphRef?: FunctionGraphRef | null; + functionGraphRefEdge?: FunctionGraphRefEdge | null; } -/** A filter to be used against `PlatformResourceStatusCheck` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformResourceStatusCheckFilter { - /** Checks for all expressions in this list. */ - and?: PlatformResourceStatusCheckFilter[]; - /** Filter by the object’s `completedAt` field. */ - completedAt?: DatetimeFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Negates the expression. */ - not?: PlatformResourceStatusCheckFilter; - /** Checks for any expressions in this list. */ - or?: PlatformResourceStatusCheckFilter[]; - /** Filter by the object’s `requestedAt` field. */ - requestedAt?: DatetimeFilter; - /** Filter by the object’s `requestedBy` field. */ - requestedBy?: UUIDFilter; - /** Filter by the object’s `resource` relation. */ - resource?: PlatformResourceFilter; - /** Filter by the object’s `resourceId` field. */ - resourceId?: UUIDFilter; - /** Filter by the object’s `result` field. */ - result?: JSONFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; +export type UpdateFunctionGraphRefPayloadSelect = { + clientMutationId?: boolean; + functionGraphRef?: { + select: FunctionGraphRefSelect; + }; + functionGraphRefEdge?: { + select: FunctionGraphRefEdgeSelect; + }; +}; +export interface DeleteFunctionGraphRefPayload { + clientMutationId?: string | null; + /** The `FunctionGraphRef` that was deleted by this mutation. */ + functionGraphRef?: FunctionGraphRef | null; + functionGraphRefEdge?: FunctionGraphRefEdge | null; } -/** A filter to be used against `PlatformWebhookEvent` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformWebhookEventFilter { - /** Checks for all expressions in this list. */ - and?: PlatformWebhookEventFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `endpoint` relation. */ - endpoint?: PlatformWebhookEndpointFilter; - /** Filter by the object’s `endpointId` field. */ - endpointId?: UUIDFilter; - /** Filter by the object’s `error` field. */ - error?: StringFilter; - /** Filter by the object’s `externalEventId` field. */ - externalEventId?: StringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `invocationCreatedAt` field. */ - invocationCreatedAt?: DatetimeFilter; - /** Filter by the object’s `invocationId` field. */ - invocationId?: UUIDFilter; - /** Negates the expression. */ - not?: PlatformWebhookEventFilter; - /** Checks for any expressions in this list. */ - or?: PlatformWebhookEventFilter[]; - /** Filter by the object’s `payload` field. */ - payload?: JSONFilter; - /** Filter by the object’s `provider` field. */ - provider?: StringFilter; - /** Filter by the object’s `providerTimestamp` field. */ - providerTimestamp?: DatetimeFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; +export type DeleteFunctionGraphRefPayloadSelect = { + clientMutationId?: boolean; + functionGraphRef?: { + select: FunctionGraphRefSelect; + }; + functionGraphRefEdge?: { + select: FunctionGraphRefEdgeSelect; + }; +}; +export interface CreateFunctionGraphStorePayload { + clientMutationId?: string | null; + /** The `FunctionGraphStore` that was created by this mutation. */ + functionGraphStore?: FunctionGraphStore | null; + functionGraphStoreEdge?: FunctionGraphStoreEdge | null; } -/** A filter to be used against `ResourceStatusCheck` object types. All fields are combined with a logical ‘and.’ */ -export interface ResourceStatusCheckFilter { - /** Checks for all expressions in this list. */ - and?: ResourceStatusCheckFilter[]; - /** Filter by the object’s `completedAt` field. */ - completedAt?: DatetimeFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Negates the expression. */ - not?: ResourceStatusCheckFilter; - /** Checks for any expressions in this list. */ - or?: ResourceStatusCheckFilter[]; - /** Filter by the object’s `requestedAt` field. */ - requestedAt?: DatetimeFilter; - /** Filter by the object’s `requestedBy` field. */ - requestedBy?: UUIDFilter; - /** Filter by the object’s `resource` relation. */ - resource?: ResourceFilter; - /** Filter by the object’s `resourceId` field. */ - resourceId?: UUIDFilter; - /** Filter by the object’s `result` field. */ - result?: JSONFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; +export type CreateFunctionGraphStorePayloadSelect = { + clientMutationId?: boolean; + functionGraphStore?: { + select: FunctionGraphStoreSelect; + }; + functionGraphStoreEdge?: { + select: FunctionGraphStoreEdgeSelect; + }; +}; +export interface UpdateFunctionGraphStorePayload { + clientMutationId?: string | null; + /** The `FunctionGraphStore` that was updated by this mutation. */ + functionGraphStore?: FunctionGraphStore | null; + functionGraphStoreEdge?: FunctionGraphStoreEdge | null; } -/** A filter to be used against `WebhookEvent` object types. All fields are combined with a logical ‘and.’ */ -export interface WebhookEventFilter { - /** Checks for all expressions in this list. */ - and?: WebhookEventFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `endpoint` relation. */ - endpoint?: WebhookEndpointFilter; - /** Filter by the object’s `endpointId` field. */ - endpointId?: UUIDFilter; - /** Filter by the object’s `error` field. */ - error?: StringFilter; - /** Filter by the object’s `externalEventId` field. */ - externalEventId?: StringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `invocationCreatedAt` field. */ - invocationCreatedAt?: DatetimeFilter; - /** Filter by the object’s `invocationId` field. */ - invocationId?: UUIDFilter; - /** Negates the expression. */ - not?: WebhookEventFilter; - /** Checks for any expressions in this list. */ - or?: WebhookEventFilter[]; - /** Filter by the object’s `payload` field. */ - payload?: JSONFilter; - /** Filter by the object’s `provider` field. */ - provider?: StringFilter; - /** Filter by the object’s `providerTimestamp` field. */ - providerTimestamp?: DatetimeFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; +export type UpdateFunctionGraphStorePayloadSelect = { + clientMutationId?: boolean; + functionGraphStore?: { + select: FunctionGraphStoreSelect; + }; + functionGraphStoreEdge?: { + select: FunctionGraphStoreEdgeSelect; + }; +}; +export interface DeleteFunctionGraphStorePayload { + clientMutationId?: string | null; + /** The `FunctionGraphStore` that was deleted by this mutation. */ + functionGraphStore?: FunctionGraphStore | null; + functionGraphStoreEdge?: FunctionGraphStoreEdge | null; +} +export type DeleteFunctionGraphStorePayloadSelect = { + clientMutationId?: boolean; + functionGraphStore?: { + select: FunctionGraphStoreSelect; + }; + functionGraphStoreEdge?: { + select: FunctionGraphStoreEdgeSelect; + }; +}; +export interface CreateFunctionInvocationAttemptPayload { + clientMutationId?: string | null; + /** The `FunctionInvocationAttempt` that was created by this mutation. */ + functionInvocationAttempt?: FunctionInvocationAttempt | null; + functionInvocationAttemptEdge?: FunctionInvocationAttemptEdge | null; +} +export type CreateFunctionInvocationAttemptPayloadSelect = { + clientMutationId?: boolean; + functionInvocationAttempt?: { + select: FunctionInvocationAttemptSelect; + }; + functionInvocationAttemptEdge?: { + select: FunctionInvocationAttemptEdgeSelect; + }; +}; +export interface UpdateFunctionInvocationAttemptPayload { + clientMutationId?: string | null; + /** The `FunctionInvocationAttempt` that was updated by this mutation. */ + functionInvocationAttempt?: FunctionInvocationAttempt | null; + functionInvocationAttemptEdge?: FunctionInvocationAttemptEdge | null; +} +export type UpdateFunctionInvocationAttemptPayloadSelect = { + clientMutationId?: boolean; + functionInvocationAttempt?: { + select: FunctionInvocationAttemptSelect; + }; + functionInvocationAttemptEdge?: { + select: FunctionInvocationAttemptEdgeSelect; + }; +}; +export interface DeleteFunctionInvocationAttemptPayload { + clientMutationId?: string | null; + /** The `FunctionInvocationAttempt` that was deleted by this mutation. */ + functionInvocationAttempt?: FunctionInvocationAttempt | null; + functionInvocationAttemptEdge?: FunctionInvocationAttemptEdge | null; +} +export type DeleteFunctionInvocationAttemptPayloadSelect = { + clientMutationId?: boolean; + functionInvocationAttempt?: { + select: FunctionInvocationAttemptSelect; + }; + functionInvocationAttemptEdge?: { + select: FunctionInvocationAttemptEdgeSelect; + }; +}; +export interface CreateFunctionInvocationPayload { + clientMutationId?: string | null; + /** The `FunctionInvocation` that was created by this mutation. */ + functionInvocation?: FunctionInvocation | null; + functionInvocationEdge?: FunctionInvocationEdge | null; +} +export type CreateFunctionInvocationPayloadSelect = { + clientMutationId?: boolean; + functionInvocation?: { + select: FunctionInvocationSelect; + }; + functionInvocationEdge?: { + select: FunctionInvocationEdgeSelect; + }; +}; +export interface UpdateFunctionInvocationPayload { + clientMutationId?: string | null; + /** The `FunctionInvocation` that was updated by this mutation. */ + functionInvocation?: FunctionInvocation | null; + functionInvocationEdge?: FunctionInvocationEdge | null; } -/** 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[]; +export type UpdateFunctionInvocationPayloadSelect = { + clientMutationId?: boolean; + functionInvocation?: { + select: FunctionInvocationSelect; + }; + functionInvocationEdge?: { + select: FunctionInvocationEdgeSelect; + }; +}; +export interface DeleteFunctionInvocationPayload { + clientMutationId?: string | null; + /** The `FunctionInvocation` that was deleted by this mutation. */ + functionInvocation?: FunctionInvocation | null; + functionInvocationEdge?: FunctionInvocationEdge | null; } -/** 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; +export type DeleteFunctionInvocationPayloadSelect = { + clientMutationId?: boolean; + functionInvocation?: { + select: FunctionInvocationSelect; + }; + functionInvocationEdge?: { + select: FunctionInvocationEdgeSelect; + }; +}; +export interface CreateImagePayload { + clientMutationId?: string | null; + /** The `Image` that was created by this mutation. */ + image?: Image | null; + imageEdge?: ImageEdge | null; } -/** 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[]; +export type CreateImagePayloadSelect = { + clientMutationId?: boolean; + image?: { + select: ImageSelect; + }; + imageEdge?: { + select: ImageEdgeSelect; + }; +}; +export interface UpdateImagePayload { + clientMutationId?: string | null; + /** The `Image` that was updated by this mutation. */ + image?: Image | null; + imageEdge?: ImageEdge | null; } -/** 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[]; +export type UpdateImagePayloadSelect = { + clientMutationId?: boolean; + image?: { + select: ImageSelect; + }; + imageEdge?: { + select: ImageEdgeSelect; + }; +}; +export interface DeleteImagePayload { + clientMutationId?: string | null; + /** The `Image` that was deleted by this mutation. */ + image?: Image | null; + imageEdge?: ImageEdge | null; } -/** 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. */ - 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[]; +export type DeleteImagePayloadSelect = { + clientMutationId?: boolean; + image?: { + select: ImageSelect; + }; + imageEdge?: { + select: ImageEdgeSelect; + }; +}; +export interface CreateImageGrantPayload { + clientMutationId?: string | null; + /** The `ImageGrant` that was created by this mutation. */ + imageGrant?: ImageGrant | null; + imageGrantEdge?: ImageGrantEdge | null; } -/** A filter to be used against JSON fields. All fields are combined with a logical ‘and.’ */ -export interface JSONFilter { - /** Contained by the specified JSON. */ - containedBy?: Record; - /** Contains the specified JSON. */ - contains?: Record; - /** Contains all of the specified keys. */ - containsAllKeys?: string[]; - /** Contains any of the specified keys. */ - containsAnyKeys?: string[]; - /** Contains the specified key. */ - containsKey?: string; - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: Record; - /** Equal to the specified value. */ - equalTo?: Record; - /** Greater than the specified value. */ - greaterThan?: Record; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: Record; - /** Included in the specified list. */ - in?: Record[]; - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Less than the specified value. */ - lessThan?: Record; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: Record; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: Record; - /** Not equal to the specified value. */ - notEqualTo?: Record; - /** Not included in the specified list. */ - notIn?: Record[]; +export type CreateImageGrantPayloadSelect = { + clientMutationId?: boolean; + imageGrant?: { + select: ImageGrantSelect; + }; + imageGrantEdge?: { + select: ImageGrantEdgeSelect; + }; +}; +export interface UpdateImageGrantPayload { + clientMutationId?: string | null; + /** The `ImageGrant` that was updated by this mutation. */ + imageGrant?: ImageGrant | null; + imageGrantEdge?: ImageGrantEdge | null; } -/** A filter to be used against `FunctionDefinition` object types. All fields are combined with a logical ‘and.’ */ -export interface FunctionDefinitionFilter { - /** Filter by the object’s `accessChannels` field. */ - accessChannels?: StringListFilter; - /** Checks for all expressions in this list. */ - and?: FunctionDefinitionFilter[]; - /** Filter by the object’s `category` field. */ - category?: StringFilter; - /** Filter by the object’s `concurrency` field. */ - concurrency?: IntFilter; - /** Filter by the object’s `cpuLimitMillicores` field. */ - cpuLimitMillicores?: BigIntFilter; - /** Filter by the object’s `cpuRequestMillicores` field. */ - cpuRequestMillicores?: BigIntFilter; - /** 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 `fnCategory` field. */ - fnCategory?: StringFilter; - /** Filter by the object’s `functionApiBindings` relation. */ - functionApiBindings?: FunctionDefinitionToManyFunctionApiBindingFilter; - /** `functionApiBindings` exist. */ - functionApiBindingsExist?: boolean; - /** Filter by the object’s `functionCapabilityBindingsByFunctionId` relation. */ - functionCapabilityBindingsByFunctionId?: FunctionDefinitionToManyFunctionCapabilityBindingFilter; - /** `functionCapabilityBindingsByFunctionId` exist. */ - functionCapabilityBindingsByFunctionIdExist?: boolean; - /** Filter by the object’s `functionColumns` field. */ - functionColumns?: JSONFilter; - /** Filter by the object’s `graphId` field. */ - graphId?: UUIDFilter; - /** Filter by the object’s `icon` field. */ - icon?: StringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `image` field. */ - image?: StringFilter; - /** Filter by the object’s `inputs` field. */ - inputs?: JSONFilter; - /** Filter by the object’s `integrations` field. */ - integrations?: StringListFilter; - /** Filter by the object’s `isPublished` field. */ - isPublished?: BooleanFilter; - /** Filter by the object’s `maxAttempts` field. */ - maxAttempts?: IntFilter; - /** Filter by the object’s `memoryLimitBytes` field. */ - memoryLimitBytes?: BigIntFilter; - /** Filter by the object’s `memoryRequestBytes` field. */ - memoryRequestBytes?: BigIntFilter; - /** Filter by the object’s `moduleTable` field. */ - moduleTable?: StringFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Negates the expression. */ - not?: FunctionDefinitionFilter; - /** Checks for any expressions in this list. */ - or?: FunctionDefinitionFilter[]; - /** Filter by the object’s `outputs` field. */ - outputs?: JSONFilter; - /** Filter by the object’s `payloadArgs` field. */ - payloadArgs?: JSONFilter; - /** Filter by the object’s `priority` field. */ - priority?: IntFilter; - /** Filter by the object’s `props` field. */ - props?: JSONFilter; - /** Filter by the object’s `protected` field. */ - protected?: BooleanFilter; - /** Filter by the object’s `publishedAt` field. */ - publishedAt?: DatetimeFilter; - /** Filter by the object’s `queueName` field. */ - queueName?: StringFilter; - /** Filter by the object’s `requiredBuckets` field. */ - 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. */ - runtime?: StringFilter; - /** Filter by the object’s `scaleMax` field. */ - scaleMax?: IntFilter; - /** Filter by the object’s `scaleMin` field. */ - scaleMin?: IntFilter; - /** Filter by the object’s `targetFunction` field. */ - targetFunction?: StringFilter; - /** Filter by the object’s `targetSchema` field. */ - targetSchema?: StringFilter; - /** Filter by the object’s `taskIdentifier` field. */ - taskIdentifier?: StringFilter; - /** Filter by the object’s `timeoutSeconds` field. */ - timeoutSeconds?: IntFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `volatile` field. */ - volatile?: BooleanFilter; - /** Filter by the object’s `webhookEndpoints` relation. */ - webhookEndpoints?: FunctionDefinitionToManyWebhookEndpointFilter; - /** `webhookEndpoints` exist. */ - webhookEndpointsExist?: boolean; +export type UpdateImageGrantPayloadSelect = { + clientMutationId?: boolean; + imageGrant?: { + select: ImageGrantSelect; + }; + imageGrantEdge?: { + select: ImageGrantEdgeSelect; + }; +}; +export interface DeleteImageGrantPayload { + clientMutationId?: string | null; + /** The `ImageGrant` that was deleted by this mutation. */ + imageGrant?: ImageGrant | null; + imageGrantEdge?: ImageGrantEdge | null; } -/** 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[]; +export type DeleteImageGrantPayloadSelect = { + clientMutationId?: boolean; + imageGrant?: { + select: ImageGrantSelect; + }; + imageGrantEdge?: { + select: ImageGrantEdgeSelect; + }; +}; +export interface CreateInfraCommitPayload { + clientMutationId?: string | null; + /** The `InfraCommit` that was created by this mutation. */ + infraCommit?: InfraCommit | null; + infraCommitEdge?: InfraCommitEdge | null; } -/** A filter to be used against `Namespace` object types. All fields are combined with a logical ‘and.’ */ -export interface NamespaceFilter { - /** Checks for all expressions in this list. */ - and?: NamespaceFilter[]; - /** Filter by the object’s `annotations` field. */ - annotations?: JSONFilter; - /** 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 `functionDeployments` relation. */ - functionDeployments?: NamespaceToManyFunctionDeploymentFilter; - /** `functionDeployments` exist. */ - functionDeploymentsExist?: boolean; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isActive` field. */ - isActive?: BooleanFilter; - /** Filter by the object’s `isManaged` field. */ - isManaged?: BooleanFilter; - /** Filter by the object’s `labels` field. */ - labels?: JSONFilter; - /** Filter by the object’s `lastError` field. */ - lastError?: StringFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `namespaceName` field. */ - namespaceName?: StringFilter; - /** Negates the expression. */ - not?: NamespaceFilter; - /** Checks for any expressions in this list. */ - or?: NamespaceFilter[]; - /** Filter by the object’s `resourceDefinitions` relation. */ - resourceDefinitions?: NamespaceToManyResourceDefinitionFilter; - /** `resourceDefinitions` exist. */ - resourceDefinitionsExist?: boolean; - /** Filter by the object’s `resourceInstallations` relation. */ - resourceInstallations?: NamespaceToManyResourceInstallationFilter; - /** `resourceInstallations` exist. */ - resourceInstallationsExist?: boolean; - /** Filter by the object’s `resources` relation. */ - resources?: NamespaceToManyResourceFilter; - /** `resources` exist. */ - resourcesExist?: boolean; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `webhookEndpoints` relation. */ - webhookEndpoints?: NamespaceToManyWebhookEndpointFilter; - /** `webhookEndpoints` exist. */ - webhookEndpointsExist?: boolean; +export type CreateInfraCommitPayloadSelect = { + clientMutationId?: boolean; + infraCommit?: { + select: InfraCommitSelect; + }; + infraCommitEdge?: { + select: InfraCommitEdgeSelect; + }; +}; +export interface UpdateInfraCommitPayload { + clientMutationId?: string | null; + /** The `InfraCommit` that was updated by this mutation. */ + infraCommit?: InfraCommit | null; + infraCommitEdge?: InfraCommitEdge | null; +} +export type UpdateInfraCommitPayloadSelect = { + clientMutationId?: boolean; + infraCommit?: { + select: InfraCommitSelect; + }; + infraCommitEdge?: { + select: InfraCommitEdgeSelect; + }; +}; +export interface DeleteInfraCommitPayload { + clientMutationId?: string | null; + /** The `InfraCommit` that was deleted by this mutation. */ + infraCommit?: InfraCommit | null; + infraCommitEdge?: InfraCommitEdge | null; +} +export type DeleteInfraCommitPayloadSelect = { + clientMutationId?: boolean; + infraCommit?: { + select: InfraCommitSelect; + }; + infraCommitEdge?: { + select: InfraCommitEdgeSelect; + }; +}; +export interface CreateInfraObjectPayload { + clientMutationId?: string | null; + /** The `InfraObject` that was created by this mutation. */ + infraObject?: InfraObject | null; + infraObjectEdge?: InfraObjectEdge | null; +} +export type CreateInfraObjectPayloadSelect = { + clientMutationId?: boolean; + infraObject?: { + select: InfraObjectSelect; + }; + infraObjectEdge?: { + select: InfraObjectEdgeSelect; + }; +}; +export interface UpdateInfraObjectPayload { + clientMutationId?: string | null; + /** The `InfraObject` that was updated by this mutation. */ + infraObject?: InfraObject | null; + infraObjectEdge?: InfraObjectEdge | null; } -/** A filter to be used against `FunctionGraph` object types. All fields are combined with a logical ‘and.’ */ -export interface FunctionGraphFilter { - /** Checks for all expressions in this list. */ - and?: FunctionGraphFilter[]; - /** Filter by the object’s `context` field. */ - context?: StringFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `definitionsCommitId` field. */ - definitionsCommitId?: UUIDFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `functionGraphExecutionsByGraphId` relation. */ - functionGraphExecutionsByGraphId?: FunctionGraphToManyFunctionGraphExecutionFilter; - /** `functionGraphExecutionsByGraphId` exist. */ - functionGraphExecutionsByGraphIdExist?: boolean; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isValid` field. */ - isValid?: BooleanFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Negates the expression. */ - not?: FunctionGraphFilter; - /** Checks for any expressions in this list. */ - or?: FunctionGraphFilter[]; - /** Filter by the object’s `platformFunctionDefinitionsByGraphId` relation. */ - platformFunctionDefinitionsByGraphId?: FunctionGraphToManyPlatformFunctionDefinitionFilter; - /** `platformFunctionDefinitionsByGraphId` exist. */ - platformFunctionDefinitionsByGraphIdExist?: boolean; - /** Filter by the object’s `scopeId` field. */ - scopeId?: UUIDFilter; - /** Filter by the object’s `storeId` field. */ - storeId?: UUIDFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `validationErrors` field. */ - validationErrors?: JSONFilter; +export type UpdateInfraObjectPayloadSelect = { + clientMutationId?: boolean; + infraObject?: { + select: InfraObjectSelect; + }; + infraObjectEdge?: { + select: InfraObjectEdgeSelect; + }; +}; +export interface DeleteInfraObjectPayload { + clientMutationId?: string | null; + /** The `InfraObject` that was deleted by this mutation. */ + infraObject?: InfraObject | null; + infraObjectEdge?: InfraObjectEdge | null; } -/** A filter to be used against String List fields. All fields are combined with a logical ‘and.’ */ -export interface StringListFilter { - /** Any array item is equal to the specified value. */ - anyEqualTo?: string; - /** Any array item is greater than the specified value. */ - anyGreaterThan?: string; - /** Any array item is greater than or equal to the specified value. */ - anyGreaterThanOrEqualTo?: string; - /** Any array item is less than the specified value. */ - anyLessThan?: string; - /** Any array item is less than or equal to the specified value. */ - anyLessThanOrEqualTo?: string; - /** Any array item is not equal to the specified value. */ - anyNotEqualTo?: string; - /** Contained by the specified list of values. */ - containedBy?: string[]; - /** Contains the specified list of values. */ - contains?: string[]; - /** 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[]; - /** 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[]; - /** Overlaps the specified list of values. */ - overlaps?: string[]; +export type DeleteInfraObjectPayloadSelect = { + clientMutationId?: boolean; + infraObject?: { + select: InfraObjectSelect; + }; + infraObjectEdge?: { + select: InfraObjectEdgeSelect; + }; +}; +export interface CreateInfraRefPayload { + clientMutationId?: string | null; + /** The `InfraRef` that was created by this mutation. */ + infraRef?: InfraRef | null; + infraRefEdge?: InfraRefEdge | null; } -/** A filter to be used against `PlatformNamespace` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformNamespaceFilter { - /** Checks for all expressions in this list. */ - and?: PlatformNamespaceFilter[]; - /** Filter by the object’s `annotations` field. */ - annotations?: JSONFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isActive` field. */ - isActive?: BooleanFilter; - /** Filter by the object’s `isManaged` field. */ - isManaged?: BooleanFilter; - /** Filter by the object’s `labels` field. */ - labels?: JSONFilter; - /** Filter by the object’s `lastError` field. */ - lastError?: StringFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `namespaceName` field. */ - namespaceName?: StringFilter; - /** Negates the expression. */ - not?: PlatformNamespaceFilter; - /** Checks for any expressions in this list. */ - or?: PlatformNamespaceFilter[]; - /** Filter by the object’s `platformFunctionDeploymentsByNamespaceId` relation. */ - platformFunctionDeploymentsByNamespaceId?: PlatformNamespaceToManyPlatformFunctionDeploymentFilter; - /** `platformFunctionDeploymentsByNamespaceId` exist. */ - platformFunctionDeploymentsByNamespaceIdExist?: boolean; - /** Filter by the object’s `platformResourceDefinitionsByNamespaceId` relation. */ - platformResourceDefinitionsByNamespaceId?: PlatformNamespaceToManyPlatformResourceDefinitionFilter; - /** `platformResourceDefinitionsByNamespaceId` exist. */ - platformResourceDefinitionsByNamespaceIdExist?: boolean; - /** Filter by the object’s `platformResourceInstallationsByNamespaceId` relation. */ - platformResourceInstallationsByNamespaceId?: PlatformNamespaceToManyPlatformResourceInstallationFilter; - /** `platformResourceInstallationsByNamespaceId` exist. */ - platformResourceInstallationsByNamespaceIdExist?: boolean; - /** Filter by the object’s `platformResourcesByNamespaceId` relation. */ - platformResourcesByNamespaceId?: PlatformNamespaceToManyPlatformResourceFilter; - /** `platformResourcesByNamespaceId` exist. */ - platformResourcesByNamespaceIdExist?: boolean; - /** Filter by the object’s `platformWebhookEndpointsByNamespaceId` relation. */ - platformWebhookEndpointsByNamespaceId?: PlatformNamespaceToManyPlatformWebhookEndpointFilter; - /** `platformWebhookEndpointsByNamespaceId` exist. */ - platformWebhookEndpointsByNamespaceIdExist?: boolean; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; +export type CreateInfraRefPayloadSelect = { + clientMutationId?: boolean; + infraRef?: { + select: InfraRefSelect; + }; + infraRefEdge?: { + select: InfraRefEdgeSelect; + }; +}; +export interface UpdateInfraRefPayload { + clientMutationId?: string | null; + /** The `InfraRef` that was updated by this mutation. */ + infraRef?: InfraRef | null; + infraRefEdge?: InfraRefEdge | null; } -// ============ Payload/Return Types (for custom operations) ============ -export interface AddEdgePayload { +export type UpdateInfraRefPayloadSelect = { + clientMutationId?: boolean; + infraRef?: { + select: InfraRefSelect; + }; + infraRefEdge?: { + select: InfraRefEdgeSelect; + }; +}; +export interface DeleteInfraRefPayload { clientMutationId?: string | null; - result?: string | null; + /** The `InfraRef` that was deleted by this mutation. */ + infraRef?: InfraRef | null; + infraRefEdge?: InfraRefEdge | null; } -export type AddEdgePayloadSelect = { +export type DeleteInfraRefPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + infraRef?: { + select: InfraRefSelect; + }; + infraRefEdge?: { + select: InfraRefEdgeSelect; + }; }; -export interface AddEdgeAndSavePayload { +export interface CreateInfraStorePayload { clientMutationId?: string | null; - result?: string | null; + /** The `InfraStore` that was created by this mutation. */ + infraStore?: InfraStore | null; + infraStoreEdge?: InfraStoreEdge | null; } -export type AddEdgeAndSavePayloadSelect = { +export type CreateInfraStorePayloadSelect = { clientMutationId?: boolean; - result?: boolean; + infraStore?: { + select: InfraStoreSelect; + }; + infraStoreEdge?: { + select: InfraStoreEdgeSelect; + }; }; -export interface AddNodePayload { +export interface UpdateInfraStorePayload { clientMutationId?: string | null; - result?: string | null; + /** The `InfraStore` that was updated by this mutation. */ + infraStore?: InfraStore | null; + infraStoreEdge?: InfraStoreEdge | null; } -export type AddNodePayloadSelect = { +export type UpdateInfraStorePayloadSelect = { clientMutationId?: boolean; - result?: boolean; + infraStore?: { + select: InfraStoreSelect; + }; + infraStoreEdge?: { + select: InfraStoreEdgeSelect; + }; }; -export interface AddNodeAndSavePayload { +export interface DeleteInfraStorePayload { clientMutationId?: string | null; - result?: string | null; + /** The `InfraStore` that was deleted by this mutation. */ + infraStore?: InfraStore | null; + infraStoreEdge?: InfraStoreEdge | null; } -export type AddNodeAndSavePayloadSelect = { +export type DeleteInfraStorePayloadSelect = { clientMutationId?: boolean; - result?: boolean; + infraStore?: { + select: InfraStoreSelect; + }; + infraStoreEdge?: { + select: InfraStoreEdgeSelect; + }; +}; +export interface CreateIntegrationProviderPayload { + clientMutationId?: string | null; + /** The `IntegrationProvider` that was created by this mutation. */ + integrationProvider?: IntegrationProvider | null; + integrationProviderEdge?: IntegrationProviderEdge | null; +} +export type CreateIntegrationProviderPayloadSelect = { + clientMutationId?: boolean; + integrationProvider?: { + select: IntegrationProviderSelect; + }; + integrationProviderEdge?: { + select: IntegrationProviderEdgeSelect; + }; }; -export interface CopyGraphPayload { +export interface UpdateIntegrationProviderPayload { clientMutationId?: string | null; - result?: string | null; + /** The `IntegrationProvider` that was updated by this mutation. */ + integrationProvider?: IntegrationProvider | null; + integrationProviderEdge?: IntegrationProviderEdge | null; } -export type CopyGraphPayloadSelect = { +export type UpdateIntegrationProviderPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + integrationProvider?: { + select: IntegrationProviderSelect; + }; + integrationProviderEdge?: { + select: IntegrationProviderEdgeSelect; + }; }; -export interface ImportDefinitionsPayload { +export interface DeleteIntegrationProviderPayload { clientMutationId?: string | null; + /** The `IntegrationProvider` that was deleted by this mutation. */ + integrationProvider?: IntegrationProvider | null; + integrationProviderEdge?: IntegrationProviderEdge | null; } -export type ImportDefinitionsPayloadSelect = { +export type DeleteIntegrationProviderPayloadSelect = { clientMutationId?: boolean; + integrationProvider?: { + select: IntegrationProviderSelect; + }; + integrationProviderEdge?: { + select: IntegrationProviderEdgeSelect; + }; }; -export interface ImportGraphJsonPayload { +export interface CreateNamespacePayload { clientMutationId?: string | null; - result?: string | null; + /** The `Namespace` that was created by this mutation. */ + namespace?: Namespace | null; + namespaceEdge?: NamespaceEdge | null; } -export type ImportGraphJsonPayloadSelect = { +export type CreateNamespacePayloadSelect = { clientMutationId?: boolean; - result?: boolean; + namespace?: { + select: NamespaceSelect; + }; + namespaceEdge?: { + select: NamespaceEdgeSelect; + }; }; -export interface InfraInitEmptyRepoPayload { +export interface UpdateNamespacePayload { clientMutationId?: string | null; + /** The `Namespace` that was updated by this mutation. */ + namespace?: Namespace | null; + namespaceEdge?: NamespaceEdge | null; } -export type InfraInitEmptyRepoPayloadSelect = { +export type UpdateNamespacePayloadSelect = { clientMutationId?: boolean; + namespace?: { + select: NamespaceSelect; + }; + namespaceEdge?: { + select: NamespaceEdgeSelect; + }; }; -export interface InfraInsertNodeAtPathPayload { +export interface DeleteNamespacePayload { clientMutationId?: string | null; - result?: string | null; + /** The `Namespace` that was deleted by this mutation. */ + namespace?: Namespace | null; + namespaceEdge?: NamespaceEdge | null; } -export type InfraInsertNodeAtPathPayloadSelect = { +export type DeleteNamespacePayloadSelect = { clientMutationId?: boolean; - result?: boolean; + namespace?: { + select: NamespaceSelect; + }; + namespaceEdge?: { + select: NamespaceEdgeSelect; + }; }; -export interface InfraInsertNodesAtPathsPayload { +export interface CreateNamespaceEventPayload { clientMutationId?: string | null; - result?: string | null; + /** The `NamespaceEvent` that was created by this mutation. */ + namespaceEvent?: NamespaceEvent | null; + namespaceEventEdge?: NamespaceEventEdge | null; } -export type InfraInsertNodesAtPathsPayloadSelect = { +export type CreateNamespaceEventPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + namespaceEvent?: { + select: NamespaceEventSelect; + }; + namespaceEventEdge?: { + select: NamespaceEventEdgeSelect; + }; }; -export interface InfraSetAndCommitPayload { +export interface UpdateNamespaceEventPayload { clientMutationId?: string | null; - infraCommitEdge?: InfraCommitEdge | null; - result?: InfraCommit | null; + /** The `NamespaceEvent` that was updated by this mutation. */ + namespaceEvent?: NamespaceEvent | null; + namespaceEventEdge?: NamespaceEventEdge | null; } -export type InfraSetAndCommitPayloadSelect = { +export type UpdateNamespaceEventPayloadSelect = { clientMutationId?: boolean; - infraCommitEdge?: { - select: InfraCommitEdgeSelect; + namespaceEvent?: { + select: NamespaceEventSelect; }; - result?: { - select: InfraCommitSelect; + namespaceEventEdge?: { + select: NamespaceEventEdgeSelect; }; }; -export interface InfraSetDataAtPathPayload { +export interface DeleteNamespaceEventPayload { clientMutationId?: string | null; - result?: string | null; + /** The `NamespaceEvent` that was deleted by this mutation. */ + namespaceEvent?: NamespaceEvent | null; + namespaceEventEdge?: NamespaceEventEdge | null; } -export type InfraSetDataAtPathPayloadSelect = { +export type DeleteNamespaceEventPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + namespaceEvent?: { + select: NamespaceEventSelect; + }; + namespaceEventEdge?: { + select: NamespaceEventEdgeSelect; + }; }; -export interface InfraSetManyAndCommitPayload { +export interface CreatePlatformBuildPayload { clientMutationId?: string | null; - infraCommitEdge?: InfraCommitEdge | null; - result?: InfraCommit | null; + /** The `PlatformBuild` that was created by this mutation. */ + platformBuild?: PlatformBuild | null; + platformBuildEdge?: PlatformBuildEdge | null; } -export type InfraSetManyAndCommitPayloadSelect = { +export type CreatePlatformBuildPayloadSelect = { clientMutationId?: boolean; - infraCommitEdge?: { - select: InfraCommitEdgeSelect; + platformBuild?: { + select: PlatformBuildSelect; }; - result?: { - select: InfraCommitSelect; + platformBuildEdge?: { + select: PlatformBuildEdgeSelect; }; }; -export interface InitEmptyRepoPayload { +export interface UpdatePlatformBuildPayload { clientMutationId?: string | null; + /** The `PlatformBuild` that was updated by this mutation. */ + platformBuild?: PlatformBuild | null; + platformBuildEdge?: PlatformBuildEdge | null; } -export type InitEmptyRepoPayloadSelect = { +export type UpdatePlatformBuildPayloadSelect = { clientMutationId?: boolean; + platformBuild?: { + select: PlatformBuildSelect; + }; + platformBuildEdge?: { + select: PlatformBuildEdgeSelect; + }; }; -export interface InsertNodeAtPathPayload { +export interface DeletePlatformBuildPayload { clientMutationId?: string | null; - result?: string | null; + /** The `PlatformBuild` that was deleted by this mutation. */ + platformBuild?: PlatformBuild | null; + platformBuildEdge?: PlatformBuildEdge | null; } -export type InsertNodeAtPathPayloadSelect = { +export type DeletePlatformBuildPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + platformBuild?: { + select: PlatformBuildSelect; + }; + platformBuildEdge?: { + select: PlatformBuildEdgeSelect; + }; }; -export interface InsertNodesAtPathsPayload { +export interface CreatePlatformBuildStepPayload { clientMutationId?: string | null; - result?: string | null; + /** The `PlatformBuildStep` that was created by this mutation. */ + platformBuildStep?: PlatformBuildStep | null; + platformBuildStepEdge?: PlatformBuildStepEdge | null; } -export type InsertNodesAtPathsPayloadSelect = { +export type CreatePlatformBuildStepPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + platformBuildStep?: { + select: PlatformBuildStepSelect; + }; + platformBuildStepEdge?: { + select: PlatformBuildStepEdgeSelect; + }; }; -export interface PlatformInfraInitEmptyRepoPayload { +export interface UpdatePlatformBuildStepPayload { clientMutationId?: string | null; + /** The `PlatformBuildStep` that was updated by this mutation. */ + platformBuildStep?: PlatformBuildStep | null; + platformBuildStepEdge?: PlatformBuildStepEdge | null; } -export type PlatformInfraInitEmptyRepoPayloadSelect = { +export type UpdatePlatformBuildStepPayloadSelect = { clientMutationId?: boolean; + platformBuildStep?: { + select: PlatformBuildStepSelect; + }; + platformBuildStepEdge?: { + select: PlatformBuildStepEdgeSelect; + }; }; -export interface PlatformInfraInsertNodeAtPathPayload { +export interface DeletePlatformBuildStepPayload { clientMutationId?: string | null; - result?: string | null; + /** The `PlatformBuildStep` that was deleted by this mutation. */ + platformBuildStep?: PlatformBuildStep | null; + platformBuildStepEdge?: PlatformBuildStepEdge | null; } -export type PlatformInfraInsertNodeAtPathPayloadSelect = { +export type DeletePlatformBuildStepPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + platformBuildStep?: { + select: PlatformBuildStepSelect; + }; + platformBuildStepEdge?: { + select: PlatformBuildStepEdgeSelect; + }; }; -export interface PlatformInfraInsertNodesAtPathsPayload { +export interface CreatePlatformBuilderBindingPayload { clientMutationId?: string | null; - result?: string | null; + /** The `PlatformBuilderBinding` that was created by this mutation. */ + platformBuilderBinding?: PlatformBuilderBinding | null; + platformBuilderBindingEdge?: PlatformBuilderBindingEdge | null; } -export type PlatformInfraInsertNodesAtPathsPayloadSelect = { +export type CreatePlatformBuilderBindingPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + platformBuilderBinding?: { + select: PlatformBuilderBindingSelect; + }; + platformBuilderBindingEdge?: { + select: PlatformBuilderBindingEdgeSelect; + }; }; -export interface PlatformInfraSetAndCommitPayload { +export interface UpdatePlatformBuilderBindingPayload { clientMutationId?: string | null; - platformInfraCommitEdge?: PlatformInfraCommitEdge | null; - result?: PlatformInfraCommit | null; + /** The `PlatformBuilderBinding` that was updated by this mutation. */ + platformBuilderBinding?: PlatformBuilderBinding | null; + platformBuilderBindingEdge?: PlatformBuilderBindingEdge | null; } -export type PlatformInfraSetAndCommitPayloadSelect = { +export type UpdatePlatformBuilderBindingPayloadSelect = { clientMutationId?: boolean; - platformInfraCommitEdge?: { - select: PlatformInfraCommitEdgeSelect; + platformBuilderBinding?: { + select: PlatformBuilderBindingSelect; }; - result?: { - select: PlatformInfraCommitSelect; + platformBuilderBindingEdge?: { + select: PlatformBuilderBindingEdgeSelect; }; }; -export interface PlatformInfraSetDataAtPathPayload { +export interface DeletePlatformBuilderBindingPayload { clientMutationId?: string | null; - result?: string | null; + /** The `PlatformBuilderBinding` that was deleted by this mutation. */ + platformBuilderBinding?: PlatformBuilderBinding | null; + platformBuilderBindingEdge?: PlatformBuilderBindingEdge | null; } -export type PlatformInfraSetDataAtPathPayloadSelect = { +export type DeletePlatformBuilderBindingPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + platformBuilderBinding?: { + select: PlatformBuilderBindingSelect; + }; + platformBuilderBindingEdge?: { + select: PlatformBuilderBindingEdgeSelect; + }; }; -export interface PlatformInfraSetManyAndCommitPayload { +export interface CreatePlatformFunctionApiBindingPayload { clientMutationId?: string | null; - platformInfraCommitEdge?: PlatformInfraCommitEdge | null; - result?: PlatformInfraCommit | null; + /** The `PlatformFunctionApiBinding` that was created by this mutation. */ + platformFunctionApiBinding?: PlatformFunctionApiBinding | null; + platformFunctionApiBindingEdge?: PlatformFunctionApiBindingEdge | null; } -export type PlatformInfraSetManyAndCommitPayloadSelect = { +export type CreatePlatformFunctionApiBindingPayloadSelect = { clientMutationId?: boolean; - platformInfraCommitEdge?: { - select: PlatformInfraCommitEdgeSelect; + platformFunctionApiBinding?: { + select: PlatformFunctionApiBindingSelect; }; - result?: { - select: PlatformInfraCommitSelect; + platformFunctionApiBindingEdge?: { + select: PlatformFunctionApiBindingEdgeSelect; }; }; -export interface PlatformResourceInstallationsInstallPayload { +export interface UpdatePlatformFunctionApiBindingPayload { clientMutationId?: string | null; - result?: string | null; + /** The `PlatformFunctionApiBinding` that was updated by this mutation. */ + platformFunctionApiBinding?: PlatformFunctionApiBinding | null; + platformFunctionApiBindingEdge?: PlatformFunctionApiBindingEdge | null; } -export type PlatformResourceInstallationsInstallPayloadSelect = { +export type UpdatePlatformFunctionApiBindingPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + platformFunctionApiBinding?: { + select: PlatformFunctionApiBindingSelect; + }; + platformFunctionApiBindingEdge?: { + select: PlatformFunctionApiBindingEdgeSelect; + }; }; -export interface PlatformResourceInstallationsRollbackPayload { +export interface DeletePlatformFunctionApiBindingPayload { clientMutationId?: string | null; + /** The `PlatformFunctionApiBinding` that was deleted by this mutation. */ + platformFunctionApiBinding?: PlatformFunctionApiBinding | null; + platformFunctionApiBindingEdge?: PlatformFunctionApiBindingEdge | null; } -export type PlatformResourceInstallationsRollbackPayloadSelect = { +export type DeletePlatformFunctionApiBindingPayloadSelect = { clientMutationId?: boolean; + platformFunctionApiBinding?: { + select: PlatformFunctionApiBindingSelect; + }; + platformFunctionApiBindingEdge?: { + select: PlatformFunctionApiBindingEdgeSelect; + }; }; -export interface PlatformResourceInstallationsUninstallPayload { +export interface CreatePlatformFunctionCapabilityBindingPayload { clientMutationId?: string | null; + /** The `PlatformFunctionCapabilityBinding` that was created by this mutation. */ + platformFunctionCapabilityBinding?: PlatformFunctionCapabilityBinding | null; + platformFunctionCapabilityBindingEdge?: PlatformFunctionCapabilityBindingEdge | null; } -export type PlatformResourceInstallationsUninstallPayloadSelect = { +export type CreatePlatformFunctionCapabilityBindingPayloadSelect = { clientMutationId?: boolean; + platformFunctionCapabilityBinding?: { + select: PlatformFunctionCapabilityBindingSelect; + }; + platformFunctionCapabilityBindingEdge?: { + select: PlatformFunctionCapabilityBindingEdgeSelect; + }; }; -export interface PlatformResourceInstallationsUpgradePayload { +export interface UpdatePlatformFunctionCapabilityBindingPayload { clientMutationId?: string | null; + /** The `PlatformFunctionCapabilityBinding` that was updated by this mutation. */ + platformFunctionCapabilityBinding?: PlatformFunctionCapabilityBinding | null; + platformFunctionCapabilityBindingEdge?: PlatformFunctionCapabilityBindingEdge | null; } -export type PlatformResourceInstallationsUpgradePayloadSelect = { +export type UpdatePlatformFunctionCapabilityBindingPayloadSelect = { clientMutationId?: boolean; + platformFunctionCapabilityBinding?: { + select: PlatformFunctionCapabilityBindingSelect; + }; + platformFunctionCapabilityBindingEdge?: { + select: PlatformFunctionCapabilityBindingEdgeSelect; + }; }; -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 ResourceInstallationsInstallPayload { +export interface DeletePlatformFunctionCapabilityBindingPayload { clientMutationId?: string | null; - result?: string | null; + /** The `PlatformFunctionCapabilityBinding` that was deleted by this mutation. */ + platformFunctionCapabilityBinding?: PlatformFunctionCapabilityBinding | null; + platformFunctionCapabilityBindingEdge?: PlatformFunctionCapabilityBindingEdge | null; } -export type ResourceInstallationsInstallPayloadSelect = { +export type DeletePlatformFunctionCapabilityBindingPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + platformFunctionCapabilityBinding?: { + select: PlatformFunctionCapabilityBindingSelect; + }; + platformFunctionCapabilityBindingEdge?: { + select: PlatformFunctionCapabilityBindingEdgeSelect; + }; }; -export interface ResourceInstallationsRollbackPayload { +export interface CreatePlatformFunctionDefinitionPayload { clientMutationId?: string | null; + /** The `PlatformFunctionDefinition` that was created by this mutation. */ + platformFunctionDefinition?: PlatformFunctionDefinition | null; + platformFunctionDefinitionEdge?: PlatformFunctionDefinitionEdge | null; } -export type ResourceInstallationsRollbackPayloadSelect = { +export type CreatePlatformFunctionDefinitionPayloadSelect = { clientMutationId?: boolean; + platformFunctionDefinition?: { + select: PlatformFunctionDefinitionSelect; + }; + platformFunctionDefinitionEdge?: { + select: PlatformFunctionDefinitionEdgeSelect; + }; }; -export interface ResourceInstallationsUninstallPayload { +export interface UpdatePlatformFunctionDefinitionPayload { clientMutationId?: string | null; + /** The `PlatformFunctionDefinition` that was updated by this mutation. */ + platformFunctionDefinition?: PlatformFunctionDefinition | null; + platformFunctionDefinitionEdge?: PlatformFunctionDefinitionEdge | null; } -export type ResourceInstallationsUninstallPayloadSelect = { +export type UpdatePlatformFunctionDefinitionPayloadSelect = { clientMutationId?: boolean; + platformFunctionDefinition?: { + select: PlatformFunctionDefinitionSelect; + }; + platformFunctionDefinitionEdge?: { + select: PlatformFunctionDefinitionEdgeSelect; + }; }; -export interface ResourceInstallationsUpgradePayload { +export interface DeletePlatformFunctionDefinitionPayload { clientMutationId?: string | null; + /** The `PlatformFunctionDefinition` that was deleted by this mutation. */ + platformFunctionDefinition?: PlatformFunctionDefinition | null; + platformFunctionDefinitionEdge?: PlatformFunctionDefinitionEdge | null; } -export type ResourceInstallationsUpgradePayloadSelect = { +export type DeletePlatformFunctionDefinitionPayloadSelect = { clientMutationId?: boolean; + platformFunctionDefinition?: { + select: PlatformFunctionDefinitionSelect; + }; + platformFunctionDefinitionEdge?: { + select: PlatformFunctionDefinitionEdgeSelect; + }; }; -export interface SaveGraphPayload { +export interface CreatePlatformFunctionDeploymentPayload { clientMutationId?: string | null; - result?: string | null; + /** The `PlatformFunctionDeployment` that was created by this mutation. */ + platformFunctionDeployment?: PlatformFunctionDeployment | null; + platformFunctionDeploymentEdge?: PlatformFunctionDeploymentEdge | null; } -export type SaveGraphPayloadSelect = { +export type CreatePlatformFunctionDeploymentPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + platformFunctionDeployment?: { + select: PlatformFunctionDeploymentSelect; + }; + platformFunctionDeploymentEdge?: { + select: PlatformFunctionDeploymentEdgeSelect; + }; }; -export interface SetAndCommitPayload { +export interface UpdatePlatformFunctionDeploymentPayload { clientMutationId?: string | null; - functionGraphCommitEdge?: FunctionGraphCommitEdge | null; - result?: FunctionGraphCommit | null; + /** The `PlatformFunctionDeployment` that was updated by this mutation. */ + platformFunctionDeployment?: PlatformFunctionDeployment | null; + platformFunctionDeploymentEdge?: PlatformFunctionDeploymentEdge | null; } -export type SetAndCommitPayloadSelect = { +export type UpdatePlatformFunctionDeploymentPayloadSelect = { clientMutationId?: boolean; - functionGraphCommitEdge?: { - select: FunctionGraphCommitEdgeSelect; + platformFunctionDeployment?: { + select: PlatformFunctionDeploymentSelect; }; - result?: { - select: FunctionGraphCommitSelect; + platformFunctionDeploymentEdge?: { + select: PlatformFunctionDeploymentEdgeSelect; }; }; -export interface SetDataAtPathPayload { +export interface DeletePlatformFunctionDeploymentPayload { clientMutationId?: string | null; - result?: string | null; + /** The `PlatformFunctionDeployment` that was deleted by this mutation. */ + platformFunctionDeployment?: PlatformFunctionDeployment | null; + platformFunctionDeploymentEdge?: PlatformFunctionDeploymentEdge | null; } -export type SetDataAtPathPayloadSelect = { +export type DeletePlatformFunctionDeploymentPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + platformFunctionDeployment?: { + select: PlatformFunctionDeploymentSelect; + }; + platformFunctionDeploymentEdge?: { + select: PlatformFunctionDeploymentEdgeSelect; + }; }; -export interface SetManyAndCommitPayload { +export interface CreatePlatformFunctionDeploymentEventPayload { clientMutationId?: string | null; - functionGraphCommitEdge?: FunctionGraphCommitEdge | null; - result?: FunctionGraphCommit | null; + /** The `PlatformFunctionDeploymentEvent` that was created by this mutation. */ + platformFunctionDeploymentEvent?: PlatformFunctionDeploymentEvent | null; + platformFunctionDeploymentEventEdge?: PlatformFunctionDeploymentEventEdge | null; } -export type SetManyAndCommitPayloadSelect = { +export type CreatePlatformFunctionDeploymentEventPayloadSelect = { clientMutationId?: boolean; - functionGraphCommitEdge?: { - select: FunctionGraphCommitEdgeSelect; + platformFunctionDeploymentEvent?: { + select: PlatformFunctionDeploymentEventSelect; }; - result?: { - select: FunctionGraphCommitSelect; + platformFunctionDeploymentEventEdge?: { + select: PlatformFunctionDeploymentEventEdgeSelect; }; }; -export interface StartExecutionPayload { +export interface UpdatePlatformFunctionDeploymentEventPayload { clientMutationId?: string | null; - result?: string | null; + /** The `PlatformFunctionDeploymentEvent` that was updated by this mutation. */ + platformFunctionDeploymentEvent?: PlatformFunctionDeploymentEvent | null; + platformFunctionDeploymentEventEdge?: PlatformFunctionDeploymentEventEdge | null; } -export type StartExecutionPayloadSelect = { +export type UpdatePlatformFunctionDeploymentEventPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + platformFunctionDeploymentEvent?: { + select: PlatformFunctionDeploymentEventSelect; + }; + platformFunctionDeploymentEventEdge?: { + select: PlatformFunctionDeploymentEventEdgeSelect; + }; }; -export interface ValidateFunctionGraphPayload { +export interface DeletePlatformFunctionDeploymentEventPayload { clientMutationId?: string | null; - result?: boolean | null; + /** The `PlatformFunctionDeploymentEvent` that was deleted by this mutation. */ + platformFunctionDeploymentEvent?: PlatformFunctionDeploymentEvent | null; + platformFunctionDeploymentEventEdge?: PlatformFunctionDeploymentEventEdge | null; } -export type ValidateFunctionGraphPayloadSelect = { +export type DeletePlatformFunctionDeploymentEventPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + platformFunctionDeploymentEvent?: { + select: PlatformFunctionDeploymentEventSelect; + }; + platformFunctionDeploymentEventEdge?: { + select: PlatformFunctionDeploymentEventEdgeSelect; + }; }; -export interface CreateContentPresetPayload { +export interface CreatePlatformFunctionExecutionLogPayload { clientMutationId?: string | null; - /** The `ContentPreset` that was created by this mutation. */ - contentPreset?: ContentPreset | null; - contentPresetEdge?: ContentPresetEdge | null; + /** The `PlatformFunctionExecutionLog` that was created by this mutation. */ + platformFunctionExecutionLog?: PlatformFunctionExecutionLog | null; + platformFunctionExecutionLogEdge?: PlatformFunctionExecutionLogEdge | null; } -export type CreateContentPresetPayloadSelect = { +export type CreatePlatformFunctionExecutionLogPayloadSelect = { clientMutationId?: boolean; - contentPreset?: { - select: ContentPresetSelect; + platformFunctionExecutionLog?: { + select: PlatformFunctionExecutionLogSelect; }; - contentPresetEdge?: { - select: ContentPresetEdgeSelect; + platformFunctionExecutionLogEdge?: { + select: PlatformFunctionExecutionLogEdgeSelect; }; }; -export interface UpdateContentPresetPayload { +export interface UpdatePlatformFunctionExecutionLogPayload { clientMutationId?: string | null; - /** The `ContentPreset` that was updated by this mutation. */ - contentPreset?: ContentPreset | null; - contentPresetEdge?: ContentPresetEdge | null; + /** The `PlatformFunctionExecutionLog` that was updated by this mutation. */ + platformFunctionExecutionLog?: PlatformFunctionExecutionLog | null; + platformFunctionExecutionLogEdge?: PlatformFunctionExecutionLogEdge | null; } -export type UpdateContentPresetPayloadSelect = { +export type UpdatePlatformFunctionExecutionLogPayloadSelect = { clientMutationId?: boolean; - contentPreset?: { - select: ContentPresetSelect; + platformFunctionExecutionLog?: { + select: PlatformFunctionExecutionLogSelect; }; - contentPresetEdge?: { - select: ContentPresetEdgeSelect; + platformFunctionExecutionLogEdge?: { + select: PlatformFunctionExecutionLogEdgeSelect; }; }; -export interface DeleteContentPresetPayload { +export interface DeletePlatformFunctionExecutionLogPayload { clientMutationId?: string | null; - /** The `ContentPreset` that was deleted by this mutation. */ - contentPreset?: ContentPreset | null; - contentPresetEdge?: ContentPresetEdge | null; + /** The `PlatformFunctionExecutionLog` that was deleted by this mutation. */ + platformFunctionExecutionLog?: PlatformFunctionExecutionLog | null; + platformFunctionExecutionLogEdge?: PlatformFunctionExecutionLogEdge | null; } -export type DeleteContentPresetPayloadSelect = { +export type DeletePlatformFunctionExecutionLogPayloadSelect = { clientMutationId?: boolean; - contentPreset?: { - select: ContentPresetSelect; + platformFunctionExecutionLog?: { + select: PlatformFunctionExecutionLogSelect; }; - contentPresetEdge?: { - select: ContentPresetEdgeSelect; + platformFunctionExecutionLogEdge?: { + select: PlatformFunctionExecutionLogEdgeSelect; }; }; -export interface CreateDbPresetPayload { +export interface CreatePlatformFunctionInvocationAttemptPayload { clientMutationId?: string | null; - /** The `DbPreset` that was created by this mutation. */ - dbPreset?: DbPreset | null; - dbPresetEdge?: DbPresetEdge | null; + /** The `PlatformFunctionInvocationAttempt` that was created by this mutation. */ + platformFunctionInvocationAttempt?: PlatformFunctionInvocationAttempt | null; + platformFunctionInvocationAttemptEdge?: PlatformFunctionInvocationAttemptEdge | null; } -export type CreateDbPresetPayloadSelect = { +export type CreatePlatformFunctionInvocationAttemptPayloadSelect = { clientMutationId?: boolean; - dbPreset?: { - select: DbPresetSelect; + platformFunctionInvocationAttempt?: { + select: PlatformFunctionInvocationAttemptSelect; }; - dbPresetEdge?: { - select: DbPresetEdgeSelect; + platformFunctionInvocationAttemptEdge?: { + select: PlatformFunctionInvocationAttemptEdgeSelect; }; }; -export interface UpdateDbPresetPayload { +export interface UpdatePlatformFunctionInvocationAttemptPayload { clientMutationId?: string | null; - /** The `DbPreset` that was updated by this mutation. */ - dbPreset?: DbPreset | null; - dbPresetEdge?: DbPresetEdge | null; + /** The `PlatformFunctionInvocationAttempt` that was updated by this mutation. */ + platformFunctionInvocationAttempt?: PlatformFunctionInvocationAttempt | null; + platformFunctionInvocationAttemptEdge?: PlatformFunctionInvocationAttemptEdge | null; } -export type UpdateDbPresetPayloadSelect = { +export type UpdatePlatformFunctionInvocationAttemptPayloadSelect = { clientMutationId?: boolean; - dbPreset?: { - select: DbPresetSelect; + platformFunctionInvocationAttempt?: { + select: PlatformFunctionInvocationAttemptSelect; }; - dbPresetEdge?: { - select: DbPresetEdgeSelect; + platformFunctionInvocationAttemptEdge?: { + select: PlatformFunctionInvocationAttemptEdgeSelect; }; }; -export interface DeleteDbPresetPayload { +export interface DeletePlatformFunctionInvocationAttemptPayload { clientMutationId?: string | null; - /** The `DbPreset` that was deleted by this mutation. */ - dbPreset?: DbPreset | null; - dbPresetEdge?: DbPresetEdge | null; + /** The `PlatformFunctionInvocationAttempt` that was deleted by this mutation. */ + platformFunctionInvocationAttempt?: PlatformFunctionInvocationAttempt | null; + platformFunctionInvocationAttemptEdge?: PlatformFunctionInvocationAttemptEdge | null; } -export type DeleteDbPresetPayloadSelect = { +export type DeletePlatformFunctionInvocationAttemptPayloadSelect = { clientMutationId?: boolean; - dbPreset?: { - select: DbPresetSelect; + platformFunctionInvocationAttempt?: { + select: PlatformFunctionInvocationAttemptSelect; }; - dbPresetEdge?: { - select: DbPresetEdgeSelect; + platformFunctionInvocationAttemptEdge?: { + select: PlatformFunctionInvocationAttemptEdgeSelect; }; }; -export interface CreateFunctionApiBindingPayload { +export interface CreatePlatformFunctionInvocationPayload { clientMutationId?: string | null; - /** The `FunctionApiBinding` that was created by this mutation. */ - functionApiBinding?: FunctionApiBinding | null; - functionApiBindingEdge?: FunctionApiBindingEdge | null; + /** The `PlatformFunctionInvocation` that was created by this mutation. */ + platformFunctionInvocation?: PlatformFunctionInvocation | null; + platformFunctionInvocationEdge?: PlatformFunctionInvocationEdge | null; } -export type CreateFunctionApiBindingPayloadSelect = { +export type CreatePlatformFunctionInvocationPayloadSelect = { clientMutationId?: boolean; - functionApiBinding?: { - select: FunctionApiBindingSelect; + platformFunctionInvocation?: { + select: PlatformFunctionInvocationSelect; }; - functionApiBindingEdge?: { - select: FunctionApiBindingEdgeSelect; + platformFunctionInvocationEdge?: { + select: PlatformFunctionInvocationEdgeSelect; }; }; -export interface UpdateFunctionApiBindingPayload { +export interface UpdatePlatformFunctionInvocationPayload { clientMutationId?: string | null; - /** The `FunctionApiBinding` that was updated by this mutation. */ - functionApiBinding?: FunctionApiBinding | null; - functionApiBindingEdge?: FunctionApiBindingEdge | null; + /** The `PlatformFunctionInvocation` that was updated by this mutation. */ + platformFunctionInvocation?: PlatformFunctionInvocation | null; + platformFunctionInvocationEdge?: PlatformFunctionInvocationEdge | null; } -export type UpdateFunctionApiBindingPayloadSelect = { +export type UpdatePlatformFunctionInvocationPayloadSelect = { clientMutationId?: boolean; - functionApiBinding?: { - select: FunctionApiBindingSelect; + platformFunctionInvocation?: { + select: PlatformFunctionInvocationSelect; }; - functionApiBindingEdge?: { - select: FunctionApiBindingEdgeSelect; + platformFunctionInvocationEdge?: { + select: PlatformFunctionInvocationEdgeSelect; }; }; -export interface DeleteFunctionApiBindingPayload { +export interface DeletePlatformFunctionInvocationPayload { clientMutationId?: string | null; - /** The `FunctionApiBinding` that was deleted by this mutation. */ - functionApiBinding?: FunctionApiBinding | null; - functionApiBindingEdge?: FunctionApiBindingEdge | null; + /** The `PlatformFunctionInvocation` that was deleted by this mutation. */ + platformFunctionInvocation?: PlatformFunctionInvocation | null; + platformFunctionInvocationEdge?: PlatformFunctionInvocationEdge | null; } -export type DeleteFunctionApiBindingPayloadSelect = { +export type DeletePlatformFunctionInvocationPayloadSelect = { clientMutationId?: boolean; - functionApiBinding?: { - select: FunctionApiBindingSelect; + platformFunctionInvocation?: { + select: PlatformFunctionInvocationSelect; }; - functionApiBindingEdge?: { - select: FunctionApiBindingEdgeSelect; + platformFunctionInvocationEdge?: { + select: PlatformFunctionInvocationEdgeSelect; }; }; -export interface CreateFunctionCapabilityBindingPayload { +export interface CreatePlatformImagePayload { clientMutationId?: string | null; - /** The `FunctionCapabilityBinding` that was created by this mutation. */ - functionCapabilityBinding?: FunctionCapabilityBinding | null; - functionCapabilityBindingEdge?: FunctionCapabilityBindingEdge | null; + /** The `PlatformImage` that was created by this mutation. */ + platformImage?: PlatformImage | null; + platformImageEdge?: PlatformImageEdge | null; } -export type CreateFunctionCapabilityBindingPayloadSelect = { +export type CreatePlatformImagePayloadSelect = { clientMutationId?: boolean; - functionCapabilityBinding?: { - select: FunctionCapabilityBindingSelect; + platformImage?: { + select: PlatformImageSelect; }; - functionCapabilityBindingEdge?: { - select: FunctionCapabilityBindingEdgeSelect; + platformImageEdge?: { + select: PlatformImageEdgeSelect; }; }; -export interface UpdateFunctionCapabilityBindingPayload { +export interface UpdatePlatformImagePayload { clientMutationId?: string | null; - /** The `FunctionCapabilityBinding` that was updated by this mutation. */ - functionCapabilityBinding?: FunctionCapabilityBinding | null; - functionCapabilityBindingEdge?: FunctionCapabilityBindingEdge | null; + /** The `PlatformImage` that was updated by this mutation. */ + platformImage?: PlatformImage | null; + platformImageEdge?: PlatformImageEdge | null; } -export type UpdateFunctionCapabilityBindingPayloadSelect = { +export type UpdatePlatformImagePayloadSelect = { clientMutationId?: boolean; - functionCapabilityBinding?: { - select: FunctionCapabilityBindingSelect; + platformImage?: { + select: PlatformImageSelect; }; - functionCapabilityBindingEdge?: { - select: FunctionCapabilityBindingEdgeSelect; + platformImageEdge?: { + select: PlatformImageEdgeSelect; }; }; -export interface DeleteFunctionCapabilityBindingPayload { +export interface DeletePlatformImagePayload { clientMutationId?: string | null; - /** The `FunctionCapabilityBinding` that was deleted by this mutation. */ - functionCapabilityBinding?: FunctionCapabilityBinding | null; - functionCapabilityBindingEdge?: FunctionCapabilityBindingEdge | null; + /** The `PlatformImage` that was deleted by this mutation. */ + platformImage?: PlatformImage | null; + platformImageEdge?: PlatformImageEdge | null; } -export type DeleteFunctionCapabilityBindingPayloadSelect = { +export type DeletePlatformImagePayloadSelect = { clientMutationId?: boolean; - functionCapabilityBinding?: { - select: FunctionCapabilityBindingSelect; + platformImage?: { + select: PlatformImageSelect; }; - functionCapabilityBindingEdge?: { - select: FunctionCapabilityBindingEdgeSelect; + platformImageEdge?: { + select: PlatformImageEdgeSelect; }; }; -export interface CreateFunctionDefinitionPayload { +export interface CreatePlatformImageGrantPayload { clientMutationId?: string | null; - /** The `FunctionDefinition` that was created by this mutation. */ - functionDefinition?: FunctionDefinition | null; - functionDefinitionEdge?: FunctionDefinitionEdge | null; + /** The `PlatformImageGrant` that was created by this mutation. */ + platformImageGrant?: PlatformImageGrant | null; + platformImageGrantEdge?: PlatformImageGrantEdge | null; } -export type CreateFunctionDefinitionPayloadSelect = { +export type CreatePlatformImageGrantPayloadSelect = { clientMutationId?: boolean; - functionDefinition?: { - select: FunctionDefinitionSelect; + platformImageGrant?: { + select: PlatformImageGrantSelect; }; - functionDefinitionEdge?: { - select: FunctionDefinitionEdgeSelect; + platformImageGrantEdge?: { + select: PlatformImageGrantEdgeSelect; }; }; -export interface UpdateFunctionDefinitionPayload { +export interface UpdatePlatformImageGrantPayload { clientMutationId?: string | null; - /** The `FunctionDefinition` that was updated by this mutation. */ - functionDefinition?: FunctionDefinition | null; - functionDefinitionEdge?: FunctionDefinitionEdge | null; + /** The `PlatformImageGrant` that was updated by this mutation. */ + platformImageGrant?: PlatformImageGrant | null; + platformImageGrantEdge?: PlatformImageGrantEdge | null; } -export type UpdateFunctionDefinitionPayloadSelect = { +export type UpdatePlatformImageGrantPayloadSelect = { clientMutationId?: boolean; - functionDefinition?: { - select: FunctionDefinitionSelect; + platformImageGrant?: { + select: PlatformImageGrantSelect; }; - functionDefinitionEdge?: { - select: FunctionDefinitionEdgeSelect; + platformImageGrantEdge?: { + select: PlatformImageGrantEdgeSelect; }; }; -export interface DeleteFunctionDefinitionPayload { +export interface DeletePlatformImageGrantPayload { clientMutationId?: string | null; - /** The `FunctionDefinition` that was deleted by this mutation. */ - functionDefinition?: FunctionDefinition | null; - functionDefinitionEdge?: FunctionDefinitionEdge | null; + /** The `PlatformImageGrant` that was deleted by this mutation. */ + platformImageGrant?: PlatformImageGrant | null; + platformImageGrantEdge?: PlatformImageGrantEdge | null; } -export type DeleteFunctionDefinitionPayloadSelect = { +export type DeletePlatformImageGrantPayloadSelect = { clientMutationId?: boolean; - functionDefinition?: { - select: FunctionDefinitionSelect; + platformImageGrant?: { + select: PlatformImageGrantSelect; }; - functionDefinitionEdge?: { - select: FunctionDefinitionEdgeSelect; + platformImageGrantEdge?: { + select: PlatformImageGrantEdgeSelect; }; }; -export interface CreateFunctionDeploymentPayload { +export interface CreatePlatformInfraCommitPayload { clientMutationId?: string | null; - /** The `FunctionDeployment` that was created by this mutation. */ - functionDeployment?: FunctionDeployment | null; - functionDeploymentEdge?: FunctionDeploymentEdge | null; + /** The `PlatformInfraCommit` that was created by this mutation. */ + platformInfraCommit?: PlatformInfraCommit | null; + platformInfraCommitEdge?: PlatformInfraCommitEdge | null; } -export type CreateFunctionDeploymentPayloadSelect = { +export type CreatePlatformInfraCommitPayloadSelect = { clientMutationId?: boolean; - functionDeployment?: { - select: FunctionDeploymentSelect; + platformInfraCommit?: { + select: PlatformInfraCommitSelect; }; - functionDeploymentEdge?: { - select: FunctionDeploymentEdgeSelect; + platformInfraCommitEdge?: { + select: PlatformInfraCommitEdgeSelect; }; }; -export interface UpdateFunctionDeploymentPayload { +export interface UpdatePlatformInfraCommitPayload { clientMutationId?: string | null; - /** The `FunctionDeployment` that was updated by this mutation. */ - functionDeployment?: FunctionDeployment | null; - functionDeploymentEdge?: FunctionDeploymentEdge | null; + /** The `PlatformInfraCommit` that was updated by this mutation. */ + platformInfraCommit?: PlatformInfraCommit | null; + platformInfraCommitEdge?: PlatformInfraCommitEdge | null; } -export type UpdateFunctionDeploymentPayloadSelect = { +export type UpdatePlatformInfraCommitPayloadSelect = { clientMutationId?: boolean; - functionDeployment?: { - select: FunctionDeploymentSelect; + platformInfraCommit?: { + select: PlatformInfraCommitSelect; }; - functionDeploymentEdge?: { - select: FunctionDeploymentEdgeSelect; + platformInfraCommitEdge?: { + select: PlatformInfraCommitEdgeSelect; }; }; -export interface DeleteFunctionDeploymentPayload { +export interface DeletePlatformInfraCommitPayload { clientMutationId?: string | null; - /** The `FunctionDeployment` that was deleted by this mutation. */ - functionDeployment?: FunctionDeployment | null; - functionDeploymentEdge?: FunctionDeploymentEdge | null; + /** The `PlatformInfraCommit` that was deleted by this mutation. */ + platformInfraCommit?: PlatformInfraCommit | null; + platformInfraCommitEdge?: PlatformInfraCommitEdge | null; } -export type DeleteFunctionDeploymentPayloadSelect = { +export type DeletePlatformInfraCommitPayloadSelect = { clientMutationId?: boolean; - functionDeployment?: { - select: FunctionDeploymentSelect; + platformInfraCommit?: { + select: PlatformInfraCommitSelect; }; - functionDeploymentEdge?: { - select: FunctionDeploymentEdgeSelect; + platformInfraCommitEdge?: { + select: PlatformInfraCommitEdgeSelect; }; }; -export interface CreateFunctionDeploymentEventPayload { +export interface CreatePlatformInfraObjectPayload { clientMutationId?: string | null; - /** The `FunctionDeploymentEvent` that was created by this mutation. */ - functionDeploymentEvent?: FunctionDeploymentEvent | null; - functionDeploymentEventEdge?: FunctionDeploymentEventEdge | null; + /** The `PlatformInfraObject` that was created by this mutation. */ + platformInfraObject?: PlatformInfraObject | null; + platformInfraObjectEdge?: PlatformInfraObjectEdge | null; } -export type CreateFunctionDeploymentEventPayloadSelect = { +export type CreatePlatformInfraObjectPayloadSelect = { clientMutationId?: boolean; - functionDeploymentEvent?: { - select: FunctionDeploymentEventSelect; + platformInfraObject?: { + select: PlatformInfraObjectSelect; }; - functionDeploymentEventEdge?: { - select: FunctionDeploymentEventEdgeSelect; + platformInfraObjectEdge?: { + select: PlatformInfraObjectEdgeSelect; }; }; -export interface UpdateFunctionDeploymentEventPayload { +export interface UpdatePlatformInfraObjectPayload { clientMutationId?: string | null; - /** The `FunctionDeploymentEvent` that was updated by this mutation. */ - functionDeploymentEvent?: FunctionDeploymentEvent | null; - functionDeploymentEventEdge?: FunctionDeploymentEventEdge | null; + /** The `PlatformInfraObject` that was updated by this mutation. */ + platformInfraObject?: PlatformInfraObject | null; + platformInfraObjectEdge?: PlatformInfraObjectEdge | null; } -export type UpdateFunctionDeploymentEventPayloadSelect = { +export type UpdatePlatformInfraObjectPayloadSelect = { clientMutationId?: boolean; - functionDeploymentEvent?: { - select: FunctionDeploymentEventSelect; + platformInfraObject?: { + select: PlatformInfraObjectSelect; }; - functionDeploymentEventEdge?: { - select: FunctionDeploymentEventEdgeSelect; + platformInfraObjectEdge?: { + select: PlatformInfraObjectEdgeSelect; }; }; -export interface DeleteFunctionDeploymentEventPayload { +export interface DeletePlatformInfraObjectPayload { clientMutationId?: string | null; - /** The `FunctionDeploymentEvent` that was deleted by this mutation. */ - functionDeploymentEvent?: FunctionDeploymentEvent | null; - functionDeploymentEventEdge?: FunctionDeploymentEventEdge | null; + /** The `PlatformInfraObject` that was deleted by this mutation. */ + platformInfraObject?: PlatformInfraObject | null; + platformInfraObjectEdge?: PlatformInfraObjectEdge | null; } -export type DeleteFunctionDeploymentEventPayloadSelect = { +export type DeletePlatformInfraObjectPayloadSelect = { clientMutationId?: boolean; - functionDeploymentEvent?: { - select: FunctionDeploymentEventSelect; + platformInfraObject?: { + select: PlatformInfraObjectSelect; }; - functionDeploymentEventEdge?: { - select: FunctionDeploymentEventEdgeSelect; + platformInfraObjectEdge?: { + select: PlatformInfraObjectEdgeSelect; }; }; -export interface CreateFunctionExecutionLogPayload { +export interface CreatePlatformInfraRefPayload { clientMutationId?: string | null; - /** The `FunctionExecutionLog` that was created by this mutation. */ - functionExecutionLog?: FunctionExecutionLog | null; - functionExecutionLogEdge?: FunctionExecutionLogEdge | null; + /** The `PlatformInfraRef` that was created by this mutation. */ + platformInfraRef?: PlatformInfraRef | null; + platformInfraRefEdge?: PlatformInfraRefEdge | null; } -export type CreateFunctionExecutionLogPayloadSelect = { +export type CreatePlatformInfraRefPayloadSelect = { clientMutationId?: boolean; - functionExecutionLog?: { - select: FunctionExecutionLogSelect; + platformInfraRef?: { + select: PlatformInfraRefSelect; }; - functionExecutionLogEdge?: { - select: FunctionExecutionLogEdgeSelect; + platformInfraRefEdge?: { + select: PlatformInfraRefEdgeSelect; }; }; -export interface UpdateFunctionExecutionLogPayload { +export interface UpdatePlatformInfraRefPayload { clientMutationId?: string | null; - /** The `FunctionExecutionLog` that was updated by this mutation. */ - functionExecutionLog?: FunctionExecutionLog | null; - functionExecutionLogEdge?: FunctionExecutionLogEdge | null; + /** The `PlatformInfraRef` that was updated by this mutation. */ + platformInfraRef?: PlatformInfraRef | null; + platformInfraRefEdge?: PlatformInfraRefEdge | null; } -export type UpdateFunctionExecutionLogPayloadSelect = { +export type UpdatePlatformInfraRefPayloadSelect = { clientMutationId?: boolean; - functionExecutionLog?: { - select: FunctionExecutionLogSelect; + platformInfraRef?: { + select: PlatformInfraRefSelect; }; - functionExecutionLogEdge?: { - select: FunctionExecutionLogEdgeSelect; + platformInfraRefEdge?: { + select: PlatformInfraRefEdgeSelect; }; }; -export interface DeleteFunctionExecutionLogPayload { - clientMutationId?: string | null; - /** The `FunctionExecutionLog` that was deleted by this mutation. */ - functionExecutionLog?: FunctionExecutionLog | null; - functionExecutionLogEdge?: FunctionExecutionLogEdge | null; +export interface DeletePlatformInfraRefPayload { + clientMutationId?: string | null; + /** The `PlatformInfraRef` that was deleted by this mutation. */ + platformInfraRef?: PlatformInfraRef | null; + platformInfraRefEdge?: PlatformInfraRefEdge | null; } -export type DeleteFunctionExecutionLogPayloadSelect = { +export type DeletePlatformInfraRefPayloadSelect = { clientMutationId?: boolean; - functionExecutionLog?: { - select: FunctionExecutionLogSelect; + platformInfraRef?: { + select: PlatformInfraRefSelect; }; - functionExecutionLogEdge?: { - select: FunctionExecutionLogEdgeSelect; + platformInfraRefEdge?: { + select: PlatformInfraRefEdgeSelect; }; }; -export interface CreateFunctionGraphCommitPayload { +export interface CreatePlatformInfraStorePayload { clientMutationId?: string | null; - /** The `FunctionGraphCommit` that was created by this mutation. */ - functionGraphCommit?: FunctionGraphCommit | null; - functionGraphCommitEdge?: FunctionGraphCommitEdge | null; + /** The `PlatformInfraStore` that was created by this mutation. */ + platformInfraStore?: PlatformInfraStore | null; + platformInfraStoreEdge?: PlatformInfraStoreEdge | null; } -export type CreateFunctionGraphCommitPayloadSelect = { +export type CreatePlatformInfraStorePayloadSelect = { clientMutationId?: boolean; - functionGraphCommit?: { - select: FunctionGraphCommitSelect; + platformInfraStore?: { + select: PlatformInfraStoreSelect; }; - functionGraphCommitEdge?: { - select: FunctionGraphCommitEdgeSelect; + platformInfraStoreEdge?: { + select: PlatformInfraStoreEdgeSelect; }; }; -export interface UpdateFunctionGraphCommitPayload { +export interface UpdatePlatformInfraStorePayload { clientMutationId?: string | null; - /** The `FunctionGraphCommit` that was updated by this mutation. */ - functionGraphCommit?: FunctionGraphCommit | null; - functionGraphCommitEdge?: FunctionGraphCommitEdge | null; + /** The `PlatformInfraStore` that was updated by this mutation. */ + platformInfraStore?: PlatformInfraStore | null; + platformInfraStoreEdge?: PlatformInfraStoreEdge | null; } -export type UpdateFunctionGraphCommitPayloadSelect = { +export type UpdatePlatformInfraStorePayloadSelect = { clientMutationId?: boolean; - functionGraphCommit?: { - select: FunctionGraphCommitSelect; + platformInfraStore?: { + select: PlatformInfraStoreSelect; }; - functionGraphCommitEdge?: { - select: FunctionGraphCommitEdgeSelect; + platformInfraStoreEdge?: { + select: PlatformInfraStoreEdgeSelect; }; }; -export interface DeleteFunctionGraphCommitPayload { +export interface DeletePlatformInfraStorePayload { clientMutationId?: string | null; - /** The `FunctionGraphCommit` that was deleted by this mutation. */ - functionGraphCommit?: FunctionGraphCommit | null; - functionGraphCommitEdge?: FunctionGraphCommitEdge | null; + /** The `PlatformInfraStore` that was deleted by this mutation. */ + platformInfraStore?: PlatformInfraStore | null; + platformInfraStoreEdge?: PlatformInfraStoreEdge | null; } -export type DeleteFunctionGraphCommitPayloadSelect = { +export type DeletePlatformInfraStorePayloadSelect = { clientMutationId?: boolean; - functionGraphCommit?: { - select: FunctionGraphCommitSelect; + platformInfraStore?: { + select: PlatformInfraStoreSelect; }; - functionGraphCommitEdge?: { - select: FunctionGraphCommitEdgeSelect; + platformInfraStoreEdge?: { + select: PlatformInfraStoreEdgeSelect; }; }; -export interface CreateFunctionGraphPayload { +export interface CreatePlatformK8sResourceKindPayload { clientMutationId?: string | null; - result?: string | null; + /** The `PlatformK8sResourceKind` that was created by this mutation. */ + platformK8sResourceKind?: PlatformK8sResourceKind | null; + platformK8sResourceKindEdge?: PlatformK8sResourceKindEdge | null; } -export type CreateFunctionGraphPayloadSelect = { +export type CreatePlatformK8sResourceKindPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + platformK8sResourceKind?: { + select: PlatformK8sResourceKindSelect; + }; + platformK8sResourceKindEdge?: { + select: PlatformK8sResourceKindEdgeSelect; + }; }; -export interface UpdateFunctionGraphPayload { +export interface UpdatePlatformK8sResourceKindPayload { clientMutationId?: string | null; - /** The `FunctionGraph` that was updated by this mutation. */ - functionGraph?: FunctionGraph | null; - functionGraphEdge?: FunctionGraphEdge | null; + /** The `PlatformK8sResourceKind` that was updated by this mutation. */ + platformK8sResourceKind?: PlatformK8sResourceKind | null; + platformK8sResourceKindEdge?: PlatformK8sResourceKindEdge | null; } -export type UpdateFunctionGraphPayloadSelect = { +export type UpdatePlatformK8sResourceKindPayloadSelect = { clientMutationId?: boolean; - functionGraph?: { - select: FunctionGraphSelect; + platformK8sResourceKind?: { + select: PlatformK8sResourceKindSelect; }; - functionGraphEdge?: { - select: FunctionGraphEdgeSelect; + platformK8sResourceKindEdge?: { + select: PlatformK8sResourceKindEdgeSelect; }; }; -export interface DeleteFunctionGraphPayload { +export interface DeletePlatformK8sResourceKindPayload { clientMutationId?: string | null; - /** The `FunctionGraph` that was deleted by this mutation. */ - functionGraph?: FunctionGraph | null; - functionGraphEdge?: FunctionGraphEdge | null; + /** The `PlatformK8sResourceKind` that was deleted by this mutation. */ + platformK8sResourceKind?: PlatformK8sResourceKind | null; + platformK8sResourceKindEdge?: PlatformK8sResourceKindEdge | null; } -export type DeleteFunctionGraphPayloadSelect = { +export type DeletePlatformK8sResourceKindPayloadSelect = { clientMutationId?: boolean; - functionGraph?: { - select: FunctionGraphSelect; + platformK8sResourceKind?: { + select: PlatformK8sResourceKindSelect; }; - functionGraphEdge?: { - select: FunctionGraphEdgeSelect; + platformK8sResourceKindEdge?: { + select: PlatformK8sResourceKindEdgeSelect; }; }; -export interface CreateFunctionGraphExecutionPayload { +export interface CreatePlatformK8sSpecRulePayload { clientMutationId?: string | null; - /** The `FunctionGraphExecution` that was created by this mutation. */ - functionGraphExecution?: FunctionGraphExecution | null; - functionGraphExecutionEdge?: FunctionGraphExecutionEdge | null; + /** The `PlatformK8sSpecRule` that was created by this mutation. */ + platformK8sSpecRule?: PlatformK8sSpecRule | null; + platformK8sSpecRuleEdge?: PlatformK8sSpecRuleEdge | null; } -export type CreateFunctionGraphExecutionPayloadSelect = { +export type CreatePlatformK8sSpecRulePayloadSelect = { clientMutationId?: boolean; - functionGraphExecution?: { - select: FunctionGraphExecutionSelect; + platformK8sSpecRule?: { + select: PlatformK8sSpecRuleSelect; }; - functionGraphExecutionEdge?: { - select: FunctionGraphExecutionEdgeSelect; + platformK8sSpecRuleEdge?: { + select: PlatformK8sSpecRuleEdgeSelect; }; }; -export interface UpdateFunctionGraphExecutionPayload { +export interface UpdatePlatformK8sSpecRulePayload { clientMutationId?: string | null; - /** The `FunctionGraphExecution` that was updated by this mutation. */ - functionGraphExecution?: FunctionGraphExecution | null; - functionGraphExecutionEdge?: FunctionGraphExecutionEdge | null; + /** The `PlatformK8sSpecRule` that was updated by this mutation. */ + platformK8sSpecRule?: PlatformK8sSpecRule | null; + platformK8sSpecRuleEdge?: PlatformK8sSpecRuleEdge | null; } -export type UpdateFunctionGraphExecutionPayloadSelect = { +export type UpdatePlatformK8sSpecRulePayloadSelect = { clientMutationId?: boolean; - functionGraphExecution?: { - select: FunctionGraphExecutionSelect; + platformK8sSpecRule?: { + select: PlatformK8sSpecRuleSelect; }; - functionGraphExecutionEdge?: { - select: FunctionGraphExecutionEdgeSelect; + platformK8sSpecRuleEdge?: { + select: PlatformK8sSpecRuleEdgeSelect; }; }; -export interface DeleteFunctionGraphExecutionPayload { +export interface DeletePlatformK8sSpecRulePayload { clientMutationId?: string | null; - /** The `FunctionGraphExecution` that was deleted by this mutation. */ - functionGraphExecution?: FunctionGraphExecution | null; - functionGraphExecutionEdge?: FunctionGraphExecutionEdge | null; + /** The `PlatformK8sSpecRule` that was deleted by this mutation. */ + platformK8sSpecRule?: PlatformK8sSpecRule | null; + platformK8sSpecRuleEdge?: PlatformK8sSpecRuleEdge | null; } -export type DeleteFunctionGraphExecutionPayloadSelect = { +export type DeletePlatformK8sSpecRulePayloadSelect = { clientMutationId?: boolean; - functionGraphExecution?: { - select: FunctionGraphExecutionSelect; + platformK8sSpecRule?: { + select: PlatformK8sSpecRuleSelect; }; - functionGraphExecutionEdge?: { - select: FunctionGraphExecutionEdgeSelect; + platformK8sSpecRuleEdge?: { + select: PlatformK8sSpecRuleEdgeSelect; }; }; -export interface CreateFunctionGraphExecutionNodeStatePayload { +export interface CreatePlatformNamespacePayload { clientMutationId?: string | null; - /** The `FunctionGraphExecutionNodeState` that was created by this mutation. */ - functionGraphExecutionNodeState?: FunctionGraphExecutionNodeState | null; - functionGraphExecutionNodeStateEdge?: FunctionGraphExecutionNodeStateEdge | null; + /** The `PlatformNamespace` that was created by this mutation. */ + platformNamespace?: PlatformNamespace | null; + platformNamespaceEdge?: PlatformNamespaceEdge | null; } -export type CreateFunctionGraphExecutionNodeStatePayloadSelect = { +export type CreatePlatformNamespacePayloadSelect = { clientMutationId?: boolean; - functionGraphExecutionNodeState?: { - select: FunctionGraphExecutionNodeStateSelect; + platformNamespace?: { + select: PlatformNamespaceSelect; }; - functionGraphExecutionNodeStateEdge?: { - select: FunctionGraphExecutionNodeStateEdgeSelect; + platformNamespaceEdge?: { + select: PlatformNamespaceEdgeSelect; }; }; -export interface UpdateFunctionGraphExecutionNodeStatePayload { +export interface UpdatePlatformNamespacePayload { clientMutationId?: string | null; - /** The `FunctionGraphExecutionNodeState` that was updated by this mutation. */ - functionGraphExecutionNodeState?: FunctionGraphExecutionNodeState | null; - functionGraphExecutionNodeStateEdge?: FunctionGraphExecutionNodeStateEdge | null; + /** The `PlatformNamespace` that was updated by this mutation. */ + platformNamespace?: PlatformNamespace | null; + platformNamespaceEdge?: PlatformNamespaceEdge | null; } -export type UpdateFunctionGraphExecutionNodeStatePayloadSelect = { +export type UpdatePlatformNamespacePayloadSelect = { clientMutationId?: boolean; - functionGraphExecutionNodeState?: { - select: FunctionGraphExecutionNodeStateSelect; + platformNamespace?: { + select: PlatformNamespaceSelect; }; - functionGraphExecutionNodeStateEdge?: { - select: FunctionGraphExecutionNodeStateEdgeSelect; + platformNamespaceEdge?: { + select: PlatformNamespaceEdgeSelect; }; }; -export interface DeleteFunctionGraphExecutionNodeStatePayload { +export interface DeletePlatformNamespacePayload { clientMutationId?: string | null; - /** The `FunctionGraphExecutionNodeState` that was deleted by this mutation. */ - functionGraphExecutionNodeState?: FunctionGraphExecutionNodeState | null; - functionGraphExecutionNodeStateEdge?: FunctionGraphExecutionNodeStateEdge | null; + /** The `PlatformNamespace` that was deleted by this mutation. */ + platformNamespace?: PlatformNamespace | null; + platformNamespaceEdge?: PlatformNamespaceEdge | null; } -export type DeleteFunctionGraphExecutionNodeStatePayloadSelect = { +export type DeletePlatformNamespacePayloadSelect = { clientMutationId?: boolean; - functionGraphExecutionNodeState?: { - select: FunctionGraphExecutionNodeStateSelect; + platformNamespace?: { + select: PlatformNamespaceSelect; }; - functionGraphExecutionNodeStateEdge?: { - select: FunctionGraphExecutionNodeStateEdgeSelect; + platformNamespaceEdge?: { + select: PlatformNamespaceEdgeSelect; }; }; -export interface CreateFunctionGraphExecutionOutputPayload { +export interface CreatePlatformNamespaceEventPayload { clientMutationId?: string | null; - /** The `FunctionGraphExecutionOutput` that was created by this mutation. */ - functionGraphExecutionOutput?: FunctionGraphExecutionOutput | null; - functionGraphExecutionOutputEdge?: FunctionGraphExecutionOutputEdge | null; + /** The `PlatformNamespaceEvent` that was created by this mutation. */ + platformNamespaceEvent?: PlatformNamespaceEvent | null; + platformNamespaceEventEdge?: PlatformNamespaceEventEdge | null; } -export type CreateFunctionGraphExecutionOutputPayloadSelect = { +export type CreatePlatformNamespaceEventPayloadSelect = { clientMutationId?: boolean; - functionGraphExecutionOutput?: { - select: FunctionGraphExecutionOutputSelect; + platformNamespaceEvent?: { + select: PlatformNamespaceEventSelect; }; - functionGraphExecutionOutputEdge?: { - select: FunctionGraphExecutionOutputEdgeSelect; + platformNamespaceEventEdge?: { + select: PlatformNamespaceEventEdgeSelect; }; }; -export interface UpdateFunctionGraphExecutionOutputPayload { +export interface UpdatePlatformNamespaceEventPayload { clientMutationId?: string | null; - /** The `FunctionGraphExecutionOutput` that was updated by this mutation. */ - functionGraphExecutionOutput?: FunctionGraphExecutionOutput | null; - functionGraphExecutionOutputEdge?: FunctionGraphExecutionOutputEdge | null; + /** The `PlatformNamespaceEvent` that was updated by this mutation. */ + platformNamespaceEvent?: PlatformNamespaceEvent | null; + platformNamespaceEventEdge?: PlatformNamespaceEventEdge | null; } -export type UpdateFunctionGraphExecutionOutputPayloadSelect = { +export type UpdatePlatformNamespaceEventPayloadSelect = { clientMutationId?: boolean; - functionGraphExecutionOutput?: { - select: FunctionGraphExecutionOutputSelect; + platformNamespaceEvent?: { + select: PlatformNamespaceEventSelect; }; - functionGraphExecutionOutputEdge?: { - select: FunctionGraphExecutionOutputEdgeSelect; + platformNamespaceEventEdge?: { + select: PlatformNamespaceEventEdgeSelect; }; }; -export interface DeleteFunctionGraphExecutionOutputPayload { +export interface DeletePlatformNamespaceEventPayload { clientMutationId?: string | null; - /** The `FunctionGraphExecutionOutput` that was deleted by this mutation. */ - functionGraphExecutionOutput?: FunctionGraphExecutionOutput | null; - functionGraphExecutionOutputEdge?: FunctionGraphExecutionOutputEdge | null; + /** The `PlatformNamespaceEvent` that was deleted by this mutation. */ + platformNamespaceEvent?: PlatformNamespaceEvent | null; + platformNamespaceEventEdge?: PlatformNamespaceEventEdge | null; } -export type DeleteFunctionGraphExecutionOutputPayloadSelect = { +export type DeletePlatformNamespaceEventPayloadSelect = { clientMutationId?: boolean; - functionGraphExecutionOutput?: { - select: FunctionGraphExecutionOutputSelect; + platformNamespaceEvent?: { + select: PlatformNamespaceEventSelect; }; - functionGraphExecutionOutputEdge?: { - select: FunctionGraphExecutionOutputEdgeSelect; + platformNamespaceEventEdge?: { + select: PlatformNamespaceEventEdgeSelect; }; }; -export interface CreateFunctionGraphObjectPayload { +export interface CreatePlatformProposalCommentPayload { clientMutationId?: string | null; - /** The `FunctionGraphObject` that was created by this mutation. */ - functionGraphObject?: FunctionGraphObject | null; - functionGraphObjectEdge?: FunctionGraphObjectEdge | null; + /** The `PlatformProposalComment` that was created by this mutation. */ + platformProposalComment?: PlatformProposalComment | null; + platformProposalCommentEdge?: PlatformProposalCommentEdge | null; } -export type CreateFunctionGraphObjectPayloadSelect = { +export type CreatePlatformProposalCommentPayloadSelect = { clientMutationId?: boolean; - functionGraphObject?: { - select: FunctionGraphObjectSelect; + platformProposalComment?: { + select: PlatformProposalCommentSelect; }; - functionGraphObjectEdge?: { - select: FunctionGraphObjectEdgeSelect; + platformProposalCommentEdge?: { + select: PlatformProposalCommentEdgeSelect; }; }; -export interface UpdateFunctionGraphObjectPayload { +export interface UpdatePlatformProposalCommentPayload { clientMutationId?: string | null; - /** The `FunctionGraphObject` that was updated by this mutation. */ - functionGraphObject?: FunctionGraphObject | null; - functionGraphObjectEdge?: FunctionGraphObjectEdge | null; + /** The `PlatformProposalComment` that was updated by this mutation. */ + platformProposalComment?: PlatformProposalComment | null; + platformProposalCommentEdge?: PlatformProposalCommentEdge | null; } -export type UpdateFunctionGraphObjectPayloadSelect = { +export type UpdatePlatformProposalCommentPayloadSelect = { clientMutationId?: boolean; - functionGraphObject?: { - select: FunctionGraphObjectSelect; + platformProposalComment?: { + select: PlatformProposalCommentSelect; }; - functionGraphObjectEdge?: { - select: FunctionGraphObjectEdgeSelect; + platformProposalCommentEdge?: { + select: PlatformProposalCommentEdgeSelect; }; }; -export interface DeleteFunctionGraphObjectPayload { +export interface DeletePlatformProposalCommentPayload { clientMutationId?: string | null; - /** The `FunctionGraphObject` that was deleted by this mutation. */ - functionGraphObject?: FunctionGraphObject | null; - functionGraphObjectEdge?: FunctionGraphObjectEdge | null; + /** The `PlatformProposalComment` that was deleted by this mutation. */ + platformProposalComment?: PlatformProposalComment | null; + platformProposalCommentEdge?: PlatformProposalCommentEdge | null; } -export type DeleteFunctionGraphObjectPayloadSelect = { +export type DeletePlatformProposalCommentPayloadSelect = { clientMutationId?: boolean; - functionGraphObject?: { - select: FunctionGraphObjectSelect; + platformProposalComment?: { + select: PlatformProposalCommentSelect; }; - functionGraphObjectEdge?: { - select: FunctionGraphObjectEdgeSelect; + platformProposalCommentEdge?: { + select: PlatformProposalCommentEdgeSelect; }; }; -export interface CreateFunctionGraphRefPayload { +export interface CreatePlatformProposalPayload { clientMutationId?: string | null; - /** The `FunctionGraphRef` that was created by this mutation. */ - functionGraphRef?: FunctionGraphRef | null; - functionGraphRefEdge?: FunctionGraphRefEdge | null; + /** The `PlatformProposal` that was created by this mutation. */ + platformProposal?: PlatformProposal | null; + platformProposalEdge?: PlatformProposalEdge | null; } -export type CreateFunctionGraphRefPayloadSelect = { +export type CreatePlatformProposalPayloadSelect = { clientMutationId?: boolean; - functionGraphRef?: { - select: FunctionGraphRefSelect; + platformProposal?: { + select: PlatformProposalSelect; }; - functionGraphRefEdge?: { - select: FunctionGraphRefEdgeSelect; + platformProposalEdge?: { + select: PlatformProposalEdgeSelect; }; }; -export interface UpdateFunctionGraphRefPayload { +export interface UpdatePlatformProposalPayload { clientMutationId?: string | null; - /** The `FunctionGraphRef` that was updated by this mutation. */ - functionGraphRef?: FunctionGraphRef | null; - functionGraphRefEdge?: FunctionGraphRefEdge | null; + /** The `PlatformProposal` that was updated by this mutation. */ + platformProposal?: PlatformProposal | null; + platformProposalEdge?: PlatformProposalEdge | null; } -export type UpdateFunctionGraphRefPayloadSelect = { +export type UpdatePlatformProposalPayloadSelect = { clientMutationId?: boolean; - functionGraphRef?: { - select: FunctionGraphRefSelect; + platformProposal?: { + select: PlatformProposalSelect; }; - functionGraphRefEdge?: { - select: FunctionGraphRefEdgeSelect; + platformProposalEdge?: { + select: PlatformProposalEdgeSelect; }; }; -export interface DeleteFunctionGraphRefPayload { +export interface DeletePlatformProposalPayload { clientMutationId?: string | null; - /** The `FunctionGraphRef` that was deleted by this mutation. */ - functionGraphRef?: FunctionGraphRef | null; - functionGraphRefEdge?: FunctionGraphRefEdge | null; + /** The `PlatformProposal` that was deleted by this mutation. */ + platformProposal?: PlatformProposal | null; + platformProposalEdge?: PlatformProposalEdge | null; } -export type DeleteFunctionGraphRefPayloadSelect = { +export type DeletePlatformProposalPayloadSelect = { clientMutationId?: boolean; - functionGraphRef?: { - select: FunctionGraphRefSelect; + platformProposal?: { + select: PlatformProposalSelect; }; - functionGraphRefEdge?: { - select: FunctionGraphRefEdgeSelect; + platformProposalEdge?: { + select: PlatformProposalEdgeSelect; }; }; -export interface CreateFunctionGraphStorePayload { +export interface CreatePlatformProposalFileViewPayload { clientMutationId?: string | null; - /** The `FunctionGraphStore` that was created by this mutation. */ - functionGraphStore?: FunctionGraphStore | null; - functionGraphStoreEdge?: FunctionGraphStoreEdge | null; + /** The `PlatformProposalFileView` that was created by this mutation. */ + platformProposalFileView?: PlatformProposalFileView | null; + platformProposalFileViewEdge?: PlatformProposalFileViewEdge | null; } -export type CreateFunctionGraphStorePayloadSelect = { +export type CreatePlatformProposalFileViewPayloadSelect = { clientMutationId?: boolean; - functionGraphStore?: { - select: FunctionGraphStoreSelect; + platformProposalFileView?: { + select: PlatformProposalFileViewSelect; }; - functionGraphStoreEdge?: { - select: FunctionGraphStoreEdgeSelect; + platformProposalFileViewEdge?: { + select: PlatformProposalFileViewEdgeSelect; }; }; -export interface UpdateFunctionGraphStorePayload { +export interface UpdatePlatformProposalFileViewPayload { clientMutationId?: string | null; - /** The `FunctionGraphStore` that was updated by this mutation. */ - functionGraphStore?: FunctionGraphStore | null; - functionGraphStoreEdge?: FunctionGraphStoreEdge | null; + /** The `PlatformProposalFileView` that was updated by this mutation. */ + platformProposalFileView?: PlatformProposalFileView | null; + platformProposalFileViewEdge?: PlatformProposalFileViewEdge | null; } -export type UpdateFunctionGraphStorePayloadSelect = { +export type UpdatePlatformProposalFileViewPayloadSelect = { clientMutationId?: boolean; - functionGraphStore?: { - select: FunctionGraphStoreSelect; + platformProposalFileView?: { + select: PlatformProposalFileViewSelect; }; - functionGraphStoreEdge?: { - select: FunctionGraphStoreEdgeSelect; + platformProposalFileViewEdge?: { + select: PlatformProposalFileViewEdgeSelect; }; }; -export interface DeleteFunctionGraphStorePayload { +export interface DeletePlatformProposalFileViewPayload { clientMutationId?: string | null; - /** The `FunctionGraphStore` that was deleted by this mutation. */ - functionGraphStore?: FunctionGraphStore | null; - functionGraphStoreEdge?: FunctionGraphStoreEdge | null; + /** The `PlatformProposalFileView` that was deleted by this mutation. */ + platformProposalFileView?: PlatformProposalFileView | null; + platformProposalFileViewEdge?: PlatformProposalFileViewEdge | null; } -export type DeleteFunctionGraphStorePayloadSelect = { +export type DeletePlatformProposalFileViewPayloadSelect = { clientMutationId?: boolean; - functionGraphStore?: { - select: FunctionGraphStoreSelect; + platformProposalFileView?: { + select: PlatformProposalFileViewSelect; }; - functionGraphStoreEdge?: { - select: FunctionGraphStoreEdgeSelect; + platformProposalFileViewEdge?: { + select: PlatformProposalFileViewEdgeSelect; }; }; -export interface CreateFunctionInvocationAttemptPayload { +export interface CreatePlatformProposalReactionPayload { clientMutationId?: string | null; - /** The `FunctionInvocationAttempt` that was created by this mutation. */ - functionInvocationAttempt?: FunctionInvocationAttempt | null; - functionInvocationAttemptEdge?: FunctionInvocationAttemptEdge | null; + /** The `PlatformProposalReaction` that was created by this mutation. */ + platformProposalReaction?: PlatformProposalReaction | null; + platformProposalReactionEdge?: PlatformProposalReactionEdge | null; } -export type CreateFunctionInvocationAttemptPayloadSelect = { +export type CreatePlatformProposalReactionPayloadSelect = { clientMutationId?: boolean; - functionInvocationAttempt?: { - select: FunctionInvocationAttemptSelect; + platformProposalReaction?: { + select: PlatformProposalReactionSelect; }; - functionInvocationAttemptEdge?: { - select: FunctionInvocationAttemptEdgeSelect; + platformProposalReactionEdge?: { + select: PlatformProposalReactionEdgeSelect; }; }; -export interface UpdateFunctionInvocationAttemptPayload { +export interface UpdatePlatformProposalReactionPayload { clientMutationId?: string | null; - /** The `FunctionInvocationAttempt` that was updated by this mutation. */ - functionInvocationAttempt?: FunctionInvocationAttempt | null; - functionInvocationAttemptEdge?: FunctionInvocationAttemptEdge | null; + /** The `PlatformProposalReaction` that was updated by this mutation. */ + platformProposalReaction?: PlatformProposalReaction | null; + platformProposalReactionEdge?: PlatformProposalReactionEdge | null; } -export type UpdateFunctionInvocationAttemptPayloadSelect = { +export type UpdatePlatformProposalReactionPayloadSelect = { clientMutationId?: boolean; - functionInvocationAttempt?: { - select: FunctionInvocationAttemptSelect; + platformProposalReaction?: { + select: PlatformProposalReactionSelect; }; - functionInvocationAttemptEdge?: { - select: FunctionInvocationAttemptEdgeSelect; + platformProposalReactionEdge?: { + select: PlatformProposalReactionEdgeSelect; }; }; -export interface DeleteFunctionInvocationAttemptPayload { +export interface DeletePlatformProposalReactionPayload { clientMutationId?: string | null; - /** The `FunctionInvocationAttempt` that was deleted by this mutation. */ - functionInvocationAttempt?: FunctionInvocationAttempt | null; - functionInvocationAttemptEdge?: FunctionInvocationAttemptEdge | null; + /** The `PlatformProposalReaction` that was deleted by this mutation. */ + platformProposalReaction?: PlatformProposalReaction | null; + platformProposalReactionEdge?: PlatformProposalReactionEdge | null; } -export type DeleteFunctionInvocationAttemptPayloadSelect = { +export type DeletePlatformProposalReactionPayloadSelect = { clientMutationId?: boolean; - functionInvocationAttempt?: { - select: FunctionInvocationAttemptSelect; + platformProposalReaction?: { + select: PlatformProposalReactionSelect; }; - functionInvocationAttemptEdge?: { - select: FunctionInvocationAttemptEdgeSelect; + platformProposalReactionEdge?: { + select: PlatformProposalReactionEdgeSelect; }; }; -export interface CreateFunctionInvocationPayload { +export interface CreatePlatformProposalReviewPayload { clientMutationId?: string | null; - /** The `FunctionInvocation` that was created by this mutation. */ - functionInvocation?: FunctionInvocation | null; - functionInvocationEdge?: FunctionInvocationEdge | null; + /** The `PlatformProposalReview` that was created by this mutation. */ + platformProposalReview?: PlatformProposalReview | null; + platformProposalReviewEdge?: PlatformProposalReviewEdge | null; } -export type CreateFunctionInvocationPayloadSelect = { +export type CreatePlatformProposalReviewPayloadSelect = { clientMutationId?: boolean; - functionInvocation?: { - select: FunctionInvocationSelect; + platformProposalReview?: { + select: PlatformProposalReviewSelect; }; - functionInvocationEdge?: { - select: FunctionInvocationEdgeSelect; + platformProposalReviewEdge?: { + select: PlatformProposalReviewEdgeSelect; }; }; -export interface UpdateFunctionInvocationPayload { +export interface UpdatePlatformProposalReviewPayload { clientMutationId?: string | null; - /** The `FunctionInvocation` that was updated by this mutation. */ - functionInvocation?: FunctionInvocation | null; - functionInvocationEdge?: FunctionInvocationEdge | null; + /** The `PlatformProposalReview` that was updated by this mutation. */ + platformProposalReview?: PlatformProposalReview | null; + platformProposalReviewEdge?: PlatformProposalReviewEdge | null; } -export type UpdateFunctionInvocationPayloadSelect = { +export type UpdatePlatformProposalReviewPayloadSelect = { clientMutationId?: boolean; - functionInvocation?: { - select: FunctionInvocationSelect; + platformProposalReview?: { + select: PlatformProposalReviewSelect; }; - functionInvocationEdge?: { - select: FunctionInvocationEdgeSelect; + platformProposalReviewEdge?: { + select: PlatformProposalReviewEdgeSelect; }; }; -export interface DeleteFunctionInvocationPayload { +export interface DeletePlatformProposalReviewPayload { clientMutationId?: string | null; - /** The `FunctionInvocation` that was deleted by this mutation. */ - functionInvocation?: FunctionInvocation | null; - functionInvocationEdge?: FunctionInvocationEdge | null; + /** The `PlatformProposalReview` that was deleted by this mutation. */ + platformProposalReview?: PlatformProposalReview | null; + platformProposalReviewEdge?: PlatformProposalReviewEdge | null; } -export type DeleteFunctionInvocationPayloadSelect = { +export type DeletePlatformProposalReviewPayloadSelect = { clientMutationId?: boolean; - functionInvocation?: { - select: FunctionInvocationSelect; + platformProposalReview?: { + select: PlatformProposalReviewSelect; }; - functionInvocationEdge?: { - select: FunctionInvocationEdgeSelect; + platformProposalReviewEdge?: { + select: PlatformProposalReviewEdgeSelect; }; }; -export interface CreateInfraCommitPayload { +export interface CreatePlatformProposalsChunkPayload { clientMutationId?: string | null; - /** The `InfraCommit` that was created by this mutation. */ - infraCommit?: InfraCommit | null; - infraCommitEdge?: InfraCommitEdge | null; + /** The `PlatformProposalsChunk` that was created by this mutation. */ + platformProposalsChunk?: PlatformProposalsChunk | null; + platformProposalsChunkEdge?: PlatformProposalsChunkEdge | null; } -export type CreateInfraCommitPayloadSelect = { +export type CreatePlatformProposalsChunkPayloadSelect = { clientMutationId?: boolean; - infraCommit?: { - select: InfraCommitSelect; + platformProposalsChunk?: { + select: PlatformProposalsChunkSelect; }; - infraCommitEdge?: { - select: InfraCommitEdgeSelect; + platformProposalsChunkEdge?: { + select: PlatformProposalsChunkEdgeSelect; }; }; -export interface UpdateInfraCommitPayload { +export interface UpdatePlatformProposalsChunkPayload { clientMutationId?: string | null; - /** The `InfraCommit` that was updated by this mutation. */ - infraCommit?: InfraCommit | null; - infraCommitEdge?: InfraCommitEdge | null; + /** The `PlatformProposalsChunk` that was updated by this mutation. */ + platformProposalsChunk?: PlatformProposalsChunk | null; + platformProposalsChunkEdge?: PlatformProposalsChunkEdge | null; } -export type UpdateInfraCommitPayloadSelect = { +export type UpdatePlatformProposalsChunkPayloadSelect = { clientMutationId?: boolean; - infraCommit?: { - select: InfraCommitSelect; + platformProposalsChunk?: { + select: PlatformProposalsChunkSelect; }; - infraCommitEdge?: { - select: InfraCommitEdgeSelect; + platformProposalsChunkEdge?: { + select: PlatformProposalsChunkEdgeSelect; }; }; -export interface DeleteInfraCommitPayload { +export interface DeletePlatformProposalsChunkPayload { clientMutationId?: string | null; - /** The `InfraCommit` that was deleted by this mutation. */ - infraCommit?: InfraCommit | null; - infraCommitEdge?: InfraCommitEdge | null; + /** The `PlatformProposalsChunk` that was deleted by this mutation. */ + platformProposalsChunk?: PlatformProposalsChunk | null; + platformProposalsChunkEdge?: PlatformProposalsChunkEdge | null; } -export type DeleteInfraCommitPayloadSelect = { +export type DeletePlatformProposalsChunkPayloadSelect = { clientMutationId?: boolean; - infraCommit?: { - select: InfraCommitSelect; + platformProposalsChunk?: { + select: PlatformProposalsChunkSelect; }; - infraCommitEdge?: { - select: InfraCommitEdgeSelect; + platformProposalsChunkEdge?: { + select: PlatformProposalsChunkEdgeSelect; }; }; -export interface CreateInfraObjectPayload { +export interface CreatePlatformRegistryBindingPayload { clientMutationId?: string | null; - /** The `InfraObject` that was created by this mutation. */ - infraObject?: InfraObject | null; - infraObjectEdge?: InfraObjectEdge | null; + /** The `PlatformRegistryBinding` that was created by this mutation. */ + platformRegistryBinding?: PlatformRegistryBinding | null; + platformRegistryBindingEdge?: PlatformRegistryBindingEdge | null; } -export type CreateInfraObjectPayloadSelect = { +export type CreatePlatformRegistryBindingPayloadSelect = { clientMutationId?: boolean; - infraObject?: { - select: InfraObjectSelect; + platformRegistryBinding?: { + select: PlatformRegistryBindingSelect; }; - infraObjectEdge?: { - select: InfraObjectEdgeSelect; + platformRegistryBindingEdge?: { + select: PlatformRegistryBindingEdgeSelect; }; }; -export interface UpdateInfraObjectPayload { +export interface UpdatePlatformRegistryBindingPayload { clientMutationId?: string | null; - /** The `InfraObject` that was updated by this mutation. */ - infraObject?: InfraObject | null; - infraObjectEdge?: InfraObjectEdge | null; + /** The `PlatformRegistryBinding` that was updated by this mutation. */ + platformRegistryBinding?: PlatformRegistryBinding | null; + platformRegistryBindingEdge?: PlatformRegistryBindingEdge | null; } -export type UpdateInfraObjectPayloadSelect = { +export type UpdatePlatformRegistryBindingPayloadSelect = { clientMutationId?: boolean; - infraObject?: { - select: InfraObjectSelect; + platformRegistryBinding?: { + select: PlatformRegistryBindingSelect; }; - infraObjectEdge?: { - select: InfraObjectEdgeSelect; + platformRegistryBindingEdge?: { + select: PlatformRegistryBindingEdgeSelect; }; }; -export interface DeleteInfraObjectPayload { +export interface DeletePlatformRegistryBindingPayload { clientMutationId?: string | null; - /** The `InfraObject` that was deleted by this mutation. */ - infraObject?: InfraObject | null; - infraObjectEdge?: InfraObjectEdge | null; + /** The `PlatformRegistryBinding` that was deleted by this mutation. */ + platformRegistryBinding?: PlatformRegistryBinding | null; + platformRegistryBindingEdge?: PlatformRegistryBindingEdge | null; } -export type DeleteInfraObjectPayloadSelect = { +export type DeletePlatformRegistryBindingPayloadSelect = { clientMutationId?: boolean; - infraObject?: { - select: InfraObjectSelect; + platformRegistryBinding?: { + select: PlatformRegistryBindingSelect; }; - infraObjectEdge?: { - select: InfraObjectEdgeSelect; + platformRegistryBindingEdge?: { + select: PlatformRegistryBindingEdgeSelect; }; }; -export interface CreateInfraRefPayload { +export interface CreatePlatformRegistryPayload { clientMutationId?: string | null; - /** The `InfraRef` that was created by this mutation. */ - infraRef?: InfraRef | null; - infraRefEdge?: InfraRefEdge | null; + /** The `PlatformRegistry` that was created by this mutation. */ + platformRegistry?: PlatformRegistry | null; + platformRegistryEdge?: PlatformRegistryEdge | null; } -export type CreateInfraRefPayloadSelect = { +export type CreatePlatformRegistryPayloadSelect = { clientMutationId?: boolean; - infraRef?: { - select: InfraRefSelect; + platformRegistry?: { + select: PlatformRegistrySelect; }; - infraRefEdge?: { - select: InfraRefEdgeSelect; + platformRegistryEdge?: { + select: PlatformRegistryEdgeSelect; }; }; -export interface UpdateInfraRefPayload { +export interface UpdatePlatformRegistryPayload { clientMutationId?: string | null; - /** The `InfraRef` that was updated by this mutation. */ - infraRef?: InfraRef | null; - infraRefEdge?: InfraRefEdge | null; + /** The `PlatformRegistry` that was updated by this mutation. */ + platformRegistry?: PlatformRegistry | null; + platformRegistryEdge?: PlatformRegistryEdge | null; } -export type UpdateInfraRefPayloadSelect = { +export type UpdatePlatformRegistryPayloadSelect = { clientMutationId?: boolean; - infraRef?: { - select: InfraRefSelect; + platformRegistry?: { + select: PlatformRegistrySelect; }; - infraRefEdge?: { - select: InfraRefEdgeSelect; + platformRegistryEdge?: { + select: PlatformRegistryEdgeSelect; }; }; -export interface DeleteInfraRefPayload { +export interface DeletePlatformRegistryPayload { clientMutationId?: string | null; - /** The `InfraRef` that was deleted by this mutation. */ - infraRef?: InfraRef | null; - infraRefEdge?: InfraRefEdge | null; + /** The `PlatformRegistry` that was deleted by this mutation. */ + platformRegistry?: PlatformRegistry | null; + platformRegistryEdge?: PlatformRegistryEdge | null; } -export type DeleteInfraRefPayloadSelect = { +export type DeletePlatformRegistryPayloadSelect = { clientMutationId?: boolean; - infraRef?: { - select: InfraRefSelect; + platformRegistry?: { + select: PlatformRegistrySelect; }; - infraRefEdge?: { - select: InfraRefEdgeSelect; + platformRegistryEdge?: { + select: PlatformRegistryEdgeSelect; }; }; -export interface CreateInfraStorePayload { +export interface CreatePlatformRegistryGrantPayload { clientMutationId?: string | null; - /** The `InfraStore` that was created by this mutation. */ - infraStore?: InfraStore | null; - infraStoreEdge?: InfraStoreEdge | null; + /** The `PlatformRegistryGrant` that was created by this mutation. */ + platformRegistryGrant?: PlatformRegistryGrant | null; + platformRegistryGrantEdge?: PlatformRegistryGrantEdge | null; } -export type CreateInfraStorePayloadSelect = { +export type CreatePlatformRegistryGrantPayloadSelect = { clientMutationId?: boolean; - infraStore?: { - select: InfraStoreSelect; + platformRegistryGrant?: { + select: PlatformRegistryGrantSelect; }; - infraStoreEdge?: { - select: InfraStoreEdgeSelect; + platformRegistryGrantEdge?: { + select: PlatformRegistryGrantEdgeSelect; }; }; -export interface UpdateInfraStorePayload { +export interface UpdatePlatformRegistryGrantPayload { clientMutationId?: string | null; - /** The `InfraStore` that was updated by this mutation. */ - infraStore?: InfraStore | null; - infraStoreEdge?: InfraStoreEdge | null; + /** The `PlatformRegistryGrant` that was updated by this mutation. */ + platformRegistryGrant?: PlatformRegistryGrant | null; + platformRegistryGrantEdge?: PlatformRegistryGrantEdge | null; } -export type UpdateInfraStorePayloadSelect = { +export type UpdatePlatformRegistryGrantPayloadSelect = { clientMutationId?: boolean; - infraStore?: { - select: InfraStoreSelect; + platformRegistryGrant?: { + select: PlatformRegistryGrantSelect; }; - infraStoreEdge?: { - select: InfraStoreEdgeSelect; + platformRegistryGrantEdge?: { + select: PlatformRegistryGrantEdgeSelect; }; }; -export interface DeleteInfraStorePayload { +export interface DeletePlatformRegistryGrantPayload { clientMutationId?: string | null; - /** The `InfraStore` that was deleted by this mutation. */ - infraStore?: InfraStore | null; - infraStoreEdge?: InfraStoreEdge | null; + /** The `PlatformRegistryGrant` that was deleted by this mutation. */ + platformRegistryGrant?: PlatformRegistryGrant | null; + platformRegistryGrantEdge?: PlatformRegistryGrantEdge | null; } -export type DeleteInfraStorePayloadSelect = { +export type DeletePlatformRegistryGrantPayloadSelect = { clientMutationId?: boolean; - infraStore?: { - select: InfraStoreSelect; + platformRegistryGrant?: { + select: PlatformRegistryGrantSelect; }; - infraStoreEdge?: { - select: InfraStoreEdgeSelect; + platformRegistryGrantEdge?: { + select: PlatformRegistryGrantEdgeSelect; }; }; -export interface CreateIntegrationProviderPayload { +export interface CreatePlatformRepositoryPayload { clientMutationId?: string | null; - /** The `IntegrationProvider` that was created by this mutation. */ - integrationProvider?: IntegrationProvider | null; - integrationProviderEdge?: IntegrationProviderEdge | null; + /** The `PlatformRepository` that was created by this mutation. */ + platformRepository?: PlatformRepository | null; + platformRepositoryEdge?: PlatformRepositoryEdge | null; } -export type CreateIntegrationProviderPayloadSelect = { +export type CreatePlatformRepositoryPayloadSelect = { clientMutationId?: boolean; - integrationProvider?: { - select: IntegrationProviderSelect; + platformRepository?: { + select: PlatformRepositorySelect; }; - integrationProviderEdge?: { - select: IntegrationProviderEdgeSelect; + platformRepositoryEdge?: { + select: PlatformRepositoryEdgeSelect; }; }; -export interface UpdateIntegrationProviderPayload { +export interface UpdatePlatformRepositoryPayload { clientMutationId?: string | null; - /** The `IntegrationProvider` that was updated by this mutation. */ - integrationProvider?: IntegrationProvider | null; - integrationProviderEdge?: IntegrationProviderEdge | null; + /** The `PlatformRepository` that was updated by this mutation. */ + platformRepository?: PlatformRepository | null; + platformRepositoryEdge?: PlatformRepositoryEdge | null; } -export type UpdateIntegrationProviderPayloadSelect = { +export type UpdatePlatformRepositoryPayloadSelect = { clientMutationId?: boolean; - integrationProvider?: { - select: IntegrationProviderSelect; + platformRepository?: { + select: PlatformRepositorySelect; }; - integrationProviderEdge?: { - select: IntegrationProviderEdgeSelect; + platformRepositoryEdge?: { + select: PlatformRepositoryEdgeSelect; }; }; -export interface DeleteIntegrationProviderPayload { +export interface DeletePlatformRepositoryPayload { clientMutationId?: string | null; - /** The `IntegrationProvider` that was deleted by this mutation. */ - integrationProvider?: IntegrationProvider | null; - integrationProviderEdge?: IntegrationProviderEdge | null; + /** The `PlatformRepository` that was deleted by this mutation. */ + platformRepository?: PlatformRepository | null; + platformRepositoryEdge?: PlatformRepositoryEdge | null; } -export type DeleteIntegrationProviderPayloadSelect = { +export type DeletePlatformRepositoryPayloadSelect = { clientMutationId?: boolean; - integrationProvider?: { - select: IntegrationProviderSelect; + platformRepository?: { + select: PlatformRepositorySelect; }; - integrationProviderEdge?: { - select: IntegrationProviderEdgeSelect; + platformRepositoryEdge?: { + select: PlatformRepositoryEdgeSelect; }; }; -export interface CreateNamespacePayload { +export interface CreatePlatformRepositoryEventPayload { clientMutationId?: string | null; - /** The `Namespace` that was created by this mutation. */ - namespace?: Namespace | null; - namespaceEdge?: NamespaceEdge | null; + /** The `PlatformRepositoryEvent` that was created by this mutation. */ + platformRepositoryEvent?: PlatformRepositoryEvent | null; + platformRepositoryEventEdge?: PlatformRepositoryEventEdge | null; } -export type CreateNamespacePayloadSelect = { +export type CreatePlatformRepositoryEventPayloadSelect = { clientMutationId?: boolean; - namespace?: { - select: NamespaceSelect; + platformRepositoryEvent?: { + select: PlatformRepositoryEventSelect; }; - namespaceEdge?: { - select: NamespaceEdgeSelect; + platformRepositoryEventEdge?: { + select: PlatformRepositoryEventEdgeSelect; }; }; -export interface UpdateNamespacePayload { +export interface UpdatePlatformRepositoryEventPayload { clientMutationId?: string | null; - /** The `Namespace` that was updated by this mutation. */ - namespace?: Namespace | null; - namespaceEdge?: NamespaceEdge | null; + /** The `PlatformRepositoryEvent` that was updated by this mutation. */ + platformRepositoryEvent?: PlatformRepositoryEvent | null; + platformRepositoryEventEdge?: PlatformRepositoryEventEdge | null; } -export type UpdateNamespacePayloadSelect = { +export type UpdatePlatformRepositoryEventPayloadSelect = { clientMutationId?: boolean; - namespace?: { - select: NamespaceSelect; + platformRepositoryEvent?: { + select: PlatformRepositoryEventSelect; }; - namespaceEdge?: { - select: NamespaceEdgeSelect; + platformRepositoryEventEdge?: { + select: PlatformRepositoryEventEdgeSelect; }; }; -export interface DeleteNamespacePayload { +export interface DeletePlatformRepositoryEventPayload { clientMutationId?: string | null; - /** The `Namespace` that was deleted by this mutation. */ - namespace?: Namespace | null; - namespaceEdge?: NamespaceEdge | null; + /** The `PlatformRepositoryEvent` that was deleted by this mutation. */ + platformRepositoryEvent?: PlatformRepositoryEvent | null; + platformRepositoryEventEdge?: PlatformRepositoryEventEdge | null; } -export type DeleteNamespacePayloadSelect = { +export type DeletePlatformRepositoryEventPayloadSelect = { clientMutationId?: boolean; - namespace?: { - select: NamespaceSelect; + platformRepositoryEvent?: { + select: PlatformRepositoryEventSelect; }; - namespaceEdge?: { - select: NamespaceEdgeSelect; + platformRepositoryEventEdge?: { + select: PlatformRepositoryEventEdgeSelect; }; }; -export interface CreateNamespaceEventPayload { +export interface CreatePlatformRepositoryRequiredCheckPayload { clientMutationId?: string | null; - /** The `NamespaceEvent` that was created by this mutation. */ - namespaceEvent?: NamespaceEvent | null; - namespaceEventEdge?: NamespaceEventEdge | null; + /** The `PlatformRepositoryRequiredCheck` that was created by this mutation. */ + platformRepositoryRequiredCheck?: PlatformRepositoryRequiredCheck | null; + platformRepositoryRequiredCheckEdge?: PlatformRepositoryRequiredCheckEdge | null; } -export type CreateNamespaceEventPayloadSelect = { +export type CreatePlatformRepositoryRequiredCheckPayloadSelect = { clientMutationId?: boolean; - namespaceEvent?: { - select: NamespaceEventSelect; + platformRepositoryRequiredCheck?: { + select: PlatformRepositoryRequiredCheckSelect; }; - namespaceEventEdge?: { - select: NamespaceEventEdgeSelect; + platformRepositoryRequiredCheckEdge?: { + select: PlatformRepositoryRequiredCheckEdgeSelect; }; }; -export interface UpdateNamespaceEventPayload { +export interface UpdatePlatformRepositoryRequiredCheckPayload { clientMutationId?: string | null; - /** The `NamespaceEvent` that was updated by this mutation. */ - namespaceEvent?: NamespaceEvent | null; - namespaceEventEdge?: NamespaceEventEdge | null; + /** The `PlatformRepositoryRequiredCheck` that was updated by this mutation. */ + platformRepositoryRequiredCheck?: PlatformRepositoryRequiredCheck | null; + platformRepositoryRequiredCheckEdge?: PlatformRepositoryRequiredCheckEdge | null; } -export type UpdateNamespaceEventPayloadSelect = { +export type UpdatePlatformRepositoryRequiredCheckPayloadSelect = { clientMutationId?: boolean; - namespaceEvent?: { - select: NamespaceEventSelect; + platformRepositoryRequiredCheck?: { + select: PlatformRepositoryRequiredCheckSelect; }; - namespaceEventEdge?: { - select: NamespaceEventEdgeSelect; + platformRepositoryRequiredCheckEdge?: { + select: PlatformRepositoryRequiredCheckEdgeSelect; }; }; -export interface DeleteNamespaceEventPayload { +export interface DeletePlatformRepositoryRequiredCheckPayload { clientMutationId?: string | null; - /** The `NamespaceEvent` that was deleted by this mutation. */ - namespaceEvent?: NamespaceEvent | null; - namespaceEventEdge?: NamespaceEventEdge | null; + /** The `PlatformRepositoryRequiredCheck` that was deleted by this mutation. */ + platformRepositoryRequiredCheck?: PlatformRepositoryRequiredCheck | null; + platformRepositoryRequiredCheckEdge?: PlatformRepositoryRequiredCheckEdge | null; } -export type DeleteNamespaceEventPayloadSelect = { +export type DeletePlatformRepositoryRequiredCheckPayloadSelect = { clientMutationId?: boolean; - namespaceEvent?: { - select: NamespaceEventSelect; + platformRepositoryRequiredCheck?: { + select: PlatformRepositoryRequiredCheckSelect; }; - namespaceEventEdge?: { - select: NamespaceEventEdgeSelect; + platformRepositoryRequiredCheckEdge?: { + select: PlatformRepositoryRequiredCheckEdgeSelect; }; }; -export interface CreatePlatformFunctionApiBindingPayload { +export interface CreatePlatformRepositoryWorkflowPayload { clientMutationId?: string | null; - /** The `PlatformFunctionApiBinding` that was created by this mutation. */ - platformFunctionApiBinding?: PlatformFunctionApiBinding | null; - platformFunctionApiBindingEdge?: PlatformFunctionApiBindingEdge | null; + /** The `PlatformRepositoryWorkflow` that was created by this mutation. */ + platformRepositoryWorkflow?: PlatformRepositoryWorkflow | null; + platformRepositoryWorkflowEdge?: PlatformRepositoryWorkflowEdge | null; } -export type CreatePlatformFunctionApiBindingPayloadSelect = { +export type CreatePlatformRepositoryWorkflowPayloadSelect = { clientMutationId?: boolean; - platformFunctionApiBinding?: { - select: PlatformFunctionApiBindingSelect; + platformRepositoryWorkflow?: { + select: PlatformRepositoryWorkflowSelect; }; - platformFunctionApiBindingEdge?: { - select: PlatformFunctionApiBindingEdgeSelect; + platformRepositoryWorkflowEdge?: { + select: PlatformRepositoryWorkflowEdgeSelect; }; }; -export interface UpdatePlatformFunctionApiBindingPayload { +export interface UpdatePlatformRepositoryWorkflowPayload { clientMutationId?: string | null; - /** The `PlatformFunctionApiBinding` that was updated by this mutation. */ - platformFunctionApiBinding?: PlatformFunctionApiBinding | null; - platformFunctionApiBindingEdge?: PlatformFunctionApiBindingEdge | null; + /** The `PlatformRepositoryWorkflow` that was updated by this mutation. */ + platformRepositoryWorkflow?: PlatformRepositoryWorkflow | null; + platformRepositoryWorkflowEdge?: PlatformRepositoryWorkflowEdge | null; } -export type UpdatePlatformFunctionApiBindingPayloadSelect = { +export type UpdatePlatformRepositoryWorkflowPayloadSelect = { clientMutationId?: boolean; - platformFunctionApiBinding?: { - select: PlatformFunctionApiBindingSelect; + platformRepositoryWorkflow?: { + select: PlatformRepositoryWorkflowSelect; }; - platformFunctionApiBindingEdge?: { - select: PlatformFunctionApiBindingEdgeSelect; + platformRepositoryWorkflowEdge?: { + select: PlatformRepositoryWorkflowEdgeSelect; }; }; -export interface DeletePlatformFunctionApiBindingPayload { +export interface DeletePlatformRepositoryWorkflowPayload { clientMutationId?: string | null; - /** The `PlatformFunctionApiBinding` that was deleted by this mutation. */ - platformFunctionApiBinding?: PlatformFunctionApiBinding | null; - platformFunctionApiBindingEdge?: PlatformFunctionApiBindingEdge | null; + /** The `PlatformRepositoryWorkflow` that was deleted by this mutation. */ + platformRepositoryWorkflow?: PlatformRepositoryWorkflow | null; + platformRepositoryWorkflowEdge?: PlatformRepositoryWorkflowEdge | null; } -export type DeletePlatformFunctionApiBindingPayloadSelect = { +export type DeletePlatformRepositoryWorkflowPayloadSelect = { clientMutationId?: boolean; - platformFunctionApiBinding?: { - select: PlatformFunctionApiBindingSelect; + platformRepositoryWorkflow?: { + select: PlatformRepositoryWorkflowSelect; }; - platformFunctionApiBindingEdge?: { - select: PlatformFunctionApiBindingEdgeSelect; + platformRepositoryWorkflowEdge?: { + select: PlatformRepositoryWorkflowEdgeSelect; }; }; -export interface CreatePlatformFunctionCapabilityBindingPayload { +export interface CreatePlatformResourcePayload { clientMutationId?: string | null; - /** The `PlatformFunctionCapabilityBinding` that was created by this mutation. */ - platformFunctionCapabilityBinding?: PlatformFunctionCapabilityBinding | null; - platformFunctionCapabilityBindingEdge?: PlatformFunctionCapabilityBindingEdge | null; + /** The `PlatformResource` that was created by this mutation. */ + platformResource?: PlatformResource | null; + platformResourceEdge?: PlatformResourceEdge | null; } -export type CreatePlatformFunctionCapabilityBindingPayloadSelect = { +export type CreatePlatformResourcePayloadSelect = { clientMutationId?: boolean; - platformFunctionCapabilityBinding?: { - select: PlatformFunctionCapabilityBindingSelect; + platformResource?: { + select: PlatformResourceSelect; }; - platformFunctionCapabilityBindingEdge?: { - select: PlatformFunctionCapabilityBindingEdgeSelect; + platformResourceEdge?: { + select: PlatformResourceEdgeSelect; }; }; -export interface UpdatePlatformFunctionCapabilityBindingPayload { +export interface UpdatePlatformResourcePayload { clientMutationId?: string | null; - /** The `PlatformFunctionCapabilityBinding` that was updated by this mutation. */ - platformFunctionCapabilityBinding?: PlatformFunctionCapabilityBinding | null; - platformFunctionCapabilityBindingEdge?: PlatformFunctionCapabilityBindingEdge | null; + /** The `PlatformResource` that was updated by this mutation. */ + platformResource?: PlatformResource | null; + platformResourceEdge?: PlatformResourceEdge | null; } -export type UpdatePlatformFunctionCapabilityBindingPayloadSelect = { +export type UpdatePlatformResourcePayloadSelect = { clientMutationId?: boolean; - platformFunctionCapabilityBinding?: { - select: PlatformFunctionCapabilityBindingSelect; + platformResource?: { + select: PlatformResourceSelect; }; - platformFunctionCapabilityBindingEdge?: { - select: PlatformFunctionCapabilityBindingEdgeSelect; + platformResourceEdge?: { + select: PlatformResourceEdgeSelect; }; }; -export interface DeletePlatformFunctionCapabilityBindingPayload { +export interface DeletePlatformResourcePayload { clientMutationId?: string | null; - /** The `PlatformFunctionCapabilityBinding` that was deleted by this mutation. */ - platformFunctionCapabilityBinding?: PlatformFunctionCapabilityBinding | null; - platformFunctionCapabilityBindingEdge?: PlatformFunctionCapabilityBindingEdge | null; + /** The `PlatformResource` that was deleted by this mutation. */ + platformResource?: PlatformResource | null; + platformResourceEdge?: PlatformResourceEdge | null; } -export type DeletePlatformFunctionCapabilityBindingPayloadSelect = { +export type DeletePlatformResourcePayloadSelect = { clientMutationId?: boolean; - platformFunctionCapabilityBinding?: { - select: PlatformFunctionCapabilityBindingSelect; + platformResource?: { + select: PlatformResourceSelect; }; - platformFunctionCapabilityBindingEdge?: { - select: PlatformFunctionCapabilityBindingEdgeSelect; + platformResourceEdge?: { + select: PlatformResourceEdgeSelect; }; }; -export interface CreatePlatformFunctionDefinitionPayload { +export interface CreatePlatformResourceDefinitionPayload { clientMutationId?: string | null; - /** The `PlatformFunctionDefinition` that was created by this mutation. */ - platformFunctionDefinition?: PlatformFunctionDefinition | null; - platformFunctionDefinitionEdge?: PlatformFunctionDefinitionEdge | null; + /** The `PlatformResourceDefinition` that was created by this mutation. */ + platformResourceDefinition?: PlatformResourceDefinition | null; + platformResourceDefinitionEdge?: PlatformResourceDefinitionEdge | null; } -export type CreatePlatformFunctionDefinitionPayloadSelect = { +export type CreatePlatformResourceDefinitionPayloadSelect = { clientMutationId?: boolean; - platformFunctionDefinition?: { - select: PlatformFunctionDefinitionSelect; + platformResourceDefinition?: { + select: PlatformResourceDefinitionSelect; }; - platformFunctionDefinitionEdge?: { - select: PlatformFunctionDefinitionEdgeSelect; + platformResourceDefinitionEdge?: { + select: PlatformResourceDefinitionEdgeSelect; }; }; -export interface UpdatePlatformFunctionDefinitionPayload { +export interface UpdatePlatformResourceDefinitionPayload { clientMutationId?: string | null; - /** The `PlatformFunctionDefinition` that was updated by this mutation. */ - platformFunctionDefinition?: PlatformFunctionDefinition | null; - platformFunctionDefinitionEdge?: PlatformFunctionDefinitionEdge | null; + /** The `PlatformResourceDefinition` that was updated by this mutation. */ + platformResourceDefinition?: PlatformResourceDefinition | null; + platformResourceDefinitionEdge?: PlatformResourceDefinitionEdge | null; } -export type UpdatePlatformFunctionDefinitionPayloadSelect = { +export type UpdatePlatformResourceDefinitionPayloadSelect = { clientMutationId?: boolean; - platformFunctionDefinition?: { - select: PlatformFunctionDefinitionSelect; + platformResourceDefinition?: { + select: PlatformResourceDefinitionSelect; }; - platformFunctionDefinitionEdge?: { - select: PlatformFunctionDefinitionEdgeSelect; + platformResourceDefinitionEdge?: { + select: PlatformResourceDefinitionEdgeSelect; }; }; -export interface DeletePlatformFunctionDefinitionPayload { +export interface DeletePlatformResourceDefinitionPayload { clientMutationId?: string | null; - /** The `PlatformFunctionDefinition` that was deleted by this mutation. */ - platformFunctionDefinition?: PlatformFunctionDefinition | null; - platformFunctionDefinitionEdge?: PlatformFunctionDefinitionEdge | null; + /** The `PlatformResourceDefinition` that was deleted by this mutation. */ + platformResourceDefinition?: PlatformResourceDefinition | null; + platformResourceDefinitionEdge?: PlatformResourceDefinitionEdge | null; } -export type DeletePlatformFunctionDefinitionPayloadSelect = { +export type DeletePlatformResourceDefinitionPayloadSelect = { clientMutationId?: boolean; - platformFunctionDefinition?: { - select: PlatformFunctionDefinitionSelect; + platformResourceDefinition?: { + select: PlatformResourceDefinitionSelect; }; - platformFunctionDefinitionEdge?: { - select: PlatformFunctionDefinitionEdgeSelect; + platformResourceDefinitionEdge?: { + select: PlatformResourceDefinitionEdgeSelect; }; }; -export interface CreatePlatformFunctionDeploymentPayload { +export interface CreatePlatformResourceEventPayload { clientMutationId?: string | null; - /** The `PlatformFunctionDeployment` that was created by this mutation. */ - platformFunctionDeployment?: PlatformFunctionDeployment | null; - platformFunctionDeploymentEdge?: PlatformFunctionDeploymentEdge | null; + /** The `PlatformResourceEvent` that was created by this mutation. */ + platformResourceEvent?: PlatformResourceEvent | null; + platformResourceEventEdge?: PlatformResourceEventEdge | null; } -export type CreatePlatformFunctionDeploymentPayloadSelect = { +export type CreatePlatformResourceEventPayloadSelect = { clientMutationId?: boolean; - platformFunctionDeployment?: { - select: PlatformFunctionDeploymentSelect; + platformResourceEvent?: { + select: PlatformResourceEventSelect; }; - platformFunctionDeploymentEdge?: { - select: PlatformFunctionDeploymentEdgeSelect; + platformResourceEventEdge?: { + select: PlatformResourceEventEdgeSelect; }; }; -export interface UpdatePlatformFunctionDeploymentPayload { +export interface UpdatePlatformResourceEventPayload { clientMutationId?: string | null; - /** The `PlatformFunctionDeployment` that was updated by this mutation. */ - platformFunctionDeployment?: PlatformFunctionDeployment | null; - platformFunctionDeploymentEdge?: PlatformFunctionDeploymentEdge | null; + /** The `PlatformResourceEvent` that was updated by this mutation. */ + platformResourceEvent?: PlatformResourceEvent | null; + platformResourceEventEdge?: PlatformResourceEventEdge | null; } -export type UpdatePlatformFunctionDeploymentPayloadSelect = { +export type UpdatePlatformResourceEventPayloadSelect = { clientMutationId?: boolean; - platformFunctionDeployment?: { - select: PlatformFunctionDeploymentSelect; + platformResourceEvent?: { + select: PlatformResourceEventSelect; }; - platformFunctionDeploymentEdge?: { - select: PlatformFunctionDeploymentEdgeSelect; + platformResourceEventEdge?: { + select: PlatformResourceEventEdgeSelect; }; }; -export interface DeletePlatformFunctionDeploymentPayload { +export interface DeletePlatformResourceEventPayload { clientMutationId?: string | null; - /** The `PlatformFunctionDeployment` that was deleted by this mutation. */ - platformFunctionDeployment?: PlatformFunctionDeployment | null; - platformFunctionDeploymentEdge?: PlatformFunctionDeploymentEdge | null; + /** The `PlatformResourceEvent` that was deleted by this mutation. */ + platformResourceEvent?: PlatformResourceEvent | null; + platformResourceEventEdge?: PlatformResourceEventEdge | null; } -export type DeletePlatformFunctionDeploymentPayloadSelect = { +export type DeletePlatformResourceEventPayloadSelect = { clientMutationId?: boolean; - platformFunctionDeployment?: { - select: PlatformFunctionDeploymentSelect; + platformResourceEvent?: { + select: PlatformResourceEventSelect; }; - platformFunctionDeploymentEdge?: { - select: PlatformFunctionDeploymentEdgeSelect; + platformResourceEventEdge?: { + select: PlatformResourceEventEdgeSelect; }; }; -export interface CreatePlatformFunctionDeploymentEventPayload { +export interface CreatePlatformResourceInstallationPayload { clientMutationId?: string | null; - /** The `PlatformFunctionDeploymentEvent` that was created by this mutation. */ - platformFunctionDeploymentEvent?: PlatformFunctionDeploymentEvent | null; - platformFunctionDeploymentEventEdge?: PlatformFunctionDeploymentEventEdge | null; + /** The `PlatformResourceInstallation` that was created by this mutation. */ + platformResourceInstallation?: PlatformResourceInstallation | null; + platformResourceInstallationEdge?: PlatformResourceInstallationEdge | null; } -export type CreatePlatformFunctionDeploymentEventPayloadSelect = { +export type CreatePlatformResourceInstallationPayloadSelect = { clientMutationId?: boolean; - platformFunctionDeploymentEvent?: { - select: PlatformFunctionDeploymentEventSelect; + platformResourceInstallation?: { + select: PlatformResourceInstallationSelect; }; - platformFunctionDeploymentEventEdge?: { - select: PlatformFunctionDeploymentEventEdgeSelect; + platformResourceInstallationEdge?: { + select: PlatformResourceInstallationEdgeSelect; }; }; -export interface UpdatePlatformFunctionDeploymentEventPayload { +export interface UpdatePlatformResourceInstallationPayload { clientMutationId?: string | null; - /** The `PlatformFunctionDeploymentEvent` that was updated by this mutation. */ - platformFunctionDeploymentEvent?: PlatformFunctionDeploymentEvent | null; - platformFunctionDeploymentEventEdge?: PlatformFunctionDeploymentEventEdge | null; + /** The `PlatformResourceInstallation` that was updated by this mutation. */ + platformResourceInstallation?: PlatformResourceInstallation | null; + platformResourceInstallationEdge?: PlatformResourceInstallationEdge | null; } -export type UpdatePlatformFunctionDeploymentEventPayloadSelect = { +export type UpdatePlatformResourceInstallationPayloadSelect = { clientMutationId?: boolean; - platformFunctionDeploymentEvent?: { - select: PlatformFunctionDeploymentEventSelect; + platformResourceInstallation?: { + select: PlatformResourceInstallationSelect; }; - platformFunctionDeploymentEventEdge?: { - select: PlatformFunctionDeploymentEventEdgeSelect; + platformResourceInstallationEdge?: { + select: PlatformResourceInstallationEdgeSelect; }; }; -export interface DeletePlatformFunctionDeploymentEventPayload { +export interface DeletePlatformResourceInstallationPayload { clientMutationId?: string | null; - /** The `PlatformFunctionDeploymentEvent` that was deleted by this mutation. */ - platformFunctionDeploymentEvent?: PlatformFunctionDeploymentEvent | null; - platformFunctionDeploymentEventEdge?: PlatformFunctionDeploymentEventEdge | null; + /** The `PlatformResourceInstallation` that was deleted by this mutation. */ + platformResourceInstallation?: PlatformResourceInstallation | null; + platformResourceInstallationEdge?: PlatformResourceInstallationEdge | null; } -export type DeletePlatformFunctionDeploymentEventPayloadSelect = { +export type DeletePlatformResourceInstallationPayloadSelect = { clientMutationId?: boolean; - platformFunctionDeploymentEvent?: { - select: PlatformFunctionDeploymentEventSelect; + platformResourceInstallation?: { + select: PlatformResourceInstallationSelect; }; - platformFunctionDeploymentEventEdge?: { - select: PlatformFunctionDeploymentEventEdgeSelect; + platformResourceInstallationEdge?: { + select: PlatformResourceInstallationEdgeSelect; }; }; -export interface CreatePlatformFunctionExecutionLogPayload { +export interface CreatePlatformResourceStatusCheckPayload { clientMutationId?: string | null; - /** The `PlatformFunctionExecutionLog` that was created by this mutation. */ - platformFunctionExecutionLog?: PlatformFunctionExecutionLog | null; - platformFunctionExecutionLogEdge?: PlatformFunctionExecutionLogEdge | null; + /** The `PlatformResourceStatusCheck` that was created by this mutation. */ + platformResourceStatusCheck?: PlatformResourceStatusCheck | null; + platformResourceStatusCheckEdge?: PlatformResourceStatusCheckEdge | null; } -export type CreatePlatformFunctionExecutionLogPayloadSelect = { +export type CreatePlatformResourceStatusCheckPayloadSelect = { clientMutationId?: boolean; - platformFunctionExecutionLog?: { - select: PlatformFunctionExecutionLogSelect; + platformResourceStatusCheck?: { + select: PlatformResourceStatusCheckSelect; }; - platformFunctionExecutionLogEdge?: { - select: PlatformFunctionExecutionLogEdgeSelect; + platformResourceStatusCheckEdge?: { + select: PlatformResourceStatusCheckEdgeSelect; }; }; -export interface UpdatePlatformFunctionExecutionLogPayload { +export interface UpdatePlatformResourceStatusCheckPayload { clientMutationId?: string | null; - /** The `PlatformFunctionExecutionLog` that was updated by this mutation. */ - platformFunctionExecutionLog?: PlatformFunctionExecutionLog | null; - platformFunctionExecutionLogEdge?: PlatformFunctionExecutionLogEdge | null; + /** The `PlatformResourceStatusCheck` that was updated by this mutation. */ + platformResourceStatusCheck?: PlatformResourceStatusCheck | null; + platformResourceStatusCheckEdge?: PlatformResourceStatusCheckEdge | null; } -export type UpdatePlatformFunctionExecutionLogPayloadSelect = { +export type UpdatePlatformResourceStatusCheckPayloadSelect = { clientMutationId?: boolean; - platformFunctionExecutionLog?: { - select: PlatformFunctionExecutionLogSelect; + platformResourceStatusCheck?: { + select: PlatformResourceStatusCheckSelect; }; - platformFunctionExecutionLogEdge?: { - select: PlatformFunctionExecutionLogEdgeSelect; + platformResourceStatusCheckEdge?: { + select: PlatformResourceStatusCheckEdgeSelect; }; }; -export interface DeletePlatformFunctionExecutionLogPayload { +export interface DeletePlatformResourceStatusCheckPayload { clientMutationId?: string | null; - /** The `PlatformFunctionExecutionLog` that was deleted by this mutation. */ - platformFunctionExecutionLog?: PlatformFunctionExecutionLog | null; - platformFunctionExecutionLogEdge?: PlatformFunctionExecutionLogEdge | null; + /** The `PlatformResourceStatusCheck` that was deleted by this mutation. */ + platformResourceStatusCheck?: PlatformResourceStatusCheck | null; + platformResourceStatusCheckEdge?: PlatformResourceStatusCheckEdge | null; } -export type DeletePlatformFunctionExecutionLogPayloadSelect = { +export type DeletePlatformResourceStatusCheckPayloadSelect = { clientMutationId?: boolean; - platformFunctionExecutionLog?: { - select: PlatformFunctionExecutionLogSelect; + platformResourceStatusCheck?: { + select: PlatformResourceStatusCheckSelect; }; - platformFunctionExecutionLogEdge?: { - select: PlatformFunctionExecutionLogEdgeSelect; + platformResourceStatusCheckEdge?: { + select: PlatformResourceStatusCheckEdgeSelect; }; }; -export interface CreatePlatformFunctionInvocationAttemptPayload { +export interface CreatePlatformResourceUsageLogPayload { clientMutationId?: string | null; - /** The `PlatformFunctionInvocationAttempt` that was created by this mutation. */ - platformFunctionInvocationAttempt?: PlatformFunctionInvocationAttempt | null; - platformFunctionInvocationAttemptEdge?: PlatformFunctionInvocationAttemptEdge | null; + /** The `PlatformResourceUsageLog` that was created by this mutation. */ + platformResourceUsageLog?: PlatformResourceUsageLog | null; + platformResourceUsageLogEdge?: PlatformResourceUsageLogEdge | null; } -export type CreatePlatformFunctionInvocationAttemptPayloadSelect = { +export type CreatePlatformResourceUsageLogPayloadSelect = { clientMutationId?: boolean; - platformFunctionInvocationAttempt?: { - select: PlatformFunctionInvocationAttemptSelect; + platformResourceUsageLog?: { + select: PlatformResourceUsageLogSelect; }; - platformFunctionInvocationAttemptEdge?: { - select: PlatformFunctionInvocationAttemptEdgeSelect; + platformResourceUsageLogEdge?: { + select: PlatformResourceUsageLogEdgeSelect; }; }; -export interface UpdatePlatformFunctionInvocationAttemptPayload { +export interface UpdatePlatformResourceUsageLogPayload { clientMutationId?: string | null; - /** The `PlatformFunctionInvocationAttempt` that was updated by this mutation. */ - platformFunctionInvocationAttempt?: PlatformFunctionInvocationAttempt | null; - platformFunctionInvocationAttemptEdge?: PlatformFunctionInvocationAttemptEdge | null; + /** The `PlatformResourceUsageLog` that was updated by this mutation. */ + platformResourceUsageLog?: PlatformResourceUsageLog | null; + platformResourceUsageLogEdge?: PlatformResourceUsageLogEdge | null; } -export type UpdatePlatformFunctionInvocationAttemptPayloadSelect = { +export type UpdatePlatformResourceUsageLogPayloadSelect = { clientMutationId?: boolean; - platformFunctionInvocationAttempt?: { - select: PlatformFunctionInvocationAttemptSelect; + platformResourceUsageLog?: { + select: PlatformResourceUsageLogSelect; }; - platformFunctionInvocationAttemptEdge?: { - select: PlatformFunctionInvocationAttemptEdgeSelect; + platformResourceUsageLogEdge?: { + select: PlatformResourceUsageLogEdgeSelect; }; }; -export interface DeletePlatformFunctionInvocationAttemptPayload { +export interface DeletePlatformResourceUsageLogPayload { clientMutationId?: string | null; - /** The `PlatformFunctionInvocationAttempt` that was deleted by this mutation. */ - platformFunctionInvocationAttempt?: PlatformFunctionInvocationAttempt | null; - platformFunctionInvocationAttemptEdge?: PlatformFunctionInvocationAttemptEdge | null; + /** The `PlatformResourceUsageLog` that was deleted by this mutation. */ + platformResourceUsageLog?: PlatformResourceUsageLog | null; + platformResourceUsageLogEdge?: PlatformResourceUsageLogEdge | null; } -export type DeletePlatformFunctionInvocationAttemptPayloadSelect = { +export type DeletePlatformResourceUsageLogPayloadSelect = { clientMutationId?: boolean; - platformFunctionInvocationAttempt?: { - select: PlatformFunctionInvocationAttemptSelect; + platformResourceUsageLog?: { + select: PlatformResourceUsageLogSelect; }; - platformFunctionInvocationAttemptEdge?: { - select: PlatformFunctionInvocationAttemptEdgeSelect; + platformResourceUsageLogEdge?: { + select: PlatformResourceUsageLogEdgeSelect; }; }; -export interface CreatePlatformFunctionInvocationPayload { +export interface CreatePlatformResourceUsageSummaryPayload { clientMutationId?: string | null; - /** The `PlatformFunctionInvocation` that was created by this mutation. */ - platformFunctionInvocation?: PlatformFunctionInvocation | null; - platformFunctionInvocationEdge?: PlatformFunctionInvocationEdge | null; + /** The `PlatformResourceUsageSummary` that was created by this mutation. */ + platformResourceUsageSummary?: PlatformResourceUsageSummary | null; + platformResourceUsageSummaryEdge?: PlatformResourceUsageSummaryEdge | null; } -export type CreatePlatformFunctionInvocationPayloadSelect = { +export type CreatePlatformResourceUsageSummaryPayloadSelect = { clientMutationId?: boolean; - platformFunctionInvocation?: { - select: PlatformFunctionInvocationSelect; + platformResourceUsageSummary?: { + select: PlatformResourceUsageSummarySelect; }; - platformFunctionInvocationEdge?: { - select: PlatformFunctionInvocationEdgeSelect; + platformResourceUsageSummaryEdge?: { + select: PlatformResourceUsageSummaryEdgeSelect; }; }; -export interface UpdatePlatformFunctionInvocationPayload { +export interface UpdatePlatformResourceUsageSummaryPayload { clientMutationId?: string | null; - /** The `PlatformFunctionInvocation` that was updated by this mutation. */ - platformFunctionInvocation?: PlatformFunctionInvocation | null; - platformFunctionInvocationEdge?: PlatformFunctionInvocationEdge | null; + /** The `PlatformResourceUsageSummary` that was updated by this mutation. */ + platformResourceUsageSummary?: PlatformResourceUsageSummary | null; + platformResourceUsageSummaryEdge?: PlatformResourceUsageSummaryEdge | null; } -export type UpdatePlatformFunctionInvocationPayloadSelect = { +export type UpdatePlatformResourceUsageSummaryPayloadSelect = { clientMutationId?: boolean; - platformFunctionInvocation?: { - select: PlatformFunctionInvocationSelect; + platformResourceUsageSummary?: { + select: PlatformResourceUsageSummarySelect; }; - platformFunctionInvocationEdge?: { - select: PlatformFunctionInvocationEdgeSelect; + platformResourceUsageSummaryEdge?: { + select: PlatformResourceUsageSummaryEdgeSelect; }; }; -export interface DeletePlatformFunctionInvocationPayload { +export interface DeletePlatformResourceUsageSummaryPayload { clientMutationId?: string | null; - /** The `PlatformFunctionInvocation` that was deleted by this mutation. */ - platformFunctionInvocation?: PlatformFunctionInvocation | null; - platformFunctionInvocationEdge?: PlatformFunctionInvocationEdge | null; + /** The `PlatformResourceUsageSummary` that was deleted by this mutation. */ + platformResourceUsageSummary?: PlatformResourceUsageSummary | null; + platformResourceUsageSummaryEdge?: PlatformResourceUsageSummaryEdge | null; } -export type DeletePlatformFunctionInvocationPayloadSelect = { +export type DeletePlatformResourceUsageSummaryPayloadSelect = { clientMutationId?: boolean; - platformFunctionInvocation?: { - select: PlatformFunctionInvocationSelect; + platformResourceUsageSummary?: { + select: PlatformResourceUsageSummarySelect; }; - platformFunctionInvocationEdge?: { - select: PlatformFunctionInvocationEdgeSelect; + platformResourceUsageSummaryEdge?: { + select: PlatformResourceUsageSummaryEdgeSelect; }; }; -export interface CreatePlatformInfraCommitPayload { +export interface CreatePlatformWebhookEndpointPayload { clientMutationId?: string | null; - /** The `PlatformInfraCommit` that was created by this mutation. */ - platformInfraCommit?: PlatformInfraCommit | null; - platformInfraCommitEdge?: PlatformInfraCommitEdge | null; + /** The `PlatformWebhookEndpoint` that was created by this mutation. */ + platformWebhookEndpoint?: PlatformWebhookEndpoint | null; + platformWebhookEndpointEdge?: PlatformWebhookEndpointEdge | null; } -export type CreatePlatformInfraCommitPayloadSelect = { +export type CreatePlatformWebhookEndpointPayloadSelect = { clientMutationId?: boolean; - platformInfraCommit?: { - select: PlatformInfraCommitSelect; + platformWebhookEndpoint?: { + select: PlatformWebhookEndpointSelect; }; - platformInfraCommitEdge?: { - select: PlatformInfraCommitEdgeSelect; + platformWebhookEndpointEdge?: { + select: PlatformWebhookEndpointEdgeSelect; }; }; -export interface UpdatePlatformInfraCommitPayload { +export interface UpdatePlatformWebhookEndpointPayload { clientMutationId?: string | null; - /** The `PlatformInfraCommit` that was updated by this mutation. */ - platformInfraCommit?: PlatformInfraCommit | null; - platformInfraCommitEdge?: PlatformInfraCommitEdge | null; + /** The `PlatformWebhookEndpoint` that was updated by this mutation. */ + platformWebhookEndpoint?: PlatformWebhookEndpoint | null; + platformWebhookEndpointEdge?: PlatformWebhookEndpointEdge | null; } -export type UpdatePlatformInfraCommitPayloadSelect = { +export type UpdatePlatformWebhookEndpointPayloadSelect = { clientMutationId?: boolean; - platformInfraCommit?: { - select: PlatformInfraCommitSelect; + platformWebhookEndpoint?: { + select: PlatformWebhookEndpointSelect; }; - platformInfraCommitEdge?: { - select: PlatformInfraCommitEdgeSelect; + platformWebhookEndpointEdge?: { + select: PlatformWebhookEndpointEdgeSelect; }; }; -export interface DeletePlatformInfraCommitPayload { +export interface DeletePlatformWebhookEndpointPayload { clientMutationId?: string | null; - /** The `PlatformInfraCommit` that was deleted by this mutation. */ - platformInfraCommit?: PlatformInfraCommit | null; - platformInfraCommitEdge?: PlatformInfraCommitEdge | null; + /** The `PlatformWebhookEndpoint` that was deleted by this mutation. */ + platformWebhookEndpoint?: PlatformWebhookEndpoint | null; + platformWebhookEndpointEdge?: PlatformWebhookEndpointEdge | null; } -export type DeletePlatformInfraCommitPayloadSelect = { +export type DeletePlatformWebhookEndpointPayloadSelect = { clientMutationId?: boolean; - platformInfraCommit?: { - select: PlatformInfraCommitSelect; + platformWebhookEndpoint?: { + select: PlatformWebhookEndpointSelect; }; - platformInfraCommitEdge?: { - select: PlatformInfraCommitEdgeSelect; + platformWebhookEndpointEdge?: { + select: PlatformWebhookEndpointEdgeSelect; }; }; -export interface CreatePlatformInfraObjectPayload { +export interface CreatePlatformWebhookEventPayload { clientMutationId?: string | null; - /** The `PlatformInfraObject` that was created by this mutation. */ - platformInfraObject?: PlatformInfraObject | null; - platformInfraObjectEdge?: PlatformInfraObjectEdge | null; + /** The `PlatformWebhookEvent` that was created by this mutation. */ + platformWebhookEvent?: PlatformWebhookEvent | null; + platformWebhookEventEdge?: PlatformWebhookEventEdge | null; } -export type CreatePlatformInfraObjectPayloadSelect = { - clientMutationId?: boolean; - platformInfraObject?: { - select: PlatformInfraObjectSelect; +export type CreatePlatformWebhookEventPayloadSelect = { + clientMutationId?: boolean; + platformWebhookEvent?: { + select: PlatformWebhookEventSelect; }; - platformInfraObjectEdge?: { - select: PlatformInfraObjectEdgeSelect; + platformWebhookEventEdge?: { + select: PlatformWebhookEventEdgeSelect; }; }; -export interface UpdatePlatformInfraObjectPayload { +export interface UpdatePlatformWebhookEventPayload { clientMutationId?: string | null; - /** The `PlatformInfraObject` that was updated by this mutation. */ - platformInfraObject?: PlatformInfraObject | null; - platformInfraObjectEdge?: PlatformInfraObjectEdge | null; + /** The `PlatformWebhookEvent` that was updated by this mutation. */ + platformWebhookEvent?: PlatformWebhookEvent | null; + platformWebhookEventEdge?: PlatformWebhookEventEdge | null; } -export type UpdatePlatformInfraObjectPayloadSelect = { +export type UpdatePlatformWebhookEventPayloadSelect = { clientMutationId?: boolean; - platformInfraObject?: { - select: PlatformInfraObjectSelect; + platformWebhookEvent?: { + select: PlatformWebhookEventSelect; }; - platformInfraObjectEdge?: { - select: PlatformInfraObjectEdgeSelect; + platformWebhookEventEdge?: { + select: PlatformWebhookEventEdgeSelect; }; }; -export interface DeletePlatformInfraObjectPayload { +export interface DeletePlatformWebhookEventPayload { clientMutationId?: string | null; - /** The `PlatformInfraObject` that was deleted by this mutation. */ - platformInfraObject?: PlatformInfraObject | null; - platformInfraObjectEdge?: PlatformInfraObjectEdge | null; + /** The `PlatformWebhookEvent` that was deleted by this mutation. */ + platformWebhookEvent?: PlatformWebhookEvent | null; + platformWebhookEventEdge?: PlatformWebhookEventEdge | null; } -export type DeletePlatformInfraObjectPayloadSelect = { +export type DeletePlatformWebhookEventPayloadSelect = { clientMutationId?: boolean; - platformInfraObject?: { - select: PlatformInfraObjectSelect; + platformWebhookEvent?: { + select: PlatformWebhookEventSelect; }; - platformInfraObjectEdge?: { - select: PlatformInfraObjectEdgeSelect; + platformWebhookEventEdge?: { + select: PlatformWebhookEventEdgeSelect; }; }; -export interface CreatePlatformInfraRefPayload { +export interface CreateProposalCommentPayload { clientMutationId?: string | null; - /** The `PlatformInfraRef` that was created by this mutation. */ - platformInfraRef?: PlatformInfraRef | null; - platformInfraRefEdge?: PlatformInfraRefEdge | null; + /** The `ProposalComment` that was created by this mutation. */ + proposalComment?: ProposalComment | null; + proposalCommentEdge?: ProposalCommentEdge | null; } -export type CreatePlatformInfraRefPayloadSelect = { +export type CreateProposalCommentPayloadSelect = { clientMutationId?: boolean; - platformInfraRef?: { - select: PlatformInfraRefSelect; + proposalComment?: { + select: ProposalCommentSelect; }; - platformInfraRefEdge?: { - select: PlatformInfraRefEdgeSelect; + proposalCommentEdge?: { + select: ProposalCommentEdgeSelect; }; }; -export interface UpdatePlatformInfraRefPayload { +export interface UpdateProposalCommentPayload { clientMutationId?: string | null; - /** The `PlatformInfraRef` that was updated by this mutation. */ - platformInfraRef?: PlatformInfraRef | null; - platformInfraRefEdge?: PlatformInfraRefEdge | null; + /** The `ProposalComment` that was updated by this mutation. */ + proposalComment?: ProposalComment | null; + proposalCommentEdge?: ProposalCommentEdge | null; } -export type UpdatePlatformInfraRefPayloadSelect = { +export type UpdateProposalCommentPayloadSelect = { clientMutationId?: boolean; - platformInfraRef?: { - select: PlatformInfraRefSelect; + proposalComment?: { + select: ProposalCommentSelect; }; - platformInfraRefEdge?: { - select: PlatformInfraRefEdgeSelect; + proposalCommentEdge?: { + select: ProposalCommentEdgeSelect; }; }; -export interface DeletePlatformInfraRefPayload { +export interface DeleteProposalCommentPayload { clientMutationId?: string | null; - /** The `PlatformInfraRef` that was deleted by this mutation. */ - platformInfraRef?: PlatformInfraRef | null; - platformInfraRefEdge?: PlatformInfraRefEdge | null; + /** The `ProposalComment` that was deleted by this mutation. */ + proposalComment?: ProposalComment | null; + proposalCommentEdge?: ProposalCommentEdge | null; } -export type DeletePlatformInfraRefPayloadSelect = { +export type DeleteProposalCommentPayloadSelect = { clientMutationId?: boolean; - platformInfraRef?: { - select: PlatformInfraRefSelect; + proposalComment?: { + select: ProposalCommentSelect; }; - platformInfraRefEdge?: { - select: PlatformInfraRefEdgeSelect; + proposalCommentEdge?: { + select: ProposalCommentEdgeSelect; }; }; -export interface CreatePlatformInfraStorePayload { +export interface CreateProposalPayload { clientMutationId?: string | null; - /** The `PlatformInfraStore` that was created by this mutation. */ - platformInfraStore?: PlatformInfraStore | null; - platformInfraStoreEdge?: PlatformInfraStoreEdge | null; + /** The `Proposal` that was created by this mutation. */ + proposal?: Proposal | null; + proposalEdge?: ProposalEdge | null; } -export type CreatePlatformInfraStorePayloadSelect = { +export type CreateProposalPayloadSelect = { clientMutationId?: boolean; - platformInfraStore?: { - select: PlatformInfraStoreSelect; + proposal?: { + select: ProposalSelect; }; - platformInfraStoreEdge?: { - select: PlatformInfraStoreEdgeSelect; + proposalEdge?: { + select: ProposalEdgeSelect; }; }; -export interface UpdatePlatformInfraStorePayload { +export interface UpdateProposalPayload { clientMutationId?: string | null; - /** The `PlatformInfraStore` that was updated by this mutation. */ - platformInfraStore?: PlatformInfraStore | null; - platformInfraStoreEdge?: PlatformInfraStoreEdge | null; + /** The `Proposal` that was updated by this mutation. */ + proposal?: Proposal | null; + proposalEdge?: ProposalEdge | null; } -export type UpdatePlatformInfraStorePayloadSelect = { +export type UpdateProposalPayloadSelect = { clientMutationId?: boolean; - platformInfraStore?: { - select: PlatformInfraStoreSelect; + proposal?: { + select: ProposalSelect; }; - platformInfraStoreEdge?: { - select: PlatformInfraStoreEdgeSelect; + proposalEdge?: { + select: ProposalEdgeSelect; }; }; -export interface DeletePlatformInfraStorePayload { +export interface DeleteProposalPayload { clientMutationId?: string | null; - /** The `PlatformInfraStore` that was deleted by this mutation. */ - platformInfraStore?: PlatformInfraStore | null; - platformInfraStoreEdge?: PlatformInfraStoreEdge | null; + /** The `Proposal` that was deleted by this mutation. */ + proposal?: Proposal | null; + proposalEdge?: ProposalEdge | null; } -export type DeletePlatformInfraStorePayloadSelect = { +export type DeleteProposalPayloadSelect = { clientMutationId?: boolean; - platformInfraStore?: { - select: PlatformInfraStoreSelect; + proposal?: { + select: ProposalSelect; }; - platformInfraStoreEdge?: { - select: PlatformInfraStoreEdgeSelect; + proposalEdge?: { + select: ProposalEdgeSelect; }; }; -export interface CreatePlatformNamespacePayload { +export interface CreateProposalFileViewPayload { clientMutationId?: string | null; - /** The `PlatformNamespace` that was created by this mutation. */ - platformNamespace?: PlatformNamespace | null; - platformNamespaceEdge?: PlatformNamespaceEdge | null; + /** The `ProposalFileView` that was created by this mutation. */ + proposalFileView?: ProposalFileView | null; + proposalFileViewEdge?: ProposalFileViewEdge | null; } -export type CreatePlatformNamespacePayloadSelect = { +export type CreateProposalFileViewPayloadSelect = { clientMutationId?: boolean; - platformNamespace?: { - select: PlatformNamespaceSelect; + proposalFileView?: { + select: ProposalFileViewSelect; }; - platformNamespaceEdge?: { - select: PlatformNamespaceEdgeSelect; + proposalFileViewEdge?: { + select: ProposalFileViewEdgeSelect; }; }; -export interface UpdatePlatformNamespacePayload { +export interface UpdateProposalFileViewPayload { clientMutationId?: string | null; - /** The `PlatformNamespace` that was updated by this mutation. */ - platformNamespace?: PlatformNamespace | null; - platformNamespaceEdge?: PlatformNamespaceEdge | null; + /** The `ProposalFileView` that was updated by this mutation. */ + proposalFileView?: ProposalFileView | null; + proposalFileViewEdge?: ProposalFileViewEdge | null; } -export type UpdatePlatformNamespacePayloadSelect = { +export type UpdateProposalFileViewPayloadSelect = { clientMutationId?: boolean; - platformNamespace?: { - select: PlatformNamespaceSelect; + proposalFileView?: { + select: ProposalFileViewSelect; }; - platformNamespaceEdge?: { - select: PlatformNamespaceEdgeSelect; + proposalFileViewEdge?: { + select: ProposalFileViewEdgeSelect; }; }; -export interface DeletePlatformNamespacePayload { +export interface DeleteProposalFileViewPayload { clientMutationId?: string | null; - /** The `PlatformNamespace` that was deleted by this mutation. */ - platformNamespace?: PlatformNamespace | null; - platformNamespaceEdge?: PlatformNamespaceEdge | null; + /** The `ProposalFileView` that was deleted by this mutation. */ + proposalFileView?: ProposalFileView | null; + proposalFileViewEdge?: ProposalFileViewEdge | null; } -export type DeletePlatformNamespacePayloadSelect = { +export type DeleteProposalFileViewPayloadSelect = { clientMutationId?: boolean; - platformNamespace?: { - select: PlatformNamespaceSelect; + proposalFileView?: { + select: ProposalFileViewSelect; }; - platformNamespaceEdge?: { - select: PlatformNamespaceEdgeSelect; + proposalFileViewEdge?: { + select: ProposalFileViewEdgeSelect; }; }; -export interface CreatePlatformNamespaceEventPayload { +export interface CreateProposalReactionPayload { clientMutationId?: string | null; - /** The `PlatformNamespaceEvent` that was created by this mutation. */ - platformNamespaceEvent?: PlatformNamespaceEvent | null; - platformNamespaceEventEdge?: PlatformNamespaceEventEdge | null; + /** The `ProposalReaction` that was created by this mutation. */ + proposalReaction?: ProposalReaction | null; + proposalReactionEdge?: ProposalReactionEdge | null; } -export type CreatePlatformNamespaceEventPayloadSelect = { +export type CreateProposalReactionPayloadSelect = { clientMutationId?: boolean; - platformNamespaceEvent?: { - select: PlatformNamespaceEventSelect; + proposalReaction?: { + select: ProposalReactionSelect; }; - platformNamespaceEventEdge?: { - select: PlatformNamespaceEventEdgeSelect; + proposalReactionEdge?: { + select: ProposalReactionEdgeSelect; }; }; -export interface UpdatePlatformNamespaceEventPayload { +export interface UpdateProposalReactionPayload { clientMutationId?: string | null; - /** The `PlatformNamespaceEvent` that was updated by this mutation. */ - platformNamespaceEvent?: PlatformNamespaceEvent | null; - platformNamespaceEventEdge?: PlatformNamespaceEventEdge | null; + /** The `ProposalReaction` that was updated by this mutation. */ + proposalReaction?: ProposalReaction | null; + proposalReactionEdge?: ProposalReactionEdge | null; } -export type UpdatePlatformNamespaceEventPayloadSelect = { +export type UpdateProposalReactionPayloadSelect = { clientMutationId?: boolean; - platformNamespaceEvent?: { - select: PlatformNamespaceEventSelect; + proposalReaction?: { + select: ProposalReactionSelect; }; - platformNamespaceEventEdge?: { - select: PlatformNamespaceEventEdgeSelect; + proposalReactionEdge?: { + select: ProposalReactionEdgeSelect; }; }; -export interface DeletePlatformNamespaceEventPayload { +export interface DeleteProposalReactionPayload { clientMutationId?: string | null; - /** The `PlatformNamespaceEvent` that was deleted by this mutation. */ - platformNamespaceEvent?: PlatformNamespaceEvent | null; - platformNamespaceEventEdge?: PlatformNamespaceEventEdge | null; + /** The `ProposalReaction` that was deleted by this mutation. */ + proposalReaction?: ProposalReaction | null; + proposalReactionEdge?: ProposalReactionEdge | null; } -export type DeletePlatformNamespaceEventPayloadSelect = { +export type DeleteProposalReactionPayloadSelect = { clientMutationId?: boolean; - platformNamespaceEvent?: { - select: PlatformNamespaceEventSelect; + proposalReaction?: { + select: ProposalReactionSelect; }; - platformNamespaceEventEdge?: { - select: PlatformNamespaceEventEdgeSelect; + proposalReactionEdge?: { + select: ProposalReactionEdgeSelect; }; }; -export interface CreatePlatformResourcePayload { +export interface CreateProposalReviewPayload { clientMutationId?: string | null; - /** The `PlatformResource` that was created by this mutation. */ - platformResource?: PlatformResource | null; - platformResourceEdge?: PlatformResourceEdge | null; + /** The `ProposalReview` that was created by this mutation. */ + proposalReview?: ProposalReview | null; + proposalReviewEdge?: ProposalReviewEdge | null; } -export type CreatePlatformResourcePayloadSelect = { +export type CreateProposalReviewPayloadSelect = { clientMutationId?: boolean; - platformResource?: { - select: PlatformResourceSelect; + proposalReview?: { + select: ProposalReviewSelect; }; - platformResourceEdge?: { - select: PlatformResourceEdgeSelect; + proposalReviewEdge?: { + select: ProposalReviewEdgeSelect; }; }; -export interface UpdatePlatformResourcePayload { +export interface UpdateProposalReviewPayload { clientMutationId?: string | null; - /** The `PlatformResource` that was updated by this mutation. */ - platformResource?: PlatformResource | null; - platformResourceEdge?: PlatformResourceEdge | null; + /** The `ProposalReview` that was updated by this mutation. */ + proposalReview?: ProposalReview | null; + proposalReviewEdge?: ProposalReviewEdge | null; } -export type UpdatePlatformResourcePayloadSelect = { +export type UpdateProposalReviewPayloadSelect = { clientMutationId?: boolean; - platformResource?: { - select: PlatformResourceSelect; + proposalReview?: { + select: ProposalReviewSelect; }; - platformResourceEdge?: { - select: PlatformResourceEdgeSelect; + proposalReviewEdge?: { + select: ProposalReviewEdgeSelect; }; }; -export interface DeletePlatformResourcePayload { +export interface DeleteProposalReviewPayload { clientMutationId?: string | null; - /** The `PlatformResource` that was deleted by this mutation. */ - platformResource?: PlatformResource | null; - platformResourceEdge?: PlatformResourceEdge | null; + /** The `ProposalReview` that was deleted by this mutation. */ + proposalReview?: ProposalReview | null; + proposalReviewEdge?: ProposalReviewEdge | null; } -export type DeletePlatformResourcePayloadSelect = { +export type DeleteProposalReviewPayloadSelect = { clientMutationId?: boolean; - platformResource?: { - select: PlatformResourceSelect; + proposalReview?: { + select: ProposalReviewSelect; }; - platformResourceEdge?: { - select: PlatformResourceEdgeSelect; + proposalReviewEdge?: { + select: ProposalReviewEdgeSelect; }; }; -export interface CreatePlatformResourceDefinitionPayload { +export interface CreateProposalsChunkPayload { clientMutationId?: string | null; - /** The `PlatformResourceDefinition` that was created by this mutation. */ - platformResourceDefinition?: PlatformResourceDefinition | null; - platformResourceDefinitionEdge?: PlatformResourceDefinitionEdge | null; + /** The `ProposalsChunk` that was created by this mutation. */ + proposalsChunk?: ProposalsChunk | null; + proposalsChunkEdge?: ProposalsChunkEdge | null; } -export type CreatePlatformResourceDefinitionPayloadSelect = { +export type CreateProposalsChunkPayloadSelect = { clientMutationId?: boolean; - platformResourceDefinition?: { - select: PlatformResourceDefinitionSelect; + proposalsChunk?: { + select: ProposalsChunkSelect; }; - platformResourceDefinitionEdge?: { - select: PlatformResourceDefinitionEdgeSelect; + proposalsChunkEdge?: { + select: ProposalsChunkEdgeSelect; }; }; -export interface UpdatePlatformResourceDefinitionPayload { +export interface UpdateProposalsChunkPayload { clientMutationId?: string | null; - /** The `PlatformResourceDefinition` that was updated by this mutation. */ - platformResourceDefinition?: PlatformResourceDefinition | null; - platformResourceDefinitionEdge?: PlatformResourceDefinitionEdge | null; + /** The `ProposalsChunk` that was updated by this mutation. */ + proposalsChunk?: ProposalsChunk | null; + proposalsChunkEdge?: ProposalsChunkEdge | null; } -export type UpdatePlatformResourceDefinitionPayloadSelect = { +export type UpdateProposalsChunkPayloadSelect = { clientMutationId?: boolean; - platformResourceDefinition?: { - select: PlatformResourceDefinitionSelect; + proposalsChunk?: { + select: ProposalsChunkSelect; }; - platformResourceDefinitionEdge?: { - select: PlatformResourceDefinitionEdgeSelect; + proposalsChunkEdge?: { + select: ProposalsChunkEdgeSelect; }; }; -export interface DeletePlatformResourceDefinitionPayload { +export interface DeleteProposalsChunkPayload { clientMutationId?: string | null; - /** The `PlatformResourceDefinition` that was deleted by this mutation. */ - platformResourceDefinition?: PlatformResourceDefinition | null; - platformResourceDefinitionEdge?: PlatformResourceDefinitionEdge | null; + /** The `ProposalsChunk` that was deleted by this mutation. */ + proposalsChunk?: ProposalsChunk | null; + proposalsChunkEdge?: ProposalsChunkEdge | null; } -export type DeletePlatformResourceDefinitionPayloadSelect = { +export type DeleteProposalsChunkPayloadSelect = { clientMutationId?: boolean; - platformResourceDefinition?: { - select: PlatformResourceDefinitionSelect; + proposalsChunk?: { + select: ProposalsChunkSelect; }; - platformResourceDefinitionEdge?: { - select: PlatformResourceDefinitionEdgeSelect; + proposalsChunkEdge?: { + select: ProposalsChunkEdgeSelect; }; }; -export interface CreatePlatformResourceEventPayload { +export interface CreateRegistryBindingPayload { clientMutationId?: string | null; - /** The `PlatformResourceEvent` that was created by this mutation. */ - platformResourceEvent?: PlatformResourceEvent | null; - platformResourceEventEdge?: PlatformResourceEventEdge | null; + /** The `RegistryBinding` that was created by this mutation. */ + registryBinding?: RegistryBinding | null; + registryBindingEdge?: RegistryBindingEdge | null; } -export type CreatePlatformResourceEventPayloadSelect = { +export type CreateRegistryBindingPayloadSelect = { clientMutationId?: boolean; - platformResourceEvent?: { - select: PlatformResourceEventSelect; + registryBinding?: { + select: RegistryBindingSelect; }; - platformResourceEventEdge?: { - select: PlatformResourceEventEdgeSelect; + registryBindingEdge?: { + select: RegistryBindingEdgeSelect; }; }; -export interface UpdatePlatformResourceEventPayload { +export interface UpdateRegistryBindingPayload { clientMutationId?: string | null; - /** The `PlatformResourceEvent` that was updated by this mutation. */ - platformResourceEvent?: PlatformResourceEvent | null; - platformResourceEventEdge?: PlatformResourceEventEdge | null; + /** The `RegistryBinding` that was updated by this mutation. */ + registryBinding?: RegistryBinding | null; + registryBindingEdge?: RegistryBindingEdge | null; } -export type UpdatePlatformResourceEventPayloadSelect = { +export type UpdateRegistryBindingPayloadSelect = { clientMutationId?: boolean; - platformResourceEvent?: { - select: PlatformResourceEventSelect; + registryBinding?: { + select: RegistryBindingSelect; }; - platformResourceEventEdge?: { - select: PlatformResourceEventEdgeSelect; + registryBindingEdge?: { + select: RegistryBindingEdgeSelect; }; }; -export interface DeletePlatformResourceEventPayload { +export interface DeleteRegistryBindingPayload { clientMutationId?: string | null; - /** The `PlatformResourceEvent` that was deleted by this mutation. */ - platformResourceEvent?: PlatformResourceEvent | null; - platformResourceEventEdge?: PlatformResourceEventEdge | null; + /** The `RegistryBinding` that was deleted by this mutation. */ + registryBinding?: RegistryBinding | null; + registryBindingEdge?: RegistryBindingEdge | null; } -export type DeletePlatformResourceEventPayloadSelect = { +export type DeleteRegistryBindingPayloadSelect = { clientMutationId?: boolean; - platformResourceEvent?: { - select: PlatformResourceEventSelect; + registryBinding?: { + select: RegistryBindingSelect; }; - platformResourceEventEdge?: { - select: PlatformResourceEventEdgeSelect; + registryBindingEdge?: { + select: RegistryBindingEdgeSelect; }; }; -export interface CreatePlatformResourceInstallationPayload { +export interface CreateRegistryPayload { clientMutationId?: string | null; - /** The `PlatformResourceInstallation` that was created by this mutation. */ - platformResourceInstallation?: PlatformResourceInstallation | null; - platformResourceInstallationEdge?: PlatformResourceInstallationEdge | null; + /** The `Registry` that was created by this mutation. */ + registry?: Registry | null; + registryEdge?: RegistryEdge | null; } -export type CreatePlatformResourceInstallationPayloadSelect = { +export type CreateRegistryPayloadSelect = { clientMutationId?: boolean; - platformResourceInstallation?: { - select: PlatformResourceInstallationSelect; + registry?: { + select: RegistrySelect; }; - platformResourceInstallationEdge?: { - select: PlatformResourceInstallationEdgeSelect; + registryEdge?: { + select: RegistryEdgeSelect; }; }; -export interface UpdatePlatformResourceInstallationPayload { +export interface UpdateRegistryPayload { clientMutationId?: string | null; - /** The `PlatformResourceInstallation` that was updated by this mutation. */ - platformResourceInstallation?: PlatformResourceInstallation | null; - platformResourceInstallationEdge?: PlatformResourceInstallationEdge | null; + /** The `Registry` that was updated by this mutation. */ + registry?: Registry | null; + registryEdge?: RegistryEdge | null; } -export type UpdatePlatformResourceInstallationPayloadSelect = { +export type UpdateRegistryPayloadSelect = { clientMutationId?: boolean; - platformResourceInstallation?: { - select: PlatformResourceInstallationSelect; + registry?: { + select: RegistrySelect; }; - platformResourceInstallationEdge?: { - select: PlatformResourceInstallationEdgeSelect; + registryEdge?: { + select: RegistryEdgeSelect; }; -}; -export interface DeletePlatformResourceInstallationPayload { - clientMutationId?: string | null; - /** The `PlatformResourceInstallation` that was deleted by this mutation. */ - platformResourceInstallation?: PlatformResourceInstallation | null; - platformResourceInstallationEdge?: PlatformResourceInstallationEdge | null; +}; +export interface DeleteRegistryPayload { + clientMutationId?: string | null; + /** The `Registry` that was deleted by this mutation. */ + registry?: Registry | null; + registryEdge?: RegistryEdge | null; } -export type DeletePlatformResourceInstallationPayloadSelect = { +export type DeleteRegistryPayloadSelect = { clientMutationId?: boolean; - platformResourceInstallation?: { - select: PlatformResourceInstallationSelect; + registry?: { + select: RegistrySelect; }; - platformResourceInstallationEdge?: { - select: PlatformResourceInstallationEdgeSelect; + registryEdge?: { + select: RegistryEdgeSelect; }; }; -export interface CreatePlatformResourceStatusCheckPayload { +export interface CreateRegistryGrantPayload { clientMutationId?: string | null; - /** The `PlatformResourceStatusCheck` that was created by this mutation. */ - platformResourceStatusCheck?: PlatformResourceStatusCheck | null; - platformResourceStatusCheckEdge?: PlatformResourceStatusCheckEdge | null; + /** The `RegistryGrant` that was created by this mutation. */ + registryGrant?: RegistryGrant | null; + registryGrantEdge?: RegistryGrantEdge | null; } -export type CreatePlatformResourceStatusCheckPayloadSelect = { +export type CreateRegistryGrantPayloadSelect = { clientMutationId?: boolean; - platformResourceStatusCheck?: { - select: PlatformResourceStatusCheckSelect; + registryGrant?: { + select: RegistryGrantSelect; }; - platformResourceStatusCheckEdge?: { - select: PlatformResourceStatusCheckEdgeSelect; + registryGrantEdge?: { + select: RegistryGrantEdgeSelect; }; }; -export interface UpdatePlatformResourceStatusCheckPayload { +export interface UpdateRegistryGrantPayload { clientMutationId?: string | null; - /** The `PlatformResourceStatusCheck` that was updated by this mutation. */ - platformResourceStatusCheck?: PlatformResourceStatusCheck | null; - platformResourceStatusCheckEdge?: PlatformResourceStatusCheckEdge | null; + /** The `RegistryGrant` that was updated by this mutation. */ + registryGrant?: RegistryGrant | null; + registryGrantEdge?: RegistryGrantEdge | null; } -export type UpdatePlatformResourceStatusCheckPayloadSelect = { +export type UpdateRegistryGrantPayloadSelect = { clientMutationId?: boolean; - platformResourceStatusCheck?: { - select: PlatformResourceStatusCheckSelect; + registryGrant?: { + select: RegistryGrantSelect; }; - platformResourceStatusCheckEdge?: { - select: PlatformResourceStatusCheckEdgeSelect; + registryGrantEdge?: { + select: RegistryGrantEdgeSelect; }; }; -export interface DeletePlatformResourceStatusCheckPayload { +export interface DeleteRegistryGrantPayload { clientMutationId?: string | null; - /** The `PlatformResourceStatusCheck` that was deleted by this mutation. */ - platformResourceStatusCheck?: PlatformResourceStatusCheck | null; - platformResourceStatusCheckEdge?: PlatformResourceStatusCheckEdge | null; + /** The `RegistryGrant` that was deleted by this mutation. */ + registryGrant?: RegistryGrant | null; + registryGrantEdge?: RegistryGrantEdge | null; } -export type DeletePlatformResourceStatusCheckPayloadSelect = { +export type DeleteRegistryGrantPayloadSelect = { clientMutationId?: boolean; - platformResourceStatusCheck?: { - select: PlatformResourceStatusCheckSelect; + registryGrant?: { + select: RegistryGrantSelect; }; - platformResourceStatusCheckEdge?: { - select: PlatformResourceStatusCheckEdgeSelect; + registryGrantEdge?: { + select: RegistryGrantEdgeSelect; }; }; -export interface CreatePlatformResourceUsageLogPayload { +export interface CreateRepositoryPayload { clientMutationId?: string | null; - /** The `PlatformResourceUsageLog` that was created by this mutation. */ - platformResourceUsageLog?: PlatformResourceUsageLog | null; - platformResourceUsageLogEdge?: PlatformResourceUsageLogEdge | null; + /** The `Repository` that was created by this mutation. */ + repository?: Repository | null; + repositoryEdge?: RepositoryEdge | null; } -export type CreatePlatformResourceUsageLogPayloadSelect = { +export type CreateRepositoryPayloadSelect = { clientMutationId?: boolean; - platformResourceUsageLog?: { - select: PlatformResourceUsageLogSelect; + repository?: { + select: RepositorySelect; }; - platformResourceUsageLogEdge?: { - select: PlatformResourceUsageLogEdgeSelect; + repositoryEdge?: { + select: RepositoryEdgeSelect; }; }; -export interface UpdatePlatformResourceUsageLogPayload { +export interface UpdateRepositoryPayload { clientMutationId?: string | null; - /** The `PlatformResourceUsageLog` that was updated by this mutation. */ - platformResourceUsageLog?: PlatformResourceUsageLog | null; - platformResourceUsageLogEdge?: PlatformResourceUsageLogEdge | null; + /** The `Repository` that was updated by this mutation. */ + repository?: Repository | null; + repositoryEdge?: RepositoryEdge | null; } -export type UpdatePlatformResourceUsageLogPayloadSelect = { +export type UpdateRepositoryPayloadSelect = { clientMutationId?: boolean; - platformResourceUsageLog?: { - select: PlatformResourceUsageLogSelect; + repository?: { + select: RepositorySelect; }; - platformResourceUsageLogEdge?: { - select: PlatformResourceUsageLogEdgeSelect; + repositoryEdge?: { + select: RepositoryEdgeSelect; }; }; -export interface DeletePlatformResourceUsageLogPayload { +export interface DeleteRepositoryPayload { clientMutationId?: string | null; - /** The `PlatformResourceUsageLog` that was deleted by this mutation. */ - platformResourceUsageLog?: PlatformResourceUsageLog | null; - platformResourceUsageLogEdge?: PlatformResourceUsageLogEdge | null; + /** The `Repository` that was deleted by this mutation. */ + repository?: Repository | null; + repositoryEdge?: RepositoryEdge | null; } -export type DeletePlatformResourceUsageLogPayloadSelect = { +export type DeleteRepositoryPayloadSelect = { clientMutationId?: boolean; - platformResourceUsageLog?: { - select: PlatformResourceUsageLogSelect; + repository?: { + select: RepositorySelect; }; - platformResourceUsageLogEdge?: { - select: PlatformResourceUsageLogEdgeSelect; + repositoryEdge?: { + select: RepositoryEdgeSelect; }; }; -export interface CreatePlatformResourceUsageSummaryPayload { +export interface CreateRepositoryEventPayload { clientMutationId?: string | null; - /** The `PlatformResourceUsageSummary` that was created by this mutation. */ - platformResourceUsageSummary?: PlatformResourceUsageSummary | null; - platformResourceUsageSummaryEdge?: PlatformResourceUsageSummaryEdge | null; + /** The `RepositoryEvent` that was created by this mutation. */ + repositoryEvent?: RepositoryEvent | null; + repositoryEventEdge?: RepositoryEventEdge | null; } -export type CreatePlatformResourceUsageSummaryPayloadSelect = { +export type CreateRepositoryEventPayloadSelect = { clientMutationId?: boolean; - platformResourceUsageSummary?: { - select: PlatformResourceUsageSummarySelect; + repositoryEvent?: { + select: RepositoryEventSelect; }; - platformResourceUsageSummaryEdge?: { - select: PlatformResourceUsageSummaryEdgeSelect; + repositoryEventEdge?: { + select: RepositoryEventEdgeSelect; }; }; -export interface UpdatePlatformResourceUsageSummaryPayload { +export interface UpdateRepositoryEventPayload { clientMutationId?: string | null; - /** The `PlatformResourceUsageSummary` that was updated by this mutation. */ - platformResourceUsageSummary?: PlatformResourceUsageSummary | null; - platformResourceUsageSummaryEdge?: PlatformResourceUsageSummaryEdge | null; + /** The `RepositoryEvent` that was updated by this mutation. */ + repositoryEvent?: RepositoryEvent | null; + repositoryEventEdge?: RepositoryEventEdge | null; } -export type UpdatePlatformResourceUsageSummaryPayloadSelect = { +export type UpdateRepositoryEventPayloadSelect = { clientMutationId?: boolean; - platformResourceUsageSummary?: { - select: PlatformResourceUsageSummarySelect; + repositoryEvent?: { + select: RepositoryEventSelect; }; - platformResourceUsageSummaryEdge?: { - select: PlatformResourceUsageSummaryEdgeSelect; + repositoryEventEdge?: { + select: RepositoryEventEdgeSelect; }; }; -export interface DeletePlatformResourceUsageSummaryPayload { +export interface DeleteRepositoryEventPayload { clientMutationId?: string | null; - /** The `PlatformResourceUsageSummary` that was deleted by this mutation. */ - platformResourceUsageSummary?: PlatformResourceUsageSummary | null; - platformResourceUsageSummaryEdge?: PlatformResourceUsageSummaryEdge | null; + /** The `RepositoryEvent` that was deleted by this mutation. */ + repositoryEvent?: RepositoryEvent | null; + repositoryEventEdge?: RepositoryEventEdge | null; } -export type DeletePlatformResourceUsageSummaryPayloadSelect = { +export type DeleteRepositoryEventPayloadSelect = { clientMutationId?: boolean; - platformResourceUsageSummary?: { - select: PlatformResourceUsageSummarySelect; + repositoryEvent?: { + select: RepositoryEventSelect; }; - platformResourceUsageSummaryEdge?: { - select: PlatformResourceUsageSummaryEdgeSelect; + repositoryEventEdge?: { + select: RepositoryEventEdgeSelect; }; }; -export interface CreatePlatformWebhookEndpointPayload { +export interface CreateRepositoryRequiredCheckPayload { clientMutationId?: string | null; - /** The `PlatformWebhookEndpoint` that was created by this mutation. */ - platformWebhookEndpoint?: PlatformWebhookEndpoint | null; - platformWebhookEndpointEdge?: PlatformWebhookEndpointEdge | null; + /** The `RepositoryRequiredCheck` that was created by this mutation. */ + repositoryRequiredCheck?: RepositoryRequiredCheck | null; + repositoryRequiredCheckEdge?: RepositoryRequiredCheckEdge | null; } -export type CreatePlatformWebhookEndpointPayloadSelect = { +export type CreateRepositoryRequiredCheckPayloadSelect = { clientMutationId?: boolean; - platformWebhookEndpoint?: { - select: PlatformWebhookEndpointSelect; + repositoryRequiredCheck?: { + select: RepositoryRequiredCheckSelect; }; - platformWebhookEndpointEdge?: { - select: PlatformWebhookEndpointEdgeSelect; + repositoryRequiredCheckEdge?: { + select: RepositoryRequiredCheckEdgeSelect; }; }; -export interface UpdatePlatformWebhookEndpointPayload { +export interface UpdateRepositoryRequiredCheckPayload { clientMutationId?: string | null; - /** The `PlatformWebhookEndpoint` that was updated by this mutation. */ - platformWebhookEndpoint?: PlatformWebhookEndpoint | null; - platformWebhookEndpointEdge?: PlatformWebhookEndpointEdge | null; + /** The `RepositoryRequiredCheck` that was updated by this mutation. */ + repositoryRequiredCheck?: RepositoryRequiredCheck | null; + repositoryRequiredCheckEdge?: RepositoryRequiredCheckEdge | null; } -export type UpdatePlatformWebhookEndpointPayloadSelect = { +export type UpdateRepositoryRequiredCheckPayloadSelect = { clientMutationId?: boolean; - platformWebhookEndpoint?: { - select: PlatformWebhookEndpointSelect; + repositoryRequiredCheck?: { + select: RepositoryRequiredCheckSelect; }; - platformWebhookEndpointEdge?: { - select: PlatformWebhookEndpointEdgeSelect; + repositoryRequiredCheckEdge?: { + select: RepositoryRequiredCheckEdgeSelect; }; }; -export interface DeletePlatformWebhookEndpointPayload { +export interface DeleteRepositoryRequiredCheckPayload { clientMutationId?: string | null; - /** The `PlatformWebhookEndpoint` that was deleted by this mutation. */ - platformWebhookEndpoint?: PlatformWebhookEndpoint | null; - platformWebhookEndpointEdge?: PlatformWebhookEndpointEdge | null; + /** The `RepositoryRequiredCheck` that was deleted by this mutation. */ + repositoryRequiredCheck?: RepositoryRequiredCheck | null; + repositoryRequiredCheckEdge?: RepositoryRequiredCheckEdge | null; } -export type DeletePlatformWebhookEndpointPayloadSelect = { +export type DeleteRepositoryRequiredCheckPayloadSelect = { clientMutationId?: boolean; - platformWebhookEndpoint?: { - select: PlatformWebhookEndpointSelect; + repositoryRequiredCheck?: { + select: RepositoryRequiredCheckSelect; }; - platformWebhookEndpointEdge?: { - select: PlatformWebhookEndpointEdgeSelect; + repositoryRequiredCheckEdge?: { + select: RepositoryRequiredCheckEdgeSelect; }; }; -export interface CreatePlatformWebhookEventPayload { +export interface CreateRepositoryWorkflowPayload { clientMutationId?: string | null; - /** The `PlatformWebhookEvent` that was created by this mutation. */ - platformWebhookEvent?: PlatformWebhookEvent | null; - platformWebhookEventEdge?: PlatformWebhookEventEdge | null; + /** The `RepositoryWorkflow` that was created by this mutation. */ + repositoryWorkflow?: RepositoryWorkflow | null; + repositoryWorkflowEdge?: RepositoryWorkflowEdge | null; } -export type CreatePlatformWebhookEventPayloadSelect = { +export type CreateRepositoryWorkflowPayloadSelect = { clientMutationId?: boolean; - platformWebhookEvent?: { - select: PlatformWebhookEventSelect; + repositoryWorkflow?: { + select: RepositoryWorkflowSelect; }; - platformWebhookEventEdge?: { - select: PlatformWebhookEventEdgeSelect; + repositoryWorkflowEdge?: { + select: RepositoryWorkflowEdgeSelect; }; }; -export interface UpdatePlatformWebhookEventPayload { +export interface UpdateRepositoryWorkflowPayload { clientMutationId?: string | null; - /** The `PlatformWebhookEvent` that was updated by this mutation. */ - platformWebhookEvent?: PlatformWebhookEvent | null; - platformWebhookEventEdge?: PlatformWebhookEventEdge | null; + /** The `RepositoryWorkflow` that was updated by this mutation. */ + repositoryWorkflow?: RepositoryWorkflow | null; + repositoryWorkflowEdge?: RepositoryWorkflowEdge | null; } -export type UpdatePlatformWebhookEventPayloadSelect = { +export type UpdateRepositoryWorkflowPayloadSelect = { clientMutationId?: boolean; - platformWebhookEvent?: { - select: PlatformWebhookEventSelect; + repositoryWorkflow?: { + select: RepositoryWorkflowSelect; }; - platformWebhookEventEdge?: { - select: PlatformWebhookEventEdgeSelect; + repositoryWorkflowEdge?: { + select: RepositoryWorkflowEdgeSelect; }; }; -export interface DeletePlatformWebhookEventPayload { +export interface DeleteRepositoryWorkflowPayload { clientMutationId?: string | null; - /** The `PlatformWebhookEvent` that was deleted by this mutation. */ - platformWebhookEvent?: PlatformWebhookEvent | null; - platformWebhookEventEdge?: PlatformWebhookEventEdge | null; + /** The `RepositoryWorkflow` that was deleted by this mutation. */ + repositoryWorkflow?: RepositoryWorkflow | null; + repositoryWorkflowEdge?: RepositoryWorkflowEdge | null; } -export type DeletePlatformWebhookEventPayloadSelect = { +export type DeleteRepositoryWorkflowPayloadSelect = { clientMutationId?: boolean; - platformWebhookEvent?: { - select: PlatformWebhookEventSelect; + repositoryWorkflow?: { + select: RepositoryWorkflowSelect; }; - platformWebhookEventEdge?: { - select: PlatformWebhookEventEdgeSelect; + repositoryWorkflowEdge?: { + select: RepositoryWorkflowEdgeSelect; }; }; export interface CreateResourcePayload { @@ -17279,67 +33349,223 @@ export type UpdateWebhookEventPayloadSelect = { select: WebhookEventEdgeSelect; }; }; -export interface DeleteWebhookEventPayload { - clientMutationId?: string | null; - /** The `WebhookEvent` that was deleted by this mutation. */ - webhookEvent?: WebhookEvent | null; - webhookEventEdge?: WebhookEventEdge | null; +export interface DeleteWebhookEventPayload { + clientMutationId?: string | null; + /** The `WebhookEvent` that was deleted by this mutation. */ + webhookEvent?: WebhookEvent | null; + webhookEventEdge?: WebhookEventEdge | null; +} +export type DeleteWebhookEventPayloadSelect = { + clientMutationId?: boolean; + webhookEvent?: { + select: WebhookEventSelect; + }; + webhookEventEdge?: { + select: WebhookEventEdgeSelect; + }; +}; +/** A `DatabaseGraphCommit` edge in the connection. */ +export interface DatabaseGraphCommitEdge { + cursor?: string | null; + /** The `DatabaseGraphCommit` at the end of the edge. */ + node?: DatabaseGraphCommit | null; +} +export type DatabaseGraphCommitEdgeSelect = { + cursor?: boolean; + node?: { + select: DatabaseGraphCommitSelect; + }; +}; +/** A `FunctionInvocation` edge in the connection. */ +export interface FunctionInvocationEdge { + cursor?: string | null; + /** The `FunctionInvocation` at the end of the edge. */ + node?: FunctionInvocation | null; +} +export type FunctionInvocationEdgeSelect = { + cursor?: boolean; + node?: { + 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 `PlatformFunctionInvocation` edge in the connection. */ +export interface PlatformFunctionInvocationEdge { + cursor?: string | null; + /** The `PlatformFunctionInvocation` at the end of the edge. */ + node?: PlatformFunctionInvocation | null; +} +export type PlatformFunctionInvocationEdgeSelect = { + cursor?: boolean; + node?: { + 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 `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 `Build` edge in the connection. */ +export interface BuildEdge { + cursor?: string | null; + /** The `Build` at the end of the edge. */ + node?: Build | null; +} +export type BuildEdgeSelect = { + cursor?: boolean; + node?: { + select: BuildSelect; + }; +}; +/** A `BuildStep` edge in the connection. */ +export interface BuildStepEdge { + cursor?: string | null; + /** The `BuildStep` at the end of the edge. */ + node?: BuildStep | null; +} +export type BuildStepEdgeSelect = { + cursor?: boolean; + node?: { + select: BuildStepSelect; + }; +}; +/** A `BuilderBinding` edge in the connection. */ +export interface BuilderBindingEdge { + cursor?: string | null; + /** The `BuilderBinding` at the end of the edge. */ + node?: BuilderBinding | null; +} +export type BuilderBindingEdgeSelect = { + cursor?: boolean; + node?: { + select: BuilderBindingSelect; + }; +}; +/** 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 `DatabaseFunctionGraph` edge in the connection. */ +export interface DatabaseFunctionGraphEdge { + cursor?: string | null; + /** The `DatabaseFunctionGraph` at the end of the edge. */ + node?: DatabaseFunctionGraph | null; +} +export type DatabaseFunctionGraphEdgeSelect = { + cursor?: boolean; + node?: { + select: DatabaseFunctionGraphSelect; + }; +}; +/** A `DatabaseFunctionGraphExecution` edge in the connection. */ +export interface DatabaseFunctionGraphExecutionEdge { + cursor?: string | null; + /** The `DatabaseFunctionGraphExecution` at the end of the edge. */ + node?: DatabaseFunctionGraphExecution | null; } -export type DeleteWebhookEventPayloadSelect = { - clientMutationId?: boolean; - webhookEvent?: { - select: WebhookEventSelect; +export type DatabaseFunctionGraphExecutionEdgeSelect = { + cursor?: boolean; + node?: { + select: DatabaseFunctionGraphExecutionSelect; }; - webhookEventEdge?: { - select: WebhookEventEdgeSelect; +}; +/** A `DatabaseFunctionGraphExecutionNodeState` edge in the connection. */ +export interface DatabaseFunctionGraphExecutionNodeStateEdge { + cursor?: string | null; + /** The `DatabaseFunctionGraphExecutionNodeState` at the end of the edge. */ + node?: DatabaseFunctionGraphExecutionNodeState | null; +} +export type DatabaseFunctionGraphExecutionNodeStateEdgeSelect = { + cursor?: boolean; + node?: { + select: DatabaseFunctionGraphExecutionNodeStateSelect; }; }; -/** A `InfraCommit` edge in the connection. */ -export interface InfraCommitEdge { +/** A `DatabaseFunctionGraphExecutionOutput` edge in the connection. */ +export interface DatabaseFunctionGraphExecutionOutputEdge { cursor?: string | null; - /** The `InfraCommit` at the end of the edge. */ - node?: InfraCommit | null; + /** The `DatabaseFunctionGraphExecutionOutput` at the end of the edge. */ + node?: DatabaseFunctionGraphExecutionOutput | null; } -export type InfraCommitEdgeSelect = { +export type DatabaseFunctionGraphExecutionOutputEdgeSelect = { cursor?: boolean; node?: { - select: InfraCommitSelect; + select: DatabaseFunctionGraphExecutionOutputSelect; }; }; -/** A `PlatformInfraCommit` edge in the connection. */ -export interface PlatformInfraCommitEdge { +/** A `DatabaseGraphObject` edge in the connection. */ +export interface DatabaseGraphObjectEdge { cursor?: string | null; - /** The `PlatformInfraCommit` at the end of the edge. */ - node?: PlatformInfraCommit | null; + /** The `DatabaseGraphObject` at the end of the edge. */ + node?: DatabaseGraphObject | null; } -export type PlatformInfraCommitEdgeSelect = { +export type DatabaseGraphObjectEdgeSelect = { cursor?: boolean; node?: { - select: PlatformInfraCommitSelect; + select: DatabaseGraphObjectSelect; }; }; -/** A `FunctionGraphCommit` edge in the connection. */ -export interface FunctionGraphCommitEdge { +/** A `DatabaseGraphRef` edge in the connection. */ +export interface DatabaseGraphRefEdge { cursor?: string | null; - /** The `FunctionGraphCommit` at the end of the edge. */ - node?: FunctionGraphCommit | null; + /** The `DatabaseGraphRef` at the end of the edge. */ + node?: DatabaseGraphRef | null; } -export type FunctionGraphCommitEdgeSelect = { +export type DatabaseGraphRefEdgeSelect = { cursor?: boolean; node?: { - select: FunctionGraphCommitSelect; + select: DatabaseGraphRefSelect; }; }; -/** A `ContentPreset` edge in the connection. */ -export interface ContentPresetEdge { +/** A `DatabaseGraphStore` edge in the connection. */ +export interface DatabaseGraphStoreEdge { cursor?: string | null; - /** The `ContentPreset` at the end of the edge. */ - node?: ContentPreset | null; + /** The `DatabaseGraphStore` at the end of the edge. */ + node?: DatabaseGraphStore | null; } -export type ContentPresetEdgeSelect = { +export type DatabaseGraphStoreEdgeSelect = { cursor?: boolean; node?: { - select: ContentPresetSelect; + select: DatabaseGraphStoreSelect; }; }; /** A `DbPreset` edge in the connection. */ @@ -17522,16 +33748,28 @@ export type FunctionInvocationAttemptEdgeSelect = { select: FunctionInvocationAttemptSelect; }; }; -/** A `FunctionInvocation` edge in the connection. */ -export interface FunctionInvocationEdge { +/** A `Image` edge in the connection. */ +export interface ImageEdge { cursor?: string | null; - /** The `FunctionInvocation` at the end of the edge. */ - node?: FunctionInvocation | null; + /** The `Image` at the end of the edge. */ + node?: Image | null; } -export type FunctionInvocationEdgeSelect = { +export type ImageEdgeSelect = { cursor?: boolean; node?: { - select: FunctionInvocationSelect; + select: ImageSelect; + }; +}; +/** A `ImageGrant` edge in the connection. */ +export interface ImageGrantEdge { + cursor?: string | null; + /** The `ImageGrant` at the end of the edge. */ + node?: ImageGrant | null; +} +export type ImageGrantEdgeSelect = { + cursor?: boolean; + node?: { + select: ImageGrantSelect; }; }; /** A `InfraObject` edge in the connection. */ @@ -17606,6 +33844,42 @@ export type NamespaceEventEdgeSelect = { select: NamespaceEventSelect; }; }; +/** A `PlatformBuild` edge in the connection. */ +export interface PlatformBuildEdge { + cursor?: string | null; + /** The `PlatformBuild` at the end of the edge. */ + node?: PlatformBuild | null; +} +export type PlatformBuildEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformBuildSelect; + }; +}; +/** A `PlatformBuildStep` edge in the connection. */ +export interface PlatformBuildStepEdge { + cursor?: string | null; + /** The `PlatformBuildStep` at the end of the edge. */ + node?: PlatformBuildStep | null; +} +export type PlatformBuildStepEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformBuildStepSelect; + }; +}; +/** A `PlatformBuilderBinding` edge in the connection. */ +export interface PlatformBuilderBindingEdge { + cursor?: string | null; + /** The `PlatformBuilderBinding` at the end of the edge. */ + node?: PlatformBuilderBinding | null; +} +export type PlatformBuilderBindingEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformBuilderBindingSelect; + }; +}; /** A `PlatformFunctionApiBinding` edge in the connection. */ export interface PlatformFunctionApiBindingEdge { cursor?: string | null; @@ -17690,16 +33964,28 @@ export type PlatformFunctionInvocationAttemptEdgeSelect = { select: PlatformFunctionInvocationAttemptSelect; }; }; -/** A `PlatformFunctionInvocation` edge in the connection. */ -export interface PlatformFunctionInvocationEdge { +/** A `PlatformImage` edge in the connection. */ +export interface PlatformImageEdge { cursor?: string | null; - /** The `PlatformFunctionInvocation` at the end of the edge. */ - node?: PlatformFunctionInvocation | null; + /** The `PlatformImage` at the end of the edge. */ + node?: PlatformImage | null; } -export type PlatformFunctionInvocationEdgeSelect = { +export type PlatformImageEdgeSelect = { cursor?: boolean; node?: { - select: PlatformFunctionInvocationSelect; + select: PlatformImageSelect; + }; +}; +/** A `PlatformImageGrant` edge in the connection. */ +export interface PlatformImageGrantEdge { + cursor?: string | null; + /** The `PlatformImageGrant` at the end of the edge. */ + node?: PlatformImageGrant | null; +} +export type PlatformImageGrantEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformImageGrantSelect; }; }; /** A `PlatformInfraObject` edge in the connection. */ @@ -17738,6 +34024,30 @@ export type PlatformInfraStoreEdgeSelect = { select: PlatformInfraStoreSelect; }; }; +/** A `PlatformK8sResourceKind` edge in the connection. */ +export interface PlatformK8sResourceKindEdge { + cursor?: string | null; + /** The `PlatformK8sResourceKind` at the end of the edge. */ + node?: PlatformK8sResourceKind | null; +} +export type PlatformK8sResourceKindEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformK8sResourceKindSelect; + }; +}; +/** A `PlatformK8sSpecRule` edge in the connection. */ +export interface PlatformK8sSpecRuleEdge { + cursor?: string | null; + /** The `PlatformK8sSpecRule` at the end of the edge. */ + node?: PlatformK8sSpecRule | null; +} +export type PlatformK8sSpecRuleEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformK8sSpecRuleSelect; + }; +}; /** A `PlatformNamespace` edge in the connection. */ export interface PlatformNamespaceEdge { cursor?: string | null; @@ -17762,6 +34072,162 @@ export type PlatformNamespaceEventEdgeSelect = { select: PlatformNamespaceEventSelect; }; }; +/** A `PlatformProposalComment` edge in the connection. */ +export interface PlatformProposalCommentEdge { + cursor?: string | null; + /** The `PlatformProposalComment` at the end of the edge. */ + node?: PlatformProposalComment | null; +} +export type PlatformProposalCommentEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformProposalCommentSelect; + }; +}; +/** A `PlatformProposal` edge in the connection. */ +export interface PlatformProposalEdge { + cursor?: string | null; + /** The `PlatformProposal` at the end of the edge. */ + node?: PlatformProposal | null; +} +export type PlatformProposalEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformProposalSelect; + }; +}; +/** A `PlatformProposalFileView` edge in the connection. */ +export interface PlatformProposalFileViewEdge { + cursor?: string | null; + /** The `PlatformProposalFileView` at the end of the edge. */ + node?: PlatformProposalFileView | null; +} +export type PlatformProposalFileViewEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformProposalFileViewSelect; + }; +}; +/** A `PlatformProposalReaction` edge in the connection. */ +export interface PlatformProposalReactionEdge { + cursor?: string | null; + /** The `PlatformProposalReaction` at the end of the edge. */ + node?: PlatformProposalReaction | null; +} +export type PlatformProposalReactionEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformProposalReactionSelect; + }; +}; +/** A `PlatformProposalReview` edge in the connection. */ +export interface PlatformProposalReviewEdge { + cursor?: string | null; + /** The `PlatformProposalReview` at the end of the edge. */ + node?: PlatformProposalReview | null; +} +export type PlatformProposalReviewEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformProposalReviewSelect; + }; +}; +/** A `PlatformProposalsChunk` edge in the connection. */ +export interface PlatformProposalsChunkEdge { + cursor?: string | null; + /** The `PlatformProposalsChunk` at the end of the edge. */ + node?: PlatformProposalsChunk | null; +} +export type PlatformProposalsChunkEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformProposalsChunkSelect; + }; +}; +/** A `PlatformRegistryBinding` edge in the connection. */ +export interface PlatformRegistryBindingEdge { + cursor?: string | null; + /** The `PlatformRegistryBinding` at the end of the edge. */ + node?: PlatformRegistryBinding | null; +} +export type PlatformRegistryBindingEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformRegistryBindingSelect; + }; +}; +/** A `PlatformRegistry` edge in the connection. */ +export interface PlatformRegistryEdge { + cursor?: string | null; + /** The `PlatformRegistry` at the end of the edge. */ + node?: PlatformRegistry | null; +} +export type PlatformRegistryEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformRegistrySelect; + }; +}; +/** A `PlatformRegistryGrant` edge in the connection. */ +export interface PlatformRegistryGrantEdge { + cursor?: string | null; + /** The `PlatformRegistryGrant` at the end of the edge. */ + node?: PlatformRegistryGrant | null; +} +export type PlatformRegistryGrantEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformRegistryGrantSelect; + }; +}; +/** A `PlatformRepository` edge in the connection. */ +export interface PlatformRepositoryEdge { + cursor?: string | null; + /** The `PlatformRepository` at the end of the edge. */ + node?: PlatformRepository | null; +} +export type PlatformRepositoryEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformRepositorySelect; + }; +}; +/** A `PlatformRepositoryEvent` edge in the connection. */ +export interface PlatformRepositoryEventEdge { + cursor?: string | null; + /** The `PlatformRepositoryEvent` at the end of the edge. */ + node?: PlatformRepositoryEvent | null; +} +export type PlatformRepositoryEventEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformRepositoryEventSelect; + }; +}; +/** A `PlatformRepositoryRequiredCheck` edge in the connection. */ +export interface PlatformRepositoryRequiredCheckEdge { + cursor?: string | null; + /** The `PlatformRepositoryRequiredCheck` at the end of the edge. */ + node?: PlatformRepositoryRequiredCheck | null; +} +export type PlatformRepositoryRequiredCheckEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformRepositoryRequiredCheckSelect; + }; +}; +/** A `PlatformRepositoryWorkflow` edge in the connection. */ +export interface PlatformRepositoryWorkflowEdge { + cursor?: string | null; + /** The `PlatformRepositoryWorkflow` at the end of the edge. */ + node?: PlatformRepositoryWorkflow | null; +} +export type PlatformRepositoryWorkflowEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformRepositoryWorkflowSelect; + }; +}; /** A `PlatformResource` edge in the connection. */ export interface PlatformResourceEdge { cursor?: string | null; @@ -17870,6 +34336,162 @@ export type PlatformWebhookEventEdgeSelect = { select: PlatformWebhookEventSelect; }; }; +/** A `ProposalComment` edge in the connection. */ +export interface ProposalCommentEdge { + cursor?: string | null; + /** The `ProposalComment` at the end of the edge. */ + node?: ProposalComment | null; +} +export type ProposalCommentEdgeSelect = { + cursor?: boolean; + node?: { + select: ProposalCommentSelect; + }; +}; +/** A `Proposal` edge in the connection. */ +export interface ProposalEdge { + cursor?: string | null; + /** The `Proposal` at the end of the edge. */ + node?: Proposal | null; +} +export type ProposalEdgeSelect = { + cursor?: boolean; + node?: { + select: ProposalSelect; + }; +}; +/** A `ProposalFileView` edge in the connection. */ +export interface ProposalFileViewEdge { + cursor?: string | null; + /** The `ProposalFileView` at the end of the edge. */ + node?: ProposalFileView | null; +} +export type ProposalFileViewEdgeSelect = { + cursor?: boolean; + node?: { + select: ProposalFileViewSelect; + }; +}; +/** A `ProposalReaction` edge in the connection. */ +export interface ProposalReactionEdge { + cursor?: string | null; + /** The `ProposalReaction` at the end of the edge. */ + node?: ProposalReaction | null; +} +export type ProposalReactionEdgeSelect = { + cursor?: boolean; + node?: { + select: ProposalReactionSelect; + }; +}; +/** A `ProposalReview` edge in the connection. */ +export interface ProposalReviewEdge { + cursor?: string | null; + /** The `ProposalReview` at the end of the edge. */ + node?: ProposalReview | null; +} +export type ProposalReviewEdgeSelect = { + cursor?: boolean; + node?: { + select: ProposalReviewSelect; + }; +}; +/** A `ProposalsChunk` edge in the connection. */ +export interface ProposalsChunkEdge { + cursor?: string | null; + /** The `ProposalsChunk` at the end of the edge. */ + node?: ProposalsChunk | null; +} +export type ProposalsChunkEdgeSelect = { + cursor?: boolean; + node?: { + select: ProposalsChunkSelect; + }; +}; +/** A `RegistryBinding` edge in the connection. */ +export interface RegistryBindingEdge { + cursor?: string | null; + /** The `RegistryBinding` at the end of the edge. */ + node?: RegistryBinding | null; +} +export type RegistryBindingEdgeSelect = { + cursor?: boolean; + node?: { + select: RegistryBindingSelect; + }; +}; +/** A `Registry` edge in the connection. */ +export interface RegistryEdge { + cursor?: string | null; + /** The `Registry` at the end of the edge. */ + node?: Registry | null; +} +export type RegistryEdgeSelect = { + cursor?: boolean; + node?: { + select: RegistrySelect; + }; +}; +/** A `RegistryGrant` edge in the connection. */ +export interface RegistryGrantEdge { + cursor?: string | null; + /** The `RegistryGrant` at the end of the edge. */ + node?: RegistryGrant | null; +} +export type RegistryGrantEdgeSelect = { + cursor?: boolean; + node?: { + select: RegistryGrantSelect; + }; +}; +/** A `Repository` edge in the connection. */ +export interface RepositoryEdge { + cursor?: string | null; + /** The `Repository` at the end of the edge. */ + node?: Repository | null; +} +export type RepositoryEdgeSelect = { + cursor?: boolean; + node?: { + select: RepositorySelect; + }; +}; +/** A `RepositoryEvent` edge in the connection. */ +export interface RepositoryEventEdge { + cursor?: string | null; + /** The `RepositoryEvent` at the end of the edge. */ + node?: RepositoryEvent | null; +} +export type RepositoryEventEdgeSelect = { + cursor?: boolean; + node?: { + select: RepositoryEventSelect; + }; +}; +/** A `RepositoryRequiredCheck` edge in the connection. */ +export interface RepositoryRequiredCheckEdge { + cursor?: string | null; + /** The `RepositoryRequiredCheck` at the end of the edge. */ + node?: RepositoryRequiredCheck | null; +} +export type RepositoryRequiredCheckEdgeSelect = { + cursor?: boolean; + node?: { + select: RepositoryRequiredCheckSelect; + }; +}; +/** A `RepositoryWorkflow` edge in the connection. */ +export interface RepositoryWorkflowEdge { + cursor?: string | null; + /** The `RepositoryWorkflow` at the end of the edge. */ + node?: RepositoryWorkflow | null; +} +export type RepositoryWorkflowEdgeSelect = { + cursor?: boolean; + node?: { + select: RepositoryWorkflowSelect; + }; +}; /** A `Resource` edge in the connection. */ export interface ResourceEdge { cursor?: string | null; diff --git a/sdk/constructive-react/src/compute/orm/models/build.ts b/sdk/constructive-react/src/compute/orm/models/build.ts new file mode 100644 index 0000000000..0fd4186ca4 --- /dev/null +++ b/sdk/constructive-react/src/compute/orm/models/build.ts @@ -0,0 +1,245 @@ +/** + * Build 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 { + Build, + BuildWithRelations, + BuildSelect, + BuildFilter, + BuildOrderBy, + CreateBuildInput, + UpdateBuildInput, + BuildPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class BuildModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + builds: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'Build', + 'builds', + 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, + }, + 'BuildFilter', + 'BuildOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Build', + fieldName: 'builds', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + build: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'Build', + 'builds', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'BuildFilter', + 'BuildOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Build', + fieldName: 'build', + document, + variables, + transform: (data: { + builds?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + build: data.builds?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + build: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'Build', + 'builds', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'BuildFilter', + 'BuildOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Build', + fieldName: 'build', + document, + variables, + transform: (data: { + builds?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + build: data.builds?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createBuild: { + build: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'Build', + 'createBuild', + 'build', + args.select, + args.data, + 'CreateBuildInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Build', + fieldName: 'createBuild', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + BuildPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateBuild: { + build: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'Build', + 'updateBuild', + 'build', + args.select, + args.where.id, + args.data, + 'UpdateBuildInput', + 'id', + 'buildPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Build', + fieldName: 'updateBuild', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteBuild: { + build: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'Build', + 'deleteBuild', + 'build', + { + id: args.where.id, + }, + 'DeleteBuildInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Build', + fieldName: 'deleteBuild', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/compute/orm/models/buildStep.ts b/sdk/constructive-react/src/compute/orm/models/buildStep.ts new file mode 100644 index 0000000000..9f2d7568e9 --- /dev/null +++ b/sdk/constructive-react/src/compute/orm/models/buildStep.ts @@ -0,0 +1,250 @@ +/** + * BuildStep 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 { + BuildStep, + BuildStepWithRelations, + BuildStepSelect, + BuildStepFilter, + BuildStepOrderBy, + CreateBuildStepInput, + UpdateBuildStepInput, + BuildStepPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class BuildStepModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + buildSteps: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'BuildStep', + 'buildSteps', + 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, + }, + 'BuildStepFilter', + 'BuildStepOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'BuildStep', + fieldName: 'buildSteps', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + buildStep: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'BuildStep', + 'buildSteps', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'BuildStepFilter', + 'BuildStepOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'BuildStep', + fieldName: 'buildStep', + document, + variables, + transform: (data: { + buildSteps?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + buildStep: data.buildSteps?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + buildStep: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'BuildStep', + 'buildSteps', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'BuildStepFilter', + 'BuildStepOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'BuildStep', + fieldName: 'buildStep', + document, + variables, + transform: (data: { + buildSteps?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + buildStep: data.buildSteps?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createBuildStep: { + buildStep: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'BuildStep', + 'createBuildStep', + 'buildStep', + args.select, + args.data, + 'CreateBuildStepInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'BuildStep', + fieldName: 'createBuildStep', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + recordedAt: string; + }, + BuildStepPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateBuildStep: { + buildStep: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'BuildStep', + 'updateBuildStep', + 'buildStep', + args.select, + args.where.id, + args.data, + 'UpdateBuildStepInput', + 'id', + 'buildStepPatch', + connectionFieldsMap, + { + recordedAt: args.where.recordedAt, + } + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'BuildStep', + fieldName: 'updateBuildStep', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + recordedAt: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteBuildStep: { + buildStep: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'BuildStep', + 'deleteBuildStep', + 'buildStep', + { + id: args.where.id, + recordedAt: args.where.recordedAt, + }, + 'DeleteBuildStepInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'BuildStep', + fieldName: 'deleteBuildStep', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/compute/orm/models/builderBinding.ts b/sdk/constructive-react/src/compute/orm/models/builderBinding.ts new file mode 100644 index 0000000000..0d5d7843e3 --- /dev/null +++ b/sdk/constructive-react/src/compute/orm/models/builderBinding.ts @@ -0,0 +1,245 @@ +/** + * BuilderBinding 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 { + BuilderBinding, + BuilderBindingWithRelations, + BuilderBindingSelect, + BuilderBindingFilter, + BuilderBindingOrderBy, + CreateBuilderBindingInput, + UpdateBuilderBindingInput, + BuilderBindingPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class BuilderBindingModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + builderBindings: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'BuilderBinding', + 'builderBindings', + 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, + }, + 'BuilderBindingFilter', + 'BuilderBindingOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'BuilderBinding', + fieldName: 'builderBindings', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + builderBinding: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'BuilderBinding', + 'builderBindings', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'BuilderBindingFilter', + 'BuilderBindingOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'BuilderBinding', + fieldName: 'builderBinding', + document, + variables, + transform: (data: { + builderBindings?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + builderBinding: data.builderBindings?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + builderBinding: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'BuilderBinding', + 'builderBindings', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'BuilderBindingFilter', + 'BuilderBindingOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'BuilderBinding', + fieldName: 'builderBinding', + document, + variables, + transform: (data: { + builderBindings?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + builderBinding: data.builderBindings?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createBuilderBinding: { + builderBinding: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'BuilderBinding', + 'createBuilderBinding', + 'builderBinding', + args.select, + args.data, + 'CreateBuilderBindingInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'BuilderBinding', + fieldName: 'createBuilderBinding', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + BuilderBindingPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateBuilderBinding: { + builderBinding: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'BuilderBinding', + 'updateBuilderBinding', + 'builderBinding', + args.select, + args.where.id, + args.data, + 'UpdateBuilderBindingInput', + 'id', + 'builderBindingPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'BuilderBinding', + fieldName: 'updateBuilderBinding', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteBuilderBinding: { + builderBinding: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'BuilderBinding', + 'deleteBuilderBinding', + 'builderBinding', + { + id: args.where.id, + }, + 'DeleteBuilderBindingInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'BuilderBinding', + fieldName: 'deleteBuilderBinding', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/compute/orm/models/databaseFunctionGraph.ts b/sdk/constructive-react/src/compute/orm/models/databaseFunctionGraph.ts new file mode 100644 index 0000000000..aa52534b19 --- /dev/null +++ b/sdk/constructive-react/src/compute/orm/models/databaseFunctionGraph.ts @@ -0,0 +1,247 @@ +/** + * DatabaseFunctionGraph 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 { + DatabaseFunctionGraph, + DatabaseFunctionGraphWithRelations, + DatabaseFunctionGraphSelect, + DatabaseFunctionGraphFilter, + DatabaseFunctionGraphOrderBy, + CreateDatabaseFunctionGraphInput, + UpdateDatabaseFunctionGraphInput, + DatabaseFunctionGraphPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class DatabaseFunctionGraphModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + databaseFunctionGraphs: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'DatabaseFunctionGraph', + 'databaseFunctionGraphs', + 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, + }, + 'DatabaseFunctionGraphFilter', + 'DatabaseFunctionGraphOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DatabaseFunctionGraph', + fieldName: 'databaseFunctionGraphs', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + databaseFunctionGraph: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'DatabaseFunctionGraph', + 'databaseFunctionGraphs', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'DatabaseFunctionGraphFilter', + 'DatabaseFunctionGraphOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DatabaseFunctionGraph', + fieldName: 'databaseFunctionGraph', + document, + variables, + transform: (data: { + databaseFunctionGraphs?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + databaseFunctionGraph: data.databaseFunctionGraphs?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + databaseFunctionGraph: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'DatabaseFunctionGraph', + 'databaseFunctionGraphs', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'DatabaseFunctionGraphFilter', + 'DatabaseFunctionGraphOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DatabaseFunctionGraph', + fieldName: 'databaseFunctionGraph', + document, + variables, + transform: (data: { + databaseFunctionGraphs?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + databaseFunctionGraph: data.databaseFunctionGraphs?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createDatabaseFunctionGraph: { + databaseFunctionGraph: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'DatabaseFunctionGraph', + 'createDatabaseFunctionGraph', + 'databaseFunctionGraph', + args.select, + args.data, + 'CreateDatabaseFunctionGraphInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DatabaseFunctionGraph', + fieldName: 'createDatabaseFunctionGraph', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + DatabaseFunctionGraphPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateDatabaseFunctionGraph: { + databaseFunctionGraph: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'DatabaseFunctionGraph', + 'updateDatabaseFunctionGraph', + 'databaseFunctionGraph', + args.select, + args.where.id, + args.data, + 'UpdateDatabaseFunctionGraphInput', + 'id', + 'databaseFunctionGraphPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DatabaseFunctionGraph', + fieldName: 'updateDatabaseFunctionGraph', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteDatabaseFunctionGraph: { + databaseFunctionGraph: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'DatabaseFunctionGraph', + 'deleteDatabaseFunctionGraph', + 'databaseFunctionGraph', + { + id: args.where.id, + }, + 'DeleteDatabaseFunctionGraphInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DatabaseFunctionGraph', + fieldName: 'deleteDatabaseFunctionGraph', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/compute/orm/models/databaseFunctionGraphExecution.ts b/sdk/constructive-react/src/compute/orm/models/databaseFunctionGraphExecution.ts new file mode 100644 index 0000000000..3f8c7b10ba --- /dev/null +++ b/sdk/constructive-react/src/compute/orm/models/databaseFunctionGraphExecution.ts @@ -0,0 +1,278 @@ +/** + * DatabaseFunctionGraphExecution 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 { + DatabaseFunctionGraphExecution, + DatabaseFunctionGraphExecutionWithRelations, + DatabaseFunctionGraphExecutionSelect, + DatabaseFunctionGraphExecutionFilter, + DatabaseFunctionGraphExecutionOrderBy, + CreateDatabaseFunctionGraphExecutionInput, + UpdateDatabaseFunctionGraphExecutionInput, + DatabaseFunctionGraphExecutionPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class DatabaseFunctionGraphExecutionModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs< + S, + DatabaseFunctionGraphExecutionFilter, + DatabaseFunctionGraphExecutionOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + databaseFunctionGraphExecutions: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'DatabaseFunctionGraphExecution', + 'databaseFunctionGraphExecutions', + 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, + }, + 'DatabaseFunctionGraphExecutionFilter', + 'DatabaseFunctionGraphExecutionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DatabaseFunctionGraphExecution', + fieldName: 'databaseFunctionGraphExecutions', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs< + S, + DatabaseFunctionGraphExecutionFilter, + DatabaseFunctionGraphExecutionOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + databaseFunctionGraphExecution: InferSelectResult< + DatabaseFunctionGraphExecutionWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'DatabaseFunctionGraphExecution', + 'databaseFunctionGraphExecutions', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'DatabaseFunctionGraphExecutionFilter', + 'DatabaseFunctionGraphExecutionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DatabaseFunctionGraphExecution', + fieldName: 'databaseFunctionGraphExecution', + document, + variables, + transform: (data: { + databaseFunctionGraphExecutions?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + databaseFunctionGraphExecution: data.databaseFunctionGraphExecutions?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + databaseFunctionGraphExecution: InferSelectResult< + DatabaseFunctionGraphExecutionWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindManyDocument( + 'DatabaseFunctionGraphExecution', + 'databaseFunctionGraphExecutions', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'DatabaseFunctionGraphExecutionFilter', + 'DatabaseFunctionGraphExecutionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DatabaseFunctionGraphExecution', + fieldName: 'databaseFunctionGraphExecution', + document, + variables, + transform: (data: { + databaseFunctionGraphExecutions?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + databaseFunctionGraphExecution: data.databaseFunctionGraphExecutions?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs< + S, + CreateDatabaseFunctionGraphExecutionInput['databaseFunctionGraphExecution'] + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createDatabaseFunctionGraphExecution: { + databaseFunctionGraphExecution: InferSelectResult< + DatabaseFunctionGraphExecutionWithRelations, + S + >; + }; + }> { + const { document, variables } = buildCreateDocument( + 'DatabaseFunctionGraphExecution', + 'createDatabaseFunctionGraphExecution', + 'databaseFunctionGraphExecution', + args.select, + args.data, + 'CreateDatabaseFunctionGraphExecutionInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DatabaseFunctionGraphExecution', + fieldName: 'createDatabaseFunctionGraphExecution', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + startedAt: string; + }, + DatabaseFunctionGraphExecutionPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateDatabaseFunctionGraphExecution: { + databaseFunctionGraphExecution: InferSelectResult< + DatabaseFunctionGraphExecutionWithRelations, + S + >; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'DatabaseFunctionGraphExecution', + 'updateDatabaseFunctionGraphExecution', + 'databaseFunctionGraphExecution', + args.select, + args.where.id, + args.data, + 'UpdateDatabaseFunctionGraphExecutionInput', + 'id', + 'databaseFunctionGraphExecutionPatch', + connectionFieldsMap, + { + startedAt: args.where.startedAt, + } + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DatabaseFunctionGraphExecution', + fieldName: 'updateDatabaseFunctionGraphExecution', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + startedAt: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteDatabaseFunctionGraphExecution: { + databaseFunctionGraphExecution: InferSelectResult< + DatabaseFunctionGraphExecutionWithRelations, + S + >; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'DatabaseFunctionGraphExecution', + 'deleteDatabaseFunctionGraphExecution', + 'databaseFunctionGraphExecution', + { + id: args.where.id, + startedAt: args.where.startedAt, + }, + 'DeleteDatabaseFunctionGraphExecutionInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DatabaseFunctionGraphExecution', + fieldName: 'deleteDatabaseFunctionGraphExecution', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/compute/orm/models/databaseFunctionGraphExecutionNodeState.ts b/sdk/constructive-react/src/compute/orm/models/databaseFunctionGraphExecutionNodeState.ts new file mode 100644 index 0000000000..de639c17ae --- /dev/null +++ b/sdk/constructive-react/src/compute/orm/models/databaseFunctionGraphExecutionNodeState.ts @@ -0,0 +1,280 @@ +/** + * DatabaseFunctionGraphExecutionNodeState 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 { + DatabaseFunctionGraphExecutionNodeState, + DatabaseFunctionGraphExecutionNodeStateWithRelations, + DatabaseFunctionGraphExecutionNodeStateSelect, + DatabaseFunctionGraphExecutionNodeStateFilter, + DatabaseFunctionGraphExecutionNodeStateOrderBy, + CreateDatabaseFunctionGraphExecutionNodeStateInput, + UpdateDatabaseFunctionGraphExecutionNodeStateInput, + DatabaseFunctionGraphExecutionNodeStatePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class DatabaseFunctionGraphExecutionNodeStateModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs< + S, + DatabaseFunctionGraphExecutionNodeStateFilter, + DatabaseFunctionGraphExecutionNodeStateOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + databaseFunctionGraphExecutionNodeStates: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'DatabaseFunctionGraphExecutionNodeState', + 'databaseFunctionGraphExecutionNodeStates', + 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, + }, + 'DatabaseFunctionGraphExecutionNodeStateFilter', + 'DatabaseFunctionGraphExecutionNodeStateOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DatabaseFunctionGraphExecutionNodeState', + fieldName: 'databaseFunctionGraphExecutionNodeStates', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs< + S, + DatabaseFunctionGraphExecutionNodeStateFilter, + DatabaseFunctionGraphExecutionNodeStateOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + databaseFunctionGraphExecutionNodeState: InferSelectResult< + DatabaseFunctionGraphExecutionNodeStateWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'DatabaseFunctionGraphExecutionNodeState', + 'databaseFunctionGraphExecutionNodeStates', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'DatabaseFunctionGraphExecutionNodeStateFilter', + 'DatabaseFunctionGraphExecutionNodeStateOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DatabaseFunctionGraphExecutionNodeState', + fieldName: 'databaseFunctionGraphExecutionNodeState', + document, + variables, + transform: (data: { + databaseFunctionGraphExecutionNodeStates?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + databaseFunctionGraphExecutionNodeState: + data.databaseFunctionGraphExecutionNodeStates?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + databaseFunctionGraphExecutionNodeState: InferSelectResult< + DatabaseFunctionGraphExecutionNodeStateWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindManyDocument( + 'DatabaseFunctionGraphExecutionNodeState', + 'databaseFunctionGraphExecutionNodeStates', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'DatabaseFunctionGraphExecutionNodeStateFilter', + 'DatabaseFunctionGraphExecutionNodeStateOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DatabaseFunctionGraphExecutionNodeState', + fieldName: 'databaseFunctionGraphExecutionNodeState', + document, + variables, + transform: (data: { + databaseFunctionGraphExecutionNodeStates?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + databaseFunctionGraphExecutionNodeState: + data.databaseFunctionGraphExecutionNodeStates?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs< + S, + CreateDatabaseFunctionGraphExecutionNodeStateInput['databaseFunctionGraphExecutionNodeState'] + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createDatabaseFunctionGraphExecutionNodeState: { + databaseFunctionGraphExecutionNodeState: InferSelectResult< + DatabaseFunctionGraphExecutionNodeStateWithRelations, + S + >; + }; + }> { + const { document, variables } = buildCreateDocument( + 'DatabaseFunctionGraphExecutionNodeState', + 'createDatabaseFunctionGraphExecutionNodeState', + 'databaseFunctionGraphExecutionNodeState', + args.select, + args.data, + 'CreateDatabaseFunctionGraphExecutionNodeStateInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DatabaseFunctionGraphExecutionNodeState', + fieldName: 'createDatabaseFunctionGraphExecutionNodeState', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + createdAt: string; + }, + DatabaseFunctionGraphExecutionNodeStatePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateDatabaseFunctionGraphExecutionNodeState: { + databaseFunctionGraphExecutionNodeState: InferSelectResult< + DatabaseFunctionGraphExecutionNodeStateWithRelations, + S + >; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'DatabaseFunctionGraphExecutionNodeState', + 'updateDatabaseFunctionGraphExecutionNodeState', + 'databaseFunctionGraphExecutionNodeState', + args.select, + args.where.id, + args.data, + 'UpdateDatabaseFunctionGraphExecutionNodeStateInput', + 'id', + 'databaseFunctionGraphExecutionNodeStatePatch', + connectionFieldsMap, + { + createdAt: args.where.createdAt, + } + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DatabaseFunctionGraphExecutionNodeState', + fieldName: 'updateDatabaseFunctionGraphExecutionNodeState', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + createdAt: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteDatabaseFunctionGraphExecutionNodeState: { + databaseFunctionGraphExecutionNodeState: InferSelectResult< + DatabaseFunctionGraphExecutionNodeStateWithRelations, + S + >; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'DatabaseFunctionGraphExecutionNodeState', + 'deleteDatabaseFunctionGraphExecutionNodeState', + 'databaseFunctionGraphExecutionNodeState', + { + id: args.where.id, + createdAt: args.where.createdAt, + }, + 'DeleteDatabaseFunctionGraphExecutionNodeStateInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DatabaseFunctionGraphExecutionNodeState', + fieldName: 'deleteDatabaseFunctionGraphExecutionNodeState', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/compute/orm/models/databaseFunctionGraphExecutionOutput.ts b/sdk/constructive-react/src/compute/orm/models/databaseFunctionGraphExecutionOutput.ts new file mode 100644 index 0000000000..b57532be6c --- /dev/null +++ b/sdk/constructive-react/src/compute/orm/models/databaseFunctionGraphExecutionOutput.ts @@ -0,0 +1,280 @@ +/** + * DatabaseFunctionGraphExecutionOutput 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 { + DatabaseFunctionGraphExecutionOutput, + DatabaseFunctionGraphExecutionOutputWithRelations, + DatabaseFunctionGraphExecutionOutputSelect, + DatabaseFunctionGraphExecutionOutputFilter, + DatabaseFunctionGraphExecutionOutputOrderBy, + CreateDatabaseFunctionGraphExecutionOutputInput, + UpdateDatabaseFunctionGraphExecutionOutputInput, + DatabaseFunctionGraphExecutionOutputPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class DatabaseFunctionGraphExecutionOutputModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs< + S, + DatabaseFunctionGraphExecutionOutputFilter, + DatabaseFunctionGraphExecutionOutputOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + databaseFunctionGraphExecutionOutputs: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'DatabaseFunctionGraphExecutionOutput', + 'databaseFunctionGraphExecutionOutputs', + 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, + }, + 'DatabaseFunctionGraphExecutionOutputFilter', + 'DatabaseFunctionGraphExecutionOutputOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DatabaseFunctionGraphExecutionOutput', + fieldName: 'databaseFunctionGraphExecutionOutputs', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs< + S, + DatabaseFunctionGraphExecutionOutputFilter, + DatabaseFunctionGraphExecutionOutputOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + databaseFunctionGraphExecutionOutput: InferSelectResult< + DatabaseFunctionGraphExecutionOutputWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'DatabaseFunctionGraphExecutionOutput', + 'databaseFunctionGraphExecutionOutputs', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'DatabaseFunctionGraphExecutionOutputFilter', + 'DatabaseFunctionGraphExecutionOutputOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DatabaseFunctionGraphExecutionOutput', + fieldName: 'databaseFunctionGraphExecutionOutput', + document, + variables, + transform: (data: { + databaseFunctionGraphExecutionOutputs?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + databaseFunctionGraphExecutionOutput: + data.databaseFunctionGraphExecutionOutputs?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + databaseFunctionGraphExecutionOutput: InferSelectResult< + DatabaseFunctionGraphExecutionOutputWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindManyDocument( + 'DatabaseFunctionGraphExecutionOutput', + 'databaseFunctionGraphExecutionOutputs', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'DatabaseFunctionGraphExecutionOutputFilter', + 'DatabaseFunctionGraphExecutionOutputOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DatabaseFunctionGraphExecutionOutput', + fieldName: 'databaseFunctionGraphExecutionOutput', + document, + variables, + transform: (data: { + databaseFunctionGraphExecutionOutputs?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + databaseFunctionGraphExecutionOutput: + data.databaseFunctionGraphExecutionOutputs?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs< + S, + CreateDatabaseFunctionGraphExecutionOutputInput['databaseFunctionGraphExecutionOutput'] + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createDatabaseFunctionGraphExecutionOutput: { + databaseFunctionGraphExecutionOutput: InferSelectResult< + DatabaseFunctionGraphExecutionOutputWithRelations, + S + >; + }; + }> { + const { document, variables } = buildCreateDocument( + 'DatabaseFunctionGraphExecutionOutput', + 'createDatabaseFunctionGraphExecutionOutput', + 'databaseFunctionGraphExecutionOutput', + args.select, + args.data, + 'CreateDatabaseFunctionGraphExecutionOutputInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DatabaseFunctionGraphExecutionOutput', + fieldName: 'createDatabaseFunctionGraphExecutionOutput', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + createdAt: string; + }, + DatabaseFunctionGraphExecutionOutputPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateDatabaseFunctionGraphExecutionOutput: { + databaseFunctionGraphExecutionOutput: InferSelectResult< + DatabaseFunctionGraphExecutionOutputWithRelations, + S + >; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'DatabaseFunctionGraphExecutionOutput', + 'updateDatabaseFunctionGraphExecutionOutput', + 'databaseFunctionGraphExecutionOutput', + args.select, + args.where.id, + args.data, + 'UpdateDatabaseFunctionGraphExecutionOutputInput', + 'id', + 'databaseFunctionGraphExecutionOutputPatch', + connectionFieldsMap, + { + createdAt: args.where.createdAt, + } + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DatabaseFunctionGraphExecutionOutput', + fieldName: 'updateDatabaseFunctionGraphExecutionOutput', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + createdAt: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteDatabaseFunctionGraphExecutionOutput: { + databaseFunctionGraphExecutionOutput: InferSelectResult< + DatabaseFunctionGraphExecutionOutputWithRelations, + S + >; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'DatabaseFunctionGraphExecutionOutput', + 'deleteDatabaseFunctionGraphExecutionOutput', + 'databaseFunctionGraphExecutionOutput', + { + id: args.where.id, + createdAt: args.where.createdAt, + }, + 'DeleteDatabaseFunctionGraphExecutionOutputInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DatabaseFunctionGraphExecutionOutput', + fieldName: 'deleteDatabaseFunctionGraphExecutionOutput', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/compute/orm/models/databaseGraphCommit.ts b/sdk/constructive-react/src/compute/orm/models/databaseGraphCommit.ts new file mode 100644 index 0000000000..e6d9bc57d7 --- /dev/null +++ b/sdk/constructive-react/src/compute/orm/models/databaseGraphCommit.ts @@ -0,0 +1,250 @@ +/** + * DatabaseGraphCommit 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 { + DatabaseGraphCommit, + DatabaseGraphCommitWithRelations, + DatabaseGraphCommitSelect, + DatabaseGraphCommitFilter, + DatabaseGraphCommitOrderBy, + CreateDatabaseGraphCommitInput, + UpdateDatabaseGraphCommitInput, + DatabaseGraphCommitPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class DatabaseGraphCommitModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + databaseGraphCommits: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'DatabaseGraphCommit', + 'databaseGraphCommits', + 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, + }, + 'DatabaseGraphCommitFilter', + 'DatabaseGraphCommitOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DatabaseGraphCommit', + fieldName: 'databaseGraphCommits', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + databaseGraphCommit: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'DatabaseGraphCommit', + 'databaseGraphCommits', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'DatabaseGraphCommitFilter', + 'DatabaseGraphCommitOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DatabaseGraphCommit', + fieldName: 'databaseGraphCommit', + document, + variables, + transform: (data: { + databaseGraphCommits?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + databaseGraphCommit: data.databaseGraphCommits?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + databaseGraphCommit: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'DatabaseGraphCommit', + 'databaseGraphCommits', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'DatabaseGraphCommitFilter', + 'DatabaseGraphCommitOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DatabaseGraphCommit', + fieldName: 'databaseGraphCommit', + document, + variables, + transform: (data: { + databaseGraphCommits?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + databaseGraphCommit: data.databaseGraphCommits?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createDatabaseGraphCommit: { + databaseGraphCommit: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'DatabaseGraphCommit', + 'createDatabaseGraphCommit', + 'databaseGraphCommit', + args.select, + args.data, + 'CreateDatabaseGraphCommitInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DatabaseGraphCommit', + fieldName: 'createDatabaseGraphCommit', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + databaseId: string; + }, + DatabaseGraphCommitPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateDatabaseGraphCommit: { + databaseGraphCommit: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'DatabaseGraphCommit', + 'updateDatabaseGraphCommit', + 'databaseGraphCommit', + args.select, + args.where.id, + args.data, + 'UpdateDatabaseGraphCommitInput', + 'id', + 'databaseGraphCommitPatch', + connectionFieldsMap, + { + databaseId: args.where.databaseId, + } + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DatabaseGraphCommit', + fieldName: 'updateDatabaseGraphCommit', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + databaseId: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteDatabaseGraphCommit: { + databaseGraphCommit: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'DatabaseGraphCommit', + 'deleteDatabaseGraphCommit', + 'databaseGraphCommit', + { + id: args.where.id, + databaseId: args.where.databaseId, + }, + 'DeleteDatabaseGraphCommitInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DatabaseGraphCommit', + fieldName: 'deleteDatabaseGraphCommit', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/compute/orm/models/databaseGraphGetAllTreeNodesRecord.ts b/sdk/constructive-react/src/compute/orm/models/databaseGraphGetAllTreeNodesRecord.ts new file mode 100644 index 0000000000..f3a254b255 --- /dev/null +++ b/sdk/constructive-react/src/compute/orm/models/databaseGraphGetAllTreeNodesRecord.ts @@ -0,0 +1,153 @@ +/** + * DatabaseGraphGetAllTreeNodesRecord 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 { + DatabaseGraphGetAllTreeNodesRecord, + DatabaseGraphGetAllTreeNodesRecordWithRelations, + DatabaseGraphGetAllTreeNodesRecordSelect, + DatabaseGraphGetAllTreeNodesRecordFilter, + DatabaseGraphGetAllTreeNodesRecordsOrderBy, + CreateDatabaseGraphGetAllTreeNodesRecordInput, + UpdateDatabaseGraphGetAllTreeNodesRecordInput, + DatabaseGraphGetAllTreeNodesRecordPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class DatabaseGraphGetAllTreeNodesRecordModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs< + S, + DatabaseGraphGetAllTreeNodesRecordFilter, + DatabaseGraphGetAllTreeNodesRecordsOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + databaseGraphGetAllTreeNodes: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'DatabaseGraphGetAllTreeNodesRecord', + 'databaseGraphGetAllTreeNodes', + 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, + }, + 'DatabaseGraphGetAllTreeNodesRecordFilter', + 'DatabaseGraphGetAllTreeNodesRecordsOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DatabaseGraphGetAllTreeNodesRecord', + fieldName: 'databaseGraphGetAllTreeNodes', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs< + S, + DatabaseGraphGetAllTreeNodesRecordFilter, + DatabaseGraphGetAllTreeNodesRecordsOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + databaseGraphGetAllTreeNodesRecord: InferSelectResult< + DatabaseGraphGetAllTreeNodesRecordWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'DatabaseGraphGetAllTreeNodesRecord', + 'databaseGraphGetAllTreeNodes', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'DatabaseGraphGetAllTreeNodesRecordFilter', + 'DatabaseGraphGetAllTreeNodesRecordsOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DatabaseGraphGetAllTreeNodesRecord', + fieldName: 'databaseGraphGetAllTreeNodesRecord', + document, + variables, + transform: (data: { + databaseGraphGetAllTreeNodes?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + databaseGraphGetAllTreeNodesRecord: data.databaseGraphGetAllTreeNodes?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs< + S, + CreateDatabaseGraphGetAllTreeNodesRecordInput['databaseGraphGetAllTreeNodesRecord'] + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createDatabaseGraphGetAllTreeNodesRecord: { + databaseGraphGetAllTreeNodesRecord: InferSelectResult< + DatabaseGraphGetAllTreeNodesRecordWithRelations, + S + >; + }; + }> { + const { document, variables } = buildCreateDocument( + 'DatabaseGraphGetAllTreeNodesRecord', + 'createDatabaseGraphGetAllTreeNodesRecord', + 'databaseGraphGetAllTreeNodesRecord', + args.select, + args.data, + 'CreateDatabaseGraphGetAllTreeNodesRecordInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DatabaseGraphGetAllTreeNodesRecord', + fieldName: 'createDatabaseGraphGetAllTreeNodesRecord', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/compute/orm/models/databaseGraphObject.ts b/sdk/constructive-react/src/compute/orm/models/databaseGraphObject.ts new file mode 100644 index 0000000000..01dbd896a2 --- /dev/null +++ b/sdk/constructive-react/src/compute/orm/models/databaseGraphObject.ts @@ -0,0 +1,236 @@ +/** + * DatabaseGraphObject 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 { + DatabaseGraphObject, + DatabaseGraphObjectWithRelations, + DatabaseGraphObjectSelect, + DatabaseGraphObjectFilter, + DatabaseGraphObjectOrderBy, + CreateDatabaseGraphObjectInput, + UpdateDatabaseGraphObjectInput, + DatabaseGraphObjectPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class DatabaseGraphObjectModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + databaseGraphObjects: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'DatabaseGraphObject', + 'databaseGraphObjects', + 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, + }, + 'DatabaseGraphObjectFilter', + 'DatabaseGraphObjectOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DatabaseGraphObject', + fieldName: 'databaseGraphObjects', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + databaseGraphObject: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'DatabaseGraphObject', + 'databaseGraphObjects', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'DatabaseGraphObjectFilter', + 'DatabaseGraphObjectOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DatabaseGraphObject', + fieldName: 'databaseGraphObject', + document, + variables, + transform: (data: { + databaseGraphObjects?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + databaseGraphObject: data.databaseGraphObjects?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + databaseGraphObject: InferSelectResult | null; + }> { + const { document, variables } = buildFindOneDocument( + 'DatabaseGraphObject', + 'databaseGraphGetNodeAtPath', + args.id, + args.select, + 'id', + 'UUID!', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DatabaseGraphObject', + fieldName: 'databaseGraphObject', + document, + variables, + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createDatabaseGraphObject: { + databaseGraphObject: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'DatabaseGraphObject', + 'createDatabaseGraphObject', + 'databaseGraphObject', + args.select, + args.data, + 'CreateDatabaseGraphObjectInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DatabaseGraphObject', + fieldName: 'createDatabaseGraphObject', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + databaseId: string; + }, + DatabaseGraphObjectPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateDatabaseGraphObject: { + databaseGraphObject: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'DatabaseGraphObject', + 'updateDatabaseGraphObject', + 'databaseGraphObject', + args.select, + args.where.id, + args.data, + 'UpdateDatabaseGraphObjectInput', + 'id', + 'databaseGraphObjectPatch', + connectionFieldsMap, + { + databaseId: args.where.databaseId, + } + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DatabaseGraphObject', + fieldName: 'updateDatabaseGraphObject', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + databaseId: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteDatabaseGraphObject: { + databaseGraphObject: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'DatabaseGraphObject', + 'deleteDatabaseGraphObject', + 'databaseGraphObject', + { + id: args.where.id, + databaseId: args.where.databaseId, + }, + 'DeleteDatabaseGraphObjectInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DatabaseGraphObject', + fieldName: 'deleteDatabaseGraphObject', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/compute/orm/models/databaseGraphRef.ts b/sdk/constructive-react/src/compute/orm/models/databaseGraphRef.ts new file mode 100644 index 0000000000..966974aed6 --- /dev/null +++ b/sdk/constructive-react/src/compute/orm/models/databaseGraphRef.ts @@ -0,0 +1,250 @@ +/** + * DatabaseGraphRef 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 { + DatabaseGraphRef, + DatabaseGraphRefWithRelations, + DatabaseGraphRefSelect, + DatabaseGraphRefFilter, + DatabaseGraphRefOrderBy, + CreateDatabaseGraphRefInput, + UpdateDatabaseGraphRefInput, + DatabaseGraphRefPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class DatabaseGraphRefModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + databaseGraphRefs: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'DatabaseGraphRef', + 'databaseGraphRefs', + 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, + }, + 'DatabaseGraphRefFilter', + 'DatabaseGraphRefOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DatabaseGraphRef', + fieldName: 'databaseGraphRefs', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + databaseGraphRef: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'DatabaseGraphRef', + 'databaseGraphRefs', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'DatabaseGraphRefFilter', + 'DatabaseGraphRefOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DatabaseGraphRef', + fieldName: 'databaseGraphRef', + document, + variables, + transform: (data: { + databaseGraphRefs?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + databaseGraphRef: data.databaseGraphRefs?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + databaseGraphRef: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'DatabaseGraphRef', + 'databaseGraphRefs', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'DatabaseGraphRefFilter', + 'DatabaseGraphRefOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DatabaseGraphRef', + fieldName: 'databaseGraphRef', + document, + variables, + transform: (data: { + databaseGraphRefs?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + databaseGraphRef: data.databaseGraphRefs?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createDatabaseGraphRef: { + databaseGraphRef: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'DatabaseGraphRef', + 'createDatabaseGraphRef', + 'databaseGraphRef', + args.select, + args.data, + 'CreateDatabaseGraphRefInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DatabaseGraphRef', + fieldName: 'createDatabaseGraphRef', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + databaseId: string; + }, + DatabaseGraphRefPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateDatabaseGraphRef: { + databaseGraphRef: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'DatabaseGraphRef', + 'updateDatabaseGraphRef', + 'databaseGraphRef', + args.select, + args.where.id, + args.data, + 'UpdateDatabaseGraphRefInput', + 'id', + 'databaseGraphRefPatch', + connectionFieldsMap, + { + databaseId: args.where.databaseId, + } + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DatabaseGraphRef', + fieldName: 'updateDatabaseGraphRef', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + databaseId: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteDatabaseGraphRef: { + databaseGraphRef: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'DatabaseGraphRef', + 'deleteDatabaseGraphRef', + 'databaseGraphRef', + { + id: args.where.id, + databaseId: args.where.databaseId, + }, + 'DeleteDatabaseGraphRefInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DatabaseGraphRef', + fieldName: 'deleteDatabaseGraphRef', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/compute/orm/models/databaseGraphStore.ts b/sdk/constructive-react/src/compute/orm/models/databaseGraphStore.ts new file mode 100644 index 0000000000..76a87f5e30 --- /dev/null +++ b/sdk/constructive-react/src/compute/orm/models/databaseGraphStore.ts @@ -0,0 +1,245 @@ +/** + * DatabaseGraphStore 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 { + DatabaseGraphStore, + DatabaseGraphStoreWithRelations, + DatabaseGraphStoreSelect, + DatabaseGraphStoreFilter, + DatabaseGraphStoreOrderBy, + CreateDatabaseGraphStoreInput, + UpdateDatabaseGraphStoreInput, + DatabaseGraphStorePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class DatabaseGraphStoreModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + databaseGraphStores: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'DatabaseGraphStore', + 'databaseGraphStores', + 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, + }, + 'DatabaseGraphStoreFilter', + 'DatabaseGraphStoreOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DatabaseGraphStore', + fieldName: 'databaseGraphStores', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + databaseGraphStore: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'DatabaseGraphStore', + 'databaseGraphStores', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'DatabaseGraphStoreFilter', + 'DatabaseGraphStoreOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DatabaseGraphStore', + fieldName: 'databaseGraphStore', + document, + variables, + transform: (data: { + databaseGraphStores?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + databaseGraphStore: data.databaseGraphStores?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + databaseGraphStore: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'DatabaseGraphStore', + 'databaseGraphStores', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'DatabaseGraphStoreFilter', + 'DatabaseGraphStoreOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DatabaseGraphStore', + fieldName: 'databaseGraphStore', + document, + variables, + transform: (data: { + databaseGraphStores?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + databaseGraphStore: data.databaseGraphStores?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createDatabaseGraphStore: { + databaseGraphStore: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'DatabaseGraphStore', + 'createDatabaseGraphStore', + 'databaseGraphStore', + args.select, + args.data, + 'CreateDatabaseGraphStoreInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DatabaseGraphStore', + fieldName: 'createDatabaseGraphStore', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + DatabaseGraphStorePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateDatabaseGraphStore: { + databaseGraphStore: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'DatabaseGraphStore', + 'updateDatabaseGraphStore', + 'databaseGraphStore', + args.select, + args.where.id, + args.data, + 'UpdateDatabaseGraphStoreInput', + 'id', + 'databaseGraphStorePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DatabaseGraphStore', + fieldName: 'updateDatabaseGraphStore', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteDatabaseGraphStore: { + databaseGraphStore: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'DatabaseGraphStore', + 'deleteDatabaseGraphStore', + 'databaseGraphStore', + { + id: args.where.id, + }, + 'DeleteDatabaseGraphStoreInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DatabaseGraphStore', + fieldName: 'deleteDatabaseGraphStore', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/compute/orm/models/image.ts b/sdk/constructive-react/src/compute/orm/models/image.ts new file mode 100644 index 0000000000..6006cbd8ac --- /dev/null +++ b/sdk/constructive-react/src/compute/orm/models/image.ts @@ -0,0 +1,245 @@ +/** + * Image 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 { + Image, + ImageWithRelations, + ImageSelect, + ImageFilter, + ImageOrderBy, + CreateImageInput, + UpdateImageInput, + ImagePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class ImageModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + images: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'Image', + 'images', + 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, + }, + 'ImageFilter', + 'ImageOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Image', + fieldName: 'images', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + image: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'Image', + 'images', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'ImageFilter', + 'ImageOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Image', + fieldName: 'image', + document, + variables, + transform: (data: { + images?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + image: data.images?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + image: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'Image', + 'images', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'ImageFilter', + 'ImageOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Image', + fieldName: 'image', + document, + variables, + transform: (data: { + images?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + image: data.images?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createImage: { + image: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'Image', + 'createImage', + 'image', + args.select, + args.data, + 'CreateImageInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Image', + fieldName: 'createImage', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + ImagePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateImage: { + image: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'Image', + 'updateImage', + 'image', + args.select, + args.where.id, + args.data, + 'UpdateImageInput', + 'id', + 'imagePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Image', + fieldName: 'updateImage', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteImage: { + image: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'Image', + 'deleteImage', + 'image', + { + id: args.where.id, + }, + 'DeleteImageInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Image', + fieldName: 'deleteImage', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/compute/orm/models/imageGrant.ts b/sdk/constructive-react/src/compute/orm/models/imageGrant.ts new file mode 100644 index 0000000000..362d482c78 --- /dev/null +++ b/sdk/constructive-react/src/compute/orm/models/imageGrant.ts @@ -0,0 +1,245 @@ +/** + * ImageGrant 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 { + ImageGrant, + ImageGrantWithRelations, + ImageGrantSelect, + ImageGrantFilter, + ImageGrantOrderBy, + CreateImageGrantInput, + UpdateImageGrantInput, + ImageGrantPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class ImageGrantModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + imageGrants: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'ImageGrant', + 'imageGrants', + 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, + }, + 'ImageGrantFilter', + 'ImageGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ImageGrant', + fieldName: 'imageGrants', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + imageGrant: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'ImageGrant', + 'imageGrants', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'ImageGrantFilter', + 'ImageGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ImageGrant', + fieldName: 'imageGrant', + document, + variables, + transform: (data: { + imageGrants?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + imageGrant: data.imageGrants?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + imageGrant: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'ImageGrant', + 'imageGrants', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'ImageGrantFilter', + 'ImageGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ImageGrant', + fieldName: 'imageGrant', + document, + variables, + transform: (data: { + imageGrants?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + imageGrant: data.imageGrants?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createImageGrant: { + imageGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'ImageGrant', + 'createImageGrant', + 'imageGrant', + args.select, + args.data, + 'CreateImageGrantInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ImageGrant', + fieldName: 'createImageGrant', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + ImageGrantPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateImageGrant: { + imageGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'ImageGrant', + 'updateImageGrant', + 'imageGrant', + args.select, + args.where.id, + args.data, + 'UpdateImageGrantInput', + 'id', + 'imageGrantPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ImageGrant', + fieldName: 'updateImageGrant', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteImageGrant: { + imageGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'ImageGrant', + 'deleteImageGrant', + 'imageGrant', + { + id: args.where.id, + }, + 'DeleteImageGrantInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ImageGrant', + fieldName: 'deleteImageGrant', + 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 bb1916cea6..9a7f46374d 100644 --- a/sdk/constructive-react/src/compute/orm/models/index.ts +++ b/sdk/constructive-react/src/compute/orm/models/index.ts @@ -3,7 +3,19 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ +export { BuildModel } from './build'; +export { BuildStepModel } from './buildStep'; +export { BuilderBindingModel } from './builderBinding'; export { ContentPresetModel } from './contentPreset'; +export { DatabaseFunctionGraphModel } from './databaseFunctionGraph'; +export { DatabaseFunctionGraphExecutionModel } from './databaseFunctionGraphExecution'; +export { DatabaseFunctionGraphExecutionNodeStateModel } from './databaseFunctionGraphExecutionNodeState'; +export { DatabaseFunctionGraphExecutionOutputModel } from './databaseFunctionGraphExecutionOutput'; +export { DatabaseGraphCommitModel } from './databaseGraphCommit'; +export { DatabaseGraphGetAllTreeNodesRecordModel } from './databaseGraphGetAllTreeNodesRecord'; +export { DatabaseGraphObjectModel } from './databaseGraphObject'; +export { DatabaseGraphRefModel } from './databaseGraphRef'; +export { DatabaseGraphStoreModel } from './databaseGraphStore'; export { DbPresetModel } from './dbPreset'; export { FunctionApiBindingModel } from './functionApiBinding'; export { FunctionCapabilityBindingModel } from './functionCapabilityBinding'; @@ -22,6 +34,8 @@ export { FunctionGraphStoreModel } from './functionGraphStore'; export { FunctionInvocationAttemptModel } from './functionInvocationAttempt'; export { FunctionInvocationModel } from './functionInvocation'; export { GetAllTreeNodesRecordModel } from './getAllTreeNodesRecord'; +export { ImageModel } from './image'; +export { ImageGrantModel } from './imageGrant'; export { InfraCommitModel } from './infraCommit'; export { InfraGetAllTreeNodesRecordModel } from './infraGetAllTreeNodesRecord'; export { InfraObjectModel } from './infraObject'; @@ -30,6 +44,9 @@ export { InfraStoreModel } from './infraStore'; export { IntegrationProviderModel } from './integrationProvider'; export { NamespaceModel } from './namespace'; export { NamespaceEventModel } from './namespaceEvent'; +export { PlatformBuildModel } from './platformBuild'; +export { PlatformBuildStepModel } from './platformBuildStep'; +export { PlatformBuilderBindingModel } from './platformBuilderBinding'; export { PlatformFunctionApiBindingModel } from './platformFunctionApiBinding'; export { PlatformFunctionCapabilityBindingModel } from './platformFunctionCapabilityBinding'; export { PlatformFunctionDefinitionModel } from './platformFunctionDefinition'; @@ -38,18 +55,36 @@ export { PlatformFunctionDeploymentEventModel } from './platformFunctionDeployme export { PlatformFunctionExecutionLogModel } from './platformFunctionExecutionLog'; export { PlatformFunctionInvocationAttemptModel } from './platformFunctionInvocationAttempt'; export { PlatformFunctionInvocationModel } from './platformFunctionInvocation'; +export { PlatformImageModel } from './platformImage'; +export { PlatformImageGrantModel } from './platformImageGrant'; export { PlatformInfraCommitModel } from './platformInfraCommit'; export { PlatformInfraGetAllTreeNodesRecordModel } from './platformInfraGetAllTreeNodesRecord'; export { PlatformInfraObjectModel } from './platformInfraObject'; export { PlatformInfraRefModel } from './platformInfraRef'; export { PlatformInfraStoreModel } from './platformInfraStore'; +export { PlatformK8sResourceKindModel } from './platformK8sResourceKind'; +export { PlatformK8sSpecRuleModel } from './platformK8sSpecRule'; export { PlatformNamespaceModel } from './platformNamespace'; export { PlatformNamespaceEventModel } from './platformNamespaceEvent'; +export { PlatformProposalCommentModel } from './platformProposalComment'; +export { PlatformProposalModel } from './platformProposal'; +export { PlatformProposalFileViewModel } from './platformProposalFileView'; +export { PlatformProposalReactionModel } from './platformProposalReaction'; +export { PlatformProposalReviewModel } from './platformProposalReview'; +export { PlatformProposalsChunkModel } from './platformProposalsChunk'; +export { PlatformRegistryBindingModel } from './platformRegistryBinding'; +export { PlatformRegistryModel } from './platformRegistry'; +export { PlatformRegistryGrantModel } from './platformRegistryGrant'; +export { PlatformRepositoryModel } from './platformRepository'; +export { PlatformRepositoryEventModel } from './platformRepositoryEvent'; +export { PlatformRepositoryRequiredCheckModel } from './platformRepositoryRequiredCheck'; +export { PlatformRepositoryWorkflowModel } from './platformRepositoryWorkflow'; export { PlatformResourceModel } from './platformResource'; export { PlatformResourceDeclaredCapacityModel } from './platformResourceDeclaredCapacity'; export { PlatformResourceDefinitionModel } from './platformResourceDefinition'; export { PlatformResourceEventModel } from './platformResourceEvent'; export { PlatformResourceInstallationModel } from './platformResourceInstallation'; +export { PlatformResourceObservedStorageModel } from './platformResourceObservedStorage'; export { PlatformResourceStatusCheckModel } from './platformResourceStatusCheck'; export { PlatformResourceUsageLogModel } from './platformResourceUsageLog'; export { PlatformResourceUsageSummaryModel } from './platformResourceUsageSummary'; @@ -59,11 +94,25 @@ export { PlatformResourcesRequirementsStateModel } from './platformResourcesRequ export { PlatformResourcesResolvedRequirementModel } from './platformResourcesResolvedRequirement'; export { PlatformWebhookEndpointModel } from './platformWebhookEndpoint'; export { PlatformWebhookEventModel } from './platformWebhookEvent'; +export { ProposalCommentModel } from './proposalComment'; +export { ProposalModel } from './proposal'; +export { ProposalFileViewModel } from './proposalFileView'; +export { ProposalReactionModel } from './proposalReaction'; +export { ProposalReviewModel } from './proposalReview'; +export { ProposalsChunkModel } from './proposalsChunk'; +export { RegistryBindingModel } from './registryBinding'; +export { RegistryModel } from './registry'; +export { RegistryGrantModel } from './registryGrant'; +export { RepositoryModel } from './repository'; +export { RepositoryEventModel } from './repositoryEvent'; +export { RepositoryRequiredCheckModel } from './repositoryRequiredCheck'; +export { RepositoryWorkflowModel } from './repositoryWorkflow'; export { ResourceModel } from './resource'; export { ResourceDeclaredCapacityModel } from './resourceDeclaredCapacity'; export { ResourceDefinitionModel } from './resourceDefinition'; export { ResourceEventModel } from './resourceEvent'; export { ResourceInstallationModel } from './resourceInstallation'; +export { ResourceObservedStorageModel } from './resourceObservedStorage'; export { ResourceStatusCheckModel } from './resourceStatusCheck'; export { ResourceUsageLogModel } from './resourceUsageLog'; export { ResourceUsageSummaryModel } from './resourceUsageSummary'; diff --git a/sdk/constructive-react/src/compute/orm/models/platformBuild.ts b/sdk/constructive-react/src/compute/orm/models/platformBuild.ts new file mode 100644 index 0000000000..93c10d494b --- /dev/null +++ b/sdk/constructive-react/src/compute/orm/models/platformBuild.ts @@ -0,0 +1,245 @@ +/** + * PlatformBuild 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 { + PlatformBuild, + PlatformBuildWithRelations, + PlatformBuildSelect, + PlatformBuildFilter, + PlatformBuildOrderBy, + CreatePlatformBuildInput, + UpdatePlatformBuildInput, + PlatformBuildPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformBuildModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformBuilds: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformBuild', + 'platformBuilds', + 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, + }, + 'PlatformBuildFilter', + 'PlatformBuildOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformBuild', + fieldName: 'platformBuilds', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformBuild: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformBuild', + 'platformBuilds', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformBuildFilter', + 'PlatformBuildOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformBuild', + fieldName: 'platformBuild', + document, + variables, + transform: (data: { + platformBuilds?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformBuild: data.platformBuilds?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformBuild: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformBuild', + 'platformBuilds', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformBuildFilter', + 'PlatformBuildOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformBuild', + fieldName: 'platformBuild', + document, + variables, + transform: (data: { + platformBuilds?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformBuild: data.platformBuilds?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformBuild: { + platformBuild: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformBuild', + 'createPlatformBuild', + 'platformBuild', + args.select, + args.data, + 'CreatePlatformBuildInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformBuild', + fieldName: 'createPlatformBuild', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformBuildPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformBuild: { + platformBuild: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformBuild', + 'updatePlatformBuild', + 'platformBuild', + args.select, + args.where.id, + args.data, + 'UpdatePlatformBuildInput', + 'id', + 'platformBuildPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformBuild', + fieldName: 'updatePlatformBuild', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformBuild: { + platformBuild: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformBuild', + 'deletePlatformBuild', + 'platformBuild', + { + id: args.where.id, + }, + 'DeletePlatformBuildInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformBuild', + fieldName: 'deletePlatformBuild', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/compute/orm/models/platformBuildStep.ts b/sdk/constructive-react/src/compute/orm/models/platformBuildStep.ts new file mode 100644 index 0000000000..24a49677c0 --- /dev/null +++ b/sdk/constructive-react/src/compute/orm/models/platformBuildStep.ts @@ -0,0 +1,250 @@ +/** + * PlatformBuildStep 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 { + PlatformBuildStep, + PlatformBuildStepWithRelations, + PlatformBuildStepSelect, + PlatformBuildStepFilter, + PlatformBuildStepOrderBy, + CreatePlatformBuildStepInput, + UpdatePlatformBuildStepInput, + PlatformBuildStepPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformBuildStepModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformBuildSteps: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformBuildStep', + 'platformBuildSteps', + 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, + }, + 'PlatformBuildStepFilter', + 'PlatformBuildStepOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformBuildStep', + fieldName: 'platformBuildSteps', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformBuildStep: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformBuildStep', + 'platformBuildSteps', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformBuildStepFilter', + 'PlatformBuildStepOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformBuildStep', + fieldName: 'platformBuildStep', + document, + variables, + transform: (data: { + platformBuildSteps?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformBuildStep: data.platformBuildSteps?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformBuildStep: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformBuildStep', + 'platformBuildSteps', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformBuildStepFilter', + 'PlatformBuildStepOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformBuildStep', + fieldName: 'platformBuildStep', + document, + variables, + transform: (data: { + platformBuildSteps?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformBuildStep: data.platformBuildSteps?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformBuildStep: { + platformBuildStep: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformBuildStep', + 'createPlatformBuildStep', + 'platformBuildStep', + args.select, + args.data, + 'CreatePlatformBuildStepInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformBuildStep', + fieldName: 'createPlatformBuildStep', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + recordedAt: string; + }, + PlatformBuildStepPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformBuildStep: { + platformBuildStep: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformBuildStep', + 'updatePlatformBuildStep', + 'platformBuildStep', + args.select, + args.where.id, + args.data, + 'UpdatePlatformBuildStepInput', + 'id', + 'platformBuildStepPatch', + connectionFieldsMap, + { + recordedAt: args.where.recordedAt, + } + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformBuildStep', + fieldName: 'updatePlatformBuildStep', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + recordedAt: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformBuildStep: { + platformBuildStep: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformBuildStep', + 'deletePlatformBuildStep', + 'platformBuildStep', + { + id: args.where.id, + recordedAt: args.where.recordedAt, + }, + 'DeletePlatformBuildStepInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformBuildStep', + fieldName: 'deletePlatformBuildStep', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/compute/orm/models/platformBuilderBinding.ts b/sdk/constructive-react/src/compute/orm/models/platformBuilderBinding.ts new file mode 100644 index 0000000000..09a8daa1ed --- /dev/null +++ b/sdk/constructive-react/src/compute/orm/models/platformBuilderBinding.ts @@ -0,0 +1,247 @@ +/** + * PlatformBuilderBinding 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 { + PlatformBuilderBinding, + PlatformBuilderBindingWithRelations, + PlatformBuilderBindingSelect, + PlatformBuilderBindingFilter, + PlatformBuilderBindingOrderBy, + CreatePlatformBuilderBindingInput, + UpdatePlatformBuilderBindingInput, + PlatformBuilderBindingPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformBuilderBindingModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformBuilderBindings: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformBuilderBinding', + 'platformBuilderBindings', + 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, + }, + 'PlatformBuilderBindingFilter', + 'PlatformBuilderBindingOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformBuilderBinding', + fieldName: 'platformBuilderBindings', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformBuilderBinding: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformBuilderBinding', + 'platformBuilderBindings', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformBuilderBindingFilter', + 'PlatformBuilderBindingOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformBuilderBinding', + fieldName: 'platformBuilderBinding', + document, + variables, + transform: (data: { + platformBuilderBindings?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformBuilderBinding: data.platformBuilderBindings?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformBuilderBinding: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformBuilderBinding', + 'platformBuilderBindings', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformBuilderBindingFilter', + 'PlatformBuilderBindingOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformBuilderBinding', + fieldName: 'platformBuilderBinding', + document, + variables, + transform: (data: { + platformBuilderBindings?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformBuilderBinding: data.platformBuilderBindings?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformBuilderBinding: { + platformBuilderBinding: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformBuilderBinding', + 'createPlatformBuilderBinding', + 'platformBuilderBinding', + args.select, + args.data, + 'CreatePlatformBuilderBindingInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformBuilderBinding', + fieldName: 'createPlatformBuilderBinding', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformBuilderBindingPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformBuilderBinding: { + platformBuilderBinding: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformBuilderBinding', + 'updatePlatformBuilderBinding', + 'platformBuilderBinding', + args.select, + args.where.id, + args.data, + 'UpdatePlatformBuilderBindingInput', + 'id', + 'platformBuilderBindingPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformBuilderBinding', + fieldName: 'updatePlatformBuilderBinding', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformBuilderBinding: { + platformBuilderBinding: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformBuilderBinding', + 'deletePlatformBuilderBinding', + 'platformBuilderBinding', + { + id: args.where.id, + }, + 'DeletePlatformBuilderBindingInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformBuilderBinding', + fieldName: 'deletePlatformBuilderBinding', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/compute/orm/models/platformImage.ts b/sdk/constructive-react/src/compute/orm/models/platformImage.ts new file mode 100644 index 0000000000..6034dea979 --- /dev/null +++ b/sdk/constructive-react/src/compute/orm/models/platformImage.ts @@ -0,0 +1,245 @@ +/** + * PlatformImage 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 { + PlatformImage, + PlatformImageWithRelations, + PlatformImageSelect, + PlatformImageFilter, + PlatformImageOrderBy, + CreatePlatformImageInput, + UpdatePlatformImageInput, + PlatformImagePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformImageModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformImages: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformImage', + 'platformImages', + 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, + }, + 'PlatformImageFilter', + 'PlatformImageOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformImage', + fieldName: 'platformImages', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformImage: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformImage', + 'platformImages', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformImageFilter', + 'PlatformImageOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformImage', + fieldName: 'platformImage', + document, + variables, + transform: (data: { + platformImages?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformImage: data.platformImages?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformImage: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformImage', + 'platformImages', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformImageFilter', + 'PlatformImageOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformImage', + fieldName: 'platformImage', + document, + variables, + transform: (data: { + platformImages?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformImage: data.platformImages?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformImage: { + platformImage: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformImage', + 'createPlatformImage', + 'platformImage', + args.select, + args.data, + 'CreatePlatformImageInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformImage', + fieldName: 'createPlatformImage', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformImagePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformImage: { + platformImage: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformImage', + 'updatePlatformImage', + 'platformImage', + args.select, + args.where.id, + args.data, + 'UpdatePlatformImageInput', + 'id', + 'platformImagePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformImage', + fieldName: 'updatePlatformImage', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformImage: { + platformImage: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformImage', + 'deletePlatformImage', + 'platformImage', + { + id: args.where.id, + }, + 'DeletePlatformImageInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformImage', + fieldName: 'deletePlatformImage', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/compute/orm/models/platformImageGrant.ts b/sdk/constructive-react/src/compute/orm/models/platformImageGrant.ts new file mode 100644 index 0000000000..e8cdfc6ac5 --- /dev/null +++ b/sdk/constructive-react/src/compute/orm/models/platformImageGrant.ts @@ -0,0 +1,245 @@ +/** + * PlatformImageGrant 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 { + PlatformImageGrant, + PlatformImageGrantWithRelations, + PlatformImageGrantSelect, + PlatformImageGrantFilter, + PlatformImageGrantOrderBy, + CreatePlatformImageGrantInput, + UpdatePlatformImageGrantInput, + PlatformImageGrantPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformImageGrantModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformImageGrants: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformImageGrant', + 'platformImageGrants', + 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, + }, + 'PlatformImageGrantFilter', + 'PlatformImageGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformImageGrant', + fieldName: 'platformImageGrants', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformImageGrant: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformImageGrant', + 'platformImageGrants', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformImageGrantFilter', + 'PlatformImageGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformImageGrant', + fieldName: 'platformImageGrant', + document, + variables, + transform: (data: { + platformImageGrants?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformImageGrant: data.platformImageGrants?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformImageGrant: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformImageGrant', + 'platformImageGrants', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformImageGrantFilter', + 'PlatformImageGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformImageGrant', + fieldName: 'platformImageGrant', + document, + variables, + transform: (data: { + platformImageGrants?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformImageGrant: data.platformImageGrants?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformImageGrant: { + platformImageGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformImageGrant', + 'createPlatformImageGrant', + 'platformImageGrant', + args.select, + args.data, + 'CreatePlatformImageGrantInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformImageGrant', + fieldName: 'createPlatformImageGrant', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformImageGrantPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformImageGrant: { + platformImageGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformImageGrant', + 'updatePlatformImageGrant', + 'platformImageGrant', + args.select, + args.where.id, + args.data, + 'UpdatePlatformImageGrantInput', + 'id', + 'platformImageGrantPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformImageGrant', + fieldName: 'updatePlatformImageGrant', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformImageGrant: { + platformImageGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformImageGrant', + 'deletePlatformImageGrant', + 'platformImageGrant', + { + id: args.where.id, + }, + 'DeletePlatformImageGrantInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformImageGrant', + fieldName: 'deletePlatformImageGrant', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/compute/orm/models/platformK8sResourceKind.ts b/sdk/constructive-react/src/compute/orm/models/platformK8sResourceKind.ts new file mode 100644 index 0000000000..e6c0883fad --- /dev/null +++ b/sdk/constructive-react/src/compute/orm/models/platformK8sResourceKind.ts @@ -0,0 +1,247 @@ +/** + * PlatformK8sResourceKind 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 { + PlatformK8sResourceKind, + PlatformK8sResourceKindWithRelations, + PlatformK8sResourceKindSelect, + PlatformK8sResourceKindFilter, + PlatformK8sResourceKindOrderBy, + CreatePlatformK8sResourceKindInput, + UpdatePlatformK8sResourceKindInput, + PlatformK8sResourceKindPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformK8sResourceKindModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformK8sResourceKinds: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformK8sResourceKind', + 'platformK8sResourceKinds', + 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, + }, + 'PlatformK8sResourceKindFilter', + 'PlatformK8sResourceKindOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformK8sResourceKind', + fieldName: 'platformK8sResourceKinds', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformK8sResourceKind: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformK8sResourceKind', + 'platformK8sResourceKinds', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformK8sResourceKindFilter', + 'PlatformK8sResourceKindOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformK8sResourceKind', + fieldName: 'platformK8sResourceKind', + document, + variables, + transform: (data: { + platformK8sResourceKinds?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformK8sResourceKind: data.platformK8sResourceKinds?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformK8sResourceKind: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformK8sResourceKind', + 'platformK8sResourceKinds', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformK8sResourceKindFilter', + 'PlatformK8sResourceKindOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformK8sResourceKind', + fieldName: 'platformK8sResourceKind', + document, + variables, + transform: (data: { + platformK8sResourceKinds?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformK8sResourceKind: data.platformK8sResourceKinds?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformK8sResourceKind: { + platformK8sResourceKind: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformK8sResourceKind', + 'createPlatformK8sResourceKind', + 'platformK8sResourceKind', + args.select, + args.data, + 'CreatePlatformK8sResourceKindInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformK8sResourceKind', + fieldName: 'createPlatformK8sResourceKind', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformK8sResourceKindPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformK8sResourceKind: { + platformK8sResourceKind: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformK8sResourceKind', + 'updatePlatformK8sResourceKind', + 'platformK8sResourceKind', + args.select, + args.where.id, + args.data, + 'UpdatePlatformK8sResourceKindInput', + 'id', + 'platformK8sResourceKindPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformK8sResourceKind', + fieldName: 'updatePlatformK8sResourceKind', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformK8sResourceKind: { + platformK8sResourceKind: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformK8sResourceKind', + 'deletePlatformK8sResourceKind', + 'platformK8sResourceKind', + { + id: args.where.id, + }, + 'DeletePlatformK8sResourceKindInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformK8sResourceKind', + fieldName: 'deletePlatformK8sResourceKind', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/compute/orm/models/platformK8sSpecRule.ts b/sdk/constructive-react/src/compute/orm/models/platformK8sSpecRule.ts new file mode 100644 index 0000000000..d2ef98632d --- /dev/null +++ b/sdk/constructive-react/src/compute/orm/models/platformK8sSpecRule.ts @@ -0,0 +1,245 @@ +/** + * PlatformK8sSpecRule 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 { + PlatformK8sSpecRule, + PlatformK8sSpecRuleWithRelations, + PlatformK8sSpecRuleSelect, + PlatformK8sSpecRuleFilter, + PlatformK8sSpecRuleOrderBy, + CreatePlatformK8sSpecRuleInput, + UpdatePlatformK8sSpecRuleInput, + PlatformK8sSpecRulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformK8sSpecRuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformK8sSpecRules: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformK8sSpecRule', + 'platformK8sSpecRules', + 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, + }, + 'PlatformK8sSpecRuleFilter', + 'PlatformK8sSpecRuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformK8sSpecRule', + fieldName: 'platformK8sSpecRules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformK8sSpecRule: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformK8sSpecRule', + 'platformK8sSpecRules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformK8sSpecRuleFilter', + 'PlatformK8sSpecRuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformK8sSpecRule', + fieldName: 'platformK8sSpecRule', + document, + variables, + transform: (data: { + platformK8sSpecRules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformK8sSpecRule: data.platformK8sSpecRules?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformK8sSpecRule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformK8sSpecRule', + 'platformK8sSpecRules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformK8sSpecRuleFilter', + 'PlatformK8sSpecRuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformK8sSpecRule', + fieldName: 'platformK8sSpecRule', + document, + variables, + transform: (data: { + platformK8sSpecRules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformK8sSpecRule: data.platformK8sSpecRules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformK8sSpecRule: { + platformK8sSpecRule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformK8sSpecRule', + 'createPlatformK8sSpecRule', + 'platformK8sSpecRule', + args.select, + args.data, + 'CreatePlatformK8sSpecRuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformK8sSpecRule', + fieldName: 'createPlatformK8sSpecRule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformK8sSpecRulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformK8sSpecRule: { + platformK8sSpecRule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformK8sSpecRule', + 'updatePlatformK8sSpecRule', + 'platformK8sSpecRule', + args.select, + args.where.id, + args.data, + 'UpdatePlatformK8sSpecRuleInput', + 'id', + 'platformK8sSpecRulePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformK8sSpecRule', + fieldName: 'updatePlatformK8sSpecRule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformK8sSpecRule: { + platformK8sSpecRule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformK8sSpecRule', + 'deletePlatformK8sSpecRule', + 'platformK8sSpecRule', + { + id: args.where.id, + }, + 'DeletePlatformK8sSpecRuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformK8sSpecRule', + fieldName: 'deletePlatformK8sSpecRule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/compute/orm/models/platformProposal.ts b/sdk/constructive-react/src/compute/orm/models/platformProposal.ts new file mode 100644 index 0000000000..69a87096be --- /dev/null +++ b/sdk/constructive-react/src/compute/orm/models/platformProposal.ts @@ -0,0 +1,245 @@ +/** + * PlatformProposal 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 { + PlatformProposal, + PlatformProposalWithRelations, + PlatformProposalSelect, + PlatformProposalFilter, + PlatformProposalOrderBy, + CreatePlatformProposalInput, + UpdatePlatformProposalInput, + PlatformProposalPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformProposalModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformProposals: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformProposal', + 'platformProposals', + 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, + }, + 'PlatformProposalFilter', + 'PlatformProposalOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformProposal', + fieldName: 'platformProposals', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformProposal: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformProposal', + 'platformProposals', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformProposalFilter', + 'PlatformProposalOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformProposal', + fieldName: 'platformProposal', + document, + variables, + transform: (data: { + platformProposals?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformProposal: data.platformProposals?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformProposal: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformProposal', + 'platformProposals', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformProposalFilter', + 'PlatformProposalOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformProposal', + fieldName: 'platformProposal', + document, + variables, + transform: (data: { + platformProposals?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformProposal: data.platformProposals?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformProposal: { + platformProposal: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformProposal', + 'createPlatformProposal', + 'platformProposal', + args.select, + args.data, + 'CreatePlatformProposalInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformProposal', + fieldName: 'createPlatformProposal', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformProposalPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformProposal: { + platformProposal: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformProposal', + 'updatePlatformProposal', + 'platformProposal', + args.select, + args.where.id, + args.data, + 'UpdatePlatformProposalInput', + 'id', + 'platformProposalPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformProposal', + fieldName: 'updatePlatformProposal', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformProposal: { + platformProposal: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformProposal', + 'deletePlatformProposal', + 'platformProposal', + { + id: args.where.id, + }, + 'DeletePlatformProposalInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformProposal', + fieldName: 'deletePlatformProposal', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/compute/orm/models/platformProposalComment.ts b/sdk/constructive-react/src/compute/orm/models/platformProposalComment.ts new file mode 100644 index 0000000000..adaf1e6852 --- /dev/null +++ b/sdk/constructive-react/src/compute/orm/models/platformProposalComment.ts @@ -0,0 +1,247 @@ +/** + * PlatformProposalComment 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 { + PlatformProposalComment, + PlatformProposalCommentWithRelations, + PlatformProposalCommentSelect, + PlatformProposalCommentFilter, + PlatformProposalCommentOrderBy, + CreatePlatformProposalCommentInput, + UpdatePlatformProposalCommentInput, + PlatformProposalCommentPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformProposalCommentModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformProposalComments: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformProposalComment', + 'platformProposalComments', + 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, + }, + 'PlatformProposalCommentFilter', + 'PlatformProposalCommentOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformProposalComment', + fieldName: 'platformProposalComments', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformProposalComment: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformProposalComment', + 'platformProposalComments', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformProposalCommentFilter', + 'PlatformProposalCommentOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformProposalComment', + fieldName: 'platformProposalComment', + document, + variables, + transform: (data: { + platformProposalComments?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformProposalComment: data.platformProposalComments?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformProposalComment: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformProposalComment', + 'platformProposalComments', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformProposalCommentFilter', + 'PlatformProposalCommentOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformProposalComment', + fieldName: 'platformProposalComment', + document, + variables, + transform: (data: { + platformProposalComments?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformProposalComment: data.platformProposalComments?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformProposalComment: { + platformProposalComment: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformProposalComment', + 'createPlatformProposalComment', + 'platformProposalComment', + args.select, + args.data, + 'CreatePlatformProposalCommentInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformProposalComment', + fieldName: 'createPlatformProposalComment', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformProposalCommentPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformProposalComment: { + platformProposalComment: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformProposalComment', + 'updatePlatformProposalComment', + 'platformProposalComment', + args.select, + args.where.id, + args.data, + 'UpdatePlatformProposalCommentInput', + 'id', + 'platformProposalCommentPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformProposalComment', + fieldName: 'updatePlatformProposalComment', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformProposalComment: { + platformProposalComment: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformProposalComment', + 'deletePlatformProposalComment', + 'platformProposalComment', + { + id: args.where.id, + }, + 'DeletePlatformProposalCommentInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformProposalComment', + fieldName: 'deletePlatformProposalComment', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/compute/orm/models/platformProposalFileView.ts b/sdk/constructive-react/src/compute/orm/models/platformProposalFileView.ts new file mode 100644 index 0000000000..b92ac46ee4 --- /dev/null +++ b/sdk/constructive-react/src/compute/orm/models/platformProposalFileView.ts @@ -0,0 +1,247 @@ +/** + * PlatformProposalFileView 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 { + PlatformProposalFileView, + PlatformProposalFileViewWithRelations, + PlatformProposalFileViewSelect, + PlatformProposalFileViewFilter, + PlatformProposalFileViewOrderBy, + CreatePlatformProposalFileViewInput, + UpdatePlatformProposalFileViewInput, + PlatformProposalFileViewPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformProposalFileViewModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformProposalFileViews: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformProposalFileView', + 'platformProposalFileViews', + 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, + }, + 'PlatformProposalFileViewFilter', + 'PlatformProposalFileViewOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformProposalFileView', + fieldName: 'platformProposalFileViews', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformProposalFileView: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformProposalFileView', + 'platformProposalFileViews', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformProposalFileViewFilter', + 'PlatformProposalFileViewOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformProposalFileView', + fieldName: 'platformProposalFileView', + document, + variables, + transform: (data: { + platformProposalFileViews?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformProposalFileView: data.platformProposalFileViews?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformProposalFileView: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformProposalFileView', + 'platformProposalFileViews', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformProposalFileViewFilter', + 'PlatformProposalFileViewOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformProposalFileView', + fieldName: 'platformProposalFileView', + document, + variables, + transform: (data: { + platformProposalFileViews?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformProposalFileView: data.platformProposalFileViews?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformProposalFileView: { + platformProposalFileView: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformProposalFileView', + 'createPlatformProposalFileView', + 'platformProposalFileView', + args.select, + args.data, + 'CreatePlatformProposalFileViewInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformProposalFileView', + fieldName: 'createPlatformProposalFileView', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformProposalFileViewPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformProposalFileView: { + platformProposalFileView: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformProposalFileView', + 'updatePlatformProposalFileView', + 'platformProposalFileView', + args.select, + args.where.id, + args.data, + 'UpdatePlatformProposalFileViewInput', + 'id', + 'platformProposalFileViewPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformProposalFileView', + fieldName: 'updatePlatformProposalFileView', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformProposalFileView: { + platformProposalFileView: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformProposalFileView', + 'deletePlatformProposalFileView', + 'platformProposalFileView', + { + id: args.where.id, + }, + 'DeletePlatformProposalFileViewInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformProposalFileView', + fieldName: 'deletePlatformProposalFileView', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/compute/orm/models/platformProposalReaction.ts b/sdk/constructive-react/src/compute/orm/models/platformProposalReaction.ts new file mode 100644 index 0000000000..3df81a6deb --- /dev/null +++ b/sdk/constructive-react/src/compute/orm/models/platformProposalReaction.ts @@ -0,0 +1,247 @@ +/** + * PlatformProposalReaction 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 { + PlatformProposalReaction, + PlatformProposalReactionWithRelations, + PlatformProposalReactionSelect, + PlatformProposalReactionFilter, + PlatformProposalReactionOrderBy, + CreatePlatformProposalReactionInput, + UpdatePlatformProposalReactionInput, + PlatformProposalReactionPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformProposalReactionModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformProposalReactions: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformProposalReaction', + 'platformProposalReactions', + 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, + }, + 'PlatformProposalReactionFilter', + 'PlatformProposalReactionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformProposalReaction', + fieldName: 'platformProposalReactions', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformProposalReaction: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformProposalReaction', + 'platformProposalReactions', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformProposalReactionFilter', + 'PlatformProposalReactionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformProposalReaction', + fieldName: 'platformProposalReaction', + document, + variables, + transform: (data: { + platformProposalReactions?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformProposalReaction: data.platformProposalReactions?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformProposalReaction: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformProposalReaction', + 'platformProposalReactions', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformProposalReactionFilter', + 'PlatformProposalReactionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformProposalReaction', + fieldName: 'platformProposalReaction', + document, + variables, + transform: (data: { + platformProposalReactions?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformProposalReaction: data.platformProposalReactions?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformProposalReaction: { + platformProposalReaction: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformProposalReaction', + 'createPlatformProposalReaction', + 'platformProposalReaction', + args.select, + args.data, + 'CreatePlatformProposalReactionInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformProposalReaction', + fieldName: 'createPlatformProposalReaction', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformProposalReactionPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformProposalReaction: { + platformProposalReaction: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformProposalReaction', + 'updatePlatformProposalReaction', + 'platformProposalReaction', + args.select, + args.where.id, + args.data, + 'UpdatePlatformProposalReactionInput', + 'id', + 'platformProposalReactionPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformProposalReaction', + fieldName: 'updatePlatformProposalReaction', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformProposalReaction: { + platformProposalReaction: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformProposalReaction', + 'deletePlatformProposalReaction', + 'platformProposalReaction', + { + id: args.where.id, + }, + 'DeletePlatformProposalReactionInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformProposalReaction', + fieldName: 'deletePlatformProposalReaction', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/compute/orm/models/platformProposalReview.ts b/sdk/constructive-react/src/compute/orm/models/platformProposalReview.ts new file mode 100644 index 0000000000..1922f027ab --- /dev/null +++ b/sdk/constructive-react/src/compute/orm/models/platformProposalReview.ts @@ -0,0 +1,247 @@ +/** + * PlatformProposalReview 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 { + PlatformProposalReview, + PlatformProposalReviewWithRelations, + PlatformProposalReviewSelect, + PlatformProposalReviewFilter, + PlatformProposalReviewOrderBy, + CreatePlatformProposalReviewInput, + UpdatePlatformProposalReviewInput, + PlatformProposalReviewPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformProposalReviewModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformProposalReviews: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformProposalReview', + 'platformProposalReviews', + 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, + }, + 'PlatformProposalReviewFilter', + 'PlatformProposalReviewOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformProposalReview', + fieldName: 'platformProposalReviews', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformProposalReview: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformProposalReview', + 'platformProposalReviews', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformProposalReviewFilter', + 'PlatformProposalReviewOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformProposalReview', + fieldName: 'platformProposalReview', + document, + variables, + transform: (data: { + platformProposalReviews?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformProposalReview: data.platformProposalReviews?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformProposalReview: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformProposalReview', + 'platformProposalReviews', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformProposalReviewFilter', + 'PlatformProposalReviewOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformProposalReview', + fieldName: 'platformProposalReview', + document, + variables, + transform: (data: { + platformProposalReviews?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformProposalReview: data.platformProposalReviews?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformProposalReview: { + platformProposalReview: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformProposalReview', + 'createPlatformProposalReview', + 'platformProposalReview', + args.select, + args.data, + 'CreatePlatformProposalReviewInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformProposalReview', + fieldName: 'createPlatformProposalReview', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformProposalReviewPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformProposalReview: { + platformProposalReview: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformProposalReview', + 'updatePlatformProposalReview', + 'platformProposalReview', + args.select, + args.where.id, + args.data, + 'UpdatePlatformProposalReviewInput', + 'id', + 'platformProposalReviewPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformProposalReview', + fieldName: 'updatePlatformProposalReview', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformProposalReview: { + platformProposalReview: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformProposalReview', + 'deletePlatformProposalReview', + 'platformProposalReview', + { + id: args.where.id, + }, + 'DeletePlatformProposalReviewInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformProposalReview', + fieldName: 'deletePlatformProposalReview', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/compute/orm/models/platformProposalsChunk.ts b/sdk/constructive-react/src/compute/orm/models/platformProposalsChunk.ts new file mode 100644 index 0000000000..f7cd052dd3 --- /dev/null +++ b/sdk/constructive-react/src/compute/orm/models/platformProposalsChunk.ts @@ -0,0 +1,247 @@ +/** + * PlatformProposalsChunk 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 { + PlatformProposalsChunk, + PlatformProposalsChunkWithRelations, + PlatformProposalsChunkSelect, + PlatformProposalsChunkFilter, + PlatformProposalsChunkOrderBy, + CreatePlatformProposalsChunkInput, + UpdatePlatformProposalsChunkInput, + PlatformProposalsChunkPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformProposalsChunkModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformProposalsChunks: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformProposalsChunk', + 'platformProposalsChunks', + 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, + }, + 'PlatformProposalsChunkFilter', + 'PlatformProposalsChunkOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformProposalsChunk', + fieldName: 'platformProposalsChunks', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformProposalsChunk: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformProposalsChunk', + 'platformProposalsChunks', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformProposalsChunkFilter', + 'PlatformProposalsChunkOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformProposalsChunk', + fieldName: 'platformProposalsChunk', + document, + variables, + transform: (data: { + platformProposalsChunks?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformProposalsChunk: data.platformProposalsChunks?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformProposalsChunk: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformProposalsChunk', + 'platformProposalsChunks', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformProposalsChunkFilter', + 'PlatformProposalsChunkOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformProposalsChunk', + fieldName: 'platformProposalsChunk', + document, + variables, + transform: (data: { + platformProposalsChunks?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformProposalsChunk: data.platformProposalsChunks?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformProposalsChunk: { + platformProposalsChunk: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformProposalsChunk', + 'createPlatformProposalsChunk', + 'platformProposalsChunk', + args.select, + args.data, + 'CreatePlatformProposalsChunkInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformProposalsChunk', + fieldName: 'createPlatformProposalsChunk', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformProposalsChunkPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformProposalsChunk: { + platformProposalsChunk: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformProposalsChunk', + 'updatePlatformProposalsChunk', + 'platformProposalsChunk', + args.select, + args.where.id, + args.data, + 'UpdatePlatformProposalsChunkInput', + 'id', + 'platformProposalsChunkPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformProposalsChunk', + fieldName: 'updatePlatformProposalsChunk', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformProposalsChunk: { + platformProposalsChunk: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformProposalsChunk', + 'deletePlatformProposalsChunk', + 'platformProposalsChunk', + { + id: args.where.id, + }, + 'DeletePlatformProposalsChunkInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformProposalsChunk', + fieldName: 'deletePlatformProposalsChunk', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/compute/orm/models/platformRegistry.ts b/sdk/constructive-react/src/compute/orm/models/platformRegistry.ts new file mode 100644 index 0000000000..8d7284f780 --- /dev/null +++ b/sdk/constructive-react/src/compute/orm/models/platformRegistry.ts @@ -0,0 +1,245 @@ +/** + * PlatformRegistry 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 { + PlatformRegistry, + PlatformRegistryWithRelations, + PlatformRegistrySelect, + PlatformRegistryFilter, + PlatformRegistryOrderBy, + CreatePlatformRegistryInput, + UpdatePlatformRegistryInput, + PlatformRegistryPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformRegistryModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformRegistries: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformRegistry', + 'platformRegistries', + 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, + }, + 'PlatformRegistryFilter', + 'PlatformRegistryOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformRegistry', + fieldName: 'platformRegistries', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformRegistry: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformRegistry', + 'platformRegistries', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformRegistryFilter', + 'PlatformRegistryOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformRegistry', + fieldName: 'platformRegistry', + document, + variables, + transform: (data: { + platformRegistries?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformRegistry: data.platformRegistries?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformRegistry: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformRegistry', + 'platformRegistries', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformRegistryFilter', + 'PlatformRegistryOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformRegistry', + fieldName: 'platformRegistry', + document, + variables, + transform: (data: { + platformRegistries?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformRegistry: data.platformRegistries?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformRegistry: { + platformRegistry: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformRegistry', + 'createPlatformRegistry', + 'platformRegistry', + args.select, + args.data, + 'CreatePlatformRegistryInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformRegistry', + fieldName: 'createPlatformRegistry', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformRegistryPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformRegistry: { + platformRegistry: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformRegistry', + 'updatePlatformRegistry', + 'platformRegistry', + args.select, + args.where.id, + args.data, + 'UpdatePlatformRegistryInput', + 'id', + 'platformRegistryPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformRegistry', + fieldName: 'updatePlatformRegistry', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformRegistry: { + platformRegistry: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformRegistry', + 'deletePlatformRegistry', + 'platformRegistry', + { + id: args.where.id, + }, + 'DeletePlatformRegistryInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformRegistry', + fieldName: 'deletePlatformRegistry', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/compute/orm/models/platformRegistryBinding.ts b/sdk/constructive-react/src/compute/orm/models/platformRegistryBinding.ts new file mode 100644 index 0000000000..45be7743fa --- /dev/null +++ b/sdk/constructive-react/src/compute/orm/models/platformRegistryBinding.ts @@ -0,0 +1,247 @@ +/** + * PlatformRegistryBinding 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 { + PlatformRegistryBinding, + PlatformRegistryBindingWithRelations, + PlatformRegistryBindingSelect, + PlatformRegistryBindingFilter, + PlatformRegistryBindingOrderBy, + CreatePlatformRegistryBindingInput, + UpdatePlatformRegistryBindingInput, + PlatformRegistryBindingPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformRegistryBindingModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformRegistryBindings: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformRegistryBinding', + 'platformRegistryBindings', + 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, + }, + 'PlatformRegistryBindingFilter', + 'PlatformRegistryBindingOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformRegistryBinding', + fieldName: 'platformRegistryBindings', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformRegistryBinding: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformRegistryBinding', + 'platformRegistryBindings', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformRegistryBindingFilter', + 'PlatformRegistryBindingOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformRegistryBinding', + fieldName: 'platformRegistryBinding', + document, + variables, + transform: (data: { + platformRegistryBindings?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformRegistryBinding: data.platformRegistryBindings?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformRegistryBinding: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformRegistryBinding', + 'platformRegistryBindings', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformRegistryBindingFilter', + 'PlatformRegistryBindingOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformRegistryBinding', + fieldName: 'platformRegistryBinding', + document, + variables, + transform: (data: { + platformRegistryBindings?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformRegistryBinding: data.platformRegistryBindings?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformRegistryBinding: { + platformRegistryBinding: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformRegistryBinding', + 'createPlatformRegistryBinding', + 'platformRegistryBinding', + args.select, + args.data, + 'CreatePlatformRegistryBindingInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformRegistryBinding', + fieldName: 'createPlatformRegistryBinding', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformRegistryBindingPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformRegistryBinding: { + platformRegistryBinding: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformRegistryBinding', + 'updatePlatformRegistryBinding', + 'platformRegistryBinding', + args.select, + args.where.id, + args.data, + 'UpdatePlatformRegistryBindingInput', + 'id', + 'platformRegistryBindingPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformRegistryBinding', + fieldName: 'updatePlatformRegistryBinding', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformRegistryBinding: { + platformRegistryBinding: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformRegistryBinding', + 'deletePlatformRegistryBinding', + 'platformRegistryBinding', + { + id: args.where.id, + }, + 'DeletePlatformRegistryBindingInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformRegistryBinding', + fieldName: 'deletePlatformRegistryBinding', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/compute/orm/models/platformRegistryGrant.ts b/sdk/constructive-react/src/compute/orm/models/platformRegistryGrant.ts new file mode 100644 index 0000000000..02e09c662b --- /dev/null +++ b/sdk/constructive-react/src/compute/orm/models/platformRegistryGrant.ts @@ -0,0 +1,247 @@ +/** + * PlatformRegistryGrant 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 { + PlatformRegistryGrant, + PlatformRegistryGrantWithRelations, + PlatformRegistryGrantSelect, + PlatformRegistryGrantFilter, + PlatformRegistryGrantOrderBy, + CreatePlatformRegistryGrantInput, + UpdatePlatformRegistryGrantInput, + PlatformRegistryGrantPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformRegistryGrantModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformRegistryGrants: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformRegistryGrant', + 'platformRegistryGrants', + 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, + }, + 'PlatformRegistryGrantFilter', + 'PlatformRegistryGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformRegistryGrant', + fieldName: 'platformRegistryGrants', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformRegistryGrant: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformRegistryGrant', + 'platformRegistryGrants', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformRegistryGrantFilter', + 'PlatformRegistryGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformRegistryGrant', + fieldName: 'platformRegistryGrant', + document, + variables, + transform: (data: { + platformRegistryGrants?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformRegistryGrant: data.platformRegistryGrants?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformRegistryGrant: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformRegistryGrant', + 'platformRegistryGrants', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformRegistryGrantFilter', + 'PlatformRegistryGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformRegistryGrant', + fieldName: 'platformRegistryGrant', + document, + variables, + transform: (data: { + platformRegistryGrants?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformRegistryGrant: data.platformRegistryGrants?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformRegistryGrant: { + platformRegistryGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformRegistryGrant', + 'createPlatformRegistryGrant', + 'platformRegistryGrant', + args.select, + args.data, + 'CreatePlatformRegistryGrantInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformRegistryGrant', + fieldName: 'createPlatformRegistryGrant', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformRegistryGrantPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformRegistryGrant: { + platformRegistryGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformRegistryGrant', + 'updatePlatformRegistryGrant', + 'platformRegistryGrant', + args.select, + args.where.id, + args.data, + 'UpdatePlatformRegistryGrantInput', + 'id', + 'platformRegistryGrantPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformRegistryGrant', + fieldName: 'updatePlatformRegistryGrant', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformRegistryGrant: { + platformRegistryGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformRegistryGrant', + 'deletePlatformRegistryGrant', + 'platformRegistryGrant', + { + id: args.where.id, + }, + 'DeletePlatformRegistryGrantInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformRegistryGrant', + fieldName: 'deletePlatformRegistryGrant', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/compute/orm/models/platformRepository.ts b/sdk/constructive-react/src/compute/orm/models/platformRepository.ts new file mode 100644 index 0000000000..d24c3b7098 --- /dev/null +++ b/sdk/constructive-react/src/compute/orm/models/platformRepository.ts @@ -0,0 +1,245 @@ +/** + * PlatformRepository 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 { + PlatformRepository, + PlatformRepositoryWithRelations, + PlatformRepositorySelect, + PlatformRepositoryFilter, + PlatformRepositoryOrderBy, + CreatePlatformRepositoryInput, + UpdatePlatformRepositoryInput, + PlatformRepositoryPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformRepositoryModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformRepositories: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformRepository', + 'platformRepositories', + 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, + }, + 'PlatformRepositoryFilter', + 'PlatformRepositoryOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformRepository', + fieldName: 'platformRepositories', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformRepository: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformRepository', + 'platformRepositories', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformRepositoryFilter', + 'PlatformRepositoryOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformRepository', + fieldName: 'platformRepository', + document, + variables, + transform: (data: { + platformRepositories?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformRepository: data.platformRepositories?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformRepository: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformRepository', + 'platformRepositories', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformRepositoryFilter', + 'PlatformRepositoryOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformRepository', + fieldName: 'platformRepository', + document, + variables, + transform: (data: { + platformRepositories?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformRepository: data.platformRepositories?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformRepository: { + platformRepository: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformRepository', + 'createPlatformRepository', + 'platformRepository', + args.select, + args.data, + 'CreatePlatformRepositoryInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformRepository', + fieldName: 'createPlatformRepository', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformRepositoryPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformRepository: { + platformRepository: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformRepository', + 'updatePlatformRepository', + 'platformRepository', + args.select, + args.where.id, + args.data, + 'UpdatePlatformRepositoryInput', + 'id', + 'platformRepositoryPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformRepository', + fieldName: 'updatePlatformRepository', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformRepository: { + platformRepository: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformRepository', + 'deletePlatformRepository', + 'platformRepository', + { + id: args.where.id, + }, + 'DeletePlatformRepositoryInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformRepository', + fieldName: 'deletePlatformRepository', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/compute/orm/models/platformRepositoryEvent.ts b/sdk/constructive-react/src/compute/orm/models/platformRepositoryEvent.ts new file mode 100644 index 0000000000..df0366dd91 --- /dev/null +++ b/sdk/constructive-react/src/compute/orm/models/platformRepositoryEvent.ts @@ -0,0 +1,247 @@ +/** + * PlatformRepositoryEvent 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 { + PlatformRepositoryEvent, + PlatformRepositoryEventWithRelations, + PlatformRepositoryEventSelect, + PlatformRepositoryEventFilter, + PlatformRepositoryEventOrderBy, + CreatePlatformRepositoryEventInput, + UpdatePlatformRepositoryEventInput, + PlatformRepositoryEventPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformRepositoryEventModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformRepositoryEvents: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformRepositoryEvent', + 'platformRepositoryEvents', + 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, + }, + 'PlatformRepositoryEventFilter', + 'PlatformRepositoryEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformRepositoryEvent', + fieldName: 'platformRepositoryEvents', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformRepositoryEvent: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformRepositoryEvent', + 'platformRepositoryEvents', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformRepositoryEventFilter', + 'PlatformRepositoryEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformRepositoryEvent', + fieldName: 'platformRepositoryEvent', + document, + variables, + transform: (data: { + platformRepositoryEvents?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformRepositoryEvent: data.platformRepositoryEvents?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformRepositoryEvent: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformRepositoryEvent', + 'platformRepositoryEvents', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformRepositoryEventFilter', + 'PlatformRepositoryEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformRepositoryEvent', + fieldName: 'platformRepositoryEvent', + document, + variables, + transform: (data: { + platformRepositoryEvents?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformRepositoryEvent: data.platformRepositoryEvents?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformRepositoryEvent: { + platformRepositoryEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformRepositoryEvent', + 'createPlatformRepositoryEvent', + 'platformRepositoryEvent', + args.select, + args.data, + 'CreatePlatformRepositoryEventInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformRepositoryEvent', + fieldName: 'createPlatformRepositoryEvent', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformRepositoryEventPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformRepositoryEvent: { + platformRepositoryEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformRepositoryEvent', + 'updatePlatformRepositoryEvent', + 'platformRepositoryEvent', + args.select, + args.where.id, + args.data, + 'UpdatePlatformRepositoryEventInput', + 'id', + 'platformRepositoryEventPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformRepositoryEvent', + fieldName: 'updatePlatformRepositoryEvent', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformRepositoryEvent: { + platformRepositoryEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformRepositoryEvent', + 'deletePlatformRepositoryEvent', + 'platformRepositoryEvent', + { + id: args.where.id, + }, + 'DeletePlatformRepositoryEventInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformRepositoryEvent', + fieldName: 'deletePlatformRepositoryEvent', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/compute/orm/models/platformRepositoryRequiredCheck.ts b/sdk/constructive-react/src/compute/orm/models/platformRepositoryRequiredCheck.ts new file mode 100644 index 0000000000..86e3c8bd5e --- /dev/null +++ b/sdk/constructive-react/src/compute/orm/models/platformRepositoryRequiredCheck.ts @@ -0,0 +1,273 @@ +/** + * PlatformRepositoryRequiredCheck 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 { + PlatformRepositoryRequiredCheck, + PlatformRepositoryRequiredCheckWithRelations, + PlatformRepositoryRequiredCheckSelect, + PlatformRepositoryRequiredCheckFilter, + PlatformRepositoryRequiredCheckOrderBy, + CreatePlatformRepositoryRequiredCheckInput, + UpdatePlatformRepositoryRequiredCheckInput, + PlatformRepositoryRequiredCheckPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformRepositoryRequiredCheckModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs< + S, + PlatformRepositoryRequiredCheckFilter, + PlatformRepositoryRequiredCheckOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformRepositoryRequiredChecks: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformRepositoryRequiredCheck', + 'platformRepositoryRequiredChecks', + 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, + }, + 'PlatformRepositoryRequiredCheckFilter', + 'PlatformRepositoryRequiredCheckOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformRepositoryRequiredCheck', + fieldName: 'platformRepositoryRequiredChecks', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs< + S, + PlatformRepositoryRequiredCheckFilter, + PlatformRepositoryRequiredCheckOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformRepositoryRequiredCheck: InferSelectResult< + PlatformRepositoryRequiredCheckWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformRepositoryRequiredCheck', + 'platformRepositoryRequiredChecks', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformRepositoryRequiredCheckFilter', + 'PlatformRepositoryRequiredCheckOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformRepositoryRequiredCheck', + fieldName: 'platformRepositoryRequiredCheck', + document, + variables, + transform: (data: { + platformRepositoryRequiredChecks?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformRepositoryRequiredCheck: data.platformRepositoryRequiredChecks?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformRepositoryRequiredCheck: InferSelectResult< + PlatformRepositoryRequiredCheckWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformRepositoryRequiredCheck', + 'platformRepositoryRequiredChecks', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformRepositoryRequiredCheckFilter', + 'PlatformRepositoryRequiredCheckOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformRepositoryRequiredCheck', + fieldName: 'platformRepositoryRequiredCheck', + document, + variables, + transform: (data: { + platformRepositoryRequiredChecks?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformRepositoryRequiredCheck: data.platformRepositoryRequiredChecks?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs< + S, + CreatePlatformRepositoryRequiredCheckInput['platformRepositoryRequiredCheck'] + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformRepositoryRequiredCheck: { + platformRepositoryRequiredCheck: InferSelectResult< + PlatformRepositoryRequiredCheckWithRelations, + S + >; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformRepositoryRequiredCheck', + 'createPlatformRepositoryRequiredCheck', + 'platformRepositoryRequiredCheck', + args.select, + args.data, + 'CreatePlatformRepositoryRequiredCheckInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformRepositoryRequiredCheck', + fieldName: 'createPlatformRepositoryRequiredCheck', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformRepositoryRequiredCheckPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformRepositoryRequiredCheck: { + platformRepositoryRequiredCheck: InferSelectResult< + PlatformRepositoryRequiredCheckWithRelations, + S + >; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformRepositoryRequiredCheck', + 'updatePlatformRepositoryRequiredCheck', + 'platformRepositoryRequiredCheck', + args.select, + args.where.id, + args.data, + 'UpdatePlatformRepositoryRequiredCheckInput', + 'id', + 'platformRepositoryRequiredCheckPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformRepositoryRequiredCheck', + fieldName: 'updatePlatformRepositoryRequiredCheck', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformRepositoryRequiredCheck: { + platformRepositoryRequiredCheck: InferSelectResult< + PlatformRepositoryRequiredCheckWithRelations, + S + >; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformRepositoryRequiredCheck', + 'deletePlatformRepositoryRequiredCheck', + 'platformRepositoryRequiredCheck', + { + id: args.where.id, + }, + 'DeletePlatformRepositoryRequiredCheckInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformRepositoryRequiredCheck', + fieldName: 'deletePlatformRepositoryRequiredCheck', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/compute/orm/models/platformRepositoryWorkflow.ts b/sdk/constructive-react/src/compute/orm/models/platformRepositoryWorkflow.ts new file mode 100644 index 0000000000..542bbfd25a --- /dev/null +++ b/sdk/constructive-react/src/compute/orm/models/platformRepositoryWorkflow.ts @@ -0,0 +1,253 @@ +/** + * PlatformRepositoryWorkflow 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 { + PlatformRepositoryWorkflow, + PlatformRepositoryWorkflowWithRelations, + PlatformRepositoryWorkflowSelect, + PlatformRepositoryWorkflowFilter, + PlatformRepositoryWorkflowOrderBy, + CreatePlatformRepositoryWorkflowInput, + UpdatePlatformRepositoryWorkflowInput, + PlatformRepositoryWorkflowPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformRepositoryWorkflowModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformRepositoryWorkflows: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformRepositoryWorkflow', + 'platformRepositoryWorkflows', + 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, + }, + 'PlatformRepositoryWorkflowFilter', + 'PlatformRepositoryWorkflowOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformRepositoryWorkflow', + fieldName: 'platformRepositoryWorkflows', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformRepositoryWorkflow: InferSelectResult< + PlatformRepositoryWorkflowWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformRepositoryWorkflow', + 'platformRepositoryWorkflows', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformRepositoryWorkflowFilter', + 'PlatformRepositoryWorkflowOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformRepositoryWorkflow', + fieldName: 'platformRepositoryWorkflow', + document, + variables, + transform: (data: { + platformRepositoryWorkflows?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformRepositoryWorkflow: data.platformRepositoryWorkflows?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformRepositoryWorkflow: InferSelectResult< + PlatformRepositoryWorkflowWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformRepositoryWorkflow', + 'platformRepositoryWorkflows', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformRepositoryWorkflowFilter', + 'PlatformRepositoryWorkflowOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformRepositoryWorkflow', + fieldName: 'platformRepositoryWorkflow', + document, + variables, + transform: (data: { + platformRepositoryWorkflows?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformRepositoryWorkflow: data.platformRepositoryWorkflows?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformRepositoryWorkflow: { + platformRepositoryWorkflow: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformRepositoryWorkflow', + 'createPlatformRepositoryWorkflow', + 'platformRepositoryWorkflow', + args.select, + args.data, + 'CreatePlatformRepositoryWorkflowInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformRepositoryWorkflow', + fieldName: 'createPlatformRepositoryWorkflow', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformRepositoryWorkflowPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformRepositoryWorkflow: { + platformRepositoryWorkflow: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformRepositoryWorkflow', + 'updatePlatformRepositoryWorkflow', + 'platformRepositoryWorkflow', + args.select, + args.where.id, + args.data, + 'UpdatePlatformRepositoryWorkflowInput', + 'id', + 'platformRepositoryWorkflowPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformRepositoryWorkflow', + fieldName: 'updatePlatformRepositoryWorkflow', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformRepositoryWorkflow: { + platformRepositoryWorkflow: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformRepositoryWorkflow', + 'deletePlatformRepositoryWorkflow', + 'platformRepositoryWorkflow', + { + id: args.where.id, + }, + 'DeletePlatformRepositoryWorkflowInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformRepositoryWorkflow', + fieldName: 'deletePlatformRepositoryWorkflow', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/compute/orm/models/platformResourceObservedStorage.ts b/sdk/constructive-react/src/compute/orm/models/platformResourceObservedStorage.ts new file mode 100644 index 0000000000..80a274b483 --- /dev/null +++ b/sdk/constructive-react/src/compute/orm/models/platformResourceObservedStorage.ts @@ -0,0 +1,153 @@ +/** + * PlatformResourceObservedStorage 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 { + PlatformResourceObservedStorage, + PlatformResourceObservedStorageWithRelations, + PlatformResourceObservedStorageSelect, + PlatformResourceObservedStorageFilter, + PlatformResourceObservedStorageOrderBy, + CreatePlatformResourceObservedStorageInput, + UpdatePlatformResourceObservedStorageInput, + PlatformResourceObservedStoragePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformResourceObservedStorageModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs< + S, + PlatformResourceObservedStorageFilter, + PlatformResourceObservedStorageOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformResourceObservedStorages: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformResourceObservedStorage', + 'platformResourceObservedStorages', + 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, + }, + 'PlatformResourceObservedStorageFilter', + 'PlatformResourceObservedStorageOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformResourceObservedStorage', + fieldName: 'platformResourceObservedStorages', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs< + S, + PlatformResourceObservedStorageFilter, + PlatformResourceObservedStorageOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformResourceObservedStorage: InferSelectResult< + PlatformResourceObservedStorageWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformResourceObservedStorage', + 'platformResourceObservedStorages', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformResourceObservedStorageFilter', + 'PlatformResourceObservedStorageOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformResourceObservedStorage', + fieldName: 'platformResourceObservedStorage', + document, + variables, + transform: (data: { + platformResourceObservedStorages?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformResourceObservedStorage: data.platformResourceObservedStorages?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs< + S, + CreatePlatformResourceObservedStorageInput['platformResourceObservedStorage'] + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformResourceObservedStorage: { + platformResourceObservedStorage: InferSelectResult< + PlatformResourceObservedStorageWithRelations, + S + >; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformResourceObservedStorage', + 'createPlatformResourceObservedStorage', + 'platformResourceObservedStorage', + args.select, + args.data, + 'CreatePlatformResourceObservedStorageInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformResourceObservedStorage', + fieldName: 'createPlatformResourceObservedStorage', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/compute/orm/models/proposal.ts b/sdk/constructive-react/src/compute/orm/models/proposal.ts new file mode 100644 index 0000000000..e43894adfd --- /dev/null +++ b/sdk/constructive-react/src/compute/orm/models/proposal.ts @@ -0,0 +1,245 @@ +/** + * Proposal 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 { + Proposal, + ProposalWithRelations, + ProposalSelect, + ProposalFilter, + ProposalOrderBy, + CreateProposalInput, + UpdateProposalInput, + ProposalPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class ProposalModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + proposals: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'Proposal', + 'proposals', + 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, + }, + 'ProposalFilter', + 'ProposalOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Proposal', + fieldName: 'proposals', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + proposal: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'Proposal', + 'proposals', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'ProposalFilter', + 'ProposalOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Proposal', + fieldName: 'proposal', + document, + variables, + transform: (data: { + proposals?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + proposal: data.proposals?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + proposal: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'Proposal', + 'proposals', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'ProposalFilter', + 'ProposalOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Proposal', + fieldName: 'proposal', + document, + variables, + transform: (data: { + proposals?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + proposal: data.proposals?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createProposal: { + proposal: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'Proposal', + 'createProposal', + 'proposal', + args.select, + args.data, + 'CreateProposalInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Proposal', + fieldName: 'createProposal', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + ProposalPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateProposal: { + proposal: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'Proposal', + 'updateProposal', + 'proposal', + args.select, + args.where.id, + args.data, + 'UpdateProposalInput', + 'id', + 'proposalPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Proposal', + fieldName: 'updateProposal', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteProposal: { + proposal: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'Proposal', + 'deleteProposal', + 'proposal', + { + id: args.where.id, + }, + 'DeleteProposalInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Proposal', + fieldName: 'deleteProposal', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/compute/orm/models/proposalComment.ts b/sdk/constructive-react/src/compute/orm/models/proposalComment.ts new file mode 100644 index 0000000000..e2fd0e15be --- /dev/null +++ b/sdk/constructive-react/src/compute/orm/models/proposalComment.ts @@ -0,0 +1,245 @@ +/** + * ProposalComment 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 { + ProposalComment, + ProposalCommentWithRelations, + ProposalCommentSelect, + ProposalCommentFilter, + ProposalCommentOrderBy, + CreateProposalCommentInput, + UpdateProposalCommentInput, + ProposalCommentPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class ProposalCommentModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + proposalComments: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'ProposalComment', + 'proposalComments', + 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, + }, + 'ProposalCommentFilter', + 'ProposalCommentOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ProposalComment', + fieldName: 'proposalComments', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + proposalComment: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'ProposalComment', + 'proposalComments', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'ProposalCommentFilter', + 'ProposalCommentOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ProposalComment', + fieldName: 'proposalComment', + document, + variables, + transform: (data: { + proposalComments?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + proposalComment: data.proposalComments?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + proposalComment: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'ProposalComment', + 'proposalComments', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'ProposalCommentFilter', + 'ProposalCommentOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ProposalComment', + fieldName: 'proposalComment', + document, + variables, + transform: (data: { + proposalComments?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + proposalComment: data.proposalComments?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createProposalComment: { + proposalComment: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'ProposalComment', + 'createProposalComment', + 'proposalComment', + args.select, + args.data, + 'CreateProposalCommentInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ProposalComment', + fieldName: 'createProposalComment', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + ProposalCommentPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateProposalComment: { + proposalComment: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'ProposalComment', + 'updateProposalComment', + 'proposalComment', + args.select, + args.where.id, + args.data, + 'UpdateProposalCommentInput', + 'id', + 'proposalCommentPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ProposalComment', + fieldName: 'updateProposalComment', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteProposalComment: { + proposalComment: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'ProposalComment', + 'deleteProposalComment', + 'proposalComment', + { + id: args.where.id, + }, + 'DeleteProposalCommentInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ProposalComment', + fieldName: 'deleteProposalComment', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/compute/orm/models/proposalFileView.ts b/sdk/constructive-react/src/compute/orm/models/proposalFileView.ts new file mode 100644 index 0000000000..a4e61610d2 --- /dev/null +++ b/sdk/constructive-react/src/compute/orm/models/proposalFileView.ts @@ -0,0 +1,245 @@ +/** + * ProposalFileView 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 { + ProposalFileView, + ProposalFileViewWithRelations, + ProposalFileViewSelect, + ProposalFileViewFilter, + ProposalFileViewOrderBy, + CreateProposalFileViewInput, + UpdateProposalFileViewInput, + ProposalFileViewPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class ProposalFileViewModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + proposalFileViews: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'ProposalFileView', + 'proposalFileViews', + 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, + }, + 'ProposalFileViewFilter', + 'ProposalFileViewOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ProposalFileView', + fieldName: 'proposalFileViews', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + proposalFileView: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'ProposalFileView', + 'proposalFileViews', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'ProposalFileViewFilter', + 'ProposalFileViewOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ProposalFileView', + fieldName: 'proposalFileView', + document, + variables, + transform: (data: { + proposalFileViews?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + proposalFileView: data.proposalFileViews?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + proposalFileView: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'ProposalFileView', + 'proposalFileViews', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'ProposalFileViewFilter', + 'ProposalFileViewOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ProposalFileView', + fieldName: 'proposalFileView', + document, + variables, + transform: (data: { + proposalFileViews?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + proposalFileView: data.proposalFileViews?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createProposalFileView: { + proposalFileView: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'ProposalFileView', + 'createProposalFileView', + 'proposalFileView', + args.select, + args.data, + 'CreateProposalFileViewInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ProposalFileView', + fieldName: 'createProposalFileView', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + ProposalFileViewPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateProposalFileView: { + proposalFileView: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'ProposalFileView', + 'updateProposalFileView', + 'proposalFileView', + args.select, + args.where.id, + args.data, + 'UpdateProposalFileViewInput', + 'id', + 'proposalFileViewPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ProposalFileView', + fieldName: 'updateProposalFileView', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteProposalFileView: { + proposalFileView: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'ProposalFileView', + 'deleteProposalFileView', + 'proposalFileView', + { + id: args.where.id, + }, + 'DeleteProposalFileViewInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ProposalFileView', + fieldName: 'deleteProposalFileView', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/compute/orm/models/proposalReaction.ts b/sdk/constructive-react/src/compute/orm/models/proposalReaction.ts new file mode 100644 index 0000000000..d8c1d12f70 --- /dev/null +++ b/sdk/constructive-react/src/compute/orm/models/proposalReaction.ts @@ -0,0 +1,245 @@ +/** + * ProposalReaction 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 { + ProposalReaction, + ProposalReactionWithRelations, + ProposalReactionSelect, + ProposalReactionFilter, + ProposalReactionOrderBy, + CreateProposalReactionInput, + UpdateProposalReactionInput, + ProposalReactionPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class ProposalReactionModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + proposalReactions: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'ProposalReaction', + 'proposalReactions', + 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, + }, + 'ProposalReactionFilter', + 'ProposalReactionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ProposalReaction', + fieldName: 'proposalReactions', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + proposalReaction: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'ProposalReaction', + 'proposalReactions', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'ProposalReactionFilter', + 'ProposalReactionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ProposalReaction', + fieldName: 'proposalReaction', + document, + variables, + transform: (data: { + proposalReactions?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + proposalReaction: data.proposalReactions?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + proposalReaction: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'ProposalReaction', + 'proposalReactions', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'ProposalReactionFilter', + 'ProposalReactionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ProposalReaction', + fieldName: 'proposalReaction', + document, + variables, + transform: (data: { + proposalReactions?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + proposalReaction: data.proposalReactions?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createProposalReaction: { + proposalReaction: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'ProposalReaction', + 'createProposalReaction', + 'proposalReaction', + args.select, + args.data, + 'CreateProposalReactionInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ProposalReaction', + fieldName: 'createProposalReaction', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + ProposalReactionPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateProposalReaction: { + proposalReaction: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'ProposalReaction', + 'updateProposalReaction', + 'proposalReaction', + args.select, + args.where.id, + args.data, + 'UpdateProposalReactionInput', + 'id', + 'proposalReactionPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ProposalReaction', + fieldName: 'updateProposalReaction', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteProposalReaction: { + proposalReaction: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'ProposalReaction', + 'deleteProposalReaction', + 'proposalReaction', + { + id: args.where.id, + }, + 'DeleteProposalReactionInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ProposalReaction', + fieldName: 'deleteProposalReaction', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/compute/orm/models/proposalReview.ts b/sdk/constructive-react/src/compute/orm/models/proposalReview.ts new file mode 100644 index 0000000000..d0f097ccf3 --- /dev/null +++ b/sdk/constructive-react/src/compute/orm/models/proposalReview.ts @@ -0,0 +1,245 @@ +/** + * ProposalReview 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 { + ProposalReview, + ProposalReviewWithRelations, + ProposalReviewSelect, + ProposalReviewFilter, + ProposalReviewOrderBy, + CreateProposalReviewInput, + UpdateProposalReviewInput, + ProposalReviewPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class ProposalReviewModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + proposalReviews: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'ProposalReview', + 'proposalReviews', + 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, + }, + 'ProposalReviewFilter', + 'ProposalReviewOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ProposalReview', + fieldName: 'proposalReviews', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + proposalReview: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'ProposalReview', + 'proposalReviews', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'ProposalReviewFilter', + 'ProposalReviewOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ProposalReview', + fieldName: 'proposalReview', + document, + variables, + transform: (data: { + proposalReviews?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + proposalReview: data.proposalReviews?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + proposalReview: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'ProposalReview', + 'proposalReviews', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'ProposalReviewFilter', + 'ProposalReviewOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ProposalReview', + fieldName: 'proposalReview', + document, + variables, + transform: (data: { + proposalReviews?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + proposalReview: data.proposalReviews?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createProposalReview: { + proposalReview: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'ProposalReview', + 'createProposalReview', + 'proposalReview', + args.select, + args.data, + 'CreateProposalReviewInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ProposalReview', + fieldName: 'createProposalReview', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + ProposalReviewPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateProposalReview: { + proposalReview: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'ProposalReview', + 'updateProposalReview', + 'proposalReview', + args.select, + args.where.id, + args.data, + 'UpdateProposalReviewInput', + 'id', + 'proposalReviewPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ProposalReview', + fieldName: 'updateProposalReview', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteProposalReview: { + proposalReview: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'ProposalReview', + 'deleteProposalReview', + 'proposalReview', + { + id: args.where.id, + }, + 'DeleteProposalReviewInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ProposalReview', + fieldName: 'deleteProposalReview', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/compute/orm/models/proposalsChunk.ts b/sdk/constructive-react/src/compute/orm/models/proposalsChunk.ts new file mode 100644 index 0000000000..8b4127416d --- /dev/null +++ b/sdk/constructive-react/src/compute/orm/models/proposalsChunk.ts @@ -0,0 +1,245 @@ +/** + * ProposalsChunk 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 { + ProposalsChunk, + ProposalsChunkWithRelations, + ProposalsChunkSelect, + ProposalsChunkFilter, + ProposalsChunkOrderBy, + CreateProposalsChunkInput, + UpdateProposalsChunkInput, + ProposalsChunkPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class ProposalsChunkModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + proposalsChunks: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'ProposalsChunk', + 'proposalsChunks', + 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, + }, + 'ProposalsChunkFilter', + 'ProposalsChunkOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ProposalsChunk', + fieldName: 'proposalsChunks', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + proposalsChunk: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'ProposalsChunk', + 'proposalsChunks', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'ProposalsChunkFilter', + 'ProposalsChunkOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ProposalsChunk', + fieldName: 'proposalsChunk', + document, + variables, + transform: (data: { + proposalsChunks?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + proposalsChunk: data.proposalsChunks?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + proposalsChunk: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'ProposalsChunk', + 'proposalsChunks', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'ProposalsChunkFilter', + 'ProposalsChunkOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ProposalsChunk', + fieldName: 'proposalsChunk', + document, + variables, + transform: (data: { + proposalsChunks?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + proposalsChunk: data.proposalsChunks?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createProposalsChunk: { + proposalsChunk: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'ProposalsChunk', + 'createProposalsChunk', + 'proposalsChunk', + args.select, + args.data, + 'CreateProposalsChunkInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ProposalsChunk', + fieldName: 'createProposalsChunk', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + ProposalsChunkPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateProposalsChunk: { + proposalsChunk: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'ProposalsChunk', + 'updateProposalsChunk', + 'proposalsChunk', + args.select, + args.where.id, + args.data, + 'UpdateProposalsChunkInput', + 'id', + 'proposalsChunkPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ProposalsChunk', + fieldName: 'updateProposalsChunk', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteProposalsChunk: { + proposalsChunk: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'ProposalsChunk', + 'deleteProposalsChunk', + 'proposalsChunk', + { + id: args.where.id, + }, + 'DeleteProposalsChunkInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ProposalsChunk', + fieldName: 'deleteProposalsChunk', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/compute/orm/models/registry.ts b/sdk/constructive-react/src/compute/orm/models/registry.ts new file mode 100644 index 0000000000..98cb611f33 --- /dev/null +++ b/sdk/constructive-react/src/compute/orm/models/registry.ts @@ -0,0 +1,245 @@ +/** + * Registry 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 { + Registry, + RegistryWithRelations, + RegistrySelect, + RegistryFilter, + RegistryOrderBy, + CreateRegistryInput, + UpdateRegistryInput, + RegistryPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class RegistryModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + registries: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'Registry', + 'registries', + 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, + }, + 'RegistryFilter', + 'RegistryOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Registry', + fieldName: 'registries', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + registry: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'Registry', + 'registries', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'RegistryFilter', + 'RegistryOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Registry', + fieldName: 'registry', + document, + variables, + transform: (data: { + registries?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + registry: data.registries?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + registry: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'Registry', + 'registries', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'RegistryFilter', + 'RegistryOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Registry', + fieldName: 'registry', + document, + variables, + transform: (data: { + registries?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + registry: data.registries?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createRegistry: { + registry: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'Registry', + 'createRegistry', + 'registry', + args.select, + args.data, + 'CreateRegistryInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Registry', + fieldName: 'createRegistry', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + RegistryPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateRegistry: { + registry: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'Registry', + 'updateRegistry', + 'registry', + args.select, + args.where.id, + args.data, + 'UpdateRegistryInput', + 'id', + 'registryPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Registry', + fieldName: 'updateRegistry', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteRegistry: { + registry: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'Registry', + 'deleteRegistry', + 'registry', + { + id: args.where.id, + }, + 'DeleteRegistryInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Registry', + fieldName: 'deleteRegistry', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/compute/orm/models/registryBinding.ts b/sdk/constructive-react/src/compute/orm/models/registryBinding.ts new file mode 100644 index 0000000000..28782fa363 --- /dev/null +++ b/sdk/constructive-react/src/compute/orm/models/registryBinding.ts @@ -0,0 +1,245 @@ +/** + * RegistryBinding 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 { + RegistryBinding, + RegistryBindingWithRelations, + RegistryBindingSelect, + RegistryBindingFilter, + RegistryBindingOrderBy, + CreateRegistryBindingInput, + UpdateRegistryBindingInput, + RegistryBindingPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class RegistryBindingModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + registryBindings: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'RegistryBinding', + 'registryBindings', + 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, + }, + 'RegistryBindingFilter', + 'RegistryBindingOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'RegistryBinding', + fieldName: 'registryBindings', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + registryBinding: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'RegistryBinding', + 'registryBindings', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'RegistryBindingFilter', + 'RegistryBindingOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'RegistryBinding', + fieldName: 'registryBinding', + document, + variables, + transform: (data: { + registryBindings?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + registryBinding: data.registryBindings?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + registryBinding: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'RegistryBinding', + 'registryBindings', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'RegistryBindingFilter', + 'RegistryBindingOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'RegistryBinding', + fieldName: 'registryBinding', + document, + variables, + transform: (data: { + registryBindings?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + registryBinding: data.registryBindings?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createRegistryBinding: { + registryBinding: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'RegistryBinding', + 'createRegistryBinding', + 'registryBinding', + args.select, + args.data, + 'CreateRegistryBindingInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'RegistryBinding', + fieldName: 'createRegistryBinding', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + RegistryBindingPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateRegistryBinding: { + registryBinding: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'RegistryBinding', + 'updateRegistryBinding', + 'registryBinding', + args.select, + args.where.id, + args.data, + 'UpdateRegistryBindingInput', + 'id', + 'registryBindingPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'RegistryBinding', + fieldName: 'updateRegistryBinding', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteRegistryBinding: { + registryBinding: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'RegistryBinding', + 'deleteRegistryBinding', + 'registryBinding', + { + id: args.where.id, + }, + 'DeleteRegistryBindingInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'RegistryBinding', + fieldName: 'deleteRegistryBinding', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/compute/orm/models/registryGrant.ts b/sdk/constructive-react/src/compute/orm/models/registryGrant.ts new file mode 100644 index 0000000000..96812eb211 --- /dev/null +++ b/sdk/constructive-react/src/compute/orm/models/registryGrant.ts @@ -0,0 +1,245 @@ +/** + * RegistryGrant 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 { + RegistryGrant, + RegistryGrantWithRelations, + RegistryGrantSelect, + RegistryGrantFilter, + RegistryGrantOrderBy, + CreateRegistryGrantInput, + UpdateRegistryGrantInput, + RegistryGrantPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class RegistryGrantModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + registryGrants: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'RegistryGrant', + 'registryGrants', + 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, + }, + 'RegistryGrantFilter', + 'RegistryGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'RegistryGrant', + fieldName: 'registryGrants', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + registryGrant: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'RegistryGrant', + 'registryGrants', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'RegistryGrantFilter', + 'RegistryGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'RegistryGrant', + fieldName: 'registryGrant', + document, + variables, + transform: (data: { + registryGrants?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + registryGrant: data.registryGrants?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + registryGrant: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'RegistryGrant', + 'registryGrants', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'RegistryGrantFilter', + 'RegistryGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'RegistryGrant', + fieldName: 'registryGrant', + document, + variables, + transform: (data: { + registryGrants?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + registryGrant: data.registryGrants?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createRegistryGrant: { + registryGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'RegistryGrant', + 'createRegistryGrant', + 'registryGrant', + args.select, + args.data, + 'CreateRegistryGrantInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'RegistryGrant', + fieldName: 'createRegistryGrant', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + RegistryGrantPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateRegistryGrant: { + registryGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'RegistryGrant', + 'updateRegistryGrant', + 'registryGrant', + args.select, + args.where.id, + args.data, + 'UpdateRegistryGrantInput', + 'id', + 'registryGrantPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'RegistryGrant', + fieldName: 'updateRegistryGrant', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteRegistryGrant: { + registryGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'RegistryGrant', + 'deleteRegistryGrant', + 'registryGrant', + { + id: args.where.id, + }, + 'DeleteRegistryGrantInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'RegistryGrant', + fieldName: 'deleteRegistryGrant', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/compute/orm/models/repository.ts b/sdk/constructive-react/src/compute/orm/models/repository.ts new file mode 100644 index 0000000000..8a55853452 --- /dev/null +++ b/sdk/constructive-react/src/compute/orm/models/repository.ts @@ -0,0 +1,245 @@ +/** + * Repository 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 { + Repository, + RepositoryWithRelations, + RepositorySelect, + RepositoryFilter, + RepositoryOrderBy, + CreateRepositoryInput, + UpdateRepositoryInput, + RepositoryPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class RepositoryModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + repositories: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'Repository', + 'repositories', + 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, + }, + 'RepositoryFilter', + 'RepositoryOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Repository', + fieldName: 'repositories', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + repository: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'Repository', + 'repositories', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'RepositoryFilter', + 'RepositoryOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Repository', + fieldName: 'repository', + document, + variables, + transform: (data: { + repositories?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + repository: data.repositories?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + repository: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'Repository', + 'repositories', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'RepositoryFilter', + 'RepositoryOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Repository', + fieldName: 'repository', + document, + variables, + transform: (data: { + repositories?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + repository: data.repositories?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createRepository: { + repository: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'Repository', + 'createRepository', + 'repository', + args.select, + args.data, + 'CreateRepositoryInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Repository', + fieldName: 'createRepository', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + RepositoryPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateRepository: { + repository: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'Repository', + 'updateRepository', + 'repository', + args.select, + args.where.id, + args.data, + 'UpdateRepositoryInput', + 'id', + 'repositoryPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Repository', + fieldName: 'updateRepository', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteRepository: { + repository: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'Repository', + 'deleteRepository', + 'repository', + { + id: args.where.id, + }, + 'DeleteRepositoryInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Repository', + fieldName: 'deleteRepository', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/compute/orm/models/repositoryEvent.ts b/sdk/constructive-react/src/compute/orm/models/repositoryEvent.ts new file mode 100644 index 0000000000..9e56af768a --- /dev/null +++ b/sdk/constructive-react/src/compute/orm/models/repositoryEvent.ts @@ -0,0 +1,245 @@ +/** + * RepositoryEvent 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 { + RepositoryEvent, + RepositoryEventWithRelations, + RepositoryEventSelect, + RepositoryEventFilter, + RepositoryEventOrderBy, + CreateRepositoryEventInput, + UpdateRepositoryEventInput, + RepositoryEventPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class RepositoryEventModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + repositoryEvents: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'RepositoryEvent', + 'repositoryEvents', + 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, + }, + 'RepositoryEventFilter', + 'RepositoryEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'RepositoryEvent', + fieldName: 'repositoryEvents', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + repositoryEvent: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'RepositoryEvent', + 'repositoryEvents', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'RepositoryEventFilter', + 'RepositoryEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'RepositoryEvent', + fieldName: 'repositoryEvent', + document, + variables, + transform: (data: { + repositoryEvents?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + repositoryEvent: data.repositoryEvents?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + repositoryEvent: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'RepositoryEvent', + 'repositoryEvents', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'RepositoryEventFilter', + 'RepositoryEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'RepositoryEvent', + fieldName: 'repositoryEvent', + document, + variables, + transform: (data: { + repositoryEvents?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + repositoryEvent: data.repositoryEvents?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createRepositoryEvent: { + repositoryEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'RepositoryEvent', + 'createRepositoryEvent', + 'repositoryEvent', + args.select, + args.data, + 'CreateRepositoryEventInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'RepositoryEvent', + fieldName: 'createRepositoryEvent', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + RepositoryEventPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateRepositoryEvent: { + repositoryEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'RepositoryEvent', + 'updateRepositoryEvent', + 'repositoryEvent', + args.select, + args.where.id, + args.data, + 'UpdateRepositoryEventInput', + 'id', + 'repositoryEventPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'RepositoryEvent', + fieldName: 'updateRepositoryEvent', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteRepositoryEvent: { + repositoryEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'RepositoryEvent', + 'deleteRepositoryEvent', + 'repositoryEvent', + { + id: args.where.id, + }, + 'DeleteRepositoryEventInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'RepositoryEvent', + fieldName: 'deleteRepositoryEvent', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/compute/orm/models/repositoryRequiredCheck.ts b/sdk/constructive-react/src/compute/orm/models/repositoryRequiredCheck.ts new file mode 100644 index 0000000000..9f3c6c5396 --- /dev/null +++ b/sdk/constructive-react/src/compute/orm/models/repositoryRequiredCheck.ts @@ -0,0 +1,247 @@ +/** + * RepositoryRequiredCheck 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 { + RepositoryRequiredCheck, + RepositoryRequiredCheckWithRelations, + RepositoryRequiredCheckSelect, + RepositoryRequiredCheckFilter, + RepositoryRequiredCheckOrderBy, + CreateRepositoryRequiredCheckInput, + UpdateRepositoryRequiredCheckInput, + RepositoryRequiredCheckPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class RepositoryRequiredCheckModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + repositoryRequiredChecks: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'RepositoryRequiredCheck', + 'repositoryRequiredChecks', + 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, + }, + 'RepositoryRequiredCheckFilter', + 'RepositoryRequiredCheckOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'RepositoryRequiredCheck', + fieldName: 'repositoryRequiredChecks', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + repositoryRequiredCheck: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'RepositoryRequiredCheck', + 'repositoryRequiredChecks', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'RepositoryRequiredCheckFilter', + 'RepositoryRequiredCheckOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'RepositoryRequiredCheck', + fieldName: 'repositoryRequiredCheck', + document, + variables, + transform: (data: { + repositoryRequiredChecks?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + repositoryRequiredCheck: data.repositoryRequiredChecks?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + repositoryRequiredCheck: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'RepositoryRequiredCheck', + 'repositoryRequiredChecks', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'RepositoryRequiredCheckFilter', + 'RepositoryRequiredCheckOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'RepositoryRequiredCheck', + fieldName: 'repositoryRequiredCheck', + document, + variables, + transform: (data: { + repositoryRequiredChecks?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + repositoryRequiredCheck: data.repositoryRequiredChecks?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createRepositoryRequiredCheck: { + repositoryRequiredCheck: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'RepositoryRequiredCheck', + 'createRepositoryRequiredCheck', + 'repositoryRequiredCheck', + args.select, + args.data, + 'CreateRepositoryRequiredCheckInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'RepositoryRequiredCheck', + fieldName: 'createRepositoryRequiredCheck', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + RepositoryRequiredCheckPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateRepositoryRequiredCheck: { + repositoryRequiredCheck: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'RepositoryRequiredCheck', + 'updateRepositoryRequiredCheck', + 'repositoryRequiredCheck', + args.select, + args.where.id, + args.data, + 'UpdateRepositoryRequiredCheckInput', + 'id', + 'repositoryRequiredCheckPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'RepositoryRequiredCheck', + fieldName: 'updateRepositoryRequiredCheck', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteRepositoryRequiredCheck: { + repositoryRequiredCheck: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'RepositoryRequiredCheck', + 'deleteRepositoryRequiredCheck', + 'repositoryRequiredCheck', + { + id: args.where.id, + }, + 'DeleteRepositoryRequiredCheckInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'RepositoryRequiredCheck', + fieldName: 'deleteRepositoryRequiredCheck', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/compute/orm/models/repositoryWorkflow.ts b/sdk/constructive-react/src/compute/orm/models/repositoryWorkflow.ts new file mode 100644 index 0000000000..b5f325ed55 --- /dev/null +++ b/sdk/constructive-react/src/compute/orm/models/repositoryWorkflow.ts @@ -0,0 +1,245 @@ +/** + * RepositoryWorkflow 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 { + RepositoryWorkflow, + RepositoryWorkflowWithRelations, + RepositoryWorkflowSelect, + RepositoryWorkflowFilter, + RepositoryWorkflowOrderBy, + CreateRepositoryWorkflowInput, + UpdateRepositoryWorkflowInput, + RepositoryWorkflowPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class RepositoryWorkflowModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + repositoryWorkflows: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'RepositoryWorkflow', + 'repositoryWorkflows', + 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, + }, + 'RepositoryWorkflowFilter', + 'RepositoryWorkflowOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'RepositoryWorkflow', + fieldName: 'repositoryWorkflows', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + repositoryWorkflow: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'RepositoryWorkflow', + 'repositoryWorkflows', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'RepositoryWorkflowFilter', + 'RepositoryWorkflowOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'RepositoryWorkflow', + fieldName: 'repositoryWorkflow', + document, + variables, + transform: (data: { + repositoryWorkflows?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + repositoryWorkflow: data.repositoryWorkflows?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + repositoryWorkflow: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'RepositoryWorkflow', + 'repositoryWorkflows', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'RepositoryWorkflowFilter', + 'RepositoryWorkflowOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'RepositoryWorkflow', + fieldName: 'repositoryWorkflow', + document, + variables, + transform: (data: { + repositoryWorkflows?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + repositoryWorkflow: data.repositoryWorkflows?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createRepositoryWorkflow: { + repositoryWorkflow: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'RepositoryWorkflow', + 'createRepositoryWorkflow', + 'repositoryWorkflow', + args.select, + args.data, + 'CreateRepositoryWorkflowInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'RepositoryWorkflow', + fieldName: 'createRepositoryWorkflow', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + RepositoryWorkflowPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateRepositoryWorkflow: { + repositoryWorkflow: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'RepositoryWorkflow', + 'updateRepositoryWorkflow', + 'repositoryWorkflow', + args.select, + args.where.id, + args.data, + 'UpdateRepositoryWorkflowInput', + 'id', + 'repositoryWorkflowPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'RepositoryWorkflow', + fieldName: 'updateRepositoryWorkflow', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteRepositoryWorkflow: { + repositoryWorkflow: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'RepositoryWorkflow', + 'deleteRepositoryWorkflow', + 'repositoryWorkflow', + { + id: args.where.id, + }, + 'DeleteRepositoryWorkflowInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'RepositoryWorkflow', + fieldName: 'deleteRepositoryWorkflow', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/compute/orm/models/resourceObservedStorage.ts b/sdk/constructive-react/src/compute/orm/models/resourceObservedStorage.ts new file mode 100644 index 0000000000..75769aef61 --- /dev/null +++ b/sdk/constructive-react/src/compute/orm/models/resourceObservedStorage.ts @@ -0,0 +1,136 @@ +/** + * ResourceObservedStorage 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 { + ResourceObservedStorage, + ResourceObservedStorageWithRelations, + ResourceObservedStorageSelect, + ResourceObservedStorageFilter, + ResourceObservedStorageOrderBy, + CreateResourceObservedStorageInput, + UpdateResourceObservedStorageInput, + ResourceObservedStoragePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class ResourceObservedStorageModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + resourceObservedStorages: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'ResourceObservedStorage', + 'resourceObservedStorages', + 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, + }, + 'ResourceObservedStorageFilter', + 'ResourceObservedStorageOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ResourceObservedStorage', + fieldName: 'resourceObservedStorages', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + resourceObservedStorage: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'ResourceObservedStorage', + 'resourceObservedStorages', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'ResourceObservedStorageFilter', + 'ResourceObservedStorageOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ResourceObservedStorage', + fieldName: 'resourceObservedStorage', + document, + variables, + transform: (data: { + resourceObservedStorages?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + resourceObservedStorage: data.resourceObservedStorages?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createResourceObservedStorage: { + resourceObservedStorage: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'ResourceObservedStorage', + 'createResourceObservedStorage', + 'resourceObservedStorage', + args.select, + args.data, + 'CreateResourceObservedStorageInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ResourceObservedStorage', + fieldName: 'createResourceObservedStorage', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/compute/orm/mutation/index.ts b/sdk/constructive-react/src/compute/orm/mutation/index.ts index 948d1e8903..350d486e20 100644 --- a/sdk/constructive-react/src/compute/orm/mutation/index.ts +++ b/sdk/constructive-react/src/compute/orm/mutation/index.ts @@ -11,7 +11,27 @@ import type { AddEdgeAndSaveInput, AddNodeInput, AddNodeAndSaveInput, + ApproveNodeInput, CopyGraphInput, + DatabaseAddEdgeInput, + DatabaseAddEdgeAndSaveInput, + DatabaseAddNodeInput, + DatabaseAddNodeAndSaveInput, + DatabaseApproveNodeInput, + DatabaseCopyGraphInput, + DatabaseCreateFunctionGraphInput, + DatabaseGraphInitEmptyRepoInput, + DatabaseGraphInsertNodeAtPathInput, + DatabaseGraphInsertNodesAtPathsInput, + DatabaseGraphSetAndCommitInput, + DatabaseGraphSetDataAtPathInput, + DatabaseGraphSetManyAndCommitInput, + DatabaseImportDefinitionsInput, + DatabaseImportGraphJsonInput, + DatabaseSaveGraphInput, + DatabaseStartExecutionInput, + DatabaseValidateFunctionGraphInput, + FunctionInvocationsCreateSyncInput, ImportDefinitionsInput, ImportGraphJsonInput, InfraInitEmptyRepoInput, @@ -23,6 +43,7 @@ import type { InitEmptyRepoInput, InsertNodeAtPathInput, InsertNodesAtPathsInput, + PlatformFunctionInvocationsCreateSyncInput, PlatformInfraInitEmptyRepoInput, PlatformInfraInsertNodeAtPathInput, PlatformInfraInsertNodesAtPathsInput, @@ -48,7 +69,27 @@ import type { AddEdgeAndSavePayload, AddNodePayload, AddNodeAndSavePayload, + ApproveNodePayload, CopyGraphPayload, + DatabaseAddEdgePayload, + DatabaseAddEdgeAndSavePayload, + DatabaseAddNodePayload, + DatabaseAddNodeAndSavePayload, + DatabaseApproveNodePayload, + DatabaseCopyGraphPayload, + DatabaseCreateFunctionGraphPayload, + DatabaseGraphInitEmptyRepoPayload, + DatabaseGraphInsertNodeAtPathPayload, + DatabaseGraphInsertNodesAtPathsPayload, + DatabaseGraphSetAndCommitPayload, + DatabaseGraphSetDataAtPathPayload, + DatabaseGraphSetManyAndCommitPayload, + DatabaseImportDefinitionsPayload, + DatabaseImportGraphJsonPayload, + DatabaseSaveGraphPayload, + DatabaseStartExecutionPayload, + DatabaseValidateFunctionGraphPayload, + FunctionInvocationsCreateSyncPayload, ImportDefinitionsPayload, ImportGraphJsonPayload, InfraInitEmptyRepoPayload, @@ -60,6 +101,7 @@ import type { InitEmptyRepoPayload, InsertNodeAtPathPayload, InsertNodesAtPathsPayload, + PlatformFunctionInvocationsCreateSyncPayload, PlatformInfraInitEmptyRepoPayload, PlatformInfraInsertNodeAtPathPayload, PlatformInfraInsertNodesAtPathsPayload, @@ -85,7 +127,27 @@ import type { AddEdgeAndSavePayloadSelect, AddNodePayloadSelect, AddNodeAndSavePayloadSelect, + ApproveNodePayloadSelect, CopyGraphPayloadSelect, + DatabaseAddEdgePayloadSelect, + DatabaseAddEdgeAndSavePayloadSelect, + DatabaseAddNodePayloadSelect, + DatabaseAddNodeAndSavePayloadSelect, + DatabaseApproveNodePayloadSelect, + DatabaseCopyGraphPayloadSelect, + DatabaseCreateFunctionGraphPayloadSelect, + DatabaseGraphInitEmptyRepoPayloadSelect, + DatabaseGraphInsertNodeAtPathPayloadSelect, + DatabaseGraphInsertNodesAtPathsPayloadSelect, + DatabaseGraphSetAndCommitPayloadSelect, + DatabaseGraphSetDataAtPathPayloadSelect, + DatabaseGraphSetManyAndCommitPayloadSelect, + DatabaseImportDefinitionsPayloadSelect, + DatabaseImportGraphJsonPayloadSelect, + DatabaseSaveGraphPayloadSelect, + DatabaseStartExecutionPayloadSelect, + DatabaseValidateFunctionGraphPayloadSelect, + FunctionInvocationsCreateSyncPayloadSelect, ImportDefinitionsPayloadSelect, ImportGraphJsonPayloadSelect, InfraInitEmptyRepoPayloadSelect, @@ -97,6 +159,7 @@ import type { InitEmptyRepoPayloadSelect, InsertNodeAtPathPayloadSelect, InsertNodesAtPathsPayloadSelect, + PlatformFunctionInvocationsCreateSyncPayloadSelect, PlatformInfraInitEmptyRepoPayloadSelect, PlatformInfraInsertNodeAtPathPayloadSelect, PlatformInfraInsertNodesAtPathsPayloadSelect, @@ -132,9 +195,69 @@ export interface AddNodeVariables { export interface AddNodeAndSaveVariables { input: AddNodeAndSaveInput; } +export interface ApproveNodeVariables { + input: ApproveNodeInput; +} export interface CopyGraphVariables { input: CopyGraphInput; } +export interface DatabaseAddEdgeVariables { + input: DatabaseAddEdgeInput; +} +export interface DatabaseAddEdgeAndSaveVariables { + input: DatabaseAddEdgeAndSaveInput; +} +export interface DatabaseAddNodeVariables { + input: DatabaseAddNodeInput; +} +export interface DatabaseAddNodeAndSaveVariables { + input: DatabaseAddNodeAndSaveInput; +} +export interface DatabaseApproveNodeVariables { + input: DatabaseApproveNodeInput; +} +export interface DatabaseCopyGraphVariables { + input: DatabaseCopyGraphInput; +} +export interface DatabaseCreateFunctionGraphVariables { + input: DatabaseCreateFunctionGraphInput; +} +export interface DatabaseGraphInitEmptyRepoVariables { + input: DatabaseGraphInitEmptyRepoInput; +} +export interface DatabaseGraphInsertNodeAtPathVariables { + input: DatabaseGraphInsertNodeAtPathInput; +} +export interface DatabaseGraphInsertNodesAtPathsVariables { + input: DatabaseGraphInsertNodesAtPathsInput; +} +export interface DatabaseGraphSetAndCommitVariables { + input: DatabaseGraphSetAndCommitInput; +} +export interface DatabaseGraphSetDataAtPathVariables { + input: DatabaseGraphSetDataAtPathInput; +} +export interface DatabaseGraphSetManyAndCommitVariables { + input: DatabaseGraphSetManyAndCommitInput; +} +export interface DatabaseImportDefinitionsVariables { + input: DatabaseImportDefinitionsInput; +} +export interface DatabaseImportGraphJsonVariables { + input: DatabaseImportGraphJsonInput; +} +export interface DatabaseSaveGraphVariables { + input: DatabaseSaveGraphInput; +} +export interface DatabaseStartExecutionVariables { + input: DatabaseStartExecutionInput; +} +export interface DatabaseValidateFunctionGraphVariables { + input: DatabaseValidateFunctionGraphInput; +} +export interface FunctionInvocationsCreateSyncVariables { + input: FunctionInvocationsCreateSyncInput; +} export interface ImportDefinitionsVariables { input: ImportDefinitionsInput; } @@ -168,6 +291,9 @@ export interface InsertNodeAtPathVariables { export interface InsertNodesAtPathsVariables { input: InsertNodesAtPathsInput; } +export interface PlatformFunctionInvocationsCreateSyncVariables { + input: PlatformFunctionInvocationsCreateSyncInput; +} export interface PlatformInfraInitEmptyRepoVariables { input: PlatformInfraInitEmptyRepoInput; } @@ -200,10 +326,11 @@ export interface PlatformResourceInstallationsUpgradeVariables { } /** * Variables for provisionBucket - * 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. + * Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. */ export interface ProvisionBucketVariables { input: ProvisionBucketInput; @@ -356,6 +483,35 @@ export function createMutationOperations(client: OrmClient) { 'AddNodeAndSavePayload' ), }), + approveNode: ( + args: ApproveNodeVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + approveNode: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'ApproveNode', + fieldName: 'approveNode', + ...buildCustomDocument( + 'mutation', + 'ApproveNode', + 'approveNode', + options.select, + args, + [ + { + name: 'input', + type: 'ApproveNodeInput!', + }, + ], + connectionFieldsMap, + 'ApproveNodePayload' + ), + }), copyGraph: ( args: CopyGraphVariables, options: { @@ -385,6 +541,575 @@ export function createMutationOperations(client: OrmClient) { 'CopyGraphPayload' ), }), + databaseAddEdge: ( + args: DatabaseAddEdgeVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + databaseAddEdge: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'DatabaseAddEdge', + fieldName: 'databaseAddEdge', + ...buildCustomDocument( + 'mutation', + 'DatabaseAddEdge', + 'databaseAddEdge', + options.select, + args, + [ + { + name: 'input', + type: 'DatabaseAddEdgeInput!', + }, + ], + connectionFieldsMap, + 'DatabaseAddEdgePayload' + ), + }), + databaseAddEdgeAndSave: ( + args: DatabaseAddEdgeAndSaveVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + databaseAddEdgeAndSave: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'DatabaseAddEdgeAndSave', + fieldName: 'databaseAddEdgeAndSave', + ...buildCustomDocument( + 'mutation', + 'DatabaseAddEdgeAndSave', + 'databaseAddEdgeAndSave', + options.select, + args, + [ + { + name: 'input', + type: 'DatabaseAddEdgeAndSaveInput!', + }, + ], + connectionFieldsMap, + 'DatabaseAddEdgeAndSavePayload' + ), + }), + databaseAddNode: ( + args: DatabaseAddNodeVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + databaseAddNode: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'DatabaseAddNode', + fieldName: 'databaseAddNode', + ...buildCustomDocument( + 'mutation', + 'DatabaseAddNode', + 'databaseAddNode', + options.select, + args, + [ + { + name: 'input', + type: 'DatabaseAddNodeInput!', + }, + ], + connectionFieldsMap, + 'DatabaseAddNodePayload' + ), + }), + databaseAddNodeAndSave: ( + args: DatabaseAddNodeAndSaveVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + databaseAddNodeAndSave: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'DatabaseAddNodeAndSave', + fieldName: 'databaseAddNodeAndSave', + ...buildCustomDocument( + 'mutation', + 'DatabaseAddNodeAndSave', + 'databaseAddNodeAndSave', + options.select, + args, + [ + { + name: 'input', + type: 'DatabaseAddNodeAndSaveInput!', + }, + ], + connectionFieldsMap, + 'DatabaseAddNodeAndSavePayload' + ), + }), + databaseApproveNode: ( + args: DatabaseApproveNodeVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + databaseApproveNode: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'DatabaseApproveNode', + fieldName: 'databaseApproveNode', + ...buildCustomDocument( + 'mutation', + 'DatabaseApproveNode', + 'databaseApproveNode', + options.select, + args, + [ + { + name: 'input', + type: 'DatabaseApproveNodeInput!', + }, + ], + connectionFieldsMap, + 'DatabaseApproveNodePayload' + ), + }), + databaseCopyGraph: ( + args: DatabaseCopyGraphVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + databaseCopyGraph: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'DatabaseCopyGraph', + fieldName: 'databaseCopyGraph', + ...buildCustomDocument( + 'mutation', + 'DatabaseCopyGraph', + 'databaseCopyGraph', + options.select, + args, + [ + { + name: 'input', + type: 'DatabaseCopyGraphInput!', + }, + ], + connectionFieldsMap, + 'DatabaseCopyGraphPayload' + ), + }), + databaseCreateFunctionGraph: ( + args: DatabaseCreateFunctionGraphVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + databaseCreateFunctionGraph: InferSelectResult< + DatabaseCreateFunctionGraphPayload, + S + > | null; + }>({ + client, + operation: 'mutation', + operationName: 'DatabaseCreateFunctionGraph', + fieldName: 'databaseCreateFunctionGraph', + ...buildCustomDocument( + 'mutation', + 'DatabaseCreateFunctionGraph', + 'databaseCreateFunctionGraph', + options.select, + args, + [ + { + name: 'input', + type: 'DatabaseCreateFunctionGraphInput!', + }, + ], + connectionFieldsMap, + 'DatabaseCreateFunctionGraphPayload' + ), + }), + databaseGraphInitEmptyRepo: ( + args: DatabaseGraphInitEmptyRepoVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + databaseGraphInitEmptyRepo: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'DatabaseGraphInitEmptyRepo', + fieldName: 'databaseGraphInitEmptyRepo', + ...buildCustomDocument( + 'mutation', + 'DatabaseGraphInitEmptyRepo', + 'databaseGraphInitEmptyRepo', + options.select, + args, + [ + { + name: 'input', + type: 'DatabaseGraphInitEmptyRepoInput!', + }, + ], + connectionFieldsMap, + 'DatabaseGraphInitEmptyRepoPayload' + ), + }), + databaseGraphInsertNodeAtPath: ( + args: DatabaseGraphInsertNodeAtPathVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + databaseGraphInsertNodeAtPath: InferSelectResult< + DatabaseGraphInsertNodeAtPathPayload, + S + > | null; + }>({ + client, + operation: 'mutation', + operationName: 'DatabaseGraphInsertNodeAtPath', + fieldName: 'databaseGraphInsertNodeAtPath', + ...buildCustomDocument( + 'mutation', + 'DatabaseGraphInsertNodeAtPath', + 'databaseGraphInsertNodeAtPath', + options.select, + args, + [ + { + name: 'input', + type: 'DatabaseGraphInsertNodeAtPathInput!', + }, + ], + connectionFieldsMap, + 'DatabaseGraphInsertNodeAtPathPayload' + ), + }), + databaseGraphInsertNodesAtPaths: ( + args: DatabaseGraphInsertNodesAtPathsVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + databaseGraphInsertNodesAtPaths: InferSelectResult< + DatabaseGraphInsertNodesAtPathsPayload, + S + > | null; + }>({ + client, + operation: 'mutation', + operationName: 'DatabaseGraphInsertNodesAtPaths', + fieldName: 'databaseGraphInsertNodesAtPaths', + ...buildCustomDocument( + 'mutation', + 'DatabaseGraphInsertNodesAtPaths', + 'databaseGraphInsertNodesAtPaths', + options.select, + args, + [ + { + name: 'input', + type: 'DatabaseGraphInsertNodesAtPathsInput!', + }, + ], + connectionFieldsMap, + 'DatabaseGraphInsertNodesAtPathsPayload' + ), + }), + databaseGraphSetAndCommit: ( + args: DatabaseGraphSetAndCommitVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + databaseGraphSetAndCommit: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'DatabaseGraphSetAndCommit', + fieldName: 'databaseGraphSetAndCommit', + ...buildCustomDocument( + 'mutation', + 'DatabaseGraphSetAndCommit', + 'databaseGraphSetAndCommit', + options.select, + args, + [ + { + name: 'input', + type: 'DatabaseGraphSetAndCommitInput!', + }, + ], + connectionFieldsMap, + 'DatabaseGraphSetAndCommitPayload' + ), + }), + databaseGraphSetDataAtPath: ( + args: DatabaseGraphSetDataAtPathVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + databaseGraphSetDataAtPath: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'DatabaseGraphSetDataAtPath', + fieldName: 'databaseGraphSetDataAtPath', + ...buildCustomDocument( + 'mutation', + 'DatabaseGraphSetDataAtPath', + 'databaseGraphSetDataAtPath', + options.select, + args, + [ + { + name: 'input', + type: 'DatabaseGraphSetDataAtPathInput!', + }, + ], + connectionFieldsMap, + 'DatabaseGraphSetDataAtPathPayload' + ), + }), + databaseGraphSetManyAndCommit: ( + args: DatabaseGraphSetManyAndCommitVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + databaseGraphSetManyAndCommit: InferSelectResult< + DatabaseGraphSetManyAndCommitPayload, + S + > | null; + }>({ + client, + operation: 'mutation', + operationName: 'DatabaseGraphSetManyAndCommit', + fieldName: 'databaseGraphSetManyAndCommit', + ...buildCustomDocument( + 'mutation', + 'DatabaseGraphSetManyAndCommit', + 'databaseGraphSetManyAndCommit', + options.select, + args, + [ + { + name: 'input', + type: 'DatabaseGraphSetManyAndCommitInput!', + }, + ], + connectionFieldsMap, + 'DatabaseGraphSetManyAndCommitPayload' + ), + }), + databaseImportDefinitions: ( + args: DatabaseImportDefinitionsVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + databaseImportDefinitions: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'DatabaseImportDefinitions', + fieldName: 'databaseImportDefinitions', + ...buildCustomDocument( + 'mutation', + 'DatabaseImportDefinitions', + 'databaseImportDefinitions', + options.select, + args, + [ + { + name: 'input', + type: 'DatabaseImportDefinitionsInput!', + }, + ], + connectionFieldsMap, + 'DatabaseImportDefinitionsPayload' + ), + }), + databaseImportGraphJson: ( + args: DatabaseImportGraphJsonVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + databaseImportGraphJson: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'DatabaseImportGraphJson', + fieldName: 'databaseImportGraphJson', + ...buildCustomDocument( + 'mutation', + 'DatabaseImportGraphJson', + 'databaseImportGraphJson', + options.select, + args, + [ + { + name: 'input', + type: 'DatabaseImportGraphJsonInput!', + }, + ], + connectionFieldsMap, + 'DatabaseImportGraphJsonPayload' + ), + }), + databaseSaveGraph: ( + args: DatabaseSaveGraphVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + databaseSaveGraph: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'DatabaseSaveGraph', + fieldName: 'databaseSaveGraph', + ...buildCustomDocument( + 'mutation', + 'DatabaseSaveGraph', + 'databaseSaveGraph', + options.select, + args, + [ + { + name: 'input', + type: 'DatabaseSaveGraphInput!', + }, + ], + connectionFieldsMap, + 'DatabaseSaveGraphPayload' + ), + }), + databaseStartExecution: ( + args: DatabaseStartExecutionVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + databaseStartExecution: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'DatabaseStartExecution', + fieldName: 'databaseStartExecution', + ...buildCustomDocument( + 'mutation', + 'DatabaseStartExecution', + 'databaseStartExecution', + options.select, + args, + [ + { + name: 'input', + type: 'DatabaseStartExecutionInput!', + }, + ], + connectionFieldsMap, + 'DatabaseStartExecutionPayload' + ), + }), + databaseValidateFunctionGraph: ( + args: DatabaseValidateFunctionGraphVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + databaseValidateFunctionGraph: InferSelectResult< + DatabaseValidateFunctionGraphPayload, + S + > | null; + }>({ + client, + operation: 'mutation', + operationName: 'DatabaseValidateFunctionGraph', + fieldName: 'databaseValidateFunctionGraph', + ...buildCustomDocument( + 'mutation', + 'DatabaseValidateFunctionGraph', + 'databaseValidateFunctionGraph', + options.select, + args, + [ + { + name: 'input', + type: 'DatabaseValidateFunctionGraphInput!', + }, + ], + connectionFieldsMap, + 'DatabaseValidateFunctionGraphPayload' + ), + }), + functionInvocationsCreateSync: ( + args: FunctionInvocationsCreateSyncVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + functionInvocationsCreateSync: InferSelectResult< + FunctionInvocationsCreateSyncPayload, + S + > | null; + }>({ + client, + operation: 'mutation', + operationName: 'FunctionInvocationsCreateSync', + fieldName: 'functionInvocationsCreateSync', + ...buildCustomDocument( + 'mutation', + 'FunctionInvocationsCreateSync', + 'functionInvocationsCreateSync', + options.select, + args, + [ + { + name: 'input', + type: 'FunctionInvocationsCreateSyncInput!', + }, + ], + connectionFieldsMap, + 'FunctionInvocationsCreateSyncPayload' + ), + }), importDefinitions: ( args: ImportDefinitionsVariables, options: { @@ -704,6 +1429,40 @@ export function createMutationOperations(client: OrmClient) { 'InsertNodesAtPathsPayload' ), }), + platformFunctionInvocationsCreateSync: < + S extends PlatformFunctionInvocationsCreateSyncPayloadSelect, + >( + args: PlatformFunctionInvocationsCreateSyncVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + platformFunctionInvocationsCreateSync: InferSelectResult< + PlatformFunctionInvocationsCreateSyncPayload, + S + > | null; + }>({ + client, + operation: 'mutation', + operationName: 'PlatformFunctionInvocationsCreateSync', + fieldName: 'platformFunctionInvocationsCreateSync', + ...buildCustomDocument( + 'mutation', + 'PlatformFunctionInvocationsCreateSync', + 'platformFunctionInvocationsCreateSync', + options.select, + args, + [ + { + name: 'input', + type: 'PlatformFunctionInvocationsCreateSyncInput!', + }, + ], + connectionFieldsMap, + 'PlatformFunctionInvocationsCreateSyncPayload' + ), + }), platformInfraInitEmptyRepo: ( args: PlatformInfraInitEmptyRepoVariables, options: { diff --git a/sdk/constructive-react/src/compute/orm/query/index.ts b/sdk/constructive-react/src/compute/orm/query/index.ts index 505264ae62..fcea7431b0 100644 --- a/sdk/constructive-react/src/compute/orm/query/index.ts +++ b/sdk/constructive-react/src/compute/orm/query/index.ts @@ -7,11 +7,43 @@ import { OrmClient } from '../client'; import { QueryBuilder, buildCustomDocument } from '../query-builder'; import type { InferSelectResult, StrictSelect } from '../select-types'; import { connectionFieldsMap } from '../input-types'; +export interface DatabaseReadFunctionGraphVariables { + graphId?: string; +} export interface ReadFunctionGraphVariables { graphId?: string; } export function createQueryOperations(client: OrmClient) { return { + databaseReadFunctionGraph: ( + args: DatabaseReadFunctionGraphVariables, + options?: { + select?: Record; + } + ) => + new QueryBuilder<{ + databaseReadFunctionGraph: unknown | null; + }>({ + client, + operation: 'query', + operationName: 'DatabaseReadFunctionGraph', + fieldName: 'databaseReadFunctionGraph', + ...buildCustomDocument( + 'query', + 'DatabaseReadFunctionGraph', + 'databaseReadFunctionGraph', + options?.select, + args, + [ + { + name: 'graphId', + type: 'UUID', + }, + ], + connectionFieldsMap, + undefined + ), + }), readFunctionGraph: ( args: ReadFunctionGraphVariables, options?: { diff --git a/sdk/constructive-react/src/compute/schema-types.ts b/sdk/constructive-react/src/compute/schema-types.ts index 1b51e2e9f3..bf810914f1 100644 --- a/sdk/constructive-react/src/compute/schema-types.ts +++ b/sdk/constructive-react/src/compute/schema-types.ts @@ -5,7 +5,19 @@ */ import type { + Build, + BuildStep, + BuilderBinding, ContentPreset, + DatabaseFunctionGraph, + DatabaseFunctionGraphExecution, + DatabaseFunctionGraphExecutionNodeState, + DatabaseFunctionGraphExecutionOutput, + DatabaseGraphCommit, + DatabaseGraphGetAllTreeNodesRecord, + DatabaseGraphObject, + DatabaseGraphRef, + DatabaseGraphStore, DbPreset, FunctionApiBinding, FunctionCapabilityBinding, @@ -24,6 +36,8 @@ import type { FunctionInvocation, FunctionInvocationAttempt, GetAllTreeNodesRecord, + Image, + ImageGrant, InfraCommit, InfraGetAllTreeNodesRecord, InfraObject, @@ -32,6 +46,9 @@ import type { IntegrationProvider, Namespace, NamespaceEvent, + PlatformBuild, + PlatformBuildStep, + PlatformBuilderBinding, PlatformFunctionApiBinding, PlatformFunctionCapabilityBinding, PlatformFunctionDefinition, @@ -40,18 +57,36 @@ import type { PlatformFunctionExecutionLog, PlatformFunctionInvocation, PlatformFunctionInvocationAttempt, + PlatformImage, + PlatformImageGrant, PlatformInfraCommit, PlatformInfraGetAllTreeNodesRecord, PlatformInfraObject, PlatformInfraRef, PlatformInfraStore, + PlatformK8sResourceKind, + PlatformK8sSpecRule, PlatformNamespace, PlatformNamespaceEvent, + PlatformProposal, + PlatformProposalComment, + PlatformProposalFileView, + PlatformProposalReaction, + PlatformProposalReview, + PlatformProposalsChunk, + PlatformRegistry, + PlatformRegistryBinding, + PlatformRegistryGrant, + PlatformRepository, + PlatformRepositoryEvent, + PlatformRepositoryRequiredCheck, + PlatformRepositoryWorkflow, PlatformResource, PlatformResourceDeclaredCapacity, PlatformResourceDefinition, PlatformResourceEvent, PlatformResourceInstallation, + PlatformResourceObservedStorage, PlatformResourceStatusCheck, PlatformResourceUsageLog, PlatformResourceUsageSummary, @@ -61,11 +96,25 @@ import type { PlatformResourcesResolvedRequirement, PlatformWebhookEndpoint, PlatformWebhookEvent, + Proposal, + ProposalComment, + ProposalFileView, + ProposalReaction, + ProposalReview, + ProposalsChunk, + Registry, + RegistryBinding, + RegistryGrant, + Repository, + RepositoryEvent, + RepositoryRequiredCheck, + RepositoryWorkflow, Resource, ResourceDeclaredCapacity, ResourceDefinition, ResourceEvent, ResourceInstallation, + ResourceObservedStorage, ResourceStatusCheck, ResourceUsageLog, ResourceUsageSummary, @@ -95,35 +144,132 @@ 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' +export type ConstructiveInternalTypeUpload = unknown; +/** Methods to use when ordering `Build`. */ +export type BuildOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'ATTEMPT_ASC' + | 'ATTEMPT_DESC' + | 'COMMIT_SHA_ASC' + | 'COMMIT_SHA_DESC' + | 'CONCLUSION_ASC' + | 'CONCLUSION_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' - | 'DEFINITION_ASC' - | 'DEFINITION_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'EVENT_ID_ASC' + | 'EVENT_ID_DESC' + | 'FINISHED_AT_ASC' + | 'FINISHED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IMAGE_REF_ASC' + | 'IMAGE_REF_DESC' + | 'JOB_ID_ASC' + | 'JOB_ID_DESC' + | 'LOGS_ASC' + | 'LOGS_DESC' + | 'MATRIX_KEY_ASC' + | 'MATRIX_KEY_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PROPOSAL_ID_ASC' + | 'PROPOSAL_ID_DESC' + | 'REF_ASC' + | 'REF_DESC' + | 'REPOSITORY_ID_ASC' + | 'REPOSITORY_ID_DESC' + | 'STARTED_AT_ASC' + | 'STARTED_AT_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC' + | 'WORKFLOW_ID_ASC' + | 'WORKFLOW_ID_DESC'; +/** Methods to use when ordering `BuildStep`. */ +export type BuildStepOrderBy = + | 'BUILD_ID_ASC' + | 'BUILD_ID_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'EXIT_CODE_ASC' + | 'EXIT_CODE_DESC' + | 'FINISHED_AT_ASC' + | 'FINISHED_AT_DESC' | 'ID_ASC' | 'ID_DESC' | 'KIND_ASC' | 'KIND_DESC' - | 'LABEL_ASC' - | 'LABEL_DESC' + | 'LOG_BYTES_ASC' + | 'LOG_BYTES_DESC' + | 'LOG_OFFSET_ASC' + | 'LOG_OFFSET_DESC' + | 'NAME_ASC' + | 'NAME_DESC' | 'NATURAL' + | 'PARENT_SEQ_ASC' + | 'PARENT_SEQ_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'SLUG_ASC' - | 'SLUG_DESC' - | 'STORE_ID_ASC' - | 'STORE_ID_DESC' + | 'RECORDED_AT_ASC' + | 'RECORDED_AT_DESC' + | 'SEQ_ASC' + | 'SEQ_DESC' + | 'STARTED_AT_ASC' + | 'STARTED_AT_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'SUMMARY_ASC' + | 'SUMMARY_DESC'; +/** Methods to use when ordering `BuilderBinding`. */ +export type BuilderBindingOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'INSTALLATION_ID_ASC' + | 'INSTALLATION_ID_DESC' + | 'LAST_ERROR_ASC' + | 'LAST_ERROR_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'NATURAL' + | 'OBSERVED_HOST_ASC' + | 'OBSERVED_HOST_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'REALM_ASC' + | 'REALM_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `DbPreset`. */ -export type DbPresetOrderBy = + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +/** Methods to use when ordering `ContentPreset`. */ +export type ContentPresetOrderBy = | 'ACTIVE_ASC' | 'ACTIVE_DESC' | 'COMMIT_ID_ASC' @@ -136,10 +282,10 @@ export type DbPresetOrderBy = | 'DESCRIPTION_DESC' | 'ID_ASC' | 'ID_DESC' + | 'KIND_ASC' + | 'KIND_DESC' | 'LABEL_ASC' | 'LABEL_DESC' - | 'MODULES_HASH_ASC' - | 'MODULES_HASH_DESC' | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -149,107 +295,368 @@ export type DbPresetOrderBy = | 'STORE_ID_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `FunctionApiBinding`. */ -export type FunctionApiBindingOrderBy = - | 'ALIAS_ASC' - | 'ALIAS_DESC' - | 'API_ID_ASC' - | 'API_ID_DESC' - | 'CONFIG_ASC' - | 'CONFIG_DESC' +/** Methods to use when ordering `DatabaseFunctionGraphExecutionNodeState`. */ +export type DatabaseFunctionGraphExecutionNodeStateOrderBy = + | 'CALLBACK_INPUTS_ASC' + | 'CALLBACK_INPUTS_DESC' + | 'CALLBACK_META_ASC' + | 'CALLBACK_META_DESC' + | 'CALLBACK_TOKEN_HASH_ASC' + | 'CALLBACK_TOKEN_HASH_DESC' + | 'COMPLETED_AT_ASC' + | 'COMPLETED_AT_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' - | 'FUNCTION_DEFINITION_ID_ASC' - | 'FUNCTION_DEFINITION_ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ERROR_CODE_ASC' + | 'ERROR_CODE_DESC' + | 'ERROR_MESSAGE_ASC' + | 'ERROR_MESSAGE_DESC' + | 'EXECUTION_ID_ASC' + | 'EXECUTION_ID_DESC' + | 'EXPIRY_DEFAULT_OUTPUT_ASC' + | 'EXPIRY_DEFAULT_OUTPUT_DESC' + | 'EXPIRY_ESCALATED_AT_ASC' + | 'EXPIRY_ESCALATED_AT_DESC' + | 'EXPIRY_POLICY_ASC' + | 'EXPIRY_POLICY_DESC' | 'ID_ASC' | 'ID_DESC' | 'NATURAL' + | 'NODE_NAME_ASC' + | 'NODE_NAME_DESC' + | 'NODE_PATH_ASC' + | 'NODE_PATH_DESC' + | 'OUTPUT_ID_ASC' + | 'OUTPUT_ID_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `FunctionCapabilityBinding`. */ -export type FunctionCapabilityBindingOrderBy = - | 'BUCKET_ID_ASC' - | 'BUCKET_ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' + | 'STARTED_AT_ASC' + | 'STARTED_AT_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'WAITING_DEADLINE_AT_ASC' + | 'WAITING_DEADLINE_AT_DESC' + | 'WAITING_ON_ASC' + | 'WAITING_ON_DESC' + | 'WAITING_SINCE_ASC' + | 'WAITING_SINCE_DESC'; +/** Methods to use when ordering `DatabaseFunctionGraphExecution`. */ +export type DatabaseFunctionGraphExecutionOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'COMPLETED_AT_ASC' + | 'COMPLETED_AT_DESC' + | 'CURRENT_WAVE_ASC' + | 'CURRENT_WAVE_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'FUNCTION_ID_ASC' - | 'FUNCTION_ID_DESC' + | 'DEFINITIONS_COMMIT_ID_ASC' + | 'DEFINITIONS_COMMIT_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'ENTITY_TYPE_ASC' + | 'ENTITY_TYPE_DESC' + | 'ERROR_CODE_ASC' + | 'ERROR_CODE_DESC' + | 'ERROR_MESSAGE_ASC' + | 'ERROR_MESSAGE_DESC' + | 'EXECUTION_PLAN_ASC' + | 'EXECUTION_PLAN_DESC' | 'GRAPH_ID_ASC' | 'GRAPH_ID_DESC' | 'ID_ASC' | 'ID_DESC' - | 'KEY_ASC' - | 'KEY_DESC' - | 'LIFECYCLE_ASC' - | 'LIFECYCLE_DESC' - | 'METADATA_ASC' - | 'METADATA_DESC' + | 'INPUT_PAYLOAD_ASC' + | 'INPUT_PAYLOAD_DESC' + | 'INVOCATION_CREATED_AT_ASC' + | 'INVOCATION_CREATED_AT_DESC' + | 'INVOCATION_ID_ASC' + | 'INVOCATION_ID_DESC' + | 'LAST_PROGRESS_AT_ASC' + | 'LAST_PROGRESS_AT_DESC' + | 'MAX_PENDING_JOBS_ASC' + | 'MAX_PENDING_JOBS_DESC' + | 'MAX_TICKS_ASC' + | 'MAX_TICKS_DESC' | 'NATURAL' + | 'NODE_OUTPUTS_ASC' + | 'NODE_OUTPUTS_DESC' + | 'ORGANIZATION_ID_ASC' + | 'ORGANIZATION_ID_DESC' + | 'OUTPUT_NAMES_ASC' + | 'OUTPUT_NAMES_DESC' + | 'OUTPUT_NODE_ASC' + | 'OUTPUT_NODE_DESC' + | 'OUTPUT_PAYLOAD_ASC' + | 'OUTPUT_PAYLOAD_DESC' + | 'OUTPUT_PORT_ASC' + | 'OUTPUT_PORT_DESC' + | 'PARENT_EXECUTION_ID_ASC' + | 'PARENT_EXECUTION_ID_DESC' + | 'PARENT_INVOCATION_ID_ASC' + | 'PARENT_INVOCATION_ID_DESC' + | 'PARENT_NODE_NAME_ASC' + | 'PARENT_NODE_NAME_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `FunctionDefinition`. */ -export type FunctionDefinitionOrderBy = - | 'ACCESS_CHANNELS_ASC' - | 'ACCESS_CHANNELS_DESC' - | 'CATEGORY_ASC' - | 'CATEGORY_DESC' - | 'CONCURRENCY_ASC' - | 'CONCURRENCY_DESC' - | 'CPU_LIMIT_MILLICORES_ASC' - | 'CPU_LIMIT_MILLICORES_DESC' - | 'CPU_REQUEST_MILLICORES_ASC' - | 'CPU_REQUEST_MILLICORES_DESC' + | 'PRINCIPAL_ID_ASC' + | 'PRINCIPAL_ID_DESC' + | 'STARTED_AT_ASC' + | 'STARTED_AT_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'TICK_COUNT_ASC' + | 'TICK_COUNT_DESC' + | 'TIMEOUT_AT_ASC' + | 'TIMEOUT_AT_DESC'; +/** Methods to use when ordering `DatabaseFunctionGraphExecutionOutput`. */ +export type DatabaseFunctionGraphExecutionOutputOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DATA_ASC' + | 'DATA_DESC' + | 'HASH_ASC' + | 'HASH_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC'; +/** Methods to use when ordering `DatabaseFunctionGraph`. */ +export type DatabaseFunctionGraphOrderBy = + | 'CONTEXT_ASC' + | 'CONTEXT_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'DEFINITIONS_COMMIT_ID_ASC' + | 'DEFINITIONS_COMMIT_ID_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' - | 'FN_CATEGORY_ASC' - | 'FN_CATEGORY_DESC' - | 'FUNCTION_COLUMNS_ASC' - | 'FUNCTION_COLUMNS_DESC' - | 'GRAPH_ID_ASC' - | 'GRAPH_ID_DESC' - | 'ICON_ASC' - | 'ICON_DESC' | 'ID_ASC' | 'ID_DESC' - | 'IMAGE_ASC' - | 'IMAGE_DESC' - | 'INPUTS_ASC' - | 'INPUTS_DESC' - | 'INTEGRATIONS_ASC' - | 'INTEGRATIONS_DESC' - | 'IS_PUBLISHED_ASC' - | 'IS_PUBLISHED_DESC' - | 'MAX_ATTEMPTS_ASC' - | 'MAX_ATTEMPTS_DESC' - | 'MEMORY_LIMIT_BYTES_ASC' - | 'MEMORY_LIMIT_BYTES_DESC' - | 'MEMORY_REQUEST_BYTES_ASC' - | 'MEMORY_REQUEST_BYTES_DESC' - | 'MODULE_TABLE_ASC' - | 'MODULE_TABLE_DESC' + | 'IS_VALID_ASC' + | 'IS_VALID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'NATURAL' - | 'OUTPUTS_ASC' - | 'OUTPUTS_DESC' - | 'PAYLOAD_ARGS_ASC' - | 'PAYLOAD_ARGS_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'PRIORITY_ASC' - | 'PRIORITY_DESC' - | 'PROPS_ASC' - | 'PROPS_DESC' + | 'STORE_ID_ASC' + | 'STORE_ID_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'VALIDATION_ERRORS_ASC' + | 'VALIDATION_ERRORS_DESC'; +/** Methods to use when ordering `DatabaseGraphCommit`. */ +export type DatabaseGraphCommitOrderBy = + | 'AUTHOR_ID_ASC' + | 'AUTHOR_ID_DESC' + | 'COMMITTER_ID_ASC' + | 'COMMITTER_ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DATE_ASC' + | 'DATE_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'MESSAGE_ASC' + | 'MESSAGE_DESC' + | 'NATURAL' + | 'PARENT_IDS_ASC' + | 'PARENT_IDS_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'STORE_ID_ASC' + | 'STORE_ID_DESC' + | 'TREE_ID_ASC' + | 'TREE_ID_DESC'; +/** Methods to use when ordering `DatabaseGraphObject`. */ +export type DatabaseGraphObjectOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DATA_ASC' + | 'DATA_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'KIDS_ASC' + | 'KIDS_DESC' + | 'KTREE_ASC' + | 'KTREE_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC'; +/** Methods to use when ordering `DatabaseGraphRef`. */ +export type DatabaseGraphRefOrderBy = + | 'COMMIT_ID_ASC' + | 'COMMIT_ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'STORE_ID_ASC' + | 'STORE_ID_DESC'; +/** Methods to use when ordering `DatabaseGraphStore`. */ +export type DatabaseGraphStoreOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'HASH_ASC' + | 'HASH_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC'; +/** Methods to use when ordering `DbPreset`. */ +export type DbPresetOrderBy = + | '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' + | 'LABEL_ASC' + | 'LABEL_DESC' + | 'MODULES_HASH_ASC' + | 'MODULES_HASH_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 `FunctionApiBinding`. */ +export type FunctionApiBindingOrderBy = + | 'ALIAS_ASC' + | 'ALIAS_DESC' + | 'API_ID_ASC' + | 'API_ID_DESC' + | 'CONFIG_ASC' + | 'CONFIG_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'FUNCTION_DEFINITION_ID_ASC' + | 'FUNCTION_DEFINITION_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `FunctionCapabilityBinding`. */ +export type FunctionCapabilityBindingOrderBy = + | 'BUCKET_ID_ASC' + | 'BUCKET_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'FUNCTION_ID_ASC' + | 'FUNCTION_ID_DESC' + | 'GRAPH_ID_ASC' + | 'GRAPH_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'KEY_ASC' + | 'KEY_DESC' + | 'LIFECYCLE_ASC' + | 'LIFECYCLE_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `FunctionDefinition`. */ +export type FunctionDefinitionOrderBy = + | 'ACCESS_CHANNELS_ASC' + | 'ACCESS_CHANNELS_DESC' + | 'ANONYMOUS_CALLABLE_ASC' + | 'ANONYMOUS_CALLABLE_DESC' + | 'CATEGORY_ASC' + | 'CATEGORY_DESC' + | 'CONCURRENCY_ASC' + | 'CONCURRENCY_DESC' + | 'CPU_LIMIT_MILLICORES_ASC' + | 'CPU_LIMIT_MILLICORES_DESC' + | 'CPU_REQUEST_MILLICORES_ASC' + | 'CPU_REQUEST_MILLICORES_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'FN_CATEGORY_ASC' + | 'FN_CATEGORY_DESC' + | 'FUNCTION_COLUMNS_ASC' + | 'FUNCTION_COLUMNS_DESC' + | 'GRAPH_ID_ASC' + | 'GRAPH_ID_DESC' + | 'ICON_ASC' + | 'ICON_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IMAGE_ASC' + | 'IMAGE_DESC' + | 'INPUTS_ASC' + | 'INPUTS_DESC' + | 'INTEGRATIONS_ASC' + | 'INTEGRATIONS_DESC' + | 'IS_PUBLISHED_ASC' + | 'IS_PUBLISHED_DESC' + | 'MAX_ATTEMPTS_ASC' + | 'MAX_ATTEMPTS_DESC' + | 'MEMORY_LIMIT_BYTES_ASC' + | 'MEMORY_LIMIT_BYTES_DESC' + | 'MEMORY_REQUEST_BYTES_ASC' + | 'MEMORY_REQUEST_BYTES_DESC' + | 'MODULE_TABLE_ASC' + | 'MODULE_TABLE_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'OUTPUTS_ASC' + | 'OUTPUTS_DESC' + | 'PAYLOAD_ARGS_ASC' + | 'PAYLOAD_ARGS_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PRIORITY_ASC' + | 'PRIORITY_DESC' + | 'PROPS_ASC' + | 'PROPS_DESC' | 'PROTECTED_ASC' | 'PROTECTED_DESC' | 'PUBLISHED_AT_ASC' @@ -258,6 +665,8 @@ export type FunctionDefinitionOrderBy = | 'QUEUE_NAME_DESC' | 'REQUIRED_BUCKETS_ASC' | 'REQUIRED_BUCKETS_DESC' + | 'REQUIRED_CAPABILITIES_ASC' + | 'REQUIRED_CAPABILITIES_DESC' | 'REQUIRED_CONFIGS_ASC' | 'REQUIRED_CONFIGS_DESC' | 'REQUIRED_MODELS_ASC' @@ -284,6 +693,8 @@ export type FunctionDefinitionOrderBy = | 'TIMEOUT_SECONDS_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC' | 'VOLATILE_ASC' | 'VOLATILE_DESC'; /** Methods to use when ordering `FunctionDeploymentEvent`. */ @@ -315,6 +726,8 @@ export type FunctionDeploymentOrderBy = | 'CONCURRENCY_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'ERROR_COUNT_ASC' @@ -357,7 +770,9 @@ export type FunctionDeploymentOrderBy = | 'TIMEOUT_SECONDS_ASC' | 'TIMEOUT_SECONDS_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; /** Methods to use when ordering `FunctionExecutionLog`. */ export type FunctionExecutionLogOrderBy = | 'ACTOR_ID_ASC' @@ -422,6 +837,12 @@ export type FunctionGraphExecutionNodeStateOrderBy = | 'ERROR_MESSAGE_DESC' | 'EXECUTION_ID_ASC' | 'EXECUTION_ID_DESC' + | 'EXPIRY_DEFAULT_OUTPUT_ASC' + | 'EXPIRY_DEFAULT_OUTPUT_DESC' + | 'EXPIRY_ESCALATED_AT_ASC' + | 'EXPIRY_ESCALATED_AT_DESC' + | 'EXPIRY_POLICY_ASC' + | 'EXPIRY_POLICY_DESC' | 'ID_ASC' | 'ID_DESC' | 'NATURAL' @@ -438,7 +859,13 @@ export type FunctionGraphExecutionNodeStateOrderBy = | 'STARTED_AT_ASC' | 'STARTED_AT_DESC' | 'STATUS_ASC' - | 'STATUS_DESC'; + | 'STATUS_DESC' + | 'WAITING_DEADLINE_AT_ASC' + | 'WAITING_DEADLINE_AT_DESC' + | 'WAITING_ON_ASC' + | 'WAITING_ON_DESC' + | 'WAITING_SINCE_ASC' + | 'WAITING_SINCE_DESC'; /** Methods to use when ordering `FunctionGraphExecution`. */ export type FunctionGraphExecutionOrderBy = | 'ACTOR_ID_ASC' @@ -642,12 +1069,18 @@ export type FunctionInvocationOrderBy = | 'COMPLETED_AT_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'DEFINITION_SCOPE_ASC' | 'DEFINITION_SCOPE_DESC' | 'DURATION_MS_ASC' | 'DURATION_MS_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'ENTITY_TYPE_ASC' + | 'ENTITY_TYPE_DESC' | 'ERROR_ASC' | 'ERROR_DESC' | 'FUNCTION_DEFINITION_ID_ASC' @@ -659,12 +1092,16 @@ export type FunctionInvocationOrderBy = | 'JOB_ID_ASC' | 'JOB_ID_DESC' | 'NATURAL' + | 'ORGANIZATION_ID_ASC' + | 'ORGANIZATION_ID_DESC' | 'PARENT_INVOCATION_ID_ASC' | 'PARENT_INVOCATION_ID_DESC' | 'PAYLOAD_ASC' | 'PAYLOAD_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' + | 'PRINCIPAL_ID_ASC' + | 'PRINCIPAL_ID_DESC' | 'PROVENANCE_ASC' | 'PROVENANCE_DESC' | 'RESULT_ASC' @@ -675,6 +1112,78 @@ export type FunctionInvocationOrderBy = | 'STATUS_DESC' | 'TASK_IDENTIFIER_ASC' | 'TASK_IDENTIFIER_DESC'; +/** Methods to use when ordering `ImageGrant`. */ +export type ImageGrantOrderBy = + | 'ACTIONS_ASC' + | 'ACTIONS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'EXPIRES_AT_ASC' + | 'EXPIRES_AT_DESC' + | 'GRANTED_BY_ASC' + | 'GRANTED_BY_DESC' + | 'GRANTEE_KEY_ASC' + | 'GRANTEE_KEY_DESC' + | 'GRANTEE_SCOPE_ASC' + | 'GRANTEE_SCOPE_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IMAGE_ID_ASC' + | 'IMAGE_ID_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +/** Methods to use when ordering `Image`. */ +export type ImageOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'DIGEST_ASC' + | 'DIGEST_DESC' + | 'EXPIRES_AT_ASC' + | 'EXPIRES_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_PUBLISHED_ASC' + | 'IS_PUBLISHED_DESC' + | 'LABELS_ASC' + | 'LABELS_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'PLATFORM_ONLY_ASC' + | 'PLATFORM_ONLY_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'REGISTRY_HOST_ASC' + | 'REGISTRY_HOST_DESC' + | 'REPOSITORY_ASC' + | 'REPOSITORY_DESC' + | 'RUNTIME_ASC' + | 'RUNTIME_DESC' + | 'TAG_ASC' + | 'TAG_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; /** Methods to use when ordering `InfraCommit`. */ export type InfraCommitOrderBy = | 'AUTHOR_ID_ASC' @@ -799,6 +1308,8 @@ export type NamespaceEventOrderBy = export type NamespaceOrderBy = | 'ANNOTATIONS_ASC' | 'ANNOTATIONS_DESC' + | 'CLUSTER_ID_ASC' + | 'CLUSTER_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'DATABASE_ID_ASC' @@ -826,18 +1337,135 @@ export type NamespaceOrderBy = | 'STATUS_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `PlatformFunctionApiBinding`. */ -export type PlatformFunctionApiBindingOrderBy = - | 'ALIAS_ASC' - | 'ALIAS_DESC' - | 'API_ID_ASC' - | 'API_ID_DESC' - | 'CONFIG_ASC' - | 'CONFIG_DESC' +/** Methods to use when ordering `PlatformBuild`. */ +export type PlatformBuildOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'ATTEMPT_ASC' + | 'ATTEMPT_DESC' + | 'COMMIT_SHA_ASC' + | 'COMMIT_SHA_DESC' + | 'CONCLUSION_ASC' + | 'CONCLUSION_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' - | 'FUNCTION_DEFINITION_ID_ASC' - | 'FUNCTION_DEFINITION_ID_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'EVENT_ID_ASC' + | 'EVENT_ID_DESC' + | 'FINISHED_AT_ASC' + | 'FINISHED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IMAGE_REF_ASC' + | 'IMAGE_REF_DESC' + | 'JOB_ID_ASC' + | 'JOB_ID_DESC' + | 'LOGS_ASC' + | 'LOGS_DESC' + | 'MATRIX_KEY_ASC' + | 'MATRIX_KEY_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PROPOSAL_ID_ASC' + | 'PROPOSAL_ID_DESC' + | 'REF_ASC' + | 'REF_DESC' + | 'REPOSITORY_ID_ASC' + | 'REPOSITORY_ID_DESC' + | 'STARTED_AT_ASC' + | 'STARTED_AT_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC' + | 'WORKFLOW_ID_ASC' + | 'WORKFLOW_ID_DESC'; +/** Methods to use when ordering `PlatformBuildStep`. */ +export type PlatformBuildStepOrderBy = + | 'BUILD_ID_ASC' + | 'BUILD_ID_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'EXIT_CODE_ASC' + | 'EXIT_CODE_DESC' + | 'FINISHED_AT_ASC' + | 'FINISHED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'KIND_ASC' + | 'KIND_DESC' + | 'LOG_BYTES_ASC' + | 'LOG_BYTES_DESC' + | 'LOG_OFFSET_ASC' + | 'LOG_OFFSET_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'PARENT_SEQ_ASC' + | 'PARENT_SEQ_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'RECORDED_AT_ASC' + | 'RECORDED_AT_DESC' + | 'SEQ_ASC' + | 'SEQ_DESC' + | 'STARTED_AT_ASC' + | 'STARTED_AT_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'SUMMARY_ASC' + | 'SUMMARY_DESC'; +/** Methods to use when ordering `PlatformBuilderBinding`. */ +export type PlatformBuilderBindingOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'INSTALLATION_ID_ASC' + | 'INSTALLATION_ID_DESC' + | 'LAST_ERROR_ASC' + | 'LAST_ERROR_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'NATURAL' + | 'OBSERVED_HOST_ASC' + | 'OBSERVED_HOST_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'REALM_ASC' + | 'REALM_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +/** Methods to use when ordering `PlatformFunctionApiBinding`. */ +export type PlatformFunctionApiBindingOrderBy = + | 'ALIAS_ASC' + | 'ALIAS_DESC' + | 'API_ID_ASC' + | 'API_ID_DESC' + | 'CONFIG_ASC' + | 'CONFIG_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'FUNCTION_DEFINITION_ID_ASC' + | 'FUNCTION_DEFINITION_ID_DESC' | 'ID_ASC' | 'ID_DESC' | 'NATURAL' @@ -872,6 +1500,8 @@ export type PlatformFunctionCapabilityBindingOrderBy = export type PlatformFunctionDefinitionOrderBy = | 'ACCESS_CHANNELS_ASC' | 'ACCESS_CHANNELS_DESC' + | 'ANONYMOUS_CALLABLE_ASC' + | 'ANONYMOUS_CALLABLE_DESC' | 'BILLABLE_ASC' | 'BILLABLE_DESC' | 'CATEGORY_ASC' @@ -884,6 +1514,8 @@ export type PlatformFunctionDefinitionOrderBy = | 'CPU_REQUEST_MILLICORES_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' | 'FN_CATEGORY_ASC' @@ -933,6 +1565,8 @@ export type PlatformFunctionDefinitionOrderBy = | 'QUEUE_NAME_DESC' | 'REQUIRED_BUCKETS_ASC' | 'REQUIRED_BUCKETS_DESC' + | 'REQUIRED_CAPABILITIES_ASC' + | 'REQUIRED_CAPABILITIES_DESC' | 'REQUIRED_CONFIGS_ASC' | 'REQUIRED_CONFIGS_DESC' | 'REQUIRED_MODELS_ASC' @@ -961,6 +1595,8 @@ export type PlatformFunctionDefinitionOrderBy = | 'TIMEOUT_SECONDS_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC' | 'VOLATILE_ASC' | 'VOLATILE_DESC'; /** Methods to use when ordering `PlatformFunctionDeploymentEvent`. */ @@ -990,6 +1626,8 @@ export type PlatformFunctionDeploymentOrderBy = | 'CONCURRENCY_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'ERROR_COUNT_ASC' | 'ERROR_COUNT_DESC' | 'HANDLER_NAME_ASC' @@ -1030,7 +1668,9 @@ export type PlatformFunctionDeploymentOrderBy = | 'TIMEOUT_SECONDS_ASC' | 'TIMEOUT_SECONDS_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; /** Methods to use when ordering `PlatformFunctionExecutionLog`. */ export type PlatformFunctionExecutionLogOrderBy = | 'ACTOR_ID_ASC' @@ -1093,12 +1733,18 @@ export type PlatformFunctionInvocationOrderBy = | 'COMPLETED_AT_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'DEFINITION_SCOPE_ASC' | 'DEFINITION_SCOPE_DESC' | 'DURATION_MS_ASC' | 'DURATION_MS_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'ENTITY_TYPE_ASC' + | 'ENTITY_TYPE_DESC' | 'ERROR_ASC' | 'ERROR_DESC' | 'FUNCTION_DEFINITION_ID_ASC' @@ -1110,12 +1756,16 @@ export type PlatformFunctionInvocationOrderBy = | 'JOB_ID_ASC' | 'JOB_ID_DESC' | 'NATURAL' + | 'ORGANIZATION_ID_ASC' + | 'ORGANIZATION_ID_DESC' | 'PARENT_INVOCATION_ID_ASC' | 'PARENT_INVOCATION_ID_DESC' | 'PAYLOAD_ASC' | 'PAYLOAD_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' + | 'PRINCIPAL_ID_ASC' + | 'PRINCIPAL_ID_DESC' | 'PROVENANCE_ASC' | 'PROVENANCE_DESC' | 'RESULT_ASC' @@ -1126,6 +1776,74 @@ export type PlatformFunctionInvocationOrderBy = | 'STATUS_DESC' | 'TASK_IDENTIFIER_ASC' | 'TASK_IDENTIFIER_DESC'; +/** Methods to use when ordering `PlatformImageGrant`. */ +export type PlatformImageGrantOrderBy = + | 'ACTIONS_ASC' + | 'ACTIONS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'EXPIRES_AT_ASC' + | 'EXPIRES_AT_DESC' + | 'GRANTED_BY_ASC' + | 'GRANTED_BY_DESC' + | 'GRANTEE_KEY_ASC' + | 'GRANTEE_KEY_DESC' + | 'GRANTEE_SCOPE_ASC' + | 'GRANTEE_SCOPE_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IMAGE_ID_ASC' + | 'IMAGE_ID_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +/** Methods to use when ordering `PlatformImage`. */ +export type PlatformImageOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'DIGEST_ASC' + | 'DIGEST_DESC' + | 'EXPIRES_AT_ASC' + | 'EXPIRES_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_PUBLISHED_ASC' + | 'IS_PUBLISHED_DESC' + | 'LABELS_ASC' + | 'LABELS_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'PLATFORM_ONLY_ASC' + | 'PLATFORM_ONLY_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'REGISTRY_HOST_ASC' + | 'REGISTRY_HOST_DESC' + | 'REPOSITORY_ASC' + | 'REPOSITORY_DESC' + | 'RUNTIME_ASC' + | 'RUNTIME_DESC' + | 'TAG_ASC' + | 'TAG_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; /** Methods to use when ordering `PlatformInfraCommit`. */ export type PlatformInfraCommitOrderBy = | 'AUTHOR_ID_ASC' @@ -1196,6 +1914,56 @@ export type PlatformInfraStoreOrderBy = | 'PRIMARY_KEY_DESC' | 'SCOPE_ID_ASC' | 'SCOPE_ID_DESC'; +/** Methods to use when ordering `PlatformK8sResourceKind`. */ +export type PlatformK8sResourceKindOrderBy = + | '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' + | '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 `PlatformK8sSpecRule`. */ +export type PlatformK8sSpecRuleOrderBy = + | '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' + | '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 `PlatformNamespaceEvent`. */ export type PlatformNamespaceEventOrderBy = | 'ACTOR_ID_ASC' @@ -1219,6 +1987,8 @@ export type PlatformNamespaceEventOrderBy = export type PlatformNamespaceOrderBy = | 'ANNOTATIONS_ASC' | 'ANNOTATIONS_DESC' + | 'CLUSTER_ID_ASC' + | 'CLUSTER_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'DESCRIPTION_ASC' @@ -1244,474 +2014,533 @@ export type PlatformNamespaceOrderBy = | 'STATUS_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `PlatformResourceDeclaredCapacity`. */ -export type PlatformResourceDeclaredCapacityOrderBy = - | 'CPU_LIMIT_MILLICORES_ASC' - | 'CPU_LIMIT_MILLICORES_DESC' - | 'CPU_REQUEST_MILLICORES_ASC' - | 'CPU_REQUEST_MILLICORES_DESC' - | 'INSTALLATION_ID_ASC' - | 'INSTALLATION_ID_DESC' - | 'IS_TRANSIENT_ASC' - | 'IS_TRANSIENT_DESC' - | 'KIND_ASC' - | 'KIND_DESC' - | 'MEMORY_LIMIT_BYTES_ASC' - | 'MEMORY_LIMIT_BYTES_DESC' - | 'MEMORY_REQUEST_BYTES_ASC' - | 'MEMORY_REQUEST_BYTES_DESC' - | 'NAMESPACE_ID_ASC' - | 'NAMESPACE_ID_DESC' - | 'NATURAL' - | 'POD_COUNT_MAX_ASC' - | 'POD_COUNT_MAX_DESC' - | 'POD_COUNT_MIN_ASC' - | 'POD_COUNT_MIN_DESC' - | 'SOURCE_ASC' - | 'SOURCE_DESC' - | 'SOURCE_ID_ASC' - | 'SOURCE_ID_DESC' - | 'STORAGE_SIZE_BYTES_ASC' - | 'STORAGE_SIZE_BYTES_DESC'; -/** Methods to use when ordering `PlatformResourceDefinition`. */ -export type PlatformResourceDefinitionOrderBy = - | 'ANNOTATIONS_ASC' - | 'ANNOTATIONS_DESC' +/** Methods to use when ordering `PlatformProposalComment`. */ +export type PlatformProposalCommentOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'ATTACHMENTS_ASC' + | 'ATTACHMENTS_DESC' + | 'BODY_ASC' + | 'BODY_DESC' + | 'BODY_TRGM_SIMILARITY_ASC' + | 'BODY_TRGM_SIMILARITY_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'CREATED_BY_ASC' | 'CREATED_BY_DESC' - | 'DEFAULT_SPEC_ASC' - | 'DEFAULT_SPEC_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'EMBEDDING_ASC' + | 'EMBEDDING_DESC' + | 'EMBEDDING_UPDATED_AT_ASC' + | 'EMBEDDING_UPDATED_AT_DESC' + | 'EMBEDDING_VECTOR_DISTANCE_ASC' + | 'EMBEDDING_VECTOR_DISTANCE_DESC' | 'ID_ASC' | 'ID_DESC' - | 'INTEGRATIONS_ASC' - | 'INTEGRATIONS_DESC' - | 'KIND_ASC' - | 'KIND_DESC' - | 'LABELS_ASC' - | 'LABELS_DESC' - | 'NAMESPACE_ID_ASC' - | 'NAMESPACE_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' + | 'LINE_ASC' + | 'LINE_DESC' | 'NATURAL' - | 'PARAMS_SCHEMA_ASC' - | 'PARAMS_SCHEMA_DESC' + | 'OUTDATED_AT_ASC' + | 'OUTDATED_AT_DESC' + | 'PATH_ASC' + | 'PATH_DESC' + | 'PATH_TRGM_SIMILARITY_ASC' + | 'PATH_TRGM_SIMILARITY_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'REQUIRED_CONFIGS_ASC' - | 'REQUIRED_CONFIGS_DESC' - | 'REQUIRED_SECRETS_ASC' - | 'REQUIRED_SECRETS_DESC' - | 'SLUG_ASC' - | 'SLUG_DESC' - | 'STEP_UP_MIN_AGE_ASC' - | 'STEP_UP_MIN_AGE_DESC' + | 'PROPOSAL_ID_ASC' + | 'PROPOSAL_ID_DESC' + | 'RESOLVED_AT_ASC' + | 'RESOLVED_AT_DESC' + | 'SEARCH_ASC' + | 'SEARCH_DESC' + | 'SEARCH_SCORE_ASC' + | 'SEARCH_SCORE_DESC' + | 'SEARCH_TSV_RANK_ASC' + | 'SEARCH_TSV_RANK_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC'; -/** Methods to use when ordering `PlatformResourceEvent`. */ -export type PlatformResourceEventOrderBy = - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +/** Methods to use when ordering `PlatformProposalFileView`. */ +export type PlatformProposalFileViewOrderBy = + | 'BLOB_SHA_ASC' + | 'BLOB_SHA_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' - | 'EVENT_TYPE_ASC' - | 'EVENT_TYPE_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'ID_ASC' | 'ID_DESC' - | 'MESSAGE_ASC' - | 'MESSAGE_DESC' - | 'METADATA_ASC' - | 'METADATA_DESC' | 'NATURAL' + | 'PATH_ASC' + | 'PATH_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'RESOURCE_ID_ASC' - | 'RESOURCE_ID_DESC'; -/** Methods to use when ordering `PlatformResourceInstallation`. */ -export type PlatformResourceInstallationOrderBy = - | 'COMMIT_ID_ASC' - | 'COMMIT_ID_DESC' + | 'PROPOSAL_ID_ASC' + | 'PROPOSAL_ID_DESC' + | 'REVIEWER_ID_ASC' + | 'REVIEWER_ID_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC' + | 'VIEWED_AT_ASC' + | 'VIEWED_AT_DESC'; +/** Methods to use when ordering `PlatformProposal`. */ +export type PlatformProposalOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'BODY_ASC' + | 'BODY_DESC' + | 'BODY_TRGM_SIMILARITY_ASC' + | 'BODY_TRGM_SIMILARITY_DESC' + | 'CLOSED_REASON_ASC' + | 'CLOSED_REASON_DESC' + | 'CLOSED_REASON_TRGM_SIMILARITY_ASC' + | 'CLOSED_REASON_TRGM_SIMILARITY_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'CREATED_BY_ASC' | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DECIDED_AT_ASC' + | 'DECIDED_AT_DESC' + | 'DUE_AT_ASC' + | 'DUE_AT_DESC' + | 'EMBEDDING_ASC' + | 'EMBEDDING_DESC' + | 'EMBEDDING_UPDATED_AT_ASC' + | 'EMBEDDING_UPDATED_AT_DESC' + | 'EMBEDDING_VECTOR_DISTANCE_ASC' + | 'EMBEDDING_VECTOR_DISTANCE_DESC' | 'ID_ASC' | 'ID_DESC' - | 'NAMESPACE_ID_ASC' - | 'NAMESPACE_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' + | 'KIND_ASC' + | 'KIND_DESC' + | 'KIND_TRGM_SIMILARITY_ASC' + | 'KIND_TRGM_SIMILARITY_DESC' + | 'LABELS_ASC' + | 'LABELS_DESC' + | 'MERGED_AT_ASC' + | 'MERGED_AT_DESC' + | 'MERGE_COMMIT_ASC' + | 'MERGE_COMMIT_DESC' + | 'MERGE_COMMIT_TRGM_SIMILARITY_ASC' + | 'MERGE_COMMIT_TRGM_SIMILARITY_DESC' + | 'MERGE_METHOD_ASC' + | 'MERGE_METHOD_DESC' + | 'MERGE_METHOD_TRGM_SIMILARITY_ASC' + | 'MERGE_METHOD_TRGM_SIMILARITY_DESC' + | 'MERGE_REQUESTED_AT_ASC' + | 'MERGE_REQUESTED_AT_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' | 'NATURAL' - | 'PARAMS_ASC' - | 'PARAMS_DESC' + | 'PARENT_ID_ASC' + | 'PARENT_ID_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'REVISION_ASC' - | 'REVISION_DESC' - | 'SLUG_ASC' - | 'SLUG_DESC' + | 'PRIORITY_ASC' + | 'PRIORITY_DESC' + | 'REPOSITORY_ID_ASC' + | 'REPOSITORY_ID_DESC' + | 'RESOLUTION_ASC' + | 'RESOLUTION_DESC' + | 'RESOLUTION_TRGM_SIMILARITY_ASC' + | 'RESOLUTION_TRGM_SIMILARITY_DESC' + | 'SEARCH_ASC' + | 'SEARCH_DESC' + | 'SEARCH_SCORE_ASC' + | 'SEARCH_SCORE_DESC' + | 'SEARCH_TSV_RANK_ASC' + | 'SEARCH_TSV_RANK_DESC' + | 'SOURCE_REF_ASC' + | 'SOURCE_REF_DESC' + | 'SOURCE_REF_TRGM_SIMILARITY_ASC' + | 'SOURCE_REF_TRGM_SIMILARITY_DESC' | 'STATUS_ASC' | 'STATUS_DESC' - | 'STORE_ID_ASC' - | 'STORE_ID_DESC' + | 'STATUS_TRGM_SIMILARITY_ASC' + | 'STATUS_TRGM_SIMILARITY_DESC' + | 'TARGET_REF_ASC' + | 'TARGET_REF_DESC' + | 'TARGET_REF_TRGM_SIMILARITY_ASC' + | 'TARGET_REF_TRGM_SIMILARITY_DESC' + | 'TITLE_ASC' + | 'TITLE_DESC' + | 'TITLE_TRGM_SIMILARITY_ASC' + | 'TITLE_TRGM_SIMILARITY_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC'; -/** Methods to use when ordering `PlatformResource`. */ -export type PlatformResourceOrderBy = - | 'ANNOTATIONS_ASC' - | 'ANNOTATIONS_DESC' - | 'CPU_LIMIT_MILLICORES_ASC' - | 'CPU_LIMIT_MILLICORES_DESC' - | 'CPU_REQUEST_MILLICORES_ASC' - | 'CPU_REQUEST_MILLICORES_DESC' + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +/** Methods to use when ordering `PlatformProposalReaction`. */ +export type PlatformProposalReactionOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'COMMENT_ID_ASC' + | 'COMMENT_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'EMOJI_ASC' + | 'EMOJI_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PROPOSAL_ID_ASC' + | 'PROPOSAL_ID_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +/** Methods to use when ordering `PlatformProposalReview`. */ +export type PlatformProposalReviewOrderBy = + | 'BODY_ASC' + | 'BODY_DESC' + | 'BODY_TRGM_SIMILARITY_ASC' + | 'BODY_TRGM_SIMILARITY_DESC' + | 'COMMIT_SHA_ASC' + | 'COMMIT_SHA_DESC' + | 'COMMIT_SHA_TRGM_SIMILARITY_ASC' + | 'COMMIT_SHA_TRGM_SIMILARITY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PROPOSAL_ID_ASC' + | 'PROPOSAL_ID_DESC' + | 'REVIEWER_ID_ASC' + | 'REVIEWER_ID_DESC' + | 'SEARCH_ASC' + | 'SEARCH_DESC' + | 'SEARCH_SCORE_ASC' + | 'SEARCH_SCORE_DESC' + | 'SEARCH_TSV_RANK_ASC' + | 'SEARCH_TSV_RANK_DESC' + | 'SUBMITTED_AT_ASC' + | 'SUBMITTED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC' + | 'VERDICT_ASC' + | 'VERDICT_DESC' + | 'VERDICT_TRGM_SIMILARITY_ASC' + | 'VERDICT_TRGM_SIMILARITY_DESC'; +/** Methods to use when ordering `PlatformProposalsChunk`. */ +export type PlatformProposalsChunkOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'BODY_ASC' + | 'BODY_DESC' + | 'CHUNK_INDEX_ASC' + | 'CHUNK_INDEX_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'EMBEDDING_ASC' + | 'EMBEDDING_DESC' + | 'EMBEDDING_VECTOR_DISTANCE_ASC' + | 'EMBEDDING_VECTOR_DISTANCE_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'NATURAL' + | 'PLATFORM_PROPOSALS_ID_ASC' + | 'PLATFORM_PROPOSALS_ID_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'SEARCH_SCORE_ASC' + | 'SEARCH_SCORE_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `PlatformRegistryBinding`. */ +export type PlatformRegistryBindingOrderBy = | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'CREATED_BY_ASC' | 'CREATED_BY_DESC' - | 'ERROR_COUNT_ASC' - | 'ERROR_COUNT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'NATURAL' + | 'OBSERVED_CREDENTIAL_VERSION_ASC' + | 'OBSERVED_CREDENTIAL_VERSION_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PULL_SECRET_NAME_ASC' + | 'PULL_SECRET_NAME_DESC' + | 'REALM_ASC' + | 'REALM_DESC' + | 'REGISTRY_HOST_ASC' + | 'REGISTRY_HOST_DESC' + | 'REGISTRY_ID_ASC' + | 'REGISTRY_ID_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +/** Methods to use when ordering `PlatformRegistryGrant`. */ +export type PlatformRegistryGrantOrderBy = + | 'ACTIONS_ASC' + | 'ACTIONS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'EXPIRES_AT_ASC' + | 'EXPIRES_AT_DESC' + | 'GRANTED_BY_ASC' + | 'GRANTED_BY_DESC' + | 'GRANTEE_KEY_ASC' + | 'GRANTEE_KEY_DESC' + | 'GRANTEE_SCOPE_ASC' + | 'GRANTEE_SCOPE_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'REGISTRY_ID_ASC' + | 'REGISTRY_ID_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +/** Methods to use when ordering `PlatformRegistry`. */ +export type PlatformRegistryOrderBy = + | 'AUTH_MODE_ASC' + | 'AUTH_MODE_DESC' + | 'BASE_PATH_ASC' + | 'BASE_PATH_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'CREDENTIAL_SECRET_NAME_ASC' + | 'CREDENTIAL_SECRET_NAME_DESC' + | 'HOST_ASC' + | 'HOST_DESC' | 'ID_ASC' | 'ID_DESC' | 'INSTALLATION_ID_ASC' | 'INSTALLATION_ID_DESC' - | 'INTEGRATIONS_ASC' - | 'INTEGRATIONS_DESC' + | 'IS_PUBLISHED_ASC' + | 'IS_PUBLISHED_DESC' | 'KIND_ASC' | 'KIND_DESC' | 'LABELS_ASC' | 'LABELS_DESC' | 'LAST_ERROR_ASC' | 'LAST_ERROR_DESC' - | 'LAST_HEARTBEAT_AT_ASC' - | 'LAST_HEARTBEAT_AT_DESC' - | 'MEMORY_LIMIT_BYTES_ASC' - | 'MEMORY_LIMIT_BYTES_DESC' - | 'MEMORY_REQUEST_BYTES_ASC' - | 'MEMORY_REQUEST_BYTES_DESC' - | 'NAMESPACE_ID_ASC' - | 'NAMESPACE_ID_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'NATURAL' + | 'PLATFORM_ONLY_ASC' + | 'PLATFORM_ONLY_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'REALM_ASC' - | 'REALM_DESC' - | 'REPLICAS_ASC' - | 'REPLICAS_DESC' - | 'REQUIRED_CONFIGS_ASC' - | 'REQUIRED_CONFIGS_DESC' - | 'REQUIRED_SECRETS_ASC' - | 'REQUIRED_SECRETS_DESC' - | 'RESOURCE_DEFINITION_ID_ASC' - | 'RESOURCE_DEFINITION_ID_DESC' - | 'SLUG_ASC' - | 'SLUG_DESC' - | 'SPEC_ASC' - | 'SPEC_DESC' + | 'ROLE_ASC' + | 'ROLE_DESC' | 'STATUS_ASC' | 'STATUS_DESC' - | 'STATUS_OBSERVED_ASC' - | 'STATUS_OBSERVED_DESC' - | 'STORAGE_CLASS_ASC' - | 'STORAGE_CLASS_DESC' - | 'STORAGE_SIZE_BYTES_ASC' - | 'STORAGE_SIZE_BYTES_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC'; -/** Methods to use when ordering `PlatformResourceStatusCheck`. */ -export type PlatformResourceStatusCheckOrderBy = - | 'COMPLETED_AT_ASC' - | 'COMPLETED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +/** Methods to use when ordering `PlatformRepositoryEvent`. */ +export type PlatformRepositoryEventOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'COMMIT_SHA_ASC' + | 'COMMIT_SHA_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DELIVERY_ID_ASC' + | 'DELIVERY_ID_DESC' + | 'EVENT_TYPE_ASC' + | 'EVENT_TYPE_DESC' | 'ID_ASC' | 'ID_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' | 'NATURAL' + | 'PAYLOAD_ASC' + | 'PAYLOAD_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'REQUESTED_AT_ASC' - | 'REQUESTED_AT_DESC' - | 'REQUESTED_BY_ASC' - | 'REQUESTED_BY_DESC' - | 'RESOURCE_ID_ASC' - | 'RESOURCE_ID_DESC' - | 'RESULT_ASC' - | 'RESULT_DESC' - | 'STATUS_ASC' - | 'STATUS_DESC'; -/** Methods to use when ordering `PlatformResourceUsageLog`. */ -export type PlatformResourceUsageLogOrderBy = - | 'CPU_MILLICORES_ASC' - | 'CPU_MILLICORES_DESC' + | 'REF_ASC' + | 'REF_DESC' + | 'REPOSITORY_ID_ASC' + | 'REPOSITORY_ID_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +/** Methods to use when ordering `PlatformRepository`. */ +export type PlatformRepositoryOrderBy = + | 'CLONE_URL_ASC' + | 'CLONE_URL_DESC' + | 'CLONE_URL_TRGM_SIMILARITY_ASC' + | 'CLONE_URL_TRGM_SIMILARITY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DEFAULT_BRANCH_ASC' + | 'DEFAULT_BRANCH_DESC' + | 'DEFAULT_BRANCH_TRGM_SIMILARITY_ASC' + | 'DEFAULT_BRANCH_TRGM_SIMILARITY_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'DESCRIPTION_TRGM_SIMILARITY_ASC' + | 'DESCRIPTION_TRGM_SIMILARITY_DESC' + | 'EMBEDDING_ASC' + | 'EMBEDDING_DESC' + | 'EMBEDDING_UPDATED_AT_ASC' + | 'EMBEDDING_UPDATED_AT_DESC' + | 'EMBEDDING_VECTOR_DISTANCE_ASC' + | 'EMBEDDING_VECTOR_DISTANCE_DESC' + | 'EXTERNAL_ID_ASC' + | 'EXTERNAL_ID_DESC' + | 'EXTERNAL_ID_TRGM_SIMILARITY_ASC' + | 'EXTERNAL_ID_TRGM_SIMILARITY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'INTERVAL_SECONDS_ASC' - | 'INTERVAL_SECONDS_DESC' - | 'MEMORY_BYTES_ASC' - | 'MEMORY_BYTES_DESC' - | 'METRICS_ASC' - | 'METRICS_DESC' - | 'NAMESPACE_ID_ASC' - | 'NAMESPACE_ID_DESC' + | 'IS_ARCHIVED_ASC' + | 'IS_ARCHIVED_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NAME_TRGM_SIMILARITY_ASC' + | 'NAME_TRGM_SIMILARITY_DESC' | 'NATURAL' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'RESOURCE_ID_ASC' - | 'RESOURCE_ID_DESC' - | 'SAMPLED_AT_ASC' - | 'SAMPLED_AT_DESC' - | 'SOURCE_ASC' - | 'SOURCE_DESC'; -/** Methods to use when ordering `PlatformResourceUsageSummary`. */ -export type PlatformResourceUsageSummaryOrderBy = - | 'DATE_ASC' - | 'DATE_DESC' - | 'GB_SECONDS_ASC' - | 'GB_SECONDS_DESC' + | 'PROVIDER_ASC' + | 'PROVIDER_DESC' + | 'PROVIDER_TRGM_SIMILARITY_ASC' + | 'PROVIDER_TRGM_SIMILARITY_DESC' + | 'SEARCH_ASC' + | 'SEARCH_DESC' + | 'SEARCH_SCORE_ASC' + | 'SEARCH_SCORE_DESC' + | 'SEARCH_TSV_RANK_ASC' + | 'SEARCH_TSV_RANK_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'SLUG_TRGM_SIMILARITY_ASC' + | 'SLUG_TRGM_SIMILARITY_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC' + | 'VISIBILITY_ASC' + | 'VISIBILITY_DESC' + | 'VISIBILITY_TRGM_SIMILARITY_ASC' + | 'VISIBILITY_TRGM_SIMILARITY_DESC'; +/** Methods to use when ordering `PlatformRepositoryRequiredCheck`. */ +export type PlatformRepositoryRequiredCheckOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' | 'ID_ASC' | 'ID_DESC' - | 'MAX_CPU_MILLICORES_ASC' - | 'MAX_CPU_MILLICORES_DESC' - | 'MAX_MEMORY_BYTES_ASC' - | 'MAX_MEMORY_BYTES_DESC' - | 'NAMESPACE_ID_ASC' - | 'NAMESPACE_ID_DESC' | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'RESOURCE_ID_ASC' - | 'RESOURCE_ID_DESC' - | 'RUNTIME_SECONDS_ASC' - | 'RUNTIME_SECONDS_DESC' - | 'SAMPLE_COUNT_ASC' - | 'SAMPLE_COUNT_DESC'; -/** Methods to use when ordering `PlatformResourceUtilization`. */ -export type PlatformResourceUtilizationOrderBy = - | 'AVG_MEMORY_BYTES_ASC' - | 'AVG_MEMORY_BYTES_DESC' + | 'REPOSITORY_ID_ASC' + | 'REPOSITORY_ID_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'WORKFLOW_ID_ASC' + | 'WORKFLOW_ID_DESC'; +/** Methods to use when ordering `PlatformRepositoryWorkflow`. */ +export type PlatformRepositoryWorkflowOrderBy = + | 'CANCEL_IN_PROGRESS_ASC' + | 'CANCEL_IN_PROGRESS_DESC' + | 'CONCURRENCY_KEY_ASC' + | 'CONCURRENCY_KEY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'EVENT_TYPE_ASC' + | 'EVENT_TYPE_DESC' + | 'GRAPH_ID_ASC' + | 'GRAPH_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'INPUTS_ASC' + | 'INPUTS_DESC' + | 'IS_ENABLED_ASC' + | 'IS_ENABLED_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'REF_PATTERN_ASC' + | 'REF_PATTERN_DESC' + | 'REPOSITORY_ID_ASC' + | 'REPOSITORY_ID_DESC' + | 'REQUIRED_SECRETS_ASC' + | 'REQUIRED_SECRETS_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +/** Methods to use when ordering `PlatformResourceDeclaredCapacity`. */ +export type PlatformResourceDeclaredCapacityOrderBy = | 'CPU_LIMIT_MILLICORES_ASC' | 'CPU_LIMIT_MILLICORES_DESC' - | 'CPU_PEAK_UTILIZATION_ASC' - | 'CPU_PEAK_UTILIZATION_DESC' - | 'CPU_REQUEST_HEADROOM_MILLICORES_ASC' - | 'CPU_REQUEST_HEADROOM_MILLICORES_DESC' | 'CPU_REQUEST_MILLICORES_ASC' | 'CPU_REQUEST_MILLICORES_DESC' - | 'DATE_ASC' - | 'DATE_DESC' - | 'GB_SECONDS_ASC' - | 'GB_SECONDS_DESC' - | 'KIND_ASC' - | 'KIND_DESC' - | 'MAX_CPU_MILLICORES_ASC' - | 'MAX_CPU_MILLICORES_DESC' - | 'MAX_MEMORY_BYTES_ASC' - | 'MAX_MEMORY_BYTES_DESC' - | 'MEMORY_LIMIT_BYTES_ASC' - | 'MEMORY_LIMIT_BYTES_DESC' - | 'MEMORY_PEAK_UTILIZATION_ASC' - | 'MEMORY_PEAK_UTILIZATION_DESC' - | 'MEMORY_REQUEST_BYTES_ASC' - | 'MEMORY_REQUEST_BYTES_DESC' - | 'MEMORY_REQUEST_HEADROOM_BYTES_ASC' - | 'MEMORY_REQUEST_HEADROOM_BYTES_DESC' - | 'NAMESPACE_ID_ASC' - | 'NAMESPACE_ID_DESC' - | 'NATURAL' - | 'REPLICAS_ASC' - | 'REPLICAS_DESC' - | 'RESOURCE_ID_ASC' - | 'RESOURCE_ID_DESC' - | 'RUNTIME_SECONDS_ASC' - | 'RUNTIME_SECONDS_DESC' - | 'SAMPLE_COUNT_ASC' - | 'SAMPLE_COUNT_DESC'; -/** Methods to use when ordering `PlatformResourcesHealth`. */ -export type PlatformResourcesHealthOrderBy = - | 'ANNOTATIONS_ASC' - | 'ANNOTATIONS_DESC' - | 'CPU_LIMIT_MILLICORES_ASC' - | 'CPU_LIMIT_MILLICORES_DESC' - | 'CPU_REQUEST_MILLICORES_ASC' - | 'CPU_REQUEST_MILLICORES_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'ERROR_COUNT_ASC' - | 'ERROR_COUNT_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'INSTALLATION_ID_ASC' - | 'INSTALLATION_ID_DESC' - | 'INTEGRATIONS_ASC' - | 'INTEGRATIONS_DESC' - | 'KIND_ASC' - | 'KIND_DESC' - | 'LABELS_ASC' - | 'LABELS_DESC' - | 'LAST_ERROR_ASC' - | 'LAST_ERROR_DESC' - | 'LAST_HEARTBEAT_AT_ASC' - | 'LAST_HEARTBEAT_AT_DESC' - | 'MEMORY_LIMIT_BYTES_ASC' - | 'MEMORY_LIMIT_BYTES_DESC' - | 'MEMORY_REQUEST_BYTES_ASC' - | 'MEMORY_REQUEST_BYTES_DESC' - | 'NAMESPACE_ID_ASC' - | 'NAMESPACE_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'NATURAL' - | 'REALM_ASC' - | 'REALM_DESC' - | 'REPLICAS_ASC' - | 'REPLICAS_DESC' - | 'REQUIRED_CONFIGS_ASC' - | 'REQUIRED_CONFIGS_DESC' - | 'REQUIRED_SECRETS_ASC' - | 'REQUIRED_SECRETS_DESC' - | 'RESOURCE_DEFINITION_ID_ASC' - | 'RESOURCE_DEFINITION_ID_DESC' - | 'SLUG_ASC' - | 'SLUG_DESC' - | 'SPEC_ASC' - | 'SPEC_DESC' - | 'STATUS_ASC' - | 'STATUS_DESC' - | 'STATUS_DETAIL_ASC' - | 'STATUS_DETAIL_DESC' - | 'STATUS_OBSERVED_ASC' - | 'STATUS_OBSERVED_DESC' - | 'STORAGE_CLASS_ASC' - | 'STORAGE_CLASS_DESC' - | 'STORAGE_SIZE_BYTES_ASC' - | 'STORAGE_SIZE_BYTES_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC'; -/** Methods to use when ordering `PlatformResourcesRequirementsState`. */ -export type PlatformResourcesRequirementsStateOrderBy = - | 'CONFIG_HASH_ASC' - | 'CONFIG_HASH_DESC' - | 'CONFIG_OBJECT_NAME_ASC' - | 'CONFIG_OBJECT_NAME_DESC' - | 'NATURAL' - | 'REQUIREMENTS_HASH_ASC' - | 'REQUIREMENTS_HASH_DESC' - | 'RESOURCE_ID_ASC' - | 'RESOURCE_ID_DESC' - | 'SECRETS_HASH_ASC' - | 'SECRETS_HASH_DESC' - | 'SECRETS_OBJECT_NAME_ASC' - | 'SECRETS_OBJECT_NAME_DESC' - | 'SLUG_ASC' - | 'SLUG_DESC'; -/** Methods to use when ordering `PlatformResourcesResolvedRequirement`. */ -export type PlatformResourcesResolvedRequirementOrderBy = - | 'ATOM_ID_ASC' - | 'ATOM_ID_DESC' - | 'CONFIG_OBJECT_NAME_ASC' - | 'CONFIG_OBJECT_NAME_DESC' - | 'NAMESPACE_ID_ASC' - | 'NAMESPACE_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'NATURAL' - | 'PRESENT_ASC' - | 'PRESENT_DESC' - | 'REALM_ASC' - | 'REALM_DESC' - | 'REQUIRED_ASC' - | 'REQUIRED_DESC' - | 'REQUIREMENT_KIND_ASC' - | 'REQUIREMENT_KIND_DESC' - | 'RESOURCE_ID_ASC' - | 'RESOURCE_ID_DESC' - | 'SECRETS_OBJECT_NAME_ASC' - | 'SECRETS_OBJECT_NAME_DESC' - | 'SLUG_ASC' - | 'SLUG_DESC'; -/** Methods to use when ordering `PlatformWebhookEndpoint`. */ -export type PlatformWebhookEndpointOrderBy = - | 'ACTIVE_ASC' - | 'ACTIVE_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'FUNCTION_DEFINITION_ID_ASC' - | 'FUNCTION_DEFINITION_ID_DESC' - | 'HOST_ASC' - | 'HOST_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAMESPACE_ID_ASC' - | 'NAMESPACE_ID_DESC' - | 'NATURAL' - | 'PATH_ASC' - | 'PATH_DESC' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'PROVIDER_ASC' - | 'PROVIDER_DESC' - | 'REPLAY_WINDOW_SECONDS_ASC' - | 'REPLAY_WINDOW_SECONDS_DESC' - | 'SIGNING_SECRET_NAME_ASC' - | 'SIGNING_SECRET_NAME_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC'; -/** Methods to use when ordering `PlatformWebhookEvent`. */ -export type PlatformWebhookEventOrderBy = - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'ENDPOINT_ID_ASC' - | 'ENDPOINT_ID_DESC' - | 'ERROR_ASC' - | 'ERROR_DESC' - | 'EXTERNAL_EVENT_ID_ASC' - | 'EXTERNAL_EVENT_ID_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'INVOCATION_CREATED_AT_ASC' - | 'INVOCATION_CREATED_AT_DESC' - | 'INVOCATION_ID_ASC' - | 'INVOCATION_ID_DESC' - | 'NATURAL' - | 'PAYLOAD_ASC' - | 'PAYLOAD_DESC' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'PROVIDER_ASC' - | 'PROVIDER_DESC' - | 'PROVIDER_TIMESTAMP_ASC' - | 'PROVIDER_TIMESTAMP_DESC' - | 'STATUS_ASC' - | 'STATUS_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `ResourceDeclaredCapacity`. */ -export type ResourceDeclaredCapacityOrderBy = - | 'CPU_LIMIT_MILLICORES_ASC' - | 'CPU_LIMIT_MILLICORES_DESC' - | 'CPU_REQUEST_MILLICORES_ASC' - | 'CPU_REQUEST_MILLICORES_DESC' - | 'INSTALLATION_ID_ASC' - | 'INSTALLATION_ID_DESC' - | 'IS_TRANSIENT_ASC' - | 'IS_TRANSIENT_DESC' + | 'INSTALLATION_ID_ASC' + | 'INSTALLATION_ID_DESC' + | 'IS_TRANSIENT_ASC' + | 'IS_TRANSIENT_DESC' | 'KIND_ASC' | 'KIND_DESC' | 'MEMORY_LIMIT_BYTES_ASC' @@ -1730,17 +2559,19 @@ export type ResourceDeclaredCapacityOrderBy = | 'SOURCE_ID_ASC' | 'SOURCE_ID_DESC' | 'STORAGE_SIZE_BYTES_ASC' - | 'STORAGE_SIZE_BYTES_DESC'; -/** Methods to use when ordering `ResourceDefinition`. */ -export type ResourceDefinitionOrderBy = + | 'STORAGE_SIZE_BYTES_DESC' + | 'STORAGE_TOTAL_BYTES_ASC' + | 'STORAGE_TOTAL_BYTES_DESC'; +/** Methods to use when ordering `PlatformResourceDefinition`. */ +export type PlatformResourceDefinitionOrderBy = | 'ANNOTATIONS_ASC' | 'ANNOTATIONS_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'CREATED_BY_ASC' | 'CREATED_BY_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'DEFAULT_SPEC_ASC' | 'DEFAULT_SPEC_DESC' | 'DESCRIPTION_ASC' @@ -1773,15 +2604,15 @@ export type ResourceDefinitionOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC'; -/** Methods to use when ordering `ResourceEvent`. */ -export type ResourceEventOrderBy = + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +/** Methods to use when ordering `PlatformResourceEvent`. */ +export type PlatformResourceEventOrderBy = | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' | 'EVENT_TYPE_ASC' | 'EVENT_TYPE_DESC' | 'ID_ASC' @@ -1795,16 +2626,16 @@ export type ResourceEventOrderBy = | 'PRIMARY_KEY_DESC' | 'RESOURCE_ID_ASC' | 'RESOURCE_ID_DESC'; -/** Methods to use when ordering `ResourceInstallation`. */ -export type ResourceInstallationOrderBy = +/** Methods to use when ordering `PlatformResourceInstallation`. */ +export type PlatformResourceInstallationOrderBy = | 'COMMIT_ID_ASC' | 'COMMIT_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'CREATED_BY_ASC' | 'CREATED_BY_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'ID_ASC' | 'ID_DESC' | 'NAMESPACE_ID_ASC' @@ -1827,9 +2658,50 @@ export type ResourceInstallationOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC'; -/** Methods to use when ordering `Resource`. */ -export type ResourceOrderBy = + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +/** Methods to use when ordering `PlatformResourceObservedStorage`. */ +export type PlatformResourceObservedStorageOrderBy = + | 'CAPACITY_ASC' + | 'CAPACITY_BYTES_ASC' + | 'CAPACITY_BYTES_DESC' + | 'CAPACITY_DESC' + | 'CLAIM_NAME_ASC' + | 'CLAIM_NAME_DESC' + | 'DECLARED_STORAGE_CLASS_ASC' + | 'DECLARED_STORAGE_CLASS_DESC' + | 'DECLARED_STORAGE_SIZE_BYTES_ASC' + | 'DECLARED_STORAGE_SIZE_BYTES_DESC' + | 'DECLARED_STORAGE_TOTAL_BYTES_ASC' + | 'DECLARED_STORAGE_TOTAL_BYTES_DESC' + | 'INSTALLATION_ID_ASC' + | 'INSTALLATION_ID_DESC' + | 'IS_BOUND_ASC' + | 'IS_BOUND_DESC' + | 'KIND_ASC' + | 'KIND_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'NATURAL' + | 'PHASE_ASC' + | 'PHASE_DESC' + | 'REQUESTED_ASC' + | 'REQUESTED_BYTES_ASC' + | 'REQUESTED_BYTES_DESC' + | 'REQUESTED_DESC' + | 'RESOURCE_ID_ASC' + | 'RESOURCE_ID_DESC' + | 'RESOURCE_STATUS_ASC' + | 'RESOURCE_STATUS_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'STORAGE_CLASS_ASC' + | 'STORAGE_CLASS_DESC' + | 'STORAGE_NAME_ASC' + | 'STORAGE_NAME_DESC'; +/** Methods to use when ordering `PlatformResource`. */ +export type PlatformResourceOrderBy = | 'ANNOTATIONS_ASC' | 'ANNOTATIONS_DESC' | 'CPU_LIMIT_MILLICORES_ASC' @@ -1840,12 +2712,14 @@ export type ResourceOrderBy = | 'CREATED_AT_DESC' | 'CREATED_BY_ASC' | 'CREATED_BY_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'ERROR_COUNT_ASC' | 'ERROR_COUNT_DESC' | 'ID_ASC' | 'ID_DESC' + | 'IMAGE_REF_ASC' + | 'IMAGE_REF_DESC' | 'INSTALLATION_ID_ASC' | 'INSTALLATION_ID_DESC' | 'INTEGRATIONS_ASC' @@ -1891,16 +2765,18 @@ export type ResourceOrderBy = | 'STORAGE_CLASS_DESC' | 'STORAGE_SIZE_BYTES_ASC' | 'STORAGE_SIZE_BYTES_DESC' + | 'STORAGE_TOTAL_BYTES_ASC' + | 'STORAGE_TOTAL_BYTES_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC'; -/** Methods to use when ordering `ResourceStatusCheck`. */ -export type ResourceStatusCheckOrderBy = + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +/** Methods to use when ordering `PlatformResourceStatusCheck`. */ +export type PlatformResourceStatusCheckOrderBy = | 'COMPLETED_AT_ASC' | 'COMPLETED_AT_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' | 'ID_ASC' | 'ID_DESC' | 'NATURAL' @@ -1916,12 +2792,10 @@ export type ResourceStatusCheckOrderBy = | 'RESULT_DESC' | 'STATUS_ASC' | 'STATUS_DESC'; -/** Methods to use when ordering `ResourceUsageLog`. */ -export type ResourceUsageLogOrderBy = +/** Methods to use when ordering `PlatformResourceUsageLog`. */ +export type PlatformResourceUsageLogOrderBy = | 'CPU_MILLICORES_ASC' | 'CPU_MILLICORES_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' | 'ID_ASC' | 'ID_DESC' | 'INTERVAL_SECONDS_ASC' @@ -1941,10 +2815,8 @@ export type ResourceUsageLogOrderBy = | 'SAMPLED_AT_DESC' | 'SOURCE_ASC' | 'SOURCE_DESC'; -/** Methods to use when ordering `ResourceUsageSummary`. */ -export type ResourceUsageSummaryOrderBy = - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' +/** Methods to use when ordering `PlatformResourceUsageSummary`. */ +export type PlatformResourceUsageSummaryOrderBy = | 'DATE_ASC' | 'DATE_DESC' | 'GB_SECONDS_ASC' @@ -1966,8 +2838,8 @@ export type ResourceUsageSummaryOrderBy = | 'RUNTIME_SECONDS_DESC' | 'SAMPLE_COUNT_ASC' | 'SAMPLE_COUNT_DESC'; -/** Methods to use when ordering `ResourceUtilization`. */ -export type ResourceUtilizationOrderBy = +/** Methods to use when ordering `PlatformResourceUtilization`. */ +export type PlatformResourceUtilizationOrderBy = | 'AVG_MEMORY_BYTES_ASC' | 'AVG_MEMORY_BYTES_DESC' | 'CPU_LIMIT_MILLICORES_ASC' @@ -2007,8 +2879,8 @@ export type ResourceUtilizationOrderBy = | 'RUNTIME_SECONDS_DESC' | 'SAMPLE_COUNT_ASC' | 'SAMPLE_COUNT_DESC'; -/** Methods to use when ordering `ResourcesHealth`. */ -export type ResourcesHealthOrderBy = +/** Methods to use when ordering `PlatformResourcesHealth`. */ +export type PlatformResourcesHealthOrderBy = | 'ANNOTATIONS_ASC' | 'ANNOTATIONS_DESC' | 'CPU_LIMIT_MILLICORES_ASC' @@ -2019,12 +2891,14 @@ export type ResourcesHealthOrderBy = | 'CREATED_AT_DESC' | 'CREATED_BY_ASC' | 'CREATED_BY_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'ERROR_COUNT_ASC' | 'ERROR_COUNT_DESC' | 'ID_ASC' | 'ID_DESC' + | 'IMAGE_REF_ASC' + | 'IMAGE_REF_DESC' | 'INSTALLATION_ID_ASC' | 'INSTALLATION_ID_DESC' | 'INTEGRATIONS_ASC' @@ -2070,12 +2944,16 @@ export type ResourcesHealthOrderBy = | 'STORAGE_CLASS_DESC' | 'STORAGE_SIZE_BYTES_ASC' | 'STORAGE_SIZE_BYTES_DESC' + | 'STORAGE_TOTAL_BYTES_ASC' + | 'STORAGE_TOTAL_BYTES_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC'; -/** Methods to use when ordering `ResourcesRequirementsState`. */ -export type ResourcesRequirementsStateOrderBy = + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +/** Methods to use when ordering `PlatformResourcesRequirementsState`. */ +export type PlatformResourcesRequirementsStateOrderBy = | 'CONFIG_HASH_ASC' | 'CONFIG_HASH_DESC' | 'CONFIG_OBJECT_NAME_ASC' @@ -2091,8 +2969,8 @@ export type ResourcesRequirementsStateOrderBy = | 'SECRETS_OBJECT_NAME_DESC' | 'SLUG_ASC' | 'SLUG_DESC'; -/** Methods to use when ordering `ResourcesResolvedRequirement`. */ -export type ResourcesResolvedRequirementOrderBy = +/** Methods to use when ordering `PlatformResourcesResolvedRequirement`. */ +export type PlatformResourcesResolvedRequirementOrderBy = | 'ATOM_ID_ASC' | 'ATOM_ID_DESC' | 'CONFIG_OBJECT_NAME_ASC' @@ -2116,16 +2994,16 @@ export type ResourcesResolvedRequirementOrderBy = | 'SECRETS_OBJECT_NAME_DESC' | 'SLUG_ASC' | 'SLUG_DESC'; -/** Methods to use when ordering `WebhookEndpoint`. */ -export type WebhookEndpointOrderBy = +/** Methods to use when ordering `PlatformWebhookEndpoint`. */ +export type PlatformWebhookEndpointOrderBy = | 'ACTIVE_ASC' | 'ACTIVE_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'CREATED_BY_ASC' | 'CREATED_BY_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'FUNCTION_DEFINITION_ID_ASC' | 'FUNCTION_DEFINITION_ID_DESC' | 'HOST_ASC' @@ -2148,13 +3026,13 @@ export type WebhookEndpointOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC'; -/** Methods to use when ordering `WebhookEvent`. */ -export type WebhookEventOrderBy = + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +/** Methods to use when ordering `PlatformWebhookEvent`. */ +export type PlatformWebhookEventOrderBy = | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' | 'ENDPOINT_ID_ASC' | 'ENDPOINT_ID_DESC' | 'ERROR_ASC' @@ -2180,1314 +3058,6060 @@ export type WebhookEventOrderBy = | 'STATUS_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export interface AddEdgeAndSaveInput { - clientMutationId?: string; - dstNode?: string; - dstPort?: string; - graphId?: string; - message?: string; - srcNode?: string; - srcPort?: string; -} -export interface AddEdgeInput { - clientMutationId?: string; - context?: string; - dstNode?: string; - dstPort?: string; - graphName?: string; - rootHash?: string; - scopeId?: string; - srcNode?: string; - srcPort?: string; -} -export interface AddNodeAndSaveInput { - clientMutationId?: string; - graphId?: string; - message?: string; - meta?: unknown; - nodeName?: string; - nodeType?: string; - props?: unknown; -} -export interface AddNodeInput { - clientMutationId?: string; - context?: string; - graphName?: string; - meta?: unknown; - nodeName?: string; - nodeType?: string; - props?: unknown; - rootHash?: string; - scopeId?: string; -} -/** A filter to be used against Base64EncodedBinary fields. All fields are combined with a logical ‘and.’ */ -export interface Base64EncodedBinaryFilter { - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: Base64EncodedBinary; - /** Equal to the specified value. */ - equalTo?: Base64EncodedBinary; - /** Included in the specified list. */ - in?: Base64EncodedBinary[]; - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: Base64EncodedBinary; - /** Not equal to the specified value. */ - notEqualTo?: Base64EncodedBinary; - /** Not included in the specified list. */ - notIn?: Base64EncodedBinary[]; -} -/** A filter to be used against ConstructiveInternalTypeImage fields. All fields are combined with a logical ‘and.’ */ -export interface ConstructiveInternalTypeImageFilter { - /** Contained by the specified JSON. */ - containedBy?: ConstructiveInternalTypeImage; - /** Contains the specified JSON. */ - contains?: ConstructiveInternalTypeImage; - /** Contains all of the specified keys. */ - containsAllKeys?: string[]; - /** Contains any of the specified keys. */ - containsAnyKeys?: string[]; - /** Contains the specified key. */ - containsKey?: string; - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: ConstructiveInternalTypeImage; - /** Equal to the specified value. */ - equalTo?: ConstructiveInternalTypeImage; - /** Greater than the specified value. */ - greaterThan?: ConstructiveInternalTypeImage; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: ConstructiveInternalTypeImage; - /** Included in the specified list. */ - in?: ConstructiveInternalTypeImage[]; - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Less than the specified value. */ - lessThan?: ConstructiveInternalTypeImage; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: ConstructiveInternalTypeImage; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: ConstructiveInternalTypeImage; - /** Not equal to the specified value. */ - notEqualTo?: ConstructiveInternalTypeImage; - /** 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. */ - dbPreset: DbPresetInput; -} -export interface CreateFunctionApiBindingInput { - clientMutationId?: string; - /** The `FunctionApiBinding` to be created by this mutation. */ - functionApiBinding: FunctionApiBindingInput; -} -export interface CreateFunctionCapabilityBindingInput { - clientMutationId?: string; - /** The `FunctionCapabilityBinding` to be created by this mutation. */ - functionCapabilityBinding: FunctionCapabilityBindingInput; -} -export interface CreateFunctionDefinitionInput { - clientMutationId?: string; - /** The `FunctionDefinition` to be created by this mutation. */ - functionDefinition: FunctionDefinitionInput; -} -export interface CreateFunctionDeploymentEventInput { - clientMutationId?: string; - /** The `FunctionDeploymentEvent` to be created by this mutation. */ - functionDeploymentEvent: FunctionDeploymentEventInput; -} -export interface CreateFunctionDeploymentInput { - clientMutationId?: string; - /** The `FunctionDeployment` to be created by this mutation. */ - functionDeployment: FunctionDeploymentInput; -} -export interface CreateFunctionExecutionLogInput { - clientMutationId?: string; - /** The `FunctionExecutionLog` to be created by this mutation. */ - functionExecutionLog: FunctionExecutionLogInput; -} -export interface CreateFunctionGraphCommitInput { - clientMutationId?: string; - /** The `FunctionGraphCommit` to be created by this mutation. */ - functionGraphCommit: FunctionGraphCommitInput; -} -export interface CreateFunctionGraphExecutionInput { - clientMutationId?: string; - /** The `FunctionGraphExecution` to be created by this mutation. */ - functionGraphExecution: FunctionGraphExecutionInput; -} -export interface CreateFunctionGraphExecutionNodeStateInput { - clientMutationId?: string; - /** The `FunctionGraphExecutionNodeState` to be created by this mutation. */ - functionGraphExecutionNodeState: FunctionGraphExecutionNodeStateInput; -} -export interface CreateFunctionGraphExecutionOutputInput { - clientMutationId?: string; - /** The `FunctionGraphExecutionOutput` to be created by this mutation. */ - functionGraphExecutionOutput: FunctionGraphExecutionOutputInput; -} -export interface CreateFunctionGraphInput { - clientMutationId?: string; - context?: string; - createdBy?: string; - definitionsCommitId?: string; - description?: string; - name?: string; - scopeId?: string; -} -export interface CreateFunctionGraphObjectInput { - clientMutationId?: string; - /** The `FunctionGraphObject` to be created by this mutation. */ - functionGraphObject: FunctionGraphObjectInput; -} -export interface CreateFunctionGraphRefInput { +/** Methods to use when ordering `ProposalComment`. */ +export type ProposalCommentOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'ATTACHMENTS_ASC' + | 'ATTACHMENTS_DESC' + | 'BODY_ASC' + | 'BODY_DESC' + | 'BODY_TRGM_SIMILARITY_ASC' + | 'BODY_TRGM_SIMILARITY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'EMBEDDING_ASC' + | 'EMBEDDING_DESC' + | 'EMBEDDING_UPDATED_AT_ASC' + | 'EMBEDDING_UPDATED_AT_DESC' + | 'EMBEDDING_VECTOR_DISTANCE_ASC' + | 'EMBEDDING_VECTOR_DISTANCE_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'LINE_ASC' + | 'LINE_DESC' + | 'NATURAL' + | 'OUTDATED_AT_ASC' + | 'OUTDATED_AT_DESC' + | 'PATH_ASC' + | 'PATH_DESC' + | 'PATH_TRGM_SIMILARITY_ASC' + | 'PATH_TRGM_SIMILARITY_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PROPOSAL_ID_ASC' + | 'PROPOSAL_ID_DESC' + | 'RESOLVED_AT_ASC' + | 'RESOLVED_AT_DESC' + | 'SEARCH_ASC' + | 'SEARCH_DESC' + | 'SEARCH_SCORE_ASC' + | 'SEARCH_SCORE_DESC' + | 'SEARCH_TSV_RANK_ASC' + | 'SEARCH_TSV_RANK_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +/** Methods to use when ordering `ProposalFileView`. */ +export type ProposalFileViewOrderBy = + | 'BLOB_SHA_ASC' + | 'BLOB_SHA_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' + | 'PATH_ASC' + | 'PATH_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PROPOSAL_ID_ASC' + | 'PROPOSAL_ID_DESC' + | 'REVIEWER_ID_ASC' + | 'REVIEWER_ID_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC' + | 'VIEWED_AT_ASC' + | 'VIEWED_AT_DESC'; +/** Methods to use when ordering `Proposal`. */ +export type ProposalOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'BODY_ASC' + | 'BODY_DESC' + | 'BODY_TRGM_SIMILARITY_ASC' + | 'BODY_TRGM_SIMILARITY_DESC' + | 'CLOSED_REASON_ASC' + | 'CLOSED_REASON_DESC' + | 'CLOSED_REASON_TRGM_SIMILARITY_ASC' + | 'CLOSED_REASON_TRGM_SIMILARITY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DECIDED_AT_ASC' + | 'DECIDED_AT_DESC' + | 'DUE_AT_ASC' + | 'DUE_AT_DESC' + | 'EMBEDDING_ASC' + | 'EMBEDDING_DESC' + | 'EMBEDDING_UPDATED_AT_ASC' + | 'EMBEDDING_UPDATED_AT_DESC' + | 'EMBEDDING_VECTOR_DISTANCE_ASC' + | 'EMBEDDING_VECTOR_DISTANCE_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'KIND_ASC' + | 'KIND_DESC' + | 'KIND_TRGM_SIMILARITY_ASC' + | 'KIND_TRGM_SIMILARITY_DESC' + | 'LABELS_ASC' + | 'LABELS_DESC' + | 'MERGED_AT_ASC' + | 'MERGED_AT_DESC' + | 'MERGE_COMMIT_ASC' + | 'MERGE_COMMIT_DESC' + | 'MERGE_COMMIT_TRGM_SIMILARITY_ASC' + | 'MERGE_COMMIT_TRGM_SIMILARITY_DESC' + | 'MERGE_METHOD_ASC' + | 'MERGE_METHOD_DESC' + | 'MERGE_METHOD_TRGM_SIMILARITY_ASC' + | 'MERGE_METHOD_TRGM_SIMILARITY_DESC' + | 'MERGE_REQUESTED_AT_ASC' + | 'MERGE_REQUESTED_AT_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'NATURAL' + | 'PARENT_ID_ASC' + | 'PARENT_ID_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PRIORITY_ASC' + | 'PRIORITY_DESC' + | 'REPOSITORY_ID_ASC' + | 'REPOSITORY_ID_DESC' + | 'RESOLUTION_ASC' + | 'RESOLUTION_DESC' + | 'RESOLUTION_TRGM_SIMILARITY_ASC' + | 'RESOLUTION_TRGM_SIMILARITY_DESC' + | 'SEARCH_ASC' + | 'SEARCH_DESC' + | 'SEARCH_SCORE_ASC' + | 'SEARCH_SCORE_DESC' + | 'SEARCH_TSV_RANK_ASC' + | 'SEARCH_TSV_RANK_DESC' + | 'SOURCE_REF_ASC' + | 'SOURCE_REF_DESC' + | 'SOURCE_REF_TRGM_SIMILARITY_ASC' + | 'SOURCE_REF_TRGM_SIMILARITY_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'STATUS_TRGM_SIMILARITY_ASC' + | 'STATUS_TRGM_SIMILARITY_DESC' + | 'TARGET_REF_ASC' + | 'TARGET_REF_DESC' + | 'TARGET_REF_TRGM_SIMILARITY_ASC' + | 'TARGET_REF_TRGM_SIMILARITY_DESC' + | 'TITLE_ASC' + | 'TITLE_DESC' + | 'TITLE_TRGM_SIMILARITY_ASC' + | 'TITLE_TRGM_SIMILARITY_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +/** Methods to use when ordering `ProposalReaction`. */ +export type ProposalReactionOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'COMMENT_ID_ASC' + | 'COMMENT_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'EMOJI_ASC' + | 'EMOJI_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PROPOSAL_ID_ASC' + | 'PROPOSAL_ID_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +/** Methods to use when ordering `ProposalReview`. */ +export type ProposalReviewOrderBy = + | 'BODY_ASC' + | 'BODY_DESC' + | 'BODY_TRGM_SIMILARITY_ASC' + | 'BODY_TRGM_SIMILARITY_DESC' + | 'COMMIT_SHA_ASC' + | 'COMMIT_SHA_DESC' + | 'COMMIT_SHA_TRGM_SIMILARITY_ASC' + | 'COMMIT_SHA_TRGM_SIMILARITY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PROPOSAL_ID_ASC' + | 'PROPOSAL_ID_DESC' + | 'REVIEWER_ID_ASC' + | 'REVIEWER_ID_DESC' + | 'SEARCH_ASC' + | 'SEARCH_DESC' + | 'SEARCH_SCORE_ASC' + | 'SEARCH_SCORE_DESC' + | 'SEARCH_TSV_RANK_ASC' + | 'SEARCH_TSV_RANK_DESC' + | 'SUBMITTED_AT_ASC' + | 'SUBMITTED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC' + | 'VERDICT_ASC' + | 'VERDICT_DESC' + | 'VERDICT_TRGM_SIMILARITY_ASC' + | 'VERDICT_TRGM_SIMILARITY_DESC'; +/** Methods to use when ordering `ProposalsChunk`. */ +export type ProposalsChunkOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'BODY_ASC' + | 'BODY_DESC' + | 'CHUNK_INDEX_ASC' + | 'CHUNK_INDEX_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'EMBEDDING_ASC' + | 'EMBEDDING_DESC' + | 'EMBEDDING_VECTOR_DISTANCE_ASC' + | 'EMBEDDING_VECTOR_DISTANCE_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PROPOSALS_ID_ASC' + | 'PROPOSALS_ID_DESC' + | 'SEARCH_SCORE_ASC' + | 'SEARCH_SCORE_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `RegistryBinding`. */ +export type RegistryBindingOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'NATURAL' + | 'OBSERVED_CREDENTIAL_VERSION_ASC' + | 'OBSERVED_CREDENTIAL_VERSION_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PULL_SECRET_NAME_ASC' + | 'PULL_SECRET_NAME_DESC' + | 'REALM_ASC' + | 'REALM_DESC' + | 'REGISTRY_HOST_ASC' + | 'REGISTRY_HOST_DESC' + | 'REGISTRY_ID_ASC' + | 'REGISTRY_ID_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +/** Methods to use when ordering `RegistryGrant`. */ +export type RegistryGrantOrderBy = + | 'ACTIONS_ASC' + | 'ACTIONS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'EXPIRES_AT_ASC' + | 'EXPIRES_AT_DESC' + | 'GRANTED_BY_ASC' + | 'GRANTED_BY_DESC' + | 'GRANTEE_KEY_ASC' + | 'GRANTEE_KEY_DESC' + | 'GRANTEE_SCOPE_ASC' + | 'GRANTEE_SCOPE_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'REGISTRY_ID_ASC' + | 'REGISTRY_ID_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +/** Methods to use when ordering `Registry`. */ +export type RegistryOrderBy = + | 'AUTH_MODE_ASC' + | 'AUTH_MODE_DESC' + | 'BASE_PATH_ASC' + | 'BASE_PATH_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'CREDENTIAL_SECRET_NAME_ASC' + | 'CREDENTIAL_SECRET_NAME_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'HOST_ASC' + | 'HOST_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'INSTALLATION_ID_ASC' + | 'INSTALLATION_ID_DESC' + | 'IS_PUBLISHED_ASC' + | 'IS_PUBLISHED_DESC' + | 'KIND_ASC' + | 'KIND_DESC' + | 'LABELS_ASC' + | 'LABELS_DESC' + | 'LAST_ERROR_ASC' + | 'LAST_ERROR_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'PLATFORM_ONLY_ASC' + | 'PLATFORM_ONLY_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ROLE_ASC' + | 'ROLE_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +/** Methods to use when ordering `RepositoryEvent`. */ +export type RepositoryEventOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'COMMIT_SHA_ASC' + | 'COMMIT_SHA_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DELIVERY_ID_ASC' + | 'DELIVERY_ID_DESC' + | 'EVENT_TYPE_ASC' + | 'EVENT_TYPE_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'NATURAL' + | 'PAYLOAD_ASC' + | 'PAYLOAD_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'REF_ASC' + | 'REF_DESC' + | 'REPOSITORY_ID_ASC' + | 'REPOSITORY_ID_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +/** Methods to use when ordering `Repository`. */ +export type RepositoryOrderBy = + | 'CLONE_URL_ASC' + | 'CLONE_URL_DESC' + | 'CLONE_URL_TRGM_SIMILARITY_ASC' + | 'CLONE_URL_TRGM_SIMILARITY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DEFAULT_BRANCH_ASC' + | 'DEFAULT_BRANCH_DESC' + | 'DEFAULT_BRANCH_TRGM_SIMILARITY_ASC' + | 'DEFAULT_BRANCH_TRGM_SIMILARITY_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'DESCRIPTION_TRGM_SIMILARITY_ASC' + | 'DESCRIPTION_TRGM_SIMILARITY_DESC' + | 'EMBEDDING_ASC' + | 'EMBEDDING_DESC' + | 'EMBEDDING_UPDATED_AT_ASC' + | 'EMBEDDING_UPDATED_AT_DESC' + | 'EMBEDDING_VECTOR_DISTANCE_ASC' + | 'EMBEDDING_VECTOR_DISTANCE_DESC' + | 'EXTERNAL_ID_ASC' + | 'EXTERNAL_ID_DESC' + | 'EXTERNAL_ID_TRGM_SIMILARITY_ASC' + | 'EXTERNAL_ID_TRGM_SIMILARITY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_ARCHIVED_ASC' + | 'IS_ARCHIVED_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NAME_TRGM_SIMILARITY_ASC' + | 'NAME_TRGM_SIMILARITY_DESC' + | 'NATURAL' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PROVIDER_ASC' + | 'PROVIDER_DESC' + | 'PROVIDER_TRGM_SIMILARITY_ASC' + | 'PROVIDER_TRGM_SIMILARITY_DESC' + | 'SEARCH_ASC' + | 'SEARCH_DESC' + | 'SEARCH_SCORE_ASC' + | 'SEARCH_SCORE_DESC' + | 'SEARCH_TSV_RANK_ASC' + | 'SEARCH_TSV_RANK_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'SLUG_TRGM_SIMILARITY_ASC' + | 'SLUG_TRGM_SIMILARITY_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC' + | 'VISIBILITY_ASC' + | 'VISIBILITY_DESC' + | 'VISIBILITY_TRGM_SIMILARITY_ASC' + | 'VISIBILITY_TRGM_SIMILARITY_DESC'; +/** Methods to use when ordering `RepositoryRequiredCheck`. */ +export type RepositoryRequiredCheckOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'REPOSITORY_ID_ASC' + | 'REPOSITORY_ID_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'WORKFLOW_ID_ASC' + | 'WORKFLOW_ID_DESC'; +/** Methods to use when ordering `RepositoryWorkflow`. */ +export type RepositoryWorkflowOrderBy = + | 'CANCEL_IN_PROGRESS_ASC' + | 'CANCEL_IN_PROGRESS_DESC' + | 'CONCURRENCY_KEY_ASC' + | 'CONCURRENCY_KEY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'EVENT_TYPE_ASC' + | 'EVENT_TYPE_DESC' + | 'GRAPH_ID_ASC' + | 'GRAPH_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'INPUTS_ASC' + | 'INPUTS_DESC' + | 'IS_ENABLED_ASC' + | 'IS_ENABLED_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'REF_PATTERN_ASC' + | 'REF_PATTERN_DESC' + | 'REPOSITORY_ID_ASC' + | 'REPOSITORY_ID_DESC' + | 'REQUIRED_SECRETS_ASC' + | 'REQUIRED_SECRETS_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +/** Methods to use when ordering `ResourceDeclaredCapacity`. */ +export type ResourceDeclaredCapacityOrderBy = + | 'CPU_LIMIT_MILLICORES_ASC' + | 'CPU_LIMIT_MILLICORES_DESC' + | 'CPU_REQUEST_MILLICORES_ASC' + | 'CPU_REQUEST_MILLICORES_DESC' + | 'INSTALLATION_ID_ASC' + | 'INSTALLATION_ID_DESC' + | 'IS_TRANSIENT_ASC' + | 'IS_TRANSIENT_DESC' + | 'KIND_ASC' + | 'KIND_DESC' + | 'MEMORY_LIMIT_BYTES_ASC' + | 'MEMORY_LIMIT_BYTES_DESC' + | 'MEMORY_REQUEST_BYTES_ASC' + | 'MEMORY_REQUEST_BYTES_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'NATURAL' + | 'POD_COUNT_MAX_ASC' + | 'POD_COUNT_MAX_DESC' + | 'POD_COUNT_MIN_ASC' + | 'POD_COUNT_MIN_DESC' + | 'SOURCE_ASC' + | 'SOURCE_DESC' + | 'SOURCE_ID_ASC' + | 'SOURCE_ID_DESC' + | 'STORAGE_SIZE_BYTES_ASC' + | 'STORAGE_SIZE_BYTES_DESC' + | 'STORAGE_TOTAL_BYTES_ASC' + | 'STORAGE_TOTAL_BYTES_DESC'; +/** Methods to use when ordering `ResourceDefinition`. */ +export type ResourceDefinitionOrderBy = + | 'ANNOTATIONS_ASC' + | 'ANNOTATIONS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DEFAULT_SPEC_ASC' + | 'DEFAULT_SPEC_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'INTEGRATIONS_ASC' + | 'INTEGRATIONS_DESC' + | 'KIND_ASC' + | 'KIND_DESC' + | 'LABELS_ASC' + | 'LABELS_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'PARAMS_SCHEMA_ASC' + | 'PARAMS_SCHEMA_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'REQUIRED_CONFIGS_ASC' + | 'REQUIRED_CONFIGS_DESC' + | 'REQUIRED_SECRETS_ASC' + | 'REQUIRED_SECRETS_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'STEP_UP_MIN_AGE_ASC' + | 'STEP_UP_MIN_AGE_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +/** Methods to use when ordering `ResourceEvent`. */ +export type ResourceEventOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'EVENT_TYPE_ASC' + | 'EVENT_TYPE_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'MESSAGE_ASC' + | 'MESSAGE_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'RESOURCE_ID_ASC' + | 'RESOURCE_ID_DESC'; +/** Methods to use when ordering `ResourceInstallation`. */ +export type ResourceInstallationOrderBy = + | 'COMMIT_ID_ASC' + | 'COMMIT_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'PARAMS_ASC' + | 'PARAMS_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'REVISION_ASC' + | 'REVISION_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'STORE_ID_ASC' + | 'STORE_ID_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +/** Methods to use when ordering `ResourceObservedStorage`. */ +export type ResourceObservedStorageOrderBy = + | 'CAPACITY_ASC' + | 'CAPACITY_BYTES_ASC' + | 'CAPACITY_BYTES_DESC' + | 'CAPACITY_DESC' + | 'CLAIM_NAME_ASC' + | 'CLAIM_NAME_DESC' + | 'DECLARED_STORAGE_CLASS_ASC' + | 'DECLARED_STORAGE_CLASS_DESC' + | 'DECLARED_STORAGE_SIZE_BYTES_ASC' + | 'DECLARED_STORAGE_SIZE_BYTES_DESC' + | 'DECLARED_STORAGE_TOTAL_BYTES_ASC' + | 'DECLARED_STORAGE_TOTAL_BYTES_DESC' + | 'INSTALLATION_ID_ASC' + | 'INSTALLATION_ID_DESC' + | 'IS_BOUND_ASC' + | 'IS_BOUND_DESC' + | 'KIND_ASC' + | 'KIND_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'NATURAL' + | 'PHASE_ASC' + | 'PHASE_DESC' + | 'REQUESTED_ASC' + | 'REQUESTED_BYTES_ASC' + | 'REQUESTED_BYTES_DESC' + | 'REQUESTED_DESC' + | 'RESOURCE_ID_ASC' + | 'RESOURCE_ID_DESC' + | 'RESOURCE_STATUS_ASC' + | 'RESOURCE_STATUS_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'STORAGE_CLASS_ASC' + | 'STORAGE_CLASS_DESC' + | 'STORAGE_NAME_ASC' + | 'STORAGE_NAME_DESC'; +/** Methods to use when ordering `Resource`. */ +export type ResourceOrderBy = + | 'ANNOTATIONS_ASC' + | 'ANNOTATIONS_DESC' + | 'CPU_LIMIT_MILLICORES_ASC' + | 'CPU_LIMIT_MILLICORES_DESC' + | 'CPU_REQUEST_MILLICORES_ASC' + | 'CPU_REQUEST_MILLICORES_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ERROR_COUNT_ASC' + | 'ERROR_COUNT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IMAGE_REF_ASC' + | 'IMAGE_REF_DESC' + | 'INSTALLATION_ID_ASC' + | 'INSTALLATION_ID_DESC' + | 'INTEGRATIONS_ASC' + | 'INTEGRATIONS_DESC' + | 'KIND_ASC' + | 'KIND_DESC' + | 'LABELS_ASC' + | 'LABELS_DESC' + | 'LAST_ERROR_ASC' + | 'LAST_ERROR_DESC' + | 'LAST_HEARTBEAT_AT_ASC' + | 'LAST_HEARTBEAT_AT_DESC' + | 'MEMORY_LIMIT_BYTES_ASC' + | 'MEMORY_LIMIT_BYTES_DESC' + | 'MEMORY_REQUEST_BYTES_ASC' + | 'MEMORY_REQUEST_BYTES_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'REALM_ASC' + | 'REALM_DESC' + | 'REPLICAS_ASC' + | 'REPLICAS_DESC' + | 'REQUIRED_CONFIGS_ASC' + | 'REQUIRED_CONFIGS_DESC' + | 'REQUIRED_SECRETS_ASC' + | 'REQUIRED_SECRETS_DESC' + | 'RESOURCE_DEFINITION_ID_ASC' + | 'RESOURCE_DEFINITION_ID_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'SPEC_ASC' + | 'SPEC_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'STATUS_OBSERVED_ASC' + | 'STATUS_OBSERVED_DESC' + | 'STORAGE_CLASS_ASC' + | 'STORAGE_CLASS_DESC' + | 'STORAGE_SIZE_BYTES_ASC' + | 'STORAGE_SIZE_BYTES_DESC' + | 'STORAGE_TOTAL_BYTES_ASC' + | 'STORAGE_TOTAL_BYTES_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +/** Methods to use when ordering `ResourceStatusCheck`. */ +export type ResourceStatusCheckOrderBy = + | 'COMPLETED_AT_ASC' + | 'COMPLETED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'REQUESTED_AT_ASC' + | 'REQUESTED_AT_DESC' + | 'REQUESTED_BY_ASC' + | 'REQUESTED_BY_DESC' + | 'RESOURCE_ID_ASC' + | 'RESOURCE_ID_DESC' + | 'RESULT_ASC' + | 'RESULT_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC'; +/** Methods to use when ordering `ResourceUsageLog`. */ +export type ResourceUsageLogOrderBy = + | 'CPU_MILLICORES_ASC' + | 'CPU_MILLICORES_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'INTERVAL_SECONDS_ASC' + | 'INTERVAL_SECONDS_DESC' + | 'MEMORY_BYTES_ASC' + | 'MEMORY_BYTES_DESC' + | 'METRICS_ASC' + | 'METRICS_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'RESOURCE_ID_ASC' + | 'RESOURCE_ID_DESC' + | 'SAMPLED_AT_ASC' + | 'SAMPLED_AT_DESC' + | 'SOURCE_ASC' + | 'SOURCE_DESC'; +/** Methods to use when ordering `ResourceUsageSummary`. */ +export type ResourceUsageSummaryOrderBy = + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DATE_ASC' + | 'DATE_DESC' + | 'GB_SECONDS_ASC' + | 'GB_SECONDS_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'MAX_CPU_MILLICORES_ASC' + | 'MAX_CPU_MILLICORES_DESC' + | 'MAX_MEMORY_BYTES_ASC' + | 'MAX_MEMORY_BYTES_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'RESOURCE_ID_ASC' + | 'RESOURCE_ID_DESC' + | 'RUNTIME_SECONDS_ASC' + | 'RUNTIME_SECONDS_DESC' + | 'SAMPLE_COUNT_ASC' + | 'SAMPLE_COUNT_DESC'; +/** Methods to use when ordering `ResourceUtilization`. */ +export type ResourceUtilizationOrderBy = + | 'AVG_MEMORY_BYTES_ASC' + | 'AVG_MEMORY_BYTES_DESC' + | 'CPU_LIMIT_MILLICORES_ASC' + | 'CPU_LIMIT_MILLICORES_DESC' + | 'CPU_PEAK_UTILIZATION_ASC' + | 'CPU_PEAK_UTILIZATION_DESC' + | 'CPU_REQUEST_HEADROOM_MILLICORES_ASC' + | 'CPU_REQUEST_HEADROOM_MILLICORES_DESC' + | 'CPU_REQUEST_MILLICORES_ASC' + | 'CPU_REQUEST_MILLICORES_DESC' + | 'DATE_ASC' + | 'DATE_DESC' + | 'GB_SECONDS_ASC' + | 'GB_SECONDS_DESC' + | 'KIND_ASC' + | 'KIND_DESC' + | 'MAX_CPU_MILLICORES_ASC' + | 'MAX_CPU_MILLICORES_DESC' + | 'MAX_MEMORY_BYTES_ASC' + | 'MAX_MEMORY_BYTES_DESC' + | 'MEMORY_LIMIT_BYTES_ASC' + | 'MEMORY_LIMIT_BYTES_DESC' + | 'MEMORY_PEAK_UTILIZATION_ASC' + | 'MEMORY_PEAK_UTILIZATION_DESC' + | 'MEMORY_REQUEST_BYTES_ASC' + | 'MEMORY_REQUEST_BYTES_DESC' + | 'MEMORY_REQUEST_HEADROOM_BYTES_ASC' + | 'MEMORY_REQUEST_HEADROOM_BYTES_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'NATURAL' + | 'REPLICAS_ASC' + | 'REPLICAS_DESC' + | 'RESOURCE_ID_ASC' + | 'RESOURCE_ID_DESC' + | 'RUNTIME_SECONDS_ASC' + | 'RUNTIME_SECONDS_DESC' + | 'SAMPLE_COUNT_ASC' + | 'SAMPLE_COUNT_DESC'; +/** Methods to use when ordering `ResourcesHealth`. */ +export type ResourcesHealthOrderBy = + | 'ANNOTATIONS_ASC' + | 'ANNOTATIONS_DESC' + | 'CPU_LIMIT_MILLICORES_ASC' + | 'CPU_LIMIT_MILLICORES_DESC' + | 'CPU_REQUEST_MILLICORES_ASC' + | 'CPU_REQUEST_MILLICORES_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ERROR_COUNT_ASC' + | 'ERROR_COUNT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IMAGE_REF_ASC' + | 'IMAGE_REF_DESC' + | 'INSTALLATION_ID_ASC' + | 'INSTALLATION_ID_DESC' + | 'INTEGRATIONS_ASC' + | 'INTEGRATIONS_DESC' + | 'KIND_ASC' + | 'KIND_DESC' + | 'LABELS_ASC' + | 'LABELS_DESC' + | 'LAST_ERROR_ASC' + | 'LAST_ERROR_DESC' + | 'LAST_HEARTBEAT_AT_ASC' + | 'LAST_HEARTBEAT_AT_DESC' + | 'MEMORY_LIMIT_BYTES_ASC' + | 'MEMORY_LIMIT_BYTES_DESC' + | 'MEMORY_REQUEST_BYTES_ASC' + | 'MEMORY_REQUEST_BYTES_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'REALM_ASC' + | 'REALM_DESC' + | 'REPLICAS_ASC' + | 'REPLICAS_DESC' + | 'REQUIRED_CONFIGS_ASC' + | 'REQUIRED_CONFIGS_DESC' + | 'REQUIRED_SECRETS_ASC' + | 'REQUIRED_SECRETS_DESC' + | 'RESOURCE_DEFINITION_ID_ASC' + | 'RESOURCE_DEFINITION_ID_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'SPEC_ASC' + | 'SPEC_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'STATUS_DETAIL_ASC' + | 'STATUS_DETAIL_DESC' + | 'STATUS_OBSERVED_ASC' + | 'STATUS_OBSERVED_DESC' + | 'STORAGE_CLASS_ASC' + | 'STORAGE_CLASS_DESC' + | 'STORAGE_SIZE_BYTES_ASC' + | 'STORAGE_SIZE_BYTES_DESC' + | 'STORAGE_TOTAL_BYTES_ASC' + | 'STORAGE_TOTAL_BYTES_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +/** Methods to use when ordering `ResourcesRequirementsState`. */ +export type ResourcesRequirementsStateOrderBy = + | 'CONFIG_HASH_ASC' + | 'CONFIG_HASH_DESC' + | 'CONFIG_OBJECT_NAME_ASC' + | 'CONFIG_OBJECT_NAME_DESC' + | 'NATURAL' + | 'REQUIREMENTS_HASH_ASC' + | 'REQUIREMENTS_HASH_DESC' + | 'RESOURCE_ID_ASC' + | 'RESOURCE_ID_DESC' + | 'SECRETS_HASH_ASC' + | 'SECRETS_HASH_DESC' + | 'SECRETS_OBJECT_NAME_ASC' + | 'SECRETS_OBJECT_NAME_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC'; +/** Methods to use when ordering `ResourcesResolvedRequirement`. */ +export type ResourcesResolvedRequirementOrderBy = + | 'ATOM_ID_ASC' + | 'ATOM_ID_DESC' + | 'CONFIG_OBJECT_NAME_ASC' + | 'CONFIG_OBJECT_NAME_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'PRESENT_ASC' + | 'PRESENT_DESC' + | 'REALM_ASC' + | 'REALM_DESC' + | 'REQUIRED_ASC' + | 'REQUIRED_DESC' + | 'REQUIREMENT_KIND_ASC' + | 'REQUIREMENT_KIND_DESC' + | 'RESOURCE_ID_ASC' + | 'RESOURCE_ID_DESC' + | 'SECRETS_OBJECT_NAME_ASC' + | 'SECRETS_OBJECT_NAME_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC'; +/** Similarity metric for vector search */ +export type VectorMetric = 'COSINE' | 'IP' | 'L2'; +/** Methods to use when ordering `WebhookEndpoint`. */ +export type WebhookEndpointOrderBy = + | 'ACTIVE_ASC' + | 'ACTIVE_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'FUNCTION_DEFINITION_ID_ASC' + | 'FUNCTION_DEFINITION_ID_DESC' + | 'HOST_ASC' + | 'HOST_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'NATURAL' + | 'PATH_ASC' + | 'PATH_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PROVIDER_ASC' + | 'PROVIDER_DESC' + | 'REPLAY_WINDOW_SECONDS_ASC' + | 'REPLAY_WINDOW_SECONDS_DESC' + | 'SIGNING_SECRET_NAME_ASC' + | 'SIGNING_SECRET_NAME_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +/** Methods to use when ordering `WebhookEvent`. */ +export type WebhookEventOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ENDPOINT_ID_ASC' + | 'ENDPOINT_ID_DESC' + | 'ERROR_ASC' + | 'ERROR_DESC' + | 'EXTERNAL_EVENT_ID_ASC' + | 'EXTERNAL_EVENT_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'INVOCATION_CREATED_AT_ASC' + | 'INVOCATION_CREATED_AT_DESC' + | 'INVOCATION_ID_ASC' + | 'INVOCATION_ID_DESC' + | 'NATURAL' + | 'PAYLOAD_ASC' + | 'PAYLOAD_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PROVIDER_ASC' + | 'PROVIDER_DESC' + | 'PROVIDER_TIMESTAMP_ASC' + | 'PROVIDER_TIMESTAMP_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export interface AddEdgeAndSaveInput { + clientMutationId?: string; + dstNode?: string; + dstPort?: string; + graphId?: string; + message?: string; + srcNode?: string; + srcPort?: string; +} +export interface AddEdgeInput { + clientMutationId?: string; + context?: string; + dstNode?: string; + dstPort?: string; + graphName?: string; + rootHash?: string; + scopeId?: string; + srcNode?: string; + srcPort?: string; +} +export interface AddNodeAndSaveInput { + clientMutationId?: string; + graphId?: string; + message?: string; + meta?: unknown; + nodeName?: string; + nodeType?: string; + props?: unknown; +} +export interface AddNodeInput { + clientMutationId?: string; + context?: string; + graphName?: string; + meta?: unknown; + nodeName?: string; + nodeType?: string; + props?: unknown; + rootHash?: string; + scopeId?: string; +} +export interface ApproveNodeInput { + approved?: boolean; + clientMutationId?: string; + executionId?: string; + feedback?: unknown; + nodeName?: string; +} +/** A filter to be used against Base64EncodedBinary fields. All fields are combined with a logical ‘and.’ */ +export interface Base64EncodedBinaryFilter { + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: Base64EncodedBinary; + /** Equal to the specified value. */ + equalTo?: Base64EncodedBinary; + /** Included in the specified list. */ + in?: Base64EncodedBinary[]; + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: Base64EncodedBinary; + /** Not equal to the specified value. */ + notEqualTo?: Base64EncodedBinary; + /** Not included in the specified list. */ + notIn?: Base64EncodedBinary[]; +} +/** A filter to be used against `Build` object types. All fields are combined with a logical ‘and.’ */ +export interface BuildFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: BuildFilter[]; + /** Filter by the object’s `attempt` field. */ + attempt?: IntFilter; + /** Filter by the object’s `commitSha` field. */ + commitSha?: StringFilter; + /** Filter by the object’s `conclusion` field. */ + conclusion?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `event` relation. */ + event?: RepositoryEventFilter; + /** A related `event` exists. */ + eventExists?: boolean; + /** Filter by the object’s `eventId` field. */ + eventId?: UUIDFilter; + /** Filter by the object’s `finishedAt` field. */ + finishedAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `imageRef` field. */ + imageRef?: StringFilter; + /** Filter by the object’s `jobId` field. */ + jobId?: BigIntFilter; + /** Filter by the object’s `logs` field. */ + logs?: ConstructiveInternalTypeUploadFilter; + /** Filter by the object’s `matrixKey` field. */ + matrixKey?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Negates the expression. */ + not?: BuildFilter; + /** Checks for any expressions in this list. */ + or?: BuildFilter[]; + /** Filter by the object’s `proposal` relation. */ + proposal?: ProposalFilter; + /** A related `proposal` exists. */ + proposalExists?: boolean; + /** Filter by the object’s `proposalId` field. */ + proposalId?: UUIDFilter; + /** Filter by the object’s `ref` field. */ + ref?: StringFilter; + /** Filter by the object’s `repository` relation. */ + repository?: RepositoryFilter; + /** Filter by the object’s `repositoryId` field. */ + repositoryId?: UUIDFilter; + /** Filter by the object’s `startedAt` field. */ + startedAt?: DatetimeFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** Filter by the object’s `workflow` relation. */ + workflow?: RepositoryWorkflowFilter; + /** A related `workflow` exists. */ + workflowExists?: boolean; + /** Filter by the object’s `workflowId` field. */ + workflowId?: UUIDFilter; +} +/** An input for mutations affecting `Build` */ +export interface BuildInput { + /** Authenticated actor this build is attributed to; NULL only when no human actor was proven */ + actorId?: string; + /** Retry attempt number for this workflow, commit, and matrix shard */ + attempt?: number; + /** Commit this build built */ + commitSha?: string; + /** Verdict: NULL while pending/running, then success, failure, neutral, cancelled, skipped, timed_out, or action_required */ + conclusion?: string; + createdAt?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Event that triggered this build (NULL for a manual build) */ + eventId?: string; + /** When the build reached a terminal status */ + finishedAt?: string; + id?: string; + /** Image reference this build produced (registry host/repository:tag; NULL when the build produced no image) */ + imageRef?: string; + /** app_jobs row running this build */ + jobId?: string; + /** Build log object in storage; step rows slice it by byte range */ + logs?: ConstructiveInternalTypeUpload; + /** Matrix shard identity; NULL for a non-matrix build */ + matrixKey?: string; + /** Build detail (step results, durations, failure reason) */ + metadata?: unknown; + /** Proposal this build checks (NULL for builds not tied to a proposal) */ + proposalId?: string; + /** Ref this build built */ + ref?: string; + /** Repository this build is of */ + repositoryId: string; + /** When the build began running */ + startedAt?: string; + /** Lifecycle: pending, running, succeeded, failed, cancelled */ + status?: string; + updatedAt?: string; + updatedByPrincipal?: string; + /** Workflow whose firing produced this build (NULL for a manual build) */ + workflowId?: string; +} +/** Represents an update to a `Build`. Fields that are set will be updated. */ +export interface BuildPatch { + /** Authenticated actor this build is attributed to; NULL only when no human actor was proven */ + actorId?: string; + /** Retry attempt number for this workflow, commit, and matrix shard */ + attempt?: number; + /** Commit this build built */ + commitSha?: string; + /** Verdict: NULL while pending/running, then success, failure, neutral, cancelled, skipped, timed_out, or action_required */ + conclusion?: string; + createdAt?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string; + /** Event that triggered this build (NULL for a manual build) */ + eventId?: string; + /** When the build reached a terminal status */ + finishedAt?: string; + id?: string; + /** Image reference this build produced (registry host/repository:tag; NULL when the build produced no image) */ + imageRef?: string; + /** app_jobs row running this build */ + jobId?: string; + /** Build log object in storage; step rows slice it by byte range */ + logs?: ConstructiveInternalTypeUpload; + /** Upload for Build log object in storage; step rows slice it by byte range */ + logsUpload?: File; + /** Matrix shard identity; NULL for a non-matrix build */ + matrixKey?: string; + /** Build detail (step results, durations, failure reason) */ + metadata?: unknown; + /** Proposal this build checks (NULL for builds not tied to a proposal) */ + proposalId?: string; + /** Ref this build built */ + ref?: string; + /** Repository this build is of */ + repositoryId?: string; + /** When the build began running */ + startedAt?: string; + /** Lifecycle: pending, running, succeeded, failed, cancelled */ + status?: string; + updatedAt?: string; + updatedByPrincipal?: string; + /** Workflow whose firing produced this build (NULL for a manual build) */ + workflowId?: string; +} +/** A filter to be used against `BuildStep` object types. All fields are combined with a logical ‘and.’ */ +export interface BuildStepFilter { + /** Checks for all expressions in this list. */ + and?: BuildStepFilter[]; + /** Filter by the object’s `buildId` field. */ + buildId?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `exitCode` field. */ + exitCode?: IntFilter; + /** Filter by the object’s `finishedAt` field. */ + finishedAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `logBytes` field. */ + logBytes?: BigIntFilter; + /** Filter by the object’s `logOffset` field. */ + logOffset?: BigIntFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: BuildStepFilter; + /** Checks for any expressions in this list. */ + or?: BuildStepFilter[]; + /** Filter by the object’s `parentSeq` field. */ + parentSeq?: IntFilter; + /** Filter by the object’s `recordedAt` field. */ + recordedAt?: DatetimeFilter; + /** Filter by the object’s `seq` field. */ + seq?: IntFilter; + /** Filter by the object’s `startedAt` field. */ + startedAt?: DatetimeFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `summary` field. */ + summary?: JSONFilter; +} +/** An input for mutations affecting `BuildStep` */ +export interface BuildStepInput { + /** Build these results belong to */ + buildId: string; + /** Acting principal (agent, API key, or user) who created this record */ + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Process exit code of a step (NULL for a test result) */ + exitCode?: number; + /** When this step or test finished */ + finishedAt?: string; + /** Unique identifier (uuidv7 provides temporal ordering) */ + id?: string; + /** What this row is: step, or test */ + kind?: string; + /** Byte length of this row's output in the build log object */ + logBytes?: string; + /** Byte offset of this row's output in the build log object */ + logOffset?: string; + /** Step name, or the test's fully qualified name */ + name: string; + /** Sequence of the step that reported this test (NULL for a step itself) */ + parentSeq?: number; + /** When the result was recorded (partition key) */ + recordedAt?: string; + /** Position within the build, monotonically increasing across steps and their tests */ + seq: number; + /** When this step or test began */ + startedAt?: string; + /** Outcome: running, succeeded, failed, skipped, cancelled */ + status?: string; + /** Parsed detail: failure message, assertion diff, counts, annotations */ + summary?: unknown; +} +/** Represents an update to a `BuildStep`. Fields that are set will be updated. */ +export interface BuildStepPatch { + /** Build these results belong to */ + buildId?: string; + /** Acting principal (agent, API key, or user) who created this record */ + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string; + /** Process exit code of a step (NULL for a test result) */ + exitCode?: number; + /** When this step or test finished */ + finishedAt?: string; + /** Unique identifier (uuidv7 provides temporal ordering) */ + id?: string; + /** What this row is: step, or test */ + kind?: string; + /** Byte length of this row's output in the build log object */ + logBytes?: string; + /** Byte offset of this row's output in the build log object */ + logOffset?: string; + /** Step name, or the test's fully qualified name */ + name?: string; + /** Sequence of the step that reported this test (NULL for a step itself) */ + parentSeq?: number; + /** When the result was recorded (partition key) */ + recordedAt?: string; + /** Position within the build, monotonically increasing across steps and their tests */ + seq?: number; + /** When this step or test began */ + startedAt?: string; + /** Outcome: running, succeeded, failed, skipped, cancelled */ + status?: string; + /** Parsed detail: failure message, assertion diff, counts, annotations */ + summary?: unknown; +} +/** A filter to be used against `BuilderBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface BuilderBindingFilter { + /** Checks for all expressions in this list. */ + and?: BuilderBindingFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `installationId` field. */ + installationId?: UUIDFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: BuilderBindingFilter; + /** Filter by the object’s `observedHost` field. */ + observedHost?: StringFilter; + /** Checks for any expressions in this list. */ + or?: BuilderBindingFilter[]; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} +/** An input for mutations affecting `BuilderBinding` */ +export interface BuilderBindingInput { + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + id?: string; + /** BuildKit resource installation serving this binding; may belong to another resource scope */ + installationId: string; + /** Most recent projection failure */ + lastError?: string; + /** Reconciler detail (projection timestamps and diagnostics) */ + metadata?: unknown; + /** Namespace whose builds use this BuildKit installation */ + namespaceId: string; + /** BuildKit address last projected into the namespace (NULL = never projected) */ + observedHost?: string; + /** Lane this binding applies to (NULL = the scope's default lane) */ + realm?: string; + /** Projection state of BUILDKIT_HOST: pending, active, failed */ + status?: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; +} +/** Represents an update to a `BuilderBinding`. Fields that are set will be updated. */ +export interface BuilderBindingPatch { + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string; + id?: string; + /** BuildKit resource installation serving this binding; may belong to another resource scope */ + installationId?: string; + /** Most recent projection failure */ + lastError?: string; + /** Reconciler detail (projection timestamps and diagnostics) */ + metadata?: unknown; + /** Namespace whose builds use this BuildKit installation */ + namespaceId?: string; + /** BuildKit address last projected into the namespace (NULL = never projected) */ + observedHost?: string; + /** Lane this binding applies to (NULL = the scope's default lane) */ + realm?: string; + /** Projection state of BUILDKIT_HOST: pending, active, failed */ + status?: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; +} +/** A filter to be used against ConstructiveInternalTypeImage fields. All fields are combined with a logical ‘and.’ */ +export interface ConstructiveInternalTypeImageFilter { + /** Contained by the specified JSON. */ + containedBy?: ConstructiveInternalTypeImage; + /** Contains the specified JSON. */ + contains?: ConstructiveInternalTypeImage; + /** Contains all of the specified keys. */ + containsAllKeys?: string[]; + /** Contains any of the specified keys. */ + containsAnyKeys?: string[]; + /** Contains the specified key. */ + containsKey?: string; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: ConstructiveInternalTypeImage; + /** Equal to the specified value. */ + equalTo?: ConstructiveInternalTypeImage; + /** Greater than the specified value. */ + greaterThan?: ConstructiveInternalTypeImage; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: ConstructiveInternalTypeImage; + /** Included in the specified list. */ + in?: ConstructiveInternalTypeImage[]; + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Less than the specified value. */ + lessThan?: ConstructiveInternalTypeImage; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: ConstructiveInternalTypeImage; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: ConstructiveInternalTypeImage; + /** Not equal to the specified value. */ + notEqualTo?: ConstructiveInternalTypeImage; + /** Not included in the specified list. */ + notIn?: ConstructiveInternalTypeImage[]; +} +/** A filter to be used against ConstructiveInternalTypeUpload fields. All fields are combined with a logical ‘and.’ */ +export interface ConstructiveInternalTypeUploadFilter { + /** Contained by the specified JSON. */ + containedBy?: ConstructiveInternalTypeUpload; + /** Contains the specified JSON. */ + contains?: ConstructiveInternalTypeUpload; + /** Contains all of the specified keys. */ + containsAllKeys?: string[]; + /** Contains any of the specified keys. */ + containsAnyKeys?: string[]; + /** Contains the specified key. */ + containsKey?: string; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: ConstructiveInternalTypeUpload; + /** Equal to the specified value. */ + equalTo?: ConstructiveInternalTypeUpload; + /** Greater than the specified value. */ + greaterThan?: ConstructiveInternalTypeUpload; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: ConstructiveInternalTypeUpload; + /** Included in the specified list. */ + in?: ConstructiveInternalTypeUpload[]; + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Less than the specified value. */ + lessThan?: ConstructiveInternalTypeUpload; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: ConstructiveInternalTypeUpload; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: ConstructiveInternalTypeUpload; + /** Not equal to the specified value. */ + notEqualTo?: ConstructiveInternalTypeUpload; + /** Not included in the specified list. */ + notIn?: ConstructiveInternalTypeUpload[]; +} +/** A filter to be used against ConstructiveInternalTypeUpload List fields. All fields are combined with a logical ‘and.’ */ +export interface ConstructiveInternalTypeUploadListFilter { + /** Any array item is equal to the specified value. */ + anyEqualTo?: ConstructiveInternalTypeUpload; + /** Any array item is greater than the specified value. */ + anyGreaterThan?: ConstructiveInternalTypeUpload; + /** Any array item is greater than or equal to the specified value. */ + anyGreaterThanOrEqualTo?: ConstructiveInternalTypeUpload; + /** Any array item is less than the specified value. */ + anyLessThan?: ConstructiveInternalTypeUpload; + /** Any array item is less than or equal to the specified value. */ + anyLessThanOrEqualTo?: ConstructiveInternalTypeUpload; + /** Any array item is not equal to the specified value. */ + anyNotEqualTo?: ConstructiveInternalTypeUpload; + /** Contained by the specified list of values. */ + containedBy?: ConstructiveInternalTypeUpload[]; + /** Contains the specified list of values. */ + contains?: ConstructiveInternalTypeUpload[]; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: ConstructiveInternalTypeUpload[]; + /** Equal to the specified value. */ + equalTo?: ConstructiveInternalTypeUpload[]; + /** Greater than the specified value. */ + greaterThan?: ConstructiveInternalTypeUpload[]; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: ConstructiveInternalTypeUpload[]; + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Less than the specified value. */ + lessThan?: ConstructiveInternalTypeUpload[]; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: ConstructiveInternalTypeUpload[]; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: ConstructiveInternalTypeUpload[]; + /** Not equal to the specified value. */ + notEqualTo?: ConstructiveInternalTypeUpload[]; + /** Overlaps the specified list of values. */ + overlaps?: ConstructiveInternalTypeUpload[]; +} +/** 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 CreateBuildInput { + /** The `Build` to be created by this mutation. */ + build: BuildInput; + clientMutationId?: string; +} +export interface CreateBuildStepInput { + /** The `BuildStep` to be created by this mutation. */ + buildStep: BuildStepInput; + clientMutationId?: string; +} +export interface CreateBuilderBindingInput { + /** The `BuilderBinding` to be created by this mutation. */ + builderBinding: BuilderBindingInput; + clientMutationId?: string; +} +export interface CreateContentPresetInput { + clientMutationId?: string; + /** The `ContentPreset` to be created by this mutation. */ + contentPreset: ContentPresetInput; +} +export interface CreateDatabaseFunctionGraphExecutionInput { + clientMutationId?: string; + /** The `DatabaseFunctionGraphExecution` to be created by this mutation. */ + databaseFunctionGraphExecution: DatabaseFunctionGraphExecutionInput; +} +export interface CreateDatabaseFunctionGraphExecutionNodeStateInput { + clientMutationId?: string; + /** The `DatabaseFunctionGraphExecutionNodeState` to be created by this mutation. */ + databaseFunctionGraphExecutionNodeState: DatabaseFunctionGraphExecutionNodeStateInput; +} +export interface CreateDatabaseFunctionGraphExecutionOutputInput { + clientMutationId?: string; + /** The `DatabaseFunctionGraphExecutionOutput` to be created by this mutation. */ + databaseFunctionGraphExecutionOutput: DatabaseFunctionGraphExecutionOutputInput; +} +export interface CreateDatabaseGraphCommitInput { + clientMutationId?: string; + /** The `DatabaseGraphCommit` to be created by this mutation. */ + databaseGraphCommit: DatabaseGraphCommitInput; +} +export interface CreateDatabaseGraphObjectInput { + clientMutationId?: string; + /** The `DatabaseGraphObject` to be created by this mutation. */ + databaseGraphObject: DatabaseGraphObjectInput; +} +export interface CreateDatabaseGraphRefInput { + clientMutationId?: string; + /** The `DatabaseGraphRef` to be created by this mutation. */ + databaseGraphRef: DatabaseGraphRefInput; +} +export interface CreateDatabaseGraphStoreInput { + clientMutationId?: string; + /** The `DatabaseGraphStore` to be created by this mutation. */ + databaseGraphStore: DatabaseGraphStoreInput; +} +export interface CreateDbPresetInput { + clientMutationId?: string; + /** The `DbPreset` to be created by this mutation. */ + dbPreset: DbPresetInput; +} +export interface CreateFunctionApiBindingInput { + clientMutationId?: string; + /** The `FunctionApiBinding` to be created by this mutation. */ + functionApiBinding: FunctionApiBindingInput; +} +export interface CreateFunctionCapabilityBindingInput { + clientMutationId?: string; + /** The `FunctionCapabilityBinding` to be created by this mutation. */ + functionCapabilityBinding: FunctionCapabilityBindingInput; +} +export interface CreateFunctionDefinitionInput { + clientMutationId?: string; + /** The `FunctionDefinition` to be created by this mutation. */ + functionDefinition: FunctionDefinitionInput; +} +export interface CreateFunctionDeploymentEventInput { + clientMutationId?: string; + /** The `FunctionDeploymentEvent` to be created by this mutation. */ + functionDeploymentEvent: FunctionDeploymentEventInput; +} +export interface CreateFunctionDeploymentInput { + clientMutationId?: string; + /** The `FunctionDeployment` to be created by this mutation. */ + functionDeployment: FunctionDeploymentInput; +} +export interface CreateFunctionExecutionLogInput { + clientMutationId?: string; + /** The `FunctionExecutionLog` to be created by this mutation. */ + functionExecutionLog: FunctionExecutionLogInput; +} +export interface CreateFunctionGraphCommitInput { + clientMutationId?: string; + /** The `FunctionGraphCommit` to be created by this mutation. */ + functionGraphCommit: FunctionGraphCommitInput; +} +export interface CreateFunctionGraphExecutionInput { + clientMutationId?: string; + /** The `FunctionGraphExecution` to be created by this mutation. */ + functionGraphExecution: FunctionGraphExecutionInput; +} +export interface CreateFunctionGraphExecutionNodeStateInput { + clientMutationId?: string; + /** The `FunctionGraphExecutionNodeState` to be created by this mutation. */ + functionGraphExecutionNodeState: FunctionGraphExecutionNodeStateInput; +} +export interface CreateFunctionGraphExecutionOutputInput { + clientMutationId?: string; + /** The `FunctionGraphExecutionOutput` to be created by this mutation. */ + functionGraphExecutionOutput: FunctionGraphExecutionOutputInput; +} +export interface CreateFunctionGraphInput { + clientMutationId?: string; + context?: string; + createdBy?: string; + definitionsCommitId?: string; + description?: string; + name?: string; + scopeId?: string; +} +export interface CreateFunctionGraphObjectInput { + clientMutationId?: string; + /** The `FunctionGraphObject` to be created by this mutation. */ + functionGraphObject: FunctionGraphObjectInput; +} +export interface CreateFunctionGraphRefInput { + clientMutationId?: string; + /** The `FunctionGraphRef` to be created by this mutation. */ + functionGraphRef: FunctionGraphRefInput; +} +export interface CreateFunctionGraphStoreInput { + clientMutationId?: string; + /** The `FunctionGraphStore` to be created by this mutation. */ + functionGraphStore: FunctionGraphStoreInput; +} +export interface CreateFunctionInvocationAttemptInput { + clientMutationId?: string; + /** The `FunctionInvocationAttempt` to be created by this mutation. */ + functionInvocationAttempt: FunctionInvocationAttemptInput; +} +export interface CreateFunctionInvocationInput { + clientMutationId?: string; + /** The `FunctionInvocation` to be created by this mutation. */ + functionInvocation: FunctionInvocationInput; +} +export interface CreateImageGrantInput { + clientMutationId?: string; + /** The `ImageGrant` to be created by this mutation. */ + imageGrant: ImageGrantInput; +} +export interface CreateImageInput { + clientMutationId?: string; + /** The `Image` to be created by this mutation. */ + image: ImageInput; +} +export interface CreateInfraCommitInput { + clientMutationId?: string; + /** The `InfraCommit` to be created by this mutation. */ + infraCommit: InfraCommitInput; +} +export interface CreateInfraObjectInput { + clientMutationId?: string; + /** The `InfraObject` to be created by this mutation. */ + infraObject: InfraObjectInput; +} +export interface CreateInfraRefInput { + clientMutationId?: string; + /** The `InfraRef` to be created by this mutation. */ + infraRef: InfraRefInput; +} +export interface CreateInfraStoreInput { + clientMutationId?: string; + /** The `InfraStore` to be created by this mutation. */ + infraStore: InfraStoreInput; +} +export interface CreateIntegrationProviderInput { + clientMutationId?: string; + /** The `IntegrationProvider` to be created by this mutation. */ + integrationProvider: IntegrationProviderInput; +} +export interface CreateNamespaceEventInput { + clientMutationId?: string; + /** The `NamespaceEvent` to be created by this mutation. */ + namespaceEvent: NamespaceEventInput; +} +export interface CreateNamespaceInput { + clientMutationId?: string; + /** The `Namespace` to be created by this mutation. */ + namespace: NamespaceInput; +} +export interface CreatePlatformBuildInput { + clientMutationId?: string; + /** The `PlatformBuild` to be created by this mutation. */ + platformBuild: PlatformBuildInput; +} +export interface CreatePlatformBuildStepInput { + clientMutationId?: string; + /** The `PlatformBuildStep` to be created by this mutation. */ + platformBuildStep: PlatformBuildStepInput; +} +export interface CreatePlatformBuilderBindingInput { + clientMutationId?: string; + /** The `PlatformBuilderBinding` to be created by this mutation. */ + platformBuilderBinding: PlatformBuilderBindingInput; +} +export interface CreatePlatformFunctionApiBindingInput { + clientMutationId?: string; + /** The `PlatformFunctionApiBinding` to be created by this mutation. */ + platformFunctionApiBinding: PlatformFunctionApiBindingInput; +} +export interface CreatePlatformFunctionCapabilityBindingInput { + clientMutationId?: string; + /** The `PlatformFunctionCapabilityBinding` to be created by this mutation. */ + platformFunctionCapabilityBinding: PlatformFunctionCapabilityBindingInput; +} +export interface CreatePlatformFunctionDefinitionInput { + clientMutationId?: string; + /** The `PlatformFunctionDefinition` to be created by this mutation. */ + platformFunctionDefinition: PlatformFunctionDefinitionInput; +} +export interface CreatePlatformFunctionDeploymentEventInput { + clientMutationId?: string; + /** The `PlatformFunctionDeploymentEvent` to be created by this mutation. */ + platformFunctionDeploymentEvent: PlatformFunctionDeploymentEventInput; +} +export interface CreatePlatformFunctionDeploymentInput { + clientMutationId?: string; + /** The `PlatformFunctionDeployment` to be created by this mutation. */ + platformFunctionDeployment: PlatformFunctionDeploymentInput; +} +export interface CreatePlatformFunctionExecutionLogInput { + clientMutationId?: string; + /** The `PlatformFunctionExecutionLog` to be created by this mutation. */ + platformFunctionExecutionLog: PlatformFunctionExecutionLogInput; +} +export interface CreatePlatformFunctionInvocationAttemptInput { + clientMutationId?: string; + /** The `PlatformFunctionInvocationAttempt` to be created by this mutation. */ + platformFunctionInvocationAttempt: PlatformFunctionInvocationAttemptInput; +} +export interface CreatePlatformFunctionInvocationInput { + clientMutationId?: string; + /** The `PlatformFunctionInvocation` to be created by this mutation. */ + platformFunctionInvocation: PlatformFunctionInvocationInput; +} +export interface CreatePlatformImageGrantInput { + clientMutationId?: string; + /** The `PlatformImageGrant` to be created by this mutation. */ + platformImageGrant: PlatformImageGrantInput; +} +export interface CreatePlatformImageInput { + clientMutationId?: string; + /** The `PlatformImage` to be created by this mutation. */ + platformImage: PlatformImageInput; +} +export interface CreatePlatformInfraCommitInput { + clientMutationId?: string; + /** The `PlatformInfraCommit` to be created by this mutation. */ + platformInfraCommit: PlatformInfraCommitInput; +} +export interface CreatePlatformInfraObjectInput { + clientMutationId?: string; + /** The `PlatformInfraObject` to be created by this mutation. */ + platformInfraObject: PlatformInfraObjectInput; +} +export interface CreatePlatformInfraRefInput { + clientMutationId?: string; + /** The `PlatformInfraRef` to be created by this mutation. */ + platformInfraRef: PlatformInfraRefInput; +} +export interface CreatePlatformInfraStoreInput { + clientMutationId?: string; + /** The `PlatformInfraStore` to be created by this mutation. */ + platformInfraStore: PlatformInfraStoreInput; +} +export interface CreatePlatformK8sResourceKindInput { + clientMutationId?: string; + /** The `PlatformK8sResourceKind` to be created by this mutation. */ + platformK8sResourceKind: PlatformK8sResourceKindInput; +} +export interface CreatePlatformK8sSpecRuleInput { + clientMutationId?: string; + /** The `PlatformK8sSpecRule` to be created by this mutation. */ + platformK8sSpecRule: PlatformK8sSpecRuleInput; +} +export interface CreatePlatformNamespaceEventInput { + clientMutationId?: string; + /** The `PlatformNamespaceEvent` to be created by this mutation. */ + platformNamespaceEvent: PlatformNamespaceEventInput; +} +export interface CreatePlatformNamespaceInput { + clientMutationId?: string; + /** The `PlatformNamespace` to be created by this mutation. */ + platformNamespace: PlatformNamespaceInput; +} +export interface CreatePlatformProposalCommentInput { + clientMutationId?: string; + /** The `PlatformProposalComment` to be created by this mutation. */ + platformProposalComment: PlatformProposalCommentInput; +} +export interface CreatePlatformProposalFileViewInput { + clientMutationId?: string; + /** The `PlatformProposalFileView` to be created by this mutation. */ + platformProposalFileView: PlatformProposalFileViewInput; +} +export interface CreatePlatformProposalInput { + clientMutationId?: string; + /** The `PlatformProposal` to be created by this mutation. */ + platformProposal: PlatformProposalInput; +} +export interface CreatePlatformProposalReactionInput { + clientMutationId?: string; + /** The `PlatformProposalReaction` to be created by this mutation. */ + platformProposalReaction: PlatformProposalReactionInput; +} +export interface CreatePlatformProposalReviewInput { + clientMutationId?: string; + /** The `PlatformProposalReview` to be created by this mutation. */ + platformProposalReview: PlatformProposalReviewInput; +} +export interface CreatePlatformProposalsChunkInput { + clientMutationId?: string; + /** The `PlatformProposalsChunk` to be created by this mutation. */ + platformProposalsChunk: PlatformProposalsChunkInput; +} +export interface CreatePlatformRegistryBindingInput { + clientMutationId?: string; + /** The `PlatformRegistryBinding` to be created by this mutation. */ + platformRegistryBinding: PlatformRegistryBindingInput; +} +export interface CreatePlatformRegistryGrantInput { + clientMutationId?: string; + /** The `PlatformRegistryGrant` to be created by this mutation. */ + platformRegistryGrant: PlatformRegistryGrantInput; +} +export interface CreatePlatformRegistryInput { + clientMutationId?: string; + /** The `PlatformRegistry` to be created by this mutation. */ + platformRegistry: PlatformRegistryInput; +} +export interface CreatePlatformRepositoryEventInput { + clientMutationId?: string; + /** The `PlatformRepositoryEvent` to be created by this mutation. */ + platformRepositoryEvent: PlatformRepositoryEventInput; +} +export interface CreatePlatformRepositoryInput { + clientMutationId?: string; + /** The `PlatformRepository` to be created by this mutation. */ + platformRepository: PlatformRepositoryInput; +} +export interface CreatePlatformRepositoryRequiredCheckInput { + clientMutationId?: string; + /** The `PlatformRepositoryRequiredCheck` to be created by this mutation. */ + platformRepositoryRequiredCheck: PlatformRepositoryRequiredCheckInput; +} +export interface CreatePlatformRepositoryWorkflowInput { + clientMutationId?: string; + /** The `PlatformRepositoryWorkflow` to be created by this mutation. */ + platformRepositoryWorkflow: PlatformRepositoryWorkflowInput; +} +export interface CreatePlatformResourceDefinitionInput { + clientMutationId?: string; + /** The `PlatformResourceDefinition` to be created by this mutation. */ + platformResourceDefinition: PlatformResourceDefinitionInput; +} +export interface CreatePlatformResourceEventInput { + clientMutationId?: string; + /** The `PlatformResourceEvent` to be created by this mutation. */ + platformResourceEvent: PlatformResourceEventInput; +} +export interface CreatePlatformResourceInput { + clientMutationId?: string; + /** The `PlatformResource` to be created by this mutation. */ + platformResource: PlatformResourceInput; +} +export interface CreatePlatformResourceInstallationInput { + clientMutationId?: string; + /** The `PlatformResourceInstallation` to be created by this mutation. */ + platformResourceInstallation: PlatformResourceInstallationInput; +} +export interface CreatePlatformResourceStatusCheckInput { + clientMutationId?: string; + /** The `PlatformResourceStatusCheck` to be created by this mutation. */ + platformResourceStatusCheck: PlatformResourceStatusCheckInput; +} +export interface CreatePlatformResourceUsageLogInput { + clientMutationId?: string; + /** The `PlatformResourceUsageLog` to be created by this mutation. */ + platformResourceUsageLog: PlatformResourceUsageLogInput; +} +export interface CreatePlatformResourceUsageSummaryInput { + clientMutationId?: string; + /** The `PlatformResourceUsageSummary` to be created by this mutation. */ + platformResourceUsageSummary: PlatformResourceUsageSummaryInput; +} +export interface CreatePlatformWebhookEndpointInput { + clientMutationId?: string; + /** The `PlatformWebhookEndpoint` to be created by this mutation. */ + platformWebhookEndpoint: PlatformWebhookEndpointInput; +} +export interface CreatePlatformWebhookEventInput { + clientMutationId?: string; + /** The `PlatformWebhookEvent` to be created by this mutation. */ + platformWebhookEvent: PlatformWebhookEventInput; +} +export interface CreateProposalCommentInput { + clientMutationId?: string; + /** The `ProposalComment` to be created by this mutation. */ + proposalComment: ProposalCommentInput; +} +export interface CreateProposalFileViewInput { + clientMutationId?: string; + /** The `ProposalFileView` to be created by this mutation. */ + proposalFileView: ProposalFileViewInput; +} +export interface CreateProposalInput { + clientMutationId?: string; + /** The `Proposal` to be created by this mutation. */ + proposal: ProposalInput; +} +export interface CreateProposalReactionInput { + clientMutationId?: string; + /** The `ProposalReaction` to be created by this mutation. */ + proposalReaction: ProposalReactionInput; +} +export interface CreateProposalReviewInput { + clientMutationId?: string; + /** The `ProposalReview` to be created by this mutation. */ + proposalReview: ProposalReviewInput; +} +export interface CreateProposalsChunkInput { + clientMutationId?: string; + /** The `ProposalsChunk` to be created by this mutation. */ + proposalsChunk: ProposalsChunkInput; +} +export interface CreateRegistryBindingInput { + clientMutationId?: string; + /** The `RegistryBinding` to be created by this mutation. */ + registryBinding: RegistryBindingInput; +} +export interface CreateRegistryGrantInput { + clientMutationId?: string; + /** The `RegistryGrant` to be created by this mutation. */ + registryGrant: RegistryGrantInput; +} +export interface CreateRegistryInput { + clientMutationId?: string; + /** The `Registry` to be created by this mutation. */ + registry: RegistryInput; +} +export interface CreateRepositoryEventInput { + clientMutationId?: string; + /** The `RepositoryEvent` to be created by this mutation. */ + repositoryEvent: RepositoryEventInput; +} +export interface CreateRepositoryInput { + clientMutationId?: string; + /** The `Repository` to be created by this mutation. */ + repository: RepositoryInput; +} +export interface CreateRepositoryRequiredCheckInput { + clientMutationId?: string; + /** The `RepositoryRequiredCheck` to be created by this mutation. */ + repositoryRequiredCheck: RepositoryRequiredCheckInput; +} +export interface CreateRepositoryWorkflowInput { + clientMutationId?: string; + /** The `RepositoryWorkflow` to be created by this mutation. */ + repositoryWorkflow: RepositoryWorkflowInput; +} +export interface CreateResourceDefinitionInput { + clientMutationId?: string; + /** The `ResourceDefinition` to be created by this mutation. */ + resourceDefinition: ResourceDefinitionInput; +} +export interface CreateResourceEventInput { + clientMutationId?: string; + /** The `ResourceEvent` to be created by this mutation. */ + resourceEvent: ResourceEventInput; +} +export interface CreateResourceInput { + clientMutationId?: string; + /** The `Resource` to be created by this mutation. */ + resource: ResourceInput; +} +export interface CreateResourceInstallationInput { + clientMutationId?: string; + /** The `ResourceInstallation` to be created by this mutation. */ + resourceInstallation: ResourceInstallationInput; +} +export interface CreateResourceStatusCheckInput { + clientMutationId?: string; + /** The `ResourceStatusCheck` to be created by this mutation. */ + resourceStatusCheck: ResourceStatusCheckInput; +} +export interface CreateResourceUsageLogInput { + clientMutationId?: string; + /** The `ResourceUsageLog` to be created by this mutation. */ + resourceUsageLog: ResourceUsageLogInput; +} +export interface CreateResourceUsageSummaryInput { + clientMutationId?: string; + /** The `ResourceUsageSummary` to be created by this mutation. */ + resourceUsageSummary: ResourceUsageSummaryInput; +} +export interface CreateWebhookEndpointInput { + clientMutationId?: string; + /** The `WebhookEndpoint` to be created by this mutation. */ + webhookEndpoint: WebhookEndpointInput; +} +export interface CreateWebhookEventInput { + clientMutationId?: string; + /** The `WebhookEvent` to be created by this mutation. */ + webhookEvent: WebhookEventInput; +} +export interface DatabaseAddEdgeAndSaveInput { + clientMutationId?: string; + dstNode?: string; + dstPort?: string; + graphId?: string; + message?: string; + srcNode?: string; + srcPort?: string; +} +export interface DatabaseAddEdgeInput { + clientMutationId?: string; + context?: string; + databaseId?: string; + dstNode?: string; + dstPort?: string; + graphName?: string; + rootHash?: string; + srcNode?: string; + srcPort?: string; +} +export interface DatabaseAddNodeAndSaveInput { + clientMutationId?: string; + graphId?: string; + message?: string; + meta?: unknown; + nodeName?: string; + nodeType?: string; + props?: unknown; +} +export interface DatabaseAddNodeInput { + clientMutationId?: string; + context?: string; + databaseId?: string; + graphName?: string; + meta?: unknown; + nodeName?: string; + nodeType?: string; + props?: unknown; + rootHash?: string; +} +export interface DatabaseApproveNodeInput { + approved?: boolean; + clientMutationId?: string; + executionId?: string; + feedback?: unknown; + nodeName?: string; +} +export interface DatabaseCopyGraphInput { + clientMutationId?: string; + databaseId?: string; + graphId?: string; + name?: string; +} +export interface DatabaseCreateFunctionGraphInput { + clientMutationId?: string; + context?: string; + createdBy?: string; + databaseId?: string; + definitionsCommitId?: string; + description?: string; + name?: string; +} +/** A filter to be used against `DatabaseFunctionGraphExecution` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseFunctionGraphExecutionFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: DatabaseFunctionGraphExecutionFilter[]; + /** Filter by the object’s `completedAt` field. */ + completedAt?: DatetimeFilter; + /** Filter by the object’s `currentWave` field. */ + currentWave?: IntFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `definitionsCommitId` field. */ + definitionsCommitId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `entityType` field. */ + entityType?: StringFilter; + /** Filter by the object’s `errorCode` field. */ + errorCode?: StringFilter; + /** Filter by the object’s `errorMessage` field. */ + errorMessage?: StringFilter; + /** Filter by the object’s `executionPlan` field. */ + executionPlan?: JSONFilter; + /** Filter by the object’s `graph` relation. */ + graph?: DatabaseFunctionGraphFilter; + /** Filter by the object’s `graphId` field. */ + graphId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `inputPayload` field. */ + inputPayload?: JSONFilter; + /** Filter by the object’s `invocationCreatedAt` field. */ + invocationCreatedAt?: DatetimeFilter; + /** Filter by the object’s `invocationId` field. */ + invocationId?: UUIDFilter; + /** Filter by the object’s `lastProgressAt` field. */ + lastProgressAt?: DatetimeFilter; + /** Filter by the object’s `maxPendingJobs` field. */ + maxPendingJobs?: IntFilter; + /** Filter by the object’s `maxTicks` field. */ + maxTicks?: IntFilter; + /** Filter by the object’s `nodeOutputs` field. */ + nodeOutputs?: JSONFilter; + /** Negates the expression. */ + not?: DatabaseFunctionGraphExecutionFilter; + /** Checks for any expressions in this list. */ + or?: DatabaseFunctionGraphExecutionFilter[]; + /** Filter by the object’s `organizationId` field. */ + organizationId?: UUIDFilter; + /** Filter by the object’s `outputNames` field. */ + outputNames?: StringListFilter; + /** Filter by the object’s `outputNode` field. */ + outputNode?: StringFilter; + /** Filter by the object’s `outputPayload` field. */ + outputPayload?: JSONFilter; + /** Filter by the object’s `outputPort` field. */ + outputPort?: StringFilter; + /** Filter by the object’s `parentExecutionId` field. */ + parentExecutionId?: UUIDFilter; + /** Filter by the object’s `parentInvocationId` field. */ + parentInvocationId?: UUIDFilter; + /** Filter by the object’s `parentNodeName` field. */ + parentNodeName?: StringFilter; + /** Filter by the object’s `principalId` field. */ + principalId?: UUIDFilter; + /** Filter by the object’s `startedAt` field. */ + startedAt?: DatetimeFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `tickCount` field. */ + tickCount?: IntFilter; + /** Filter by the object’s `timeoutAt` field. */ + timeoutAt?: DatetimeFilter; +} +/** An input for mutations affecting `DatabaseFunctionGraphExecution` */ +export interface DatabaseFunctionGraphExecutionInput { + /** User actor propagated to asynchronous graph jobs */ + actorId?: string; + /** Execution completion timestamp */ + completedAt?: string; + /** Index into execution_plan — tick only processes this wave */ + currentWave?: number; + /** Database scope for multi-tenant isolation */ + databaseId: string; + /** Pinned definitions store commit for deterministic evaluation */ + definitionsCommitId?: string; + /** Entity context propagated to asynchronous graph jobs */ + entityId?: string; + /** Scope discriminator propagated to asynchronous graph jobs */ + entityType?: string; + /** Machine-readable error code when status = failed */ + errorCode?: string; + /** Human-readable error description when status = failed */ + errorMessage?: string; + /** Pre-computed topological sort as array of wave objects */ + executionPlan?: unknown; + /** FK to the graph definition being executed */ + graphId: string; + /** Unique execution identifier */ + id?: string; + /** Initial inputs provided at invocation time */ + inputPayload?: unknown; + /** Partition coordinate for the function invocation that launched this graph execution */ + invocationCreatedAt?: string; + /** Function invocation that launched this top-level graph execution */ + invocationId?: string; + /** Timestamp of the last real progress (node enqueue, node output, completion) — drives the activity-debounced watchdog */ + lastProgressAt?: string; + /** Maximum pending jobs before execution is failed (default 50) */ + maxPendingJobs?: number; + /** Maximum ticks before execution is failed (default 100) */ + maxTicks?: number; + /** Map of node_name → execution output id (content-addressed hash reference) */ + nodeOutputs?: unknown; + /** Organization context propagated to asynchronous graph jobs */ + organizationId?: string; + /** Selected graphOutput portName values; NULL or empty returns all graph outputs */ + outputNames?: string[]; + /** Target output boundary node name to resolve; NULL derives completion from the graph's graphOutput nodes */ + outputNode?: string; + /** Final result extracted from terminal output node */ + outputPayload?: unknown; + /** Target output port name (default: value) */ + outputPort?: string; + /** Parent execution when this is a sub-execution */ + parentExecutionId?: string; + /** Function invocation parent assigned to node invocations spawned by this execution */ + parentInvocationId?: string; + /** Node name in parent execution that spawned this sub-execution */ + parentNodeName?: string; + /** Principal identity propagated to asynchronous graph jobs */ + principalId?: string; + /** Execution start timestamp */ + startedAt?: string; + /** Lifecycle: pending → running → completed/failed/cancelled */ + status?: string; + /** Number of evaluate_step ticks executed */ + tickCount?: number; + /** Absolute deadline — execution fails if still running after this time */ + timeoutAt?: string; +} +/** A filter to be used against `DatabaseFunctionGraphExecutionNodeState` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseFunctionGraphExecutionNodeStateFilter { + /** Checks for all expressions in this list. */ + and?: DatabaseFunctionGraphExecutionNodeStateFilter[]; + /** Filter by the object’s `callbackInputs` field. */ + callbackInputs?: JSONFilter; + /** Filter by the object’s `callbackMeta` field. */ + callbackMeta?: JSONFilter; + /** Filter by the object’s `callbackTokenHash` field. */ + callbackTokenHash?: StringFilter; + /** Filter by the object’s `completedAt` field. */ + completedAt?: DatetimeFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `errorCode` field. */ + errorCode?: StringFilter; + /** Filter by the object’s `errorMessage` field. */ + errorMessage?: StringFilter; + /** Filter by the object’s `executionId` field. */ + executionId?: UUIDFilter; + /** Filter by the object’s `expiryDefaultOutput` field. */ + expiryDefaultOutput?: JSONFilter; + /** Filter by the object’s `expiryEscalatedAt` field. */ + expiryEscalatedAt?: DatetimeFilter; + /** Filter by the object’s `expiryPolicy` field. */ + expiryPolicy?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `nodeName` field. */ + nodeName?: StringFilter; + /** Filter by the object’s `nodePath` field. */ + nodePath?: StringListFilter; + /** Negates the expression. */ + not?: DatabaseFunctionGraphExecutionNodeStateFilter; + /** Checks for any expressions in this list. */ + or?: DatabaseFunctionGraphExecutionNodeStateFilter[]; + /** Filter by the object’s `outputId` field. */ + outputId?: UUIDFilter; + /** Filter by the object’s `startedAt` field. */ + startedAt?: DatetimeFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `waitingDeadlineAt` field. */ + waitingDeadlineAt?: DatetimeFilter; + /** Filter by the object’s `waitingOn` field. */ + waitingOn?: StringFilter; + /** Filter by the object’s `waitingSince` field. */ + waitingSince?: DatetimeFilter; +} +/** An input for mutations affecting `DatabaseFunctionGraphExecutionNodeState` */ +export interface DatabaseFunctionGraphExecutionNodeStateInput { + /** Snapshot of the node's resolved inputs for resource-runtime nodes — served by the node gateway GET /inputs endpoint */ + callbackInputs?: unknown; + /** Metering/attribution context stamped at resource dispatch (namespace_id, task_identifier, entity_id, scope, resource identity, dispatched_at, attempt) — lets the node gateway settle and attribute without extra lookups */ + callbackMeta?: unknown; + /** SHA-256 hex digest of the node callback token — set for resource-runtime nodes so the node gateway can authenticate result/error/heartbeat callbacks */ + callbackTokenHash?: string; + /** Timestamp when the node finished (success or failure) */ + completedAt?: string; + /** Timestamp of node state creation (partition key) */ + createdAt?: string; + /** Database scope for multi-tenant isolation */ + databaseId: string; + /** Machine-readable error code when status = failed */ + errorCode?: string; + /** Human-readable error description when status = failed */ + errorMessage?: string; + /** FK to the parent graph execution */ + executionId: string; + /** Declared output applied by the default_answer expiry policy */ + expiryDefaultOutput?: unknown; + /** When the escalate expiry policy fired — guards the one-time extension */ + expiryEscalatedAt?: string; + /** Declared expiry behaviour when waiting_deadline_at passes unanswered: fail (fail the execution), default_answer (settle with expiry_default_output), or escalate (notify and extend once) */ + expiryPolicy?: string; + /** Unique node state identifier */ + id?: string; + /** Name of the node within the graph (e.g. send-email1) */ + nodeName: string; + /** Full merkle tree path to this node (e.g. {function,graphs,myflow,nodes,send-email1}) — enables subnet hierarchy tracking */ + nodePath?: string[]; + /** FK to execution_outputs — content-addressed output blob for this node */ + outputId?: string; + /** Timestamp when the node began executing */ + startedAt?: string; + /** Node lifecycle: pending → queued → running → completed/failed/cancelled */ + status?: string; + /** When the declared expiry policy applies to the still-unanswered node */ + waitingDeadlineAt?: string; + /** What class of external reporter settles this node: human (a person answers) or external (webhook/adapter). NULL for nodes with an active workload */ + waitingOn?: string; + /** When the node parked awaiting its external report */ + waitingSince?: string; +} +/** Represents an update to a `DatabaseFunctionGraphExecutionNodeState`. Fields that are set will be updated. */ +export interface DatabaseFunctionGraphExecutionNodeStatePatch { + /** Snapshot of the node's resolved inputs for resource-runtime nodes — served by the node gateway GET /inputs endpoint */ + callbackInputs?: unknown; + /** Metering/attribution context stamped at resource dispatch (namespace_id, task_identifier, entity_id, scope, resource identity, dispatched_at, attempt) — lets the node gateway settle and attribute without extra lookups */ + callbackMeta?: unknown; + /** SHA-256 hex digest of the node callback token — set for resource-runtime nodes so the node gateway can authenticate result/error/heartbeat callbacks */ + callbackTokenHash?: string; + /** Timestamp when the node finished (success or failure) */ + completedAt?: string; + /** Timestamp of node state creation (partition key) */ + createdAt?: string; + /** Database scope for multi-tenant isolation */ + databaseId?: string; + /** Machine-readable error code when status = failed */ + errorCode?: string; + /** Human-readable error description when status = failed */ + errorMessage?: string; + /** FK to the parent graph execution */ + executionId?: string; + /** Declared output applied by the default_answer expiry policy */ + expiryDefaultOutput?: unknown; + /** When the escalate expiry policy fired — guards the one-time extension */ + expiryEscalatedAt?: string; + /** Declared expiry behaviour when waiting_deadline_at passes unanswered: fail (fail the execution), default_answer (settle with expiry_default_output), or escalate (notify and extend once) */ + expiryPolicy?: string; + /** Unique node state identifier */ + id?: string; + /** Name of the node within the graph (e.g. send-email1) */ + nodeName?: string; + /** Full merkle tree path to this node (e.g. {function,graphs,myflow,nodes,send-email1}) — enables subnet hierarchy tracking */ + nodePath?: string[]; + /** FK to execution_outputs — content-addressed output blob for this node */ + outputId?: string; + /** Timestamp when the node began executing */ + startedAt?: string; + /** Node lifecycle: pending → queued → running → completed/failed/cancelled */ + status?: string; + /** When the declared expiry policy applies to the still-unanswered node */ + waitingDeadlineAt?: string; + /** What class of external reporter settles this node: human (a person answers) or external (webhook/adapter). NULL for nodes with an active workload */ + waitingOn?: string; + /** When the node parked awaiting its external report */ + waitingSince?: string; +} +/** A filter to be used against `DatabaseFunctionGraphExecutionOutput` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseFunctionGraphExecutionOutputFilter { + /** Checks for all expressions in this list. */ + and?: DatabaseFunctionGraphExecutionOutputFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `data` field. */ + data?: JSONFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `hash` field. */ + hash?: Base64EncodedBinaryFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: DatabaseFunctionGraphExecutionOutputFilter; + /** Checks for any expressions in this list. */ + or?: DatabaseFunctionGraphExecutionOutputFilter[]; +} +/** An input for mutations affecting `DatabaseFunctionGraphExecutionOutput` */ +export interface DatabaseFunctionGraphExecutionOutputInput { + /** Timestamp of output creation */ + createdAt?: string; + /** The actual output payload from a completed node */ + data: unknown; + /** Database scope for multi-tenant isolation */ + databaseId: string; + /** SHA-256 hash of the data JSONB — content-addressed deduplication */ + hash: Base64EncodedBinary; + /** Unique execution output identifier */ + id?: string; +} +/** Represents an update to a `DatabaseFunctionGraphExecutionOutput`. Fields that are set will be updated. */ +export interface DatabaseFunctionGraphExecutionOutputPatch { + /** Timestamp of output creation */ + createdAt?: string; + /** The actual output payload from a completed node */ + data?: unknown; + /** Database scope for multi-tenant isolation */ + databaseId?: string; + /** SHA-256 hash of the data JSONB — content-addressed deduplication */ + hash?: Base64EncodedBinary; + /** Unique execution output identifier */ + id?: string; +} +/** Represents an update to a `DatabaseFunctionGraphExecution`. Fields that are set will be updated. */ +export interface DatabaseFunctionGraphExecutionPatch { + /** User actor propagated to asynchronous graph jobs */ + actorId?: string; + /** Execution completion timestamp */ + completedAt?: string; + /** Index into execution_plan — tick only processes this wave */ + currentWave?: number; + /** Database scope for multi-tenant isolation */ + databaseId?: string; + /** Pinned definitions store commit for deterministic evaluation */ + definitionsCommitId?: string; + /** Entity context propagated to asynchronous graph jobs */ + entityId?: string; + /** Scope discriminator propagated to asynchronous graph jobs */ + entityType?: string; + /** Machine-readable error code when status = failed */ + errorCode?: string; + /** Human-readable error description when status = failed */ + errorMessage?: string; + /** Pre-computed topological sort as array of wave objects */ + executionPlan?: unknown; + /** FK to the graph definition being executed */ + graphId?: string; + /** Unique execution identifier */ + id?: string; + /** Initial inputs provided at invocation time */ + inputPayload?: unknown; + /** Partition coordinate for the function invocation that launched this graph execution */ + invocationCreatedAt?: string; + /** Function invocation that launched this top-level graph execution */ + invocationId?: string; + /** Timestamp of the last real progress (node enqueue, node output, completion) — drives the activity-debounced watchdog */ + lastProgressAt?: string; + /** Maximum pending jobs before execution is failed (default 50) */ + maxPendingJobs?: number; + /** Maximum ticks before execution is failed (default 100) */ + maxTicks?: number; + /** Map of node_name → execution output id (content-addressed hash reference) */ + nodeOutputs?: unknown; + /** Organization context propagated to asynchronous graph jobs */ + organizationId?: string; + /** Selected graphOutput portName values; NULL or empty returns all graph outputs */ + outputNames?: string[]; + /** Target output boundary node name to resolve; NULL derives completion from the graph's graphOutput nodes */ + outputNode?: string; + /** Final result extracted from terminal output node */ + outputPayload?: unknown; + /** Target output port name (default: value) */ + outputPort?: string; + /** Parent execution when this is a sub-execution */ + parentExecutionId?: string; + /** Function invocation parent assigned to node invocations spawned by this execution */ + parentInvocationId?: string; + /** Node name in parent execution that spawned this sub-execution */ + parentNodeName?: string; + /** Principal identity propagated to asynchronous graph jobs */ + principalId?: string; + /** Execution start timestamp */ + startedAt?: string; + /** Lifecycle: pending → running → completed/failed/cancelled */ + status?: string; + /** Number of evaluate_step ticks executed */ + tickCount?: number; + /** Absolute deadline — execution fails if still running after this time */ + timeoutAt?: string; +} +/** A filter to be used against `DatabaseFunctionGraph` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseFunctionGraphFilter { + /** Checks for all expressions in this list. */ + and?: DatabaseFunctionGraphFilter[]; + /** Filter by the object’s `context` field. */ + context?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `databaseFunctionGraphExecutionsByGraphId` relation. */ + databaseFunctionGraphExecutionsByGraphId?: DatabaseFunctionGraphToManyDatabaseFunctionGraphExecutionFilter; + /** `databaseFunctionGraphExecutionsByGraphId` exist. */ + databaseFunctionGraphExecutionsByGraphIdExist?: boolean; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `definitionsCommitId` field. */ + definitionsCommitId?: UUIDFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `functionDefinitionsByGraphId` relation. */ + functionDefinitionsByGraphId?: DatabaseFunctionGraphToManyFunctionDefinitionFilter; + /** `functionDefinitionsByGraphId` exist. */ + functionDefinitionsByGraphIdExist?: boolean; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isValid` field. */ + isValid?: BooleanFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: DatabaseFunctionGraphFilter; + /** Checks for any expressions in this list. */ + or?: DatabaseFunctionGraphFilter[]; + /** Filter by the object’s `repositoryWorkflowsByGraphId` relation. */ + repositoryWorkflowsByGraphId?: DatabaseFunctionGraphToManyRepositoryWorkflowFilter; + /** `repositoryWorkflowsByGraphId` exist. */ + repositoryWorkflowsByGraphIdExist?: boolean; + /** Filter by the object’s `storeId` field. */ + storeId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `validationErrors` field. */ + validationErrors?: JSONFilter; +} +/** Represents an update to a `DatabaseFunctionGraph`. Fields that are set will be updated. */ +export interface DatabaseFunctionGraphPatch { + /** Evaluator/runtime context (function, js, sql, system) */ + context?: string; + /** Timestamp of graph creation */ + createdAt?: string; + /** Actor who created this graph */ + createdBy?: string; + /** Database scope for multi-tenant isolation */ + databaseId?: string; + /** Pinned definitions store commit for deterministic evaluation */ + definitionsCommitId?: string; + /** Human-readable description of the graph */ + description?: string; + /** Unique graph identifier */ + id?: string; + /** Whether graph passes structural validation */ + isValid?: boolean; + /** Graph name (unique per database) */ + name?: string; + /** Graph store (Merkle store) holding the graph definition */ + storeId?: string; + /** Timestamp of last modification */ + updatedAt?: string; + /** Array of validation error objects when is_valid = false */ + validationErrors?: unknown; +} +/** A filter to be used against many `DatabaseFunctionGraphExecution` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseFunctionGraphToManyDatabaseFunctionGraphExecutionFilter { + /** Filters to entities where every related entity matches. */ + every?: DatabaseFunctionGraphExecutionFilter; + /** Filters to entities where no related entity matches. */ + none?: DatabaseFunctionGraphExecutionFilter; + /** Filters to entities where at least one related entity matches. */ + some?: DatabaseFunctionGraphExecutionFilter; +} +/** A filter to be used against many `FunctionDefinition` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseFunctionGraphToManyFunctionDefinitionFilter { + /** Filters to entities where every related entity matches. */ + every?: FunctionDefinitionFilter; + /** Filters to entities where no related entity matches. */ + none?: FunctionDefinitionFilter; + /** Filters to entities where at least one related entity matches. */ + some?: FunctionDefinitionFilter; +} +/** A filter to be used against many `RepositoryWorkflow` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseFunctionGraphToManyRepositoryWorkflowFilter { + /** Filters to entities where every related entity matches. */ + every?: RepositoryWorkflowFilter; + /** Filters to entities where no related entity matches. */ + none?: RepositoryWorkflowFilter; + /** Filters to entities where at least one related entity matches. */ + some?: RepositoryWorkflowFilter; +} +/** A filter to be used against `DatabaseGraphCommit` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseGraphCommitFilter { + /** Checks for all expressions in this list. */ + and?: DatabaseGraphCommitFilter[]; + /** Filter by the object’s `authorId` field. */ + authorId?: UUIDFilter; + /** Filter by the object’s `committerId` field. */ + committerId?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `date` field. */ + date?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `message` field. */ + message?: StringFilter; + /** Negates the expression. */ + not?: DatabaseGraphCommitFilter; + /** Checks for any expressions in this list. */ + or?: DatabaseGraphCommitFilter[]; + /** Filter by the object’s `parentIds` field. */ + parentIds?: UUIDListFilter; + /** Filter by the object’s `storeId` field. */ + storeId?: UUIDFilter; + /** Filter by the object’s `treeId` field. */ + treeId?: UUIDFilter; +} +/** An input for mutations affecting `DatabaseGraphCommit` */ +export interface DatabaseGraphCommitInput { + /** User who authored the changes */ + authorId?: string; + /** User who committed (may differ from author) */ + committerId?: string; + /** Database scope for multi-tenant isolation */ + databaseId: string; + /** Commit timestamp */ + date?: string; + /** Unique commit identifier */ + id?: string; + /** Optional commit message */ + message?: string; + /** Parent commit IDs (supports merge commits) */ + parentIds?: string[]; + /** Store this commit belongs to */ + storeId: string; + /** Root object ID of the tree snapshot at this commit */ + treeId?: string; +} +/** Represents an update to a `DatabaseGraphCommit`. Fields that are set will be updated. */ +export interface DatabaseGraphCommitPatch { + /** User who authored the changes */ + authorId?: string; + /** User who committed (may differ from author) */ + committerId?: string; + /** Database scope for multi-tenant isolation */ + databaseId?: string; + /** Commit timestamp */ + date?: string; + /** Unique commit identifier */ + id?: string; + /** Optional commit message */ + message?: string; + /** Parent commit IDs (supports merge commits) */ + parentIds?: string[]; + /** Store this commit belongs to */ + storeId?: string; + /** Root object ID of the tree snapshot at this commit */ + treeId?: string; +} +export interface DatabaseGraphInitEmptyRepoInput { + clientMutationId?: string; + sId?: string; + storeId?: string; +} +export interface DatabaseGraphInsertNodeAtPathInput { + clientMutationId?: string; + data?: unknown; + kids?: string[]; + ktree?: string[]; + path?: string[]; + root?: string; + sId?: string; +} +export interface DatabaseGraphInsertNodesAtPathsInput { + clientMutationId?: string; + datas?: unknown[]; + kidsList?: unknown; + ktreeList?: unknown; + paths?: unknown; + root?: string; + sId?: string; +} +/** A filter to be used against `DatabaseGraphObject` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseGraphObjectFilter { + /** Checks for all expressions in this list. */ + and?: DatabaseGraphObjectFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `data` field. */ + data?: JSONFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `kids` field. */ + kids?: UUIDListFilter; + /** Filter by the object’s `ktree` field. */ + ktree?: StringListFilter; + /** Negates the expression. */ + not?: DatabaseGraphObjectFilter; + /** Checks for any expressions in this list. */ + or?: DatabaseGraphObjectFilter[]; +} +/** An input for mutations affecting `DatabaseGraphObject` */ +export interface DatabaseGraphObjectInput { + /** Timestamp of object creation */ + createdAt?: string; + /** Payload data for this object node */ + data?: unknown; + /** Database scope for multi-tenant isolation */ + databaseId: string; + /** Content-addressed UUID v5 — deterministic hash of (data, kids, ktree) */ + id: string; + /** Ordered array of child object IDs */ + kids?: string[]; + /** Ordered array of child path names (parallel to kids) */ + ktree?: string[]; +} +/** Represents an update to a `DatabaseGraphObject`. Fields that are set will be updated. */ +export interface DatabaseGraphObjectPatch { + /** Timestamp of object creation */ + createdAt?: string; + /** Payload data for this object node */ + data?: unknown; + /** Database scope for multi-tenant isolation */ + databaseId?: string; + /** Content-addressed UUID v5 — deterministic hash of (data, kids, ktree) */ + id?: string; + /** Ordered array of child object IDs */ + kids?: string[]; + /** Ordered array of child path names (parallel to kids) */ + ktree?: string[]; +} +/** A filter to be used against `DatabaseGraphRef` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseGraphRefFilter { + /** Checks for all expressions in this list. */ + and?: DatabaseGraphRefFilter[]; + /** Filter by the object’s `commitId` field. */ + commitId?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: DatabaseGraphRefFilter; + /** Checks for any expressions in this list. */ + or?: DatabaseGraphRefFilter[]; + /** Filter by the object’s `storeId` field. */ + storeId?: UUIDFilter; +} +/** An input for mutations affecting `DatabaseGraphRef` */ +export interface DatabaseGraphRefInput { + /** Commit this ref points to */ + commitId?: string; + /** Database scope for multi-tenant isolation */ + databaseId: string; + /** Unique ref identifier */ + id?: string; + /** Ref name (e.g. HEAD, main) */ + name: string; + /** Store this ref belongs to */ + storeId: string; +} +/** Represents an update to a `DatabaseGraphRef`. Fields that are set will be updated. */ +export interface DatabaseGraphRefPatch { + /** Commit this ref points to */ + commitId?: string; + /** Database scope for multi-tenant isolation */ + databaseId?: string; + /** Unique ref identifier */ + id?: string; + /** Ref name (e.g. HEAD, main) */ + name?: string; + /** Store this ref belongs to */ + storeId?: string; +} +export interface DatabaseGraphSetAndCommitInput { + clientMutationId?: string; + data?: unknown; + kids?: string[]; + ktree?: string[]; + message?: string; + path?: string[]; + refname?: string; + sId?: string; + storeId?: string; +} +export interface DatabaseGraphSetDataAtPathInput { + clientMutationId?: string; + data?: unknown; + path?: string[]; + root?: string; + sId?: string; +} +export interface DatabaseGraphSetManyAndCommitInput { + clientMutationId?: string; + entries?: unknown; + message?: string; + refname?: string; + sId?: string; + storeId?: string; +} +/** A filter to be used against `DatabaseGraphStore` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseGraphStoreFilter { + /** Checks for all expressions in this list. */ + and?: DatabaseGraphStoreFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `hash` field. */ + hash?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: DatabaseGraphStoreFilter; + /** Checks for any expressions in this list. */ + or?: DatabaseGraphStoreFilter[]; +} +/** An input for mutations affecting `DatabaseGraphStore` */ +export interface DatabaseGraphStoreInput { + /** Timestamp of store creation */ + createdAt?: string; + /** Database scope for multi-tenant isolation */ + databaseId: string; + /** Current root object hash of this store */ + hash?: string; + /** Unique store identifier */ + id?: string; + /** Human-readable store name */ + name: string; +} +/** Represents an update to a `DatabaseGraphStore`. Fields that are set will be updated. */ +export interface DatabaseGraphStorePatch { + /** Timestamp of store creation */ + createdAt?: string; + /** Database scope for multi-tenant isolation */ + databaseId?: string; + /** Current root object hash of this store */ + hash?: string; + /** Unique store identifier */ + id?: string; + /** Human-readable store name */ + name?: string; +} +export interface DatabaseImportDefinitionsInput { + clientMutationId?: string; + contexts?: string[]; + graphId?: string; + sourceCommitId?: string; + sourceScopeId?: string; +} +export interface DatabaseImportGraphJsonInput { + clientMutationId?: string; + context?: string; + createdBy?: string; + databaseId?: string; + definitionsCommitId?: string; + description?: string; + graphJson?: unknown; + name?: string; +} +export interface DatabaseSaveGraphInput { + clientMutationId?: string; + graphId?: string; + message?: string; + rootHash?: string; +} +export interface DatabaseStartExecutionInput { + clientMutationId?: string; + graphId?: string; + inputPayload?: unknown; + maxPendingJobs?: number; + maxTicks?: number; + outputNames?: string[]; + outputNode?: string; + outputPort?: string; + parentExecutionId?: string; + parentNodeName?: string; + timeoutInterval?: IntervalInput; +} +export interface DatabaseValidateFunctionGraphInput { + clientMutationId?: string; + graphId?: string; +} +/** A filter to be used against `DbPreset` object types. All fields are combined with a logical ‘and.’ */ +export interface DbPresetFilter { + /** Filter by the object’s `active` field. */ + active?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: DbPresetFilter[]; + /** 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 `label` field. */ + label?: StringFilter; + /** Filter by the object’s `modulesHash` field. */ + modulesHash?: UUIDFilter; + /** Negates the expression. */ + not?: DbPresetFilter; + /** Checks for any expressions in this list. */ + or?: DbPresetFilter[]; + /** 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 `DbPreset` */ +export interface DbPresetInput { + /** Whether this preset is selectable for new databases */ + 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; + /** Preset definition (modules + options) — 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; + /** Human-readable preset name */ + label?: string; + /** Content-address of definition->modules via metaschema_private.modules_hash (stamped by the versioned trigger); fast exact-match lookup key for provisioning requests */ + modulesHash?: string; + /** Preset slug (unique per scope); the preset's path in the infra tree is [db_preset, 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 `DbPreset`. Fields that are set will be updated. */ +export interface DbPresetPatch { + /** Whether this preset is selectable for new databases */ + 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; + /** Preset definition (modules + options) — 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; + /** Human-readable preset name */ + label?: string; + /** Content-address of definition->modules via metaschema_private.modules_hash (stamped by the versioned trigger); fast exact-match lookup key for provisioning requests */ + modulesHash?: string; + /** Preset slug (unique per scope); the preset's path in the infra tree is [db_preset, 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 DeleteBuildInput { + clientMutationId?: string; + id: string; +} +export interface DeleteBuildStepInput { + clientMutationId?: string; + /** Unique identifier (uuidv7 provides temporal ordering) */ + id: string; + /** When the result was recorded (partition key) */ + recordedAt: string; +} +export interface DeleteBuilderBindingInput { + clientMutationId?: string; + id: string; +} +export interface DeleteContentPresetInput { + clientMutationId?: string; + /** Unique preset identifier */ + id: string; +} +export interface DeleteDatabaseFunctionGraphExecutionInput { + clientMutationId?: string; + /** Unique execution identifier */ + id: string; + /** Execution start timestamp */ + startedAt: string; +} +export interface DeleteDatabaseFunctionGraphExecutionNodeStateInput { + clientMutationId?: string; + /** Timestamp of node state creation (partition key) */ + createdAt: string; + /** Unique node state identifier */ + id: string; +} +export interface DeleteDatabaseFunctionGraphExecutionOutputInput { + clientMutationId?: string; + /** Timestamp of output creation */ + createdAt: string; + /** Unique execution output identifier */ + id: string; +} +export interface DeleteDatabaseFunctionGraphInput { + clientMutationId?: string; + /** Unique graph identifier */ + id: string; +} +export interface DeleteDatabaseGraphCommitInput { + clientMutationId?: string; + /** Database scope for multi-tenant isolation */ + databaseId: string; + /** Unique commit identifier */ + id: string; +} +export interface DeleteDatabaseGraphObjectInput { + clientMutationId?: string; + /** Database scope for multi-tenant isolation */ + databaseId: string; + /** Content-addressed UUID v5 — deterministic hash of (data, kids, ktree) */ + id: string; +} +export interface DeleteDatabaseGraphRefInput { + clientMutationId?: string; + /** Database scope for multi-tenant isolation */ + databaseId: string; + /** Unique ref identifier */ + id: string; +} +export interface DeleteDatabaseGraphStoreInput { + clientMutationId?: string; + /** Unique store identifier */ + id: string; +} +export interface DeleteDbPresetInput { + clientMutationId?: string; + /** Unique preset identifier */ + id: string; +} +export interface DeleteFunctionApiBindingInput { + clientMutationId?: string; + id: string; +} +export interface DeleteFunctionCapabilityBindingInput { + clientMutationId?: string; + id: string; +} +export interface DeleteFunctionDefinitionInput { + clientMutationId?: string; + id: string; +} +export interface DeleteFunctionDeploymentEventInput { + clientMutationId?: string; + /** Event timestamp (partition key) */ + createdAt: string; + /** Unique event identifier */ + id: string; +} +export interface DeleteFunctionDeploymentInput { + clientMutationId?: string; + id: string; +} +export interface DeleteFunctionExecutionLogInput { + clientMutationId?: string; + /** Log entry timestamp (partition key) */ + createdAt: string; + /** Unique log entry identifier */ + id: string; +} +export interface DeleteFunctionGraphCommitInput { + clientMutationId?: string; + /** Unique commit identifier */ + id: string; + /** Opaque store partition key for the global tier */ + scopeId: string; +} +export interface DeleteFunctionGraphExecutionInput { + clientMutationId?: string; + /** Unique execution identifier */ + id: string; + /** Execution start timestamp */ + startedAt: string; +} +export interface DeleteFunctionGraphExecutionNodeStateInput { + clientMutationId?: string; + /** Timestamp of node state creation (partition key) */ + createdAt: string; + /** Unique node state identifier */ + id: string; +} +export interface DeleteFunctionGraphExecutionOutputInput { + clientMutationId?: string; + /** Timestamp of output creation */ + createdAt: string; + /** Unique execution output identifier */ + id: string; +} +export interface DeleteFunctionGraphInput { + clientMutationId?: string; + /** Unique graph identifier */ + id: string; +} +export interface DeleteFunctionGraphObjectInput { + clientMutationId?: string; + /** Content-addressed UUID v5 — deterministic hash of (data, kids, ktree) */ + id: string; + /** Opaque store partition key for the global tier */ + scopeId: string; +} +export interface DeleteFunctionGraphRefInput { + clientMutationId?: string; + /** Unique ref identifier */ + id: string; + /** Opaque store partition key for the global tier */ + scopeId: string; +} +export interface DeleteFunctionGraphStoreInput { + clientMutationId?: string; + /** Unique store identifier */ + id: string; +} +export interface DeleteFunctionInvocationAttemptInput { + clientMutationId?: string; + /** When the attempt result was recorded (partition key) */ + createdAt: string; + /** Unique attempt identifier */ + id: string; +} +export interface DeleteFunctionInvocationInput { clientMutationId?: string; - /** The `FunctionGraphRef` to be created by this mutation. */ - functionGraphRef: FunctionGraphRefInput; + /** Invocation creation timestamp (partition key) */ + createdAt: string; + /** Unique invocation identifier */ + id: string; } -export interface CreateFunctionGraphStoreInput { +export interface DeleteImageGrantInput { clientMutationId?: string; - /** The `FunctionGraphStore` to be created by this mutation. */ - functionGraphStore: FunctionGraphStoreInput; + id: string; } -export interface CreateFunctionInvocationAttemptInput { +export interface DeleteImageInput { clientMutationId?: string; - /** The `FunctionInvocationAttempt` to be created by this mutation. */ - functionInvocationAttempt: FunctionInvocationAttemptInput; + id: string; } -export interface CreateFunctionInvocationInput { +export interface DeleteInfraCommitInput { clientMutationId?: string; - /** The `FunctionInvocation` to be created by this mutation. */ - functionInvocation: FunctionInvocationInput; + /** Database scope for multi-tenant isolation */ + databaseId: string; + /** Unique commit identifier */ + id: string; } -export interface CreateInfraCommitInput { +export interface DeleteInfraObjectInput { clientMutationId?: string; - /** The `InfraCommit` to be created by this mutation. */ - infraCommit: InfraCommitInput; + /** Database scope for multi-tenant isolation */ + databaseId: string; + /** Content-addressed UUID v5 — deterministic hash of (data, kids, ktree) */ + id: string; } -export interface CreateInfraObjectInput { +export interface DeleteInfraRefInput { + clientMutationId?: string; + /** Database scope for multi-tenant isolation */ + databaseId: string; + /** Unique ref identifier */ + id: string; +} +export interface DeleteInfraStoreInput { + clientMutationId?: string; + /** Unique store identifier */ + id: string; +} +export interface DeleteIntegrationProviderInput { + clientMutationId?: string; + id: string; +} +export interface DeleteNamespaceEventInput { + clientMutationId?: string; + /** Event timestamp (partition key) */ + createdAt: string; + /** Unique event identifier */ + id: string; +} +export interface DeleteNamespaceInput { + clientMutationId?: string; + id: string; +} +export interface DeletePlatformBuildInput { + clientMutationId?: string; + id: string; +} +export interface DeletePlatformBuildStepInput { + clientMutationId?: string; + /** Unique identifier (uuidv7 provides temporal ordering) */ + id: string; + /** When the result was recorded (partition key) */ + recordedAt: string; +} +export interface DeletePlatformBuilderBindingInput { + clientMutationId?: string; + id: string; +} +export interface DeletePlatformFunctionApiBindingInput { + clientMutationId?: string; + id: string; +} +export interface DeletePlatformFunctionCapabilityBindingInput { + clientMutationId?: string; + id: string; +} +export interface DeletePlatformFunctionDefinitionInput { + clientMutationId?: string; + id: string; +} +export interface DeletePlatformFunctionDeploymentEventInput { + clientMutationId?: string; + /** Event timestamp (partition key) */ + createdAt: string; + /** Unique event identifier */ + id: string; +} +export interface DeletePlatformFunctionDeploymentInput { + clientMutationId?: string; + id: string; +} +export interface DeletePlatformFunctionExecutionLogInput { + clientMutationId?: string; + /** Log entry timestamp (partition key) */ + createdAt: string; + /** Unique log entry identifier */ + id: string; +} +export interface DeletePlatformFunctionInvocationAttemptInput { + clientMutationId?: string; + /** When the attempt result was recorded (partition key) */ + createdAt: string; + /** Unique attempt identifier */ + id: string; +} +export interface DeletePlatformFunctionInvocationInput { + clientMutationId?: string; + /** Invocation creation timestamp (partition key) */ + createdAt: string; + /** Unique invocation identifier */ + id: string; +} +export interface DeletePlatformImageGrantInput { + clientMutationId?: string; + id: string; +} +export interface DeletePlatformImageInput { + clientMutationId?: string; + id: string; +} +export interface DeletePlatformInfraCommitInput { + clientMutationId?: string; + /** Unique commit identifier */ + id: string; + /** Opaque store partition key for the global tier */ + scopeId: string; +} +export interface DeletePlatformInfraObjectInput { + clientMutationId?: string; + /** Content-addressed UUID v5 — deterministic hash of (data, kids, ktree) */ + id: string; + /** Opaque store partition key for the global tier */ + scopeId: string; +} +export interface DeletePlatformInfraRefInput { + clientMutationId?: string; + /** Unique ref identifier */ + id: string; + /** Opaque store partition key for the global tier */ + scopeId: string; +} +export interface DeletePlatformInfraStoreInput { + clientMutationId?: string; + /** Unique store identifier */ + id: string; +} +export interface DeletePlatformK8sResourceKindInput { + clientMutationId?: string; + /** Unique kind policy identifier */ + id: string; +} +export interface DeletePlatformK8sSpecRuleInput { + clientMutationId?: string; + /** Unique spec rule identifier */ + id: string; +} +export interface DeletePlatformNamespaceEventInput { + clientMutationId?: string; + /** Event timestamp (partition key) */ + createdAt: string; + /** Unique event identifier */ + id: string; +} +export interface DeletePlatformNamespaceInput { + clientMutationId?: string; + id: string; +} +export interface DeletePlatformProposalCommentInput { + clientMutationId?: string; + id: string; +} +export interface DeletePlatformProposalFileViewInput { + clientMutationId?: string; + id: string; +} +export interface DeletePlatformProposalInput { + clientMutationId?: string; + id: string; +} +export interface DeletePlatformProposalReactionInput { + clientMutationId?: string; + id: string; +} +export interface DeletePlatformProposalReviewInput { + clientMutationId?: string; + id: string; +} +export interface DeletePlatformProposalsChunkInput { + clientMutationId?: string; + id: string; +} +export interface DeletePlatformRegistryBindingInput { + clientMutationId?: string; + id: string; +} +export interface DeletePlatformRegistryGrantInput { + clientMutationId?: string; + id: string; +} +export interface DeletePlatformRegistryInput { + clientMutationId?: string; + id: string; +} +export interface DeletePlatformRepositoryEventInput { + clientMutationId?: string; + id: string; +} +export interface DeletePlatformRepositoryInput { + clientMutationId?: string; + id: string; +} +export interface DeletePlatformRepositoryRequiredCheckInput { + clientMutationId?: string; + id: string; +} +export interface DeletePlatformRepositoryWorkflowInput { + clientMutationId?: string; + id: string; +} +export interface DeletePlatformResourceDefinitionInput { + clientMutationId?: string; + id: string; +} +export interface DeletePlatformResourceEventInput { + clientMutationId?: string; + /** Event timestamp (partition key) */ + createdAt: string; + /** Unique event identifier */ + id: string; +} +export interface DeletePlatformResourceInput { + clientMutationId?: string; + id: string; +} +export interface DeletePlatformResourceInstallationInput { + clientMutationId?: string; + id: string; +} +export interface DeletePlatformResourceStatusCheckInput { + clientMutationId?: string; + /** Unique status check identifier */ + id: string; +} +export interface DeletePlatformResourceUsageLogInput { + clientMutationId?: string; + /** Unique sample identifier */ + id: string; + /** Sample timestamp (partition key) — end of the measured interval */ + sampledAt: string; +} +export interface DeletePlatformResourceUsageSummaryInput { + clientMutationId?: string; + /** Day this summary covers (partition key) */ + date: string; + /** Unique usage summary identifier */ + id: string; +} +export interface DeletePlatformWebhookEndpointInput { + clientMutationId?: string; + id: string; +} +export interface DeletePlatformWebhookEventInput { + clientMutationId?: string; + id: string; +} +export interface DeleteProposalCommentInput { + clientMutationId?: string; + id: string; +} +export interface DeleteProposalFileViewInput { + clientMutationId?: string; + id: string; +} +export interface DeleteProposalInput { clientMutationId?: string; - /** The `InfraObject` to be created by this mutation. */ - infraObject: InfraObjectInput; + id: string; } -export interface CreateInfraRefInput { +export interface DeleteProposalReactionInput { clientMutationId?: string; - /** The `InfraRef` to be created by this mutation. */ - infraRef: InfraRefInput; + id: string; } -export interface CreateInfraStoreInput { +export interface DeleteProposalReviewInput { clientMutationId?: string; - /** The `InfraStore` to be created by this mutation. */ - infraStore: InfraStoreInput; + id: string; } -export interface CreateIntegrationProviderInput { +export interface DeleteProposalsChunkInput { clientMutationId?: string; - /** The `IntegrationProvider` to be created by this mutation. */ - integrationProvider: IntegrationProviderInput; + id: string; } -export interface CreateNamespaceEventInput { +export interface DeleteRegistryBindingInput { clientMutationId?: string; - /** The `NamespaceEvent` to be created by this mutation. */ - namespaceEvent: NamespaceEventInput; + id: string; } -export interface CreateNamespaceInput { +export interface DeleteRegistryGrantInput { clientMutationId?: string; - /** The `Namespace` to be created by this mutation. */ - namespace: NamespaceInput; + id: string; } -export interface CreatePlatformFunctionApiBindingInput { +export interface DeleteRegistryInput { clientMutationId?: string; - /** The `PlatformFunctionApiBinding` to be created by this mutation. */ - platformFunctionApiBinding: PlatformFunctionApiBindingInput; + id: string; } -export interface CreatePlatformFunctionCapabilityBindingInput { +export interface DeleteRepositoryEventInput { clientMutationId?: string; - /** The `PlatformFunctionCapabilityBinding` to be created by this mutation. */ - platformFunctionCapabilityBinding: PlatformFunctionCapabilityBindingInput; + id: string; } -export interface CreatePlatformFunctionDefinitionInput { +export interface DeleteRepositoryInput { clientMutationId?: string; - /** The `PlatformFunctionDefinition` to be created by this mutation. */ - platformFunctionDefinition: PlatformFunctionDefinitionInput; + id: string; } -export interface CreatePlatformFunctionDeploymentEventInput { +export interface DeleteRepositoryRequiredCheckInput { clientMutationId?: string; - /** The `PlatformFunctionDeploymentEvent` to be created by this mutation. */ - platformFunctionDeploymentEvent: PlatformFunctionDeploymentEventInput; + id: string; } -export interface CreatePlatformFunctionDeploymentInput { +export interface DeleteRepositoryWorkflowInput { clientMutationId?: string; - /** The `PlatformFunctionDeployment` to be created by this mutation. */ - platformFunctionDeployment: PlatformFunctionDeploymentInput; + id: string; } -export interface CreatePlatformFunctionExecutionLogInput { +export interface DeleteResourceDefinitionInput { clientMutationId?: string; - /** The `PlatformFunctionExecutionLog` to be created by this mutation. */ - platformFunctionExecutionLog: PlatformFunctionExecutionLogInput; + id: string; } -export interface CreatePlatformFunctionInvocationAttemptInput { +export interface DeleteResourceEventInput { clientMutationId?: string; - /** The `PlatformFunctionInvocationAttempt` to be created by this mutation. */ - platformFunctionInvocationAttempt: PlatformFunctionInvocationAttemptInput; + /** Event timestamp (partition key) */ + createdAt: string; + /** Unique event identifier */ + id: string; } -export interface CreatePlatformFunctionInvocationInput { +export interface DeleteResourceInput { clientMutationId?: string; - /** The `PlatformFunctionInvocation` to be created by this mutation. */ - platformFunctionInvocation: PlatformFunctionInvocationInput; + id: string; } -export interface CreatePlatformInfraCommitInput { +export interface DeleteResourceInstallationInput { clientMutationId?: string; - /** The `PlatformInfraCommit` to be created by this mutation. */ - platformInfraCommit: PlatformInfraCommitInput; + id: string; } -export interface CreatePlatformInfraObjectInput { +export interface DeleteResourceStatusCheckInput { clientMutationId?: string; - /** The `PlatformInfraObject` to be created by this mutation. */ - platformInfraObject: PlatformInfraObjectInput; + /** Unique status check identifier */ + id: string; } -export interface CreatePlatformInfraRefInput { +export interface DeleteResourceUsageLogInput { clientMutationId?: string; - /** The `PlatformInfraRef` to be created by this mutation. */ - platformInfraRef: PlatformInfraRefInput; + /** Unique sample identifier */ + id: string; + /** Sample timestamp (partition key) — end of the measured interval */ + sampledAt: string; } -export interface CreatePlatformInfraStoreInput { +export interface DeleteResourceUsageSummaryInput { clientMutationId?: string; - /** The `PlatformInfraStore` to be created by this mutation. */ - platformInfraStore: PlatformInfraStoreInput; + /** Day this summary covers (partition key) */ + date: string; + /** Unique usage summary identifier */ + id: string; } -export interface CreatePlatformNamespaceEventInput { +export interface DeleteWebhookEndpointInput { clientMutationId?: string; - /** The `PlatformNamespaceEvent` to be created by this mutation. */ - platformNamespaceEvent: PlatformNamespaceEventInput; + id: string; } -export interface CreatePlatformNamespaceInput { +export interface DeleteWebhookEventInput { clientMutationId?: string; - /** The `PlatformNamespace` to be created by this mutation. */ - platformNamespace: PlatformNamespaceInput; + id: string; +} +/** A filter to be used against `FunctionApiBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface FunctionApiBindingFilter { + /** Filter by the object’s `alias` field. */ + alias?: StringFilter; + /** Checks for all expressions in this list. */ + and?: FunctionApiBindingFilter[]; + /** 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 `functionDefinition` relation. */ + functionDefinition?: FunctionDefinitionFilter; + /** Filter by the object’s `functionDefinitionId` field. */ + functionDefinitionId?: UUIDFilter; + /** Filter by the object’s `functionInvocationsByApiBindingId` relation. */ + functionInvocationsByApiBindingId?: FunctionApiBindingToManyFunctionInvocationFilter; + /** `functionInvocationsByApiBindingId` exist. */ + functionInvocationsByApiBindingIdExist?: boolean; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: FunctionApiBindingFilter; + /** Checks for any expressions in this list. */ + or?: FunctionApiBindingFilter[]; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} +/** An input for mutations affecting `FunctionApiBinding` */ +export interface FunctionApiBindingInput { + /** Binding alias (e.g. default, staging, production) */ + alias?: string; + /** API endpoint this function is bound to */ + apiId: string; + /** Per-binding configuration (overrides, routing rules, etc.) */ + config?: unknown; + createdAt?: string; + /** Function definition this binding belongs to */ + functionDefinitionId: string; + id?: string; + updatedAt?: string; +} +/** Represents an update to a `FunctionApiBinding`. Fields that are set will be updated. */ +export interface FunctionApiBindingPatch { + /** Binding alias (e.g. default, staging, production) */ + alias?: string; + /** API endpoint this function is bound to */ + apiId?: string; + /** Per-binding configuration (overrides, routing rules, etc.) */ + config?: unknown; + createdAt?: string; + /** Function definition this binding belongs to */ + functionDefinitionId?: string; + id?: string; + updatedAt?: string; +} +/** A filter to be used against many `FunctionInvocation` object types. All fields are combined with a logical ‘and.’ */ +export interface FunctionApiBindingToManyFunctionInvocationFilter { + /** Filters to entities where every related entity matches. */ + every?: FunctionInvocationFilter; + /** Filters to entities where no related entity matches. */ + none?: FunctionInvocationFilter; + /** Filters to entities where at least one related entity matches. */ + some?: FunctionInvocationFilter; +} +/** A filter to be used against `FunctionCapabilityBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface FunctionCapabilityBindingFilter { + /** Checks for all expressions in this list. */ + and?: FunctionCapabilityBindingFilter[]; + /** 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 `function` relation. */ + function?: FunctionDefinitionFilter; + /** A related `function` exists. */ + functionExists?: boolean; + /** Filter by the object’s `functionId` field. */ + functionId?: UUIDFilter; + /** Filter by the object’s `graphId` field. */ + graphId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `key` field. */ + key?: StringFilter; + /** Filter by the object’s `lifecycle` field. */ + lifecycle?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Negates the expression. */ + not?: FunctionCapabilityBindingFilter; + /** Checks for any expressions in this list. */ + or?: FunctionCapabilityBindingFilter[]; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} +/** An input for mutations affecting `FunctionCapabilityBinding` */ +export interface FunctionCapabilityBindingInput { + /** Bucket this capability targets (exactly one typed target is set) */ + bucketId?: string; + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Function definition holding this capability (exactly one of function_id / graph_id is set) */ + functionId?: string; + /** Flow graph holding this capability (exactly one of function_id / graph_id is set) */ + graphId?: string; + id?: string; + /** Runtime handle the holder addresses this capability by (e.g. default, scratch) */ + key?: string; + /** Lifecycle the capability applies to: deployment (build/deploy time), execution (per invocation), root_execution (root of a graph execution tree) */ + lifecycle: string; + /** Per-binding annotations (no runtime semantics) */ + metadata?: unknown; + updatedAt?: string; +} +/** Represents an update to a `FunctionCapabilityBinding`. Fields that are set will be updated. */ +export interface FunctionCapabilityBindingPatch { + /** Bucket this capability targets (exactly one typed target is set) */ + bucketId?: string; + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string; + /** Function definition holding this capability (exactly one of function_id / graph_id is set) */ + functionId?: string; + /** Flow graph holding this capability (exactly one of function_id / graph_id is set) */ + graphId?: string; + id?: string; + /** Runtime handle the holder addresses this capability by (e.g. default, scratch) */ + key?: string; + /** Lifecycle the capability applies to: deployment (build/deploy time), execution (per invocation), root_execution (root of a graph execution tree) */ + lifecycle?: string; + /** Per-binding annotations (no runtime semantics) */ + metadata?: unknown; + updatedAt?: string; +} +/** A filter to be used against `FunctionDefinition` object types. All fields are combined with a logical ‘and.’ */ +export interface FunctionDefinitionFilter { + /** Filter by the object’s `accessChannels` field. */ + accessChannels?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: FunctionDefinitionFilter[]; + /** Filter by the object’s `anonymousCallable` field. */ + anonymousCallable?: BooleanFilter; + /** Filter by the object’s `category` field. */ + category?: StringFilter; + /** Filter by the object’s `concurrency` field. */ + concurrency?: IntFilter; + /** Filter by the object’s `cpuLimitMillicores` field. */ + cpuLimitMillicores?: BigIntFilter; + /** Filter by the object’s `cpuRequestMillicores` field. */ + cpuRequestMillicores?: BigIntFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `fnCategory` field. */ + fnCategory?: StringFilter; + /** Filter by the object’s `functionApiBindings` relation. */ + functionApiBindings?: FunctionDefinitionToManyFunctionApiBindingFilter; + /** `functionApiBindings` exist. */ + functionApiBindingsExist?: boolean; + /** Filter by the object’s `functionCapabilityBindingsByFunctionId` relation. */ + functionCapabilityBindingsByFunctionId?: FunctionDefinitionToManyFunctionCapabilityBindingFilter; + /** `functionCapabilityBindingsByFunctionId` exist. */ + functionCapabilityBindingsByFunctionIdExist?: boolean; + /** Filter by the object’s `functionColumns` field. */ + functionColumns?: JSONFilter; + /** Filter by the object’s `graph` relation. */ + graph?: DatabaseFunctionGraphFilter; + /** A related `graph` exists. */ + graphExists?: boolean; + /** Filter by the object’s `graphId` field. */ + graphId?: UUIDFilter; + /** Filter by the object’s `icon` field. */ + icon?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `image` field. */ + image?: StringFilter; + /** Filter by the object’s `inputs` field. */ + inputs?: JSONFilter; + /** Filter by the object’s `integrations` field. */ + integrations?: StringListFilter; + /** Filter by the object’s `isPublished` field. */ + isPublished?: BooleanFilter; + /** Filter by the object’s `maxAttempts` field. */ + maxAttempts?: IntFilter; + /** Filter by the object’s `memoryLimitBytes` field. */ + memoryLimitBytes?: BigIntFilter; + /** Filter by the object’s `memoryRequestBytes` field. */ + memoryRequestBytes?: BigIntFilter; + /** Filter by the object’s `moduleTable` field. */ + moduleTable?: StringFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: FunctionDefinitionFilter; + /** Checks for any expressions in this list. */ + or?: FunctionDefinitionFilter[]; + /** Filter by the object’s `outputs` field. */ + outputs?: JSONFilter; + /** Filter by the object’s `payloadArgs` field. */ + payloadArgs?: JSONFilter; + /** Filter by the object’s `priority` field. */ + priority?: IntFilter; + /** Filter by the object’s `props` field. */ + props?: JSONFilter; + /** Filter by the object’s `protected` field. */ + protected?: BooleanFilter; + /** Filter by the object’s `publishedAt` field. */ + publishedAt?: DatetimeFilter; + /** Filter by the object’s `queueName` field. */ + queueName?: StringFilter; + /** Filter by the object’s `requiredBuckets` field. */ + requiredBuckets?: StringListFilter; + /** Filter by the object’s `requiredCapabilities` field. */ + requiredCapabilities?: JSONFilter; + /** 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. */ + runtime?: StringFilter; + /** Filter by the object’s `scaleMax` field. */ + scaleMax?: IntFilter; + /** Filter by the object’s `scaleMin` field. */ + scaleMin?: IntFilter; + /** Filter by the object’s `targetFunction` field. */ + targetFunction?: StringFilter; + /** Filter by the object’s `targetSchema` field. */ + targetSchema?: StringFilter; + /** Filter by the object’s `taskIdentifier` field. */ + taskIdentifier?: StringFilter; + /** Filter by the object’s `timeoutSeconds` field. */ + timeoutSeconds?: IntFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** Filter by the object’s `volatile` field. */ + volatile?: BooleanFilter; + /** Filter by the object’s `webhookEndpoints` relation. */ + webhookEndpoints?: FunctionDefinitionToManyWebhookEndpointFilter; + /** `webhookEndpoints` exist. */ + webhookEndpointsExist?: boolean; } -export interface CreatePlatformResourceDefinitionInput { - clientMutationId?: string; - /** The `PlatformResourceDefinition` to be created by this mutation. */ - platformResourceDefinition: PlatformResourceDefinitionInput; +/** An input for mutations affecting `FunctionDefinition` */ +export interface FunctionDefinitionInput { + /** 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 this function consents to run for a caller with no identity (a sign-in surface, a public page). Anonymous execution additionally requires the matched route to declare anonymous access. Default false = an identity is required. */ + anonymousCallable?: boolean; + /** Function task category (e.g. email, embed, chunk, custom) */ + category: string; + /** Knative containerConcurrency — max concurrent requests per pod instance */ + concurrency?: number; + createdAt?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Human-readable description of what this function does */ + description?: string; + /** Palette grouping category (e.g. email, data, ai, custom) */ + fnCategory?: string; + /** Ordered array of module_table column names holding the generated function names to invoke when runtime=sql (module mode). NULL for direct mode and other runtimes. */ + functionColumns?: unknown; + /** Existing flow graph invoked when runtime=graph. Required for graph runtime and forbidden for all other runtimes. */ + graphId?: string; + /** Icon identifier for UI palette rendering (e.g. mail, database, code) */ + icon?: string; + id?: string; + /** Docker image reference (e.g. ghcr.io/constructive-io/email-send-fn:latest). Required when runtime=http or runtime=resource. NULL for inline functions. */ + image?: string; + /** Data input ports: [{name, type, description?, optional?, multi?, schema?}] */ + inputs?: unknown; + /** Provider slugs (e.g. mailgun, postgres) associated with this function. The UI uses this to auto-fill required_secrets and required_configs from integration_providers. */ + integrations?: string[]; + /** Whether this function definition is published to the public catalog for direct authenticated invocation. Default false = internal-only via add_job() */ + isPublished?: boolean; + /** Maximum retry attempts for the underlying job */ + maxAttempts?: number; + /** metaschema_modules_public table whose per-database row carries the generated function names when runtime=sql (module mode). NULL for direct mode and other runtimes. */ + moduleTable?: string; + /** Function name within category (e.g. send_verification_link, process_file_embedding) */ + name: string; + /** Data output ports: [{name, type, description?, optional?, multi?, schema?}] */ + outputs?: unknown; + /** Ordered bind-parameter mapping for runtime=sql: [{name, type}]. payload[name] is bound as $n::type. */ + payloadArgs?: unknown; + /** Job priority (lower = higher priority) */ + priority?: number; + /** Configuration properties: [{name, type, default?, description?, required?, schema?}] */ + props?: unknown; + /** Protected platform definition: narrower scopes cannot register the same task_identifier */ + protected?: boolean; + /** Timestamp when this function was published. NULL means immediately published when is_published is true; future timestamps delay public visibility */ + publishedAt?: string; + /** Job queue name for serialization (e.g. email, ai, default) */ + queueName?: string; + /** 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[]; + /** Capability providers the handler declared in handler.json requires.capabilities, as an array of {name, version, declaration}. NULL when the handler declares none, which mounts the full platform set. */ + requiredCapabilities?: unknown; + /** 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}} */ + resources?: unknown; + /** Execution mode: http (Knative Service dispatch), inline (in-process in compute worker), handler (registered infrastructure handler), sql (generic SQL dispatch via a trusted direct target or module-resolved function names), resource (Kubernetes Job via the resource module with node-gateway callbacks), graph (existing flow graph referenced by graph_id), or human (parks the node awaiting a person's answer through approve_node) */ + runtime?: string; + /** Maximum pod count for Knative autoscaling (maxScale) */ + scaleMax?: number; + /** Minimum pod count for Knative autoscaling (minScale) */ + scaleMin?: number; + /** Name of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. */ + targetFunction?: string; + /** Schema of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. */ + targetSchema?: string; + /** Knative request timeout in seconds */ + timeoutSeconds?: number; + updatedAt?: string; + updatedByPrincipal?: string; + /** Whether this function has side effects and cannot be cached or memoized */ + volatile?: boolean; } -export interface CreatePlatformResourceEventInput { - clientMutationId?: string; - /** The `PlatformResourceEvent` to be created by this mutation. */ - platformResourceEvent: PlatformResourceEventInput; +/** 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, page, webhook). Internal worker dispatch is implicit and never listed. Default [] = worker only. */ + accessChannels?: string[]; + /** Whether this function consents to run for a caller with no identity (a sign-in surface, a public page). Anonymous execution additionally requires the matched route to declare anonymous access. Default false = an identity is required. */ + anonymousCallable?: boolean; + /** Function task category (e.g. email, embed, chunk, custom) */ + category?: string; + /** Knative containerConcurrency — max concurrent requests per pod instance */ + concurrency?: number; + createdAt?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string; + /** Human-readable description of what this function does */ + description?: string; + /** Palette grouping category (e.g. email, data, ai, custom) */ + fnCategory?: string; + /** Ordered array of module_table column names holding the generated function names to invoke when runtime=sql (module mode). NULL for direct mode and other runtimes. */ + functionColumns?: unknown; + /** Existing flow graph invoked when runtime=graph. Required for graph runtime and forbidden for all other runtimes. */ + graphId?: string; + /** Icon identifier for UI palette rendering (e.g. mail, database, code) */ + icon?: string; + id?: string; + /** Docker image reference (e.g. ghcr.io/constructive-io/email-send-fn:latest). Required when runtime=http or runtime=resource. NULL for inline functions. */ + image?: string; + /** Data input ports: [{name, type, description?, optional?, multi?, schema?}] */ + inputs?: unknown; + /** Provider slugs (e.g. mailgun, postgres) associated with this function. The UI uses this to auto-fill required_secrets and required_configs from integration_providers. */ + integrations?: string[]; + /** Whether this function definition is published to the public catalog for direct authenticated invocation. Default false = internal-only via add_job() */ + isPublished?: boolean; + /** Maximum retry attempts for the underlying job */ + maxAttempts?: number; + /** metaschema_modules_public table whose per-database row carries the generated function names when runtime=sql (module mode). NULL for direct mode and other runtimes. */ + moduleTable?: string; + /** Function name within category (e.g. send_verification_link, process_file_embedding) */ + name?: string; + /** Data output ports: [{name, type, description?, optional?, multi?, schema?}] */ + outputs?: unknown; + /** Ordered bind-parameter mapping for runtime=sql: [{name, type}]. payload[name] is bound as $n::type. */ + payloadArgs?: unknown; + /** Job priority (lower = higher priority) */ + priority?: number; + /** Configuration properties: [{name, type, default?, description?, required?, schema?}] */ + props?: unknown; + /** Protected platform definition: narrower scopes cannot register the same task_identifier */ + protected?: boolean; + /** Timestamp when this function was published. NULL means immediately published when is_published is true; future timestamps delay public visibility */ + publishedAt?: string; + /** Job queue name for serialization (e.g. email, ai, default) */ + queueName?: string; + /** 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[]; + /** Capability providers the handler declared in handler.json requires.capabilities, as an array of {name, version, declaration}. NULL when the handler declares none, which mounts the full platform set. */ + requiredCapabilities?: unknown; + /** 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}} */ + resources?: unknown; + /** Execution mode: http (Knative Service dispatch), inline (in-process in compute worker), handler (registered infrastructure handler), sql (generic SQL dispatch via a trusted direct target or module-resolved function names), resource (Kubernetes Job via the resource module with node-gateway callbacks), graph (existing flow graph referenced by graph_id), or human (parks the node awaiting a person's answer through approve_node) */ + runtime?: string; + /** Maximum pod count for Knative autoscaling (maxScale) */ + scaleMax?: number; + /** Minimum pod count for Knative autoscaling (minScale) */ + scaleMin?: number; + /** Name of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. */ + targetFunction?: string; + /** Schema of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. */ + targetSchema?: string; + /** Knative request timeout in seconds */ + timeoutSeconds?: number; + updatedAt?: string; + updatedByPrincipal?: string; + /** Whether this function has side effects and cannot be cached or memoized */ + volatile?: boolean; } -export interface CreatePlatformResourceInput { - clientMutationId?: string; - /** The `PlatformResource` to be created by this mutation. */ - platformResource: PlatformResourceInput; +/** A filter to be used against many `FunctionApiBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface FunctionDefinitionToManyFunctionApiBindingFilter { + /** Filters to entities where every related entity matches. */ + every?: FunctionApiBindingFilter; + /** Filters to entities where no related entity matches. */ + none?: FunctionApiBindingFilter; + /** Filters to entities where at least one related entity matches. */ + some?: FunctionApiBindingFilter; } -export interface CreatePlatformResourceInstallationInput { - clientMutationId?: string; - /** The `PlatformResourceInstallation` to be created by this mutation. */ - platformResourceInstallation: PlatformResourceInstallationInput; +/** A filter to be used against many `FunctionCapabilityBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface FunctionDefinitionToManyFunctionCapabilityBindingFilter { + /** Filters to entities where every related entity matches. */ + every?: FunctionCapabilityBindingFilter; + /** Filters to entities where no related entity matches. */ + none?: FunctionCapabilityBindingFilter; + /** Filters to entities where at least one related entity matches. */ + some?: FunctionCapabilityBindingFilter; } -export interface CreatePlatformResourceStatusCheckInput { - clientMutationId?: string; - /** The `PlatformResourceStatusCheck` to be created by this mutation. */ - platformResourceStatusCheck: PlatformResourceStatusCheckInput; +/** A filter to be used against many `WebhookEndpoint` object types. All fields are combined with a logical ‘and.’ */ +export interface FunctionDefinitionToManyWebhookEndpointFilter { + /** Filters to entities where every related entity matches. */ + every?: WebhookEndpointFilter; + /** Filters to entities where no related entity matches. */ + none?: WebhookEndpointFilter; + /** Filters to entities where at least one related entity matches. */ + some?: WebhookEndpointFilter; } -export interface CreatePlatformResourceUsageLogInput { - clientMutationId?: string; - /** The `PlatformResourceUsageLog` to be created by this mutation. */ - platformResourceUsageLog: PlatformResourceUsageLogInput; +/** A filter to be used against `FunctionDeploymentEvent` object types. All fields are combined with a logical ‘and.’ */ +export interface FunctionDeploymentEventFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: FunctionDeploymentEventFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `deploymentId` field. */ + deploymentId?: UUIDFilter; + /** Filter by the object’s `eventType` field. */ + eventType?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `message` field. */ + message?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Negates the expression. */ + not?: FunctionDeploymentEventFilter; + /** Checks for any expressions in this list. */ + or?: FunctionDeploymentEventFilter[]; } -export interface CreatePlatformResourceUsageSummaryInput { - clientMutationId?: string; - /** The `PlatformResourceUsageSummary` to be created by this mutation. */ - platformResourceUsageSummary: PlatformResourceUsageSummaryInput; +/** An input for mutations affecting `FunctionDeploymentEvent` */ +export interface FunctionDeploymentEventInput { + /** User who triggered this event; NULL only when no human actor was proven */ + actorId?: string; + /** Event timestamp (partition key) */ + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Deployment this event belongs to */ + deploymentId: string; + /** Event type: provisioned, scaled, failed, deactivated, redeployed, health_check */ + eventType: string; + /** Unique event identifier */ + id?: string; + /** Human-readable description of the event */ + message?: string; + /** Structured context (old/new values, error details, etc.) */ + metadata?: unknown; } -export interface CreatePlatformWebhookEndpointInput { - clientMutationId?: string; - /** The `PlatformWebhookEndpoint` to be created by this mutation. */ - platformWebhookEndpoint: PlatformWebhookEndpointInput; +/** Represents an update to a `FunctionDeploymentEvent`. Fields that are set will be updated. */ +export interface FunctionDeploymentEventPatch { + /** User who triggered this event; NULL only when no human actor was proven */ + actorId?: string; + /** Event timestamp (partition key) */ + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string; + /** Deployment this event belongs to */ + deploymentId?: string; + /** Event type: provisioned, scaled, failed, deactivated, redeployed, health_check */ + eventType?: string; + /** Unique event identifier */ + id?: string; + /** Human-readable description of the event */ + message?: string; + /** Structured context (old/new values, error details, etc.) */ + metadata?: unknown; } -export interface CreatePlatformWebhookEventInput { - clientMutationId?: string; - /** The `PlatformWebhookEvent` to be created by this mutation. */ - platformWebhookEvent: PlatformWebhookEventInput; +/** A filter to be used against `FunctionDeployment` object types. All fields are combined with a logical ‘and.’ */ +export interface FunctionDeploymentFilter { + /** Checks for all expressions in this list. */ + and?: FunctionDeploymentFilter[]; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Filter by the object’s `concurrency` field. */ + concurrency?: IntFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `errorCount` field. */ + errorCount?: IntFilter; + /** Filter by the object’s `handlerName` field. */ + handlerName?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `image` field. */ + image?: StringFilter; + /** Filter by the object’s `imageVersion` field. */ + imageVersion?: StringFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `lastErrorAt` field. */ + lastErrorAt?: DatetimeFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + 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. */ + revision?: IntFilter; + /** Filter by the object’s `scaleMax` field. */ + scaleMax?: IntFilter; + /** Filter by the object’s `scaleMin` field. */ + scaleMin?: IntFilter; + /** Filter by the object’s `serviceName` field. */ + serviceName?: StringFilter; + /** Filter by the object’s `serviceUrl` field. */ + serviceUrl?: StringFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `timeoutSeconds` field. */ + timeoutSeconds?: IntFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface CreateResourceDefinitionInput { - clientMutationId?: string; - /** The `ResourceDefinition` to be created by this mutation. */ - resourceDefinition: ResourceDefinitionInput; +/** An input for mutations affecting `FunctionDeployment` */ +export interface FunctionDeploymentInput { + /** Freeform metadata for tooling and operational notes */ + annotations?: unknown; + /** Max concurrent requests per pod (NULL = inherit from definition) */ + concurrency?: number; + createdAt?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Cumulative error count for this deployment */ + errorCount?: number; + /** Handler directory name (e.g. email, document) — used as FN_HANDLER_NAME in combined-image mode to select the entry point */ + handlerName?: string; + id?: string; + /** Logical image name — the handler identity and grouping key (e.g. fn-email). No registry host or tag; tag lives in image_version. */ + image: string; + /** Image tag/version for the handler container (e.g. latest, 2.6.4) */ + imageVersion?: string; + /** Key/value pairs for selecting and filtering deployments */ + labels?: unknown; + /** Most recent provisioning or runtime error message */ + lastError?: string; + /** Timestamp of the most recent error */ + 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) */ + revision?: number; + /** Maximum replica count (NULL = inherit from definition or Knative default) */ + scaleMax?: number; + /** Minimum replica count (NULL = inherit from definition or Knative default) */ + scaleMin?: number; + /** Knative service name — a randomly minted cute name (unique_names.generate_name() + random hex suffix) assigned by the service_url trigger; unique per namespace, not derived from the image */ + serviceName?: string; + /** Knative service URL (http://{service-name}.{namespace}.svc.cluster.local) — populated after provisioning */ + serviceUrl?: string; + /** Deployment lifecycle status: pending, provisioning, active, failed, scaled_to_zero, deactivated */ + status?: string; + /** Request timeout override in seconds (NULL = inherit from definition) */ + timeoutSeconds?: number; + updatedAt?: string; + updatedByPrincipal?: string; } -export interface CreateResourceEventInput { - clientMutationId?: string; - /** The `ResourceEvent` to be created by this mutation. */ - resourceEvent: ResourceEventInput; +/** Represents an update to a `FunctionDeployment`. Fields that are set will be updated. */ +export interface FunctionDeploymentPatch { + /** Freeform metadata for tooling and operational notes */ + annotations?: unknown; + /** Max concurrent requests per pod (NULL = inherit from definition) */ + concurrency?: number; + createdAt?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string; + /** Cumulative error count for this deployment */ + errorCount?: number; + /** Handler directory name (e.g. email, document) — used as FN_HANDLER_NAME in combined-image mode to select the entry point */ + handlerName?: string; + id?: string; + /** Logical image name — the handler identity and grouping key (e.g. fn-email). No registry host or tag; tag lives in image_version. */ + image?: string; + /** Image tag/version for the handler container (e.g. latest, 2.6.4) */ + imageVersion?: string; + /** Key/value pairs for selecting and filtering deployments */ + labels?: unknown; + /** Most recent provisioning or runtime error message */ + lastError?: string; + /** Timestamp of the most recent error */ + 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) */ + revision?: number; + /** Maximum replica count (NULL = inherit from definition or Knative default) */ + scaleMax?: number; + /** Minimum replica count (NULL = inherit from definition or Knative default) */ + scaleMin?: number; + /** Knative service name — a randomly minted cute name (unique_names.generate_name() + random hex suffix) assigned by the service_url trigger; unique per namespace, not derived from the image */ + serviceName?: string; + /** Knative service URL (http://{service-name}.{namespace}.svc.cluster.local) — populated after provisioning */ + serviceUrl?: string; + /** Deployment lifecycle status: pending, provisioning, active, failed, scaled_to_zero, deactivated */ + status?: string; + /** Request timeout override in seconds (NULL = inherit from definition) */ + timeoutSeconds?: number; + updatedAt?: string; + updatedByPrincipal?: string; } -export interface CreateResourceInput { - clientMutationId?: string; - /** The `Resource` to be created by this mutation. */ - resource: ResourceInput; +/** A filter to be used against `FunctionExecutionLog` object types. All fields are combined with a logical ‘and.’ */ +export interface FunctionExecutionLogFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: FunctionExecutionLogFilter[]; + /** 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 `invocationId` field. */ + invocationId?: UUIDFilter; + /** Filter by the object’s `logLevel` field. */ + logLevel?: StringFilter; + /** Filter by the object’s `message` field. */ + message?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Negates the expression. */ + not?: FunctionExecutionLogFilter; + /** Checks for any expressions in this list. */ + or?: FunctionExecutionLogFilter[]; + /** Filter by the object’s `taskIdentifier` field. */ + taskIdentifier?: StringFilter; } -export interface CreateResourceInstallationInput { - clientMutationId?: string; - /** The `ResourceInstallation` to be created by this mutation. */ - resourceInstallation: ResourceInstallationInput; +/** An input for mutations affecting `FunctionExecutionLog` */ +export interface FunctionExecutionLogInput { + /** User who triggered the execution; NULL only when no human actor was proven */ + actorId?: string; + /** Log entry timestamp (partition key) */ + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Unique log entry identifier */ + id?: string; + /** Invocation this log entry belongs to (NULL for standalone job logs) */ + invocationId?: string; + /** Log severity: debug, info, warn, error */ + logLevel?: string; + /** Log message text */ + message: string; + /** Structured context (labels, trace data, extra fields) */ + metadata?: unknown; + /** Function routing key (NULL for generic job logs) */ + taskIdentifier?: string; } -export interface CreateResourceStatusCheckInput { - clientMutationId?: string; - /** The `ResourceStatusCheck` to be created by this mutation. */ - resourceStatusCheck: ResourceStatusCheckInput; +/** Represents an update to a `FunctionExecutionLog`. Fields that are set will be updated. */ +export interface FunctionExecutionLogPatch { + /** User who triggered the execution; NULL only when no human actor was proven */ + actorId?: string; + /** Log entry timestamp (partition key) */ + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string; + /** Unique log entry identifier */ + id?: string; + /** Invocation this log entry belongs to (NULL for standalone job logs) */ + invocationId?: string; + /** Log severity: debug, info, warn, error */ + logLevel?: string; + /** Log message text */ + message?: string; + /** Structured context (labels, trace data, extra fields) */ + metadata?: unknown; + /** Function routing key (NULL for generic job logs) */ + taskIdentifier?: string; } -export interface CreateResourceUsageLogInput { - clientMutationId?: string; - /** The `ResourceUsageLog` to be created by this mutation. */ - resourceUsageLog: ResourceUsageLogInput; +/** A filter to be used against `FunctionGraphCommit` object types. All fields are combined with a logical ‘and.’ */ +export interface FunctionGraphCommitFilter { + /** Checks for all expressions in this list. */ + and?: FunctionGraphCommitFilter[]; + /** Filter by the object’s `authorId` field. */ + authorId?: UUIDFilter; + /** Filter by the object’s `committerId` field. */ + committerId?: UUIDFilter; + /** Filter by the object’s `date` field. */ + date?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `message` field. */ + message?: StringFilter; + /** Negates the expression. */ + not?: FunctionGraphCommitFilter; + /** Checks for any expressions in this list. */ + or?: FunctionGraphCommitFilter[]; + /** Filter by the object’s `parentIds` field. */ + parentIds?: UUIDListFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; + /** Filter by the object’s `storeId` field. */ + storeId?: UUIDFilter; + /** Filter by the object’s `treeId` field. */ + treeId?: UUIDFilter; } -export interface CreateResourceUsageSummaryInput { - clientMutationId?: string; - /** The `ResourceUsageSummary` to be created by this mutation. */ - resourceUsageSummary: ResourceUsageSummaryInput; +/** An input for mutations affecting `FunctionGraphCommit` */ +export interface FunctionGraphCommitInput { + /** User who authored the changes */ + authorId?: string; + /** User who committed (may differ from author) */ + committerId?: string; + /** Commit timestamp */ + date?: string; + /** Unique commit identifier */ + id?: string; + /** Optional commit message */ + message?: string; + /** Parent commit IDs (supports merge commits) */ + parentIds?: string[]; + /** Opaque store partition key for the global tier */ + scopeId: string; + /** Store this commit belongs to */ + storeId: string; + /** Root object ID of the tree snapshot at this commit */ + treeId?: string; } -export interface CreateWebhookEndpointInput { - clientMutationId?: string; - /** The `WebhookEndpoint` to be created by this mutation. */ - webhookEndpoint: WebhookEndpointInput; +/** Represents an update to a `FunctionGraphCommit`. Fields that are set will be updated. */ +export interface FunctionGraphCommitPatch { + /** User who authored the changes */ + authorId?: string; + /** User who committed (may differ from author) */ + committerId?: string; + /** Commit timestamp */ + date?: string; + /** Unique commit identifier */ + id?: string; + /** Optional commit message */ + message?: string; + /** Parent commit IDs (supports merge commits) */ + parentIds?: string[]; + /** Opaque store partition key for the global tier */ + scopeId?: string; + /** Store this commit belongs to */ + storeId?: string; + /** Root object ID of the tree snapshot at this commit */ + treeId?: string; } -export interface CreateWebhookEventInput { - clientMutationId?: string; - /** The `WebhookEvent` to be created by this mutation. */ - webhookEvent: WebhookEventInput; +/** A filter to be used against `FunctionGraphExecution` object types. All fields are combined with a logical ‘and.’ */ +export interface FunctionGraphExecutionFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: FunctionGraphExecutionFilter[]; + /** Filter by the object’s `completedAt` field. */ + completedAt?: DatetimeFilter; + /** Filter by the object’s `currentWave` field. */ + currentWave?: IntFilter; + /** Filter by the object’s `definitionsCommitId` field. */ + definitionsCommitId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `entityType` field. */ + entityType?: StringFilter; + /** Filter by the object’s `errorCode` field. */ + errorCode?: StringFilter; + /** Filter by the object’s `errorMessage` field. */ + errorMessage?: StringFilter; + /** Filter by the object’s `executionPlan` field. */ + executionPlan?: JSONFilter; + /** Filter by the object’s `graph` relation. */ + graph?: FunctionGraphFilter; + /** Filter by the object’s `graphId` field. */ + graphId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `inputPayload` field. */ + inputPayload?: JSONFilter; + /** Filter by the object’s `invocationCreatedAt` field. */ + invocationCreatedAt?: DatetimeFilter; + /** Filter by the object’s `invocationId` field. */ + invocationId?: UUIDFilter; + /** Filter by the object’s `lastProgressAt` field. */ + lastProgressAt?: DatetimeFilter; + /** Filter by the object’s `maxPendingJobs` field. */ + maxPendingJobs?: IntFilter; + /** Filter by the object’s `maxTicks` field. */ + maxTicks?: IntFilter; + /** Filter by the object’s `nodeOutputs` field. */ + nodeOutputs?: JSONFilter; + /** Negates the expression. */ + not?: FunctionGraphExecutionFilter; + /** Checks for any expressions in this list. */ + or?: FunctionGraphExecutionFilter[]; + /** Filter by the object’s `organizationId` field. */ + organizationId?: UUIDFilter; + /** Filter by the object’s `outputNames` field. */ + outputNames?: StringListFilter; + /** Filter by the object’s `outputNode` field. */ + outputNode?: StringFilter; + /** Filter by the object’s `outputPayload` field. */ + outputPayload?: JSONFilter; + /** Filter by the object’s `outputPort` field. */ + outputPort?: StringFilter; + /** Filter by the object’s `parentExecutionId` field. */ + parentExecutionId?: UUIDFilter; + /** Filter by the object’s `parentInvocationId` field. */ + parentInvocationId?: UUIDFilter; + /** Filter by the object’s `parentNodeName` field. */ + parentNodeName?: StringFilter; + /** Filter by the object’s `principalId` field. */ + principalId?: UUIDFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; + /** Filter by the object’s `startedAt` field. */ + startedAt?: DatetimeFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `tickCount` field. */ + tickCount?: IntFilter; + /** Filter by the object’s `timeoutAt` field. */ + timeoutAt?: DatetimeFilter; +} +/** An input for mutations affecting `FunctionGraphExecution` */ +export interface FunctionGraphExecutionInput { + /** User actor propagated to asynchronous graph jobs */ + actorId?: string; + /** Execution completion timestamp */ + completedAt?: string; + /** Index into execution_plan — tick only processes this wave */ + currentWave?: number; + /** Pinned definitions store commit for deterministic evaluation */ + definitionsCommitId?: string; + /** Entity context propagated to asynchronous graph jobs */ + entityId?: string; + /** Scope discriminator propagated to asynchronous graph jobs */ + entityType?: string; + /** Machine-readable error code when status = failed */ + errorCode?: string; + /** Human-readable error description when status = failed */ + errorMessage?: string; + /** Pre-computed topological sort as array of wave objects */ + executionPlan?: unknown; + /** FK to the graph definition being executed */ + graphId: string; + /** Unique execution identifier */ + id?: string; + /** Initial inputs provided at invocation time */ + inputPayload?: unknown; + /** Partition coordinate for the function invocation that launched this graph execution */ + invocationCreatedAt?: string; + /** Function invocation that launched this top-level graph execution */ + invocationId?: string; + /** Timestamp of the last real progress (node enqueue, node output, completion) — drives the activity-debounced watchdog */ + lastProgressAt?: string; + /** Maximum pending jobs before execution is failed (default 50) */ + maxPendingJobs?: number; + /** Maximum ticks before execution is failed (default 100) */ + maxTicks?: number; + /** Map of node_name → execution output id (content-addressed hash reference) */ + nodeOutputs?: unknown; + /** Organization context propagated to asynchronous graph jobs */ + organizationId?: string; + /** Selected graphOutput portName values; NULL or empty returns all graph outputs */ + outputNames?: string[]; + /** Target output boundary node name to resolve; NULL derives completion from the graph's graphOutput nodes */ + outputNode?: string; + /** Final result extracted from terminal output node */ + outputPayload?: unknown; + /** Target output port name (default: value) */ + outputPort?: string; + /** Parent execution when this is a sub-execution */ + parentExecutionId?: string; + /** Function invocation parent assigned to node invocations spawned by this execution */ + parentInvocationId?: string; + /** Node name in parent execution that spawned this sub-execution */ + parentNodeName?: string; + /** Principal identity propagated to asynchronous graph jobs */ + principalId?: string; + /** Opaque store partition key for the global tier */ + scopeId: string; + /** Execution start timestamp */ + startedAt?: string; + /** Lifecycle: pending → running → completed/failed/cancelled */ + status?: string; + /** Number of evaluate_step ticks executed */ + tickCount?: number; + /** Absolute deadline — execution fails if still running after this time */ + timeoutAt?: string; } -/** A filter to be used against `DbPreset` object types. All fields are combined with a logical ‘and.’ */ -export interface DbPresetFilter { - /** Filter by the object’s `active` field. */ - active?: BooleanFilter; +/** A filter to be used against `FunctionGraphExecutionNodeState` object types. All fields are combined with a logical ‘and.’ */ +export interface FunctionGraphExecutionNodeStateFilter { /** Checks for all expressions in this list. */ - and?: DbPresetFilter[]; - /** Filter by the object’s `commitId` field. */ - commitId?: UUIDFilter; + and?: FunctionGraphExecutionNodeStateFilter[]; + /** Filter by the object’s `callbackInputs` field. */ + callbackInputs?: JSONFilter; + /** Filter by the object’s `callbackMeta` field. */ + callbackMeta?: JSONFilter; + /** Filter by the object’s `callbackTokenHash` field. */ + callbackTokenHash?: StringFilter; + /** Filter by the object’s `completedAt` field. */ + completedAt?: DatetimeFilter; /** 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 `errorCode` field. */ + errorCode?: StringFilter; + /** Filter by the object’s `errorMessage` field. */ + errorMessage?: StringFilter; + /** Filter by the object’s `executionId` field. */ + executionId?: UUIDFilter; + /** Filter by the object’s `expiryDefaultOutput` field. */ + expiryDefaultOutput?: JSONFilter; + /** Filter by the object’s `expiryEscalatedAt` field. */ + expiryEscalatedAt?: DatetimeFilter; + /** Filter by the object’s `expiryPolicy` field. */ + expiryPolicy?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `label` field. */ - label?: StringFilter; - /** Filter by the object’s `modulesHash` field. */ - modulesHash?: UUIDFilter; + /** Filter by the object’s `nodeName` field. */ + nodeName?: StringFilter; + /** Filter by the object’s `nodePath` field. */ + nodePath?: StringListFilter; /** Negates the expression. */ - not?: DbPresetFilter; + not?: FunctionGraphExecutionNodeStateFilter; /** Checks for any expressions in this list. */ - or?: DbPresetFilter[]; - /** 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; + or?: FunctionGraphExecutionNodeStateFilter[]; + /** Filter by the object’s `outputId` field. */ + outputId?: UUIDFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; + /** Filter by the object’s `startedAt` field. */ + startedAt?: DatetimeFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `waitingDeadlineAt` field. */ + waitingDeadlineAt?: DatetimeFilter; + /** Filter by the object’s `waitingOn` field. */ + waitingOn?: StringFilter; + /** Filter by the object’s `waitingSince` field. */ + waitingSince?: DatetimeFilter; } -/** An input for mutations affecting `DbPreset` */ -export interface DbPresetInput { - /** Whether this preset is selectable for new databases */ - active?: boolean; - /** Infra store commit for the current definition (stamped by the versioned trigger on every write) */ - commitId?: string; - /** Timestamp of preset creation */ +/** An input for mutations affecting `FunctionGraphExecutionNodeState` */ +export interface FunctionGraphExecutionNodeStateInput { + /** Snapshot of the node's resolved inputs for resource-runtime nodes — served by the node gateway GET /inputs endpoint */ + callbackInputs?: unknown; + /** Metering/attribution context stamped at resource dispatch (namespace_id, task_identifier, entity_id, scope, resource identity, dispatched_at, attempt) — lets the node gateway settle and attribute without extra lookups */ + callbackMeta?: unknown; + /** SHA-256 hex digest of the node callback token — set for resource-runtime nodes so the node gateway can authenticate result/error/heartbeat callbacks */ + callbackTokenHash?: string; + /** Timestamp when the node finished (success or failure) */ + completedAt?: string; + /** Timestamp of node state creation (partition key) */ createdAt?: string; - /** Preset definition (modules + options) — the readily-cached head; history lives in the infra store */ - definition: unknown; - /** Human-readable description of the preset */ - description?: string; - /** Unique preset identifier */ + /** Machine-readable error code when status = failed */ + errorCode?: string; + /** Human-readable error description when status = failed */ + errorMessage?: string; + /** FK to the parent graph execution */ + executionId: string; + /** Declared output applied by the default_answer expiry policy */ + expiryDefaultOutput?: unknown; + /** When the escalate expiry policy fired — guards the one-time extension */ + expiryEscalatedAt?: string; + /** Declared expiry behaviour when waiting_deadline_at passes unanswered: fail (fail the execution), default_answer (settle with expiry_default_output), or escalate (notify and extend once) */ + expiryPolicy?: string; + /** Unique node state identifier */ id?: string; - /** Human-readable preset name */ - label?: string; - /** Content-address of definition->modules via metaschema_private.modules_hash (stamped by the versioned trigger); fast exact-match lookup key for provisioning requests */ - modulesHash?: string; - /** Preset slug (unique per scope); the preset's path in the infra tree is [db_preset, slug] */ - slug: string; - /** Infra Merkle store holding this preset's history (stamped by the versioned trigger) */ - storeId?: string; - /** Timestamp of last modification */ - updatedAt?: string; + /** Name of the node within the graph (e.g. send-email1) */ + nodeName: string; + /** Full merkle tree path to this node (e.g. {function,graphs,myflow,nodes,send-email1}) — enables subnet hierarchy tracking */ + nodePath?: string[]; + /** FK to execution_outputs — content-addressed output blob for this node */ + outputId?: string; + /** Opaque store partition key for the global tier */ + scopeId: string; + /** Timestamp when the node began executing */ + startedAt?: string; + /** Node lifecycle: pending → queued → running → completed/failed/cancelled */ + status?: string; + /** When the declared expiry policy applies to the still-unanswered node */ + waitingDeadlineAt?: string; + /** What class of external reporter settles this node: human (a person answers) or external (webhook/adapter). NULL for nodes with an active workload */ + waitingOn?: string; + /** When the node parked awaiting its external report */ + waitingSince?: string; } -/** Represents an update to a `DbPreset`. Fields that are set will be updated. */ -export interface DbPresetPatch { - /** Whether this preset is selectable for new databases */ - active?: boolean; - /** Infra store commit for the current definition (stamped by the versioned trigger on every write) */ - commitId?: string; - /** Timestamp of preset creation */ +/** Represents an update to a `FunctionGraphExecutionNodeState`. Fields that are set will be updated. */ +export interface FunctionGraphExecutionNodeStatePatch { + /** Snapshot of the node's resolved inputs for resource-runtime nodes — served by the node gateway GET /inputs endpoint */ + callbackInputs?: unknown; + /** Metering/attribution context stamped at resource dispatch (namespace_id, task_identifier, entity_id, scope, resource identity, dispatched_at, attempt) — lets the node gateway settle and attribute without extra lookups */ + callbackMeta?: unknown; + /** SHA-256 hex digest of the node callback token — set for resource-runtime nodes so the node gateway can authenticate result/error/heartbeat callbacks */ + callbackTokenHash?: string; + /** Timestamp when the node finished (success or failure) */ + completedAt?: string; + /** Timestamp of node state creation (partition key) */ createdAt?: string; - /** Preset definition (modules + options) — the readily-cached head; history lives in the infra store */ - definition?: unknown; - /** Human-readable description of the preset */ - description?: string; - /** Unique preset identifier */ + /** Machine-readable error code when status = failed */ + errorCode?: string; + /** Human-readable error description when status = failed */ + errorMessage?: string; + /** FK to the parent graph execution */ + executionId?: string; + /** Declared output applied by the default_answer expiry policy */ + expiryDefaultOutput?: unknown; + /** When the escalate expiry policy fired — guards the one-time extension */ + expiryEscalatedAt?: string; + /** Declared expiry behaviour when waiting_deadline_at passes unanswered: fail (fail the execution), default_answer (settle with expiry_default_output), or escalate (notify and extend once) */ + expiryPolicy?: string; + /** Unique node state identifier */ id?: string; - /** Human-readable preset name */ - label?: string; - /** Content-address of definition->modules via metaschema_private.modules_hash (stamped by the versioned trigger); fast exact-match lookup key for provisioning requests */ - modulesHash?: string; - /** Preset slug (unique per scope); the preset's path in the infra tree is [db_preset, 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 DeleteContentPresetInput { - clientMutationId?: string; - /** Unique preset identifier */ - id: string; -} -export interface DeleteDbPresetInput { - clientMutationId?: string; - /** Unique preset identifier */ - id: string; -} -export interface DeleteFunctionApiBindingInput { - clientMutationId?: string; - id: string; -} -export interface DeleteFunctionCapabilityBindingInput { - clientMutationId?: string; - id: string; -} -export interface DeleteFunctionDefinitionInput { - clientMutationId?: string; - id: string; -} -export interface DeleteFunctionDeploymentEventInput { - clientMutationId?: string; - /** Event timestamp (partition key) */ - createdAt: string; - /** Unique event identifier */ - id: string; -} -export interface DeleteFunctionDeploymentInput { - clientMutationId?: string; - id: string; + /** Name of the node within the graph (e.g. send-email1) */ + nodeName?: string; + /** Full merkle tree path to this node (e.g. {function,graphs,myflow,nodes,send-email1}) — enables subnet hierarchy tracking */ + nodePath?: string[]; + /** FK to execution_outputs — content-addressed output blob for this node */ + outputId?: string; + /** Opaque store partition key for the global tier */ + scopeId?: string; + /** Timestamp when the node began executing */ + startedAt?: string; + /** Node lifecycle: pending → queued → running → completed/failed/cancelled */ + status?: string; + /** When the declared expiry policy applies to the still-unanswered node */ + waitingDeadlineAt?: string; + /** What class of external reporter settles this node: human (a person answers) or external (webhook/adapter). NULL for nodes with an active workload */ + waitingOn?: string; + /** When the node parked awaiting its external report */ + waitingSince?: string; } -export interface DeleteFunctionExecutionLogInput { - clientMutationId?: string; - /** Log entry timestamp (partition key) */ - createdAt: string; - /** Unique log entry identifier */ - id: string; +/** A filter to be used against `FunctionGraphExecutionOutput` object types. All fields are combined with a logical ‘and.’ */ +export interface FunctionGraphExecutionOutputFilter { + /** Checks for all expressions in this list. */ + and?: FunctionGraphExecutionOutputFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `data` field. */ + data?: JSONFilter; + /** Filter by the object’s `hash` field. */ + hash?: Base64EncodedBinaryFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: FunctionGraphExecutionOutputFilter; + /** Checks for any expressions in this list. */ + or?: FunctionGraphExecutionOutputFilter[]; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; } -export interface DeleteFunctionGraphCommitInput { - clientMutationId?: string; - /** Unique commit identifier */ - id: string; +/** An input for mutations affecting `FunctionGraphExecutionOutput` */ +export interface FunctionGraphExecutionOutputInput { + /** Timestamp of output creation */ + createdAt?: string; + /** The actual output payload from a completed node */ + data: unknown; + /** SHA-256 hash of the data JSONB — content-addressed deduplication */ + hash: Base64EncodedBinary; + /** Unique execution output identifier */ + id?: string; /** Opaque store partition key for the global tier */ scopeId: string; } -export interface DeleteFunctionGraphExecutionInput { - clientMutationId?: string; - /** Unique execution identifier */ - id: string; - /** Execution start timestamp */ - startedAt: string; -} -export interface DeleteFunctionGraphExecutionNodeStateInput { - clientMutationId?: string; - /** Timestamp of node state creation (partition key) */ - createdAt: string; - /** Unique node state identifier */ - id: string; -} -export interface DeleteFunctionGraphExecutionOutputInput { - clientMutationId?: string; +/** Represents an update to a `FunctionGraphExecutionOutput`. Fields that are set will be updated. */ +export interface FunctionGraphExecutionOutputPatch { /** Timestamp of output creation */ - createdAt: string; + createdAt?: string; + /** The actual output payload from a completed node */ + data?: unknown; + /** SHA-256 hash of the data JSONB — content-addressed deduplication */ + hash?: Base64EncodedBinary; /** Unique execution output identifier */ - id: string; -} -export interface DeleteFunctionGraphInput { - clientMutationId?: string; - /** Unique graph identifier */ - id: string; -} -export interface DeleteFunctionGraphObjectInput { - clientMutationId?: string; - /** Content-addressed UUID v5 — deterministic hash of (data, kids, ktree) */ - id: string; + id?: string; /** Opaque store partition key for the global tier */ - scopeId: string; + scopeId?: string; } -export interface DeleteFunctionGraphRefInput { - clientMutationId?: string; - /** Unique ref identifier */ - id: string; +/** Represents an update to a `FunctionGraphExecution`. Fields that are set will be updated. */ +export interface FunctionGraphExecutionPatch { + /** User actor propagated to asynchronous graph jobs */ + actorId?: string; + /** Execution completion timestamp */ + completedAt?: string; + /** Index into execution_plan — tick only processes this wave */ + currentWave?: number; + /** Pinned definitions store commit for deterministic evaluation */ + definitionsCommitId?: string; + /** Entity context propagated to asynchronous graph jobs */ + entityId?: string; + /** Scope discriminator propagated to asynchronous graph jobs */ + entityType?: string; + /** Machine-readable error code when status = failed */ + errorCode?: string; + /** Human-readable error description when status = failed */ + errorMessage?: string; + /** Pre-computed topological sort as array of wave objects */ + executionPlan?: unknown; + /** FK to the graph definition being executed */ + graphId?: string; + /** Unique execution identifier */ + id?: string; + /** Initial inputs provided at invocation time */ + inputPayload?: unknown; + /** Partition coordinate for the function invocation that launched this graph execution */ + invocationCreatedAt?: string; + /** Function invocation that launched this top-level graph execution */ + invocationId?: string; + /** Timestamp of the last real progress (node enqueue, node output, completion) — drives the activity-debounced watchdog */ + lastProgressAt?: string; + /** Maximum pending jobs before execution is failed (default 50) */ + maxPendingJobs?: number; + /** Maximum ticks before execution is failed (default 100) */ + maxTicks?: number; + /** Map of node_name → execution output id (content-addressed hash reference) */ + nodeOutputs?: unknown; + /** Organization context propagated to asynchronous graph jobs */ + organizationId?: string; + /** Selected graphOutput portName values; NULL or empty returns all graph outputs */ + outputNames?: string[]; + /** Target output boundary node name to resolve; NULL derives completion from the graph's graphOutput nodes */ + outputNode?: string; + /** Final result extracted from terminal output node */ + outputPayload?: unknown; + /** Target output port name (default: value) */ + outputPort?: string; + /** Parent execution when this is a sub-execution */ + parentExecutionId?: string; + /** Function invocation parent assigned to node invocations spawned by this execution */ + parentInvocationId?: string; + /** Node name in parent execution that spawned this sub-execution */ + parentNodeName?: string; + /** Principal identity propagated to asynchronous graph jobs */ + principalId?: string; /** Opaque store partition key for the global tier */ - scopeId: string; -} -export interface DeleteFunctionGraphStoreInput { - clientMutationId?: string; - /** Unique store identifier */ - id: string; -} -export interface DeleteFunctionInvocationAttemptInput { - clientMutationId?: string; - /** When the attempt result was recorded (partition key) */ - createdAt: string; - /** Unique attempt identifier */ - id: string; -} -export interface DeleteFunctionInvocationInput { - clientMutationId?: string; - /** Invocation creation timestamp (partition key) */ - createdAt: string; - /** Unique invocation identifier */ - id: string; -} -export interface DeleteInfraCommitInput { - clientMutationId?: string; - /** Database scope for multi-tenant isolation */ - databaseId: string; - /** Unique commit identifier */ - id: string; -} -export interface DeleteInfraObjectInput { - clientMutationId?: string; - /** Database scope for multi-tenant isolation */ - databaseId: string; - /** Content-addressed UUID v5 — deterministic hash of (data, kids, ktree) */ - id: string; -} -export interface DeleteInfraRefInput { - clientMutationId?: string; - /** Database scope for multi-tenant isolation */ - databaseId: string; - /** Unique ref identifier */ - id: string; -} -export interface DeleteInfraStoreInput { - clientMutationId?: string; - /** Unique store identifier */ - id: string; -} -export interface DeleteIntegrationProviderInput { - clientMutationId?: string; - id: string; -} -export interface DeleteNamespaceEventInput { - clientMutationId?: string; - /** Event timestamp (partition key) */ - createdAt: string; - /** Unique event identifier */ - id: string; -} -export interface DeleteNamespaceInput { - clientMutationId?: string; - id: string; -} -export interface DeletePlatformFunctionApiBindingInput { - clientMutationId?: string; - id: string; -} -export interface DeletePlatformFunctionCapabilityBindingInput { - clientMutationId?: string; - id: string; -} -export interface DeletePlatformFunctionDefinitionInput { - clientMutationId?: string; - id: string; -} -export interface DeletePlatformFunctionDeploymentEventInput { - clientMutationId?: string; - /** Event timestamp (partition key) */ - createdAt: string; - /** Unique event identifier */ - id: string; -} -export interface DeletePlatformFunctionDeploymentInput { - clientMutationId?: string; - id: string; -} -export interface DeletePlatformFunctionExecutionLogInput { - clientMutationId?: string; - /** Log entry timestamp (partition key) */ - createdAt: string; - /** Unique log entry identifier */ - id: string; + scopeId?: string; + /** Execution start timestamp */ + startedAt?: string; + /** Lifecycle: pending → running → completed/failed/cancelled */ + status?: string; + /** Number of evaluate_step ticks executed */ + tickCount?: number; + /** Absolute deadline — execution fails if still running after this time */ + timeoutAt?: string; } -export interface DeletePlatformFunctionInvocationAttemptInput { - clientMutationId?: string; - /** When the attempt result was recorded (partition key) */ - createdAt: string; - /** Unique attempt identifier */ - id: string; +/** A filter to be used against `FunctionGraph` object types. All fields are combined with a logical ‘and.’ */ +export interface FunctionGraphFilter { + /** Checks for all expressions in this list. */ + and?: FunctionGraphFilter[]; + /** Filter by the object’s `context` field. */ + context?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `definitionsCommitId` field. */ + definitionsCommitId?: UUIDFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `functionGraphExecutionsByGraphId` relation. */ + functionGraphExecutionsByGraphId?: FunctionGraphToManyFunctionGraphExecutionFilter; + /** `functionGraphExecutionsByGraphId` exist. */ + functionGraphExecutionsByGraphIdExist?: boolean; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isValid` field. */ + isValid?: BooleanFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: FunctionGraphFilter; + /** Checks for any expressions in this list. */ + or?: FunctionGraphFilter[]; + /** Filter by the object’s `platformFunctionDefinitionsByGraphId` relation. */ + platformFunctionDefinitionsByGraphId?: FunctionGraphToManyPlatformFunctionDefinitionFilter; + /** `platformFunctionDefinitionsByGraphId` exist. */ + platformFunctionDefinitionsByGraphIdExist?: boolean; + /** Filter by the object’s `platformRepositoryWorkflowsByGraphId` relation. */ + platformRepositoryWorkflowsByGraphId?: FunctionGraphToManyPlatformRepositoryWorkflowFilter; + /** `platformRepositoryWorkflowsByGraphId` exist. */ + platformRepositoryWorkflowsByGraphIdExist?: boolean; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; + /** Filter by the object’s `storeId` field. */ + storeId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `validationErrors` field. */ + validationErrors?: JSONFilter; } -export interface DeletePlatformFunctionInvocationInput { - clientMutationId?: string; - /** Invocation creation timestamp (partition key) */ - createdAt: string; - /** Unique invocation identifier */ - id: string; +/** A filter to be used against `FunctionGraphObject` object types. All fields are combined with a logical ‘and.’ */ +export interface FunctionGraphObjectFilter { + /** Checks for all expressions in this list. */ + and?: FunctionGraphObjectFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `data` field. */ + data?: JSONFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `kids` field. */ + kids?: UUIDListFilter; + /** Filter by the object’s `ktree` field. */ + ktree?: StringListFilter; + /** Negates the expression. */ + not?: FunctionGraphObjectFilter; + /** Checks for any expressions in this list. */ + or?: FunctionGraphObjectFilter[]; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; } -export interface DeletePlatformInfraCommitInput { - clientMutationId?: string; - /** Unique commit identifier */ +/** An input for mutations affecting `FunctionGraphObject` */ +export interface FunctionGraphObjectInput { + /** Timestamp of object creation */ + createdAt?: string; + /** Payload data for this object node */ + data?: unknown; + /** Content-addressed UUID v5 — deterministic hash of (data, kids, ktree) */ id: string; + /** Ordered array of child object IDs */ + kids?: string[]; + /** Ordered array of child path names (parallel to kids) */ + ktree?: string[]; /** Opaque store partition key for the global tier */ scopeId: string; } -export interface DeletePlatformInfraObjectInput { - clientMutationId?: string; +/** Represents an update to a `FunctionGraphObject`. Fields that are set will be updated. */ +export interface FunctionGraphObjectPatch { + /** Timestamp of object creation */ + createdAt?: string; + /** Payload data for this object node */ + data?: unknown; /** Content-addressed UUID v5 — deterministic hash of (data, kids, ktree) */ - id: string; + id?: string; + /** Ordered array of child object IDs */ + kids?: string[]; + /** Ordered array of child path names (parallel to kids) */ + ktree?: string[]; + /** Opaque store partition key for the global tier */ + scopeId?: string; +} +/** Represents an update to a `FunctionGraph`. Fields that are set will be updated. */ +export interface FunctionGraphPatch { + /** Evaluator/runtime context (function, js, sql, system) */ + context?: string; + /** Timestamp of graph creation */ + createdAt?: string; + /** Actor who created this graph */ + createdBy?: string; + /** Pinned definitions store commit for deterministic evaluation */ + definitionsCommitId?: string; + /** Human-readable description of the graph */ + description?: string; + /** Unique graph identifier */ + id?: string; + /** Whether graph passes structural validation */ + isValid?: boolean; + /** Graph name (unique per database) */ + name?: string; + /** Opaque store partition key for the global tier */ + scopeId?: string; + /** Graph store (Merkle store) holding the graph definition */ + storeId?: string; + /** Timestamp of last modification */ + updatedAt?: string; + /** Array of validation error objects when is_valid = false */ + validationErrors?: unknown; +} +/** A filter to be used against `FunctionGraphRef` object types. All fields are combined with a logical ‘and.’ */ +export interface FunctionGraphRefFilter { + /** Checks for all expressions in this list. */ + and?: FunctionGraphRefFilter[]; + /** Filter by the object’s `commitId` field. */ + commitId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: FunctionGraphRefFilter; + /** Checks for any expressions in this list. */ + or?: FunctionGraphRefFilter[]; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; + /** Filter by the object’s `storeId` field. */ + storeId?: UUIDFilter; +} +/** An input for mutations affecting `FunctionGraphRef` */ +export interface FunctionGraphRefInput { + /** Commit this ref points to */ + commitId?: string; + /** Unique ref identifier */ + id?: string; + /** Ref name (e.g. HEAD, main) */ + name: string; /** Opaque store partition key for the global tier */ scopeId: string; + /** Store this ref belongs to */ + storeId: string; } -export interface DeletePlatformInfraRefInput { - clientMutationId?: string; +/** Represents an update to a `FunctionGraphRef`. Fields that are set will be updated. */ +export interface FunctionGraphRefPatch { + /** Commit this ref points to */ + commitId?: string; /** Unique ref identifier */ - id: string; + id?: string; + /** Ref name (e.g. HEAD, main) */ + name?: string; + /** Opaque store partition key for the global tier */ + scopeId?: string; + /** Store this ref belongs to */ + storeId?: string; +} +/** A filter to be used against `FunctionGraphStore` object types. All fields are combined with a logical ‘and.’ */ +export interface FunctionGraphStoreFilter { + /** Checks for all expressions in this list. */ + and?: FunctionGraphStoreFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `hash` field. */ + hash?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: FunctionGraphStoreFilter; + /** Checks for any expressions in this list. */ + or?: FunctionGraphStoreFilter[]; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; +} +/** An input for mutations affecting `FunctionGraphStore` */ +export interface FunctionGraphStoreInput { + /** Timestamp of store creation */ + createdAt?: string; + /** Current root object hash of this store */ + hash?: string; + /** Unique store identifier */ + id?: string; + /** Human-readable store name */ + name: string; /** Opaque store partition key for the global tier */ scopeId: string; } -export interface DeletePlatformInfraStoreInput { - clientMutationId?: string; +/** Represents an update to a `FunctionGraphStore`. Fields that are set will be updated. */ +export interface FunctionGraphStorePatch { + /** Timestamp of store creation */ + createdAt?: string; + /** Current root object hash of this store */ + hash?: string; /** Unique store identifier */ - id: string; + id?: string; + /** Human-readable store name */ + name?: string; + /** Opaque store partition key for the global tier */ + scopeId?: string; } -export interface DeletePlatformNamespaceEventInput { - clientMutationId?: string; - /** Event timestamp (partition key) */ - createdAt: string; - /** Unique event identifier */ - id: string; +/** A filter to be used against many `FunctionGraphExecution` object types. All fields are combined with a logical ‘and.’ */ +export interface FunctionGraphToManyFunctionGraphExecutionFilter { + /** Filters to entities where every related entity matches. */ + every?: FunctionGraphExecutionFilter; + /** Filters to entities where no related entity matches. */ + none?: FunctionGraphExecutionFilter; + /** Filters to entities where at least one related entity matches. */ + some?: FunctionGraphExecutionFilter; +} +/** A filter to be used against many `PlatformFunctionDefinition` object types. All fields are combined with a logical ‘and.’ */ +export interface FunctionGraphToManyPlatformFunctionDefinitionFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformFunctionDefinitionFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformFunctionDefinitionFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformFunctionDefinitionFilter; +} +/** A filter to be used against many `PlatformRepositoryWorkflow` object types. All fields are combined with a logical ‘and.’ */ +export interface FunctionGraphToManyPlatformRepositoryWorkflowFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformRepositoryWorkflowFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformRepositoryWorkflowFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformRepositoryWorkflowFilter; +} +/** A filter to be used against `FunctionInvocationAttempt` object types. All fields are combined with a logical ‘and.’ */ +export interface FunctionInvocationAttemptFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: FunctionInvocationAttemptFilter[]; + /** Filter by the object’s `attempt` field. */ + attempt?: IntFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `durationMs` field. */ + durationMs?: IntFilter; + /** Filter by the object’s `error` field. */ + error?: StringFilter; + /** Filter by the object’s `errorDetail` field. */ + errorDetail?: JSONFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `invocationCreatedAt` field. */ + invocationCreatedAt?: DatetimeFilter; + /** Filter by the object’s `invocationId` field. */ + invocationId?: UUIDFilter; + /** Negates the expression. */ + not?: FunctionInvocationAttemptFilter; + /** Checks for any expressions in this list. */ + or?: FunctionInvocationAttemptFilter[]; + /** Filter by the object’s `startedAt` field. */ + startedAt?: DatetimeFilter; + /** Filter by the object’s `success` field. */ + success?: BooleanFilter; + /** Filter by the object’s `taskIdentifier` field. */ + taskIdentifier?: StringFilter; +} +/** An input for mutations affecting `FunctionInvocationAttempt` */ +export interface FunctionInvocationAttemptInput { + /** Who triggered the invocation; NULL only when no human actor was proven */ + actorId?: string; + /** 1-based attempt number for this invocation */ + attempt: number; + /** When the attempt result was recorded (partition key) */ + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Wall-clock attempt time in milliseconds */ + durationMs?: number; + /** Error message when the attempt failed */ + error?: string; + /** Structured error context (stack, code, provider response) */ + errorDetail?: unknown; + /** Unique attempt identifier */ + id?: string; + /** created_at of the referenced invocation (partition-pruned lookups against the invocations PK) */ + invocationCreatedAt: string; + /** Invocation this attempt belongs to (soft reference paired with invocation_created_at) */ + invocationId: string; + /** When the attempt began executing */ + startedAt?: string; + /** Whether this attempt completed successfully */ + success: boolean; + /** Function routing slug (denormalized from the invocation) */ + taskIdentifier: string; } -export interface DeletePlatformNamespaceInput { - clientMutationId?: string; - id: string; +/** Represents an update to a `FunctionInvocationAttempt`. Fields that are set will be updated. */ +export interface FunctionInvocationAttemptPatch { + /** Who triggered the invocation; NULL only when no human actor was proven */ + actorId?: string; + /** 1-based attempt number for this invocation */ + attempt?: number; + /** When the attempt result was recorded (partition key) */ + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string; + /** Wall-clock attempt time in milliseconds */ + durationMs?: number; + /** Error message when the attempt failed */ + error?: string; + /** Structured error context (stack, code, provider response) */ + errorDetail?: unknown; + /** Unique attempt identifier */ + id?: string; + /** created_at of the referenced invocation (partition-pruned lookups against the invocations PK) */ + invocationCreatedAt?: string; + /** Invocation this attempt belongs to (soft reference paired with invocation_created_at) */ + invocationId?: string; + /** When the attempt began executing */ + startedAt?: string; + /** Whether this attempt completed successfully */ + success?: boolean; + /** Function routing slug (denormalized from the invocation) */ + taskIdentifier?: string; } -export interface DeletePlatformResourceDefinitionInput { - clientMutationId?: string; - id: string; +/** A filter to be used against `FunctionInvocation` object types. All fields are combined with a logical ‘and.’ */ +export interface FunctionInvocationFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: FunctionInvocationFilter[]; + /** Filter by the object’s `apiBinding` relation. */ + apiBinding?: FunctionApiBindingFilter; + /** A related `apiBinding` exists. */ + apiBindingExists?: boolean; + /** Filter by the object’s `apiBindingId` field. */ + apiBindingId?: UUIDFilter; + /** Filter by the object’s `channel` field. */ + channel?: StringFilter; + /** Filter by the object’s `completedAt` field. */ + completedAt?: DatetimeFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `definitionScope` field. */ + definitionScope?: StringFilter; + /** Filter by the object’s `durationMs` field. */ + durationMs?: IntFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `entityType` field. */ + entityType?: StringFilter; + /** Filter by the object’s `error` field. */ + error?: StringFilter; + /** Filter by the object’s `functionDefinitionId` field. */ + functionDefinitionId?: UUIDFilter; + /** Filter by the object’s `graphExecutionId` field. */ + graphExecutionId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `jobId` field. */ + jobId?: BigIntFilter; + /** Negates the expression. */ + not?: FunctionInvocationFilter; + /** Checks for any expressions in this list. */ + or?: FunctionInvocationFilter[]; + /** Filter by the object’s `organizationId` field. */ + organizationId?: UUIDFilter; + /** Filter by the object’s `parentInvocationId` field. */ + parentInvocationId?: UUIDFilter; + /** Filter by the object’s `payload` field. */ + payload?: JSONFilter; + /** Filter by the object’s `principalId` field. */ + principalId?: UUIDFilter; + /** Filter by the object’s `provenance` field. */ + provenance?: JSONFilter; + /** Filter by the object’s `result` field. */ + result?: JSONFilter; + /** Filter by the object’s `startedAt` field. */ + startedAt?: DatetimeFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `taskIdentifier` field. */ + taskIdentifier?: StringFilter; } -export interface DeletePlatformResourceEventInput { - clientMutationId?: string; - /** Event timestamp (partition key) */ - createdAt: string; - /** Unique event identifier */ - id: string; +/** An input for mutations affecting `FunctionInvocation` */ +export interface FunctionInvocationInput { + /** Who triggered the invocation; NULL only when no human actor was proven */ + actorId?: string; + /** API binding this invocation arrived through (NULL for cron/graph/system/worker paths) */ + apiBindingId?: string; + /** Invocation trigger channel: api, graph, cron, sync, webhook, trigger, or worker */ + channel: string; + /** When execution completed */ + completedAt?: string; + /** Invocation creation timestamp (partition key) */ + createdAt?: string; + /** Acting principal (agent, API key, or user) who created this record */ + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Scope that owns function_definition_id (e.g. app/org/database/platform) — the per-scope definitions table the resolver selected */ + definitionScope?: string; + /** Wall-clock execution time in milliseconds */ + durationMs?: number; + /** Entity identity propagated with the invocation */ + entityId?: string; + /** Entity type propagated with the invocation */ + entityType?: string; + /** Error message when status is failed, or the reason the run was skipped when status is skipped */ + error?: string; + /** Function definition this invocation ran (soft cross-scope ref; paired with definition_scope). task_identifier stays as the audit slug. */ + functionDefinitionId?: string; + /** Groups all node invocations from a single flow graph execution */ + graphExecutionId?: string; + /** Unique invocation identifier */ + id?: string; + /** FK to app_jobs.jobs — the underlying transport */ + jobId?: string; + /** Organization identity propagated with the invocation */ + organizationId?: string; + /** Parent invocation when this is a child node of a flow graph execution */ + parentInvocationId?: string; + /** Function input payload */ + payload?: unknown; + /** Principal identity that triggered the invocation */ + principalId?: string; + /** Non-secret channel-specific invocation provenance (route/binding/event identifiers only) */ + provenance?: unknown; + /** Function return value (success) or structured error (failure) */ + result?: unknown; + /** When execution started */ + startedAt?: string; + /** Lifecycle: pending → running → completed/failed/cancelled; skipped = never ran (a gate rejected the intended run) */ + status?: string; + /** Function routing slug (category:name). Denormalized from the definition — must match the row referenced by function_definition_id when that is set. */ + taskIdentifier: string; } -export interface DeletePlatformResourceInput { - clientMutationId?: string; - id: string; +/** Represents an update to a `FunctionInvocation`. Fields that are set will be updated. */ +export interface FunctionInvocationPatch { + /** Who triggered the invocation; NULL only when no human actor was proven */ + actorId?: string; + /** API binding this invocation arrived through (NULL for cron/graph/system/worker paths) */ + apiBindingId?: string; + /** Invocation trigger channel: api, graph, cron, sync, webhook, trigger, or worker */ + channel?: string; + /** When execution completed */ + completedAt?: string; + /** Invocation creation timestamp (partition key) */ + createdAt?: string; + /** Acting principal (agent, API key, or user) who created this record */ + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string; + /** Scope that owns function_definition_id (e.g. app/org/database/platform) — the per-scope definitions table the resolver selected */ + definitionScope?: string; + /** Wall-clock execution time in milliseconds */ + durationMs?: number; + /** Entity identity propagated with the invocation */ + entityId?: string; + /** Entity type propagated with the invocation */ + entityType?: string; + /** Error message when status is failed, or the reason the run was skipped when status is skipped */ + error?: string; + /** Function definition this invocation ran (soft cross-scope ref; paired with definition_scope). task_identifier stays as the audit slug. */ + functionDefinitionId?: string; + /** Groups all node invocations from a single flow graph execution */ + graphExecutionId?: string; + /** Unique invocation identifier */ + id?: string; + /** FK to app_jobs.jobs — the underlying transport */ + jobId?: string; + /** Organization identity propagated with the invocation */ + organizationId?: string; + /** Parent invocation when this is a child node of a flow graph execution */ + parentInvocationId?: string; + /** Function input payload */ + payload?: unknown; + /** Principal identity that triggered the invocation */ + principalId?: string; + /** Non-secret channel-specific invocation provenance (route/binding/event identifiers only) */ + provenance?: unknown; + /** Function return value (success) or structured error (failure) */ + result?: unknown; + /** When execution started */ + startedAt?: string; + /** Lifecycle: pending → running → completed/failed/cancelled; skipped = never ran (a gate rejected the intended run) */ + status?: string; + /** Function routing slug (category:name). Denormalized from the definition — must match the row referenced by function_definition_id when that is set. */ + taskIdentifier?: string; } -export interface DeletePlatformResourceInstallationInput { +export interface FunctionInvocationsCreateSyncInput { clientMutationId?: string; - id: string; + entityId?: string; + payload?: unknown; + provenance?: unknown; + routeBindingId?: string; + taskIdentifier?: string; } -export interface DeletePlatformResourceStatusCheckInput { - clientMutationId?: string; - /** Unique status check identifier */ - id: string; +/** A filter to be used against `Image` object types. All fields are combined with a logical ‘and.’ */ +export interface ImageFilter { + /** Checks for all expressions in this list. */ + and?: ImageFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `digest` field. */ + digest?: StringFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `imageGrants` relation. */ + imageGrants?: ImageToManyImageGrantFilter; + /** `imageGrants` exist. */ + imageGrantsExist?: boolean; + /** Filter by the object’s `isPublished` field. */ + isPublished?: BooleanFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: ImageFilter; + /** Checks for any expressions in this list. */ + or?: ImageFilter[]; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `platformOnly` field. */ + platformOnly?: BooleanFilter; + /** Filter by the object’s `registryHost` field. */ + registryHost?: StringFilter; + /** Filter by the object’s `repository` field. */ + repository?: StringFilter; + /** Filter by the object’s `runtime` field. */ + runtime?: StringFilter; + /** Filter by the object’s `tag` field. */ + tag?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface DeletePlatformResourceUsageLogInput { - clientMutationId?: string; - /** Unique sample identifier */ - id: string; - /** Sample timestamp (partition key) — end of the measured interval */ - sampledAt: string; +/** A filter to be used against `ImageGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface ImageGrantFilter { + /** Filter by the object’s `actions` field. */ + actions?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: ImageGrantFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; + /** Filter by the object’s `grantedBy` field. */ + grantedBy?: UUIDFilter; + /** Filter by the object’s `granteeKey` field. */ + granteeKey?: UUIDFilter; + /** Filter by the object’s `granteeScope` field. */ + granteeScope?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `image` relation. */ + image?: ImageFilter; + /** Filter by the object’s `imageId` field. */ + imageId?: UUIDFilter; + /** Negates the expression. */ + not?: ImageGrantFilter; + /** Checks for any expressions in this list. */ + or?: ImageGrantFilter[]; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface DeletePlatformResourceUsageSummaryInput { - clientMutationId?: string; - /** Day this summary covers (partition key) */ - date: string; - /** Unique usage summary identifier */ - id: string; +/** An input for mutations affecting `ImageGrant` */ +export interface ImageGrantInput { + /** Registry actions this grant allows (pull, push, delete) */ + actions?: string[]; + createdAt?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** When this grant stops applying (NULL never expires) */ + expiresAt?: string; + /** User who issued this grant */ + grantedBy?: string; + /** Scope key of the grantee (a database_id or an entity_id) */ + granteeKey: string; + /** Scope tier of the grantee (database, org, app, platform) */ + granteeScope: string; + id?: string; + /** Catalog image this grant applies to */ + imageId: string; + updatedAt?: string; + updatedByPrincipal?: string; } -export interface DeletePlatformWebhookEndpointInput { - clientMutationId?: string; - id: string; +/** Represents an update to a `ImageGrant`. Fields that are set will be updated. */ +export interface ImageGrantPatch { + /** Registry actions this grant allows (pull, push, delete) */ + actions?: string[]; + createdAt?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string; + /** When this grant stops applying (NULL never expires) */ + expiresAt?: string; + /** User who issued this grant */ + grantedBy?: string; + /** Scope key of the grantee (a database_id or an entity_id) */ + granteeKey?: string; + /** Scope tier of the grantee (database, org, app, platform) */ + granteeScope?: string; + id?: string; + /** Catalog image this grant applies to */ + imageId?: string; + updatedAt?: string; + updatedByPrincipal?: string; } -export interface DeletePlatformWebhookEventInput { - clientMutationId?: string; - id: string; +/** An input for mutations affecting `Image` */ +export interface ImageInput { + createdAt?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Human-readable description of what this image runs */ + description?: string; + /** Content address (sha256:...) pinning this image, when known */ + digest?: string; + /** When this catalog row becomes eligible for retention cleanup (NULL = kept forever) */ + expiresAt?: string; + id?: string; + /** Whether this image is published for use by any scope */ + isPublished?: boolean; + /** Labels for selecting images (architecture, capabilities, lane) */ + labels?: unknown; + /** Freeform metadata (build provenance, source repository, SBOM pointer) */ + metadata?: unknown; + /** Human-readable image name (e.g. node-runtime) */ + name: string; + /** User who registered this catalog row */ + ownerId?: string; + /** Whether this image is reserved for platform-internal use */ + platformOnly?: boolean; + /** Registry host serving this image (NULL means the platform default registry) */ + registryHost?: string; + /** Repository path within the registry (e.g. constructiveio/worker) */ + repository: string; + /** Runtime this image implements (e.g. nodejs, python, custom) */ + runtime?: string; + /** Mutable tag this row addresses */ + tag?: string; + updatedAt?: string; + updatedByPrincipal?: string; } -export interface DeleteResourceDefinitionInput { - clientMutationId?: string; - id: string; +/** Represents an update to a `Image`. Fields that are set will be updated. */ +export interface ImagePatch { + createdAt?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string; + /** Human-readable description of what this image runs */ + description?: string; + /** Content address (sha256:...) pinning this image, when known */ + digest?: string; + /** When this catalog row becomes eligible for retention cleanup (NULL = kept forever) */ + expiresAt?: string; + id?: string; + /** Whether this image is published for use by any scope */ + isPublished?: boolean; + /** Labels for selecting images (architecture, capabilities, lane) */ + labels?: unknown; + /** Freeform metadata (build provenance, source repository, SBOM pointer) */ + metadata?: unknown; + /** Human-readable image name (e.g. node-runtime) */ + name?: string; + /** User who registered this catalog row */ + ownerId?: string; + /** Whether this image is reserved for platform-internal use */ + platformOnly?: boolean; + /** Registry host serving this image (NULL means the platform default registry) */ + registryHost?: string; + /** Repository path within the registry (e.g. constructiveio/worker) */ + repository?: string; + /** Runtime this image implements (e.g. nodejs, python, custom) */ + runtime?: string; + /** Mutable tag this row addresses */ + tag?: string; + updatedAt?: string; + updatedByPrincipal?: string; } -export interface DeleteResourceEventInput { - clientMutationId?: string; - /** Event timestamp (partition key) */ - createdAt: string; - /** Unique event identifier */ - id: string; +/** A filter to be used against many `ImageGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface ImageToManyImageGrantFilter { + /** Filters to entities where every related entity matches. */ + every?: ImageGrantFilter; + /** Filters to entities where no related entity matches. */ + none?: ImageGrantFilter; + /** Filters to entities where at least one related entity matches. */ + some?: ImageGrantFilter; } -export interface DeleteResourceInput { +export interface ImportDefinitionsInput { clientMutationId?: string; - id: string; + contexts?: string[]; + graphId?: string; + sourceCommitId?: string; + sourceScopeId?: string; } -export interface DeleteResourceInstallationInput { +export interface ImportGraphJsonInput { clientMutationId?: string; - id: string; + context?: string; + createdBy?: string; + definitionsCommitId?: string; + description?: string; + graphJson?: unknown; + name?: string; + scopeId?: string; } -export interface DeleteResourceStatusCheckInput { - clientMutationId?: string; - /** Unique status check identifier */ - id: string; +/** A filter to be used against `InfraCommit` object types. All fields are combined with a logical ‘and.’ */ +export interface InfraCommitFilter { + /** Checks for all expressions in this list. */ + and?: InfraCommitFilter[]; + /** Filter by the object’s `authorId` field. */ + authorId?: UUIDFilter; + /** Filter by the object’s `committerId` field. */ + committerId?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `date` field. */ + date?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `message` field. */ + message?: StringFilter; + /** Negates the expression. */ + not?: InfraCommitFilter; + /** Checks for any expressions in this list. */ + or?: InfraCommitFilter[]; + /** Filter by the object’s `parentIds` field. */ + parentIds?: UUIDListFilter; + /** Filter by the object’s `storeId` field. */ + storeId?: UUIDFilter; + /** Filter by the object’s `treeId` field. */ + treeId?: UUIDFilter; } -export interface DeleteResourceUsageLogInput { - clientMutationId?: string; - /** Unique sample identifier */ - id: string; - /** Sample timestamp (partition key) — end of the measured interval */ - sampledAt: string; +/** An input for mutations affecting `InfraCommit` */ +export interface InfraCommitInput { + /** User who authored the changes */ + authorId?: string; + /** User who committed (may differ from author) */ + committerId?: string; + /** Database scope for multi-tenant isolation */ + databaseId: string; + /** Commit timestamp */ + date?: string; + /** Unique commit identifier */ + id?: string; + /** Optional commit message */ + message?: string; + /** Parent commit IDs (supports merge commits) */ + parentIds?: string[]; + /** Store this commit belongs to */ + storeId: string; + /** Root object ID of the tree snapshot at this commit */ + treeId?: string; } -export interface DeleteResourceUsageSummaryInput { +/** Represents an update to a `InfraCommit`. Fields that are set will be updated. */ +export interface InfraCommitPatch { + /** User who authored the changes */ + authorId?: string; + /** User who committed (may differ from author) */ + committerId?: string; + /** Database scope for multi-tenant isolation */ + databaseId?: string; + /** Commit timestamp */ + date?: string; + /** Unique commit identifier */ + id?: string; + /** Optional commit message */ + message?: string; + /** Parent commit IDs (supports merge commits) */ + parentIds?: string[]; + /** Store this commit belongs to */ + storeId?: string; + /** Root object ID of the tree snapshot at this commit */ + treeId?: string; +} +export interface InfraInitEmptyRepoInput { clientMutationId?: string; - /** Day this summary covers (partition key) */ - date: string; - /** Unique usage summary identifier */ - id: string; + sId?: string; + storeId?: string; } -export interface DeleteWebhookEndpointInput { +export interface InfraInsertNodeAtPathInput { clientMutationId?: string; - id: string; + data?: unknown; + kids?: string[]; + ktree?: string[]; + path?: string[]; + root?: string; + sId?: string; } -export interface DeleteWebhookEventInput { +export interface InfraInsertNodesAtPathsInput { clientMutationId?: string; - id: string; + datas?: unknown[]; + kidsList?: unknown; + ktreeList?: unknown; + paths?: unknown; + root?: string; + sId?: string; } -/** A filter to be used against `FunctionApiBinding` object types. All fields are combined with a logical ‘and.’ */ -export interface FunctionApiBindingFilter { - /** Filter by the object’s `alias` field. */ - alias?: StringFilter; +/** 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. */ - and?: FunctionApiBindingFilter[]; - /** Filter by the object’s `apiId` field. */ - apiId?: UUIDFilter; - /** Filter by the object’s `config` field. */ - config?: JSONFilter; + and?: InfraObjectFilter[]; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; - /** Filter by the object’s `functionDefinition` relation. */ - functionDefinition?: FunctionDefinitionFilter; - /** Filter by the object’s `functionDefinitionId` field. */ - functionDefinitionId?: UUIDFilter; - /** Filter by the object’s `functionInvocationsByApiBindingId` relation. */ - functionInvocationsByApiBindingId?: FunctionApiBindingToManyFunctionInvocationFilter; - /** `functionInvocationsByApiBindingId` exist. */ - functionInvocationsByApiBindingIdExist?: boolean; + /** Filter by the object’s `data` field. */ + data?: JSONFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `kids` field. */ + kids?: UUIDListFilter; + /** Filter by the object’s `ktree` field. */ + ktree?: StringListFilter; /** Negates the expression. */ - not?: FunctionApiBindingFilter; + not?: InfraObjectFilter; /** Checks for any expressions in this list. */ - or?: FunctionApiBindingFilter[]; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; + or?: InfraObjectFilter[]; } -/** An input for mutations affecting `FunctionApiBinding` */ -export interface FunctionApiBindingInput { - /** Binding alias (e.g. default, staging, production) */ - alias?: string; - /** API endpoint this function is bound to */ - apiId: string; - /** Per-binding configuration (overrides, routing rules, etc.) */ - config?: unknown; +/** An input for mutations affecting `InfraObject` */ +export interface InfraObjectInput { + /** Timestamp of object creation */ createdAt?: string; - /** Function definition this binding belongs to */ - functionDefinitionId: string; - id?: string; - updatedAt?: string; + /** Payload data for this object node */ + data?: unknown; + /** Database scope for multi-tenant isolation */ + databaseId: string; + /** Content-addressed UUID v5 — deterministic hash of (data, kids, ktree) */ + id: string; + /** Ordered array of child object IDs */ + kids?: string[]; + /** Ordered array of child path names (parallel to kids) */ + ktree?: string[]; } -/** Represents an update to a `FunctionApiBinding`. Fields that are set will be updated. */ -export interface FunctionApiBindingPatch { - /** Binding alias (e.g. default, staging, production) */ - alias?: string; - /** API endpoint this function is bound to */ - apiId?: string; - /** Per-binding configuration (overrides, routing rules, etc.) */ - config?: unknown; +/** Represents an update to a `InfraObject`. Fields that are set will be updated. */ +export interface InfraObjectPatch { + /** Timestamp of object creation */ createdAt?: string; - /** Function definition this binding belongs to */ - functionDefinitionId?: string; - id?: string; - updatedAt?: string; -} -/** A filter to be used against many `FunctionInvocation` object types. All fields are combined with a logical ‘and.’ */ -export interface FunctionApiBindingToManyFunctionInvocationFilter { - /** Filters to entities where every related entity matches. */ - every?: FunctionInvocationFilter; - /** Filters to entities where no related entity matches. */ - none?: FunctionInvocationFilter; - /** Filters to entities where at least one related entity matches. */ - some?: FunctionInvocationFilter; + /** Payload data for this object node */ + data?: unknown; + /** Database scope for multi-tenant isolation */ + databaseId?: string; + /** Content-addressed UUID v5 — deterministic hash of (data, kids, ktree) */ + id?: string; + /** Ordered array of child object IDs */ + kids?: string[]; + /** Ordered array of child path names (parallel to kids) */ + ktree?: string[]; } -/** A filter to be used against `FunctionCapabilityBinding` object types. All fields are combined with a logical ‘and.’ */ -export interface FunctionCapabilityBindingFilter { +/** A filter to be used against `InfraRef` object types. All fields are combined with a logical ‘and.’ */ +export interface InfraRefFilter { /** Checks for all expressions in this list. */ - and?: FunctionCapabilityBindingFilter[]; - /** Filter by the object’s `bucketId` field. */ - bucketId?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; + and?: InfraRefFilter[]; + /** Filter by the object’s `commitId` field. */ + commitId?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `function` relation. */ - function?: FunctionDefinitionFilter; - /** A related `function` exists. */ - functionExists?: boolean; - /** Filter by the object’s `functionId` field. */ - functionId?: UUIDFilter; - /** Filter by the object’s `graphId` field. */ - graphId?: UUIDFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `key` field. */ - key?: StringFilter; - /** Filter by the object’s `lifecycle` field. */ - lifecycle?: StringFilter; - /** Filter by the object’s `metadata` field. */ - metadata?: JSONFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; /** Negates the expression. */ - not?: FunctionCapabilityBindingFilter; + not?: InfraRefFilter; /** Checks for any expressions in this list. */ - or?: FunctionCapabilityBindingFilter[]; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; + or?: InfraRefFilter[]; + /** Filter by the object’s `storeId` field. */ + storeId?: UUIDFilter; } -/** An input for mutations affecting `FunctionCapabilityBinding` */ -export interface FunctionCapabilityBindingInput { - /** Bucket this capability targets (exactly one typed target is set) */ - bucketId?: string; - createdAt?: string; - /** Database that owns this resource (database-scoped isolation) */ +/** An input for mutations affecting `InfraRef` */ +export interface InfraRefInput { + /** Commit this ref points to */ + commitId?: string; + /** Database scope for multi-tenant isolation */ databaseId: string; - /** Function definition holding this capability (exactly one of function_id / graph_id is set) */ - functionId?: string; - /** Flow graph holding this capability (exactly one of function_id / graph_id is set) */ - graphId?: string; + /** Unique ref identifier */ id?: string; - /** Runtime handle the holder addresses this capability by (e.g. default, scratch) */ - key?: string; - /** Lifecycle the capability applies to: deployment (build/deploy time), execution (per invocation), root_execution (root of a graph execution tree) */ - lifecycle: string; - /** Per-binding annotations (no runtime semantics) */ - metadata?: unknown; - updatedAt?: string; + /** Ref name (e.g. HEAD, main) */ + name: string; + /** Store this ref belongs to */ + storeId: string; } -/** Represents an update to a `FunctionCapabilityBinding`. Fields that are set will be updated. */ -export interface FunctionCapabilityBindingPatch { - /** Bucket this capability targets (exactly one typed target is set) */ - bucketId?: string; - createdAt?: string; - /** Database that owns this resource (database-scoped isolation) */ +/** Represents an update to a `InfraRef`. Fields that are set will be updated. */ +export interface InfraRefPatch { + /** Commit this ref points to */ + commitId?: string; + /** Database scope for multi-tenant isolation */ databaseId?: string; - /** Function definition holding this capability (exactly one of function_id / graph_id is set) */ - functionId?: string; - /** Flow graph holding this capability (exactly one of function_id / graph_id is set) */ - graphId?: string; + /** Unique ref identifier */ id?: string; - /** Runtime handle the holder addresses this capability by (e.g. default, scratch) */ - key?: string; - /** Lifecycle the capability applies to: deployment (build/deploy time), execution (per invocation), root_execution (root of a graph execution tree) */ - lifecycle?: string; - /** Per-binding annotations (no runtime semantics) */ - metadata?: unknown; - updatedAt?: string; + /** Ref name (e.g. HEAD, main) */ + name?: string; + /** Store this ref belongs to */ + storeId?: string; } -/** A filter to be used against `FunctionDefinition` object types. All fields are combined with a logical ‘and.’ */ -export interface FunctionDefinitionFilter { - /** Filter by the object’s `accessChannels` field. */ - accessChannels?: StringListFilter; +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; + path?: string[]; + 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. */ - and?: FunctionDefinitionFilter[]; - /** Filter by the object’s `category` field. */ - category?: StringFilter; - /** Filter by the object’s `concurrency` field. */ - concurrency?: IntFilter; - /** Filter by the object’s `cpuLimitMillicores` field. */ - cpuLimitMillicores?: BigIntFilter; - /** Filter by the object’s `cpuRequestMillicores` field. */ - cpuRequestMillicores?: BigIntFilter; + and?: InfraStoreFilter[]; /** 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 `fnCategory` field. */ - fnCategory?: StringFilter; - /** Filter by the object’s `functionApiBindings` relation. */ - functionApiBindings?: FunctionDefinitionToManyFunctionApiBindingFilter; - /** `functionApiBindings` exist. */ - functionApiBindingsExist?: boolean; - /** Filter by the object’s `functionCapabilityBindingsByFunctionId` relation. */ - functionCapabilityBindingsByFunctionId?: FunctionDefinitionToManyFunctionCapabilityBindingFilter; - /** `functionCapabilityBindingsByFunctionId` exist. */ - functionCapabilityBindingsByFunctionIdExist?: boolean; - /** Filter by the object’s `functionColumns` field. */ - functionColumns?: JSONFilter; - /** Filter by the object’s `graphId` field. */ - graphId?: UUIDFilter; - /** Filter by the object’s `icon` field. */ - icon?: StringFilter; + /** Filter by the object’s `hash` field. */ + hash?: UUIDFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `image` field. */ - image?: StringFilter; - /** Filter by the object’s `inputs` field. */ - inputs?: JSONFilter; - /** Filter by the object’s `integrations` field. */ - integrations?: StringListFilter; - /** Filter by the object’s `isPublished` field. */ - isPublished?: BooleanFilter; - /** Filter by the object’s `maxAttempts` field. */ - maxAttempts?: IntFilter; - /** Filter by the object’s `memoryLimitBytes` field. */ - memoryLimitBytes?: BigIntFilter; - /** Filter by the object’s `memoryRequestBytes` field. */ - memoryRequestBytes?: BigIntFilter; - /** Filter by the object’s `moduleTable` field. */ - moduleTable?: StringFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; /** Negates the expression. */ - not?: FunctionDefinitionFilter; + not?: InfraStoreFilter; /** Checks for any expressions in this list. */ - or?: FunctionDefinitionFilter[]; - /** Filter by the object’s `outputs` field. */ - outputs?: JSONFilter; - /** Filter by the object’s `payloadArgs` field. */ - payloadArgs?: JSONFilter; - /** Filter by the object’s `priority` field. */ - priority?: IntFilter; - /** Filter by the object’s `props` field. */ - props?: JSONFilter; - /** Filter by the object’s `protected` field. */ - protected?: BooleanFilter; - /** Filter by the object’s `publishedAt` field. */ - publishedAt?: DatetimeFilter; - /** Filter by the object’s `queueName` field. */ - queueName?: StringFilter; - /** Filter by the object’s `requiredBuckets` field. */ - 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. */ - runtime?: StringFilter; - /** Filter by the object’s `scaleMax` field. */ - scaleMax?: IntFilter; - /** Filter by the object’s `scaleMin` field. */ - scaleMin?: IntFilter; - /** Filter by the object’s `targetFunction` field. */ - targetFunction?: StringFilter; - /** Filter by the object’s `targetSchema` field. */ - targetSchema?: StringFilter; - /** Filter by the object’s `taskIdentifier` field. */ - taskIdentifier?: StringFilter; - /** Filter by the object’s `timeoutSeconds` field. */ - timeoutSeconds?: IntFilter; + or?: InfraStoreFilter[]; +} +/** An input for mutations affecting `InfraStore` */ +export interface InfraStoreInput { + /** Timestamp of store creation */ + createdAt?: string; + /** Database scope for multi-tenant isolation */ + databaseId: string; + /** Current root object hash of this store */ + hash?: string; + /** Unique store identifier */ + id?: string; + /** Human-readable store name */ + name: string; +} +/** Represents an update to a `InfraStore`. Fields that are set will be updated. */ +export interface InfraStorePatch { + /** Timestamp of store creation */ + createdAt?: string; + /** Database scope for multi-tenant isolation */ + databaseId?: string; + /** Current root object hash of this store */ + hash?: string; + /** Unique store identifier */ + id?: string; + /** Human-readable store name */ + name?: string; +} +export interface InitEmptyRepoInput { + clientMutationId?: string; + sId?: string; + storeId?: string; +} +export interface InsertNodeAtPathInput { + clientMutationId?: string; + data?: unknown; + kids?: string[]; + ktree?: string[]; + path?: string[]; + 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. */ + and?: IntegrationProviderFilter[]; + /** Filter by the object’s `brand` field. */ + brand?: JSONFilter; + /** Filter by the object’s `category` field. */ + category?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `icon` field. */ + icon?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `logo` field. */ + logo?: ConstructiveInternalTypeImageFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: IntegrationProviderFilter; + /** Checks for any expressions in this list. */ + or?: IntegrationProviderFilter[]; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; - /** Filter by the object’s `volatile` field. */ - volatile?: BooleanFilter; - /** Filter by the object’s `webhookEndpoints` relation. */ - webhookEndpoints?: FunctionDefinitionToManyWebhookEndpointFilter; - /** `webhookEndpoints` exist. */ - webhookEndpointsExist?: boolean; } -/** An input for mutations affecting `FunctionDefinition` */ -export interface FunctionDefinitionInput { - /** 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; - /** Knative containerConcurrency — max concurrent requests per pod instance */ - concurrency?: number; +/** An input for mutations affecting `IntegrationProvider` */ +export interface IntegrationProviderInput { + /** Brand metadata: colors, fonts, and other provider-specific styling. Not a foreign key. */ + brand?: unknown; + /** Browser category (e.g. email, database, storage, ai, analytics) */ + category?: string; createdAt?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - /** Human-readable description of what this function does */ + /** Short description of what this integration provides and when to use it */ description?: string; - /** Palette grouping category (e.g. email, data, ai, custom) */ - fnCategory?: string; - /** Ordered array of module_table column names holding the generated function names to invoke when runtime=sql (module mode). NULL for direct mode and other runtimes. */ - functionColumns?: unknown; - /** Existing flow graph invoked when runtime=graph. Required for graph runtime and forbidden for all other runtimes. */ - graphId?: string; - /** Icon identifier for UI palette rendering (e.g. mail, database, code) */ + /** Icon identifier for the UI (e.g. mail, database, cloud) */ icon?: string; id?: string; - /** Docker image reference (e.g. ghcr.io/constructive-io/email-send-fn:latest). Required when runtime=http or runtime=resource. NULL for inline functions. */ - image?: string; - /** Data input ports: [{name, type, description?, optional?, multi?, schema?}] */ - inputs?: unknown; - /** Provider slugs (e.g. mailgun, postgres) associated with this function. The UI uses this to auto-fill required_secrets and required_configs from integration_providers. */ - integrations?: string[]; - /** Whether this function definition is published to the public catalog for direct authenticated invocation. Default false = internal-only via add_job() */ - isPublished?: boolean; - /** Maximum retry attempts for the underlying job */ - maxAttempts?: number; - /** metaschema_modules_public table whose per-database row carries the generated function names when runtime=sql (module mode). NULL for direct mode and other runtimes. */ - moduleTable?: string; - /** Function name within category (e.g. send_verification_link, process_file_embedding) */ + /** Provider logo as an image domain value (url, id, key, bucket, provider) */ + logo?: ConstructiveInternalTypeImage; + /** Human-readable brand name (e.g. 'Mailgun', 'PostgreSQL') */ name: string; - /** Data output ports: [{name, type, description?, optional?, multi?, schema?}] */ - outputs?: unknown; - /** Ordered bind-parameter mapping for runtime=sql: [{name, type}]. payload[name] is bound as $n::type. */ - payloadArgs?: unknown; - /** Job priority (lower = higher priority) */ - priority?: number; - /** Configuration properties: [{name, type, default?, description?, required?, schema?}] */ - props?: unknown; - /** Protected platform definition: narrower scopes cannot register the same task_identifier */ - protected?: boolean; - /** Timestamp when this function was published. NULL means immediately published when is_published is true; future timestamps delay public visibility */ - publishedAt?: string; - /** Job queue name for serialization (e.g. email, ai, default) */ - queueName?: string; - /** 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. */ + /** Canonical config requirements for this provider: array of (name, required, provider) tuples. Used by the UI to auto-fill function/resource required_configs. */ 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. */ + /** Canonical secret requirements for this provider: array of (name, required, provider) tuples. Used by the UI to auto-fill function/resource required_secrets. */ requiredSecrets?: ResourceRequirementInput[]; - /** Container resource requests and limits: {requests: {memory, cpu}, limits: {memory, cpu}} */ - resources?: unknown; - /** Execution mode: http (Knative Service dispatch), inline (in-process in compute worker), handler (registered infrastructure handler), sql (generic SQL dispatch via a trusted direct target or module-resolved function names), resource (Kubernetes Job via the resource module with node-gateway callbacks), or graph (existing flow graph referenced by graph_id) */ - runtime?: string; - /** Maximum pod count for Knative autoscaling (maxScale) */ - scaleMax?: number; - /** Minimum pod count for Knative autoscaling (minScale) */ - scaleMin?: number; - /** Name of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. */ - targetFunction?: string; - /** Schema of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. */ - targetSchema?: string; - /** Knative request timeout in seconds */ - timeoutSeconds?: number; + /** Stable URL-safe identifier for the provider. Other tables match by this string, not by FK. */ + slug: string; updatedAt?: string; - /** Whether this function has side effects and cannot be cached or memoized */ - volatile?: boolean; } -/** 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, page, webhook). Internal worker dispatch is implicit and never listed. Default [] = worker only. */ - accessChannels?: string[]; - /** Function task category (e.g. email, embed, chunk, custom) */ +/** Represents an update to a `IntegrationProvider`. Fields that are set will be updated. */ +export interface IntegrationProviderPatch { + /** Brand metadata: colors, fonts, and other provider-specific styling. Not a foreign key. */ + brand?: unknown; + /** Browser category (e.g. email, database, storage, ai, analytics) */ category?: string; - /** Knative containerConcurrency — max concurrent requests per pod instance */ - concurrency?: number; createdAt?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId?: string; - /** Human-readable description of what this function does */ + /** Short description of what this integration provides and when to use it */ description?: string; - /** Palette grouping category (e.g. email, data, ai, custom) */ - fnCategory?: string; - /** Ordered array of module_table column names holding the generated function names to invoke when runtime=sql (module mode). NULL for direct mode and other runtimes. */ - functionColumns?: unknown; - /** Existing flow graph invoked when runtime=graph. Required for graph runtime and forbidden for all other runtimes. */ - graphId?: string; - /** Icon identifier for UI palette rendering (e.g. mail, database, code) */ + /** Icon identifier for the UI (e.g. mail, database, cloud) */ icon?: string; id?: string; - /** Docker image reference (e.g. ghcr.io/constructive-io/email-send-fn:latest). Required when runtime=http or runtime=resource. NULL for inline functions. */ - image?: string; - /** Data input ports: [{name, type, description?, optional?, multi?, schema?}] */ - inputs?: unknown; - /** Provider slugs (e.g. mailgun, postgres) associated with this function. The UI uses this to auto-fill required_secrets and required_configs from integration_providers. */ - integrations?: string[]; - /** Whether this function definition is published to the public catalog for direct authenticated invocation. Default false = internal-only via add_job() */ - isPublished?: boolean; - /** Maximum retry attempts for the underlying job */ - maxAttempts?: number; - /** metaschema_modules_public table whose per-database row carries the generated function names when runtime=sql (module mode). NULL for direct mode and other runtimes. */ - moduleTable?: string; - /** Function name within category (e.g. send_verification_link, process_file_embedding) */ + /** Provider logo as an image domain value (url, id, key, bucket, provider) */ + logo?: ConstructiveInternalTypeImage; + /** Upload for Provider logo as an image domain value (url, id, key, bucket, provider) */ + logoUpload?: File; + /** Human-readable brand name (e.g. 'Mailgun', 'PostgreSQL') */ name?: string; - /** Data output ports: [{name, type, description?, optional?, multi?, schema?}] */ - outputs?: unknown; - /** Ordered bind-parameter mapping for runtime=sql: [{name, type}]. payload[name] is bound as $n::type. */ - payloadArgs?: unknown; - /** Job priority (lower = higher priority) */ - priority?: number; - /** Configuration properties: [{name, type, default?, description?, required?, schema?}] */ - props?: unknown; - /** Protected platform definition: narrower scopes cannot register the same task_identifier */ - protected?: boolean; - /** Timestamp when this function was published. NULL means immediately published when is_published is true; future timestamps delay public visibility */ - publishedAt?: string; - /** Job queue name for serialization (e.g. email, ai, default) */ - queueName?: string; - /** 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. */ + /** Canonical config requirements for this provider: array of (name, required, provider) tuples. Used by the UI to auto-fill function/resource required_configs. */ 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. */ + /** Canonical secret requirements for this provider: array of (name, required, provider) tuples. Used by the UI to auto-fill function/resource required_secrets. */ requiredSecrets?: ResourceRequirementInput[]; - /** Container resource requests and limits: {requests: {memory, cpu}, limits: {memory, cpu}} */ - resources?: unknown; - /** Execution mode: http (Knative Service dispatch), inline (in-process in compute worker), handler (registered infrastructure handler), sql (generic SQL dispatch via a trusted direct target or module-resolved function names), resource (Kubernetes Job via the resource module with node-gateway callbacks), or graph (existing flow graph referenced by graph_id) */ - runtime?: string; - /** Maximum pod count for Knative autoscaling (maxScale) */ - scaleMax?: number; - /** Minimum pod count for Knative autoscaling (minScale) */ - scaleMin?: number; - /** Name of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. */ - targetFunction?: string; - /** Schema of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. */ - targetSchema?: string; - /** Knative request timeout in seconds */ - timeoutSeconds?: number; + /** Stable URL-safe identifier for the provider. Other tables match by this string, not by FK. */ + slug?: string; updatedAt?: string; - /** Whether this function has side effects and cannot be cached or memoized */ - volatile?: boolean; -} -/** A filter to be used against many `FunctionApiBinding` object types. All fields are combined with a logical ‘and.’ */ -export interface FunctionDefinitionToManyFunctionApiBindingFilter { - /** Filters to entities where every related entity matches. */ - every?: FunctionApiBindingFilter; - /** Filters to entities where no related entity matches. */ - none?: FunctionApiBindingFilter; - /** Filters to entities where at least one related entity matches. */ - some?: FunctionApiBindingFilter; -} -/** A filter to be used against many `FunctionCapabilityBinding` object types. All fields are combined with a logical ‘and.’ */ -export interface FunctionDefinitionToManyFunctionCapabilityBindingFilter { - /** Filters to entities where every related entity matches. */ - every?: FunctionCapabilityBindingFilter; - /** Filters to entities where no related entity matches. */ - none?: FunctionCapabilityBindingFilter; - /** Filters to entities where at least one related entity matches. */ - some?: FunctionCapabilityBindingFilter; } -/** A filter to be used against many `WebhookEndpoint` object types. All fields are combined with a logical ‘and.’ */ -export interface FunctionDefinitionToManyWebhookEndpointFilter { - /** Filters to entities where every related entity matches. */ - every?: WebhookEndpointFilter; - /** Filters to entities where no related entity matches. */ - none?: WebhookEndpointFilter; - /** Filters to entities where at least one related entity matches. */ - some?: WebhookEndpointFilter; +/** A filter to be used against Interval fields. All fields are combined with a logical ‘and.’ */ +export interface IntervalFilter { + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: IntervalInput; + /** Equal to the specified value. */ + equalTo?: IntervalInput; + /** Greater than the specified value. */ + greaterThan?: IntervalInput; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: IntervalInput; + /** Included in the specified list. */ + in?: IntervalInput[]; + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Less than the specified value. */ + lessThan?: IntervalInput; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: IntervalInput; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: IntervalInput; + /** Not equal to the specified value. */ + notEqualTo?: IntervalInput; + /** Not included in the specified list. */ + notIn?: IntervalInput[]; } -/** A filter to be used against `FunctionDeploymentEvent` object types. All fields are combined with a logical ‘and.’ */ -export interface FunctionDeploymentEventFilter { +/** An interval of time that has passed where the smallest distinct unit is a second. */ +export interface IntervalInput { + /** A quantity of days. */ + days?: number; + /** A quantity of hours. */ + hours?: number; + /** A quantity of minutes. */ + minutes?: number; + /** A quantity of months. */ + months?: number; + /** + * A quantity of seconds. This is the only non-integer field, as all the other + * fields will dump their overflow into a smaller unit of time. Intervals don’t + * have a smaller unit than seconds. + */ + seconds?: number; + /** A quantity of years. */ + years?: number; +} +/** A filter to be used against `NamespaceEvent` object types. All fields are combined with a logical ‘and.’ */ +export interface NamespaceEventFilter { /** Filter by the object’s `actorId` field. */ actorId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: FunctionDeploymentEventFilter[]; + and?: NamespaceEventFilter[]; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `deploymentId` field. */ - deploymentId?: UUIDFilter; /** Filter by the object’s `eventType` field. */ eventType?: StringFilter; /** Filter by the object’s `id` field. */ @@ -3496,934 +9120,1312 @@ export interface FunctionDeploymentEventFilter { message?: StringFilter; /** Filter by the object’s `metadata` field. */ metadata?: JSONFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; /** Negates the expression. */ - not?: FunctionDeploymentEventFilter; + not?: NamespaceEventFilter; /** Checks for any expressions in this list. */ - or?: FunctionDeploymentEventFilter[]; + or?: NamespaceEventFilter[]; } -/** An input for mutations affecting `FunctionDeploymentEvent` */ -export interface FunctionDeploymentEventInput { - /** User who triggered this event (NULL for system/automated) */ +/** An input for mutations affecting `NamespaceEvent` */ +export interface NamespaceEventInput { + /** User who triggered this event; NULL only when no human actor was proven */ actorId?: string; /** Event timestamp (partition key) */ createdAt?: string; /** Database that owns this resource (database-scoped isolation) */ databaseId: string; - /** Deployment this event belongs to */ - deploymentId: string; - /** Event type: provisioned, scaled, failed, deactivated, redeployed, health_check */ + /** Event type: created, activated, deactivated, labels_updated, annotations_updated, renamed */ eventType: string; /** Unique event identifier */ id?: string; /** Human-readable description of the event */ message?: string; - /** Structured context (old/new values, error details, etc.) */ + /** Structured context (old/new values, labels diff, etc.) */ metadata?: unknown; + /** Namespace this event belongs to */ + namespaceId: string; } -/** Represents an update to a `FunctionDeploymentEvent`. Fields that are set will be updated. */ -export interface FunctionDeploymentEventPatch { - /** User who triggered this event (NULL for system/automated) */ +/** Represents an update to a `NamespaceEvent`. Fields that are set will be updated. */ +export interface NamespaceEventPatch { + /** User who triggered this event; NULL only when no human actor was proven */ actorId?: string; /** Event timestamp (partition key) */ createdAt?: string; /** Database that owns this resource (database-scoped isolation) */ databaseId?: string; - /** Deployment this event belongs to */ - deploymentId?: string; - /** Event type: provisioned, scaled, failed, deactivated, redeployed, health_check */ + /** Event type: created, activated, deactivated, labels_updated, annotations_updated, renamed */ eventType?: string; /** Unique event identifier */ id?: string; /** Human-readable description of the event */ message?: string; - /** Structured context (old/new values, error details, etc.) */ + /** Structured context (old/new values, labels diff, etc.) */ metadata?: unknown; + /** Namespace this event belongs to */ + namespaceId?: string; } -/** A filter to be used against `FunctionDeployment` object types. All fields are combined with a logical ‘and.’ */ -export interface FunctionDeploymentFilter { +/** A filter to be used against `Namespace` object types. All fields are combined with a logical ‘and.’ */ +export interface NamespaceFilter { /** Checks for all expressions in this list. */ - and?: FunctionDeploymentFilter[]; + and?: NamespaceFilter[]; /** Filter by the object’s `annotations` field. */ annotations?: JSONFilter; - /** Filter by the object’s `concurrency` field. */ - concurrency?: IntFilter; + /** Filter by the object’s `builderBindings` relation. */ + builderBindings?: NamespaceToManyBuilderBindingFilter; + /** `builderBindings` exist. */ + builderBindingsExist?: boolean; + /** Filter by the object’s `clusterId` field. */ + clusterId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `errorCount` field. */ - errorCount?: IntFilter; - /** Filter by the object’s `handlerName` field. */ - handlerName?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `functionDeployments` relation. */ + functionDeployments?: NamespaceToManyFunctionDeploymentFilter; + /** `functionDeployments` exist. */ + functionDeploymentsExist?: boolean; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `image` field. */ - image?: StringFilter; - /** Filter by the object’s `imageVersion` field. */ - imageVersion?: StringFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; + /** Filter by the object’s `isManaged` field. */ + isManaged?: BooleanFilter; /** Filter by the object’s `labels` field. */ labels?: JSONFilter; /** Filter by the object’s `lastError` field. */ lastError?: StringFilter; - /** Filter by the object’s `lastErrorAt` field. */ - lastErrorAt?: DatetimeFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `namespaceName` field. */ + namespaceName?: StringFilter; /** Negates the expression. */ - not?: FunctionDeploymentFilter; + not?: NamespaceFilter; /** 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. */ - revision?: IntFilter; - /** Filter by the object’s `scaleMax` field. */ - scaleMax?: IntFilter; - /** Filter by the object’s `scaleMin` field. */ - scaleMin?: IntFilter; - /** Filter by the object’s `serviceName` field. */ - serviceName?: StringFilter; - /** Filter by the object’s `serviceUrl` field. */ - serviceUrl?: StringFilter; + or?: NamespaceFilter[]; + /** Filter by the object’s `registryBindings` relation. */ + registryBindings?: NamespaceToManyRegistryBindingFilter; + /** `registryBindings` exist. */ + registryBindingsExist?: boolean; + /** Filter by the object’s `resourceDefinitions` relation. */ + resourceDefinitions?: NamespaceToManyResourceDefinitionFilter; + /** `resourceDefinitions` exist. */ + resourceDefinitionsExist?: boolean; + /** Filter by the object’s `resourceInstallations` relation. */ + resourceInstallations?: NamespaceToManyResourceInstallationFilter; + /** `resourceInstallations` exist. */ + resourceInstallationsExist?: boolean; + /** Filter by the object’s `resources` relation. */ + resources?: NamespaceToManyResourceFilter; + /** `resources` exist. */ + resourcesExist?: boolean; /** Filter by the object’s `status` field. */ status?: StringFilter; - /** Filter by the object’s `timeoutSeconds` field. */ - timeoutSeconds?: IntFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `webhookEndpoints` relation. */ + webhookEndpoints?: NamespaceToManyWebhookEndpointFilter; + /** `webhookEndpoints` exist. */ + webhookEndpointsExist?: boolean; } -/** An input for mutations affecting `FunctionDeployment` */ -export interface FunctionDeploymentInput { +/** An input for mutations affecting `Namespace` */ +export interface NamespaceInput { /** Freeform metadata for tooling and operational notes */ annotations?: unknown; - /** Max concurrent requests per pod (NULL = inherit from definition) */ - concurrency?: number; + /** Cluster this namespace is projected onto; NULL = the cluster the reconciler runs in */ + clusterId?: string; createdAt?: string; /** Database that owns this resource (database-scoped isolation) */ databaseId: string; - /** Cumulative error count for this deployment */ - errorCount?: number; - /** Handler directory name (e.g. email, document) — used as FN_HANDLER_NAME in combined-image mode to select the entry point */ - handlerName?: string; + /** Optional human-readable description of this namespace */ + description?: string; id?: string; - /** Logical image name — the handler identity and grouping key (e.g. fn-email). No registry host or tag; tag lives in image_version. */ - image: string; - /** Image tag/version for the handler container (e.g. latest, 2.6.4) */ - imageVersion?: string; - /** Key/value pairs for selecting and filtering deployments */ + /** Whether this namespace is active (soft-disable for filtering) */ + isActive?: boolean; + /** true = provisioned by the platform via jobs, false = unmanaged/platform-native (bootstrapped externally) */ + isManaged?: boolean; + /** Key/value pairs for selecting and filtering namespaces */ labels?: unknown; - /** Most recent provisioning or runtime error message */ + /** Most recent provisioning or reconcile error message */ lastError?: string; - /** Timestamp of the most recent error */ - 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) */ - revision?: number; - /** Maximum replica count (NULL = inherit from definition or Knative default) */ - scaleMax?: number; - /** Minimum replica count (NULL = inherit from definition or Knative default) */ - scaleMin?: number; - /** Knative service name — a randomly minted cute name (unique_names.generate_name() + random hex suffix) assigned by the service_url trigger; unique per namespace, not derived from the image */ - serviceName?: string; - /** Knative service URL (http://{service-name}.{namespace}.svc.cluster.local) — populated after provisioning */ - serviceUrl?: string; - /** Deployment lifecycle status: pending, provisioning, active, failed, scaled_to_zero, deactivated */ + /** Human-readable namespace name (e.g. default, production, oauth) */ + name: string; + /** Globally unique computed namespace identifier via inflection.underscore */ + namespaceName: string; + /** Namespace provisioning lifecycle status: pending, provisioning, active, failed */ status?: string; - /** Request timeout override in seconds (NULL = inherit from definition) */ - timeoutSeconds?: number; updatedAt?: string; } -/** Represents an update to a `FunctionDeployment`. Fields that are set will be updated. */ -export interface FunctionDeploymentPatch { +/** Represents an update to a `Namespace`. Fields that are set will be updated. */ +export interface NamespacePatch { /** Freeform metadata for tooling and operational notes */ annotations?: unknown; - /** Max concurrent requests per pod (NULL = inherit from definition) */ - concurrency?: number; + /** Cluster this namespace is projected onto; NULL = the cluster the reconciler runs in */ + clusterId?: string; createdAt?: string; /** Database that owns this resource (database-scoped isolation) */ databaseId?: string; - /** Cumulative error count for this deployment */ - errorCount?: number; - /** Handler directory name (e.g. email, document) — used as FN_HANDLER_NAME in combined-image mode to select the entry point */ - handlerName?: string; + /** Optional human-readable description of this namespace */ + description?: string; id?: string; - /** Logical image name — the handler identity and grouping key (e.g. fn-email). No registry host or tag; tag lives in image_version. */ - image?: string; - /** Image tag/version for the handler container (e.g. latest, 2.6.4) */ - imageVersion?: string; - /** Key/value pairs for selecting and filtering deployments */ + /** Whether this namespace is active (soft-disable for filtering) */ + isActive?: boolean; + /** true = provisioned by the platform via jobs, false = unmanaged/platform-native (bootstrapped externally) */ + isManaged?: boolean; + /** Key/value pairs for selecting and filtering namespaces */ labels?: unknown; - /** Most recent provisioning or runtime error message */ + /** Most recent provisioning or reconcile error message */ lastError?: string; - /** Timestamp of the most recent error */ - 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) */ - revision?: number; - /** Maximum replica count (NULL = inherit from definition or Knative default) */ - scaleMax?: number; - /** Minimum replica count (NULL = inherit from definition or Knative default) */ - scaleMin?: number; - /** Knative service name — a randomly minted cute name (unique_names.generate_name() + random hex suffix) assigned by the service_url trigger; unique per namespace, not derived from the image */ - serviceName?: string; - /** Knative service URL (http://{service-name}.{namespace}.svc.cluster.local) — populated after provisioning */ - serviceUrl?: string; - /** Deployment lifecycle status: pending, provisioning, active, failed, scaled_to_zero, deactivated */ + /** Human-readable namespace name (e.g. default, production, oauth) */ + name?: string; + /** Globally unique computed namespace identifier via inflection.underscore */ + namespaceName?: string; + /** Namespace provisioning lifecycle status: pending, provisioning, active, failed */ status?: string; - /** Request timeout override in seconds (NULL = inherit from definition) */ - timeoutSeconds?: number; updatedAt?: string; } -/** A filter to be used against `FunctionExecutionLog` object types. All fields are combined with a logical ‘and.’ */ -export interface FunctionExecutionLogFilter { +/** A filter to be used against many `BuilderBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface NamespaceToManyBuilderBindingFilter { + /** Filters to entities where every related entity matches. */ + every?: BuilderBindingFilter; + /** Filters to entities where no related entity matches. */ + none?: BuilderBindingFilter; + /** Filters to entities where at least one related entity matches. */ + some?: BuilderBindingFilter; +} +/** A filter to be used against many `FunctionDeployment` object types. All fields are combined with a logical ‘and.’ */ +export interface NamespaceToManyFunctionDeploymentFilter { + /** Filters to entities where every related entity matches. */ + every?: FunctionDeploymentFilter; + /** Filters to entities where no related entity matches. */ + none?: FunctionDeploymentFilter; + /** Filters to entities where at least one related entity matches. */ + some?: FunctionDeploymentFilter; +} +/** A filter to be used against many `RegistryBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface NamespaceToManyRegistryBindingFilter { + /** Filters to entities where every related entity matches. */ + every?: RegistryBindingFilter; + /** Filters to entities where no related entity matches. */ + none?: RegistryBindingFilter; + /** Filters to entities where at least one related entity matches. */ + some?: RegistryBindingFilter; +} +/** A filter to be used against many `ResourceDefinition` object types. All fields are combined with a logical ‘and.’ */ +export interface NamespaceToManyResourceDefinitionFilter { + /** Filters to entities where every related entity matches. */ + every?: ResourceDefinitionFilter; + /** Filters to entities where no related entity matches. */ + none?: ResourceDefinitionFilter; + /** Filters to entities where at least one related entity matches. */ + some?: ResourceDefinitionFilter; +} +/** A filter to be used against many `Resource` object types. All fields are combined with a logical ‘and.’ */ +export interface NamespaceToManyResourceFilter { + /** Filters to entities where every related entity matches. */ + every?: ResourceFilter; + /** Filters to entities where no related entity matches. */ + none?: ResourceFilter; + /** Filters to entities where at least one related entity matches. */ + some?: ResourceFilter; +} +/** A filter to be used against many `ResourceInstallation` object types. All fields are combined with a logical ‘and.’ */ +export interface NamespaceToManyResourceInstallationFilter { + /** Filters to entities where every related entity matches. */ + every?: ResourceInstallationFilter; + /** Filters to entities where no related entity matches. */ + none?: ResourceInstallationFilter; + /** Filters to entities where at least one related entity matches. */ + some?: ResourceInstallationFilter; +} +/** A filter to be used against many `WebhookEndpoint` object types. All fields are combined with a logical ‘and.’ */ +export interface NamespaceToManyWebhookEndpointFilter { + /** Filters to entities where every related entity matches. */ + every?: WebhookEndpointFilter; + /** Filters to entities where no related entity matches. */ + none?: WebhookEndpointFilter; + /** Filters to entities where at least one related entity matches. */ + some?: WebhookEndpointFilter; +} +/** A filter to be used against `PlatformBuild` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformBuildFilter { /** Filter by the object’s `actorId` field. */ actorId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: FunctionExecutionLogFilter[]; + and?: PlatformBuildFilter[]; + /** Filter by the object’s `attempt` field. */ + attempt?: IntFilter; + /** Filter by the object’s `commitSha` field. */ + commitSha?: StringFilter; + /** Filter by the object’s `conclusion` field. */ + conclusion?: StringFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `event` relation. */ + event?: PlatformRepositoryEventFilter; + /** A related `event` exists. */ + eventExists?: boolean; + /** Filter by the object’s `eventId` field. */ + eventId?: UUIDFilter; + /** Filter by the object’s `finishedAt` field. */ + finishedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `invocationId` field. */ - invocationId?: UUIDFilter; - /** Filter by the object’s `logLevel` field. */ - logLevel?: StringFilter; - /** Filter by the object’s `message` field. */ - message?: StringFilter; + /** Filter by the object’s `imageRef` field. */ + imageRef?: StringFilter; + /** Filter by the object’s `jobId` field. */ + jobId?: BigIntFilter; + /** Filter by the object’s `logs` field. */ + logs?: ConstructiveInternalTypeUploadFilter; + /** Filter by the object’s `matrixKey` field. */ + matrixKey?: StringFilter; /** Filter by the object’s `metadata` field. */ metadata?: JSONFilter; /** Negates the expression. */ - not?: FunctionExecutionLogFilter; + not?: PlatformBuildFilter; /** Checks for any expressions in this list. */ - or?: FunctionExecutionLogFilter[]; - /** Filter by the object’s `taskIdentifier` field. */ - taskIdentifier?: StringFilter; -} -/** An input for mutations affecting `FunctionExecutionLog` */ -export interface FunctionExecutionLogInput { - /** User who triggered the execution (NULL for system/cron) */ + or?: PlatformBuildFilter[]; + /** Filter by the object’s `proposal` relation. */ + proposal?: PlatformProposalFilter; + /** A related `proposal` exists. */ + proposalExists?: boolean; + /** Filter by the object’s `proposalId` field. */ + proposalId?: UUIDFilter; + /** Filter by the object’s `ref` field. */ + ref?: StringFilter; + /** Filter by the object’s `repository` relation. */ + repository?: PlatformRepositoryFilter; + /** Filter by the object’s `repositoryId` field. */ + repositoryId?: UUIDFilter; + /** Filter by the object’s `startedAt` field. */ + startedAt?: DatetimeFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** Filter by the object’s `workflow` relation. */ + workflow?: PlatformRepositoryWorkflowFilter; + /** A related `workflow` exists. */ + workflowExists?: boolean; + /** Filter by the object’s `workflowId` field. */ + workflowId?: UUIDFilter; +} +/** An input for mutations affecting `PlatformBuild` */ +export interface PlatformBuildInput { + /** Authenticated actor this build is attributed to; NULL only when no human actor was proven */ actorId?: string; - /** Log entry timestamp (partition key) */ + /** Retry attempt number for this workflow, commit, and matrix shard */ + attempt?: number; + /** Commit this build built */ + commitSha?: string; + /** Verdict: NULL while pending/running, then success, failure, neutral, cancelled, skipped, timed_out, or action_required */ + conclusion?: string; createdAt?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - /** Unique log entry identifier */ + createdByPrincipal?: string; + /** Event that triggered this build (NULL for a manual build) */ + eventId?: string; + /** When the build reached a terminal status */ + finishedAt?: string; id?: string; - /** Invocation this log entry belongs to (NULL for standalone job logs) */ - invocationId?: string; - /** Log severity: debug, info, warn, error */ - logLevel?: string; - /** Log message text */ - message: string; - /** Structured context (labels, trace data, extra fields) */ + /** Image reference this build produced (registry host/repository:tag; NULL when the build produced no image) */ + imageRef?: string; + /** app_jobs row running this build */ + jobId?: string; + /** Build log object in storage; step rows slice it by byte range */ + logs?: ConstructiveInternalTypeUpload; + /** Matrix shard identity; NULL for a non-matrix build */ + matrixKey?: string; + /** Build detail (step results, durations, failure reason) */ metadata?: unknown; - /** Function routing key (NULL for generic job logs) */ - taskIdentifier?: string; + /** Proposal this build checks (NULL for builds not tied to a proposal) */ + proposalId?: string; + /** Ref this build built */ + ref?: string; + /** Repository this build is of */ + repositoryId: string; + /** When the build began running */ + startedAt?: string; + /** Lifecycle: pending, running, succeeded, failed, cancelled */ + status?: string; + updatedAt?: string; + updatedByPrincipal?: string; + /** Workflow whose firing produced this build (NULL for a manual build) */ + workflowId?: string; } -/** Represents an update to a `FunctionExecutionLog`. Fields that are set will be updated. */ -export interface FunctionExecutionLogPatch { - /** User who triggered the execution (NULL for system/cron) */ +/** Represents an update to a `PlatformBuild`. Fields that are set will be updated. */ +export interface PlatformBuildPatch { + /** Authenticated actor this build is attributed to; NULL only when no human actor was proven */ actorId?: string; - /** Log entry timestamp (partition key) */ + /** Retry attempt number for this workflow, commit, and matrix shard */ + attempt?: number; + /** Commit this build built */ + commitSha?: string; + /** Verdict: NULL while pending/running, then success, failure, neutral, cancelled, skipped, timed_out, or action_required */ + conclusion?: string; createdAt?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId?: string; - /** Unique log entry identifier */ + createdByPrincipal?: string; + /** Event that triggered this build (NULL for a manual build) */ + eventId?: string; + /** When the build reached a terminal status */ + finishedAt?: string; id?: string; - /** Invocation this log entry belongs to (NULL for standalone job logs) */ - invocationId?: string; - /** Log severity: debug, info, warn, error */ - logLevel?: string; - /** Log message text */ - message?: string; - /** Structured context (labels, trace data, extra fields) */ + /** Image reference this build produced (registry host/repository:tag; NULL when the build produced no image) */ + imageRef?: string; + /** app_jobs row running this build */ + jobId?: string; + /** Build log object in storage; step rows slice it by byte range */ + logs?: ConstructiveInternalTypeUpload; + /** Upload for Build log object in storage; step rows slice it by byte range */ + logsUpload?: File; + /** Matrix shard identity; NULL for a non-matrix build */ + matrixKey?: string; + /** Build detail (step results, durations, failure reason) */ metadata?: unknown; - /** Function routing key (NULL for generic job logs) */ - taskIdentifier?: string; -} -/** A filter to be used against `FunctionGraphCommit` object types. All fields are combined with a logical ‘and.’ */ -export interface FunctionGraphCommitFilter { - /** Checks for all expressions in this list. */ - and?: FunctionGraphCommitFilter[]; - /** Filter by the object’s `authorId` field. */ - authorId?: UUIDFilter; - /** Filter by the object’s `committerId` field. */ - committerId?: UUIDFilter; - /** Filter by the object’s `date` field. */ - date?: DatetimeFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `message` field. */ - message?: StringFilter; - /** Negates the expression. */ - not?: FunctionGraphCommitFilter; - /** Checks for any expressions in this list. */ - or?: FunctionGraphCommitFilter[]; - /** Filter by the object’s `parentIds` field. */ - parentIds?: UUIDListFilter; - /** Filter by the object’s `scopeId` field. */ - scopeId?: UUIDFilter; - /** Filter by the object’s `storeId` field. */ - storeId?: UUIDFilter; - /** Filter by the object’s `treeId` field. */ - treeId?: UUIDFilter; -} -/** An input for mutations affecting `FunctionGraphCommit` */ -export interface FunctionGraphCommitInput { - /** User who authored the changes */ - authorId?: string; - /** User who committed (may differ from author) */ - committerId?: string; - /** Commit timestamp */ - date?: string; - /** Unique commit identifier */ - id?: string; - /** Optional commit message */ - message?: string; - /** Parent commit IDs (supports merge commits) */ - parentIds?: string[]; - /** Opaque store partition key for the global tier */ - scopeId: string; - /** Store this commit belongs to */ - storeId: string; - /** Root object ID of the tree snapshot at this commit */ - treeId?: string; -} -/** Represents an update to a `FunctionGraphCommit`. Fields that are set will be updated. */ -export interface FunctionGraphCommitPatch { - /** User who authored the changes */ - authorId?: string; - /** User who committed (may differ from author) */ - committerId?: string; - /** Commit timestamp */ - date?: string; - /** Unique commit identifier */ - id?: string; - /** Optional commit message */ - message?: string; - /** Parent commit IDs (supports merge commits) */ - parentIds?: string[]; - /** Opaque store partition key for the global tier */ - scopeId?: string; - /** Store this commit belongs to */ - storeId?: string; - /** Root object ID of the tree snapshot at this commit */ - treeId?: string; + /** Proposal this build checks (NULL for builds not tied to a proposal) */ + proposalId?: string; + /** Ref this build built */ + ref?: string; + /** Repository this build is of */ + repositoryId?: string; + /** When the build began running */ + startedAt?: string; + /** Lifecycle: pending, running, succeeded, failed, cancelled */ + status?: string; + updatedAt?: string; + updatedByPrincipal?: string; + /** Workflow whose firing produced this build (NULL for a manual build) */ + workflowId?: string; } -/** A filter to be used against `FunctionGraphExecution` object types. All fields are combined with a logical ‘and.’ */ -export interface FunctionGraphExecutionFilter { - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; +/** A filter to be used against `PlatformBuildStep` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformBuildStepFilter { /** Checks for all expressions in this list. */ - and?: FunctionGraphExecutionFilter[]; - /** Filter by the object’s `completedAt` field. */ - completedAt?: DatetimeFilter; - /** Filter by the object’s `currentWave` field. */ - currentWave?: IntFilter; - /** Filter by the object’s `definitionsCommitId` field. */ - definitionsCommitId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `entityType` field. */ - entityType?: StringFilter; - /** Filter by the object’s `errorCode` field. */ - errorCode?: StringFilter; - /** Filter by the object’s `errorMessage` field. */ - errorMessage?: StringFilter; - /** Filter by the object’s `executionPlan` field. */ - executionPlan?: JSONFilter; - /** Filter by the object’s `graph` relation. */ - graph?: FunctionGraphFilter; - /** Filter by the object’s `graphId` field. */ - graphId?: UUIDFilter; + and?: PlatformBuildStepFilter[]; + /** Filter by the object’s `buildId` field. */ + buildId?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `exitCode` field. */ + exitCode?: IntFilter; + /** Filter by the object’s `finishedAt` field. */ + finishedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `inputPayload` field. */ - inputPayload?: JSONFilter; - /** Filter by the object’s `invocationCreatedAt` field. */ - invocationCreatedAt?: DatetimeFilter; - /** Filter by the object’s `invocationId` field. */ - invocationId?: UUIDFilter; - /** Filter by the object’s `lastProgressAt` field. */ - lastProgressAt?: DatetimeFilter; - /** Filter by the object’s `maxPendingJobs` field. */ - maxPendingJobs?: IntFilter; - /** Filter by the object’s `maxTicks` field. */ - maxTicks?: IntFilter; - /** Filter by the object’s `nodeOutputs` field. */ - nodeOutputs?: JSONFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `logBytes` field. */ + logBytes?: BigIntFilter; + /** Filter by the object’s `logOffset` field. */ + logOffset?: BigIntFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; /** Negates the expression. */ - not?: FunctionGraphExecutionFilter; + not?: PlatformBuildStepFilter; /** Checks for any expressions in this list. */ - or?: FunctionGraphExecutionFilter[]; - /** Filter by the object’s `organizationId` field. */ - organizationId?: UUIDFilter; - /** Filter by the object’s `outputNames` field. */ - outputNames?: StringListFilter; - /** Filter by the object’s `outputNode` field. */ - outputNode?: StringFilter; - /** Filter by the object’s `outputPayload` field. */ - outputPayload?: JSONFilter; - /** Filter by the object’s `outputPort` field. */ - outputPort?: StringFilter; - /** Filter by the object’s `parentExecutionId` field. */ - parentExecutionId?: UUIDFilter; - /** Filter by the object’s `parentInvocationId` field. */ - parentInvocationId?: UUIDFilter; - /** Filter by the object’s `parentNodeName` field. */ - parentNodeName?: StringFilter; - /** Filter by the object’s `principalId` field. */ - principalId?: UUIDFilter; - /** Filter by the object’s `scopeId` field. */ - scopeId?: UUIDFilter; + or?: PlatformBuildStepFilter[]; + /** Filter by the object’s `parentSeq` field. */ + parentSeq?: IntFilter; + /** Filter by the object’s `recordedAt` field. */ + recordedAt?: DatetimeFilter; + /** Filter by the object’s `seq` field. */ + seq?: IntFilter; /** Filter by the object’s `startedAt` field. */ startedAt?: DatetimeFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `tickCount` field. */ - tickCount?: IntFilter; - /** Filter by the object’s `timeoutAt` field. */ - timeoutAt?: DatetimeFilter; -} -/** An input for mutations affecting `FunctionGraphExecution` */ -export interface FunctionGraphExecutionInput { - /** User actor propagated to asynchronous graph jobs */ - actorId?: string; - /** Execution completion timestamp */ - completedAt?: string; - /** Index into execution_plan — tick only processes this wave */ - currentWave?: number; - /** Pinned definitions store commit for deterministic evaluation */ - definitionsCommitId?: string; - /** Entity context propagated to asynchronous graph jobs */ - entityId?: string; - /** Scope discriminator propagated to asynchronous graph jobs */ - entityType?: string; - /** Machine-readable error code when status = failed */ - errorCode?: string; - /** Human-readable error description when status = failed */ - errorMessage?: string; - /** Pre-computed topological sort as array of wave objects */ - executionPlan?: unknown; - /** FK to the graph definition being executed */ - graphId: string; - /** Unique execution identifier */ + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `summary` field. */ + summary?: JSONFilter; +} +/** An input for mutations affecting `PlatformBuildStep` */ +export interface PlatformBuildStepInput { + /** Build these results belong to */ + buildId: string; + /** Acting principal (agent, API key, or user) who created this record */ + createdByPrincipal?: string; + /** Process exit code of a step (NULL for a test result) */ + exitCode?: number; + /** When this step or test finished */ + finishedAt?: string; + /** Unique identifier (uuidv7 provides temporal ordering) */ id?: string; - /** Initial inputs provided at invocation time */ - inputPayload?: unknown; - /** Partition coordinate for the function invocation that launched this graph execution */ - invocationCreatedAt?: string; - /** Function invocation that launched this top-level graph execution */ - invocationId?: string; - /** Timestamp of the last real progress (node enqueue, node output, completion) — drives the activity-debounced watchdog */ - lastProgressAt?: string; - /** Maximum pending jobs before execution is failed (default 50) */ - maxPendingJobs?: number; - /** Maximum ticks before execution is failed (default 100) */ - maxTicks?: number; - /** Map of node_name → execution output id (content-addressed hash reference) */ - nodeOutputs?: unknown; - /** Organization context propagated to asynchronous graph jobs */ - organizationId?: string; - /** Selected graphOutput portName values; NULL or empty returns all graph outputs */ - outputNames?: string[]; - /** Target output boundary node name to resolve; NULL derives completion from the graph's graphOutput nodes */ - outputNode?: string; - /** Final result extracted from terminal output node */ - outputPayload?: unknown; - /** Target output port name (default: value) */ - outputPort?: string; - /** Parent execution when this is a sub-execution */ - parentExecutionId?: string; - /** Function invocation parent assigned to node invocations spawned by this execution */ - parentInvocationId?: string; - /** Node name in parent execution that spawned this sub-execution */ - parentNodeName?: string; - /** Principal identity propagated to asynchronous graph jobs */ - principalId?: string; - /** Opaque store partition key for the global tier */ - scopeId: string; - /** Execution start timestamp */ + /** What this row is: step, or test */ + kind?: string; + /** Byte length of this row's output in the build log object */ + logBytes?: string; + /** Byte offset of this row's output in the build log object */ + logOffset?: string; + /** Step name, or the test's fully qualified name */ + name: string; + /** Sequence of the step that reported this test (NULL for a step itself) */ + parentSeq?: number; + /** When the result was recorded (partition key) */ + recordedAt?: string; + /** Position within the build, monotonically increasing across steps and their tests */ + seq: number; + /** When this step or test began */ startedAt?: string; - /** Lifecycle: pending → running → completed/failed/cancelled */ + /** Outcome: running, succeeded, failed, skipped, cancelled */ status?: string; - /** Number of evaluate_step ticks executed */ - tickCount?: number; - /** Absolute deadline — execution fails if still running after this time */ - timeoutAt?: string; + /** Parsed detail: failure message, assertion diff, counts, annotations */ + summary?: unknown; +} +/** Represents an update to a `PlatformBuildStep`. Fields that are set will be updated. */ +export interface PlatformBuildStepPatch { + /** Build these results belong to */ + buildId?: string; + /** Acting principal (agent, API key, or user) who created this record */ + createdByPrincipal?: string; + /** Process exit code of a step (NULL for a test result) */ + exitCode?: number; + /** When this step or test finished */ + finishedAt?: string; + /** Unique identifier (uuidv7 provides temporal ordering) */ + id?: string; + /** What this row is: step, or test */ + kind?: string; + /** Byte length of this row's output in the build log object */ + logBytes?: string; + /** Byte offset of this row's output in the build log object */ + logOffset?: string; + /** Step name, or the test's fully qualified name */ + name?: string; + /** Sequence of the step that reported this test (NULL for a step itself) */ + parentSeq?: number; + /** When the result was recorded (partition key) */ + recordedAt?: string; + /** Position within the build, monotonically increasing across steps and their tests */ + seq?: number; + /** When this step or test began */ + startedAt?: string; + /** Outcome: running, succeeded, failed, skipped, cancelled */ + status?: string; + /** Parsed detail: failure message, assertion diff, counts, annotations */ + summary?: unknown; } -/** A filter to be used against `FunctionGraphExecutionNodeState` object types. All fields are combined with a logical ‘and.’ */ -export interface FunctionGraphExecutionNodeStateFilter { +/** A filter to be used against `PlatformBuilderBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformBuilderBindingFilter { /** Checks for all expressions in this list. */ - and?: FunctionGraphExecutionNodeStateFilter[]; - /** Filter by the object’s `callbackInputs` field. */ - callbackInputs?: JSONFilter; - /** Filter by the object’s `callbackMeta` field. */ - callbackMeta?: JSONFilter; - /** Filter by the object’s `callbackTokenHash` field. */ - callbackTokenHash?: StringFilter; - /** Filter by the object’s `completedAt` field. */ - completedAt?: DatetimeFilter; + and?: PlatformBuilderBindingFilter[]; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; - /** Filter by the object’s `errorCode` field. */ - errorCode?: StringFilter; - /** Filter by the object’s `errorMessage` field. */ - errorMessage?: StringFilter; - /** Filter by the object’s `executionId` field. */ - executionId?: UUIDFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `nodeName` field. */ - nodeName?: StringFilter; - /** Filter by the object’s `nodePath` field. */ - nodePath?: StringListFilter; + /** Filter by the object’s `installationId` field. */ + installationId?: UUIDFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: PlatformNamespaceFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; /** Negates the expression. */ - not?: FunctionGraphExecutionNodeStateFilter; + not?: PlatformBuilderBindingFilter; + /** Filter by the object’s `observedHost` field. */ + observedHost?: StringFilter; /** Checks for any expressions in this list. */ - or?: FunctionGraphExecutionNodeStateFilter[]; - /** Filter by the object’s `outputId` field. */ - outputId?: UUIDFilter; - /** Filter by the object’s `scopeId` field. */ - scopeId?: UUIDFilter; - /** Filter by the object’s `startedAt` field. */ - startedAt?: DatetimeFilter; + or?: PlatformBuilderBindingFilter[]; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; /** Filter by the object’s `status` field. */ status?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -/** An input for mutations affecting `FunctionGraphExecutionNodeState` */ -export interface FunctionGraphExecutionNodeStateInput { - /** Snapshot of the node's resolved inputs for resource-runtime nodes — served by the node gateway GET /inputs endpoint */ - callbackInputs?: unknown; - /** Metering/attribution context stamped at resource dispatch (namespace_id, task_identifier, entity_id, scope, resource identity, dispatched_at, attempt) — lets the node gateway settle and attribute without extra lookups */ - callbackMeta?: unknown; - /** SHA-256 hex digest of the node callback token — set for resource-runtime nodes so the node gateway can authenticate result/error/heartbeat callbacks */ - callbackTokenHash?: string; - /** Timestamp when the node finished (success or failure) */ - completedAt?: string; - /** Timestamp of node state creation (partition key) */ +/** An input for mutations affecting `PlatformBuilderBinding` */ +export interface PlatformBuilderBindingInput { createdAt?: string; - /** Machine-readable error code when status = failed */ - errorCode?: string; - /** Human-readable error description when status = failed */ - errorMessage?: string; - /** FK to the parent graph execution */ - executionId: string; - /** Unique node state identifier */ + createdBy?: string; + createdByPrincipal?: string; id?: string; - /** Name of the node within the graph (e.g. send-email1) */ - nodeName: string; - /** Full merkle tree path to this node (e.g. {function,graphs,myflow,nodes,send-email1}) — enables subnet hierarchy tracking */ - nodePath?: string[]; - /** FK to execution_outputs — content-addressed output blob for this node */ - outputId?: string; - /** Opaque store partition key for the global tier */ - scopeId: string; - /** Timestamp when the node began executing */ - startedAt?: string; - /** Node lifecycle: pending → queued → running → completed/failed */ + /** BuildKit resource installation serving this binding; may belong to another resource scope */ + installationId: string; + /** Most recent projection failure */ + lastError?: string; + /** Reconciler detail (projection timestamps and diagnostics) */ + metadata?: unknown; + /** Namespace whose builds use this BuildKit installation */ + namespaceId: string; + /** BuildKit address last projected into the namespace (NULL = never projected) */ + observedHost?: string; + /** Lane this binding applies to (NULL = the scope's default lane) */ + realm?: string; + /** Projection state of BUILDKIT_HOST: pending, active, failed */ + status?: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; +} +/** Represents an update to a `PlatformBuilderBinding`. Fields that are set will be updated. */ +export interface PlatformBuilderBindingPatch { + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + id?: string; + /** BuildKit resource installation serving this binding; may belong to another resource scope */ + installationId?: string; + /** Most recent projection failure */ + lastError?: string; + /** Reconciler detail (projection timestamps and diagnostics) */ + metadata?: unknown; + /** Namespace whose builds use this BuildKit installation */ + namespaceId?: string; + /** BuildKit address last projected into the namespace (NULL = never projected) */ + observedHost?: string; + /** Lane this binding applies to (NULL = the scope's default lane) */ + realm?: string; + /** Projection state of BUILDKIT_HOST: pending, active, failed */ status?: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; +} +/** A filter to be used against `PlatformFunctionApiBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformFunctionApiBindingFilter { + /** Filter by the object’s `alias` field. */ + alias?: StringFilter; + /** Checks for all expressions in this list. */ + and?: PlatformFunctionApiBindingFilter[]; + /** 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 `functionDefinition` relation. */ + functionDefinition?: PlatformFunctionDefinitionFilter; + /** Filter by the object’s `functionDefinitionId` field. */ + functionDefinitionId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformFunctionApiBindingFilter; + /** Checks for any expressions in this list. */ + or?: PlatformFunctionApiBindingFilter[]; + /** Filter by the object’s `platformFunctionInvocationsByApiBindingId` relation. */ + platformFunctionInvocationsByApiBindingId?: PlatformFunctionApiBindingToManyPlatformFunctionInvocationFilter; + /** `platformFunctionInvocationsByApiBindingId` exist. */ + platformFunctionInvocationsByApiBindingIdExist?: boolean; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} +/** An input for mutations affecting `PlatformFunctionApiBinding` */ +export interface PlatformFunctionApiBindingInput { + /** Binding alias (e.g. default, staging, production) */ + alias?: string; + /** API endpoint this function is bound to */ + apiId: string; + /** Per-binding configuration (overrides, routing rules, etc.) */ + config?: unknown; + createdAt?: string; + /** Function definition this binding belongs to */ + functionDefinitionId: string; + id?: string; + updatedAt?: string; +} +/** Represents an update to a `PlatformFunctionApiBinding`. Fields that are set will be updated. */ +export interface PlatformFunctionApiBindingPatch { + /** Binding alias (e.g. default, staging, production) */ + alias?: string; + /** API endpoint this function is bound to */ + apiId?: string; + /** Per-binding configuration (overrides, routing rules, etc.) */ + config?: unknown; + createdAt?: string; + /** Function definition this binding belongs to */ + functionDefinitionId?: string; + id?: string; + updatedAt?: string; +} +/** A filter to be used against many `PlatformFunctionInvocation` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformFunctionApiBindingToManyPlatformFunctionInvocationFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformFunctionInvocationFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformFunctionInvocationFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformFunctionInvocationFilter; +} +/** A filter to be used against `PlatformFunctionCapabilityBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformFunctionCapabilityBindingFilter { + /** Checks for all expressions in this list. */ + and?: PlatformFunctionCapabilityBindingFilter[]; + /** Filter by the object’s `bucketId` field. */ + bucketId?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `function` relation. */ + function?: PlatformFunctionDefinitionFilter; + /** A related `function` exists. */ + functionExists?: boolean; + /** Filter by the object’s `functionId` field. */ + functionId?: UUIDFilter; + /** Filter by the object’s `graphId` field. */ + graphId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `key` field. */ + key?: StringFilter; + /** Filter by the object’s `lifecycle` field. */ + lifecycle?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Negates the expression. */ + not?: PlatformFunctionCapabilityBindingFilter; + /** Checks for any expressions in this list. */ + or?: PlatformFunctionCapabilityBindingFilter[]; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} +/** An input for mutations affecting `PlatformFunctionCapabilityBinding` */ +export interface PlatformFunctionCapabilityBindingInput { + /** Bucket this capability targets (exactly one typed target is set) */ + bucketId?: string; + createdAt?: string; + /** Function definition holding this capability (exactly one of function_id / graph_id is set) */ + functionId?: string; + /** Flow graph holding this capability (exactly one of function_id / graph_id is set) */ + graphId?: string; + id?: string; + /** Runtime handle the holder addresses this capability by (e.g. default, scratch) */ + key?: string; + /** Lifecycle the capability applies to: deployment (build/deploy time), execution (per invocation), root_execution (root of a graph execution tree) */ + lifecycle: string; + /** Per-binding annotations (no runtime semantics) */ + metadata?: unknown; + updatedAt?: string; } -/** Represents an update to a `FunctionGraphExecutionNodeState`. Fields that are set will be updated. */ -export interface FunctionGraphExecutionNodeStatePatch { - /** Snapshot of the node's resolved inputs for resource-runtime nodes — served by the node gateway GET /inputs endpoint */ - callbackInputs?: unknown; - /** Metering/attribution context stamped at resource dispatch (namespace_id, task_identifier, entity_id, scope, resource identity, dispatched_at, attempt) — lets the node gateway settle and attribute without extra lookups */ - callbackMeta?: unknown; - /** SHA-256 hex digest of the node callback token — set for resource-runtime nodes so the node gateway can authenticate result/error/heartbeat callbacks */ - callbackTokenHash?: string; - /** Timestamp when the node finished (success or failure) */ - completedAt?: string; - /** Timestamp of node state creation (partition key) */ +/** Represents an update to a `PlatformFunctionCapabilityBinding`. Fields that are set will be updated. */ +export interface PlatformFunctionCapabilityBindingPatch { + /** Bucket this capability targets (exactly one typed target is set) */ + bucketId?: string; createdAt?: string; - /** Machine-readable error code when status = failed */ - errorCode?: string; - /** Human-readable error description when status = failed */ - errorMessage?: string; - /** FK to the parent graph execution */ - executionId?: string; - /** Unique node state identifier */ + /** Function definition holding this capability (exactly one of function_id / graph_id is set) */ + functionId?: string; + /** Flow graph holding this capability (exactly one of function_id / graph_id is set) */ + graphId?: string; id?: string; - /** Name of the node within the graph (e.g. send-email1) */ - nodeName?: string; - /** Full merkle tree path to this node (e.g. {function,graphs,myflow,nodes,send-email1}) — enables subnet hierarchy tracking */ - nodePath?: string[]; - /** FK to execution_outputs — content-addressed output blob for this node */ - outputId?: string; - /** Opaque store partition key for the global tier */ - scopeId?: string; - /** Timestamp when the node began executing */ - startedAt?: string; - /** Node lifecycle: pending → queued → running → completed/failed */ - status?: string; + /** Runtime handle the holder addresses this capability by (e.g. default, scratch) */ + key?: string; + /** Lifecycle the capability applies to: deployment (build/deploy time), execution (per invocation), root_execution (root of a graph execution tree) */ + lifecycle?: string; + /** Per-binding annotations (no runtime semantics) */ + metadata?: unknown; + updatedAt?: string; } -/** A filter to be used against `FunctionGraphExecutionOutput` object types. All fields are combined with a logical ‘and.’ */ -export interface FunctionGraphExecutionOutputFilter { +/** A filter to be used against `PlatformFunctionDefinition` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformFunctionDefinitionFilter { + /** Filter by the object’s `accessChannels` field. */ + accessChannels?: StringListFilter; /** Checks for all expressions in this list. */ - and?: FunctionGraphExecutionOutputFilter[]; + and?: PlatformFunctionDefinitionFilter[]; + /** Filter by the object’s `anonymousCallable` field. */ + anonymousCallable?: BooleanFilter; + /** Filter by the object’s `billable` field. */ + billable?: BooleanFilter; + /** Filter by the object’s `category` field. */ + category?: StringFilter; + /** Filter by the object’s `concurrency` field. */ + concurrency?: IntFilter; + /** Filter by the object’s `cpuLimitMillicores` field. */ + cpuLimitMillicores?: BigIntFilter; + /** Filter by the object’s `cpuRequestMillicores` field. */ + cpuRequestMillicores?: BigIntFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; - /** Filter by the object’s `data` field. */ - data?: JSONFilter; - /** Filter by the object’s `hash` field. */ - hash?: Base64EncodedBinaryFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `fnCategory` field. */ + fnCategory?: StringFilter; + /** Filter by the object’s `functionColumns` field. */ + functionColumns?: JSONFilter; + /** Filter by the object’s `graph` relation. */ + graph?: FunctionGraphFilter; + /** A related `graph` exists. */ + graphExists?: boolean; + /** Filter by the object’s `graphId` field. */ + graphId?: UUIDFilter; + /** Filter by the object’s `icon` field. */ + icon?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `image` field. */ + image?: StringFilter; + /** Filter by the object’s `inputs` field. */ + inputs?: JSONFilter; + /** Filter by the object’s `integrations` field. */ + integrations?: StringListFilter; + /** Filter by the object’s `isPublished` field. */ + isPublished?: BooleanFilter; + /** Filter by the object’s `maxAttempts` field. */ + maxAttempts?: IntFilter; + /** Filter by the object’s `memoryLimitBytes` field. */ + memoryLimitBytes?: BigIntFilter; + /** Filter by the object’s `memoryRequestBytes` field. */ + memoryRequestBytes?: BigIntFilter; + /** Filter by the object’s `moduleTable` field. */ + moduleTable?: StringFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; /** Negates the expression. */ - not?: FunctionGraphExecutionOutputFilter; + not?: PlatformFunctionDefinitionFilter; /** Checks for any expressions in this list. */ - or?: FunctionGraphExecutionOutputFilter[]; - /** Filter by the object’s `scopeId` field. */ - scopeId?: UUIDFilter; -} -/** An input for mutations affecting `FunctionGraphExecutionOutput` */ -export interface FunctionGraphExecutionOutputInput { - /** Timestamp of output creation */ - createdAt?: string; - /** The actual output payload from a completed node */ - data: unknown; - /** SHA-256 hash of the data JSONB — content-addressed deduplication */ - hash: Base64EncodedBinary; - /** Unique execution output identifier */ - id?: string; - /** Opaque store partition key for the global tier */ - scopeId: string; + or?: PlatformFunctionDefinitionFilter[]; + /** Filter by the object’s `outputs` field. */ + outputs?: JSONFilter; + /** Filter by the object’s `payloadArgs` field. */ + payloadArgs?: JSONFilter; + /** Filter by the object’s `platformFunctionApiBindingsByFunctionDefinitionId` relation. */ + platformFunctionApiBindingsByFunctionDefinitionId?: PlatformFunctionDefinitionToManyPlatformFunctionApiBindingFilter; + /** `platformFunctionApiBindingsByFunctionDefinitionId` exist. */ + platformFunctionApiBindingsByFunctionDefinitionIdExist?: boolean; + /** Filter by the object’s `platformFunctionCapabilityBindingsByFunctionId` relation. */ + platformFunctionCapabilityBindingsByFunctionId?: PlatformFunctionDefinitionToManyPlatformFunctionCapabilityBindingFilter; + /** `platformFunctionCapabilityBindingsByFunctionId` exist. */ + platformFunctionCapabilityBindingsByFunctionIdExist?: boolean; + /** Filter by the object’s `platformWebhookEndpointsByFunctionDefinitionId` relation. */ + platformWebhookEndpointsByFunctionDefinitionId?: PlatformFunctionDefinitionToManyPlatformWebhookEndpointFilter; + /** `platformWebhookEndpointsByFunctionDefinitionId` exist. */ + platformWebhookEndpointsByFunctionDefinitionIdExist?: boolean; + /** Filter by the object’s `priority` field. */ + priority?: IntFilter; + /** Filter by the object’s `props` field. */ + props?: JSONFilter; + /** Filter by the object’s `protected` field. */ + protected?: BooleanFilter; + /** Filter by the object’s `publishedAt` field. */ + publishedAt?: DatetimeFilter; + /** Filter by the object’s `queueName` field. */ + queueName?: StringFilter; + /** Filter by the object’s `requiredBuckets` field. */ + requiredBuckets?: StringListFilter; + /** Filter by the object’s `requiredCapabilities` field. */ + requiredCapabilities?: JSONFilter; + /** 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. */ + runtime?: StringFilter; + /** Filter by the object’s `scaleMax` field. */ + scaleMax?: IntFilter; + /** Filter by the object’s `scaleMin` field. */ + scaleMin?: IntFilter; + /** Filter by the object’s `system` field. */ + system?: BooleanFilter; + /** Filter by the object’s `targetFunction` field. */ + targetFunction?: StringFilter; + /** Filter by the object’s `targetSchema` field. */ + targetSchema?: StringFilter; + /** Filter by the object’s `taskIdentifier` field. */ + taskIdentifier?: StringFilter; + /** Filter by the object’s `timeoutSeconds` field. */ + timeoutSeconds?: IntFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** Filter by the object’s `volatile` field. */ + volatile?: BooleanFilter; } -/** Represents an update to a `FunctionGraphExecutionOutput`. Fields that are set will be updated. */ -export interface FunctionGraphExecutionOutputPatch { - /** Timestamp of output creation */ +/** An input for mutations affecting `PlatformFunctionDefinition` */ +export interface PlatformFunctionDefinitionInput { + /** 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 this function consents to run for a caller with no identity (a sign-in surface, a public page). Anonymous execution additionally requires the matched route to declare anonymous access. Default false = an identity is required. */ + anonymousCallable?: boolean; + /** Whether executions are metered through the invocation ledger and billing quota gate */ + billable?: boolean; + /** Function task category (e.g. email, embed, chunk, custom) */ + category: string; + /** Knative containerConcurrency — max concurrent requests per pod instance */ + concurrency?: number; createdAt?: string; - /** The actual output payload from a completed node */ - data?: unknown; - /** SHA-256 hash of the data JSONB — content-addressed deduplication */ - hash?: Base64EncodedBinary; - /** Unique execution output identifier */ + createdByPrincipal?: string; + /** Human-readable description of what this function does */ + description?: string; + /** Palette grouping category (e.g. email, data, ai, custom) */ + fnCategory?: string; + /** Ordered array of module_table column names holding the generated function names to invoke when runtime=sql (module mode). NULL for direct mode and other runtimes. */ + functionColumns?: unknown; + /** Existing flow graph invoked when runtime=graph. Required for graph runtime and forbidden for all other runtimes. */ + graphId?: string; + /** Icon identifier for UI palette rendering (e.g. mail, database, code) */ + icon?: string; id?: string; - /** Opaque store partition key for the global tier */ - scopeId?: string; + /** Docker image reference (e.g. ghcr.io/constructive-io/email-send-fn:latest). Required when runtime=http or runtime=resource. NULL for inline functions. */ + image?: string; + /** Data input ports: [{name, type, description?, optional?, multi?, schema?}] */ + inputs?: unknown; + /** Provider slugs (e.g. mailgun, postgres) associated with this function. The UI uses this to auto-fill required_secrets and required_configs from integration_providers. */ + integrations?: string[]; + /** Whether this function definition is published to the public catalog for direct authenticated invocation. Default false = internal-only via add_job() */ + isPublished?: boolean; + /** Maximum retry attempts for the underlying job */ + maxAttempts?: number; + /** metaschema_modules_public table whose per-database row carries the generated function names when runtime=sql (module mode). NULL for direct mode and other runtimes. */ + moduleTable?: string; + /** Function name within category (e.g. send_verification_link, process_file_embedding) */ + name: string; + /** Data output ports: [{name, type, description?, optional?, multi?, schema?}] */ + outputs?: unknown; + /** Ordered bind-parameter mapping for runtime=sql: [{name, type}]. payload[name] is bound as $n::type. */ + payloadArgs?: unknown; + /** Job priority (lower = higher priority) */ + priority?: number; + /** Configuration properties: [{name, type, default?, description?, required?, schema?}] */ + props?: unknown; + /** Protected platform definition: narrower scopes cannot register the same task_identifier */ + protected?: boolean; + /** Timestamp when this function was published. NULL means immediately published when is_published is true; future timestamps delay public visibility */ + publishedAt?: string; + /** Job queue name for serialization (e.g. email, ai, default) */ + queueName?: string; + /** 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[]; + /** Capability providers the handler declared in handler.json requires.capabilities, as an array of {name, version, declaration}. NULL when the handler declares none, which mounts the full platform set. */ + requiredCapabilities?: unknown; + /** 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}} */ + resources?: unknown; + /** Execution mode: http (Knative Service dispatch), inline (in-process in compute worker), handler (registered infrastructure handler), sql (generic SQL dispatch via a trusted direct target or module-resolved function names), resource (Kubernetes Job via the resource module with node-gateway callbacks), graph (existing flow graph referenced by graph_id), or human (parks the node awaiting a person's answer through approve_node) */ + runtime?: string; + /** Maximum pod count for Knative autoscaling (maxScale) */ + scaleMax?: number; + /** Minimum pod count for Knative autoscaling (minScale) */ + scaleMin?: number; + /** Platform system definition: its task_identifier cannot be shadowed by non-platform registration */ + system?: boolean; + /** Name of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. */ + targetFunction?: string; + /** Schema of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. */ + targetSchema?: string; + /** Knative request timeout in seconds */ + timeoutSeconds?: number; + updatedAt?: string; + updatedByPrincipal?: string; + /** Whether this function has side effects and cannot be cached or memoized */ + volatile?: boolean; } -/** Represents an update to a `FunctionGraphExecution`. Fields that are set will be updated. */ -export interface FunctionGraphExecutionPatch { - /** User actor propagated to asynchronous graph jobs */ - actorId?: string; - /** Execution completion timestamp */ - completedAt?: string; - /** Index into execution_plan — tick only processes this wave */ - currentWave?: number; - /** Pinned definitions store commit for deterministic evaluation */ - definitionsCommitId?: string; - /** Entity context propagated to asynchronous graph jobs */ - entityId?: string; - /** Scope discriminator propagated to asynchronous graph jobs */ - entityType?: string; - /** Machine-readable error code when status = failed */ - errorCode?: string; - /** Human-readable error description when status = failed */ - errorMessage?: string; - /** Pre-computed topological sort as array of wave objects */ - executionPlan?: unknown; - /** FK to the graph definition being executed */ +/** 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, page, webhook). Internal worker dispatch is implicit and never listed. Default [] = worker only. */ + accessChannels?: string[]; + /** Whether this function consents to run for a caller with no identity (a sign-in surface, a public page). Anonymous execution additionally requires the matched route to declare anonymous access. Default false = an identity is required. */ + anonymousCallable?: boolean; + /** Whether executions are metered through the invocation ledger and billing quota gate */ + billable?: boolean; + /** Function task category (e.g. email, embed, chunk, custom) */ + category?: string; + /** Knative containerConcurrency — max concurrent requests per pod instance */ + concurrency?: number; + createdAt?: string; + createdByPrincipal?: string; + /** Human-readable description of what this function does */ + description?: string; + /** Palette grouping category (e.g. email, data, ai, custom) */ + fnCategory?: string; + /** Ordered array of module_table column names holding the generated function names to invoke when runtime=sql (module mode). NULL for direct mode and other runtimes. */ + functionColumns?: unknown; + /** Existing flow graph invoked when runtime=graph. Required for graph runtime and forbidden for all other runtimes. */ graphId?: string; - /** Unique execution identifier */ + /** Icon identifier for UI palette rendering (e.g. mail, database, code) */ + icon?: string; id?: string; - /** Initial inputs provided at invocation time */ - inputPayload?: unknown; - /** Partition coordinate for the function invocation that launched this graph execution */ - invocationCreatedAt?: string; - /** Function invocation that launched this top-level graph execution */ - invocationId?: string; - /** Timestamp of the last real progress (node enqueue, node output, completion) — drives the activity-debounced watchdog */ - lastProgressAt?: string; - /** Maximum pending jobs before execution is failed (default 50) */ - maxPendingJobs?: number; - /** Maximum ticks before execution is failed (default 100) */ - maxTicks?: number; - /** Map of node_name → execution output id (content-addressed hash reference) */ - nodeOutputs?: unknown; - /** Organization context propagated to asynchronous graph jobs */ - organizationId?: string; - /** Selected graphOutput portName values; NULL or empty returns all graph outputs */ - outputNames?: string[]; - /** Target output boundary node name to resolve; NULL derives completion from the graph's graphOutput nodes */ - outputNode?: string; - /** Final result extracted from terminal output node */ - outputPayload?: unknown; - /** Target output port name (default: value) */ - outputPort?: string; - /** Parent execution when this is a sub-execution */ - parentExecutionId?: string; - /** Function invocation parent assigned to node invocations spawned by this execution */ - parentInvocationId?: string; - /** Node name in parent execution that spawned this sub-execution */ - parentNodeName?: string; - /** Principal identity propagated to asynchronous graph jobs */ - principalId?: string; - /** Opaque store partition key for the global tier */ - scopeId?: string; - /** Execution start timestamp */ - startedAt?: string; - /** Lifecycle: pending → running → completed/failed/cancelled */ - status?: string; - /** Number of evaluate_step ticks executed */ - tickCount?: number; - /** Absolute deadline — execution fails if still running after this time */ - timeoutAt?: string; + /** Docker image reference (e.g. ghcr.io/constructive-io/email-send-fn:latest). Required when runtime=http or runtime=resource. NULL for inline functions. */ + image?: string; + /** Data input ports: [{name, type, description?, optional?, multi?, schema?}] */ + inputs?: unknown; + /** Provider slugs (e.g. mailgun, postgres) associated with this function. The UI uses this to auto-fill required_secrets and required_configs from integration_providers. */ + integrations?: string[]; + /** Whether this function definition is published to the public catalog for direct authenticated invocation. Default false = internal-only via add_job() */ + isPublished?: boolean; + /** Maximum retry attempts for the underlying job */ + maxAttempts?: number; + /** metaschema_modules_public table whose per-database row carries the generated function names when runtime=sql (module mode). NULL for direct mode and other runtimes. */ + moduleTable?: string; + /** Function name within category (e.g. send_verification_link, process_file_embedding) */ + name?: string; + /** Data output ports: [{name, type, description?, optional?, multi?, schema?}] */ + outputs?: unknown; + /** Ordered bind-parameter mapping for runtime=sql: [{name, type}]. payload[name] is bound as $n::type. */ + payloadArgs?: unknown; + /** Job priority (lower = higher priority) */ + priority?: number; + /** Configuration properties: [{name, type, default?, description?, required?, schema?}] */ + props?: unknown; + /** Protected platform definition: narrower scopes cannot register the same task_identifier */ + protected?: boolean; + /** Timestamp when this function was published. NULL means immediately published when is_published is true; future timestamps delay public visibility */ + publishedAt?: string; + /** Job queue name for serialization (e.g. email, ai, default) */ + queueName?: string; + /** 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[]; + /** Capability providers the handler declared in handler.json requires.capabilities, as an array of {name, version, declaration}. NULL when the handler declares none, which mounts the full platform set. */ + requiredCapabilities?: unknown; + /** 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}} */ + resources?: unknown; + /** Execution mode: http (Knative Service dispatch), inline (in-process in compute worker), handler (registered infrastructure handler), sql (generic SQL dispatch via a trusted direct target or module-resolved function names), resource (Kubernetes Job via the resource module with node-gateway callbacks), graph (existing flow graph referenced by graph_id), or human (parks the node awaiting a person's answer through approve_node) */ + runtime?: string; + /** Maximum pod count for Knative autoscaling (maxScale) */ + scaleMax?: number; + /** Minimum pod count for Knative autoscaling (minScale) */ + scaleMin?: number; + /** Platform system definition: its task_identifier cannot be shadowed by non-platform registration */ + system?: boolean; + /** Name of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. */ + targetFunction?: string; + /** Schema of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. */ + targetSchema?: string; + /** Knative request timeout in seconds */ + timeoutSeconds?: number; + updatedAt?: string; + updatedByPrincipal?: string; + /** Whether this function has side effects and cannot be cached or memoized */ + volatile?: boolean; } -/** A filter to be used against `FunctionGraph` object types. All fields are combined with a logical ‘and.’ */ -export interface FunctionGraphFilter { - /** Checks for all expressions in this list. */ - and?: FunctionGraphFilter[]; - /** Filter by the object’s `context` field. */ - context?: StringFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `definitionsCommitId` field. */ - definitionsCommitId?: UUIDFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `functionGraphExecutionsByGraphId` relation. */ - functionGraphExecutionsByGraphId?: FunctionGraphToManyFunctionGraphExecutionFilter; - /** `functionGraphExecutionsByGraphId` exist. */ - functionGraphExecutionsByGraphIdExist?: boolean; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isValid` field. */ - isValid?: BooleanFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Negates the expression. */ - not?: FunctionGraphFilter; - /** Checks for any expressions in this list. */ - or?: FunctionGraphFilter[]; - /** Filter by the object’s `platformFunctionDefinitionsByGraphId` relation. */ - platformFunctionDefinitionsByGraphId?: FunctionGraphToManyPlatformFunctionDefinitionFilter; - /** `platformFunctionDefinitionsByGraphId` exist. */ - platformFunctionDefinitionsByGraphIdExist?: boolean; - /** Filter by the object’s `scopeId` field. */ - scopeId?: UUIDFilter; - /** Filter by the object’s `storeId` field. */ - storeId?: UUIDFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `validationErrors` field. */ - validationErrors?: JSONFilter; +/** A filter to be used against many `PlatformFunctionApiBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformFunctionDefinitionToManyPlatformFunctionApiBindingFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformFunctionApiBindingFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformFunctionApiBindingFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformFunctionApiBindingFilter; } -/** A filter to be used against `FunctionGraphObject` object types. All fields are combined with a logical ‘and.’ */ -export interface FunctionGraphObjectFilter { +/** A filter to be used against many `PlatformFunctionCapabilityBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformFunctionDefinitionToManyPlatformFunctionCapabilityBindingFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformFunctionCapabilityBindingFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformFunctionCapabilityBindingFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformFunctionCapabilityBindingFilter; +} +/** A filter to be used against many `PlatformWebhookEndpoint` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformFunctionDefinitionToManyPlatformWebhookEndpointFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformWebhookEndpointFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformWebhookEndpointFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformWebhookEndpointFilter; +} +/** A filter to be used against `PlatformFunctionDeploymentEvent` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformFunctionDeploymentEventFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: FunctionGraphObjectFilter[]; + and?: PlatformFunctionDeploymentEventFilter[]; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; - /** Filter by the object’s `data` field. */ - data?: JSONFilter; + /** Filter by the object’s `deploymentId` field. */ + deploymentId?: UUIDFilter; + /** Filter by the object’s `eventType` field. */ + eventType?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `kids` field. */ - kids?: UUIDListFilter; - /** Filter by the object’s `ktree` field. */ - ktree?: StringListFilter; + /** Filter by the object’s `message` field. */ + message?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; /** Negates the expression. */ - not?: FunctionGraphObjectFilter; + not?: PlatformFunctionDeploymentEventFilter; /** Checks for any expressions in this list. */ - or?: FunctionGraphObjectFilter[]; - /** Filter by the object’s `scopeId` field. */ - scopeId?: UUIDFilter; -} -/** An input for mutations affecting `FunctionGraphObject` */ -export interface FunctionGraphObjectInput { - /** Timestamp of object creation */ - createdAt?: string; - /** Payload data for this object node */ - data?: unknown; - /** Content-addressed UUID v5 — deterministic hash of (data, kids, ktree) */ - id: string; - /** Ordered array of child object IDs */ - kids?: string[]; - /** Ordered array of child path names (parallel to kids) */ - ktree?: string[]; - /** Opaque store partition key for the global tier */ - scopeId: string; -} -/** Represents an update to a `FunctionGraphObject`. Fields that are set will be updated. */ -export interface FunctionGraphObjectPatch { - /** Timestamp of object creation */ + or?: PlatformFunctionDeploymentEventFilter[]; +} +/** An input for mutations affecting `PlatformFunctionDeploymentEvent` */ +export interface PlatformFunctionDeploymentEventInput { + /** User who triggered this event; NULL only when no human actor was proven */ + actorId?: string; + /** Event timestamp (partition key) */ createdAt?: string; - /** Payload data for this object node */ - data?: unknown; - /** Content-addressed UUID v5 — deterministic hash of (data, kids, ktree) */ + /** Deployment this event belongs to */ + deploymentId: string; + /** Event type: provisioned, scaled, failed, deactivated, redeployed, health_check */ + eventType: string; + /** Unique event identifier */ id?: string; - /** Ordered array of child object IDs */ - kids?: string[]; - /** Ordered array of child path names (parallel to kids) */ - ktree?: string[]; - /** Opaque store partition key for the global tier */ - scopeId?: string; + /** Human-readable description of the event */ + message?: string; + /** Structured context (old/new values, error details, etc.) */ + metadata?: unknown; } -/** Represents an update to a `FunctionGraph`. Fields that are set will be updated. */ -export interface FunctionGraphPatch { - /** Evaluator/runtime context (function, js, sql, system) */ - context?: string; - /** Timestamp of graph creation */ +/** Represents an update to a `PlatformFunctionDeploymentEvent`. Fields that are set will be updated. */ +export interface PlatformFunctionDeploymentEventPatch { + /** User who triggered this event; NULL only when no human actor was proven */ + actorId?: string; + /** Event timestamp (partition key) */ createdAt?: string; - /** Actor who created this graph */ - createdBy?: string; - /** Pinned definitions store commit for deterministic evaluation */ - definitionsCommitId?: string; - /** Human-readable description of the graph */ - description?: string; - /** Unique graph identifier */ + /** Deployment this event belongs to */ + deploymentId?: string; + /** Event type: provisioned, scaled, failed, deactivated, redeployed, health_check */ + eventType?: string; + /** Unique event identifier */ id?: string; - /** Whether graph passes structural validation */ - isValid?: boolean; - /** Graph name (unique per database) */ - name?: string; - /** Opaque store partition key for the global tier */ - scopeId?: string; - /** Graph store (Merkle store) holding the graph definition */ - storeId?: string; - /** Timestamp of last modification */ - updatedAt?: string; - /** Array of validation error objects when is_valid = false */ - validationErrors?: unknown; + /** Human-readable description of the event */ + message?: string; + /** Structured context (old/new values, error details, etc.) */ + metadata?: unknown; } -/** A filter to be used against `FunctionGraphRef` object types. All fields are combined with a logical ‘and.’ */ -export interface FunctionGraphRefFilter { +/** A filter to be used against `PlatformFunctionDeployment` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformFunctionDeploymentFilter { /** Checks for all expressions in this list. */ - and?: FunctionGraphRefFilter[]; - /** Filter by the object’s `commitId` field. */ - commitId?: UUIDFilter; + and?: PlatformFunctionDeploymentFilter[]; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Filter by the object’s `concurrency` field. */ + concurrency?: IntFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `errorCount` field. */ + errorCount?: IntFilter; + /** Filter by the object’s `handlerName` field. */ + handlerName?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; + /** Filter by the object’s `image` field. */ + image?: StringFilter; + /** Filter by the object’s `imageVersion` field. */ + imageVersion?: StringFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `lastErrorAt` field. */ + lastErrorAt?: DatetimeFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: PlatformNamespaceFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; /** Negates the expression. */ - not?: FunctionGraphRefFilter; + not?: PlatformFunctionDeploymentFilter; /** Checks for any expressions in this list. */ - or?: FunctionGraphRefFilter[]; - /** Filter by the object’s `scopeId` field. */ - scopeId?: UUIDFilter; - /** Filter by the object’s `storeId` field. */ - storeId?: UUIDFilter; + 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. */ + revision?: IntFilter; + /** Filter by the object’s `scaleMax` field. */ + scaleMax?: IntFilter; + /** Filter by the object’s `scaleMin` field. */ + scaleMin?: IntFilter; + /** Filter by the object’s `serviceName` field. */ + serviceName?: StringFilter; + /** Filter by the object’s `serviceUrl` field. */ + serviceUrl?: StringFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `timeoutSeconds` field. */ + timeoutSeconds?: IntFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -/** An input for mutations affecting `FunctionGraphRef` */ -export interface FunctionGraphRefInput { - /** Commit this ref points to */ - commitId?: string; - /** Unique ref identifier */ +/** An input for mutations affecting `PlatformFunctionDeployment` */ +export interface PlatformFunctionDeploymentInput { + /** Freeform metadata for tooling and operational notes */ + annotations?: unknown; + /** Max concurrent requests per pod (NULL = inherit from definition) */ + concurrency?: number; + createdAt?: string; + createdByPrincipal?: string; + /** Cumulative error count for this deployment */ + errorCount?: number; + /** Handler directory name (e.g. email, document) — used as FN_HANDLER_NAME in combined-image mode to select the entry point */ + handlerName?: string; id?: string; - /** Ref name (e.g. HEAD, main) */ - name: string; - /** Opaque store partition key for the global tier */ - scopeId: string; - /** Store this ref belongs to */ - storeId: string; + /** Logical image name — the handler identity and grouping key (e.g. fn-email). No registry host or tag; tag lives in image_version. */ + image: string; + /** Image tag/version for the handler container (e.g. latest, 2.6.4) */ + imageVersion?: string; + /** Key/value pairs for selecting and filtering deployments */ + labels?: unknown; + /** Most recent provisioning or runtime error message */ + lastError?: string; + /** Timestamp of the most recent error */ + 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) */ + revision?: number; + /** Maximum replica count (NULL = inherit from definition or Knative default) */ + scaleMax?: number; + /** Minimum replica count (NULL = inherit from definition or Knative default) */ + scaleMin?: number; + /** Knative service name — a randomly minted cute name (unique_names.generate_name() + random hex suffix) assigned by the service_url trigger; unique per namespace, not derived from the image */ + serviceName?: string; + /** Knative service URL (http://{service-name}.{namespace}.svc.cluster.local) — populated after provisioning */ + serviceUrl?: string; + /** Deployment lifecycle status: pending, provisioning, active, failed, scaled_to_zero, deactivated */ + status?: string; + /** Request timeout override in seconds (NULL = inherit from definition) */ + timeoutSeconds?: number; + updatedAt?: string; + updatedByPrincipal?: string; } -/** Represents an update to a `FunctionGraphRef`. Fields that are set will be updated. */ -export interface FunctionGraphRefPatch { - /** Commit this ref points to */ - commitId?: string; - /** Unique ref identifier */ +/** Represents an update to a `PlatformFunctionDeployment`. Fields that are set will be updated. */ +export interface PlatformFunctionDeploymentPatch { + /** Freeform metadata for tooling and operational notes */ + annotations?: unknown; + /** Max concurrent requests per pod (NULL = inherit from definition) */ + concurrency?: number; + createdAt?: string; + createdByPrincipal?: string; + /** Cumulative error count for this deployment */ + errorCount?: number; + /** Handler directory name (e.g. email, document) — used as FN_HANDLER_NAME in combined-image mode to select the entry point */ + handlerName?: string; id?: string; - /** Ref name (e.g. HEAD, main) */ - name?: string; - /** Opaque store partition key for the global tier */ - scopeId?: string; - /** Store this ref belongs to */ - storeId?: string; + /** Logical image name — the handler identity and grouping key (e.g. fn-email). No registry host or tag; tag lives in image_version. */ + image?: string; + /** Image tag/version for the handler container (e.g. latest, 2.6.4) */ + imageVersion?: string; + /** Key/value pairs for selecting and filtering deployments */ + labels?: unknown; + /** Most recent provisioning or runtime error message */ + lastError?: string; + /** Timestamp of the most recent error */ + 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) */ + revision?: number; + /** Maximum replica count (NULL = inherit from definition or Knative default) */ + scaleMax?: number; + /** Minimum replica count (NULL = inherit from definition or Knative default) */ + scaleMin?: number; + /** Knative service name — a randomly minted cute name (unique_names.generate_name() + random hex suffix) assigned by the service_url trigger; unique per namespace, not derived from the image */ + serviceName?: string; + /** Knative service URL (http://{service-name}.{namespace}.svc.cluster.local) — populated after provisioning */ + serviceUrl?: string; + /** Deployment lifecycle status: pending, provisioning, active, failed, scaled_to_zero, deactivated */ + status?: string; + /** Request timeout override in seconds (NULL = inherit from definition) */ + timeoutSeconds?: number; + updatedAt?: string; + updatedByPrincipal?: string; } -/** A filter to be used against `FunctionGraphStore` object types. All fields are combined with a logical ‘and.’ */ -export interface FunctionGraphStoreFilter { +/** A filter to be used against `PlatformFunctionExecutionLog` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformFunctionExecutionLogFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: FunctionGraphStoreFilter[]; + and?: PlatformFunctionExecutionLogFilter[]; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; - /** Filter by the object’s `hash` field. */ - hash?: UUIDFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; + /** Filter by the object’s `invocationId` field. */ + invocationId?: UUIDFilter; + /** Filter by the object’s `logLevel` field. */ + logLevel?: StringFilter; + /** Filter by the object’s `message` field. */ + message?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; /** Negates the expression. */ - not?: FunctionGraphStoreFilter; + not?: PlatformFunctionExecutionLogFilter; /** Checks for any expressions in this list. */ - or?: FunctionGraphStoreFilter[]; - /** Filter by the object’s `scopeId` field. */ - scopeId?: UUIDFilter; + or?: PlatformFunctionExecutionLogFilter[]; + /** Filter by the object’s `taskIdentifier` field. */ + taskIdentifier?: StringFilter; } -/** An input for mutations affecting `FunctionGraphStore` */ -export interface FunctionGraphStoreInput { - /** Timestamp of store creation */ +/** An input for mutations affecting `PlatformFunctionExecutionLog` */ +export interface PlatformFunctionExecutionLogInput { + /** User who triggered the execution; NULL only when no human actor was proven */ + actorId?: string; + /** Log entry timestamp (partition key) */ createdAt?: string; - /** Current root object hash of this store */ - hash?: string; - /** Unique store identifier */ + /** Unique log entry identifier */ id?: string; - /** Human-readable store name */ - name: string; - /** Opaque store partition key for the global tier */ - scopeId: string; + /** Invocation this log entry belongs to (NULL for standalone job logs) */ + invocationId?: string; + /** Log severity: debug, info, warn, error */ + logLevel?: string; + /** Log message text */ + message: string; + /** Structured context (labels, trace data, extra fields) */ + metadata?: unknown; + /** Function routing key (NULL for generic job logs) */ + taskIdentifier?: string; } -/** Represents an update to a `FunctionGraphStore`. Fields that are set will be updated. */ -export interface FunctionGraphStorePatch { - /** Timestamp of store creation */ +/** Represents an update to a `PlatformFunctionExecutionLog`. Fields that are set will be updated. */ +export interface PlatformFunctionExecutionLogPatch { + /** User who triggered the execution; NULL only when no human actor was proven */ + actorId?: string; + /** Log entry timestamp (partition key) */ createdAt?: string; - /** Current root object hash of this store */ - hash?: string; - /** Unique store identifier */ + /** Unique log entry identifier */ id?: string; - /** Human-readable store name */ - name?: string; - /** Opaque store partition key for the global tier */ - scopeId?: string; -} -/** A filter to be used against many `FunctionGraphExecution` object types. All fields are combined with a logical ‘and.’ */ -export interface FunctionGraphToManyFunctionGraphExecutionFilter { - /** Filters to entities where every related entity matches. */ - every?: FunctionGraphExecutionFilter; - /** Filters to entities where no related entity matches. */ - none?: FunctionGraphExecutionFilter; - /** Filters to entities where at least one related entity matches. */ - some?: FunctionGraphExecutionFilter; -} -/** A filter to be used against many `PlatformFunctionDefinition` object types. All fields are combined with a logical ‘and.’ */ -export interface FunctionGraphToManyPlatformFunctionDefinitionFilter { - /** Filters to entities where every related entity matches. */ - every?: PlatformFunctionDefinitionFilter; - /** Filters to entities where no related entity matches. */ - none?: PlatformFunctionDefinitionFilter; - /** Filters to entities where at least one related entity matches. */ - some?: PlatformFunctionDefinitionFilter; + /** Invocation this log entry belongs to (NULL for standalone job logs) */ + invocationId?: string; + /** Log severity: debug, info, warn, error */ + logLevel?: string; + /** Log message text */ + message?: string; + /** Structured context (labels, trace data, extra fields) */ + metadata?: unknown; + /** Function routing key (NULL for generic job logs) */ + taskIdentifier?: string; } -/** A filter to be used against `FunctionInvocationAttempt` object types. All fields are combined with a logical ‘and.’ */ -export interface FunctionInvocationAttemptFilter { +/** A filter to be used against `PlatformFunctionInvocationAttempt` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformFunctionInvocationAttemptFilter { /** Filter by the object’s `actorId` field. */ actorId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: FunctionInvocationAttemptFilter[]; + and?: PlatformFunctionInvocationAttemptFilter[]; /** Filter by the object’s `attempt` field. */ attempt?: IntFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; /** Filter by the object’s `durationMs` field. */ durationMs?: IntFilter; /** Filter by the object’s `error` field. */ @@ -4437,9 +10439,9 @@ export interface FunctionInvocationAttemptFilter { /** Filter by the object’s `invocationId` field. */ invocationId?: UUIDFilter; /** Negates the expression. */ - not?: FunctionInvocationAttemptFilter; + not?: PlatformFunctionInvocationAttemptFilter; /** Checks for any expressions in this list. */ - or?: FunctionInvocationAttemptFilter[]; + or?: PlatformFunctionInvocationAttemptFilter[]; /** Filter by the object’s `startedAt` field. */ startedAt?: DatetimeFilter; /** Filter by the object’s `success` field. */ @@ -4447,16 +10449,14 @@ export interface FunctionInvocationAttemptFilter { /** Filter by the object’s `taskIdentifier` field. */ taskIdentifier?: StringFilter; } -/** An input for mutations affecting `FunctionInvocationAttempt` */ -export interface FunctionInvocationAttemptInput { - /** Who triggered the invocation (NULL for system/cron) */ +/** An input for mutations affecting `PlatformFunctionInvocationAttempt` */ +export interface PlatformFunctionInvocationAttemptInput { + /** Who triggered the invocation; NULL only when no human actor was proven */ actorId?: string; /** 1-based attempt number for this invocation */ attempt: number; /** When the attempt result was recorded (partition key) */ createdAt?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; /** Wall-clock attempt time in milliseconds */ durationMs?: number; /** Error message when the attempt failed */ @@ -4476,16 +10476,14 @@ export interface FunctionInvocationAttemptInput { /** Function routing slug (denormalized from the invocation) */ taskIdentifier: string; } -/** Represents an update to a `FunctionInvocationAttempt`. Fields that are set will be updated. */ -export interface FunctionInvocationAttemptPatch { - /** Who triggered the invocation (NULL for system/cron) */ +/** Represents an update to a `PlatformFunctionInvocationAttempt`. Fields that are set will be updated. */ +export interface PlatformFunctionInvocationAttemptPatch { + /** Who triggered the invocation; NULL only when no human actor was proven */ actorId?: string; /** 1-based attempt number for this invocation */ attempt?: number; /** When the attempt result was recorded (partition key) */ createdAt?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId?: string; /** Wall-clock attempt time in milliseconds */ durationMs?: number; /** Error message when the attempt failed */ @@ -4505,14 +10503,14 @@ export interface FunctionInvocationAttemptPatch { /** Function routing slug (denormalized from the invocation) */ taskIdentifier?: string; } -/** A filter to be used against `FunctionInvocation` object types. All fields are combined with a logical ‘and.’ */ -export interface FunctionInvocationFilter { +/** A filter to be used against `PlatformFunctionInvocation` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformFunctionInvocationFilter { /** Filter by the object’s `actorId` field. */ actorId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: FunctionInvocationFilter[]; + and?: PlatformFunctionInvocationFilter[]; /** Filter by the object’s `apiBinding` relation. */ - apiBinding?: FunctionApiBindingFilter; + apiBinding?: PlatformFunctionApiBindingFilter; /** A related `apiBinding` exists. */ apiBindingExists?: boolean; /** Filter by the object’s `apiBindingId` field. */ @@ -4523,12 +10521,18 @@ export interface FunctionInvocationFilter { completedAt?: DatetimeFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; /** Filter by the object’s `definitionScope` field. */ definitionScope?: StringFilter; /** Filter by the object’s `durationMs` field. */ durationMs?: IntFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `entityType` field. */ + entityType?: StringFilter; /** Filter by the object’s `error` field. */ error?: StringFilter; /** Filter by the object’s `functionDefinitionId` field. */ @@ -4540,13 +10544,17 @@ export interface FunctionInvocationFilter { /** Filter by the object’s `jobId` field. */ jobId?: BigIntFilter; /** Negates the expression. */ - not?: FunctionInvocationFilter; + not?: PlatformFunctionInvocationFilter; /** Checks for any expressions in this list. */ - or?: FunctionInvocationFilter[]; + or?: PlatformFunctionInvocationFilter[]; + /** Filter by the object’s `organizationId` field. */ + organizationId?: UUIDFilter; /** Filter by the object’s `parentInvocationId` field. */ parentInvocationId?: UUIDFilter; /** Filter by the object’s `payload` field. */ payload?: JSONFilter; + /** Filter by the object’s `principalId` field. */ + principalId?: UUIDFilter; /** Filter by the object’s `provenance` field. */ provenance?: JSONFilter; /** Filter by the object’s `result` field. */ @@ -4558,24 +10566,30 @@ export interface FunctionInvocationFilter { /** Filter by the object’s `taskIdentifier` field. */ taskIdentifier?: StringFilter; } -/** An input for mutations affecting `FunctionInvocation` */ -export interface FunctionInvocationInput { - /** Who triggered the invocation (NULL for system/cron) */ +/** An input for mutations affecting `PlatformFunctionInvocation` */ +export interface PlatformFunctionInvocationInput { + /** Who triggered the invocation; NULL only when no human actor was proven */ actorId?: string; /** API binding this invocation arrived through (NULL for cron/graph/system/worker paths) */ apiBindingId?: string; - /** Invocation trigger channel: api, graph, cron, sync, webhook, or worker */ - channel?: string; + /** Invocation trigger channel: api, graph, cron, sync, webhook, trigger, or worker */ + channel: string; /** When execution completed */ completedAt?: string; /** Invocation creation timestamp (partition key) */ createdAt?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; + /** Acting principal (agent, API key, or user) who created this record */ + createdByPrincipal?: string; + /** Database this invocation is attributed to (usage/billing attribution) */ + databaseId?: string; /** Scope that owns function_definition_id (e.g. app/org/database/platform) — the per-scope definitions table the resolver selected */ definitionScope?: string; /** Wall-clock execution time in milliseconds */ durationMs?: number; + /** Entity identity propagated with the invocation */ + entityId?: string; + /** Entity type propagated with the invocation */ + entityType?: string; /** Error message when status is failed, or the reason the run was skipped when status is skipped */ error?: string; /** Function definition this invocation ran (soft cross-scope ref; paired with definition_scope). task_identifier stays as the audit slug. */ @@ -4586,10 +10600,14 @@ export interface FunctionInvocationInput { id?: string; /** FK to app_jobs.jobs — the underlying transport */ jobId?: string; + /** Organization identity propagated with the invocation */ + organizationId?: string; /** Parent invocation when this is a child node of a flow graph execution */ parentInvocationId?: string; /** Function input payload */ payload?: unknown; + /** Principal identity that triggered the invocation */ + principalId?: string; /** Non-secret channel-specific invocation provenance (route/binding/event identifiers only) */ provenance?: unknown; /** Function return value (success) or structured error (failure) */ @@ -4601,24 +10619,30 @@ export interface FunctionInvocationInput { /** Function routing slug (category:name). Denormalized from the definition — must match the row referenced by function_definition_id when that is set. */ taskIdentifier: string; } -/** Represents an update to a `FunctionInvocation`. Fields that are set will be updated. */ -export interface FunctionInvocationPatch { - /** Who triggered the invocation (NULL for system/cron) */ +/** Represents an update to a `PlatformFunctionInvocation`. Fields that are set will be updated. */ +export interface PlatformFunctionInvocationPatch { + /** Who triggered the invocation; NULL only when no human actor was proven */ actorId?: string; /** API binding this invocation arrived through (NULL for cron/graph/system/worker paths) */ apiBindingId?: string; - /** Invocation trigger channel: api, graph, cron, sync, webhook, or worker */ + /** Invocation trigger channel: api, graph, cron, sync, webhook, trigger, or worker */ channel?: string; /** When execution completed */ completedAt?: string; /** Invocation creation timestamp (partition key) */ createdAt?: string; - /** Database that owns this resource (database-scoped isolation) */ + /** Acting principal (agent, API key, or user) who created this record */ + createdByPrincipal?: string; + /** Database this invocation is attributed to (usage/billing attribution) */ databaseId?: string; /** Scope that owns function_definition_id (e.g. app/org/database/platform) — the per-scope definitions table the resolver selected */ definitionScope?: string; /** Wall-clock execution time in milliseconds */ durationMs?: number; + /** Entity identity propagated with the invocation */ + entityId?: string; + /** Entity type propagated with the invocation */ + entityType?: string; /** Error message when status is failed, or the reason the run was skipped when status is skipped */ error?: string; /** Function definition this invocation ran (soft cross-scope ref; paired with definition_scope). task_identifier stays as the audit slug. */ @@ -4629,10 +10653,14 @@ export interface FunctionInvocationPatch { id?: string; /** FK to app_jobs.jobs — the underlying transport */ jobId?: string; + /** Organization identity propagated with the invocation */ + organizationId?: string; /** Parent invocation when this is a child node of a flow graph execution */ parentInvocationId?: string; /** Function input payload */ payload?: unknown; + /** Principal identity that triggered the invocation */ + principalId?: string; /** Non-secret channel-specific invocation provenance (route/binding/event identifiers only) */ provenance?: unknown; /** Function return value (success) or structured error (failure) */ @@ -4644,33 +10672,221 @@ export interface FunctionInvocationPatch { /** Function routing slug (category:name). Denormalized from the definition — must match the row referenced by function_definition_id when that is set. */ taskIdentifier?: string; } -export interface ImportDefinitionsInput { +export interface PlatformFunctionInvocationsCreateSyncInput { clientMutationId?: string; - contexts?: string[]; - graphId?: string; - sourceCommitId?: string; - sourceScopeId?: string; + entityId?: string; + payload?: unknown; + provenance?: unknown; + routeBindingId?: string; + taskIdentifier?: string; } -export interface ImportGraphJsonInput { - clientMutationId?: string; - context?: string; - createdBy?: string; - definitionsCommitId?: string; +/** A filter to be used against `PlatformImage` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformImageFilter { + /** Checks for all expressions in this list. */ + and?: PlatformImageFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `digest` field. */ + digest?: StringFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isPublished` field. */ + isPublished?: BooleanFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: PlatformImageFilter; + /** Checks for any expressions in this list. */ + or?: PlatformImageFilter[]; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `platformImageGrantsByImageId` relation. */ + platformImageGrantsByImageId?: PlatformImageToManyPlatformImageGrantFilter; + /** `platformImageGrantsByImageId` exist. */ + platformImageGrantsByImageIdExist?: boolean; + /** Filter by the object’s `platformOnly` field. */ + platformOnly?: BooleanFilter; + /** Filter by the object’s `registryHost` field. */ + registryHost?: StringFilter; + /** Filter by the object’s `repository` field. */ + repository?: StringFilter; + /** Filter by the object’s `runtime` field. */ + runtime?: StringFilter; + /** Filter by the object’s `tag` field. */ + tag?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} +/** A filter to be used against `PlatformImageGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformImageGrantFilter { + /** Filter by the object’s `actions` field. */ + actions?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: PlatformImageGrantFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; + /** Filter by the object’s `grantedBy` field. */ + grantedBy?: UUIDFilter; + /** Filter by the object’s `granteeKey` field. */ + granteeKey?: UUIDFilter; + /** Filter by the object’s `granteeScope` field. */ + granteeScope?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `image` relation. */ + image?: PlatformImageFilter; + /** Filter by the object’s `imageId` field. */ + imageId?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformImageGrantFilter; + /** Checks for any expressions in this list. */ + or?: PlatformImageGrantFilter[]; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} +/** An input for mutations affecting `PlatformImageGrant` */ +export interface PlatformImageGrantInput { + /** Registry actions this grant allows (pull, push, delete) */ + actions?: string[]; + createdAt?: string; + createdByPrincipal?: string; + /** When this grant stops applying (NULL never expires) */ + expiresAt?: string; + /** User who issued this grant */ + grantedBy?: string; + /** Scope key of the grantee (a database_id or an entity_id) */ + granteeKey: string; + /** Scope tier of the grantee (database, org, app, platform) */ + granteeScope: string; + id?: string; + /** Catalog image this grant applies to */ + imageId: string; + updatedAt?: string; + updatedByPrincipal?: string; +} +/** Represents an update to a `PlatformImageGrant`. Fields that are set will be updated. */ +export interface PlatformImageGrantPatch { + /** Registry actions this grant allows (pull, push, delete) */ + actions?: string[]; + createdAt?: string; + createdByPrincipal?: string; + /** When this grant stops applying (NULL never expires) */ + expiresAt?: string; + /** User who issued this grant */ + grantedBy?: string; + /** Scope key of the grantee (a database_id or an entity_id) */ + granteeKey?: string; + /** Scope tier of the grantee (database, org, app, platform) */ + granteeScope?: string; + id?: string; + /** Catalog image this grant applies to */ + imageId?: string; + updatedAt?: string; + updatedByPrincipal?: string; +} +/** An input for mutations affecting `PlatformImage` */ +export interface PlatformImageInput { + createdAt?: string; + createdByPrincipal?: string; + /** Human-readable description of what this image runs */ description?: string; - graphJson?: unknown; + /** Content address (sha256:...) pinning this image, when known */ + digest?: string; + /** When this catalog row becomes eligible for retention cleanup (NULL = kept forever) */ + expiresAt?: string; + id?: string; + /** Whether this image is published for use by any scope */ + isPublished?: boolean; + /** Labels for selecting images (architecture, capabilities, lane) */ + labels?: unknown; + /** Freeform metadata (build provenance, source repository, SBOM pointer) */ + metadata?: unknown; + /** Human-readable image name (e.g. node-runtime) */ + name: string; + /** User who registered this catalog row */ + ownerId?: string; + /** Whether this image is reserved for platform-internal use */ + platformOnly?: boolean; + /** Registry host serving this image (NULL means the platform default registry) */ + registryHost?: string; + /** Repository path within the registry (e.g. constructiveio/worker) */ + repository: string; + /** Runtime this image implements (e.g. nodejs, python, custom) */ + runtime?: string; + /** Mutable tag this row addresses */ + tag?: string; + updatedAt?: string; + updatedByPrincipal?: string; +} +/** Represents an update to a `PlatformImage`. Fields that are set will be updated. */ +export interface PlatformImagePatch { + createdAt?: string; + createdByPrincipal?: string; + /** Human-readable description of what this image runs */ + description?: string; + /** Content address (sha256:...) pinning this image, when known */ + digest?: string; + /** When this catalog row becomes eligible for retention cleanup (NULL = kept forever) */ + expiresAt?: string; + id?: string; + /** Whether this image is published for use by any scope */ + isPublished?: boolean; + /** Labels for selecting images (architecture, capabilities, lane) */ + labels?: unknown; + /** Freeform metadata (build provenance, source repository, SBOM pointer) */ + metadata?: unknown; + /** Human-readable image name (e.g. node-runtime) */ name?: string; - scopeId?: string; + /** User who registered this catalog row */ + ownerId?: string; + /** Whether this image is reserved for platform-internal use */ + platformOnly?: boolean; + /** Registry host serving this image (NULL means the platform default registry) */ + registryHost?: string; + /** Repository path within the registry (e.g. constructiveio/worker) */ + repository?: string; + /** Runtime this image implements (e.g. nodejs, python, custom) */ + runtime?: string; + /** Mutable tag this row addresses */ + tag?: string; + updatedAt?: string; + updatedByPrincipal?: string; } -/** A filter to be used against `InfraCommit` object types. All fields are combined with a logical ‘and.’ */ -export interface InfraCommitFilter { +/** A filter to be used against many `PlatformImageGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformImageToManyPlatformImageGrantFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformImageGrantFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformImageGrantFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformImageGrantFilter; +} +/** A filter to be used against `PlatformInfraCommit` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformInfraCommitFilter { /** Checks for all expressions in this list. */ - and?: InfraCommitFilter[]; + and?: PlatformInfraCommitFilter[]; /** Filter by the object’s `authorId` field. */ authorId?: UUIDFilter; /** Filter by the object’s `committerId` field. */ committerId?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; /** Filter by the object’s `date` field. */ date?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -4678,24 +10894,24 @@ export interface InfraCommitFilter { /** Filter by the object’s `message` field. */ message?: StringFilter; /** Negates the expression. */ - not?: InfraCommitFilter; + not?: PlatformInfraCommitFilter; /** Checks for any expressions in this list. */ - or?: InfraCommitFilter[]; + or?: PlatformInfraCommitFilter[]; /** Filter by the object’s `parentIds` field. */ parentIds?: UUIDListFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; /** Filter by the object’s `storeId` field. */ storeId?: UUIDFilter; /** Filter by the object’s `treeId` field. */ treeId?: UUIDFilter; } -/** An input for mutations affecting `InfraCommit` */ -export interface InfraCommitInput { +/** An input for mutations affecting `PlatformInfraCommit` */ +export interface PlatformInfraCommitInput { /** User who authored the changes */ authorId?: string; /** User who committed (may differ from author) */ committerId?: string; - /** Database scope for multi-tenant isolation */ - databaseId: string; /** Commit timestamp */ date?: string; /** Unique commit identifier */ @@ -4704,19 +10920,19 @@ export interface InfraCommitInput { message?: string; /** Parent commit IDs (supports merge commits) */ parentIds?: string[]; + /** Opaque store partition key for the global tier */ + scopeId: string; /** Store this commit belongs to */ storeId: string; /** Root object ID of the tree snapshot at this commit */ treeId?: string; } -/** Represents an update to a `InfraCommit`. Fields that are set will be updated. */ -export interface InfraCommitPatch { +/** Represents an update to a `PlatformInfraCommit`. Fields that are set will be updated. */ +export interface PlatformInfraCommitPatch { /** User who authored the changes */ authorId?: string; /** User who committed (may differ from author) */ committerId?: string; - /** Database scope for multi-tenant isolation */ - databaseId?: string; /** Commit timestamp */ date?: string; /** Unique commit identifier */ @@ -4725,17 +10941,19 @@ export interface InfraCommitPatch { message?: string; /** Parent commit IDs (supports merge commits) */ parentIds?: string[]; + /** Opaque store partition key for the global tier */ + scopeId?: string; /** Store this commit belongs to */ storeId?: string; /** Root object ID of the tree snapshot at this commit */ treeId?: string; } -export interface InfraInitEmptyRepoInput { +export interface PlatformInfraInitEmptyRepoInput { clientMutationId?: string; sId?: string; storeId?: string; } -export interface InfraInsertNodeAtPathInput { +export interface PlatformInfraInsertNodeAtPathInput { clientMutationId?: string; data?: unknown; kids?: string[]; @@ -4744,7 +10962,7 @@ export interface InfraInsertNodeAtPathInput { root?: string; sId?: string; } -export interface InfraInsertNodesAtPathsInput { +export interface PlatformInfraInsertNodesAtPathsInput { clientMutationId?: string; datas?: unknown[]; kidsList?: unknown; @@ -4753,16 +10971,14 @@ export interface InfraInsertNodesAtPathsInput { root?: string; sId?: string; } -/** A filter to be used against `InfraObject` object types. All fields are combined with a logical ‘and.’ */ -export interface InfraObjectFilter { +/** 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. */ - and?: InfraObjectFilter[]; + and?: PlatformInfraObjectFilter[]; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `data` field. */ data?: JSONFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `kids` field. */ @@ -4770,86 +10986,88 @@ export interface InfraObjectFilter { /** Filter by the object’s `ktree` field. */ ktree?: StringListFilter; /** Negates the expression. */ - not?: InfraObjectFilter; + not?: PlatformInfraObjectFilter; /** Checks for any expressions in this list. */ - or?: InfraObjectFilter[]; + or?: PlatformInfraObjectFilter[]; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; } -/** An input for mutations affecting `InfraObject` */ -export interface InfraObjectInput { +/** An input for mutations affecting `PlatformInfraObject` */ +export interface PlatformInfraObjectInput { /** Timestamp of object creation */ createdAt?: string; /** Payload data for this object node */ data?: unknown; - /** Database scope for multi-tenant isolation */ - databaseId: string; /** Content-addressed UUID v5 — deterministic hash of (data, kids, ktree) */ id: string; /** Ordered array of child object IDs */ kids?: string[]; /** Ordered array of child path names (parallel to kids) */ ktree?: string[]; + /** Opaque store partition key for the global tier */ + scopeId: string; } -/** Represents an update to a `InfraObject`. Fields that are set will be updated. */ -export interface InfraObjectPatch { +/** Represents an update to a `PlatformInfraObject`. Fields that are set will be updated. */ +export interface PlatformInfraObjectPatch { /** Timestamp of object creation */ createdAt?: string; /** Payload data for this object node */ data?: unknown; - /** Database scope for multi-tenant isolation */ - databaseId?: string; /** Content-addressed UUID v5 — deterministic hash of (data, kids, ktree) */ id?: string; /** Ordered array of child object IDs */ kids?: string[]; /** Ordered array of child path names (parallel to kids) */ ktree?: string[]; + /** Opaque store partition key for the global tier */ + scopeId?: string; } -/** A filter to be used against `InfraRef` object types. All fields are combined with a logical ‘and.’ */ -export interface InfraRefFilter { +/** A filter to be used against `PlatformInfraRef` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformInfraRefFilter { /** Checks for all expressions in this list. */ - and?: InfraRefFilter[]; + and?: PlatformInfraRefFilter[]; /** Filter by the object’s `commitId` field. */ commitId?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; /** Negates the expression. */ - not?: InfraRefFilter; + not?: PlatformInfraRefFilter; /** Checks for any expressions in this list. */ - or?: InfraRefFilter[]; + or?: PlatformInfraRefFilter[]; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; /** Filter by the object’s `storeId` field. */ storeId?: UUIDFilter; } -/** An input for mutations affecting `InfraRef` */ -export interface InfraRefInput { +/** An input for mutations affecting `PlatformInfraRef` */ +export interface PlatformInfraRefInput { /** Commit this ref points to */ commitId?: string; - /** Database scope for multi-tenant isolation */ - databaseId: string; /** Unique ref identifier */ id?: string; /** Ref name (e.g. HEAD, main) */ name: string; + /** Opaque store partition key for the global tier */ + scopeId: string; /** Store this ref belongs to */ storeId: string; } -/** Represents an update to a `InfraRef`. Fields that are set will be updated. */ -export interface InfraRefPatch { +/** Represents an update to a `PlatformInfraRef`. Fields that are set will be updated. */ +export interface PlatformInfraRefPatch { /** Commit this ref points to */ commitId?: string; - /** Database scope for multi-tenant isolation */ - databaseId?: string; /** Unique ref identifier */ id?: string; /** Ref name (e.g. HEAD, main) */ name?: string; + /** Opaque store partition key for the global tier */ + scopeId?: string; /** Store this ref belongs to */ storeId?: string; } -export interface InfraSetAndCommitInput { +export interface PlatformInfraSetAndCommitInput { clientMutationId?: string; data?: unknown; kids?: string[]; @@ -4860,14 +11078,14 @@ export interface InfraSetAndCommitInput { sId?: string; storeId?: string; } -export interface InfraSetDataAtPathInput { +export interface PlatformInfraSetDataAtPathInput { clientMutationId?: string; data?: unknown; path?: string[]; root?: string; sId?: string; } -export interface InfraSetManyAndCommitInput { +export interface PlatformInfraSetManyAndCommitInput { clientMutationId?: string; entries?: unknown; message?: string; @@ -4875,14 +11093,12 @@ export interface InfraSetManyAndCommitInput { sId?: string; storeId?: string; } -/** A filter to be used against `InfraStore` object types. All fields are combined with a logical ‘and.’ */ -export interface InfraStoreFilter { +/** 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. */ - and?: InfraStoreFilter[]; + and?: PlatformInfraStoreFilter[]; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; /** Filter by the object’s `hash` field. */ hash?: UUIDFilter; /** Filter by the object’s `id` field. */ @@ -4890,192 +11106,196 @@ export interface InfraStoreFilter { /** Filter by the object’s `name` field. */ name?: StringFilter; /** Negates the expression. */ - not?: InfraStoreFilter; + not?: PlatformInfraStoreFilter; /** Checks for any expressions in this list. */ - or?: InfraStoreFilter[]; + or?: PlatformInfraStoreFilter[]; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; } -/** An input for mutations affecting `InfraStore` */ -export interface InfraStoreInput { +/** An input for mutations affecting `PlatformInfraStore` */ +export interface PlatformInfraStoreInput { /** Timestamp of store creation */ createdAt?: string; - /** Database scope for multi-tenant isolation */ - databaseId: string; /** Current root object hash of this store */ hash?: string; /** Unique store identifier */ id?: string; /** Human-readable store name */ name: string; + /** Opaque store partition key for the global tier */ + scopeId: string; } -/** Represents an update to a `InfraStore`. Fields that are set will be updated. */ -export interface InfraStorePatch { +/** Represents an update to a `PlatformInfraStore`. Fields that are set will be updated. */ +export interface PlatformInfraStorePatch { /** Timestamp of store creation */ createdAt?: string; - /** Database scope for multi-tenant isolation */ - databaseId?: string; /** Current root object hash of this store */ hash?: string; /** Unique store identifier */ id?: string; /** Human-readable store name */ name?: string; + /** Opaque store partition key for the global tier */ + scopeId?: string; } -export interface InitEmptyRepoInput { - clientMutationId?: string; - sId?: string; - storeId?: string; -} -export interface InsertNodeAtPathInput { - clientMutationId?: string; - data?: unknown; - kids?: string[]; - ktree?: string[]; - path?: string[]; - 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 { +/** A filter to be used against `PlatformK8sResourceKind` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformK8sResourceKindFilter { + /** Filter by the object’s `active` field. */ + active?: BooleanFilter; /** Checks for all expressions in this list. */ - and?: IntegrationProviderFilter[]; - /** Filter by the object’s `brand` field. */ - brand?: JSONFilter; - /** Filter by the object’s `category` field. */ - category?: StringFilter; + and?: PlatformK8sResourceKindFilter[]; + /** 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 `icon` field. */ - icon?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `logo` field. */ - logo?: ConstructiveInternalTypeImageFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; + /** Filter by the object’s `label` field. */ + label?: StringFilter; /** Negates the expression. */ - not?: IntegrationProviderFilter; + not?: PlatformK8sResourceKindFilter; /** Checks for any expressions in this list. */ - or?: IntegrationProviderFilter[]; + or?: PlatformK8sResourceKindFilter[]; /** 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 `IntegrationProvider` */ -export interface IntegrationProviderInput { - /** Brand metadata: colors, fonts, and other provider-specific styling. Not a foreign key. */ - brand?: unknown; - /** Browser category (e.g. email, database, storage, ai, analytics) */ - category?: string; +/** An input for mutations affecting `PlatformK8sResourceKind` */ +export interface PlatformK8sResourceKindInput { + /** Whether the admission gate consults this row; deactivating a kind row denies the kind (fail closed) */ + active?: boolean; + /** Infra store commit for the current definition (stamped by the versioned trigger on every write) */ + commitId?: string; + /** Timestamp of policy creation */ createdAt?: string; - /** Short description of what this integration provides and when to use it */ + /** Kind policy: {allowed, allowed_scopes?, notes} — the readily-cached head; history lives in the infra store */ + definition: unknown; + /** Human-readable description of the kind policy */ description?: string; - /** Icon identifier for the UI (e.g. mail, database, cloud) */ - icon?: string; + /** Unique kind policy identifier */ id?: string; - /** Provider logo as an image domain value (url, id, key, bucket, provider) */ - logo?: ConstructiveInternalTypeImage; - /** Human-readable brand name (e.g. 'Mailgun', 'PostgreSQL') */ - name: string; - /** Canonical config requirements for this provider: array of (name, required, provider) tuples. Used by the UI to auto-fill function/resource required_configs. */ - requiredConfigs?: ResourceRequirementInput[]; - /** Canonical secret requirements for this provider: array of (name, required, provider) tuples. Used by the UI to auto-fill function/resource required_secrets. */ - requiredSecrets?: ResourceRequirementInput[]; - /** Stable URL-safe identifier for the provider. Other tables match by this string, not by FK. */ + /** Human-readable kind policy name */ + label?: string; + /** Kubernetes kind this policy governs (e.g. Deployment); the policy's path in the infra tree is [k8s_resource_kind, slug] */ slug: string; + /** Infra Merkle store holding this policy's history (stamped by the versioned trigger) */ + storeId?: string; + /** Timestamp of last modification */ updatedAt?: string; } -/** Represents an update to a `IntegrationProvider`. Fields that are set will be updated. */ -export interface IntegrationProviderPatch { - /** Brand metadata: colors, fonts, and other provider-specific styling. Not a foreign key. */ - brand?: unknown; - /** Browser category (e.g. email, database, storage, ai, analytics) */ - category?: string; +/** Represents an update to a `PlatformK8sResourceKind`. Fields that are set will be updated. */ +export interface PlatformK8sResourceKindPatch { + /** Whether the admission gate consults this row; deactivating a kind row denies the kind (fail closed) */ + active?: boolean; + /** Infra store commit for the current definition (stamped by the versioned trigger on every write) */ + commitId?: string; + /** Timestamp of policy creation */ createdAt?: string; - /** Short description of what this integration provides and when to use it */ + /** Kind policy: {allowed, allowed_scopes?, notes} — the readily-cached head; history lives in the infra store */ + definition?: unknown; + /** Human-readable description of the kind policy */ description?: string; - /** Icon identifier for the UI (e.g. mail, database, cloud) */ - icon?: string; + /** Unique kind policy identifier */ id?: string; - /** Provider logo as an image domain value (url, id, key, bucket, provider) */ - logo?: ConstructiveInternalTypeImage; - /** Upload for Provider logo as an image domain value (url, id, key, bucket, provider) */ - logoUpload?: File; - /** Human-readable brand name (e.g. 'Mailgun', 'PostgreSQL') */ - name?: string; - /** Canonical config requirements for this provider: array of (name, required, provider) tuples. Used by the UI to auto-fill function/resource required_configs. */ - requiredConfigs?: ResourceRequirementInput[]; - /** Canonical secret requirements for this provider: array of (name, required, provider) tuples. Used by the UI to auto-fill function/resource required_secrets. */ - requiredSecrets?: ResourceRequirementInput[]; - /** Stable URL-safe identifier for the provider. Other tables match by this string, not by FK. */ + /** Human-readable kind policy name */ + label?: string; + /** Kubernetes kind this policy governs (e.g. Deployment); the policy's path in the infra tree is [k8s_resource_kind, slug] */ slug?: string; + /** Infra Merkle store holding this policy's history (stamped by the versioned trigger) */ + storeId?: string; + /** Timestamp of last modification */ updatedAt?: string; } -/** A filter to be used against Interval fields. All fields are combined with a logical ‘and.’ */ -export interface IntervalFilter { - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: IntervalInput; - /** Equal to the specified value. */ - equalTo?: IntervalInput; - /** Greater than the specified value. */ - greaterThan?: IntervalInput; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: IntervalInput; - /** Included in the specified list. */ - in?: IntervalInput[]; - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Less than the specified value. */ - lessThan?: IntervalInput; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: IntervalInput; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: IntervalInput; - /** Not equal to the specified value. */ - notEqualTo?: IntervalInput; - /** Not included in the specified list. */ - notIn?: IntervalInput[]; -} -/** An interval of time that has passed where the smallest distinct unit is a second. */ -export interface IntervalInput { - /** A quantity of days. */ - days?: number; - /** A quantity of hours. */ - hours?: number; - /** A quantity of minutes. */ - minutes?: number; - /** A quantity of months. */ - months?: number; - /** - * A quantity of seconds. This is the only non-integer field, as all the other - * fields will dump their overflow into a smaller unit of time. Intervals don’t - * have a smaller unit than seconds. - */ - seconds?: number; - /** A quantity of years. */ - years?: number; +/** A filter to be used against `PlatformK8sSpecRule` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformK8sSpecRuleFilter { + /** Filter by the object’s `active` field. */ + active?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: PlatformK8sSpecRuleFilter[]; + /** 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 `label` field. */ + label?: StringFilter; + /** Negates the expression. */ + not?: PlatformK8sSpecRuleFilter; + /** Checks for any expressions in this list. */ + or?: PlatformK8sSpecRuleFilter[]; + /** 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; } -/** A filter to be used against `NamespaceEvent` object types. All fields are combined with a logical ‘and.’ */ -export interface NamespaceEventFilter { +/** An input for mutations affecting `PlatformK8sSpecRule` */ +export interface PlatformK8sSpecRuleInput { + /** Whether the admission gate enforces this rule; rules are disabled here rather than deleted so history stays intact */ + active?: boolean; + /** Infra store commit for the current definition (stamped by the versioned trigger on every write) */ + commitId?: string; + /** Timestamp of rule creation */ + createdAt?: string; + /** Rule definition: {rule_type, kind?, match, notes?} — the readily-cached head; history lives in the infra store */ + definition: unknown; + /** Human-readable description of the rule */ + description?: string; + /** Unique spec rule identifier */ + id?: string; + /** Human-readable rule name */ + label?: string; + /** Rule slug (unique per scope); the rule's path in the infra tree is [k8s_spec_rule, slug] */ + slug: string; + /** Infra Merkle store holding this rule's history (stamped by the versioned trigger) */ + storeId?: string; + /** Timestamp of last modification */ + updatedAt?: string; +} +/** Represents an update to a `PlatformK8sSpecRule`. Fields that are set will be updated. */ +export interface PlatformK8sSpecRulePatch { + /** Whether the admission gate enforces this rule; rules are disabled here rather than deleted so history stays intact */ + active?: boolean; + /** Infra store commit for the current definition (stamped by the versioned trigger on every write) */ + commitId?: string; + /** Timestamp of rule creation */ + createdAt?: string; + /** Rule definition: {rule_type, kind?, match, notes?} — the readily-cached head; history lives in the infra store */ + definition?: unknown; + /** Human-readable description of the rule */ + description?: string; + /** Unique spec rule identifier */ + id?: string; + /** Human-readable rule name */ + label?: string; + /** Rule slug (unique per scope); the rule's path in the infra tree is [k8s_spec_rule, slug] */ + slug?: string; + /** Infra Merkle store holding this rule's history (stamped by the versioned trigger) */ + storeId?: string; + /** Timestamp of last modification */ + updatedAt?: string; +} +/** A filter to be used against `PlatformNamespaceEvent` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformNamespaceEventFilter { /** Filter by the object’s `actorId` field. */ actorId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: NamespaceEventFilter[]; + and?: PlatformNamespaceEventFilter[]; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; /** Filter by the object’s `eventType` field. */ eventType?: StringFilter; /** Filter by the object’s `id` field. */ @@ -5087,18 +11307,16 @@ export interface NamespaceEventFilter { /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ - not?: NamespaceEventFilter; + not?: PlatformNamespaceEventFilter; /** Checks for any expressions in this list. */ - or?: NamespaceEventFilter[]; + or?: PlatformNamespaceEventFilter[]; } -/** An input for mutations affecting `NamespaceEvent` */ -export interface NamespaceEventInput { - /** User who triggered this event (NULL for system/automated) */ +/** An input for mutations affecting `PlatformNamespaceEvent` */ +export interface PlatformNamespaceEventInput { + /** User who triggered this event; NULL only when no human actor was proven */ actorId?: string; /** Event timestamp (partition key) */ createdAt?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; /** Event type: created, activated, deactivated, labels_updated, annotations_updated, renamed */ eventType: string; /** Unique event identifier */ @@ -5110,14 +11328,12 @@ export interface NamespaceEventInput { /** Namespace this event belongs to */ namespaceId: string; } -/** Represents an update to a `NamespaceEvent`. Fields that are set will be updated. */ -export interface NamespaceEventPatch { - /** User who triggered this event (NULL for system/automated) */ +/** Represents an update to a `PlatformNamespaceEvent`. Fields that are set will be updated. */ +export interface PlatformNamespaceEventPatch { + /** User who triggered this event; NULL only when no human actor was proven */ actorId?: string; /** Event timestamp (partition key) */ createdAt?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId?: string; /** Event type: created, activated, deactivated, labels_updated, annotations_updated, renamed */ eventType?: string; /** Unique event identifier */ @@ -5129,22 +11345,18 @@ export interface NamespaceEventPatch { /** Namespace this event belongs to */ namespaceId?: string; } -/** A filter to be used against `Namespace` object types. All fields are combined with a logical ‘and.’ */ -export interface NamespaceFilter { +/** A filter to be used against `PlatformNamespace` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformNamespaceFilter { /** Checks for all expressions in this list. */ - and?: NamespaceFilter[]; + and?: PlatformNamespaceFilter[]; /** Filter by the object’s `annotations` field. */ annotations?: JSONFilter; + /** Filter by the object’s `clusterId` field. */ + clusterId?: 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 `functionDeployments` relation. */ - functionDeployments?: NamespaceToManyFunctionDeploymentFilter; - /** `functionDeployments` exist. */ - functionDeploymentsExist?: boolean; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `isActive` field. */ @@ -5160,37 +11372,49 @@ export interface NamespaceFilter { /** Filter by the object’s `namespaceName` field. */ namespaceName?: StringFilter; /** Negates the expression. */ - not?: NamespaceFilter; + not?: PlatformNamespaceFilter; /** Checks for any expressions in this list. */ - or?: NamespaceFilter[]; - /** Filter by the object’s `resourceDefinitions` relation. */ - resourceDefinitions?: NamespaceToManyResourceDefinitionFilter; - /** `resourceDefinitions` exist. */ - resourceDefinitionsExist?: boolean; - /** Filter by the object’s `resourceInstallations` relation. */ - resourceInstallations?: NamespaceToManyResourceInstallationFilter; - /** `resourceInstallations` exist. */ - resourceInstallationsExist?: boolean; - /** Filter by the object’s `resources` relation. */ - resources?: NamespaceToManyResourceFilter; - /** `resources` exist. */ - resourcesExist?: boolean; + or?: PlatformNamespaceFilter[]; + /** Filter by the object’s `platformBuilderBindingsByNamespaceId` relation. */ + platformBuilderBindingsByNamespaceId?: PlatformNamespaceToManyPlatformBuilderBindingFilter; + /** `platformBuilderBindingsByNamespaceId` exist. */ + platformBuilderBindingsByNamespaceIdExist?: boolean; + /** Filter by the object’s `platformFunctionDeploymentsByNamespaceId` relation. */ + platformFunctionDeploymentsByNamespaceId?: PlatformNamespaceToManyPlatformFunctionDeploymentFilter; + /** `platformFunctionDeploymentsByNamespaceId` exist. */ + platformFunctionDeploymentsByNamespaceIdExist?: boolean; + /** Filter by the object’s `platformRegistryBindingsByNamespaceId` relation. */ + platformRegistryBindingsByNamespaceId?: PlatformNamespaceToManyPlatformRegistryBindingFilter; + /** `platformRegistryBindingsByNamespaceId` exist. */ + platformRegistryBindingsByNamespaceIdExist?: boolean; + /** Filter by the object’s `platformResourceDefinitionsByNamespaceId` relation. */ + platformResourceDefinitionsByNamespaceId?: PlatformNamespaceToManyPlatformResourceDefinitionFilter; + /** `platformResourceDefinitionsByNamespaceId` exist. */ + platformResourceDefinitionsByNamespaceIdExist?: boolean; + /** Filter by the object’s `platformResourceInstallationsByNamespaceId` relation. */ + platformResourceInstallationsByNamespaceId?: PlatformNamespaceToManyPlatformResourceInstallationFilter; + /** `platformResourceInstallationsByNamespaceId` exist. */ + platformResourceInstallationsByNamespaceIdExist?: boolean; + /** Filter by the object’s `platformResourcesByNamespaceId` relation. */ + platformResourcesByNamespaceId?: PlatformNamespaceToManyPlatformResourceFilter; + /** `platformResourcesByNamespaceId` exist. */ + platformResourcesByNamespaceIdExist?: boolean; + /** Filter by the object’s `platformWebhookEndpointsByNamespaceId` relation. */ + platformWebhookEndpointsByNamespaceId?: PlatformNamespaceToManyPlatformWebhookEndpointFilter; + /** `platformWebhookEndpointsByNamespaceId` exist. */ + platformWebhookEndpointsByNamespaceIdExist?: boolean; /** Filter by the object’s `status` field. */ status?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; - /** Filter by the object’s `webhookEndpoints` relation. */ - webhookEndpoints?: NamespaceToManyWebhookEndpointFilter; - /** `webhookEndpoints` exist. */ - webhookEndpointsExist?: boolean; } -/** An input for mutations affecting `Namespace` */ -export interface NamespaceInput { +/** An input for mutations affecting `PlatformNamespace` */ +export interface PlatformNamespaceInput { /** Freeform metadata for tooling and operational notes */ annotations?: unknown; + /** Cluster this namespace is projected onto; NULL = the cluster the reconciler runs in */ + clusterId?: string; createdAt?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; /** Optional human-readable description of this namespace */ description?: string; id?: string; @@ -5210,13 +11434,13 @@ export interface NamespaceInput { status?: string; updatedAt?: string; } -/** Represents an update to a `Namespace`. Fields that are set will be updated. */ -export interface NamespacePatch { +/** Represents an update to a `PlatformNamespace`. Fields that are set will be updated. */ +export interface PlatformNamespacePatch { /** Freeform metadata for tooling and operational notes */ annotations?: unknown; + /** Cluster this namespace is projected onto; NULL = the cluster the reconciler runs in */ + clusterId?: string; createdAt?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId?: string; /** Optional human-readable description of this namespace */ description?: string; id?: string; @@ -5236,1236 +11460,1779 @@ export interface NamespacePatch { status?: string; updatedAt?: string; } -/** A filter to be used against many `FunctionDeployment` object types. All fields are combined with a logical ‘and.’ */ -export interface NamespaceToManyFunctionDeploymentFilter { +/** A filter to be used against many `PlatformBuilderBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformNamespaceToManyPlatformBuilderBindingFilter { /** Filters to entities where every related entity matches. */ - every?: FunctionDeploymentFilter; + every?: PlatformBuilderBindingFilter; /** Filters to entities where no related entity matches. */ - none?: FunctionDeploymentFilter; + none?: PlatformBuilderBindingFilter; /** Filters to entities where at least one related entity matches. */ - some?: FunctionDeploymentFilter; + some?: PlatformBuilderBindingFilter; } -/** A filter to be used against many `ResourceDefinition` object types. All fields are combined with a logical ‘and.’ */ -export interface NamespaceToManyResourceDefinitionFilter { +/** A filter to be used against many `PlatformFunctionDeployment` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformNamespaceToManyPlatformFunctionDeploymentFilter { /** Filters to entities where every related entity matches. */ - every?: ResourceDefinitionFilter; + every?: PlatformFunctionDeploymentFilter; /** Filters to entities where no related entity matches. */ - none?: ResourceDefinitionFilter; + none?: PlatformFunctionDeploymentFilter; /** Filters to entities where at least one related entity matches. */ - some?: ResourceDefinitionFilter; + some?: PlatformFunctionDeploymentFilter; } -/** A filter to be used against many `Resource` object types. All fields are combined with a logical ‘and.’ */ -export interface NamespaceToManyResourceFilter { +/** A filter to be used against many `PlatformRegistryBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformNamespaceToManyPlatformRegistryBindingFilter { /** Filters to entities where every related entity matches. */ - every?: ResourceFilter; + every?: PlatformRegistryBindingFilter; /** Filters to entities where no related entity matches. */ - none?: ResourceFilter; + none?: PlatformRegistryBindingFilter; /** Filters to entities where at least one related entity matches. */ - some?: ResourceFilter; + some?: PlatformRegistryBindingFilter; } -/** A filter to be used against many `ResourceInstallation` object types. All fields are combined with a logical ‘and.’ */ -export interface NamespaceToManyResourceInstallationFilter { +/** A filter to be used against many `PlatformResourceDefinition` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformNamespaceToManyPlatformResourceDefinitionFilter { /** Filters to entities where every related entity matches. */ - every?: ResourceInstallationFilter; + every?: PlatformResourceDefinitionFilter; /** Filters to entities where no related entity matches. */ - none?: ResourceInstallationFilter; + none?: PlatformResourceDefinitionFilter; /** Filters to entities where at least one related entity matches. */ - some?: ResourceInstallationFilter; + some?: PlatformResourceDefinitionFilter; } -/** A filter to be used against many `WebhookEndpoint` object types. All fields are combined with a logical ‘and.’ */ -export interface NamespaceToManyWebhookEndpointFilter { +/** A filter to be used against many `PlatformResource` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformNamespaceToManyPlatformResourceFilter { /** Filters to entities where every related entity matches. */ - every?: WebhookEndpointFilter; + every?: PlatformResourceFilter; /** Filters to entities where no related entity matches. */ - none?: WebhookEndpointFilter; + none?: PlatformResourceFilter; /** Filters to entities where at least one related entity matches. */ - some?: WebhookEndpointFilter; + some?: PlatformResourceFilter; } -/** A filter to be used against `PlatformFunctionApiBinding` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformFunctionApiBindingFilter { - /** Filter by the object’s `alias` field. */ - alias?: StringFilter; +/** A filter to be used against many `PlatformResourceInstallation` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformNamespaceToManyPlatformResourceInstallationFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformResourceInstallationFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformResourceInstallationFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformResourceInstallationFilter; +} +/** A filter to be used against many `PlatformWebhookEndpoint` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformNamespaceToManyPlatformWebhookEndpointFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformWebhookEndpointFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformWebhookEndpointFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformWebhookEndpointFilter; +} +/** A filter to be used against `PlatformProposalComment` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformProposalCommentFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: PlatformFunctionApiBindingFilter[]; - /** Filter by the object’s `apiId` field. */ - apiId?: UUIDFilter; - /** Filter by the object’s `config` field. */ - config?: JSONFilter; + and?: PlatformProposalCommentFilter[]; + /** Filter by the object’s `attachments` field. */ + attachments?: ConstructiveInternalTypeUploadListFilter; + /** Filter by the object’s `body` field. */ + body?: StringTrgmFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; - /** Filter by the object’s `functionDefinition` relation. */ - functionDefinition?: PlatformFunctionDefinitionFilter; - /** Filter by the object’s `functionDefinitionId` field. */ - functionDefinitionId?: UUIDFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `embedding` field. */ + embedding?: VectorFilter; + /** Filter by the object’s `embeddingUpdatedAt` field. */ + embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `line` field. */ + line?: IntFilter; /** Negates the expression. */ - not?: PlatformFunctionApiBindingFilter; + not?: PlatformProposalCommentFilter; /** Checks for any expressions in this list. */ - or?: PlatformFunctionApiBindingFilter[]; - /** Filter by the object’s `platformFunctionInvocationsByApiBindingId` relation. */ - platformFunctionInvocationsByApiBindingId?: PlatformFunctionApiBindingToManyPlatformFunctionInvocationFilter; - /** `platformFunctionInvocationsByApiBindingId` exist. */ - platformFunctionInvocationsByApiBindingIdExist?: boolean; + or?: PlatformProposalCommentFilter[]; + /** Filter by the object’s `outdatedAt` field. */ + outdatedAt?: DatetimeFilter; + /** Filter by the object’s `path` field. */ + path?: StringTrgmFilter; + /** Filter by the object’s `platformProposalReactionsByCommentId` relation. */ + platformProposalReactionsByCommentId?: PlatformProposalCommentToManyPlatformProposalReactionFilter; + /** `platformProposalReactionsByCommentId` exist. */ + platformProposalReactionsByCommentIdExist?: boolean; + /** Filter by the object’s `proposal` relation. */ + proposal?: PlatformProposalFilter; + /** Filter by the object’s `proposalId` field. */ + proposalId?: UUIDFilter; + /** Filter by the object’s `resolvedAt` field. */ + resolvedAt?: DatetimeFilter; + /** Filter by the object’s `search` field. */ + search?: FullTextFilter; + /** TRGM search on the `body` column. */ + trgmBody?: TrgmSearchInput; + /** TRGM search on the `path` column. */ + trgmPath?: TrgmSearchInput; + /** TSV search on the `search` column. */ + tsvSearch?: string; + /** + * Composite unified search. Provide a search string and it will be dispatched to + * all text-compatible search algorithms (tsvector, BM25, pg_trgm) + * simultaneously. When the LLM plugin is active, pgvector also participates via + * auto-embedding. Rows matching ANY algorithm are returned. All matching score + * fields are populated. + */ + unifiedSearch?: string; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; -} -/** An input for mutations affecting `PlatformFunctionApiBinding` */ -export interface PlatformFunctionApiBindingInput { - /** Binding alias (e.g. default, staging, production) */ - alias?: string; - /** API endpoint this function is bound to */ - apiId: string; - /** Per-binding configuration (overrides, routing rules, etc.) */ - config?: unknown; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** VECTOR search on the `embedding` column. */ + vectorEmbedding?: VectorNearbyInput; +} +/** An input for mutations affecting `PlatformProposalComment` */ +export interface PlatformProposalCommentInput { + /** Actor who wrote the comment; NULL only when no human actor was proven */ + actorId?: string; + /** Files referenced by the comment body, in the order they were attached */ + attachments?: ConstructiveInternalTypeUpload[]; + /** Comment text */ + body: string; createdAt?: string; - /** Function definition this binding belongs to */ - functionDefinitionId: string; + createdBy?: string; + createdByPrincipal?: string; + embedding?: number[]; + /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + embeddingText?: string; id?: string; + /** Line within path the comment is anchored to */ + line?: number; + /** When the anchored range this comment pointed at vanished from the diff */ + outdatedAt?: string; + /** File the comment is anchored to (NULL for a comment on the proposal) */ + path?: string; + /** Proposal being commented on */ + proposalId: string; + /** When this comment was marked resolved */ + resolvedAt?: string; updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; } -/** Represents an update to a `PlatformFunctionApiBinding`. Fields that are set will be updated. */ -export interface PlatformFunctionApiBindingPatch { - /** Binding alias (e.g. default, staging, production) */ - alias?: string; - /** API endpoint this function is bound to */ - apiId?: string; - /** Per-binding configuration (overrides, routing rules, etc.) */ - config?: unknown; +/** Represents an update to a `PlatformProposalComment`. Fields that are set will be updated. */ +export interface PlatformProposalCommentPatch { + /** Actor who wrote the comment; NULL only when no human actor was proven */ + actorId?: string; + /** Files referenced by the comment body, in the order they were attached */ + attachments?: ConstructiveInternalTypeUpload[]; + /** Comment text */ + body?: string; createdAt?: string; - /** Function definition this binding belongs to */ - functionDefinitionId?: string; + createdBy?: string; + createdByPrincipal?: string; + embedding?: number[]; + /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + embeddingText?: string; id?: string; + /** Line within path the comment is anchored to */ + line?: number; + /** When the anchored range this comment pointed at vanished from the diff */ + outdatedAt?: string; + /** File the comment is anchored to (NULL for a comment on the proposal) */ + path?: string; + /** Proposal being commented on */ + proposalId?: string; + /** When this comment was marked resolved */ + resolvedAt?: string; updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; } -/** A filter to be used against many `PlatformFunctionInvocation` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformFunctionApiBindingToManyPlatformFunctionInvocationFilter { +/** A filter to be used against many `PlatformProposalReaction` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformProposalCommentToManyPlatformProposalReactionFilter { /** Filters to entities where every related entity matches. */ - every?: PlatformFunctionInvocationFilter; + every?: PlatformProposalReactionFilter; /** Filters to entities where no related entity matches. */ - none?: PlatformFunctionInvocationFilter; + none?: PlatformProposalReactionFilter; /** Filters to entities where at least one related entity matches. */ - some?: PlatformFunctionInvocationFilter; + some?: PlatformProposalReactionFilter; } -/** A filter to be used against `PlatformFunctionCapabilityBinding` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformFunctionCapabilityBindingFilter { +/** A filter to be used against `PlatformProposalFileView` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformProposalFileViewFilter { + /** Checks for all expressions in this list. */ + and?: PlatformProposalFileViewFilter[]; + /** Filter by the object’s `blobSha` field. */ + blobSha?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformProposalFileViewFilter; + /** Checks for any expressions in this list. */ + or?: PlatformProposalFileViewFilter[]; + /** Filter by the object’s `path` field. */ + path?: StringFilter; + /** Filter by the object’s `proposal` relation. */ + proposal?: PlatformProposalFilter; + /** Filter by the object’s `proposalId` field. */ + proposalId?: UUIDFilter; + /** Filter by the object’s `reviewerId` field. */ + reviewerId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** Filter by the object’s `viewedAt` field. */ + viewedAt?: DatetimeFilter; +} +/** An input for mutations affecting `PlatformProposalFileView` */ +export interface PlatformProposalFileViewInput { + /** Blob the reviewer read, which is what makes the mark survive a rebase or go stale */ + blobSha: string; + createdAt?: string; + createdByPrincipal?: string; + id?: string; + /** Path of the file as the diff named it */ + path: string; + /** Proposal the file belongs to */ + proposalId: string; + /** Actor who read the file */ + reviewerId: string; + updatedAt?: string; + updatedByPrincipal?: string; + /** When the file was marked read */ + viewedAt?: string; +} +/** Represents an update to a `PlatformProposalFileView`. Fields that are set will be updated. */ +export interface PlatformProposalFileViewPatch { + /** Blob the reviewer read, which is what makes the mark survive a rebase or go stale */ + blobSha?: string; + createdAt?: string; + createdByPrincipal?: string; + id?: string; + /** Path of the file as the diff named it */ + path?: string; + /** Proposal the file belongs to */ + proposalId?: string; + /** Actor who read the file */ + reviewerId?: string; + updatedAt?: string; + updatedByPrincipal?: string; + /** When the file was marked read */ + viewedAt?: string; +} +/** A filter to be used against `PlatformProposal` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformProposalFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: PlatformFunctionCapabilityBindingFilter[]; - /** Filter by the object’s `bucketId` field. */ - bucketId?: UUIDFilter; + and?: PlatformProposalFilter[]; + /** Filter by the object’s `body` field. */ + body?: StringTrgmFilter; + /** Filter by the object’s `childPlatformProposals` relation. */ + childPlatformProposals?: PlatformProposalToManyPlatformProposalFilter; + /** `childPlatformProposals` exist. */ + childPlatformProposalsExist?: boolean; + /** Filter by the object’s `closedReason` field. */ + closedReason?: StringTrgmFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; - /** Filter by the object’s `function` relation. */ - function?: PlatformFunctionDefinitionFilter; - /** A related `function` exists. */ - functionExists?: boolean; - /** Filter by the object’s `functionId` field. */ - functionId?: UUIDFilter; - /** Filter by the object’s `graphId` field. */ - graphId?: UUIDFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `decidedAt` field. */ + decidedAt?: DatetimeFilter; + /** Filter by the object’s `dueAt` field. */ + dueAt?: DatetimeFilter; + /** Filter by the object’s `embedding` field. */ + embedding?: VectorFilter; + /** Filter by the object’s `embeddingUpdatedAt` field. */ + embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `key` field. */ - key?: StringFilter; - /** Filter by the object’s `lifecycle` field. */ - lifecycle?: StringFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringTrgmFilter; + /** Filter by the object’s `labels` field. */ + labels?: StringListFilter; + /** Filter by the object’s `mergeCommit` field. */ + mergeCommit?: StringTrgmFilter; + /** Filter by the object’s `mergeMethod` field. */ + mergeMethod?: StringTrgmFilter; + /** Filter by the object’s `mergeRequestedAt` field. */ + mergeRequestedAt?: DatetimeFilter; + /** Filter by the object’s `mergedAt` field. */ + mergedAt?: DatetimeFilter; /** Filter by the object’s `metadata` field. */ metadata?: JSONFilter; /** Negates the expression. */ - not?: PlatformFunctionCapabilityBindingFilter; + not?: PlatformProposalFilter; /** Checks for any expressions in this list. */ - or?: PlatformFunctionCapabilityBindingFilter[]; + or?: PlatformProposalFilter[]; + /** Filter by the object’s `parent` relation. */ + parent?: PlatformProposalFilter; + /** A related `parent` exists. */ + parentExists?: boolean; + /** Filter by the object’s `parentId` field. */ + parentId?: UUIDFilter; + /** Filter by the object’s `platformBuildsByProposalId` relation. */ + platformBuildsByProposalId?: PlatformProposalToManyPlatformBuildFilter; + /** `platformBuildsByProposalId` exist. */ + platformBuildsByProposalIdExist?: boolean; + /** Filter by the object’s `platformProposalCommentsByProposalId` relation. */ + platformProposalCommentsByProposalId?: PlatformProposalToManyPlatformProposalCommentFilter; + /** `platformProposalCommentsByProposalId` exist. */ + platformProposalCommentsByProposalIdExist?: boolean; + /** Filter by the object’s `platformProposalFileViewsByProposalId` relation. */ + platformProposalFileViewsByProposalId?: PlatformProposalToManyPlatformProposalFileViewFilter; + /** `platformProposalFileViewsByProposalId` exist. */ + platformProposalFileViewsByProposalIdExist?: boolean; + /** Filter by the object’s `platformProposalReactionsByProposalId` relation. */ + platformProposalReactionsByProposalId?: PlatformProposalToManyPlatformProposalReactionFilter; + /** `platformProposalReactionsByProposalId` exist. */ + platformProposalReactionsByProposalIdExist?: boolean; + /** Filter by the object’s `platformProposalReviewsByProposalId` relation. */ + platformProposalReviewsByProposalId?: PlatformProposalToManyPlatformProposalReviewFilter; + /** `platformProposalReviewsByProposalId` exist. */ + platformProposalReviewsByProposalIdExist?: boolean; + /** Filter by the object’s `platformProposalsChunksByPlatformProposalsId` relation. */ + platformProposalsChunksByPlatformProposalsId?: PlatformProposalToManyPlatformProposalsChunkFilter; + /** `platformProposalsChunksByPlatformProposalsId` exist. */ + platformProposalsChunksByPlatformProposalsIdExist?: boolean; + /** Filter by the object’s `priority` field. */ + priority?: BigFloatFilter; + /** Filter by the object’s `repository` relation. */ + repository?: PlatformRepositoryFilter; + /** Filter by the object’s `repositoryId` field. */ + repositoryId?: UUIDFilter; + /** Filter by the object’s `resolution` field. */ + resolution?: StringTrgmFilter; + /** Filter by the object’s `search` field. */ + search?: FullTextFilter; + /** Filter by the object’s `sourceRef` field. */ + sourceRef?: StringTrgmFilter; + /** Filter by the object’s `status` field. */ + status?: StringTrgmFilter; + /** Filter by the object’s `targetRef` field. */ + targetRef?: StringTrgmFilter; + /** Filter by the object’s `title` field. */ + title?: StringTrgmFilter; + /** TRGM search on the `body` column. */ + trgmBody?: TrgmSearchInput; + /** TRGM search on the `closed_reason` column. */ + trgmClosedReason?: TrgmSearchInput; + /** TRGM search on the `kind` column. */ + trgmKind?: TrgmSearchInput; + /** TRGM search on the `merge_commit` column. */ + trgmMergeCommit?: TrgmSearchInput; + /** TRGM search on the `merge_method` column. */ + trgmMergeMethod?: TrgmSearchInput; + /** TRGM search on the `resolution` column. */ + trgmResolution?: TrgmSearchInput; + /** TRGM search on the `source_ref` column. */ + trgmSourceRef?: TrgmSearchInput; + /** TRGM search on the `status` column. */ + trgmStatus?: TrgmSearchInput; + /** TRGM search on the `target_ref` column. */ + trgmTargetRef?: TrgmSearchInput; + /** TRGM search on the `title` column. */ + trgmTitle?: TrgmSearchInput; + /** TSV search on the `search` column. */ + tsvSearch?: string; + /** + * Composite unified search. Provide a search string and it will be dispatched to + * all text-compatible search algorithms (tsvector, BM25, pg_trgm) + * simultaneously. When the LLM plugin is active, pgvector also participates via + * auto-embedding. Rows matching ANY algorithm are returned. All matching score + * fields are populated. + */ + unifiedSearch?: string; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; -} -/** An input for mutations affecting `PlatformFunctionCapabilityBinding` */ -export interface PlatformFunctionCapabilityBindingInput { - /** Bucket this capability targets (exactly one typed target is set) */ - bucketId?: string; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** VECTOR search on the `embedding` column. */ + vectorEmbedding?: VectorNearbyInput; +} +/** An input for mutations affecting `PlatformProposal` */ +export interface PlatformProposalInput { + /** Actor who opened the proposal; NULL only when no human actor was proven */ + actorId?: string; + /** Description of the proposed change */ + body?: string; + /** Why this was closed: completed, not_planned, duplicate, superseded */ + closedReason?: string; createdAt?: string; - /** Function definition holding this capability (exactly one of function_id / graph_id is set) */ - functionId?: string; - /** Flow graph holding this capability (exactly one of function_id / graph_id is set) */ - graphId?: string; + createdBy?: string; + createdByPrincipal?: string; + /** When the decision was taken (NULL while the question is open) */ + decidedAt?: string; + /** When this is wanted by (NULL when nothing is promised) */ + dueAt?: string; + embedding?: number[]; + /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + embeddingText?: string; id?: string; - /** Runtime handle the holder addresses this capability by (e.g. default, scratch) */ - key?: string; - /** Lifecycle the capability applies to: deployment (build/deploy time), execution (per invocation), root_execution (root of a graph execution tree) */ - lifecycle: string; - /** Per-binding annotations (no runtime semantics) */ + /** issue (a report or plan), change (merge one ref into another), discussion (an open question), decision (a question answered) */ + kind?: string; + /** Labels for filtering and grouping (a board is a query over kind, status and these) */ + labels?: string[]; + /** Commit the merge produced */ + mergeCommit?: string; + /** How to merge when eligible: merge, squash, rebase */ + mergeMethod?: string; + /** When merge-when-green was requested (NULL when no merge is pending) */ + mergeRequestedAt?: string; + /** When the merge completed */ + mergedAt?: string; + /** Review detail (reviewers, labels, checks summary) */ metadata?: unknown; + /** Proposal this one hangs under: an epic, or the discussion a decision came out of */ + parentId?: string; + /** Manual order within a board column, sparse so an insert between two rows moves one row (NULL when unranked) */ + priority?: string; + /** Repository this proposal is against */ + repositoryId: string; + /** What was decided (for kind = decision; NULL while the question is open) */ + resolution?: string; + /** Ref holding the proposed commits (NULL unless kind is change) */ + sourceRef?: string; + /** Lifecycle state: draft, open, merged, closed */ + status?: string; + /** Ref the commits are proposed for (NULL unless kind is change) */ + targetRef?: string; + /** What this proposal does */ + title: string; updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; } -/** Represents an update to a `PlatformFunctionCapabilityBinding`. Fields that are set will be updated. */ -export interface PlatformFunctionCapabilityBindingPatch { - /** Bucket this capability targets (exactly one typed target is set) */ - bucketId?: string; +/** Represents an update to a `PlatformProposal`. Fields that are set will be updated. */ +export interface PlatformProposalPatch { + /** Actor who opened the proposal; NULL only when no human actor was proven */ + actorId?: string; + /** Description of the proposed change */ + body?: string; + /** Why this was closed: completed, not_planned, duplicate, superseded */ + closedReason?: string; createdAt?: string; - /** Function definition holding this capability (exactly one of function_id / graph_id is set) */ - functionId?: string; - /** Flow graph holding this capability (exactly one of function_id / graph_id is set) */ - graphId?: string; + createdBy?: string; + createdByPrincipal?: string; + /** When the decision was taken (NULL while the question is open) */ + decidedAt?: string; + /** When this is wanted by (NULL when nothing is promised) */ + dueAt?: string; + embedding?: number[]; + /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + embeddingText?: string; id?: string; - /** Runtime handle the holder addresses this capability by (e.g. default, scratch) */ - key?: string; - /** Lifecycle the capability applies to: deployment (build/deploy time), execution (per invocation), root_execution (root of a graph execution tree) */ - lifecycle?: string; - /** Per-binding annotations (no runtime semantics) */ + /** issue (a report or plan), change (merge one ref into another), discussion (an open question), decision (a question answered) */ + kind?: string; + /** Labels for filtering and grouping (a board is a query over kind, status and these) */ + labels?: string[]; + /** Commit the merge produced */ + mergeCommit?: string; + /** How to merge when eligible: merge, squash, rebase */ + mergeMethod?: string; + /** When merge-when-green was requested (NULL when no merge is pending) */ + mergeRequestedAt?: string; + /** When the merge completed */ + mergedAt?: string; + /** Review detail (reviewers, labels, checks summary) */ metadata?: unknown; + /** Proposal this one hangs under: an epic, or the discussion a decision came out of */ + parentId?: string; + /** Manual order within a board column, sparse so an insert between two rows moves one row (NULL when unranked) */ + priority?: string; + /** Repository this proposal is against */ + repositoryId?: string; + /** What was decided (for kind = decision; NULL while the question is open) */ + resolution?: string; + /** Ref holding the proposed commits (NULL unless kind is change) */ + sourceRef?: string; + /** Lifecycle state: draft, open, merged, closed */ + status?: string; + /** Ref the commits are proposed for (NULL unless kind is change) */ + targetRef?: string; + /** What this proposal does */ + title?: string; updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; } -/** A filter to be used against `PlatformFunctionDefinition` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformFunctionDefinitionFilter { - /** Filter by the object’s `accessChannels` field. */ - accessChannels?: StringListFilter; +/** A filter to be used against `PlatformProposalReaction` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformProposalReactionFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: PlatformFunctionDefinitionFilter[]; - /** Filter by the object’s `billable` field. */ - billable?: BooleanFilter; - /** Filter by the object’s `category` field. */ - category?: StringFilter; - /** Filter by the object’s `concurrency` field. */ - concurrency?: IntFilter; - /** Filter by the object’s `cpuLimitMillicores` field. */ - cpuLimitMillicores?: BigIntFilter; - /** Filter by the object’s `cpuRequestMillicores` field. */ - cpuRequestMillicores?: BigIntFilter; + and?: PlatformProposalReactionFilter[]; + /** Filter by the object’s `comment` relation. */ + comment?: PlatformProposalCommentFilter; + /** A related `comment` exists. */ + commentExists?: boolean; + /** Filter by the object’s `commentId` field. */ + commentId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `fnCategory` field. */ - fnCategory?: StringFilter; - /** Filter by the object’s `functionColumns` field. */ - functionColumns?: JSONFilter; - /** Filter by the object’s `graph` relation. */ - graph?: FunctionGraphFilter; - /** A related `graph` exists. */ - graphExists?: boolean; - /** Filter by the object’s `graphId` field. */ - graphId?: UUIDFilter; - /** Filter by the object’s `icon` field. */ - icon?: StringFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `emoji` field. */ + emoji?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `image` field. */ - image?: StringFilter; - /** Filter by the object’s `inputs` field. */ - inputs?: JSONFilter; - /** Filter by the object’s `integrations` field. */ - integrations?: StringListFilter; - /** Filter by the object’s `isPublished` field. */ - isPublished?: BooleanFilter; - /** Filter by the object’s `maxAttempts` field. */ - maxAttempts?: IntFilter; - /** Filter by the object’s `memoryLimitBytes` field. */ - memoryLimitBytes?: BigIntFilter; - /** Filter by the object’s `memoryRequestBytes` field. */ - memoryRequestBytes?: BigIntFilter; - /** Filter by the object’s `moduleTable` field. */ - moduleTable?: StringFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; /** Negates the expression. */ - not?: PlatformFunctionDefinitionFilter; + not?: PlatformProposalReactionFilter; /** Checks for any expressions in this list. */ - or?: PlatformFunctionDefinitionFilter[]; - /** Filter by the object’s `outputs` field. */ - outputs?: JSONFilter; - /** Filter by the object’s `payloadArgs` field. */ - payloadArgs?: JSONFilter; - /** Filter by the object’s `platformFunctionApiBindingsByFunctionDefinitionId` relation. */ - platformFunctionApiBindingsByFunctionDefinitionId?: PlatformFunctionDefinitionToManyPlatformFunctionApiBindingFilter; - /** `platformFunctionApiBindingsByFunctionDefinitionId` exist. */ - platformFunctionApiBindingsByFunctionDefinitionIdExist?: boolean; - /** Filter by the object’s `platformFunctionCapabilityBindingsByFunctionId` relation. */ - platformFunctionCapabilityBindingsByFunctionId?: PlatformFunctionDefinitionToManyPlatformFunctionCapabilityBindingFilter; - /** `platformFunctionCapabilityBindingsByFunctionId` exist. */ - platformFunctionCapabilityBindingsByFunctionIdExist?: boolean; - /** Filter by the object’s `platformWebhookEndpointsByFunctionDefinitionId` relation. */ - platformWebhookEndpointsByFunctionDefinitionId?: PlatformFunctionDefinitionToManyPlatformWebhookEndpointFilter; - /** `platformWebhookEndpointsByFunctionDefinitionId` exist. */ - platformWebhookEndpointsByFunctionDefinitionIdExist?: boolean; - /** Filter by the object’s `priority` field. */ - priority?: IntFilter; - /** Filter by the object’s `props` field. */ - props?: JSONFilter; - /** Filter by the object’s `protected` field. */ - protected?: BooleanFilter; - /** Filter by the object’s `publishedAt` field. */ - publishedAt?: DatetimeFilter; - /** Filter by the object’s `queueName` field. */ - queueName?: StringFilter; - /** Filter by the object’s `requiredBuckets` field. */ - 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. */ - runtime?: StringFilter; - /** Filter by the object’s `scaleMax` field. */ - scaleMax?: IntFilter; - /** Filter by the object’s `scaleMin` field. */ - scaleMin?: IntFilter; - /** Filter by the object’s `system` field. */ - system?: BooleanFilter; - /** Filter by the object’s `targetFunction` field. */ - targetFunction?: StringFilter; - /** Filter by the object’s `targetSchema` field. */ - targetSchema?: StringFilter; - /** Filter by the object’s `taskIdentifier` field. */ - taskIdentifier?: StringFilter; - /** Filter by the object’s `timeoutSeconds` field. */ - timeoutSeconds?: IntFilter; + or?: PlatformProposalReactionFilter[]; + /** Filter by the object’s `proposal` relation. */ + proposal?: PlatformProposalFilter; + /** Filter by the object’s `proposalId` field. */ + proposalId?: UUIDFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; - /** Filter by the object’s `volatile` field. */ - volatile?: BooleanFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} +/** An input for mutations affecting `PlatformProposalReaction` */ +export interface PlatformProposalReactionInput { + /** Actor who reacted */ + actorId: string; + /** Comment being reacted to (NULL for a reaction to the proposal itself) */ + commentId?: string; + createdAt?: string; + createdByPrincipal?: string; + /** Reaction shortcode (+1, eyes, rocket) */ + emoji: string; + id?: string; + /** Proposal the reaction belongs to */ + proposalId: string; + updatedAt?: string; + updatedByPrincipal?: string; } -/** An input for mutations affecting `PlatformFunctionDefinition` */ -export interface PlatformFunctionDefinitionInput { - /** 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; - /** Function task category (e.g. email, embed, chunk, custom) */ - category: string; - /** Knative containerConcurrency — max concurrent requests per pod instance */ - concurrency?: number; +/** Represents an update to a `PlatformProposalReaction`. Fields that are set will be updated. */ +export interface PlatformProposalReactionPatch { + /** Actor who reacted */ + actorId?: string; + /** Comment being reacted to (NULL for a reaction to the proposal itself) */ + commentId?: string; createdAt?: string; - /** Human-readable description of what this function does */ - description?: string; - /** Palette grouping category (e.g. email, data, ai, custom) */ - fnCategory?: string; - /** Ordered array of module_table column names holding the generated function names to invoke when runtime=sql (module mode). NULL for direct mode and other runtimes. */ - functionColumns?: unknown; - /** Existing flow graph invoked when runtime=graph. Required for graph runtime and forbidden for all other runtimes. */ - graphId?: string; - /** Icon identifier for UI palette rendering (e.g. mail, database, code) */ - icon?: string; + createdByPrincipal?: string; + /** Reaction shortcode (+1, eyes, rocket) */ + emoji?: string; id?: string; - /** Docker image reference (e.g. ghcr.io/constructive-io/email-send-fn:latest). Required when runtime=http or runtime=resource. NULL for inline functions. */ - image?: string; - /** Data input ports: [{name, type, description?, optional?, multi?, schema?}] */ - inputs?: unknown; - /** Provider slugs (e.g. mailgun, postgres) associated with this function. The UI uses this to auto-fill required_secrets and required_configs from integration_providers. */ - integrations?: string[]; - /** Whether this function definition is published to the public catalog for direct authenticated invocation. Default false = internal-only via add_job() */ - isPublished?: boolean; - /** Maximum retry attempts for the underlying job */ - maxAttempts?: number; - /** metaschema_modules_public table whose per-database row carries the generated function names when runtime=sql (module mode). NULL for direct mode and other runtimes. */ - moduleTable?: string; - /** Function name within category (e.g. send_verification_link, process_file_embedding) */ - name: string; - /** Data output ports: [{name, type, description?, optional?, multi?, schema?}] */ - outputs?: unknown; - /** Ordered bind-parameter mapping for runtime=sql: [{name, type}]. payload[name] is bound as $n::type. */ - payloadArgs?: unknown; - /** Job priority (lower = higher priority) */ - priority?: number; - /** Configuration properties: [{name, type, default?, description?, required?, schema?}] */ - props?: unknown; - /** Protected platform definition: narrower scopes cannot register the same task_identifier */ - protected?: boolean; - /** Timestamp when this function was published. NULL means immediately published when is_published is true; future timestamps delay public visibility */ - publishedAt?: string; - /** Job queue name for serialization (e.g. email, ai, default) */ - queueName?: string; - /** 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}} */ - resources?: unknown; - /** Execution mode: http (Knative Service dispatch), inline (in-process in compute worker), handler (registered infrastructure handler), sql (generic SQL dispatch via a trusted direct target or module-resolved function names), resource (Kubernetes Job via the resource module with node-gateway callbacks), or graph (existing flow graph referenced by graph_id) */ - runtime?: string; - /** Maximum pod count for Knative autoscaling (maxScale) */ - scaleMax?: number; - /** Minimum pod count for Knative autoscaling (minScale) */ - scaleMin?: number; - /** Platform system definition: its task_identifier cannot be shadowed by non-platform registration */ - system?: boolean; - /** Name of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. */ - targetFunction?: string; - /** Schema of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. */ - targetSchema?: string; - /** Knative request timeout in seconds */ - timeoutSeconds?: number; + /** Proposal the reaction belongs to */ + proposalId?: string; + updatedAt?: string; + updatedByPrincipal?: string; +} +/** A filter to be used against `PlatformProposalReview` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformProposalReviewFilter { + /** Checks for all expressions in this list. */ + and?: PlatformProposalReviewFilter[]; + /** Filter by the object’s `body` field. */ + body?: StringTrgmFilter; + /** Filter by the object’s `commitSha` field. */ + commitSha?: StringTrgmFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformProposalReviewFilter; + /** Checks for any expressions in this list. */ + or?: PlatformProposalReviewFilter[]; + /** Filter by the object’s `proposal` relation. */ + proposal?: PlatformProposalFilter; + /** Filter by the object’s `proposalId` field. */ + proposalId?: UUIDFilter; + /** Filter by the object’s `reviewerId` field. */ + reviewerId?: UUIDFilter; + /** Filter by the object’s `search` field. */ + search?: FullTextFilter; + /** Filter by the object’s `submittedAt` field. */ + submittedAt?: DatetimeFilter; + /** TRGM search on the `body` column. */ + trgmBody?: TrgmSearchInput; + /** TRGM search on the `commit_sha` column. */ + trgmCommitSha?: TrgmSearchInput; + /** TRGM search on the `verdict` column. */ + trgmVerdict?: TrgmSearchInput; + /** TSV search on the `search` column. */ + tsvSearch?: string; + /** + * Composite unified search. Provide a search string and it will be dispatched to + * all text-compatible search algorithms (tsvector, BM25, pg_trgm) + * simultaneously. When the LLM plugin is active, pgvector also participates via + * auto-embedding. Rows matching ANY algorithm are returned. All matching score + * fields are populated. + */ + unifiedSearch?: string; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** Filter by the object’s `verdict` field. */ + verdict?: StringTrgmFilter; +} +/** An input for mutations affecting `PlatformProposalReview` */ +export interface PlatformProposalReviewInput { + /** Summary the reviewer submitted with the verdict */ + body?: string; + /** Head commit this verdict was submitted against */ + commitSha: string; + createdAt?: string; + createdByPrincipal?: string; + id?: string; + /** Proposal being reviewed */ + proposalId: string; + /** Actor who submitted the verdict */ + reviewerId: string; + /** When the verdict was submitted */ + submittedAt?: string; updatedAt?: string; - /** Whether this function has side effects and cannot be cached or memoized */ - volatile?: boolean; -} -/** 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, 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; - /** Function task category (e.g. email, embed, chunk, custom) */ - category?: string; - /** Knative containerConcurrency — max concurrent requests per pod instance */ - concurrency?: number; + updatedByPrincipal?: string; + /** approve, reject or comment (a review that gates nothing) */ + verdict: string; +} +/** Represents an update to a `PlatformProposalReview`. Fields that are set will be updated. */ +export interface PlatformProposalReviewPatch { + /** Summary the reviewer submitted with the verdict */ + body?: string; + /** Head commit this verdict was submitted against */ + commitSha?: string; createdAt?: string; - /** Human-readable description of what this function does */ - description?: string; - /** Palette grouping category (e.g. email, data, ai, custom) */ - fnCategory?: string; - /** Ordered array of module_table column names holding the generated function names to invoke when runtime=sql (module mode). NULL for direct mode and other runtimes. */ - functionColumns?: unknown; - /** Existing flow graph invoked when runtime=graph. Required for graph runtime and forbidden for all other runtimes. */ - graphId?: string; - /** Icon identifier for UI palette rendering (e.g. mail, database, code) */ - icon?: string; + createdByPrincipal?: string; id?: string; - /** Docker image reference (e.g. ghcr.io/constructive-io/email-send-fn:latest). Required when runtime=http or runtime=resource. NULL for inline functions. */ - image?: string; - /** Data input ports: [{name, type, description?, optional?, multi?, schema?}] */ - inputs?: unknown; - /** Provider slugs (e.g. mailgun, postgres) associated with this function. The UI uses this to auto-fill required_secrets and required_configs from integration_providers. */ - integrations?: string[]; - /** Whether this function definition is published to the public catalog for direct authenticated invocation. Default false = internal-only via add_job() */ - isPublished?: boolean; - /** Maximum retry attempts for the underlying job */ - maxAttempts?: number; - /** metaschema_modules_public table whose per-database row carries the generated function names when runtime=sql (module mode). NULL for direct mode and other runtimes. */ - moduleTable?: string; - /** Function name within category (e.g. send_verification_link, process_file_embedding) */ - name?: string; - /** Data output ports: [{name, type, description?, optional?, multi?, schema?}] */ - outputs?: unknown; - /** Ordered bind-parameter mapping for runtime=sql: [{name, type}]. payload[name] is bound as $n::type. */ - payloadArgs?: unknown; - /** Job priority (lower = higher priority) */ - priority?: number; - /** Configuration properties: [{name, type, default?, description?, required?, schema?}] */ - props?: unknown; - /** Protected platform definition: narrower scopes cannot register the same task_identifier */ - protected?: boolean; - /** Timestamp when this function was published. NULL means immediately published when is_published is true; future timestamps delay public visibility */ - publishedAt?: string; - /** Job queue name for serialization (e.g. email, ai, default) */ - queueName?: string; - /** 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}} */ - resources?: unknown; - /** Execution mode: http (Knative Service dispatch), inline (in-process in compute worker), handler (registered infrastructure handler), sql (generic SQL dispatch via a trusted direct target or module-resolved function names), resource (Kubernetes Job via the resource module with node-gateway callbacks), or graph (existing flow graph referenced by graph_id) */ - runtime?: string; - /** Maximum pod count for Knative autoscaling (maxScale) */ - scaleMax?: number; - /** Minimum pod count for Knative autoscaling (minScale) */ - scaleMin?: number; - /** Platform system definition: its task_identifier cannot be shadowed by non-platform registration */ - system?: boolean; - /** Name of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. */ - targetFunction?: string; - /** Schema of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. */ - targetSchema?: string; - /** Knative request timeout in seconds */ - timeoutSeconds?: number; + /** Proposal being reviewed */ + proposalId?: string; + /** Actor who submitted the verdict */ + reviewerId?: string; + /** When the verdict was submitted */ + submittedAt?: string; updatedAt?: string; - /** Whether this function has side effects and cannot be cached or memoized */ - volatile?: boolean; + updatedByPrincipal?: string; + /** approve, reject or comment (a review that gates nothing) */ + verdict?: string; } -/** A filter to be used against many `PlatformFunctionApiBinding` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformFunctionDefinitionToManyPlatformFunctionApiBindingFilter { +/** A filter to be used against many `PlatformBuild` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformProposalToManyPlatformBuildFilter { /** Filters to entities where every related entity matches. */ - every?: PlatformFunctionApiBindingFilter; + every?: PlatformBuildFilter; /** Filters to entities where no related entity matches. */ - none?: PlatformFunctionApiBindingFilter; + none?: PlatformBuildFilter; /** Filters to entities where at least one related entity matches. */ - some?: PlatformFunctionApiBindingFilter; + some?: PlatformBuildFilter; } -/** A filter to be used against many `PlatformFunctionCapabilityBinding` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformFunctionDefinitionToManyPlatformFunctionCapabilityBindingFilter { +/** A filter to be used against many `PlatformProposalComment` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformProposalToManyPlatformProposalCommentFilter { /** Filters to entities where every related entity matches. */ - every?: PlatformFunctionCapabilityBindingFilter; + every?: PlatformProposalCommentFilter; /** Filters to entities where no related entity matches. */ - none?: PlatformFunctionCapabilityBindingFilter; + none?: PlatformProposalCommentFilter; /** Filters to entities where at least one related entity matches. */ - some?: PlatformFunctionCapabilityBindingFilter; + some?: PlatformProposalCommentFilter; } -/** A filter to be used against many `PlatformWebhookEndpoint` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformFunctionDefinitionToManyPlatformWebhookEndpointFilter { +/** A filter to be used against many `PlatformProposalFileView` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformProposalToManyPlatformProposalFileViewFilter { /** Filters to entities where every related entity matches. */ - every?: PlatformWebhookEndpointFilter; + every?: PlatformProposalFileViewFilter; /** Filters to entities where no related entity matches. */ - none?: PlatformWebhookEndpointFilter; + none?: PlatformProposalFileViewFilter; /** Filters to entities where at least one related entity matches. */ - some?: PlatformWebhookEndpointFilter; + some?: PlatformProposalFileViewFilter; } -/** A filter to be used against `PlatformFunctionDeploymentEvent` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformFunctionDeploymentEventFilter { +/** A filter to be used against many `PlatformProposal` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformProposalToManyPlatformProposalFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformProposalFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformProposalFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformProposalFilter; +} +/** A filter to be used against many `PlatformProposalReaction` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformProposalToManyPlatformProposalReactionFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformProposalReactionFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformProposalReactionFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformProposalReactionFilter; +} +/** A filter to be used against many `PlatformProposalReview` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformProposalToManyPlatformProposalReviewFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformProposalReviewFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformProposalReviewFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformProposalReviewFilter; +} +/** A filter to be used against many `PlatformProposalsChunk` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformProposalToManyPlatformProposalsChunkFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformProposalsChunkFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformProposalsChunkFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformProposalsChunkFilter; +} +/** A filter to be used against `PlatformProposalsChunk` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformProposalsChunkFilter { /** Filter by the object’s `actorId` field. */ actorId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: PlatformFunctionDeploymentEventFilter[]; + and?: PlatformProposalsChunkFilter[]; + /** Filter by the object’s `body` field. */ + body?: StringFilter; + /** Filter by the object’s `chunkIndex` field. */ + chunkIndex?: IntFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; - /** Filter by the object’s `deploymentId` field. */ - deploymentId?: UUIDFilter; - /** Filter by the object’s `eventType` field. */ - eventType?: StringFilter; + /** Filter by the object’s `embedding` field. */ + embedding?: VectorFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `message` field. */ - message?: StringFilter; /** Filter by the object’s `metadata` field. */ metadata?: JSONFilter; /** Negates the expression. */ - not?: PlatformFunctionDeploymentEventFilter; + not?: PlatformProposalsChunkFilter; /** Checks for any expressions in this list. */ - or?: PlatformFunctionDeploymentEventFilter[]; + or?: PlatformProposalsChunkFilter[]; + /** Filter by the object’s `platformProposals` relation. */ + platformProposals?: PlatformProposalFilter; + /** Filter by the object’s `platformProposalsId` field. */ + platformProposalsId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** VECTOR search on the `embedding` column. */ + vectorEmbedding?: VectorNearbyInput; } -/** An input for mutations affecting `PlatformFunctionDeploymentEvent` */ -export interface PlatformFunctionDeploymentEventInput { - /** User who triggered this event (NULL for system/automated) */ +/** An input for mutations affecting `PlatformProposalsChunk` */ +export interface PlatformProposalsChunkInput { + /** Policy-required field derived from source table (used by AuthzComposite) */ actorId?: string; - /** Event timestamp (partition key) */ + body: string; + chunkIndex?: number; createdAt?: string; - /** Deployment this event belongs to */ - deploymentId: string; - /** Event type: provisioned, scaled, failed, deactivated, redeployed, health_check */ - eventType: string; - /** Unique event identifier */ + embedding?: number[]; + /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + embeddingText?: string; id?: string; - /** Human-readable description of the event */ - message?: string; - /** Structured context (old/new values, error details, etc.) */ metadata?: unknown; + platformProposalsId: string; + updatedAt?: string; } -/** Represents an update to a `PlatformFunctionDeploymentEvent`. Fields that are set will be updated. */ -export interface PlatformFunctionDeploymentEventPatch { - /** User who triggered this event (NULL for system/automated) */ +/** Represents an update to a `PlatformProposalsChunk`. Fields that are set will be updated. */ +export interface PlatformProposalsChunkPatch { + /** Policy-required field derived from source table (used by AuthzComposite) */ actorId?: string; - /** Event timestamp (partition key) */ + body?: string; + chunkIndex?: number; createdAt?: string; - /** Deployment this event belongs to */ - deploymentId?: string; - /** Event type: provisioned, scaled, failed, deactivated, redeployed, health_check */ - eventType?: string; - /** Unique event identifier */ + embedding?: number[]; + /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + embeddingText?: string; id?: string; - /** Human-readable description of the event */ - message?: string; - /** Structured context (old/new values, error details, etc.) */ metadata?: unknown; + platformProposalsId?: string; + updatedAt?: string; } -/** A filter to be used against `PlatformFunctionDeployment` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformFunctionDeploymentFilter { +/** A filter to be used against `PlatformRegistryBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformRegistryBindingFilter { /** Checks for all expressions in this list. */ - and?: PlatformFunctionDeploymentFilter[]; - /** Filter by the object’s `annotations` field. */ - annotations?: JSONFilter; - /** Filter by the object’s `concurrency` field. */ - concurrency?: IntFilter; + and?: PlatformRegistryBindingFilter[]; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; - /** Filter by the object’s `errorCount` field. */ - errorCount?: IntFilter; - /** Filter by the object’s `handlerName` field. */ - handlerName?: StringFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `image` field. */ - image?: StringFilter; - /** Filter by the object’s `imageVersion` field. */ - imageVersion?: StringFilter; - /** Filter by the object’s `labels` field. */ - labels?: JSONFilter; - /** Filter by the object’s `lastError` field. */ - lastError?: StringFilter; - /** Filter by the object’s `lastErrorAt` field. */ - lastErrorAt?: DatetimeFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; /** Filter by the object’s `namespace` relation. */ namespace?: PlatformNamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ - not?: PlatformFunctionDeploymentFilter; + not?: PlatformRegistryBindingFilter; + /** Filter by the object’s `observedCredentialVersion` field. */ + observedCredentialVersion?: StringFilter; /** Checks for any expressions in this list. */ - or?: PlatformFunctionDeploymentFilter[]; + or?: PlatformRegistryBindingFilter[]; + /** Filter by the object’s `pullSecretName` field. */ + pullSecretName?: StringFilter; /** 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. */ - revision?: IntFilter; - /** Filter by the object’s `scaleMax` field. */ - scaleMax?: IntFilter; - /** Filter by the object’s `scaleMin` field. */ - scaleMin?: IntFilter; - /** Filter by the object’s `serviceName` field. */ - serviceName?: StringFilter; - /** Filter by the object’s `serviceUrl` field. */ - serviceUrl?: StringFilter; + /** Filter by the object’s `registry` relation. */ + registry?: PlatformRegistryFilter; + /** Filter by the object’s `registryHost` field. */ + registryHost?: StringFilter; + /** Filter by the object’s `registryId` field. */ + registryId?: UUIDFilter; /** Filter by the object’s `status` field. */ status?: StringFilter; - /** Filter by the object’s `timeoutSeconds` field. */ - timeoutSeconds?: IntFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -/** An input for mutations affecting `PlatformFunctionDeployment` */ -export interface PlatformFunctionDeploymentInput { - /** Freeform metadata for tooling and operational notes */ - annotations?: unknown; - /** Max concurrent requests per pod (NULL = inherit from definition) */ - concurrency?: number; +/** An input for mutations affecting `PlatformRegistryBinding` */ +export interface PlatformRegistryBindingInput { createdAt?: string; - /** Cumulative error count for this deployment */ - errorCount?: number; - /** Handler directory name (e.g. email, document) — used as FN_HANDLER_NAME in combined-image mode to select the entry point */ - handlerName?: string; + createdBy?: string; + createdByPrincipal?: string; id?: string; - /** Logical image name — the handler identity and grouping key (e.g. fn-email). No registry host or tag; tag lives in image_version. */ - image: string; - /** Image tag/version for the handler container (e.g. latest, 2.6.4) */ - imageVersion?: string; - /** Key/value pairs for selecting and filtering deployments */ - labels?: unknown; - /** Most recent provisioning or runtime error message */ - lastError?: string; - /** Timestamp of the most recent error */ - lastErrorAt?: string; - /** Target namespace for this deployment (maps to a K8s namespace) */ + /** Reconciler detail (last error, projection timestamps) */ + metadata?: unknown; + /** Namespace the registry credentials are projected into */ 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). */ + /** Registry credential version last projected into the namespace (NULL = never projected) */ + observedCredentialVersion?: string; + /** Name of the image pull secret the reconciler writes into the namespace */ + pullSecretName?: string; + /** Lane this binding applies to (NULL = the scope's default lane) */ realm?: string; - /** K8s resource spec override: {"requests":{"cpu":"100m","memory":"128Mi"},"limits":{...}} */ - resources?: unknown; - /** Deployment revision number (incremented on each redeployment) */ - revision?: number; - /** Maximum replica count (NULL = inherit from definition or Knative default) */ - scaleMax?: number; - /** Minimum replica count (NULL = inherit from definition or Knative default) */ - scaleMin?: number; - /** Knative service name — a randomly minted cute name (unique_names.generate_name() + random hex suffix) assigned by the service_url trigger; unique per namespace, not derived from the image */ - serviceName?: string; - /** Knative service URL (http://{service-name}.{namespace}.svc.cluster.local) — populated after provisioning */ - serviceUrl?: string; - /** Deployment lifecycle status: pending, provisioning, active, failed, scaled_to_zero, deactivated */ + /** Registry host this binding's credentials authenticate to (what kubelet matches image references against) */ + registryHost: string; + /** Registry endpoint (in this scope's registry catalog) the namespace pulls from */ + registryId: string; + /** Projection state of the pull secret: pending, active, failed */ status?: string; - /** Request timeout override in seconds (NULL = inherit from definition) */ - timeoutSeconds?: number; updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; } -/** Represents an update to a `PlatformFunctionDeployment`. Fields that are set will be updated. */ -export interface PlatformFunctionDeploymentPatch { - /** Freeform metadata for tooling and operational notes */ - annotations?: unknown; - /** Max concurrent requests per pod (NULL = inherit from definition) */ - concurrency?: number; +/** Represents an update to a `PlatformRegistryBinding`. Fields that are set will be updated. */ +export interface PlatformRegistryBindingPatch { createdAt?: string; - /** Cumulative error count for this deployment */ - errorCount?: number; - /** Handler directory name (e.g. email, document) — used as FN_HANDLER_NAME in combined-image mode to select the entry point */ - handlerName?: string; - id?: string; - /** Logical image name — the handler identity and grouping key (e.g. fn-email). No registry host or tag; tag lives in image_version. */ - image?: string; - /** Image tag/version for the handler container (e.g. latest, 2.6.4) */ - imageVersion?: string; - /** Key/value pairs for selecting and filtering deployments */ - labels?: unknown; - /** Most recent provisioning or runtime error message */ - lastError?: string; - /** Timestamp of the most recent error */ - lastErrorAt?: string; - /** Target namespace for this deployment (maps to a K8s namespace) */ + createdBy?: string; + createdByPrincipal?: string; + id?: string; + /** Reconciler detail (last error, projection timestamps) */ + metadata?: unknown; + /** Namespace the registry credentials are projected into */ 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). */ + /** Registry credential version last projected into the namespace (NULL = never projected) */ + observedCredentialVersion?: string; + /** Name of the image pull secret the reconciler writes into the namespace */ + pullSecretName?: string; + /** Lane this binding applies to (NULL = the scope's default lane) */ realm?: string; - /** K8s resource spec override: {"requests":{"cpu":"100m","memory":"128Mi"},"limits":{...}} */ - resources?: unknown; - /** Deployment revision number (incremented on each redeployment) */ - revision?: number; - /** Maximum replica count (NULL = inherit from definition or Knative default) */ - scaleMax?: number; - /** Minimum replica count (NULL = inherit from definition or Knative default) */ - scaleMin?: number; - /** Knative service name — a randomly minted cute name (unique_names.generate_name() + random hex suffix) assigned by the service_url trigger; unique per namespace, not derived from the image */ - serviceName?: string; - /** Knative service URL (http://{service-name}.{namespace}.svc.cluster.local) — populated after provisioning */ - serviceUrl?: string; - /** Deployment lifecycle status: pending, provisioning, active, failed, scaled_to_zero, deactivated */ + /** Registry host this binding's credentials authenticate to (what kubelet matches image references against) */ + registryHost?: string; + /** Registry endpoint (in this scope's registry catalog) the namespace pulls from */ + registryId?: string; + /** Projection state of the pull secret: pending, active, failed */ status?: string; - /** Request timeout override in seconds (NULL = inherit from definition) */ - timeoutSeconds?: number; updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; } -/** A filter to be used against `PlatformFunctionExecutionLog` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformFunctionExecutionLogFilter { - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; +/** A filter to be used against `PlatformRegistry` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformRegistryFilter { /** Checks for all expressions in this list. */ - and?: PlatformFunctionExecutionLogFilter[]; + and?: PlatformRegistryFilter[]; + /** Filter by the object’s `authMode` field. */ + authMode?: StringFilter; + /** Filter by the object’s `basePath` field. */ + basePath?: StringFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `credentialSecretName` field. */ + credentialSecretName?: StringFilter; + /** Filter by the object’s `host` field. */ + host?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `invocationId` field. */ - invocationId?: UUIDFilter; - /** Filter by the object’s `logLevel` field. */ - logLevel?: StringFilter; - /** Filter by the object’s `message` field. */ - message?: StringFilter; + /** Filter by the object’s `installation` relation. */ + installation?: PlatformResourceInstallationFilter; + /** A related `installation` exists. */ + installationExists?: boolean; + /** Filter by the object’s `installationId` field. */ + installationId?: UUIDFilter; + /** Filter by the object’s `isPublished` field. */ + isPublished?: BooleanFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; /** Filter by the object’s `metadata` field. */ metadata?: JSONFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; /** Negates the expression. */ - not?: PlatformFunctionExecutionLogFilter; + not?: PlatformRegistryFilter; /** Checks for any expressions in this list. */ - or?: PlatformFunctionExecutionLogFilter[]; - /** Filter by the object’s `taskIdentifier` field. */ - taskIdentifier?: StringFilter; -} -/** An input for mutations affecting `PlatformFunctionExecutionLog` */ -export interface PlatformFunctionExecutionLogInput { - /** User who triggered the execution (NULL for system/cron) */ - actorId?: string; - /** Log entry timestamp (partition key) */ - createdAt?: string; - /** Unique log entry identifier */ - id?: string; - /** Invocation this log entry belongs to (NULL for standalone job logs) */ - invocationId?: string; - /** Log severity: debug, info, warn, error */ - logLevel?: string; - /** Log message text */ - message: string; - /** Structured context (labels, trace data, extra fields) */ - metadata?: unknown; - /** Function routing key (NULL for generic job logs) */ - taskIdentifier?: string; -} -/** Represents an update to a `PlatformFunctionExecutionLog`. Fields that are set will be updated. */ -export interface PlatformFunctionExecutionLogPatch { - /** User who triggered the execution (NULL for system/cron) */ - actorId?: string; - /** Log entry timestamp (partition key) */ - createdAt?: string; - /** Unique log entry identifier */ - id?: string; - /** Invocation this log entry belongs to (NULL for standalone job logs) */ - invocationId?: string; - /** Log severity: debug, info, warn, error */ - logLevel?: string; - /** Log message text */ - message?: string; - /** Structured context (labels, trace data, extra fields) */ - metadata?: unknown; - /** Function routing key (NULL for generic job logs) */ - taskIdentifier?: string; + or?: PlatformRegistryFilter[]; + /** Filter by the object’s `platformOnly` field. */ + platformOnly?: BooleanFilter; + /** Filter by the object’s `platformRegistryBindingsByRegistryId` relation. */ + platformRegistryBindingsByRegistryId?: PlatformRegistryToManyPlatformRegistryBindingFilter; + /** `platformRegistryBindingsByRegistryId` exist. */ + platformRegistryBindingsByRegistryIdExist?: boolean; + /** Filter by the object’s `platformRegistryGrantsByRegistryId` relation. */ + platformRegistryGrantsByRegistryId?: PlatformRegistryToManyPlatformRegistryGrantFilter; + /** `platformRegistryGrantsByRegistryId` exist. */ + platformRegistryGrantsByRegistryIdExist?: boolean; + /** Filter by the object’s `role` field. */ + role?: StringFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -/** A filter to be used against `PlatformFunctionInvocationAttempt` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformFunctionInvocationAttemptFilter { - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; +/** A filter to be used against `PlatformRegistryGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformRegistryGrantFilter { + /** Filter by the object’s `actions` field. */ + actions?: StringListFilter; /** Checks for all expressions in this list. */ - and?: PlatformFunctionInvocationAttemptFilter[]; - /** Filter by the object’s `attempt` field. */ - attempt?: IntFilter; + and?: PlatformRegistryGrantFilter[]; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; - /** Filter by the object’s `durationMs` field. */ - durationMs?: IntFilter; - /** Filter by the object’s `error` field. */ - error?: StringFilter; - /** Filter by the object’s `errorDetail` field. */ - errorDetail?: JSONFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; + /** Filter by the object’s `grantedBy` field. */ + grantedBy?: UUIDFilter; + /** Filter by the object’s `granteeKey` field. */ + granteeKey?: UUIDFilter; + /** Filter by the object’s `granteeScope` field. */ + granteeScope?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `invocationCreatedAt` field. */ - invocationCreatedAt?: DatetimeFilter; - /** Filter by the object’s `invocationId` field. */ - invocationId?: UUIDFilter; /** Negates the expression. */ - not?: PlatformFunctionInvocationAttemptFilter; + not?: PlatformRegistryGrantFilter; /** Checks for any expressions in this list. */ - or?: PlatformFunctionInvocationAttemptFilter[]; - /** Filter by the object’s `startedAt` field. */ - startedAt?: DatetimeFilter; - /** Filter by the object’s `success` field. */ - success?: BooleanFilter; - /** Filter by the object’s `taskIdentifier` field. */ - taskIdentifier?: StringFilter; + or?: PlatformRegistryGrantFilter[]; + /** Filter by the object’s `registry` relation. */ + registry?: PlatformRegistryFilter; + /** Filter by the object’s `registryId` field. */ + registryId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -/** An input for mutations affecting `PlatformFunctionInvocationAttempt` */ -export interface PlatformFunctionInvocationAttemptInput { - /** Who triggered the invocation (NULL for system/cron) */ - actorId?: string; - /** 1-based attempt number for this invocation */ - attempt: number; - /** When the attempt result was recorded (partition key) */ +/** An input for mutations affecting `PlatformRegistryGrant` */ +export interface PlatformRegistryGrantInput { + /** Endpoint actions this grant allows (read, write) */ + actions?: string[]; createdAt?: string; - /** Wall-clock attempt time in milliseconds */ - durationMs?: number; - /** Error message when the attempt failed */ - error?: string; - /** Structured error context (stack, code, provider response) */ - errorDetail?: unknown; - /** Unique attempt identifier */ + createdByPrincipal?: string; + /** When this grant stops applying (NULL never expires) */ + expiresAt?: string; + /** User who issued this grant */ + grantedBy?: string; + /** Scope key of the grantee (a database_id or an entity_id) */ + granteeKey: string; + /** Scope tier of the grantee (database, org, app, platform) */ + granteeScope: string; id?: string; - /** created_at of the referenced invocation (partition-pruned lookups against the invocations PK) */ - invocationCreatedAt: string; - /** Invocation this attempt belongs to (soft reference paired with invocation_created_at) */ - invocationId: string; - /** When the attempt began executing */ - startedAt?: string; - /** Whether this attempt completed successfully */ - success: boolean; - /** Function routing slug (denormalized from the invocation) */ - taskIdentifier: string; + /** Registry this grant applies to */ + registryId: string; + updatedAt?: string; + updatedByPrincipal?: string; } -/** Represents an update to a `PlatformFunctionInvocationAttempt`. Fields that are set will be updated. */ -export interface PlatformFunctionInvocationAttemptPatch { - /** Who triggered the invocation (NULL for system/cron) */ - actorId?: string; - /** 1-based attempt number for this invocation */ - attempt?: number; - /** When the attempt result was recorded (partition key) */ +/** Represents an update to a `PlatformRegistryGrant`. Fields that are set will be updated. */ +export interface PlatformRegistryGrantPatch { + /** Endpoint actions this grant allows (read, write) */ + actions?: string[]; createdAt?: string; - /** Wall-clock attempt time in milliseconds */ - durationMs?: number; - /** Error message when the attempt failed */ - error?: string; - /** Structured error context (stack, code, provider response) */ - errorDetail?: unknown; - /** Unique attempt identifier */ + createdByPrincipal?: string; + /** When this grant stops applying (NULL never expires) */ + expiresAt?: string; + /** User who issued this grant */ + grantedBy?: string; + /** Scope key of the grantee (a database_id or an entity_id) */ + granteeKey?: string; + /** Scope tier of the grantee (database, org, app, platform) */ + granteeScope?: string; id?: string; - /** created_at of the referenced invocation (partition-pruned lookups against the invocations PK) */ - invocationCreatedAt?: string; - /** Invocation this attempt belongs to (soft reference paired with invocation_created_at) */ - invocationId?: string; - /** When the attempt began executing */ - startedAt?: string; - /** Whether this attempt completed successfully */ - success?: boolean; - /** Function routing slug (denormalized from the invocation) */ - taskIdentifier?: string; + /** Registry this grant applies to */ + registryId?: string; + updatedAt?: string; + updatedByPrincipal?: string; +} +/** An input for mutations affecting `PlatformRegistry` */ +export interface PlatformRegistryInput { + /** How a client authenticates to this registry (none, basic, token) */ + authMode?: string; + /** Path prefix within the host (npm scope, OCI project); NULL = the host root */ + basePath?: string; + createdAt?: string; + createdByPrincipal?: string; + /** Name of the infra secret carrying this registry's credential (NULL when auth_mode = none) */ + credentialSecretName?: string; + /** Registry host, without a scheme (e.g. ghcr.io, registry.npmjs.org); required unless role is source, where it is the optional requested host and is stamped with the provisioned one */ + host?: string; + id?: string; + /** Resource installation running this registry (NULL for an external registry) */ + installationId?: string; + /** Whether this registry is published for use by any scope */ + isPublished?: boolean; + /** Artifact ecosystem this registry serves (oci, npm) */ + kind: string; + /** Labels for selecting registries (lane, region, mirror role) */ + labels?: unknown; + /** Message from the last failed provision/deprovision attempt (NULL when healthy) */ + lastError?: string; + /** Freeform metadata (mirror-of pointer, rate limits, contact) */ + metadata?: unknown; + /** Human-readable registry name (e.g. github-container-registry) */ + name: string; + /** Whether this registry is reserved for platform-internal use */ + platformOnly?: boolean; + /** Role in this scope: source (the push target), cache (read-through mirror), external (pull only) */ + role?: string; + /** Provisioning state (pending, provisioning, active, failed); rows the platform does not create are active on insert */ + status?: string; + updatedAt?: string; + updatedByPrincipal?: string; +} +/** Represents an update to a `PlatformRegistry`. Fields that are set will be updated. */ +export interface PlatformRegistryPatch { + /** How a client authenticates to this registry (none, basic, token) */ + authMode?: string; + /** Path prefix within the host (npm scope, OCI project); NULL = the host root */ + basePath?: string; + createdAt?: string; + createdByPrincipal?: string; + /** Name of the infra secret carrying this registry's credential (NULL when auth_mode = none) */ + credentialSecretName?: string; + /** Registry host, without a scheme (e.g. ghcr.io, registry.npmjs.org); required unless role is source, where it is the optional requested host and is stamped with the provisioned one */ + host?: string; + id?: string; + /** Resource installation running this registry (NULL for an external registry) */ + installationId?: string; + /** Whether this registry is published for use by any scope */ + isPublished?: boolean; + /** Artifact ecosystem this registry serves (oci, npm) */ + kind?: string; + /** Labels for selecting registries (lane, region, mirror role) */ + labels?: unknown; + /** Message from the last failed provision/deprovision attempt (NULL when healthy) */ + lastError?: string; + /** Freeform metadata (mirror-of pointer, rate limits, contact) */ + metadata?: unknown; + /** Human-readable registry name (e.g. github-container-registry) */ + name?: string; + /** Whether this registry is reserved for platform-internal use */ + platformOnly?: boolean; + /** Role in this scope: source (the push target), cache (read-through mirror), external (pull only) */ + role?: string; + /** Provisioning state (pending, provisioning, active, failed); rows the platform does not create are active on insert */ + status?: string; + updatedAt?: string; + updatedByPrincipal?: string; } -/** A filter to be used against `PlatformFunctionInvocation` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformFunctionInvocationFilter { +/** A filter to be used against many `PlatformRegistryBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformRegistryToManyPlatformRegistryBindingFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformRegistryBindingFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformRegistryBindingFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformRegistryBindingFilter; +} +/** A filter to be used against many `PlatformRegistryGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformRegistryToManyPlatformRegistryGrantFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformRegistryGrantFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformRegistryGrantFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformRegistryGrantFilter; +} +/** A filter to be used against `PlatformRepositoryEvent` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformRepositoryEventFilter { /** Filter by the object’s `actorId` field. */ actorId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: PlatformFunctionInvocationFilter[]; - /** Filter by the object’s `apiBinding` relation. */ - apiBinding?: PlatformFunctionApiBindingFilter; - /** A related `apiBinding` exists. */ - apiBindingExists?: boolean; - /** Filter by the object’s `apiBindingId` field. */ - apiBindingId?: UUIDFilter; - /** Filter by the object’s `channel` field. */ - channel?: StringFilter; - /** Filter by the object’s `completedAt` field. */ - completedAt?: DatetimeFilter; + and?: PlatformRepositoryEventFilter[]; + /** Filter by the object’s `commitSha` field. */ + commitSha?: StringFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `definitionScope` field. */ - definitionScope?: StringFilter; - /** Filter by the object’s `durationMs` field. */ - durationMs?: IntFilter; - /** Filter by the object’s `error` field. */ - error?: StringFilter; - /** Filter by the object’s `functionDefinitionId` field. */ - functionDefinitionId?: UUIDFilter; - /** Filter by the object’s `graphExecutionId` field. */ - graphExecutionId?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `deliveryId` field. */ + deliveryId?: StringFilter; + /** Filter by the object’s `eventType` field. */ + eventType?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `jobId` field. */ - jobId?: BigIntFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; /** Negates the expression. */ - not?: PlatformFunctionInvocationFilter; + not?: PlatformRepositoryEventFilter; /** Checks for any expressions in this list. */ - or?: PlatformFunctionInvocationFilter[]; - /** Filter by the object’s `parentInvocationId` field. */ - parentInvocationId?: UUIDFilter; + or?: PlatformRepositoryEventFilter[]; /** Filter by the object’s `payload` field. */ - payload?: JSONFilter; - /** Filter by the object’s `provenance` field. */ - provenance?: JSONFilter; - /** Filter by the object’s `result` field. */ - result?: JSONFilter; - /** Filter by the object’s `startedAt` field. */ - startedAt?: DatetimeFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `taskIdentifier` field. */ - taskIdentifier?: StringFilter; -} -/** An input for mutations affecting `PlatformFunctionInvocation` */ -export interface PlatformFunctionInvocationInput { - /** Who triggered the invocation (NULL for system/cron) */ - actorId?: string; - /** API binding this invocation arrived through (NULL for cron/graph/system/worker paths) */ - apiBindingId?: string; - /** Invocation trigger channel: api, graph, cron, sync, webhook, or worker */ - channel?: string; - /** When execution completed */ - completedAt?: string; - /** Invocation creation timestamp (partition key) */ + payload?: JSONFilter; + /** Filter by the object’s `platformBuildsByEventId` relation. */ + platformBuildsByEventId?: PlatformRepositoryEventToManyPlatformBuildFilter; + /** `platformBuildsByEventId` exist. */ + platformBuildsByEventIdExist?: boolean; + /** Filter by the object’s `ref` field. */ + ref?: StringFilter; + /** Filter by the object’s `repository` relation. */ + repository?: PlatformRepositoryFilter; + /** Filter by the object’s `repositoryId` field. */ + repositoryId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} +/** An input for mutations affecting `PlatformRepositoryEvent` */ +export interface PlatformRepositoryEventInput { + /** Authenticated actor behind the event (NULL when only the sending system was proven) */ + actorId?: string; + /** Commit the ref points at after the event */ + commitSha?: string; createdAt?: string; - /** Database this invocation is attributed to (usage/billing attribution) */ - databaseId?: string; - /** Scope that owns function_definition_id (e.g. app/org/database/platform) — the per-scope definitions table the resolver selected */ - definitionScope?: string; - /** Wall-clock execution time in milliseconds */ - durationMs?: number; - /** Error message when status is failed, or the reason the run was skipped when status is skipped */ - error?: string; - /** Function definition this invocation ran (soft cross-scope ref; paired with definition_scope). task_identifier stays as the audit slug. */ - functionDefinitionId?: string; - /** Groups all node invocations from a single flow graph execution */ - graphExecutionId?: string; - /** Unique invocation identifier */ + createdByPrincipal?: string; + /** Provider delivery identifier, for redelivery dedupe (NULL for local hooks) */ + deliveryId?: string; + /** What happened: push, tag, pr_open, pr_merge, proposal_comment, manual */ + eventType: string; id?: string; - /** FK to app_jobs.jobs — the underlying transport */ - jobId?: string; - /** Parent invocation when this is a child node of a flow graph execution */ - parentInvocationId?: string; - /** Function input payload */ + /** Unverified provider detail (payload login, commit author, external URLs) */ + metadata?: unknown; + /** Normalized event body the workflows read */ payload?: unknown; - /** Non-secret channel-specific invocation provenance (route/binding/event identifiers only) */ - provenance?: unknown; - /** Function return value (success) or structured error (failure) */ - result?: unknown; - /** When execution started */ - startedAt?: string; - /** Lifecycle: pending → running → completed/failed/cancelled; skipped = never ran (a gate rejected the intended run) */ - status?: string; - /** Function routing slug (category:name). Denormalized from the definition — must match the row referenced by function_definition_id when that is set. */ - taskIdentifier: string; + /** Git ref the event concerns (refs/heads/main) */ + ref?: string; + /** Repository this event happened to */ + repositoryId: string; + updatedAt?: string; + updatedByPrincipal?: string; } -/** Represents an update to a `PlatformFunctionInvocation`. Fields that are set will be updated. */ -export interface PlatformFunctionInvocationPatch { - /** Who triggered the invocation (NULL for system/cron) */ +/** Represents an update to a `PlatformRepositoryEvent`. Fields that are set will be updated. */ +export interface PlatformRepositoryEventPatch { + /** Authenticated actor behind the event (NULL when only the sending system was proven) */ actorId?: string; - /** API binding this invocation arrived through (NULL for cron/graph/system/worker paths) */ - apiBindingId?: string; - /** Invocation trigger channel: api, graph, cron, sync, webhook, or worker */ - channel?: string; - /** When execution completed */ - completedAt?: string; - /** Invocation creation timestamp (partition key) */ + /** Commit the ref points at after the event */ + commitSha?: string; createdAt?: string; - /** Database this invocation is attributed to (usage/billing attribution) */ - databaseId?: string; - /** Scope that owns function_definition_id (e.g. app/org/database/platform) — the per-scope definitions table the resolver selected */ - definitionScope?: string; - /** Wall-clock execution time in milliseconds */ - durationMs?: number; - /** Error message when status is failed, or the reason the run was skipped when status is skipped */ - error?: string; - /** Function definition this invocation ran (soft cross-scope ref; paired with definition_scope). task_identifier stays as the audit slug. */ - functionDefinitionId?: string; - /** Groups all node invocations from a single flow graph execution */ - graphExecutionId?: string; - /** Unique invocation identifier */ + createdByPrincipal?: string; + /** Provider delivery identifier, for redelivery dedupe (NULL for local hooks) */ + deliveryId?: string; + /** What happened: push, tag, pr_open, pr_merge, proposal_comment, manual */ + eventType?: string; id?: string; - /** FK to app_jobs.jobs — the underlying transport */ - jobId?: string; - /** Parent invocation when this is a child node of a flow graph execution */ - parentInvocationId?: string; - /** Function input payload */ + /** Unverified provider detail (payload login, commit author, external URLs) */ + metadata?: unknown; + /** Normalized event body the workflows read */ payload?: unknown; - /** Non-secret channel-specific invocation provenance (route/binding/event identifiers only) */ - provenance?: unknown; - /** Function return value (success) or structured error (failure) */ - result?: unknown; - /** When execution started */ - startedAt?: string; - /** Lifecycle: pending → running → completed/failed/cancelled; skipped = never ran (a gate rejected the intended run) */ - status?: string; - /** Function routing slug (category:name). Denormalized from the definition — must match the row referenced by function_definition_id when that is set. */ - taskIdentifier?: string; + /** Git ref the event concerns (refs/heads/main) */ + ref?: string; + /** Repository this event happened to */ + repositoryId?: string; + updatedAt?: string; + updatedByPrincipal?: string; } -/** A filter to be used against `PlatformInfraCommit` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformInfraCommitFilter { +/** A filter to be used against many `PlatformBuild` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformRepositoryEventToManyPlatformBuildFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformBuildFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformBuildFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformBuildFilter; +} +/** A filter to be used against `PlatformRepository` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformRepositoryFilter { /** Checks for all expressions in this list. */ - and?: PlatformInfraCommitFilter[]; - /** Filter by the object’s `authorId` field. */ - authorId?: UUIDFilter; - /** Filter by the object’s `committerId` field. */ - committerId?: UUIDFilter; - /** Filter by the object’s `date` field. */ - date?: DatetimeFilter; + and?: PlatformRepositoryFilter[]; + /** Filter by the object’s `cloneUrl` field. */ + cloneUrl?: StringTrgmFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `defaultBranch` field. */ + defaultBranch?: StringTrgmFilter; + /** Filter by the object’s `description` field. */ + description?: StringTrgmFilter; + /** Filter by the object’s `embedding` field. */ + embedding?: VectorFilter; + /** Filter by the object’s `embeddingUpdatedAt` field. */ + embeddingUpdatedAt?: DatetimeFilter; + /** Filter by the object’s `externalId` field. */ + externalId?: StringTrgmFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `message` field. */ - message?: StringFilter; + /** Filter by the object’s `isArchived` field. */ + isArchived?: BooleanFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `name` field. */ + name?: StringTrgmFilter; /** Negates the expression. */ - not?: PlatformInfraCommitFilter; + not?: PlatformRepositoryFilter; /** Checks for any expressions in this list. */ - or?: PlatformInfraCommitFilter[]; - /** Filter by the object’s `parentIds` field. */ - parentIds?: UUIDListFilter; - /** Filter by the object’s `scopeId` field. */ - scopeId?: UUIDFilter; - /** Filter by the object’s `storeId` field. */ - storeId?: UUIDFilter; - /** Filter by the object’s `treeId` field. */ - treeId?: UUIDFilter; -} -/** An input for mutations affecting `PlatformInfraCommit` */ -export interface PlatformInfraCommitInput { - /** User who authored the changes */ - authorId?: string; - /** User who committed (may differ from author) */ - committerId?: string; - /** Commit timestamp */ - date?: string; - /** Unique commit identifier */ + or?: PlatformRepositoryFilter[]; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `platformBuildsByRepositoryId` relation. */ + platformBuildsByRepositoryId?: PlatformRepositoryToManyPlatformBuildFilter; + /** `platformBuildsByRepositoryId` exist. */ + platformBuildsByRepositoryIdExist?: boolean; + /** Filter by the object’s `platformProposalsByRepositoryId` relation. */ + platformProposalsByRepositoryId?: PlatformRepositoryToManyPlatformProposalFilter; + /** `platformProposalsByRepositoryId` exist. */ + platformProposalsByRepositoryIdExist?: boolean; + /** Filter by the object’s `platformRepositoryEventsByRepositoryId` relation. */ + platformRepositoryEventsByRepositoryId?: PlatformRepositoryToManyPlatformRepositoryEventFilter; + /** `platformRepositoryEventsByRepositoryId` exist. */ + platformRepositoryEventsByRepositoryIdExist?: boolean; + /** Filter by the object’s `platformRepositoryRequiredChecksByRepositoryId` relation. */ + platformRepositoryRequiredChecksByRepositoryId?: PlatformRepositoryToManyPlatformRepositoryRequiredCheckFilter; + /** `platformRepositoryRequiredChecksByRepositoryId` exist. */ + platformRepositoryRequiredChecksByRepositoryIdExist?: boolean; + /** Filter by the object’s `platformRepositoryWorkflowsByRepositoryId` relation. */ + platformRepositoryWorkflowsByRepositoryId?: PlatformRepositoryToManyPlatformRepositoryWorkflowFilter; + /** `platformRepositoryWorkflowsByRepositoryId` exist. */ + platformRepositoryWorkflowsByRepositoryIdExist?: boolean; + /** Filter by the object’s `provider` field. */ + provider?: StringTrgmFilter; + /** Filter by the object’s `search` field. */ + search?: FullTextFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringTrgmFilter; + /** TRGM search on the `clone_url` column. */ + trgmCloneUrl?: TrgmSearchInput; + /** TRGM search on the `default_branch` column. */ + trgmDefaultBranch?: TrgmSearchInput; + /** TRGM search on the `description` column. */ + trgmDescription?: TrgmSearchInput; + /** TRGM search on the `external_id` column. */ + trgmExternalId?: TrgmSearchInput; + /** TRGM search on the `name` column. */ + trgmName?: TrgmSearchInput; + /** TRGM search on the `provider` column. */ + trgmProvider?: TrgmSearchInput; + /** TRGM search on the `slug` column. */ + trgmSlug?: TrgmSearchInput; + /** TRGM search on the `visibility` column. */ + trgmVisibility?: TrgmSearchInput; + /** TSV search on the `search` column. */ + tsvSearch?: string; + /** + * Composite unified search. Provide a search string and it will be dispatched to + * all text-compatible search algorithms (tsvector, BM25, pg_trgm) + * simultaneously. When the LLM plugin is active, pgvector also participates via + * auto-embedding. Rows matching ANY algorithm are returned. All matching score + * fields are populated. + */ + unifiedSearch?: string; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** VECTOR search on the `embedding` column. */ + vectorEmbedding?: VectorNearbyInput; + /** Filter by the object’s `visibility` field. */ + visibility?: StringTrgmFilter; +} +/** An input for mutations affecting `PlatformRepository` */ +export interface PlatformRepositoryInput { + /** URL a workspace clones from (NULL until the repository is provisioned) */ + cloneUrl?: string; + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** Branch a clone checks out and a proposal targets by default */ + defaultBranch?: string; + /** What this repository holds */ + description?: string; + embedding?: number[]; + /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + embeddingText?: string; + /** Identifier of this repository in the external provider (NULL for local) */ + externalId?: string; id?: string; - /** Optional commit message */ - message?: string; - /** Parent commit IDs (supports merge commits) */ - parentIds?: string[]; - /** Opaque store partition key for the global tier */ - scopeId: string; - /** Store this commit belongs to */ - storeId: string; - /** Root object ID of the tree snapshot at this commit */ - treeId?: string; -} -/** Represents an update to a `PlatformInfraCommit`. Fields that are set will be updated. */ -export interface PlatformInfraCommitPatch { - /** User who authored the changes */ - authorId?: string; - /** User who committed (may differ from author) */ - committerId?: string; - /** Commit timestamp */ - date?: string; - /** Unique commit identifier */ + /** Whether this repository is retired: readable, not written to */ + isArchived?: boolean; + /** Provider detail (installation id, topics, external URLs) */ + metadata?: unknown; + /** Human-readable repository name */ + name: string; + /** User who owns this repository */ + ownerId?: string; + /** Where the repository lives: local (platform git server) or github */ + provider?: string; + /** URL-safe identifier, unique within the owning scope */ + slug: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; + /** Read reach: private (owner), internal (scope members), public (any authenticated actor) */ + visibility?: string; +} +/** Represents an update to a `PlatformRepository`. Fields that are set will be updated. */ +export interface PlatformRepositoryPatch { + /** URL a workspace clones from (NULL until the repository is provisioned) */ + cloneUrl?: string; + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** Branch a clone checks out and a proposal targets by default */ + defaultBranch?: string; + /** What this repository holds */ + description?: string; + embedding?: number[]; + /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + embeddingText?: string; + /** Identifier of this repository in the external provider (NULL for local) */ + externalId?: string; id?: string; - /** Optional commit message */ - message?: string; - /** Parent commit IDs (supports merge commits) */ - parentIds?: string[]; - /** Opaque store partition key for the global tier */ - scopeId?: string; - /** Store this commit belongs to */ - storeId?: string; - /** Root object ID of the tree snapshot at this commit */ - treeId?: string; -} -export interface PlatformInfraInitEmptyRepoInput { - clientMutationId?: string; - sId?: string; - storeId?: string; -} -export interface PlatformInfraInsertNodeAtPathInput { - clientMutationId?: string; - data?: unknown; - kids?: string[]; - ktree?: string[]; - path?: string[]; - root?: string; - sId?: string; -} -export interface PlatformInfraInsertNodesAtPathsInput { - clientMutationId?: string; - datas?: unknown[]; - kidsList?: unknown; - ktreeList?: unknown; - paths?: unknown; - root?: string; - sId?: string; + /** Whether this repository is retired: readable, not written to */ + isArchived?: boolean; + /** Provider detail (installation id, topics, external URLs) */ + metadata?: unknown; + /** Human-readable repository name */ + name?: string; + /** User who owns this repository */ + ownerId?: string; + /** Where the repository lives: local (platform git server) or github */ + provider?: string; + /** URL-safe identifier, unique within the owning scope */ + slug?: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; + /** Read reach: private (owner), internal (scope members), public (any authenticated actor) */ + visibility?: string; } -/** A filter to be used against `PlatformInfraObject` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformInfraObjectFilter { +/** A filter to be used against `PlatformRepositoryRequiredCheck` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformRepositoryRequiredCheckFilter { /** Checks for all expressions in this list. */ - and?: PlatformInfraObjectFilter[]; + and?: PlatformRepositoryRequiredCheckFilter[]; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; - /** Filter by the object’s `data` field. */ - data?: JSONFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `kids` field. */ - kids?: UUIDListFilter; - /** Filter by the object’s `ktree` field. */ - ktree?: StringListFilter; /** Negates the expression. */ - not?: PlatformInfraObjectFilter; + not?: PlatformRepositoryRequiredCheckFilter; /** Checks for any expressions in this list. */ - or?: PlatformInfraObjectFilter[]; - /** Filter by the object’s `scopeId` field. */ - scopeId?: UUIDFilter; + or?: PlatformRepositoryRequiredCheckFilter[]; + /** Filter by the object’s `repository` relation. */ + repository?: PlatformRepositoryFilter; + /** Filter by the object’s `repositoryId` field. */ + repositoryId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `workflow` relation. */ + workflow?: PlatformRepositoryWorkflowFilter; + /** Filter by the object’s `workflowId` field. */ + workflowId?: UUIDFilter; } -/** An input for mutations affecting `PlatformInfraObject` */ -export interface PlatformInfraObjectInput { - /** Timestamp of object creation */ +/** An input for mutations affecting `PlatformRepositoryRequiredCheck` */ +export interface PlatformRepositoryRequiredCheckInput { createdAt?: string; - /** Payload data for this object node */ - data?: unknown; - /** Content-addressed UUID v5 — deterministic hash of (data, kids, ktree) */ - id: string; - /** Ordered array of child object IDs */ - kids?: string[]; - /** Ordered array of child path names (parallel to kids) */ - ktree?: string[]; - /** Opaque store partition key for the global tier */ - scopeId: string; + id?: string; + /** Repository whose merge gate requires this workflow */ + repositoryId: string; + updatedAt?: string; + /** Workflow identity required by this repository gate */ + workflowId: string; } -/** Represents an update to a `PlatformInfraObject`. Fields that are set will be updated. */ -export interface PlatformInfraObjectPatch { - /** Timestamp of object creation */ +/** Represents an update to a `PlatformRepositoryRequiredCheck`. Fields that are set will be updated. */ +export interface PlatformRepositoryRequiredCheckPatch { createdAt?: string; - /** Payload data for this object node */ - data?: unknown; - /** Content-addressed UUID v5 — deterministic hash of (data, kids, ktree) */ id?: string; - /** Ordered array of child object IDs */ - kids?: string[]; - /** Ordered array of child path names (parallel to kids) */ - ktree?: string[]; - /** Opaque store partition key for the global tier */ - scopeId?: string; + /** Repository whose merge gate requires this workflow */ + repositoryId?: string; + updatedAt?: string; + /** Workflow identity required by this repository gate */ + workflowId?: string; +} +/** A filter to be used against many `PlatformBuild` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformRepositoryToManyPlatformBuildFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformBuildFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformBuildFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformBuildFilter; +} +/** A filter to be used against many `PlatformProposal` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformRepositoryToManyPlatformProposalFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformProposalFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformProposalFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformProposalFilter; +} +/** A filter to be used against many `PlatformRepositoryEvent` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformRepositoryToManyPlatformRepositoryEventFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformRepositoryEventFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformRepositoryEventFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformRepositoryEventFilter; +} +/** A filter to be used against many `PlatformRepositoryRequiredCheck` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformRepositoryToManyPlatformRepositoryRequiredCheckFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformRepositoryRequiredCheckFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformRepositoryRequiredCheckFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformRepositoryRequiredCheckFilter; } -/** A filter to be used against `PlatformInfraRef` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformInfraRefFilter { +/** A filter to be used against many `PlatformRepositoryWorkflow` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformRepositoryToManyPlatformRepositoryWorkflowFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformRepositoryWorkflowFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformRepositoryWorkflowFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformRepositoryWorkflowFilter; +} +/** A filter to be used against `PlatformRepositoryWorkflow` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformRepositoryWorkflowFilter { /** Checks for all expressions in this list. */ - and?: PlatformInfraRefFilter[]; - /** Filter by the object’s `commitId` field. */ - commitId?: UUIDFilter; + and?: PlatformRepositoryWorkflowFilter[]; + /** Filter by the object’s `cancelInProgress` field. */ + cancelInProgress?: BooleanFilter; + /** Filter by the object’s `concurrencyKey` field. */ + concurrencyKey?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `eventType` field. */ + eventType?: StringFilter; + /** Filter by the object’s `graph` relation. */ + graph?: FunctionGraphFilter; + /** A related `graph` exists. */ + graphExists?: boolean; + /** Filter by the object’s `graphId` field. */ + graphId?: UUIDFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `inputs` field. */ + inputs?: JSONFilter; + /** Filter by the object’s `isEnabled` field. */ + isEnabled?: BooleanFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; /** Negates the expression. */ - not?: PlatformInfraRefFilter; + not?: PlatformRepositoryWorkflowFilter; /** Checks for any expressions in this list. */ - or?: PlatformInfraRefFilter[]; - /** Filter by the object’s `scopeId` field. */ - scopeId?: UUIDFilter; - /** Filter by the object’s `storeId` field. */ - storeId?: UUIDFilter; -} -/** An input for mutations affecting `PlatformInfraRef` */ -export interface PlatformInfraRefInput { - /** Commit this ref points to */ - commitId?: string; - /** Unique ref identifier */ + or?: PlatformRepositoryWorkflowFilter[]; + /** Filter by the object’s `platformBuildsByWorkflowId` relation. */ + platformBuildsByWorkflowId?: PlatformRepositoryWorkflowToManyPlatformBuildFilter; + /** `platformBuildsByWorkflowId` exist. */ + platformBuildsByWorkflowIdExist?: boolean; + /** Filter by the object’s `platformRepositoryRequiredChecksByWorkflowId` relation. */ + platformRepositoryRequiredChecksByWorkflowId?: PlatformRepositoryWorkflowToManyPlatformRepositoryRequiredCheckFilter; + /** `platformRepositoryRequiredChecksByWorkflowId` exist. */ + platformRepositoryRequiredChecksByWorkflowIdExist?: boolean; + /** Filter by the object’s `refPattern` field. */ + refPattern?: StringFilter; + /** Filter by the object’s `repository` relation. */ + repository?: PlatformRepositoryFilter; + /** Filter by the object’s `repositoryId` field. */ + repositoryId?: UUIDFilter; + /** Filter by the object’s `requiredSecrets` field. */ + requiredSecrets?: StringListFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} +/** An input for mutations affecting `PlatformRepositoryWorkflow` */ +export interface PlatformRepositoryWorkflowInput { + /** Whether a new build cancels a running build with the same concurrency key instead of queueing */ + cancelInProgress?: boolean; + /** Builds of this workflow sharing this key run one at a time (NULL = unlimited) */ + concurrencyKey?: string; + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** Event type that fires this workflow */ + eventType: string; + /** Flow graph to run when this workflow fires */ + graphId?: string; id?: string; - /** Ref name (e.g. HEAD, main) */ + /** Static inputs merged into the graph run alongside the event */ + inputs?: unknown; + /** Whether matching events fire this workflow */ + isEnabled?: boolean; + /** Human-readable workflow name */ name: string; - /** Opaque store partition key for the global tier */ - scopeId: string; - /** Store this ref belongs to */ - storeId: string; -} -/** Represents an update to a `PlatformInfraRef`. Fields that are set will be updated. */ -export interface PlatformInfraRefPatch { - /** Commit this ref points to */ - commitId?: string; - /** Unique ref identifier */ + /** Glob the event ref must match (NULL matches any ref) */ + refPattern?: string; + /** Repository whose events this workflow listens to */ + repositoryId: string; + /** Secret names this workflow's builds may resolve, intersected with the build lane's realm */ + requiredSecrets?: string[]; + /** URL-safe identifier, unique within the repository */ + slug: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; +} +/** Represents an update to a `PlatformRepositoryWorkflow`. Fields that are set will be updated. */ +export interface PlatformRepositoryWorkflowPatch { + /** Whether a new build cancels a running build with the same concurrency key instead of queueing */ + cancelInProgress?: boolean; + /** Builds of this workflow sharing this key run one at a time (NULL = unlimited) */ + concurrencyKey?: string; + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** Event type that fires this workflow */ + eventType?: string; + /** Flow graph to run when this workflow fires */ + graphId?: string; id?: string; - /** Ref name (e.g. HEAD, main) */ + /** Static inputs merged into the graph run alongside the event */ + inputs?: unknown; + /** Whether matching events fire this workflow */ + isEnabled?: boolean; + /** Human-readable workflow name */ name?: string; - /** Opaque store partition key for the global tier */ - scopeId?: string; - /** Store this ref belongs to */ - storeId?: string; + /** Glob the event ref must match (NULL matches any ref) */ + refPattern?: string; + /** Repository whose events this workflow listens to */ + repositoryId?: string; + /** Secret names this workflow's builds may resolve, intersected with the build lane's realm */ + requiredSecrets?: string[]; + /** URL-safe identifier, unique within the repository */ + slug?: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; } -export interface PlatformInfraSetAndCommitInput { - clientMutationId?: string; - data?: unknown; - kids?: string[]; - ktree?: string[]; - message?: string; - path?: string[]; - refname?: string; - sId?: string; - storeId?: string; +/** A filter to be used against many `PlatformBuild` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformRepositoryWorkflowToManyPlatformBuildFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformBuildFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformBuildFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformBuildFilter; } -export interface PlatformInfraSetDataAtPathInput { - clientMutationId?: string; - data?: unknown; - path?: string[]; - root?: string; - sId?: string; +/** A filter to be used against many `PlatformRepositoryRequiredCheck` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformRepositoryWorkflowToManyPlatformRepositoryRequiredCheckFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformRepositoryRequiredCheckFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformRepositoryRequiredCheckFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformRepositoryRequiredCheckFilter; } -export interface PlatformInfraSetManyAndCommitInput { - clientMutationId?: string; - entries?: unknown; - message?: string; - refname?: string; - sId?: string; - storeId?: string; +/** A filter to be used against `PlatformResourceDeclaredCapacity` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformResourceDeclaredCapacityFilter { + /** Checks for all expressions in this list. */ + and?: PlatformResourceDeclaredCapacityFilter[]; + /** Filter by the object’s `cpuLimitMillicores` field. */ + cpuLimitMillicores?: BigIntFilter; + /** Filter by the object’s `cpuRequestMillicores` field. */ + cpuRequestMillicores?: BigIntFilter; + /** Filter by the object’s `installationId` field. */ + installationId?: UUIDFilter; + /** Filter by the object’s `isTransient` field. */ + isTransient?: BooleanFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `memoryLimitBytes` field. */ + memoryLimitBytes?: BigIntFilter; + /** Filter by the object’s `memoryRequestBytes` field. */ + memoryRequestBytes?: BigIntFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformResourceDeclaredCapacityFilter; + /** Checks for any expressions in this list. */ + or?: PlatformResourceDeclaredCapacityFilter[]; + /** Filter by the object’s `podCountMax` field. */ + podCountMax?: IntFilter; + /** Filter by the object’s `podCountMin` field. */ + podCountMin?: IntFilter; + /** Filter by the object’s `source` field. */ + source?: StringFilter; + /** Filter by the object’s `sourceId` field. */ + sourceId?: UUIDFilter; + /** Filter by the object’s `storageSizeBytes` field. */ + storageSizeBytes?: BigIntFilter; + /** Filter by the object’s `storageTotalBytes` field. */ + storageTotalBytes?: BigIntFilter; } -/** A filter to be used against `PlatformInfraStore` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformInfraStoreFilter { +/** A filter to be used against `PlatformResourceDefinition` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformResourceDefinitionFilter { /** Checks for all expressions in this list. */ - and?: PlatformInfraStoreFilter[]; + and?: PlatformResourceDefinitionFilter[]; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; - /** Filter by the object’s `hash` field. */ - hash?: UUIDFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `defaultSpec` field. */ + defaultSpec?: JSONFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `integrations` field. */ + integrations?: StringListFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: PlatformNamespaceFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; /** Negates the expression. */ - not?: PlatformInfraStoreFilter; + not?: PlatformResourceDefinitionFilter; /** Checks for any expressions in this list. */ - or?: PlatformInfraStoreFilter[]; - /** Filter by the object’s `scopeId` field. */ - scopeId?: UUIDFilter; + or?: PlatformResourceDefinitionFilter[]; + /** Filter by the object’s `paramsSchema` field. */ + paramsSchema?: JSONFilter; + /** Filter by the object’s `platformResourcesByResourceDefinitionId` relation. */ + platformResourcesByResourceDefinitionId?: PlatformResourceDefinitionToManyPlatformResourceFilter; + /** `platformResourcesByResourceDefinitionId` exist. */ + platformResourcesByResourceDefinitionIdExist?: boolean; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `stepUpMinAge` field. */ + stepUpMinAge?: IntervalFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -/** An input for mutations affecting `PlatformInfraStore` */ -export interface PlatformInfraStoreInput { - /** Timestamp of store creation */ +/** An input for mutations affecting `PlatformResourceDefinition` */ +export interface PlatformResourceDefinitionInput { + /** Freeform metadata for tooling and operational notes */ + annotations?: unknown; createdAt?: string; - /** Current root object hash of this store */ - hash?: string; - /** Unique store identifier */ + createdBy?: string; + createdByPrincipal?: string; + /** Template spec for creating resource instances of this kind */ + defaultSpec?: unknown; + /** What this resource definition provides */ + description?: string; id?: string; - /** Human-readable store name */ + /** Provider slugs (e.g. mailgun, postgres) associated with this resource definition. The UI uses this to auto-fill required_secrets and required_configs from integration_providers. */ + integrations?: string[]; + /** Resource kind: Deployment, StatefulSet, Job, Service, Ingress, Certificate, ClusterIssuer, or custom kinds */ + kind: string; + /** Key/value pairs for selecting and filtering definitions */ + labels?: unknown; + /** Human-readable definition name */ name: string; - /** Opaque store partition key for the global tier */ - scopeId: string; + /** Namespace this definition belongs to (security boundary, maps to K8s namespace) */ + namespaceId: string; + /** Declared parameter interface: [{key,label,type,default,required,min,max,options,group,order,bindings:[{path,template,scale,round,unit}]}]. Installation params are validated and compiled through these declarations; [] keeps the legacy raw spec overlay. */ + paramsSchema?: unknown; + /** Embedded config requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ + requiredConfigs?: ResourceRequirementInput[]; + /** Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ + requiredSecrets?: ResourceRequirementInput[]; + /** URL-safe identifier, unique within (namespace_id, kind) */ + slug: string; + /** Min age before DELETE of a resource of this kind requires step-up; NULL inherits the 6h default */ + stepUpMinAge?: IntervalInput; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; } -/** Represents an update to a `PlatformInfraStore`. Fields that are set will be updated. */ -export interface PlatformInfraStorePatch { - /** Timestamp of store creation */ +/** Represents an update to a `PlatformResourceDefinition`. Fields that are set will be updated. */ +export interface PlatformResourceDefinitionPatch { + /** Freeform metadata for tooling and operational notes */ + annotations?: unknown; createdAt?: string; - /** Current root object hash of this store */ - hash?: string; - /** Unique store identifier */ + createdBy?: string; + createdByPrincipal?: string; + /** Template spec for creating resource instances of this kind */ + defaultSpec?: unknown; + /** What this resource definition provides */ + description?: string; id?: string; - /** Human-readable store name */ + /** Provider slugs (e.g. mailgun, postgres) associated with this resource definition. The UI uses this to auto-fill required_secrets and required_configs from integration_providers. */ + integrations?: string[]; + /** Resource kind: Deployment, StatefulSet, Job, Service, Ingress, Certificate, ClusterIssuer, or custom kinds */ + kind?: string; + /** Key/value pairs for selecting and filtering definitions */ + labels?: unknown; + /** Human-readable definition name */ name?: string; - /** Opaque store partition key for the global tier */ - scopeId?: string; + /** Namespace this definition belongs to (security boundary, maps to K8s namespace) */ + namespaceId?: string; + /** Declared parameter interface: [{key,label,type,default,required,min,max,options,group,order,bindings:[{path,template,scale,round,unit}]}]. Installation params are validated and compiled through these declarations; [] keeps the legacy raw spec overlay. */ + paramsSchema?: unknown; + /** Embedded config requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ + requiredConfigs?: ResourceRequirementInput[]; + /** Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ + requiredSecrets?: ResourceRequirementInput[]; + /** URL-safe identifier, unique within (namespace_id, kind) */ + slug?: string; + /** Min age before DELETE of a resource of this kind requires step-up; NULL inherits the 6h default */ + stepUpMinAge?: IntervalInput; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; } -/** A filter to be used against `PlatformNamespaceEvent` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformNamespaceEventFilter { +/** A filter to be used against many `PlatformResource` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformResourceDefinitionToManyPlatformResourceFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformResourceFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformResourceFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformResourceFilter; +} +/** A filter to be used against `PlatformResourceEvent` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformResourceEventFilter { /** Filter by the object’s `actorId` field. */ actorId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: PlatformNamespaceEventFilter[]; + and?: PlatformResourceEventFilter[]; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `eventType` field. */ @@ -6476,168 +13243,294 @@ export interface PlatformNamespaceEventFilter { message?: StringFilter; /** Filter by the object’s `metadata` field. */ metadata?: JSONFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; /** Negates the expression. */ - not?: PlatformNamespaceEventFilter; + not?: PlatformResourceEventFilter; /** Checks for any expressions in this list. */ - or?: PlatformNamespaceEventFilter[]; + or?: PlatformResourceEventFilter[]; + /** Filter by the object’s `resourceId` field. */ + resourceId?: UUIDFilter; } -/** An input for mutations affecting `PlatformNamespaceEvent` */ -export interface PlatformNamespaceEventInput { - /** User who triggered this event (NULL for system/automated) */ +/** An input for mutations affecting `PlatformResourceEvent` */ +export interface PlatformResourceEventInput { + /** User who triggered this event; NULL only when no human actor was proven */ actorId?: string; /** Event timestamp (partition key) */ createdAt?: string; - /** Event type: created, activated, deactivated, labels_updated, annotations_updated, renamed */ + /** Event type: provisioned, provisioning, updated, failed, deprovisioned, health_check */ eventType: string; /** Unique event identifier */ id?: string; /** Human-readable description of the event */ message?: string; - /** Structured context (old/new values, labels diff, etc.) */ + /** Structured context (old/new values, error details, etc.) */ metadata?: unknown; - /** Namespace this event belongs to */ - namespaceId: string; + /** Resource this event belongs to */ + resourceId: string; } -/** Represents an update to a `PlatformNamespaceEvent`. Fields that are set will be updated. */ -export interface PlatformNamespaceEventPatch { - /** User who triggered this event (NULL for system/automated) */ +/** Represents an update to a `PlatformResourceEvent`. Fields that are set will be updated. */ +export interface PlatformResourceEventPatch { + /** User who triggered this event; NULL only when no human actor was proven */ actorId?: string; /** Event timestamp (partition key) */ createdAt?: string; - /** Event type: created, activated, deactivated, labels_updated, annotations_updated, renamed */ + /** Event type: provisioned, provisioning, updated, failed, deprovisioned, health_check */ eventType?: string; /** Unique event identifier */ id?: string; /** Human-readable description of the event */ message?: string; - /** Structured context (old/new values, labels diff, etc.) */ + /** Structured context (old/new values, error details, etc.) */ metadata?: unknown; - /** Namespace this event belongs to */ - namespaceId?: string; + /** Resource this event belongs to */ + resourceId?: string; } -/** A filter to be used against `PlatformNamespace` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformNamespaceFilter { +/** A filter to be used against `PlatformResource` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformResourceFilter { /** Checks for all expressions in this list. */ - and?: PlatformNamespaceFilter[]; + and?: PlatformResourceFilter[]; /** Filter by the object’s `annotations` field. */ annotations?: JSONFilter; + /** Filter by the object’s `cpuLimitMillicores` field. */ + cpuLimitMillicores?: BigIntFilter; + /** Filter by the object’s `cpuRequestMillicores` field. */ + cpuRequestMillicores?: BigIntFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `errorCount` field. */ + errorCount?: IntFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `isActive` field. */ - isActive?: BooleanFilter; - /** Filter by the object’s `isManaged` field. */ - isManaged?: BooleanFilter; + /** Filter by the object’s `imageRef` field. */ + imageRef?: StringFilter; + /** Filter by the object’s `installation` relation. */ + installation?: PlatformResourceInstallationFilter; + /** A related `installation` exists. */ + installationExists?: boolean; + /** Filter by the object’s `installationId` field. */ + installationId?: UUIDFilter; + /** Filter by the object’s `integrations` field. */ + integrations?: StringListFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; /** Filter by the object’s `labels` field. */ labels?: JSONFilter; /** Filter by the object’s `lastError` field. */ lastError?: StringFilter; + /** Filter by the object’s `lastHeartbeatAt` field. */ + lastHeartbeatAt?: DatetimeFilter; + /** Filter by the object’s `memoryLimitBytes` field. */ + memoryLimitBytes?: BigIntFilter; + /** Filter by the object’s `memoryRequestBytes` field. */ + memoryRequestBytes?: BigIntFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `namespaceName` field. */ - namespaceName?: StringFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: PlatformNamespaceFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; /** Negates the expression. */ - not?: PlatformNamespaceFilter; + not?: PlatformResourceFilter; /** Checks for any expressions in this list. */ - or?: PlatformNamespaceFilter[]; - /** Filter by the object’s `platformFunctionDeploymentsByNamespaceId` relation. */ - platformFunctionDeploymentsByNamespaceId?: PlatformNamespaceToManyPlatformFunctionDeploymentFilter; - /** `platformFunctionDeploymentsByNamespaceId` exist. */ - platformFunctionDeploymentsByNamespaceIdExist?: boolean; - /** Filter by the object’s `platformResourceDefinitionsByNamespaceId` relation. */ - platformResourceDefinitionsByNamespaceId?: PlatformNamespaceToManyPlatformResourceDefinitionFilter; - /** `platformResourceDefinitionsByNamespaceId` exist. */ - platformResourceDefinitionsByNamespaceIdExist?: boolean; - /** Filter by the object’s `platformResourceInstallationsByNamespaceId` relation. */ - platformResourceInstallationsByNamespaceId?: PlatformNamespaceToManyPlatformResourceInstallationFilter; - /** `platformResourceInstallationsByNamespaceId` exist. */ - platformResourceInstallationsByNamespaceIdExist?: boolean; - /** Filter by the object’s `platformResourcesByNamespaceId` relation. */ - platformResourcesByNamespaceId?: PlatformNamespaceToManyPlatformResourceFilter; - /** `platformResourcesByNamespaceId` exist. */ - platformResourcesByNamespaceIdExist?: boolean; - /** Filter by the object’s `platformWebhookEndpointsByNamespaceId` relation. */ - platformWebhookEndpointsByNamespaceId?: PlatformNamespaceToManyPlatformWebhookEndpointFilter; - /** `platformWebhookEndpointsByNamespaceId` exist. */ - platformWebhookEndpointsByNamespaceIdExist?: boolean; + or?: PlatformResourceFilter[]; + /** Filter by the object’s `platformResourceStatusChecksByResourceId` relation. */ + platformResourceStatusChecksByResourceId?: PlatformResourceToManyPlatformResourceStatusCheckFilter; + /** `platformResourceStatusChecksByResourceId` exist. */ + platformResourceStatusChecksByResourceIdExist?: boolean; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; + /** Filter by the object’s `replicas` field. */ + replicas?: IntFilter; + /** Filter by the object’s `resourceDefinition` relation. */ + resourceDefinition?: PlatformResourceDefinitionFilter; + /** A related `resourceDefinition` exists. */ + resourceDefinitionExists?: boolean; + /** Filter by the object’s `resourceDefinitionId` field. */ + resourceDefinitionId?: UUIDFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `spec` field. */ + spec?: JSONFilter; /** Filter by the object’s `status` field. */ status?: StringFilter; + /** Filter by the object’s `statusObserved` field. */ + statusObserved?: JSONFilter; + /** Filter by the object’s `storageClass` field. */ + storageClass?: StringFilter; + /** Filter by the object’s `storageSizeBytes` field. */ + storageSizeBytes?: BigIntFilter; + /** Filter by the object’s `storageTotalBytes` field. */ + storageTotalBytes?: BigIntFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -/** An input for mutations affecting `PlatformNamespace` */ -export interface PlatformNamespaceInput { +/** An input for mutations affecting `PlatformResource` */ +export interface PlatformResourceInput { /** Freeform metadata for tooling and operational notes */ annotations?: unknown; createdAt?: string; - /** Optional human-readable description of this namespace */ - description?: string; + createdBy?: string; + createdByPrincipal?: string; + /** Cumulative error count for this resource */ + errorCount?: number; id?: string; - /** Whether this namespace is active (soft-disable for filtering) */ - isActive?: boolean; - /** true = provisioned by the platform via jobs, false = unmanaged/platform-native (bootstrapped externally) */ - isManaged?: boolean; - /** Key/value pairs for selecting and filtering namespaces */ + /** Pinned image reference this resource runs (registry host/repository:tag or @digest), written by promotion; NULL means spec.image decides */ + imageRef?: string; + /** Installation ("release") this resource belongs to (NULL for standalone resources) */ + installationId?: string; + /** Provider slugs (e.g. mailgun, postgres) associated with this resource. The UI uses this to auto-fill required_secrets and required_configs from integration_providers. */ + integrations?: string[]; + /** Resource kind: Deployment, StatefulSet, Job, Service, Ingress, Certificate, ClusterIssuer */ + kind: string; + /** Key/value pairs for selecting and filtering resources */ labels?: unknown; - /** Most recent provisioning or reconcile error message */ + /** Most recent provisioning or runtime error message */ lastError?: string; - /** Human-readable namespace name (e.g. default, production, oauth) */ + /** Last time a usage heartbeat was received for this resource (NULL until first heartbeat) */ + lastHeartbeatAt?: string; + /** Human-readable resource name */ name: string; - /** Globally unique computed namespace identifier via inflection.underscore */ - namespaceName: string; - /** Namespace provisioning lifecycle status: pending, provisioning, active, failed */ + /** Namespace this resource belongs to (security boundary, maps to K8s namespace) */ + namespaceId: string; + /** Config/secret realm this resource resolves against. Per key, the realm-specific atom wins over the NULL-realm default. NULL = the default lane. */ + realm?: string; + /** Embedded config requirements: array of (name, required, provider) tuples — extends the linked definition's requirements. provider is the integration slug this requirement belongs to, if any. */ + requiredConfigs?: ResourceRequirementInput[]; + /** Embedded secret requirements: array of (name, required, provider) tuples — extends the linked definition's requirements. provider is the integration slug this requirement belongs to, if any. */ + requiredSecrets?: ResourceRequirementInput[]; + /** Definition template this resource was created from (NULL for standalone resources) */ + resourceDefinitionId?: string; + /** URL-safe identifier, unique within (namespace_id, kind) */ + slug: string; + /** Desired state — kind-specific configuration (image, ports, resources, etc.). Opaque to DB; validated by K8s. */ + spec?: unknown; + /** Resource lifecycle status: pending, provisioning, active, completed, failed, draining, deleting */ + status?: string; + /** Observed state from K8s — populated by handlers after reconciliation (service_url, clone_url, replicas, etc.) */ + statusObserved?: unknown; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; +} +/** A filter to be used against `PlatformResourceInstallation` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformResourceInstallationFilter { + /** Checks for all expressions in this list. */ + and?: PlatformResourceInstallationFilter[]; + /** Filter by the object’s `commitId` field. */ + commitId?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: PlatformNamespaceFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformResourceInstallationFilter; + /** Checks for any expressions in this list. */ + or?: PlatformResourceInstallationFilter[]; + /** Filter by the object’s `params` field. */ + params?: JSONFilter; + /** Filter by the object’s `platformRegistriesByInstallationId` relation. */ + platformRegistriesByInstallationId?: PlatformResourceInstallationToManyPlatformRegistryFilter; + /** `platformRegistriesByInstallationId` exist. */ + platformRegistriesByInstallationIdExist?: boolean; + /** Filter by the object’s `platformResourcesByInstallationId` relation. */ + platformResourcesByInstallationId?: PlatformResourceInstallationToManyPlatformResourceFilter; + /** `platformResourcesByInstallationId` exist. */ + platformResourcesByInstallationIdExist?: boolean; + /** Filter by the object’s `revision` field. */ + revision?: IntFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `storeId` field. */ + storeId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} +/** An input for mutations affecting `PlatformResourceInstallation` */ +export interface PlatformResourceInstallationInput { + /** Infra store commit for the current params (stamped by the versioned trigger on every write) */ + commitId?: string; + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + id?: string; + /** Human-readable release name */ + name: string; + /** Namespace this installation belongs to (security boundary) */ + namespaceId: string; + /** Release parameters — the readily-cached head; history lives in the infra store. Never contains secret/config literals. */ + params?: unknown; + /** Monotonic release revision counter: install starts at 1, bumped on every upgrade/rollback */ + revision?: number; + /** URL-safe release identifier, unique within the namespace; the release's path in the infra tree is [resource_installation, slug] */ + slug: string; + /** Installation lifecycle status: pending, installed, uninstalled, failed */ status?: string; + /** Infra merkle store holding this installation's history (stamped by the versioned trigger) */ + storeId?: string; updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; } -/** Represents an update to a `PlatformNamespace`. Fields that are set will be updated. */ -export interface PlatformNamespacePatch { - /** Freeform metadata for tooling and operational notes */ - annotations?: unknown; +/** Represents an update to a `PlatformResourceInstallation`. Fields that are set will be updated. */ +export interface PlatformResourceInstallationPatch { + /** Infra store commit for the current params (stamped by the versioned trigger on every write) */ + commitId?: string; createdAt?: string; - /** Optional human-readable description of this namespace */ - description?: string; + createdBy?: string; + createdByPrincipal?: string; id?: string; - /** Whether this namespace is active (soft-disable for filtering) */ - isActive?: boolean; - /** true = provisioned by the platform via jobs, false = unmanaged/platform-native (bootstrapped externally) */ - isManaged?: boolean; - /** Key/value pairs for selecting and filtering namespaces */ - labels?: unknown; - /** Most recent provisioning or reconcile error message */ - lastError?: string; - /** Human-readable namespace name (e.g. default, production, oauth) */ + /** Human-readable release name */ name?: string; - /** Globally unique computed namespace identifier via inflection.underscore */ - namespaceName?: string; - /** Namespace provisioning lifecycle status: pending, provisioning, active, failed */ + /** Namespace this installation belongs to (security boundary) */ + namespaceId?: string; + /** Release parameters — the readily-cached head; history lives in the infra store. Never contains secret/config literals. */ + params?: unknown; + /** Monotonic release revision counter: install starts at 1, bumped on every upgrade/rollback */ + revision?: number; + /** URL-safe release identifier, unique within the namespace; the release's path in the infra tree is [resource_installation, slug] */ + slug?: string; + /** Installation lifecycle status: pending, installed, uninstalled, failed */ status?: string; + /** Infra merkle store holding this installation's history (stamped by the versioned trigger) */ + storeId?: string; updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; } -/** A filter to be used against many `PlatformFunctionDeployment` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformNamespaceToManyPlatformFunctionDeploymentFilter { - /** Filters to entities where every related entity matches. */ - every?: PlatformFunctionDeploymentFilter; - /** Filters to entities where no related entity matches. */ - none?: PlatformFunctionDeploymentFilter; - /** Filters to entities where at least one related entity matches. */ - some?: PlatformFunctionDeploymentFilter; -} -/** A filter to be used against many `PlatformResourceDefinition` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformNamespaceToManyPlatformResourceDefinitionFilter { +/** A filter to be used against many `PlatformRegistry` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformResourceInstallationToManyPlatformRegistryFilter { /** Filters to entities where every related entity matches. */ - every?: PlatformResourceDefinitionFilter; + every?: PlatformRegistryFilter; /** Filters to entities where no related entity matches. */ - none?: PlatformResourceDefinitionFilter; + none?: PlatformRegistryFilter; /** Filters to entities where at least one related entity matches. */ - some?: PlatformResourceDefinitionFilter; + some?: PlatformRegistryFilter; } /** A filter to be used against many `PlatformResource` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformNamespaceToManyPlatformResourceFilter { +export interface PlatformResourceInstallationToManyPlatformResourceFilter { /** Filters to entities where every related entity matches. */ every?: PlatformResourceFilter; /** Filters to entities where no related entity matches. */ @@ -6645,244 +13538,378 @@ export interface PlatformNamespaceToManyPlatformResourceFilter { /** Filters to entities where at least one related entity matches. */ some?: PlatformResourceFilter; } -/** A filter to be used against many `PlatformResourceInstallation` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformNamespaceToManyPlatformResourceInstallationFilter { - /** Filters to entities where every related entity matches. */ - every?: PlatformResourceInstallationFilter; - /** Filters to entities where no related entity matches. */ - none?: PlatformResourceInstallationFilter; - /** Filters to entities where at least one related entity matches. */ - some?: PlatformResourceInstallationFilter; +export interface PlatformResourceInstallationsInstallInput { + clientMutationId?: string; + definitionIds?: string[]; + name?: string; + namespaceId?: string; + newParams?: unknown; + slug?: string; } -/** A filter to be used against many `PlatformWebhookEndpoint` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformNamespaceToManyPlatformWebhookEndpointFilter { - /** Filters to entities where every related entity matches. */ - every?: PlatformWebhookEndpointFilter; - /** Filters to entities where no related entity matches. */ - none?: PlatformWebhookEndpointFilter; - /** Filters to entities where at least one related entity matches. */ - some?: PlatformWebhookEndpointFilter; +export interface PlatformResourceInstallationsRollbackInput { + clientMutationId?: string; + commitId?: string; + targetInstallationId?: string; } -/** A filter to be used against `PlatformResourceDeclaredCapacity` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformResourceDeclaredCapacityFilter { +export interface PlatformResourceInstallationsUninstallInput { + clientMutationId?: string; + targetInstallationId?: string; +} +export interface PlatformResourceInstallationsUpgradeInput { + clientMutationId?: string; + newParams?: unknown; + targetInstallationId?: string; +} +/** A filter to be used against `PlatformResourceObservedStorage` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformResourceObservedStorageFilter { /** Checks for all expressions in this list. */ - and?: PlatformResourceDeclaredCapacityFilter[]; - /** Filter by the object’s `cpuLimitMillicores` field. */ - cpuLimitMillicores?: BigIntFilter; - /** Filter by the object’s `cpuRequestMillicores` field. */ - cpuRequestMillicores?: BigIntFilter; + and?: PlatformResourceObservedStorageFilter[]; + /** Filter by the object’s `capacity` field. */ + capacity?: StringFilter; + /** Filter by the object’s `capacityBytes` field. */ + capacityBytes?: BigIntFilter; + /** Filter by the object’s `claimName` field. */ + claimName?: StringFilter; + /** Filter by the object’s `declaredStorageClass` field. */ + declaredStorageClass?: StringFilter; + /** Filter by the object’s `declaredStorageSizeBytes` field. */ + declaredStorageSizeBytes?: BigIntFilter; + /** Filter by the object’s `declaredStorageTotalBytes` field. */ + declaredStorageTotalBytes?: BigIntFilter; /** Filter by the object’s `installationId` field. */ installationId?: UUIDFilter; - /** Filter by the object’s `isTransient` field. */ - isTransient?: BooleanFilter; + /** Filter by the object’s `isBound` field. */ + isBound?: BooleanFilter; /** Filter by the object’s `kind` field. */ kind?: StringFilter; - /** Filter by the object’s `memoryLimitBytes` field. */ - memoryLimitBytes?: BigIntFilter; - /** Filter by the object’s `memoryRequestBytes` field. */ - memoryRequestBytes?: BigIntFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ - not?: PlatformResourceDeclaredCapacityFilter; + not?: PlatformResourceObservedStorageFilter; /** Checks for any expressions in this list. */ - or?: PlatformResourceDeclaredCapacityFilter[]; - /** Filter by the object’s `podCountMax` field. */ - podCountMax?: IntFilter; - /** Filter by the object’s `podCountMin` field. */ - podCountMin?: IntFilter; + or?: PlatformResourceObservedStorageFilter[]; + /** Filter by the object’s `phase` field. */ + phase?: StringFilter; + /** Filter by the object’s `requested` field. */ + requested?: StringFilter; + /** Filter by the object’s `requestedBytes` field. */ + requestedBytes?: BigIntFilter; + /** Filter by the object’s `resourceId` field. */ + resourceId?: UUIDFilter; + /** Filter by the object’s `resourceStatus` field. */ + resourceStatus?: StringFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `storageClass` field. */ + storageClass?: StringFilter; + /** Filter by the object’s `storageName` field. */ + storageName?: StringFilter; +} +/** Represents an update to a `PlatformResource`. Fields that are set will be updated. */ +export interface PlatformResourcePatch { + /** Freeform metadata for tooling and operational notes */ + annotations?: unknown; + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** Cumulative error count for this resource */ + errorCount?: number; + id?: string; + /** Pinned image reference this resource runs (registry host/repository:tag or @digest), written by promotion; NULL means spec.image decides */ + imageRef?: string; + /** Installation ("release") this resource belongs to (NULL for standalone resources) */ + installationId?: string; + /** Provider slugs (e.g. mailgun, postgres) associated with this resource. The UI uses this to auto-fill required_secrets and required_configs from integration_providers. */ + integrations?: string[]; + /** Resource kind: Deployment, StatefulSet, Job, Service, Ingress, Certificate, ClusterIssuer */ + kind?: string; + /** Key/value pairs for selecting and filtering resources */ + labels?: unknown; + /** Most recent provisioning or runtime error message */ + lastError?: string; + /** Last time a usage heartbeat was received for this resource (NULL until first heartbeat) */ + lastHeartbeatAt?: string; + /** Human-readable resource name */ + name?: string; + /** Namespace this resource belongs to (security boundary, maps to K8s namespace) */ + namespaceId?: string; + /** Config/secret realm this resource resolves against. Per key, the realm-specific atom wins over the NULL-realm default. NULL = the default lane. */ + realm?: string; + /** Embedded config requirements: array of (name, required, provider) tuples — extends the linked definition's requirements. provider is the integration slug this requirement belongs to, if any. */ + requiredConfigs?: ResourceRequirementInput[]; + /** Embedded secret requirements: array of (name, required, provider) tuples — extends the linked definition's requirements. provider is the integration slug this requirement belongs to, if any. */ + requiredSecrets?: ResourceRequirementInput[]; + /** Definition template this resource was created from (NULL for standalone resources) */ + resourceDefinitionId?: string; + /** URL-safe identifier, unique within (namespace_id, kind) */ + slug?: string; + /** Desired state — kind-specific configuration (image, ports, resources, etc.). Opaque to DB; validated by K8s. */ + spec?: unknown; + /** Resource lifecycle status: pending, provisioning, active, completed, failed, draining, deleting */ + status?: string; + /** Observed state from K8s — populated by handlers after reconciliation (service_url, clone_url, replicas, etc.) */ + statusObserved?: unknown; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; +} +/** A filter to be used against `PlatformResourceStatusCheck` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformResourceStatusCheckFilter { + /** Checks for all expressions in this list. */ + and?: PlatformResourceStatusCheckFilter[]; + /** Filter by the object’s `completedAt` field. */ + completedAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformResourceStatusCheckFilter; + /** Checks for any expressions in this list. */ + or?: PlatformResourceStatusCheckFilter[]; + /** Filter by the object’s `requestedAt` field. */ + requestedAt?: DatetimeFilter; + /** Filter by the object’s `requestedBy` field. */ + requestedBy?: UUIDFilter; + /** Filter by the object’s `resource` relation. */ + resource?: PlatformResourceFilter; + /** Filter by the object’s `resourceId` field. */ + resourceId?: UUIDFilter; + /** Filter by the object’s `result` field. */ + result?: JSONFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; +} +/** An input for mutations affecting `PlatformResourceStatusCheck` */ +export interface PlatformResourceStatusCheckInput { + /** When the check completed (NULL while pending/running) */ + completedAt?: string; + /** Unique status check identifier */ + id?: string; + /** When the check was requested */ + requestedAt?: string; + /** User who requested the check (NULL for system/scheduled) */ + requestedBy?: string; + /** Resource to check */ + resourceId: string; + /** Diagnostic snapshot: k8s_status, conditions, pod_logs_tail, events */ + result?: unknown; + /** Check lifecycle: pending, running, completed, failed */ + status?: string; +} +/** Represents an update to a `PlatformResourceStatusCheck`. Fields that are set will be updated. */ +export interface PlatformResourceStatusCheckPatch { + /** When the check completed (NULL while pending/running) */ + completedAt?: string; + /** Unique status check identifier */ + id?: string; + /** When the check was requested */ + requestedAt?: string; + /** User who requested the check (NULL for system/scheduled) */ + requestedBy?: string; + /** Resource to check */ + resourceId?: string; + /** Diagnostic snapshot: k8s_status, conditions, pod_logs_tail, events */ + result?: unknown; + /** Check lifecycle: pending, running, completed, failed */ + status?: string; +} +/** A filter to be used against many `PlatformResourceStatusCheck` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformResourceToManyPlatformResourceStatusCheckFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformResourceStatusCheckFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformResourceStatusCheckFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformResourceStatusCheckFilter; +} +/** A filter to be used against `PlatformResourceUsageLog` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformResourceUsageLogFilter { + /** Checks for all expressions in this list. */ + and?: PlatformResourceUsageLogFilter[]; + /** Filter by the object’s `cpuMillicores` field. */ + cpuMillicores?: BigIntFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `intervalSeconds` field. */ + intervalSeconds?: IntFilter; + /** Filter by the object’s `memoryBytes` field. */ + memoryBytes?: BigIntFilter; + /** Filter by the object’s `metrics` field. */ + metrics?: JSONFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformResourceUsageLogFilter; + /** Checks for any expressions in this list. */ + or?: PlatformResourceUsageLogFilter[]; + /** Filter by the object’s `resourceId` field. */ + resourceId?: UUIDFilter; + /** Filter by the object’s `sampledAt` field. */ + sampledAt?: DatetimeFilter; /** Filter by the object’s `source` field. */ source?: StringFilter; - /** Filter by the object’s `sourceId` field. */ - sourceId?: UUIDFilter; - /** Filter by the object’s `storageSizeBytes` field. */ - storageSizeBytes?: BigIntFilter; } -/** A filter to be used against `PlatformResourceDefinition` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformResourceDefinitionFilter { +/** An input for mutations affecting `PlatformResourceUsageLog` */ +export interface PlatformResourceUsageLogInput { + /** CPU gauge in millicores at sample time (NULL when unknown) */ + cpuMillicores?: string; + /** Unique sample identifier */ + id?: string; + /** Seconds covered by this sample — runtime is SUM(interval_seconds) */ + intervalSeconds: number; + /** Memory gauge in bytes at sample time (NULL when unknown) */ + memoryBytes?: string; + /** Structured gauges: replicas, pod counts, phases, and other producer-specific metrics */ + metrics?: unknown; + /** Namespace the measured workload runs in */ + namespaceId: string; + /** Resource this sample measures (NULL for namespace-grain catch-all rows) */ + resourceId?: string; + /** Sample timestamp (partition key) — end of the measured interval */ + sampledAt?: string; + /** Sample producer: self (workload heartbeat), observer (reconciler), or prometheus (namespace-grain usage collector) */ + source: string; +} +/** Represents an update to a `PlatformResourceUsageLog`. Fields that are set will be updated. */ +export interface PlatformResourceUsageLogPatch { + /** CPU gauge in millicores at sample time (NULL when unknown) */ + cpuMillicores?: string; + /** Unique sample identifier */ + id?: string; + /** Seconds covered by this sample — runtime is SUM(interval_seconds) */ + intervalSeconds?: number; + /** Memory gauge in bytes at sample time (NULL when unknown) */ + memoryBytes?: string; + /** Structured gauges: replicas, pod counts, phases, and other producer-specific metrics */ + metrics?: unknown; + /** Namespace the measured workload runs in */ + namespaceId?: string; + /** Resource this sample measures (NULL for namespace-grain catch-all rows) */ + resourceId?: string; + /** Sample timestamp (partition key) — end of the measured interval */ + sampledAt?: string; + /** Sample producer: self (workload heartbeat), observer (reconciler), or prometheus (namespace-grain usage collector) */ + source?: string; +} +/** A filter to be used against `PlatformResourceUsageSummary` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformResourceUsageSummaryFilter { /** Checks for all expressions in this list. */ - and?: PlatformResourceDefinitionFilter[]; - /** Filter by the object’s `annotations` field. */ - annotations?: JSONFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `defaultSpec` field. */ - defaultSpec?: JSONFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; + and?: PlatformResourceUsageSummaryFilter[]; + /** Filter by the object’s `date` field. */ + date?: DateFilter; + /** Filter by the object’s `gbSeconds` field. */ + gbSeconds?: BigFloatFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `integrations` field. */ - integrations?: StringListFilter; - /** Filter by the object’s `kind` field. */ - kind?: StringFilter; - /** Filter by the object’s `labels` field. */ - labels?: JSONFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: PlatformNamespaceFilter; + /** Filter by the object’s `maxCpuMillicores` field. */ + maxCpuMillicores?: BigIntFilter; + /** Filter by the object’s `maxMemoryBytes` field. */ + maxMemoryBytes?: BigIntFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ - not?: PlatformResourceDefinitionFilter; + not?: PlatformResourceUsageSummaryFilter; /** Checks for any expressions in this list. */ - or?: PlatformResourceDefinitionFilter[]; - /** Filter by the object’s `paramsSchema` field. */ - paramsSchema?: JSONFilter; - /** Filter by the object’s `platformResourcesByResourceDefinitionId` relation. */ - platformResourcesByResourceDefinitionId?: PlatformResourceDefinitionToManyPlatformResourceFilter; - /** `platformResourcesByResourceDefinitionId` exist. */ - platformResourcesByResourceDefinitionIdExist?: boolean; - /** Filter by the object’s `slug` field. */ - slug?: StringFilter; - /** Filter by the object’s `stepUpMinAge` field. */ - stepUpMinAge?: IntervalFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; + or?: PlatformResourceUsageSummaryFilter[]; + /** Filter by the object’s `resourceId` field. */ + resourceId?: UUIDFilter; + /** Filter by the object’s `runtimeSeconds` field. */ + runtimeSeconds?: BigIntFilter; + /** Filter by the object’s `sampleCount` field. */ + sampleCount?: IntFilter; } -/** An input for mutations affecting `PlatformResourceDefinition` */ -export interface PlatformResourceDefinitionInput { - /** Freeform metadata for tooling and operational notes */ - annotations?: unknown; - createdAt?: string; - createdBy?: string; - /** Template spec for creating resource instances of this kind */ - defaultSpec?: unknown; - /** What this resource definition provides */ - description?: string; +/** An input for mutations affecting `PlatformResourceUsageSummary` */ +export interface PlatformResourceUsageSummaryInput { + /** Day this summary covers (partition key) */ + date: string; + /** Memory usage for the day — SUM(memory_bytes * interval_seconds) normalized to GB-seconds */ + gbSeconds?: string; + /** Unique usage summary identifier */ id?: string; - /** Provider slugs (e.g. mailgun, postgres) associated with this resource definition. The UI uses this to auto-fill required_secrets and required_configs from integration_providers. */ - integrations?: string[]; - /** Resource kind: Deployment, StatefulSet, Job, Service, Ingress, Certificate, ClusterIssuer, or custom kinds */ - kind: string; - /** Key/value pairs for selecting and filtering definitions */ - labels?: unknown; - /** Human-readable definition name */ - name: string; - /** Namespace this definition belongs to (security boundary, maps to K8s namespace) */ + /** Maximum CPU gauge observed during the day (NULL when never reported) */ + maxCpuMillicores?: string; + /** Maximum memory gauge observed during the day (NULL when never reported) */ + maxMemoryBytes?: string; + /** Namespace the resource runs in */ namespaceId: string; - /** Declared parameter interface: [{key,label,type,default,required,min,max,options,group,order,bindings:[{path,template,scale,round,unit}]}]. Installation params are validated and compiled through these declarations; [] keeps the legacy raw spec overlay. */ - paramsSchema?: unknown; - /** Embedded config requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ - requiredConfigs?: ResourceRequirementInput[]; - /** Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ - requiredSecrets?: ResourceRequirementInput[]; - /** URL-safe identifier, unique within (namespace_id, kind) */ - slug: string; - /** Min age before DELETE of a resource of this kind requires step-up; NULL inherits the 6h default */ - stepUpMinAge?: IntervalInput; - updatedAt?: string; - updatedBy?: string; + /** Resource this summary covers (NULL for namespace-grain catch-all summaries) */ + resourceId?: string; + /** Total measured runtime for the day — SUM(interval_seconds) */ + runtimeSeconds?: string; + /** Number of raw samples aggregated into this summary */ + sampleCount?: number; } -/** Represents an update to a `PlatformResourceDefinition`. Fields that are set will be updated. */ -export interface PlatformResourceDefinitionPatch { - /** Freeform metadata for tooling and operational notes */ - annotations?: unknown; - createdAt?: string; - createdBy?: string; - /** Template spec for creating resource instances of this kind */ - defaultSpec?: unknown; - /** What this resource definition provides */ - description?: string; +/** Represents an update to a `PlatformResourceUsageSummary`. Fields that are set will be updated. */ +export interface PlatformResourceUsageSummaryPatch { + /** Day this summary covers (partition key) */ + date?: string; + /** Memory usage for the day — SUM(memory_bytes * interval_seconds) normalized to GB-seconds */ + gbSeconds?: string; + /** Unique usage summary identifier */ id?: string; - /** Provider slugs (e.g. mailgun, postgres) associated with this resource definition. The UI uses this to auto-fill required_secrets and required_configs from integration_providers. */ - integrations?: string[]; - /** Resource kind: Deployment, StatefulSet, Job, Service, Ingress, Certificate, ClusterIssuer, or custom kinds */ - kind?: string; - /** Key/value pairs for selecting and filtering definitions */ - labels?: unknown; - /** Human-readable definition name */ - name?: string; - /** Namespace this definition belongs to (security boundary, maps to K8s namespace) */ + /** Maximum CPU gauge observed during the day (NULL when never reported) */ + maxCpuMillicores?: string; + /** Maximum memory gauge observed during the day (NULL when never reported) */ + maxMemoryBytes?: string; + /** Namespace the resource runs in */ namespaceId?: string; - /** Declared parameter interface: [{key,label,type,default,required,min,max,options,group,order,bindings:[{path,template,scale,round,unit}]}]. Installation params are validated and compiled through these declarations; [] keeps the legacy raw spec overlay. */ - paramsSchema?: unknown; - /** Embedded config requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ - requiredConfigs?: ResourceRequirementInput[]; - /** Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ - requiredSecrets?: ResourceRequirementInput[]; - /** URL-safe identifier, unique within (namespace_id, kind) */ - slug?: string; - /** Min age before DELETE of a resource of this kind requires step-up; NULL inherits the 6h default */ - stepUpMinAge?: IntervalInput; - updatedAt?: string; - updatedBy?: string; -} -/** A filter to be used against many `PlatformResource` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformResourceDefinitionToManyPlatformResourceFilter { - /** Filters to entities where every related entity matches. */ - every?: PlatformResourceFilter; - /** Filters to entities where no related entity matches. */ - none?: PlatformResourceFilter; - /** Filters to entities where at least one related entity matches. */ - some?: PlatformResourceFilter; + /** Resource this summary covers (NULL for namespace-grain catch-all summaries) */ + resourceId?: string; + /** Total measured runtime for the day — SUM(interval_seconds) */ + runtimeSeconds?: string; + /** Number of raw samples aggregated into this summary */ + sampleCount?: number; } -/** A filter to be used against `PlatformResourceEvent` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformResourceEventFilter { - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; +/** A filter to be used against `PlatformResourceUtilization` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformResourceUtilizationFilter { /** Checks for all expressions in this list. */ - and?: PlatformResourceEventFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `eventType` field. */ - eventType?: StringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `message` field. */ - message?: StringFilter; - /** Filter by the object’s `metadata` field. */ - metadata?: JSONFilter; + and?: PlatformResourceUtilizationFilter[]; + /** Filter by the object’s `avgMemoryBytes` field. */ + avgMemoryBytes?: BigIntFilter; + /** Filter by the object’s `cpuLimitMillicores` field. */ + cpuLimitMillicores?: BigIntFilter; + /** Filter by the object’s `cpuPeakUtilization` field. */ + cpuPeakUtilization?: BigFloatFilter; + /** Filter by the object’s `cpuRequestHeadroomMillicores` field. */ + cpuRequestHeadroomMillicores?: BigIntFilter; + /** Filter by the object’s `cpuRequestMillicores` field. */ + cpuRequestMillicores?: BigIntFilter; + /** Filter by the object’s `date` field. */ + date?: DateFilter; + /** Filter by the object’s `gbSeconds` field. */ + gbSeconds?: BigFloatFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `maxCpuMillicores` field. */ + maxCpuMillicores?: BigIntFilter; + /** Filter by the object’s `maxMemoryBytes` field. */ + maxMemoryBytes?: BigIntFilter; + /** Filter by the object’s `memoryLimitBytes` field. */ + memoryLimitBytes?: BigIntFilter; + /** Filter by the object’s `memoryPeakUtilization` field. */ + memoryPeakUtilization?: BigFloatFilter; + /** Filter by the object’s `memoryRequestBytes` field. */ + memoryRequestBytes?: BigIntFilter; + /** Filter by the object’s `memoryRequestHeadroomBytes` field. */ + memoryRequestHeadroomBytes?: BigIntFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; /** Negates the expression. */ - not?: PlatformResourceEventFilter; + not?: PlatformResourceUtilizationFilter; /** Checks for any expressions in this list. */ - or?: PlatformResourceEventFilter[]; + or?: PlatformResourceUtilizationFilter[]; + /** Filter by the object’s `replicas` field. */ + replicas?: IntFilter; /** Filter by the object’s `resourceId` field. */ resourceId?: UUIDFilter; + /** Filter by the object’s `runtimeSeconds` field. */ + runtimeSeconds?: BigIntFilter; + /** Filter by the object’s `sampleCount` field. */ + sampleCount?: IntFilter; } -/** An input for mutations affecting `PlatformResourceEvent` */ -export interface PlatformResourceEventInput { - /** User who triggered this event (NULL for system/automated) */ - actorId?: string; - /** Event timestamp (partition key) */ - createdAt?: string; - /** Event type: provisioned, provisioning, updated, failed, deprovisioned, health_check */ - eventType: string; - /** Unique event identifier */ - id?: string; - /** Human-readable description of the event */ - message?: string; - /** Structured context (old/new values, error details, etc.) */ - metadata?: unknown; - /** Resource this event belongs to */ - resourceId: string; -} -/** Represents an update to a `PlatformResourceEvent`. Fields that are set will be updated. */ -export interface PlatformResourceEventPatch { - /** User who triggered this event (NULL for system/automated) */ - actorId?: string; - /** Event timestamp (partition key) */ - createdAt?: string; - /** Event type: provisioned, provisioning, updated, failed, deprovisioned, health_check */ - eventType?: string; - /** Unique event identifier */ - id?: string; - /** Human-readable description of the event */ - message?: string; - /** Structured context (old/new values, error details, etc.) */ - metadata?: unknown; - /** Resource this event belongs to */ - resourceId?: string; -} -/** A filter to be used against `PlatformResource` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformResourceFilter { +/** A filter to be used against `PlatformResourcesHealth` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformResourcesHealthFilter { /** Checks for all expressions in this list. */ - and?: PlatformResourceFilter[]; + and?: PlatformResourcesHealthFilter[]; /** Filter by the object’s `annotations` field. */ annotations?: JSONFilter; /** Filter by the object’s `cpuLimitMillicores` field. */ @@ -6893,14 +13920,14 @@ export interface PlatformResourceFilter { createdAt?: DatetimeFilter; /** Filter by the object’s `createdBy` field. */ createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `errorCount` field. */ errorCount?: IntFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `installation` relation. */ - installation?: PlatformResourceInstallationFilter; - /** A related `installation` exists. */ - installationExists?: boolean; + /** Filter by the object’s `imageRef` field. */ + imageRef?: StringFilter; /** Filter by the object’s `installationId` field. */ installationId?: UUIDFilter; /** Filter by the object’s `integrations` field. */ @@ -6919,26 +13946,16 @@ export interface PlatformResourceFilter { memoryRequestBytes?: BigIntFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: PlatformNamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ - not?: PlatformResourceFilter; + not?: PlatformResourcesHealthFilter; /** Checks for any expressions in this list. */ - or?: PlatformResourceFilter[]; - /** Filter by the object’s `platformResourceStatusChecksByResourceId` relation. */ - platformResourceStatusChecksByResourceId?: PlatformResourceToManyPlatformResourceStatusCheckFilter; - /** `platformResourceStatusChecksByResourceId` exist. */ - platformResourceStatusChecksByResourceIdExist?: boolean; + or?: PlatformResourcesHealthFilter[]; /** Filter by the object’s `realm` field. */ realm?: StringFilter; /** Filter by the object’s `replicas` field. */ replicas?: IntFilter; - /** Filter by the object’s `resourceDefinition` relation. */ - resourceDefinition?: PlatformResourceDefinitionFilter; - /** A related `resourceDefinition` exists. */ - resourceDefinitionExists?: boolean; /** Filter by the object’s `resourceDefinitionId` field. */ resourceDefinitionId?: UUIDFilter; /** Filter by the object’s `slug` field. */ @@ -6947,790 +13964,1889 @@ export interface PlatformResourceFilter { spec?: JSONFilter; /** Filter by the object’s `status` field. */ status?: StringFilter; + /** Filter by the object’s `statusDetail` field. */ + statusDetail?: StringFilter; /** Filter by the object’s `statusObserved` field. */ statusObserved?: JSONFilter; /** Filter by the object’s `storageClass` field. */ storageClass?: StringFilter; /** Filter by the object’s `storageSizeBytes` field. */ storageSizeBytes?: BigIntFilter; + /** Filter by the object’s `storageTotalBytes` field. */ + storageTotalBytes?: BigIntFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} +/** A filter to be used against `PlatformResourcesRequirementsState` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformResourcesRequirementsStateFilter { + /** Checks for all expressions in this list. */ + and?: PlatformResourcesRequirementsStateFilter[]; + /** Filter by the object’s `configHash` field. */ + configHash?: StringFilter; + /** Filter by the object’s `configObjectName` field. */ + configObjectName?: StringFilter; + /** Negates the expression. */ + not?: PlatformResourcesRequirementsStateFilter; + /** Checks for any expressions in this list. */ + or?: PlatformResourcesRequirementsStateFilter[]; + /** Filter by the object’s `requirementsHash` field. */ + requirementsHash?: StringFilter; + /** Filter by the object’s `resourceId` field. */ + resourceId?: UUIDFilter; + /** Filter by the object’s `secretsHash` field. */ + secretsHash?: StringFilter; + /** Filter by the object’s `secretsObjectName` field. */ + secretsObjectName?: StringFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; +} +/** A filter to be used against `PlatformResourcesResolvedRequirement` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformResourcesResolvedRequirementFilter { + /** Checks for all expressions in this list. */ + and?: PlatformResourcesResolvedRequirementFilter[]; + /** Filter by the object’s `atomId` field. */ + atomId?: UUIDFilter; + /** Filter by the object’s `configObjectName` field. */ + configObjectName?: StringFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformResourcesResolvedRequirementFilter; + /** Checks for any expressions in this list. */ + or?: PlatformResourcesResolvedRequirementFilter[]; + /** Filter by the object’s `present` field. */ + present?: BooleanFilter; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; + /** Filter by the object’s `required` field. */ + required?: BooleanFilter; + /** Filter by the object’s `requirementKind` field. */ + requirementKind?: StringFilter; + /** Filter by the object’s `resourceId` field. */ + resourceId?: UUIDFilter; + /** Filter by the object’s `secretsObjectName` field. */ + secretsObjectName?: StringFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; +} +/** A filter to be used against `PlatformWebhookEndpoint` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformWebhookEndpointFilter { + /** Filter by the object’s `active` field. */ + active?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: PlatformWebhookEndpointFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `functionDefinition` relation. */ + functionDefinition?: PlatformFunctionDefinitionFilter; + /** Filter by the object’s `functionDefinitionId` field. */ + functionDefinitionId?: UUIDFilter; + /** Filter by the object’s `host` field. */ + host?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: PlatformNamespaceFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformWebhookEndpointFilter; + /** Checks for any expressions in this list. */ + or?: PlatformWebhookEndpointFilter[]; + /** Filter by the object’s `path` field. */ + path?: StringFilter; + /** Filter by the object’s `platformWebhookEventsByEndpointId` relation. */ + platformWebhookEventsByEndpointId?: PlatformWebhookEndpointToManyPlatformWebhookEventFilter; + /** `platformWebhookEventsByEndpointId` exist. */ + platformWebhookEventsByEndpointIdExist?: boolean; + /** Filter by the object’s `provider` field. */ + provider?: StringFilter; + /** Filter by the object’s `replayWindowSeconds` field. */ + replayWindowSeconds?: IntFilter; + /** Filter by the object’s `signingSecretName` field. */ + signingSecretName?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} +/** An input for mutations affecting `PlatformWebhookEndpoint` */ +export interface PlatformWebhookEndpointInput { + /** Whether this endpoint currently accepts deliveries */ + active?: boolean; + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** Same-scope function definition invoked on delivery. The function must list the webhook channel in access_channels. */ + functionDefinitionId: string; + /** Inbound Host header this endpoint matches (normalized lower-case, no port) */ + host: string; + id?: string; + /** Namespace that owns this endpoint and contains its signing secret */ + namespaceId: string; + /** Exact request path this endpoint matches (e.g. /webhooks/stripe) */ + path: string; + /** Verification scheme: generic (HMAC), stripe, or github */ + provider?: string; + /** Maximum age (seconds) of a signed provider timestamp before the delivery is rejected as a replay */ + replayWindowSeconds?: number; + /** Name of the signing secret in the infra secrets store. The gateway resolves the value through the generated secrets getter — the plaintext secret is never stored here. */ + signingSecretName: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; +} +/** Represents an update to a `PlatformWebhookEndpoint`. Fields that are set will be updated. */ +export interface PlatformWebhookEndpointPatch { + /** Whether this endpoint currently accepts deliveries */ + active?: boolean; + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** Same-scope function definition invoked on delivery. The function must list the webhook channel in access_channels. */ + functionDefinitionId?: string; + /** Inbound Host header this endpoint matches (normalized lower-case, no port) */ + host?: string; + id?: string; + /** Namespace that owns this endpoint and contains its signing secret */ + namespaceId?: string; + /** Exact request path this endpoint matches (e.g. /webhooks/stripe) */ + path?: string; + /** Verification scheme: generic (HMAC), stripe, or github */ + provider?: string; + /** Maximum age (seconds) of a signed provider timestamp before the delivery is rejected as a replay */ + replayWindowSeconds?: number; + /** Name of the signing secret in the infra secrets store. The gateway resolves the value through the generated secrets getter — the plaintext secret is never stored here. */ + signingSecretName?: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; +} +/** A filter to be used against many `PlatformWebhookEvent` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformWebhookEndpointToManyPlatformWebhookEventFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformWebhookEventFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformWebhookEventFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformWebhookEventFilter; +} +/** A filter to be used against `PlatformWebhookEvent` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformWebhookEventFilter { + /** Checks for all expressions in this list. */ + and?: PlatformWebhookEventFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `endpoint` relation. */ + endpoint?: PlatformWebhookEndpointFilter; + /** Filter by the object’s `endpointId` field. */ + endpointId?: UUIDFilter; + /** Filter by the object’s `error` field. */ + error?: StringFilter; + /** Filter by the object’s `externalEventId` field. */ + externalEventId?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `invocationCreatedAt` field. */ + invocationCreatedAt?: DatetimeFilter; + /** Filter by the object’s `invocationId` field. */ + invocationId?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformWebhookEventFilter; + /** Checks for any expressions in this list. */ + or?: PlatformWebhookEventFilter[]; + /** Filter by the object’s `payload` field. */ + payload?: JSONFilter; + /** Filter by the object’s `provider` field. */ + provider?: StringFilter; + /** Filter by the object’s `providerTimestamp` field. */ + providerTimestamp?: DatetimeFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; } -/** An input for mutations affecting `PlatformResource` */ -export interface PlatformResourceInput { - /** Freeform metadata for tooling and operational notes */ - annotations?: unknown; +/** An input for mutations affecting `PlatformWebhookEvent` */ +export interface PlatformWebhookEventInput { createdAt?: string; - createdBy?: string; - /** Cumulative error count for this resource */ - errorCount?: number; + /** Endpoint that accepted this delivery */ + endpointId: string; + /** Failure detail when status = failed */ + error?: string; + /** Provider-supplied delivery/event id used for idempotent dedup */ + externalEventId: string; id?: string; - /** Installation ("release") this resource belongs to (NULL for standalone resources) */ - installationId?: string; - /** Provider slugs (e.g. mailgun, postgres) associated with this resource. The UI uses this to auto-fill required_secrets and required_configs from integration_providers. */ - integrations?: string[]; - /** Resource kind: Deployment, StatefulSet, Job, Service, Ingress, Certificate, ClusterIssuer */ - kind: string; - /** Key/value pairs for selecting and filtering resources */ - labels?: unknown; - /** Most recent provisioning or runtime error message */ - lastError?: string; - /** Last time a usage heartbeat was received for this resource (NULL until first heartbeat) */ - lastHeartbeatAt?: string; - /** Human-readable resource name */ - name: string; - /** Namespace this resource belongs to (security boundary, maps to K8s namespace) */ - namespaceId: string; - /** Config/secret realm this resource resolves against. Per key, the realm-specific atom wins over the NULL-realm default. NULL = the default lane. */ - realm?: string; - /** Embedded config requirements: array of (name, required, provider) tuples — extends the linked definition's requirements. provider is the integration slug this requirement belongs to, if any. */ - requiredConfigs?: ResourceRequirementInput[]; - /** Embedded secret requirements: array of (name, required, provider) tuples — extends the linked definition's requirements. provider is the integration slug this requirement belongs to, if any. */ - requiredSecrets?: ResourceRequirementInput[]; - /** Definition template this resource was created from (NULL for standalone resources) */ - resourceDefinitionId?: string; - /** URL-safe identifier, unique within (namespace_id, kind) */ - slug: string; - /** Desired state — kind-specific configuration (image, ports, resources, etc.). Opaque to DB; validated by K8s. */ - spec?: unknown; - /** Resource lifecycle status: pending, provisioning, active, completed, failed, draining, deleting */ + /** created_at of the enqueued invocation (partition key companion to invocation_id) */ + invocationCreatedAt?: string; + /** Pending function invocation enqueued for this delivery (NULL until enqueued) */ + invocationId?: string; + /** Parsed delivery payload (parsed only after signature verification over the exact raw bytes) */ + payload?: unknown; + /** Provider that produced this delivery (copied from the endpoint at acceptance) */ + provider: string; + /** Signed provider timestamp used for replay-window validation (NULL when the provider supplies none) */ + providerTimestamp?: string; + /** Acceptance lifecycle: accepted, processed, failed */ status?: string; - /** Observed state from K8s — populated by handlers after reconciliation (service_url, clone_url, replicas, etc.) */ - statusObserved?: unknown; updatedAt?: string; - updatedBy?: string; } -/** A filter to be used against `PlatformResourceInstallation` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformResourceInstallationFilter { +/** Represents an update to a `PlatformWebhookEvent`. Fields that are set will be updated. */ +export interface PlatformWebhookEventPatch { + createdAt?: string; + /** Endpoint that accepted this delivery */ + endpointId?: string; + /** Failure detail when status = failed */ + error?: string; + /** Provider-supplied delivery/event id used for idempotent dedup */ + externalEventId?: string; + id?: string; + /** created_at of the enqueued invocation (partition key companion to invocation_id) */ + invocationCreatedAt?: string; + /** Pending function invocation enqueued for this delivery (NULL until enqueued) */ + invocationId?: string; + /** Parsed delivery payload (parsed only after signature verification over the exact raw bytes) */ + payload?: unknown; + /** Provider that produced this delivery (copied from the endpoint at acceptance) */ + provider?: string; + /** Signed provider timestamp used for replay-window validation (NULL when the provider supplies none) */ + providerTimestamp?: string; + /** Acceptance lifecycle: accepted, processed, failed */ + status?: string; + updatedAt?: string; +} +/** A filter to be used against `ProposalComment` object types. All fields are combined with a logical ‘and.’ */ +export interface ProposalCommentFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: PlatformResourceInstallationFilter[]; - /** Filter by the object’s `commitId` field. */ - commitId?: UUIDFilter; + and?: ProposalCommentFilter[]; + /** Filter by the object’s `attachments` field. */ + attachments?: ConstructiveInternalTypeUploadListFilter; + /** Filter by the object’s `body` field. */ + body?: StringTrgmFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `createdBy` field. */ createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `embedding` field. */ + embedding?: VectorFilter; + /** Filter by the object’s `embeddingUpdatedAt` field. */ + embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: PlatformNamespaceFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; + /** Filter by the object’s `line` field. */ + line?: IntFilter; /** Negates the expression. */ - not?: PlatformResourceInstallationFilter; + not?: ProposalCommentFilter; /** Checks for any expressions in this list. */ - or?: PlatformResourceInstallationFilter[]; - /** Filter by the object’s `params` field. */ - params?: JSONFilter; - /** Filter by the object’s `platformResourcesByInstallationId` relation. */ - platformResourcesByInstallationId?: PlatformResourceInstallationToManyPlatformResourceFilter; - /** `platformResourcesByInstallationId` exist. */ - platformResourcesByInstallationIdExist?: boolean; - /** Filter by the object’s `revision` field. */ - revision?: IntFilter; - /** Filter by the object’s `slug` field. */ - slug?: StringFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `storeId` field. */ - storeId?: UUIDFilter; + or?: ProposalCommentFilter[]; + /** Filter by the object’s `outdatedAt` field. */ + outdatedAt?: DatetimeFilter; + /** Filter by the object’s `path` field. */ + path?: StringTrgmFilter; + /** Filter by the object’s `proposal` relation. */ + proposal?: ProposalFilter; + /** Filter by the object’s `proposalId` field. */ + proposalId?: UUIDFilter; + /** Filter by the object’s `proposalReactionsByCommentId` relation. */ + proposalReactionsByCommentId?: ProposalCommentToManyProposalReactionFilter; + /** `proposalReactionsByCommentId` exist. */ + proposalReactionsByCommentIdExist?: boolean; + /** Filter by the object’s `resolvedAt` field. */ + resolvedAt?: DatetimeFilter; + /** Filter by the object’s `search` field. */ + search?: FullTextFilter; + /** TRGM search on the `body` column. */ + trgmBody?: TrgmSearchInput; + /** TRGM search on the `path` column. */ + trgmPath?: TrgmSearchInput; + /** TSV search on the `search` column. */ + tsvSearch?: string; + /** + * Composite unified search. Provide a search string and it will be dispatched to + * all text-compatible search algorithms (tsvector, BM25, pg_trgm) + * simultaneously. When the LLM plugin is active, pgvector also participates via + * auto-embedding. Rows matching ANY algorithm are returned. All matching score + * fields are populated. + */ + unifiedSearch?: string; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; /** Filter by the object’s `updatedBy` field. */ updatedBy?: UUIDFilter; -} -/** An input for mutations affecting `PlatformResourceInstallation` */ -export interface PlatformResourceInstallationInput { - /** Infra store commit for the current params (stamped by the versioned trigger on every write) */ - commitId?: string; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** VECTOR search on the `embedding` column. */ + vectorEmbedding?: VectorNearbyInput; +} +/** An input for mutations affecting `ProposalComment` */ +export interface ProposalCommentInput { + /** Actor who wrote the comment; NULL only when no human actor was proven */ + actorId?: string; + /** Files referenced by the comment body, in the order they were attached */ + attachments?: ConstructiveInternalTypeUpload[]; + /** Comment text */ + body: string; createdAt?: string; createdBy?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + embedding?: number[]; + /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + embeddingText?: string; id?: string; - /** Human-readable release name */ - name: string; - /** Namespace this installation belongs to (security boundary) */ - namespaceId: string; - /** Release parameters — the readily-cached head; history lives in the infra store. Never contains secret/config literals. */ - params?: unknown; - /** Monotonic release revision counter: install starts at 1, bumped on every upgrade/rollback */ - revision?: number; - /** URL-safe release identifier, unique within the namespace; the release's path in the infra tree is [resource_installation, slug] */ - slug: string; - /** Installation lifecycle status: pending, installed, uninstalled, failed */ - status?: string; - /** Infra merkle store holding this installation's history (stamped by the versioned trigger) */ - storeId?: string; + /** Line within path the comment is anchored to */ + line?: number; + /** When the anchored range this comment pointed at vanished from the diff */ + outdatedAt?: string; + /** File the comment is anchored to (NULL for a comment on the proposal) */ + path?: string; + /** Proposal being commented on */ + proposalId: string; + /** When this comment was marked resolved */ + resolvedAt?: string; updatedAt?: string; updatedBy?: string; + updatedByPrincipal?: string; } -/** Represents an update to a `PlatformResourceInstallation`. Fields that are set will be updated. */ -export interface PlatformResourceInstallationPatch { - /** Infra store commit for the current params (stamped by the versioned trigger on every write) */ - commitId?: string; +/** Represents an update to a `ProposalComment`. Fields that are set will be updated. */ +export interface ProposalCommentPatch { + /** Actor who wrote the comment; NULL only when no human actor was proven */ + actorId?: string; + /** Files referenced by the comment body, in the order they were attached */ + attachments?: ConstructiveInternalTypeUpload[]; + /** Comment text */ + body?: string; createdAt?: string; createdBy?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string; + embedding?: number[]; + /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + embeddingText?: string; id?: string; - /** Human-readable release name */ - name?: string; - /** Namespace this installation belongs to (security boundary) */ - namespaceId?: string; - /** Release parameters — the readily-cached head; history lives in the infra store. Never contains secret/config literals. */ - params?: unknown; - /** Monotonic release revision counter: install starts at 1, bumped on every upgrade/rollback */ - revision?: number; - /** URL-safe release identifier, unique within the namespace; the release's path in the infra tree is [resource_installation, slug] */ - slug?: string; - /** Installation lifecycle status: pending, installed, uninstalled, failed */ - status?: string; - /** Infra merkle store holding this installation's history (stamped by the versioned trigger) */ - storeId?: string; + /** Line within path the comment is anchored to */ + line?: number; + /** When the anchored range this comment pointed at vanished from the diff */ + outdatedAt?: string; + /** File the comment is anchored to (NULL for a comment on the proposal) */ + path?: string; + /** Proposal being commented on */ + proposalId?: string; + /** When this comment was marked resolved */ + resolvedAt?: string; updatedAt?: string; updatedBy?: string; + updatedByPrincipal?: string; } -/** A filter to be used against many `PlatformResource` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformResourceInstallationToManyPlatformResourceFilter { +/** A filter to be used against many `ProposalReaction` object types. All fields are combined with a logical ‘and.’ */ +export interface ProposalCommentToManyProposalReactionFilter { /** Filters to entities where every related entity matches. */ - every?: PlatformResourceFilter; + every?: ProposalReactionFilter; /** Filters to entities where no related entity matches. */ - none?: PlatformResourceFilter; + none?: ProposalReactionFilter; /** Filters to entities where at least one related entity matches. */ - some?: PlatformResourceFilter; -} -export interface PlatformResourceInstallationsInstallInput { - clientMutationId?: string; - definitionIds?: string[]; - name?: string; - namespaceId?: string; - newParams?: unknown; - slug?: string; -} -export interface PlatformResourceInstallationsRollbackInput { - clientMutationId?: string; - commitId?: string; - targetInstallationId?: string; -} -export interface PlatformResourceInstallationsUninstallInput { - clientMutationId?: string; - targetInstallationId?: string; + some?: ProposalReactionFilter; } -export interface PlatformResourceInstallationsUpgradeInput { - clientMutationId?: string; - newParams?: unknown; - targetInstallationId?: string; +/** A filter to be used against `ProposalFileView` object types. All fields are combined with a logical ‘and.’ */ +export interface ProposalFileViewFilter { + /** Checks for all expressions in this list. */ + and?: ProposalFileViewFilter[]; + /** Filter by the object’s `blobSha` field. */ + blobSha?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: ProposalFileViewFilter; + /** Checks for any expressions in this list. */ + or?: ProposalFileViewFilter[]; + /** Filter by the object’s `path` field. */ + path?: StringFilter; + /** Filter by the object’s `proposal` relation. */ + proposal?: ProposalFilter; + /** Filter by the object’s `proposalId` field. */ + proposalId?: UUIDFilter; + /** Filter by the object’s `reviewerId` field. */ + reviewerId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** Filter by the object’s `viewedAt` field. */ + viewedAt?: DatetimeFilter; +} +/** An input for mutations affecting `ProposalFileView` */ +export interface ProposalFileViewInput { + /** Blob the reviewer read, which is what makes the mark survive a rebase or go stale */ + blobSha: string; + createdAt?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + id?: string; + /** Path of the file as the diff named it */ + path: string; + /** Proposal the file belongs to */ + proposalId: string; + /** Actor who read the file */ + reviewerId: string; + updatedAt?: string; + updatedByPrincipal?: string; + /** When the file was marked read */ + viewedAt?: string; +} +/** Represents an update to a `ProposalFileView`. Fields that are set will be updated. */ +export interface ProposalFileViewPatch { + /** Blob the reviewer read, which is what makes the mark survive a rebase or go stale */ + blobSha?: string; + createdAt?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string; + id?: string; + /** Path of the file as the diff named it */ + path?: string; + /** Proposal the file belongs to */ + proposalId?: string; + /** Actor who read the file */ + reviewerId?: string; + updatedAt?: string; + updatedByPrincipal?: string; + /** When the file was marked read */ + viewedAt?: string; } -/** Represents an update to a `PlatformResource`. Fields that are set will be updated. */ -export interface PlatformResourcePatch { - /** Freeform metadata for tooling and operational notes */ - annotations?: unknown; +/** A filter to be used against `Proposal` object types. All fields are combined with a logical ‘and.’ */ +export interface ProposalFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: ProposalFilter[]; + /** Filter by the object’s `body` field. */ + body?: StringTrgmFilter; + /** Filter by the object’s `builds` relation. */ + builds?: ProposalToManyBuildFilter; + /** `builds` exist. */ + buildsExist?: boolean; + /** Filter by the object’s `childProposals` relation. */ + childProposals?: ProposalToManyProposalFilter; + /** `childProposals` exist. */ + childProposalsExist?: boolean; + /** Filter by the object’s `closedReason` field. */ + closedReason?: StringTrgmFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `decidedAt` field. */ + decidedAt?: DatetimeFilter; + /** Filter by the object’s `dueAt` field. */ + dueAt?: DatetimeFilter; + /** Filter by the object’s `embedding` field. */ + embedding?: VectorFilter; + /** Filter by the object’s `embeddingUpdatedAt` field. */ + embeddingUpdatedAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringTrgmFilter; + /** Filter by the object’s `labels` field. */ + labels?: StringListFilter; + /** Filter by the object’s `mergeCommit` field. */ + mergeCommit?: StringTrgmFilter; + /** Filter by the object’s `mergeMethod` field. */ + mergeMethod?: StringTrgmFilter; + /** Filter by the object’s `mergeRequestedAt` field. */ + mergeRequestedAt?: DatetimeFilter; + /** Filter by the object’s `mergedAt` field. */ + mergedAt?: DatetimeFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Negates the expression. */ + not?: ProposalFilter; + /** Checks for any expressions in this list. */ + or?: ProposalFilter[]; + /** Filter by the object’s `parent` relation. */ + parent?: ProposalFilter; + /** A related `parent` exists. */ + parentExists?: boolean; + /** Filter by the object’s `parentId` field. */ + parentId?: UUIDFilter; + /** Filter by the object’s `priority` field. */ + priority?: BigFloatFilter; + /** Filter by the object’s `proposalComments` relation. */ + proposalComments?: ProposalToManyProposalCommentFilter; + /** `proposalComments` exist. */ + proposalCommentsExist?: boolean; + /** Filter by the object’s `proposalFileViews` relation. */ + proposalFileViews?: ProposalToManyProposalFileViewFilter; + /** `proposalFileViews` exist. */ + proposalFileViewsExist?: boolean; + /** Filter by the object’s `proposalReactions` relation. */ + proposalReactions?: ProposalToManyProposalReactionFilter; + /** `proposalReactions` exist. */ + proposalReactionsExist?: boolean; + /** Filter by the object’s `proposalReviews` relation. */ + proposalReviews?: ProposalToManyProposalReviewFilter; + /** `proposalReviews` exist. */ + proposalReviewsExist?: boolean; + /** Filter by the object’s `proposalsChunksByProposalsId` relation. */ + proposalsChunksByProposalsId?: ProposalToManyProposalsChunkFilter; + /** `proposalsChunksByProposalsId` exist. */ + proposalsChunksByProposalsIdExist?: boolean; + /** Filter by the object’s `repository` relation. */ + repository?: RepositoryFilter; + /** Filter by the object’s `repositoryId` field. */ + repositoryId?: UUIDFilter; + /** Filter by the object’s `resolution` field. */ + resolution?: StringTrgmFilter; + /** Filter by the object’s `search` field. */ + search?: FullTextFilter; + /** Filter by the object’s `sourceRef` field. */ + sourceRef?: StringTrgmFilter; + /** Filter by the object’s `status` field. */ + status?: StringTrgmFilter; + /** Filter by the object’s `targetRef` field. */ + targetRef?: StringTrgmFilter; + /** Filter by the object’s `title` field. */ + title?: StringTrgmFilter; + /** TRGM search on the `body` column. */ + trgmBody?: TrgmSearchInput; + /** TRGM search on the `closed_reason` column. */ + trgmClosedReason?: TrgmSearchInput; + /** TRGM search on the `kind` column. */ + trgmKind?: TrgmSearchInput; + /** TRGM search on the `merge_commit` column. */ + trgmMergeCommit?: TrgmSearchInput; + /** TRGM search on the `merge_method` column. */ + trgmMergeMethod?: TrgmSearchInput; + /** TRGM search on the `resolution` column. */ + trgmResolution?: TrgmSearchInput; + /** TRGM search on the `source_ref` column. */ + trgmSourceRef?: TrgmSearchInput; + /** TRGM search on the `status` column. */ + trgmStatus?: TrgmSearchInput; + /** TRGM search on the `target_ref` column. */ + trgmTargetRef?: TrgmSearchInput; + /** TRGM search on the `title` column. */ + trgmTitle?: TrgmSearchInput; + /** TSV search on the `search` column. */ + tsvSearch?: string; + /** + * Composite unified search. Provide a search string and it will be dispatched to + * all text-compatible search algorithms (tsvector, BM25, pg_trgm) + * simultaneously. When the LLM plugin is active, pgvector also participates via + * auto-embedding. Rows matching ANY algorithm are returned. All matching score + * fields are populated. + */ + unifiedSearch?: string; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** VECTOR search on the `embedding` column. */ + vectorEmbedding?: VectorNearbyInput; +} +/** An input for mutations affecting `Proposal` */ +export interface ProposalInput { + /** Actor who opened the proposal; NULL only when no human actor was proven */ + actorId?: string; + /** Description of the proposed change */ + body?: string; + /** Why this was closed: completed, not_planned, duplicate, superseded */ + closedReason?: string; + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** When the decision was taken (NULL while the question is open) */ + decidedAt?: string; + /** When this is wanted by (NULL when nothing is promised) */ + dueAt?: string; + embedding?: number[]; + /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + embeddingText?: string; + id?: string; + /** issue (a report or plan), change (merge one ref into another), discussion (an open question), decision (a question answered) */ + kind?: string; + /** Labels for filtering and grouping (a board is a query over kind, status and these) */ + labels?: string[]; + /** Commit the merge produced */ + mergeCommit?: string; + /** How to merge when eligible: merge, squash, rebase */ + mergeMethod?: string; + /** When merge-when-green was requested (NULL when no merge is pending) */ + mergeRequestedAt?: string; + /** When the merge completed */ + mergedAt?: string; + /** Review detail (reviewers, labels, checks summary) */ + metadata?: unknown; + /** Proposal this one hangs under: an epic, or the discussion a decision came out of */ + parentId?: string; + /** Manual order within a board column, sparse so an insert between two rows moves one row (NULL when unranked) */ + priority?: string; + /** Repository this proposal is against */ + repositoryId: string; + /** What was decided (for kind = decision; NULL while the question is open) */ + resolution?: string; + /** Ref holding the proposed commits (NULL unless kind is change) */ + sourceRef?: string; + /** Lifecycle state: draft, open, merged, closed */ + status?: string; + /** Ref the commits are proposed for (NULL unless kind is change) */ + targetRef?: string; + /** What this proposal does */ + title: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; +} +/** Represents an update to a `Proposal`. Fields that are set will be updated. */ +export interface ProposalPatch { + /** Actor who opened the proposal; NULL only when no human actor was proven */ + actorId?: string; + /** Description of the proposed change */ + body?: string; + /** Why this was closed: completed, not_planned, duplicate, superseded */ + closedReason?: string; createdAt?: string; createdBy?: string; - /** Cumulative error count for this resource */ - errorCount?: number; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string; + /** When the decision was taken (NULL while the question is open) */ + decidedAt?: string; + /** When this is wanted by (NULL when nothing is promised) */ + dueAt?: string; + embedding?: number[]; + /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + embeddingText?: string; id?: string; - /** Installation ("release") this resource belongs to (NULL for standalone resources) */ - installationId?: string; - /** Provider slugs (e.g. mailgun, postgres) associated with this resource. The UI uses this to auto-fill required_secrets and required_configs from integration_providers. */ - integrations?: string[]; - /** Resource kind: Deployment, StatefulSet, Job, Service, Ingress, Certificate, ClusterIssuer */ + /** issue (a report or plan), change (merge one ref into another), discussion (an open question), decision (a question answered) */ kind?: string; - /** Key/value pairs for selecting and filtering resources */ - labels?: unknown; - /** Most recent provisioning or runtime error message */ - lastError?: string; - /** Last time a usage heartbeat was received for this resource (NULL until first heartbeat) */ - lastHeartbeatAt?: string; - /** Human-readable resource name */ - name?: string; - /** Namespace this resource belongs to (security boundary, maps to K8s namespace) */ - namespaceId?: string; - /** Config/secret realm this resource resolves against. Per key, the realm-specific atom wins over the NULL-realm default. NULL = the default lane. */ - realm?: string; - /** Embedded config requirements: array of (name, required, provider) tuples — extends the linked definition's requirements. provider is the integration slug this requirement belongs to, if any. */ - requiredConfigs?: ResourceRequirementInput[]; - /** Embedded secret requirements: array of (name, required, provider) tuples — extends the linked definition's requirements. provider is the integration slug this requirement belongs to, if any. */ - requiredSecrets?: ResourceRequirementInput[]; - /** Definition template this resource was created from (NULL for standalone resources) */ - resourceDefinitionId?: string; - /** URL-safe identifier, unique within (namespace_id, kind) */ - slug?: string; - /** Desired state — kind-specific configuration (image, ports, resources, etc.). Opaque to DB; validated by K8s. */ - spec?: unknown; - /** Resource lifecycle status: pending, provisioning, active, completed, failed, draining, deleting */ + /** Labels for filtering and grouping (a board is a query over kind, status and these) */ + labels?: string[]; + /** Commit the merge produced */ + mergeCommit?: string; + /** How to merge when eligible: merge, squash, rebase */ + mergeMethod?: string; + /** When merge-when-green was requested (NULL when no merge is pending) */ + mergeRequestedAt?: string; + /** When the merge completed */ + mergedAt?: string; + /** Review detail (reviewers, labels, checks summary) */ + metadata?: unknown; + /** Proposal this one hangs under: an epic, or the discussion a decision came out of */ + parentId?: string; + /** Manual order within a board column, sparse so an insert between two rows moves one row (NULL when unranked) */ + priority?: string; + /** Repository this proposal is against */ + repositoryId?: string; + /** What was decided (for kind = decision; NULL while the question is open) */ + resolution?: string; + /** Ref holding the proposed commits (NULL unless kind is change) */ + sourceRef?: string; + /** Lifecycle state: draft, open, merged, closed */ status?: string; - /** Observed state from K8s — populated by handlers after reconciliation (service_url, clone_url, replicas, etc.) */ - statusObserved?: unknown; + /** Ref the commits are proposed for (NULL unless kind is change) */ + targetRef?: string; + /** What this proposal does */ + title?: string; updatedAt?: string; updatedBy?: string; + updatedByPrincipal?: string; } -/** A filter to be used against `PlatformResourceStatusCheck` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformResourceStatusCheckFilter { +/** A filter to be used against `ProposalReaction` object types. All fields are combined with a logical ‘and.’ */ +export interface ProposalReactionFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: PlatformResourceStatusCheckFilter[]; - /** Filter by the object’s `completedAt` field. */ - completedAt?: DatetimeFilter; + and?: ProposalReactionFilter[]; + /** Filter by the object’s `comment` relation. */ + comment?: ProposalCommentFilter; + /** A related `comment` exists. */ + commentExists?: boolean; + /** Filter by the object’s `commentId` field. */ + commentId?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `emoji` field. */ + emoji?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Negates the expression. */ - not?: PlatformResourceStatusCheckFilter; + not?: ProposalReactionFilter; /** Checks for any expressions in this list. */ - or?: PlatformResourceStatusCheckFilter[]; - /** Filter by the object’s `requestedAt` field. */ - requestedAt?: DatetimeFilter; - /** Filter by the object’s `requestedBy` field. */ - requestedBy?: UUIDFilter; - /** Filter by the object’s `resource` relation. */ - resource?: PlatformResourceFilter; - /** Filter by the object’s `resourceId` field. */ - resourceId?: UUIDFilter; - /** Filter by the object’s `result` field. */ - result?: JSONFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; + or?: ProposalReactionFilter[]; + /** Filter by the object’s `proposal` relation. */ + proposal?: ProposalFilter; + /** Filter by the object’s `proposalId` field. */ + proposalId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} +/** An input for mutations affecting `ProposalReaction` */ +export interface ProposalReactionInput { + /** Actor who reacted */ + actorId: string; + /** Comment being reacted to (NULL for a reaction to the proposal itself) */ + commentId?: string; + createdAt?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Reaction shortcode (+1, eyes, rocket) */ + emoji: string; + id?: string; + /** Proposal the reaction belongs to */ + proposalId: string; + updatedAt?: string; + updatedByPrincipal?: string; } -/** An input for mutations affecting `PlatformResourceStatusCheck` */ -export interface PlatformResourceStatusCheckInput { - /** When the check completed (NULL while pending/running) */ - completedAt?: string; - /** Unique status check identifier */ +/** Represents an update to a `ProposalReaction`. Fields that are set will be updated. */ +export interface ProposalReactionPatch { + /** Actor who reacted */ + actorId?: string; + /** Comment being reacted to (NULL for a reaction to the proposal itself) */ + commentId?: string; + createdAt?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string; + /** Reaction shortcode (+1, eyes, rocket) */ + emoji?: string; id?: string; - /** When the check was requested */ - requestedAt?: string; - /** User who requested the check (NULL for system/scheduled) */ - requestedBy?: string; - /** Resource to check */ - resourceId: string; - /** Diagnostic snapshot: k8s_status, conditions, pod_logs_tail, events */ - result?: unknown; - /** Check lifecycle: pending, running, completed, failed */ - status?: string; + /** Proposal the reaction belongs to */ + proposalId?: string; + updatedAt?: string; + updatedByPrincipal?: string; } -/** Represents an update to a `PlatformResourceStatusCheck`. Fields that are set will be updated. */ -export interface PlatformResourceStatusCheckPatch { - /** When the check completed (NULL while pending/running) */ - completedAt?: string; - /** Unique status check identifier */ +/** A filter to be used against `ProposalReview` object types. All fields are combined with a logical ‘and.’ */ +export interface ProposalReviewFilter { + /** Checks for all expressions in this list. */ + and?: ProposalReviewFilter[]; + /** Filter by the object’s `body` field. */ + body?: StringTrgmFilter; + /** Filter by the object’s `commitSha` field. */ + commitSha?: StringTrgmFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: ProposalReviewFilter; + /** Checks for any expressions in this list. */ + or?: ProposalReviewFilter[]; + /** Filter by the object’s `proposal` relation. */ + proposal?: ProposalFilter; + /** Filter by the object’s `proposalId` field. */ + proposalId?: UUIDFilter; + /** Filter by the object’s `reviewerId` field. */ + reviewerId?: UUIDFilter; + /** Filter by the object’s `search` field. */ + search?: FullTextFilter; + /** Filter by the object’s `submittedAt` field. */ + submittedAt?: DatetimeFilter; + /** TRGM search on the `body` column. */ + trgmBody?: TrgmSearchInput; + /** TRGM search on the `commit_sha` column. */ + trgmCommitSha?: TrgmSearchInput; + /** TRGM search on the `verdict` column. */ + trgmVerdict?: TrgmSearchInput; + /** TSV search on the `search` column. */ + tsvSearch?: string; + /** + * Composite unified search. Provide a search string and it will be dispatched to + * all text-compatible search algorithms (tsvector, BM25, pg_trgm) + * simultaneously. When the LLM plugin is active, pgvector also participates via + * auto-embedding. Rows matching ANY algorithm are returned. All matching score + * fields are populated. + */ + unifiedSearch?: string; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** Filter by the object’s `verdict` field. */ + verdict?: StringTrgmFilter; +} +/** An input for mutations affecting `ProposalReview` */ +export interface ProposalReviewInput { + /** Summary the reviewer submitted with the verdict */ + body?: string; + /** Head commit this verdict was submitted against */ + commitSha: string; + createdAt?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; id?: string; - /** When the check was requested */ - requestedAt?: string; - /** User who requested the check (NULL for system/scheduled) */ - requestedBy?: string; - /** Resource to check */ - resourceId?: string; - /** Diagnostic snapshot: k8s_status, conditions, pod_logs_tail, events */ - result?: unknown; - /** Check lifecycle: pending, running, completed, failed */ - status?: string; + /** Proposal being reviewed */ + proposalId: string; + /** Actor who submitted the verdict */ + reviewerId: string; + /** When the verdict was submitted */ + submittedAt?: string; + updatedAt?: string; + updatedByPrincipal?: string; + /** approve, reject or comment (a review that gates nothing) */ + verdict: string; +} +/** Represents an update to a `ProposalReview`. Fields that are set will be updated. */ +export interface ProposalReviewPatch { + /** Summary the reviewer submitted with the verdict */ + body?: string; + /** Head commit this verdict was submitted against */ + commitSha?: string; + createdAt?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string; + id?: string; + /** Proposal being reviewed */ + proposalId?: string; + /** Actor who submitted the verdict */ + reviewerId?: string; + /** When the verdict was submitted */ + submittedAt?: string; + updatedAt?: string; + updatedByPrincipal?: string; + /** approve, reject or comment (a review that gates nothing) */ + verdict?: string; } -/** A filter to be used against many `PlatformResourceStatusCheck` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformResourceToManyPlatformResourceStatusCheckFilter { +/** A filter to be used against many `Build` object types. All fields are combined with a logical ‘and.’ */ +export interface ProposalToManyBuildFilter { /** Filters to entities where every related entity matches. */ - every?: PlatformResourceStatusCheckFilter; + every?: BuildFilter; /** Filters to entities where no related entity matches. */ - none?: PlatformResourceStatusCheckFilter; + none?: BuildFilter; /** Filters to entities where at least one related entity matches. */ - some?: PlatformResourceStatusCheckFilter; + some?: BuildFilter; } -/** A filter to be used against `PlatformResourceUsageLog` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformResourceUsageLogFilter { +/** A filter to be used against many `ProposalComment` object types. All fields are combined with a logical ‘and.’ */ +export interface ProposalToManyProposalCommentFilter { + /** Filters to entities where every related entity matches. */ + every?: ProposalCommentFilter; + /** Filters to entities where no related entity matches. */ + none?: ProposalCommentFilter; + /** Filters to entities where at least one related entity matches. */ + some?: ProposalCommentFilter; +} +/** A filter to be used against many `ProposalFileView` object types. All fields are combined with a logical ‘and.’ */ +export interface ProposalToManyProposalFileViewFilter { + /** Filters to entities where every related entity matches. */ + every?: ProposalFileViewFilter; + /** Filters to entities where no related entity matches. */ + none?: ProposalFileViewFilter; + /** Filters to entities where at least one related entity matches. */ + some?: ProposalFileViewFilter; +} +/** A filter to be used against many `Proposal` object types. All fields are combined with a logical ‘and.’ */ +export interface ProposalToManyProposalFilter { + /** Filters to entities where every related entity matches. */ + every?: ProposalFilter; + /** Filters to entities where no related entity matches. */ + none?: ProposalFilter; + /** Filters to entities where at least one related entity matches. */ + some?: ProposalFilter; +} +/** A filter to be used against many `ProposalReaction` object types. All fields are combined with a logical ‘and.’ */ +export interface ProposalToManyProposalReactionFilter { + /** Filters to entities where every related entity matches. */ + every?: ProposalReactionFilter; + /** Filters to entities where no related entity matches. */ + none?: ProposalReactionFilter; + /** Filters to entities where at least one related entity matches. */ + some?: ProposalReactionFilter; +} +/** A filter to be used against many `ProposalReview` object types. All fields are combined with a logical ‘and.’ */ +export interface ProposalToManyProposalReviewFilter { + /** Filters to entities where every related entity matches. */ + every?: ProposalReviewFilter; + /** Filters to entities where no related entity matches. */ + none?: ProposalReviewFilter; + /** Filters to entities where at least one related entity matches. */ + some?: ProposalReviewFilter; +} +/** A filter to be used against many `ProposalsChunk` object types. All fields are combined with a logical ‘and.’ */ +export interface ProposalToManyProposalsChunkFilter { + /** Filters to entities where every related entity matches. */ + every?: ProposalsChunkFilter; + /** Filters to entities where no related entity matches. */ + none?: ProposalsChunkFilter; + /** Filters to entities where at least one related entity matches. */ + some?: ProposalsChunkFilter; +} +/** A filter to be used against `ProposalsChunk` object types. All fields are combined with a logical ‘and.’ */ +export interface ProposalsChunkFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: PlatformResourceUsageLogFilter[]; - /** Filter by the object’s `cpuMillicores` field. */ - cpuMillicores?: BigIntFilter; + and?: ProposalsChunkFilter[]; + /** Filter by the object’s `body` field. */ + body?: StringFilter; + /** Filter by the object’s `chunkIndex` field. */ + chunkIndex?: IntFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `embedding` field. */ + embedding?: VectorFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `intervalSeconds` field. */ - intervalSeconds?: IntFilter; - /** Filter by the object’s `memoryBytes` field. */ - memoryBytes?: BigIntFilter; - /** Filter by the object’s `metrics` field. */ - metrics?: JSONFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; /** Negates the expression. */ - not?: PlatformResourceUsageLogFilter; + not?: ProposalsChunkFilter; /** Checks for any expressions in this list. */ - or?: PlatformResourceUsageLogFilter[]; - /** Filter by the object’s `resourceId` field. */ - resourceId?: UUIDFilter; - /** Filter by the object’s `sampledAt` field. */ - sampledAt?: DatetimeFilter; - /** Filter by the object’s `source` field. */ - source?: StringFilter; + or?: ProposalsChunkFilter[]; + /** Filter by the object’s `proposals` relation. */ + proposals?: ProposalFilter; + /** Filter by the object’s `proposalsId` field. */ + proposalsId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** VECTOR search on the `embedding` column. */ + vectorEmbedding?: VectorNearbyInput; } -/** An input for mutations affecting `PlatformResourceUsageLog` */ -export interface PlatformResourceUsageLogInput { - /** CPU gauge in millicores at sample time (NULL when unknown) */ - cpuMillicores?: string; - /** Unique sample identifier */ +/** An input for mutations affecting `ProposalsChunk` */ +export interface ProposalsChunkInput { + /** Policy-required field derived from source table (used by AuthzComposite) */ + actorId?: string; + body: string; + chunkIndex?: number; + createdAt?: string; + /** Policy-required field derived from source table (used by AuthzRelatedEntityMembership) */ + databaseId?: string; + embedding?: number[]; + /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + embeddingText?: string; id?: string; - /** Seconds covered by this sample — runtime is SUM(interval_seconds) */ - intervalSeconds: number; - /** Memory gauge in bytes at sample time (NULL when unknown) */ - memoryBytes?: string; - /** Structured gauges: replicas, pod counts, phases, and other producer-specific metrics */ - metrics?: unknown; - /** Namespace the measured workload runs in */ - namespaceId: string; - /** Resource this sample measures (NULL for namespace-grain catch-all rows) */ - resourceId?: string; - /** Sample timestamp (partition key) — end of the measured interval */ - sampledAt?: string; - /** Sample producer: self (workload heartbeat), observer (reconciler), or prometheus (namespace-grain usage collector) */ - source: string; + metadata?: unknown; + proposalsId: string; + updatedAt?: string; } -/** Represents an update to a `PlatformResourceUsageLog`. Fields that are set will be updated. */ -export interface PlatformResourceUsageLogPatch { - /** CPU gauge in millicores at sample time (NULL when unknown) */ - cpuMillicores?: string; - /** Unique sample identifier */ +/** Represents an update to a `ProposalsChunk`. Fields that are set will be updated. */ +export interface ProposalsChunkPatch { + /** Policy-required field derived from source table (used by AuthzComposite) */ + actorId?: string; + body?: string; + chunkIndex?: number; + createdAt?: string; + /** Policy-required field derived from source table (used by AuthzRelatedEntityMembership) */ + databaseId?: string; + embedding?: number[]; + /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + embeddingText?: string; id?: string; - /** Seconds covered by this sample — runtime is SUM(interval_seconds) */ - intervalSeconds?: number; - /** Memory gauge in bytes at sample time (NULL when unknown) */ - memoryBytes?: string; - /** Structured gauges: replicas, pod counts, phases, and other producer-specific metrics */ - metrics?: unknown; - /** Namespace the measured workload runs in */ - namespaceId?: string; - /** Resource this sample measures (NULL for namespace-grain catch-all rows) */ - resourceId?: string; - /** Sample timestamp (partition key) — end of the measured interval */ - sampledAt?: string; - /** Sample producer: self (workload heartbeat), observer (reconciler), or prometheus (namespace-grain usage collector) */ - source?: string; + metadata?: unknown; + proposalsId?: string; + updatedAt?: string; } -/** A filter to be used against `PlatformResourceUsageSummary` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformResourceUsageSummaryFilter { +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 `RegistryBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface RegistryBindingFilter { /** Checks for all expressions in this list. */ - and?: PlatformResourceUsageSummaryFilter[]; - /** Filter by the object’s `date` field. */ - date?: DateFilter; - /** Filter by the object’s `gbSeconds` field. */ - gbSeconds?: BigFloatFilter; + and?: RegistryBindingFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `maxCpuMillicores` field. */ - maxCpuMillicores?: BigIntFilter; - /** Filter by the object’s `maxMemoryBytes` field. */ - maxMemoryBytes?: BigIntFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: NamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ - not?: PlatformResourceUsageSummaryFilter; + not?: RegistryBindingFilter; + /** Filter by the object’s `observedCredentialVersion` field. */ + observedCredentialVersion?: StringFilter; /** Checks for any expressions in this list. */ - or?: PlatformResourceUsageSummaryFilter[]; - /** Filter by the object’s `resourceId` field. */ - resourceId?: UUIDFilter; - /** Filter by the object’s `runtimeSeconds` field. */ - runtimeSeconds?: BigIntFilter; - /** Filter by the object’s `sampleCount` field. */ - sampleCount?: IntFilter; + or?: RegistryBindingFilter[]; + /** Filter by the object’s `pullSecretName` field. */ + pullSecretName?: StringFilter; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; + /** Filter by the object’s `registry` relation. */ + registry?: RegistryFilter; + /** Filter by the object’s `registryHost` field. */ + registryHost?: StringFilter; + /** Filter by the object’s `registryId` field. */ + registryId?: UUIDFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -/** An input for mutations affecting `PlatformResourceUsageSummary` */ -export interface PlatformResourceUsageSummaryInput { - /** Day this summary covers (partition key) */ - date: string; - /** Memory usage for the day — SUM(memory_bytes * interval_seconds) normalized to GB-seconds */ - gbSeconds?: string; - /** Unique usage summary identifier */ +/** An input for mutations affecting `RegistryBinding` */ +export interface RegistryBindingInput { + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; id?: string; - /** Maximum CPU gauge observed during the day (NULL when never reported) */ - maxCpuMillicores?: string; - /** Maximum memory gauge observed during the day (NULL when never reported) */ - maxMemoryBytes?: string; - /** Namespace the resource runs in */ + /** Reconciler detail (last error, projection timestamps) */ + metadata?: unknown; + /** Namespace the registry credentials are projected into */ namespaceId: string; - /** Resource this summary covers (NULL for namespace-grain catch-all summaries) */ - resourceId?: string; - /** Total measured runtime for the day — SUM(interval_seconds) */ - runtimeSeconds?: string; - /** Number of raw samples aggregated into this summary */ - sampleCount?: number; + /** Registry credential version last projected into the namespace (NULL = never projected) */ + observedCredentialVersion?: string; + /** Name of the image pull secret the reconciler writes into the namespace */ + pullSecretName?: string; + /** Lane this binding applies to (NULL = the scope's default lane) */ + realm?: string; + /** Registry host this binding's credentials authenticate to (what kubelet matches image references against) */ + registryHost: string; + /** Registry endpoint (in this scope's registry catalog) the namespace pulls from */ + registryId: string; + /** Projection state of the pull secret: pending, active, failed */ + status?: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; } -/** Represents an update to a `PlatformResourceUsageSummary`. Fields that are set will be updated. */ -export interface PlatformResourceUsageSummaryPatch { - /** Day this summary covers (partition key) */ - date?: string; - /** Memory usage for the day — SUM(memory_bytes * interval_seconds) normalized to GB-seconds */ - gbSeconds?: string; - /** Unique usage summary identifier */ +/** Represents an update to a `RegistryBinding`. Fields that are set will be updated. */ +export interface RegistryBindingPatch { + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string; id?: string; - /** Maximum CPU gauge observed during the day (NULL when never reported) */ - maxCpuMillicores?: string; - /** Maximum memory gauge observed during the day (NULL when never reported) */ - maxMemoryBytes?: string; - /** Namespace the resource runs in */ + /** Reconciler detail (last error, projection timestamps) */ + metadata?: unknown; + /** Namespace the registry credentials are projected into */ namespaceId?: string; - /** Resource this summary covers (NULL for namespace-grain catch-all summaries) */ - resourceId?: string; - /** Total measured runtime for the day — SUM(interval_seconds) */ - runtimeSeconds?: string; - /** Number of raw samples aggregated into this summary */ - sampleCount?: number; -} -/** A filter to be used against `PlatformResourceUtilization` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformResourceUtilizationFilter { - /** Checks for all expressions in this list. */ - and?: PlatformResourceUtilizationFilter[]; - /** Filter by the object’s `avgMemoryBytes` field. */ - avgMemoryBytes?: BigIntFilter; - /** Filter by the object’s `cpuLimitMillicores` field. */ - cpuLimitMillicores?: BigIntFilter; - /** Filter by the object’s `cpuPeakUtilization` field. */ - cpuPeakUtilization?: BigFloatFilter; - /** Filter by the object’s `cpuRequestHeadroomMillicores` field. */ - cpuRequestHeadroomMillicores?: BigIntFilter; - /** Filter by the object’s `cpuRequestMillicores` field. */ - cpuRequestMillicores?: BigIntFilter; - /** Filter by the object’s `date` field. */ - date?: DateFilter; - /** Filter by the object’s `gbSeconds` field. */ - gbSeconds?: BigFloatFilter; - /** Filter by the object’s `kind` field. */ - kind?: StringFilter; - /** Filter by the object’s `maxCpuMillicores` field. */ - maxCpuMillicores?: BigIntFilter; - /** Filter by the object’s `maxMemoryBytes` field. */ - maxMemoryBytes?: BigIntFilter; - /** Filter by the object’s `memoryLimitBytes` field. */ - memoryLimitBytes?: BigIntFilter; - /** Filter by the object’s `memoryPeakUtilization` field. */ - memoryPeakUtilization?: BigFloatFilter; - /** Filter by the object’s `memoryRequestBytes` field. */ - memoryRequestBytes?: BigIntFilter; - /** Filter by the object’s `memoryRequestHeadroomBytes` field. */ - memoryRequestHeadroomBytes?: BigIntFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; - /** Negates the expression. */ - not?: PlatformResourceUtilizationFilter; - /** Checks for any expressions in this list. */ - or?: PlatformResourceUtilizationFilter[]; - /** Filter by the object’s `replicas` field. */ - replicas?: IntFilter; - /** Filter by the object’s `resourceId` field. */ - resourceId?: UUIDFilter; - /** Filter by the object’s `runtimeSeconds` field. */ - runtimeSeconds?: BigIntFilter; - /** Filter by the object’s `sampleCount` field. */ - sampleCount?: IntFilter; + /** Registry credential version last projected into the namespace (NULL = never projected) */ + observedCredentialVersion?: string; + /** Name of the image pull secret the reconciler writes into the namespace */ + pullSecretName?: string; + /** Lane this binding applies to (NULL = the scope's default lane) */ + realm?: string; + /** Registry host this binding's credentials authenticate to (what kubelet matches image references against) */ + registryHost?: string; + /** Registry endpoint (in this scope's registry catalog) the namespace pulls from */ + registryId?: string; + /** Projection state of the pull secret: pending, active, failed */ + status?: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; } -/** A filter to be used against `PlatformResourcesHealth` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformResourcesHealthFilter { +/** A filter to be used against `Registry` object types. All fields are combined with a logical ‘and.’ */ +export interface RegistryFilter { /** Checks for all expressions in this list. */ - and?: PlatformResourcesHealthFilter[]; - /** Filter by the object’s `annotations` field. */ - annotations?: JSONFilter; - /** Filter by the object’s `cpuLimitMillicores` field. */ - cpuLimitMillicores?: BigIntFilter; - /** Filter by the object’s `cpuRequestMillicores` field. */ - cpuRequestMillicores?: BigIntFilter; + and?: RegistryFilter[]; + /** Filter by the object’s `authMode` field. */ + authMode?: StringFilter; + /** Filter by the object’s `basePath` field. */ + basePath?: StringFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `errorCount` field. */ - errorCount?: IntFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `credentialSecretName` field. */ + credentialSecretName?: StringFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `host` field. */ + host?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `installation` relation. */ + installation?: ResourceInstallationFilter; + /** A related `installation` exists. */ + installationExists?: boolean; /** Filter by the object’s `installationId` field. */ installationId?: UUIDFilter; - /** Filter by the object’s `integrations` field. */ - integrations?: StringListFilter; + /** Filter by the object’s `isPublished` field. */ + isPublished?: BooleanFilter; /** Filter by the object’s `kind` field. */ kind?: StringFilter; /** Filter by the object’s `labels` field. */ labels?: JSONFilter; /** Filter by the object’s `lastError` field. */ lastError?: StringFilter; - /** Filter by the object’s `lastHeartbeatAt` field. */ - lastHeartbeatAt?: DatetimeFilter; - /** Filter by the object’s `memoryLimitBytes` field. */ - memoryLimitBytes?: BigIntFilter; - /** Filter by the object’s `memoryRequestBytes` field. */ - memoryRequestBytes?: BigIntFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; /** Negates the expression. */ - not?: PlatformResourcesHealthFilter; + not?: RegistryFilter; /** Checks for any expressions in this list. */ - or?: PlatformResourcesHealthFilter[]; - /** Filter by the object’s `realm` field. */ - realm?: StringFilter; - /** Filter by the object’s `replicas` field. */ - replicas?: IntFilter; - /** Filter by the object’s `resourceDefinitionId` field. */ - resourceDefinitionId?: UUIDFilter; - /** Filter by the object’s `slug` field. */ - slug?: StringFilter; - /** Filter by the object’s `spec` field. */ - spec?: JSONFilter; + or?: RegistryFilter[]; + /** Filter by the object’s `platformOnly` field. */ + platformOnly?: BooleanFilter; + /** Filter by the object’s `registryBindings` relation. */ + registryBindings?: RegistryToManyRegistryBindingFilter; + /** `registryBindings` exist. */ + registryBindingsExist?: boolean; + /** Filter by the object’s `registryGrants` relation. */ + registryGrants?: RegistryToManyRegistryGrantFilter; + /** `registryGrants` exist. */ + registryGrantsExist?: boolean; + /** Filter by the object’s `role` field. */ + role?: StringFilter; /** Filter by the object’s `status` field. */ status?: StringFilter; - /** Filter by the object’s `statusDetail` field. */ - statusDetail?: StringFilter; - /** Filter by the object’s `statusObserved` field. */ - statusObserved?: JSONFilter; - /** Filter by the object’s `storageClass` field. */ - storageClass?: StringFilter; - /** Filter by the object’s `storageSizeBytes` field. */ - storageSizeBytes?: BigIntFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -/** A filter to be used against `PlatformResourcesRequirementsState` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformResourcesRequirementsStateFilter { +/** A filter to be used against `RegistryGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface RegistryGrantFilter { + /** Filter by the object’s `actions` field. */ + actions?: StringListFilter; /** Checks for all expressions in this list. */ - and?: PlatformResourcesRequirementsStateFilter[]; - /** Filter by the object’s `configHash` field. */ - configHash?: StringFilter; - /** Filter by the object’s `configObjectName` field. */ - configObjectName?: StringFilter; + and?: RegistryGrantFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; + /** Filter by the object’s `grantedBy` field. */ + grantedBy?: UUIDFilter; + /** Filter by the object’s `granteeKey` field. */ + granteeKey?: UUIDFilter; + /** Filter by the object’s `granteeScope` field. */ + granteeScope?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; /** Negates the expression. */ - not?: PlatformResourcesRequirementsStateFilter; + not?: RegistryGrantFilter; /** Checks for any expressions in this list. */ - or?: PlatformResourcesRequirementsStateFilter[]; - /** Filter by the object’s `requirementsHash` field. */ - requirementsHash?: StringFilter; - /** Filter by the object’s `resourceId` field. */ - resourceId?: UUIDFilter; - /** Filter by the object’s `secretsHash` field. */ - secretsHash?: StringFilter; - /** Filter by the object’s `secretsObjectName` field. */ - secretsObjectName?: StringFilter; - /** Filter by the object’s `slug` field. */ - slug?: StringFilter; + or?: RegistryGrantFilter[]; + /** Filter by the object’s `registry` relation. */ + registry?: RegistryFilter; + /** Filter by the object’s `registryId` field. */ + registryId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} +/** An input for mutations affecting `RegistryGrant` */ +export interface RegistryGrantInput { + /** Endpoint actions this grant allows (read, write) */ + actions?: string[]; + createdAt?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** When this grant stops applying (NULL never expires) */ + expiresAt?: string; + /** User who issued this grant */ + grantedBy?: string; + /** Scope key of the grantee (a database_id or an entity_id) */ + granteeKey: string; + /** Scope tier of the grantee (database, org, app, platform) */ + granteeScope: string; + id?: string; + /** Registry this grant applies to */ + registryId: string; + updatedAt?: string; + updatedByPrincipal?: string; +} +/** Represents an update to a `RegistryGrant`. Fields that are set will be updated. */ +export interface RegistryGrantPatch { + /** Endpoint actions this grant allows (read, write) */ + actions?: string[]; + createdAt?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string; + /** When this grant stops applying (NULL never expires) */ + expiresAt?: string; + /** User who issued this grant */ + grantedBy?: string; + /** Scope key of the grantee (a database_id or an entity_id) */ + granteeKey?: string; + /** Scope tier of the grantee (database, org, app, platform) */ + granteeScope?: string; + id?: string; + /** Registry this grant applies to */ + registryId?: string; + updatedAt?: string; + updatedByPrincipal?: string; +} +/** An input for mutations affecting `Registry` */ +export interface RegistryInput { + /** How a client authenticates to this registry (none, basic, token) */ + authMode?: string; + /** Path prefix within the host (npm scope, OCI project); NULL = the host root */ + basePath?: string; + createdAt?: string; + createdByPrincipal?: string; + /** Name of the infra secret carrying this registry's credential (NULL when auth_mode = none) */ + credentialSecretName?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Registry host, without a scheme (e.g. ghcr.io, registry.npmjs.org); required unless role is source, where it is the optional requested host and is stamped with the provisioned one */ + host?: string; + id?: string; + /** Resource installation running this registry (NULL for an external registry) */ + installationId?: string; + /** Whether this registry is published for use by any scope */ + isPublished?: boolean; + /** Artifact ecosystem this registry serves (oci, npm) */ + kind: string; + /** Labels for selecting registries (lane, region, mirror role) */ + labels?: unknown; + /** Message from the last failed provision/deprovision attempt (NULL when healthy) */ + lastError?: string; + /** Freeform metadata (mirror-of pointer, rate limits, contact) */ + metadata?: unknown; + /** Human-readable registry name (e.g. github-container-registry) */ + name: string; + /** Whether this registry is reserved for platform-internal use */ + platformOnly?: boolean; + /** Role in this scope: source (the push target), cache (read-through mirror), external (pull only) */ + role?: string; + /** Provisioning state (pending, provisioning, active, failed); rows the platform does not create are active on insert */ + status?: string; + updatedAt?: string; + updatedByPrincipal?: string; +} +/** Represents an update to a `Registry`. Fields that are set will be updated. */ +export interface RegistryPatch { + /** How a client authenticates to this registry (none, basic, token) */ + authMode?: string; + /** Path prefix within the host (npm scope, OCI project); NULL = the host root */ + basePath?: string; + createdAt?: string; + createdByPrincipal?: string; + /** Name of the infra secret carrying this registry's credential (NULL when auth_mode = none) */ + credentialSecretName?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string; + /** Registry host, without a scheme (e.g. ghcr.io, registry.npmjs.org); required unless role is source, where it is the optional requested host and is stamped with the provisioned one */ + host?: string; + id?: string; + /** Resource installation running this registry (NULL for an external registry) */ + installationId?: string; + /** Whether this registry is published for use by any scope */ + isPublished?: boolean; + /** Artifact ecosystem this registry serves (oci, npm) */ + kind?: string; + /** Labels for selecting registries (lane, region, mirror role) */ + labels?: unknown; + /** Message from the last failed provision/deprovision attempt (NULL when healthy) */ + lastError?: string; + /** Freeform metadata (mirror-of pointer, rate limits, contact) */ + metadata?: unknown; + /** Human-readable registry name (e.g. github-container-registry) */ + name?: string; + /** Whether this registry is reserved for platform-internal use */ + platformOnly?: boolean; + /** Role in this scope: source (the push target), cache (read-through mirror), external (pull only) */ + role?: string; + /** Provisioning state (pending, provisioning, active, failed); rows the platform does not create are active on insert */ + status?: string; + updatedAt?: string; + updatedByPrincipal?: string; +} +/** A filter to be used against many `RegistryBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface RegistryToManyRegistryBindingFilter { + /** Filters to entities where every related entity matches. */ + every?: RegistryBindingFilter; + /** Filters to entities where no related entity matches. */ + none?: RegistryBindingFilter; + /** Filters to entities where at least one related entity matches. */ + some?: RegistryBindingFilter; +} +/** A filter to be used against many `RegistryGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface RegistryToManyRegistryGrantFilter { + /** Filters to entities where every related entity matches. */ + every?: RegistryGrantFilter; + /** Filters to entities where no related entity matches. */ + none?: RegistryGrantFilter; + /** Filters to entities where at least one related entity matches. */ + some?: RegistryGrantFilter; } -/** A filter to be used against `PlatformResourcesResolvedRequirement` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformResourcesResolvedRequirementFilter { +/** A filter to be used against `RepositoryEvent` object types. All fields are combined with a logical ‘and.’ */ +export interface RepositoryEventFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: PlatformResourcesResolvedRequirementFilter[]; - /** Filter by the object’s `atomId` field. */ - atomId?: UUIDFilter; - /** Filter by the object’s `configObjectName` field. */ - configObjectName?: StringFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; + and?: RepositoryEventFilter[]; + /** Filter by the object’s `buildsByEventId` relation. */ + buildsByEventId?: RepositoryEventToManyBuildFilter; + /** `buildsByEventId` exist. */ + buildsByEventIdExist?: boolean; + /** Filter by the object’s `commitSha` field. */ + commitSha?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `deliveryId` field. */ + deliveryId?: StringFilter; + /** Filter by the object’s `eventType` field. */ + eventType?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; /** Negates the expression. */ - not?: PlatformResourcesResolvedRequirementFilter; + not?: RepositoryEventFilter; /** Checks for any expressions in this list. */ - or?: PlatformResourcesResolvedRequirementFilter[]; - /** Filter by the object’s `present` field. */ - present?: BooleanFilter; - /** Filter by the object’s `realm` field. */ - realm?: StringFilter; - /** Filter by the object’s `required` field. */ - required?: BooleanFilter; - /** Filter by the object’s `requirementKind` field. */ - requirementKind?: StringFilter; - /** Filter by the object’s `resourceId` field. */ - resourceId?: UUIDFilter; - /** Filter by the object’s `secretsObjectName` field. */ - secretsObjectName?: StringFilter; - /** Filter by the object’s `slug` field. */ - slug?: StringFilter; + or?: RepositoryEventFilter[]; + /** Filter by the object’s `payload` field. */ + payload?: JSONFilter; + /** Filter by the object’s `ref` field. */ + ref?: StringFilter; + /** Filter by the object’s `repository` relation. */ + repository?: RepositoryFilter; + /** Filter by the object’s `repositoryId` field. */ + repositoryId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -/** A filter to be used against `PlatformWebhookEndpoint` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformWebhookEndpointFilter { - /** Filter by the object’s `active` field. */ - active?: BooleanFilter; +/** An input for mutations affecting `RepositoryEvent` */ +export interface RepositoryEventInput { + /** Authenticated actor behind the event (NULL when only the sending system was proven) */ + actorId?: string; + /** Commit the ref points at after the event */ + commitSha?: string; + createdAt?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Provider delivery identifier, for redelivery dedupe (NULL for local hooks) */ + deliveryId?: string; + /** What happened: push, tag, pr_open, pr_merge, proposal_comment, manual */ + eventType: string; + id?: string; + /** Unverified provider detail (payload login, commit author, external URLs) */ + metadata?: unknown; + /** Normalized event body the workflows read */ + payload?: unknown; + /** Git ref the event concerns (refs/heads/main) */ + ref?: string; + /** Repository this event happened to */ + repositoryId: string; + updatedAt?: string; + updatedByPrincipal?: string; +} +/** Represents an update to a `RepositoryEvent`. Fields that are set will be updated. */ +export interface RepositoryEventPatch { + /** Authenticated actor behind the event (NULL when only the sending system was proven) */ + actorId?: string; + /** Commit the ref points at after the event */ + commitSha?: string; + createdAt?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string; + /** Provider delivery identifier, for redelivery dedupe (NULL for local hooks) */ + deliveryId?: string; + /** What happened: push, tag, pr_open, pr_merge, proposal_comment, manual */ + eventType?: string; + id?: string; + /** Unverified provider detail (payload login, commit author, external URLs) */ + metadata?: unknown; + /** Normalized event body the workflows read */ + payload?: unknown; + /** Git ref the event concerns (refs/heads/main) */ + ref?: string; + /** Repository this event happened to */ + repositoryId?: string; + updatedAt?: string; + updatedByPrincipal?: string; +} +/** A filter to be used against many `Build` object types. All fields are combined with a logical ‘and.’ */ +export interface RepositoryEventToManyBuildFilter { + /** Filters to entities where every related entity matches. */ + every?: BuildFilter; + /** Filters to entities where no related entity matches. */ + none?: BuildFilter; + /** Filters to entities where at least one related entity matches. */ + some?: BuildFilter; +} +/** A filter to be used against `Repository` object types. All fields are combined with a logical ‘and.’ */ +export interface RepositoryFilter { /** Checks for all expressions in this list. */ - and?: PlatformWebhookEndpointFilter[]; + and?: RepositoryFilter[]; + /** Filter by the object’s `builds` relation. */ + builds?: RepositoryToManyBuildFilter; + /** `builds` exist. */ + buildsExist?: boolean; + /** Filter by the object’s `cloneUrl` field. */ + cloneUrl?: StringTrgmFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `createdBy` field. */ createdBy?: UUIDFilter; - /** Filter by the object’s `functionDefinition` relation. */ - functionDefinition?: PlatformFunctionDefinitionFilter; - /** Filter by the object’s `functionDefinitionId` field. */ - functionDefinitionId?: UUIDFilter; - /** Filter by the object’s `host` field. */ - host?: StringFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `defaultBranch` field. */ + defaultBranch?: StringTrgmFilter; + /** Filter by the object’s `description` field. */ + description?: StringTrgmFilter; + /** Filter by the object’s `embedding` field. */ + embedding?: VectorFilter; + /** Filter by the object’s `embeddingUpdatedAt` field. */ + embeddingUpdatedAt?: DatetimeFilter; + /** Filter by the object’s `externalId` field. */ + externalId?: StringTrgmFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: PlatformNamespaceFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; + /** Filter by the object’s `isArchived` field. */ + isArchived?: BooleanFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `name` field. */ + name?: StringTrgmFilter; /** Negates the expression. */ - not?: PlatformWebhookEndpointFilter; + not?: RepositoryFilter; /** Checks for any expressions in this list. */ - or?: PlatformWebhookEndpointFilter[]; - /** Filter by the object’s `path` field. */ - path?: StringFilter; - /** Filter by the object’s `platformWebhookEventsByEndpointId` relation. */ - platformWebhookEventsByEndpointId?: PlatformWebhookEndpointToManyPlatformWebhookEventFilter; - /** `platformWebhookEventsByEndpointId` exist. */ - platformWebhookEventsByEndpointIdExist?: boolean; + or?: RepositoryFilter[]; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `proposals` relation. */ + proposals?: RepositoryToManyProposalFilter; + /** `proposals` exist. */ + proposalsExist?: boolean; /** Filter by the object’s `provider` field. */ - provider?: StringFilter; - /** Filter by the object’s `replayWindowSeconds` field. */ - replayWindowSeconds?: IntFilter; - /** Filter by the object’s `signingSecretName` field. */ - signingSecretName?: StringFilter; + provider?: StringTrgmFilter; + /** Filter by the object’s `repositoryEvents` relation. */ + repositoryEvents?: RepositoryToManyRepositoryEventFilter; + /** `repositoryEvents` exist. */ + repositoryEventsExist?: boolean; + /** Filter by the object’s `repositoryRequiredChecks` relation. */ + repositoryRequiredChecks?: RepositoryToManyRepositoryRequiredCheckFilter; + /** `repositoryRequiredChecks` exist. */ + repositoryRequiredChecksExist?: boolean; + /** Filter by the object’s `repositoryWorkflows` relation. */ + repositoryWorkflows?: RepositoryToManyRepositoryWorkflowFilter; + /** `repositoryWorkflows` exist. */ + repositoryWorkflowsExist?: boolean; + /** Filter by the object’s `search` field. */ + search?: FullTextFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringTrgmFilter; + /** TRGM search on the `clone_url` column. */ + trgmCloneUrl?: TrgmSearchInput; + /** TRGM search on the `default_branch` column. */ + trgmDefaultBranch?: TrgmSearchInput; + /** TRGM search on the `description` column. */ + trgmDescription?: TrgmSearchInput; + /** TRGM search on the `external_id` column. */ + trgmExternalId?: TrgmSearchInput; + /** TRGM search on the `name` column. */ + trgmName?: TrgmSearchInput; + /** TRGM search on the `provider` column. */ + trgmProvider?: TrgmSearchInput; + /** TRGM search on the `slug` column. */ + trgmSlug?: TrgmSearchInput; + /** TRGM search on the `visibility` column. */ + trgmVisibility?: TrgmSearchInput; + /** TSV search on the `search` column. */ + tsvSearch?: string; + /** + * Composite unified search. Provide a search string and it will be dispatched to + * all text-compatible search algorithms (tsvector, BM25, pg_trgm) + * simultaneously. When the LLM plugin is active, pgvector also participates via + * auto-embedding. Rows matching ANY algorithm are returned. All matching score + * fields are populated. + */ + unifiedSearch?: string; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; /** Filter by the object’s `updatedBy` field. */ updatedBy?: UUIDFilter; -} -/** An input for mutations affecting `PlatformWebhookEndpoint` */ -export interface PlatformWebhookEndpointInput { - /** Whether this endpoint currently accepts deliveries */ - active?: boolean; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** VECTOR search on the `embedding` column. */ + vectorEmbedding?: VectorNearbyInput; + /** Filter by the object’s `visibility` field. */ + visibility?: StringTrgmFilter; +} +/** An input for mutations affecting `Repository` */ +export interface RepositoryInput { + /** URL a workspace clones from (NULL until the repository is provisioned) */ + cloneUrl?: string; createdAt?: string; createdBy?: string; - /** Same-scope function definition invoked on delivery. The function must list the webhook channel in access_channels. */ - functionDefinitionId: string; - /** Inbound Host header this endpoint matches (normalized lower-case, no port) */ - host: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Branch a clone checks out and a proposal targets by default */ + defaultBranch?: string; + /** What this repository holds */ + description?: string; + embedding?: number[]; + /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + embeddingText?: string; + /** Identifier of this repository in the external provider (NULL for local) */ + externalId?: string; id?: string; - /** Namespace that owns this endpoint and contains its signing secret */ - namespaceId: string; - /** Exact request path this endpoint matches (e.g. /webhooks/stripe) */ - path: string; - /** Verification scheme: generic (HMAC), stripe, or github */ + /** Whether this repository is retired: readable, not written to */ + isArchived?: boolean; + /** Provider detail (installation id, topics, external URLs) */ + metadata?: unknown; + /** Human-readable repository name */ + name: string; + /** User who owns this repository */ + ownerId?: string; + /** Where the repository lives: local (platform git server) or github */ provider?: string; - /** Maximum age (seconds) of a signed provider timestamp before the delivery is rejected as a replay */ - replayWindowSeconds?: number; - /** Name of the signing secret in the infra secrets store. The gateway resolves the value through the generated secrets getter — the plaintext secret is never stored here. */ - signingSecretName: string; + /** URL-safe identifier, unique within the owning scope */ + slug: string; updatedAt?: string; updatedBy?: string; -} -/** Represents an update to a `PlatformWebhookEndpoint`. Fields that are set will be updated. */ -export interface PlatformWebhookEndpointPatch { - /** Whether this endpoint currently accepts deliveries */ - active?: boolean; + updatedByPrincipal?: string; + /** Read reach: private (owner), internal (scope members), public (any authenticated actor) */ + visibility?: string; +} +/** Represents an update to a `Repository`. Fields that are set will be updated. */ +export interface RepositoryPatch { + /** URL a workspace clones from (NULL until the repository is provisioned) */ + cloneUrl?: string; createdAt?: string; createdBy?: string; - /** Same-scope function definition invoked on delivery. The function must list the webhook channel in access_channels. */ - functionDefinitionId?: string; - /** Inbound Host header this endpoint matches (normalized lower-case, no port) */ - host?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string; + /** Branch a clone checks out and a proposal targets by default */ + defaultBranch?: string; + /** What this repository holds */ + description?: string; + embedding?: number[]; + /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + embeddingText?: string; + /** Identifier of this repository in the external provider (NULL for local) */ + externalId?: string; id?: string; - /** Namespace that owns this endpoint and contains its signing secret */ - namespaceId?: string; - /** Exact request path this endpoint matches (e.g. /webhooks/stripe) */ - path?: string; - /** Verification scheme: generic (HMAC), stripe, or github */ + /** Whether this repository is retired: readable, not written to */ + isArchived?: boolean; + /** Provider detail (installation id, topics, external URLs) */ + metadata?: unknown; + /** Human-readable repository name */ + name?: string; + /** User who owns this repository */ + ownerId?: string; + /** Where the repository lives: local (platform git server) or github */ provider?: string; - /** Maximum age (seconds) of a signed provider timestamp before the delivery is rejected as a replay */ - replayWindowSeconds?: number; - /** Name of the signing secret in the infra secrets store. The gateway resolves the value through the generated secrets getter — the plaintext secret is never stored here. */ - signingSecretName?: string; + /** URL-safe identifier, unique within the owning scope */ + slug?: string; updatedAt?: string; updatedBy?: string; + updatedByPrincipal?: string; + /** Read reach: private (owner), internal (scope members), public (any authenticated actor) */ + visibility?: string; } -/** A filter to be used against many `PlatformWebhookEvent` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformWebhookEndpointToManyPlatformWebhookEventFilter { +/** A filter to be used against `RepositoryRequiredCheck` object types. All fields are combined with a logical ‘and.’ */ +export interface RepositoryRequiredCheckFilter { + /** Checks for all expressions in this list. */ + and?: RepositoryRequiredCheckFilter[]; + /** 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?: RepositoryRequiredCheckFilter; + /** Checks for any expressions in this list. */ + or?: RepositoryRequiredCheckFilter[]; + /** Filter by the object’s `repository` relation. */ + repository?: RepositoryFilter; + /** Filter by the object’s `repositoryId` field. */ + repositoryId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `workflow` relation. */ + workflow?: RepositoryWorkflowFilter; + /** Filter by the object’s `workflowId` field. */ + workflowId?: UUIDFilter; +} +/** An input for mutations affecting `RepositoryRequiredCheck` */ +export interface RepositoryRequiredCheckInput { + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + id?: string; + /** Repository whose merge gate requires this workflow */ + repositoryId: string; + updatedAt?: string; + /** Workflow identity required by this repository gate */ + workflowId: string; +} +/** Represents an update to a `RepositoryRequiredCheck`. Fields that are set will be updated. */ +export interface RepositoryRequiredCheckPatch { + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string; + id?: string; + /** Repository whose merge gate requires this workflow */ + repositoryId?: string; + updatedAt?: string; + /** Workflow identity required by this repository gate */ + workflowId?: string; +} +/** A filter to be used against many `Build` object types. All fields are combined with a logical ‘and.’ */ +export interface RepositoryToManyBuildFilter { /** Filters to entities where every related entity matches. */ - every?: PlatformWebhookEventFilter; + every?: BuildFilter; /** Filters to entities where no related entity matches. */ - none?: PlatformWebhookEventFilter; + none?: BuildFilter; /** Filters to entities where at least one related entity matches. */ - some?: PlatformWebhookEventFilter; + some?: BuildFilter; } -/** A filter to be used against `PlatformWebhookEvent` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformWebhookEventFilter { +/** A filter to be used against many `Proposal` object types. All fields are combined with a logical ‘and.’ */ +export interface RepositoryToManyProposalFilter { + /** Filters to entities where every related entity matches. */ + every?: ProposalFilter; + /** Filters to entities where no related entity matches. */ + none?: ProposalFilter; + /** Filters to entities where at least one related entity matches. */ + some?: ProposalFilter; +} +/** A filter to be used against many `RepositoryEvent` object types. All fields are combined with a logical ‘and.’ */ +export interface RepositoryToManyRepositoryEventFilter { + /** Filters to entities where every related entity matches. */ + every?: RepositoryEventFilter; + /** Filters to entities where no related entity matches. */ + none?: RepositoryEventFilter; + /** Filters to entities where at least one related entity matches. */ + some?: RepositoryEventFilter; +} +/** A filter to be used against many `RepositoryRequiredCheck` object types. All fields are combined with a logical ‘and.’ */ +export interface RepositoryToManyRepositoryRequiredCheckFilter { + /** Filters to entities where every related entity matches. */ + every?: RepositoryRequiredCheckFilter; + /** Filters to entities where no related entity matches. */ + none?: RepositoryRequiredCheckFilter; + /** Filters to entities where at least one related entity matches. */ + some?: RepositoryRequiredCheckFilter; +} +/** A filter to be used against many `RepositoryWorkflow` object types. All fields are combined with a logical ‘and.’ */ +export interface RepositoryToManyRepositoryWorkflowFilter { + /** Filters to entities where every related entity matches. */ + every?: RepositoryWorkflowFilter; + /** Filters to entities where no related entity matches. */ + none?: RepositoryWorkflowFilter; + /** Filters to entities where at least one related entity matches. */ + some?: RepositoryWorkflowFilter; +} +/** A filter to be used against `RepositoryWorkflow` object types. All fields are combined with a logical ‘and.’ */ +export interface RepositoryWorkflowFilter { /** Checks for all expressions in this list. */ - and?: PlatformWebhookEventFilter[]; + and?: RepositoryWorkflowFilter[]; + /** Filter by the object’s `buildsByWorkflowId` relation. */ + buildsByWorkflowId?: RepositoryWorkflowToManyBuildFilter; + /** `buildsByWorkflowId` exist. */ + buildsByWorkflowIdExist?: boolean; + /** Filter by the object’s `cancelInProgress` field. */ + cancelInProgress?: BooleanFilter; + /** Filter by the object’s `concurrencyKey` field. */ + concurrencyKey?: StringFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; - /** Filter by the object’s `endpoint` relation. */ - endpoint?: PlatformWebhookEndpointFilter; - /** Filter by the object’s `endpointId` field. */ - endpointId?: UUIDFilter; - /** Filter by the object’s `error` field. */ - error?: StringFilter; - /** Filter by the object’s `externalEventId` field. */ - externalEventId?: StringFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `eventType` field. */ + eventType?: StringFilter; + /** Filter by the object’s `graph` relation. */ + graph?: DatabaseFunctionGraphFilter; + /** A related `graph` exists. */ + graphExists?: boolean; + /** Filter by the object’s `graphId` field. */ + graphId?: UUIDFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `invocationCreatedAt` field. */ - invocationCreatedAt?: DatetimeFilter; - /** Filter by the object’s `invocationId` field. */ - invocationId?: UUIDFilter; + /** Filter by the object’s `inputs` field. */ + inputs?: JSONFilter; + /** Filter by the object’s `isEnabled` field. */ + isEnabled?: BooleanFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; /** Negates the expression. */ - not?: PlatformWebhookEventFilter; + not?: RepositoryWorkflowFilter; /** Checks for any expressions in this list. */ - or?: PlatformWebhookEventFilter[]; - /** Filter by the object’s `payload` field. */ - payload?: JSONFilter; - /** Filter by the object’s `provider` field. */ - provider?: StringFilter; - /** Filter by the object’s `providerTimestamp` field. */ - providerTimestamp?: DatetimeFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; + or?: RepositoryWorkflowFilter[]; + /** Filter by the object’s `refPattern` field. */ + refPattern?: StringFilter; + /** Filter by the object’s `repository` relation. */ + repository?: RepositoryFilter; + /** Filter by the object’s `repositoryId` field. */ + repositoryId?: UUIDFilter; + /** Filter by the object’s `repositoryRequiredChecksByWorkflowId` relation. */ + repositoryRequiredChecksByWorkflowId?: RepositoryWorkflowToManyRepositoryRequiredCheckFilter; + /** `repositoryRequiredChecksByWorkflowId` exist. */ + repositoryRequiredChecksByWorkflowIdExist?: boolean; + /** Filter by the object’s `requiredSecrets` field. */ + requiredSecrets?: StringListFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; -} -/** An input for mutations affecting `PlatformWebhookEvent` */ -export interface PlatformWebhookEventInput { + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} +/** An input for mutations affecting `RepositoryWorkflow` */ +export interface RepositoryWorkflowInput { + /** Whether a new build cancels a running build with the same concurrency key instead of queueing */ + cancelInProgress?: boolean; + /** Builds of this workflow sharing this key run one at a time (NULL = unlimited) */ + concurrencyKey?: string; createdAt?: string; - /** Endpoint that accepted this delivery */ - endpointId: string; - /** Failure detail when status = failed */ - error?: string; - /** Provider-supplied delivery/event id used for idempotent dedup */ - externalEventId: string; + createdBy?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Event type that fires this workflow */ + eventType: string; + /** Flow graph to run when this workflow fires */ + graphId?: string; id?: string; - /** created_at of the enqueued invocation (partition key companion to invocation_id) */ - invocationCreatedAt?: string; - /** Pending function invocation enqueued for this delivery (NULL until enqueued) */ - invocationId?: string; - /** Parsed delivery payload (parsed only after signature verification over the exact raw bytes) */ - payload?: unknown; - /** Provider that produced this delivery (copied from the endpoint at acceptance) */ - provider: string; - /** Signed provider timestamp used for replay-window validation (NULL when the provider supplies none) */ - providerTimestamp?: string; - /** Acceptance lifecycle: accepted, processed, failed */ - status?: string; + /** Static inputs merged into the graph run alongside the event */ + inputs?: unknown; + /** Whether matching events fire this workflow */ + isEnabled?: boolean; + /** Human-readable workflow name */ + name: string; + /** Glob the event ref must match (NULL matches any ref) */ + refPattern?: string; + /** Repository whose events this workflow listens to */ + repositoryId: string; + /** Secret names this workflow's builds may resolve, intersected with the build lane's realm */ + requiredSecrets?: string[]; + /** URL-safe identifier, unique within the repository */ + slug: string; updatedAt?: string; -} -/** Represents an update to a `PlatformWebhookEvent`. Fields that are set will be updated. */ -export interface PlatformWebhookEventPatch { + updatedBy?: string; + updatedByPrincipal?: string; +} +/** Represents an update to a `RepositoryWorkflow`. Fields that are set will be updated. */ +export interface RepositoryWorkflowPatch { + /** Whether a new build cancels a running build with the same concurrency key instead of queueing */ + cancelInProgress?: boolean; + /** Builds of this workflow sharing this key run one at a time (NULL = unlimited) */ + concurrencyKey?: string; createdAt?: string; - /** Endpoint that accepted this delivery */ - endpointId?: string; - /** Failure detail when status = failed */ - error?: string; - /** Provider-supplied delivery/event id used for idempotent dedup */ - externalEventId?: string; + createdBy?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string; + /** Event type that fires this workflow */ + eventType?: string; + /** Flow graph to run when this workflow fires */ + graphId?: string; id?: string; - /** created_at of the enqueued invocation (partition key companion to invocation_id) */ - invocationCreatedAt?: string; - /** Pending function invocation enqueued for this delivery (NULL until enqueued) */ - invocationId?: string; - /** Parsed delivery payload (parsed only after signature verification over the exact raw bytes) */ - payload?: unknown; - /** Provider that produced this delivery (copied from the endpoint at acceptance) */ - provider?: string; - /** Signed provider timestamp used for replay-window validation (NULL when the provider supplies none) */ - providerTimestamp?: string; - /** Acceptance lifecycle: accepted, processed, failed */ - status?: string; + /** Static inputs merged into the graph run alongside the event */ + inputs?: unknown; + /** Whether matching events fire this workflow */ + isEnabled?: boolean; + /** Human-readable workflow name */ + name?: string; + /** Glob the event ref must match (NULL matches any ref) */ + refPattern?: string; + /** Repository whose events this workflow listens to */ + repositoryId?: string; + /** Secret names this workflow's builds may resolve, intersected with the build lane's realm */ + requiredSecrets?: string[]; + /** URL-safe identifier, unique within the repository */ + slug?: string; updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: 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 many `Build` object types. All fields are combined with a logical ‘and.’ */ +export interface RepositoryWorkflowToManyBuildFilter { + /** Filters to entities where every related entity matches. */ + every?: BuildFilter; + /** Filters to entities where no related entity matches. */ + none?: BuildFilter; + /** Filters to entities where at least one related entity matches. */ + some?: BuildFilter; +} +/** A filter to be used against many `RepositoryRequiredCheck` object types. All fields are combined with a logical ‘and.’ */ +export interface RepositoryWorkflowToManyRepositoryRequiredCheckFilter { + /** Filters to entities where every related entity matches. */ + every?: RepositoryRequiredCheckFilter; + /** Filters to entities where no related entity matches. */ + none?: RepositoryRequiredCheckFilter; + /** Filters to entities where at least one related entity matches. */ + some?: RepositoryRequiredCheckFilter; } /** A filter to be used against `ResourceDeclaredCapacity` object types. All fields are combined with a logical ‘and.’ */ export interface ResourceDeclaredCapacityFilter { @@ -7766,6 +15882,8 @@ export interface ResourceDeclaredCapacityFilter { sourceId?: UUIDFilter; /** Filter by the object’s `storageSizeBytes` field. */ storageSizeBytes?: BigIntFilter; + /** Filter by the object’s `storageTotalBytes` field. */ + storageTotalBytes?: BigIntFilter; } /** A filter to be used against `ResourceDefinition` object types. All fields are combined with a logical ‘and.’ */ export interface ResourceDefinitionFilter { @@ -7777,6 +15895,8 @@ export interface ResourceDefinitionFilter { createdAt?: DatetimeFilter; /** Filter by the object’s `createdBy` field. */ createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; /** Filter by the object’s `defaultSpec` field. */ @@ -7815,6 +15935,8 @@ export interface ResourceDefinitionFilter { updatedAt?: DatetimeFilter; /** Filter by the object’s `updatedBy` field. */ updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } /** An input for mutations affecting `ResourceDefinition` */ export interface ResourceDefinitionInput { @@ -7822,6 +15944,7 @@ export interface ResourceDefinitionInput { annotations?: unknown; createdAt?: string; createdBy?: string; + createdByPrincipal?: string; /** Database that owns this resource (database-scoped isolation) */ databaseId: string; /** Template spec for creating resource instances of this kind */ @@ -7851,6 +15974,7 @@ export interface ResourceDefinitionInput { stepUpMinAge?: IntervalInput; updatedAt?: string; updatedBy?: string; + updatedByPrincipal?: string; } /** Represents an update to a `ResourceDefinition`. Fields that are set will be updated. */ export interface ResourceDefinitionPatch { @@ -7858,6 +15982,7 @@ export interface ResourceDefinitionPatch { annotations?: unknown; createdAt?: string; createdBy?: string; + createdByPrincipal?: string; /** Database that owns this resource (database-scoped isolation) */ databaseId?: string; /** Template spec for creating resource instances of this kind */ @@ -7887,6 +16012,7 @@ export interface ResourceDefinitionPatch { stepUpMinAge?: IntervalInput; updatedAt?: string; updatedBy?: string; + updatedByPrincipal?: string; } /** A filter to be used against many `Resource` object types. All fields are combined with a logical ‘and.’ */ export interface ResourceDefinitionToManyResourceFilter { @@ -7924,7 +16050,7 @@ export interface ResourceEventFilter { } /** An input for mutations affecting `ResourceEvent` */ export interface ResourceEventInput { - /** User who triggered this event (NULL for system/automated) */ + /** User who triggered this event; NULL only when no human actor was proven */ actorId?: string; /** Event timestamp (partition key) */ createdAt?: string; @@ -7943,7 +16069,7 @@ export interface ResourceEventInput { } /** Represents an update to a `ResourceEvent`. Fields that are set will be updated. */ export interface ResourceEventPatch { - /** User who triggered this event (NULL for system/automated) */ + /** User who triggered this event; NULL only when no human actor was proven */ actorId?: string; /** Event timestamp (partition key) */ createdAt?: string; @@ -7974,12 +16100,16 @@ export interface ResourceFilter { createdAt?: DatetimeFilter; /** Filter by the object’s `createdBy` field. */ createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; /** Filter by the object’s `errorCount` field. */ errorCount?: IntFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `imageRef` field. */ + imageRef?: StringFilter; /** Filter by the object’s `installation` relation. */ installation?: ResourceInstallationFilter; /** A related `installation` exists. */ @@ -8036,10 +16166,14 @@ export interface ResourceFilter { storageClass?: StringFilter; /** Filter by the object’s `storageSizeBytes` field. */ storageSizeBytes?: BigIntFilter; + /** Filter by the object’s `storageTotalBytes` field. */ + storageTotalBytes?: BigIntFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; /** Filter by the object’s `updatedBy` field. */ updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } /** An input for mutations affecting `Resource` */ export interface ResourceInput { @@ -8047,11 +16181,14 @@ export interface ResourceInput { annotations?: unknown; createdAt?: string; createdBy?: string; + createdByPrincipal?: string; /** Database that owns this resource (database-scoped isolation) */ databaseId: string; /** Cumulative error count for this resource */ errorCount?: number; id?: string; + /** Pinned image reference this resource runs (registry host/repository:tag or @digest), written by promotion; NULL means spec.image decides */ + imageRef?: string; /** Installation ("release") this resource belongs to (NULL for standalone resources) */ installationId?: string; /** Provider slugs (e.g. mailgun, postgres) associated with this resource. The UI uses this to auto-fill required_secrets and required_configs from integration_providers. */ @@ -8086,6 +16223,7 @@ export interface ResourceInput { statusObserved?: unknown; updatedAt?: string; updatedBy?: string; + updatedByPrincipal?: string; } /** A filter to be used against `ResourceInstallation` object types. All fields are combined with a logical ‘and.’ */ export interface ResourceInstallationFilter { @@ -8097,6 +16235,8 @@ export interface ResourceInstallationFilter { createdAt?: DatetimeFilter; /** Filter by the object’s `createdBy` field. */ createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; /** Filter by the object’s `id` field. */ @@ -8113,6 +16253,10 @@ export interface ResourceInstallationFilter { or?: ResourceInstallationFilter[]; /** Filter by the object’s `params` field. */ params?: JSONFilter; + /** Filter by the object’s `registriesByInstallationId` relation. */ + registriesByInstallationId?: ResourceInstallationToManyRegistryFilter; + /** `registriesByInstallationId` exist. */ + registriesByInstallationIdExist?: boolean; /** Filter by the object’s `resourcesByInstallationId` relation. */ resourcesByInstallationId?: ResourceInstallationToManyResourceFilter; /** `resourcesByInstallationId` exist. */ @@ -8129,6 +16273,8 @@ export interface ResourceInstallationFilter { updatedAt?: DatetimeFilter; /** Filter by the object’s `updatedBy` field. */ updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } /** An input for mutations affecting `ResourceInstallation` */ export interface ResourceInstallationInput { @@ -8136,6 +16282,7 @@ export interface ResourceInstallationInput { commitId?: string; createdAt?: string; createdBy?: string; + createdByPrincipal?: string; /** Database that owns this resource (database-scoped isolation) */ databaseId: string; id?: string; @@ -8155,6 +16302,7 @@ export interface ResourceInstallationInput { storeId?: string; updatedAt?: string; updatedBy?: string; + updatedByPrincipal?: string; } /** Represents an update to a `ResourceInstallation`. Fields that are set will be updated. */ export interface ResourceInstallationPatch { @@ -8162,6 +16310,7 @@ export interface ResourceInstallationPatch { commitId?: string; createdAt?: string; createdBy?: string; + createdByPrincipal?: string; /** Database that owns this resource (database-scoped isolation) */ databaseId?: string; id?: string; @@ -8181,6 +16330,16 @@ export interface ResourceInstallationPatch { storeId?: string; updatedAt?: string; updatedBy?: string; + updatedByPrincipal?: string; +} +/** A filter to be used against many `Registry` object types. All fields are combined with a logical ‘and.’ */ +export interface ResourceInstallationToManyRegistryFilter { + /** Filters to entities where every related entity matches. */ + every?: RegistryFilter; + /** Filters to entities where no related entity matches. */ + none?: RegistryFilter; + /** Filters to entities where at least one related entity matches. */ + some?: RegistryFilter; } /** A filter to be used against many `Resource` object types. All fields are combined with a logical ‘and.’ */ export interface ResourceInstallationToManyResourceFilter { @@ -8213,17 +16372,65 @@ export interface ResourceInstallationsUpgradeInput { newParams?: unknown; targetInstallationId?: string; } +/** A filter to be used against `ResourceObservedStorage` object types. All fields are combined with a logical ‘and.’ */ +export interface ResourceObservedStorageFilter { + /** Checks for all expressions in this list. */ + and?: ResourceObservedStorageFilter[]; + /** Filter by the object’s `capacity` field. */ + capacity?: StringFilter; + /** Filter by the object’s `capacityBytes` field. */ + capacityBytes?: BigIntFilter; + /** Filter by the object’s `claimName` field. */ + claimName?: StringFilter; + /** Filter by the object’s `declaredStorageClass` field. */ + declaredStorageClass?: StringFilter; + /** Filter by the object’s `declaredStorageSizeBytes` field. */ + declaredStorageSizeBytes?: BigIntFilter; + /** Filter by the object’s `declaredStorageTotalBytes` field. */ + declaredStorageTotalBytes?: BigIntFilter; + /** Filter by the object’s `installationId` field. */ + installationId?: UUIDFilter; + /** Filter by the object’s `isBound` field. */ + isBound?: BooleanFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: ResourceObservedStorageFilter; + /** Checks for any expressions in this list. */ + or?: ResourceObservedStorageFilter[]; + /** Filter by the object’s `phase` field. */ + phase?: StringFilter; + /** Filter by the object’s `requested` field. */ + requested?: StringFilter; + /** Filter by the object’s `requestedBytes` field. */ + requestedBytes?: BigIntFilter; + /** Filter by the object’s `resourceId` field. */ + resourceId?: UUIDFilter; + /** Filter by the object’s `resourceStatus` field. */ + resourceStatus?: StringFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `storageClass` field. */ + storageClass?: StringFilter; + /** Filter by the object’s `storageName` field. */ + storageName?: StringFilter; +} /** Represents an update to a `Resource`. Fields that are set will be updated. */ export interface ResourcePatch { /** Freeform metadata for tooling and operational notes */ annotations?: unknown; createdAt?: string; createdBy?: string; + createdByPrincipal?: string; /** Database that owns this resource (database-scoped isolation) */ databaseId?: string; /** Cumulative error count for this resource */ errorCount?: number; id?: string; + /** Pinned image reference this resource runs (registry host/repository:tag or @digest), written by promotion; NULL means spec.image decides */ + imageRef?: string; /** Installation ("release") this resource belongs to (NULL for standalone resources) */ installationId?: string; /** Provider slugs (e.g. mailgun, postgres) associated with this resource. The UI uses this to auto-fill required_secrets and required_configs from integration_providers. */ @@ -8258,6 +16465,7 @@ export interface ResourcePatch { statusObserved?: unknown; updatedAt?: string; updatedBy?: string; + updatedByPrincipal?: string; } /** An input for mutations affecting `ResourceRequirement` */ export interface ResourceRequirementInput { @@ -8550,12 +16758,16 @@ export interface ResourcesHealthFilter { createdAt?: DatetimeFilter; /** Filter by the object’s `createdBy` field. */ createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; /** Filter by the object’s `errorCount` field. */ errorCount?: IntFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `imageRef` field. */ + imageRef?: StringFilter; /** Filter by the object’s `installationId` field. */ installationId?: UUIDFilter; /** Filter by the object’s `integrations` field. */ @@ -8600,10 +16812,14 @@ export interface ResourcesHealthFilter { storageClass?: StringFilter; /** Filter by the object’s `storageSizeBytes` field. */ storageSizeBytes?: BigIntFilter; + /** Filter by the object’s `storageTotalBytes` field. */ + storageTotalBytes?: BigIntFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; /** Filter by the object’s `updatedBy` field. */ updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } /** A filter to be used against `ResourcesRequirementsState` object types. All fields are combined with a logical ‘and.’ */ export interface ResourcesRequirementsStateFilter { @@ -8704,6 +16920,115 @@ export interface StartExecutionInput { parentNodeName?: string; timeoutInterval?: IntervalInput; } +/** A filter to be used against String fields with pg_trgm support. All fields are combined with a logical ‘and.’ */ +export interface StringTrgmFilter { + /** 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; + /** Fuzzy matches using pg_trgm trigram similarity. Tolerates typos and misspellings. */ + similarTo?: TrgmSearchInput; + /** Starts with the specified string (case-sensitive). */ + startsWith?: string; + /** Starts with the specified string (case-insensitive). */ + startsWithInsensitive?: string; + /** Fuzzy matches using pg_trgm word_similarity. Finds the best matching substring within the column value. */ + wordSimilarTo?: TrgmSearchInput; +} +/** Input for pg_trgm fuzzy text matching. Provide a search value and optional similarity threshold. */ +export interface TrgmSearchInput { + /** Minimum similarity threshold (0.0 to 1.0). Higher = stricter matching. Default is 0.3. */ + threshold?: number; + /** The text to fuzzy-match against. Typos and misspellings are tolerated. */ + value: string; +} +export interface UpdateBuildInput { + /** An object where the defined keys will be set on the `Build` being updated. */ + buildPatch: BuildPatch; + clientMutationId?: string; + id: string; +} +export interface UpdateBuildStepInput { + /** An object where the defined keys will be set on the `BuildStep` being updated. */ + buildStepPatch: BuildStepPatch; + clientMutationId?: string; + /** Unique identifier (uuidv7 provides temporal ordering) */ + id: string; + /** When the result was recorded (partition key) */ + recordedAt: string; +} +export interface UpdateBuilderBindingInput { + /** An object where the defined keys will be set on the `BuilderBinding` being updated. */ + builderBindingPatch: BuilderBindingPatch; + clientMutationId?: string; + id: string; +} export interface UpdateContentPresetInput { clientMutationId?: string; /** An object where the defined keys will be set on the `ContentPreset` being updated. */ @@ -8711,6 +17036,74 @@ export interface UpdateContentPresetInput { /** Unique preset identifier */ id: string; } +export interface UpdateDatabaseFunctionGraphExecutionInput { + clientMutationId?: string; + /** An object where the defined keys will be set on the `DatabaseFunctionGraphExecution` being updated. */ + databaseFunctionGraphExecutionPatch: DatabaseFunctionGraphExecutionPatch; + /** Unique execution identifier */ + id: string; + /** Execution start timestamp */ + startedAt: string; +} +export interface UpdateDatabaseFunctionGraphExecutionNodeStateInput { + clientMutationId?: string; + /** Timestamp of node state creation (partition key) */ + createdAt: string; + /** An object where the defined keys will be set on the `DatabaseFunctionGraphExecutionNodeState` being updated. */ + databaseFunctionGraphExecutionNodeStatePatch: DatabaseFunctionGraphExecutionNodeStatePatch; + /** Unique node state identifier */ + id: string; +} +export interface UpdateDatabaseFunctionGraphExecutionOutputInput { + clientMutationId?: string; + /** Timestamp of output creation */ + createdAt: string; + /** An object where the defined keys will be set on the `DatabaseFunctionGraphExecutionOutput` being updated. */ + databaseFunctionGraphExecutionOutputPatch: DatabaseFunctionGraphExecutionOutputPatch; + /** Unique execution output identifier */ + id: string; +} +export interface UpdateDatabaseFunctionGraphInput { + clientMutationId?: string; + /** An object where the defined keys will be set on the `DatabaseFunctionGraph` being updated. */ + databaseFunctionGraphPatch: DatabaseFunctionGraphPatch; + /** Unique graph identifier */ + id: string; +} +export interface UpdateDatabaseGraphCommitInput { + clientMutationId?: string; + /** An object where the defined keys will be set on the `DatabaseGraphCommit` being updated. */ + databaseGraphCommitPatch: DatabaseGraphCommitPatch; + /** Database scope for multi-tenant isolation */ + databaseId: string; + /** Unique commit identifier */ + id: string; +} +export interface UpdateDatabaseGraphObjectInput { + clientMutationId?: string; + /** An object where the defined keys will be set on the `DatabaseGraphObject` being updated. */ + databaseGraphObjectPatch: DatabaseGraphObjectPatch; + /** Database scope for multi-tenant isolation */ + databaseId: string; + /** Content-addressed UUID v5 — deterministic hash of (data, kids, ktree) */ + id: string; +} +export interface UpdateDatabaseGraphRefInput { + clientMutationId?: string; + /** An object where the defined keys will be set on the `DatabaseGraphRef` being updated. */ + databaseGraphRefPatch: DatabaseGraphRefPatch; + /** Database scope for multi-tenant isolation */ + databaseId: string; + /** Unique ref identifier */ + id: string; +} +export interface UpdateDatabaseGraphStoreInput { + clientMutationId?: string; + /** An object where the defined keys will be set on the `DatabaseGraphStore` being updated. */ + databaseGraphStorePatch: DatabaseGraphStorePatch; + /** Unique store identifier */ + id: string; +} export interface UpdateDbPresetInput { clientMutationId?: string; /** An object where the defined keys will be set on the `DbPreset` being updated. */ @@ -8846,6 +17239,18 @@ export interface UpdateFunctionInvocationInput { /** Unique invocation identifier */ id: string; } +export interface UpdateImageGrantInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `ImageGrant` being updated. */ + imageGrantPatch: ImageGrantPatch; +} +export interface UpdateImageInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `Image` being updated. */ + imagePatch: ImagePatch; +} export interface UpdateInfraCommitInput { clientMutationId?: string; /** Database scope for multi-tenant isolation */ @@ -8901,6 +17306,27 @@ export interface UpdateNamespaceInput { /** An object where the defined keys will be set on the `Namespace` being updated. */ namespacePatch: NamespacePatch; } +export interface UpdatePlatformBuildInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `PlatformBuild` being updated. */ + platformBuildPatch: PlatformBuildPatch; +} +export interface UpdatePlatformBuildStepInput { + clientMutationId?: string; + /** Unique identifier (uuidv7 provides temporal ordering) */ + id: string; + /** An object where the defined keys will be set on the `PlatformBuildStep` being updated. */ + platformBuildStepPatch: PlatformBuildStepPatch; + /** When the result was recorded (partition key) */ + recordedAt: string; +} +export interface UpdatePlatformBuilderBindingInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `PlatformBuilderBinding` being updated. */ + platformBuilderBindingPatch: PlatformBuilderBindingPatch; +} export interface UpdatePlatformFunctionApiBindingInput { clientMutationId?: string; id: string; @@ -8943,72 +17369,176 @@ export interface UpdatePlatformFunctionExecutionLogInput { /** An object where the defined keys will be set on the `PlatformFunctionExecutionLog` being updated. */ platformFunctionExecutionLogPatch: PlatformFunctionExecutionLogPatch; } -export interface UpdatePlatformFunctionInvocationAttemptInput { +export interface UpdatePlatformFunctionInvocationAttemptInput { + clientMutationId?: string; + /** When the attempt result was recorded (partition key) */ + createdAt: string; + /** Unique attempt identifier */ + id: string; + /** An object where the defined keys will be set on the `PlatformFunctionInvocationAttempt` being updated. */ + platformFunctionInvocationAttemptPatch: PlatformFunctionInvocationAttemptPatch; +} +export interface UpdatePlatformFunctionInvocationInput { + clientMutationId?: string; + /** Invocation creation timestamp (partition key) */ + createdAt: string; + /** Unique invocation identifier */ + id: string; + /** An object where the defined keys will be set on the `PlatformFunctionInvocation` being updated. */ + platformFunctionInvocationPatch: PlatformFunctionInvocationPatch; +} +export interface UpdatePlatformImageGrantInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `PlatformImageGrant` being updated. */ + platformImageGrantPatch: PlatformImageGrantPatch; +} +export interface UpdatePlatformImageInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `PlatformImage` being updated. */ + platformImagePatch: PlatformImagePatch; +} +export interface UpdatePlatformInfraCommitInput { + clientMutationId?: string; + /** Unique commit identifier */ + id: string; + /** An object where the defined keys will be set on the `PlatformInfraCommit` being updated. */ + platformInfraCommitPatch: PlatformInfraCommitPatch; + /** Opaque store partition key for the global tier */ + scopeId: string; +} +export interface UpdatePlatformInfraObjectInput { + clientMutationId?: string; + /** Content-addressed UUID v5 — deterministic hash of (data, kids, ktree) */ + id: string; + /** An object where the defined keys will be set on the `PlatformInfraObject` being updated. */ + platformInfraObjectPatch: PlatformInfraObjectPatch; + /** Opaque store partition key for the global tier */ + scopeId: string; +} +export interface UpdatePlatformInfraRefInput { + clientMutationId?: string; + /** Unique ref identifier */ + id: string; + /** An object where the defined keys will be set on the `PlatformInfraRef` being updated. */ + platformInfraRefPatch: PlatformInfraRefPatch; + /** Opaque store partition key for the global tier */ + scopeId: string; +} +export interface UpdatePlatformInfraStoreInput { + clientMutationId?: string; + /** Unique store identifier */ + id: string; + /** An object where the defined keys will be set on the `PlatformInfraStore` being updated. */ + platformInfraStorePatch: PlatformInfraStorePatch; +} +export interface UpdatePlatformK8sResourceKindInput { + clientMutationId?: string; + /** Unique kind policy identifier */ + id: string; + /** An object where the defined keys will be set on the `PlatformK8sResourceKind` being updated. */ + platformK8sResourceKindPatch: PlatformK8sResourceKindPatch; +} +export interface UpdatePlatformK8sSpecRuleInput { + clientMutationId?: string; + /** Unique spec rule identifier */ + id: string; + /** An object where the defined keys will be set on the `PlatformK8sSpecRule` being updated. */ + platformK8sSpecRulePatch: PlatformK8sSpecRulePatch; +} +export interface UpdatePlatformNamespaceEventInput { + clientMutationId?: string; + /** Event timestamp (partition key) */ + createdAt: string; + /** Unique event identifier */ + id: string; + /** An object where the defined keys will be set on the `PlatformNamespaceEvent` being updated. */ + platformNamespaceEventPatch: PlatformNamespaceEventPatch; +} +export interface UpdatePlatformNamespaceInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `PlatformNamespace` being updated. */ + platformNamespacePatch: PlatformNamespacePatch; +} +export interface UpdatePlatformProposalCommentInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `PlatformProposalComment` being updated. */ + platformProposalCommentPatch: PlatformProposalCommentPatch; +} +export interface UpdatePlatformProposalFileViewInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `PlatformProposalFileView` being updated. */ + platformProposalFileViewPatch: PlatformProposalFileViewPatch; +} +export interface UpdatePlatformProposalInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `PlatformProposal` being updated. */ + platformProposalPatch: PlatformProposalPatch; +} +export interface UpdatePlatformProposalReactionInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `PlatformProposalReaction` being updated. */ + platformProposalReactionPatch: PlatformProposalReactionPatch; +} +export interface UpdatePlatformProposalReviewInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `PlatformProposalReview` being updated. */ + platformProposalReviewPatch: PlatformProposalReviewPatch; +} +export interface UpdatePlatformProposalsChunkInput { clientMutationId?: string; - /** When the attempt result was recorded (partition key) */ - createdAt: string; - /** Unique attempt identifier */ id: string; - /** An object where the defined keys will be set on the `PlatformFunctionInvocationAttempt` being updated. */ - platformFunctionInvocationAttemptPatch: PlatformFunctionInvocationAttemptPatch; + /** An object where the defined keys will be set on the `PlatformProposalsChunk` being updated. */ + platformProposalsChunkPatch: PlatformProposalsChunkPatch; } -export interface UpdatePlatformFunctionInvocationInput { +export interface UpdatePlatformRegistryBindingInput { clientMutationId?: string; - /** Invocation creation timestamp (partition key) */ - createdAt: string; - /** Unique invocation identifier */ id: string; - /** An object where the defined keys will be set on the `PlatformFunctionInvocation` being updated. */ - platformFunctionInvocationPatch: PlatformFunctionInvocationPatch; + /** An object where the defined keys will be set on the `PlatformRegistryBinding` being updated. */ + platformRegistryBindingPatch: PlatformRegistryBindingPatch; } -export interface UpdatePlatformInfraCommitInput { +export interface UpdatePlatformRegistryGrantInput { clientMutationId?: string; - /** Unique commit identifier */ id: string; - /** An object where the defined keys will be set on the `PlatformInfraCommit` being updated. */ - platformInfraCommitPatch: PlatformInfraCommitPatch; - /** Opaque store partition key for the global tier */ - scopeId: string; + /** An object where the defined keys will be set on the `PlatformRegistryGrant` being updated. */ + platformRegistryGrantPatch: PlatformRegistryGrantPatch; } -export interface UpdatePlatformInfraObjectInput { +export interface UpdatePlatformRegistryInput { clientMutationId?: string; - /** Content-addressed UUID v5 — deterministic hash of (data, kids, ktree) */ id: string; - /** An object where the defined keys will be set on the `PlatformInfraObject` being updated. */ - platformInfraObjectPatch: PlatformInfraObjectPatch; - /** Opaque store partition key for the global tier */ - scopeId: string; + /** An object where the defined keys will be set on the `PlatformRegistry` being updated. */ + platformRegistryPatch: PlatformRegistryPatch; } -export interface UpdatePlatformInfraRefInput { +export interface UpdatePlatformRepositoryEventInput { clientMutationId?: string; - /** Unique ref identifier */ id: string; - /** An object where the defined keys will be set on the `PlatformInfraRef` being updated. */ - platformInfraRefPatch: PlatformInfraRefPatch; - /** Opaque store partition key for the global tier */ - scopeId: string; + /** An object where the defined keys will be set on the `PlatformRepositoryEvent` being updated. */ + platformRepositoryEventPatch: PlatformRepositoryEventPatch; } -export interface UpdatePlatformInfraStoreInput { +export interface UpdatePlatformRepositoryInput { clientMutationId?: string; - /** Unique store identifier */ id: string; - /** An object where the defined keys will be set on the `PlatformInfraStore` being updated. */ - platformInfraStorePatch: PlatformInfraStorePatch; + /** An object where the defined keys will be set on the `PlatformRepository` being updated. */ + platformRepositoryPatch: PlatformRepositoryPatch; } -export interface UpdatePlatformNamespaceEventInput { +export interface UpdatePlatformRepositoryRequiredCheckInput { clientMutationId?: string; - /** Event timestamp (partition key) */ - createdAt: string; - /** Unique event identifier */ id: string; - /** An object where the defined keys will be set on the `PlatformNamespaceEvent` being updated. */ - platformNamespaceEventPatch: PlatformNamespaceEventPatch; + /** An object where the defined keys will be set on the `PlatformRepositoryRequiredCheck` being updated. */ + platformRepositoryRequiredCheckPatch: PlatformRepositoryRequiredCheckPatch; } -export interface UpdatePlatformNamespaceInput { +export interface UpdatePlatformRepositoryWorkflowInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `PlatformNamespace` being updated. */ - platformNamespacePatch: PlatformNamespacePatch; + /** An object where the defined keys will be set on the `PlatformRepositoryWorkflow` being updated. */ + platformRepositoryWorkflowPatch: PlatformRepositoryWorkflowPatch; } export interface UpdatePlatformResourceDefinitionInput { clientMutationId?: string; @@ -9074,6 +17604,84 @@ export interface UpdatePlatformWebhookEventInput { /** An object where the defined keys will be set on the `PlatformWebhookEvent` being updated. */ platformWebhookEventPatch: PlatformWebhookEventPatch; } +export interface UpdateProposalCommentInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `ProposalComment` being updated. */ + proposalCommentPatch: ProposalCommentPatch; +} +export interface UpdateProposalFileViewInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `ProposalFileView` being updated. */ + proposalFileViewPatch: ProposalFileViewPatch; +} +export interface UpdateProposalInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `Proposal` being updated. */ + proposalPatch: ProposalPatch; +} +export interface UpdateProposalReactionInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `ProposalReaction` being updated. */ + proposalReactionPatch: ProposalReactionPatch; +} +export interface UpdateProposalReviewInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `ProposalReview` being updated. */ + proposalReviewPatch: ProposalReviewPatch; +} +export interface UpdateProposalsChunkInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `ProposalsChunk` being updated. */ + proposalsChunkPatch: ProposalsChunkPatch; +} +export interface UpdateRegistryBindingInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `RegistryBinding` being updated. */ + registryBindingPatch: RegistryBindingPatch; +} +export interface UpdateRegistryGrantInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `RegistryGrant` being updated. */ + registryGrantPatch: RegistryGrantPatch; +} +export interface UpdateRegistryInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `Registry` being updated. */ + registryPatch: RegistryPatch; +} +export interface UpdateRepositoryEventInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `RepositoryEvent` being updated. */ + repositoryEventPatch: RepositoryEventPatch; +} +export interface UpdateRepositoryInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `Repository` being updated. */ + repositoryPatch: RepositoryPatch; +} +export interface UpdateRepositoryRequiredCheckInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `RepositoryRequiredCheck` being updated. */ + repositoryRequiredCheckPatch: RepositoryRequiredCheckPatch; +} +export interface UpdateRepositoryWorkflowInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `RepositoryWorkflow` being updated. */ + repositoryWorkflowPatch: RepositoryWorkflowPatch; +} export interface UpdateResourceDefinitionInput { clientMutationId?: string; id: string; @@ -9142,6 +17750,19 @@ export interface ValidateFunctionGraphInput { clientMutationId?: string; graphId?: string; } +/** Input for vector similarity search. Provide a query vector, optional metric, and optional max distance threshold. */ +export interface VectorNearbyInput { + /** Maximum distance threshold. Only rows within this distance are returned. */ + distance?: number; + /** When true (default for tables with @hasChunks), transparently queries the chunks table and returns the minimum distance across parent + all chunks. Set to false to only search the parent embedding. */ + includeChunks?: boolean; + /** Similarity metric to use (default: COSINE). */ + metric?: VectorMetric; + /** Natural language text to embed server-side for similarity search. Mutually exclusive with `vector` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + text?: string; + /** Query vector for similarity search. */ + vector: number[]; +} /** A filter to be used against `WebhookEndpoint` object types. All fields are combined with a logical ‘and.’ */ export interface WebhookEndpointFilter { /** Filter by the object’s `active` field. */ @@ -9152,6 +17773,8 @@ export interface WebhookEndpointFilter { createdAt?: DatetimeFilter; /** Filter by the object’s `createdBy` field. */ createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; /** Filter by the object’s `functionDefinition` relation. */ @@ -9182,6 +17805,8 @@ export interface WebhookEndpointFilter { updatedAt?: DatetimeFilter; /** Filter by the object’s `updatedBy` field. */ updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; /** Filter by the object’s `webhookEventsByEndpointId` relation. */ webhookEventsByEndpointId?: WebhookEndpointToManyWebhookEventFilter; /** `webhookEventsByEndpointId` exist. */ @@ -9193,6 +17818,7 @@ export interface WebhookEndpointInput { active?: boolean; createdAt?: string; createdBy?: string; + createdByPrincipal?: string; /** Database that owns this resource (database-scoped isolation) */ databaseId: string; /** Same-scope function definition invoked on delivery. The function must list the webhook channel in access_channels. */ @@ -9212,6 +17838,7 @@ export interface WebhookEndpointInput { signingSecretName: string; updatedAt?: string; updatedBy?: string; + updatedByPrincipal?: string; } /** Represents an update to a `WebhookEndpoint`. Fields that are set will be updated. */ export interface WebhookEndpointPatch { @@ -9219,6 +17846,7 @@ export interface WebhookEndpointPatch { active?: boolean; createdAt?: string; createdBy?: string; + createdByPrincipal?: string; /** Database that owns this resource (database-scoped isolation) */ databaseId?: string; /** Same-scope function definition invoked on delivery. The function must list the webhook channel in access_channels. */ @@ -9238,6 +17866,7 @@ export interface WebhookEndpointPatch { signingSecretName?: string; updatedAt?: string; updatedBy?: string; + updatedByPrincipal?: string; } /** A filter to be used against many `WebhookEvent` object types. All fields are combined with a logical ‘and.’ */ export interface WebhookEndpointToManyWebhookEventFilter { @@ -9341,6 +17970,27 @@ export interface WebhookEventPatch { export interface MetaSchema { tables: MetaTable[]; } +/** A connection to a list of `BuildStep` values. */ +export interface BuildStepConnection { + edges: BuildStepEdge[]; + nodes: BuildStep[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `BuilderBinding` values. */ +export interface BuilderBindingConnection { + edges: BuilderBindingEdge[]; + nodes: BuilderBinding[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `Build` values. */ +export interface BuildConnection { + edges: BuildEdge[]; + nodes: Build[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `ContentPreset` values. */ export interface ContentPresetConnection { edges: ContentPresetEdge[]; @@ -9348,6 +17998,69 @@ export interface ContentPresetConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `DatabaseFunctionGraphExecutionNodeState` values. */ +export interface DatabaseFunctionGraphExecutionNodeStateConnection { + edges: DatabaseFunctionGraphExecutionNodeStateEdge[]; + nodes: DatabaseFunctionGraphExecutionNodeState[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `DatabaseFunctionGraphExecutionOutput` values. */ +export interface DatabaseFunctionGraphExecutionOutputConnection { + edges: DatabaseFunctionGraphExecutionOutputEdge[]; + nodes: DatabaseFunctionGraphExecutionOutput[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `DatabaseFunctionGraphExecution` values. */ +export interface DatabaseFunctionGraphExecutionConnection { + edges: DatabaseFunctionGraphExecutionEdge[]; + nodes: DatabaseFunctionGraphExecution[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `DatabaseFunctionGraph` values. */ +export interface DatabaseFunctionGraphConnection { + edges: DatabaseFunctionGraphEdge[]; + nodes: DatabaseFunctionGraph[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `DatabaseGraphCommit` values. */ +export interface DatabaseGraphCommitConnection { + edges: DatabaseGraphCommitEdge[]; + nodes: DatabaseGraphCommit[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `DatabaseGraphGetAllTreeNodesRecord` values. */ +export interface DatabaseGraphGetAllTreeNodesConnection { + edges: DatabaseGraphGetAllTreeNodesEdge[]; + nodes: DatabaseGraphGetAllTreeNodesRecord[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `DatabaseGraphObject` values. */ +export interface DatabaseGraphObjectConnection { + edges: DatabaseGraphObjectEdge[]; + nodes: DatabaseGraphObject[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `DatabaseGraphRef` values. */ +export interface DatabaseGraphRefConnection { + edges: DatabaseGraphRefEdge[]; + nodes: DatabaseGraphRef[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `DatabaseGraphStore` values. */ +export interface DatabaseGraphStoreConnection { + edges: DatabaseGraphStoreEdge[]; + nodes: DatabaseGraphStore[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `DbPreset` values. */ export interface DbPresetConnection { edges: DbPresetEdge[]; @@ -9474,6 +18187,20 @@ export interface GetAllTreeNodesConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `ImageGrant` values. */ +export interface ImageGrantConnection { + edges: ImageGrantEdge[]; + nodes: ImageGrant[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `Image` values. */ +export interface ImageConnection { + edges: ImageEdge[]; + nodes: Image[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `InfraCommit` values. */ export interface InfraCommitConnection { edges: InfraCommitEdge[]; @@ -9530,6 +18257,27 @@ export interface NamespaceConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `PlatformBuildStep` values. */ +export interface PlatformBuildStepConnection { + edges: PlatformBuildStepEdge[]; + nodes: PlatformBuildStep[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `PlatformBuilderBinding` values. */ +export interface PlatformBuilderBindingConnection { + edges: PlatformBuilderBindingEdge[]; + nodes: PlatformBuilderBinding[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `PlatformBuild` values. */ +export interface PlatformBuildConnection { + edges: PlatformBuildEdge[]; + nodes: PlatformBuild[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `PlatformFunctionApiBinding` values. */ export interface PlatformFunctionApiBindingConnection { edges: PlatformFunctionApiBindingEdge[]; @@ -9586,6 +18334,20 @@ export interface PlatformFunctionInvocationConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `PlatformImageGrant` values. */ +export interface PlatformImageGrantConnection { + edges: PlatformImageGrantEdge[]; + nodes: PlatformImageGrant[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `PlatformImage` values. */ +export interface PlatformImageConnection { + edges: PlatformImageEdge[]; + nodes: PlatformImage[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `PlatformInfraCommit` values. */ export interface PlatformInfraCommitConnection { edges: PlatformInfraCommitEdge[]; @@ -9621,6 +18383,20 @@ export interface PlatformInfraStoreConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `PlatformK8sResourceKind` values. */ +export interface PlatformK8sResourceKindConnection { + edges: PlatformK8sResourceKindEdge[]; + nodes: PlatformK8sResourceKind[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `PlatformK8sSpecRule` values. */ +export interface PlatformK8sSpecRuleConnection { + edges: PlatformK8sSpecRuleEdge[]; + nodes: PlatformK8sSpecRule[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `PlatformNamespaceEvent` values. */ export interface PlatformNamespaceEventConnection { edges: PlatformNamespaceEventEdge[]; @@ -9635,6 +18411,97 @@ export interface PlatformNamespaceConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `PlatformProposalComment` values. */ +export interface PlatformProposalCommentConnection { + edges: PlatformProposalCommentEdge[]; + nodes: PlatformProposalComment[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `PlatformProposalFileView` values. */ +export interface PlatformProposalFileViewConnection { + edges: PlatformProposalFileViewEdge[]; + nodes: PlatformProposalFileView[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `PlatformProposalReaction` values. */ +export interface PlatformProposalReactionConnection { + edges: PlatformProposalReactionEdge[]; + nodes: PlatformProposalReaction[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `PlatformProposalReview` values. */ +export interface PlatformProposalReviewConnection { + edges: PlatformProposalReviewEdge[]; + nodes: PlatformProposalReview[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `PlatformProposal` values. */ +export interface PlatformProposalConnection { + edges: PlatformProposalEdge[]; + nodes: PlatformProposal[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `PlatformProposalsChunk` values. */ +export interface PlatformProposalsChunkConnection { + edges: PlatformProposalsChunkEdge[]; + nodes: PlatformProposalsChunk[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `PlatformRegistry` values. */ +export interface PlatformRegistryConnection { + edges: PlatformRegistryEdge[]; + nodes: PlatformRegistry[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `PlatformRegistryBinding` values. */ +export interface PlatformRegistryBindingConnection { + edges: PlatformRegistryBindingEdge[]; + nodes: PlatformRegistryBinding[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `PlatformRegistryGrant` values. */ +export interface PlatformRegistryGrantConnection { + edges: PlatformRegistryGrantEdge[]; + nodes: PlatformRegistryGrant[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `PlatformRepository` values. */ +export interface PlatformRepositoryConnection { + edges: PlatformRepositoryEdge[]; + nodes: PlatformRepository[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `PlatformRepositoryEvent` values. */ +export interface PlatformRepositoryEventConnection { + edges: PlatformRepositoryEventEdge[]; + nodes: PlatformRepositoryEvent[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `PlatformRepositoryRequiredCheck` values. */ +export interface PlatformRepositoryRequiredCheckConnection { + edges: PlatformRepositoryRequiredCheckEdge[]; + nodes: PlatformRepositoryRequiredCheck[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `PlatformRepositoryWorkflow` values. */ +export interface PlatformRepositoryWorkflowConnection { + edges: PlatformRepositoryWorkflowEdge[]; + nodes: PlatformRepositoryWorkflow[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `PlatformResourceDeclaredCapacity` values. */ export interface PlatformResourceDeclaredCapacityConnection { edges: PlatformResourceDeclaredCapacityEdge[]; @@ -9663,6 +18530,13 @@ export interface PlatformResourceInstallationConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `PlatformResourceObservedStorage` values. */ +export interface PlatformResourceObservedStorageConnection { + edges: PlatformResourceObservedStorageEdge[]; + nodes: PlatformResourceObservedStorage[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `PlatformResourceStatusCheck` values. */ export interface PlatformResourceStatusCheckConnection { edges: PlatformResourceStatusCheckEdge[]; @@ -9684,52 +18558,143 @@ export interface PlatformResourceUsageSummaryConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `PlatformResourceUtilization` values. */ -export interface PlatformResourceUtilizationConnection { - edges: PlatformResourceUtilizationEdge[]; - nodes: PlatformResourceUtilization[]; +/** A connection to a list of `PlatformResourceUtilization` values. */ +export interface PlatformResourceUtilizationConnection { + edges: PlatformResourceUtilizationEdge[]; + nodes: PlatformResourceUtilization[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `PlatformResource` values. */ +export interface PlatformResourceConnection { + edges: PlatformResourceEdge[]; + nodes: PlatformResource[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `PlatformResourcesHealth` values. */ +export interface PlatformResourcesHealthConnection { + edges: PlatformResourcesHealthEdge[]; + nodes: PlatformResourcesHealth[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `PlatformResourcesRequirementsState` values. */ +export interface PlatformResourcesRequirementsStateConnection { + edges: PlatformResourcesRequirementsStateEdge[]; + nodes: PlatformResourcesRequirementsState[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `PlatformResourcesResolvedRequirement` values. */ +export interface PlatformResourcesResolvedRequirementConnection { + edges: PlatformResourcesResolvedRequirementEdge[]; + nodes: PlatformResourcesResolvedRequirement[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `PlatformWebhookEndpoint` values. */ +export interface PlatformWebhookEndpointConnection { + edges: PlatformWebhookEndpointEdge[]; + nodes: PlatformWebhookEndpoint[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `PlatformWebhookEvent` values. */ +export interface PlatformWebhookEventConnection { + edges: PlatformWebhookEventEdge[]; + nodes: PlatformWebhookEvent[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `ProposalComment` values. */ +export interface ProposalCommentConnection { + edges: ProposalCommentEdge[]; + nodes: ProposalComment[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `ProposalFileView` values. */ +export interface ProposalFileViewConnection { + edges: ProposalFileViewEdge[]; + nodes: ProposalFileView[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `ProposalReaction` values. */ +export interface ProposalReactionConnection { + edges: ProposalReactionEdge[]; + nodes: ProposalReaction[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `ProposalReview` values. */ +export interface ProposalReviewConnection { + edges: ProposalReviewEdge[]; + nodes: ProposalReview[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `Proposal` values. */ +export interface ProposalConnection { + edges: ProposalEdge[]; + nodes: Proposal[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `ProposalsChunk` values. */ +export interface ProposalsChunkConnection { + edges: ProposalsChunkEdge[]; + nodes: ProposalsChunk[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `Registry` values. */ +export interface RegistryConnection { + edges: RegistryEdge[]; + nodes: Registry[]; pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `PlatformResource` values. */ -export interface PlatformResourceConnection { - edges: PlatformResourceEdge[]; - nodes: PlatformResource[]; +/** A connection to a list of `RegistryBinding` values. */ +export interface RegistryBindingConnection { + edges: RegistryBindingEdge[]; + nodes: RegistryBinding[]; pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `PlatformResourcesHealth` values. */ -export interface PlatformResourcesHealthConnection { - edges: PlatformResourcesHealthEdge[]; - nodes: PlatformResourcesHealth[]; +/** A connection to a list of `RegistryGrant` values. */ +export interface RegistryGrantConnection { + edges: RegistryGrantEdge[]; + nodes: RegistryGrant[]; pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `PlatformResourcesRequirementsState` values. */ -export interface PlatformResourcesRequirementsStateConnection { - edges: PlatformResourcesRequirementsStateEdge[]; - nodes: PlatformResourcesRequirementsState[]; +/** A connection to a list of `Repository` values. */ +export interface RepositoryConnection { + edges: RepositoryEdge[]; + nodes: Repository[]; pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `PlatformResourcesResolvedRequirement` values. */ -export interface PlatformResourcesResolvedRequirementConnection { - edges: PlatformResourcesResolvedRequirementEdge[]; - nodes: PlatformResourcesResolvedRequirement[]; +/** A connection to a list of `RepositoryEvent` values. */ +export interface RepositoryEventConnection { + edges: RepositoryEventEdge[]; + nodes: RepositoryEvent[]; pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `PlatformWebhookEndpoint` values. */ -export interface PlatformWebhookEndpointConnection { - edges: PlatformWebhookEndpointEdge[]; - nodes: PlatformWebhookEndpoint[]; +/** A connection to a list of `RepositoryRequiredCheck` values. */ +export interface RepositoryRequiredCheckConnection { + edges: RepositoryRequiredCheckEdge[]; + nodes: RepositoryRequiredCheck[]; pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `PlatformWebhookEvent` values. */ -export interface PlatformWebhookEventConnection { - edges: PlatformWebhookEventEdge[]; - nodes: PlatformWebhookEvent[]; +/** A connection to a list of `RepositoryWorkflow` values. */ +export interface RepositoryWorkflowConnection { + edges: RepositoryWorkflowEdge[]; + nodes: RepositoryWorkflow[]; pageInfo: PageInfo; totalCount: number; } @@ -9761,6 +18726,13 @@ export interface ResourceInstallationConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `ResourceObservedStorage` values. */ +export interface ResourceObservedStorageConnection { + edges: ResourceObservedStorageEdge[]; + nodes: ResourceObservedStorage[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `ResourceStatusCheck` values. */ export interface ResourceStatusCheckConnection { edges: ResourceStatusCheckEdge[]; @@ -9847,16 +18819,79 @@ export interface AddNodeAndSavePayload { clientMutationId?: string | null; result?: string | null; } +export interface ApproveNodePayload { + clientMutationId?: string | null; +} export interface CopyGraphPayload { clientMutationId?: string | null; result?: string | null; } +export interface CreateBuildPayload { + /** The `Build` that was created by this mutation. */ + build?: Build | null; + buildEdge?: BuildEdge | null; + clientMutationId?: string | null; +} +export interface CreateBuildStepPayload { + /** The `BuildStep` that was created by this mutation. */ + buildStep?: BuildStep | null; + buildStepEdge?: BuildStepEdge | null; + clientMutationId?: string | null; +} +export interface CreateBuilderBindingPayload { + /** The `BuilderBinding` that was created by this mutation. */ + builderBinding?: BuilderBinding | null; + builderBindingEdge?: BuilderBindingEdge | null; + clientMutationId?: string | null; +} export interface CreateContentPresetPayload { clientMutationId?: string | null; /** The `ContentPreset` that was created by this mutation. */ contentPreset?: ContentPreset | null; contentPresetEdge?: ContentPresetEdge | null; } +export interface CreateDatabaseFunctionGraphExecutionPayload { + clientMutationId?: string | null; + /** The `DatabaseFunctionGraphExecution` that was created by this mutation. */ + databaseFunctionGraphExecution?: DatabaseFunctionGraphExecution | null; + databaseFunctionGraphExecutionEdge?: DatabaseFunctionGraphExecutionEdge | null; +} +export interface CreateDatabaseFunctionGraphExecutionNodeStatePayload { + clientMutationId?: string | null; + /** The `DatabaseFunctionGraphExecutionNodeState` that was created by this mutation. */ + databaseFunctionGraphExecutionNodeState?: DatabaseFunctionGraphExecutionNodeState | null; + databaseFunctionGraphExecutionNodeStateEdge?: DatabaseFunctionGraphExecutionNodeStateEdge | null; +} +export interface CreateDatabaseFunctionGraphExecutionOutputPayload { + clientMutationId?: string | null; + /** The `DatabaseFunctionGraphExecutionOutput` that was created by this mutation. */ + databaseFunctionGraphExecutionOutput?: DatabaseFunctionGraphExecutionOutput | null; + databaseFunctionGraphExecutionOutputEdge?: DatabaseFunctionGraphExecutionOutputEdge | null; +} +export interface CreateDatabaseGraphCommitPayload { + clientMutationId?: string | null; + /** The `DatabaseGraphCommit` that was created by this mutation. */ + databaseGraphCommit?: DatabaseGraphCommit | null; + databaseGraphCommitEdge?: DatabaseGraphCommitEdge | null; +} +export interface CreateDatabaseGraphObjectPayload { + clientMutationId?: string | null; + /** The `DatabaseGraphObject` that was created by this mutation. */ + databaseGraphObject?: DatabaseGraphObject | null; + databaseGraphObjectEdge?: DatabaseGraphObjectEdge | null; +} +export interface CreateDatabaseGraphRefPayload { + clientMutationId?: string | null; + /** The `DatabaseGraphRef` that was created by this mutation. */ + databaseGraphRef?: DatabaseGraphRef | null; + databaseGraphRefEdge?: DatabaseGraphRefEdge | null; +} +export interface CreateDatabaseGraphStorePayload { + clientMutationId?: string | null; + /** The `DatabaseGraphStore` that was created by this mutation. */ + databaseGraphStore?: DatabaseGraphStore | null; + databaseGraphStoreEdge?: DatabaseGraphStoreEdge | null; +} export interface CreateDbPresetPayload { clientMutationId?: string | null; /** The `DbPreset` that was created by this mutation. */ @@ -9957,6 +18992,18 @@ export interface CreateFunctionInvocationAttemptPayload { functionInvocationAttempt?: FunctionInvocationAttempt | null; functionInvocationAttemptEdge?: FunctionInvocationAttemptEdge | null; } +export interface CreateImagePayload { + clientMutationId?: string | null; + /** The `Image` that was created by this mutation. */ + image?: Image | null; + imageEdge?: ImageEdge | null; +} +export interface CreateImageGrantPayload { + clientMutationId?: string | null; + /** The `ImageGrant` that was created by this mutation. */ + imageGrant?: ImageGrant | null; + imageGrantEdge?: ImageGrantEdge | null; +} export interface CreateInfraCommitPayload { clientMutationId?: string | null; /** The `InfraCommit` that was created by this mutation. */ @@ -9999,6 +19046,24 @@ export interface CreateNamespaceEventPayload { namespaceEvent?: NamespaceEvent | null; namespaceEventEdge?: NamespaceEventEdge | null; } +export interface CreatePlatformBuildPayload { + clientMutationId?: string | null; + /** The `PlatformBuild` that was created by this mutation. */ + platformBuild?: PlatformBuild | null; + platformBuildEdge?: PlatformBuildEdge | null; +} +export interface CreatePlatformBuildStepPayload { + clientMutationId?: string | null; + /** The `PlatformBuildStep` that was created by this mutation. */ + platformBuildStep?: PlatformBuildStep | null; + platformBuildStepEdge?: PlatformBuildStepEdge | null; +} +export interface CreatePlatformBuilderBindingPayload { + clientMutationId?: string | null; + /** The `PlatformBuilderBinding` that was created by this mutation. */ + platformBuilderBinding?: PlatformBuilderBinding | null; + platformBuilderBindingEdge?: PlatformBuilderBindingEdge | null; +} export interface CreatePlatformFunctionApiBindingPayload { clientMutationId?: string | null; /** The `PlatformFunctionApiBinding` that was created by this mutation. */ @@ -10047,6 +19112,18 @@ export interface CreatePlatformFunctionInvocationAttemptPayload { platformFunctionInvocationAttempt?: PlatformFunctionInvocationAttempt | null; platformFunctionInvocationAttemptEdge?: PlatformFunctionInvocationAttemptEdge | null; } +export interface CreatePlatformImagePayload { + clientMutationId?: string | null; + /** The `PlatformImage` that was created by this mutation. */ + platformImage?: PlatformImage | null; + platformImageEdge?: PlatformImageEdge | null; +} +export interface CreatePlatformImageGrantPayload { + clientMutationId?: string | null; + /** The `PlatformImageGrant` that was created by this mutation. */ + platformImageGrant?: PlatformImageGrant | null; + platformImageGrantEdge?: PlatformImageGrantEdge | null; +} export interface CreatePlatformInfraCommitPayload { clientMutationId?: string | null; /** The `PlatformInfraCommit` that was created by this mutation. */ @@ -10071,6 +19148,18 @@ export interface CreatePlatformInfraStorePayload { platformInfraStore?: PlatformInfraStore | null; platformInfraStoreEdge?: PlatformInfraStoreEdge | null; } +export interface CreatePlatformK8sResourceKindPayload { + clientMutationId?: string | null; + /** The `PlatformK8sResourceKind` that was created by this mutation. */ + platformK8sResourceKind?: PlatformK8sResourceKind | null; + platformK8sResourceKindEdge?: PlatformK8sResourceKindEdge | null; +} +export interface CreatePlatformK8sSpecRulePayload { + clientMutationId?: string | null; + /** The `PlatformK8sSpecRule` that was created by this mutation. */ + platformK8sSpecRule?: PlatformK8sSpecRule | null; + platformK8sSpecRuleEdge?: PlatformK8sSpecRuleEdge | null; +} export interface CreatePlatformNamespacePayload { clientMutationId?: string | null; /** The `PlatformNamespace` that was created by this mutation. */ @@ -10083,6 +19172,84 @@ export interface CreatePlatformNamespaceEventPayload { platformNamespaceEvent?: PlatformNamespaceEvent | null; platformNamespaceEventEdge?: PlatformNamespaceEventEdge | null; } +export interface CreatePlatformProposalPayload { + clientMutationId?: string | null; + /** The `PlatformProposal` that was created by this mutation. */ + platformProposal?: PlatformProposal | null; + platformProposalEdge?: PlatformProposalEdge | null; +} +export interface CreatePlatformProposalCommentPayload { + clientMutationId?: string | null; + /** The `PlatformProposalComment` that was created by this mutation. */ + platformProposalComment?: PlatformProposalComment | null; + platformProposalCommentEdge?: PlatformProposalCommentEdge | null; +} +export interface CreatePlatformProposalFileViewPayload { + clientMutationId?: string | null; + /** The `PlatformProposalFileView` that was created by this mutation. */ + platformProposalFileView?: PlatformProposalFileView | null; + platformProposalFileViewEdge?: PlatformProposalFileViewEdge | null; +} +export interface CreatePlatformProposalReactionPayload { + clientMutationId?: string | null; + /** The `PlatformProposalReaction` that was created by this mutation. */ + platformProposalReaction?: PlatformProposalReaction | null; + platformProposalReactionEdge?: PlatformProposalReactionEdge | null; +} +export interface CreatePlatformProposalReviewPayload { + clientMutationId?: string | null; + /** The `PlatformProposalReview` that was created by this mutation. */ + platformProposalReview?: PlatformProposalReview | null; + platformProposalReviewEdge?: PlatformProposalReviewEdge | null; +} +export interface CreatePlatformProposalsChunkPayload { + clientMutationId?: string | null; + /** The `PlatformProposalsChunk` that was created by this mutation. */ + platformProposalsChunk?: PlatformProposalsChunk | null; + platformProposalsChunkEdge?: PlatformProposalsChunkEdge | null; +} +export interface CreatePlatformRegistryPayload { + clientMutationId?: string | null; + /** The `PlatformRegistry` that was created by this mutation. */ + platformRegistry?: PlatformRegistry | null; + platformRegistryEdge?: PlatformRegistryEdge | null; +} +export interface CreatePlatformRegistryBindingPayload { + clientMutationId?: string | null; + /** The `PlatformRegistryBinding` that was created by this mutation. */ + platformRegistryBinding?: PlatformRegistryBinding | null; + platformRegistryBindingEdge?: PlatformRegistryBindingEdge | null; +} +export interface CreatePlatformRegistryGrantPayload { + clientMutationId?: string | null; + /** The `PlatformRegistryGrant` that was created by this mutation. */ + platformRegistryGrant?: PlatformRegistryGrant | null; + platformRegistryGrantEdge?: PlatformRegistryGrantEdge | null; +} +export interface CreatePlatformRepositoryPayload { + clientMutationId?: string | null; + /** The `PlatformRepository` that was created by this mutation. */ + platformRepository?: PlatformRepository | null; + platformRepositoryEdge?: PlatformRepositoryEdge | null; +} +export interface CreatePlatformRepositoryEventPayload { + clientMutationId?: string | null; + /** The `PlatformRepositoryEvent` that was created by this mutation. */ + platformRepositoryEvent?: PlatformRepositoryEvent | null; + platformRepositoryEventEdge?: PlatformRepositoryEventEdge | null; +} +export interface CreatePlatformRepositoryRequiredCheckPayload { + clientMutationId?: string | null; + /** The `PlatformRepositoryRequiredCheck` that was created by this mutation. */ + platformRepositoryRequiredCheck?: PlatformRepositoryRequiredCheck | null; + platformRepositoryRequiredCheckEdge?: PlatformRepositoryRequiredCheckEdge | null; +} +export interface CreatePlatformRepositoryWorkflowPayload { + clientMutationId?: string | null; + /** The `PlatformRepositoryWorkflow` that was created by this mutation. */ + platformRepositoryWorkflow?: PlatformRepositoryWorkflow | null; + platformRepositoryWorkflowEdge?: PlatformRepositoryWorkflowEdge | null; +} export interface CreatePlatformResourcePayload { clientMutationId?: string | null; /** The `PlatformResource` that was created by this mutation. */ @@ -10137,6 +19304,84 @@ export interface CreatePlatformWebhookEventPayload { platformWebhookEvent?: PlatformWebhookEvent | null; platformWebhookEventEdge?: PlatformWebhookEventEdge | null; } +export interface CreateProposalPayload { + clientMutationId?: string | null; + /** The `Proposal` that was created by this mutation. */ + proposal?: Proposal | null; + proposalEdge?: ProposalEdge | null; +} +export interface CreateProposalCommentPayload { + clientMutationId?: string | null; + /** The `ProposalComment` that was created by this mutation. */ + proposalComment?: ProposalComment | null; + proposalCommentEdge?: ProposalCommentEdge | null; +} +export interface CreateProposalFileViewPayload { + clientMutationId?: string | null; + /** The `ProposalFileView` that was created by this mutation. */ + proposalFileView?: ProposalFileView | null; + proposalFileViewEdge?: ProposalFileViewEdge | null; +} +export interface CreateProposalReactionPayload { + clientMutationId?: string | null; + /** The `ProposalReaction` that was created by this mutation. */ + proposalReaction?: ProposalReaction | null; + proposalReactionEdge?: ProposalReactionEdge | null; +} +export interface CreateProposalReviewPayload { + clientMutationId?: string | null; + /** The `ProposalReview` that was created by this mutation. */ + proposalReview?: ProposalReview | null; + proposalReviewEdge?: ProposalReviewEdge | null; +} +export interface CreateProposalsChunkPayload { + clientMutationId?: string | null; + /** The `ProposalsChunk` that was created by this mutation. */ + proposalsChunk?: ProposalsChunk | null; + proposalsChunkEdge?: ProposalsChunkEdge | null; +} +export interface CreateRegistryPayload { + clientMutationId?: string | null; + /** The `Registry` that was created by this mutation. */ + registry?: Registry | null; + registryEdge?: RegistryEdge | null; +} +export interface CreateRegistryBindingPayload { + clientMutationId?: string | null; + /** The `RegistryBinding` that was created by this mutation. */ + registryBinding?: RegistryBinding | null; + registryBindingEdge?: RegistryBindingEdge | null; +} +export interface CreateRegistryGrantPayload { + clientMutationId?: string | null; + /** The `RegistryGrant` that was created by this mutation. */ + registryGrant?: RegistryGrant | null; + registryGrantEdge?: RegistryGrantEdge | null; +} +export interface CreateRepositoryPayload { + clientMutationId?: string | null; + /** The `Repository` that was created by this mutation. */ + repository?: Repository | null; + repositoryEdge?: RepositoryEdge | null; +} +export interface CreateRepositoryEventPayload { + clientMutationId?: string | null; + /** The `RepositoryEvent` that was created by this mutation. */ + repositoryEvent?: RepositoryEvent | null; + repositoryEventEdge?: RepositoryEventEdge | null; +} +export interface CreateRepositoryRequiredCheckPayload { + clientMutationId?: string | null; + /** The `RepositoryRequiredCheck` that was created by this mutation. */ + repositoryRequiredCheck?: RepositoryRequiredCheck | null; + repositoryRequiredCheckEdge?: RepositoryRequiredCheckEdge | null; +} +export interface CreateRepositoryWorkflowPayload { + clientMutationId?: string | null; + /** The `RepositoryWorkflow` that was created by this mutation. */ + repositoryWorkflow?: RepositoryWorkflow | null; + repositoryWorkflowEdge?: RepositoryWorkflowEdge | null; +} export interface CreateResourcePayload { clientMutationId?: string | null; /** The `Resource` that was created by this mutation. */ @@ -10191,12 +19436,149 @@ export interface CreateWebhookEventPayload { webhookEvent?: WebhookEvent | null; webhookEventEdge?: WebhookEventEdge | null; } +export interface DatabaseAddEdgePayload { + clientMutationId?: string | null; + result?: string | null; +} +export interface DatabaseAddEdgeAndSavePayload { + clientMutationId?: string | null; + result?: string | null; +} +export interface DatabaseAddNodePayload { + clientMutationId?: string | null; + result?: string | null; +} +export interface DatabaseAddNodeAndSavePayload { + clientMutationId?: string | null; + result?: string | null; +} +export interface DatabaseApproveNodePayload { + clientMutationId?: string | null; +} +export interface DatabaseCopyGraphPayload { + clientMutationId?: string | null; + result?: string | null; +} +export interface DatabaseCreateFunctionGraphPayload { + clientMutationId?: string | null; + result?: string | null; +} +export interface DatabaseGraphInitEmptyRepoPayload { + clientMutationId?: string | null; +} +export interface DatabaseGraphInsertNodeAtPathPayload { + clientMutationId?: string | null; + result?: string | null; +} +export interface DatabaseGraphInsertNodesAtPathsPayload { + clientMutationId?: string | null; + result?: string | null; +} +export interface DatabaseGraphSetAndCommitPayload { + clientMutationId?: string | null; + databaseGraphCommitEdge?: DatabaseGraphCommitEdge | null; + result?: DatabaseGraphCommit | null; +} +export interface DatabaseGraphSetDataAtPathPayload { + clientMutationId?: string | null; + result?: string | null; +} +export interface DatabaseGraphSetManyAndCommitPayload { + clientMutationId?: string | null; + databaseGraphCommitEdge?: DatabaseGraphCommitEdge | null; + result?: DatabaseGraphCommit | null; +} +export interface DatabaseImportDefinitionsPayload { + clientMutationId?: string | null; +} +export interface DatabaseImportGraphJsonPayload { + clientMutationId?: string | null; + result?: string | null; +} +export interface DatabaseSaveGraphPayload { + clientMutationId?: string | null; + result?: string | null; +} +export interface DatabaseStartExecutionPayload { + clientMutationId?: string | null; + result?: string | null; +} +export interface DatabaseValidateFunctionGraphPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export interface DeleteBuildPayload { + /** The `Build` that was deleted by this mutation. */ + build?: Build | null; + buildEdge?: BuildEdge | null; + clientMutationId?: string | null; +} +export interface DeleteBuildStepPayload { + /** The `BuildStep` that was deleted by this mutation. */ + buildStep?: BuildStep | null; + buildStepEdge?: BuildStepEdge | null; + clientMutationId?: string | null; +} +export interface DeleteBuilderBindingPayload { + /** The `BuilderBinding` that was deleted by this mutation. */ + builderBinding?: BuilderBinding | null; + builderBindingEdge?: BuilderBindingEdge | null; + clientMutationId?: string | null; +} export interface DeleteContentPresetPayload { clientMutationId?: string | null; /** The `ContentPreset` that was deleted by this mutation. */ contentPreset?: ContentPreset | null; contentPresetEdge?: ContentPresetEdge | null; } +export interface DeleteDatabaseFunctionGraphPayload { + clientMutationId?: string | null; + /** The `DatabaseFunctionGraph` that was deleted by this mutation. */ + databaseFunctionGraph?: DatabaseFunctionGraph | null; + databaseFunctionGraphEdge?: DatabaseFunctionGraphEdge | null; +} +export interface DeleteDatabaseFunctionGraphExecutionPayload { + clientMutationId?: string | null; + /** The `DatabaseFunctionGraphExecution` that was deleted by this mutation. */ + databaseFunctionGraphExecution?: DatabaseFunctionGraphExecution | null; + databaseFunctionGraphExecutionEdge?: DatabaseFunctionGraphExecutionEdge | null; +} +export interface DeleteDatabaseFunctionGraphExecutionNodeStatePayload { + clientMutationId?: string | null; + /** The `DatabaseFunctionGraphExecutionNodeState` that was deleted by this mutation. */ + databaseFunctionGraphExecutionNodeState?: DatabaseFunctionGraphExecutionNodeState | null; + databaseFunctionGraphExecutionNodeStateEdge?: DatabaseFunctionGraphExecutionNodeStateEdge | null; +} +export interface DeleteDatabaseFunctionGraphExecutionOutputPayload { + clientMutationId?: string | null; + /** The `DatabaseFunctionGraphExecutionOutput` that was deleted by this mutation. */ + databaseFunctionGraphExecutionOutput?: DatabaseFunctionGraphExecutionOutput | null; + databaseFunctionGraphExecutionOutputEdge?: DatabaseFunctionGraphExecutionOutputEdge | null; +} +export interface DeleteDatabaseGraphCommitPayload { + clientMutationId?: string | null; + /** The `DatabaseGraphCommit` that was deleted by this mutation. */ + databaseGraphCommit?: DatabaseGraphCommit | null; + databaseGraphCommitEdge?: DatabaseGraphCommitEdge | null; +} +export interface DeleteDatabaseGraphObjectPayload { + clientMutationId?: string | null; + /** The `DatabaseGraphObject` that was deleted by this mutation. */ + databaseGraphObject?: DatabaseGraphObject | null; + databaseGraphObjectEdge?: DatabaseGraphObjectEdge | null; +} +export interface DeleteDatabaseGraphRefPayload { + clientMutationId?: string | null; + /** The `DatabaseGraphRef` that was deleted by this mutation. */ + databaseGraphRef?: DatabaseGraphRef | null; + databaseGraphRefEdge?: DatabaseGraphRefEdge | null; +} +export interface DeleteDatabaseGraphStorePayload { + clientMutationId?: string | null; + /** The `DatabaseGraphStore` that was deleted by this mutation. */ + databaseGraphStore?: DatabaseGraphStore | null; + databaseGraphStoreEdge?: DatabaseGraphStoreEdge | null; +} export interface DeleteDbPresetPayload { clientMutationId?: string | null; /** The `DbPreset` that was deleted by this mutation. */ @@ -10299,6 +19681,18 @@ export interface DeleteFunctionInvocationAttemptPayload { functionInvocationAttempt?: FunctionInvocationAttempt | null; functionInvocationAttemptEdge?: FunctionInvocationAttemptEdge | null; } +export interface DeleteImagePayload { + clientMutationId?: string | null; + /** The `Image` that was deleted by this mutation. */ + image?: Image | null; + imageEdge?: ImageEdge | null; +} +export interface DeleteImageGrantPayload { + clientMutationId?: string | null; + /** The `ImageGrant` that was deleted by this mutation. */ + imageGrant?: ImageGrant | null; + imageGrantEdge?: ImageGrantEdge | null; +} export interface DeleteInfraCommitPayload { clientMutationId?: string | null; /** The `InfraCommit` that was deleted by this mutation. */ @@ -10341,6 +19735,24 @@ export interface DeleteNamespaceEventPayload { namespaceEvent?: NamespaceEvent | null; namespaceEventEdge?: NamespaceEventEdge | null; } +export interface DeletePlatformBuildPayload { + clientMutationId?: string | null; + /** The `PlatformBuild` that was deleted by this mutation. */ + platformBuild?: PlatformBuild | null; + platformBuildEdge?: PlatformBuildEdge | null; +} +export interface DeletePlatformBuildStepPayload { + clientMutationId?: string | null; + /** The `PlatformBuildStep` that was deleted by this mutation. */ + platformBuildStep?: PlatformBuildStep | null; + platformBuildStepEdge?: PlatformBuildStepEdge | null; +} +export interface DeletePlatformBuilderBindingPayload { + clientMutationId?: string | null; + /** The `PlatformBuilderBinding` that was deleted by this mutation. */ + platformBuilderBinding?: PlatformBuilderBinding | null; + platformBuilderBindingEdge?: PlatformBuilderBindingEdge | null; +} export interface DeletePlatformFunctionApiBindingPayload { clientMutationId?: string | null; /** The `PlatformFunctionApiBinding` that was deleted by this mutation. */ @@ -10389,41 +19801,143 @@ export interface DeletePlatformFunctionInvocationAttemptPayload { platformFunctionInvocationAttempt?: PlatformFunctionInvocationAttempt | null; platformFunctionInvocationAttemptEdge?: PlatformFunctionInvocationAttemptEdge | null; } +export interface DeletePlatformImagePayload { + clientMutationId?: string | null; + /** The `PlatformImage` that was deleted by this mutation. */ + platformImage?: PlatformImage | null; + platformImageEdge?: PlatformImageEdge | null; +} +export interface DeletePlatformImageGrantPayload { + clientMutationId?: string | null; + /** The `PlatformImageGrant` that was deleted by this mutation. */ + platformImageGrant?: PlatformImageGrant | null; + platformImageGrantEdge?: PlatformImageGrantEdge | null; +} export interface DeletePlatformInfraCommitPayload { clientMutationId?: string | null; /** The `PlatformInfraCommit` that was deleted by this mutation. */ platformInfraCommit?: PlatformInfraCommit | null; platformInfraCommitEdge?: PlatformInfraCommitEdge | null; } -export interface DeletePlatformInfraObjectPayload { +export interface DeletePlatformInfraObjectPayload { + clientMutationId?: string | null; + /** The `PlatformInfraObject` that was deleted by this mutation. */ + platformInfraObject?: PlatformInfraObject | null; + platformInfraObjectEdge?: PlatformInfraObjectEdge | null; +} +export interface DeletePlatformInfraRefPayload { + clientMutationId?: string | null; + /** The `PlatformInfraRef` that was deleted by this mutation. */ + platformInfraRef?: PlatformInfraRef | null; + platformInfraRefEdge?: PlatformInfraRefEdge | null; +} +export interface DeletePlatformInfraStorePayload { + clientMutationId?: string | null; + /** The `PlatformInfraStore` that was deleted by this mutation. */ + platformInfraStore?: PlatformInfraStore | null; + platformInfraStoreEdge?: PlatformInfraStoreEdge | null; +} +export interface DeletePlatformK8sResourceKindPayload { + clientMutationId?: string | null; + /** The `PlatformK8sResourceKind` that was deleted by this mutation. */ + platformK8sResourceKind?: PlatformK8sResourceKind | null; + platformK8sResourceKindEdge?: PlatformK8sResourceKindEdge | null; +} +export interface DeletePlatformK8sSpecRulePayload { + clientMutationId?: string | null; + /** The `PlatformK8sSpecRule` that was deleted by this mutation. */ + platformK8sSpecRule?: PlatformK8sSpecRule | null; + platformK8sSpecRuleEdge?: PlatformK8sSpecRuleEdge | null; +} +export interface DeletePlatformNamespacePayload { + clientMutationId?: string | null; + /** The `PlatformNamespace` that was deleted by this mutation. */ + platformNamespace?: PlatformNamespace | null; + platformNamespaceEdge?: PlatformNamespaceEdge | null; +} +export interface DeletePlatformNamespaceEventPayload { + clientMutationId?: string | null; + /** The `PlatformNamespaceEvent` that was deleted by this mutation. */ + platformNamespaceEvent?: PlatformNamespaceEvent | null; + platformNamespaceEventEdge?: PlatformNamespaceEventEdge | null; +} +export interface DeletePlatformProposalPayload { + clientMutationId?: string | null; + /** The `PlatformProposal` that was deleted by this mutation. */ + platformProposal?: PlatformProposal | null; + platformProposalEdge?: PlatformProposalEdge | null; +} +export interface DeletePlatformProposalCommentPayload { + clientMutationId?: string | null; + /** The `PlatformProposalComment` that was deleted by this mutation. */ + platformProposalComment?: PlatformProposalComment | null; + platformProposalCommentEdge?: PlatformProposalCommentEdge | null; +} +export interface DeletePlatformProposalFileViewPayload { + clientMutationId?: string | null; + /** The `PlatformProposalFileView` that was deleted by this mutation. */ + platformProposalFileView?: PlatformProposalFileView | null; + platformProposalFileViewEdge?: PlatformProposalFileViewEdge | null; +} +export interface DeletePlatformProposalReactionPayload { + clientMutationId?: string | null; + /** The `PlatformProposalReaction` that was deleted by this mutation. */ + platformProposalReaction?: PlatformProposalReaction | null; + platformProposalReactionEdge?: PlatformProposalReactionEdge | null; +} +export interface DeletePlatformProposalReviewPayload { + clientMutationId?: string | null; + /** The `PlatformProposalReview` that was deleted by this mutation. */ + platformProposalReview?: PlatformProposalReview | null; + platformProposalReviewEdge?: PlatformProposalReviewEdge | null; +} +export interface DeletePlatformProposalsChunkPayload { + clientMutationId?: string | null; + /** The `PlatformProposalsChunk` that was deleted by this mutation. */ + platformProposalsChunk?: PlatformProposalsChunk | null; + platformProposalsChunkEdge?: PlatformProposalsChunkEdge | null; +} +export interface DeletePlatformRegistryPayload { + clientMutationId?: string | null; + /** The `PlatformRegistry` that was deleted by this mutation. */ + platformRegistry?: PlatformRegistry | null; + platformRegistryEdge?: PlatformRegistryEdge | null; +} +export interface DeletePlatformRegistryBindingPayload { clientMutationId?: string | null; - /** The `PlatformInfraObject` that was deleted by this mutation. */ - platformInfraObject?: PlatformInfraObject | null; - platformInfraObjectEdge?: PlatformInfraObjectEdge | null; + /** The `PlatformRegistryBinding` that was deleted by this mutation. */ + platformRegistryBinding?: PlatformRegistryBinding | null; + platformRegistryBindingEdge?: PlatformRegistryBindingEdge | null; } -export interface DeletePlatformInfraRefPayload { +export interface DeletePlatformRegistryGrantPayload { clientMutationId?: string | null; - /** The `PlatformInfraRef` that was deleted by this mutation. */ - platformInfraRef?: PlatformInfraRef | null; - platformInfraRefEdge?: PlatformInfraRefEdge | null; + /** The `PlatformRegistryGrant` that was deleted by this mutation. */ + platformRegistryGrant?: PlatformRegistryGrant | null; + platformRegistryGrantEdge?: PlatformRegistryGrantEdge | null; } -export interface DeletePlatformInfraStorePayload { +export interface DeletePlatformRepositoryPayload { clientMutationId?: string | null; - /** The `PlatformInfraStore` that was deleted by this mutation. */ - platformInfraStore?: PlatformInfraStore | null; - platformInfraStoreEdge?: PlatformInfraStoreEdge | null; + /** The `PlatformRepository` that was deleted by this mutation. */ + platformRepository?: PlatformRepository | null; + platformRepositoryEdge?: PlatformRepositoryEdge | null; } -export interface DeletePlatformNamespacePayload { +export interface DeletePlatformRepositoryEventPayload { clientMutationId?: string | null; - /** The `PlatformNamespace` that was deleted by this mutation. */ - platformNamespace?: PlatformNamespace | null; - platformNamespaceEdge?: PlatformNamespaceEdge | null; + /** The `PlatformRepositoryEvent` that was deleted by this mutation. */ + platformRepositoryEvent?: PlatformRepositoryEvent | null; + platformRepositoryEventEdge?: PlatformRepositoryEventEdge | null; } -export interface DeletePlatformNamespaceEventPayload { +export interface DeletePlatformRepositoryRequiredCheckPayload { clientMutationId?: string | null; - /** The `PlatformNamespaceEvent` that was deleted by this mutation. */ - platformNamespaceEvent?: PlatformNamespaceEvent | null; - platformNamespaceEventEdge?: PlatformNamespaceEventEdge | null; + /** The `PlatformRepositoryRequiredCheck` that was deleted by this mutation. */ + platformRepositoryRequiredCheck?: PlatformRepositoryRequiredCheck | null; + platformRepositoryRequiredCheckEdge?: PlatformRepositoryRequiredCheckEdge | null; +} +export interface DeletePlatformRepositoryWorkflowPayload { + clientMutationId?: string | null; + /** The `PlatformRepositoryWorkflow` that was deleted by this mutation. */ + platformRepositoryWorkflow?: PlatformRepositoryWorkflow | null; + platformRepositoryWorkflowEdge?: PlatformRepositoryWorkflowEdge | null; } export interface DeletePlatformResourcePayload { clientMutationId?: string | null; @@ -10479,6 +19993,84 @@ export interface DeletePlatformWebhookEventPayload { platformWebhookEvent?: PlatformWebhookEvent | null; platformWebhookEventEdge?: PlatformWebhookEventEdge | null; } +export interface DeleteProposalPayload { + clientMutationId?: string | null; + /** The `Proposal` that was deleted by this mutation. */ + proposal?: Proposal | null; + proposalEdge?: ProposalEdge | null; +} +export interface DeleteProposalCommentPayload { + clientMutationId?: string | null; + /** The `ProposalComment` that was deleted by this mutation. */ + proposalComment?: ProposalComment | null; + proposalCommentEdge?: ProposalCommentEdge | null; +} +export interface DeleteProposalFileViewPayload { + clientMutationId?: string | null; + /** The `ProposalFileView` that was deleted by this mutation. */ + proposalFileView?: ProposalFileView | null; + proposalFileViewEdge?: ProposalFileViewEdge | null; +} +export interface DeleteProposalReactionPayload { + clientMutationId?: string | null; + /** The `ProposalReaction` that was deleted by this mutation. */ + proposalReaction?: ProposalReaction | null; + proposalReactionEdge?: ProposalReactionEdge | null; +} +export interface DeleteProposalReviewPayload { + clientMutationId?: string | null; + /** The `ProposalReview` that was deleted by this mutation. */ + proposalReview?: ProposalReview | null; + proposalReviewEdge?: ProposalReviewEdge | null; +} +export interface DeleteProposalsChunkPayload { + clientMutationId?: string | null; + /** The `ProposalsChunk` that was deleted by this mutation. */ + proposalsChunk?: ProposalsChunk | null; + proposalsChunkEdge?: ProposalsChunkEdge | null; +} +export interface DeleteRegistryPayload { + clientMutationId?: string | null; + /** The `Registry` that was deleted by this mutation. */ + registry?: Registry | null; + registryEdge?: RegistryEdge | null; +} +export interface DeleteRegistryBindingPayload { + clientMutationId?: string | null; + /** The `RegistryBinding` that was deleted by this mutation. */ + registryBinding?: RegistryBinding | null; + registryBindingEdge?: RegistryBindingEdge | null; +} +export interface DeleteRegistryGrantPayload { + clientMutationId?: string | null; + /** The `RegistryGrant` that was deleted by this mutation. */ + registryGrant?: RegistryGrant | null; + registryGrantEdge?: RegistryGrantEdge | null; +} +export interface DeleteRepositoryPayload { + clientMutationId?: string | null; + /** The `Repository` that was deleted by this mutation. */ + repository?: Repository | null; + repositoryEdge?: RepositoryEdge | null; +} +export interface DeleteRepositoryEventPayload { + clientMutationId?: string | null; + /** The `RepositoryEvent` that was deleted by this mutation. */ + repositoryEvent?: RepositoryEvent | null; + repositoryEventEdge?: RepositoryEventEdge | null; +} +export interface DeleteRepositoryRequiredCheckPayload { + clientMutationId?: string | null; + /** The `RepositoryRequiredCheck` that was deleted by this mutation. */ + repositoryRequiredCheck?: RepositoryRequiredCheck | null; + repositoryRequiredCheckEdge?: RepositoryRequiredCheckEdge | null; +} +export interface DeleteRepositoryWorkflowPayload { + clientMutationId?: string | null; + /** The `RepositoryWorkflow` that was deleted by this mutation. */ + repositoryWorkflow?: RepositoryWorkflow | null; + repositoryWorkflowEdge?: RepositoryWorkflowEdge | null; +} export interface DeleteResourcePayload { clientMutationId?: string | null; /** The `Resource` that was deleted by this mutation. */ @@ -10533,6 +20125,11 @@ export interface DeleteWebhookEventPayload { webhookEvent?: WebhookEvent | null; webhookEventEdge?: WebhookEventEdge | null; } +export interface FunctionInvocationsCreateSyncPayload { + clientMutationId?: string | null; + functionInvocationEdge?: FunctionInvocationEdge | null; + result?: FunctionInvocation | null; +} export interface ImportDefinitionsPayload { clientMutationId?: string | null; } @@ -10576,6 +20173,11 @@ export interface InsertNodesAtPathsPayload { clientMutationId?: string | null; result?: string | null; } +export interface PlatformFunctionInvocationsCreateSyncPayload { + clientMutationId?: string | null; + platformFunctionInvocationEdge?: PlatformFunctionInvocationEdge | null; + result?: PlatformFunctionInvocation | null; +} export interface PlatformInfraInitEmptyRepoPayload { clientMutationId?: string | null; } @@ -10615,18 +20217,13 @@ export interface PlatformResourceInstallationsUpgradePayload { 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; + /** The logical bucket row that was queued for reconciliation. */ + bucketId: string; + bucketKey: string; + /** The reconciler job enqueued to provision this bucket. */ + jobId: string; + /** The physical bucket name already recorded, or null when reconciliation has not completed. */ + physicalName?: string | null; } export interface ResourceInstallationsInstallPayload { clientMutationId?: string | null; @@ -10663,12 +20260,78 @@ export interface StartExecutionPayload { clientMutationId?: string | null; result?: string | null; } +export interface UpdateBuildPayload { + /** The `Build` that was updated by this mutation. */ + build?: Build | null; + buildEdge?: BuildEdge | null; + clientMutationId?: string | null; +} +export interface UpdateBuildStepPayload { + /** The `BuildStep` that was updated by this mutation. */ + buildStep?: BuildStep | null; + buildStepEdge?: BuildStepEdge | null; + clientMutationId?: string | null; +} +export interface UpdateBuilderBindingPayload { + /** The `BuilderBinding` that was updated by this mutation. */ + builderBinding?: BuilderBinding | null; + builderBindingEdge?: BuilderBindingEdge | null; + clientMutationId?: string | null; +} export interface UpdateContentPresetPayload { clientMutationId?: string | null; /** The `ContentPreset` that was updated by this mutation. */ contentPreset?: ContentPreset | null; contentPresetEdge?: ContentPresetEdge | null; } +export interface UpdateDatabaseFunctionGraphPayload { + clientMutationId?: string | null; + /** The `DatabaseFunctionGraph` that was updated by this mutation. */ + databaseFunctionGraph?: DatabaseFunctionGraph | null; + databaseFunctionGraphEdge?: DatabaseFunctionGraphEdge | null; +} +export interface UpdateDatabaseFunctionGraphExecutionPayload { + clientMutationId?: string | null; + /** The `DatabaseFunctionGraphExecution` that was updated by this mutation. */ + databaseFunctionGraphExecution?: DatabaseFunctionGraphExecution | null; + databaseFunctionGraphExecutionEdge?: DatabaseFunctionGraphExecutionEdge | null; +} +export interface UpdateDatabaseFunctionGraphExecutionNodeStatePayload { + clientMutationId?: string | null; + /** The `DatabaseFunctionGraphExecutionNodeState` that was updated by this mutation. */ + databaseFunctionGraphExecutionNodeState?: DatabaseFunctionGraphExecutionNodeState | null; + databaseFunctionGraphExecutionNodeStateEdge?: DatabaseFunctionGraphExecutionNodeStateEdge | null; +} +export interface UpdateDatabaseFunctionGraphExecutionOutputPayload { + clientMutationId?: string | null; + /** The `DatabaseFunctionGraphExecutionOutput` that was updated by this mutation. */ + databaseFunctionGraphExecutionOutput?: DatabaseFunctionGraphExecutionOutput | null; + databaseFunctionGraphExecutionOutputEdge?: DatabaseFunctionGraphExecutionOutputEdge | null; +} +export interface UpdateDatabaseGraphCommitPayload { + clientMutationId?: string | null; + /** The `DatabaseGraphCommit` that was updated by this mutation. */ + databaseGraphCommit?: DatabaseGraphCommit | null; + databaseGraphCommitEdge?: DatabaseGraphCommitEdge | null; +} +export interface UpdateDatabaseGraphObjectPayload { + clientMutationId?: string | null; + /** The `DatabaseGraphObject` that was updated by this mutation. */ + databaseGraphObject?: DatabaseGraphObject | null; + databaseGraphObjectEdge?: DatabaseGraphObjectEdge | null; +} +export interface UpdateDatabaseGraphRefPayload { + clientMutationId?: string | null; + /** The `DatabaseGraphRef` that was updated by this mutation. */ + databaseGraphRef?: DatabaseGraphRef | null; + databaseGraphRefEdge?: DatabaseGraphRefEdge | null; +} +export interface UpdateDatabaseGraphStorePayload { + clientMutationId?: string | null; + /** The `DatabaseGraphStore` that was updated by this mutation. */ + databaseGraphStore?: DatabaseGraphStore | null; + databaseGraphStoreEdge?: DatabaseGraphStoreEdge | null; +} export interface UpdateDbPresetPayload { clientMutationId?: string | null; /** The `DbPreset` that was updated by this mutation. */ @@ -10771,6 +20434,18 @@ export interface UpdateFunctionInvocationAttemptPayload { functionInvocationAttempt?: FunctionInvocationAttempt | null; functionInvocationAttemptEdge?: FunctionInvocationAttemptEdge | null; } +export interface UpdateImagePayload { + clientMutationId?: string | null; + /** The `Image` that was updated by this mutation. */ + image?: Image | null; + imageEdge?: ImageEdge | null; +} +export interface UpdateImageGrantPayload { + clientMutationId?: string | null; + /** The `ImageGrant` that was updated by this mutation. */ + imageGrant?: ImageGrant | null; + imageGrantEdge?: ImageGrantEdge | null; +} export interface UpdateInfraCommitPayload { clientMutationId?: string | null; /** The `InfraCommit` that was updated by this mutation. */ @@ -10813,6 +20488,24 @@ export interface UpdateNamespaceEventPayload { namespaceEvent?: NamespaceEvent | null; namespaceEventEdge?: NamespaceEventEdge | null; } +export interface UpdatePlatformBuildPayload { + clientMutationId?: string | null; + /** The `PlatformBuild` that was updated by this mutation. */ + platformBuild?: PlatformBuild | null; + platformBuildEdge?: PlatformBuildEdge | null; +} +export interface UpdatePlatformBuildStepPayload { + clientMutationId?: string | null; + /** The `PlatformBuildStep` that was updated by this mutation. */ + platformBuildStep?: PlatformBuildStep | null; + platformBuildStepEdge?: PlatformBuildStepEdge | null; +} +export interface UpdatePlatformBuilderBindingPayload { + clientMutationId?: string | null; + /** The `PlatformBuilderBinding` that was updated by this mutation. */ + platformBuilderBinding?: PlatformBuilderBinding | null; + platformBuilderBindingEdge?: PlatformBuilderBindingEdge | null; +} export interface UpdatePlatformFunctionApiBindingPayload { clientMutationId?: string | null; /** The `PlatformFunctionApiBinding` that was updated by this mutation. */ @@ -10861,6 +20554,18 @@ export interface UpdatePlatformFunctionInvocationAttemptPayload { platformFunctionInvocationAttempt?: PlatformFunctionInvocationAttempt | null; platformFunctionInvocationAttemptEdge?: PlatformFunctionInvocationAttemptEdge | null; } +export interface UpdatePlatformImagePayload { + clientMutationId?: string | null; + /** The `PlatformImage` that was updated by this mutation. */ + platformImage?: PlatformImage | null; + platformImageEdge?: PlatformImageEdge | null; +} +export interface UpdatePlatformImageGrantPayload { + clientMutationId?: string | null; + /** The `PlatformImageGrant` that was updated by this mutation. */ + platformImageGrant?: PlatformImageGrant | null; + platformImageGrantEdge?: PlatformImageGrantEdge | null; +} export interface UpdatePlatformInfraCommitPayload { clientMutationId?: string | null; /** The `PlatformInfraCommit` that was updated by this mutation. */ @@ -10885,6 +20590,18 @@ export interface UpdatePlatformInfraStorePayload { platformInfraStore?: PlatformInfraStore | null; platformInfraStoreEdge?: PlatformInfraStoreEdge | null; } +export interface UpdatePlatformK8sResourceKindPayload { + clientMutationId?: string | null; + /** The `PlatformK8sResourceKind` that was updated by this mutation. */ + platformK8sResourceKind?: PlatformK8sResourceKind | null; + platformK8sResourceKindEdge?: PlatformK8sResourceKindEdge | null; +} +export interface UpdatePlatformK8sSpecRulePayload { + clientMutationId?: string | null; + /** The `PlatformK8sSpecRule` that was updated by this mutation. */ + platformK8sSpecRule?: PlatformK8sSpecRule | null; + platformK8sSpecRuleEdge?: PlatformK8sSpecRuleEdge | null; +} export interface UpdatePlatformNamespacePayload { clientMutationId?: string | null; /** The `PlatformNamespace` that was updated by this mutation. */ @@ -10897,6 +20614,84 @@ export interface UpdatePlatformNamespaceEventPayload { platformNamespaceEvent?: PlatformNamespaceEvent | null; platformNamespaceEventEdge?: PlatformNamespaceEventEdge | null; } +export interface UpdatePlatformProposalPayload { + clientMutationId?: string | null; + /** The `PlatformProposal` that was updated by this mutation. */ + platformProposal?: PlatformProposal | null; + platformProposalEdge?: PlatformProposalEdge | null; +} +export interface UpdatePlatformProposalCommentPayload { + clientMutationId?: string | null; + /** The `PlatformProposalComment` that was updated by this mutation. */ + platformProposalComment?: PlatformProposalComment | null; + platformProposalCommentEdge?: PlatformProposalCommentEdge | null; +} +export interface UpdatePlatformProposalFileViewPayload { + clientMutationId?: string | null; + /** The `PlatformProposalFileView` that was updated by this mutation. */ + platformProposalFileView?: PlatformProposalFileView | null; + platformProposalFileViewEdge?: PlatformProposalFileViewEdge | null; +} +export interface UpdatePlatformProposalReactionPayload { + clientMutationId?: string | null; + /** The `PlatformProposalReaction` that was updated by this mutation. */ + platformProposalReaction?: PlatformProposalReaction | null; + platformProposalReactionEdge?: PlatformProposalReactionEdge | null; +} +export interface UpdatePlatformProposalReviewPayload { + clientMutationId?: string | null; + /** The `PlatformProposalReview` that was updated by this mutation. */ + platformProposalReview?: PlatformProposalReview | null; + platformProposalReviewEdge?: PlatformProposalReviewEdge | null; +} +export interface UpdatePlatformProposalsChunkPayload { + clientMutationId?: string | null; + /** The `PlatformProposalsChunk` that was updated by this mutation. */ + platformProposalsChunk?: PlatformProposalsChunk | null; + platformProposalsChunkEdge?: PlatformProposalsChunkEdge | null; +} +export interface UpdatePlatformRegistryPayload { + clientMutationId?: string | null; + /** The `PlatformRegistry` that was updated by this mutation. */ + platformRegistry?: PlatformRegistry | null; + platformRegistryEdge?: PlatformRegistryEdge | null; +} +export interface UpdatePlatformRegistryBindingPayload { + clientMutationId?: string | null; + /** The `PlatformRegistryBinding` that was updated by this mutation. */ + platformRegistryBinding?: PlatformRegistryBinding | null; + platformRegistryBindingEdge?: PlatformRegistryBindingEdge | null; +} +export interface UpdatePlatformRegistryGrantPayload { + clientMutationId?: string | null; + /** The `PlatformRegistryGrant` that was updated by this mutation. */ + platformRegistryGrant?: PlatformRegistryGrant | null; + platformRegistryGrantEdge?: PlatformRegistryGrantEdge | null; +} +export interface UpdatePlatformRepositoryPayload { + clientMutationId?: string | null; + /** The `PlatformRepository` that was updated by this mutation. */ + platformRepository?: PlatformRepository | null; + platformRepositoryEdge?: PlatformRepositoryEdge | null; +} +export interface UpdatePlatformRepositoryEventPayload { + clientMutationId?: string | null; + /** The `PlatformRepositoryEvent` that was updated by this mutation. */ + platformRepositoryEvent?: PlatformRepositoryEvent | null; + platformRepositoryEventEdge?: PlatformRepositoryEventEdge | null; +} +export interface UpdatePlatformRepositoryRequiredCheckPayload { + clientMutationId?: string | null; + /** The `PlatformRepositoryRequiredCheck` that was updated by this mutation. */ + platformRepositoryRequiredCheck?: PlatformRepositoryRequiredCheck | null; + platformRepositoryRequiredCheckEdge?: PlatformRepositoryRequiredCheckEdge | null; +} +export interface UpdatePlatformRepositoryWorkflowPayload { + clientMutationId?: string | null; + /** The `PlatformRepositoryWorkflow` that was updated by this mutation. */ + platformRepositoryWorkflow?: PlatformRepositoryWorkflow | null; + platformRepositoryWorkflowEdge?: PlatformRepositoryWorkflowEdge | null; +} export interface UpdatePlatformResourcePayload { clientMutationId?: string | null; /** The `PlatformResource` that was updated by this mutation. */ @@ -10951,6 +20746,84 @@ export interface UpdatePlatformWebhookEventPayload { platformWebhookEvent?: PlatformWebhookEvent | null; platformWebhookEventEdge?: PlatformWebhookEventEdge | null; } +export interface UpdateProposalPayload { + clientMutationId?: string | null; + /** The `Proposal` that was updated by this mutation. */ + proposal?: Proposal | null; + proposalEdge?: ProposalEdge | null; +} +export interface UpdateProposalCommentPayload { + clientMutationId?: string | null; + /** The `ProposalComment` that was updated by this mutation. */ + proposalComment?: ProposalComment | null; + proposalCommentEdge?: ProposalCommentEdge | null; +} +export interface UpdateProposalFileViewPayload { + clientMutationId?: string | null; + /** The `ProposalFileView` that was updated by this mutation. */ + proposalFileView?: ProposalFileView | null; + proposalFileViewEdge?: ProposalFileViewEdge | null; +} +export interface UpdateProposalReactionPayload { + clientMutationId?: string | null; + /** The `ProposalReaction` that was updated by this mutation. */ + proposalReaction?: ProposalReaction | null; + proposalReactionEdge?: ProposalReactionEdge | null; +} +export interface UpdateProposalReviewPayload { + clientMutationId?: string | null; + /** The `ProposalReview` that was updated by this mutation. */ + proposalReview?: ProposalReview | null; + proposalReviewEdge?: ProposalReviewEdge | null; +} +export interface UpdateProposalsChunkPayload { + clientMutationId?: string | null; + /** The `ProposalsChunk` that was updated by this mutation. */ + proposalsChunk?: ProposalsChunk | null; + proposalsChunkEdge?: ProposalsChunkEdge | null; +} +export interface UpdateRegistryPayload { + clientMutationId?: string | null; + /** The `Registry` that was updated by this mutation. */ + registry?: Registry | null; + registryEdge?: RegistryEdge | null; +} +export interface UpdateRegistryBindingPayload { + clientMutationId?: string | null; + /** The `RegistryBinding` that was updated by this mutation. */ + registryBinding?: RegistryBinding | null; + registryBindingEdge?: RegistryBindingEdge | null; +} +export interface UpdateRegistryGrantPayload { + clientMutationId?: string | null; + /** The `RegistryGrant` that was updated by this mutation. */ + registryGrant?: RegistryGrant | null; + registryGrantEdge?: RegistryGrantEdge | null; +} +export interface UpdateRepositoryPayload { + clientMutationId?: string | null; + /** The `Repository` that was updated by this mutation. */ + repository?: Repository | null; + repositoryEdge?: RepositoryEdge | null; +} +export interface UpdateRepositoryEventPayload { + clientMutationId?: string | null; + /** The `RepositoryEvent` that was updated by this mutation. */ + repositoryEvent?: RepositoryEvent | null; + repositoryEventEdge?: RepositoryEventEdge | null; +} +export interface UpdateRepositoryRequiredCheckPayload { + clientMutationId?: string | null; + /** The `RepositoryRequiredCheck` that was updated by this mutation. */ + repositoryRequiredCheck?: RepositoryRequiredCheck | null; + repositoryRequiredCheckEdge?: RepositoryRequiredCheckEdge | null; +} +export interface UpdateRepositoryWorkflowPayload { + clientMutationId?: string | null; + /** The `RepositoryWorkflow` that was updated by this mutation. */ + repositoryWorkflow?: RepositoryWorkflow | null; + repositoryWorkflowEdge?: RepositoryWorkflowEdge | null; +} export interface UpdateResourcePayload { clientMutationId?: string | null; /** The `Resource` that was updated by this mutation. */ @@ -11036,11 +20909,11 @@ export interface MetaTable { tableName: string; uniqueConstraints: MetaUniqueConstraint[]; } -/** A `ContentPreset` edge in the connection. */ -export interface ContentPresetEdge { +/** A `BuildStep` edge in the connection. */ +export interface BuildStepEdge { cursor?: string | null; - /** The `ContentPreset` at the end of the edge. */ - node?: ContentPreset | null; + /** The `BuildStep` at the end of the edge. */ + node?: BuildStep | null; } /** Information about pagination in a connection. */ export interface PageInfo { @@ -11053,6 +20926,78 @@ export interface PageInfo { /** When paginating backwards, the cursor to continue. */ startCursor?: string | null; } +/** A `BuilderBinding` edge in the connection. */ +export interface BuilderBindingEdge { + cursor?: string | null; + /** The `BuilderBinding` at the end of the edge. */ + node?: BuilderBinding | null; +} +/** A `Build` edge in the connection. */ +export interface BuildEdge { + cursor?: string | null; + /** The `Build` at the end of the edge. */ + node?: Build | null; +} +/** A `ContentPreset` edge in the connection. */ +export interface ContentPresetEdge { + cursor?: string | null; + /** The `ContentPreset` at the end of the edge. */ + node?: ContentPreset | null; +} +/** A `DatabaseFunctionGraphExecutionNodeState` edge in the connection. */ +export interface DatabaseFunctionGraphExecutionNodeStateEdge { + cursor?: string | null; + /** The `DatabaseFunctionGraphExecutionNodeState` at the end of the edge. */ + node?: DatabaseFunctionGraphExecutionNodeState | null; +} +/** A `DatabaseFunctionGraphExecutionOutput` edge in the connection. */ +export interface DatabaseFunctionGraphExecutionOutputEdge { + cursor?: string | null; + /** The `DatabaseFunctionGraphExecutionOutput` at the end of the edge. */ + node?: DatabaseFunctionGraphExecutionOutput | null; +} +/** A `DatabaseFunctionGraphExecution` edge in the connection. */ +export interface DatabaseFunctionGraphExecutionEdge { + cursor?: string | null; + /** The `DatabaseFunctionGraphExecution` at the end of the edge. */ + node?: DatabaseFunctionGraphExecution | null; +} +/** A `DatabaseFunctionGraph` edge in the connection. */ +export interface DatabaseFunctionGraphEdge { + cursor?: string | null; + /** The `DatabaseFunctionGraph` at the end of the edge. */ + node?: DatabaseFunctionGraph | null; +} +/** A `DatabaseGraphCommit` edge in the connection. */ +export interface DatabaseGraphCommitEdge { + cursor?: string | null; + /** The `DatabaseGraphCommit` at the end of the edge. */ + node?: DatabaseGraphCommit | null; +} +/** A `DatabaseGraphGetAllTreeNodesRecord` edge in the connection. */ +export interface DatabaseGraphGetAllTreeNodesEdge { + cursor?: string | null; + /** The `DatabaseGraphGetAllTreeNodesRecord` at the end of the edge. */ + node?: DatabaseGraphGetAllTreeNodesRecord | null; +} +/** A `DatabaseGraphObject` edge in the connection. */ +export interface DatabaseGraphObjectEdge { + cursor?: string | null; + /** The `DatabaseGraphObject` at the end of the edge. */ + node?: DatabaseGraphObject | null; +} +/** A `DatabaseGraphRef` edge in the connection. */ +export interface DatabaseGraphRefEdge { + cursor?: string | null; + /** The `DatabaseGraphRef` at the end of the edge. */ + node?: DatabaseGraphRef | null; +} +/** A `DatabaseGraphStore` edge in the connection. */ +export interface DatabaseGraphStoreEdge { + cursor?: string | null; + /** The `DatabaseGraphStore` at the end of the edge. */ + node?: DatabaseGraphStore | null; +} /** A `DbPreset` edge in the connection. */ export interface DbPresetEdge { cursor?: string | null; @@ -11161,6 +21106,18 @@ export interface GetAllTreeNodesEdge { /** The `GetAllTreeNodesRecord` at the end of the edge. */ node?: GetAllTreeNodesRecord | null; } +/** A `ImageGrant` edge in the connection. */ +export interface ImageGrantEdge { + cursor?: string | null; + /** The `ImageGrant` at the end of the edge. */ + node?: ImageGrant | null; +} +/** A `Image` edge in the connection. */ +export interface ImageEdge { + cursor?: string | null; + /** The `Image` at the end of the edge. */ + node?: Image | null; +} /** A `InfraCommit` edge in the connection. */ export interface InfraCommitEdge { cursor?: string | null; @@ -11209,6 +21166,24 @@ export interface NamespaceEdge { /** The `Namespace` at the end of the edge. */ node?: Namespace | null; } +/** A `PlatformBuildStep` edge in the connection. */ +export interface PlatformBuildStepEdge { + cursor?: string | null; + /** The `PlatformBuildStep` at the end of the edge. */ + node?: PlatformBuildStep | null; +} +/** A `PlatformBuilderBinding` edge in the connection. */ +export interface PlatformBuilderBindingEdge { + cursor?: string | null; + /** The `PlatformBuilderBinding` at the end of the edge. */ + node?: PlatformBuilderBinding | null; +} +/** A `PlatformBuild` edge in the connection. */ +export interface PlatformBuildEdge { + cursor?: string | null; + /** The `PlatformBuild` at the end of the edge. */ + node?: PlatformBuild | null; +} /** A `PlatformFunctionApiBinding` edge in the connection. */ export interface PlatformFunctionApiBindingEdge { cursor?: string | null; @@ -11257,6 +21232,18 @@ export interface PlatformFunctionInvocationEdge { /** The `PlatformFunctionInvocation` at the end of the edge. */ node?: PlatformFunctionInvocation | null; } +/** A `PlatformImageGrant` edge in the connection. */ +export interface PlatformImageGrantEdge { + cursor?: string | null; + /** The `PlatformImageGrant` at the end of the edge. */ + node?: PlatformImageGrant | null; +} +/** A `PlatformImage` edge in the connection. */ +export interface PlatformImageEdge { + cursor?: string | null; + /** The `PlatformImage` at the end of the edge. */ + node?: PlatformImage | null; +} /** A `PlatformInfraCommit` edge in the connection. */ export interface PlatformInfraCommitEdge { cursor?: string | null; @@ -11287,6 +21274,18 @@ export interface PlatformInfraStoreEdge { /** The `PlatformInfraStore` at the end of the edge. */ node?: PlatformInfraStore | null; } +/** A `PlatformK8sResourceKind` edge in the connection. */ +export interface PlatformK8sResourceKindEdge { + cursor?: string | null; + /** The `PlatformK8sResourceKind` at the end of the edge. */ + node?: PlatformK8sResourceKind | null; +} +/** A `PlatformK8sSpecRule` edge in the connection. */ +export interface PlatformK8sSpecRuleEdge { + cursor?: string | null; + /** The `PlatformK8sSpecRule` at the end of the edge. */ + node?: PlatformK8sSpecRule | null; +} /** A `PlatformNamespaceEvent` edge in the connection. */ export interface PlatformNamespaceEventEdge { cursor?: string | null; @@ -11299,6 +21298,84 @@ export interface PlatformNamespaceEdge { /** The `PlatformNamespace` at the end of the edge. */ node?: PlatformNamespace | null; } +/** A `PlatformProposalComment` edge in the connection. */ +export interface PlatformProposalCommentEdge { + cursor?: string | null; + /** The `PlatformProposalComment` at the end of the edge. */ + node?: PlatformProposalComment | null; +} +/** A `PlatformProposalFileView` edge in the connection. */ +export interface PlatformProposalFileViewEdge { + cursor?: string | null; + /** The `PlatformProposalFileView` at the end of the edge. */ + node?: PlatformProposalFileView | null; +} +/** A `PlatformProposalReaction` edge in the connection. */ +export interface PlatformProposalReactionEdge { + cursor?: string | null; + /** The `PlatformProposalReaction` at the end of the edge. */ + node?: PlatformProposalReaction | null; +} +/** A `PlatformProposalReview` edge in the connection. */ +export interface PlatformProposalReviewEdge { + cursor?: string | null; + /** The `PlatformProposalReview` at the end of the edge. */ + node?: PlatformProposalReview | null; +} +/** A `PlatformProposal` edge in the connection. */ +export interface PlatformProposalEdge { + cursor?: string | null; + /** The `PlatformProposal` at the end of the edge. */ + node?: PlatformProposal | null; +} +/** A `PlatformProposalsChunk` edge in the connection. */ +export interface PlatformProposalsChunkEdge { + cursor?: string | null; + /** The `PlatformProposalsChunk` at the end of the edge. */ + node?: PlatformProposalsChunk | null; +} +/** A `PlatformRegistry` edge in the connection. */ +export interface PlatformRegistryEdge { + cursor?: string | null; + /** The `PlatformRegistry` at the end of the edge. */ + node?: PlatformRegistry | null; +} +/** A `PlatformRegistryBinding` edge in the connection. */ +export interface PlatformRegistryBindingEdge { + cursor?: string | null; + /** The `PlatformRegistryBinding` at the end of the edge. */ + node?: PlatformRegistryBinding | null; +} +/** A `PlatformRegistryGrant` edge in the connection. */ +export interface PlatformRegistryGrantEdge { + cursor?: string | null; + /** The `PlatformRegistryGrant` at the end of the edge. */ + node?: PlatformRegistryGrant | null; +} +/** A `PlatformRepository` edge in the connection. */ +export interface PlatformRepositoryEdge { + cursor?: string | null; + /** The `PlatformRepository` at the end of the edge. */ + node?: PlatformRepository | null; +} +/** A `PlatformRepositoryEvent` edge in the connection. */ +export interface PlatformRepositoryEventEdge { + cursor?: string | null; + /** The `PlatformRepositoryEvent` at the end of the edge. */ + node?: PlatformRepositoryEvent | null; +} +/** A `PlatformRepositoryRequiredCheck` edge in the connection. */ +export interface PlatformRepositoryRequiredCheckEdge { + cursor?: string | null; + /** The `PlatformRepositoryRequiredCheck` at the end of the edge. */ + node?: PlatformRepositoryRequiredCheck | null; +} +/** A `PlatformRepositoryWorkflow` edge in the connection. */ +export interface PlatformRepositoryWorkflowEdge { + cursor?: string | null; + /** The `PlatformRepositoryWorkflow` at the end of the edge. */ + node?: PlatformRepositoryWorkflow | null; +} /** A `PlatformResourceDeclaredCapacity` edge in the connection. */ export interface PlatformResourceDeclaredCapacityEdge { cursor?: string | null; @@ -11323,6 +21400,12 @@ export interface PlatformResourceInstallationEdge { /** The `PlatformResourceInstallation` at the end of the edge. */ node?: PlatformResourceInstallation | null; } +/** A `PlatformResourceObservedStorage` edge in the connection. */ +export interface PlatformResourceObservedStorageEdge { + cursor?: string | null; + /** The `PlatformResourceObservedStorage` at the end of the edge. */ + node?: PlatformResourceObservedStorage | null; +} /** A `PlatformResourceStatusCheck` edge in the connection. */ export interface PlatformResourceStatusCheckEdge { cursor?: string | null; @@ -11383,6 +21466,84 @@ export interface PlatformWebhookEventEdge { /** The `PlatformWebhookEvent` at the end of the edge. */ node?: PlatformWebhookEvent | null; } +/** A `ProposalComment` edge in the connection. */ +export interface ProposalCommentEdge { + cursor?: string | null; + /** The `ProposalComment` at the end of the edge. */ + node?: ProposalComment | null; +} +/** A `ProposalFileView` edge in the connection. */ +export interface ProposalFileViewEdge { + cursor?: string | null; + /** The `ProposalFileView` at the end of the edge. */ + node?: ProposalFileView | null; +} +/** A `ProposalReaction` edge in the connection. */ +export interface ProposalReactionEdge { + cursor?: string | null; + /** The `ProposalReaction` at the end of the edge. */ + node?: ProposalReaction | null; +} +/** A `ProposalReview` edge in the connection. */ +export interface ProposalReviewEdge { + cursor?: string | null; + /** The `ProposalReview` at the end of the edge. */ + node?: ProposalReview | null; +} +/** A `Proposal` edge in the connection. */ +export interface ProposalEdge { + cursor?: string | null; + /** The `Proposal` at the end of the edge. */ + node?: Proposal | null; +} +/** A `ProposalsChunk` edge in the connection. */ +export interface ProposalsChunkEdge { + cursor?: string | null; + /** The `ProposalsChunk` at the end of the edge. */ + node?: ProposalsChunk | null; +} +/** A `Registry` edge in the connection. */ +export interface RegistryEdge { + cursor?: string | null; + /** The `Registry` at the end of the edge. */ + node?: Registry | null; +} +/** A `RegistryBinding` edge in the connection. */ +export interface RegistryBindingEdge { + cursor?: string | null; + /** The `RegistryBinding` at the end of the edge. */ + node?: RegistryBinding | null; +} +/** A `RegistryGrant` edge in the connection. */ +export interface RegistryGrantEdge { + cursor?: string | null; + /** The `RegistryGrant` at the end of the edge. */ + node?: RegistryGrant | null; +} +/** A `Repository` edge in the connection. */ +export interface RepositoryEdge { + cursor?: string | null; + /** The `Repository` at the end of the edge. */ + node?: Repository | null; +} +/** A `RepositoryEvent` edge in the connection. */ +export interface RepositoryEventEdge { + cursor?: string | null; + /** The `RepositoryEvent` at the end of the edge. */ + node?: RepositoryEvent | null; +} +/** A `RepositoryRequiredCheck` edge in the connection. */ +export interface RepositoryRequiredCheckEdge { + cursor?: string | null; + /** The `RepositoryRequiredCheck` at the end of the edge. */ + node?: RepositoryRequiredCheck | null; +} +/** A `RepositoryWorkflow` edge in the connection. */ +export interface RepositoryWorkflowEdge { + cursor?: string | null; + /** The `RepositoryWorkflow` at the end of the edge. */ + node?: RepositoryWorkflow | null; +} /** A `ResourceDeclaredCapacity` edge in the connection. */ export interface ResourceDeclaredCapacityEdge { cursor?: string | null; @@ -11407,6 +21568,12 @@ export interface ResourceInstallationEdge { /** The `ResourceInstallation` at the end of the edge. */ node?: ResourceInstallation | null; } +/** A `ResourceObservedStorage` edge in the connection. */ +export interface ResourceObservedStorageEdge { + cursor?: string | null; + /** The `ResourceObservedStorage` at the end of the edge. */ + node?: ResourceObservedStorage | null; +} /** A `ResourceStatusCheck` edge in the connection. */ export interface ResourceStatusCheckEdge { cursor?: string | null; @@ -11579,10 +21746,18 @@ export interface MetaSearch { } /** Storage metadata for a table */ export interface MetaStorage { + /** GraphQL type name of the plane's buckets table */ + bucketsType: string; + /** Computed download-URL field on the files type; null on the buckets side */ + downloadUrlField?: string | null; + /** GraphQL type name of the plane's files table */ + filesType: string; /** Whether this table is a storage buckets table */ isBucketsTable: boolean; /** Whether this table is a storage files table */ isFilesTable: boolean; + /** The plane's GraphQL upload surface */ + upload: MetaStorageUpload; } /** Information about a unique constraint */ export interface MetaUniqueConstraint { @@ -11665,6 +21840,27 @@ export interface MetaSearchConfig { /** JSON-encoded per-adapter score weights */ weights?: string | null; } +/** The GraphQL upload surface of a storage plane, derived from the registry facts the presigned-url plugin emits from */ +export interface MetaStorageUpload { + /** Per-file input type inside the bulk input */ + bulkFileInputType: string; + /** Per-file payload type inside the bulk payload */ + bulkFilePayloadType: string; + /** Input type of the bulk upload mutation */ + bulkInputType: string; + /** Root mutation field for bulk upload */ + bulkMutation: string; + /** Payload type of the bulk upload mutation */ + bulkPayloadType: string; + /** Input type of the single upload mutation */ + inputType: string; + /** Root mutation field for single-file upload (e.g. uploadAppFile) */ + mutation: string; + /** Payload type of the single upload mutation */ + payloadType: string; + /** Whether the upload input requires ownerId (entity-keyed plane) */ + requiresOwnerId: boolean; +} /** 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. */ export interface MetaScalarEncoding { /** For 'vector': declared length, else null. */ diff --git a/sdk/constructive-react/src/compute/types.ts b/sdk/constructive-react/src/compute/types.ts index c7435471f3..7fe2d3baa1 100644 --- a/sdk/constructive-react/src/compute/types.ts +++ b/sdk/constructive-react/src/compute/types.ts @@ -5,7 +5,68 @@ */ export type Base64EncodedBinary = unknown; export type ConstructiveInternalTypeImage = unknown; +export type ConstructiveInternalTypeUpload = unknown; export type ResourceRequirement = unknown; +export interface Build { + actorId: string | null; + attempt: number | null; + commitSha: string | null; + conclusion: string | null; + createdAt: string | null; + createdByPrincipal: string | null; + databaseId: string | null; + eventId: string | null; + finishedAt: string | null; + id: string | null; + imageRef: string | null; + jobId: string | null; + logs: ConstructiveInternalTypeUpload | null; + matrixKey: string | null; + metadata: unknown | null; + proposalId: string | null; + ref: string | null; + repositoryId: string | null; + startedAt: string | null; + status: string | null; + updatedAt: string | null; + updatedByPrincipal: string | null; + workflowId: string | null; +} +export interface BuildStep { + buildId: string | null; + createdByPrincipal: string | null; + databaseId: string | null; + exitCode: number | null; + finishedAt: string | null; + id: string | null; + kind: string | null; + logBytes: string | null; + logOffset: string | null; + name: string | null; + parentSeq: number | null; + recordedAt: string | null; + seq: number | null; + startedAt: string | null; + status: string | null; + summary: unknown | null; +} +export interface BuilderBinding { + createdAt: string | null; + createdBy: string | null; + createdByPrincipal: string | null; + databaseId: string | null; + id: string | null; + installationId: string | null; + lastError: string | null; + metadata: unknown | null; + namespaceId: string | null; + observedHost: string | null; + realm: string | null; + status: string | null; + updatedAt: string | null; + updatedBy: string | null; + updatedByPrincipal: string | null; +} export interface ContentPreset { active: boolean | null; commitId: string | null; @@ -19,6 +80,121 @@ export interface ContentPreset { storeId: string | null; updatedAt: string | null; } +export interface DatabaseFunctionGraph { + context: string | null; + createdAt: string | null; + createdBy: string | null; + databaseId: string | null; + definitionsCommitId: string | null; + description: string | null; + id: string | null; + isValid: boolean | null; + name: string | null; + storeId: string | null; + updatedAt: string | null; + validationErrors: unknown | null; +} +export interface DatabaseFunctionGraphExecution { + actorId: string | null; + completedAt: string | null; + currentWave: number | null; + databaseId: string | null; + definitionsCommitId: string | null; + entityId: string | null; + entityType: string | null; + errorCode: string | null; + errorMessage: string | null; + executionPlan: unknown | null; + graphId: string | null; + id: string | null; + inputPayload: unknown | null; + invocationCreatedAt: string | null; + invocationId: string | null; + lastProgressAt: string | null; + maxPendingJobs: number | null; + maxTicks: number | null; + nodeOutputs: unknown | null; + organizationId: string | null; + outputNames: string[] | null; + outputNode: string | null; + outputPayload: unknown | null; + outputPort: string | null; + parentExecutionId: string | null; + parentInvocationId: string | null; + parentNodeName: string | null; + principalId: string | null; + startedAt: string | null; + status: string | null; + tickCount: number | null; + timeoutAt: string | null; +} +export interface DatabaseFunctionGraphExecutionNodeState { + callbackInputs: unknown | null; + callbackMeta: unknown | null; + callbackTokenHash: string | null; + completedAt: string | null; + createdAt: string | null; + databaseId: string | null; + errorCode: string | null; + errorMessage: string | null; + executionId: string | null; + expiryDefaultOutput: unknown | null; + expiryEscalatedAt: string | null; + expiryPolicy: string | null; + id: string | null; + nodeName: string | null; + nodePath: string[] | null; + outputId: string | null; + startedAt: string | null; + status: string | null; + waitingDeadlineAt: string | null; + waitingOn: string | null; + waitingSince: string | null; +} +export interface DatabaseFunctionGraphExecutionOutput { + createdAt: string | null; + data: unknown | null; + databaseId: string | null; + hash: Base64EncodedBinary | null; + id: string | null; +} +export interface DatabaseGraphCommit { + authorId: string | null; + committerId: string | null; + databaseId: string | null; + date: string | null; + id: string | null; + message: string | null; + parentIds: string[] | null; + storeId: string | null; + treeId: string | null; +} +export interface DatabaseGraphGetAllTreeNodesRecord { + data: unknown | null; + path: string[] | null; +} +export interface DatabaseGraphObject { + createdAt: string | null; + data: unknown | null; + databaseId: string | null; + id: string | null; + kids: string[] | null; + ktree: string[] | null; +} +export interface DatabaseGraphRef { + commitId: string | null; + databaseId: string | null; + id: string | null; + name: string | null; + storeId: string | null; +} +export interface DatabaseGraphStore { + createdAt: string | null; + databaseId: string | null; + hash: string | null; + id: string | null; + name: string | null; +} export interface DbPreset { active: boolean | null; commitId: string | null; @@ -55,11 +231,13 @@ export interface FunctionCapabilityBinding { } export interface FunctionDefinition { accessChannels: string[] | null; + anonymousCallable: boolean | null; category: string | null; concurrency: number | null; cpuLimitMillicores: string | null; cpuRequestMillicores: string | null; createdAt: string | null; + createdByPrincipal: string | null; databaseId: string | null; description: string | null; fnCategory: string | null; @@ -84,6 +262,7 @@ export interface FunctionDefinition { publishedAt: string | null; queueName: string | null; requiredBuckets: string[] | null; + requiredCapabilities: unknown | null; requiredConfigs: ResourceRequirement[] | null; requiredModels: string[] | null; requiredModules: string[] | null; @@ -97,12 +276,14 @@ export interface FunctionDefinition { taskIdentifier: string | null; timeoutSeconds: number | null; updatedAt: string | null; + updatedByPrincipal: string | null; volatile: boolean | null; } export interface FunctionDeployment { annotations: unknown | null; concurrency: number | null; createdAt: string | null; + createdByPrincipal: string | null; databaseId: string | null; errorCount: number | null; handlerName: string | null; @@ -123,6 +304,7 @@ export interface FunctionDeployment { status: string | null; timeoutSeconds: number | null; updatedAt: string | null; + updatedByPrincipal: string | null; } export interface FunctionDeploymentEvent { actorId: string | null; @@ -213,6 +395,9 @@ export interface FunctionGraphExecutionNodeState { errorCode: string | null; errorMessage: string | null; executionId: string | null; + expiryDefaultOutput: unknown | null; + expiryEscalatedAt: string | null; + expiryPolicy: string | null; id: string | null; nodeName: string | null; nodePath: string[] | null; @@ -220,6 +405,9 @@ export interface FunctionGraphExecutionNodeState { scopeId: string | null; startedAt: string | null; status: string | null; + waitingDeadlineAt: string | null; + waitingOn: string | null; + waitingSince: string | null; } export interface FunctionGraphExecutionOutput { createdAt: string | null; @@ -271,16 +459,21 @@ export interface FunctionInvocation { channel: string | null; completedAt: string | null; createdAt: string | null; + createdByPrincipal: string | null; databaseId: string | null; definitionScope: string | null; durationMs: number | null; + entityId: string | null; + entityType: string | null; error: string | null; functionDefinitionId: string | null; graphExecutionId: string | null; id: string | null; jobId: string | null; + organizationId: string | null; parentInvocationId: string | null; payload: unknown | null; + principalId: string | null; provenance: unknown | null; result: unknown | null; startedAt: string | null; @@ -291,6 +484,41 @@ export interface GetAllTreeNodesRecord { data: unknown | null; path: string[] | null; } +export interface Image { + createdAt: string | null; + createdByPrincipal: string | null; + databaseId: string | null; + description: string | null; + digest: string | null; + expiresAt: string | null; + id: string | null; + isPublished: boolean | null; + labels: unknown | null; + metadata: unknown | null; + name: string | null; + ownerId: string | null; + platformOnly: boolean | null; + registryHost: string | null; + repository: string | null; + runtime: string | null; + tag: string | null; + updatedAt: string | null; + updatedByPrincipal: string | null; +} +export interface ImageGrant { + actions: string[] | null; + createdAt: string | null; + createdByPrincipal: string | null; + databaseId: string | null; + expiresAt: string | null; + grantedBy: string | null; + granteeKey: string | null; + granteeScope: string | null; + id: string | null; + imageId: string | null; + updatedAt: string | null; + updatedByPrincipal: string | null; +} export interface InfraCommit { authorId: string | null; committerId: string | null; @@ -344,6 +572,7 @@ export interface IntegrationProvider { } export interface Namespace { annotations: unknown | null; + clusterId: string | null; createdAt: string | null; databaseId: string | null; description: string | null; @@ -367,6 +596,63 @@ export interface NamespaceEvent { metadata: unknown | null; namespaceId: string | null; } +export interface PlatformBuild { + actorId: string | null; + attempt: number | null; + commitSha: string | null; + conclusion: string | null; + createdAt: string | null; + createdByPrincipal: string | null; + eventId: string | null; + finishedAt: string | null; + id: string | null; + imageRef: string | null; + jobId: string | null; + logs: ConstructiveInternalTypeUpload | null; + matrixKey: string | null; + metadata: unknown | null; + proposalId: string | null; + ref: string | null; + repositoryId: string | null; + startedAt: string | null; + status: string | null; + updatedAt: string | null; + updatedByPrincipal: string | null; + workflowId: string | null; +} +export interface PlatformBuildStep { + buildId: string | null; + createdByPrincipal: string | null; + exitCode: number | null; + finishedAt: string | null; + id: string | null; + kind: string | null; + logBytes: string | null; + logOffset: string | null; + name: string | null; + parentSeq: number | null; + recordedAt: string | null; + seq: number | null; + startedAt: string | null; + status: string | null; + summary: unknown | null; +} +export interface PlatformBuilderBinding { + createdAt: string | null; + createdBy: string | null; + createdByPrincipal: string | null; + id: string | null; + installationId: string | null; + lastError: string | null; + metadata: unknown | null; + namespaceId: string | null; + observedHost: string | null; + realm: string | null; + status: string | null; + updatedAt: string | null; + updatedBy: string | null; + updatedByPrincipal: string | null; +} export interface PlatformFunctionApiBinding { alias: string | null; apiId: string | null; @@ -389,12 +675,14 @@ export interface PlatformFunctionCapabilityBinding { } export interface PlatformFunctionDefinition { accessChannels: string[] | null; + anonymousCallable: boolean | null; billable: boolean | null; category: string | null; concurrency: number | null; cpuLimitMillicores: string | null; cpuRequestMillicores: string | null; createdAt: string | null; + createdByPrincipal: string | null; description: string | null; fnCategory: string | null; functionColumns: unknown | null; @@ -418,6 +706,7 @@ export interface PlatformFunctionDefinition { publishedAt: string | null; queueName: string | null; requiredBuckets: string[] | null; + requiredCapabilities: unknown | null; requiredConfigs: ResourceRequirement[] | null; requiredModels: string[] | null; requiredModules: string[] | null; @@ -432,12 +721,14 @@ export interface PlatformFunctionDefinition { taskIdentifier: string | null; timeoutSeconds: number | null; updatedAt: string | null; + updatedByPrincipal: string | null; volatile: boolean | null; } export interface PlatformFunctionDeployment { annotations: unknown | null; concurrency: number | null; createdAt: string | null; + createdByPrincipal: string | null; errorCount: number | null; handlerName: string | null; id: string | null; @@ -457,6 +748,7 @@ export interface PlatformFunctionDeployment { status: string | null; timeoutSeconds: number | null; updatedAt: string | null; + updatedByPrincipal: string | null; } export interface PlatformFunctionDeploymentEvent { actorId: string | null; @@ -497,22 +789,60 @@ export interface PlatformFunctionInvocation { channel: string | null; completedAt: string | null; createdAt: string | null; + createdByPrincipal: string | null; databaseId: string | null; definitionScope: string | null; durationMs: number | null; + entityId: string | null; + entityType: string | null; error: string | null; functionDefinitionId: string | null; graphExecutionId: string | null; id: string | null; jobId: string | null; + organizationId: string | null; parentInvocationId: string | null; payload: unknown | null; + principalId: string | null; provenance: unknown | null; result: unknown | null; startedAt: string | null; status: string | null; taskIdentifier: string | null; } +export interface PlatformImage { + createdAt: string | null; + createdByPrincipal: string | null; + description: string | null; + digest: string | null; + expiresAt: string | null; + id: string | null; + isPublished: boolean | null; + labels: unknown | null; + metadata: unknown | null; + name: string | null; + ownerId: string | null; + platformOnly: boolean | null; + registryHost: string | null; + repository: string | null; + runtime: string | null; + tag: string | null; + updatedAt: string | null; + updatedByPrincipal: string | null; +} +export interface PlatformImageGrant { + actions: string[] | null; + createdAt: string | null; + createdByPrincipal: string | null; + expiresAt: string | null; + grantedBy: string | null; + granteeKey: string | null; + granteeScope: string | null; + id: string | null; + imageId: string | null; + updatedAt: string | null; + updatedByPrincipal: string | null; +} export interface PlatformInfraCommit { authorId: string | null; committerId: string | null; @@ -550,8 +880,33 @@ export interface PlatformInfraStore { name: string | null; scopeId: string | null; } +export interface PlatformK8sResourceKind { + active: boolean | null; + commitId: string | null; + createdAt: string | null; + definition: unknown | null; + description: string | null; + id: string | null; + label: string | null; + slug: string | null; + storeId: string | null; + updatedAt: string | null; +} +export interface PlatformK8sSpecRule { + active: boolean | null; + commitId: string | null; + createdAt: string | null; + definition: unknown | null; + description: string | null; + id: string | null; + label: string | null; + slug: string | null; + storeId: string | null; + updatedAt: string | null; +} export interface PlatformNamespace { annotations: unknown | null; + clusterId: string | null; createdAt: string | null; description: string | null; id: string | null; @@ -573,14 +928,268 @@ export interface PlatformNamespaceEvent { metadata: unknown | null; namespaceId: string | null; } +export interface PlatformProposalComment { + actorId: string | null; + attachments: ConstructiveInternalTypeUpload[] | null; + body: string | null; + bodyTrgmSimilarity: number | null; + createdAt: string | null; + createdBy: string | null; + createdByPrincipal: string | null; + embedding: number[] | null; + embeddingUpdatedAt: string | null; + embeddingVectorDistance: number | null; + id: string | null; + line: number | null; + outdatedAt: string | null; + path: string | null; + pathTrgmSimilarity: number | null; + proposalId: string | null; + resolvedAt: string | null; + search: string | null; + searchScore: number | null; + searchTsvRank: number | null; + updatedAt: string | null; + updatedBy: string | null; + updatedByPrincipal: string | null; +} +export interface PlatformProposal { + actorId: string | null; + body: string | null; + bodyTrgmSimilarity: number | null; + closedReason: string | null; + closedReasonTrgmSimilarity: number | null; + createdAt: string | null; + createdBy: string | null; + createdByPrincipal: string | null; + decidedAt: string | null; + dueAt: string | null; + embedding: number[] | null; + embeddingUpdatedAt: string | null; + embeddingVectorDistance: number | null; + id: string | null; + kind: string | null; + kindTrgmSimilarity: number | null; + labels: string[] | null; + mergeCommit: string | null; + mergeCommitTrgmSimilarity: number | null; + mergeMethod: string | null; + mergeMethodTrgmSimilarity: number | null; + mergeRequestedAt: string | null; + mergedAt: string | null; + metadata: unknown | null; + parentId: string | null; + priority: string | null; + repositoryId: string | null; + resolution: string | null; + resolutionTrgmSimilarity: number | null; + search: string | null; + searchScore: number | null; + searchTsvRank: number | null; + sourceRef: string | null; + sourceRefTrgmSimilarity: number | null; + status: string | null; + statusTrgmSimilarity: number | null; + targetRef: string | null; + targetRefTrgmSimilarity: number | null; + title: string | null; + titleTrgmSimilarity: number | null; + updatedAt: string | null; + updatedBy: string | null; + updatedByPrincipal: string | null; +} +export interface PlatformProposalFileView { + blobSha: string | null; + createdAt: string | null; + createdByPrincipal: string | null; + id: string | null; + path: string | null; + proposalId: string | null; + reviewerId: string | null; + updatedAt: string | null; + updatedByPrincipal: string | null; + viewedAt: string | null; +} +export interface PlatformProposalReaction { + actorId: string | null; + commentId: string | null; + createdAt: string | null; + createdByPrincipal: string | null; + emoji: string | null; + id: string | null; + proposalId: string | null; + updatedAt: string | null; + updatedByPrincipal: string | null; +} +export interface PlatformProposalReview { + body: string | null; + bodyTrgmSimilarity: number | null; + commitSha: string | null; + commitShaTrgmSimilarity: number | null; + createdAt: string | null; + createdByPrincipal: string | null; + id: string | null; + proposalId: string | null; + reviewerId: string | null; + search: string | null; + searchScore: number | null; + searchTsvRank: number | null; + submittedAt: string | null; + updatedAt: string | null; + updatedByPrincipal: string | null; + verdict: string | null; + verdictTrgmSimilarity: number | null; +} +export interface PlatformProposalsChunk { + actorId: string | null; + body: string | null; + chunkIndex: number | null; + createdAt: string | null; + embedding: number[] | null; + embeddingVectorDistance: number | null; + id: string | null; + metadata: unknown | null; + platformProposalsId: string | null; + searchScore: number | null; + updatedAt: string | null; +} +export interface PlatformRegistryBinding { + createdAt: string | null; + createdBy: string | null; + createdByPrincipal: string | null; + id: string | null; + metadata: unknown | null; + namespaceId: string | null; + observedCredentialVersion: string | null; + pullSecretName: string | null; + realm: string | null; + registryHost: string | null; + registryId: string | null; + status: string | null; + updatedAt: string | null; + updatedBy: string | null; + updatedByPrincipal: string | null; +} +export interface PlatformRegistry { + authMode: string | null; + basePath: string | null; + createdAt: string | null; + createdByPrincipal: string | null; + credentialSecretName: string | null; + host: string | null; + id: string | null; + installationId: string | null; + isPublished: boolean | null; + kind: string | null; + labels: unknown | null; + lastError: string | null; + metadata: unknown | null; + name: string | null; + platformOnly: boolean | null; + role: string | null; + status: string | null; + updatedAt: string | null; + updatedByPrincipal: string | null; +} +export interface PlatformRegistryGrant { + actions: string[] | null; + createdAt: string | null; + createdByPrincipal: string | null; + expiresAt: string | null; + grantedBy: string | null; + granteeKey: string | null; + granteeScope: string | null; + id: string | null; + registryId: string | null; + updatedAt: string | null; + updatedByPrincipal: string | null; +} +export interface PlatformRepository { + cloneUrl: string | null; + cloneUrlTrgmSimilarity: number | null; + createdAt: string | null; + createdBy: string | null; + createdByPrincipal: string | null; + defaultBranch: string | null; + defaultBranchTrgmSimilarity: number | null; + description: string | null; + descriptionTrgmSimilarity: number | null; + embedding: number[] | null; + embeddingUpdatedAt: string | null; + embeddingVectorDistance: number | null; + externalId: string | null; + externalIdTrgmSimilarity: number | null; + id: string | null; + isArchived: boolean | null; + metadata: unknown | null; + name: string | null; + nameTrgmSimilarity: number | null; + ownerId: string | null; + provider: string | null; + providerTrgmSimilarity: number | null; + search: string | null; + searchScore: number | null; + searchTsvRank: number | null; + slug: string | null; + slugTrgmSimilarity: number | null; + updatedAt: string | null; + updatedBy: string | null; + updatedByPrincipal: string | null; + visibility: string | null; + visibilityTrgmSimilarity: number | null; +} +export interface PlatformRepositoryEvent { + actorId: string | null; + commitSha: string | null; + createdAt: string | null; + createdByPrincipal: string | null; + deliveryId: string | null; + eventType: string | null; + id: string | null; + metadata: unknown | null; + payload: unknown | null; + ref: string | null; + repositoryId: string | null; + updatedAt: string | null; + updatedByPrincipal: string | null; +} +export interface PlatformRepositoryRequiredCheck { + createdAt: string | null; + id: string | null; + repositoryId: string | null; + updatedAt: string | null; + workflowId: string | null; +} +export interface PlatformRepositoryWorkflow { + cancelInProgress: boolean | null; + concurrencyKey: string | null; + createdAt: string | null; + createdBy: string | null; + createdByPrincipal: string | null; + eventType: string | null; + graphId: string | null; + id: string | null; + inputs: unknown | null; + isEnabled: boolean | null; + name: string | null; + refPattern: string | null; + repositoryId: string | null; + requiredSecrets: string[] | null; + slug: string | null; + updatedAt: string | null; + updatedBy: string | null; + updatedByPrincipal: string | null; +} export interface PlatformResource { annotations: unknown | null; cpuLimitMillicores: string | null; cpuRequestMillicores: string | null; createdAt: string | null; createdBy: string | null; + createdByPrincipal: string | null; errorCount: number | null; id: string | null; + imageRef: string | null; installationId: string | null; integrations: string[] | null; kind: string | null; @@ -602,8 +1211,10 @@ export interface PlatformResource { statusObserved: unknown | null; storageClass: string | null; storageSizeBytes: string | null; + storageTotalBytes: string | null; updatedAt: string | null; updatedBy: string | null; + updatedByPrincipal: string | null; } export interface PlatformResourceDeclaredCapacity { cpuLimitMillicores: string | null; @@ -619,11 +1230,13 @@ export interface PlatformResourceDeclaredCapacity { source: string | null; sourceId: string | null; storageSizeBytes: string | null; + storageTotalBytes: string | null; } export interface PlatformResourceDefinition { annotations: unknown | null; createdAt: string | null; createdBy: string | null; + createdByPrincipal: string | null; defaultSpec: unknown | null; description: string | null; id: string | null; @@ -639,6 +1252,7 @@ export interface PlatformResourceDefinition { stepUpMinAge: string | null; updatedAt: string | null; updatedBy: string | null; + updatedByPrincipal: string | null; } export interface PlatformResourceEvent { actorId: string | null; @@ -653,6 +1267,7 @@ export interface PlatformResourceInstallation { commitId: string | null; createdAt: string | null; createdBy: string | null; + createdByPrincipal: string | null; id: string | null; name: string | null; namespaceId: string | null; @@ -663,6 +1278,27 @@ export interface PlatformResourceInstallation { storeId: string | null; updatedAt: string | null; updatedBy: string | null; + updatedByPrincipal: string | null; +} +export interface PlatformResourceObservedStorage { + capacity: string | null; + capacityBytes: string | null; + claimName: string | null; + declaredStorageClass: string | null; + declaredStorageSizeBytes: string | null; + declaredStorageTotalBytes: string | null; + installationId: string | null; + isBound: boolean | null; + kind: string | null; + namespaceId: string | null; + phase: string | null; + requested: string | null; + requestedBytes: string | null; + resourceId: string | null; + resourceStatus: string | null; + slug: string | null; + storageClass: string | null; + storageName: string | null; } export interface PlatformResourceStatusCheck { completedAt: string | null; @@ -722,8 +1358,10 @@ export interface PlatformResourcesHealth { cpuRequestMillicores: string | null; createdAt: string | null; createdBy: string | null; + createdByPrincipal: string | null; errorCount: number | null; id: string | null; + imageRef: string | null; installationId: string | null; integrations: string[] | null; kind: string | null; @@ -746,8 +1384,10 @@ export interface PlatformResourcesHealth { statusObserved: unknown | null; storageClass: string | null; storageSizeBytes: string | null; + storageTotalBytes: string | null; updatedAt: string | null; updatedBy: string | null; + updatedByPrincipal: string | null; } export interface PlatformResourcesRequirementsState { configHash: string | null; @@ -775,6 +1415,7 @@ export interface PlatformWebhookEndpoint { active: boolean | null; createdAt: string | null; createdBy: string | null; + createdByPrincipal: string | null; functionDefinitionId: string | null; host: string | null; id: string | null; @@ -785,6 +1426,7 @@ export interface PlatformWebhookEndpoint { signingSecretName: string | null; updatedAt: string | null; updatedBy: string | null; + updatedByPrincipal: string | null; } export interface PlatformWebhookEvent { createdAt: string | null; @@ -800,15 +1442,282 @@ export interface PlatformWebhookEvent { status: string | null; updatedAt: string | null; } +export interface ProposalComment { + actorId: string | null; + attachments: ConstructiveInternalTypeUpload[] | null; + body: string | null; + bodyTrgmSimilarity: number | null; + createdAt: string | null; + createdBy: string | null; + createdByPrincipal: string | null; + databaseId: string | null; + embedding: number[] | null; + embeddingUpdatedAt: string | null; + embeddingVectorDistance: number | null; + id: string | null; + line: number | null; + outdatedAt: string | null; + path: string | null; + pathTrgmSimilarity: number | null; + proposalId: string | null; + resolvedAt: string | null; + search: string | null; + searchScore: number | null; + searchTsvRank: number | null; + updatedAt: string | null; + updatedBy: string | null; + updatedByPrincipal: string | null; +} +export interface Proposal { + actorId: string | null; + body: string | null; + bodyTrgmSimilarity: number | null; + closedReason: string | null; + closedReasonTrgmSimilarity: number | null; + createdAt: string | null; + createdBy: string | null; + createdByPrincipal: string | null; + databaseId: string | null; + decidedAt: string | null; + dueAt: string | null; + embedding: number[] | null; + embeddingUpdatedAt: string | null; + embeddingVectorDistance: number | null; + id: string | null; + kind: string | null; + kindTrgmSimilarity: number | null; + labels: string[] | null; + mergeCommit: string | null; + mergeCommitTrgmSimilarity: number | null; + mergeMethod: string | null; + mergeMethodTrgmSimilarity: number | null; + mergeRequestedAt: string | null; + mergedAt: string | null; + metadata: unknown | null; + parentId: string | null; + priority: string | null; + repositoryId: string | null; + resolution: string | null; + resolutionTrgmSimilarity: number | null; + search: string | null; + searchScore: number | null; + searchTsvRank: number | null; + sourceRef: string | null; + sourceRefTrgmSimilarity: number | null; + status: string | null; + statusTrgmSimilarity: number | null; + targetRef: string | null; + targetRefTrgmSimilarity: number | null; + title: string | null; + titleTrgmSimilarity: number | null; + updatedAt: string | null; + updatedBy: string | null; + updatedByPrincipal: string | null; +} +export interface ProposalFileView { + blobSha: string | null; + createdAt: string | null; + createdByPrincipal: string | null; + databaseId: string | null; + id: string | null; + path: string | null; + proposalId: string | null; + reviewerId: string | null; + updatedAt: string | null; + updatedByPrincipal: string | null; + viewedAt: string | null; +} +export interface ProposalReaction { + actorId: string | null; + commentId: string | null; + createdAt: string | null; + createdByPrincipal: string | null; + databaseId: string | null; + emoji: string | null; + id: string | null; + proposalId: string | null; + updatedAt: string | null; + updatedByPrincipal: string | null; +} +export interface ProposalReview { + body: string | null; + bodyTrgmSimilarity: number | null; + commitSha: string | null; + commitShaTrgmSimilarity: number | null; + createdAt: string | null; + createdByPrincipal: string | null; + databaseId: string | null; + id: string | null; + proposalId: string | null; + reviewerId: string | null; + search: string | null; + searchScore: number | null; + searchTsvRank: number | null; + submittedAt: string | null; + updatedAt: string | null; + updatedByPrincipal: string | null; + verdict: string | null; + verdictTrgmSimilarity: number | null; +} +export interface ProposalsChunk { + actorId: string | null; + body: string | null; + chunkIndex: number | null; + createdAt: string | null; + databaseId: string | null; + embedding: number[] | null; + embeddingVectorDistance: number | null; + id: string | null; + metadata: unknown | null; + proposalsId: string | null; + searchScore: number | null; + updatedAt: string | null; +} +export interface RegistryBinding { + createdAt: string | null; + createdBy: string | null; + createdByPrincipal: string | null; + databaseId: string | null; + id: string | null; + metadata: unknown | null; + namespaceId: string | null; + observedCredentialVersion: string | null; + pullSecretName: string | null; + realm: string | null; + registryHost: string | null; + registryId: string | null; + status: string | null; + updatedAt: string | null; + updatedBy: string | null; + updatedByPrincipal: string | null; +} +export interface Registry { + authMode: string | null; + basePath: string | null; + createdAt: string | null; + createdByPrincipal: string | null; + credentialSecretName: string | null; + databaseId: string | null; + host: string | null; + id: string | null; + installationId: string | null; + isPublished: boolean | null; + kind: string | null; + labels: unknown | null; + lastError: string | null; + metadata: unknown | null; + name: string | null; + platformOnly: boolean | null; + role: string | null; + status: string | null; + updatedAt: string | null; + updatedByPrincipal: string | null; +} +export interface RegistryGrant { + actions: string[] | null; + createdAt: string | null; + createdByPrincipal: string | null; + databaseId: string | null; + expiresAt: string | null; + grantedBy: string | null; + granteeKey: string | null; + granteeScope: string | null; + id: string | null; + registryId: string | null; + updatedAt: string | null; + updatedByPrincipal: string | null; +} +export interface Repository { + cloneUrl: string | null; + cloneUrlTrgmSimilarity: number | null; + createdAt: string | null; + createdBy: string | null; + createdByPrincipal: string | null; + databaseId: string | null; + defaultBranch: string | null; + defaultBranchTrgmSimilarity: number | null; + description: string | null; + descriptionTrgmSimilarity: number | null; + embedding: number[] | null; + embeddingUpdatedAt: string | null; + embeddingVectorDistance: number | null; + externalId: string | null; + externalIdTrgmSimilarity: number | null; + id: string | null; + isArchived: boolean | null; + metadata: unknown | null; + name: string | null; + nameTrgmSimilarity: number | null; + ownerId: string | null; + provider: string | null; + providerTrgmSimilarity: number | null; + search: string | null; + searchScore: number | null; + searchTsvRank: number | null; + slug: string | null; + slugTrgmSimilarity: number | null; + updatedAt: string | null; + updatedBy: string | null; + updatedByPrincipal: string | null; + visibility: string | null; + visibilityTrgmSimilarity: number | null; +} +export interface RepositoryEvent { + actorId: string | null; + commitSha: string | null; + createdAt: string | null; + createdByPrincipal: string | null; + databaseId: string | null; + deliveryId: string | null; + eventType: string | null; + id: string | null; + metadata: unknown | null; + payload: unknown | null; + ref: string | null; + repositoryId: string | null; + updatedAt: string | null; + updatedByPrincipal: string | null; +} +export interface RepositoryRequiredCheck { + createdAt: string | null; + databaseId: string | null; + id: string | null; + repositoryId: string | null; + updatedAt: string | null; + workflowId: string | null; +} +export interface RepositoryWorkflow { + cancelInProgress: boolean | null; + concurrencyKey: string | null; + createdAt: string | null; + createdBy: string | null; + createdByPrincipal: string | null; + databaseId: string | null; + eventType: string | null; + graphId: string | null; + id: string | null; + inputs: unknown | null; + isEnabled: boolean | null; + name: string | null; + refPattern: string | null; + repositoryId: string | null; + requiredSecrets: string[] | null; + slug: string | null; + updatedAt: string | null; + updatedBy: string | null; + updatedByPrincipal: string | null; +} export interface Resource { annotations: unknown | null; cpuLimitMillicores: string | null; cpuRequestMillicores: string | null; createdAt: string | null; createdBy: string | null; + createdByPrincipal: string | null; databaseId: string | null; errorCount: number | null; id: string | null; + imageRef: string | null; installationId: string | null; integrations: string[] | null; kind: string | null; @@ -830,8 +1739,10 @@ export interface Resource { statusObserved: unknown | null; storageClass: string | null; storageSizeBytes: string | null; + storageTotalBytes: string | null; updatedAt: string | null; updatedBy: string | null; + updatedByPrincipal: string | null; } export interface ResourceDeclaredCapacity { cpuLimitMillicores: string | null; @@ -847,11 +1758,13 @@ export interface ResourceDeclaredCapacity { source: string | null; sourceId: string | null; storageSizeBytes: string | null; + storageTotalBytes: string | null; } export interface ResourceDefinition { annotations: unknown | null; createdAt: string | null; createdBy: string | null; + createdByPrincipal: string | null; databaseId: string | null; defaultSpec: unknown | null; description: string | null; @@ -868,6 +1781,7 @@ export interface ResourceDefinition { stepUpMinAge: string | null; updatedAt: string | null; updatedBy: string | null; + updatedByPrincipal: string | null; } export interface ResourceEvent { actorId: string | null; @@ -883,6 +1797,7 @@ export interface ResourceInstallation { commitId: string | null; createdAt: string | null; createdBy: string | null; + createdByPrincipal: string | null; databaseId: string | null; id: string | null; name: string | null; @@ -894,6 +1809,27 @@ export interface ResourceInstallation { storeId: string | null; updatedAt: string | null; updatedBy: string | null; + updatedByPrincipal: string | null; +} +export interface ResourceObservedStorage { + capacity: string | null; + capacityBytes: string | null; + claimName: string | null; + declaredStorageClass: string | null; + declaredStorageSizeBytes: string | null; + declaredStorageTotalBytes: string | null; + installationId: string | null; + isBound: boolean | null; + kind: string | null; + namespaceId: string | null; + phase: string | null; + requested: string | null; + requestedBytes: string | null; + resourceId: string | null; + resourceStatus: string | null; + slug: string | null; + storageClass: string | null; + storageName: string | null; } export interface ResourceStatusCheck { completedAt: string | null; @@ -956,9 +1892,11 @@ export interface ResourcesHealth { cpuRequestMillicores: string | null; createdAt: string | null; createdBy: string | null; + createdByPrincipal: string | null; databaseId: string | null; errorCount: number | null; id: string | null; + imageRef: string | null; installationId: string | null; integrations: string[] | null; kind: string | null; @@ -981,8 +1919,10 @@ export interface ResourcesHealth { statusObserved: unknown | null; storageClass: string | null; storageSizeBytes: string | null; + storageTotalBytes: string | null; updatedAt: string | null; updatedBy: string | null; + updatedByPrincipal: string | null; } export interface ResourcesRequirementsState { configHash: string | null; @@ -1010,6 +1950,7 @@ export interface WebhookEndpoint { active: boolean | null; createdAt: string | null; createdBy: string | null; + createdByPrincipal: string | null; databaseId: string | null; functionDefinitionId: string | null; host: string | null; @@ -1021,6 +1962,7 @@ export interface WebhookEndpoint { signingSecretName: string | null; updatedAt: string | null; updatedBy: string | null; + updatedByPrincipal: string | null; } export interface WebhookEvent { createdAt: string | null; diff --git a/sdk/constructive-react/src/config/README.md b/sdk/constructive-react/src/config/README.md index b642664f64..deed901327 100644 --- a/sdk/constructive-react/src/config/README.md +++ b/sdk/constructive-react/src/config/README.md @@ -8,9 +8,9 @@ ## Overview -- **Tables:** 5 +- **Tables:** 9 - **Custom queries:** 0 -- **Custom mutations:** 13 +- **Custom mutations:** 21 **Generators:** ORM, React Query diff --git a/sdk/constructive-react/src/config/hooks/README.md b/sdk/constructive-react/src/config/hooks/README.md index 4694fb9489..b1df3ea41f 100644 --- a/sdk/constructive-react/src/config/hooks/README.md +++ b/sdk/constructive-react/src/config/hooks/README.md @@ -32,16 +32,36 @@ function App() { | Hook | Type | Description | |------|------|-------------| +| `useAppInternalSecretsQuery` | Query | List all appInternalSecrets | +| `useAppInternalSecretQuery` | Query | Get one appInternalSecret | +| `useCreateAppInternalSecretMutation` | Mutation | Create a appInternalSecret | +| `useUpdateAppInternalSecretMutation` | Mutation | Update a appInternalSecret | +| `useDeleteAppInternalSecretMutation` | Mutation | Delete a appInternalSecret | | `useConfigsQuery` | Query | Namespace-backed plaintext key-value config store (like a k8s ConfigMap); admin-only, fully CRUD-exposed | | `useConfigQuery` | Query | Namespace-backed plaintext key-value config store (like a k8s ConfigMap); admin-only, fully CRUD-exposed | | `useCreateConfigMutation` | Mutation | Namespace-backed plaintext key-value config store (like a k8s ConfigMap); admin-only, fully CRUD-exposed | | `useUpdateConfigMutation` | Mutation | Namespace-backed plaintext key-value config store (like a k8s ConfigMap); admin-only, fully CRUD-exposed | | `useDeleteConfigMutation` | Mutation | Namespace-backed plaintext key-value config store (like a k8s ConfigMap); admin-only, fully CRUD-exposed | +| `useInternalConfigsQuery` | Query | -level plaintext key-value config store; database-resident, never projected into Kubernetes | +| `useInternalConfigQuery` | Query | -level plaintext key-value config store; database-resident, never projected into Kubernetes | +| `useCreateInternalConfigMutation` | Mutation | -level plaintext key-value config store; database-resident, never projected into Kubernetes | +| `useUpdateInternalConfigMutation` | Mutation | -level plaintext key-value config store; database-resident, never projected into Kubernetes | +| `useDeleteInternalConfigMutation` | Mutation | -level plaintext key-value config store; database-resident, never projected into Kubernetes | +| `useInternalSecretsQuery` | Query | List all internalSecrets | +| `useInternalSecretQuery` | Query | Get one internalSecret | +| `useCreateInternalSecretMutation` | Mutation | Create a internalSecret | +| `useUpdateInternalSecretMutation` | Mutation | Update a internalSecret | +| `useDeleteInternalSecretMutation` | Mutation | Delete a internalSecret | | `usePlatformConfigsQuery` | Query | Namespace-backed plaintext key-value config store (like a k8s ConfigMap); admin-only, fully CRUD-exposed | | `usePlatformConfigQuery` | Query | Namespace-backed plaintext key-value config store (like a k8s ConfigMap); admin-only, fully CRUD-exposed | | `useCreatePlatformConfigMutation` | Mutation | Namespace-backed plaintext key-value config store (like a k8s ConfigMap); admin-only, fully CRUD-exposed | | `useUpdatePlatformConfigMutation` | Mutation | Namespace-backed plaintext key-value config store (like a k8s ConfigMap); admin-only, fully CRUD-exposed | | `useDeletePlatformConfigMutation` | Mutation | Namespace-backed plaintext key-value config store (like a k8s ConfigMap); admin-only, fully CRUD-exposed | +| `usePlatformInternalConfigsQuery` | Query | platform-level plaintext key-value config store; database-resident, never projected into Kubernetes | +| `usePlatformInternalConfigQuery` | Query | platform-level plaintext key-value config store; database-resident, never projected into Kubernetes | +| `useCreatePlatformInternalConfigMutation` | Mutation | platform-level plaintext key-value config store; database-resident, never projected into Kubernetes | +| `useUpdatePlatformInternalConfigMutation` | Mutation | platform-level plaintext key-value config store; database-resident, never projected into Kubernetes | +| `useDeletePlatformInternalConfigMutation` | Mutation | platform-level plaintext key-value config store; database-resident, never projected into Kubernetes | | `usePlatformInternalSecretsQuery` | Query | List all platformInternalSecrets | | `usePlatformInternalSecretQuery` | Query | Get one platformInternalSecret | | `useCreatePlatformInternalSecretMutation` | Mutation | Create a platformInternalSecret | @@ -57,10 +77,18 @@ function App() { | `useCreateSecretMutation` | Mutation | Create a secret | | `useUpdateSecretMutation` | Mutation | Update a secret | | `useDeleteSecretMutation` | Mutation | Delete a secret | +| `use_internalSecretsDelMutation` | Mutation | _internalSecretsDel | +| `use_internalSecretsRemoveArrayMutation` | Mutation | _internalSecretsRemoveArray | +| `use_internalSecretsRotateMutation` | Mutation | _internalSecretsRotate | +| `use_internalSecretsSetMutation` | Mutation | _internalSecretsSet | | `use_secretsDelMutation` | Mutation | _secretsDel | | `use_secretsRemoveArrayMutation` | Mutation | _secretsRemoveArray | | `use_secretsRotateMutation` | Mutation | _secretsRotate | | `use_secretsSetMutation` | Mutation | _secretsSet | +| `useAppInternalSecretsDelMutation` | Mutation | appInternalSecretsDel | +| `useAppInternalSecretsRemoveArrayMutation` | Mutation | appInternalSecretsRemoveArray | +| `useAppInternalSecretsRotateMutation` | Mutation | appInternalSecretsRotate | +| `useAppInternalSecretsSetMutation` | Mutation | appInternalSecretsSet | | `usePlatformInternalSecretsDelMutation` | Mutation | platformInternalSecretsDel | | `usePlatformInternalSecretsRemoveArrayMutation` | Mutation | platformInternalSecretsRemoveArray | | `usePlatformInternalSecretsRotateMutation` | Mutation | platformInternalSecretsRotate | @@ -69,32 +97,96 @@ function App() { | `usePlatformSecretsRemoveArrayMutation` | Mutation | platformSecretsRemoveArray | | `usePlatformSecretsRotateMutation` | Mutation | platformSecretsRotate | | `usePlatformSecretsSetMutation` | Mutation | platformSecretsSet | -| `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. | +| `useProvisionBucketMutation` | Mutation | Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. | ## Table Hooks +### AppInternalSecret + +```typescript +// List all appInternalSecrets +const { data, isLoading } = useAppInternalSecretsQuery({ + selection: { fields: { annotations: true, createdAt: true, description: true, id: true, labels: true, name: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } }, +}); + +// Get one appInternalSecret +const { data: item } = useAppInternalSecretQuery({ + id: '', + selection: { fields: { annotations: true, createdAt: true, description: true, id: true, labels: true, name: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } }, +}); + +// Create a appInternalSecret +const { mutate: create } = useCreateAppInternalSecretMutation({ + selection: { fields: { id: true } }, +}); +create({ annotations: '', description: '', labels: '', name: '', realm: '', retiredAt: '', rotatedAt: '' }); +``` + ### Config ```typescript // List all configs const { data, isLoading } = useConfigsQuery({ - selection: { fields: { annotations: true, createdAt: true, databaseId: true, description: true, expiresAt: true, id: true, labels: true, name: true, namespaceId: true, provider: true, realm: true, updatedAt: true, value: true } }, + selection: { fields: { annotations: true, createdAt: true, createdByPrincipal: true, databaseId: true, description: true, expiresAt: true, id: true, labels: true, name: true, namespaceId: true, provider: true, realm: true, updatedAt: true, updatedByPrincipal: true, value: true } }, }); // Get one config const { data: item } = useConfigQuery({ id: '', - selection: { fields: { annotations: true, createdAt: true, databaseId: true, description: true, expiresAt: true, id: true, labels: true, name: true, namespaceId: true, provider: true, realm: true, updatedAt: true, value: true } }, + selection: { fields: { annotations: true, createdAt: true, createdByPrincipal: true, databaseId: true, description: true, expiresAt: true, id: true, labels: true, name: true, namespaceId: true, provider: true, realm: true, updatedAt: true, updatedByPrincipal: true, value: true } }, }); // Create a config const { mutate: create } = useCreateConfigMutation({ selection: { fields: { id: true } }, }); -create({ annotations: '', databaseId: '', description: '', expiresAt: '', labels: '', name: '', namespaceId: '', provider: '', realm: '', value: '' }); +create({ annotations: '', createdByPrincipal: '', databaseId: '', description: '', expiresAt: '', labels: '', name: '', namespaceId: '', provider: '', realm: '', updatedByPrincipal: '', value: '' }); +``` + +### InternalConfig + +```typescript +// List all internalConfigs +const { data, isLoading } = useInternalConfigsQuery({ + selection: { fields: { annotations: true, createdAt: true, databaseId: true, description: true, expiresAt: true, id: true, labels: true, name: true, provider: true, realm: true, updatedAt: true, value: true } }, +}); + +// Get one internalConfig +const { data: item } = useInternalConfigQuery({ + id: '', + selection: { fields: { annotations: true, createdAt: true, databaseId: true, description: true, expiresAt: true, id: true, labels: true, name: true, provider: true, realm: true, updatedAt: true, value: true } }, +}); + +// Create a internalConfig +const { mutate: create } = useCreateInternalConfigMutation({ + selection: { fields: { id: true } }, +}); +create({ annotations: '', databaseId: '', description: '', expiresAt: '', labels: '', name: '', provider: '', realm: '', value: '' }); +``` + +### InternalSecret + +```typescript +// List all internalSecrets +const { data, isLoading } = useInternalSecretsQuery({ + selection: { fields: { annotations: true, createdAt: true, databaseId: true, description: true, id: true, labels: true, name: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } }, +}); + +// Get one internalSecret +const { data: item } = useInternalSecretQuery({ + id: '', + selection: { fields: { annotations: true, createdAt: true, databaseId: true, description: true, id: true, labels: true, name: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } }, +}); + +// Create a internalSecret +const { mutate: create } = useCreateInternalSecretMutation({ + selection: { fields: { id: true } }, +}); +create({ annotations: '', databaseId: '', description: '', labels: '', name: '', realm: '', retiredAt: '', rotatedAt: '' }); ``` ### PlatformConfig @@ -102,20 +194,41 @@ create({ annotations: '', databaseId: '', description: '', e ```typescript // List all platformConfigs const { data, isLoading } = usePlatformConfigsQuery({ - selection: { fields: { annotations: true, createdAt: true, description: true, expiresAt: true, id: true, labels: true, name: true, namespaceId: true, provider: true, realm: true, updatedAt: true, value: true } }, + selection: { fields: { annotations: true, createdAt: true, createdByPrincipal: true, description: true, expiresAt: true, id: true, labels: true, name: true, namespaceId: true, provider: true, realm: true, updatedAt: true, updatedByPrincipal: true, value: true } }, }); // Get one platformConfig const { data: item } = usePlatformConfigQuery({ id: '', - selection: { fields: { annotations: true, createdAt: true, description: true, expiresAt: true, id: true, labels: true, name: true, namespaceId: true, provider: true, realm: true, updatedAt: true, value: true } }, + selection: { fields: { annotations: true, createdAt: true, createdByPrincipal: true, description: true, expiresAt: true, id: true, labels: true, name: true, namespaceId: true, provider: true, realm: true, updatedAt: true, updatedByPrincipal: true, value: true } }, }); // Create a platformConfig const { mutate: create } = useCreatePlatformConfigMutation({ selection: { fields: { id: true } }, }); -create({ annotations: '', description: '', expiresAt: '', labels: '', name: '', namespaceId: '', provider: '', realm: '', value: '' }); +create({ annotations: '', createdByPrincipal: '', description: '', expiresAt: '', labels: '', name: '', namespaceId: '', provider: '', realm: '', updatedByPrincipal: '', value: '' }); +``` + +### PlatformInternalConfig + +```typescript +// List all platformInternalConfigs +const { data, isLoading } = usePlatformInternalConfigsQuery({ + selection: { fields: { annotations: true, createdAt: true, description: true, expiresAt: true, id: true, labels: true, name: true, provider: true, realm: true, updatedAt: true, value: true } }, +}); + +// Get one platformInternalConfig +const { data: item } = usePlatformInternalConfigQuery({ + id: '', + selection: { fields: { annotations: true, createdAt: true, description: true, expiresAt: true, id: true, labels: true, name: true, provider: true, realm: true, updatedAt: true, value: true } }, +}); + +// Create a platformInternalConfig +const { mutate: create } = useCreatePlatformInternalConfigMutation({ + selection: { fields: { id: true } }, +}); +create({ annotations: '', description: '', expiresAt: '', labels: '', name: '', provider: '', realm: '', value: '' }); ``` ### PlatformInternalSecret @@ -123,20 +236,20 @@ create({ annotations: '', description: '', expiresAt: '' ```typescript // List all platformInternalSecrets const { data, isLoading } = usePlatformInternalSecretsQuery({ - selection: { fields: { annotations: true, createdAt: true, description: true, id: true, labels: true, name: true, namespaceId: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } }, + selection: { fields: { annotations: true, createdAt: true, description: true, id: true, labels: true, name: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } }, }); // Get one platformInternalSecret const { data: item } = usePlatformInternalSecretQuery({ id: '', - selection: { fields: { annotations: true, createdAt: true, description: true, id: true, labels: true, name: true, namespaceId: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } }, + selection: { fields: { annotations: true, createdAt: true, description: true, id: true, labels: true, name: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } }, }); // Create a platformInternalSecret const { mutate: create } = useCreatePlatformInternalSecretMutation({ selection: { fields: { id: true } }, }); -create({ annotations: '', description: '', labels: '', name: '', namespaceId: '', realm: '', retiredAt: '', rotatedAt: '' }); +create({ annotations: '', description: '', labels: '', name: '', realm: '', retiredAt: '', rotatedAt: '' }); ``` ### PlatformSecret @@ -183,6 +296,50 @@ create({ annotations: '', databaseId: '', description: '', l ## Custom Operation Hooks +### `use_internalSecretsDelMutation` + +_internalSecretsDel + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | _InternalSecretsDelInput (required) | + +### `use_internalSecretsRemoveArrayMutation` + +_internalSecretsRemoveArray + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | _InternalSecretsRemoveArrayInput (required) | + +### `use_internalSecretsRotateMutation` + +_internalSecretsRotate + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | _InternalSecretsRotateInput (required) | + +### `use_internalSecretsSetMutation` + +_internalSecretsSet + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | _InternalSecretsSetInput (required) | + ### `use_secretsDelMutation` _secretsDel @@ -227,6 +384,50 @@ _secretsSet |----------|------| | `input` | _SecretsSetInput (required) | +### `useAppInternalSecretsDelMutation` + +appInternalSecretsDel + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | AppInternalSecretsDelInput (required) | + +### `useAppInternalSecretsRemoveArrayMutation` + +appInternalSecretsRemoveArray + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | AppInternalSecretsRemoveArrayInput (required) | + +### `useAppInternalSecretsRotateMutation` + +appInternalSecretsRotate + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | AppInternalSecretsRotateInput (required) | + +### `useAppInternalSecretsSetMutation` + +appInternalSecretsSet + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | AppInternalSecretsSetInput (required) | + ### `usePlatformInternalSecretsDelMutation` platformInternalSecretsDel @@ -317,10 +518,11 @@ platformSecretsSet ### `useProvisionBucketMutation` -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. +Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. - **Type:** mutation - **Arguments:** diff --git a/sdk/constructive-react/src/config/hooks/index.ts b/sdk/constructive-react/src/config/hooks/index.ts index 14ac3b09eb..d98de9f8cc 100644 --- a/sdk/constructive-react/src/config/hooks/index.ts +++ b/sdk/constructive-react/src/config/hooks/index.ts @@ -2,7 +2,7 @@ * GraphQL SDK * @generated by @constructive-io/graphql-codegen * - * Tables: Config, PlatformConfig, PlatformInternalSecret, PlatformSecret, Secret + * Tables: AppInternalSecret, Config, InternalConfig, InternalSecret, PlatformConfig, PlatformInternalConfig, PlatformInternalSecret, PlatformSecret, Secret * * Usage: * diff --git a/sdk/constructive-react/src/config/hooks/invalidation.ts b/sdk/constructive-react/src/config/hooks/invalidation.ts index 86978c03fa..3e8b551025 100644 --- a/sdk/constructive-react/src/config/hooks/invalidation.ts +++ b/sdk/constructive-react/src/config/hooks/invalidation.ts @@ -15,8 +15,12 @@ import type { QueryClient } from '@tanstack/react-query'; import { + appInternalSecretKeys, configKeys, + internalConfigKeys, + internalSecretKeys, platformConfigKeys, + platformInternalConfigKeys, platformInternalSecretKeys, platformSecretKeys, secretKeys, @@ -41,6 +45,23 @@ import { * ``` */ export const invalidate = { + /** Invalidate appInternalSecret queries */ appInternalSecret: { + /** Invalidate all appInternalSecret queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appInternalSecretKeys.all, + }), + /** Invalidate appInternalSecret list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appInternalSecretKeys.lists(), + }), + /** Invalidate a specific appInternalSecret */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: appInternalSecretKeys.detail(id), + }), + }, /** Invalidate config queries */ config: { /** Invalidate all config queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -55,6 +76,40 @@ export const invalidate = { queryKey: configKeys.detail(id), }), }, + /** Invalidate internalConfig queries */ internalConfig: { + /** Invalidate all internalConfig queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: internalConfigKeys.all, + }), + /** Invalidate internalConfig list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: internalConfigKeys.lists(), + }), + /** Invalidate a specific internalConfig */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: internalConfigKeys.detail(id), + }), + }, + /** Invalidate internalSecret queries */ internalSecret: { + /** Invalidate all internalSecret queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: internalSecretKeys.all, + }), + /** Invalidate internalSecret list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: internalSecretKeys.lists(), + }), + /** Invalidate a specific internalSecret */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: internalSecretKeys.detail(id), + }), + }, /** Invalidate platformConfig queries */ platformConfig: { /** Invalidate all platformConfig queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -72,6 +127,23 @@ export const invalidate = { queryKey: platformConfigKeys.detail(id), }), }, + /** Invalidate platformInternalConfig queries */ platformInternalConfig: { + /** Invalidate all platformInternalConfig queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformInternalConfigKeys.all, + }), + /** Invalidate platformInternalConfig list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformInternalConfigKeys.lists(), + }), + /** Invalidate a specific platformInternalConfig */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: platformInternalConfigKeys.detail(id), + }), + }, /** Invalidate platformInternalSecret queries */ platformInternalSecret: { /** Invalidate all platformInternalSecret queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -133,11 +205,35 @@ export const invalidate = { * instead of just invalidating (which would trigger a refetch). */ export const remove = { + /** Remove appInternalSecret from cache */ appInternalSecret: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: appInternalSecretKeys.detail(id), + }); + }, /** Remove config from cache */ config: (queryClient: QueryClient, id: string | number) => { queryClient.removeQueries({ queryKey: configKeys.detail(id), }); }, + /** Remove internalConfig from cache */ internalConfig: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: internalConfigKeys.detail(id), + }); + }, + /** Remove internalSecret from cache */ internalSecret: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: internalSecretKeys.detail(id), + }); + }, /** Remove platformConfig from cache */ platformConfig: ( queryClient: QueryClient, id: string | number @@ -146,6 +242,14 @@ export const remove = { queryKey: platformConfigKeys.detail(id), }); }, + /** Remove platformInternalConfig from cache */ platformInternalConfig: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: platformInternalConfigKeys.detail(id), + }); + }, /** Remove platformInternalSecret from cache */ platformInternalSecret: ( queryClient: QueryClient, id: string | number diff --git a/sdk/constructive-react/src/config/hooks/mutation-keys.ts b/sdk/constructive-react/src/config/hooks/mutation-keys.ts index 77a9ae8747..f949256711 100644 --- a/sdk/constructive-react/src/config/hooks/mutation-keys.ts +++ b/sdk/constructive-react/src/config/hooks/mutation-keys.ts @@ -18,6 +18,15 @@ // Entity Mutation Keys // ============================================================================ +export const appInternalSecretMutationKeys = { + /** All appInternalSecret mutation keys */ all: ['mutation', 'appinternalsecret'] as const, + /** Create appInternalSecret mutation key */ create: () => + ['mutation', 'appinternalsecret', 'create'] as const, + /** Update appInternalSecret mutation key */ update: (id: string | number) => + ['mutation', 'appinternalsecret', 'update', id] as const, + /** Delete appInternalSecret mutation key */ delete: (id: string | number) => + ['mutation', 'appinternalsecret', 'delete', id] as const, +} as const; export const configMutationKeys = { /** All config mutation keys */ all: ['mutation', 'config'] as const, /** Create config mutation key */ create: () => ['mutation', 'config', 'create'] as const, @@ -26,6 +35,24 @@ export const configMutationKeys = { /** Delete config mutation key */ delete: (id: string | number) => ['mutation', 'config', 'delete', id] as const, } as const; +export const internalConfigMutationKeys = { + /** All internalConfig mutation keys */ all: ['mutation', 'internalconfig'] as const, + /** Create internalConfig mutation key */ create: () => + ['mutation', 'internalconfig', 'create'] as const, + /** Update internalConfig mutation key */ update: (id: string | number) => + ['mutation', 'internalconfig', 'update', id] as const, + /** Delete internalConfig mutation key */ delete: (id: string | number) => + ['mutation', 'internalconfig', 'delete', id] as const, +} as const; +export const internalSecretMutationKeys = { + /** All internalSecret mutation keys */ all: ['mutation', 'internalsecret'] as const, + /** Create internalSecret mutation key */ create: () => + ['mutation', 'internalsecret', 'create'] as const, + /** Update internalSecret mutation key */ update: (id: string | number) => + ['mutation', 'internalsecret', 'update', id] as const, + /** Delete internalSecret mutation key */ delete: (id: string | number) => + ['mutation', 'internalsecret', 'delete', id] as const, +} as const; export const platformConfigMutationKeys = { /** All platformConfig mutation keys */ all: ['mutation', 'platformconfig'] as const, /** Create platformConfig mutation key */ create: () => @@ -35,6 +62,18 @@ export const platformConfigMutationKeys = { /** Delete platformConfig mutation key */ delete: (id: string | number) => ['mutation', 'platformconfig', 'delete', id] as const, } as const; +export const platformInternalConfigMutationKeys = { + /** All platformInternalConfig mutation keys */ all: [ + 'mutation', + 'platforminternalconfig', + ] as const, + /** Create platformInternalConfig mutation key */ create: () => + ['mutation', 'platforminternalconfig', 'create'] as const, + /** Update platformInternalConfig mutation key */ update: (id: string | number) => + ['mutation', 'platforminternalconfig', 'update', id] as const, + /** Delete platformInternalConfig mutation key */ delete: (id: string | number) => + ['mutation', 'platforminternalconfig', 'delete', id] as const, +} as const; export const platformInternalSecretMutationKeys = { /** All platformInternalSecret mutation keys */ all: [ 'mutation', @@ -70,6 +109,24 @@ export const secretMutationKeys = { // ============================================================================ export const customMutationKeys = { + /** Mutation key for _internalSecretsDel */ _internalSecretsDel: (identifier?: string) => + identifier + ? (['mutation', '_internalSecretsDel', identifier] as const) + : (['mutation', '_internalSecretsDel'] as const), + /** Mutation key for _internalSecretsRemoveArray */ _internalSecretsRemoveArray: ( + identifier?: string + ) => + identifier + ? (['mutation', '_internalSecretsRemoveArray', identifier] as const) + : (['mutation', '_internalSecretsRemoveArray'] as const), + /** Mutation key for _internalSecretsRotate */ _internalSecretsRotate: (identifier?: string) => + identifier + ? (['mutation', '_internalSecretsRotate', identifier] as const) + : (['mutation', '_internalSecretsRotate'] as const), + /** Mutation key for _internalSecretsSet */ _internalSecretsSet: (identifier?: string) => + identifier + ? (['mutation', '_internalSecretsSet', identifier] as const) + : (['mutation', '_internalSecretsSet'] as const), /** Mutation key for _secretsDel */ _secretsDel: (identifier?: string) => identifier ? (['mutation', '_secretsDel', identifier] as const) @@ -86,6 +143,26 @@ export const customMutationKeys = { identifier ? (['mutation', '_secretsSet', identifier] as const) : (['mutation', '_secretsSet'] as const), + /** Mutation key for appInternalSecretsDel */ appInternalSecretsDel: (identifier?: string) => + identifier + ? (['mutation', 'appInternalSecretsDel', identifier] as const) + : (['mutation', 'appInternalSecretsDel'] as const), + /** Mutation key for appInternalSecretsRemoveArray */ appInternalSecretsRemoveArray: ( + identifier?: string + ) => + identifier + ? (['mutation', 'appInternalSecretsRemoveArray', identifier] as const) + : (['mutation', 'appInternalSecretsRemoveArray'] as const), + /** Mutation key for appInternalSecretsRotate */ appInternalSecretsRotate: ( + identifier?: string + ) => + identifier + ? (['mutation', 'appInternalSecretsRotate', identifier] as const) + : (['mutation', 'appInternalSecretsRotate'] as const), + /** Mutation key for appInternalSecretsSet */ appInternalSecretsSet: (identifier?: string) => + identifier + ? (['mutation', 'appInternalSecretsSet', identifier] as const) + : (['mutation', 'appInternalSecretsSet'] as const), /** Mutation key for platformInternalSecretsDel */ platformInternalSecretsDel: ( identifier?: string ) => @@ -156,8 +233,12 @@ export const customMutationKeys = { * ``` */ export const mutationKeys = { + appInternalSecret: appInternalSecretMutationKeys, config: configMutationKeys, + internalConfig: internalConfigMutationKeys, + internalSecret: internalSecretMutationKeys, platformConfig: platformConfigMutationKeys, + platformInternalConfig: platformInternalConfigMutationKeys, platformInternalSecret: platformInternalSecretMutationKeys, platformSecret: platformSecretMutationKeys, secret: secretMutationKeys, diff --git a/sdk/constructive-react/src/config/hooks/mutations/index.ts b/sdk/constructive-react/src/config/hooks/mutations/index.ts index ef4a6219af..0c0a3c37b5 100644 --- a/sdk/constructive-react/src/config/hooks/mutations/index.ts +++ b/sdk/constructive-react/src/config/hooks/mutations/index.ts @@ -3,19 +3,35 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ +export * from './useCreateAppInternalSecretMutation'; export * from './useCreateConfigMutation'; export * from './useUpdateConfigMutation'; export * from './useDeleteConfigMutation'; +export * from './useCreateInternalConfigMutation'; +export * from './useUpdateInternalConfigMutation'; +export * from './useDeleteInternalConfigMutation'; +export * from './useCreateInternalSecretMutation'; export * from './useCreatePlatformConfigMutation'; export * from './useUpdatePlatformConfigMutation'; export * from './useDeletePlatformConfigMutation'; +export * from './useCreatePlatformInternalConfigMutation'; +export * from './useUpdatePlatformInternalConfigMutation'; +export * from './useDeletePlatformInternalConfigMutation'; export * from './useCreatePlatformInternalSecretMutation'; export * from './useCreatePlatformSecretMutation'; export * from './useCreateSecretMutation'; +export * from './use_internalSecretsDelMutation'; +export * from './use_internalSecretsRemoveArrayMutation'; +export * from './use_internalSecretsRotateMutation'; +export * from './use_internalSecretsSetMutation'; export * from './use_secretsDelMutation'; export * from './use_secretsRemoveArrayMutation'; export * from './use_secretsRotateMutation'; export * from './use_secretsSetMutation'; +export * from './useAppInternalSecretsDelMutation'; +export * from './useAppInternalSecretsRemoveArrayMutation'; +export * from './useAppInternalSecretsRotateMutation'; +export * from './useAppInternalSecretsSetMutation'; export * from './usePlatformInternalSecretsDelMutation'; export * from './usePlatformInternalSecretsRemoveArrayMutation'; export * from './usePlatformInternalSecretsRotateMutation'; diff --git a/sdk/constructive-react/src/config/hooks/mutations/useAppInternalSecretsDelMutation.ts b/sdk/constructive-react/src/config/hooks/mutations/useAppInternalSecretsDelMutation.ts new file mode 100644 index 0000000000..b1027c4d38 --- /dev/null +++ b/sdk/constructive-react/src/config/hooks/mutations/useAppInternalSecretsDelMutation.ts @@ -0,0 +1,58 @@ +/** + * Custom mutation hook for appInternalSecretsDel + * @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 { AppInternalSecretsDelVariables } from '../../orm/mutation'; +import type { + AppInternalSecretsDelPayloadSelect, + AppInternalSecretsDelPayload, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { AppInternalSecretsDelVariables } from '../../orm/mutation'; +export type { AppInternalSecretsDelPayloadSelect } from '../../orm/input-types'; +export function useAppInternalSecretsDelMutation( + params: { + selection: { + fields: S & AppInternalSecretsDelPayloadSelect; + } & HookStrictSelect, AppInternalSecretsDelPayloadSelect>; + } & Omit< + UseMutationOptions< + { + appInternalSecretsDel: InferSelectResult | null; + }, + Error, + AppInternalSecretsDelVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + appInternalSecretsDel: InferSelectResult | null; + }, + Error, + AppInternalSecretsDelVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.appInternalSecretsDel(), + mutationFn: (variables: AppInternalSecretsDelVariables) => + getClient() + .mutation.appInternalSecretsDel(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/config/hooks/mutations/useAppInternalSecretsRemoveArrayMutation.ts b/sdk/constructive-react/src/config/hooks/mutations/useAppInternalSecretsRemoveArrayMutation.ts new file mode 100644 index 0000000000..10577a70f6 --- /dev/null +++ b/sdk/constructive-react/src/config/hooks/mutations/useAppInternalSecretsRemoveArrayMutation.ts @@ -0,0 +1,66 @@ +/** + * Custom mutation hook for appInternalSecretsRemoveArray + * @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 { AppInternalSecretsRemoveArrayVariables } from '../../orm/mutation'; +import type { + AppInternalSecretsRemoveArrayPayloadSelect, + AppInternalSecretsRemoveArrayPayload, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { AppInternalSecretsRemoveArrayVariables } from '../../orm/mutation'; +export type { AppInternalSecretsRemoveArrayPayloadSelect } from '../../orm/input-types'; +export function useAppInternalSecretsRemoveArrayMutation< + S extends AppInternalSecretsRemoveArrayPayloadSelect, +>( + params: { + selection: { + fields: S & AppInternalSecretsRemoveArrayPayloadSelect; + } & HookStrictSelect, AppInternalSecretsRemoveArrayPayloadSelect>; + } & Omit< + UseMutationOptions< + { + appInternalSecretsRemoveArray: InferSelectResult< + AppInternalSecretsRemoveArrayPayload, + S + > | null; + }, + Error, + AppInternalSecretsRemoveArrayVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + appInternalSecretsRemoveArray: InferSelectResult< + AppInternalSecretsRemoveArrayPayload, + S + > | null; + }, + Error, + AppInternalSecretsRemoveArrayVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.appInternalSecretsRemoveArray(), + mutationFn: (variables: AppInternalSecretsRemoveArrayVariables) => + getClient() + .mutation.appInternalSecretsRemoveArray(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/config/hooks/mutations/useAppInternalSecretsRotateMutation.ts b/sdk/constructive-react/src/config/hooks/mutations/useAppInternalSecretsRotateMutation.ts new file mode 100644 index 0000000000..0c6b315dde --- /dev/null +++ b/sdk/constructive-react/src/config/hooks/mutations/useAppInternalSecretsRotateMutation.ts @@ -0,0 +1,60 @@ +/** + * Custom mutation hook for appInternalSecretsRotate + * @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 { AppInternalSecretsRotateVariables } from '../../orm/mutation'; +import type { + AppInternalSecretsRotatePayloadSelect, + AppInternalSecretsRotatePayload, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { AppInternalSecretsRotateVariables } from '../../orm/mutation'; +export type { AppInternalSecretsRotatePayloadSelect } from '../../orm/input-types'; +export function useAppInternalSecretsRotateMutation< + S extends AppInternalSecretsRotatePayloadSelect, +>( + params: { + selection: { + fields: S & AppInternalSecretsRotatePayloadSelect; + } & HookStrictSelect, AppInternalSecretsRotatePayloadSelect>; + } & Omit< + UseMutationOptions< + { + appInternalSecretsRotate: InferSelectResult | null; + }, + Error, + AppInternalSecretsRotateVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + appInternalSecretsRotate: InferSelectResult | null; + }, + Error, + AppInternalSecretsRotateVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.appInternalSecretsRotate(), + mutationFn: (variables: AppInternalSecretsRotateVariables) => + getClient() + .mutation.appInternalSecretsRotate(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/config/hooks/mutations/useAppInternalSecretsSetMutation.ts b/sdk/constructive-react/src/config/hooks/mutations/useAppInternalSecretsSetMutation.ts new file mode 100644 index 0000000000..d8c865e047 --- /dev/null +++ b/sdk/constructive-react/src/config/hooks/mutations/useAppInternalSecretsSetMutation.ts @@ -0,0 +1,58 @@ +/** + * Custom mutation hook for appInternalSecretsSet + * @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 { AppInternalSecretsSetVariables } from '../../orm/mutation'; +import type { + AppInternalSecretsSetPayloadSelect, + AppInternalSecretsSetPayload, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { AppInternalSecretsSetVariables } from '../../orm/mutation'; +export type { AppInternalSecretsSetPayloadSelect } from '../../orm/input-types'; +export function useAppInternalSecretsSetMutation( + params: { + selection: { + fields: S & AppInternalSecretsSetPayloadSelect; + } & HookStrictSelect, AppInternalSecretsSetPayloadSelect>; + } & Omit< + UseMutationOptions< + { + appInternalSecretsSet: InferSelectResult | null; + }, + Error, + AppInternalSecretsSetVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + appInternalSecretsSet: InferSelectResult | null; + }, + Error, + AppInternalSecretsSetVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.appInternalSecretsSet(), + mutationFn: (variables: AppInternalSecretsSetVariables) => + getClient() + .mutation.appInternalSecretsSet(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/config/hooks/mutations/useCreateAppInternalSecretMutation.ts b/sdk/constructive-react/src/config/hooks/mutations/useCreateAppInternalSecretMutation.ts new file mode 100644 index 0000000000..86154c3485 --- /dev/null +++ b/sdk/constructive-react/src/config/hooks/mutations/useCreateAppInternalSecretMutation.ts @@ -0,0 +1,91 @@ +/** + * Create mutation hook for AppInternalSecret + * @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 { appInternalSecretKeys } from '../query-keys'; +import { appInternalSecretMutationKeys } from '../mutation-keys'; +import type { + AppInternalSecretSelect, + AppInternalSecretWithRelations, + CreateAppInternalSecretInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AppInternalSecretSelect, + AppInternalSecretWithRelations, + CreateAppInternalSecretInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a AppInternalSecret + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateAppInternalSecretMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateAppInternalSecretMutation( + params: { + selection: { + fields: S & AppInternalSecretSelect; + } & HookStrictSelect, AppInternalSecretSelect>; + } & Omit< + UseMutationOptions< + { + createAppInternalSecret: { + appInternalSecret: InferSelectResult; + }; + }, + Error, + CreateAppInternalSecretInput['appInternalSecret'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createAppInternalSecret: { + appInternalSecret: InferSelectResult; + }; + }, + Error, + CreateAppInternalSecretInput['appInternalSecret'] +>; +export function useCreateAppInternalSecretMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: appInternalSecretMutationKeys.create(), + mutationFn: (data: CreateAppInternalSecretInput['appInternalSecret']) => + getClient() + .appInternalSecret.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: appInternalSecretKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/config/hooks/mutations/useCreateInternalConfigMutation.ts b/sdk/constructive-react/src/config/hooks/mutations/useCreateInternalConfigMutation.ts new file mode 100644 index 0000000000..f552defd32 --- /dev/null +++ b/sdk/constructive-react/src/config/hooks/mutations/useCreateInternalConfigMutation.ts @@ -0,0 +1,91 @@ +/** + * -level plaintext key-value config store; database-resident, never projected into Kubernetes + * @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 { internalConfigKeys } from '../query-keys'; +import { internalConfigMutationKeys } from '../mutation-keys'; +import type { + InternalConfigSelect, + InternalConfigWithRelations, + CreateInternalConfigInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + InternalConfigSelect, + InternalConfigWithRelations, + CreateInternalConfigInput, +} from '../../orm/input-types'; +/** + * -level plaintext key-value config store; database-resident, never projected into Kubernetes + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateInternalConfigMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateInternalConfigMutation( + params: { + selection: { + fields: S & InternalConfigSelect; + } & HookStrictSelect, InternalConfigSelect>; + } & Omit< + UseMutationOptions< + { + createInternalConfig: { + internalConfig: InferSelectResult; + }; + }, + Error, + CreateInternalConfigInput['internalConfig'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createInternalConfig: { + internalConfig: InferSelectResult; + }; + }, + Error, + CreateInternalConfigInput['internalConfig'] +>; +export function useCreateInternalConfigMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: internalConfigMutationKeys.create(), + mutationFn: (data: CreateInternalConfigInput['internalConfig']) => + getClient() + .internalConfig.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: internalConfigKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/config/hooks/mutations/useCreateInternalSecretMutation.ts b/sdk/constructive-react/src/config/hooks/mutations/useCreateInternalSecretMutation.ts new file mode 100644 index 0000000000..bb3267f50a --- /dev/null +++ b/sdk/constructive-react/src/config/hooks/mutations/useCreateInternalSecretMutation.ts @@ -0,0 +1,91 @@ +/** + * Create mutation hook for InternalSecret + * @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 { internalSecretKeys } from '../query-keys'; +import { internalSecretMutationKeys } from '../mutation-keys'; +import type { + InternalSecretSelect, + InternalSecretWithRelations, + CreateInternalSecretInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + InternalSecretSelect, + InternalSecretWithRelations, + CreateInternalSecretInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a InternalSecret + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateInternalSecretMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateInternalSecretMutation( + params: { + selection: { + fields: S & InternalSecretSelect; + } & HookStrictSelect, InternalSecretSelect>; + } & Omit< + UseMutationOptions< + { + createInternalSecret: { + internalSecret: InferSelectResult; + }; + }, + Error, + CreateInternalSecretInput['internalSecret'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createInternalSecret: { + internalSecret: InferSelectResult; + }; + }, + Error, + CreateInternalSecretInput['internalSecret'] +>; +export function useCreateInternalSecretMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: internalSecretMutationKeys.create(), + mutationFn: (data: CreateInternalSecretInput['internalSecret']) => + getClient() + .internalSecret.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: internalSecretKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/config/hooks/mutations/useCreatePlatformInternalConfigMutation.ts b/sdk/constructive-react/src/config/hooks/mutations/useCreatePlatformInternalConfigMutation.ts new file mode 100644 index 0000000000..0f9f9807bd --- /dev/null +++ b/sdk/constructive-react/src/config/hooks/mutations/useCreatePlatformInternalConfigMutation.ts @@ -0,0 +1,91 @@ +/** + * platform-level plaintext key-value config store; database-resident, never projected into Kubernetes + * @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 { platformInternalConfigKeys } from '../query-keys'; +import { platformInternalConfigMutationKeys } from '../mutation-keys'; +import type { + PlatformInternalConfigSelect, + PlatformInternalConfigWithRelations, + CreatePlatformInternalConfigInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformInternalConfigSelect, + PlatformInternalConfigWithRelations, + CreatePlatformInternalConfigInput, +} from '../../orm/input-types'; +/** + * platform-level plaintext key-value config store; database-resident, never projected into Kubernetes + * + * @example + * ```tsx + * const { mutate, isPending } = useCreatePlatformInternalConfigMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreatePlatformInternalConfigMutation( + params: { + selection: { + fields: S & PlatformInternalConfigSelect; + } & HookStrictSelect, PlatformInternalConfigSelect>; + } & Omit< + UseMutationOptions< + { + createPlatformInternalConfig: { + platformInternalConfig: InferSelectResult; + }; + }, + Error, + CreatePlatformInternalConfigInput['platformInternalConfig'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createPlatformInternalConfig: { + platformInternalConfig: InferSelectResult; + }; + }, + Error, + CreatePlatformInternalConfigInput['platformInternalConfig'] +>; +export function useCreatePlatformInternalConfigMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformInternalConfigMutationKeys.create(), + mutationFn: (data: CreatePlatformInternalConfigInput['platformInternalConfig']) => + getClient() + .platformInternalConfig.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: platformInternalConfigKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/config/hooks/mutations/useDeleteInternalConfigMutation.ts b/sdk/constructive-react/src/config/hooks/mutations/useDeleteInternalConfigMutation.ts new file mode 100644 index 0000000000..7b81059206 --- /dev/null +++ b/sdk/constructive-react/src/config/hooks/mutations/useDeleteInternalConfigMutation.ts @@ -0,0 +1,98 @@ +/** + * -level plaintext key-value config store; database-resident, never projected into Kubernetes + * @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 { internalConfigKeys } from '../query-keys'; +import { internalConfigMutationKeys } from '../mutation-keys'; +import type { InternalConfigSelect, InternalConfigWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { InternalConfigSelect, InternalConfigWithRelations } from '../../orm/input-types'; +/** + * -level plaintext key-value config store; database-resident, never projected into Kubernetes + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteInternalConfigMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteInternalConfigMutation( + params: { + selection: { + fields: S & InternalConfigSelect; + } & HookStrictSelect, InternalConfigSelect>; + } & Omit< + UseMutationOptions< + { + deleteInternalConfig: { + internalConfig: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteInternalConfig: { + internalConfig: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteInternalConfigMutation( + 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: internalConfigMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .internalConfig.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: internalConfigKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: internalConfigKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/config/hooks/mutations/useDeletePlatformInternalConfigMutation.ts b/sdk/constructive-react/src/config/hooks/mutations/useDeletePlatformInternalConfigMutation.ts new file mode 100644 index 0000000000..bd0c044526 --- /dev/null +++ b/sdk/constructive-react/src/config/hooks/mutations/useDeletePlatformInternalConfigMutation.ts @@ -0,0 +1,104 @@ +/** + * platform-level plaintext key-value config store; database-resident, never projected into Kubernetes + * @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 { platformInternalConfigKeys } from '../query-keys'; +import { platformInternalConfigMutationKeys } from '../mutation-keys'; +import type { + PlatformInternalConfigSelect, + PlatformInternalConfigWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformInternalConfigSelect, + PlatformInternalConfigWithRelations, +} from '../../orm/input-types'; +/** + * platform-level plaintext key-value config store; database-resident, never projected into Kubernetes + * + * @example + * ```tsx + * const { mutate, isPending } = useDeletePlatformInternalConfigMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeletePlatformInternalConfigMutation( + params: { + selection: { + fields: S & PlatformInternalConfigSelect; + } & HookStrictSelect, PlatformInternalConfigSelect>; + } & Omit< + UseMutationOptions< + { + deletePlatformInternalConfig: { + platformInternalConfig: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deletePlatformInternalConfig: { + platformInternalConfig: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeletePlatformInternalConfigMutation( + 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: platformInternalConfigMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .platformInternalConfig.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: platformInternalConfigKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformInternalConfigKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/config/hooks/mutations/useUpdateInternalConfigMutation.ts b/sdk/constructive-react/src/config/hooks/mutations/useUpdateInternalConfigMutation.ts new file mode 100644 index 0000000000..ba72e8b99f --- /dev/null +++ b/sdk/constructive-react/src/config/hooks/mutations/useUpdateInternalConfigMutation.ts @@ -0,0 +1,116 @@ +/** + * -level plaintext key-value config store; database-resident, never projected into Kubernetes + * @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 { internalConfigKeys } from '../query-keys'; +import { internalConfigMutationKeys } from '../mutation-keys'; +import type { + InternalConfigSelect, + InternalConfigWithRelations, + InternalConfigPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + InternalConfigSelect, + InternalConfigWithRelations, + InternalConfigPatch, +} from '../../orm/input-types'; +/** + * -level plaintext key-value config store; database-resident, never projected into Kubernetes + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateInternalConfigMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', internalConfigPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateInternalConfigMutation( + params: { + selection: { + fields: S & InternalConfigSelect; + } & HookStrictSelect, InternalConfigSelect>; + } & Omit< + UseMutationOptions< + { + updateInternalConfig: { + internalConfig: InferSelectResult; + }; + }, + Error, + { + id: string; + internalConfigPatch: InternalConfigPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateInternalConfig: { + internalConfig: InferSelectResult; + }; + }, + Error, + { + id: string; + internalConfigPatch: InternalConfigPatch; + } +>; +export function useUpdateInternalConfigMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + internalConfigPatch: InternalConfigPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: internalConfigMutationKeys.all, + mutationFn: ({ + id, + internalConfigPatch, + }: { + id: string; + internalConfigPatch: InternalConfigPatch; + }) => + getClient() + .internalConfig.update({ + where: { + id, + }, + data: internalConfigPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: internalConfigKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: internalConfigKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/config/hooks/mutations/useUpdatePlatformInternalConfigMutation.ts b/sdk/constructive-react/src/config/hooks/mutations/useUpdatePlatformInternalConfigMutation.ts new file mode 100644 index 0000000000..29943d173e --- /dev/null +++ b/sdk/constructive-react/src/config/hooks/mutations/useUpdatePlatformInternalConfigMutation.ts @@ -0,0 +1,116 @@ +/** + * platform-level plaintext key-value config store; database-resident, never projected into Kubernetes + * @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 { platformInternalConfigKeys } from '../query-keys'; +import { platformInternalConfigMutationKeys } from '../mutation-keys'; +import type { + PlatformInternalConfigSelect, + PlatformInternalConfigWithRelations, + PlatformInternalConfigPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformInternalConfigSelect, + PlatformInternalConfigWithRelations, + PlatformInternalConfigPatch, +} from '../../orm/input-types'; +/** + * platform-level plaintext key-value config store; database-resident, never projected into Kubernetes + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdatePlatformInternalConfigMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', platformInternalConfigPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdatePlatformInternalConfigMutation( + params: { + selection: { + fields: S & PlatformInternalConfigSelect; + } & HookStrictSelect, PlatformInternalConfigSelect>; + } & Omit< + UseMutationOptions< + { + updatePlatformInternalConfig: { + platformInternalConfig: InferSelectResult; + }; + }, + Error, + { + id: string; + platformInternalConfigPatch: PlatformInternalConfigPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updatePlatformInternalConfig: { + platformInternalConfig: InferSelectResult; + }; + }, + Error, + { + id: string; + platformInternalConfigPatch: PlatformInternalConfigPatch; + } +>; +export function useUpdatePlatformInternalConfigMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + platformInternalConfigPatch: PlatformInternalConfigPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformInternalConfigMutationKeys.all, + mutationFn: ({ + id, + platformInternalConfigPatch, + }: { + id: string; + platformInternalConfigPatch: PlatformInternalConfigPatch; + }) => + getClient() + .platformInternalConfig.update({ + where: { + id, + }, + data: platformInternalConfigPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: platformInternalConfigKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformInternalConfigKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/config/hooks/mutations/use_internalSecretsDelMutation.ts b/sdk/constructive-react/src/config/hooks/mutations/use_internalSecretsDelMutation.ts new file mode 100644 index 0000000000..dee47ab382 --- /dev/null +++ b/sdk/constructive-react/src/config/hooks/mutations/use_internalSecretsDelMutation.ts @@ -0,0 +1,58 @@ +/** + * Custom mutation hook for _internalSecretsDel + * @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 { _internalSecretsDelVariables } from '../../orm/mutation'; +import type { + _InternalSecretsDelPayloadSelect, + _InternalSecretsDelPayload, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { _internalSecretsDelVariables } from '../../orm/mutation'; +export type { _InternalSecretsDelPayloadSelect } from '../../orm/input-types'; +export function use_internalSecretsDelMutation( + params: { + selection: { + fields: S & _InternalSecretsDelPayloadSelect; + } & HookStrictSelect, _InternalSecretsDelPayloadSelect>; + } & Omit< + UseMutationOptions< + { + _internalSecretsDel: InferSelectResult<_InternalSecretsDelPayload, S> | null; + }, + Error, + _internalSecretsDelVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + _internalSecretsDel: InferSelectResult<_InternalSecretsDelPayload, S> | null; + }, + Error, + _internalSecretsDelVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys._internalSecretsDel(), + mutationFn: (variables: _internalSecretsDelVariables) => + getClient() + .mutation._internalSecretsDel(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/config/hooks/mutations/use_internalSecretsRemoveArrayMutation.ts b/sdk/constructive-react/src/config/hooks/mutations/use_internalSecretsRemoveArrayMutation.ts new file mode 100644 index 0000000000..7d6e3e31bd --- /dev/null +++ b/sdk/constructive-react/src/config/hooks/mutations/use_internalSecretsRemoveArrayMutation.ts @@ -0,0 +1,63 @@ +/** + * Custom mutation hook for _internalSecretsRemoveArray + * @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 { _internalSecretsRemoveArrayVariables } from '../../orm/mutation'; +import type { + _InternalSecretsRemoveArrayPayloadSelect, + _InternalSecretsRemoveArrayPayload, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { _internalSecretsRemoveArrayVariables } from '../../orm/mutation'; +export type { _InternalSecretsRemoveArrayPayloadSelect } from '../../orm/input-types'; +export function use_internalSecretsRemoveArrayMutation< + S extends _InternalSecretsRemoveArrayPayloadSelect, +>( + params: { + selection: { + fields: S & _InternalSecretsRemoveArrayPayloadSelect; + } & HookStrictSelect, _InternalSecretsRemoveArrayPayloadSelect>; + } & Omit< + UseMutationOptions< + { + _internalSecretsRemoveArray: InferSelectResult< + _InternalSecretsRemoveArrayPayload, + S + > | null; + }, + Error, + _internalSecretsRemoveArrayVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + _internalSecretsRemoveArray: InferSelectResult<_InternalSecretsRemoveArrayPayload, S> | null; + }, + Error, + _internalSecretsRemoveArrayVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys._internalSecretsRemoveArray(), + mutationFn: (variables: _internalSecretsRemoveArrayVariables) => + getClient() + .mutation._internalSecretsRemoveArray(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/config/hooks/mutations/use_internalSecretsRotateMutation.ts b/sdk/constructive-react/src/config/hooks/mutations/use_internalSecretsRotateMutation.ts new file mode 100644 index 0000000000..b604a0fea9 --- /dev/null +++ b/sdk/constructive-react/src/config/hooks/mutations/use_internalSecretsRotateMutation.ts @@ -0,0 +1,58 @@ +/** + * Custom mutation hook for _internalSecretsRotate + * @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 { _internalSecretsRotateVariables } from '../../orm/mutation'; +import type { + _InternalSecretsRotatePayloadSelect, + _InternalSecretsRotatePayload, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { _internalSecretsRotateVariables } from '../../orm/mutation'; +export type { _InternalSecretsRotatePayloadSelect } from '../../orm/input-types'; +export function use_internalSecretsRotateMutation( + params: { + selection: { + fields: S & _InternalSecretsRotatePayloadSelect; + } & HookStrictSelect, _InternalSecretsRotatePayloadSelect>; + } & Omit< + UseMutationOptions< + { + _internalSecretsRotate: InferSelectResult<_InternalSecretsRotatePayload, S> | null; + }, + Error, + _internalSecretsRotateVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + _internalSecretsRotate: InferSelectResult<_InternalSecretsRotatePayload, S> | null; + }, + Error, + _internalSecretsRotateVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys._internalSecretsRotate(), + mutationFn: (variables: _internalSecretsRotateVariables) => + getClient() + .mutation._internalSecretsRotate(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/config/hooks/mutations/use_internalSecretsSetMutation.ts b/sdk/constructive-react/src/config/hooks/mutations/use_internalSecretsSetMutation.ts new file mode 100644 index 0000000000..2dc6471c3c --- /dev/null +++ b/sdk/constructive-react/src/config/hooks/mutations/use_internalSecretsSetMutation.ts @@ -0,0 +1,58 @@ +/** + * Custom mutation hook for _internalSecretsSet + * @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 { _internalSecretsSetVariables } from '../../orm/mutation'; +import type { + _InternalSecretsSetPayloadSelect, + _InternalSecretsSetPayload, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { _internalSecretsSetVariables } from '../../orm/mutation'; +export type { _InternalSecretsSetPayloadSelect } from '../../orm/input-types'; +export function use_internalSecretsSetMutation( + params: { + selection: { + fields: S & _InternalSecretsSetPayloadSelect; + } & HookStrictSelect, _InternalSecretsSetPayloadSelect>; + } & Omit< + UseMutationOptions< + { + _internalSecretsSet: InferSelectResult<_InternalSecretsSetPayload, S> | null; + }, + Error, + _internalSecretsSetVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + _internalSecretsSet: InferSelectResult<_InternalSecretsSetPayload, S> | null; + }, + Error, + _internalSecretsSetVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys._internalSecretsSet(), + mutationFn: (variables: _internalSecretsSetVariables) => + getClient() + .mutation._internalSecretsSet(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/config/hooks/queries/index.ts b/sdk/constructive-react/src/config/hooks/queries/index.ts index 99232c61b4..c909acd7a5 100644 --- a/sdk/constructive-react/src/config/hooks/queries/index.ts +++ b/sdk/constructive-react/src/config/hooks/queries/index.ts @@ -3,10 +3,18 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ +export * from './useAppInternalSecretsQuery'; +export * from './useAppInternalSecretQuery'; export * from './useConfigsQuery'; export * from './useConfigQuery'; +export * from './useInternalConfigsQuery'; +export * from './useInternalConfigQuery'; +export * from './useInternalSecretsQuery'; +export * from './useInternalSecretQuery'; export * from './usePlatformConfigsQuery'; export * from './usePlatformConfigQuery'; +export * from './usePlatformInternalConfigsQuery'; +export * from './usePlatformInternalConfigQuery'; export * from './usePlatformInternalSecretsQuery'; export * from './usePlatformInternalSecretQuery'; export * from './usePlatformSecretsQuery'; diff --git a/sdk/constructive-react/src/config/hooks/queries/useAppInternalSecretQuery.ts b/sdk/constructive-react/src/config/hooks/queries/useAppInternalSecretQuery.ts new file mode 100644 index 0000000000..1058a26198 --- /dev/null +++ b/sdk/constructive-react/src/config/hooks/queries/useAppInternalSecretQuery.ts @@ -0,0 +1,144 @@ +/** + * Single item query hook for AppInternalSecret + * @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 { appInternalSecretKeys } from '../query-keys'; +import type { + AppInternalSecretSelect, + AppInternalSecretWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AppInternalSecretSelect, + AppInternalSecretWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const appInternalSecretQueryKey = appInternalSecretKeys.detail; +/** + * Query hook for fetching a single AppInternalSecret + * + * @example + * ```tsx + * const { data, isLoading } = useAppInternalSecretQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useAppInternalSecretQuery< + S extends AppInternalSecretSelect, + TData = { + appInternalSecret: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppInternalSecretSelect>; + } & Omit< + UseQueryOptions< + { + appInternalSecret: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAppInternalSecretQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: appInternalSecretKeys.detail(params.id), + queryFn: () => + getClient() + .appInternalSecret.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single AppInternalSecret without React hooks + * + * @example + * ```ts + * const data = await fetchAppInternalSecretQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchAppInternalSecretQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppInternalSecretSelect>; +}): Promise<{ + appInternalSecret: InferSelectResult | null; +}>; +export async function fetchAppInternalSecretQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .appInternalSecret.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single AppInternalSecret for SSR or cache warming + * + * @example + * ```ts + * await prefetchAppInternalSecretQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchAppInternalSecretQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppInternalSecretSelect>; + } +): Promise; +export async function prefetchAppInternalSecretQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: appInternalSecretKeys.detail(params.id), + queryFn: () => + getClient() + .appInternalSecret.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/config/hooks/queries/useAppInternalSecretsQuery.ts b/sdk/constructive-react/src/config/hooks/queries/useAppInternalSecretsQuery.ts new file mode 100644 index 0000000000..0bd72155f3 --- /dev/null +++ b/sdk/constructive-react/src/config/hooks/queries/useAppInternalSecretsQuery.ts @@ -0,0 +1,163 @@ +/** + * List query hook for AppInternalSecret + * @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 { appInternalSecretKeys } from '../query-keys'; +import type { + AppInternalSecretSelect, + AppInternalSecretWithRelations, + AppInternalSecretFilter, + AppInternalSecretOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + AppInternalSecretSelect, + AppInternalSecretWithRelations, + AppInternalSecretFilter, + AppInternalSecretOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const appInternalSecretsQueryKey = appInternalSecretKeys.list; +/** + * Query hook for fetching AppInternalSecret list + * + * @example + * ```tsx + * const { data, isLoading } = useAppInternalSecretsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useAppInternalSecretsQuery< + S extends AppInternalSecretSelect, + TData = { + appInternalSecrets: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AppInternalSecretSelect>; + } & Omit< + UseQueryOptions< + { + appInternalSecrets: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAppInternalSecretsQuery( + params: { + selection: ListSelectionConfig< + AppInternalSecretSelect, + AppInternalSecretFilter, + AppInternalSecretOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + AppInternalSecretSelect, + AppInternalSecretFilter, + AppInternalSecretOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: appInternalSecretKeys.list(args), + queryFn: () => getClient().appInternalSecret.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch AppInternalSecret list without React hooks + * + * @example + * ```ts + * const data = await fetchAppInternalSecretsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchAppInternalSecretsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AppInternalSecretSelect>; +}): Promise<{ + appInternalSecrets: ConnectionResult>; +}>; +export async function fetchAppInternalSecretsQuery(params: { + selection: ListSelectionConfig< + AppInternalSecretSelect, + AppInternalSecretFilter, + AppInternalSecretOrderBy + >; +}) { + const args = buildListSelectionArgs< + AppInternalSecretSelect, + AppInternalSecretFilter, + AppInternalSecretOrderBy + >(params.selection); + return getClient().appInternalSecret.findMany(args).unwrap(); +} +/** + * Prefetch AppInternalSecret list for SSR or cache warming + * + * @example + * ```ts + * await prefetchAppInternalSecretsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchAppInternalSecretsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AppInternalSecretSelect>; + } +): Promise; +export async function prefetchAppInternalSecretsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + AppInternalSecretSelect, + AppInternalSecretFilter, + AppInternalSecretOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + AppInternalSecretSelect, + AppInternalSecretFilter, + AppInternalSecretOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: appInternalSecretKeys.list(args), + queryFn: () => getClient().appInternalSecret.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/config/hooks/queries/useInternalConfigQuery.ts b/sdk/constructive-react/src/config/hooks/queries/useInternalConfigQuery.ts new file mode 100644 index 0000000000..6c4506b820 --- /dev/null +++ b/sdk/constructive-react/src/config/hooks/queries/useInternalConfigQuery.ts @@ -0,0 +1,138 @@ +/** + * -level plaintext key-value config store; database-resident, never projected into Kubernetes + * @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 { internalConfigKeys } from '../query-keys'; +import type { InternalConfigSelect, InternalConfigWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { InternalConfigSelect, InternalConfigWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const internalConfigQueryKey = internalConfigKeys.detail; +/** + * -level plaintext key-value config store; database-resident, never projected into Kubernetes + * + * @example + * ```tsx + * const { data, isLoading } = useInternalConfigQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useInternalConfigQuery< + S extends InternalConfigSelect, + TData = { + internalConfig: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, InternalConfigSelect>; + } & Omit< + UseQueryOptions< + { + internalConfig: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useInternalConfigQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: internalConfigKeys.detail(params.id), + queryFn: () => + getClient() + .internalConfig.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * -level plaintext key-value config store; database-resident, never projected into Kubernetes + * + * @example + * ```ts + * const data = await fetchInternalConfigQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchInternalConfigQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, InternalConfigSelect>; +}): Promise<{ + internalConfig: InferSelectResult | null; +}>; +export async function fetchInternalConfigQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .internalConfig.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * -level plaintext key-value config store; database-resident, never projected into Kubernetes + * + * @example + * ```ts + * await prefetchInternalConfigQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchInternalConfigQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, InternalConfigSelect>; + } +): Promise; +export async function prefetchInternalConfigQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: internalConfigKeys.detail(params.id), + queryFn: () => + getClient() + .internalConfig.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/config/hooks/queries/useInternalConfigsQuery.ts b/sdk/constructive-react/src/config/hooks/queries/useInternalConfigsQuery.ts new file mode 100644 index 0000000000..b9eb3011ba --- /dev/null +++ b/sdk/constructive-react/src/config/hooks/queries/useInternalConfigsQuery.ts @@ -0,0 +1,159 @@ +/** + * -level plaintext key-value config store; database-resident, never projected into Kubernetes + * @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 { internalConfigKeys } from '../query-keys'; +import type { + InternalConfigSelect, + InternalConfigWithRelations, + InternalConfigFilter, + InternalConfigOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + InternalConfigSelect, + InternalConfigWithRelations, + InternalConfigFilter, + InternalConfigOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const internalConfigsQueryKey = internalConfigKeys.list; +/** + * -level plaintext key-value config store; database-resident, never projected into Kubernetes + * + * @example + * ```tsx + * const { data, isLoading } = useInternalConfigsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useInternalConfigsQuery< + S extends InternalConfigSelect, + TData = { + internalConfigs: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, InternalConfigSelect>; + } & Omit< + UseQueryOptions< + { + internalConfigs: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useInternalConfigsQuery( + params: { + selection: ListSelectionConfig< + InternalConfigSelect, + InternalConfigFilter, + InternalConfigOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + InternalConfigSelect, + InternalConfigFilter, + InternalConfigOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: internalConfigKeys.list(args), + queryFn: () => getClient().internalConfig.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * -level plaintext key-value config store; database-resident, never projected into Kubernetes + * + * @example + * ```ts + * const data = await fetchInternalConfigsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchInternalConfigsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, InternalConfigSelect>; +}): Promise<{ + internalConfigs: ConnectionResult>; +}>; +export async function fetchInternalConfigsQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs< + InternalConfigSelect, + InternalConfigFilter, + InternalConfigOrderBy + >(params.selection); + return getClient().internalConfig.findMany(args).unwrap(); +} +/** + * -level plaintext key-value config store; database-resident, never projected into Kubernetes + * + * @example + * ```ts + * await prefetchInternalConfigsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchInternalConfigsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, InternalConfigSelect>; + } +): Promise; +export async function prefetchInternalConfigsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + InternalConfigSelect, + InternalConfigFilter, + InternalConfigOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + InternalConfigSelect, + InternalConfigFilter, + InternalConfigOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: internalConfigKeys.list(args), + queryFn: () => getClient().internalConfig.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/config/hooks/queries/useInternalSecretQuery.ts b/sdk/constructive-react/src/config/hooks/queries/useInternalSecretQuery.ts new file mode 100644 index 0000000000..4d27e2ca3f --- /dev/null +++ b/sdk/constructive-react/src/config/hooks/queries/useInternalSecretQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for InternalSecret + * @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 { internalSecretKeys } from '../query-keys'; +import type { InternalSecretSelect, InternalSecretWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { InternalSecretSelect, InternalSecretWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const internalSecretQueryKey = internalSecretKeys.detail; +/** + * Query hook for fetching a single InternalSecret + * + * @example + * ```tsx + * const { data, isLoading } = useInternalSecretQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useInternalSecretQuery< + S extends InternalSecretSelect, + TData = { + internalSecret: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, InternalSecretSelect>; + } & Omit< + UseQueryOptions< + { + internalSecret: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useInternalSecretQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: internalSecretKeys.detail(params.id), + queryFn: () => + getClient() + .internalSecret.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single InternalSecret without React hooks + * + * @example + * ```ts + * const data = await fetchInternalSecretQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchInternalSecretQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, InternalSecretSelect>; +}): Promise<{ + internalSecret: InferSelectResult | null; +}>; +export async function fetchInternalSecretQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .internalSecret.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single InternalSecret for SSR or cache warming + * + * @example + * ```ts + * await prefetchInternalSecretQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchInternalSecretQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, InternalSecretSelect>; + } +): Promise; +export async function prefetchInternalSecretQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: internalSecretKeys.detail(params.id), + queryFn: () => + getClient() + .internalSecret.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/config/hooks/queries/useInternalSecretsQuery.ts b/sdk/constructive-react/src/config/hooks/queries/useInternalSecretsQuery.ts new file mode 100644 index 0000000000..8a18e08692 --- /dev/null +++ b/sdk/constructive-react/src/config/hooks/queries/useInternalSecretsQuery.ts @@ -0,0 +1,159 @@ +/** + * List query hook for InternalSecret + * @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 { internalSecretKeys } from '../query-keys'; +import type { + InternalSecretSelect, + InternalSecretWithRelations, + InternalSecretFilter, + InternalSecretOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + InternalSecretSelect, + InternalSecretWithRelations, + InternalSecretFilter, + InternalSecretOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const internalSecretsQueryKey = internalSecretKeys.list; +/** + * Query hook for fetching InternalSecret list + * + * @example + * ```tsx + * const { data, isLoading } = useInternalSecretsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useInternalSecretsQuery< + S extends InternalSecretSelect, + TData = { + internalSecrets: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, InternalSecretSelect>; + } & Omit< + UseQueryOptions< + { + internalSecrets: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useInternalSecretsQuery( + params: { + selection: ListSelectionConfig< + InternalSecretSelect, + InternalSecretFilter, + InternalSecretOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + InternalSecretSelect, + InternalSecretFilter, + InternalSecretOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: internalSecretKeys.list(args), + queryFn: () => getClient().internalSecret.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch InternalSecret list without React hooks + * + * @example + * ```ts + * const data = await fetchInternalSecretsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchInternalSecretsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, InternalSecretSelect>; +}): Promise<{ + internalSecrets: ConnectionResult>; +}>; +export async function fetchInternalSecretsQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs< + InternalSecretSelect, + InternalSecretFilter, + InternalSecretOrderBy + >(params.selection); + return getClient().internalSecret.findMany(args).unwrap(); +} +/** + * Prefetch InternalSecret list for SSR or cache warming + * + * @example + * ```ts + * await prefetchInternalSecretsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchInternalSecretsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, InternalSecretSelect>; + } +): Promise; +export async function prefetchInternalSecretsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + InternalSecretSelect, + InternalSecretFilter, + InternalSecretOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + InternalSecretSelect, + InternalSecretFilter, + InternalSecretOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: internalSecretKeys.list(args), + queryFn: () => getClient().internalSecret.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/config/hooks/queries/usePlatformInternalConfigQuery.ts b/sdk/constructive-react/src/config/hooks/queries/usePlatformInternalConfigQuery.ts new file mode 100644 index 0000000000..6c901fc2af --- /dev/null +++ b/sdk/constructive-react/src/config/hooks/queries/usePlatformInternalConfigQuery.ts @@ -0,0 +1,146 @@ +/** + * platform-level plaintext key-value config store; database-resident, never projected into Kubernetes + * @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 { platformInternalConfigKeys } from '../query-keys'; +import type { + PlatformInternalConfigSelect, + PlatformInternalConfigWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformInternalConfigSelect, + PlatformInternalConfigWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformInternalConfigQueryKey = platformInternalConfigKeys.detail; +/** + * platform-level plaintext key-value config store; database-resident, never projected into Kubernetes + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformInternalConfigQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function usePlatformInternalConfigQuery< + S extends PlatformInternalConfigSelect, + TData = { + platformInternalConfig: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformInternalConfigSelect>; + } & Omit< + UseQueryOptions< + { + platformInternalConfig: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformInternalConfigQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformInternalConfigKeys.detail(params.id), + queryFn: () => + getClient() + .platformInternalConfig.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * platform-level plaintext key-value config store; database-resident, never projected into Kubernetes + * + * @example + * ```ts + * const data = await fetchPlatformInternalConfigQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchPlatformInternalConfigQuery< + S extends PlatformInternalConfigSelect, +>(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformInternalConfigSelect>; +}): Promise<{ + platformInternalConfig: InferSelectResult | null; +}>; +export async function fetchPlatformInternalConfigQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .platformInternalConfig.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * platform-level plaintext key-value config store; database-resident, never projected into Kubernetes + * + * @example + * ```ts + * await prefetchPlatformInternalConfigQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchPlatformInternalConfigQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformInternalConfigSelect>; + } +): Promise; +export async function prefetchPlatformInternalConfigQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformInternalConfigKeys.detail(params.id), + queryFn: () => + getClient() + .platformInternalConfig.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/config/hooks/queries/usePlatformInternalConfigsQuery.ts b/sdk/constructive-react/src/config/hooks/queries/usePlatformInternalConfigsQuery.ts new file mode 100644 index 0000000000..b316bb800e --- /dev/null +++ b/sdk/constructive-react/src/config/hooks/queries/usePlatformInternalConfigsQuery.ts @@ -0,0 +1,180 @@ +/** + * platform-level plaintext key-value config store; database-resident, never projected into Kubernetes + * @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 { platformInternalConfigKeys } from '../query-keys'; +import type { + PlatformInternalConfigSelect, + PlatformInternalConfigWithRelations, + PlatformInternalConfigFilter, + PlatformInternalConfigOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + PlatformInternalConfigSelect, + PlatformInternalConfigWithRelations, + PlatformInternalConfigFilter, + PlatformInternalConfigOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformInternalConfigsQueryKey = platformInternalConfigKeys.list; +/** + * platform-level plaintext key-value config store; database-resident, never projected into Kubernetes + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformInternalConfigsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function usePlatformInternalConfigsQuery< + S extends PlatformInternalConfigSelect, + TData = { + platformInternalConfigs: ConnectionResult< + InferSelectResult + >; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformInternalConfigSelect>; + } & Omit< + UseQueryOptions< + { + platformInternalConfigs: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformInternalConfigsQuery( + params: { + selection: ListSelectionConfig< + PlatformInternalConfigSelect, + PlatformInternalConfigFilter, + PlatformInternalConfigOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + PlatformInternalConfigSelect, + PlatformInternalConfigFilter, + PlatformInternalConfigOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformInternalConfigKeys.list(args), + queryFn: () => getClient().platformInternalConfig.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * platform-level plaintext key-value config store; database-resident, never projected into Kubernetes + * + * @example + * ```ts + * const data = await fetchPlatformInternalConfigsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchPlatformInternalConfigsQuery< + S extends PlatformInternalConfigSelect, +>(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformInternalConfigSelect>; +}): Promise<{ + platformInternalConfigs: ConnectionResult< + InferSelectResult + >; +}>; +export async function fetchPlatformInternalConfigsQuery(params: { + selection: ListSelectionConfig< + PlatformInternalConfigSelect, + PlatformInternalConfigFilter, + PlatformInternalConfigOrderBy + >; +}) { + const args = buildListSelectionArgs< + PlatformInternalConfigSelect, + PlatformInternalConfigFilter, + PlatformInternalConfigOrderBy + >(params.selection); + return getClient().platformInternalConfig.findMany(args).unwrap(); +} +/** + * platform-level plaintext key-value config store; database-resident, never projected into Kubernetes + * + * @example + * ```ts + * await prefetchPlatformInternalConfigsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchPlatformInternalConfigsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformInternalConfigSelect>; + } +): Promise; +export async function prefetchPlatformInternalConfigsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + PlatformInternalConfigSelect, + PlatformInternalConfigFilter, + PlatformInternalConfigOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + PlatformInternalConfigSelect, + PlatformInternalConfigFilter, + PlatformInternalConfigOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformInternalConfigKeys.list(args), + queryFn: () => getClient().platformInternalConfig.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/config/hooks/query-keys.ts b/sdk/constructive-react/src/config/hooks/query-keys.ts index 6b1837d13a..5d06b9ea3b 100644 --- a/sdk/constructive-react/src/config/hooks/query-keys.ts +++ b/sdk/constructive-react/src/config/hooks/query-keys.ts @@ -19,6 +19,15 @@ // Entity Query Keys // ============================================================================ +export const appInternalSecretKeys = { + /** All appInternalSecret queries */ all: ['appinternalsecret'] as const, + /** List query keys */ lists: () => [...appInternalSecretKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...appInternalSecretKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...appInternalSecretKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...appInternalSecretKeys.details(), id] as const, +} as const; export const configKeys = { /** All config queries */ all: ['config'] as const, /** List query keys */ lists: () => [...configKeys.all, 'list'] as const, @@ -28,6 +37,24 @@ export const configKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...configKeys.details(), id] as const, } as const; +export const internalConfigKeys = { + /** All internalConfig queries */ all: ['internalconfig'] as const, + /** List query keys */ lists: () => [...internalConfigKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...internalConfigKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...internalConfigKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...internalConfigKeys.details(), id] as const, +} as const; +export const internalSecretKeys = { + /** All internalSecret queries */ all: ['internalsecret'] as const, + /** List query keys */ lists: () => [...internalSecretKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...internalSecretKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...internalSecretKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...internalSecretKeys.details(), id] as const, +} as const; export const platformConfigKeys = { /** All platformConfig queries */ all: ['platformconfig'] as const, /** List query keys */ lists: () => [...platformConfigKeys.all, 'list'] as const, @@ -37,6 +64,15 @@ export const platformConfigKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...platformConfigKeys.details(), id] as const, } as const; +export const platformInternalConfigKeys = { + /** All platformInternalConfig queries */ all: ['platforminternalconfig'] as const, + /** List query keys */ lists: () => [...platformInternalConfigKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...platformInternalConfigKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...platformInternalConfigKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...platformInternalConfigKeys.details(), id] as const, +} as const; export const platformInternalSecretKeys = { /** All platformInternalSecret queries */ all: ['platforminternalsecret'] as const, /** List query keys */ lists: () => [...platformInternalSecretKeys.all, 'list'] as const, @@ -87,8 +123,12 @@ export const secretKeys = { * ``` */ export const queryKeys = { + appInternalSecret: appInternalSecretKeys, config: configKeys, + internalConfig: internalConfigKeys, + internalSecret: internalSecretKeys, platformConfig: platformConfigKeys, + platformInternalConfig: platformInternalConfigKeys, platformInternalSecret: platformInternalSecretKeys, platformSecret: platformSecretKeys, secret: secretKeys, diff --git a/sdk/constructive-react/src/config/orm/README.md b/sdk/constructive-react/src/config/orm/README.md index 90c6f61a0b..2cd850a467 100644 --- a/sdk/constructive-react/src/config/orm/README.md +++ b/sdk/constructive-react/src/config/orm/README.md @@ -21,14 +21,56 @@ const db = createClient({ | Model | Operations | |-------|------------| +| `appInternalSecret` | findMany, findOne, create, update, delete | | `config` | findMany, findOne, create, update, delete | +| `internalConfig` | findMany, findOne, create, update, delete | +| `internalSecret` | findMany, findOne, create, update, delete | | `platformConfig` | findMany, findOne, create, update, delete | +| `platformInternalConfig` | findMany, findOne, create, update, delete | | `platformInternalSecret` | findMany, findOne, create, update, delete | | `platformSecret` | findMany, findOne, create, update, delete | | `secret` | findMany, findOne, create, update, delete | ## Table Operations +### `db.appInternalSecret` + +CRUD operations for AppInternalSecret records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `annotations` | JSON | Yes | +| `createdAt` | Datetime | No | +| `description` | String | Yes | +| `id` | UUID | No | +| `labels` | JSON | Yes | +| `name` | String | Yes | +| `realm` | String | Yes | +| `retiredAt` | Datetime | Yes | +| `rotatedAt` | Datetime | Yes | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all appInternalSecret records +const items = await db.appInternalSecret.findMany({ select: { annotations: true, createdAt: true, description: true, id: true, labels: true, name: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.appInternalSecret.findOne({ id: '', select: { annotations: true, createdAt: true, description: true, id: true, labels: true, name: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.appInternalSecret.create({ data: { annotations: '', description: '', labels: '', name: '', realm: '', retiredAt: '', rotatedAt: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appInternalSecret.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appInternalSecret.delete({ where: { id: '' } }).execute(); +``` + ### `db.config` CRUD operations for Config records. @@ -39,6 +81,7 @@ CRUD operations for Config records. |-------|------|----------| | `annotations` | JSON | Yes | | `createdAt` | Datetime | No | +| `createdByPrincipal` | UUID | Yes | | `databaseId` | UUID | Yes | | `description` | String | Yes | | `expiresAt` | Datetime | Yes | @@ -49,19 +92,20 @@ CRUD operations for Config records. | `provider` | String | Yes | | `realm` | String | Yes | | `updatedAt` | Datetime | No | +| `updatedByPrincipal` | UUID | Yes | | `value` | String | Yes | **Operations:** ```typescript // List all config records -const items = await db.config.findMany({ select: { annotations: true, createdAt: true, databaseId: true, description: true, expiresAt: true, id: true, labels: true, name: true, namespaceId: true, provider: true, realm: true, updatedAt: true, value: true } }).execute(); +const items = await db.config.findMany({ select: { annotations: true, createdAt: true, createdByPrincipal: true, databaseId: true, description: true, expiresAt: true, id: true, labels: true, name: true, namespaceId: true, provider: true, realm: true, updatedAt: true, updatedByPrincipal: true, value: true } }).execute(); // Get one by id -const item = await db.config.findOne({ id: '', select: { annotations: true, createdAt: true, databaseId: true, description: true, expiresAt: true, id: true, labels: true, name: true, namespaceId: true, provider: true, realm: true, updatedAt: true, value: true } }).execute(); +const item = await db.config.findOne({ id: '', select: { annotations: true, createdAt: true, createdByPrincipal: true, databaseId: true, description: true, expiresAt: true, id: true, labels: true, name: true, namespaceId: true, provider: true, realm: true, updatedAt: true, updatedByPrincipal: true, value: true } }).execute(); // Create -const created = await db.config.create({ data: { annotations: '', databaseId: '', description: '', expiresAt: '', labels: '', name: '', namespaceId: '', provider: '', realm: '', value: '' }, select: { id: true } }).execute(); +const created = await db.config.create({ data: { annotations: '', createdByPrincipal: '', databaseId: '', description: '', expiresAt: '', labels: '', name: '', namespaceId: '', provider: '', realm: '', updatedByPrincipal: '', value: '' }, select: { id: true } }).execute(); // Update const updated = await db.config.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); @@ -70,6 +114,85 @@ const updated = await db.config.update({ where: { id: '' }, data: { annota const deleted = await db.config.delete({ where: { id: '' } }).execute(); ``` +### `db.internalConfig` + +CRUD operations for InternalConfig records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `annotations` | JSON | Yes | +| `createdAt` | Datetime | No | +| `databaseId` | UUID | Yes | +| `description` | String | Yes | +| `expiresAt` | Datetime | Yes | +| `id` | UUID | No | +| `labels` | JSON | Yes | +| `name` | String | Yes | +| `provider` | String | Yes | +| `realm` | String | Yes | +| `updatedAt` | Datetime | No | +| `value` | String | Yes | + +**Operations:** + +```typescript +// List all internalConfig records +const items = await db.internalConfig.findMany({ select: { annotations: true, createdAt: true, databaseId: true, description: true, expiresAt: true, id: true, labels: true, name: true, provider: true, realm: true, updatedAt: true, value: true } }).execute(); + +// Get one by id +const item = await db.internalConfig.findOne({ id: '', select: { annotations: true, createdAt: true, databaseId: true, description: true, expiresAt: true, id: true, labels: true, name: true, provider: true, realm: true, updatedAt: true, value: true } }).execute(); + +// Create +const created = await db.internalConfig.create({ data: { annotations: '', databaseId: '', description: '', expiresAt: '', labels: '', name: '', provider: '', realm: '', value: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.internalConfig.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.internalConfig.delete({ where: { id: '' } }).execute(); +``` + +### `db.internalSecret` + +CRUD operations for InternalSecret records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `annotations` | JSON | Yes | +| `createdAt` | Datetime | No | +| `databaseId` | UUID | Yes | +| `description` | String | Yes | +| `id` | UUID | No | +| `labels` | JSON | Yes | +| `name` | String | Yes | +| `realm` | String | Yes | +| `retiredAt` | Datetime | Yes | +| `rotatedAt` | Datetime | Yes | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all internalSecret records +const items = await db.internalSecret.findMany({ select: { annotations: true, createdAt: true, databaseId: true, description: true, id: true, labels: true, name: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.internalSecret.findOne({ id: '', select: { annotations: true, createdAt: true, databaseId: true, description: true, id: true, labels: true, name: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.internalSecret.create({ data: { annotations: '', databaseId: '', description: '', labels: '', name: '', realm: '', retiredAt: '', rotatedAt: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.internalSecret.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.internalSecret.delete({ where: { id: '' } }).execute(); +``` + ### `db.platformConfig` CRUD operations for PlatformConfig records. @@ -80,6 +203,7 @@ CRUD operations for PlatformConfig records. |-------|------|----------| | `annotations` | JSON | Yes | | `createdAt` | Datetime | No | +| `createdByPrincipal` | UUID | Yes | | `description` | String | Yes | | `expiresAt` | Datetime | Yes | | `id` | UUID | No | @@ -89,19 +213,20 @@ CRUD operations for PlatformConfig records. | `provider` | String | Yes | | `realm` | String | Yes | | `updatedAt` | Datetime | No | +| `updatedByPrincipal` | UUID | Yes | | `value` | String | Yes | **Operations:** ```typescript // List all platformConfig records -const items = await db.platformConfig.findMany({ select: { annotations: true, createdAt: true, description: true, expiresAt: true, id: true, labels: true, name: true, namespaceId: true, provider: true, realm: true, updatedAt: true, value: true } }).execute(); +const items = await db.platformConfig.findMany({ select: { annotations: true, createdAt: true, createdByPrincipal: true, description: true, expiresAt: true, id: true, labels: true, name: true, namespaceId: true, provider: true, realm: true, updatedAt: true, updatedByPrincipal: true, value: true } }).execute(); // Get one by id -const item = await db.platformConfig.findOne({ id: '', select: { annotations: true, createdAt: true, description: true, expiresAt: true, id: true, labels: true, name: true, namespaceId: true, provider: true, realm: true, updatedAt: true, value: true } }).execute(); +const item = await db.platformConfig.findOne({ id: '', select: { annotations: true, createdAt: true, createdByPrincipal: true, description: true, expiresAt: true, id: true, labels: true, name: true, namespaceId: true, provider: true, realm: true, updatedAt: true, updatedByPrincipal: true, value: true } }).execute(); // Create -const created = await db.platformConfig.create({ data: { annotations: '', description: '', expiresAt: '', labels: '', name: '', namespaceId: '', provider: '', realm: '', value: '' }, select: { id: true } }).execute(); +const created = await db.platformConfig.create({ data: { annotations: '', createdByPrincipal: '', description: '', expiresAt: '', labels: '', name: '', namespaceId: '', provider: '', realm: '', updatedByPrincipal: '', value: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformConfig.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); @@ -110,6 +235,45 @@ const updated = await db.platformConfig.update({ where: { id: '' }, data: const deleted = await db.platformConfig.delete({ where: { id: '' } }).execute(); ``` +### `db.platformInternalConfig` + +CRUD operations for PlatformInternalConfig records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `annotations` | JSON | Yes | +| `createdAt` | Datetime | No | +| `description` | String | Yes | +| `expiresAt` | Datetime | Yes | +| `id` | UUID | No | +| `labels` | JSON | Yes | +| `name` | String | Yes | +| `provider` | String | Yes | +| `realm` | String | Yes | +| `updatedAt` | Datetime | No | +| `value` | String | Yes | + +**Operations:** + +```typescript +// List all platformInternalConfig records +const items = await db.platformInternalConfig.findMany({ select: { annotations: true, createdAt: true, description: true, expiresAt: true, id: true, labels: true, name: true, provider: true, realm: true, updatedAt: true, value: true } }).execute(); + +// Get one by id +const item = await db.platformInternalConfig.findOne({ id: '', select: { annotations: true, createdAt: true, description: true, expiresAt: true, id: true, labels: true, name: true, provider: true, realm: true, updatedAt: true, value: true } }).execute(); + +// Create +const created = await db.platformInternalConfig.create({ data: { annotations: '', description: '', expiresAt: '', labels: '', name: '', provider: '', realm: '', value: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformInternalConfig.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformInternalConfig.delete({ where: { id: '' } }).execute(); +``` + ### `db.platformInternalSecret` CRUD operations for PlatformInternalSecret records. @@ -124,7 +288,6 @@ CRUD operations for PlatformInternalSecret records. | `id` | UUID | No | | `labels` | JSON | Yes | | `name` | String | Yes | -| `namespaceId` | UUID | Yes | | `realm` | String | Yes | | `retiredAt` | Datetime | Yes | | `rotatedAt` | Datetime | Yes | @@ -134,13 +297,13 @@ CRUD operations for PlatformInternalSecret records. ```typescript // List all platformInternalSecret records -const items = await db.platformInternalSecret.findMany({ select: { annotations: true, createdAt: true, description: true, id: true, labels: true, name: true, namespaceId: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } }).execute(); +const items = await db.platformInternalSecret.findMany({ select: { annotations: true, createdAt: true, description: true, id: true, labels: true, name: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.platformInternalSecret.findOne({ id: '', select: { annotations: true, createdAt: true, description: true, id: true, labels: true, name: true, namespaceId: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } }).execute(); +const item = await db.platformInternalSecret.findOne({ id: '', select: { annotations: true, createdAt: true, description: true, id: true, labels: true, name: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } }).execute(); // Create -const created = await db.platformInternalSecret.create({ data: { annotations: '', description: '', labels: '', name: '', namespaceId: '', realm: '', retiredAt: '', rotatedAt: '' }, select: { id: true } }).execute(); +const created = await db.platformInternalSecret.create({ data: { annotations: '', description: '', labels: '', name: '', realm: '', retiredAt: '', rotatedAt: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformInternalSecret.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); @@ -232,6 +395,66 @@ const deleted = await db.secret.delete({ where: { id: '' } }).execute(); ## Custom Operations +### `db.mutation._internalSecretsDel` + +_internalSecretsDel + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | _InternalSecretsDelInput (required) | + +```typescript +const result = await db.mutation._internalSecretsDel({ input: { databaseId: '', realm: '', secretName: '' } }).execute(); +``` + +### `db.mutation._internalSecretsRemoveArray` + +_internalSecretsRemoveArray + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | _InternalSecretsRemoveArrayInput (required) | + +```typescript +const result = await db.mutation._internalSecretsRemoveArray({ input: { databaseId: '', realm: '', secretNames: '' } }).execute(); +``` + +### `db.mutation._internalSecretsRotate` + +_internalSecretsRotate + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | _InternalSecretsRotateInput (required) | + +```typescript +const result = await db.mutation._internalSecretsRotate({ input: { algo: '', databaseId: '', realm: '', secretName: '', secretValue: '' } }).execute(); +``` + +### `db.mutation._internalSecretsSet` + +_internalSecretsSet + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | _InternalSecretsSetInput (required) | + +```typescript +const result = await db.mutation._internalSecretsSet({ input: { algo: '', scopeDatabaseId: '', secretName: '', secretRealm: '', secretValue: '' } }).execute(); +``` + ### `db.mutation._secretsDel` _secretsDel @@ -292,6 +515,66 @@ _secretsSet const result = await db.mutation._secretsSet({ input: '<_SecretsSetInput>' }).execute(); ``` +### `db.mutation.appInternalSecretsDel` + +appInternalSecretsDel + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | AppInternalSecretsDelInput (required) | + +```typescript +const result = await db.mutation.appInternalSecretsDel({ input: { realm: '', secretName: '' } }).execute(); +``` + +### `db.mutation.appInternalSecretsRemoveArray` + +appInternalSecretsRemoveArray + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | AppInternalSecretsRemoveArrayInput (required) | + +```typescript +const result = await db.mutation.appInternalSecretsRemoveArray({ input: { realm: '', secretNames: '' } }).execute(); +``` + +### `db.mutation.appInternalSecretsRotate` + +appInternalSecretsRotate + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | AppInternalSecretsRotateInput (required) | + +```typescript +const result = await db.mutation.appInternalSecretsRotate({ input: { algo: '', realm: '', secretName: '', secretValue: '' } }).execute(); +``` + +### `db.mutation.appInternalSecretsSet` + +appInternalSecretsSet + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | AppInternalSecretsSetInput (required) | + +```typescript +const result = await db.mutation.appInternalSecretsSet({ input: { algo: '', secretName: '', secretRealm: '', secretValue: '' } }).execute(); +``` + ### `db.mutation.platformInternalSecretsDel` platformInternalSecretsDel @@ -304,7 +587,7 @@ platformInternalSecretsDel | `input` | PlatformInternalSecretsDelInput (required) | ```typescript -const result = await db.mutation.platformInternalSecretsDel({ input: { namespaceId: '', realm: '', secretName: '' } }).execute(); +const result = await db.mutation.platformInternalSecretsDel({ input: { realm: '', secretName: '' } }).execute(); ``` ### `db.mutation.platformInternalSecretsRemoveArray` @@ -319,7 +602,7 @@ platformInternalSecretsRemoveArray | `input` | PlatformInternalSecretsRemoveArrayInput (required) | ```typescript -const result = await db.mutation.platformInternalSecretsRemoveArray({ input: { namespaceId: '', realm: '', secretNames: '' } }).execute(); +const result = await db.mutation.platformInternalSecretsRemoveArray({ input: { realm: '', secretNames: '' } }).execute(); ``` ### `db.mutation.platformInternalSecretsRotate` @@ -334,7 +617,7 @@ platformInternalSecretsRotate | `input` | PlatformInternalSecretsRotateInput (required) | ```typescript -const result = await db.mutation.platformInternalSecretsRotate({ input: { algo: '', namespaceId: '', realm: '', secretName: '', secretValue: '' } }).execute(); +const result = await db.mutation.platformInternalSecretsRotate({ input: { algo: '', realm: '', secretName: '', secretValue: '' } }).execute(); ``` ### `db.mutation.platformInternalSecretsSet` @@ -349,7 +632,7 @@ platformInternalSecretsSet | `input` | PlatformInternalSecretsSetInput (required) | ```typescript -const result = await db.mutation.platformInternalSecretsSet({ input: { algo: '', secretName: '', secretNamespaceId: '', secretRealm: '', secretValue: '' } }).execute(); +const result = await db.mutation.platformInternalSecretsSet({ input: { algo: '', secretName: '', secretRealm: '', secretValue: '' } }).execute(); ``` ### `db.mutation.platformSecretsDel` @@ -414,10 +697,11 @@ const result = await db.mutation.platformSecretsSet({ input: ' | null; + createdAt?: string | null; + description?: string | null; + id: string; + labels?: Record | null; + name?: string | null; + realm?: string | null; + retiredAt?: string | null; + rotatedAt?: string | null; + updatedAt?: string | null; +} +/** Namespace-backed plaintext key-value config store (like a k8s ConfigMap); admin-only, fully CRUD-exposed */ export interface Config { /** Freeform metadata for tooling and operational notes */ annotations?: Record | null; createdAt?: string | null; + createdByPrincipal?: string | null; /** Database that owns this resource (database-scoped isolation) */ databaseId?: string | null; /** Human-readable note about this config entry */ @@ -255,14 +268,54 @@ export interface Config { /** Optional discriminator scoping this value under its name. NULL = the default/unqualified value; getters fall back from an exact realm match to the NULL-realm row. */ realm?: string | null; updatedAt?: string | null; + updatedByPrincipal?: string | null; /** Plaintext config value */ value?: string | null; } +/** -level plaintext key-value config store; database-resident, never projected into Kubernetes */ +export interface InternalConfig { + /** Freeform metadata for tooling and operational notes */ + annotations?: Record | null; + createdAt?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; + /** Human-readable note about this config entry */ + description?: string | null; + /** Optional expiration timestamp for time-limited config entries */ + expiresAt?: string | null; + /** Unique identifier for this config entry */ + id: string; + /** Key/value pairs for selecting/filtering config entries */ + labels?: Record | null; + /** Key name identifying the config entry */ + name?: string | null; + /** Integration provider slug (e.g. mailgun, postgres). Used by the UI to group config entries by integration. No FK. */ + provider?: string | null; + /** Optional discriminator scoping this value under its name. NULL = the default/unqualified value; getters fall back from an exact realm match to the NULL-realm row. */ + realm?: string | null; + updatedAt?: string | null; + /** Plaintext config value */ + value?: string | null; +} +export interface InternalSecret { + annotations?: Record | null; + createdAt?: string | null; + databaseId?: string | null; + description?: string | null; + id: string; + labels?: Record | null; + name?: string | null; + realm?: string | null; + retiredAt?: string | null; + rotatedAt?: string | null; + updatedAt?: string | null; +} /** Namespace-backed plaintext key-value config store (like a k8s ConfigMap); admin-only, fully CRUD-exposed */ export interface PlatformConfig { /** Freeform metadata for tooling and operational notes */ annotations?: Record | null; createdAt?: string | null; + createdByPrincipal?: string | null; /** Human-readable note about this config entry */ description?: string | null; /** Optional expiration timestamp for time-limited config entries */ @@ -280,6 +333,30 @@ export interface PlatformConfig { /** Optional discriminator scoping this value under its name. NULL = the default/unqualified value; getters fall back from an exact realm match to the NULL-realm row. */ realm?: string | null; updatedAt?: string | null; + updatedByPrincipal?: string | null; + /** Plaintext config value */ + value?: string | null; +} +/** platform-level plaintext key-value config store; database-resident, never projected into Kubernetes */ +export interface PlatformInternalConfig { + /** Freeform metadata for tooling and operational notes */ + annotations?: Record | null; + createdAt?: string | null; + /** Human-readable note about this config entry */ + description?: string | null; + /** Optional expiration timestamp for time-limited config entries */ + expiresAt?: string | null; + /** Unique identifier for this config entry */ + id: string; + /** Key/value pairs for selecting/filtering config entries */ + labels?: Record | null; + /** Key name identifying the config entry */ + name?: string | null; + /** Integration provider slug (e.g. mailgun, postgres). Used by the UI to group config entries by integration. No FK. */ + provider?: string | null; + /** Optional discriminator scoping this value under its name. NULL = the default/unqualified value; getters fall back from an exact realm match to the NULL-realm row. */ + realm?: string | null; + updatedAt?: string | null; /** Plaintext config value */ value?: string | null; } @@ -290,7 +367,6 @@ export interface PlatformInternalSecret { id: string; labels?: Record | null; name?: string | null; - namespaceId?: string | null; realm?: string | null; retiredAt?: string | null; rotatedAt?: string | null; @@ -338,22 +414,44 @@ export interface PageInfo { endCursor?: string | null; } // ============ Entity Relation Types ============ +export interface AppInternalSecretRelations {} export interface ConfigRelations {} +export interface InternalConfigRelations {} +export interface InternalSecretRelations {} export interface PlatformConfigRelations {} +export interface PlatformInternalConfigRelations {} export interface PlatformInternalSecretRelations {} export interface PlatformSecretRelations {} export interface SecretRelations {} // ============ Entity Types With Relations ============ +export type AppInternalSecretWithRelations = AppInternalSecret & AppInternalSecretRelations; export type ConfigWithRelations = Config & ConfigRelations; +export type InternalConfigWithRelations = InternalConfig & InternalConfigRelations; +export type InternalSecretWithRelations = InternalSecret & InternalSecretRelations; export type PlatformConfigWithRelations = PlatformConfig & PlatformConfigRelations; +export type PlatformInternalConfigWithRelations = PlatformInternalConfig & + PlatformInternalConfigRelations; export type PlatformInternalSecretWithRelations = PlatformInternalSecret & PlatformInternalSecretRelations; export type PlatformSecretWithRelations = PlatformSecret & PlatformSecretRelations; export type SecretWithRelations = Secret & SecretRelations; // ============ Entity Select Types ============ +export type AppInternalSecretSelect = { + annotations?: boolean; + createdAt?: boolean; + description?: boolean; + id?: boolean; + labels?: boolean; + name?: boolean; + realm?: boolean; + retiredAt?: boolean; + rotatedAt?: boolean; + updatedAt?: boolean; +}; export type ConfigSelect = { annotations?: boolean; createdAt?: boolean; + createdByPrincipal?: boolean; databaseId?: boolean; description?: boolean; expiresAt?: boolean; @@ -364,11 +462,40 @@ export type ConfigSelect = { provider?: boolean; realm?: boolean; updatedAt?: boolean; + updatedByPrincipal?: boolean; value?: boolean; }; +export type InternalConfigSelect = { + annotations?: boolean; + createdAt?: boolean; + databaseId?: boolean; + description?: boolean; + expiresAt?: boolean; + id?: boolean; + labels?: boolean; + name?: boolean; + provider?: boolean; + realm?: boolean; + updatedAt?: boolean; + value?: boolean; +}; +export type InternalSecretSelect = { + annotations?: boolean; + createdAt?: boolean; + databaseId?: boolean; + description?: boolean; + id?: boolean; + labels?: boolean; + name?: boolean; + realm?: boolean; + retiredAt?: boolean; + rotatedAt?: boolean; + updatedAt?: boolean; +}; export type PlatformConfigSelect = { annotations?: boolean; createdAt?: boolean; + createdByPrincipal?: boolean; description?: boolean; expiresAt?: boolean; id?: boolean; @@ -378,6 +505,20 @@ export type PlatformConfigSelect = { provider?: boolean; realm?: boolean; updatedAt?: boolean; + updatedByPrincipal?: boolean; + value?: boolean; +}; +export type PlatformInternalConfigSelect = { + annotations?: boolean; + createdAt?: boolean; + description?: boolean; + expiresAt?: boolean; + id?: boolean; + labels?: boolean; + name?: boolean; + provider?: boolean; + realm?: boolean; + updatedAt?: boolean; value?: boolean; }; export type PlatformInternalSecretSelect = { @@ -387,7 +528,6 @@ export type PlatformInternalSecretSelect = { id?: boolean; labels?: boolean; name?: boolean; - namespaceId?: boolean; realm?: boolean; retiredAt?: boolean; rotatedAt?: boolean; @@ -423,6 +563,34 @@ export type SecretSelect = { updatedAt?: boolean; }; // ============ Table Filter Types ============ +export interface AppInternalSecretFilter { + /** Checks for all expressions in this list. */ + and?: AppInternalSecretFilter[]; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: AppInternalSecretFilter; + /** Checks for any expressions in this list. */ + or?: AppInternalSecretFilter[]; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; + /** Filter by the object’s `retiredAt` field. */ + retiredAt?: DatetimeFilter; + /** Filter by the object’s `rotatedAt` field. */ + rotatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} export interface ConfigFilter { /** Checks for all expressions in this list. */ and?: ConfigFilter[]; @@ -430,6 +598,8 @@ export interface ConfigFilter { annotations?: JSONFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; /** Filter by the object’s `description` field. */ @@ -454,9 +624,73 @@ export interface ConfigFilter { realm?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** Filter by the object’s `value` field. */ + value?: StringFilter; +} +export interface InternalConfigFilter { + /** Checks for all expressions in this list. */ + and?: InternalConfigFilter[]; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** 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 `expiresAt` field. */ + expiresAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: InternalConfigFilter; + /** Checks for any expressions in this list. */ + or?: InternalConfigFilter[]; + /** Filter by the object’s `provider` field. */ + provider?: StringFilter; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; /** Filter by the object’s `value` field. */ value?: StringFilter; } +export interface InternalSecretFilter { + /** Checks for all expressions in this list. */ + and?: InternalSecretFilter[]; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** 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 `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: InternalSecretFilter; + /** Checks for any expressions in this list. */ + or?: InternalSecretFilter[]; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; + /** Filter by the object’s `retiredAt` field. */ + retiredAt?: DatetimeFilter; + /** Filter by the object’s `rotatedAt` field. */ + rotatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} export interface PlatformConfigFilter { /** Checks for all expressions in this list. */ and?: PlatformConfigFilter[]; @@ -464,6 +698,8 @@ export interface PlatformConfigFilter { annotations?: JSONFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `description` field. */ description?: StringFilter; /** Filter by the object’s `expiresAt` field. */ @@ -486,6 +722,38 @@ export interface PlatformConfigFilter { realm?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** Filter by the object’s `value` field. */ + value?: StringFilter; +} +export interface PlatformInternalConfigFilter { + /** Checks for all expressions in this list. */ + and?: PlatformInternalConfigFilter[]; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: PlatformInternalConfigFilter; + /** Checks for any expressions in this list. */ + or?: PlatformInternalConfigFilter[]; + /** Filter by the object’s `provider` field. */ + provider?: StringFilter; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; /** Filter by the object’s `value` field. */ value?: StringFilter; } @@ -504,8 +772,6 @@ export interface PlatformInternalSecretFilter { labels?: JSONFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; /** Negates the expression. */ not?: PlatformInternalSecretFilter; /** Checks for any expressions in this list. */ @@ -586,11 +852,35 @@ export interface SecretFilter { updatedAt?: DatetimeFilter; } // ============ OrderBy Types ============ +export type AppInternalSecretOrderBy = + | 'ANNOTATIONS_ASC' + | 'ANNOTATIONS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'LABELS_ASC' + | 'LABELS_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'REALM_ASC' + | 'REALM_DESC' + | 'RETIRED_AT_ASC' + | 'RETIRED_AT_DESC' + | 'ROTATED_AT_ASC' + | 'ROTATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; export type ConfigOrderBy = | 'ANNOTATIONS_ASC' | 'ANNOTATIONS_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'DESCRIPTION_ASC' @@ -614,13 +904,69 @@ export type ConfigOrderBy = | 'REALM_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC' + | 'VALUE_ASC' + | 'VALUE_DESC'; +export type InternalConfigOrderBy = + | 'ANNOTATIONS_ASC' + | 'ANNOTATIONS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'EXPIRES_AT_ASC' + | 'EXPIRES_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'LABELS_ASC' + | 'LABELS_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PROVIDER_ASC' + | 'PROVIDER_DESC' + | 'REALM_ASC' + | 'REALM_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' | 'VALUE_ASC' | 'VALUE_DESC'; +export type InternalSecretOrderBy = + | 'ANNOTATIONS_ASC' + | 'ANNOTATIONS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'LABELS_ASC' + | 'LABELS_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'REALM_ASC' + | 'REALM_DESC' + | 'RETIRED_AT_ASC' + | 'RETIRED_AT_DESC' + | 'ROTATED_AT_ASC' + | 'ROTATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; export type PlatformConfigOrderBy = | 'ANNOTATIONS_ASC' | 'ANNOTATIONS_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' | 'EXPIRES_AT_ASC' @@ -642,6 +988,34 @@ export type PlatformConfigOrderBy = | 'REALM_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC' + | 'VALUE_ASC' + | 'VALUE_DESC'; +export type PlatformInternalConfigOrderBy = + | 'ANNOTATIONS_ASC' + | 'ANNOTATIONS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'EXPIRES_AT_ASC' + | 'EXPIRES_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'LABELS_ASC' + | 'LABELS_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PROVIDER_ASC' + | 'PROVIDER_DESC' + | 'REALM_ASC' + | 'REALM_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' | 'VALUE_ASC' | 'VALUE_DESC'; export type PlatformInternalSecretOrderBy = @@ -655,8 +1029,6 @@ export type PlatformInternalSecretOrderBy = | 'ID_DESC' | 'LABELS_ASC' | 'LABELS_DESC' - | 'NAMESPACE_ID_ASC' - | 'NAMESPACE_ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'NATURAL' @@ -723,39 +1095,139 @@ export type SecretOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; // ============ CRUD Input Types ============ +export interface CreateAppInternalSecretInput { + clientMutationId?: string; + appInternalSecret: { + annotations?: Record; + description?: string; + labels?: Record; + name?: string; + realm?: string; + retiredAt?: string; + rotatedAt?: string; + }; +} +export interface AppInternalSecretPatch { + annotations?: Record | null; + description?: string | null; + labels?: Record | null; + name?: string | null; + realm?: string | null; + retiredAt?: string | null; + rotatedAt?: string | null; +} +export interface UpdateAppInternalSecretInput { + clientMutationId?: string; + id: string; + appInternalSecretPatch: AppInternalSecretPatch; +} +export interface DeleteAppInternalSecretInput { + clientMutationId?: string; + id: string; +} export interface CreateConfigInput { clientMutationId?: string; - config: { + config: { + annotations?: Record; + createdByPrincipal?: string; + databaseId: string; + description?: string; + expiresAt?: string; + labels?: Record; + name: string; + namespaceId: string; + provider?: string; + realm?: string; + updatedByPrincipal?: string; + value?: string; + }; +} +export interface ConfigPatch { + annotations?: Record | null; + createdByPrincipal?: string | null; + databaseId?: string | null; + description?: string | null; + expiresAt?: string | null; + labels?: Record | null; + name?: string | null; + namespaceId?: string | null; + provider?: string | null; + realm?: string | null; + updatedByPrincipal?: string | null; + value?: string | null; +} +export interface UpdateConfigInput { + clientMutationId?: string; + id: string; + configPatch: ConfigPatch; +} +export interface DeleteConfigInput { + clientMutationId?: string; + id: string; +} +export interface CreateInternalConfigInput { + clientMutationId?: string; + internalConfig: { annotations?: Record; databaseId: string; description?: string; expiresAt?: string; labels?: Record; name: string; - namespaceId: string; provider?: string; realm?: string; value?: string; }; } -export interface ConfigPatch { +export interface InternalConfigPatch { annotations?: Record | null; databaseId?: string | null; description?: string | null; expiresAt?: string | null; labels?: Record | null; name?: string | null; - namespaceId?: string | null; provider?: string | null; realm?: string | null; value?: string | null; } -export interface UpdateConfigInput { +export interface UpdateInternalConfigInput { clientMutationId?: string; id: string; - configPatch: ConfigPatch; + internalConfigPatch: InternalConfigPatch; } -export interface DeleteConfigInput { +export interface DeleteInternalConfigInput { + clientMutationId?: string; + id: string; +} +export interface CreateInternalSecretInput { + clientMutationId?: string; + internalSecret: { + annotations?: Record; + databaseId: string; + description?: string; + labels?: Record; + name?: string; + realm?: string; + retiredAt?: string; + rotatedAt?: string; + }; +} +export interface InternalSecretPatch { + annotations?: Record | null; + databaseId?: string | null; + description?: string | null; + labels?: Record | null; + name?: string | null; + realm?: string | null; + retiredAt?: string | null; + rotatedAt?: string | null; +} +export interface UpdateInternalSecretInput { + clientMutationId?: string; + id: string; + internalSecretPatch: InternalSecretPatch; +} +export interface DeleteInternalSecretInput { clientMutationId?: string; id: string; } @@ -763,6 +1235,7 @@ export interface CreatePlatformConfigInput { clientMutationId?: string; platformConfig: { annotations?: Record; + createdByPrincipal?: string; description?: string; expiresAt?: string; labels?: Record; @@ -770,11 +1243,13 @@ export interface CreatePlatformConfigInput { namespaceId: string; provider?: string; realm?: string; + updatedByPrincipal?: string; value?: string; }; } export interface PlatformConfigPatch { annotations?: Record | null; + createdByPrincipal?: string | null; description?: string | null; expiresAt?: string | null; labels?: Record | null; @@ -782,6 +1257,7 @@ export interface PlatformConfigPatch { namespaceId?: string | null; provider?: string | null; realm?: string | null; + updatedByPrincipal?: string | null; value?: string | null; } export interface UpdatePlatformConfigInput { @@ -793,6 +1269,38 @@ export interface DeletePlatformConfigInput { clientMutationId?: string; id: string; } +export interface CreatePlatformInternalConfigInput { + clientMutationId?: string; + platformInternalConfig: { + annotations?: Record; + description?: string; + expiresAt?: string; + labels?: Record; + name: string; + provider?: string; + realm?: string; + value?: string; + }; +} +export interface PlatformInternalConfigPatch { + annotations?: Record | null; + description?: string | null; + expiresAt?: string | null; + labels?: Record | null; + name?: string | null; + provider?: string | null; + realm?: string | null; + value?: string | null; +} +export interface UpdatePlatformInternalConfigInput { + clientMutationId?: string; + id: string; + platformInternalConfigPatch: PlatformInternalConfigPatch; +} +export interface DeletePlatformInternalConfigInput { + clientMutationId?: string; + id: string; +} export interface CreatePlatformInternalSecretInput { clientMutationId?: string; platformInternalSecret: { @@ -800,7 +1308,6 @@ export interface CreatePlatformInternalSecretInput { description?: string; labels?: Record; name?: string; - namespaceId: string; realm?: string; retiredAt?: string; rotatedAt?: string; @@ -811,7 +1318,6 @@ export interface PlatformInternalSecretPatch { description?: string | null; labels?: Record | null; name?: string | null; - namespaceId?: string | null; realm?: string | null; retiredAt?: string | null; rotatedAt?: string | null; @@ -898,6 +1404,34 @@ export interface DeleteSecretInput { // ============ Connection Fields Map ============ export const connectionFieldsMap = {} as Record>; // ============ Custom Input Types (from schema) ============ +export interface _InternalSecretsDelInput { + clientMutationId?: string; + databaseId?: string; + realm?: string; + secretName?: string; +} +export interface _InternalSecretsRemoveArrayInput { + clientMutationId?: string; + databaseId?: string; + realm?: string; + secretNames?: string[]; +} +export interface _InternalSecretsRotateInput { + algo?: string; + clientMutationId?: string; + databaseId?: string; + realm?: string; + secretName?: string; + secretValue?: string; +} +export interface _InternalSecretsSetInput { + algo?: string; + clientMutationId?: string; + scopeDatabaseId?: string; + secretName?: string; + secretRealm?: string; + secretValue?: string; +} export interface _SecretsDelInput { clientMutationId?: string; databaseId?: string; @@ -931,22 +1465,43 @@ export interface _SecretsSetInput { secretRealm?: string; secretValue?: string; } +export interface AppInternalSecretsDelInput { + clientMutationId?: string; + realm?: string; + secretName?: string; +} +export interface AppInternalSecretsRemoveArrayInput { + clientMutationId?: string; + realm?: string; + secretNames?: string[]; +} +export interface AppInternalSecretsRotateInput { + algo?: string; + clientMutationId?: string; + realm?: string; + secretName?: string; + secretValue?: string; +} +export interface AppInternalSecretsSetInput { + algo?: string; + clientMutationId?: string; + secretName?: string; + secretRealm?: string; + secretValue?: string; +} export interface PlatformInternalSecretsDelInput { clientMutationId?: string; - namespaceId?: string; realm?: string; secretName?: string; } export interface PlatformInternalSecretsRemoveArrayInput { clientMutationId?: string; - namespaceId?: string; realm?: string; secretNames?: string[]; } export interface PlatformInternalSecretsRotateInput { algo?: string; clientMutationId?: string; - namespaceId?: string; realm?: string; secretName?: string; secretValue?: string; @@ -955,7 +1510,6 @@ export interface PlatformInternalSecretsSetInput { algo?: string; clientMutationId?: string; secretName?: string; - secretNamespaceId?: string; secretRealm?: string; secretValue?: string; } @@ -1002,6 +1556,7 @@ export interface ConfigInput { /** Freeform metadata for tooling and operational notes */ annotations?: Record; createdAt?: string; + createdByPrincipal?: string; /** Database that owns this resource (database-scoped isolation) */ databaseId: string; /** Human-readable note about this config entry */ @@ -1021,6 +1576,32 @@ export interface ConfigInput { /** Optional discriminator scoping this value under its name. NULL = the default/unqualified value; getters fall back from an exact realm match to the NULL-realm row. */ realm?: string; updatedAt?: string; + updatedByPrincipal?: string; + /** Plaintext config value */ + value?: string; +} +/** An input for mutations affecting `InternalConfig` */ +export interface InternalConfigInput { + /** Freeform metadata for tooling and operational notes */ + annotations?: Record; + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Human-readable note about this config entry */ + description?: string; + /** Optional expiration timestamp for time-limited config entries */ + expiresAt?: string; + /** Unique identifier for this config entry */ + id?: string; + /** Key/value pairs for selecting/filtering config entries */ + labels?: Record; + /** Key name identifying the config entry */ + name: string; + /** Integration provider slug (e.g. mailgun, postgres). Used by the UI to group config entries by integration. No FK. */ + provider?: string; + /** Optional discriminator scoping this value under its name. NULL = the default/unqualified value; getters fall back from an exact realm match to the NULL-realm row. */ + realm?: string; + updatedAt?: string; /** Plaintext config value */ value?: string; } @@ -1029,6 +1610,7 @@ export interface PlatformConfigInput { /** Freeform metadata for tooling and operational notes */ annotations?: Record; createdAt?: string; + createdByPrincipal?: string; /** Human-readable note about this config entry */ description?: string; /** Optional expiration timestamp for time-limited config entries */ @@ -1046,10 +1628,62 @@ export interface PlatformConfigInput { /** Optional discriminator scoping this value under its name. NULL = the default/unqualified value; getters fall back from an exact realm match to the NULL-realm row. */ realm?: string; updatedAt?: string; + updatedByPrincipal?: string; + /** Plaintext config value */ + value?: string; +} +/** An input for mutations affecting `PlatformInternalConfig` */ +export interface PlatformInternalConfigInput { + /** Freeform metadata for tooling and operational notes */ + annotations?: Record; + createdAt?: string; + /** Human-readable note about this config entry */ + description?: string; + /** Optional expiration timestamp for time-limited config entries */ + expiresAt?: string; + /** Unique identifier for this config entry */ + id?: string; + /** Key/value pairs for selecting/filtering config entries */ + labels?: Record; + /** Key name identifying the config entry */ + name: string; + /** Integration provider slug (e.g. mailgun, postgres). Used by the UI to group config entries by integration. No FK. */ + provider?: string; + /** Optional discriminator scoping this value under its name. NULL = the default/unqualified value; getters fall back from an exact realm match to the NULL-realm row. */ + realm?: string; + updatedAt?: string; /** Plaintext config value */ value?: string; } // ============ Payload/Return Types (for custom operations) ============ +export interface _InternalSecretsDelPayload { + clientMutationId?: string | null; +} +export type _InternalSecretsDelPayloadSelect = { + clientMutationId?: boolean; +}; +export interface _InternalSecretsRemoveArrayPayload { + clientMutationId?: string | null; +} +export type _InternalSecretsRemoveArrayPayloadSelect = { + clientMutationId?: boolean; +}; +export interface _InternalSecretsRotatePayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type _InternalSecretsRotatePayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface _InternalSecretsSetPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type _InternalSecretsSetPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; export interface _SecretsDelPayload { clientMutationId?: string | null; } @@ -1078,6 +1712,34 @@ export type _SecretsSetPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface AppInternalSecretsDelPayload { + clientMutationId?: string | null; +} +export type AppInternalSecretsDelPayloadSelect = { + clientMutationId?: boolean; +}; +export interface AppInternalSecretsRemoveArrayPayload { + clientMutationId?: string | null; +} +export type AppInternalSecretsRemoveArrayPayloadSelect = { + clientMutationId?: boolean; +}; +export interface AppInternalSecretsRotatePayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type AppInternalSecretsRotatePayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface AppInternalSecretsSetPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type AppInternalSecretsSetPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; export interface PlatformInternalSecretsDelPayload { clientMutationId?: string | null; } @@ -1135,26 +1797,19 @@ export type PlatformSecretsSetPayloadSelect = { 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; + /** The logical bucket row that was queued for reconciliation. */ + bucketId: string; + bucketKey: string; + /** The reconciler job enqueued to provision this bucket. */ + jobId: string; + /** The physical bucket name already recorded, or null when reconciliation has not completed. */ + physicalName?: string | null; } export type ProvisionBucketPayloadSelect = { - accessType?: boolean; - bucketName?: boolean; - endpoint?: boolean; - error?: boolean; - provider?: boolean; - success?: boolean; + bucketId?: boolean; + bucketKey?: boolean; + jobId?: boolean; + physicalName?: boolean; }; export interface CreateConfigPayload { clientMutationId?: string | null; @@ -1201,6 +1856,51 @@ export type DeleteConfigPayloadSelect = { select: ConfigEdgeSelect; }; }; +export interface CreateInternalConfigPayload { + clientMutationId?: string | null; + /** The `InternalConfig` that was created by this mutation. */ + internalConfig?: InternalConfig | null; + internalConfigEdge?: InternalConfigEdge | null; +} +export type CreateInternalConfigPayloadSelect = { + clientMutationId?: boolean; + internalConfig?: { + select: InternalConfigSelect; + }; + internalConfigEdge?: { + select: InternalConfigEdgeSelect; + }; +}; +export interface UpdateInternalConfigPayload { + clientMutationId?: string | null; + /** The `InternalConfig` that was updated by this mutation. */ + internalConfig?: InternalConfig | null; + internalConfigEdge?: InternalConfigEdge | null; +} +export type UpdateInternalConfigPayloadSelect = { + clientMutationId?: boolean; + internalConfig?: { + select: InternalConfigSelect; + }; + internalConfigEdge?: { + select: InternalConfigEdgeSelect; + }; +}; +export interface DeleteInternalConfigPayload { + clientMutationId?: string | null; + /** The `InternalConfig` that was deleted by this mutation. */ + internalConfig?: InternalConfig | null; + internalConfigEdge?: InternalConfigEdge | null; +} +export type DeleteInternalConfigPayloadSelect = { + clientMutationId?: boolean; + internalConfig?: { + select: InternalConfigSelect; + }; + internalConfigEdge?: { + select: InternalConfigEdgeSelect; + }; +}; export interface CreatePlatformConfigPayload { clientMutationId?: string | null; /** The `PlatformConfig` that was created by this mutation. */ @@ -1246,6 +1946,51 @@ export type DeletePlatformConfigPayloadSelect = { select: PlatformConfigEdgeSelect; }; }; +export interface CreatePlatformInternalConfigPayload { + clientMutationId?: string | null; + /** The `PlatformInternalConfig` that was created by this mutation. */ + platformInternalConfig?: PlatformInternalConfig | null; + platformInternalConfigEdge?: PlatformInternalConfigEdge | null; +} +export type CreatePlatformInternalConfigPayloadSelect = { + clientMutationId?: boolean; + platformInternalConfig?: { + select: PlatformInternalConfigSelect; + }; + platformInternalConfigEdge?: { + select: PlatformInternalConfigEdgeSelect; + }; +}; +export interface UpdatePlatformInternalConfigPayload { + clientMutationId?: string | null; + /** The `PlatformInternalConfig` that was updated by this mutation. */ + platformInternalConfig?: PlatformInternalConfig | null; + platformInternalConfigEdge?: PlatformInternalConfigEdge | null; +} +export type UpdatePlatformInternalConfigPayloadSelect = { + clientMutationId?: boolean; + platformInternalConfig?: { + select: PlatformInternalConfigSelect; + }; + platformInternalConfigEdge?: { + select: PlatformInternalConfigEdgeSelect; + }; +}; +export interface DeletePlatformInternalConfigPayload { + clientMutationId?: string | null; + /** The `PlatformInternalConfig` that was deleted by this mutation. */ + platformInternalConfig?: PlatformInternalConfig | null; + platformInternalConfigEdge?: PlatformInternalConfigEdge | null; +} +export type DeletePlatformInternalConfigPayloadSelect = { + clientMutationId?: boolean; + platformInternalConfig?: { + select: PlatformInternalConfigSelect; + }; + platformInternalConfigEdge?: { + select: PlatformInternalConfigEdgeSelect; + }; +}; /** A `Config` edge in the connection. */ export interface ConfigEdge { cursor?: string | null; @@ -1258,6 +2003,18 @@ export type ConfigEdgeSelect = { select: ConfigSelect; }; }; +/** A `InternalConfig` edge in the connection. */ +export interface InternalConfigEdge { + cursor?: string | null; + /** The `InternalConfig` at the end of the edge. */ + node?: InternalConfig | null; +} +export type InternalConfigEdgeSelect = { + cursor?: boolean; + node?: { + select: InternalConfigSelect; + }; +}; /** A `PlatformConfig` edge in the connection. */ export interface PlatformConfigEdge { cursor?: string | null; @@ -1270,3 +2027,15 @@ export type PlatformConfigEdgeSelect = { select: PlatformConfigSelect; }; }; +/** A `PlatformInternalConfig` edge in the connection. */ +export interface PlatformInternalConfigEdge { + cursor?: string | null; + /** The `PlatformInternalConfig` at the end of the edge. */ + node?: PlatformInternalConfig | null; +} +export type PlatformInternalConfigEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformInternalConfigSelect; + }; +}; diff --git a/sdk/constructive-react/src/config/orm/models/appInternalSecret.ts b/sdk/constructive-react/src/config/orm/models/appInternalSecret.ts new file mode 100644 index 0000000000..6efc1ad009 --- /dev/null +++ b/sdk/constructive-react/src/config/orm/models/appInternalSecret.ts @@ -0,0 +1,174 @@ +/** + * AppInternalSecret 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 { + AppInternalSecret, + AppInternalSecretWithRelations, + AppInternalSecretSelect, + AppInternalSecretFilter, + AppInternalSecretOrderBy, + CreateAppInternalSecretInput, + UpdateAppInternalSecretInput, + AppInternalSecretPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class AppInternalSecretModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + appInternalSecrets: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'AppInternalSecret', + 'appInternalSecrets', + 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, + }, + 'AppInternalSecretFilter', + 'AppInternalSecretOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppInternalSecret', + fieldName: 'appInternalSecrets', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + appInternalSecret: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'AppInternalSecret', + 'appInternalSecrets', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'AppInternalSecretFilter', + 'AppInternalSecretOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppInternalSecret', + fieldName: 'appInternalSecret', + document, + variables, + transform: (data: { + appInternalSecrets?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + appInternalSecret: data.appInternalSecrets?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + appInternalSecret: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'AppInternalSecret', + 'appInternalSecrets', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'AppInternalSecretFilter', + 'AppInternalSecretOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppInternalSecret', + fieldName: 'appInternalSecret', + document, + variables, + transform: (data: { + appInternalSecrets?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + appInternalSecret: data.appInternalSecrets?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createAppInternalSecret: { + appInternalSecret: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'AppInternalSecret', + 'createAppInternalSecret', + 'appInternalSecret', + args.select, + args.data, + 'CreateAppInternalSecretInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppInternalSecret', + fieldName: 'createAppInternalSecret', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/config/orm/models/index.ts b/sdk/constructive-react/src/config/orm/models/index.ts index 0823cce0ad..7862d62ac4 100644 --- a/sdk/constructive-react/src/config/orm/models/index.ts +++ b/sdk/constructive-react/src/config/orm/models/index.ts @@ -3,8 +3,12 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ +export { AppInternalSecretModel } from './appInternalSecret'; export { ConfigModel } from './config'; +export { InternalConfigModel } from './internalConfig'; +export { InternalSecretModel } from './internalSecret'; export { PlatformConfigModel } from './platformConfig'; +export { PlatformInternalConfigModel } from './platformInternalConfig'; export { PlatformInternalSecretModel } from './platformInternalSecret'; export { PlatformSecretModel } from './platformSecret'; export { SecretModel } from './secret'; diff --git a/sdk/constructive-react/src/config/orm/models/internalConfig.ts b/sdk/constructive-react/src/config/orm/models/internalConfig.ts new file mode 100644 index 0000000000..9314de2fea --- /dev/null +++ b/sdk/constructive-react/src/config/orm/models/internalConfig.ts @@ -0,0 +1,245 @@ +/** + * InternalConfig 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 { + InternalConfig, + InternalConfigWithRelations, + InternalConfigSelect, + InternalConfigFilter, + InternalConfigOrderBy, + CreateInternalConfigInput, + UpdateInternalConfigInput, + InternalConfigPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class InternalConfigModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + internalConfigs: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'InternalConfig', + 'internalConfigs', + 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, + }, + 'InternalConfigFilter', + 'InternalConfigOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InternalConfig', + fieldName: 'internalConfigs', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + internalConfig: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'InternalConfig', + 'internalConfigs', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'InternalConfigFilter', + 'InternalConfigOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InternalConfig', + fieldName: 'internalConfig', + document, + variables, + transform: (data: { + internalConfigs?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + internalConfig: data.internalConfigs?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + internalConfig: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'InternalConfig', + 'internalConfigs', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'InternalConfigFilter', + 'InternalConfigOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InternalConfig', + fieldName: 'internalConfig', + document, + variables, + transform: (data: { + internalConfigs?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + internalConfig: data.internalConfigs?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createInternalConfig: { + internalConfig: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'InternalConfig', + 'createInternalConfig', + 'internalConfig', + args.select, + args.data, + 'CreateInternalConfigInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InternalConfig', + fieldName: 'createInternalConfig', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + InternalConfigPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateInternalConfig: { + internalConfig: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'InternalConfig', + 'updateInternalConfig', + 'internalConfig', + args.select, + args.where.id, + args.data, + 'UpdateInternalConfigInput', + 'id', + 'internalConfigPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InternalConfig', + fieldName: 'updateInternalConfig', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteInternalConfig: { + internalConfig: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'InternalConfig', + 'deleteInternalConfig', + 'internalConfig', + { + id: args.where.id, + }, + 'DeleteInternalConfigInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InternalConfig', + fieldName: 'deleteInternalConfig', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/config/orm/models/internalSecret.ts b/sdk/constructive-react/src/config/orm/models/internalSecret.ts new file mode 100644 index 0000000000..daeef23c68 --- /dev/null +++ b/sdk/constructive-react/src/config/orm/models/internalSecret.ts @@ -0,0 +1,174 @@ +/** + * InternalSecret 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 { + InternalSecret, + InternalSecretWithRelations, + InternalSecretSelect, + InternalSecretFilter, + InternalSecretOrderBy, + CreateInternalSecretInput, + UpdateInternalSecretInput, + InternalSecretPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class InternalSecretModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + internalSecrets: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'InternalSecret', + 'internalSecrets', + 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, + }, + 'InternalSecretFilter', + 'InternalSecretOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InternalSecret', + fieldName: 'internalSecrets', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + internalSecret: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'InternalSecret', + 'internalSecrets', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'InternalSecretFilter', + 'InternalSecretOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InternalSecret', + fieldName: 'internalSecret', + document, + variables, + transform: (data: { + internalSecrets?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + internalSecret: data.internalSecrets?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + internalSecret: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'InternalSecret', + 'internalSecrets', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'InternalSecretFilter', + 'InternalSecretOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InternalSecret', + fieldName: 'internalSecret', + document, + variables, + transform: (data: { + internalSecrets?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + internalSecret: data.internalSecrets?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createInternalSecret: { + internalSecret: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'InternalSecret', + 'createInternalSecret', + 'internalSecret', + args.select, + args.data, + 'CreateInternalSecretInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InternalSecret', + fieldName: 'createInternalSecret', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/config/orm/models/platformInternalConfig.ts b/sdk/constructive-react/src/config/orm/models/platformInternalConfig.ts new file mode 100644 index 0000000000..6cb941483f --- /dev/null +++ b/sdk/constructive-react/src/config/orm/models/platformInternalConfig.ts @@ -0,0 +1,247 @@ +/** + * PlatformInternalConfig 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 { + PlatformInternalConfig, + PlatformInternalConfigWithRelations, + PlatformInternalConfigSelect, + PlatformInternalConfigFilter, + PlatformInternalConfigOrderBy, + CreatePlatformInternalConfigInput, + UpdatePlatformInternalConfigInput, + PlatformInternalConfigPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformInternalConfigModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformInternalConfigs: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformInternalConfig', + 'platformInternalConfigs', + 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, + }, + 'PlatformInternalConfigFilter', + 'PlatformInternalConfigOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformInternalConfig', + fieldName: 'platformInternalConfigs', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformInternalConfig: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformInternalConfig', + 'platformInternalConfigs', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformInternalConfigFilter', + 'PlatformInternalConfigOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformInternalConfig', + fieldName: 'platformInternalConfig', + document, + variables, + transform: (data: { + platformInternalConfigs?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformInternalConfig: data.platformInternalConfigs?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformInternalConfig: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformInternalConfig', + 'platformInternalConfigs', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformInternalConfigFilter', + 'PlatformInternalConfigOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformInternalConfig', + fieldName: 'platformInternalConfig', + document, + variables, + transform: (data: { + platformInternalConfigs?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformInternalConfig: data.platformInternalConfigs?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformInternalConfig: { + platformInternalConfig: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformInternalConfig', + 'createPlatformInternalConfig', + 'platformInternalConfig', + args.select, + args.data, + 'CreatePlatformInternalConfigInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformInternalConfig', + fieldName: 'createPlatformInternalConfig', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformInternalConfigPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformInternalConfig: { + platformInternalConfig: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformInternalConfig', + 'updatePlatformInternalConfig', + 'platformInternalConfig', + args.select, + args.where.id, + args.data, + 'UpdatePlatformInternalConfigInput', + 'id', + 'platformInternalConfigPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformInternalConfig', + fieldName: 'updatePlatformInternalConfig', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformInternalConfig: { + platformInternalConfig: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformInternalConfig', + 'deletePlatformInternalConfig', + 'platformInternalConfig', + { + id: args.where.id, + }, + 'DeletePlatformInternalConfigInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformInternalConfig', + fieldName: 'deletePlatformInternalConfig', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/config/orm/mutation/index.ts b/sdk/constructive-react/src/config/orm/mutation/index.ts index 13353608c7..d91b8c1e29 100644 --- a/sdk/constructive-react/src/config/orm/mutation/index.ts +++ b/sdk/constructive-react/src/config/orm/mutation/index.ts @@ -7,10 +7,18 @@ import { OrmClient } from '../client'; import { QueryBuilder, buildCustomDocument } from '../query-builder'; import type { InferSelectResult, StrictSelect } from '../select-types'; import type { + _InternalSecretsDelInput, + _InternalSecretsRemoveArrayInput, + _InternalSecretsRotateInput, + _InternalSecretsSetInput, _SecretsDelInput, _SecretsRemoveArrayInput, _SecretsRotateInput, _SecretsSetInput, + AppInternalSecretsDelInput, + AppInternalSecretsRemoveArrayInput, + AppInternalSecretsRotateInput, + AppInternalSecretsSetInput, PlatformInternalSecretsDelInput, PlatformInternalSecretsRemoveArrayInput, PlatformInternalSecretsRotateInput, @@ -20,10 +28,18 @@ import type { PlatformSecretsRotateInput, PlatformSecretsSetInput, ProvisionBucketInput, + _InternalSecretsDelPayload, + _InternalSecretsRemoveArrayPayload, + _InternalSecretsRotatePayload, + _InternalSecretsSetPayload, _SecretsDelPayload, _SecretsRemoveArrayPayload, _SecretsRotatePayload, _SecretsSetPayload, + AppInternalSecretsDelPayload, + AppInternalSecretsRemoveArrayPayload, + AppInternalSecretsRotatePayload, + AppInternalSecretsSetPayload, PlatformInternalSecretsDelPayload, PlatformInternalSecretsRemoveArrayPayload, PlatformInternalSecretsRotatePayload, @@ -33,10 +49,18 @@ import type { PlatformSecretsRotatePayload, PlatformSecretsSetPayload, ProvisionBucketPayload, + _InternalSecretsDelPayloadSelect, + _InternalSecretsRemoveArrayPayloadSelect, + _InternalSecretsRotatePayloadSelect, + _InternalSecretsSetPayloadSelect, _SecretsDelPayloadSelect, _SecretsRemoveArrayPayloadSelect, _SecretsRotatePayloadSelect, _SecretsSetPayloadSelect, + AppInternalSecretsDelPayloadSelect, + AppInternalSecretsRemoveArrayPayloadSelect, + AppInternalSecretsRotatePayloadSelect, + AppInternalSecretsSetPayloadSelect, PlatformInternalSecretsDelPayloadSelect, PlatformInternalSecretsRemoveArrayPayloadSelect, PlatformInternalSecretsRotatePayloadSelect, @@ -48,6 +72,18 @@ import type { ProvisionBucketPayloadSelect, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; +export interface _internalSecretsDelVariables { + input: _InternalSecretsDelInput; +} +export interface _internalSecretsRemoveArrayVariables { + input: _InternalSecretsRemoveArrayInput; +} +export interface _internalSecretsRotateVariables { + input: _InternalSecretsRotateInput; +} +export interface _internalSecretsSetVariables { + input: _InternalSecretsSetInput; +} export interface _secretsDelVariables { input: _SecretsDelInput; } @@ -60,6 +96,18 @@ export interface _secretsRotateVariables { export interface _secretsSetVariables { input: _SecretsSetInput; } +export interface AppInternalSecretsDelVariables { + input: AppInternalSecretsDelInput; +} +export interface AppInternalSecretsRemoveArrayVariables { + input: AppInternalSecretsRemoveArrayInput; +} +export interface AppInternalSecretsRotateVariables { + input: AppInternalSecretsRotateInput; +} +export interface AppInternalSecretsSetVariables { + input: AppInternalSecretsSetInput; +} export interface PlatformInternalSecretsDelVariables { input: PlatformInternalSecretsDelInput; } @@ -86,16 +134,136 @@ export interface PlatformSecretsSetVariables { } /** * Variables for provisionBucket - * 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. + * Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. */ export interface ProvisionBucketVariables { input: ProvisionBucketInput; } export function createMutationOperations(client: OrmClient) { return { + _internalSecretsDel: ( + args: _internalSecretsDelVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + _internalSecretsDel: InferSelectResult<_InternalSecretsDelPayload, S> | null; + }>({ + client, + operation: 'mutation', + operationName: '_internalSecretsDel', + fieldName: '_internalSecretsDel', + ...buildCustomDocument( + 'mutation', + '_internalSecretsDel', + '_internalSecretsDel', + options.select, + args, + [ + { + name: 'input', + type: '_InternalSecretsDelInput!', + }, + ], + connectionFieldsMap, + '_InternalSecretsDelPayload' + ), + }), + _internalSecretsRemoveArray: ( + args: _internalSecretsRemoveArrayVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + _internalSecretsRemoveArray: InferSelectResult< + _InternalSecretsRemoveArrayPayload, + S + > | null; + }>({ + client, + operation: 'mutation', + operationName: '_internalSecretsRemoveArray', + fieldName: '_internalSecretsRemoveArray', + ...buildCustomDocument( + 'mutation', + '_internalSecretsRemoveArray', + '_internalSecretsRemoveArray', + options.select, + args, + [ + { + name: 'input', + type: '_InternalSecretsRemoveArrayInput!', + }, + ], + connectionFieldsMap, + '_InternalSecretsRemoveArrayPayload' + ), + }), + _internalSecretsRotate: ( + args: _internalSecretsRotateVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + _internalSecretsRotate: InferSelectResult<_InternalSecretsRotatePayload, S> | null; + }>({ + client, + operation: 'mutation', + operationName: '_internalSecretsRotate', + fieldName: '_internalSecretsRotate', + ...buildCustomDocument( + 'mutation', + '_internalSecretsRotate', + '_internalSecretsRotate', + options.select, + args, + [ + { + name: 'input', + type: '_InternalSecretsRotateInput!', + }, + ], + connectionFieldsMap, + '_InternalSecretsRotatePayload' + ), + }), + _internalSecretsSet: ( + args: _internalSecretsSetVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + _internalSecretsSet: InferSelectResult<_InternalSecretsSetPayload, S> | null; + }>({ + client, + operation: 'mutation', + operationName: '_internalSecretsSet', + fieldName: '_internalSecretsSet', + ...buildCustomDocument( + 'mutation', + '_internalSecretsSet', + '_internalSecretsSet', + options.select, + args, + [ + { + name: 'input', + type: '_InternalSecretsSetInput!', + }, + ], + connectionFieldsMap, + '_InternalSecretsSetPayload' + ), + }), _secretsDel: ( args: _secretsDelVariables, options: { @@ -212,6 +380,125 @@ export function createMutationOperations(client: OrmClient) { '_SecretsSetPayload' ), }), + appInternalSecretsDel: ( + args: AppInternalSecretsDelVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + appInternalSecretsDel: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'AppInternalSecretsDel', + fieldName: 'appInternalSecretsDel', + ...buildCustomDocument( + 'mutation', + 'AppInternalSecretsDel', + 'appInternalSecretsDel', + options.select, + args, + [ + { + name: 'input', + type: 'AppInternalSecretsDelInput!', + }, + ], + connectionFieldsMap, + 'AppInternalSecretsDelPayload' + ), + }), + appInternalSecretsRemoveArray: ( + args: AppInternalSecretsRemoveArrayVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + appInternalSecretsRemoveArray: InferSelectResult< + AppInternalSecretsRemoveArrayPayload, + S + > | null; + }>({ + client, + operation: 'mutation', + operationName: 'AppInternalSecretsRemoveArray', + fieldName: 'appInternalSecretsRemoveArray', + ...buildCustomDocument( + 'mutation', + 'AppInternalSecretsRemoveArray', + 'appInternalSecretsRemoveArray', + options.select, + args, + [ + { + name: 'input', + type: 'AppInternalSecretsRemoveArrayInput!', + }, + ], + connectionFieldsMap, + 'AppInternalSecretsRemoveArrayPayload' + ), + }), + appInternalSecretsRotate: ( + args: AppInternalSecretsRotateVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + appInternalSecretsRotate: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'AppInternalSecretsRotate', + fieldName: 'appInternalSecretsRotate', + ...buildCustomDocument( + 'mutation', + 'AppInternalSecretsRotate', + 'appInternalSecretsRotate', + options.select, + args, + [ + { + name: 'input', + type: 'AppInternalSecretsRotateInput!', + }, + ], + connectionFieldsMap, + 'AppInternalSecretsRotatePayload' + ), + }), + appInternalSecretsSet: ( + args: AppInternalSecretsSetVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + appInternalSecretsSet: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'AppInternalSecretsSet', + fieldName: 'appInternalSecretsSet', + ...buildCustomDocument( + 'mutation', + 'AppInternalSecretsSet', + 'appInternalSecretsSet', + options.select, + args, + [ + { + name: 'input', + type: 'AppInternalSecretsSetInput!', + }, + ], + connectionFieldsMap, + 'AppInternalSecretsSetPayload' + ), + }), platformInternalSecretsDel: ( args: PlatformInternalSecretsDelVariables, options: { diff --git a/sdk/constructive-react/src/config/schema-types.ts b/sdk/constructive-react/src/config/schema-types.ts index 9fe50303ce..2208477c91 100644 --- a/sdk/constructive-react/src/config/schema-types.ts +++ b/sdk/constructive-react/src/config/schema-types.ts @@ -5,8 +5,12 @@ */ import type { + AppInternalSecret, Config, + InternalConfig, + InternalSecret, PlatformConfig, + PlatformInternalConfig, PlatformInternalSecret, PlatformSecret, Secret, @@ -28,12 +32,37 @@ import type { UUIDListFilter, VectorFilter, } from './types'; +/** Methods to use when ordering `AppInternalSecret`. */ +export type AppInternalSecretOrderBy = + | 'ANNOTATIONS_ASC' + | 'ANNOTATIONS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'LABELS_ASC' + | 'LABELS_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'REALM_ASC' + | 'REALM_DESC' + | 'RETIRED_AT_ASC' + | 'RETIRED_AT_DESC' + | 'ROTATED_AT_ASC' + | 'ROTATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; /** Methods to use when ordering `Config`. */ export type ConfigOrderBy = | 'ANNOTATIONS_ASC' | 'ANNOTATIONS_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'DESCRIPTION_ASC' @@ -57,14 +86,72 @@ export type ConfigOrderBy = | 'REALM_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC' | 'VALUE_ASC' | 'VALUE_DESC'; +/** Methods to use when ordering `InternalConfig`. */ +export type InternalConfigOrderBy = + | 'ANNOTATIONS_ASC' + | 'ANNOTATIONS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'EXPIRES_AT_ASC' + | 'EXPIRES_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'LABELS_ASC' + | 'LABELS_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PROVIDER_ASC' + | 'PROVIDER_DESC' + | 'REALM_ASC' + | 'REALM_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'VALUE_ASC' + | 'VALUE_DESC'; +/** Methods to use when ordering `InternalSecret`. */ +export type InternalSecretOrderBy = + | 'ANNOTATIONS_ASC' + | 'ANNOTATIONS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'LABELS_ASC' + | 'LABELS_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'REALM_ASC' + | 'REALM_DESC' + | 'RETIRED_AT_ASC' + | 'RETIRED_AT_DESC' + | 'ROTATED_AT_ASC' + | 'ROTATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; /** Methods to use when ordering `PlatformConfig`. */ export type PlatformConfigOrderBy = | 'ANNOTATIONS_ASC' | 'ANNOTATIONS_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' | 'EXPIRES_AT_ASC' @@ -86,6 +173,35 @@ export type PlatformConfigOrderBy = | 'REALM_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC' + | 'VALUE_ASC' + | 'VALUE_DESC'; +/** Methods to use when ordering `PlatformInternalConfig`. */ +export type PlatformInternalConfigOrderBy = + | 'ANNOTATIONS_ASC' + | 'ANNOTATIONS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'EXPIRES_AT_ASC' + | 'EXPIRES_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'LABELS_ASC' + | 'LABELS_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PROVIDER_ASC' + | 'PROVIDER_DESC' + | 'REALM_ASC' + | 'REALM_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' | 'VALUE_ASC' | 'VALUE_DESC'; /** Methods to use when ordering `PlatformInternalSecret`. */ @@ -100,8 +216,6 @@ export type PlatformInternalSecretOrderBy = | 'ID_DESC' | 'LABELS_ASC' | 'LABELS_DESC' - | 'NAMESPACE_ID_ASC' - | 'NAMESPACE_ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'NATURAL' @@ -169,6 +283,59 @@ export type SecretOrderBy = | 'ROTATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; +/** A filter to be used against `AppInternalSecret` object types. All fields are combined with a logical ‘and.’ */ +export interface AppInternalSecretFilter { + /** Checks for all expressions in this list. */ + and?: AppInternalSecretFilter[]; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: AppInternalSecretFilter; + /** Checks for any expressions in this list. */ + or?: AppInternalSecretFilter[]; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; + /** Filter by the object’s `retiredAt` field. */ + retiredAt?: DatetimeFilter; + /** Filter by the object’s `rotatedAt` field. */ + rotatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} +export interface AppInternalSecretsDelInput { + clientMutationId?: string; + realm?: string; + secretName?: string; +} +export interface AppInternalSecretsRemoveArrayInput { + clientMutationId?: string; + realm?: string; + secretNames?: string[]; +} +export interface AppInternalSecretsRotateInput { + algo?: string; + clientMutationId?: string; + realm?: string; + secretName?: string; + secretValue?: string; +} +export interface AppInternalSecretsSetInput { + algo?: string; + clientMutationId?: string; + secretName?: string; + secretRealm?: string; + secretValue?: string; +} /** A filter to be used against `Config` object types. All fields are combined with a logical ‘and.’ */ export interface ConfigFilter { /** Checks for all expressions in this list. */ @@ -177,6 +344,8 @@ export interface ConfigFilter { annotations?: JSONFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; /** Filter by the object’s `description` field. */ @@ -201,6 +370,8 @@ export interface ConfigFilter { realm?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; /** Filter by the object’s `value` field. */ value?: StringFilter; } @@ -209,6 +380,7 @@ export interface ConfigInput { /** Freeform metadata for tooling and operational notes */ annotations?: unknown; createdAt?: string; + createdByPrincipal?: string; /** Database that owns this resource (database-scoped isolation) */ databaseId: string; /** Human-readable note about this config entry */ @@ -228,6 +400,7 @@ export interface ConfigInput { /** Optional discriminator scoping this value under its name. NULL = the default/unqualified value; getters fall back from an exact realm match to the NULL-realm row. */ realm?: string; updatedAt?: string; + updatedByPrincipal?: string; /** Plaintext config value */ value?: string; } @@ -236,6 +409,7 @@ export interface ConfigPatch { /** Freeform metadata for tooling and operational notes */ annotations?: unknown; createdAt?: string; + createdByPrincipal?: string; /** Database that owns this resource (database-scoped isolation) */ databaseId?: string; /** Human-readable note about this config entry */ @@ -255,6 +429,7 @@ export interface ConfigPatch { /** Optional discriminator scoping this value under its name. NULL = the default/unqualified value; getters fall back from an exact realm match to the NULL-realm row. */ realm?: string; updatedAt?: string; + updatedByPrincipal?: string; /** Plaintext config value */ value?: string; } @@ -263,21 +438,155 @@ export interface CreateConfigInput { /** The `Config` to be created by this mutation. */ config: ConfigInput; } +export interface CreateInternalConfigInput { + clientMutationId?: string; + /** The `InternalConfig` to be created by this mutation. */ + internalConfig: InternalConfigInput; +} export interface CreatePlatformConfigInput { clientMutationId?: string; /** The `PlatformConfig` to be created by this mutation. */ platformConfig: PlatformConfigInput; } +export interface CreatePlatformInternalConfigInput { + clientMutationId?: string; + /** The `PlatformInternalConfig` to be created by this mutation. */ + platformInternalConfig: PlatformInternalConfigInput; +} export interface DeleteConfigInput { clientMutationId?: string; /** Unique identifier for this config entry */ id: string; } +export interface DeleteInternalConfigInput { + clientMutationId?: string; + /** Unique identifier for this config entry */ + id: string; +} export interface DeletePlatformConfigInput { clientMutationId?: string; /** Unique identifier for this config entry */ id: string; } +export interface DeletePlatformInternalConfigInput { + clientMutationId?: string; + /** Unique identifier for this config entry */ + id: string; +} +/** A filter to be used against `InternalConfig` object types. All fields are combined with a logical ‘and.’ */ +export interface InternalConfigFilter { + /** Checks for all expressions in this list. */ + and?: InternalConfigFilter[]; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** 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 `expiresAt` field. */ + expiresAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: InternalConfigFilter; + /** Checks for any expressions in this list. */ + or?: InternalConfigFilter[]; + /** Filter by the object’s `provider` field. */ + provider?: StringFilter; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `value` field. */ + value?: StringFilter; +} +/** An input for mutations affecting `InternalConfig` */ +export interface InternalConfigInput { + /** Freeform metadata for tooling and operational notes */ + annotations?: unknown; + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Human-readable note about this config entry */ + description?: string; + /** Optional expiration timestamp for time-limited config entries */ + expiresAt?: string; + /** Unique identifier for this config entry */ + id?: string; + /** Key/value pairs for selecting/filtering config entries */ + labels?: unknown; + /** Key name identifying the config entry */ + name: string; + /** Integration provider slug (e.g. mailgun, postgres). Used by the UI to group config entries by integration. No FK. */ + provider?: string; + /** Optional discriminator scoping this value under its name. NULL = the default/unqualified value; getters fall back from an exact realm match to the NULL-realm row. */ + realm?: string; + updatedAt?: string; + /** Plaintext config value */ + value?: string; +} +/** Represents an update to a `InternalConfig`. Fields that are set will be updated. */ +export interface InternalConfigPatch { + /** Freeform metadata for tooling and operational notes */ + annotations?: unknown; + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string; + /** Human-readable note about this config entry */ + description?: string; + /** Optional expiration timestamp for time-limited config entries */ + expiresAt?: string; + /** Unique identifier for this config entry */ + id?: string; + /** Key/value pairs for selecting/filtering config entries */ + labels?: unknown; + /** Key name identifying the config entry */ + name?: string; + /** Integration provider slug (e.g. mailgun, postgres). Used by the UI to group config entries by integration. No FK. */ + provider?: string; + /** Optional discriminator scoping this value under its name. NULL = the default/unqualified value; getters fall back from an exact realm match to the NULL-realm row. */ + realm?: string; + updatedAt?: string; + /** Plaintext config value */ + value?: string; +} +/** A filter to be used against `InternalSecret` object types. All fields are combined with a logical ‘and.’ */ +export interface InternalSecretFilter { + /** Checks for all expressions in this list. */ + and?: InternalSecretFilter[]; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** 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 `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: InternalSecretFilter; + /** Checks for any expressions in this list. */ + or?: InternalSecretFilter[]; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; + /** Filter by the object’s `retiredAt` field. */ + retiredAt?: DatetimeFilter; + /** Filter by the object’s `rotatedAt` field. */ + rotatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} /** A filter to be used against `PlatformConfig` object types. All fields are combined with a logical ‘and.’ */ export interface PlatformConfigFilter { /** Checks for all expressions in this list. */ @@ -286,6 +595,8 @@ export interface PlatformConfigFilter { annotations?: JSONFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `description` field. */ description?: StringFilter; /** Filter by the object’s `expiresAt` field. */ @@ -308,6 +619,8 @@ export interface PlatformConfigFilter { realm?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; /** Filter by the object’s `value` field. */ value?: StringFilter; } @@ -316,6 +629,7 @@ export interface PlatformConfigInput { /** Freeform metadata for tooling and operational notes */ annotations?: unknown; createdAt?: string; + createdByPrincipal?: string; /** Human-readable note about this config entry */ description?: string; /** Optional expiration timestamp for time-limited config entries */ @@ -333,6 +647,7 @@ export interface PlatformConfigInput { /** Optional discriminator scoping this value under its name. NULL = the default/unqualified value; getters fall back from an exact realm match to the NULL-realm row. */ realm?: string; updatedAt?: string; + updatedByPrincipal?: string; /** Plaintext config value */ value?: string; } @@ -341,6 +656,7 @@ export interface PlatformConfigPatch { /** Freeform metadata for tooling and operational notes */ annotations?: unknown; createdAt?: string; + createdByPrincipal?: string; /** Human-readable note about this config entry */ description?: string; /** Optional expiration timestamp for time-limited config entries */ @@ -358,6 +674,84 @@ export interface PlatformConfigPatch { /** Optional discriminator scoping this value under its name. NULL = the default/unqualified value; getters fall back from an exact realm match to the NULL-realm row. */ realm?: string; updatedAt?: string; + updatedByPrincipal?: string; + /** Plaintext config value */ + value?: string; +} +/** A filter to be used against `PlatformInternalConfig` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformInternalConfigFilter { + /** Checks for all expressions in this list. */ + and?: PlatformInternalConfigFilter[]; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: PlatformInternalConfigFilter; + /** Checks for any expressions in this list. */ + or?: PlatformInternalConfigFilter[]; + /** Filter by the object’s `provider` field. */ + provider?: StringFilter; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `value` field. */ + value?: StringFilter; +} +/** An input for mutations affecting `PlatformInternalConfig` */ +export interface PlatformInternalConfigInput { + /** Freeform metadata for tooling and operational notes */ + annotations?: unknown; + createdAt?: string; + /** Human-readable note about this config entry */ + description?: string; + /** Optional expiration timestamp for time-limited config entries */ + expiresAt?: string; + /** Unique identifier for this config entry */ + id?: string; + /** Key/value pairs for selecting/filtering config entries */ + labels?: unknown; + /** Key name identifying the config entry */ + name: string; + /** Integration provider slug (e.g. mailgun, postgres). Used by the UI to group config entries by integration. No FK. */ + provider?: string; + /** Optional discriminator scoping this value under its name. NULL = the default/unqualified value; getters fall back from an exact realm match to the NULL-realm row. */ + realm?: string; + updatedAt?: string; + /** Plaintext config value */ + value?: string; +} +/** Represents an update to a `PlatformInternalConfig`. Fields that are set will be updated. */ +export interface PlatformInternalConfigPatch { + /** Freeform metadata for tooling and operational notes */ + annotations?: unknown; + createdAt?: string; + /** Human-readable note about this config entry */ + description?: string; + /** Optional expiration timestamp for time-limited config entries */ + expiresAt?: string; + /** Unique identifier for this config entry */ + id?: string; + /** Key/value pairs for selecting/filtering config entries */ + labels?: unknown; + /** Key name identifying the config entry */ + name?: string; + /** Integration provider slug (e.g. mailgun, postgres). Used by the UI to group config entries by integration. No FK. */ + provider?: string; + /** Optional discriminator scoping this value under its name. NULL = the default/unqualified value; getters fall back from an exact realm match to the NULL-realm row. */ + realm?: string; + updatedAt?: string; /** Plaintext config value */ value?: string; } @@ -377,8 +771,6 @@ export interface PlatformInternalSecretFilter { labels?: JSONFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; /** Negates the expression. */ not?: PlatformInternalSecretFilter; /** Checks for any expressions in this list. */ @@ -394,20 +786,17 @@ export interface PlatformInternalSecretFilter { } export interface PlatformInternalSecretsDelInput { clientMutationId?: string; - namespaceId?: string; realm?: string; secretName?: string; } export interface PlatformInternalSecretsRemoveArrayInput { clientMutationId?: string; - namespaceId?: string; realm?: string; secretNames?: string[]; } export interface PlatformInternalSecretsRotateInput { algo?: string; clientMutationId?: string; - namespaceId?: string; realm?: string; secretName?: string; secretValue?: string; @@ -416,7 +805,6 @@ export interface PlatformInternalSecretsSetInput { algo?: string; clientMutationId?: string; secretName?: string; - secretNamespaceId?: string; secretRealm?: string; secretValue?: string; } @@ -533,6 +921,13 @@ export interface UpdateConfigInput { /** Unique identifier for this config entry */ id: string; } +export interface UpdateInternalConfigInput { + clientMutationId?: string; + /** Unique identifier for this config entry */ + id: string; + /** An object where the defined keys will be set on the `InternalConfig` being updated. */ + internalConfigPatch: InternalConfigPatch; +} export interface UpdatePlatformConfigInput { clientMutationId?: string; /** Unique identifier for this config entry */ @@ -540,6 +935,41 @@ export interface UpdatePlatformConfigInput { /** An object where the defined keys will be set on the `PlatformConfig` being updated. */ platformConfigPatch: PlatformConfigPatch; } +export interface UpdatePlatformInternalConfigInput { + clientMutationId?: string; + /** Unique identifier for this config entry */ + id: string; + /** An object where the defined keys will be set on the `PlatformInternalConfig` being updated. */ + platformInternalConfigPatch: PlatformInternalConfigPatch; +} +export interface _InternalSecretsDelInput { + clientMutationId?: string; + databaseId?: string; + realm?: string; + secretName?: string; +} +export interface _InternalSecretsRemoveArrayInput { + clientMutationId?: string; + databaseId?: string; + realm?: string; + secretNames?: string[]; +} +export interface _InternalSecretsRotateInput { + algo?: string; + clientMutationId?: string; + databaseId?: string; + realm?: string; + secretName?: string; + secretValue?: string; +} +export interface _InternalSecretsSetInput { + algo?: string; + clientMutationId?: string; + scopeDatabaseId?: string; + secretName?: string; + secretRealm?: string; + secretValue?: string; +} export interface _SecretsDelInput { clientMutationId?: string; databaseId?: string; @@ -577,6 +1007,13 @@ export interface _SecretsSetInput { export interface MetaSchema { tables: MetaTable[]; } +/** A connection to a list of `AppInternalSecret` values. */ +export interface AppInternalSecretConnection { + edges: AppInternalSecretEdge[]; + nodes: AppInternalSecret[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `Config` values. */ export interface ConfigConnection { edges: ConfigEdge[]; @@ -584,6 +1021,20 @@ export interface ConfigConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `InternalConfig` values. */ +export interface InternalConfigConnection { + edges: InternalConfigEdge[]; + nodes: InternalConfig[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `InternalSecret` values. */ +export interface InternalSecretConnection { + edges: InternalSecretEdge[]; + nodes: InternalSecret[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `PlatformConfig` values. */ export interface PlatformConfigConnection { edges: PlatformConfigEdge[]; @@ -591,6 +1042,13 @@ export interface PlatformConfigConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `PlatformInternalConfig` values. */ +export interface PlatformInternalConfigConnection { + edges: PlatformInternalConfigEdge[]; + nodes: PlatformInternalConfig[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `PlatformInternalSecret` values. */ export interface PlatformInternalSecretConnection { edges: PlatformInternalSecretEdge[]; @@ -612,6 +1070,20 @@ export interface SecretConnection { pageInfo: PageInfo; totalCount: number; } +export interface _InternalSecretsDelPayload { + clientMutationId?: string | null; +} +export interface _InternalSecretsRemoveArrayPayload { + clientMutationId?: string | null; +} +export interface _InternalSecretsRotatePayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export interface _InternalSecretsSetPayload { + clientMutationId?: string | null; + result?: boolean | null; +} export interface _SecretsDelPayload { clientMutationId?: string | null; } @@ -626,30 +1098,68 @@ export interface _SecretsSetPayload { clientMutationId?: string | null; result?: boolean | null; } +export interface AppInternalSecretsDelPayload { + clientMutationId?: string | null; +} +export interface AppInternalSecretsRemoveArrayPayload { + clientMutationId?: string | null; +} +export interface AppInternalSecretsRotatePayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export interface AppInternalSecretsSetPayload { + clientMutationId?: string | null; + result?: boolean | null; +} export interface CreateConfigPayload { clientMutationId?: string | null; /** The `Config` that was created by this mutation. */ config?: Config | null; configEdge?: ConfigEdge | null; } +export interface CreateInternalConfigPayload { + clientMutationId?: string | null; + /** The `InternalConfig` that was created by this mutation. */ + internalConfig?: InternalConfig | null; + internalConfigEdge?: InternalConfigEdge | null; +} export interface CreatePlatformConfigPayload { clientMutationId?: string | null; /** The `PlatformConfig` that was created by this mutation. */ platformConfig?: PlatformConfig | null; platformConfigEdge?: PlatformConfigEdge | null; } +export interface CreatePlatformInternalConfigPayload { + clientMutationId?: string | null; + /** The `PlatformInternalConfig` that was created by this mutation. */ + platformInternalConfig?: PlatformInternalConfig | null; + platformInternalConfigEdge?: PlatformInternalConfigEdge | null; +} export interface DeleteConfigPayload { clientMutationId?: string | null; /** The `Config` that was deleted by this mutation. */ config?: Config | null; configEdge?: ConfigEdge | null; } +export interface DeleteInternalConfigPayload { + clientMutationId?: string | null; + /** The `InternalConfig` that was deleted by this mutation. */ + internalConfig?: InternalConfig | null; + internalConfigEdge?: InternalConfigEdge | null; +} export interface DeletePlatformConfigPayload { clientMutationId?: string | null; /** The `PlatformConfig` that was deleted by this mutation. */ platformConfig?: PlatformConfig | null; platformConfigEdge?: PlatformConfigEdge | null; } +export interface DeletePlatformInternalConfigPayload { + clientMutationId?: string | null; + /** The `PlatformInternalConfig` that was deleted by this mutation. */ + platformInternalConfig?: PlatformInternalConfig | null; + platformInternalConfigEdge?: PlatformInternalConfigEdge | null; +} export interface PlatformInternalSecretsDelPayload { clientMutationId?: string | null; } @@ -679,18 +1189,13 @@ export interface PlatformSecretsSetPayload { result?: boolean | 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; + /** The logical bucket row that was queued for reconciliation. */ + bucketId: string; + bucketKey: string; + /** The reconciler job enqueued to provision this bucket. */ + jobId: string; + /** The physical bucket name already recorded, or null when reconciliation has not completed. */ + physicalName?: string | null; } export interface UpdateConfigPayload { clientMutationId?: string | null; @@ -698,12 +1203,24 @@ export interface UpdateConfigPayload { config?: Config | null; configEdge?: ConfigEdge | null; } +export interface UpdateInternalConfigPayload { + clientMutationId?: string | null; + /** The `InternalConfig` that was updated by this mutation. */ + internalConfig?: InternalConfig | null; + internalConfigEdge?: InternalConfigEdge | null; +} export interface UpdatePlatformConfigPayload { clientMutationId?: string | null; /** The `PlatformConfig` that was updated by this mutation. */ platformConfig?: PlatformConfig | null; platformConfigEdge?: PlatformConfigEdge | null; } +export interface UpdatePlatformInternalConfigPayload { + clientMutationId?: string | null; + /** The `PlatformInternalConfig` that was updated by this mutation. */ + platformInternalConfig?: PlatformInternalConfig | null; + platformInternalConfigEdge?: PlatformInternalConfigEdge | null; +} /** Information about a database table */ export interface MetaTable { constraints: MetaConstraints; @@ -731,11 +1248,11 @@ export interface MetaTable { tableName: string; uniqueConstraints: MetaUniqueConstraint[]; } -/** A `Config` edge in the connection. */ -export interface ConfigEdge { +/** A `AppInternalSecret` edge in the connection. */ +export interface AppInternalSecretEdge { cursor?: string | null; - /** The `Config` at the end of the edge. */ - node?: Config | null; + /** The `AppInternalSecret` at the end of the edge. */ + node?: AppInternalSecret | null; } /** Information about pagination in a connection. */ export interface PageInfo { @@ -748,12 +1265,36 @@ export interface PageInfo { /** When paginating backwards, the cursor to continue. */ startCursor?: string | null; } +/** A `Config` edge in the connection. */ +export interface ConfigEdge { + cursor?: string | null; + /** The `Config` at the end of the edge. */ + node?: Config | null; +} +/** A `InternalConfig` edge in the connection. */ +export interface InternalConfigEdge { + cursor?: string | null; + /** The `InternalConfig` at the end of the edge. */ + node?: InternalConfig | null; +} +/** A `InternalSecret` edge in the connection. */ +export interface InternalSecretEdge { + cursor?: string | null; + /** The `InternalSecret` at the end of the edge. */ + node?: InternalSecret | null; +} /** A `PlatformConfig` edge in the connection. */ export interface PlatformConfigEdge { cursor?: string | null; /** The `PlatformConfig` at the end of the edge. */ node?: PlatformConfig | null; } +/** A `PlatformInternalConfig` edge in the connection. */ +export interface PlatformInternalConfigEdge { + cursor?: string | null; + /** The `PlatformInternalConfig` at the end of the edge. */ + node?: PlatformInternalConfig | null; +} /** A `PlatformInternalSecret` edge in the connection. */ export interface PlatformInternalSecretEdge { cursor?: string | null; @@ -884,10 +1425,18 @@ export interface MetaSearch { } /** Storage metadata for a table */ export interface MetaStorage { + /** GraphQL type name of the plane's buckets table */ + bucketsType: string; + /** Computed download-URL field on the files type; null on the buckets side */ + downloadUrlField?: string | null; + /** GraphQL type name of the plane's files table */ + filesType: string; /** Whether this table is a storage buckets table */ isBucketsTable: boolean; /** Whether this table is a storage files table */ isFilesTable: boolean; + /** The plane's GraphQL upload surface */ + upload: MetaStorageUpload; } /** Information about a unique constraint */ export interface MetaUniqueConstraint { @@ -970,6 +1519,27 @@ export interface MetaSearchConfig { /** JSON-encoded per-adapter score weights */ weights?: string | null; } +/** The GraphQL upload surface of a storage plane, derived from the registry facts the presigned-url plugin emits from */ +export interface MetaStorageUpload { + /** Per-file input type inside the bulk input */ + bulkFileInputType: string; + /** Per-file payload type inside the bulk payload */ + bulkFilePayloadType: string; + /** Input type of the bulk upload mutation */ + bulkInputType: string; + /** Root mutation field for bulk upload */ + bulkMutation: string; + /** Payload type of the bulk upload mutation */ + bulkPayloadType: string; + /** Input type of the single upload mutation */ + inputType: string; + /** Root mutation field for single-file upload (e.g. uploadAppFile) */ + mutation: string; + /** Payload type of the single upload mutation */ + payloadType: string; + /** Whether the upload input requires ownerId (entity-keyed plane) */ + requiresOwnerId: boolean; +} /** 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. */ export interface MetaScalarEncoding { /** For 'vector': declared length, else null. */ diff --git a/sdk/constructive-react/src/config/types.ts b/sdk/constructive-react/src/config/types.ts index ac899cf39b..c7d2149050 100644 --- a/sdk/constructive-react/src/config/types.ts +++ b/sdk/constructive-react/src/config/types.ts @@ -3,9 +3,22 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ +export interface AppInternalSecret { + annotations: unknown | null; + createdAt: string | null; + description: string | null; + id: string | null; + labels: unknown | null; + name: string | null; + realm: string | null; + retiredAt: string | null; + rotatedAt: string | null; + updatedAt: string | null; +} export interface Config { annotations: unknown | null; createdAt: string | null; + createdByPrincipal: string | null; databaseId: string | null; description: string | null; expiresAt: string | null; @@ -16,11 +29,40 @@ export interface Config { provider: string | null; realm: string | null; updatedAt: string | null; + updatedByPrincipal: string | null; value: string | null; } +export interface InternalConfig { + annotations: unknown | null; + createdAt: string | null; + databaseId: string | null; + description: string | null; + expiresAt: string | null; + id: string | null; + labels: unknown | null; + name: string | null; + provider: string | null; + realm: string | null; + updatedAt: string | null; + value: string | null; +} +export interface InternalSecret { + annotations: unknown | null; + createdAt: string | null; + databaseId: string | null; + description: string | null; + id: string | null; + labels: unknown | null; + name: string | null; + realm: string | null; + retiredAt: string | null; + rotatedAt: string | null; + updatedAt: string | null; +} export interface PlatformConfig { annotations: unknown | null; createdAt: string | null; + createdByPrincipal: string | null; description: string | null; expiresAt: string | null; id: string | null; @@ -30,6 +72,20 @@ export interface PlatformConfig { provider: string | null; realm: string | null; updatedAt: string | null; + updatedByPrincipal: string | null; + value: string | null; +} +export interface PlatformInternalConfig { + annotations: unknown | null; + createdAt: string | null; + description: string | null; + expiresAt: string | null; + id: string | null; + labels: unknown | null; + name: string | null; + provider: string | null; + realm: string | null; + updatedAt: string | null; value: string | null; } export interface PlatformInternalSecret { @@ -39,7 +95,6 @@ export interface PlatformInternalSecret { id: string | null; labels: unknown | null; name: string | null; - namespaceId: string | null; realm: string | null; retiredAt: string | null; rotatedAt: string | null; diff --git a/sdk/constructive-react/src/index.ts b/sdk/constructive-react/src/index.ts index f64a72cd39..791f57df63 100644 --- a/sdk/constructive-react/src/index.ts +++ b/sdk/constructive-react/src/index.ts @@ -15,4 +15,6 @@ export * as config from './config'; export * as infra from './infra'; export * as modules from './modules'; export * as objects from './objects'; +export * as remote from './remote'; +export * as storage from './storage'; export * as usage from './usage'; diff --git a/sdk/constructive-react/src/infra/README.md b/sdk/constructive-react/src/infra/README.md index 5b34950a42..c6b2e7fcf2 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 a24d334692..4b9c33fe8a 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,14 +86,39 @@ 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 | -| `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. | +| `usePlatformInfraSetManyAndCommitMutation` | Mutation | platformInfraSetManyAndCommit | +| `useProvisionBucketMutation` | Mutation | Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. | ## 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 @@ -115,20 +145,20 @@ create({ active: '', commitId: '', definition: '', descript ```typescript // List all namespaces const { data, isLoading } = useNamespacesQuery({ - selection: { fields: { annotations: true, createdAt: true, databaseId: true, description: true, id: true, isActive: true, isManaged: true, labels: true, lastError: true, name: true, namespaceName: true, status: true, updatedAt: true } }, + selection: { fields: { annotations: true, clusterId: true, createdAt: true, databaseId: true, description: true, id: true, isActive: true, isManaged: true, labels: true, lastError: true, name: true, namespaceName: true, status: true, updatedAt: true } }, }); // Get one namespace const { data: item } = useNamespaceQuery({ id: '', - selection: { fields: { annotations: true, createdAt: true, databaseId: true, description: true, id: true, isActive: true, isManaged: true, labels: true, lastError: true, name: true, namespaceName: true, status: true, updatedAt: true } }, + selection: { fields: { annotations: true, clusterId: true, createdAt: true, databaseId: true, description: true, id: true, isActive: true, isManaged: true, labels: true, lastError: true, name: true, namespaceName: true, status: true, updatedAt: true } }, }); // Create a namespace const { mutate: create } = useCreateNamespaceMutation({ selection: { fields: { id: true } }, }); -create({ annotations: '', databaseId: '', description: '', isActive: '', isManaged: '', labels: '', lastError: '', name: '', namespaceName: '', status: '' }); +create({ annotations: '', clusterId: '', databaseId: '', description: '', isActive: '', isManaged: '', labels: '', lastError: '', name: '', namespaceName: '', status: '' }); ``` ### NamespaceEvent @@ -256,20 +286,20 @@ create({ hash: '', name: '', scopeId: '' }); ```typescript // List all platformNamespaces const { data, isLoading } = usePlatformNamespacesQuery({ - selection: { fields: { annotations: true, createdAt: true, description: true, id: true, isActive: true, isManaged: true, labels: true, lastError: true, name: true, namespaceName: true, status: true, updatedAt: true } }, + selection: { fields: { annotations: true, clusterId: true, createdAt: true, description: true, id: true, isActive: true, isManaged: true, labels: true, lastError: true, name: true, namespaceName: true, status: true, updatedAt: true } }, }); // Get one platformNamespace const { data: item } = usePlatformNamespaceQuery({ id: '', - selection: { fields: { annotations: true, createdAt: true, description: true, id: true, isActive: true, isManaged: true, labels: true, lastError: true, name: true, namespaceName: true, status: true, updatedAt: true } }, + selection: { fields: { annotations: true, clusterId: true, createdAt: true, description: true, id: true, isActive: true, isManaged: true, labels: true, lastError: true, name: true, namespaceName: true, status: true, updatedAt: true } }, }); // Create a platformNamespace const { mutate: create } = useCreatePlatformNamespaceMutation({ selection: { fields: { id: true } }, }); -create({ annotations: '', description: '', isActive: '', isManaged: '', labels: '', lastError: '', name: '', namespaceName: '', status: '' }); +create({ annotations: '', clusterId: '', description: '', isActive: '', isManaged: '', labels: '', lastError: '', name: '', namespaceName: '', status: '' }); ``` ### PlatformNamespaceEvent @@ -317,6 +347,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,12 +380,24 @@ 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. -Reads the bucket config via RLS, then creates and configures -the S3 bucket with the appropriate privacy policies, CORS rules, -and lifecycle settings. +Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. - **Type:** mutation - **Arguments:** 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/infra/hooks/mutations/useDeleteContentPresetMutation.ts b/sdk/constructive-react/src/infra/hooks/mutations/useDeleteContentPresetMutation.ts new file mode 100644 index 0000000000..3ef5345b7b --- /dev/null +++ b/sdk/constructive-react/src/infra/hooks/mutations/useDeleteContentPresetMutation.ts @@ -0,0 +1,98 @@ +/** + * 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 } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { ContentPresetSelect, ContentPresetWithRelations } from '../../orm/input-types'; +/** + * Seed-content preset catalog (limit defaults, trust ladders, ...) — merkle-versioned head over the infra store + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteContentPresetMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteContentPresetMutation( + params: { + selection: { + fields: S & ContentPresetSelect; + } & HookStrictSelect, ContentPresetSelect>; + } & Omit< + UseMutationOptions< + { + deleteContentPreset: { + contentPreset: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteContentPreset: { + contentPreset: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteContentPresetMutation( + 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: contentPresetMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .contentPreset.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: contentPresetKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + 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/infra/hooks/mutations/useUpdateContentPresetMutation.ts b/sdk/constructive-react/src/infra/hooks/mutations/useUpdateContentPresetMutation.ts new file mode 100644 index 0000000000..85a7fce776 --- /dev/null +++ b/sdk/constructive-react/src/infra/hooks/mutations/useUpdateContentPresetMutation.ts @@ -0,0 +1,116 @@ +/** + * 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, + ContentPresetPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + ContentPresetSelect, + ContentPresetWithRelations, + ContentPresetPatch, +} from '../../orm/input-types'; +/** + * Seed-content preset catalog (limit defaults, trust ladders, ...) — merkle-versioned head over the infra store + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateContentPresetMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', contentPresetPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateContentPresetMutation( + params: { + selection: { + fields: S & ContentPresetSelect; + } & HookStrictSelect, ContentPresetSelect>; + } & Omit< + UseMutationOptions< + { + updateContentPreset: { + contentPreset: InferSelectResult; + }; + }, + Error, + { + id: string; + contentPresetPatch: ContentPresetPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateContentPreset: { + contentPreset: InferSelectResult; + }; + }, + Error, + { + id: string; + contentPresetPatch: ContentPresetPatch; + } +>; +export function useUpdateContentPresetMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + contentPresetPatch: ContentPresetPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: contentPresetMutationKeys.all, + mutationFn: ({ + id, + contentPresetPatch, + }: { + id: string; + contentPresetPatch: ContentPresetPatch; + }) => + getClient() + .contentPreset.update({ + where: { + id, + }, + data: contentPresetPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: contentPresetKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + 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 34848edfdb..322c4f138f 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. @@ -82,6 +122,7 @@ CRUD operations for Namespace records. | Field | Type | Editable | |-------|------|----------| | `annotations` | JSON | Yes | +| `clusterId` | UUID | Yes | | `createdAt` | Datetime | No | | `databaseId` | UUID | Yes | | `description` | String | Yes | @@ -99,13 +140,13 @@ CRUD operations for Namespace records. ```typescript // List all namespace records -const items = await db.namespace.findMany({ select: { annotations: true, createdAt: true, databaseId: true, description: true, id: true, isActive: true, isManaged: true, labels: true, lastError: true, name: true, namespaceName: true, status: true, updatedAt: true } }).execute(); +const items = await db.namespace.findMany({ select: { annotations: true, clusterId: true, createdAt: true, databaseId: true, description: true, id: true, isActive: true, isManaged: true, labels: true, lastError: true, name: true, namespaceName: true, status: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.namespace.findOne({ id: '', select: { annotations: true, createdAt: true, databaseId: true, description: true, id: true, isActive: true, isManaged: true, labels: true, lastError: true, name: true, namespaceName: true, status: true, updatedAt: true } }).execute(); +const item = await db.namespace.findOne({ id: '', select: { annotations: true, clusterId: true, createdAt: true, databaseId: true, description: true, id: true, isActive: true, isManaged: true, labels: true, lastError: true, name: true, namespaceName: true, status: true, updatedAt: true } }).execute(); // Create -const created = await db.namespace.create({ data: { annotations: '', databaseId: '', description: '', isActive: '', isManaged: '', labels: '', lastError: '', name: '', namespaceName: '', status: '' }, select: { id: true } }).execute(); +const created = await db.namespace.create({ data: { annotations: '', clusterId: '', databaseId: '', description: '', isActive: '', isManaged: '', labels: '', lastError: '', name: '', namespaceName: '', status: '' }, select: { id: true } }).execute(); // Update const updated = await db.namespace.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); @@ -326,6 +367,7 @@ CRUD operations for PlatformNamespace records. | Field | Type | Editable | |-------|------|----------| | `annotations` | JSON | Yes | +| `clusterId` | UUID | Yes | | `createdAt` | Datetime | No | | `description` | String | Yes | | `id` | UUID | No | @@ -342,13 +384,13 @@ CRUD operations for PlatformNamespace records. ```typescript // List all platformNamespace records -const items = await db.platformNamespace.findMany({ select: { annotations: true, createdAt: true, description: true, id: true, isActive: true, isManaged: true, labels: true, lastError: true, name: true, namespaceName: true, status: true, updatedAt: true } }).execute(); +const items = await db.platformNamespace.findMany({ select: { annotations: true, clusterId: true, createdAt: true, description: true, id: true, isActive: true, isManaged: true, labels: true, lastError: true, name: true, namespaceName: true, status: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.platformNamespace.findOne({ id: '', select: { annotations: true, createdAt: true, description: true, id: true, isActive: true, isManaged: true, labels: true, lastError: true, name: true, namespaceName: true, status: true, updatedAt: true } }).execute(); +const item = await db.platformNamespace.findOne({ id: '', select: { annotations: true, clusterId: true, createdAt: true, description: true, id: true, isActive: true, isManaged: true, labels: true, lastError: true, name: true, namespaceName: true, status: true, updatedAt: true } }).execute(); // Create -const created = await db.platformNamespace.create({ data: { annotations: '', description: '', isActive: '', isManaged: '', labels: '', lastError: '', name: '', namespaceName: '', status: '' }, select: { id: true } }).execute(); +const created = await db.platformNamespace.create({ data: { annotations: '', clusterId: '', description: '', isActive: '', isManaged: '', labels: '', lastError: '', name: '', namespaceName: '', status: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformNamespace.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); @@ -424,6 +466,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,12 +511,28 @@ 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. -Reads the bucket config via RLS, then creates and configures -the S3 bucket with the appropriate privacy policies, CORS rules, -and lifecycle settings. +Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. - **Type:** mutation - **Arguments:** 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..d3a13bcb63 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; @@ -260,6 +285,8 @@ export interface DbPreset { export interface Namespace { /** Freeform metadata for tooling and operational notes */ annotations?: Record | null; + /** Cluster this namespace is projected onto; NULL = the cluster the reconciler runs in */ + clusterId?: string | null; createdAt?: string | null; /** Database that owns this resource (database-scoped isolation) */ databaseId?: string | null; @@ -284,7 +311,7 @@ export interface Namespace { } /** Namespace lifecycle events — audit log of creation, activation, deactivation, label changes */ export interface NamespaceEvent { - /** User who triggered this event (NULL for system/automated) */ + /** User who triggered this event; NULL only when no human actor was proven */ actorId?: string | null; /** Event timestamp (partition key) */ createdAt?: string | null; @@ -371,6 +398,8 @@ export interface PlatformInfraStore { export interface PlatformNamespace { /** Freeform metadata for tooling and operational notes */ annotations?: Record | null; + /** Cluster this namespace is projected onto; NULL = the cluster the reconciler runs in */ + clusterId?: string | null; createdAt?: string | null; /** Optional human-readable description of this namespace */ description?: string | null; @@ -393,7 +422,7 @@ export interface PlatformNamespace { } /** Namespace lifecycle events — audit log of creation, activation, deactivation, label changes */ export interface PlatformNamespaceEvent { - /** User who triggered this event (NULL for system/automated) */ + /** User who triggered this event; NULL only when no human actor was proven */ actorId?: string | null; /** Event timestamp (partition key) */ createdAt?: string | null; @@ -421,6 +450,7 @@ export interface PageInfo { endCursor?: string | null; } // ============ Entity Relation Types ============ +export interface ContentPresetRelations {} export interface DbPresetRelations {} export interface NamespaceRelations {} export interface NamespaceEventRelations {} @@ -432,6 +462,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 +476,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; @@ -460,6 +504,7 @@ export type DbPresetSelect = { }; export type NamespaceSelect = { annotations?: boolean; + clusterId?: boolean; createdAt?: boolean; databaseId?: boolean; description?: boolean; @@ -522,6 +567,7 @@ export type PlatformInfraStoreSelect = { }; export type PlatformNamespaceSelect = { annotations?: boolean; + clusterId?: boolean; createdAt?: boolean; description?: boolean; id?: boolean; @@ -544,6 +590,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; @@ -579,6 +655,8 @@ export interface NamespaceFilter { and?: NamespaceFilter[]; /** Filter by the object’s `annotations` field. */ annotations?: JSONFilter; + /** Filter by the object’s `clusterId` field. */ + clusterId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `databaseId` field. */ @@ -726,6 +804,8 @@ export interface PlatformNamespaceFilter { and?: PlatformNamespaceFilter[]; /** Filter by the object’s `annotations` field. */ annotations?: JSONFilter; + /** Filter by the object’s `clusterId` field. */ + clusterId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `description` field. */ @@ -776,6 +856,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' @@ -805,6 +911,8 @@ export type DbPresetOrderBy = export type NamespaceOrderBy = | 'ANNOTATIONS_ASC' | 'ANNOTATIONS_DESC' + | 'CLUSTER_ID_ASC' + | 'CLUSTER_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'DATABASE_ID_ASC' @@ -929,6 +1037,8 @@ export type PlatformInfraStoreOrderBy = export type PlatformNamespaceOrderBy = | 'ANNOTATIONS_ASC' | 'ANNOTATIONS_DESC' + | 'CLUSTER_ID_ASC' + | 'CLUSTER_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'DESCRIPTION_ASC' @@ -973,6 +1083,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: { @@ -1009,6 +1151,7 @@ export interface CreateNamespaceInput { clientMutationId?: string; namespace: { annotations?: Record; + clusterId?: string; databaseId: string; description?: string; isActive?: boolean; @@ -1022,6 +1165,7 @@ export interface CreateNamespaceInput { } export interface NamespacePatch { annotations?: Record | null; + clusterId?: string | null; databaseId?: string | null; description?: string | null; isActive?: boolean | null; @@ -1195,6 +1339,7 @@ export interface CreatePlatformNamespaceInput { clientMutationId?: string; platformNamespace: { annotations?: Record; + clusterId?: string; description?: string; isActive?: boolean; isManaged?: boolean; @@ -1207,6 +1352,7 @@ export interface CreatePlatformNamespaceInput { } export interface PlatformNamespacePatch { annotations?: Record | null; + clusterId?: string | null; description?: string | null; isActive?: boolean | null; isManaged?: boolean | null; @@ -1268,6 +1414,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 +1441,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 +1458,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 */ @@ -1313,6 +1512,8 @@ export interface DbPresetInput { export interface NamespaceInput { /** Freeform metadata for tooling and operational notes */ annotations?: Record; + /** Cluster this namespace is projected onto; NULL = the cluster the reconciler runs in */ + clusterId?: string; createdAt?: string; /** Database that owns this resource (database-scoped isolation) */ databaseId: string; @@ -1337,7 +1538,7 @@ export interface NamespaceInput { } /** An input for mutations affecting `NamespaceEvent` */ export interface NamespaceEventInput { - /** User who triggered this event (NULL for system/automated) */ + /** User who triggered this event; NULL only when no human actor was proven */ actorId?: string; /** Event timestamp (partition key) */ createdAt?: string; @@ -1420,6 +1621,8 @@ export interface PlatformInfraStoreInput { export interface PlatformNamespaceInput { /** Freeform metadata for tooling and operational notes */ annotations?: Record; + /** Cluster this namespace is projected onto; NULL = the cluster the reconciler runs in */ + clusterId?: string; createdAt?: string; /** Optional human-readable description of this namespace */ description?: string; @@ -1442,7 +1645,7 @@ export interface PlatformNamespaceInput { } /** An input for mutations affecting `PlatformNamespaceEvent` */ export interface PlatformNamespaceEventInput { - /** User who triggered this event (NULL for system/automated) */ + /** User who triggered this event; NULL only when no human actor was proven */ actorId?: string; /** Event timestamp (partition key) */ createdAt?: string; @@ -1472,6 +1675,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,27 +1705,79 @@ 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; - /** 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; + /** The logical bucket row that was queued for reconciliation. */ + bucketId: string; + bucketKey: string; + /** The reconciler job enqueued to provision this bucket. */ + jobId: string; + /** The physical bucket name already recorded, or null when reconciliation has not completed. */ + physicalName?: string | null; } export type ProvisionBucketPayloadSelect = { - accessType?: boolean; - bucketName?: boolean; - endpoint?: boolean; - error?: boolean; - provider?: boolean; - success?: boolean; + bucketId?: boolean; + bucketKey?: boolean; + jobId?: boolean; + physicalName?: 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; @@ -1907,6 +2184,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 +2244,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/infra/orm/models/contentPreset.ts b/sdk/constructive-react/src/infra/orm/models/contentPreset.ts new file mode 100644 index 0000000000..20242ccc78 --- /dev/null +++ b/sdk/constructive-react/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-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..96dd8ca742 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,15 +36,25 @@ 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. -Reads the bucket config via RLS, then creates and configures -the S3 bucket with the appropriate privacy policies, CORS rules, -and lifecycle settings. + * Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. */ export interface ProvisionBucketVariables { input: ProvisionBucketInput; @@ -103,6 +122,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 +212,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..ec9f986429 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' @@ -85,6 +113,8 @@ export type NamespaceEventOrderBy = export type NamespaceOrderBy = | 'ANNOTATIONS_ASC' | 'ANNOTATIONS_DESC' + | 'CLUSTER_ID_ASC' + | 'CLUSTER_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'DATABASE_ID_ASC' @@ -205,6 +235,8 @@ export type PlatformNamespaceEventOrderBy = export type PlatformNamespaceOrderBy = | 'ANNOTATIONS_ASC' | 'ANNOTATIONS_DESC' + | 'CLUSTER_ID_ASC' + | 'CLUSTER_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'DESCRIPTION_ASC' @@ -230,6 +262,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 +474,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 */ @@ -436,7 +559,7 @@ export interface NamespaceEventFilter { } /** An input for mutations affecting `NamespaceEvent` */ export interface NamespaceEventInput { - /** User who triggered this event (NULL for system/automated) */ + /** User who triggered this event; NULL only when no human actor was proven */ actorId?: string; /** Event timestamp (partition key) */ createdAt?: string; @@ -455,7 +578,7 @@ export interface NamespaceEventInput { } /** Represents an update to a `NamespaceEvent`. Fields that are set will be updated. */ export interface NamespaceEventPatch { - /** User who triggered this event (NULL for system/automated) */ + /** User who triggered this event; NULL only when no human actor was proven */ actorId?: string; /** Event timestamp (partition key) */ createdAt?: string; @@ -478,6 +601,8 @@ export interface NamespaceFilter { and?: NamespaceFilter[]; /** Filter by the object’s `annotations` field. */ annotations?: JSONFilter; + /** Filter by the object’s `clusterId` field. */ + clusterId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `databaseId` field. */ @@ -511,6 +636,8 @@ export interface NamespaceFilter { export interface NamespaceInput { /** Freeform metadata for tooling and operational notes */ annotations?: unknown; + /** Cluster this namespace is projected onto; NULL = the cluster the reconciler runs in */ + clusterId?: string; createdAt?: string; /** Database that owns this resource (database-scoped isolation) */ databaseId: string; @@ -537,6 +664,8 @@ export interface NamespaceInput { export interface NamespacePatch { /** Freeform metadata for tooling and operational notes */ annotations?: unknown; + /** Cluster this namespace is projected onto; NULL = the cluster the reconciler runs in */ + clusterId?: string; createdAt?: string; /** Database that owns this resource (database-scoped isolation) */ databaseId?: string; @@ -642,6 +771,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 +876,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 +894,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. */ @@ -815,7 +972,7 @@ export interface PlatformNamespaceEventFilter { } /** An input for mutations affecting `PlatformNamespaceEvent` */ export interface PlatformNamespaceEventInput { - /** User who triggered this event (NULL for system/automated) */ + /** User who triggered this event; NULL only when no human actor was proven */ actorId?: string; /** Event timestamp (partition key) */ createdAt?: string; @@ -832,7 +989,7 @@ export interface PlatformNamespaceEventInput { } /** Represents an update to a `PlatformNamespaceEvent`. Fields that are set will be updated. */ export interface PlatformNamespaceEventPatch { - /** User who triggered this event (NULL for system/automated) */ + /** User who triggered this event; NULL only when no human actor was proven */ actorId?: string; /** Event timestamp (partition key) */ createdAt?: string; @@ -853,6 +1010,8 @@ export interface PlatformNamespaceFilter { and?: PlatformNamespaceFilter[]; /** Filter by the object’s `annotations` field. */ annotations?: JSONFilter; + /** Filter by the object’s `clusterId` field. */ + clusterId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `description` field. */ @@ -884,6 +1043,8 @@ export interface PlatformNamespaceFilter { export interface PlatformNamespaceInput { /** Freeform metadata for tooling and operational notes */ annotations?: unknown; + /** Cluster this namespace is projected onto; NULL = the cluster the reconciler runs in */ + clusterId?: string; createdAt?: string; /** Optional human-readable description of this namespace */ description?: string; @@ -908,6 +1069,8 @@ export interface PlatformNamespaceInput { export interface PlatformNamespacePatch { /** Freeform metadata for tooling and operational notes */ annotations?: unknown; + /** Cluster this namespace is projected onto; NULL = the cluster the reconciler runs in */ + clusterId?: string; createdAt?: string; /** Optional human-readable description of this namespace */ description?: string; @@ -937,6 +1100,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 +1182,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 +1259,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 +1319,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,23 +1386,38 @@ 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; - /** 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; + /** The logical bucket row that was queued for reconciliation. */ + bucketId: string; + bucketKey: string; + /** The reconciler job enqueued to provision this bucket. */ + jobId: string; + /** The physical bucket name already recorded, or null when reconciliation has not completed. */ + physicalName?: 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; @@ -1296,11 +1500,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 +1517,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; @@ -1479,10 +1689,18 @@ export interface MetaSearch { } /** Storage metadata for a table */ export interface MetaStorage { + /** GraphQL type name of the plane's buckets table */ + bucketsType: string; + /** Computed download-URL field on the files type; null on the buckets side */ + downloadUrlField?: string | null; + /** GraphQL type name of the plane's files table */ + filesType: string; /** Whether this table is a storage buckets table */ isBucketsTable: boolean; /** Whether this table is a storage files table */ isFilesTable: boolean; + /** The plane's GraphQL upload surface */ + upload: MetaStorageUpload; } /** Information about a unique constraint */ export interface MetaUniqueConstraint { @@ -1565,6 +1783,27 @@ export interface MetaSearchConfig { /** JSON-encoded per-adapter score weights */ weights?: string | null; } +/** The GraphQL upload surface of a storage plane, derived from the registry facts the presigned-url plugin emits from */ +export interface MetaStorageUpload { + /** Per-file input type inside the bulk input */ + bulkFileInputType: string; + /** Per-file payload type inside the bulk payload */ + bulkFilePayloadType: string; + /** Input type of the bulk upload mutation */ + bulkInputType: string; + /** Root mutation field for bulk upload */ + bulkMutation: string; + /** Payload type of the bulk upload mutation */ + bulkPayloadType: string; + /** Input type of the single upload mutation */ + inputType: string; + /** Root mutation field for single-file upload (e.g. uploadAppFile) */ + mutation: string; + /** Payload type of the single upload mutation */ + payloadType: string; + /** Whether the upload input requires ownerId (entity-keyed plane) */ + requiresOwnerId: boolean; +} /** 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. */ export interface MetaScalarEncoding { /** For 'vector': declared length, else null. */ diff --git a/sdk/constructive-react/src/infra/types.ts b/sdk/constructive-react/src/infra/types.ts index 9663f2af5d..d614051ed0 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; @@ -18,6 +31,7 @@ export interface DbPreset { } export interface Namespace { annotations: unknown | null; + clusterId: string | null; createdAt: string | null; databaseId: string | null; description: string | null; @@ -80,6 +94,7 @@ export interface PlatformInfraStore { } export interface PlatformNamespace { annotations: unknown | null; + clusterId: string | null; createdAt: string | null; description: string | null; id: string | null; diff --git a/sdk/constructive-react/src/modules/README.md b/sdk/constructive-react/src/modules/README.md index 9bdc607616..5fc6a79750 100644 --- a/sdk/constructive-react/src/modules/README.md +++ b/sdk/constructive-react/src/modules/README.md @@ -8,7 +8,7 @@ ## Overview -- **Tables:** 83 +- **Tables:** 88 - **Custom queries:** 0 - **Custom mutations:** 3 diff --git a/sdk/constructive-react/src/modules/hooks/README.md b/sdk/constructive-react/src/modules/hooks/README.md index 36d8d6fd2b..50ac7a943c 100644 --- a/sdk/constructive-react/src/modules/hooks/README.md +++ b/sdk/constructive-react/src/modules/hooks/README.md @@ -82,16 +82,16 @@ function App() { | `useCreateCatalogModuleMutation` | Mutation | Create a catalogModule | | `useUpdateCatalogModuleMutation` | Mutation | Update a catalogModule | | `useDeleteCatalogModuleMutation` | Mutation | Delete a catalogModule | +| `useClusterModulesQuery` | Query | List all clusterModules | +| `useClusterModuleQuery` | Query | Get one clusterModule | +| `useCreateClusterModuleMutation` | Mutation | Create a clusterModule | +| `useUpdateClusterModuleMutation` | Mutation | Update a clusterModule | +| `useDeleteClusterModuleMutation` | Mutation | Delete a clusterModule | | `useComputeLogModulesQuery` | Query | List all computeLogModules | | `useComputeLogModuleQuery` | Query | Get one computeLogModule | | `useCreateComputeLogModuleMutation` | Mutation | Create a computeLogModule | | `useUpdateComputeLogModuleMutation` | Mutation | Update a computeLogModule | | `useDeleteComputeLogModuleMutation` | Mutation | Delete a computeLogModule | -| `useConfigSecretsUserModulesQuery` | Query | List all configSecretsUserModules | -| `useConfigSecretsUserModuleQuery` | Query | Get one configSecretsUserModule | -| `useCreateConfigSecretsUserModuleMutation` | Mutation | Create a configSecretsUserModule | -| `useUpdateConfigSecretsUserModuleMutation` | Mutation | Update a configSecretsUserModule | -| `useDeleteConfigSecretsUserModuleMutation` | Mutation | Delete a configSecretsUserModule | | `useConnectedAccountsModulesQuery` | Query | List all connectedAccountsModules | | `useConnectedAccountsModuleQuery` | Query | Get one connectedAccountsModule | | `useCreateConnectedAccountsModuleMutation` | Mutation | Create a connectedAccountsModule | @@ -257,11 +257,6 @@ function App() { | `useCreateHierarchyModuleMutation` | Mutation | Create a hierarchyModule | | `useUpdateHierarchyModuleMutation` | Mutation | Update a hierarchyModule | | `useDeleteHierarchyModuleMutation` | Mutation | Delete a hierarchyModule | -| `useHttpRouteModulesQuery` | Query | List all httpRouteModules | -| `useHttpRouteModuleQuery` | Query | Get one httpRouteModule | -| `useCreateHttpRouteModuleMutation` | Mutation | Create a httpRouteModule | -| `useUpdateHttpRouteModuleMutation` | Mutation | Update a httpRouteModule | -| `useDeleteHttpRouteModuleMutation` | Mutation | Delete a httpRouteModule | | `useI18nModulesQuery` | Query | List all i18nModules | | `useI18NModuleQuery` | Query | Get one i18NModule | | `useCreateI18NModuleMutation` | Mutation | Create a i18NModule | @@ -312,6 +307,11 @@ function App() { scope=app → per-database flat, in-app admin manages scope=platform → platform-wide, platform admin manages (generate:constructive) scope=database → per-database infra, carries database_id | +| `useImageModulesQuery` | Query | List all imageModules | +| `useImageModuleQuery` | Query | Get one imageModule | +| `useCreateImageModuleMutation` | Mutation | Create a imageModule | +| `useUpdateImageModuleMutation` | Mutation | Update a imageModule | +| `useDeleteImageModuleMutation` | Mutation | Delete a imageModule | | `useInferenceLogModulesQuery` | Query | List all inferenceLogModules | | `useInferenceLogModuleQuery` | Query | Get one inferenceLogModule | | `useCreateInferenceLogModuleMutation` | Mutation | Create a inferenceLogModule | @@ -352,6 +352,11 @@ function App() { Integration providers act as a catalog of external services (e.g. Mailgun, Postgres) and list the canonical secret/config names required to use them. Other modules (function_module, resource_module) match the provider slug as a string. | +| `useInternalConfigModulesQuery` | Query | Scope-aware plaintext internal config store. No namespace_module dependency and no K8s synchronization: values are read from the database at invocation time. Configuration that must be projected into a Kubernetes ConfigMap belongs in infra_config_module. | +| `useInternalConfigModuleQuery` | Query | Scope-aware plaintext internal config store. No namespace_module dependency and no K8s synchronization: values are read from the database at invocation time. Configuration that must be projected into a Kubernetes ConfigMap belongs in infra_config_module. | +| `useCreateInternalConfigModuleMutation` | Mutation | Scope-aware plaintext internal config store. No namespace_module dependency and no K8s synchronization: values are read from the database at invocation time. Configuration that must be projected into a Kubernetes ConfigMap belongs in infra_config_module. | +| `useUpdateInternalConfigModuleMutation` | Mutation | Scope-aware plaintext internal config store. No namespace_module dependency and no K8s synchronization: values are read from the database at invocation time. Configuration that must be projected into a Kubernetes ConfigMap belongs in infra_config_module. | +| `useDeleteInternalConfigModuleMutation` | Mutation | Scope-aware plaintext internal config store. No namespace_module dependency and no K8s synchronization: values are read from the database at invocation time. Configuration that must be projected into a Kubernetes ConfigMap belongs in infra_config_module. | | `useInternalSecretsModulesQuery` | Query | App-scoped PGP-encrypted internal secrets store. No namespace_module dependency and no K8s synchronization. Used by identity_providers_module for OAuth2 client_secret storage. | | `useInternalSecretsModuleQuery` | Query | App-scoped PGP-encrypted internal secrets store. No namespace_module dependency and no K8s synchronization. Used by identity_providers_module for OAuth2 client_secret storage. | | `useCreateInternalSecretsModuleMutation` | Mutation | App-scoped PGP-encrypted internal secrets store. No namespace_module dependency and no K8s synchronization. Used by identity_providers_module for OAuth2 client_secret storage. | @@ -362,11 +367,21 @@ function App() { | `useCreateInvitesModuleMutation` | Mutation | Create a invitesModule | | `useUpdateInvitesModuleMutation` | Mutation | Update a invitesModule | | `useDeleteInvitesModuleMutation` | Mutation | Delete a invitesModule | +| `useK8sAdmissionModulesQuery` | Query | Provisions the platform-managed Kubernetes admission catalogs: a kinds table and a spec-rules table, Merkle-versioned through the referenced merkle_store_module, whose rows the generated admission gate on resources/resource_definitions reads. Writes are platform-admin and human-only; every scope reads the one catalog. | +| `useK8sAdmissionModuleQuery` | Query | Provisions the platform-managed Kubernetes admission catalogs: a kinds table and a spec-rules table, Merkle-versioned through the referenced merkle_store_module, whose rows the generated admission gate on resources/resource_definitions reads. Writes are platform-admin and human-only; every scope reads the one catalog. | +| `useCreateK8sAdmissionModuleMutation` | Mutation | Provisions the platform-managed Kubernetes admission catalogs: a kinds table and a spec-rules table, Merkle-versioned through the referenced merkle_store_module, whose rows the generated admission gate on resources/resource_definitions reads. Writes are platform-admin and human-only; every scope reads the one catalog. | +| `useUpdateK8sAdmissionModuleMutation` | Mutation | Provisions the platform-managed Kubernetes admission catalogs: a kinds table and a spec-rules table, Merkle-versioned through the referenced merkle_store_module, whose rows the generated admission gate on resources/resource_definitions reads. Writes are platform-admin and human-only; every scope reads the one catalog. | +| `useDeleteK8sAdmissionModuleMutation` | Mutation | Provisions the platform-managed Kubernetes admission catalogs: a kinds table and a spec-rules table, Merkle-versioned through the referenced merkle_store_module, whose rows the generated admission gate on resources/resource_definitions reads. Writes are platform-admin and human-only; every scope reads the one catalog. | | `useLimitsModulesQuery` | Query | List all limitsModules | | `useLimitsModuleQuery` | Query | Get one limitsModule | | `useCreateLimitsModuleMutation` | Mutation | Create a limitsModule | | `useUpdateLimitsModuleMutation` | Mutation | Update a limitsModule | | `useDeleteLimitsModuleMutation` | Mutation | Delete a limitsModule | +| `useMachineModulesQuery` | Query | List all machineModules | +| `useMachineModuleQuery` | Query | Get one machineModule | +| `useCreateMachineModuleMutation` | Mutation | Create a machineModule | +| `useUpdateMachineModuleMutation` | Mutation | Update a machineModule | +| `useDeleteMachineModuleMutation` | Mutation | Delete a machineModule | | `useMembershipTypesModulesQuery` | Query | List all membershipTypesModules | | `useMembershipTypesModuleQuery` | Query | Get one membershipTypesModule | | `useCreateMembershipTypesModuleMutation` | Mutation | Create a membershipTypesModule | @@ -462,6 +477,11 @@ function App() { | `useCreateRealtimeModuleMutation` | Mutation | Create a realtimeModule | | `useUpdateRealtimeModuleMutation` | Mutation | Update a realtimeModule | | `useDeleteRealtimeModuleMutation` | Mutation | Delete a realtimeModule | +| `useRefusalLogModulesQuery` | Query | List all refusalLogModules | +| `useRefusalLogModuleQuery` | Query | Get one refusalLogModule | +| `useCreateRefusalLogModuleMutation` | Mutation | Create a refusalLogModule | +| `useUpdateRefusalLogModuleMutation` | Mutation | Update a refusalLogModule | +| `useDeleteRefusalLogModuleMutation` | Mutation | Delete a refusalLogModule | | `useRelationProvisionsQuery` | Query | Provisions relational structure between tables. Supports four relation types: - RelationBelongsTo: adds a FK field on the source table referencing the target table (child perspective: "tasks belongs to projects" -> tasks.project_id). - RelationHasMany: adds a FK field on the target table referencing the source table (parent perspective: "projects has many tasks" -> tasks.project_id). Inverse of BelongsTo. @@ -502,6 +522,11 @@ function App() { This is a one-and-done structural provisioner. To layer additional security onto junction tables after creation, use secure_table_provision directly. All operations are graceful: existing fields, FK constraints, and unique constraints are reused if found. The trigger never injects values the caller did not provide. All security config is forwarded to secure_table_provision as-is. | +| `useRepositoryModulesQuery` | Query | List all repositoryModules | +| `useRepositoryModuleQuery` | Query | Get one repositoryModule | +| `useCreateRepositoryModuleMutation` | Mutation | Create a repositoryModule | +| `useUpdateRepositoryModuleMutation` | Mutation | Update a repositoryModule | +| `useDeleteRepositoryModuleMutation` | Mutation | Delete a repositoryModule | | `useResourceModulesQuery` | Query | List all resourceModules | | `useResourceModuleQuery` | Query | Get one resourceModule | | `useCreateResourceModuleMutation` | Mutation | Create a resourceModule | @@ -522,11 +547,11 @@ function App() { | `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. | -| `useUpdateSecureTableProvisionMutation` | 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. | -| `useDeleteSecureTableProvisionMutation` | 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. | +| `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. The target table is addressed by table_id, by table_name, or symbolically by a module reference in module. A row that lists a concern in owns[] replaces that concern on the target table instead of composing with what is already there. | +| `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. The target table is addressed by table_id, by table_name, or symbolically by a module reference in module. A row that lists a concern in owns[] replaces that concern on the target table instead of composing with what is already there. | +| `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. The target table is addressed by table_id, by table_name, or symbolically by a module reference in module. A row that lists a concern in owns[] replaces that concern on the target table instead of composing with what is already there. | +| `useUpdateSecureTableProvisionMutation` | 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. The target table is addressed by table_id, by table_name, or symbolically by a module reference in module. A row that lists a concern in owns[] replaces that concern on the target table instead of composing with what is already there. | +| `useDeleteSecureTableProvisionMutation` | 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. The target table is addressed by table_id, by table_name, or symbolically by a module reference in module. A row that lists a concern in owns[] replaces that concern on the target table instead of composing with what is already there. | | `useSessionSecretsModulesQuery` | Query | Config row for the session_secrets_module, which provisions a DB-private, session-scoped ephemeral key-value store for challenges, nonces, and one-time tokens that must never be readable by end users. | | `useSessionSecretsModuleQuery` | Query | Config row for the session_secrets_module, which provisions a DB-private, session-scoped ephemeral key-value store for challenges, nonces, and one-time tokens that must never be readable by end users. | | `useCreateSessionSecretsModuleMutation` | Mutation | Config row for the session_secrets_module, which provisions a DB-private, session-scoped ephemeral key-value store for challenges, nonces, and one-time tokens that must never be readable by end users. | @@ -612,12 +637,13 @@ function App() { | `useCreateWebhookModuleMutation` | Mutation | Create a webhookModule | | `useUpdateWebhookModuleMutation` | Mutation | Update a webhookModule | | `useDeleteWebhookModuleMutation` | Mutation | Delete a webhookModule | -| `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. | +| `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). A table entry either names its table (table_name plus optional schema_name) or references one an installed module generated ("module": {"type": "agent", "scope": "org", "table": "message"}), which resolves through the module row's recorded table ids and raises when it matches nothing instead of creating an empty table. 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. | +| `useProvisionBucketMutation` | Mutation | Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. | ## Table Hooks @@ -626,20 +652,20 @@ and lifecycle settings. | ```typescript // List all agentModules const { data, isLoading } = 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 } }, + selection: { fields: { agentTableId: true, agentTableName: true, apiName: true, databaseId: true, defaultCapabilities: true, defaultVisibility: true, entityField: true, entityTableId: true, eventTableId: true, eventTableName: true, hasAgents: true, hasAttachments: true, hasPlans: true, hasRepositoryResources: true, hasResources: true, hasRuns: 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, resourceRepositoryTableId: true, resourceRepositoryTableName: true, resourceTableId: true, resourceTableName: true, resources: true, runTableId: true, runTableName: true, schemaId: true, scope: true, taskTableId: true, taskTableName: true, threadTableId: true, threadTableName: true, workspaceTableId: true, workspaceTableName: true } }, }); // Get one agentModule const { data: item } = 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 } }, + selection: { fields: { agentTableId: true, agentTableName: true, apiName: true, databaseId: true, defaultCapabilities: true, defaultVisibility: true, entityField: true, entityTableId: true, eventTableId: true, eventTableName: true, hasAgents: true, hasAttachments: true, hasPlans: true, hasRepositoryResources: true, hasResources: true, hasRuns: 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, resourceRepositoryTableId: true, resourceRepositoryTableName: true, resourceTableId: true, resourceTableName: true, resources: true, runTableId: true, runTableName: true, schemaId: true, scope: true, taskTableId: true, taskTableName: true, threadTableId: true, threadTableName: true, workspaceTableId: true, workspaceTableName: true } }, }); // Create a agentModule const { mutate: create } = useCreateAgentModuleMutation({ selection: { fields: { id: true } }, }); -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: '' }); +create({ agentTableId: '', agentTableName: '', apiName: '', databaseId: '', defaultCapabilities: '', defaultVisibility: '', entityField: '', entityTableId: '', eventTableId: '', eventTableName: '', hasAgents: '', hasAttachments: '', hasPlans: '', hasRepositoryResources: '', hasResources: '', hasRuns: '', messageTableId: '', messageTableName: '', personaTableId: '', personaTableName: '', planTableId: '', planTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', promptsTableId: '', promptsTableName: '', provisions: '', publicSchemaName: '', resourceRepositoryTableId: '', resourceRepositoryTableName: '', resourceTableId: '', resourceTableName: '', resources: '', runTableId: '', runTableName: '', schemaId: '', scope: '', taskTableId: '', taskTableName: '', threadTableId: '', threadTableName: '', workspaceTableId: '', workspaceTableName: '' }); ``` ### ApiSurfaceModule @@ -668,20 +694,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, 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 } }, + selection: { fields: { apiName: true, appComponentsTableId: true, appComponentsTableName: true, appStoreIdentitiesTableName: 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, 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 } }, + selection: { fields: { apiName: true, appComponentsTableId: true, appComponentsTableName: true, appStoreIdentitiesTableName: 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: '', defaultCapabilities: '', entityField: '', entityTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }); +create({ apiName: '', appComponentsTableId: '', appComponentsTableName: '', appStoreIdentitiesTableName: '', appsTableId: '', appsTableName: '', catalogModuleId: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }); ``` ### BillingModule @@ -710,20 +736,20 @@ create({ apiName: '', balancesTableId: '', balancesTableName: '', - 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 } }, + selection: { fields: { activatePlanSubscriptionFunction: true, apiName: true, billingCustomersTableId: true, billingCustomersTableName: true, billingDisputesTableId: true, billingDisputesTableName: 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, getActivePlanPricingFunction: true, getBillingCustomerFunction: true, getBillingPriceFunction: true, getBillingProductFunction: true, getBillingSubscriptionFunction: true, getFallbackFreePlanFunction: true, id: true, listPendingUsageSyncFunction: true, markUsageSyncedFunction: true, prefix: true, pricesTableId: true, privateApiName: true, privateSchemaId: true, processBillingEventFunction: true, productsTableId: true, provider: true, recordDisputeFunction: true, recordRefundFunction: true, schemaId: true, subscriptionsTableId: true, sweepOverdueSubscriptionsFunction: true, upsertBillingCustomerFunction: true, upsertBillingPriceFunction: true, upsertBillingProductFunction: true, upsertBillingSubscriptionFunction: true, upsertInvoiceFunction: true } }, }); // Create a billingProviderModule const { mutate: create } = useCreateBillingProviderModuleMutation({ selection: { fields: { id: true } }, }); -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: '' }); +create({ activatePlanSubscriptionFunction: '', apiName: '', billingCustomersTableId: '', billingCustomersTableName: '', billingDisputesTableId: '', billingDisputesTableName: '', billingInvoicesTableId: '', billingInvoicesTableName: '', billingPricesTableId: '', billingPricesTableName: '', billingProductsTableId: '', billingProductsTableName: '', billingRefundsTableId: '', billingRefundsTableName: '', billingSubscriptionsTableId: '', billingSubscriptionsTableName: '', billingWebhookEventsTableId: '', billingWebhookEventsTableName: '', databaseId: '', getActivePlanPricingFunction: '', getBillingCustomerFunction: '', getBillingPriceFunction: '', getBillingProductFunction: '', getBillingSubscriptionFunction: '', getFallbackFreePlanFunction: '', listPendingUsageSyncFunction: '', markUsageSyncedFunction: '', prefix: '', pricesTableId: '', privateApiName: '', privateSchemaId: '', processBillingEventFunction: '', productsTableId: '', provider: '', recordDisputeFunction: '', recordRefundFunction: '', schemaId: '', subscriptionsTableId: '', sweepOverdueSubscriptionsFunction: '', upsertBillingCustomerFunction: '', upsertBillingPriceFunction: '', upsertBillingProductFunction: '', upsertBillingSubscriptionFunction: '', upsertInvoiceFunction: '' }); ``` ### Blueprint @@ -815,62 +841,62 @@ create({ actorTableId: '', apiName: '', bitlen: '', databaseI ```typescript // List all catalogModules const { data, isLoading } = 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 } }, + selection: { fields: { apiName: true, apisTableId: true, apisTableName: true, appStoreIdentitiesTableId: true, appStoreIdentitiesTableName: 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, imagesTableId: true, imagesTableName: true, managedDomainsTableId: true, managedDomainsTableName: true, namespacesTableId: true, namespacesTableName: true, policies: true, privateApiName: true, provisions: true, publicSchemaName: true, redirectsTableId: true, redirectsTableName: 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, 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 } }, + selection: { fields: { apiName: true, apisTableId: true, apisTableName: true, appStoreIdentitiesTableId: true, appStoreIdentitiesTableName: 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, imagesTableId: true, imagesTableName: true, managedDomainsTableId: true, managedDomainsTableName: true, namespacesTableId: true, namespacesTableName: true, policies: true, privateApiName: true, provisions: true, publicSchemaName: true, redirectsTableId: true, redirectsTableName: 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: '', 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: '' }); +create({ apiName: '', apisTableId: '', apisTableName: '', appStoreIdentitiesTableId: '', appStoreIdentitiesTableName: '', appsTableId: '', appsTableName: '', bindingsTableId: '', bindingsTableName: '', bucketsTableId: '', bucketsTableName: '', databaseId: '', defaultCapabilities: '', domainsTableId: '', domainsTableName: '', entityTableId: '', functionsTableId: '', functionsTableName: '', imagesTableId: '', imagesTableName: '', managedDomainsTableId: '', managedDomainsTableName: '', namespacesTableId: '', namespacesTableName: '', policies: '', privateApiName: '', provisions: '', publicSchemaName: '', redirectsTableId: '', redirectsTableName: '', resourceDefinitionsTableId: '', resourceDefinitionsTableName: '', resourceInstallationsTableId: '', resourceInstallationsTableName: '', resourcesTableId: '', resourcesTableName: '', schemaId: '', scope: '', sitesAppLinksTableId: '', sitesAppLinksTableName: '', sitesDeepLinksTableId: '', sitesDeepLinksTableName: '', sitesErrorPagesTableId: '', sitesErrorPagesTableName: '', sitesTableId: '', sitesTableName: '', sitesWebConfigTableId: '', sitesWebConfigTableName: '' }); ``` -### ComputeLogModule +### ClusterModule ```typescript -// List all computeLogModules -const { data, isLoading } = useComputeLogModulesQuery({ - selection: { fields: { actorFkTableId: true, apiName: true, computeLogTableId: true, computeLogTableName: true, databaseId: true, entityField: true, entityFkTableId: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, schemaId: true, scope: true, usageSummaryTableId: true, usageSummaryTableName: true } }, +// List all clusterModules +const { data, isLoading } = useClusterModulesQuery({ + selection: { fields: { apiName: true, clusterEventsTableId: true, clusterEventsTableName: true, clustersTableId: true, clustersTableName: true, databaseId: true, databasePlacementsTableId: true, databasePlacementsTableName: true, databaseServersTableId: true, databaseServersTableName: true, defaultCapabilities: true, entityField: true, id: true, partitionInterval: true, physicalDatabasesTableId: true, physicalDatabasesTableName: true, policies: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, retention: true, schemaId: true, scope: true } }, }); -// Get one computeLogModule -const { data: item } = useComputeLogModuleQuery({ +// Get one clusterModule +const { data: item } = useClusterModuleQuery({ id: '', - selection: { fields: { actorFkTableId: true, apiName: true, computeLogTableId: true, computeLogTableName: true, databaseId: true, entityField: true, entityFkTableId: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, schemaId: true, scope: true, usageSummaryTableId: true, usageSummaryTableName: true } }, + selection: { fields: { apiName: true, clusterEventsTableId: true, clusterEventsTableName: true, clustersTableId: true, clustersTableName: true, databaseId: true, databasePlacementsTableId: true, databasePlacementsTableName: true, databaseServersTableId: true, databaseServersTableName: true, defaultCapabilities: true, entityField: true, id: true, partitionInterval: true, physicalDatabasesTableId: true, physicalDatabasesTableName: true, policies: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, retention: true, schemaId: true, scope: true } }, }); -// Create a computeLogModule -const { mutate: create } = useCreateComputeLogModuleMutation({ +// Create a clusterModule +const { mutate: create } = useCreateClusterModuleMutation({ selection: { fields: { id: true } }, }); -create({ actorFkTableId: '', apiName: '', computeLogTableId: '', computeLogTableName: '', databaseId: '', entityField: '', entityFkTableId: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', retention: '', schemaId: '', scope: '', usageSummaryTableId: '', usageSummaryTableName: '' }); +create({ apiName: '', clusterEventsTableId: '', clusterEventsTableName: '', clustersTableId: '', clustersTableName: '', databaseId: '', databasePlacementsTableId: '', databasePlacementsTableName: '', databaseServersTableId: '', databaseServersTableName: '', defaultCapabilities: '', entityField: '', partitionInterval: '', physicalDatabasesTableId: '', physicalDatabasesTableName: '', policies: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', retention: '', schemaId: '', scope: '' }); ``` -### ConfigSecretsUserModule +### ComputeLogModule ```typescript -// List all configSecretsUserModules -const { data, isLoading } = useConfigSecretsUserModulesQuery({ - selection: { fields: { apiName: true, databaseId: true, entityField: true, id: true, privateApiName: true, schemaId: true, tableId: true, tableName: true } }, +// List all computeLogModules +const { data, isLoading } = useComputeLogModulesQuery({ + selection: { fields: { apiName: true, computeLogTableId: true, computeLogTableName: true, databaseId: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, rollupFunctionName: true, schemaId: true, scope: true, usageSummaryTableId: true, usageSummaryTableName: true } }, }); -// Get one configSecretsUserModule -const { data: item } = useConfigSecretsUserModuleQuery({ +// Get one computeLogModule +const { data: item } = useComputeLogModuleQuery({ id: '', - selection: { fields: { apiName: true, databaseId: true, entityField: true, id: true, privateApiName: true, schemaId: true, tableId: true, tableName: true } }, + selection: { fields: { apiName: true, computeLogTableId: true, computeLogTableName: true, databaseId: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, rollupFunctionName: true, schemaId: true, scope: true, usageSummaryTableId: true, usageSummaryTableName: true } }, }); -// Create a configSecretsUserModule -const { mutate: create } = useCreateConfigSecretsUserModuleMutation({ +// Create a computeLogModule +const { mutate: create } = useCreateComputeLogModuleMutation({ selection: { fields: { id: true } }, }); -create({ apiName: '', databaseId: '', entityField: '', privateApiName: '', schemaId: '', tableId: '', tableName: '' }); +create({ apiName: '', computeLogTableId: '', computeLogTableName: '', databaseId: '', entityField: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', retention: '', rollupFunctionName: '', schemaId: '', scope: '', usageSummaryTableId: '', usageSummaryTableName: '' }); ``` ### ConnectedAccountsModule @@ -983,20 +1009,20 @@ create({ capabilitiesModuleId: '', databaseId: '', fieldId: '' ```typescript // List all databaseProvisionModules const { data, isLoading } = useDatabaseProvisionModulesQuery({ - selection: { fields: { async: true, bootstrapError: true, bootstrapStatus: true, bootstrapUser: true, completedAt: true, createdAt: true, databaseId: true, databaseName: true, domain: true, errorMessage: true, fulfilledAt: true, id: true, modules: true, options: true, ownerId: true, sourceDatabaseId: true, status: true, subdomain: true, updatedAt: true } }, + selection: { fields: { async: true, bootstrapActorId: true, bootstrapError: true, bootstrapStatus: true, bootstrapUser: true, completedAt: true, createdAt: true, databaseId: true, databaseName: true, domain: true, errorMessage: true, fulfilledAt: true, id: true, modules: true, options: true, ownerId: true, sourceDatabaseId: true, status: true, subdomain: true, updatedAt: true } }, }); // Get one databaseProvisionModule const { data: item } = useDatabaseProvisionModuleQuery({ id: '', - selection: { fields: { async: true, bootstrapError: true, bootstrapStatus: true, bootstrapUser: true, completedAt: true, createdAt: true, databaseId: true, databaseName: true, domain: true, errorMessage: true, fulfilledAt: true, id: true, modules: true, options: true, ownerId: true, sourceDatabaseId: true, status: true, subdomain: true, updatedAt: true } }, + selection: { fields: { async: true, bootstrapActorId: true, bootstrapError: true, bootstrapStatus: true, bootstrapUser: true, completedAt: true, createdAt: true, databaseId: true, databaseName: true, domain: true, errorMessage: true, fulfilledAt: true, id: true, modules: true, options: true, ownerId: true, sourceDatabaseId: true, status: true, subdomain: true, updatedAt: true } }, }); // Create a databaseProvisionModule const { mutate: create } = useCreateDatabaseProvisionModuleMutation({ selection: { fields: { id: true } }, }); -create({ async: '', bootstrapError: '', bootstrapStatus: '', bootstrapUser: '', completedAt: '', databaseId: '', databaseName: '', domain: '', errorMessage: '', fulfilledAt: '', modules: '', options: '', ownerId: '', sourceDatabaseId: '', status: '', subdomain: '' }); +create({ async: '', bootstrapActorId: '', bootstrapError: '', bootstrapStatus: '', bootstrapUser: '', completedAt: '', databaseId: '', databaseName: '', domain: '', errorMessage: '', fulfilledAt: '', modules: '', options: '', ownerId: '', sourceDatabaseId: '', status: '', subdomain: '' }); ``` ### DatabaseSettingsModule @@ -1340,20 +1366,20 @@ create({ apiName: '', attemptsTableId: '', attemptsTableName: '', - 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 } }, + 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, storageKey: true } }, }); // Create a functionModule const { mutate: create } = useCreateFunctionModuleMutation({ selection: { fields: { id: true } }, }); -create({ apiName: '', bindingsTableId: '', bindingsTableName: '', capabilityBindingsTableId: '', databaseId: '', defaultCapabilities: '', 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: '', storageKey: '' }); ``` ### GraphExecutionModule @@ -1419,27 +1445,6 @@ const { mutate: create } = useCreateHierarchyModuleMutation({ create({ chartEdgeGrantsTableId: '', chartEdgeGrantsTableName: '', chartEdgesTableId: '', chartEdgesTableName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', getManagersFunction: '', getSubordinatesFunction: '', hierarchySprtTableId: '', hierarchySprtTableName: '', isManagerOfFunction: '', prefix: '', privateSchemaId: '', privateSchemaName: '', rebuildHierarchyFunction: '', schemaId: '', scope: '', sprtTableName: '', usersTableId: '' }); ``` -### HttpRouteModule - -```typescript -// List all httpRouteModules -const { data, isLoading } = 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 } }, -}); - -// Get one httpRouteModule -const { data: item } = 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 } }, -}); - -// Create a httpRouteModule -const { mutate: create } = useCreateHttpRouteModuleMutation({ - selection: { fields: { id: true } }, -}); -create({ apiName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', functionModuleId: '', httpRoutesTableId: '', httpRoutesTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', resolverFunctionName: '', resourceModuleId: '', schemaId: '', scope: '', storageModuleId: '' }); -``` - ### I18NModule ```typescript @@ -1482,25 +1487,46 @@ const { mutate: create } = useCreateIdentityProvidersModuleMutation({ create({ apiName: '', databaseId: '', entityField: '', entityTableId: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', schemaId: '', scope: '', tableId: '', tableName: '' }); ``` +### ImageModule + +```typescript +// List all imageModules +const { data, isLoading } = useImageModulesQuery({ + selection: { fields: { apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, imageGrantsTableId: true, imageGrantsTableName: true, imagesTableId: true, imagesTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, registriesTableId: true, registriesTableName: true, registryGrantsTableId: true, registryGrantsTableName: true, schemaId: true, scope: true } }, +}); + +// Get one imageModule +const { data: item } = useImageModuleQuery({ + id: '', + selection: { fields: { apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, imageGrantsTableId: true, imageGrantsTableName: true, imagesTableId: true, imagesTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, registriesTableId: true, registriesTableName: true, registryGrantsTableId: true, registryGrantsTableName: true, schemaId: true, scope: true } }, +}); + +// Create a imageModule +const { mutate: create } = useCreateImageModuleMutation({ + selection: { fields: { id: true } }, +}); +create({ apiName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', imageGrantsTableId: '', imageGrantsTableName: '', imagesTableId: '', imagesTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', registriesTableId: '', registriesTableName: '', registryGrantsTableId: '', registryGrantsTableName: '', schemaId: '', scope: '' }); +``` + ### InferenceLogModule ```typescript // List all inferenceLogModules const { data, isLoading } = useInferenceLogModulesQuery({ - selection: { fields: { actorFkTableId: true, apiName: true, databaseId: true, entityField: true, entityFkTableId: true, id: true, inferenceLogTableId: true, inferenceLogTableName: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, schemaId: true, scope: true, usageSummaryTableId: true, usageSummaryTableName: true } }, + selection: { fields: { apiName: true, databaseId: true, entityField: true, id: true, inferenceLogTableId: true, inferenceLogTableName: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, rollupFunctionName: true, schemaId: true, scope: true, usageSummaryTableId: true, usageSummaryTableName: true } }, }); // Get one inferenceLogModule const { data: item } = useInferenceLogModuleQuery({ id: '', - selection: { fields: { actorFkTableId: true, apiName: true, databaseId: true, entityField: true, entityFkTableId: true, id: true, inferenceLogTableId: true, inferenceLogTableName: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, schemaId: true, scope: true, usageSummaryTableId: true, usageSummaryTableName: true } }, + selection: { fields: { apiName: true, databaseId: true, entityField: true, id: true, inferenceLogTableId: true, inferenceLogTableName: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, rollupFunctionName: true, schemaId: true, scope: true, usageSummaryTableId: true, usageSummaryTableName: true } }, }); // Create a inferenceLogModule const { mutate: create } = useCreateInferenceLogModuleMutation({ selection: { fields: { id: true } }, }); -create({ actorFkTableId: '', apiName: '', databaseId: '', entityField: '', entityFkTableId: '', inferenceLogTableId: '', inferenceLogTableName: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', retention: '', schemaId: '', scope: '', usageSummaryTableId: '', usageSummaryTableName: '' }); +create({ apiName: '', databaseId: '', entityField: '', inferenceLogTableId: '', inferenceLogTableName: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', retention: '', rollupFunctionName: '', schemaId: '', scope: '', usageSummaryTableId: '', usageSummaryTableName: '' }); ``` ### InfraConfigModule @@ -1566,6 +1592,27 @@ const { mutate: create } = useCreateIntegrationProvidersModuleMutation({ create({ apiName: '', databaseId: '', entityField: '', entityTableId: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', schemaId: '', scope: '', tableId: '', tableName: '' }); ``` +### InternalConfigModule + +```typescript +// List all internalConfigModules +const { data, isLoading } = useInternalConfigModulesQuery({ + selection: { fields: { apiName: true, databaseId: true, entityField: true, entityTableId: true, id: true, internalConfigTableId: true, internalConfigTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }, +}); + +// Get one internalConfigModule +const { data: item } = useInternalConfigModuleQuery({ + id: '', + selection: { fields: { apiName: true, databaseId: true, entityField: true, entityTableId: true, id: true, internalConfigTableId: true, internalConfigTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }, +}); + +// Create a internalConfigModule +const { mutate: create } = useCreateInternalConfigModuleMutation({ + selection: { fields: { id: true } }, +}); +create({ apiName: '', databaseId: '', entityField: '', entityTableId: '', internalConfigTableId: '', internalConfigTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }); +``` + ### InternalSecretsModule ```typescript @@ -1608,6 +1655,27 @@ const { mutate: create } = useCreateInvitesModuleMutation({ create({ apiName: '', claimedInvitesTableId: '', claimedInvitesTableName: '', databaseId: '', emailsTableId: '', entityField: '', entityTableId: '', invitesTableId: '', invitesTableName: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', schemaId: '', scope: '', submitInviteCodeFunction: '', usersTableId: '' }); ``` +### K8sAdmissionModule + +```typescript +// List all k8sAdmissionModules +const { data, isLoading } = useK8sAdmissionModulesQuery({ + selection: { fields: { apiName: true, createdAt: true, databaseId: true, entityTableId: true, id: true, k8sResourceKindsTableId: true, k8sSpecRulesTableId: 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 k8sAdmissionModule +const { data: item } = useK8sAdmissionModuleQuery({ + id: '', + selection: { fields: { apiName: true, createdAt: true, databaseId: true, entityTableId: true, id: true, k8sResourceKindsTableId: true, k8sSpecRulesTableId: 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 k8sAdmissionModule +const { mutate: create } = useCreateK8sAdmissionModuleMutation({ + selection: { fields: { id: true } }, +}); +create({ apiName: '', databaseId: '', entityTableId: '', k8sResourceKindsTableId: '', k8sSpecRulesTableId: '', merkleStoreModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaId: '', publicSchemaName: '', scope: '', storeName: '' }); +``` + ### LimitsModule ```typescript @@ -1629,6 +1697,27 @@ const { mutate: create } = useCreateLimitsModuleMutation({ 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: '' }); ``` +### MachineModule + +```typescript +// List all machineModules +const { data, isLoading } = useMachineModulesQuery({ + selection: { fields: { apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, machineMessagesTableId: true, machineMessagesTableName: true, machineSessionsTableId: true, machineSessionsTableName: true, machinesTableId: true, machinesTableName: true, partitionInterval: true, policies: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, retention: true, schemaId: true, scope: true } }, +}); + +// Get one machineModule +const { data: item } = useMachineModuleQuery({ + id: '', + selection: { fields: { apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, machineMessagesTableId: true, machineMessagesTableName: true, machineSessionsTableId: true, machineSessionsTableName: true, machinesTableId: true, machinesTableName: true, partitionInterval: true, policies: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, retention: true, schemaId: true, scope: true } }, +}); + +// Create a machineModule +const { mutate: create } = useCreateMachineModuleMutation({ + selection: { fields: { id: true } }, +}); +create({ apiName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', machineMessagesTableId: '', machineMessagesTableName: '', machineSessionsTableId: '', machineSessionsTableName: '', machinesTableId: '', machinesTableName: '', partitionInterval: '', policies: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', retention: '', schemaId: '', scope: '' }); +``` + ### MembershipTypesModule ```typescript @@ -1676,20 +1765,20 @@ create({ actorMaskCheck: '', actorPermCheck: '', actorTableId: ' ```typescript // List all merkleStoreModules const { data, isLoading } = 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 } }, + selection: { fields: { apiName: true, capabilityKey: true, commitTableId: true, createdAt: true, databaseId: true, entityField: true, entityTableId: 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, 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 } }, + selection: { fields: { apiName: true, capabilityKey: true, commitTableId: true, createdAt: true, databaseId: true, entityField: true, entityTableId: 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: '', capabilityKey: '', commitTableId: '', databaseId: '', entityField: '', functionPrefix: '', objectTableId: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', refTableId: '', schemaId: '', scope: '', storeTableId: '' }); +create({ apiName: '', capabilityKey: '', commitTableId: '', databaseId: '', entityField: '', entityTableId: '', functionPrefix: '', objectTableId: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', refTableId: '', schemaId: '', scope: '', storeTableId: '' }); ``` ### NamespaceModule @@ -1760,20 +1849,20 @@ create({ databaseId: '', entityField: '', entityTableId: '', ```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 } }, + selection: { fields: { apiName: true, createdAt: true, databaseId: true, entityTableId: true, id: true, merkleStoreModuleId: true, pagesTableId: true, policies: true, prefix: true, previewCommitFunctionName: true, previewSetFunctionName: true, previewTokenMintFunctionName: true, previewTokenVerifierFunctionName: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaId: true, publicSchemaName: true, releaseManifestFunctionName: true, scope: true, siteSurfaceModuleId: true, sitesTableId: true, storeNamePrefix: true } }, }); // Get one pagesModule const { data: item } = usePagesModuleQuery({ 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: { apiName: true, createdAt: true, databaseId: true, entityTableId: true, id: true, merkleStoreModuleId: true, pagesTableId: true, policies: true, prefix: true, previewCommitFunctionName: true, previewSetFunctionName: true, previewTokenMintFunctionName: true, previewTokenVerifierFunctionName: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaId: true, publicSchemaName: true, releaseManifestFunctionName: true, scope: true, siteSurfaceModuleId: true, sitesTableId: true, storeNamePrefix: true } }, }); // Create a pagesModule const { mutate: create } = useCreatePagesModuleMutation({ selection: { fields: { id: true } }, }); -create({ apiName: '', databaseId: '', entityTableId: '', merkleStoreModuleId: '', pagesTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaId: '', publicSchemaName: '', scope: '', siteSurfaceModuleId: '', sitesTableId: '', storeNamePrefix: '' }); +create({ apiName: '', databaseId: '', entityTableId: '', merkleStoreModuleId: '', pagesTableId: '', policies: '', prefix: '', previewCommitFunctionName: '', previewSetFunctionName: '', previewTokenMintFunctionName: '', previewTokenVerifierFunctionName: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaId: '', publicSchemaName: '', releaseManifestFunctionName: '', scope: '', siteSurfaceModuleId: '', sitesTableId: '', storeNamePrefix: '' }); ``` ### PhoneNumbersModule @@ -1823,20 +1912,20 @@ create({ apiName: '', applyBillingPlanFunction: '', applyPlanAgg ```typescript // List all principalAuthModules const { data, isLoading } = usePrincipalAuthModulesQuery({ - selection: { fields: { apiName: true, auditsTableId: true, createOrgApiKeyFunction: true, createOrgPrincipalFunction: true, createPrincipalFunction: true, databaseId: true, deleteOrgPrincipalFunction: true, deletePrincipalFunction: true, id: true, principalEntitiesTableId: true, principalScopeOverridesTableId: true, principalsTableId: true, principalsTableName: true, revokeOrgApiKeyFunction: true, schemaId: true, sessionCredentialsTableId: true, sessionsTableId: true, usersTableId: true } }, + selection: { fields: { apiName: true, auditsTableId: true, createOrgApiKeyFunction: true, createOrgPrincipalFunction: true, createPrincipalFunction: true, databaseId: true, deleteOrgPrincipalFunction: true, deletePrincipalFunction: true, id: true, principalEntitiesTableId: true, principalScopeOverridesTableId: true, principalsTableId: true, principalsTableName: true, privateSchemaId: true, revokeOrgApiKeyFunction: true, schemaId: true, sessionCredentialsTableId: true, sessionsTableId: true, sweepExpiredPrincipalsFunction: true, usersTableId: true } }, }); // Get one principalAuthModule const { data: item } = usePrincipalAuthModuleQuery({ id: '', - selection: { fields: { apiName: true, auditsTableId: true, createOrgApiKeyFunction: true, createOrgPrincipalFunction: true, createPrincipalFunction: true, databaseId: true, deleteOrgPrincipalFunction: true, deletePrincipalFunction: true, id: true, principalEntitiesTableId: true, principalScopeOverridesTableId: true, principalsTableId: true, principalsTableName: true, revokeOrgApiKeyFunction: true, schemaId: true, sessionCredentialsTableId: true, sessionsTableId: true, usersTableId: true } }, + selection: { fields: { apiName: true, auditsTableId: true, createOrgApiKeyFunction: true, createOrgPrincipalFunction: true, createPrincipalFunction: true, databaseId: true, deleteOrgPrincipalFunction: true, deletePrincipalFunction: true, id: true, principalEntitiesTableId: true, principalScopeOverridesTableId: true, principalsTableId: true, principalsTableName: true, privateSchemaId: true, revokeOrgApiKeyFunction: true, schemaId: true, sessionCredentialsTableId: true, sessionsTableId: true, sweepExpiredPrincipalsFunction: true, usersTableId: true } }, }); // Create a principalAuthModule const { mutate: create } = useCreatePrincipalAuthModuleMutation({ selection: { fields: { id: true } }, }); -create({ apiName: '', auditsTableId: '', createOrgApiKeyFunction: '', createOrgPrincipalFunction: '', createPrincipalFunction: '', databaseId: '', deleteOrgPrincipalFunction: '', deletePrincipalFunction: '', principalEntitiesTableId: '', principalScopeOverridesTableId: '', principalsTableId: '', principalsTableName: '', revokeOrgApiKeyFunction: '', schemaId: '', sessionCredentialsTableId: '', sessionsTableId: '', usersTableId: '' }); +create({ apiName: '', auditsTableId: '', createOrgApiKeyFunction: '', createOrgPrincipalFunction: '', createPrincipalFunction: '', databaseId: '', deleteOrgPrincipalFunction: '', deletePrincipalFunction: '', principalEntitiesTableId: '', principalScopeOverridesTableId: '', principalsTableId: '', principalsTableName: '', privateSchemaId: '', revokeOrgApiKeyFunction: '', schemaId: '', sessionCredentialsTableId: '', sessionsTableId: '', sweepExpiredPrincipalsFunction: '', usersTableId: '' }); ``` ### ProfilesModule @@ -1923,6 +2012,27 @@ const { mutate: create } = useCreateRealtimeModuleMutation({ create({ apiName: '', changeLogTableId: '', databaseId: '', interval: '', listenerNodeTableId: '', notifyChannel: '', premake: '', privateApiName: '', privateSchemaId: '', retentionHours: '', schemaId: '', sourceRegistryTableId: '', subscriptionsSchemaId: '' }); ``` +### RefusalLogModule + +```typescript +// List all refusalLogModules +const { data, isLoading } = useRefusalLogModulesQuery({ + selection: { fields: { apiName: true, databaseId: true, entityField: true, id: true, logInterval: true, logPremake: true, logRetention: true, logTableId: true, logTableName: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, recordRefusalsFunction: true, rollupRefusalUsageSummaryFunction: true, schemaId: true, scope: true, summaryInterval: true, summaryPremake: true, summaryRetention: true, summaryTableId: true, summaryTableName: true } }, +}); + +// Get one refusalLogModule +const { data: item } = useRefusalLogModuleQuery({ + id: '', + selection: { fields: { apiName: true, databaseId: true, entityField: true, id: true, logInterval: true, logPremake: true, logRetention: true, logTableId: true, logTableName: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, recordRefusalsFunction: true, rollupRefusalUsageSummaryFunction: true, schemaId: true, scope: true, summaryInterval: true, summaryPremake: true, summaryRetention: true, summaryTableId: true, summaryTableName: true } }, +}); + +// Create a refusalLogModule +const { mutate: create } = useCreateRefusalLogModuleMutation({ + selection: { fields: { id: true } }, +}); +create({ apiName: '', databaseId: '', entityField: '', logInterval: '', logPremake: '', logRetention: '', logTableId: '', logTableName: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', recordRefusalsFunction: '', rollupRefusalUsageSummaryFunction: '', schemaId: '', scope: '', summaryInterval: '', summaryPremake: '', summaryRetention: '', summaryTableId: '', summaryTableName: '' }); +``` + ### RelationProvision ```typescript @@ -1944,25 +2054,46 @@ const { mutate: create } = useCreateRelationProvisionMutation({ create({ apiRequired: '', createIndex: '', databaseId: '', deleteAction: '', exposeInApi: '', fieldName: '', grants: '', isRequired: '', junctionSchemaId: '', junctionTableId: '', junctionTableName: '', nodes: '', outFieldId: '', outJunctionTableId: '', outSourceFieldId: '', outTargetFieldId: '', policies: '', relationType: '', sourceFieldName: '', sourceTableId: '', targetFieldName: '', targetTableId: '', useCompositeKey: '' }); ``` +### RepositoryModule + +```typescript +// List all repositoryModules +const { data, isLoading } = useRepositoryModulesQuery({ + selection: { fields: { apiName: true, buildStepsTableId: true, buildStepsTableName: true, buildsTableId: true, buildsTableName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, hasAttachments: true, hasBuilds: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, proposalCommentsTableId: true, proposalCommentsTableName: true, proposalFileViewsTableId: true, proposalFileViewsTableName: true, proposalReactionsTableId: true, proposalReactionsTableName: true, proposalReviewsTableId: true, proposalReviewsTableName: true, proposalsTableId: true, proposalsTableName: true, provisions: true, publicSchemaName: true, repositoriesTableId: true, repositoriesTableName: true, repositoryEventsTableId: true, repositoryEventsTableName: true, repositoryRequiredChecksTableId: true, repositoryRequiredChecksTableName: true, schemaId: true, scope: true, search: true, workflowsTableId: true, workflowsTableName: true } }, +}); + +// Get one repositoryModule +const { data: item } = useRepositoryModuleQuery({ + id: '', + selection: { fields: { apiName: true, buildStepsTableId: true, buildStepsTableName: true, buildsTableId: true, buildsTableName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, hasAttachments: true, hasBuilds: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, proposalCommentsTableId: true, proposalCommentsTableName: true, proposalFileViewsTableId: true, proposalFileViewsTableName: true, proposalReactionsTableId: true, proposalReactionsTableName: true, proposalReviewsTableId: true, proposalReviewsTableName: true, proposalsTableId: true, proposalsTableName: true, provisions: true, publicSchemaName: true, repositoriesTableId: true, repositoriesTableName: true, repositoryEventsTableId: true, repositoryEventsTableName: true, repositoryRequiredChecksTableId: true, repositoryRequiredChecksTableName: true, schemaId: true, scope: true, search: true, workflowsTableId: true, workflowsTableName: true } }, +}); + +// Create a repositoryModule +const { mutate: create } = useCreateRepositoryModuleMutation({ + selection: { fields: { id: true } }, +}); +create({ apiName: '', buildStepsTableId: '', buildStepsTableName: '', buildsTableId: '', buildsTableName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', hasAttachments: '', hasBuilds: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', proposalCommentsTableId: '', proposalCommentsTableName: '', proposalFileViewsTableId: '', proposalFileViewsTableName: '', proposalReactionsTableId: '', proposalReactionsTableName: '', proposalReviewsTableId: '', proposalReviewsTableName: '', proposalsTableId: '', proposalsTableName: '', provisions: '', publicSchemaName: '', repositoriesTableId: '', repositoriesTableName: '', repositoryEventsTableId: '', repositoryEventsTableName: '', repositoryRequiredChecksTableId: '', repositoryRequiredChecksTableName: '', schemaId: '', scope: '', search: '', workflowsTableId: '', workflowsTableName: '' }); +``` + ### ResourceModule ```typescript // List all resourceModules const { data, isLoading } = 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 } }, + selection: { fields: { apiName: true, builderBindingsTableId: true, builderBindingsTableName: 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, registryBindingsTableId: true, registryBindingsTableName: 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, 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 } }, + selection: { fields: { apiName: true, builderBindingsTableId: true, builderBindingsTableName: 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, registryBindingsTableId: true, registryBindingsTableName: 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: '', 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: '' }); +create({ apiName: '', builderBindingsTableId: '', builderBindingsTableName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', installationStoreName: '', merkleStoreModuleId: '', namespaceModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', registryBindingsTableId: '', registryBindingsTableName: '', requirementsStateViewName: '', resolvedRequirementsViewName: '', resourceBillingRollupFunction: '', resourceDefinitionsTableId: '', resourceDefinitionsTableName: '', resourceEventsTableId: '', resourceEventsTableName: '', resourceInstallationsTableId: '', resourceInstallationsTableName: '', resourceStatusChecksTableId: '', resourceStatusChecksTableName: '', resourceUsageLogTableId: '', resourceUsageLogTableName: '', resourceUsageSummaryTableId: '', resourceUsageSummaryTableName: '', resourcesTableId: '', resourcesTableName: '', rollupResourceUsageSummaryFunction: '', schemaId: '', scope: '' }); ``` ### RlsModule @@ -1991,20 +2122,20 @@ create({ apiName: '', authenticate: '', authenticateStrict: '', - 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 } }, + 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, redirectsTableId: true, redirectsTableName: true, resolverFunctionName: true, routeBindingsTableId: true, routeBindingsTableName: true, routesTableId: true, routesTableName: true, schemaId: true, scope: true, servingSiteField: true, storageKey: true } }, }); // Create a routeModule const { mutate: create } = useCreateRouteModuleMutation({ selection: { fields: { id: true } }, }); -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: '' }); +create({ apiName: '', appLinksFunctionName: '', catalogModuleId: '', databaseId: '', deepLinkFunctionName: '', defaultCapabilities: '', domainModuleId: '', entityField: '', entityTableId: '', hostnameBindingsTableId: '', hostnameBindingsTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', redirectsTableId: '', redirectsTableName: '', resolverFunctionName: '', routeBindingsTableId: '', routeBindingsTableName: '', routesTableId: '', routesTableName: '', schemaId: '', scope: '', servingSiteField: '', storageKey: '' }); ``` ### ScopeTypesModule @@ -2033,20 +2164,20 @@ create({ databaseId: '', privateSchemaName: '', schemaId: '' ```typescript // List all secureTableProvisions const { data, isLoading } = useSecureTableProvisionsQuery({ - selection: { fields: { databaseId: true, fields: true, grants: true, id: true, nodes: true, outFields: true, policies: true, schemaId: true, tableId: true, tableName: true, useRls: true } }, + selection: { fields: { databaseId: true, fields: true, grants: true, id: true, module: true, nodes: true, outFields: true, owns: true, policies: true, schemaId: true, tableId: true, tableName: true, useRls: true } }, }); // Get one secureTableProvision const { data: item } = useSecureTableProvisionQuery({ id: '', - selection: { fields: { databaseId: true, fields: true, grants: true, id: true, nodes: true, outFields: true, policies: true, schemaId: true, tableId: true, tableName: true, useRls: true } }, + selection: { fields: { databaseId: true, fields: true, grants: true, id: true, module: true, nodes: true, outFields: true, owns: true, policies: true, schemaId: true, tableId: true, tableName: true, useRls: true } }, }); // Create a secureTableProvision const { mutate: create } = useCreateSecureTableProvisionMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', fields: '', grants: '', nodes: '', outFields: '', policies: '', schemaId: '', tableId: '', tableName: '', useRls: '' }); +create({ databaseId: '', fields: '', grants: '', module: '', nodes: '', outFields: '', owns: '', policies: '', schemaId: '', tableId: '', tableName: '', useRls: '' }); ``` ### SessionSecretsModule @@ -2096,20 +2227,20 @@ create({ authSettingsTableId: '', authSettingsTableName: '', datab ```typescript // List all siteSurfaceModules const { data, isLoading } = 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 } }, + 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, siteReleasesTableId: true, siteReleasesTableName: true, siteThemesTableId: true, siteThemesTableName: true, siteWebConfigTableId: true, siteWebConfigTableName: true, sitesTableId: true, sitesTableName: true, storageKey: true } }, }); // Get one siteSurfaceModule const { data: item } = 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 } }, + 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, siteReleasesTableId: true, siteReleasesTableName: true, siteThemesTableId: true, siteThemesTableName: true, siteWebConfigTableId: true, siteWebConfigTableName: true, sitesTableId: true, sitesTableName: true, storageKey: true } }, }); // Create a siteSurfaceModule const { mutate: create } = useCreateSiteSurfaceModuleMutation({ selection: { fields: { id: true } }, }); -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: '' }); +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: '', siteReleasesTableId: '', siteReleasesTableName: '', siteThemesTableId: '', siteThemesTableName: '', siteWebConfigTableId: '', siteWebConfigTableName: '', sitesTableId: '', sitesTableName: '', storageKey: '' }); ``` ### StorageLogModule @@ -2117,20 +2248,20 @@ create({ apiName: '', catalogModuleId: '', databaseId: '', d ```typescript // List all storageLogModules const { data, isLoading } = useStorageLogModulesQuery({ - selection: { fields: { actorFkTableId: true, apiName: true, databaseId: true, entityField: true, entityFkTableId: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, schemaId: true, scope: true, storageLogTableId: true, storageLogTableName: true, usageSummaryTableId: true, usageSummaryTableName: true } }, + selection: { fields: { apiName: true, databaseId: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, rollupFunctionName: true, schemaId: true, scope: true, storageLogTableId: true, storageLogTableName: true, usageSummaryTableId: true, usageSummaryTableName: true } }, }); // Get one storageLogModule const { data: item } = useStorageLogModuleQuery({ id: '', - selection: { fields: { actorFkTableId: true, apiName: true, databaseId: true, entityField: true, entityFkTableId: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, schemaId: true, scope: true, storageLogTableId: true, storageLogTableName: true, usageSummaryTableId: true, usageSummaryTableName: true } }, + selection: { fields: { apiName: true, databaseId: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, rollupFunctionName: true, schemaId: true, scope: true, storageLogTableId: true, storageLogTableName: true, usageSummaryTableId: true, usageSummaryTableName: true } }, }); // Create a storageLogModule const { mutate: create } = useCreateStorageLogModuleMutation({ selection: { fields: { id: true } }, }); -create({ actorFkTableId: '', apiName: '', databaseId: '', entityField: '', entityFkTableId: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', retention: '', schemaId: '', scope: '', storageLogTableId: '', storageLogTableName: '', usageSummaryTableId: '', usageSummaryTableName: '' }); +create({ apiName: '', databaseId: '', entityField: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', retention: '', rollupFunctionName: '', schemaId: '', scope: '', storageLogTableId: '', storageLogTableName: '', usageSummaryTableId: '', usageSummaryTableName: '' }); ``` ### StorageModule @@ -2138,20 +2269,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, 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 } }, + 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, key: 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, 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 } }, + 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, key: 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: '', 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: '' }); +create({ allowedOrigins: '', apiName: '', bucketsTableId: '', bucketsTableName: '', cacheTtlSeconds: '', catalogModuleId: '', confirmUploadDelay: '', databaseId: '', defaultCapabilities: '', defaultMaxFileSize: '', downloadUrlExpirySeconds: '', endpoint: '', entityField: '', entityTableId: '', fileEventsTableId: '', filesTableId: '', filesTableName: '', hasAuditLog: '', hasConfirmUpload: '', hasContentHash: '', hasCustomKeys: '', hasPathShares: '', hasVersioning: '', key: '', maxBulkFiles: '', maxBulkTotalSize: '', maxFilenameLength: '', pathSharesTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provider: '', provisions: '', publicSchemaName: '', publicUrlPrefix: '', restrictReads: '', schemaId: '', scope: '', uploadUrlExpirySeconds: '' }); ``` ### TransferLogModule @@ -2159,20 +2290,20 @@ create({ allowedOrigins: '', apiName: '', bucketsTableId: '', - selection: { fields: { actorFkTableId: true, apiName: true, databaseId: true, entityField: true, entityFkTableId: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, schemaId: true, scope: true, transferLogTableId: true, transferLogTableName: true, usageSummaryTableId: true, usageSummaryTableName: true } }, + selection: { fields: { apiName: true, databaseId: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, rollupFunctionName: true, schemaId: true, scope: true, transferLogTableId: true, transferLogTableName: true, usageSummaryTableId: true, usageSummaryTableName: true } }, }); // Create a transferLogModule const { mutate: create } = useCreateTransferLogModuleMutation({ selection: { fields: { id: true } }, }); -create({ actorFkTableId: '', apiName: '', databaseId: '', entityField: '', entityFkTableId: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', retention: '', schemaId: '', scope: '', transferLogTableId: '', transferLogTableName: '', usageSummaryTableId: '', usageSummaryTableName: '' }); +create({ apiName: '', databaseId: '', entityField: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', retention: '', rollupFunctionName: '', schemaId: '', scope: '', transferLogTableId: '', transferLogTableName: '', usageSummaryTableId: '', usageSummaryTableName: '' }); ``` ### UserAuthModule @@ -2180,20 +2311,20 @@ create({ actorFkTableId: '', apiName: '', databaseId: '', en ```typescript // List all userAuthModules const { data, isLoading } = useUserAuthModulesQuery({ - selection: { fields: { apiName: true, auditsTableId: true, auditsTableName: true, checkPasswordFunction: true, databaseId: true, deleteAccountFunction: true, emailsTableId: true, encryptedTableId: true, extendTokenExpires: true, forgotPasswordFunction: true, id: true, privateApiName: true, requestCrossOriginTokenFunction: true, resetPasswordFunction: true, schemaId: true, secretsTableId: true, sendAccountDeletionEmailFunction: true, sendVerificationEmailFunction: true, sessionCredentialsTableId: true, sessionsTableId: true, setPasswordFunction: true, signInCrossOriginFunction: true, signInFunction: true, signOutFunction: true, signUpFunction: true, usersTableId: true, verifyEmailFunction: true, verifyPasswordFunction: true } }, + selection: { fields: { apiName: true, auditsTableId: true, auditsTableName: true, checkPasswordFunction: true, databaseId: true, deleteAccountFunction: true, emailsTableId: true, encryptedTableId: true, extendTokenExpires: true, forgotPasswordFunction: true, id: true, privateApiName: true, privateSchemaId: true, requestCrossOriginTokenFunction: true, resetPasswordFunction: true, revokeSessionTreeFunction: true, schemaId: true, secretsTableId: true, sendAccountDeletionEmailFunction: true, sendVerificationEmailFunction: true, sessionCredentialsTableId: true, sessionsTableId: true, setPasswordFunction: true, signInCrossOriginFunction: true, signInFunction: true, signOutFunction: true, signUpFunction: true, sweepExpiredSessionsFunction: true, usersTableId: true, verifyEmailFunction: true, verifyPasswordFunction: true } }, }); // Get one userAuthModule const { data: item } = useUserAuthModuleQuery({ id: '', - selection: { fields: { apiName: true, auditsTableId: true, auditsTableName: true, checkPasswordFunction: true, databaseId: true, deleteAccountFunction: true, emailsTableId: true, encryptedTableId: true, extendTokenExpires: true, forgotPasswordFunction: true, id: true, privateApiName: true, requestCrossOriginTokenFunction: true, resetPasswordFunction: true, schemaId: true, secretsTableId: true, sendAccountDeletionEmailFunction: true, sendVerificationEmailFunction: true, sessionCredentialsTableId: true, sessionsTableId: true, setPasswordFunction: true, signInCrossOriginFunction: true, signInFunction: true, signOutFunction: true, signUpFunction: true, usersTableId: true, verifyEmailFunction: true, verifyPasswordFunction: true } }, + selection: { fields: { apiName: true, auditsTableId: true, auditsTableName: true, checkPasswordFunction: true, databaseId: true, deleteAccountFunction: true, emailsTableId: true, encryptedTableId: true, extendTokenExpires: true, forgotPasswordFunction: true, id: true, privateApiName: true, privateSchemaId: true, requestCrossOriginTokenFunction: true, resetPasswordFunction: true, revokeSessionTreeFunction: true, schemaId: true, secretsTableId: true, sendAccountDeletionEmailFunction: true, sendVerificationEmailFunction: true, sessionCredentialsTableId: true, sessionsTableId: true, setPasswordFunction: true, signInCrossOriginFunction: true, signInFunction: true, signOutFunction: true, signUpFunction: true, sweepExpiredSessionsFunction: true, usersTableId: true, verifyEmailFunction: true, verifyPasswordFunction: true } }, }); // Create a userAuthModule const { mutate: create } = useCreateUserAuthModuleMutation({ selection: { fields: { id: true } }, }); -create({ apiName: '', auditsTableId: '', auditsTableName: '', checkPasswordFunction: '', databaseId: '', deleteAccountFunction: '', emailsTableId: '', encryptedTableId: '', extendTokenExpires: '', forgotPasswordFunction: '', privateApiName: '', requestCrossOriginTokenFunction: '', resetPasswordFunction: '', schemaId: '', secretsTableId: '', sendAccountDeletionEmailFunction: '', sendVerificationEmailFunction: '', sessionCredentialsTableId: '', sessionsTableId: '', setPasswordFunction: '', signInCrossOriginFunction: '', signInFunction: '', signOutFunction: '', signUpFunction: '', usersTableId: '', verifyEmailFunction: '', verifyPasswordFunction: '' }); +create({ apiName: '', auditsTableId: '', auditsTableName: '', checkPasswordFunction: '', databaseId: '', deleteAccountFunction: '', emailsTableId: '', encryptedTableId: '', extendTokenExpires: '', forgotPasswordFunction: '', privateApiName: '', privateSchemaId: '', requestCrossOriginTokenFunction: '', resetPasswordFunction: '', revokeSessionTreeFunction: '', schemaId: '', secretsTableId: '', sendAccountDeletionEmailFunction: '', sendVerificationEmailFunction: '', sessionCredentialsTableId: '', sessionsTableId: '', setPasswordFunction: '', signInCrossOriginFunction: '', signInFunction: '', signOutFunction: '', signUpFunction: '', sweepExpiredSessionsFunction: '', usersTableId: '', verifyEmailFunction: '', verifyPasswordFunction: '' }); ``` ### UserCredentialsModule @@ -2368,7 +2499,7 @@ create({ apiName: '', databaseId: '', defaultCapabilities: ' + /** Invalidate clusterModule queries */ clusterModule: { + /** Invalidate all clusterModule queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: computeLogModuleKeys.all, + queryKey: clusterModuleKeys.all, }), - /** Invalidate computeLogModule list queries */ lists: (queryClient: QueryClient) => + /** Invalidate clusterModule list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: computeLogModuleKeys.lists(), + queryKey: clusterModuleKeys.lists(), }), - /** Invalidate a specific computeLogModule */ detail: ( + /** Invalidate a specific clusterModule */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: computeLogModuleKeys.detail(id), + queryKey: clusterModuleKeys.detail(id), }), }, - /** Invalidate configSecretsUserModule queries */ configSecretsUserModule: { - /** Invalidate all configSecretsUserModule queries */ all: (queryClient: QueryClient) => + /** Invalidate computeLogModule queries */ computeLogModule: { + /** Invalidate all computeLogModule queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: configSecretsUserModuleKeys.all, + queryKey: computeLogModuleKeys.all, }), - /** Invalidate configSecretsUserModule list queries */ lists: (queryClient: QueryClient) => + /** Invalidate computeLogModule list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: configSecretsUserModuleKeys.lists(), + queryKey: computeLogModuleKeys.lists(), }), - /** Invalidate a specific configSecretsUserModule */ detail: ( + /** Invalidate a specific computeLogModule */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: configSecretsUserModuleKeys.detail(id), + queryKey: computeLogModuleKeys.detail(id), }), }, /** Invalidate connectedAccountsModule queries */ connectedAccountsModule: { @@ -762,23 +767,6 @@ export const invalidate = { queryKey: hierarchyModuleKeys.detail(id), }), }, - /** Invalidate httpRouteModule queries */ httpRouteModule: { - /** Invalidate all httpRouteModule queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: httpRouteModuleKeys.all, - }), - /** Invalidate httpRouteModule list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: httpRouteModuleKeys.lists(), - }), - /** Invalidate a specific httpRouteModule */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: httpRouteModuleKeys.detail(id), - }), - }, /** Invalidate i18NModule queries */ i18NModule: { /** Invalidate all i18NModule queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -813,6 +801,23 @@ export const invalidate = { queryKey: identityProvidersModuleKeys.detail(id), }), }, + /** Invalidate imageModule queries */ imageModule: { + /** Invalidate all imageModule queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: imageModuleKeys.all, + }), + /** Invalidate imageModule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: imageModuleKeys.lists(), + }), + /** Invalidate a specific imageModule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: imageModuleKeys.detail(id), + }), + }, /** Invalidate inferenceLogModule queries */ inferenceLogModule: { /** Invalidate all inferenceLogModule queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -881,6 +886,23 @@ export const invalidate = { queryKey: integrationProvidersModuleKeys.detail(id), }), }, + /** Invalidate internalConfigModule queries */ internalConfigModule: { + /** Invalidate all internalConfigModule queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: internalConfigModuleKeys.all, + }), + /** Invalidate internalConfigModule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: internalConfigModuleKeys.lists(), + }), + /** Invalidate a specific internalConfigModule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: internalConfigModuleKeys.detail(id), + }), + }, /** Invalidate internalSecretsModule queries */ internalSecretsModule: { /** Invalidate all internalSecretsModule queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -915,6 +937,23 @@ export const invalidate = { queryKey: invitesModuleKeys.detail(id), }), }, + /** Invalidate k8sAdmissionModule queries */ k8sAdmissionModule: { + /** Invalidate all k8sAdmissionModule queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: k8sAdmissionModuleKeys.all, + }), + /** Invalidate k8sAdmissionModule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: k8sAdmissionModuleKeys.lists(), + }), + /** Invalidate a specific k8sAdmissionModule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: k8sAdmissionModuleKeys.detail(id), + }), + }, /** Invalidate limitsModule queries */ limitsModule: { /** Invalidate all limitsModule queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -932,6 +971,23 @@ export const invalidate = { queryKey: limitsModuleKeys.detail(id), }), }, + /** Invalidate machineModule queries */ machineModule: { + /** Invalidate all machineModule queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: machineModuleKeys.all, + }), + /** Invalidate machineModule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: machineModuleKeys.lists(), + }), + /** Invalidate a specific machineModule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: machineModuleKeys.detail(id), + }), + }, /** Invalidate membershipTypesModule queries */ membershipTypesModule: { /** Invalidate all membershipTypesModule queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -1170,6 +1226,23 @@ export const invalidate = { queryKey: realtimeModuleKeys.detail(id), }), }, + /** Invalidate refusalLogModule queries */ refusalLogModule: { + /** Invalidate all refusalLogModule queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: refusalLogModuleKeys.all, + }), + /** Invalidate refusalLogModule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: refusalLogModuleKeys.lists(), + }), + /** Invalidate a specific refusalLogModule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: refusalLogModuleKeys.detail(id), + }), + }, /** Invalidate relationProvision queries */ relationProvision: { /** Invalidate all relationProvision queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -1187,6 +1260,23 @@ export const invalidate = { queryKey: relationProvisionKeys.detail(id), }), }, + /** Invalidate repositoryModule queries */ repositoryModule: { + /** Invalidate all repositoryModule queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: repositoryModuleKeys.all, + }), + /** Invalidate repositoryModule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: repositoryModuleKeys.lists(), + }), + /** Invalidate a specific repositoryModule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: repositoryModuleKeys.detail(id), + }), + }, /** Invalidate resourceModule queries */ resourceModule: { /** Invalidate all resourceModule queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -1614,20 +1704,20 @@ export const remove = { queryKey: catalogModuleKeys.detail(id), }); }, - /** Remove computeLogModule from cache */ computeLogModule: ( + /** Remove clusterModule from cache */ clusterModule: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: computeLogModuleKeys.detail(id), + queryKey: clusterModuleKeys.detail(id), }); }, - /** Remove configSecretsUserModule from cache */ configSecretsUserModule: ( + /** Remove computeLogModule from cache */ computeLogModule: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: configSecretsUserModuleKeys.detail(id), + queryKey: computeLogModuleKeys.detail(id), }); }, /** Remove connectedAccountsModule from cache */ connectedAccountsModule: ( @@ -1835,28 +1925,28 @@ export const remove = { queryKey: hierarchyModuleKeys.detail(id), }); }, - /** Remove httpRouteModule from cache */ httpRouteModule: ( + /** Remove i18NModule from cache */ i18NModule: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: httpRouteModuleKeys.detail(id), + queryKey: i18NModuleKeys.detail(id), }); }, - /** Remove i18NModule from cache */ i18NModule: ( + /** Remove identityProvidersModule from cache */ identityProvidersModule: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: i18NModuleKeys.detail(id), + queryKey: identityProvidersModuleKeys.detail(id), }); }, - /** Remove identityProvidersModule from cache */ identityProvidersModule: ( + /** Remove imageModule from cache */ imageModule: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: identityProvidersModuleKeys.detail(id), + queryKey: imageModuleKeys.detail(id), }); }, /** Remove inferenceLogModule from cache */ inferenceLogModule: ( @@ -1891,6 +1981,14 @@ export const remove = { queryKey: integrationProvidersModuleKeys.detail(id), }); }, + /** Remove internalConfigModule from cache */ internalConfigModule: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: internalConfigModuleKeys.detail(id), + }); + }, /** Remove internalSecretsModule from cache */ internalSecretsModule: ( queryClient: QueryClient, id: string | number @@ -1907,6 +2005,14 @@ export const remove = { queryKey: invitesModuleKeys.detail(id), }); }, + /** Remove k8sAdmissionModule from cache */ k8sAdmissionModule: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: k8sAdmissionModuleKeys.detail(id), + }); + }, /** Remove limitsModule from cache */ limitsModule: ( queryClient: QueryClient, id: string | number @@ -1915,6 +2021,14 @@ export const remove = { queryKey: limitsModuleKeys.detail(id), }); }, + /** Remove machineModule from cache */ machineModule: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: machineModuleKeys.detail(id), + }); + }, /** Remove membershipTypesModule from cache */ membershipTypesModule: ( queryClient: QueryClient, id: string | number @@ -2027,6 +2141,14 @@ export const remove = { queryKey: realtimeModuleKeys.detail(id), }); }, + /** Remove refusalLogModule from cache */ refusalLogModule: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: refusalLogModuleKeys.detail(id), + }); + }, /** Remove relationProvision from cache */ relationProvision: ( queryClient: QueryClient, id: string | number @@ -2035,6 +2157,14 @@ export const remove = { queryKey: relationProvisionKeys.detail(id), }); }, + /** Remove repositoryModule from cache */ repositoryModule: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: repositoryModuleKeys.detail(id), + }); + }, /** Remove resourceModule from cache */ resourceModule: ( 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 4a5f10aa7f..b9cc9349f2 100644 --- a/sdk/constructive-react/src/modules/hooks/mutation-keys.ts +++ b/sdk/constructive-react/src/modules/hooks/mutation-keys.ts @@ -112,6 +112,15 @@ export const catalogModuleMutationKeys = { /** Delete catalogModule mutation key */ delete: (id: string | number) => ['mutation', 'catalogmodule', 'delete', id] as const, } as const; +export const clusterModuleMutationKeys = { + /** All clusterModule mutation keys */ all: ['mutation', 'clustermodule'] as const, + /** Create clusterModule mutation key */ create: () => + ['mutation', 'clustermodule', 'create'] as const, + /** Update clusterModule mutation key */ update: (id: string | number) => + ['mutation', 'clustermodule', 'update', id] as const, + /** Delete clusterModule mutation key */ delete: (id: string | number) => + ['mutation', 'clustermodule', 'delete', id] as const, +} as const; export const computeLogModuleMutationKeys = { /** All computeLogModule mutation keys */ all: ['mutation', 'computelogmodule'] as const, /** Create computeLogModule mutation key */ create: () => @@ -121,18 +130,6 @@ export const computeLogModuleMutationKeys = { /** Delete computeLogModule mutation key */ delete: (id: string | number) => ['mutation', 'computelogmodule', 'delete', id] as const, } as const; -export const configSecretsUserModuleMutationKeys = { - /** All configSecretsUserModule mutation keys */ all: [ - 'mutation', - 'configsecretsusermodule', - ] as const, - /** Create configSecretsUserModule mutation key */ create: () => - ['mutation', 'configsecretsusermodule', 'create'] as const, - /** Update configSecretsUserModule mutation key */ update: (id: string | number) => - ['mutation', 'configsecretsusermodule', 'update', id] as const, - /** Delete configSecretsUserModule mutation key */ delete: (id: string | number) => - ['mutation', 'configsecretsusermodule', 'delete', id] as const, -} as const; export const connectedAccountsModuleMutationKeys = { /** All connectedAccountsModule mutation keys */ all: [ 'mutation', @@ -390,15 +387,6 @@ export const hierarchyModuleMutationKeys = { /** Delete hierarchyModule mutation key */ delete: (id: string | number) => ['mutation', 'hierarchymodule', 'delete', id] as const, } as const; -export const httpRouteModuleMutationKeys = { - /** All httpRouteModule mutation keys */ all: ['mutation', 'httproutemodule'] as const, - /** Create httpRouteModule mutation key */ create: () => - ['mutation', 'httproutemodule', 'create'] as const, - /** Update httpRouteModule mutation key */ update: (id: string | number) => - ['mutation', 'httproutemodule', 'update', id] as const, - /** Delete httpRouteModule mutation key */ delete: (id: string | number) => - ['mutation', 'httproutemodule', 'delete', id] as const, -} as const; export const i18NModuleMutationKeys = { /** All i18NModule mutation keys */ all: ['mutation', 'i18nmodule'] as const, /** Create i18NModule mutation key */ create: () => ['mutation', 'i18nmodule', 'create'] as const, @@ -419,6 +407,15 @@ export const identityProvidersModuleMutationKeys = { /** Delete identityProvidersModule mutation key */ delete: (id: string | number) => ['mutation', 'identityprovidersmodule', 'delete', id] as const, } as const; +export const imageModuleMutationKeys = { + /** All imageModule mutation keys */ all: ['mutation', 'imagemodule'] as const, + /** Create imageModule mutation key */ create: () => + ['mutation', 'imagemodule', 'create'] as const, + /** Update imageModule mutation key */ update: (id: string | number) => + ['mutation', 'imagemodule', 'update', id] as const, + /** Delete imageModule mutation key */ delete: (id: string | number) => + ['mutation', 'imagemodule', 'delete', id] as const, +} as const; export const inferenceLogModuleMutationKeys = { /** All inferenceLogModule mutation keys */ all: ['mutation', 'inferencelogmodule'] as const, /** Create inferenceLogModule mutation key */ create: () => @@ -458,6 +455,15 @@ export const integrationProvidersModuleMutationKeys = { /** Delete integrationProvidersModule mutation key */ delete: (id: string | number) => ['mutation', 'integrationprovidersmodule', 'delete', id] as const, } as const; +export const internalConfigModuleMutationKeys = { + /** All internalConfigModule mutation keys */ all: ['mutation', 'internalconfigmodule'] as const, + /** Create internalConfigModule mutation key */ create: () => + ['mutation', 'internalconfigmodule', 'create'] as const, + /** Update internalConfigModule mutation key */ update: (id: string | number) => + ['mutation', 'internalconfigmodule', 'update', id] as const, + /** Delete internalConfigModule mutation key */ delete: (id: string | number) => + ['mutation', 'internalconfigmodule', 'delete', id] as const, +} as const; export const internalSecretsModuleMutationKeys = { /** All internalSecretsModule mutation keys */ all: [ 'mutation', @@ -479,6 +485,15 @@ export const invitesModuleMutationKeys = { /** Delete invitesModule mutation key */ delete: (id: string | number) => ['mutation', 'invitesmodule', 'delete', id] as const, } as const; +export const k8sAdmissionModuleMutationKeys = { + /** All k8sAdmissionModule mutation keys */ all: ['mutation', 'k8sadmissionmodule'] as const, + /** Create k8sAdmissionModule mutation key */ create: () => + ['mutation', 'k8sadmissionmodule', 'create'] as const, + /** Update k8sAdmissionModule mutation key */ update: (id: string | number) => + ['mutation', 'k8sadmissionmodule', 'update', id] as const, + /** Delete k8sAdmissionModule mutation key */ delete: (id: string | number) => + ['mutation', 'k8sadmissionmodule', 'delete', id] as const, +} as const; export const limitsModuleMutationKeys = { /** All limitsModule mutation keys */ all: ['mutation', 'limitsmodule'] as const, /** Create limitsModule mutation key */ create: () => @@ -488,6 +503,15 @@ export const limitsModuleMutationKeys = { /** Delete limitsModule mutation key */ delete: (id: string | number) => ['mutation', 'limitsmodule', 'delete', id] as const, } as const; +export const machineModuleMutationKeys = { + /** All machineModule mutation keys */ all: ['mutation', 'machinemodule'] as const, + /** Create machineModule mutation key */ create: () => + ['mutation', 'machinemodule', 'create'] as const, + /** Update machineModule mutation key */ update: (id: string | number) => + ['mutation', 'machinemodule', 'update', id] as const, + /** Delete machineModule mutation key */ delete: (id: string | number) => + ['mutation', 'machinemodule', 'delete', id] as const, +} as const; export const membershipTypesModuleMutationKeys = { /** All membershipTypesModule mutation keys */ all: [ 'mutation', @@ -620,6 +644,15 @@ export const realtimeModuleMutationKeys = { /** Delete realtimeModule mutation key */ delete: (id: string | number) => ['mutation', 'realtimemodule', 'delete', id] as const, } as const; +export const refusalLogModuleMutationKeys = { + /** All refusalLogModule mutation keys */ all: ['mutation', 'refusallogmodule'] as const, + /** Create refusalLogModule mutation key */ create: () => + ['mutation', 'refusallogmodule', 'create'] as const, + /** Update refusalLogModule mutation key */ update: (id: string | number) => + ['mutation', 'refusallogmodule', 'update', id] as const, + /** Delete refusalLogModule mutation key */ delete: (id: string | number) => + ['mutation', 'refusallogmodule', 'delete', id] as const, +} as const; export const relationProvisionMutationKeys = { /** All relationProvision mutation keys */ all: ['mutation', 'relationprovision'] as const, /** Create relationProvision mutation key */ create: () => @@ -629,6 +662,15 @@ export const relationProvisionMutationKeys = { /** Delete relationProvision mutation key */ delete: (id: string | number) => ['mutation', 'relationprovision', 'delete', id] as const, } as const; +export const repositoryModuleMutationKeys = { + /** All repositoryModule mutation keys */ all: ['mutation', 'repositorymodule'] as const, + /** Create repositoryModule mutation key */ create: () => + ['mutation', 'repositorymodule', 'create'] as const, + /** Update repositoryModule mutation key */ update: (id: string | number) => + ['mutation', 'repositorymodule', 'update', id] as const, + /** Delete repositoryModule mutation key */ delete: (id: string | number) => + ['mutation', 'repositorymodule', 'delete', id] as const, +} as const; export const resourceModuleMutationKeys = { /** All resourceModule mutation keys */ all: ['mutation', 'resourcemodule'] as const, /** Create resourceModule mutation key */ create: () => @@ -869,8 +911,8 @@ export const mutationKeys = { blueprintTemplate: blueprintTemplateMutationKeys, capabilitiesModule: capabilitiesModuleMutationKeys, catalogModule: catalogModuleMutationKeys, + clusterModule: clusterModuleMutationKeys, computeLogModule: computeLogModuleMutationKeys, - configSecretsUserModule: configSecretsUserModuleMutationKeys, connectedAccountsModule: connectedAccountsModuleMutationKeys, contentPresetModule: contentPresetModuleMutationKeys, cryptoAddressesModule: cryptoAddressesModuleMutationKeys, @@ -897,16 +939,19 @@ export const mutationKeys = { graphExecutionModule: graphExecutionModuleMutationKeys, graphModule: graphModuleMutationKeys, hierarchyModule: hierarchyModuleMutationKeys, - httpRouteModule: httpRouteModuleMutationKeys, i18NModule: i18NModuleMutationKeys, identityProvidersModule: identityProvidersModuleMutationKeys, + imageModule: imageModuleMutationKeys, inferenceLogModule: inferenceLogModuleMutationKeys, infraConfigModule: infraConfigModuleMutationKeys, infraSecretsModule: infraSecretsModuleMutationKeys, integrationProvidersModule: integrationProvidersModuleMutationKeys, + internalConfigModule: internalConfigModuleMutationKeys, internalSecretsModule: internalSecretsModuleMutationKeys, invitesModule: invitesModuleMutationKeys, + k8sAdmissionModule: k8sAdmissionModuleMutationKeys, limitsModule: limitsModuleMutationKeys, + machineModule: machineModuleMutationKeys, membershipTypesModule: membershipTypesModuleMutationKeys, membershipsModule: membershipsModuleMutationKeys, merkleStoreModule: merkleStoreModuleMutationKeys, @@ -921,7 +966,9 @@ export const mutationKeys = { rateLimitMetersModule: rateLimitMetersModuleMutationKeys, rateLimitsModule: rateLimitsModuleMutationKeys, realtimeModule: realtimeModuleMutationKeys, + refusalLogModule: refusalLogModuleMutationKeys, relationProvision: relationProvisionMutationKeys, + repositoryModule: repositoryModuleMutationKeys, resourceModule: resourceModuleMutationKeys, rlsModule: rlsModuleMutationKeys, routeModule: routeModuleMutationKeys, diff --git a/sdk/constructive-react/src/modules/hooks/mutations/index.ts b/sdk/constructive-react/src/modules/hooks/mutations/index.ts index f0869015b6..fe5cd05193 100644 --- a/sdk/constructive-react/src/modules/hooks/mutations/index.ts +++ b/sdk/constructive-react/src/modules/hooks/mutations/index.ts @@ -33,12 +33,12 @@ export * from './useDeleteCapabilitiesModuleMutation'; export * from './useCreateCatalogModuleMutation'; export * from './useUpdateCatalogModuleMutation'; export * from './useDeleteCatalogModuleMutation'; +export * from './useCreateClusterModuleMutation'; +export * from './useUpdateClusterModuleMutation'; +export * from './useDeleteClusterModuleMutation'; export * from './useCreateComputeLogModuleMutation'; export * from './useUpdateComputeLogModuleMutation'; export * from './useDeleteComputeLogModuleMutation'; -export * from './useCreateConfigSecretsUserModuleMutation'; -export * from './useUpdateConfigSecretsUserModuleMutation'; -export * from './useDeleteConfigSecretsUserModuleMutation'; export * from './useCreateConnectedAccountsModuleMutation'; export * from './useUpdateConnectedAccountsModuleMutation'; export * from './useDeleteConnectedAccountsModuleMutation'; @@ -117,15 +117,15 @@ export * from './useDeleteGraphModuleMutation'; export * from './useCreateHierarchyModuleMutation'; export * from './useUpdateHierarchyModuleMutation'; export * from './useDeleteHierarchyModuleMutation'; -export * from './useCreateHttpRouteModuleMutation'; -export * from './useUpdateHttpRouteModuleMutation'; -export * from './useDeleteHttpRouteModuleMutation'; export * from './useCreateI18NModuleMutation'; export * from './useUpdateI18NModuleMutation'; export * from './useDeleteI18NModuleMutation'; export * from './useCreateIdentityProvidersModuleMutation'; export * from './useUpdateIdentityProvidersModuleMutation'; export * from './useDeleteIdentityProvidersModuleMutation'; +export * from './useCreateImageModuleMutation'; +export * from './useUpdateImageModuleMutation'; +export * from './useDeleteImageModuleMutation'; export * from './useCreateInferenceLogModuleMutation'; export * from './useUpdateInferenceLogModuleMutation'; export * from './useDeleteInferenceLogModuleMutation'; @@ -138,15 +138,24 @@ export * from './useDeleteInfraSecretsModuleMutation'; export * from './useCreateIntegrationProvidersModuleMutation'; export * from './useUpdateIntegrationProvidersModuleMutation'; export * from './useDeleteIntegrationProvidersModuleMutation'; +export * from './useCreateInternalConfigModuleMutation'; +export * from './useUpdateInternalConfigModuleMutation'; +export * from './useDeleteInternalConfigModuleMutation'; export * from './useCreateInternalSecretsModuleMutation'; export * from './useUpdateInternalSecretsModuleMutation'; export * from './useDeleteInternalSecretsModuleMutation'; export * from './useCreateInvitesModuleMutation'; export * from './useUpdateInvitesModuleMutation'; export * from './useDeleteInvitesModuleMutation'; +export * from './useCreateK8sAdmissionModuleMutation'; +export * from './useUpdateK8sAdmissionModuleMutation'; +export * from './useDeleteK8sAdmissionModuleMutation'; export * from './useCreateLimitsModuleMutation'; export * from './useUpdateLimitsModuleMutation'; export * from './useDeleteLimitsModuleMutation'; +export * from './useCreateMachineModuleMutation'; +export * from './useUpdateMachineModuleMutation'; +export * from './useDeleteMachineModuleMutation'; export * from './useCreateMembershipTypesModuleMutation'; export * from './useUpdateMembershipTypesModuleMutation'; export * from './useDeleteMembershipTypesModuleMutation'; @@ -189,9 +198,15 @@ export * from './useDeleteRateLimitsModuleMutation'; export * from './useCreateRealtimeModuleMutation'; export * from './useUpdateRealtimeModuleMutation'; export * from './useDeleteRealtimeModuleMutation'; +export * from './useCreateRefusalLogModuleMutation'; +export * from './useUpdateRefusalLogModuleMutation'; +export * from './useDeleteRefusalLogModuleMutation'; export * from './useCreateRelationProvisionMutation'; export * from './useUpdateRelationProvisionMutation'; export * from './useDeleteRelationProvisionMutation'; +export * from './useCreateRepositoryModuleMutation'; +export * from './useUpdateRepositoryModuleMutation'; +export * from './useDeleteRepositoryModuleMutation'; export * from './useCreateResourceModuleMutation'; export * from './useUpdateResourceModuleMutation'; export * from './useDeleteResourceModuleMutation'; diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useCreateClusterModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useCreateClusterModuleMutation.ts new file mode 100644 index 0000000000..325b8cab76 --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/mutations/useCreateClusterModuleMutation.ts @@ -0,0 +1,88 @@ +/** + * Create mutation hook for ClusterModule + * @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 { clusterModuleKeys } from '../query-keys'; +import { clusterModuleMutationKeys } from '../mutation-keys'; +import type { + ClusterModuleSelect, + ClusterModuleWithRelations, + CreateClusterModuleInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + ClusterModuleSelect, + ClusterModuleWithRelations, + CreateClusterModuleInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a ClusterModule + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateClusterModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateClusterModuleMutation( + params: { + selection: { + fields: S & ClusterModuleSelect; + } & HookStrictSelect, ClusterModuleSelect>; + } & Omit< + UseMutationOptions< + { + createClusterModule: { + clusterModule: InferSelectResult; + }; + }, + Error, + CreateClusterModuleInput['clusterModule'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createClusterModule: { + clusterModule: InferSelectResult; + }; + }, + Error, + CreateClusterModuleInput['clusterModule'] +>; +export function useCreateClusterModuleMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: clusterModuleMutationKeys.create(), + mutationFn: (data: CreateClusterModuleInput['clusterModule']) => + getClient() + .clusterModule.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: clusterModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useCreateConfigSecretsUserModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useCreateConfigSecretsUserModuleMutation.ts deleted file mode 100644 index e3765bf61b..0000000000 --- a/sdk/constructive-react/src/modules/hooks/mutations/useCreateConfigSecretsUserModuleMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Create mutation hook for ConfigSecretsUserModule - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { configSecretsUserModuleKeys } from '../query-keys'; -import { configSecretsUserModuleMutationKeys } from '../mutation-keys'; -import type { - ConfigSecretsUserModuleSelect, - ConfigSecretsUserModuleWithRelations, - CreateConfigSecretsUserModuleInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - ConfigSecretsUserModuleSelect, - ConfigSecretsUserModuleWithRelations, - CreateConfigSecretsUserModuleInput, -} from '../../orm/input-types'; -/** - * Mutation hook for creating a ConfigSecretsUserModule - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateConfigSecretsUserModuleMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateConfigSecretsUserModuleMutation( - params: { - selection: { - fields: S & ConfigSecretsUserModuleSelect; - } & HookStrictSelect, ConfigSecretsUserModuleSelect>; - } & Omit< - UseMutationOptions< - { - createConfigSecretsUserModule: { - configSecretsUserModule: InferSelectResult; - }; - }, - Error, - CreateConfigSecretsUserModuleInput['configSecretsUserModule'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createConfigSecretsUserModule: { - configSecretsUserModule: InferSelectResult; - }; - }, - Error, - CreateConfigSecretsUserModuleInput['configSecretsUserModule'] ->; -export function useCreateConfigSecretsUserModuleMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: configSecretsUserModuleMutationKeys.create(), - mutationFn: (data: CreateConfigSecretsUserModuleInput['configSecretsUserModule']) => - getClient() - .configSecretsUserModule.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: configSecretsUserModuleKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useCreateHttpRouteModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useCreateHttpRouteModuleMutation.ts deleted file mode 100644 index b0676e060b..0000000000 --- a/sdk/constructive-react/src/modules/hooks/mutations/useCreateHttpRouteModuleMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Create mutation hook for HttpRouteModule - * @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 { httpRouteModuleKeys } from '../query-keys'; -import { httpRouteModuleMutationKeys } from '../mutation-keys'; -import type { - HttpRouteModuleSelect, - HttpRouteModuleWithRelations, - CreateHttpRouteModuleInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - HttpRouteModuleSelect, - HttpRouteModuleWithRelations, - CreateHttpRouteModuleInput, -} from '../../orm/input-types'; -/** - * Mutation hook for creating a HttpRouteModule - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateHttpRouteModuleMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateHttpRouteModuleMutation( - params: { - selection: { - fields: S & HttpRouteModuleSelect; - } & HookStrictSelect, HttpRouteModuleSelect>; - } & Omit< - UseMutationOptions< - { - createHttpRouteModule: { - httpRouteModule: InferSelectResult; - }; - }, - Error, - CreateHttpRouteModuleInput['httpRouteModule'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createHttpRouteModule: { - httpRouteModule: InferSelectResult; - }; - }, - Error, - CreateHttpRouteModuleInput['httpRouteModule'] ->; -export function useCreateHttpRouteModuleMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: httpRouteModuleMutationKeys.create(), - mutationFn: (data: CreateHttpRouteModuleInput['httpRouteModule']) => - getClient() - .httpRouteModule.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: httpRouteModuleKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useCreateImageModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useCreateImageModuleMutation.ts new file mode 100644 index 0000000000..0b7776640b --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/mutations/useCreateImageModuleMutation.ts @@ -0,0 +1,88 @@ +/** + * Create mutation hook for ImageModule + * @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 { imageModuleKeys } from '../query-keys'; +import { imageModuleMutationKeys } from '../mutation-keys'; +import type { + ImageModuleSelect, + ImageModuleWithRelations, + CreateImageModuleInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + ImageModuleSelect, + ImageModuleWithRelations, + CreateImageModuleInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a ImageModule + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateImageModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateImageModuleMutation( + params: { + selection: { + fields: S & ImageModuleSelect; + } & HookStrictSelect, ImageModuleSelect>; + } & Omit< + UseMutationOptions< + { + createImageModule: { + imageModule: InferSelectResult; + }; + }, + Error, + CreateImageModuleInput['imageModule'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createImageModule: { + imageModule: InferSelectResult; + }; + }, + Error, + CreateImageModuleInput['imageModule'] +>; +export function useCreateImageModuleMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: imageModuleMutationKeys.create(), + mutationFn: (data: CreateImageModuleInput['imageModule']) => + getClient() + .imageModule.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: imageModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useCreateInternalConfigModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useCreateInternalConfigModuleMutation.ts new file mode 100644 index 0000000000..58464bb73e --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/mutations/useCreateInternalConfigModuleMutation.ts @@ -0,0 +1,91 @@ +/** + * Scope-aware plaintext internal config store. No namespace_module dependency and no K8s synchronization: values are read from the database at invocation time. Configuration that must be projected into a Kubernetes ConfigMap belongs in infra_config_module. + * @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 { internalConfigModuleKeys } from '../query-keys'; +import { internalConfigModuleMutationKeys } from '../mutation-keys'; +import type { + InternalConfigModuleSelect, + InternalConfigModuleWithRelations, + CreateInternalConfigModuleInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + InternalConfigModuleSelect, + InternalConfigModuleWithRelations, + CreateInternalConfigModuleInput, +} from '../../orm/input-types'; +/** + * Scope-aware plaintext internal config store. No namespace_module dependency and no K8s synchronization: values are read from the database at invocation time. Configuration that must be projected into a Kubernetes ConfigMap belongs in infra_config_module. + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateInternalConfigModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateInternalConfigModuleMutation( + params: { + selection: { + fields: S & InternalConfigModuleSelect; + } & HookStrictSelect, InternalConfigModuleSelect>; + } & Omit< + UseMutationOptions< + { + createInternalConfigModule: { + internalConfigModule: InferSelectResult; + }; + }, + Error, + CreateInternalConfigModuleInput['internalConfigModule'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createInternalConfigModule: { + internalConfigModule: InferSelectResult; + }; + }, + Error, + CreateInternalConfigModuleInput['internalConfigModule'] +>; +export function useCreateInternalConfigModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: internalConfigModuleMutationKeys.create(), + mutationFn: (data: CreateInternalConfigModuleInput['internalConfigModule']) => + getClient() + .internalConfigModule.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: internalConfigModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useCreateK8sAdmissionModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useCreateK8sAdmissionModuleMutation.ts new file mode 100644 index 0000000000..36ac920755 --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/mutations/useCreateK8sAdmissionModuleMutation.ts @@ -0,0 +1,91 @@ +/** + * Provisions the platform-managed Kubernetes admission catalogs: a kinds table and a spec-rules table, Merkle-versioned through the referenced merkle_store_module, whose rows the generated admission gate on resources/resource_definitions reads. Writes are platform-admin and human-only; every scope reads the one catalog. + * @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 { k8sAdmissionModuleKeys } from '../query-keys'; +import { k8sAdmissionModuleMutationKeys } from '../mutation-keys'; +import type { + K8sAdmissionModuleSelect, + K8sAdmissionModuleWithRelations, + CreateK8sAdmissionModuleInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + K8sAdmissionModuleSelect, + K8sAdmissionModuleWithRelations, + CreateK8sAdmissionModuleInput, +} from '../../orm/input-types'; +/** + * Provisions the platform-managed Kubernetes admission catalogs: a kinds table and a spec-rules table, Merkle-versioned through the referenced merkle_store_module, whose rows the generated admission gate on resources/resource_definitions reads. Writes are platform-admin and human-only; every scope reads the one catalog. + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateK8sAdmissionModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateK8sAdmissionModuleMutation( + params: { + selection: { + fields: S & K8sAdmissionModuleSelect; + } & HookStrictSelect, K8sAdmissionModuleSelect>; + } & Omit< + UseMutationOptions< + { + createK8sAdmissionModule: { + k8sAdmissionModule: InferSelectResult; + }; + }, + Error, + CreateK8sAdmissionModuleInput['k8sAdmissionModule'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createK8sAdmissionModule: { + k8sAdmissionModule: InferSelectResult; + }; + }, + Error, + CreateK8sAdmissionModuleInput['k8sAdmissionModule'] +>; +export function useCreateK8sAdmissionModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: k8sAdmissionModuleMutationKeys.create(), + mutationFn: (data: CreateK8sAdmissionModuleInput['k8sAdmissionModule']) => + getClient() + .k8sAdmissionModule.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: k8sAdmissionModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useCreateMachineModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useCreateMachineModuleMutation.ts new file mode 100644 index 0000000000..ce2e712bd0 --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/mutations/useCreateMachineModuleMutation.ts @@ -0,0 +1,88 @@ +/** + * Create mutation hook for MachineModule + * @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 { machineModuleKeys } from '../query-keys'; +import { machineModuleMutationKeys } from '../mutation-keys'; +import type { + MachineModuleSelect, + MachineModuleWithRelations, + CreateMachineModuleInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + MachineModuleSelect, + MachineModuleWithRelations, + CreateMachineModuleInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a MachineModule + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateMachineModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateMachineModuleMutation( + params: { + selection: { + fields: S & MachineModuleSelect; + } & HookStrictSelect, MachineModuleSelect>; + } & Omit< + UseMutationOptions< + { + createMachineModule: { + machineModule: InferSelectResult; + }; + }, + Error, + CreateMachineModuleInput['machineModule'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createMachineModule: { + machineModule: InferSelectResult; + }; + }, + Error, + CreateMachineModuleInput['machineModule'] +>; +export function useCreateMachineModuleMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: machineModuleMutationKeys.create(), + mutationFn: (data: CreateMachineModuleInput['machineModule']) => + getClient() + .machineModule.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: machineModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useCreateRefusalLogModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useCreateRefusalLogModuleMutation.ts new file mode 100644 index 0000000000..92696dfd97 --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/mutations/useCreateRefusalLogModuleMutation.ts @@ -0,0 +1,91 @@ +/** + * Create mutation hook for RefusalLogModule + * @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 { refusalLogModuleKeys } from '../query-keys'; +import { refusalLogModuleMutationKeys } from '../mutation-keys'; +import type { + RefusalLogModuleSelect, + RefusalLogModuleWithRelations, + CreateRefusalLogModuleInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + RefusalLogModuleSelect, + RefusalLogModuleWithRelations, + CreateRefusalLogModuleInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a RefusalLogModule + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateRefusalLogModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateRefusalLogModuleMutation( + params: { + selection: { + fields: S & RefusalLogModuleSelect; + } & HookStrictSelect, RefusalLogModuleSelect>; + } & Omit< + UseMutationOptions< + { + createRefusalLogModule: { + refusalLogModule: InferSelectResult; + }; + }, + Error, + CreateRefusalLogModuleInput['refusalLogModule'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createRefusalLogModule: { + refusalLogModule: InferSelectResult; + }; + }, + Error, + CreateRefusalLogModuleInput['refusalLogModule'] +>; +export function useCreateRefusalLogModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: refusalLogModuleMutationKeys.create(), + mutationFn: (data: CreateRefusalLogModuleInput['refusalLogModule']) => + getClient() + .refusalLogModule.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: refusalLogModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useCreateRepositoryModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useCreateRepositoryModuleMutation.ts new file mode 100644 index 0000000000..5bbf27a95c --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/mutations/useCreateRepositoryModuleMutation.ts @@ -0,0 +1,91 @@ +/** + * Create mutation hook for RepositoryModule + * @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 { repositoryModuleKeys } from '../query-keys'; +import { repositoryModuleMutationKeys } from '../mutation-keys'; +import type { + RepositoryModuleSelect, + RepositoryModuleWithRelations, + CreateRepositoryModuleInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + RepositoryModuleSelect, + RepositoryModuleWithRelations, + CreateRepositoryModuleInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a RepositoryModule + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateRepositoryModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateRepositoryModuleMutation( + params: { + selection: { + fields: S & RepositoryModuleSelect; + } & HookStrictSelect, RepositoryModuleSelect>; + } & Omit< + UseMutationOptions< + { + createRepositoryModule: { + repositoryModule: InferSelectResult; + }; + }, + Error, + CreateRepositoryModuleInput['repositoryModule'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createRepositoryModule: { + repositoryModule: InferSelectResult; + }; + }, + Error, + CreateRepositoryModuleInput['repositoryModule'] +>; +export function useCreateRepositoryModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: repositoryModuleMutationKeys.create(), + mutationFn: (data: CreateRepositoryModuleInput['repositoryModule']) => + getClient() + .repositoryModule.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: repositoryModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useCreateSecureTableProvisionMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useCreateSecureTableProvisionMutation.ts index 843ca5fef4..d122b886b5 100644 --- a/sdk/constructive-react/src/modules/hooks/mutations/useCreateSecureTableProvisionMutation.ts +++ b/sdk/constructive-react/src/modules/hooks/mutations/useCreateSecureTableProvisionMutation.ts @@ -1,5 +1,5 @@ /** - * 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. + * 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. The target table is addressed by table_id, by table_name, or symbolically by a module reference in module. A row that lists a concern in owns[] replaces that concern on the target table instead of composing with what is already there. * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateSecureTableProvisionInput, } from '../../orm/input-types'; /** - * 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. + * 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. The target table is addressed by table_id, by table_name, or symbolically by a module reference in module. A row that lists a concern in owns[] replaces that concern on the target table instead of composing with what is already there. * * @example * ```tsx diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useDeleteClusterModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteClusterModuleMutation.ts new file mode 100644 index 0000000000..7bdb88bd9b --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteClusterModuleMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for ClusterModule + * @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 { clusterModuleKeys } from '../query-keys'; +import { clusterModuleMutationKeys } from '../mutation-keys'; +import type { ClusterModuleSelect, ClusterModuleWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { ClusterModuleSelect, ClusterModuleWithRelations } from '../../orm/input-types'; +/** + * Mutation hook for deleting a ClusterModule with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteClusterModuleMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteClusterModuleMutation( + params: { + selection: { + fields: S & ClusterModuleSelect; + } & HookStrictSelect, ClusterModuleSelect>; + } & Omit< + UseMutationOptions< + { + deleteClusterModule: { + clusterModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteClusterModule: { + clusterModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteClusterModuleMutation( + 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: clusterModuleMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .clusterModule.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: clusterModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: clusterModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useDeleteConfigSecretsUserModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteConfigSecretsUserModuleMutation.ts deleted file mode 100644 index ffd64e8cfc..0000000000 --- a/sdk/constructive-react/src/modules/hooks/mutations/useDeleteConfigSecretsUserModuleMutation.ts +++ /dev/null @@ -1,104 +0,0 @@ -/** - * Delete mutation hook for ConfigSecretsUserModule - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { configSecretsUserModuleKeys } from '../query-keys'; -import { configSecretsUserModuleMutationKeys } from '../mutation-keys'; -import type { - ConfigSecretsUserModuleSelect, - ConfigSecretsUserModuleWithRelations, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - ConfigSecretsUserModuleSelect, - ConfigSecretsUserModuleWithRelations, -} from '../../orm/input-types'; -/** - * Mutation hook for deleting a ConfigSecretsUserModule with typed selection - * - * @example - * ```tsx - * const { mutate, isPending } = useDeleteConfigSecretsUserModuleMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 'value-to-delete' }); - * ``` - */ -export function useDeleteConfigSecretsUserModuleMutation( - params: { - selection: { - fields: S & ConfigSecretsUserModuleSelect; - } & HookStrictSelect, ConfigSecretsUserModuleSelect>; - } & Omit< - UseMutationOptions< - { - deleteConfigSecretsUserModule: { - configSecretsUserModule: InferSelectResult; - }; - }, - Error, - { - id: string; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deleteConfigSecretsUserModule: { - configSecretsUserModule: InferSelectResult; - }; - }, - Error, - { - id: string; - } ->; -export function useDeleteConfigSecretsUserModuleMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: configSecretsUserModuleMutationKeys.all, - mutationFn: ({ id }: { id: string }) => - getClient() - .configSecretsUserModule.delete({ - where: { - id, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: configSecretsUserModuleKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: configSecretsUserModuleKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useDeleteHttpRouteModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteHttpRouteModuleMutation.ts deleted file mode 100644 index 6e421ae58d..0000000000 --- a/sdk/constructive-react/src/modules/hooks/mutations/useDeleteHttpRouteModuleMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * Delete mutation hook for HttpRouteModule - * @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 { httpRouteModuleKeys } from '../query-keys'; -import { httpRouteModuleMutationKeys } from '../mutation-keys'; -import type { HttpRouteModuleSelect, HttpRouteModuleWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { HttpRouteModuleSelect, HttpRouteModuleWithRelations } from '../../orm/input-types'; -/** - * Mutation hook for deleting a HttpRouteModule with typed selection - * - * @example - * ```tsx - * const { mutate, isPending } = useDeleteHttpRouteModuleMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 'value-to-delete' }); - * ``` - */ -export function useDeleteHttpRouteModuleMutation( - params: { - selection: { - fields: S & HttpRouteModuleSelect; - } & HookStrictSelect, HttpRouteModuleSelect>; - } & Omit< - UseMutationOptions< - { - deleteHttpRouteModule: { - httpRouteModule: InferSelectResult; - }; - }, - Error, - { - id: string; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deleteHttpRouteModule: { - httpRouteModule: InferSelectResult; - }; - }, - Error, - { - id: string; - } ->; -export function useDeleteHttpRouteModuleMutation( - 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: httpRouteModuleMutationKeys.all, - mutationFn: ({ id }: { id: string }) => - getClient() - .httpRouteModule.delete({ - where: { - id, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: httpRouteModuleKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: httpRouteModuleKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useDeleteImageModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteImageModuleMutation.ts new file mode 100644 index 0000000000..4f960e9f2e --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteImageModuleMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for ImageModule + * @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 { imageModuleKeys } from '../query-keys'; +import { imageModuleMutationKeys } from '../mutation-keys'; +import type { ImageModuleSelect, ImageModuleWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { ImageModuleSelect, ImageModuleWithRelations } from '../../orm/input-types'; +/** + * Mutation hook for deleting a ImageModule with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteImageModuleMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteImageModuleMutation( + params: { + selection: { + fields: S & ImageModuleSelect; + } & HookStrictSelect, ImageModuleSelect>; + } & Omit< + UseMutationOptions< + { + deleteImageModule: { + imageModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteImageModule: { + imageModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteImageModuleMutation( + 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: imageModuleMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .imageModule.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: imageModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: imageModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useDeleteInternalConfigModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteInternalConfigModuleMutation.ts new file mode 100644 index 0000000000..c113746e0f --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteInternalConfigModuleMutation.ts @@ -0,0 +1,104 @@ +/** + * Scope-aware plaintext internal config store. No namespace_module dependency and no K8s synchronization: values are read from the database at invocation time. Configuration that must be projected into a Kubernetes ConfigMap belongs in infra_config_module. + * @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 { internalConfigModuleKeys } from '../query-keys'; +import { internalConfigModuleMutationKeys } from '../mutation-keys'; +import type { + InternalConfigModuleSelect, + InternalConfigModuleWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + InternalConfigModuleSelect, + InternalConfigModuleWithRelations, +} from '../../orm/input-types'; +/** + * Scope-aware plaintext internal config store. No namespace_module dependency and no K8s synchronization: values are read from the database at invocation time. Configuration that must be projected into a Kubernetes ConfigMap belongs in infra_config_module. + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteInternalConfigModuleMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteInternalConfigModuleMutation( + params: { + selection: { + fields: S & InternalConfigModuleSelect; + } & HookStrictSelect, InternalConfigModuleSelect>; + } & Omit< + UseMutationOptions< + { + deleteInternalConfigModule: { + internalConfigModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteInternalConfigModule: { + internalConfigModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteInternalConfigModuleMutation( + 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: internalConfigModuleMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .internalConfigModule.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: internalConfigModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: internalConfigModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useDeleteK8sAdmissionModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteK8sAdmissionModuleMutation.ts new file mode 100644 index 0000000000..a562ebfe39 --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteK8sAdmissionModuleMutation.ts @@ -0,0 +1,104 @@ +/** + * Provisions the platform-managed Kubernetes admission catalogs: a kinds table and a spec-rules table, Merkle-versioned through the referenced merkle_store_module, whose rows the generated admission gate on resources/resource_definitions reads. Writes are platform-admin and human-only; every scope reads the one catalog. + * @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 { k8sAdmissionModuleKeys } from '../query-keys'; +import { k8sAdmissionModuleMutationKeys } from '../mutation-keys'; +import type { + K8sAdmissionModuleSelect, + K8sAdmissionModuleWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + K8sAdmissionModuleSelect, + K8sAdmissionModuleWithRelations, +} from '../../orm/input-types'; +/** + * Provisions the platform-managed Kubernetes admission catalogs: a kinds table and a spec-rules table, Merkle-versioned through the referenced merkle_store_module, whose rows the generated admission gate on resources/resource_definitions reads. Writes are platform-admin and human-only; every scope reads the one catalog. + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteK8sAdmissionModuleMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteK8sAdmissionModuleMutation( + params: { + selection: { + fields: S & K8sAdmissionModuleSelect; + } & HookStrictSelect, K8sAdmissionModuleSelect>; + } & Omit< + UseMutationOptions< + { + deleteK8sAdmissionModule: { + k8sAdmissionModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteK8sAdmissionModule: { + k8sAdmissionModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteK8sAdmissionModuleMutation( + 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: k8sAdmissionModuleMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .k8sAdmissionModule.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: k8sAdmissionModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: k8sAdmissionModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useDeleteMachineModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteMachineModuleMutation.ts new file mode 100644 index 0000000000..b70de7c2b9 --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteMachineModuleMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for MachineModule + * @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 { machineModuleKeys } from '../query-keys'; +import { machineModuleMutationKeys } from '../mutation-keys'; +import type { MachineModuleSelect, MachineModuleWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { MachineModuleSelect, MachineModuleWithRelations } from '../../orm/input-types'; +/** + * Mutation hook for deleting a MachineModule with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteMachineModuleMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteMachineModuleMutation( + params: { + selection: { + fields: S & MachineModuleSelect; + } & HookStrictSelect, MachineModuleSelect>; + } & Omit< + UseMutationOptions< + { + deleteMachineModule: { + machineModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteMachineModule: { + machineModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteMachineModuleMutation( + 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: machineModuleMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .machineModule.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: machineModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: machineModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useDeleteRefusalLogModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteRefusalLogModuleMutation.ts new file mode 100644 index 0000000000..656d5032ea --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteRefusalLogModuleMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for RefusalLogModule + * @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 { refusalLogModuleKeys } from '../query-keys'; +import { refusalLogModuleMutationKeys } from '../mutation-keys'; +import type { RefusalLogModuleSelect, RefusalLogModuleWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { RefusalLogModuleSelect, RefusalLogModuleWithRelations } from '../../orm/input-types'; +/** + * Mutation hook for deleting a RefusalLogModule with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteRefusalLogModuleMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteRefusalLogModuleMutation( + params: { + selection: { + fields: S & RefusalLogModuleSelect; + } & HookStrictSelect, RefusalLogModuleSelect>; + } & Omit< + UseMutationOptions< + { + deleteRefusalLogModule: { + refusalLogModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteRefusalLogModule: { + refusalLogModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteRefusalLogModuleMutation( + 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: refusalLogModuleMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .refusalLogModule.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: refusalLogModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: refusalLogModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useDeleteRepositoryModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteRepositoryModuleMutation.ts new file mode 100644 index 0000000000..acda546d11 --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteRepositoryModuleMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for RepositoryModule + * @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 { repositoryModuleKeys } from '../query-keys'; +import { repositoryModuleMutationKeys } from '../mutation-keys'; +import type { RepositoryModuleSelect, RepositoryModuleWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { RepositoryModuleSelect, RepositoryModuleWithRelations } from '../../orm/input-types'; +/** + * Mutation hook for deleting a RepositoryModule with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteRepositoryModuleMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteRepositoryModuleMutation( + params: { + selection: { + fields: S & RepositoryModuleSelect; + } & HookStrictSelect, RepositoryModuleSelect>; + } & Omit< + UseMutationOptions< + { + deleteRepositoryModule: { + repositoryModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteRepositoryModule: { + repositoryModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteRepositoryModuleMutation( + 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: repositoryModuleMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .repositoryModule.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: repositoryModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: repositoryModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useDeleteSecureTableProvisionMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteSecureTableProvisionMutation.ts index 7ad6fcd649..829d948131 100644 --- a/sdk/constructive-react/src/modules/hooks/mutations/useDeleteSecureTableProvisionMutation.ts +++ b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteSecureTableProvisionMutation.ts @@ -1,5 +1,5 @@ /** - * 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. + * 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. The target table is addressed by table_id, by table_name, or symbolically by a module reference in module. A row that lists a concern in owns[] replaces that concern on the target table instead of composing with what is already there. * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -21,7 +21,7 @@ export type { SecureTableProvisionWithRelations, } from '../../orm/input-types'; /** - * 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. + * 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. The target table is addressed by table_id, by table_name, or symbolically by a module reference in module. A row that lists a concern in owns[] replaces that concern on the target table instead of composing with what is already there. * * @example * ```tsx diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useUpdateClusterModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateClusterModuleMutation.ts new file mode 100644 index 0000000000..b2195180f8 --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateClusterModuleMutation.ts @@ -0,0 +1,116 @@ +/** + * Update mutation hook for ClusterModule + * @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 { clusterModuleKeys } from '../query-keys'; +import { clusterModuleMutationKeys } from '../mutation-keys'; +import type { + ClusterModuleSelect, + ClusterModuleWithRelations, + ClusterModulePatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + ClusterModuleSelect, + ClusterModuleWithRelations, + ClusterModulePatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a ClusterModule + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateClusterModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', clusterModulePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateClusterModuleMutation( + params: { + selection: { + fields: S & ClusterModuleSelect; + } & HookStrictSelect, ClusterModuleSelect>; + } & Omit< + UseMutationOptions< + { + updateClusterModule: { + clusterModule: InferSelectResult; + }; + }, + Error, + { + id: string; + clusterModulePatch: ClusterModulePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateClusterModule: { + clusterModule: InferSelectResult; + }; + }, + Error, + { + id: string; + clusterModulePatch: ClusterModulePatch; + } +>; +export function useUpdateClusterModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + clusterModulePatch: ClusterModulePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: clusterModuleMutationKeys.all, + mutationFn: ({ + id, + clusterModulePatch, + }: { + id: string; + clusterModulePatch: ClusterModulePatch; + }) => + getClient() + .clusterModule.update({ + where: { + id, + }, + data: clusterModulePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: clusterModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: clusterModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useUpdateConfigSecretsUserModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateConfigSecretsUserModuleMutation.ts deleted file mode 100644 index ab9482f3fe..0000000000 --- a/sdk/constructive-react/src/modules/hooks/mutations/useUpdateConfigSecretsUserModuleMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * Update mutation hook for ConfigSecretsUserModule - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { configSecretsUserModuleKeys } from '../query-keys'; -import { configSecretsUserModuleMutationKeys } from '../mutation-keys'; -import type { - ConfigSecretsUserModuleSelect, - ConfigSecretsUserModuleWithRelations, - ConfigSecretsUserModulePatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - ConfigSecretsUserModuleSelect, - ConfigSecretsUserModuleWithRelations, - ConfigSecretsUserModulePatch, -} from '../../orm/input-types'; -/** - * Mutation hook for updating a ConfigSecretsUserModule - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateConfigSecretsUserModuleMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', configSecretsUserModulePatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateConfigSecretsUserModuleMutation( - params: { - selection: { - fields: S & ConfigSecretsUserModuleSelect; - } & HookStrictSelect, ConfigSecretsUserModuleSelect>; - } & Omit< - UseMutationOptions< - { - updateConfigSecretsUserModule: { - configSecretsUserModule: InferSelectResult; - }; - }, - Error, - { - id: string; - configSecretsUserModulePatch: ConfigSecretsUserModulePatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateConfigSecretsUserModule: { - configSecretsUserModule: InferSelectResult; - }; - }, - Error, - { - id: string; - configSecretsUserModulePatch: ConfigSecretsUserModulePatch; - } ->; -export function useUpdateConfigSecretsUserModuleMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - configSecretsUserModulePatch: ConfigSecretsUserModulePatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: configSecretsUserModuleMutationKeys.all, - mutationFn: ({ - id, - configSecretsUserModulePatch, - }: { - id: string; - configSecretsUserModulePatch: ConfigSecretsUserModulePatch; - }) => - getClient() - .configSecretsUserModule.update({ - where: { - id, - }, - data: configSecretsUserModulePatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: configSecretsUserModuleKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: configSecretsUserModuleKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useUpdateHttpRouteModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateHttpRouteModuleMutation.ts deleted file mode 100644 index 814205cf39..0000000000 --- a/sdk/constructive-react/src/modules/hooks/mutations/useUpdateHttpRouteModuleMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * Update mutation hook for HttpRouteModule - * @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 { httpRouteModuleKeys } from '../query-keys'; -import { httpRouteModuleMutationKeys } from '../mutation-keys'; -import type { - HttpRouteModuleSelect, - HttpRouteModuleWithRelations, - HttpRouteModulePatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - HttpRouteModuleSelect, - HttpRouteModuleWithRelations, - HttpRouteModulePatch, -} from '../../orm/input-types'; -/** - * Mutation hook for updating a HttpRouteModule - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateHttpRouteModuleMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', httpRouteModulePatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateHttpRouteModuleMutation( - params: { - selection: { - fields: S & HttpRouteModuleSelect; - } & HookStrictSelect, HttpRouteModuleSelect>; - } & Omit< - UseMutationOptions< - { - updateHttpRouteModule: { - httpRouteModule: InferSelectResult; - }; - }, - Error, - { - id: string; - httpRouteModulePatch: HttpRouteModulePatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateHttpRouteModule: { - httpRouteModule: InferSelectResult; - }; - }, - Error, - { - id: string; - httpRouteModulePatch: HttpRouteModulePatch; - } ->; -export function useUpdateHttpRouteModuleMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - httpRouteModulePatch: HttpRouteModulePatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: httpRouteModuleMutationKeys.all, - mutationFn: ({ - id, - httpRouteModulePatch, - }: { - id: string; - httpRouteModulePatch: HttpRouteModulePatch; - }) => - getClient() - .httpRouteModule.update({ - where: { - id, - }, - data: httpRouteModulePatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: httpRouteModuleKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: httpRouteModuleKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useUpdateImageModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateImageModuleMutation.ts new file mode 100644 index 0000000000..7bcf7438ad --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateImageModuleMutation.ts @@ -0,0 +1,110 @@ +/** + * Update mutation hook for ImageModule + * @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 { imageModuleKeys } from '../query-keys'; +import { imageModuleMutationKeys } from '../mutation-keys'; +import type { + ImageModuleSelect, + ImageModuleWithRelations, + ImageModulePatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + ImageModuleSelect, + ImageModuleWithRelations, + ImageModulePatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a ImageModule + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateImageModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', imageModulePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateImageModuleMutation( + params: { + selection: { + fields: S & ImageModuleSelect; + } & HookStrictSelect, ImageModuleSelect>; + } & Omit< + UseMutationOptions< + { + updateImageModule: { + imageModule: InferSelectResult; + }; + }, + Error, + { + id: string; + imageModulePatch: ImageModulePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateImageModule: { + imageModule: InferSelectResult; + }; + }, + Error, + { + id: string; + imageModulePatch: ImageModulePatch; + } +>; +export function useUpdateImageModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + imageModulePatch: ImageModulePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: imageModuleMutationKeys.all, + mutationFn: ({ id, imageModulePatch }: { id: string; imageModulePatch: ImageModulePatch }) => + getClient() + .imageModule.update({ + where: { + id, + }, + data: imageModulePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: imageModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: imageModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useUpdateInternalConfigModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateInternalConfigModuleMutation.ts new file mode 100644 index 0000000000..49c5cae394 --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateInternalConfigModuleMutation.ts @@ -0,0 +1,116 @@ +/** + * Scope-aware plaintext internal config store. No namespace_module dependency and no K8s synchronization: values are read from the database at invocation time. Configuration that must be projected into a Kubernetes ConfigMap belongs in infra_config_module. + * @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 { internalConfigModuleKeys } from '../query-keys'; +import { internalConfigModuleMutationKeys } from '../mutation-keys'; +import type { + InternalConfigModuleSelect, + InternalConfigModuleWithRelations, + InternalConfigModulePatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + InternalConfigModuleSelect, + InternalConfigModuleWithRelations, + InternalConfigModulePatch, +} from '../../orm/input-types'; +/** + * Scope-aware plaintext internal config store. No namespace_module dependency and no K8s synchronization: values are read from the database at invocation time. Configuration that must be projected into a Kubernetes ConfigMap belongs in infra_config_module. + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateInternalConfigModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', internalConfigModulePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateInternalConfigModuleMutation( + params: { + selection: { + fields: S & InternalConfigModuleSelect; + } & HookStrictSelect, InternalConfigModuleSelect>; + } & Omit< + UseMutationOptions< + { + updateInternalConfigModule: { + internalConfigModule: InferSelectResult; + }; + }, + Error, + { + id: string; + internalConfigModulePatch: InternalConfigModulePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateInternalConfigModule: { + internalConfigModule: InferSelectResult; + }; + }, + Error, + { + id: string; + internalConfigModulePatch: InternalConfigModulePatch; + } +>; +export function useUpdateInternalConfigModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + internalConfigModulePatch: InternalConfigModulePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: internalConfigModuleMutationKeys.all, + mutationFn: ({ + id, + internalConfigModulePatch, + }: { + id: string; + internalConfigModulePatch: InternalConfigModulePatch; + }) => + getClient() + .internalConfigModule.update({ + where: { + id, + }, + data: internalConfigModulePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: internalConfigModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: internalConfigModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useUpdateK8sAdmissionModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateK8sAdmissionModuleMutation.ts new file mode 100644 index 0000000000..de5e5d0f8f --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateK8sAdmissionModuleMutation.ts @@ -0,0 +1,116 @@ +/** + * Provisions the platform-managed Kubernetes admission catalogs: a kinds table and a spec-rules table, Merkle-versioned through the referenced merkle_store_module, whose rows the generated admission gate on resources/resource_definitions reads. Writes are platform-admin and human-only; every scope reads the one catalog. + * @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 { k8sAdmissionModuleKeys } from '../query-keys'; +import { k8sAdmissionModuleMutationKeys } from '../mutation-keys'; +import type { + K8sAdmissionModuleSelect, + K8sAdmissionModuleWithRelations, + K8sAdmissionModulePatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + K8sAdmissionModuleSelect, + K8sAdmissionModuleWithRelations, + K8sAdmissionModulePatch, +} from '../../orm/input-types'; +/** + * Provisions the platform-managed Kubernetes admission catalogs: a kinds table and a spec-rules table, Merkle-versioned through the referenced merkle_store_module, whose rows the generated admission gate on resources/resource_definitions reads. Writes are platform-admin and human-only; every scope reads the one catalog. + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateK8sAdmissionModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', k8sAdmissionModulePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateK8sAdmissionModuleMutation( + params: { + selection: { + fields: S & K8sAdmissionModuleSelect; + } & HookStrictSelect, K8sAdmissionModuleSelect>; + } & Omit< + UseMutationOptions< + { + updateK8sAdmissionModule: { + k8sAdmissionModule: InferSelectResult; + }; + }, + Error, + { + id: string; + k8sAdmissionModulePatch: K8sAdmissionModulePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateK8sAdmissionModule: { + k8sAdmissionModule: InferSelectResult; + }; + }, + Error, + { + id: string; + k8sAdmissionModulePatch: K8sAdmissionModulePatch; + } +>; +export function useUpdateK8sAdmissionModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + k8sAdmissionModulePatch: K8sAdmissionModulePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: k8sAdmissionModuleMutationKeys.all, + mutationFn: ({ + id, + k8sAdmissionModulePatch, + }: { + id: string; + k8sAdmissionModulePatch: K8sAdmissionModulePatch; + }) => + getClient() + .k8sAdmissionModule.update({ + where: { + id, + }, + data: k8sAdmissionModulePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: k8sAdmissionModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: k8sAdmissionModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useUpdateMachineModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateMachineModuleMutation.ts new file mode 100644 index 0000000000..d82c48516d --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateMachineModuleMutation.ts @@ -0,0 +1,116 @@ +/** + * Update mutation hook for MachineModule + * @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 { machineModuleKeys } from '../query-keys'; +import { machineModuleMutationKeys } from '../mutation-keys'; +import type { + MachineModuleSelect, + MachineModuleWithRelations, + MachineModulePatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + MachineModuleSelect, + MachineModuleWithRelations, + MachineModulePatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a MachineModule + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateMachineModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', machineModulePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateMachineModuleMutation( + params: { + selection: { + fields: S & MachineModuleSelect; + } & HookStrictSelect, MachineModuleSelect>; + } & Omit< + UseMutationOptions< + { + updateMachineModule: { + machineModule: InferSelectResult; + }; + }, + Error, + { + id: string; + machineModulePatch: MachineModulePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateMachineModule: { + machineModule: InferSelectResult; + }; + }, + Error, + { + id: string; + machineModulePatch: MachineModulePatch; + } +>; +export function useUpdateMachineModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + machineModulePatch: MachineModulePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: machineModuleMutationKeys.all, + mutationFn: ({ + id, + machineModulePatch, + }: { + id: string; + machineModulePatch: MachineModulePatch; + }) => + getClient() + .machineModule.update({ + where: { + id, + }, + data: machineModulePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: machineModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: machineModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useUpdateRefusalLogModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateRefusalLogModuleMutation.ts new file mode 100644 index 0000000000..1ccdf8ec58 --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateRefusalLogModuleMutation.ts @@ -0,0 +1,116 @@ +/** + * Update mutation hook for RefusalLogModule + * @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 { refusalLogModuleKeys } from '../query-keys'; +import { refusalLogModuleMutationKeys } from '../mutation-keys'; +import type { + RefusalLogModuleSelect, + RefusalLogModuleWithRelations, + RefusalLogModulePatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + RefusalLogModuleSelect, + RefusalLogModuleWithRelations, + RefusalLogModulePatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a RefusalLogModule + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateRefusalLogModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', refusalLogModulePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateRefusalLogModuleMutation( + params: { + selection: { + fields: S & RefusalLogModuleSelect; + } & HookStrictSelect, RefusalLogModuleSelect>; + } & Omit< + UseMutationOptions< + { + updateRefusalLogModule: { + refusalLogModule: InferSelectResult; + }; + }, + Error, + { + id: string; + refusalLogModulePatch: RefusalLogModulePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateRefusalLogModule: { + refusalLogModule: InferSelectResult; + }; + }, + Error, + { + id: string; + refusalLogModulePatch: RefusalLogModulePatch; + } +>; +export function useUpdateRefusalLogModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + refusalLogModulePatch: RefusalLogModulePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: refusalLogModuleMutationKeys.all, + mutationFn: ({ + id, + refusalLogModulePatch, + }: { + id: string; + refusalLogModulePatch: RefusalLogModulePatch; + }) => + getClient() + .refusalLogModule.update({ + where: { + id, + }, + data: refusalLogModulePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: refusalLogModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: refusalLogModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useUpdateRepositoryModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateRepositoryModuleMutation.ts new file mode 100644 index 0000000000..dfeb5793d2 --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateRepositoryModuleMutation.ts @@ -0,0 +1,116 @@ +/** + * Update mutation hook for RepositoryModule + * @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 { repositoryModuleKeys } from '../query-keys'; +import { repositoryModuleMutationKeys } from '../mutation-keys'; +import type { + RepositoryModuleSelect, + RepositoryModuleWithRelations, + RepositoryModulePatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + RepositoryModuleSelect, + RepositoryModuleWithRelations, + RepositoryModulePatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a RepositoryModule + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateRepositoryModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', repositoryModulePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateRepositoryModuleMutation( + params: { + selection: { + fields: S & RepositoryModuleSelect; + } & HookStrictSelect, RepositoryModuleSelect>; + } & Omit< + UseMutationOptions< + { + updateRepositoryModule: { + repositoryModule: InferSelectResult; + }; + }, + Error, + { + id: string; + repositoryModulePatch: RepositoryModulePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateRepositoryModule: { + repositoryModule: InferSelectResult; + }; + }, + Error, + { + id: string; + repositoryModulePatch: RepositoryModulePatch; + } +>; +export function useUpdateRepositoryModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + repositoryModulePatch: RepositoryModulePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: repositoryModuleMutationKeys.all, + mutationFn: ({ + id, + repositoryModulePatch, + }: { + id: string; + repositoryModulePatch: RepositoryModulePatch; + }) => + getClient() + .repositoryModule.update({ + where: { + id, + }, + data: repositoryModulePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: repositoryModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: repositoryModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useUpdateSecureTableProvisionMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateSecureTableProvisionMutation.ts index 859fb5ab0f..90753813a4 100644 --- a/sdk/constructive-react/src/modules/hooks/mutations/useUpdateSecureTableProvisionMutation.ts +++ b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateSecureTableProvisionMutation.ts @@ -1,5 +1,5 @@ /** - * 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. + * 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. The target table is addressed by table_id, by table_name, or symbolically by a module reference in module. A row that lists a concern in owns[] replaces that concern on the target table instead of composing with what is already there. * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { SecureTableProvisionPatch, } from '../../orm/input-types'; /** - * 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. + * 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. The target table is addressed by table_id, by table_name, or symbolically by a module reference in module. A row that lists a concern in owns[] replaces that concern on the target table instead of composing with what is already there. * * @example * ```tsx diff --git a/sdk/constructive-react/src/modules/hooks/queries/index.ts b/sdk/constructive-react/src/modules/hooks/queries/index.ts index c47aede539..e61f9ae87f 100644 --- a/sdk/constructive-react/src/modules/hooks/queries/index.ts +++ b/sdk/constructive-react/src/modules/hooks/queries/index.ts @@ -23,10 +23,10 @@ export * from './useCapabilitiesModulesQuery'; export * from './useCapabilitiesModuleQuery'; export * from './useCatalogModulesQuery'; export * from './useCatalogModuleQuery'; +export * from './useClusterModulesQuery'; +export * from './useClusterModuleQuery'; export * from './useComputeLogModulesQuery'; export * from './useComputeLogModuleQuery'; -export * from './useConfigSecretsUserModulesQuery'; -export * from './useConfigSecretsUserModuleQuery'; export * from './useConnectedAccountsModulesQuery'; export * from './useConnectedAccountsModuleQuery'; export * from './useContentPresetModulesQuery'; @@ -79,12 +79,12 @@ export * from './useGraphModulesQuery'; export * from './useGraphModuleQuery'; export * from './useHierarchyModulesQuery'; export * from './useHierarchyModuleQuery'; -export * from './useHttpRouteModulesQuery'; -export * from './useHttpRouteModuleQuery'; export * from './useI18nModulesQuery'; export * from './useI18NModuleQuery'; export * from './useIdentityProvidersModulesQuery'; export * from './useIdentityProvidersModuleQuery'; +export * from './useImageModulesQuery'; +export * from './useImageModuleQuery'; export * from './useInferenceLogModulesQuery'; export * from './useInferenceLogModuleQuery'; export * from './useInfraConfigModulesQuery'; @@ -93,12 +93,18 @@ export * from './useInfraSecretsModulesQuery'; export * from './useInfraSecretsModuleQuery'; export * from './useIntegrationProvidersModulesQuery'; export * from './useIntegrationProvidersModuleQuery'; +export * from './useInternalConfigModulesQuery'; +export * from './useInternalConfigModuleQuery'; export * from './useInternalSecretsModulesQuery'; export * from './useInternalSecretsModuleQuery'; export * from './useInvitesModulesQuery'; export * from './useInvitesModuleQuery'; +export * from './useK8sAdmissionModulesQuery'; +export * from './useK8sAdmissionModuleQuery'; export * from './useLimitsModulesQuery'; export * from './useLimitsModuleQuery'; +export * from './useMachineModulesQuery'; +export * from './useMachineModuleQuery'; export * from './useMembershipTypesModulesQuery'; export * from './useMembershipTypesModuleQuery'; export * from './useMembershipsModulesQuery'; @@ -127,8 +133,12 @@ export * from './useRateLimitsModulesQuery'; export * from './useRateLimitsModuleQuery'; export * from './useRealtimeModulesQuery'; export * from './useRealtimeModuleQuery'; +export * from './useRefusalLogModulesQuery'; +export * from './useRefusalLogModuleQuery'; export * from './useRelationProvisionsQuery'; export * from './useRelationProvisionQuery'; +export * from './useRepositoryModulesQuery'; +export * from './useRepositoryModuleQuery'; export * from './useResourceModulesQuery'; export * from './useResourceModuleQuery'; export * from './useRlsModulesQuery'; diff --git a/sdk/constructive-react/src/modules/hooks/queries/useClusterModuleQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useClusterModuleQuery.ts new file mode 100644 index 0000000000..517c5607c1 --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/queries/useClusterModuleQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for ClusterModule + * @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 { clusterModuleKeys } from '../query-keys'; +import type { ClusterModuleSelect, ClusterModuleWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { ClusterModuleSelect, ClusterModuleWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const clusterModuleQueryKey = clusterModuleKeys.detail; +/** + * Query hook for fetching a single ClusterModule + * + * @example + * ```tsx + * const { data, isLoading } = useClusterModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useClusterModuleQuery< + S extends ClusterModuleSelect, + TData = { + clusterModule: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ClusterModuleSelect>; + } & Omit< + UseQueryOptions< + { + clusterModule: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useClusterModuleQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: clusterModuleKeys.detail(params.id), + queryFn: () => + getClient() + .clusterModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single ClusterModule without React hooks + * + * @example + * ```ts + * const data = await fetchClusterModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchClusterModuleQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ClusterModuleSelect>; +}): Promise<{ + clusterModule: InferSelectResult | null; +}>; +export async function fetchClusterModuleQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .clusterModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single ClusterModule for SSR or cache warming + * + * @example + * ```ts + * await prefetchClusterModuleQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchClusterModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ClusterModuleSelect>; + } +): Promise; +export async function prefetchClusterModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: clusterModuleKeys.detail(params.id), + queryFn: () => + getClient() + .clusterModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/queries/useClusterModulesQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useClusterModulesQuery.ts new file mode 100644 index 0000000000..bbc9cf4e18 --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/queries/useClusterModulesQuery.ts @@ -0,0 +1,151 @@ +/** + * List query hook for ClusterModule + * @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 { clusterModuleKeys } from '../query-keys'; +import type { + ClusterModuleSelect, + ClusterModuleWithRelations, + ClusterModuleFilter, + ClusterModuleOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + ClusterModuleSelect, + ClusterModuleWithRelations, + ClusterModuleFilter, + ClusterModuleOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const clusterModulesQueryKey = clusterModuleKeys.list; +/** + * Query hook for fetching ClusterModule list + * + * @example + * ```tsx + * const { data, isLoading } = useClusterModulesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useClusterModulesQuery< + S extends ClusterModuleSelect, + TData = { + clusterModules: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, ClusterModuleSelect>; + } & Omit< + UseQueryOptions< + { + clusterModules: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useClusterModulesQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + ClusterModuleSelect, + ClusterModuleFilter, + ClusterModuleOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: clusterModuleKeys.list(args), + queryFn: () => getClient().clusterModule.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch ClusterModule list without React hooks + * + * @example + * ```ts + * const data = await fetchClusterModulesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchClusterModulesQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, ClusterModuleSelect>; +}): Promise<{ + clusterModules: ConnectionResult>; +}>; +export async function fetchClusterModulesQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs< + ClusterModuleSelect, + ClusterModuleFilter, + ClusterModuleOrderBy + >(params.selection); + return getClient().clusterModule.findMany(args).unwrap(); +} +/** + * Prefetch ClusterModule list for SSR or cache warming + * + * @example + * ```ts + * await prefetchClusterModulesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchClusterModulesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, ClusterModuleSelect>; + } +): Promise; +export async function prefetchClusterModulesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs< + ClusterModuleSelect, + ClusterModuleFilter, + ClusterModuleOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: clusterModuleKeys.list(args), + queryFn: () => getClient().clusterModule.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/queries/useConfigSecretsUserModuleQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useConfigSecretsUserModuleQuery.ts deleted file mode 100644 index 0417e18743..0000000000 --- a/sdk/constructive-react/src/modules/hooks/queries/useConfigSecretsUserModuleQuery.ts +++ /dev/null @@ -1,146 +0,0 @@ -/** - * Single item query hook for ConfigSecretsUserModule - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { configSecretsUserModuleKeys } from '../query-keys'; -import type { - ConfigSecretsUserModuleSelect, - ConfigSecretsUserModuleWithRelations, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - ConfigSecretsUserModuleSelect, - ConfigSecretsUserModuleWithRelations, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const configSecretsUserModuleQueryKey = configSecretsUserModuleKeys.detail; -/** - * Query hook for fetching a single ConfigSecretsUserModule - * - * @example - * ```tsx - * const { data, isLoading } = useConfigSecretsUserModuleQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useConfigSecretsUserModuleQuery< - S extends ConfigSecretsUserModuleSelect, - TData = { - configSecretsUserModule: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, ConfigSecretsUserModuleSelect>; - } & Omit< - UseQueryOptions< - { - configSecretsUserModule: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useConfigSecretsUserModuleQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: configSecretsUserModuleKeys.detail(params.id), - queryFn: () => - getClient() - .configSecretsUserModule.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Fetch a single ConfigSecretsUserModule without React hooks - * - * @example - * ```ts - * const data = await fetchConfigSecretsUserModuleQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchConfigSecretsUserModuleQuery< - S extends ConfigSecretsUserModuleSelect, ->(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, ConfigSecretsUserModuleSelect>; -}): Promise<{ - configSecretsUserModule: InferSelectResult | null; -}>; -export async function fetchConfigSecretsUserModuleQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .configSecretsUserModule.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Prefetch a single ConfigSecretsUserModule for SSR or cache warming - * - * @example - * ```ts - * await prefetchConfigSecretsUserModuleQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchConfigSecretsUserModuleQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, ConfigSecretsUserModuleSelect>; - } -): Promise; -export async function prefetchConfigSecretsUserModuleQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: configSecretsUserModuleKeys.detail(params.id), - queryFn: () => - getClient() - .configSecretsUserModule.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/modules/hooks/queries/useConfigSecretsUserModulesQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useConfigSecretsUserModulesQuery.ts deleted file mode 100644 index 7a13019670..0000000000 --- a/sdk/constructive-react/src/modules/hooks/queries/useConfigSecretsUserModulesQuery.ts +++ /dev/null @@ -1,182 +0,0 @@ -/** - * List query hook for ConfigSecretsUserModule - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildListSelectionArgs } from '../selection'; -import type { ListSelectionConfig } from '../selection'; -import { configSecretsUserModuleKeys } from '../query-keys'; -import type { - ConfigSecretsUserModuleSelect, - ConfigSecretsUserModuleWithRelations, - ConfigSecretsUserModuleFilter, - ConfigSecretsUserModuleOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - ConfigSecretsUserModuleSelect, - ConfigSecretsUserModuleWithRelations, - ConfigSecretsUserModuleFilter, - ConfigSecretsUserModuleOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const configSecretsUserModulesQueryKey = configSecretsUserModuleKeys.list; -/** - * Query hook for fetching ConfigSecretsUserModule list - * - * @example - * ```tsx - * const { data, isLoading } = useConfigSecretsUserModulesQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useConfigSecretsUserModulesQuery< - S extends ConfigSecretsUserModuleSelect, - TData = { - configSecretsUserModules: ConnectionResult< - InferSelectResult - >; - }, ->( - params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, ConfigSecretsUserModuleSelect>; - } & Omit< - UseQueryOptions< - { - configSecretsUserModules: ConnectionResult< - InferSelectResult - >; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useConfigSecretsUserModulesQuery( - params: { - selection: ListSelectionConfig< - ConfigSecretsUserModuleSelect, - ConfigSecretsUserModuleFilter, - ConfigSecretsUserModuleOrderBy - >; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs< - ConfigSecretsUserModuleSelect, - ConfigSecretsUserModuleFilter, - ConfigSecretsUserModuleOrderBy - >(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: configSecretsUserModuleKeys.list(args), - queryFn: () => getClient().configSecretsUserModule.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Fetch ConfigSecretsUserModule list without React hooks - * - * @example - * ```ts - * const data = await fetchConfigSecretsUserModulesQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchConfigSecretsUserModulesQuery< - S extends ConfigSecretsUserModuleSelect, ->(params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, ConfigSecretsUserModuleSelect>; -}): Promise<{ - configSecretsUserModules: ConnectionResult< - InferSelectResult - >; -}>; -export async function fetchConfigSecretsUserModulesQuery(params: { - selection: ListSelectionConfig< - ConfigSecretsUserModuleSelect, - ConfigSecretsUserModuleFilter, - ConfigSecretsUserModuleOrderBy - >; -}) { - const args = buildListSelectionArgs< - ConfigSecretsUserModuleSelect, - ConfigSecretsUserModuleFilter, - ConfigSecretsUserModuleOrderBy - >(params.selection); - return getClient().configSecretsUserModule.findMany(args).unwrap(); -} -/** - * Prefetch ConfigSecretsUserModule list for SSR or cache warming - * - * @example - * ```ts - * await prefetchConfigSecretsUserModulesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchConfigSecretsUserModulesQuery< - S extends ConfigSecretsUserModuleSelect, ->( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, ConfigSecretsUserModuleSelect>; - } -): Promise; -export async function prefetchConfigSecretsUserModulesQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig< - ConfigSecretsUserModuleSelect, - ConfigSecretsUserModuleFilter, - ConfigSecretsUserModuleOrderBy - >; - } -): Promise { - const args = buildListSelectionArgs< - ConfigSecretsUserModuleSelect, - ConfigSecretsUserModuleFilter, - ConfigSecretsUserModuleOrderBy - >(params.selection); - await queryClient.prefetchQuery({ - queryKey: configSecretsUserModuleKeys.list(args), - queryFn: () => getClient().configSecretsUserModule.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/modules/hooks/queries/useHttpRouteModuleQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useHttpRouteModuleQuery.ts deleted file mode 100644 index d4efc2e335..0000000000 --- a/sdk/constructive-react/src/modules/hooks/queries/useHttpRouteModuleQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * Single item query hook for HttpRouteModule - * @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 { httpRouteModuleKeys } from '../query-keys'; -import type { HttpRouteModuleSelect, HttpRouteModuleWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { HttpRouteModuleSelect, HttpRouteModuleWithRelations } from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const httpRouteModuleQueryKey = httpRouteModuleKeys.detail; -/** - * Query hook for fetching a single HttpRouteModule - * - * @example - * ```tsx - * const { data, isLoading } = useHttpRouteModuleQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useHttpRouteModuleQuery< - S extends HttpRouteModuleSelect, - TData = { - httpRouteModule: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, HttpRouteModuleSelect>; - } & Omit< - UseQueryOptions< - { - httpRouteModule: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useHttpRouteModuleQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: httpRouteModuleKeys.detail(params.id), - queryFn: () => - getClient() - .httpRouteModule.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Fetch a single HttpRouteModule without React hooks - * - * @example - * ```ts - * const data = await fetchHttpRouteModuleQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchHttpRouteModuleQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, HttpRouteModuleSelect>; -}): Promise<{ - httpRouteModule: InferSelectResult | null; -}>; -export async function fetchHttpRouteModuleQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .httpRouteModule.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Prefetch a single HttpRouteModule for SSR or cache warming - * - * @example - * ```ts - * await prefetchHttpRouteModuleQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchHttpRouteModuleQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, HttpRouteModuleSelect>; - } -): Promise; -export async function prefetchHttpRouteModuleQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: httpRouteModuleKeys.detail(params.id), - queryFn: () => - getClient() - .httpRouteModule.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/modules/hooks/queries/useHttpRouteModulesQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useHttpRouteModulesQuery.ts deleted file mode 100644 index 62ba55efa7..0000000000 --- a/sdk/constructive-react/src/modules/hooks/queries/useHttpRouteModulesQuery.ts +++ /dev/null @@ -1,163 +0,0 @@ -/** - * List query hook for HttpRouteModule - * @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 { httpRouteModuleKeys } from '../query-keys'; -import type { - HttpRouteModuleSelect, - HttpRouteModuleWithRelations, - HttpRouteModuleFilter, - HttpRouteModuleOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - HttpRouteModuleSelect, - HttpRouteModuleWithRelations, - HttpRouteModuleFilter, - HttpRouteModuleOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const httpRouteModulesQueryKey = httpRouteModuleKeys.list; -/** - * Query hook for fetching HttpRouteModule list - * - * @example - * ```tsx - * const { data, isLoading } = useHttpRouteModulesQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useHttpRouteModulesQuery< - S extends HttpRouteModuleSelect, - TData = { - httpRouteModules: ConnectionResult>; - }, ->( - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, HttpRouteModuleSelect>; - } & Omit< - UseQueryOptions< - { - httpRouteModules: ConnectionResult>; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useHttpRouteModulesQuery( - params: { - selection: ListSelectionConfig< - HttpRouteModuleSelect, - HttpRouteModuleFilter, - HttpRouteModuleOrderBy - >; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs< - HttpRouteModuleSelect, - HttpRouteModuleFilter, - HttpRouteModuleOrderBy - >(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: httpRouteModuleKeys.list(args), - queryFn: () => getClient().httpRouteModule.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Fetch HttpRouteModule list without React hooks - * - * @example - * ```ts - * const data = await fetchHttpRouteModulesQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchHttpRouteModulesQuery(params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, HttpRouteModuleSelect>; -}): Promise<{ - httpRouteModules: ConnectionResult>; -}>; -export async function fetchHttpRouteModulesQuery(params: { - selection: ListSelectionConfig< - HttpRouteModuleSelect, - HttpRouteModuleFilter, - HttpRouteModuleOrderBy - >; -}) { - const args = buildListSelectionArgs< - HttpRouteModuleSelect, - HttpRouteModuleFilter, - HttpRouteModuleOrderBy - >(params.selection); - return getClient().httpRouteModule.findMany(args).unwrap(); -} -/** - * Prefetch HttpRouteModule list for SSR or cache warming - * - * @example - * ```ts - * await prefetchHttpRouteModulesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchHttpRouteModulesQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, HttpRouteModuleSelect>; - } -): Promise; -export async function prefetchHttpRouteModulesQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig< - HttpRouteModuleSelect, - HttpRouteModuleFilter, - HttpRouteModuleOrderBy - >; - } -): Promise { - const args = buildListSelectionArgs< - HttpRouteModuleSelect, - HttpRouteModuleFilter, - HttpRouteModuleOrderBy - >(params.selection); - await queryClient.prefetchQuery({ - queryKey: httpRouteModuleKeys.list(args), - queryFn: () => getClient().httpRouteModule.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/modules/hooks/queries/useImageModuleQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useImageModuleQuery.ts new file mode 100644 index 0000000000..05493a6809 --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/queries/useImageModuleQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for ImageModule + * @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 { imageModuleKeys } from '../query-keys'; +import type { ImageModuleSelect, ImageModuleWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { ImageModuleSelect, ImageModuleWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const imageModuleQueryKey = imageModuleKeys.detail; +/** + * Query hook for fetching a single ImageModule + * + * @example + * ```tsx + * const { data, isLoading } = useImageModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useImageModuleQuery< + S extends ImageModuleSelect, + TData = { + imageModule: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ImageModuleSelect>; + } & Omit< + UseQueryOptions< + { + imageModule: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useImageModuleQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: imageModuleKeys.detail(params.id), + queryFn: () => + getClient() + .imageModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single ImageModule without React hooks + * + * @example + * ```ts + * const data = await fetchImageModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchImageModuleQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ImageModuleSelect>; +}): Promise<{ + imageModule: InferSelectResult | null; +}>; +export async function fetchImageModuleQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .imageModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single ImageModule for SSR or cache warming + * + * @example + * ```ts + * await prefetchImageModuleQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchImageModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ImageModuleSelect>; + } +): Promise; +export async function prefetchImageModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: imageModuleKeys.detail(params.id), + queryFn: () => + getClient() + .imageModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/queries/useImageModulesQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useImageModulesQuery.ts new file mode 100644 index 0000000000..3b02f5cc8d --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/queries/useImageModulesQuery.ts @@ -0,0 +1,145 @@ +/** + * List query hook for ImageModule + * @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 { imageModuleKeys } from '../query-keys'; +import type { + ImageModuleSelect, + ImageModuleWithRelations, + ImageModuleFilter, + ImageModuleOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + ImageModuleSelect, + ImageModuleWithRelations, + ImageModuleFilter, + ImageModuleOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const imageModulesQueryKey = imageModuleKeys.list; +/** + * Query hook for fetching ImageModule list + * + * @example + * ```tsx + * const { data, isLoading } = useImageModulesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useImageModulesQuery< + S extends ImageModuleSelect, + TData = { + imageModules: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, ImageModuleSelect>; + } & Omit< + UseQueryOptions< + { + imageModules: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useImageModulesQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs( + params.selection + ); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: imageModuleKeys.list(args), + queryFn: () => getClient().imageModule.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch ImageModule list without React hooks + * + * @example + * ```ts + * const data = await fetchImageModulesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchImageModulesQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, ImageModuleSelect>; +}): Promise<{ + imageModules: ConnectionResult>; +}>; +export async function fetchImageModulesQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs( + params.selection + ); + return getClient().imageModule.findMany(args).unwrap(); +} +/** + * Prefetch ImageModule list for SSR or cache warming + * + * @example + * ```ts + * await prefetchImageModulesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchImageModulesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, ImageModuleSelect>; + } +): Promise; +export async function prefetchImageModulesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs( + params.selection + ); + await queryClient.prefetchQuery({ + queryKey: imageModuleKeys.list(args), + queryFn: () => getClient().imageModule.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/queries/useInternalConfigModuleQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useInternalConfigModuleQuery.ts new file mode 100644 index 0000000000..aaef6ec83d --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/queries/useInternalConfigModuleQuery.ts @@ -0,0 +1,144 @@ +/** + * Scope-aware plaintext internal config store. No namespace_module dependency and no K8s synchronization: values are read from the database at invocation time. Configuration that must be projected into a Kubernetes ConfigMap belongs in infra_config_module. + * @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 { internalConfigModuleKeys } from '../query-keys'; +import type { + InternalConfigModuleSelect, + InternalConfigModuleWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + InternalConfigModuleSelect, + InternalConfigModuleWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const internalConfigModuleQueryKey = internalConfigModuleKeys.detail; +/** + * Scope-aware plaintext internal config store. No namespace_module dependency and no K8s synchronization: values are read from the database at invocation time. Configuration that must be projected into a Kubernetes ConfigMap belongs in infra_config_module. + * + * @example + * ```tsx + * const { data, isLoading } = useInternalConfigModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useInternalConfigModuleQuery< + S extends InternalConfigModuleSelect, + TData = { + internalConfigModule: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, InternalConfigModuleSelect>; + } & Omit< + UseQueryOptions< + { + internalConfigModule: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useInternalConfigModuleQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: internalConfigModuleKeys.detail(params.id), + queryFn: () => + getClient() + .internalConfigModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Scope-aware plaintext internal config store. No namespace_module dependency and no K8s synchronization: values are read from the database at invocation time. Configuration that must be projected into a Kubernetes ConfigMap belongs in infra_config_module. + * + * @example + * ```ts + * const data = await fetchInternalConfigModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchInternalConfigModuleQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, InternalConfigModuleSelect>; +}): Promise<{ + internalConfigModule: InferSelectResult | null; +}>; +export async function fetchInternalConfigModuleQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .internalConfigModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Scope-aware plaintext internal config store. No namespace_module dependency and no K8s synchronization: values are read from the database at invocation time. Configuration that must be projected into a Kubernetes ConfigMap belongs in infra_config_module. + * + * @example + * ```ts + * await prefetchInternalConfigModuleQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchInternalConfigModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, InternalConfigModuleSelect>; + } +): Promise; +export async function prefetchInternalConfigModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: internalConfigModuleKeys.detail(params.id), + queryFn: () => + getClient() + .internalConfigModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/queries/useInternalConfigModulesQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useInternalConfigModulesQuery.ts new file mode 100644 index 0000000000..4de2255e55 --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/queries/useInternalConfigModulesQuery.ts @@ -0,0 +1,178 @@ +/** + * Scope-aware plaintext internal config store. No namespace_module dependency and no K8s synchronization: values are read from the database at invocation time. Configuration that must be projected into a Kubernetes ConfigMap belongs in infra_config_module. + * @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 { internalConfigModuleKeys } from '../query-keys'; +import type { + InternalConfigModuleSelect, + InternalConfigModuleWithRelations, + InternalConfigModuleFilter, + InternalConfigModuleOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + InternalConfigModuleSelect, + InternalConfigModuleWithRelations, + InternalConfigModuleFilter, + InternalConfigModuleOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const internalConfigModulesQueryKey = internalConfigModuleKeys.list; +/** + * Scope-aware plaintext internal config store. No namespace_module dependency and no K8s synchronization: values are read from the database at invocation time. Configuration that must be projected into a Kubernetes ConfigMap belongs in infra_config_module. + * + * @example + * ```tsx + * const { data, isLoading } = useInternalConfigModulesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useInternalConfigModulesQuery< + S extends InternalConfigModuleSelect, + TData = { + internalConfigModules: ConnectionResult< + InferSelectResult + >; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, InternalConfigModuleSelect>; + } & Omit< + UseQueryOptions< + { + internalConfigModules: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useInternalConfigModulesQuery( + params: { + selection: ListSelectionConfig< + InternalConfigModuleSelect, + InternalConfigModuleFilter, + InternalConfigModuleOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + InternalConfigModuleSelect, + InternalConfigModuleFilter, + InternalConfigModuleOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: internalConfigModuleKeys.list(args), + queryFn: () => getClient().internalConfigModule.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Scope-aware plaintext internal config store. No namespace_module dependency and no K8s synchronization: values are read from the database at invocation time. Configuration that must be projected into a Kubernetes ConfigMap belongs in infra_config_module. + * + * @example + * ```ts + * const data = await fetchInternalConfigModulesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchInternalConfigModulesQuery< + S extends InternalConfigModuleSelect, +>(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, InternalConfigModuleSelect>; +}): Promise<{ + internalConfigModules: ConnectionResult>; +}>; +export async function fetchInternalConfigModulesQuery(params: { + selection: ListSelectionConfig< + InternalConfigModuleSelect, + InternalConfigModuleFilter, + InternalConfigModuleOrderBy + >; +}) { + const args = buildListSelectionArgs< + InternalConfigModuleSelect, + InternalConfigModuleFilter, + InternalConfigModuleOrderBy + >(params.selection); + return getClient().internalConfigModule.findMany(args).unwrap(); +} +/** + * Scope-aware plaintext internal config store. No namespace_module dependency and no K8s synchronization: values are read from the database at invocation time. Configuration that must be projected into a Kubernetes ConfigMap belongs in infra_config_module. + * + * @example + * ```ts + * await prefetchInternalConfigModulesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchInternalConfigModulesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, InternalConfigModuleSelect>; + } +): Promise; +export async function prefetchInternalConfigModulesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + InternalConfigModuleSelect, + InternalConfigModuleFilter, + InternalConfigModuleOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + InternalConfigModuleSelect, + InternalConfigModuleFilter, + InternalConfigModuleOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: internalConfigModuleKeys.list(args), + queryFn: () => getClient().internalConfigModule.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/queries/useK8sAdmissionModuleQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useK8sAdmissionModuleQuery.ts new file mode 100644 index 0000000000..b99c2a174f --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/queries/useK8sAdmissionModuleQuery.ts @@ -0,0 +1,144 @@ +/** + * Provisions the platform-managed Kubernetes admission catalogs: a kinds table and a spec-rules table, Merkle-versioned through the referenced merkle_store_module, whose rows the generated admission gate on resources/resource_definitions reads. Writes are platform-admin and human-only; every scope reads the one catalog. + * @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 { k8sAdmissionModuleKeys } from '../query-keys'; +import type { + K8sAdmissionModuleSelect, + K8sAdmissionModuleWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + K8sAdmissionModuleSelect, + K8sAdmissionModuleWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const k8sAdmissionModuleQueryKey = k8sAdmissionModuleKeys.detail; +/** + * Provisions the platform-managed Kubernetes admission catalogs: a kinds table and a spec-rules table, Merkle-versioned through the referenced merkle_store_module, whose rows the generated admission gate on resources/resource_definitions reads. Writes are platform-admin and human-only; every scope reads the one catalog. + * + * @example + * ```tsx + * const { data, isLoading } = useK8sAdmissionModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useK8sAdmissionModuleQuery< + S extends K8sAdmissionModuleSelect, + TData = { + k8sAdmissionModule: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, K8sAdmissionModuleSelect>; + } & Omit< + UseQueryOptions< + { + k8sAdmissionModule: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useK8sAdmissionModuleQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: k8sAdmissionModuleKeys.detail(params.id), + queryFn: () => + getClient() + .k8sAdmissionModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Provisions the platform-managed Kubernetes admission catalogs: a kinds table and a spec-rules table, Merkle-versioned through the referenced merkle_store_module, whose rows the generated admission gate on resources/resource_definitions reads. Writes are platform-admin and human-only; every scope reads the one catalog. + * + * @example + * ```ts + * const data = await fetchK8sAdmissionModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchK8sAdmissionModuleQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, K8sAdmissionModuleSelect>; +}): Promise<{ + k8sAdmissionModule: InferSelectResult | null; +}>; +export async function fetchK8sAdmissionModuleQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .k8sAdmissionModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Provisions the platform-managed Kubernetes admission catalogs: a kinds table and a spec-rules table, Merkle-versioned through the referenced merkle_store_module, whose rows the generated admission gate on resources/resource_definitions reads. Writes are platform-admin and human-only; every scope reads the one catalog. + * + * @example + * ```ts + * await prefetchK8sAdmissionModuleQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchK8sAdmissionModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, K8sAdmissionModuleSelect>; + } +): Promise; +export async function prefetchK8sAdmissionModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: k8sAdmissionModuleKeys.detail(params.id), + queryFn: () => + getClient() + .k8sAdmissionModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/queries/useK8sAdmissionModulesQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useK8sAdmissionModulesQuery.ts new file mode 100644 index 0000000000..4064b33e71 --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/queries/useK8sAdmissionModulesQuery.ts @@ -0,0 +1,171 @@ +/** + * Provisions the platform-managed Kubernetes admission catalogs: a kinds table and a spec-rules table, Merkle-versioned through the referenced merkle_store_module, whose rows the generated admission gate on resources/resource_definitions reads. Writes are platform-admin and human-only; every scope reads the one catalog. + * @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 { k8sAdmissionModuleKeys } from '../query-keys'; +import type { + K8sAdmissionModuleSelect, + K8sAdmissionModuleWithRelations, + K8sAdmissionModuleFilter, + K8sAdmissionModuleOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + K8sAdmissionModuleSelect, + K8sAdmissionModuleWithRelations, + K8sAdmissionModuleFilter, + K8sAdmissionModuleOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const k8sAdmissionModulesQueryKey = k8sAdmissionModuleKeys.list; +/** + * Provisions the platform-managed Kubernetes admission catalogs: a kinds table and a spec-rules table, Merkle-versioned through the referenced merkle_store_module, whose rows the generated admission gate on resources/resource_definitions reads. Writes are platform-admin and human-only; every scope reads the one catalog. + * + * @example + * ```tsx + * const { data, isLoading } = useK8sAdmissionModulesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useK8sAdmissionModulesQuery< + S extends K8sAdmissionModuleSelect, + TData = { + k8sAdmissionModules: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, K8sAdmissionModuleSelect>; + } & Omit< + UseQueryOptions< + { + k8sAdmissionModules: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useK8sAdmissionModulesQuery( + params: { + selection: ListSelectionConfig< + K8sAdmissionModuleSelect, + K8sAdmissionModuleFilter, + K8sAdmissionModuleOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + K8sAdmissionModuleSelect, + K8sAdmissionModuleFilter, + K8sAdmissionModuleOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: k8sAdmissionModuleKeys.list(args), + queryFn: () => getClient().k8sAdmissionModule.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Provisions the platform-managed Kubernetes admission catalogs: a kinds table and a spec-rules table, Merkle-versioned through the referenced merkle_store_module, whose rows the generated admission gate on resources/resource_definitions reads. Writes are platform-admin and human-only; every scope reads the one catalog. + * + * @example + * ```ts + * const data = await fetchK8sAdmissionModulesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchK8sAdmissionModulesQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, K8sAdmissionModuleSelect>; +}): Promise<{ + k8sAdmissionModules: ConnectionResult>; +}>; +export async function fetchK8sAdmissionModulesQuery(params: { + selection: ListSelectionConfig< + K8sAdmissionModuleSelect, + K8sAdmissionModuleFilter, + K8sAdmissionModuleOrderBy + >; +}) { + const args = buildListSelectionArgs< + K8sAdmissionModuleSelect, + K8sAdmissionModuleFilter, + K8sAdmissionModuleOrderBy + >(params.selection); + return getClient().k8sAdmissionModule.findMany(args).unwrap(); +} +/** + * Provisions the platform-managed Kubernetes admission catalogs: a kinds table and a spec-rules table, Merkle-versioned through the referenced merkle_store_module, whose rows the generated admission gate on resources/resource_definitions reads. Writes are platform-admin and human-only; every scope reads the one catalog. + * + * @example + * ```ts + * await prefetchK8sAdmissionModulesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchK8sAdmissionModulesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, K8sAdmissionModuleSelect>; + } +): Promise; +export async function prefetchK8sAdmissionModulesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + K8sAdmissionModuleSelect, + K8sAdmissionModuleFilter, + K8sAdmissionModuleOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + K8sAdmissionModuleSelect, + K8sAdmissionModuleFilter, + K8sAdmissionModuleOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: k8sAdmissionModuleKeys.list(args), + queryFn: () => getClient().k8sAdmissionModule.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/queries/useMachineModuleQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useMachineModuleQuery.ts new file mode 100644 index 0000000000..64ad255352 --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/queries/useMachineModuleQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for MachineModule + * @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 { machineModuleKeys } from '../query-keys'; +import type { MachineModuleSelect, MachineModuleWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { MachineModuleSelect, MachineModuleWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const machineModuleQueryKey = machineModuleKeys.detail; +/** + * Query hook for fetching a single MachineModule + * + * @example + * ```tsx + * const { data, isLoading } = useMachineModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useMachineModuleQuery< + S extends MachineModuleSelect, + TData = { + machineModule: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, MachineModuleSelect>; + } & Omit< + UseQueryOptions< + { + machineModule: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useMachineModuleQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: machineModuleKeys.detail(params.id), + queryFn: () => + getClient() + .machineModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single MachineModule without React hooks + * + * @example + * ```ts + * const data = await fetchMachineModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchMachineModuleQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, MachineModuleSelect>; +}): Promise<{ + machineModule: InferSelectResult | null; +}>; +export async function fetchMachineModuleQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .machineModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single MachineModule for SSR or cache warming + * + * @example + * ```ts + * await prefetchMachineModuleQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchMachineModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, MachineModuleSelect>; + } +): Promise; +export async function prefetchMachineModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: machineModuleKeys.detail(params.id), + queryFn: () => + getClient() + .machineModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/queries/useMachineModulesQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useMachineModulesQuery.ts new file mode 100644 index 0000000000..fae3d896d0 --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/queries/useMachineModulesQuery.ts @@ -0,0 +1,151 @@ +/** + * List query hook for MachineModule + * @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 { machineModuleKeys } from '../query-keys'; +import type { + MachineModuleSelect, + MachineModuleWithRelations, + MachineModuleFilter, + MachineModuleOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + MachineModuleSelect, + MachineModuleWithRelations, + MachineModuleFilter, + MachineModuleOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const machineModulesQueryKey = machineModuleKeys.list; +/** + * Query hook for fetching MachineModule list + * + * @example + * ```tsx + * const { data, isLoading } = useMachineModulesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useMachineModulesQuery< + S extends MachineModuleSelect, + TData = { + machineModules: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, MachineModuleSelect>; + } & Omit< + UseQueryOptions< + { + machineModules: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useMachineModulesQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + MachineModuleSelect, + MachineModuleFilter, + MachineModuleOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: machineModuleKeys.list(args), + queryFn: () => getClient().machineModule.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch MachineModule list without React hooks + * + * @example + * ```ts + * const data = await fetchMachineModulesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchMachineModulesQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, MachineModuleSelect>; +}): Promise<{ + machineModules: ConnectionResult>; +}>; +export async function fetchMachineModulesQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs< + MachineModuleSelect, + MachineModuleFilter, + MachineModuleOrderBy + >(params.selection); + return getClient().machineModule.findMany(args).unwrap(); +} +/** + * Prefetch MachineModule list for SSR or cache warming + * + * @example + * ```ts + * await prefetchMachineModulesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchMachineModulesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, MachineModuleSelect>; + } +): Promise; +export async function prefetchMachineModulesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs< + MachineModuleSelect, + MachineModuleFilter, + MachineModuleOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: machineModuleKeys.list(args), + queryFn: () => getClient().machineModule.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/queries/useRefusalLogModuleQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useRefusalLogModuleQuery.ts new file mode 100644 index 0000000000..7d76adbeff --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/queries/useRefusalLogModuleQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for RefusalLogModule + * @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 { refusalLogModuleKeys } from '../query-keys'; +import type { RefusalLogModuleSelect, RefusalLogModuleWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { RefusalLogModuleSelect, RefusalLogModuleWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const refusalLogModuleQueryKey = refusalLogModuleKeys.detail; +/** + * Query hook for fetching a single RefusalLogModule + * + * @example + * ```tsx + * const { data, isLoading } = useRefusalLogModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useRefusalLogModuleQuery< + S extends RefusalLogModuleSelect, + TData = { + refusalLogModule: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, RefusalLogModuleSelect>; + } & Omit< + UseQueryOptions< + { + refusalLogModule: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useRefusalLogModuleQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: refusalLogModuleKeys.detail(params.id), + queryFn: () => + getClient() + .refusalLogModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single RefusalLogModule without React hooks + * + * @example + * ```ts + * const data = await fetchRefusalLogModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchRefusalLogModuleQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, RefusalLogModuleSelect>; +}): Promise<{ + refusalLogModule: InferSelectResult | null; +}>; +export async function fetchRefusalLogModuleQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .refusalLogModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single RefusalLogModule for SSR or cache warming + * + * @example + * ```ts + * await prefetchRefusalLogModuleQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchRefusalLogModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, RefusalLogModuleSelect>; + } +): Promise; +export async function prefetchRefusalLogModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: refusalLogModuleKeys.detail(params.id), + queryFn: () => + getClient() + .refusalLogModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/queries/useRefusalLogModulesQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useRefusalLogModulesQuery.ts new file mode 100644 index 0000000000..1f18b5d7c0 --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/queries/useRefusalLogModulesQuery.ts @@ -0,0 +1,163 @@ +/** + * List query hook for RefusalLogModule + * @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 { refusalLogModuleKeys } from '../query-keys'; +import type { + RefusalLogModuleSelect, + RefusalLogModuleWithRelations, + RefusalLogModuleFilter, + RefusalLogModuleOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + RefusalLogModuleSelect, + RefusalLogModuleWithRelations, + RefusalLogModuleFilter, + RefusalLogModuleOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const refusalLogModulesQueryKey = refusalLogModuleKeys.list; +/** + * Query hook for fetching RefusalLogModule list + * + * @example + * ```tsx + * const { data, isLoading } = useRefusalLogModulesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useRefusalLogModulesQuery< + S extends RefusalLogModuleSelect, + TData = { + refusalLogModules: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, RefusalLogModuleSelect>; + } & Omit< + UseQueryOptions< + { + refusalLogModules: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useRefusalLogModulesQuery( + params: { + selection: ListSelectionConfig< + RefusalLogModuleSelect, + RefusalLogModuleFilter, + RefusalLogModuleOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + RefusalLogModuleSelect, + RefusalLogModuleFilter, + RefusalLogModuleOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: refusalLogModuleKeys.list(args), + queryFn: () => getClient().refusalLogModule.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch RefusalLogModule list without React hooks + * + * @example + * ```ts + * const data = await fetchRefusalLogModulesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchRefusalLogModulesQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, RefusalLogModuleSelect>; +}): Promise<{ + refusalLogModules: ConnectionResult>; +}>; +export async function fetchRefusalLogModulesQuery(params: { + selection: ListSelectionConfig< + RefusalLogModuleSelect, + RefusalLogModuleFilter, + RefusalLogModuleOrderBy + >; +}) { + const args = buildListSelectionArgs< + RefusalLogModuleSelect, + RefusalLogModuleFilter, + RefusalLogModuleOrderBy + >(params.selection); + return getClient().refusalLogModule.findMany(args).unwrap(); +} +/** + * Prefetch RefusalLogModule list for SSR or cache warming + * + * @example + * ```ts + * await prefetchRefusalLogModulesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchRefusalLogModulesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, RefusalLogModuleSelect>; + } +): Promise; +export async function prefetchRefusalLogModulesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + RefusalLogModuleSelect, + RefusalLogModuleFilter, + RefusalLogModuleOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + RefusalLogModuleSelect, + RefusalLogModuleFilter, + RefusalLogModuleOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: refusalLogModuleKeys.list(args), + queryFn: () => getClient().refusalLogModule.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/queries/useRepositoryModuleQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useRepositoryModuleQuery.ts new file mode 100644 index 0000000000..6f80d92dfe --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/queries/useRepositoryModuleQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for RepositoryModule + * @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 { repositoryModuleKeys } from '../query-keys'; +import type { RepositoryModuleSelect, RepositoryModuleWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { RepositoryModuleSelect, RepositoryModuleWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const repositoryModuleQueryKey = repositoryModuleKeys.detail; +/** + * Query hook for fetching a single RepositoryModule + * + * @example + * ```tsx + * const { data, isLoading } = useRepositoryModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useRepositoryModuleQuery< + S extends RepositoryModuleSelect, + TData = { + repositoryModule: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, RepositoryModuleSelect>; + } & Omit< + UseQueryOptions< + { + repositoryModule: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useRepositoryModuleQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: repositoryModuleKeys.detail(params.id), + queryFn: () => + getClient() + .repositoryModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single RepositoryModule without React hooks + * + * @example + * ```ts + * const data = await fetchRepositoryModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchRepositoryModuleQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, RepositoryModuleSelect>; +}): Promise<{ + repositoryModule: InferSelectResult | null; +}>; +export async function fetchRepositoryModuleQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .repositoryModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single RepositoryModule for SSR or cache warming + * + * @example + * ```ts + * await prefetchRepositoryModuleQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchRepositoryModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, RepositoryModuleSelect>; + } +): Promise; +export async function prefetchRepositoryModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: repositoryModuleKeys.detail(params.id), + queryFn: () => + getClient() + .repositoryModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/queries/useRepositoryModulesQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useRepositoryModulesQuery.ts new file mode 100644 index 0000000000..f4c7e3c949 --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/queries/useRepositoryModulesQuery.ts @@ -0,0 +1,163 @@ +/** + * List query hook for RepositoryModule + * @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 { repositoryModuleKeys } from '../query-keys'; +import type { + RepositoryModuleSelect, + RepositoryModuleWithRelations, + RepositoryModuleFilter, + RepositoryModuleOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + RepositoryModuleSelect, + RepositoryModuleWithRelations, + RepositoryModuleFilter, + RepositoryModuleOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const repositoryModulesQueryKey = repositoryModuleKeys.list; +/** + * Query hook for fetching RepositoryModule list + * + * @example + * ```tsx + * const { data, isLoading } = useRepositoryModulesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useRepositoryModulesQuery< + S extends RepositoryModuleSelect, + TData = { + repositoryModules: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, RepositoryModuleSelect>; + } & Omit< + UseQueryOptions< + { + repositoryModules: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useRepositoryModulesQuery( + params: { + selection: ListSelectionConfig< + RepositoryModuleSelect, + RepositoryModuleFilter, + RepositoryModuleOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + RepositoryModuleSelect, + RepositoryModuleFilter, + RepositoryModuleOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: repositoryModuleKeys.list(args), + queryFn: () => getClient().repositoryModule.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch RepositoryModule list without React hooks + * + * @example + * ```ts + * const data = await fetchRepositoryModulesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchRepositoryModulesQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, RepositoryModuleSelect>; +}): Promise<{ + repositoryModules: ConnectionResult>; +}>; +export async function fetchRepositoryModulesQuery(params: { + selection: ListSelectionConfig< + RepositoryModuleSelect, + RepositoryModuleFilter, + RepositoryModuleOrderBy + >; +}) { + const args = buildListSelectionArgs< + RepositoryModuleSelect, + RepositoryModuleFilter, + RepositoryModuleOrderBy + >(params.selection); + return getClient().repositoryModule.findMany(args).unwrap(); +} +/** + * Prefetch RepositoryModule list for SSR or cache warming + * + * @example + * ```ts + * await prefetchRepositoryModulesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchRepositoryModulesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, RepositoryModuleSelect>; + } +): Promise; +export async function prefetchRepositoryModulesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + RepositoryModuleSelect, + RepositoryModuleFilter, + RepositoryModuleOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + RepositoryModuleSelect, + RepositoryModuleFilter, + RepositoryModuleOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: repositoryModuleKeys.list(args), + queryFn: () => getClient().repositoryModule.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/queries/useSecureTableProvisionQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useSecureTableProvisionQuery.ts index 53e81e59e2..e634924d79 100644 --- a/sdk/constructive-react/src/modules/hooks/queries/useSecureTableProvisionQuery.ts +++ b/sdk/constructive-react/src/modules/hooks/queries/useSecureTableProvisionQuery.ts @@ -1,5 +1,5 @@ /** - * 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. + * 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. The target table is addressed by table_id, by table_name, or symbolically by a module reference in module. A row that lists a concern in owns[] replaces that concern on the target table instead of composing with what is already there. * @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 secureTableProvisionQueryKey = secureTableProvisionKeys.detail; /** - * 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. + * 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. The target table is addressed by table_id, by table_name, or symbolically by a module reference in module. A row that lists a concern in owns[] replaces that concern on the target table instead of composing with what is already there. * * @example * ```tsx @@ -76,7 +76,7 @@ export function useSecureTableProvisionQuery( }); } /** - * 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. + * 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. The target table is addressed by table_id, by table_name, or symbolically by a module reference in module. A row that lists a concern in owns[] replaces that concern on the target table instead of composing with what is already there. * * @example * ```ts @@ -107,7 +107,7 @@ export async function fetchSecureTableProvisionQuery(params: { .unwrap(); } /** - * 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. + * 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. The target table is addressed by table_id, by table_name, or symbolically by a module reference in module. A row that lists a concern in owns[] replaces that concern on the target table instead of composing with what is already there. * * @example * ```ts diff --git a/sdk/constructive-react/src/modules/hooks/queries/useSecureTableProvisionsQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useSecureTableProvisionsQuery.ts index 8b1d026dd0..9429b77ce8 100644 --- a/sdk/constructive-react/src/modules/hooks/queries/useSecureTableProvisionsQuery.ts +++ b/sdk/constructive-react/src/modules/hooks/queries/useSecureTableProvisionsQuery.ts @@ -1,5 +1,5 @@ /** - * 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. + * 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. The target table is addressed by table_id, by table_name, or symbolically by a module reference in module. A row that lists a concern in owns[] replaces that concern on the target table instead of composing with what is already there. * @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 secureTableProvisionsQueryKey = secureTableProvisionKeys.list; /** - * 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. + * 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. The target table is addressed by table_id, by table_name, or symbolically by a module reference in module. A row that lists a concern in owns[] replaces that concern on the target table instead of composing with what is already there. * * @example * ```tsx @@ -97,7 +97,7 @@ export function useSecureTableProvisionsQuery( }); } /** - * 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. + * 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. The target table is addressed by table_id, by table_name, or symbolically by a module reference in module. A row that lists a concern in owns[] replaces that concern on the target table instead of composing with what is already there. * * @example * ```ts @@ -137,7 +137,7 @@ export async function fetchSecureTableProvisionsQuery(params: { return getClient().secureTableProvision.findMany(args).unwrap(); } /** - * 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. + * 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. The target table is addressed by table_id, by table_name, or symbolically by a module reference in module. A row that lists a concern in owns[] replaces that concern on the target table instead of composing with what is already there. * * @example * ```ts diff --git a/sdk/constructive-react/src/modules/hooks/query-keys.ts b/sdk/constructive-react/src/modules/hooks/query-keys.ts index 8e143a3f84..6fd50c6b05 100644 --- a/sdk/constructive-react/src/modules/hooks/query-keys.ts +++ b/sdk/constructive-react/src/modules/hooks/query-keys.ts @@ -109,6 +109,15 @@ export const catalogModuleKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...catalogModuleKeys.details(), id] as const, } as const; +export const clusterModuleKeys = { + /** All clusterModule queries */ all: ['clustermodule'] as const, + /** List query keys */ lists: () => [...clusterModuleKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...clusterModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...clusterModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...clusterModuleKeys.details(), id] as const, +} as const; export const computeLogModuleKeys = { /** All computeLogModule queries */ all: ['computelogmodule'] as const, /** List query keys */ lists: () => [...computeLogModuleKeys.all, 'list'] as const, @@ -118,15 +127,6 @@ export const computeLogModuleKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...computeLogModuleKeys.details(), id] as const, } as const; -export const configSecretsUserModuleKeys = { - /** All configSecretsUserModule queries */ all: ['configsecretsusermodule'] as const, - /** List query keys */ lists: () => [...configSecretsUserModuleKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...configSecretsUserModuleKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...configSecretsUserModuleKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...configSecretsUserModuleKeys.details(), id] as const, -} as const; export const connectedAccountsModuleKeys = { /** All connectedAccountsModule queries */ all: ['connectedaccountsmodule'] as const, /** List query keys */ lists: () => [...connectedAccountsModuleKeys.all, 'list'] as const, @@ -361,15 +361,6 @@ export const hierarchyModuleKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...hierarchyModuleKeys.details(), id] as const, } as const; -export const httpRouteModuleKeys = { - /** All httpRouteModule queries */ all: ['httproutemodule'] as const, - /** List query keys */ lists: () => [...httpRouteModuleKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...httpRouteModuleKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...httpRouteModuleKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...httpRouteModuleKeys.details(), id] as const, -} as const; export const i18NModuleKeys = { /** All i18NModule queries */ all: ['i18nmodule'] as const, /** List query keys */ lists: () => [...i18NModuleKeys.all, 'list'] as const, @@ -388,6 +379,15 @@ export const identityProvidersModuleKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...identityProvidersModuleKeys.details(), id] as const, } as const; +export const imageModuleKeys = { + /** All imageModule queries */ all: ['imagemodule'] as const, + /** List query keys */ lists: () => [...imageModuleKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...imageModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...imageModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...imageModuleKeys.details(), id] as const, +} as const; export const inferenceLogModuleKeys = { /** All inferenceLogModule queries */ all: ['inferencelogmodule'] as const, /** List query keys */ lists: () => [...inferenceLogModuleKeys.all, 'list'] as const, @@ -425,6 +425,15 @@ export const integrationProvidersModuleKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...integrationProvidersModuleKeys.details(), id] as const, } as const; +export const internalConfigModuleKeys = { + /** All internalConfigModule queries */ all: ['internalconfigmodule'] as const, + /** List query keys */ lists: () => [...internalConfigModuleKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...internalConfigModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...internalConfigModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...internalConfigModuleKeys.details(), id] as const, +} as const; export const internalSecretsModuleKeys = { /** All internalSecretsModule queries */ all: ['internalsecretsmodule'] as const, /** List query keys */ lists: () => [...internalSecretsModuleKeys.all, 'list'] as const, @@ -443,6 +452,15 @@ export const invitesModuleKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...invitesModuleKeys.details(), id] as const, } as const; +export const k8sAdmissionModuleKeys = { + /** All k8sAdmissionModule queries */ all: ['k8sadmissionmodule'] as const, + /** List query keys */ lists: () => [...k8sAdmissionModuleKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...k8sAdmissionModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...k8sAdmissionModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...k8sAdmissionModuleKeys.details(), id] as const, +} as const; export const limitsModuleKeys = { /** All limitsModule queries */ all: ['limitsmodule'] as const, /** List query keys */ lists: () => [...limitsModuleKeys.all, 'list'] as const, @@ -452,6 +470,15 @@ export const limitsModuleKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...limitsModuleKeys.details(), id] as const, } as const; +export const machineModuleKeys = { + /** All machineModule queries */ all: ['machinemodule'] as const, + /** List query keys */ lists: () => [...machineModuleKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...machineModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...machineModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...machineModuleKeys.details(), id] as const, +} as const; export const membershipTypesModuleKeys = { /** All membershipTypesModule queries */ all: ['membershiptypesmodule'] as const, /** List query keys */ lists: () => [...membershipTypesModuleKeys.all, 'list'] as const, @@ -578,6 +605,15 @@ export const realtimeModuleKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...realtimeModuleKeys.details(), id] as const, } as const; +export const refusalLogModuleKeys = { + /** All refusalLogModule queries */ all: ['refusallogmodule'] as const, + /** List query keys */ lists: () => [...refusalLogModuleKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...refusalLogModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...refusalLogModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...refusalLogModuleKeys.details(), id] as const, +} as const; export const relationProvisionKeys = { /** All relationProvision queries */ all: ['relationprovision'] as const, /** List query keys */ lists: () => [...relationProvisionKeys.all, 'list'] as const, @@ -587,6 +623,15 @@ export const relationProvisionKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...relationProvisionKeys.details(), id] as const, } as const; +export const repositoryModuleKeys = { + /** All repositoryModule queries */ all: ['repositorymodule'] as const, + /** List query keys */ lists: () => [...repositoryModuleKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...repositoryModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...repositoryModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...repositoryModuleKeys.details(), id] as const, +} as const; export const resourceModuleKeys = { /** All resourceModule queries */ all: ['resourcemodule'] as const, /** List query keys */ lists: () => [...resourceModuleKeys.all, 'list'] as const, @@ -801,8 +846,8 @@ export const queryKeys = { blueprintTemplate: blueprintTemplateKeys, capabilitiesModule: capabilitiesModuleKeys, catalogModule: catalogModuleKeys, + clusterModule: clusterModuleKeys, computeLogModule: computeLogModuleKeys, - configSecretsUserModule: configSecretsUserModuleKeys, connectedAccountsModule: connectedAccountsModuleKeys, contentPresetModule: contentPresetModuleKeys, cryptoAddressesModule: cryptoAddressesModuleKeys, @@ -829,16 +874,19 @@ export const queryKeys = { graphExecutionModule: graphExecutionModuleKeys, graphModule: graphModuleKeys, hierarchyModule: hierarchyModuleKeys, - httpRouteModule: httpRouteModuleKeys, i18NModule: i18NModuleKeys, identityProvidersModule: identityProvidersModuleKeys, + imageModule: imageModuleKeys, inferenceLogModule: inferenceLogModuleKeys, infraConfigModule: infraConfigModuleKeys, infraSecretsModule: infraSecretsModuleKeys, integrationProvidersModule: integrationProvidersModuleKeys, + internalConfigModule: internalConfigModuleKeys, internalSecretsModule: internalSecretsModuleKeys, invitesModule: invitesModuleKeys, + k8sAdmissionModule: k8sAdmissionModuleKeys, limitsModule: limitsModuleKeys, + machineModule: machineModuleKeys, membershipTypesModule: membershipTypesModuleKeys, membershipsModule: membershipsModuleKeys, merkleStoreModule: merkleStoreModuleKeys, @@ -853,7 +901,9 @@ export const queryKeys = { rateLimitMetersModule: rateLimitMetersModuleKeys, rateLimitsModule: rateLimitsModuleKeys, realtimeModule: realtimeModuleKeys, + refusalLogModule: refusalLogModuleKeys, relationProvision: relationProvisionKeys, + repositoryModule: repositoryModuleKeys, resourceModule: resourceModuleKeys, rlsModule: rlsModuleKeys, routeModule: routeModuleKeys, diff --git a/sdk/constructive-react/src/modules/orm/README.md b/sdk/constructive-react/src/modules/orm/README.md index c63c9c0488..dae8c55bb3 100644 --- a/sdk/constructive-react/src/modules/orm/README.md +++ b/sdk/constructive-react/src/modules/orm/README.md @@ -31,8 +31,8 @@ const db = createClient({ | `blueprintTemplate` | findMany, findOne, create, update, delete | | `capabilitiesModule` | findMany, findOne, create, update, delete | | `catalogModule` | findMany, findOne, create, update, delete | +| `clusterModule` | 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 | @@ -59,16 +59,19 @@ const db = createClient({ | `graphExecutionModule` | findMany, findOne, create, update, delete | | `graphModule` | findMany, findOne, create, update, delete | | `hierarchyModule` | findMany, findOne, create, update, delete | -| `httpRouteModule` | findMany, findOne, create, update, delete | | `i18NModule` | findMany, findOne, create, update, delete | | `identityProvidersModule` | findMany, findOne, create, update, delete | +| `imageModule` | findMany, findOne, create, update, delete | | `inferenceLogModule` | findMany, findOne, create, update, delete | | `infraConfigModule` | findMany, findOne, create, update, delete | | `infraSecretsModule` | findMany, findOne, create, update, delete | | `integrationProvidersModule` | findMany, findOne, create, update, delete | +| `internalConfigModule` | findMany, findOne, create, update, delete | | `internalSecretsModule` | findMany, findOne, create, update, delete | | `invitesModule` | findMany, findOne, create, update, delete | +| `k8sAdmissionModule` | findMany, findOne, create, update, delete | | `limitsModule` | findMany, findOne, create, update, delete | +| `machineModule` | findMany, findOne, create, update, delete | | `membershipTypesModule` | findMany, findOne, create, update, delete | | `membershipsModule` | findMany, findOne, create, update, delete | | `merkleStoreModule` | findMany, findOne, create, update, delete | @@ -83,7 +86,9 @@ const db = createClient({ | `rateLimitMetersModule` | findMany, findOne, create, update, delete | | `rateLimitsModule` | findMany, findOne, create, update, delete | | `realtimeModule` | findMany, findOne, create, update, delete | +| `refusalLogModule` | findMany, findOne, create, update, delete | | `relationProvision` | findMany, findOne, create, update, delete | +| `repositoryModule` | findMany, findOne, create, update, delete | | `resourceModule` | findMany, findOne, create, update, delete | | `rlsModule` | findMany, findOne, create, update, delete | | `routeModule` | findMany, findOne, create, update, delete | @@ -120,11 +125,17 @@ CRUD operations for AgentModule records. | `apiName` | String | Yes | | `databaseId` | UUID | Yes | | `defaultCapabilities` | String | Yes | +| `defaultVisibility` | String | Yes | | `entityField` | String | Yes | | `entityTableId` | UUID | Yes | +| `eventTableId` | UUID | Yes | +| `eventTableName` | String | Yes | | `hasAgents` | Boolean | Yes | +| `hasAttachments` | Boolean | Yes | | `hasPlans` | Boolean | Yes | +| `hasRepositoryResources` | Boolean | Yes | | `hasResources` | Boolean | Yes | +| `hasRuns` | Boolean | Yes | | `id` | UUID | No | | `messageTableId` | UUID | Yes | | `messageTableName` | String | Yes | @@ -141,28 +152,33 @@ CRUD operations for AgentModule records. | `promptsTableName` | String | Yes | | `provisions` | JSON | Yes | | `publicSchemaName` | String | Yes | +| `resourceRepositoryTableId` | UUID | Yes | +| `resourceRepositoryTableName` | String | Yes | | `resourceTableId` | UUID | Yes | | `resourceTableName` | String | Yes | | `resources` | JSON | Yes | +| `runTableId` | UUID | Yes | +| `runTableName` | String | Yes | | `schemaId` | UUID | Yes | | `scope` | String | Yes | -| `shared` | Boolean | Yes | | `taskTableId` | UUID | Yes | | `taskTableName` | String | Yes | | `threadTableId` | UUID | Yes | | `threadTableName` | String | Yes | +| `workspaceTableId` | UUID | Yes | +| `workspaceTableName` | String | Yes | **Operations:** ```typescript // List all agentModule records -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(); +const items = await db.agentModule.findMany({ select: { agentTableId: true, agentTableName: true, apiName: true, databaseId: true, defaultCapabilities: true, defaultVisibility: true, entityField: true, entityTableId: true, eventTableId: true, eventTableName: true, hasAgents: true, hasAttachments: true, hasPlans: true, hasRepositoryResources: true, hasResources: true, hasRuns: 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, resourceRepositoryTableId: true, resourceRepositoryTableName: true, resourceTableId: true, resourceTableName: true, resources: true, runTableId: true, runTableName: true, schemaId: true, scope: true, taskTableId: true, taskTableName: true, threadTableId: true, threadTableName: true, workspaceTableId: true, workspaceTableName: true } }).execute(); // Get one by id -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(); +const item = await db.agentModule.findOne({ id: '', select: { agentTableId: true, agentTableName: true, apiName: true, databaseId: true, defaultCapabilities: true, defaultVisibility: true, entityField: true, entityTableId: true, eventTableId: true, eventTableName: true, hasAgents: true, hasAttachments: true, hasPlans: true, hasRepositoryResources: true, hasResources: true, hasRuns: 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, resourceRepositoryTableId: true, resourceRepositoryTableName: true, resourceTableId: true, resourceTableName: true, resources: true, runTableId: true, runTableName: true, schemaId: true, scope: true, taskTableId: true, taskTableName: true, threadTableId: true, threadTableName: true, workspaceTableId: true, workspaceTableName: true } }).execute(); // Create -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(); +const created = await db.agentModule.create({ data: { agentTableId: '', agentTableName: '', apiName: '', databaseId: '', defaultCapabilities: '', defaultVisibility: '', entityField: '', entityTableId: '', eventTableId: '', eventTableName: '', hasAgents: '', hasAttachments: '', hasPlans: '', hasRepositoryResources: '', hasResources: '', hasRuns: '', messageTableId: '', messageTableName: '', personaTableId: '', personaTableName: '', planTableId: '', planTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', promptsTableId: '', promptsTableName: '', provisions: '', publicSchemaName: '', resourceRepositoryTableId: '', resourceRepositoryTableName: '', resourceTableId: '', resourceTableName: '', resources: '', runTableId: '', runTableName: '', schemaId: '', scope: '', taskTableId: '', taskTableName: '', threadTableId: '', threadTableName: '', workspaceTableId: '', workspaceTableName: '' }, select: { id: true } }).execute(); // Update const updated = await db.agentModule.update({ where: { id: '' }, data: { agentTableId: '' }, select: { id: true } }).execute(); @@ -232,6 +248,7 @@ CRUD operations for AppModule records. | `apiName` | String | Yes | | `appComponentsTableId` | UUID | Yes | | `appComponentsTableName` | String | Yes | +| `appStoreIdentitiesTableName` | String | Yes | | `appsTableId` | UUID | Yes | | `appsTableName` | String | Yes | | `catalogModuleId` | UUID | Yes | @@ -254,13 +271,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, 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(); +const items = await db.appModule.findMany({ select: { apiName: true, appComponentsTableId: true, appComponentsTableName: true, appStoreIdentitiesTableName: 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, 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(); +const item = await db.appModule.findOne({ id: '', select: { apiName: true, appComponentsTableId: true, appComponentsTableName: true, appStoreIdentitiesTableName: 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: '', defaultCapabilities: '', 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: '', appStoreIdentitiesTableName: '', 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(); @@ -333,9 +350,12 @@ CRUD operations for BillingProviderModule records. | Field | Type | Editable | |-------|------|----------| +| `activatePlanSubscriptionFunction` | String | Yes | | `apiName` | String | Yes | | `billingCustomersTableId` | UUID | Yes | | `billingCustomersTableName` | String | Yes | +| `billingDisputesTableId` | UUID | Yes | +| `billingDisputesTableName` | String | Yes | | `billingInvoicesTableId` | UUID | Yes | | `billingInvoicesTableName` | String | Yes | | `billingPricesTableId` | UUID | Yes | @@ -349,6 +369,12 @@ CRUD operations for BillingProviderModule records. | `billingWebhookEventsTableId` | UUID | Yes | | `billingWebhookEventsTableName` | String | Yes | | `databaseId` | UUID | Yes | +| `getActivePlanPricingFunction` | String | Yes | +| `getBillingCustomerFunction` | String | Yes | +| `getBillingPriceFunction` | String | Yes | +| `getBillingProductFunction` | String | Yes | +| `getBillingSubscriptionFunction` | String | Yes | +| `getFallbackFreePlanFunction` | String | Yes | | `id` | UUID | No | | `listPendingUsageSyncFunction` | String | Yes | | `markUsageSyncedFunction` | String | Yes | @@ -359,25 +385,31 @@ CRUD operations for BillingProviderModule records. | `processBillingEventFunction` | String | Yes | | `productsTableId` | UUID | Yes | | `provider` | String | Yes | +| `recordDisputeFunction` | String | Yes | | `recordRefundFunction` | String | Yes | | `schemaId` | UUID | Yes | | `subscriptionsTableId` | UUID | Yes | +| `sweepOverdueSubscriptionsFunction` | String | Yes | +| `upsertBillingCustomerFunction` | String | Yes | +| `upsertBillingPriceFunction` | String | Yes | +| `upsertBillingProductFunction` | String | Yes | +| `upsertBillingSubscriptionFunction` | String | Yes | | `upsertInvoiceFunction` | String | Yes | **Operations:** ```typescript // List all billingProviderModule records -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(); +const items = await db.billingProviderModule.findMany({ select: { activatePlanSubscriptionFunction: true, apiName: true, billingCustomersTableId: true, billingCustomersTableName: true, billingDisputesTableId: true, billingDisputesTableName: 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, getActivePlanPricingFunction: true, getBillingCustomerFunction: true, getBillingPriceFunction: true, getBillingProductFunction: true, getBillingSubscriptionFunction: true, getFallbackFreePlanFunction: true, id: true, listPendingUsageSyncFunction: true, markUsageSyncedFunction: true, prefix: true, pricesTableId: true, privateApiName: true, privateSchemaId: true, processBillingEventFunction: true, productsTableId: true, provider: true, recordDisputeFunction: true, recordRefundFunction: true, schemaId: true, subscriptionsTableId: true, sweepOverdueSubscriptionsFunction: true, upsertBillingCustomerFunction: true, upsertBillingPriceFunction: true, upsertBillingProductFunction: true, upsertBillingSubscriptionFunction: true, upsertInvoiceFunction: true } }).execute(); // Get one by id -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(); +const item = await db.billingProviderModule.findOne({ id: '', select: { activatePlanSubscriptionFunction: true, apiName: true, billingCustomersTableId: true, billingCustomersTableName: true, billingDisputesTableId: true, billingDisputesTableName: 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, getActivePlanPricingFunction: true, getBillingCustomerFunction: true, getBillingPriceFunction: true, getBillingProductFunction: true, getBillingSubscriptionFunction: true, getFallbackFreePlanFunction: true, id: true, listPendingUsageSyncFunction: true, markUsageSyncedFunction: true, prefix: true, pricesTableId: true, privateApiName: true, privateSchemaId: true, processBillingEventFunction: true, productsTableId: true, provider: true, recordDisputeFunction: true, recordRefundFunction: true, schemaId: true, subscriptionsTableId: true, sweepOverdueSubscriptionsFunction: true, upsertBillingCustomerFunction: true, upsertBillingPriceFunction: true, upsertBillingProductFunction: true, upsertBillingSubscriptionFunction: true, upsertInvoiceFunction: true } }).execute(); // Create -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(); +const created = await db.billingProviderModule.create({ data: { activatePlanSubscriptionFunction: '', apiName: '', billingCustomersTableId: '', billingCustomersTableName: '', billingDisputesTableId: '', billingDisputesTableName: '', billingInvoicesTableId: '', billingInvoicesTableName: '', billingPricesTableId: '', billingPricesTableName: '', billingProductsTableId: '', billingProductsTableName: '', billingRefundsTableId: '', billingRefundsTableName: '', billingSubscriptionsTableId: '', billingSubscriptionsTableName: '', billingWebhookEventsTableId: '', billingWebhookEventsTableName: '', databaseId: '', getActivePlanPricingFunction: '', getBillingCustomerFunction: '', getBillingPriceFunction: '', getBillingProductFunction: '', getBillingSubscriptionFunction: '', getFallbackFreePlanFunction: '', listPendingUsageSyncFunction: '', markUsageSyncedFunction: '', prefix: '', pricesTableId: '', privateApiName: '', privateSchemaId: '', processBillingEventFunction: '', productsTableId: '', provider: '', recordDisputeFunction: '', recordRefundFunction: '', schemaId: '', subscriptionsTableId: '', sweepOverdueSubscriptionsFunction: '', upsertBillingCustomerFunction: '', upsertBillingPriceFunction: '', upsertBillingProductFunction: '', upsertBillingSubscriptionFunction: '', upsertInvoiceFunction: '' }, select: { id: true } }).execute(); // Update -const updated = await db.billingProviderModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); +const updated = await db.billingProviderModule.update({ where: { id: '' }, data: { activatePlanSubscriptionFunction: '' }, select: { id: true } }).execute(); // Delete const deleted = await db.billingProviderModule.delete({ where: { id: '' } }).execute(); @@ -571,6 +603,8 @@ CRUD operations for CatalogModule records. | `apiName` | String | Yes | | `apisTableId` | UUID | Yes | | `apisTableName` | String | Yes | +| `appStoreIdentitiesTableId` | UUID | Yes | +| `appStoreIdentitiesTableName` | String | Yes | | `appsTableId` | UUID | Yes | | `appsTableName` | String | Yes | | `bindingsTableId` | UUID | Yes | @@ -585,12 +619,18 @@ CRUD operations for CatalogModule records. | `functionsTableId` | UUID | Yes | | `functionsTableName` | String | Yes | | `id` | UUID | No | +| `imagesTableId` | UUID | Yes | +| `imagesTableName` | String | Yes | +| `managedDomainsTableId` | UUID | Yes | +| `managedDomainsTableName` | String | Yes | | `namespacesTableId` | UUID | Yes | | `namespacesTableName` | String | Yes | | `policies` | JSON | Yes | | `privateApiName` | String | Yes | | `provisions` | JSON | Yes | | `publicSchemaName` | String | Yes | +| `redirectsTableId` | UUID | Yes | +| `redirectsTableName` | String | Yes | | `resourceDefinitionsTableId` | UUID | Yes | | `resourceDefinitionsTableName` | String | Yes | | `resourceInstallationsTableId` | UUID | Yes | @@ -614,13 +654,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, 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(); +const items = await db.catalogModule.findMany({ select: { apiName: true, apisTableId: true, apisTableName: true, appStoreIdentitiesTableId: true, appStoreIdentitiesTableName: 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, imagesTableId: true, imagesTableName: true, managedDomainsTableId: true, managedDomainsTableName: true, namespacesTableId: true, namespacesTableName: true, policies: true, privateApiName: true, provisions: true, publicSchemaName: true, redirectsTableId: true, redirectsTableName: 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, 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(); +const item = await db.catalogModule.findOne({ id: '', select: { apiName: true, apisTableId: true, apisTableName: true, appStoreIdentitiesTableId: true, appStoreIdentitiesTableName: 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, imagesTableId: true, imagesTableName: true, managedDomainsTableId: true, managedDomainsTableName: true, namespacesTableId: true, namespacesTableName: true, policies: true, privateApiName: true, provisions: true, publicSchemaName: true, redirectsTableId: true, redirectsTableName: 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: '', 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(); +const created = await db.catalogModule.create({ data: { apiName: '', apisTableId: '', apisTableName: '', appStoreIdentitiesTableId: '', appStoreIdentitiesTableName: '', appsTableId: '', appsTableName: '', bindingsTableId: '', bindingsTableName: '', bucketsTableId: '', bucketsTableName: '', databaseId: '', defaultCapabilities: '', domainsTableId: '', domainsTableName: '', entityTableId: '', functionsTableId: '', functionsTableName: '', imagesTableId: '', imagesTableName: '', managedDomainsTableId: '', managedDomainsTableName: '', namespacesTableId: '', namespacesTableName: '', policies: '', privateApiName: '', provisions: '', publicSchemaName: '', redirectsTableId: '', redirectsTableName: '', 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(); @@ -629,88 +669,106 @@ const updated = await db.catalogModule.update({ where: { id: '' }, data: { const deleted = await db.catalogModule.delete({ where: { id: '' } }).execute(); ``` -### `db.computeLogModule` +### `db.clusterModule` -CRUD operations for ComputeLogModule records. +CRUD operations for ClusterModule records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `actorFkTableId` | UUID | Yes | | `apiName` | String | Yes | -| `computeLogTableId` | UUID | Yes | -| `computeLogTableName` | String | Yes | +| `clusterEventsTableId` | UUID | Yes | +| `clusterEventsTableName` | String | Yes | +| `clustersTableId` | UUID | Yes | +| `clustersTableName` | String | Yes | | `databaseId` | UUID | Yes | +| `databasePlacementsTableId` | UUID | Yes | +| `databasePlacementsTableName` | String | Yes | +| `databaseServersTableId` | UUID | Yes | +| `databaseServersTableName` | String | Yes | +| `defaultCapabilities` | String | Yes | | `entityField` | String | Yes | -| `entityFkTableId` | UUID | Yes | | `id` | UUID | No | -| `interval` | String | Yes | +| `partitionInterval` | String | Yes | +| `physicalDatabasesTableId` | UUID | Yes | +| `physicalDatabasesTableName` | String | Yes | +| `policies` | JSON | Yes | | `prefix` | String | Yes | | `premake` | Int | Yes | | `privateApiName` | String | Yes | | `privateSchemaId` | UUID | Yes | | `privateSchemaName` | String | Yes | +| `provisions` | JSON | Yes | | `publicSchemaName` | String | Yes | | `retention` | String | Yes | | `schemaId` | UUID | Yes | | `scope` | String | Yes | -| `usageSummaryTableId` | UUID | Yes | -| `usageSummaryTableName` | String | Yes | **Operations:** ```typescript -// List all computeLogModule records -const items = await db.computeLogModule.findMany({ select: { actorFkTableId: true, apiName: true, computeLogTableId: true, computeLogTableName: true, databaseId: true, entityField: true, entityFkTableId: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, schemaId: true, scope: true, usageSummaryTableId: true, usageSummaryTableName: true } }).execute(); +// List all clusterModule records +const items = await db.clusterModule.findMany({ select: { apiName: true, clusterEventsTableId: true, clusterEventsTableName: true, clustersTableId: true, clustersTableName: true, databaseId: true, databasePlacementsTableId: true, databasePlacementsTableName: true, databaseServersTableId: true, databaseServersTableName: true, defaultCapabilities: true, entityField: true, id: true, partitionInterval: true, physicalDatabasesTableId: true, physicalDatabasesTableName: true, policies: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, retention: true, schemaId: true, scope: true } }).execute(); // Get one by id -const item = await db.computeLogModule.findOne({ id: '', select: { actorFkTableId: true, apiName: true, computeLogTableId: true, computeLogTableName: true, databaseId: true, entityField: true, entityFkTableId: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, schemaId: true, scope: true, usageSummaryTableId: true, usageSummaryTableName: true } }).execute(); +const item = await db.clusterModule.findOne({ id: '', select: { apiName: true, clusterEventsTableId: true, clusterEventsTableName: true, clustersTableId: true, clustersTableName: true, databaseId: true, databasePlacementsTableId: true, databasePlacementsTableName: true, databaseServersTableId: true, databaseServersTableName: true, defaultCapabilities: true, entityField: true, id: true, partitionInterval: true, physicalDatabasesTableId: true, physicalDatabasesTableName: true, policies: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, retention: true, schemaId: true, scope: true } }).execute(); // Create -const created = await db.computeLogModule.create({ data: { actorFkTableId: '', apiName: '', computeLogTableId: '', computeLogTableName: '', databaseId: '', entityField: '', entityFkTableId: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', retention: '', schemaId: '', scope: '', usageSummaryTableId: '', usageSummaryTableName: '' }, select: { id: true } }).execute(); +const created = await db.clusterModule.create({ data: { apiName: '', clusterEventsTableId: '', clusterEventsTableName: '', clustersTableId: '', clustersTableName: '', databaseId: '', databasePlacementsTableId: '', databasePlacementsTableName: '', databaseServersTableId: '', databaseServersTableName: '', defaultCapabilities: '', entityField: '', partitionInterval: '', physicalDatabasesTableId: '', physicalDatabasesTableName: '', policies: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', retention: '', schemaId: '', scope: '' }, select: { id: true } }).execute(); // Update -const updated = await db.computeLogModule.update({ where: { id: '' }, data: { actorFkTableId: '' }, select: { id: true } }).execute(); +const updated = await db.clusterModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.computeLogModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.clusterModule.delete({ where: { id: '' } }).execute(); ``` -### `db.configSecretsUserModule` +### `db.computeLogModule` -CRUD operations for ConfigSecretsUserModule records. +CRUD operations for ComputeLogModule records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `apiName` | String | Yes | +| `computeLogTableId` | UUID | Yes | +| `computeLogTableName` | String | Yes | | `databaseId` | UUID | Yes | | `entityField` | String | Yes | | `id` | UUID | No | +| `interval` | String | Yes | +| `prefix` | String | Yes | +| `premake` | Int | Yes | | `privateApiName` | String | Yes | +| `privateSchemaId` | UUID | Yes | +| `privateSchemaName` | String | Yes | +| `publicSchemaName` | String | Yes | +| `retention` | String | Yes | +| `rollupFunctionName` | String | Yes | | `schemaId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `tableName` | String | Yes | +| `scope` | String | Yes | +| `usageSummaryTableId` | UUID | Yes | +| `usageSummaryTableName` | String | Yes | **Operations:** ```typescript -// List all configSecretsUserModule records -const items = await db.configSecretsUserModule.findMany({ select: { apiName: true, databaseId: true, entityField: true, id: true, privateApiName: true, schemaId: true, tableId: true, tableName: true } }).execute(); +// List all computeLogModule records +const items = await db.computeLogModule.findMany({ select: { apiName: true, computeLogTableId: true, computeLogTableName: true, databaseId: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, rollupFunctionName: true, schemaId: true, scope: true, usageSummaryTableId: true, usageSummaryTableName: true } }).execute(); // Get one by id -const item = await db.configSecretsUserModule.findOne({ id: '', select: { apiName: true, databaseId: true, entityField: true, id: true, privateApiName: true, schemaId: true, tableId: true, tableName: true } }).execute(); +const item = await db.computeLogModule.findOne({ id: '', select: { apiName: true, computeLogTableId: true, computeLogTableName: true, databaseId: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, rollupFunctionName: true, schemaId: true, scope: true, usageSummaryTableId: true, usageSummaryTableName: true } }).execute(); // Create -const created = await db.configSecretsUserModule.create({ data: { apiName: '', databaseId: '', entityField: '', privateApiName: '', schemaId: '', tableId: '', tableName: '' }, select: { id: true } }).execute(); +const created = await db.computeLogModule.create({ data: { apiName: '', computeLogTableId: '', computeLogTableName: '', databaseId: '', entityField: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', retention: '', rollupFunctionName: '', schemaId: '', scope: '', usageSummaryTableId: '', usageSummaryTableName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.configSecretsUserModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); +const updated = await db.computeLogModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.configSecretsUserModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.computeLogModule.delete({ where: { id: '' } }).execute(); ``` ### `db.connectedAccountsModule` @@ -923,6 +981,7 @@ CRUD operations for DatabaseProvisionModule records. | Field | Type | Editable | |-------|------|----------| | `async` | Boolean | Yes | +| `bootstrapActorId` | UUID | Yes | | `bootstrapError` | String | Yes | | `bootstrapStatus` | String | Yes | | `bootstrapUser` | Boolean | Yes | @@ -946,13 +1005,13 @@ CRUD operations for DatabaseProvisionModule records. ```typescript // List all databaseProvisionModule records -const items = await db.databaseProvisionModule.findMany({ select: { async: true, bootstrapError: true, bootstrapStatus: true, bootstrapUser: true, completedAt: true, createdAt: true, databaseId: true, databaseName: true, domain: true, errorMessage: true, fulfilledAt: true, id: true, modules: true, options: true, ownerId: true, sourceDatabaseId: true, status: true, subdomain: true, updatedAt: true } }).execute(); +const items = await db.databaseProvisionModule.findMany({ select: { async: true, bootstrapActorId: true, bootstrapError: true, bootstrapStatus: true, bootstrapUser: true, completedAt: true, createdAt: true, databaseId: true, databaseName: true, domain: true, errorMessage: true, fulfilledAt: true, id: true, modules: true, options: true, ownerId: true, sourceDatabaseId: true, status: true, subdomain: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.databaseProvisionModule.findOne({ id: '', select: { async: true, bootstrapError: true, bootstrapStatus: true, bootstrapUser: true, completedAt: true, createdAt: true, databaseId: true, databaseName: true, domain: true, errorMessage: true, fulfilledAt: true, id: true, modules: true, options: true, ownerId: true, sourceDatabaseId: true, status: true, subdomain: true, updatedAt: true } }).execute(); +const item = await db.databaseProvisionModule.findOne({ id: '', select: { async: true, bootstrapActorId: true, bootstrapError: true, bootstrapStatus: true, bootstrapUser: true, completedAt: true, createdAt: true, databaseId: true, databaseName: true, domain: true, errorMessage: true, fulfilledAt: true, id: true, modules: true, options: true, ownerId: true, sourceDatabaseId: true, status: true, subdomain: true, updatedAt: true } }).execute(); // Create -const created = await db.databaseProvisionModule.create({ data: { async: '', bootstrapError: '', bootstrapStatus: '', bootstrapUser: '', completedAt: '', databaseId: '', databaseName: '', domain: '', errorMessage: '', fulfilledAt: '', modules: '', options: '', ownerId: '', sourceDatabaseId: '', status: '', subdomain: '' }, select: { id: true } }).execute(); +const created = await db.databaseProvisionModule.create({ data: { async: '', bootstrapActorId: '', bootstrapError: '', bootstrapStatus: '', bootstrapUser: '', completedAt: '', databaseId: '', databaseName: '', domain: '', errorMessage: '', fulfilledAt: '', modules: '', options: '', ownerId: '', sourceDatabaseId: '', status: '', subdomain: '' }, select: { id: true } }).execute(); // Update const updated = await db.databaseProvisionModule.update({ where: { id: '' }, data: { async: '' }, select: { id: true } }).execute(); @@ -1740,18 +1799,19 @@ CRUD operations for FunctionModule records. | `schedulesTableId` | UUID | Yes | | `schemaId` | UUID | Yes | | `scope` | String | Yes | +| `storageKey` | String | Yes | **Operations:** ```typescript // List all functionModule records -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(); +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, storageKey: true } }).execute(); // Get one by id -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(); +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, storageKey: true } }).execute(); // Create -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(); +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: '', storageKey: '' }, select: { id: true } }).execute(); // Update const updated = await db.functionModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -1908,9 +1968,9 @@ const updated = await db.hierarchyModule.update({ where: { id: '' }, data: const deleted = await db.hierarchyModule.delete({ where: { id: '' } }).execute(); ``` -### `db.httpRouteModule` +### `db.i18NModule` -CRUD operations for HttpRouteModule records. +CRUD operations for I18NModule records. **Fields:** @@ -1918,48 +1978,34 @@ CRUD operations for HttpRouteModule records. |-------|------|----------| | `apiName` | String | Yes | | `databaseId` | UUID | Yes | -| `defaultCapabilities` | String | Yes | -| `entityField` | String | Yes | -| `entityTableId` | UUID | Yes | -| `functionModuleId` | UUID | Yes | -| `httpRoutesTableId` | UUID | Yes | -| `httpRoutesTableName` | String | Yes | | `id` | UUID | No | -| `policies` | JSON | Yes | -| `prefix` | String | Yes | | `privateApiName` | String | Yes | | `privateSchemaId` | UUID | Yes | -| `privateSchemaName` | String | Yes | -| `provisions` | JSON | Yes | -| `publicSchemaName` | String | Yes | -| `resolverFunctionName` | String | Yes | -| `resourceModuleId` | UUID | Yes | | `schemaId` | UUID | Yes | -| `scope` | String | Yes | -| `storageModuleId` | UUID | Yes | +| `settingsTableId` | UUID | Yes | **Operations:** ```typescript -// List all httpRouteModule records -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(); +// List all i18NModule records +const items = await db.i18NModule.findMany({ select: { apiName: true, databaseId: true, id: true, privateApiName: true, privateSchemaId: true, schemaId: true, settingsTableId: true } }).execute(); // Get one by id -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(); +const item = await db.i18NModule.findOne({ id: '', select: { apiName: true, databaseId: true, id: true, privateApiName: true, privateSchemaId: true, schemaId: true, settingsTableId: true } }).execute(); // Create -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(); +const created = await db.i18NModule.create({ data: { apiName: '', databaseId: '', privateApiName: '', privateSchemaId: '', schemaId: '', settingsTableId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.httpRouteModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); +const updated = await db.i18NModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.httpRouteModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.i18NModule.delete({ where: { id: '' } }).execute(); ``` -### `db.i18NModule` +### `db.identityProvidersModule` -CRUD operations for I18NModule records. +CRUD operations for IdentityProvidersModule records. **Fields:** @@ -1967,34 +2013,41 @@ CRUD operations for I18NModule records. |-------|------|----------| | `apiName` | String | Yes | | `databaseId` | UUID | Yes | +| `entityField` | String | Yes | +| `entityTableId` | UUID | Yes | | `id` | UUID | No | +| `prefix` | String | Yes | | `privateApiName` | String | Yes | | `privateSchemaId` | UUID | Yes | +| `privateSchemaName` | String | Yes | +| `publicSchemaName` | String | Yes | | `schemaId` | UUID | Yes | -| `settingsTableId` | UUID | Yes | +| `scope` | String | Yes | +| `tableId` | UUID | Yes | +| `tableName` | String | Yes | **Operations:** ```typescript -// List all i18NModule records -const items = await db.i18NModule.findMany({ select: { apiName: true, databaseId: true, id: true, privateApiName: true, privateSchemaId: true, schemaId: true, settingsTableId: true } }).execute(); +// List all identityProvidersModule records +const items = await db.identityProvidersModule.findMany({ select: { apiName: true, databaseId: true, entityField: true, entityTableId: 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.i18NModule.findOne({ id: '', select: { apiName: true, databaseId: true, id: true, privateApiName: true, privateSchemaId: true, schemaId: true, settingsTableId: true } }).execute(); +const item = await db.identityProvidersModule.findOne({ id: '', select: { apiName: true, databaseId: true, entityField: true, entityTableId: 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.i18NModule.create({ data: { apiName: '', databaseId: '', privateApiName: '', privateSchemaId: '', schemaId: '', settingsTableId: '' }, select: { id: true } }).execute(); +const created = await db.identityProvidersModule.create({ data: { apiName: '', databaseId: '', entityField: '', entityTableId: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', schemaId: '', scope: '', tableId: '', tableName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.i18NModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); +const updated = await db.identityProvidersModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.i18NModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.identityProvidersModule.delete({ where: { id: '' } }).execute(); ``` -### `db.identityProvidersModule` +### `db.imageModule` -CRUD operations for IdentityProvidersModule records. +CRUD operations for ImageModule records. **Fields:** @@ -2002,36 +2055,45 @@ CRUD operations for IdentityProvidersModule records. |-------|------|----------| | `apiName` | String | Yes | | `databaseId` | UUID | Yes | +| `defaultCapabilities` | String | Yes | | `entityField` | String | Yes | | `entityTableId` | UUID | Yes | | `id` | UUID | No | +| `imageGrantsTableId` | UUID | Yes | +| `imageGrantsTableName` | String | Yes | +| `imagesTableId` | UUID | Yes | +| `imagesTableName` | String | Yes | +| `policies` | JSON | Yes | | `prefix` | String | Yes | | `privateApiName` | String | Yes | | `privateSchemaId` | UUID | Yes | | `privateSchemaName` | String | Yes | +| `provisions` | JSON | Yes | | `publicSchemaName` | String | Yes | +| `registriesTableId` | UUID | Yes | +| `registriesTableName` | String | Yes | +| `registryGrantsTableId` | UUID | Yes | +| `registryGrantsTableName` | String | Yes | | `schemaId` | UUID | Yes | | `scope` | String | Yes | -| `tableId` | UUID | Yes | -| `tableName` | String | Yes | **Operations:** ```typescript -// List all identityProvidersModule records -const items = await db.identityProvidersModule.findMany({ select: { apiName: true, databaseId: true, entityField: true, entityTableId: true, id: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, schemaId: true, scope: true, tableId: true, tableName: true } }).execute(); +// List all imageModule records +const items = await db.imageModule.findMany({ select: { apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, imageGrantsTableId: true, imageGrantsTableName: true, imagesTableId: true, imagesTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, registriesTableId: true, registriesTableName: true, registryGrantsTableId: true, registryGrantsTableName: true, schemaId: true, scope: true } }).execute(); // Get one by id -const item = await db.identityProvidersModule.findOne({ id: '', select: { apiName: true, databaseId: true, entityField: true, entityTableId: 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.imageModule.findOne({ id: '', select: { apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, imageGrantsTableId: true, imageGrantsTableName: true, imagesTableId: true, imagesTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, registriesTableId: true, registriesTableName: true, registryGrantsTableId: true, registryGrantsTableName: true, schemaId: true, scope: true } }).execute(); // Create -const created = await db.identityProvidersModule.create({ data: { apiName: '', databaseId: '', entityField: '', entityTableId: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', schemaId: '', scope: '', tableId: '', tableName: '' }, select: { id: true } }).execute(); +const created = await db.imageModule.create({ data: { apiName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', imageGrantsTableId: '', imageGrantsTableName: '', imagesTableId: '', imagesTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', registriesTableId: '', registriesTableName: '', registryGrantsTableId: '', registryGrantsTableName: '', schemaId: '', scope: '' }, select: { id: true } }).execute(); // Update -const updated = await db.identityProvidersModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); +const updated = await db.imageModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.identityProvidersModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.imageModule.delete({ where: { id: '' } }).execute(); ``` ### `db.inferenceLogModule` @@ -2042,11 +2104,9 @@ CRUD operations for InferenceLogModule records. | Field | Type | Editable | |-------|------|----------| -| `actorFkTableId` | UUID | Yes | | `apiName` | String | Yes | | `databaseId` | UUID | Yes | | `entityField` | String | Yes | -| `entityFkTableId` | UUID | Yes | | `id` | UUID | No | | `inferenceLogTableId` | UUID | Yes | | `inferenceLogTableName` | String | Yes | @@ -2058,6 +2118,7 @@ CRUD operations for InferenceLogModule records. | `privateSchemaName` | String | Yes | | `publicSchemaName` | String | Yes | | `retention` | String | Yes | +| `rollupFunctionName` | String | Yes | | `schemaId` | UUID | Yes | | `scope` | String | Yes | | `usageSummaryTableId` | UUID | Yes | @@ -2067,16 +2128,16 @@ CRUD operations for InferenceLogModule records. ```typescript // List all inferenceLogModule records -const items = await db.inferenceLogModule.findMany({ select: { actorFkTableId: true, apiName: true, databaseId: true, entityField: true, entityFkTableId: true, id: true, inferenceLogTableId: true, inferenceLogTableName: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, schemaId: true, scope: true, usageSummaryTableId: true, usageSummaryTableName: true } }).execute(); +const items = await db.inferenceLogModule.findMany({ select: { apiName: true, databaseId: true, entityField: true, id: true, inferenceLogTableId: true, inferenceLogTableName: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, rollupFunctionName: true, schemaId: true, scope: true, usageSummaryTableId: true, usageSummaryTableName: true } }).execute(); // Get one by id -const item = await db.inferenceLogModule.findOne({ id: '', select: { actorFkTableId: true, apiName: true, databaseId: true, entityField: true, entityFkTableId: true, id: true, inferenceLogTableId: true, inferenceLogTableName: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, schemaId: true, scope: true, usageSummaryTableId: true, usageSummaryTableName: true } }).execute(); +const item = await db.inferenceLogModule.findOne({ id: '', select: { apiName: true, databaseId: true, entityField: true, id: true, inferenceLogTableId: true, inferenceLogTableName: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, rollupFunctionName: true, schemaId: true, scope: true, usageSummaryTableId: true, usageSummaryTableName: true } }).execute(); // Create -const created = await db.inferenceLogModule.create({ data: { actorFkTableId: '', apiName: '', databaseId: '', entityField: '', entityFkTableId: '', inferenceLogTableId: '', inferenceLogTableName: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', retention: '', schemaId: '', scope: '', usageSummaryTableId: '', usageSummaryTableName: '' }, select: { id: true } }).execute(); +const created = await db.inferenceLogModule.create({ data: { apiName: '', databaseId: '', entityField: '', inferenceLogTableId: '', inferenceLogTableName: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', retention: '', rollupFunctionName: '', schemaId: '', scope: '', usageSummaryTableId: '', usageSummaryTableName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.inferenceLogModule.update({ where: { id: '' }, data: { actorFkTableId: '' }, select: { id: true } }).execute(); +const updated = await db.inferenceLogModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); // Delete const deleted = await db.inferenceLogModule.delete({ where: { id: '' } }).execute(); @@ -2212,6 +2273,50 @@ const updated = await db.integrationProvidersModule.update({ where: { id: '' } }).execute(); ``` +### `db.internalConfigModule` + +CRUD operations for InternalConfigModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `apiName` | String | Yes | +| `databaseId` | UUID | Yes | +| `entityField` | String | Yes | +| `entityTableId` | UUID | Yes | +| `id` | UUID | No | +| `internalConfigTableId` | UUID | Yes | +| `internalConfigTableName` | String | Yes | +| `policies` | JSON | Yes | +| `prefix` | String | Yes | +| `privateApiName` | String | Yes | +| `privateSchemaId` | UUID | Yes | +| `privateSchemaName` | String | Yes | +| `provisions` | JSON | Yes | +| `publicSchemaName` | String | Yes | +| `schemaId` | UUID | Yes | +| `scope` | String | Yes | + +**Operations:** + +```typescript +// List all internalConfigModule records +const items = await db.internalConfigModule.findMany({ select: { apiName: true, databaseId: true, entityField: true, entityTableId: true, id: true, internalConfigTableId: true, internalConfigTableName: 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.internalConfigModule.findOne({ id: '', select: { apiName: true, databaseId: true, entityField: true, entityTableId: true, id: true, internalConfigTableId: true, internalConfigTableName: 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.internalConfigModule.create({ data: { apiName: '', databaseId: '', entityField: '', entityTableId: '', internalConfigTableId: '', internalConfigTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.internalConfigModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.internalConfigModule.delete({ where: { id: '' } }).execute(); +``` + ### `db.internalSecretsModule` CRUD operations for InternalSecretsModule records. @@ -2303,6 +2408,52 @@ const updated = await db.invitesModule.update({ where: { id: '' }, data: { const deleted = await db.invitesModule.delete({ where: { id: '' } }).execute(); ``` +### `db.k8sAdmissionModule` + +CRUD operations for K8sAdmissionModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `apiName` | String | Yes | +| `createdAt` | Datetime | No | +| `databaseId` | UUID | Yes | +| `entityTableId` | UUID | Yes | +| `id` | UUID | No | +| `k8sResourceKindsTableId` | UUID | Yes | +| `k8sSpecRulesTableId` | UUID | Yes | +| `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 k8sAdmissionModule records +const items = await db.k8sAdmissionModule.findMany({ select: { apiName: true, createdAt: true, databaseId: true, entityTableId: true, id: true, k8sResourceKindsTableId: true, k8sSpecRulesTableId: 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.k8sAdmissionModule.findOne({ id: '', select: { apiName: true, createdAt: true, databaseId: true, entityTableId: true, id: true, k8sResourceKindsTableId: true, k8sSpecRulesTableId: 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.k8sAdmissionModule.create({ data: { apiName: '', databaseId: '', entityTableId: '', k8sResourceKindsTableId: '', k8sSpecRulesTableId: '', merkleStoreModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaId: '', publicSchemaName: '', scope: '', storeName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.k8sAdmissionModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.k8sAdmissionModule.delete({ where: { id: '' } }).execute(); +``` + ### `db.limitsModule` CRUD operations for LimitsModule records. @@ -2369,6 +2520,58 @@ const updated = await db.limitsModule.update({ where: { id: '' }, data: { const deleted = await db.limitsModule.delete({ where: { id: '' } }).execute(); ``` +### `db.machineModule` + +CRUD operations for MachineModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `apiName` | String | Yes | +| `databaseId` | UUID | Yes | +| `defaultCapabilities` | String | Yes | +| `entityField` | String | Yes | +| `entityTableId` | UUID | Yes | +| `id` | UUID | No | +| `machineMessagesTableId` | UUID | Yes | +| `machineMessagesTableName` | String | Yes | +| `machineSessionsTableId` | UUID | Yes | +| `machineSessionsTableName` | String | Yes | +| `machinesTableId` | UUID | Yes | +| `machinesTableName` | String | Yes | +| `partitionInterval` | String | Yes | +| `policies` | JSON | Yes | +| `prefix` | String | Yes | +| `premake` | Int | Yes | +| `privateApiName` | String | Yes | +| `privateSchemaId` | UUID | Yes | +| `privateSchemaName` | String | Yes | +| `provisions` | JSON | Yes | +| `publicSchemaName` | String | Yes | +| `retention` | String | Yes | +| `schemaId` | UUID | Yes | +| `scope` | String | Yes | + +**Operations:** + +```typescript +// List all machineModule records +const items = await db.machineModule.findMany({ select: { apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, machineMessagesTableId: true, machineMessagesTableName: true, machineSessionsTableId: true, machineSessionsTableName: true, machinesTableId: true, machinesTableName: true, partitionInterval: true, policies: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, retention: true, schemaId: true, scope: true } }).execute(); + +// Get one by id +const item = await db.machineModule.findOne({ id: '', select: { apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, machineMessagesTableId: true, machineMessagesTableName: true, machineSessionsTableId: true, machineSessionsTableName: true, machinesTableId: true, machinesTableName: true, partitionInterval: true, policies: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, retention: true, schemaId: true, scope: true } }).execute(); + +// Create +const created = await db.machineModule.create({ data: { apiName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', machineMessagesTableId: '', machineMessagesTableName: '', machineSessionsTableId: '', machineSessionsTableName: '', machinesTableId: '', machinesTableName: '', partitionInterval: '', policies: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', retention: '', schemaId: '', scope: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.machineModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.machineModule.delete({ where: { id: '' } }).execute(); +``` + ### `db.membershipTypesModule` CRUD operations for MembershipTypesModule records. @@ -2486,6 +2689,7 @@ CRUD operations for MerkleStoreModule records. | `createdAt` | Datetime | No | | `databaseId` | UUID | Yes | | `entityField` | String | Yes | +| `entityTableId` | UUID | Yes | | `functionPrefix` | String | Yes | | `id` | UUID | No | | `objectTableId` | UUID | Yes | @@ -2503,13 +2707,13 @@ CRUD operations for MerkleStoreModule records. ```typescript // List all merkleStoreModule records -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(); +const items = await db.merkleStoreModule.findMany({ select: { apiName: true, capabilityKey: true, commitTableId: true, createdAt: true, databaseId: true, entityField: true, entityTableId: 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, 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(); +const item = await db.merkleStoreModule.findOne({ id: '', select: { apiName: true, capabilityKey: true, commitTableId: true, createdAt: true, databaseId: true, entityField: true, entityTableId: 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: '', capabilityKey: '', commitTableId: '', databaseId: '', entityField: '', functionPrefix: '', objectTableId: '', 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: '', entityTableId: '', 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(); @@ -2674,12 +2878,17 @@ CRUD operations for PagesModule records. | `pagesTableId` | UUID | Yes | | `policies` | JSON | Yes | | `prefix` | String | Yes | +| `previewCommitFunctionName` | String | Yes | +| `previewSetFunctionName` | String | Yes | +| `previewTokenMintFunctionName` | String | Yes | +| `previewTokenVerifierFunctionName` | String | Yes | | `privateApiName` | String | Yes | | `privateSchemaId` | UUID | Yes | | `privateSchemaName` | String | Yes | | `provisions` | JSON | Yes | | `publicSchemaId` | UUID | Yes | | `publicSchemaName` | String | Yes | +| `releaseManifestFunctionName` | String | Yes | | `scope` | String | Yes | | `siteSurfaceModuleId` | UUID | Yes | | `sitesTableId` | UUID | Yes | @@ -2689,13 +2898,13 @@ CRUD operations for PagesModule records. ```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(); +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, previewCommitFunctionName: true, previewSetFunctionName: true, previewTokenMintFunctionName: true, previewTokenVerifierFunctionName: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaId: true, publicSchemaName: true, releaseManifestFunctionName: true, scope: true, siteSurfaceModuleId: true, sitesTableId: true, storeNamePrefix: 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.pagesModule.findOne({ id: '', select: { apiName: true, createdAt: true, databaseId: true, entityTableId: true, id: true, merkleStoreModuleId: true, pagesTableId: true, policies: true, prefix: true, previewCommitFunctionName: true, previewSetFunctionName: true, previewTokenMintFunctionName: true, previewTokenVerifierFunctionName: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaId: true, publicSchemaName: true, releaseManifestFunctionName: true, scope: true, siteSurfaceModuleId: true, sitesTableId: true, storeNamePrefix: 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.pagesModule.create({ data: { apiName: '', databaseId: '', entityTableId: '', merkleStoreModuleId: '', pagesTableId: '', policies: '', prefix: '', previewCommitFunctionName: '', previewSetFunctionName: '', previewTokenMintFunctionName: '', previewTokenVerifierFunctionName: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaId: '', publicSchemaName: '', releaseManifestFunctionName: '', scope: '', siteSurfaceModuleId: '', sitesTableId: '', storeNamePrefix: '' }, select: { id: true } }).execute(); // Update const updated = await db.pagesModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -2811,23 +3020,25 @@ CRUD operations for PrincipalAuthModule records. | `principalScopeOverridesTableId` | UUID | Yes | | `principalsTableId` | UUID | Yes | | `principalsTableName` | String | Yes | +| `privateSchemaId` | UUID | Yes | | `revokeOrgApiKeyFunction` | String | Yes | | `schemaId` | UUID | Yes | | `sessionCredentialsTableId` | UUID | Yes | | `sessionsTableId` | UUID | Yes | +| `sweepExpiredPrincipalsFunction` | String | Yes | | `usersTableId` | UUID | Yes | **Operations:** ```typescript // List all principalAuthModule records -const items = await db.principalAuthModule.findMany({ select: { apiName: true, auditsTableId: true, createOrgApiKeyFunction: true, createOrgPrincipalFunction: true, createPrincipalFunction: true, databaseId: true, deleteOrgPrincipalFunction: true, deletePrincipalFunction: true, id: true, principalEntitiesTableId: true, principalScopeOverridesTableId: true, principalsTableId: true, principalsTableName: true, revokeOrgApiKeyFunction: true, schemaId: true, sessionCredentialsTableId: true, sessionsTableId: true, usersTableId: true } }).execute(); +const items = await db.principalAuthModule.findMany({ select: { apiName: true, auditsTableId: true, createOrgApiKeyFunction: true, createOrgPrincipalFunction: true, createPrincipalFunction: true, databaseId: true, deleteOrgPrincipalFunction: true, deletePrincipalFunction: true, id: true, principalEntitiesTableId: true, principalScopeOverridesTableId: true, principalsTableId: true, principalsTableName: true, privateSchemaId: true, revokeOrgApiKeyFunction: true, schemaId: true, sessionCredentialsTableId: true, sessionsTableId: true, sweepExpiredPrincipalsFunction: true, usersTableId: true } }).execute(); // Get one by id -const item = await db.principalAuthModule.findOne({ id: '', select: { apiName: true, auditsTableId: true, createOrgApiKeyFunction: true, createOrgPrincipalFunction: true, createPrincipalFunction: true, databaseId: true, deleteOrgPrincipalFunction: true, deletePrincipalFunction: true, id: true, principalEntitiesTableId: true, principalScopeOverridesTableId: true, principalsTableId: true, principalsTableName: true, revokeOrgApiKeyFunction: true, schemaId: true, sessionCredentialsTableId: true, sessionsTableId: true, usersTableId: true } }).execute(); +const item = await db.principalAuthModule.findOne({ id: '', select: { apiName: true, auditsTableId: true, createOrgApiKeyFunction: true, createOrgPrincipalFunction: true, createPrincipalFunction: true, databaseId: true, deleteOrgPrincipalFunction: true, deletePrincipalFunction: true, id: true, principalEntitiesTableId: true, principalScopeOverridesTableId: true, principalsTableId: true, principalsTableName: true, privateSchemaId: true, revokeOrgApiKeyFunction: true, schemaId: true, sessionCredentialsTableId: true, sessionsTableId: true, sweepExpiredPrincipalsFunction: true, usersTableId: true } }).execute(); // Create -const created = await db.principalAuthModule.create({ data: { apiName: '', auditsTableId: '', createOrgApiKeyFunction: '', createOrgPrincipalFunction: '', createPrincipalFunction: '', databaseId: '', deleteOrgPrincipalFunction: '', deletePrincipalFunction: '', principalEntitiesTableId: '', principalScopeOverridesTableId: '', principalsTableId: '', principalsTableName: '', revokeOrgApiKeyFunction: '', schemaId: '', sessionCredentialsTableId: '', sessionsTableId: '', usersTableId: '' }, select: { id: true } }).execute(); +const created = await db.principalAuthModule.create({ data: { apiName: '', auditsTableId: '', createOrgApiKeyFunction: '', createOrgPrincipalFunction: '', createPrincipalFunction: '', databaseId: '', deleteOrgPrincipalFunction: '', deletePrincipalFunction: '', principalEntitiesTableId: '', principalScopeOverridesTableId: '', principalsTableId: '', principalsTableName: '', privateSchemaId: '', revokeOrgApiKeyFunction: '', schemaId: '', sessionCredentialsTableId: '', sessionsTableId: '', sweepExpiredPrincipalsFunction: '', usersTableId: '' }, select: { id: true } }).execute(); // Update const updated = await db.principalAuthModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -3015,6 +3226,57 @@ const updated = await db.realtimeModule.update({ where: { id: '' }, data: const deleted = await db.realtimeModule.delete({ where: { id: '' } }).execute(); ``` +### `db.refusalLogModule` + +CRUD operations for RefusalLogModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `apiName` | String | Yes | +| `databaseId` | UUID | Yes | +| `entityField` | String | Yes | +| `id` | UUID | No | +| `logInterval` | String | Yes | +| `logPremake` | Int | Yes | +| `logRetention` | String | Yes | +| `logTableId` | UUID | Yes | +| `logTableName` | String | Yes | +| `prefix` | String | Yes | +| `privateApiName` | String | Yes | +| `privateSchemaId` | UUID | Yes | +| `privateSchemaName` | String | Yes | +| `publicSchemaName` | String | Yes | +| `recordRefusalsFunction` | String | Yes | +| `rollupRefusalUsageSummaryFunction` | String | Yes | +| `schemaId` | UUID | Yes | +| `scope` | String | Yes | +| `summaryInterval` | String | Yes | +| `summaryPremake` | Int | Yes | +| `summaryRetention` | String | Yes | +| `summaryTableId` | UUID | Yes | +| `summaryTableName` | String | Yes | + +**Operations:** + +```typescript +// List all refusalLogModule records +const items = await db.refusalLogModule.findMany({ select: { apiName: true, databaseId: true, entityField: true, id: true, logInterval: true, logPremake: true, logRetention: true, logTableId: true, logTableName: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, recordRefusalsFunction: true, rollupRefusalUsageSummaryFunction: true, schemaId: true, scope: true, summaryInterval: true, summaryPremake: true, summaryRetention: true, summaryTableId: true, summaryTableName: true } }).execute(); + +// Get one by id +const item = await db.refusalLogModule.findOne({ id: '', select: { apiName: true, databaseId: true, entityField: true, id: true, logInterval: true, logPremake: true, logRetention: true, logTableId: true, logTableName: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, recordRefusalsFunction: true, rollupRefusalUsageSummaryFunction: true, schemaId: true, scope: true, summaryInterval: true, summaryPremake: true, summaryRetention: true, summaryTableId: true, summaryTableName: true } }).execute(); + +// Create +const created = await db.refusalLogModule.create({ data: { apiName: '', databaseId: '', entityField: '', logInterval: '', logPremake: '', logRetention: '', logTableId: '', logTableName: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', recordRefusalsFunction: '', rollupRefusalUsageSummaryFunction: '', schemaId: '', scope: '', summaryInterval: '', summaryPremake: '', summaryRetention: '', summaryTableId: '', summaryTableName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.refusalLogModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.refusalLogModule.delete({ where: { id: '' } }).execute(); +``` + ### `db.relationProvision` CRUD operations for RelationProvision records. @@ -3067,6 +3329,74 @@ const updated = await db.relationProvision.update({ where: { id: '' }, dat const deleted = await db.relationProvision.delete({ where: { id: '' } }).execute(); ``` +### `db.repositoryModule` + +CRUD operations for RepositoryModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `apiName` | String | Yes | +| `buildStepsTableId` | UUID | Yes | +| `buildStepsTableName` | String | Yes | +| `buildsTableId` | UUID | Yes | +| `buildsTableName` | String | Yes | +| `databaseId` | UUID | Yes | +| `defaultCapabilities` | String | Yes | +| `entityField` | String | Yes | +| `entityTableId` | UUID | Yes | +| `hasAttachments` | Boolean | Yes | +| `hasBuilds` | Boolean | Yes | +| `id` | UUID | No | +| `policies` | JSON | Yes | +| `prefix` | String | Yes | +| `privateApiName` | String | Yes | +| `privateSchemaId` | UUID | Yes | +| `privateSchemaName` | String | Yes | +| `proposalCommentsTableId` | UUID | Yes | +| `proposalCommentsTableName` | String | Yes | +| `proposalFileViewsTableId` | UUID | Yes | +| `proposalFileViewsTableName` | String | Yes | +| `proposalReactionsTableId` | UUID | Yes | +| `proposalReactionsTableName` | String | Yes | +| `proposalReviewsTableId` | UUID | Yes | +| `proposalReviewsTableName` | String | Yes | +| `proposalsTableId` | UUID | Yes | +| `proposalsTableName` | String | Yes | +| `provisions` | JSON | Yes | +| `publicSchemaName` | String | Yes | +| `repositoriesTableId` | UUID | Yes | +| `repositoriesTableName` | String | Yes | +| `repositoryEventsTableId` | UUID | Yes | +| `repositoryEventsTableName` | String | Yes | +| `repositoryRequiredChecksTableId` | UUID | Yes | +| `repositoryRequiredChecksTableName` | String | Yes | +| `schemaId` | UUID | Yes | +| `scope` | String | Yes | +| `search` | JSON | Yes | +| `workflowsTableId` | UUID | Yes | +| `workflowsTableName` | String | Yes | + +**Operations:** + +```typescript +// List all repositoryModule records +const items = await db.repositoryModule.findMany({ select: { apiName: true, buildStepsTableId: true, buildStepsTableName: true, buildsTableId: true, buildsTableName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, hasAttachments: true, hasBuilds: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, proposalCommentsTableId: true, proposalCommentsTableName: true, proposalFileViewsTableId: true, proposalFileViewsTableName: true, proposalReactionsTableId: true, proposalReactionsTableName: true, proposalReviewsTableId: true, proposalReviewsTableName: true, proposalsTableId: true, proposalsTableName: true, provisions: true, publicSchemaName: true, repositoriesTableId: true, repositoriesTableName: true, repositoryEventsTableId: true, repositoryEventsTableName: true, repositoryRequiredChecksTableId: true, repositoryRequiredChecksTableName: true, schemaId: true, scope: true, search: true, workflowsTableId: true, workflowsTableName: true } }).execute(); + +// Get one by id +const item = await db.repositoryModule.findOne({ id: '', select: { apiName: true, buildStepsTableId: true, buildStepsTableName: true, buildsTableId: true, buildsTableName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, hasAttachments: true, hasBuilds: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, proposalCommentsTableId: true, proposalCommentsTableName: true, proposalFileViewsTableId: true, proposalFileViewsTableName: true, proposalReactionsTableId: true, proposalReactionsTableName: true, proposalReviewsTableId: true, proposalReviewsTableName: true, proposalsTableId: true, proposalsTableName: true, provisions: true, publicSchemaName: true, repositoriesTableId: true, repositoriesTableName: true, repositoryEventsTableId: true, repositoryEventsTableName: true, repositoryRequiredChecksTableId: true, repositoryRequiredChecksTableName: true, schemaId: true, scope: true, search: true, workflowsTableId: true, workflowsTableName: true } }).execute(); + +// Create +const created = await db.repositoryModule.create({ data: { apiName: '', buildStepsTableId: '', buildStepsTableName: '', buildsTableId: '', buildsTableName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', hasAttachments: '', hasBuilds: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', proposalCommentsTableId: '', proposalCommentsTableName: '', proposalFileViewsTableId: '', proposalFileViewsTableName: '', proposalReactionsTableId: '', proposalReactionsTableName: '', proposalReviewsTableId: '', proposalReviewsTableName: '', proposalsTableId: '', proposalsTableName: '', provisions: '', publicSchemaName: '', repositoriesTableId: '', repositoriesTableName: '', repositoryEventsTableId: '', repositoryEventsTableName: '', repositoryRequiredChecksTableId: '', repositoryRequiredChecksTableName: '', schemaId: '', scope: '', search: '', workflowsTableId: '', workflowsTableName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.repositoryModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.repositoryModule.delete({ where: { id: '' } }).execute(); +``` + ### `db.resourceModule` CRUD operations for ResourceModule records. @@ -3076,6 +3406,8 @@ CRUD operations for ResourceModule records. | Field | Type | Editable | |-------|------|----------| | `apiName` | String | Yes | +| `builderBindingsTableId` | UUID | Yes | +| `builderBindingsTableName` | String | Yes | | `databaseId` | UUID | Yes | | `defaultCapabilities` | String | Yes | | `entityField` | String | Yes | @@ -3091,6 +3423,8 @@ CRUD operations for ResourceModule records. | `privateSchemaName` | String | Yes | | `provisions` | JSON | Yes | | `publicSchemaName` | String | Yes | +| `registryBindingsTableId` | UUID | Yes | +| `registryBindingsTableName` | String | Yes | | `requirementsStateViewName` | String | Yes | | `resolvedRequirementsViewName` | String | Yes | | `resourceBillingRollupFunction` | String | Yes | @@ -3116,13 +3450,13 @@ CRUD operations for ResourceModule records. ```typescript // List all resourceModule records -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(); +const items = await db.resourceModule.findMany({ select: { apiName: true, builderBindingsTableId: true, builderBindingsTableName: 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, registryBindingsTableId: true, registryBindingsTableName: 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, 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(); +const item = await db.resourceModule.findOne({ id: '', select: { apiName: true, builderBindingsTableId: true, builderBindingsTableName: 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, registryBindingsTableId: true, registryBindingsTableName: 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: '', 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(); +const created = await db.resourceModule.create({ data: { apiName: '', builderBindingsTableId: '', builderBindingsTableName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', installationStoreName: '', merkleStoreModuleId: '', namespaceModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', registryBindingsTableId: '', registryBindingsTableName: '', 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(); @@ -3199,6 +3533,8 @@ CRUD operations for RouteModule records. | `privateSchemaName` | String | Yes | | `provisions` | JSON | Yes | | `publicSchemaName` | String | Yes | +| `redirectsTableId` | UUID | Yes | +| `redirectsTableName` | String | Yes | | `resolverFunctionName` | String | Yes | | `routeBindingsTableId` | UUID | Yes | | `routeBindingsTableName` | String | Yes | @@ -3206,18 +3542,20 @@ CRUD operations for RouteModule records. | `routesTableName` | String | Yes | | `schemaId` | UUID | Yes | | `scope` | String | Yes | +| `servingSiteField` | String | Yes | +| `storageKey` | String | Yes | **Operations:** ```typescript // List all routeModule records -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(); +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, redirectsTableId: true, redirectsTableName: true, resolverFunctionName: true, routeBindingsTableId: true, routeBindingsTableName: true, routesTableId: true, routesTableName: true, schemaId: true, scope: true, servingSiteField: true, storageKey: true } }).execute(); // Get one by id -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(); +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, redirectsTableId: true, redirectsTableName: true, resolverFunctionName: true, routeBindingsTableId: true, routeBindingsTableName: true, routesTableId: true, routesTableName: true, schemaId: true, scope: true, servingSiteField: true, storageKey: true } }).execute(); // Create -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(); +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: '', redirectsTableId: '', redirectsTableName: '', resolverFunctionName: '', routeBindingsTableId: '', routeBindingsTableName: '', routesTableId: '', routesTableName: '', schemaId: '', scope: '', servingSiteField: '', storageKey: '' }, select: { id: true } }).execute(); // Update const updated = await db.routeModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -3271,8 +3609,10 @@ CRUD operations for SecureTableProvision records. | `fields` | JSON | Yes | | `grants` | JSON | Yes | | `id` | UUID | No | +| `module` | JSON | Yes | | `nodes` | JSON | Yes | | `outFields` | UUID | Yes | +| `owns` | JSON | Yes | | `policies` | JSON | Yes | | `schemaId` | UUID | Yes | | `tableId` | UUID | Yes | @@ -3283,13 +3623,13 @@ CRUD operations for SecureTableProvision records. ```typescript // List all secureTableProvision records -const items = await db.secureTableProvision.findMany({ select: { databaseId: true, fields: true, grants: true, id: true, nodes: true, outFields: true, policies: true, schemaId: true, tableId: true, tableName: true, useRls: true } }).execute(); +const items = await db.secureTableProvision.findMany({ select: { databaseId: true, fields: true, grants: true, id: true, module: true, nodes: true, outFields: true, owns: true, policies: true, schemaId: true, tableId: true, tableName: true, useRls: true } }).execute(); // Get one by id -const item = await db.secureTableProvision.findOne({ id: '', select: { databaseId: true, fields: true, grants: true, id: true, nodes: true, outFields: true, policies: true, schemaId: true, tableId: true, tableName: true, useRls: true } }).execute(); +const item = await db.secureTableProvision.findOne({ id: '', select: { databaseId: true, fields: true, grants: true, id: true, module: true, nodes: true, outFields: true, owns: true, policies: true, schemaId: true, tableId: true, tableName: true, useRls: true } }).execute(); // Create -const created = await db.secureTableProvision.create({ data: { databaseId: '', fields: '', grants: '', nodes: '', outFields: '', policies: '', schemaId: '', tableId: '', tableName: '', useRls: '' }, select: { id: true } }).execute(); +const created = await db.secureTableProvision.create({ data: { databaseId: '', fields: '', grants: '', module: '', nodes: '', outFields: '', owns: '', policies: '', schemaId: '', tableId: '', tableName: '', useRls: '' }, select: { id: true } }).execute(); // Update const updated = await db.secureTableProvision.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -3405,24 +3745,27 @@ CRUD operations for SiteSurfaceModule records. | `siteMetadataTableName` | String | Yes | | `siteModulesTableId` | UUID | Yes | | `siteModulesTableName` | String | Yes | +| `siteReleasesTableId` | UUID | Yes | +| `siteReleasesTableName` | String | Yes | | `siteThemesTableId` | UUID | Yes | | `siteThemesTableName` | String | Yes | | `siteWebConfigTableId` | UUID | Yes | | `siteWebConfigTableName` | String | Yes | | `sitesTableId` | UUID | Yes | | `sitesTableName` | String | Yes | +| `storageKey` | String | Yes | **Operations:** ```typescript // List all siteSurfaceModule records -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(); +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, siteReleasesTableId: true, siteReleasesTableName: true, siteThemesTableId: true, siteThemesTableName: true, siteWebConfigTableId: true, siteWebConfigTableName: true, sitesTableId: true, sitesTableName: true, storageKey: true } }).execute(); // Get one by id -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(); +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, siteReleasesTableId: true, siteReleasesTableName: true, siteThemesTableId: true, siteThemesTableName: true, siteWebConfigTableId: true, siteWebConfigTableName: true, sitesTableId: true, sitesTableName: true, storageKey: true } }).execute(); // Create -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(); +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: '', siteReleasesTableId: '', siteReleasesTableName: '', siteThemesTableId: '', siteThemesTableName: '', siteWebConfigTableId: '', siteWebConfigTableName: '', sitesTableId: '', sitesTableName: '', storageKey: '' }, select: { id: true } }).execute(); // Update const updated = await db.siteSurfaceModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -3439,11 +3782,9 @@ CRUD operations for StorageLogModule records. | Field | Type | Editable | |-------|------|----------| -| `actorFkTableId` | UUID | Yes | | `apiName` | String | Yes | | `databaseId` | UUID | Yes | | `entityField` | String | Yes | -| `entityFkTableId` | UUID | Yes | | `id` | UUID | No | | `interval` | String | Yes | | `prefix` | String | Yes | @@ -3453,6 +3794,7 @@ CRUD operations for StorageLogModule records. | `privateSchemaName` | String | Yes | | `publicSchemaName` | String | Yes | | `retention` | String | Yes | +| `rollupFunctionName` | String | Yes | | `schemaId` | UUID | Yes | | `scope` | String | Yes | | `storageLogTableId` | UUID | Yes | @@ -3464,16 +3806,16 @@ CRUD operations for StorageLogModule records. ```typescript // List all storageLogModule records -const items = await db.storageLogModule.findMany({ select: { actorFkTableId: true, apiName: true, databaseId: true, entityField: true, entityFkTableId: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, schemaId: true, scope: true, storageLogTableId: true, storageLogTableName: true, usageSummaryTableId: true, usageSummaryTableName: true } }).execute(); +const items = await db.storageLogModule.findMany({ select: { apiName: true, databaseId: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, rollupFunctionName: true, schemaId: true, scope: true, storageLogTableId: true, storageLogTableName: true, usageSummaryTableId: true, usageSummaryTableName: true } }).execute(); // Get one by id -const item = await db.storageLogModule.findOne({ id: '', select: { actorFkTableId: true, apiName: true, databaseId: true, entityField: true, entityFkTableId: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, schemaId: true, scope: true, storageLogTableId: true, storageLogTableName: true, usageSummaryTableId: true, usageSummaryTableName: true } }).execute(); +const item = await db.storageLogModule.findOne({ id: '', select: { apiName: true, databaseId: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, rollupFunctionName: true, schemaId: true, scope: true, storageLogTableId: true, storageLogTableName: true, usageSummaryTableId: true, usageSummaryTableName: true } }).execute(); // Create -const created = await db.storageLogModule.create({ data: { actorFkTableId: '', apiName: '', databaseId: '', entityField: '', entityFkTableId: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', retention: '', schemaId: '', scope: '', storageLogTableId: '', storageLogTableName: '', usageSummaryTableId: '', usageSummaryTableName: '' }, select: { id: true } }).execute(); +const created = await db.storageLogModule.create({ data: { apiName: '', databaseId: '', entityField: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', retention: '', rollupFunctionName: '', schemaId: '', scope: '', storageLogTableId: '', storageLogTableName: '', usageSummaryTableId: '', usageSummaryTableName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.storageLogModule.update({ where: { id: '' }, data: { actorFkTableId: '' }, select: { id: true } }).execute(); +const updated = await db.storageLogModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); // Delete const deleted = await db.storageLogModule.delete({ where: { id: '' } }).execute(); @@ -3511,6 +3853,7 @@ CRUD operations for StorageModule records. | `hasPathShares` | Boolean | Yes | | `hasVersioning` | Boolean | Yes | | `id` | UUID | No | +| `key` | String | Yes | | `maxBulkFiles` | Int | Yes | | `maxBulkTotalSize` | BigInt | Yes | | `maxFilenameLength` | Int | Yes | @@ -3533,13 +3876,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, 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(); +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, key: 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, 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(); +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, key: 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: '', 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(); +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: '', key: '', 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(); @@ -3556,11 +3899,9 @@ CRUD operations for TransferLogModule records. | Field | Type | Editable | |-------|------|----------| -| `actorFkTableId` | UUID | Yes | | `apiName` | String | Yes | | `databaseId` | UUID | Yes | | `entityField` | String | Yes | -| `entityFkTableId` | UUID | Yes | | `id` | UUID | No | | `interval` | String | Yes | | `prefix` | String | Yes | @@ -3570,6 +3911,7 @@ CRUD operations for TransferLogModule records. | `privateSchemaName` | String | Yes | | `publicSchemaName` | String | Yes | | `retention` | String | Yes | +| `rollupFunctionName` | String | Yes | | `schemaId` | UUID | Yes | | `scope` | String | Yes | | `transferLogTableId` | UUID | Yes | @@ -3581,16 +3923,16 @@ CRUD operations for TransferLogModule records. ```typescript // List all transferLogModule records -const items = await db.transferLogModule.findMany({ select: { actorFkTableId: true, apiName: true, databaseId: true, entityField: true, entityFkTableId: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, schemaId: true, scope: true, transferLogTableId: true, transferLogTableName: true, usageSummaryTableId: true, usageSummaryTableName: true } }).execute(); +const items = await db.transferLogModule.findMany({ select: { apiName: true, databaseId: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, rollupFunctionName: true, schemaId: true, scope: true, transferLogTableId: true, transferLogTableName: true, usageSummaryTableId: true, usageSummaryTableName: true } }).execute(); // Get one by id -const item = await db.transferLogModule.findOne({ id: '', select: { actorFkTableId: true, apiName: true, databaseId: true, entityField: true, entityFkTableId: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, schemaId: true, scope: true, transferLogTableId: true, transferLogTableName: true, usageSummaryTableId: true, usageSummaryTableName: true } }).execute(); +const item = await db.transferLogModule.findOne({ id: '', select: { apiName: true, databaseId: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, rollupFunctionName: true, schemaId: true, scope: true, transferLogTableId: true, transferLogTableName: true, usageSummaryTableId: true, usageSummaryTableName: true } }).execute(); // Create -const created = await db.transferLogModule.create({ data: { actorFkTableId: '', apiName: '', databaseId: '', entityField: '', entityFkTableId: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', retention: '', schemaId: '', scope: '', transferLogTableId: '', transferLogTableName: '', usageSummaryTableId: '', usageSummaryTableName: '' }, select: { id: true } }).execute(); +const created = await db.transferLogModule.create({ data: { apiName: '', databaseId: '', entityField: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', retention: '', rollupFunctionName: '', schemaId: '', scope: '', transferLogTableId: '', transferLogTableName: '', usageSummaryTableId: '', usageSummaryTableName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.transferLogModule.update({ where: { id: '' }, data: { actorFkTableId: '' }, select: { id: true } }).execute(); +const updated = await db.transferLogModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); // Delete const deleted = await db.transferLogModule.delete({ where: { id: '' } }).execute(); @@ -3616,8 +3958,10 @@ CRUD operations for UserAuthModule records. | `forgotPasswordFunction` | String | Yes | | `id` | UUID | No | | `privateApiName` | String | Yes | +| `privateSchemaId` | UUID | Yes | | `requestCrossOriginTokenFunction` | String | Yes | | `resetPasswordFunction` | String | Yes | +| `revokeSessionTreeFunction` | String | Yes | | `schemaId` | UUID | Yes | | `secretsTableId` | UUID | Yes | | `sendAccountDeletionEmailFunction` | String | Yes | @@ -3629,6 +3973,7 @@ CRUD operations for UserAuthModule records. | `signInFunction` | String | Yes | | `signOutFunction` | String | Yes | | `signUpFunction` | String | Yes | +| `sweepExpiredSessionsFunction` | String | Yes | | `usersTableId` | UUID | Yes | | `verifyEmailFunction` | String | Yes | | `verifyPasswordFunction` | String | Yes | @@ -3637,13 +3982,13 @@ CRUD operations for UserAuthModule records. ```typescript // List all userAuthModule records -const items = await db.userAuthModule.findMany({ select: { apiName: true, auditsTableId: true, auditsTableName: true, checkPasswordFunction: true, databaseId: true, deleteAccountFunction: true, emailsTableId: true, encryptedTableId: true, extendTokenExpires: true, forgotPasswordFunction: true, id: true, privateApiName: true, requestCrossOriginTokenFunction: true, resetPasswordFunction: true, schemaId: true, secretsTableId: true, sendAccountDeletionEmailFunction: true, sendVerificationEmailFunction: true, sessionCredentialsTableId: true, sessionsTableId: true, setPasswordFunction: true, signInCrossOriginFunction: true, signInFunction: true, signOutFunction: true, signUpFunction: true, usersTableId: true, verifyEmailFunction: true, verifyPasswordFunction: true } }).execute(); +const items = await db.userAuthModule.findMany({ select: { apiName: true, auditsTableId: true, auditsTableName: true, checkPasswordFunction: true, databaseId: true, deleteAccountFunction: true, emailsTableId: true, encryptedTableId: true, extendTokenExpires: true, forgotPasswordFunction: true, id: true, privateApiName: true, privateSchemaId: true, requestCrossOriginTokenFunction: true, resetPasswordFunction: true, revokeSessionTreeFunction: true, schemaId: true, secretsTableId: true, sendAccountDeletionEmailFunction: true, sendVerificationEmailFunction: true, sessionCredentialsTableId: true, sessionsTableId: true, setPasswordFunction: true, signInCrossOriginFunction: true, signInFunction: true, signOutFunction: true, signUpFunction: true, sweepExpiredSessionsFunction: true, usersTableId: true, verifyEmailFunction: true, verifyPasswordFunction: true } }).execute(); // Get one by id -const item = await db.userAuthModule.findOne({ id: '', select: { apiName: true, auditsTableId: true, auditsTableName: true, checkPasswordFunction: true, databaseId: true, deleteAccountFunction: true, emailsTableId: true, encryptedTableId: true, extendTokenExpires: true, forgotPasswordFunction: true, id: true, privateApiName: true, requestCrossOriginTokenFunction: true, resetPasswordFunction: true, schemaId: true, secretsTableId: true, sendAccountDeletionEmailFunction: true, sendVerificationEmailFunction: true, sessionCredentialsTableId: true, sessionsTableId: true, setPasswordFunction: true, signInCrossOriginFunction: true, signInFunction: true, signOutFunction: true, signUpFunction: true, usersTableId: true, verifyEmailFunction: true, verifyPasswordFunction: true } }).execute(); +const item = await db.userAuthModule.findOne({ id: '', select: { apiName: true, auditsTableId: true, auditsTableName: true, checkPasswordFunction: true, databaseId: true, deleteAccountFunction: true, emailsTableId: true, encryptedTableId: true, extendTokenExpires: true, forgotPasswordFunction: true, id: true, privateApiName: true, privateSchemaId: true, requestCrossOriginTokenFunction: true, resetPasswordFunction: true, revokeSessionTreeFunction: true, schemaId: true, secretsTableId: true, sendAccountDeletionEmailFunction: true, sendVerificationEmailFunction: true, sessionCredentialsTableId: true, sessionsTableId: true, setPasswordFunction: true, signInCrossOriginFunction: true, signInFunction: true, signOutFunction: true, signUpFunction: true, sweepExpiredSessionsFunction: true, usersTableId: true, verifyEmailFunction: true, verifyPasswordFunction: true } }).execute(); // Create -const created = await db.userAuthModule.create({ data: { apiName: '', auditsTableId: '', auditsTableName: '', checkPasswordFunction: '', databaseId: '', deleteAccountFunction: '', emailsTableId: '', encryptedTableId: '', extendTokenExpires: '', forgotPasswordFunction: '', privateApiName: '', requestCrossOriginTokenFunction: '', resetPasswordFunction: '', schemaId: '', secretsTableId: '', sendAccountDeletionEmailFunction: '', sendVerificationEmailFunction: '', sessionCredentialsTableId: '', sessionsTableId: '', setPasswordFunction: '', signInCrossOriginFunction: '', signInFunction: '', signOutFunction: '', signUpFunction: '', usersTableId: '', verifyEmailFunction: '', verifyPasswordFunction: '' }, select: { id: true } }).execute(); +const created = await db.userAuthModule.create({ data: { apiName: '', auditsTableId: '', auditsTableName: '', checkPasswordFunction: '', databaseId: '', deleteAccountFunction: '', emailsTableId: '', encryptedTableId: '', extendTokenExpires: '', forgotPasswordFunction: '', privateApiName: '', privateSchemaId: '', requestCrossOriginTokenFunction: '', resetPasswordFunction: '', revokeSessionTreeFunction: '', schemaId: '', secretsTableId: '', sendAccountDeletionEmailFunction: '', sendVerificationEmailFunction: '', sessionCredentialsTableId: '', sessionsTableId: '', setPasswordFunction: '', signInCrossOriginFunction: '', signInFunction: '', signOutFunction: '', signUpFunction: '', sweepExpiredSessionsFunction: '', usersTableId: '', verifyEmailFunction: '', verifyPasswordFunction: '' }, select: { id: true } }).execute(); // Update const updated = await db.userAuthModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -3964,7 +4309,7 @@ const deleted = await db.webhookModule.delete({ where: { id: '' } }).execu ### `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. +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). A table entry either names its table (table_name plus optional schema_name) or references one an installed module generated ("module": {"type": "agent", "scope": "org", "table": "message"}), which resolves through the module row's recorded table ids and raises when it matches nothing instead of creating an empty table. After provisioning, optional smart_tags (jsonb object) on the table entry are applied via metaschema.append_table_smart_tags(), and optional smart_tags on individual field entries are applied via metaschema.append_field_smart_tags(). (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] — resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID on success, NULL on failure. - **Type:** mutation - **Arguments:** @@ -3994,10 +4339,11 @@ const result = await db.mutation.copyTemplateToBlueprint({ input: { databaseId: ### `db.mutation.provisionBucket` -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. +Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. - **Type:** mutation - **Arguments:** diff --git a/sdk/constructive-react/src/modules/orm/index.ts b/sdk/constructive-react/src/modules/orm/index.ts index 249a7e5114..b65ba3f129 100644 --- a/sdk/constructive-react/src/modules/orm/index.ts +++ b/sdk/constructive-react/src/modules/orm/index.ts @@ -15,8 +15,8 @@ import { BlueprintConstructionModel } from './models/blueprintConstruction'; import { BlueprintTemplateModel } from './models/blueprintTemplate'; import { CapabilitiesModuleModel } from './models/capabilitiesModule'; import { CatalogModuleModel } from './models/catalogModule'; +import { ClusterModuleModel } from './models/clusterModule'; 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'; @@ -43,16 +43,19 @@ import { FunctionModuleModel } from './models/functionModule'; import { GraphExecutionModuleModel } from './models/graphExecutionModule'; import { GraphModuleModel } from './models/graphModule'; import { HierarchyModuleModel } from './models/hierarchyModule'; -import { HttpRouteModuleModel } from './models/httpRouteModule'; import { I18NModuleModel } from './models/i18NModule'; import { IdentityProvidersModuleModel } from './models/identityProvidersModule'; +import { ImageModuleModel } from './models/imageModule'; import { InferenceLogModuleModel } from './models/inferenceLogModule'; import { InfraConfigModuleModel } from './models/infraConfigModule'; import { InfraSecretsModuleModel } from './models/infraSecretsModule'; import { IntegrationProvidersModuleModel } from './models/integrationProvidersModule'; +import { InternalConfigModuleModel } from './models/internalConfigModule'; import { InternalSecretsModuleModel } from './models/internalSecretsModule'; import { InvitesModuleModel } from './models/invitesModule'; +import { K8sAdmissionModuleModel } from './models/k8sAdmissionModule'; import { LimitsModuleModel } from './models/limitsModule'; +import { MachineModuleModel } from './models/machineModule'; import { MembershipTypesModuleModel } from './models/membershipTypesModule'; import { MembershipsModuleModel } from './models/membershipsModule'; import { MerkleStoreModuleModel } from './models/merkleStoreModule'; @@ -67,7 +70,9 @@ import { ProfilesModuleModel } from './models/profilesModule'; import { RateLimitMetersModuleModel } from './models/rateLimitMetersModule'; import { RateLimitsModuleModel } from './models/rateLimitsModule'; import { RealtimeModuleModel } from './models/realtimeModule'; +import { RefusalLogModuleModel } from './models/refusalLogModule'; import { RelationProvisionModel } from './models/relationProvision'; +import { RepositoryModuleModel } from './models/repositoryModule'; import { ResourceModuleModel } from './models/resourceModule'; import { RlsModuleModel } from './models/rlsModule'; import { RouteModuleModel } from './models/routeModule'; @@ -131,8 +136,8 @@ export function createClient(config: OrmClientConfig) { blueprintTemplate: new BlueprintTemplateModel(client), capabilitiesModule: new CapabilitiesModuleModel(client), catalogModule: new CatalogModuleModel(client), + clusterModule: new ClusterModuleModel(client), computeLogModule: new ComputeLogModuleModel(client), - configSecretsUserModule: new ConfigSecretsUserModuleModel(client), connectedAccountsModule: new ConnectedAccountsModuleModel(client), contentPresetModule: new ContentPresetModuleModel(client), cryptoAddressesModule: new CryptoAddressesModuleModel(client), @@ -159,16 +164,19 @@ export function createClient(config: OrmClientConfig) { graphExecutionModule: new GraphExecutionModuleModel(client), graphModule: new GraphModuleModel(client), hierarchyModule: new HierarchyModuleModel(client), - httpRouteModule: new HttpRouteModuleModel(client), i18NModule: new I18NModuleModel(client), identityProvidersModule: new IdentityProvidersModuleModel(client), + imageModule: new ImageModuleModel(client), inferenceLogModule: new InferenceLogModuleModel(client), infraConfigModule: new InfraConfigModuleModel(client), infraSecretsModule: new InfraSecretsModuleModel(client), integrationProvidersModule: new IntegrationProvidersModuleModel(client), + internalConfigModule: new InternalConfigModuleModel(client), internalSecretsModule: new InternalSecretsModuleModel(client), invitesModule: new InvitesModuleModel(client), + k8sAdmissionModule: new K8sAdmissionModuleModel(client), limitsModule: new LimitsModuleModel(client), + machineModule: new MachineModuleModel(client), membershipTypesModule: new MembershipTypesModuleModel(client), membershipsModule: new MembershipsModuleModel(client), merkleStoreModule: new MerkleStoreModuleModel(client), @@ -183,7 +191,9 @@ export function createClient(config: OrmClientConfig) { rateLimitMetersModule: new RateLimitMetersModuleModel(client), rateLimitsModule: new RateLimitsModuleModel(client), realtimeModule: new RealtimeModuleModel(client), + refusalLogModule: new RefusalLogModuleModel(client), relationProvision: new RelationProvisionModel(client), + repositoryModule: new RepositoryModuleModel(client), resourceModule: new ResourceModuleModel(client), rlsModule: new RlsModuleModel(client), routeModule: new RouteModuleModel(client), diff --git a/sdk/constructive-react/src/modules/orm/input-types.ts b/sdk/constructive-react/src/modules/orm/input-types.ts index 27a0a0b958..05438875c5 100644 --- a/sdk/constructive-react/src/modules/orm/input-types.ts +++ b/sdk/constructive-react/src/modules/orm/input-types.ts @@ -237,11 +237,17 @@ export interface AgentModule { apiName?: string | null; databaseId?: string | null; defaultCapabilities?: string[] | null; + defaultVisibility?: string | null; entityField?: string | null; entityTableId?: string | null; + eventTableId?: string | null; + eventTableName?: string | null; hasAgents?: boolean | null; + hasAttachments?: boolean | null; hasPlans?: boolean | null; + hasRepositoryResources?: boolean | null; hasResources?: boolean | null; + hasRuns?: boolean | null; id: string; messageTableId?: string | null; messageTableName?: string | null; @@ -258,16 +264,21 @@ export interface AgentModule { promptsTableName?: string | null; provisions?: Record | null; publicSchemaName?: string | null; + resourceRepositoryTableId?: string | null; + resourceRepositoryTableName?: string | null; resourceTableId?: string | null; resourceTableName?: string | null; resources?: Record | null; + runTableId?: string | null; + runTableName?: string | null; schemaId?: string | null; scope?: string | null; - shared?: boolean | null; taskTableId?: string | null; taskTableName?: string | null; threadTableId?: string | null; threadTableName?: string | null; + workspaceTableId?: string | null; + workspaceTableName?: string | null; } export interface ApiSurfaceModule { apiName?: string | null; @@ -297,6 +308,7 @@ export interface AppModule { apiName?: string | null; appComponentsTableId?: string | null; appComponentsTableName?: string | null; + appStoreIdentitiesTableName?: string | null; appsTableId?: string | null; appsTableName?: string | null; catalogModuleId?: string | null; @@ -346,9 +358,12 @@ export interface BillingModule { sweepExpiredSubscriptionsFunction?: string | null; } export interface BillingProviderModule { + activatePlanSubscriptionFunction?: string | null; apiName?: string | null; billingCustomersTableId?: string | null; billingCustomersTableName?: string | null; + billingDisputesTableId?: string | null; + billingDisputesTableName?: string | null; billingInvoicesTableId?: string | null; billingInvoicesTableName?: string | null; billingPricesTableId?: string | null; @@ -362,6 +377,12 @@ export interface BillingProviderModule { billingWebhookEventsTableId?: string | null; billingWebhookEventsTableName?: string | null; databaseId?: string | null; + getActivePlanPricingFunction?: string | null; + getBillingCustomerFunction?: string | null; + getBillingPriceFunction?: string | null; + getBillingProductFunction?: string | null; + getBillingSubscriptionFunction?: string | null; + getFallbackFreePlanFunction?: string | null; id: string; listPendingUsageSyncFunction?: string | null; markUsageSyncedFunction?: string | null; @@ -372,9 +393,15 @@ export interface BillingProviderModule { processBillingEventFunction?: string | null; productsTableId?: string | null; provider?: string | null; + recordDisputeFunction?: string | null; recordRefundFunction?: string | null; schemaId?: string | null; subscriptionsTableId?: string | null; + sweepOverdueSubscriptionsFunction?: string | null; + upsertBillingCustomerFunction?: string | null; + upsertBillingPriceFunction?: string | null; + upsertBillingProductFunction?: string | null; + upsertBillingSubscriptionFunction?: 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. */ @@ -500,6 +527,8 @@ export interface CatalogModule { apiName?: string | null; apisTableId?: string | null; apisTableName?: string | null; + appStoreIdentitiesTableId?: string | null; + appStoreIdentitiesTableName?: string | null; appsTableId?: string | null; appsTableName?: string | null; bindingsTableId?: string | null; @@ -514,12 +543,18 @@ export interface CatalogModule { functionsTableId?: string | null; functionsTableName?: string | null; id: string; + imagesTableId?: string | null; + imagesTableName?: string | null; + managedDomainsTableId?: string | null; + managedDomainsTableName?: string | null; namespacesTableId?: string | null; namespacesTableName?: string | null; policies?: Record | null; privateApiName?: string | null; provisions?: Record | null; publicSchemaName?: string | null; + redirectsTableId?: string | null; + redirectsTableName?: string | null; resourceDefinitionsTableId?: string | null; resourceDefinitionsTableName?: string | null; resourceInstallationsTableId?: string | null; @@ -539,37 +574,55 @@ export interface CatalogModule { sitesWebConfigTableId?: string | null; sitesWebConfigTableName?: string | null; } -export interface ComputeLogModule { - actorFkTableId?: string | null; +export interface ClusterModule { apiName?: string | null; - computeLogTableId?: string | null; - computeLogTableName?: string | null; + clusterEventsTableId?: string | null; + clusterEventsTableName?: string | null; + clustersTableId?: string | null; + clustersTableName?: string | null; databaseId?: string | null; + databasePlacementsTableId?: string | null; + databasePlacementsTableName?: string | null; + databaseServersTableId?: string | null; + databaseServersTableName?: string | null; + defaultCapabilities?: string[] | null; entityField?: string | null; - entityFkTableId?: string | null; id: string; - interval?: string | null; + partitionInterval?: string | null; + physicalDatabasesTableId?: string | null; + physicalDatabasesTableName?: string | null; + policies?: Record | null; prefix?: string | null; premake?: number | null; privateApiName?: string | null; privateSchemaId?: string | null; privateSchemaName?: string | null; + provisions?: Record | null; publicSchemaName?: string | null; retention?: string | null; schemaId?: string | null; scope?: string | null; - usageSummaryTableId?: string | null; - usageSummaryTableName?: string | null; } -export interface ConfigSecretsUserModule { +export interface ComputeLogModule { apiName?: string | null; + computeLogTableId?: string | null; + computeLogTableName?: string | null; databaseId?: string | null; entityField?: string | null; id: string; + interval?: string | null; + prefix?: string | null; + premake?: number | null; privateApiName?: string | null; + privateSchemaId?: string | null; + privateSchemaName?: string | null; + publicSchemaName?: string | null; + retention?: string | null; + rollupFunctionName?: string | null; schemaId?: string | null; - tableId?: string | null; - tableName?: string | null; + scope?: string | null; + usageSummaryTableId?: string | null; + usageSummaryTableName?: string | null; } export interface ConnectedAccountsModule { apiName?: string | null; @@ -646,11 +699,13 @@ export interface DataCapabilitiesField { 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 */ async?: boolean | null; + /** The user whose identity is copied into the new database. Defaults to owner_id when NULL; set explicitly when owner_id is an organization */ + bootstrapActorId?: string | null; /** Error message from the most recent failed bootstrap attempt */ bootstrapError?: string | null; /** Status of the deferred owner bootstrap job: not_requested, pending, completed, or failed */ bootstrapStatus?: string | null; - /** When true, copies the owner user and password hash from source database to the newly provisioned database */ + /** When true, copies the bootstrap user and password hash from source database to the newly provisioned database */ bootstrapUser?: boolean | null; completedAt?: string | null; createdAt?: string | null; @@ -668,7 +723,7 @@ export interface DatabaseProvisionModule { modules?: Record | null; /** Additional configuration options for provisioning */ options?: Record | null; - /** UUID of the user who owns this database */ + /** UUID of the entity that owns this database: a user, or an organization for an org-owned request */ ownerId?: string | null; /** The database the owner user is copied from during bootstrap (captured from JWT context at provision time) */ sourceDatabaseId?: string | null; @@ -1272,6 +1327,7 @@ export interface FunctionModule { schedulesTableId?: string | null; schemaId?: string | null; scope?: string | null; + storageKey?: string | null; } export interface GraphExecutionModule { apiName?: string | null; @@ -1343,29 +1399,6 @@ export interface HierarchyModule { sprtTableName?: string | null; usersTableId?: string | null; } -export interface HttpRouteModule { - apiName?: string | null; - databaseId?: string | null; - defaultCapabilities?: string[] | null; - entityField?: string | null; - entityTableId?: string | null; - functionModuleId?: string | null; - httpRoutesTableId?: string | null; - httpRoutesTableName?: string | null; - id: string; - policies?: Record | null; - prefix?: string | null; - privateApiName?: string | null; - privateSchemaId?: string | null; - privateSchemaName?: string | null; - provisions?: Record | null; - publicSchemaName?: string | null; - resolverFunctionName?: string | null; - resourceModuleId?: string | null; - schemaId?: string | null; - scope?: string | null; - storageModuleId?: string | null; -} export interface I18NModule { apiName?: string | null; databaseId?: string | null; @@ -1403,12 +1436,35 @@ export interface IdentityProvidersModule { tableId?: string | null; tableName?: string | null; } +export interface ImageModule { + apiName?: string | null; + databaseId?: string | null; + defaultCapabilities?: string[] | null; + entityField?: string | null; + entityTableId?: string | null; + id: string; + imageGrantsTableId?: string | null; + imageGrantsTableName?: string | null; + imagesTableId?: string | null; + imagesTableName?: string | null; + policies?: Record | null; + prefix?: string | null; + privateApiName?: string | null; + privateSchemaId?: string | null; + privateSchemaName?: string | null; + provisions?: Record | null; + publicSchemaName?: string | null; + registriesTableId?: string | null; + registriesTableName?: string | null; + registryGrantsTableId?: string | null; + registryGrantsTableName?: string | null; + schemaId?: string | null; + scope?: string | null; +} export interface InferenceLogModule { - actorFkTableId?: string | null; apiName?: string | null; databaseId?: string | null; entityField?: string | null; - entityFkTableId?: string | null; id: string; inferenceLogTableId?: string | null; inferenceLogTableName?: string | null; @@ -1420,6 +1476,7 @@ export interface InferenceLogModule { privateSchemaName?: string | null; publicSchemaName?: string | null; retention?: string | null; + rollupFunctionName?: string | null; schemaId?: string | null; scope?: string | null; usageSummaryTableId?: string | null; @@ -1486,6 +1543,25 @@ export interface IntegrationProvidersModule { tableId?: string | null; tableName?: string | null; } +/** Scope-aware plaintext internal config store. No namespace_module dependency and no K8s synchronization: values are read from the database at invocation time. Configuration that must be projected into a Kubernetes ConfigMap belongs in infra_config_module. */ +export interface InternalConfigModule { + apiName?: string | null; + databaseId?: string | null; + entityField?: string | null; + entityTableId?: string | null; + id: string; + internalConfigTableId?: string | null; + internalConfigTableName?: string | null; + policies?: Record | null; + prefix?: string | null; + privateApiName?: string | null; + privateSchemaId?: string | null; + privateSchemaName?: string | null; + provisions?: Record | null; + publicSchemaName?: string | null; + schemaId?: string | null; + scope?: string | null; +} /** App-scoped PGP-encrypted internal secrets store. No namespace_module dependency and no K8s synchronization. Used by identity_providers_module for OAuth2 client_secret storage. */ export interface InternalSecretsModule { apiName?: string | null; @@ -1526,6 +1602,27 @@ export interface InvitesModule { submitInviteCodeFunction?: string | null; usersTableId?: string | null; } +/** Provisions the platform-managed Kubernetes admission catalogs: a kinds table and a spec-rules table, Merkle-versioned through the referenced merkle_store_module, whose rows the generated admission gate on resources/resource_definitions reads. Writes are platform-admin and human-only; every scope reads the one catalog. */ +export interface K8sAdmissionModule { + apiName?: string | null; + createdAt?: string | null; + databaseId?: string | null; + entityTableId?: string | null; + id: string; + k8sResourceKindsTableId?: string | null; + k8sSpecRulesTableId?: 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 LimitsModule { actorTableId?: string | null; aggregateTableId?: string | null; @@ -1566,6 +1663,32 @@ export interface LimitsModule { tableId?: string | null; tableName?: string | null; } +export interface MachineModule { + apiName?: string | null; + databaseId?: string | null; + defaultCapabilities?: string[] | null; + entityField?: string | null; + entityTableId?: string | null; + id: string; + machineMessagesTableId?: string | null; + machineMessagesTableName?: string | null; + machineSessionsTableId?: string | null; + machineSessionsTableName?: string | null; + machinesTableId?: string | null; + machinesTableName?: string | null; + partitionInterval?: string | null; + policies?: Record | null; + prefix?: string | null; + premake?: number | null; + privateApiName?: string | null; + privateSchemaId?: string | null; + privateSchemaName?: string | null; + provisions?: Record | null; + publicSchemaName?: string | null; + retention?: string | null; + schemaId?: string | null; + scope?: string | null; +} export interface MembershipTypesModule { databaseId?: string | null; id: string; @@ -1624,6 +1747,7 @@ export interface MerkleStoreModule { createdAt?: string | null; databaseId?: string | null; entityField?: string | null; + entityTableId?: string | null; functionPrefix?: string | null; id: string; objectTableId?: string | null; @@ -1716,12 +1840,17 @@ export interface PagesModule { pagesTableId?: string | null; policies?: Record | null; prefix?: string | null; + previewCommitFunctionName?: string | null; + previewSetFunctionName?: string | null; + previewTokenMintFunctionName?: string | null; + previewTokenVerifierFunctionName?: string | null; privateApiName?: string | null; privateSchemaId?: string | null; privateSchemaName?: string | null; provisions?: Record | null; publicSchemaId?: string | null; publicSchemaName?: string | null; + releaseManifestFunctionName?: string | null; scope?: string | null; siteSurfaceModuleId?: string | null; sitesTableId?: string | null; @@ -1776,10 +1905,12 @@ export interface PrincipalAuthModule { principalScopeOverridesTableId?: string | null; principalsTableId?: string | null; principalsTableName?: string | null; + privateSchemaId?: string | null; revokeOrgApiKeyFunction?: string | null; schemaId?: string | null; sessionCredentialsTableId?: string | null; sessionsTableId?: string | null; + sweepExpiredPrincipalsFunction?: string | null; usersTableId?: string | null; } export interface ProfilesModule { @@ -1857,6 +1988,31 @@ export interface RealtimeModule { sourceRegistryTableId?: string | null; subscriptionsSchemaId?: string | null; } +export interface RefusalLogModule { + apiName?: string | null; + databaseId?: string | null; + entityField?: string | null; + id: string; + logInterval?: string | null; + logPremake?: number | null; + logRetention?: string | null; + logTableId?: string | null; + logTableName?: string | null; + prefix?: string | null; + privateApiName?: string | null; + privateSchemaId?: string | null; + privateSchemaName?: string | null; + publicSchemaName?: string | null; + recordRefusalsFunction?: string | null; + rollupRefusalUsageSummaryFunction?: string | null; + schemaId?: string | null; + scope?: string | null; + summaryInterval?: string | null; + summaryPremake?: number | null; + summaryRetention?: string | null; + summaryTableId?: string | null; + summaryTableName?: string | null; +} /** * Provisions relational structure between tables. Supports four relation types: * - RelationBelongsTo: adds a FK field on the source table referencing the target table (child perspective: "tasks belongs to projects" -> tasks.project_id). @@ -1990,8 +2146,52 @@ export interface RelationProvision { */ useCompositeKey?: boolean | null; } +export interface RepositoryModule { + apiName?: string | null; + buildStepsTableId?: string | null; + buildStepsTableName?: string | null; + buildsTableId?: string | null; + buildsTableName?: string | null; + databaseId?: string | null; + defaultCapabilities?: string[] | null; + entityField?: string | null; + entityTableId?: string | null; + hasAttachments?: boolean | null; + hasBuilds?: boolean | null; + id: string; + policies?: Record | null; + prefix?: string | null; + privateApiName?: string | null; + privateSchemaId?: string | null; + privateSchemaName?: string | null; + proposalCommentsTableId?: string | null; + proposalCommentsTableName?: string | null; + proposalFileViewsTableId?: string | null; + proposalFileViewsTableName?: string | null; + proposalReactionsTableId?: string | null; + proposalReactionsTableName?: string | null; + proposalReviewsTableId?: string | null; + proposalReviewsTableName?: string | null; + proposalsTableId?: string | null; + proposalsTableName?: string | null; + provisions?: Record | null; + publicSchemaName?: string | null; + repositoriesTableId?: string | null; + repositoriesTableName?: string | null; + repositoryEventsTableId?: string | null; + repositoryEventsTableName?: string | null; + repositoryRequiredChecksTableId?: string | null; + repositoryRequiredChecksTableName?: string | null; + schemaId?: string | null; + scope?: string | null; + search?: Record | null; + workflowsTableId?: string | null; + workflowsTableName?: string | null; +} export interface ResourceModule { apiName?: string | null; + builderBindingsTableId?: string | null; + builderBindingsTableName?: string | null; databaseId?: string | null; defaultCapabilities?: string[] | null; entityField?: string | null; @@ -2007,6 +2207,8 @@ export interface ResourceModule { privateSchemaName?: string | null; provisions?: Record | null; publicSchemaName?: string | null; + registryBindingsTableId?: string | null; + registryBindingsTableName?: string | null; requirementsStateViewName?: string | null; resolvedRequirementsViewName?: string | null; resourceBillingRollupFunction?: string | null; @@ -2063,6 +2265,8 @@ export interface RouteModule { privateSchemaName?: string | null; provisions?: Record | null; publicSchemaName?: string | null; + redirectsTableId?: string | null; + redirectsTableName?: string | null; resolverFunctionName?: string | null; routeBindingsTableId?: string | null; routeBindingsTableName?: string | null; @@ -2070,6 +2274,8 @@ export interface RouteModule { routesTableName?: string | null; schemaId?: string | null; scope?: string | null; + servingSiteField?: string | null; + storageKey?: string | null; } export interface ScopeTypesModule { databaseId?: string | null; @@ -2078,7 +2284,7 @@ export interface ScopeTypesModule { 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. */ +/** 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. The target table is addressed by table_id, by table_name, or symbolically by a module reference in module. A row that lists a concern in owns[] replaces that concern on the target table instead of composing with what is already there. */ export interface SecureTableProvision { /** The database this provision belongs to. Required. */ databaseId?: string | null; @@ -2088,10 +2294,14 @@ export interface SecureTableProvision { grants?: Record | null; /** Unique identifier for this provision row. */ id: string; + /** Module reference naming a module-generated target table symbolically, instead of by table_id or table_name: a jsonb object with keys "type" (text, required — the module type, e.g. "image"), "table" (text, required — the module's own table key, e.g. "registries"), "scope" (text, optional — the install scope) and "prefix" (text, optional — disambiguates multiple installs of the same module). Resolved through metaschema_modules_private.resolve_module_table(), so it raises the same errors blueprint module references do (BLUEPRINT_MODULE_REF_INVALID, BLUEPRINT_MODULE_NOT_INSTALLED, BLUEPRINT_MODULE_REF_AMBIGUOUS, BLUEPRINT_MODULE_TABLE_UNKNOWN). Mutually exclusive with table_name and with an explicit table_id. Example: {"type":"image","scope":"org","table":"registries"}. Defaults to NULL. */ + module?: Record | null; /** Array of node objects to apply to the table. Each element is a jsonb object with a required "$type" key (one of: DataId, DataDirectOwner, DataEntityMembership, DataOwnershipInEntity, DataTimestamps, DataPeoplestamps, DataPublishable, DataSoftDelete, DataEmbedding, DataFullTextSearch, DataSlug, etc.) and an optional "data" key containing generator-specific configuration. Supports multiple nodes per row, matching the blueprint definition format. Example: [{"$type": "DataId"}, {"$type": "DataTimestamps"}, {"$type": "DataDirectOwner", "data": {"owner_field_name": "author_id"}}]. Defaults to '[]' (no node processing). */ nodes?: Record | null; /** Output column populated by the trigger after field creation. Contains the UUIDs of the metaschema fields created on the target table by this provision row's nodes. NULL when nodes is empty or before the trigger runs. Callers should not set this directly. */ outFields?: string[] | null; + /** Security concerns this row owns on the target table, as a jsonb array of "grants" and/or "policies". A listed concern is replaced: the target table's existing grants (or its non-derived policies) are dropped before this row's grants[] (or policies[]) are applied, so the row's array is the table's whole set — this is how a module-generated table's default security is superseded rather than layered on. An unlisted concern composes, which is the default and the historical behavior. A concern may only be owned when this row supplies a non-empty array for it; owning a concern with nothing to install would leave the table with RLS enabled and no policy, and raises instead. Example: ["policies","grants"]. Defaults to '[]' (compose everything). */ + owns?: Record | null; /** Array of policy objects to create on the target table. Each element is a jsonb object with keys: "$type" (text, required — the Authz* policy generator type, e.g. AuthzEntityMembership, AuthzMembership, AuthzDirectOwner, AuthzPublishable, AuthzAllowAll), "data" (jsonb, optional — opaque configuration passed to metaschema.create_policy(), structure varies by type), "privileges" (text[], optional — privileges the policy applies to, e.g. ["select","insert"]; if omitted, derived from grants[] privilege verbs), "policy_role" (text, optional — role the policy targets; if omitted, falls back to first role in first grants[] entry, or 'authenticated' if no grants), "permissive" (boolean, optional — PERMISSIVE or RESTRICTIVE; defaults to true), "policy_name" (text, optional — custom suffix for the generated policy name; if omitted, auto-derived from $type by stripping Authz prefix). Supports multiple policies per row. Example: [{"$type": "AuthzEntityMembership", "data": {"entity_field": "owner_id", "membership_type": 3}, "privileges": ["select", "insert"]}, {"$type": "AuthzDirectOwner", "data": {"entity_field": "actor_id"}, "privileges": ["update", "delete"]}]. Defaults to '[]' (no policies created). When non-empty, the trigger automatically enables RLS. */ policies?: Record | null; /** Target schema for the table. Defaults to uuid_nil(); the trigger resolves this to the app_public schema if not explicitly provided. */ @@ -2153,19 +2363,20 @@ export interface SiteSurfaceModule { siteMetadataTableName?: string | null; siteModulesTableId?: string | null; siteModulesTableName?: string | null; + siteReleasesTableId?: string | null; + siteReleasesTableName?: string | null; siteThemesTableId?: string | null; siteThemesTableName?: string | null; siteWebConfigTableId?: string | null; siteWebConfigTableName?: string | null; sitesTableId?: string | null; sitesTableName?: string | null; + storageKey?: string | null; } export interface StorageLogModule { - actorFkTableId?: string | null; apiName?: string | null; databaseId?: string | null; entityField?: string | null; - entityFkTableId?: string | null; id: string; interval?: string | null; prefix?: string | null; @@ -2175,6 +2386,7 @@ export interface StorageLogModule { privateSchemaName?: string | null; publicSchemaName?: string | null; retention?: string | null; + rollupFunctionName?: string | null; schemaId?: string | null; scope?: string | null; storageLogTableId?: string | null; @@ -2207,6 +2419,7 @@ export interface StorageModule { hasPathShares?: boolean | null; hasVersioning?: boolean | null; id: string; + key?: string | null; maxBulkFiles?: number | null; maxBulkTotalSize?: string | null; maxFilenameLength?: number | null; @@ -2226,11 +2439,9 @@ export interface StorageModule { uploadUrlExpirySeconds?: number | null; } export interface TransferLogModule { - actorFkTableId?: string | null; apiName?: string | null; databaseId?: string | null; entityField?: string | null; - entityFkTableId?: string | null; id: string; interval?: string | null; prefix?: string | null; @@ -2240,6 +2451,7 @@ export interface TransferLogModule { privateSchemaName?: string | null; publicSchemaName?: string | null; retention?: string | null; + rollupFunctionName?: string | null; schemaId?: string | null; scope?: string | null; transferLogTableId?: string | null; @@ -2260,8 +2472,10 @@ export interface UserAuthModule { forgotPasswordFunction?: string | null; id: string; privateApiName?: string | null; + privateSchemaId?: string | null; requestCrossOriginTokenFunction?: string | null; resetPasswordFunction?: string | null; + revokeSessionTreeFunction?: string | null; schemaId?: string | null; secretsTableId?: string | null; sendAccountDeletionEmailFunction?: string | null; @@ -2273,6 +2487,7 @@ export interface UserAuthModule { signInFunction?: string | null; signOutFunction?: string | null; signUpFunction?: string | null; + sweepExpiredSessionsFunction?: string | null; usersTableId?: string | null; verifyEmailFunction?: string | null; verifyPasswordFunction?: string | null; @@ -2428,8 +2643,8 @@ export interface CatalogModuleRelations { routeModules?: ConnectionResult; siteSurfaceModules?: ConnectionResult; } +export interface ClusterModuleRelations {} export interface ComputeLogModuleRelations {} -export interface ConfigSecretsUserModuleRelations {} export interface ConnectedAccountsModuleRelations {} export interface ContentPresetModuleRelations { merkleStoreModule?: MerkleStoreModule | null; @@ -2472,7 +2687,6 @@ export interface FunctionInvocationModuleRelations { } export interface FunctionModuleRelations { functionDeploymentModules?: ConnectionResult; - httpRouteModules?: ConnectionResult; webhookModules?: ConnectionResult; } export interface GraphExecutionModuleRelations { @@ -2483,28 +2697,30 @@ export interface GraphModuleRelations { graphExecutionModules?: ConnectionResult; } export interface HierarchyModuleRelations {} -export interface HttpRouteModuleRelations { - functionModule?: FunctionModule | null; - resourceModule?: ResourceModule | null; - storageModule?: StorageModule | null; -} export interface I18NModuleRelations {} export interface IdentityProvidersModuleRelations {} +export interface ImageModuleRelations {} export interface InferenceLogModuleRelations {} export interface InfraConfigModuleRelations {} export interface InfraSecretsModuleRelations { webhookModules?: ConnectionResult; } export interface IntegrationProvidersModuleRelations {} +export interface InternalConfigModuleRelations {} export interface InternalSecretsModuleRelations {} export interface InvitesModuleRelations {} +export interface K8sAdmissionModuleRelations { + merkleStoreModule?: MerkleStoreModule | null; +} export interface LimitsModuleRelations {} +export interface MachineModuleRelations {} export interface MembershipTypesModuleRelations {} export interface MembershipsModuleRelations {} export interface MerkleStoreModuleRelations { contentPresetModules?: ConnectionResult; dbPresetModules?: ConnectionResult; graphModules?: ConnectionResult; + k8sAdmissionModules?: ConnectionResult; pagesModules?: ConnectionResult; resourceModules?: ConnectionResult; } @@ -2526,11 +2742,12 @@ export interface ProfilesModuleRelations {} export interface RateLimitMetersModuleRelations {} export interface RateLimitsModuleRelations {} export interface RealtimeModuleRelations {} +export interface RefusalLogModuleRelations {} export interface RelationProvisionRelations {} +export interface RepositoryModuleRelations {} export interface ResourceModuleRelations { merkleStoreModule?: MerkleStoreModule | null; namespaceModule?: NamespaceModule | null; - httpRouteModules?: ConnectionResult; } export interface RlsModuleRelations {} export interface RouteModuleRelations { @@ -2549,7 +2766,6 @@ export interface SiteSurfaceModuleRelations { export interface StorageLogModuleRelations {} export interface StorageModuleRelations { fileRefFields?: ConnectionResult; - httpRouteModules?: ConnectionResult; } export interface TransferLogModuleRelations {} export interface UserAuthModuleRelations {} @@ -2579,9 +2795,8 @@ export type BlueprintConstructionWithRelations = BlueprintConstruction & export type BlueprintTemplateWithRelations = BlueprintTemplate & BlueprintTemplateRelations; export type CapabilitiesModuleWithRelations = CapabilitiesModule & CapabilitiesModuleRelations; export type CatalogModuleWithRelations = CatalogModule & CatalogModuleRelations; +export type ClusterModuleWithRelations = ClusterModule & ClusterModuleRelations; export type ComputeLogModuleWithRelations = ComputeLogModule & ComputeLogModuleRelations; -export type ConfigSecretsUserModuleWithRelations = ConfigSecretsUserModule & - ConfigSecretsUserModuleRelations; export type ConnectedAccountsModuleWithRelations = ConnectedAccountsModule & ConnectedAccountsModuleRelations; export type ContentPresetModuleWithRelations = ContentPresetModule & ContentPresetModuleRelations; @@ -2617,19 +2832,23 @@ export type GraphExecutionModuleWithRelations = GraphExecutionModule & GraphExecutionModuleRelations; export type GraphModuleWithRelations = GraphModule & GraphModuleRelations; export type HierarchyModuleWithRelations = HierarchyModule & HierarchyModuleRelations; -export type HttpRouteModuleWithRelations = HttpRouteModule & HttpRouteModuleRelations; export type I18NModuleWithRelations = I18NModule & I18NModuleRelations; export type IdentityProvidersModuleWithRelations = IdentityProvidersModule & IdentityProvidersModuleRelations; +export type ImageModuleWithRelations = ImageModule & ImageModuleRelations; export type InferenceLogModuleWithRelations = InferenceLogModule & InferenceLogModuleRelations; export type InfraConfigModuleWithRelations = InfraConfigModule & InfraConfigModuleRelations; export type InfraSecretsModuleWithRelations = InfraSecretsModule & InfraSecretsModuleRelations; export type IntegrationProvidersModuleWithRelations = IntegrationProvidersModule & IntegrationProvidersModuleRelations; +export type InternalConfigModuleWithRelations = InternalConfigModule & + InternalConfigModuleRelations; export type InternalSecretsModuleWithRelations = InternalSecretsModule & InternalSecretsModuleRelations; export type InvitesModuleWithRelations = InvitesModule & InvitesModuleRelations; +export type K8sAdmissionModuleWithRelations = K8sAdmissionModule & K8sAdmissionModuleRelations; export type LimitsModuleWithRelations = LimitsModule & LimitsModuleRelations; +export type MachineModuleWithRelations = MachineModule & MachineModuleRelations; export type MembershipTypesModuleWithRelations = MembershipTypesModule & MembershipTypesModuleRelations; export type MembershipsModuleWithRelations = MembershipsModule & MembershipsModuleRelations; @@ -2646,7 +2865,9 @@ export type RateLimitMetersModuleWithRelations = RateLimitMetersModule & RateLimitMetersModuleRelations; export type RateLimitsModuleWithRelations = RateLimitsModule & RateLimitsModuleRelations; export type RealtimeModuleWithRelations = RealtimeModule & RealtimeModuleRelations; +export type RefusalLogModuleWithRelations = RefusalLogModule & RefusalLogModuleRelations; export type RelationProvisionWithRelations = RelationProvision & RelationProvisionRelations; +export type RepositoryModuleWithRelations = RepositoryModule & RepositoryModuleRelations; export type ResourceModuleWithRelations = ResourceModule & ResourceModuleRelations; export type RlsModuleWithRelations = RlsModule & RlsModuleRelations; export type RouteModuleWithRelations = RouteModule & RouteModuleRelations; @@ -2679,11 +2900,17 @@ export type AgentModuleSelect = { apiName?: boolean; databaseId?: boolean; defaultCapabilities?: boolean; + defaultVisibility?: boolean; entityField?: boolean; entityTableId?: boolean; + eventTableId?: boolean; + eventTableName?: boolean; hasAgents?: boolean; + hasAttachments?: boolean; hasPlans?: boolean; + hasRepositoryResources?: boolean; hasResources?: boolean; + hasRuns?: boolean; id?: boolean; messageTableId?: boolean; messageTableName?: boolean; @@ -2700,16 +2927,21 @@ export type AgentModuleSelect = { promptsTableName?: boolean; provisions?: boolean; publicSchemaName?: boolean; + resourceRepositoryTableId?: boolean; + resourceRepositoryTableName?: boolean; resourceTableId?: boolean; resourceTableName?: boolean; resources?: boolean; + runTableId?: boolean; + runTableName?: boolean; schemaId?: boolean; scope?: boolean; - shared?: boolean; taskTableId?: boolean; taskTableName?: boolean; threadTableId?: boolean; threadTableName?: boolean; + workspaceTableId?: boolean; + workspaceTableName?: boolean; }; export type ApiSurfaceModuleSelect = { apiName?: boolean; @@ -2742,6 +2974,7 @@ export type AppModuleSelect = { apiName?: boolean; appComponentsTableId?: boolean; appComponentsTableName?: boolean; + appStoreIdentitiesTableName?: boolean; appsTableId?: boolean; appsTableName?: boolean; catalogModuleId?: boolean; @@ -2794,9 +3027,12 @@ export type BillingModuleSelect = { sweepExpiredSubscriptionsFunction?: boolean; }; export type BillingProviderModuleSelect = { + activatePlanSubscriptionFunction?: boolean; apiName?: boolean; billingCustomersTableId?: boolean; billingCustomersTableName?: boolean; + billingDisputesTableId?: boolean; + billingDisputesTableName?: boolean; billingInvoicesTableId?: boolean; billingInvoicesTableName?: boolean; billingPricesTableId?: boolean; @@ -2810,6 +3046,12 @@ export type BillingProviderModuleSelect = { billingWebhookEventsTableId?: boolean; billingWebhookEventsTableName?: boolean; databaseId?: boolean; + getActivePlanPricingFunction?: boolean; + getBillingCustomerFunction?: boolean; + getBillingPriceFunction?: boolean; + getBillingProductFunction?: boolean; + getBillingSubscriptionFunction?: boolean; + getFallbackFreePlanFunction?: boolean; id?: boolean; listPendingUsageSyncFunction?: boolean; markUsageSyncedFunction?: boolean; @@ -2820,9 +3062,15 @@ export type BillingProviderModuleSelect = { processBillingEventFunction?: boolean; productsTableId?: boolean; provider?: boolean; + recordDisputeFunction?: boolean; recordRefundFunction?: boolean; schemaId?: boolean; subscriptionsTableId?: boolean; + sweepOverdueSubscriptionsFunction?: boolean; + upsertBillingCustomerFunction?: boolean; + upsertBillingPriceFunction?: boolean; + upsertBillingProductFunction?: boolean; + upsertBillingSubscriptionFunction?: boolean; upsertInvoiceFunction?: boolean; }; export type BlueprintSelect = { @@ -2935,6 +3183,8 @@ export type CatalogModuleSelect = { apiName?: boolean; apisTableId?: boolean; apisTableName?: boolean; + appStoreIdentitiesTableId?: boolean; + appStoreIdentitiesTableName?: boolean; appsTableId?: boolean; appsTableName?: boolean; bindingsTableId?: boolean; @@ -2949,12 +3199,18 @@ export type CatalogModuleSelect = { functionsTableId?: boolean; functionsTableName?: boolean; id?: boolean; + imagesTableId?: boolean; + imagesTableName?: boolean; + managedDomainsTableId?: boolean; + managedDomainsTableName?: boolean; namespacesTableId?: boolean; namespacesTableName?: boolean; policies?: boolean; privateApiName?: boolean; provisions?: boolean; publicSchemaName?: boolean; + redirectsTableId?: boolean; + redirectsTableName?: boolean; resourceDefinitionsTableId?: boolean; resourceDefinitionsTableName?: boolean; resourceInstallationsTableId?: boolean; @@ -3004,37 +3260,55 @@ export type CatalogModuleSelect = { orderBy?: SiteSurfaceModuleOrderBy[]; }; }; -export type ComputeLogModuleSelect = { - actorFkTableId?: boolean; +export type ClusterModuleSelect = { apiName?: boolean; - computeLogTableId?: boolean; - computeLogTableName?: boolean; + clusterEventsTableId?: boolean; + clusterEventsTableName?: boolean; + clustersTableId?: boolean; + clustersTableName?: boolean; databaseId?: boolean; + databasePlacementsTableId?: boolean; + databasePlacementsTableName?: boolean; + databaseServersTableId?: boolean; + databaseServersTableName?: boolean; + defaultCapabilities?: boolean; entityField?: boolean; - entityFkTableId?: boolean; id?: boolean; - interval?: boolean; + partitionInterval?: boolean; + physicalDatabasesTableId?: boolean; + physicalDatabasesTableName?: boolean; + policies?: boolean; prefix?: boolean; premake?: boolean; privateApiName?: boolean; privateSchemaId?: boolean; privateSchemaName?: boolean; + provisions?: boolean; publicSchemaName?: boolean; retention?: boolean; schemaId?: boolean; scope?: boolean; - usageSummaryTableId?: boolean; - usageSummaryTableName?: boolean; }; -export type ConfigSecretsUserModuleSelect = { +export type ComputeLogModuleSelect = { apiName?: boolean; + computeLogTableId?: boolean; + computeLogTableName?: boolean; databaseId?: boolean; entityField?: boolean; id?: boolean; + interval?: boolean; + prefix?: boolean; + premake?: boolean; privateApiName?: boolean; + privateSchemaId?: boolean; + privateSchemaName?: boolean; + publicSchemaName?: boolean; + retention?: boolean; + rollupFunctionName?: boolean; schemaId?: boolean; - tableId?: boolean; - tableName?: boolean; + scope?: boolean; + usageSummaryTableId?: boolean; + usageSummaryTableName?: boolean; }; export type ConnectedAccountsModuleSelect = { apiName?: boolean; @@ -3115,6 +3389,7 @@ export type DataCapabilitiesFieldSelect = { }; export type DatabaseProvisionModuleSelect = { async?: boolean; + bootstrapActorId?: boolean; bootstrapError?: boolean; bootstrapStatus?: boolean; bootstrapUser?: boolean; @@ -3520,18 +3795,13 @@ export type FunctionModuleSelect = { schedulesTableId?: boolean; schemaId?: boolean; scope?: boolean; + storageKey?: boolean; functionDeploymentModules?: { select: FunctionDeploymentModuleSelect; first?: number; filter?: FunctionDeploymentModuleFilter; orderBy?: FunctionDeploymentModuleOrderBy[]; }; - httpRouteModules?: { - select: HttpRouteModuleSelect; - first?: number; - filter?: HttpRouteModuleFilter; - orderBy?: HttpRouteModuleOrderBy[]; - }; webhookModules?: { select: WebhookModuleSelect; first?: number; @@ -3621,69 +3891,60 @@ export type HierarchyModuleSelect = { sprtTableName?: boolean; usersTableId?: boolean; }; -export type HttpRouteModuleSelect = { +export type I18NModuleSelect = { apiName?: boolean; databaseId?: boolean; - defaultCapabilities?: boolean; - entityField?: boolean; - entityTableId?: boolean; - functionModuleId?: boolean; - httpRoutesTableId?: boolean; - httpRoutesTableName?: boolean; id?: boolean; - policies?: boolean; - prefix?: boolean; privateApiName?: boolean; privateSchemaId?: boolean; - privateSchemaName?: boolean; - provisions?: boolean; - publicSchemaName?: boolean; - resolverFunctionName?: boolean; - resourceModuleId?: boolean; schemaId?: boolean; - scope?: boolean; - storageModuleId?: boolean; - functionModule?: { - select: FunctionModuleSelect; - }; - resourceModule?: { - select: ResourceModuleSelect; - }; - storageModule?: { - select: StorageModuleSelect; - }; + settingsTableId?: boolean; }; -export type I18NModuleSelect = { +export type IdentityProvidersModuleSelect = { apiName?: boolean; databaseId?: boolean; + entityField?: boolean; + entityTableId?: boolean; id?: boolean; + prefix?: boolean; privateApiName?: boolean; privateSchemaId?: boolean; + privateSchemaName?: boolean; + publicSchemaName?: boolean; schemaId?: boolean; - settingsTableId?: boolean; + scope?: boolean; + tableId?: boolean; + tableName?: boolean; }; -export type IdentityProvidersModuleSelect = { +export type ImageModuleSelect = { apiName?: boolean; databaseId?: boolean; + defaultCapabilities?: boolean; entityField?: boolean; entityTableId?: boolean; id?: boolean; + imageGrantsTableId?: boolean; + imageGrantsTableName?: boolean; + imagesTableId?: boolean; + imagesTableName?: boolean; + policies?: boolean; prefix?: boolean; privateApiName?: boolean; privateSchemaId?: boolean; privateSchemaName?: boolean; + provisions?: boolean; publicSchemaName?: boolean; + registriesTableId?: boolean; + registriesTableName?: boolean; + registryGrantsTableId?: boolean; + registryGrantsTableName?: boolean; schemaId?: boolean; scope?: boolean; - tableId?: boolean; - tableName?: boolean; }; export type InferenceLogModuleSelect = { - actorFkTableId?: boolean; apiName?: boolean; databaseId?: boolean; entityField?: boolean; - entityFkTableId?: boolean; id?: boolean; inferenceLogTableId?: boolean; inferenceLogTableName?: boolean; @@ -3695,6 +3956,7 @@ export type InferenceLogModuleSelect = { privateSchemaName?: boolean; publicSchemaName?: boolean; retention?: boolean; + rollupFunctionName?: boolean; schemaId?: boolean; scope?: boolean; usageSummaryTableId?: boolean; @@ -3758,6 +4020,24 @@ export type IntegrationProvidersModuleSelect = { tableId?: boolean; tableName?: boolean; }; +export type InternalConfigModuleSelect = { + apiName?: boolean; + databaseId?: boolean; + entityField?: boolean; + entityTableId?: boolean; + id?: boolean; + internalConfigTableId?: boolean; + internalConfigTableName?: boolean; + policies?: boolean; + prefix?: boolean; + privateApiName?: boolean; + privateSchemaId?: boolean; + privateSchemaName?: boolean; + provisions?: boolean; + publicSchemaName?: boolean; + schemaId?: boolean; + scope?: boolean; +}; export type InternalSecretsModuleSelect = { apiName?: boolean; databaseId?: boolean; @@ -3797,6 +4077,29 @@ export type InvitesModuleSelect = { submitInviteCodeFunction?: boolean; usersTableId?: boolean; }; +export type K8sAdmissionModuleSelect = { + apiName?: boolean; + createdAt?: boolean; + databaseId?: boolean; + entityTableId?: boolean; + id?: boolean; + k8sResourceKindsTableId?: boolean; + k8sSpecRulesTableId?: 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 LimitsModuleSelect = { actorTableId?: boolean; aggregateTableId?: boolean; @@ -3837,7 +4140,33 @@ export type LimitsModuleSelect = { tableId?: boolean; tableName?: boolean; }; -export type MembershipTypesModuleSelect = { +export type MachineModuleSelect = { + apiName?: boolean; + databaseId?: boolean; + defaultCapabilities?: boolean; + entityField?: boolean; + entityTableId?: boolean; + id?: boolean; + machineMessagesTableId?: boolean; + machineMessagesTableName?: boolean; + machineSessionsTableId?: boolean; + machineSessionsTableName?: boolean; + machinesTableId?: boolean; + machinesTableName?: boolean; + partitionInterval?: boolean; + policies?: boolean; + prefix?: boolean; + premake?: boolean; + privateApiName?: boolean; + privateSchemaId?: boolean; + privateSchemaName?: boolean; + provisions?: boolean; + publicSchemaName?: boolean; + retention?: boolean; + schemaId?: boolean; + scope?: boolean; +}; +export type MembershipTypesModuleSelect = { databaseId?: boolean; id?: boolean; schemaId?: boolean; @@ -3895,6 +4224,7 @@ export type MerkleStoreModuleSelect = { createdAt?: boolean; databaseId?: boolean; entityField?: boolean; + entityTableId?: boolean; functionPrefix?: boolean; id?: boolean; objectTableId?: boolean; @@ -3925,6 +4255,12 @@ export type MerkleStoreModuleSelect = { filter?: GraphModuleFilter; orderBy?: GraphModuleOrderBy[]; }; + k8sAdmissionModules?: { + select: K8sAdmissionModuleSelect; + first?: number; + filter?: K8sAdmissionModuleFilter; + orderBy?: K8sAdmissionModuleOrderBy[]; + }; pagesModules?: { select: PagesModuleSelect; first?: number; @@ -4027,12 +4363,17 @@ export type PagesModuleSelect = { pagesTableId?: boolean; policies?: boolean; prefix?: boolean; + previewCommitFunctionName?: boolean; + previewSetFunctionName?: boolean; + previewTokenMintFunctionName?: boolean; + previewTokenVerifierFunctionName?: boolean; privateApiName?: boolean; privateSchemaId?: boolean; privateSchemaName?: boolean; provisions?: boolean; publicSchemaId?: boolean; publicSchemaName?: boolean; + releaseManifestFunctionName?: boolean; scope?: boolean; siteSurfaceModuleId?: boolean; sitesTableId?: boolean; @@ -4092,10 +4433,12 @@ export type PrincipalAuthModuleSelect = { principalScopeOverridesTableId?: boolean; principalsTableId?: boolean; principalsTableName?: boolean; + privateSchemaId?: boolean; revokeOrgApiKeyFunction?: boolean; schemaId?: boolean; sessionCredentialsTableId?: boolean; sessionsTableId?: boolean; + sweepExpiredPrincipalsFunction?: boolean; usersTableId?: boolean; }; export type ProfilesModuleSelect = { @@ -4173,6 +4516,31 @@ export type RealtimeModuleSelect = { sourceRegistryTableId?: boolean; subscriptionsSchemaId?: boolean; }; +export type RefusalLogModuleSelect = { + apiName?: boolean; + databaseId?: boolean; + entityField?: boolean; + id?: boolean; + logInterval?: boolean; + logPremake?: boolean; + logRetention?: boolean; + logTableId?: boolean; + logTableName?: boolean; + prefix?: boolean; + privateApiName?: boolean; + privateSchemaId?: boolean; + privateSchemaName?: boolean; + publicSchemaName?: boolean; + recordRefusalsFunction?: boolean; + rollupRefusalUsageSummaryFunction?: boolean; + schemaId?: boolean; + scope?: boolean; + summaryInterval?: boolean; + summaryPremake?: boolean; + summaryRetention?: boolean; + summaryTableId?: boolean; + summaryTableName?: boolean; +}; export type RelationProvisionSelect = { apiRequired?: boolean; createIndex?: boolean; @@ -4199,8 +4567,52 @@ export type RelationProvisionSelect = { targetTableId?: boolean; useCompositeKey?: boolean; }; +export type RepositoryModuleSelect = { + apiName?: boolean; + buildStepsTableId?: boolean; + buildStepsTableName?: boolean; + buildsTableId?: boolean; + buildsTableName?: boolean; + databaseId?: boolean; + defaultCapabilities?: boolean; + entityField?: boolean; + entityTableId?: boolean; + hasAttachments?: boolean; + hasBuilds?: boolean; + id?: boolean; + policies?: boolean; + prefix?: boolean; + privateApiName?: boolean; + privateSchemaId?: boolean; + privateSchemaName?: boolean; + proposalCommentsTableId?: boolean; + proposalCommentsTableName?: boolean; + proposalFileViewsTableId?: boolean; + proposalFileViewsTableName?: boolean; + proposalReactionsTableId?: boolean; + proposalReactionsTableName?: boolean; + proposalReviewsTableId?: boolean; + proposalReviewsTableName?: boolean; + proposalsTableId?: boolean; + proposalsTableName?: boolean; + provisions?: boolean; + publicSchemaName?: boolean; + repositoriesTableId?: boolean; + repositoriesTableName?: boolean; + repositoryEventsTableId?: boolean; + repositoryEventsTableName?: boolean; + repositoryRequiredChecksTableId?: boolean; + repositoryRequiredChecksTableName?: boolean; + schemaId?: boolean; + scope?: boolean; + search?: boolean; + workflowsTableId?: boolean; + workflowsTableName?: boolean; +}; export type ResourceModuleSelect = { apiName?: boolean; + builderBindingsTableId?: boolean; + builderBindingsTableName?: boolean; databaseId?: boolean; defaultCapabilities?: boolean; entityField?: boolean; @@ -4216,6 +4628,8 @@ export type ResourceModuleSelect = { privateSchemaName?: boolean; provisions?: boolean; publicSchemaName?: boolean; + registryBindingsTableId?: boolean; + registryBindingsTableName?: boolean; requirementsStateViewName?: boolean; resolvedRequirementsViewName?: boolean; resourceBillingRollupFunction?: boolean; @@ -4242,12 +4656,6 @@ export type ResourceModuleSelect = { namespaceModule?: { select: NamespaceModuleSelect; }; - httpRouteModules?: { - select: HttpRouteModuleSelect; - first?: number; - filter?: HttpRouteModuleFilter; - orderBy?: HttpRouteModuleOrderBy[]; - }; }; export type RlsModuleSelect = { apiName?: boolean; @@ -4284,6 +4692,8 @@ export type RouteModuleSelect = { privateSchemaName?: boolean; provisions?: boolean; publicSchemaName?: boolean; + redirectsTableId?: boolean; + redirectsTableName?: boolean; resolverFunctionName?: boolean; routeBindingsTableId?: boolean; routeBindingsTableName?: boolean; @@ -4291,6 +4701,8 @@ export type RouteModuleSelect = { routesTableName?: boolean; schemaId?: boolean; scope?: boolean; + servingSiteField?: boolean; + storageKey?: boolean; catalogModule?: { select: CatalogModuleSelect; }; @@ -4310,8 +4722,10 @@ export type SecureTableProvisionSelect = { fields?: boolean; grants?: boolean; id?: boolean; + module?: boolean; nodes?: boolean; outFields?: boolean; + owns?: boolean; policies?: boolean; schemaId?: boolean; tableId?: boolean; @@ -4366,12 +4780,15 @@ export type SiteSurfaceModuleSelect = { siteMetadataTableName?: boolean; siteModulesTableId?: boolean; siteModulesTableName?: boolean; + siteReleasesTableId?: boolean; + siteReleasesTableName?: boolean; siteThemesTableId?: boolean; siteThemesTableName?: boolean; siteWebConfigTableId?: boolean; siteWebConfigTableName?: boolean; sitesTableId?: boolean; sitesTableName?: boolean; + storageKey?: boolean; catalogModule?: { select: CatalogModuleSelect; }; @@ -4389,11 +4806,9 @@ export type SiteSurfaceModuleSelect = { }; }; export type StorageLogModuleSelect = { - actorFkTableId?: boolean; apiName?: boolean; databaseId?: boolean; entityField?: boolean; - entityFkTableId?: boolean; id?: boolean; interval?: boolean; prefix?: boolean; @@ -4403,6 +4818,7 @@ export type StorageLogModuleSelect = { privateSchemaName?: boolean; publicSchemaName?: boolean; retention?: boolean; + rollupFunctionName?: boolean; schemaId?: boolean; scope?: boolean; storageLogTableId?: boolean; @@ -4435,6 +4851,7 @@ export type StorageModuleSelect = { hasPathShares?: boolean; hasVersioning?: boolean; id?: boolean; + key?: boolean; maxBulkFiles?: boolean; maxBulkTotalSize?: boolean; maxFilenameLength?: boolean; @@ -4458,19 +4875,11 @@ export type StorageModuleSelect = { filter?: FileRefFieldFilter; orderBy?: FileRefFieldOrderBy[]; }; - httpRouteModules?: { - select: HttpRouteModuleSelect; - first?: number; - filter?: HttpRouteModuleFilter; - orderBy?: HttpRouteModuleOrderBy[]; - }; }; export type TransferLogModuleSelect = { - actorFkTableId?: boolean; apiName?: boolean; databaseId?: boolean; entityField?: boolean; - entityFkTableId?: boolean; id?: boolean; interval?: boolean; prefix?: boolean; @@ -4480,6 +4889,7 @@ export type TransferLogModuleSelect = { privateSchemaName?: boolean; publicSchemaName?: boolean; retention?: boolean; + rollupFunctionName?: boolean; schemaId?: boolean; scope?: boolean; transferLogTableId?: boolean; @@ -4500,8 +4910,10 @@ export type UserAuthModuleSelect = { forgotPasswordFunction?: boolean; id?: boolean; privateApiName?: boolean; + privateSchemaId?: boolean; requestCrossOriginTokenFunction?: boolean; resetPasswordFunction?: boolean; + revokeSessionTreeFunction?: boolean; schemaId?: boolean; secretsTableId?: boolean; sendAccountDeletionEmailFunction?: boolean; @@ -4513,6 +4925,7 @@ export type UserAuthModuleSelect = { signInFunction?: boolean; signOutFunction?: boolean; signUpFunction?: boolean; + sweepExpiredSessionsFunction?: boolean; usersTableId?: boolean; verifyEmailFunction?: boolean; verifyPasswordFunction?: boolean; @@ -4643,16 +5056,28 @@ export interface AgentModuleFilter { databaseId?: UUIDFilter; /** Filter by the object’s `defaultCapabilities` field. */ defaultCapabilities?: StringListFilter; + /** Filter by the object’s `defaultVisibility` field. */ + defaultVisibility?: StringFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ entityTableId?: UUIDFilter; + /** Filter by the object’s `eventTableId` field. */ + eventTableId?: UUIDFilter; + /** Filter by the object’s `eventTableName` field. */ + eventTableName?: StringFilter; /** Filter by the object’s `hasAgents` field. */ hasAgents?: BooleanFilter; + /** Filter by the object’s `hasAttachments` field. */ + hasAttachments?: BooleanFilter; /** Filter by the object’s `hasPlans` field. */ hasPlans?: BooleanFilter; + /** Filter by the object’s `hasRepositoryResources` field. */ + hasRepositoryResources?: BooleanFilter; /** Filter by the object’s `hasResources` field. */ hasResources?: BooleanFilter; + /** Filter by the object’s `hasRuns` field. */ + hasRuns?: BooleanFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `messageTableId` field. */ @@ -4689,18 +5114,24 @@ export interface AgentModuleFilter { provisions?: JSONFilter; /** Filter by the object’s `publicSchemaName` field. */ publicSchemaName?: StringFilter; + /** Filter by the object’s `resourceRepositoryTableId` field. */ + resourceRepositoryTableId?: UUIDFilter; + /** Filter by the object’s `resourceRepositoryTableName` field. */ + resourceRepositoryTableName?: StringFilter; /** Filter by the object’s `resourceTableId` field. */ resourceTableId?: UUIDFilter; /** Filter by the object’s `resourceTableName` field. */ resourceTableName?: StringFilter; /** Filter by the object’s `resources` field. */ resources?: JSONFilter; + /** Filter by the object’s `runTableId` field. */ + runTableId?: UUIDFilter; + /** Filter by the object’s `runTableName` field. */ + runTableName?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `scope` field. */ scope?: StringFilter; - /** Filter by the object’s `shared` field. */ - shared?: BooleanFilter; /** Filter by the object’s `taskTableId` field. */ taskTableId?: UUIDFilter; /** Filter by the object’s `taskTableName` field. */ @@ -4709,6 +5140,10 @@ export interface AgentModuleFilter { threadTableId?: UUIDFilter; /** Filter by the object’s `threadTableName` field. */ threadTableName?: StringFilter; + /** Filter by the object’s `workspaceTableId` field. */ + workspaceTableId?: UUIDFilter; + /** Filter by the object’s `workspaceTableName` field. */ + workspaceTableName?: StringFilter; } export interface ApiSurfaceModuleFilter { /** Checks for all expressions in this list. */ @@ -4775,6 +5210,8 @@ export interface AppModuleFilter { appComponentsTableId?: UUIDFilter; /** Filter by the object’s `appComponentsTableName` field. */ appComponentsTableName?: StringFilter; + /** Filter by the object’s `appStoreIdentitiesTableName` field. */ + appStoreIdentitiesTableName?: StringFilter; /** Filter by the object’s `appsTableId` field. */ appsTableId?: UUIDFilter; /** Filter by the object’s `appsTableName` field. */ @@ -4883,6 +5320,8 @@ export interface BillingModuleFilter { sweepExpiredSubscriptionsFunction?: StringFilter; } export interface BillingProviderModuleFilter { + /** Filter by the object’s `activatePlanSubscriptionFunction` field. */ + activatePlanSubscriptionFunction?: StringFilter; /** Checks for all expressions in this list. */ and?: BillingProviderModuleFilter[]; /** Filter by the object’s `apiName` field. */ @@ -4891,6 +5330,10 @@ export interface BillingProviderModuleFilter { billingCustomersTableId?: UUIDFilter; /** Filter by the object’s `billingCustomersTableName` field. */ billingCustomersTableName?: StringFilter; + /** Filter by the object’s `billingDisputesTableId` field. */ + billingDisputesTableId?: UUIDFilter; + /** Filter by the object’s `billingDisputesTableName` field. */ + billingDisputesTableName?: StringFilter; /** Filter by the object’s `billingInvoicesTableId` field. */ billingInvoicesTableId?: UUIDFilter; /** Filter by the object’s `billingInvoicesTableName` field. */ @@ -4917,6 +5360,18 @@ export interface BillingProviderModuleFilter { billingWebhookEventsTableName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `getActivePlanPricingFunction` field. */ + getActivePlanPricingFunction?: StringFilter; + /** Filter by the object’s `getBillingCustomerFunction` field. */ + getBillingCustomerFunction?: StringFilter; + /** Filter by the object’s `getBillingPriceFunction` field. */ + getBillingPriceFunction?: StringFilter; + /** Filter by the object’s `getBillingProductFunction` field. */ + getBillingProductFunction?: StringFilter; + /** Filter by the object’s `getBillingSubscriptionFunction` field. */ + getBillingSubscriptionFunction?: StringFilter; + /** Filter by the object’s `getFallbackFreePlanFunction` field. */ + getFallbackFreePlanFunction?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `listPendingUsageSyncFunction` field. */ @@ -4941,12 +5396,24 @@ export interface BillingProviderModuleFilter { productsTableId?: UUIDFilter; /** Filter by the object’s `provider` field. */ provider?: StringFilter; + /** Filter by the object’s `recordDisputeFunction` field. */ + recordDisputeFunction?: 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 `sweepOverdueSubscriptionsFunction` field. */ + sweepOverdueSubscriptionsFunction?: StringFilter; + /** Filter by the object’s `upsertBillingCustomerFunction` field. */ + upsertBillingCustomerFunction?: StringFilter; + /** Filter by the object’s `upsertBillingPriceFunction` field. */ + upsertBillingPriceFunction?: StringFilter; + /** Filter by the object’s `upsertBillingProductFunction` field. */ + upsertBillingProductFunction?: StringFilter; + /** Filter by the object’s `upsertBillingSubscriptionFunction` field. */ + upsertBillingSubscriptionFunction?: StringFilter; /** Filter by the object’s `upsertInvoiceFunction` field. */ upsertInvoiceFunction?: StringFilter; } @@ -5155,6 +5622,10 @@ export interface CatalogModuleFilter { appModules?: CatalogModuleToManyAppModuleFilter; /** `appModules` exist. */ appModulesExist?: boolean; + /** Filter by the object’s `appStoreIdentitiesTableId` field. */ + appStoreIdentitiesTableId?: UUIDFilter; + /** Filter by the object’s `appStoreIdentitiesTableName` field. */ + appStoreIdentitiesTableName?: StringFilter; /** Filter by the object’s `appsTableId` field. */ appsTableId?: UUIDFilter; /** Filter by the object’s `appsTableName` field. */ @@ -5187,6 +5658,14 @@ export interface CatalogModuleFilter { functionsTableName?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `imagesTableId` field. */ + imagesTableId?: UUIDFilter; + /** Filter by the object’s `imagesTableName` field. */ + imagesTableName?: StringFilter; + /** Filter by the object’s `managedDomainsTableId` field. */ + managedDomainsTableId?: UUIDFilter; + /** Filter by the object’s `managedDomainsTableName` field. */ + managedDomainsTableName?: StringFilter; /** Filter by the object’s `namespacesTableId` field. */ namespacesTableId?: UUIDFilter; /** Filter by the object’s `namespacesTableName` field. */ @@ -5203,6 +5682,10 @@ export interface CatalogModuleFilter { provisions?: JSONFilter; /** Filter by the object’s `publicSchemaName` field. */ publicSchemaName?: StringFilter; + /** Filter by the object’s `redirectsTableId` field. */ + redirectsTableId?: UUIDFilter; + /** Filter by the object’s `redirectsTableName` field. */ + redirectsTableName?: StringFilter; /** Filter by the object’s `resourceDefinitionsTableId` field. */ resourceDefinitionsTableId?: UUIDFilter; /** Filter by the object’s `resourceDefinitionsTableName` field. */ @@ -5248,31 +5731,47 @@ export interface CatalogModuleFilter { /** Filter by the object’s `sitesWebConfigTableName` field. */ sitesWebConfigTableName?: StringFilter; } -export interface ComputeLogModuleFilter { - /** Filter by the object’s `actorFkTableId` field. */ - actorFkTableId?: UUIDFilter; +export interface ClusterModuleFilter { /** Checks for all expressions in this list. */ - and?: ComputeLogModuleFilter[]; + and?: ClusterModuleFilter[]; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; - /** Filter by the object’s `computeLogTableId` field. */ - computeLogTableId?: UUIDFilter; - /** Filter by the object’s `computeLogTableName` field. */ - computeLogTableName?: StringFilter; + /** Filter by the object’s `clusterEventsTableId` field. */ + clusterEventsTableId?: UUIDFilter; + /** Filter by the object’s `clusterEventsTableName` field. */ + clusterEventsTableName?: StringFilter; + /** Filter by the object’s `clustersTableId` field. */ + clustersTableId?: UUIDFilter; + /** Filter by the object’s `clustersTableName` field. */ + clustersTableName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `databasePlacementsTableId` field. */ + databasePlacementsTableId?: UUIDFilter; + /** Filter by the object’s `databasePlacementsTableName` field. */ + databasePlacementsTableName?: StringFilter; + /** Filter by the object’s `databaseServersTableId` field. */ + databaseServersTableId?: UUIDFilter; + /** Filter by the object’s `databaseServersTableName` field. */ + databaseServersTableName?: StringFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; - /** Filter by the object’s `entityFkTableId` field. */ - entityFkTableId?: UUIDFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `interval` field. */ - interval?: StringFilter; /** Negates the expression. */ - not?: ComputeLogModuleFilter; + not?: ClusterModuleFilter; /** Checks for any expressions in this list. */ - or?: ComputeLogModuleFilter[]; + or?: ClusterModuleFilter[]; + /** Filter by the object’s `partitionInterval` field. */ + partitionInterval?: StringFilter; + /** Filter by the object’s `physicalDatabasesTableId` field. */ + physicalDatabasesTableId?: UUIDFilter; + /** Filter by the object’s `physicalDatabasesTableName` field. */ + physicalDatabasesTableName?: StringFilter; + /** Filter by the object’s `policies` field. */ + policies?: JSONFilter; /** Filter by the object’s `prefix` field. */ prefix?: StringFilter; /** Filter by the object’s `premake` field. */ @@ -5283,6 +5782,8 @@ export interface ComputeLogModuleFilter { 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 `publicSchemaName` field. */ publicSchemaName?: StringFilter; /** Filter by the object’s `retention` field. */ @@ -5291,34 +5792,52 @@ export interface ComputeLogModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `scope` field. */ scope?: StringFilter; - /** Filter by the object’s `usageSummaryTableId` field. */ - usageSummaryTableId?: UUIDFilter; - /** Filter by the object’s `usageSummaryTableName` field. */ - usageSummaryTableName?: StringFilter; } -export interface ConfigSecretsUserModuleFilter { +export interface ComputeLogModuleFilter { /** Checks for all expressions in this list. */ - and?: ConfigSecretsUserModuleFilter[]; + and?: ComputeLogModuleFilter[]; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; + /** Filter by the object’s `computeLogTableId` field. */ + computeLogTableId?: UUIDFilter; + /** Filter by the object’s `computeLogTableName` field. */ + computeLogTableName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `interval` field. */ + interval?: StringFilter; /** Negates the expression. */ - not?: ConfigSecretsUserModuleFilter; + not?: ComputeLogModuleFilter; /** Checks for any expressions in this list. */ - or?: ConfigSecretsUserModuleFilter[]; + or?: ComputeLogModuleFilter[]; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `premake` field. */ + premake?: IntFilter; /** 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 `retention` field. */ + retention?: StringFilter; + /** Filter by the object’s `rollupFunctionName` field. */ + rollupFunctionName?: StringFilter; /** 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; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `usageSummaryTableId` field. */ + usageSummaryTableId?: UUIDFilter; + /** Filter by the object’s `usageSummaryTableName` field. */ + usageSummaryTableName?: StringFilter; } export interface ConnectedAccountsModuleFilter { /** Checks for all expressions in this list. */ @@ -5491,6 +6010,8 @@ export interface DatabaseProvisionModuleFilter { and?: DatabaseProvisionModuleFilter[]; /** Filter by the object’s `async` field. */ async?: BooleanFilter; + /** Filter by the object’s `bootstrapActorId` field. */ + bootstrapActorId?: UUIDFilter; /** Filter by the object’s `bootstrapError` field. */ bootstrapError?: StringFilter; /** Filter by the object’s `bootstrapStatus` field. */ @@ -6319,10 +6840,6 @@ export interface FunctionModuleFilter { functionDeploymentModulesExist?: boolean; /** Filter by the object’s `hasCron` field. */ hasCron?: BooleanFilter; - /** Filter by the object’s `httpRouteModules` relation. */ - httpRouteModules?: FunctionModuleToManyHttpRouteModuleFilter; - /** `httpRouteModules` exist. */ - httpRouteModulesExist?: boolean; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Negates the expression. */ @@ -6349,6 +6866,8 @@ export interface FunctionModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `scope` field. */ scope?: StringFilter; + /** Filter by the object’s `storageKey` field. */ + storageKey?: StringFilter; /** Filter by the object’s `webhookModules` relation. */ webhookModules?: FunctionModuleToManyWebhookModuleFilter; /** `webhookModules` exist. */ @@ -6514,107 +7033,93 @@ export interface HierarchyModuleFilter { /** Filter by the object’s `usersTableId` field. */ usersTableId?: UUIDFilter; } -export interface HttpRouteModuleFilter { +export interface I18NModuleFilter { /** Checks for all expressions in this list. */ - and?: HttpRouteModuleFilter[]; + and?: I18NModuleFilter[]; /** 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 `entityField` field. */ - entityField?: StringFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; - /** Filter by the object’s `functionModule` relation. */ - functionModule?: FunctionModuleFilter; - /** A related `functionModule` exists. */ - functionModuleExists?: boolean; - /** Filter by the object’s `functionModuleId` field. */ - functionModuleId?: UUIDFilter; - /** Filter by the object’s `httpRoutesTableId` field. */ - httpRoutesTableId?: UUIDFilter; - /** Filter by the object’s `httpRoutesTableName` field. */ - httpRoutesTableName?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Negates the expression. */ - not?: HttpRouteModuleFilter; + not?: I18NModuleFilter; /** Checks for any expressions in this list. */ - or?: HttpRouteModuleFilter[]; - /** Filter by the object’s `policies` field. */ - policies?: JSONFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; + or?: I18NModuleFilter[]; /** 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 `publicSchemaName` field. */ - publicSchemaName?: StringFilter; - /** Filter by the object’s `resolverFunctionName` field. */ - resolverFunctionName?: StringFilter; - /** Filter by the object’s `resourceModule` relation. */ - resourceModule?: ResourceModuleFilter; - /** A related `resourceModule` exists. */ - resourceModuleExists?: boolean; - /** Filter by the object’s `resourceModuleId` field. */ - resourceModuleId?: UUIDFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; - /** Filter by the object’s `storageModule` relation. */ - storageModule?: StorageModuleFilter; - /** A related `storageModule` exists. */ - storageModuleExists?: boolean; - /** Filter by the object’s `storageModuleId` field. */ - storageModuleId?: UUIDFilter; + /** Filter by the object’s `settingsTableId` field. */ + settingsTableId?: UUIDFilter; } -export interface I18NModuleFilter { +export interface IdentityProvidersModuleFilter { /** Checks for all expressions in this list. */ - and?: I18NModuleFilter[]; + and?: IdentityProvidersModuleFilter[]; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; /** 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?: I18NModuleFilter; + not?: IdentityProvidersModuleFilter; /** Checks for any expressions in this list. */ - or?: I18NModuleFilter[]; + or?: IdentityProvidersModuleFilter[]; + /** 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 `settingsTableId` field. */ - settingsTableId?: 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 IdentityProvidersModuleFilter { +export interface ImageModuleFilter { /** Checks for all expressions in this list. */ - and?: IdentityProvidersModuleFilter[]; + and?: ImageModuleFilter[]; /** 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 `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ entityTableId?: UUIDFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `imageGrantsTableId` field. */ + imageGrantsTableId?: UUIDFilter; + /** Filter by the object’s `imageGrantsTableName` field. */ + imageGrantsTableName?: StringFilter; + /** Filter by the object’s `imagesTableId` field. */ + imagesTableId?: UUIDFilter; + /** Filter by the object’s `imagesTableName` field. */ + imagesTableName?: StringFilter; /** Negates the expression. */ - not?: IdentityProvidersModuleFilter; + not?: ImageModuleFilter; /** Checks for any expressions in this list. */ - or?: IdentityProvidersModuleFilter[]; + or?: ImageModuleFilter[]; + /** 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. */ @@ -6623,20 +7128,24 @@ export interface IdentityProvidersModuleFilter { 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 `publicSchemaName` field. */ publicSchemaName?: StringFilter; + /** Filter by the object’s `registriesTableId` field. */ + registriesTableId?: UUIDFilter; + /** Filter by the object’s `registriesTableName` field. */ + registriesTableName?: StringFilter; + /** Filter by the object’s `registryGrantsTableId` field. */ + registryGrantsTableId?: UUIDFilter; + /** Filter by the object’s `registryGrantsTableName` field. */ + registryGrantsTableName?: 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 InferenceLogModuleFilter { - /** Filter by the object’s `actorFkTableId` field. */ - actorFkTableId?: UUIDFilter; /** Checks for all expressions in this list. */ and?: InferenceLogModuleFilter[]; /** Filter by the object’s `apiName` field. */ @@ -6645,8 +7154,6 @@ export interface InferenceLogModuleFilter { databaseId?: UUIDFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; - /** Filter by the object’s `entityFkTableId` field. */ - entityFkTableId?: UUIDFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `inferenceLogTableId` field. */ @@ -6673,6 +7180,8 @@ export interface InferenceLogModuleFilter { publicSchemaName?: StringFilter; /** Filter by the object’s `retention` field. */ retention?: StringFilter; + /** Filter by the object’s `rollupFunctionName` field. */ + rollupFunctionName?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `scope` field. */ @@ -6802,6 +7311,46 @@ export interface IntegrationProvidersModuleFilter { /** Filter by the object’s `tableName` field. */ tableName?: StringFilter; } +export interface InternalConfigModuleFilter { + /** Checks for all expressions in this list. */ + and?: InternalConfigModuleFilter[]; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** 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; + /** Filter by the object’s `internalConfigTableId` field. */ + internalConfigTableId?: UUIDFilter; + /** Filter by the object’s `internalConfigTableName` field. */ + internalConfigTableName?: StringFilter; + /** Negates the expression. */ + not?: InternalConfigModuleFilter; + /** Checks for any expressions in this list. */ + or?: InternalConfigModuleFilter[]; + /** 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 `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; +} export interface InternalSecretsModuleFilter { /** Checks for all expressions in this list. */ and?: InternalSecretsModuleFilter[]; @@ -6888,6 +7437,52 @@ export interface InvitesModuleFilter { /** Filter by the object’s `usersTableId` field. */ usersTableId?: UUIDFilter; } +export interface K8sAdmissionModuleFilter { + /** Checks for all expressions in this list. */ + and?: K8sAdmissionModuleFilter[]; + /** 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 `k8sResourceKindsTableId` field. */ + k8sResourceKindsTableId?: UUIDFilter; + /** Filter by the object’s `k8sSpecRulesTableId` field. */ + k8sSpecRulesTableId?: UUIDFilter; + /** Filter by the object’s `merkleStoreModule` relation. */ + merkleStoreModule?: MerkleStoreModuleFilter; + /** Filter by the object’s `merkleStoreModuleId` field. */ + merkleStoreModuleId?: UUIDFilter; + /** Negates the expression. */ + not?: K8sAdmissionModuleFilter; + /** Checks for any expressions in this list. */ + or?: K8sAdmissionModuleFilter[]; + /** 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 LimitsModuleFilter { /** Filter by the object’s `actorTableId` field. */ actorTableId?: UUIDFilter; @@ -6972,9 +7567,65 @@ export interface LimitsModuleFilter { /** Filter by the object’s `tableName` field. */ tableName?: StringFilter; } -export interface MembershipTypesModuleFilter { +export interface MachineModuleFilter { /** Checks for all expressions in this list. */ - and?: MembershipTypesModuleFilter[]; + and?: MachineModuleFilter[]; + /** 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 `entityField` field. */ + entityField?: StringFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `machineMessagesTableId` field. */ + machineMessagesTableId?: UUIDFilter; + /** Filter by the object’s `machineMessagesTableName` field. */ + machineMessagesTableName?: StringFilter; + /** Filter by the object’s `machineSessionsTableId` field. */ + machineSessionsTableId?: UUIDFilter; + /** Filter by the object’s `machineSessionsTableName` field. */ + machineSessionsTableName?: StringFilter; + /** Filter by the object’s `machinesTableId` field. */ + machinesTableId?: UUIDFilter; + /** Filter by the object’s `machinesTableName` field. */ + machinesTableName?: StringFilter; + /** Negates the expression. */ + not?: MachineModuleFilter; + /** Checks for any expressions in this list. */ + or?: MachineModuleFilter[]; + /** Filter by the object’s `partitionInterval` field. */ + partitionInterval?: StringFilter; + /** Filter by the object’s `policies` field. */ + policies?: JSONFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `premake` field. */ + premake?: IntFilter; + /** 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 `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `retention` field. */ + retention?: StringFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; +} +export interface MembershipTypesModuleFilter { + /** Checks for all expressions in this list. */ + and?: MembershipTypesModuleFilter[]; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; /** Filter by the object’s `id` field. */ @@ -7105,6 +7756,8 @@ export interface MerkleStoreModuleFilter { dbPresetModulesExist?: boolean; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; /** Filter by the object’s `functionPrefix` field. */ functionPrefix?: StringFilter; /** Filter by the object’s `graphModules` relation. */ @@ -7113,6 +7766,10 @@ export interface MerkleStoreModuleFilter { graphModulesExist?: boolean; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `k8sAdmissionModules` relation. */ + k8sAdmissionModules?: MerkleStoreModuleToManyK8sAdmissionModuleFilter; + /** `k8sAdmissionModules` exist. */ + k8sAdmissionModulesExist?: boolean; /** Negates the expression. */ not?: MerkleStoreModuleFilter; /** Filter by the object’s `objectTableId` field. */ @@ -7319,6 +7976,14 @@ export interface PagesModuleFilter { policies?: JSONFilter; /** Filter by the object’s `prefix` field. */ prefix?: StringFilter; + /** Filter by the object’s `previewCommitFunctionName` field. */ + previewCommitFunctionName?: StringFilter; + /** Filter by the object’s `previewSetFunctionName` field. */ + previewSetFunctionName?: StringFilter; + /** Filter by the object’s `previewTokenMintFunctionName` field. */ + previewTokenMintFunctionName?: StringFilter; + /** Filter by the object’s `previewTokenVerifierFunctionName` field. */ + previewTokenVerifierFunctionName?: StringFilter; /** Filter by the object’s `privateApiName` field. */ privateApiName?: StringFilter; /** Filter by the object’s `privateSchemaId` field. */ @@ -7331,6 +7996,8 @@ export interface PagesModuleFilter { publicSchemaId?: UUIDFilter; /** Filter by the object’s `publicSchemaName` field. */ publicSchemaName?: StringFilter; + /** Filter by the object’s `releaseManifestFunctionName` field. */ + releaseManifestFunctionName?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: StringFilter; /** Filter by the object’s `siteSurfaceModule` relation. */ @@ -7453,6 +8120,8 @@ export interface PrincipalAuthModuleFilter { principalsTableId?: UUIDFilter; /** Filter by the object’s `principalsTableName` field. */ principalsTableName?: StringFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; /** Filter by the object’s `revokeOrgApiKeyFunction` field. */ revokeOrgApiKeyFunction?: StringFilter; /** Filter by the object’s `schemaId` field. */ @@ -7461,6 +8130,8 @@ export interface PrincipalAuthModuleFilter { sessionCredentialsTableId?: UUIDFilter; /** Filter by the object’s `sessionsTableId` field. */ sessionsTableId?: UUIDFilter; + /** Filter by the object’s `sweepExpiredPrincipalsFunction` field. */ + sweepExpiredPrincipalsFunction?: StringFilter; /** Filter by the object’s `usersTableId` field. */ usersTableId?: UUIDFilter; } @@ -7630,6 +8301,60 @@ export interface RealtimeModuleFilter { /** Filter by the object’s `subscriptionsSchemaId` field. */ subscriptionsSchemaId?: UUIDFilter; } +export interface RefusalLogModuleFilter { + /** Checks for all expressions in this list. */ + and?: RefusalLogModuleFilter[]; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `logInterval` field. */ + logInterval?: StringFilter; + /** Filter by the object’s `logPremake` field. */ + logPremake?: IntFilter; + /** Filter by the object’s `logRetention` field. */ + logRetention?: StringFilter; + /** Filter by the object’s `logTableId` field. */ + logTableId?: UUIDFilter; + /** Filter by the object’s `logTableName` field. */ + logTableName?: StringFilter; + /** Negates the expression. */ + not?: RefusalLogModuleFilter; + /** Checks for any expressions in this list. */ + or?: RefusalLogModuleFilter[]; + /** 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 `recordRefusalsFunction` field. */ + recordRefusalsFunction?: StringFilter; + /** Filter by the object’s `rollupRefusalUsageSummaryFunction` field. */ + rollupRefusalUsageSummaryFunction?: StringFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `summaryInterval` field. */ + summaryInterval?: StringFilter; + /** Filter by the object’s `summaryPremake` field. */ + summaryPremake?: IntFilter; + /** Filter by the object’s `summaryRetention` field. */ + summaryRetention?: StringFilter; + /** Filter by the object’s `summaryTableId` field. */ + summaryTableId?: UUIDFilter; + /** Filter by the object’s `summaryTableName` field. */ + summaryTableName?: StringFilter; +} export interface RelationProvisionFilter { /** Checks for all expressions in this list. */ and?: RelationProvisionFilter[]; @@ -7686,11 +8411,103 @@ export interface RelationProvisionFilter { /** Filter by the object’s `useCompositeKey` field. */ useCompositeKey?: BooleanFilter; } +export interface RepositoryModuleFilter { + /** Checks for all expressions in this list. */ + and?: RepositoryModuleFilter[]; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `buildStepsTableId` field. */ + buildStepsTableId?: UUIDFilter; + /** Filter by the object’s `buildStepsTableName` field. */ + buildStepsTableName?: StringFilter; + /** Filter by the object’s `buildsTableId` field. */ + buildsTableId?: UUIDFilter; + /** Filter by the object’s `buildsTableName` field. */ + buildsTableName?: StringFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** 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. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `hasAttachments` field. */ + hasAttachments?: BooleanFilter; + /** Filter by the object’s `hasBuilds` field. */ + hasBuilds?: BooleanFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: RepositoryModuleFilter; + /** Checks for any expressions in this list. */ + or?: RepositoryModuleFilter[]; + /** 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 `proposalCommentsTableId` field. */ + proposalCommentsTableId?: UUIDFilter; + /** Filter by the object’s `proposalCommentsTableName` field. */ + proposalCommentsTableName?: StringFilter; + /** Filter by the object’s `proposalFileViewsTableId` field. */ + proposalFileViewsTableId?: UUIDFilter; + /** Filter by the object’s `proposalFileViewsTableName` field. */ + proposalFileViewsTableName?: StringFilter; + /** Filter by the object’s `proposalReactionsTableId` field. */ + proposalReactionsTableId?: UUIDFilter; + /** Filter by the object’s `proposalReactionsTableName` field. */ + proposalReactionsTableName?: StringFilter; + /** Filter by the object’s `proposalReviewsTableId` field. */ + proposalReviewsTableId?: UUIDFilter; + /** Filter by the object’s `proposalReviewsTableName` field. */ + proposalReviewsTableName?: StringFilter; + /** Filter by the object’s `proposalsTableId` field. */ + proposalsTableId?: UUIDFilter; + /** Filter by the object’s `proposalsTableName` field. */ + proposalsTableName?: StringFilter; + /** Filter by the object’s `provisions` field. */ + provisions?: JSONFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `repositoriesTableId` field. */ + repositoriesTableId?: UUIDFilter; + /** Filter by the object’s `repositoriesTableName` field. */ + repositoriesTableName?: StringFilter; + /** Filter by the object’s `repositoryEventsTableId` field. */ + repositoryEventsTableId?: UUIDFilter; + /** Filter by the object’s `repositoryEventsTableName` field. */ + repositoryEventsTableName?: StringFilter; + /** Filter by the object’s `repositoryRequiredChecksTableId` field. */ + repositoryRequiredChecksTableId?: UUIDFilter; + /** Filter by the object’s `repositoryRequiredChecksTableName` field. */ + repositoryRequiredChecksTableName?: StringFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `search` field. */ + search?: JSONFilter; + /** Filter by the object’s `workflowsTableId` field. */ + workflowsTableId?: UUIDFilter; + /** Filter by the object’s `workflowsTableName` field. */ + workflowsTableName?: StringFilter; +} export interface ResourceModuleFilter { /** Checks for all expressions in this list. */ and?: ResourceModuleFilter[]; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; + /** Filter by the object’s `builderBindingsTableId` field. */ + builderBindingsTableId?: UUIDFilter; + /** Filter by the object’s `builderBindingsTableName` field. */ + builderBindingsTableName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; /** Filter by the object’s `defaultCapabilities` field. */ @@ -7699,10 +8516,6 @@ export interface ResourceModuleFilter { entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ entityTableId?: UUIDFilter; - /** Filter by the object’s `httpRouteModules` relation. */ - httpRouteModules?: ResourceModuleToManyHttpRouteModuleFilter; - /** `httpRouteModules` exist. */ - httpRouteModulesExist?: boolean; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `installationStoreName` field. */ @@ -7737,6 +8550,10 @@ export interface ResourceModuleFilter { provisions?: JSONFilter; /** Filter by the object’s `publicSchemaName` field. */ publicSchemaName?: StringFilter; + /** Filter by the object’s `registryBindingsTableId` field. */ + registryBindingsTableId?: UUIDFilter; + /** Filter by the object’s `registryBindingsTableName` field. */ + registryBindingsTableName?: StringFilter; /** Filter by the object’s `requirementsStateViewName` field. */ requirementsStateViewName?: StringFilter; /** Filter by the object’s `resolvedRequirementsViewName` field. */ @@ -7865,6 +8682,10 @@ export interface RouteModuleFilter { provisions?: JSONFilter; /** Filter by the object’s `publicSchemaName` field. */ publicSchemaName?: StringFilter; + /** Filter by the object’s `redirectsTableId` field. */ + redirectsTableId?: UUIDFilter; + /** Filter by the object’s `redirectsTableName` field. */ + redirectsTableName?: StringFilter; /** Filter by the object’s `resolverFunctionName` field. */ resolverFunctionName?: StringFilter; /** Filter by the object’s `routeBindingsTableId` field. */ @@ -7879,6 +8700,10 @@ export interface RouteModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `scope` field. */ scope?: StringFilter; + /** Filter by the object’s `servingSiteField` field. */ + servingSiteField?: StringFilter; + /** Filter by the object’s `storageKey` field. */ + storageKey?: StringFilter; } export interface ScopeTypesModuleFilter { /** Checks for all expressions in this list. */ @@ -7909,6 +8734,8 @@ export interface SecureTableProvisionFilter { grants?: JSONFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `module` field. */ + module?: JSONFilter; /** Filter by the object’s `nodes` field. */ nodes?: JSONFilter; /** Negates the expression. */ @@ -7917,6 +8744,8 @@ export interface SecureTableProvisionFilter { or?: SecureTableProvisionFilter[]; /** Filter by the object’s `outFields` field. */ outFields?: UUIDListFilter; + /** Filter by the object’s `owns` field. */ + owns?: JSONFilter; /** Filter by the object’s `policies` field. */ policies?: JSONFilter; /** Filter by the object’s `schemaId` field. */ @@ -8049,6 +8878,10 @@ export interface SiteSurfaceModuleFilter { siteModulesTableId?: UUIDFilter; /** Filter by the object’s `siteModulesTableName` field. */ siteModulesTableName?: StringFilter; + /** Filter by the object’s `siteReleasesTableId` field. */ + siteReleasesTableId?: UUIDFilter; + /** Filter by the object’s `siteReleasesTableName` field. */ + siteReleasesTableName?: StringFilter; /** Filter by the object’s `siteThemesTableId` field. */ siteThemesTableId?: UUIDFilter; /** Filter by the object’s `siteThemesTableName` field. */ @@ -8061,10 +8894,10 @@ export interface SiteSurfaceModuleFilter { sitesTableId?: UUIDFilter; /** Filter by the object’s `sitesTableName` field. */ sitesTableName?: StringFilter; + /** Filter by the object’s `storageKey` field. */ + storageKey?: StringFilter; } export interface StorageLogModuleFilter { - /** Filter by the object’s `actorFkTableId` field. */ - actorFkTableId?: UUIDFilter; /** Checks for all expressions in this list. */ and?: StorageLogModuleFilter[]; /** Filter by the object’s `apiName` field. */ @@ -8073,8 +8906,6 @@ export interface StorageLogModuleFilter { databaseId?: UUIDFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; - /** Filter by the object’s `entityFkTableId` field. */ - entityFkTableId?: UUIDFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `interval` field. */ @@ -8097,6 +8928,8 @@ export interface StorageLogModuleFilter { publicSchemaName?: StringFilter; /** Filter by the object’s `retention` field. */ retention?: StringFilter; + /** Filter by the object’s `rollupFunctionName` field. */ + rollupFunctionName?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `scope` field. */ @@ -8163,12 +8996,10 @@ export interface StorageModuleFilter { hasPathShares?: BooleanFilter; /** Filter by the object’s `hasVersioning` field. */ hasVersioning?: BooleanFilter; - /** Filter by the object’s `httpRouteModules` relation. */ - httpRouteModules?: StorageModuleToManyHttpRouteModuleFilter; - /** `httpRouteModules` exist. */ - httpRouteModulesExist?: boolean; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `key` field. */ + key?: StringFilter; /** Filter by the object’s `maxBulkFiles` field. */ maxBulkFiles?: IntFilter; /** Filter by the object’s `maxBulkTotalSize` field. */ @@ -8209,8 +9040,6 @@ export interface StorageModuleFilter { uploadUrlExpirySeconds?: IntFilter; } export interface TransferLogModuleFilter { - /** Filter by the object’s `actorFkTableId` field. */ - actorFkTableId?: UUIDFilter; /** Checks for all expressions in this list. */ and?: TransferLogModuleFilter[]; /** Filter by the object’s `apiName` field. */ @@ -8219,8 +9048,6 @@ export interface TransferLogModuleFilter { databaseId?: UUIDFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; - /** Filter by the object’s `entityFkTableId` field. */ - entityFkTableId?: UUIDFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `interval` field. */ @@ -8243,6 +9070,8 @@ export interface TransferLogModuleFilter { publicSchemaName?: StringFilter; /** Filter by the object’s `retention` field. */ retention?: StringFilter; + /** Filter by the object’s `rollupFunctionName` field. */ + rollupFunctionName?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `scope` field. */ @@ -8287,10 +9116,14 @@ export interface UserAuthModuleFilter { or?: UserAuthModuleFilter[]; /** Filter by the object’s `privateApiName` field. */ privateApiName?: StringFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; /** Filter by the object’s `requestCrossOriginTokenFunction` field. */ requestCrossOriginTokenFunction?: StringFilter; /** Filter by the object’s `resetPasswordFunction` field. */ resetPasswordFunction?: StringFilter; + /** Filter by the object’s `revokeSessionTreeFunction` field. */ + revokeSessionTreeFunction?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `secretsTableId` field. */ @@ -8313,6 +9146,8 @@ export interface UserAuthModuleFilter { signOutFunction?: StringFilter; /** Filter by the object’s `signUpFunction` field. */ signUpFunction?: StringFilter; + /** Filter by the object’s `sweepExpiredSessionsFunction` field. */ + sweepExpiredSessionsFunction?: StringFilter; /** Filter by the object’s `usersTableId` field. */ usersTableId?: UUIDFilter; /** Filter by the object’s `verifyEmailFunction` field. */ @@ -8580,16 +9415,28 @@ export type AgentModuleOrderBy = | 'DATABASE_ID_DESC' | 'DEFAULT_CAPABILITIES_ASC' | 'DEFAULT_CAPABILITIES_DESC' + | 'DEFAULT_VISIBILITY_ASC' + | 'DEFAULT_VISIBILITY_DESC' | 'ENTITY_FIELD_ASC' | 'ENTITY_FIELD_DESC' | 'ENTITY_TABLE_ID_ASC' | 'ENTITY_TABLE_ID_DESC' + | 'EVENT_TABLE_ID_ASC' + | 'EVENT_TABLE_ID_DESC' + | 'EVENT_TABLE_NAME_ASC' + | 'EVENT_TABLE_NAME_DESC' | 'HAS_AGENTS_ASC' | 'HAS_AGENTS_DESC' + | 'HAS_ATTACHMENTS_ASC' + | 'HAS_ATTACHMENTS_DESC' | 'HAS_PLANS_ASC' | 'HAS_PLANS_DESC' + | 'HAS_REPOSITORY_RESOURCES_ASC' + | 'HAS_REPOSITORY_RESOURCES_DESC' | 'HAS_RESOURCES_ASC' | 'HAS_RESOURCES_DESC' + | 'HAS_RUNS_ASC' + | 'HAS_RUNS_DESC' | 'ID_ASC' | 'ID_DESC' | 'MESSAGE_TABLE_ID_ASC' @@ -8627,16 +9474,22 @@ export type AgentModuleOrderBy = | 'PUBLIC_SCHEMA_NAME_DESC' | 'RESOURCES_ASC' | 'RESOURCES_DESC' + | 'RESOURCE_REPOSITORY_TABLE_ID_ASC' + | 'RESOURCE_REPOSITORY_TABLE_ID_DESC' + | 'RESOURCE_REPOSITORY_TABLE_NAME_ASC' + | 'RESOURCE_REPOSITORY_TABLE_NAME_DESC' | 'RESOURCE_TABLE_ID_ASC' | 'RESOURCE_TABLE_ID_DESC' | 'RESOURCE_TABLE_NAME_ASC' | 'RESOURCE_TABLE_NAME_DESC' + | 'RUN_TABLE_ID_ASC' + | 'RUN_TABLE_ID_DESC' + | 'RUN_TABLE_NAME_ASC' + | 'RUN_TABLE_NAME_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC' - | 'SHARED_ASC' - | 'SHARED_DESC' | 'TASK_TABLE_ID_ASC' | 'TASK_TABLE_ID_DESC' | 'TASK_TABLE_NAME_ASC' @@ -8644,7 +9497,11 @@ export type AgentModuleOrderBy = | 'THREAD_TABLE_ID_ASC' | 'THREAD_TABLE_ID_DESC' | 'THREAD_TABLE_NAME_ASC' - | 'THREAD_TABLE_NAME_DESC'; + | 'THREAD_TABLE_NAME_DESC' + | 'WORKSPACE_TABLE_ID_ASC' + | 'WORKSPACE_TABLE_ID_DESC' + | 'WORKSPACE_TABLE_NAME_ASC' + | 'WORKSPACE_TABLE_NAME_DESC'; export type ApiSurfaceModuleOrderBy = | 'APIS_TABLE_ID_ASC' | 'APIS_TABLE_ID_DESC' @@ -8704,6 +9561,8 @@ export type AppModuleOrderBy = | 'APP_COMPONENTS_TABLE_ID_DESC' | 'APP_COMPONENTS_TABLE_NAME_ASC' | 'APP_COMPONENTS_TABLE_NAME_DESC' + | 'APP_STORE_IDENTITIES_TABLE_NAME_ASC' + | 'APP_STORE_IDENTITIES_TABLE_NAME_DESC' | 'CATALOG_MODULE_ID_ASC' | 'CATALOG_MODULE_ID_DESC' | 'DATABASE_ID_ASC' @@ -8798,12 +9657,18 @@ export type BillingModuleOrderBy = | 'SWEEP_EXPIRED_SUBSCRIPTIONS_FUNCTION_ASC' | 'SWEEP_EXPIRED_SUBSCRIPTIONS_FUNCTION_DESC'; export type BillingProviderModuleOrderBy = + | 'ACTIVATE_PLAN_SUBSCRIPTION_FUNCTION_ASC' + | 'ACTIVATE_PLAN_SUBSCRIPTION_FUNCTION_DESC' | 'API_NAME_ASC' | 'API_NAME_DESC' | 'BILLING_CUSTOMERS_TABLE_ID_ASC' | 'BILLING_CUSTOMERS_TABLE_ID_DESC' | 'BILLING_CUSTOMERS_TABLE_NAME_ASC' | 'BILLING_CUSTOMERS_TABLE_NAME_DESC' + | 'BILLING_DISPUTES_TABLE_ID_ASC' + | 'BILLING_DISPUTES_TABLE_ID_DESC' + | 'BILLING_DISPUTES_TABLE_NAME_ASC' + | 'BILLING_DISPUTES_TABLE_NAME_DESC' | 'BILLING_INVOICES_TABLE_ID_ASC' | 'BILLING_INVOICES_TABLE_ID_DESC' | 'BILLING_INVOICES_TABLE_NAME_ASC' @@ -8830,6 +9695,18 @@ export type BillingProviderModuleOrderBy = | 'BILLING_WEBHOOK_EVENTS_TABLE_NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'GET_ACTIVE_PLAN_PRICING_FUNCTION_ASC' + | 'GET_ACTIVE_PLAN_PRICING_FUNCTION_DESC' + | 'GET_BILLING_CUSTOMER_FUNCTION_ASC' + | 'GET_BILLING_CUSTOMER_FUNCTION_DESC' + | 'GET_BILLING_PRICE_FUNCTION_ASC' + | 'GET_BILLING_PRICE_FUNCTION_DESC' + | 'GET_BILLING_PRODUCT_FUNCTION_ASC' + | 'GET_BILLING_PRODUCT_FUNCTION_DESC' + | 'GET_BILLING_SUBSCRIPTION_FUNCTION_ASC' + | 'GET_BILLING_SUBSCRIPTION_FUNCTION_DESC' + | 'GET_FALLBACK_FREE_PLAN_FUNCTION_ASC' + | 'GET_FALLBACK_FREE_PLAN_FUNCTION_DESC' | 'ID_ASC' | 'ID_DESC' | 'LIST_PENDING_USAGE_SYNC_FUNCTION_ASC' @@ -8853,12 +9730,24 @@ export type BillingProviderModuleOrderBy = | 'PRODUCTS_TABLE_ID_DESC' | 'PROVIDER_ASC' | 'PROVIDER_DESC' + | 'RECORD_DISPUTE_FUNCTION_ASC' + | 'RECORD_DISPUTE_FUNCTION_DESC' | 'RECORD_REFUND_FUNCTION_ASC' | 'RECORD_REFUND_FUNCTION_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'SUBSCRIPTIONS_TABLE_ID_ASC' | 'SUBSCRIPTIONS_TABLE_ID_DESC' + | 'SWEEP_OVERDUE_SUBSCRIPTIONS_FUNCTION_ASC' + | 'SWEEP_OVERDUE_SUBSCRIPTIONS_FUNCTION_DESC' + | 'UPSERT_BILLING_CUSTOMER_FUNCTION_ASC' + | 'UPSERT_BILLING_CUSTOMER_FUNCTION_DESC' + | 'UPSERT_BILLING_PRICE_FUNCTION_ASC' + | 'UPSERT_BILLING_PRICE_FUNCTION_DESC' + | 'UPSERT_BILLING_PRODUCT_FUNCTION_ASC' + | 'UPSERT_BILLING_PRODUCT_FUNCTION_DESC' + | 'UPSERT_BILLING_SUBSCRIPTION_FUNCTION_ASC' + | 'UPSERT_BILLING_SUBSCRIPTION_FUNCTION_DESC' | 'UPSERT_INVOICE_FUNCTION_ASC' | 'UPSERT_INVOICE_FUNCTION_DESC'; export type BlueprintOrderBy = @@ -9018,6 +9907,10 @@ export type CatalogModuleOrderBy = | 'APPS_TABLE_ID_DESC' | 'APPS_TABLE_NAME_ASC' | 'APPS_TABLE_NAME_DESC' + | 'APP_STORE_IDENTITIES_TABLE_ID_ASC' + | 'APP_STORE_IDENTITIES_TABLE_ID_DESC' + | 'APP_STORE_IDENTITIES_TABLE_NAME_ASC' + | 'APP_STORE_IDENTITIES_TABLE_NAME_DESC' | 'BINDINGS_TABLE_ID_ASC' | 'BINDINGS_TABLE_ID_DESC' | 'BINDINGS_TABLE_NAME_ASC' @@ -9042,6 +9935,14 @@ export type CatalogModuleOrderBy = | 'FUNCTIONS_TABLE_NAME_DESC' | 'ID_ASC' | 'ID_DESC' + | 'IMAGES_TABLE_ID_ASC' + | 'IMAGES_TABLE_ID_DESC' + | 'IMAGES_TABLE_NAME_ASC' + | 'IMAGES_TABLE_NAME_DESC' + | 'MANAGED_DOMAINS_TABLE_ID_ASC' + | 'MANAGED_DOMAINS_TABLE_ID_DESC' + | 'MANAGED_DOMAINS_TABLE_NAME_ASC' + | 'MANAGED_DOMAINS_TABLE_NAME_DESC' | 'NAMESPACES_TABLE_ID_ASC' | 'NAMESPACES_TABLE_ID_DESC' | 'NAMESPACES_TABLE_NAME_ASC' @@ -9057,6 +9958,10 @@ export type CatalogModuleOrderBy = | 'PROVISIONS_DESC' | 'PUBLIC_SCHEMA_NAME_ASC' | 'PUBLIC_SCHEMA_NAME_DESC' + | 'REDIRECTS_TABLE_ID_ASC' + | 'REDIRECTS_TABLE_ID_DESC' + | 'REDIRECTS_TABLE_NAME_ASC' + | 'REDIRECTS_TABLE_NAME_DESC' | 'RESOURCES_TABLE_ID_ASC' | 'RESOURCES_TABLE_ID_DESC' | 'RESOURCES_TABLE_NAME_ASC' @@ -9093,26 +9998,42 @@ export type CatalogModuleOrderBy = | 'SITES_WEB_CONFIG_TABLE_ID_DESC' | 'SITES_WEB_CONFIG_TABLE_NAME_ASC' | 'SITES_WEB_CONFIG_TABLE_NAME_DESC'; -export type ComputeLogModuleOrderBy = - | 'ACTOR_FK_TABLE_ID_ASC' - | 'ACTOR_FK_TABLE_ID_DESC' +export type ClusterModuleOrderBy = | 'API_NAME_ASC' | 'API_NAME_DESC' - | 'COMPUTE_LOG_TABLE_ID_ASC' - | 'COMPUTE_LOG_TABLE_ID_DESC' - | 'COMPUTE_LOG_TABLE_NAME_ASC' - | 'COMPUTE_LOG_TABLE_NAME_DESC' + | 'CLUSTERS_TABLE_ID_ASC' + | 'CLUSTERS_TABLE_ID_DESC' + | 'CLUSTERS_TABLE_NAME_ASC' + | 'CLUSTERS_TABLE_NAME_DESC' + | 'CLUSTER_EVENTS_TABLE_ID_ASC' + | 'CLUSTER_EVENTS_TABLE_ID_DESC' + | 'CLUSTER_EVENTS_TABLE_NAME_ASC' + | 'CLUSTER_EVENTS_TABLE_NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'DATABASE_PLACEMENTS_TABLE_ID_ASC' + | 'DATABASE_PLACEMENTS_TABLE_ID_DESC' + | 'DATABASE_PLACEMENTS_TABLE_NAME_ASC' + | 'DATABASE_PLACEMENTS_TABLE_NAME_DESC' + | 'DATABASE_SERVERS_TABLE_ID_ASC' + | 'DATABASE_SERVERS_TABLE_ID_DESC' + | 'DATABASE_SERVERS_TABLE_NAME_ASC' + | 'DATABASE_SERVERS_TABLE_NAME_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'ENTITY_FIELD_ASC' | 'ENTITY_FIELD_DESC' - | 'ENTITY_FK_TABLE_ID_ASC' - | 'ENTITY_FK_TABLE_ID_DESC' | 'ID_ASC' | 'ID_DESC' - | 'INTERVAL_ASC' - | 'INTERVAL_DESC' | 'NATURAL' + | 'PARTITION_INTERVAL_ASC' + | 'PARTITION_INTERVAL_DESC' + | 'PHYSICAL_DATABASES_TABLE_ID_ASC' + | 'PHYSICAL_DATABASES_TABLE_ID_DESC' + | 'PHYSICAL_DATABASES_TABLE_NAME_ASC' + | 'PHYSICAL_DATABASES_TABLE_NAME_DESC' + | 'POLICIES_ASC' + | 'POLICIES_DESC' | 'PREFIX_ASC' | 'PREFIX_DESC' | 'PREMAKE_ASC' @@ -9125,6 +10046,8 @@ export type ComputeLogModuleOrderBy = | 'PRIVATE_SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_NAME_ASC' | 'PRIVATE_SCHEMA_NAME_DESC' + | 'PROVISIONS_ASC' + | 'PROVISIONS_DESC' | 'PUBLIC_SCHEMA_NAME_ASC' | 'PUBLIC_SCHEMA_NAME_DESC' | 'RETENTION_ASC' @@ -9132,31 +10055,49 @@ export type ComputeLogModuleOrderBy = | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'USAGE_SUMMARY_TABLE_ID_ASC' - | 'USAGE_SUMMARY_TABLE_ID_DESC' - | 'USAGE_SUMMARY_TABLE_NAME_ASC' - | 'USAGE_SUMMARY_TABLE_NAME_DESC'; -export type ConfigSecretsUserModuleOrderBy = + | 'SCOPE_DESC'; +export type ComputeLogModuleOrderBy = | 'API_NAME_ASC' | 'API_NAME_DESC' + | 'COMPUTE_LOG_TABLE_ID_ASC' + | 'COMPUTE_LOG_TABLE_ID_DESC' + | 'COMPUTE_LOG_TABLE_NAME_ASC' + | 'COMPUTE_LOG_TABLE_NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'ENTITY_FIELD_ASC' | 'ENTITY_FIELD_DESC' | 'ID_ASC' | 'ID_DESC' + | 'INTERVAL_ASC' + | 'INTERVAL_DESC' | 'NATURAL' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'PREMAKE_ASC' + | 'PREMAKE_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' + | 'RETENTION_ASC' + | 'RETENTION_DESC' + | 'ROLLUP_FUNCTION_NAME_ASC' + | 'ROLLUP_FUNCTION_NAME_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_NAME_DESC'; + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'USAGE_SUMMARY_TABLE_ID_ASC' + | 'USAGE_SUMMARY_TABLE_ID_DESC' + | 'USAGE_SUMMARY_TABLE_NAME_ASC' + | 'USAGE_SUMMARY_TABLE_NAME_DESC'; export type ConnectedAccountsModuleOrderBy = | 'API_NAME_ASC' | 'API_NAME_DESC' @@ -9302,6 +10243,8 @@ export type DataCapabilitiesFieldOrderBy = export type DatabaseProvisionModuleOrderBy = | 'ASYNC_ASC' | 'ASYNC_DESC' + | 'BOOTSTRAP_ACTOR_ID_ASC' + | 'BOOTSTRAP_ACTOR_ID_DESC' | 'BOOTSTRAP_ERROR_ASC' | 'BOOTSTRAP_ERROR_DESC' | 'BOOTSTRAP_STATUS_ASC' @@ -10054,7 +10997,9 @@ export type FunctionModuleOrderBy = | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'SCOPE_ASC' - | 'SCOPE_DESC'; + | 'SCOPE_DESC' + | 'STORAGE_KEY_ASC' + | 'STORAGE_KEY_DESC'; export type GraphExecutionModuleOrderBy = | 'API_NAME_ASC' | 'API_NAME_DESC' @@ -10195,82 +11140,80 @@ export type HierarchyModuleOrderBy = | 'SPRT_TABLE_NAME_DESC' | 'USERS_TABLE_ID_ASC' | 'USERS_TABLE_ID_DESC'; -export type HttpRouteModuleOrderBy = +export type I18NModuleOrderBy = | 'API_NAME_ASC' | 'API_NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DEFAULT_CAPABILITIES_ASC' - | 'DEFAULT_CAPABILITIES_DESC' - | 'ENTITY_FIELD_ASC' - | 'ENTITY_FIELD_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' - | 'FUNCTION_MODULE_ID_ASC' - | 'FUNCTION_MODULE_ID_DESC' - | 'HTTP_ROUTES_TABLE_ID_ASC' - | 'HTTP_ROUTES_TABLE_ID_DESC' - | 'HTTP_ROUTES_TABLE_NAME_ASC' - | 'HTTP_ROUTES_TABLE_NAME_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' | 'PRIVATE_SCHEMA_ID_ASC' | 'PRIVATE_SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_NAME_ASC' - | 'PRIVATE_SCHEMA_NAME_DESC' - | 'PROVISIONS_ASC' - | 'PROVISIONS_DESC' - | 'PUBLIC_SCHEMA_NAME_ASC' - | 'PUBLIC_SCHEMA_NAME_DESC' - | 'RESOLVER_FUNCTION_NAME_ASC' - | 'RESOLVER_FUNCTION_NAME_DESC' - | 'RESOURCE_MODULE_ID_ASC' - | 'RESOURCE_MODULE_ID_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'STORAGE_MODULE_ID_ASC' - | 'STORAGE_MODULE_ID_DESC'; -export type I18NModuleOrderBy = + | 'SETTINGS_TABLE_ID_ASC' + | 'SETTINGS_TABLE_ID_DESC'; +export type IdentityProvidersModuleOrderBy = | 'API_NAME_ASC' | 'API_NAME_DESC' | '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' + | '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' - | 'SETTINGS_TABLE_ID_ASC' - | 'SETTINGS_TABLE_ID_DESC'; -export type IdentityProvidersModuleOrderBy = + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'TABLE_NAME_ASC' + | 'TABLE_NAME_DESC'; +export type ImageModuleOrderBy = | 'API_NAME_ASC' | 'API_NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'ENTITY_FIELD_ASC' | 'ENTITY_FIELD_DESC' | 'ENTITY_TABLE_ID_ASC' | 'ENTITY_TABLE_ID_DESC' | 'ID_ASC' | 'ID_DESC' + | 'IMAGES_TABLE_ID_ASC' + | 'IMAGES_TABLE_ID_DESC' + | 'IMAGES_TABLE_NAME_ASC' + | 'IMAGES_TABLE_NAME_DESC' + | 'IMAGE_GRANTS_TABLE_ID_ASC' + | 'IMAGE_GRANTS_TABLE_ID_DESC' + | 'IMAGE_GRANTS_TABLE_NAME_ASC' + | 'IMAGE_GRANTS_TABLE_NAME_DESC' | 'NATURAL' + | 'POLICIES_ASC' + | 'POLICIES_DESC' | 'PREFIX_ASC' | 'PREFIX_DESC' | 'PRIMARY_KEY_ASC' @@ -10281,27 +11224,29 @@ export type IdentityProvidersModuleOrderBy = | 'PRIVATE_SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_NAME_ASC' | 'PRIVATE_SCHEMA_NAME_DESC' + | 'PROVISIONS_ASC' + | 'PROVISIONS_DESC' | 'PUBLIC_SCHEMA_NAME_ASC' | 'PUBLIC_SCHEMA_NAME_DESC' + | 'REGISTRIES_TABLE_ID_ASC' + | 'REGISTRIES_TABLE_ID_DESC' + | 'REGISTRIES_TABLE_NAME_ASC' + | 'REGISTRIES_TABLE_NAME_DESC' + | 'REGISTRY_GRANTS_TABLE_ID_ASC' + | 'REGISTRY_GRANTS_TABLE_ID_DESC' + | 'REGISTRY_GRANTS_TABLE_NAME_ASC' + | 'REGISTRY_GRANTS_TABLE_NAME_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_NAME_DESC'; + | 'SCOPE_DESC'; export type InferenceLogModuleOrderBy = - | 'ACTOR_FK_TABLE_ID_ASC' - | 'ACTOR_FK_TABLE_ID_DESC' | 'API_NAME_ASC' | 'API_NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'ENTITY_FIELD_ASC' | 'ENTITY_FIELD_DESC' - | 'ENTITY_FK_TABLE_ID_ASC' - | 'ENTITY_FK_TABLE_ID_DESC' | 'ID_ASC' | 'ID_DESC' | 'INFERENCE_LOG_TABLE_ID_ASC' @@ -10327,6 +11272,8 @@ export type InferenceLogModuleOrderBy = | 'PUBLIC_SCHEMA_NAME_DESC' | 'RETENTION_ASC' | 'RETENTION_DESC' + | 'ROLLUP_FUNCTION_NAME_ASC' + | 'ROLLUP_FUNCTION_NAME_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'SCOPE_ASC' @@ -10439,6 +11386,42 @@ export type IntegrationProvidersModuleOrderBy = | 'TABLE_ID_DESC' | 'TABLE_NAME_ASC' | 'TABLE_NAME_DESC'; +export type InternalConfigModuleOrderBy = + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'INTERNAL_CONFIG_TABLE_ID_ASC' + | 'INTERNAL_CONFIG_TABLE_ID_DESC' + | 'INTERNAL_CONFIG_TABLE_NAME_ASC' + | 'INTERNAL_CONFIG_TABLE_NAME_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_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC'; export type InternalSecretsModuleOrderBy = | 'API_NAME_ASC' | 'API_NAME_DESC' @@ -10517,14 +11500,54 @@ export type InvitesModuleOrderBy = | 'SUBMIT_INVITE_CODE_FUNCTION_DESC' | 'USERS_TABLE_ID_ASC' | 'USERS_TABLE_ID_DESC'; -export type LimitsModuleOrderBy = - | 'ACTOR_TABLE_ID_ASC' - | 'ACTOR_TABLE_ID_DESC' - | 'AGGREGATE_TABLE_ID_ASC' - | 'AGGREGATE_TABLE_ID_DESC' +export type K8sAdmissionModuleOrderBy = | 'API_NAME_ASC' | 'API_NAME_DESC' - | 'CAP_CHECK_TRIGGER_ASC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'K8S_RESOURCE_KINDS_TABLE_ID_ASC' + | 'K8S_RESOURCE_KINDS_TABLE_ID_DESC' + | 'K8S_SPEC_RULES_TABLE_ID_ASC' + | 'K8S_SPEC_RULES_TABLE_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 LimitsModuleOrderBy = + | 'ACTOR_TABLE_ID_ASC' + | 'ACTOR_TABLE_ID_DESC' + | 'AGGREGATE_TABLE_ID_ASC' + | 'AGGREGATE_TABLE_ID_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'CAP_CHECK_TRIGGER_ASC' | 'CAP_CHECK_TRIGGER_DESC' | 'CREDIT_CODES_TABLE_ID_ASC' | 'CREDIT_CODES_TABLE_ID_DESC' @@ -10597,6 +11620,58 @@ export type LimitsModuleOrderBy = | 'TABLE_ID_DESC' | 'TABLE_NAME_ASC' | 'TABLE_NAME_DESC'; +export type MachineModuleOrderBy = + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'MACHINES_TABLE_ID_ASC' + | 'MACHINES_TABLE_ID_DESC' + | 'MACHINES_TABLE_NAME_ASC' + | 'MACHINES_TABLE_NAME_DESC' + | 'MACHINE_MESSAGES_TABLE_ID_ASC' + | 'MACHINE_MESSAGES_TABLE_ID_DESC' + | 'MACHINE_MESSAGES_TABLE_NAME_ASC' + | 'MACHINE_MESSAGES_TABLE_NAME_DESC' + | 'MACHINE_SESSIONS_TABLE_ID_ASC' + | 'MACHINE_SESSIONS_TABLE_ID_DESC' + | 'MACHINE_SESSIONS_TABLE_NAME_ASC' + | 'MACHINE_SESSIONS_TABLE_NAME_DESC' + | 'NATURAL' + | 'PARTITION_INTERVAL_ASC' + | 'PARTITION_INTERVAL_DESC' + | 'POLICIES_ASC' + | 'POLICIES_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'PREMAKE_ASC' + | 'PREMAKE_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_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'RETENTION_ASC' + | 'RETENTION_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC'; export type MembershipTypesModuleOrderBy = | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' @@ -10712,6 +11787,8 @@ export type MerkleStoreModuleOrderBy = | 'DATABASE_ID_DESC' | 'ENTITY_FIELD_ASC' | 'ENTITY_FIELD_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' | 'FUNCTION_PREFIX_ASC' | 'FUNCTION_PREFIX_DESC' | 'ID_ASC' @@ -10881,6 +11958,14 @@ export type PagesModuleOrderBy = | 'POLICIES_DESC' | 'PREFIX_ASC' | 'PREFIX_DESC' + | 'PREVIEW_COMMIT_FUNCTION_NAME_ASC' + | 'PREVIEW_COMMIT_FUNCTION_NAME_DESC' + | 'PREVIEW_SET_FUNCTION_NAME_ASC' + | 'PREVIEW_SET_FUNCTION_NAME_DESC' + | 'PREVIEW_TOKEN_MINT_FUNCTION_NAME_ASC' + | 'PREVIEW_TOKEN_MINT_FUNCTION_NAME_DESC' + | 'PREVIEW_TOKEN_VERIFIER_FUNCTION_NAME_ASC' + | 'PREVIEW_TOKEN_VERIFIER_FUNCTION_NAME_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'PRIVATE_API_NAME_ASC' @@ -10895,6 +11980,8 @@ export type PagesModuleOrderBy = | 'PUBLIC_SCHEMA_ID_DESC' | 'PUBLIC_SCHEMA_NAME_ASC' | 'PUBLIC_SCHEMA_NAME_DESC' + | 'RELEASE_MANIFEST_FUNCTION_NAME_ASC' + | 'RELEASE_MANIFEST_FUNCTION_NAME_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC' | 'SITES_TABLE_ID_ASC' @@ -11001,6 +12088,8 @@ export type PrincipalAuthModuleOrderBy = | 'PRINCIPAL_ENTITIES_TABLE_ID_DESC' | 'PRINCIPAL_SCOPE_OVERRIDES_TABLE_ID_ASC' | 'PRINCIPAL_SCOPE_OVERRIDES_TABLE_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' | 'REVOKE_ORG_API_KEY_FUNCTION_ASC' | 'REVOKE_ORG_API_KEY_FUNCTION_DESC' | 'SCHEMA_ID_ASC' @@ -11009,6 +12098,8 @@ export type PrincipalAuthModuleOrderBy = | 'SESSIONS_TABLE_ID_DESC' | 'SESSION_CREDENTIALS_TABLE_ID_ASC' | 'SESSION_CREDENTIALS_TABLE_ID_DESC' + | 'SWEEP_EXPIRED_PRINCIPALS_FUNCTION_ASC' + | 'SWEEP_EXPIRED_PRINCIPALS_FUNCTION_DESC' | 'USERS_TABLE_ID_ASC' | 'USERS_TABLE_ID_DESC'; export type ProfilesModuleOrderBy = @@ -11161,6 +12252,56 @@ export type RealtimeModuleOrderBy = | 'SOURCE_REGISTRY_TABLE_ID_DESC' | 'SUBSCRIPTIONS_SCHEMA_ID_ASC' | 'SUBSCRIPTIONS_SCHEMA_ID_DESC'; +export type RefusalLogModuleOrderBy = + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'LOG_INTERVAL_ASC' + | 'LOG_INTERVAL_DESC' + | 'LOG_PREMAKE_ASC' + | 'LOG_PREMAKE_DESC' + | 'LOG_RETENTION_ASC' + | 'LOG_RETENTION_DESC' + | 'LOG_TABLE_ID_ASC' + | 'LOG_TABLE_ID_DESC' + | 'LOG_TABLE_NAME_ASC' + | 'LOG_TABLE_NAME_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' + | 'RECORD_REFUSALS_FUNCTION_ASC' + | 'RECORD_REFUSALS_FUNCTION_DESC' + | 'ROLLUP_REFUSAL_USAGE_SUMMARY_FUNCTION_ASC' + | 'ROLLUP_REFUSAL_USAGE_SUMMARY_FUNCTION_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'SUMMARY_INTERVAL_ASC' + | 'SUMMARY_INTERVAL_DESC' + | 'SUMMARY_PREMAKE_ASC' + | 'SUMMARY_PREMAKE_DESC' + | 'SUMMARY_RETENTION_ASC' + | 'SUMMARY_RETENTION_DESC' + | 'SUMMARY_TABLE_ID_ASC' + | 'SUMMARY_TABLE_ID_DESC' + | 'SUMMARY_TABLE_NAME_ASC' + | 'SUMMARY_TABLE_NAME_DESC'; export type RelationProvisionOrderBy = | 'API_REQUIRED_ASC' | 'API_REQUIRED_DESC' @@ -11213,9 +12354,97 @@ export type RelationProvisionOrderBy = | 'TARGET_TABLE_ID_DESC' | 'USE_COMPOSITE_KEY_ASC' | 'USE_COMPOSITE_KEY_DESC'; +export type RepositoryModuleOrderBy = + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'BUILDS_TABLE_ID_ASC' + | 'BUILDS_TABLE_ID_DESC' + | 'BUILDS_TABLE_NAME_ASC' + | 'BUILDS_TABLE_NAME_DESC' + | 'BUILD_STEPS_TABLE_ID_ASC' + | 'BUILD_STEPS_TABLE_ID_DESC' + | 'BUILD_STEPS_TABLE_NAME_ASC' + | 'BUILD_STEPS_TABLE_NAME_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'HAS_ATTACHMENTS_ASC' + | 'HAS_ATTACHMENTS_DESC' + | 'HAS_BUILDS_ASC' + | 'HAS_BUILDS_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' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' + | 'PROPOSALS_TABLE_ID_ASC' + | 'PROPOSALS_TABLE_ID_DESC' + | 'PROPOSALS_TABLE_NAME_ASC' + | 'PROPOSALS_TABLE_NAME_DESC' + | 'PROPOSAL_COMMENTS_TABLE_ID_ASC' + | 'PROPOSAL_COMMENTS_TABLE_ID_DESC' + | 'PROPOSAL_COMMENTS_TABLE_NAME_ASC' + | 'PROPOSAL_COMMENTS_TABLE_NAME_DESC' + | 'PROPOSAL_FILE_VIEWS_TABLE_ID_ASC' + | 'PROPOSAL_FILE_VIEWS_TABLE_ID_DESC' + | 'PROPOSAL_FILE_VIEWS_TABLE_NAME_ASC' + | 'PROPOSAL_FILE_VIEWS_TABLE_NAME_DESC' + | 'PROPOSAL_REACTIONS_TABLE_ID_ASC' + | 'PROPOSAL_REACTIONS_TABLE_ID_DESC' + | 'PROPOSAL_REACTIONS_TABLE_NAME_ASC' + | 'PROPOSAL_REACTIONS_TABLE_NAME_DESC' + | 'PROPOSAL_REVIEWS_TABLE_ID_ASC' + | 'PROPOSAL_REVIEWS_TABLE_ID_DESC' + | 'PROPOSAL_REVIEWS_TABLE_NAME_ASC' + | 'PROPOSAL_REVIEWS_TABLE_NAME_DESC' + | 'PROVISIONS_ASC' + | 'PROVISIONS_DESC' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'REPOSITORIES_TABLE_ID_ASC' + | 'REPOSITORIES_TABLE_ID_DESC' + | 'REPOSITORIES_TABLE_NAME_ASC' + | 'REPOSITORIES_TABLE_NAME_DESC' + | 'REPOSITORY_EVENTS_TABLE_ID_ASC' + | 'REPOSITORY_EVENTS_TABLE_ID_DESC' + | 'REPOSITORY_EVENTS_TABLE_NAME_ASC' + | 'REPOSITORY_EVENTS_TABLE_NAME_DESC' + | 'REPOSITORY_REQUIRED_CHECKS_TABLE_ID_ASC' + | 'REPOSITORY_REQUIRED_CHECKS_TABLE_ID_DESC' + | 'REPOSITORY_REQUIRED_CHECKS_TABLE_NAME_ASC' + | 'REPOSITORY_REQUIRED_CHECKS_TABLE_NAME_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'SEARCH_ASC' + | 'SEARCH_DESC' + | 'WORKFLOWS_TABLE_ID_ASC' + | 'WORKFLOWS_TABLE_ID_DESC' + | 'WORKFLOWS_TABLE_NAME_ASC' + | 'WORKFLOWS_TABLE_NAME_DESC'; export type ResourceModuleOrderBy = | 'API_NAME_ASC' | 'API_NAME_DESC' + | 'BUILDER_BINDINGS_TABLE_ID_ASC' + | 'BUILDER_BINDINGS_TABLE_ID_DESC' + | 'BUILDER_BINDINGS_TABLE_NAME_ASC' + | 'BUILDER_BINDINGS_TABLE_NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'DEFAULT_CAPABILITIES_ASC' @@ -11249,6 +12478,10 @@ export type ResourceModuleOrderBy = | 'PROVISIONS_DESC' | 'PUBLIC_SCHEMA_NAME_ASC' | 'PUBLIC_SCHEMA_NAME_DESC' + | 'REGISTRY_BINDINGS_TABLE_ID_ASC' + | 'REGISTRY_BINDINGS_TABLE_ID_DESC' + | 'REGISTRY_BINDINGS_TABLE_NAME_ASC' + | 'REGISTRY_BINDINGS_TABLE_NAME_DESC' | 'REQUIREMENTS_STATE_VIEW_NAME_ASC' | 'REQUIREMENTS_STATE_VIEW_NAME_DESC' | 'RESOLVED_REQUIREMENTS_VIEW_NAME_ASC' @@ -11361,6 +12594,10 @@ export type RouteModuleOrderBy = | 'PROVISIONS_DESC' | 'PUBLIC_SCHEMA_NAME_ASC' | 'PUBLIC_SCHEMA_NAME_DESC' + | 'REDIRECTS_TABLE_ID_ASC' + | 'REDIRECTS_TABLE_ID_DESC' + | 'REDIRECTS_TABLE_NAME_ASC' + | 'REDIRECTS_TABLE_NAME_DESC' | 'RESOLVER_FUNCTION_NAME_ASC' | 'RESOLVER_FUNCTION_NAME_DESC' | 'ROUTES_TABLE_ID_ASC' @@ -11374,7 +12611,11 @@ export type RouteModuleOrderBy = | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'SCOPE_ASC' - | 'SCOPE_DESC'; + | 'SCOPE_DESC' + | 'SERVING_SITE_FIELD_ASC' + | 'SERVING_SITE_FIELD_DESC' + | 'STORAGE_KEY_ASC' + | 'STORAGE_KEY_DESC'; export type ScopeTypesModuleOrderBy = | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' @@ -11398,11 +12639,15 @@ export type SecureTableProvisionOrderBy = | 'GRANTS_DESC' | 'ID_ASC' | 'ID_DESC' + | 'MODULE_ASC' + | 'MODULE_DESC' | 'NATURAL' | 'NODES_ASC' | 'NODES_DESC' | 'OUT_FIELDS_ASC' | 'OUT_FIELDS_DESC' + | 'OWNS_ASC' + | 'OWNS_DESC' | 'POLICIES_ASC' | 'POLICIES_DESC' | 'PRIMARY_KEY_ASC' @@ -11517,6 +12762,10 @@ export type SiteSurfaceModuleOrderBy = | 'SITE_MODULES_TABLE_ID_DESC' | 'SITE_MODULES_TABLE_NAME_ASC' | 'SITE_MODULES_TABLE_NAME_DESC' + | 'SITE_RELEASES_TABLE_ID_ASC' + | 'SITE_RELEASES_TABLE_ID_DESC' + | 'SITE_RELEASES_TABLE_NAME_ASC' + | 'SITE_RELEASES_TABLE_NAME_DESC' | 'SITE_THEMES_TABLE_ID_ASC' | 'SITE_THEMES_TABLE_ID_DESC' | 'SITE_THEMES_TABLE_NAME_ASC' @@ -11524,18 +12773,16 @@ export type SiteSurfaceModuleOrderBy = | 'SITE_WEB_CONFIG_TABLE_ID_ASC' | 'SITE_WEB_CONFIG_TABLE_ID_DESC' | 'SITE_WEB_CONFIG_TABLE_NAME_ASC' - | 'SITE_WEB_CONFIG_TABLE_NAME_DESC'; + | 'SITE_WEB_CONFIG_TABLE_NAME_DESC' + | 'STORAGE_KEY_ASC' + | 'STORAGE_KEY_DESC'; export type StorageLogModuleOrderBy = - | 'ACTOR_FK_TABLE_ID_ASC' - | 'ACTOR_FK_TABLE_ID_DESC' | 'API_NAME_ASC' | 'API_NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'ENTITY_FIELD_ASC' | 'ENTITY_FIELD_DESC' - | 'ENTITY_FK_TABLE_ID_ASC' - | 'ENTITY_FK_TABLE_ID_DESC' | 'ID_ASC' | 'ID_DESC' | 'INTERVAL_ASC' @@ -11557,6 +12804,8 @@ export type StorageLogModuleOrderBy = | 'PUBLIC_SCHEMA_NAME_DESC' | 'RETENTION_ASC' | 'RETENTION_DESC' + | 'ROLLUP_FUNCTION_NAME_ASC' + | 'ROLLUP_FUNCTION_NAME_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'SCOPE_ASC' @@ -11618,6 +12867,8 @@ export type StorageModuleOrderBy = | 'HAS_VERSIONING_DESC' | 'ID_ASC' | 'ID_DESC' + | 'KEY_ASC' + | 'KEY_DESC' | 'MAX_BULK_FILES_ASC' | 'MAX_BULK_FILES_DESC' | 'MAX_BULK_TOTAL_SIZE_ASC' @@ -11656,16 +12907,12 @@ export type StorageModuleOrderBy = | 'UPLOAD_URL_EXPIRY_SECONDS_ASC' | 'UPLOAD_URL_EXPIRY_SECONDS_DESC'; export type TransferLogModuleOrderBy = - | 'ACTOR_FK_TABLE_ID_ASC' - | 'ACTOR_FK_TABLE_ID_DESC' | 'API_NAME_ASC' | 'API_NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'ENTITY_FIELD_ASC' | 'ENTITY_FIELD_DESC' - | 'ENTITY_FK_TABLE_ID_ASC' - | 'ENTITY_FK_TABLE_ID_DESC' | 'ID_ASC' | 'ID_DESC' | 'INTERVAL_ASC' @@ -11687,6 +12934,8 @@ export type TransferLogModuleOrderBy = | 'PUBLIC_SCHEMA_NAME_DESC' | 'RETENTION_ASC' | 'RETENTION_DESC' + | 'ROLLUP_FUNCTION_NAME_ASC' + | 'ROLLUP_FUNCTION_NAME_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'SCOPE_ASC' @@ -11727,10 +12976,14 @@ export type UserAuthModuleOrderBy = | 'PRIMARY_KEY_DESC' | 'PRIVATE_API_NAME_ASC' | 'PRIVATE_API_NAME_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' | 'REQUEST_CROSS_ORIGIN_TOKEN_FUNCTION_ASC' | 'REQUEST_CROSS_ORIGIN_TOKEN_FUNCTION_DESC' | 'RESET_PASSWORD_FUNCTION_ASC' | 'RESET_PASSWORD_FUNCTION_DESC' + | 'REVOKE_SESSION_TREE_FUNCTION_ASC' + | 'REVOKE_SESSION_TREE_FUNCTION_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'SECRETS_TABLE_ID_ASC' @@ -11753,6 +13006,8 @@ export type UserAuthModuleOrderBy = | 'SIGN_OUT_FUNCTION_DESC' | 'SIGN_UP_FUNCTION_ASC' | 'SIGN_UP_FUNCTION_DESC' + | 'SWEEP_EXPIRED_SESSIONS_FUNCTION_ASC' + | 'SWEEP_EXPIRED_SESSIONS_FUNCTION_DESC' | 'USERS_TABLE_ID_ASC' | 'USERS_TABLE_ID_DESC' | 'VERIFY_EMAIL_FUNCTION_ASC' @@ -11968,11 +13223,17 @@ export interface CreateAgentModuleInput { apiName?: string; databaseId: string; defaultCapabilities?: string[]; + defaultVisibility?: string; entityField?: string; entityTableId?: string; + eventTableId?: string; + eventTableName?: string; hasAgents?: boolean; + hasAttachments?: boolean; hasPlans?: boolean; + hasRepositoryResources?: boolean; hasResources?: boolean; + hasRuns?: boolean; messageTableId?: string; messageTableName?: string; personaTableId?: string; @@ -11988,16 +13249,21 @@ export interface CreateAgentModuleInput { promptsTableName?: string; provisions?: Record; publicSchemaName?: string; + resourceRepositoryTableId?: string; + resourceRepositoryTableName?: string; resourceTableId?: string; resourceTableName?: string; resources?: Record; + runTableId?: string; + runTableName?: string; schemaId?: string; scope: string; - shared?: boolean; taskTableId?: string; taskTableName?: string; threadTableId?: string; threadTableName?: string; + workspaceTableId?: string; + workspaceTableName?: string; }; } export interface AgentModulePatch { @@ -12006,11 +13272,17 @@ export interface AgentModulePatch { apiName?: string | null; databaseId?: string | null; defaultCapabilities?: string[] | null; + defaultVisibility?: string | null; entityField?: string | null; entityTableId?: string | null; + eventTableId?: string | null; + eventTableName?: string | null; hasAgents?: boolean | null; + hasAttachments?: boolean | null; hasPlans?: boolean | null; + hasRepositoryResources?: boolean | null; hasResources?: boolean | null; + hasRuns?: boolean | null; messageTableId?: string | null; messageTableName?: string | null; personaTableId?: string | null; @@ -12026,16 +13298,21 @@ export interface AgentModulePatch { promptsTableName?: string | null; provisions?: Record | null; publicSchemaName?: string | null; + resourceRepositoryTableId?: string | null; + resourceRepositoryTableName?: string | null; resourceTableId?: string | null; resourceTableName?: string | null; resources?: Record | null; + runTableId?: string | null; + runTableName?: string | null; schemaId?: string | null; scope?: string | null; - shared?: boolean | null; taskTableId?: string | null; taskTableName?: string | null; threadTableId?: string | null; threadTableName?: string | null; + workspaceTableId?: string | null; + workspaceTableName?: string | null; } export interface UpdateAgentModuleInput { clientMutationId?: string; @@ -12110,6 +13387,7 @@ export interface CreateAppModuleInput { apiName?: string; appComponentsTableId?: string; appComponentsTableName?: string; + appStoreIdentitiesTableName?: string; appsTableId?: string; appsTableName?: string; catalogModuleId?: string; @@ -12132,6 +13410,7 @@ export interface AppModulePatch { apiName?: string | null; appComponentsTableId?: string | null; appComponentsTableName?: string | null; + appStoreIdentitiesTableName?: string | null; appsTableId?: string | null; appsTableName?: string | null; catalogModuleId?: string | null; @@ -12231,9 +13510,12 @@ export interface DeleteBillingModuleInput { export interface CreateBillingProviderModuleInput { clientMutationId?: string; billingProviderModule: { + activatePlanSubscriptionFunction?: string; apiName?: string; billingCustomersTableId?: string; billingCustomersTableName?: string; + billingDisputesTableId?: string; + billingDisputesTableName?: string; billingInvoicesTableId?: string; billingInvoicesTableName?: string; billingPricesTableId?: string; @@ -12247,6 +13529,12 @@ export interface CreateBillingProviderModuleInput { billingWebhookEventsTableId?: string; billingWebhookEventsTableName?: string; databaseId: string; + getActivePlanPricingFunction?: string; + getBillingCustomerFunction?: string; + getBillingPriceFunction?: string; + getBillingProductFunction?: string; + getBillingSubscriptionFunction?: string; + getFallbackFreePlanFunction?: string; listPendingUsageSyncFunction?: string; markUsageSyncedFunction?: string; prefix?: string; @@ -12256,16 +13544,25 @@ export interface CreateBillingProviderModuleInput { processBillingEventFunction?: string; productsTableId?: string; provider?: string; + recordDisputeFunction?: string; recordRefundFunction?: string; schemaId?: string; subscriptionsTableId?: string; + sweepOverdueSubscriptionsFunction?: string; + upsertBillingCustomerFunction?: string; + upsertBillingPriceFunction?: string; + upsertBillingProductFunction?: string; + upsertBillingSubscriptionFunction?: string; upsertInvoiceFunction?: string; }; } export interface BillingProviderModulePatch { + activatePlanSubscriptionFunction?: string | null; apiName?: string | null; billingCustomersTableId?: string | null; billingCustomersTableName?: string | null; + billingDisputesTableId?: string | null; + billingDisputesTableName?: string | null; billingInvoicesTableId?: string | null; billingInvoicesTableName?: string | null; billingPricesTableId?: string | null; @@ -12279,6 +13576,12 @@ export interface BillingProviderModulePatch { billingWebhookEventsTableId?: string | null; billingWebhookEventsTableName?: string | null; databaseId?: string | null; + getActivePlanPricingFunction?: string | null; + getBillingCustomerFunction?: string | null; + getBillingPriceFunction?: string | null; + getBillingProductFunction?: string | null; + getBillingSubscriptionFunction?: string | null; + getFallbackFreePlanFunction?: string | null; listPendingUsageSyncFunction?: string | null; markUsageSyncedFunction?: string | null; prefix?: string | null; @@ -12288,9 +13591,15 @@ export interface BillingProviderModulePatch { processBillingEventFunction?: string | null; productsTableId?: string | null; provider?: string | null; + recordDisputeFunction?: string | null; recordRefundFunction?: string | null; schemaId?: string | null; subscriptionsTableId?: string | null; + sweepOverdueSubscriptionsFunction?: string | null; + upsertBillingCustomerFunction?: string | null; + upsertBillingPriceFunction?: string | null; + upsertBillingProductFunction?: string | null; + upsertBillingSubscriptionFunction?: string | null; upsertInvoiceFunction?: string | null; } export interface UpdateBillingProviderModuleInput { @@ -12482,6 +13791,8 @@ export interface CreateCatalogModuleInput { apiName?: string; apisTableId?: string; apisTableName?: string; + appStoreIdentitiesTableId?: string; + appStoreIdentitiesTableName?: string; appsTableId?: string; appsTableName?: string; bindingsTableId?: string; @@ -12495,12 +13806,18 @@ export interface CreateCatalogModuleInput { entityTableId?: string; functionsTableId?: string; functionsTableName?: string; + imagesTableId?: string; + imagesTableName?: string; + managedDomainsTableId?: string; + managedDomainsTableName?: string; namespacesTableId?: string; namespacesTableName?: string; policies?: Record; privateApiName?: string; provisions?: Record; publicSchemaName?: string; + redirectsTableId?: string; + redirectsTableName?: string; resourceDefinitionsTableId?: string; resourceDefinitionsTableName?: string; resourceInstallationsTableId?: string; @@ -12525,6 +13842,8 @@ export interface CatalogModulePatch { apiName?: string | null; apisTableId?: string | null; apisTableName?: string | null; + appStoreIdentitiesTableId?: string | null; + appStoreIdentitiesTableName?: string | null; appsTableId?: string | null; appsTableName?: string | null; bindingsTableId?: string | null; @@ -12538,12 +13857,18 @@ export interface CatalogModulePatch { entityTableId?: string | null; functionsTableId?: string | null; functionsTableName?: string | null; + imagesTableId?: string | null; + imagesTableName?: string | null; + managedDomainsTableId?: string | null; + managedDomainsTableName?: string | null; namespacesTableId?: string | null; namespacesTableName?: string | null; policies?: Record | null; privateApiName?: string | null; provisions?: Record | null; publicSchemaName?: string | null; + redirectsTableId?: string | null; + redirectsTableName?: string | null; resourceDefinitionsTableId?: string | null; resourceDefinitionsTableName?: string | null; resourceInstallationsTableId?: string | null; @@ -12572,87 +13897,123 @@ export interface DeleteCatalogModuleInput { clientMutationId?: string; id: string; } -export interface CreateComputeLogModuleInput { +export interface CreateClusterModuleInput { clientMutationId?: string; - computeLogModule: { - actorFkTableId?: string; + clusterModule: { apiName?: string; - computeLogTableId?: string; - computeLogTableName?: string; + clusterEventsTableId?: string; + clusterEventsTableName?: string; + clustersTableId?: string; + clustersTableName?: string; databaseId: string; + databasePlacementsTableId?: string; + databasePlacementsTableName?: string; + databaseServersTableId?: string; + databaseServersTableName?: string; + defaultCapabilities?: string[]; entityField?: string; - entityFkTableId?: string; - interval?: string; + partitionInterval?: string; + physicalDatabasesTableId?: string; + physicalDatabasesTableName?: string; + policies?: Record; prefix?: string; premake?: number; privateApiName?: string; privateSchemaId?: string; privateSchemaName?: string; + provisions?: Record; publicSchemaName?: string; retention?: string; schemaId?: string; - scope: string; - usageSummaryTableId?: string; - usageSummaryTableName?: string; + scope?: string; }; } -export interface ComputeLogModulePatch { - actorFkTableId?: string | null; +export interface ClusterModulePatch { apiName?: string | null; - computeLogTableId?: string | null; - computeLogTableName?: string | null; + clusterEventsTableId?: string | null; + clusterEventsTableName?: string | null; + clustersTableId?: string | null; + clustersTableName?: string | null; databaseId?: string | null; + databasePlacementsTableId?: string | null; + databasePlacementsTableName?: string | null; + databaseServersTableId?: string | null; + databaseServersTableName?: string | null; + defaultCapabilities?: string[] | null; entityField?: string | null; - entityFkTableId?: string | null; - interval?: string | null; + partitionInterval?: string | null; + physicalDatabasesTableId?: string | null; + physicalDatabasesTableName?: string | null; + policies?: Record | null; prefix?: string | null; premake?: number | null; privateApiName?: string | null; privateSchemaId?: string | null; privateSchemaName?: string | null; + provisions?: Record | null; publicSchemaName?: string | null; retention?: string | null; schemaId?: string | null; scope?: string | null; - usageSummaryTableId?: string | null; - usageSummaryTableName?: string | null; } -export interface UpdateComputeLogModuleInput { +export interface UpdateClusterModuleInput { clientMutationId?: string; id: string; - computeLogModulePatch: ComputeLogModulePatch; + clusterModulePatch: ClusterModulePatch; } -export interface DeleteComputeLogModuleInput { +export interface DeleteClusterModuleInput { clientMutationId?: string; id: string; } -export interface CreateConfigSecretsUserModuleInput { +export interface CreateComputeLogModuleInput { clientMutationId?: string; - configSecretsUserModule: { + computeLogModule: { apiName?: string; + computeLogTableId?: string; + computeLogTableName?: string; databaseId: string; entityField?: string; + interval?: string; + prefix?: string; + premake?: number; privateApiName?: string; + privateSchemaId?: string; + privateSchemaName?: string; + publicSchemaName?: string; + retention?: string; + rollupFunctionName?: string; schemaId?: string; - tableId?: string; - tableName?: string; + scope: string; + usageSummaryTableId?: string; + usageSummaryTableName?: string; }; } -export interface ConfigSecretsUserModulePatch { +export interface ComputeLogModulePatch { apiName?: string | null; + computeLogTableId?: string | null; + computeLogTableName?: string | null; databaseId?: string | null; entityField?: string | null; + interval?: string | null; + prefix?: string | null; + premake?: number | null; privateApiName?: string | null; + privateSchemaId?: string | null; + privateSchemaName?: string | null; + publicSchemaName?: string | null; + retention?: string | null; + rollupFunctionName?: string | null; schemaId?: string | null; - tableId?: string | null; - tableName?: string | null; + scope?: string | null; + usageSummaryTableId?: string | null; + usageSummaryTableName?: string | null; } -export interface UpdateConfigSecretsUserModuleInput { +export interface UpdateComputeLogModuleInput { clientMutationId?: string; id: string; - configSecretsUserModulePatch: ConfigSecretsUserModulePatch; + computeLogModulePatch: ComputeLogModulePatch; } -export interface DeleteConfigSecretsUserModuleInput { +export interface DeleteComputeLogModuleInput { clientMutationId?: string; id: string; } @@ -12850,6 +14211,7 @@ export interface CreateDatabaseProvisionModuleInput { clientMutationId?: string; databaseProvisionModule: { async?: boolean; + bootstrapActorId?: string; bootstrapError?: string; bootstrapStatus?: string; bootstrapUser?: boolean; @@ -12869,6 +14231,7 @@ export interface CreateDatabaseProvisionModuleInput { } export interface DatabaseProvisionModulePatch { async?: boolean | null; + bootstrapActorId?: string | null; bootstrapError?: string | null; bootstrapStatus?: string | null; bootstrapUser?: boolean | null; @@ -13734,6 +15097,7 @@ export interface CreateFunctionModuleInput { schedulesTableId?: string; schemaId?: string; scope: string; + storageKey?: string; }; } export interface FunctionModulePatch { @@ -13758,6 +15122,7 @@ export interface FunctionModulePatch { schedulesTableId?: string | null; schemaId?: string | null; scope?: string | null; + storageKey?: string | null; } export interface UpdateFunctionModuleInput { clientMutationId?: string; @@ -13932,62 +15297,6 @@ export interface DeleteHierarchyModuleInput { clientMutationId?: string; id: string; } -export interface CreateHttpRouteModuleInput { - clientMutationId?: string; - httpRouteModule: { - apiName?: string; - databaseId: string; - defaultCapabilities?: string[]; - entityField?: string; - entityTableId?: string; - functionModuleId?: string; - httpRoutesTableId?: string; - httpRoutesTableName?: string; - policies?: Record; - prefix?: string; - privateApiName?: string; - privateSchemaId?: string; - privateSchemaName?: string; - provisions?: Record; - publicSchemaName?: string; - resolverFunctionName?: string; - resourceModuleId?: string; - schemaId?: string; - scope: string; - storageModuleId?: string; - }; -} -export interface HttpRouteModulePatch { - apiName?: string | null; - databaseId?: string | null; - defaultCapabilities?: string[] | null; - entityField?: string | null; - entityTableId?: string | null; - functionModuleId?: string | null; - httpRoutesTableId?: string | null; - httpRoutesTableName?: string | null; - policies?: Record | null; - prefix?: string | null; - privateApiName?: string | null; - privateSchemaId?: string | null; - privateSchemaName?: string | null; - provisions?: Record | null; - publicSchemaName?: string | null; - resolverFunctionName?: string | null; - resourceModuleId?: string | null; - schemaId?: string | null; - scope?: string | null; - storageModuleId?: string | null; -} -export interface UpdateHttpRouteModuleInput { - clientMutationId?: string; - id: string; - httpRouteModulePatch: HttpRouteModulePatch; -} -export interface DeleteHttpRouteModuleInput { - clientMutationId?: string; - id: string; -} export interface CreateI18NModuleInput { clientMutationId?: string; i18NModule: { @@ -14058,17 +15367,75 @@ export interface DeleteIdentityProvidersModuleInput { clientMutationId?: string; id: string; } -export interface CreateInferenceLogModuleInput { +export interface CreateImageModuleInput { clientMutationId?: string; - inferenceLogModule: { - actorFkTableId?: string; + imageModule: { apiName?: string; databaseId: string; + defaultCapabilities?: string[]; entityField?: string; - entityFkTableId?: string; - inferenceLogTableId?: string; - inferenceLogTableName?: string; - interval?: string; + entityTableId?: string; + imageGrantsTableId?: string; + imageGrantsTableName?: string; + imagesTableId?: string; + imagesTableName?: string; + policies?: Record; + prefix?: string; + privateApiName?: string; + privateSchemaId?: string; + privateSchemaName?: string; + provisions?: Record; + publicSchemaName?: string; + registriesTableId?: string; + registriesTableName?: string; + registryGrantsTableId?: string; + registryGrantsTableName?: string; + schemaId?: string; + scope: string; + }; +} +export interface ImageModulePatch { + apiName?: string | null; + databaseId?: string | null; + defaultCapabilities?: string[] | null; + entityField?: string | null; + entityTableId?: string | null; + imageGrantsTableId?: string | null; + imageGrantsTableName?: string | null; + imagesTableId?: string | null; + imagesTableName?: string | null; + policies?: Record | null; + prefix?: string | null; + privateApiName?: string | null; + privateSchemaId?: string | null; + privateSchemaName?: string | null; + provisions?: Record | null; + publicSchemaName?: string | null; + registriesTableId?: string | null; + registriesTableName?: string | null; + registryGrantsTableId?: string | null; + registryGrantsTableName?: string | null; + schemaId?: string | null; + scope?: string | null; +} +export interface UpdateImageModuleInput { + clientMutationId?: string; + id: string; + imageModulePatch: ImageModulePatch; +} +export interface DeleteImageModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateInferenceLogModuleInput { + clientMutationId?: string; + inferenceLogModule: { + apiName?: string; + databaseId: string; + entityField?: string; + inferenceLogTableId?: string; + inferenceLogTableName?: string; + interval?: string; prefix?: string; premake?: number; privateApiName?: string; @@ -14076,6 +15443,7 @@ export interface CreateInferenceLogModuleInput { privateSchemaName?: string; publicSchemaName?: string; retention?: string; + rollupFunctionName?: string; schemaId?: string; scope: string; usageSummaryTableId?: string; @@ -14083,11 +15451,9 @@ export interface CreateInferenceLogModuleInput { }; } export interface InferenceLogModulePatch { - actorFkTableId?: string | null; apiName?: string | null; databaseId?: string | null; entityField?: string | null; - entityFkTableId?: string | null; inferenceLogTableId?: string | null; inferenceLogTableName?: string | null; interval?: string | null; @@ -14098,6 +15464,7 @@ export interface InferenceLogModulePatch { privateSchemaName?: string | null; publicSchemaName?: string | null; retention?: string | null; + rollupFunctionName?: string | null; schemaId?: string | null; scope?: string | null; usageSummaryTableId?: string | null; @@ -14246,6 +15613,52 @@ export interface DeleteIntegrationProvidersModuleInput { clientMutationId?: string; id: string; } +export interface CreateInternalConfigModuleInput { + clientMutationId?: string; + internalConfigModule: { + apiName?: string; + databaseId: string; + entityField?: string; + entityTableId?: string; + internalConfigTableId?: string; + internalConfigTableName?: string; + policies?: Record; + prefix?: string; + privateApiName?: string; + privateSchemaId?: string; + privateSchemaName?: string; + provisions?: Record; + publicSchemaName?: string; + schemaId?: string; + scope: string; + }; +} +export interface InternalConfigModulePatch { + apiName?: string | null; + databaseId?: string | null; + entityField?: string | null; + entityTableId?: string | null; + internalConfigTableId?: string | null; + internalConfigTableName?: string | null; + policies?: Record | null; + prefix?: string | null; + privateApiName?: string | null; + privateSchemaId?: string | null; + privateSchemaName?: string | null; + provisions?: Record | null; + publicSchemaName?: string | null; + schemaId?: string | null; + scope?: string | null; +} +export interface UpdateInternalConfigModuleInput { + clientMutationId?: string; + id: string; + internalConfigModulePatch: InternalConfigModulePatch; +} +export interface DeleteInternalConfigModuleInput { + clientMutationId?: string; + id: string; +} export interface CreateInternalSecretsModuleInput { clientMutationId?: string; internalSecretsModule: { @@ -14344,6 +15757,54 @@ export interface DeleteInvitesModuleInput { clientMutationId?: string; id: string; } +export interface CreateK8sAdmissionModuleInput { + clientMutationId?: string; + k8sAdmissionModule: { + apiName?: string; + databaseId: string; + entityTableId?: string; + k8sResourceKindsTableId?: string; + k8sSpecRulesTableId?: 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 K8sAdmissionModulePatch { + apiName?: string | null; + databaseId?: string | null; + entityTableId?: string | null; + k8sResourceKindsTableId?: string | null; + k8sSpecRulesTableId?: 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 UpdateK8sAdmissionModuleInput { + clientMutationId?: string; + id: string; + k8sAdmissionModulePatch: K8sAdmissionModulePatch; +} +export interface DeleteK8sAdmissionModuleInput { + clientMutationId?: string; + id: string; +} export interface CreateLimitsModuleInput { clientMutationId?: string; limitsModule: { @@ -14434,6 +15895,68 @@ export interface DeleteLimitsModuleInput { clientMutationId?: string; id: string; } +export interface CreateMachineModuleInput { + clientMutationId?: string; + machineModule: { + apiName?: string; + databaseId: string; + defaultCapabilities?: string[]; + entityField?: string; + entityTableId?: string; + machineMessagesTableId?: string; + machineMessagesTableName?: string; + machineSessionsTableId?: string; + machineSessionsTableName?: string; + machinesTableId?: string; + machinesTableName?: string; + partitionInterval?: string; + policies?: Record; + prefix?: string; + premake?: number; + privateApiName?: string; + privateSchemaId?: string; + privateSchemaName?: string; + provisions?: Record; + publicSchemaName?: string; + retention?: string; + schemaId?: string; + scope: string; + }; +} +export interface MachineModulePatch { + apiName?: string | null; + databaseId?: string | null; + defaultCapabilities?: string[] | null; + entityField?: string | null; + entityTableId?: string | null; + machineMessagesTableId?: string | null; + machineMessagesTableName?: string | null; + machineSessionsTableId?: string | null; + machineSessionsTableName?: string | null; + machinesTableId?: string | null; + machinesTableName?: string | null; + partitionInterval?: string | null; + policies?: Record | null; + prefix?: string | null; + premake?: number | null; + privateApiName?: string | null; + privateSchemaId?: string | null; + privateSchemaName?: string | null; + provisions?: Record | null; + publicSchemaName?: string | null; + retention?: string | null; + schemaId?: string | null; + scope?: string | null; +} +export interface UpdateMachineModuleInput { + clientMutationId?: string; + id: string; + machineModulePatch: MachineModulePatch; +} +export interface DeleteMachineModuleInput { + clientMutationId?: string; + id: string; +} export interface CreateMembershipTypesModuleInput { clientMutationId?: string; membershipTypesModule: { @@ -14564,6 +16087,7 @@ export interface CreateMerkleStoreModuleInput { commitTableId?: string; databaseId: string; entityField?: string; + entityTableId?: string; functionPrefix?: string; objectTableId?: string; prefix?: string; @@ -14583,6 +16107,7 @@ export interface MerkleStoreModulePatch { commitTableId?: string | null; databaseId?: string | null; entityField?: string | null; + entityTableId?: string | null; functionPrefix?: string | null; objectTableId?: string | null; prefix?: string | null; @@ -14766,12 +16291,17 @@ export interface CreatePagesModuleInput { pagesTableId?: string; policies?: Record; prefix: string; + previewCommitFunctionName?: string; + previewSetFunctionName?: string; + previewTokenMintFunctionName?: string; + previewTokenVerifierFunctionName?: string; privateApiName?: string; privateSchemaId?: string; privateSchemaName?: string; provisions?: Record; publicSchemaId?: string; publicSchemaName?: string; + releaseManifestFunctionName?: string; scope: string; siteSurfaceModuleId?: string; sitesTableId?: string; @@ -14786,12 +16316,17 @@ export interface PagesModulePatch { pagesTableId?: string | null; policies?: Record | null; prefix?: string | null; + previewCommitFunctionName?: string | null; + previewSetFunctionName?: string | null; + previewTokenMintFunctionName?: string | null; + previewTokenVerifierFunctionName?: string | null; privateApiName?: string | null; privateSchemaId?: string | null; privateSchemaName?: string | null; provisions?: Record | null; publicSchemaId?: string | null; publicSchemaName?: string | null; + releaseManifestFunctionName?: string | null; scope?: string | null; siteSurfaceModuleId?: string | null; sitesTableId?: string | null; @@ -14909,10 +16444,12 @@ export interface CreatePrincipalAuthModuleInput { principalScopeOverridesTableId?: string; principalsTableId?: string; principalsTableName?: string; + privateSchemaId?: string; revokeOrgApiKeyFunction?: string; schemaId?: string; sessionCredentialsTableId?: string; sessionsTableId?: string; + sweepExpiredPrincipalsFunction?: string; usersTableId?: string; }; } @@ -14929,10 +16466,12 @@ export interface PrincipalAuthModulePatch { principalScopeOverridesTableId?: string | null; principalsTableId?: string | null; principalsTableName?: string | null; + privateSchemaId?: string | null; revokeOrgApiKeyFunction?: string | null; schemaId?: string | null; sessionCredentialsTableId?: string | null; sessionsTableId?: string | null; + sweepExpiredPrincipalsFunction?: string | null; usersTableId?: string | null; } export interface UpdatePrincipalAuthModuleInput { @@ -15134,6 +16673,66 @@ export interface DeleteRealtimeModuleInput { clientMutationId?: string; id: string; } +export interface CreateRefusalLogModuleInput { + clientMutationId?: string; + refusalLogModule: { + apiName?: string; + databaseId: string; + entityField?: string; + logInterval?: string; + logPremake?: number; + logRetention?: string; + logTableId?: string; + logTableName?: string; + prefix?: string; + privateApiName?: string; + privateSchemaId?: string; + privateSchemaName?: string; + publicSchemaName?: string; + recordRefusalsFunction?: string; + rollupRefusalUsageSummaryFunction?: string; + schemaId?: string; + scope: string; + summaryInterval?: string; + summaryPremake?: number; + summaryRetention?: string; + summaryTableId?: string; + summaryTableName?: string; + }; +} +export interface RefusalLogModulePatch { + apiName?: string | null; + databaseId?: string | null; + entityField?: string | null; + logInterval?: string | null; + logPremake?: number | null; + logRetention?: string | null; + logTableId?: string | null; + logTableName?: string | null; + prefix?: string | null; + privateApiName?: string | null; + privateSchemaId?: string | null; + privateSchemaName?: string | null; + publicSchemaName?: string | null; + recordRefusalsFunction?: string | null; + rollupRefusalUsageSummaryFunction?: string | null; + schemaId?: string | null; + scope?: string | null; + summaryInterval?: string | null; + summaryPremake?: number | null; + summaryRetention?: string | null; + summaryTableId?: string | null; + summaryTableName?: string | null; +} +export interface UpdateRefusalLogModuleInput { + clientMutationId?: string; + id: string; + refusalLogModulePatch: RefusalLogModulePatch; +} +export interface DeleteRefusalLogModuleInput { + clientMutationId?: string; + id: string; +} export interface CreateRelationProvisionInput { clientMutationId?: string; relationProvision: { @@ -15196,10 +16795,106 @@ export interface DeleteRelationProvisionInput { clientMutationId?: string; id: string; } +export interface CreateRepositoryModuleInput { + clientMutationId?: string; + repositoryModule: { + apiName?: string; + buildStepsTableId?: string; + buildStepsTableName?: string; + buildsTableId?: string; + buildsTableName?: string; + databaseId: string; + defaultCapabilities?: string[]; + entityField?: string; + entityTableId?: string; + hasAttachments?: boolean; + hasBuilds?: boolean; + policies?: Record; + prefix?: string; + privateApiName?: string; + privateSchemaId?: string; + privateSchemaName?: string; + proposalCommentsTableId?: string; + proposalCommentsTableName?: string; + proposalFileViewsTableId?: string; + proposalFileViewsTableName?: string; + proposalReactionsTableId?: string; + proposalReactionsTableName?: string; + proposalReviewsTableId?: string; + proposalReviewsTableName?: string; + proposalsTableId?: string; + proposalsTableName?: string; + provisions?: Record; + publicSchemaName?: string; + repositoriesTableId?: string; + repositoriesTableName?: string; + repositoryEventsTableId?: string; + repositoryEventsTableName?: string; + repositoryRequiredChecksTableId?: string; + repositoryRequiredChecksTableName?: string; + schemaId?: string; + scope: string; + search?: Record; + workflowsTableId?: string; + workflowsTableName?: string; + }; +} +export interface RepositoryModulePatch { + apiName?: string | null; + buildStepsTableId?: string | null; + buildStepsTableName?: string | null; + buildsTableId?: string | null; + buildsTableName?: string | null; + databaseId?: string | null; + defaultCapabilities?: string[] | null; + entityField?: string | null; + entityTableId?: string | null; + hasAttachments?: boolean | null; + hasBuilds?: boolean | null; + policies?: Record | null; + prefix?: string | null; + privateApiName?: string | null; + privateSchemaId?: string | null; + privateSchemaName?: string | null; + proposalCommentsTableId?: string | null; + proposalCommentsTableName?: string | null; + proposalFileViewsTableId?: string | null; + proposalFileViewsTableName?: string | null; + proposalReactionsTableId?: string | null; + proposalReactionsTableName?: string | null; + proposalReviewsTableId?: string | null; + proposalReviewsTableName?: string | null; + proposalsTableId?: string | null; + proposalsTableName?: string | null; + provisions?: Record | null; + publicSchemaName?: string | null; + repositoriesTableId?: string | null; + repositoriesTableName?: string | null; + repositoryEventsTableId?: string | null; + repositoryEventsTableName?: string | null; + repositoryRequiredChecksTableId?: string | null; + repositoryRequiredChecksTableName?: string | null; + schemaId?: string | null; + scope?: string | null; + search?: Record | null; + workflowsTableId?: string | null; + workflowsTableName?: string | null; +} +export interface UpdateRepositoryModuleInput { + clientMutationId?: string; + id: string; + repositoryModulePatch: RepositoryModulePatch; +} +export interface DeleteRepositoryModuleInput { + clientMutationId?: string; + id: string; +} export interface CreateResourceModuleInput { clientMutationId?: string; resourceModule: { apiName?: string; + builderBindingsTableId?: string; + builderBindingsTableName?: string; databaseId: string; defaultCapabilities?: string[]; entityField?: string; @@ -15214,6 +16909,8 @@ export interface CreateResourceModuleInput { privateSchemaName?: string; provisions?: Record; publicSchemaName?: string; + registryBindingsTableId?: string; + registryBindingsTableName?: string; requirementsStateViewName?: string; resolvedRequirementsViewName?: string; resourceBillingRollupFunction?: string; @@ -15238,6 +16935,8 @@ export interface CreateResourceModuleInput { } export interface ResourceModulePatch { apiName?: string | null; + builderBindingsTableId?: string | null; + builderBindingsTableName?: string | null; databaseId?: string | null; defaultCapabilities?: string[] | null; entityField?: string | null; @@ -15252,6 +16951,8 @@ export interface ResourceModulePatch { privateSchemaName?: string | null; provisions?: Record | null; publicSchemaName?: string | null; + registryBindingsTableId?: string | null; + registryBindingsTableName?: string | null; requirementsStateViewName?: string | null; resolvedRequirementsViewName?: string | null; resourceBillingRollupFunction?: string | null; @@ -15343,6 +17044,8 @@ export interface CreateRouteModuleInput { privateSchemaName?: string; provisions?: Record; publicSchemaName?: string; + redirectsTableId?: string; + redirectsTableName?: string; resolverFunctionName?: string; routeBindingsTableId?: string; routeBindingsTableName?: string; @@ -15350,6 +17053,8 @@ export interface CreateRouteModuleInput { routesTableName?: string; schemaId?: string; scope: string; + servingSiteField?: string; + storageKey?: string; }; } export interface RouteModulePatch { @@ -15371,6 +17076,8 @@ export interface RouteModulePatch { privateSchemaName?: string | null; provisions?: Record | null; publicSchemaName?: string | null; + redirectsTableId?: string | null; + redirectsTableName?: string | null; resolverFunctionName?: string | null; routeBindingsTableId?: string | null; routeBindingsTableName?: string | null; @@ -15378,6 +17085,8 @@ export interface RouteModulePatch { routesTableName?: string | null; schemaId?: string | null; scope?: string | null; + servingSiteField?: string | null; + storageKey?: string | null; } export interface UpdateRouteModuleInput { clientMutationId?: string; @@ -15418,8 +17127,10 @@ export interface CreateSecureTableProvisionInput { databaseId: string; fields?: Record[]; grants?: Record; + module?: Record; nodes?: Record; outFields?: string[]; + owns?: Record; policies?: Record; schemaId?: string; tableId?: string; @@ -15431,8 +17142,10 @@ export interface SecureTableProvisionPatch { databaseId?: string | null; fields?: Record[] | null; grants?: Record | null; + module?: Record | null; nodes?: Record | null; outFields?: string[] | null; + owns?: Record | null; policies?: Record | null; schemaId?: string | null; tableId?: string | null; @@ -15538,12 +17251,15 @@ export interface CreateSiteSurfaceModuleInput { siteMetadataTableName?: string; siteModulesTableId?: string; siteModulesTableName?: string; + siteReleasesTableId?: string; + siteReleasesTableName?: string; siteThemesTableId?: string; siteThemesTableName?: string; siteWebConfigTableId?: string; siteWebConfigTableName?: string; sitesTableId?: string; sitesTableName?: string; + storageKey?: string; }; } export interface SiteSurfaceModulePatch { @@ -15572,12 +17288,15 @@ export interface SiteSurfaceModulePatch { siteMetadataTableName?: string | null; siteModulesTableId?: string | null; siteModulesTableName?: string | null; + siteReleasesTableId?: string | null; + siteReleasesTableName?: string | null; siteThemesTableId?: string | null; siteThemesTableName?: string | null; siteWebConfigTableId?: string | null; siteWebConfigTableName?: string | null; sitesTableId?: string | null; sitesTableName?: string | null; + storageKey?: string | null; } export interface UpdateSiteSurfaceModuleInput { clientMutationId?: string; @@ -15591,11 +17310,9 @@ export interface DeleteSiteSurfaceModuleInput { export interface CreateStorageLogModuleInput { clientMutationId?: string; storageLogModule: { - actorFkTableId?: string; apiName?: string; databaseId: string; entityField?: string; - entityFkTableId?: string; interval?: string; prefix?: string; premake?: number; @@ -15604,6 +17321,7 @@ export interface CreateStorageLogModuleInput { privateSchemaName?: string; publicSchemaName?: string; retention?: string; + rollupFunctionName?: string; schemaId?: string; scope: string; storageLogTableId?: string; @@ -15613,11 +17331,9 @@ export interface CreateStorageLogModuleInput { }; } export interface StorageLogModulePatch { - actorFkTableId?: string | null; apiName?: string | null; databaseId?: string | null; entityField?: string | null; - entityFkTableId?: string | null; interval?: string | null; prefix?: string | null; premake?: number | null; @@ -15626,6 +17342,7 @@ export interface StorageLogModulePatch { privateSchemaName?: string | null; publicSchemaName?: string | null; retention?: string | null; + rollupFunctionName?: string | null; schemaId?: string | null; scope?: string | null; storageLogTableId?: string | null; @@ -15668,6 +17385,7 @@ export interface CreateStorageModuleInput { hasCustomKeys?: boolean; hasPathShares?: boolean; hasVersioning?: boolean; + key?: string; maxBulkFiles?: number; maxBulkTotalSize?: string; maxFilenameLength?: number; @@ -15711,6 +17429,7 @@ export interface StorageModulePatch { hasCustomKeys?: boolean | null; hasPathShares?: boolean | null; hasVersioning?: boolean | null; + key?: string | null; maxBulkFiles?: number | null; maxBulkTotalSize?: string | null; maxFilenameLength?: number | null; @@ -15741,11 +17460,9 @@ export interface DeleteStorageModuleInput { export interface CreateTransferLogModuleInput { clientMutationId?: string; transferLogModule: { - actorFkTableId?: string; apiName?: string; databaseId: string; entityField?: string; - entityFkTableId?: string; interval?: string; prefix?: string; premake?: number; @@ -15754,6 +17471,7 @@ export interface CreateTransferLogModuleInput { privateSchemaName?: string; publicSchemaName?: string; retention?: string; + rollupFunctionName?: string; schemaId?: string; scope: string; transferLogTableId?: string; @@ -15763,11 +17481,9 @@ export interface CreateTransferLogModuleInput { }; } export interface TransferLogModulePatch { - actorFkTableId?: string | null; apiName?: string | null; databaseId?: string | null; entityField?: string | null; - entityFkTableId?: string | null; interval?: string | null; prefix?: string | null; premake?: number | null; @@ -15776,6 +17492,7 @@ export interface TransferLogModulePatch { privateSchemaName?: string | null; publicSchemaName?: string | null; retention?: string | null; + rollupFunctionName?: string | null; schemaId?: string | null; scope?: string | null; transferLogTableId?: string | null; @@ -15806,8 +17523,10 @@ export interface CreateUserAuthModuleInput { extendTokenExpires?: string; forgotPasswordFunction?: string; privateApiName?: string; + privateSchemaId?: string; requestCrossOriginTokenFunction?: string; resetPasswordFunction?: string; + revokeSessionTreeFunction?: string; schemaId?: string; secretsTableId?: string; sendAccountDeletionEmailFunction?: string; @@ -15819,6 +17538,7 @@ export interface CreateUserAuthModuleInput { signInFunction?: string; signOutFunction?: string; signUpFunction?: string; + sweepExpiredSessionsFunction?: string; usersTableId?: string; verifyEmailFunction?: string; verifyPasswordFunction?: string; @@ -15836,8 +17556,10 @@ export interface UserAuthModulePatch { extendTokenExpires?: string | null; forgotPasswordFunction?: string | null; privateApiName?: string | null; + privateSchemaId?: string | null; requestCrossOriginTokenFunction?: string | null; resetPasswordFunction?: string | null; + revokeSessionTreeFunction?: string | null; schemaId?: string | null; secretsTableId?: string | null; sendAccountDeletionEmailFunction?: string | null; @@ -15849,6 +17571,7 @@ export interface UserAuthModulePatch { signInFunction?: string | null; signOutFunction?: string | null; signUpFunction?: string | null; + sweepExpiredSessionsFunction?: string | null; usersTableId?: string | null; verifyEmailFunction?: string | null; verifyPasswordFunction?: string | null; @@ -16169,7 +17892,6 @@ export const connectionFieldsMap = { }, FunctionModule: { functionDeploymentModules: 'FunctionDeploymentModule', - httpRouteModules: 'HttpRouteModule', webhookModules: 'WebhookModule', }, GraphModule: { @@ -16182,6 +17904,7 @@ export const connectionFieldsMap = { contentPresetModules: 'ContentPresetModule', dbPresetModules: 'DbPresetModule', graphModules: 'GraphModule', + k8sAdmissionModules: 'K8sAdmissionModule', pagesModules: 'PagesModule', resourceModules: 'ResourceModule', }, @@ -16190,16 +17913,12 @@ export const connectionFieldsMap = { resourceModules: 'ResourceModule', webhookModules: 'WebhookModule', }, - ResourceModule: { - httpRouteModules: 'HttpRouteModule', - }, SiteSurfaceModule: { emailSenderModules: 'EmailSenderModule', pagesModules: 'PagesModule', }, StorageModule: { fileRefFields: 'FileRefField', - httpRouteModules: 'HttpRouteModule', }, } as Record>; // ============ Custom Input Types (from schema) ============ @@ -16358,15 +18077,6 @@ export interface FunctionModuleToManyFunctionDeploymentModuleFilter { /** Filters to entities where at least one related entity matches. */ some?: FunctionDeploymentModuleFilter; } -/** A filter to be used against many `HttpRouteModule` object types. All fields are combined with a logical ‘and.’ */ -export interface FunctionModuleToManyHttpRouteModuleFilter { - /** Filters to entities where every related entity matches. */ - every?: HttpRouteModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: HttpRouteModuleFilter; - /** Filters to entities where at least one related entity matches. */ - some?: HttpRouteModuleFilter; -} /** A filter to be used against many `WebhookModule` object types. All fields are combined with a logical ‘and.’ */ export interface FunctionModuleToManyWebhookModuleFilter { /** Filters to entities where every related entity matches. */ @@ -16421,6 +18131,15 @@ export interface MerkleStoreModuleToManyGraphModuleFilter { /** Filters to entities where at least one related entity matches. */ some?: GraphModuleFilter; } +/** A filter to be used against many `K8sAdmissionModule` object types. All fields are combined with a logical ‘and.’ */ +export interface MerkleStoreModuleToManyK8sAdmissionModuleFilter { + /** Filters to entities where every related entity matches. */ + every?: K8sAdmissionModuleFilter; + /** Filters to entities where no related entity matches. */ + none?: K8sAdmissionModuleFilter; + /** Filters to entities where at least one related entity matches. */ + some?: K8sAdmissionModuleFilter; +} /** A filter to be used against many `PagesModule` object types. All fields are combined with a logical ‘and.’ */ export interface MerkleStoreModuleToManyPagesModuleFilter { /** Filters to entities where every related entity matches. */ @@ -16466,15 +18185,6 @@ export interface NamespaceModuleToManyWebhookModuleFilter { /** Filters to entities where at least one related entity matches. */ some?: WebhookModuleFilter; } -/** A filter to be used against many `HttpRouteModule` object types. All fields are combined with a logical ‘and.’ */ -export interface ResourceModuleToManyHttpRouteModuleFilter { - /** Filters to entities where every related entity matches. */ - every?: HttpRouteModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: HttpRouteModuleFilter; - /** Filters to entities where at least one related entity matches. */ - some?: HttpRouteModuleFilter; -} /** A filter to be used against JSON List fields. All fields are combined with a logical ‘and.’ */ export interface JSONListFilter { /** Any array item is equal to the specified value. */ @@ -16541,15 +18251,6 @@ export interface StorageModuleToManyFileRefFieldFilter { /** 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. */ - every?: HttpRouteModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: HttpRouteModuleFilter; - /** Filters to entities where at least one related entity matches. */ - some?: HttpRouteModuleFilter; -} /** An input for mutations affecting `AgentModule` */ export interface AgentModuleInput { agentTableId?: string; @@ -16557,11 +18258,17 @@ export interface AgentModuleInput { apiName?: string; databaseId: string; defaultCapabilities?: string[]; + defaultVisibility?: string; entityField?: string; entityTableId?: string; + eventTableId?: string; + eventTableName?: string; hasAgents?: boolean; + hasAttachments?: boolean; hasPlans?: boolean; + hasRepositoryResources?: boolean; hasResources?: boolean; + hasRuns?: boolean; id?: string; messageTableId?: string; messageTableName?: string; @@ -16578,16 +18285,21 @@ export interface AgentModuleInput { promptsTableName?: string; provisions?: Record; publicSchemaName?: string; + resourceRepositoryTableId?: string; + resourceRepositoryTableName?: string; resourceTableId?: string; resourceTableName?: string; resources?: Record; + runTableId?: string; + runTableName?: string; schemaId?: string; scope: string; - shared?: boolean; taskTableId?: string; taskTableName?: string; threadTableId?: string; threadTableName?: string; + workspaceTableId?: string; + workspaceTableName?: string; } /** An input for mutations affecting `ApiSurfaceModule` */ export interface ApiSurfaceModuleInput { @@ -16619,6 +18331,7 @@ export interface AppModuleInput { apiName?: string; appComponentsTableId?: string; appComponentsTableName?: string; + appStoreIdentitiesTableName?: string; appsTableId?: string; appsTableName?: string; catalogModuleId?: string; @@ -16670,9 +18383,12 @@ export interface BillingModuleInput { } /** An input for mutations affecting `BillingProviderModule` */ export interface BillingProviderModuleInput { + activatePlanSubscriptionFunction?: string; apiName?: string; billingCustomersTableId?: string; billingCustomersTableName?: string; + billingDisputesTableId?: string; + billingDisputesTableName?: string; billingInvoicesTableId?: string; billingInvoicesTableName?: string; billingPricesTableId?: string; @@ -16686,6 +18402,12 @@ export interface BillingProviderModuleInput { billingWebhookEventsTableId?: string; billingWebhookEventsTableName?: string; databaseId: string; + getActivePlanPricingFunction?: string; + getBillingCustomerFunction?: string; + getBillingPriceFunction?: string; + getBillingProductFunction?: string; + getBillingSubscriptionFunction?: string; + getFallbackFreePlanFunction?: string; id?: string; listPendingUsageSyncFunction?: string; markUsageSyncedFunction?: string; @@ -16696,9 +18418,15 @@ export interface BillingProviderModuleInput { processBillingEventFunction?: string; productsTableId?: string; provider?: string; + recordDisputeFunction?: string; recordRefundFunction?: string; schemaId?: string; subscriptionsTableId?: string; + sweepOverdueSubscriptionsFunction?: string; + upsertBillingCustomerFunction?: string; + upsertBillingPriceFunction?: string; + upsertBillingProductFunction?: string; + upsertBillingSubscriptionFunction?: string; upsertInvoiceFunction?: string; } /** An input for mutations affecting `Blueprint` */ @@ -16826,6 +18554,8 @@ export interface CatalogModuleInput { apiName?: string; apisTableId?: string; apisTableName?: string; + appStoreIdentitiesTableId?: string; + appStoreIdentitiesTableName?: string; appsTableId?: string; appsTableName?: string; bindingsTableId?: string; @@ -16840,12 +18570,18 @@ export interface CatalogModuleInput { functionsTableId?: string; functionsTableName?: string; id?: string; + imagesTableId?: string; + imagesTableName?: string; + managedDomainsTableId?: string; + managedDomainsTableName?: string; namespacesTableId?: string; namespacesTableName?: string; policies?: Record; privateApiName?: string; provisions?: Record; publicSchemaName?: string; + redirectsTableId?: string; + redirectsTableName?: string; resourceDefinitionsTableId?: string; resourceDefinitionsTableName?: string; resourceInstallationsTableId?: string; @@ -16865,39 +18601,57 @@ export interface CatalogModuleInput { sitesWebConfigTableId?: string; sitesWebConfigTableName?: string; } -/** An input for mutations affecting `ComputeLogModule` */ -export interface ComputeLogModuleInput { - actorFkTableId?: string; +/** An input for mutations affecting `ClusterModule` */ +export interface ClusterModuleInput { apiName?: string; - computeLogTableId?: string; - computeLogTableName?: string; + clusterEventsTableId?: string; + clusterEventsTableName?: string; + clustersTableId?: string; + clustersTableName?: string; databaseId: string; + databasePlacementsTableId?: string; + databasePlacementsTableName?: string; + databaseServersTableId?: string; + databaseServersTableName?: string; + defaultCapabilities?: string[]; entityField?: string; - entityFkTableId?: string; id?: string; - interval?: string; + partitionInterval?: string; + physicalDatabasesTableId?: string; + physicalDatabasesTableName?: string; + policies?: Record; prefix?: string; premake?: number; privateApiName?: string; privateSchemaId?: string; privateSchemaName?: string; + provisions?: Record; publicSchemaName?: string; retention?: string; schemaId?: string; - scope: string; - usageSummaryTableId?: string; - usageSummaryTableName?: string; + scope?: string; } -/** An input for mutations affecting `ConfigSecretsUserModule` */ -export interface ConfigSecretsUserModuleInput { +/** An input for mutations affecting `ComputeLogModule` */ +export interface ComputeLogModuleInput { apiName?: string; + computeLogTableId?: string; + computeLogTableName?: string; databaseId: string; entityField?: string; id?: string; + interval?: string; + prefix?: string; + premake?: number; privateApiName?: string; + privateSchemaId?: string; + privateSchemaName?: string; + publicSchemaName?: string; + retention?: string; + rollupFunctionName?: string; schemaId?: string; - tableId?: string; - tableName?: string; + scope: string; + usageSummaryTableId?: string; + usageSummaryTableName?: string; } /** An input for mutations affecting `ConnectedAccountsModule` */ export interface ConnectedAccountsModuleInput { @@ -16979,11 +18733,13 @@ export interface DataCapabilitiesFieldInput { 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 */ async?: boolean; + /** The user whose identity is copied into the new database. Defaults to owner_id when NULL; set explicitly when owner_id is an organization */ + bootstrapActorId?: string; /** Error message from the most recent failed bootstrap attempt */ bootstrapError?: string; /** Status of the deferred owner bootstrap job: not_requested, pending, completed, or failed */ bootstrapStatus?: string; - /** When true, copies the owner user and password hash from source database to the newly provisioned database */ + /** When true, copies the bootstrap user and password hash from source database to the newly provisioned database */ bootstrapUser?: boolean; completedAt?: string; createdAt?: string; @@ -17001,7 +18757,7 @@ export interface DatabaseProvisionModuleInput { modules?: Record; /** Additional configuration options for provisioning */ options?: Record; - /** UUID of the user who owns this database */ + /** UUID of the entity that owns this database: a user, or an organization for an org-owned request */ ownerId: string; /** The database the owner user is copied from during bootstrap (captured from JWT context at provision time) */ sourceDatabaseId?: string; @@ -17629,6 +19385,7 @@ export interface FunctionModuleInput { schedulesTableId?: string; schemaId?: string; scope: string; + storageKey?: string; } /** An input for mutations affecting `GraphExecutionModule` */ export interface GraphExecutionModuleInput { @@ -17703,30 +19460,6 @@ export interface HierarchyModuleInput { sprtTableName?: string; usersTableId: string; } -/** An input for mutations affecting `HttpRouteModule` */ -export interface HttpRouteModuleInput { - apiName?: string; - databaseId: string; - defaultCapabilities?: string[]; - entityField?: string; - entityTableId?: string; - functionModuleId?: string; - httpRoutesTableId?: string; - httpRoutesTableName?: string; - id?: string; - policies?: Record; - prefix?: string; - privateApiName?: string; - privateSchemaId?: string; - privateSchemaName?: string; - provisions?: Record; - publicSchemaName?: string; - resolverFunctionName?: string; - resourceModuleId?: string; - schemaId?: string; - scope: string; - storageModuleId?: string; -} /** An input for mutations affecting `I18NModule` */ export interface I18NModuleInput { apiName?: string; @@ -17755,13 +19488,37 @@ export interface IdentityProvidersModuleInput { tableId?: string; tableName?: string; } +/** An input for mutations affecting `ImageModule` */ +export interface ImageModuleInput { + apiName?: string; + databaseId: string; + defaultCapabilities?: string[]; + entityField?: string; + entityTableId?: string; + id?: string; + imageGrantsTableId?: string; + imageGrantsTableName?: string; + imagesTableId?: string; + imagesTableName?: string; + policies?: Record; + prefix?: string; + privateApiName?: string; + privateSchemaId?: string; + privateSchemaName?: string; + provisions?: Record; + publicSchemaName?: string; + registriesTableId?: string; + registriesTableName?: string; + registryGrantsTableId?: string; + registryGrantsTableName?: string; + schemaId?: string; + scope: string; +} /** An input for mutations affecting `InferenceLogModule` */ export interface InferenceLogModuleInput { - actorFkTableId?: string; apiName?: string; databaseId: string; entityField?: string; - entityFkTableId?: string; id?: string; inferenceLogTableId?: string; inferenceLogTableName?: string; @@ -17773,6 +19530,7 @@ export interface InferenceLogModuleInput { privateSchemaName?: string; publicSchemaName?: string; retention?: string; + rollupFunctionName?: string; schemaId?: string; scope: string; usageSummaryTableId?: string; @@ -17833,6 +19591,25 @@ export interface IntegrationProvidersModuleInput { tableId?: string; tableName?: string; } +/** An input for mutations affecting `InternalConfigModule` */ +export interface InternalConfigModuleInput { + apiName?: string; + databaseId: string; + entityField?: string; + entityTableId?: string; + id?: string; + internalConfigTableId?: string; + internalConfigTableName?: string; + policies?: Record; + prefix?: string; + privateApiName?: string; + privateSchemaId?: string; + privateSchemaName?: string; + provisions?: Record; + publicSchemaName?: string; + schemaId?: string; + scope: string; +} /** An input for mutations affecting `InternalSecretsModule` */ export interface InternalSecretsModuleInput { apiName?: string; @@ -17874,6 +19651,27 @@ export interface InvitesModuleInput { submitInviteCodeFunction?: string; usersTableId?: string; } +/** An input for mutations affecting `K8sAdmissionModule` */ +export interface K8sAdmissionModuleInput { + apiName?: string; + createdAt?: string; + databaseId: string; + entityTableId?: string; + id?: string; + k8sResourceKindsTableId?: string; + k8sSpecRulesTableId?: 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 `LimitsModule` */ export interface LimitsModuleInput { actorTableId?: string; @@ -17915,6 +19713,33 @@ export interface LimitsModuleInput { tableId?: string; tableName?: string; } +/** An input for mutations affecting `MachineModule` */ +export interface MachineModuleInput { + apiName?: string; + databaseId: string; + defaultCapabilities?: string[]; + entityField?: string; + entityTableId?: string; + id?: string; + machineMessagesTableId?: string; + machineMessagesTableName?: string; + machineSessionsTableId?: string; + machineSessionsTableName?: string; + machinesTableId?: string; + machinesTableName?: string; + partitionInterval?: string; + policies?: Record; + prefix?: string; + premake?: number; + privateApiName?: string; + privateSchemaId?: string; + privateSchemaName?: string; + provisions?: Record; + publicSchemaName?: string; + retention?: string; + schemaId?: string; + scope: string; +} /** An input for mutations affecting `MembershipTypesModule` */ export interface MembershipTypesModuleInput { databaseId: string; @@ -17976,6 +19801,7 @@ export interface MerkleStoreModuleInput { createdAt?: string; databaseId: string; entityField?: string; + entityTableId?: string; functionPrefix?: string; id?: string; objectTableId?: string; @@ -18064,12 +19890,17 @@ export interface PagesModuleInput { pagesTableId?: string; policies?: Record; prefix: string; + previewCommitFunctionName?: string; + previewSetFunctionName?: string; + previewTokenMintFunctionName?: string; + previewTokenVerifierFunctionName?: string; privateApiName?: string; privateSchemaId?: string; privateSchemaName?: string; provisions?: Record; publicSchemaId?: string; publicSchemaName?: string; + releaseManifestFunctionName?: string; scope: string; siteSurfaceModuleId?: string; sitesTableId?: string; @@ -18126,10 +19957,12 @@ export interface PrincipalAuthModuleInput { principalScopeOverridesTableId?: string; principalsTableId?: string; principalsTableName?: string; + privateSchemaId?: string; revokeOrgApiKeyFunction?: string; schemaId?: string; sessionCredentialsTableId?: string; sessionsTableId?: string; + sweepExpiredPrincipalsFunction?: string; usersTableId?: string; } /** An input for mutations affecting `ProfilesModule` */ @@ -18211,6 +20044,32 @@ export interface RealtimeModuleInput { sourceRegistryTableId?: string; subscriptionsSchemaId?: string; } +/** An input for mutations affecting `RefusalLogModule` */ +export interface RefusalLogModuleInput { + apiName?: string; + databaseId: string; + entityField?: string; + id?: string; + logInterval?: string; + logPremake?: number; + logRetention?: string; + logTableId?: string; + logTableName?: string; + prefix?: string; + privateApiName?: string; + privateSchemaId?: string; + privateSchemaName?: string; + publicSchemaName?: string; + recordRefusalsFunction?: string; + rollupRefusalUsageSummaryFunction?: string; + schemaId?: string; + scope: string; + summaryInterval?: string; + summaryPremake?: number; + summaryRetention?: string; + summaryTableId?: string; + summaryTableName?: string; +} /** An input for mutations affecting `RelationProvision` */ export interface RelationProvisionInput { /** @@ -18335,9 +20194,54 @@ export interface RelationProvisionInput { */ useCompositeKey?: boolean; } +/** An input for mutations affecting `RepositoryModule` */ +export interface RepositoryModuleInput { + apiName?: string; + buildStepsTableId?: string; + buildStepsTableName?: string; + buildsTableId?: string; + buildsTableName?: string; + databaseId: string; + defaultCapabilities?: string[]; + entityField?: string; + entityTableId?: string; + hasAttachments?: boolean; + hasBuilds?: boolean; + id?: string; + policies?: Record; + prefix?: string; + privateApiName?: string; + privateSchemaId?: string; + privateSchemaName?: string; + proposalCommentsTableId?: string; + proposalCommentsTableName?: string; + proposalFileViewsTableId?: string; + proposalFileViewsTableName?: string; + proposalReactionsTableId?: string; + proposalReactionsTableName?: string; + proposalReviewsTableId?: string; + proposalReviewsTableName?: string; + proposalsTableId?: string; + proposalsTableName?: string; + provisions?: Record; + publicSchemaName?: string; + repositoriesTableId?: string; + repositoriesTableName?: string; + repositoryEventsTableId?: string; + repositoryEventsTableName?: string; + repositoryRequiredChecksTableId?: string; + repositoryRequiredChecksTableName?: string; + schemaId?: string; + scope: string; + search?: Record; + workflowsTableId?: string; + workflowsTableName?: string; +} /** An input for mutations affecting `ResourceModule` */ export interface ResourceModuleInput { apiName?: string; + builderBindingsTableId?: string; + builderBindingsTableName?: string; databaseId: string; defaultCapabilities?: string[]; entityField?: string; @@ -18353,6 +20257,8 @@ export interface ResourceModuleInput { privateSchemaName?: string; provisions?: Record; publicSchemaName?: string; + registryBindingsTableId?: string; + registryBindingsTableName?: string; requirementsStateViewName?: string; resolvedRequirementsViewName?: string; resourceBillingRollupFunction?: string; @@ -18411,6 +20317,8 @@ export interface RouteModuleInput { privateSchemaName?: string; provisions?: Record; publicSchemaName?: string; + redirectsTableId?: string; + redirectsTableName?: string; resolverFunctionName?: string; routeBindingsTableId?: string; routeBindingsTableName?: string; @@ -18418,6 +20326,8 @@ export interface RouteModuleInput { routesTableName?: string; schemaId?: string; scope: string; + servingSiteField?: string; + storageKey?: string; } /** An input for mutations affecting `ScopeTypesModule` */ export interface ScopeTypesModuleInput { @@ -18437,10 +20347,14 @@ export interface SecureTableProvisionInput { grants?: Record; /** Unique identifier for this provision row. */ id?: string; + /** Module reference naming a module-generated target table symbolically, instead of by table_id or table_name: a jsonb object with keys "type" (text, required — the module type, e.g. "image"), "table" (text, required — the module's own table key, e.g. "registries"), "scope" (text, optional — the install scope) and "prefix" (text, optional — disambiguates multiple installs of the same module). Resolved through metaschema_modules_private.resolve_module_table(), so it raises the same errors blueprint module references do (BLUEPRINT_MODULE_REF_INVALID, BLUEPRINT_MODULE_NOT_INSTALLED, BLUEPRINT_MODULE_REF_AMBIGUOUS, BLUEPRINT_MODULE_TABLE_UNKNOWN). Mutually exclusive with table_name and with an explicit table_id. Example: {"type":"image","scope":"org","table":"registries"}. Defaults to NULL. */ + module?: Record; /** Array of node objects to apply to the table. Each element is a jsonb object with a required "$type" key (one of: DataId, DataDirectOwner, DataEntityMembership, DataOwnershipInEntity, DataTimestamps, DataPeoplestamps, DataPublishable, DataSoftDelete, DataEmbedding, DataFullTextSearch, DataSlug, etc.) and an optional "data" key containing generator-specific configuration. Supports multiple nodes per row, matching the blueprint definition format. Example: [{"$type": "DataId"}, {"$type": "DataTimestamps"}, {"$type": "DataDirectOwner", "data": {"owner_field_name": "author_id"}}]. Defaults to '[]' (no node processing). */ nodes?: Record; /** Output column populated by the trigger after field creation. Contains the UUIDs of the metaschema fields created on the target table by this provision row's nodes. NULL when nodes is empty or before the trigger runs. Callers should not set this directly. */ outFields?: string[]; + /** Security concerns this row owns on the target table, as a jsonb array of "grants" and/or "policies". A listed concern is replaced: the target table's existing grants (or its non-derived policies) are dropped before this row's grants[] (or policies[]) are applied, so the row's array is the table's whole set — this is how a module-generated table's default security is superseded rather than layered on. An unlisted concern composes, which is the default and the historical behavior. A concern may only be owned when this row supplies a non-empty array for it; owning a concern with nothing to install would leave the table with RLS enabled and no policy, and raises instead. Example: ["policies","grants"]. Defaults to '[]' (compose everything). */ + owns?: Record; /** Array of policy objects to create on the target table. Each element is a jsonb object with keys: "$type" (text, required — the Authz* policy generator type, e.g. AuthzEntityMembership, AuthzMembership, AuthzDirectOwner, AuthzPublishable, AuthzAllowAll), "data" (jsonb, optional — opaque configuration passed to metaschema.create_policy(), structure varies by type), "privileges" (text[], optional — privileges the policy applies to, e.g. ["select","insert"]; if omitted, derived from grants[] privilege verbs), "policy_role" (text, optional — role the policy targets; if omitted, falls back to first role in first grants[] entry, or 'authenticated' if no grants), "permissive" (boolean, optional — PERMISSIVE or RESTRICTIVE; defaults to true), "policy_name" (text, optional — custom suffix for the generated policy name; if omitted, auto-derived from $type by stripping Authz prefix). Supports multiple policies per row. Example: [{"$type": "AuthzEntityMembership", "data": {"entity_field": "owner_id", "membership_type": 3}, "privileges": ["select", "insert"]}, {"$type": "AuthzDirectOwner", "data": {"entity_field": "actor_id"}, "privileges": ["update", "delete"]}]. Defaults to '[]' (no policies created). When non-empty, the trigger automatically enables RLS. */ policies?: Record; /** Target schema for the table. Defaults to uuid_nil(); the trigger resolves this to the app_public schema if not explicitly provided. */ @@ -18504,20 +20418,21 @@ export interface SiteSurfaceModuleInput { siteMetadataTableName?: string; siteModulesTableId?: string; siteModulesTableName?: string; + siteReleasesTableId?: string; + siteReleasesTableName?: string; siteThemesTableId?: string; siteThemesTableName?: string; siteWebConfigTableId?: string; siteWebConfigTableName?: string; sitesTableId?: string; sitesTableName?: string; + storageKey?: string; } /** An input for mutations affecting `StorageLogModule` */ export interface StorageLogModuleInput { - actorFkTableId?: string; apiName?: string; databaseId: string; entityField?: string; - entityFkTableId?: string; id?: string; interval?: string; prefix?: string; @@ -18527,6 +20442,7 @@ export interface StorageLogModuleInput { privateSchemaName?: string; publicSchemaName?: string; retention?: string; + rollupFunctionName?: string; schemaId?: string; scope: string; storageLogTableId?: string; @@ -18560,6 +20476,7 @@ export interface StorageModuleInput { hasPathShares?: boolean; hasVersioning?: boolean; id?: string; + key?: string; maxBulkFiles?: number; maxBulkTotalSize?: string; maxFilenameLength?: number; @@ -18580,11 +20497,9 @@ export interface StorageModuleInput { } /** An input for mutations affecting `TransferLogModule` */ export interface TransferLogModuleInput { - actorFkTableId?: string; apiName?: string; databaseId: string; entityField?: string; - entityFkTableId?: string; id?: string; interval?: string; prefix?: string; @@ -18594,6 +20509,7 @@ export interface TransferLogModuleInput { privateSchemaName?: string; publicSchemaName?: string; retention?: string; + rollupFunctionName?: string; schemaId?: string; scope: string; transferLogTableId?: string; @@ -18615,8 +20531,10 @@ export interface UserAuthModuleInput { forgotPasswordFunction?: string; id?: string; privateApiName?: string; + privateSchemaId?: string; requestCrossOriginTokenFunction?: string; resetPasswordFunction?: string; + revokeSessionTreeFunction?: string; schemaId?: string; secretsTableId?: string; sendAccountDeletionEmailFunction?: string; @@ -18628,6 +20546,7 @@ export interface UserAuthModuleInput { signInFunction?: string; signOutFunction?: string; signUpFunction?: string; + sweepExpiredSessionsFunction?: string; usersTableId?: string; verifyEmailFunction?: string; verifyPasswordFunction?: string; @@ -18976,6 +20895,8 @@ export interface AppModuleFilter { appComponentsTableId?: UUIDFilter; /** Filter by the object’s `appComponentsTableName` field. */ appComponentsTableName?: StringFilter; + /** Filter by the object’s `appStoreIdentitiesTableName` field. */ + appStoreIdentitiesTableName?: StringFilter; /** Filter by the object’s `appsTableId` field. */ appsTableId?: UUIDFilter; /** Filter by the object’s `appsTableName` field. */ @@ -19138,6 +21059,10 @@ export interface RouteModuleFilter { provisions?: JSONFilter; /** Filter by the object’s `publicSchemaName` field. */ publicSchemaName?: StringFilter; + /** Filter by the object’s `redirectsTableId` field. */ + redirectsTableId?: UUIDFilter; + /** Filter by the object’s `redirectsTableName` field. */ + redirectsTableName?: StringFilter; /** Filter by the object’s `resolverFunctionName` field. */ resolverFunctionName?: StringFilter; /** Filter by the object’s `routeBindingsTableId` field. */ @@ -19152,6 +21077,10 @@ export interface RouteModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `scope` field. */ scope?: StringFilter; + /** Filter by the object’s `servingSiteField` field. */ + servingSiteField?: StringFilter; + /** Filter by the object’s `storageKey` field. */ + storageKey?: StringFilter; } /** A filter to be used against `SiteSurfaceModule` object types. All fields are combined with a logical ‘and.’ */ export interface SiteSurfaceModuleFilter { @@ -19225,6 +21154,10 @@ export interface SiteSurfaceModuleFilter { siteModulesTableId?: UUIDFilter; /** Filter by the object’s `siteModulesTableName` field. */ siteModulesTableName?: StringFilter; + /** Filter by the object’s `siteReleasesTableId` field. */ + siteReleasesTableId?: UUIDFilter; + /** Filter by the object’s `siteReleasesTableName` field. */ + siteReleasesTableName?: StringFilter; /** Filter by the object’s `siteThemesTableId` field. */ siteThemesTableId?: UUIDFilter; /** Filter by the object’s `siteThemesTableName` field. */ @@ -19237,6 +21170,8 @@ export interface SiteSurfaceModuleFilter { sitesTableId?: UUIDFilter; /** Filter by the object’s `sitesTableName` field. */ sitesTableName?: StringFilter; + /** Filter by the object’s `storageKey` field. */ + storageKey?: StringFilter; } /** A filter to be used against `WebhookModule` object types. All fields are combined with a logical ‘and.’ */ export interface WebhookModuleFilter { @@ -19368,69 +21303,6 @@ export interface FunctionDeploymentModuleFilter { /** Filter by the object’s `scope` field. */ scope?: StringFilter; } -/** A filter to be used against `HttpRouteModule` object types. All fields are combined with a logical ‘and.’ */ -export interface HttpRouteModuleFilter { - /** Checks for all expressions in this list. */ - and?: HttpRouteModuleFilter[]; - /** 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 `entityField` field. */ - entityField?: StringFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; - /** Filter by the object’s `functionModule` relation. */ - functionModule?: FunctionModuleFilter; - /** A related `functionModule` exists. */ - functionModuleExists?: boolean; - /** Filter by the object’s `functionModuleId` field. */ - functionModuleId?: UUIDFilter; - /** Filter by the object’s `httpRoutesTableId` field. */ - httpRoutesTableId?: UUIDFilter; - /** Filter by the object’s `httpRoutesTableName` field. */ - httpRoutesTableName?: StringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Negates the expression. */ - not?: HttpRouteModuleFilter; - /** Checks for any expressions in this list. */ - or?: HttpRouteModuleFilter[]; - /** 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 `publicSchemaName` field. */ - publicSchemaName?: StringFilter; - /** Filter by the object’s `resolverFunctionName` field. */ - resolverFunctionName?: StringFilter; - /** Filter by the object’s `resourceModule` relation. */ - resourceModule?: ResourceModuleFilter; - /** A related `resourceModule` exists. */ - resourceModuleExists?: boolean; - /** Filter by the object’s `resourceModuleId` field. */ - resourceModuleId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; - /** Filter by the object’s `storageModule` relation. */ - storageModule?: StorageModuleFilter; - /** A related `storageModule` exists. */ - storageModuleExists?: boolean; - /** Filter by the object’s `storageModuleId` field. */ - storageModuleId?: UUIDFilter; -} /** A filter to be used against `GraphExecutionModule` object types. All fields are combined with a logical ‘and.’ */ export interface GraphExecutionModuleFilter { /** Checks for all expressions in this list. */ @@ -19629,6 +21501,53 @@ export interface GraphModuleFilter { /** Filter by the object’s `scope` field. */ scope?: StringFilter; } +/** A filter to be used against `K8sAdmissionModule` object types. All fields are combined with a logical ‘and.’ */ +export interface K8sAdmissionModuleFilter { + /** Checks for all expressions in this list. */ + and?: K8sAdmissionModuleFilter[]; + /** 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 `k8sResourceKindsTableId` field. */ + k8sResourceKindsTableId?: UUIDFilter; + /** Filter by the object’s `k8sSpecRulesTableId` field. */ + k8sSpecRulesTableId?: UUIDFilter; + /** Filter by the object’s `merkleStoreModule` relation. */ + merkleStoreModule?: MerkleStoreModuleFilter; + /** Filter by the object’s `merkleStoreModuleId` field. */ + merkleStoreModuleId?: UUIDFilter; + /** Negates the expression. */ + not?: K8sAdmissionModuleFilter; + /** Checks for any expressions in this list. */ + or?: K8sAdmissionModuleFilter[]; + /** 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 `PagesModule` object types. All fields are combined with a logical ‘and.’ */ export interface PagesModuleFilter { /** Checks for all expressions in this list. */ @@ -19657,6 +21576,14 @@ export interface PagesModuleFilter { policies?: JSONFilter; /** Filter by the object’s `prefix` field. */ prefix?: StringFilter; + /** Filter by the object’s `previewCommitFunctionName` field. */ + previewCommitFunctionName?: StringFilter; + /** Filter by the object’s `previewSetFunctionName` field. */ + previewSetFunctionName?: StringFilter; + /** Filter by the object’s `previewTokenMintFunctionName` field. */ + previewTokenMintFunctionName?: StringFilter; + /** Filter by the object’s `previewTokenVerifierFunctionName` field. */ + previewTokenVerifierFunctionName?: StringFilter; /** Filter by the object’s `privateApiName` field. */ privateApiName?: StringFilter; /** Filter by the object’s `privateSchemaId` field. */ @@ -19669,6 +21596,8 @@ export interface PagesModuleFilter { publicSchemaId?: UUIDFilter; /** Filter by the object’s `publicSchemaName` field. */ publicSchemaName?: StringFilter; + /** Filter by the object’s `releaseManifestFunctionName` field. */ + releaseManifestFunctionName?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: StringFilter; /** Filter by the object’s `siteSurfaceModule` relation. */ @@ -19688,6 +21617,10 @@ export interface ResourceModuleFilter { and?: ResourceModuleFilter[]; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; + /** Filter by the object’s `builderBindingsTableId` field. */ + builderBindingsTableId?: UUIDFilter; + /** Filter by the object’s `builderBindingsTableName` field. */ + builderBindingsTableName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; /** Filter by the object’s `defaultCapabilities` field. */ @@ -19696,10 +21629,6 @@ export interface ResourceModuleFilter { entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ entityTableId?: UUIDFilter; - /** Filter by the object’s `httpRouteModules` relation. */ - httpRouteModules?: ResourceModuleToManyHttpRouteModuleFilter; - /** `httpRouteModules` exist. */ - httpRouteModulesExist?: boolean; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `installationStoreName` field. */ @@ -19734,6 +21663,10 @@ export interface ResourceModuleFilter { provisions?: JSONFilter; /** Filter by the object’s `publicSchemaName` field. */ publicSchemaName?: StringFilter; + /** Filter by the object’s `registryBindingsTableId` field. */ + registryBindingsTableId?: UUIDFilter; + /** Filter by the object’s `registryBindingsTableName` field. */ + registryBindingsTableName?: StringFilter; /** Filter by the object’s `requirementsStateViewName` field. */ requirementsStateViewName?: StringFilter; /** Filter by the object’s `resolvedRequirementsViewName` field. */ @@ -20183,6 +22116,10 @@ export interface CatalogModuleFilter { appModules?: CatalogModuleToManyAppModuleFilter; /** `appModules` exist. */ appModulesExist?: boolean; + /** Filter by the object’s `appStoreIdentitiesTableId` field. */ + appStoreIdentitiesTableId?: UUIDFilter; + /** Filter by the object’s `appStoreIdentitiesTableName` field. */ + appStoreIdentitiesTableName?: StringFilter; /** Filter by the object’s `appsTableId` field. */ appsTableId?: UUIDFilter; /** Filter by the object’s `appsTableName` field. */ @@ -20215,6 +22152,14 @@ export interface CatalogModuleFilter { functionsTableName?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `imagesTableId` field. */ + imagesTableId?: UUIDFilter; + /** Filter by the object’s `imagesTableName` field. */ + imagesTableName?: StringFilter; + /** Filter by the object’s `managedDomainsTableId` field. */ + managedDomainsTableId?: UUIDFilter; + /** Filter by the object’s `managedDomainsTableName` field. */ + managedDomainsTableName?: StringFilter; /** Filter by the object’s `namespacesTableId` field. */ namespacesTableId?: UUIDFilter; /** Filter by the object’s `namespacesTableName` field. */ @@ -20231,6 +22176,10 @@ export interface CatalogModuleFilter { provisions?: JSONFilter; /** Filter by the object’s `publicSchemaName` field. */ publicSchemaName?: StringFilter; + /** Filter by the object’s `redirectsTableId` field. */ + redirectsTableId?: UUIDFilter; + /** Filter by the object’s `redirectsTableName` field. */ + redirectsTableName?: StringFilter; /** Filter by the object’s `resourceDefinitionsTableId` field. */ resourceDefinitionsTableId?: UUIDFilter; /** Filter by the object’s `resourceDefinitionsTableName` field. */ @@ -20361,10 +22310,6 @@ export interface FunctionModuleFilter { functionDeploymentModulesExist?: boolean; /** Filter by the object’s `hasCron` field. */ hasCron?: BooleanFilter; - /** Filter by the object’s `httpRouteModules` relation. */ - httpRouteModules?: FunctionModuleToManyHttpRouteModuleFilter; - /** `httpRouteModules` exist. */ - httpRouteModulesExist?: boolean; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Negates the expression. */ @@ -20391,6 +22336,8 @@ export interface FunctionModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `scope` field. */ scope?: StringFilter; + /** Filter by the object’s `storageKey` field. */ + storageKey?: StringFilter; /** Filter by the object’s `webhookModules` relation. */ webhookModules?: FunctionModuleToManyWebhookModuleFilter; /** `webhookModules` exist. */ @@ -20500,6 +22447,77 @@ export interface NamespaceModuleFilter { /** `webhookModules` exist. */ webhookModulesExist?: boolean; } +/** A filter to be used against `MerkleStoreModule` object types. All fields are combined with a logical ‘and.’ */ +export interface MerkleStoreModuleFilter { + /** Checks for all expressions in this list. */ + 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. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `dbPresetModules` relation. */ + dbPresetModules?: MerkleStoreModuleToManyDbPresetModuleFilter; + /** `dbPresetModules` exist. */ + dbPresetModulesExist?: boolean; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `functionPrefix` field. */ + functionPrefix?: StringFilter; + /** Filter by the object’s `graphModules` relation. */ + graphModules?: MerkleStoreModuleToManyGraphModuleFilter; + /** `graphModules` exist. */ + graphModulesExist?: boolean; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `k8sAdmissionModules` relation. */ + k8sAdmissionModules?: MerkleStoreModuleToManyK8sAdmissionModuleFilter; + /** `k8sAdmissionModules` exist. */ + k8sAdmissionModulesExist?: boolean; + /** Negates the expression. */ + not?: MerkleStoreModuleFilter; + /** Filter by the object’s `objectTableId` field. */ + objectTableId?: UUIDFilter; + /** Checks for any expressions in this list. */ + or?: MerkleStoreModuleFilter[]; + /** Filter by the object’s `pagesModules` relation. */ + pagesModules?: MerkleStoreModuleToManyPagesModuleFilter; + /** `pagesModules` exist. */ + pagesModulesExist?: boolean; + /** 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 `refTableId` field. */ + refTableId?: UUIDFilter; + /** Filter by the object’s `resourceModules` relation. */ + resourceModules?: MerkleStoreModuleToManyResourceModuleFilter; + /** `resourceModules` exist. */ + resourceModulesExist?: boolean; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `storeTableId` field. */ + storeTableId?: UUIDFilter; +} /** A filter to be used against `StorageModule` object types. All fields are combined with a logical ‘and.’ */ export interface StorageModuleFilter { /** Filter by the object’s `allowedOrigins` field. */ @@ -20554,93 +22572,24 @@ export interface StorageModuleFilter { hasPathShares?: BooleanFilter; /** Filter by the object’s `hasVersioning` field. */ hasVersioning?: BooleanFilter; - /** Filter by the object’s `httpRouteModules` relation. */ - httpRouteModules?: StorageModuleToManyHttpRouteModuleFilter; - /** `httpRouteModules` exist. */ - httpRouteModulesExist?: boolean; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `key` field. */ + key?: StringFilter; /** Filter by the object’s `maxBulkFiles` field. */ maxBulkFiles?: IntFilter; /** Filter by the object’s `maxBulkTotalSize` field. */ - maxBulkTotalSize?: BigIntFilter; - /** Filter by the object’s `maxFilenameLength` field. */ - maxFilenameLength?: IntFilter; - /** Negates the expression. */ - not?: StorageModuleFilter; - /** Checks for any expressions in this list. */ - or?: StorageModuleFilter[]; - /** Filter by the object’s `pathSharesTableId` field. */ - pathSharesTableId?: 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 `provider` field. */ - provider?: StringFilter; - /** Filter by the object’s `provisions` field. */ - provisions?: JSONFilter; - /** Filter by the object’s `publicSchemaName` field. */ - publicSchemaName?: StringFilter; - /** Filter by the object’s `publicUrlPrefix` field. */ - publicUrlPrefix?: StringFilter; - /** Filter by the object’s `restrictReads` field. */ - restrictReads?: BooleanFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; - /** Filter by the object’s `uploadUrlExpirySeconds` field. */ - uploadUrlExpirySeconds?: IntFilter; -} -/** A filter to be used against `MerkleStoreModule` object types. All fields are combined with a logical ‘and.’ */ -export interface MerkleStoreModuleFilter { - /** Checks for all expressions in this list. */ - 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. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `dbPresetModules` relation. */ - dbPresetModules?: MerkleStoreModuleToManyDbPresetModuleFilter; - /** `dbPresetModules` exist. */ - dbPresetModulesExist?: boolean; - /** Filter by the object’s `entityField` field. */ - entityField?: StringFilter; - /** Filter by the object’s `functionPrefix` field. */ - functionPrefix?: StringFilter; - /** Filter by the object’s `graphModules` relation. */ - graphModules?: MerkleStoreModuleToManyGraphModuleFilter; - /** `graphModules` exist. */ - graphModulesExist?: boolean; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; + maxBulkTotalSize?: BigIntFilter; + /** Filter by the object’s `maxFilenameLength` field. */ + maxFilenameLength?: IntFilter; /** Negates the expression. */ - not?: MerkleStoreModuleFilter; - /** Filter by the object’s `objectTableId` field. */ - objectTableId?: UUIDFilter; + not?: StorageModuleFilter; /** Checks for any expressions in this list. */ - or?: MerkleStoreModuleFilter[]; - /** Filter by the object’s `pagesModules` relation. */ - pagesModules?: MerkleStoreModuleToManyPagesModuleFilter; - /** `pagesModules` exist. */ - pagesModulesExist?: boolean; + or?: StorageModuleFilter[]; + /** Filter by the object’s `pathSharesTableId` field. */ + pathSharesTableId?: 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. */ @@ -20649,20 +22598,22 @@ export interface MerkleStoreModuleFilter { privateSchemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaName` field. */ privateSchemaName?: StringFilter; + /** Filter by the object’s `provider` field. */ + provider?: StringFilter; + /** Filter by the object’s `provisions` field. */ + provisions?: JSONFilter; /** Filter by the object’s `publicSchemaName` field. */ publicSchemaName?: StringFilter; - /** Filter by the object’s `refTableId` field. */ - refTableId?: UUIDFilter; - /** Filter by the object’s `resourceModules` relation. */ - resourceModules?: MerkleStoreModuleToManyResourceModuleFilter; - /** `resourceModules` exist. */ - resourceModulesExist?: boolean; + /** Filter by the object’s `publicUrlPrefix` field. */ + publicUrlPrefix?: StringFilter; + /** Filter by the object’s `restrictReads` field. */ + restrictReads?: BooleanFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `scope` field. */ scope?: StringFilter; - /** Filter by the object’s `storeTableId` field. */ - storeTableId?: UUIDFilter; + /** Filter by the object’s `uploadUrlExpirySeconds` field. */ + uploadUrlExpirySeconds?: IntFilter; } /** A filter to be used against BigInt fields. All fields are combined with a logical ‘and.’ */ export interface BigIntFilter { @@ -20707,26 +22658,19 @@ export type CopyTemplateToBlueprintPayloadSelect = { 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; + /** The logical bucket row that was queued for reconciliation. */ + bucketId: string; + bucketKey: string; + /** The reconciler job enqueued to provision this bucket. */ + jobId: string; + /** The physical bucket name already recorded, or null when reconciliation has not completed. */ + physicalName?: string | null; } export type ProvisionBucketPayloadSelect = { - accessType?: boolean; - bucketName?: boolean; - endpoint?: boolean; - error?: boolean; - provider?: boolean; - success?: boolean; + bucketId?: boolean; + bucketKey?: boolean; + jobId?: boolean; + physicalName?: boolean; }; export interface CreateAgentModulePayload { /** The `AgentModule` that was created by this mutation. */ @@ -21178,6 +23122,51 @@ export type DeleteCatalogModulePayloadSelect = { }; clientMutationId?: boolean; }; +export interface CreateClusterModulePayload { + clientMutationId?: string | null; + /** The `ClusterModule` that was created by this mutation. */ + clusterModule?: ClusterModule | null; + clusterModuleEdge?: ClusterModuleEdge | null; +} +export type CreateClusterModulePayloadSelect = { + clientMutationId?: boolean; + clusterModule?: { + select: ClusterModuleSelect; + }; + clusterModuleEdge?: { + select: ClusterModuleEdgeSelect; + }; +}; +export interface UpdateClusterModulePayload { + clientMutationId?: string | null; + /** The `ClusterModule` that was updated by this mutation. */ + clusterModule?: ClusterModule | null; + clusterModuleEdge?: ClusterModuleEdge | null; +} +export type UpdateClusterModulePayloadSelect = { + clientMutationId?: boolean; + clusterModule?: { + select: ClusterModuleSelect; + }; + clusterModuleEdge?: { + select: ClusterModuleEdgeSelect; + }; +}; +export interface DeleteClusterModulePayload { + clientMutationId?: string | null; + /** The `ClusterModule` that was deleted by this mutation. */ + clusterModule?: ClusterModule | null; + clusterModuleEdge?: ClusterModuleEdge | null; +} +export type DeleteClusterModulePayloadSelect = { + clientMutationId?: boolean; + clusterModule?: { + select: ClusterModuleSelect; + }; + clusterModuleEdge?: { + select: ClusterModuleEdgeSelect; + }; +}; export interface CreateComputeLogModulePayload { clientMutationId?: string | null; /** The `ComputeLogModule` that was created by this mutation. */ @@ -21223,51 +23212,6 @@ export type DeleteComputeLogModulePayloadSelect = { select: ComputeLogModuleEdgeSelect; }; }; -export interface CreateConfigSecretsUserModulePayload { - clientMutationId?: string | null; - /** The `ConfigSecretsUserModule` that was created by this mutation. */ - configSecretsUserModule?: ConfigSecretsUserModule | null; - configSecretsUserModuleEdge?: ConfigSecretsUserModuleEdge | null; -} -export type CreateConfigSecretsUserModulePayloadSelect = { - clientMutationId?: boolean; - configSecretsUserModule?: { - select: ConfigSecretsUserModuleSelect; - }; - configSecretsUserModuleEdge?: { - select: ConfigSecretsUserModuleEdgeSelect; - }; -}; -export interface UpdateConfigSecretsUserModulePayload { - clientMutationId?: string | null; - /** The `ConfigSecretsUserModule` that was updated by this mutation. */ - configSecretsUserModule?: ConfigSecretsUserModule | null; - configSecretsUserModuleEdge?: ConfigSecretsUserModuleEdge | null; -} -export type UpdateConfigSecretsUserModulePayloadSelect = { - clientMutationId?: boolean; - configSecretsUserModule?: { - select: ConfigSecretsUserModuleSelect; - }; - configSecretsUserModuleEdge?: { - select: ConfigSecretsUserModuleEdgeSelect; - }; -}; -export interface DeleteConfigSecretsUserModulePayload { - clientMutationId?: string | null; - /** The `ConfigSecretsUserModule` that was deleted by this mutation. */ - configSecretsUserModule?: ConfigSecretsUserModule | null; - configSecretsUserModuleEdge?: ConfigSecretsUserModuleEdge | null; -} -export type DeleteConfigSecretsUserModulePayloadSelect = { - clientMutationId?: boolean; - configSecretsUserModule?: { - select: ConfigSecretsUserModuleSelect; - }; - configSecretsUserModuleEdge?: { - select: ConfigSecretsUserModuleEdgeSelect; - }; -}; export interface CreateConnectedAccountsModulePayload { clientMutationId?: string | null; /** The `ConnectedAccountsModule` that was created by this mutation. */ @@ -22438,51 +24382,6 @@ export type DeleteHierarchyModulePayloadSelect = { select: HierarchyModuleEdgeSelect; }; }; -export interface CreateHttpRouteModulePayload { - clientMutationId?: string | null; - /** The `HttpRouteModule` that was created by this mutation. */ - httpRouteModule?: HttpRouteModule | null; - httpRouteModuleEdge?: HttpRouteModuleEdge | null; -} -export type CreateHttpRouteModulePayloadSelect = { - clientMutationId?: boolean; - httpRouteModule?: { - select: HttpRouteModuleSelect; - }; - httpRouteModuleEdge?: { - select: HttpRouteModuleEdgeSelect; - }; -}; -export interface UpdateHttpRouteModulePayload { - clientMutationId?: string | null; - /** The `HttpRouteModule` that was updated by this mutation. */ - httpRouteModule?: HttpRouteModule | null; - httpRouteModuleEdge?: HttpRouteModuleEdge | null; -} -export type UpdateHttpRouteModulePayloadSelect = { - clientMutationId?: boolean; - httpRouteModule?: { - select: HttpRouteModuleSelect; - }; - httpRouteModuleEdge?: { - select: HttpRouteModuleEdgeSelect; - }; -}; -export interface DeleteHttpRouteModulePayload { - clientMutationId?: string | null; - /** The `HttpRouteModule` that was deleted by this mutation. */ - httpRouteModule?: HttpRouteModule | null; - httpRouteModuleEdge?: HttpRouteModuleEdge | null; -} -export type DeleteHttpRouteModulePayloadSelect = { - clientMutationId?: boolean; - httpRouteModule?: { - select: HttpRouteModuleSelect; - }; - httpRouteModuleEdge?: { - select: HttpRouteModuleEdgeSelect; - }; -}; export interface CreateI18NModulePayload { clientMutationId?: string | null; /** The `I18NModule` that was created by this mutation. */ @@ -22573,6 +24472,51 @@ export type DeleteIdentityProvidersModulePayloadSelect = { select: IdentityProvidersModuleEdgeSelect; }; }; +export interface CreateImageModulePayload { + clientMutationId?: string | null; + /** The `ImageModule` that was created by this mutation. */ + imageModule?: ImageModule | null; + imageModuleEdge?: ImageModuleEdge | null; +} +export type CreateImageModulePayloadSelect = { + clientMutationId?: boolean; + imageModule?: { + select: ImageModuleSelect; + }; + imageModuleEdge?: { + select: ImageModuleEdgeSelect; + }; +}; +export interface UpdateImageModulePayload { + clientMutationId?: string | null; + /** The `ImageModule` that was updated by this mutation. */ + imageModule?: ImageModule | null; + imageModuleEdge?: ImageModuleEdge | null; +} +export type UpdateImageModulePayloadSelect = { + clientMutationId?: boolean; + imageModule?: { + select: ImageModuleSelect; + }; + imageModuleEdge?: { + select: ImageModuleEdgeSelect; + }; +}; +export interface DeleteImageModulePayload { + clientMutationId?: string | null; + /** The `ImageModule` that was deleted by this mutation. */ + imageModule?: ImageModule | null; + imageModuleEdge?: ImageModuleEdge | null; +} +export type DeleteImageModulePayloadSelect = { + clientMutationId?: boolean; + imageModule?: { + select: ImageModuleSelect; + }; + imageModuleEdge?: { + select: ImageModuleEdgeSelect; + }; +}; export interface CreateInferenceLogModulePayload { clientMutationId?: string | null; /** The `InferenceLogModule` that was created by this mutation. */ @@ -22753,6 +24697,51 @@ export type DeleteIntegrationProvidersModulePayloadSelect = { select: IntegrationProvidersModuleEdgeSelect; }; }; +export interface CreateInternalConfigModulePayload { + clientMutationId?: string | null; + /** The `InternalConfigModule` that was created by this mutation. */ + internalConfigModule?: InternalConfigModule | null; + internalConfigModuleEdge?: InternalConfigModuleEdge | null; +} +export type CreateInternalConfigModulePayloadSelect = { + clientMutationId?: boolean; + internalConfigModule?: { + select: InternalConfigModuleSelect; + }; + internalConfigModuleEdge?: { + select: InternalConfigModuleEdgeSelect; + }; +}; +export interface UpdateInternalConfigModulePayload { + clientMutationId?: string | null; + /** The `InternalConfigModule` that was updated by this mutation. */ + internalConfigModule?: InternalConfigModule | null; + internalConfigModuleEdge?: InternalConfigModuleEdge | null; +} +export type UpdateInternalConfigModulePayloadSelect = { + clientMutationId?: boolean; + internalConfigModule?: { + select: InternalConfigModuleSelect; + }; + internalConfigModuleEdge?: { + select: InternalConfigModuleEdgeSelect; + }; +}; +export interface DeleteInternalConfigModulePayload { + clientMutationId?: string | null; + /** The `InternalConfigModule` that was deleted by this mutation. */ + internalConfigModule?: InternalConfigModule | null; + internalConfigModuleEdge?: InternalConfigModuleEdge | null; +} +export type DeleteInternalConfigModulePayloadSelect = { + clientMutationId?: boolean; + internalConfigModule?: { + select: InternalConfigModuleSelect; + }; + internalConfigModuleEdge?: { + select: InternalConfigModuleEdgeSelect; + }; +}; export interface CreateInternalSecretsModulePayload { clientMutationId?: string | null; /** The `InternalSecretsModule` that was created by this mutation. */ @@ -22843,6 +24832,51 @@ export type DeleteInvitesModulePayloadSelect = { select: InvitesModuleEdgeSelect; }; }; +export interface CreateK8sAdmissionModulePayload { + clientMutationId?: string | null; + /** The `K8sAdmissionModule` that was created by this mutation. */ + k8sAdmissionModule?: K8sAdmissionModule | null; + k8sAdmissionModuleEdge?: K8sAdmissionModuleEdge | null; +} +export type CreateK8sAdmissionModulePayloadSelect = { + clientMutationId?: boolean; + k8sAdmissionModule?: { + select: K8sAdmissionModuleSelect; + }; + k8sAdmissionModuleEdge?: { + select: K8sAdmissionModuleEdgeSelect; + }; +}; +export interface UpdateK8sAdmissionModulePayload { + clientMutationId?: string | null; + /** The `K8sAdmissionModule` that was updated by this mutation. */ + k8sAdmissionModule?: K8sAdmissionModule | null; + k8sAdmissionModuleEdge?: K8sAdmissionModuleEdge | null; +} +export type UpdateK8sAdmissionModulePayloadSelect = { + clientMutationId?: boolean; + k8sAdmissionModule?: { + select: K8sAdmissionModuleSelect; + }; + k8sAdmissionModuleEdge?: { + select: K8sAdmissionModuleEdgeSelect; + }; +}; +export interface DeleteK8sAdmissionModulePayload { + clientMutationId?: string | null; + /** The `K8sAdmissionModule` that was deleted by this mutation. */ + k8sAdmissionModule?: K8sAdmissionModule | null; + k8sAdmissionModuleEdge?: K8sAdmissionModuleEdge | null; +} +export type DeleteK8sAdmissionModulePayloadSelect = { + clientMutationId?: boolean; + k8sAdmissionModule?: { + select: K8sAdmissionModuleSelect; + }; + k8sAdmissionModuleEdge?: { + select: K8sAdmissionModuleEdgeSelect; + }; +}; export interface CreateLimitsModulePayload { clientMutationId?: string | null; /** The `LimitsModule` that was created by this mutation. */ @@ -22888,6 +24922,51 @@ export type DeleteLimitsModulePayloadSelect = { select: LimitsModuleEdgeSelect; }; }; +export interface CreateMachineModulePayload { + clientMutationId?: string | null; + /** The `MachineModule` that was created by this mutation. */ + machineModule?: MachineModule | null; + machineModuleEdge?: MachineModuleEdge | null; +} +export type CreateMachineModulePayloadSelect = { + clientMutationId?: boolean; + machineModule?: { + select: MachineModuleSelect; + }; + machineModuleEdge?: { + select: MachineModuleEdgeSelect; + }; +}; +export interface UpdateMachineModulePayload { + clientMutationId?: string | null; + /** The `MachineModule` that was updated by this mutation. */ + machineModule?: MachineModule | null; + machineModuleEdge?: MachineModuleEdge | null; +} +export type UpdateMachineModulePayloadSelect = { + clientMutationId?: boolean; + machineModule?: { + select: MachineModuleSelect; + }; + machineModuleEdge?: { + select: MachineModuleEdgeSelect; + }; +}; +export interface DeleteMachineModulePayload { + clientMutationId?: string | null; + /** The `MachineModule` that was deleted by this mutation. */ + machineModule?: MachineModule | null; + machineModuleEdge?: MachineModuleEdge | null; +} +export type DeleteMachineModulePayloadSelect = { + clientMutationId?: boolean; + machineModule?: { + select: MachineModuleSelect; + }; + machineModuleEdge?: { + select: MachineModuleEdgeSelect; + }; +}; export interface CreateMembershipTypesModulePayload { clientMutationId?: string | null; /** The `MembershipTypesModule` that was created by this mutation. */ @@ -23518,6 +25597,51 @@ export type DeleteRealtimeModulePayloadSelect = { select: RealtimeModuleEdgeSelect; }; }; +export interface CreateRefusalLogModulePayload { + clientMutationId?: string | null; + /** The `RefusalLogModule` that was created by this mutation. */ + refusalLogModule?: RefusalLogModule | null; + refusalLogModuleEdge?: RefusalLogModuleEdge | null; +} +export type CreateRefusalLogModulePayloadSelect = { + clientMutationId?: boolean; + refusalLogModule?: { + select: RefusalLogModuleSelect; + }; + refusalLogModuleEdge?: { + select: RefusalLogModuleEdgeSelect; + }; +}; +export interface UpdateRefusalLogModulePayload { + clientMutationId?: string | null; + /** The `RefusalLogModule` that was updated by this mutation. */ + refusalLogModule?: RefusalLogModule | null; + refusalLogModuleEdge?: RefusalLogModuleEdge | null; +} +export type UpdateRefusalLogModulePayloadSelect = { + clientMutationId?: boolean; + refusalLogModule?: { + select: RefusalLogModuleSelect; + }; + refusalLogModuleEdge?: { + select: RefusalLogModuleEdgeSelect; + }; +}; +export interface DeleteRefusalLogModulePayload { + clientMutationId?: string | null; + /** The `RefusalLogModule` that was deleted by this mutation. */ + refusalLogModule?: RefusalLogModule | null; + refusalLogModuleEdge?: RefusalLogModuleEdge | null; +} +export type DeleteRefusalLogModulePayloadSelect = { + clientMutationId?: boolean; + refusalLogModule?: { + select: RefusalLogModuleSelect; + }; + refusalLogModuleEdge?: { + select: RefusalLogModuleEdgeSelect; + }; +}; export interface CreateRelationProvisionPayload { clientMutationId?: string | null; /** The `RelationProvision` that was created by this mutation. */ @@ -23563,6 +25687,51 @@ export type DeleteRelationProvisionPayloadSelect = { select: RelationProvisionEdgeSelect; }; }; +export interface CreateRepositoryModulePayload { + clientMutationId?: string | null; + /** The `RepositoryModule` that was created by this mutation. */ + repositoryModule?: RepositoryModule | null; + repositoryModuleEdge?: RepositoryModuleEdge | null; +} +export type CreateRepositoryModulePayloadSelect = { + clientMutationId?: boolean; + repositoryModule?: { + select: RepositoryModuleSelect; + }; + repositoryModuleEdge?: { + select: RepositoryModuleEdgeSelect; + }; +}; +export interface UpdateRepositoryModulePayload { + clientMutationId?: string | null; + /** The `RepositoryModule` that was updated by this mutation. */ + repositoryModule?: RepositoryModule | null; + repositoryModuleEdge?: RepositoryModuleEdge | null; +} +export type UpdateRepositoryModulePayloadSelect = { + clientMutationId?: boolean; + repositoryModule?: { + select: RepositoryModuleSelect; + }; + repositoryModuleEdge?: { + select: RepositoryModuleEdgeSelect; + }; +}; +export interface DeleteRepositoryModulePayload { + clientMutationId?: string | null; + /** The `RepositoryModule` that was deleted by this mutation. */ + repositoryModule?: RepositoryModule | null; + repositoryModuleEdge?: RepositoryModuleEdge | null; +} +export type DeleteRepositoryModulePayloadSelect = { + clientMutationId?: boolean; + repositoryModule?: { + select: RepositoryModuleSelect; + }; + repositoryModuleEdge?: { + select: RepositoryModuleEdgeSelect; + }; +}; export interface CreateResourceModulePayload { clientMutationId?: string | null; /** The `ResourceModule` that was created by this mutation. */ @@ -24583,28 +26752,28 @@ export type CatalogModuleEdgeSelect = { select: CatalogModuleSelect; }; }; -/** A `ComputeLogModule` edge in the connection. */ -export interface ComputeLogModuleEdge { +/** A `ClusterModule` edge in the connection. */ +export interface ClusterModuleEdge { cursor?: string | null; - /** The `ComputeLogModule` at the end of the edge. */ - node?: ComputeLogModule | null; + /** The `ClusterModule` at the end of the edge. */ + node?: ClusterModule | null; } -export type ComputeLogModuleEdgeSelect = { +export type ClusterModuleEdgeSelect = { cursor?: boolean; node?: { - select: ComputeLogModuleSelect; + select: ClusterModuleSelect; }; }; -/** A `ConfigSecretsUserModule` edge in the connection. */ -export interface ConfigSecretsUserModuleEdge { +/** A `ComputeLogModule` edge in the connection. */ +export interface ComputeLogModuleEdge { cursor?: string | null; - /** The `ConfigSecretsUserModule` at the end of the edge. */ - node?: ConfigSecretsUserModule | null; + /** The `ComputeLogModule` at the end of the edge. */ + node?: ComputeLogModule | null; } -export type ConfigSecretsUserModuleEdgeSelect = { +export type ComputeLogModuleEdgeSelect = { cursor?: boolean; node?: { - select: ConfigSecretsUserModuleSelect; + select: ComputeLogModuleSelect; }; }; /** A `ConnectedAccountsModule` edge in the connection. */ @@ -24919,18 +27088,6 @@ export type HierarchyModuleEdgeSelect = { select: HierarchyModuleSelect; }; }; -/** A `HttpRouteModule` edge in the connection. */ -export interface HttpRouteModuleEdge { - cursor?: string | null; - /** The `HttpRouteModule` at the end of the edge. */ - node?: HttpRouteModule | null; -} -export type HttpRouteModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: HttpRouteModuleSelect; - }; -}; /** A `I18NModule` edge in the connection. */ export interface I18NModuleEdge { cursor?: string | null; @@ -24955,6 +27112,18 @@ export type IdentityProvidersModuleEdgeSelect = { select: IdentityProvidersModuleSelect; }; }; +/** A `ImageModule` edge in the connection. */ +export interface ImageModuleEdge { + cursor?: string | null; + /** The `ImageModule` at the end of the edge. */ + node?: ImageModule | null; +} +export type ImageModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: ImageModuleSelect; + }; +}; /** A `InferenceLogModule` edge in the connection. */ export interface InferenceLogModuleEdge { cursor?: string | null; @@ -25003,6 +27172,18 @@ export type IntegrationProvidersModuleEdgeSelect = { select: IntegrationProvidersModuleSelect; }; }; +/** A `InternalConfigModule` edge in the connection. */ +export interface InternalConfigModuleEdge { + cursor?: string | null; + /** The `InternalConfigModule` at the end of the edge. */ + node?: InternalConfigModule | null; +} +export type InternalConfigModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: InternalConfigModuleSelect; + }; +}; /** A `InternalSecretsModule` edge in the connection. */ export interface InternalSecretsModuleEdge { cursor?: string | null; @@ -25027,6 +27208,18 @@ export type InvitesModuleEdgeSelect = { select: InvitesModuleSelect; }; }; +/** A `K8sAdmissionModule` edge in the connection. */ +export interface K8sAdmissionModuleEdge { + cursor?: string | null; + /** The `K8sAdmissionModule` at the end of the edge. */ + node?: K8sAdmissionModule | null; +} +export type K8sAdmissionModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: K8sAdmissionModuleSelect; + }; +}; /** A `LimitsModule` edge in the connection. */ export interface LimitsModuleEdge { cursor?: string | null; @@ -25039,6 +27232,18 @@ export type LimitsModuleEdgeSelect = { select: LimitsModuleSelect; }; }; +/** A `MachineModule` edge in the connection. */ +export interface MachineModuleEdge { + cursor?: string | null; + /** The `MachineModule` at the end of the edge. */ + node?: MachineModule | null; +} +export type MachineModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: MachineModuleSelect; + }; +}; /** A `MembershipTypesModule` edge in the connection. */ export interface MembershipTypesModuleEdge { cursor?: string | null; @@ -25207,6 +27412,18 @@ export type RealtimeModuleEdgeSelect = { select: RealtimeModuleSelect; }; }; +/** A `RefusalLogModule` edge in the connection. */ +export interface RefusalLogModuleEdge { + cursor?: string | null; + /** The `RefusalLogModule` at the end of the edge. */ + node?: RefusalLogModule | null; +} +export type RefusalLogModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: RefusalLogModuleSelect; + }; +}; /** A `RelationProvision` edge in the connection. */ export interface RelationProvisionEdge { cursor?: string | null; @@ -25219,6 +27436,18 @@ export type RelationProvisionEdgeSelect = { select: RelationProvisionSelect; }; }; +/** A `RepositoryModule` edge in the connection. */ +export interface RepositoryModuleEdge { + cursor?: string | null; + /** The `RepositoryModule` at the end of the edge. */ + node?: RepositoryModule | null; +} +export type RepositoryModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: RepositoryModuleSelect; + }; +}; /** A `ResourceModule` edge in the connection. */ export interface ResourceModuleEdge { cursor?: string | null; diff --git a/sdk/constructive-react/src/modules/orm/models/clusterModule.ts b/sdk/constructive-react/src/modules/orm/models/clusterModule.ts new file mode 100644 index 0000000000..65ff1a8abd --- /dev/null +++ b/sdk/constructive-react/src/modules/orm/models/clusterModule.ts @@ -0,0 +1,245 @@ +/** + * ClusterModule 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 { + ClusterModule, + ClusterModuleWithRelations, + ClusterModuleSelect, + ClusterModuleFilter, + ClusterModuleOrderBy, + CreateClusterModuleInput, + UpdateClusterModuleInput, + ClusterModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class ClusterModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + clusterModules: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'ClusterModule', + 'clusterModules', + 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, + }, + 'ClusterModuleFilter', + 'ClusterModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ClusterModule', + fieldName: 'clusterModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + clusterModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'ClusterModule', + 'clusterModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'ClusterModuleFilter', + 'ClusterModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ClusterModule', + fieldName: 'clusterModule', + document, + variables, + transform: (data: { + clusterModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + clusterModule: data.clusterModules?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + clusterModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'ClusterModule', + 'clusterModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'ClusterModuleFilter', + 'ClusterModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ClusterModule', + fieldName: 'clusterModule', + document, + variables, + transform: (data: { + clusterModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + clusterModule: data.clusterModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createClusterModule: { + clusterModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'ClusterModule', + 'createClusterModule', + 'clusterModule', + args.select, + args.data, + 'CreateClusterModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ClusterModule', + fieldName: 'createClusterModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + ClusterModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateClusterModule: { + clusterModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'ClusterModule', + 'updateClusterModule', + 'clusterModule', + args.select, + args.where.id, + args.data, + 'UpdateClusterModuleInput', + 'id', + 'clusterModulePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ClusterModule', + fieldName: 'updateClusterModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteClusterModule: { + clusterModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'ClusterModule', + 'deleteClusterModule', + 'clusterModule', + { + id: args.where.id, + }, + 'DeleteClusterModuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ClusterModule', + fieldName: 'deleteClusterModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/modules/orm/models/configSecretsUserModule.ts b/sdk/constructive-react/src/modules/orm/models/configSecretsUserModule.ts deleted file mode 100644 index bd97e5bf01..0000000000 --- a/sdk/constructive-react/src/modules/orm/models/configSecretsUserModule.ts +++ /dev/null @@ -1,247 +0,0 @@ -/** - * ConfigSecretsUserModule model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - ConfigSecretsUserModule, - ConfigSecretsUserModuleWithRelations, - ConfigSecretsUserModuleSelect, - ConfigSecretsUserModuleFilter, - ConfigSecretsUserModuleOrderBy, - CreateConfigSecretsUserModuleInput, - UpdateConfigSecretsUserModuleInput, - ConfigSecretsUserModulePatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class ConfigSecretsUserModuleModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - configSecretsUserModules: ConnectionResult< - InferSelectResult - >; - }> { - const { document, variables } = buildFindManyDocument( - 'ConfigSecretsUserModule', - 'configSecretsUserModules', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'ConfigSecretsUserModuleFilter', - 'ConfigSecretsUserModuleOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'ConfigSecretsUserModule', - fieldName: 'configSecretsUserModules', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - configSecretsUserModule: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'ConfigSecretsUserModule', - 'configSecretsUserModules', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'ConfigSecretsUserModuleFilter', - 'ConfigSecretsUserModuleOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'ConfigSecretsUserModule', - fieldName: 'configSecretsUserModule', - document, - variables, - transform: (data: { - configSecretsUserModules?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - configSecretsUserModule: data.configSecretsUserModules?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - configSecretsUserModule: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'ConfigSecretsUserModule', - 'configSecretsUserModules', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'ConfigSecretsUserModuleFilter', - 'ConfigSecretsUserModuleOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'ConfigSecretsUserModule', - fieldName: 'configSecretsUserModule', - document, - variables, - transform: (data: { - configSecretsUserModules?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - configSecretsUserModule: data.configSecretsUserModules?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createConfigSecretsUserModule: { - configSecretsUserModule: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'ConfigSecretsUserModule', - 'createConfigSecretsUserModule', - 'configSecretsUserModule', - args.select, - args.data, - 'CreateConfigSecretsUserModuleInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'ConfigSecretsUserModule', - fieldName: 'createConfigSecretsUserModule', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - ConfigSecretsUserModulePatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateConfigSecretsUserModule: { - configSecretsUserModule: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'ConfigSecretsUserModule', - 'updateConfigSecretsUserModule', - 'configSecretsUserModule', - args.select, - args.where.id, - args.data, - 'UpdateConfigSecretsUserModuleInput', - 'id', - 'configSecretsUserModulePatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'ConfigSecretsUserModule', - fieldName: 'updateConfigSecretsUserModule', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteConfigSecretsUserModule: { - configSecretsUserModule: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'ConfigSecretsUserModule', - 'deleteConfigSecretsUserModule', - 'configSecretsUserModule', - { - id: args.where.id, - }, - 'DeleteConfigSecretsUserModuleInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'ConfigSecretsUserModule', - fieldName: 'deleteConfigSecretsUserModule', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/modules/orm/models/httpRouteModule.ts b/sdk/constructive-react/src/modules/orm/models/httpRouteModule.ts deleted file mode 100644 index babf4d3085..0000000000 --- a/sdk/constructive-react/src/modules/orm/models/httpRouteModule.ts +++ /dev/null @@ -1,245 +0,0 @@ -/** - * HttpRouteModule 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 { - HttpRouteModule, - HttpRouteModuleWithRelations, - HttpRouteModuleSelect, - HttpRouteModuleFilter, - HttpRouteModuleOrderBy, - CreateHttpRouteModuleInput, - UpdateHttpRouteModuleInput, - HttpRouteModulePatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class HttpRouteModuleModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - httpRouteModules: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'HttpRouteModule', - 'httpRouteModules', - 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, - }, - 'HttpRouteModuleFilter', - 'HttpRouteModuleOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'HttpRouteModule', - fieldName: 'httpRouteModules', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - httpRouteModule: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'HttpRouteModule', - 'httpRouteModules', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'HttpRouteModuleFilter', - 'HttpRouteModuleOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'HttpRouteModule', - fieldName: 'httpRouteModule', - document, - variables, - transform: (data: { - httpRouteModules?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - httpRouteModule: data.httpRouteModules?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - httpRouteModule: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'HttpRouteModule', - 'httpRouteModules', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'HttpRouteModuleFilter', - 'HttpRouteModuleOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'HttpRouteModule', - fieldName: 'httpRouteModule', - document, - variables, - transform: (data: { - httpRouteModules?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - httpRouteModule: data.httpRouteModules?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createHttpRouteModule: { - httpRouteModule: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'HttpRouteModule', - 'createHttpRouteModule', - 'httpRouteModule', - args.select, - args.data, - 'CreateHttpRouteModuleInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'HttpRouteModule', - fieldName: 'createHttpRouteModule', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - HttpRouteModulePatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateHttpRouteModule: { - httpRouteModule: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'HttpRouteModule', - 'updateHttpRouteModule', - 'httpRouteModule', - args.select, - args.where.id, - args.data, - 'UpdateHttpRouteModuleInput', - 'id', - 'httpRouteModulePatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'HttpRouteModule', - fieldName: 'updateHttpRouteModule', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteHttpRouteModule: { - httpRouteModule: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'HttpRouteModule', - 'deleteHttpRouteModule', - 'httpRouteModule', - { - id: args.where.id, - }, - 'DeleteHttpRouteModuleInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'HttpRouteModule', - fieldName: 'deleteHttpRouteModule', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/modules/orm/models/imageModule.ts b/sdk/constructive-react/src/modules/orm/models/imageModule.ts new file mode 100644 index 0000000000..2c1199e879 --- /dev/null +++ b/sdk/constructive-react/src/modules/orm/models/imageModule.ts @@ -0,0 +1,245 @@ +/** + * ImageModule 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 { + ImageModule, + ImageModuleWithRelations, + ImageModuleSelect, + ImageModuleFilter, + ImageModuleOrderBy, + CreateImageModuleInput, + UpdateImageModuleInput, + ImageModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class ImageModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + imageModules: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'ImageModule', + 'imageModules', + 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, + }, + 'ImageModuleFilter', + 'ImageModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ImageModule', + fieldName: 'imageModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + imageModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'ImageModule', + 'imageModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'ImageModuleFilter', + 'ImageModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ImageModule', + fieldName: 'imageModule', + document, + variables, + transform: (data: { + imageModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + imageModule: data.imageModules?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + imageModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'ImageModule', + 'imageModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'ImageModuleFilter', + 'ImageModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ImageModule', + fieldName: 'imageModule', + document, + variables, + transform: (data: { + imageModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + imageModule: data.imageModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createImageModule: { + imageModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'ImageModule', + 'createImageModule', + 'imageModule', + args.select, + args.data, + 'CreateImageModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ImageModule', + fieldName: 'createImageModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + ImageModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateImageModule: { + imageModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'ImageModule', + 'updateImageModule', + 'imageModule', + args.select, + args.where.id, + args.data, + 'UpdateImageModuleInput', + 'id', + 'imageModulePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ImageModule', + fieldName: 'updateImageModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteImageModule: { + imageModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'ImageModule', + 'deleteImageModule', + 'imageModule', + { + id: args.where.id, + }, + 'DeleteImageModuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ImageModule', + fieldName: 'deleteImageModule', + 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 beb1e2e872..a6f18480f4 100644 --- a/sdk/constructive-react/src/modules/orm/models/index.ts +++ b/sdk/constructive-react/src/modules/orm/models/index.ts @@ -13,8 +13,8 @@ export { BlueprintConstructionModel } from './blueprintConstruction'; export { BlueprintTemplateModel } from './blueprintTemplate'; export { CapabilitiesModuleModel } from './capabilitiesModule'; export { CatalogModuleModel } from './catalogModule'; +export { ClusterModuleModel } from './clusterModule'; export { ComputeLogModuleModel } from './computeLogModule'; -export { ConfigSecretsUserModuleModel } from './configSecretsUserModule'; export { ConnectedAccountsModuleModel } from './connectedAccountsModule'; export { ContentPresetModuleModel } from './contentPresetModule'; export { CryptoAddressesModuleModel } from './cryptoAddressesModule'; @@ -41,16 +41,19 @@ export { FunctionModuleModel } from './functionModule'; export { GraphExecutionModuleModel } from './graphExecutionModule'; export { GraphModuleModel } from './graphModule'; export { HierarchyModuleModel } from './hierarchyModule'; -export { HttpRouteModuleModel } from './httpRouteModule'; export { I18NModuleModel } from './i18NModule'; export { IdentityProvidersModuleModel } from './identityProvidersModule'; +export { ImageModuleModel } from './imageModule'; export { InferenceLogModuleModel } from './inferenceLogModule'; export { InfraConfigModuleModel } from './infraConfigModule'; export { InfraSecretsModuleModel } from './infraSecretsModule'; export { IntegrationProvidersModuleModel } from './integrationProvidersModule'; +export { InternalConfigModuleModel } from './internalConfigModule'; export { InternalSecretsModuleModel } from './internalSecretsModule'; export { InvitesModuleModel } from './invitesModule'; +export { K8sAdmissionModuleModel } from './k8sAdmissionModule'; export { LimitsModuleModel } from './limitsModule'; +export { MachineModuleModel } from './machineModule'; export { MembershipTypesModuleModel } from './membershipTypesModule'; export { MembershipsModuleModel } from './membershipsModule'; export { MerkleStoreModuleModel } from './merkleStoreModule'; @@ -65,7 +68,9 @@ export { ProfilesModuleModel } from './profilesModule'; export { RateLimitMetersModuleModel } from './rateLimitMetersModule'; export { RateLimitsModuleModel } from './rateLimitsModule'; export { RealtimeModuleModel } from './realtimeModule'; +export { RefusalLogModuleModel } from './refusalLogModule'; export { RelationProvisionModel } from './relationProvision'; +export { RepositoryModuleModel } from './repositoryModule'; export { ResourceModuleModel } from './resourceModule'; export { RlsModuleModel } from './rlsModule'; export { RouteModuleModel } from './routeModule'; diff --git a/sdk/constructive-react/src/modules/orm/models/internalConfigModule.ts b/sdk/constructive-react/src/modules/orm/models/internalConfigModule.ts new file mode 100644 index 0000000000..4679cc1926 --- /dev/null +++ b/sdk/constructive-react/src/modules/orm/models/internalConfigModule.ts @@ -0,0 +1,247 @@ +/** + * InternalConfigModule 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 { + InternalConfigModule, + InternalConfigModuleWithRelations, + InternalConfigModuleSelect, + InternalConfigModuleFilter, + InternalConfigModuleOrderBy, + CreateInternalConfigModuleInput, + UpdateInternalConfigModuleInput, + InternalConfigModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class InternalConfigModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + internalConfigModules: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'InternalConfigModule', + 'internalConfigModules', + 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, + }, + 'InternalConfigModuleFilter', + 'InternalConfigModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InternalConfigModule', + fieldName: 'internalConfigModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + internalConfigModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'InternalConfigModule', + 'internalConfigModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'InternalConfigModuleFilter', + 'InternalConfigModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InternalConfigModule', + fieldName: 'internalConfigModule', + document, + variables, + transform: (data: { + internalConfigModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + internalConfigModule: data.internalConfigModules?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + internalConfigModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'InternalConfigModule', + 'internalConfigModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'InternalConfigModuleFilter', + 'InternalConfigModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InternalConfigModule', + fieldName: 'internalConfigModule', + document, + variables, + transform: (data: { + internalConfigModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + internalConfigModule: data.internalConfigModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createInternalConfigModule: { + internalConfigModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'InternalConfigModule', + 'createInternalConfigModule', + 'internalConfigModule', + args.select, + args.data, + 'CreateInternalConfigModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InternalConfigModule', + fieldName: 'createInternalConfigModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + InternalConfigModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateInternalConfigModule: { + internalConfigModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'InternalConfigModule', + 'updateInternalConfigModule', + 'internalConfigModule', + args.select, + args.where.id, + args.data, + 'UpdateInternalConfigModuleInput', + 'id', + 'internalConfigModulePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InternalConfigModule', + fieldName: 'updateInternalConfigModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteInternalConfigModule: { + internalConfigModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'InternalConfigModule', + 'deleteInternalConfigModule', + 'internalConfigModule', + { + id: args.where.id, + }, + 'DeleteInternalConfigModuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InternalConfigModule', + fieldName: 'deleteInternalConfigModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/modules/orm/models/k8sAdmissionModule.ts b/sdk/constructive-react/src/modules/orm/models/k8sAdmissionModule.ts new file mode 100644 index 0000000000..3caa5b120e --- /dev/null +++ b/sdk/constructive-react/src/modules/orm/models/k8sAdmissionModule.ts @@ -0,0 +1,245 @@ +/** + * K8sAdmissionModule 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 { + K8sAdmissionModule, + K8sAdmissionModuleWithRelations, + K8sAdmissionModuleSelect, + K8sAdmissionModuleFilter, + K8sAdmissionModuleOrderBy, + CreateK8sAdmissionModuleInput, + UpdateK8sAdmissionModuleInput, + K8sAdmissionModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class K8sAdmissionModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + k8sAdmissionModules: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'K8sAdmissionModule', + 'k8sAdmissionModules', + 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, + }, + 'K8sAdmissionModuleFilter', + 'K8sAdmissionModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'K8sAdmissionModule', + fieldName: 'k8sAdmissionModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + k8sAdmissionModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'K8sAdmissionModule', + 'k8sAdmissionModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'K8sAdmissionModuleFilter', + 'K8sAdmissionModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'K8sAdmissionModule', + fieldName: 'k8sAdmissionModule', + document, + variables, + transform: (data: { + k8sAdmissionModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + k8sAdmissionModule: data.k8sAdmissionModules?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + k8sAdmissionModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'K8sAdmissionModule', + 'k8sAdmissionModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'K8sAdmissionModuleFilter', + 'K8sAdmissionModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'K8sAdmissionModule', + fieldName: 'k8sAdmissionModule', + document, + variables, + transform: (data: { + k8sAdmissionModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + k8sAdmissionModule: data.k8sAdmissionModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createK8sAdmissionModule: { + k8sAdmissionModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'K8sAdmissionModule', + 'createK8sAdmissionModule', + 'k8sAdmissionModule', + args.select, + args.data, + 'CreateK8sAdmissionModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'K8sAdmissionModule', + fieldName: 'createK8sAdmissionModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + K8sAdmissionModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateK8sAdmissionModule: { + k8sAdmissionModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'K8sAdmissionModule', + 'updateK8sAdmissionModule', + 'k8sAdmissionModule', + args.select, + args.where.id, + args.data, + 'UpdateK8sAdmissionModuleInput', + 'id', + 'k8sAdmissionModulePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'K8sAdmissionModule', + fieldName: 'updateK8sAdmissionModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteK8sAdmissionModule: { + k8sAdmissionModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'K8sAdmissionModule', + 'deleteK8sAdmissionModule', + 'k8sAdmissionModule', + { + id: args.where.id, + }, + 'DeleteK8sAdmissionModuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'K8sAdmissionModule', + fieldName: 'deleteK8sAdmissionModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/modules/orm/models/machineModule.ts b/sdk/constructive-react/src/modules/orm/models/machineModule.ts new file mode 100644 index 0000000000..af8dc76b7c --- /dev/null +++ b/sdk/constructive-react/src/modules/orm/models/machineModule.ts @@ -0,0 +1,245 @@ +/** + * MachineModule 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 { + MachineModule, + MachineModuleWithRelations, + MachineModuleSelect, + MachineModuleFilter, + MachineModuleOrderBy, + CreateMachineModuleInput, + UpdateMachineModuleInput, + MachineModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class MachineModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + machineModules: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'MachineModule', + 'machineModules', + 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, + }, + 'MachineModuleFilter', + 'MachineModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'MachineModule', + fieldName: 'machineModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + machineModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'MachineModule', + 'machineModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'MachineModuleFilter', + 'MachineModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'MachineModule', + fieldName: 'machineModule', + document, + variables, + transform: (data: { + machineModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + machineModule: data.machineModules?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + machineModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'MachineModule', + 'machineModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'MachineModuleFilter', + 'MachineModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'MachineModule', + fieldName: 'machineModule', + document, + variables, + transform: (data: { + machineModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + machineModule: data.machineModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createMachineModule: { + machineModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'MachineModule', + 'createMachineModule', + 'machineModule', + args.select, + args.data, + 'CreateMachineModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'MachineModule', + fieldName: 'createMachineModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + MachineModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateMachineModule: { + machineModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'MachineModule', + 'updateMachineModule', + 'machineModule', + args.select, + args.where.id, + args.data, + 'UpdateMachineModuleInput', + 'id', + 'machineModulePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'MachineModule', + fieldName: 'updateMachineModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteMachineModule: { + machineModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'MachineModule', + 'deleteMachineModule', + 'machineModule', + { + id: args.where.id, + }, + 'DeleteMachineModuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'MachineModule', + fieldName: 'deleteMachineModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/modules/orm/models/refusalLogModule.ts b/sdk/constructive-react/src/modules/orm/models/refusalLogModule.ts new file mode 100644 index 0000000000..85e89a3468 --- /dev/null +++ b/sdk/constructive-react/src/modules/orm/models/refusalLogModule.ts @@ -0,0 +1,245 @@ +/** + * RefusalLogModule 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 { + RefusalLogModule, + RefusalLogModuleWithRelations, + RefusalLogModuleSelect, + RefusalLogModuleFilter, + RefusalLogModuleOrderBy, + CreateRefusalLogModuleInput, + UpdateRefusalLogModuleInput, + RefusalLogModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class RefusalLogModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + refusalLogModules: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'RefusalLogModule', + 'refusalLogModules', + 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, + }, + 'RefusalLogModuleFilter', + 'RefusalLogModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'RefusalLogModule', + fieldName: 'refusalLogModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + refusalLogModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'RefusalLogModule', + 'refusalLogModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'RefusalLogModuleFilter', + 'RefusalLogModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'RefusalLogModule', + fieldName: 'refusalLogModule', + document, + variables, + transform: (data: { + refusalLogModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + refusalLogModule: data.refusalLogModules?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + refusalLogModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'RefusalLogModule', + 'refusalLogModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'RefusalLogModuleFilter', + 'RefusalLogModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'RefusalLogModule', + fieldName: 'refusalLogModule', + document, + variables, + transform: (data: { + refusalLogModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + refusalLogModule: data.refusalLogModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createRefusalLogModule: { + refusalLogModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'RefusalLogModule', + 'createRefusalLogModule', + 'refusalLogModule', + args.select, + args.data, + 'CreateRefusalLogModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'RefusalLogModule', + fieldName: 'createRefusalLogModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + RefusalLogModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateRefusalLogModule: { + refusalLogModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'RefusalLogModule', + 'updateRefusalLogModule', + 'refusalLogModule', + args.select, + args.where.id, + args.data, + 'UpdateRefusalLogModuleInput', + 'id', + 'refusalLogModulePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'RefusalLogModule', + fieldName: 'updateRefusalLogModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteRefusalLogModule: { + refusalLogModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'RefusalLogModule', + 'deleteRefusalLogModule', + 'refusalLogModule', + { + id: args.where.id, + }, + 'DeleteRefusalLogModuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'RefusalLogModule', + fieldName: 'deleteRefusalLogModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/modules/orm/models/repositoryModule.ts b/sdk/constructive-react/src/modules/orm/models/repositoryModule.ts new file mode 100644 index 0000000000..90c8bda755 --- /dev/null +++ b/sdk/constructive-react/src/modules/orm/models/repositoryModule.ts @@ -0,0 +1,245 @@ +/** + * RepositoryModule 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 { + RepositoryModule, + RepositoryModuleWithRelations, + RepositoryModuleSelect, + RepositoryModuleFilter, + RepositoryModuleOrderBy, + CreateRepositoryModuleInput, + UpdateRepositoryModuleInput, + RepositoryModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class RepositoryModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + repositoryModules: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'RepositoryModule', + 'repositoryModules', + 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, + }, + 'RepositoryModuleFilter', + 'RepositoryModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'RepositoryModule', + fieldName: 'repositoryModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + repositoryModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'RepositoryModule', + 'repositoryModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'RepositoryModuleFilter', + 'RepositoryModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'RepositoryModule', + fieldName: 'repositoryModule', + document, + variables, + transform: (data: { + repositoryModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + repositoryModule: data.repositoryModules?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + repositoryModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'RepositoryModule', + 'repositoryModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'RepositoryModuleFilter', + 'RepositoryModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'RepositoryModule', + fieldName: 'repositoryModule', + document, + variables, + transform: (data: { + repositoryModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + repositoryModule: data.repositoryModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createRepositoryModule: { + repositoryModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'RepositoryModule', + 'createRepositoryModule', + 'repositoryModule', + args.select, + args.data, + 'CreateRepositoryModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'RepositoryModule', + fieldName: 'createRepositoryModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + RepositoryModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateRepositoryModule: { + repositoryModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'RepositoryModule', + 'updateRepositoryModule', + 'repositoryModule', + args.select, + args.where.id, + args.data, + 'UpdateRepositoryModuleInput', + 'id', + 'repositoryModulePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'RepositoryModule', + fieldName: 'updateRepositoryModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteRepositoryModule: { + repositoryModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'RepositoryModule', + 'deleteRepositoryModule', + 'repositoryModule', + { + id: args.where.id, + }, + 'DeleteRepositoryModuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'RepositoryModule', + fieldName: 'deleteRepositoryModule', + 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 5450eca294..6cda508cf6 100644 --- a/sdk/constructive-react/src/modules/orm/mutation/index.ts +++ b/sdk/constructive-react/src/modules/orm/mutation/index.ts @@ -20,7 +20,7 @@ import type { import { connectionFieldsMap } from '../input-types'; /** * Variables for constructBlueprint - * Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry — provisions entity tables, membership modules, and security. 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. + * 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). A table entry either names its table (table_name plus optional schema_name) or references one an installed module generated ("module": {"type": "agent", "scope": "org", "table": "message"}), which resolves through the module row's recorded table ids and raises when it matches nothing instead of creating an empty table. After provisioning, optional smart_tags (jsonb object) on the table entry are applied via metaschema.append_table_smart_tags(), and optional smart_tags on individual field entries are applied via metaschema.append_field_smart_tags(). (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] — resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID on success, NULL on failure. */ export interface ConstructBlueprintVariables { input: ConstructBlueprintInput; @@ -34,10 +34,11 @@ export interface CopyTemplateToBlueprintVariables { } /** * Variables for provisionBucket - * 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. + * Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. */ export interface ProvisionBucketVariables { input: ProvisionBucketInput; diff --git a/sdk/constructive-react/src/modules/schema-types.ts b/sdk/constructive-react/src/modules/schema-types.ts index 25ead43ac0..cc97abd4bb 100644 --- a/sdk/constructive-react/src/modules/schema-types.ts +++ b/sdk/constructive-react/src/modules/schema-types.ts @@ -15,8 +15,8 @@ import type { BlueprintTemplate, CapabilitiesModule, CatalogModule, + ClusterModule, ComputeLogModule, - ConfigSecretsUserModule, ConnectedAccountsModule, ContentPresetModule, CryptoAddressesModule, @@ -43,16 +43,19 @@ import type { GraphExecutionModule, GraphModule, HierarchyModule, - HttpRouteModule, I18NModule, IdentityProvidersModule, + ImageModule, InferenceLogModule, InfraConfigModule, InfraSecretsModule, IntegrationProvidersModule, + InternalConfigModule, InternalSecretsModule, InvitesModule, + K8sAdmissionModule, LimitsModule, + MachineModule, MembershipTypesModule, MembershipsModule, MerkleStoreModule, @@ -67,7 +70,9 @@ import type { RateLimitMetersModule, RateLimitsModule, RealtimeModule, + RefusalLogModule, RelationProvision, + RepositoryModule, ResourceModule, RlsModule, RouteModule, @@ -118,16 +123,28 @@ export type AgentModuleOrderBy = | 'DATABASE_ID_DESC' | 'DEFAULT_CAPABILITIES_ASC' | 'DEFAULT_CAPABILITIES_DESC' + | 'DEFAULT_VISIBILITY_ASC' + | 'DEFAULT_VISIBILITY_DESC' | 'ENTITY_FIELD_ASC' | 'ENTITY_FIELD_DESC' | 'ENTITY_TABLE_ID_ASC' | 'ENTITY_TABLE_ID_DESC' + | 'EVENT_TABLE_ID_ASC' + | 'EVENT_TABLE_ID_DESC' + | 'EVENT_TABLE_NAME_ASC' + | 'EVENT_TABLE_NAME_DESC' | 'HAS_AGENTS_ASC' | 'HAS_AGENTS_DESC' + | 'HAS_ATTACHMENTS_ASC' + | 'HAS_ATTACHMENTS_DESC' | 'HAS_PLANS_ASC' | 'HAS_PLANS_DESC' + | 'HAS_REPOSITORY_RESOURCES_ASC' + | 'HAS_REPOSITORY_RESOURCES_DESC' | 'HAS_RESOURCES_ASC' | 'HAS_RESOURCES_DESC' + | 'HAS_RUNS_ASC' + | 'HAS_RUNS_DESC' | 'ID_ASC' | 'ID_DESC' | 'MESSAGE_TABLE_ID_ASC' @@ -165,16 +182,22 @@ export type AgentModuleOrderBy = | 'PUBLIC_SCHEMA_NAME_DESC' | 'RESOURCES_ASC' | 'RESOURCES_DESC' + | 'RESOURCE_REPOSITORY_TABLE_ID_ASC' + | 'RESOURCE_REPOSITORY_TABLE_ID_DESC' + | 'RESOURCE_REPOSITORY_TABLE_NAME_ASC' + | 'RESOURCE_REPOSITORY_TABLE_NAME_DESC' | 'RESOURCE_TABLE_ID_ASC' | 'RESOURCE_TABLE_ID_DESC' | 'RESOURCE_TABLE_NAME_ASC' | 'RESOURCE_TABLE_NAME_DESC' + | 'RUN_TABLE_ID_ASC' + | 'RUN_TABLE_ID_DESC' + | 'RUN_TABLE_NAME_ASC' + | 'RUN_TABLE_NAME_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC' - | 'SHARED_ASC' - | 'SHARED_DESC' | 'TASK_TABLE_ID_ASC' | 'TASK_TABLE_ID_DESC' | 'TASK_TABLE_NAME_ASC' @@ -182,7 +205,11 @@ export type AgentModuleOrderBy = | 'THREAD_TABLE_ID_ASC' | 'THREAD_TABLE_ID_DESC' | 'THREAD_TABLE_NAME_ASC' - | 'THREAD_TABLE_NAME_DESC'; + | 'THREAD_TABLE_NAME_DESC' + | 'WORKSPACE_TABLE_ID_ASC' + | 'WORKSPACE_TABLE_ID_DESC' + | 'WORKSPACE_TABLE_NAME_ASC' + | 'WORKSPACE_TABLE_NAME_DESC'; /** Methods to use when ordering `ApiSurfaceModule`. */ export type ApiSurfaceModuleOrderBy = | 'APIS_TABLE_ID_ASC' @@ -244,6 +271,8 @@ export type AppModuleOrderBy = | 'APP_COMPONENTS_TABLE_ID_DESC' | 'APP_COMPONENTS_TABLE_NAME_ASC' | 'APP_COMPONENTS_TABLE_NAME_DESC' + | 'APP_STORE_IDENTITIES_TABLE_NAME_ASC' + | 'APP_STORE_IDENTITIES_TABLE_NAME_DESC' | 'CATALOG_MODULE_ID_ASC' | 'CATALOG_MODULE_ID_DESC' | 'DATABASE_ID_ASC' @@ -340,12 +369,18 @@ export type BillingModuleOrderBy = | 'SWEEP_EXPIRED_SUBSCRIPTIONS_FUNCTION_DESC'; /** Methods to use when ordering `BillingProviderModule`. */ export type BillingProviderModuleOrderBy = + | 'ACTIVATE_PLAN_SUBSCRIPTION_FUNCTION_ASC' + | 'ACTIVATE_PLAN_SUBSCRIPTION_FUNCTION_DESC' | 'API_NAME_ASC' | 'API_NAME_DESC' | 'BILLING_CUSTOMERS_TABLE_ID_ASC' | 'BILLING_CUSTOMERS_TABLE_ID_DESC' | 'BILLING_CUSTOMERS_TABLE_NAME_ASC' | 'BILLING_CUSTOMERS_TABLE_NAME_DESC' + | 'BILLING_DISPUTES_TABLE_ID_ASC' + | 'BILLING_DISPUTES_TABLE_ID_DESC' + | 'BILLING_DISPUTES_TABLE_NAME_ASC' + | 'BILLING_DISPUTES_TABLE_NAME_DESC' | 'BILLING_INVOICES_TABLE_ID_ASC' | 'BILLING_INVOICES_TABLE_ID_DESC' | 'BILLING_INVOICES_TABLE_NAME_ASC' @@ -372,6 +407,18 @@ export type BillingProviderModuleOrderBy = | 'BILLING_WEBHOOK_EVENTS_TABLE_NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'GET_ACTIVE_PLAN_PRICING_FUNCTION_ASC' + | 'GET_ACTIVE_PLAN_PRICING_FUNCTION_DESC' + | 'GET_BILLING_CUSTOMER_FUNCTION_ASC' + | 'GET_BILLING_CUSTOMER_FUNCTION_DESC' + | 'GET_BILLING_PRICE_FUNCTION_ASC' + | 'GET_BILLING_PRICE_FUNCTION_DESC' + | 'GET_BILLING_PRODUCT_FUNCTION_ASC' + | 'GET_BILLING_PRODUCT_FUNCTION_DESC' + | 'GET_BILLING_SUBSCRIPTION_FUNCTION_ASC' + | 'GET_BILLING_SUBSCRIPTION_FUNCTION_DESC' + | 'GET_FALLBACK_FREE_PLAN_FUNCTION_ASC' + | 'GET_FALLBACK_FREE_PLAN_FUNCTION_DESC' | 'ID_ASC' | 'ID_DESC' | 'LIST_PENDING_USAGE_SYNC_FUNCTION_ASC' @@ -395,12 +442,24 @@ export type BillingProviderModuleOrderBy = | 'PRODUCTS_TABLE_ID_DESC' | 'PROVIDER_ASC' | 'PROVIDER_DESC' + | 'RECORD_DISPUTE_FUNCTION_ASC' + | 'RECORD_DISPUTE_FUNCTION_DESC' | 'RECORD_REFUND_FUNCTION_ASC' | 'RECORD_REFUND_FUNCTION_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'SUBSCRIPTIONS_TABLE_ID_ASC' | 'SUBSCRIPTIONS_TABLE_ID_DESC' + | 'SWEEP_OVERDUE_SUBSCRIPTIONS_FUNCTION_ASC' + | 'SWEEP_OVERDUE_SUBSCRIPTIONS_FUNCTION_DESC' + | 'UPSERT_BILLING_CUSTOMER_FUNCTION_ASC' + | 'UPSERT_BILLING_CUSTOMER_FUNCTION_DESC' + | 'UPSERT_BILLING_PRICE_FUNCTION_ASC' + | 'UPSERT_BILLING_PRICE_FUNCTION_DESC' + | 'UPSERT_BILLING_PRODUCT_FUNCTION_ASC' + | 'UPSERT_BILLING_PRODUCT_FUNCTION_DESC' + | 'UPSERT_BILLING_SUBSCRIPTION_FUNCTION_ASC' + | 'UPSERT_BILLING_SUBSCRIPTION_FUNCTION_DESC' | 'UPSERT_INVOICE_FUNCTION_ASC' | 'UPSERT_INVOICE_FUNCTION_DESC'; /** Methods to use when ordering `BlueprintConstruction`. */ @@ -565,6 +624,10 @@ export type CatalogModuleOrderBy = | 'APPS_TABLE_ID_DESC' | 'APPS_TABLE_NAME_ASC' | 'APPS_TABLE_NAME_DESC' + | 'APP_STORE_IDENTITIES_TABLE_ID_ASC' + | 'APP_STORE_IDENTITIES_TABLE_ID_DESC' + | 'APP_STORE_IDENTITIES_TABLE_NAME_ASC' + | 'APP_STORE_IDENTITIES_TABLE_NAME_DESC' | 'BINDINGS_TABLE_ID_ASC' | 'BINDINGS_TABLE_ID_DESC' | 'BINDINGS_TABLE_NAME_ASC' @@ -589,6 +652,14 @@ export type CatalogModuleOrderBy = | 'FUNCTIONS_TABLE_NAME_DESC' | 'ID_ASC' | 'ID_DESC' + | 'IMAGES_TABLE_ID_ASC' + | 'IMAGES_TABLE_ID_DESC' + | 'IMAGES_TABLE_NAME_ASC' + | 'IMAGES_TABLE_NAME_DESC' + | 'MANAGED_DOMAINS_TABLE_ID_ASC' + | 'MANAGED_DOMAINS_TABLE_ID_DESC' + | 'MANAGED_DOMAINS_TABLE_NAME_ASC' + | 'MANAGED_DOMAINS_TABLE_NAME_DESC' | 'NAMESPACES_TABLE_ID_ASC' | 'NAMESPACES_TABLE_ID_DESC' | 'NAMESPACES_TABLE_NAME_ASC' @@ -604,6 +675,10 @@ export type CatalogModuleOrderBy = | 'PROVISIONS_DESC' | 'PUBLIC_SCHEMA_NAME_ASC' | 'PUBLIC_SCHEMA_NAME_DESC' + | 'REDIRECTS_TABLE_ID_ASC' + | 'REDIRECTS_TABLE_ID_DESC' + | 'REDIRECTS_TABLE_NAME_ASC' + | 'REDIRECTS_TABLE_NAME_DESC' | 'RESOURCES_TABLE_ID_ASC' | 'RESOURCES_TABLE_ID_DESC' | 'RESOURCES_TABLE_NAME_ASC' @@ -640,27 +715,43 @@ export type CatalogModuleOrderBy = | 'SITES_WEB_CONFIG_TABLE_ID_DESC' | 'SITES_WEB_CONFIG_TABLE_NAME_ASC' | 'SITES_WEB_CONFIG_TABLE_NAME_DESC'; -/** Methods to use when ordering `ComputeLogModule`. */ -export type ComputeLogModuleOrderBy = - | 'ACTOR_FK_TABLE_ID_ASC' - | 'ACTOR_FK_TABLE_ID_DESC' +/** Methods to use when ordering `ClusterModule`. */ +export type ClusterModuleOrderBy = | 'API_NAME_ASC' | 'API_NAME_DESC' - | 'COMPUTE_LOG_TABLE_ID_ASC' - | 'COMPUTE_LOG_TABLE_ID_DESC' - | 'COMPUTE_LOG_TABLE_NAME_ASC' - | 'COMPUTE_LOG_TABLE_NAME_DESC' + | 'CLUSTERS_TABLE_ID_ASC' + | 'CLUSTERS_TABLE_ID_DESC' + | 'CLUSTERS_TABLE_NAME_ASC' + | 'CLUSTERS_TABLE_NAME_DESC' + | 'CLUSTER_EVENTS_TABLE_ID_ASC' + | 'CLUSTER_EVENTS_TABLE_ID_DESC' + | 'CLUSTER_EVENTS_TABLE_NAME_ASC' + | 'CLUSTER_EVENTS_TABLE_NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'DATABASE_PLACEMENTS_TABLE_ID_ASC' + | 'DATABASE_PLACEMENTS_TABLE_ID_DESC' + | 'DATABASE_PLACEMENTS_TABLE_NAME_ASC' + | 'DATABASE_PLACEMENTS_TABLE_NAME_DESC' + | 'DATABASE_SERVERS_TABLE_ID_ASC' + | 'DATABASE_SERVERS_TABLE_ID_DESC' + | 'DATABASE_SERVERS_TABLE_NAME_ASC' + | 'DATABASE_SERVERS_TABLE_NAME_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'ENTITY_FIELD_ASC' | 'ENTITY_FIELD_DESC' - | 'ENTITY_FK_TABLE_ID_ASC' - | 'ENTITY_FK_TABLE_ID_DESC' | 'ID_ASC' | 'ID_DESC' - | 'INTERVAL_ASC' - | 'INTERVAL_DESC' | 'NATURAL' + | 'PARTITION_INTERVAL_ASC' + | 'PARTITION_INTERVAL_DESC' + | 'PHYSICAL_DATABASES_TABLE_ID_ASC' + | 'PHYSICAL_DATABASES_TABLE_ID_DESC' + | 'PHYSICAL_DATABASES_TABLE_NAME_ASC' + | 'PHYSICAL_DATABASES_TABLE_NAME_DESC' + | 'POLICIES_ASC' + | 'POLICIES_DESC' | 'PREFIX_ASC' | 'PREFIX_DESC' | 'PREMAKE_ASC' @@ -673,6 +764,8 @@ export type ComputeLogModuleOrderBy = | 'PRIVATE_SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_NAME_ASC' | 'PRIVATE_SCHEMA_NAME_DESC' + | 'PROVISIONS_ASC' + | 'PROVISIONS_DESC' | 'PUBLIC_SCHEMA_NAME_ASC' | 'PUBLIC_SCHEMA_NAME_DESC' | 'RETENTION_ASC' @@ -680,32 +773,50 @@ export type ComputeLogModuleOrderBy = | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'USAGE_SUMMARY_TABLE_ID_ASC' - | 'USAGE_SUMMARY_TABLE_ID_DESC' - | 'USAGE_SUMMARY_TABLE_NAME_ASC' - | 'USAGE_SUMMARY_TABLE_NAME_DESC'; -/** Methods to use when ordering `ConfigSecretsUserModule`. */ -export type ConfigSecretsUserModuleOrderBy = + | 'SCOPE_DESC'; +/** Methods to use when ordering `ComputeLogModule`. */ +export type ComputeLogModuleOrderBy = | 'API_NAME_ASC' | 'API_NAME_DESC' + | 'COMPUTE_LOG_TABLE_ID_ASC' + | 'COMPUTE_LOG_TABLE_ID_DESC' + | 'COMPUTE_LOG_TABLE_NAME_ASC' + | 'COMPUTE_LOG_TABLE_NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'ENTITY_FIELD_ASC' | 'ENTITY_FIELD_DESC' | 'ID_ASC' | 'ID_DESC' + | 'INTERVAL_ASC' + | 'INTERVAL_DESC' | 'NATURAL' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'PREMAKE_ASC' + | 'PREMAKE_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' + | 'RETENTION_ASC' + | 'RETENTION_DESC' + | 'ROLLUP_FUNCTION_NAME_ASC' + | 'ROLLUP_FUNCTION_NAME_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_NAME_DESC'; + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'USAGE_SUMMARY_TABLE_ID_ASC' + | 'USAGE_SUMMARY_TABLE_ID_DESC' + | 'USAGE_SUMMARY_TABLE_NAME_ASC' + | 'USAGE_SUMMARY_TABLE_NAME_DESC'; /** Methods to use when ordering `ConnectedAccountsModule`. */ export type ConnectedAccountsModuleOrderBy = | 'API_NAME_ASC' @@ -857,6 +968,8 @@ export type DataCapabilitiesFieldOrderBy = export type DatabaseProvisionModuleOrderBy = | 'ASYNC_ASC' | 'ASYNC_DESC' + | 'BOOTSTRAP_ACTOR_ID_ASC' + | 'BOOTSTRAP_ACTOR_ID_DESC' | 'BOOTSTRAP_ERROR_ASC' | 'BOOTSTRAP_ERROR_DESC' | 'BOOTSTRAP_STATUS_ASC' @@ -1626,7 +1739,9 @@ export type FunctionModuleOrderBy = | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'SCOPE_ASC' - | 'SCOPE_DESC'; + | 'SCOPE_DESC' + | 'STORAGE_KEY_ASC' + | 'STORAGE_KEY_DESC'; /** Methods to use when ordering `GraphExecutionModule`. */ export type GraphExecutionModuleOrderBy = | 'API_NAME_ASC' @@ -1770,85 +1885,83 @@ export type HierarchyModuleOrderBy = | 'SPRT_TABLE_NAME_DESC' | 'USERS_TABLE_ID_ASC' | 'USERS_TABLE_ID_DESC'; -/** Methods to use when ordering `HttpRouteModule`. */ -export type HttpRouteModuleOrderBy = +/** Methods to use when ordering `I18NModule`. */ +export type I18NModuleOrderBy = | 'API_NAME_ASC' | 'API_NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DEFAULT_CAPABILITIES_ASC' - | 'DEFAULT_CAPABILITIES_DESC' - | 'ENTITY_FIELD_ASC' - | 'ENTITY_FIELD_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' - | 'FUNCTION_MODULE_ID_ASC' - | 'FUNCTION_MODULE_ID_DESC' - | 'HTTP_ROUTES_TABLE_ID_ASC' - | 'HTTP_ROUTES_TABLE_ID_DESC' - | 'HTTP_ROUTES_TABLE_NAME_ASC' - | 'HTTP_ROUTES_TABLE_NAME_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' | 'PRIVATE_SCHEMA_ID_ASC' | 'PRIVATE_SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_NAME_ASC' - | 'PRIVATE_SCHEMA_NAME_DESC' - | 'PROVISIONS_ASC' - | 'PROVISIONS_DESC' - | 'PUBLIC_SCHEMA_NAME_ASC' - | 'PUBLIC_SCHEMA_NAME_DESC' - | 'RESOLVER_FUNCTION_NAME_ASC' - | 'RESOLVER_FUNCTION_NAME_DESC' - | 'RESOURCE_MODULE_ID_ASC' - | 'RESOURCE_MODULE_ID_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'STORAGE_MODULE_ID_ASC' - | 'STORAGE_MODULE_ID_DESC'; -/** Methods to use when ordering `I18NModule`. */ -export type I18NModuleOrderBy = + | 'SETTINGS_TABLE_ID_ASC' + | 'SETTINGS_TABLE_ID_DESC'; +/** Methods to use when ordering `IdentityProvidersModule`. */ +export type IdentityProvidersModuleOrderBy = | 'API_NAME_ASC' | 'API_NAME_DESC' | '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' + | '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' - | 'SETTINGS_TABLE_ID_ASC' - | 'SETTINGS_TABLE_ID_DESC'; -/** Methods to use when ordering `IdentityProvidersModule`. */ -export type IdentityProvidersModuleOrderBy = + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'TABLE_NAME_ASC' + | 'TABLE_NAME_DESC'; +/** Methods to use when ordering `ImageModule`. */ +export type ImageModuleOrderBy = | 'API_NAME_ASC' | 'API_NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'ENTITY_FIELD_ASC' | 'ENTITY_FIELD_DESC' | 'ENTITY_TABLE_ID_ASC' | 'ENTITY_TABLE_ID_DESC' | 'ID_ASC' | 'ID_DESC' + | 'IMAGES_TABLE_ID_ASC' + | 'IMAGES_TABLE_ID_DESC' + | 'IMAGES_TABLE_NAME_ASC' + | 'IMAGES_TABLE_NAME_DESC' + | 'IMAGE_GRANTS_TABLE_ID_ASC' + | 'IMAGE_GRANTS_TABLE_ID_DESC' + | 'IMAGE_GRANTS_TABLE_NAME_ASC' + | 'IMAGE_GRANTS_TABLE_NAME_DESC' | 'NATURAL' + | 'POLICIES_ASC' + | 'POLICIES_DESC' | 'PREFIX_ASC' | 'PREFIX_DESC' | 'PRIMARY_KEY_ASC' @@ -1859,28 +1972,30 @@ export type IdentityProvidersModuleOrderBy = | 'PRIVATE_SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_NAME_ASC' | 'PRIVATE_SCHEMA_NAME_DESC' + | 'PROVISIONS_ASC' + | 'PROVISIONS_DESC' | 'PUBLIC_SCHEMA_NAME_ASC' | 'PUBLIC_SCHEMA_NAME_DESC' + | 'REGISTRIES_TABLE_ID_ASC' + | 'REGISTRIES_TABLE_ID_DESC' + | 'REGISTRIES_TABLE_NAME_ASC' + | 'REGISTRIES_TABLE_NAME_DESC' + | 'REGISTRY_GRANTS_TABLE_ID_ASC' + | 'REGISTRY_GRANTS_TABLE_ID_DESC' + | 'REGISTRY_GRANTS_TABLE_NAME_ASC' + | 'REGISTRY_GRANTS_TABLE_NAME_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_NAME_DESC'; + | 'SCOPE_DESC'; /** Methods to use when ordering `InferenceLogModule`. */ export type InferenceLogModuleOrderBy = - | 'ACTOR_FK_TABLE_ID_ASC' - | 'ACTOR_FK_TABLE_ID_DESC' | 'API_NAME_ASC' | 'API_NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'ENTITY_FIELD_ASC' | 'ENTITY_FIELD_DESC' - | 'ENTITY_FK_TABLE_ID_ASC' - | 'ENTITY_FK_TABLE_ID_DESC' | 'ID_ASC' | 'ID_DESC' | 'INFERENCE_LOG_TABLE_ID_ASC' @@ -1906,6 +2021,8 @@ export type InferenceLogModuleOrderBy = | 'PUBLIC_SCHEMA_NAME_DESC' | 'RETENTION_ASC' | 'RETENTION_DESC' + | 'ROLLUP_FUNCTION_NAME_ASC' + | 'ROLLUP_FUNCTION_NAME_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'SCOPE_ASC' @@ -2021,6 +2138,43 @@ export type IntegrationProvidersModuleOrderBy = | 'TABLE_ID_DESC' | 'TABLE_NAME_ASC' | 'TABLE_NAME_DESC'; +/** Methods to use when ordering `InternalConfigModule`. */ +export type InternalConfigModuleOrderBy = + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'INTERNAL_CONFIG_TABLE_ID_ASC' + | 'INTERNAL_CONFIG_TABLE_ID_DESC' + | 'INTERNAL_CONFIG_TABLE_NAME_ASC' + | 'INTERNAL_CONFIG_TABLE_NAME_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_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC'; /** Methods to use when ordering `InternalSecretsModule`. */ export type InternalSecretsModuleOrderBy = | 'API_NAME_ASC' @@ -2101,6 +2255,47 @@ export type InvitesModuleOrderBy = | 'SUBMIT_INVITE_CODE_FUNCTION_DESC' | 'USERS_TABLE_ID_ASC' | 'USERS_TABLE_ID_DESC'; +/** Methods to use when ordering `K8sAdmissionModule`. */ +export type K8sAdmissionModuleOrderBy = + | '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' + | 'K8S_RESOURCE_KINDS_TABLE_ID_ASC' + | 'K8S_RESOURCE_KINDS_TABLE_ID_DESC' + | 'K8S_SPEC_RULES_TABLE_ID_ASC' + | 'K8S_SPEC_RULES_TABLE_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 `LimitsModule`. */ export type LimitsModuleOrderBy = | 'ACTOR_TABLE_ID_ASC' @@ -2182,6 +2377,59 @@ export type LimitsModuleOrderBy = | 'TABLE_ID_DESC' | 'TABLE_NAME_ASC' | 'TABLE_NAME_DESC'; +/** Methods to use when ordering `MachineModule`. */ +export type MachineModuleOrderBy = + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'MACHINES_TABLE_ID_ASC' + | 'MACHINES_TABLE_ID_DESC' + | 'MACHINES_TABLE_NAME_ASC' + | 'MACHINES_TABLE_NAME_DESC' + | 'MACHINE_MESSAGES_TABLE_ID_ASC' + | 'MACHINE_MESSAGES_TABLE_ID_DESC' + | 'MACHINE_MESSAGES_TABLE_NAME_ASC' + | 'MACHINE_MESSAGES_TABLE_NAME_DESC' + | 'MACHINE_SESSIONS_TABLE_ID_ASC' + | 'MACHINE_SESSIONS_TABLE_ID_DESC' + | 'MACHINE_SESSIONS_TABLE_NAME_ASC' + | 'MACHINE_SESSIONS_TABLE_NAME_DESC' + | 'NATURAL' + | 'PARTITION_INTERVAL_ASC' + | 'PARTITION_INTERVAL_DESC' + | 'POLICIES_ASC' + | 'POLICIES_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'PREMAKE_ASC' + | 'PREMAKE_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_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'RETENTION_ASC' + | 'RETENTION_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC'; /** Methods to use when ordering `MembershipTypesModule`. */ export type MembershipTypesModuleOrderBy = | 'DATABASE_ID_ASC' @@ -2300,6 +2548,8 @@ export type MerkleStoreModuleOrderBy = | 'DATABASE_ID_DESC' | 'ENTITY_FIELD_ASC' | 'ENTITY_FIELD_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' | 'FUNCTION_PREFIX_ASC' | 'FUNCTION_PREFIX_DESC' | 'ID_ASC' @@ -2473,6 +2723,14 @@ export type PagesModuleOrderBy = | 'POLICIES_DESC' | 'PREFIX_ASC' | 'PREFIX_DESC' + | 'PREVIEW_COMMIT_FUNCTION_NAME_ASC' + | 'PREVIEW_COMMIT_FUNCTION_NAME_DESC' + | 'PREVIEW_SET_FUNCTION_NAME_ASC' + | 'PREVIEW_SET_FUNCTION_NAME_DESC' + | 'PREVIEW_TOKEN_MINT_FUNCTION_NAME_ASC' + | 'PREVIEW_TOKEN_MINT_FUNCTION_NAME_DESC' + | 'PREVIEW_TOKEN_VERIFIER_FUNCTION_NAME_ASC' + | 'PREVIEW_TOKEN_VERIFIER_FUNCTION_NAME_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'PRIVATE_API_NAME_ASC' @@ -2487,6 +2745,8 @@ export type PagesModuleOrderBy = | 'PUBLIC_SCHEMA_ID_DESC' | 'PUBLIC_SCHEMA_NAME_ASC' | 'PUBLIC_SCHEMA_NAME_DESC' + | 'RELEASE_MANIFEST_FUNCTION_NAME_ASC' + | 'RELEASE_MANIFEST_FUNCTION_NAME_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC' | 'SITES_TABLE_ID_ASC' @@ -2596,6 +2856,8 @@ export type PrincipalAuthModuleOrderBy = | 'PRINCIPAL_ENTITIES_TABLE_ID_DESC' | 'PRINCIPAL_SCOPE_OVERRIDES_TABLE_ID_ASC' | 'PRINCIPAL_SCOPE_OVERRIDES_TABLE_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' | 'REVOKE_ORG_API_KEY_FUNCTION_ASC' | 'REVOKE_ORG_API_KEY_FUNCTION_DESC' | 'SCHEMA_ID_ASC' @@ -2604,6 +2866,8 @@ export type PrincipalAuthModuleOrderBy = | 'SESSIONS_TABLE_ID_DESC' | 'SESSION_CREDENTIALS_TABLE_ID_ASC' | 'SESSION_CREDENTIALS_TABLE_ID_DESC' + | 'SWEEP_EXPIRED_PRINCIPALS_FUNCTION_ASC' + | 'SWEEP_EXPIRED_PRINCIPALS_FUNCTION_DESC' | 'USERS_TABLE_ID_ASC' | 'USERS_TABLE_ID_DESC'; /** Methods to use when ordering `ProfilesModule`. */ @@ -2760,6 +3024,57 @@ export type RealtimeModuleOrderBy = | 'SOURCE_REGISTRY_TABLE_ID_DESC' | 'SUBSCRIPTIONS_SCHEMA_ID_ASC' | 'SUBSCRIPTIONS_SCHEMA_ID_DESC'; +/** Methods to use when ordering `RefusalLogModule`. */ +export type RefusalLogModuleOrderBy = + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'LOG_INTERVAL_ASC' + | 'LOG_INTERVAL_DESC' + | 'LOG_PREMAKE_ASC' + | 'LOG_PREMAKE_DESC' + | 'LOG_RETENTION_ASC' + | 'LOG_RETENTION_DESC' + | 'LOG_TABLE_ID_ASC' + | 'LOG_TABLE_ID_DESC' + | 'LOG_TABLE_NAME_ASC' + | 'LOG_TABLE_NAME_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' + | 'RECORD_REFUSALS_FUNCTION_ASC' + | 'RECORD_REFUSALS_FUNCTION_DESC' + | 'ROLLUP_REFUSAL_USAGE_SUMMARY_FUNCTION_ASC' + | 'ROLLUP_REFUSAL_USAGE_SUMMARY_FUNCTION_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'SUMMARY_INTERVAL_ASC' + | 'SUMMARY_INTERVAL_DESC' + | 'SUMMARY_PREMAKE_ASC' + | 'SUMMARY_PREMAKE_DESC' + | 'SUMMARY_RETENTION_ASC' + | 'SUMMARY_RETENTION_DESC' + | 'SUMMARY_TABLE_ID_ASC' + | 'SUMMARY_TABLE_ID_DESC' + | 'SUMMARY_TABLE_NAME_ASC' + | 'SUMMARY_TABLE_NAME_DESC'; /** Methods to use when ordering `RelationProvision`. */ export type RelationProvisionOrderBy = | 'API_REQUIRED_ASC' @@ -2813,10 +3128,18 @@ export type RelationProvisionOrderBy = | 'TARGET_TABLE_ID_DESC' | 'USE_COMPOSITE_KEY_ASC' | 'USE_COMPOSITE_KEY_DESC'; -/** Methods to use when ordering `ResourceModule`. */ -export type ResourceModuleOrderBy = +/** Methods to use when ordering `RepositoryModule`. */ +export type RepositoryModuleOrderBy = | 'API_NAME_ASC' | 'API_NAME_DESC' + | 'BUILDS_TABLE_ID_ASC' + | 'BUILDS_TABLE_ID_DESC' + | 'BUILDS_TABLE_NAME_ASC' + | 'BUILDS_TABLE_NAME_DESC' + | 'BUILD_STEPS_TABLE_ID_ASC' + | 'BUILD_STEPS_TABLE_ID_DESC' + | 'BUILD_STEPS_TABLE_NAME_ASC' + | 'BUILD_STEPS_TABLE_NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'DEFAULT_CAPABILITIES_ASC' @@ -2825,11 +3148,92 @@ export type ResourceModuleOrderBy = | 'ENTITY_FIELD_DESC' | 'ENTITY_TABLE_ID_ASC' | 'ENTITY_TABLE_ID_DESC' + | 'HAS_ATTACHMENTS_ASC' + | 'HAS_ATTACHMENTS_DESC' + | 'HAS_BUILDS_ASC' + | 'HAS_BUILDS_DESC' | 'ID_ASC' | 'ID_DESC' - | 'INSTALLATION_STORE_NAME_ASC' - | 'INSTALLATION_STORE_NAME_DESC' - | 'MERKLE_STORE_MODULE_ID_ASC' + | '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' + | 'PROPOSALS_TABLE_ID_ASC' + | 'PROPOSALS_TABLE_ID_DESC' + | 'PROPOSALS_TABLE_NAME_ASC' + | 'PROPOSALS_TABLE_NAME_DESC' + | 'PROPOSAL_COMMENTS_TABLE_ID_ASC' + | 'PROPOSAL_COMMENTS_TABLE_ID_DESC' + | 'PROPOSAL_COMMENTS_TABLE_NAME_ASC' + | 'PROPOSAL_COMMENTS_TABLE_NAME_DESC' + | 'PROPOSAL_FILE_VIEWS_TABLE_ID_ASC' + | 'PROPOSAL_FILE_VIEWS_TABLE_ID_DESC' + | 'PROPOSAL_FILE_VIEWS_TABLE_NAME_ASC' + | 'PROPOSAL_FILE_VIEWS_TABLE_NAME_DESC' + | 'PROPOSAL_REACTIONS_TABLE_ID_ASC' + | 'PROPOSAL_REACTIONS_TABLE_ID_DESC' + | 'PROPOSAL_REACTIONS_TABLE_NAME_ASC' + | 'PROPOSAL_REACTIONS_TABLE_NAME_DESC' + | 'PROPOSAL_REVIEWS_TABLE_ID_ASC' + | 'PROPOSAL_REVIEWS_TABLE_ID_DESC' + | 'PROPOSAL_REVIEWS_TABLE_NAME_ASC' + | 'PROPOSAL_REVIEWS_TABLE_NAME_DESC' + | 'PROVISIONS_ASC' + | 'PROVISIONS_DESC' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'REPOSITORIES_TABLE_ID_ASC' + | 'REPOSITORIES_TABLE_ID_DESC' + | 'REPOSITORIES_TABLE_NAME_ASC' + | 'REPOSITORIES_TABLE_NAME_DESC' + | 'REPOSITORY_EVENTS_TABLE_ID_ASC' + | 'REPOSITORY_EVENTS_TABLE_ID_DESC' + | 'REPOSITORY_EVENTS_TABLE_NAME_ASC' + | 'REPOSITORY_EVENTS_TABLE_NAME_DESC' + | 'REPOSITORY_REQUIRED_CHECKS_TABLE_ID_ASC' + | 'REPOSITORY_REQUIRED_CHECKS_TABLE_ID_DESC' + | 'REPOSITORY_REQUIRED_CHECKS_TABLE_NAME_ASC' + | 'REPOSITORY_REQUIRED_CHECKS_TABLE_NAME_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'SEARCH_ASC' + | 'SEARCH_DESC' + | 'WORKFLOWS_TABLE_ID_ASC' + | 'WORKFLOWS_TABLE_ID_DESC' + | 'WORKFLOWS_TABLE_NAME_ASC' + | 'WORKFLOWS_TABLE_NAME_DESC'; +/** Methods to use when ordering `ResourceModule`. */ +export type ResourceModuleOrderBy = + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'BUILDER_BINDINGS_TABLE_ID_ASC' + | 'BUILDER_BINDINGS_TABLE_ID_DESC' + | 'BUILDER_BINDINGS_TABLE_NAME_ASC' + | 'BUILDER_BINDINGS_TABLE_NAME_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'INSTALLATION_STORE_NAME_ASC' + | 'INSTALLATION_STORE_NAME_DESC' + | 'MERKLE_STORE_MODULE_ID_ASC' | 'MERKLE_STORE_MODULE_ID_DESC' | 'NAMESPACE_MODULE_ID_ASC' | 'NAMESPACE_MODULE_ID_DESC' @@ -2850,6 +3254,10 @@ export type ResourceModuleOrderBy = | 'PROVISIONS_DESC' | 'PUBLIC_SCHEMA_NAME_ASC' | 'PUBLIC_SCHEMA_NAME_DESC' + | 'REGISTRY_BINDINGS_TABLE_ID_ASC' + | 'REGISTRY_BINDINGS_TABLE_ID_DESC' + | 'REGISTRY_BINDINGS_TABLE_NAME_ASC' + | 'REGISTRY_BINDINGS_TABLE_NAME_DESC' | 'REQUIREMENTS_STATE_VIEW_NAME_ASC' | 'REQUIREMENTS_STATE_VIEW_NAME_DESC' | 'RESOLVED_REQUIREMENTS_VIEW_NAME_ASC' @@ -2964,6 +3372,10 @@ export type RouteModuleOrderBy = | 'PROVISIONS_DESC' | 'PUBLIC_SCHEMA_NAME_ASC' | 'PUBLIC_SCHEMA_NAME_DESC' + | 'REDIRECTS_TABLE_ID_ASC' + | 'REDIRECTS_TABLE_ID_DESC' + | 'REDIRECTS_TABLE_NAME_ASC' + | 'REDIRECTS_TABLE_NAME_DESC' | 'RESOLVER_FUNCTION_NAME_ASC' | 'RESOLVER_FUNCTION_NAME_DESC' | 'ROUTES_TABLE_ID_ASC' @@ -2977,7 +3389,11 @@ export type RouteModuleOrderBy = | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'SCOPE_ASC' - | 'SCOPE_DESC'; + | 'SCOPE_DESC' + | 'SERVING_SITE_FIELD_ASC' + | 'SERVING_SITE_FIELD_DESC' + | 'STORAGE_KEY_ASC' + | 'STORAGE_KEY_DESC'; /** Methods to use when ordering `ScopeTypesModule`. */ export type ScopeTypesModuleOrderBy = | 'DATABASE_ID_ASC' @@ -3003,11 +3419,15 @@ export type SecureTableProvisionOrderBy = | 'GRANTS_DESC' | 'ID_ASC' | 'ID_DESC' + | 'MODULE_ASC' + | 'MODULE_DESC' | 'NATURAL' | 'NODES_ASC' | 'NODES_DESC' | 'OUT_FIELDS_ASC' | 'OUT_FIELDS_DESC' + | 'OWNS_ASC' + | 'OWNS_DESC' | 'POLICIES_ASC' | 'POLICIES_DESC' | 'PRIMARY_KEY_ASC' @@ -3125,6 +3545,10 @@ export type SiteSurfaceModuleOrderBy = | 'SITE_MODULES_TABLE_ID_DESC' | 'SITE_MODULES_TABLE_NAME_ASC' | 'SITE_MODULES_TABLE_NAME_DESC' + | 'SITE_RELEASES_TABLE_ID_ASC' + | 'SITE_RELEASES_TABLE_ID_DESC' + | 'SITE_RELEASES_TABLE_NAME_ASC' + | 'SITE_RELEASES_TABLE_NAME_DESC' | 'SITE_THEMES_TABLE_ID_ASC' | 'SITE_THEMES_TABLE_ID_DESC' | 'SITE_THEMES_TABLE_NAME_ASC' @@ -3132,19 +3556,17 @@ export type SiteSurfaceModuleOrderBy = | 'SITE_WEB_CONFIG_TABLE_ID_ASC' | 'SITE_WEB_CONFIG_TABLE_ID_DESC' | 'SITE_WEB_CONFIG_TABLE_NAME_ASC' - | 'SITE_WEB_CONFIG_TABLE_NAME_DESC'; + | 'SITE_WEB_CONFIG_TABLE_NAME_DESC' + | 'STORAGE_KEY_ASC' + | 'STORAGE_KEY_DESC'; /** Methods to use when ordering `StorageLogModule`. */ export type StorageLogModuleOrderBy = - | 'ACTOR_FK_TABLE_ID_ASC' - | 'ACTOR_FK_TABLE_ID_DESC' | 'API_NAME_ASC' | 'API_NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'ENTITY_FIELD_ASC' | 'ENTITY_FIELD_DESC' - | 'ENTITY_FK_TABLE_ID_ASC' - | 'ENTITY_FK_TABLE_ID_DESC' | 'ID_ASC' | 'ID_DESC' | 'INTERVAL_ASC' @@ -3166,6 +3588,8 @@ export type StorageLogModuleOrderBy = | 'PUBLIC_SCHEMA_NAME_DESC' | 'RETENTION_ASC' | 'RETENTION_DESC' + | 'ROLLUP_FUNCTION_NAME_ASC' + | 'ROLLUP_FUNCTION_NAME_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'SCOPE_ASC' @@ -3228,6 +3652,8 @@ export type StorageModuleOrderBy = | 'HAS_VERSIONING_DESC' | 'ID_ASC' | 'ID_DESC' + | 'KEY_ASC' + | 'KEY_DESC' | 'MAX_BULK_FILES_ASC' | 'MAX_BULK_FILES_DESC' | 'MAX_BULK_TOTAL_SIZE_ASC' @@ -3267,16 +3693,12 @@ export type StorageModuleOrderBy = | 'UPLOAD_URL_EXPIRY_SECONDS_DESC'; /** Methods to use when ordering `TransferLogModule`. */ export type TransferLogModuleOrderBy = - | 'ACTOR_FK_TABLE_ID_ASC' - | 'ACTOR_FK_TABLE_ID_DESC' | 'API_NAME_ASC' | 'API_NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'ENTITY_FIELD_ASC' | 'ENTITY_FIELD_DESC' - | 'ENTITY_FK_TABLE_ID_ASC' - | 'ENTITY_FK_TABLE_ID_DESC' | 'ID_ASC' | 'ID_DESC' | 'INTERVAL_ASC' @@ -3298,6 +3720,8 @@ export type TransferLogModuleOrderBy = | 'PUBLIC_SCHEMA_NAME_DESC' | 'RETENTION_ASC' | 'RETENTION_DESC' + | 'ROLLUP_FUNCTION_NAME_ASC' + | 'ROLLUP_FUNCTION_NAME_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'SCOPE_ASC' @@ -3339,10 +3763,14 @@ export type UserAuthModuleOrderBy = | 'PRIMARY_KEY_DESC' | 'PRIVATE_API_NAME_ASC' | 'PRIVATE_API_NAME_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' | 'REQUEST_CROSS_ORIGIN_TOKEN_FUNCTION_ASC' | 'REQUEST_CROSS_ORIGIN_TOKEN_FUNCTION_DESC' | 'RESET_PASSWORD_FUNCTION_ASC' | 'RESET_PASSWORD_FUNCTION_DESC' + | 'REVOKE_SESSION_TREE_FUNCTION_ASC' + | 'REVOKE_SESSION_TREE_FUNCTION_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'SECRETS_TABLE_ID_ASC' @@ -3365,6 +3793,8 @@ export type UserAuthModuleOrderBy = | 'SIGN_OUT_FUNCTION_DESC' | 'SIGN_UP_FUNCTION_ASC' | 'SIGN_UP_FUNCTION_DESC' + | 'SWEEP_EXPIRED_SESSIONS_FUNCTION_ASC' + | 'SWEEP_EXPIRED_SESSIONS_FUNCTION_DESC' | 'USERS_TABLE_ID_ASC' | 'USERS_TABLE_ID_DESC' | 'VERIFY_EMAIL_FUNCTION_ASC' @@ -3593,16 +4023,28 @@ export interface AgentModuleFilter { databaseId?: UUIDFilter; /** Filter by the object’s `defaultCapabilities` field. */ defaultCapabilities?: StringListFilter; + /** Filter by the object’s `defaultVisibility` field. */ + defaultVisibility?: StringFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ entityTableId?: UUIDFilter; + /** Filter by the object’s `eventTableId` field. */ + eventTableId?: UUIDFilter; + /** Filter by the object’s `eventTableName` field. */ + eventTableName?: StringFilter; /** Filter by the object’s `hasAgents` field. */ hasAgents?: BooleanFilter; + /** Filter by the object’s `hasAttachments` field. */ + hasAttachments?: BooleanFilter; /** Filter by the object’s `hasPlans` field. */ hasPlans?: BooleanFilter; + /** Filter by the object’s `hasRepositoryResources` field. */ + hasRepositoryResources?: BooleanFilter; /** Filter by the object’s `hasResources` field. */ hasResources?: BooleanFilter; + /** Filter by the object’s `hasRuns` field. */ + hasRuns?: BooleanFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `messageTableId` field. */ @@ -3639,18 +4081,24 @@ export interface AgentModuleFilter { provisions?: JSONFilter; /** Filter by the object’s `publicSchemaName` field. */ publicSchemaName?: StringFilter; + /** Filter by the object’s `resourceRepositoryTableId` field. */ + resourceRepositoryTableId?: UUIDFilter; + /** Filter by the object’s `resourceRepositoryTableName` field. */ + resourceRepositoryTableName?: StringFilter; /** Filter by the object’s `resourceTableId` field. */ resourceTableId?: UUIDFilter; /** Filter by the object’s `resourceTableName` field. */ resourceTableName?: StringFilter; /** Filter by the object’s `resources` field. */ resources?: JSONFilter; + /** Filter by the object’s `runTableId` field. */ + runTableId?: UUIDFilter; + /** Filter by the object’s `runTableName` field. */ + runTableName?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `scope` field. */ scope?: StringFilter; - /** Filter by the object’s `shared` field. */ - shared?: BooleanFilter; /** Filter by the object’s `taskTableId` field. */ taskTableId?: UUIDFilter; /** Filter by the object’s `taskTableName` field. */ @@ -3659,6 +4107,10 @@ export interface AgentModuleFilter { threadTableId?: UUIDFilter; /** Filter by the object’s `threadTableName` field. */ threadTableName?: StringFilter; + /** Filter by the object’s `workspaceTableId` field. */ + workspaceTableId?: UUIDFilter; + /** Filter by the object’s `workspaceTableName` field. */ + workspaceTableName?: StringFilter; } /** An input for mutations affecting `AgentModule` */ export interface AgentModuleInput { @@ -3667,11 +4119,17 @@ export interface AgentModuleInput { apiName?: string; databaseId: string; defaultCapabilities?: string[]; + defaultVisibility?: string; entityField?: string; entityTableId?: string; + eventTableId?: string; + eventTableName?: string; hasAgents?: boolean; + hasAttachments?: boolean; hasPlans?: boolean; + hasRepositoryResources?: boolean; hasResources?: boolean; + hasRuns?: boolean; id?: string; messageTableId?: string; messageTableName?: string; @@ -3688,16 +4146,21 @@ export interface AgentModuleInput { promptsTableName?: string; provisions?: unknown; publicSchemaName?: string; + resourceRepositoryTableId?: string; + resourceRepositoryTableName?: string; resourceTableId?: string; resourceTableName?: string; resources?: unknown; + runTableId?: string; + runTableName?: string; schemaId?: string; scope: string; - shared?: boolean; taskTableId?: string; taskTableName?: string; threadTableId?: string; threadTableName?: string; + workspaceTableId?: string; + workspaceTableName?: string; } /** Represents an update to a `AgentModule`. Fields that are set will be updated. */ export interface AgentModulePatch { @@ -3706,11 +4169,17 @@ export interface AgentModulePatch { apiName?: string; databaseId?: string; defaultCapabilities?: string[]; + defaultVisibility?: string; entityField?: string; entityTableId?: string; + eventTableId?: string; + eventTableName?: string; hasAgents?: boolean; + hasAttachments?: boolean; hasPlans?: boolean; + hasRepositoryResources?: boolean; hasResources?: boolean; + hasRuns?: boolean; id?: string; messageTableId?: string; messageTableName?: string; @@ -3727,16 +4196,21 @@ export interface AgentModulePatch { promptsTableName?: string; provisions?: unknown; publicSchemaName?: string; + resourceRepositoryTableId?: string; + resourceRepositoryTableName?: string; resourceTableId?: string; resourceTableName?: string; resources?: unknown; + runTableId?: string; + runTableName?: string; schemaId?: string; scope?: string; - shared?: boolean; taskTableId?: string; taskTableName?: string; threadTableId?: string; threadTableName?: string; + workspaceTableId?: string; + workspaceTableName?: string; } /** A filter to be used against `ApiSurfaceModule` object types. All fields are combined with a logical ‘and.’ */ export interface ApiSurfaceModuleFilter { @@ -3855,6 +4329,8 @@ export interface AppModuleFilter { appComponentsTableId?: UUIDFilter; /** Filter by the object’s `appComponentsTableName` field. */ appComponentsTableName?: StringFilter; + /** Filter by the object’s `appStoreIdentitiesTableName` field. */ + appStoreIdentitiesTableName?: StringFilter; /** Filter by the object’s `appsTableId` field. */ appsTableId?: UUIDFilter; /** Filter by the object’s `appsTableName` field. */ @@ -3903,6 +4379,7 @@ export interface AppModuleInput { apiName?: string; appComponentsTableId?: string; appComponentsTableName?: string; + appStoreIdentitiesTableName?: string; appsTableId?: string; appsTableName?: string; catalogModuleId?: string; @@ -3926,6 +4403,7 @@ export interface AppModulePatch { apiName?: string; appComponentsTableId?: string; appComponentsTableName?: string; + appStoreIdentitiesTableName?: string; appsTableId?: string; appsTableName?: string; catalogModuleId?: string; @@ -4073,6 +4551,8 @@ export interface BillingModulePatch { } /** A filter to be used against `BillingProviderModule` object types. All fields are combined with a logical ‘and.’ */ export interface BillingProviderModuleFilter { + /** Filter by the object’s `activatePlanSubscriptionFunction` field. */ + activatePlanSubscriptionFunction?: StringFilter; /** Checks for all expressions in this list. */ and?: BillingProviderModuleFilter[]; /** Filter by the object’s `apiName` field. */ @@ -4081,6 +4561,10 @@ export interface BillingProviderModuleFilter { billingCustomersTableId?: UUIDFilter; /** Filter by the object’s `billingCustomersTableName` field. */ billingCustomersTableName?: StringFilter; + /** Filter by the object’s `billingDisputesTableId` field. */ + billingDisputesTableId?: UUIDFilter; + /** Filter by the object’s `billingDisputesTableName` field. */ + billingDisputesTableName?: StringFilter; /** Filter by the object’s `billingInvoicesTableId` field. */ billingInvoicesTableId?: UUIDFilter; /** Filter by the object’s `billingInvoicesTableName` field. */ @@ -4107,6 +4591,18 @@ export interface BillingProviderModuleFilter { billingWebhookEventsTableName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `getActivePlanPricingFunction` field. */ + getActivePlanPricingFunction?: StringFilter; + /** Filter by the object’s `getBillingCustomerFunction` field. */ + getBillingCustomerFunction?: StringFilter; + /** Filter by the object’s `getBillingPriceFunction` field. */ + getBillingPriceFunction?: StringFilter; + /** Filter by the object’s `getBillingProductFunction` field. */ + getBillingProductFunction?: StringFilter; + /** Filter by the object’s `getBillingSubscriptionFunction` field. */ + getBillingSubscriptionFunction?: StringFilter; + /** Filter by the object’s `getFallbackFreePlanFunction` field. */ + getFallbackFreePlanFunction?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `listPendingUsageSyncFunction` field. */ @@ -4131,20 +4627,35 @@ export interface BillingProviderModuleFilter { productsTableId?: UUIDFilter; /** Filter by the object’s `provider` field. */ provider?: StringFilter; + /** Filter by the object’s `recordDisputeFunction` field. */ + recordDisputeFunction?: 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 `sweepOverdueSubscriptionsFunction` field. */ + sweepOverdueSubscriptionsFunction?: StringFilter; + /** Filter by the object’s `upsertBillingCustomerFunction` field. */ + upsertBillingCustomerFunction?: StringFilter; + /** Filter by the object’s `upsertBillingPriceFunction` field. */ + upsertBillingPriceFunction?: StringFilter; + /** Filter by the object’s `upsertBillingProductFunction` field. */ + upsertBillingProductFunction?: StringFilter; + /** Filter by the object’s `upsertBillingSubscriptionFunction` field. */ + upsertBillingSubscriptionFunction?: StringFilter; /** Filter by the object’s `upsertInvoiceFunction` field. */ upsertInvoiceFunction?: StringFilter; } /** An input for mutations affecting `BillingProviderModule` */ export interface BillingProviderModuleInput { + activatePlanSubscriptionFunction?: string; apiName?: string; billingCustomersTableId?: string; billingCustomersTableName?: string; + billingDisputesTableId?: string; + billingDisputesTableName?: string; billingInvoicesTableId?: string; billingInvoicesTableName?: string; billingPricesTableId?: string; @@ -4158,6 +4669,12 @@ export interface BillingProviderModuleInput { billingWebhookEventsTableId?: string; billingWebhookEventsTableName?: string; databaseId: string; + getActivePlanPricingFunction?: string; + getBillingCustomerFunction?: string; + getBillingPriceFunction?: string; + getBillingProductFunction?: string; + getBillingSubscriptionFunction?: string; + getFallbackFreePlanFunction?: string; id?: string; listPendingUsageSyncFunction?: string; markUsageSyncedFunction?: string; @@ -4168,16 +4685,25 @@ export interface BillingProviderModuleInput { processBillingEventFunction?: string; productsTableId?: string; provider?: string; + recordDisputeFunction?: string; recordRefundFunction?: string; schemaId?: string; subscriptionsTableId?: string; + sweepOverdueSubscriptionsFunction?: string; + upsertBillingCustomerFunction?: string; + upsertBillingPriceFunction?: string; + upsertBillingProductFunction?: string; + upsertBillingSubscriptionFunction?: string; upsertInvoiceFunction?: string; } /** Represents an update to a `BillingProviderModule`. Fields that are set will be updated. */ export interface BillingProviderModulePatch { + activatePlanSubscriptionFunction?: string; apiName?: string; billingCustomersTableId?: string; billingCustomersTableName?: string; + billingDisputesTableId?: string; + billingDisputesTableName?: string; billingInvoicesTableId?: string; billingInvoicesTableName?: string; billingPricesTableId?: string; @@ -4191,6 +4717,12 @@ export interface BillingProviderModulePatch { billingWebhookEventsTableId?: string; billingWebhookEventsTableName?: string; databaseId?: string; + getActivePlanPricingFunction?: string; + getBillingCustomerFunction?: string; + getBillingPriceFunction?: string; + getBillingProductFunction?: string; + getBillingSubscriptionFunction?: string; + getFallbackFreePlanFunction?: string; id?: string; listPendingUsageSyncFunction?: string; markUsageSyncedFunction?: string; @@ -4201,9 +4733,15 @@ export interface BillingProviderModulePatch { processBillingEventFunction?: string; productsTableId?: string; provider?: string; + recordDisputeFunction?: string; recordRefundFunction?: string; schemaId?: string; subscriptionsTableId?: string; + sweepOverdueSubscriptionsFunction?: string; + upsertBillingCustomerFunction?: string; + upsertBillingPriceFunction?: string; + upsertBillingProductFunction?: string; + upsertBillingSubscriptionFunction?: string; upsertInvoiceFunction?: string; } /** A filter to be used against `BlueprintConstruction` object types. All fields are combined with a logical ‘and.’ */ @@ -4692,6 +5230,10 @@ export interface CatalogModuleFilter { appModules?: CatalogModuleToManyAppModuleFilter; /** `appModules` exist. */ appModulesExist?: boolean; + /** Filter by the object’s `appStoreIdentitiesTableId` field. */ + appStoreIdentitiesTableId?: UUIDFilter; + /** Filter by the object’s `appStoreIdentitiesTableName` field. */ + appStoreIdentitiesTableName?: StringFilter; /** Filter by the object’s `appsTableId` field. */ appsTableId?: UUIDFilter; /** Filter by the object’s `appsTableName` field. */ @@ -4724,6 +5266,14 @@ export interface CatalogModuleFilter { functionsTableName?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `imagesTableId` field. */ + imagesTableId?: UUIDFilter; + /** Filter by the object’s `imagesTableName` field. */ + imagesTableName?: StringFilter; + /** Filter by the object’s `managedDomainsTableId` field. */ + managedDomainsTableId?: UUIDFilter; + /** Filter by the object’s `managedDomainsTableName` field. */ + managedDomainsTableName?: StringFilter; /** Filter by the object’s `namespacesTableId` field. */ namespacesTableId?: UUIDFilter; /** Filter by the object’s `namespacesTableName` field. */ @@ -4740,6 +5290,10 @@ export interface CatalogModuleFilter { provisions?: JSONFilter; /** Filter by the object’s `publicSchemaName` field. */ publicSchemaName?: StringFilter; + /** Filter by the object’s `redirectsTableId` field. */ + redirectsTableId?: UUIDFilter; + /** Filter by the object’s `redirectsTableName` field. */ + redirectsTableName?: StringFilter; /** Filter by the object’s `resourceDefinitionsTableId` field. */ resourceDefinitionsTableId?: UUIDFilter; /** Filter by the object’s `resourceDefinitionsTableName` field. */ @@ -4790,6 +5344,8 @@ export interface CatalogModuleInput { apiName?: string; apisTableId?: string; apisTableName?: string; + appStoreIdentitiesTableId?: string; + appStoreIdentitiesTableName?: string; appsTableId?: string; appsTableName?: string; bindingsTableId?: string; @@ -4804,12 +5360,18 @@ export interface CatalogModuleInput { functionsTableId?: string; functionsTableName?: string; id?: string; + imagesTableId?: string; + imagesTableName?: string; + managedDomainsTableId?: string; + managedDomainsTableName?: string; namespacesTableId?: string; namespacesTableName?: string; policies?: unknown; privateApiName?: string; provisions?: unknown; publicSchemaName?: string; + redirectsTableId?: string; + redirectsTableName?: string; resourceDefinitionsTableId?: string; resourceDefinitionsTableName?: string; resourceInstallationsTableId?: string; @@ -4834,6 +5396,8 @@ export interface CatalogModulePatch { apiName?: string; apisTableId?: string; apisTableName?: string; + appStoreIdentitiesTableId?: string; + appStoreIdentitiesTableName?: string; appsTableId?: string; appsTableName?: string; bindingsTableId?: string; @@ -4848,12 +5412,18 @@ export interface CatalogModulePatch { functionsTableId?: string; functionsTableName?: string; id?: string; + imagesTableId?: string; + imagesTableName?: string; + managedDomainsTableId?: string; + managedDomainsTableName?: string; namespacesTableId?: string; namespacesTableName?: string; policies?: unknown; privateApiName?: string; provisions?: unknown; publicSchemaName?: string; + redirectsTableId?: string; + redirectsTableName?: string; resourceDefinitionsTableId?: string; resourceDefinitionsTableName?: string; resourceInstallationsTableId?: string; @@ -4918,32 +5488,48 @@ export interface CatalogModuleToManySiteSurfaceModuleFilter { /** Filters to entities where at least one related entity matches. */ some?: SiteSurfaceModuleFilter; } -/** A filter to be used against `ComputeLogModule` object types. All fields are combined with a logical ‘and.’ */ -export interface ComputeLogModuleFilter { - /** Filter by the object’s `actorFkTableId` field. */ - actorFkTableId?: UUIDFilter; +/** A filter to be used against `ClusterModule` object types. All fields are combined with a logical ‘and.’ */ +export interface ClusterModuleFilter { /** Checks for all expressions in this list. */ - and?: ComputeLogModuleFilter[]; + and?: ClusterModuleFilter[]; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; - /** Filter by the object’s `computeLogTableId` field. */ - computeLogTableId?: UUIDFilter; - /** Filter by the object’s `computeLogTableName` field. */ - computeLogTableName?: StringFilter; + /** Filter by the object’s `clusterEventsTableId` field. */ + clusterEventsTableId?: UUIDFilter; + /** Filter by the object’s `clusterEventsTableName` field. */ + clusterEventsTableName?: StringFilter; + /** Filter by the object’s `clustersTableId` field. */ + clustersTableId?: UUIDFilter; + /** Filter by the object’s `clustersTableName` field. */ + clustersTableName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `databasePlacementsTableId` field. */ + databasePlacementsTableId?: UUIDFilter; + /** Filter by the object’s `databasePlacementsTableName` field. */ + databasePlacementsTableName?: StringFilter; + /** Filter by the object’s `databaseServersTableId` field. */ + databaseServersTableId?: UUIDFilter; + /** Filter by the object’s `databaseServersTableName` field. */ + databaseServersTableName?: StringFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; - /** Filter by the object’s `entityFkTableId` field. */ - entityFkTableId?: UUIDFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `interval` field. */ - interval?: StringFilter; /** Negates the expression. */ - not?: ComputeLogModuleFilter; + not?: ClusterModuleFilter; /** Checks for any expressions in this list. */ - or?: ComputeLogModuleFilter[]; + or?: ClusterModuleFilter[]; + /** Filter by the object’s `partitionInterval` field. */ + partitionInterval?: StringFilter; + /** Filter by the object’s `physicalDatabasesTableId` field. */ + physicalDatabasesTableId?: UUIDFilter; + /** Filter by the object’s `physicalDatabasesTableName` field. */ + physicalDatabasesTableName?: StringFilter; + /** Filter by the object’s `policies` field. */ + policies?: JSONFilter; /** Filter by the object’s `prefix` field. */ prefix?: StringFilter; /** Filter by the object’s `premake` field. */ @@ -4954,6 +5540,8 @@ export interface ComputeLogModuleFilter { 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 `publicSchemaName` field. */ publicSchemaName?: StringFilter; /** Filter by the object’s `retention` field. */ @@ -4962,103 +5550,157 @@ export interface ComputeLogModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `scope` field. */ scope?: StringFilter; - /** Filter by the object’s `usageSummaryTableId` field. */ - usageSummaryTableId?: UUIDFilter; - /** Filter by the object’s `usageSummaryTableName` field. */ - usageSummaryTableName?: StringFilter; } -/** An input for mutations affecting `ComputeLogModule` */ -export interface ComputeLogModuleInput { - actorFkTableId?: string; +/** An input for mutations affecting `ClusterModule` */ +export interface ClusterModuleInput { apiName?: string; - computeLogTableId?: string; - computeLogTableName?: string; + clusterEventsTableId?: string; + clusterEventsTableName?: string; + clustersTableId?: string; + clustersTableName?: string; databaseId: string; + databasePlacementsTableId?: string; + databasePlacementsTableName?: string; + databaseServersTableId?: string; + databaseServersTableName?: string; + defaultCapabilities?: string[]; entityField?: string; - entityFkTableId?: string; id?: string; - interval?: string; + partitionInterval?: string; + physicalDatabasesTableId?: string; + physicalDatabasesTableName?: string; + policies?: unknown; prefix?: string; premake?: number; privateApiName?: string; privateSchemaId?: string; privateSchemaName?: string; + provisions?: unknown; publicSchemaName?: string; retention?: string; schemaId?: string; - scope: string; - usageSummaryTableId?: string; - usageSummaryTableName?: string; + scope?: string; } -/** Represents an update to a `ComputeLogModule`. Fields that are set will be updated. */ -export interface ComputeLogModulePatch { - actorFkTableId?: string; +/** Represents an update to a `ClusterModule`. Fields that are set will be updated. */ +export interface ClusterModulePatch { apiName?: string; - computeLogTableId?: string; - computeLogTableName?: string; + clusterEventsTableId?: string; + clusterEventsTableName?: string; + clustersTableId?: string; + clustersTableName?: string; databaseId?: string; + databasePlacementsTableId?: string; + databasePlacementsTableName?: string; + databaseServersTableId?: string; + databaseServersTableName?: string; + defaultCapabilities?: string[]; entityField?: string; - entityFkTableId?: string; id?: string; - interval?: string; + partitionInterval?: string; + physicalDatabasesTableId?: string; + physicalDatabasesTableName?: string; + policies?: unknown; prefix?: string; premake?: number; privateApiName?: string; privateSchemaId?: string; privateSchemaName?: string; + provisions?: unknown; publicSchemaName?: string; retention?: string; schemaId?: string; scope?: string; - usageSummaryTableId?: string; - usageSummaryTableName?: string; } -/** A filter to be used against `ConfigSecretsUserModule` object types. All fields are combined with a logical ‘and.’ */ -export interface ConfigSecretsUserModuleFilter { +/** A filter to be used against `ComputeLogModule` object types. All fields are combined with a logical ‘and.’ */ +export interface ComputeLogModuleFilter { /** Checks for all expressions in this list. */ - and?: ConfigSecretsUserModuleFilter[]; + and?: ComputeLogModuleFilter[]; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; + /** Filter by the object’s `computeLogTableId` field. */ + computeLogTableId?: UUIDFilter; + /** Filter by the object’s `computeLogTableName` field. */ + computeLogTableName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `interval` field. */ + interval?: StringFilter; /** Negates the expression. */ - not?: ConfigSecretsUserModuleFilter; + not?: ComputeLogModuleFilter; /** Checks for any expressions in this list. */ - or?: ConfigSecretsUserModuleFilter[]; + or?: ComputeLogModuleFilter[]; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `premake` field. */ + premake?: IntFilter; /** 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 `retention` field. */ + retention?: StringFilter; + /** Filter by the object’s `rollupFunctionName` field. */ + rollupFunctionName?: StringFilter; /** 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; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `usageSummaryTableId` field. */ + usageSummaryTableId?: UUIDFilter; + /** Filter by the object’s `usageSummaryTableName` field. */ + usageSummaryTableName?: StringFilter; } -/** An input for mutations affecting `ConfigSecretsUserModule` */ -export interface ConfigSecretsUserModuleInput { +/** An input for mutations affecting `ComputeLogModule` */ +export interface ComputeLogModuleInput { apiName?: string; + computeLogTableId?: string; + computeLogTableName?: string; databaseId: string; entityField?: string; id?: string; + interval?: string; + prefix?: string; + premake?: number; privateApiName?: string; + privateSchemaId?: string; + privateSchemaName?: string; + publicSchemaName?: string; + retention?: string; + rollupFunctionName?: string; schemaId?: string; - tableId?: string; - tableName?: string; + scope: string; + usageSummaryTableId?: string; + usageSummaryTableName?: string; } -/** Represents an update to a `ConfigSecretsUserModule`. Fields that are set will be updated. */ -export interface ConfigSecretsUserModulePatch { +/** Represents an update to a `ComputeLogModule`. Fields that are set will be updated. */ +export interface ComputeLogModulePatch { apiName?: string; + computeLogTableId?: string; + computeLogTableName?: string; databaseId?: string; entityField?: string; id?: string; + interval?: string; + prefix?: string; + premake?: number; privateApiName?: string; + privateSchemaId?: string; + privateSchemaName?: string; + publicSchemaName?: string; + retention?: string; + rollupFunctionName?: string; schemaId?: string; - tableId?: string; - tableName?: string; + scope?: string; + usageSummaryTableId?: string; + usageSummaryTableName?: string; } /** A filter to be used against `ConnectedAccountsModule` object types. All fields are combined with a logical ‘and.’ */ export interface ConnectedAccountsModuleFilter { @@ -5259,16 +5901,16 @@ export interface CreateCatalogModuleInput { catalogModule: CatalogModuleInput; clientMutationId?: string; } +export interface CreateClusterModuleInput { + clientMutationId?: string; + /** The `ClusterModule` to be created by this mutation. */ + clusterModule: ClusterModuleInput; +} export interface CreateComputeLogModuleInput { clientMutationId?: string; /** The `ComputeLogModule` to be created by this mutation. */ computeLogModule: ComputeLogModuleInput; } -export interface CreateConfigSecretsUserModuleInput { - clientMutationId?: string; - /** The `ConfigSecretsUserModule` to be created by this mutation. */ - configSecretsUserModule: ConfigSecretsUserModuleInput; -} export interface CreateConnectedAccountsModuleInput { clientMutationId?: string; /** The `ConnectedAccountsModule` to be created by this mutation. */ @@ -5399,11 +6041,6 @@ export interface CreateHierarchyModuleInput { /** The `HierarchyModule` to be created by this mutation. */ hierarchyModule: HierarchyModuleInput; } -export interface CreateHttpRouteModuleInput { - clientMutationId?: string; - /** The `HttpRouteModule` to be created by this mutation. */ - httpRouteModule: HttpRouteModuleInput; -} export interface CreateI18NModuleInput { clientMutationId?: string; /** The `I18NModule` to be created by this mutation. */ @@ -5414,6 +6051,11 @@ export interface CreateIdentityProvidersModuleInput { /** The `IdentityProvidersModule` to be created by this mutation. */ identityProvidersModule: IdentityProvidersModuleInput; } +export interface CreateImageModuleInput { + clientMutationId?: string; + /** The `ImageModule` to be created by this mutation. */ + imageModule: ImageModuleInput; +} export interface CreateInferenceLogModuleInput { clientMutationId?: string; /** The `InferenceLogModule` to be created by this mutation. */ @@ -5434,6 +6076,11 @@ export interface CreateIntegrationProvidersModuleInput { /** The `IntegrationProvidersModule` to be created by this mutation. */ integrationProvidersModule: IntegrationProvidersModuleInput; } +export interface CreateInternalConfigModuleInput { + clientMutationId?: string; + /** The `InternalConfigModule` to be created by this mutation. */ + internalConfigModule: InternalConfigModuleInput; +} export interface CreateInternalSecretsModuleInput { clientMutationId?: string; /** The `InternalSecretsModule` to be created by this mutation. */ @@ -5444,11 +6091,21 @@ export interface CreateInvitesModuleInput { /** The `InvitesModule` to be created by this mutation. */ invitesModule: InvitesModuleInput; } +export interface CreateK8sAdmissionModuleInput { + clientMutationId?: string; + /** The `K8sAdmissionModule` to be created by this mutation. */ + k8sAdmissionModule: K8sAdmissionModuleInput; +} export interface CreateLimitsModuleInput { clientMutationId?: string; /** The `LimitsModule` to be created by this mutation. */ limitsModule: LimitsModuleInput; } +export interface CreateMachineModuleInput { + clientMutationId?: string; + /** The `MachineModule` to be created by this mutation. */ + machineModule: MachineModuleInput; +} export interface CreateMembershipTypesModuleInput { clientMutationId?: string; /** The `MembershipTypesModule` to be created by this mutation. */ @@ -5519,11 +6176,21 @@ export interface CreateRealtimeModuleInput { /** The `RealtimeModule` to be created by this mutation. */ realtimeModule: RealtimeModuleInput; } +export interface CreateRefusalLogModuleInput { + clientMutationId?: string; + /** The `RefusalLogModule` to be created by this mutation. */ + refusalLogModule: RefusalLogModuleInput; +} export interface CreateRelationProvisionInput { clientMutationId?: string; /** The `RelationProvision` to be created by this mutation. */ relationProvision: RelationProvisionInput; } +export interface CreateRepositoryModuleInput { + clientMutationId?: string; + /** The `RepositoryModule` to be created by this mutation. */ + repositoryModule: RepositoryModuleInput; +} export interface CreateResourceModuleInput { clientMutationId?: string; /** The `ResourceModule` to be created by this mutation. */ @@ -5817,6 +6484,8 @@ export interface DatabaseProvisionModuleFilter { and?: DatabaseProvisionModuleFilter[]; /** Filter by the object’s `async` field. */ async?: BooleanFilter; + /** Filter by the object’s `bootstrapActorId` field. */ + bootstrapActorId?: UUIDFilter; /** Filter by the object’s `bootstrapError` field. */ bootstrapError?: StringFilter; /** Filter by the object’s `bootstrapStatus` field. */ @@ -5862,11 +6531,13 @@ export interface DatabaseProvisionModuleFilter { 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 */ async?: boolean; + /** The user whose identity is copied into the new database. Defaults to owner_id when NULL; set explicitly when owner_id is an organization */ + bootstrapActorId?: string; /** Error message from the most recent failed bootstrap attempt */ bootstrapError?: string; /** Status of the deferred owner bootstrap job: not_requested, pending, completed, or failed */ bootstrapStatus?: string; - /** When true, copies the owner user and password hash from source database to the newly provisioned database */ + /** When true, copies the bootstrap user and password hash from source database to the newly provisioned database */ bootstrapUser?: boolean; completedAt?: string; createdAt?: string; @@ -5884,7 +6555,7 @@ export interface DatabaseProvisionModuleInput { modules?: unknown; /** Additional configuration options for provisioning */ options?: unknown; - /** UUID of the user who owns this database */ + /** UUID of the entity that owns this database: a user, or an organization for an org-owned request */ ownerId: string; /** The database the owner user is copied from during bootstrap (captured from JWT context at provision time) */ sourceDatabaseId?: string; @@ -5898,11 +6569,13 @@ export interface DatabaseProvisionModuleInput { export interface DatabaseProvisionModulePatch { /** 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 */ async?: boolean; + /** The user whose identity is copied into the new database. Defaults to owner_id when NULL; set explicitly when owner_id is an organization */ + bootstrapActorId?: string; /** Error message from the most recent failed bootstrap attempt */ bootstrapError?: string; /** Status of the deferred owner bootstrap job: not_requested, pending, completed, or failed */ bootstrapStatus?: string; - /** When true, copies the owner user and password hash from source database to the newly provisioned database */ + /** When true, copies the bootstrap user and password hash from source database to the newly provisioned database */ bootstrapUser?: boolean; completedAt?: string; createdAt?: string; @@ -5920,7 +6593,7 @@ export interface DatabaseProvisionModulePatch { modules?: unknown; /** Additional configuration options for provisioning */ options?: unknown; - /** UUID of the user who owns this database */ + /** UUID of the entity that owns this database: a user, or an organization for an org-owned request */ ownerId?: string; /** The database the owner user is copied from during bootstrap (captured from JWT context at provision time) */ sourceDatabaseId?: string; @@ -6451,11 +7124,11 @@ export interface DeleteCatalogModuleInput { clientMutationId?: string; id: string; } -export interface DeleteComputeLogModuleInput { +export interface DeleteClusterModuleInput { clientMutationId?: string; id: string; } -export interface DeleteConfigSecretsUserModuleInput { +export interface DeleteComputeLogModuleInput { clientMutationId?: string; id: string; } @@ -6564,15 +7237,15 @@ export interface DeleteHierarchyModuleInput { clientMutationId?: string; id: string; } -export interface DeleteHttpRouteModuleInput { +export interface DeleteI18NModuleInput { clientMutationId?: string; id: string; } -export interface DeleteI18NModuleInput { +export interface DeleteIdentityProvidersModuleInput { clientMutationId?: string; id: string; } -export interface DeleteIdentityProvidersModuleInput { +export interface DeleteImageModuleInput { clientMutationId?: string; id: string; } @@ -6592,6 +7265,10 @@ export interface DeleteIntegrationProvidersModuleInput { clientMutationId?: string; id: string; } +export interface DeleteInternalConfigModuleInput { + clientMutationId?: string; + id: string; +} export interface DeleteInternalSecretsModuleInput { clientMutationId?: string; id: string; @@ -6600,10 +7277,18 @@ export interface DeleteInvitesModuleInput { clientMutationId?: string; id: string; } +export interface DeleteK8sAdmissionModuleInput { + clientMutationId?: string; + id: string; +} export interface DeleteLimitsModuleInput { clientMutationId?: string; id: string; } +export interface DeleteMachineModuleInput { + clientMutationId?: string; + id: string; +} export interface DeleteMembershipTypesModuleInput { clientMutationId?: string; id: string; @@ -6660,11 +7345,19 @@ export interface DeleteRealtimeModuleInput { clientMutationId?: string; id: string; } +export interface DeleteRefusalLogModuleInput { + clientMutationId?: string; + id: string; +} export interface DeleteRelationProvisionInput { clientMutationId?: string; /** Unique identifier for this relation provision row. */ id: string; } +export interface DeleteRepositoryModuleInput { + clientMutationId?: string; + id: string; +} export interface DeleteResourceModuleInput { clientMutationId?: string; id: string; @@ -8240,10 +8933,6 @@ export interface FunctionModuleFilter { functionDeploymentModulesExist?: boolean; /** Filter by the object’s `hasCron` field. */ hasCron?: BooleanFilter; - /** Filter by the object’s `httpRouteModules` relation. */ - httpRouteModules?: FunctionModuleToManyHttpRouteModuleFilter; - /** `httpRouteModules` exist. */ - httpRouteModulesExist?: boolean; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Negates the expression. */ @@ -8270,6 +8959,8 @@ export interface FunctionModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `scope` field. */ scope?: StringFilter; + /** Filter by the object’s `storageKey` field. */ + storageKey?: StringFilter; /** Filter by the object’s `webhookModules` relation. */ webhookModules?: FunctionModuleToManyWebhookModuleFilter; /** `webhookModules` exist. */ @@ -8299,6 +8990,7 @@ export interface FunctionModuleInput { schedulesTableId?: string; schemaId?: string; scope: string; + storageKey?: string; } /** Represents an update to a `FunctionModule`. Fields that are set will be updated. */ export interface FunctionModulePatch { @@ -8324,6 +9016,7 @@ export interface FunctionModulePatch { schedulesTableId?: string; schemaId?: string; scope?: string; + storageKey?: string; } /** A filter to be used against many `FunctionDeploymentModule` object types. All fields are combined with a logical ‘and.’ */ export interface FunctionModuleToManyFunctionDeploymentModuleFilter { @@ -8334,15 +9027,6 @@ export interface FunctionModuleToManyFunctionDeploymentModuleFilter { /** Filters to entities where at least one related entity matches. */ some?: FunctionDeploymentModuleFilter; } -/** A filter to be used against many `HttpRouteModule` object types. All fields are combined with a logical ‘and.’ */ -export interface FunctionModuleToManyHttpRouteModuleFilter { - /** Filters to entities where every related entity matches. */ - every?: HttpRouteModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: HttpRouteModuleFilter; - /** Filters to entities where at least one related entity matches. */ - some?: HttpRouteModuleFilter; -} /** A filter to be used against many `WebhookModule` object types. All fields are combined with a logical ‘and.’ */ export interface FunctionModuleToManyWebhookModuleFilter { /** Filters to entities where every related entity matches. */ @@ -8670,178 +9354,152 @@ export interface HierarchyModulePatch { sprtTableName?: string; usersTableId?: string; } -/** A filter to be used against `HttpRouteModule` object types. All fields are combined with a logical ‘and.’ */ -export interface HttpRouteModuleFilter { +/** A filter to be used against `I18NModule` object types. All fields are combined with a logical ‘and.’ */ +export interface I18NModuleFilter { /** Checks for all expressions in this list. */ - and?: HttpRouteModuleFilter[]; + and?: I18NModuleFilter[]; /** 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 `entityField` field. */ - entityField?: StringFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; - /** Filter by the object’s `functionModule` relation. */ - functionModule?: FunctionModuleFilter; - /** A related `functionModule` exists. */ - functionModuleExists?: boolean; - /** Filter by the object’s `functionModuleId` field. */ - functionModuleId?: UUIDFilter; - /** Filter by the object’s `httpRoutesTableId` field. */ - httpRoutesTableId?: UUIDFilter; - /** Filter by the object’s `httpRoutesTableName` field. */ - httpRoutesTableName?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Negates the expression. */ - not?: HttpRouteModuleFilter; + not?: I18NModuleFilter; /** Checks for any expressions in this list. */ - or?: HttpRouteModuleFilter[]; - /** Filter by the object’s `policies` field. */ - policies?: JSONFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; + or?: I18NModuleFilter[]; /** 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 `publicSchemaName` field. */ - publicSchemaName?: StringFilter; - /** Filter by the object’s `resolverFunctionName` field. */ - resolverFunctionName?: StringFilter; - /** Filter by the object’s `resourceModule` relation. */ - resourceModule?: ResourceModuleFilter; - /** A related `resourceModule` exists. */ - resourceModuleExists?: boolean; - /** Filter by the object’s `resourceModuleId` field. */ - resourceModuleId?: UUIDFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; - /** Filter by the object’s `storageModule` relation. */ - storageModule?: StorageModuleFilter; - /** A related `storageModule` exists. */ - storageModuleExists?: boolean; - /** Filter by the object’s `storageModuleId` field. */ - storageModuleId?: UUIDFilter; + /** Filter by the object’s `settingsTableId` field. */ + settingsTableId?: UUIDFilter; } -/** An input for mutations affecting `HttpRouteModule` */ -export interface HttpRouteModuleInput { +/** An input for mutations affecting `I18NModule` */ +export interface I18NModuleInput { apiName?: string; databaseId: string; - defaultCapabilities?: string[]; - entityField?: string; - entityTableId?: string; - functionModuleId?: string; - httpRoutesTableId?: string; - httpRoutesTableName?: string; id?: string; - policies?: unknown; - prefix?: string; privateApiName?: string; privateSchemaId?: string; - privateSchemaName?: string; - provisions?: unknown; - publicSchemaName?: string; - resolverFunctionName?: string; - resourceModuleId?: string; schemaId?: string; - scope: string; - storageModuleId?: string; + settingsTableId?: string; } -/** Represents an update to a `HttpRouteModule`. Fields that are set will be updated. */ -export interface HttpRouteModulePatch { +/** Represents an update to a `I18NModule`. Fields that are set will be updated. */ +export interface I18NModulePatch { apiName?: string; databaseId?: string; - defaultCapabilities?: string[]; - entityField?: string; - entityTableId?: string; - functionModuleId?: string; - httpRoutesTableId?: string; - httpRoutesTableName?: string; id?: string; - policies?: unknown; - prefix?: string; privateApiName?: string; privateSchemaId?: string; - privateSchemaName?: string; - provisions?: unknown; - publicSchemaName?: string; - resolverFunctionName?: string; - resourceModuleId?: string; schemaId?: string; - scope?: string; - storageModuleId?: string; + settingsTableId?: string; } -/** A filter to be used against `I18NModule` object types. All fields are combined with a logical ‘and.’ */ -export interface I18NModuleFilter { +/** A filter to be used against `IdentityProvidersModule` object types. All fields are combined with a logical ‘and.’ */ +export interface IdentityProvidersModuleFilter { /** Checks for all expressions in this list. */ - and?: I18NModuleFilter[]; + and?: IdentityProvidersModuleFilter[]; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; /** 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?: I18NModuleFilter; + not?: IdentityProvidersModuleFilter; /** Checks for any expressions in this list. */ - or?: I18NModuleFilter[]; + or?: IdentityProvidersModuleFilter[]; + /** 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 `settingsTableId` field. */ - settingsTableId?: 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 `I18NModule` */ -export interface I18NModuleInput { +/** An input for mutations affecting `IdentityProvidersModule` */ +export interface IdentityProvidersModuleInput { apiName?: string; databaseId: string; + entityField?: string; + entityTableId?: string; id?: string; + prefix?: string; privateApiName?: string; + /** Private schema that hosts SECURITY DEFINER admin helpers which write to identity_providers (create / update / enable / disable / rotate-secret / delete) and the per-app quota check. */ privateSchemaId?: string; + privateSchemaName?: string; + publicSchemaName?: string; schemaId?: string; - settingsTableId?: string; + scope: string; + tableId?: string; + tableName?: string; } -/** Represents an update to a `I18NModule`. Fields that are set will be updated. */ -export interface I18NModulePatch { +/** Represents an update to a `IdentityProvidersModule`. Fields that are set will be updated. */ +export interface IdentityProvidersModulePatch { apiName?: string; databaseId?: string; + entityField?: string; + entityTableId?: string; id?: string; + prefix?: string; privateApiName?: string; + /** Private schema that hosts SECURITY DEFINER admin helpers which write to identity_providers (create / update / enable / disable / rotate-secret / delete) and the per-app quota check. */ privateSchemaId?: string; + privateSchemaName?: string; + publicSchemaName?: string; schemaId?: string; - settingsTableId?: string; + scope?: string; + tableId?: string; + tableName?: string; } -/** A filter to be used against `IdentityProvidersModule` object types. All fields are combined with a logical ‘and.’ */ -export interface IdentityProvidersModuleFilter { +/** A filter to be used against `ImageModule` object types. All fields are combined with a logical ‘and.’ */ +export interface ImageModuleFilter { /** Checks for all expressions in this list. */ - and?: IdentityProvidersModuleFilter[]; + and?: ImageModuleFilter[]; /** 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 `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ entityTableId?: UUIDFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `imageGrantsTableId` field. */ + imageGrantsTableId?: UUIDFilter; + /** Filter by the object’s `imageGrantsTableName` field. */ + imageGrantsTableName?: StringFilter; + /** Filter by the object’s `imagesTableId` field. */ + imagesTableId?: UUIDFilter; + /** Filter by the object’s `imagesTableName` field. */ + imagesTableName?: StringFilter; /** Negates the expression. */ - not?: IdentityProvidersModuleFilter; + not?: ImageModuleFilter; /** Checks for any expressions in this list. */ - or?: IdentityProvidersModuleFilter[]; + or?: ImageModuleFilter[]; + /** 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. */ @@ -8850,57 +9508,77 @@ export interface IdentityProvidersModuleFilter { 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 `publicSchemaName` field. */ publicSchemaName?: StringFilter; + /** Filter by the object’s `registriesTableId` field. */ + registriesTableId?: UUIDFilter; + /** Filter by the object’s `registriesTableName` field. */ + registriesTableName?: StringFilter; + /** Filter by the object’s `registryGrantsTableId` field. */ + registryGrantsTableId?: UUIDFilter; + /** Filter by the object’s `registryGrantsTableName` field. */ + registryGrantsTableName?: 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 `IdentityProvidersModule` */ -export interface IdentityProvidersModuleInput { +/** An input for mutations affecting `ImageModule` */ +export interface ImageModuleInput { apiName?: string; databaseId: string; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; id?: string; + imageGrantsTableId?: string; + imageGrantsTableName?: string; + imagesTableId?: string; + imagesTableName?: string; + policies?: unknown; prefix?: string; privateApiName?: string; - /** Private schema that hosts SECURITY DEFINER admin helpers which write to identity_providers (create / update / enable / disable / rotate-secret / delete) and the per-app quota check. */ privateSchemaId?: string; privateSchemaName?: string; + provisions?: unknown; publicSchemaName?: string; + registriesTableId?: string; + registriesTableName?: string; + registryGrantsTableId?: string; + registryGrantsTableName?: string; schemaId?: string; scope: string; - tableId?: string; - tableName?: string; } -/** Represents an update to a `IdentityProvidersModule`. Fields that are set will be updated. */ -export interface IdentityProvidersModulePatch { +/** Represents an update to a `ImageModule`. Fields that are set will be updated. */ +export interface ImageModulePatch { apiName?: string; databaseId?: string; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; id?: string; + imageGrantsTableId?: string; + imageGrantsTableName?: string; + imagesTableId?: string; + imagesTableName?: string; + policies?: unknown; prefix?: string; privateApiName?: string; - /** Private schema that hosts SECURITY DEFINER admin helpers which write to identity_providers (create / update / enable / disable / rotate-secret / delete) and the per-app quota check. */ privateSchemaId?: string; privateSchemaName?: string; + provisions?: unknown; publicSchemaName?: string; + registriesTableId?: string; + registriesTableName?: string; + registryGrantsTableId?: string; + registryGrantsTableName?: string; schemaId?: string; scope?: string; - tableId?: string; - tableName?: string; } /** A filter to be used against `InferenceLogModule` object types. All fields are combined with a logical ‘and.’ */ export interface InferenceLogModuleFilter { - /** Filter by the object’s `actorFkTableId` field. */ - actorFkTableId?: UUIDFilter; /** Checks for all expressions in this list. */ and?: InferenceLogModuleFilter[]; /** Filter by the object’s `apiName` field. */ @@ -8909,8 +9587,6 @@ export interface InferenceLogModuleFilter { databaseId?: UUIDFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; - /** Filter by the object’s `entityFkTableId` field. */ - entityFkTableId?: UUIDFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `inferenceLogTableId` field. */ @@ -8937,6 +9613,8 @@ export interface InferenceLogModuleFilter { publicSchemaName?: StringFilter; /** Filter by the object’s `retention` field. */ retention?: StringFilter; + /** Filter by the object’s `rollupFunctionName` field. */ + rollupFunctionName?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `scope` field. */ @@ -8948,11 +9626,9 @@ export interface InferenceLogModuleFilter { } /** An input for mutations affecting `InferenceLogModule` */ export interface InferenceLogModuleInput { - actorFkTableId?: string; apiName?: string; databaseId: string; entityField?: string; - entityFkTableId?: string; id?: string; inferenceLogTableId?: string; inferenceLogTableName?: string; @@ -8964,6 +9640,7 @@ export interface InferenceLogModuleInput { privateSchemaName?: string; publicSchemaName?: string; retention?: string; + rollupFunctionName?: string; schemaId?: string; scope: string; usageSummaryTableId?: string; @@ -8971,11 +9648,9 @@ export interface InferenceLogModuleInput { } /** Represents an update to a `InferenceLogModule`. Fields that are set will be updated. */ export interface InferenceLogModulePatch { - actorFkTableId?: string; apiName?: string; databaseId?: string; entityField?: string; - entityFkTableId?: string; id?: string; inferenceLogTableId?: string; inferenceLogTableName?: string; @@ -8987,6 +9662,7 @@ export interface InferenceLogModulePatch { privateSchemaName?: string; publicSchemaName?: string; retention?: string; + rollupFunctionName?: string; schemaId?: string; scope?: string; usageSummaryTableId?: string; @@ -9234,6 +9910,85 @@ export interface IntegrationProvidersModulePatch { tableId?: string; tableName?: string; } +/** A filter to be used against `InternalConfigModule` object types. All fields are combined with a logical ‘and.’ */ +export interface InternalConfigModuleFilter { + /** Checks for all expressions in this list. */ + and?: InternalConfigModuleFilter[]; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** 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; + /** Filter by the object’s `internalConfigTableId` field. */ + internalConfigTableId?: UUIDFilter; + /** Filter by the object’s `internalConfigTableName` field. */ + internalConfigTableName?: StringFilter; + /** Negates the expression. */ + not?: InternalConfigModuleFilter; + /** Checks for any expressions in this list. */ + or?: InternalConfigModuleFilter[]; + /** 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 `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; +} +/** An input for mutations affecting `InternalConfigModule` */ +export interface InternalConfigModuleInput { + apiName?: string; + databaseId: string; + entityField?: string; + entityTableId?: string; + id?: string; + internalConfigTableId?: string; + internalConfigTableName?: string; + policies?: unknown; + prefix?: string; + privateApiName?: string; + privateSchemaId?: string; + privateSchemaName?: string; + provisions?: unknown; + publicSchemaName?: string; + schemaId?: string; + scope: string; +} +/** Represents an update to a `InternalConfigModule`. Fields that are set will be updated. */ +export interface InternalConfigModulePatch { + apiName?: string; + databaseId?: string; + entityField?: string; + entityTableId?: string; + id?: string; + internalConfigTableId?: string; + internalConfigTableName?: string; + policies?: unknown; + prefix?: string; + privateApiName?: string; + privateSchemaId?: string; + privateSchemaName?: string; + provisions?: unknown; + publicSchemaName?: string; + schemaId?: string; + scope?: string; +} /** A filter to be used against `InternalSecretsModule` object types. All fields are combined with a logical ‘and.’ */ export interface InternalSecretsModuleFilter { /** Checks for all expressions in this list. */ @@ -9487,6 +10242,95 @@ export interface JSONListFilter { /** Overlaps the specified list of values. */ overlaps?: unknown[]; } +/** A filter to be used against `K8sAdmissionModule` object types. All fields are combined with a logical ‘and.’ */ +export interface K8sAdmissionModuleFilter { + /** Checks for all expressions in this list. */ + and?: K8sAdmissionModuleFilter[]; + /** 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 `k8sResourceKindsTableId` field. */ + k8sResourceKindsTableId?: UUIDFilter; + /** Filter by the object’s `k8sSpecRulesTableId` field. */ + k8sSpecRulesTableId?: UUIDFilter; + /** Filter by the object’s `merkleStoreModule` relation. */ + merkleStoreModule?: MerkleStoreModuleFilter; + /** Filter by the object’s `merkleStoreModuleId` field. */ + merkleStoreModuleId?: UUIDFilter; + /** Negates the expression. */ + not?: K8sAdmissionModuleFilter; + /** Checks for any expressions in this list. */ + or?: K8sAdmissionModuleFilter[]; + /** 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 `K8sAdmissionModule` */ +export interface K8sAdmissionModuleInput { + apiName?: string; + createdAt?: string; + databaseId: string; + entityTableId?: string; + id?: string; + k8sResourceKindsTableId?: string; + k8sSpecRulesTableId?: 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 `K8sAdmissionModule`. Fields that are set will be updated. */ +export interface K8sAdmissionModulePatch { + apiName?: string; + createdAt?: string; + databaseId?: string; + entityTableId?: string; + id?: string; + k8sResourceKindsTableId?: string; + k8sSpecRulesTableId?: string; + merkleStoreModuleId?: string; + policies?: unknown; + prefix?: string; + privateApiName?: string; + privateSchemaId?: string; + privateSchemaName?: string; + provisions?: unknown; + publicSchemaId?: string; + publicSchemaName?: string; + scope?: string; + storeName?: string; +} /** A filter to be used against `LimitsModule` object types. All fields are combined with a logical ‘and.’ */ export interface LimitsModuleFilter { /** Filter by the object’s `actorTableId` field. */ @@ -9654,6 +10498,117 @@ export interface LimitsModulePatch { tableId?: string; tableName?: string; } +/** A filter to be used against `MachineModule` object types. All fields are combined with a logical ‘and.’ */ +export interface MachineModuleFilter { + /** Checks for all expressions in this list. */ + and?: MachineModuleFilter[]; + /** 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 `entityField` field. */ + entityField?: StringFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `machineMessagesTableId` field. */ + machineMessagesTableId?: UUIDFilter; + /** Filter by the object’s `machineMessagesTableName` field. */ + machineMessagesTableName?: StringFilter; + /** Filter by the object’s `machineSessionsTableId` field. */ + machineSessionsTableId?: UUIDFilter; + /** Filter by the object’s `machineSessionsTableName` field. */ + machineSessionsTableName?: StringFilter; + /** Filter by the object’s `machinesTableId` field. */ + machinesTableId?: UUIDFilter; + /** Filter by the object’s `machinesTableName` field. */ + machinesTableName?: StringFilter; + /** Negates the expression. */ + not?: MachineModuleFilter; + /** Checks for any expressions in this list. */ + or?: MachineModuleFilter[]; + /** Filter by the object’s `partitionInterval` field. */ + partitionInterval?: StringFilter; + /** Filter by the object’s `policies` field. */ + policies?: JSONFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `premake` field. */ + premake?: IntFilter; + /** 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 `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `retention` field. */ + retention?: StringFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; +} +/** An input for mutations affecting `MachineModule` */ +export interface MachineModuleInput { + apiName?: string; + databaseId: string; + defaultCapabilities?: string[]; + entityField?: string; + entityTableId?: string; + id?: string; + machineMessagesTableId?: string; + machineMessagesTableName?: string; + machineSessionsTableId?: string; + machineSessionsTableName?: string; + machinesTableId?: string; + machinesTableName?: string; + partitionInterval?: string; + policies?: unknown; + prefix?: string; + premake?: number; + privateApiName?: string; + privateSchemaId?: string; + privateSchemaName?: string; + provisions?: unknown; + publicSchemaName?: string; + retention?: string; + schemaId?: string; + scope: string; +} +/** Represents an update to a `MachineModule`. Fields that are set will be updated. */ +export interface MachineModulePatch { + apiName?: string; + databaseId?: string; + defaultCapabilities?: string[]; + entityField?: string; + entityTableId?: string; + id?: string; + machineMessagesTableId?: string; + machineMessagesTableName?: string; + machineSessionsTableId?: string; + machineSessionsTableName?: string; + machinesTableId?: string; + machinesTableName?: string; + partitionInterval?: string; + policies?: unknown; + prefix?: string; + premake?: number; + privateApiName?: string; + privateSchemaId?: string; + privateSchemaName?: string; + provisions?: unknown; + publicSchemaName?: string; + retention?: string; + schemaId?: string; + scope?: string; +} /** A filter to be used against `MembershipTypesModule` object types. All fields are combined with a logical ‘and.’ */ export interface MembershipTypesModuleFilter { /** Checks for all expressions in this list. */ @@ -9896,6 +10851,8 @@ export interface MerkleStoreModuleFilter { dbPresetModulesExist?: boolean; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; /** Filter by the object’s `functionPrefix` field. */ functionPrefix?: StringFilter; /** Filter by the object’s `graphModules` relation. */ @@ -9904,6 +10861,10 @@ export interface MerkleStoreModuleFilter { graphModulesExist?: boolean; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `k8sAdmissionModules` relation. */ + k8sAdmissionModules?: MerkleStoreModuleToManyK8sAdmissionModuleFilter; + /** `k8sAdmissionModules` exist. */ + k8sAdmissionModulesExist?: boolean; /** Negates the expression. */ not?: MerkleStoreModuleFilter; /** Filter by the object’s `objectTableId` field. */ @@ -9945,6 +10906,7 @@ export interface MerkleStoreModuleInput { createdAt?: string; databaseId: string; entityField?: string; + entityTableId?: string; functionPrefix?: string; id?: string; objectTableId?: string; @@ -9966,6 +10928,7 @@ export interface MerkleStoreModulePatch { createdAt?: string; databaseId?: string; entityField?: string; + entityTableId?: string; functionPrefix?: string; id?: string; objectTableId?: string; @@ -10006,6 +10969,15 @@ export interface MerkleStoreModuleToManyGraphModuleFilter { /** Filters to entities where at least one related entity matches. */ some?: GraphModuleFilter; } +/** A filter to be used against many `K8sAdmissionModule` object types. All fields are combined with a logical ‘and.’ */ +export interface MerkleStoreModuleToManyK8sAdmissionModuleFilter { + /** Filters to entities where every related entity matches. */ + every?: K8sAdmissionModuleFilter; + /** Filters to entities where no related entity matches. */ + none?: K8sAdmissionModuleFilter; + /** Filters to entities where at least one related entity matches. */ + some?: K8sAdmissionModuleFilter; +} /** A filter to be used against many `PagesModule` object types. All fields are combined with a logical ‘and.’ */ export interface MerkleStoreModuleToManyPagesModuleFilter { /** Filters to entities where every related entity matches. */ @@ -10356,6 +11328,14 @@ export interface PagesModuleFilter { policies?: JSONFilter; /** Filter by the object’s `prefix` field. */ prefix?: StringFilter; + /** Filter by the object’s `previewCommitFunctionName` field. */ + previewCommitFunctionName?: StringFilter; + /** Filter by the object’s `previewSetFunctionName` field. */ + previewSetFunctionName?: StringFilter; + /** Filter by the object’s `previewTokenMintFunctionName` field. */ + previewTokenMintFunctionName?: StringFilter; + /** Filter by the object’s `previewTokenVerifierFunctionName` field. */ + previewTokenVerifierFunctionName?: StringFilter; /** Filter by the object’s `privateApiName` field. */ privateApiName?: StringFilter; /** Filter by the object’s `privateSchemaId` field. */ @@ -10368,6 +11348,8 @@ export interface PagesModuleFilter { publicSchemaId?: UUIDFilter; /** Filter by the object’s `publicSchemaName` field. */ publicSchemaName?: StringFilter; + /** Filter by the object’s `releaseManifestFunctionName` field. */ + releaseManifestFunctionName?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: StringFilter; /** Filter by the object’s `siteSurfaceModule` relation. */ @@ -10392,12 +11374,17 @@ export interface PagesModuleInput { pagesTableId?: string; policies?: unknown; prefix: string; + previewCommitFunctionName?: string; + previewSetFunctionName?: string; + previewTokenMintFunctionName?: string; + previewTokenVerifierFunctionName?: string; privateApiName?: string; privateSchemaId?: string; privateSchemaName?: string; provisions?: unknown; publicSchemaId?: string; publicSchemaName?: string; + releaseManifestFunctionName?: string; scope: string; siteSurfaceModuleId?: string; sitesTableId?: string; @@ -10414,12 +11401,17 @@ export interface PagesModulePatch { pagesTableId?: string; policies?: unknown; prefix?: string; + previewCommitFunctionName?: string; + previewSetFunctionName?: string; + previewTokenMintFunctionName?: string; + previewTokenVerifierFunctionName?: string; privateApiName?: string; privateSchemaId?: string; privateSchemaName?: string; provisions?: unknown; publicSchemaId?: string; publicSchemaName?: string; + releaseManifestFunctionName?: string; scope?: string; siteSurfaceModuleId?: string; sitesTableId?: string; @@ -10609,6 +11601,8 @@ export interface PrincipalAuthModuleFilter { principalsTableId?: UUIDFilter; /** Filter by the object’s `principalsTableName` field. */ principalsTableName?: StringFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; /** Filter by the object’s `revokeOrgApiKeyFunction` field. */ revokeOrgApiKeyFunction?: StringFilter; /** Filter by the object’s `schemaId` field. */ @@ -10617,6 +11611,8 @@ export interface PrincipalAuthModuleFilter { sessionCredentialsTableId?: UUIDFilter; /** Filter by the object’s `sessionsTableId` field. */ sessionsTableId?: UUIDFilter; + /** Filter by the object’s `sweepExpiredPrincipalsFunction` field. */ + sweepExpiredPrincipalsFunction?: StringFilter; /** Filter by the object’s `usersTableId` field. */ usersTableId?: UUIDFilter; } @@ -10635,10 +11631,12 @@ export interface PrincipalAuthModuleInput { principalScopeOverridesTableId?: string; principalsTableId?: string; principalsTableName?: string; + privateSchemaId?: string; revokeOrgApiKeyFunction?: string; schemaId?: string; sessionCredentialsTableId?: string; sessionsTableId?: string; + sweepExpiredPrincipalsFunction?: string; usersTableId?: string; } /** Represents an update to a `PrincipalAuthModule`. Fields that are set will be updated. */ @@ -10656,10 +11654,12 @@ export interface PrincipalAuthModulePatch { principalScopeOverridesTableId?: string; principalsTableId?: string; principalsTableName?: string; + privateSchemaId?: string; revokeOrgApiKeyFunction?: string; schemaId?: string; sessionCredentialsTableId?: string; sessionsTableId?: string; + sweepExpiredPrincipalsFunction?: string; usersTableId?: string; } /** A filter to be used against `ProfilesModule` object types. All fields are combined with a logical ‘and.’ */ @@ -10999,6 +11999,113 @@ export interface RealtimeModulePatch { sourceRegistryTableId?: string; subscriptionsSchemaId?: string; } +/** A filter to be used against `RefusalLogModule` object types. All fields are combined with a logical ‘and.’ */ +export interface RefusalLogModuleFilter { + /** Checks for all expressions in this list. */ + and?: RefusalLogModuleFilter[]; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `logInterval` field. */ + logInterval?: StringFilter; + /** Filter by the object’s `logPremake` field. */ + logPremake?: IntFilter; + /** Filter by the object’s `logRetention` field. */ + logRetention?: StringFilter; + /** Filter by the object’s `logTableId` field. */ + logTableId?: UUIDFilter; + /** Filter by the object’s `logTableName` field. */ + logTableName?: StringFilter; + /** Negates the expression. */ + not?: RefusalLogModuleFilter; + /** Checks for any expressions in this list. */ + or?: RefusalLogModuleFilter[]; + /** 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 `recordRefusalsFunction` field. */ + recordRefusalsFunction?: StringFilter; + /** Filter by the object’s `rollupRefusalUsageSummaryFunction` field. */ + rollupRefusalUsageSummaryFunction?: StringFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `summaryInterval` field. */ + summaryInterval?: StringFilter; + /** Filter by the object’s `summaryPremake` field. */ + summaryPremake?: IntFilter; + /** Filter by the object’s `summaryRetention` field. */ + summaryRetention?: StringFilter; + /** Filter by the object’s `summaryTableId` field. */ + summaryTableId?: UUIDFilter; + /** Filter by the object’s `summaryTableName` field. */ + summaryTableName?: StringFilter; +} +/** An input for mutations affecting `RefusalLogModule` */ +export interface RefusalLogModuleInput { + apiName?: string; + databaseId: string; + entityField?: string; + id?: string; + logInterval?: string; + logPremake?: number; + logRetention?: string; + logTableId?: string; + logTableName?: string; + prefix?: string; + privateApiName?: string; + privateSchemaId?: string; + privateSchemaName?: string; + publicSchemaName?: string; + recordRefusalsFunction?: string; + rollupRefusalUsageSummaryFunction?: string; + schemaId?: string; + scope: string; + summaryInterval?: string; + summaryPremake?: number; + summaryRetention?: string; + summaryTableId?: string; + summaryTableName?: string; +} +/** Represents an update to a `RefusalLogModule`. Fields that are set will be updated. */ +export interface RefusalLogModulePatch { + apiName?: string; + databaseId?: string; + entityField?: string; + id?: string; + logInterval?: string; + logPremake?: number; + logRetention?: string; + logTableId?: string; + logTableName?: string; + prefix?: string; + privateApiName?: string; + privateSchemaId?: string; + privateSchemaName?: string; + publicSchemaName?: string; + recordRefusalsFunction?: string; + rollupRefusalUsageSummaryFunction?: string; + schemaId?: string; + scope?: string; + summaryInterval?: string; + summaryPremake?: number; + summaryRetention?: string; + summaryTableId?: string; + summaryTableName?: string; +} /** A filter to be used against `RelationProvision` object types. All fields are combined with a logical ‘and.’ */ export interface RelationProvisionFilter { /** Checks for all expressions in this list. */ @@ -11304,12 +12411,191 @@ export interface RelationProvisionPatch { */ useCompositeKey?: boolean; } +/** A filter to be used against `RepositoryModule` object types. All fields are combined with a logical ‘and.’ */ +export interface RepositoryModuleFilter { + /** Checks for all expressions in this list. */ + and?: RepositoryModuleFilter[]; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `buildStepsTableId` field. */ + buildStepsTableId?: UUIDFilter; + /** Filter by the object’s `buildStepsTableName` field. */ + buildStepsTableName?: StringFilter; + /** Filter by the object’s `buildsTableId` field. */ + buildsTableId?: UUIDFilter; + /** Filter by the object’s `buildsTableName` field. */ + buildsTableName?: StringFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** 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. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `hasAttachments` field. */ + hasAttachments?: BooleanFilter; + /** Filter by the object’s `hasBuilds` field. */ + hasBuilds?: BooleanFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: RepositoryModuleFilter; + /** Checks for any expressions in this list. */ + or?: RepositoryModuleFilter[]; + /** 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 `proposalCommentsTableId` field. */ + proposalCommentsTableId?: UUIDFilter; + /** Filter by the object’s `proposalCommentsTableName` field. */ + proposalCommentsTableName?: StringFilter; + /** Filter by the object’s `proposalFileViewsTableId` field. */ + proposalFileViewsTableId?: UUIDFilter; + /** Filter by the object’s `proposalFileViewsTableName` field. */ + proposalFileViewsTableName?: StringFilter; + /** Filter by the object’s `proposalReactionsTableId` field. */ + proposalReactionsTableId?: UUIDFilter; + /** Filter by the object’s `proposalReactionsTableName` field. */ + proposalReactionsTableName?: StringFilter; + /** Filter by the object’s `proposalReviewsTableId` field. */ + proposalReviewsTableId?: UUIDFilter; + /** Filter by the object’s `proposalReviewsTableName` field. */ + proposalReviewsTableName?: StringFilter; + /** Filter by the object’s `proposalsTableId` field. */ + proposalsTableId?: UUIDFilter; + /** Filter by the object’s `proposalsTableName` field. */ + proposalsTableName?: StringFilter; + /** Filter by the object’s `provisions` field. */ + provisions?: JSONFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `repositoriesTableId` field. */ + repositoriesTableId?: UUIDFilter; + /** Filter by the object’s `repositoriesTableName` field. */ + repositoriesTableName?: StringFilter; + /** Filter by the object’s `repositoryEventsTableId` field. */ + repositoryEventsTableId?: UUIDFilter; + /** Filter by the object’s `repositoryEventsTableName` field. */ + repositoryEventsTableName?: StringFilter; + /** Filter by the object’s `repositoryRequiredChecksTableId` field. */ + repositoryRequiredChecksTableId?: UUIDFilter; + /** Filter by the object’s `repositoryRequiredChecksTableName` field. */ + repositoryRequiredChecksTableName?: StringFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `search` field. */ + search?: JSONFilter; + /** Filter by the object’s `workflowsTableId` field. */ + workflowsTableId?: UUIDFilter; + /** Filter by the object’s `workflowsTableName` field. */ + workflowsTableName?: StringFilter; +} +/** An input for mutations affecting `RepositoryModule` */ +export interface RepositoryModuleInput { + apiName?: string; + buildStepsTableId?: string; + buildStepsTableName?: string; + buildsTableId?: string; + buildsTableName?: string; + databaseId: string; + defaultCapabilities?: string[]; + entityField?: string; + entityTableId?: string; + hasAttachments?: boolean; + hasBuilds?: boolean; + id?: string; + policies?: unknown; + prefix?: string; + privateApiName?: string; + privateSchemaId?: string; + privateSchemaName?: string; + proposalCommentsTableId?: string; + proposalCommentsTableName?: string; + proposalFileViewsTableId?: string; + proposalFileViewsTableName?: string; + proposalReactionsTableId?: string; + proposalReactionsTableName?: string; + proposalReviewsTableId?: string; + proposalReviewsTableName?: string; + proposalsTableId?: string; + proposalsTableName?: string; + provisions?: unknown; + publicSchemaName?: string; + repositoriesTableId?: string; + repositoriesTableName?: string; + repositoryEventsTableId?: string; + repositoryEventsTableName?: string; + repositoryRequiredChecksTableId?: string; + repositoryRequiredChecksTableName?: string; + schemaId?: string; + scope: string; + search?: unknown; + workflowsTableId?: string; + workflowsTableName?: string; +} +/** Represents an update to a `RepositoryModule`. Fields that are set will be updated. */ +export interface RepositoryModulePatch { + apiName?: string; + buildStepsTableId?: string; + buildStepsTableName?: string; + buildsTableId?: string; + buildsTableName?: string; + databaseId?: string; + defaultCapabilities?: string[]; + entityField?: string; + entityTableId?: string; + hasAttachments?: boolean; + hasBuilds?: boolean; + id?: string; + policies?: unknown; + prefix?: string; + privateApiName?: string; + privateSchemaId?: string; + privateSchemaName?: string; + proposalCommentsTableId?: string; + proposalCommentsTableName?: string; + proposalFileViewsTableId?: string; + proposalFileViewsTableName?: string; + proposalReactionsTableId?: string; + proposalReactionsTableName?: string; + proposalReviewsTableId?: string; + proposalReviewsTableName?: string; + proposalsTableId?: string; + proposalsTableName?: string; + provisions?: unknown; + publicSchemaName?: string; + repositoriesTableId?: string; + repositoriesTableName?: string; + repositoryEventsTableId?: string; + repositoryEventsTableName?: string; + repositoryRequiredChecksTableId?: string; + repositoryRequiredChecksTableName?: string; + schemaId?: string; + scope?: string; + search?: unknown; + workflowsTableId?: string; + workflowsTableName?: string; +} /** A filter to be used against `ResourceModule` object types. All fields are combined with a logical ‘and.’ */ export interface ResourceModuleFilter { /** Checks for all expressions in this list. */ and?: ResourceModuleFilter[]; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; + /** Filter by the object’s `builderBindingsTableId` field. */ + builderBindingsTableId?: UUIDFilter; + /** Filter by the object’s `builderBindingsTableName` field. */ + builderBindingsTableName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; /** Filter by the object’s `defaultCapabilities` field. */ @@ -11318,10 +12604,6 @@ export interface ResourceModuleFilter { entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ entityTableId?: UUIDFilter; - /** Filter by the object’s `httpRouteModules` relation. */ - httpRouteModules?: ResourceModuleToManyHttpRouteModuleFilter; - /** `httpRouteModules` exist. */ - httpRouteModulesExist?: boolean; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `installationStoreName` field. */ @@ -11356,6 +12638,10 @@ export interface ResourceModuleFilter { provisions?: JSONFilter; /** Filter by the object’s `publicSchemaName` field. */ publicSchemaName?: StringFilter; + /** Filter by the object’s `registryBindingsTableId` field. */ + registryBindingsTableId?: UUIDFilter; + /** Filter by the object’s `registryBindingsTableName` field. */ + registryBindingsTableName?: StringFilter; /** Filter by the object’s `requirementsStateViewName` field. */ requirementsStateViewName?: StringFilter; /** Filter by the object’s `resolvedRequirementsViewName` field. */ @@ -11400,6 +12686,8 @@ export interface ResourceModuleFilter { /** An input for mutations affecting `ResourceModule` */ export interface ResourceModuleInput { apiName?: string; + builderBindingsTableId?: string; + builderBindingsTableName?: string; databaseId: string; defaultCapabilities?: string[]; entityField?: string; @@ -11415,6 +12703,8 @@ export interface ResourceModuleInput { privateSchemaName?: string; provisions?: unknown; publicSchemaName?: string; + registryBindingsTableId?: string; + registryBindingsTableName?: string; requirementsStateViewName?: string; resolvedRequirementsViewName?: string; resourceBillingRollupFunction?: string; @@ -11439,6 +12729,8 @@ export interface ResourceModuleInput { /** Represents an update to a `ResourceModule`. Fields that are set will be updated. */ export interface ResourceModulePatch { apiName?: string; + builderBindingsTableId?: string; + builderBindingsTableName?: string; databaseId?: string; defaultCapabilities?: string[]; entityField?: string; @@ -11454,6 +12746,8 @@ export interface ResourceModulePatch { privateSchemaName?: string; provisions?: unknown; publicSchemaName?: string; + registryBindingsTableId?: string; + registryBindingsTableName?: string; requirementsStateViewName?: string; resolvedRequirementsViewName?: string; resourceBillingRollupFunction?: string; @@ -11475,15 +12769,6 @@ export interface ResourceModulePatch { schemaId?: string; scope?: string; } -/** A filter to be used against many `HttpRouteModule` object types. All fields are combined with a logical ‘and.’ */ -export interface ResourceModuleToManyHttpRouteModuleFilter { - /** Filters to entities where every related entity matches. */ - every?: HttpRouteModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: HttpRouteModuleFilter; - /** Filters to entities where at least one related entity matches. */ - some?: HttpRouteModuleFilter; -} /** A filter to be used against `RlsModule` object types. All fields are combined with a logical ‘and.’ */ export interface RlsModuleFilter { /** Checks for all expressions in this list. */ @@ -11605,6 +12890,10 @@ export interface RouteModuleFilter { provisions?: JSONFilter; /** Filter by the object’s `publicSchemaName` field. */ publicSchemaName?: StringFilter; + /** Filter by the object’s `redirectsTableId` field. */ + redirectsTableId?: UUIDFilter; + /** Filter by the object’s `redirectsTableName` field. */ + redirectsTableName?: StringFilter; /** Filter by the object’s `resolverFunctionName` field. */ resolverFunctionName?: StringFilter; /** Filter by the object’s `routeBindingsTableId` field. */ @@ -11619,6 +12908,10 @@ export interface RouteModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `scope` field. */ scope?: StringFilter; + /** Filter by the object’s `servingSiteField` field. */ + servingSiteField?: StringFilter; + /** Filter by the object’s `storageKey` field. */ + storageKey?: StringFilter; } /** An input for mutations affecting `RouteModule` */ export interface RouteModuleInput { @@ -11641,6 +12934,8 @@ export interface RouteModuleInput { privateSchemaName?: string; provisions?: unknown; publicSchemaName?: string; + redirectsTableId?: string; + redirectsTableName?: string; resolverFunctionName?: string; routeBindingsTableId?: string; routeBindingsTableName?: string; @@ -11648,6 +12943,8 @@ export interface RouteModuleInput { routesTableName?: string; schemaId?: string; scope: string; + servingSiteField?: string; + storageKey?: string; } /** Represents an update to a `RouteModule`. Fields that are set will be updated. */ export interface RouteModulePatch { @@ -11670,6 +12967,8 @@ export interface RouteModulePatch { privateSchemaName?: string; provisions?: unknown; publicSchemaName?: string; + redirectsTableId?: string; + redirectsTableName?: string; resolverFunctionName?: string; routeBindingsTableId?: string; routeBindingsTableName?: string; @@ -11677,6 +12976,8 @@ export interface RouteModulePatch { routesTableName?: string; schemaId?: string; scope?: string; + servingSiteField?: string; + storageKey?: string; } /** A filter to be used against `ScopeTypesModule` object types. All fields are combined with a logical ‘and.’ */ export interface ScopeTypesModuleFilter { @@ -11725,6 +13026,8 @@ export interface SecureTableProvisionFilter { grants?: JSONFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `module` field. */ + module?: JSONFilter; /** Filter by the object’s `nodes` field. */ nodes?: JSONFilter; /** Negates the expression. */ @@ -11733,6 +13036,8 @@ export interface SecureTableProvisionFilter { or?: SecureTableProvisionFilter[]; /** Filter by the object’s `outFields` field. */ outFields?: UUIDListFilter; + /** Filter by the object’s `owns` field. */ + owns?: JSONFilter; /** Filter by the object’s `policies` field. */ policies?: JSONFilter; /** Filter by the object’s `schemaId` field. */ @@ -11754,10 +13059,14 @@ export interface SecureTableProvisionInput { grants?: unknown; /** Unique identifier for this provision row. */ id?: string; + /** Module reference naming a module-generated target table symbolically, instead of by table_id or table_name: a jsonb object with keys "type" (text, required — the module type, e.g. "image"), "table" (text, required — the module's own table key, e.g. "registries"), "scope" (text, optional — the install scope) and "prefix" (text, optional — disambiguates multiple installs of the same module). Resolved through metaschema_modules_private.resolve_module_table(), so it raises the same errors blueprint module references do (BLUEPRINT_MODULE_REF_INVALID, BLUEPRINT_MODULE_NOT_INSTALLED, BLUEPRINT_MODULE_REF_AMBIGUOUS, BLUEPRINT_MODULE_TABLE_UNKNOWN). Mutually exclusive with table_name and with an explicit table_id. Example: {"type":"image","scope":"org","table":"registries"}. Defaults to NULL. */ + module?: unknown; /** Array of node objects to apply to the table. Each element is a jsonb object with a required "$type" key (one of: DataId, DataDirectOwner, DataEntityMembership, DataOwnershipInEntity, DataTimestamps, DataPeoplestamps, DataPublishable, DataSoftDelete, DataEmbedding, DataFullTextSearch, DataSlug, etc.) and an optional "data" key containing generator-specific configuration. Supports multiple nodes per row, matching the blueprint definition format. Example: [{"$type": "DataId"}, {"$type": "DataTimestamps"}, {"$type": "DataDirectOwner", "data": {"owner_field_name": "author_id"}}]. Defaults to '[]' (no node processing). */ nodes?: unknown; /** Output column populated by the trigger after field creation. Contains the UUIDs of the metaschema fields created on the target table by this provision row's nodes. NULL when nodes is empty or before the trigger runs. Callers should not set this directly. */ outFields?: string[]; + /** Security concerns this row owns on the target table, as a jsonb array of "grants" and/or "policies". A listed concern is replaced: the target table's existing grants (or its non-derived policies) are dropped before this row's grants[] (or policies[]) are applied, so the row's array is the table's whole set — this is how a module-generated table's default security is superseded rather than layered on. An unlisted concern composes, which is the default and the historical behavior. A concern may only be owned when this row supplies a non-empty array for it; owning a concern with nothing to install would leave the table with RLS enabled and no policy, and raises instead. Example: ["policies","grants"]. Defaults to '[]' (compose everything). */ + owns?: unknown; /** Array of policy objects to create on the target table. Each element is a jsonb object with keys: "$type" (text, required — the Authz* policy generator type, e.g. AuthzEntityMembership, AuthzMembership, AuthzDirectOwner, AuthzPublishable, AuthzAllowAll), "data" (jsonb, optional — opaque configuration passed to metaschema.create_policy(), structure varies by type), "privileges" (text[], optional — privileges the policy applies to, e.g. ["select","insert"]; if omitted, derived from grants[] privilege verbs), "policy_role" (text, optional — role the policy targets; if omitted, falls back to first role in first grants[] entry, or 'authenticated' if no grants), "permissive" (boolean, optional — PERMISSIVE or RESTRICTIVE; defaults to true), "policy_name" (text, optional — custom suffix for the generated policy name; if omitted, auto-derived from $type by stripping Authz prefix). Supports multiple policies per row. Example: [{"$type": "AuthzEntityMembership", "data": {"entity_field": "owner_id", "membership_type": 3}, "privileges": ["select", "insert"]}, {"$type": "AuthzDirectOwner", "data": {"entity_field": "actor_id"}, "privileges": ["update", "delete"]}]. Defaults to '[]' (no policies created). When non-empty, the trigger automatically enables RLS. */ policies?: unknown; /** Target schema for the table. Defaults to uuid_nil(); the trigger resolves this to the app_public schema if not explicitly provided. */ @@ -11779,10 +13088,14 @@ export interface SecureTableProvisionPatch { grants?: unknown; /** Unique identifier for this provision row. */ id?: string; + /** Module reference naming a module-generated target table symbolically, instead of by table_id or table_name: a jsonb object with keys "type" (text, required — the module type, e.g. "image"), "table" (text, required — the module's own table key, e.g. "registries"), "scope" (text, optional — the install scope) and "prefix" (text, optional — disambiguates multiple installs of the same module). Resolved through metaschema_modules_private.resolve_module_table(), so it raises the same errors blueprint module references do (BLUEPRINT_MODULE_REF_INVALID, BLUEPRINT_MODULE_NOT_INSTALLED, BLUEPRINT_MODULE_REF_AMBIGUOUS, BLUEPRINT_MODULE_TABLE_UNKNOWN). Mutually exclusive with table_name and with an explicit table_id. Example: {"type":"image","scope":"org","table":"registries"}. Defaults to NULL. */ + module?: unknown; /** Array of node objects to apply to the table. Each element is a jsonb object with a required "$type" key (one of: DataId, DataDirectOwner, DataEntityMembership, DataOwnershipInEntity, DataTimestamps, DataPeoplestamps, DataPublishable, DataSoftDelete, DataEmbedding, DataFullTextSearch, DataSlug, etc.) and an optional "data" key containing generator-specific configuration. Supports multiple nodes per row, matching the blueprint definition format. Example: [{"$type": "DataId"}, {"$type": "DataTimestamps"}, {"$type": "DataDirectOwner", "data": {"owner_field_name": "author_id"}}]. Defaults to '[]' (no node processing). */ nodes?: unknown; /** Output column populated by the trigger after field creation. Contains the UUIDs of the metaschema fields created on the target table by this provision row's nodes. NULL when nodes is empty or before the trigger runs. Callers should not set this directly. */ outFields?: string[]; + /** Security concerns this row owns on the target table, as a jsonb array of "grants" and/or "policies". A listed concern is replaced: the target table's existing grants (or its non-derived policies) are dropped before this row's grants[] (or policies[]) are applied, so the row's array is the table's whole set — this is how a module-generated table's default security is superseded rather than layered on. An unlisted concern composes, which is the default and the historical behavior. A concern may only be owned when this row supplies a non-empty array for it; owning a concern with nothing to install would leave the table with RLS enabled and no policy, and raises instead. Example: ["policies","grants"]. Defaults to '[]' (compose everything). */ + owns?: unknown; /** Array of policy objects to create on the target table. Each element is a jsonb object with keys: "$type" (text, required — the Authz* policy generator type, e.g. AuthzEntityMembership, AuthzMembership, AuthzDirectOwner, AuthzPublishable, AuthzAllowAll), "data" (jsonb, optional — opaque configuration passed to metaschema.create_policy(), structure varies by type), "privileges" (text[], optional — privileges the policy applies to, e.g. ["select","insert"]; if omitted, derived from grants[] privilege verbs), "policy_role" (text, optional — role the policy targets; if omitted, falls back to first role in first grants[] entry, or 'authenticated' if no grants), "permissive" (boolean, optional — PERMISSIVE or RESTRICTIVE; defaults to true), "policy_name" (text, optional — custom suffix for the generated policy name; if omitted, auto-derived from $type by stripping Authz prefix). Supports multiple policies per row. Example: [{"$type": "AuthzEntityMembership", "data": {"entity_field": "owner_id", "membership_type": 3}, "privileges": ["select", "insert"]}, {"$type": "AuthzDirectOwner", "data": {"entity_field": "actor_id"}, "privileges": ["update", "delete"]}]. Defaults to '[]' (no policies created). When non-empty, the trigger automatically enables RLS. */ policies?: unknown; /** Target schema for the table. Defaults to uuid_nil(); the trigger resolves this to the app_public schema if not explicitly provided. */ @@ -11966,6 +13279,10 @@ export interface SiteSurfaceModuleFilter { siteModulesTableId?: UUIDFilter; /** Filter by the object’s `siteModulesTableName` field. */ siteModulesTableName?: StringFilter; + /** Filter by the object’s `siteReleasesTableId` field. */ + siteReleasesTableId?: UUIDFilter; + /** Filter by the object’s `siteReleasesTableName` field. */ + siteReleasesTableName?: StringFilter; /** Filter by the object’s `siteThemesTableId` field. */ siteThemesTableId?: UUIDFilter; /** Filter by the object’s `siteThemesTableName` field. */ @@ -11978,6 +13295,8 @@ export interface SiteSurfaceModuleFilter { sitesTableId?: UUIDFilter; /** Filter by the object’s `sitesTableName` field. */ sitesTableName?: StringFilter; + /** Filter by the object’s `storageKey` field. */ + storageKey?: StringFilter; } /** An input for mutations affecting `SiteSurfaceModule` */ export interface SiteSurfaceModuleInput { @@ -12007,12 +13326,15 @@ export interface SiteSurfaceModuleInput { siteMetadataTableName?: string; siteModulesTableId?: string; siteModulesTableName?: string; + siteReleasesTableId?: string; + siteReleasesTableName?: string; siteThemesTableId?: string; siteThemesTableName?: string; siteWebConfigTableId?: string; siteWebConfigTableName?: string; sitesTableId?: string; sitesTableName?: string; + storageKey?: string; } /** Represents an update to a `SiteSurfaceModule`. Fields that are set will be updated. */ export interface SiteSurfaceModulePatch { @@ -12042,12 +13364,15 @@ export interface SiteSurfaceModulePatch { siteMetadataTableName?: string; siteModulesTableId?: string; siteModulesTableName?: string; + siteReleasesTableId?: string; + siteReleasesTableName?: string; siteThemesTableId?: string; siteThemesTableName?: string; siteWebConfigTableId?: string; siteWebConfigTableName?: string; sitesTableId?: string; sitesTableName?: string; + storageKey?: string; } /** A filter to be used against many `EmailSenderModule` object types. All fields are combined with a logical ‘and.’ */ export interface SiteSurfaceModuleToManyEmailSenderModuleFilter { @@ -12069,8 +13394,6 @@ export interface SiteSurfaceModuleToManyPagesModuleFilter { } /** A filter to be used against `StorageLogModule` object types. All fields are combined with a logical ‘and.’ */ export interface StorageLogModuleFilter { - /** Filter by the object’s `actorFkTableId` field. */ - actorFkTableId?: UUIDFilter; /** Checks for all expressions in this list. */ and?: StorageLogModuleFilter[]; /** Filter by the object’s `apiName` field. */ @@ -12079,8 +13402,6 @@ export interface StorageLogModuleFilter { databaseId?: UUIDFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; - /** Filter by the object’s `entityFkTableId` field. */ - entityFkTableId?: UUIDFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `interval` field. */ @@ -12103,6 +13424,8 @@ export interface StorageLogModuleFilter { publicSchemaName?: StringFilter; /** Filter by the object’s `retention` field. */ retention?: StringFilter; + /** Filter by the object’s `rollupFunctionName` field. */ + rollupFunctionName?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `scope` field. */ @@ -12118,11 +13441,9 @@ export interface StorageLogModuleFilter { } /** An input for mutations affecting `StorageLogModule` */ export interface StorageLogModuleInput { - actorFkTableId?: string; apiName?: string; databaseId: string; entityField?: string; - entityFkTableId?: string; id?: string; interval?: string; prefix?: string; @@ -12132,6 +13453,7 @@ export interface StorageLogModuleInput { privateSchemaName?: string; publicSchemaName?: string; retention?: string; + rollupFunctionName?: string; schemaId?: string; scope: string; storageLogTableId?: string; @@ -12141,11 +13463,9 @@ export interface StorageLogModuleInput { } /** Represents an update to a `StorageLogModule`. Fields that are set will be updated. */ export interface StorageLogModulePatch { - actorFkTableId?: string; apiName?: string; databaseId?: string; entityField?: string; - entityFkTableId?: string; id?: string; interval?: string; prefix?: string; @@ -12155,6 +13475,7 @@ export interface StorageLogModulePatch { privateSchemaName?: string; publicSchemaName?: string; retention?: string; + rollupFunctionName?: string; schemaId?: string; scope?: string; storageLogTableId?: string; @@ -12216,12 +13537,10 @@ export interface StorageModuleFilter { hasPathShares?: BooleanFilter; /** Filter by the object’s `hasVersioning` field. */ hasVersioning?: BooleanFilter; - /** Filter by the object’s `httpRouteModules` relation. */ - httpRouteModules?: StorageModuleToManyHttpRouteModuleFilter; - /** `httpRouteModules` exist. */ - httpRouteModulesExist?: boolean; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `key` field. */ + key?: StringFilter; /** Filter by the object’s `maxBulkFiles` field. */ maxBulkFiles?: IntFilter; /** Filter by the object’s `maxBulkTotalSize` field. */ @@ -12287,6 +13606,7 @@ export interface StorageModuleInput { hasPathShares?: boolean; hasVersioning?: boolean; id?: string; + key?: string; maxBulkFiles?: number; maxBulkTotalSize?: string; maxFilenameLength?: number; @@ -12331,6 +13651,7 @@ export interface StorageModulePatch { hasPathShares?: boolean; hasVersioning?: boolean; id?: string; + key?: string; maxBulkFiles?: number; maxBulkTotalSize?: string; maxFilenameLength?: number; @@ -12358,19 +13679,8 @@ export interface StorageModuleToManyFileRefFieldFilter { /** 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. */ - every?: HttpRouteModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: HttpRouteModuleFilter; - /** Filters to entities where at least one related entity matches. */ - some?: HttpRouteModuleFilter; -} /** A filter to be used against `TransferLogModule` object types. All fields are combined with a logical ‘and.’ */ export interface TransferLogModuleFilter { - /** Filter by the object’s `actorFkTableId` field. */ - actorFkTableId?: UUIDFilter; /** Checks for all expressions in this list. */ and?: TransferLogModuleFilter[]; /** Filter by the object’s `apiName` field. */ @@ -12379,8 +13689,6 @@ export interface TransferLogModuleFilter { databaseId?: UUIDFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; - /** Filter by the object’s `entityFkTableId` field. */ - entityFkTableId?: UUIDFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `interval` field. */ @@ -12403,6 +13711,8 @@ export interface TransferLogModuleFilter { publicSchemaName?: StringFilter; /** Filter by the object’s `retention` field. */ retention?: StringFilter; + /** Filter by the object’s `rollupFunctionName` field. */ + rollupFunctionName?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `scope` field. */ @@ -12418,11 +13728,9 @@ export interface TransferLogModuleFilter { } /** An input for mutations affecting `TransferLogModule` */ export interface TransferLogModuleInput { - actorFkTableId?: string; apiName?: string; databaseId: string; entityField?: string; - entityFkTableId?: string; id?: string; interval?: string; prefix?: string; @@ -12432,6 +13740,7 @@ export interface TransferLogModuleInput { privateSchemaName?: string; publicSchemaName?: string; retention?: string; + rollupFunctionName?: string; schemaId?: string; scope: string; transferLogTableId?: string; @@ -12441,11 +13750,9 @@ export interface TransferLogModuleInput { } /** Represents an update to a `TransferLogModule`. Fields that are set will be updated. */ export interface TransferLogModulePatch { - actorFkTableId?: string; apiName?: string; databaseId?: string; entityField?: string; - entityFkTableId?: string; id?: string; interval?: string; prefix?: string; @@ -12455,6 +13762,7 @@ export interface TransferLogModulePatch { privateSchemaName?: string; publicSchemaName?: string; retention?: string; + rollupFunctionName?: string; schemaId?: string; scope?: string; transferLogTableId?: string; @@ -12525,16 +13833,16 @@ export interface UpdateCatalogModuleInput { clientMutationId?: string; id: string; } -export interface UpdateComputeLogModuleInput { +export interface UpdateClusterModuleInput { clientMutationId?: string; - /** An object where the defined keys will be set on the `ComputeLogModule` being updated. */ - computeLogModulePatch: ComputeLogModulePatch; + /** An object where the defined keys will be set on the `ClusterModule` being updated. */ + clusterModulePatch: ClusterModulePatch; id: string; } -export interface UpdateConfigSecretsUserModuleInput { +export interface UpdateComputeLogModuleInput { clientMutationId?: string; - /** An object where the defined keys will be set on the `ConfigSecretsUserModule` being updated. */ - configSecretsUserModulePatch: ConfigSecretsUserModulePatch; + /** An object where the defined keys will be set on the `ComputeLogModule` being updated. */ + computeLogModulePatch: ComputeLogModulePatch; id: string; } export interface UpdateConnectedAccountsModuleInput { @@ -12694,12 +14002,6 @@ export interface UpdateHierarchyModuleInput { hierarchyModulePatch: HierarchyModulePatch; id: string; } -export interface UpdateHttpRouteModuleInput { - clientMutationId?: string; - /** An object where the defined keys will be set on the `HttpRouteModule` being updated. */ - httpRouteModulePatch: HttpRouteModulePatch; - id: string; -} export interface UpdateI18NModuleInput { clientMutationId?: string; /** An object where the defined keys will be set on the `I18NModule` being updated. */ @@ -12712,6 +14014,12 @@ export interface UpdateIdentityProvidersModuleInput { /** An object where the defined keys will be set on the `IdentityProvidersModule` being updated. */ identityProvidersModulePatch: IdentityProvidersModulePatch; } +export interface UpdateImageModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `ImageModule` being updated. */ + imageModulePatch: ImageModulePatch; +} export interface UpdateInferenceLogModuleInput { clientMutationId?: string; id: string; @@ -12736,6 +14044,12 @@ export interface UpdateIntegrationProvidersModuleInput { /** An object where the defined keys will be set on the `IntegrationProvidersModule` being updated. */ integrationProvidersModulePatch: IntegrationProvidersModulePatch; } +export interface UpdateInternalConfigModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `InternalConfigModule` being updated. */ + internalConfigModulePatch: InternalConfigModulePatch; +} export interface UpdateInternalSecretsModuleInput { clientMutationId?: string; id: string; @@ -12748,12 +14062,24 @@ export interface UpdateInvitesModuleInput { /** An object where the defined keys will be set on the `InvitesModule` being updated. */ invitesModulePatch: InvitesModulePatch; } +export interface UpdateK8sAdmissionModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `K8sAdmissionModule` being updated. */ + k8sAdmissionModulePatch: K8sAdmissionModulePatch; +} export interface UpdateLimitsModuleInput { clientMutationId?: string; id: string; /** An object where the defined keys will be set on the `LimitsModule` being updated. */ limitsModulePatch: LimitsModulePatch; } +export interface UpdateMachineModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `MachineModule` being updated. */ + machineModulePatch: MachineModulePatch; +} export interface UpdateMembershipTypesModuleInput { clientMutationId?: string; id: string; @@ -12838,6 +14164,12 @@ export interface UpdateRealtimeModuleInput { /** An object where the defined keys will be set on the `RealtimeModule` being updated. */ realtimeModulePatch: RealtimeModulePatch; } +export interface UpdateRefusalLogModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `RefusalLogModule` being updated. */ + refusalLogModulePatch: RefusalLogModulePatch; +} export interface UpdateRelationProvisionInput { clientMutationId?: string; /** Unique identifier for this relation provision row. */ @@ -12845,6 +14177,12 @@ export interface UpdateRelationProvisionInput { /** An object where the defined keys will be set on the `RelationProvision` being updated. */ relationProvisionPatch: RelationProvisionPatch; } +export interface UpdateRepositoryModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `RepositoryModule` being updated. */ + repositoryModulePatch: RepositoryModulePatch; +} export interface UpdateResourceModuleInput { clientMutationId?: string; id: string; @@ -12998,10 +14336,14 @@ export interface UserAuthModuleFilter { or?: UserAuthModuleFilter[]; /** Filter by the object’s `privateApiName` field. */ privateApiName?: StringFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; /** Filter by the object’s `requestCrossOriginTokenFunction` field. */ requestCrossOriginTokenFunction?: StringFilter; /** Filter by the object’s `resetPasswordFunction` field. */ resetPasswordFunction?: StringFilter; + /** Filter by the object’s `revokeSessionTreeFunction` field. */ + revokeSessionTreeFunction?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `secretsTableId` field. */ @@ -13024,6 +14366,8 @@ export interface UserAuthModuleFilter { signOutFunction?: StringFilter; /** Filter by the object’s `signUpFunction` field. */ signUpFunction?: StringFilter; + /** Filter by the object’s `sweepExpiredSessionsFunction` field. */ + sweepExpiredSessionsFunction?: StringFilter; /** Filter by the object’s `usersTableId` field. */ usersTableId?: UUIDFilter; /** Filter by the object’s `verifyEmailFunction` field. */ @@ -13045,8 +14389,10 @@ export interface UserAuthModuleInput { forgotPasswordFunction?: string; id?: string; privateApiName?: string; + privateSchemaId?: string; requestCrossOriginTokenFunction?: string; resetPasswordFunction?: string; + revokeSessionTreeFunction?: string; schemaId?: string; secretsTableId?: string; sendAccountDeletionEmailFunction?: string; @@ -13058,6 +14404,7 @@ export interface UserAuthModuleInput { signInFunction?: string; signOutFunction?: string; signUpFunction?: string; + sweepExpiredSessionsFunction?: string; usersTableId?: string; verifyEmailFunction?: string; verifyPasswordFunction?: string; @@ -13076,8 +14423,10 @@ export interface UserAuthModulePatch { forgotPasswordFunction?: string; id?: string; privateApiName?: string; + privateSchemaId?: string; requestCrossOriginTokenFunction?: string; resetPasswordFunction?: string; + revokeSessionTreeFunction?: string; schemaId?: string; secretsTableId?: string; sendAccountDeletionEmailFunction?: string; @@ -13089,6 +14438,7 @@ export interface UserAuthModulePatch { signInFunction?: string; signOutFunction?: string; signUpFunction?: string; + sweepExpiredSessionsFunction?: string; usersTableId?: string; verifyEmailFunction?: string; verifyPasswordFunction?: string; @@ -13641,6 +14991,13 @@ export interface CatalogModuleConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `ClusterModule` values. */ +export interface ClusterModuleConnection { + edges: ClusterModuleEdge[]; + nodes: ClusterModule[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `ComputeLogModule` values. */ export interface ComputeLogModuleConnection { edges: ComputeLogModuleEdge[]; @@ -13648,13 +15005,6 @@ export interface ComputeLogModuleConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `ConfigSecretsUserModule` values. */ -export interface ConfigSecretsUserModuleConnection { - edges: ConfigSecretsUserModuleEdge[]; - nodes: ConfigSecretsUserModule[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `ConnectedAccountsModule` values. */ export interface ConnectedAccountsModuleConnection { edges: ConnectedAccountsModuleEdge[]; @@ -13837,13 +15187,6 @@ export interface HierarchyModuleConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `HttpRouteModule` values. */ -export interface HttpRouteModuleConnection { - edges: HttpRouteModuleEdge[]; - nodes: HttpRouteModule[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `I18NModule` values. */ export interface I18NModuleConnection { edges: I18NModuleEdge[]; @@ -13858,6 +15201,13 @@ export interface IdentityProvidersModuleConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `ImageModule` values. */ +export interface ImageModuleConnection { + edges: ImageModuleEdge[]; + nodes: ImageModule[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `InferenceLogModule` values. */ export interface InferenceLogModuleConnection { edges: InferenceLogModuleEdge[]; @@ -13886,6 +15236,13 @@ export interface IntegrationProvidersModuleConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `InternalConfigModule` values. */ +export interface InternalConfigModuleConnection { + edges: InternalConfigModuleEdge[]; + nodes: InternalConfigModule[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `InternalSecretsModule` values. */ export interface InternalSecretsModuleConnection { edges: InternalSecretsModuleEdge[]; @@ -13900,6 +15257,13 @@ export interface InvitesModuleConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `K8sAdmissionModule` values. */ +export interface K8sAdmissionModuleConnection { + edges: K8sAdmissionModuleEdge[]; + nodes: K8sAdmissionModule[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `LimitsModule` values. */ export interface LimitsModuleConnection { edges: LimitsModuleEdge[]; @@ -13907,6 +15271,13 @@ export interface LimitsModuleConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `MachineModule` values. */ +export interface MachineModuleConnection { + edges: MachineModuleEdge[]; + nodes: MachineModule[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `MembershipTypesModule` values. */ export interface MembershipTypesModuleConnection { edges: MembershipTypesModuleEdge[]; @@ -14005,6 +15376,13 @@ export interface RealtimeModuleConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `RefusalLogModule` values. */ +export interface RefusalLogModuleConnection { + edges: RefusalLogModuleEdge[]; + nodes: RefusalLogModule[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `RelationProvision` values. */ export interface RelationProvisionConnection { edges: RelationProvisionEdge[]; @@ -14012,6 +15390,13 @@ export interface RelationProvisionConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `RepositoryModule` values. */ +export interface RepositoryModuleConnection { + edges: RepositoryModuleEdge[]; + nodes: RepositoryModule[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `ResourceModule` values. */ export interface ResourceModuleConnection { edges: ResourceModuleEdge[]; @@ -14220,18 +15605,18 @@ export interface CreateCatalogModulePayload { catalogModuleEdge?: CatalogModuleEdge | null; clientMutationId?: string | null; } +export interface CreateClusterModulePayload { + clientMutationId?: string | null; + /** The `ClusterModule` that was created by this mutation. */ + clusterModule?: ClusterModule | null; + clusterModuleEdge?: ClusterModuleEdge | null; +} export interface CreateComputeLogModulePayload { clientMutationId?: string | null; /** The `ComputeLogModule` that was created by this mutation. */ computeLogModule?: ComputeLogModule | null; computeLogModuleEdge?: ComputeLogModuleEdge | null; } -export interface CreateConfigSecretsUserModulePayload { - clientMutationId?: string | null; - /** The `ConfigSecretsUserModule` that was created by this mutation. */ - configSecretsUserModule?: ConfigSecretsUserModule | null; - configSecretsUserModuleEdge?: ConfigSecretsUserModuleEdge | null; -} export interface CreateConnectedAccountsModulePayload { clientMutationId?: string | null; /** The `ConnectedAccountsModule` that was created by this mutation. */ @@ -14388,12 +15773,6 @@ export interface CreateHierarchyModulePayload { hierarchyModule?: HierarchyModule | null; hierarchyModuleEdge?: HierarchyModuleEdge | null; } -export interface CreateHttpRouteModulePayload { - clientMutationId?: string | null; - /** The `HttpRouteModule` that was created by this mutation. */ - httpRouteModule?: HttpRouteModule | null; - httpRouteModuleEdge?: HttpRouteModuleEdge | null; -} export interface CreateI18NModulePayload { clientMutationId?: string | null; /** The `I18NModule` that was created by this mutation. */ @@ -14406,6 +15785,12 @@ export interface CreateIdentityProvidersModulePayload { identityProvidersModule?: IdentityProvidersModule | null; identityProvidersModuleEdge?: IdentityProvidersModuleEdge | null; } +export interface CreateImageModulePayload { + clientMutationId?: string | null; + /** The `ImageModule` that was created by this mutation. */ + imageModule?: ImageModule | null; + imageModuleEdge?: ImageModuleEdge | null; +} export interface CreateInferenceLogModulePayload { clientMutationId?: string | null; /** The `InferenceLogModule` that was created by this mutation. */ @@ -14430,6 +15815,12 @@ export interface CreateIntegrationProvidersModulePayload { integrationProvidersModule?: IntegrationProvidersModule | null; integrationProvidersModuleEdge?: IntegrationProvidersModuleEdge | null; } +export interface CreateInternalConfigModulePayload { + clientMutationId?: string | null; + /** The `InternalConfigModule` that was created by this mutation. */ + internalConfigModule?: InternalConfigModule | null; + internalConfigModuleEdge?: InternalConfigModuleEdge | null; +} export interface CreateInternalSecretsModulePayload { clientMutationId?: string | null; /** The `InternalSecretsModule` that was created by this mutation. */ @@ -14442,12 +15833,24 @@ export interface CreateInvitesModulePayload { invitesModule?: InvitesModule | null; invitesModuleEdge?: InvitesModuleEdge | null; } +export interface CreateK8sAdmissionModulePayload { + clientMutationId?: string | null; + /** The `K8sAdmissionModule` that was created by this mutation. */ + k8sAdmissionModule?: K8sAdmissionModule | null; + k8sAdmissionModuleEdge?: K8sAdmissionModuleEdge | null; +} export interface CreateLimitsModulePayload { clientMutationId?: string | null; /** The `LimitsModule` that was created by this mutation. */ limitsModule?: LimitsModule | null; limitsModuleEdge?: LimitsModuleEdge | null; } +export interface CreateMachineModulePayload { + clientMutationId?: string | null; + /** The `MachineModule` that was created by this mutation. */ + machineModule?: MachineModule | null; + machineModuleEdge?: MachineModuleEdge | null; +} export interface CreateMembershipTypesModulePayload { clientMutationId?: string | null; /** The `MembershipTypesModule` that was created by this mutation. */ @@ -14532,12 +15935,24 @@ export interface CreateRealtimeModulePayload { realtimeModule?: RealtimeModule | null; realtimeModuleEdge?: RealtimeModuleEdge | null; } +export interface CreateRefusalLogModulePayload { + clientMutationId?: string | null; + /** The `RefusalLogModule` that was created by this mutation. */ + refusalLogModule?: RefusalLogModule | null; + refusalLogModuleEdge?: RefusalLogModuleEdge | null; +} export interface CreateRelationProvisionPayload { clientMutationId?: string | null; /** The `RelationProvision` that was created by this mutation. */ relationProvision?: RelationProvision | null; relationProvisionEdge?: RelationProvisionEdge | null; } +export interface CreateRepositoryModulePayload { + clientMutationId?: string | null; + /** The `RepositoryModule` that was created by this mutation. */ + repositoryModule?: RepositoryModule | null; + repositoryModuleEdge?: RepositoryModuleEdge | null; +} export interface CreateResourceModulePayload { clientMutationId?: string | null; /** The `ResourceModule` that was created by this mutation. */ @@ -14718,18 +16133,18 @@ export interface DeleteCatalogModulePayload { catalogModuleEdge?: CatalogModuleEdge | null; clientMutationId?: string | null; } +export interface DeleteClusterModulePayload { + clientMutationId?: string | null; + /** The `ClusterModule` that was deleted by this mutation. */ + clusterModule?: ClusterModule | null; + clusterModuleEdge?: ClusterModuleEdge | null; +} export interface DeleteComputeLogModulePayload { clientMutationId?: string | null; /** The `ComputeLogModule` that was deleted by this mutation. */ computeLogModule?: ComputeLogModule | null; computeLogModuleEdge?: ComputeLogModuleEdge | null; } -export interface DeleteConfigSecretsUserModulePayload { - clientMutationId?: string | null; - /** The `ConfigSecretsUserModule` that was deleted by this mutation. */ - configSecretsUserModule?: ConfigSecretsUserModule | null; - configSecretsUserModuleEdge?: ConfigSecretsUserModuleEdge | null; -} export interface DeleteConnectedAccountsModulePayload { clientMutationId?: string | null; /** The `ConnectedAccountsModule` that was deleted by this mutation. */ @@ -14886,12 +16301,6 @@ export interface DeleteHierarchyModulePayload { hierarchyModule?: HierarchyModule | null; hierarchyModuleEdge?: HierarchyModuleEdge | null; } -export interface DeleteHttpRouteModulePayload { - clientMutationId?: string | null; - /** The `HttpRouteModule` that was deleted by this mutation. */ - httpRouteModule?: HttpRouteModule | null; - httpRouteModuleEdge?: HttpRouteModuleEdge | null; -} export interface DeleteI18NModulePayload { clientMutationId?: string | null; /** The `I18NModule` that was deleted by this mutation. */ @@ -14904,6 +16313,12 @@ export interface DeleteIdentityProvidersModulePayload { identityProvidersModule?: IdentityProvidersModule | null; identityProvidersModuleEdge?: IdentityProvidersModuleEdge | null; } +export interface DeleteImageModulePayload { + clientMutationId?: string | null; + /** The `ImageModule` that was deleted by this mutation. */ + imageModule?: ImageModule | null; + imageModuleEdge?: ImageModuleEdge | null; +} export interface DeleteInferenceLogModulePayload { clientMutationId?: string | null; /** The `InferenceLogModule` that was deleted by this mutation. */ @@ -14928,6 +16343,12 @@ export interface DeleteIntegrationProvidersModulePayload { integrationProvidersModule?: IntegrationProvidersModule | null; integrationProvidersModuleEdge?: IntegrationProvidersModuleEdge | null; } +export interface DeleteInternalConfigModulePayload { + clientMutationId?: string | null; + /** The `InternalConfigModule` that was deleted by this mutation. */ + internalConfigModule?: InternalConfigModule | null; + internalConfigModuleEdge?: InternalConfigModuleEdge | null; +} export interface DeleteInternalSecretsModulePayload { clientMutationId?: string | null; /** The `InternalSecretsModule` that was deleted by this mutation. */ @@ -14940,12 +16361,24 @@ export interface DeleteInvitesModulePayload { invitesModule?: InvitesModule | null; invitesModuleEdge?: InvitesModuleEdge | null; } +export interface DeleteK8sAdmissionModulePayload { + clientMutationId?: string | null; + /** The `K8sAdmissionModule` that was deleted by this mutation. */ + k8sAdmissionModule?: K8sAdmissionModule | null; + k8sAdmissionModuleEdge?: K8sAdmissionModuleEdge | null; +} export interface DeleteLimitsModulePayload { clientMutationId?: string | null; /** The `LimitsModule` that was deleted by this mutation. */ limitsModule?: LimitsModule | null; limitsModuleEdge?: LimitsModuleEdge | null; } +export interface DeleteMachineModulePayload { + clientMutationId?: string | null; + /** The `MachineModule` that was deleted by this mutation. */ + machineModule?: MachineModule | null; + machineModuleEdge?: MachineModuleEdge | null; +} export interface DeleteMembershipTypesModulePayload { clientMutationId?: string | null; /** The `MembershipTypesModule` that was deleted by this mutation. */ @@ -15030,12 +16463,24 @@ export interface DeleteRealtimeModulePayload { realtimeModule?: RealtimeModule | null; realtimeModuleEdge?: RealtimeModuleEdge | null; } +export interface DeleteRefusalLogModulePayload { + clientMutationId?: string | null; + /** The `RefusalLogModule` that was deleted by this mutation. */ + refusalLogModule?: RefusalLogModule | null; + refusalLogModuleEdge?: RefusalLogModuleEdge | null; +} export interface DeleteRelationProvisionPayload { clientMutationId?: string | null; /** The `RelationProvision` that was deleted by this mutation. */ relationProvision?: RelationProvision | null; relationProvisionEdge?: RelationProvisionEdge | null; } +export interface DeleteRepositoryModulePayload { + clientMutationId?: string | null; + /** The `RepositoryModule` that was deleted by this mutation. */ + repositoryModule?: RepositoryModule | null; + repositoryModuleEdge?: RepositoryModuleEdge | null; +} export interface DeleteResourceModulePayload { clientMutationId?: string | null; /** The `ResourceModule` that was deleted by this mutation. */ @@ -15157,18 +16602,13 @@ export interface DeleteWebhookModulePayload { webhookModuleEdge?: WebhookModuleEdge | 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; + /** The logical bucket row that was queued for reconciliation. */ + bucketId: string; + bucketKey: string; + /** The reconciler job enqueued to provision this bucket. */ + jobId: string; + /** The physical bucket name already recorded, or null when reconciliation has not completed. */ + physicalName?: string | null; } export interface UpdateAgentModulePayload { /** The `AgentModule` that was updated by this mutation. */ @@ -15230,18 +16670,18 @@ export interface UpdateCatalogModulePayload { catalogModuleEdge?: CatalogModuleEdge | null; clientMutationId?: string | null; } +export interface UpdateClusterModulePayload { + clientMutationId?: string | null; + /** The `ClusterModule` that was updated by this mutation. */ + clusterModule?: ClusterModule | null; + clusterModuleEdge?: ClusterModuleEdge | null; +} export interface UpdateComputeLogModulePayload { clientMutationId?: string | null; /** The `ComputeLogModule` that was updated by this mutation. */ computeLogModule?: ComputeLogModule | null; computeLogModuleEdge?: ComputeLogModuleEdge | null; } -export interface UpdateConfigSecretsUserModulePayload { - clientMutationId?: string | null; - /** The `ConfigSecretsUserModule` that was updated by this mutation. */ - configSecretsUserModule?: ConfigSecretsUserModule | null; - configSecretsUserModuleEdge?: ConfigSecretsUserModuleEdge | null; -} export interface UpdateConnectedAccountsModulePayload { clientMutationId?: string | null; /** The `ConnectedAccountsModule` that was updated by this mutation. */ @@ -15398,12 +16838,6 @@ export interface UpdateHierarchyModulePayload { hierarchyModule?: HierarchyModule | null; hierarchyModuleEdge?: HierarchyModuleEdge | null; } -export interface UpdateHttpRouteModulePayload { - clientMutationId?: string | null; - /** The `HttpRouteModule` that was updated by this mutation. */ - httpRouteModule?: HttpRouteModule | null; - httpRouteModuleEdge?: HttpRouteModuleEdge | null; -} export interface UpdateI18NModulePayload { clientMutationId?: string | null; /** The `I18NModule` that was updated by this mutation. */ @@ -15416,6 +16850,12 @@ export interface UpdateIdentityProvidersModulePayload { identityProvidersModule?: IdentityProvidersModule | null; identityProvidersModuleEdge?: IdentityProvidersModuleEdge | null; } +export interface UpdateImageModulePayload { + clientMutationId?: string | null; + /** The `ImageModule` that was updated by this mutation. */ + imageModule?: ImageModule | null; + imageModuleEdge?: ImageModuleEdge | null; +} export interface UpdateInferenceLogModulePayload { clientMutationId?: string | null; /** The `InferenceLogModule` that was updated by this mutation. */ @@ -15440,6 +16880,12 @@ export interface UpdateIntegrationProvidersModulePayload { integrationProvidersModule?: IntegrationProvidersModule | null; integrationProvidersModuleEdge?: IntegrationProvidersModuleEdge | null; } +export interface UpdateInternalConfigModulePayload { + clientMutationId?: string | null; + /** The `InternalConfigModule` that was updated by this mutation. */ + internalConfigModule?: InternalConfigModule | null; + internalConfigModuleEdge?: InternalConfigModuleEdge | null; +} export interface UpdateInternalSecretsModulePayload { clientMutationId?: string | null; /** The `InternalSecretsModule` that was updated by this mutation. */ @@ -15452,12 +16898,24 @@ export interface UpdateInvitesModulePayload { invitesModule?: InvitesModule | null; invitesModuleEdge?: InvitesModuleEdge | null; } +export interface UpdateK8sAdmissionModulePayload { + clientMutationId?: string | null; + /** The `K8sAdmissionModule` that was updated by this mutation. */ + k8sAdmissionModule?: K8sAdmissionModule | null; + k8sAdmissionModuleEdge?: K8sAdmissionModuleEdge | null; +} export interface UpdateLimitsModulePayload { clientMutationId?: string | null; /** The `LimitsModule` that was updated by this mutation. */ limitsModule?: LimitsModule | null; limitsModuleEdge?: LimitsModuleEdge | null; } +export interface UpdateMachineModulePayload { + clientMutationId?: string | null; + /** The `MachineModule` that was updated by this mutation. */ + machineModule?: MachineModule | null; + machineModuleEdge?: MachineModuleEdge | null; +} export interface UpdateMembershipTypesModulePayload { clientMutationId?: string | null; /** The `MembershipTypesModule` that was updated by this mutation. */ @@ -15542,12 +17000,24 @@ export interface UpdateRealtimeModulePayload { realtimeModule?: RealtimeModule | null; realtimeModuleEdge?: RealtimeModuleEdge | null; } +export interface UpdateRefusalLogModulePayload { + clientMutationId?: string | null; + /** The `RefusalLogModule` that was updated by this mutation. */ + refusalLogModule?: RefusalLogModule | null; + refusalLogModuleEdge?: RefusalLogModuleEdge | null; +} export interface UpdateRelationProvisionPayload { clientMutationId?: string | null; /** The `RelationProvision` that was updated by this mutation. */ relationProvision?: RelationProvision | null; relationProvisionEdge?: RelationProvisionEdge | null; } +export interface UpdateRepositoryModulePayload { + clientMutationId?: string | null; + /** The `RepositoryModule` that was updated by this mutation. */ + repositoryModule?: RepositoryModule | null; + repositoryModuleEdge?: RepositoryModuleEdge | null; +} export interface UpdateResourceModulePayload { clientMutationId?: string | null; /** The `ResourceModule` that was updated by this mutation. */ @@ -15766,18 +17236,18 @@ export interface CatalogModuleEdge { /** The `CatalogModule` at the end of the edge. */ node?: CatalogModule | null; } +/** A `ClusterModule` edge in the connection. */ +export interface ClusterModuleEdge { + cursor?: string | null; + /** The `ClusterModule` at the end of the edge. */ + node?: ClusterModule | null; +} /** A `ComputeLogModule` edge in the connection. */ export interface ComputeLogModuleEdge { cursor?: string | null; /** The `ComputeLogModule` at the end of the edge. */ node?: ComputeLogModule | null; } -/** A `ConfigSecretsUserModule` edge in the connection. */ -export interface ConfigSecretsUserModuleEdge { - cursor?: string | null; - /** The `ConfigSecretsUserModule` at the end of the edge. */ - node?: ConfigSecretsUserModule | null; -} /** A `ConnectedAccountsModule` edge in the connection. */ export interface ConnectedAccountsModuleEdge { cursor?: string | null; @@ -15934,12 +17404,6 @@ export interface HierarchyModuleEdge { /** The `HierarchyModule` at the end of the edge. */ node?: HierarchyModule | null; } -/** A `HttpRouteModule` edge in the connection. */ -export interface HttpRouteModuleEdge { - cursor?: string | null; - /** The `HttpRouteModule` at the end of the edge. */ - node?: HttpRouteModule | null; -} /** A `I18NModule` edge in the connection. */ export interface I18NModuleEdge { cursor?: string | null; @@ -15952,6 +17416,12 @@ export interface IdentityProvidersModuleEdge { /** The `IdentityProvidersModule` at the end of the edge. */ node?: IdentityProvidersModule | null; } +/** A `ImageModule` edge in the connection. */ +export interface ImageModuleEdge { + cursor?: string | null; + /** The `ImageModule` at the end of the edge. */ + node?: ImageModule | null; +} /** A `InferenceLogModule` edge in the connection. */ export interface InferenceLogModuleEdge { cursor?: string | null; @@ -15976,6 +17446,12 @@ export interface IntegrationProvidersModuleEdge { /** The `IntegrationProvidersModule` at the end of the edge. */ node?: IntegrationProvidersModule | null; } +/** A `InternalConfigModule` edge in the connection. */ +export interface InternalConfigModuleEdge { + cursor?: string | null; + /** The `InternalConfigModule` at the end of the edge. */ + node?: InternalConfigModule | null; +} /** A `InternalSecretsModule` edge in the connection. */ export interface InternalSecretsModuleEdge { cursor?: string | null; @@ -15988,12 +17464,24 @@ export interface InvitesModuleEdge { /** The `InvitesModule` at the end of the edge. */ node?: InvitesModule | null; } +/** A `K8sAdmissionModule` edge in the connection. */ +export interface K8sAdmissionModuleEdge { + cursor?: string | null; + /** The `K8sAdmissionModule` at the end of the edge. */ + node?: K8sAdmissionModule | null; +} /** A `LimitsModule` edge in the connection. */ export interface LimitsModuleEdge { cursor?: string | null; /** The `LimitsModule` at the end of the edge. */ node?: LimitsModule | null; } +/** A `MachineModule` edge in the connection. */ +export interface MachineModuleEdge { + cursor?: string | null; + /** The `MachineModule` at the end of the edge. */ + node?: MachineModule | null; +} /** A `MembershipTypesModule` edge in the connection. */ export interface MembershipTypesModuleEdge { cursor?: string | null; @@ -16078,12 +17566,24 @@ export interface RealtimeModuleEdge { /** The `RealtimeModule` at the end of the edge. */ node?: RealtimeModule | null; } +/** A `RefusalLogModule` edge in the connection. */ +export interface RefusalLogModuleEdge { + cursor?: string | null; + /** The `RefusalLogModule` at the end of the edge. */ + node?: RefusalLogModule | null; +} /** A `RelationProvision` edge in the connection. */ export interface RelationProvisionEdge { cursor?: string | null; /** The `RelationProvision` at the end of the edge. */ node?: RelationProvision | null; } +/** A `RepositoryModule` edge in the connection. */ +export interface RepositoryModuleEdge { + cursor?: string | null; + /** The `RepositoryModule` at the end of the edge. */ + node?: RepositoryModule | null; +} /** A `ResourceModule` edge in the connection. */ export interface ResourceModuleEdge { cursor?: string | null; @@ -16316,10 +17816,18 @@ export interface MetaSearch { } /** Storage metadata for a table */ export interface MetaStorage { + /** GraphQL type name of the plane's buckets table */ + bucketsType: string; + /** Computed download-URL field on the files type; null on the buckets side */ + downloadUrlField?: string | null; + /** GraphQL type name of the plane's files table */ + filesType: string; /** Whether this table is a storage buckets table */ isBucketsTable: boolean; /** Whether this table is a storage files table */ isFilesTable: boolean; + /** The plane's GraphQL upload surface */ + upload: MetaStorageUpload; } /** Information about a unique constraint */ export interface MetaUniqueConstraint { @@ -16402,6 +17910,27 @@ export interface MetaSearchConfig { /** JSON-encoded per-adapter score weights */ weights?: string | null; } +/** The GraphQL upload surface of a storage plane, derived from the registry facts the presigned-url plugin emits from */ +export interface MetaStorageUpload { + /** Per-file input type inside the bulk input */ + bulkFileInputType: string; + /** Per-file payload type inside the bulk payload */ + bulkFilePayloadType: string; + /** Input type of the bulk upload mutation */ + bulkInputType: string; + /** Root mutation field for bulk upload */ + bulkMutation: string; + /** Payload type of the bulk upload mutation */ + bulkPayloadType: string; + /** Input type of the single upload mutation */ + inputType: string; + /** Root mutation field for single-file upload (e.g. uploadAppFile) */ + mutation: string; + /** Payload type of the single upload mutation */ + payloadType: string; + /** Whether the upload input requires ownerId (entity-keyed plane) */ + requiresOwnerId: boolean; +} /** 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. */ export interface MetaScalarEncoding { /** For 'vector': declared length, else null. */ diff --git a/sdk/constructive-react/src/modules/types.ts b/sdk/constructive-react/src/modules/types.ts index eea5320eec..5bd214d1f5 100644 --- a/sdk/constructive-react/src/modules/types.ts +++ b/sdk/constructive-react/src/modules/types.ts @@ -9,11 +9,17 @@ export interface AgentModule { apiName: string | null; databaseId: string | null; defaultCapabilities: string[] | null; + defaultVisibility: string | null; entityField: string | null; entityTableId: string | null; + eventTableId: string | null; + eventTableName: string | null; hasAgents: boolean | null; + hasAttachments: boolean | null; hasPlans: boolean | null; + hasRepositoryResources: boolean | null; hasResources: boolean | null; + hasRuns: boolean | null; id: string | null; messageTableId: string | null; messageTableName: string | null; @@ -30,16 +36,21 @@ export interface AgentModule { promptsTableName: string | null; provisions: unknown | null; publicSchemaName: string | null; + resourceRepositoryTableId: string | null; + resourceRepositoryTableName: string | null; resourceTableId: string | null; resourceTableName: string | null; resources: unknown | null; + runTableId: string | null; + runTableName: string | null; schemaId: string | null; scope: string | null; - shared: boolean | null; taskTableId: string | null; taskTableName: string | null; threadTableId: string | null; threadTableName: string | null; + workspaceTableId: string | null; + workspaceTableName: string | null; } export interface ApiSurfaceModule { apiName: string | null; @@ -69,6 +80,7 @@ export interface AppModule { apiName: string | null; appComponentsTableId: string | null; appComponentsTableName: string | null; + appStoreIdentitiesTableName: string | null; appsTableId: string | null; appsTableName: string | null; catalogModuleId: string | null; @@ -118,9 +130,12 @@ export interface BillingModule { sweepExpiredSubscriptionsFunction: string | null; } export interface BillingProviderModule { + activatePlanSubscriptionFunction: string | null; apiName: string | null; billingCustomersTableId: string | null; billingCustomersTableName: string | null; + billingDisputesTableId: string | null; + billingDisputesTableName: string | null; billingInvoicesTableId: string | null; billingInvoicesTableName: string | null; billingPricesTableId: string | null; @@ -134,6 +149,12 @@ export interface BillingProviderModule { billingWebhookEventsTableId: string | null; billingWebhookEventsTableName: string | null; databaseId: string | null; + getActivePlanPricingFunction: string | null; + getBillingCustomerFunction: string | null; + getBillingPriceFunction: string | null; + getBillingProductFunction: string | null; + getBillingSubscriptionFunction: string | null; + getFallbackFreePlanFunction: string | null; id: string | null; listPendingUsageSyncFunction: string | null; markUsageSyncedFunction: string | null; @@ -144,9 +165,15 @@ export interface BillingProviderModule { processBillingEventFunction: string | null; productsTableId: string | null; provider: string | null; + recordDisputeFunction: string | null; recordRefundFunction: string | null; schemaId: string | null; subscriptionsTableId: string | null; + sweepOverdueSubscriptionsFunction: string | null; + upsertBillingCustomerFunction: string | null; + upsertBillingPriceFunction: string | null; + upsertBillingProductFunction: string | null; + upsertBillingSubscriptionFunction: string | null; upsertInvoiceFunction: string | null; } export interface Blueprint { @@ -226,6 +253,8 @@ export interface CatalogModule { apiName: string | null; apisTableId: string | null; apisTableName: string | null; + appStoreIdentitiesTableId: string | null; + appStoreIdentitiesTableName: string | null; appsTableId: string | null; appsTableName: string | null; bindingsTableId: string | null; @@ -240,12 +269,18 @@ export interface CatalogModule { functionsTableId: string | null; functionsTableName: string | null; id: string | null; + imagesTableId: string | null; + imagesTableName: string | null; + managedDomainsTableId: string | null; + managedDomainsTableName: string | null; namespacesTableId: string | null; namespacesTableName: string | null; policies: unknown | null; privateApiName: string | null; provisions: unknown | null; publicSchemaName: string | null; + redirectsTableId: string | null; + redirectsTableName: string | null; resourceDefinitionsTableId: string | null; resourceDefinitionsTableName: string | null; resourceInstallationsTableId: string | null; @@ -265,37 +300,55 @@ export interface CatalogModule { sitesWebConfigTableId: string | null; sitesWebConfigTableName: string | null; } -export interface ComputeLogModule { - actorFkTableId: string | null; +export interface ClusterModule { apiName: string | null; - computeLogTableId: string | null; - computeLogTableName: string | null; - databaseId: string | null; + clusterEventsTableId: string | null; + clusterEventsTableName: string | null; + clustersTableId: string | null; + clustersTableName: string | null; + databaseId: string | null; + databasePlacementsTableId: string | null; + databasePlacementsTableName: string | null; + databaseServersTableId: string | null; + databaseServersTableName: string | null; + defaultCapabilities: string[] | null; entityField: string | null; - entityFkTableId: string | null; id: string | null; - interval: string | null; + partitionInterval: string | null; + physicalDatabasesTableId: string | null; + physicalDatabasesTableName: string | null; + policies: unknown | null; prefix: string | null; premake: number | null; privateApiName: string | null; privateSchemaId: string | null; privateSchemaName: string | null; + provisions: unknown | null; publicSchemaName: string | null; retention: string | null; schemaId: string | null; scope: string | null; - usageSummaryTableId: string | null; - usageSummaryTableName: string | null; } -export interface ConfigSecretsUserModule { +export interface ComputeLogModule { apiName: string | null; + computeLogTableId: string | null; + computeLogTableName: string | null; databaseId: string | null; entityField: string | null; id: string | null; + interval: string | null; + prefix: string | null; + premake: number | null; privateApiName: string | null; + privateSchemaId: string | null; + privateSchemaName: string | null; + publicSchemaName: string | null; + retention: string | null; + rollupFunctionName: string | null; schemaId: string | null; - tableId: string | null; - tableName: string | null; + scope: string | null; + usageSummaryTableId: string | null; + usageSummaryTableName: string | null; } export interface ConnectedAccountsModule { apiName: string | null; @@ -370,6 +423,7 @@ export interface DataCapabilitiesField { } export interface DatabaseProvisionModule { async: boolean | null; + bootstrapActorId: string | null; bootstrapError: string | null; bootstrapStatus: string | null; bootstrapUser: boolean | null; @@ -745,6 +799,7 @@ export interface FunctionModule { schedulesTableId: string | null; schemaId: string | null; scope: string | null; + storageKey: string | null; } export interface GraphExecutionModule { apiName: string | null; @@ -816,60 +871,60 @@ export interface HierarchyModule { sprtTableName: string | null; usersTableId: string | null; } -export interface HttpRouteModule { +export interface I18NModule { apiName: string | null; databaseId: string | null; - defaultCapabilities: string[] | null; - entityField: string | null; - entityTableId: string | null; - functionModuleId: string | null; - httpRoutesTableId: string | null; - httpRoutesTableName: string | null; id: string | null; - policies: unknown | null; - prefix: string | null; privateApiName: string | null; privateSchemaId: string | null; - privateSchemaName: string | null; - provisions: unknown | null; - publicSchemaName: string | null; - resolverFunctionName: string | null; - resourceModuleId: string | null; schemaId: string | null; - scope: string | null; - storageModuleId: string | null; + settingsTableId: string | null; } -export interface I18NModule { +export interface IdentityProvidersModule { apiName: string | null; databaseId: string | null; + entityField: string | null; + entityTableId: string | null; id: string | null; + prefix: string | null; privateApiName: string | null; privateSchemaId: string | null; + privateSchemaName: string | null; + publicSchemaName: string | null; schemaId: string | null; - settingsTableId: string | null; + scope: string | null; + tableId: string | null; + tableName: string | null; } -export interface IdentityProvidersModule { +export interface ImageModule { apiName: string | null; databaseId: string | null; + defaultCapabilities: string[] | null; entityField: string | null; entityTableId: string | null; id: string | null; + imageGrantsTableId: string | null; + imageGrantsTableName: string | null; + imagesTableId: string | null; + imagesTableName: string | null; + policies: unknown | null; prefix: string | null; privateApiName: string | null; privateSchemaId: string | null; privateSchemaName: string | null; + provisions: unknown | null; publicSchemaName: string | null; + registriesTableId: string | null; + registriesTableName: string | null; + registryGrantsTableId: string | null; + registryGrantsTableName: string | null; schemaId: string | null; scope: string | null; - tableId: string | null; - tableName: string | null; } export interface InferenceLogModule { - actorFkTableId: string | null; apiName: string | null; databaseId: string | null; entityField: string | null; - entityFkTableId: string | null; id: string | null; inferenceLogTableId: string | null; inferenceLogTableName: string | null; @@ -881,6 +936,7 @@ export interface InferenceLogModule { privateSchemaName: string | null; publicSchemaName: string | null; retention: string | null; + rollupFunctionName: string | null; schemaId: string | null; scope: string | null; usageSummaryTableId: string | null; @@ -938,6 +994,24 @@ export interface IntegrationProvidersModule { tableId: string | null; tableName: string | null; } +export interface InternalConfigModule { + apiName: string | null; + databaseId: string | null; + entityField: string | null; + entityTableId: string | null; + id: string | null; + internalConfigTableId: string | null; + internalConfigTableName: string | null; + policies: unknown | null; + prefix: string | null; + privateApiName: string | null; + privateSchemaId: string | null; + privateSchemaName: string | null; + provisions: unknown | null; + publicSchemaName: string | null; + schemaId: string | null; + scope: string | null; +} export interface InternalSecretsModule { apiName: string | null; databaseId: string | null; @@ -977,6 +1051,26 @@ export interface InvitesModule { submitInviteCodeFunction: string | null; usersTableId: string | null; } +export interface K8sAdmissionModule { + apiName: string | null; + createdAt: string | null; + databaseId: string | null; + entityTableId: string | null; + id: string | null; + k8sResourceKindsTableId: string | null; + k8sSpecRulesTableId: 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 LimitsModule { actorTableId: string | null; aggregateTableId: string | null; @@ -1017,6 +1111,32 @@ export interface LimitsModule { tableId: string | null; tableName: string | null; } +export interface MachineModule { + apiName: string | null; + databaseId: string | null; + defaultCapabilities: string[] | null; + entityField: string | null; + entityTableId: string | null; + id: string | null; + machineMessagesTableId: string | null; + machineMessagesTableName: string | null; + machineSessionsTableId: string | null; + machineSessionsTableName: string | null; + machinesTableId: string | null; + machinesTableName: string | null; + partitionInterval: string | null; + policies: unknown | null; + prefix: string | null; + premake: number | null; + privateApiName: string | null; + privateSchemaId: string | null; + privateSchemaName: string | null; + provisions: unknown | null; + publicSchemaName: string | null; + retention: string | null; + schemaId: string | null; + scope: string | null; +} export interface MembershipTypesModule { databaseId: string | null; id: string | null; @@ -1075,6 +1195,7 @@ export interface MerkleStoreModule { createdAt: string | null; databaseId: string | null; entityField: string | null; + entityTableId: string | null; functionPrefix: string | null; id: string | null; objectTableId: string | null; @@ -1159,12 +1280,17 @@ export interface PagesModule { pagesTableId: string | null; policies: unknown | null; prefix: string | null; + previewCommitFunctionName: string | null; + previewSetFunctionName: string | null; + previewTokenMintFunctionName: string | null; + previewTokenVerifierFunctionName: string | null; privateApiName: string | null; privateSchemaId: string | null; privateSchemaName: string | null; provisions: unknown | null; publicSchemaId: string | null; publicSchemaName: string | null; + releaseManifestFunctionName: string | null; scope: string | null; siteSurfaceModuleId: string | null; sitesTableId: string | null; @@ -1218,10 +1344,12 @@ export interface PrincipalAuthModule { principalScopeOverridesTableId: string | null; principalsTableId: string | null; principalsTableName: string | null; + privateSchemaId: string | null; revokeOrgApiKeyFunction: string | null; schemaId: string | null; sessionCredentialsTableId: string | null; sessionsTableId: string | null; + sweepExpiredPrincipalsFunction: string | null; usersTableId: string | null; } export interface ProfilesModule { @@ -1299,6 +1427,31 @@ export interface RealtimeModule { sourceRegistryTableId: string | null; subscriptionsSchemaId: string | null; } +export interface RefusalLogModule { + apiName: string | null; + databaseId: string | null; + entityField: string | null; + id: string | null; + logInterval: string | null; + logPremake: number | null; + logRetention: string | null; + logTableId: string | null; + logTableName: string | null; + prefix: string | null; + privateApiName: string | null; + privateSchemaId: string | null; + privateSchemaName: string | null; + publicSchemaName: string | null; + recordRefusalsFunction: string | null; + rollupRefusalUsageSummaryFunction: string | null; + schemaId: string | null; + scope: string | null; + summaryInterval: string | null; + summaryPremake: number | null; + summaryRetention: string | null; + summaryTableId: string | null; + summaryTableName: string | null; +} export interface RelationProvision { apiRequired: boolean | null; createIndex: boolean | null; @@ -1325,8 +1478,52 @@ export interface RelationProvision { targetTableId: string | null; useCompositeKey: boolean | null; } +export interface RepositoryModule { + apiName: string | null; + buildStepsTableId: string | null; + buildStepsTableName: string | null; + buildsTableId: string | null; + buildsTableName: string | null; + databaseId: string | null; + defaultCapabilities: string[] | null; + entityField: string | null; + entityTableId: string | null; + hasAttachments: boolean | null; + hasBuilds: boolean | null; + id: string | null; + policies: unknown | null; + prefix: string | null; + privateApiName: string | null; + privateSchemaId: string | null; + privateSchemaName: string | null; + proposalCommentsTableId: string | null; + proposalCommentsTableName: string | null; + proposalFileViewsTableId: string | null; + proposalFileViewsTableName: string | null; + proposalReactionsTableId: string | null; + proposalReactionsTableName: string | null; + proposalReviewsTableId: string | null; + proposalReviewsTableName: string | null; + proposalsTableId: string | null; + proposalsTableName: string | null; + provisions: unknown | null; + publicSchemaName: string | null; + repositoriesTableId: string | null; + repositoriesTableName: string | null; + repositoryEventsTableId: string | null; + repositoryEventsTableName: string | null; + repositoryRequiredChecksTableId: string | null; + repositoryRequiredChecksTableName: string | null; + schemaId: string | null; + scope: string | null; + search: unknown | null; + workflowsTableId: string | null; + workflowsTableName: string | null; +} export interface ResourceModule { apiName: string | null; + builderBindingsTableId: string | null; + builderBindingsTableName: string | null; databaseId: string | null; defaultCapabilities: string[] | null; entityField: string | null; @@ -1342,6 +1539,8 @@ export interface ResourceModule { privateSchemaName: string | null; provisions: unknown | null; publicSchemaName: string | null; + registryBindingsTableId: string | null; + registryBindingsTableName: string | null; requirementsStateViewName: string | null; resolvedRequirementsViewName: string | null; resourceBillingRollupFunction: string | null; @@ -1398,6 +1597,8 @@ export interface RouteModule { privateSchemaName: string | null; provisions: unknown | null; publicSchemaName: string | null; + redirectsTableId: string | null; + redirectsTableName: string | null; resolverFunctionName: string | null; routeBindingsTableId: string | null; routeBindingsTableName: string | null; @@ -1405,6 +1606,8 @@ export interface RouteModule { routesTableName: string | null; schemaId: string | null; scope: string | null; + servingSiteField: string | null; + storageKey: string | null; } export interface ScopeTypesModule { databaseId: string | null; @@ -1418,8 +1621,10 @@ export interface SecureTableProvision { fields: unknown[] | null; grants: unknown | null; id: string | null; + module: unknown | null; nodes: unknown | null; outFields: string[] | null; + owns: unknown | null; policies: unknown | null; schemaId: string | null; tableId: string | null; @@ -1474,19 +1679,20 @@ export interface SiteSurfaceModule { siteMetadataTableName: string | null; siteModulesTableId: string | null; siteModulesTableName: string | null; + siteReleasesTableId: string | null; + siteReleasesTableName: string | null; siteThemesTableId: string | null; siteThemesTableName: string | null; siteWebConfigTableId: string | null; siteWebConfigTableName: string | null; sitesTableId: string | null; sitesTableName: string | null; + storageKey: string | null; } export interface StorageLogModule { - actorFkTableId: string | null; apiName: string | null; databaseId: string | null; entityField: string | null; - entityFkTableId: string | null; id: string | null; interval: string | null; prefix: string | null; @@ -1496,6 +1702,7 @@ export interface StorageLogModule { privateSchemaName: string | null; publicSchemaName: string | null; retention: string | null; + rollupFunctionName: string | null; schemaId: string | null; scope: string | null; storageLogTableId: string | null; @@ -1528,6 +1735,7 @@ export interface StorageModule { hasPathShares: boolean | null; hasVersioning: boolean | null; id: string | null; + key: string | null; maxBulkFiles: number | null; maxBulkTotalSize: string | null; maxFilenameLength: number | null; @@ -1547,11 +1755,9 @@ export interface StorageModule { uploadUrlExpirySeconds: number | null; } export interface TransferLogModule { - actorFkTableId: string | null; apiName: string | null; databaseId: string | null; entityField: string | null; - entityFkTableId: string | null; id: string | null; interval: string | null; prefix: string | null; @@ -1561,6 +1767,7 @@ export interface TransferLogModule { privateSchemaName: string | null; publicSchemaName: string | null; retention: string | null; + rollupFunctionName: string | null; schemaId: string | null; scope: string | null; transferLogTableId: string | null; @@ -1581,8 +1788,10 @@ export interface UserAuthModule { forgotPasswordFunction: string | null; id: string | null; privateApiName: string | null; + privateSchemaId: string | null; requestCrossOriginTokenFunction: string | null; resetPasswordFunction: string | null; + revokeSessionTreeFunction: string | null; schemaId: string | null; secretsTableId: string | null; sendAccountDeletionEmailFunction: string | null; @@ -1594,6 +1803,7 @@ export interface UserAuthModule { signInFunction: string | null; signOutFunction: string | null; signUpFunction: string | null; + sweepExpiredSessionsFunction: string | null; usersTableId: string | null; verifyEmailFunction: string | null; verifyPasswordFunction: string | null; diff --git a/sdk/constructive-react/src/objects/hooks/README.md b/sdk/constructive-react/src/objects/hooks/README.md index 1bdfb7aebb..ddf1864c9e 100644 --- a/sdk/constructive-react/src/objects/hooks/README.md +++ b/sdk/constructive-react/src/objects/hooks/README.md @@ -57,10 +57,11 @@ function App() { | `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. | +| `useProvisionBucketMutation` | Mutation | Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. | | `useSetAndCommitMutation` | Mutation | setAndCommit | | `useSetDataAtPathMutation` | Mutation | setDataAtPath | | `useSetManyAndCommitMutation` | Mutation | setManyAndCommit | @@ -203,10 +204,11 @@ insertNodesAtPaths ### `useProvisionBucketMutation` -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. +Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. - **Type:** mutation - **Arguments:** diff --git a/sdk/constructive-react/src/objects/orm/README.md b/sdk/constructive-react/src/objects/orm/README.md index 0f19488376..d56b4a6254 100644 --- a/sdk/constructive-react/src/objects/orm/README.md +++ b/sdk/constructive-react/src/objects/orm/README.md @@ -245,10 +245,11 @@ const result = await db.mutation.insertNodesAtPaths({ input: ' + +

+ + + +## Overview + +- **Tables:** 3 +- **Custom queries:** 0 +- **Custom mutations:** 2 + +**Generators:** ORM, React Query + +## Modules + +### ORM Client (`./orm`) + +Prisma-like ORM client for programmatic GraphQL access. + +```typescript +import { createClient } from './orm'; + +const db = createClient({ + endpoint: 'https://api.example.com/graphql', +}); +``` + +See [orm/README.md](./orm/README.md) for full API reference. + +### React Query Hooks (`./hooks`) + +Type-safe React Query hooks for data fetching and mutations. + +```typescript +import { configure } from './hooks'; +import { useCarsQuery } from './hooks'; + +configure({ endpoint: 'https://api.example.com/graphql' }); +``` + +See [hooks/README.md](./hooks/README.md) for full hook reference. diff --git a/sdk/constructive-react/src/remote/hooks/README.md b/sdk/constructive-react/src/remote/hooks/README.md new file mode 100644 index 0000000000..ead1435638 --- /dev/null +++ b/sdk/constructive-react/src/remote/hooks/README.md @@ -0,0 +1,148 @@ +# React Query Hooks + +

+ +

+ + + +## Setup + +```typescript +import { QueryClient, QueryClientProvider } from '@tanstack/react-query'; +import { configure } from './hooks'; + +configure({ + endpoint: 'https://api.example.com/graphql', + headers: { Authorization: 'Bearer ' }, +}); + +const queryClient = new QueryClient(); + +function App() { + return ( + + + + ); +} +``` + +## Hooks + +| Hook | Type | Description | +|------|------|-------------| +| `useMachinesQuery` | Query | Computers enrolled for remote control, one row per database enrollment | +| `useMachineQuery` | Query | Computers enrolled for remote control, one row per database enrollment | +| `useCreateMachineMutation` | Mutation | Computers enrolled for remote control, one row per database enrollment | +| `useUpdateMachineMutation` | Mutation | Computers enrolled for remote control, one row per database enrollment | +| `useDeleteMachineMutation` | Mutation | Computers enrolled for remote control, one row per database enrollment | +| `useMachineMessagesQuery` | Query | Partitioned append-only ledger of session input, output and lifecycle | +| `useMachineMessageQuery` | Query | Partitioned append-only ledger of session input, output and lifecycle | +| `useCreateMachineMessageMutation` | Mutation | Partitioned append-only ledger of session input, output and lifecycle | +| `useUpdateMachineMessageMutation` | Mutation | Partitioned append-only ledger of session input, output and lifecycle | +| `useDeleteMachineMessageMutation` | Mutation | Partitioned append-only ledger of session input, output and lifecycle | +| `useMachineSessionsQuery` | Query | Command or terminal sessions running on an enrolled machine | +| `useMachineSessionQuery` | Query | Command or terminal sessions running on an enrolled machine | +| `useCreateMachineSessionMutation` | Mutation | Command or terminal sessions running on an enrolled machine | +| `useUpdateMachineSessionMutation` | Mutation | Command or terminal sessions running on an enrolled machine | +| `useDeleteMachineSessionMutation` | Mutation | Command or terminal sessions running on an enrolled machine | +| `useMachinesEnrollMutation` | Mutation | machinesEnroll | +| `useProvisionBucketMutation` | Mutation | Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. | + +## Table Hooks + +### Machine + +```typescript +// List all machines +const { data, isLoading } = useMachinesQuery({ + selection: { fields: { createdAt: true, createdBy: true, createdByPrincipal: true, entityId: true, facts: true, id: true, isShared: true, label: true, lastSeenAt: true, ownerId: true, policy: true, principalId: true, revokedAt: true, tokenHash: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, +}); + +// Get one machine +const { data: item } = useMachineQuery({ + id: '', + selection: { fields: { createdAt: true, createdBy: true, createdByPrincipal: true, entityId: true, facts: true, id: true, isShared: true, label: true, lastSeenAt: true, ownerId: true, policy: true, principalId: true, revokedAt: true, tokenHash: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, +}); + +// Create a machine +const { mutate: create } = useCreateMachineMutation({ + selection: { fields: { id: true } }, +}); +create({ createdBy: '', createdByPrincipal: '', entityId: '', facts: '', isShared: '', label: '', lastSeenAt: '', ownerId: '', policy: '', principalId: '', revokedAt: '', tokenHash: '', updatedBy: '', updatedByPrincipal: '' }); +``` + +### MachineMessage + +```typescript +// List all machineMessages +const { data, isLoading } = useMachineMessagesQuery({ + selection: { fields: { actorId: true, content: true, createdByPrincipal: true, entityId: true, id: true, kind: true, ownerId: true, recordedAt: true, seq: true, sessionId: true } }, +}); + +// Get one machineMessage +const { data: item } = useMachineMessageQuery({ + id: '', + selection: { fields: { actorId: true, content: true, createdByPrincipal: true, entityId: true, id: true, kind: true, ownerId: true, recordedAt: true, seq: true, sessionId: true } }, +}); + +// Create a machineMessage +const { mutate: create } = useCreateMachineMessageMutation({ + selection: { fields: { id: true } }, +}); +create({ actorId: '', content: '', createdByPrincipal: '', entityId: '', kind: '', ownerId: '', recordedAt: '', seq: '', sessionId: '' }); +``` + +### MachineSession + +```typescript +// List all machineSessions +const { data, isLoading } = useMachineSessionsQuery({ + selection: { fields: { agentMode: true, agentSessionRef: true, args: true, cols: true, command: true, createdAt: true, createdBy: true, createdByPrincipal: true, cwd: true, endedAt: true, entityId: true, env: true, exitCode: true, id: true, interactive: true, lastActivityAt: true, lastSeq: true, machineId: true, metadata: true, ownerId: true, pid: true, runId: true, startedAt: true, state: true, termRows: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, +}); + +// Get one machineSession +const { data: item } = useMachineSessionQuery({ + id: '', + selection: { fields: { agentMode: true, agentSessionRef: true, args: true, cols: true, command: true, createdAt: true, createdBy: true, createdByPrincipal: true, cwd: true, endedAt: true, entityId: true, env: true, exitCode: true, id: true, interactive: true, lastActivityAt: true, lastSeq: true, machineId: true, metadata: true, ownerId: true, pid: true, runId: true, startedAt: true, state: true, termRows: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, +}); + +// Create a machineSession +const { mutate: create } = useCreateMachineSessionMutation({ + selection: { fields: { id: true } }, +}); +create({ agentMode: '', agentSessionRef: '', args: '', cols: '', command: '', createdBy: '', createdByPrincipal: '', cwd: '', endedAt: '', entityId: '', env: '', exitCode: '', interactive: '', lastActivityAt: '', lastSeq: '', machineId: '', metadata: '', ownerId: '', pid: '', runId: '', startedAt: '', state: '', termRows: '', updatedBy: '', updatedByPrincipal: '' }); +``` + +## Custom Operation Hooks + +### `useMachinesEnrollMutation` + +machinesEnroll + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | MachinesEnrollInput (required) | + +### `useProvisionBucketMutation` + +Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | ProvisionBucketInput (required) | diff --git a/sdk/constructive-react/src/remote/hooks/client.ts b/sdk/constructive-react/src/remote/hooks/client.ts new file mode 100644 index 0000000000..47b9aa63f4 --- /dev/null +++ b/sdk/constructive-react/src/remote/hooks/client.ts @@ -0,0 +1,42 @@ +/** + * ORM client wrapper for React Query hooks + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { createClient } from '../orm'; +import type { OrmClientConfig } from '../orm/client'; + +export type { OrmClientConfig } from '../orm/client'; +export type { GraphQLAdapter, GraphQLError, QueryResult } from '../orm/client'; +export { GraphQLRequestError } from '../orm/client'; + +type OrmClientInstance = ReturnType; +let client: OrmClientInstance | null = null; + +/** + * Configure the ORM client for React Query hooks + * + * @example + * ```ts + * import { configure } from './generated/hooks'; + * + * configure({ + * endpoint: 'https://api.example.com/graphql', + * headers: { Authorization: 'Bearer ' }, + * }); + * ``` + */ +export function configure(config: OrmClientConfig): void { + client = createClient(config); +} + +/** + * Get the configured ORM client instance + * @throws Error if configure() has not been called + */ +export function getClient(): OrmClientInstance { + if (!client) { + throw new Error('ORM client not configured. Call configure() before using hooks.'); + } + return client; +} diff --git a/sdk/constructive-react/src/remote/hooks/index.ts b/sdk/constructive-react/src/remote/hooks/index.ts new file mode 100644 index 0000000000..01e750a310 --- /dev/null +++ b/sdk/constructive-react/src/remote/hooks/index.ts @@ -0,0 +1,39 @@ +/** + * GraphQL SDK + * @generated by @constructive-io/graphql-codegen + * + * Tables: Machine, MachineMessage, MachineSession + * + * Usage: + * + * 1. Configure the client: + * ```ts + * import { configure } from './generated'; + * + * configure({ + * endpoint: 'https://api.example.com/graphql', + * headers: { Authorization: 'Bearer ' }, + * }); + * ``` + * + * 2. Use the hooks: + * ```tsx + * import { useCarsQuery, useCreateCarMutation } from './generated'; + * + * function MyComponent() { + * const { data, isLoading } = useCarsQuery({ + * selection: { fields: { id: true }, first: 10 }, + * }); + * const { mutate } = useCreateCarMutation({ + * selection: { fields: { id: true } }, + * }); + * // ... + * } + * ``` + */ +export * from './client'; +export * from './query-keys'; +export * from './mutation-keys'; +export * from './invalidation'; +export * from './queries'; +export * from './mutations'; diff --git a/sdk/constructive-react/src/remote/hooks/invalidation.ts b/sdk/constructive-react/src/remote/hooks/invalidation.ts new file mode 100644 index 0000000000..3cddc8b8fc --- /dev/null +++ b/sdk/constructive-react/src/remote/hooks/invalidation.ts @@ -0,0 +1,120 @@ +/** + * Cache invalidation helpers + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +// ============================================================================ +// Type-safe cache invalidation utilities +// +// Features: +// - Simple invalidation helpers per entity +// - Cascade invalidation for parent-child relationships +// - Remove helpers for delete operations +// ============================================================================ + +import type { QueryClient } from '@tanstack/react-query'; +import { machineKeys, machineMessageKeys, machineSessionKeys } from './query-keys'; +/** +// ============================================================================ +// Invalidation Helpers +// ============================================================================ + + * Type-safe query invalidation helpers + * + * @example + * ```ts + * // Invalidate all user queries + * invalidate.user.all(queryClient); + * + * // Invalidate user lists + * invalidate.user.lists(queryClient); + * + * // Invalidate specific user + * invalidate.user.detail(queryClient, userId); + * ``` + */ +export const invalidate = { + /** Invalidate machine queries */ machine: { + /** Invalidate all machine queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: machineKeys.all, + }), + /** Invalidate machine list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: machineKeys.lists(), + }), + /** Invalidate a specific machine */ detail: (queryClient: QueryClient, id: string | number) => + queryClient.invalidateQueries({ + queryKey: machineKeys.detail(id), + }), + }, + /** Invalidate machineMessage queries */ machineMessage: { + /** Invalidate all machineMessage queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: machineMessageKeys.all, + }), + /** Invalidate machineMessage list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: machineMessageKeys.lists(), + }), + /** Invalidate a specific machineMessage */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: machineMessageKeys.detail(id), + }), + }, + /** Invalidate machineSession queries */ machineSession: { + /** Invalidate all machineSession queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: machineSessionKeys.all, + }), + /** Invalidate machineSession list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: machineSessionKeys.lists(), + }), + /** Invalidate a specific machineSession */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: machineSessionKeys.detail(id), + }), + }, +} as const; +/** + +// ============================================================================ +// Remove Helpers (for delete operations) +// ============================================================================ + + * Remove queries from cache (for delete operations) + * + * Use these when an entity is deleted to remove it from cache + * instead of just invalidating (which would trigger a refetch). + */ +export const remove = { + /** Remove machine from cache */ machine: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: machineKeys.detail(id), + }); + }, + /** Remove machineMessage from cache */ machineMessage: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: machineMessageKeys.detail(id), + }); + }, + /** Remove machineSession from cache */ machineSession: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: machineSessionKeys.detail(id), + }); + }, +} as const; diff --git a/sdk/constructive-react/src/remote/hooks/mutation-keys.ts b/sdk/constructive-react/src/remote/hooks/mutation-keys.ts new file mode 100644 index 0000000000..b8bc9f3cfe --- /dev/null +++ b/sdk/constructive-react/src/remote/hooks/mutation-keys.ts @@ -0,0 +1,89 @@ +/** + * Centralized mutation key factory + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +// ============================================================================ +// Mutation keys for tracking in-flight mutations +// +// Benefits: +// - Track mutation state with useIsMutating +// - Implement optimistic updates with proper rollback +// - Deduplicate identical mutations +// - Coordinate related mutations +// ============================================================================ + +// ============================================================================ +// Entity Mutation Keys +// ============================================================================ + +export const machineMutationKeys = { + /** All machine mutation keys */ all: ['mutation', 'machine'] as const, + /** Create machine mutation key */ create: () => ['mutation', 'machine', 'create'] as const, + /** Update machine mutation key */ update: (id: string | number) => + ['mutation', 'machine', 'update', id] as const, + /** Delete machine mutation key */ delete: (id: string | number) => + ['mutation', 'machine', 'delete', id] as const, +} as const; +export const machineMessageMutationKeys = { + /** All machineMessage mutation keys */ all: ['mutation', 'machinemessage'] as const, + /** Create machineMessage mutation key */ create: () => + ['mutation', 'machinemessage', 'create'] as const, + /** Update machineMessage mutation key */ update: (id: string | number) => + ['mutation', 'machinemessage', 'update', id] as const, + /** Delete machineMessage mutation key */ delete: (id: string | number) => + ['mutation', 'machinemessage', 'delete', id] as const, +} as const; +export const machineSessionMutationKeys = { + /** All machineSession mutation keys */ all: ['mutation', 'machinesession'] as const, + /** Create machineSession mutation key */ create: () => + ['mutation', 'machinesession', 'create'] as const, + /** Update machineSession mutation key */ update: (id: string | number) => + ['mutation', 'machinesession', 'update', id] as const, + /** Delete machineSession mutation key */ delete: (id: string | number) => + ['mutation', 'machinesession', 'delete', id] as const, +} as const; + +// ============================================================================ +// Custom Mutation Keys +// ============================================================================ + +export const customMutationKeys = { + /** Mutation key for machinesEnroll */ machinesEnroll: (identifier?: string) => + identifier + ? (['mutation', 'machinesEnroll', identifier] as const) + : (['mutation', 'machinesEnroll'] as const), + /** Mutation key for provisionBucket */ provisionBucket: (identifier?: string) => + identifier + ? (['mutation', 'provisionBucket', identifier] as const) + : (['mutation', 'provisionBucket'] as const), +} as const; +/** + +// ============================================================================ +// Unified Mutation Key Store +// ============================================================================ + + * Unified mutation key store + * + * Use this for tracking in-flight mutations with useIsMutating. + * + * @example + * ```ts + * import { useIsMutating } from '@tanstack/react-query'; + * import { mutationKeys } from './generated'; + * + * // Check if any user mutations are in progress + * const isMutatingUser = useIsMutating({ mutationKey: mutationKeys.user.all }); + * + * // Check if a specific user is being updated + * const isUpdating = useIsMutating({ mutationKey: mutationKeys.user.update(userId) }); + * ``` + */ +export const mutationKeys = { + machine: machineMutationKeys, + machineMessage: machineMessageMutationKeys, + machineSession: machineSessionMutationKeys, + custom: customMutationKeys, +} as const; diff --git a/sdk/constructive-react/src/remote/hooks/mutations/index.ts b/sdk/constructive-react/src/remote/hooks/mutations/index.ts new file mode 100644 index 0000000000..a30a68046c --- /dev/null +++ b/sdk/constructive-react/src/remote/hooks/mutations/index.ts @@ -0,0 +1,16 @@ +/** + * Mutation hooks barrel export + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +export * from './useCreateMachineMutation'; +export * from './useUpdateMachineMutation'; +export * from './useDeleteMachineMutation'; +export * from './useCreateMachineMessageMutation'; +export * from './useUpdateMachineMessageMutation'; +export * from './useDeleteMachineMessageMutation'; +export * from './useCreateMachineSessionMutation'; +export * from './useUpdateMachineSessionMutation'; +export * from './useDeleteMachineSessionMutation'; +export * from './useMachinesEnrollMutation'; +export * from './useProvisionBucketMutation'; diff --git a/sdk/constructive-react/src/remote/hooks/mutations/useCreateMachineMessageMutation.ts b/sdk/constructive-react/src/remote/hooks/mutations/useCreateMachineMessageMutation.ts new file mode 100644 index 0000000000..334c37a11f --- /dev/null +++ b/sdk/constructive-react/src/remote/hooks/mutations/useCreateMachineMessageMutation.ts @@ -0,0 +1,91 @@ +/** + * Partitioned append-only ledger of session input, output and lifecycle + * @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 { machineMessageKeys } from '../query-keys'; +import { machineMessageMutationKeys } from '../mutation-keys'; +import type { + MachineMessageSelect, + MachineMessageWithRelations, + CreateMachineMessageInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + MachineMessageSelect, + MachineMessageWithRelations, + CreateMachineMessageInput, +} from '../../orm/input-types'; +/** + * Partitioned append-only ledger of session input, output and lifecycle + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateMachineMessageMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateMachineMessageMutation( + params: { + selection: { + fields: S & MachineMessageSelect; + } & HookStrictSelect, MachineMessageSelect>; + } & Omit< + UseMutationOptions< + { + createMachineMessage: { + machineMessage: InferSelectResult; + }; + }, + Error, + CreateMachineMessageInput['machineMessage'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createMachineMessage: { + machineMessage: InferSelectResult; + }; + }, + Error, + CreateMachineMessageInput['machineMessage'] +>; +export function useCreateMachineMessageMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: machineMessageMutationKeys.create(), + mutationFn: (data: CreateMachineMessageInput['machineMessage']) => + getClient() + .machineMessage.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: machineMessageKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/remote/hooks/mutations/useCreateMachineMutation.ts b/sdk/constructive-react/src/remote/hooks/mutations/useCreateMachineMutation.ts new file mode 100644 index 0000000000..b8496cf4cf --- /dev/null +++ b/sdk/constructive-react/src/remote/hooks/mutations/useCreateMachineMutation.ts @@ -0,0 +1,88 @@ +/** + * Computers enrolled for remote control, one row per database enrollment + * @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 { machineKeys } from '../query-keys'; +import { machineMutationKeys } from '../mutation-keys'; +import type { + MachineSelect, + MachineWithRelations, + CreateMachineInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + MachineSelect, + MachineWithRelations, + CreateMachineInput, +} from '../../orm/input-types'; +/** + * Computers enrolled for remote control, one row per database enrollment + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateMachineMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateMachineMutation( + params: { + selection: { + fields: S & MachineSelect; + } & HookStrictSelect, MachineSelect>; + } & Omit< + UseMutationOptions< + { + createMachine: { + machine: InferSelectResult; + }; + }, + Error, + CreateMachineInput['machine'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createMachine: { + machine: InferSelectResult; + }; + }, + Error, + CreateMachineInput['machine'] +>; +export function useCreateMachineMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: machineMutationKeys.create(), + mutationFn: (data: CreateMachineInput['machine']) => + getClient() + .machine.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: machineKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/remote/hooks/mutations/useCreateMachineSessionMutation.ts b/sdk/constructive-react/src/remote/hooks/mutations/useCreateMachineSessionMutation.ts new file mode 100644 index 0000000000..7be9c06397 --- /dev/null +++ b/sdk/constructive-react/src/remote/hooks/mutations/useCreateMachineSessionMutation.ts @@ -0,0 +1,91 @@ +/** + * Command or terminal sessions running on an enrolled machine + * @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 { machineSessionKeys } from '../query-keys'; +import { machineSessionMutationKeys } from '../mutation-keys'; +import type { + MachineSessionSelect, + MachineSessionWithRelations, + CreateMachineSessionInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + MachineSessionSelect, + MachineSessionWithRelations, + CreateMachineSessionInput, +} from '../../orm/input-types'; +/** + * Command or terminal sessions running on an enrolled machine + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateMachineSessionMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateMachineSessionMutation( + params: { + selection: { + fields: S & MachineSessionSelect; + } & HookStrictSelect, MachineSessionSelect>; + } & Omit< + UseMutationOptions< + { + createMachineSession: { + machineSession: InferSelectResult; + }; + }, + Error, + CreateMachineSessionInput['machineSession'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createMachineSession: { + machineSession: InferSelectResult; + }; + }, + Error, + CreateMachineSessionInput['machineSession'] +>; +export function useCreateMachineSessionMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: machineSessionMutationKeys.create(), + mutationFn: (data: CreateMachineSessionInput['machineSession']) => + getClient() + .machineSession.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: machineSessionKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/remote/hooks/mutations/useDeleteMachineMessageMutation.ts b/sdk/constructive-react/src/remote/hooks/mutations/useDeleteMachineMessageMutation.ts new file mode 100644 index 0000000000..a3def19fe7 --- /dev/null +++ b/sdk/constructive-react/src/remote/hooks/mutations/useDeleteMachineMessageMutation.ts @@ -0,0 +1,102 @@ +/** + * Partitioned append-only ledger of session input, output and lifecycle + * @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 { machineMessageKeys } from '../query-keys'; +import { machineMessageMutationKeys } from '../mutation-keys'; +import type { MachineMessageSelect, MachineMessageWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { MachineMessageSelect, MachineMessageWithRelations } from '../../orm/input-types'; +/** + * Partitioned append-only ledger of session input, output and lifecycle + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteMachineMessageMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteMachineMessageMutation( + params: { + selection: { + fields: S & MachineMessageSelect; + } & HookStrictSelect, MachineMessageSelect>; + } & Omit< + UseMutationOptions< + { + deleteMachineMessage: { + machineMessage: InferSelectResult; + }; + }, + Error, + { + id: string; + recordedAt: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteMachineMessage: { + machineMessage: InferSelectResult; + }; + }, + Error, + { + id: string; + recordedAt: string; + } +>; +export function useDeleteMachineMessageMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + recordedAt: string; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: machineMessageMutationKeys.all, + mutationFn: ({ id, recordedAt }: { id: string; recordedAt: string }) => + getClient() + .machineMessage.delete({ + where: { + id, + recordedAt, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: machineMessageKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: machineMessageKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/remote/hooks/mutations/useDeleteMachineMutation.ts b/sdk/constructive-react/src/remote/hooks/mutations/useDeleteMachineMutation.ts new file mode 100644 index 0000000000..2254e22529 --- /dev/null +++ b/sdk/constructive-react/src/remote/hooks/mutations/useDeleteMachineMutation.ts @@ -0,0 +1,98 @@ +/** + * Computers enrolled for remote control, one row per database enrollment + * @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 { machineKeys } from '../query-keys'; +import { machineMutationKeys } from '../mutation-keys'; +import type { MachineSelect, MachineWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { MachineSelect, MachineWithRelations } from '../../orm/input-types'; +/** + * Computers enrolled for remote control, one row per database enrollment + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteMachineMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteMachineMutation( + params: { + selection: { + fields: S & MachineSelect; + } & HookStrictSelect, MachineSelect>; + } & Omit< + UseMutationOptions< + { + deleteMachine: { + machine: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteMachine: { + machine: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteMachineMutation( + 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: machineMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .machine.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: machineKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: machineKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/remote/hooks/mutations/useDeleteMachineSessionMutation.ts b/sdk/constructive-react/src/remote/hooks/mutations/useDeleteMachineSessionMutation.ts new file mode 100644 index 0000000000..b9a0d8afd0 --- /dev/null +++ b/sdk/constructive-react/src/remote/hooks/mutations/useDeleteMachineSessionMutation.ts @@ -0,0 +1,98 @@ +/** + * Command or terminal sessions running on an enrolled machine + * @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 { machineSessionKeys } from '../query-keys'; +import { machineSessionMutationKeys } from '../mutation-keys'; +import type { MachineSessionSelect, MachineSessionWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { MachineSessionSelect, MachineSessionWithRelations } from '../../orm/input-types'; +/** + * Command or terminal sessions running on an enrolled machine + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteMachineSessionMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteMachineSessionMutation( + params: { + selection: { + fields: S & MachineSessionSelect; + } & HookStrictSelect, MachineSessionSelect>; + } & Omit< + UseMutationOptions< + { + deleteMachineSession: { + machineSession: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteMachineSession: { + machineSession: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteMachineSessionMutation( + 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: machineSessionMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .machineSession.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: machineSessionKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: machineSessionKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/remote/hooks/mutations/useMachinesEnrollMutation.ts b/sdk/constructive-react/src/remote/hooks/mutations/useMachinesEnrollMutation.ts new file mode 100644 index 0000000000..0148a72957 --- /dev/null +++ b/sdk/constructive-react/src/remote/hooks/mutations/useMachinesEnrollMutation.ts @@ -0,0 +1,55 @@ +/** + * Custom mutation hook for machinesEnroll + * @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 { MachinesEnrollVariables } from '../../orm/mutation'; +import type { MachinesEnrollPayloadSelect, MachinesEnrollPayload } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { MachinesEnrollVariables } from '../../orm/mutation'; +export type { MachinesEnrollPayloadSelect } from '../../orm/input-types'; +export function useMachinesEnrollMutation( + params: { + selection: { + fields: S & MachinesEnrollPayloadSelect; + } & HookStrictSelect, MachinesEnrollPayloadSelect>; + } & Omit< + UseMutationOptions< + { + machinesEnroll: InferSelectResult | null; + }, + Error, + MachinesEnrollVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + machinesEnroll: InferSelectResult | null; + }, + Error, + MachinesEnrollVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.machinesEnroll(), + mutationFn: (variables: MachinesEnrollVariables) => + getClient() + .mutation.machinesEnroll(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/remote/hooks/mutations/useProvisionBucketMutation.ts b/sdk/constructive-react/src/remote/hooks/mutations/useProvisionBucketMutation.ts new file mode 100644 index 0000000000..2613680e69 --- /dev/null +++ b/sdk/constructive-react/src/remote/hooks/mutations/useProvisionBucketMutation.ts @@ -0,0 +1,55 @@ +/** + * Custom mutation hook for provisionBucket + * @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 { ProvisionBucketVariables } from '../../orm/mutation'; +import type { ProvisionBucketPayloadSelect, ProvisionBucketPayload } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { ProvisionBucketVariables } from '../../orm/mutation'; +export type { ProvisionBucketPayloadSelect } from '../../orm/input-types'; +export function useProvisionBucketMutation( + params: { + selection: { + fields: S & ProvisionBucketPayloadSelect; + } & HookStrictSelect, ProvisionBucketPayloadSelect>; + } & Omit< + UseMutationOptions< + { + provisionBucket: InferSelectResult | null; + }, + Error, + ProvisionBucketVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + provisionBucket: InferSelectResult | null; + }, + Error, + ProvisionBucketVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.provisionBucket(), + mutationFn: (variables: ProvisionBucketVariables) => + getClient() + .mutation.provisionBucket(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/remote/hooks/mutations/useUpdateMachineMessageMutation.ts b/sdk/constructive-react/src/remote/hooks/mutations/useUpdateMachineMessageMutation.ts new file mode 100644 index 0000000000..19049a5749 --- /dev/null +++ b/sdk/constructive-react/src/remote/hooks/mutations/useUpdateMachineMessageMutation.ts @@ -0,0 +1,122 @@ +/** + * Partitioned append-only ledger of session input, output and lifecycle + * @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 { machineMessageKeys } from '../query-keys'; +import { machineMessageMutationKeys } from '../mutation-keys'; +import type { + MachineMessageSelect, + MachineMessageWithRelations, + MachineMessagePatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + MachineMessageSelect, + MachineMessageWithRelations, + MachineMessagePatch, +} from '../../orm/input-types'; +/** + * Partitioned append-only ledger of session input, output and lifecycle + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateMachineMessageMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', machineMessagePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateMachineMessageMutation( + params: { + selection: { + fields: S & MachineMessageSelect; + } & HookStrictSelect, MachineMessageSelect>; + } & Omit< + UseMutationOptions< + { + updateMachineMessage: { + machineMessage: InferSelectResult; + }; + }, + Error, + { + id: string; + recordedAt: string; + machineMessagePatch: MachineMessagePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateMachineMessage: { + machineMessage: InferSelectResult; + }; + }, + Error, + { + id: string; + recordedAt: string; + machineMessagePatch: MachineMessagePatch; + } +>; +export function useUpdateMachineMessageMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + recordedAt: string; + machineMessagePatch: MachineMessagePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: machineMessageMutationKeys.all, + mutationFn: ({ + id, + recordedAt, + machineMessagePatch, + }: { + id: string; + recordedAt: string; + machineMessagePatch: MachineMessagePatch; + }) => + getClient() + .machineMessage.update({ + where: { + id, + recordedAt, + }, + data: machineMessagePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: machineMessageKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: machineMessageKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/remote/hooks/mutations/useUpdateMachineMutation.ts b/sdk/constructive-react/src/remote/hooks/mutations/useUpdateMachineMutation.ts new file mode 100644 index 0000000000..c9ccaf4e10 --- /dev/null +++ b/sdk/constructive-react/src/remote/hooks/mutations/useUpdateMachineMutation.ts @@ -0,0 +1,102 @@ +/** + * Computers enrolled for remote control, one row per database enrollment + * @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 { machineKeys } from '../query-keys'; +import { machineMutationKeys } from '../mutation-keys'; +import type { MachineSelect, MachineWithRelations, MachinePatch } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { MachineSelect, MachineWithRelations, MachinePatch } from '../../orm/input-types'; +/** + * Computers enrolled for remote control, one row per database enrollment + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateMachineMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', machinePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateMachineMutation( + params: { + selection: { + fields: S & MachineSelect; + } & HookStrictSelect, MachineSelect>; + } & Omit< + UseMutationOptions< + { + updateMachine: { + machine: InferSelectResult; + }; + }, + Error, + { + id: string; + machinePatch: MachinePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateMachine: { + machine: InferSelectResult; + }; + }, + Error, + { + id: string; + machinePatch: MachinePatch; + } +>; +export function useUpdateMachineMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + machinePatch: MachinePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: machineMutationKeys.all, + mutationFn: ({ id, machinePatch }: { id: string; machinePatch: MachinePatch }) => + getClient() + .machine.update({ + where: { + id, + }, + data: machinePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: machineKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: machineKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/remote/hooks/mutations/useUpdateMachineSessionMutation.ts b/sdk/constructive-react/src/remote/hooks/mutations/useUpdateMachineSessionMutation.ts new file mode 100644 index 0000000000..5a2c3690ff --- /dev/null +++ b/sdk/constructive-react/src/remote/hooks/mutations/useUpdateMachineSessionMutation.ts @@ -0,0 +1,116 @@ +/** + * Command or terminal sessions running on an enrolled machine + * @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 { machineSessionKeys } from '../query-keys'; +import { machineSessionMutationKeys } from '../mutation-keys'; +import type { + MachineSessionSelect, + MachineSessionWithRelations, + MachineSessionPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + MachineSessionSelect, + MachineSessionWithRelations, + MachineSessionPatch, +} from '../../orm/input-types'; +/** + * Command or terminal sessions running on an enrolled machine + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateMachineSessionMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', machineSessionPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateMachineSessionMutation( + params: { + selection: { + fields: S & MachineSessionSelect; + } & HookStrictSelect, MachineSessionSelect>; + } & Omit< + UseMutationOptions< + { + updateMachineSession: { + machineSession: InferSelectResult; + }; + }, + Error, + { + id: string; + machineSessionPatch: MachineSessionPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateMachineSession: { + machineSession: InferSelectResult; + }; + }, + Error, + { + id: string; + machineSessionPatch: MachineSessionPatch; + } +>; +export function useUpdateMachineSessionMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + machineSessionPatch: MachineSessionPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: machineSessionMutationKeys.all, + mutationFn: ({ + id, + machineSessionPatch, + }: { + id: string; + machineSessionPatch: MachineSessionPatch; + }) => + getClient() + .machineSession.update({ + where: { + id, + }, + data: machineSessionPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: machineSessionKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: machineSessionKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/remote/hooks/queries/index.ts b/sdk/constructive-react/src/remote/hooks/queries/index.ts new file mode 100644 index 0000000000..43a5062bf0 --- /dev/null +++ b/sdk/constructive-react/src/remote/hooks/queries/index.ts @@ -0,0 +1,11 @@ +/** + * Query hooks barrel export + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +export * from './useMachinesQuery'; +export * from './useMachineQuery'; +export * from './useMachineMessagesQuery'; +export * from './useMachineMessageQuery'; +export * from './useMachineSessionsQuery'; +export * from './useMachineSessionQuery'; diff --git a/sdk/constructive-react/src/remote/hooks/queries/useMachineMessageQuery.ts b/sdk/constructive-react/src/remote/hooks/queries/useMachineMessageQuery.ts new file mode 100644 index 0000000000..bf3c003614 --- /dev/null +++ b/sdk/constructive-react/src/remote/hooks/queries/useMachineMessageQuery.ts @@ -0,0 +1,138 @@ +/** + * Partitioned append-only ledger of session input, output and lifecycle + * @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 { machineMessageKeys } from '../query-keys'; +import type { MachineMessageSelect, MachineMessageWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { MachineMessageSelect, MachineMessageWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const machineMessageQueryKey = machineMessageKeys.detail; +/** + * Partitioned append-only ledger of session input, output and lifecycle + * + * @example + * ```tsx + * const { data, isLoading } = useMachineMessageQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useMachineMessageQuery< + S extends MachineMessageSelect, + TData = { + machineMessage: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, MachineMessageSelect>; + } & Omit< + UseQueryOptions< + { + machineMessage: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useMachineMessageQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: machineMessageKeys.detail(params.id), + queryFn: () => + getClient() + .machineMessage.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Partitioned append-only ledger of session input, output and lifecycle + * + * @example + * ```ts + * const data = await fetchMachineMessageQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchMachineMessageQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, MachineMessageSelect>; +}): Promise<{ + machineMessage: InferSelectResult | null; +}>; +export async function fetchMachineMessageQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .machineMessage.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Partitioned append-only ledger of session input, output and lifecycle + * + * @example + * ```ts + * await prefetchMachineMessageQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchMachineMessageQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, MachineMessageSelect>; + } +): Promise; +export async function prefetchMachineMessageQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: machineMessageKeys.detail(params.id), + queryFn: () => + getClient() + .machineMessage.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/remote/hooks/queries/useMachineMessagesQuery.ts b/sdk/constructive-react/src/remote/hooks/queries/useMachineMessagesQuery.ts new file mode 100644 index 0000000000..e2c3f9fe3d --- /dev/null +++ b/sdk/constructive-react/src/remote/hooks/queries/useMachineMessagesQuery.ts @@ -0,0 +1,159 @@ +/** + * Partitioned append-only ledger of session input, output and lifecycle + * @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 { machineMessageKeys } from '../query-keys'; +import type { + MachineMessageSelect, + MachineMessageWithRelations, + MachineMessageFilter, + MachineMessageOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + MachineMessageSelect, + MachineMessageWithRelations, + MachineMessageFilter, + MachineMessageOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const machineMessagesQueryKey = machineMessageKeys.list; +/** + * Partitioned append-only ledger of session input, output and lifecycle + * + * @example + * ```tsx + * const { data, isLoading } = useMachineMessagesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useMachineMessagesQuery< + S extends MachineMessageSelect, + TData = { + machineMessages: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, MachineMessageSelect>; + } & Omit< + UseQueryOptions< + { + machineMessages: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useMachineMessagesQuery( + params: { + selection: ListSelectionConfig< + MachineMessageSelect, + MachineMessageFilter, + MachineMessageOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + MachineMessageSelect, + MachineMessageFilter, + MachineMessageOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: machineMessageKeys.list(args), + queryFn: () => getClient().machineMessage.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Partitioned append-only ledger of session input, output and lifecycle + * + * @example + * ```ts + * const data = await fetchMachineMessagesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchMachineMessagesQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, MachineMessageSelect>; +}): Promise<{ + machineMessages: ConnectionResult>; +}>; +export async function fetchMachineMessagesQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs< + MachineMessageSelect, + MachineMessageFilter, + MachineMessageOrderBy + >(params.selection); + return getClient().machineMessage.findMany(args).unwrap(); +} +/** + * Partitioned append-only ledger of session input, output and lifecycle + * + * @example + * ```ts + * await prefetchMachineMessagesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchMachineMessagesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, MachineMessageSelect>; + } +): Promise; +export async function prefetchMachineMessagesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + MachineMessageSelect, + MachineMessageFilter, + MachineMessageOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + MachineMessageSelect, + MachineMessageFilter, + MachineMessageOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: machineMessageKeys.list(args), + queryFn: () => getClient().machineMessage.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/remote/hooks/queries/useMachineQuery.ts b/sdk/constructive-react/src/remote/hooks/queries/useMachineQuery.ts new file mode 100644 index 0000000000..0e9ac1c22b --- /dev/null +++ b/sdk/constructive-react/src/remote/hooks/queries/useMachineQuery.ts @@ -0,0 +1,138 @@ +/** + * Computers enrolled for remote control, one row per database enrollment + * @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 { machineKeys } from '../query-keys'; +import type { MachineSelect, MachineWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { MachineSelect, MachineWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const machineQueryKey = machineKeys.detail; +/** + * Computers enrolled for remote control, one row per database enrollment + * + * @example + * ```tsx + * const { data, isLoading } = useMachineQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useMachineQuery< + S extends MachineSelect, + TData = { + machine: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, MachineSelect>; + } & Omit< + UseQueryOptions< + { + machine: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useMachineQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: machineKeys.detail(params.id), + queryFn: () => + getClient() + .machine.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Computers enrolled for remote control, one row per database enrollment + * + * @example + * ```ts + * const data = await fetchMachineQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchMachineQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, MachineSelect>; +}): Promise<{ + machine: InferSelectResult | null; +}>; +export async function fetchMachineQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .machine.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Computers enrolled for remote control, one row per database enrollment + * + * @example + * ```ts + * await prefetchMachineQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchMachineQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, MachineSelect>; + } +): Promise; +export async function prefetchMachineQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: machineKeys.detail(params.id), + queryFn: () => + getClient() + .machine.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/remote/hooks/queries/useMachineSessionQuery.ts b/sdk/constructive-react/src/remote/hooks/queries/useMachineSessionQuery.ts new file mode 100644 index 0000000000..7d03a9933d --- /dev/null +++ b/sdk/constructive-react/src/remote/hooks/queries/useMachineSessionQuery.ts @@ -0,0 +1,138 @@ +/** + * Command or terminal sessions running on an enrolled machine + * @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 { machineSessionKeys } from '../query-keys'; +import type { MachineSessionSelect, MachineSessionWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { MachineSessionSelect, MachineSessionWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const machineSessionQueryKey = machineSessionKeys.detail; +/** + * Command or terminal sessions running on an enrolled machine + * + * @example + * ```tsx + * const { data, isLoading } = useMachineSessionQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useMachineSessionQuery< + S extends MachineSessionSelect, + TData = { + machineSession: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, MachineSessionSelect>; + } & Omit< + UseQueryOptions< + { + machineSession: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useMachineSessionQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: machineSessionKeys.detail(params.id), + queryFn: () => + getClient() + .machineSession.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Command or terminal sessions running on an enrolled machine + * + * @example + * ```ts + * const data = await fetchMachineSessionQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchMachineSessionQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, MachineSessionSelect>; +}): Promise<{ + machineSession: InferSelectResult | null; +}>; +export async function fetchMachineSessionQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .machineSession.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Command or terminal sessions running on an enrolled machine + * + * @example + * ```ts + * await prefetchMachineSessionQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchMachineSessionQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, MachineSessionSelect>; + } +): Promise; +export async function prefetchMachineSessionQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: machineSessionKeys.detail(params.id), + queryFn: () => + getClient() + .machineSession.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/remote/hooks/queries/useMachineSessionsQuery.ts b/sdk/constructive-react/src/remote/hooks/queries/useMachineSessionsQuery.ts new file mode 100644 index 0000000000..6805672ad9 --- /dev/null +++ b/sdk/constructive-react/src/remote/hooks/queries/useMachineSessionsQuery.ts @@ -0,0 +1,159 @@ +/** + * Command or terminal sessions running on an enrolled machine + * @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 { machineSessionKeys } from '../query-keys'; +import type { + MachineSessionSelect, + MachineSessionWithRelations, + MachineSessionFilter, + MachineSessionOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + MachineSessionSelect, + MachineSessionWithRelations, + MachineSessionFilter, + MachineSessionOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const machineSessionsQueryKey = machineSessionKeys.list; +/** + * Command or terminal sessions running on an enrolled machine + * + * @example + * ```tsx + * const { data, isLoading } = useMachineSessionsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useMachineSessionsQuery< + S extends MachineSessionSelect, + TData = { + machineSessions: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, MachineSessionSelect>; + } & Omit< + UseQueryOptions< + { + machineSessions: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useMachineSessionsQuery( + params: { + selection: ListSelectionConfig< + MachineSessionSelect, + MachineSessionFilter, + MachineSessionOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + MachineSessionSelect, + MachineSessionFilter, + MachineSessionOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: machineSessionKeys.list(args), + queryFn: () => getClient().machineSession.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Command or terminal sessions running on an enrolled machine + * + * @example + * ```ts + * const data = await fetchMachineSessionsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchMachineSessionsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, MachineSessionSelect>; +}): Promise<{ + machineSessions: ConnectionResult>; +}>; +export async function fetchMachineSessionsQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs< + MachineSessionSelect, + MachineSessionFilter, + MachineSessionOrderBy + >(params.selection); + return getClient().machineSession.findMany(args).unwrap(); +} +/** + * Command or terminal sessions running on an enrolled machine + * + * @example + * ```ts + * await prefetchMachineSessionsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchMachineSessionsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, MachineSessionSelect>; + } +): Promise; +export async function prefetchMachineSessionsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + MachineSessionSelect, + MachineSessionFilter, + MachineSessionOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + MachineSessionSelect, + MachineSessionFilter, + MachineSessionOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: machineSessionKeys.list(args), + queryFn: () => getClient().machineSession.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/remote/hooks/queries/useMachinesQuery.ts b/sdk/constructive-react/src/remote/hooks/queries/useMachinesQuery.ts new file mode 100644 index 0000000000..1834a1d0b7 --- /dev/null +++ b/sdk/constructive-react/src/remote/hooks/queries/useMachinesQuery.ts @@ -0,0 +1,145 @@ +/** + * Computers enrolled for remote control, one row per database enrollment + * @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 { machineKeys } from '../query-keys'; +import type { + MachineSelect, + MachineWithRelations, + MachineFilter, + MachineOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + MachineSelect, + MachineWithRelations, + MachineFilter, + MachineOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const machinesQueryKey = machineKeys.list; +/** + * Computers enrolled for remote control, one row per database enrollment + * + * @example + * ```tsx + * const { data, isLoading } = useMachinesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useMachinesQuery< + S extends MachineSelect, + TData = { + machines: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, MachineSelect>; + } & Omit< + UseQueryOptions< + { + machines: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useMachinesQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs( + params.selection + ); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: machineKeys.list(args), + queryFn: () => getClient().machine.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Computers enrolled for remote control, one row per database enrollment + * + * @example + * ```ts + * const data = await fetchMachinesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchMachinesQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, MachineSelect>; +}): Promise<{ + machines: ConnectionResult>; +}>; +export async function fetchMachinesQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs( + params.selection + ); + return getClient().machine.findMany(args).unwrap(); +} +/** + * Computers enrolled for remote control, one row per database enrollment + * + * @example + * ```ts + * await prefetchMachinesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchMachinesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, MachineSelect>; + } +): Promise; +export async function prefetchMachinesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs( + params.selection + ); + await queryClient.prefetchQuery({ + queryKey: machineKeys.list(args), + queryFn: () => getClient().machine.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/remote/hooks/query-keys.ts b/sdk/constructive-react/src/remote/hooks/query-keys.ts new file mode 100644 index 0000000000..371a742682 --- /dev/null +++ b/sdk/constructive-react/src/remote/hooks/query-keys.ts @@ -0,0 +1,77 @@ +/** + * Centralized query key factory + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +// ============================================================================ +// This file provides a centralized, type-safe query key factory following +// the lukemorales query-key-factory pattern for React Query. +// +// Benefits: +// - Single source of truth for all query keys +// - Type-safe key access with autocomplete +// - Hierarchical invalidation (invalidate all 'user.*' queries) +// - Scoped keys for parent-child relationships +// ============================================================================ + +// ============================================================================ +// Entity Query Keys +// ============================================================================ + +export const machineKeys = { + /** All machine queries */ all: ['machine'] as const, + /** List query keys */ lists: () => [...machineKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...machineKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...machineKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...machineKeys.details(), id] as const, +} as const; +export const machineMessageKeys = { + /** All machineMessage queries */ all: ['machinemessage'] as const, + /** List query keys */ lists: () => [...machineMessageKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...machineMessageKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...machineMessageKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...machineMessageKeys.details(), id] as const, +} as const; +export const machineSessionKeys = { + /** All machineSession queries */ all: ['machinesession'] as const, + /** List query keys */ lists: () => [...machineSessionKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...machineSessionKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...machineSessionKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...machineSessionKeys.details(), id] as const, +} as const; +/** + +// ============================================================================ +// Unified Query Key Store +// ============================================================================ + + * Unified query key store + * + * Use this for type-safe query key access across your application. + * + * @example + * ```ts + * // Invalidate all user queries + * queryClient.invalidateQueries({ queryKey: queryKeys.user.all }); + * + * // Invalidate user list queries + * queryClient.invalidateQueries({ queryKey: queryKeys.user.lists() }); + * + * // Invalidate specific user + * queryClient.invalidateQueries({ queryKey: queryKeys.user.detail(userId) }); + * ``` + */ +export const queryKeys = { + machine: machineKeys, + machineMessage: machineMessageKeys, + machineSession: machineSessionKeys, +} as const; +/** Type representing all available query key scopes */ +export type QueryKeyScope = keyof typeof queryKeys; diff --git a/sdk/constructive-react/src/remote/hooks/selection.ts b/sdk/constructive-react/src/remote/hooks/selection.ts new file mode 100644 index 0000000000..2952aab647 --- /dev/null +++ b/sdk/constructive-react/src/remote/hooks/selection.ts @@ -0,0 +1,60 @@ +/** + * Selection helpers for React Query hooks + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +export interface SelectionConfig { + fields: TFields; +} + +export interface ListSelectionConfig extends SelectionConfig { + where?: TWhere; + orderBy?: TOrderBy[]; + first?: number; + last?: number; + after?: string; + before?: string; + offset?: number; +} + +function ensureSelectionFields( + selection: SelectionConfig | undefined +): asserts selection is SelectionConfig { + if (!selection || typeof selection !== 'object' || !('fields' in selection)) { + throw new Error( + 'Invalid hook params: `selection.fields` is required. Example: { selection: { fields: { id: true } } }' + ); + } +} + +export function buildSelectionArgs(selection: SelectionConfig): { + select: TFields; +} { + ensureSelectionFields(selection); + return { select: selection.fields }; +} + +export function buildListSelectionArgs( + selection: ListSelectionConfig +): { + select: TFields; + where?: TWhere; + orderBy?: TOrderBy[]; + first?: number; + last?: number; + after?: string; + before?: string; + offset?: number; +} { + ensureSelectionFields(selection); + return { + select: selection.fields, + where: selection.where, + orderBy: selection.orderBy, + first: selection.first, + last: selection.last, + after: selection.after, + before: selection.before, + offset: selection.offset, + }; +} diff --git a/sdk/constructive-react/src/remote/index.ts b/sdk/constructive-react/src/remote/index.ts new file mode 100644 index 0000000000..2b8402539a --- /dev/null +++ b/sdk/constructive-react/src/remote/index.ts @@ -0,0 +1,7 @@ +/** + * GraphQL SDK - auto-generated, do not edit + * @generated by @constructive-io/graphql-codegen + */ +export * from './types'; +export * from './hooks'; +export * from './orm'; diff --git a/sdk/constructive-react/src/remote/orm/README.md b/sdk/constructive-react/src/remote/orm/README.md new file mode 100644 index 0000000000..df7c4060e0 --- /dev/null +++ b/sdk/constructive-react/src/remote/orm/README.md @@ -0,0 +1,203 @@ +# ORM Client + +

+ +

+ + + +## Setup + +```typescript +import { createClient } from './orm'; + +const db = createClient({ + endpoint: 'https://api.example.com/graphql', + headers: { Authorization: 'Bearer ' }, +}); +``` + +## Models + +| Model | Operations | +|-------|------------| +| `machine` | findMany, findOne, create, update, delete | +| `machineMessage` | findMany, findOne, create, update, delete | +| `machineSession` | findMany, findOne, create, update, delete | + +## Table Operations + +### `db.machine` + +CRUD operations for Machine records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `createdAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | +| `entityId` | UUID | Yes | +| `facts` | JSON | Yes | +| `id` | UUID | No | +| `isShared` | Boolean | Yes | +| `label` | String | Yes | +| `lastSeenAt` | Datetime | Yes | +| `ownerId` | UUID | Yes | +| `policy` | JSON | Yes | +| `principalId` | UUID | Yes | +| `revokedAt` | Datetime | Yes | +| `tokenHash` | String | Yes | +| `updatedAt` | Datetime | No | +| `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | + +**Operations:** + +```typescript +// List all machine records +const items = await db.machine.findMany({ select: { createdAt: true, createdBy: true, createdByPrincipal: true, entityId: true, facts: true, id: true, isShared: true, label: true, lastSeenAt: true, ownerId: true, policy: true, principalId: true, revokedAt: true, tokenHash: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Get one by id +const item = await db.machine.findOne({ id: '', select: { createdAt: true, createdBy: true, createdByPrincipal: true, entityId: true, facts: true, id: true, isShared: true, label: true, lastSeenAt: true, ownerId: true, policy: true, principalId: true, revokedAt: true, tokenHash: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Create +const created = await db.machine.create({ data: { createdBy: '', createdByPrincipal: '', entityId: '', facts: '', isShared: '', label: '', lastSeenAt: '', ownerId: '', policy: '', principalId: '', revokedAt: '', tokenHash: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.machine.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.machine.delete({ where: { id: '' } }).execute(); +``` + +### `db.machineMessage` + +CRUD operations for MachineMessage records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `actorId` | UUID | Yes | +| `content` | JSON | Yes | +| `createdByPrincipal` | UUID | Yes | +| `entityId` | UUID | Yes | +| `id` | UUID | No | +| `kind` | String | Yes | +| `ownerId` | UUID | Yes | +| `recordedAt` | Datetime | Yes | +| `seq` | BigInt | Yes | +| `sessionId` | UUID | Yes | + +**Operations:** + +```typescript +// List all machineMessage records +const items = await db.machineMessage.findMany({ select: { actorId: true, content: true, createdByPrincipal: true, entityId: true, id: true, kind: true, ownerId: true, recordedAt: true, seq: true, sessionId: true } }).execute(); + +// Get one by id +const item = await db.machineMessage.findOne({ id: '', select: { actorId: true, content: true, createdByPrincipal: true, entityId: true, id: true, kind: true, ownerId: true, recordedAt: true, seq: true, sessionId: true } }).execute(); + +// Create +const created = await db.machineMessage.create({ data: { actorId: '', content: '', createdByPrincipal: '', entityId: '', kind: '', ownerId: '', recordedAt: '', seq: '', sessionId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.machineMessage.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.machineMessage.delete({ where: { id: '' } }).execute(); +``` + +### `db.machineSession` + +CRUD operations for MachineSession records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `agentMode` | String | Yes | +| `agentSessionRef` | String | Yes | +| `args` | String | Yes | +| `cols` | Int | Yes | +| `command` | String | Yes | +| `createdAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | +| `cwd` | String | Yes | +| `endedAt` | Datetime | Yes | +| `entityId` | UUID | Yes | +| `env` | JSON | Yes | +| `exitCode` | Int | Yes | +| `id` | UUID | No | +| `interactive` | Boolean | Yes | +| `lastActivityAt` | Datetime | Yes | +| `lastSeq` | BigInt | Yes | +| `machineId` | UUID | Yes | +| `metadata` | JSON | Yes | +| `ownerId` | UUID | Yes | +| `pid` | Int | Yes | +| `runId` | UUID | Yes | +| `startedAt` | Datetime | Yes | +| `state` | String | Yes | +| `termRows` | Int | Yes | +| `updatedAt` | Datetime | No | +| `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | + +**Operations:** + +```typescript +// List all machineSession records +const items = await db.machineSession.findMany({ select: { agentMode: true, agentSessionRef: true, args: true, cols: true, command: true, createdAt: true, createdBy: true, createdByPrincipal: true, cwd: true, endedAt: true, entityId: true, env: true, exitCode: true, id: true, interactive: true, lastActivityAt: true, lastSeq: true, machineId: true, metadata: true, ownerId: true, pid: true, runId: true, startedAt: true, state: true, termRows: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Get one by id +const item = await db.machineSession.findOne({ id: '', select: { agentMode: true, agentSessionRef: true, args: true, cols: true, command: true, createdAt: true, createdBy: true, createdByPrincipal: true, cwd: true, endedAt: true, entityId: true, env: true, exitCode: true, id: true, interactive: true, lastActivityAt: true, lastSeq: true, machineId: true, metadata: true, ownerId: true, pid: true, runId: true, startedAt: true, state: true, termRows: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Create +const created = await db.machineSession.create({ data: { agentMode: '', agentSessionRef: '', args: '', cols: '', command: '', createdBy: '', createdByPrincipal: '', cwd: '', endedAt: '', entityId: '', env: '', exitCode: '', interactive: '', lastActivityAt: '', lastSeq: '', machineId: '', metadata: '', ownerId: '', pid: '', runId: '', startedAt: '', state: '', termRows: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.machineSession.update({ where: { id: '' }, data: { agentMode: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.machineSession.delete({ where: { id: '' } }).execute(); +``` + +## Custom Operations + +### `db.mutation.machinesEnroll` + +machinesEnroll + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | MachinesEnrollInput (required) | + +```typescript +const result = await db.mutation.machinesEnroll({ input: { entityId: '', isShared: '', label: '', tokenHash: '' } }).execute(); +``` + +### `db.mutation.provisionBucket` + +Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | ProvisionBucketInput (required) | + +```typescript +const result = await db.mutation.provisionBucket({ input: { bucketKey: '', ownerId: '' } }).execute(); +``` diff --git a/sdk/constructive-react/src/remote/orm/client.ts b/sdk/constructive-react/src/remote/orm/client.ts new file mode 100644 index 0000000000..8141c1e52b --- /dev/null +++ b/sdk/constructive-react/src/remote/orm/client.ts @@ -0,0 +1,254 @@ +/** + * ORM Client - Runtime GraphQL executor + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import type { + GraphQLAdapter, + GraphQLError, + QueryResult, +} from '@constructive-io/graphql-query/runtime'; +import { createFetch } from '@constructive-io/graphql-query/runtime'; + +import type { + ConnectionState, + ConnectionStateListener, + RealtimeConfig, + SubscribeOptions, + SubscriptionEvent, + SubscriptionFieldMeta, + Unsubscribe, +} from './realtime'; +import { RealtimeManager } from './realtime'; + +export type { + GraphQLAdapter, + GraphQLError, + QueryResult, +} from '@constructive-io/graphql-query/runtime'; + +export type { + ConnectionState, + ConnectionStateListener, + RealtimeConfig, + SubscribeOptions, + SubscriptionEvent, + SubscriptionFieldMeta, + SubscriptionOperation, + Unsubscribe, + WsClient, +} from './realtime'; +export { RealtimeManager } from './realtime'; + +/** + * Default adapter that uses fetch for HTTP requests. + * + * When no custom fetch is provided, uses @constructive-io/fetch which + * handles *.localhost DNS rewriting and Host header preservation in + * Node.js. Pass a custom fetch to override for test mocking or custom + * proxy/credentials. + */ +export class FetchAdapter implements GraphQLAdapter { + private headers: Record; + private fetchFn: typeof globalThis.fetch; + + constructor( + private endpoint: string, + headers?: Record, + fetchFn?: typeof globalThis.fetch + ) { + this.headers = headers ?? {}; + this.fetchFn = (fetchFn ?? createFetch()).bind(globalThis); + } + + async execute(document: string, variables?: Record): Promise> { + const response = await this.fetchFn(this.endpoint, { + method: 'POST', + headers: { + 'Content-Type': 'application/json', + Accept: 'application/json', + ...this.headers, + }, + body: JSON.stringify({ + query: document, + variables: variables ?? {}, + }), + }); + + if (!response.ok) { + return { + ok: false, + data: null, + errors: [{ message: `HTTP ${response.status}: ${response.statusText}` }], + }; + } + + const json = (await response.json()) as { + data?: T; + errors?: GraphQLError[]; + }; + + if (json.errors && json.errors.length > 0) { + return { + ok: false, + data: null, + errors: json.errors, + }; + } + + return { + ok: true, + data: json.data as T, + errors: undefined, + }; + } + + setHeaders(headers: Record): void { + this.headers = { ...this.headers, ...headers }; + } + + getEndpoint(): string { + return this.endpoint; + } +} + +/** + * Configuration for creating an ORM client. + * Either provide endpoint (and optional headers/fetch) for HTTP requests, + * or provide a custom adapter for alternative execution strategies. + */ +export interface OrmClientConfig { + /** GraphQL endpoint URL (required if adapter not provided) */ + endpoint?: string; + /** Default headers for HTTP requests (only used with endpoint) */ + headers?: Record; + /** + * Custom fetch implementation. Defaults to createFetch() from + * @constructive-io/graphql-query/runtime which handles *.localhost + * DNS and Host headers in Node.js. Pass your own for test mocking + * or custom proxy/credentials. + */ + fetch?: typeof globalThis.fetch; + /** Custom adapter for GraphQL execution (overrides endpoint/headers/fetch) */ + adapter?: GraphQLAdapter; + /** + * Optional realtime (WebSocket) configuration. + * When provided, enables subscription methods on models. + * The WebSocket connection is created lazily on first subscribe(). + */ + realtime?: RealtimeConfig; +} + +/** + * Describe a single GraphQL error, falling back to its `extensions.code` when + * the server omits `message` so the error never renders as an empty string. + */ +function describeGraphQLError(error: GraphQLError): string { + if (error.message) return error.message; + const code = error.extensions?.code; + return typeof code === 'string' ? code : 'Unknown error'; +} + +/** + * Error thrown when GraphQL request fails + */ +export class GraphQLRequestError extends Error { + constructor( + public readonly errors: GraphQLError[], + public readonly data: unknown = null + ) { + const messages = errors.map(describeGraphQLError).join('; '); + super(`GraphQL Error: ${messages}`); + this.name = 'GraphQLRequestError'; + } +} + +export class OrmClient { + private adapter: GraphQLAdapter; + private realtimeManager?: RealtimeManager; + + constructor(config: OrmClientConfig) { + if (config.adapter) { + this.adapter = config.adapter; + } else if (config.endpoint) { + this.adapter = new FetchAdapter(config.endpoint, config.headers, config.fetch); + } else { + throw new Error('OrmClientConfig requires either an endpoint or a custom adapter'); + } + + if (config.realtime) { + this.realtimeManager = new RealtimeManager(config.realtime); + } + } + + async execute(document: string, variables?: Record): Promise> { + return this.adapter.execute(document, variables); + } + + /** + * Subscribe to a GraphQL subscription operation. + * Used by generated model subscribe() methods. + * @throws Error if realtime is not configured + */ + subscribe( + meta: SubscriptionFieldMeta, + document: string, + variables: Record, + options: { + onEvent: (event: SubscriptionEvent) => void; + onError?: (error: Error) => void; + onComplete?: () => void; + } + ): Unsubscribe { + if (!this.realtimeManager) { + throw new Error( + 'Realtime not configured. Pass a `realtime` option to createClient() to enable subscriptions.' + ); + } + return this.realtimeManager.subscribe(meta, document, variables, options); + } + + /** + * Set headers for requests. + * Only works if the adapter supports headers. + */ + setHeaders(headers: Record): void { + if (this.adapter.setHeaders) { + this.adapter.setHeaders(headers); + } + } + + /** + * Get the endpoint URL. + * Returns empty string if the adapter doesn't have an endpoint. + */ + getEndpoint(): string { + return this.adapter.getEndpoint?.() ?? ''; + } + + /** Get current WebSocket connection state */ + getConnectionState(): ConnectionState { + return this.realtimeManager?.getConnectionState() ?? 'disconnected'; + } + + /** Register a listener for WebSocket connection state changes */ + onConnectionStateChange(listener: ConnectionStateListener): Unsubscribe { + if (!this.realtimeManager) return () => {}; + return this.realtimeManager.onConnectionStateChange(listener); + } + + /** Number of active subscriptions */ + getActiveSubscriptionCount(): number { + return this.realtimeManager?.getActiveSubscriptionCount() ?? 0; + } + + /** Whether realtime is configured */ + get isRealtimeEnabled(): boolean { + return this.realtimeManager !== undefined; + } + + /** Dispose the realtime manager (close WebSocket) */ + dispose(): void { + this.realtimeManager?.dispose(); + } +} diff --git a/sdk/constructive-react/src/remote/orm/index.ts b/sdk/constructive-react/src/remote/orm/index.ts new file mode 100644 index 0000000000..e166dd236a --- /dev/null +++ b/sdk/constructive-react/src/remote/orm/index.ts @@ -0,0 +1,49 @@ +/** + * ORM Client - createClient factory + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from './client'; +import type { OrmClientConfig } from './client'; +import { MachineModel } from './models/machine'; +import { MachineMessageModel } from './models/machineMessage'; +import { MachineSessionModel } from './models/machineSession'; +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 { createMutationOperations } from './mutation'; +/** + * Create an ORM client instance + * + * @example + * ```typescript + * const db = createClient({ + * endpoint: 'https://api.example.com/graphql', + * headers: { Authorization: 'Bearer token' }, + * }); + * + * // Query users + * const users = await db.user.findMany({ + * select: { id: true, name: true }, + * first: 10, + * }).execute(); + * + * // Create a user + * const newUser = await db.user.create({ + * data: { name: 'John', email: 'john@example.com' }, + * select: { id: true }, + * }).execute(); + * ``` + */ +export function createClient(config: OrmClientConfig) { + const client = new OrmClient(config); + return { + machine: new MachineModel(client), + machineMessage: new MachineMessageModel(client), + machineSession: new MachineSessionModel(client), + mutation: createMutationOperations(client), + }; +} diff --git a/sdk/constructive-react/src/remote/orm/input-types.ts b/sdk/constructive-react/src/remote/orm/input-types.ts new file mode 100644 index 0000000000..190f46da9e --- /dev/null +++ b/sdk/constructive-react/src/remote/orm/input-types.ts @@ -0,0 +1,1629 @@ +/** + * GraphQL types for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +// ============ Scalar Filter Types ============ +export interface StringFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; + includes?: string; + notIncludes?: string; + includesInsensitive?: string; + notIncludesInsensitive?: string; + startsWith?: string; + notStartsWith?: string; + startsWithInsensitive?: string; + notStartsWithInsensitive?: string; + endsWith?: string; + notEndsWith?: string; + endsWithInsensitive?: string; + notEndsWithInsensitive?: string; + like?: string; + notLike?: string; + likeInsensitive?: string; + notLikeInsensitive?: string; +} +export interface IntFilter { + isNull?: boolean; + equalTo?: number; + notEqualTo?: number; + distinctFrom?: number; + notDistinctFrom?: number; + in?: number[]; + notIn?: number[]; + lessThan?: number; + lessThanOrEqualTo?: number; + greaterThan?: number; + greaterThanOrEqualTo?: number; +} +export interface FloatFilter { + isNull?: boolean; + equalTo?: number; + notEqualTo?: number; + distinctFrom?: number; + notDistinctFrom?: number; + in?: number[]; + notIn?: number[]; + lessThan?: number; + lessThanOrEqualTo?: number; + greaterThan?: number; + greaterThanOrEqualTo?: number; +} +export interface BooleanFilter { + isNull?: boolean; + equalTo?: boolean; + notEqualTo?: boolean; +} +export interface UUIDFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; +} +export interface DatetimeFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; +} +export interface DateFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; +} +export interface JSONFilter { + isNull?: boolean; + equalTo?: Record; + notEqualTo?: Record; + distinctFrom?: Record; + notDistinctFrom?: Record; + contains?: Record; + containedBy?: Record; + containsKey?: string; + containsAllKeys?: string[]; + containsAnyKeys?: string[]; +} +export interface BigIntFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; +} +export interface BigFloatFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; +} +export interface BitStringFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; +} +export interface InternetAddressFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; + contains?: string; + containsOrEqualTo?: string; + containedBy?: string; + containedByOrEqualTo?: string; + containsOrContainedBy?: string; +} +export interface FullTextFilter { + matches?: string; +} +export interface VectorFilter { + isNull?: boolean; + equalTo?: number[]; + notEqualTo?: number[]; + distinctFrom?: number[]; + notDistinctFrom?: number[]; +} +export interface StringListFilter { + isNull?: boolean; + equalTo?: string[]; + notEqualTo?: string[]; + distinctFrom?: string[]; + notDistinctFrom?: string[]; + lessThan?: string[]; + lessThanOrEqualTo?: string[]; + greaterThan?: string[]; + greaterThanOrEqualTo?: string[]; + contains?: string[]; + containedBy?: string[]; + overlaps?: string[]; + anyEqualTo?: string; + anyNotEqualTo?: string; + anyLessThan?: string; + anyLessThanOrEqualTo?: string; + anyGreaterThan?: string; + anyGreaterThanOrEqualTo?: string; +} +export interface IntListFilter { + isNull?: boolean; + equalTo?: number[]; + notEqualTo?: number[]; + distinctFrom?: number[]; + notDistinctFrom?: number[]; + lessThan?: number[]; + lessThanOrEqualTo?: number[]; + greaterThan?: number[]; + greaterThanOrEqualTo?: number[]; + contains?: number[]; + containedBy?: number[]; + overlaps?: number[]; + anyEqualTo?: number; + anyNotEqualTo?: number; + anyLessThan?: number; + anyLessThanOrEqualTo?: number; + anyGreaterThan?: number; + anyGreaterThanOrEqualTo?: number; +} +export interface UUIDListFilter { + isNull?: boolean; + equalTo?: string[]; + notEqualTo?: string[]; + distinctFrom?: string[]; + notDistinctFrom?: string[]; + lessThan?: string[]; + lessThanOrEqualTo?: string[]; + greaterThan?: string[]; + greaterThanOrEqualTo?: string[]; + contains?: string[]; + containedBy?: string[]; + overlaps?: string[]; + anyEqualTo?: string; + anyNotEqualTo?: string; + anyLessThan?: string; + anyLessThanOrEqualTo?: string; + anyGreaterThan?: string; + anyGreaterThanOrEqualTo?: string; +} +/** Computers enrolled for remote control, one row per database enrollment */ +// ============ Entity Types ============ +export interface Machine { + createdAt?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + /** Entity that owns this machine (a personal entity for my own laptop, an org for a shared box) */ + entityId?: string | null; + /** What the runner advertises: os, arch, hostname, shells, pty, installed agents, max_sessions */ + facts?: Record | null; + id: string; + /** Whether this machine is a shared runner anyone with the session capability may use (false: owner only) */ + isShared?: boolean | null; + /** Human-readable machine name (dan-macbook) */ + label?: string | null; + /** Last heartbeat from the runner; online is derived from this */ + lastSeenAt?: string | null; + /** User who enrolled this machine */ + ownerId?: string | null; + /** Server-side copy of the local policy: mode, approved commands, allowed cwds and env keys */ + policy?: Record | null; + /** Principal this machine acts as (set with the row by _enroll) */ + principalId?: string | null; + /** When enrollment was revoked; the relay refuses a revoked machine */ + revokedAt?: string | null; + /** Hash of the enrollment credential the runner presents */ + tokenHash?: string | null; + updatedAt?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +/** Partitioned append-only ledger of session input, output and lifecycle */ +export interface MachineMessage { + /** Who produced this message: the user, or the machine acting as its principal */ + actorId?: string | null; + /** Body of the message; its shape follows the kind */ + content?: Record | null; + /** Acting principal (agent, API key, or user) who created this record */ + createdByPrincipal?: string | null; + /** Entity that owns the machine this message was exchanged with */ + entityId?: string | null; + /** Unique identifier (uuidv7 provides temporal ordering) */ + id: string; + /** What this message is: command, stdin, signal, resize, stdout, stderr, cwd, exit, state, policy */ + kind?: string | null; + /** User who owns the session this message belongs to (inherited) */ + ownerId?: string | null; + /** When the message was recorded (partition key) */ + recordedAt?: string | null; + /** Position in the session's ledger, monotonically increasing */ + seq?: string | null; + /** Session this message belongs to */ + sessionId?: string | null; +} +/** Command or terminal sessions running on an enrolled machine */ +export interface MachineSession { + /** How a bound session runs the agent: cli (the user's installed CLI) or embedded (our loop) */ + agentMode?: string | null; + /** The CLI's own resumable session identifier (agent_mode = cli) */ + agentSessionRef?: string | null; + /** Arguments the command is spawned with */ + args?: string[] | null; + /** Terminal width, preserved across reattach */ + cols?: number | null; + /** Program the runner spawns for this session */ + command?: string | null; + createdAt?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + /** Working directory the runner last reported */ + cwd?: string | null; + /** When the session reached a terminal state */ + endedAt?: string | null; + /** Entity that owns the machine this session runs on */ + entityId?: string | null; + /** Non-secret environment variables for the process; policy gates which keys are allowed */ + env?: Record | null; + /** Process exit status, once it ended */ + exitCode?: number | null; + id: string; + /** Whether raw PTY bytes ride the socket (interactive) or every command is a ledger row */ + interactive?: boolean | null; + /** Last time bytes moved in either direction */ + lastActivityAt?: string | null; + /** Highest ledger sequence recorded for this session */ + lastSeq?: string | null; + /** Machine this session runs on */ + machineId?: string | null; + /** Session detail (client, shell integration, scrollback pointer) */ + metadata?: Record | null; + /** User who opened this session */ + ownerId?: string | null; + /** Process id on the machine, while it is running */ + pid?: number | null; + /** Agent run this session executes locally (NULL for a plain terminal) */ + runId?: string | null; + /** When the process was spawned */ + startedAt?: string | null; + /** Lifecycle: pending, running, detached, exited, killed, failed */ + state?: string | null; + /** Terminal height, preserved across reattach */ + termRows?: number | null; + updatedAt?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +// ============ Relation Helper Types ============ +export interface ConnectionResult { + nodes: T[]; + totalCount: number; + pageInfo: PageInfo; +} +export interface PageInfo { + hasNextPage: boolean; + hasPreviousPage: boolean; + startCursor?: string | null; + endCursor?: string | null; +} +// ============ Entity Relation Types ============ +export interface MachineRelations { + machineSessions?: ConnectionResult; +} +export interface MachineMessageRelations { + session?: MachineSession | null; +} +export interface MachineSessionRelations { + machine?: Machine | null; + machineMessagesBySessionId?: ConnectionResult; +} +// ============ Entity Types With Relations ============ +export type MachineWithRelations = Machine & MachineRelations; +export type MachineMessageWithRelations = MachineMessage & MachineMessageRelations; +export type MachineSessionWithRelations = MachineSession & MachineSessionRelations; +// ============ Entity Select Types ============ +export type MachineSelect = { + createdAt?: boolean; + createdBy?: boolean; + createdByPrincipal?: boolean; + entityId?: boolean; + facts?: boolean; + id?: boolean; + isShared?: boolean; + label?: boolean; + lastSeenAt?: boolean; + ownerId?: boolean; + policy?: boolean; + principalId?: boolean; + revokedAt?: boolean; + tokenHash?: boolean; + updatedAt?: boolean; + updatedBy?: boolean; + updatedByPrincipal?: boolean; + machineSessions?: { + select: MachineSessionSelect; + first?: number; + filter?: MachineSessionFilter; + orderBy?: MachineSessionOrderBy[]; + }; +}; +export type MachineMessageSelect = { + actorId?: boolean; + content?: boolean; + createdByPrincipal?: boolean; + entityId?: boolean; + id?: boolean; + kind?: boolean; + ownerId?: boolean; + recordedAt?: boolean; + seq?: boolean; + sessionId?: boolean; + session?: { + select: MachineSessionSelect; + }; +}; +export type MachineSessionSelect = { + agentMode?: boolean; + agentSessionRef?: boolean; + args?: boolean; + cols?: boolean; + command?: boolean; + createdAt?: boolean; + createdBy?: boolean; + createdByPrincipal?: boolean; + cwd?: boolean; + endedAt?: boolean; + entityId?: boolean; + env?: boolean; + exitCode?: boolean; + id?: boolean; + interactive?: boolean; + lastActivityAt?: boolean; + lastSeq?: boolean; + machineId?: boolean; + metadata?: boolean; + ownerId?: boolean; + pid?: boolean; + runId?: boolean; + startedAt?: boolean; + state?: boolean; + termRows?: boolean; + updatedAt?: boolean; + updatedBy?: boolean; + updatedByPrincipal?: boolean; + machine?: { + select: MachineSelect; + }; + machineMessagesBySessionId?: { + select: MachineMessageSelect; + first?: number; + filter?: MachineMessageFilter; + orderBy?: MachineMessageOrderBy[]; + }; +}; +// ============ Table Filter Types ============ +export interface MachineFilter { + /** Checks for all expressions in this list. */ + and?: MachineFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `facts` field. */ + facts?: JSONFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isShared` field. */ + isShared?: BooleanFilter; + /** Filter by the object’s `label` field. */ + label?: StringFilter; + /** Filter by the object’s `lastSeenAt` field. */ + lastSeenAt?: DatetimeFilter; + /** Filter by the object’s `machineSessions` relation. */ + machineSessions?: MachineToManyMachineSessionFilter; + /** `machineSessions` exist. */ + machineSessionsExist?: boolean; + /** Negates the expression. */ + not?: MachineFilter; + /** Checks for any expressions in this list. */ + or?: MachineFilter[]; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `policy` field. */ + policy?: JSONFilter; + /** Filter by the object’s `principalId` field. */ + principalId?: UUIDFilter; + /** Filter by the object’s `revokedAt` field. */ + revokedAt?: DatetimeFilter; + /** Filter by the object’s `tokenHash` field. */ + tokenHash?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} +export interface MachineMessageFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: MachineMessageFilter[]; + /** Filter by the object’s `content` field. */ + content?: JSONFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Negates the expression. */ + not?: MachineMessageFilter; + /** Checks for any expressions in this list. */ + or?: MachineMessageFilter[]; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `recordedAt` field. */ + recordedAt?: DatetimeFilter; + /** Filter by the object’s `seq` field. */ + seq?: BigIntFilter; + /** Filter by the object’s `session` relation. */ + session?: MachineSessionFilter; + /** Filter by the object’s `sessionId` field. */ + sessionId?: UUIDFilter; +} +export interface MachineSessionFilter { + /** Filter by the object’s `agentMode` field. */ + agentMode?: StringFilter; + /** Filter by the object’s `agentSessionRef` field. */ + agentSessionRef?: StringFilter; + /** Checks for all expressions in this list. */ + and?: MachineSessionFilter[]; + /** Filter by the object’s `args` field. */ + args?: StringListFilter; + /** Filter by the object’s `cols` field. */ + cols?: IntFilter; + /** Filter by the object’s `command` field. */ + command?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `cwd` field. */ + cwd?: StringFilter; + /** Filter by the object’s `endedAt` field. */ + endedAt?: DatetimeFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `env` field. */ + env?: JSONFilter; + /** Filter by the object’s `exitCode` field. */ + exitCode?: IntFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `interactive` field. */ + interactive?: BooleanFilter; + /** Filter by the object’s `lastActivityAt` field. */ + lastActivityAt?: DatetimeFilter; + /** Filter by the object’s `lastSeq` field. */ + lastSeq?: BigIntFilter; + /** Filter by the object’s `machine` relation. */ + machine?: MachineFilter; + /** Filter by the object’s `machineId` field. */ + machineId?: UUIDFilter; + /** Filter by the object’s `machineMessagesBySessionId` relation. */ + machineMessagesBySessionId?: MachineSessionToManyMachineMessageFilter; + /** `machineMessagesBySessionId` exist. */ + machineMessagesBySessionIdExist?: boolean; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Negates the expression. */ + not?: MachineSessionFilter; + /** Checks for any expressions in this list. */ + or?: MachineSessionFilter[]; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `pid` field. */ + pid?: IntFilter; + /** Filter by the object’s `runId` field. */ + runId?: UUIDFilter; + /** Filter by the object’s `startedAt` field. */ + startedAt?: DatetimeFilter; + /** Filter by the object’s `state` field. */ + state?: StringFilter; + /** Filter by the object’s `termRows` field. */ + termRows?: IntFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} +// ============ OrderBy Types ============ +export type MachineOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'FACTS_ASC' + | 'FACTS_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_SHARED_ASC' + | 'IS_SHARED_DESC' + | 'LABEL_ASC' + | 'LABEL_DESC' + | 'LAST_SEEN_AT_ASC' + | 'LAST_SEEN_AT_DESC' + | 'NATURAL' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'POLICY_ASC' + | 'POLICY_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PRINCIPAL_ID_ASC' + | 'PRINCIPAL_ID_DESC' + | 'REVOKED_AT_ASC' + | 'REVOKED_AT_DESC' + | 'TOKEN_HASH_ASC' + | 'TOKEN_HASH_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +export type MachineMessageOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'CONTENT_ASC' + | 'CONTENT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'KIND_ASC' + | 'KIND_DESC' + | 'NATURAL' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'RECORDED_AT_ASC' + | 'RECORDED_AT_DESC' + | 'SEQ_ASC' + | 'SEQ_DESC' + | 'SESSION_ID_ASC' + | 'SESSION_ID_DESC'; +export type MachineSessionOrderBy = + | 'AGENT_MODE_ASC' + | 'AGENT_MODE_DESC' + | 'AGENT_SESSION_REF_ASC' + | 'AGENT_SESSION_REF_DESC' + | 'ARGS_ASC' + | 'ARGS_DESC' + | 'COLS_ASC' + | 'COLS_DESC' + | 'COMMAND_ASC' + | 'COMMAND_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'CWD_ASC' + | 'CWD_DESC' + | 'ENDED_AT_ASC' + | 'ENDED_AT_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'ENV_ASC' + | 'ENV_DESC' + | 'EXIT_CODE_ASC' + | 'EXIT_CODE_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'INTERACTIVE_ASC' + | 'INTERACTIVE_DESC' + | 'LAST_ACTIVITY_AT_ASC' + | 'LAST_ACTIVITY_AT_DESC' + | 'LAST_SEQ_ASC' + | 'LAST_SEQ_DESC' + | 'MACHINE_ID_ASC' + | 'MACHINE_ID_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'NATURAL' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'PID_ASC' + | 'PID_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'RUN_ID_ASC' + | 'RUN_ID_DESC' + | 'STARTED_AT_ASC' + | 'STARTED_AT_DESC' + | 'STATE_ASC' + | 'STATE_DESC' + | 'TERM_ROWS_ASC' + | 'TERM_ROWS_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +// ============ CRUD Input Types ============ +export interface CreateMachineInput { + clientMutationId?: string; + machine: { + createdBy?: string; + createdByPrincipal?: string; + entityId: string; + facts?: Record; + isShared?: boolean; + label: string; + lastSeenAt?: string; + ownerId: string; + policy?: Record; + principalId?: string; + revokedAt?: string; + tokenHash: string; + updatedBy?: string; + updatedByPrincipal?: string; + }; +} +export interface MachinePatch { + createdBy?: string | null; + createdByPrincipal?: string | null; + entityId?: string | null; + facts?: Record | null; + isShared?: boolean | null; + label?: string | null; + lastSeenAt?: string | null; + ownerId?: string | null; + policy?: Record | null; + principalId?: string | null; + revokedAt?: string | null; + tokenHash?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdateMachineInput { + clientMutationId?: string; + id: string; + machinePatch: MachinePatch; +} +export interface DeleteMachineInput { + clientMutationId?: string; + id: string; +} +export interface CreateMachineMessageInput { + clientMutationId?: string; + machineMessage: { + actorId: string; + content?: Record; + createdByPrincipal?: string; + entityId: string; + kind: string; + ownerId: string; + recordedAt?: string; + seq: string; + sessionId: string; + }; +} +export interface MachineMessagePatch { + actorId?: string | null; + content?: Record | null; + createdByPrincipal?: string | null; + entityId?: string | null; + kind?: string | null; + ownerId?: string | null; + recordedAt?: string | null; + seq?: string | null; + sessionId?: string | null; +} +export interface UpdateMachineMessageInput { + clientMutationId?: string; + id: string; + machineMessagePatch: MachineMessagePatch; +} +export interface DeleteMachineMessageInput { + clientMutationId?: string; + id: string; +} +export interface CreateMachineSessionInput { + clientMutationId?: string; + machineSession: { + agentMode?: string; + agentSessionRef?: string; + args?: string[]; + cols?: number; + command?: string; + createdBy?: string; + createdByPrincipal?: string; + cwd?: string; + endedAt?: string; + entityId: string; + env?: Record; + exitCode?: number; + interactive?: boolean; + lastActivityAt?: string; + lastSeq?: string; + machineId: string; + metadata?: Record; + ownerId: string; + pid?: number; + runId?: string; + startedAt?: string; + state?: string; + termRows?: number; + updatedBy?: string; + updatedByPrincipal?: string; + }; +} +export interface MachineSessionPatch { + agentMode?: string | null; + agentSessionRef?: string | null; + args?: string[] | null; + cols?: number | null; + command?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + cwd?: string | null; + endedAt?: string | null; + entityId?: string | null; + env?: Record | null; + exitCode?: number | null; + interactive?: boolean | null; + lastActivityAt?: string | null; + lastSeq?: string | null; + machineId?: string | null; + metadata?: Record | null; + ownerId?: string | null; + pid?: number | null; + runId?: string | null; + startedAt?: string | null; + state?: string | null; + termRows?: number | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdateMachineSessionInput { + clientMutationId?: string; + id: string; + machineSessionPatch: MachineSessionPatch; +} +export interface DeleteMachineSessionInput { + clientMutationId?: string; + id: string; +} +// ============ Connection Fields Map ============ +export const connectionFieldsMap = { + Machine: { + machineSessions: 'MachineSession', + }, + MachineSession: { + machineMessagesBySessionId: 'MachineMessage', + }, +} as Record>; +// ============ Custom Input Types (from schema) ============ +export interface MachinesEnrollInput { + clientMutationId?: string; + entityId?: string; + isShared?: boolean; + label?: string; + tokenHash?: 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 many `MachineSession` object types. All fields are combined with a logical ‘and.’ */ +export interface MachineToManyMachineSessionFilter { + /** Filters to entities where every related entity matches. */ + every?: MachineSessionFilter; + /** Filters to entities where no related entity matches. */ + none?: MachineSessionFilter; + /** Filters to entities where at least one related entity matches. */ + some?: MachineSessionFilter; +} +/** A filter to be used against many `MachineMessage` object types. All fields are combined with a logical ‘and.’ */ +export interface MachineSessionToManyMachineMessageFilter { + /** Filters to entities where every related entity matches. */ + every?: MachineMessageFilter; + /** Filters to entities where no related entity matches. */ + none?: MachineMessageFilter; + /** Filters to entities where at least one related entity matches. */ + some?: MachineMessageFilter; +} +/** An input for mutations affecting `Machine` */ +export interface MachineInput { + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** Entity that owns this machine (a personal entity for my own laptop, an org for a shared box) */ + entityId: string; + /** What the runner advertises: os, arch, hostname, shells, pty, installed agents, max_sessions */ + facts?: Record; + id?: string; + /** Whether this machine is a shared runner anyone with the session capability may use (false: owner only) */ + isShared?: boolean; + /** Human-readable machine name (dan-macbook) */ + label: string; + /** Last heartbeat from the runner; online is derived from this */ + lastSeenAt?: string; + /** User who enrolled this machine */ + ownerId: string; + /** Server-side copy of the local policy: mode, approved commands, allowed cwds and env keys */ + policy?: Record; + /** Principal this machine acts as (set with the row by _enroll) */ + principalId?: string; + /** When enrollment was revoked; the relay refuses a revoked machine */ + revokedAt?: string; + /** Hash of the enrollment credential the runner presents */ + tokenHash: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; +} +/** An input for mutations affecting `MachineMessage` */ +export interface MachineMessageInput { + /** Who produced this message: the user, or the machine acting as its principal */ + actorId: string; + /** Body of the message; its shape follows the kind */ + content?: Record; + /** Acting principal (agent, API key, or user) who created this record */ + createdByPrincipal?: string; + /** Entity that owns the machine this message was exchanged with */ + entityId: string; + /** Unique identifier (uuidv7 provides temporal ordering) */ + id?: string; + /** What this message is: command, stdin, signal, resize, stdout, stderr, cwd, exit, state, policy */ + kind: string; + /** User who owns the session this message belongs to (inherited) */ + ownerId: string; + /** When the message was recorded (partition key) */ + recordedAt?: string; + /** Position in the session's ledger, monotonically increasing */ + seq: string; + /** Session this message belongs to */ + sessionId: string; +} +/** An input for mutations affecting `MachineSession` */ +export interface MachineSessionInput { + /** How a bound session runs the agent: cli (the user's installed CLI) or embedded (our loop) */ + agentMode?: string; + /** The CLI's own resumable session identifier (agent_mode = cli) */ + agentSessionRef?: string; + /** Arguments the command is spawned with */ + args?: string[]; + /** Terminal width, preserved across reattach */ + cols?: number; + /** Program the runner spawns for this session */ + command?: string; + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** Working directory the runner last reported */ + cwd?: string; + /** When the session reached a terminal state */ + endedAt?: string; + /** Entity that owns the machine this session runs on */ + entityId: string; + /** Non-secret environment variables for the process; policy gates which keys are allowed */ + env?: Record; + /** Process exit status, once it ended */ + exitCode?: number; + id?: string; + /** Whether raw PTY bytes ride the socket (interactive) or every command is a ledger row */ + interactive?: boolean; + /** Last time bytes moved in either direction */ + lastActivityAt?: string; + /** Highest ledger sequence recorded for this session */ + lastSeq?: string; + /** Machine this session runs on */ + machineId: string; + /** Session detail (client, shell integration, scrollback pointer) */ + metadata?: Record; + /** User who opened this session */ + ownerId: string; + /** Process id on the machine, while it is running */ + pid?: number; + /** Agent run this session executes locally (NULL for a plain terminal) */ + runId?: string; + /** When the process was spawned */ + startedAt?: string; + /** Lifecycle: pending, running, detached, exited, killed, failed */ + state?: string; + /** Terminal height, preserved across reattach */ + termRows?: number; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; +} +/** A filter to be used against `MachineSession` object types. All fields are combined with a logical ‘and.’ */ +export interface MachineSessionFilter { + /** Filter by the object’s `agentMode` field. */ + agentMode?: StringFilter; + /** Filter by the object’s `agentSessionRef` field. */ + agentSessionRef?: StringFilter; + /** Checks for all expressions in this list. */ + and?: MachineSessionFilter[]; + /** Filter by the object’s `args` field. */ + args?: StringListFilter; + /** Filter by the object’s `cols` field. */ + cols?: IntFilter; + /** Filter by the object’s `command` field. */ + command?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `cwd` field. */ + cwd?: StringFilter; + /** Filter by the object’s `endedAt` field. */ + endedAt?: DatetimeFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `env` field. */ + env?: JSONFilter; + /** Filter by the object’s `exitCode` field. */ + exitCode?: IntFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `interactive` field. */ + interactive?: BooleanFilter; + /** Filter by the object’s `lastActivityAt` field. */ + lastActivityAt?: DatetimeFilter; + /** Filter by the object’s `lastSeq` field. */ + lastSeq?: BigIntFilter; + /** Filter by the object’s `machine` relation. */ + machine?: MachineFilter; + /** Filter by the object’s `machineId` field. */ + machineId?: UUIDFilter; + /** Filter by the object’s `machineMessagesBySessionId` relation. */ + machineMessagesBySessionId?: MachineSessionToManyMachineMessageFilter; + /** `machineMessagesBySessionId` exist. */ + machineMessagesBySessionIdExist?: boolean; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Negates the expression. */ + not?: MachineSessionFilter; + /** Checks for any expressions in this list. */ + or?: MachineSessionFilter[]; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `pid` field. */ + pid?: IntFilter; + /** Filter by the object’s `runId` field. */ + runId?: UUIDFilter; + /** Filter by the object’s `startedAt` field. */ + startedAt?: DatetimeFilter; + /** Filter by the object’s `state` field. */ + state?: StringFilter; + /** Filter by the object’s `termRows` field. */ + termRows?: IntFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} +/** A filter to be used against `MachineMessage` object types. All fields are combined with a logical ‘and.’ */ +export interface MachineMessageFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: MachineMessageFilter[]; + /** Filter by the object’s `content` field. */ + content?: JSONFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Negates the expression. */ + not?: MachineMessageFilter; + /** Checks for any expressions in this list. */ + or?: MachineMessageFilter[]; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `recordedAt` field. */ + recordedAt?: DatetimeFilter; + /** Filter by the object’s `seq` field. */ + seq?: BigIntFilter; + /** Filter by the object’s `session` relation. */ + session?: MachineSessionFilter; + /** Filter by the object’s `sessionId` field. */ + sessionId?: UUIDFilter; +} +/** 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 filter to be used against String List fields. All fields are combined with a logical ‘and.’ */ +export interface StringListFilter { + /** Any array item is equal to the specified value. */ + anyEqualTo?: string; + /** Any array item is greater than the specified value. */ + anyGreaterThan?: string; + /** Any array item is greater than or equal to the specified value. */ + anyGreaterThanOrEqualTo?: string; + /** Any array item is less than the specified value. */ + anyLessThan?: string; + /** Any array item is less than or equal to the specified value. */ + anyLessThanOrEqualTo?: string; + /** Any array item is not equal to the specified value. */ + anyNotEqualTo?: string; + /** Contained by the specified list of values. */ + containedBy?: string[]; + /** Contains the specified list of values. */ + contains?: string[]; + /** 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[]; + /** 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[]; + /** Overlaps the specified list of values. */ + overlaps?: string[]; +} +/** 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 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 JSON fields. All fields are combined with a logical ‘and.’ */ +export interface JSONFilter { + /** Contained by the specified JSON. */ + containedBy?: Record; + /** Contains the specified JSON. */ + contains?: Record; + /** Contains all of the specified keys. */ + containsAllKeys?: string[]; + /** Contains any of the specified keys. */ + containsAnyKeys?: string[]; + /** Contains the specified key. */ + containsKey?: string; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: Record; + /** Equal to the specified value. */ + equalTo?: Record; + /** Greater than the specified value. */ + greaterThan?: Record; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: Record; + /** Included in the specified list. */ + in?: Record[]; + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Less than the specified value. */ + lessThan?: Record; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: Record; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: Record; + /** Not equal to the specified value. */ + notEqualTo?: Record; + /** Not included in the specified list. */ + notIn?: Record[]; +} +/** 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. */ + 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 `Machine` object types. All fields are combined with a logical ‘and.’ */ +export interface MachineFilter { + /** Checks for all expressions in this list. */ + and?: MachineFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `facts` field. */ + facts?: JSONFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isShared` field. */ + isShared?: BooleanFilter; + /** Filter by the object’s `label` field. */ + label?: StringFilter; + /** Filter by the object’s `lastSeenAt` field. */ + lastSeenAt?: DatetimeFilter; + /** Filter by the object’s `machineSessions` relation. */ + machineSessions?: MachineToManyMachineSessionFilter; + /** `machineSessions` exist. */ + machineSessionsExist?: boolean; + /** Negates the expression. */ + not?: MachineFilter; + /** Checks for any expressions in this list. */ + or?: MachineFilter[]; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `policy` field. */ + policy?: JSONFilter; + /** Filter by the object’s `principalId` field. */ + principalId?: UUIDFilter; + /** Filter by the object’s `revokedAt` field. */ + revokedAt?: DatetimeFilter; + /** Filter by the object’s `tokenHash` field. */ + tokenHash?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} +// ============ Payload/Return Types (for custom operations) ============ +export interface MachinesEnrollPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type MachinesEnrollPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface ProvisionBucketPayload { + /** The logical bucket row that was queued for reconciliation. */ + bucketId: string; + bucketKey: string; + /** The reconciler job enqueued to provision this bucket. */ + jobId: string; + /** The physical bucket name already recorded, or null when reconciliation has not completed. */ + physicalName?: string | null; +} +export type ProvisionBucketPayloadSelect = { + bucketId?: boolean; + bucketKey?: boolean; + jobId?: boolean; + physicalName?: boolean; +}; +export interface CreateMachinePayload { + clientMutationId?: string | null; + /** The `Machine` that was created by this mutation. */ + machine?: Machine | null; + machineEdge?: MachineEdge | null; +} +export type CreateMachinePayloadSelect = { + clientMutationId?: boolean; + machine?: { + select: MachineSelect; + }; + machineEdge?: { + select: MachineEdgeSelect; + }; +}; +export interface UpdateMachinePayload { + clientMutationId?: string | null; + /** The `Machine` that was updated by this mutation. */ + machine?: Machine | null; + machineEdge?: MachineEdge | null; +} +export type UpdateMachinePayloadSelect = { + clientMutationId?: boolean; + machine?: { + select: MachineSelect; + }; + machineEdge?: { + select: MachineEdgeSelect; + }; +}; +export interface DeleteMachinePayload { + clientMutationId?: string | null; + /** The `Machine` that was deleted by this mutation. */ + machine?: Machine | null; + machineEdge?: MachineEdge | null; +} +export type DeleteMachinePayloadSelect = { + clientMutationId?: boolean; + machine?: { + select: MachineSelect; + }; + machineEdge?: { + select: MachineEdgeSelect; + }; +}; +export interface CreateMachineMessagePayload { + clientMutationId?: string | null; + /** The `MachineMessage` that was created by this mutation. */ + machineMessage?: MachineMessage | null; + machineMessageEdge?: MachineMessageEdge | null; +} +export type CreateMachineMessagePayloadSelect = { + clientMutationId?: boolean; + machineMessage?: { + select: MachineMessageSelect; + }; + machineMessageEdge?: { + select: MachineMessageEdgeSelect; + }; +}; +export interface UpdateMachineMessagePayload { + clientMutationId?: string | null; + /** The `MachineMessage` that was updated by this mutation. */ + machineMessage?: MachineMessage | null; + machineMessageEdge?: MachineMessageEdge | null; +} +export type UpdateMachineMessagePayloadSelect = { + clientMutationId?: boolean; + machineMessage?: { + select: MachineMessageSelect; + }; + machineMessageEdge?: { + select: MachineMessageEdgeSelect; + }; +}; +export interface DeleteMachineMessagePayload { + clientMutationId?: string | null; + /** The `MachineMessage` that was deleted by this mutation. */ + machineMessage?: MachineMessage | null; + machineMessageEdge?: MachineMessageEdge | null; +} +export type DeleteMachineMessagePayloadSelect = { + clientMutationId?: boolean; + machineMessage?: { + select: MachineMessageSelect; + }; + machineMessageEdge?: { + select: MachineMessageEdgeSelect; + }; +}; +export interface CreateMachineSessionPayload { + clientMutationId?: string | null; + /** The `MachineSession` that was created by this mutation. */ + machineSession?: MachineSession | null; + machineSessionEdge?: MachineSessionEdge | null; +} +export type CreateMachineSessionPayloadSelect = { + clientMutationId?: boolean; + machineSession?: { + select: MachineSessionSelect; + }; + machineSessionEdge?: { + select: MachineSessionEdgeSelect; + }; +}; +export interface UpdateMachineSessionPayload { + clientMutationId?: string | null; + /** The `MachineSession` that was updated by this mutation. */ + machineSession?: MachineSession | null; + machineSessionEdge?: MachineSessionEdge | null; +} +export type UpdateMachineSessionPayloadSelect = { + clientMutationId?: boolean; + machineSession?: { + select: MachineSessionSelect; + }; + machineSessionEdge?: { + select: MachineSessionEdgeSelect; + }; +}; +export interface DeleteMachineSessionPayload { + clientMutationId?: string | null; + /** The `MachineSession` that was deleted by this mutation. */ + machineSession?: MachineSession | null; + machineSessionEdge?: MachineSessionEdge | null; +} +export type DeleteMachineSessionPayloadSelect = { + clientMutationId?: boolean; + machineSession?: { + select: MachineSessionSelect; + }; + machineSessionEdge?: { + select: MachineSessionEdgeSelect; + }; +}; +/** A `Machine` edge in the connection. */ +export interface MachineEdge { + cursor?: string | null; + /** The `Machine` at the end of the edge. */ + node?: Machine | null; +} +export type MachineEdgeSelect = { + cursor?: boolean; + node?: { + select: MachineSelect; + }; +}; +/** A `MachineMessage` edge in the connection. */ +export interface MachineMessageEdge { + cursor?: string | null; + /** The `MachineMessage` at the end of the edge. */ + node?: MachineMessage | null; +} +export type MachineMessageEdgeSelect = { + cursor?: boolean; + node?: { + select: MachineMessageSelect; + }; +}; +/** A `MachineSession` edge in the connection. */ +export interface MachineSessionEdge { + cursor?: string | null; + /** The `MachineSession` at the end of the edge. */ + node?: MachineSession | null; +} +export type MachineSessionEdgeSelect = { + cursor?: boolean; + node?: { + select: MachineSessionSelect; + }; +}; diff --git a/sdk/constructive-react/src/remote/orm/models/index.ts b/sdk/constructive-react/src/remote/orm/models/index.ts new file mode 100644 index 0000000000..91a87d0214 --- /dev/null +++ b/sdk/constructive-react/src/remote/orm/models/index.ts @@ -0,0 +1,8 @@ +/** + * Models barrel export + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +export { MachineModel } from './machine'; +export { MachineMessageModel } from './machineMessage'; +export { MachineSessionModel } from './machineSession'; diff --git a/sdk/constructive-react/src/remote/orm/models/machine.ts b/sdk/constructive-react/src/remote/orm/models/machine.ts new file mode 100644 index 0000000000..b30f06e2c5 --- /dev/null +++ b/sdk/constructive-react/src/remote/orm/models/machine.ts @@ -0,0 +1,245 @@ +/** + * Machine 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 { + Machine, + MachineWithRelations, + MachineSelect, + MachineFilter, + MachineOrderBy, + CreateMachineInput, + UpdateMachineInput, + MachinePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class MachineModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + machines: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'Machine', + 'machines', + 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, + }, + 'MachineFilter', + 'MachineOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Machine', + fieldName: 'machines', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + machine: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'Machine', + 'machines', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'MachineFilter', + 'MachineOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Machine', + fieldName: 'machine', + document, + variables, + transform: (data: { + machines?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + machine: data.machines?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + machine: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'Machine', + 'machines', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'MachineFilter', + 'MachineOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Machine', + fieldName: 'machine', + document, + variables, + transform: (data: { + machines?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + machine: data.machines?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createMachine: { + machine: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'Machine', + 'createMachine', + 'machine', + args.select, + args.data, + 'CreateMachineInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Machine', + fieldName: 'createMachine', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + MachinePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateMachine: { + machine: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'Machine', + 'updateMachine', + 'machine', + args.select, + args.where.id, + args.data, + 'UpdateMachineInput', + 'id', + 'machinePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Machine', + fieldName: 'updateMachine', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteMachine: { + machine: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'Machine', + 'deleteMachine', + 'machine', + { + id: args.where.id, + }, + 'DeleteMachineInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Machine', + fieldName: 'deleteMachine', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/remote/orm/models/machineMessage.ts b/sdk/constructive-react/src/remote/orm/models/machineMessage.ts new file mode 100644 index 0000000000..16346811e1 --- /dev/null +++ b/sdk/constructive-react/src/remote/orm/models/machineMessage.ts @@ -0,0 +1,250 @@ +/** + * MachineMessage 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 { + MachineMessage, + MachineMessageWithRelations, + MachineMessageSelect, + MachineMessageFilter, + MachineMessageOrderBy, + CreateMachineMessageInput, + UpdateMachineMessageInput, + MachineMessagePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class MachineMessageModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + machineMessages: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'MachineMessage', + 'machineMessages', + 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, + }, + 'MachineMessageFilter', + 'MachineMessageOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'MachineMessage', + fieldName: 'machineMessages', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + machineMessage: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'MachineMessage', + 'machineMessages', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'MachineMessageFilter', + 'MachineMessageOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'MachineMessage', + fieldName: 'machineMessage', + document, + variables, + transform: (data: { + machineMessages?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + machineMessage: data.machineMessages?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + machineMessage: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'MachineMessage', + 'machineMessages', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'MachineMessageFilter', + 'MachineMessageOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'MachineMessage', + fieldName: 'machineMessage', + document, + variables, + transform: (data: { + machineMessages?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + machineMessage: data.machineMessages?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createMachineMessage: { + machineMessage: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'MachineMessage', + 'createMachineMessage', + 'machineMessage', + args.select, + args.data, + 'CreateMachineMessageInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'MachineMessage', + fieldName: 'createMachineMessage', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + recordedAt: string; + }, + MachineMessagePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateMachineMessage: { + machineMessage: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'MachineMessage', + 'updateMachineMessage', + 'machineMessage', + args.select, + args.where.id, + args.data, + 'UpdateMachineMessageInput', + 'id', + 'machineMessagePatch', + connectionFieldsMap, + { + recordedAt: args.where.recordedAt, + } + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'MachineMessage', + fieldName: 'updateMachineMessage', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + recordedAt: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteMachineMessage: { + machineMessage: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'MachineMessage', + 'deleteMachineMessage', + 'machineMessage', + { + id: args.where.id, + recordedAt: args.where.recordedAt, + }, + 'DeleteMachineMessageInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'MachineMessage', + fieldName: 'deleteMachineMessage', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/remote/orm/models/machineSession.ts b/sdk/constructive-react/src/remote/orm/models/machineSession.ts new file mode 100644 index 0000000000..1d28455f83 --- /dev/null +++ b/sdk/constructive-react/src/remote/orm/models/machineSession.ts @@ -0,0 +1,245 @@ +/** + * MachineSession 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 { + MachineSession, + MachineSessionWithRelations, + MachineSessionSelect, + MachineSessionFilter, + MachineSessionOrderBy, + CreateMachineSessionInput, + UpdateMachineSessionInput, + MachineSessionPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class MachineSessionModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + machineSessions: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'MachineSession', + 'machineSessions', + 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, + }, + 'MachineSessionFilter', + 'MachineSessionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'MachineSession', + fieldName: 'machineSessions', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + machineSession: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'MachineSession', + 'machineSessions', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'MachineSessionFilter', + 'MachineSessionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'MachineSession', + fieldName: 'machineSession', + document, + variables, + transform: (data: { + machineSessions?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + machineSession: data.machineSessions?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + machineSession: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'MachineSession', + 'machineSessions', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'MachineSessionFilter', + 'MachineSessionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'MachineSession', + fieldName: 'machineSession', + document, + variables, + transform: (data: { + machineSessions?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + machineSession: data.machineSessions?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createMachineSession: { + machineSession: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'MachineSession', + 'createMachineSession', + 'machineSession', + args.select, + args.data, + 'CreateMachineSessionInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'MachineSession', + fieldName: 'createMachineSession', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + MachineSessionPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateMachineSession: { + machineSession: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'MachineSession', + 'updateMachineSession', + 'machineSession', + args.select, + args.where.id, + args.data, + 'UpdateMachineSessionInput', + 'id', + 'machineSessionPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'MachineSession', + fieldName: 'updateMachineSession', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteMachineSession: { + machineSession: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'MachineSession', + 'deleteMachineSession', + 'machineSession', + { + id: args.where.id, + }, + 'DeleteMachineSessionInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'MachineSession', + fieldName: 'deleteMachineSession', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/remote/orm/mutation/index.ts b/sdk/constructive-react/src/remote/orm/mutation/index.ts new file mode 100644 index 0000000000..7108c9c67c --- /dev/null +++ b/sdk/constructive-react/src/remote/orm/mutation/index.ts @@ -0,0 +1,93 @@ +/** + * Custom mutation 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 type { + MachinesEnrollInput, + ProvisionBucketInput, + MachinesEnrollPayload, + ProvisionBucketPayload, + MachinesEnrollPayloadSelect, + ProvisionBucketPayloadSelect, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export interface MachinesEnrollVariables { + input: MachinesEnrollInput; +} +/** + * Variables for provisionBucket + * Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. + */ +export interface ProvisionBucketVariables { + input: ProvisionBucketInput; +} +export function createMutationOperations(client: OrmClient) { + return { + machinesEnroll: ( + args: MachinesEnrollVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + machinesEnroll: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'MachinesEnroll', + fieldName: 'machinesEnroll', + ...buildCustomDocument( + 'mutation', + 'MachinesEnroll', + 'machinesEnroll', + options.select, + args, + [ + { + name: 'input', + type: 'MachinesEnrollInput!', + }, + ], + connectionFieldsMap, + 'MachinesEnrollPayload' + ), + }), + provisionBucket: ( + args: ProvisionBucketVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + provisionBucket: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'ProvisionBucket', + fieldName: 'provisionBucket', + ...buildCustomDocument( + 'mutation', + 'ProvisionBucket', + 'provisionBucket', + options.select, + args, + [ + { + name: 'input', + type: 'ProvisionBucketInput!', + }, + ], + connectionFieldsMap, + 'ProvisionBucketPayload' + ), + }), + }; +} diff --git a/sdk/constructive-react/src/remote/orm/query-builder.ts b/sdk/constructive-react/src/remote/orm/query-builder.ts new file mode 100644 index 0000000000..fd785bbae6 --- /dev/null +++ b/sdk/constructive-react/src/remote/orm/query-builder.ts @@ -0,0 +1,1047 @@ +/** + * Query Builder - Builds and executes GraphQL operations + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { parseType, print } from '@constructive-io/graphql-query/runtime'; +import * as t from 'gql-ast'; +import type { ArgumentNode, EnumValueNode, FieldNode, VariableDefinitionNode } from 'graphql'; + +import { GraphQLRequestError, OrmClient, QueryResult } from './client'; + +export interface QueryBuilderConfig { + client: OrmClient; + operation: 'query' | 'mutation'; + operationName: string; + fieldName: string; + document: string; + variables?: Record; + transform?: (data: any) => TResult; +} + +export class QueryBuilder { + private config: QueryBuilderConfig; + + constructor(config: QueryBuilderConfig) { + this.config = config; + } + + /** + * Execute the query and return a discriminated union result + * Use result.ok to check success, or .unwrap() to throw on error + */ + async execute(): Promise> { + const rawResult = await this.config.client.execute( + this.config.document, + this.config.variables + ); + if (!rawResult.ok) { + return rawResult; + } + if (!this.config.transform) { + return rawResult as unknown as QueryResult; + } + return { + ok: true, + data: this.config.transform(rawResult.data), + errors: undefined, + }; + } + + /** + * Execute and unwrap the result, throwing GraphQLRequestError on failure + * @throws {GraphQLRequestError} If the query returns errors + */ + async unwrap(): Promise { + const result = await this.execute(); + if (!result.ok) { + throw new GraphQLRequestError(result.errors, result.data); + } + return result.data; + } + + /** + * Execute and unwrap, returning defaultValue on error instead of throwing + */ + async unwrapOr(defaultValue: D): Promise { + const result = await this.execute(); + if (!result.ok) { + return defaultValue; + } + return result.data; + } + + /** + * Execute and unwrap, calling onError callback on failure + */ + async unwrapOrElse( + onError: (errors: import('./client').GraphQLError[]) => D + ): Promise { + const result = await this.execute(); + if (!result.ok) { + return onError(result.errors); + } + return result.data; + } + + toGraphQL(): string { + return this.config.document; + } + + getVariables(): Record | undefined { + return this.config.variables; + } +} + +const OP_QUERY = 'query' as unknown as import('graphql').OperationTypeNode; +const OP_MUTATION = 'mutation' as unknown as import('graphql').OperationTypeNode; +const ENUM_VALUE_KIND = 'EnumValue' as unknown as EnumValueNode['kind']; + +// ============================================================================ +// Selection Builders +// ============================================================================ + +export function buildSelections( + select: Record | undefined, + connectionFieldsMap?: Record>, + entityType?: string +): FieldNode[] { + if (!select) { + return []; + } + + const fields: FieldNode[] = []; + const entityConnections = entityType ? connectionFieldsMap?.[entityType] : undefined; + + for (const [key, value] of Object.entries(select)) { + if (value === false || value === undefined) { + continue; + } + + if (value === true) { + fields.push(t.field({ name: key })); + continue; + } + + if (typeof value === 'object' && value !== null) { + const nested = value as { + select?: Record; + args?: Record; + first?: number; + filter?: Record; + orderBy?: string[]; + connection?: boolean; + }; + + // Field with arguments (e.g. requestUploadUrl on bucket types) + if (nested.args && typeof nested.args === 'object') { + const fieldArgs = Object.entries(nested.args).map(([argName, argValue]) => + t.argument({ name: argName, value: buildValueAst(argValue) }) + ); + const nestedSelect = nested.select; + if (nestedSelect && typeof nestedSelect === 'object') { + const subSelections = Object.entries(nestedSelect) + .filter(([, v]) => v) + .map(([name]) => t.field({ name })); + fields.push( + t.field({ + name: key, + args: fieldArgs.length ? fieldArgs : undefined, + selectionSet: subSelections.length + ? t.selectionSet({ selections: subSelections }) + : undefined, + }) + ); + } else { + fields.push( + t.field({ + name: key, + args: fieldArgs.length ? fieldArgs : undefined, + }) + ); + } + continue; + } + + if (!nested.select || typeof nested.select !== 'object') { + throw new Error( + `Invalid selection for field "${key}": nested selections must include a "select" object.` + ); + } + + const relatedEntityType = entityConnections?.[key]; + const nestedSelections = buildSelections( + nested.select, + connectionFieldsMap, + relatedEntityType + ); + const isConnection = + nested.connection === true || + nested.first !== undefined || + nested.filter !== undefined || + relatedEntityType !== undefined; + const args = buildArgs([ + buildOptionalArg('first', nested.first), + nested.filter + ? t.argument({ + name: 'filter', + value: buildValueAst(nested.filter), + }) + : null, + buildEnumListArg('orderBy', nested.orderBy), + ]); + + if (isConnection) { + fields.push( + t.field({ + name: key, + args, + selectionSet: t.selectionSet({ + selections: buildConnectionSelections(nestedSelections), + }), + }) + ); + } else { + fields.push( + t.field({ + name: key, + args, + selectionSet: t.selectionSet({ selections: nestedSelections }), + }) + ); + } + } + } + + return fields; +} + +// ============================================================================ +// Document Builders +// ============================================================================ + +export function buildFindManyDocument( + operationName: string, + queryField: string, + select: TSelect, + args: { + where?: TWhere; + orderBy?: string[]; + first?: number; + last?: number; + after?: string; + before?: string; + offset?: number; + }, + filterTypeName: string, + orderByTypeName: string, + connectionFieldsMap?: Record> +): { document: string; variables: Record } { + const selections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + const variableDefinitions: VariableDefinitionNode[] = []; + const queryArgs: ArgumentNode[] = []; + const variables: Record = {}; + + addVariable( + { + varName: 'where', + typeName: filterTypeName, + value: args.where, + }, + variableDefinitions, + queryArgs, + variables + ); + addVariable( + { + varName: 'orderBy', + typeName: '[' + orderByTypeName + '!]', + value: args.orderBy?.length ? args.orderBy : undefined, + }, + variableDefinitions, + queryArgs, + variables + ); + addVariable( + { varName: 'first', typeName: 'Int', value: args.first }, + variableDefinitions, + queryArgs, + variables + ); + addVariable( + { varName: 'last', typeName: 'Int', value: args.last }, + variableDefinitions, + queryArgs, + variables + ); + addVariable( + { varName: 'after', typeName: 'Cursor', value: args.after }, + variableDefinitions, + queryArgs, + variables + ); + addVariable( + { varName: 'before', typeName: 'Cursor', value: args.before }, + variableDefinitions, + queryArgs, + variables + ); + addVariable( + { varName: 'offset', typeName: 'Int', value: args.offset }, + variableDefinitions, + queryArgs, + variables + ); + + const document = t.document({ + definitions: [ + t.operationDefinition({ + operation: OP_QUERY, + name: operationName + 'Query', + variableDefinitions: variableDefinitions.length ? variableDefinitions : undefined, + selectionSet: t.selectionSet({ + selections: [ + t.field({ + name: queryField, + args: queryArgs.length ? queryArgs : undefined, + selectionSet: t.selectionSet({ + selections: buildConnectionSelections(selections), + }), + }), + ], + }), + }), + ], + }); + + return { document: print(document), variables }; +} + +export function buildFindFirstDocument( + operationName: string, + queryField: string, + select: TSelect, + args: { where?: TWhere; orderBy?: string[] }, + filterTypeName: string, + orderByTypeName: string, + connectionFieldsMap?: Record> +): { document: string; variables: Record } { + const selections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + const variableDefinitions: VariableDefinitionNode[] = []; + const queryArgs: ArgumentNode[] = []; + const variables: Record = {}; + + // Always add first: 1 for findFirst + addVariable( + { varName: 'first', typeName: 'Int', value: 1 }, + variableDefinitions, + queryArgs, + variables + ); + addVariable( + { + varName: 'where', + typeName: filterTypeName, + value: args.where, + }, + variableDefinitions, + queryArgs, + variables + ); + addVariable( + { + varName: 'orderBy', + typeName: '[' + orderByTypeName + '!]', + value: args.orderBy?.length ? args.orderBy : undefined, + }, + variableDefinitions, + queryArgs, + variables + ); + + const document = t.document({ + definitions: [ + t.operationDefinition({ + operation: OP_QUERY, + name: operationName + 'Query', + variableDefinitions, + selectionSet: t.selectionSet({ + selections: [ + t.field({ + name: queryField, + args: queryArgs, + selectionSet: t.selectionSet({ + selections: [ + t.field({ + name: 'nodes', + selectionSet: t.selectionSet({ selections }), + }), + ], + }), + }), + ], + }), + }), + ], + }); + + return { document: print(document), variables }; +} + +export function buildCreateDocument( + operationName: string, + mutationField: string, + entityField: string, + select: TSelect, + data: TData, + inputTypeName: string, + connectionFieldsMap?: Record> +): { document: string; variables: Record } { + const selections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + return { + document: buildInputMutationDocument({ + operationName, + mutationField, + inputTypeName, + resultSelections: [ + t.field({ + name: entityField, + selectionSet: t.selectionSet({ selections }), + }), + ], + }), + variables: { + input: { + [entityField]: data, + }, + }, + }; +} + +export function buildUpdateDocument( + operationName: string, + mutationField: string, + entityField: string, + select: TSelect, + where: TWhere, + data: TData, + inputTypeName: string, + patchFieldName: string, + connectionFieldsMap?: Record> +): { document: string; variables: Record } { + const selections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + return { + document: buildInputMutationDocument({ + operationName, + mutationField, + inputTypeName, + resultSelections: [ + t.field({ + name: entityField, + selectionSet: t.selectionSet({ selections }), + }), + ], + }), + variables: { + input: { + id: where.id, + [patchFieldName]: data, + }, + }, + }; +} + +export function buildUpdateByPkDocument( + operationName: string, + mutationField: string, + entityField: string, + select: TSelect, + id: string | number, + data: TData, + inputTypeName: string, + idFieldName: string, + patchFieldName: string, + connectionFieldsMap?: Record>, + extraKeys?: Record +): { document: string; variables: Record } { + const selections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + return { + document: buildInputMutationDocument({ + operationName, + mutationField, + inputTypeName, + resultSelections: [ + t.field({ + name: entityField, + selectionSet: t.selectionSet({ selections }), + }), + ], + }), + variables: { + input: { + [idFieldName]: id, + ...extraKeys, + [patchFieldName]: data, + }, + }, + }; +} + +export function buildFindOneDocument( + operationName: string, + queryField: string, + id: string | number, + select: TSelect, + idArgName: string, + idTypeName: string, + connectionFieldsMap?: Record> +): { document: string; variables: Record } { + const selections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + const variableDefinitions: VariableDefinitionNode[] = [ + t.variableDefinition({ + variable: t.variable({ name: idArgName }), + type: parseType(idTypeName), + }), + ]; + + const queryArgs: ArgumentNode[] = [ + t.argument({ + name: idArgName, + value: t.variable({ name: idArgName }), + }), + ]; + + const document = t.document({ + definitions: [ + t.operationDefinition({ + operation: OP_QUERY, + name: operationName + 'Query', + variableDefinitions, + selectionSet: t.selectionSet({ + selections: [ + t.field({ + name: queryField, + args: queryArgs, + selectionSet: t.selectionSet({ selections }), + }), + ], + }), + }), + ], + }); + + return { + document: print(document), + variables: { [idArgName]: id }, + }; +} + +export function buildDeleteDocument( + operationName: string, + mutationField: string, + entityField: string, + where: TWhere, + inputTypeName: string, + select?: TSelect, + connectionFieldsMap?: Record> +): { document: string; variables: Record } { + const entitySelections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + return { + document: buildInputMutationDocument({ + operationName, + mutationField, + inputTypeName, + resultSelections: [ + t.field({ + name: entityField, + selectionSet: t.selectionSet({ + selections: entitySelections, + }), + }), + ], + }), + variables: { + input: { + id: where.id, + }, + }, + }; +} + +export function buildDeleteByPkDocument( + operationName: string, + mutationField: string, + entityField: string, + keys: Record, + inputTypeName: string, + select?: TSelect, + connectionFieldsMap?: Record> +): { document: string; variables: Record } { + const entitySelections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + return { + document: buildInputMutationDocument({ + operationName, + mutationField, + inputTypeName, + resultSelections: [ + t.field({ + name: entityField, + selectionSet: t.selectionSet({ selections: entitySelections }), + }), + ], + }), + variables: { + input: keys, + }, + }; +} + +export function buildJunctionRemoveDocument( + operationName: string, + mutationField: string, + keys: Record, + inputTypeName: string +): { document: string; variables: Record } { + return { + document: buildInputMutationDocument({ + operationName, + mutationField, + inputTypeName, + resultSelections: [t.field({ name: 'clientMutationId' })], + }), + variables: { + input: keys, + }, + }; +} + +export function buildCustomDocument( + operationType: 'query' | 'mutation', + operationName: string, + fieldName: string, + select: TSelect, + args: TArgs, + variableDefinitions: Array<{ name: string; type: string }>, + connectionFieldsMap?: Record>, + entityType?: string +): { document: string; variables: Record } { + let actualSelect: TSelect = select; + let isConnection = false; + + if (isCustomSelectionWrapper(select)) { + actualSelect = select.select as TSelect; + isConnection = select.connection === true; + } + + const selections = actualSelect + ? buildSelections(actualSelect as Record, connectionFieldsMap, entityType) + : []; + + const variableDefs = variableDefinitions.map((definition) => + t.variableDefinition({ + variable: t.variable({ name: definition.name }), + type: parseType(definition.type), + }) + ); + const fieldArgs = variableDefinitions.map((definition) => + t.argument({ + name: definition.name, + value: t.variable({ name: definition.name }), + }) + ); + + const fieldSelections = isConnection ? buildConnectionSelections(selections) : selections; + + const document = t.document({ + definitions: [ + t.operationDefinition({ + operation: operationType === 'mutation' ? OP_MUTATION : OP_QUERY, + name: operationName, + variableDefinitions: variableDefs.length ? variableDefs : undefined, + selectionSet: t.selectionSet({ + selections: [ + t.field({ + name: fieldName, + args: fieldArgs.length ? fieldArgs : undefined, + selectionSet: fieldSelections.length + ? t.selectionSet({ selections: fieldSelections }) + : undefined, + }), + ], + }), + }), + ], + }); + + return { + document: print(document), + variables: (args ?? {}) as Record, + }; +} + +function isCustomSelectionWrapper( + value: unknown +): value is { select: Record; connection?: boolean } { + if (!value || typeof value !== 'object' || Array.isArray(value)) { + return false; + } + + const record = value as Record; + const keys = Object.keys(record); + + if (!keys.includes('select') || !keys.includes('connection')) { + return false; + } + + if (keys.some((key) => key !== 'select' && key !== 'connection')) { + return false; + } + + return !!record.select && typeof record.select === 'object' && !Array.isArray(record.select); +} + +// ============================================================================ +// Helper Functions +// ============================================================================ + +function buildArgs(args: Array): ArgumentNode[] { + return args.filter((arg): arg is ArgumentNode => arg !== null); +} + +function buildOptionalArg(name: string, value: number | string | undefined): ArgumentNode | null { + if (value === undefined) { + return null; + } + const valueNode = + typeof value === 'number' ? t.intValue({ value: value.toString() }) : t.stringValue({ value }); + return t.argument({ name, value: valueNode }); +} + +function buildEnumListArg(name: string, values: string[] | undefined): ArgumentNode | null { + if (!values || values.length === 0) { + return null; + } + return t.argument({ + name, + value: t.listValue({ + values: values.map((value) => buildEnumValue(value)), + }), + }); +} + +function buildEnumValue(value: string): EnumValueNode { + return { + kind: ENUM_VALUE_KIND, + value, + }; +} + +function buildPageInfoSelections(): FieldNode[] { + return [ + t.field({ name: 'hasNextPage' }), + t.field({ name: 'hasPreviousPage' }), + t.field({ name: 'startCursor' }), + t.field({ name: 'endCursor' }), + ]; +} + +function buildConnectionSelections(nodeSelections: FieldNode[]): FieldNode[] { + return [ + t.field({ + name: 'nodes', + selectionSet: t.selectionSet({ selections: nodeSelections }), + }), + t.field({ name: 'totalCount' }), + t.field({ + name: 'pageInfo', + selectionSet: t.selectionSet({ selections: buildPageInfoSelections() }), + }), + ]; +} + +interface VariableSpec { + varName: string; + argName?: string; + typeName?: string; + value: unknown; +} + +interface InputMutationConfig { + operationName: string; + mutationField: string; + inputTypeName: string; + resultSelections: FieldNode[]; +} + +function buildInputMutationDocument(config: InputMutationConfig): string { + const document = t.document({ + definitions: [ + t.operationDefinition({ + operation: OP_MUTATION, + name: config.operationName + 'Mutation', + variableDefinitions: [ + t.variableDefinition({ + variable: t.variable({ name: 'input' }), + type: parseType(config.inputTypeName + '!'), + }), + ], + selectionSet: t.selectionSet({ + selections: [ + t.field({ + name: config.mutationField, + args: [ + t.argument({ + name: 'input', + value: t.variable({ name: 'input' }), + }), + ], + selectionSet: t.selectionSet({ + selections: config.resultSelections, + }), + }), + ], + }), + }), + ], + }); + return print(document); +} + +function addVariable( + spec: VariableSpec, + definitions: VariableDefinitionNode[], + args: ArgumentNode[], + variables: Record +): void { + if (spec.value === undefined || !spec.typeName) return; + + definitions.push( + t.variableDefinition({ + variable: t.variable({ name: spec.varName }), + type: parseType(spec.typeName), + }) + ); + args.push( + t.argument({ + name: spec.argName ?? spec.varName, + value: t.variable({ name: spec.varName }), + }) + ); + variables[spec.varName] = spec.value; +} + +function buildValueAst( + value: unknown +): + | ReturnType + | ReturnType + | ReturnType + | ReturnType + | ReturnType + | ReturnType + | ReturnType + | EnumValueNode { + if (value === null) { + return t.nullValue(); + } + + if (typeof value === 'boolean') { + return t.booleanValue({ value }); + } + + if (typeof value === 'number') { + return Number.isInteger(value) + ? t.intValue({ value: value.toString() }) + : t.floatValue({ value: value.toString() }); + } + + if (typeof value === 'string') { + return t.stringValue({ value }); + } + + if (Array.isArray(value)) { + return t.listValue({ + values: value.map((item) => buildValueAst(item)), + }); + } + + if (typeof value === 'object' && value !== null) { + const obj = value as Record; + return t.objectValue({ + fields: Object.entries(obj).map(([key, val]) => + t.objectField({ + name: key, + value: buildValueAst(val), + }) + ), + }); + } + + throw new Error('Unsupported value type: ' + typeof value); +} + +// ============================================================================ +// Bulk Mutation Document Builders +// ============================================================================ + +export function buildBulkInsertDocument( + operationName: string, + mutationField: string, + select: TSelect, + data: TData[], + inputTypeName: string, + onConflict?: unknown, + connectionFieldsMap?: Record> +): { document: string; variables: Record } { + const selections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + return { + document: buildInputMutationDocument({ + operationName, + mutationField, + inputTypeName, + resultSelections: [ + t.field({ name: 'affectedCount' }), + t.field({ + name: 'returning', + selectionSet: t.selectionSet({ selections }), + }), + ], + }), + variables: { + input: { + values: data, + ...(onConflict ? { onConflict } : {}), + }, + }, + }; +} + +export function buildBulkUpsertDocument( + operationName: string, + mutationField: string, + select: TSelect, + data: TData[], + inputTypeName: string, + onConflict: unknown, + connectionFieldsMap?: Record> +): { document: string; variables: Record } { + const selections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + return { + document: buildInputMutationDocument({ + operationName, + mutationField, + inputTypeName, + resultSelections: [ + t.field({ name: 'affectedCount' }), + t.field({ + name: 'returning', + selectionSet: t.selectionSet({ selections }), + }), + ], + }), + variables: { + input: { + values: data, + onConflict, + }, + }, + }; +} + +export function buildBulkUpdateDocument( + operationName: string, + mutationField: string, + select: TSelect, + where: TWhere, + data: TData, + inputTypeName: string, + connectionFieldsMap?: Record> +): { document: string; variables: Record } { + const selections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + return { + document: buildInputMutationDocument({ + operationName, + mutationField, + inputTypeName, + resultSelections: [ + t.field({ name: 'affectedCount' }), + t.field({ + name: 'returning', + selectionSet: t.selectionSet({ selections }), + }), + ], + }), + variables: { + input: { + where, + patch: data, + }, + }, + }; +} + +export function buildBulkDeleteDocument( + operationName: string, + mutationField: string, + select: TSelect, + where: TWhere, + inputTypeName: string, + connectionFieldsMap?: Record> +): { document: string; variables: Record } { + const selections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + return { + document: buildInputMutationDocument({ + operationName, + mutationField, + inputTypeName, + resultSelections: [ + t.field({ name: 'affectedCount' }), + t.field({ + name: 'returning', + selectionSet: t.selectionSet({ selections }), + }), + ], + }), + variables: { + input: { + where, + }, + }, + }; +} diff --git a/sdk/constructive-react/src/remote/orm/realtime.ts b/sdk/constructive-react/src/remote/orm/realtime.ts new file mode 100644 index 0000000000..214eb56203 --- /dev/null +++ b/sdk/constructive-react/src/remote/orm/realtime.ts @@ -0,0 +1,244 @@ +/** + * Realtime Manager - WebSocket subscription support + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +// Minimal type shims so this module compiles without graphql-ws +// installed. Consumers supply a WsClient via RealtimeConfig; +// the SDK itself never imports or requires graphql-ws. + +interface WsGraphQLError { + readonly message: string; + readonly [key: string]: unknown; +} + +interface WsExecutionResult> { + data?: TData | null; + errors?: readonly WsGraphQLError[]; + extensions?: Record; +} + +interface WsSink { + next(value: T): void; + error(error: unknown): void; + complete(): void; +} + +/** + * Minimal interface matching the graphql-ws Client. + * Consumers pass a concrete instance via RealtimeConfig.client. + */ +export interface WsClient { + subscribe>( + payload: { query: string; variables?: Record }, + sink: WsSink> + ): () => void; + dispose(): void; +} + +// ============================================================================ +// Types +// ============================================================================ + +/** The DML operation that triggered the subscription event */ +export type SubscriptionOperation = 'INSERT' | 'UPDATE' | 'DELETE'; + +/** Connection state of the WebSocket */ +export type ConnectionState = 'disconnected' | 'connecting' | 'connected' | 'reconnecting'; + +/** Listener for connection state changes */ +export type ConnectionStateListener = (state: ConnectionState) => void; + +/** Function returned by subscribe() to cancel the subscription */ +export type Unsubscribe = () => void; + +/** + * A realtime subscription event delivered to the client. + * + * @typeParam T - The row type of the subscribed table + */ +export interface SubscriptionEvent { + /** The DML operation that triggered this event */ + operation: SubscriptionOperation; + /** The current row data (null for DELETE if row is no longer visible) */ + data: T | null; + /** Previous field values (populated on UPDATE when available) */ + previousValues?: Partial; + /** Server-side timestamp of when the change occurred */ + timestamp: string; +} + +/** + * Options for creating a subscription. + * + * @typeParam T - The row type of the subscribed table + * @typeParam TFilter - The filter type for the table + */ +export interface SubscribeOptions> { + /** Server-side filter to limit which events are delivered */ + filter?: TFilter; + /** Called when a subscription event is received */ + onEvent: (event: SubscriptionEvent) => void; + /** Called when the subscription encounters an error */ + onError?: (error: Error) => void; + /** Called when the subscription completes (server-initiated close) */ + onComplete?: () => void; +} + +/** + * Metadata about a subscription field, used internally to map + * table names to GraphQL subscription field names and types. + */ +export interface SubscriptionFieldMeta { + /** The GraphQL subscription field name (e.g., 'onContactChanged') */ + fieldName: string; + /** The table name in the source schema (e.g., 'contact') */ + tableName: string; + /** The data field name inside the subscription payload (e.g., 'contact') */ + dataFieldName: string; +} + +/** + * Configuration for the realtime (WebSocket) connection. + * Pass this as the `realtime` option in OrmClientConfig. + * + * @example + * ```ts + * import { createClient } from 'graphql-ws'; + * + * const client = createOrmClient({ + * endpoint: 'https://api.example.com/graphql', + * realtime: { + * client: createClient({ url: 'wss://api.example.com/graphql' }), + * }, + * }); + * ``` + */ +export interface RealtimeConfig { + /** + * A graphql-ws Client instance (or any object satisfying WsClient). + * The consumer creates this themselves, giving full control over + * connection options, auth, and transport. + * + * @example + * ```ts + * import { createClient } from 'graphql-ws'; + * const wsClient = createClient({ url: 'wss://...' }); + * ``` + */ + client: WsClient; +} + +// ============================================================================ +// RealtimeManager +// ============================================================================ + +/** + * Manages a graphql-ws WebSocket client and multiplexes + * subscriptions over it. Created by OrmClient when `realtime` + * config is provided. + */ +export class RealtimeManager { + private wsClient: WsClient; + private connectionState: ConnectionState = 'disconnected'; + private stateListeners: Set = new Set(); + private activeSubscriptions = 0; + + constructor(config: RealtimeConfig) { + this.wsClient = config.client; + } + + /** + * Subscribe to a GraphQL subscription operation. + * Models call this with typed metadata and documents. + */ + subscribe( + meta: SubscriptionFieldMeta, + document: string, + variables: Record, + options: { + onEvent: (event: SubscriptionEvent) => void; + onError?: (error: Error) => void; + onComplete?: () => void; + } + ): Unsubscribe { + this.activeSubscriptions++; + let disposed = false; + + const cleanup = this.wsClient.subscribe>( + { query: document, variables }, + { + next: (result) => { + if (disposed) return; + if (result.errors) { + options.onError?.(new Error(result.errors.map((e) => e.message).join('; '))); + return; + } + + const payload = result.data?.[meta.fieldName] as + | { event?: string; [key: string]: unknown } + | undefined; + + if (!payload) return; + + const event: SubscriptionEvent = { + operation: (payload.event as SubscriptionOperation) ?? 'UPDATE', + data: (payload[meta.dataFieldName] as T) ?? null, + previousValues: payload.previousValues as Partial | undefined, + timestamp: (payload.timestamp as string) ?? new Date().toISOString(), + }; + options.onEvent(event); + }, + error: (err) => { + if (disposed) return; + options.onError?.(err instanceof Error ? err : new Error(String(err))); + }, + complete: () => { + if (disposed) return; + options.onComplete?.(); + }, + } + ); + + return () => { + if (disposed) return; + disposed = true; + this.activeSubscriptions--; + cleanup(); + }; + } + + /** Register a listener for connection state changes */ + onConnectionStateChange(listener: ConnectionStateListener): Unsubscribe { + this.stateListeners.add(listener); + return () => { + this.stateListeners.delete(listener); + }; + } + + /** Get current connection state */ + getConnectionState(): ConnectionState { + return this.connectionState; + } + + /** Number of active subscriptions */ + getActiveSubscriptionCount(): number { + return this.activeSubscriptions; + } + + /** Dispose the manager and close the WebSocket connection */ + dispose(): void { + this.wsClient.dispose(); + this.stateListeners.clear(); + this.activeSubscriptions = 0; + this.setConnectionState('disconnected'); + } + + private setConnectionState(state: ConnectionState): void { + if (this.connectionState === state) return; + this.connectionState = state; + for (const listener of this.stateListeners) { + listener(state); + } + } +} diff --git a/sdk/constructive-react/src/remote/orm/select-types.ts b/sdk/constructive-react/src/remote/orm/select-types.ts new file mode 100644 index 0000000000..4b39d7e820 --- /dev/null +++ b/sdk/constructive-react/src/remote/orm/select-types.ts @@ -0,0 +1,169 @@ +/** + * Type utilities for select inference + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +export interface ConnectionResult { + nodes: T[]; + totalCount: number; + pageInfo: PageInfo; +} + +export interface PageInfo { + hasNextPage: boolean; + hasPreviousPage: boolean; + startCursor?: string | null; + endCursor?: string | null; +} + +export interface FindManyArgs { + select?: TSelect; + where?: TWhere; + orderBy?: TOrderBy[]; + first?: number; + last?: number; + after?: string; + before?: string; + offset?: number; +} + +export interface FindFirstArgs { + select?: TSelect; + where?: TWhere; + orderBy?: TOrderBy[]; +} + +export interface CreateArgs { + data: TData; + select?: TSelect; +} + +export interface UpdateArgs { + where: TWhere; + data: TData; + select?: TSelect; +} + +export type FindOneArgs = { + select?: TSelect; +} & Record; + +export interface DeleteArgs { + where: TWhere; + select?: TSelect; +} + +export interface BulkInsertArgs { + data: TData[]; + select?: TSelect; + onConflict?: TOnConflict; +} + +export interface BulkUpsertArgs { + data: TData[]; + select?: TSelect; + onConflict: TOnConflict; +} + +export interface BulkUpdateArgs { + where: TWhere; + data: TData; + select?: TSelect; +} + +export interface BulkDeleteArgs { + where: TWhere; + select?: TSelect; +} + +export interface BulkMutationResult { + affectedCount: number; + returning: T[]; +} + +type DepthLevel = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10; +type DecrementDepth = { + 0: 0; + 1: 0; + 2: 1; + 3: 2; + 4: 3; + 5: 4; + 6: 5; + 7: 6; + 8: 7; + 9: 8; + 10: 9; +}; + +/** + * Recursively validates select objects, rejecting unknown keys. + * + * NOTE: Depth is intentionally capped to avoid circular-instantiation issues + * in very large cyclic schemas. + */ +export type DeepExact = Depth extends 0 + ? T extends Shape + ? T + : never + : T extends Shape + ? Exclude extends never + ? { + [K in keyof T]: K extends keyof Shape + ? T[K] extends { select: infer NS } + ? Extract extends { + select?: infer ShapeNS; + } + ? DeepExact< + Omit & { + select: DeepExact, DecrementDepth[Depth]>; + }, + Extract, + DecrementDepth[Depth] + > + : never + : T[K] + : never; + } + : never + : never; + +/** + * Enforces exact select shape while keeping contextual typing on `S extends XxxSelect`. + * Use this as an intersection in overloads: + * `{ select: S } & StrictSelect`. + */ +export type StrictSelect = S extends DeepExact ? {} : never; + +/** + * Hook-optimized strict select variant. + * + * Uses a shallower recursion depth to keep editor autocomplete responsive + * in large schemas while still validating common nested-select mistakes. + */ +export type HookStrictSelect = S extends DeepExact ? {} : never; + +/** + * Infer result type from select configuration + */ +export type InferSelectResult = TSelect extends undefined + ? TEntity + : { + [K in keyof TSelect as TSelect[K] extends false | undefined + ? never + : K]: TSelect[K] extends true + ? K extends keyof TEntity + ? TEntity[K] + : never + : TSelect[K] extends { select: infer NestedSelect } + ? K extends keyof TEntity + ? NonNullable extends ConnectionResult + ? ConnectionResult> + : + | InferSelectResult, NestedSelect> + | (null extends TEntity[K] ? null : never) + : never + : K extends keyof TEntity + ? TEntity[K] + : never; + }; diff --git a/sdk/constructive-react/src/remote/orm/types.ts b/sdk/constructive-react/src/remote/orm/types.ts new file mode 100644 index 0000000000..7c1120bcdf --- /dev/null +++ b/sdk/constructive-react/src/remote/orm/types.ts @@ -0,0 +1,8 @@ +/** + * Types re-export + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +// Re-export all types from input-types +export * from './input-types'; diff --git a/sdk/constructive-react/src/remote/schema-types.ts b/sdk/constructive-react/src/remote/schema-types.ts new file mode 100644 index 0000000000..7af0db60bf --- /dev/null +++ b/sdk/constructive-react/src/remote/schema-types.ts @@ -0,0 +1,987 @@ +/** + * GraphQL schema types for custom operations + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import type { + Machine, + MachineMessage, + MachineSession, + BigFloatFilter, + BigIntFilter, + BitStringFilter, + BooleanFilter, + DateFilter, + DatetimeFilter, + FloatFilter, + FullTextFilter, + IntFilter, + IntListFilter, + InternetAddressFilter, + JSONFilter, + StringFilter, + StringListFilter, + UUIDFilter, + UUIDListFilter, + VectorFilter, +} from './types'; +/** Methods to use when ordering `MachineMessage`. */ +export type MachineMessageOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'CONTENT_ASC' + | 'CONTENT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'KIND_ASC' + | 'KIND_DESC' + | 'NATURAL' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'RECORDED_AT_ASC' + | 'RECORDED_AT_DESC' + | 'SEQ_ASC' + | 'SEQ_DESC' + | 'SESSION_ID_ASC' + | 'SESSION_ID_DESC'; +/** Methods to use when ordering `Machine`. */ +export type MachineOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'FACTS_ASC' + | 'FACTS_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_SHARED_ASC' + | 'IS_SHARED_DESC' + | 'LABEL_ASC' + | 'LABEL_DESC' + | 'LAST_SEEN_AT_ASC' + | 'LAST_SEEN_AT_DESC' + | 'NATURAL' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'POLICY_ASC' + | 'POLICY_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PRINCIPAL_ID_ASC' + | 'PRINCIPAL_ID_DESC' + | 'REVOKED_AT_ASC' + | 'REVOKED_AT_DESC' + | 'TOKEN_HASH_ASC' + | 'TOKEN_HASH_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +/** Methods to use when ordering `MachineSession`. */ +export type MachineSessionOrderBy = + | 'AGENT_MODE_ASC' + | 'AGENT_MODE_DESC' + | 'AGENT_SESSION_REF_ASC' + | 'AGENT_SESSION_REF_DESC' + | 'ARGS_ASC' + | 'ARGS_DESC' + | 'COLS_ASC' + | 'COLS_DESC' + | 'COMMAND_ASC' + | 'COMMAND_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'CWD_ASC' + | 'CWD_DESC' + | 'ENDED_AT_ASC' + | 'ENDED_AT_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'ENV_ASC' + | 'ENV_DESC' + | 'EXIT_CODE_ASC' + | 'EXIT_CODE_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'INTERACTIVE_ASC' + | 'INTERACTIVE_DESC' + | 'LAST_ACTIVITY_AT_ASC' + | 'LAST_ACTIVITY_AT_DESC' + | 'LAST_SEQ_ASC' + | 'LAST_SEQ_DESC' + | 'MACHINE_ID_ASC' + | 'MACHINE_ID_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'NATURAL' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'PID_ASC' + | 'PID_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'RUN_ID_ASC' + | 'RUN_ID_DESC' + | 'STARTED_AT_ASC' + | 'STARTED_AT_DESC' + | 'STATE_ASC' + | 'STATE_DESC' + | 'TERM_ROWS_ASC' + | 'TERM_ROWS_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +export interface CreateMachineInput { + clientMutationId?: string; + /** The `Machine` to be created by this mutation. */ + machine: MachineInput; +} +export interface CreateMachineMessageInput { + clientMutationId?: string; + /** The `MachineMessage` to be created by this mutation. */ + machineMessage: MachineMessageInput; +} +export interface CreateMachineSessionInput { + clientMutationId?: string; + /** The `MachineSession` to be created by this mutation. */ + machineSession: MachineSessionInput; +} +export interface DeleteMachineInput { + clientMutationId?: string; + id: string; +} +export interface DeleteMachineMessageInput { + clientMutationId?: string; + /** Unique identifier (uuidv7 provides temporal ordering) */ + id: string; + /** When the message was recorded (partition key) */ + recordedAt: string; +} +export interface DeleteMachineSessionInput { + clientMutationId?: string; + id: string; +} +/** A filter to be used against `Machine` object types. All fields are combined with a logical ‘and.’ */ +export interface MachineFilter { + /** Checks for all expressions in this list. */ + and?: MachineFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `facts` field. */ + facts?: JSONFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isShared` field. */ + isShared?: BooleanFilter; + /** Filter by the object’s `label` field. */ + label?: StringFilter; + /** Filter by the object’s `lastSeenAt` field. */ + lastSeenAt?: DatetimeFilter; + /** Filter by the object’s `machineSessions` relation. */ + machineSessions?: MachineToManyMachineSessionFilter; + /** `machineSessions` exist. */ + machineSessionsExist?: boolean; + /** Negates the expression. */ + not?: MachineFilter; + /** Checks for any expressions in this list. */ + or?: MachineFilter[]; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `policy` field. */ + policy?: JSONFilter; + /** Filter by the object’s `principalId` field. */ + principalId?: UUIDFilter; + /** Filter by the object’s `revokedAt` field. */ + revokedAt?: DatetimeFilter; + /** Filter by the object’s `tokenHash` field. */ + tokenHash?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} +/** An input for mutations affecting `Machine` */ +export interface MachineInput { + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** Entity that owns this machine (a personal entity for my own laptop, an org for a shared box) */ + entityId: string; + /** What the runner advertises: os, arch, hostname, shells, pty, installed agents, max_sessions */ + facts?: unknown; + id?: string; + /** Whether this machine is a shared runner anyone with the session capability may use (false: owner only) */ + isShared?: boolean; + /** Human-readable machine name (dan-macbook) */ + label: string; + /** Last heartbeat from the runner; online is derived from this */ + lastSeenAt?: string; + /** User who enrolled this machine */ + ownerId: string; + /** Server-side copy of the local policy: mode, approved commands, allowed cwds and env keys */ + policy?: unknown; + /** Principal this machine acts as (set with the row by _enroll) */ + principalId?: string; + /** When enrollment was revoked; the relay refuses a revoked machine */ + revokedAt?: string; + /** Hash of the enrollment credential the runner presents */ + tokenHash: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; +} +/** A filter to be used against `MachineMessage` object types. All fields are combined with a logical ‘and.’ */ +export interface MachineMessageFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: MachineMessageFilter[]; + /** Filter by the object’s `content` field. */ + content?: JSONFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Negates the expression. */ + not?: MachineMessageFilter; + /** Checks for any expressions in this list. */ + or?: MachineMessageFilter[]; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `recordedAt` field. */ + recordedAt?: DatetimeFilter; + /** Filter by the object’s `seq` field. */ + seq?: BigIntFilter; + /** Filter by the object’s `session` relation. */ + session?: MachineSessionFilter; + /** Filter by the object’s `sessionId` field. */ + sessionId?: UUIDFilter; +} +/** An input for mutations affecting `MachineMessage` */ +export interface MachineMessageInput { + /** Who produced this message: the user, or the machine acting as its principal */ + actorId: string; + /** Body of the message; its shape follows the kind */ + content?: unknown; + /** Acting principal (agent, API key, or user) who created this record */ + createdByPrincipal?: string; + /** Entity that owns the machine this message was exchanged with */ + entityId: string; + /** Unique identifier (uuidv7 provides temporal ordering) */ + id?: string; + /** What this message is: command, stdin, signal, resize, stdout, stderr, cwd, exit, state, policy */ + kind: string; + /** User who owns the session this message belongs to (inherited) */ + ownerId: string; + /** When the message was recorded (partition key) */ + recordedAt?: string; + /** Position in the session's ledger, monotonically increasing */ + seq: string; + /** Session this message belongs to */ + sessionId: string; +} +/** Represents an update to a `MachineMessage`. Fields that are set will be updated. */ +export interface MachineMessagePatch { + /** Who produced this message: the user, or the machine acting as its principal */ + actorId?: string; + /** Body of the message; its shape follows the kind */ + content?: unknown; + /** Acting principal (agent, API key, or user) who created this record */ + createdByPrincipal?: string; + /** Entity that owns the machine this message was exchanged with */ + entityId?: string; + /** Unique identifier (uuidv7 provides temporal ordering) */ + id?: string; + /** What this message is: command, stdin, signal, resize, stdout, stderr, cwd, exit, state, policy */ + kind?: string; + /** User who owns the session this message belongs to (inherited) */ + ownerId?: string; + /** When the message was recorded (partition key) */ + recordedAt?: string; + /** Position in the session's ledger, monotonically increasing */ + seq?: string; + /** Session this message belongs to */ + sessionId?: string; +} +/** Represents an update to a `Machine`. Fields that are set will be updated. */ +export interface MachinePatch { + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** Entity that owns this machine (a personal entity for my own laptop, an org for a shared box) */ + entityId?: string; + /** What the runner advertises: os, arch, hostname, shells, pty, installed agents, max_sessions */ + facts?: unknown; + id?: string; + /** Whether this machine is a shared runner anyone with the session capability may use (false: owner only) */ + isShared?: boolean; + /** Human-readable machine name (dan-macbook) */ + label?: string; + /** Last heartbeat from the runner; online is derived from this */ + lastSeenAt?: string; + /** User who enrolled this machine */ + ownerId?: string; + /** Server-side copy of the local policy: mode, approved commands, allowed cwds and env keys */ + policy?: unknown; + /** Principal this machine acts as (set with the row by _enroll) */ + principalId?: string; + /** When enrollment was revoked; the relay refuses a revoked machine */ + revokedAt?: string; + /** Hash of the enrollment credential the runner presents */ + tokenHash?: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; +} +/** A filter to be used against `MachineSession` object types. All fields are combined with a logical ‘and.’ */ +export interface MachineSessionFilter { + /** Filter by the object’s `agentMode` field. */ + agentMode?: StringFilter; + /** Filter by the object’s `agentSessionRef` field. */ + agentSessionRef?: StringFilter; + /** Checks for all expressions in this list. */ + and?: MachineSessionFilter[]; + /** Filter by the object’s `args` field. */ + args?: StringListFilter; + /** Filter by the object’s `cols` field. */ + cols?: IntFilter; + /** Filter by the object’s `command` field. */ + command?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `cwd` field. */ + cwd?: StringFilter; + /** Filter by the object’s `endedAt` field. */ + endedAt?: DatetimeFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `env` field. */ + env?: JSONFilter; + /** Filter by the object’s `exitCode` field. */ + exitCode?: IntFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `interactive` field. */ + interactive?: BooleanFilter; + /** Filter by the object’s `lastActivityAt` field. */ + lastActivityAt?: DatetimeFilter; + /** Filter by the object’s `lastSeq` field. */ + lastSeq?: BigIntFilter; + /** Filter by the object’s `machine` relation. */ + machine?: MachineFilter; + /** Filter by the object’s `machineId` field. */ + machineId?: UUIDFilter; + /** Filter by the object’s `machineMessagesBySessionId` relation. */ + machineMessagesBySessionId?: MachineSessionToManyMachineMessageFilter; + /** `machineMessagesBySessionId` exist. */ + machineMessagesBySessionIdExist?: boolean; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Negates the expression. */ + not?: MachineSessionFilter; + /** Checks for any expressions in this list. */ + or?: MachineSessionFilter[]; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `pid` field. */ + pid?: IntFilter; + /** Filter by the object’s `runId` field. */ + runId?: UUIDFilter; + /** Filter by the object’s `startedAt` field. */ + startedAt?: DatetimeFilter; + /** Filter by the object’s `state` field. */ + state?: StringFilter; + /** Filter by the object’s `termRows` field. */ + termRows?: IntFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} +/** An input for mutations affecting `MachineSession` */ +export interface MachineSessionInput { + /** How a bound session runs the agent: cli (the user's installed CLI) or embedded (our loop) */ + agentMode?: string; + /** The CLI's own resumable session identifier (agent_mode = cli) */ + agentSessionRef?: string; + /** Arguments the command is spawned with */ + args?: string[]; + /** Terminal width, preserved across reattach */ + cols?: number; + /** Program the runner spawns for this session */ + command?: string; + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** Working directory the runner last reported */ + cwd?: string; + /** When the session reached a terminal state */ + endedAt?: string; + /** Entity that owns the machine this session runs on */ + entityId: string; + /** Non-secret environment variables for the process; policy gates which keys are allowed */ + env?: unknown; + /** Process exit status, once it ended */ + exitCode?: number; + id?: string; + /** Whether raw PTY bytes ride the socket (interactive) or every command is a ledger row */ + interactive?: boolean; + /** Last time bytes moved in either direction */ + lastActivityAt?: string; + /** Highest ledger sequence recorded for this session */ + lastSeq?: string; + /** Machine this session runs on */ + machineId: string; + /** Session detail (client, shell integration, scrollback pointer) */ + metadata?: unknown; + /** User who opened this session */ + ownerId: string; + /** Process id on the machine, while it is running */ + pid?: number; + /** Agent run this session executes locally (NULL for a plain terminal) */ + runId?: string; + /** When the process was spawned */ + startedAt?: string; + /** Lifecycle: pending, running, detached, exited, killed, failed */ + state?: string; + /** Terminal height, preserved across reattach */ + termRows?: number; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; +} +/** Represents an update to a `MachineSession`. Fields that are set will be updated. */ +export interface MachineSessionPatch { + /** How a bound session runs the agent: cli (the user's installed CLI) or embedded (our loop) */ + agentMode?: string; + /** The CLI's own resumable session identifier (agent_mode = cli) */ + agentSessionRef?: string; + /** Arguments the command is spawned with */ + args?: string[]; + /** Terminal width, preserved across reattach */ + cols?: number; + /** Program the runner spawns for this session */ + command?: string; + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** Working directory the runner last reported */ + cwd?: string; + /** When the session reached a terminal state */ + endedAt?: string; + /** Entity that owns the machine this session runs on */ + entityId?: string; + /** Non-secret environment variables for the process; policy gates which keys are allowed */ + env?: unknown; + /** Process exit status, once it ended */ + exitCode?: number; + id?: string; + /** Whether raw PTY bytes ride the socket (interactive) or every command is a ledger row */ + interactive?: boolean; + /** Last time bytes moved in either direction */ + lastActivityAt?: string; + /** Highest ledger sequence recorded for this session */ + lastSeq?: string; + /** Machine this session runs on */ + machineId?: string; + /** Session detail (client, shell integration, scrollback pointer) */ + metadata?: unknown; + /** User who opened this session */ + ownerId?: string; + /** Process id on the machine, while it is running */ + pid?: number; + /** Agent run this session executes locally (NULL for a plain terminal) */ + runId?: string; + /** When the process was spawned */ + startedAt?: string; + /** Lifecycle: pending, running, detached, exited, killed, failed */ + state?: string; + /** Terminal height, preserved across reattach */ + termRows?: number; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; +} +/** A filter to be used against many `MachineMessage` object types. All fields are combined with a logical ‘and.’ */ +export interface MachineSessionToManyMachineMessageFilter { + /** Filters to entities where every related entity matches. */ + every?: MachineMessageFilter; + /** Filters to entities where no related entity matches. */ + none?: MachineMessageFilter; + /** Filters to entities where at least one related entity matches. */ + some?: MachineMessageFilter; +} +/** A filter to be used against many `MachineSession` object types. All fields are combined with a logical ‘and.’ */ +export interface MachineToManyMachineSessionFilter { + /** Filters to entities where every related entity matches. */ + every?: MachineSessionFilter; + /** Filters to entities where no related entity matches. */ + none?: MachineSessionFilter; + /** Filters to entities where at least one related entity matches. */ + some?: MachineSessionFilter; +} +export interface MachinesEnrollInput { + clientMutationId?: string; + entityId?: string; + isShared?: boolean; + label?: string; + tokenHash?: 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 UpdateMachineInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `Machine` being updated. */ + machinePatch: MachinePatch; +} +export interface UpdateMachineMessageInput { + clientMutationId?: string; + /** Unique identifier (uuidv7 provides temporal ordering) */ + id: string; + /** An object where the defined keys will be set on the `MachineMessage` being updated. */ + machineMessagePatch: MachineMessagePatch; + /** When the message was recorded (partition key) */ + recordedAt: string; +} +export interface UpdateMachineSessionInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `MachineSession` being updated. */ + machineSessionPatch: MachineSessionPatch; +} +/** Root meta schema type */ +export interface MetaSchema { + tables: MetaTable[]; +} +/** A connection to a list of `MachineMessage` values. */ +export interface MachineMessageConnection { + edges: MachineMessageEdge[]; + nodes: MachineMessage[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `MachineSession` values. */ +export interface MachineSessionConnection { + edges: MachineSessionEdge[]; + nodes: MachineSession[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `Machine` values. */ +export interface MachineConnection { + edges: MachineEdge[]; + nodes: Machine[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface CreateMachinePayload { + clientMutationId?: string | null; + /** The `Machine` that was created by this mutation. */ + machine?: Machine | null; + machineEdge?: MachineEdge | null; +} +export interface CreateMachineMessagePayload { + clientMutationId?: string | null; + /** The `MachineMessage` that was created by this mutation. */ + machineMessage?: MachineMessage | null; + machineMessageEdge?: MachineMessageEdge | null; +} +export interface CreateMachineSessionPayload { + clientMutationId?: string | null; + /** The `MachineSession` that was created by this mutation. */ + machineSession?: MachineSession | null; + machineSessionEdge?: MachineSessionEdge | null; +} +export interface DeleteMachinePayload { + clientMutationId?: string | null; + /** The `Machine` that was deleted by this mutation. */ + machine?: Machine | null; + machineEdge?: MachineEdge | null; +} +export interface DeleteMachineMessagePayload { + clientMutationId?: string | null; + /** The `MachineMessage` that was deleted by this mutation. */ + machineMessage?: MachineMessage | null; + machineMessageEdge?: MachineMessageEdge | null; +} +export interface DeleteMachineSessionPayload { + clientMutationId?: string | null; + /** The `MachineSession` that was deleted by this mutation. */ + machineSession?: MachineSession | null; + machineSessionEdge?: MachineSessionEdge | null; +} +export interface MachinesEnrollPayload { + clientMutationId?: string | null; + result?: string | null; +} +export interface ProvisionBucketPayload { + /** The logical bucket row that was queued for reconciliation. */ + bucketId: string; + bucketKey: string; + /** The reconciler job enqueued to provision this bucket. */ + jobId: string; + /** The physical bucket name already recorded, or null when reconciliation has not completed. */ + physicalName?: string | null; +} +export interface UpdateMachinePayload { + clientMutationId?: string | null; + /** The `Machine` that was updated by this mutation. */ + machine?: Machine | null; + machineEdge?: MachineEdge | null; +} +export interface UpdateMachineMessagePayload { + clientMutationId?: string | null; + /** The `MachineMessage` that was updated by this mutation. */ + machineMessage?: MachineMessage | null; + machineMessageEdge?: MachineMessageEdge | null; +} +export interface UpdateMachineSessionPayload { + clientMutationId?: string | null; + /** The `MachineSession` that was updated by this mutation. */ + machineSession?: MachineSession | null; + machineSessionEdge?: MachineSessionEdge | null; +} +/** Information about a database table */ +export interface MetaTable { + constraints: MetaConstraints; + fields: MetaField[]; + foreignKeyConstraints: MetaForeignKeyConstraint[]; + /** i18n metadata (null if no @i18n tag) */ + i18n?: MetaI18n | null; + indexes: MetaIndex[]; + inflection: MetaInflection; + /** Final GraphQL output type name */ + name: string; + primaryKeyConstraints: MetaPrimaryKeyConstraint[]; + query: MetaQuery; + /** Realtime metadata (null if no @realtime tag) */ + realtime?: MetaRealtime | null; + relations: MetaRelations; + schemaName: string; + /** Provisioning scope metadata (null if no @scope tag) */ + scope?: MetaScope | null; + /** Search metadata (null if no search configured) */ + search?: MetaSearch | null; + /** Storage metadata (null if not a storage table) */ + storage?: MetaStorage | null; + /** PostgreSQL table name */ + tableName: string; + uniqueConstraints: MetaUniqueConstraint[]; +} +/** A `MachineMessage` edge in the connection. */ +export interface MachineMessageEdge { + cursor?: string | null; + /** The `MachineMessage` at the end of the edge. */ + node?: MachineMessage | null; +} +/** 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; +} +/** A `MachineSession` edge in the connection. */ +export interface MachineSessionEdge { + cursor?: string | null; + /** The `MachineSession` at the end of the edge. */ + node?: MachineSession | null; +} +/** A `Machine` edge in the connection. */ +export interface MachineEdge { + cursor?: string | null; + /** The `Machine` at the end of the edge. */ + node?: Machine | null; +} +/** Table constraints */ +export interface MetaConstraints { + foreignKey: MetaForeignKeyConstraint[]; + primaryKey?: MetaPrimaryKeyConstraint | null; + unique: MetaUniqueConstraint[]; +} +/** Information about a table field/column */ +export interface MetaField { + /** PostgreSQL column name */ + columnName: string; + description?: string | null; + /** Enum metadata if this field has an enum type */ + enumValues?: MetaEnum | null; + hasDefault: boolean; + isForeignKey: boolean; + isNotNull: boolean; + isPrimaryKey: boolean; + /** Final GraphQL field name */ + name: string; + type: MetaType; +} +/** Information about a foreign key constraint */ +export interface MetaForeignKeyConstraint { + fields: MetaField[]; + name: string; + refFields?: MetaField[] | null; + refTable?: MetaRefTable | null; + referencedFields: string[]; + referencedTable: string; +} +/** i18n metadata for a table with @i18n tag */ +export interface MetaI18n { + /** Fields that are translatable */ + translatableFields: MetaI18nField[]; + /** Name of the translation table */ + translationTable: string; +} +/** Information about a database index */ +export interface MetaIndex { + columns: string[]; + fields?: MetaField[] | null; + isPrimary: boolean; + isUnique: boolean; + name: string; +} +/** Table inflection names */ +export interface MetaInflection { + allRows: string; + conditionType: string; + connection: string; + createInputType: string; + createPayloadType: string; + deletePayloadType: string; + edge: string; + filterType?: string | null; + orderByType: string; + patchType?: string | null; + tableType: string; + updatePayloadType?: string | null; +} +/** Information about a primary key constraint */ +export interface MetaPrimaryKeyConstraint { + fields: MetaField[]; + name: string; +} +/** Table query/mutation names */ +export interface MetaQuery { + all?: string | null; + create?: string | null; + delete?: string | null; + one?: string | null; + update?: string | null; +} +/** Realtime metadata for a table with @realtime tag */ +export interface MetaRealtime { + /** The generated subscription field name (e.g. onPostChanged) */ + subscriptionFieldName: string; +} +/** Table relations */ +export interface MetaRelations { + belongsTo: MetaBelongsToRelation[]; + has: MetaHasRelation[]; + hasMany: MetaHasRelation[]; + hasOne: MetaHasRelation[]; + manyToMany: MetaManyToManyRelation[]; +} +/** Provisioning scope metadata for a table */ +export interface MetaScope { + /** SQL name of the entity table for entity scopes, else null */ + entityTable?: string | null; + /** Inflected scope key column (e.g. databaseId, orgId), null for global tiers */ + keyColumn?: string | null; + /** 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 */ +export interface MetaSearch { + /** Active search algorithms on this table */ + algorithms: string[]; + /** Searchable columns with their algorithm */ + columns: MetaSearchColumn[]; + /** Per-table search configuration */ + config?: MetaSearchConfig | null; + /** Whether unifiedSearch composite filter is available */ + hasUnifiedSearch: boolean; +} +/** Storage metadata for a table */ +export interface MetaStorage { + /** GraphQL type name of the plane's buckets table */ + bucketsType: string; + /** Computed download-URL field on the files type; null on the buckets side */ + downloadUrlField?: string | null; + /** GraphQL type name of the plane's files table */ + filesType: string; + /** Whether this table is a storage buckets table */ + isBucketsTable: boolean; + /** Whether this table is a storage files table */ + isFilesTable: boolean; + /** The plane's GraphQL upload surface */ + upload: MetaStorageUpload; +} +/** Information about a unique constraint */ +export interface MetaUniqueConstraint { + fields: MetaField[]; + name: string; +} +/** Information about a PostgreSQL enum type */ +export interface MetaEnum { + /** The PostgreSQL enum type name */ + name: string; + /** Allowed values for this enum */ + values: string[]; +} +/** Information about a PostgreSQL type */ +export interface MetaType { + /** Scalar serialization contract (null for plain scalars) */ + encoding?: MetaScalarEncoding | null; + gqlType: string; + hasDefault?: boolean | null; + isArray: boolean; + isNotNull?: boolean | null; + pgType: string; + subtype?: string | null; +} +/** Reference to a related table */ +export interface MetaRefTable { + name: string; +} +/** A translatable field */ +export interface MetaI18nField { + /** GraphQL field name */ + name: string; + /** PostgreSQL column type (text, citext) */ + type: string; +} +/** A belongs-to (forward FK) relation */ +export interface MetaBelongsToRelation { + fieldName?: string | null; + isUnique: boolean; + keys: MetaField[]; + references: MetaRefTable; + type?: string | null; +} +/** A has-one or has-many (reverse FK) relation */ +export interface MetaHasRelation { + fieldName?: string | null; + isUnique: boolean; + keys: MetaField[]; + referencedBy: MetaRefTable; + type?: string | null; +} +/** A many-to-many relation via junction table */ +export interface MetaManyToManyRelation { + fieldName?: string | null; + junctionLeftConstraint: MetaForeignKeyConstraint; + junctionLeftKeyAttributes: MetaField[]; + junctionRightConstraint: MetaForeignKeyConstraint; + junctionRightKeyAttributes: MetaField[]; + junctionTable: MetaRefTable; + leftKeyAttributes: MetaField[]; + rightKeyAttributes: MetaField[]; + rightTable: MetaRefTable; + type?: string | null; +} +/** A searchable column with its algorithm */ +export interface MetaSearchColumn { + /** Search algorithm: tsvector, bm25, trgm, or vector */ + algorithm: string; + /** Column name (camelCase) */ + name: string; +} +/** Per-table search configuration from @searchConfig smart tag */ +export interface MetaSearchConfig { + /** Exponential decay factor per day */ + boostRecencyDecay?: number | null; + /** Field used for recency decay */ + boostRecencyField?: string | null; + /** Whether recency boosting is enabled */ + boostRecent: boolean; + /** JSON-encoded per-adapter score weights */ + weights?: string | null; +} +/** The GraphQL upload surface of a storage plane, derived from the registry facts the presigned-url plugin emits from */ +export interface MetaStorageUpload { + /** Per-file input type inside the bulk input */ + bulkFileInputType: string; + /** Per-file payload type inside the bulk payload */ + bulkFilePayloadType: string; + /** Input type of the bulk upload mutation */ + bulkInputType: string; + /** Root mutation field for bulk upload */ + bulkMutation: string; + /** Payload type of the bulk upload mutation */ + bulkPayloadType: string; + /** Input type of the single upload mutation */ + inputType: string; + /** Root mutation field for single-file upload (e.g. uploadAppFile) */ + mutation: string; + /** Payload type of the single upload mutation */ + payloadType: string; + /** Whether the upload input requires ownerId (entity-keyed plane) */ + requiresOwnerId: boolean; +} +/** 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. */ +export interface MetaScalarEncoding { + /** For 'vector': declared length, else null. */ + dimensions?: number | null; + /** For 'ltree': values are dot-separated path strings. */ + dotPath?: boolean | null; + /** For 'vector': element scalar (e.g. 'float'). */ + elementType?: string | null; + /** For 'geojson': Point/LineString/Polygon/…, else null. */ + geometrySubtype?: string | null; + /** 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?: number | null; +} diff --git a/sdk/constructive-react/src/remote/types.ts b/sdk/constructive-react/src/remote/types.ts new file mode 100644 index 0000000000..a9c6593e97 --- /dev/null +++ b/sdk/constructive-react/src/remote/types.ts @@ -0,0 +1,290 @@ +/** + * Entity types and filter types + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +export interface Machine { + createdAt: string | null; + createdBy: string | null; + createdByPrincipal: string | null; + entityId: string | null; + facts: unknown | null; + id: string | null; + isShared: boolean | null; + label: string | null; + lastSeenAt: string | null; + ownerId: string | null; + policy: unknown | null; + principalId: string | null; + revokedAt: string | null; + tokenHash: string | null; + updatedAt: string | null; + updatedBy: string | null; + updatedByPrincipal: string | null; +} +export interface MachineMessage { + actorId: string | null; + content: unknown | null; + createdByPrincipal: string | null; + entityId: string | null; + id: string | null; + kind: string | null; + ownerId: string | null; + recordedAt: string | null; + seq: string | null; + sessionId: string | null; +} +export interface MachineSession { + agentMode: string | null; + agentSessionRef: string | null; + args: string[] | null; + cols: number | null; + command: string | null; + createdAt: string | null; + createdBy: string | null; + createdByPrincipal: string | null; + cwd: string | null; + endedAt: string | null; + entityId: string | null; + env: unknown | null; + exitCode: number | null; + id: string | null; + interactive: boolean | null; + lastActivityAt: string | null; + lastSeq: string | null; + machineId: string | null; + metadata: unknown | null; + ownerId: string | null; + pid: number | null; + runId: string | null; + startedAt: string | null; + state: string | null; + termRows: number | null; + updatedAt: string | null; + updatedBy: string | null; + updatedByPrincipal: string | null; +} +export interface StringFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; + includes?: string; + notIncludes?: string; + includesInsensitive?: string; + notIncludesInsensitive?: string; + startsWith?: string; + notStartsWith?: string; + startsWithInsensitive?: string; + notStartsWithInsensitive?: string; + endsWith?: string; + notEndsWith?: string; + endsWithInsensitive?: string; + notEndsWithInsensitive?: string; + like?: string; + notLike?: string; + likeInsensitive?: string; + notLikeInsensitive?: string; +} +export interface IntFilter { + isNull?: boolean; + equalTo?: number; + notEqualTo?: number; + distinctFrom?: number; + notDistinctFrom?: number; + in?: number[]; + notIn?: number[]; + lessThan?: number; + lessThanOrEqualTo?: number; + greaterThan?: number; + greaterThanOrEqualTo?: number; +} +export interface FloatFilter { + isNull?: boolean; + equalTo?: number; + notEqualTo?: number; + distinctFrom?: number; + notDistinctFrom?: number; + in?: number[]; + notIn?: number[]; + lessThan?: number; + lessThanOrEqualTo?: number; + greaterThan?: number; + greaterThanOrEqualTo?: number; +} +export interface BooleanFilter { + isNull?: boolean; + equalTo?: boolean; + notEqualTo?: boolean; +} +export interface UUIDFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; +} +export interface DatetimeFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; +} +export interface DateFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; +} +export interface JSONFilter { + isNull?: boolean; + equalTo?: Record; + notEqualTo?: Record; + distinctFrom?: Record; + notDistinctFrom?: Record; + contains?: unknown; + containedBy?: unknown; + containsKey?: string; + containsAllKeys?: string[]; + containsAnyKeys?: string[]; +} +export interface BigIntFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; +} +export interface BigFloatFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; +} +export interface BitStringFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; +} +export interface InternetAddressFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; + contains?: string; + containedBy?: string; + containsOrContainedBy?: string; +} +export interface FullTextFilter { + matches?: string; +} +export interface VectorFilter { + isNull?: boolean; + equalTo?: number[]; + notEqualTo?: number[]; + distinctFrom?: number[]; + notDistinctFrom?: number[]; +} +export interface StringListFilter { + isNull?: boolean; + equalTo?: string[]; + notEqualTo?: string[]; + distinctFrom?: string[]; + notDistinctFrom?: string[]; + lessThan?: string[]; + lessThanOrEqualTo?: string[]; + greaterThan?: string[]; + greaterThanOrEqualTo?: string[]; + contains?: string[]; + containedBy?: string[]; + overlaps?: string[]; + anyEqualTo?: string; + anyNotEqualTo?: string; + anyLessThan?: string; + anyLessThanOrEqualTo?: string; + anyGreaterThan?: string; + anyGreaterThanOrEqualTo?: string; +} +export interface IntListFilter { + isNull?: boolean; + equalTo?: number[]; + notEqualTo?: number[]; + distinctFrom?: number[]; + notDistinctFrom?: number[]; + lessThan?: number[]; + lessThanOrEqualTo?: number[]; + greaterThan?: number[]; + greaterThanOrEqualTo?: number[]; + contains?: number[]; + containedBy?: number[]; + overlaps?: number[]; + anyEqualTo?: number; + anyNotEqualTo?: number; + anyLessThan?: number; + anyLessThanOrEqualTo?: number; + anyGreaterThan?: number; + anyGreaterThanOrEqualTo?: number; +} +export interface UUIDListFilter { + isNull?: boolean; + equalTo?: string[]; + notEqualTo?: string[]; + distinctFrom?: string[]; + notDistinctFrom?: string[]; + lessThan?: string[]; + lessThanOrEqualTo?: string[]; + greaterThan?: string[]; + greaterThanOrEqualTo?: string[]; + contains?: string[]; + containedBy?: string[]; + overlaps?: string[]; + anyEqualTo?: string; + anyNotEqualTo?: string; + anyLessThan?: string; + anyLessThanOrEqualTo?: string; + anyGreaterThan?: string; + anyGreaterThanOrEqualTo?: string; +} diff --git a/sdk/constructive-react/src/storage/README.md b/sdk/constructive-react/src/storage/README.md new file mode 100644 index 0000000000..ca0cbef327 --- /dev/null +++ b/sdk/constructive-react/src/storage/README.md @@ -0,0 +1,44 @@ +# Generated GraphQL SDK + +

+ +

+ + + +## Overview + +- **Tables:** 4 +- **Custom queries:** 0 +- **Custom mutations:** 7 + +**Generators:** ORM, React Query + +## Modules + +### ORM Client (`./orm`) + +Prisma-like ORM client for programmatic GraphQL access. + +```typescript +import { createClient } from './orm'; + +const db = createClient({ + endpoint: 'https://api.example.com/graphql', +}); +``` + +See [orm/README.md](./orm/README.md) for full API reference. + +### React Query Hooks (`./hooks`) + +Type-safe React Query hooks for data fetching and mutations. + +```typescript +import { configure } from './hooks'; +import { useCarsQuery } from './hooks'; + +configure({ endpoint: 'https://api.example.com/graphql' }); +``` + +See [hooks/README.md](./hooks/README.md) for full hook reference. diff --git a/sdk/constructive-react/src/storage/hooks/README.md b/sdk/constructive-react/src/storage/hooks/README.md new file mode 100644 index 0000000000..aad59518df --- /dev/null +++ b/sdk/constructive-react/src/storage/hooks/README.md @@ -0,0 +1,234 @@ +# React Query Hooks + +

+ +

+ + + +## Setup + +```typescript +import { QueryClient, QueryClientProvider } from '@tanstack/react-query'; +import { configure } from './hooks'; + +configure({ + endpoint: 'https://api.example.com/graphql', + headers: { Authorization: 'Bearer ' }, +}); + +const queryClient = new QueryClient(); + +function App() { + return ( + + + + ); +} +``` + +## Hooks + +| Hook | Type | Description | +|------|------|-------------| +| `useBucketsQuery` | Query | Logical storage containers that group files with shared access policies and CDN behavior | +| `useBucketQuery` | Query | Logical storage containers that group files with shared access policies and CDN behavior | +| `useCreateBucketMutation` | Mutation | Logical storage containers that group files with shared access policies and CDN behavior | +| `useUpdateBucketMutation` | Mutation | Logical storage containers that group files with shared access policies and CDN behavior | +| `useDeleteBucketMutation` | Mutation | Logical storage containers that group files with shared access policies and CDN behavior | +| `useFilesQuery` | Query | Individual file records within buckets, with immutable identity fields and mutable metadata | +| `useFileQuery` | Query | Individual file records within buckets, with immutable identity fields and mutable metadata | +| `useCreateFileMutation` | Mutation | Individual file records within buckets, with immutable identity fields and mutable metadata | +| `useUpdateFileMutation` | Mutation | Individual file records within buckets, with immutable identity fields and mutable metadata | +| `useDeleteFileMutation` | Mutation | Individual file records within buckets, with immutable identity fields and mutable metadata | +| `usePlatformBucketsQuery` | Query | Logical storage containers that group files with shared access policies and CDN behavior | +| `usePlatformBucketQuery` | Query | Logical storage containers that group files with shared access policies and CDN behavior | +| `useCreatePlatformBucketMutation` | Mutation | Logical storage containers that group files with shared access policies and CDN behavior | +| `useUpdatePlatformBucketMutation` | Mutation | Logical storage containers that group files with shared access policies and CDN behavior | +| `useDeletePlatformBucketMutation` | Mutation | Logical storage containers that group files with shared access policies and CDN behavior | +| `usePlatformFilesQuery` | Query | Individual file records within buckets, with immutable identity fields and mutable metadata | +| `usePlatformFileQuery` | Query | Individual file records within buckets, with immutable identity fields and mutable metadata | +| `useCreatePlatformFileMutation` | Mutation | Individual file records within buckets, with immutable identity fields and mutable metadata | +| `useUpdatePlatformFileMutation` | Mutation | Individual file records within buckets, with immutable identity fields and mutable metadata | +| `useDeletePlatformFileMutation` | Mutation | Individual file records within buckets, with immutable identity fields and mutable metadata | +| `useFilesRenameMutation` | Mutation | filesRename | +| `usePlatformFilesRenameMutation` | Mutation | platformFilesRename | +| `useProvisionBucketMutation` | Mutation | Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. | +| `useUploadFileMutation` | Mutation | Upload a file: resolves the bucket by key, creates the file row, and returns a presigned PUT URL. | +| `useUploadFilesMutation` | Mutation | Upload multiple files: resolves the bucket by key, creates file rows, and returns presigned PUT URLs for each. | +| `useUploadPlatformFileMutation` | Mutation | Upload a file: resolves the bucket by key, creates the file row, and returns a presigned PUT URL. | +| `useUploadPlatformFilesMutation` | Mutation | Upload multiple files: resolves the bucket by key, creates file rows, and returns presigned PUT URLs for each. | + +## Table Hooks + +### Bucket + +```typescript +// List all buckets +const { data, isLoading } = useBucketsQuery({ + selection: { fields: { actorId: true, allowCustomKeys: true, allowedMimeTypes: true, allowedOrigins: true, createdAt: true, databaseId: true, description: true, destinationBucketId: true, id: true, isPublic: true, key: true, maxFileSize: true, physicalName: true, stagingTtl: true, tags: true, type: true, updatedAt: true } }, +}); + +// Get one bucket +const { data: item } = useBucketQuery({ + id: '', + selection: { fields: { actorId: true, allowCustomKeys: true, allowedMimeTypes: true, allowedOrigins: true, createdAt: true, databaseId: true, description: true, destinationBucketId: true, id: true, isPublic: true, key: true, maxFileSize: true, physicalName: true, stagingTtl: true, tags: true, type: true, updatedAt: true } }, +}); + +// Create a bucket +const { mutate: create } = useCreateBucketMutation({ + selection: { fields: { id: true } }, +}); +create({ actorId: '', allowCustomKeys: '', allowedMimeTypes: '', allowedOrigins: '', databaseId: '', description: '', destinationBucketId: '', isPublic: '', key: '', maxFileSize: '', physicalName: '', stagingTtl: '', tags: '', type: '' }); +``` + +### File + +```typescript +// List all files +const { data, isLoading } = useFilesQuery({ + selection: { fields: { actorId: true, bucketId: true, contentHash: true, createdAt: true, databaseId: true, description: true, downloadUrl: true, expiryEnqueuedAt: true, filePath: true, filename: true, id: true, isPublic: true, key: true, mimeType: true, promotedAt: true, size: true, status: true, tags: true, updatedAt: true, upload: true } }, +}); + +// Get one file +const { data: item } = useFileQuery({ + id: '', + selection: { fields: { actorId: true, bucketId: true, contentHash: true, createdAt: true, databaseId: true, description: true, downloadUrl: true, expiryEnqueuedAt: true, filePath: true, filename: true, id: true, isPublic: true, key: true, mimeType: true, promotedAt: true, size: true, status: true, tags: true, updatedAt: true, upload: true } }, +}); + +// Create a file +const { mutate: create } = useCreateFileMutation({ + selection: { fields: { id: true } }, +}); +create({ actorId: '', bucketId: '', contentHash: '', databaseId: '', description: '', downloadUrl: '', expiryEnqueuedAt: '', filePath: '', filename: '', isPublic: '', key: '', mimeType: '', promotedAt: '', size: '', status: '', tags: '', upload: '' }); +``` + +### PlatformBucket + +```typescript +// List all platformBuckets +const { data, isLoading } = usePlatformBucketsQuery({ + selection: { fields: { actorId: true, allowCustomKeys: true, allowedMimeTypes: true, allowedOrigins: true, createdAt: true, description: true, destinationBucketId: true, id: true, isPublic: true, key: true, maxFileSize: true, physicalName: true, stagingTtl: true, tags: true, type: true, updatedAt: true } }, +}); + +// Get one platformBucket +const { data: item } = usePlatformBucketQuery({ + id: '', + selection: { fields: { actorId: true, allowCustomKeys: true, allowedMimeTypes: true, allowedOrigins: true, createdAt: true, description: true, destinationBucketId: true, id: true, isPublic: true, key: true, maxFileSize: true, physicalName: true, stagingTtl: true, tags: true, type: true, updatedAt: true } }, +}); + +// Create a platformBucket +const { mutate: create } = useCreatePlatformBucketMutation({ + selection: { fields: { id: true } }, +}); +create({ actorId: '', allowCustomKeys: '', allowedMimeTypes: '', allowedOrigins: '', description: '', destinationBucketId: '', isPublic: '', key: '', maxFileSize: '', physicalName: '', stagingTtl: '', tags: '', type: '' }); +``` + +### PlatformFile + +```typescript +// List all platformFiles +const { data, isLoading } = usePlatformFilesQuery({ + selection: { fields: { actorId: true, bucketId: true, contentHash: true, createdAt: true, description: true, downloadUrl: true, expiryEnqueuedAt: true, filePath: true, filename: true, id: true, isPublic: true, key: true, mimeType: true, promotedAt: true, size: true, status: true, tags: true, updatedAt: true, upload: true } }, +}); + +// Get one platformFile +const { data: item } = usePlatformFileQuery({ + id: '', + selection: { fields: { actorId: true, bucketId: true, contentHash: true, createdAt: true, description: true, downloadUrl: true, expiryEnqueuedAt: true, filePath: true, filename: true, id: true, isPublic: true, key: true, mimeType: true, promotedAt: true, size: true, status: true, tags: true, updatedAt: true, upload: true } }, +}); + +// Create a platformFile +const { mutate: create } = useCreatePlatformFileMutation({ + selection: { fields: { id: true } }, +}); +create({ actorId: '', bucketId: '', contentHash: '', description: '', downloadUrl: '', expiryEnqueuedAt: '', filePath: '', filename: '', isPublic: '', key: '', mimeType: '', promotedAt: '', size: '', status: '', tags: '', upload: '' }); +``` + +## Custom Operation Hooks + +### `useFilesRenameMutation` + +filesRename + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | FilesRenameInput (required) | + +### `usePlatformFilesRenameMutation` + +platformFilesRename + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | PlatformFilesRenameInput (required) | + +### `useProvisionBucketMutation` + +Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | ProvisionBucketInput (required) | + +### `useUploadFileMutation` + +Upload a file: resolves the bucket by key, creates the file row, and returns a presigned PUT URL. + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | UploadFileInput (required) | + +### `useUploadFilesMutation` + +Upload multiple files: resolves the bucket by key, creates file rows, and returns presigned PUT URLs for each. + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | UploadFileBulkInput (required) | + +### `useUploadPlatformFileMutation` + +Upload a file: resolves the bucket by key, creates the file row, and returns a presigned PUT URL. + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | UploadPlatformFileInput (required) | + +### `useUploadPlatformFilesMutation` + +Upload multiple files: resolves the bucket by key, creates file rows, and returns presigned PUT URLs for each. + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | UploadPlatformFileBulkInput (required) | diff --git a/sdk/constructive-react/src/storage/hooks/client.ts b/sdk/constructive-react/src/storage/hooks/client.ts new file mode 100644 index 0000000000..47b9aa63f4 --- /dev/null +++ b/sdk/constructive-react/src/storage/hooks/client.ts @@ -0,0 +1,42 @@ +/** + * ORM client wrapper for React Query hooks + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { createClient } from '../orm'; +import type { OrmClientConfig } from '../orm/client'; + +export type { OrmClientConfig } from '../orm/client'; +export type { GraphQLAdapter, GraphQLError, QueryResult } from '../orm/client'; +export { GraphQLRequestError } from '../orm/client'; + +type OrmClientInstance = ReturnType; +let client: OrmClientInstance | null = null; + +/** + * Configure the ORM client for React Query hooks + * + * @example + * ```ts + * import { configure } from './generated/hooks'; + * + * configure({ + * endpoint: 'https://api.example.com/graphql', + * headers: { Authorization: 'Bearer ' }, + * }); + * ``` + */ +export function configure(config: OrmClientConfig): void { + client = createClient(config); +} + +/** + * Get the configured ORM client instance + * @throws Error if configure() has not been called + */ +export function getClient(): OrmClientInstance { + if (!client) { + throw new Error('ORM client not configured. Call configure() before using hooks.'); + } + return client; +} diff --git a/sdk/constructive-react/src/storage/hooks/index.ts b/sdk/constructive-react/src/storage/hooks/index.ts new file mode 100644 index 0000000000..1c08166bd0 --- /dev/null +++ b/sdk/constructive-react/src/storage/hooks/index.ts @@ -0,0 +1,39 @@ +/** + * GraphQL SDK + * @generated by @constructive-io/graphql-codegen + * + * Tables: Bucket, File, PlatformBucket, PlatformFile + * + * Usage: + * + * 1. Configure the client: + * ```ts + * import { configure } from './generated'; + * + * configure({ + * endpoint: 'https://api.example.com/graphql', + * headers: { Authorization: 'Bearer ' }, + * }); + * ``` + * + * 2. Use the hooks: + * ```tsx + * import { useCarsQuery, useCreateCarMutation } from './generated'; + * + * function MyComponent() { + * const { data, isLoading } = useCarsQuery({ + * selection: { fields: { id: true }, first: 10 }, + * }); + * const { mutate } = useCreateCarMutation({ + * selection: { fields: { id: true } }, + * }); + * // ... + * } + * ``` + */ +export * from './client'; +export * from './query-keys'; +export * from './mutation-keys'; +export * from './invalidation'; +export * from './queries'; +export * from './mutations'; diff --git a/sdk/constructive-react/src/storage/hooks/invalidation.ts b/sdk/constructive-react/src/storage/hooks/invalidation.ts new file mode 100644 index 0000000000..6a4b471ba4 --- /dev/null +++ b/sdk/constructive-react/src/storage/hooks/invalidation.ts @@ -0,0 +1,139 @@ +/** + * Cache invalidation helpers + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +// ============================================================================ +// Type-safe cache invalidation utilities +// +// Features: +// - Simple invalidation helpers per entity +// - Cascade invalidation for parent-child relationships +// - Remove helpers for delete operations +// ============================================================================ + +import type { QueryClient } from '@tanstack/react-query'; +import { bucketKeys, fileKeys, platformBucketKeys, platformFileKeys } from './query-keys'; +/** +// ============================================================================ +// Invalidation Helpers +// ============================================================================ + + * Type-safe query invalidation helpers + * + * @example + * ```ts + * // Invalidate all user queries + * invalidate.user.all(queryClient); + * + * // Invalidate user lists + * invalidate.user.lists(queryClient); + * + * // Invalidate specific user + * invalidate.user.detail(queryClient, userId); + * ``` + */ +export const invalidate = { + /** Invalidate bucket queries */ bucket: { + /** Invalidate all bucket queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: bucketKeys.all, + }), + /** Invalidate bucket list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: bucketKeys.lists(), + }), + /** Invalidate a specific bucket */ detail: (queryClient: QueryClient, id: string | number) => + queryClient.invalidateQueries({ + queryKey: bucketKeys.detail(id), + }), + }, + /** Invalidate file queries */ file: { + /** Invalidate all file queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: fileKeys.all, + }), + /** Invalidate file list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: fileKeys.lists(), + }), + /** Invalidate a specific file */ detail: (queryClient: QueryClient, id: string | number) => + queryClient.invalidateQueries({ + queryKey: fileKeys.detail(id), + }), + }, + /** Invalidate platformBucket queries */ platformBucket: { + /** Invalidate all platformBucket queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformBucketKeys.all, + }), + /** Invalidate platformBucket list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformBucketKeys.lists(), + }), + /** Invalidate a specific platformBucket */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: platformBucketKeys.detail(id), + }), + }, + /** Invalidate platformFile queries */ platformFile: { + /** Invalidate all platformFile queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformFileKeys.all, + }), + /** Invalidate platformFile list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformFileKeys.lists(), + }), + /** Invalidate a specific platformFile */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: platformFileKeys.detail(id), + }), + }, +} as const; +/** + +// ============================================================================ +// Remove Helpers (for delete operations) +// ============================================================================ + + * Remove queries from cache (for delete operations) + * + * Use these when an entity is deleted to remove it from cache + * instead of just invalidating (which would trigger a refetch). + */ +export const remove = { + /** Remove bucket from cache */ bucket: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: bucketKeys.detail(id), + }); + }, + /** Remove file from cache */ file: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: fileKeys.detail(id), + }); + }, + /** Remove platformBucket from cache */ platformBucket: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: platformBucketKeys.detail(id), + }); + }, + /** Remove platformFile from cache */ platformFile: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: platformFileKeys.detail(id), + }); + }, +} as const; diff --git a/sdk/constructive-react/src/storage/hooks/mutation-keys.ts b/sdk/constructive-react/src/storage/hooks/mutation-keys.ts new file mode 100644 index 0000000000..d497de4de0 --- /dev/null +++ b/sdk/constructive-react/src/storage/hooks/mutation-keys.ts @@ -0,0 +1,118 @@ +/** + * Centralized mutation key factory + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +// ============================================================================ +// Mutation keys for tracking in-flight mutations +// +// Benefits: +// - Track mutation state with useIsMutating +// - Implement optimistic updates with proper rollback +// - Deduplicate identical mutations +// - Coordinate related mutations +// ============================================================================ + +// ============================================================================ +// Entity Mutation Keys +// ============================================================================ + +export const bucketMutationKeys = { + /** All bucket mutation keys */ all: ['mutation', 'bucket'] as const, + /** Create bucket mutation key */ create: () => ['mutation', 'bucket', 'create'] as const, + /** Update bucket mutation key */ update: (id: string | number) => + ['mutation', 'bucket', 'update', id] as const, + /** Delete bucket mutation key */ delete: (id: string | number) => + ['mutation', 'bucket', 'delete', id] as const, +} as const; +export const fileMutationKeys = { + /** All file mutation keys */ all: ['mutation', 'file'] as const, + /** Create file mutation key */ create: () => ['mutation', 'file', 'create'] as const, + /** Update file mutation key */ update: (id: string | number) => + ['mutation', 'file', 'update', id] as const, + /** Delete file mutation key */ delete: (id: string | number) => + ['mutation', 'file', 'delete', id] as const, +} as const; +export const platformBucketMutationKeys = { + /** All platformBucket mutation keys */ all: ['mutation', 'platformbucket'] as const, + /** Create platformBucket mutation key */ create: () => + ['mutation', 'platformbucket', 'create'] as const, + /** Update platformBucket mutation key */ update: (id: string | number) => + ['mutation', 'platformbucket', 'update', id] as const, + /** Delete platformBucket mutation key */ delete: (id: string | number) => + ['mutation', 'platformbucket', 'delete', id] as const, +} as const; +export const platformFileMutationKeys = { + /** All platformFile mutation keys */ all: ['mutation', 'platformfile'] as const, + /** Create platformFile mutation key */ create: () => + ['mutation', 'platformfile', 'create'] as const, + /** Update platformFile mutation key */ update: (id: string | number) => + ['mutation', 'platformfile', 'update', id] as const, + /** Delete platformFile mutation key */ delete: (id: string | number) => + ['mutation', 'platformfile', 'delete', id] as const, +} as const; + +// ============================================================================ +// Custom Mutation Keys +// ============================================================================ + +export const customMutationKeys = { + /** Mutation key for filesRename */ filesRename: (identifier?: string) => + identifier + ? (['mutation', 'filesRename', identifier] as const) + : (['mutation', 'filesRename'] as const), + /** Mutation key for platformFilesRename */ platformFilesRename: (identifier?: string) => + identifier + ? (['mutation', 'platformFilesRename', identifier] as const) + : (['mutation', 'platformFilesRename'] as const), + /** Mutation key for provisionBucket */ provisionBucket: (identifier?: string) => + identifier + ? (['mutation', 'provisionBucket', identifier] as const) + : (['mutation', 'provisionBucket'] as const), + /** Mutation key for uploadFile */ uploadFile: (identifier?: string) => + identifier + ? (['mutation', 'uploadFile', identifier] as const) + : (['mutation', 'uploadFile'] as const), + /** Mutation key for uploadFiles */ uploadFiles: (identifier?: string) => + identifier + ? (['mutation', 'uploadFiles', identifier] as const) + : (['mutation', 'uploadFiles'] as const), + /** Mutation key for uploadPlatformFile */ uploadPlatformFile: (identifier?: string) => + identifier + ? (['mutation', 'uploadPlatformFile', identifier] as const) + : (['mutation', 'uploadPlatformFile'] as const), + /** Mutation key for uploadPlatformFiles */ uploadPlatformFiles: (identifier?: string) => + identifier + ? (['mutation', 'uploadPlatformFiles', identifier] as const) + : (['mutation', 'uploadPlatformFiles'] as const), +} as const; +/** + +// ============================================================================ +// Unified Mutation Key Store +// ============================================================================ + + * Unified mutation key store + * + * Use this for tracking in-flight mutations with useIsMutating. + * + * @example + * ```ts + * import { useIsMutating } from '@tanstack/react-query'; + * import { mutationKeys } from './generated'; + * + * // Check if any user mutations are in progress + * const isMutatingUser = useIsMutating({ mutationKey: mutationKeys.user.all }); + * + * // Check if a specific user is being updated + * const isUpdating = useIsMutating({ mutationKey: mutationKeys.user.update(userId) }); + * ``` + */ +export const mutationKeys = { + bucket: bucketMutationKeys, + file: fileMutationKeys, + platformBucket: platformBucketMutationKeys, + platformFile: platformFileMutationKeys, + custom: customMutationKeys, +} as const; diff --git a/sdk/constructive-react/src/storage/hooks/mutations/index.ts b/sdk/constructive-react/src/storage/hooks/mutations/index.ts new file mode 100644 index 0000000000..4e6b23d8ce --- /dev/null +++ b/sdk/constructive-react/src/storage/hooks/mutations/index.ts @@ -0,0 +1,24 @@ +/** + * Mutation hooks barrel export + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +export * from './useCreateBucketMutation'; +export * from './useUpdateBucketMutation'; +export * from './useDeleteBucketMutation'; +export * from './useCreateFileMutation'; +export * from './useUpdateFileMutation'; +export * from './useDeleteFileMutation'; +export * from './useCreatePlatformBucketMutation'; +export * from './useUpdatePlatformBucketMutation'; +export * from './useDeletePlatformBucketMutation'; +export * from './useCreatePlatformFileMutation'; +export * from './useUpdatePlatformFileMutation'; +export * from './useDeletePlatformFileMutation'; +export * from './useFilesRenameMutation'; +export * from './usePlatformFilesRenameMutation'; +export * from './useProvisionBucketMutation'; +export * from './useUploadFileMutation'; +export * from './useUploadFilesMutation'; +export * from './useUploadPlatformFileMutation'; +export * from './useUploadPlatformFilesMutation'; diff --git a/sdk/constructive-react/src/storage/hooks/mutations/useCreateBucketMutation.ts b/sdk/constructive-react/src/storage/hooks/mutations/useCreateBucketMutation.ts new file mode 100644 index 0000000000..f79c7c338b --- /dev/null +++ b/sdk/constructive-react/src/storage/hooks/mutations/useCreateBucketMutation.ts @@ -0,0 +1,80 @@ +/** + * Logical storage containers that group files with shared access policies and CDN behavior + * @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 { bucketKeys } from '../query-keys'; +import { bucketMutationKeys } from '../mutation-keys'; +import type { BucketSelect, BucketWithRelations, CreateBucketInput } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { BucketSelect, BucketWithRelations, CreateBucketInput } from '../../orm/input-types'; +/** + * Logical storage containers that group files with shared access policies and CDN behavior + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateBucketMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateBucketMutation( + params: { + selection: { + fields: S & BucketSelect; + } & HookStrictSelect, BucketSelect>; + } & Omit< + UseMutationOptions< + { + createBucket: { + bucket: InferSelectResult; + }; + }, + Error, + CreateBucketInput['bucket'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createBucket: { + bucket: InferSelectResult; + }; + }, + Error, + CreateBucketInput['bucket'] +>; +export function useCreateBucketMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: bucketMutationKeys.create(), + mutationFn: (data: CreateBucketInput['bucket']) => + getClient() + .bucket.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: bucketKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/storage/hooks/mutations/useCreateFileMutation.ts b/sdk/constructive-react/src/storage/hooks/mutations/useCreateFileMutation.ts new file mode 100644 index 0000000000..5ffd68d655 --- /dev/null +++ b/sdk/constructive-react/src/storage/hooks/mutations/useCreateFileMutation.ts @@ -0,0 +1,80 @@ +/** + * Individual file records within buckets, with immutable identity fields and mutable metadata + * @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 { fileKeys } from '../query-keys'; +import { fileMutationKeys } from '../mutation-keys'; +import type { FileSelect, FileWithRelations, CreateFileInput } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { FileSelect, FileWithRelations, CreateFileInput } from '../../orm/input-types'; +/** + * Individual file records within buckets, with immutable identity fields and mutable metadata + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateFileMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateFileMutation( + params: { + selection: { + fields: S & FileSelect; + } & HookStrictSelect, FileSelect>; + } & Omit< + UseMutationOptions< + { + createFile: { + file: InferSelectResult; + }; + }, + Error, + CreateFileInput['file'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createFile: { + file: InferSelectResult; + }; + }, + Error, + CreateFileInput['file'] +>; +export function useCreateFileMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: fileMutationKeys.create(), + mutationFn: (data: CreateFileInput['file']) => + getClient() + .file.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: fileKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/storage/hooks/mutations/useCreatePlatformBucketMutation.ts b/sdk/constructive-react/src/storage/hooks/mutations/useCreatePlatformBucketMutation.ts new file mode 100644 index 0000000000..532424f1ce --- /dev/null +++ b/sdk/constructive-react/src/storage/hooks/mutations/useCreatePlatformBucketMutation.ts @@ -0,0 +1,91 @@ +/** + * Logical storage containers that group files with shared access policies and CDN behavior + * @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 { platformBucketKeys } from '../query-keys'; +import { platformBucketMutationKeys } from '../mutation-keys'; +import type { + PlatformBucketSelect, + PlatformBucketWithRelations, + CreatePlatformBucketInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformBucketSelect, + PlatformBucketWithRelations, + CreatePlatformBucketInput, +} from '../../orm/input-types'; +/** + * Logical storage containers that group files with shared access policies and CDN behavior + * + * @example + * ```tsx + * const { mutate, isPending } = useCreatePlatformBucketMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreatePlatformBucketMutation( + params: { + selection: { + fields: S & PlatformBucketSelect; + } & HookStrictSelect, PlatformBucketSelect>; + } & Omit< + UseMutationOptions< + { + createPlatformBucket: { + platformBucket: InferSelectResult; + }; + }, + Error, + CreatePlatformBucketInput['platformBucket'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createPlatformBucket: { + platformBucket: InferSelectResult; + }; + }, + Error, + CreatePlatformBucketInput['platformBucket'] +>; +export function useCreatePlatformBucketMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformBucketMutationKeys.create(), + mutationFn: (data: CreatePlatformBucketInput['platformBucket']) => + getClient() + .platformBucket.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: platformBucketKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/storage/hooks/mutations/useCreatePlatformFileMutation.ts b/sdk/constructive-react/src/storage/hooks/mutations/useCreatePlatformFileMutation.ts new file mode 100644 index 0000000000..cb39e8a539 --- /dev/null +++ b/sdk/constructive-react/src/storage/hooks/mutations/useCreatePlatformFileMutation.ts @@ -0,0 +1,88 @@ +/** + * Individual file records within buckets, with immutable identity fields and mutable metadata + * @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 { platformFileKeys } from '../query-keys'; +import { platformFileMutationKeys } from '../mutation-keys'; +import type { + PlatformFileSelect, + PlatformFileWithRelations, + CreatePlatformFileInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformFileSelect, + PlatformFileWithRelations, + CreatePlatformFileInput, +} from '../../orm/input-types'; +/** + * Individual file records within buckets, with immutable identity fields and mutable metadata + * + * @example + * ```tsx + * const { mutate, isPending } = useCreatePlatformFileMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreatePlatformFileMutation( + params: { + selection: { + fields: S & PlatformFileSelect; + } & HookStrictSelect, PlatformFileSelect>; + } & Omit< + UseMutationOptions< + { + createPlatformFile: { + platformFile: InferSelectResult; + }; + }, + Error, + CreatePlatformFileInput['platformFile'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createPlatformFile: { + platformFile: InferSelectResult; + }; + }, + Error, + CreatePlatformFileInput['platformFile'] +>; +export function useCreatePlatformFileMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformFileMutationKeys.create(), + mutationFn: (data: CreatePlatformFileInput['platformFile']) => + getClient() + .platformFile.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: platformFileKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/storage/hooks/mutations/useDeleteBucketMutation.ts b/sdk/constructive-react/src/storage/hooks/mutations/useDeleteBucketMutation.ts new file mode 100644 index 0000000000..8374963c2b --- /dev/null +++ b/sdk/constructive-react/src/storage/hooks/mutations/useDeleteBucketMutation.ts @@ -0,0 +1,98 @@ +/** + * Logical storage containers that group files with shared access policies and CDN behavior + * @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 { bucketKeys } from '../query-keys'; +import { bucketMutationKeys } from '../mutation-keys'; +import type { BucketSelect, BucketWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { BucketSelect, BucketWithRelations } from '../../orm/input-types'; +/** + * Logical storage containers that group files with shared access policies and CDN behavior + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteBucketMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteBucketMutation( + params: { + selection: { + fields: S & BucketSelect; + } & HookStrictSelect, BucketSelect>; + } & Omit< + UseMutationOptions< + { + deleteBucket: { + bucket: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteBucket: { + bucket: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteBucketMutation( + 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: bucketMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .bucket.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: bucketKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: bucketKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/storage/hooks/mutations/useDeleteFileMutation.ts b/sdk/constructive-react/src/storage/hooks/mutations/useDeleteFileMutation.ts new file mode 100644 index 0000000000..006fd98e97 --- /dev/null +++ b/sdk/constructive-react/src/storage/hooks/mutations/useDeleteFileMutation.ts @@ -0,0 +1,98 @@ +/** + * Individual file records within buckets, with immutable identity fields and mutable metadata + * @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 { fileKeys } from '../query-keys'; +import { fileMutationKeys } from '../mutation-keys'; +import type { FileSelect, FileWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { FileSelect, FileWithRelations } from '../../orm/input-types'; +/** + * Individual file records within buckets, with immutable identity fields and mutable metadata + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteFileMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteFileMutation( + params: { + selection: { + fields: S & FileSelect; + } & HookStrictSelect, FileSelect>; + } & Omit< + UseMutationOptions< + { + deleteFile: { + file: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteFile: { + file: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteFileMutation( + 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: fileMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .file.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: fileKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: fileKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/storage/hooks/mutations/useDeletePlatformBucketMutation.ts b/sdk/constructive-react/src/storage/hooks/mutations/useDeletePlatformBucketMutation.ts new file mode 100644 index 0000000000..56e9ecd21f --- /dev/null +++ b/sdk/constructive-react/src/storage/hooks/mutations/useDeletePlatformBucketMutation.ts @@ -0,0 +1,98 @@ +/** + * Logical storage containers that group files with shared access policies and CDN behavior + * @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 { platformBucketKeys } from '../query-keys'; +import { platformBucketMutationKeys } from '../mutation-keys'; +import type { PlatformBucketSelect, PlatformBucketWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { PlatformBucketSelect, PlatformBucketWithRelations } from '../../orm/input-types'; +/** + * Logical storage containers that group files with shared access policies and CDN behavior + * + * @example + * ```tsx + * const { mutate, isPending } = useDeletePlatformBucketMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeletePlatformBucketMutation( + params: { + selection: { + fields: S & PlatformBucketSelect; + } & HookStrictSelect, PlatformBucketSelect>; + } & Omit< + UseMutationOptions< + { + deletePlatformBucket: { + platformBucket: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deletePlatformBucket: { + platformBucket: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeletePlatformBucketMutation( + 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: platformBucketMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .platformBucket.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: platformBucketKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformBucketKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/storage/hooks/mutations/useDeletePlatformFileMutation.ts b/sdk/constructive-react/src/storage/hooks/mutations/useDeletePlatformFileMutation.ts new file mode 100644 index 0000000000..3a8ce60ca1 --- /dev/null +++ b/sdk/constructive-react/src/storage/hooks/mutations/useDeletePlatformFileMutation.ts @@ -0,0 +1,98 @@ +/** + * Individual file records within buckets, with immutable identity fields and mutable metadata + * @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 { platformFileKeys } from '../query-keys'; +import { platformFileMutationKeys } from '../mutation-keys'; +import type { PlatformFileSelect, PlatformFileWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { PlatformFileSelect, PlatformFileWithRelations } from '../../orm/input-types'; +/** + * Individual file records within buckets, with immutable identity fields and mutable metadata + * + * @example + * ```tsx + * const { mutate, isPending } = useDeletePlatformFileMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeletePlatformFileMutation( + params: { + selection: { + fields: S & PlatformFileSelect; + } & HookStrictSelect, PlatformFileSelect>; + } & Omit< + UseMutationOptions< + { + deletePlatformFile: { + platformFile: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deletePlatformFile: { + platformFile: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeletePlatformFileMutation( + 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: platformFileMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .platformFile.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: platformFileKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformFileKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/storage/hooks/mutations/useFilesRenameMutation.ts b/sdk/constructive-react/src/storage/hooks/mutations/useFilesRenameMutation.ts new file mode 100644 index 0000000000..9ade36d32c --- /dev/null +++ b/sdk/constructive-react/src/storage/hooks/mutations/useFilesRenameMutation.ts @@ -0,0 +1,55 @@ +/** + * Custom mutation hook for filesRename + * @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 { FilesRenameVariables } from '../../orm/mutation'; +import type { FilesRenamePayloadSelect, FilesRenamePayload } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { FilesRenameVariables } from '../../orm/mutation'; +export type { FilesRenamePayloadSelect } from '../../orm/input-types'; +export function useFilesRenameMutation( + params: { + selection: { + fields: S & FilesRenamePayloadSelect; + } & HookStrictSelect, FilesRenamePayloadSelect>; + } & Omit< + UseMutationOptions< + { + filesRename: InferSelectResult | null; + }, + Error, + FilesRenameVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + filesRename: InferSelectResult | null; + }, + Error, + FilesRenameVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.filesRename(), + mutationFn: (variables: FilesRenameVariables) => + getClient() + .mutation.filesRename(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/storage/hooks/mutations/usePlatformFilesRenameMutation.ts b/sdk/constructive-react/src/storage/hooks/mutations/usePlatformFilesRenameMutation.ts new file mode 100644 index 0000000000..8e0bfbd790 --- /dev/null +++ b/sdk/constructive-react/src/storage/hooks/mutations/usePlatformFilesRenameMutation.ts @@ -0,0 +1,58 @@ +/** + * Custom mutation hook for platformFilesRename + * @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 { PlatformFilesRenameVariables } from '../../orm/mutation'; +import type { + PlatformFilesRenamePayloadSelect, + PlatformFilesRenamePayload, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { PlatformFilesRenameVariables } from '../../orm/mutation'; +export type { PlatformFilesRenamePayloadSelect } from '../../orm/input-types'; +export function usePlatformFilesRenameMutation( + params: { + selection: { + fields: S & PlatformFilesRenamePayloadSelect; + } & HookStrictSelect, PlatformFilesRenamePayloadSelect>; + } & Omit< + UseMutationOptions< + { + platformFilesRename: InferSelectResult | null; + }, + Error, + PlatformFilesRenameVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + platformFilesRename: InferSelectResult | null; + }, + Error, + PlatformFilesRenameVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.platformFilesRename(), + mutationFn: (variables: PlatformFilesRenameVariables) => + getClient() + .mutation.platformFilesRename(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/storage/hooks/mutations/useProvisionBucketMutation.ts b/sdk/constructive-react/src/storage/hooks/mutations/useProvisionBucketMutation.ts new file mode 100644 index 0000000000..2613680e69 --- /dev/null +++ b/sdk/constructive-react/src/storage/hooks/mutations/useProvisionBucketMutation.ts @@ -0,0 +1,55 @@ +/** + * Custom mutation hook for provisionBucket + * @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 { ProvisionBucketVariables } from '../../orm/mutation'; +import type { ProvisionBucketPayloadSelect, ProvisionBucketPayload } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { ProvisionBucketVariables } from '../../orm/mutation'; +export type { ProvisionBucketPayloadSelect } from '../../orm/input-types'; +export function useProvisionBucketMutation( + params: { + selection: { + fields: S & ProvisionBucketPayloadSelect; + } & HookStrictSelect, ProvisionBucketPayloadSelect>; + } & Omit< + UseMutationOptions< + { + provisionBucket: InferSelectResult | null; + }, + Error, + ProvisionBucketVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + provisionBucket: InferSelectResult | null; + }, + Error, + ProvisionBucketVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.provisionBucket(), + mutationFn: (variables: ProvisionBucketVariables) => + getClient() + .mutation.provisionBucket(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/storage/hooks/mutations/useUpdateBucketMutation.ts b/sdk/constructive-react/src/storage/hooks/mutations/useUpdateBucketMutation.ts new file mode 100644 index 0000000000..f0fc138b4b --- /dev/null +++ b/sdk/constructive-react/src/storage/hooks/mutations/useUpdateBucketMutation.ts @@ -0,0 +1,102 @@ +/** + * Logical storage containers that group files with shared access policies and CDN behavior + * @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 { bucketKeys } from '../query-keys'; +import { bucketMutationKeys } from '../mutation-keys'; +import type { BucketSelect, BucketWithRelations, BucketPatch } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { BucketSelect, BucketWithRelations, BucketPatch } from '../../orm/input-types'; +/** + * Logical storage containers that group files with shared access policies and CDN behavior + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateBucketMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', bucketPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateBucketMutation( + params: { + selection: { + fields: S & BucketSelect; + } & HookStrictSelect, BucketSelect>; + } & Omit< + UseMutationOptions< + { + updateBucket: { + bucket: InferSelectResult; + }; + }, + Error, + { + id: string; + bucketPatch: BucketPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateBucket: { + bucket: InferSelectResult; + }; + }, + Error, + { + id: string; + bucketPatch: BucketPatch; + } +>; +export function useUpdateBucketMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + bucketPatch: BucketPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: bucketMutationKeys.all, + mutationFn: ({ id, bucketPatch }: { id: string; bucketPatch: BucketPatch }) => + getClient() + .bucket.update({ + where: { + id, + }, + data: bucketPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: bucketKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: bucketKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/storage/hooks/mutations/useUpdateFileMutation.ts b/sdk/constructive-react/src/storage/hooks/mutations/useUpdateFileMutation.ts new file mode 100644 index 0000000000..38552ff302 --- /dev/null +++ b/sdk/constructive-react/src/storage/hooks/mutations/useUpdateFileMutation.ts @@ -0,0 +1,102 @@ +/** + * Individual file records within buckets, with immutable identity fields and mutable metadata + * @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 { fileKeys } from '../query-keys'; +import { fileMutationKeys } from '../mutation-keys'; +import type { FileSelect, FileWithRelations, FilePatch } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { FileSelect, FileWithRelations, FilePatch } from '../../orm/input-types'; +/** + * Individual file records within buckets, with immutable identity fields and mutable metadata + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateFileMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', filePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateFileMutation( + params: { + selection: { + fields: S & FileSelect; + } & HookStrictSelect, FileSelect>; + } & Omit< + UseMutationOptions< + { + updateFile: { + file: InferSelectResult; + }; + }, + Error, + { + id: string; + filePatch: FilePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateFile: { + file: InferSelectResult; + }; + }, + Error, + { + id: string; + filePatch: FilePatch; + } +>; +export function useUpdateFileMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + filePatch: FilePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: fileMutationKeys.all, + mutationFn: ({ id, filePatch }: { id: string; filePatch: FilePatch }) => + getClient() + .file.update({ + where: { + id, + }, + data: filePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: fileKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: fileKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/storage/hooks/mutations/useUpdatePlatformBucketMutation.ts b/sdk/constructive-react/src/storage/hooks/mutations/useUpdatePlatformBucketMutation.ts new file mode 100644 index 0000000000..927af8f0d0 --- /dev/null +++ b/sdk/constructive-react/src/storage/hooks/mutations/useUpdatePlatformBucketMutation.ts @@ -0,0 +1,116 @@ +/** + * Logical storage containers that group files with shared access policies and CDN behavior + * @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 { platformBucketKeys } from '../query-keys'; +import { platformBucketMutationKeys } from '../mutation-keys'; +import type { + PlatformBucketSelect, + PlatformBucketWithRelations, + PlatformBucketPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformBucketSelect, + PlatformBucketWithRelations, + PlatformBucketPatch, +} from '../../orm/input-types'; +/** + * Logical storage containers that group files with shared access policies and CDN behavior + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdatePlatformBucketMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', platformBucketPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdatePlatformBucketMutation( + params: { + selection: { + fields: S & PlatformBucketSelect; + } & HookStrictSelect, PlatformBucketSelect>; + } & Omit< + UseMutationOptions< + { + updatePlatformBucket: { + platformBucket: InferSelectResult; + }; + }, + Error, + { + id: string; + platformBucketPatch: PlatformBucketPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updatePlatformBucket: { + platformBucket: InferSelectResult; + }; + }, + Error, + { + id: string; + platformBucketPatch: PlatformBucketPatch; + } +>; +export function useUpdatePlatformBucketMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + platformBucketPatch: PlatformBucketPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformBucketMutationKeys.all, + mutationFn: ({ + id, + platformBucketPatch, + }: { + id: string; + platformBucketPatch: PlatformBucketPatch; + }) => + getClient() + .platformBucket.update({ + where: { + id, + }, + data: platformBucketPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: platformBucketKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformBucketKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/storage/hooks/mutations/useUpdatePlatformFileMutation.ts b/sdk/constructive-react/src/storage/hooks/mutations/useUpdatePlatformFileMutation.ts new file mode 100644 index 0000000000..c2604c6f8a --- /dev/null +++ b/sdk/constructive-react/src/storage/hooks/mutations/useUpdatePlatformFileMutation.ts @@ -0,0 +1,110 @@ +/** + * Individual file records within buckets, with immutable identity fields and mutable metadata + * @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 { platformFileKeys } from '../query-keys'; +import { platformFileMutationKeys } from '../mutation-keys'; +import type { + PlatformFileSelect, + PlatformFileWithRelations, + PlatformFilePatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformFileSelect, + PlatformFileWithRelations, + PlatformFilePatch, +} from '../../orm/input-types'; +/** + * Individual file records within buckets, with immutable identity fields and mutable metadata + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdatePlatformFileMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', platformFilePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdatePlatformFileMutation( + params: { + selection: { + fields: S & PlatformFileSelect; + } & HookStrictSelect, PlatformFileSelect>; + } & Omit< + UseMutationOptions< + { + updatePlatformFile: { + platformFile: InferSelectResult; + }; + }, + Error, + { + id: string; + platformFilePatch: PlatformFilePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updatePlatformFile: { + platformFile: InferSelectResult; + }; + }, + Error, + { + id: string; + platformFilePatch: PlatformFilePatch; + } +>; +export function useUpdatePlatformFileMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + platformFilePatch: PlatformFilePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformFileMutationKeys.all, + mutationFn: ({ id, platformFilePatch }: { id: string; platformFilePatch: PlatformFilePatch }) => + getClient() + .platformFile.update({ + where: { + id, + }, + data: platformFilePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: platformFileKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformFileKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/storage/hooks/mutations/useUploadFileMutation.ts b/sdk/constructive-react/src/storage/hooks/mutations/useUploadFileMutation.ts new file mode 100644 index 0000000000..74d9218e81 --- /dev/null +++ b/sdk/constructive-react/src/storage/hooks/mutations/useUploadFileMutation.ts @@ -0,0 +1,55 @@ +/** + * Custom mutation hook for uploadFile + * @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 { UploadFileVariables } from '../../orm/mutation'; +import type { UploadFilePayloadSelect, UploadFilePayload } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { UploadFileVariables } from '../../orm/mutation'; +export type { UploadFilePayloadSelect } from '../../orm/input-types'; +export function useUploadFileMutation( + params: { + selection: { + fields: S & UploadFilePayloadSelect; + } & HookStrictSelect, UploadFilePayloadSelect>; + } & Omit< + UseMutationOptions< + { + uploadFile: InferSelectResult | null; + }, + Error, + UploadFileVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + uploadFile: InferSelectResult | null; + }, + Error, + UploadFileVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.uploadFile(), + mutationFn: (variables: UploadFileVariables) => + getClient() + .mutation.uploadFile(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/storage/hooks/mutations/useUploadFilesMutation.ts b/sdk/constructive-react/src/storage/hooks/mutations/useUploadFilesMutation.ts new file mode 100644 index 0000000000..dfb5172a13 --- /dev/null +++ b/sdk/constructive-react/src/storage/hooks/mutations/useUploadFilesMutation.ts @@ -0,0 +1,55 @@ +/** + * Custom mutation hook for uploadFiles + * @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 { UploadFilesVariables } from '../../orm/mutation'; +import type { UploadFileBulkPayloadSelect, UploadFileBulkPayload } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { UploadFilesVariables } from '../../orm/mutation'; +export type { UploadFileBulkPayloadSelect } from '../../orm/input-types'; +export function useUploadFilesMutation( + params: { + selection: { + fields: S & UploadFileBulkPayloadSelect; + } & HookStrictSelect, UploadFileBulkPayloadSelect>; + } & Omit< + UseMutationOptions< + { + uploadFiles: InferSelectResult | null; + }, + Error, + UploadFilesVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + uploadFiles: InferSelectResult | null; + }, + Error, + UploadFilesVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.uploadFiles(), + mutationFn: (variables: UploadFilesVariables) => + getClient() + .mutation.uploadFiles(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/storage/hooks/mutations/useUploadPlatformFileMutation.ts b/sdk/constructive-react/src/storage/hooks/mutations/useUploadPlatformFileMutation.ts new file mode 100644 index 0000000000..30d24a3e07 --- /dev/null +++ b/sdk/constructive-react/src/storage/hooks/mutations/useUploadPlatformFileMutation.ts @@ -0,0 +1,58 @@ +/** + * Custom mutation hook for uploadPlatformFile + * @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 { UploadPlatformFileVariables } from '../../orm/mutation'; +import type { + UploadPlatformFilePayloadSelect, + UploadPlatformFilePayload, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { UploadPlatformFileVariables } from '../../orm/mutation'; +export type { UploadPlatformFilePayloadSelect } from '../../orm/input-types'; +export function useUploadPlatformFileMutation( + params: { + selection: { + fields: S & UploadPlatformFilePayloadSelect; + } & HookStrictSelect, UploadPlatformFilePayloadSelect>; + } & Omit< + UseMutationOptions< + { + uploadPlatformFile: InferSelectResult | null; + }, + Error, + UploadPlatformFileVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + uploadPlatformFile: InferSelectResult | null; + }, + Error, + UploadPlatformFileVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.uploadPlatformFile(), + mutationFn: (variables: UploadPlatformFileVariables) => + getClient() + .mutation.uploadPlatformFile(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/storage/hooks/mutations/useUploadPlatformFilesMutation.ts b/sdk/constructive-react/src/storage/hooks/mutations/useUploadPlatformFilesMutation.ts new file mode 100644 index 0000000000..d64d712cae --- /dev/null +++ b/sdk/constructive-react/src/storage/hooks/mutations/useUploadPlatformFilesMutation.ts @@ -0,0 +1,58 @@ +/** + * Custom mutation hook for uploadPlatformFiles + * @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 { UploadPlatformFilesVariables } from '../../orm/mutation'; +import type { + UploadPlatformFileBulkPayloadSelect, + UploadPlatformFileBulkPayload, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { UploadPlatformFilesVariables } from '../../orm/mutation'; +export type { UploadPlatformFileBulkPayloadSelect } from '../../orm/input-types'; +export function useUploadPlatformFilesMutation( + params: { + selection: { + fields: S & UploadPlatformFileBulkPayloadSelect; + } & HookStrictSelect, UploadPlatformFileBulkPayloadSelect>; + } & Omit< + UseMutationOptions< + { + uploadPlatformFiles: InferSelectResult | null; + }, + Error, + UploadPlatformFilesVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + uploadPlatformFiles: InferSelectResult | null; + }, + Error, + UploadPlatformFilesVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.uploadPlatformFiles(), + mutationFn: (variables: UploadPlatformFilesVariables) => + getClient() + .mutation.uploadPlatformFiles(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/storage/hooks/queries/index.ts b/sdk/constructive-react/src/storage/hooks/queries/index.ts new file mode 100644 index 0000000000..c4c917c6fd --- /dev/null +++ b/sdk/constructive-react/src/storage/hooks/queries/index.ts @@ -0,0 +1,13 @@ +/** + * Query hooks barrel export + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +export * from './useBucketsQuery'; +export * from './useBucketQuery'; +export * from './useFilesQuery'; +export * from './useFileQuery'; +export * from './usePlatformBucketsQuery'; +export * from './usePlatformBucketQuery'; +export * from './usePlatformFilesQuery'; +export * from './usePlatformFileQuery'; diff --git a/sdk/constructive-react/src/storage/hooks/queries/useBucketQuery.ts b/sdk/constructive-react/src/storage/hooks/queries/useBucketQuery.ts new file mode 100644 index 0000000000..9a2cb32760 --- /dev/null +++ b/sdk/constructive-react/src/storage/hooks/queries/useBucketQuery.ts @@ -0,0 +1,138 @@ +/** + * Logical storage containers that group files with shared access policies and CDN behavior + * @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 { bucketKeys } from '../query-keys'; +import type { BucketSelect, BucketWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { BucketSelect, BucketWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const bucketQueryKey = bucketKeys.detail; +/** + * Logical storage containers that group files with shared access policies and CDN behavior + * + * @example + * ```tsx + * const { data, isLoading } = useBucketQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useBucketQuery< + S extends BucketSelect, + TData = { + bucket: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, BucketSelect>; + } & Omit< + UseQueryOptions< + { + bucket: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useBucketQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: bucketKeys.detail(params.id), + queryFn: () => + getClient() + .bucket.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Logical storage containers that group files with shared access policies and CDN behavior + * + * @example + * ```ts + * const data = await fetchBucketQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchBucketQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, BucketSelect>; +}): Promise<{ + bucket: InferSelectResult | null; +}>; +export async function fetchBucketQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .bucket.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Logical storage containers that group files with shared access policies and CDN behavior + * + * @example + * ```ts + * await prefetchBucketQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchBucketQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, BucketSelect>; + } +): Promise; +export async function prefetchBucketQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: bucketKeys.detail(params.id), + queryFn: () => + getClient() + .bucket.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/storage/hooks/queries/useBucketsQuery.ts b/sdk/constructive-react/src/storage/hooks/queries/useBucketsQuery.ts new file mode 100644 index 0000000000..8d23c1edf3 --- /dev/null +++ b/sdk/constructive-react/src/storage/hooks/queries/useBucketsQuery.ts @@ -0,0 +1,139 @@ +/** + * Logical storage containers that group files with shared access policies and CDN behavior + * @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 { bucketKeys } from '../query-keys'; +import type { + BucketSelect, + BucketWithRelations, + BucketFilter, + BucketOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + BucketSelect, + BucketWithRelations, + BucketFilter, + BucketOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const bucketsQueryKey = bucketKeys.list; +/** + * Logical storage containers that group files with shared access policies and CDN behavior + * + * @example + * ```tsx + * const { data, isLoading } = useBucketsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useBucketsQuery< + S extends BucketSelect, + TData = { + buckets: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, BucketSelect>; + } & Omit< + UseQueryOptions< + { + buckets: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useBucketsQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: bucketKeys.list(args), + queryFn: () => getClient().bucket.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Logical storage containers that group files with shared access policies and CDN behavior + * + * @example + * ```ts + * const data = await fetchBucketsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchBucketsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, BucketSelect>; +}): Promise<{ + buckets: ConnectionResult>; +}>; +export async function fetchBucketsQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs(params.selection); + return getClient().bucket.findMany(args).unwrap(); +} +/** + * Logical storage containers that group files with shared access policies and CDN behavior + * + * @example + * ```ts + * await prefetchBucketsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchBucketsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, BucketSelect>; + } +): Promise; +export async function prefetchBucketsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: bucketKeys.list(args), + queryFn: () => getClient().bucket.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/storage/hooks/queries/useFileQuery.ts b/sdk/constructive-react/src/storage/hooks/queries/useFileQuery.ts new file mode 100644 index 0000000000..cac5fcd912 --- /dev/null +++ b/sdk/constructive-react/src/storage/hooks/queries/useFileQuery.ts @@ -0,0 +1,138 @@ +/** + * Individual file records within buckets, with immutable identity fields and mutable metadata + * @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 { fileKeys } from '../query-keys'; +import type { FileSelect, FileWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { FileSelect, FileWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const fileQueryKey = fileKeys.detail; +/** + * Individual file records within buckets, with immutable identity fields and mutable metadata + * + * @example + * ```tsx + * const { data, isLoading } = useFileQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useFileQuery< + S extends FileSelect, + TData = { + file: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, FileSelect>; + } & Omit< + UseQueryOptions< + { + file: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useFileQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: fileKeys.detail(params.id), + queryFn: () => + getClient() + .file.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Individual file records within buckets, with immutable identity fields and mutable metadata + * + * @example + * ```ts + * const data = await fetchFileQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchFileQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, FileSelect>; +}): Promise<{ + file: InferSelectResult | null; +}>; +export async function fetchFileQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .file.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Individual file records within buckets, with immutable identity fields and mutable metadata + * + * @example + * ```ts + * await prefetchFileQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchFileQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, FileSelect>; + } +): Promise; +export async function prefetchFileQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: fileKeys.detail(params.id), + queryFn: () => + getClient() + .file.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/storage/hooks/queries/useFilesQuery.ts b/sdk/constructive-react/src/storage/hooks/queries/useFilesQuery.ts new file mode 100644 index 0000000000..f238edd45f --- /dev/null +++ b/sdk/constructive-react/src/storage/hooks/queries/useFilesQuery.ts @@ -0,0 +1,129 @@ +/** + * Individual file records within buckets, with immutable identity fields and mutable metadata + * @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 { fileKeys } from '../query-keys'; +import type { FileSelect, FileWithRelations, FileFilter, FileOrderBy } from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { FileSelect, FileWithRelations, FileFilter, FileOrderBy } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const filesQueryKey = fileKeys.list; +/** + * Individual file records within buckets, with immutable identity fields and mutable metadata + * + * @example + * ```tsx + * const { data, isLoading } = useFilesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useFilesQuery< + S extends FileSelect, + TData = { + files: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, FileSelect>; + } & Omit< + UseQueryOptions< + { + files: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useFilesQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: fileKeys.list(args), + queryFn: () => getClient().file.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Individual file records within buckets, with immutable identity fields and mutable metadata + * + * @example + * ```ts + * const data = await fetchFilesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchFilesQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, FileSelect>; +}): Promise<{ + files: ConnectionResult>; +}>; +export async function fetchFilesQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs(params.selection); + return getClient().file.findMany(args).unwrap(); +} +/** + * Individual file records within buckets, with immutable identity fields and mutable metadata + * + * @example + * ```ts + * await prefetchFilesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchFilesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, FileSelect>; + } +): Promise; +export async function prefetchFilesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: fileKeys.list(args), + queryFn: () => getClient().file.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/storage/hooks/queries/usePlatformBucketQuery.ts b/sdk/constructive-react/src/storage/hooks/queries/usePlatformBucketQuery.ts new file mode 100644 index 0000000000..4d58b94213 --- /dev/null +++ b/sdk/constructive-react/src/storage/hooks/queries/usePlatformBucketQuery.ts @@ -0,0 +1,138 @@ +/** + * Logical storage containers that group files with shared access policies and CDN behavior + * @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 { platformBucketKeys } from '../query-keys'; +import type { PlatformBucketSelect, PlatformBucketWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { PlatformBucketSelect, PlatformBucketWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformBucketQueryKey = platformBucketKeys.detail; +/** + * Logical storage containers that group files with shared access policies and CDN behavior + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformBucketQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function usePlatformBucketQuery< + S extends PlatformBucketSelect, + TData = { + platformBucket: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformBucketSelect>; + } & Omit< + UseQueryOptions< + { + platformBucket: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformBucketQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformBucketKeys.detail(params.id), + queryFn: () => + getClient() + .platformBucket.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Logical storage containers that group files with shared access policies and CDN behavior + * + * @example + * ```ts + * const data = await fetchPlatformBucketQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchPlatformBucketQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformBucketSelect>; +}): Promise<{ + platformBucket: InferSelectResult | null; +}>; +export async function fetchPlatformBucketQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .platformBucket.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Logical storage containers that group files with shared access policies and CDN behavior + * + * @example + * ```ts + * await prefetchPlatformBucketQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchPlatformBucketQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformBucketSelect>; + } +): Promise; +export async function prefetchPlatformBucketQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformBucketKeys.detail(params.id), + queryFn: () => + getClient() + .platformBucket.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/storage/hooks/queries/usePlatformBucketsQuery.ts b/sdk/constructive-react/src/storage/hooks/queries/usePlatformBucketsQuery.ts new file mode 100644 index 0000000000..9a3f3e5f9a --- /dev/null +++ b/sdk/constructive-react/src/storage/hooks/queries/usePlatformBucketsQuery.ts @@ -0,0 +1,159 @@ +/** + * Logical storage containers that group files with shared access policies and CDN behavior + * @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 { platformBucketKeys } from '../query-keys'; +import type { + PlatformBucketSelect, + PlatformBucketWithRelations, + PlatformBucketFilter, + PlatformBucketOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + PlatformBucketSelect, + PlatformBucketWithRelations, + PlatformBucketFilter, + PlatformBucketOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformBucketsQueryKey = platformBucketKeys.list; +/** + * Logical storage containers that group files with shared access policies and CDN behavior + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformBucketsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function usePlatformBucketsQuery< + S extends PlatformBucketSelect, + TData = { + platformBuckets: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, PlatformBucketSelect>; + } & Omit< + UseQueryOptions< + { + platformBuckets: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformBucketsQuery( + params: { + selection: ListSelectionConfig< + PlatformBucketSelect, + PlatformBucketFilter, + PlatformBucketOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + PlatformBucketSelect, + PlatformBucketFilter, + PlatformBucketOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformBucketKeys.list(args), + queryFn: () => getClient().platformBucket.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Logical storage containers that group files with shared access policies and CDN behavior + * + * @example + * ```ts + * const data = await fetchPlatformBucketsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchPlatformBucketsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, PlatformBucketSelect>; +}): Promise<{ + platformBuckets: ConnectionResult>; +}>; +export async function fetchPlatformBucketsQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs< + PlatformBucketSelect, + PlatformBucketFilter, + PlatformBucketOrderBy + >(params.selection); + return getClient().platformBucket.findMany(args).unwrap(); +} +/** + * Logical storage containers that group files with shared access policies and CDN behavior + * + * @example + * ```ts + * await prefetchPlatformBucketsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchPlatformBucketsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, PlatformBucketSelect>; + } +): Promise; +export async function prefetchPlatformBucketsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + PlatformBucketSelect, + PlatformBucketFilter, + PlatformBucketOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + PlatformBucketSelect, + PlatformBucketFilter, + PlatformBucketOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformBucketKeys.list(args), + queryFn: () => getClient().platformBucket.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/storage/hooks/queries/usePlatformFileQuery.ts b/sdk/constructive-react/src/storage/hooks/queries/usePlatformFileQuery.ts new file mode 100644 index 0000000000..c56c1addfa --- /dev/null +++ b/sdk/constructive-react/src/storage/hooks/queries/usePlatformFileQuery.ts @@ -0,0 +1,138 @@ +/** + * Individual file records within buckets, with immutable identity fields and mutable metadata + * @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 { platformFileKeys } from '../query-keys'; +import type { PlatformFileSelect, PlatformFileWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { PlatformFileSelect, PlatformFileWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformFileQueryKey = platformFileKeys.detail; +/** + * Individual file records within buckets, with immutable identity fields and mutable metadata + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformFileQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function usePlatformFileQuery< + S extends PlatformFileSelect, + TData = { + platformFile: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformFileSelect>; + } & Omit< + UseQueryOptions< + { + platformFile: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformFileQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformFileKeys.detail(params.id), + queryFn: () => + getClient() + .platformFile.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Individual file records within buckets, with immutable identity fields and mutable metadata + * + * @example + * ```ts + * const data = await fetchPlatformFileQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchPlatformFileQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformFileSelect>; +}): Promise<{ + platformFile: InferSelectResult | null; +}>; +export async function fetchPlatformFileQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .platformFile.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Individual file records within buckets, with immutable identity fields and mutable metadata + * + * @example + * ```ts + * await prefetchPlatformFileQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchPlatformFileQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformFileSelect>; + } +): Promise; +export async function prefetchPlatformFileQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformFileKeys.detail(params.id), + queryFn: () => + getClient() + .platformFile.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/storage/hooks/queries/usePlatformFilesQuery.ts b/sdk/constructive-react/src/storage/hooks/queries/usePlatformFilesQuery.ts new file mode 100644 index 0000000000..316e435f6a --- /dev/null +++ b/sdk/constructive-react/src/storage/hooks/queries/usePlatformFilesQuery.ts @@ -0,0 +1,145 @@ +/** + * Individual file records within buckets, with immutable identity fields and mutable metadata + * @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 { platformFileKeys } from '../query-keys'; +import type { + PlatformFileSelect, + PlatformFileWithRelations, + PlatformFileFilter, + PlatformFileOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + PlatformFileSelect, + PlatformFileWithRelations, + PlatformFileFilter, + PlatformFileOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformFilesQueryKey = platformFileKeys.list; +/** + * Individual file records within buckets, with immutable identity fields and mutable metadata + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformFilesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function usePlatformFilesQuery< + S extends PlatformFileSelect, + TData = { + platformFiles: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, PlatformFileSelect>; + } & Omit< + UseQueryOptions< + { + platformFiles: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformFilesQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs( + params.selection + ); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformFileKeys.list(args), + queryFn: () => getClient().platformFile.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Individual file records within buckets, with immutable identity fields and mutable metadata + * + * @example + * ```ts + * const data = await fetchPlatformFilesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchPlatformFilesQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, PlatformFileSelect>; +}): Promise<{ + platformFiles: ConnectionResult>; +}>; +export async function fetchPlatformFilesQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs( + params.selection + ); + return getClient().platformFile.findMany(args).unwrap(); +} +/** + * Individual file records within buckets, with immutable identity fields and mutable metadata + * + * @example + * ```ts + * await prefetchPlatformFilesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchPlatformFilesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, PlatformFileSelect>; + } +): Promise; +export async function prefetchPlatformFilesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs( + params.selection + ); + await queryClient.prefetchQuery({ + queryKey: platformFileKeys.list(args), + queryFn: () => getClient().platformFile.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/storage/hooks/query-keys.ts b/sdk/constructive-react/src/storage/hooks/query-keys.ts new file mode 100644 index 0000000000..4fa53173fd --- /dev/null +++ b/sdk/constructive-react/src/storage/hooks/query-keys.ts @@ -0,0 +1,87 @@ +/** + * Centralized query key factory + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +// ============================================================================ +// This file provides a centralized, type-safe query key factory following +// the lukemorales query-key-factory pattern for React Query. +// +// Benefits: +// - Single source of truth for all query keys +// - Type-safe key access with autocomplete +// - Hierarchical invalidation (invalidate all 'user.*' queries) +// - Scoped keys for parent-child relationships +// ============================================================================ + +// ============================================================================ +// Entity Query Keys +// ============================================================================ + +export const bucketKeys = { + /** All bucket queries */ all: ['bucket'] as const, + /** List query keys */ lists: () => [...bucketKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...bucketKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...bucketKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...bucketKeys.details(), id] as const, +} as const; +export const fileKeys = { + /** All file queries */ all: ['file'] as const, + /** List query keys */ lists: () => [...fileKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...fileKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...fileKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...fileKeys.details(), id] as const, +} as const; +export const platformBucketKeys = { + /** All platformBucket queries */ all: ['platformbucket'] as const, + /** List query keys */ lists: () => [...platformBucketKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...platformBucketKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...platformBucketKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...platformBucketKeys.details(), id] as const, +} as const; +export const platformFileKeys = { + /** All platformFile queries */ all: ['platformfile'] as const, + /** List query keys */ lists: () => [...platformFileKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...platformFileKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...platformFileKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...platformFileKeys.details(), id] as const, +} as const; +/** + +// ============================================================================ +// Unified Query Key Store +// ============================================================================ + + * Unified query key store + * + * Use this for type-safe query key access across your application. + * + * @example + * ```ts + * // Invalidate all user queries + * queryClient.invalidateQueries({ queryKey: queryKeys.user.all }); + * + * // Invalidate user list queries + * queryClient.invalidateQueries({ queryKey: queryKeys.user.lists() }); + * + * // Invalidate specific user + * queryClient.invalidateQueries({ queryKey: queryKeys.user.detail(userId) }); + * ``` + */ +export const queryKeys = { + bucket: bucketKeys, + file: fileKeys, + platformBucket: platformBucketKeys, + platformFile: platformFileKeys, +} as const; +/** Type representing all available query key scopes */ +export type QueryKeyScope = keyof typeof queryKeys; diff --git a/sdk/constructive-react/src/storage/hooks/selection.ts b/sdk/constructive-react/src/storage/hooks/selection.ts new file mode 100644 index 0000000000..2952aab647 --- /dev/null +++ b/sdk/constructive-react/src/storage/hooks/selection.ts @@ -0,0 +1,60 @@ +/** + * Selection helpers for React Query hooks + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +export interface SelectionConfig { + fields: TFields; +} + +export interface ListSelectionConfig extends SelectionConfig { + where?: TWhere; + orderBy?: TOrderBy[]; + first?: number; + last?: number; + after?: string; + before?: string; + offset?: number; +} + +function ensureSelectionFields( + selection: SelectionConfig | undefined +): asserts selection is SelectionConfig { + if (!selection || typeof selection !== 'object' || !('fields' in selection)) { + throw new Error( + 'Invalid hook params: `selection.fields` is required. Example: { selection: { fields: { id: true } } }' + ); + } +} + +export function buildSelectionArgs(selection: SelectionConfig): { + select: TFields; +} { + ensureSelectionFields(selection); + return { select: selection.fields }; +} + +export function buildListSelectionArgs( + selection: ListSelectionConfig +): { + select: TFields; + where?: TWhere; + orderBy?: TOrderBy[]; + first?: number; + last?: number; + after?: string; + before?: string; + offset?: number; +} { + ensureSelectionFields(selection); + return { + select: selection.fields, + where: selection.where, + orderBy: selection.orderBy, + first: selection.first, + last: selection.last, + after: selection.after, + before: selection.before, + offset: selection.offset, + }; +} diff --git a/sdk/constructive-react/src/storage/index.ts b/sdk/constructive-react/src/storage/index.ts new file mode 100644 index 0000000000..2b8402539a --- /dev/null +++ b/sdk/constructive-react/src/storage/index.ts @@ -0,0 +1,7 @@ +/** + * GraphQL SDK - auto-generated, do not edit + * @generated by @constructive-io/graphql-codegen + */ +export * from './types'; +export * from './hooks'; +export * from './orm'; diff --git a/sdk/constructive-react/src/storage/orm/README.md b/sdk/constructive-react/src/storage/orm/README.md new file mode 100644 index 0000000000..a72925c67d --- /dev/null +++ b/sdk/constructive-react/src/storage/orm/README.md @@ -0,0 +1,324 @@ +# ORM Client + +

+ +

+ + + +## Setup + +```typescript +import { createClient } from './orm'; + +const db = createClient({ + endpoint: 'https://api.example.com/graphql', + headers: { Authorization: 'Bearer ' }, +}); +``` + +## Models + +| Model | Operations | +|-------|------------| +| `bucket` | findMany, findOne, create, update, delete | +| `file` | findMany, findOne, create, update, delete | +| `platformBucket` | findMany, findOne, create, update, delete | +| `platformFile` | findMany, findOne, create, update, delete | + +## Table Operations + +### `db.bucket` + +CRUD operations for Bucket records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `actorId` | UUID | Yes | +| `allowCustomKeys` | Boolean | Yes | +| `allowedMimeTypes` | String | Yes | +| `allowedOrigins` | String | Yes | +| `createdAt` | Datetime | No | +| `databaseId` | UUID | Yes | +| `description` | String | Yes | +| `destinationBucketId` | UUID | Yes | +| `id` | UUID | No | +| `isPublic` | Boolean | Yes | +| `key` | String | Yes | +| `maxFileSize` | BigInt | Yes | +| `physicalName` | String | Yes | +| `stagingTtl` | Interval | Yes | +| `tags` | String | Yes | +| `type` | BucketType | Yes | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all bucket records +const items = await db.bucket.findMany({ select: { actorId: true, allowCustomKeys: true, allowedMimeTypes: true, allowedOrigins: true, createdAt: true, databaseId: true, description: true, destinationBucketId: true, id: true, isPublic: true, key: true, maxFileSize: true, physicalName: true, stagingTtl: true, tags: true, type: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.bucket.findOne({ id: '', select: { actorId: true, allowCustomKeys: true, allowedMimeTypes: true, allowedOrigins: true, createdAt: true, databaseId: true, description: true, destinationBucketId: true, id: true, isPublic: true, key: true, maxFileSize: true, physicalName: true, stagingTtl: true, tags: true, type: true, updatedAt: true } }).execute(); + +// Create +const created = await db.bucket.create({ data: { actorId: '', allowCustomKeys: '', allowedMimeTypes: '', allowedOrigins: '', databaseId: '', description: '', destinationBucketId: '', isPublic: '', key: '', maxFileSize: '', physicalName: '', stagingTtl: '', tags: '', type: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.bucket.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.bucket.delete({ where: { id: '' } }).execute(); +``` + +### `db.file` + +CRUD operations for File records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `actorId` | UUID | Yes | +| `bucketId` | UUID | Yes | +| `contentHash` | String | Yes | +| `createdAt` | Datetime | No | +| `databaseId` | UUID | Yes | +| `description` | String | Yes | +| `downloadUrl` | String | Yes | +| `expiryEnqueuedAt` | Datetime | Yes | +| `filePath` | String | Yes | +| `filename` | String | Yes | +| `id` | UUID | No | +| `isPublic` | Boolean | Yes | +| `key` | String | Yes | +| `mimeType` | String | Yes | +| `promotedAt` | Datetime | Yes | +| `size` | BigInt | Yes | +| `status` | FileStatus | Yes | +| `tags` | String | Yes | +| `updatedAt` | Datetime | No | +| `upload` | ConstructiveInternalTypeUpload | Yes | + +**Operations:** + +```typescript +// List all file records +const items = await db.file.findMany({ select: { actorId: true, bucketId: true, contentHash: true, createdAt: true, databaseId: true, description: true, downloadUrl: true, expiryEnqueuedAt: true, filePath: true, filename: true, id: true, isPublic: true, key: true, mimeType: true, promotedAt: true, size: true, status: true, tags: true, updatedAt: true, upload: true } }).execute(); + +// Get one by id +const item = await db.file.findOne({ id: '', select: { actorId: true, bucketId: true, contentHash: true, createdAt: true, databaseId: true, description: true, downloadUrl: true, expiryEnqueuedAt: true, filePath: true, filename: true, id: true, isPublic: true, key: true, mimeType: true, promotedAt: true, size: true, status: true, tags: true, updatedAt: true, upload: true } }).execute(); + +// Create +const created = await db.file.create({ data: { actorId: '', bucketId: '', contentHash: '', databaseId: '', description: '', downloadUrl: '', expiryEnqueuedAt: '', filePath: '', filename: '', isPublic: '', key: '', mimeType: '', promotedAt: '', size: '', status: '', tags: '', upload: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.file.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.file.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformBucket` + +CRUD operations for PlatformBucket records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `actorId` | UUID | Yes | +| `allowCustomKeys` | Boolean | Yes | +| `allowedMimeTypes` | String | Yes | +| `allowedOrigins` | String | Yes | +| `createdAt` | Datetime | No | +| `description` | String | Yes | +| `destinationBucketId` | UUID | Yes | +| `id` | UUID | No | +| `isPublic` | Boolean | Yes | +| `key` | String | Yes | +| `maxFileSize` | BigInt | Yes | +| `physicalName` | String | Yes | +| `stagingTtl` | Interval | Yes | +| `tags` | String | Yes | +| `type` | BucketType | Yes | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all platformBucket records +const items = await db.platformBucket.findMany({ select: { actorId: true, allowCustomKeys: true, allowedMimeTypes: true, allowedOrigins: true, createdAt: true, description: true, destinationBucketId: true, id: true, isPublic: true, key: true, maxFileSize: true, physicalName: true, stagingTtl: true, tags: true, type: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.platformBucket.findOne({ id: '', select: { actorId: true, allowCustomKeys: true, allowedMimeTypes: true, allowedOrigins: true, createdAt: true, description: true, destinationBucketId: true, id: true, isPublic: true, key: true, maxFileSize: true, physicalName: true, stagingTtl: true, tags: true, type: true, updatedAt: true } }).execute(); + +// Create +const created = await db.platformBucket.create({ data: { actorId: '', allowCustomKeys: '', allowedMimeTypes: '', allowedOrigins: '', description: '', destinationBucketId: '', isPublic: '', key: '', maxFileSize: '', physicalName: '', stagingTtl: '', tags: '', type: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformBucket.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformBucket.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformFile` + +CRUD operations for PlatformFile records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `actorId` | UUID | Yes | +| `bucketId` | UUID | Yes | +| `contentHash` | String | Yes | +| `createdAt` | Datetime | No | +| `description` | String | Yes | +| `downloadUrl` | String | Yes | +| `expiryEnqueuedAt` | Datetime | Yes | +| `filePath` | String | Yes | +| `filename` | String | Yes | +| `id` | UUID | No | +| `isPublic` | Boolean | Yes | +| `key` | String | Yes | +| `mimeType` | String | Yes | +| `promotedAt` | Datetime | Yes | +| `size` | BigInt | Yes | +| `status` | FileStatus | Yes | +| `tags` | String | Yes | +| `updatedAt` | Datetime | No | +| `upload` | ConstructiveInternalTypeUpload | Yes | + +**Operations:** + +```typescript +// List all platformFile records +const items = await db.platformFile.findMany({ select: { actorId: true, bucketId: true, contentHash: true, createdAt: true, description: true, downloadUrl: true, expiryEnqueuedAt: true, filePath: true, filename: true, id: true, isPublic: true, key: true, mimeType: true, promotedAt: true, size: true, status: true, tags: true, updatedAt: true, upload: true } }).execute(); + +// Get one by id +const item = await db.platformFile.findOne({ id: '', select: { actorId: true, bucketId: true, contentHash: true, createdAt: true, description: true, downloadUrl: true, expiryEnqueuedAt: true, filePath: true, filename: true, id: true, isPublic: true, key: true, mimeType: true, promotedAt: true, size: true, status: true, tags: true, updatedAt: true, upload: true } }).execute(); + +// Create +const created = await db.platformFile.create({ data: { actorId: '', bucketId: '', contentHash: '', description: '', downloadUrl: '', expiryEnqueuedAt: '', filePath: '', filename: '', isPublic: '', key: '', mimeType: '', promotedAt: '', size: '', status: '', tags: '', upload: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformFile.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformFile.delete({ where: { id: '' } }).execute(); +``` + +## Custom Operations + +### `db.mutation.filesRename` + +filesRename + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | FilesRenameInput (required) | + +```typescript +const result = await db.mutation.filesRename({ input: { fileId: '', newFilename: '' } }).execute(); +``` + +### `db.mutation.platformFilesRename` + +platformFilesRename + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | PlatformFilesRenameInput (required) | + +```typescript +const result = await db.mutation.platformFilesRename({ input: { fileId: '', newFilename: '' } }).execute(); +``` + +### `db.mutation.provisionBucket` + +Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | ProvisionBucketInput (required) | + +```typescript +const result = await db.mutation.provisionBucket({ input: { bucketKey: '', ownerId: '' } }).execute(); +``` + +### `db.mutation.uploadFile` + +Upload a file: resolves the bucket by key, creates the file row, and returns a presigned PUT URL. + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | UploadFileInput (required) | + +```typescript +const result = await db.mutation.uploadFile({ input: '' }).execute(); +``` + +### `db.mutation.uploadFiles` + +Upload multiple files: resolves the bucket by key, creates file rows, and returns presigned PUT URLs for each. + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | UploadFileBulkInput (required) | + +```typescript +const result = await db.mutation.uploadFiles({ input: { bucketKey: '', files: '', isPublic: '' } }).execute(); +``` + +### `db.mutation.uploadPlatformFile` + +Upload a file: resolves the bucket by key, creates the file row, and returns a presigned PUT URL. + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | UploadPlatformFileInput (required) | + +```typescript +const result = await db.mutation.uploadPlatformFile({ input: '' }).execute(); +``` + +### `db.mutation.uploadPlatformFiles` + +Upload multiple files: resolves the bucket by key, creates file rows, and returns presigned PUT URLs for each. + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | UploadPlatformFileBulkInput (required) | + +```typescript +const result = await db.mutation.uploadPlatformFiles({ input: { bucketKey: '', files: '', isPublic: '' } }).execute(); +``` diff --git a/sdk/constructive-react/src/storage/orm/client.ts b/sdk/constructive-react/src/storage/orm/client.ts new file mode 100644 index 0000000000..8141c1e52b --- /dev/null +++ b/sdk/constructive-react/src/storage/orm/client.ts @@ -0,0 +1,254 @@ +/** + * ORM Client - Runtime GraphQL executor + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import type { + GraphQLAdapter, + GraphQLError, + QueryResult, +} from '@constructive-io/graphql-query/runtime'; +import { createFetch } from '@constructive-io/graphql-query/runtime'; + +import type { + ConnectionState, + ConnectionStateListener, + RealtimeConfig, + SubscribeOptions, + SubscriptionEvent, + SubscriptionFieldMeta, + Unsubscribe, +} from './realtime'; +import { RealtimeManager } from './realtime'; + +export type { + GraphQLAdapter, + GraphQLError, + QueryResult, +} from '@constructive-io/graphql-query/runtime'; + +export type { + ConnectionState, + ConnectionStateListener, + RealtimeConfig, + SubscribeOptions, + SubscriptionEvent, + SubscriptionFieldMeta, + SubscriptionOperation, + Unsubscribe, + WsClient, +} from './realtime'; +export { RealtimeManager } from './realtime'; + +/** + * Default adapter that uses fetch for HTTP requests. + * + * When no custom fetch is provided, uses @constructive-io/fetch which + * handles *.localhost DNS rewriting and Host header preservation in + * Node.js. Pass a custom fetch to override for test mocking or custom + * proxy/credentials. + */ +export class FetchAdapter implements GraphQLAdapter { + private headers: Record; + private fetchFn: typeof globalThis.fetch; + + constructor( + private endpoint: string, + headers?: Record, + fetchFn?: typeof globalThis.fetch + ) { + this.headers = headers ?? {}; + this.fetchFn = (fetchFn ?? createFetch()).bind(globalThis); + } + + async execute(document: string, variables?: Record): Promise> { + const response = await this.fetchFn(this.endpoint, { + method: 'POST', + headers: { + 'Content-Type': 'application/json', + Accept: 'application/json', + ...this.headers, + }, + body: JSON.stringify({ + query: document, + variables: variables ?? {}, + }), + }); + + if (!response.ok) { + return { + ok: false, + data: null, + errors: [{ message: `HTTP ${response.status}: ${response.statusText}` }], + }; + } + + const json = (await response.json()) as { + data?: T; + errors?: GraphQLError[]; + }; + + if (json.errors && json.errors.length > 0) { + return { + ok: false, + data: null, + errors: json.errors, + }; + } + + return { + ok: true, + data: json.data as T, + errors: undefined, + }; + } + + setHeaders(headers: Record): void { + this.headers = { ...this.headers, ...headers }; + } + + getEndpoint(): string { + return this.endpoint; + } +} + +/** + * Configuration for creating an ORM client. + * Either provide endpoint (and optional headers/fetch) for HTTP requests, + * or provide a custom adapter for alternative execution strategies. + */ +export interface OrmClientConfig { + /** GraphQL endpoint URL (required if adapter not provided) */ + endpoint?: string; + /** Default headers for HTTP requests (only used with endpoint) */ + headers?: Record; + /** + * Custom fetch implementation. Defaults to createFetch() from + * @constructive-io/graphql-query/runtime which handles *.localhost + * DNS and Host headers in Node.js. Pass your own for test mocking + * or custom proxy/credentials. + */ + fetch?: typeof globalThis.fetch; + /** Custom adapter for GraphQL execution (overrides endpoint/headers/fetch) */ + adapter?: GraphQLAdapter; + /** + * Optional realtime (WebSocket) configuration. + * When provided, enables subscription methods on models. + * The WebSocket connection is created lazily on first subscribe(). + */ + realtime?: RealtimeConfig; +} + +/** + * Describe a single GraphQL error, falling back to its `extensions.code` when + * the server omits `message` so the error never renders as an empty string. + */ +function describeGraphQLError(error: GraphQLError): string { + if (error.message) return error.message; + const code = error.extensions?.code; + return typeof code === 'string' ? code : 'Unknown error'; +} + +/** + * Error thrown when GraphQL request fails + */ +export class GraphQLRequestError extends Error { + constructor( + public readonly errors: GraphQLError[], + public readonly data: unknown = null + ) { + const messages = errors.map(describeGraphQLError).join('; '); + super(`GraphQL Error: ${messages}`); + this.name = 'GraphQLRequestError'; + } +} + +export class OrmClient { + private adapter: GraphQLAdapter; + private realtimeManager?: RealtimeManager; + + constructor(config: OrmClientConfig) { + if (config.adapter) { + this.adapter = config.adapter; + } else if (config.endpoint) { + this.adapter = new FetchAdapter(config.endpoint, config.headers, config.fetch); + } else { + throw new Error('OrmClientConfig requires either an endpoint or a custom adapter'); + } + + if (config.realtime) { + this.realtimeManager = new RealtimeManager(config.realtime); + } + } + + async execute(document: string, variables?: Record): Promise> { + return this.adapter.execute(document, variables); + } + + /** + * Subscribe to a GraphQL subscription operation. + * Used by generated model subscribe() methods. + * @throws Error if realtime is not configured + */ + subscribe( + meta: SubscriptionFieldMeta, + document: string, + variables: Record, + options: { + onEvent: (event: SubscriptionEvent) => void; + onError?: (error: Error) => void; + onComplete?: () => void; + } + ): Unsubscribe { + if (!this.realtimeManager) { + throw new Error( + 'Realtime not configured. Pass a `realtime` option to createClient() to enable subscriptions.' + ); + } + return this.realtimeManager.subscribe(meta, document, variables, options); + } + + /** + * Set headers for requests. + * Only works if the adapter supports headers. + */ + setHeaders(headers: Record): void { + if (this.adapter.setHeaders) { + this.adapter.setHeaders(headers); + } + } + + /** + * Get the endpoint URL. + * Returns empty string if the adapter doesn't have an endpoint. + */ + getEndpoint(): string { + return this.adapter.getEndpoint?.() ?? ''; + } + + /** Get current WebSocket connection state */ + getConnectionState(): ConnectionState { + return this.realtimeManager?.getConnectionState() ?? 'disconnected'; + } + + /** Register a listener for WebSocket connection state changes */ + onConnectionStateChange(listener: ConnectionStateListener): Unsubscribe { + if (!this.realtimeManager) return () => {}; + return this.realtimeManager.onConnectionStateChange(listener); + } + + /** Number of active subscriptions */ + getActiveSubscriptionCount(): number { + return this.realtimeManager?.getActiveSubscriptionCount() ?? 0; + } + + /** Whether realtime is configured */ + get isRealtimeEnabled(): boolean { + return this.realtimeManager !== undefined; + } + + /** Dispose the realtime manager (close WebSocket) */ + dispose(): void { + this.realtimeManager?.dispose(); + } +} diff --git a/sdk/constructive-react/src/storage/orm/index.ts b/sdk/constructive-react/src/storage/orm/index.ts new file mode 100644 index 0000000000..b5d692cd47 --- /dev/null +++ b/sdk/constructive-react/src/storage/orm/index.ts @@ -0,0 +1,51 @@ +/** + * ORM Client - createClient factory + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from './client'; +import type { OrmClientConfig } from './client'; +import { BucketModel } from './models/bucket'; +import { FileModel } from './models/file'; +import { PlatformBucketModel } from './models/platformBucket'; +import { PlatformFileModel } from './models/platformFile'; +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 { createMutationOperations } from './mutation'; +/** + * Create an ORM client instance + * + * @example + * ```typescript + * const db = createClient({ + * endpoint: 'https://api.example.com/graphql', + * headers: { Authorization: 'Bearer token' }, + * }); + * + * // Query users + * const users = await db.user.findMany({ + * select: { id: true, name: true }, + * first: 10, + * }).execute(); + * + * // Create a user + * const newUser = await db.user.create({ + * data: { name: 'John', email: 'john@example.com' }, + * select: { id: true }, + * }).execute(); + * ``` + */ +export function createClient(config: OrmClientConfig) { + const client = new OrmClient(config); + return { + bucket: new BucketModel(client), + file: new FileModel(client), + platformBucket: new PlatformBucketModel(client), + platformFile: new PlatformFileModel(client), + mutation: createMutationOperations(client), + }; +} diff --git a/sdk/constructive-react/src/storage/orm/input-types.ts b/sdk/constructive-react/src/storage/orm/input-types.ts new file mode 100644 index 0000000000..ebe7107905 --- /dev/null +++ b/sdk/constructive-react/src/storage/orm/input-types.ts @@ -0,0 +1,2256 @@ +/** + * GraphQL types for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +// ============ Scalar Filter Types ============ +export interface StringFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; + includes?: string; + notIncludes?: string; + includesInsensitive?: string; + notIncludesInsensitive?: string; + startsWith?: string; + notStartsWith?: string; + startsWithInsensitive?: string; + notStartsWithInsensitive?: string; + endsWith?: string; + notEndsWith?: string; + endsWithInsensitive?: string; + notEndsWithInsensitive?: string; + like?: string; + notLike?: string; + likeInsensitive?: string; + notLikeInsensitive?: string; +} +export interface IntFilter { + isNull?: boolean; + equalTo?: number; + notEqualTo?: number; + distinctFrom?: number; + notDistinctFrom?: number; + in?: number[]; + notIn?: number[]; + lessThan?: number; + lessThanOrEqualTo?: number; + greaterThan?: number; + greaterThanOrEqualTo?: number; +} +export interface FloatFilter { + isNull?: boolean; + equalTo?: number; + notEqualTo?: number; + distinctFrom?: number; + notDistinctFrom?: number; + in?: number[]; + notIn?: number[]; + lessThan?: number; + lessThanOrEqualTo?: number; + greaterThan?: number; + greaterThanOrEqualTo?: number; +} +export interface BooleanFilter { + isNull?: boolean; + equalTo?: boolean; + notEqualTo?: boolean; +} +export interface UUIDFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; +} +export interface DatetimeFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; +} +export interface DateFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; +} +export interface JSONFilter { + isNull?: boolean; + equalTo?: Record; + notEqualTo?: Record; + distinctFrom?: Record; + notDistinctFrom?: Record; + contains?: Record; + containedBy?: Record; + containsKey?: string; + containsAllKeys?: string[]; + containsAnyKeys?: string[]; +} +export interface BigIntFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; +} +export interface BigFloatFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; +} +export interface BitStringFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; +} +export interface InternetAddressFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; + contains?: string; + containsOrEqualTo?: string; + containedBy?: string; + containedByOrEqualTo?: string; + containsOrContainedBy?: string; +} +export interface FullTextFilter { + matches?: string; +} +export interface VectorFilter { + isNull?: boolean; + equalTo?: number[]; + notEqualTo?: number[]; + distinctFrom?: number[]; + notDistinctFrom?: number[]; +} +export interface StringListFilter { + isNull?: boolean; + equalTo?: string[]; + notEqualTo?: string[]; + distinctFrom?: string[]; + notDistinctFrom?: string[]; + lessThan?: string[]; + lessThanOrEqualTo?: string[]; + greaterThan?: string[]; + greaterThanOrEqualTo?: string[]; + contains?: string[]; + containedBy?: string[]; + overlaps?: string[]; + anyEqualTo?: string; + anyNotEqualTo?: string; + anyLessThan?: string; + anyLessThanOrEqualTo?: string; + anyGreaterThan?: string; + anyGreaterThanOrEqualTo?: string; +} +export interface IntListFilter { + isNull?: boolean; + equalTo?: number[]; + notEqualTo?: number[]; + distinctFrom?: number[]; + notDistinctFrom?: number[]; + lessThan?: number[]; + lessThanOrEqualTo?: number[]; + greaterThan?: number[]; + greaterThanOrEqualTo?: number[]; + contains?: number[]; + containedBy?: number[]; + overlaps?: number[]; + anyEqualTo?: number; + anyNotEqualTo?: number; + anyLessThan?: number; + anyLessThanOrEqualTo?: number; + anyGreaterThan?: number; + anyGreaterThanOrEqualTo?: number; +} +export interface UUIDListFilter { + isNull?: boolean; + equalTo?: string[]; + notEqualTo?: string[]; + distinctFrom?: string[]; + notDistinctFrom?: string[]; + lessThan?: string[]; + lessThanOrEqualTo?: string[]; + greaterThan?: string[]; + greaterThanOrEqualTo?: string[]; + contains?: string[]; + containedBy?: string[]; + overlaps?: string[]; + anyEqualTo?: string; + anyNotEqualTo?: string; + anyLessThan?: string; + anyLessThanOrEqualTo?: string; + anyGreaterThan?: string; + anyGreaterThanOrEqualTo?: string; +} +// ============ Enum Types ============ +export type BucketType = 'PRIVATE' | 'PUBLIC' | 'TEMP'; +export type FileStatus = 'EXPIRED' | 'PROCESSED' | 'REJECTED' | 'REQUESTED' | 'UPLOADED'; +// ============ Custom Scalar Types ============ +export type ConstructiveInternalTypeUpload = unknown; +/** Logical storage containers that group files with shared access policies and CDN behavior */ +// ============ Entity Types ============ +export interface Bucket { + /** User who created this bucket. Forced to current_user_id() on INSERT. */ + actorId?: string | null; + /** When true, clients can provide custom S3 keys (e.g. reports/2024/Q1.pdf). When false (default), S3 key = content hash (automatic dedup). contentHash always required for integrity. */ + allowCustomKeys?: boolean | null; + /** Whitelist of allowed MIME types for files in this bucket (NULL = all allowed, enforcement deferred) */ + allowedMimeTypes?: string[] | null; + /** Per-bucket CORS allowed origins override (NULL = inherit from storage_module/plugin defaults). Use ARRAY['*'] for open/CDN mode. */ + allowedOrigins?: string[] | null; + createdAt?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; + /** Human-readable description of the bucket purpose */ + description?: string | null; + /** For a temp bucket, the permanent bucket its uploads are promoted into. NULL on non-temp buckets; required on temp buckets. */ + destinationBucketId?: string | null; + id: string; + /** Whether bucket contents are publicly readable. Set to true when type is public. */ + isPublic?: boolean | null; + /** Unique bucket identifier used in S3 key paths (e.g. avatars, documents, temp) */ + key?: string | null; + /** Maximum file size in bytes allowed in this bucket (NULL = no limit, enforcement deferred) */ + maxFileSize?: string | null; + /** Physical S3/MinIO bucket name recorded at provision time (NULL until the physical bucket exists) */ + physicalName?: string | null; + /** For a temp bucket, how long an unpromoted staged file survives before it is eligible for expiry. NULL on non-temp buckets; required on temp buckets. */ + stagingTtl?: string | null; + /** Selector labels for capability resolution and grouping (e.g. uploads, variants, exports). A function's required bucket key is matched against these plus type. */ + tags?: string[] | null; + /** Bucket CDN access type: public (CDN-served), private (presigned GET), temp (staging uploads) */ + type?: BucketType | null; + updatedAt?: string | null; +} +/** Individual file records within buckets, with immutable identity fields and mutable metadata */ +export interface File { + /** User who uploaded this file. Forced to current_user_id() on INSERT. Used for UPDATE/DELETE authorization. */ + actorId?: string | null; + /** Bucket this file belongs to. Determines owner_id and is_public via inheritance trigger. */ + bucketId?: string | null; + /** SHA-256 content hash for integrity verification and dedup. In default mode, equals the S3 key. In custom key mode, stored separately. */ + contentHash?: string | null; + createdAt?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; + /** Human-readable description or alt text for the file (mutable) */ + description?: string | null; + /** URL to download this file. For public files, returns the public URL. For private files, returns a time-limited presigned URL. */ + downloadUrl?: string | null; + /** When the staged-expiry sweep enqueued deletion of this file's object. NULL until it expires; set once so expiry is enqueued exactly once. */ + expiryEnqueuedAt?: string | null; + filePath?: string | null; + /** Original filename provided by the uploader. Used for display and Content-Disposition header on download. */ + filename?: string | null; + id: string; + /** Whether this file is publicly readable. Inherited from bucket on INSERT. */ + isPublic?: boolean | null; + /** S3 object key for this file, unique within its bucket */ + key?: string | null; + /** MIME type of the file (e.g. image/png, application/pdf). Immutable after INSERT. */ + mimeType?: string | null; + /** When this file was promoted out of its staging bucket into its destination bucket. NULL for a file that was never staged, or is still staged. */ + promotedAt?: string | null; + /** File size in bytes. Immutable after INSERT. */ + size?: string | null; + /** File lifecycle status: requested (presigned URL generated, not yet in S3), uploaded (file in S3 and content validated, ready for use), processed (image resized, text extracted, embedding computed), rejected (declared type disagreed with the bytes), expired (bytes never arrived before the confirm window closed). */ + status?: FileStatus | null; + /** User-defined tags for categorization and search (mutable) */ + tags?: string[] | null; + updatedAt?: string | null; + /** Processed file reference (upload domain). Populated by processing jobs after file is uploaded. Copy this value to other tables to reference the file. */ + upload?: ConstructiveInternalTypeUpload | null; +} +/** Logical storage containers that group files with shared access policies and CDN behavior */ +export interface PlatformBucket { + /** User who created this bucket. Forced to current_user_id() on INSERT. */ + actorId?: string | null; + /** When true, clients can provide custom S3 keys (e.g. reports/2024/Q1.pdf). When false (default), S3 key = content hash (automatic dedup). contentHash always required for integrity. */ + allowCustomKeys?: boolean | null; + /** Whitelist of allowed MIME types for files in this bucket (NULL = all allowed, enforcement deferred) */ + allowedMimeTypes?: string[] | null; + /** Per-bucket CORS allowed origins override (NULL = inherit from storage_module/plugin defaults). Use ARRAY['*'] for open/CDN mode. */ + allowedOrigins?: string[] | null; + createdAt?: string | null; + /** Human-readable description of the bucket purpose */ + description?: string | null; + /** For a temp bucket, the permanent bucket its uploads are promoted into. NULL on non-temp buckets; required on temp buckets. */ + destinationBucketId?: string | null; + id: string; + /** Whether bucket contents are publicly readable. Set to true when type is public. */ + isPublic?: boolean | null; + /** Unique bucket identifier used in S3 key paths (e.g. avatars, documents, temp) */ + key?: string | null; + /** Maximum file size in bytes allowed in this bucket (NULL = no limit, enforcement deferred) */ + maxFileSize?: string | null; + /** Physical S3/MinIO bucket name recorded at provision time (NULL until the physical bucket exists) */ + physicalName?: string | null; + /** For a temp bucket, how long an unpromoted staged file survives before it is eligible for expiry. NULL on non-temp buckets; required on temp buckets. */ + stagingTtl?: string | null; + /** Selector labels for capability resolution and grouping (e.g. uploads, variants, exports). A function's required bucket key is matched against these plus type. */ + tags?: string[] | null; + /** Bucket CDN access type: public (CDN-served), private (presigned GET), temp (staging uploads) */ + type?: BucketType | null; + updatedAt?: string | null; +} +/** Individual file records within buckets, with immutable identity fields and mutable metadata */ +export interface PlatformFile { + /** User who uploaded this file. Forced to current_user_id() on INSERT. Used for UPDATE/DELETE authorization. */ + actorId?: string | null; + /** Bucket this file belongs to. Determines owner_id and is_public via inheritance trigger. */ + bucketId?: string | null; + /** SHA-256 content hash for integrity verification and dedup. In default mode, equals the S3 key. In custom key mode, stored separately. */ + contentHash?: string | null; + createdAt?: string | null; + /** Human-readable description or alt text for the file (mutable) */ + description?: string | null; + /** URL to download this file. For public files, returns the public URL. For private files, returns a time-limited presigned URL. */ + downloadUrl?: string | null; + /** When the staged-expiry sweep enqueued deletion of this file's object. NULL until it expires; set once so expiry is enqueued exactly once. */ + expiryEnqueuedAt?: string | null; + filePath?: string | null; + /** Original filename provided by the uploader. Used for display and Content-Disposition header on download. */ + filename?: string | null; + id: string; + /** Whether this file is publicly readable. Inherited from bucket on INSERT. */ + isPublic?: boolean | null; + /** S3 object key for this file, unique within its bucket */ + key?: string | null; + /** MIME type of the file (e.g. image/png, application/pdf). Immutable after INSERT. */ + mimeType?: string | null; + /** When this file was promoted out of its staging bucket into its destination bucket. NULL for a file that was never staged, or is still staged. */ + promotedAt?: string | null; + /** File size in bytes. Immutable after INSERT. */ + size?: string | null; + /** File lifecycle status: requested (presigned URL generated, not yet in S3), uploaded (file in S3 and content validated, ready for use), processed (image resized, text extracted, embedding computed), rejected (declared type disagreed with the bytes), expired (bytes never arrived before the confirm window closed). */ + status?: FileStatus | null; + /** User-defined tags for categorization and search (mutable) */ + tags?: string[] | null; + updatedAt?: string | null; + /** Processed file reference (upload domain). Populated by processing jobs after file is uploaded. Copy this value to other tables to reference the file. */ + upload?: ConstructiveInternalTypeUpload | null; +} +// ============ Relation Helper Types ============ +export interface ConnectionResult { + nodes: T[]; + totalCount: number; + pageInfo: PageInfo; +} +export interface PageInfo { + hasNextPage: boolean; + hasPreviousPage: boolean; + startCursor?: string | null; + endCursor?: string | null; +} +// ============ Entity Relation Types ============ +export interface BucketRelations { + destinationBucket?: Bucket | null; + bucketsByDestinationBucketId?: ConnectionResult; + files?: ConnectionResult; +} +export interface FileRelations { + bucket?: Bucket | null; +} +export interface PlatformBucketRelations { + destinationBucket?: PlatformBucket | null; + platformBucketsByDestinationBucketId?: ConnectionResult; + platformFilesByBucketId?: ConnectionResult; +} +export interface PlatformFileRelations { + bucket?: PlatformBucket | null; +} +// ============ Entity Types With Relations ============ +export type BucketWithRelations = Bucket & BucketRelations; +export type FileWithRelations = File & FileRelations; +export type PlatformBucketWithRelations = PlatformBucket & PlatformBucketRelations; +export type PlatformFileWithRelations = PlatformFile & PlatformFileRelations; +// ============ Entity Select Types ============ +export type BucketSelect = { + actorId?: boolean; + allowCustomKeys?: boolean; + allowedMimeTypes?: boolean; + allowedOrigins?: boolean; + createdAt?: boolean; + databaseId?: boolean; + description?: boolean; + destinationBucketId?: boolean; + id?: boolean; + isPublic?: boolean; + key?: boolean; + maxFileSize?: boolean; + physicalName?: boolean; + stagingTtl?: boolean; + tags?: boolean; + type?: boolean; + updatedAt?: boolean; + destinationBucket?: { + select: BucketSelect; + }; + bucketsByDestinationBucketId?: { + select: BucketSelect; + first?: number; + filter?: BucketFilter; + orderBy?: BucketOrderBy[]; + }; + files?: { + select: FileSelect; + first?: number; + filter?: FileFilter; + orderBy?: FileOrderBy[]; + }; +}; +export type FileSelect = { + actorId?: boolean; + bucketId?: boolean; + contentHash?: boolean; + createdAt?: boolean; + databaseId?: boolean; + description?: boolean; + downloadUrl?: boolean; + expiryEnqueuedAt?: boolean; + filePath?: boolean; + filename?: boolean; + id?: boolean; + isPublic?: boolean; + key?: boolean; + mimeType?: boolean; + promotedAt?: boolean; + size?: boolean; + status?: boolean; + tags?: boolean; + updatedAt?: boolean; + upload?: boolean; + bucket?: { + select: BucketSelect; + }; +}; +export type PlatformBucketSelect = { + actorId?: boolean; + allowCustomKeys?: boolean; + allowedMimeTypes?: boolean; + allowedOrigins?: boolean; + createdAt?: boolean; + description?: boolean; + destinationBucketId?: boolean; + id?: boolean; + isPublic?: boolean; + key?: boolean; + maxFileSize?: boolean; + physicalName?: boolean; + stagingTtl?: boolean; + tags?: boolean; + type?: boolean; + updatedAt?: boolean; + destinationBucket?: { + select: PlatformBucketSelect; + }; + platformBucketsByDestinationBucketId?: { + select: PlatformBucketSelect; + first?: number; + filter?: PlatformBucketFilter; + orderBy?: PlatformBucketOrderBy[]; + }; + platformFilesByBucketId?: { + select: PlatformFileSelect; + first?: number; + filter?: PlatformFileFilter; + orderBy?: PlatformFileOrderBy[]; + }; +}; +export type PlatformFileSelect = { + actorId?: boolean; + bucketId?: boolean; + contentHash?: boolean; + createdAt?: boolean; + description?: boolean; + downloadUrl?: boolean; + expiryEnqueuedAt?: boolean; + filePath?: boolean; + filename?: boolean; + id?: boolean; + isPublic?: boolean; + key?: boolean; + mimeType?: boolean; + promotedAt?: boolean; + size?: boolean; + status?: boolean; + tags?: boolean; + updatedAt?: boolean; + upload?: boolean; + bucket?: { + select: PlatformBucketSelect; + }; +}; +// ============ Table Filter Types ============ +export interface BucketFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `allowCustomKeys` field. */ + allowCustomKeys?: BooleanFilter; + /** Filter by the object’s `allowedMimeTypes` field. */ + allowedMimeTypes?: StringListFilter; + /** Filter by the object’s `allowedOrigins` field. */ + allowedOrigins?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: BucketFilter[]; + /** Filter by the object’s `bucketsByDestinationBucketId` relation. */ + bucketsByDestinationBucketId?: BucketToManyBucketFilter; + /** `bucketsByDestinationBucketId` exist. */ + bucketsByDestinationBucketIdExist?: boolean; + /** 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 `destinationBucket` relation. */ + destinationBucket?: BucketFilter; + /** A related `destinationBucket` exists. */ + destinationBucketExists?: boolean; + /** Filter by the object’s `destinationBucketId` field. */ + destinationBucketId?: UUIDFilter; + /** Filter by the object’s `files` relation. */ + files?: BucketToManyFileFilter; + /** `files` exist. */ + filesExist?: boolean; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isPublic` field. */ + isPublic?: BooleanFilter; + /** Filter by the object’s `key` field. */ + key?: StringFilter; + /** Filter by the object’s `maxFileSize` field. */ + maxFileSize?: BigIntFilter; + /** Negates the expression. */ + not?: BucketFilter; + /** Checks for any expressions in this list. */ + or?: BucketFilter[]; + /** Filter by the object’s `physicalName` field. */ + physicalName?: StringFilter; + /** Filter by the object’s `stagingTtl` field. */ + stagingTtl?: IntervalFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Filter by the object’s `type` field. */ + type?: BucketTypeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} +export interface FileFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: FileFilter[]; + /** Filter by the object’s `bucket` relation. */ + bucket?: BucketFilter; + /** Filter by the object’s `bucketId` field. */ + bucketId?: UUIDFilter; + /** Filter by the object’s `contentHash` field. */ + contentHash?: 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 `expiryEnqueuedAt` field. */ + expiryEnqueuedAt?: DatetimeFilter; + /** Filter by the object’s `filename` field. */ + filename?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isPublic` field. */ + isPublic?: BooleanFilter; + /** Filter by the object’s `key` field. */ + key?: StringFilter; + /** Filter by the object’s `mimeType` field. */ + mimeType?: StringFilter; + /** Negates the expression. */ + not?: FileFilter; + /** Checks for any expressions in this list. */ + or?: FileFilter[]; + /** Filter by the object’s `promotedAt` field. */ + promotedAt?: DatetimeFilter; + /** Filter by the object’s `size` field. */ + size?: BigIntFilter; + /** Filter by the object’s `status` field. */ + status?: FileStatusFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `upload` field. */ + upload?: ConstructiveInternalTypeUploadFilter; +} +export interface PlatformBucketFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `allowCustomKeys` field. */ + allowCustomKeys?: BooleanFilter; + /** Filter by the object’s `allowedMimeTypes` field. */ + allowedMimeTypes?: StringListFilter; + /** Filter by the object’s `allowedOrigins` field. */ + allowedOrigins?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: PlatformBucketFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `destinationBucket` relation. */ + destinationBucket?: PlatformBucketFilter; + /** A related `destinationBucket` exists. */ + destinationBucketExists?: boolean; + /** Filter by the object’s `destinationBucketId` field. */ + destinationBucketId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isPublic` field. */ + isPublic?: BooleanFilter; + /** Filter by the object’s `key` field. */ + key?: StringFilter; + /** Filter by the object’s `maxFileSize` field. */ + maxFileSize?: BigIntFilter; + /** Negates the expression. */ + not?: PlatformBucketFilter; + /** Checks for any expressions in this list. */ + or?: PlatformBucketFilter[]; + /** Filter by the object’s `physicalName` field. */ + physicalName?: StringFilter; + /** Filter by the object’s `platformBucketsByDestinationBucketId` relation. */ + platformBucketsByDestinationBucketId?: PlatformBucketToManyPlatformBucketFilter; + /** `platformBucketsByDestinationBucketId` exist. */ + platformBucketsByDestinationBucketIdExist?: boolean; + /** Filter by the object’s `platformFilesByBucketId` relation. */ + platformFilesByBucketId?: PlatformBucketToManyPlatformFileFilter; + /** `platformFilesByBucketId` exist. */ + platformFilesByBucketIdExist?: boolean; + /** Filter by the object’s `stagingTtl` field. */ + stagingTtl?: IntervalFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Filter by the object’s `type` field. */ + type?: BucketTypeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} +export interface PlatformFileFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: PlatformFileFilter[]; + /** Filter by the object’s `bucket` relation. */ + bucket?: PlatformBucketFilter; + /** Filter by the object’s `bucketId` field. */ + bucketId?: UUIDFilter; + /** Filter by the object’s `contentHash` field. */ + contentHash?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `expiryEnqueuedAt` field. */ + expiryEnqueuedAt?: DatetimeFilter; + /** Filter by the object’s `filename` field. */ + filename?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isPublic` field. */ + isPublic?: BooleanFilter; + /** Filter by the object’s `key` field. */ + key?: StringFilter; + /** Filter by the object’s `mimeType` field. */ + mimeType?: StringFilter; + /** Negates the expression. */ + not?: PlatformFileFilter; + /** Checks for any expressions in this list. */ + or?: PlatformFileFilter[]; + /** Filter by the object’s `promotedAt` field. */ + promotedAt?: DatetimeFilter; + /** Filter by the object’s `size` field. */ + size?: BigIntFilter; + /** Filter by the object’s `status` field. */ + status?: FileStatusFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `upload` field. */ + upload?: ConstructiveInternalTypeUploadFilter; +} +// ============ OrderBy Types ============ +export type BucketOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'ALLOWED_MIME_TYPES_ASC' + | 'ALLOWED_MIME_TYPES_DESC' + | 'ALLOWED_ORIGINS_ASC' + | 'ALLOWED_ORIGINS_DESC' + | 'ALLOW_CUSTOM_KEYS_ASC' + | 'ALLOW_CUSTOM_KEYS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'DESTINATION_BUCKET_ID_ASC' + | 'DESTINATION_BUCKET_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_PUBLIC_ASC' + | 'IS_PUBLIC_DESC' + | 'KEY_ASC' + | 'KEY_DESC' + | 'MAX_FILE_SIZE_ASC' + | 'MAX_FILE_SIZE_DESC' + | 'NATURAL' + | 'PHYSICAL_NAME_ASC' + | 'PHYSICAL_NAME_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'STAGING_TTL_ASC' + | 'STAGING_TTL_DESC' + | 'TAGS_ASC' + | 'TAGS_DESC' + | 'TYPE_ASC' + | 'TYPE_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type FileOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'BUCKET_ID_ASC' + | 'BUCKET_ID_DESC' + | 'CONTENT_HASH_ASC' + | 'CONTENT_HASH_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'EXPIRY_ENQUEUED_AT_ASC' + | 'EXPIRY_ENQUEUED_AT_DESC' + | 'FILENAME_ASC' + | 'FILENAME_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_PUBLIC_ASC' + | 'IS_PUBLIC_DESC' + | 'KEY_ASC' + | 'KEY_DESC' + | 'MIME_TYPE_ASC' + | 'MIME_TYPE_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PROMOTED_AT_ASC' + | 'PROMOTED_AT_DESC' + | 'SIZE_ASC' + | 'SIZE_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'TAGS_ASC' + | 'TAGS_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPLOAD_ASC' + | 'UPLOAD_DESC'; +export type PlatformBucketOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'ALLOWED_MIME_TYPES_ASC' + | 'ALLOWED_MIME_TYPES_DESC' + | 'ALLOWED_ORIGINS_ASC' + | 'ALLOWED_ORIGINS_DESC' + | 'ALLOW_CUSTOM_KEYS_ASC' + | 'ALLOW_CUSTOM_KEYS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'DESTINATION_BUCKET_ID_ASC' + | 'DESTINATION_BUCKET_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_PUBLIC_ASC' + | 'IS_PUBLIC_DESC' + | 'KEY_ASC' + | 'KEY_DESC' + | 'MAX_FILE_SIZE_ASC' + | 'MAX_FILE_SIZE_DESC' + | 'NATURAL' + | 'PHYSICAL_NAME_ASC' + | 'PHYSICAL_NAME_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'STAGING_TTL_ASC' + | 'STAGING_TTL_DESC' + | 'TAGS_ASC' + | 'TAGS_DESC' + | 'TYPE_ASC' + | 'TYPE_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type PlatformFileOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'BUCKET_ID_ASC' + | 'BUCKET_ID_DESC' + | 'CONTENT_HASH_ASC' + | 'CONTENT_HASH_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'EXPIRY_ENQUEUED_AT_ASC' + | 'EXPIRY_ENQUEUED_AT_DESC' + | 'FILENAME_ASC' + | 'FILENAME_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_PUBLIC_ASC' + | 'IS_PUBLIC_DESC' + | 'KEY_ASC' + | 'KEY_DESC' + | 'MIME_TYPE_ASC' + | 'MIME_TYPE_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PROMOTED_AT_ASC' + | 'PROMOTED_AT_DESC' + | 'SIZE_ASC' + | 'SIZE_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'TAGS_ASC' + | 'TAGS_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPLOAD_ASC' + | 'UPLOAD_DESC'; +// ============ CRUD Input Types ============ +export interface CreateBucketInput { + clientMutationId?: string; + bucket: { + actorId: string; + allowCustomKeys?: boolean; + allowedMimeTypes?: string[]; + allowedOrigins?: string[]; + databaseId: string; + description?: string; + destinationBucketId?: string; + isPublic?: boolean; + key: string; + maxFileSize?: string; + physicalName?: string; + stagingTtl?: IntervalInput; + tags?: string[]; + type?: BucketType; + }; +} +export interface BucketPatch { + actorId?: string | null; + allowCustomKeys?: boolean | null; + allowedMimeTypes?: string[] | null; + allowedOrigins?: string[] | null; + databaseId?: string | null; + description?: string | null; + destinationBucketId?: string | null; + isPublic?: boolean | null; + key?: string | null; + maxFileSize?: string | null; + physicalName?: string | null; + stagingTtl?: IntervalInput | null; + tags?: string[] | null; + type?: BucketType | null; +} +export interface UpdateBucketInput { + clientMutationId?: string; + id: string; + bucketPatch: BucketPatch; +} +export interface DeleteBucketInput { + clientMutationId?: string; + id: string; +} +export interface CreateFileInput { + clientMutationId?: string; + file: { + actorId: string; + bucketId: string; + contentHash?: string; + databaseId: string; + description?: string; + expiryEnqueuedAt?: string; + filename?: string; + isPublic?: boolean; + key: string; + mimeType: string; + promotedAt?: string; + size: string; + status?: FileStatus; + tags?: string[]; + upload?: ConstructiveInternalTypeUpload; + }; +} +export interface FilePatch { + actorId?: string | null; + bucketId?: string | null; + contentHash?: string | null; + databaseId?: string | null; + description?: string | null; + expiryEnqueuedAt?: string | null; + filename?: string | null; + isPublic?: boolean | null; + key?: string | null; + mimeType?: string | null; + promotedAt?: string | null; + size?: string | null; + status?: FileStatus | null; + tags?: string[] | null; + upload?: ConstructiveInternalTypeUpload | null; + uploadUpload?: File | null; +} +export interface UpdateFileInput { + clientMutationId?: string; + id: string; + filePatch: FilePatch; +} +export interface DeleteFileInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformBucketInput { + clientMutationId?: string; + platformBucket: { + actorId: string; + allowCustomKeys?: boolean; + allowedMimeTypes?: string[]; + allowedOrigins?: string[]; + description?: string; + destinationBucketId?: string; + isPublic?: boolean; + key: string; + maxFileSize?: string; + physicalName?: string; + stagingTtl?: IntervalInput; + tags?: string[]; + type?: BucketType; + }; +} +export interface PlatformBucketPatch { + actorId?: string | null; + allowCustomKeys?: boolean | null; + allowedMimeTypes?: string[] | null; + allowedOrigins?: string[] | null; + description?: string | null; + destinationBucketId?: string | null; + isPublic?: boolean | null; + key?: string | null; + maxFileSize?: string | null; + physicalName?: string | null; + stagingTtl?: IntervalInput | null; + tags?: string[] | null; + type?: BucketType | null; +} +export interface UpdatePlatformBucketInput { + clientMutationId?: string; + id: string; + platformBucketPatch: PlatformBucketPatch; +} +export interface DeletePlatformBucketInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformFileInput { + clientMutationId?: string; + platformFile: { + actorId: string; + bucketId: string; + contentHash?: string; + description?: string; + expiryEnqueuedAt?: string; + filename?: string; + isPublic?: boolean; + key: string; + mimeType: string; + promotedAt?: string; + size: string; + status?: FileStatus; + tags?: string[]; + upload?: ConstructiveInternalTypeUpload; + }; +} +export interface PlatformFilePatch { + actorId?: string | null; + bucketId?: string | null; + contentHash?: string | null; + description?: string | null; + expiryEnqueuedAt?: string | null; + filename?: string | null; + isPublic?: boolean | null; + key?: string | null; + mimeType?: string | null; + promotedAt?: string | null; + size?: string | null; + status?: FileStatus | null; + tags?: string[] | null; + upload?: ConstructiveInternalTypeUpload | null; + uploadUpload?: File | null; +} +export interface UpdatePlatformFileInput { + clientMutationId?: string; + id: string; + platformFilePatch: PlatformFilePatch; +} +export interface DeletePlatformFileInput { + clientMutationId?: string; + id: string; +} +// ============ Connection Fields Map ============ +export const connectionFieldsMap = { + Bucket: { + bucketsByDestinationBucketId: 'Bucket', + files: 'File', + }, + PlatformBucket: { + platformBucketsByDestinationBucketId: 'PlatformBucket', + platformFilesByBucketId: 'PlatformFile', + }, +} as Record>; +// ============ Custom Input Types (from schema) ============ +export interface FilesRenameInput { + clientMutationId?: string; + fileId?: string; + newFilename?: string; +} +export interface PlatformFilesRenameInput { + clientMutationId?: string; + fileId?: string; + newFilename?: 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 UploadFileInput { + /** Bucket key (e.g., "public", "private"). Omit to use the database's default bucket for the requested access. */ + bucketKey?: string; + /** SHA-256 content hash (hex-encoded, 64 chars) */ + contentHash: string; + /** MIME type of the file */ + contentType: string; + /** Original filename (optional) */ + filename?: string; + /** Which default bucket to resolve when bucketKey is omitted: the public one (true) or the private one (default false). Ignored when bucketKey is given. */ + isPublic?: boolean; + /** Custom S3 key (only when bucket has allow_custom_keys=true) */ + key?: string; + /** File size in bytes */ + size: number; +} +export interface UploadFileBulkInput { + /** Bucket key (e.g., "public", "private"). Omit to use the database's default bucket for the requested access. */ + bucketKey?: string; + /** Array of files to upload */ + files: UploadFileBulkFileInput[]; + /** Which default bucket to resolve when bucketKey is omitted. Ignored when bucketKey is given. */ + isPublic?: boolean; +} +export interface UploadPlatformFileInput { + /** Bucket key (e.g., "public", "private"). Omit to use the database's default bucket for the requested access. */ + bucketKey?: string; + /** SHA-256 content hash (hex-encoded, 64 chars) */ + contentHash: string; + /** MIME type of the file */ + contentType: string; + /** Original filename (optional) */ + filename?: string; + /** Which default bucket to resolve when bucketKey is omitted: the public one (true) or the private one (default false). Ignored when bucketKey is given. */ + isPublic?: boolean; + /** Custom S3 key (only when bucket has allow_custom_keys=true) */ + key?: string; + /** File size in bytes */ + size: number; +} +export interface UploadPlatformFileBulkInput { + /** Bucket key (e.g., "public", "private"). Omit to use the database's default bucket for the requested access. */ + bucketKey?: string; + /** Array of files to upload */ + files: UploadPlatformFileBulkFileInput[]; + /** Which default bucket to resolve when bucketKey is omitted. Ignored when bucketKey is given. */ + isPublic?: boolean; +} +/** A filter to be used against many `Bucket` object types. All fields are combined with a logical ‘and.’ */ +export interface BucketToManyBucketFilter { + /** Filters to entities where every related entity matches. */ + every?: BucketFilter; + /** Filters to entities where no related entity matches. */ + none?: BucketFilter; + /** Filters to entities where at least one related entity matches. */ + some?: BucketFilter; +} +/** A filter to be used against many `File` object types. All fields are combined with a logical ‘and.’ */ +export interface BucketToManyFileFilter { + /** Filters to entities where every related entity matches. */ + every?: FileFilter; + /** Filters to entities where no related entity matches. */ + none?: FileFilter; + /** Filters to entities where at least one related entity matches. */ + some?: FileFilter; +} +/** A filter to be used against Interval fields. All fields are combined with a logical ‘and.’ */ +export interface IntervalFilter { + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: IntervalInput; + /** Equal to the specified value. */ + equalTo?: IntervalInput; + /** Greater than the specified value. */ + greaterThan?: IntervalInput; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: IntervalInput; + /** Included in the specified list. */ + in?: IntervalInput[]; + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Less than the specified value. */ + lessThan?: IntervalInput; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: IntervalInput; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: IntervalInput; + /** Not equal to the specified value. */ + notEqualTo?: IntervalInput; + /** Not included in the specified list. */ + notIn?: IntervalInput[]; +} +/** A filter to be used against BucketType fields. All fields are combined with a logical ‘and.’ */ +export interface BucketTypeFilter { + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: BucketType; + /** Equal to the specified value. */ + equalTo?: BucketType; + /** Greater than the specified value. */ + greaterThan?: BucketType; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: BucketType; + /** Included in the specified list. */ + in?: BucketType[]; + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Less than the specified value. */ + lessThan?: BucketType; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: BucketType; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: BucketType; + /** Not equal to the specified value. */ + notEqualTo?: BucketType; + /** Not included in the specified list. */ + notIn?: BucketType[]; +} +/** A filter to be used against FileStatus fields. All fields are combined with a logical ‘and.’ */ +export interface FileStatusFilter { + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: FileStatus; + /** Equal to the specified value. */ + equalTo?: FileStatus; + /** Greater than the specified value. */ + greaterThan?: FileStatus; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: FileStatus; + /** Included in the specified list. */ + in?: FileStatus[]; + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Less than the specified value. */ + lessThan?: FileStatus; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: FileStatus; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: FileStatus; + /** Not equal to the specified value. */ + notEqualTo?: FileStatus; + /** Not included in the specified list. */ + notIn?: FileStatus[]; +} +/** A filter to be used against ConstructiveInternalTypeUpload fields. All fields are combined with a logical ‘and.’ */ +export interface ConstructiveInternalTypeUploadFilter { + /** Contained by the specified JSON. */ + containedBy?: ConstructiveInternalTypeUpload; + /** Contains the specified JSON. */ + contains?: ConstructiveInternalTypeUpload; + /** Contains all of the specified keys. */ + containsAllKeys?: string[]; + /** Contains any of the specified keys. */ + containsAnyKeys?: string[]; + /** Contains the specified key. */ + containsKey?: string; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: ConstructiveInternalTypeUpload; + /** Equal to the specified value. */ + equalTo?: ConstructiveInternalTypeUpload; + /** Greater than the specified value. */ + greaterThan?: ConstructiveInternalTypeUpload; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: ConstructiveInternalTypeUpload; + /** Included in the specified list. */ + in?: ConstructiveInternalTypeUpload[]; + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Less than the specified value. */ + lessThan?: ConstructiveInternalTypeUpload; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: ConstructiveInternalTypeUpload; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: ConstructiveInternalTypeUpload; + /** Not equal to the specified value. */ + notEqualTo?: ConstructiveInternalTypeUpload; + /** Not included in the specified list. */ + notIn?: ConstructiveInternalTypeUpload[]; +} +/** A filter to be used against many `PlatformBucket` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformBucketToManyPlatformBucketFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformBucketFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformBucketFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformBucketFilter; +} +/** A filter to be used against many `PlatformFile` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformBucketToManyPlatformFileFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformFileFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformFileFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformFileFilter; +} +/** An input for mutations affecting `Bucket` */ +export interface BucketInput { + /** User who created this bucket. Forced to current_user_id() on INSERT. */ + actorId: string; + /** When true, clients can provide custom S3 keys (e.g. reports/2024/Q1.pdf). When false (default), S3 key = content hash (automatic dedup). contentHash always required for integrity. */ + allowCustomKeys?: boolean; + /** Whitelist of allowed MIME types for files in this bucket (NULL = all allowed, enforcement deferred) */ + allowedMimeTypes?: string[]; + /** Per-bucket CORS allowed origins override (NULL = inherit from storage_module/plugin defaults). Use ARRAY['*'] for open/CDN mode. */ + allowedOrigins?: string[]; + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Human-readable description of the bucket purpose */ + description?: string; + /** For a temp bucket, the permanent bucket its uploads are promoted into. NULL on non-temp buckets; required on temp buckets. */ + destinationBucketId?: string; + id?: string; + /** Whether bucket contents are publicly readable. Set to true when type is public. */ + isPublic?: boolean; + /** Unique bucket identifier used in S3 key paths (e.g. avatars, documents, temp) */ + key: string; + /** Maximum file size in bytes allowed in this bucket (NULL = no limit, enforcement deferred) */ + maxFileSize?: string; + /** Physical S3/MinIO bucket name recorded at provision time (NULL until the physical bucket exists) */ + physicalName?: string; + /** For a temp bucket, how long an unpromoted staged file survives before it is eligible for expiry. NULL on non-temp buckets; required on temp buckets. */ + stagingTtl?: IntervalInput; + /** Selector labels for capability resolution and grouping (e.g. uploads, variants, exports). A function's required bucket key is matched against these plus type. */ + tags?: string[]; + /** Bucket CDN access type: public (CDN-served), private (presigned GET), temp (staging uploads) */ + type?: BucketType; + updatedAt?: string; +} +/** An interval of time that has passed where the smallest distinct unit is a second. */ +export interface IntervalInput { + /** A quantity of days. */ + days?: number; + /** A quantity of hours. */ + hours?: number; + /** A quantity of minutes. */ + minutes?: number; + /** A quantity of months. */ + months?: number; + /** + * A quantity of seconds. This is the only non-integer field, as all the other + * fields will dump their overflow into a smaller unit of time. Intervals don’t + * have a smaller unit than seconds. + */ + seconds?: number; + /** A quantity of years. */ + years?: number; +} +/** An input for mutations affecting `File` */ +export interface FileInput { + /** User who uploaded this file. Forced to current_user_id() on INSERT. Used for UPDATE/DELETE authorization. */ + actorId: string; + /** Bucket this file belongs to. Determines owner_id and is_public via inheritance trigger. */ + bucketId: string; + /** SHA-256 content hash for integrity verification and dedup. In default mode, equals the S3 key. In custom key mode, stored separately. */ + contentHash?: string; + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Human-readable description or alt text for the file (mutable) */ + description?: string; + /** When the staged-expiry sweep enqueued deletion of this file's object. NULL until it expires; set once so expiry is enqueued exactly once. */ + expiryEnqueuedAt?: string; + /** Original filename provided by the uploader. Used for display and Content-Disposition header on download. */ + filename?: string; + id?: string; + /** Whether this file is publicly readable. Inherited from bucket on INSERT. */ + isPublic?: boolean; + /** S3 object key for this file, unique within its bucket */ + key: string; + /** MIME type of the file (e.g. image/png, application/pdf). Immutable after INSERT. */ + mimeType: string; + /** When this file was promoted out of its staging bucket into its destination bucket. NULL for a file that was never staged, or is still staged. */ + promotedAt?: string; + /** File size in bytes. Immutable after INSERT. */ + size: string; + /** File lifecycle status: requested (presigned URL generated, not yet in S3), uploaded (file in S3 and content validated, ready for use), processed (image resized, text extracted, embedding computed), rejected (declared type disagreed with the bytes), expired (bytes never arrived before the confirm window closed). */ + status?: FileStatus; + /** User-defined tags for categorization and search (mutable) */ + tags?: string[]; + updatedAt?: string; + /** Processed file reference (upload domain). Populated by processing jobs after file is uploaded. Copy this value to other tables to reference the file. */ + upload?: ConstructiveInternalTypeUpload; +} +/** An input for mutations affecting `PlatformBucket` */ +export interface PlatformBucketInput { + /** User who created this bucket. Forced to current_user_id() on INSERT. */ + actorId: string; + /** When true, clients can provide custom S3 keys (e.g. reports/2024/Q1.pdf). When false (default), S3 key = content hash (automatic dedup). contentHash always required for integrity. */ + allowCustomKeys?: boolean; + /** Whitelist of allowed MIME types for files in this bucket (NULL = all allowed, enforcement deferred) */ + allowedMimeTypes?: string[]; + /** Per-bucket CORS allowed origins override (NULL = inherit from storage_module/plugin defaults). Use ARRAY['*'] for open/CDN mode. */ + allowedOrigins?: string[]; + createdAt?: string; + /** Human-readable description of the bucket purpose */ + description?: string; + /** For a temp bucket, the permanent bucket its uploads are promoted into. NULL on non-temp buckets; required on temp buckets. */ + destinationBucketId?: string; + id?: string; + /** Whether bucket contents are publicly readable. Set to true when type is public. */ + isPublic?: boolean; + /** Unique bucket identifier used in S3 key paths (e.g. avatars, documents, temp) */ + key: string; + /** Maximum file size in bytes allowed in this bucket (NULL = no limit, enforcement deferred) */ + maxFileSize?: string; + /** Physical S3/MinIO bucket name recorded at provision time (NULL until the physical bucket exists) */ + physicalName?: string; + /** For a temp bucket, how long an unpromoted staged file survives before it is eligible for expiry. NULL on non-temp buckets; required on temp buckets. */ + stagingTtl?: IntervalInput; + /** Selector labels for capability resolution and grouping (e.g. uploads, variants, exports). A function's required bucket key is matched against these plus type. */ + tags?: string[]; + /** Bucket CDN access type: public (CDN-served), private (presigned GET), temp (staging uploads) */ + type?: BucketType; + updatedAt?: string; +} +/** An input for mutations affecting `PlatformFile` */ +export interface PlatformFileInput { + /** User who uploaded this file. Forced to current_user_id() on INSERT. Used for UPDATE/DELETE authorization. */ + actorId: string; + /** Bucket this file belongs to. Determines owner_id and is_public via inheritance trigger. */ + bucketId: string; + /** SHA-256 content hash for integrity verification and dedup. In default mode, equals the S3 key. In custom key mode, stored separately. */ + contentHash?: string; + createdAt?: string; + /** Human-readable description or alt text for the file (mutable) */ + description?: string; + /** When the staged-expiry sweep enqueued deletion of this file's object. NULL until it expires; set once so expiry is enqueued exactly once. */ + expiryEnqueuedAt?: string; + /** Original filename provided by the uploader. Used for display and Content-Disposition header on download. */ + filename?: string; + id?: string; + /** Whether this file is publicly readable. Inherited from bucket on INSERT. */ + isPublic?: boolean; + /** S3 object key for this file, unique within its bucket */ + key: string; + /** MIME type of the file (e.g. image/png, application/pdf). Immutable after INSERT. */ + mimeType: string; + /** When this file was promoted out of its staging bucket into its destination bucket. NULL for a file that was never staged, or is still staged. */ + promotedAt?: string; + /** File size in bytes. Immutable after INSERT. */ + size: string; + /** File lifecycle status: requested (presigned URL generated, not yet in S3), uploaded (file in S3 and content validated, ready for use), processed (image resized, text extracted, embedding computed), rejected (declared type disagreed with the bytes), expired (bytes never arrived before the confirm window closed). */ + status?: FileStatus; + /** User-defined tags for categorization and search (mutable) */ + tags?: string[]; + updatedAt?: string; + /** Processed file reference (upload domain). Populated by processing jobs after file is uploaded. Copy this value to other tables to reference the file. */ + upload?: ConstructiveInternalTypeUpload; +} +export interface UploadFileBulkFileInput { + /** SHA-256 content hash (hex-encoded, 64 chars) */ + contentHash: string; + /** MIME type of the file */ + contentType: string; + /** Original filename (optional) */ + filename?: string; + /** Custom S3 key (only when bucket has allow_custom_keys=true) */ + key?: string; + /** File size in bytes */ + size: number; +} +export interface UploadPlatformFileBulkFileInput { + /** SHA-256 content hash (hex-encoded, 64 chars) */ + contentHash: string; + /** MIME type of the file */ + contentType: string; + /** Original filename (optional) */ + filename?: string; + /** Custom S3 key (only when bucket has allow_custom_keys=true) */ + key?: string; + /** File size in bytes */ + size: number; +} +/** A filter to be used against `Bucket` object types. All fields are combined with a logical ‘and.’ */ +export interface BucketFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `allowCustomKeys` field. */ + allowCustomKeys?: BooleanFilter; + /** Filter by the object’s `allowedMimeTypes` field. */ + allowedMimeTypes?: StringListFilter; + /** Filter by the object’s `allowedOrigins` field. */ + allowedOrigins?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: BucketFilter[]; + /** Filter by the object’s `bucketsByDestinationBucketId` relation. */ + bucketsByDestinationBucketId?: BucketToManyBucketFilter; + /** `bucketsByDestinationBucketId` exist. */ + bucketsByDestinationBucketIdExist?: boolean; + /** 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 `destinationBucket` relation. */ + destinationBucket?: BucketFilter; + /** A related `destinationBucket` exists. */ + destinationBucketExists?: boolean; + /** Filter by the object’s `destinationBucketId` field. */ + destinationBucketId?: UUIDFilter; + /** Filter by the object’s `files` relation. */ + files?: BucketToManyFileFilter; + /** `files` exist. */ + filesExist?: boolean; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isPublic` field. */ + isPublic?: BooleanFilter; + /** Filter by the object’s `key` field. */ + key?: StringFilter; + /** Filter by the object’s `maxFileSize` field. */ + maxFileSize?: BigIntFilter; + /** Negates the expression. */ + not?: BucketFilter; + /** Checks for any expressions in this list. */ + or?: BucketFilter[]; + /** Filter by the object’s `physicalName` field. */ + physicalName?: StringFilter; + /** Filter by the object’s `stagingTtl` field. */ + stagingTtl?: IntervalFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Filter by the object’s `type` field. */ + type?: BucketTypeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} +/** A filter to be used against `File` object types. All fields are combined with a logical ‘and.’ */ +export interface FileFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: FileFilter[]; + /** Filter by the object’s `bucket` relation. */ + bucket?: BucketFilter; + /** Filter by the object’s `bucketId` field. */ + bucketId?: UUIDFilter; + /** Filter by the object’s `contentHash` field. */ + contentHash?: 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 `expiryEnqueuedAt` field. */ + expiryEnqueuedAt?: DatetimeFilter; + /** Filter by the object’s `filename` field. */ + filename?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isPublic` field. */ + isPublic?: BooleanFilter; + /** Filter by the object’s `key` field. */ + key?: StringFilter; + /** Filter by the object’s `mimeType` field. */ + mimeType?: StringFilter; + /** Negates the expression. */ + not?: FileFilter; + /** Checks for any expressions in this list. */ + or?: FileFilter[]; + /** Filter by the object’s `promotedAt` field. */ + promotedAt?: DatetimeFilter; + /** Filter by the object’s `size` field. */ + size?: BigIntFilter; + /** Filter by the object’s `status` field. */ + status?: FileStatusFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `upload` field. */ + upload?: ConstructiveInternalTypeUploadFilter; +} +/** A filter to be used against `PlatformBucket` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformBucketFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `allowCustomKeys` field. */ + allowCustomKeys?: BooleanFilter; + /** Filter by the object’s `allowedMimeTypes` field. */ + allowedMimeTypes?: StringListFilter; + /** Filter by the object’s `allowedOrigins` field. */ + allowedOrigins?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: PlatformBucketFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `destinationBucket` relation. */ + destinationBucket?: PlatformBucketFilter; + /** A related `destinationBucket` exists. */ + destinationBucketExists?: boolean; + /** Filter by the object’s `destinationBucketId` field. */ + destinationBucketId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isPublic` field. */ + isPublic?: BooleanFilter; + /** Filter by the object’s `key` field. */ + key?: StringFilter; + /** Filter by the object’s `maxFileSize` field. */ + maxFileSize?: BigIntFilter; + /** Negates the expression. */ + not?: PlatformBucketFilter; + /** Checks for any expressions in this list. */ + or?: PlatformBucketFilter[]; + /** Filter by the object’s `physicalName` field. */ + physicalName?: StringFilter; + /** Filter by the object’s `platformBucketsByDestinationBucketId` relation. */ + platformBucketsByDestinationBucketId?: PlatformBucketToManyPlatformBucketFilter; + /** `platformBucketsByDestinationBucketId` exist. */ + platformBucketsByDestinationBucketIdExist?: boolean; + /** Filter by the object’s `platformFilesByBucketId` relation. */ + platformFilesByBucketId?: PlatformBucketToManyPlatformFileFilter; + /** `platformFilesByBucketId` exist. */ + platformFilesByBucketIdExist?: boolean; + /** Filter by the object’s `stagingTtl` field. */ + stagingTtl?: IntervalFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Filter by the object’s `type` field. */ + type?: BucketTypeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} +/** A filter to be used against `PlatformFile` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformFileFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: PlatformFileFilter[]; + /** Filter by the object’s `bucket` relation. */ + bucket?: PlatformBucketFilter; + /** Filter by the object’s `bucketId` field. */ + bucketId?: UUIDFilter; + /** Filter by the object’s `contentHash` field. */ + contentHash?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `expiryEnqueuedAt` field. */ + expiryEnqueuedAt?: DatetimeFilter; + /** Filter by the object’s `filename` field. */ + filename?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isPublic` field. */ + isPublic?: BooleanFilter; + /** Filter by the object’s `key` field. */ + key?: StringFilter; + /** Filter by the object’s `mimeType` field. */ + mimeType?: StringFilter; + /** Negates the expression. */ + not?: PlatformFileFilter; + /** Checks for any expressions in this list. */ + or?: PlatformFileFilter[]; + /** Filter by the object’s `promotedAt` field. */ + promotedAt?: DatetimeFilter; + /** Filter by the object’s `size` field. */ + size?: BigIntFilter; + /** Filter by the object’s `status` field. */ + status?: FileStatusFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `upload` field. */ + upload?: ConstructiveInternalTypeUploadFilter; +} +/** 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 String List fields. All fields are combined with a logical ‘and.’ */ +export interface StringListFilter { + /** Any array item is equal to the specified value. */ + anyEqualTo?: string; + /** Any array item is greater than the specified value. */ + anyGreaterThan?: string; + /** Any array item is greater than or equal to the specified value. */ + anyGreaterThanOrEqualTo?: string; + /** Any array item is less than the specified value. */ + anyLessThan?: string; + /** Any array item is less than or equal to the specified value. */ + anyLessThanOrEqualTo?: string; + /** Any array item is not equal to the specified value. */ + anyNotEqualTo?: string; + /** Contained by the specified list of values. */ + containedBy?: string[]; + /** Contains the specified list of values. */ + contains?: string[]; + /** 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[]; + /** 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[]; + /** Overlaps the specified list of values. */ + overlaps?: string[]; +} +/** 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 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 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. */ + 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[]; +} +// ============ Payload/Return Types (for custom operations) ============ +export interface FilesRenamePayload { + clientMutationId?: string | null; + fileEdge?: FileEdge | null; + result?: File | null; +} +export type FilesRenamePayloadSelect = { + clientMutationId?: boolean; + fileEdge?: { + select: FileEdgeSelect; + }; + result?: { + select: FileSelect; + }; +}; +export interface PlatformFilesRenamePayload { + clientMutationId?: string | null; + platformFileEdge?: PlatformFileEdge | null; + result?: PlatformFile | null; +} +export type PlatformFilesRenamePayloadSelect = { + clientMutationId?: boolean; + platformFileEdge?: { + select: PlatformFileEdgeSelect; + }; + result?: { + select: PlatformFileSelect; + }; +}; +export interface ProvisionBucketPayload { + /** The logical bucket row that was queued for reconciliation. */ + bucketId: string; + bucketKey: string; + /** The reconciler job enqueued to provision this bucket. */ + jobId: string; + /** The physical bucket name already recorded, or null when reconciliation has not completed. */ + physicalName?: string | null; +} +export type ProvisionBucketPayloadSelect = { + bucketId?: boolean; + bucketKey?: boolean; + jobId?: boolean; + physicalName?: boolean; +}; +export interface UploadFilePayload { + /** Whether this file was deduplicated (content already exists) */ + deduplicated: boolean; + /** Presigned URL expiry time (null if deduplicated) */ + expiresAt?: string | null; + /** The projection document for the created file: {id, key, bucket_id, mime, size, filename, url?}. Store this verbatim in an image/upload column — its `id` is what keeps the object from being garbage collected while the column still references it. */ + file?: Record | null; + /** The file ID (UUID) */ + fileId: string; + /** The S3 object key */ + key: string; + /** ID of the previous version (when using custom keys) */ + previousVersionId?: string | null; + /** Presigned PUT URL (null if deduplicated) */ + uploadUrl?: string | null; +} +export type UploadFilePayloadSelect = { + deduplicated?: boolean; + expiresAt?: boolean; + file?: boolean; + fileId?: boolean; + key?: boolean; + previousVersionId?: boolean; + uploadUrl?: boolean; +}; +export interface UploadFileBulkPayload { + files: UploadFileBulkFilePayload[]; +} +export type UploadFileBulkPayloadSelect = { + files?: { + select: UploadFileBulkFilePayloadSelect; + }; +}; +export interface UploadPlatformFilePayload { + /** Whether this file was deduplicated (content already exists) */ + deduplicated: boolean; + /** Presigned URL expiry time (null if deduplicated) */ + expiresAt?: string | null; + /** The projection document for the created file: {id, key, bucket_id, mime, size, filename, url?}. Store this verbatim in an image/upload column — its `id` is what keeps the object from being garbage collected while the column still references it. */ + file?: Record | null; + /** The file ID (UUID) */ + fileId: string; + /** The S3 object key */ + key: string; + /** ID of the previous version (when using custom keys) */ + previousVersionId?: string | null; + /** Presigned PUT URL (null if deduplicated) */ + uploadUrl?: string | null; +} +export type UploadPlatformFilePayloadSelect = { + deduplicated?: boolean; + expiresAt?: boolean; + file?: boolean; + fileId?: boolean; + key?: boolean; + previousVersionId?: boolean; + uploadUrl?: boolean; +}; +export interface UploadPlatformFileBulkPayload { + files: UploadPlatformFileBulkFilePayload[]; +} +export type UploadPlatformFileBulkPayloadSelect = { + files?: { + select: UploadPlatformFileBulkFilePayloadSelect; + }; +}; +export interface CreateBucketPayload { + /** The `Bucket` that was created by this mutation. */ + bucket?: Bucket | null; + bucketEdge?: BucketEdge | null; + clientMutationId?: string | null; +} +export type CreateBucketPayloadSelect = { + bucket?: { + select: BucketSelect; + }; + bucketEdge?: { + select: BucketEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface UpdateBucketPayload { + /** The `Bucket` that was updated by this mutation. */ + bucket?: Bucket | null; + bucketEdge?: BucketEdge | null; + clientMutationId?: string | null; +} +export type UpdateBucketPayloadSelect = { + bucket?: { + select: BucketSelect; + }; + bucketEdge?: { + select: BucketEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface DeleteBucketPayload { + /** The `Bucket` that was deleted by this mutation. */ + bucket?: Bucket | null; + bucketEdge?: BucketEdge | null; + clientMutationId?: string | null; +} +export type DeleteBucketPayloadSelect = { + bucket?: { + select: BucketSelect; + }; + bucketEdge?: { + select: BucketEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface CreateFilePayload { + clientMutationId?: string | null; + /** The `File` that was created by this mutation. */ + file?: File | null; + fileEdge?: FileEdge | null; +} +export type CreateFilePayloadSelect = { + clientMutationId?: boolean; + file?: { + select: FileSelect; + }; + fileEdge?: { + select: FileEdgeSelect; + }; +}; +export interface UpdateFilePayload { + clientMutationId?: string | null; + /** The `File` that was updated by this mutation. */ + file?: File | null; + fileEdge?: FileEdge | null; +} +export type UpdateFilePayloadSelect = { + clientMutationId?: boolean; + file?: { + select: FileSelect; + }; + fileEdge?: { + select: FileEdgeSelect; + }; +}; +export interface DeleteFilePayload { + clientMutationId?: string | null; + /** The `File` that was deleted by this mutation. */ + file?: File | null; + fileEdge?: FileEdge | null; +} +export type DeleteFilePayloadSelect = { + clientMutationId?: boolean; + file?: { + select: FileSelect; + }; + fileEdge?: { + select: FileEdgeSelect; + }; +}; +export interface CreatePlatformBucketPayload { + clientMutationId?: string | null; + /** The `PlatformBucket` that was created by this mutation. */ + platformBucket?: PlatformBucket | null; + platformBucketEdge?: PlatformBucketEdge | null; +} +export type CreatePlatformBucketPayloadSelect = { + clientMutationId?: boolean; + platformBucket?: { + select: PlatformBucketSelect; + }; + platformBucketEdge?: { + select: PlatformBucketEdgeSelect; + }; +}; +export interface UpdatePlatformBucketPayload { + clientMutationId?: string | null; + /** The `PlatformBucket` that was updated by this mutation. */ + platformBucket?: PlatformBucket | null; + platformBucketEdge?: PlatformBucketEdge | null; +} +export type UpdatePlatformBucketPayloadSelect = { + clientMutationId?: boolean; + platformBucket?: { + select: PlatformBucketSelect; + }; + platformBucketEdge?: { + select: PlatformBucketEdgeSelect; + }; +}; +export interface DeletePlatformBucketPayload { + clientMutationId?: string | null; + /** The `PlatformBucket` that was deleted by this mutation. */ + platformBucket?: PlatformBucket | null; + platformBucketEdge?: PlatformBucketEdge | null; +} +export type DeletePlatformBucketPayloadSelect = { + clientMutationId?: boolean; + platformBucket?: { + select: PlatformBucketSelect; + }; + platformBucketEdge?: { + select: PlatformBucketEdgeSelect; + }; +}; +export interface CreatePlatformFilePayload { + clientMutationId?: string | null; + /** The `PlatformFile` that was created by this mutation. */ + platformFile?: PlatformFile | null; + platformFileEdge?: PlatformFileEdge | null; +} +export type CreatePlatformFilePayloadSelect = { + clientMutationId?: boolean; + platformFile?: { + select: PlatformFileSelect; + }; + platformFileEdge?: { + select: PlatformFileEdgeSelect; + }; +}; +export interface UpdatePlatformFilePayload { + clientMutationId?: string | null; + /** The `PlatformFile` that was updated by this mutation. */ + platformFile?: PlatformFile | null; + platformFileEdge?: PlatformFileEdge | null; +} +export type UpdatePlatformFilePayloadSelect = { + clientMutationId?: boolean; + platformFile?: { + select: PlatformFileSelect; + }; + platformFileEdge?: { + select: PlatformFileEdgeSelect; + }; +}; +export interface DeletePlatformFilePayload { + clientMutationId?: string | null; + /** The `PlatformFile` that was deleted by this mutation. */ + platformFile?: PlatformFile | null; + platformFileEdge?: PlatformFileEdge | null; +} +export type DeletePlatformFilePayloadSelect = { + clientMutationId?: boolean; + platformFile?: { + select: PlatformFileSelect; + }; + platformFileEdge?: { + select: PlatformFileEdgeSelect; + }; +}; +/** A `File` edge in the connection. */ +export interface FileEdge { + cursor?: string | null; + /** The `File` at the end of the edge. */ + node?: File | null; +} +export type FileEdgeSelect = { + cursor?: boolean; + node?: { + select: FileSelect; + }; +}; +/** A `PlatformFile` edge in the connection. */ +export interface PlatformFileEdge { + cursor?: string | null; + /** The `PlatformFile` at the end of the edge. */ + node?: PlatformFile | null; +} +export type PlatformFileEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformFileSelect; + }; +}; +export interface UploadFileBulkFilePayload { + deduplicated: boolean; + expiresAt?: string | null; + /** The projection document for the created file. */ + file?: Record | null; + fileId: string; + key: string; + previousVersionId?: string | null; + uploadUrl?: string | null; +} +export type UploadFileBulkFilePayloadSelect = { + deduplicated?: boolean; + expiresAt?: boolean; + file?: boolean; + fileId?: boolean; + key?: boolean; + previousVersionId?: boolean; + uploadUrl?: boolean; +}; +export interface UploadPlatformFileBulkFilePayload { + deduplicated: boolean; + expiresAt?: string | null; + /** The projection document for the created file. */ + file?: Record | null; + fileId: string; + key: string; + previousVersionId?: string | null; + uploadUrl?: string | null; +} +export type UploadPlatformFileBulkFilePayloadSelect = { + deduplicated?: boolean; + expiresAt?: boolean; + file?: boolean; + fileId?: boolean; + key?: boolean; + previousVersionId?: boolean; + uploadUrl?: boolean; +}; +/** A `Bucket` edge in the connection. */ +export interface BucketEdge { + cursor?: string | null; + /** The `Bucket` at the end of the edge. */ + node?: Bucket | null; +} +export type BucketEdgeSelect = { + cursor?: boolean; + node?: { + select: BucketSelect; + }; +}; +/** A `PlatformBucket` edge in the connection. */ +export interface PlatformBucketEdge { + cursor?: string | null; + /** The `PlatformBucket` at the end of the edge. */ + node?: PlatformBucket | null; +} +export type PlatformBucketEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformBucketSelect; + }; +}; diff --git a/sdk/constructive-react/src/storage/orm/models/bucket.ts b/sdk/constructive-react/src/storage/orm/models/bucket.ts new file mode 100644 index 0000000000..61b1585820 --- /dev/null +++ b/sdk/constructive-react/src/storage/orm/models/bucket.ts @@ -0,0 +1,245 @@ +/** + * Bucket 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 { + Bucket, + BucketWithRelations, + BucketSelect, + BucketFilter, + BucketOrderBy, + CreateBucketInput, + UpdateBucketInput, + BucketPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class BucketModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + buckets: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'Bucket', + 'buckets', + 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, + }, + 'BucketFilter', + 'BucketOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Bucket', + fieldName: 'buckets', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + bucket: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'Bucket', + 'buckets', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'BucketFilter', + 'BucketOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Bucket', + fieldName: 'bucket', + document, + variables, + transform: (data: { + buckets?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + bucket: data.buckets?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + bucket: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'Bucket', + 'buckets', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'BucketFilter', + 'BucketOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Bucket', + fieldName: 'bucket', + document, + variables, + transform: (data: { + buckets?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + bucket: data.buckets?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createBucket: { + bucket: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'Bucket', + 'createBucket', + 'bucket', + args.select, + args.data, + 'CreateBucketInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Bucket', + fieldName: 'createBucket', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + BucketPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateBucket: { + bucket: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'Bucket', + 'updateBucket', + 'bucket', + args.select, + args.where.id, + args.data, + 'UpdateBucketInput', + 'id', + 'bucketPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Bucket', + fieldName: 'updateBucket', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteBucket: { + bucket: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'Bucket', + 'deleteBucket', + 'bucket', + { + id: args.where.id, + }, + 'DeleteBucketInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Bucket', + fieldName: 'deleteBucket', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/storage/orm/models/file.ts b/sdk/constructive-react/src/storage/orm/models/file.ts new file mode 100644 index 0000000000..a2d0e48ee3 --- /dev/null +++ b/sdk/constructive-react/src/storage/orm/models/file.ts @@ -0,0 +1,245 @@ +/** + * File 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 { + File, + FileWithRelations, + FileSelect, + FileFilter, + FileOrderBy, + CreateFileInput, + UpdateFileInput, + FilePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class FileModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + files: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'File', + 'files', + 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, + }, + 'FileFilter', + 'FileOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'File', + fieldName: 'files', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + file: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'File', + 'files', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'FileFilter', + 'FileOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'File', + fieldName: 'file', + document, + variables, + transform: (data: { + files?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + file: data.files?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + file: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'File', + 'files', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'FileFilter', + 'FileOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'File', + fieldName: 'file', + document, + variables, + transform: (data: { + files?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + file: data.files?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createFile: { + file: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'File', + 'createFile', + 'file', + args.select, + args.data, + 'CreateFileInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'File', + fieldName: 'createFile', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + FilePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateFile: { + file: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'File', + 'updateFile', + 'file', + args.select, + args.where.id, + args.data, + 'UpdateFileInput', + 'id', + 'filePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'File', + fieldName: 'updateFile', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteFile: { + file: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'File', + 'deleteFile', + 'file', + { + id: args.where.id, + }, + 'DeleteFileInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'File', + fieldName: 'deleteFile', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/storage/orm/models/index.ts b/sdk/constructive-react/src/storage/orm/models/index.ts new file mode 100644 index 0000000000..947038839d --- /dev/null +++ b/sdk/constructive-react/src/storage/orm/models/index.ts @@ -0,0 +1,9 @@ +/** + * Models barrel export + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +export { BucketModel } from './bucket'; +export { FileModel } from './file'; +export { PlatformBucketModel } from './platformBucket'; +export { PlatformFileModel } from './platformFile'; diff --git a/sdk/constructive-react/src/storage/orm/models/platformBucket.ts b/sdk/constructive-react/src/storage/orm/models/platformBucket.ts new file mode 100644 index 0000000000..3ffe7d5bda --- /dev/null +++ b/sdk/constructive-react/src/storage/orm/models/platformBucket.ts @@ -0,0 +1,245 @@ +/** + * PlatformBucket 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 { + PlatformBucket, + PlatformBucketWithRelations, + PlatformBucketSelect, + PlatformBucketFilter, + PlatformBucketOrderBy, + CreatePlatformBucketInput, + UpdatePlatformBucketInput, + PlatformBucketPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformBucketModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformBuckets: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformBucket', + 'platformBuckets', + 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, + }, + 'PlatformBucketFilter', + 'PlatformBucketOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformBucket', + fieldName: 'platformBuckets', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformBucket: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformBucket', + 'platformBuckets', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformBucketFilter', + 'PlatformBucketOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformBucket', + fieldName: 'platformBucket', + document, + variables, + transform: (data: { + platformBuckets?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformBucket: data.platformBuckets?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformBucket: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformBucket', + 'platformBuckets', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformBucketFilter', + 'PlatformBucketOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformBucket', + fieldName: 'platformBucket', + document, + variables, + transform: (data: { + platformBuckets?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformBucket: data.platformBuckets?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformBucket: { + platformBucket: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformBucket', + 'createPlatformBucket', + 'platformBucket', + args.select, + args.data, + 'CreatePlatformBucketInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformBucket', + fieldName: 'createPlatformBucket', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformBucketPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformBucket: { + platformBucket: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformBucket', + 'updatePlatformBucket', + 'platformBucket', + args.select, + args.where.id, + args.data, + 'UpdatePlatformBucketInput', + 'id', + 'platformBucketPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformBucket', + fieldName: 'updatePlatformBucket', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformBucket: { + platformBucket: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformBucket', + 'deletePlatformBucket', + 'platformBucket', + { + id: args.where.id, + }, + 'DeletePlatformBucketInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformBucket', + fieldName: 'deletePlatformBucket', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/storage/orm/models/platformFile.ts b/sdk/constructive-react/src/storage/orm/models/platformFile.ts new file mode 100644 index 0000000000..bfc7890e99 --- /dev/null +++ b/sdk/constructive-react/src/storage/orm/models/platformFile.ts @@ -0,0 +1,245 @@ +/** + * PlatformFile 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 { + PlatformFile, + PlatformFileWithRelations, + PlatformFileSelect, + PlatformFileFilter, + PlatformFileOrderBy, + CreatePlatformFileInput, + UpdatePlatformFileInput, + PlatformFilePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformFileModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformFiles: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformFile', + 'platformFiles', + 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, + }, + 'PlatformFileFilter', + 'PlatformFileOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformFile', + fieldName: 'platformFiles', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformFile: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformFile', + 'platformFiles', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformFileFilter', + 'PlatformFileOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformFile', + fieldName: 'platformFile', + document, + variables, + transform: (data: { + platformFiles?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformFile: data.platformFiles?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformFile: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformFile', + 'platformFiles', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformFileFilter', + 'PlatformFileOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformFile', + fieldName: 'platformFile', + document, + variables, + transform: (data: { + platformFiles?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformFile: data.platformFiles?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformFile: { + platformFile: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformFile', + 'createPlatformFile', + 'platformFile', + args.select, + args.data, + 'CreatePlatformFileInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformFile', + fieldName: 'createPlatformFile', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformFilePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformFile: { + platformFile: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformFile', + 'updatePlatformFile', + 'platformFile', + args.select, + args.where.id, + args.data, + 'UpdatePlatformFileInput', + 'id', + 'platformFilePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformFile', + fieldName: 'updatePlatformFile', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformFile: { + platformFile: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformFile', + 'deletePlatformFile', + 'platformFile', + { + id: args.where.id, + }, + 'DeletePlatformFileInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformFile', + fieldName: 'deletePlatformFile', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/storage/orm/mutation/index.ts b/sdk/constructive-react/src/storage/orm/mutation/index.ts new file mode 100644 index 0000000000..2b8d61faf3 --- /dev/null +++ b/sdk/constructive-react/src/storage/orm/mutation/index.ts @@ -0,0 +1,284 @@ +/** + * Custom mutation 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 type { + FilesRenameInput, + PlatformFilesRenameInput, + ProvisionBucketInput, + UploadFileInput, + UploadFileBulkInput, + UploadPlatformFileInput, + UploadPlatformFileBulkInput, + FilesRenamePayload, + PlatformFilesRenamePayload, + ProvisionBucketPayload, + UploadFilePayload, + UploadFileBulkPayload, + UploadPlatformFilePayload, + UploadPlatformFileBulkPayload, + FilesRenamePayloadSelect, + PlatformFilesRenamePayloadSelect, + ProvisionBucketPayloadSelect, + UploadFilePayloadSelect, + UploadFileBulkPayloadSelect, + UploadPlatformFilePayloadSelect, + UploadPlatformFileBulkPayloadSelect, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export interface FilesRenameVariables { + input: FilesRenameInput; +} +export interface PlatformFilesRenameVariables { + input: PlatformFilesRenameInput; +} +/** + * Variables for provisionBucket + * Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. + */ +export interface ProvisionBucketVariables { + input: ProvisionBucketInput; +} +/** + * Variables for uploadFile + * Upload a file: resolves the bucket by key, creates the file row, and returns a presigned PUT URL. + */ +export interface UploadFileVariables { + input: UploadFileInput; +} +/** + * Variables for uploadFiles + * Upload multiple files: resolves the bucket by key, creates file rows, and returns presigned PUT URLs for each. + */ +export interface UploadFilesVariables { + input: UploadFileBulkInput; +} +/** + * Variables for uploadPlatformFile + * Upload a file: resolves the bucket by key, creates the file row, and returns a presigned PUT URL. + */ +export interface UploadPlatformFileVariables { + input: UploadPlatformFileInput; +} +/** + * Variables for uploadPlatformFiles + * Upload multiple files: resolves the bucket by key, creates file rows, and returns presigned PUT URLs for each. + */ +export interface UploadPlatformFilesVariables { + input: UploadPlatformFileBulkInput; +} +export function createMutationOperations(client: OrmClient) { + return { + filesRename: ( + args: FilesRenameVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + filesRename: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'FilesRename', + fieldName: 'filesRename', + ...buildCustomDocument( + 'mutation', + 'FilesRename', + 'filesRename', + options.select, + args, + [ + { + name: 'input', + type: 'FilesRenameInput!', + }, + ], + connectionFieldsMap, + 'FilesRenamePayload' + ), + }), + platformFilesRename: ( + args: PlatformFilesRenameVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + platformFilesRename: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'PlatformFilesRename', + fieldName: 'platformFilesRename', + ...buildCustomDocument( + 'mutation', + 'PlatformFilesRename', + 'platformFilesRename', + options.select, + args, + [ + { + name: 'input', + type: 'PlatformFilesRenameInput!', + }, + ], + connectionFieldsMap, + 'PlatformFilesRenamePayload' + ), + }), + provisionBucket: ( + args: ProvisionBucketVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + provisionBucket: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'ProvisionBucket', + fieldName: 'provisionBucket', + ...buildCustomDocument( + 'mutation', + 'ProvisionBucket', + 'provisionBucket', + options.select, + args, + [ + { + name: 'input', + type: 'ProvisionBucketInput!', + }, + ], + connectionFieldsMap, + 'ProvisionBucketPayload' + ), + }), + uploadFile: ( + args: UploadFileVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + uploadFile: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'UploadFile', + fieldName: 'uploadFile', + ...buildCustomDocument( + 'mutation', + 'UploadFile', + 'uploadFile', + options.select, + args, + [ + { + name: 'input', + type: 'UploadFileInput!', + }, + ], + connectionFieldsMap, + 'UploadFilePayload' + ), + }), + uploadFiles: ( + args: UploadFilesVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + uploadFiles: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'UploadFiles', + fieldName: 'uploadFiles', + ...buildCustomDocument( + 'mutation', + 'UploadFiles', + 'uploadFiles', + options.select, + args, + [ + { + name: 'input', + type: 'UploadFileBulkInput!', + }, + ], + connectionFieldsMap, + 'UploadFileBulkPayload' + ), + }), + uploadPlatformFile: ( + args: UploadPlatformFileVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + uploadPlatformFile: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'UploadPlatformFile', + fieldName: 'uploadPlatformFile', + ...buildCustomDocument( + 'mutation', + 'UploadPlatformFile', + 'uploadPlatformFile', + options.select, + args, + [ + { + name: 'input', + type: 'UploadPlatformFileInput!', + }, + ], + connectionFieldsMap, + 'UploadPlatformFilePayload' + ), + }), + uploadPlatformFiles: ( + args: UploadPlatformFilesVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + uploadPlatformFiles: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'UploadPlatformFiles', + fieldName: 'uploadPlatformFiles', + ...buildCustomDocument( + 'mutation', + 'UploadPlatformFiles', + 'uploadPlatformFiles', + options.select, + args, + [ + { + name: 'input', + type: 'UploadPlatformFileBulkInput!', + }, + ], + connectionFieldsMap, + 'UploadPlatformFileBulkPayload' + ), + }), + }; +} diff --git a/sdk/constructive-react/src/storage/orm/query-builder.ts b/sdk/constructive-react/src/storage/orm/query-builder.ts new file mode 100644 index 0000000000..fd785bbae6 --- /dev/null +++ b/sdk/constructive-react/src/storage/orm/query-builder.ts @@ -0,0 +1,1047 @@ +/** + * Query Builder - Builds and executes GraphQL operations + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { parseType, print } from '@constructive-io/graphql-query/runtime'; +import * as t from 'gql-ast'; +import type { ArgumentNode, EnumValueNode, FieldNode, VariableDefinitionNode } from 'graphql'; + +import { GraphQLRequestError, OrmClient, QueryResult } from './client'; + +export interface QueryBuilderConfig { + client: OrmClient; + operation: 'query' | 'mutation'; + operationName: string; + fieldName: string; + document: string; + variables?: Record; + transform?: (data: any) => TResult; +} + +export class QueryBuilder { + private config: QueryBuilderConfig; + + constructor(config: QueryBuilderConfig) { + this.config = config; + } + + /** + * Execute the query and return a discriminated union result + * Use result.ok to check success, or .unwrap() to throw on error + */ + async execute(): Promise> { + const rawResult = await this.config.client.execute( + this.config.document, + this.config.variables + ); + if (!rawResult.ok) { + return rawResult; + } + if (!this.config.transform) { + return rawResult as unknown as QueryResult; + } + return { + ok: true, + data: this.config.transform(rawResult.data), + errors: undefined, + }; + } + + /** + * Execute and unwrap the result, throwing GraphQLRequestError on failure + * @throws {GraphQLRequestError} If the query returns errors + */ + async unwrap(): Promise { + const result = await this.execute(); + if (!result.ok) { + throw new GraphQLRequestError(result.errors, result.data); + } + return result.data; + } + + /** + * Execute and unwrap, returning defaultValue on error instead of throwing + */ + async unwrapOr(defaultValue: D): Promise { + const result = await this.execute(); + if (!result.ok) { + return defaultValue; + } + return result.data; + } + + /** + * Execute and unwrap, calling onError callback on failure + */ + async unwrapOrElse( + onError: (errors: import('./client').GraphQLError[]) => D + ): Promise { + const result = await this.execute(); + if (!result.ok) { + return onError(result.errors); + } + return result.data; + } + + toGraphQL(): string { + return this.config.document; + } + + getVariables(): Record | undefined { + return this.config.variables; + } +} + +const OP_QUERY = 'query' as unknown as import('graphql').OperationTypeNode; +const OP_MUTATION = 'mutation' as unknown as import('graphql').OperationTypeNode; +const ENUM_VALUE_KIND = 'EnumValue' as unknown as EnumValueNode['kind']; + +// ============================================================================ +// Selection Builders +// ============================================================================ + +export function buildSelections( + select: Record | undefined, + connectionFieldsMap?: Record>, + entityType?: string +): FieldNode[] { + if (!select) { + return []; + } + + const fields: FieldNode[] = []; + const entityConnections = entityType ? connectionFieldsMap?.[entityType] : undefined; + + for (const [key, value] of Object.entries(select)) { + if (value === false || value === undefined) { + continue; + } + + if (value === true) { + fields.push(t.field({ name: key })); + continue; + } + + if (typeof value === 'object' && value !== null) { + const nested = value as { + select?: Record; + args?: Record; + first?: number; + filter?: Record; + orderBy?: string[]; + connection?: boolean; + }; + + // Field with arguments (e.g. requestUploadUrl on bucket types) + if (nested.args && typeof nested.args === 'object') { + const fieldArgs = Object.entries(nested.args).map(([argName, argValue]) => + t.argument({ name: argName, value: buildValueAst(argValue) }) + ); + const nestedSelect = nested.select; + if (nestedSelect && typeof nestedSelect === 'object') { + const subSelections = Object.entries(nestedSelect) + .filter(([, v]) => v) + .map(([name]) => t.field({ name })); + fields.push( + t.field({ + name: key, + args: fieldArgs.length ? fieldArgs : undefined, + selectionSet: subSelections.length + ? t.selectionSet({ selections: subSelections }) + : undefined, + }) + ); + } else { + fields.push( + t.field({ + name: key, + args: fieldArgs.length ? fieldArgs : undefined, + }) + ); + } + continue; + } + + if (!nested.select || typeof nested.select !== 'object') { + throw new Error( + `Invalid selection for field "${key}": nested selections must include a "select" object.` + ); + } + + const relatedEntityType = entityConnections?.[key]; + const nestedSelections = buildSelections( + nested.select, + connectionFieldsMap, + relatedEntityType + ); + const isConnection = + nested.connection === true || + nested.first !== undefined || + nested.filter !== undefined || + relatedEntityType !== undefined; + const args = buildArgs([ + buildOptionalArg('first', nested.first), + nested.filter + ? t.argument({ + name: 'filter', + value: buildValueAst(nested.filter), + }) + : null, + buildEnumListArg('orderBy', nested.orderBy), + ]); + + if (isConnection) { + fields.push( + t.field({ + name: key, + args, + selectionSet: t.selectionSet({ + selections: buildConnectionSelections(nestedSelections), + }), + }) + ); + } else { + fields.push( + t.field({ + name: key, + args, + selectionSet: t.selectionSet({ selections: nestedSelections }), + }) + ); + } + } + } + + return fields; +} + +// ============================================================================ +// Document Builders +// ============================================================================ + +export function buildFindManyDocument( + operationName: string, + queryField: string, + select: TSelect, + args: { + where?: TWhere; + orderBy?: string[]; + first?: number; + last?: number; + after?: string; + before?: string; + offset?: number; + }, + filterTypeName: string, + orderByTypeName: string, + connectionFieldsMap?: Record> +): { document: string; variables: Record } { + const selections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + const variableDefinitions: VariableDefinitionNode[] = []; + const queryArgs: ArgumentNode[] = []; + const variables: Record = {}; + + addVariable( + { + varName: 'where', + typeName: filterTypeName, + value: args.where, + }, + variableDefinitions, + queryArgs, + variables + ); + addVariable( + { + varName: 'orderBy', + typeName: '[' + orderByTypeName + '!]', + value: args.orderBy?.length ? args.orderBy : undefined, + }, + variableDefinitions, + queryArgs, + variables + ); + addVariable( + { varName: 'first', typeName: 'Int', value: args.first }, + variableDefinitions, + queryArgs, + variables + ); + addVariable( + { varName: 'last', typeName: 'Int', value: args.last }, + variableDefinitions, + queryArgs, + variables + ); + addVariable( + { varName: 'after', typeName: 'Cursor', value: args.after }, + variableDefinitions, + queryArgs, + variables + ); + addVariable( + { varName: 'before', typeName: 'Cursor', value: args.before }, + variableDefinitions, + queryArgs, + variables + ); + addVariable( + { varName: 'offset', typeName: 'Int', value: args.offset }, + variableDefinitions, + queryArgs, + variables + ); + + const document = t.document({ + definitions: [ + t.operationDefinition({ + operation: OP_QUERY, + name: operationName + 'Query', + variableDefinitions: variableDefinitions.length ? variableDefinitions : undefined, + selectionSet: t.selectionSet({ + selections: [ + t.field({ + name: queryField, + args: queryArgs.length ? queryArgs : undefined, + selectionSet: t.selectionSet({ + selections: buildConnectionSelections(selections), + }), + }), + ], + }), + }), + ], + }); + + return { document: print(document), variables }; +} + +export function buildFindFirstDocument( + operationName: string, + queryField: string, + select: TSelect, + args: { where?: TWhere; orderBy?: string[] }, + filterTypeName: string, + orderByTypeName: string, + connectionFieldsMap?: Record> +): { document: string; variables: Record } { + const selections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + const variableDefinitions: VariableDefinitionNode[] = []; + const queryArgs: ArgumentNode[] = []; + const variables: Record = {}; + + // Always add first: 1 for findFirst + addVariable( + { varName: 'first', typeName: 'Int', value: 1 }, + variableDefinitions, + queryArgs, + variables + ); + addVariable( + { + varName: 'where', + typeName: filterTypeName, + value: args.where, + }, + variableDefinitions, + queryArgs, + variables + ); + addVariable( + { + varName: 'orderBy', + typeName: '[' + orderByTypeName + '!]', + value: args.orderBy?.length ? args.orderBy : undefined, + }, + variableDefinitions, + queryArgs, + variables + ); + + const document = t.document({ + definitions: [ + t.operationDefinition({ + operation: OP_QUERY, + name: operationName + 'Query', + variableDefinitions, + selectionSet: t.selectionSet({ + selections: [ + t.field({ + name: queryField, + args: queryArgs, + selectionSet: t.selectionSet({ + selections: [ + t.field({ + name: 'nodes', + selectionSet: t.selectionSet({ selections }), + }), + ], + }), + }), + ], + }), + }), + ], + }); + + return { document: print(document), variables }; +} + +export function buildCreateDocument( + operationName: string, + mutationField: string, + entityField: string, + select: TSelect, + data: TData, + inputTypeName: string, + connectionFieldsMap?: Record> +): { document: string; variables: Record } { + const selections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + return { + document: buildInputMutationDocument({ + operationName, + mutationField, + inputTypeName, + resultSelections: [ + t.field({ + name: entityField, + selectionSet: t.selectionSet({ selections }), + }), + ], + }), + variables: { + input: { + [entityField]: data, + }, + }, + }; +} + +export function buildUpdateDocument( + operationName: string, + mutationField: string, + entityField: string, + select: TSelect, + where: TWhere, + data: TData, + inputTypeName: string, + patchFieldName: string, + connectionFieldsMap?: Record> +): { document: string; variables: Record } { + const selections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + return { + document: buildInputMutationDocument({ + operationName, + mutationField, + inputTypeName, + resultSelections: [ + t.field({ + name: entityField, + selectionSet: t.selectionSet({ selections }), + }), + ], + }), + variables: { + input: { + id: where.id, + [patchFieldName]: data, + }, + }, + }; +} + +export function buildUpdateByPkDocument( + operationName: string, + mutationField: string, + entityField: string, + select: TSelect, + id: string | number, + data: TData, + inputTypeName: string, + idFieldName: string, + patchFieldName: string, + connectionFieldsMap?: Record>, + extraKeys?: Record +): { document: string; variables: Record } { + const selections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + return { + document: buildInputMutationDocument({ + operationName, + mutationField, + inputTypeName, + resultSelections: [ + t.field({ + name: entityField, + selectionSet: t.selectionSet({ selections }), + }), + ], + }), + variables: { + input: { + [idFieldName]: id, + ...extraKeys, + [patchFieldName]: data, + }, + }, + }; +} + +export function buildFindOneDocument( + operationName: string, + queryField: string, + id: string | number, + select: TSelect, + idArgName: string, + idTypeName: string, + connectionFieldsMap?: Record> +): { document: string; variables: Record } { + const selections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + const variableDefinitions: VariableDefinitionNode[] = [ + t.variableDefinition({ + variable: t.variable({ name: idArgName }), + type: parseType(idTypeName), + }), + ]; + + const queryArgs: ArgumentNode[] = [ + t.argument({ + name: idArgName, + value: t.variable({ name: idArgName }), + }), + ]; + + const document = t.document({ + definitions: [ + t.operationDefinition({ + operation: OP_QUERY, + name: operationName + 'Query', + variableDefinitions, + selectionSet: t.selectionSet({ + selections: [ + t.field({ + name: queryField, + args: queryArgs, + selectionSet: t.selectionSet({ selections }), + }), + ], + }), + }), + ], + }); + + return { + document: print(document), + variables: { [idArgName]: id }, + }; +} + +export function buildDeleteDocument( + operationName: string, + mutationField: string, + entityField: string, + where: TWhere, + inputTypeName: string, + select?: TSelect, + connectionFieldsMap?: Record> +): { document: string; variables: Record } { + const entitySelections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + return { + document: buildInputMutationDocument({ + operationName, + mutationField, + inputTypeName, + resultSelections: [ + t.field({ + name: entityField, + selectionSet: t.selectionSet({ + selections: entitySelections, + }), + }), + ], + }), + variables: { + input: { + id: where.id, + }, + }, + }; +} + +export function buildDeleteByPkDocument( + operationName: string, + mutationField: string, + entityField: string, + keys: Record, + inputTypeName: string, + select?: TSelect, + connectionFieldsMap?: Record> +): { document: string; variables: Record } { + const entitySelections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + return { + document: buildInputMutationDocument({ + operationName, + mutationField, + inputTypeName, + resultSelections: [ + t.field({ + name: entityField, + selectionSet: t.selectionSet({ selections: entitySelections }), + }), + ], + }), + variables: { + input: keys, + }, + }; +} + +export function buildJunctionRemoveDocument( + operationName: string, + mutationField: string, + keys: Record, + inputTypeName: string +): { document: string; variables: Record } { + return { + document: buildInputMutationDocument({ + operationName, + mutationField, + inputTypeName, + resultSelections: [t.field({ name: 'clientMutationId' })], + }), + variables: { + input: keys, + }, + }; +} + +export function buildCustomDocument( + operationType: 'query' | 'mutation', + operationName: string, + fieldName: string, + select: TSelect, + args: TArgs, + variableDefinitions: Array<{ name: string; type: string }>, + connectionFieldsMap?: Record>, + entityType?: string +): { document: string; variables: Record } { + let actualSelect: TSelect = select; + let isConnection = false; + + if (isCustomSelectionWrapper(select)) { + actualSelect = select.select as TSelect; + isConnection = select.connection === true; + } + + const selections = actualSelect + ? buildSelections(actualSelect as Record, connectionFieldsMap, entityType) + : []; + + const variableDefs = variableDefinitions.map((definition) => + t.variableDefinition({ + variable: t.variable({ name: definition.name }), + type: parseType(definition.type), + }) + ); + const fieldArgs = variableDefinitions.map((definition) => + t.argument({ + name: definition.name, + value: t.variable({ name: definition.name }), + }) + ); + + const fieldSelections = isConnection ? buildConnectionSelections(selections) : selections; + + const document = t.document({ + definitions: [ + t.operationDefinition({ + operation: operationType === 'mutation' ? OP_MUTATION : OP_QUERY, + name: operationName, + variableDefinitions: variableDefs.length ? variableDefs : undefined, + selectionSet: t.selectionSet({ + selections: [ + t.field({ + name: fieldName, + args: fieldArgs.length ? fieldArgs : undefined, + selectionSet: fieldSelections.length + ? t.selectionSet({ selections: fieldSelections }) + : undefined, + }), + ], + }), + }), + ], + }); + + return { + document: print(document), + variables: (args ?? {}) as Record, + }; +} + +function isCustomSelectionWrapper( + value: unknown +): value is { select: Record; connection?: boolean } { + if (!value || typeof value !== 'object' || Array.isArray(value)) { + return false; + } + + const record = value as Record; + const keys = Object.keys(record); + + if (!keys.includes('select') || !keys.includes('connection')) { + return false; + } + + if (keys.some((key) => key !== 'select' && key !== 'connection')) { + return false; + } + + return !!record.select && typeof record.select === 'object' && !Array.isArray(record.select); +} + +// ============================================================================ +// Helper Functions +// ============================================================================ + +function buildArgs(args: Array): ArgumentNode[] { + return args.filter((arg): arg is ArgumentNode => arg !== null); +} + +function buildOptionalArg(name: string, value: number | string | undefined): ArgumentNode | null { + if (value === undefined) { + return null; + } + const valueNode = + typeof value === 'number' ? t.intValue({ value: value.toString() }) : t.stringValue({ value }); + return t.argument({ name, value: valueNode }); +} + +function buildEnumListArg(name: string, values: string[] | undefined): ArgumentNode | null { + if (!values || values.length === 0) { + return null; + } + return t.argument({ + name, + value: t.listValue({ + values: values.map((value) => buildEnumValue(value)), + }), + }); +} + +function buildEnumValue(value: string): EnumValueNode { + return { + kind: ENUM_VALUE_KIND, + value, + }; +} + +function buildPageInfoSelections(): FieldNode[] { + return [ + t.field({ name: 'hasNextPage' }), + t.field({ name: 'hasPreviousPage' }), + t.field({ name: 'startCursor' }), + t.field({ name: 'endCursor' }), + ]; +} + +function buildConnectionSelections(nodeSelections: FieldNode[]): FieldNode[] { + return [ + t.field({ + name: 'nodes', + selectionSet: t.selectionSet({ selections: nodeSelections }), + }), + t.field({ name: 'totalCount' }), + t.field({ + name: 'pageInfo', + selectionSet: t.selectionSet({ selections: buildPageInfoSelections() }), + }), + ]; +} + +interface VariableSpec { + varName: string; + argName?: string; + typeName?: string; + value: unknown; +} + +interface InputMutationConfig { + operationName: string; + mutationField: string; + inputTypeName: string; + resultSelections: FieldNode[]; +} + +function buildInputMutationDocument(config: InputMutationConfig): string { + const document = t.document({ + definitions: [ + t.operationDefinition({ + operation: OP_MUTATION, + name: config.operationName + 'Mutation', + variableDefinitions: [ + t.variableDefinition({ + variable: t.variable({ name: 'input' }), + type: parseType(config.inputTypeName + '!'), + }), + ], + selectionSet: t.selectionSet({ + selections: [ + t.field({ + name: config.mutationField, + args: [ + t.argument({ + name: 'input', + value: t.variable({ name: 'input' }), + }), + ], + selectionSet: t.selectionSet({ + selections: config.resultSelections, + }), + }), + ], + }), + }), + ], + }); + return print(document); +} + +function addVariable( + spec: VariableSpec, + definitions: VariableDefinitionNode[], + args: ArgumentNode[], + variables: Record +): void { + if (spec.value === undefined || !spec.typeName) return; + + definitions.push( + t.variableDefinition({ + variable: t.variable({ name: spec.varName }), + type: parseType(spec.typeName), + }) + ); + args.push( + t.argument({ + name: spec.argName ?? spec.varName, + value: t.variable({ name: spec.varName }), + }) + ); + variables[spec.varName] = spec.value; +} + +function buildValueAst( + value: unknown +): + | ReturnType + | ReturnType + | ReturnType + | ReturnType + | ReturnType + | ReturnType + | ReturnType + | EnumValueNode { + if (value === null) { + return t.nullValue(); + } + + if (typeof value === 'boolean') { + return t.booleanValue({ value }); + } + + if (typeof value === 'number') { + return Number.isInteger(value) + ? t.intValue({ value: value.toString() }) + : t.floatValue({ value: value.toString() }); + } + + if (typeof value === 'string') { + return t.stringValue({ value }); + } + + if (Array.isArray(value)) { + return t.listValue({ + values: value.map((item) => buildValueAst(item)), + }); + } + + if (typeof value === 'object' && value !== null) { + const obj = value as Record; + return t.objectValue({ + fields: Object.entries(obj).map(([key, val]) => + t.objectField({ + name: key, + value: buildValueAst(val), + }) + ), + }); + } + + throw new Error('Unsupported value type: ' + typeof value); +} + +// ============================================================================ +// Bulk Mutation Document Builders +// ============================================================================ + +export function buildBulkInsertDocument( + operationName: string, + mutationField: string, + select: TSelect, + data: TData[], + inputTypeName: string, + onConflict?: unknown, + connectionFieldsMap?: Record> +): { document: string; variables: Record } { + const selections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + return { + document: buildInputMutationDocument({ + operationName, + mutationField, + inputTypeName, + resultSelections: [ + t.field({ name: 'affectedCount' }), + t.field({ + name: 'returning', + selectionSet: t.selectionSet({ selections }), + }), + ], + }), + variables: { + input: { + values: data, + ...(onConflict ? { onConflict } : {}), + }, + }, + }; +} + +export function buildBulkUpsertDocument( + operationName: string, + mutationField: string, + select: TSelect, + data: TData[], + inputTypeName: string, + onConflict: unknown, + connectionFieldsMap?: Record> +): { document: string; variables: Record } { + const selections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + return { + document: buildInputMutationDocument({ + operationName, + mutationField, + inputTypeName, + resultSelections: [ + t.field({ name: 'affectedCount' }), + t.field({ + name: 'returning', + selectionSet: t.selectionSet({ selections }), + }), + ], + }), + variables: { + input: { + values: data, + onConflict, + }, + }, + }; +} + +export function buildBulkUpdateDocument( + operationName: string, + mutationField: string, + select: TSelect, + where: TWhere, + data: TData, + inputTypeName: string, + connectionFieldsMap?: Record> +): { document: string; variables: Record } { + const selections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + return { + document: buildInputMutationDocument({ + operationName, + mutationField, + inputTypeName, + resultSelections: [ + t.field({ name: 'affectedCount' }), + t.field({ + name: 'returning', + selectionSet: t.selectionSet({ selections }), + }), + ], + }), + variables: { + input: { + where, + patch: data, + }, + }, + }; +} + +export function buildBulkDeleteDocument( + operationName: string, + mutationField: string, + select: TSelect, + where: TWhere, + inputTypeName: string, + connectionFieldsMap?: Record> +): { document: string; variables: Record } { + const selections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + return { + document: buildInputMutationDocument({ + operationName, + mutationField, + inputTypeName, + resultSelections: [ + t.field({ name: 'affectedCount' }), + t.field({ + name: 'returning', + selectionSet: t.selectionSet({ selections }), + }), + ], + }), + variables: { + input: { + where, + }, + }, + }; +} diff --git a/sdk/constructive-react/src/storage/orm/realtime.ts b/sdk/constructive-react/src/storage/orm/realtime.ts new file mode 100644 index 0000000000..214eb56203 --- /dev/null +++ b/sdk/constructive-react/src/storage/orm/realtime.ts @@ -0,0 +1,244 @@ +/** + * Realtime Manager - WebSocket subscription support + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +// Minimal type shims so this module compiles without graphql-ws +// installed. Consumers supply a WsClient via RealtimeConfig; +// the SDK itself never imports or requires graphql-ws. + +interface WsGraphQLError { + readonly message: string; + readonly [key: string]: unknown; +} + +interface WsExecutionResult> { + data?: TData | null; + errors?: readonly WsGraphQLError[]; + extensions?: Record; +} + +interface WsSink { + next(value: T): void; + error(error: unknown): void; + complete(): void; +} + +/** + * Minimal interface matching the graphql-ws Client. + * Consumers pass a concrete instance via RealtimeConfig.client. + */ +export interface WsClient { + subscribe>( + payload: { query: string; variables?: Record }, + sink: WsSink> + ): () => void; + dispose(): void; +} + +// ============================================================================ +// Types +// ============================================================================ + +/** The DML operation that triggered the subscription event */ +export type SubscriptionOperation = 'INSERT' | 'UPDATE' | 'DELETE'; + +/** Connection state of the WebSocket */ +export type ConnectionState = 'disconnected' | 'connecting' | 'connected' | 'reconnecting'; + +/** Listener for connection state changes */ +export type ConnectionStateListener = (state: ConnectionState) => void; + +/** Function returned by subscribe() to cancel the subscription */ +export type Unsubscribe = () => void; + +/** + * A realtime subscription event delivered to the client. + * + * @typeParam T - The row type of the subscribed table + */ +export interface SubscriptionEvent { + /** The DML operation that triggered this event */ + operation: SubscriptionOperation; + /** The current row data (null for DELETE if row is no longer visible) */ + data: T | null; + /** Previous field values (populated on UPDATE when available) */ + previousValues?: Partial; + /** Server-side timestamp of when the change occurred */ + timestamp: string; +} + +/** + * Options for creating a subscription. + * + * @typeParam T - The row type of the subscribed table + * @typeParam TFilter - The filter type for the table + */ +export interface SubscribeOptions> { + /** Server-side filter to limit which events are delivered */ + filter?: TFilter; + /** Called when a subscription event is received */ + onEvent: (event: SubscriptionEvent) => void; + /** Called when the subscription encounters an error */ + onError?: (error: Error) => void; + /** Called when the subscription completes (server-initiated close) */ + onComplete?: () => void; +} + +/** + * Metadata about a subscription field, used internally to map + * table names to GraphQL subscription field names and types. + */ +export interface SubscriptionFieldMeta { + /** The GraphQL subscription field name (e.g., 'onContactChanged') */ + fieldName: string; + /** The table name in the source schema (e.g., 'contact') */ + tableName: string; + /** The data field name inside the subscription payload (e.g., 'contact') */ + dataFieldName: string; +} + +/** + * Configuration for the realtime (WebSocket) connection. + * Pass this as the `realtime` option in OrmClientConfig. + * + * @example + * ```ts + * import { createClient } from 'graphql-ws'; + * + * const client = createOrmClient({ + * endpoint: 'https://api.example.com/graphql', + * realtime: { + * client: createClient({ url: 'wss://api.example.com/graphql' }), + * }, + * }); + * ``` + */ +export interface RealtimeConfig { + /** + * A graphql-ws Client instance (or any object satisfying WsClient). + * The consumer creates this themselves, giving full control over + * connection options, auth, and transport. + * + * @example + * ```ts + * import { createClient } from 'graphql-ws'; + * const wsClient = createClient({ url: 'wss://...' }); + * ``` + */ + client: WsClient; +} + +// ============================================================================ +// RealtimeManager +// ============================================================================ + +/** + * Manages a graphql-ws WebSocket client and multiplexes + * subscriptions over it. Created by OrmClient when `realtime` + * config is provided. + */ +export class RealtimeManager { + private wsClient: WsClient; + private connectionState: ConnectionState = 'disconnected'; + private stateListeners: Set = new Set(); + private activeSubscriptions = 0; + + constructor(config: RealtimeConfig) { + this.wsClient = config.client; + } + + /** + * Subscribe to a GraphQL subscription operation. + * Models call this with typed metadata and documents. + */ + subscribe( + meta: SubscriptionFieldMeta, + document: string, + variables: Record, + options: { + onEvent: (event: SubscriptionEvent) => void; + onError?: (error: Error) => void; + onComplete?: () => void; + } + ): Unsubscribe { + this.activeSubscriptions++; + let disposed = false; + + const cleanup = this.wsClient.subscribe>( + { query: document, variables }, + { + next: (result) => { + if (disposed) return; + if (result.errors) { + options.onError?.(new Error(result.errors.map((e) => e.message).join('; '))); + return; + } + + const payload = result.data?.[meta.fieldName] as + | { event?: string; [key: string]: unknown } + | undefined; + + if (!payload) return; + + const event: SubscriptionEvent = { + operation: (payload.event as SubscriptionOperation) ?? 'UPDATE', + data: (payload[meta.dataFieldName] as T) ?? null, + previousValues: payload.previousValues as Partial | undefined, + timestamp: (payload.timestamp as string) ?? new Date().toISOString(), + }; + options.onEvent(event); + }, + error: (err) => { + if (disposed) return; + options.onError?.(err instanceof Error ? err : new Error(String(err))); + }, + complete: () => { + if (disposed) return; + options.onComplete?.(); + }, + } + ); + + return () => { + if (disposed) return; + disposed = true; + this.activeSubscriptions--; + cleanup(); + }; + } + + /** Register a listener for connection state changes */ + onConnectionStateChange(listener: ConnectionStateListener): Unsubscribe { + this.stateListeners.add(listener); + return () => { + this.stateListeners.delete(listener); + }; + } + + /** Get current connection state */ + getConnectionState(): ConnectionState { + return this.connectionState; + } + + /** Number of active subscriptions */ + getActiveSubscriptionCount(): number { + return this.activeSubscriptions; + } + + /** Dispose the manager and close the WebSocket connection */ + dispose(): void { + this.wsClient.dispose(); + this.stateListeners.clear(); + this.activeSubscriptions = 0; + this.setConnectionState('disconnected'); + } + + private setConnectionState(state: ConnectionState): void { + if (this.connectionState === state) return; + this.connectionState = state; + for (const listener of this.stateListeners) { + listener(state); + } + } +} diff --git a/sdk/constructive-react/src/storage/orm/select-types.ts b/sdk/constructive-react/src/storage/orm/select-types.ts new file mode 100644 index 0000000000..4b39d7e820 --- /dev/null +++ b/sdk/constructive-react/src/storage/orm/select-types.ts @@ -0,0 +1,169 @@ +/** + * Type utilities for select inference + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +export interface ConnectionResult { + nodes: T[]; + totalCount: number; + pageInfo: PageInfo; +} + +export interface PageInfo { + hasNextPage: boolean; + hasPreviousPage: boolean; + startCursor?: string | null; + endCursor?: string | null; +} + +export interface FindManyArgs { + select?: TSelect; + where?: TWhere; + orderBy?: TOrderBy[]; + first?: number; + last?: number; + after?: string; + before?: string; + offset?: number; +} + +export interface FindFirstArgs { + select?: TSelect; + where?: TWhere; + orderBy?: TOrderBy[]; +} + +export interface CreateArgs { + data: TData; + select?: TSelect; +} + +export interface UpdateArgs { + where: TWhere; + data: TData; + select?: TSelect; +} + +export type FindOneArgs = { + select?: TSelect; +} & Record; + +export interface DeleteArgs { + where: TWhere; + select?: TSelect; +} + +export interface BulkInsertArgs { + data: TData[]; + select?: TSelect; + onConflict?: TOnConflict; +} + +export interface BulkUpsertArgs { + data: TData[]; + select?: TSelect; + onConflict: TOnConflict; +} + +export interface BulkUpdateArgs { + where: TWhere; + data: TData; + select?: TSelect; +} + +export interface BulkDeleteArgs { + where: TWhere; + select?: TSelect; +} + +export interface BulkMutationResult { + affectedCount: number; + returning: T[]; +} + +type DepthLevel = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10; +type DecrementDepth = { + 0: 0; + 1: 0; + 2: 1; + 3: 2; + 4: 3; + 5: 4; + 6: 5; + 7: 6; + 8: 7; + 9: 8; + 10: 9; +}; + +/** + * Recursively validates select objects, rejecting unknown keys. + * + * NOTE: Depth is intentionally capped to avoid circular-instantiation issues + * in very large cyclic schemas. + */ +export type DeepExact = Depth extends 0 + ? T extends Shape + ? T + : never + : T extends Shape + ? Exclude extends never + ? { + [K in keyof T]: K extends keyof Shape + ? T[K] extends { select: infer NS } + ? Extract extends { + select?: infer ShapeNS; + } + ? DeepExact< + Omit & { + select: DeepExact, DecrementDepth[Depth]>; + }, + Extract, + DecrementDepth[Depth] + > + : never + : T[K] + : never; + } + : never + : never; + +/** + * Enforces exact select shape while keeping contextual typing on `S extends XxxSelect`. + * Use this as an intersection in overloads: + * `{ select: S } & StrictSelect`. + */ +export type StrictSelect = S extends DeepExact ? {} : never; + +/** + * Hook-optimized strict select variant. + * + * Uses a shallower recursion depth to keep editor autocomplete responsive + * in large schemas while still validating common nested-select mistakes. + */ +export type HookStrictSelect = S extends DeepExact ? {} : never; + +/** + * Infer result type from select configuration + */ +export type InferSelectResult = TSelect extends undefined + ? TEntity + : { + [K in keyof TSelect as TSelect[K] extends false | undefined + ? never + : K]: TSelect[K] extends true + ? K extends keyof TEntity + ? TEntity[K] + : never + : TSelect[K] extends { select: infer NestedSelect } + ? K extends keyof TEntity + ? NonNullable extends ConnectionResult + ? ConnectionResult> + : + | InferSelectResult, NestedSelect> + | (null extends TEntity[K] ? null : never) + : never + : K extends keyof TEntity + ? TEntity[K] + : never; + }; diff --git a/sdk/constructive-react/src/storage/orm/types.ts b/sdk/constructive-react/src/storage/orm/types.ts new file mode 100644 index 0000000000..7c1120bcdf --- /dev/null +++ b/sdk/constructive-react/src/storage/orm/types.ts @@ -0,0 +1,8 @@ +/** + * Types re-export + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +// Re-export all types from input-types +export * from './input-types'; diff --git a/sdk/constructive-react/src/storage/schema-types.ts b/sdk/constructive-react/src/storage/schema-types.ts new file mode 100644 index 0000000000..fdc9c393db --- /dev/null +++ b/sdk/constructive-react/src/storage/schema-types.ts @@ -0,0 +1,1465 @@ +/** + * GraphQL schema types for custom operations + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import type { + Bucket, + File, + PlatformBucket, + PlatformFile, + BigFloatFilter, + BigIntFilter, + BitStringFilter, + BooleanFilter, + DateFilter, + DatetimeFilter, + FloatFilter, + FullTextFilter, + IntFilter, + IntListFilter, + InternetAddressFilter, + JSONFilter, + StringFilter, + StringListFilter, + UUIDFilter, + UUIDListFilter, + VectorFilter, +} from './types'; +export type ConstructiveInternalTypeUpload = unknown; +/** Methods to use when ordering `Bucket`. */ +export type BucketOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'ALLOWED_MIME_TYPES_ASC' + | 'ALLOWED_MIME_TYPES_DESC' + | 'ALLOWED_ORIGINS_ASC' + | 'ALLOWED_ORIGINS_DESC' + | 'ALLOW_CUSTOM_KEYS_ASC' + | 'ALLOW_CUSTOM_KEYS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'DESTINATION_BUCKET_ID_ASC' + | 'DESTINATION_BUCKET_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_PUBLIC_ASC' + | 'IS_PUBLIC_DESC' + | 'KEY_ASC' + | 'KEY_DESC' + | 'MAX_FILE_SIZE_ASC' + | 'MAX_FILE_SIZE_DESC' + | 'NATURAL' + | 'PHYSICAL_NAME_ASC' + | 'PHYSICAL_NAME_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'STAGING_TTL_ASC' + | 'STAGING_TTL_DESC' + | 'TAGS_ASC' + | 'TAGS_DESC' + | 'TYPE_ASC' + | 'TYPE_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type BucketType = 'PRIVATE' | 'PUBLIC' | 'TEMP'; +/** Methods to use when ordering `File`. */ +export type FileOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'BUCKET_ID_ASC' + | 'BUCKET_ID_DESC' + | 'CONTENT_HASH_ASC' + | 'CONTENT_HASH_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'EXPIRY_ENQUEUED_AT_ASC' + | 'EXPIRY_ENQUEUED_AT_DESC' + | 'FILENAME_ASC' + | 'FILENAME_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_PUBLIC_ASC' + | 'IS_PUBLIC_DESC' + | 'KEY_ASC' + | 'KEY_DESC' + | 'MIME_TYPE_ASC' + | 'MIME_TYPE_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PROMOTED_AT_ASC' + | 'PROMOTED_AT_DESC' + | 'SIZE_ASC' + | 'SIZE_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'TAGS_ASC' + | 'TAGS_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPLOAD_ASC' + | 'UPLOAD_DESC'; +export type FileStatus = 'EXPIRED' | 'PROCESSED' | 'REJECTED' | 'REQUESTED' | 'UPLOADED'; +/** Methods to use when ordering `PlatformBucket`. */ +export type PlatformBucketOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'ALLOWED_MIME_TYPES_ASC' + | 'ALLOWED_MIME_TYPES_DESC' + | 'ALLOWED_ORIGINS_ASC' + | 'ALLOWED_ORIGINS_DESC' + | 'ALLOW_CUSTOM_KEYS_ASC' + | 'ALLOW_CUSTOM_KEYS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'DESTINATION_BUCKET_ID_ASC' + | 'DESTINATION_BUCKET_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_PUBLIC_ASC' + | 'IS_PUBLIC_DESC' + | 'KEY_ASC' + | 'KEY_DESC' + | 'MAX_FILE_SIZE_ASC' + | 'MAX_FILE_SIZE_DESC' + | 'NATURAL' + | 'PHYSICAL_NAME_ASC' + | 'PHYSICAL_NAME_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'STAGING_TTL_ASC' + | 'STAGING_TTL_DESC' + | 'TAGS_ASC' + | 'TAGS_DESC' + | 'TYPE_ASC' + | 'TYPE_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `PlatformFile`. */ +export type PlatformFileOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'BUCKET_ID_ASC' + | 'BUCKET_ID_DESC' + | 'CONTENT_HASH_ASC' + | 'CONTENT_HASH_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'EXPIRY_ENQUEUED_AT_ASC' + | 'EXPIRY_ENQUEUED_AT_DESC' + | 'FILENAME_ASC' + | 'FILENAME_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_PUBLIC_ASC' + | 'IS_PUBLIC_DESC' + | 'KEY_ASC' + | 'KEY_DESC' + | 'MIME_TYPE_ASC' + | 'MIME_TYPE_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PROMOTED_AT_ASC' + | 'PROMOTED_AT_DESC' + | 'SIZE_ASC' + | 'SIZE_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'TAGS_ASC' + | 'TAGS_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPLOAD_ASC' + | 'UPLOAD_DESC'; +/** A filter to be used against `Bucket` object types. All fields are combined with a logical ‘and.’ */ +export interface BucketFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `allowCustomKeys` field. */ + allowCustomKeys?: BooleanFilter; + /** Filter by the object’s `allowedMimeTypes` field. */ + allowedMimeTypes?: StringListFilter; + /** Filter by the object’s `allowedOrigins` field. */ + allowedOrigins?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: BucketFilter[]; + /** Filter by the object’s `bucketsByDestinationBucketId` relation. */ + bucketsByDestinationBucketId?: BucketToManyBucketFilter; + /** `bucketsByDestinationBucketId` exist. */ + bucketsByDestinationBucketIdExist?: boolean; + /** 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 `destinationBucket` relation. */ + destinationBucket?: BucketFilter; + /** A related `destinationBucket` exists. */ + destinationBucketExists?: boolean; + /** Filter by the object’s `destinationBucketId` field. */ + destinationBucketId?: UUIDFilter; + /** Filter by the object’s `files` relation. */ + files?: BucketToManyFileFilter; + /** `files` exist. */ + filesExist?: boolean; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isPublic` field. */ + isPublic?: BooleanFilter; + /** Filter by the object’s `key` field. */ + key?: StringFilter; + /** Filter by the object’s `maxFileSize` field. */ + maxFileSize?: BigIntFilter; + /** Negates the expression. */ + not?: BucketFilter; + /** Checks for any expressions in this list. */ + or?: BucketFilter[]; + /** Filter by the object’s `physicalName` field. */ + physicalName?: StringFilter; + /** Filter by the object’s `stagingTtl` field. */ + stagingTtl?: IntervalFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Filter by the object’s `type` field. */ + type?: BucketTypeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} +/** An input for mutations affecting `Bucket` */ +export interface BucketInput { + /** User who created this bucket. Forced to current_user_id() on INSERT. */ + actorId: string; + /** When true, clients can provide custom S3 keys (e.g. reports/2024/Q1.pdf). When false (default), S3 key = content hash (automatic dedup). contentHash always required for integrity. */ + allowCustomKeys?: boolean; + /** Whitelist of allowed MIME types for files in this bucket (NULL = all allowed, enforcement deferred) */ + allowedMimeTypes?: string[]; + /** Per-bucket CORS allowed origins override (NULL = inherit from storage_module/plugin defaults). Use ARRAY['*'] for open/CDN mode. */ + allowedOrigins?: string[]; + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Human-readable description of the bucket purpose */ + description?: string; + /** For a temp bucket, the permanent bucket its uploads are promoted into. NULL on non-temp buckets; required on temp buckets. */ + destinationBucketId?: string; + id?: string; + /** Whether bucket contents are publicly readable. Set to true when type is public. */ + isPublic?: boolean; + /** Unique bucket identifier used in S3 key paths (e.g. avatars, documents, temp) */ + key: string; + /** Maximum file size in bytes allowed in this bucket (NULL = no limit, enforcement deferred) */ + maxFileSize?: string; + /** Physical S3/MinIO bucket name recorded at provision time (NULL until the physical bucket exists) */ + physicalName?: string; + /** For a temp bucket, how long an unpromoted staged file survives before it is eligible for expiry. NULL on non-temp buckets; required on temp buckets. */ + stagingTtl?: IntervalInput; + /** Selector labels for capability resolution and grouping (e.g. uploads, variants, exports). A function's required bucket key is matched against these plus type. */ + tags?: string[]; + /** Bucket CDN access type: public (CDN-served), private (presigned GET), temp (staging uploads) */ + type?: BucketType; + updatedAt?: string; +} +/** Represents an update to a `Bucket`. Fields that are set will be updated. */ +export interface BucketPatch { + /** User who created this bucket. Forced to current_user_id() on INSERT. */ + actorId?: string; + /** When true, clients can provide custom S3 keys (e.g. reports/2024/Q1.pdf). When false (default), S3 key = content hash (automatic dedup). contentHash always required for integrity. */ + allowCustomKeys?: boolean; + /** Whitelist of allowed MIME types for files in this bucket (NULL = all allowed, enforcement deferred) */ + allowedMimeTypes?: string[]; + /** Per-bucket CORS allowed origins override (NULL = inherit from storage_module/plugin defaults). Use ARRAY['*'] for open/CDN mode. */ + allowedOrigins?: string[]; + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string; + /** Human-readable description of the bucket purpose */ + description?: string; + /** For a temp bucket, the permanent bucket its uploads are promoted into. NULL on non-temp buckets; required on temp buckets. */ + destinationBucketId?: string; + id?: string; + /** Whether bucket contents are publicly readable. Set to true when type is public. */ + isPublic?: boolean; + /** Unique bucket identifier used in S3 key paths (e.g. avatars, documents, temp) */ + key?: string; + /** Maximum file size in bytes allowed in this bucket (NULL = no limit, enforcement deferred) */ + maxFileSize?: string; + /** Physical S3/MinIO bucket name recorded at provision time (NULL until the physical bucket exists) */ + physicalName?: string; + /** For a temp bucket, how long an unpromoted staged file survives before it is eligible for expiry. NULL on non-temp buckets; required on temp buckets. */ + stagingTtl?: IntervalInput; + /** Selector labels for capability resolution and grouping (e.g. uploads, variants, exports). A function's required bucket key is matched against these plus type. */ + tags?: string[]; + /** Bucket CDN access type: public (CDN-served), private (presigned GET), temp (staging uploads) */ + type?: BucketType; + updatedAt?: string; +} +/** A filter to be used against many `Bucket` object types. All fields are combined with a logical ‘and.’ */ +export interface BucketToManyBucketFilter { + /** Filters to entities where every related entity matches. */ + every?: BucketFilter; + /** Filters to entities where no related entity matches. */ + none?: BucketFilter; + /** Filters to entities where at least one related entity matches. */ + some?: BucketFilter; +} +/** A filter to be used against many `File` object types. All fields are combined with a logical ‘and.’ */ +export interface BucketToManyFileFilter { + /** Filters to entities where every related entity matches. */ + every?: FileFilter; + /** Filters to entities where no related entity matches. */ + none?: FileFilter; + /** Filters to entities where at least one related entity matches. */ + some?: FileFilter; +} +/** A filter to be used against BucketType fields. All fields are combined with a logical ‘and.’ */ +export interface BucketTypeFilter { + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: BucketType; + /** Equal to the specified value. */ + equalTo?: BucketType; + /** Greater than the specified value. */ + greaterThan?: BucketType; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: BucketType; + /** Included in the specified list. */ + in?: BucketType[]; + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Less than the specified value. */ + lessThan?: BucketType; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: BucketType; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: BucketType; + /** Not equal to the specified value. */ + notEqualTo?: BucketType; + /** Not included in the specified list. */ + notIn?: BucketType[]; +} +/** A filter to be used against ConstructiveInternalTypeUpload fields. All fields are combined with a logical ‘and.’ */ +export interface ConstructiveInternalTypeUploadFilter { + /** Contained by the specified JSON. */ + containedBy?: ConstructiveInternalTypeUpload; + /** Contains the specified JSON. */ + contains?: ConstructiveInternalTypeUpload; + /** Contains all of the specified keys. */ + containsAllKeys?: string[]; + /** Contains any of the specified keys. */ + containsAnyKeys?: string[]; + /** Contains the specified key. */ + containsKey?: string; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: ConstructiveInternalTypeUpload; + /** Equal to the specified value. */ + equalTo?: ConstructiveInternalTypeUpload; + /** Greater than the specified value. */ + greaterThan?: ConstructiveInternalTypeUpload; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: ConstructiveInternalTypeUpload; + /** Included in the specified list. */ + in?: ConstructiveInternalTypeUpload[]; + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Less than the specified value. */ + lessThan?: ConstructiveInternalTypeUpload; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: ConstructiveInternalTypeUpload; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: ConstructiveInternalTypeUpload; + /** Not equal to the specified value. */ + notEqualTo?: ConstructiveInternalTypeUpload; + /** Not included in the specified list. */ + notIn?: ConstructiveInternalTypeUpload[]; +} +export interface CreateBucketInput { + /** The `Bucket` to be created by this mutation. */ + bucket: BucketInput; + clientMutationId?: string; +} +export interface CreateFileInput { + clientMutationId?: string; + /** The `File` to be created by this mutation. */ + file: FileInput; +} +export interface CreatePlatformBucketInput { + clientMutationId?: string; + /** The `PlatformBucket` to be created by this mutation. */ + platformBucket: PlatformBucketInput; +} +export interface CreatePlatformFileInput { + clientMutationId?: string; + /** The `PlatformFile` to be created by this mutation. */ + platformFile: PlatformFileInput; +} +export interface DeleteBucketInput { + clientMutationId?: string; + id: string; +} +export interface DeleteFileInput { + clientMutationId?: string; + id: string; +} +export interface DeletePlatformBucketInput { + clientMutationId?: string; + id: string; +} +export interface DeletePlatformFileInput { + clientMutationId?: string; + id: string; +} +/** A filter to be used against `File` object types. All fields are combined with a logical ‘and.’ */ +export interface FileFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: FileFilter[]; + /** Filter by the object’s `bucket` relation. */ + bucket?: BucketFilter; + /** Filter by the object’s `bucketId` field. */ + bucketId?: UUIDFilter; + /** Filter by the object’s `contentHash` field. */ + contentHash?: 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 `expiryEnqueuedAt` field. */ + expiryEnqueuedAt?: DatetimeFilter; + /** Filter by the object’s `filename` field. */ + filename?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isPublic` field. */ + isPublic?: BooleanFilter; + /** Filter by the object’s `key` field. */ + key?: StringFilter; + /** Filter by the object’s `mimeType` field. */ + mimeType?: StringFilter; + /** Negates the expression. */ + not?: FileFilter; + /** Checks for any expressions in this list. */ + or?: FileFilter[]; + /** Filter by the object’s `promotedAt` field. */ + promotedAt?: DatetimeFilter; + /** Filter by the object’s `size` field. */ + size?: BigIntFilter; + /** Filter by the object’s `status` field. */ + status?: FileStatusFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `upload` field. */ + upload?: ConstructiveInternalTypeUploadFilter; +} +/** An input for mutations affecting `File` */ +export interface FileInput { + /** User who uploaded this file. Forced to current_user_id() on INSERT. Used for UPDATE/DELETE authorization. */ + actorId: string; + /** Bucket this file belongs to. Determines owner_id and is_public via inheritance trigger. */ + bucketId: string; + /** SHA-256 content hash for integrity verification and dedup. In default mode, equals the S3 key. In custom key mode, stored separately. */ + contentHash?: string; + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Human-readable description or alt text for the file (mutable) */ + description?: string; + /** When the staged-expiry sweep enqueued deletion of this file's object. NULL until it expires; set once so expiry is enqueued exactly once. */ + expiryEnqueuedAt?: string; + /** Original filename provided by the uploader. Used for display and Content-Disposition header on download. */ + filename?: string; + id?: string; + /** Whether this file is publicly readable. Inherited from bucket on INSERT. */ + isPublic?: boolean; + /** S3 object key for this file, unique within its bucket */ + key: string; + /** MIME type of the file (e.g. image/png, application/pdf). Immutable after INSERT. */ + mimeType: string; + /** When this file was promoted out of its staging bucket into its destination bucket. NULL for a file that was never staged, or is still staged. */ + promotedAt?: string; + /** File size in bytes. Immutable after INSERT. */ + size: string; + /** File lifecycle status: requested (presigned URL generated, not yet in S3), uploaded (file in S3 and content validated, ready for use), processed (image resized, text extracted, embedding computed), rejected (declared type disagreed with the bytes), expired (bytes never arrived before the confirm window closed). */ + status?: FileStatus; + /** User-defined tags for categorization and search (mutable) */ + tags?: string[]; + updatedAt?: string; + /** Processed file reference (upload domain). Populated by processing jobs after file is uploaded. Copy this value to other tables to reference the file. */ + upload?: ConstructiveInternalTypeUpload; +} +/** Represents an update to a `File`. Fields that are set will be updated. */ +export interface FilePatch { + /** User who uploaded this file. Forced to current_user_id() on INSERT. Used for UPDATE/DELETE authorization. */ + actorId?: string; + /** Bucket this file belongs to. Determines owner_id and is_public via inheritance trigger. */ + bucketId?: string; + /** SHA-256 content hash for integrity verification and dedup. In default mode, equals the S3 key. In custom key mode, stored separately. */ + contentHash?: string; + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string; + /** Human-readable description or alt text for the file (mutable) */ + description?: string; + /** When the staged-expiry sweep enqueued deletion of this file's object. NULL until it expires; set once so expiry is enqueued exactly once. */ + expiryEnqueuedAt?: string; + /** Original filename provided by the uploader. Used for display and Content-Disposition header on download. */ + filename?: string; + id?: string; + /** Whether this file is publicly readable. Inherited from bucket on INSERT. */ + isPublic?: boolean; + /** S3 object key for this file, unique within its bucket */ + key?: string; + /** MIME type of the file (e.g. image/png, application/pdf). Immutable after INSERT. */ + mimeType?: string; + /** When this file was promoted out of its staging bucket into its destination bucket. NULL for a file that was never staged, or is still staged. */ + promotedAt?: string; + /** File size in bytes. Immutable after INSERT. */ + size?: string; + /** File lifecycle status: requested (presigned URL generated, not yet in S3), uploaded (file in S3 and content validated, ready for use), processed (image resized, text extracted, embedding computed), rejected (declared type disagreed with the bytes), expired (bytes never arrived before the confirm window closed). */ + status?: FileStatus; + /** User-defined tags for categorization and search (mutable) */ + tags?: string[]; + updatedAt?: string; + /** Processed file reference (upload domain). Populated by processing jobs after file is uploaded. Copy this value to other tables to reference the file. */ + upload?: ConstructiveInternalTypeUpload; + /** Upload for Processed file reference (upload domain). Populated by processing jobs after file is uploaded. Copy this value to other tables to reference the file. */ + uploadUpload?: File; +} +/** A filter to be used against FileStatus fields. All fields are combined with a logical ‘and.’ */ +export interface FileStatusFilter { + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: FileStatus; + /** Equal to the specified value. */ + equalTo?: FileStatus; + /** Greater than the specified value. */ + greaterThan?: FileStatus; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: FileStatus; + /** Included in the specified list. */ + in?: FileStatus[]; + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Less than the specified value. */ + lessThan?: FileStatus; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: FileStatus; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: FileStatus; + /** Not equal to the specified value. */ + notEqualTo?: FileStatus; + /** Not included in the specified list. */ + notIn?: FileStatus[]; +} +export interface FilesRenameInput { + clientMutationId?: string; + fileId?: string; + newFilename?: string; +} +/** A filter to be used against Interval fields. All fields are combined with a logical ‘and.’ */ +export interface IntervalFilter { + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: IntervalInput; + /** Equal to the specified value. */ + equalTo?: IntervalInput; + /** Greater than the specified value. */ + greaterThan?: IntervalInput; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: IntervalInput; + /** Included in the specified list. */ + in?: IntervalInput[]; + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Less than the specified value. */ + lessThan?: IntervalInput; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: IntervalInput; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: IntervalInput; + /** Not equal to the specified value. */ + notEqualTo?: IntervalInput; + /** Not included in the specified list. */ + notIn?: IntervalInput[]; +} +/** An interval of time that has passed where the smallest distinct unit is a second. */ +export interface IntervalInput { + /** A quantity of days. */ + days?: number; + /** A quantity of hours. */ + hours?: number; + /** A quantity of minutes. */ + minutes?: number; + /** A quantity of months. */ + months?: number; + /** + * A quantity of seconds. This is the only non-integer field, as all the other + * fields will dump their overflow into a smaller unit of time. Intervals don’t + * have a smaller unit than seconds. + */ + seconds?: number; + /** A quantity of years. */ + years?: number; +} +/** A filter to be used against `PlatformBucket` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformBucketFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `allowCustomKeys` field. */ + allowCustomKeys?: BooleanFilter; + /** Filter by the object’s `allowedMimeTypes` field. */ + allowedMimeTypes?: StringListFilter; + /** Filter by the object’s `allowedOrigins` field. */ + allowedOrigins?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: PlatformBucketFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `destinationBucket` relation. */ + destinationBucket?: PlatformBucketFilter; + /** A related `destinationBucket` exists. */ + destinationBucketExists?: boolean; + /** Filter by the object’s `destinationBucketId` field. */ + destinationBucketId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isPublic` field. */ + isPublic?: BooleanFilter; + /** Filter by the object’s `key` field. */ + key?: StringFilter; + /** Filter by the object’s `maxFileSize` field. */ + maxFileSize?: BigIntFilter; + /** Negates the expression. */ + not?: PlatformBucketFilter; + /** Checks for any expressions in this list. */ + or?: PlatformBucketFilter[]; + /** Filter by the object’s `physicalName` field. */ + physicalName?: StringFilter; + /** Filter by the object’s `platformBucketsByDestinationBucketId` relation. */ + platformBucketsByDestinationBucketId?: PlatformBucketToManyPlatformBucketFilter; + /** `platformBucketsByDestinationBucketId` exist. */ + platformBucketsByDestinationBucketIdExist?: boolean; + /** Filter by the object’s `platformFilesByBucketId` relation. */ + platformFilesByBucketId?: PlatformBucketToManyPlatformFileFilter; + /** `platformFilesByBucketId` exist. */ + platformFilesByBucketIdExist?: boolean; + /** Filter by the object’s `stagingTtl` field. */ + stagingTtl?: IntervalFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Filter by the object’s `type` field. */ + type?: BucketTypeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} +/** An input for mutations affecting `PlatformBucket` */ +export interface PlatformBucketInput { + /** User who created this bucket. Forced to current_user_id() on INSERT. */ + actorId: string; + /** When true, clients can provide custom S3 keys (e.g. reports/2024/Q1.pdf). When false (default), S3 key = content hash (automatic dedup). contentHash always required for integrity. */ + allowCustomKeys?: boolean; + /** Whitelist of allowed MIME types for files in this bucket (NULL = all allowed, enforcement deferred) */ + allowedMimeTypes?: string[]; + /** Per-bucket CORS allowed origins override (NULL = inherit from storage_module/plugin defaults). Use ARRAY['*'] for open/CDN mode. */ + allowedOrigins?: string[]; + createdAt?: string; + /** Human-readable description of the bucket purpose */ + description?: string; + /** For a temp bucket, the permanent bucket its uploads are promoted into. NULL on non-temp buckets; required on temp buckets. */ + destinationBucketId?: string; + id?: string; + /** Whether bucket contents are publicly readable. Set to true when type is public. */ + isPublic?: boolean; + /** Unique bucket identifier used in S3 key paths (e.g. avatars, documents, temp) */ + key: string; + /** Maximum file size in bytes allowed in this bucket (NULL = no limit, enforcement deferred) */ + maxFileSize?: string; + /** Physical S3/MinIO bucket name recorded at provision time (NULL until the physical bucket exists) */ + physicalName?: string; + /** For a temp bucket, how long an unpromoted staged file survives before it is eligible for expiry. NULL on non-temp buckets; required on temp buckets. */ + stagingTtl?: IntervalInput; + /** Selector labels for capability resolution and grouping (e.g. uploads, variants, exports). A function's required bucket key is matched against these plus type. */ + tags?: string[]; + /** Bucket CDN access type: public (CDN-served), private (presigned GET), temp (staging uploads) */ + type?: BucketType; + updatedAt?: string; +} +/** Represents an update to a `PlatformBucket`. Fields that are set will be updated. */ +export interface PlatformBucketPatch { + /** User who created this bucket. Forced to current_user_id() on INSERT. */ + actorId?: string; + /** When true, clients can provide custom S3 keys (e.g. reports/2024/Q1.pdf). When false (default), S3 key = content hash (automatic dedup). contentHash always required for integrity. */ + allowCustomKeys?: boolean; + /** Whitelist of allowed MIME types for files in this bucket (NULL = all allowed, enforcement deferred) */ + allowedMimeTypes?: string[]; + /** Per-bucket CORS allowed origins override (NULL = inherit from storage_module/plugin defaults). Use ARRAY['*'] for open/CDN mode. */ + allowedOrigins?: string[]; + createdAt?: string; + /** Human-readable description of the bucket purpose */ + description?: string; + /** For a temp bucket, the permanent bucket its uploads are promoted into. NULL on non-temp buckets; required on temp buckets. */ + destinationBucketId?: string; + id?: string; + /** Whether bucket contents are publicly readable. Set to true when type is public. */ + isPublic?: boolean; + /** Unique bucket identifier used in S3 key paths (e.g. avatars, documents, temp) */ + key?: string; + /** Maximum file size in bytes allowed in this bucket (NULL = no limit, enforcement deferred) */ + maxFileSize?: string; + /** Physical S3/MinIO bucket name recorded at provision time (NULL until the physical bucket exists) */ + physicalName?: string; + /** For a temp bucket, how long an unpromoted staged file survives before it is eligible for expiry. NULL on non-temp buckets; required on temp buckets. */ + stagingTtl?: IntervalInput; + /** Selector labels for capability resolution and grouping (e.g. uploads, variants, exports). A function's required bucket key is matched against these plus type. */ + tags?: string[]; + /** Bucket CDN access type: public (CDN-served), private (presigned GET), temp (staging uploads) */ + type?: BucketType; + updatedAt?: string; +} +/** A filter to be used against many `PlatformBucket` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformBucketToManyPlatformBucketFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformBucketFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformBucketFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformBucketFilter; +} +/** A filter to be used against many `PlatformFile` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformBucketToManyPlatformFileFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformFileFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformFileFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformFileFilter; +} +/** A filter to be used against `PlatformFile` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformFileFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: PlatformFileFilter[]; + /** Filter by the object’s `bucket` relation. */ + bucket?: PlatformBucketFilter; + /** Filter by the object’s `bucketId` field. */ + bucketId?: UUIDFilter; + /** Filter by the object’s `contentHash` field. */ + contentHash?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `expiryEnqueuedAt` field. */ + expiryEnqueuedAt?: DatetimeFilter; + /** Filter by the object’s `filename` field. */ + filename?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isPublic` field. */ + isPublic?: BooleanFilter; + /** Filter by the object’s `key` field. */ + key?: StringFilter; + /** Filter by the object’s `mimeType` field. */ + mimeType?: StringFilter; + /** Negates the expression. */ + not?: PlatformFileFilter; + /** Checks for any expressions in this list. */ + or?: PlatformFileFilter[]; + /** Filter by the object’s `promotedAt` field. */ + promotedAt?: DatetimeFilter; + /** Filter by the object’s `size` field. */ + size?: BigIntFilter; + /** Filter by the object’s `status` field. */ + status?: FileStatusFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `upload` field. */ + upload?: ConstructiveInternalTypeUploadFilter; +} +/** An input for mutations affecting `PlatformFile` */ +export interface PlatformFileInput { + /** User who uploaded this file. Forced to current_user_id() on INSERT. Used for UPDATE/DELETE authorization. */ + actorId: string; + /** Bucket this file belongs to. Determines owner_id and is_public via inheritance trigger. */ + bucketId: string; + /** SHA-256 content hash for integrity verification and dedup. In default mode, equals the S3 key. In custom key mode, stored separately. */ + contentHash?: string; + createdAt?: string; + /** Human-readable description or alt text for the file (mutable) */ + description?: string; + /** When the staged-expiry sweep enqueued deletion of this file's object. NULL until it expires; set once so expiry is enqueued exactly once. */ + expiryEnqueuedAt?: string; + /** Original filename provided by the uploader. Used for display and Content-Disposition header on download. */ + filename?: string; + id?: string; + /** Whether this file is publicly readable. Inherited from bucket on INSERT. */ + isPublic?: boolean; + /** S3 object key for this file, unique within its bucket */ + key: string; + /** MIME type of the file (e.g. image/png, application/pdf). Immutable after INSERT. */ + mimeType: string; + /** When this file was promoted out of its staging bucket into its destination bucket. NULL for a file that was never staged, or is still staged. */ + promotedAt?: string; + /** File size in bytes. Immutable after INSERT. */ + size: string; + /** File lifecycle status: requested (presigned URL generated, not yet in S3), uploaded (file in S3 and content validated, ready for use), processed (image resized, text extracted, embedding computed), rejected (declared type disagreed with the bytes), expired (bytes never arrived before the confirm window closed). */ + status?: FileStatus; + /** User-defined tags for categorization and search (mutable) */ + tags?: string[]; + updatedAt?: string; + /** Processed file reference (upload domain). Populated by processing jobs after file is uploaded. Copy this value to other tables to reference the file. */ + upload?: ConstructiveInternalTypeUpload; +} +/** Represents an update to a `PlatformFile`. Fields that are set will be updated. */ +export interface PlatformFilePatch { + /** User who uploaded this file. Forced to current_user_id() on INSERT. Used for UPDATE/DELETE authorization. */ + actorId?: string; + /** Bucket this file belongs to. Determines owner_id and is_public via inheritance trigger. */ + bucketId?: string; + /** SHA-256 content hash for integrity verification and dedup. In default mode, equals the S3 key. In custom key mode, stored separately. */ + contentHash?: string; + createdAt?: string; + /** Human-readable description or alt text for the file (mutable) */ + description?: string; + /** When the staged-expiry sweep enqueued deletion of this file's object. NULL until it expires; set once so expiry is enqueued exactly once. */ + expiryEnqueuedAt?: string; + /** Original filename provided by the uploader. Used for display and Content-Disposition header on download. */ + filename?: string; + id?: string; + /** Whether this file is publicly readable. Inherited from bucket on INSERT. */ + isPublic?: boolean; + /** S3 object key for this file, unique within its bucket */ + key?: string; + /** MIME type of the file (e.g. image/png, application/pdf). Immutable after INSERT. */ + mimeType?: string; + /** When this file was promoted out of its staging bucket into its destination bucket. NULL for a file that was never staged, or is still staged. */ + promotedAt?: string; + /** File size in bytes. Immutable after INSERT. */ + size?: string; + /** File lifecycle status: requested (presigned URL generated, not yet in S3), uploaded (file in S3 and content validated, ready for use), processed (image resized, text extracted, embedding computed), rejected (declared type disagreed with the bytes), expired (bytes never arrived before the confirm window closed). */ + status?: FileStatus; + /** User-defined tags for categorization and search (mutable) */ + tags?: string[]; + updatedAt?: string; + /** Processed file reference (upload domain). Populated by processing jobs after file is uploaded. Copy this value to other tables to reference the file. */ + upload?: ConstructiveInternalTypeUpload; + /** Upload for Processed file reference (upload domain). Populated by processing jobs after file is uploaded. Copy this value to other tables to reference the file. */ + uploadUpload?: File; +} +export interface PlatformFilesRenameInput { + clientMutationId?: string; + fileId?: string; + newFilename?: 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 UpdateBucketInput { + /** An object where the defined keys will be set on the `Bucket` being updated. */ + bucketPatch: BucketPatch; + clientMutationId?: string; + id: string; +} +export interface UpdateFileInput { + clientMutationId?: string; + /** An object where the defined keys will be set on the `File` being updated. */ + filePatch: FilePatch; + id: string; +} +export interface UpdatePlatformBucketInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `PlatformBucket` being updated. */ + platformBucketPatch: PlatformBucketPatch; +} +export interface UpdatePlatformFileInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `PlatformFile` being updated. */ + platformFilePatch: PlatformFilePatch; +} +export interface UploadFileBulkFileInput { + /** SHA-256 content hash (hex-encoded, 64 chars) */ + contentHash: string; + /** MIME type of the file */ + contentType: string; + /** Original filename (optional) */ + filename?: string; + /** Custom S3 key (only when bucket has allow_custom_keys=true) */ + key?: string; + /** File size in bytes */ + size: number; +} +export interface UploadFileBulkInput { + /** Bucket key (e.g., "public", "private"). Omit to use the database's default bucket for the requested access. */ + bucketKey?: string; + /** Array of files to upload */ + files: UploadFileBulkFileInput[]; + /** Which default bucket to resolve when bucketKey is omitted. Ignored when bucketKey is given. */ + isPublic?: boolean; +} +export interface UploadFileInput { + /** Bucket key (e.g., "public", "private"). Omit to use the database's default bucket for the requested access. */ + bucketKey?: string; + /** SHA-256 content hash (hex-encoded, 64 chars) */ + contentHash: string; + /** MIME type of the file */ + contentType: string; + /** Original filename (optional) */ + filename?: string; + /** Which default bucket to resolve when bucketKey is omitted: the public one (true) or the private one (default false). Ignored when bucketKey is given. */ + isPublic?: boolean; + /** Custom S3 key (only when bucket has allow_custom_keys=true) */ + key?: string; + /** File size in bytes */ + size: number; +} +export interface UploadPlatformFileBulkFileInput { + /** SHA-256 content hash (hex-encoded, 64 chars) */ + contentHash: string; + /** MIME type of the file */ + contentType: string; + /** Original filename (optional) */ + filename?: string; + /** Custom S3 key (only when bucket has allow_custom_keys=true) */ + key?: string; + /** File size in bytes */ + size: number; +} +export interface UploadPlatformFileBulkInput { + /** Bucket key (e.g., "public", "private"). Omit to use the database's default bucket for the requested access. */ + bucketKey?: string; + /** Array of files to upload */ + files: UploadPlatformFileBulkFileInput[]; + /** Which default bucket to resolve when bucketKey is omitted. Ignored when bucketKey is given. */ + isPublic?: boolean; +} +export interface UploadPlatformFileInput { + /** Bucket key (e.g., "public", "private"). Omit to use the database's default bucket for the requested access. */ + bucketKey?: string; + /** SHA-256 content hash (hex-encoded, 64 chars) */ + contentHash: string; + /** MIME type of the file */ + contentType: string; + /** Original filename (optional) */ + filename?: string; + /** Which default bucket to resolve when bucketKey is omitted: the public one (true) or the private one (default false). Ignored when bucketKey is given. */ + isPublic?: boolean; + /** Custom S3 key (only when bucket has allow_custom_keys=true) */ + key?: string; + /** File size in bytes */ + size: number; +} +/** Root meta schema type */ +export interface MetaSchema { + tables: MetaTable[]; +} +/** A connection to a list of `Bucket` values. */ +export interface BucketConnection { + edges: BucketEdge[]; + nodes: Bucket[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `File` values. */ +export interface FileConnection { + edges: FileEdge[]; + nodes: File[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `PlatformBucket` values. */ +export interface PlatformBucketConnection { + edges: PlatformBucketEdge[]; + nodes: PlatformBucket[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `PlatformFile` values. */ +export interface PlatformFileConnection { + edges: PlatformFileEdge[]; + nodes: PlatformFile[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface CreateBucketPayload { + /** The `Bucket` that was created by this mutation. */ + bucket?: Bucket | null; + bucketEdge?: BucketEdge | null; + clientMutationId?: string | null; +} +export interface CreateFilePayload { + clientMutationId?: string | null; + /** The `File` that was created by this mutation. */ + file?: File | null; + fileEdge?: FileEdge | null; +} +export interface CreatePlatformBucketPayload { + clientMutationId?: string | null; + /** The `PlatformBucket` that was created by this mutation. */ + platformBucket?: PlatformBucket | null; + platformBucketEdge?: PlatformBucketEdge | null; +} +export interface CreatePlatformFilePayload { + clientMutationId?: string | null; + /** The `PlatformFile` that was created by this mutation. */ + platformFile?: PlatformFile | null; + platformFileEdge?: PlatformFileEdge | null; +} +export interface DeleteBucketPayload { + /** The `Bucket` that was deleted by this mutation. */ + bucket?: Bucket | null; + bucketEdge?: BucketEdge | null; + clientMutationId?: string | null; +} +export interface DeleteFilePayload { + clientMutationId?: string | null; + /** The `File` that was deleted by this mutation. */ + file?: File | null; + fileEdge?: FileEdge | null; +} +export interface DeletePlatformBucketPayload { + clientMutationId?: string | null; + /** The `PlatformBucket` that was deleted by this mutation. */ + platformBucket?: PlatformBucket | null; + platformBucketEdge?: PlatformBucketEdge | null; +} +export interface DeletePlatformFilePayload { + clientMutationId?: string | null; + /** The `PlatformFile` that was deleted by this mutation. */ + platformFile?: PlatformFile | null; + platformFileEdge?: PlatformFileEdge | null; +} +export interface FilesRenamePayload { + clientMutationId?: string | null; + fileEdge?: FileEdge | null; + result?: File | null; +} +export interface PlatformFilesRenamePayload { + clientMutationId?: string | null; + platformFileEdge?: PlatformFileEdge | null; + result?: PlatformFile | null; +} +export interface ProvisionBucketPayload { + /** The logical bucket row that was queued for reconciliation. */ + bucketId: string; + bucketKey: string; + /** The reconciler job enqueued to provision this bucket. */ + jobId: string; + /** The physical bucket name already recorded, or null when reconciliation has not completed. */ + physicalName?: string | null; +} +export interface UpdateBucketPayload { + /** The `Bucket` that was updated by this mutation. */ + bucket?: Bucket | null; + bucketEdge?: BucketEdge | null; + clientMutationId?: string | null; +} +export interface UpdateFilePayload { + clientMutationId?: string | null; + /** The `File` that was updated by this mutation. */ + file?: File | null; + fileEdge?: FileEdge | null; +} +export interface UpdatePlatformBucketPayload { + clientMutationId?: string | null; + /** The `PlatformBucket` that was updated by this mutation. */ + platformBucket?: PlatformBucket | null; + platformBucketEdge?: PlatformBucketEdge | null; +} +export interface UpdatePlatformFilePayload { + clientMutationId?: string | null; + /** The `PlatformFile` that was updated by this mutation. */ + platformFile?: PlatformFile | null; + platformFileEdge?: PlatformFileEdge | null; +} +export interface UploadFilePayload { + /** Whether this file was deduplicated (content already exists) */ + deduplicated: boolean; + /** Presigned URL expiry time (null if deduplicated) */ + expiresAt?: string | null; + /** The projection document for the created file: {id, key, bucket_id, mime, size, filename, url?}. Store this verbatim in an image/upload column — its `id` is what keeps the object from being garbage collected while the column still references it. */ + file?: unknown | null; + /** The file ID (UUID) */ + fileId: string; + /** The S3 object key */ + key: string; + /** ID of the previous version (when using custom keys) */ + previousVersionId?: string | null; + /** Presigned PUT URL (null if deduplicated) */ + uploadUrl?: string | null; +} +export interface UploadFileBulkPayload { + files: UploadFileBulkFilePayload[]; +} +export interface UploadPlatformFilePayload { + /** Whether this file was deduplicated (content already exists) */ + deduplicated: boolean; + /** Presigned URL expiry time (null if deduplicated) */ + expiresAt?: string | null; + /** The projection document for the created file: {id, key, bucket_id, mime, size, filename, url?}. Store this verbatim in an image/upload column — its `id` is what keeps the object from being garbage collected while the column still references it. */ + file?: unknown | null; + /** The file ID (UUID) */ + fileId: string; + /** The S3 object key */ + key: string; + /** ID of the previous version (when using custom keys) */ + previousVersionId?: string | null; + /** Presigned PUT URL (null if deduplicated) */ + uploadUrl?: string | null; +} +export interface UploadPlatformFileBulkPayload { + files: UploadPlatformFileBulkFilePayload[]; +} +/** Information about a database table */ +export interface MetaTable { + constraints: MetaConstraints; + fields: MetaField[]; + foreignKeyConstraints: MetaForeignKeyConstraint[]; + /** i18n metadata (null if no @i18n tag) */ + i18n?: MetaI18n | null; + indexes: MetaIndex[]; + inflection: MetaInflection; + /** Final GraphQL output type name */ + name: string; + primaryKeyConstraints: MetaPrimaryKeyConstraint[]; + query: MetaQuery; + /** Realtime metadata (null if no @realtime tag) */ + realtime?: MetaRealtime | null; + relations: MetaRelations; + schemaName: string; + /** Provisioning scope metadata (null if no @scope tag) */ + scope?: MetaScope | null; + /** Search metadata (null if no search configured) */ + search?: MetaSearch | null; + /** Storage metadata (null if not a storage table) */ + storage?: MetaStorage | null; + /** PostgreSQL table name */ + tableName: string; + uniqueConstraints: MetaUniqueConstraint[]; +} +/** A `Bucket` edge in the connection. */ +export interface BucketEdge { + cursor?: string | null; + /** The `Bucket` at the end of the edge. */ + node?: Bucket | null; +} +/** 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; +} +/** A `File` edge in the connection. */ +export interface FileEdge { + cursor?: string | null; + /** The `File` at the end of the edge. */ + node?: File | null; +} +/** A `PlatformBucket` edge in the connection. */ +export interface PlatformBucketEdge { + cursor?: string | null; + /** The `PlatformBucket` at the end of the edge. */ + node?: PlatformBucket | null; +} +/** A `PlatformFile` edge in the connection. */ +export interface PlatformFileEdge { + cursor?: string | null; + /** The `PlatformFile` at the end of the edge. */ + node?: PlatformFile | null; +} +export interface UploadFileBulkFilePayload { + deduplicated: boolean; + expiresAt?: string | null; + /** The projection document for the created file. */ + file?: unknown | null; + fileId: string; + key: string; + previousVersionId?: string | null; + uploadUrl?: string | null; +} +export interface UploadPlatformFileBulkFilePayload { + deduplicated: boolean; + expiresAt?: string | null; + /** The projection document for the created file. */ + file?: unknown | null; + fileId: string; + key: string; + previousVersionId?: string | null; + uploadUrl?: string | null; +} +/** Table constraints */ +export interface MetaConstraints { + foreignKey: MetaForeignKeyConstraint[]; + primaryKey?: MetaPrimaryKeyConstraint | null; + unique: MetaUniqueConstraint[]; +} +/** Information about a table field/column */ +export interface MetaField { + /** PostgreSQL column name */ + columnName: string; + description?: string | null; + /** Enum metadata if this field has an enum type */ + enumValues?: MetaEnum | null; + hasDefault: boolean; + isForeignKey: boolean; + isNotNull: boolean; + isPrimaryKey: boolean; + /** Final GraphQL field name */ + name: string; + type: MetaType; +} +/** Information about a foreign key constraint */ +export interface MetaForeignKeyConstraint { + fields: MetaField[]; + name: string; + refFields?: MetaField[] | null; + refTable?: MetaRefTable | null; + referencedFields: string[]; + referencedTable: string; +} +/** i18n metadata for a table with @i18n tag */ +export interface MetaI18n { + /** Fields that are translatable */ + translatableFields: MetaI18nField[]; + /** Name of the translation table */ + translationTable: string; +} +/** Information about a database index */ +export interface MetaIndex { + columns: string[]; + fields?: MetaField[] | null; + isPrimary: boolean; + isUnique: boolean; + name: string; +} +/** Table inflection names */ +export interface MetaInflection { + allRows: string; + conditionType: string; + connection: string; + createInputType: string; + createPayloadType: string; + deletePayloadType: string; + edge: string; + filterType?: string | null; + orderByType: string; + patchType?: string | null; + tableType: string; + updatePayloadType?: string | null; +} +/** Information about a primary key constraint */ +export interface MetaPrimaryKeyConstraint { + fields: MetaField[]; + name: string; +} +/** Table query/mutation names */ +export interface MetaQuery { + all?: string | null; + create?: string | null; + delete?: string | null; + one?: string | null; + update?: string | null; +} +/** Realtime metadata for a table with @realtime tag */ +export interface MetaRealtime { + /** The generated subscription field name (e.g. onPostChanged) */ + subscriptionFieldName: string; +} +/** Table relations */ +export interface MetaRelations { + belongsTo: MetaBelongsToRelation[]; + has: MetaHasRelation[]; + hasMany: MetaHasRelation[]; + hasOne: MetaHasRelation[]; + manyToMany: MetaManyToManyRelation[]; +} +/** Provisioning scope metadata for a table */ +export interface MetaScope { + /** SQL name of the entity table for entity scopes, else null */ + entityTable?: string | null; + /** Inflected scope key column (e.g. databaseId, orgId), null for global tiers */ + keyColumn?: string | null; + /** 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 */ +export interface MetaSearch { + /** Active search algorithms on this table */ + algorithms: string[]; + /** Searchable columns with their algorithm */ + columns: MetaSearchColumn[]; + /** Per-table search configuration */ + config?: MetaSearchConfig | null; + /** Whether unifiedSearch composite filter is available */ + hasUnifiedSearch: boolean; +} +/** Storage metadata for a table */ +export interface MetaStorage { + /** GraphQL type name of the plane's buckets table */ + bucketsType: string; + /** Computed download-URL field on the files type; null on the buckets side */ + downloadUrlField?: string | null; + /** GraphQL type name of the plane's files table */ + filesType: string; + /** Whether this table is a storage buckets table */ + isBucketsTable: boolean; + /** Whether this table is a storage files table */ + isFilesTable: boolean; + /** The plane's GraphQL upload surface */ + upload: MetaStorageUpload; +} +/** Information about a unique constraint */ +export interface MetaUniqueConstraint { + fields: MetaField[]; + name: string; +} +/** Information about a PostgreSQL enum type */ +export interface MetaEnum { + /** The PostgreSQL enum type name */ + name: string; + /** Allowed values for this enum */ + values: string[]; +} +/** Information about a PostgreSQL type */ +export interface MetaType { + /** Scalar serialization contract (null for plain scalars) */ + encoding?: MetaScalarEncoding | null; + gqlType: string; + hasDefault?: boolean | null; + isArray: boolean; + isNotNull?: boolean | null; + pgType: string; + subtype?: string | null; +} +/** Reference to a related table */ +export interface MetaRefTable { + name: string; +} +/** A translatable field */ +export interface MetaI18nField { + /** GraphQL field name */ + name: string; + /** PostgreSQL column type (text, citext) */ + type: string; +} +/** A belongs-to (forward FK) relation */ +export interface MetaBelongsToRelation { + fieldName?: string | null; + isUnique: boolean; + keys: MetaField[]; + references: MetaRefTable; + type?: string | null; +} +/** A has-one or has-many (reverse FK) relation */ +export interface MetaHasRelation { + fieldName?: string | null; + isUnique: boolean; + keys: MetaField[]; + referencedBy: MetaRefTable; + type?: string | null; +} +/** A many-to-many relation via junction table */ +export interface MetaManyToManyRelation { + fieldName?: string | null; + junctionLeftConstraint: MetaForeignKeyConstraint; + junctionLeftKeyAttributes: MetaField[]; + junctionRightConstraint: MetaForeignKeyConstraint; + junctionRightKeyAttributes: MetaField[]; + junctionTable: MetaRefTable; + leftKeyAttributes: MetaField[]; + rightKeyAttributes: MetaField[]; + rightTable: MetaRefTable; + type?: string | null; +} +/** A searchable column with its algorithm */ +export interface MetaSearchColumn { + /** Search algorithm: tsvector, bm25, trgm, or vector */ + algorithm: string; + /** Column name (camelCase) */ + name: string; +} +/** Per-table search configuration from @searchConfig smart tag */ +export interface MetaSearchConfig { + /** Exponential decay factor per day */ + boostRecencyDecay?: number | null; + /** Field used for recency decay */ + boostRecencyField?: string | null; + /** Whether recency boosting is enabled */ + boostRecent: boolean; + /** JSON-encoded per-adapter score weights */ + weights?: string | null; +} +/** The GraphQL upload surface of a storage plane, derived from the registry facts the presigned-url plugin emits from */ +export interface MetaStorageUpload { + /** Per-file input type inside the bulk input */ + bulkFileInputType: string; + /** Per-file payload type inside the bulk payload */ + bulkFilePayloadType: string; + /** Input type of the bulk upload mutation */ + bulkInputType: string; + /** Root mutation field for bulk upload */ + bulkMutation: string; + /** Payload type of the bulk upload mutation */ + bulkPayloadType: string; + /** Input type of the single upload mutation */ + inputType: string; + /** Root mutation field for single-file upload (e.g. uploadAppFile) */ + mutation: string; + /** Payload type of the single upload mutation */ + payloadType: string; + /** Whether the upload input requires ownerId (entity-keyed plane) */ + requiresOwnerId: boolean; +} +/** 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. */ +export interface MetaScalarEncoding { + /** For 'vector': declared length, else null. */ + dimensions?: number | null; + /** For 'ltree': values are dot-separated path strings. */ + dotPath?: boolean | null; + /** For 'vector': element scalar (e.g. 'float'). */ + elementType?: string | null; + /** For 'geojson': Point/LineString/Polygon/…, else null. */ + geometrySubtype?: string | null; + /** 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?: number | null; +} diff --git a/sdk/constructive-react/src/storage/types.ts b/sdk/constructive-react/src/storage/types.ts new file mode 100644 index 0000000000..7c9bc6cb02 --- /dev/null +++ b/sdk/constructive-react/src/storage/types.ts @@ -0,0 +1,311 @@ +/** + * Entity types and filter types + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import type { BucketType, FileStatus } from './schema-types'; +export type ConstructiveInternalTypeUpload = unknown; +export interface Bucket { + actorId: string | null; + allowCustomKeys: boolean | null; + allowedMimeTypes: string[] | null; + allowedOrigins: string[] | null; + createdAt: string | null; + databaseId: string | null; + description: string | null; + destinationBucketId: string | null; + id: string | null; + isPublic: boolean | null; + key: string | null; + maxFileSize: string | null; + physicalName: string | null; + stagingTtl: string | null; + tags: string[] | null; + type: BucketType | null; + updatedAt: string | null; +} +export interface File { + actorId: string | null; + bucketId: string | null; + contentHash: string | null; + createdAt: string | null; + databaseId: string | null; + description: string | null; + downloadUrl: string | null; + expiryEnqueuedAt: string | null; + filePath: string | null; + filename: string | null; + id: string | null; + isPublic: boolean | null; + key: string | null; + mimeType: string | null; + promotedAt: string | null; + size: string | null; + status: FileStatus | null; + tags: string[] | null; + updatedAt: string | null; + upload: ConstructiveInternalTypeUpload | null; +} +export interface PlatformBucket { + actorId: string | null; + allowCustomKeys: boolean | null; + allowedMimeTypes: string[] | null; + allowedOrigins: string[] | null; + createdAt: string | null; + description: string | null; + destinationBucketId: string | null; + id: string | null; + isPublic: boolean | null; + key: string | null; + maxFileSize: string | null; + physicalName: string | null; + stagingTtl: string | null; + tags: string[] | null; + type: BucketType | null; + updatedAt: string | null; +} +export interface PlatformFile { + actorId: string | null; + bucketId: string | null; + contentHash: string | null; + createdAt: string | null; + description: string | null; + downloadUrl: string | null; + expiryEnqueuedAt: string | null; + filePath: string | null; + filename: string | null; + id: string | null; + isPublic: boolean | null; + key: string | null; + mimeType: string | null; + promotedAt: string | null; + size: string | null; + status: FileStatus | null; + tags: string[] | null; + updatedAt: string | null; + upload: ConstructiveInternalTypeUpload | null; +} +export interface StringFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; + includes?: string; + notIncludes?: string; + includesInsensitive?: string; + notIncludesInsensitive?: string; + startsWith?: string; + notStartsWith?: string; + startsWithInsensitive?: string; + notStartsWithInsensitive?: string; + endsWith?: string; + notEndsWith?: string; + endsWithInsensitive?: string; + notEndsWithInsensitive?: string; + like?: string; + notLike?: string; + likeInsensitive?: string; + notLikeInsensitive?: string; +} +export interface IntFilter { + isNull?: boolean; + equalTo?: number; + notEqualTo?: number; + distinctFrom?: number; + notDistinctFrom?: number; + in?: number[]; + notIn?: number[]; + lessThan?: number; + lessThanOrEqualTo?: number; + greaterThan?: number; + greaterThanOrEqualTo?: number; +} +export interface FloatFilter { + isNull?: boolean; + equalTo?: number; + notEqualTo?: number; + distinctFrom?: number; + notDistinctFrom?: number; + in?: number[]; + notIn?: number[]; + lessThan?: number; + lessThanOrEqualTo?: number; + greaterThan?: number; + greaterThanOrEqualTo?: number; +} +export interface BooleanFilter { + isNull?: boolean; + equalTo?: boolean; + notEqualTo?: boolean; +} +export interface UUIDFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; +} +export interface DatetimeFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; +} +export interface DateFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; +} +export interface JSONFilter { + isNull?: boolean; + equalTo?: Record; + notEqualTo?: Record; + distinctFrom?: Record; + notDistinctFrom?: Record; + contains?: unknown; + containedBy?: unknown; + containsKey?: string; + containsAllKeys?: string[]; + containsAnyKeys?: string[]; +} +export interface BigIntFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; +} +export interface BigFloatFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; +} +export interface BitStringFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; +} +export interface InternetAddressFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; + contains?: string; + containedBy?: string; + containsOrContainedBy?: string; +} +export interface FullTextFilter { + matches?: string; +} +export interface VectorFilter { + isNull?: boolean; + equalTo?: number[]; + notEqualTo?: number[]; + distinctFrom?: number[]; + notDistinctFrom?: number[]; +} +export interface StringListFilter { + isNull?: boolean; + equalTo?: string[]; + notEqualTo?: string[]; + distinctFrom?: string[]; + notDistinctFrom?: string[]; + lessThan?: string[]; + lessThanOrEqualTo?: string[]; + greaterThan?: string[]; + greaterThanOrEqualTo?: string[]; + contains?: string[]; + containedBy?: string[]; + overlaps?: string[]; + anyEqualTo?: string; + anyNotEqualTo?: string; + anyLessThan?: string; + anyLessThanOrEqualTo?: string; + anyGreaterThan?: string; + anyGreaterThanOrEqualTo?: string; +} +export interface IntListFilter { + isNull?: boolean; + equalTo?: number[]; + notEqualTo?: number[]; + distinctFrom?: number[]; + notDistinctFrom?: number[]; + lessThan?: number[]; + lessThanOrEqualTo?: number[]; + greaterThan?: number[]; + greaterThanOrEqualTo?: number[]; + contains?: number[]; + containedBy?: number[]; + overlaps?: number[]; + anyEqualTo?: number; + anyNotEqualTo?: number; + anyLessThan?: number; + anyLessThanOrEqualTo?: number; + anyGreaterThan?: number; + anyGreaterThanOrEqualTo?: number; +} +export interface UUIDListFilter { + isNull?: boolean; + equalTo?: string[]; + notEqualTo?: string[]; + distinctFrom?: string[]; + notDistinctFrom?: string[]; + lessThan?: string[]; + lessThanOrEqualTo?: string[]; + greaterThan?: string[]; + greaterThanOrEqualTo?: string[]; + contains?: string[]; + containedBy?: string[]; + overlaps?: string[]; + anyEqualTo?: string; + anyNotEqualTo?: string; + anyLessThan?: string; + anyLessThanOrEqualTo?: string; + anyGreaterThan?: string; + anyGreaterThanOrEqualTo?: string; +} diff --git a/sdk/constructive-react/src/usage/README.md b/sdk/constructive-react/src/usage/README.md index 6e444bab67..b51fe3553a 100644 --- a/sdk/constructive-react/src/usage/README.md +++ b/sdk/constructive-react/src/usage/README.md @@ -8,9 +8,9 @@ ## Overview -- **Tables:** 38 -- **Custom queries:** 5 -- **Custom mutations:** 11 +- **Tables:** 18 +- **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 662439cccd..d7969b07c2 100644 --- a/sdk/constructive-react/src/usage/hooks/README.md +++ b/sdk/constructive-react/src/usage/hooks/README.md @@ -32,41 +32,6 @@ function App() { | Hook | Type | Description | |------|------|-------------| -| `useAppAchievementRewardsQuery` | Query | Defines rewards granted when a level is achieved; supports limit_credits and meter_credits | -| `useAppAchievementRewardQuery` | Query | Defines rewards granted when a level is achieved; supports limit_credits and meter_credits | -| `useCreateAppAchievementRewardMutation` | Mutation | Defines rewards granted when a level is achieved; supports limit_credits and meter_credits | -| `useUpdateAppAchievementRewardMutation` | Mutation | Defines rewards granted when a level is achieved; supports limit_credits and meter_credits | -| `useDeleteAppAchievementRewardMutation` | Mutation | Defines rewards granted when a level is achieved; supports limit_credits and meter_credits | -| `useAppEventAggregatesQuery` | Query | Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually | -| `useAppEventAggregateQuery` | Query | Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually | -| `useCreateAppEventAggregateMutation` | Mutation | Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually | -| `useUpdateAppEventAggregateMutation` | Mutation | Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually | -| `useDeleteAppEventAggregateMutation` | Mutation | Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually | -| `useAppEventsQuery` | Query | Partitioned append-only log of individual user actions; every single event ever recorded | -| `useAppEventQuery` | Query | Partitioned append-only log of individual user actions; every single event ever recorded | -| `useCreateAppEventMutation` | Mutation | Partitioned append-only log of individual user actions; every single event ever recorded | -| `useUpdateAppEventMutation` | Mutation | Partitioned append-only log of individual user actions; every single event ever recorded | -| `useDeleteAppEventMutation` | Mutation | Partitioned append-only log of individual user actions; every single event ever recorded | -| `useAppEventTypesQuery` | Query | Catalog of known event types with per-type configuration for aggregation, retention, and level participation | -| `useAppEventTypeQuery` | Query | Catalog of known event types with per-type configuration for aggregation, retention, and level participation | -| `useCreateAppEventTypeMutation` | Mutation | Catalog of known event types with per-type configuration for aggregation, retention, and level participation | -| `useUpdateAppEventTypeMutation` | Mutation | Catalog of known event types with per-type configuration for aggregation, retention, and level participation | -| `useDeleteAppEventTypeMutation` | Mutation | Catalog of known event types with per-type configuration for aggregation, retention, and level participation | -| `useAppLevelsQuery` | Query | Defines available levels that users can achieve by completing requirements | -| `useAppLevelQuery` | Query | Defines available levels that users can achieve by completing requirements | -| `useCreateAppLevelMutation` | Mutation | Defines available levels that users can achieve by completing requirements | -| `useUpdateAppLevelMutation` | Mutation | Defines available levels that users can achieve by completing requirements | -| `useDeleteAppLevelMutation` | Mutation | Defines available levels that users can achieve by completing requirements | -| `useAppLevelGrantsQuery` | Query | Records when a user achieves a level; prevents duplicate reward grants | -| `useAppLevelGrantQuery` | Query | Records when a user achieves a level; prevents duplicate reward grants | -| `useCreateAppLevelGrantMutation` | Mutation | Records when a user achieves a level; prevents duplicate reward grants | -| `useUpdateAppLevelGrantMutation` | Mutation | Records when a user achieves a level; prevents duplicate reward grants | -| `useDeleteAppLevelGrantMutation` | Mutation | Records when a user achieves a level; prevents duplicate reward grants | -| `useAppLevelRequirementsQuery` | Query | Defines the specific requirements that must be met to achieve a level | -| `useAppLevelRequirementQuery` | Query | Defines the specific requirements that must be met to achieve a level | -| `useCreateAppLevelRequirementMutation` | Mutation | Defines the specific requirements that must be met to achieve a level | -| `useUpdateAppLevelRequirementMutation` | Mutation | Defines the specific requirements that must be met to achieve a level | -| `useDeleteAppLevelRequirementMutation` | Mutation | Defines the specific requirements that must be met to achieve a level | | `useAppLimitCapsQuery` | Query | Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. | | `useAppLimitCapQuery` | Query | Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. | | `useCreateAppLimitCapMutation` | Mutation | Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. | @@ -117,36 +82,6 @@ function App() { | `useCreateAppLimitWarningMutation` | Mutation | Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. | | `useUpdateAppLimitWarningMutation` | Mutation | Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. | | `useDeleteAppLimitWarningMutation` | Mutation | Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. | -| `useBillingUsageSummariesQuery` | Query | Permanent monthly usage summary per entity per meter (user-facing billing dashboard) | -| `useBillingUsageSummaryQuery` | Query | Permanent monthly usage summary per entity per meter (user-facing billing dashboard) | -| `useCreateBillingUsageSummaryMutation` | Mutation | Permanent monthly usage summary per entity per meter (user-facing billing dashboard) | -| `useUpdateBillingUsageSummaryMutation` | Mutation | Permanent monthly usage summary per entity per meter (user-facing billing dashboard) | -| `useDeleteBillingUsageSummaryMutation` | Mutation | Permanent monthly usage summary per entity per meter (user-facing billing dashboard) | -| `useLedgersQuery` | Query | Append-only event log for all billing events (usage, grants, adjustments) | -| `useLedgerQuery` | Query | Append-only event log for all billing events (usage, grants, adjustments) | -| `useCreateLedgerMutation` | Mutation | Append-only event log for all billing events (usage, grants, adjustments) | -| `useUpdateLedgerMutation` | Mutation | Append-only event log for all billing events (usage, grants, adjustments) | -| `useDeleteLedgerMutation` | Mutation | Append-only event log for all billing events (usage, grants, adjustments) | -| `useMetersQuery` | Query | Defines billable meters (what to track: quotas, feature flags, credit pools) | -| `useMeterQuery` | Query | Defines billable meters (what to track: quotas, feature flags, credit pools) | -| `useCreateMeterMutation` | Mutation | Defines billable meters (what to track: quotas, feature flags, credit pools) | -| `useUpdateMeterMutation` | Mutation | Defines billable meters (what to track: quotas, feature flags, credit pools) | -| `useDeleteMeterMutation` | Mutation | Defines billable meters (what to track: quotas, feature flags, credit pools) | -| `useMeterCreditsQuery` | Query | Append-only ledger of credit grants for billing meters that automatically update balances | -| `useMeterCreditQuery` | Query | Append-only ledger of credit grants for billing meters that automatically update balances | -| `useCreateMeterCreditMutation` | Mutation | Append-only ledger of credit grants for billing meters that automatically update balances | -| `useUpdateMeterCreditMutation` | Mutation | Append-only ledger of credit grants for billing meters that automatically update balances | -| `useDeleteMeterCreditMutation` | Mutation | Append-only ledger of credit grants for billing meters that automatically update balances | -| `useMeterDefaultsQuery` | Query | Default meter catalog: defines which meters are available and their default plan_limit values for new entities | -| `useMeterDefaultQuery` | Query | Default meter catalog: defines which meters are available and their default plan_limit values for new entities | -| `useCreateMeterDefaultMutation` | Mutation | Default meter catalog: defines which meters are available and their default plan_limit values for new entities | -| `useUpdateMeterDefaultMutation` | Mutation | Default meter catalog: defines which meters are available and their default plan_limit values for new entities | -| `useDeleteMeterDefaultMutation` | Mutation | Default meter catalog: defines which meters are available and their default plan_limit values for new entities | -| `useMeterSourcesQuery` | Query | Maps billing meters to typed usage summary table columns for automated usage reconciliation. Each row tells reconcile_typed_usage() which column to aggregate and how. | -| `useMeterSourceQuery` | Query | Maps billing meters to typed usage summary table columns for automated usage reconciliation. Each row tells reconcile_typed_usage() which column to aggregate and how. | -| `useCreateMeterSourceMutation` | Mutation | Maps billing meters to typed usage summary table columns for automated usage reconciliation. Each row tells reconcile_typed_usage() which column to aggregate and how. | -| `useUpdateMeterSourceMutation` | Mutation | Maps billing meters to typed usage summary table columns for automated usage reconciliation. Each row tells reconcile_typed_usage() which column to aggregate and how. | -| `useDeleteMeterSourceMutation` | Mutation | Maps billing meters to typed usage summary table columns for automated usage reconciliation. Each row tells reconcile_typed_usage() which column to aggregate and how. | | `useOrgLimitAggregatesQuery` | Query | Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) | | `useOrgLimitAggregateQuery` | Query | Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) | | `useCreateOrgLimitAggregateMutation` | Mutation | Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) | @@ -187,210 +122,20 @@ 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. | -| `usePlanCapsQuery` | Query | Maps each plan to feature flag cap values (written to limit_caps when plan is applied) | -| `usePlanCapQuery` | Query | Maps each plan to feature flag cap values (written to limit_caps when plan is applied) | -| `useCreatePlanCapMutation` | Mutation | Maps each plan to feature flag cap values (written to limit_caps when plan is applied) | -| `useUpdatePlanCapMutation` | Mutation | Maps each plan to feature flag cap values (written to limit_caps when plan is applied) | -| `useDeletePlanCapMutation` | Mutation | Maps each plan to feature flag cap values (written to limit_caps when plan is applied) | -| `usePlansQuery` | Query | Defines plan tiers with named limit configurations | -| `usePlanQuery` | Query | Defines plan tiers with named limit configurations | -| `useCreatePlanMutation` | Mutation | Defines plan tiers with named limit configurations | -| `useUpdatePlanMutation` | Mutation | Defines plan tiers with named limit configurations | -| `useDeletePlanMutation` | Mutation | Defines plan tiers with named limit configurations | -| `usePlanLimitsQuery` | Query | Maps each plan to specific limit names and their maximum allowed values | -| `usePlanLimitQuery` | Query | Maps each plan to specific limit names and their maximum allowed values | -| `useCreatePlanLimitMutation` | Mutation | Maps each plan to specific limit names and their maximum allowed values | -| `useUpdatePlanLimitMutation` | Mutation | Maps each plan to specific limit names and their maximum allowed values | -| `useDeletePlanLimitMutation` | Mutation | Maps each plan to specific limit names and their maximum allowed values | -| `usePlanMeterLimitsQuery` | Query | Maps each plan to billing meter quotas (plan_limit values written to balances when plan is applied) | -| `usePlanMeterLimitQuery` | Query | Maps each plan to billing meter quotas (plan_limit values written to balances when plan is applied) | -| `useCreatePlanMeterLimitMutation` | Mutation | Maps each plan to billing meter quotas (plan_limit values written to balances when plan is applied) | -| `useUpdatePlanMeterLimitMutation` | Mutation | Maps each plan to billing meter quotas (plan_limit values written to balances when plan is applied) | -| `useDeletePlanMeterLimitMutation` | Mutation | Maps each plan to billing meter quotas (plan_limit values written to balances when plan is applied) | -| `usePlanOverridesQuery` | Query | Per-entity limit overrides that take precedence over plan defaults | -| `usePlanOverrideQuery` | Query | Per-entity limit overrides that take precedence over plan defaults | -| `useCreatePlanOverrideMutation` | Mutation | Per-entity limit overrides that take precedence over plan defaults | -| `useUpdatePlanOverrideMutation` | Mutation | Per-entity limit overrides that take precedence over plan defaults | -| `useDeletePlanOverrideMutation` | Mutation | Per-entity limit overrides that take precedence over plan defaults | -| `usePlanPricingsQuery` | Query | Billing intervals and pricing for each plan tier | -| `usePlanPricingQuery` | Query | Billing intervals and pricing for each plan tier | -| `useCreatePlanPricingMutation` | Mutation | Billing intervals and pricing for each plan tier | -| `useUpdatePlanPricingMutation` | Mutation | Billing intervals and pricing for each plan tier | -| `useDeletePlanPricingMutation` | Mutation | Billing intervals and pricing for each plan tier | -| `usePlanSubscriptionsQuery` | Query | Assigns a plan to an entity with subscription lifecycle (start, end, active state) | -| `usePlanSubscriptionQuery` | Query | Assigns a plan to an entity with subscription lifecycle (start, end, active state) | -| `useCreatePlanSubscriptionMutation` | Mutation | Assigns a plan to an entity with subscription lifecycle (start, end, active state) | -| `useUpdatePlanSubscriptionMutation` | Mutation | Assigns a plan to an entity with subscription lifecycle (start, end, active state) | -| `useDeletePlanSubscriptionMutation` | Mutation | Assigns a plan to an entity with subscription lifecycle (start, end, active state) | | `useCaptureAppLimitDefaultsQuery` | Query | captureAppLimitDefaults | | `useCaptureOrgLimitDefaultsQuery` | Query | captureOrgLimitDefaults | -| `useCaptureTrustLadderQuery` | Query | captureTrustLadder | -| `useEventsAchievedQuery` | Query | eventsAchieved | -| `useEventsRequiredQuery` | Query | Reads and enables pagination through a set of `AppLevelRequirement`. | -| `useGrantAchievementMutation` | Mutation | grantAchievement | -| `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. | -| `useRecomputeCapabilitiesMutation` | Mutation | recomputeCapabilities | -| `useRevokeAchievementMutation` | Mutation | revokeAchievement | +| `useProvisionBucketMutation` | Mutation | Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. | | `useSeedAppLimitCapsDefaultsMutation` | Mutation | seedAppLimitCapsDefaults | | `useSeedAppLimitDefaultsMutation` | Mutation | seedAppLimitDefaults | -| `useSeedMeterDefaultsMutation` | Mutation | seedMeterDefaults | | `useSeedOrgLimitCapsDefaultsMutation` | Mutation | seedOrgLimitCapsDefaults | | `useSeedOrgLimitDefaultsMutation` | Mutation | seedOrgLimitDefaults | -| `useSeedPlanMutation` | Mutation | seedPlan | -| `useSeedTrustLadderMutation` | Mutation | seedTrustLadder | ## Table Hooks -### AppAchievementReward - -```typescript -// List all appAchievementRewards -const { data, isLoading } = useAppAchievementRewardsQuery({ - selection: { fields: { amount: true, createdAt: true, creditType: true, expiresInterval: true, id: true, levelName: true, rewardType: true, targetName: true, updatedAt: true } }, -}); - -// Get one appAchievementReward -const { data: item } = useAppAchievementRewardQuery({ - id: '', - selection: { fields: { amount: true, createdAt: true, creditType: true, expiresInterval: true, id: true, levelName: true, rewardType: true, targetName: true, updatedAt: true } }, -}); - -// Create a appAchievementReward -const { mutate: create } = useCreateAppAchievementRewardMutation({ - selection: { fields: { id: true } }, -}); -create({ amount: '', creditType: '', expiresInterval: '', levelName: '', rewardType: '', targetName: '' }); -``` - -### AppEventAggregate - -```typescript -// List all appEventAggregates -const { data, isLoading } = useAppEventAggregatesQuery({ - selection: { fields: { actorId: true, count: true, createdAt: true, id: true, name: true, periodStart: true, updatedAt: true } }, -}); - -// Get one appEventAggregate -const { data: item } = useAppEventAggregateQuery({ - id: '', - selection: { fields: { actorId: true, count: true, createdAt: true, id: true, name: true, periodStart: true, updatedAt: true } }, -}); - -// Create a appEventAggregate -const { mutate: create } = useCreateAppEventAggregateMutation({ - selection: { fields: { id: true } }, -}); -create({ actorId: '', count: '', name: '', periodStart: '' }); -``` - -### AppEvent - -```typescript -// List all appEvents -const { data, isLoading } = useAppEventsQuery({ - selection: { fields: { actorId: true, count: true, createdAt: true, id: true, name: true } }, -}); - -// Get one appEvent -const { data: item } = useAppEventQuery({ - id: '', - selection: { fields: { actorId: true, count: true, createdAt: true, id: true, name: true } }, -}); - -// Create a appEvent -const { mutate: create } = useCreateAppEventMutation({ - selection: { fields: { id: true } }, -}); -create({ actorId: '', count: '', name: '' }); -``` - -### AppEventType - -```typescript -// List all appEventTypes -const { data, isLoading } = useAppEventTypesQuery({ - selection: { fields: { aggregation: true, category: true, createdAt: true, description: true, feedsLevels: true, id: true, isActive: true, name: true, periodInterval: true, updatedAt: true } }, -}); - -// Get one appEventType -const { data: item } = useAppEventTypeQuery({ - id: '', - selection: { fields: { aggregation: true, category: true, createdAt: true, description: true, feedsLevels: true, id: true, isActive: true, name: true, periodInterval: true, updatedAt: true } }, -}); - -// Create a appEventType -const { mutate: create } = useCreateAppEventTypeMutation({ - selection: { fields: { id: true } }, -}); -create({ aggregation: '', category: '', description: '', feedsLevels: '', isActive: '', name: '', periodInterval: '' }); -``` - -### AppLevel - -```typescript -// List all appLevels -const { data, isLoading } = useAppLevelsQuery({ - selection: { fields: { createdAt: true, description: true, id: true, image: true, name: true, ownerId: true, updatedAt: true } }, -}); - -// Get one appLevel -const { data: item } = useAppLevelQuery({ - id: '', - selection: { fields: { createdAt: true, description: true, id: true, image: true, name: true, ownerId: true, updatedAt: true } }, -}); - -// Create a appLevel -const { mutate: create } = useCreateAppLevelMutation({ - selection: { fields: { id: true } }, -}); -create({ description: '', image: '', name: '', ownerId: '' }); -``` - -### AppLevelGrant - -```typescript -// List all appLevelGrants -const { data, isLoading } = useAppLevelGrantsQuery({ - selection: { fields: { actorId: true, createdAt: true, expiresAt: true, id: true, levelName: true, periodStart: true, updatedAt: true } }, -}); - -// Get one appLevelGrant -const { data: item } = useAppLevelGrantQuery({ - id: '', - selection: { fields: { actorId: true, createdAt: true, expiresAt: true, id: true, levelName: true, periodStart: true, updatedAt: true } }, -}); - -// Create a appLevelGrant -const { mutate: create } = useCreateAppLevelGrantMutation({ - selection: { fields: { id: true } }, -}); -create({ actorId: '', expiresAt: '', levelName: '', periodStart: '' }); -``` - -### AppLevelRequirement - -```typescript -// List all appLevelRequirements -const { data, isLoading } = useAppLevelRequirementsQuery({ - selection: { fields: { createdAt: true, description: true, groupKey: true, id: true, level: true, metric: true, name: true, priority: true, requiredCount: true, updatedAt: true } }, -}); - -// Get one appLevelRequirement -const { data: item } = useAppLevelRequirementQuery({ - id: '', - selection: { fields: { createdAt: true, description: true, groupKey: true, id: true, level: true, metric: true, name: true, priority: true, requiredCount: true, updatedAt: true } }, -}); - -// Create a appLevelRequirement -const { mutate: create } = useCreateAppLevelRequirementMutation({ - selection: { fields: { id: true } }, -}); -create({ description: '', groupKey: '', level: '', metric: '', name: '', priority: '', requiredCount: '' }); -``` - ### AppLimitCap ```typescript @@ -601,132 +346,6 @@ const { mutate: create } = useCreateAppLimitWarningMutation({ create({ name: '', taskIdentifier: '', thresholdValue: '', warningType: '' }); ``` -### BillingUsageSummary - -```typescript -// List all billingUsageSummaries -const { data, isLoading } = useBillingUsageSummariesQuery({ - selection: { fields: { creditsConsumed: true, entityId: true, entityType: true, id: true, meterSlug: true, organizationId: true, overageUnits: true, periodEnd: true, periodStart: true, planLimit: true, quantityUsed: true } }, -}); - -// Get one billingUsageSummary -const { data: item } = useBillingUsageSummaryQuery({ - id: '', - selection: { fields: { creditsConsumed: true, entityId: true, entityType: true, id: true, meterSlug: true, organizationId: true, overageUnits: true, periodEnd: true, periodStart: true, planLimit: true, quantityUsed: true } }, -}); - -// Create a billingUsageSummary -const { mutate: create } = useCreateBillingUsageSummaryMutation({ - selection: { fields: { id: true } }, -}); -create({ creditsConsumed: '', entityId: '', entityType: '', meterSlug: '', organizationId: '', overageUnits: '', periodEnd: '', periodStart: '', planLimit: '', quantityUsed: '' }); -``` - -### Ledger - -```typescript -// List all ledgers -const { data, isLoading } = useLedgersQuery({ - selection: { fields: { createdAt: true, delta: true, entityId: true, entityType: true, entryType: true, id: true, ledgerClass: true, metadata: true, meterSlug: true, organizationId: true, usageAfter: true } }, -}); - -// Get one ledger -const { data: item } = useLedgerQuery({ - id: '', - selection: { fields: { createdAt: true, delta: true, entityId: true, entityType: true, entryType: true, id: true, ledgerClass: true, metadata: true, meterSlug: true, organizationId: true, usageAfter: true } }, -}); - -// Create a ledger -const { mutate: create } = useCreateLedgerMutation({ - selection: { fields: { id: true } }, -}); -create({ delta: '', entityId: '', entityType: '', entryType: '', ledgerClass: '', metadata: '', meterSlug: '', organizationId: '', usageAfter: '' }); -``` - -### Meter - -```typescript -// List all meters -const { data, isLoading } = useMetersQuery({ - selection: { fields: { aggregation: true, categoryMeter: true, creditCost: true, displayName: true, id: true, isActive: true, meterType: true, periodInterval: true, rolloverCap: true, slug: true, unit: true } }, -}); - -// Get one meter -const { data: item } = useMeterQuery({ - id: '', - selection: { fields: { aggregation: true, categoryMeter: true, creditCost: true, displayName: true, id: true, isActive: true, meterType: true, periodInterval: true, rolloverCap: true, slug: true, unit: true } }, -}); - -// Create a meter -const { mutate: create } = useCreateMeterMutation({ - selection: { fields: { id: true } }, -}); -create({ aggregation: '', categoryMeter: '', creditCost: '', displayName: '', isActive: '', meterType: '', periodInterval: '', rolloverCap: '', slug: '', unit: '' }); -``` - -### MeterCredit - -```typescript -// List all meterCredits -const { data, isLoading } = useMeterCreditsQuery({ - selection: { fields: { amount: true, createdAt: true, creditType: true, entityId: true, entityType: true, expiresAt: true, id: true, meterId: true, organizationId: true, reason: true } }, -}); - -// Get one meterCredit -const { data: item } = useMeterCreditQuery({ - id: '', - selection: { fields: { amount: true, createdAt: true, creditType: true, entityId: true, entityType: true, expiresAt: true, id: true, meterId: true, organizationId: true, reason: true } }, -}); - -// Create a meterCredit -const { mutate: create } = useCreateMeterCreditMutation({ - selection: { fields: { id: true } }, -}); -create({ amount: '', creditType: '', entityId: '', entityType: '', expiresAt: '', meterId: '', organizationId: '', reason: '' }); -``` - -### MeterDefault - -```typescript -// List all meterDefaults -const { data, isLoading } = useMeterDefaultsQuery({ - selection: { fields: { categoryMeter: true, creditCost: true, defaultPlanLimit: true, displayName: true, id: true, isActive: true, meterType: true, slug: true, unit: true } }, -}); - -// Get one meterDefault -const { data: item } = useMeterDefaultQuery({ - id: '', - selection: { fields: { categoryMeter: true, creditCost: true, defaultPlanLimit: true, displayName: true, id: true, isActive: true, meterType: true, slug: true, unit: true } }, -}); - -// Create a meterDefault -const { mutate: create } = useCreateMeterDefaultMutation({ - selection: { fields: { id: true } }, -}); -create({ categoryMeter: '', creditCost: '', defaultPlanLimit: '', displayName: '', isActive: '', meterType: '', slug: '', unit: '' }); -``` - -### MeterSource - -```typescript -// List all meterSources -const { data, isLoading } = useMeterSourcesQuery({ - selection: { fields: { aggregationType: true, dimensionPath: true, id: true, isActive: true, meterSlug: true, sourceMetric: true } }, -}); - -// Get one meterSource -const { data: item } = useMeterSourceQuery({ - id: '', - selection: { fields: { aggregationType: true, dimensionPath: true, id: true, isActive: true, meterSlug: true, sourceMetric: true } }, -}); - -// Create a meterSource -const { mutate: create } = useCreateMeterSourceMutation({ - selection: { fields: { id: true } }, -}); -create({ aggregationType: '', dimensionPath: '', isActive: '', meterSlug: '', sourceMetric: '' }); -``` - ### OrgLimitAggregate ```typescript @@ -895,153 +514,6 @@ const { mutate: create } = useCreateOrgLimitWarningMutation({ create({ entityId: '', name: '', taskIdentifier: '', thresholdValue: '', warningType: '' }); ``` -### PlanCap - -```typescript -// List all planCaps -const { data, isLoading } = usePlanCapsQuery({ - selection: { fields: { capName: true, capValue: true, id: true, planId: true } }, -}); - -// Get one planCap -const { data: item } = usePlanCapQuery({ - id: '', - selection: { fields: { capName: true, capValue: true, id: true, planId: true } }, -}); - -// Create a planCap -const { mutate: create } = useCreatePlanCapMutation({ - selection: { fields: { id: true } }, -}); -create({ capName: '', capValue: '', planId: '' }); -``` - -### Plan - -```typescript -// List all plans -const { data, isLoading } = usePlansQuery({ - selection: { fields: { description: true, id: true, isActive: true, name: true } }, -}); - -// Get one plan -const { data: item } = usePlanQuery({ - id: '', - selection: { fields: { description: true, id: true, isActive: true, name: true } }, -}); - -// Create a plan -const { mutate: create } = useCreatePlanMutation({ - selection: { fields: { id: true } }, -}); -create({ description: '', isActive: '', name: '' }); -``` - -### PlanLimit - -```typescript -// List all planLimits -const { data, isLoading } = usePlanLimitsQuery({ - selection: { fields: { id: true, limitName: true, maxValue: true, planId: true } }, -}); - -// Get one planLimit -const { data: item } = usePlanLimitQuery({ - id: '', - selection: { fields: { id: true, limitName: true, maxValue: true, planId: true } }, -}); - -// Create a planLimit -const { mutate: create } = useCreatePlanLimitMutation({ - selection: { fields: { id: true } }, -}); -create({ limitName: '', maxValue: '', planId: '' }); -``` - -### PlanMeterLimit - -```typescript -// List all planMeterLimits -const { data, isLoading } = usePlanMeterLimitsQuery({ - selection: { fields: { id: true, meterSlug: true, planId: true, planLimit: true } }, -}); - -// Get one planMeterLimit -const { data: item } = usePlanMeterLimitQuery({ - id: '', - selection: { fields: { id: true, meterSlug: true, planId: true, planLimit: true } }, -}); - -// Create a planMeterLimit -const { mutate: create } = useCreatePlanMeterLimitMutation({ - selection: { fields: { id: true } }, -}); -create({ meterSlug: '', planId: '', planLimit: '' }); -``` - -### PlanOverride - -```typescript -// List all planOverrides -const { data, isLoading } = usePlanOverridesQuery({ - selection: { fields: { entityId: true, expiresAt: true, id: true, limitName: true, maxValue: true, reason: true } }, -}); - -// Get one planOverride -const { data: item } = usePlanOverrideQuery({ - id: '', - selection: { fields: { entityId: true, expiresAt: true, id: true, limitName: true, maxValue: true, reason: true } }, -}); - -// Create a planOverride -const { mutate: create } = useCreatePlanOverrideMutation({ - selection: { fields: { id: true } }, -}); -create({ entityId: '', expiresAt: '', limitName: '', maxValue: '', reason: '' }); -``` - -### PlanPricing - -```typescript -// List all planPricings -const { data, isLoading } = usePlanPricingsQuery({ - selection: { fields: { billingInterval: true, currency: true, discountPercent: true, id: true, isActive: true, planId: true, price: true } }, -}); - -// Get one planPricing -const { data: item } = usePlanPricingQuery({ - id: '', - selection: { fields: { billingInterval: true, currency: true, discountPercent: true, id: true, isActive: true, planId: true, price: true } }, -}); - -// Create a planPricing -const { mutate: create } = useCreatePlanPricingMutation({ - selection: { fields: { id: true } }, -}); -create({ billingInterval: '', currency: '', discountPercent: '', isActive: '', planId: '', price: '' }); -``` - -### PlanSubscription - -```typescript -// List all planSubscriptions -const { data, isLoading } = usePlanSubscriptionsQuery({ - selection: { fields: { endsAt: true, entityId: true, entityType: true, id: true, isActive: true, organizationId: true, planId: true, startsAt: true } }, -}); - -// Get one planSubscription -const { data: item } = usePlanSubscriptionQuery({ - id: '', - selection: { fields: { endsAt: true, entityId: true, entityType: true, id: true, isActive: true, organizationId: true, planId: true, startsAt: true } }, -}); - -// Create a planSubscription -const { mutate: create } = useCreatePlanSubscriptionMutation({ - selection: { fields: { id: true } }, -}); -create({ endsAt: '', entityId: '', entityType: '', isActive: '', organizationId: '', planId: '', startsAt: '' }); -``` - ## Custom Operation Hooks ### `useCaptureAppLimitDefaultsQuery` @@ -1058,57 +530,13 @@ captureOrgLimitDefaults - **Type:** query - **Arguments:** none -### `useCaptureTrustLadderQuery` - -captureTrustLadder - -- **Type:** query -- **Arguments:** none - -### `useEventsAchievedQuery` - -eventsAchieved - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `level` | String | - | `roleId` | UUID | - -### `useEventsRequiredQuery` - -Reads and enables pagination through a set of `AppLevelRequirement`. - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `after` | Cursor | - | `first` | Int | - | `level` | String | - | `offset` | Int | - | `roleId` | UUID | - -### `useGrantAchievementMutation` - -grantAchievement - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | GrantAchievementInput (required) | - ### `useProvisionBucketMutation` -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. +Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. - **Type:** mutation - **Arguments:** @@ -1117,28 +545,6 @@ and lifecycle settings. |----------|------| | `input` | ProvisionBucketInput (required) | -### `useRecomputeCapabilitiesMutation` - -recomputeCapabilities - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | RecomputeCapabilitiesInput (required) | - -### `useRevokeAchievementMutation` - -revokeAchievement - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | RevokeAchievementInput (required) | - ### `useSeedAppLimitCapsDefaultsMutation` seedAppLimitCapsDefaults @@ -1161,17 +567,6 @@ seedAppLimitDefaults |----------|------| | `input` | SeedAppLimitDefaultsInput (required) | -### `useSeedMeterDefaultsMutation` - -seedMeterDefaults - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | SeedMeterDefaultsInput (required) | - ### `useSeedOrgLimitCapsDefaultsMutation` seedOrgLimitCapsDefaults @@ -1193,25 +588,3 @@ seedOrgLimitDefaults | Argument | Type | |----------|------| | `input` | SeedOrgLimitDefaultsInput (required) | - -### `useSeedPlanMutation` - -seedPlan - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | SeedPlanInput (required) | - -### `useSeedTrustLadderMutation` - -seedTrustLadder - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | SeedTrustLadderInput (required) | diff --git a/sdk/constructive-react/src/usage/hooks/index.ts b/sdk/constructive-react/src/usage/hooks/index.ts index 9c1c42ed85..aa601adfa6 100644 --- a/sdk/constructive-react/src/usage/hooks/index.ts +++ b/sdk/constructive-react/src/usage/hooks/index.ts @@ -2,7 +2,7 @@ * GraphQL SDK * @generated by @constructive-io/graphql-codegen * - * Tables: AppAchievementReward, AppEventAggregate, AppEvent, AppEventType, AppLevel, AppLevelGrant, AppLevelRequirement, AppLimitCap, AppLimitCapsDefault, AppLimit, AppLimitCreditCode, AppLimitCreditCodeItem, AppLimitCredit, AppLimitCreditRedemption, AppLimitDefault, AppLimitEvent, AppLimitWarning, BillingUsageSummary, Ledger, Meter, MeterCredit, MeterDefault, MeterSource, OrgLimitAggregate, OrgLimitCap, OrgLimitCapsDefault, OrgLimit, OrgLimitCredit, OrgLimitDefault, OrgLimitEvent, OrgLimitWarning, PlanCap, Plan, PlanLimit, PlanMeterLimit, PlanOverride, PlanPricing, PlanSubscription + * Tables: AppLimitCap, AppLimitCapsDefault, AppLimit, AppLimitCreditCode, AppLimitCreditCodeItem, AppLimitCredit, AppLimitCreditRedemption, AppLimitDefault, AppLimitEvent, AppLimitWarning, OrgLimitAggregate, OrgLimitCap, OrgLimitCapsDefault, OrgLimit, OrgLimitCredit, OrgLimitDefault, OrgLimitEvent, OrgLimitWarning * * Usage: * diff --git a/sdk/constructive-react/src/usage/hooks/invalidation.ts b/sdk/constructive-react/src/usage/hooks/invalidation.ts index d06f211131..937299cf0f 100644 --- a/sdk/constructive-react/src/usage/hooks/invalidation.ts +++ b/sdk/constructive-react/src/usage/hooks/invalidation.ts @@ -15,13 +15,6 @@ import type { QueryClient } from '@tanstack/react-query'; import { - appAchievementRewardKeys, - appEventAggregateKeys, - appEventKeys, - appEventTypeKeys, - appLevelKeys, - appLevelGrantKeys, - appLevelRequirementKeys, appLimitCapKeys, appLimitCapsDefaultKeys, appLimitKeys, @@ -32,12 +25,6 @@ import { appLimitDefaultKeys, appLimitEventKeys, appLimitWarningKeys, - billingUsageSummaryKeys, - ledgerKeys, - meterKeys, - meterCreditKeys, - meterDefaultKeys, - meterSourceKeys, orgLimitAggregateKeys, orgLimitCapKeys, orgLimitCapsDefaultKeys, @@ -46,13 +33,6 @@ import { orgLimitDefaultKeys, orgLimitEventKeys, orgLimitWarningKeys, - planCapKeys, - planKeys, - planLimitKeys, - planMeterLimitKeys, - planOverrideKeys, - planPricingKeys, - planSubscriptionKeys, } from './query-keys'; /** // ============================================================================ @@ -74,119 +54,6 @@ import { * ``` */ export const invalidate = { - /** Invalidate appAchievementReward queries */ appAchievementReward: { - /** Invalidate all appAchievementReward queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appAchievementRewardKeys.all, - }), - /** Invalidate appAchievementReward list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appAchievementRewardKeys.lists(), - }), - /** Invalidate a specific appAchievementReward */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: appAchievementRewardKeys.detail(id), - }), - }, - /** Invalidate appEventAggregate queries */ appEventAggregate: { - /** Invalidate all appEventAggregate queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appEventAggregateKeys.all, - }), - /** Invalidate appEventAggregate list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appEventAggregateKeys.lists(), - }), - /** Invalidate a specific appEventAggregate */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: appEventAggregateKeys.detail(id), - }), - }, - /** Invalidate appEvent queries */ appEvent: { - /** Invalidate all appEvent queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appEventKeys.all, - }), - /** Invalidate appEvent list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appEventKeys.lists(), - }), - /** Invalidate a specific appEvent */ detail: (queryClient: QueryClient, id: string | number) => - queryClient.invalidateQueries({ - queryKey: appEventKeys.detail(id), - }), - }, - /** Invalidate appEventType queries */ appEventType: { - /** Invalidate all appEventType queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appEventTypeKeys.all, - }), - /** Invalidate appEventType list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appEventTypeKeys.lists(), - }), - /** Invalidate a specific appEventType */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: appEventTypeKeys.detail(id), - }), - }, - /** Invalidate appLevel queries */ appLevel: { - /** Invalidate all appLevel queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appLevelKeys.all, - }), - /** Invalidate appLevel list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appLevelKeys.lists(), - }), - /** Invalidate a specific appLevel */ detail: (queryClient: QueryClient, id: string | number) => - queryClient.invalidateQueries({ - queryKey: appLevelKeys.detail(id), - }), - }, - /** Invalidate appLevelGrant queries */ appLevelGrant: { - /** Invalidate all appLevelGrant queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appLevelGrantKeys.all, - }), - /** Invalidate appLevelGrant list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appLevelGrantKeys.lists(), - }), - /** Invalidate a specific appLevelGrant */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: appLevelGrantKeys.detail(id), - }), - }, - /** Invalidate appLevelRequirement queries */ appLevelRequirement: { - /** Invalidate all appLevelRequirement queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appLevelRequirementKeys.all, - }), - /** Invalidate appLevelRequirement list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appLevelRequirementKeys.lists(), - }), - /** Invalidate a specific appLevelRequirement */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: appLevelRequirementKeys.detail(id), - }), - }, /** Invalidate appLimitCap queries */ appLimitCap: { /** Invalidate all appLimitCap queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -354,102 +221,6 @@ export const invalidate = { queryKey: appLimitWarningKeys.detail(id), }), }, - /** Invalidate billingUsageSummary queries */ billingUsageSummary: { - /** Invalidate all billingUsageSummary queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: billingUsageSummaryKeys.all, - }), - /** Invalidate billingUsageSummary list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: billingUsageSummaryKeys.lists(), - }), - /** Invalidate a specific billingUsageSummary */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: billingUsageSummaryKeys.detail(id), - }), - }, - /** Invalidate ledger queries */ ledger: { - /** Invalidate all ledger queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: ledgerKeys.all, - }), - /** Invalidate ledger list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: ledgerKeys.lists(), - }), - /** Invalidate a specific ledger */ detail: (queryClient: QueryClient, id: string | number) => - queryClient.invalidateQueries({ - queryKey: ledgerKeys.detail(id), - }), - }, - /** Invalidate meter queries */ meter: { - /** Invalidate all meter queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: meterKeys.all, - }), - /** Invalidate meter list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: meterKeys.lists(), - }), - /** Invalidate a specific meter */ detail: (queryClient: QueryClient, id: string | number) => - queryClient.invalidateQueries({ - queryKey: meterKeys.detail(id), - }), - }, - /** Invalidate meterCredit queries */ meterCredit: { - /** Invalidate all meterCredit queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: meterCreditKeys.all, - }), - /** Invalidate meterCredit list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: meterCreditKeys.lists(), - }), - /** Invalidate a specific meterCredit */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: meterCreditKeys.detail(id), - }), - }, - /** Invalidate meterDefault queries */ meterDefault: { - /** Invalidate all meterDefault queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: meterDefaultKeys.all, - }), - /** Invalidate meterDefault list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: meterDefaultKeys.lists(), - }), - /** Invalidate a specific meterDefault */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: meterDefaultKeys.detail(id), - }), - }, - /** Invalidate meterSource queries */ meterSource: { - /** Invalidate all meterSource queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: meterSourceKeys.all, - }), - /** Invalidate meterSource list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: meterSourceKeys.lists(), - }), - /** Invalidate a specific meterSource */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: meterSourceKeys.detail(id), - }), - }, /** Invalidate orgLimitAggregate queries */ orgLimitAggregate: { /** Invalidate all orgLimitAggregate queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -583,119 +354,6 @@ export const invalidate = { queryKey: orgLimitWarningKeys.detail(id), }), }, - /** Invalidate planCap queries */ planCap: { - /** Invalidate all planCap queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: planCapKeys.all, - }), - /** Invalidate planCap list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: planCapKeys.lists(), - }), - /** Invalidate a specific planCap */ detail: (queryClient: QueryClient, id: string | number) => - queryClient.invalidateQueries({ - queryKey: planCapKeys.detail(id), - }), - }, - /** Invalidate plan queries */ plan: { - /** Invalidate all plan queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: planKeys.all, - }), - /** Invalidate plan list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: planKeys.lists(), - }), - /** Invalidate a specific plan */ detail: (queryClient: QueryClient, id: string | number) => - queryClient.invalidateQueries({ - queryKey: planKeys.detail(id), - }), - }, - /** Invalidate planLimit queries */ planLimit: { - /** Invalidate all planLimit queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: planLimitKeys.all, - }), - /** Invalidate planLimit list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: planLimitKeys.lists(), - }), - /** Invalidate a specific planLimit */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: planLimitKeys.detail(id), - }), - }, - /** Invalidate planMeterLimit queries */ planMeterLimit: { - /** Invalidate all planMeterLimit queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: planMeterLimitKeys.all, - }), - /** Invalidate planMeterLimit list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: planMeterLimitKeys.lists(), - }), - /** Invalidate a specific planMeterLimit */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: planMeterLimitKeys.detail(id), - }), - }, - /** Invalidate planOverride queries */ planOverride: { - /** Invalidate all planOverride queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: planOverrideKeys.all, - }), - /** Invalidate planOverride list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: planOverrideKeys.lists(), - }), - /** Invalidate a specific planOverride */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: planOverrideKeys.detail(id), - }), - }, - /** Invalidate planPricing queries */ planPricing: { - /** Invalidate all planPricing queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: planPricingKeys.all, - }), - /** Invalidate planPricing list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: planPricingKeys.lists(), - }), - /** Invalidate a specific planPricing */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: planPricingKeys.detail(id), - }), - }, - /** Invalidate planSubscription queries */ planSubscription: { - /** Invalidate all planSubscription queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: planSubscriptionKeys.all, - }), - /** Invalidate planSubscription list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: planSubscriptionKeys.lists(), - }), - /** Invalidate a specific planSubscription */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: planSubscriptionKeys.detail(id), - }), - }, } as const; /** @@ -709,56 +367,6 @@ export const invalidate = { * instead of just invalidating (which would trigger a refetch). */ export const remove = { - /** Remove appAchievementReward from cache */ appAchievementReward: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: appAchievementRewardKeys.detail(id), - }); - }, - /** Remove appEventAggregate from cache */ appEventAggregate: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: appEventAggregateKeys.detail(id), - }); - }, - /** Remove appEvent from cache */ appEvent: (queryClient: QueryClient, id: string | number) => { - queryClient.removeQueries({ - queryKey: appEventKeys.detail(id), - }); - }, - /** Remove appEventType from cache */ appEventType: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: appEventTypeKeys.detail(id), - }); - }, - /** Remove appLevel from cache */ appLevel: (queryClient: QueryClient, id: string | number) => { - queryClient.removeQueries({ - queryKey: appLevelKeys.detail(id), - }); - }, - /** Remove appLevelGrant from cache */ appLevelGrant: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: appLevelGrantKeys.detail(id), - }); - }, - /** Remove appLevelRequirement from cache */ appLevelRequirement: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: appLevelRequirementKeys.detail(id), - }); - }, /** Remove appLimitCap from cache */ appLimitCap: ( queryClient: QueryClient, id: string | number @@ -836,48 +444,6 @@ export const remove = { queryKey: appLimitWarningKeys.detail(id), }); }, - /** Remove billingUsageSummary from cache */ billingUsageSummary: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: billingUsageSummaryKeys.detail(id), - }); - }, - /** Remove ledger from cache */ ledger: (queryClient: QueryClient, id: string | number) => { - queryClient.removeQueries({ - queryKey: ledgerKeys.detail(id), - }); - }, - /** Remove meter from cache */ meter: (queryClient: QueryClient, id: string | number) => { - queryClient.removeQueries({ - queryKey: meterKeys.detail(id), - }); - }, - /** Remove meterCredit from cache */ meterCredit: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: meterCreditKeys.detail(id), - }); - }, - /** Remove meterDefault from cache */ meterDefault: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: meterDefaultKeys.detail(id), - }); - }, - /** Remove meterSource from cache */ meterSource: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: meterSourceKeys.detail(id), - }); - }, /** Remove orgLimitAggregate from cache */ orgLimitAggregate: ( queryClient: QueryClient, id: string | number @@ -939,51 +505,4 @@ export const remove = { queryKey: orgLimitWarningKeys.detail(id), }); }, - /** Remove planCap from cache */ planCap: (queryClient: QueryClient, id: string | number) => { - queryClient.removeQueries({ - queryKey: planCapKeys.detail(id), - }); - }, - /** Remove plan from cache */ plan: (queryClient: QueryClient, id: string | number) => { - queryClient.removeQueries({ - queryKey: planKeys.detail(id), - }); - }, - /** Remove planLimit from cache */ planLimit: (queryClient: QueryClient, id: string | number) => { - queryClient.removeQueries({ - queryKey: planLimitKeys.detail(id), - }); - }, - /** Remove planMeterLimit from cache */ planMeterLimit: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: planMeterLimitKeys.detail(id), - }); - }, - /** Remove planOverride from cache */ planOverride: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: planOverrideKeys.detail(id), - }); - }, - /** Remove planPricing from cache */ planPricing: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: planPricingKeys.detail(id), - }); - }, - /** Remove planSubscription from cache */ planSubscription: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: planSubscriptionKeys.detail(id), - }); - }, } as const; diff --git a/sdk/constructive-react/src/usage/hooks/mutation-keys.ts b/sdk/constructive-react/src/usage/hooks/mutation-keys.ts index 9ded561c8e..0e0bf6621b 100644 --- a/sdk/constructive-react/src/usage/hooks/mutation-keys.ts +++ b/sdk/constructive-react/src/usage/hooks/mutation-keys.ts @@ -18,67 +18,6 @@ // Entity Mutation Keys // ============================================================================ -export const appAchievementRewardMutationKeys = { - /** All appAchievementReward mutation keys */ all: ['mutation', 'appachievementreward'] as const, - /** Create appAchievementReward mutation key */ create: () => - ['mutation', 'appachievementreward', 'create'] as const, - /** Update appAchievementReward mutation key */ update: (id: string | number) => - ['mutation', 'appachievementreward', 'update', id] as const, - /** Delete appAchievementReward mutation key */ delete: (id: string | number) => - ['mutation', 'appachievementreward', 'delete', id] as const, -} as const; -export const appEventAggregateMutationKeys = { - /** All appEventAggregate mutation keys */ all: ['mutation', 'appeventaggregate'] as const, - /** Create appEventAggregate mutation key */ create: () => - ['mutation', 'appeventaggregate', 'create'] as const, - /** Update appEventAggregate mutation key */ update: (id: string | number) => - ['mutation', 'appeventaggregate', 'update', id] as const, - /** Delete appEventAggregate mutation key */ delete: (id: string | number) => - ['mutation', 'appeventaggregate', 'delete', id] as const, -} as const; -export const appEventMutationKeys = { - /** All appEvent mutation keys */ all: ['mutation', 'appevent'] as const, - /** Create appEvent mutation key */ create: () => ['mutation', 'appevent', 'create'] as const, - /** Update appEvent mutation key */ update: (id: string | number) => - ['mutation', 'appevent', 'update', id] as const, - /** Delete appEvent mutation key */ delete: (id: string | number) => - ['mutation', 'appevent', 'delete', id] as const, -} as const; -export const appEventTypeMutationKeys = { - /** All appEventType mutation keys */ all: ['mutation', 'appeventtype'] as const, - /** Create appEventType mutation key */ create: () => - ['mutation', 'appeventtype', 'create'] as const, - /** Update appEventType mutation key */ update: (id: string | number) => - ['mutation', 'appeventtype', 'update', id] as const, - /** Delete appEventType mutation key */ delete: (id: string | number) => - ['mutation', 'appeventtype', 'delete', id] as const, -} as const; -export const appLevelMutationKeys = { - /** All appLevel mutation keys */ all: ['mutation', 'applevel'] as const, - /** Create appLevel mutation key */ create: () => ['mutation', 'applevel', 'create'] as const, - /** Update appLevel mutation key */ update: (id: string | number) => - ['mutation', 'applevel', 'update', id] as const, - /** Delete appLevel mutation key */ delete: (id: string | number) => - ['mutation', 'applevel', 'delete', id] as const, -} as const; -export const appLevelGrantMutationKeys = { - /** All appLevelGrant mutation keys */ all: ['mutation', 'applevelgrant'] as const, - /** Create appLevelGrant mutation key */ create: () => - ['mutation', 'applevelgrant', 'create'] as const, - /** Update appLevelGrant mutation key */ update: (id: string | number) => - ['mutation', 'applevelgrant', 'update', id] as const, - /** Delete appLevelGrant mutation key */ delete: (id: string | number) => - ['mutation', 'applevelgrant', 'delete', id] as const, -} as const; -export const appLevelRequirementMutationKeys = { - /** All appLevelRequirement mutation keys */ all: ['mutation', 'applevelrequirement'] as const, - /** Create appLevelRequirement mutation key */ create: () => - ['mutation', 'applevelrequirement', 'create'] as const, - /** Update appLevelRequirement mutation key */ update: (id: string | number) => - ['mutation', 'applevelrequirement', 'update', id] as const, - /** Delete appLevelRequirement mutation key */ delete: (id: string | number) => - ['mutation', 'applevelrequirement', 'delete', id] as const, -} as const; export const appLimitCapMutationKeys = { /** All appLimitCap mutation keys */ all: ['mutation', 'applimitcap'] as const, /** Create appLimitCap mutation key */ create: () => @@ -174,58 +113,6 @@ export const appLimitWarningMutationKeys = { /** Delete appLimitWarning mutation key */ delete: (id: string | number) => ['mutation', 'applimitwarning', 'delete', id] as const, } as const; -export const billingUsageSummaryMutationKeys = { - /** All billingUsageSummary mutation keys */ all: ['mutation', 'billingusagesummary'] as const, - /** Create billingUsageSummary mutation key */ create: () => - ['mutation', 'billingusagesummary', 'create'] as const, - /** Update billingUsageSummary mutation key */ update: (id: string | number) => - ['mutation', 'billingusagesummary', 'update', id] as const, - /** Delete billingUsageSummary mutation key */ delete: (id: string | number) => - ['mutation', 'billingusagesummary', 'delete', id] as const, -} as const; -export const ledgerMutationKeys = { - /** All ledger mutation keys */ all: ['mutation', 'ledger'] as const, - /** Create ledger mutation key */ create: () => ['mutation', 'ledger', 'create'] as const, - /** Update ledger mutation key */ update: (id: string | number) => - ['mutation', 'ledger', 'update', id] as const, - /** Delete ledger mutation key */ delete: (id: string | number) => - ['mutation', 'ledger', 'delete', id] as const, -} as const; -export const meterMutationKeys = { - /** All meter mutation keys */ all: ['mutation', 'meter'] as const, - /** Create meter mutation key */ create: () => ['mutation', 'meter', 'create'] as const, - /** Update meter mutation key */ update: (id: string | number) => - ['mutation', 'meter', 'update', id] as const, - /** Delete meter mutation key */ delete: (id: string | number) => - ['mutation', 'meter', 'delete', id] as const, -} as const; -export const meterCreditMutationKeys = { - /** All meterCredit mutation keys */ all: ['mutation', 'metercredit'] as const, - /** Create meterCredit mutation key */ create: () => - ['mutation', 'metercredit', 'create'] as const, - /** Update meterCredit mutation key */ update: (id: string | number) => - ['mutation', 'metercredit', 'update', id] as const, - /** Delete meterCredit mutation key */ delete: (id: string | number) => - ['mutation', 'metercredit', 'delete', id] as const, -} as const; -export const meterDefaultMutationKeys = { - /** All meterDefault mutation keys */ all: ['mutation', 'meterdefault'] as const, - /** Create meterDefault mutation key */ create: () => - ['mutation', 'meterdefault', 'create'] as const, - /** Update meterDefault mutation key */ update: (id: string | number) => - ['mutation', 'meterdefault', 'update', id] as const, - /** Delete meterDefault mutation key */ delete: (id: string | number) => - ['mutation', 'meterdefault', 'delete', id] as const, -} as const; -export const meterSourceMutationKeys = { - /** All meterSource mutation keys */ all: ['mutation', 'metersource'] as const, - /** Create meterSource mutation key */ create: () => - ['mutation', 'metersource', 'create'] as const, - /** Update meterSource mutation key */ update: (id: string | number) => - ['mutation', 'metersource', 'update', id] as const, - /** Delete meterSource mutation key */ delete: (id: string | number) => - ['mutation', 'metersource', 'delete', id] as const, -} as const; export const orgLimitAggregateMutationKeys = { /** All orgLimitAggregate mutation keys */ all: ['mutation', 'orglimitaggregate'] as const, /** Create orgLimitAggregate mutation key */ create: () => @@ -297,88 +184,16 @@ export const orgLimitWarningMutationKeys = { /** Delete orgLimitWarning mutation key */ delete: (id: string | number) => ['mutation', 'orglimitwarning', 'delete', id] as const, } as const; -export const planCapMutationKeys = { - /** All planCap mutation keys */ all: ['mutation', 'plancap'] as const, - /** Create planCap mutation key */ create: () => ['mutation', 'plancap', 'create'] as const, - /** Update planCap mutation key */ update: (id: string | number) => - ['mutation', 'plancap', 'update', id] as const, - /** Delete planCap mutation key */ delete: (id: string | number) => - ['mutation', 'plancap', 'delete', id] as const, -} as const; -export const planMutationKeys = { - /** All plan mutation keys */ all: ['mutation', 'plan'] as const, - /** Create plan mutation key */ create: () => ['mutation', 'plan', 'create'] as const, - /** Update plan mutation key */ update: (id: string | number) => - ['mutation', 'plan', 'update', id] as const, - /** Delete plan mutation key */ delete: (id: string | number) => - ['mutation', 'plan', 'delete', id] as const, -} as const; -export const planLimitMutationKeys = { - /** All planLimit mutation keys */ all: ['mutation', 'planlimit'] as const, - /** Create planLimit mutation key */ create: () => ['mutation', 'planlimit', 'create'] as const, - /** Update planLimit mutation key */ update: (id: string | number) => - ['mutation', 'planlimit', 'update', id] as const, - /** Delete planLimit mutation key */ delete: (id: string | number) => - ['mutation', 'planlimit', 'delete', id] as const, -} as const; -export const planMeterLimitMutationKeys = { - /** All planMeterLimit mutation keys */ all: ['mutation', 'planmeterlimit'] as const, - /** Create planMeterLimit mutation key */ create: () => - ['mutation', 'planmeterlimit', 'create'] as const, - /** Update planMeterLimit mutation key */ update: (id: string | number) => - ['mutation', 'planmeterlimit', 'update', id] as const, - /** Delete planMeterLimit mutation key */ delete: (id: string | number) => - ['mutation', 'planmeterlimit', 'delete', id] as const, -} as const; -export const planOverrideMutationKeys = { - /** All planOverride mutation keys */ all: ['mutation', 'planoverride'] as const, - /** Create planOverride mutation key */ create: () => - ['mutation', 'planoverride', 'create'] as const, - /** Update planOverride mutation key */ update: (id: string | number) => - ['mutation', 'planoverride', 'update', id] as const, - /** Delete planOverride mutation key */ delete: (id: string | number) => - ['mutation', 'planoverride', 'delete', id] as const, -} as const; -export const planPricingMutationKeys = { - /** All planPricing mutation keys */ all: ['mutation', 'planpricing'] as const, - /** Create planPricing mutation key */ create: () => - ['mutation', 'planpricing', 'create'] as const, - /** Update planPricing mutation key */ update: (id: string | number) => - ['mutation', 'planpricing', 'update', id] as const, - /** Delete planPricing mutation key */ delete: (id: string | number) => - ['mutation', 'planpricing', 'delete', id] as const, -} as const; -export const planSubscriptionMutationKeys = { - /** All planSubscription mutation keys */ all: ['mutation', 'plansubscription'] as const, - /** Create planSubscription mutation key */ create: () => - ['mutation', 'plansubscription', 'create'] as const, - /** Update planSubscription mutation key */ update: (id: string | number) => - ['mutation', 'plansubscription', 'update', id] as const, - /** Delete planSubscription mutation key */ delete: (id: string | number) => - ['mutation', 'plansubscription', 'delete', id] as const, -} as const; // ============================================================================ // Custom Mutation Keys // ============================================================================ export const customMutationKeys = { - /** Mutation key for grantAchievement */ grantAchievement: (identifier?: string) => - identifier - ? (['mutation', 'grantAchievement', identifier] as const) - : (['mutation', 'grantAchievement'] as const), /** Mutation key for provisionBucket */ provisionBucket: (identifier?: string) => identifier ? (['mutation', 'provisionBucket', identifier] as const) : (['mutation', 'provisionBucket'] as const), - /** Mutation key for recomputeCapabilities */ recomputeCapabilities: (identifier?: string) => - identifier - ? (['mutation', 'recomputeCapabilities', identifier] as const) - : (['mutation', 'recomputeCapabilities'] as const), - /** Mutation key for revokeAchievement */ revokeAchievement: (identifier?: string) => - identifier - ? (['mutation', 'revokeAchievement', identifier] as const) - : (['mutation', 'revokeAchievement'] as const), /** Mutation key for seedAppLimitCapsDefaults */ seedAppLimitCapsDefaults: ( identifier?: string ) => @@ -389,10 +204,6 @@ export const customMutationKeys = { identifier ? (['mutation', 'seedAppLimitDefaults', identifier] as const) : (['mutation', 'seedAppLimitDefaults'] as const), - /** Mutation key for seedMeterDefaults */ seedMeterDefaults: (identifier?: string) => - identifier - ? (['mutation', 'seedMeterDefaults', identifier] as const) - : (['mutation', 'seedMeterDefaults'] as const), /** Mutation key for seedOrgLimitCapsDefaults */ seedOrgLimitCapsDefaults: ( identifier?: string ) => @@ -403,14 +214,6 @@ export const customMutationKeys = { identifier ? (['mutation', 'seedOrgLimitDefaults', identifier] as const) : (['mutation', 'seedOrgLimitDefaults'] as const), - /** Mutation key for seedPlan */ seedPlan: (identifier?: string) => - identifier - ? (['mutation', 'seedPlan', identifier] as const) - : (['mutation', 'seedPlan'] as const), - /** Mutation key for seedTrustLadder */ seedTrustLadder: (identifier?: string) => - identifier - ? (['mutation', 'seedTrustLadder', identifier] as const) - : (['mutation', 'seedTrustLadder'] as const), } as const; /** @@ -435,13 +238,6 @@ export const customMutationKeys = { * ``` */ export const mutationKeys = { - appAchievementReward: appAchievementRewardMutationKeys, - appEventAggregate: appEventAggregateMutationKeys, - appEvent: appEventMutationKeys, - appEventType: appEventTypeMutationKeys, - appLevel: appLevelMutationKeys, - appLevelGrant: appLevelGrantMutationKeys, - appLevelRequirement: appLevelRequirementMutationKeys, appLimitCap: appLimitCapMutationKeys, appLimitCapsDefault: appLimitCapsDefaultMutationKeys, appLimit: appLimitMutationKeys, @@ -452,12 +248,6 @@ export const mutationKeys = { appLimitDefault: appLimitDefaultMutationKeys, appLimitEvent: appLimitEventMutationKeys, appLimitWarning: appLimitWarningMutationKeys, - billingUsageSummary: billingUsageSummaryMutationKeys, - ledger: ledgerMutationKeys, - meter: meterMutationKeys, - meterCredit: meterCreditMutationKeys, - meterDefault: meterDefaultMutationKeys, - meterSource: meterSourceMutationKeys, orgLimitAggregate: orgLimitAggregateMutationKeys, orgLimitCap: orgLimitCapMutationKeys, orgLimitCapsDefault: orgLimitCapsDefaultMutationKeys, @@ -466,12 +256,5 @@ export const mutationKeys = { orgLimitDefault: orgLimitDefaultMutationKeys, orgLimitEvent: orgLimitEventMutationKeys, orgLimitWarning: orgLimitWarningMutationKeys, - planCap: planCapMutationKeys, - plan: planMutationKeys, - planLimit: planLimitMutationKeys, - planMeterLimit: planMeterLimitMutationKeys, - planOverride: planOverrideMutationKeys, - planPricing: planPricingMutationKeys, - planSubscription: planSubscriptionMutationKeys, custom: customMutationKeys, } as const; diff --git a/sdk/constructive-react/src/usage/hooks/mutations/index.ts b/sdk/constructive-react/src/usage/hooks/mutations/index.ts index 2bb6147407..4c5fa142b4 100644 --- a/sdk/constructive-react/src/usage/hooks/mutations/index.ts +++ b/sdk/constructive-react/src/usage/hooks/mutations/index.ts @@ -3,27 +3,6 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ -export * from './useCreateAppAchievementRewardMutation'; -export * from './useUpdateAppAchievementRewardMutation'; -export * from './useDeleteAppAchievementRewardMutation'; -export * from './useCreateAppEventAggregateMutation'; -export * from './useUpdateAppEventAggregateMutation'; -export * from './useDeleteAppEventAggregateMutation'; -export * from './useCreateAppEventMutation'; -export * from './useUpdateAppEventMutation'; -export * from './useDeleteAppEventMutation'; -export * from './useCreateAppEventTypeMutation'; -export * from './useUpdateAppEventTypeMutation'; -export * from './useDeleteAppEventTypeMutation'; -export * from './useCreateAppLevelMutation'; -export * from './useUpdateAppLevelMutation'; -export * from './useDeleteAppLevelMutation'; -export * from './useCreateAppLevelGrantMutation'; -export * from './useUpdateAppLevelGrantMutation'; -export * from './useDeleteAppLevelGrantMutation'; -export * from './useCreateAppLevelRequirementMutation'; -export * from './useUpdateAppLevelRequirementMutation'; -export * from './useDeleteAppLevelRequirementMutation'; export * from './useCreateAppLimitCapMutation'; export * from './useUpdateAppLimitCapMutation'; export * from './useDeleteAppLimitCapMutation'; @@ -54,24 +33,6 @@ export * from './useDeleteAppLimitEventMutation'; export * from './useCreateAppLimitWarningMutation'; export * from './useUpdateAppLimitWarningMutation'; export * from './useDeleteAppLimitWarningMutation'; -export * from './useCreateBillingUsageSummaryMutation'; -export * from './useUpdateBillingUsageSummaryMutation'; -export * from './useDeleteBillingUsageSummaryMutation'; -export * from './useCreateLedgerMutation'; -export * from './useUpdateLedgerMutation'; -export * from './useDeleteLedgerMutation'; -export * from './useCreateMeterMutation'; -export * from './useUpdateMeterMutation'; -export * from './useDeleteMeterMutation'; -export * from './useCreateMeterCreditMutation'; -export * from './useUpdateMeterCreditMutation'; -export * from './useDeleteMeterCreditMutation'; -export * from './useCreateMeterDefaultMutation'; -export * from './useUpdateMeterDefaultMutation'; -export * from './useDeleteMeterDefaultMutation'; -export * from './useCreateMeterSourceMutation'; -export * from './useUpdateMeterSourceMutation'; -export * from './useDeleteMeterSourceMutation'; export * from './useCreateOrgLimitAggregateMutation'; export * from './useUpdateOrgLimitAggregateMutation'; export * from './useDeleteOrgLimitAggregateMutation'; @@ -96,35 +57,8 @@ export * from './useDeleteOrgLimitEventMutation'; export * from './useCreateOrgLimitWarningMutation'; export * from './useUpdateOrgLimitWarningMutation'; export * from './useDeleteOrgLimitWarningMutation'; -export * from './useCreatePlanCapMutation'; -export * from './useUpdatePlanCapMutation'; -export * from './useDeletePlanCapMutation'; -export * from './useCreatePlanMutation'; -export * from './useUpdatePlanMutation'; -export * from './useDeletePlanMutation'; -export * from './useCreatePlanLimitMutation'; -export * from './useUpdatePlanLimitMutation'; -export * from './useDeletePlanLimitMutation'; -export * from './useCreatePlanMeterLimitMutation'; -export * from './useUpdatePlanMeterLimitMutation'; -export * from './useDeletePlanMeterLimitMutation'; -export * from './useCreatePlanOverrideMutation'; -export * from './useUpdatePlanOverrideMutation'; -export * from './useDeletePlanOverrideMutation'; -export * from './useCreatePlanPricingMutation'; -export * from './useUpdatePlanPricingMutation'; -export * from './useDeletePlanPricingMutation'; -export * from './useCreatePlanSubscriptionMutation'; -export * from './useUpdatePlanSubscriptionMutation'; -export * from './useDeletePlanSubscriptionMutation'; -export * from './useGrantAchievementMutation'; export * from './useProvisionBucketMutation'; -export * from './useRecomputeCapabilitiesMutation'; -export * from './useRevokeAchievementMutation'; export * from './useSeedAppLimitCapsDefaultsMutation'; export * from './useSeedAppLimitDefaultsMutation'; -export * from './useSeedMeterDefaultsMutation'; export * from './useSeedOrgLimitCapsDefaultsMutation'; export * from './useSeedOrgLimitDefaultsMutation'; -export * from './useSeedPlanMutation'; -export * from './useSeedTrustLadderMutation'; diff --git a/sdk/constructive-react/src/usage/hooks/mutations/useCreateAppAchievementRewardMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useCreateAppAchievementRewardMutation.ts deleted file mode 100644 index b435023152..0000000000 --- a/sdk/constructive-react/src/usage/hooks/mutations/useCreateAppAchievementRewardMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Defines rewards granted when a level is achieved; supports limit_credits and meter_credits - * @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 { appAchievementRewardKeys } from '../query-keys'; -import { appAchievementRewardMutationKeys } from '../mutation-keys'; -import type { - AppAchievementRewardSelect, - AppAchievementRewardWithRelations, - CreateAppAchievementRewardInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppAchievementRewardSelect, - AppAchievementRewardWithRelations, - CreateAppAchievementRewardInput, -} from '../../orm/input-types'; -/** - * Defines rewards granted when a level is achieved; supports limit_credits and meter_credits - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateAppAchievementRewardMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateAppAchievementRewardMutation( - params: { - selection: { - fields: S & AppAchievementRewardSelect; - } & HookStrictSelect, AppAchievementRewardSelect>; - } & Omit< - UseMutationOptions< - { - createAppAchievementReward: { - appAchievementReward: InferSelectResult; - }; - }, - Error, - CreateAppAchievementRewardInput['appAchievementReward'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createAppAchievementReward: { - appAchievementReward: InferSelectResult; - }; - }, - Error, - CreateAppAchievementRewardInput['appAchievementReward'] ->; -export function useCreateAppAchievementRewardMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: appAchievementRewardMutationKeys.create(), - mutationFn: (data: CreateAppAchievementRewardInput['appAchievementReward']) => - getClient() - .appAchievementReward.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: appAchievementRewardKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/mutations/useCreateAppEventAggregateMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useCreateAppEventAggregateMutation.ts deleted file mode 100644 index 910536d4e3..0000000000 --- a/sdk/constructive-react/src/usage/hooks/mutations/useCreateAppEventAggregateMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually - * @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 { appEventAggregateKeys } from '../query-keys'; -import { appEventAggregateMutationKeys } from '../mutation-keys'; -import type { - AppEventAggregateSelect, - AppEventAggregateWithRelations, - CreateAppEventAggregateInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppEventAggregateSelect, - AppEventAggregateWithRelations, - CreateAppEventAggregateInput, -} from '../../orm/input-types'; -/** - * Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateAppEventAggregateMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateAppEventAggregateMutation( - params: { - selection: { - fields: S & AppEventAggregateSelect; - } & HookStrictSelect, AppEventAggregateSelect>; - } & Omit< - UseMutationOptions< - { - createAppEventAggregate: { - appEventAggregate: InferSelectResult; - }; - }, - Error, - CreateAppEventAggregateInput['appEventAggregate'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createAppEventAggregate: { - appEventAggregate: InferSelectResult; - }; - }, - Error, - CreateAppEventAggregateInput['appEventAggregate'] ->; -export function useCreateAppEventAggregateMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: appEventAggregateMutationKeys.create(), - mutationFn: (data: CreateAppEventAggregateInput['appEventAggregate']) => - getClient() - .appEventAggregate.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: appEventAggregateKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/mutations/useCreateAppEventMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useCreateAppEventMutation.ts deleted file mode 100644 index c6b7110e26..0000000000 --- a/sdk/constructive-react/src/usage/hooks/mutations/useCreateAppEventMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * Partitioned append-only log of individual user actions; every single event ever recorded - * @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 { appEventKeys } from '../query-keys'; -import { appEventMutationKeys } from '../mutation-keys'; -import type { - AppEventSelect, - AppEventWithRelations, - CreateAppEventInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppEventSelect, - AppEventWithRelations, - CreateAppEventInput, -} from '../../orm/input-types'; -/** - * Partitioned append-only log of individual user actions; every single event ever recorded - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateAppEventMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateAppEventMutation( - params: { - selection: { - fields: S & AppEventSelect; - } & HookStrictSelect, AppEventSelect>; - } & Omit< - UseMutationOptions< - { - createAppEvent: { - appEvent: InferSelectResult; - }; - }, - Error, - CreateAppEventInput['appEvent'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createAppEvent: { - appEvent: InferSelectResult; - }; - }, - Error, - CreateAppEventInput['appEvent'] ->; -export function useCreateAppEventMutation( - params: { - selection: SelectionConfig; - } & Omit, 'mutationFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: appEventMutationKeys.create(), - mutationFn: (data: CreateAppEventInput['appEvent']) => - getClient() - .appEvent.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: appEventKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/mutations/useCreateAppEventTypeMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useCreateAppEventTypeMutation.ts deleted file mode 100644 index 7255df66d1..0000000000 --- a/sdk/constructive-react/src/usage/hooks/mutations/useCreateAppEventTypeMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * Catalog of known event types with per-type configuration for aggregation, retention, and level participation - * @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 { appEventTypeKeys } from '../query-keys'; -import { appEventTypeMutationKeys } from '../mutation-keys'; -import type { - AppEventTypeSelect, - AppEventTypeWithRelations, - CreateAppEventTypeInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppEventTypeSelect, - AppEventTypeWithRelations, - CreateAppEventTypeInput, -} from '../../orm/input-types'; -/** - * Catalog of known event types with per-type configuration for aggregation, retention, and level participation - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateAppEventTypeMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateAppEventTypeMutation( - params: { - selection: { - fields: S & AppEventTypeSelect; - } & HookStrictSelect, AppEventTypeSelect>; - } & Omit< - UseMutationOptions< - { - createAppEventType: { - appEventType: InferSelectResult; - }; - }, - Error, - CreateAppEventTypeInput['appEventType'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createAppEventType: { - appEventType: InferSelectResult; - }; - }, - Error, - CreateAppEventTypeInput['appEventType'] ->; -export function useCreateAppEventTypeMutation( - params: { - selection: SelectionConfig; - } & Omit, 'mutationFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: appEventTypeMutationKeys.create(), - mutationFn: (data: CreateAppEventTypeInput['appEventType']) => - getClient() - .appEventType.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: appEventTypeKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/mutations/useCreateAppLevelGrantMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useCreateAppLevelGrantMutation.ts deleted file mode 100644 index 2cff5e857e..0000000000 --- a/sdk/constructive-react/src/usage/hooks/mutations/useCreateAppLevelGrantMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * Records when a user achieves a level; prevents duplicate reward grants - * @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 { appLevelGrantKeys } from '../query-keys'; -import { appLevelGrantMutationKeys } from '../mutation-keys'; -import type { - AppLevelGrantSelect, - AppLevelGrantWithRelations, - CreateAppLevelGrantInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppLevelGrantSelect, - AppLevelGrantWithRelations, - CreateAppLevelGrantInput, -} from '../../orm/input-types'; -/** - * Records when a user achieves a level; prevents duplicate reward grants - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateAppLevelGrantMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateAppLevelGrantMutation( - params: { - selection: { - fields: S & AppLevelGrantSelect; - } & HookStrictSelect, AppLevelGrantSelect>; - } & Omit< - UseMutationOptions< - { - createAppLevelGrant: { - appLevelGrant: InferSelectResult; - }; - }, - Error, - CreateAppLevelGrantInput['appLevelGrant'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createAppLevelGrant: { - appLevelGrant: InferSelectResult; - }; - }, - Error, - CreateAppLevelGrantInput['appLevelGrant'] ->; -export function useCreateAppLevelGrantMutation( - params: { - selection: SelectionConfig; - } & Omit, 'mutationFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: appLevelGrantMutationKeys.create(), - mutationFn: (data: CreateAppLevelGrantInput['appLevelGrant']) => - getClient() - .appLevelGrant.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: appLevelGrantKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/mutations/useCreateAppLevelMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useCreateAppLevelMutation.ts deleted file mode 100644 index fe81072d0d..0000000000 --- a/sdk/constructive-react/src/usage/hooks/mutations/useCreateAppLevelMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * Defines available levels that users can achieve by completing requirements - * @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 { appLevelKeys } from '../query-keys'; -import { appLevelMutationKeys } from '../mutation-keys'; -import type { - AppLevelSelect, - AppLevelWithRelations, - CreateAppLevelInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppLevelSelect, - AppLevelWithRelations, - CreateAppLevelInput, -} from '../../orm/input-types'; -/** - * Defines available levels that users can achieve by completing requirements - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateAppLevelMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateAppLevelMutation( - params: { - selection: { - fields: S & AppLevelSelect; - } & HookStrictSelect, AppLevelSelect>; - } & Omit< - UseMutationOptions< - { - createAppLevel: { - appLevel: InferSelectResult; - }; - }, - Error, - CreateAppLevelInput['appLevel'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createAppLevel: { - appLevel: InferSelectResult; - }; - }, - Error, - CreateAppLevelInput['appLevel'] ->; -export function useCreateAppLevelMutation( - params: { - selection: SelectionConfig; - } & Omit, 'mutationFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: appLevelMutationKeys.create(), - mutationFn: (data: CreateAppLevelInput['appLevel']) => - getClient() - .appLevel.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: appLevelKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/mutations/useCreateAppLevelRequirementMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useCreateAppLevelRequirementMutation.ts deleted file mode 100644 index 792b9fc9fc..0000000000 --- a/sdk/constructive-react/src/usage/hooks/mutations/useCreateAppLevelRequirementMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Defines the specific requirements that must be met to achieve a level - * @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 { appLevelRequirementKeys } from '../query-keys'; -import { appLevelRequirementMutationKeys } from '../mutation-keys'; -import type { - AppLevelRequirementSelect, - AppLevelRequirementWithRelations, - CreateAppLevelRequirementInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppLevelRequirementSelect, - AppLevelRequirementWithRelations, - CreateAppLevelRequirementInput, -} from '../../orm/input-types'; -/** - * Defines the specific requirements that must be met to achieve a level - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateAppLevelRequirementMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateAppLevelRequirementMutation( - params: { - selection: { - fields: S & AppLevelRequirementSelect; - } & HookStrictSelect, AppLevelRequirementSelect>; - } & Omit< - UseMutationOptions< - { - createAppLevelRequirement: { - appLevelRequirement: InferSelectResult; - }; - }, - Error, - CreateAppLevelRequirementInput['appLevelRequirement'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createAppLevelRequirement: { - appLevelRequirement: InferSelectResult; - }; - }, - Error, - CreateAppLevelRequirementInput['appLevelRequirement'] ->; -export function useCreateAppLevelRequirementMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: appLevelRequirementMutationKeys.create(), - mutationFn: (data: CreateAppLevelRequirementInput['appLevelRequirement']) => - getClient() - .appLevelRequirement.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: appLevelRequirementKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/mutations/useCreateBillingUsageSummaryMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useCreateBillingUsageSummaryMutation.ts deleted file mode 100644 index b42e67c792..0000000000 --- a/sdk/constructive-react/src/usage/hooks/mutations/useCreateBillingUsageSummaryMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Permanent monthly usage summary per entity per meter (user-facing billing dashboard) - * @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 { billingUsageSummaryKeys } from '../query-keys'; -import { billingUsageSummaryMutationKeys } from '../mutation-keys'; -import type { - BillingUsageSummarySelect, - BillingUsageSummaryWithRelations, - CreateBillingUsageSummaryInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - BillingUsageSummarySelect, - BillingUsageSummaryWithRelations, - CreateBillingUsageSummaryInput, -} from '../../orm/input-types'; -/** - * Permanent monthly usage summary per entity per meter (user-facing billing dashboard) - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateBillingUsageSummaryMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateBillingUsageSummaryMutation( - params: { - selection: { - fields: S & BillingUsageSummarySelect; - } & HookStrictSelect, BillingUsageSummarySelect>; - } & Omit< - UseMutationOptions< - { - createBillingUsageSummary: { - billingUsageSummary: InferSelectResult; - }; - }, - Error, - CreateBillingUsageSummaryInput['billingUsageSummary'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createBillingUsageSummary: { - billingUsageSummary: InferSelectResult; - }; - }, - Error, - CreateBillingUsageSummaryInput['billingUsageSummary'] ->; -export function useCreateBillingUsageSummaryMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: billingUsageSummaryMutationKeys.create(), - mutationFn: (data: CreateBillingUsageSummaryInput['billingUsageSummary']) => - getClient() - .billingUsageSummary.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: billingUsageSummaryKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/mutations/useCreateLedgerMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useCreateLedgerMutation.ts deleted file mode 100644 index 95ef87a216..0000000000 --- a/sdk/constructive-react/src/usage/hooks/mutations/useCreateLedgerMutation.ts +++ /dev/null @@ -1,80 +0,0 @@ -/** - * Append-only event log for all billing events (usage, grants, adjustments) - * @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 { ledgerKeys } from '../query-keys'; -import { ledgerMutationKeys } from '../mutation-keys'; -import type { LedgerSelect, LedgerWithRelations, CreateLedgerInput } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { LedgerSelect, LedgerWithRelations, CreateLedgerInput } from '../../orm/input-types'; -/** - * Append-only event log for all billing events (usage, grants, adjustments) - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateLedgerMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateLedgerMutation( - params: { - selection: { - fields: S & LedgerSelect; - } & HookStrictSelect, LedgerSelect>; - } & Omit< - UseMutationOptions< - { - createLedger: { - ledger: InferSelectResult; - }; - }, - Error, - CreateLedgerInput['ledger'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createLedger: { - ledger: InferSelectResult; - }; - }, - Error, - CreateLedgerInput['ledger'] ->; -export function useCreateLedgerMutation( - params: { - selection: SelectionConfig; - } & Omit, 'mutationFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: ledgerMutationKeys.create(), - mutationFn: (data: CreateLedgerInput['ledger']) => - getClient() - .ledger.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: ledgerKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/mutations/useCreateMeterCreditMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useCreateMeterCreditMutation.ts deleted file mode 100644 index 7de3f1bbb3..0000000000 --- a/sdk/constructive-react/src/usage/hooks/mutations/useCreateMeterCreditMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * Append-only ledger of credit grants for billing meters that automatically update balances - * @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 { meterCreditKeys } from '../query-keys'; -import { meterCreditMutationKeys } from '../mutation-keys'; -import type { - MeterCreditSelect, - MeterCreditWithRelations, - CreateMeterCreditInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - MeterCreditSelect, - MeterCreditWithRelations, - CreateMeterCreditInput, -} from '../../orm/input-types'; -/** - * Append-only ledger of credit grants for billing meters that automatically update balances - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateMeterCreditMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateMeterCreditMutation( - params: { - selection: { - fields: S & MeterCreditSelect; - } & HookStrictSelect, MeterCreditSelect>; - } & Omit< - UseMutationOptions< - { - createMeterCredit: { - meterCredit: InferSelectResult; - }; - }, - Error, - CreateMeterCreditInput['meterCredit'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createMeterCredit: { - meterCredit: InferSelectResult; - }; - }, - Error, - CreateMeterCreditInput['meterCredit'] ->; -export function useCreateMeterCreditMutation( - params: { - selection: SelectionConfig; - } & Omit, 'mutationFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: meterCreditMutationKeys.create(), - mutationFn: (data: CreateMeterCreditInput['meterCredit']) => - getClient() - .meterCredit.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: meterCreditKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/mutations/useCreateMeterDefaultMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useCreateMeterDefaultMutation.ts deleted file mode 100644 index f2706dec22..0000000000 --- a/sdk/constructive-react/src/usage/hooks/mutations/useCreateMeterDefaultMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * Default meter catalog: defines which meters are available and their default plan_limit values for new entities - * @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 { meterDefaultKeys } from '../query-keys'; -import { meterDefaultMutationKeys } from '../mutation-keys'; -import type { - MeterDefaultSelect, - MeterDefaultWithRelations, - CreateMeterDefaultInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - MeterDefaultSelect, - MeterDefaultWithRelations, - CreateMeterDefaultInput, -} from '../../orm/input-types'; -/** - * Default meter catalog: defines which meters are available and their default plan_limit values for new entities - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateMeterDefaultMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateMeterDefaultMutation( - params: { - selection: { - fields: S & MeterDefaultSelect; - } & HookStrictSelect, MeterDefaultSelect>; - } & Omit< - UseMutationOptions< - { - createMeterDefault: { - meterDefault: InferSelectResult; - }; - }, - Error, - CreateMeterDefaultInput['meterDefault'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createMeterDefault: { - meterDefault: InferSelectResult; - }; - }, - Error, - CreateMeterDefaultInput['meterDefault'] ->; -export function useCreateMeterDefaultMutation( - params: { - selection: SelectionConfig; - } & Omit, 'mutationFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: meterDefaultMutationKeys.create(), - mutationFn: (data: CreateMeterDefaultInput['meterDefault']) => - getClient() - .meterDefault.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: meterDefaultKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/mutations/useCreateMeterMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useCreateMeterMutation.ts deleted file mode 100644 index 67e70f46c5..0000000000 --- a/sdk/constructive-react/src/usage/hooks/mutations/useCreateMeterMutation.ts +++ /dev/null @@ -1,80 +0,0 @@ -/** - * Defines billable meters (what to track: quotas, feature flags, credit pools) - * @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 { meterKeys } from '../query-keys'; -import { meterMutationKeys } from '../mutation-keys'; -import type { MeterSelect, MeterWithRelations, CreateMeterInput } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { MeterSelect, MeterWithRelations, CreateMeterInput } from '../../orm/input-types'; -/** - * Defines billable meters (what to track: quotas, feature flags, credit pools) - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateMeterMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateMeterMutation( - params: { - selection: { - fields: S & MeterSelect; - } & HookStrictSelect, MeterSelect>; - } & Omit< - UseMutationOptions< - { - createMeter: { - meter: InferSelectResult; - }; - }, - Error, - CreateMeterInput['meter'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createMeter: { - meter: InferSelectResult; - }; - }, - Error, - CreateMeterInput['meter'] ->; -export function useCreateMeterMutation( - params: { - selection: SelectionConfig; - } & Omit, 'mutationFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: meterMutationKeys.create(), - mutationFn: (data: CreateMeterInput['meter']) => - getClient() - .meter.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: meterKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/mutations/useCreateMeterSourceMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useCreateMeterSourceMutation.ts deleted file mode 100644 index faf9c9d6fc..0000000000 --- a/sdk/constructive-react/src/usage/hooks/mutations/useCreateMeterSourceMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * Maps billing meters to typed usage summary table columns for automated usage reconciliation. Each row tells reconcile_typed_usage() which column to aggregate and how. - * @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 { meterSourceKeys } from '../query-keys'; -import { meterSourceMutationKeys } from '../mutation-keys'; -import type { - MeterSourceSelect, - MeterSourceWithRelations, - CreateMeterSourceInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - MeterSourceSelect, - MeterSourceWithRelations, - CreateMeterSourceInput, -} from '../../orm/input-types'; -/** - * Maps billing meters to typed usage summary table columns for automated usage reconciliation. Each row tells reconcile_typed_usage() which column to aggregate and how. - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateMeterSourceMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateMeterSourceMutation( - params: { - selection: { - fields: S & MeterSourceSelect; - } & HookStrictSelect, MeterSourceSelect>; - } & Omit< - UseMutationOptions< - { - createMeterSource: { - meterSource: InferSelectResult; - }; - }, - Error, - CreateMeterSourceInput['meterSource'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createMeterSource: { - meterSource: InferSelectResult; - }; - }, - Error, - CreateMeterSourceInput['meterSource'] ->; -export function useCreateMeterSourceMutation( - params: { - selection: SelectionConfig; - } & Omit, 'mutationFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: meterSourceMutationKeys.create(), - mutationFn: (data: CreateMeterSourceInput['meterSource']) => - getClient() - .meterSource.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: meterSourceKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/mutations/useCreatePlanCapMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useCreatePlanCapMutation.ts deleted file mode 100644 index 0d1b22c216..0000000000 --- a/sdk/constructive-react/src/usage/hooks/mutations/useCreatePlanCapMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * Maps each plan to feature flag cap values (written to limit_caps when plan is applied) - * @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 { planCapKeys } from '../query-keys'; -import { planCapMutationKeys } from '../mutation-keys'; -import type { - PlanCapSelect, - PlanCapWithRelations, - CreatePlanCapInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - PlanCapSelect, - PlanCapWithRelations, - CreatePlanCapInput, -} from '../../orm/input-types'; -/** - * Maps each plan to feature flag cap values (written to limit_caps when plan is applied) - * - * @example - * ```tsx - * const { mutate, isPending } = useCreatePlanCapMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreatePlanCapMutation( - params: { - selection: { - fields: S & PlanCapSelect; - } & HookStrictSelect, PlanCapSelect>; - } & Omit< - UseMutationOptions< - { - createPlanCap: { - planCap: InferSelectResult; - }; - }, - Error, - CreatePlanCapInput['planCap'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createPlanCap: { - planCap: InferSelectResult; - }; - }, - Error, - CreatePlanCapInput['planCap'] ->; -export function useCreatePlanCapMutation( - params: { - selection: SelectionConfig; - } & Omit, 'mutationFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: planCapMutationKeys.create(), - mutationFn: (data: CreatePlanCapInput['planCap']) => - getClient() - .planCap.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: planCapKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/mutations/useCreatePlanLimitMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useCreatePlanLimitMutation.ts deleted file mode 100644 index 509bd7dc70..0000000000 --- a/sdk/constructive-react/src/usage/hooks/mutations/useCreatePlanLimitMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * Maps each plan to specific limit names and their maximum allowed values - * @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 { planLimitKeys } from '../query-keys'; -import { planLimitMutationKeys } from '../mutation-keys'; -import type { - PlanLimitSelect, - PlanLimitWithRelations, - CreatePlanLimitInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - PlanLimitSelect, - PlanLimitWithRelations, - CreatePlanLimitInput, -} from '../../orm/input-types'; -/** - * Maps each plan to specific limit names and their maximum allowed values - * - * @example - * ```tsx - * const { mutate, isPending } = useCreatePlanLimitMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreatePlanLimitMutation( - params: { - selection: { - fields: S & PlanLimitSelect; - } & HookStrictSelect, PlanLimitSelect>; - } & Omit< - UseMutationOptions< - { - createPlanLimit: { - planLimit: InferSelectResult; - }; - }, - Error, - CreatePlanLimitInput['planLimit'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createPlanLimit: { - planLimit: InferSelectResult; - }; - }, - Error, - CreatePlanLimitInput['planLimit'] ->; -export function useCreatePlanLimitMutation( - params: { - selection: SelectionConfig; - } & Omit, 'mutationFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: planLimitMutationKeys.create(), - mutationFn: (data: CreatePlanLimitInput['planLimit']) => - getClient() - .planLimit.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: planLimitKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/mutations/useCreatePlanMeterLimitMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useCreatePlanMeterLimitMutation.ts deleted file mode 100644 index ba1c27ce25..0000000000 --- a/sdk/constructive-react/src/usage/hooks/mutations/useCreatePlanMeterLimitMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Maps each plan to billing meter quotas (plan_limit values written to balances when plan is applied) - * @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 { planMeterLimitKeys } from '../query-keys'; -import { planMeterLimitMutationKeys } from '../mutation-keys'; -import type { - PlanMeterLimitSelect, - PlanMeterLimitWithRelations, - CreatePlanMeterLimitInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - PlanMeterLimitSelect, - PlanMeterLimitWithRelations, - CreatePlanMeterLimitInput, -} from '../../orm/input-types'; -/** - * Maps each plan to billing meter quotas (plan_limit values written to balances when plan is applied) - * - * @example - * ```tsx - * const { mutate, isPending } = useCreatePlanMeterLimitMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreatePlanMeterLimitMutation( - params: { - selection: { - fields: S & PlanMeterLimitSelect; - } & HookStrictSelect, PlanMeterLimitSelect>; - } & Omit< - UseMutationOptions< - { - createPlanMeterLimit: { - planMeterLimit: InferSelectResult; - }; - }, - Error, - CreatePlanMeterLimitInput['planMeterLimit'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createPlanMeterLimit: { - planMeterLimit: InferSelectResult; - }; - }, - Error, - CreatePlanMeterLimitInput['planMeterLimit'] ->; -export function useCreatePlanMeterLimitMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: planMeterLimitMutationKeys.create(), - mutationFn: (data: CreatePlanMeterLimitInput['planMeterLimit']) => - getClient() - .planMeterLimit.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: planMeterLimitKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/mutations/useCreatePlanMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useCreatePlanMutation.ts deleted file mode 100644 index 2d7879b3dc..0000000000 --- a/sdk/constructive-react/src/usage/hooks/mutations/useCreatePlanMutation.ts +++ /dev/null @@ -1,80 +0,0 @@ -/** - * Defines plan tiers with named limit configurations - * @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 { planKeys } from '../query-keys'; -import { planMutationKeys } from '../mutation-keys'; -import type { PlanSelect, PlanWithRelations, CreatePlanInput } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { PlanSelect, PlanWithRelations, CreatePlanInput } from '../../orm/input-types'; -/** - * Defines plan tiers with named limit configurations - * - * @example - * ```tsx - * const { mutate, isPending } = useCreatePlanMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreatePlanMutation( - params: { - selection: { - fields: S & PlanSelect; - } & HookStrictSelect, PlanSelect>; - } & Omit< - UseMutationOptions< - { - createPlan: { - plan: InferSelectResult; - }; - }, - Error, - CreatePlanInput['plan'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createPlan: { - plan: InferSelectResult; - }; - }, - Error, - CreatePlanInput['plan'] ->; -export function useCreatePlanMutation( - params: { - selection: SelectionConfig; - } & Omit, 'mutationFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: planMutationKeys.create(), - mutationFn: (data: CreatePlanInput['plan']) => - getClient() - .plan.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: planKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/mutations/useCreatePlanOverrideMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useCreatePlanOverrideMutation.ts deleted file mode 100644 index b53dd8ebfc..0000000000 --- a/sdk/constructive-react/src/usage/hooks/mutations/useCreatePlanOverrideMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * Per-entity limit overrides that take precedence over plan defaults - * @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 { planOverrideKeys } from '../query-keys'; -import { planOverrideMutationKeys } from '../mutation-keys'; -import type { - PlanOverrideSelect, - PlanOverrideWithRelations, - CreatePlanOverrideInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - PlanOverrideSelect, - PlanOverrideWithRelations, - CreatePlanOverrideInput, -} from '../../orm/input-types'; -/** - * Per-entity limit overrides that take precedence over plan defaults - * - * @example - * ```tsx - * const { mutate, isPending } = useCreatePlanOverrideMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreatePlanOverrideMutation( - params: { - selection: { - fields: S & PlanOverrideSelect; - } & HookStrictSelect, PlanOverrideSelect>; - } & Omit< - UseMutationOptions< - { - createPlanOverride: { - planOverride: InferSelectResult; - }; - }, - Error, - CreatePlanOverrideInput['planOverride'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createPlanOverride: { - planOverride: InferSelectResult; - }; - }, - Error, - CreatePlanOverrideInput['planOverride'] ->; -export function useCreatePlanOverrideMutation( - params: { - selection: SelectionConfig; - } & Omit, 'mutationFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: planOverrideMutationKeys.create(), - mutationFn: (data: CreatePlanOverrideInput['planOverride']) => - getClient() - .planOverride.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: planOverrideKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/mutations/useCreatePlanPricingMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useCreatePlanPricingMutation.ts deleted file mode 100644 index dbfb206f92..0000000000 --- a/sdk/constructive-react/src/usage/hooks/mutations/useCreatePlanPricingMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * Billing intervals and pricing for each plan tier - * @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 { planPricingKeys } from '../query-keys'; -import { planPricingMutationKeys } from '../mutation-keys'; -import type { - PlanPricingSelect, - PlanPricingWithRelations, - CreatePlanPricingInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - PlanPricingSelect, - PlanPricingWithRelations, - CreatePlanPricingInput, -} from '../../orm/input-types'; -/** - * Billing intervals and pricing for each plan tier - * - * @example - * ```tsx - * const { mutate, isPending } = useCreatePlanPricingMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreatePlanPricingMutation( - params: { - selection: { - fields: S & PlanPricingSelect; - } & HookStrictSelect, PlanPricingSelect>; - } & Omit< - UseMutationOptions< - { - createPlanPricing: { - planPricing: InferSelectResult; - }; - }, - Error, - CreatePlanPricingInput['planPricing'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createPlanPricing: { - planPricing: InferSelectResult; - }; - }, - Error, - CreatePlanPricingInput['planPricing'] ->; -export function useCreatePlanPricingMutation( - params: { - selection: SelectionConfig; - } & Omit, 'mutationFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: planPricingMutationKeys.create(), - mutationFn: (data: CreatePlanPricingInput['planPricing']) => - getClient() - .planPricing.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: planPricingKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/mutations/useCreatePlanSubscriptionMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useCreatePlanSubscriptionMutation.ts deleted file mode 100644 index befbd3a1dd..0000000000 --- a/sdk/constructive-react/src/usage/hooks/mutations/useCreatePlanSubscriptionMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Assigns a plan to an entity with subscription lifecycle (start, end, active state) - * @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 { planSubscriptionKeys } from '../query-keys'; -import { planSubscriptionMutationKeys } from '../mutation-keys'; -import type { - PlanSubscriptionSelect, - PlanSubscriptionWithRelations, - CreatePlanSubscriptionInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - PlanSubscriptionSelect, - PlanSubscriptionWithRelations, - CreatePlanSubscriptionInput, -} from '../../orm/input-types'; -/** - * Assigns a plan to an entity with subscription lifecycle (start, end, active state) - * - * @example - * ```tsx - * const { mutate, isPending } = useCreatePlanSubscriptionMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreatePlanSubscriptionMutation( - params: { - selection: { - fields: S & PlanSubscriptionSelect; - } & HookStrictSelect, PlanSubscriptionSelect>; - } & Omit< - UseMutationOptions< - { - createPlanSubscription: { - planSubscription: InferSelectResult; - }; - }, - Error, - CreatePlanSubscriptionInput['planSubscription'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createPlanSubscription: { - planSubscription: InferSelectResult; - }; - }, - Error, - CreatePlanSubscriptionInput['planSubscription'] ->; -export function useCreatePlanSubscriptionMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: planSubscriptionMutationKeys.create(), - mutationFn: (data: CreatePlanSubscriptionInput['planSubscription']) => - getClient() - .planSubscription.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: planSubscriptionKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/mutations/useDeleteAppAchievementRewardMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useDeleteAppAchievementRewardMutation.ts deleted file mode 100644 index 80dbd7e990..0000000000 --- a/sdk/constructive-react/src/usage/hooks/mutations/useDeleteAppAchievementRewardMutation.ts +++ /dev/null @@ -1,104 +0,0 @@ -/** - * Defines rewards granted when a level is achieved; supports limit_credits and meter_credits - * @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 { appAchievementRewardKeys } from '../query-keys'; -import { appAchievementRewardMutationKeys } from '../mutation-keys'; -import type { - AppAchievementRewardSelect, - AppAchievementRewardWithRelations, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppAchievementRewardSelect, - AppAchievementRewardWithRelations, -} from '../../orm/input-types'; -/** - * Defines rewards granted when a level is achieved; supports limit_credits and meter_credits - * - * @example - * ```tsx - * const { mutate, isPending } = useDeleteAppAchievementRewardMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 'value-to-delete' }); - * ``` - */ -export function useDeleteAppAchievementRewardMutation( - params: { - selection: { - fields: S & AppAchievementRewardSelect; - } & HookStrictSelect, AppAchievementRewardSelect>; - } & Omit< - UseMutationOptions< - { - deleteAppAchievementReward: { - appAchievementReward: InferSelectResult; - }; - }, - Error, - { - id: string; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deleteAppAchievementReward: { - appAchievementReward: InferSelectResult; - }; - }, - Error, - { - id: string; - } ->; -export function useDeleteAppAchievementRewardMutation( - 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: appAchievementRewardMutationKeys.all, - mutationFn: ({ id }: { id: string }) => - getClient() - .appAchievementReward.delete({ - where: { - id, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: appAchievementRewardKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: appAchievementRewardKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/mutations/useDeleteAppEventAggregateMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useDeleteAppEventAggregateMutation.ts deleted file mode 100644 index 6af7ab50c4..0000000000 --- a/sdk/constructive-react/src/usage/hooks/mutations/useDeleteAppEventAggregateMutation.ts +++ /dev/null @@ -1,104 +0,0 @@ -/** - * Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually - * @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 { appEventAggregateKeys } from '../query-keys'; -import { appEventAggregateMutationKeys } from '../mutation-keys'; -import type { - AppEventAggregateSelect, - AppEventAggregateWithRelations, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppEventAggregateSelect, - AppEventAggregateWithRelations, -} from '../../orm/input-types'; -/** - * Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually - * - * @example - * ```tsx - * const { mutate, isPending } = useDeleteAppEventAggregateMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 'value-to-delete' }); - * ``` - */ -export function useDeleteAppEventAggregateMutation( - params: { - selection: { - fields: S & AppEventAggregateSelect; - } & HookStrictSelect, AppEventAggregateSelect>; - } & Omit< - UseMutationOptions< - { - deleteAppEventAggregate: { - appEventAggregate: InferSelectResult; - }; - }, - Error, - { - id: string; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deleteAppEventAggregate: { - appEventAggregate: InferSelectResult; - }; - }, - Error, - { - id: string; - } ->; -export function useDeleteAppEventAggregateMutation( - 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: appEventAggregateMutationKeys.all, - mutationFn: ({ id }: { id: string }) => - getClient() - .appEventAggregate.delete({ - where: { - id, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: appEventAggregateKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: appEventAggregateKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/mutations/useDeleteAppEventMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useDeleteAppEventMutation.ts deleted file mode 100644 index f539c1aedb..0000000000 --- a/sdk/constructive-react/src/usage/hooks/mutations/useDeleteAppEventMutation.ts +++ /dev/null @@ -1,102 +0,0 @@ -/** - * Partitioned append-only log of individual user actions; every single event ever recorded - * @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 { appEventKeys } from '../query-keys'; -import { appEventMutationKeys } from '../mutation-keys'; -import type { AppEventSelect, AppEventWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { AppEventSelect, AppEventWithRelations } from '../../orm/input-types'; -/** - * Partitioned append-only log of individual user actions; every single event ever recorded - * - * @example - * ```tsx - * const { mutate, isPending } = useDeleteAppEventMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 'value-to-delete' }); - * ``` - */ -export function useDeleteAppEventMutation( - params: { - selection: { - fields: S & AppEventSelect; - } & HookStrictSelect, AppEventSelect>; - } & Omit< - UseMutationOptions< - { - deleteAppEvent: { - appEvent: InferSelectResult; - }; - }, - Error, - { - id: string; - createdAt: string; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deleteAppEvent: { - appEvent: InferSelectResult; - }; - }, - Error, - { - id: string; - createdAt: string; - } ->; -export function useDeleteAppEventMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - createdAt: string; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: appEventMutationKeys.all, - mutationFn: ({ id, createdAt }: { id: string; createdAt: string }) => - getClient() - .appEvent.delete({ - where: { - id, - createdAt, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: appEventKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: appEventKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/mutations/useDeleteAppEventTypeMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useDeleteAppEventTypeMutation.ts deleted file mode 100644 index 9e0fcc380e..0000000000 --- a/sdk/constructive-react/src/usage/hooks/mutations/useDeleteAppEventTypeMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * Catalog of known event types with per-type configuration for aggregation, retention, and level participation - * @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 { appEventTypeKeys } from '../query-keys'; -import { appEventTypeMutationKeys } from '../mutation-keys'; -import type { AppEventTypeSelect, AppEventTypeWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { AppEventTypeSelect, AppEventTypeWithRelations } from '../../orm/input-types'; -/** - * Catalog of known event types with per-type configuration for aggregation, retention, and level participation - * - * @example - * ```tsx - * const { mutate, isPending } = useDeleteAppEventTypeMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 'value-to-delete' }); - * ``` - */ -export function useDeleteAppEventTypeMutation( - params: { - selection: { - fields: S & AppEventTypeSelect; - } & HookStrictSelect, AppEventTypeSelect>; - } & Omit< - UseMutationOptions< - { - deleteAppEventType: { - appEventType: InferSelectResult; - }; - }, - Error, - { - id: string; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deleteAppEventType: { - appEventType: InferSelectResult; - }; - }, - Error, - { - id: string; - } ->; -export function useDeleteAppEventTypeMutation( - 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: appEventTypeMutationKeys.all, - mutationFn: ({ id }: { id: string }) => - getClient() - .appEventType.delete({ - where: { - id, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: appEventTypeKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: appEventTypeKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/mutations/useDeleteAppLevelGrantMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useDeleteAppLevelGrantMutation.ts deleted file mode 100644 index a0df4a7cc1..0000000000 --- a/sdk/constructive-react/src/usage/hooks/mutations/useDeleteAppLevelGrantMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * Records when a user achieves a level; prevents duplicate reward grants - * @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 { appLevelGrantKeys } from '../query-keys'; -import { appLevelGrantMutationKeys } from '../mutation-keys'; -import type { AppLevelGrantSelect, AppLevelGrantWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { AppLevelGrantSelect, AppLevelGrantWithRelations } from '../../orm/input-types'; -/** - * Records when a user achieves a level; prevents duplicate reward grants - * - * @example - * ```tsx - * const { mutate, isPending } = useDeleteAppLevelGrantMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 'value-to-delete' }); - * ``` - */ -export function useDeleteAppLevelGrantMutation( - params: { - selection: { - fields: S & AppLevelGrantSelect; - } & HookStrictSelect, AppLevelGrantSelect>; - } & Omit< - UseMutationOptions< - { - deleteAppLevelGrant: { - appLevelGrant: InferSelectResult; - }; - }, - Error, - { - id: string; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deleteAppLevelGrant: { - appLevelGrant: InferSelectResult; - }; - }, - Error, - { - id: string; - } ->; -export function useDeleteAppLevelGrantMutation( - 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: appLevelGrantMutationKeys.all, - mutationFn: ({ id }: { id: string }) => - getClient() - .appLevelGrant.delete({ - where: { - id, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: appLevelGrantKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: appLevelGrantKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/mutations/useDeleteAppLevelMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useDeleteAppLevelMutation.ts deleted file mode 100644 index cbef84ab86..0000000000 --- a/sdk/constructive-react/src/usage/hooks/mutations/useDeleteAppLevelMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * Defines available levels that users can achieve by completing requirements - * @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 { appLevelKeys } from '../query-keys'; -import { appLevelMutationKeys } from '../mutation-keys'; -import type { AppLevelSelect, AppLevelWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { AppLevelSelect, AppLevelWithRelations } from '../../orm/input-types'; -/** - * Defines available levels that users can achieve by completing requirements - * - * @example - * ```tsx - * const { mutate, isPending } = useDeleteAppLevelMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 'value-to-delete' }); - * ``` - */ -export function useDeleteAppLevelMutation( - params: { - selection: { - fields: S & AppLevelSelect; - } & HookStrictSelect, AppLevelSelect>; - } & Omit< - UseMutationOptions< - { - deleteAppLevel: { - appLevel: InferSelectResult; - }; - }, - Error, - { - id: string; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deleteAppLevel: { - appLevel: InferSelectResult; - }; - }, - Error, - { - id: string; - } ->; -export function useDeleteAppLevelMutation( - 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: appLevelMutationKeys.all, - mutationFn: ({ id }: { id: string }) => - getClient() - .appLevel.delete({ - where: { - id, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: appLevelKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: appLevelKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/mutations/useDeleteAppLevelRequirementMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useDeleteAppLevelRequirementMutation.ts deleted file mode 100644 index 6784e56dcc..0000000000 --- a/sdk/constructive-react/src/usage/hooks/mutations/useDeleteAppLevelRequirementMutation.ts +++ /dev/null @@ -1,104 +0,0 @@ -/** - * Defines the specific requirements that must be met to achieve a level - * @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 { appLevelRequirementKeys } from '../query-keys'; -import { appLevelRequirementMutationKeys } from '../mutation-keys'; -import type { - AppLevelRequirementSelect, - AppLevelRequirementWithRelations, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppLevelRequirementSelect, - AppLevelRequirementWithRelations, -} from '../../orm/input-types'; -/** - * Defines the specific requirements that must be met to achieve a level - * - * @example - * ```tsx - * const { mutate, isPending } = useDeleteAppLevelRequirementMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 'value-to-delete' }); - * ``` - */ -export function useDeleteAppLevelRequirementMutation( - params: { - selection: { - fields: S & AppLevelRequirementSelect; - } & HookStrictSelect, AppLevelRequirementSelect>; - } & Omit< - UseMutationOptions< - { - deleteAppLevelRequirement: { - appLevelRequirement: InferSelectResult; - }; - }, - Error, - { - id: string; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deleteAppLevelRequirement: { - appLevelRequirement: InferSelectResult; - }; - }, - Error, - { - id: string; - } ->; -export function useDeleteAppLevelRequirementMutation( - 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: appLevelRequirementMutationKeys.all, - mutationFn: ({ id }: { id: string }) => - getClient() - .appLevelRequirement.delete({ - where: { - id, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: appLevelRequirementKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: appLevelRequirementKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/mutations/useDeleteBillingUsageSummaryMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useDeleteBillingUsageSummaryMutation.ts deleted file mode 100644 index 2f6fb87775..0000000000 --- a/sdk/constructive-react/src/usage/hooks/mutations/useDeleteBillingUsageSummaryMutation.ts +++ /dev/null @@ -1,104 +0,0 @@ -/** - * Permanent monthly usage summary per entity per meter (user-facing billing dashboard) - * @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 { billingUsageSummaryKeys } from '../query-keys'; -import { billingUsageSummaryMutationKeys } from '../mutation-keys'; -import type { - BillingUsageSummarySelect, - BillingUsageSummaryWithRelations, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - BillingUsageSummarySelect, - BillingUsageSummaryWithRelations, -} from '../../orm/input-types'; -/** - * Permanent monthly usage summary per entity per meter (user-facing billing dashboard) - * - * @example - * ```tsx - * const { mutate, isPending } = useDeleteBillingUsageSummaryMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 'value-to-delete' }); - * ``` - */ -export function useDeleteBillingUsageSummaryMutation( - params: { - selection: { - fields: S & BillingUsageSummarySelect; - } & HookStrictSelect, BillingUsageSummarySelect>; - } & Omit< - UseMutationOptions< - { - deleteBillingUsageSummary: { - billingUsageSummary: InferSelectResult; - }; - }, - Error, - { - id: string; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deleteBillingUsageSummary: { - billingUsageSummary: InferSelectResult; - }; - }, - Error, - { - id: string; - } ->; -export function useDeleteBillingUsageSummaryMutation( - 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: billingUsageSummaryMutationKeys.all, - mutationFn: ({ id }: { id: string }) => - getClient() - .billingUsageSummary.delete({ - where: { - id, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: billingUsageSummaryKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: billingUsageSummaryKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/mutations/useDeleteLedgerMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useDeleteLedgerMutation.ts deleted file mode 100644 index e31fc2bf6f..0000000000 --- a/sdk/constructive-react/src/usage/hooks/mutations/useDeleteLedgerMutation.ts +++ /dev/null @@ -1,102 +0,0 @@ -/** - * Append-only event log for all billing events (usage, grants, adjustments) - * @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 { ledgerKeys } from '../query-keys'; -import { ledgerMutationKeys } from '../mutation-keys'; -import type { LedgerSelect, LedgerWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { LedgerSelect, LedgerWithRelations } from '../../orm/input-types'; -/** - * Append-only event log for all billing events (usage, grants, adjustments) - * - * @example - * ```tsx - * const { mutate, isPending } = useDeleteLedgerMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 'value-to-delete' }); - * ``` - */ -export function useDeleteLedgerMutation( - params: { - selection: { - fields: S & LedgerSelect; - } & HookStrictSelect, LedgerSelect>; - } & Omit< - UseMutationOptions< - { - deleteLedger: { - ledger: InferSelectResult; - }; - }, - Error, - { - id: string; - createdAt: string; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deleteLedger: { - ledger: InferSelectResult; - }; - }, - Error, - { - id: string; - createdAt: string; - } ->; -export function useDeleteLedgerMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - createdAt: string; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: ledgerMutationKeys.all, - mutationFn: ({ id, createdAt }: { id: string; createdAt: string }) => - getClient() - .ledger.delete({ - where: { - id, - createdAt, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: ledgerKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: ledgerKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/mutations/useDeleteMeterCreditMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useDeleteMeterCreditMutation.ts deleted file mode 100644 index 637a775d1a..0000000000 --- a/sdk/constructive-react/src/usage/hooks/mutations/useDeleteMeterCreditMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * Append-only ledger of credit grants for billing meters that automatically update balances - * @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 { meterCreditKeys } from '../query-keys'; -import { meterCreditMutationKeys } from '../mutation-keys'; -import type { MeterCreditSelect, MeterCreditWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { MeterCreditSelect, MeterCreditWithRelations } from '../../orm/input-types'; -/** - * Append-only ledger of credit grants for billing meters that automatically update balances - * - * @example - * ```tsx - * const { mutate, isPending } = useDeleteMeterCreditMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 'value-to-delete' }); - * ``` - */ -export function useDeleteMeterCreditMutation( - params: { - selection: { - fields: S & MeterCreditSelect; - } & HookStrictSelect, MeterCreditSelect>; - } & Omit< - UseMutationOptions< - { - deleteMeterCredit: { - meterCredit: InferSelectResult; - }; - }, - Error, - { - id: string; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deleteMeterCredit: { - meterCredit: InferSelectResult; - }; - }, - Error, - { - id: string; - } ->; -export function useDeleteMeterCreditMutation( - 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: meterCreditMutationKeys.all, - mutationFn: ({ id }: { id: string }) => - getClient() - .meterCredit.delete({ - where: { - id, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: meterCreditKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: meterCreditKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/mutations/useDeleteMeterDefaultMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useDeleteMeterDefaultMutation.ts deleted file mode 100644 index 3fa63ac44a..0000000000 --- a/sdk/constructive-react/src/usage/hooks/mutations/useDeleteMeterDefaultMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * Default meter catalog: defines which meters are available and their default plan_limit values for new entities - * @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 { meterDefaultKeys } from '../query-keys'; -import { meterDefaultMutationKeys } from '../mutation-keys'; -import type { MeterDefaultSelect, MeterDefaultWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { MeterDefaultSelect, MeterDefaultWithRelations } from '../../orm/input-types'; -/** - * Default meter catalog: defines which meters are available and their default plan_limit values for new entities - * - * @example - * ```tsx - * const { mutate, isPending } = useDeleteMeterDefaultMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 'value-to-delete' }); - * ``` - */ -export function useDeleteMeterDefaultMutation( - params: { - selection: { - fields: S & MeterDefaultSelect; - } & HookStrictSelect, MeterDefaultSelect>; - } & Omit< - UseMutationOptions< - { - deleteMeterDefault: { - meterDefault: InferSelectResult; - }; - }, - Error, - { - id: string; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deleteMeterDefault: { - meterDefault: InferSelectResult; - }; - }, - Error, - { - id: string; - } ->; -export function useDeleteMeterDefaultMutation( - 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: meterDefaultMutationKeys.all, - mutationFn: ({ id }: { id: string }) => - getClient() - .meterDefault.delete({ - where: { - id, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: meterDefaultKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: meterDefaultKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/mutations/useDeleteMeterMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useDeleteMeterMutation.ts deleted file mode 100644 index b8790671fa..0000000000 --- a/sdk/constructive-react/src/usage/hooks/mutations/useDeleteMeterMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * Defines billable meters (what to track: quotas, feature flags, credit pools) - * @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 { meterKeys } from '../query-keys'; -import { meterMutationKeys } from '../mutation-keys'; -import type { MeterSelect, MeterWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { MeterSelect, MeterWithRelations } from '../../orm/input-types'; -/** - * Defines billable meters (what to track: quotas, feature flags, credit pools) - * - * @example - * ```tsx - * const { mutate, isPending } = useDeleteMeterMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 'value-to-delete' }); - * ``` - */ -export function useDeleteMeterMutation( - params: { - selection: { - fields: S & MeterSelect; - } & HookStrictSelect, MeterSelect>; - } & Omit< - UseMutationOptions< - { - deleteMeter: { - meter: InferSelectResult; - }; - }, - Error, - { - id: string; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deleteMeter: { - meter: InferSelectResult; - }; - }, - Error, - { - id: string; - } ->; -export function useDeleteMeterMutation( - 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: meterMutationKeys.all, - mutationFn: ({ id }: { id: string }) => - getClient() - .meter.delete({ - where: { - id, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: meterKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: meterKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/mutations/useDeleteMeterSourceMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useDeleteMeterSourceMutation.ts deleted file mode 100644 index eca0d7d05d..0000000000 --- a/sdk/constructive-react/src/usage/hooks/mutations/useDeleteMeterSourceMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * Maps billing meters to typed usage summary table columns for automated usage reconciliation. Each row tells reconcile_typed_usage() which column to aggregate and how. - * @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 { meterSourceKeys } from '../query-keys'; -import { meterSourceMutationKeys } from '../mutation-keys'; -import type { MeterSourceSelect, MeterSourceWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { MeterSourceSelect, MeterSourceWithRelations } from '../../orm/input-types'; -/** - * Maps billing meters to typed usage summary table columns for automated usage reconciliation. Each row tells reconcile_typed_usage() which column to aggregate and how. - * - * @example - * ```tsx - * const { mutate, isPending } = useDeleteMeterSourceMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 'value-to-delete' }); - * ``` - */ -export function useDeleteMeterSourceMutation( - params: { - selection: { - fields: S & MeterSourceSelect; - } & HookStrictSelect, MeterSourceSelect>; - } & Omit< - UseMutationOptions< - { - deleteMeterSource: { - meterSource: InferSelectResult; - }; - }, - Error, - { - id: string; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deleteMeterSource: { - meterSource: InferSelectResult; - }; - }, - Error, - { - id: string; - } ->; -export function useDeleteMeterSourceMutation( - 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: meterSourceMutationKeys.all, - mutationFn: ({ id }: { id: string }) => - getClient() - .meterSource.delete({ - where: { - id, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: meterSourceKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: meterSourceKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/mutations/useDeletePlanCapMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useDeletePlanCapMutation.ts deleted file mode 100644 index 75d6b6f324..0000000000 --- a/sdk/constructive-react/src/usage/hooks/mutations/useDeletePlanCapMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * Maps each plan to feature flag cap values (written to limit_caps when plan is applied) - * @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 { planCapKeys } from '../query-keys'; -import { planCapMutationKeys } from '../mutation-keys'; -import type { PlanCapSelect, PlanCapWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { PlanCapSelect, PlanCapWithRelations } from '../../orm/input-types'; -/** - * Maps each plan to feature flag cap values (written to limit_caps when plan is applied) - * - * @example - * ```tsx - * const { mutate, isPending } = useDeletePlanCapMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 'value-to-delete' }); - * ``` - */ -export function useDeletePlanCapMutation( - params: { - selection: { - fields: S & PlanCapSelect; - } & HookStrictSelect, PlanCapSelect>; - } & Omit< - UseMutationOptions< - { - deletePlanCap: { - planCap: InferSelectResult; - }; - }, - Error, - { - id: string; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deletePlanCap: { - planCap: InferSelectResult; - }; - }, - Error, - { - id: string; - } ->; -export function useDeletePlanCapMutation( - 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: planCapMutationKeys.all, - mutationFn: ({ id }: { id: string }) => - getClient() - .planCap.delete({ - where: { - id, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: planCapKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: planCapKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/mutations/useDeletePlanLimitMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useDeletePlanLimitMutation.ts deleted file mode 100644 index a4fa0a3ab4..0000000000 --- a/sdk/constructive-react/src/usage/hooks/mutations/useDeletePlanLimitMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * Maps each plan to specific limit names and their maximum allowed values - * @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 { planLimitKeys } from '../query-keys'; -import { planLimitMutationKeys } from '../mutation-keys'; -import type { PlanLimitSelect, PlanLimitWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { PlanLimitSelect, PlanLimitWithRelations } from '../../orm/input-types'; -/** - * Maps each plan to specific limit names and their maximum allowed values - * - * @example - * ```tsx - * const { mutate, isPending } = useDeletePlanLimitMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 'value-to-delete' }); - * ``` - */ -export function useDeletePlanLimitMutation( - params: { - selection: { - fields: S & PlanLimitSelect; - } & HookStrictSelect, PlanLimitSelect>; - } & Omit< - UseMutationOptions< - { - deletePlanLimit: { - planLimit: InferSelectResult; - }; - }, - Error, - { - id: string; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deletePlanLimit: { - planLimit: InferSelectResult; - }; - }, - Error, - { - id: string; - } ->; -export function useDeletePlanLimitMutation( - 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: planLimitMutationKeys.all, - mutationFn: ({ id }: { id: string }) => - getClient() - .planLimit.delete({ - where: { - id, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: planLimitKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: planLimitKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/mutations/useDeletePlanMeterLimitMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useDeletePlanMeterLimitMutation.ts deleted file mode 100644 index 8f140c1670..0000000000 --- a/sdk/constructive-react/src/usage/hooks/mutations/useDeletePlanMeterLimitMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * Maps each plan to billing meter quotas (plan_limit values written to balances when plan is applied) - * @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 { planMeterLimitKeys } from '../query-keys'; -import { planMeterLimitMutationKeys } from '../mutation-keys'; -import type { PlanMeterLimitSelect, PlanMeterLimitWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { PlanMeterLimitSelect, PlanMeterLimitWithRelations } from '../../orm/input-types'; -/** - * Maps each plan to billing meter quotas (plan_limit values written to balances when plan is applied) - * - * @example - * ```tsx - * const { mutate, isPending } = useDeletePlanMeterLimitMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 'value-to-delete' }); - * ``` - */ -export function useDeletePlanMeterLimitMutation( - params: { - selection: { - fields: S & PlanMeterLimitSelect; - } & HookStrictSelect, PlanMeterLimitSelect>; - } & Omit< - UseMutationOptions< - { - deletePlanMeterLimit: { - planMeterLimit: InferSelectResult; - }; - }, - Error, - { - id: string; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deletePlanMeterLimit: { - planMeterLimit: InferSelectResult; - }; - }, - Error, - { - id: string; - } ->; -export function useDeletePlanMeterLimitMutation( - 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: planMeterLimitMutationKeys.all, - mutationFn: ({ id }: { id: string }) => - getClient() - .planMeterLimit.delete({ - where: { - id, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: planMeterLimitKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: planMeterLimitKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/mutations/useDeletePlanMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useDeletePlanMutation.ts deleted file mode 100644 index f90b0d1b07..0000000000 --- a/sdk/constructive-react/src/usage/hooks/mutations/useDeletePlanMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * Defines plan tiers with named limit configurations - * @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 { planKeys } from '../query-keys'; -import { planMutationKeys } from '../mutation-keys'; -import type { PlanSelect, PlanWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { PlanSelect, PlanWithRelations } from '../../orm/input-types'; -/** - * Defines plan tiers with named limit configurations - * - * @example - * ```tsx - * const { mutate, isPending } = useDeletePlanMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 'value-to-delete' }); - * ``` - */ -export function useDeletePlanMutation( - params: { - selection: { - fields: S & PlanSelect; - } & HookStrictSelect, PlanSelect>; - } & Omit< - UseMutationOptions< - { - deletePlan: { - plan: InferSelectResult; - }; - }, - Error, - { - id: string; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deletePlan: { - plan: InferSelectResult; - }; - }, - Error, - { - id: string; - } ->; -export function useDeletePlanMutation( - 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: planMutationKeys.all, - mutationFn: ({ id }: { id: string }) => - getClient() - .plan.delete({ - where: { - id, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: planKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: planKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/mutations/useDeletePlanOverrideMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useDeletePlanOverrideMutation.ts deleted file mode 100644 index 17a80a5bf5..0000000000 --- a/sdk/constructive-react/src/usage/hooks/mutations/useDeletePlanOverrideMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * Per-entity limit overrides that take precedence over plan defaults - * @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 { planOverrideKeys } from '../query-keys'; -import { planOverrideMutationKeys } from '../mutation-keys'; -import type { PlanOverrideSelect, PlanOverrideWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { PlanOverrideSelect, PlanOverrideWithRelations } from '../../orm/input-types'; -/** - * Per-entity limit overrides that take precedence over plan defaults - * - * @example - * ```tsx - * const { mutate, isPending } = useDeletePlanOverrideMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 'value-to-delete' }); - * ``` - */ -export function useDeletePlanOverrideMutation( - params: { - selection: { - fields: S & PlanOverrideSelect; - } & HookStrictSelect, PlanOverrideSelect>; - } & Omit< - UseMutationOptions< - { - deletePlanOverride: { - planOverride: InferSelectResult; - }; - }, - Error, - { - id: string; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deletePlanOverride: { - planOverride: InferSelectResult; - }; - }, - Error, - { - id: string; - } ->; -export function useDeletePlanOverrideMutation( - 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: planOverrideMutationKeys.all, - mutationFn: ({ id }: { id: string }) => - getClient() - .planOverride.delete({ - where: { - id, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: planOverrideKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: planOverrideKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/mutations/useDeletePlanPricingMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useDeletePlanPricingMutation.ts deleted file mode 100644 index 11d6d66c62..0000000000 --- a/sdk/constructive-react/src/usage/hooks/mutations/useDeletePlanPricingMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * Billing intervals and pricing for each plan tier - * @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 { planPricingKeys } from '../query-keys'; -import { planPricingMutationKeys } from '../mutation-keys'; -import type { PlanPricingSelect, PlanPricingWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { PlanPricingSelect, PlanPricingWithRelations } from '../../orm/input-types'; -/** - * Billing intervals and pricing for each plan tier - * - * @example - * ```tsx - * const { mutate, isPending } = useDeletePlanPricingMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 'value-to-delete' }); - * ``` - */ -export function useDeletePlanPricingMutation( - params: { - selection: { - fields: S & PlanPricingSelect; - } & HookStrictSelect, PlanPricingSelect>; - } & Omit< - UseMutationOptions< - { - deletePlanPricing: { - planPricing: InferSelectResult; - }; - }, - Error, - { - id: string; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deletePlanPricing: { - planPricing: InferSelectResult; - }; - }, - Error, - { - id: string; - } ->; -export function useDeletePlanPricingMutation( - 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: planPricingMutationKeys.all, - mutationFn: ({ id }: { id: string }) => - getClient() - .planPricing.delete({ - where: { - id, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: planPricingKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: planPricingKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/mutations/useDeletePlanSubscriptionMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useDeletePlanSubscriptionMutation.ts deleted file mode 100644 index 14ef56ac40..0000000000 --- a/sdk/constructive-react/src/usage/hooks/mutations/useDeletePlanSubscriptionMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * Assigns a plan to an entity with subscription lifecycle (start, end, active state) - * @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 { planSubscriptionKeys } from '../query-keys'; -import { planSubscriptionMutationKeys } from '../mutation-keys'; -import type { PlanSubscriptionSelect, PlanSubscriptionWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { PlanSubscriptionSelect, PlanSubscriptionWithRelations } from '../../orm/input-types'; -/** - * Assigns a plan to an entity with subscription lifecycle (start, end, active state) - * - * @example - * ```tsx - * const { mutate, isPending } = useDeletePlanSubscriptionMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 'value-to-delete' }); - * ``` - */ -export function useDeletePlanSubscriptionMutation( - params: { - selection: { - fields: S & PlanSubscriptionSelect; - } & HookStrictSelect, PlanSubscriptionSelect>; - } & Omit< - UseMutationOptions< - { - deletePlanSubscription: { - planSubscription: InferSelectResult; - }; - }, - Error, - { - id: string; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deletePlanSubscription: { - planSubscription: InferSelectResult; - }; - }, - Error, - { - id: string; - } ->; -export function useDeletePlanSubscriptionMutation( - 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: planSubscriptionMutationKeys.all, - mutationFn: ({ id }: { id: string }) => - getClient() - .planSubscription.delete({ - where: { - id, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: planSubscriptionKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: planSubscriptionKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/mutations/useGrantAchievementMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useGrantAchievementMutation.ts deleted file mode 100644 index 6228982629..0000000000 --- a/sdk/constructive-react/src/usage/hooks/mutations/useGrantAchievementMutation.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * Custom mutation hook for grantAchievement - * @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 { GrantAchievementVariables } from '../../orm/mutation'; -import type { GrantAchievementPayloadSelect, GrantAchievementPayload } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; -export type { GrantAchievementVariables } from '../../orm/mutation'; -export type { GrantAchievementPayloadSelect } from '../../orm/input-types'; -export function useGrantAchievementMutation( - params: { - selection: { - fields: S & GrantAchievementPayloadSelect; - } & HookStrictSelect, GrantAchievementPayloadSelect>; - } & Omit< - UseMutationOptions< - { - grantAchievement: InferSelectResult | null; - }, - Error, - GrantAchievementVariables - >, - 'mutationFn' - > -): UseMutationResult< - { - grantAchievement: InferSelectResult | null; - }, - Error, - GrantAchievementVariables -> { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - return useMutation({ - mutationKey: customMutationKeys.grantAchievement(), - mutationFn: (variables: GrantAchievementVariables) => - getClient() - .mutation.grantAchievement(variables, { - select: args.select, - } as { - select: S; - } & StrictSelect) - .unwrap(), - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/mutations/useRecomputeCapabilitiesMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useRecomputeCapabilitiesMutation.ts deleted file mode 100644 index bca18d3bfb..0000000000 --- a/sdk/constructive-react/src/usage/hooks/mutations/useRecomputeCapabilitiesMutation.ts +++ /dev/null @@ -1,58 +0,0 @@ -/** - * Custom mutation hook for recomputeCapabilities - * @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 { RecomputeCapabilitiesVariables } from '../../orm/mutation'; -import type { - RecomputeCapabilitiesPayloadSelect, - RecomputeCapabilitiesPayload, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; -export type { RecomputeCapabilitiesVariables } from '../../orm/mutation'; -export type { RecomputeCapabilitiesPayloadSelect } from '../../orm/input-types'; -export function useRecomputeCapabilitiesMutation( - params: { - selection: { - fields: S & RecomputeCapabilitiesPayloadSelect; - } & HookStrictSelect, RecomputeCapabilitiesPayloadSelect>; - } & Omit< - UseMutationOptions< - { - recomputeCapabilities: InferSelectResult | null; - }, - Error, - RecomputeCapabilitiesVariables - >, - 'mutationFn' - > -): UseMutationResult< - { - recomputeCapabilities: InferSelectResult | null; - }, - Error, - RecomputeCapabilitiesVariables -> { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - return useMutation({ - mutationKey: customMutationKeys.recomputeCapabilities(), - mutationFn: (variables: RecomputeCapabilitiesVariables) => - getClient() - .mutation.recomputeCapabilities(variables, { - select: args.select, - } as { - select: S; - } & StrictSelect) - .unwrap(), - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/mutations/useRevokeAchievementMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useRevokeAchievementMutation.ts deleted file mode 100644 index 72b3076b55..0000000000 --- a/sdk/constructive-react/src/usage/hooks/mutations/useRevokeAchievementMutation.ts +++ /dev/null @@ -1,58 +0,0 @@ -/** - * Custom mutation hook for revokeAchievement - * @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 { RevokeAchievementVariables } from '../../orm/mutation'; -import type { - RevokeAchievementPayloadSelect, - RevokeAchievementPayload, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; -export type { RevokeAchievementVariables } from '../../orm/mutation'; -export type { RevokeAchievementPayloadSelect } from '../../orm/input-types'; -export function useRevokeAchievementMutation( - params: { - selection: { - fields: S & RevokeAchievementPayloadSelect; - } & HookStrictSelect, RevokeAchievementPayloadSelect>; - } & Omit< - UseMutationOptions< - { - revokeAchievement: InferSelectResult | null; - }, - Error, - RevokeAchievementVariables - >, - 'mutationFn' - > -): UseMutationResult< - { - revokeAchievement: InferSelectResult | null; - }, - Error, - RevokeAchievementVariables -> { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - return useMutation({ - mutationKey: customMutationKeys.revokeAchievement(), - mutationFn: (variables: RevokeAchievementVariables) => - getClient() - .mutation.revokeAchievement(variables, { - select: args.select, - } as { - select: S; - } & StrictSelect) - .unwrap(), - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/mutations/useSeedMeterDefaultsMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useSeedMeterDefaultsMutation.ts deleted file mode 100644 index d586b896c4..0000000000 --- a/sdk/constructive-react/src/usage/hooks/mutations/useSeedMeterDefaultsMutation.ts +++ /dev/null @@ -1,58 +0,0 @@ -/** - * Custom mutation hook for seedMeterDefaults - * @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 { SeedMeterDefaultsVariables } from '../../orm/mutation'; -import type { - SeedMeterDefaultsPayloadSelect, - SeedMeterDefaultsPayload, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; -export type { SeedMeterDefaultsVariables } from '../../orm/mutation'; -export type { SeedMeterDefaultsPayloadSelect } from '../../orm/input-types'; -export function useSeedMeterDefaultsMutation( - params: { - selection: { - fields: S & SeedMeterDefaultsPayloadSelect; - } & HookStrictSelect, SeedMeterDefaultsPayloadSelect>; - } & Omit< - UseMutationOptions< - { - seedMeterDefaults: InferSelectResult | null; - }, - Error, - SeedMeterDefaultsVariables - >, - 'mutationFn' - > -): UseMutationResult< - { - seedMeterDefaults: InferSelectResult | null; - }, - Error, - SeedMeterDefaultsVariables -> { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - return useMutation({ - mutationKey: customMutationKeys.seedMeterDefaults(), - mutationFn: (variables: SeedMeterDefaultsVariables) => - getClient() - .mutation.seedMeterDefaults(variables, { - select: args.select, - } as { - select: S; - } & StrictSelect) - .unwrap(), - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/mutations/useSeedPlanMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useSeedPlanMutation.ts deleted file mode 100644 index 456940bced..0000000000 --- a/sdk/constructive-react/src/usage/hooks/mutations/useSeedPlanMutation.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * Custom mutation hook for seedPlan - * @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 { SeedPlanVariables } from '../../orm/mutation'; -import type { SeedPlanPayloadSelect, SeedPlanPayload } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; -export type { SeedPlanVariables } from '../../orm/mutation'; -export type { SeedPlanPayloadSelect } from '../../orm/input-types'; -export function useSeedPlanMutation( - params: { - selection: { - fields: S & SeedPlanPayloadSelect; - } & HookStrictSelect, SeedPlanPayloadSelect>; - } & Omit< - UseMutationOptions< - { - seedPlan: InferSelectResult | null; - }, - Error, - SeedPlanVariables - >, - 'mutationFn' - > -): UseMutationResult< - { - seedPlan: InferSelectResult | null; - }, - Error, - SeedPlanVariables -> { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - return useMutation({ - mutationKey: customMutationKeys.seedPlan(), - mutationFn: (variables: SeedPlanVariables) => - getClient() - .mutation.seedPlan(variables, { - select: args.select, - } as { - select: S; - } & StrictSelect) - .unwrap(), - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/mutations/useSeedTrustLadderMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useSeedTrustLadderMutation.ts deleted file mode 100644 index 210a7816d9..0000000000 --- a/sdk/constructive-react/src/usage/hooks/mutations/useSeedTrustLadderMutation.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * Custom mutation hook for seedTrustLadder - * @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 { SeedTrustLadderVariables } from '../../orm/mutation'; -import type { SeedTrustLadderPayloadSelect, SeedTrustLadderPayload } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; -export type { SeedTrustLadderVariables } from '../../orm/mutation'; -export type { SeedTrustLadderPayloadSelect } from '../../orm/input-types'; -export function useSeedTrustLadderMutation( - params: { - selection: { - fields: S & SeedTrustLadderPayloadSelect; - } & HookStrictSelect, SeedTrustLadderPayloadSelect>; - } & Omit< - UseMutationOptions< - { - seedTrustLadder: InferSelectResult | null; - }, - Error, - SeedTrustLadderVariables - >, - 'mutationFn' - > -): UseMutationResult< - { - seedTrustLadder: InferSelectResult | null; - }, - Error, - SeedTrustLadderVariables -> { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - return useMutation({ - mutationKey: customMutationKeys.seedTrustLadder(), - mutationFn: (variables: SeedTrustLadderVariables) => - getClient() - .mutation.seedTrustLadder(variables, { - select: args.select, - } as { - select: S; - } & StrictSelect) - .unwrap(), - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/mutations/useUpdateAppAchievementRewardMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useUpdateAppAchievementRewardMutation.ts deleted file mode 100644 index 4d2d5418cc..0000000000 --- a/sdk/constructive-react/src/usage/hooks/mutations/useUpdateAppAchievementRewardMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * Defines rewards granted when a level is achieved; supports limit_credits and meter_credits - * @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 { appAchievementRewardKeys } from '../query-keys'; -import { appAchievementRewardMutationKeys } from '../mutation-keys'; -import type { - AppAchievementRewardSelect, - AppAchievementRewardWithRelations, - AppAchievementRewardPatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppAchievementRewardSelect, - AppAchievementRewardWithRelations, - AppAchievementRewardPatch, -} from '../../orm/input-types'; -/** - * Defines rewards granted when a level is achieved; supports limit_credits and meter_credits - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateAppAchievementRewardMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', appAchievementRewardPatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateAppAchievementRewardMutation( - params: { - selection: { - fields: S & AppAchievementRewardSelect; - } & HookStrictSelect, AppAchievementRewardSelect>; - } & Omit< - UseMutationOptions< - { - updateAppAchievementReward: { - appAchievementReward: InferSelectResult; - }; - }, - Error, - { - id: string; - appAchievementRewardPatch: AppAchievementRewardPatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateAppAchievementReward: { - appAchievementReward: InferSelectResult; - }; - }, - Error, - { - id: string; - appAchievementRewardPatch: AppAchievementRewardPatch; - } ->; -export function useUpdateAppAchievementRewardMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - appAchievementRewardPatch: AppAchievementRewardPatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: appAchievementRewardMutationKeys.all, - mutationFn: ({ - id, - appAchievementRewardPatch, - }: { - id: string; - appAchievementRewardPatch: AppAchievementRewardPatch; - }) => - getClient() - .appAchievementReward.update({ - where: { - id, - }, - data: appAchievementRewardPatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: appAchievementRewardKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: appAchievementRewardKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/mutations/useUpdateAppEventAggregateMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useUpdateAppEventAggregateMutation.ts deleted file mode 100644 index 8d386ff482..0000000000 --- a/sdk/constructive-react/src/usage/hooks/mutations/useUpdateAppEventAggregateMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually - * @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 { appEventAggregateKeys } from '../query-keys'; -import { appEventAggregateMutationKeys } from '../mutation-keys'; -import type { - AppEventAggregateSelect, - AppEventAggregateWithRelations, - AppEventAggregatePatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppEventAggregateSelect, - AppEventAggregateWithRelations, - AppEventAggregatePatch, -} from '../../orm/input-types'; -/** - * Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateAppEventAggregateMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', appEventAggregatePatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateAppEventAggregateMutation( - params: { - selection: { - fields: S & AppEventAggregateSelect; - } & HookStrictSelect, AppEventAggregateSelect>; - } & Omit< - UseMutationOptions< - { - updateAppEventAggregate: { - appEventAggregate: InferSelectResult; - }; - }, - Error, - { - id: string; - appEventAggregatePatch: AppEventAggregatePatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateAppEventAggregate: { - appEventAggregate: InferSelectResult; - }; - }, - Error, - { - id: string; - appEventAggregatePatch: AppEventAggregatePatch; - } ->; -export function useUpdateAppEventAggregateMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - appEventAggregatePatch: AppEventAggregatePatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: appEventAggregateMutationKeys.all, - mutationFn: ({ - id, - appEventAggregatePatch, - }: { - id: string; - appEventAggregatePatch: AppEventAggregatePatch; - }) => - getClient() - .appEventAggregate.update({ - where: { - id, - }, - data: appEventAggregatePatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: appEventAggregateKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: appEventAggregateKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/mutations/useUpdateAppEventMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useUpdateAppEventMutation.ts deleted file mode 100644 index d6c34cb7f6..0000000000 --- a/sdk/constructive-react/src/usage/hooks/mutations/useUpdateAppEventMutation.ts +++ /dev/null @@ -1,114 +0,0 @@ -/** - * Partitioned append-only log of individual user actions; every single event ever recorded - * @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 { appEventKeys } from '../query-keys'; -import { appEventMutationKeys } from '../mutation-keys'; -import type { AppEventSelect, AppEventWithRelations, AppEventPatch } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { AppEventSelect, AppEventWithRelations, AppEventPatch } from '../../orm/input-types'; -/** - * Partitioned append-only log of individual user actions; every single event ever recorded - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateAppEventMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', appEventPatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateAppEventMutation( - params: { - selection: { - fields: S & AppEventSelect; - } & HookStrictSelect, AppEventSelect>; - } & Omit< - UseMutationOptions< - { - updateAppEvent: { - appEvent: InferSelectResult; - }; - }, - Error, - { - id: string; - createdAt: string; - appEventPatch: AppEventPatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateAppEvent: { - appEvent: InferSelectResult; - }; - }, - Error, - { - id: string; - createdAt: string; - appEventPatch: AppEventPatch; - } ->; -export function useUpdateAppEventMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - createdAt: string; - appEventPatch: AppEventPatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: appEventMutationKeys.all, - mutationFn: ({ - id, - createdAt, - appEventPatch, - }: { - id: string; - createdAt: string; - appEventPatch: AppEventPatch; - }) => - getClient() - .appEvent.update({ - where: { - id, - createdAt, - }, - data: appEventPatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: appEventKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: appEventKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/mutations/useUpdateAppEventTypeMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useUpdateAppEventTypeMutation.ts deleted file mode 100644 index 72aaa76e81..0000000000 --- a/sdk/constructive-react/src/usage/hooks/mutations/useUpdateAppEventTypeMutation.ts +++ /dev/null @@ -1,110 +0,0 @@ -/** - * Catalog of known event types with per-type configuration for aggregation, retention, and level participation - * @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 { appEventTypeKeys } from '../query-keys'; -import { appEventTypeMutationKeys } from '../mutation-keys'; -import type { - AppEventTypeSelect, - AppEventTypeWithRelations, - AppEventTypePatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppEventTypeSelect, - AppEventTypeWithRelations, - AppEventTypePatch, -} from '../../orm/input-types'; -/** - * Catalog of known event types with per-type configuration for aggregation, retention, and level participation - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateAppEventTypeMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', appEventTypePatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateAppEventTypeMutation( - params: { - selection: { - fields: S & AppEventTypeSelect; - } & HookStrictSelect, AppEventTypeSelect>; - } & Omit< - UseMutationOptions< - { - updateAppEventType: { - appEventType: InferSelectResult; - }; - }, - Error, - { - id: string; - appEventTypePatch: AppEventTypePatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateAppEventType: { - appEventType: InferSelectResult; - }; - }, - Error, - { - id: string; - appEventTypePatch: AppEventTypePatch; - } ->; -export function useUpdateAppEventTypeMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - appEventTypePatch: AppEventTypePatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: appEventTypeMutationKeys.all, - mutationFn: ({ id, appEventTypePatch }: { id: string; appEventTypePatch: AppEventTypePatch }) => - getClient() - .appEventType.update({ - where: { - id, - }, - data: appEventTypePatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: appEventTypeKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: appEventTypeKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/mutations/useUpdateAppLevelGrantMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useUpdateAppLevelGrantMutation.ts deleted file mode 100644 index 12e6bf9cad..0000000000 --- a/sdk/constructive-react/src/usage/hooks/mutations/useUpdateAppLevelGrantMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * Records when a user achieves a level; prevents duplicate reward grants - * @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 { appLevelGrantKeys } from '../query-keys'; -import { appLevelGrantMutationKeys } from '../mutation-keys'; -import type { - AppLevelGrantSelect, - AppLevelGrantWithRelations, - AppLevelGrantPatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppLevelGrantSelect, - AppLevelGrantWithRelations, - AppLevelGrantPatch, -} from '../../orm/input-types'; -/** - * Records when a user achieves a level; prevents duplicate reward grants - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateAppLevelGrantMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', appLevelGrantPatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateAppLevelGrantMutation( - params: { - selection: { - fields: S & AppLevelGrantSelect; - } & HookStrictSelect, AppLevelGrantSelect>; - } & Omit< - UseMutationOptions< - { - updateAppLevelGrant: { - appLevelGrant: InferSelectResult; - }; - }, - Error, - { - id: string; - appLevelGrantPatch: AppLevelGrantPatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateAppLevelGrant: { - appLevelGrant: InferSelectResult; - }; - }, - Error, - { - id: string; - appLevelGrantPatch: AppLevelGrantPatch; - } ->; -export function useUpdateAppLevelGrantMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - appLevelGrantPatch: AppLevelGrantPatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: appLevelGrantMutationKeys.all, - mutationFn: ({ - id, - appLevelGrantPatch, - }: { - id: string; - appLevelGrantPatch: AppLevelGrantPatch; - }) => - getClient() - .appLevelGrant.update({ - where: { - id, - }, - data: appLevelGrantPatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: appLevelGrantKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: appLevelGrantKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/mutations/useUpdateAppLevelMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useUpdateAppLevelMutation.ts deleted file mode 100644 index 726bcffe8f..0000000000 --- a/sdk/constructive-react/src/usage/hooks/mutations/useUpdateAppLevelMutation.ts +++ /dev/null @@ -1,102 +0,0 @@ -/** - * Defines available levels that users can achieve by completing requirements - * @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 { appLevelKeys } from '../query-keys'; -import { appLevelMutationKeys } from '../mutation-keys'; -import type { AppLevelSelect, AppLevelWithRelations, AppLevelPatch } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { AppLevelSelect, AppLevelWithRelations, AppLevelPatch } from '../../orm/input-types'; -/** - * Defines available levels that users can achieve by completing requirements - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateAppLevelMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', appLevelPatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateAppLevelMutation( - params: { - selection: { - fields: S & AppLevelSelect; - } & HookStrictSelect, AppLevelSelect>; - } & Omit< - UseMutationOptions< - { - updateAppLevel: { - appLevel: InferSelectResult; - }; - }, - Error, - { - id: string; - appLevelPatch: AppLevelPatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateAppLevel: { - appLevel: InferSelectResult; - }; - }, - Error, - { - id: string; - appLevelPatch: AppLevelPatch; - } ->; -export function useUpdateAppLevelMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - appLevelPatch: AppLevelPatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: appLevelMutationKeys.all, - mutationFn: ({ id, appLevelPatch }: { id: string; appLevelPatch: AppLevelPatch }) => - getClient() - .appLevel.update({ - where: { - id, - }, - data: appLevelPatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: appLevelKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: appLevelKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/mutations/useUpdateAppLevelRequirementMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useUpdateAppLevelRequirementMutation.ts deleted file mode 100644 index 01e6132c3d..0000000000 --- a/sdk/constructive-react/src/usage/hooks/mutations/useUpdateAppLevelRequirementMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * Defines the specific requirements that must be met to achieve a level - * @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 { appLevelRequirementKeys } from '../query-keys'; -import { appLevelRequirementMutationKeys } from '../mutation-keys'; -import type { - AppLevelRequirementSelect, - AppLevelRequirementWithRelations, - AppLevelRequirementPatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppLevelRequirementSelect, - AppLevelRequirementWithRelations, - AppLevelRequirementPatch, -} from '../../orm/input-types'; -/** - * Defines the specific requirements that must be met to achieve a level - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateAppLevelRequirementMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', appLevelRequirementPatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateAppLevelRequirementMutation( - params: { - selection: { - fields: S & AppLevelRequirementSelect; - } & HookStrictSelect, AppLevelRequirementSelect>; - } & Omit< - UseMutationOptions< - { - updateAppLevelRequirement: { - appLevelRequirement: InferSelectResult; - }; - }, - Error, - { - id: string; - appLevelRequirementPatch: AppLevelRequirementPatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateAppLevelRequirement: { - appLevelRequirement: InferSelectResult; - }; - }, - Error, - { - id: string; - appLevelRequirementPatch: AppLevelRequirementPatch; - } ->; -export function useUpdateAppLevelRequirementMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - appLevelRequirementPatch: AppLevelRequirementPatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: appLevelRequirementMutationKeys.all, - mutationFn: ({ - id, - appLevelRequirementPatch, - }: { - id: string; - appLevelRequirementPatch: AppLevelRequirementPatch; - }) => - getClient() - .appLevelRequirement.update({ - where: { - id, - }, - data: appLevelRequirementPatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: appLevelRequirementKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: appLevelRequirementKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/mutations/useUpdateBillingUsageSummaryMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useUpdateBillingUsageSummaryMutation.ts deleted file mode 100644 index 303554d067..0000000000 --- a/sdk/constructive-react/src/usage/hooks/mutations/useUpdateBillingUsageSummaryMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * Permanent monthly usage summary per entity per meter (user-facing billing dashboard) - * @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 { billingUsageSummaryKeys } from '../query-keys'; -import { billingUsageSummaryMutationKeys } from '../mutation-keys'; -import type { - BillingUsageSummarySelect, - BillingUsageSummaryWithRelations, - BillingUsageSummaryPatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - BillingUsageSummarySelect, - BillingUsageSummaryWithRelations, - BillingUsageSummaryPatch, -} from '../../orm/input-types'; -/** - * Permanent monthly usage summary per entity per meter (user-facing billing dashboard) - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateBillingUsageSummaryMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', billingUsageSummaryPatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateBillingUsageSummaryMutation( - params: { - selection: { - fields: S & BillingUsageSummarySelect; - } & HookStrictSelect, BillingUsageSummarySelect>; - } & Omit< - UseMutationOptions< - { - updateBillingUsageSummary: { - billingUsageSummary: InferSelectResult; - }; - }, - Error, - { - id: string; - billingUsageSummaryPatch: BillingUsageSummaryPatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateBillingUsageSummary: { - billingUsageSummary: InferSelectResult; - }; - }, - Error, - { - id: string; - billingUsageSummaryPatch: BillingUsageSummaryPatch; - } ->; -export function useUpdateBillingUsageSummaryMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - billingUsageSummaryPatch: BillingUsageSummaryPatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: billingUsageSummaryMutationKeys.all, - mutationFn: ({ - id, - billingUsageSummaryPatch, - }: { - id: string; - billingUsageSummaryPatch: BillingUsageSummaryPatch; - }) => - getClient() - .billingUsageSummary.update({ - where: { - id, - }, - data: billingUsageSummaryPatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: billingUsageSummaryKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: billingUsageSummaryKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/mutations/useUpdateLedgerMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useUpdateLedgerMutation.ts deleted file mode 100644 index 6c7125590b..0000000000 --- a/sdk/constructive-react/src/usage/hooks/mutations/useUpdateLedgerMutation.ts +++ /dev/null @@ -1,114 +0,0 @@ -/** - * Append-only event log for all billing events (usage, grants, adjustments) - * @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 { ledgerKeys } from '../query-keys'; -import { ledgerMutationKeys } from '../mutation-keys'; -import type { LedgerSelect, LedgerWithRelations, LedgerPatch } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { LedgerSelect, LedgerWithRelations, LedgerPatch } from '../../orm/input-types'; -/** - * Append-only event log for all billing events (usage, grants, adjustments) - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateLedgerMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', ledgerPatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateLedgerMutation( - params: { - selection: { - fields: S & LedgerSelect; - } & HookStrictSelect, LedgerSelect>; - } & Omit< - UseMutationOptions< - { - updateLedger: { - ledger: InferSelectResult; - }; - }, - Error, - { - id: string; - createdAt: string; - ledgerPatch: LedgerPatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateLedger: { - ledger: InferSelectResult; - }; - }, - Error, - { - id: string; - createdAt: string; - ledgerPatch: LedgerPatch; - } ->; -export function useUpdateLedgerMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - createdAt: string; - ledgerPatch: LedgerPatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: ledgerMutationKeys.all, - mutationFn: ({ - id, - createdAt, - ledgerPatch, - }: { - id: string; - createdAt: string; - ledgerPatch: LedgerPatch; - }) => - getClient() - .ledger.update({ - where: { - id, - createdAt, - }, - data: ledgerPatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: ledgerKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: ledgerKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/mutations/useUpdateMeterCreditMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useUpdateMeterCreditMutation.ts deleted file mode 100644 index 7346835c6b..0000000000 --- a/sdk/constructive-react/src/usage/hooks/mutations/useUpdateMeterCreditMutation.ts +++ /dev/null @@ -1,110 +0,0 @@ -/** - * Append-only ledger of credit grants for billing meters that automatically update balances - * @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 { meterCreditKeys } from '../query-keys'; -import { meterCreditMutationKeys } from '../mutation-keys'; -import type { - MeterCreditSelect, - MeterCreditWithRelations, - MeterCreditPatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - MeterCreditSelect, - MeterCreditWithRelations, - MeterCreditPatch, -} from '../../orm/input-types'; -/** - * Append-only ledger of credit grants for billing meters that automatically update balances - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateMeterCreditMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', meterCreditPatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateMeterCreditMutation( - params: { - selection: { - fields: S & MeterCreditSelect; - } & HookStrictSelect, MeterCreditSelect>; - } & Omit< - UseMutationOptions< - { - updateMeterCredit: { - meterCredit: InferSelectResult; - }; - }, - Error, - { - id: string; - meterCreditPatch: MeterCreditPatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateMeterCredit: { - meterCredit: InferSelectResult; - }; - }, - Error, - { - id: string; - meterCreditPatch: MeterCreditPatch; - } ->; -export function useUpdateMeterCreditMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - meterCreditPatch: MeterCreditPatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: meterCreditMutationKeys.all, - mutationFn: ({ id, meterCreditPatch }: { id: string; meterCreditPatch: MeterCreditPatch }) => - getClient() - .meterCredit.update({ - where: { - id, - }, - data: meterCreditPatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: meterCreditKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: meterCreditKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/mutations/useUpdateMeterDefaultMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useUpdateMeterDefaultMutation.ts deleted file mode 100644 index 16cde1458b..0000000000 --- a/sdk/constructive-react/src/usage/hooks/mutations/useUpdateMeterDefaultMutation.ts +++ /dev/null @@ -1,110 +0,0 @@ -/** - * Default meter catalog: defines which meters are available and their default plan_limit values for new entities - * @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 { meterDefaultKeys } from '../query-keys'; -import { meterDefaultMutationKeys } from '../mutation-keys'; -import type { - MeterDefaultSelect, - MeterDefaultWithRelations, - MeterDefaultPatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - MeterDefaultSelect, - MeterDefaultWithRelations, - MeterDefaultPatch, -} from '../../orm/input-types'; -/** - * Default meter catalog: defines which meters are available and their default plan_limit values for new entities - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateMeterDefaultMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', meterDefaultPatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateMeterDefaultMutation( - params: { - selection: { - fields: S & MeterDefaultSelect; - } & HookStrictSelect, MeterDefaultSelect>; - } & Omit< - UseMutationOptions< - { - updateMeterDefault: { - meterDefault: InferSelectResult; - }; - }, - Error, - { - id: string; - meterDefaultPatch: MeterDefaultPatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateMeterDefault: { - meterDefault: InferSelectResult; - }; - }, - Error, - { - id: string; - meterDefaultPatch: MeterDefaultPatch; - } ->; -export function useUpdateMeterDefaultMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - meterDefaultPatch: MeterDefaultPatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: meterDefaultMutationKeys.all, - mutationFn: ({ id, meterDefaultPatch }: { id: string; meterDefaultPatch: MeterDefaultPatch }) => - getClient() - .meterDefault.update({ - where: { - id, - }, - data: meterDefaultPatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: meterDefaultKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: meterDefaultKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/mutations/useUpdateMeterMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useUpdateMeterMutation.ts deleted file mode 100644 index cf98538ebf..0000000000 --- a/sdk/constructive-react/src/usage/hooks/mutations/useUpdateMeterMutation.ts +++ /dev/null @@ -1,102 +0,0 @@ -/** - * Defines billable meters (what to track: quotas, feature flags, credit pools) - * @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 { meterKeys } from '../query-keys'; -import { meterMutationKeys } from '../mutation-keys'; -import type { MeterSelect, MeterWithRelations, MeterPatch } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { MeterSelect, MeterWithRelations, MeterPatch } from '../../orm/input-types'; -/** - * Defines billable meters (what to track: quotas, feature flags, credit pools) - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateMeterMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', meterPatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateMeterMutation( - params: { - selection: { - fields: S & MeterSelect; - } & HookStrictSelect, MeterSelect>; - } & Omit< - UseMutationOptions< - { - updateMeter: { - meter: InferSelectResult; - }; - }, - Error, - { - id: string; - meterPatch: MeterPatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateMeter: { - meter: InferSelectResult; - }; - }, - Error, - { - id: string; - meterPatch: MeterPatch; - } ->; -export function useUpdateMeterMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - meterPatch: MeterPatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: meterMutationKeys.all, - mutationFn: ({ id, meterPatch }: { id: string; meterPatch: MeterPatch }) => - getClient() - .meter.update({ - where: { - id, - }, - data: meterPatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: meterKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: meterKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/mutations/useUpdateMeterSourceMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useUpdateMeterSourceMutation.ts deleted file mode 100644 index 0709bd85a5..0000000000 --- a/sdk/constructive-react/src/usage/hooks/mutations/useUpdateMeterSourceMutation.ts +++ /dev/null @@ -1,110 +0,0 @@ -/** - * Maps billing meters to typed usage summary table columns for automated usage reconciliation. Each row tells reconcile_typed_usage() which column to aggregate and how. - * @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 { meterSourceKeys } from '../query-keys'; -import { meterSourceMutationKeys } from '../mutation-keys'; -import type { - MeterSourceSelect, - MeterSourceWithRelations, - MeterSourcePatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - MeterSourceSelect, - MeterSourceWithRelations, - MeterSourcePatch, -} from '../../orm/input-types'; -/** - * Maps billing meters to typed usage summary table columns for automated usage reconciliation. Each row tells reconcile_typed_usage() which column to aggregate and how. - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateMeterSourceMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', meterSourcePatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateMeterSourceMutation( - params: { - selection: { - fields: S & MeterSourceSelect; - } & HookStrictSelect, MeterSourceSelect>; - } & Omit< - UseMutationOptions< - { - updateMeterSource: { - meterSource: InferSelectResult; - }; - }, - Error, - { - id: string; - meterSourcePatch: MeterSourcePatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateMeterSource: { - meterSource: InferSelectResult; - }; - }, - Error, - { - id: string; - meterSourcePatch: MeterSourcePatch; - } ->; -export function useUpdateMeterSourceMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - meterSourcePatch: MeterSourcePatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: meterSourceMutationKeys.all, - mutationFn: ({ id, meterSourcePatch }: { id: string; meterSourcePatch: MeterSourcePatch }) => - getClient() - .meterSource.update({ - where: { - id, - }, - data: meterSourcePatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: meterSourceKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: meterSourceKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/mutations/useUpdatePlanCapMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useUpdatePlanCapMutation.ts deleted file mode 100644 index 8dc754b755..0000000000 --- a/sdk/constructive-react/src/usage/hooks/mutations/useUpdatePlanCapMutation.ts +++ /dev/null @@ -1,102 +0,0 @@ -/** - * Maps each plan to feature flag cap values (written to limit_caps when plan is applied) - * @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 { planCapKeys } from '../query-keys'; -import { planCapMutationKeys } from '../mutation-keys'; -import type { PlanCapSelect, PlanCapWithRelations, PlanCapPatch } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { PlanCapSelect, PlanCapWithRelations, PlanCapPatch } from '../../orm/input-types'; -/** - * Maps each plan to feature flag cap values (written to limit_caps when plan is applied) - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdatePlanCapMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', planCapPatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdatePlanCapMutation( - params: { - selection: { - fields: S & PlanCapSelect; - } & HookStrictSelect, PlanCapSelect>; - } & Omit< - UseMutationOptions< - { - updatePlanCap: { - planCap: InferSelectResult; - }; - }, - Error, - { - id: string; - planCapPatch: PlanCapPatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updatePlanCap: { - planCap: InferSelectResult; - }; - }, - Error, - { - id: string; - planCapPatch: PlanCapPatch; - } ->; -export function useUpdatePlanCapMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - planCapPatch: PlanCapPatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: planCapMutationKeys.all, - mutationFn: ({ id, planCapPatch }: { id: string; planCapPatch: PlanCapPatch }) => - getClient() - .planCap.update({ - where: { - id, - }, - data: planCapPatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: planCapKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: planCapKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/mutations/useUpdatePlanLimitMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useUpdatePlanLimitMutation.ts deleted file mode 100644 index dcb4ce914c..0000000000 --- a/sdk/constructive-react/src/usage/hooks/mutations/useUpdatePlanLimitMutation.ts +++ /dev/null @@ -1,110 +0,0 @@ -/** - * Maps each plan to specific limit names and their maximum allowed values - * @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 { planLimitKeys } from '../query-keys'; -import { planLimitMutationKeys } from '../mutation-keys'; -import type { - PlanLimitSelect, - PlanLimitWithRelations, - PlanLimitPatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - PlanLimitSelect, - PlanLimitWithRelations, - PlanLimitPatch, -} from '../../orm/input-types'; -/** - * Maps each plan to specific limit names and their maximum allowed values - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdatePlanLimitMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', planLimitPatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdatePlanLimitMutation( - params: { - selection: { - fields: S & PlanLimitSelect; - } & HookStrictSelect, PlanLimitSelect>; - } & Omit< - UseMutationOptions< - { - updatePlanLimit: { - planLimit: InferSelectResult; - }; - }, - Error, - { - id: string; - planLimitPatch: PlanLimitPatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updatePlanLimit: { - planLimit: InferSelectResult; - }; - }, - Error, - { - id: string; - planLimitPatch: PlanLimitPatch; - } ->; -export function useUpdatePlanLimitMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - planLimitPatch: PlanLimitPatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: planLimitMutationKeys.all, - mutationFn: ({ id, planLimitPatch }: { id: string; planLimitPatch: PlanLimitPatch }) => - getClient() - .planLimit.update({ - where: { - id, - }, - data: planLimitPatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: planLimitKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: planLimitKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/mutations/useUpdatePlanMeterLimitMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useUpdatePlanMeterLimitMutation.ts deleted file mode 100644 index 5e661fc7bd..0000000000 --- a/sdk/constructive-react/src/usage/hooks/mutations/useUpdatePlanMeterLimitMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * Maps each plan to billing meter quotas (plan_limit values written to balances when plan is applied) - * @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 { planMeterLimitKeys } from '../query-keys'; -import { planMeterLimitMutationKeys } from '../mutation-keys'; -import type { - PlanMeterLimitSelect, - PlanMeterLimitWithRelations, - PlanMeterLimitPatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - PlanMeterLimitSelect, - PlanMeterLimitWithRelations, - PlanMeterLimitPatch, -} from '../../orm/input-types'; -/** - * Maps each plan to billing meter quotas (plan_limit values written to balances when plan is applied) - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdatePlanMeterLimitMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', planMeterLimitPatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdatePlanMeterLimitMutation( - params: { - selection: { - fields: S & PlanMeterLimitSelect; - } & HookStrictSelect, PlanMeterLimitSelect>; - } & Omit< - UseMutationOptions< - { - updatePlanMeterLimit: { - planMeterLimit: InferSelectResult; - }; - }, - Error, - { - id: string; - planMeterLimitPatch: PlanMeterLimitPatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updatePlanMeterLimit: { - planMeterLimit: InferSelectResult; - }; - }, - Error, - { - id: string; - planMeterLimitPatch: PlanMeterLimitPatch; - } ->; -export function useUpdatePlanMeterLimitMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - planMeterLimitPatch: PlanMeterLimitPatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: planMeterLimitMutationKeys.all, - mutationFn: ({ - id, - planMeterLimitPatch, - }: { - id: string; - planMeterLimitPatch: PlanMeterLimitPatch; - }) => - getClient() - .planMeterLimit.update({ - where: { - id, - }, - data: planMeterLimitPatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: planMeterLimitKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: planMeterLimitKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/mutations/useUpdatePlanMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useUpdatePlanMutation.ts deleted file mode 100644 index ef0def3a11..0000000000 --- a/sdk/constructive-react/src/usage/hooks/mutations/useUpdatePlanMutation.ts +++ /dev/null @@ -1,102 +0,0 @@ -/** - * Defines plan tiers with named limit configurations - * @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 { planKeys } from '../query-keys'; -import { planMutationKeys } from '../mutation-keys'; -import type { PlanSelect, PlanWithRelations, PlanPatch } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { PlanSelect, PlanWithRelations, PlanPatch } from '../../orm/input-types'; -/** - * Defines plan tiers with named limit configurations - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdatePlanMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', planPatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdatePlanMutation( - params: { - selection: { - fields: S & PlanSelect; - } & HookStrictSelect, PlanSelect>; - } & Omit< - UseMutationOptions< - { - updatePlan: { - plan: InferSelectResult; - }; - }, - Error, - { - id: string; - planPatch: PlanPatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updatePlan: { - plan: InferSelectResult; - }; - }, - Error, - { - id: string; - planPatch: PlanPatch; - } ->; -export function useUpdatePlanMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - planPatch: PlanPatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: planMutationKeys.all, - mutationFn: ({ id, planPatch }: { id: string; planPatch: PlanPatch }) => - getClient() - .plan.update({ - where: { - id, - }, - data: planPatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: planKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: planKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/mutations/useUpdatePlanOverrideMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useUpdatePlanOverrideMutation.ts deleted file mode 100644 index c9dfd89f5c..0000000000 --- a/sdk/constructive-react/src/usage/hooks/mutations/useUpdatePlanOverrideMutation.ts +++ /dev/null @@ -1,110 +0,0 @@ -/** - * Per-entity limit overrides that take precedence over plan defaults - * @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 { planOverrideKeys } from '../query-keys'; -import { planOverrideMutationKeys } from '../mutation-keys'; -import type { - PlanOverrideSelect, - PlanOverrideWithRelations, - PlanOverridePatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - PlanOverrideSelect, - PlanOverrideWithRelations, - PlanOverridePatch, -} from '../../orm/input-types'; -/** - * Per-entity limit overrides that take precedence over plan defaults - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdatePlanOverrideMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', planOverridePatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdatePlanOverrideMutation( - params: { - selection: { - fields: S & PlanOverrideSelect; - } & HookStrictSelect, PlanOverrideSelect>; - } & Omit< - UseMutationOptions< - { - updatePlanOverride: { - planOverride: InferSelectResult; - }; - }, - Error, - { - id: string; - planOverridePatch: PlanOverridePatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updatePlanOverride: { - planOverride: InferSelectResult; - }; - }, - Error, - { - id: string; - planOverridePatch: PlanOverridePatch; - } ->; -export function useUpdatePlanOverrideMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - planOverridePatch: PlanOverridePatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: planOverrideMutationKeys.all, - mutationFn: ({ id, planOverridePatch }: { id: string; planOverridePatch: PlanOverridePatch }) => - getClient() - .planOverride.update({ - where: { - id, - }, - data: planOverridePatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: planOverrideKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: planOverrideKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/mutations/useUpdatePlanPricingMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useUpdatePlanPricingMutation.ts deleted file mode 100644 index b6263f2d3b..0000000000 --- a/sdk/constructive-react/src/usage/hooks/mutations/useUpdatePlanPricingMutation.ts +++ /dev/null @@ -1,110 +0,0 @@ -/** - * Billing intervals and pricing for each plan tier - * @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 { planPricingKeys } from '../query-keys'; -import { planPricingMutationKeys } from '../mutation-keys'; -import type { - PlanPricingSelect, - PlanPricingWithRelations, - PlanPricingPatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - PlanPricingSelect, - PlanPricingWithRelations, - PlanPricingPatch, -} from '../../orm/input-types'; -/** - * Billing intervals and pricing for each plan tier - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdatePlanPricingMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', planPricingPatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdatePlanPricingMutation( - params: { - selection: { - fields: S & PlanPricingSelect; - } & HookStrictSelect, PlanPricingSelect>; - } & Omit< - UseMutationOptions< - { - updatePlanPricing: { - planPricing: InferSelectResult; - }; - }, - Error, - { - id: string; - planPricingPatch: PlanPricingPatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updatePlanPricing: { - planPricing: InferSelectResult; - }; - }, - Error, - { - id: string; - planPricingPatch: PlanPricingPatch; - } ->; -export function useUpdatePlanPricingMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - planPricingPatch: PlanPricingPatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: planPricingMutationKeys.all, - mutationFn: ({ id, planPricingPatch }: { id: string; planPricingPatch: PlanPricingPatch }) => - getClient() - .planPricing.update({ - where: { - id, - }, - data: planPricingPatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: planPricingKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: planPricingKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/mutations/useUpdatePlanSubscriptionMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useUpdatePlanSubscriptionMutation.ts deleted file mode 100644 index 02ca42d017..0000000000 --- a/sdk/constructive-react/src/usage/hooks/mutations/useUpdatePlanSubscriptionMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * Assigns a plan to an entity with subscription lifecycle (start, end, active state) - * @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 { planSubscriptionKeys } from '../query-keys'; -import { planSubscriptionMutationKeys } from '../mutation-keys'; -import type { - PlanSubscriptionSelect, - PlanSubscriptionWithRelations, - PlanSubscriptionPatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - PlanSubscriptionSelect, - PlanSubscriptionWithRelations, - PlanSubscriptionPatch, -} from '../../orm/input-types'; -/** - * Assigns a plan to an entity with subscription lifecycle (start, end, active state) - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdatePlanSubscriptionMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', planSubscriptionPatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdatePlanSubscriptionMutation( - params: { - selection: { - fields: S & PlanSubscriptionSelect; - } & HookStrictSelect, PlanSubscriptionSelect>; - } & Omit< - UseMutationOptions< - { - updatePlanSubscription: { - planSubscription: InferSelectResult; - }; - }, - Error, - { - id: string; - planSubscriptionPatch: PlanSubscriptionPatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updatePlanSubscription: { - planSubscription: InferSelectResult; - }; - }, - Error, - { - id: string; - planSubscriptionPatch: PlanSubscriptionPatch; - } ->; -export function useUpdatePlanSubscriptionMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - planSubscriptionPatch: PlanSubscriptionPatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: planSubscriptionMutationKeys.all, - mutationFn: ({ - id, - planSubscriptionPatch, - }: { - id: string; - planSubscriptionPatch: PlanSubscriptionPatch; - }) => - getClient() - .planSubscription.update({ - where: { - id, - }, - data: planSubscriptionPatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: planSubscriptionKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: planSubscriptionKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/queries/index.ts b/sdk/constructive-react/src/usage/hooks/queries/index.ts index c46706db5e..c4ee27d455 100644 --- a/sdk/constructive-react/src/usage/hooks/queries/index.ts +++ b/sdk/constructive-react/src/usage/hooks/queries/index.ts @@ -3,20 +3,6 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ -export * from './useAppAchievementRewardsQuery'; -export * from './useAppAchievementRewardQuery'; -export * from './useAppEventAggregatesQuery'; -export * from './useAppEventAggregateQuery'; -export * from './useAppEventsQuery'; -export * from './useAppEventQuery'; -export * from './useAppEventTypesQuery'; -export * from './useAppEventTypeQuery'; -export * from './useAppLevelsQuery'; -export * from './useAppLevelQuery'; -export * from './useAppLevelGrantsQuery'; -export * from './useAppLevelGrantQuery'; -export * from './useAppLevelRequirementsQuery'; -export * from './useAppLevelRequirementQuery'; export * from './useAppLimitCapsQuery'; export * from './useAppLimitCapQuery'; export * from './useAppLimitCapsDefaultsQuery'; @@ -37,18 +23,6 @@ export * from './useAppLimitEventsQuery'; export * from './useAppLimitEventQuery'; export * from './useAppLimitWarningsQuery'; export * from './useAppLimitWarningQuery'; -export * from './useBillingUsageSummariesQuery'; -export * from './useBillingUsageSummaryQuery'; -export * from './useLedgersQuery'; -export * from './useLedgerQuery'; -export * from './useMetersQuery'; -export * from './useMeterQuery'; -export * from './useMeterCreditsQuery'; -export * from './useMeterCreditQuery'; -export * from './useMeterDefaultsQuery'; -export * from './useMeterDefaultQuery'; -export * from './useMeterSourcesQuery'; -export * from './useMeterSourceQuery'; export * from './useOrgLimitAggregatesQuery'; export * from './useOrgLimitAggregateQuery'; export * from './useOrgLimitCapsQuery'; @@ -65,22 +39,5 @@ export * from './useOrgLimitEventsQuery'; export * from './useOrgLimitEventQuery'; export * from './useOrgLimitWarningsQuery'; export * from './useOrgLimitWarningQuery'; -export * from './usePlanCapsQuery'; -export * from './usePlanCapQuery'; -export * from './usePlansQuery'; -export * from './usePlanQuery'; -export * from './usePlanLimitsQuery'; -export * from './usePlanLimitQuery'; -export * from './usePlanMeterLimitsQuery'; -export * from './usePlanMeterLimitQuery'; -export * from './usePlanOverridesQuery'; -export * from './usePlanOverrideQuery'; -export * from './usePlanPricingsQuery'; -export * from './usePlanPricingQuery'; -export * from './usePlanSubscriptionsQuery'; -export * from './usePlanSubscriptionQuery'; export * from './useCaptureAppLimitDefaultsQuery'; export * from './useCaptureOrgLimitDefaultsQuery'; -export * from './useCaptureTrustLadderQuery'; -export * from './useEventsAchievedQuery'; -export * from './useEventsRequiredQuery'; diff --git a/sdk/constructive-react/src/usage/hooks/queries/useAppAchievementRewardQuery.ts b/sdk/constructive-react/src/usage/hooks/queries/useAppAchievementRewardQuery.ts deleted file mode 100644 index 115e7d29e8..0000000000 --- a/sdk/constructive-react/src/usage/hooks/queries/useAppAchievementRewardQuery.ts +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Defines rewards granted when a level is achieved; supports limit_credits and meter_credits - * @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 { appAchievementRewardKeys } from '../query-keys'; -import type { - AppAchievementRewardSelect, - AppAchievementRewardWithRelations, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppAchievementRewardSelect, - AppAchievementRewardWithRelations, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const appAchievementRewardQueryKey = appAchievementRewardKeys.detail; -/** - * Defines rewards granted when a level is achieved; supports limit_credits and meter_credits - * - * @example - * ```tsx - * const { data, isLoading } = useAppAchievementRewardQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useAppAchievementRewardQuery< - S extends AppAchievementRewardSelect, - TData = { - appAchievementReward: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppAchievementRewardSelect>; - } & Omit< - UseQueryOptions< - { - appAchievementReward: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAppAchievementRewardQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: appAchievementRewardKeys.detail(params.id), - queryFn: () => - getClient() - .appAchievementReward.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Defines rewards granted when a level is achieved; supports limit_credits and meter_credits - * - * @example - * ```ts - * const data = await fetchAppAchievementRewardQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchAppAchievementRewardQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppAchievementRewardSelect>; -}): Promise<{ - appAchievementReward: InferSelectResult | null; -}>; -export async function fetchAppAchievementRewardQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .appAchievementReward.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Defines rewards granted when a level is achieved; supports limit_credits and meter_credits - * - * @example - * ```ts - * await prefetchAppAchievementRewardQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchAppAchievementRewardQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppAchievementRewardSelect>; - } -): Promise; -export async function prefetchAppAchievementRewardQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: appAchievementRewardKeys.detail(params.id), - queryFn: () => - getClient() - .appAchievementReward.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/queries/useAppAchievementRewardsQuery.ts b/sdk/constructive-react/src/usage/hooks/queries/useAppAchievementRewardsQuery.ts deleted file mode 100644 index fe76d0f47f..0000000000 --- a/sdk/constructive-react/src/usage/hooks/queries/useAppAchievementRewardsQuery.ts +++ /dev/null @@ -1,178 +0,0 @@ -/** - * Defines rewards granted when a level is achieved; supports limit_credits and meter_credits - * @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 { appAchievementRewardKeys } from '../query-keys'; -import type { - AppAchievementRewardSelect, - AppAchievementRewardWithRelations, - AppAchievementRewardFilter, - AppAchievementRewardOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - AppAchievementRewardSelect, - AppAchievementRewardWithRelations, - AppAchievementRewardFilter, - AppAchievementRewardOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const appAchievementRewardsQueryKey = appAchievementRewardKeys.list; -/** - * Defines rewards granted when a level is achieved; supports limit_credits and meter_credits - * - * @example - * ```tsx - * const { data, isLoading } = useAppAchievementRewardsQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useAppAchievementRewardsQuery< - S extends AppAchievementRewardSelect, - TData = { - appAchievementRewards: ConnectionResult< - InferSelectResult - >; - }, ->( - params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, AppAchievementRewardSelect>; - } & Omit< - UseQueryOptions< - { - appAchievementRewards: ConnectionResult< - InferSelectResult - >; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAppAchievementRewardsQuery( - params: { - selection: ListSelectionConfig< - AppAchievementRewardSelect, - AppAchievementRewardFilter, - AppAchievementRewardOrderBy - >; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs< - AppAchievementRewardSelect, - AppAchievementRewardFilter, - AppAchievementRewardOrderBy - >(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: appAchievementRewardKeys.list(args), - queryFn: () => getClient().appAchievementReward.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Defines rewards granted when a level is achieved; supports limit_credits and meter_credits - * - * @example - * ```ts - * const data = await fetchAppAchievementRewardsQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchAppAchievementRewardsQuery< - S extends AppAchievementRewardSelect, ->(params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, AppAchievementRewardSelect>; -}): Promise<{ - appAchievementRewards: ConnectionResult>; -}>; -export async function fetchAppAchievementRewardsQuery(params: { - selection: ListSelectionConfig< - AppAchievementRewardSelect, - AppAchievementRewardFilter, - AppAchievementRewardOrderBy - >; -}) { - const args = buildListSelectionArgs< - AppAchievementRewardSelect, - AppAchievementRewardFilter, - AppAchievementRewardOrderBy - >(params.selection); - return getClient().appAchievementReward.findMany(args).unwrap(); -} -/** - * Defines rewards granted when a level is achieved; supports limit_credits and meter_credits - * - * @example - * ```ts - * await prefetchAppAchievementRewardsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchAppAchievementRewardsQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, AppAchievementRewardSelect>; - } -): Promise; -export async function prefetchAppAchievementRewardsQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig< - AppAchievementRewardSelect, - AppAchievementRewardFilter, - AppAchievementRewardOrderBy - >; - } -): Promise { - const args = buildListSelectionArgs< - AppAchievementRewardSelect, - AppAchievementRewardFilter, - AppAchievementRewardOrderBy - >(params.selection); - await queryClient.prefetchQuery({ - queryKey: appAchievementRewardKeys.list(args), - queryFn: () => getClient().appAchievementReward.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/queries/useAppEventAggregateQuery.ts b/sdk/constructive-react/src/usage/hooks/queries/useAppEventAggregateQuery.ts deleted file mode 100644 index cea225f4ec..0000000000 --- a/sdk/constructive-react/src/usage/hooks/queries/useAppEventAggregateQuery.ts +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually - * @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 { appEventAggregateKeys } from '../query-keys'; -import type { - AppEventAggregateSelect, - AppEventAggregateWithRelations, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppEventAggregateSelect, - AppEventAggregateWithRelations, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const appEventAggregateQueryKey = appEventAggregateKeys.detail; -/** - * Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually - * - * @example - * ```tsx - * const { data, isLoading } = useAppEventAggregateQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useAppEventAggregateQuery< - S extends AppEventAggregateSelect, - TData = { - appEventAggregate: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppEventAggregateSelect>; - } & Omit< - UseQueryOptions< - { - appEventAggregate: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAppEventAggregateQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: appEventAggregateKeys.detail(params.id), - queryFn: () => - getClient() - .appEventAggregate.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually - * - * @example - * ```ts - * const data = await fetchAppEventAggregateQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchAppEventAggregateQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppEventAggregateSelect>; -}): Promise<{ - appEventAggregate: InferSelectResult | null; -}>; -export async function fetchAppEventAggregateQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .appEventAggregate.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually - * - * @example - * ```ts - * await prefetchAppEventAggregateQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchAppEventAggregateQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppEventAggregateSelect>; - } -): Promise; -export async function prefetchAppEventAggregateQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: appEventAggregateKeys.detail(params.id), - queryFn: () => - getClient() - .appEventAggregate.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/queries/useAppEventAggregatesQuery.ts b/sdk/constructive-react/src/usage/hooks/queries/useAppEventAggregatesQuery.ts deleted file mode 100644 index e5b349fb8d..0000000000 --- a/sdk/constructive-react/src/usage/hooks/queries/useAppEventAggregatesQuery.ts +++ /dev/null @@ -1,163 +0,0 @@ -/** - * Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually - * @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 { appEventAggregateKeys } from '../query-keys'; -import type { - AppEventAggregateSelect, - AppEventAggregateWithRelations, - AppEventAggregateFilter, - AppEventAggregateOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - AppEventAggregateSelect, - AppEventAggregateWithRelations, - AppEventAggregateFilter, - AppEventAggregateOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const appEventAggregatesQueryKey = appEventAggregateKeys.list; -/** - * Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually - * - * @example - * ```tsx - * const { data, isLoading } = useAppEventAggregatesQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useAppEventAggregatesQuery< - S extends AppEventAggregateSelect, - TData = { - appEventAggregates: ConnectionResult>; - }, ->( - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, AppEventAggregateSelect>; - } & Omit< - UseQueryOptions< - { - appEventAggregates: ConnectionResult>; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAppEventAggregatesQuery( - params: { - selection: ListSelectionConfig< - AppEventAggregateSelect, - AppEventAggregateFilter, - AppEventAggregateOrderBy - >; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs< - AppEventAggregateSelect, - AppEventAggregateFilter, - AppEventAggregateOrderBy - >(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: appEventAggregateKeys.list(args), - queryFn: () => getClient().appEventAggregate.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually - * - * @example - * ```ts - * const data = await fetchAppEventAggregatesQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchAppEventAggregatesQuery(params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, AppEventAggregateSelect>; -}): Promise<{ - appEventAggregates: ConnectionResult>; -}>; -export async function fetchAppEventAggregatesQuery(params: { - selection: ListSelectionConfig< - AppEventAggregateSelect, - AppEventAggregateFilter, - AppEventAggregateOrderBy - >; -}) { - const args = buildListSelectionArgs< - AppEventAggregateSelect, - AppEventAggregateFilter, - AppEventAggregateOrderBy - >(params.selection); - return getClient().appEventAggregate.findMany(args).unwrap(); -} -/** - * Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually - * - * @example - * ```ts - * await prefetchAppEventAggregatesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchAppEventAggregatesQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, AppEventAggregateSelect>; - } -): Promise; -export async function prefetchAppEventAggregatesQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig< - AppEventAggregateSelect, - AppEventAggregateFilter, - AppEventAggregateOrderBy - >; - } -): Promise { - const args = buildListSelectionArgs< - AppEventAggregateSelect, - AppEventAggregateFilter, - AppEventAggregateOrderBy - >(params.selection); - await queryClient.prefetchQuery({ - queryKey: appEventAggregateKeys.list(args), - queryFn: () => getClient().appEventAggregate.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/queries/useAppEventQuery.ts b/sdk/constructive-react/src/usage/hooks/queries/useAppEventQuery.ts deleted file mode 100644 index 6dcd03b95e..0000000000 --- a/sdk/constructive-react/src/usage/hooks/queries/useAppEventQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * Partitioned append-only log of individual user actions; every single event ever recorded - * @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 { appEventKeys } from '../query-keys'; -import type { AppEventSelect, AppEventWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { AppEventSelect, AppEventWithRelations } from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const appEventQueryKey = appEventKeys.detail; -/** - * Partitioned append-only log of individual user actions; every single event ever recorded - * - * @example - * ```tsx - * const { data, isLoading } = useAppEventQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useAppEventQuery< - S extends AppEventSelect, - TData = { - appEvent: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppEventSelect>; - } & Omit< - UseQueryOptions< - { - appEvent: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAppEventQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: appEventKeys.detail(params.id), - queryFn: () => - getClient() - .appEvent.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Partitioned append-only log of individual user actions; every single event ever recorded - * - * @example - * ```ts - * const data = await fetchAppEventQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchAppEventQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppEventSelect>; -}): Promise<{ - appEvent: InferSelectResult | null; -}>; -export async function fetchAppEventQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .appEvent.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Partitioned append-only log of individual user actions; every single event ever recorded - * - * @example - * ```ts - * await prefetchAppEventQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchAppEventQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppEventSelect>; - } -): Promise; -export async function prefetchAppEventQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: appEventKeys.detail(params.id), - queryFn: () => - getClient() - .appEvent.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/queries/useAppEventTypeQuery.ts b/sdk/constructive-react/src/usage/hooks/queries/useAppEventTypeQuery.ts deleted file mode 100644 index b6edaae951..0000000000 --- a/sdk/constructive-react/src/usage/hooks/queries/useAppEventTypeQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * Catalog of known event types with per-type configuration for aggregation, retention, and level participation - * @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 { appEventTypeKeys } from '../query-keys'; -import type { AppEventTypeSelect, AppEventTypeWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { AppEventTypeSelect, AppEventTypeWithRelations } from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const appEventTypeQueryKey = appEventTypeKeys.detail; -/** - * Catalog of known event types with per-type configuration for aggregation, retention, and level participation - * - * @example - * ```tsx - * const { data, isLoading } = useAppEventTypeQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useAppEventTypeQuery< - S extends AppEventTypeSelect, - TData = { - appEventType: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppEventTypeSelect>; - } & Omit< - UseQueryOptions< - { - appEventType: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAppEventTypeQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: appEventTypeKeys.detail(params.id), - queryFn: () => - getClient() - .appEventType.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Catalog of known event types with per-type configuration for aggregation, retention, and level participation - * - * @example - * ```ts - * const data = await fetchAppEventTypeQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchAppEventTypeQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppEventTypeSelect>; -}): Promise<{ - appEventType: InferSelectResult | null; -}>; -export async function fetchAppEventTypeQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .appEventType.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Catalog of known event types with per-type configuration for aggregation, retention, and level participation - * - * @example - * ```ts - * await prefetchAppEventTypeQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchAppEventTypeQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppEventTypeSelect>; - } -): Promise; -export async function prefetchAppEventTypeQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: appEventTypeKeys.detail(params.id), - queryFn: () => - getClient() - .appEventType.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/queries/useAppEventTypesQuery.ts b/sdk/constructive-react/src/usage/hooks/queries/useAppEventTypesQuery.ts deleted file mode 100644 index f61369ae33..0000000000 --- a/sdk/constructive-react/src/usage/hooks/queries/useAppEventTypesQuery.ts +++ /dev/null @@ -1,145 +0,0 @@ -/** - * Catalog of known event types with per-type configuration for aggregation, retention, and level participation - * @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 { appEventTypeKeys } from '../query-keys'; -import type { - AppEventTypeSelect, - AppEventTypeWithRelations, - AppEventTypeFilter, - AppEventTypeOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - AppEventTypeSelect, - AppEventTypeWithRelations, - AppEventTypeFilter, - AppEventTypeOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const appEventTypesQueryKey = appEventTypeKeys.list; -/** - * Catalog of known event types with per-type configuration for aggregation, retention, and level participation - * - * @example - * ```tsx - * const { data, isLoading } = useAppEventTypesQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useAppEventTypesQuery< - S extends AppEventTypeSelect, - TData = { - appEventTypes: ConnectionResult>; - }, ->( - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, AppEventTypeSelect>; - } & Omit< - UseQueryOptions< - { - appEventTypes: ConnectionResult>; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAppEventTypesQuery( - params: { - selection: ListSelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs( - params.selection - ); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: appEventTypeKeys.list(args), - queryFn: () => getClient().appEventType.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Catalog of known event types with per-type configuration for aggregation, retention, and level participation - * - * @example - * ```ts - * const data = await fetchAppEventTypesQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchAppEventTypesQuery(params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, AppEventTypeSelect>; -}): Promise<{ - appEventTypes: ConnectionResult>; -}>; -export async function fetchAppEventTypesQuery(params: { - selection: ListSelectionConfig; -}) { - const args = buildListSelectionArgs( - params.selection - ); - return getClient().appEventType.findMany(args).unwrap(); -} -/** - * Catalog of known event types with per-type configuration for aggregation, retention, and level participation - * - * @example - * ```ts - * await prefetchAppEventTypesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchAppEventTypesQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, AppEventTypeSelect>; - } -): Promise; -export async function prefetchAppEventTypesQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig; - } -): Promise { - const args = buildListSelectionArgs( - params.selection - ); - await queryClient.prefetchQuery({ - queryKey: appEventTypeKeys.list(args), - queryFn: () => getClient().appEventType.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/queries/useAppEventsQuery.ts b/sdk/constructive-react/src/usage/hooks/queries/useAppEventsQuery.ts deleted file mode 100644 index a6bbefe1ce..0000000000 --- a/sdk/constructive-react/src/usage/hooks/queries/useAppEventsQuery.ts +++ /dev/null @@ -1,145 +0,0 @@ -/** - * Partitioned append-only log of individual user actions; every single event ever recorded - * @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 { appEventKeys } from '../query-keys'; -import type { - AppEventSelect, - AppEventWithRelations, - AppEventFilter, - AppEventOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - AppEventSelect, - AppEventWithRelations, - AppEventFilter, - AppEventOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const appEventsQueryKey = appEventKeys.list; -/** - * Partitioned append-only log of individual user actions; every single event ever recorded - * - * @example - * ```tsx - * const { data, isLoading } = useAppEventsQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useAppEventsQuery< - S extends AppEventSelect, - TData = { - appEvents: ConnectionResult>; - }, ->( - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, AppEventSelect>; - } & Omit< - UseQueryOptions< - { - appEvents: ConnectionResult>; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAppEventsQuery( - params: { - selection: ListSelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs( - params.selection - ); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: appEventKeys.list(args), - queryFn: () => getClient().appEvent.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Partitioned append-only log of individual user actions; every single event ever recorded - * - * @example - * ```ts - * const data = await fetchAppEventsQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchAppEventsQuery(params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, AppEventSelect>; -}): Promise<{ - appEvents: ConnectionResult>; -}>; -export async function fetchAppEventsQuery(params: { - selection: ListSelectionConfig; -}) { - const args = buildListSelectionArgs( - params.selection - ); - return getClient().appEvent.findMany(args).unwrap(); -} -/** - * Partitioned append-only log of individual user actions; every single event ever recorded - * - * @example - * ```ts - * await prefetchAppEventsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchAppEventsQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, AppEventSelect>; - } -): Promise; -export async function prefetchAppEventsQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig; - } -): Promise { - const args = buildListSelectionArgs( - params.selection - ); - await queryClient.prefetchQuery({ - queryKey: appEventKeys.list(args), - queryFn: () => getClient().appEvent.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/queries/useAppLevelGrantQuery.ts b/sdk/constructive-react/src/usage/hooks/queries/useAppLevelGrantQuery.ts deleted file mode 100644 index 419f79f205..0000000000 --- a/sdk/constructive-react/src/usage/hooks/queries/useAppLevelGrantQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * Records when a user achieves a level; prevents duplicate reward grants - * @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 { appLevelGrantKeys } from '../query-keys'; -import type { AppLevelGrantSelect, AppLevelGrantWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { AppLevelGrantSelect, AppLevelGrantWithRelations } from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const appLevelGrantQueryKey = appLevelGrantKeys.detail; -/** - * Records when a user achieves a level; prevents duplicate reward grants - * - * @example - * ```tsx - * const { data, isLoading } = useAppLevelGrantQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useAppLevelGrantQuery< - S extends AppLevelGrantSelect, - TData = { - appLevelGrant: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppLevelGrantSelect>; - } & Omit< - UseQueryOptions< - { - appLevelGrant: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAppLevelGrantQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: appLevelGrantKeys.detail(params.id), - queryFn: () => - getClient() - .appLevelGrant.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Records when a user achieves a level; prevents duplicate reward grants - * - * @example - * ```ts - * const data = await fetchAppLevelGrantQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchAppLevelGrantQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppLevelGrantSelect>; -}): Promise<{ - appLevelGrant: InferSelectResult | null; -}>; -export async function fetchAppLevelGrantQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .appLevelGrant.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Records when a user achieves a level; prevents duplicate reward grants - * - * @example - * ```ts - * await prefetchAppLevelGrantQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchAppLevelGrantQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppLevelGrantSelect>; - } -): Promise; -export async function prefetchAppLevelGrantQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: appLevelGrantKeys.detail(params.id), - queryFn: () => - getClient() - .appLevelGrant.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/queries/useAppLevelGrantsQuery.ts b/sdk/constructive-react/src/usage/hooks/queries/useAppLevelGrantsQuery.ts deleted file mode 100644 index 09308964b4..0000000000 --- a/sdk/constructive-react/src/usage/hooks/queries/useAppLevelGrantsQuery.ts +++ /dev/null @@ -1,151 +0,0 @@ -/** - * Records when a user achieves a level; prevents duplicate reward grants - * @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 { appLevelGrantKeys } from '../query-keys'; -import type { - AppLevelGrantSelect, - AppLevelGrantWithRelations, - AppLevelGrantFilter, - AppLevelGrantOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - AppLevelGrantSelect, - AppLevelGrantWithRelations, - AppLevelGrantFilter, - AppLevelGrantOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const appLevelGrantsQueryKey = appLevelGrantKeys.list; -/** - * Records when a user achieves a level; prevents duplicate reward grants - * - * @example - * ```tsx - * const { data, isLoading } = useAppLevelGrantsQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useAppLevelGrantsQuery< - S extends AppLevelGrantSelect, - TData = { - appLevelGrants: ConnectionResult>; - }, ->( - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, AppLevelGrantSelect>; - } & Omit< - UseQueryOptions< - { - appLevelGrants: ConnectionResult>; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAppLevelGrantsQuery( - params: { - selection: ListSelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs< - AppLevelGrantSelect, - AppLevelGrantFilter, - AppLevelGrantOrderBy - >(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: appLevelGrantKeys.list(args), - queryFn: () => getClient().appLevelGrant.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Records when a user achieves a level; prevents duplicate reward grants - * - * @example - * ```ts - * const data = await fetchAppLevelGrantsQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchAppLevelGrantsQuery(params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, AppLevelGrantSelect>; -}): Promise<{ - appLevelGrants: ConnectionResult>; -}>; -export async function fetchAppLevelGrantsQuery(params: { - selection: ListSelectionConfig; -}) { - const args = buildListSelectionArgs< - AppLevelGrantSelect, - AppLevelGrantFilter, - AppLevelGrantOrderBy - >(params.selection); - return getClient().appLevelGrant.findMany(args).unwrap(); -} -/** - * Records when a user achieves a level; prevents duplicate reward grants - * - * @example - * ```ts - * await prefetchAppLevelGrantsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchAppLevelGrantsQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, AppLevelGrantSelect>; - } -): Promise; -export async function prefetchAppLevelGrantsQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig; - } -): Promise { - const args = buildListSelectionArgs< - AppLevelGrantSelect, - AppLevelGrantFilter, - AppLevelGrantOrderBy - >(params.selection); - await queryClient.prefetchQuery({ - queryKey: appLevelGrantKeys.list(args), - queryFn: () => getClient().appLevelGrant.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/queries/useAppLevelQuery.ts b/sdk/constructive-react/src/usage/hooks/queries/useAppLevelQuery.ts deleted file mode 100644 index 7458afb091..0000000000 --- a/sdk/constructive-react/src/usage/hooks/queries/useAppLevelQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * Defines available levels that users can achieve by completing requirements - * @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 { appLevelKeys } from '../query-keys'; -import type { AppLevelSelect, AppLevelWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { AppLevelSelect, AppLevelWithRelations } from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const appLevelQueryKey = appLevelKeys.detail; -/** - * Defines available levels that users can achieve by completing requirements - * - * @example - * ```tsx - * const { data, isLoading } = useAppLevelQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useAppLevelQuery< - S extends AppLevelSelect, - TData = { - appLevel: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppLevelSelect>; - } & Omit< - UseQueryOptions< - { - appLevel: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAppLevelQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: appLevelKeys.detail(params.id), - queryFn: () => - getClient() - .appLevel.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Defines available levels that users can achieve by completing requirements - * - * @example - * ```ts - * const data = await fetchAppLevelQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchAppLevelQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppLevelSelect>; -}): Promise<{ - appLevel: InferSelectResult | null; -}>; -export async function fetchAppLevelQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .appLevel.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Defines available levels that users can achieve by completing requirements - * - * @example - * ```ts - * await prefetchAppLevelQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchAppLevelQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppLevelSelect>; - } -): Promise; -export async function prefetchAppLevelQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: appLevelKeys.detail(params.id), - queryFn: () => - getClient() - .appLevel.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/queries/useAppLevelRequirementQuery.ts b/sdk/constructive-react/src/usage/hooks/queries/useAppLevelRequirementQuery.ts deleted file mode 100644 index 1ff58327f2..0000000000 --- a/sdk/constructive-react/src/usage/hooks/queries/useAppLevelRequirementQuery.ts +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Defines the specific requirements that must be met to achieve a level - * @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 { appLevelRequirementKeys } from '../query-keys'; -import type { - AppLevelRequirementSelect, - AppLevelRequirementWithRelations, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppLevelRequirementSelect, - AppLevelRequirementWithRelations, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const appLevelRequirementQueryKey = appLevelRequirementKeys.detail; -/** - * Defines the specific requirements that must be met to achieve a level - * - * @example - * ```tsx - * const { data, isLoading } = useAppLevelRequirementQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useAppLevelRequirementQuery< - S extends AppLevelRequirementSelect, - TData = { - appLevelRequirement: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppLevelRequirementSelect>; - } & Omit< - UseQueryOptions< - { - appLevelRequirement: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAppLevelRequirementQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: appLevelRequirementKeys.detail(params.id), - queryFn: () => - getClient() - .appLevelRequirement.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Defines the specific requirements that must be met to achieve a level - * - * @example - * ```ts - * const data = await fetchAppLevelRequirementQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchAppLevelRequirementQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppLevelRequirementSelect>; -}): Promise<{ - appLevelRequirement: InferSelectResult | null; -}>; -export async function fetchAppLevelRequirementQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .appLevelRequirement.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Defines the specific requirements that must be met to achieve a level - * - * @example - * ```ts - * await prefetchAppLevelRequirementQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchAppLevelRequirementQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppLevelRequirementSelect>; - } -): Promise; -export async function prefetchAppLevelRequirementQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: appLevelRequirementKeys.detail(params.id), - queryFn: () => - getClient() - .appLevelRequirement.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/queries/useAppLevelRequirementsQuery.ts b/sdk/constructive-react/src/usage/hooks/queries/useAppLevelRequirementsQuery.ts deleted file mode 100644 index 7dd162330a..0000000000 --- a/sdk/constructive-react/src/usage/hooks/queries/useAppLevelRequirementsQuery.ts +++ /dev/null @@ -1,174 +0,0 @@ -/** - * Defines the specific requirements that must be met to achieve a level - * @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 { appLevelRequirementKeys } from '../query-keys'; -import type { - AppLevelRequirementSelect, - AppLevelRequirementWithRelations, - AppLevelRequirementFilter, - AppLevelRequirementOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - AppLevelRequirementSelect, - AppLevelRequirementWithRelations, - AppLevelRequirementFilter, - AppLevelRequirementOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const appLevelRequirementsQueryKey = appLevelRequirementKeys.list; -/** - * Defines the specific requirements that must be met to achieve a level - * - * @example - * ```tsx - * const { data, isLoading } = useAppLevelRequirementsQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useAppLevelRequirementsQuery< - S extends AppLevelRequirementSelect, - TData = { - appLevelRequirements: ConnectionResult>; - }, ->( - params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, AppLevelRequirementSelect>; - } & Omit< - UseQueryOptions< - { - appLevelRequirements: ConnectionResult< - InferSelectResult - >; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAppLevelRequirementsQuery( - params: { - selection: ListSelectionConfig< - AppLevelRequirementSelect, - AppLevelRequirementFilter, - AppLevelRequirementOrderBy - >; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs< - AppLevelRequirementSelect, - AppLevelRequirementFilter, - AppLevelRequirementOrderBy - >(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: appLevelRequirementKeys.list(args), - queryFn: () => getClient().appLevelRequirement.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Defines the specific requirements that must be met to achieve a level - * - * @example - * ```ts - * const data = await fetchAppLevelRequirementsQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchAppLevelRequirementsQuery(params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, AppLevelRequirementSelect>; -}): Promise<{ - appLevelRequirements: ConnectionResult>; -}>; -export async function fetchAppLevelRequirementsQuery(params: { - selection: ListSelectionConfig< - AppLevelRequirementSelect, - AppLevelRequirementFilter, - AppLevelRequirementOrderBy - >; -}) { - const args = buildListSelectionArgs< - AppLevelRequirementSelect, - AppLevelRequirementFilter, - AppLevelRequirementOrderBy - >(params.selection); - return getClient().appLevelRequirement.findMany(args).unwrap(); -} -/** - * Defines the specific requirements that must be met to achieve a level - * - * @example - * ```ts - * await prefetchAppLevelRequirementsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchAppLevelRequirementsQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, AppLevelRequirementSelect>; - } -): Promise; -export async function prefetchAppLevelRequirementsQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig< - AppLevelRequirementSelect, - AppLevelRequirementFilter, - AppLevelRequirementOrderBy - >; - } -): Promise { - const args = buildListSelectionArgs< - AppLevelRequirementSelect, - AppLevelRequirementFilter, - AppLevelRequirementOrderBy - >(params.selection); - await queryClient.prefetchQuery({ - queryKey: appLevelRequirementKeys.list(args), - queryFn: () => getClient().appLevelRequirement.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/queries/useAppLevelsQuery.ts b/sdk/constructive-react/src/usage/hooks/queries/useAppLevelsQuery.ts deleted file mode 100644 index 4e237d953e..0000000000 --- a/sdk/constructive-react/src/usage/hooks/queries/useAppLevelsQuery.ts +++ /dev/null @@ -1,145 +0,0 @@ -/** - * Defines available levels that users can achieve by completing requirements - * @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 { appLevelKeys } from '../query-keys'; -import type { - AppLevelSelect, - AppLevelWithRelations, - AppLevelFilter, - AppLevelOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - AppLevelSelect, - AppLevelWithRelations, - AppLevelFilter, - AppLevelOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const appLevelsQueryKey = appLevelKeys.list; -/** - * Defines available levels that users can achieve by completing requirements - * - * @example - * ```tsx - * const { data, isLoading } = useAppLevelsQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useAppLevelsQuery< - S extends AppLevelSelect, - TData = { - appLevels: ConnectionResult>; - }, ->( - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, AppLevelSelect>; - } & Omit< - UseQueryOptions< - { - appLevels: ConnectionResult>; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAppLevelsQuery( - params: { - selection: ListSelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs( - params.selection - ); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: appLevelKeys.list(args), - queryFn: () => getClient().appLevel.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Defines available levels that users can achieve by completing requirements - * - * @example - * ```ts - * const data = await fetchAppLevelsQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchAppLevelsQuery(params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, AppLevelSelect>; -}): Promise<{ - appLevels: ConnectionResult>; -}>; -export async function fetchAppLevelsQuery(params: { - selection: ListSelectionConfig; -}) { - const args = buildListSelectionArgs( - params.selection - ); - return getClient().appLevel.findMany(args).unwrap(); -} -/** - * Defines available levels that users can achieve by completing requirements - * - * @example - * ```ts - * await prefetchAppLevelsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchAppLevelsQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, AppLevelSelect>; - } -): Promise; -export async function prefetchAppLevelsQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig; - } -): Promise { - const args = buildListSelectionArgs( - params.selection - ); - await queryClient.prefetchQuery({ - queryKey: appLevelKeys.list(args), - queryFn: () => getClient().appLevel.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/queries/useBillingUsageSummariesQuery.ts b/sdk/constructive-react/src/usage/hooks/queries/useBillingUsageSummariesQuery.ts deleted file mode 100644 index a3c7bcdc9d..0000000000 --- a/sdk/constructive-react/src/usage/hooks/queries/useBillingUsageSummariesQuery.ts +++ /dev/null @@ -1,174 +0,0 @@ -/** - * Permanent monthly usage summary per entity per meter (user-facing billing dashboard) - * @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 { billingUsageSummaryKeys } from '../query-keys'; -import type { - BillingUsageSummarySelect, - BillingUsageSummaryWithRelations, - BillingUsageSummaryFilter, - BillingUsageSummaryOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - BillingUsageSummarySelect, - BillingUsageSummaryWithRelations, - BillingUsageSummaryFilter, - BillingUsageSummaryOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const billingUsageSummariesQueryKey = billingUsageSummaryKeys.list; -/** - * Permanent monthly usage summary per entity per meter (user-facing billing dashboard) - * - * @example - * ```tsx - * const { data, isLoading } = useBillingUsageSummariesQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useBillingUsageSummariesQuery< - S extends BillingUsageSummarySelect, - TData = { - billingUsageSummaries: ConnectionResult>; - }, ->( - params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, BillingUsageSummarySelect>; - } & Omit< - UseQueryOptions< - { - billingUsageSummaries: ConnectionResult< - InferSelectResult - >; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useBillingUsageSummariesQuery( - params: { - selection: ListSelectionConfig< - BillingUsageSummarySelect, - BillingUsageSummaryFilter, - BillingUsageSummaryOrderBy - >; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs< - BillingUsageSummarySelect, - BillingUsageSummaryFilter, - BillingUsageSummaryOrderBy - >(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: billingUsageSummaryKeys.list(args), - queryFn: () => getClient().billingUsageSummary.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Permanent monthly usage summary per entity per meter (user-facing billing dashboard) - * - * @example - * ```ts - * const data = await fetchBillingUsageSummariesQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchBillingUsageSummariesQuery(params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, BillingUsageSummarySelect>; -}): Promise<{ - billingUsageSummaries: ConnectionResult>; -}>; -export async function fetchBillingUsageSummariesQuery(params: { - selection: ListSelectionConfig< - BillingUsageSummarySelect, - BillingUsageSummaryFilter, - BillingUsageSummaryOrderBy - >; -}) { - const args = buildListSelectionArgs< - BillingUsageSummarySelect, - BillingUsageSummaryFilter, - BillingUsageSummaryOrderBy - >(params.selection); - return getClient().billingUsageSummary.findMany(args).unwrap(); -} -/** - * Permanent monthly usage summary per entity per meter (user-facing billing dashboard) - * - * @example - * ```ts - * await prefetchBillingUsageSummariesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchBillingUsageSummariesQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, BillingUsageSummarySelect>; - } -): Promise; -export async function prefetchBillingUsageSummariesQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig< - BillingUsageSummarySelect, - BillingUsageSummaryFilter, - BillingUsageSummaryOrderBy - >; - } -): Promise { - const args = buildListSelectionArgs< - BillingUsageSummarySelect, - BillingUsageSummaryFilter, - BillingUsageSummaryOrderBy - >(params.selection); - await queryClient.prefetchQuery({ - queryKey: billingUsageSummaryKeys.list(args), - queryFn: () => getClient().billingUsageSummary.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/queries/useBillingUsageSummaryQuery.ts b/sdk/constructive-react/src/usage/hooks/queries/useBillingUsageSummaryQuery.ts deleted file mode 100644 index 7b5c789627..0000000000 --- a/sdk/constructive-react/src/usage/hooks/queries/useBillingUsageSummaryQuery.ts +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Permanent monthly usage summary per entity per meter (user-facing billing dashboard) - * @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 { billingUsageSummaryKeys } from '../query-keys'; -import type { - BillingUsageSummarySelect, - BillingUsageSummaryWithRelations, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - BillingUsageSummarySelect, - BillingUsageSummaryWithRelations, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const billingUsageSummaryQueryKey = billingUsageSummaryKeys.detail; -/** - * Permanent monthly usage summary per entity per meter (user-facing billing dashboard) - * - * @example - * ```tsx - * const { data, isLoading } = useBillingUsageSummaryQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useBillingUsageSummaryQuery< - S extends BillingUsageSummarySelect, - TData = { - billingUsageSummary: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, BillingUsageSummarySelect>; - } & Omit< - UseQueryOptions< - { - billingUsageSummary: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useBillingUsageSummaryQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: billingUsageSummaryKeys.detail(params.id), - queryFn: () => - getClient() - .billingUsageSummary.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Permanent monthly usage summary per entity per meter (user-facing billing dashboard) - * - * @example - * ```ts - * const data = await fetchBillingUsageSummaryQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchBillingUsageSummaryQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, BillingUsageSummarySelect>; -}): Promise<{ - billingUsageSummary: InferSelectResult | null; -}>; -export async function fetchBillingUsageSummaryQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .billingUsageSummary.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Permanent monthly usage summary per entity per meter (user-facing billing dashboard) - * - * @example - * ```ts - * await prefetchBillingUsageSummaryQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchBillingUsageSummaryQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, BillingUsageSummarySelect>; - } -): Promise; -export async function prefetchBillingUsageSummaryQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: billingUsageSummaryKeys.detail(params.id), - queryFn: () => - getClient() - .billingUsageSummary.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/queries/useCaptureTrustLadderQuery.ts b/sdk/constructive-react/src/usage/hooks/queries/useCaptureTrustLadderQuery.ts deleted file mode 100644 index 66ce525d75..0000000000 --- a/sdk/constructive-react/src/usage/hooks/queries/useCaptureTrustLadderQuery.ts +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Custom query hook for captureTrustLadder - * @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 captureTrustLadderQueryKey = customQueryKeys.captureTrustLadder; -/** - * Query hook for captureTrustLadder - * - * @example - * ```tsx - * const { data, isLoading } = useCaptureTrustLadderQuery(); - * - * if (data?.captureTrustLadder) { - * console.log(data.captureTrustLadder); - * } - * ``` - */ -export function useCaptureTrustLadderQuery< - TData = { - captureTrustLadder: unknown | null; - }, ->( - params?: Omit< - UseQueryOptions< - { - captureTrustLadder: unknown | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useCaptureTrustLadderQuery< - TData = { - captureTrustLadder: unknown | null; - }, ->( - params?: Omit< - UseQueryOptions< - { - captureTrustLadder: unknown | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult { - const queryOptions = params ?? {}; - return useQuery({ - queryKey: captureTrustLadderQueryKey(), - queryFn: () => getClient().query.captureTrustLadder().unwrap(), - ...queryOptions, - }); -} -/** - * Fetch captureTrustLadder without React hooks - * - * @example - * ```ts - * const data = await fetchCaptureTrustLadderQuery(); - * ``` - */ -export async function fetchCaptureTrustLadderQuery() { - return getClient().query.captureTrustLadder().unwrap(); -} -/** - * Prefetch captureTrustLadder for SSR or cache warming - * - * @example - * ```ts - * await prefetchCaptureTrustLadderQuery(queryClient); - * ``` - */ -export async function prefetchCaptureTrustLadderQuery(queryClient: QueryClient): Promise { - await queryClient.prefetchQuery({ - queryKey: captureTrustLadderQueryKey(), - queryFn: () => getClient().query.captureTrustLadder().unwrap(), - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/queries/useEventsAchievedQuery.ts b/sdk/constructive-react/src/usage/hooks/queries/useEventsAchievedQuery.ts deleted file mode 100644 index d5fb5fc4fc..0000000000 --- a/sdk/constructive-react/src/usage/hooks/queries/useEventsAchievedQuery.ts +++ /dev/null @@ -1,105 +0,0 @@ -/** - * Custom query hook for eventsAchieved - * @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 { EventsAchievedVariables } from '../../orm/query'; -export type { EventsAchievedVariables } from '../../orm/query'; -/** Query key factory - re-exported from query-keys.ts */ -export const eventsAchievedQueryKey = customQueryKeys.eventsAchieved; -/** - * Query hook for eventsAchieved - * - * @example - * ```tsx - * const { data, isLoading } = useEventsAchievedQuery({ variables: { level, roleId } }); - * - * if (data?.eventsAchieved) { - * console.log(data.eventsAchieved); - * } - * ``` - */ -export function useEventsAchievedQuery< - TData = { - eventsAchieved: boolean | null; - }, ->( - params?: { - variables?: EventsAchievedVariables; - } & Omit< - UseQueryOptions< - { - eventsAchieved: boolean | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useEventsAchievedQuery< - TData = { - eventsAchieved: boolean | null; - }, ->( - params?: { - variables?: EventsAchievedVariables; - } & Omit< - UseQueryOptions< - { - eventsAchieved: boolean | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult { - const variables = params?.variables ?? {}; - const { variables: _variables, ...queryOptions } = params ?? {}; - void _variables; - return useQuery({ - queryKey: eventsAchievedQueryKey(variables), - queryFn: () => getClient().query.eventsAchieved(variables).unwrap(), - ...queryOptions, - }); -} -/** - * Fetch eventsAchieved without React hooks - * - * @example - * ```ts - * const data = await fetchEventsAchievedQuery({ variables: { level, roleId } }); - * ``` - */ -export async function fetchEventsAchievedQuery(params?: { variables?: EventsAchievedVariables }) { - const variables = params?.variables ?? {}; - return getClient().query.eventsAchieved(variables).unwrap(); -} -/** - * Prefetch eventsAchieved for SSR or cache warming - * - * @example - * ```ts - * await prefetchEventsAchievedQuery(queryClient, { variables: { level, roleId } }); - * ``` - */ -export async function prefetchEventsAchievedQuery( - queryClient: QueryClient, - params?: { - variables?: EventsAchievedVariables; - } -): Promise { - const variables = params?.variables ?? {}; - await queryClient.prefetchQuery({ - queryKey: eventsAchievedQueryKey(variables), - queryFn: () => getClient().query.eventsAchieved(variables).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/queries/useEventsRequiredQuery.ts b/sdk/constructive-react/src/usage/hooks/queries/useEventsRequiredQuery.ts deleted file mode 100644 index b5be490d3f..0000000000 --- a/sdk/constructive-react/src/usage/hooks/queries/useEventsRequiredQuery.ts +++ /dev/null @@ -1,106 +0,0 @@ -/** - * Custom query hook for eventsRequired - * @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 { EventsRequiredVariables } from '../../orm/query'; -import type { AppLevelRequirementConnection } from '../../orm/input-types'; -export type { EventsRequiredVariables } from '../../orm/query'; -/** Query key factory - re-exported from query-keys.ts */ -export const eventsRequiredQueryKey = customQueryKeys.eventsRequired; -/** - * Reads and enables pagination through a set of `AppLevelRequirement`. - * - * @example - * ```tsx - * const { data, isLoading } = useEventsRequiredQuery({ variables: { after, first, level, offset, roleId } }); - * - * if (data?.eventsRequired) { - * console.log(data.eventsRequired); - * } - * ``` - */ -export function useEventsRequiredQuery< - TData = { - eventsRequired: AppLevelRequirementConnection | null; - }, ->( - params?: { - variables?: EventsRequiredVariables; - } & Omit< - UseQueryOptions< - { - eventsRequired: AppLevelRequirementConnection | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useEventsRequiredQuery< - TData = { - eventsRequired: AppLevelRequirementConnection | null; - }, ->( - params?: { - variables?: EventsRequiredVariables; - } & Omit< - UseQueryOptions< - { - eventsRequired: AppLevelRequirementConnection | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult { - const variables = params?.variables ?? {}; - const { variables: _variables, ...queryOptions } = params ?? {}; - void _variables; - return useQuery({ - queryKey: eventsRequiredQueryKey(variables), - queryFn: () => getClient().query.eventsRequired(variables).unwrap(), - ...queryOptions, - }); -} -/** - * Fetch eventsRequired without React hooks - * - * @example - * ```ts - * const data = await fetchEventsRequiredQuery({ variables: { after, first, level, offset, roleId } }); - * ``` - */ -export async function fetchEventsRequiredQuery(params?: { variables?: EventsRequiredVariables }) { - const variables = params?.variables ?? {}; - return getClient().query.eventsRequired(variables).unwrap(); -} -/** - * Prefetch eventsRequired for SSR or cache warming - * - * @example - * ```ts - * await prefetchEventsRequiredQuery(queryClient, { variables: { after, first, level, offset, roleId } }); - * ``` - */ -export async function prefetchEventsRequiredQuery( - queryClient: QueryClient, - params?: { - variables?: EventsRequiredVariables; - } -): Promise { - const variables = params?.variables ?? {}; - await queryClient.prefetchQuery({ - queryKey: eventsRequiredQueryKey(variables), - queryFn: () => getClient().query.eventsRequired(variables).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/queries/useLedgerQuery.ts b/sdk/constructive-react/src/usage/hooks/queries/useLedgerQuery.ts deleted file mode 100644 index a412eaa1bd..0000000000 --- a/sdk/constructive-react/src/usage/hooks/queries/useLedgerQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * Append-only event log for all billing events (usage, grants, adjustments) - * @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 { ledgerKeys } from '../query-keys'; -import type { LedgerSelect, LedgerWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { LedgerSelect, LedgerWithRelations } from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const ledgerQueryKey = ledgerKeys.detail; -/** - * Append-only event log for all billing events (usage, grants, adjustments) - * - * @example - * ```tsx - * const { data, isLoading } = useLedgerQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useLedgerQuery< - S extends LedgerSelect, - TData = { - ledger: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, LedgerSelect>; - } & Omit< - UseQueryOptions< - { - ledger: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useLedgerQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: ledgerKeys.detail(params.id), - queryFn: () => - getClient() - .ledger.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Append-only event log for all billing events (usage, grants, adjustments) - * - * @example - * ```ts - * const data = await fetchLedgerQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchLedgerQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, LedgerSelect>; -}): Promise<{ - ledger: InferSelectResult | null; -}>; -export async function fetchLedgerQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .ledger.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Append-only event log for all billing events (usage, grants, adjustments) - * - * @example - * ```ts - * await prefetchLedgerQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchLedgerQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, LedgerSelect>; - } -): Promise; -export async function prefetchLedgerQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: ledgerKeys.detail(params.id), - queryFn: () => - getClient() - .ledger.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/queries/useLedgersQuery.ts b/sdk/constructive-react/src/usage/hooks/queries/useLedgersQuery.ts deleted file mode 100644 index 58fd8826dc..0000000000 --- a/sdk/constructive-react/src/usage/hooks/queries/useLedgersQuery.ts +++ /dev/null @@ -1,139 +0,0 @@ -/** - * Append-only event log for all billing events (usage, grants, adjustments) - * @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 { ledgerKeys } from '../query-keys'; -import type { - LedgerSelect, - LedgerWithRelations, - LedgerFilter, - LedgerOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - LedgerSelect, - LedgerWithRelations, - LedgerFilter, - LedgerOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const ledgersQueryKey = ledgerKeys.list; -/** - * Append-only event log for all billing events (usage, grants, adjustments) - * - * @example - * ```tsx - * const { data, isLoading } = useLedgersQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useLedgersQuery< - S extends LedgerSelect, - TData = { - ledgers: ConnectionResult>; - }, ->( - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, LedgerSelect>; - } & Omit< - UseQueryOptions< - { - ledgers: ConnectionResult>; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useLedgersQuery( - params: { - selection: ListSelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: ledgerKeys.list(args), - queryFn: () => getClient().ledger.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Append-only event log for all billing events (usage, grants, adjustments) - * - * @example - * ```ts - * const data = await fetchLedgersQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchLedgersQuery(params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, LedgerSelect>; -}): Promise<{ - ledgers: ConnectionResult>; -}>; -export async function fetchLedgersQuery(params: { - selection: ListSelectionConfig; -}) { - const args = buildListSelectionArgs(params.selection); - return getClient().ledger.findMany(args).unwrap(); -} -/** - * Append-only event log for all billing events (usage, grants, adjustments) - * - * @example - * ```ts - * await prefetchLedgersQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchLedgersQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, LedgerSelect>; - } -): Promise; -export async function prefetchLedgersQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig; - } -): Promise { - const args = buildListSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: ledgerKeys.list(args), - queryFn: () => getClient().ledger.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/queries/useMeterCreditQuery.ts b/sdk/constructive-react/src/usage/hooks/queries/useMeterCreditQuery.ts deleted file mode 100644 index da0b362faa..0000000000 --- a/sdk/constructive-react/src/usage/hooks/queries/useMeterCreditQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * Append-only ledger of credit grants for billing meters that automatically update balances - * @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 { meterCreditKeys } from '../query-keys'; -import type { MeterCreditSelect, MeterCreditWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { MeterCreditSelect, MeterCreditWithRelations } from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const meterCreditQueryKey = meterCreditKeys.detail; -/** - * Append-only ledger of credit grants for billing meters that automatically update balances - * - * @example - * ```tsx - * const { data, isLoading } = useMeterCreditQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useMeterCreditQuery< - S extends MeterCreditSelect, - TData = { - meterCredit: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, MeterCreditSelect>; - } & Omit< - UseQueryOptions< - { - meterCredit: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useMeterCreditQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: meterCreditKeys.detail(params.id), - queryFn: () => - getClient() - .meterCredit.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Append-only ledger of credit grants for billing meters that automatically update balances - * - * @example - * ```ts - * const data = await fetchMeterCreditQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchMeterCreditQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, MeterCreditSelect>; -}): Promise<{ - meterCredit: InferSelectResult | null; -}>; -export async function fetchMeterCreditQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .meterCredit.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Append-only ledger of credit grants for billing meters that automatically update balances - * - * @example - * ```ts - * await prefetchMeterCreditQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchMeterCreditQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, MeterCreditSelect>; - } -): Promise; -export async function prefetchMeterCreditQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: meterCreditKeys.detail(params.id), - queryFn: () => - getClient() - .meterCredit.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/queries/useMeterCreditsQuery.ts b/sdk/constructive-react/src/usage/hooks/queries/useMeterCreditsQuery.ts deleted file mode 100644 index 70245536ec..0000000000 --- a/sdk/constructive-react/src/usage/hooks/queries/useMeterCreditsQuery.ts +++ /dev/null @@ -1,145 +0,0 @@ -/** - * Append-only ledger of credit grants for billing meters that automatically update balances - * @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 { meterCreditKeys } from '../query-keys'; -import type { - MeterCreditSelect, - MeterCreditWithRelations, - MeterCreditFilter, - MeterCreditOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - MeterCreditSelect, - MeterCreditWithRelations, - MeterCreditFilter, - MeterCreditOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const meterCreditsQueryKey = meterCreditKeys.list; -/** - * Append-only ledger of credit grants for billing meters that automatically update balances - * - * @example - * ```tsx - * const { data, isLoading } = useMeterCreditsQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useMeterCreditsQuery< - S extends MeterCreditSelect, - TData = { - meterCredits: ConnectionResult>; - }, ->( - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, MeterCreditSelect>; - } & Omit< - UseQueryOptions< - { - meterCredits: ConnectionResult>; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useMeterCreditsQuery( - params: { - selection: ListSelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs( - params.selection - ); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: meterCreditKeys.list(args), - queryFn: () => getClient().meterCredit.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Append-only ledger of credit grants for billing meters that automatically update balances - * - * @example - * ```ts - * const data = await fetchMeterCreditsQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchMeterCreditsQuery(params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, MeterCreditSelect>; -}): Promise<{ - meterCredits: ConnectionResult>; -}>; -export async function fetchMeterCreditsQuery(params: { - selection: ListSelectionConfig; -}) { - const args = buildListSelectionArgs( - params.selection - ); - return getClient().meterCredit.findMany(args).unwrap(); -} -/** - * Append-only ledger of credit grants for billing meters that automatically update balances - * - * @example - * ```ts - * await prefetchMeterCreditsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchMeterCreditsQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, MeterCreditSelect>; - } -): Promise; -export async function prefetchMeterCreditsQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig; - } -): Promise { - const args = buildListSelectionArgs( - params.selection - ); - await queryClient.prefetchQuery({ - queryKey: meterCreditKeys.list(args), - queryFn: () => getClient().meterCredit.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/queries/useMeterDefaultQuery.ts b/sdk/constructive-react/src/usage/hooks/queries/useMeterDefaultQuery.ts deleted file mode 100644 index bf8127124c..0000000000 --- a/sdk/constructive-react/src/usage/hooks/queries/useMeterDefaultQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * Default meter catalog: defines which meters are available and their default plan_limit values for new entities - * @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 { meterDefaultKeys } from '../query-keys'; -import type { MeterDefaultSelect, MeterDefaultWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { MeterDefaultSelect, MeterDefaultWithRelations } from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const meterDefaultQueryKey = meterDefaultKeys.detail; -/** - * Default meter catalog: defines which meters are available and their default plan_limit values for new entities - * - * @example - * ```tsx - * const { data, isLoading } = useMeterDefaultQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useMeterDefaultQuery< - S extends MeterDefaultSelect, - TData = { - meterDefault: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, MeterDefaultSelect>; - } & Omit< - UseQueryOptions< - { - meterDefault: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useMeterDefaultQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: meterDefaultKeys.detail(params.id), - queryFn: () => - getClient() - .meterDefault.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Default meter catalog: defines which meters are available and their default plan_limit values for new entities - * - * @example - * ```ts - * const data = await fetchMeterDefaultQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchMeterDefaultQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, MeterDefaultSelect>; -}): Promise<{ - meterDefault: InferSelectResult | null; -}>; -export async function fetchMeterDefaultQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .meterDefault.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Default meter catalog: defines which meters are available and their default plan_limit values for new entities - * - * @example - * ```ts - * await prefetchMeterDefaultQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchMeterDefaultQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, MeterDefaultSelect>; - } -): Promise; -export async function prefetchMeterDefaultQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: meterDefaultKeys.detail(params.id), - queryFn: () => - getClient() - .meterDefault.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/queries/useMeterDefaultsQuery.ts b/sdk/constructive-react/src/usage/hooks/queries/useMeterDefaultsQuery.ts deleted file mode 100644 index 39a6018d8c..0000000000 --- a/sdk/constructive-react/src/usage/hooks/queries/useMeterDefaultsQuery.ts +++ /dev/null @@ -1,145 +0,0 @@ -/** - * Default meter catalog: defines which meters are available and their default plan_limit values for new entities - * @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 { meterDefaultKeys } from '../query-keys'; -import type { - MeterDefaultSelect, - MeterDefaultWithRelations, - MeterDefaultFilter, - MeterDefaultOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - MeterDefaultSelect, - MeterDefaultWithRelations, - MeterDefaultFilter, - MeterDefaultOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const meterDefaultsQueryKey = meterDefaultKeys.list; -/** - * Default meter catalog: defines which meters are available and their default plan_limit values for new entities - * - * @example - * ```tsx - * const { data, isLoading } = useMeterDefaultsQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useMeterDefaultsQuery< - S extends MeterDefaultSelect, - TData = { - meterDefaults: ConnectionResult>; - }, ->( - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, MeterDefaultSelect>; - } & Omit< - UseQueryOptions< - { - meterDefaults: ConnectionResult>; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useMeterDefaultsQuery( - params: { - selection: ListSelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs( - params.selection - ); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: meterDefaultKeys.list(args), - queryFn: () => getClient().meterDefault.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Default meter catalog: defines which meters are available and their default plan_limit values for new entities - * - * @example - * ```ts - * const data = await fetchMeterDefaultsQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchMeterDefaultsQuery(params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, MeterDefaultSelect>; -}): Promise<{ - meterDefaults: ConnectionResult>; -}>; -export async function fetchMeterDefaultsQuery(params: { - selection: ListSelectionConfig; -}) { - const args = buildListSelectionArgs( - params.selection - ); - return getClient().meterDefault.findMany(args).unwrap(); -} -/** - * Default meter catalog: defines which meters are available and their default plan_limit values for new entities - * - * @example - * ```ts - * await prefetchMeterDefaultsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchMeterDefaultsQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, MeterDefaultSelect>; - } -): Promise; -export async function prefetchMeterDefaultsQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig; - } -): Promise { - const args = buildListSelectionArgs( - params.selection - ); - await queryClient.prefetchQuery({ - queryKey: meterDefaultKeys.list(args), - queryFn: () => getClient().meterDefault.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/queries/useMeterQuery.ts b/sdk/constructive-react/src/usage/hooks/queries/useMeterQuery.ts deleted file mode 100644 index ce4957ac60..0000000000 --- a/sdk/constructive-react/src/usage/hooks/queries/useMeterQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * Defines billable meters (what to track: quotas, feature flags, credit pools) - * @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 { meterKeys } from '../query-keys'; -import type { MeterSelect, MeterWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { MeterSelect, MeterWithRelations } from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const meterQueryKey = meterKeys.detail; -/** - * Defines billable meters (what to track: quotas, feature flags, credit pools) - * - * @example - * ```tsx - * const { data, isLoading } = useMeterQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useMeterQuery< - S extends MeterSelect, - TData = { - meter: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, MeterSelect>; - } & Omit< - UseQueryOptions< - { - meter: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useMeterQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: meterKeys.detail(params.id), - queryFn: () => - getClient() - .meter.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Defines billable meters (what to track: quotas, feature flags, credit pools) - * - * @example - * ```ts - * const data = await fetchMeterQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchMeterQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, MeterSelect>; -}): Promise<{ - meter: InferSelectResult | null; -}>; -export async function fetchMeterQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .meter.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Defines billable meters (what to track: quotas, feature flags, credit pools) - * - * @example - * ```ts - * await prefetchMeterQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchMeterQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, MeterSelect>; - } -): Promise; -export async function prefetchMeterQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: meterKeys.detail(params.id), - queryFn: () => - getClient() - .meter.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/queries/useMeterSourceQuery.ts b/sdk/constructive-react/src/usage/hooks/queries/useMeterSourceQuery.ts deleted file mode 100644 index a99a6f3706..0000000000 --- a/sdk/constructive-react/src/usage/hooks/queries/useMeterSourceQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * Maps billing meters to typed usage summary table columns for automated usage reconciliation. Each row tells reconcile_typed_usage() which column to aggregate and how. - * @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 { meterSourceKeys } from '../query-keys'; -import type { MeterSourceSelect, MeterSourceWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { MeterSourceSelect, MeterSourceWithRelations } from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const meterSourceQueryKey = meterSourceKeys.detail; -/** - * Maps billing meters to typed usage summary table columns for automated usage reconciliation. Each row tells reconcile_typed_usage() which column to aggregate and how. - * - * @example - * ```tsx - * const { data, isLoading } = useMeterSourceQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useMeterSourceQuery< - S extends MeterSourceSelect, - TData = { - meterSource: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, MeterSourceSelect>; - } & Omit< - UseQueryOptions< - { - meterSource: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useMeterSourceQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: meterSourceKeys.detail(params.id), - queryFn: () => - getClient() - .meterSource.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Maps billing meters to typed usage summary table columns for automated usage reconciliation. Each row tells reconcile_typed_usage() which column to aggregate and how. - * - * @example - * ```ts - * const data = await fetchMeterSourceQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchMeterSourceQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, MeterSourceSelect>; -}): Promise<{ - meterSource: InferSelectResult | null; -}>; -export async function fetchMeterSourceQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .meterSource.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Maps billing meters to typed usage summary table columns for automated usage reconciliation. Each row tells reconcile_typed_usage() which column to aggregate and how. - * - * @example - * ```ts - * await prefetchMeterSourceQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchMeterSourceQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, MeterSourceSelect>; - } -): Promise; -export async function prefetchMeterSourceQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: meterSourceKeys.detail(params.id), - queryFn: () => - getClient() - .meterSource.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/queries/useMeterSourcesQuery.ts b/sdk/constructive-react/src/usage/hooks/queries/useMeterSourcesQuery.ts deleted file mode 100644 index c82a2efea4..0000000000 --- a/sdk/constructive-react/src/usage/hooks/queries/useMeterSourcesQuery.ts +++ /dev/null @@ -1,145 +0,0 @@ -/** - * Maps billing meters to typed usage summary table columns for automated usage reconciliation. Each row tells reconcile_typed_usage() which column to aggregate and how. - * @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 { meterSourceKeys } from '../query-keys'; -import type { - MeterSourceSelect, - MeterSourceWithRelations, - MeterSourceFilter, - MeterSourceOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - MeterSourceSelect, - MeterSourceWithRelations, - MeterSourceFilter, - MeterSourceOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const meterSourcesQueryKey = meterSourceKeys.list; -/** - * Maps billing meters to typed usage summary table columns for automated usage reconciliation. Each row tells reconcile_typed_usage() which column to aggregate and how. - * - * @example - * ```tsx - * const { data, isLoading } = useMeterSourcesQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useMeterSourcesQuery< - S extends MeterSourceSelect, - TData = { - meterSources: ConnectionResult>; - }, ->( - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, MeterSourceSelect>; - } & Omit< - UseQueryOptions< - { - meterSources: ConnectionResult>; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useMeterSourcesQuery( - params: { - selection: ListSelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs( - params.selection - ); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: meterSourceKeys.list(args), - queryFn: () => getClient().meterSource.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Maps billing meters to typed usage summary table columns for automated usage reconciliation. Each row tells reconcile_typed_usage() which column to aggregate and how. - * - * @example - * ```ts - * const data = await fetchMeterSourcesQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchMeterSourcesQuery(params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, MeterSourceSelect>; -}): Promise<{ - meterSources: ConnectionResult>; -}>; -export async function fetchMeterSourcesQuery(params: { - selection: ListSelectionConfig; -}) { - const args = buildListSelectionArgs( - params.selection - ); - return getClient().meterSource.findMany(args).unwrap(); -} -/** - * Maps billing meters to typed usage summary table columns for automated usage reconciliation. Each row tells reconcile_typed_usage() which column to aggregate and how. - * - * @example - * ```ts - * await prefetchMeterSourcesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchMeterSourcesQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, MeterSourceSelect>; - } -): Promise; -export async function prefetchMeterSourcesQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig; - } -): Promise { - const args = buildListSelectionArgs( - params.selection - ); - await queryClient.prefetchQuery({ - queryKey: meterSourceKeys.list(args), - queryFn: () => getClient().meterSource.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/queries/useMetersQuery.ts b/sdk/constructive-react/src/usage/hooks/queries/useMetersQuery.ts deleted file mode 100644 index 766d819901..0000000000 --- a/sdk/constructive-react/src/usage/hooks/queries/useMetersQuery.ts +++ /dev/null @@ -1,139 +0,0 @@ -/** - * Defines billable meters (what to track: quotas, feature flags, credit pools) - * @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 { meterKeys } from '../query-keys'; -import type { - MeterSelect, - MeterWithRelations, - MeterFilter, - MeterOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - MeterSelect, - MeterWithRelations, - MeterFilter, - MeterOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const metersQueryKey = meterKeys.list; -/** - * Defines billable meters (what to track: quotas, feature flags, credit pools) - * - * @example - * ```tsx - * const { data, isLoading } = useMetersQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useMetersQuery< - S extends MeterSelect, - TData = { - meters: ConnectionResult>; - }, ->( - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, MeterSelect>; - } & Omit< - UseQueryOptions< - { - meters: ConnectionResult>; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useMetersQuery( - params: { - selection: ListSelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: meterKeys.list(args), - queryFn: () => getClient().meter.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Defines billable meters (what to track: quotas, feature flags, credit pools) - * - * @example - * ```ts - * const data = await fetchMetersQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchMetersQuery(params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, MeterSelect>; -}): Promise<{ - meters: ConnectionResult>; -}>; -export async function fetchMetersQuery(params: { - selection: ListSelectionConfig; -}) { - const args = buildListSelectionArgs(params.selection); - return getClient().meter.findMany(args).unwrap(); -} -/** - * Defines billable meters (what to track: quotas, feature flags, credit pools) - * - * @example - * ```ts - * await prefetchMetersQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchMetersQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, MeterSelect>; - } -): Promise; -export async function prefetchMetersQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig; - } -): Promise { - const args = buildListSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: meterKeys.list(args), - queryFn: () => getClient().meter.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/queries/usePlanCapQuery.ts b/sdk/constructive-react/src/usage/hooks/queries/usePlanCapQuery.ts deleted file mode 100644 index 3264a76f8f..0000000000 --- a/sdk/constructive-react/src/usage/hooks/queries/usePlanCapQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * Maps each plan to feature flag cap values (written to limit_caps when plan is applied) - * @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 { planCapKeys } from '../query-keys'; -import type { PlanCapSelect, PlanCapWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { PlanCapSelect, PlanCapWithRelations } from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const planCapQueryKey = planCapKeys.detail; -/** - * Maps each plan to feature flag cap values (written to limit_caps when plan is applied) - * - * @example - * ```tsx - * const { data, isLoading } = usePlanCapQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function usePlanCapQuery< - S extends PlanCapSelect, - TData = { - planCap: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, PlanCapSelect>; - } & Omit< - UseQueryOptions< - { - planCap: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function usePlanCapQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: planCapKeys.detail(params.id), - queryFn: () => - getClient() - .planCap.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Maps each plan to feature flag cap values (written to limit_caps when plan is applied) - * - * @example - * ```ts - * const data = await fetchPlanCapQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchPlanCapQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, PlanCapSelect>; -}): Promise<{ - planCap: InferSelectResult | null; -}>; -export async function fetchPlanCapQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .planCap.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Maps each plan to feature flag cap values (written to limit_caps when plan is applied) - * - * @example - * ```ts - * await prefetchPlanCapQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchPlanCapQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, PlanCapSelect>; - } -): Promise; -export async function prefetchPlanCapQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: planCapKeys.detail(params.id), - queryFn: () => - getClient() - .planCap.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/queries/usePlanCapsQuery.ts b/sdk/constructive-react/src/usage/hooks/queries/usePlanCapsQuery.ts deleted file mode 100644 index d4e15ad5b3..0000000000 --- a/sdk/constructive-react/src/usage/hooks/queries/usePlanCapsQuery.ts +++ /dev/null @@ -1,145 +0,0 @@ -/** - * Maps each plan to feature flag cap values (written to limit_caps when plan is applied) - * @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 { planCapKeys } from '../query-keys'; -import type { - PlanCapSelect, - PlanCapWithRelations, - PlanCapFilter, - PlanCapOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - PlanCapSelect, - PlanCapWithRelations, - PlanCapFilter, - PlanCapOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const planCapsQueryKey = planCapKeys.list; -/** - * Maps each plan to feature flag cap values (written to limit_caps when plan is applied) - * - * @example - * ```tsx - * const { data, isLoading } = usePlanCapsQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function usePlanCapsQuery< - S extends PlanCapSelect, - TData = { - planCaps: ConnectionResult>; - }, ->( - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, PlanCapSelect>; - } & Omit< - UseQueryOptions< - { - planCaps: ConnectionResult>; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function usePlanCapsQuery( - params: { - selection: ListSelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs( - params.selection - ); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: planCapKeys.list(args), - queryFn: () => getClient().planCap.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Maps each plan to feature flag cap values (written to limit_caps when plan is applied) - * - * @example - * ```ts - * const data = await fetchPlanCapsQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchPlanCapsQuery(params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, PlanCapSelect>; -}): Promise<{ - planCaps: ConnectionResult>; -}>; -export async function fetchPlanCapsQuery(params: { - selection: ListSelectionConfig; -}) { - const args = buildListSelectionArgs( - params.selection - ); - return getClient().planCap.findMany(args).unwrap(); -} -/** - * Maps each plan to feature flag cap values (written to limit_caps when plan is applied) - * - * @example - * ```ts - * await prefetchPlanCapsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchPlanCapsQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, PlanCapSelect>; - } -): Promise; -export async function prefetchPlanCapsQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig; - } -): Promise { - const args = buildListSelectionArgs( - params.selection - ); - await queryClient.prefetchQuery({ - queryKey: planCapKeys.list(args), - queryFn: () => getClient().planCap.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/queries/usePlanLimitQuery.ts b/sdk/constructive-react/src/usage/hooks/queries/usePlanLimitQuery.ts deleted file mode 100644 index ef1055e1a5..0000000000 --- a/sdk/constructive-react/src/usage/hooks/queries/usePlanLimitQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * Maps each plan to specific limit names and their maximum allowed values - * @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 { planLimitKeys } from '../query-keys'; -import type { PlanLimitSelect, PlanLimitWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { PlanLimitSelect, PlanLimitWithRelations } from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const planLimitQueryKey = planLimitKeys.detail; -/** - * Maps each plan to specific limit names and their maximum allowed values - * - * @example - * ```tsx - * const { data, isLoading } = usePlanLimitQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function usePlanLimitQuery< - S extends PlanLimitSelect, - TData = { - planLimit: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, PlanLimitSelect>; - } & Omit< - UseQueryOptions< - { - planLimit: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function usePlanLimitQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: planLimitKeys.detail(params.id), - queryFn: () => - getClient() - .planLimit.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Maps each plan to specific limit names and their maximum allowed values - * - * @example - * ```ts - * const data = await fetchPlanLimitQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchPlanLimitQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, PlanLimitSelect>; -}): Promise<{ - planLimit: InferSelectResult | null; -}>; -export async function fetchPlanLimitQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .planLimit.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Maps each plan to specific limit names and their maximum allowed values - * - * @example - * ```ts - * await prefetchPlanLimitQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchPlanLimitQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, PlanLimitSelect>; - } -): Promise; -export async function prefetchPlanLimitQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: planLimitKeys.detail(params.id), - queryFn: () => - getClient() - .planLimit.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/queries/usePlanLimitsQuery.ts b/sdk/constructive-react/src/usage/hooks/queries/usePlanLimitsQuery.ts deleted file mode 100644 index 1e8362c71a..0000000000 --- a/sdk/constructive-react/src/usage/hooks/queries/usePlanLimitsQuery.ts +++ /dev/null @@ -1,145 +0,0 @@ -/** - * Maps each plan to specific limit names and their maximum allowed values - * @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 { planLimitKeys } from '../query-keys'; -import type { - PlanLimitSelect, - PlanLimitWithRelations, - PlanLimitFilter, - PlanLimitOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - PlanLimitSelect, - PlanLimitWithRelations, - PlanLimitFilter, - PlanLimitOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const planLimitsQueryKey = planLimitKeys.list; -/** - * Maps each plan to specific limit names and their maximum allowed values - * - * @example - * ```tsx - * const { data, isLoading } = usePlanLimitsQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function usePlanLimitsQuery< - S extends PlanLimitSelect, - TData = { - planLimits: ConnectionResult>; - }, ->( - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, PlanLimitSelect>; - } & Omit< - UseQueryOptions< - { - planLimits: ConnectionResult>; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function usePlanLimitsQuery( - params: { - selection: ListSelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs( - params.selection - ); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: planLimitKeys.list(args), - queryFn: () => getClient().planLimit.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Maps each plan to specific limit names and their maximum allowed values - * - * @example - * ```ts - * const data = await fetchPlanLimitsQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchPlanLimitsQuery(params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, PlanLimitSelect>; -}): Promise<{ - planLimits: ConnectionResult>; -}>; -export async function fetchPlanLimitsQuery(params: { - selection: ListSelectionConfig; -}) { - const args = buildListSelectionArgs( - params.selection - ); - return getClient().planLimit.findMany(args).unwrap(); -} -/** - * Maps each plan to specific limit names and their maximum allowed values - * - * @example - * ```ts - * await prefetchPlanLimitsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchPlanLimitsQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, PlanLimitSelect>; - } -): Promise; -export async function prefetchPlanLimitsQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig; - } -): Promise { - const args = buildListSelectionArgs( - params.selection - ); - await queryClient.prefetchQuery({ - queryKey: planLimitKeys.list(args), - queryFn: () => getClient().planLimit.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/queries/usePlanMeterLimitQuery.ts b/sdk/constructive-react/src/usage/hooks/queries/usePlanMeterLimitQuery.ts deleted file mode 100644 index ec12d8b94b..0000000000 --- a/sdk/constructive-react/src/usage/hooks/queries/usePlanMeterLimitQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * Maps each plan to billing meter quotas (plan_limit values written to balances when plan is applied) - * @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 { planMeterLimitKeys } from '../query-keys'; -import type { PlanMeterLimitSelect, PlanMeterLimitWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { PlanMeterLimitSelect, PlanMeterLimitWithRelations } from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const planMeterLimitQueryKey = planMeterLimitKeys.detail; -/** - * Maps each plan to billing meter quotas (plan_limit values written to balances when plan is applied) - * - * @example - * ```tsx - * const { data, isLoading } = usePlanMeterLimitQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function usePlanMeterLimitQuery< - S extends PlanMeterLimitSelect, - TData = { - planMeterLimit: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, PlanMeterLimitSelect>; - } & Omit< - UseQueryOptions< - { - planMeterLimit: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function usePlanMeterLimitQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: planMeterLimitKeys.detail(params.id), - queryFn: () => - getClient() - .planMeterLimit.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Maps each plan to billing meter quotas (plan_limit values written to balances when plan is applied) - * - * @example - * ```ts - * const data = await fetchPlanMeterLimitQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchPlanMeterLimitQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, PlanMeterLimitSelect>; -}): Promise<{ - planMeterLimit: InferSelectResult | null; -}>; -export async function fetchPlanMeterLimitQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .planMeterLimit.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Maps each plan to billing meter quotas (plan_limit values written to balances when plan is applied) - * - * @example - * ```ts - * await prefetchPlanMeterLimitQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchPlanMeterLimitQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, PlanMeterLimitSelect>; - } -): Promise; -export async function prefetchPlanMeterLimitQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: planMeterLimitKeys.detail(params.id), - queryFn: () => - getClient() - .planMeterLimit.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/queries/usePlanMeterLimitsQuery.ts b/sdk/constructive-react/src/usage/hooks/queries/usePlanMeterLimitsQuery.ts deleted file mode 100644 index 37b739c56a..0000000000 --- a/sdk/constructive-react/src/usage/hooks/queries/usePlanMeterLimitsQuery.ts +++ /dev/null @@ -1,159 +0,0 @@ -/** - * Maps each plan to billing meter quotas (plan_limit values written to balances when plan is applied) - * @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 { planMeterLimitKeys } from '../query-keys'; -import type { - PlanMeterLimitSelect, - PlanMeterLimitWithRelations, - PlanMeterLimitFilter, - PlanMeterLimitOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - PlanMeterLimitSelect, - PlanMeterLimitWithRelations, - PlanMeterLimitFilter, - PlanMeterLimitOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const planMeterLimitsQueryKey = planMeterLimitKeys.list; -/** - * Maps each plan to billing meter quotas (plan_limit values written to balances when plan is applied) - * - * @example - * ```tsx - * const { data, isLoading } = usePlanMeterLimitsQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function usePlanMeterLimitsQuery< - S extends PlanMeterLimitSelect, - TData = { - planMeterLimits: ConnectionResult>; - }, ->( - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, PlanMeterLimitSelect>; - } & Omit< - UseQueryOptions< - { - planMeterLimits: ConnectionResult>; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function usePlanMeterLimitsQuery( - params: { - selection: ListSelectionConfig< - PlanMeterLimitSelect, - PlanMeterLimitFilter, - PlanMeterLimitOrderBy - >; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs< - PlanMeterLimitSelect, - PlanMeterLimitFilter, - PlanMeterLimitOrderBy - >(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: planMeterLimitKeys.list(args), - queryFn: () => getClient().planMeterLimit.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Maps each plan to billing meter quotas (plan_limit values written to balances when plan is applied) - * - * @example - * ```ts - * const data = await fetchPlanMeterLimitsQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchPlanMeterLimitsQuery(params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, PlanMeterLimitSelect>; -}): Promise<{ - planMeterLimits: ConnectionResult>; -}>; -export async function fetchPlanMeterLimitsQuery(params: { - selection: ListSelectionConfig; -}) { - const args = buildListSelectionArgs< - PlanMeterLimitSelect, - PlanMeterLimitFilter, - PlanMeterLimitOrderBy - >(params.selection); - return getClient().planMeterLimit.findMany(args).unwrap(); -} -/** - * Maps each plan to billing meter quotas (plan_limit values written to balances when plan is applied) - * - * @example - * ```ts - * await prefetchPlanMeterLimitsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchPlanMeterLimitsQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, PlanMeterLimitSelect>; - } -): Promise; -export async function prefetchPlanMeterLimitsQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig< - PlanMeterLimitSelect, - PlanMeterLimitFilter, - PlanMeterLimitOrderBy - >; - } -): Promise { - const args = buildListSelectionArgs< - PlanMeterLimitSelect, - PlanMeterLimitFilter, - PlanMeterLimitOrderBy - >(params.selection); - await queryClient.prefetchQuery({ - queryKey: planMeterLimitKeys.list(args), - queryFn: () => getClient().planMeterLimit.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/queries/usePlanOverrideQuery.ts b/sdk/constructive-react/src/usage/hooks/queries/usePlanOverrideQuery.ts deleted file mode 100644 index baf21466b3..0000000000 --- a/sdk/constructive-react/src/usage/hooks/queries/usePlanOverrideQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * Per-entity limit overrides that take precedence over plan defaults - * @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 { planOverrideKeys } from '../query-keys'; -import type { PlanOverrideSelect, PlanOverrideWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { PlanOverrideSelect, PlanOverrideWithRelations } from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const planOverrideQueryKey = planOverrideKeys.detail; -/** - * Per-entity limit overrides that take precedence over plan defaults - * - * @example - * ```tsx - * const { data, isLoading } = usePlanOverrideQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function usePlanOverrideQuery< - S extends PlanOverrideSelect, - TData = { - planOverride: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, PlanOverrideSelect>; - } & Omit< - UseQueryOptions< - { - planOverride: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function usePlanOverrideQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: planOverrideKeys.detail(params.id), - queryFn: () => - getClient() - .planOverride.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Per-entity limit overrides that take precedence over plan defaults - * - * @example - * ```ts - * const data = await fetchPlanOverrideQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchPlanOverrideQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, PlanOverrideSelect>; -}): Promise<{ - planOverride: InferSelectResult | null; -}>; -export async function fetchPlanOverrideQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .planOverride.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Per-entity limit overrides that take precedence over plan defaults - * - * @example - * ```ts - * await prefetchPlanOverrideQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchPlanOverrideQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, PlanOverrideSelect>; - } -): Promise; -export async function prefetchPlanOverrideQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: planOverrideKeys.detail(params.id), - queryFn: () => - getClient() - .planOverride.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/queries/usePlanOverridesQuery.ts b/sdk/constructive-react/src/usage/hooks/queries/usePlanOverridesQuery.ts deleted file mode 100644 index 456bcaabb5..0000000000 --- a/sdk/constructive-react/src/usage/hooks/queries/usePlanOverridesQuery.ts +++ /dev/null @@ -1,145 +0,0 @@ -/** - * Per-entity limit overrides that take precedence over plan defaults - * @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 { planOverrideKeys } from '../query-keys'; -import type { - PlanOverrideSelect, - PlanOverrideWithRelations, - PlanOverrideFilter, - PlanOverrideOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - PlanOverrideSelect, - PlanOverrideWithRelations, - PlanOverrideFilter, - PlanOverrideOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const planOverridesQueryKey = planOverrideKeys.list; -/** - * Per-entity limit overrides that take precedence over plan defaults - * - * @example - * ```tsx - * const { data, isLoading } = usePlanOverridesQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function usePlanOverridesQuery< - S extends PlanOverrideSelect, - TData = { - planOverrides: ConnectionResult>; - }, ->( - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, PlanOverrideSelect>; - } & Omit< - UseQueryOptions< - { - planOverrides: ConnectionResult>; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function usePlanOverridesQuery( - params: { - selection: ListSelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs( - params.selection - ); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: planOverrideKeys.list(args), - queryFn: () => getClient().planOverride.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Per-entity limit overrides that take precedence over plan defaults - * - * @example - * ```ts - * const data = await fetchPlanOverridesQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchPlanOverridesQuery(params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, PlanOverrideSelect>; -}): Promise<{ - planOverrides: ConnectionResult>; -}>; -export async function fetchPlanOverridesQuery(params: { - selection: ListSelectionConfig; -}) { - const args = buildListSelectionArgs( - params.selection - ); - return getClient().planOverride.findMany(args).unwrap(); -} -/** - * Per-entity limit overrides that take precedence over plan defaults - * - * @example - * ```ts - * await prefetchPlanOverridesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchPlanOverridesQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, PlanOverrideSelect>; - } -): Promise; -export async function prefetchPlanOverridesQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig; - } -): Promise { - const args = buildListSelectionArgs( - params.selection - ); - await queryClient.prefetchQuery({ - queryKey: planOverrideKeys.list(args), - queryFn: () => getClient().planOverride.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/queries/usePlanPricingQuery.ts b/sdk/constructive-react/src/usage/hooks/queries/usePlanPricingQuery.ts deleted file mode 100644 index b25022ace3..0000000000 --- a/sdk/constructive-react/src/usage/hooks/queries/usePlanPricingQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * Billing intervals and pricing for each plan tier - * @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 { planPricingKeys } from '../query-keys'; -import type { PlanPricingSelect, PlanPricingWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { PlanPricingSelect, PlanPricingWithRelations } from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const planPricingQueryKey = planPricingKeys.detail; -/** - * Billing intervals and pricing for each plan tier - * - * @example - * ```tsx - * const { data, isLoading } = usePlanPricingQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function usePlanPricingQuery< - S extends PlanPricingSelect, - TData = { - planPricing: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, PlanPricingSelect>; - } & Omit< - UseQueryOptions< - { - planPricing: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function usePlanPricingQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: planPricingKeys.detail(params.id), - queryFn: () => - getClient() - .planPricing.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Billing intervals and pricing for each plan tier - * - * @example - * ```ts - * const data = await fetchPlanPricingQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchPlanPricingQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, PlanPricingSelect>; -}): Promise<{ - planPricing: InferSelectResult | null; -}>; -export async function fetchPlanPricingQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .planPricing.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Billing intervals and pricing for each plan tier - * - * @example - * ```ts - * await prefetchPlanPricingQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchPlanPricingQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, PlanPricingSelect>; - } -): Promise; -export async function prefetchPlanPricingQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: planPricingKeys.detail(params.id), - queryFn: () => - getClient() - .planPricing.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/queries/usePlanPricingsQuery.ts b/sdk/constructive-react/src/usage/hooks/queries/usePlanPricingsQuery.ts deleted file mode 100644 index 2297e9cc15..0000000000 --- a/sdk/constructive-react/src/usage/hooks/queries/usePlanPricingsQuery.ts +++ /dev/null @@ -1,145 +0,0 @@ -/** - * Billing intervals and pricing for each plan tier - * @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 { planPricingKeys } from '../query-keys'; -import type { - PlanPricingSelect, - PlanPricingWithRelations, - PlanPricingFilter, - PlanPricingOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - PlanPricingSelect, - PlanPricingWithRelations, - PlanPricingFilter, - PlanPricingOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const planPricingsQueryKey = planPricingKeys.list; -/** - * Billing intervals and pricing for each plan tier - * - * @example - * ```tsx - * const { data, isLoading } = usePlanPricingsQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function usePlanPricingsQuery< - S extends PlanPricingSelect, - TData = { - planPricings: ConnectionResult>; - }, ->( - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, PlanPricingSelect>; - } & Omit< - UseQueryOptions< - { - planPricings: ConnectionResult>; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function usePlanPricingsQuery( - params: { - selection: ListSelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs( - params.selection - ); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: planPricingKeys.list(args), - queryFn: () => getClient().planPricing.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Billing intervals and pricing for each plan tier - * - * @example - * ```ts - * const data = await fetchPlanPricingsQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchPlanPricingsQuery(params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, PlanPricingSelect>; -}): Promise<{ - planPricings: ConnectionResult>; -}>; -export async function fetchPlanPricingsQuery(params: { - selection: ListSelectionConfig; -}) { - const args = buildListSelectionArgs( - params.selection - ); - return getClient().planPricing.findMany(args).unwrap(); -} -/** - * Billing intervals and pricing for each plan tier - * - * @example - * ```ts - * await prefetchPlanPricingsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchPlanPricingsQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, PlanPricingSelect>; - } -): Promise; -export async function prefetchPlanPricingsQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig; - } -): Promise { - const args = buildListSelectionArgs( - params.selection - ); - await queryClient.prefetchQuery({ - queryKey: planPricingKeys.list(args), - queryFn: () => getClient().planPricing.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/queries/usePlanQuery.ts b/sdk/constructive-react/src/usage/hooks/queries/usePlanQuery.ts deleted file mode 100644 index 0f2cb62441..0000000000 --- a/sdk/constructive-react/src/usage/hooks/queries/usePlanQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * Defines plan tiers with named limit configurations - * @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 { planKeys } from '../query-keys'; -import type { PlanSelect, PlanWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { PlanSelect, PlanWithRelations } from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const planQueryKey = planKeys.detail; -/** - * Defines plan tiers with named limit configurations - * - * @example - * ```tsx - * const { data, isLoading } = usePlanQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function usePlanQuery< - S extends PlanSelect, - TData = { - plan: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, PlanSelect>; - } & Omit< - UseQueryOptions< - { - plan: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function usePlanQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: planKeys.detail(params.id), - queryFn: () => - getClient() - .plan.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Defines plan tiers with named limit configurations - * - * @example - * ```ts - * const data = await fetchPlanQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchPlanQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, PlanSelect>; -}): Promise<{ - plan: InferSelectResult | null; -}>; -export async function fetchPlanQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .plan.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Defines plan tiers with named limit configurations - * - * @example - * ```ts - * await prefetchPlanQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchPlanQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, PlanSelect>; - } -): Promise; -export async function prefetchPlanQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: planKeys.detail(params.id), - queryFn: () => - getClient() - .plan.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/queries/usePlanSubscriptionQuery.ts b/sdk/constructive-react/src/usage/hooks/queries/usePlanSubscriptionQuery.ts deleted file mode 100644 index 64ef7f5c53..0000000000 --- a/sdk/constructive-react/src/usage/hooks/queries/usePlanSubscriptionQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * Assigns a plan to an entity with subscription lifecycle (start, end, active state) - * @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 { planSubscriptionKeys } from '../query-keys'; -import type { PlanSubscriptionSelect, PlanSubscriptionWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { PlanSubscriptionSelect, PlanSubscriptionWithRelations } from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const planSubscriptionQueryKey = planSubscriptionKeys.detail; -/** - * Assigns a plan to an entity with subscription lifecycle (start, end, active state) - * - * @example - * ```tsx - * const { data, isLoading } = usePlanSubscriptionQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function usePlanSubscriptionQuery< - S extends PlanSubscriptionSelect, - TData = { - planSubscription: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, PlanSubscriptionSelect>; - } & Omit< - UseQueryOptions< - { - planSubscription: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function usePlanSubscriptionQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: planSubscriptionKeys.detail(params.id), - queryFn: () => - getClient() - .planSubscription.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Assigns a plan to an entity with subscription lifecycle (start, end, active state) - * - * @example - * ```ts - * const data = await fetchPlanSubscriptionQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchPlanSubscriptionQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, PlanSubscriptionSelect>; -}): Promise<{ - planSubscription: InferSelectResult | null; -}>; -export async function fetchPlanSubscriptionQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .planSubscription.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Assigns a plan to an entity with subscription lifecycle (start, end, active state) - * - * @example - * ```ts - * await prefetchPlanSubscriptionQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchPlanSubscriptionQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, PlanSubscriptionSelect>; - } -): Promise; -export async function prefetchPlanSubscriptionQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: planSubscriptionKeys.detail(params.id), - queryFn: () => - getClient() - .planSubscription.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/queries/usePlanSubscriptionsQuery.ts b/sdk/constructive-react/src/usage/hooks/queries/usePlanSubscriptionsQuery.ts deleted file mode 100644 index 502bb5c22f..0000000000 --- a/sdk/constructive-react/src/usage/hooks/queries/usePlanSubscriptionsQuery.ts +++ /dev/null @@ -1,163 +0,0 @@ -/** - * Assigns a plan to an entity with subscription lifecycle (start, end, active state) - * @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 { planSubscriptionKeys } from '../query-keys'; -import type { - PlanSubscriptionSelect, - PlanSubscriptionWithRelations, - PlanSubscriptionFilter, - PlanSubscriptionOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - PlanSubscriptionSelect, - PlanSubscriptionWithRelations, - PlanSubscriptionFilter, - PlanSubscriptionOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const planSubscriptionsQueryKey = planSubscriptionKeys.list; -/** - * Assigns a plan to an entity with subscription lifecycle (start, end, active state) - * - * @example - * ```tsx - * const { data, isLoading } = usePlanSubscriptionsQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function usePlanSubscriptionsQuery< - S extends PlanSubscriptionSelect, - TData = { - planSubscriptions: ConnectionResult>; - }, ->( - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, PlanSubscriptionSelect>; - } & Omit< - UseQueryOptions< - { - planSubscriptions: ConnectionResult>; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function usePlanSubscriptionsQuery( - params: { - selection: ListSelectionConfig< - PlanSubscriptionSelect, - PlanSubscriptionFilter, - PlanSubscriptionOrderBy - >; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs< - PlanSubscriptionSelect, - PlanSubscriptionFilter, - PlanSubscriptionOrderBy - >(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: planSubscriptionKeys.list(args), - queryFn: () => getClient().planSubscription.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Assigns a plan to an entity with subscription lifecycle (start, end, active state) - * - * @example - * ```ts - * const data = await fetchPlanSubscriptionsQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchPlanSubscriptionsQuery(params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, PlanSubscriptionSelect>; -}): Promise<{ - planSubscriptions: ConnectionResult>; -}>; -export async function fetchPlanSubscriptionsQuery(params: { - selection: ListSelectionConfig< - PlanSubscriptionSelect, - PlanSubscriptionFilter, - PlanSubscriptionOrderBy - >; -}) { - const args = buildListSelectionArgs< - PlanSubscriptionSelect, - PlanSubscriptionFilter, - PlanSubscriptionOrderBy - >(params.selection); - return getClient().planSubscription.findMany(args).unwrap(); -} -/** - * Assigns a plan to an entity with subscription lifecycle (start, end, active state) - * - * @example - * ```ts - * await prefetchPlanSubscriptionsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchPlanSubscriptionsQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, PlanSubscriptionSelect>; - } -): Promise; -export async function prefetchPlanSubscriptionsQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig< - PlanSubscriptionSelect, - PlanSubscriptionFilter, - PlanSubscriptionOrderBy - >; - } -): Promise { - const args = buildListSelectionArgs< - PlanSubscriptionSelect, - PlanSubscriptionFilter, - PlanSubscriptionOrderBy - >(params.selection); - await queryClient.prefetchQuery({ - queryKey: planSubscriptionKeys.list(args), - queryFn: () => getClient().planSubscription.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/queries/usePlansQuery.ts b/sdk/constructive-react/src/usage/hooks/queries/usePlansQuery.ts deleted file mode 100644 index 81820ab1e5..0000000000 --- a/sdk/constructive-react/src/usage/hooks/queries/usePlansQuery.ts +++ /dev/null @@ -1,129 +0,0 @@ -/** - * Defines plan tiers with named limit configurations - * @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 { planKeys } from '../query-keys'; -import type { PlanSelect, PlanWithRelations, PlanFilter, PlanOrderBy } from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { PlanSelect, PlanWithRelations, PlanFilter, PlanOrderBy } from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const plansQueryKey = planKeys.list; -/** - * Defines plan tiers with named limit configurations - * - * @example - * ```tsx - * const { data, isLoading } = usePlansQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function usePlansQuery< - S extends PlanSelect, - TData = { - plans: ConnectionResult>; - }, ->( - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, PlanSelect>; - } & Omit< - UseQueryOptions< - { - plans: ConnectionResult>; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function usePlansQuery( - params: { - selection: ListSelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: planKeys.list(args), - queryFn: () => getClient().plan.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Defines plan tiers with named limit configurations - * - * @example - * ```ts - * const data = await fetchPlansQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchPlansQuery(params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, PlanSelect>; -}): Promise<{ - plans: ConnectionResult>; -}>; -export async function fetchPlansQuery(params: { - selection: ListSelectionConfig; -}) { - const args = buildListSelectionArgs(params.selection); - return getClient().plan.findMany(args).unwrap(); -} -/** - * Defines plan tiers with named limit configurations - * - * @example - * ```ts - * await prefetchPlansQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchPlansQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, PlanSelect>; - } -): Promise; -export async function prefetchPlansQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig; - } -): Promise { - const args = buildListSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: planKeys.list(args), - queryFn: () => getClient().plan.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/usage/hooks/query-keys.ts b/sdk/constructive-react/src/usage/hooks/query-keys.ts index 38a27c11db..3502e16371 100644 --- a/sdk/constructive-react/src/usage/hooks/query-keys.ts +++ b/sdk/constructive-react/src/usage/hooks/query-keys.ts @@ -19,69 +19,6 @@ // Entity Query Keys // ============================================================================ -export const appAchievementRewardKeys = { - /** All appAchievementReward queries */ all: ['appachievementreward'] as const, - /** List query keys */ lists: () => [...appAchievementRewardKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...appAchievementRewardKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...appAchievementRewardKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...appAchievementRewardKeys.details(), id] as const, -} as const; -export const appEventAggregateKeys = { - /** All appEventAggregate queries */ all: ['appeventaggregate'] as const, - /** List query keys */ lists: () => [...appEventAggregateKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...appEventAggregateKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...appEventAggregateKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...appEventAggregateKeys.details(), id] as const, -} as const; -export const appEventKeys = { - /** All appEvent queries */ all: ['appevent'] as const, - /** List query keys */ lists: () => [...appEventKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...appEventKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...appEventKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...appEventKeys.details(), id] as const, -} as const; -export const appEventTypeKeys = { - /** All appEventType queries */ all: ['appeventtype'] as const, - /** List query keys */ lists: () => [...appEventTypeKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...appEventTypeKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...appEventTypeKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...appEventTypeKeys.details(), id] as const, -} as const; -export const appLevelKeys = { - /** All appLevel queries */ all: ['applevel'] as const, - /** List query keys */ lists: () => [...appLevelKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...appLevelKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...appLevelKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...appLevelKeys.details(), id] as const, -} as const; -export const appLevelGrantKeys = { - /** All appLevelGrant queries */ all: ['applevelgrant'] as const, - /** List query keys */ lists: () => [...appLevelGrantKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...appLevelGrantKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...appLevelGrantKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...appLevelGrantKeys.details(), id] as const, -} as const; -export const appLevelRequirementKeys = { - /** All appLevelRequirement queries */ all: ['applevelrequirement'] as const, - /** List query keys */ lists: () => [...appLevelRequirementKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...appLevelRequirementKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...appLevelRequirementKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...appLevelRequirementKeys.details(), id] as const, -} as const; export const appLimitCapKeys = { /** All appLimitCap queries */ all: ['applimitcap'] as const, /** List query keys */ lists: () => [...appLimitCapKeys.all, 'list'] as const, @@ -172,60 +109,6 @@ export const appLimitWarningKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...appLimitWarningKeys.details(), id] as const, } as const; -export const billingUsageSummaryKeys = { - /** All billingUsageSummary queries */ all: ['billingusagesummary'] as const, - /** List query keys */ lists: () => [...billingUsageSummaryKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...billingUsageSummaryKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...billingUsageSummaryKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...billingUsageSummaryKeys.details(), id] as const, -} as const; -export const ledgerKeys = { - /** All ledger queries */ all: ['ledger'] as const, - /** List query keys */ lists: () => [...ledgerKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...ledgerKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...ledgerKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...ledgerKeys.details(), id] as const, -} as const; -export const meterKeys = { - /** All meter queries */ all: ['meter'] as const, - /** List query keys */ lists: () => [...meterKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...meterKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...meterKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...meterKeys.details(), id] as const, -} as const; -export const meterCreditKeys = { - /** All meterCredit queries */ all: ['metercredit'] as const, - /** List query keys */ lists: () => [...meterCreditKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...meterCreditKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...meterCreditKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...meterCreditKeys.details(), id] as const, -} as const; -export const meterDefaultKeys = { - /** All meterDefault queries */ all: ['meterdefault'] as const, - /** List query keys */ lists: () => [...meterDefaultKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...meterDefaultKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...meterDefaultKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...meterDefaultKeys.details(), id] as const, -} as const; -export const meterSourceKeys = { - /** All meterSource queries */ all: ['metersource'] as const, - /** List query keys */ lists: () => [...meterSourceKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...meterSourceKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...meterSourceKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...meterSourceKeys.details(), id] as const, -} as const; export const orgLimitAggregateKeys = { /** All orgLimitAggregate queries */ all: ['orglimitaggregate'] as const, /** List query keys */ lists: () => [...orgLimitAggregateKeys.all, 'list'] as const, @@ -298,69 +181,6 @@ export const orgLimitWarningKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...orgLimitWarningKeys.details(), id] as const, } as const; -export const planCapKeys = { - /** All planCap queries */ all: ['plancap'] as const, - /** List query keys */ lists: () => [...planCapKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...planCapKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...planCapKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...planCapKeys.details(), id] as const, -} as const; -export const planKeys = { - /** All plan queries */ all: ['plan'] as const, - /** List query keys */ lists: () => [...planKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...planKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...planKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...planKeys.details(), id] as const, -} as const; -export const planLimitKeys = { - /** All planLimit queries */ all: ['planlimit'] as const, - /** List query keys */ lists: () => [...planLimitKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...planLimitKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...planLimitKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...planLimitKeys.details(), id] as const, -} as const; -export const planMeterLimitKeys = { - /** All planMeterLimit queries */ all: ['planmeterlimit'] as const, - /** List query keys */ lists: () => [...planMeterLimitKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...planMeterLimitKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...planMeterLimitKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...planMeterLimitKeys.details(), id] as const, -} as const; -export const planOverrideKeys = { - /** All planOverride queries */ all: ['planoverride'] as const, - /** List query keys */ lists: () => [...planOverrideKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...planOverrideKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...planOverrideKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...planOverrideKeys.details(), id] as const, -} as const; -export const planPricingKeys = { - /** All planPricing queries */ all: ['planpricing'] as const, - /** List query keys */ lists: () => [...planPricingKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...planPricingKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...planPricingKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...planPricingKeys.details(), id] as const, -} as const; -export const planSubscriptionKeys = { - /** All planSubscription queries */ all: ['plansubscription'] as const, - /** List query keys */ lists: () => [...planSubscriptionKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...planSubscriptionKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...planSubscriptionKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...planSubscriptionKeys.details(), id] as const, -} as const; // ============================================================================ // Custom Query Keys @@ -371,11 +191,6 @@ export const customQueryKeys = { ['captureAppLimitDefaults'] as const, /** Query key for captureOrgLimitDefaults */ captureOrgLimitDefaults: () => ['captureOrgLimitDefaults'] as const, - /** Query key for captureTrustLadder */ captureTrustLadder: () => ['captureTrustLadder'] as const, - /** Query key for eventsAchieved */ eventsAchieved: (variables?: object) => - ['eventsAchieved', variables] as const, - /** Query key for eventsRequired */ eventsRequired: (variables?: object) => - ['eventsRequired', variables] as const, } as const; /** @@ -400,13 +215,6 @@ export const customQueryKeys = { * ``` */ export const queryKeys = { - appAchievementReward: appAchievementRewardKeys, - appEventAggregate: appEventAggregateKeys, - appEvent: appEventKeys, - appEventType: appEventTypeKeys, - appLevel: appLevelKeys, - appLevelGrant: appLevelGrantKeys, - appLevelRequirement: appLevelRequirementKeys, appLimitCap: appLimitCapKeys, appLimitCapsDefault: appLimitCapsDefaultKeys, appLimit: appLimitKeys, @@ -417,12 +225,6 @@ export const queryKeys = { appLimitDefault: appLimitDefaultKeys, appLimitEvent: appLimitEventKeys, appLimitWarning: appLimitWarningKeys, - billingUsageSummary: billingUsageSummaryKeys, - ledger: ledgerKeys, - meter: meterKeys, - meterCredit: meterCreditKeys, - meterDefault: meterDefaultKeys, - meterSource: meterSourceKeys, orgLimitAggregate: orgLimitAggregateKeys, orgLimitCap: orgLimitCapKeys, orgLimitCapsDefault: orgLimitCapsDefaultKeys, @@ -431,13 +233,6 @@ export const queryKeys = { orgLimitDefault: orgLimitDefaultKeys, orgLimitEvent: orgLimitEventKeys, orgLimitWarning: orgLimitWarningKeys, - planCap: planCapKeys, - plan: planKeys, - planLimit: planLimitKeys, - planMeterLimit: planMeterLimitKeys, - planOverride: planOverrideKeys, - planPricing: planPricingKeys, - planSubscription: planSubscriptionKeys, custom: customQueryKeys, } as const; /** Type representing all available query key scopes */ diff --git a/sdk/constructive-react/src/usage/orm/README.md b/sdk/constructive-react/src/usage/orm/README.md index 65cddf9b24..945acdcb20 100644 --- a/sdk/constructive-react/src/usage/orm/README.md +++ b/sdk/constructive-react/src/usage/orm/README.md @@ -21,13 +21,6 @@ const db = createClient({ | Model | Operations | |-------|------------| -| `appAchievementReward` | findMany, findOne, create, update, delete | -| `appEventAggregate` | findMany, findOne, create, update, delete | -| `appEvent` | findMany, findOne, create, update, delete | -| `appEventType` | findMany, findOne, create, update, delete | -| `appLevel` | findMany, findOne, create, update, delete | -| `appLevelGrant` | findMany, findOne, create, update, delete | -| `appLevelRequirement` | findMany, findOne, create, update, delete | | `appLimitCap` | findMany, findOne, create, update, delete | | `appLimitCapsDefault` | findMany, findOne, create, update, delete | | `appLimit` | findMany, findOne, create, update, delete | @@ -38,12 +31,6 @@ const db = createClient({ | `appLimitDefault` | findMany, findOne, create, update, delete | | `appLimitEvent` | findMany, findOne, create, update, delete | | `appLimitWarning` | findMany, findOne, create, update, delete | -| `billingUsageSummary` | findMany, findOne, create, update, delete | -| `ledger` | findMany, findOne, create, update, delete | -| `meter` | findMany, findOne, create, update, delete | -| `meterCredit` | findMany, findOne, create, update, delete | -| `meterDefault` | findMany, findOne, create, update, delete | -| `meterSource` | findMany, findOne, create, update, delete | | `orgLimitAggregate` | findMany, findOne, create, update, delete | | `orgLimitCap` | findMany, findOne, create, update, delete | | `orgLimitCapsDefault` | findMany, findOne, create, update, delete | @@ -52,267 +39,9 @@ const db = createClient({ | `orgLimitDefault` | findMany, findOne, create, update, delete | | `orgLimitEvent` | findMany, findOne, create, update, delete | | `orgLimitWarning` | findMany, findOne, create, update, delete | -| `planCap` | findMany, findOne, create, update, delete | -| `plan` | findMany, findOne, create, update, delete | -| `planLimit` | findMany, findOne, create, update, delete | -| `planMeterLimit` | findMany, findOne, create, update, delete | -| `planOverride` | findMany, findOne, create, update, delete | -| `planPricing` | findMany, findOne, create, update, delete | -| `planSubscription` | findMany, findOne, create, update, delete | ## Table Operations -### `db.appAchievementReward` - -CRUD operations for AppAchievementReward records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `amount` | Int | Yes | -| `createdAt` | Datetime | No | -| `creditType` | String | Yes | -| `expiresInterval` | Interval | Yes | -| `id` | UUID | No | -| `levelName` | String | Yes | -| `rewardType` | String | Yes | -| `targetName` | String | Yes | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all appAchievementReward records -const items = await db.appAchievementReward.findMany({ select: { amount: true, createdAt: true, creditType: true, expiresInterval: true, id: true, levelName: true, rewardType: true, targetName: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.appAchievementReward.findOne({ id: '', select: { amount: true, createdAt: true, creditType: true, expiresInterval: true, id: true, levelName: true, rewardType: true, targetName: true, updatedAt: true } }).execute(); - -// Create -const created = await db.appAchievementReward.create({ data: { amount: '', creditType: '', expiresInterval: '', levelName: '', rewardType: '', targetName: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appAchievementReward.update({ where: { id: '' }, data: { amount: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appAchievementReward.delete({ where: { id: '' } }).execute(); -``` - -### `db.appEventAggregate` - -CRUD operations for AppEventAggregate records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `actorId` | UUID | Yes | -| `count` | Int | Yes | -| `createdAt` | Datetime | No | -| `id` | UUID | No | -| `name` | String | Yes | -| `periodStart` | Datetime | Yes | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all appEventAggregate records -const items = await db.appEventAggregate.findMany({ select: { actorId: true, count: true, createdAt: true, id: true, name: true, periodStart: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.appEventAggregate.findOne({ id: '', select: { actorId: true, count: true, createdAt: true, id: true, name: true, periodStart: true, updatedAt: true } }).execute(); - -// Create -const created = await db.appEventAggregate.create({ data: { actorId: '', count: '', name: '', periodStart: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appEventAggregate.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appEventAggregate.delete({ where: { id: '' } }).execute(); -``` - -### `db.appEvent` - -CRUD operations for AppEvent records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `actorId` | UUID | Yes | -| `count` | Int | Yes | -| `createdAt` | Datetime | No | -| `id` | UUID | No | -| `name` | String | Yes | - -**Operations:** - -```typescript -// List all appEvent records -const items = await db.appEvent.findMany({ select: { actorId: true, count: true, createdAt: true, id: true, name: true } }).execute(); - -// Get one by id -const item = await db.appEvent.findOne({ id: '', select: { actorId: true, count: true, createdAt: true, id: true, name: true } }).execute(); - -// Create -const created = await db.appEvent.create({ data: { actorId: '', count: '', name: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appEvent.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appEvent.delete({ where: { id: '' } }).execute(); -``` - -### `db.appEventType` - -CRUD operations for AppEventType records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `aggregation` | String | Yes | -| `category` | String | Yes | -| `createdAt` | Datetime | No | -| `description` | String | Yes | -| `feedsLevels` | Boolean | Yes | -| `id` | UUID | No | -| `isActive` | Boolean | Yes | -| `name` | String | Yes | -| `periodInterval` | Interval | Yes | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all appEventType records -const items = await db.appEventType.findMany({ select: { aggregation: true, category: true, createdAt: true, description: true, feedsLevels: true, id: true, isActive: true, name: true, periodInterval: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.appEventType.findOne({ id: '', select: { aggregation: true, category: true, createdAt: true, description: true, feedsLevels: true, id: true, isActive: true, name: true, periodInterval: true, updatedAt: true } }).execute(); - -// Create -const created = await db.appEventType.create({ data: { aggregation: '', category: '', description: '', feedsLevels: '', isActive: '', name: '', periodInterval: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appEventType.update({ where: { id: '' }, data: { aggregation: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appEventType.delete({ where: { id: '' } }).execute(); -``` - -### `db.appLevel` - -CRUD operations for AppLevel records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `createdAt` | Datetime | No | -| `description` | String | Yes | -| `id` | UUID | No | -| `image` | ConstructiveInternalTypeImage | Yes | -| `name` | String | Yes | -| `ownerId` | UUID | Yes | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all appLevel records -const items = await db.appLevel.findMany({ select: { createdAt: true, description: true, id: true, image: true, name: true, ownerId: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.appLevel.findOne({ id: '', select: { createdAt: true, description: true, id: true, image: true, name: true, ownerId: true, updatedAt: true } }).execute(); - -// Create -const created = await db.appLevel.create({ data: { description: '', image: '', name: '', ownerId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appLevel.update({ where: { id: '' }, data: { description: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appLevel.delete({ where: { id: '' } }).execute(); -``` - -### `db.appLevelGrant` - -CRUD operations for AppLevelGrant records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `actorId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `expiresAt` | Datetime | Yes | -| `id` | UUID | No | -| `levelName` | String | Yes | -| `periodStart` | Datetime | Yes | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all appLevelGrant records -const items = await db.appLevelGrant.findMany({ select: { actorId: true, createdAt: true, expiresAt: true, id: true, levelName: true, periodStart: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.appLevelGrant.findOne({ id: '', select: { actorId: true, createdAt: true, expiresAt: true, id: true, levelName: true, periodStart: true, updatedAt: true } }).execute(); - -// Create -const created = await db.appLevelGrant.create({ data: { actorId: '', expiresAt: '', levelName: '', periodStart: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appLevelGrant.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appLevelGrant.delete({ where: { id: '' } }).execute(); -``` - -### `db.appLevelRequirement` - -CRUD operations for AppLevelRequirement records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `createdAt` | Datetime | No | -| `description` | String | Yes | -| `groupKey` | String | Yes | -| `id` | UUID | No | -| `level` | String | Yes | -| `metric` | String | Yes | -| `name` | String | Yes | -| `priority` | Int | Yes | -| `requiredCount` | Int | Yes | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all appLevelRequirement records -const items = await db.appLevelRequirement.findMany({ select: { createdAt: true, description: true, groupKey: true, id: true, level: true, metric: true, name: true, priority: true, requiredCount: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.appLevelRequirement.findOne({ id: '', select: { createdAt: true, description: true, groupKey: true, id: true, level: true, metric: true, name: true, priority: true, requiredCount: true, updatedAt: true } }).execute(); - -// Create -const created = await db.appLevelRequirement.create({ data: { description: '', groupKey: '', level: '', metric: '', name: '', priority: '', requiredCount: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appLevelRequirement.update({ where: { id: '' }, data: { description: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appLevelRequirement.delete({ where: { id: '' } }).execute(); -``` - ### `db.appLimitCap` CRUD operations for AppLimitCap records. @@ -656,446 +385,220 @@ const updated = await db.appLimitWarning.update({ where: { id: '' }, data: const deleted = await db.appLimitWarning.delete({ where: { id: '' } }).execute(); ``` -### `db.billingUsageSummary` +### `db.orgLimitAggregate` -CRUD operations for BillingUsageSummary records. +CRUD operations for OrgLimitAggregate records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `creditsConsumed` | BigInt | Yes | | `entityId` | UUID | Yes | | `entityType` | String | Yes | | `id` | UUID | No | -| `meterSlug` | String | Yes | +| `max` | BigInt | Yes | +| `name` | String | Yes | +| `num` | BigInt | Yes | | `organizationId` | UUID | Yes | -| `overageUnits` | BigInt | Yes | -| `periodEnd` | Datetime | Yes | -| `periodStart` | Datetime | Yes | -| `planLimit` | BigInt | Yes | -| `quantityUsed` | BigInt | Yes | +| `periodCredits` | BigInt | Yes | +| `planMax` | BigInt | Yes | +| `purchasedCredits` | BigInt | Yes | +| `reserved` | BigInt | Yes | +| `softMax` | BigInt | Yes | +| `windowDuration` | Interval | Yes | +| `windowStart` | Datetime | Yes | **Operations:** ```typescript -// List all billingUsageSummary records -const items = await db.billingUsageSummary.findMany({ select: { creditsConsumed: true, entityId: true, entityType: true, id: true, meterSlug: true, organizationId: true, overageUnits: true, periodEnd: true, periodStart: true, planLimit: true, quantityUsed: true } }).execute(); +// List all orgLimitAggregate records +const items = await db.orgLimitAggregate.findMany({ select: { entityId: true, entityType: true, id: true, max: true, name: true, num: true, organizationId: true, periodCredits: true, planMax: true, purchasedCredits: true, reserved: true, softMax: true, windowDuration: true, windowStart: true } }).execute(); // Get one by id -const item = await db.billingUsageSummary.findOne({ id: '', select: { creditsConsumed: true, entityId: true, entityType: true, id: true, meterSlug: true, organizationId: true, overageUnits: true, periodEnd: true, periodStart: true, planLimit: true, quantityUsed: true } }).execute(); +const item = await db.orgLimitAggregate.findOne({ id: '', select: { entityId: true, entityType: true, id: true, max: true, name: true, num: true, organizationId: true, periodCredits: true, planMax: true, purchasedCredits: true, reserved: true, softMax: true, windowDuration: true, windowStart: true } }).execute(); // Create -const created = await db.billingUsageSummary.create({ data: { creditsConsumed: '', entityId: '', entityType: '', meterSlug: '', organizationId: '', overageUnits: '', periodEnd: '', periodStart: '', planLimit: '', quantityUsed: '' }, select: { id: true } }).execute(); +const created = await db.orgLimitAggregate.create({ data: { entityId: '', entityType: '', max: '', name: '', num: '', organizationId: '', periodCredits: '', planMax: '', purchasedCredits: '', reserved: '', softMax: '', windowDuration: '', windowStart: '' }, select: { id: true } }).execute(); // Update -const updated = await db.billingUsageSummary.update({ where: { id: '' }, data: { creditsConsumed: '' }, select: { id: true } }).execute(); +const updated = await db.orgLimitAggregate.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.billingUsageSummary.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgLimitAggregate.delete({ where: { id: '' } }).execute(); ``` -### `db.ledger` +### `db.orgLimitCap` -CRUD operations for Ledger records. +CRUD operations for OrgLimitCap records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `createdAt` | Datetime | No | -| `delta` | BigInt | Yes | | `entityId` | UUID | Yes | -| `entityType` | String | Yes | -| `entryType` | String | Yes | | `id` | UUID | No | -| `ledgerClass` | String | Yes | -| `metadata` | JSON | Yes | -| `meterSlug` | String | Yes | -| `organizationId` | UUID | Yes | -| `usageAfter` | BigInt | Yes | +| `max` | BigInt | Yes | +| `name` | String | Yes | **Operations:** ```typescript -// List all ledger records -const items = await db.ledger.findMany({ select: { createdAt: true, delta: true, entityId: true, entityType: true, entryType: true, id: true, ledgerClass: true, metadata: true, meterSlug: true, organizationId: true, usageAfter: true } }).execute(); +// List all orgLimitCap records +const items = await db.orgLimitCap.findMany({ select: { entityId: true, id: true, max: true, name: true } }).execute(); // Get one by id -const item = await db.ledger.findOne({ id: '', select: { createdAt: true, delta: true, entityId: true, entityType: true, entryType: true, id: true, ledgerClass: true, metadata: true, meterSlug: true, organizationId: true, usageAfter: true } }).execute(); +const item = await db.orgLimitCap.findOne({ id: '', select: { entityId: true, id: true, max: true, name: true } }).execute(); // Create -const created = await db.ledger.create({ data: { delta: '', entityId: '', entityType: '', entryType: '', ledgerClass: '', metadata: '', meterSlug: '', organizationId: '', usageAfter: '' }, select: { id: true } }).execute(); +const created = await db.orgLimitCap.create({ data: { entityId: '', max: '', name: '' }, select: { id: true } }).execute(); // Update -const updated = await db.ledger.update({ where: { id: '' }, data: { delta: '' }, select: { id: true } }).execute(); +const updated = await db.orgLimitCap.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.ledger.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgLimitCap.delete({ where: { id: '' } }).execute(); ``` -### `db.meter` +### `db.orgLimitCapsDefault` -CRUD operations for Meter records. +CRUD operations for OrgLimitCapsDefault records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `aggregation` | String | Yes | -| `categoryMeter` | String | Yes | -| `creditCost` | Int | Yes | -| `displayName` | String | Yes | | `id` | UUID | No | -| `isActive` | Boolean | Yes | -| `meterType` | String | Yes | -| `periodInterval` | Interval | Yes | -| `rolloverCap` | BigInt | Yes | -| `slug` | String | Yes | -| `unit` | String | Yes | +| `max` | BigInt | Yes | +| `name` | String | Yes | **Operations:** ```typescript -// List all meter records -const items = await db.meter.findMany({ select: { aggregation: true, categoryMeter: true, creditCost: true, displayName: true, id: true, isActive: true, meterType: true, periodInterval: true, rolloverCap: true, slug: true, unit: true } }).execute(); +// List all orgLimitCapsDefault records +const items = await db.orgLimitCapsDefault.findMany({ select: { id: true, max: true, name: true } }).execute(); // Get one by id -const item = await db.meter.findOne({ id: '', select: { aggregation: true, categoryMeter: true, creditCost: true, displayName: true, id: true, isActive: true, meterType: true, periodInterval: true, rolloverCap: true, slug: true, unit: true } }).execute(); +const item = await db.orgLimitCapsDefault.findOne({ id: '', select: { id: true, max: true, name: true } }).execute(); // Create -const created = await db.meter.create({ data: { aggregation: '', categoryMeter: '', creditCost: '', displayName: '', isActive: '', meterType: '', periodInterval: '', rolloverCap: '', slug: '', unit: '' }, select: { id: true } }).execute(); +const created = await db.orgLimitCapsDefault.create({ data: { max: '', name: '' }, select: { id: true } }).execute(); // Update -const updated = await db.meter.update({ where: { id: '' }, data: { aggregation: '' }, select: { id: true } }).execute(); +const updated = await db.orgLimitCapsDefault.update({ where: { id: '' }, data: { max: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.meter.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgLimitCapsDefault.delete({ where: { id: '' } }).execute(); ``` -### `db.meterCredit` +### `db.orgLimit` -CRUD operations for MeterCredit records. +CRUD operations for OrgLimit records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `amount` | BigInt | Yes | -| `createdAt` | Datetime | No | -| `creditType` | String | Yes | +| `actorId` | UUID | Yes | | `entityId` | UUID | Yes | | `entityType` | String | Yes | -| `expiresAt` | Datetime | Yes | | `id` | UUID | No | -| `meterId` | UUID | Yes | +| `max` | BigInt | Yes | +| `name` | String | Yes | +| `num` | BigInt | Yes | | `organizationId` | UUID | Yes | -| `reason` | String | Yes | +| `periodCredits` | BigInt | Yes | +| `planMax` | BigInt | Yes | +| `purchasedCredits` | BigInt | Yes | +| `softMax` | BigInt | Yes | +| `windowDuration` | Interval | Yes | +| `windowStart` | Datetime | Yes | **Operations:** ```typescript -// List all meterCredit records -const items = await db.meterCredit.findMany({ select: { amount: true, createdAt: true, creditType: true, entityId: true, entityType: true, expiresAt: true, id: true, meterId: true, organizationId: true, reason: true } }).execute(); +// List all orgLimit records +const items = await db.orgLimit.findMany({ select: { actorId: true, entityId: true, entityType: true, id: true, max: true, name: true, num: true, organizationId: true, periodCredits: true, planMax: true, purchasedCredits: true, softMax: true, windowDuration: true, windowStart: true } }).execute(); // Get one by id -const item = await db.meterCredit.findOne({ id: '', select: { amount: true, createdAt: true, creditType: true, entityId: true, entityType: true, expiresAt: true, id: true, meterId: true, organizationId: true, reason: true } }).execute(); +const item = await db.orgLimit.findOne({ id: '', select: { actorId: true, entityId: true, entityType: true, id: true, max: true, name: true, num: true, organizationId: true, periodCredits: true, planMax: true, purchasedCredits: true, softMax: true, windowDuration: true, windowStart: true } }).execute(); // Create -const created = await db.meterCredit.create({ data: { amount: '', creditType: '', entityId: '', entityType: '', expiresAt: '', meterId: '', organizationId: '', reason: '' }, select: { id: true } }).execute(); +const created = await db.orgLimit.create({ data: { actorId: '', entityId: '', entityType: '', max: '', name: '', num: '', organizationId: '', periodCredits: '', planMax: '', purchasedCredits: '', softMax: '', windowDuration: '', windowStart: '' }, select: { id: true } }).execute(); // Update -const updated = await db.meterCredit.update({ where: { id: '' }, data: { amount: '' }, select: { id: true } }).execute(); +const updated = await db.orgLimit.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.meterCredit.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgLimit.delete({ where: { id: '' } }).execute(); ``` -### `db.meterDefault` +### `db.orgLimitCredit` -CRUD operations for MeterDefault records. +CRUD operations for OrgLimitCredit records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `categoryMeter` | String | Yes | -| `creditCost` | BigFloat | Yes | -| `defaultPlanLimit` | BigInt | Yes | -| `displayName` | String | Yes | +| `actorId` | UUID | Yes | +| `amount` | BigInt | Yes | +| `creditType` | String | Yes | +| `defaultLimitId` | UUID | Yes | +| `entityId` | UUID | Yes | +| `entityType` | String | Yes | | `id` | UUID | No | -| `isActive` | Boolean | Yes | -| `meterType` | String | Yes | -| `slug` | String | Yes | -| `unit` | String | Yes | +| `organizationId` | UUID | Yes | +| `reason` | String | Yes | **Operations:** ```typescript -// List all meterDefault records -const items = await db.meterDefault.findMany({ select: { categoryMeter: true, creditCost: true, defaultPlanLimit: true, displayName: true, id: true, isActive: true, meterType: true, slug: true, unit: true } }).execute(); +// List all orgLimitCredit records +const items = await db.orgLimitCredit.findMany({ select: { actorId: true, amount: true, creditType: true, defaultLimitId: true, entityId: true, entityType: true, id: true, organizationId: true, reason: true } }).execute(); // Get one by id -const item = await db.meterDefault.findOne({ id: '', select: { categoryMeter: true, creditCost: true, defaultPlanLimit: true, displayName: true, id: true, isActive: true, meterType: true, slug: true, unit: true } }).execute(); +const item = await db.orgLimitCredit.findOne({ id: '', select: { actorId: true, amount: true, creditType: true, defaultLimitId: true, entityId: true, entityType: true, id: true, organizationId: true, reason: true } }).execute(); // Create -const created = await db.meterDefault.create({ data: { categoryMeter: '', creditCost: '', defaultPlanLimit: '', displayName: '', isActive: '', meterType: '', slug: '', unit: '' }, select: { id: true } }).execute(); +const created = await db.orgLimitCredit.create({ data: { actorId: '', amount: '', creditType: '', defaultLimitId: '', entityId: '', entityType: '', organizationId: '', reason: '' }, select: { id: true } }).execute(); // Update -const updated = await db.meterDefault.update({ where: { id: '' }, data: { categoryMeter: '' }, select: { id: true } }).execute(); +const updated = await db.orgLimitCredit.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.meterDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgLimitCredit.delete({ where: { id: '' } }).execute(); ``` -### `db.meterSource` +### `db.orgLimitDefault` -CRUD operations for MeterSource records. +CRUD operations for OrgLimitDefault records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `aggregationType` | String | Yes | -| `dimensionPath` | String | Yes | | `id` | UUID | No | -| `isActive` | Boolean | Yes | -| `meterSlug` | String | Yes | -| `sourceMetric` | String | Yes | +| `max` | BigInt | Yes | +| `name` | String | Yes | +| `softMax` | BigInt | Yes | **Operations:** ```typescript -// List all meterSource records -const items = await db.meterSource.findMany({ select: { aggregationType: true, dimensionPath: true, id: true, isActive: true, meterSlug: true, sourceMetric: true } }).execute(); +// List all orgLimitDefault records +const items = await db.orgLimitDefault.findMany({ select: { id: true, max: true, name: true, softMax: true } }).execute(); // Get one by id -const item = await db.meterSource.findOne({ id: '', select: { aggregationType: true, dimensionPath: true, id: true, isActive: true, meterSlug: true, sourceMetric: true } }).execute(); +const item = await db.orgLimitDefault.findOne({ id: '', select: { id: true, max: true, name: true, softMax: true } }).execute(); // Create -const created = await db.meterSource.create({ data: { aggregationType: '', dimensionPath: '', isActive: '', meterSlug: '', sourceMetric: '' }, select: { id: true } }).execute(); +const created = await db.orgLimitDefault.create({ data: { max: '', name: '', softMax: '' }, select: { id: true } }).execute(); // Update -const updated = await db.meterSource.update({ where: { id: '' }, data: { aggregationType: '' }, select: { id: true } }).execute(); +const updated = await db.orgLimitDefault.update({ where: { id: '' }, data: { max: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.meterSource.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgLimitAggregate` - -CRUD operations for OrgLimitAggregate records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `entityId` | UUID | Yes | -| `entityType` | String | Yes | -| `id` | UUID | No | -| `max` | BigInt | Yes | -| `name` | String | Yes | -| `num` | BigInt | Yes | -| `organizationId` | UUID | Yes | -| `periodCredits` | BigInt | Yes | -| `planMax` | BigInt | Yes | -| `purchasedCredits` | BigInt | Yes | -| `reserved` | BigInt | Yes | -| `softMax` | BigInt | Yes | -| `windowDuration` | Interval | Yes | -| `windowStart` | Datetime | Yes | - -**Operations:** - -```typescript -// List all orgLimitAggregate records -const items = await db.orgLimitAggregate.findMany({ select: { entityId: true, entityType: true, id: true, max: true, name: true, num: true, organizationId: true, periodCredits: true, planMax: true, purchasedCredits: true, reserved: true, softMax: true, windowDuration: true, windowStart: true } }).execute(); - -// Get one by id -const item = await db.orgLimitAggregate.findOne({ id: '', select: { entityId: true, entityType: true, id: true, max: true, name: true, num: true, organizationId: true, periodCredits: true, planMax: true, purchasedCredits: true, reserved: true, softMax: true, windowDuration: true, windowStart: true } }).execute(); - -// Create -const created = await db.orgLimitAggregate.create({ data: { entityId: '', entityType: '', max: '', name: '', num: '', organizationId: '', periodCredits: '', planMax: '', purchasedCredits: '', reserved: '', softMax: '', windowDuration: '', windowStart: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgLimitAggregate.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgLimitAggregate.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgLimitCap` - -CRUD operations for OrgLimitCap records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `entityId` | UUID | Yes | -| `id` | UUID | No | -| `max` | BigInt | Yes | -| `name` | String | Yes | - -**Operations:** - -```typescript -// List all orgLimitCap records -const items = await db.orgLimitCap.findMany({ select: { entityId: true, id: true, max: true, name: true } }).execute(); - -// Get one by id -const item = await db.orgLimitCap.findOne({ id: '', select: { entityId: true, id: true, max: true, name: true } }).execute(); - -// Create -const created = await db.orgLimitCap.create({ data: { entityId: '', max: '', name: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgLimitCap.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgLimitCap.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgLimitCapsDefault` - -CRUD operations for OrgLimitCapsDefault records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `max` | BigInt | Yes | -| `name` | String | Yes | - -**Operations:** - -```typescript -// List all orgLimitCapsDefault records -const items = await db.orgLimitCapsDefault.findMany({ select: { id: true, max: true, name: true } }).execute(); - -// Get one by id -const item = await db.orgLimitCapsDefault.findOne({ id: '', select: { id: true, max: true, name: true } }).execute(); - -// Create -const created = await db.orgLimitCapsDefault.create({ data: { max: '', name: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgLimitCapsDefault.update({ where: { id: '' }, data: { max: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgLimitCapsDefault.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgLimit` - -CRUD operations for OrgLimit records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `actorId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `entityType` | String | Yes | -| `id` | UUID | No | -| `max` | BigInt | Yes | -| `name` | String | Yes | -| `num` | BigInt | Yes | -| `organizationId` | UUID | Yes | -| `periodCredits` | BigInt | Yes | -| `planMax` | BigInt | Yes | -| `purchasedCredits` | BigInt | Yes | -| `softMax` | BigInt | Yes | -| `windowDuration` | Interval | Yes | -| `windowStart` | Datetime | Yes | - -**Operations:** - -```typescript -// List all orgLimit records -const items = await db.orgLimit.findMany({ select: { actorId: true, entityId: true, entityType: true, id: true, max: true, name: true, num: true, organizationId: true, periodCredits: true, planMax: true, purchasedCredits: true, softMax: true, windowDuration: true, windowStart: true } }).execute(); - -// Get one by id -const item = await db.orgLimit.findOne({ id: '', select: { actorId: true, entityId: true, entityType: true, id: true, max: true, name: true, num: true, organizationId: true, periodCredits: true, planMax: true, purchasedCredits: true, softMax: true, windowDuration: true, windowStart: true } }).execute(); - -// Create -const created = await db.orgLimit.create({ data: { actorId: '', entityId: '', entityType: '', max: '', name: '', num: '', organizationId: '', periodCredits: '', planMax: '', purchasedCredits: '', softMax: '', windowDuration: '', windowStart: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgLimit.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgLimit.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgLimitCredit` - -CRUD operations for OrgLimitCredit records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `actorId` | UUID | Yes | -| `amount` | BigInt | Yes | -| `creditType` | String | Yes | -| `defaultLimitId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `entityType` | String | Yes | -| `id` | UUID | No | -| `organizationId` | UUID | Yes | -| `reason` | String | Yes | - -**Operations:** - -```typescript -// List all orgLimitCredit records -const items = await db.orgLimitCredit.findMany({ select: { actorId: true, amount: true, creditType: true, defaultLimitId: true, entityId: true, entityType: true, id: true, organizationId: true, reason: true } }).execute(); - -// Get one by id -const item = await db.orgLimitCredit.findOne({ id: '', select: { actorId: true, amount: true, creditType: true, defaultLimitId: true, entityId: true, entityType: true, id: true, organizationId: true, reason: true } }).execute(); - -// Create -const created = await db.orgLimitCredit.create({ data: { actorId: '', amount: '', creditType: '', defaultLimitId: '', entityId: '', entityType: '', organizationId: '', reason: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgLimitCredit.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgLimitCredit.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgLimitDefault` - -CRUD operations for OrgLimitDefault records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `max` | BigInt | Yes | -| `name` | String | Yes | -| `softMax` | BigInt | Yes | - -**Operations:** - -```typescript -// List all orgLimitDefault records -const items = await db.orgLimitDefault.findMany({ select: { id: true, max: true, name: true, softMax: true } }).execute(); - -// Get one by id -const item = await db.orgLimitDefault.findOne({ id: '', select: { id: true, max: true, name: true, softMax: true } }).execute(); - -// Create -const created = await db.orgLimitDefault.create({ data: { max: '', name: '', softMax: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgLimitDefault.update({ where: { id: '' }, data: { max: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgLimitDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgLimitDefault.delete({ where: { id: '' } }).execute(); ``` ### `db.orgLimitEvent` @@ -1173,239 +676,6 @@ const updated = await db.orgLimitWarning.update({ where: { id: '' }, data: const deleted = await db.orgLimitWarning.delete({ where: { id: '' } }).execute(); ``` -### `db.planCap` - -CRUD operations for PlanCap records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `capName` | String | Yes | -| `capValue` | BigInt | Yes | -| `id` | UUID | No | -| `planId` | UUID | Yes | - -**Operations:** - -```typescript -// List all planCap records -const items = await db.planCap.findMany({ select: { capName: true, capValue: true, id: true, planId: true } }).execute(); - -// Get one by id -const item = await db.planCap.findOne({ id: '', select: { capName: true, capValue: true, id: true, planId: true } }).execute(); - -// Create -const created = await db.planCap.create({ data: { capName: '', capValue: '', planId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.planCap.update({ where: { id: '' }, data: { capName: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.planCap.delete({ where: { id: '' } }).execute(); -``` - -### `db.plan` - -CRUD operations for Plan records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `description` | String | Yes | -| `id` | UUID | No | -| `isActive` | Boolean | Yes | -| `name` | String | Yes | - -**Operations:** - -```typescript -// List all plan records -const items = await db.plan.findMany({ select: { description: true, id: true, isActive: true, name: true } }).execute(); - -// Get one by id -const item = await db.plan.findOne({ id: '', select: { description: true, id: true, isActive: true, name: true } }).execute(); - -// Create -const created = await db.plan.create({ data: { description: '', isActive: '', name: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.plan.update({ where: { id: '' }, data: { description: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.plan.delete({ where: { id: '' } }).execute(); -``` - -### `db.planLimit` - -CRUD operations for PlanLimit records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `limitName` | String | Yes | -| `maxValue` | BigInt | Yes | -| `planId` | UUID | Yes | - -**Operations:** - -```typescript -// List all planLimit records -const items = await db.planLimit.findMany({ select: { id: true, limitName: true, maxValue: true, planId: true } }).execute(); - -// Get one by id -const item = await db.planLimit.findOne({ id: '', select: { id: true, limitName: true, maxValue: true, planId: true } }).execute(); - -// Create -const created = await db.planLimit.create({ data: { limitName: '', maxValue: '', planId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.planLimit.update({ where: { id: '' }, data: { limitName: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.planLimit.delete({ where: { id: '' } }).execute(); -``` - -### `db.planMeterLimit` - -CRUD operations for PlanMeterLimit records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `meterSlug` | String | Yes | -| `planId` | UUID | Yes | -| `planLimit` | BigInt | Yes | - -**Operations:** - -```typescript -// List all planMeterLimit records -const items = await db.planMeterLimit.findMany({ select: { id: true, meterSlug: true, planId: true, planLimit: true } }).execute(); - -// Get one by id -const item = await db.planMeterLimit.findOne({ id: '', select: { id: true, meterSlug: true, planId: true, planLimit: true } }).execute(); - -// Create -const created = await db.planMeterLimit.create({ data: { meterSlug: '', planId: '', planLimit: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.planMeterLimit.update({ where: { id: '' }, data: { meterSlug: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.planMeterLimit.delete({ where: { id: '' } }).execute(); -``` - -### `db.planOverride` - -CRUD operations for PlanOverride records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `entityId` | UUID | Yes | -| `expiresAt` | Datetime | Yes | -| `id` | UUID | No | -| `limitName` | String | Yes | -| `maxValue` | BigInt | Yes | -| `reason` | String | Yes | - -**Operations:** - -```typescript -// List all planOverride records -const items = await db.planOverride.findMany({ select: { entityId: true, expiresAt: true, id: true, limitName: true, maxValue: true, reason: true } }).execute(); - -// Get one by id -const item = await db.planOverride.findOne({ id: '', select: { entityId: true, expiresAt: true, id: true, limitName: true, maxValue: true, reason: true } }).execute(); - -// Create -const created = await db.planOverride.create({ data: { entityId: '', expiresAt: '', limitName: '', maxValue: '', reason: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.planOverride.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.planOverride.delete({ where: { id: '' } }).execute(); -``` - -### `db.planPricing` - -CRUD operations for PlanPricing records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `billingInterval` | String | Yes | -| `currency` | String | Yes | -| `discountPercent` | BigFloat | Yes | -| `id` | UUID | No | -| `isActive` | Boolean | Yes | -| `planId` | UUID | Yes | -| `price` | BigInt | Yes | - -**Operations:** - -```typescript -// List all planPricing records -const items = await db.planPricing.findMany({ select: { billingInterval: true, currency: true, discountPercent: true, id: true, isActive: true, planId: true, price: true } }).execute(); - -// Get one by id -const item = await db.planPricing.findOne({ id: '', select: { billingInterval: true, currency: true, discountPercent: true, id: true, isActive: true, planId: true, price: true } }).execute(); - -// Create -const created = await db.planPricing.create({ data: { billingInterval: '', currency: '', discountPercent: '', isActive: '', planId: '', price: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.planPricing.update({ where: { id: '' }, data: { billingInterval: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.planPricing.delete({ where: { id: '' } }).execute(); -``` - -### `db.planSubscription` - -CRUD operations for PlanSubscription records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `endsAt` | Datetime | Yes | -| `entityId` | UUID | Yes | -| `entityType` | String | Yes | -| `id` | UUID | No | -| `isActive` | Boolean | Yes | -| `organizationId` | UUID | Yes | -| `planId` | UUID | Yes | -| `startsAt` | Datetime | Yes | - -**Operations:** - -```typescript -// List all planSubscription records -const items = await db.planSubscription.findMany({ select: { endsAt: true, entityId: true, entityType: true, id: true, isActive: true, organizationId: true, planId: true, startsAt: true } }).execute(); - -// Get one by id -const item = await db.planSubscription.findOne({ id: '', select: { endsAt: true, entityId: true, entityType: true, id: true, isActive: true, organizationId: true, planId: true, startsAt: true } }).execute(); - -// Create -const created = await db.planSubscription.create({ data: { endsAt: '', entityId: '', entityType: '', isActive: '', organizationId: '', planId: '', startsAt: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.planSubscription.update({ where: { id: '' }, data: { endsAt: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.planSubscription.delete({ where: { id: '' } }).execute(); -``` - ## Custom Operations ### `db.query.captureAppLimitDefaults` @@ -1430,73 +700,13 @@ captureOrgLimitDefaults const result = await db.query.captureOrgLimitDefaults().execute(); ``` -### `db.query.captureTrustLadder` - -captureTrustLadder - -- **Type:** query -- **Arguments:** none - -```typescript -const result = await db.query.captureTrustLadder().execute(); -``` - -### `db.query.eventsAchieved` - -eventsAchieved - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `level` | String | - | `roleId` | UUID | - -```typescript -const result = await db.query.eventsAchieved({ level: '', roleId: '' }).execute(); -``` - -### `db.query.eventsRequired` - -Reads and enables pagination through a set of `AppLevelRequirement`. - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `after` | Cursor | - | `first` | Int | - | `level` | String | - | `offset` | Int | - | `roleId` | UUID | - -```typescript -const result = await db.query.eventsRequired({ after: '', first: '', level: '', offset: '', roleId: '' }).execute(); -``` - -### `db.mutation.grantAchievement` - -grantAchievement - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | GrantAchievementInput (required) | - -```typescript -const result = await db.mutation.grantAchievement({ input: { actorId: '', levelName: '' } }).execute(); -``` - ### `db.mutation.provisionBucket` -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. +Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. - **Type:** mutation - **Arguments:** @@ -1509,36 +719,6 @@ and lifecycle settings. const result = await db.mutation.provisionBucket({ input: { bucketKey: '', ownerId: '' } }).execute(); ``` -### `db.mutation.recomputeCapabilities` - -recomputeCapabilities - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | RecomputeCapabilitiesInput (required) | - -```typescript -const result = await db.mutation.recomputeCapabilities({ input: { actorId: '' } }).execute(); -``` - -### `db.mutation.revokeAchievement` - -revokeAchievement - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | RevokeAchievementInput (required) | - -```typescript -const result = await db.mutation.revokeAchievement({ input: { actorId: '', levelName: '' } }).execute(); -``` - ### `db.mutation.seedAppLimitCapsDefaults` seedAppLimitCapsDefaults @@ -1569,21 +749,6 @@ seedAppLimitDefaults const result = await db.mutation.seedAppLimitDefaults({ input: { defaults: '' } }).execute(); ``` -### `db.mutation.seedMeterDefaults` - -seedMeterDefaults - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | SeedMeterDefaultsInput (required) | - -```typescript -const result = await db.mutation.seedMeterDefaults({ input: { defaults: '' } }).execute(); -``` - ### `db.mutation.seedOrgLimitCapsDefaults` seedOrgLimitCapsDefaults @@ -1613,33 +778,3 @@ seedOrgLimitDefaults ```typescript const result = await db.mutation.seedOrgLimitDefaults({ input: { defaults: '' } }).execute(); ``` - -### `db.mutation.seedPlan` - -seedPlan - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | SeedPlanInput (required) | - -```typescript -const result = await db.mutation.seedPlan({ input: { planConfig: '', planName: '' } }).execute(); -``` - -### `db.mutation.seedTrustLadder` - -seedTrustLadder - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | SeedTrustLadderInput (required) | - -```typescript -const result = await db.mutation.seedTrustLadder({ input: { ladder: '' } }).execute(); -``` diff --git a/sdk/constructive-react/src/usage/orm/index.ts b/sdk/constructive-react/src/usage/orm/index.ts index 39b71e8b29..04e02a468b 100644 --- a/sdk/constructive-react/src/usage/orm/index.ts +++ b/sdk/constructive-react/src/usage/orm/index.ts @@ -5,13 +5,6 @@ */ import { OrmClient } from './client'; import type { OrmClientConfig } from './client'; -import { AppAchievementRewardModel } from './models/appAchievementReward'; -import { AppEventAggregateModel } from './models/appEventAggregate'; -import { AppEventModel } from './models/appEvent'; -import { AppEventTypeModel } from './models/appEventType'; -import { AppLevelModel } from './models/appLevel'; -import { AppLevelGrantModel } from './models/appLevelGrant'; -import { AppLevelRequirementModel } from './models/appLevelRequirement'; import { AppLimitCapModel } from './models/appLimitCap'; import { AppLimitCapsDefaultModel } from './models/appLimitCapsDefault'; import { AppLimitModel } from './models/appLimit'; @@ -22,12 +15,6 @@ import { AppLimitCreditRedemptionModel } from './models/appLimitCreditRedemption import { AppLimitDefaultModel } from './models/appLimitDefault'; import { AppLimitEventModel } from './models/appLimitEvent'; import { AppLimitWarningModel } from './models/appLimitWarning'; -import { BillingUsageSummaryModel } from './models/billingUsageSummary'; -import { LedgerModel } from './models/ledger'; -import { MeterModel } from './models/meter'; -import { MeterCreditModel } from './models/meterCredit'; -import { MeterDefaultModel } from './models/meterDefault'; -import { MeterSourceModel } from './models/meterSource'; import { OrgLimitAggregateModel } from './models/orgLimitAggregate'; import { OrgLimitCapModel } from './models/orgLimitCap'; import { OrgLimitCapsDefaultModel } from './models/orgLimitCapsDefault'; @@ -36,13 +23,6 @@ import { OrgLimitCreditModel } from './models/orgLimitCredit'; import { OrgLimitDefaultModel } from './models/orgLimitDefault'; import { OrgLimitEventModel } from './models/orgLimitEvent'; import { OrgLimitWarningModel } from './models/orgLimitWarning'; -import { PlanCapModel } from './models/planCap'; -import { PlanModel } from './models/plan'; -import { PlanLimitModel } from './models/planLimit'; -import { PlanMeterLimitModel } from './models/planMeterLimit'; -import { PlanOverrideModel } from './models/planOverride'; -import { PlanPricingModel } from './models/planPricing'; -import { PlanSubscriptionModel } from './models/planSubscription'; import { createQueryOperations } from './query'; import { createMutationOperations } from './mutation'; export type { OrmClientConfig, QueryResult, GraphQLError, GraphQLAdapter } from './client'; @@ -78,13 +58,6 @@ export { createMutationOperations } from './mutation'; export function createClient(config: OrmClientConfig) { const client = new OrmClient(config); return { - appAchievementReward: new AppAchievementRewardModel(client), - appEventAggregate: new AppEventAggregateModel(client), - appEvent: new AppEventModel(client), - appEventType: new AppEventTypeModel(client), - appLevel: new AppLevelModel(client), - appLevelGrant: new AppLevelGrantModel(client), - appLevelRequirement: new AppLevelRequirementModel(client), appLimitCap: new AppLimitCapModel(client), appLimitCapsDefault: new AppLimitCapsDefaultModel(client), appLimit: new AppLimitModel(client), @@ -95,12 +68,6 @@ export function createClient(config: OrmClientConfig) { appLimitDefault: new AppLimitDefaultModel(client), appLimitEvent: new AppLimitEventModel(client), appLimitWarning: new AppLimitWarningModel(client), - billingUsageSummary: new BillingUsageSummaryModel(client), - ledger: new LedgerModel(client), - meter: new MeterModel(client), - meterCredit: new MeterCreditModel(client), - meterDefault: new MeterDefaultModel(client), - meterSource: new MeterSourceModel(client), orgLimitAggregate: new OrgLimitAggregateModel(client), orgLimitCap: new OrgLimitCapModel(client), orgLimitCapsDefault: new OrgLimitCapsDefaultModel(client), @@ -109,13 +76,6 @@ export function createClient(config: OrmClientConfig) { orgLimitDefault: new OrgLimitDefaultModel(client), orgLimitEvent: new OrgLimitEventModel(client), orgLimitWarning: new OrgLimitWarningModel(client), - planCap: new PlanCapModel(client), - plan: new PlanModel(client), - planLimit: new PlanLimitModel(client), - planMeterLimit: new PlanMeterLimitModel(client), - planOverride: new PlanOverrideModel(client), - planPricing: new PlanPricingModel(client), - planSubscription: new PlanSubscriptionModel(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 a9d363ba3a..98fcbd6020 100644 --- a/sdk/constructive-react/src/usage/orm/input-types.ts +++ b/sdk/constructive-react/src/usage/orm/input-types.ts @@ -230,119 +230,8 @@ export interface UUIDListFilter { anyGreaterThan?: string; anyGreaterThanOrEqualTo?: string; } -// ============ Custom Scalar Types ============ -export type ConstructiveInternalTypeImage = unknown; -/** Defines rewards granted when a level is achieved; supports limit_credits and meter_credits */ -// ============ Entity Types ============ -export interface AppAchievementReward { - /** Number of credits to grant; unused by capability rewards */ - amount?: number | null; - createdAt?: string | null; - /** Credit type: permanent, expiring, etc. */ - creditType?: string | null; - /** Optional duration after which the granted credit expires; NULL means never expires */ - expiresInterval?: string | null; - id: string; - /** Name of the level this reward is granted for */ - levelName?: string | null; - /** Type of reward: limit_credit, meter_credit, or capability */ - rewardType?: string | null; - /** Target limit name, meter slug, or capability catalog name */ - targetName?: string | null; - updatedAt?: string | null; -} -/** Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually */ -export interface AppEventAggregate { - actorId?: string | null; - /** Cumulative count of completed steps toward this requirement */ - count?: number | null; - createdAt?: string | null; - id: string; - /** Name identifier of the level requirement being tracked */ - name?: string | null; - /** Start of current counting period; NULL means lifetime counting */ - periodStart?: string | null; - updatedAt?: string | null; -} -/** Partitioned append-only log of individual user actions; every single event ever recorded */ -export interface AppEvent { - actorId?: string | null; - /** Number of units completed in this step action */ - count?: number | null; - createdAt?: string | null; - /** Unique identifier for each event (uuidv7 provides temporal ordering) */ - id: string; - /** Name identifier of the level requirement this step fulfills */ - name?: string | null; -} -/** Catalog of known event types with per-type configuration for aggregation, retention, and level participation */ -export interface AppEventType { - /** Aggregation mode: count, sum, last_value, or none */ - aggregation?: string | null; - /** Grouping category: onboarding, engagement, analytics, commerce, etc. */ - category?: string | null; - createdAt?: string | null; - /** Human-readable description of this event type */ - description?: string | null; - /** Whether this event type participates in the levels/badge system by updating aggregates */ - feedsLevels?: boolean | null; - id: string; - /** Whether recording of this event type is enabled */ - isActive?: boolean | null; - /** Unique name identifier for this event type */ - name?: string | null; - /** Optional period for aggregate count reset; NULL means lifetime counting */ - periodInterval?: string | null; - updatedAt?: string | null; -} -/** Defines available levels that users can achieve by completing requirements */ -export interface AppLevel { - createdAt?: string | null; - /** Human-readable description of what this level represents */ - description?: string | null; - id: string; - /** Badge or icon image associated with this level */ - image?: ConstructiveInternalTypeImage | null; - /** Unique name of the level */ - name?: string | null; - /** Optional owner (actor) who created or manages this level */ - ownerId?: string | null; - updatedAt?: string | null; -} -/** Records when a user achieves a level; prevents duplicate reward grants */ -export interface AppLevelGrant { - actorId?: string | null; - createdAt?: string | null; - /** When this grant lapses; NULL means it holds until revoked */ - expiresAt?: string | null; - id: string; - /** Name of the level that was achieved */ - levelName?: string | null; - /** Period start for periodic achievements; -infinity for non-periodic (earn-once) */ - periodStart?: string | null; - updatedAt?: string | null; -} -/** Defines the specific requirements that must be met to achieve a level */ -export interface AppLevelRequirement { - createdAt?: string | null; - /** Human-readable description of what this requirement entails */ - description?: string | null; - /** Requirements of a level sharing this key satisfy it as alternatives; NULL requires this one on its own */ - groupKey?: string | null; - id: string; - /** Name of the level this requirement belongs to */ - level?: string | null; - /** Computed signal to compare against required_count instead of an event count; currently only account_age_days */ - metric?: string | null; - /** Name identifier of the requirement (matches step names) */ - name?: string | null; - /** Display ordering priority; lower values appear first */ - priority?: number | null; - /** Number of steps needed to satisfy this requirement */ - requiredCount?: number | null; - updatedAt?: string | null; -} /** Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. */ +// ============ Entity Types ============ export interface AppLimitCap { /** Entity this cap override applies to */ entityId?: string | null; @@ -488,134 +377,6 @@ export interface AppLimitWarning { /** Threshold type: absolute (fixed count) or percentage (of max) */ warningType?: string | null; } -/** Permanent monthly usage summary per entity per meter (user-facing billing dashboard) */ -export interface BillingUsageSummary { - /** Universal credits consumed during this period */ - creditsConsumed?: string | null; - /** The entity (org, team, user) this summary belongs to */ - entityId?: string | null; - /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */ - entityType?: string | null; - id: string; - /** Which meter this summary tracks */ - meterSlug?: string | null; - /** Resolved billable organization via get_organization_id */ - organizationId?: string | null; - /** Units consumed beyond the plan limit (quantity_used - plan_limit when positive) */ - overageUnits?: string | null; - /** End of the billing period this summary covers */ - periodEnd?: string | null; - /** Start of the billing period this summary covers */ - periodStart?: string | null; - /** Plan limit that was in effect during this period */ - planLimit?: string | null; - /** Total units consumed during this period */ - quantityUsed?: string | null; -} -/** Append-only event log for all billing events (usage, grants, adjustments) */ -export interface Ledger { - createdAt?: string | null; - /** Change amount (positive = grant/credit, negative = consumption/debit) */ - delta?: string | null; - /** The entity this ledger entry belongs to */ - entityId?: string | null; - /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */ - entityType?: string | null; - /** Specific type: increment, decrement, credit_purchase, plan_grant, reset, adjustment */ - entryType?: string | null; - /** Unique identifier for each ledger entry */ - id: string; - /** Classification: usage, grant, adjustment, refund */ - ledgerClass?: string | null; - /** Additional context (reason, source, Stripe receipt, etc.) */ - metadata?: Record | null; - /** Which meter this entry is for */ - meterSlug?: string | null; - /** Resolved billable organization via get_organization_id */ - organizationId?: string | null; - /** Running total of usage after this entry */ - usageAfter?: string | null; -} -/** Defines billable meters (what to track: quotas, feature flags, credit pools) */ -export interface Meter { - /** How usage is aggregated: cumulative (sum over period) or peak (max watermark) */ - aggregation?: string | null; - /** Slug of the category pool meter this meter belongs to. When set, usage overflow charges the category pool before falling through to universal credits. NULL means skip category pool and fall through directly to universal. */ - categoryMeter?: string | null; - /** Universal credits consumed per unit of this meter. NULL disables universal credit fallback. */ - creditCost?: number | null; - /** Human-readable name for the meter */ - displayName?: string | null; - id: string; - /** Whether this meter is currently active */ - isActive?: boolean | null; - /** Type of meter: quota (consumable), boolean (feature flag), or usage_pool (category aggregator) */ - meterType?: string | null; - /** Reset cadence for this meter (e.g. 1 month, 1 year). NULL means no periodic reset. */ - periodInterval?: string | null; - /** Maximum unused units that carry forward on rollover reset. NULL means unlimited rollover. */ - rolloverCap?: string | null; - /** Unique identifier for the meter (e.g. api_requests, storage_gb, seats) */ - slug?: string | null; - /** Unit of measurement for this meter (e.g. tokens, characters, audio_seconds, pages, images, megapixels, bytes, requests, compute_ms, credits) */ - unit?: string | null; -} -/** Append-only ledger of credit grants for billing meters that automatically update balances */ -export interface MeterCredit { - /** Number of credits to grant (positive to add, negative to revoke) */ - amount?: string | null; - /** When this credit was granted */ - createdAt?: string | null; - /** Credit behavior: permanent (survives reset), period (zeroed on reset), or rollover (unused portion carries forward) */ - creditType?: string | null; - /** Entity this credit applies to */ - entityId?: string | null; - /** Membership prefix identifying the entity kind (org, team, app) */ - entityType?: string | null; - /** When this credit expires. NULL means the credit never expires. */ - expiresAt?: string | null; - id: string; - /** FK to meters — which meter definition this credit applies to */ - meterId?: string | null; - /** Resolved billable organization via get_organization_id */ - organizationId?: string | null; - /** Optional reason for the credit grant (promo code, admin grant, etc.) */ - reason?: string | null; -} -/** Default meter catalog: defines which meters are available and their default plan_limit values for new entities */ -export interface MeterDefault { - /** Slug of the category pool meter (usage_pool) this meter belongs to, enabling the per-task -> category -> universal waterfall for default-provisioned meters. NULL skips the category pool. */ - categoryMeter?: string | null; - /** Universal credits consumed per unit of this meter. NULL disables universal credit fallback. */ - creditCost?: string | null; - /** Default plan_limit value for new entity balances. 0 means no quota; -1 (negative) means unlimited. */ - defaultPlanLimit?: string | null; - /** Human-readable name for the default meter */ - displayName?: string | null; - id: string; - /** Whether this default meter is actively provisioned for new entities */ - isActive?: boolean | null; - /** Type of meter: quota, boolean, or usage_pool */ - meterType?: string | null; - /** Meter slug that matches the slug in the meters table */ - slug?: string | null; - /** Unit of measurement for this meter (e.g. tokens, requests, images, compute_ms, credits) */ - unit?: string | null; -} -/** Maps billing meters to typed usage summary table columns for automated usage reconciliation. Each row tells reconcile_typed_usage() which column to aggregate and how. */ -export interface MeterSource { - /** How to aggregate the column. Built-in types: sum, sum_bytes_to_gb, peak. Custom types supported. */ - aggregationType?: string | null; - /** Column name in the typed usage summary table (e.g. total_reads, avg_read_time_ms, size_bytes) */ - dimensionPath?: string | null; - id: string; - /** Soft-delete flag. Inactive sources are skipped during reconciliation. */ - isActive?: boolean | null; - /** Slug of the billing meter this source feeds (matches meters.slug in the billing module) */ - meterSlug?: string | null; - /** Source table type: table_usage (db_table_stats_usage_summary), query_time (db_query_stats_usage_summary), or row_count (trigger-based, skipped by reconcile) */ - sourceMetric?: string | null; -} /** Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) */ export interface OrgLimitAggregate { /** Entity (org) whose aggregate usage is being tracked */ @@ -765,94 +526,6 @@ export interface OrgLimitWarning { /** Threshold type: absolute (fixed count) or percentage (of max) */ warningType?: string | null; } -/** Maps each plan to feature flag cap values (written to limit_caps when plan is applied) */ -export interface PlanCap { - /** Name of the cap/feature flag this plan sets (must match a name in caps_defaults or limit_caps) */ - capName?: string | null; - /** Cap value to set when this plan is applied. Convention: 0=disabled, 1=enabled, N=numeric cap, negative=unlimited */ - capValue?: string | null; - id: string; - /** Reference to the plan this cap setting belongs to */ - planId?: string | null; -} -/** Defines plan tiers with named limit configurations */ -export interface Plan { - /** Human-readable description of the plan tier */ - description?: string | null; - id: string; - /** Whether this plan can currently be applied to entities */ - isActive?: boolean | null; - /** Unique name identifier of the plan (e.g. free, pro, enterprise) */ - name?: string | null; -} -/** Maps each plan to specific limit names and their maximum allowed values */ -export interface PlanLimit { - id: string; - /** Name of the limit this plan sets (must match the name field in a limits table) */ - limitName?: string | null; - /** Maximum value to set on the limit when this plan is applied; negative means unlimited */ - maxValue?: string | null; - /** Reference to the plan this limit configuration belongs to */ - planId?: string | null; -} -/** Maps each plan to billing meter quotas (plan_limit values written to balances when plan is applied) */ -export interface PlanMeterLimit { - id: string; - /** Slug of the billing meter this plan sets a quota for (must match a slug in the meters table) */ - meterSlug?: string | null; - /** Reference to the plan this meter limit belongs to */ - planId?: string | null; - /** Billing quota to set on the balance when this plan is applied; negative means unlimited */ - planLimit?: string | null; -} -/** Per-entity limit overrides that take precedence over plan defaults */ -export interface PlanOverride { - /** Entity receiving the custom override (personal org or actual org) */ - entityId?: string | null; - /** When this override expires; NULL means permanent */ - expiresAt?: string | null; - id: string; - /** Name of the limit being overridden */ - limitName?: string | null; - /** Override maximum value; negative means unlimited */ - maxValue?: string | null; - /** Admin note explaining why this override was granted */ - reason?: string | null; -} -/** Billing intervals and pricing for each plan tier */ -export interface PlanPricing { - /** Billing cycle identifier (e.g. monthly, yearly, lifetime) */ - billingInterval?: string | null; - /** ISO 4217 currency code (lowercase) */ - currency?: string | null; - /** Discount percentage off the base price (0-100); NULL means no discount */ - discountPercent?: string | null; - id: string; - /** Whether this pricing option is currently available */ - isActive?: boolean | null; - /** Reference to the plan this pricing belongs to */ - planId?: string | null; - /** Price in smallest currency unit (e.g. cents); negative means contact-sales */ - price?: string | null; -} -/** Assigns a plan to an entity with subscription lifecycle (start, end, active state) */ -export interface PlanSubscription { - /** When the subscription expires (NULL = no expiration) */ - endsAt?: string | null; - /** The entity (org, team, user) this subscription belongs to */ - entityId?: string | null; - /** Membership prefix identifying the entity kind (org, team, app) */ - entityType?: string | null; - id: string; - /** Whether the subscription is currently active */ - isActive?: boolean | null; - /** Resolved billable organization via get_organization_id */ - organizationId?: string | null; - /** Reference to the plan this subscription is for */ - planId?: string | null; - /** When the subscription becomes active */ - startsAt?: string | null; -} // ============ Relation Helper Types ============ export interface ConnectionResult { nodes: T[]; @@ -866,13 +539,6 @@ export interface PageInfo { endCursor?: string | null; } // ============ Entity Relation Types ============ -export interface AppAchievementRewardRelations {} -export interface AppEventAggregateRelations {} -export interface AppEventRelations {} -export interface AppEventTypeRelations {} -export interface AppLevelRelations {} -export interface AppLevelGrantRelations {} -export interface AppLevelRequirementRelations {} export interface AppLimitCapRelations {} export interface AppLimitCapsDefaultRelations {} export interface AppLimitRelations {} @@ -896,16 +562,6 @@ export interface AppLimitDefaultRelations { } export interface AppLimitEventRelations {} export interface AppLimitWarningRelations {} -export interface BillingUsageSummaryRelations {} -export interface LedgerRelations {} -export interface MeterRelations { - meterCredits?: ConnectionResult; -} -export interface MeterCreditRelations { - meter?: Meter | null; -} -export interface MeterDefaultRelations {} -export interface MeterSourceRelations {} export interface OrgLimitAggregateRelations {} export interface OrgLimitCapRelations {} export interface OrgLimitCapsDefaultRelations {} @@ -918,38 +574,7 @@ export interface OrgLimitDefaultRelations { } export interface OrgLimitEventRelations {} export interface OrgLimitWarningRelations {} -export interface PlanCapRelations { - plan?: Plan | null; -} -export interface PlanRelations { - planCaps?: ConnectionResult; - planLimits?: ConnectionResult; - planMeterLimits?: ConnectionResult; - planPricings?: ConnectionResult; - planSubscriptions?: ConnectionResult; -} -export interface PlanLimitRelations { - plan?: Plan | null; -} -export interface PlanMeterLimitRelations { - plan?: Plan | null; -} -export interface PlanOverrideRelations {} -export interface PlanPricingRelations { - plan?: Plan | null; -} -export interface PlanSubscriptionRelations { - plan?: Plan | null; -} // ============ Entity Types With Relations ============ -export type AppAchievementRewardWithRelations = AppAchievementReward & - AppAchievementRewardRelations; -export type AppEventAggregateWithRelations = AppEventAggregate & AppEventAggregateRelations; -export type AppEventWithRelations = AppEvent & AppEventRelations; -export type AppEventTypeWithRelations = AppEventType & AppEventTypeRelations; -export type AppLevelWithRelations = AppLevel & AppLevelRelations; -export type AppLevelGrantWithRelations = AppLevelGrant & AppLevelGrantRelations; -export type AppLevelRequirementWithRelations = AppLevelRequirement & AppLevelRequirementRelations; export type AppLimitCapWithRelations = AppLimitCap & AppLimitCapRelations; export type AppLimitCapsDefaultWithRelations = AppLimitCapsDefault & AppLimitCapsDefaultRelations; export type AppLimitWithRelations = AppLimit & AppLimitRelations; @@ -962,12 +587,6 @@ export type AppLimitCreditRedemptionWithRelations = AppLimitCreditRedemption & export type AppLimitDefaultWithRelations = AppLimitDefault & AppLimitDefaultRelations; export type AppLimitEventWithRelations = AppLimitEvent & AppLimitEventRelations; export type AppLimitWarningWithRelations = AppLimitWarning & AppLimitWarningRelations; -export type BillingUsageSummaryWithRelations = BillingUsageSummary & BillingUsageSummaryRelations; -export type LedgerWithRelations = Ledger & LedgerRelations; -export type MeterWithRelations = Meter & MeterRelations; -export type MeterCreditWithRelations = MeterCredit & MeterCreditRelations; -export type MeterDefaultWithRelations = MeterDefault & MeterDefaultRelations; -export type MeterSourceWithRelations = MeterSource & MeterSourceRelations; export type OrgLimitAggregateWithRelations = OrgLimitAggregate & OrgLimitAggregateRelations; export type OrgLimitCapWithRelations = OrgLimitCap & OrgLimitCapRelations; export type OrgLimitCapsDefaultWithRelations = OrgLimitCapsDefault & OrgLimitCapsDefaultRelations; @@ -976,83 +595,7 @@ export type OrgLimitCreditWithRelations = OrgLimitCredit & OrgLimitCreditRelatio export type OrgLimitDefaultWithRelations = OrgLimitDefault & OrgLimitDefaultRelations; export type OrgLimitEventWithRelations = OrgLimitEvent & OrgLimitEventRelations; export type OrgLimitWarningWithRelations = OrgLimitWarning & OrgLimitWarningRelations; -export type PlanCapWithRelations = PlanCap & PlanCapRelations; -export type PlanWithRelations = Plan & PlanRelations; -export type PlanLimitWithRelations = PlanLimit & PlanLimitRelations; -export type PlanMeterLimitWithRelations = PlanMeterLimit & PlanMeterLimitRelations; -export type PlanOverrideWithRelations = PlanOverride & PlanOverrideRelations; -export type PlanPricingWithRelations = PlanPricing & PlanPricingRelations; -export type PlanSubscriptionWithRelations = PlanSubscription & PlanSubscriptionRelations; // ============ Entity Select Types ============ -export type AppAchievementRewardSelect = { - amount?: boolean; - createdAt?: boolean; - creditType?: boolean; - expiresInterval?: boolean; - id?: boolean; - levelName?: boolean; - rewardType?: boolean; - targetName?: boolean; - updatedAt?: boolean; -}; -export type AppEventAggregateSelect = { - actorId?: boolean; - count?: boolean; - createdAt?: boolean; - id?: boolean; - name?: boolean; - periodStart?: boolean; - updatedAt?: boolean; -}; -export type AppEventSelect = { - actorId?: boolean; - count?: boolean; - createdAt?: boolean; - id?: boolean; - name?: boolean; -}; -export type AppEventTypeSelect = { - aggregation?: boolean; - category?: boolean; - createdAt?: boolean; - description?: boolean; - feedsLevels?: boolean; - id?: boolean; - isActive?: boolean; - name?: boolean; - periodInterval?: boolean; - updatedAt?: boolean; -}; -export type AppLevelSelect = { - createdAt?: boolean; - description?: boolean; - id?: boolean; - image?: boolean; - name?: boolean; - ownerId?: boolean; - updatedAt?: boolean; -}; -export type AppLevelGrantSelect = { - actorId?: boolean; - createdAt?: boolean; - expiresAt?: boolean; - id?: boolean; - levelName?: boolean; - periodStart?: boolean; - updatedAt?: boolean; -}; -export type AppLevelRequirementSelect = { - createdAt?: boolean; - description?: boolean; - groupKey?: boolean; - id?: boolean; - level?: boolean; - metric?: boolean; - name?: boolean; - priority?: boolean; - requiredCount?: boolean; - updatedAt?: boolean; -}; export type AppLimitCapSelect = { entityId?: boolean; id?: boolean; @@ -1172,85 +715,6 @@ export type AppLimitWarningSelect = { thresholdValue?: boolean; warningType?: boolean; }; -export type BillingUsageSummarySelect = { - creditsConsumed?: boolean; - entityId?: boolean; - entityType?: boolean; - id?: boolean; - meterSlug?: boolean; - organizationId?: boolean; - overageUnits?: boolean; - periodEnd?: boolean; - periodStart?: boolean; - planLimit?: boolean; - quantityUsed?: boolean; -}; -export type LedgerSelect = { - createdAt?: boolean; - delta?: boolean; - entityId?: boolean; - entityType?: boolean; - entryType?: boolean; - id?: boolean; - ledgerClass?: boolean; - metadata?: boolean; - meterSlug?: boolean; - organizationId?: boolean; - usageAfter?: boolean; -}; -export type MeterSelect = { - aggregation?: boolean; - categoryMeter?: boolean; - creditCost?: boolean; - displayName?: boolean; - id?: boolean; - isActive?: boolean; - meterType?: boolean; - periodInterval?: boolean; - rolloverCap?: boolean; - slug?: boolean; - unit?: boolean; - meterCredits?: { - select: MeterCreditSelect; - first?: number; - filter?: MeterCreditFilter; - orderBy?: MeterCreditOrderBy[]; - }; -}; -export type MeterCreditSelect = { - amount?: boolean; - createdAt?: boolean; - creditType?: boolean; - entityId?: boolean; - entityType?: boolean; - expiresAt?: boolean; - id?: boolean; - meterId?: boolean; - organizationId?: boolean; - reason?: boolean; - meter?: { - select: MeterSelect; - }; -}; -export type MeterDefaultSelect = { - categoryMeter?: boolean; - creditCost?: boolean; - defaultPlanLimit?: boolean; - displayName?: boolean; - id?: boolean; - isActive?: boolean; - meterType?: boolean; - slug?: boolean; - unit?: boolean; -}; -export type MeterSourceSelect = { - aggregationType?: boolean; - dimensionPath?: boolean; - id?: boolean; - isActive?: boolean; - meterSlug?: boolean; - sourceMetric?: boolean; -}; export type OrgLimitAggregateSelect = { entityId?: boolean; entityType?: boolean; @@ -1343,334 +807,72 @@ export type OrgLimitWarningSelect = { thresholdValue?: boolean; warningType?: boolean; }; -export type PlanCapSelect = { - capName?: boolean; - capValue?: boolean; - id?: boolean; - planId?: boolean; - plan?: { - select: PlanSelect; - }; -}; -export type PlanSelect = { - description?: boolean; - id?: boolean; - isActive?: boolean; - name?: boolean; - planCaps?: { - select: PlanCapSelect; - first?: number; - filter?: PlanCapFilter; - orderBy?: PlanCapOrderBy[]; - }; - planLimits?: { - select: PlanLimitSelect; - first?: number; - filter?: PlanLimitFilter; - orderBy?: PlanLimitOrderBy[]; - }; - planMeterLimits?: { - select: PlanMeterLimitSelect; - first?: number; - filter?: PlanMeterLimitFilter; - orderBy?: PlanMeterLimitOrderBy[]; - }; - planPricings?: { - select: PlanPricingSelect; - first?: number; - filter?: PlanPricingFilter; - orderBy?: PlanPricingOrderBy[]; - }; - planSubscriptions?: { - select: PlanSubscriptionSelect; - first?: number; - filter?: PlanSubscriptionFilter; - orderBy?: PlanSubscriptionOrderBy[]; - }; -}; -export type PlanLimitSelect = { - id?: boolean; - limitName?: boolean; - maxValue?: boolean; - planId?: boolean; - plan?: { - select: PlanSelect; - }; -}; -export type PlanMeterLimitSelect = { - id?: boolean; - meterSlug?: boolean; - planId?: boolean; - planLimit?: boolean; - plan?: { - select: PlanSelect; - }; -}; -export type PlanOverrideSelect = { - entityId?: boolean; - expiresAt?: boolean; - id?: boolean; - limitName?: boolean; - maxValue?: boolean; - reason?: boolean; -}; -export type PlanPricingSelect = { - billingInterval?: boolean; - currency?: boolean; - discountPercent?: boolean; - id?: boolean; - isActive?: boolean; - planId?: boolean; - price?: boolean; - plan?: { - select: PlanSelect; - }; -}; -export type PlanSubscriptionSelect = { - endsAt?: boolean; - entityId?: boolean; - entityType?: boolean; - id?: boolean; - isActive?: boolean; - organizationId?: boolean; - planId?: boolean; - startsAt?: boolean; - plan?: { - select: PlanSelect; - }; -}; // ============ Table Filter Types ============ -export interface AppAchievementRewardFilter { - /** Filter by the object’s `amount` field. */ - amount?: IntFilter; - /** Checks for all expressions in this list. */ - and?: AppAchievementRewardFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `creditType` field. */ - creditType?: StringFilter; - /** Filter by the object’s `expiresInterval` field. */ - expiresInterval?: IntervalFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `levelName` field. */ - levelName?: StringFilter; - /** Negates the expression. */ - not?: AppAchievementRewardFilter; - /** Checks for any expressions in this list. */ - or?: AppAchievementRewardFilter[]; - /** Filter by the object’s `rewardType` field. */ - rewardType?: StringFilter; - /** Filter by the object’s `targetName` field. */ - targetName?: StringFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -export interface AppEventAggregateFilter { - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; +export interface AppLimitCapFilter { /** Checks for all expressions in this list. */ - and?: AppEventAggregateFilter[]; - /** Filter by the object’s `count` field. */ - count?: IntFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; + and?: AppLimitCapFilter[]; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; /** Negates the expression. */ - not?: AppEventAggregateFilter; + not?: AppLimitCapFilter; /** Checks for any expressions in this list. */ - or?: AppEventAggregateFilter[]; - /** Filter by the object’s `periodStart` field. */ - periodStart?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; + or?: AppLimitCapFilter[]; } -export interface AppEventFilter { - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; +export interface AppLimitCapsDefaultFilter { /** Checks for all expressions in this list. */ - and?: AppEventFilter[]; - /** Filter by the object’s `count` field. */ - count?: IntFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; + and?: AppLimitCapsDefaultFilter[]; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; /** Negates the expression. */ - not?: AppEventFilter; + not?: AppLimitCapsDefaultFilter; /** Checks for any expressions in this list. */ - or?: AppEventFilter[]; + or?: AppLimitCapsDefaultFilter[]; } -export interface AppEventTypeFilter { - /** Filter by the object’s `aggregation` field. */ - aggregation?: StringFilter; +export interface AppLimitFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: AppEventTypeFilter[]; - /** Filter by the object’s `category` field. */ - category?: StringFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `feedsLevels` field. */ - feedsLevels?: BooleanFilter; + and?: AppLimitFilter[]; + /** Filter by the object’s `entityType` field. */ + entityType?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `isActive` field. */ - isActive?: BooleanFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; /** Negates the expression. */ - not?: AppEventTypeFilter; + not?: AppLimitFilter; + /** Filter by the object’s `num` field. */ + num?: BigIntFilter; /** Checks for any expressions in this list. */ - or?: AppEventTypeFilter[]; - /** Filter by the object’s `periodInterval` field. */ - periodInterval?: IntervalFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; + or?: AppLimitFilter[]; + /** Filter by the object’s `organizationId` field. */ + organizationId?: UUIDFilter; + /** Filter by the object’s `periodCredits` field. */ + periodCredits?: BigIntFilter; + /** Filter by the object’s `planMax` field. */ + planMax?: BigIntFilter; + /** Filter by the object’s `purchasedCredits` field. */ + purchasedCredits?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; + /** Filter by the object’s `windowDuration` field. */ + windowDuration?: IntervalFilter; + /** Filter by the object’s `windowStart` field. */ + windowStart?: DatetimeFilter; } -export interface AppLevelFilter { - /** Checks for all expressions in this list. */ - and?: AppLevelFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `image` field. */ - image?: ConstructiveInternalTypeImageFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Negates the expression. */ - not?: AppLevelFilter; - /** Checks for any expressions in this list. */ - or?: AppLevelFilter[]; - /** Filter by the object’s `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -export interface AppLevelGrantFilter { - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: AppLevelGrantFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `expiresAt` field. */ - expiresAt?: DatetimeFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `levelName` field. */ - levelName?: StringFilter; - /** Negates the expression. */ - not?: AppLevelGrantFilter; - /** Checks for any expressions in this list. */ - or?: AppLevelGrantFilter[]; - /** Filter by the object’s `periodStart` field. */ - periodStart?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -export interface AppLevelRequirementFilter { - /** Checks for all expressions in this list. */ - and?: AppLevelRequirementFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `groupKey` field. */ - groupKey?: StringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `level` field. */ - level?: StringFilter; - /** Filter by the object’s `metric` field. */ - metric?: StringFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Negates the expression. */ - not?: AppLevelRequirementFilter; - /** Checks for any expressions in this list. */ - or?: AppLevelRequirementFilter[]; - /** Filter by the object’s `priority` field. */ - priority?: IntFilter; - /** Filter by the object’s `requiredCount` field. */ - requiredCount?: IntFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -export interface AppLimitCapFilter { - /** Checks for all expressions in this list. */ - and?: AppLimitCapFilter[]; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Negates the expression. */ - not?: AppLimitCapFilter; - /** Checks for any expressions in this list. */ - or?: AppLimitCapFilter[]; -} -export interface AppLimitCapsDefaultFilter { - /** Checks for all expressions in this list. */ - and?: AppLimitCapsDefaultFilter[]; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Negates the expression. */ - not?: AppLimitCapsDefaultFilter; - /** Checks for any expressions in this list. */ - or?: AppLimitCapsDefaultFilter[]; -} -export interface AppLimitFilter { - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitFilter[]; - /** Filter by the object’s `entityType` field. */ - entityType?: StringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Negates the expression. */ - not?: AppLimitFilter; - /** Filter by the object’s `num` field. */ - num?: BigIntFilter; - /** Checks for any expressions in this list. */ - or?: AppLimitFilter[]; - /** Filter by the object’s `organizationId` field. */ - organizationId?: UUIDFilter; - /** Filter by the object’s `periodCredits` field. */ - periodCredits?: BigIntFilter; - /** Filter by the object’s `planMax` field. */ - planMax?: BigIntFilter; - /** Filter by the object’s `purchasedCredits` field. */ - purchasedCredits?: BigIntFilter; - /** Filter by the object’s `softMax` field. */ - softMax?: BigIntFilter; - /** Filter by the object’s `windowDuration` field. */ - windowDuration?: IntervalFilter; - /** Filter by the object’s `windowStart` field. */ - windowStart?: DatetimeFilter; -} -export interface AppLimitCreditCodeFilter { +export interface AppLimitCreditCodeFilter { /** Checks for all expressions in this list. */ and?: AppLimitCreditCodeFilter[]; /** Filter by the object’s `appLimitCreditCodeItemsByCreditCodeId` relation. */ @@ -1836,176 +1038,6 @@ export interface AppLimitWarningFilter { /** Filter by the object’s `warningType` field. */ warningType?: StringFilter; } -export interface BillingUsageSummaryFilter { - /** Checks for all expressions in this list. */ - and?: BillingUsageSummaryFilter[]; - /** Filter by the object’s `creditsConsumed` field. */ - creditsConsumed?: BigIntFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `entityType` field. */ - entityType?: StringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `meterSlug` field. */ - meterSlug?: StringFilter; - /** Negates the expression. */ - not?: BillingUsageSummaryFilter; - /** Checks for any expressions in this list. */ - or?: BillingUsageSummaryFilter[]; - /** Filter by the object’s `organizationId` field. */ - organizationId?: UUIDFilter; - /** Filter by the object’s `overageUnits` field. */ - overageUnits?: BigIntFilter; - /** Filter by the object’s `periodEnd` field. */ - periodEnd?: DatetimeFilter; - /** Filter by the object’s `periodStart` field. */ - periodStart?: DatetimeFilter; - /** Filter by the object’s `planLimit` field. */ - planLimit?: BigIntFilter; - /** Filter by the object’s `quantityUsed` field. */ - quantityUsed?: BigIntFilter; -} -export interface LedgerFilter { - /** Checks for all expressions in this list. */ - and?: LedgerFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `delta` field. */ - delta?: BigIntFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `entityType` field. */ - entityType?: StringFilter; - /** Filter by the object’s `entryType` field. */ - entryType?: StringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `ledgerClass` field. */ - ledgerClass?: StringFilter; - /** Filter by the object’s `metadata` field. */ - metadata?: JSONFilter; - /** Filter by the object’s `meterSlug` field. */ - meterSlug?: StringFilter; - /** Negates the expression. */ - not?: LedgerFilter; - /** Checks for any expressions in this list. */ - or?: LedgerFilter[]; - /** Filter by the object’s `organizationId` field. */ - organizationId?: UUIDFilter; - /** Filter by the object’s `usageAfter` field. */ - usageAfter?: BigIntFilter; -} -export interface MeterFilter { - /** Filter by the object’s `aggregation` field. */ - aggregation?: StringFilter; - /** Checks for all expressions in this list. */ - and?: MeterFilter[]; - /** Filter by the object’s `categoryMeter` field. */ - categoryMeter?: StringFilter; - /** Filter by the object’s `creditCost` field. */ - creditCost?: IntFilter; - /** Filter by the object’s `displayName` field. */ - displayName?: StringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isActive` field. */ - isActive?: BooleanFilter; - /** Filter by the object’s `meterCredits` relation. */ - meterCredits?: MeterToManyMeterCreditFilter; - /** `meterCredits` exist. */ - meterCreditsExist?: boolean; - /** Filter by the object’s `meterType` field. */ - meterType?: StringFilter; - /** Negates the expression. */ - not?: MeterFilter; - /** Checks for any expressions in this list. */ - or?: MeterFilter[]; - /** Filter by the object’s `periodInterval` field. */ - periodInterval?: IntervalFilter; - /** Filter by the object’s `rolloverCap` field. */ - rolloverCap?: BigIntFilter; - /** Filter by the object’s `slug` field. */ - slug?: StringFilter; - /** Filter by the object’s `unit` field. */ - unit?: StringFilter; -} -export interface MeterCreditFilter { - /** Filter by the object’s `amount` field. */ - amount?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: MeterCreditFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `creditType` field. */ - creditType?: StringFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `entityType` field. */ - entityType?: StringFilter; - /** Filter by the object’s `expiresAt` field. */ - expiresAt?: DatetimeFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `meter` relation. */ - meter?: MeterFilter; - /** Filter by the object’s `meterId` field. */ - meterId?: UUIDFilter; - /** Negates the expression. */ - not?: MeterCreditFilter; - /** Checks for any expressions in this list. */ - or?: MeterCreditFilter[]; - /** Filter by the object’s `organizationId` field. */ - organizationId?: UUIDFilter; - /** Filter by the object’s `reason` field. */ - reason?: StringFilter; -} -export interface MeterDefaultFilter { - /** Checks for all expressions in this list. */ - and?: MeterDefaultFilter[]; - /** Filter by the object’s `categoryMeter` field. */ - categoryMeter?: StringFilter; - /** Filter by the object’s `creditCost` field. */ - creditCost?: BigFloatFilter; - /** Filter by the object’s `defaultPlanLimit` field. */ - defaultPlanLimit?: BigIntFilter; - /** Filter by the object’s `displayName` field. */ - displayName?: StringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isActive` field. */ - isActive?: BooleanFilter; - /** Filter by the object’s `meterType` field. */ - meterType?: StringFilter; - /** Negates the expression. */ - not?: MeterDefaultFilter; - /** Checks for any expressions in this list. */ - or?: MeterDefaultFilter[]; - /** Filter by the object’s `slug` field. */ - slug?: StringFilter; - /** Filter by the object’s `unit` field. */ - unit?: StringFilter; -} -export interface MeterSourceFilter { - /** Filter by the object’s `aggregationType` field. */ - aggregationType?: StringFilter; - /** Checks for all expressions in this list. */ - and?: MeterSourceFilter[]; - /** Filter by the object’s `dimensionPath` field. */ - dimensionPath?: StringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isActive` field. */ - isActive?: BooleanFilter; - /** Filter by the object’s `meterSlug` field. */ - meterSlug?: StringFilter; - /** Negates the expression. */ - not?: MeterSourceFilter; - /** Checks for any expressions in this list. */ - or?: MeterSourceFilter[]; - /** Filter by the object’s `sourceMetric` field. */ - sourceMetric?: StringFilter; -} export interface OrgLimitAggregateFilter { /** Checks for all expressions in this list. */ and?: OrgLimitAggregateFilter[]; @@ -2210,347 +1242,49 @@ export interface OrgLimitWarningFilter { /** Filter by the object’s `warningType` field. */ warningType?: StringFilter; } -export interface PlanCapFilter { - /** Checks for all expressions in this list. */ - and?: PlanCapFilter[]; - /** Filter by the object’s `capName` field. */ - capName?: StringFilter; - /** Filter by the object’s `capValue` field. */ - capValue?: BigIntFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Negates the expression. */ - not?: PlanCapFilter; - /** Checks for any expressions in this list. */ - or?: PlanCapFilter[]; - /** Filter by the object’s `plan` relation. */ - plan?: PlanFilter; - /** Filter by the object’s `planId` field. */ - planId?: UUIDFilter; -} -export interface PlanFilter { - /** Checks for all expressions in this list. */ - and?: PlanFilter[]; - /** Filter by the object’s `description` field. */ - description?: 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?: PlanFilter; - /** Checks for any expressions in this list. */ - or?: PlanFilter[]; - /** Filter by the object’s `planCaps` relation. */ - planCaps?: PlanToManyPlanCapFilter; - /** `planCaps` exist. */ - planCapsExist?: boolean; - /** Filter by the object’s `planLimits` relation. */ - planLimits?: PlanToManyPlanLimitFilter; - /** `planLimits` exist. */ - planLimitsExist?: boolean; - /** Filter by the object’s `planMeterLimits` relation. */ - planMeterLimits?: PlanToManyPlanMeterLimitFilter; - /** `planMeterLimits` exist. */ - planMeterLimitsExist?: boolean; - /** Filter by the object’s `planPricings` relation. */ - planPricings?: PlanToManyPlanPricingFilter; - /** `planPricings` exist. */ - planPricingsExist?: boolean; - /** Filter by the object’s `planSubscriptions` relation. */ - planSubscriptions?: PlanToManyPlanSubscriptionFilter; - /** `planSubscriptions` exist. */ - planSubscriptionsExist?: boolean; -} -export interface PlanLimitFilter { - /** Checks for all expressions in this list. */ - and?: PlanLimitFilter[]; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `limitName` field. */ - limitName?: StringFilter; - /** Filter by the object’s `maxValue` field. */ - maxValue?: BigIntFilter; - /** Negates the expression. */ - not?: PlanLimitFilter; - /** Checks for any expressions in this list. */ - or?: PlanLimitFilter[]; - /** Filter by the object’s `plan` relation. */ - plan?: PlanFilter; - /** Filter by the object’s `planId` field. */ - planId?: UUIDFilter; -} -export interface PlanMeterLimitFilter { - /** Checks for all expressions in this list. */ - and?: PlanMeterLimitFilter[]; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `meterSlug` field. */ - meterSlug?: StringFilter; - /** Negates the expression. */ - not?: PlanMeterLimitFilter; - /** Checks for any expressions in this list. */ - or?: PlanMeterLimitFilter[]; - /** Filter by the object’s `plan` relation. */ - plan?: PlanFilter; - /** Filter by the object’s `planId` field. */ - planId?: UUIDFilter; - /** Filter by the object’s `planLimit` field. */ - planLimit?: BigIntFilter; -} -export interface PlanOverrideFilter { - /** Checks for all expressions in this list. */ - and?: PlanOverrideFilter[]; - /** 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 `limitName` field. */ - limitName?: StringFilter; - /** Filter by the object’s `maxValue` field. */ - maxValue?: BigIntFilter; - /** Negates the expression. */ - not?: PlanOverrideFilter; - /** Checks for any expressions in this list. */ - or?: PlanOverrideFilter[]; - /** Filter by the object’s `reason` field. */ - reason?: StringFilter; -} -export interface PlanPricingFilter { - /** Checks for all expressions in this list. */ - and?: PlanPricingFilter[]; - /** Filter by the object’s `billingInterval` field. */ - billingInterval?: StringFilter; - /** Filter by the object’s `currency` field. */ - currency?: StringFilter; - /** Filter by the object’s `discountPercent` field. */ - discountPercent?: BigFloatFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isActive` field. */ - isActive?: BooleanFilter; - /** Negates the expression. */ - not?: PlanPricingFilter; - /** Checks for any expressions in this list. */ - or?: PlanPricingFilter[]; - /** Filter by the object’s `plan` relation. */ - plan?: PlanFilter; - /** Filter by the object’s `planId` field. */ - planId?: UUIDFilter; - /** Filter by the object’s `price` field. */ - price?: BigIntFilter; -} -export interface PlanSubscriptionFilter { - /** Checks for all expressions in this list. */ - and?: PlanSubscriptionFilter[]; - /** Filter by the object’s `endsAt` field. */ - endsAt?: DatetimeFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `entityType` field. */ - entityType?: StringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isActive` field. */ - isActive?: BooleanFilter; - /** Negates the expression. */ - not?: PlanSubscriptionFilter; - /** Checks for any expressions in this list. */ - or?: PlanSubscriptionFilter[]; - /** Filter by the object’s `organizationId` field. */ - organizationId?: UUIDFilter; - /** Filter by the object’s `plan` relation. */ - plan?: PlanFilter; - /** Filter by the object’s `planId` field. */ - planId?: UUIDFilter; - /** Filter by the object’s `startsAt` field. */ - startsAt?: DatetimeFilter; -} // ============ OrderBy Types ============ -export type AppAchievementRewardOrderBy = - | 'AMOUNT_ASC' - | 'AMOUNT_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'CREDIT_TYPE_ASC' - | 'CREDIT_TYPE_DESC' - | 'EXPIRES_INTERVAL_ASC' - | 'EXPIRES_INTERVAL_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'LEVEL_NAME_ASC' - | 'LEVEL_NAME_DESC' - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'REWARD_TYPE_ASC' - | 'REWARD_TYPE_DESC' - | 'TARGET_NAME_ASC' - | 'TARGET_NAME_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type AppEventAggregateOrderBy = - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'COUNT_ASC' - | 'COUNT_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' +export type AppLimitCapOrderBy = + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' | 'ID_ASC' | 'ID_DESC' + | 'MAX_ASC' + | 'MAX_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'NATURAL' - | 'PERIOD_START_ASC' - | 'PERIOD_START_DESC' | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type AppEventOrderBy = - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'COUNT_ASC' - | 'COUNT_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' + | 'PRIMARY_KEY_DESC'; +export type AppLimitCapsDefaultOrderBy = | 'ID_ASC' | 'ID_DESC' + | 'MAX_ASC' + | 'MAX_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC'; -export type AppEventTypeOrderBy = - | 'AGGREGATION_ASC' - | 'AGGREGATION_DESC' - | 'CATEGORY_ASC' - | 'CATEGORY_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'FEEDS_LEVELS_ASC' - | 'FEEDS_LEVELS_DESC' +export type AppLimitOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'ENTITY_TYPE_ASC' + | 'ENTITY_TYPE_DESC' | 'ID_ASC' | 'ID_DESC' - | 'IS_ACTIVE_ASC' - | 'IS_ACTIVE_DESC' + | 'MAX_ASC' + | 'MAX_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'NATURAL' - | 'PERIOD_INTERVAL_ASC' - | 'PERIOD_INTERVAL_DESC' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type AppLevelOrderBy = - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'IMAGE_ASC' - | 'IMAGE_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'NATURAL' - | 'OWNER_ID_ASC' - | 'OWNER_ID_DESC' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type AppLevelGrantOrderBy = - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'EXPIRES_AT_ASC' - | 'EXPIRES_AT_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'LEVEL_NAME_ASC' - | 'LEVEL_NAME_DESC' - | 'NATURAL' - | 'PERIOD_START_ASC' - | 'PERIOD_START_DESC' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type AppLevelRequirementOrderBy = - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'GROUP_KEY_ASC' - | 'GROUP_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'LEVEL_ASC' - | 'LEVEL_DESC' - | 'METRIC_ASC' - | 'METRIC_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'PRIORITY_ASC' - | 'PRIORITY_DESC' - | 'REQUIRED_COUNT_ASC' - | 'REQUIRED_COUNT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type AppLimitCapOrderBy = - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'MAX_ASC' - | 'MAX_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC'; -export type AppLimitCapsDefaultOrderBy = - | 'ID_ASC' - | 'ID_DESC' - | 'MAX_ASC' - | 'MAX_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC'; -export type AppLimitOrderBy = - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'ENTITY_TYPE_ASC' - | 'ENTITY_TYPE_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'MAX_ASC' - | 'MAX_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'NATURAL' - | 'NUM_ASC' - | 'NUM_DESC' - | 'ORGANIZATION_ID_ASC' - | 'ORGANIZATION_ID_DESC' - | 'PERIOD_CREDITS_ASC' - | 'PERIOD_CREDITS_DESC' - | 'PLAN_MAX_ASC' - | 'PLAN_MAX_DESC' + | 'NUM_ASC' + | 'NUM_DESC' + | 'ORGANIZATION_ID_ASC' + | 'ORGANIZATION_ID_DESC' + | 'PERIOD_CREDITS_ASC' + | 'PERIOD_CREDITS_DESC' + | 'PLAN_MAX_ASC' + | 'PLAN_MAX_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'PURCHASED_CREDITS_ASC' @@ -2675,146 +1409,6 @@ export type AppLimitWarningOrderBy = | 'THRESHOLD_VALUE_DESC' | 'WARNING_TYPE_ASC' | 'WARNING_TYPE_DESC'; -export type BillingUsageSummaryOrderBy = - | 'CREDITS_CONSUMED_ASC' - | 'CREDITS_CONSUMED_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'ENTITY_TYPE_ASC' - | 'ENTITY_TYPE_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'METER_SLUG_ASC' - | 'METER_SLUG_DESC' - | 'NATURAL' - | 'ORGANIZATION_ID_ASC' - | 'ORGANIZATION_ID_DESC' - | 'OVERAGE_UNITS_ASC' - | 'OVERAGE_UNITS_DESC' - | 'PERIOD_END_ASC' - | 'PERIOD_END_DESC' - | 'PERIOD_START_ASC' - | 'PERIOD_START_DESC' - | 'PLAN_LIMIT_ASC' - | 'PLAN_LIMIT_DESC' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'QUANTITY_USED_ASC' - | 'QUANTITY_USED_DESC'; -export type LedgerOrderBy = - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'DELTA_ASC' - | 'DELTA_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'ENTITY_TYPE_ASC' - | 'ENTITY_TYPE_DESC' - | 'ENTRY_TYPE_ASC' - | 'ENTRY_TYPE_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'LEDGER_CLASS_ASC' - | 'LEDGER_CLASS_DESC' - | 'METADATA_ASC' - | 'METADATA_DESC' - | 'METER_SLUG_ASC' - | 'METER_SLUG_DESC' - | 'NATURAL' - | 'ORGANIZATION_ID_ASC' - | 'ORGANIZATION_ID_DESC' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'USAGE_AFTER_ASC' - | 'USAGE_AFTER_DESC'; -export type MeterOrderBy = - | 'AGGREGATION_ASC' - | 'AGGREGATION_DESC' - | 'CATEGORY_METER_ASC' - | 'CATEGORY_METER_DESC' - | 'CREDIT_COST_ASC' - | 'CREDIT_COST_DESC' - | 'DISPLAY_NAME_ASC' - | 'DISPLAY_NAME_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'IS_ACTIVE_ASC' - | 'IS_ACTIVE_DESC' - | 'METER_TYPE_ASC' - | 'METER_TYPE_DESC' - | 'NATURAL' - | 'PERIOD_INTERVAL_ASC' - | 'PERIOD_INTERVAL_DESC' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ROLLOVER_CAP_ASC' - | 'ROLLOVER_CAP_DESC' - | 'SLUG_ASC' - | 'SLUG_DESC' - | 'UNIT_ASC' - | 'UNIT_DESC'; -export type MeterCreditOrderBy = - | 'AMOUNT_ASC' - | 'AMOUNT_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'CREDIT_TYPE_ASC' - | 'CREDIT_TYPE_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'ENTITY_TYPE_ASC' - | 'ENTITY_TYPE_DESC' - | 'EXPIRES_AT_ASC' - | 'EXPIRES_AT_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'METER_ID_ASC' - | 'METER_ID_DESC' - | 'NATURAL' - | 'ORGANIZATION_ID_ASC' - | 'ORGANIZATION_ID_DESC' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'REASON_ASC' - | 'REASON_DESC'; -export type MeterDefaultOrderBy = - | 'CATEGORY_METER_ASC' - | 'CATEGORY_METER_DESC' - | 'CREDIT_COST_ASC' - | 'CREDIT_COST_DESC' - | 'DEFAULT_PLAN_LIMIT_ASC' - | 'DEFAULT_PLAN_LIMIT_DESC' - | 'DISPLAY_NAME_ASC' - | 'DISPLAY_NAME_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'IS_ACTIVE_ASC' - | 'IS_ACTIVE_DESC' - | 'METER_TYPE_ASC' - | 'METER_TYPE_DESC' - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'SLUG_ASC' - | 'SLUG_DESC' - | 'UNIT_ASC' - | 'UNIT_DESC'; -export type MeterSourceOrderBy = - | 'AGGREGATION_TYPE_ASC' - | 'AGGREGATION_TYPE_DESC' - | 'DIMENSION_PATH_ASC' - | 'DIMENSION_PATH_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'IS_ACTIVE_ASC' - | 'IS_ACTIVE_DESC' - | 'METER_SLUG_ASC' - | 'METER_SLUG_DESC' - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'SOURCE_METRIC_ASC' - | 'SOURCE_METRIC_DESC'; export type OrgLimitAggregateOrderBy = | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' @@ -2981,292 +1575,7 @@ export type OrgLimitWarningOrderBy = | 'THRESHOLD_VALUE_DESC' | 'WARNING_TYPE_ASC' | 'WARNING_TYPE_DESC'; -export type PlanCapOrderBy = - | 'CAP_NAME_ASC' - | 'CAP_NAME_DESC' - | 'CAP_VALUE_ASC' - | 'CAP_VALUE_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NATURAL' - | 'PLAN_ID_ASC' - | 'PLAN_ID_DESC' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC'; -export type PlanOrderBy = - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'IS_ACTIVE_ASC' - | 'IS_ACTIVE_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC'; -export type PlanLimitOrderBy = - | 'ID_ASC' - | 'ID_DESC' - | 'LIMIT_NAME_ASC' - | 'LIMIT_NAME_DESC' - | 'MAX_VALUE_ASC' - | 'MAX_VALUE_DESC' - | 'NATURAL' - | 'PLAN_ID_ASC' - | 'PLAN_ID_DESC' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC'; -export type PlanMeterLimitOrderBy = - | 'ID_ASC' - | 'ID_DESC' - | 'METER_SLUG_ASC' - | 'METER_SLUG_DESC' - | 'NATURAL' - | 'PLAN_ID_ASC' - | 'PLAN_ID_DESC' - | 'PLAN_LIMIT_ASC' - | 'PLAN_LIMIT_DESC' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC'; -export type PlanOverrideOrderBy = - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'EXPIRES_AT_ASC' - | 'EXPIRES_AT_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'LIMIT_NAME_ASC' - | 'LIMIT_NAME_DESC' - | 'MAX_VALUE_ASC' - | 'MAX_VALUE_DESC' - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'REASON_ASC' - | 'REASON_DESC'; -export type PlanPricingOrderBy = - | 'BILLING_INTERVAL_ASC' - | 'BILLING_INTERVAL_DESC' - | 'CURRENCY_ASC' - | 'CURRENCY_DESC' - | 'DISCOUNT_PERCENT_ASC' - | 'DISCOUNT_PERCENT_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'IS_ACTIVE_ASC' - | 'IS_ACTIVE_DESC' - | 'NATURAL' - | 'PLAN_ID_ASC' - | 'PLAN_ID_DESC' - | 'PRICE_ASC' - | 'PRICE_DESC' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC'; -export type PlanSubscriptionOrderBy = - | 'ENDS_AT_ASC' - | 'ENDS_AT_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'ENTITY_TYPE_ASC' - | 'ENTITY_TYPE_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'IS_ACTIVE_ASC' - | 'IS_ACTIVE_DESC' - | 'NATURAL' - | 'ORGANIZATION_ID_ASC' - | 'ORGANIZATION_ID_DESC' - | 'PLAN_ID_ASC' - | 'PLAN_ID_DESC' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'STARTS_AT_ASC' - | 'STARTS_AT_DESC'; // ============ CRUD Input Types ============ -export interface CreateAppAchievementRewardInput { - clientMutationId?: string; - appAchievementReward: { - amount?: number; - creditType?: string; - expiresInterval?: IntervalInput; - levelName: string; - rewardType: string; - targetName: string; - }; -} -export interface AppAchievementRewardPatch { - amount?: number | null; - creditType?: string | null; - expiresInterval?: IntervalInput | null; - levelName?: string | null; - rewardType?: string | null; - targetName?: string | null; -} -export interface UpdateAppAchievementRewardInput { - clientMutationId?: string; - id: string; - appAchievementRewardPatch: AppAchievementRewardPatch; -} -export interface DeleteAppAchievementRewardInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppEventAggregateInput { - clientMutationId?: string; - appEventAggregate: { - actorId?: string; - count?: number; - name: string; - periodStart?: string; - }; -} -export interface AppEventAggregatePatch { - actorId?: string | null; - count?: number | null; - name?: string | null; - periodStart?: string | null; -} -export interface UpdateAppEventAggregateInput { - clientMutationId?: string; - id: string; - appEventAggregatePatch: AppEventAggregatePatch; -} -export interface DeleteAppEventAggregateInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppEventInput { - clientMutationId?: string; - appEvent: { - actorId?: string; - count?: number; - name: string; - }; -} -export interface AppEventPatch { - actorId?: string | null; - count?: number | null; - name?: string | null; -} -export interface UpdateAppEventInput { - clientMutationId?: string; - id: string; - appEventPatch: AppEventPatch; -} -export interface DeleteAppEventInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppEventTypeInput { - clientMutationId?: string; - appEventType: { - aggregation?: string; - category?: string; - description?: string; - feedsLevels?: boolean; - isActive?: boolean; - name: string; - periodInterval?: IntervalInput; - }; -} -export interface AppEventTypePatch { - aggregation?: string | null; - category?: string | null; - description?: string | null; - feedsLevels?: boolean | null; - isActive?: boolean | null; - name?: string | null; - periodInterval?: IntervalInput | null; -} -export interface UpdateAppEventTypeInput { - clientMutationId?: string; - id: string; - appEventTypePatch: AppEventTypePatch; -} -export interface DeleteAppEventTypeInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppLevelInput { - clientMutationId?: string; - appLevel: { - description?: string; - image?: ConstructiveInternalTypeImage; - name: string; - ownerId?: string; - }; -} -export interface AppLevelPatch { - description?: string | null; - image?: ConstructiveInternalTypeImage | null; - imageUpload?: File | null; - name?: string | null; - ownerId?: string | null; -} -export interface UpdateAppLevelInput { - clientMutationId?: string; - id: string; - appLevelPatch: AppLevelPatch; -} -export interface DeleteAppLevelInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppLevelGrantInput { - clientMutationId?: string; - appLevelGrant: { - actorId?: string; - expiresAt?: string; - levelName: string; - periodStart?: string; - }; -} -export interface AppLevelGrantPatch { - actorId?: string | null; - expiresAt?: string | null; - levelName?: string | null; - periodStart?: string | null; -} -export interface UpdateAppLevelGrantInput { - clientMutationId?: string; - id: string; - appLevelGrantPatch: AppLevelGrantPatch; -} -export interface DeleteAppLevelGrantInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppLevelRequirementInput { - clientMutationId?: string; - appLevelRequirement: { - description?: string; - groupKey?: string; - level: string; - metric?: string; - name: string; - priority?: number; - requiredCount?: number; - }; -} -export interface AppLevelRequirementPatch { - description?: string | null; - groupKey?: string | null; - level?: string | null; - metric?: string | null; - name?: string | null; - priority?: number | null; - requiredCount?: number | null; -} -export interface UpdateAppLevelRequirementInput { - clientMutationId?: string; - id: string; - appLevelRequirementPatch: AppLevelRequirementPatch; -} -export interface DeleteAppLevelRequirementInput { - clientMutationId?: string; - id: string; -} export interface CreateAppLimitCapInput { clientMutationId?: string; appLimitCap: { @@ -3455,275 +1764,79 @@ export interface CreateAppLimitDefaultInput { softMax?: string; }; } -export interface AppLimitDefaultPatch { - max?: string | null; - name?: string | null; - softMax?: string | null; -} -export interface UpdateAppLimitDefaultInput { - clientMutationId?: string; - id: string; - appLimitDefaultPatch: AppLimitDefaultPatch; -} -export interface DeleteAppLimitDefaultInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppLimitEventInput { - clientMutationId?: string; - appLimitEvent: { - actorId?: string; - delta?: string; - entityId?: string; - entityType?: string; - eventType?: string; - maxAtEvent?: string; - name?: string; - numAfter?: string; - numBefore?: string; - organizationId?: string; - reason?: string; - }; -} -export interface AppLimitEventPatch { - actorId?: string | null; - delta?: string | null; - entityId?: string | null; - entityType?: string | null; - eventType?: string | null; - maxAtEvent?: string | null; - name?: string | null; - numAfter?: string | null; - numBefore?: string | null; - organizationId?: string | null; - reason?: string | null; -} -export interface UpdateAppLimitEventInput { - clientMutationId?: string; - id: string; - appLimitEventPatch: AppLimitEventPatch; -} -export interface DeleteAppLimitEventInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppLimitWarningInput { - clientMutationId?: string; - appLimitWarning: { - name: string; - taskIdentifier: string; - thresholdValue: string; - warningType: string; - }; -} -export interface AppLimitWarningPatch { - name?: string | null; - taskIdentifier?: string | null; - thresholdValue?: string | null; - warningType?: string | null; -} -export interface UpdateAppLimitWarningInput { - clientMutationId?: string; - id: string; - appLimitWarningPatch: AppLimitWarningPatch; -} -export interface DeleteAppLimitWarningInput { - clientMutationId?: string; - id: string; -} -export interface CreateBillingUsageSummaryInput { - clientMutationId?: string; - billingUsageSummary: { - creditsConsumed?: string; - entityId: string; - entityType?: string; - meterSlug: string; - organizationId?: string; - overageUnits?: string; - periodEnd: string; - periodStart: string; - planLimit?: string; - quantityUsed?: string; - }; -} -export interface BillingUsageSummaryPatch { - creditsConsumed?: string | null; - entityId?: string | null; - entityType?: string | null; - meterSlug?: string | null; - organizationId?: string | null; - overageUnits?: string | null; - periodEnd?: string | null; - periodStart?: string | null; - planLimit?: string | null; - quantityUsed?: string | null; -} -export interface UpdateBillingUsageSummaryInput { - clientMutationId?: string; - id: string; - billingUsageSummaryPatch: BillingUsageSummaryPatch; -} -export interface DeleteBillingUsageSummaryInput { - clientMutationId?: string; - id: string; -} -export interface CreateLedgerInput { - clientMutationId?: string; - ledger: { - delta: string; - entityId: string; - entityType?: string; - entryType?: string; - ledgerClass?: string; - metadata?: Record; - meterSlug: string; - organizationId?: string; - usageAfter: string; - }; -} -export interface LedgerPatch { - delta?: string | null; - entityId?: string | null; - entityType?: string | null; - entryType?: string | null; - ledgerClass?: string | null; - metadata?: Record | null; - meterSlug?: string | null; - organizationId?: string | null; - usageAfter?: string | null; -} -export interface UpdateLedgerInput { - clientMutationId?: string; - id: string; - ledgerPatch: LedgerPatch; -} -export interface DeleteLedgerInput { - clientMutationId?: string; - id: string; +export interface AppLimitDefaultPatch { + max?: string | null; + name?: string | null; + softMax?: string | null; } -export interface CreateMeterInput { - clientMutationId?: string; - meter: { - aggregation?: string; - categoryMeter?: string; - creditCost?: number; - displayName?: string; - isActive?: boolean; - meterType?: string; - periodInterval?: IntervalInput; - rolloverCap?: string; - slug: string; - unit?: string; - }; -} -export interface MeterPatch { - aggregation?: string | null; - categoryMeter?: string | null; - creditCost?: number | null; - displayName?: string | null; - isActive?: boolean | null; - meterType?: string | null; - periodInterval?: IntervalInput | null; - rolloverCap?: string | null; - slug?: string | null; - unit?: string | null; -} -export interface UpdateMeterInput { +export interface UpdateAppLimitDefaultInput { clientMutationId?: string; id: string; - meterPatch: MeterPatch; + appLimitDefaultPatch: AppLimitDefaultPatch; } -export interface DeleteMeterInput { +export interface DeleteAppLimitDefaultInput { clientMutationId?: string; id: string; } -export interface CreateMeterCreditInput { +export interface CreateAppLimitEventInput { clientMutationId?: string; - meterCredit: { - amount: string; - creditType?: string; - entityId: string; + appLimitEvent: { + actorId?: string; + delta?: string; + entityId?: string; entityType?: string; - expiresAt?: string; - meterId: string; + eventType?: string; + maxAtEvent?: string; + name?: string; + numAfter?: string; + numBefore?: string; organizationId?: string; reason?: string; }; } -export interface MeterCreditPatch { - amount?: string | null; - creditType?: string | null; +export interface AppLimitEventPatch { + actorId?: string | null; + delta?: string | null; entityId?: string | null; entityType?: string | null; - expiresAt?: string | null; - meterId?: string | null; + eventType?: string | null; + maxAtEvent?: string | null; + name?: string | null; + numAfter?: string | null; + numBefore?: string | null; organizationId?: string | null; reason?: string | null; } -export interface UpdateMeterCreditInput { +export interface UpdateAppLimitEventInput { clientMutationId?: string; id: string; - meterCreditPatch: MeterCreditPatch; + appLimitEventPatch: AppLimitEventPatch; } -export interface DeleteMeterCreditInput { +export interface DeleteAppLimitEventInput { clientMutationId?: string; id: string; } -export interface CreateMeterDefaultInput { - clientMutationId?: string; - meterDefault: { - categoryMeter?: string; - creditCost?: string; - defaultPlanLimit?: string; - displayName?: string; - isActive?: boolean; - meterType?: string; - slug: string; - unit?: string; - }; -} -export interface MeterDefaultPatch { - categoryMeter?: string | null; - creditCost?: string | null; - defaultPlanLimit?: string | null; - displayName?: string | null; - isActive?: boolean | null; - meterType?: string | null; - slug?: string | null; - unit?: string | null; -} -export interface UpdateMeterDefaultInput { +export interface CreateAppLimitWarningInput { clientMutationId?: string; - id: string; - meterDefaultPatch: MeterDefaultPatch; + appLimitWarning: { + name: string; + taskIdentifier: string; + thresholdValue: string; + warningType: string; + }; } -export interface DeleteMeterDefaultInput { - clientMutationId?: string; - id: string; +export interface AppLimitWarningPatch { + name?: string | null; + taskIdentifier?: string | null; + thresholdValue?: string | null; + warningType?: string | null; } -export interface CreateMeterSourceInput { - clientMutationId?: string; - meterSource: { - aggregationType?: string; - dimensionPath: string; - isActive?: boolean; - meterSlug: string; - sourceMetric: string; - }; -} -export interface MeterSourcePatch { - aggregationType?: string | null; - dimensionPath?: string | null; - isActive?: boolean | null; - meterSlug?: string | null; - sourceMetric?: string | null; -} -export interface UpdateMeterSourceInput { +export interface UpdateAppLimitWarningInput { clientMutationId?: string; id: string; - meterSourcePatch: MeterSourcePatch; + appLimitWarningPatch: AppLimitWarningPatch; } -export interface DeleteMeterSourceInput { +export interface DeleteAppLimitWarningInput { clientMutationId?: string; id: string; } @@ -3971,178 +2084,6 @@ export interface DeleteOrgLimitWarningInput { clientMutationId?: string; id: string; } -export interface CreatePlanCapInput { - clientMutationId?: string; - planCap: { - capName: string; - capValue?: string; - planId: string; - }; -} -export interface PlanCapPatch { - capName?: string | null; - capValue?: string | null; - planId?: string | null; -} -export interface UpdatePlanCapInput { - clientMutationId?: string; - id: string; - planCapPatch: PlanCapPatch; -} -export interface DeletePlanCapInput { - clientMutationId?: string; - id: string; -} -export interface CreatePlanInput { - clientMutationId?: string; - plan: { - description?: string; - isActive?: boolean; - name: string; - }; -} -export interface PlanPatch { - description?: string | null; - isActive?: boolean | null; - name?: string | null; -} -export interface UpdatePlanInput { - clientMutationId?: string; - id: string; - planPatch: PlanPatch; -} -export interface DeletePlanInput { - clientMutationId?: string; - id: string; -} -export interface CreatePlanLimitInput { - clientMutationId?: string; - planLimit: { - limitName: string; - maxValue: string; - planId: string; - }; -} -export interface PlanLimitPatch { - limitName?: string | null; - maxValue?: string | null; - planId?: string | null; -} -export interface UpdatePlanLimitInput { - clientMutationId?: string; - id: string; - planLimitPatch: PlanLimitPatch; -} -export interface DeletePlanLimitInput { - clientMutationId?: string; - id: string; -} -export interface CreatePlanMeterLimitInput { - clientMutationId?: string; - planMeterLimit: { - meterSlug: string; - planId: string; - planLimit: string; - }; -} -export interface PlanMeterLimitPatch { - meterSlug?: string | null; - planId?: string | null; - planLimit?: string | null; -} -export interface UpdatePlanMeterLimitInput { - clientMutationId?: string; - id: string; - planMeterLimitPatch: PlanMeterLimitPatch; -} -export interface DeletePlanMeterLimitInput { - clientMutationId?: string; - id: string; -} -export interface CreatePlanOverrideInput { - clientMutationId?: string; - planOverride: { - entityId: string; - expiresAt?: string; - limitName: string; - maxValue: string; - reason?: string; - }; -} -export interface PlanOverridePatch { - entityId?: string | null; - expiresAt?: string | null; - limitName?: string | null; - maxValue?: string | null; - reason?: string | null; -} -export interface UpdatePlanOverrideInput { - clientMutationId?: string; - id: string; - planOverridePatch: PlanOverridePatch; -} -export interface DeletePlanOverrideInput { - clientMutationId?: string; - id: string; -} -export interface CreatePlanPricingInput { - clientMutationId?: string; - planPricing: { - billingInterval: string; - currency?: string; - discountPercent?: string; - isActive?: boolean; - planId: string; - price: string; - }; -} -export interface PlanPricingPatch { - billingInterval?: string | null; - currency?: string | null; - discountPercent?: string | null; - isActive?: boolean | null; - planId?: string | null; - price?: string | null; -} -export interface UpdatePlanPricingInput { - clientMutationId?: string; - id: string; - planPricingPatch: PlanPricingPatch; -} -export interface DeletePlanPricingInput { - clientMutationId?: string; - id: string; -} -export interface CreatePlanSubscriptionInput { - clientMutationId?: string; - planSubscription: { - endsAt?: string; - entityId: string; - entityType?: string; - isActive?: boolean; - organizationId?: string; - planId: string; - startsAt?: string; - }; -} -export interface PlanSubscriptionPatch { - endsAt?: string | null; - entityId?: string | null; - entityType?: string | null; - isActive?: boolean | null; - organizationId?: string | null; - planId?: string | null; - startsAt?: string | null; -} -export interface UpdatePlanSubscriptionInput { - clientMutationId?: string; - id: string; - planSubscriptionPatch: PlanSubscriptionPatch; -} -export interface DeletePlanSubscriptionInput { - clientMutationId?: string; - id: string; -} // ============ Connection Fields Map ============ export const connectionFieldsMap = { AppLimitCreditCode: { @@ -4153,26 +2094,11 @@ export const connectionFieldsMap = { appLimitCreditCodeItemsByDefaultLimitId: 'AppLimitCreditCodeItem', appLimitCreditsByDefaultLimitId: 'AppLimitCredit', }, - Meter: { - meterCredits: 'MeterCredit', - }, OrgLimitDefault: { orgLimitCreditsByDefaultLimitId: 'OrgLimitCredit', }, - Plan: { - planCaps: 'PlanCap', - planLimits: 'PlanLimit', - planMeterLimits: 'PlanMeterLimit', - planPricings: 'PlanPricing', - planSubscriptions: 'PlanSubscription', - }, } as Record>; // ============ Custom Input Types (from schema) ============ -export interface GrantAchievementInput { - actorId?: string; - clientMutationId?: string; - levelName?: string; -} export interface ProvisionBucketInput { /** The logical bucket key (e.g., "public", "private") */ bucketKey: string; @@ -4182,15 +2108,6 @@ export interface ProvisionBucketInput { */ ownerId?: string; } -export interface RecomputeCapabilitiesInput { - actorId?: string; - clientMutationId?: string; -} -export interface RevokeAchievementInput { - actorId?: string; - clientMutationId?: string; - levelName?: string; -} export interface SeedAppLimitCapsDefaultsInput { clientMutationId?: string; defaults?: Record; @@ -4199,10 +2116,6 @@ export interface SeedAppLimitDefaultsInput { clientMutationId?: string; defaults?: Record; } -export interface SeedMeterDefaultsInput { - clientMutationId?: string; - defaults?: Record; -} export interface SeedOrgLimitCapsDefaultsInput { clientMutationId?: string; defaults?: Record; @@ -4211,15 +2124,6 @@ export interface SeedOrgLimitDefaultsInput { clientMutationId?: string; defaults?: Record; } -export interface SeedPlanInput { - clientMutationId?: string; - planConfig?: Record; - planName?: string; -} -export interface SeedTrustLadderInput { - clientMutationId?: string; - ladder?: Record; -} /** A filter to be used against Interval fields. All fields are combined with a logical ‘and.’ */ export interface IntervalFilter { /** Not equal to the specified value, treating null like an ordinary value. */ @@ -4245,41 +2149,6 @@ export interface IntervalFilter { /** Not included in the specified list. */ notIn?: IntervalInput[]; } -/** A filter to be used against ConstructiveInternalTypeImage fields. All fields are combined with a logical ‘and.’ */ -export interface ConstructiveInternalTypeImageFilter { - /** Contained by the specified JSON. */ - containedBy?: ConstructiveInternalTypeImage; - /** Contains the specified JSON. */ - contains?: ConstructiveInternalTypeImage; - /** Contains all of the specified keys. */ - containsAllKeys?: string[]; - /** Contains any of the specified keys. */ - containsAnyKeys?: string[]; - /** Contains the specified key. */ - containsKey?: string; - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: ConstructiveInternalTypeImage; - /** Equal to the specified value. */ - equalTo?: ConstructiveInternalTypeImage; - /** Greater than the specified value. */ - greaterThan?: ConstructiveInternalTypeImage; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: ConstructiveInternalTypeImage; - /** Included in the specified list. */ - in?: ConstructiveInternalTypeImage[]; - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Less than the specified value. */ - lessThan?: ConstructiveInternalTypeImage; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: ConstructiveInternalTypeImage; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: ConstructiveInternalTypeImage; - /** Not equal to the specified value. */ - notEqualTo?: ConstructiveInternalTypeImage; - /** Not included in the specified list. */ - notIn?: ConstructiveInternalTypeImage[]; -} /** A filter to be used against many `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ */ export interface AppLimitCreditCodeToManyAppLimitCreditCodeItemFilter { /** Filters to entities where every related entity matches. */ @@ -4313,199 +2182,17 @@ export interface AppLimitDefaultToManyAppLimitCreditFilter { every?: AppLimitCreditFilter; /** Filters to entities where no related entity matches. */ none?: AppLimitCreditFilter; - /** Filters to entities where at least one related entity matches. */ - some?: AppLimitCreditFilter; -} -/** A filter to be used against many `MeterCredit` object types. All fields are combined with a logical ‘and.’ */ -export interface MeterToManyMeterCreditFilter { - /** Filters to entities where every related entity matches. */ - every?: MeterCreditFilter; - /** Filters to entities where no related entity matches. */ - none?: MeterCreditFilter; - /** Filters to entities where at least one related entity matches. */ - some?: MeterCreditFilter; -} -/** A filter to be used against many `OrgLimitCredit` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgLimitDefaultToManyOrgLimitCreditFilter { - /** Filters to entities where every related entity matches. */ - every?: OrgLimitCreditFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgLimitCreditFilter; - /** Filters to entities where at least one related entity matches. */ - some?: OrgLimitCreditFilter; -} -/** A filter to be used against many `PlanCap` object types. All fields are combined with a logical ‘and.’ */ -export interface PlanToManyPlanCapFilter { - /** Filters to entities where every related entity matches. */ - every?: PlanCapFilter; - /** Filters to entities where no related entity matches. */ - none?: PlanCapFilter; - /** Filters to entities where at least one related entity matches. */ - some?: PlanCapFilter; -} -/** A filter to be used against many `PlanLimit` object types. All fields are combined with a logical ‘and.’ */ -export interface PlanToManyPlanLimitFilter { - /** Filters to entities where every related entity matches. */ - every?: PlanLimitFilter; - /** Filters to entities where no related entity matches. */ - none?: PlanLimitFilter; - /** Filters to entities where at least one related entity matches. */ - some?: PlanLimitFilter; -} -/** A filter to be used against many `PlanMeterLimit` object types. All fields are combined with a logical ‘and.’ */ -export interface PlanToManyPlanMeterLimitFilter { - /** Filters to entities where every related entity matches. */ - every?: PlanMeterLimitFilter; - /** Filters to entities where no related entity matches. */ - none?: PlanMeterLimitFilter; - /** Filters to entities where at least one related entity matches. */ - some?: PlanMeterLimitFilter; -} -/** A filter to be used against many `PlanPricing` object types. All fields are combined with a logical ‘and.’ */ -export interface PlanToManyPlanPricingFilter { - /** Filters to entities where every related entity matches. */ - every?: PlanPricingFilter; - /** Filters to entities where no related entity matches. */ - none?: PlanPricingFilter; - /** Filters to entities where at least one related entity matches. */ - some?: PlanPricingFilter; -} -/** A filter to be used against many `PlanSubscription` object types. All fields are combined with a logical ‘and.’ */ -export interface PlanToManyPlanSubscriptionFilter { - /** Filters to entities where every related entity matches. */ - every?: PlanSubscriptionFilter; - /** Filters to entities where no related entity matches. */ - none?: PlanSubscriptionFilter; - /** Filters to entities where at least one related entity matches. */ - some?: PlanSubscriptionFilter; -} -/** An input for mutations affecting `AppAchievementReward` */ -export interface AppAchievementRewardInput { - /** Number of credits to grant; unused by capability rewards */ - amount?: number; - createdAt?: string; - /** Credit type: permanent, expiring, etc. */ - creditType?: string; - /** Optional duration after which the granted credit expires; NULL means never expires */ - expiresInterval?: IntervalInput; - id?: string; - /** Name of the level this reward is granted for */ - levelName: string; - /** Type of reward: limit_credit, meter_credit, or capability */ - rewardType: string; - /** Target limit name, meter slug, or capability catalog name */ - targetName: string; - updatedAt?: string; -} -/** An interval of time that has passed where the smallest distinct unit is a second. */ -export interface IntervalInput { - /** A quantity of days. */ - days?: number; - /** A quantity of hours. */ - hours?: number; - /** A quantity of minutes. */ - minutes?: number; - /** A quantity of months. */ - months?: number; - /** - * A quantity of seconds. This is the only non-integer field, as all the other - * fields will dump their overflow into a smaller unit of time. Intervals don’t - * have a smaller unit than seconds. - */ - seconds?: number; - /** A quantity of years. */ - years?: number; -} -/** An input for mutations affecting `AppEventAggregate` */ -export interface AppEventAggregateInput { - actorId?: string; - /** Cumulative count of completed steps toward this requirement */ - count?: number; - createdAt?: string; - id?: string; - /** Name identifier of the level requirement being tracked */ - name: string; - /** Start of current counting period; NULL means lifetime counting */ - periodStart?: string; - updatedAt?: string; -} -/** An input for mutations affecting `AppEvent` */ -export interface AppEventInput { - actorId?: string; - /** Number of units completed in this step action */ - count?: number; - createdAt?: string; - /** Unique identifier for each event (uuidv7 provides temporal ordering) */ - id?: string; - /** Name identifier of the level requirement this step fulfills */ - name: string; -} -/** An input for mutations affecting `AppEventType` */ -export interface AppEventTypeInput { - /** Aggregation mode: count, sum, last_value, or none */ - aggregation?: string; - /** Grouping category: onboarding, engagement, analytics, commerce, etc. */ - category?: string; - createdAt?: string; - /** Human-readable description of this event type */ - description?: string; - /** Whether this event type participates in the levels/badge system by updating aggregates */ - feedsLevels?: boolean; - id?: string; - /** Whether recording of this event type is enabled */ - isActive?: boolean; - /** Unique name identifier for this event type */ - name: string; - /** Optional period for aggregate count reset; NULL means lifetime counting */ - periodInterval?: IntervalInput; - updatedAt?: string; -} -/** An input for mutations affecting `AppLevel` */ -export interface AppLevelInput { - createdAt?: string; - /** Human-readable description of what this level represents */ - description?: string; - id?: string; - /** Badge or icon image associated with this level */ - image?: ConstructiveInternalTypeImage; - /** Unique name of the level */ - name: string; - /** Optional owner (actor) who created or manages this level */ - ownerId?: string; - updatedAt?: string; -} -/** An input for mutations affecting `AppLevelGrant` */ -export interface AppLevelGrantInput { - actorId?: string; - createdAt?: string; - /** When this grant lapses; NULL means it holds until revoked */ - expiresAt?: string; - id?: string; - /** Name of the level that was achieved */ - levelName: string; - /** Period start for periodic achievements; -infinity for non-periodic (earn-once) */ - periodStart?: string; - updatedAt?: string; -} -/** An input for mutations affecting `AppLevelRequirement` */ -export interface AppLevelRequirementInput { - createdAt?: string; - /** Human-readable description of what this requirement entails */ - description?: string; - /** Requirements of a level sharing this key satisfy it as alternatives; NULL requires this one on its own */ - groupKey?: string; - id?: string; - /** Name of the level this requirement belongs to */ - level: string; - /** Computed signal to compare against required_count instead of an event count; currently only account_age_days */ - metric?: string; - /** Name identifier of the requirement (matches step names) */ - name: string; - /** Display ordering priority; lower values appear first */ - priority?: number; - /** Number of steps needed to satisfy this requirement */ - requiredCount?: number; - updatedAt?: string; + /** Filters to entities where at least one related entity matches. */ + some?: AppLimitCreditFilter; +} +/** A filter to be used against many `OrgLimitCredit` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgLimitDefaultToManyOrgLimitCreditFilter { + /** Filters to entities where every related entity matches. */ + every?: OrgLimitCreditFilter; + /** Filters to entities where no related entity matches. */ + none?: OrgLimitCreditFilter; + /** Filters to entities where at least one related entity matches. */ + some?: OrgLimitCreditFilter; } /** An input for mutations affecting `AppLimitCap` */ export interface AppLimitCapInput { @@ -4553,6 +2240,25 @@ export interface AppLimitInput { /** Start of the current metering window; NULL means no time window */ windowStart?: string; } +/** An interval of time that has passed where the smallest distinct unit is a second. */ +export interface IntervalInput { + /** A quantity of days. */ + days?: number; + /** A quantity of hours. */ + hours?: number; + /** A quantity of minutes. */ + minutes?: number; + /** A quantity of months. */ + months?: number; + /** + * A quantity of seconds. This is the only non-integer field, as all the other + * fields will dump their overflow into a smaller unit of time. Intervals don’t + * have a smaller unit than seconds. + */ + seconds?: number; + /** A quantity of years. */ + years?: number; +} /** An input for mutations affecting `AppLimitCreditCode` */ export interface AppLimitCreditCodeInput { /** Human-readable credit code (case-insensitive, unique) */ @@ -4653,134 +2359,6 @@ export interface AppLimitWarningInput { /** Threshold type: absolute (fixed count) or percentage (of max) */ warningType: string; } -/** An input for mutations affecting `BillingUsageSummary` */ -export interface BillingUsageSummaryInput { - /** Universal credits consumed during this period */ - creditsConsumed?: string; - /** The entity (org, team, user) this summary belongs to */ - entityId: string; - /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */ - entityType?: string; - id?: string; - /** Which meter this summary tracks */ - meterSlug: string; - /** Resolved billable organization via get_organization_id */ - organizationId?: string; - /** Units consumed beyond the plan limit (quantity_used - plan_limit when positive) */ - overageUnits?: string; - /** End of the billing period this summary covers */ - periodEnd: string; - /** Start of the billing period this summary covers */ - periodStart: string; - /** Plan limit that was in effect during this period */ - planLimit?: string; - /** Total units consumed during this period */ - quantityUsed?: string; -} -/** An input for mutations affecting `Ledger` */ -export interface LedgerInput { - createdAt?: string; - /** Change amount (positive = grant/credit, negative = consumption/debit) */ - delta: string; - /** The entity this ledger entry belongs to */ - entityId: string; - /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */ - entityType?: string; - /** Specific type: increment, decrement, credit_purchase, plan_grant, reset, adjustment */ - entryType?: string; - /** Unique identifier for each ledger entry */ - id?: string; - /** Classification: usage, grant, adjustment, refund */ - ledgerClass?: string; - /** Additional context (reason, source, Stripe receipt, etc.) */ - metadata?: Record; - /** Which meter this entry is for */ - meterSlug: string; - /** Resolved billable organization via get_organization_id */ - organizationId?: string; - /** Running total of usage after this entry */ - usageAfter: string; -} -/** An input for mutations affecting `Meter` */ -export interface MeterInput { - /** How usage is aggregated: cumulative (sum over period) or peak (max watermark) */ - aggregation?: string; - /** Slug of the category pool meter this meter belongs to. When set, usage overflow charges the category pool before falling through to universal credits. NULL means skip category pool and fall through directly to universal. */ - categoryMeter?: string; - /** Universal credits consumed per unit of this meter. NULL disables universal credit fallback. */ - creditCost?: number; - /** Human-readable name for the meter */ - displayName?: string; - id?: string; - /** Whether this meter is currently active */ - isActive?: boolean; - /** Type of meter: quota (consumable), boolean (feature flag), or usage_pool (category aggregator) */ - meterType?: string; - /** Reset cadence for this meter (e.g. 1 month, 1 year). NULL means no periodic reset. */ - periodInterval?: IntervalInput; - /** Maximum unused units that carry forward on rollover reset. NULL means unlimited rollover. */ - rolloverCap?: string; - /** Unique identifier for the meter (e.g. api_requests, storage_gb, seats) */ - slug: string; - /** Unit of measurement for this meter (e.g. tokens, characters, audio_seconds, pages, images, megapixels, bytes, requests, compute_ms, credits) */ - unit?: string; -} -/** An input for mutations affecting `MeterCredit` */ -export interface MeterCreditInput { - /** Number of credits to grant (positive to add, negative to revoke) */ - amount: string; - /** When this credit was granted */ - createdAt?: string; - /** Credit behavior: permanent (survives reset), period (zeroed on reset), or rollover (unused portion carries forward) */ - creditType?: string; - /** Entity this credit applies to */ - entityId: string; - /** Membership prefix identifying the entity kind (org, team, app) */ - entityType?: string; - /** When this credit expires. NULL means the credit never expires. */ - expiresAt?: string; - id?: string; - /** FK to meters — which meter definition this credit applies to */ - meterId: string; - /** Resolved billable organization via get_organization_id */ - organizationId?: string; - /** Optional reason for the credit grant (promo code, admin grant, etc.) */ - reason?: string; -} -/** An input for mutations affecting `MeterDefault` */ -export interface MeterDefaultInput { - /** Slug of the category pool meter (usage_pool) this meter belongs to, enabling the per-task -> category -> universal waterfall for default-provisioned meters. NULL skips the category pool. */ - categoryMeter?: string; - /** Universal credits consumed per unit of this meter. NULL disables universal credit fallback. */ - creditCost?: string; - /** Default plan_limit value for new entity balances. 0 means no quota; -1 (negative) means unlimited. */ - defaultPlanLimit?: string; - /** Human-readable name for the default meter */ - displayName?: string; - id?: string; - /** Whether this default meter is actively provisioned for new entities */ - isActive?: boolean; - /** Type of meter: quota, boolean, or usage_pool */ - meterType?: string; - /** Meter slug that matches the slug in the meters table */ - slug: string; - /** Unit of measurement for this meter (e.g. tokens, requests, images, compute_ms, credits) */ - unit?: string; -} -/** An input for mutations affecting `MeterSource` */ -export interface MeterSourceInput { - /** How to aggregate the column. Built-in types: sum, sum_bytes_to_gb, peak. Custom types supported. */ - aggregationType?: string; - /** Column name in the typed usage summary table (e.g. total_reads, avg_read_time_ms, size_bytes) */ - dimensionPath: string; - id?: string; - /** Soft-delete flag. Inactive sources are skipped during reconciliation. */ - isActive?: boolean; - /** Slug of the billing meter this source feeds (matches meters.slug in the billing module) */ - meterSlug: string; - /** Source table type: table_usage (db_table_stats_usage_summary), query_time (db_query_stats_usage_summary), or row_count (trigger-based, skipped by reconcile) */ - sourceMetric: string; -} /** An input for mutations affecting `OrgLimitAggregate` */ export interface OrgLimitAggregateInput { /** Entity (org) whose aggregate usage is being tracked */ @@ -4930,94 +2508,6 @@ export interface OrgLimitWarningInput { /** Threshold type: absolute (fixed count) or percentage (of max) */ warningType: string; } -/** An input for mutations affecting `PlanCap` */ -export interface PlanCapInput { - /** Name of the cap/feature flag this plan sets (must match a name in caps_defaults or limit_caps) */ - capName: string; - /** Cap value to set when this plan is applied. Convention: 0=disabled, 1=enabled, N=numeric cap, negative=unlimited */ - capValue?: string; - id?: string; - /** Reference to the plan this cap setting belongs to */ - planId: string; -} -/** An input for mutations affecting `Plan` */ -export interface PlanInput { - /** Human-readable description of the plan tier */ - description?: string; - id?: string; - /** Whether this plan can currently be applied to entities */ - isActive?: boolean; - /** Unique name identifier of the plan (e.g. free, pro, enterprise) */ - name: string; -} -/** An input for mutations affecting `PlanLimit` */ -export interface PlanLimitInput { - id?: string; - /** Name of the limit this plan sets (must match the name field in a limits table) */ - limitName: string; - /** Maximum value to set on the limit when this plan is applied; negative means unlimited */ - maxValue: string; - /** Reference to the plan this limit configuration belongs to */ - planId: string; -} -/** An input for mutations affecting `PlanMeterLimit` */ -export interface PlanMeterLimitInput { - id?: string; - /** Slug of the billing meter this plan sets a quota for (must match a slug in the meters table) */ - meterSlug: string; - /** Reference to the plan this meter limit belongs to */ - planId: string; - /** Billing quota to set on the balance when this plan is applied; negative means unlimited */ - planLimit: string; -} -/** An input for mutations affecting `PlanOverride` */ -export interface PlanOverrideInput { - /** Entity receiving the custom override (personal org or actual org) */ - entityId: string; - /** When this override expires; NULL means permanent */ - expiresAt?: string; - id?: string; - /** Name of the limit being overridden */ - limitName: string; - /** Override maximum value; negative means unlimited */ - maxValue: string; - /** Admin note explaining why this override was granted */ - reason?: string; -} -/** An input for mutations affecting `PlanPricing` */ -export interface PlanPricingInput { - /** Billing cycle identifier (e.g. monthly, yearly, lifetime) */ - billingInterval: string; - /** ISO 4217 currency code (lowercase) */ - currency?: string; - /** Discount percentage off the base price (0-100); NULL means no discount */ - discountPercent?: string; - id?: string; - /** Whether this pricing option is currently available */ - isActive?: boolean; - /** Reference to the plan this pricing belongs to */ - planId: string; - /** Price in smallest currency unit (e.g. cents); negative means contact-sales */ - price: string; -} -/** An input for mutations affecting `PlanSubscription` */ -export interface PlanSubscriptionInput { - /** When the subscription expires (NULL = no expiration) */ - endsAt?: string; - /** The entity (org, team, user) this subscription belongs to */ - entityId: string; - /** Membership prefix identifying the entity kind (org, team, app) */ - entityType?: string; - id?: string; - /** Whether the subscription is currently active */ - isActive?: boolean; - /** Resolved billable organization via get_organization_id */ - organizationId?: string; - /** Reference to the plan this subscription is for */ - planId: string; - /** When the subscription becomes active */ - startsAt?: string; -} /** A filter to be used against `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ */ export interface AppLimitCreditCodeItemFilter { /** Filter by the object’s `amount` field. */ @@ -5085,37 +2575,6 @@ export interface AppLimitCreditFilter { /** Filter by the object’s `reason` field. */ reason?: StringFilter; } -/** A filter to be used against `MeterCredit` object types. All fields are combined with a logical ‘and.’ */ -export interface MeterCreditFilter { - /** Filter by the object’s `amount` field. */ - amount?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: MeterCreditFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `creditType` field. */ - creditType?: StringFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `entityType` field. */ - entityType?: StringFilter; - /** Filter by the object’s `expiresAt` field. */ - expiresAt?: DatetimeFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `meter` relation. */ - meter?: MeterFilter; - /** Filter by the object’s `meterId` field. */ - meterId?: UUIDFilter; - /** Negates the expression. */ - not?: MeterCreditFilter; - /** Checks for any expressions in this list. */ - or?: MeterCreditFilter[]; - /** Filter by the object’s `organizationId` field. */ - organizationId?: UUIDFilter; - /** Filter by the object’s `reason` field. */ - reason?: StringFilter; -} /** A filter to be used against `OrgLimitCredit` object types. All fields are combined with a logical ‘and.’ */ export interface OrgLimitCreditFilter { /** Filter by the object’s `actorId` field. */ @@ -5145,115 +2604,6 @@ export interface OrgLimitCreditFilter { /** Filter by the object’s `reason` field. */ reason?: StringFilter; } -/** A filter to be used against `PlanCap` object types. All fields are combined with a logical ‘and.’ */ -export interface PlanCapFilter { - /** Checks for all expressions in this list. */ - and?: PlanCapFilter[]; - /** Filter by the object’s `capName` field. */ - capName?: StringFilter; - /** Filter by the object’s `capValue` field. */ - capValue?: BigIntFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Negates the expression. */ - not?: PlanCapFilter; - /** Checks for any expressions in this list. */ - or?: PlanCapFilter[]; - /** Filter by the object’s `plan` relation. */ - plan?: PlanFilter; - /** Filter by the object’s `planId` field. */ - planId?: UUIDFilter; -} -/** A filter to be used against `PlanLimit` object types. All fields are combined with a logical ‘and.’ */ -export interface PlanLimitFilter { - /** Checks for all expressions in this list. */ - and?: PlanLimitFilter[]; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `limitName` field. */ - limitName?: StringFilter; - /** Filter by the object’s `maxValue` field. */ - maxValue?: BigIntFilter; - /** Negates the expression. */ - not?: PlanLimitFilter; - /** Checks for any expressions in this list. */ - or?: PlanLimitFilter[]; - /** Filter by the object’s `plan` relation. */ - plan?: PlanFilter; - /** Filter by the object’s `planId` field. */ - planId?: UUIDFilter; -} -/** A filter to be used against `PlanMeterLimit` object types. All fields are combined with a logical ‘and.’ */ -export interface PlanMeterLimitFilter { - /** Checks for all expressions in this list. */ - and?: PlanMeterLimitFilter[]; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `meterSlug` field. */ - meterSlug?: StringFilter; - /** Negates the expression. */ - not?: PlanMeterLimitFilter; - /** Checks for any expressions in this list. */ - or?: PlanMeterLimitFilter[]; - /** Filter by the object’s `plan` relation. */ - plan?: PlanFilter; - /** Filter by the object’s `planId` field. */ - planId?: UUIDFilter; - /** Filter by the object’s `planLimit` field. */ - planLimit?: BigIntFilter; -} -/** A filter to be used against `PlanPricing` object types. All fields are combined with a logical ‘and.’ */ -export interface PlanPricingFilter { - /** Checks for all expressions in this list. */ - and?: PlanPricingFilter[]; - /** Filter by the object’s `billingInterval` field. */ - billingInterval?: StringFilter; - /** Filter by the object’s `currency` field. */ - currency?: StringFilter; - /** Filter by the object’s `discountPercent` field. */ - discountPercent?: BigFloatFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isActive` field. */ - isActive?: BooleanFilter; - /** Negates the expression. */ - not?: PlanPricingFilter; - /** Checks for any expressions in this list. */ - or?: PlanPricingFilter[]; - /** Filter by the object’s `plan` relation. */ - plan?: PlanFilter; - /** Filter by the object’s `planId` field. */ - planId?: UUIDFilter; - /** Filter by the object’s `price` field. */ - price?: BigIntFilter; -} -/** A filter to be used against `PlanSubscription` object types. All fields are combined with a logical ‘and.’ */ -export interface PlanSubscriptionFilter { - /** Checks for all expressions in this list. */ - and?: PlanSubscriptionFilter[]; - /** Filter by the object’s `endsAt` field. */ - endsAt?: DatetimeFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `entityType` field. */ - entityType?: StringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isActive` field. */ - isActive?: BooleanFilter; - /** Negates the expression. */ - not?: PlanSubscriptionFilter; - /** Checks for any expressions in this list. */ - or?: PlanSubscriptionFilter[]; - /** Filter by the object’s `organizationId` field. */ - organizationId?: UUIDFilter; - /** Filter by the object’s `plan` relation. */ - plan?: PlanFilter; - /** Filter by the object’s `planId` field. */ - planId?: UUIDFilter; - /** Filter by the object’s `startsAt` field. */ - startsAt?: DatetimeFilter; -} /** 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. */ @@ -5433,66 +2783,6 @@ export interface AppLimitDefaultFilter { /** Filter by the object’s `softMax` field. */ softMax?: BigIntFilter; } -/** 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 `Meter` object types. All fields are combined with a logical ‘and.’ */ -export interface MeterFilter { - /** Filter by the object’s `aggregation` field. */ - aggregation?: StringFilter; - /** Checks for all expressions in this list. */ - and?: MeterFilter[]; - /** Filter by the object’s `categoryMeter` field. */ - categoryMeter?: StringFilter; - /** Filter by the object’s `creditCost` field. */ - creditCost?: IntFilter; - /** Filter by the object’s `displayName` field. */ - displayName?: StringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isActive` field. */ - isActive?: BooleanFilter; - /** Filter by the object’s `meterCredits` relation. */ - meterCredits?: MeterToManyMeterCreditFilter; - /** `meterCredits` exist. */ - meterCreditsExist?: boolean; - /** Filter by the object’s `meterType` field. */ - meterType?: StringFilter; - /** Negates the expression. */ - not?: MeterFilter; - /** Checks for any expressions in this list. */ - or?: MeterFilter[]; - /** Filter by the object’s `periodInterval` field. */ - periodInterval?: IntervalFilter; - /** Filter by the object’s `rolloverCap` field. */ - rolloverCap?: BigIntFilter; - /** Filter by the object’s `slug` field. */ - slug?: StringFilter; - /** Filter by the object’s `unit` field. */ - unit?: StringFilter; -} /** A filter to be used against `OrgLimitDefault` object types. All fields are combined with a logical ‘and.’ */ export interface OrgLimitDefaultFilter { /** Checks for all expressions in this list. */ @@ -5514,177 +2804,71 @@ export interface OrgLimitDefaultFilter { /** Filter by the object’s `softMax` field. */ softMax?: BigIntFilter; } -/** A filter to be used against `Plan` object types. All fields are combined with a logical ‘and.’ */ -export interface PlanFilter { - /** Checks for all expressions in this list. */ - and?: PlanFilter[]; - /** Filter by the object’s `description` field. */ - description?: 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?: PlanFilter; - /** Checks for any expressions in this list. */ - or?: PlanFilter[]; - /** Filter by the object’s `planCaps` relation. */ - planCaps?: PlanToManyPlanCapFilter; - /** `planCaps` exist. */ - planCapsExist?: boolean; - /** Filter by the object’s `planLimits` relation. */ - planLimits?: PlanToManyPlanLimitFilter; - /** `planLimits` exist. */ - planLimitsExist?: boolean; - /** Filter by the object’s `planMeterLimits` relation. */ - planMeterLimits?: PlanToManyPlanMeterLimitFilter; - /** `planMeterLimits` exist. */ - planMeterLimitsExist?: boolean; - /** Filter by the object’s `planPricings` relation. */ - planPricings?: PlanToManyPlanPricingFilter; - /** `planPricings` exist. */ - planPricingsExist?: boolean; - /** Filter by the object’s `planSubscriptions` relation. */ - planSubscriptions?: PlanToManyPlanSubscriptionFilter; - /** `planSubscriptions` exist. */ - planSubscriptionsExist?: boolean; -} -/** A filter to be used against BigFloat fields. All fields are combined with a logical ‘and.’ */ -export interface BigFloatFilter { - /** 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 { +/** 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?: boolean; + distinctFrom?: number; /** Equal to the specified value. */ - equalTo?: boolean; + equalTo?: number; /** Greater than the specified value. */ - greaterThan?: boolean; + greaterThan?: number; /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: boolean; + greaterThanOrEqualTo?: number; /** Included in the specified list. */ - in?: boolean[]; + in?: number[]; /** Is null (if `true` is specified) or is not null (if `false` is specified). */ isNull?: boolean; /** Less than the specified value. */ - lessThan?: boolean; + lessThan?: number; /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: boolean; + lessThanOrEqualTo?: number; /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: boolean; + notDistinctFrom?: number; /** Not equal to the specified value. */ - notEqualTo?: boolean; + notEqualTo?: number; /** Not included in the specified list. */ - notIn?: boolean[]; + notIn?: number[]; } -/** A filter to be used against Int fields. All fields are combined with a logical ‘and.’ */ -export interface IntFilter { +/** 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?: number; + distinctFrom?: string; /** Equal to the specified value. */ - equalTo?: number; + equalTo?: string; /** Greater than the specified value. */ - greaterThan?: number; + greaterThan?: string; /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: number; + greaterThanOrEqualTo?: string; /** Included in the specified list. */ - in?: number[]; + in?: string[]; /** Is null (if `true` is specified) or is not null (if `false` is specified). */ isNull?: boolean; /** Less than the specified value. */ - lessThan?: number; + lessThan?: string; /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: number; + lessThanOrEqualTo?: string; /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: number; + notDistinctFrom?: string; /** Not equal to the specified value. */ - notEqualTo?: number; + notEqualTo?: string; /** Not included in the specified list. */ - notIn?: number[]; + notIn?: string[]; } -/** A connection to a list of `AppLevelRequirement` values. */ // ============ Payload/Return Types (for custom operations) ============ -export interface AppLevelRequirementConnection { - edges: AppLevelRequirementEdge[]; - nodes: AppLevelRequirement[]; - pageInfo: PageInfo; - totalCount: number; -} -export type AppLevelRequirementConnectionSelect = { - edges?: { - select: AppLevelRequirementEdgeSelect; - }; - nodes?: { - select: AppLevelRequirementSelect; - }; - pageInfo?: { - select: PageInfoSelect; - }; - totalCount?: boolean; -}; -export interface GrantAchievementPayload { - clientMutationId?: string | null; -} -export type GrantAchievementPayloadSelect = { - clientMutationId?: 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 RecomputeCapabilitiesPayload { - clientMutationId?: string | null; -} -export type RecomputeCapabilitiesPayloadSelect = { - clientMutationId?: boolean; -}; -export interface RevokeAchievementPayload { - clientMutationId?: string | null; + /** The logical bucket row that was queued for reconciliation. */ + bucketId: string; + bucketKey: string; + /** The reconciler job enqueued to provision this bucket. */ + jobId: string; + /** The physical bucket name already recorded, or null when reconciliation has not completed. */ + physicalName?: string | null; } -export type RevokeAchievementPayloadSelect = { - clientMutationId?: boolean; +export type ProvisionBucketPayloadSelect = { + bucketId?: boolean; + bucketKey?: boolean; + jobId?: boolean; + physicalName?: boolean; }; export interface SeedAppLimitCapsDefaultsPayload { clientMutationId?: string | null; @@ -5702,14 +2886,6 @@ export type SeedAppLimitDefaultsPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; -export interface SeedMeterDefaultsPayload { - clientMutationId?: string | null; - result?: boolean | null; -} -export type SeedMeterDefaultsPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; export interface SeedOrgLimitCapsDefaultsPayload { clientMutationId?: string | null; result?: boolean | null; @@ -5726,337 +2902,6 @@ export type SeedOrgLimitDefaultsPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; -export interface SeedPlanPayload { - clientMutationId?: string | null; - result?: string | null; -} -export type SeedPlanPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; -export interface SeedTrustLadderPayload { - clientMutationId?: string | null; - result?: boolean | null; -} -export type SeedTrustLadderPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; -export interface CreateAppAchievementRewardPayload { - /** The `AppAchievementReward` that was created by this mutation. */ - appAchievementReward?: AppAchievementReward | null; - appAchievementRewardEdge?: AppAchievementRewardEdge | null; - clientMutationId?: string | null; -} -export type CreateAppAchievementRewardPayloadSelect = { - appAchievementReward?: { - select: AppAchievementRewardSelect; - }; - appAchievementRewardEdge?: { - select: AppAchievementRewardEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface UpdateAppAchievementRewardPayload { - /** The `AppAchievementReward` that was updated by this mutation. */ - appAchievementReward?: AppAchievementReward | null; - appAchievementRewardEdge?: AppAchievementRewardEdge | null; - clientMutationId?: string | null; -} -export type UpdateAppAchievementRewardPayloadSelect = { - appAchievementReward?: { - select: AppAchievementRewardSelect; - }; - appAchievementRewardEdge?: { - select: AppAchievementRewardEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface DeleteAppAchievementRewardPayload { - /** The `AppAchievementReward` that was deleted by this mutation. */ - appAchievementReward?: AppAchievementReward | null; - appAchievementRewardEdge?: AppAchievementRewardEdge | null; - clientMutationId?: string | null; -} -export type DeleteAppAchievementRewardPayloadSelect = { - appAchievementReward?: { - select: AppAchievementRewardSelect; - }; - appAchievementRewardEdge?: { - select: AppAchievementRewardEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface CreateAppEventAggregatePayload { - /** The `AppEventAggregate` that was created by this mutation. */ - appEventAggregate?: AppEventAggregate | null; - appEventAggregateEdge?: AppEventAggregateEdge | null; - clientMutationId?: string | null; -} -export type CreateAppEventAggregatePayloadSelect = { - appEventAggregate?: { - select: AppEventAggregateSelect; - }; - appEventAggregateEdge?: { - select: AppEventAggregateEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface UpdateAppEventAggregatePayload { - /** The `AppEventAggregate` that was updated by this mutation. */ - appEventAggregate?: AppEventAggregate | null; - appEventAggregateEdge?: AppEventAggregateEdge | null; - clientMutationId?: string | null; -} -export type UpdateAppEventAggregatePayloadSelect = { - appEventAggregate?: { - select: AppEventAggregateSelect; - }; - appEventAggregateEdge?: { - select: AppEventAggregateEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface DeleteAppEventAggregatePayload { - /** The `AppEventAggregate` that was deleted by this mutation. */ - appEventAggregate?: AppEventAggregate | null; - appEventAggregateEdge?: AppEventAggregateEdge | null; - clientMutationId?: string | null; -} -export type DeleteAppEventAggregatePayloadSelect = { - appEventAggregate?: { - select: AppEventAggregateSelect; - }; - appEventAggregateEdge?: { - select: AppEventAggregateEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface CreateAppEventPayload { - /** The `AppEvent` that was created by this mutation. */ - appEvent?: AppEvent | null; - appEventEdge?: AppEventEdge | null; - clientMutationId?: string | null; -} -export type CreateAppEventPayloadSelect = { - appEvent?: { - select: AppEventSelect; - }; - appEventEdge?: { - select: AppEventEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface UpdateAppEventPayload { - /** The `AppEvent` that was updated by this mutation. */ - appEvent?: AppEvent | null; - appEventEdge?: AppEventEdge | null; - clientMutationId?: string | null; -} -export type UpdateAppEventPayloadSelect = { - appEvent?: { - select: AppEventSelect; - }; - appEventEdge?: { - select: AppEventEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface DeleteAppEventPayload { - /** The `AppEvent` that was deleted by this mutation. */ - appEvent?: AppEvent | null; - appEventEdge?: AppEventEdge | null; - clientMutationId?: string | null; -} -export type DeleteAppEventPayloadSelect = { - appEvent?: { - select: AppEventSelect; - }; - appEventEdge?: { - select: AppEventEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface CreateAppEventTypePayload { - /** The `AppEventType` that was created by this mutation. */ - appEventType?: AppEventType | null; - appEventTypeEdge?: AppEventTypeEdge | null; - clientMutationId?: string | null; -} -export type CreateAppEventTypePayloadSelect = { - appEventType?: { - select: AppEventTypeSelect; - }; - appEventTypeEdge?: { - select: AppEventTypeEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface UpdateAppEventTypePayload { - /** The `AppEventType` that was updated by this mutation. */ - appEventType?: AppEventType | null; - appEventTypeEdge?: AppEventTypeEdge | null; - clientMutationId?: string | null; -} -export type UpdateAppEventTypePayloadSelect = { - appEventType?: { - select: AppEventTypeSelect; - }; - appEventTypeEdge?: { - select: AppEventTypeEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface DeleteAppEventTypePayload { - /** The `AppEventType` that was deleted by this mutation. */ - appEventType?: AppEventType | null; - appEventTypeEdge?: AppEventTypeEdge | null; - clientMutationId?: string | null; -} -export type DeleteAppEventTypePayloadSelect = { - appEventType?: { - select: AppEventTypeSelect; - }; - appEventTypeEdge?: { - select: AppEventTypeEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface CreateAppLevelPayload { - /** The `AppLevel` that was created by this mutation. */ - appLevel?: AppLevel | null; - appLevelEdge?: AppLevelEdge | null; - clientMutationId?: string | null; -} -export type CreateAppLevelPayloadSelect = { - appLevel?: { - select: AppLevelSelect; - }; - appLevelEdge?: { - select: AppLevelEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface UpdateAppLevelPayload { - /** The `AppLevel` that was updated by this mutation. */ - appLevel?: AppLevel | null; - appLevelEdge?: AppLevelEdge | null; - clientMutationId?: string | null; -} -export type UpdateAppLevelPayloadSelect = { - appLevel?: { - select: AppLevelSelect; - }; - appLevelEdge?: { - select: AppLevelEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface DeleteAppLevelPayload { - /** The `AppLevel` that was deleted by this mutation. */ - appLevel?: AppLevel | null; - appLevelEdge?: AppLevelEdge | null; - clientMutationId?: string | null; -} -export type DeleteAppLevelPayloadSelect = { - appLevel?: { - select: AppLevelSelect; - }; - appLevelEdge?: { - select: AppLevelEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface CreateAppLevelGrantPayload { - /** The `AppLevelGrant` that was created by this mutation. */ - appLevelGrant?: AppLevelGrant | null; - appLevelGrantEdge?: AppLevelGrantEdge | null; - clientMutationId?: string | null; -} -export type CreateAppLevelGrantPayloadSelect = { - appLevelGrant?: { - select: AppLevelGrantSelect; - }; - appLevelGrantEdge?: { - select: AppLevelGrantEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface UpdateAppLevelGrantPayload { - /** The `AppLevelGrant` that was updated by this mutation. */ - appLevelGrant?: AppLevelGrant | null; - appLevelGrantEdge?: AppLevelGrantEdge | null; - clientMutationId?: string | null; -} -export type UpdateAppLevelGrantPayloadSelect = { - appLevelGrant?: { - select: AppLevelGrantSelect; - }; - appLevelGrantEdge?: { - select: AppLevelGrantEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface DeleteAppLevelGrantPayload { - /** The `AppLevelGrant` that was deleted by this mutation. */ - appLevelGrant?: AppLevelGrant | null; - appLevelGrantEdge?: AppLevelGrantEdge | null; - clientMutationId?: string | null; -} -export type DeleteAppLevelGrantPayloadSelect = { - appLevelGrant?: { - select: AppLevelGrantSelect; - }; - appLevelGrantEdge?: { - select: AppLevelGrantEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface CreateAppLevelRequirementPayload { - /** The `AppLevelRequirement` that was created by this mutation. */ - appLevelRequirement?: AppLevelRequirement | null; - appLevelRequirementEdge?: AppLevelRequirementEdge | null; - clientMutationId?: string | null; -} -export type CreateAppLevelRequirementPayloadSelect = { - appLevelRequirement?: { - select: AppLevelRequirementSelect; - }; - appLevelRequirementEdge?: { - select: AppLevelRequirementEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface UpdateAppLevelRequirementPayload { - /** The `AppLevelRequirement` that was updated by this mutation. */ - appLevelRequirement?: AppLevelRequirement | null; - appLevelRequirementEdge?: AppLevelRequirementEdge | null; - clientMutationId?: string | null; -} -export type UpdateAppLevelRequirementPayloadSelect = { - appLevelRequirement?: { - select: AppLevelRequirementSelect; - }; - appLevelRequirementEdge?: { - select: AppLevelRequirementEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface DeleteAppLevelRequirementPayload { - /** The `AppLevelRequirement` that was deleted by this mutation. */ - appLevelRequirement?: AppLevelRequirement | null; - appLevelRequirementEdge?: AppLevelRequirementEdge | null; - clientMutationId?: string | null; -} -export type DeleteAppLevelRequirementPayloadSelect = { - appLevelRequirement?: { - select: AppLevelRequirementSelect; - }; - appLevelRequirementEdge?: { - select: AppLevelRequirementEdgeSelect; - }; - clientMutationId?: boolean; -}; export interface CreateAppLimitCapPayload { /** The `AppLimitCap` that was created by this mutation. */ appLimitCap?: AppLimitCap | null; @@ -6502,280 +3347,10 @@ export type DeleteAppLimitWarningPayloadSelect = { appLimitWarning?: { select: AppLimitWarningSelect; }; - appLimitWarningEdge?: { - select: AppLimitWarningEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface CreateBillingUsageSummaryPayload { - /** The `BillingUsageSummary` that was created by this mutation. */ - billingUsageSummary?: BillingUsageSummary | null; - billingUsageSummaryEdge?: BillingUsageSummaryEdge | null; - clientMutationId?: string | null; -} -export type CreateBillingUsageSummaryPayloadSelect = { - billingUsageSummary?: { - select: BillingUsageSummarySelect; - }; - billingUsageSummaryEdge?: { - select: BillingUsageSummaryEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface UpdateBillingUsageSummaryPayload { - /** The `BillingUsageSummary` that was updated by this mutation. */ - billingUsageSummary?: BillingUsageSummary | null; - billingUsageSummaryEdge?: BillingUsageSummaryEdge | null; - clientMutationId?: string | null; -} -export type UpdateBillingUsageSummaryPayloadSelect = { - billingUsageSummary?: { - select: BillingUsageSummarySelect; - }; - billingUsageSummaryEdge?: { - select: BillingUsageSummaryEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface DeleteBillingUsageSummaryPayload { - /** The `BillingUsageSummary` that was deleted by this mutation. */ - billingUsageSummary?: BillingUsageSummary | null; - billingUsageSummaryEdge?: BillingUsageSummaryEdge | null; - clientMutationId?: string | null; -} -export type DeleteBillingUsageSummaryPayloadSelect = { - billingUsageSummary?: { - select: BillingUsageSummarySelect; - }; - billingUsageSummaryEdge?: { - select: BillingUsageSummaryEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface CreateLedgerPayload { - clientMutationId?: string | null; - /** The `Ledger` that was created by this mutation. */ - ledger?: Ledger | null; - ledgerEdge?: LedgerEdge | null; -} -export type CreateLedgerPayloadSelect = { - clientMutationId?: boolean; - ledger?: { - select: LedgerSelect; - }; - ledgerEdge?: { - select: LedgerEdgeSelect; - }; -}; -export interface UpdateLedgerPayload { - clientMutationId?: string | null; - /** The `Ledger` that was updated by this mutation. */ - ledger?: Ledger | null; - ledgerEdge?: LedgerEdge | null; -} -export type UpdateLedgerPayloadSelect = { - clientMutationId?: boolean; - ledger?: { - select: LedgerSelect; - }; - ledgerEdge?: { - select: LedgerEdgeSelect; - }; -}; -export interface DeleteLedgerPayload { - clientMutationId?: string | null; - /** The `Ledger` that was deleted by this mutation. */ - ledger?: Ledger | null; - ledgerEdge?: LedgerEdge | null; -} -export type DeleteLedgerPayloadSelect = { - clientMutationId?: boolean; - ledger?: { - select: LedgerSelect; - }; - ledgerEdge?: { - select: LedgerEdgeSelect; - }; -}; -export interface CreateMeterPayload { - clientMutationId?: string | null; - /** The `Meter` that was created by this mutation. */ - meter?: Meter | null; - meterEdge?: MeterEdge | null; -} -export type CreateMeterPayloadSelect = { - clientMutationId?: boolean; - meter?: { - select: MeterSelect; - }; - meterEdge?: { - select: MeterEdgeSelect; - }; -}; -export interface UpdateMeterPayload { - clientMutationId?: string | null; - /** The `Meter` that was updated by this mutation. */ - meter?: Meter | null; - meterEdge?: MeterEdge | null; -} -export type UpdateMeterPayloadSelect = { - clientMutationId?: boolean; - meter?: { - select: MeterSelect; - }; - meterEdge?: { - select: MeterEdgeSelect; - }; -}; -export interface DeleteMeterPayload { - clientMutationId?: string | null; - /** The `Meter` that was deleted by this mutation. */ - meter?: Meter | null; - meterEdge?: MeterEdge | null; -} -export type DeleteMeterPayloadSelect = { - clientMutationId?: boolean; - meter?: { - select: MeterSelect; - }; - meterEdge?: { - select: MeterEdgeSelect; - }; -}; -export interface CreateMeterCreditPayload { - clientMutationId?: string | null; - /** The `MeterCredit` that was created by this mutation. */ - meterCredit?: MeterCredit | null; - meterCreditEdge?: MeterCreditEdge | null; -} -export type CreateMeterCreditPayloadSelect = { - clientMutationId?: boolean; - meterCredit?: { - select: MeterCreditSelect; - }; - meterCreditEdge?: { - select: MeterCreditEdgeSelect; - }; -}; -export interface UpdateMeterCreditPayload { - clientMutationId?: string | null; - /** The `MeterCredit` that was updated by this mutation. */ - meterCredit?: MeterCredit | null; - meterCreditEdge?: MeterCreditEdge | null; -} -export type UpdateMeterCreditPayloadSelect = { - clientMutationId?: boolean; - meterCredit?: { - select: MeterCreditSelect; - }; - meterCreditEdge?: { - select: MeterCreditEdgeSelect; - }; -}; -export interface DeleteMeterCreditPayload { - clientMutationId?: string | null; - /** The `MeterCredit` that was deleted by this mutation. */ - meterCredit?: MeterCredit | null; - meterCreditEdge?: MeterCreditEdge | null; -} -export type DeleteMeterCreditPayloadSelect = { - clientMutationId?: boolean; - meterCredit?: { - select: MeterCreditSelect; - }; - meterCreditEdge?: { - select: MeterCreditEdgeSelect; - }; -}; -export interface CreateMeterDefaultPayload { - clientMutationId?: string | null; - /** The `MeterDefault` that was created by this mutation. */ - meterDefault?: MeterDefault | null; - meterDefaultEdge?: MeterDefaultEdge | null; -} -export type CreateMeterDefaultPayloadSelect = { - clientMutationId?: boolean; - meterDefault?: { - select: MeterDefaultSelect; - }; - meterDefaultEdge?: { - select: MeterDefaultEdgeSelect; - }; -}; -export interface UpdateMeterDefaultPayload { - clientMutationId?: string | null; - /** The `MeterDefault` that was updated by this mutation. */ - meterDefault?: MeterDefault | null; - meterDefaultEdge?: MeterDefaultEdge | null; -} -export type UpdateMeterDefaultPayloadSelect = { - clientMutationId?: boolean; - meterDefault?: { - select: MeterDefaultSelect; - }; - meterDefaultEdge?: { - select: MeterDefaultEdgeSelect; - }; -}; -export interface DeleteMeterDefaultPayload { - clientMutationId?: string | null; - /** The `MeterDefault` that was deleted by this mutation. */ - meterDefault?: MeterDefault | null; - meterDefaultEdge?: MeterDefaultEdge | null; -} -export type DeleteMeterDefaultPayloadSelect = { - clientMutationId?: boolean; - meterDefault?: { - select: MeterDefaultSelect; - }; - meterDefaultEdge?: { - select: MeterDefaultEdgeSelect; - }; -}; -export interface CreateMeterSourcePayload { - clientMutationId?: string | null; - /** The `MeterSource` that was created by this mutation. */ - meterSource?: MeterSource | null; - meterSourceEdge?: MeterSourceEdge | null; -} -export type CreateMeterSourcePayloadSelect = { - clientMutationId?: boolean; - meterSource?: { - select: MeterSourceSelect; - }; - meterSourceEdge?: { - select: MeterSourceEdgeSelect; - }; -}; -export interface UpdateMeterSourcePayload { - clientMutationId?: string | null; - /** The `MeterSource` that was updated by this mutation. */ - meterSource?: MeterSource | null; - meterSourceEdge?: MeterSourceEdge | null; -} -export type UpdateMeterSourcePayloadSelect = { - clientMutationId?: boolean; - meterSource?: { - select: MeterSourceSelect; - }; - meterSourceEdge?: { - select: MeterSourceEdgeSelect; - }; -}; -export interface DeleteMeterSourcePayload { - clientMutationId?: string | null; - /** The `MeterSource` that was deleted by this mutation. */ - meterSource?: MeterSource | null; - meterSourceEdge?: MeterSourceEdge | null; -} -export type DeleteMeterSourcePayloadSelect = { - clientMutationId?: boolean; - meterSource?: { - select: MeterSourceSelect; - }; - meterSourceEdge?: { - select: MeterSourceEdgeSelect; + appLimitWarningEdge?: { + select: AppLimitWarningEdgeSelect; }; + clientMutationId?: boolean; }; export interface CreateOrgLimitAggregatePayload { clientMutationId?: string | null; @@ -7137,422 +3712,6 @@ export type DeleteOrgLimitWarningPayloadSelect = { select: OrgLimitWarningEdgeSelect; }; }; -export interface CreatePlanCapPayload { - clientMutationId?: string | null; - /** The `PlanCap` that was created by this mutation. */ - planCap?: PlanCap | null; - planCapEdge?: PlanCapEdge | null; -} -export type CreatePlanCapPayloadSelect = { - clientMutationId?: boolean; - planCap?: { - select: PlanCapSelect; - }; - planCapEdge?: { - select: PlanCapEdgeSelect; - }; -}; -export interface UpdatePlanCapPayload { - clientMutationId?: string | null; - /** The `PlanCap` that was updated by this mutation. */ - planCap?: PlanCap | null; - planCapEdge?: PlanCapEdge | null; -} -export type UpdatePlanCapPayloadSelect = { - clientMutationId?: boolean; - planCap?: { - select: PlanCapSelect; - }; - planCapEdge?: { - select: PlanCapEdgeSelect; - }; -}; -export interface DeletePlanCapPayload { - clientMutationId?: string | null; - /** The `PlanCap` that was deleted by this mutation. */ - planCap?: PlanCap | null; - planCapEdge?: PlanCapEdge | null; -} -export type DeletePlanCapPayloadSelect = { - clientMutationId?: boolean; - planCap?: { - select: PlanCapSelect; - }; - planCapEdge?: { - select: PlanCapEdgeSelect; - }; -}; -export interface CreatePlanPayload { - clientMutationId?: string | null; - /** The `Plan` that was created by this mutation. */ - plan?: Plan | null; - planEdge?: PlanEdge | null; -} -export type CreatePlanPayloadSelect = { - clientMutationId?: boolean; - plan?: { - select: PlanSelect; - }; - planEdge?: { - select: PlanEdgeSelect; - }; -}; -export interface UpdatePlanPayload { - clientMutationId?: string | null; - /** The `Plan` that was updated by this mutation. */ - plan?: Plan | null; - planEdge?: PlanEdge | null; -} -export type UpdatePlanPayloadSelect = { - clientMutationId?: boolean; - plan?: { - select: PlanSelect; - }; - planEdge?: { - select: PlanEdgeSelect; - }; -}; -export interface DeletePlanPayload { - clientMutationId?: string | null; - /** The `Plan` that was deleted by this mutation. */ - plan?: Plan | null; - planEdge?: PlanEdge | null; -} -export type DeletePlanPayloadSelect = { - clientMutationId?: boolean; - plan?: { - select: PlanSelect; - }; - planEdge?: { - select: PlanEdgeSelect; - }; -}; -export interface CreatePlanLimitPayload { - clientMutationId?: string | null; - /** The `PlanLimit` that was created by this mutation. */ - planLimit?: PlanLimit | null; - planLimitEdge?: PlanLimitEdge | null; -} -export type CreatePlanLimitPayloadSelect = { - clientMutationId?: boolean; - planLimit?: { - select: PlanLimitSelect; - }; - planLimitEdge?: { - select: PlanLimitEdgeSelect; - }; -}; -export interface UpdatePlanLimitPayload { - clientMutationId?: string | null; - /** The `PlanLimit` that was updated by this mutation. */ - planLimit?: PlanLimit | null; - planLimitEdge?: PlanLimitEdge | null; -} -export type UpdatePlanLimitPayloadSelect = { - clientMutationId?: boolean; - planLimit?: { - select: PlanLimitSelect; - }; - planLimitEdge?: { - select: PlanLimitEdgeSelect; - }; -}; -export interface DeletePlanLimitPayload { - clientMutationId?: string | null; - /** The `PlanLimit` that was deleted by this mutation. */ - planLimit?: PlanLimit | null; - planLimitEdge?: PlanLimitEdge | null; -} -export type DeletePlanLimitPayloadSelect = { - clientMutationId?: boolean; - planLimit?: { - select: PlanLimitSelect; - }; - planLimitEdge?: { - select: PlanLimitEdgeSelect; - }; -}; -export interface CreatePlanMeterLimitPayload { - clientMutationId?: string | null; - /** The `PlanMeterLimit` that was created by this mutation. */ - planMeterLimit?: PlanMeterLimit | null; - planMeterLimitEdge?: PlanMeterLimitEdge | null; -} -export type CreatePlanMeterLimitPayloadSelect = { - clientMutationId?: boolean; - planMeterLimit?: { - select: PlanMeterLimitSelect; - }; - planMeterLimitEdge?: { - select: PlanMeterLimitEdgeSelect; - }; -}; -export interface UpdatePlanMeterLimitPayload { - clientMutationId?: string | null; - /** The `PlanMeterLimit` that was updated by this mutation. */ - planMeterLimit?: PlanMeterLimit | null; - planMeterLimitEdge?: PlanMeterLimitEdge | null; -} -export type UpdatePlanMeterLimitPayloadSelect = { - clientMutationId?: boolean; - planMeterLimit?: { - select: PlanMeterLimitSelect; - }; - planMeterLimitEdge?: { - select: PlanMeterLimitEdgeSelect; - }; -}; -export interface DeletePlanMeterLimitPayload { - clientMutationId?: string | null; - /** The `PlanMeterLimit` that was deleted by this mutation. */ - planMeterLimit?: PlanMeterLimit | null; - planMeterLimitEdge?: PlanMeterLimitEdge | null; -} -export type DeletePlanMeterLimitPayloadSelect = { - clientMutationId?: boolean; - planMeterLimit?: { - select: PlanMeterLimitSelect; - }; - planMeterLimitEdge?: { - select: PlanMeterLimitEdgeSelect; - }; -}; -export interface CreatePlanOverridePayload { - clientMutationId?: string | null; - /** The `PlanOverride` that was created by this mutation. */ - planOverride?: PlanOverride | null; - planOverrideEdge?: PlanOverrideEdge | null; -} -export type CreatePlanOverridePayloadSelect = { - clientMutationId?: boolean; - planOverride?: { - select: PlanOverrideSelect; - }; - planOverrideEdge?: { - select: PlanOverrideEdgeSelect; - }; -}; -export interface UpdatePlanOverridePayload { - clientMutationId?: string | null; - /** The `PlanOverride` that was updated by this mutation. */ - planOverride?: PlanOverride | null; - planOverrideEdge?: PlanOverrideEdge | null; -} -export type UpdatePlanOverridePayloadSelect = { - clientMutationId?: boolean; - planOverride?: { - select: PlanOverrideSelect; - }; - planOverrideEdge?: { - select: PlanOverrideEdgeSelect; - }; -}; -export interface DeletePlanOverridePayload { - clientMutationId?: string | null; - /** The `PlanOverride` that was deleted by this mutation. */ - planOverride?: PlanOverride | null; - planOverrideEdge?: PlanOverrideEdge | null; -} -export type DeletePlanOverridePayloadSelect = { - clientMutationId?: boolean; - planOverride?: { - select: PlanOverrideSelect; - }; - planOverrideEdge?: { - select: PlanOverrideEdgeSelect; - }; -}; -export interface CreatePlanPricingPayload { - clientMutationId?: string | null; - /** The `PlanPricing` that was created by this mutation. */ - planPricing?: PlanPricing | null; - planPricingEdge?: PlanPricingEdge | null; -} -export type CreatePlanPricingPayloadSelect = { - clientMutationId?: boolean; - planPricing?: { - select: PlanPricingSelect; - }; - planPricingEdge?: { - select: PlanPricingEdgeSelect; - }; -}; -export interface UpdatePlanPricingPayload { - clientMutationId?: string | null; - /** The `PlanPricing` that was updated by this mutation. */ - planPricing?: PlanPricing | null; - planPricingEdge?: PlanPricingEdge | null; -} -export type UpdatePlanPricingPayloadSelect = { - clientMutationId?: boolean; - planPricing?: { - select: PlanPricingSelect; - }; - planPricingEdge?: { - select: PlanPricingEdgeSelect; - }; -}; -export interface DeletePlanPricingPayload { - clientMutationId?: string | null; - /** The `PlanPricing` that was deleted by this mutation. */ - planPricing?: PlanPricing | null; - planPricingEdge?: PlanPricingEdge | null; -} -export type DeletePlanPricingPayloadSelect = { - clientMutationId?: boolean; - planPricing?: { - select: PlanPricingSelect; - }; - planPricingEdge?: { - select: PlanPricingEdgeSelect; - }; -}; -export interface CreatePlanSubscriptionPayload { - clientMutationId?: string | null; - /** The `PlanSubscription` that was created by this mutation. */ - planSubscription?: PlanSubscription | null; - planSubscriptionEdge?: PlanSubscriptionEdge | null; -} -export type CreatePlanSubscriptionPayloadSelect = { - clientMutationId?: boolean; - planSubscription?: { - select: PlanSubscriptionSelect; - }; - planSubscriptionEdge?: { - select: PlanSubscriptionEdgeSelect; - }; -}; -export interface UpdatePlanSubscriptionPayload { - clientMutationId?: string | null; - /** The `PlanSubscription` that was updated by this mutation. */ - planSubscription?: PlanSubscription | null; - planSubscriptionEdge?: PlanSubscriptionEdge | null; -} -export type UpdatePlanSubscriptionPayloadSelect = { - clientMutationId?: boolean; - planSubscription?: { - select: PlanSubscriptionSelect; - }; - planSubscriptionEdge?: { - select: PlanSubscriptionEdgeSelect; - }; -}; -export interface DeletePlanSubscriptionPayload { - clientMutationId?: string | null; - /** The `PlanSubscription` that was deleted by this mutation. */ - planSubscription?: PlanSubscription | null; - planSubscriptionEdge?: PlanSubscriptionEdge | null; -} -export type DeletePlanSubscriptionPayloadSelect = { - clientMutationId?: boolean; - planSubscription?: { - select: PlanSubscriptionSelect; - }; - planSubscriptionEdge?: { - select: PlanSubscriptionEdgeSelect; - }; -}; -/** A `AppLevelRequirement` edge in the connection. */ -export interface AppLevelRequirementEdge { - cursor?: string | null; - /** The `AppLevelRequirement` at the end of the edge. */ - node?: AppLevelRequirement | null; -} -export type AppLevelRequirementEdgeSelect = { - cursor?: boolean; - node?: { - select: AppLevelRequirementSelect; - }; -}; -/** 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 `AppAchievementReward` edge in the connection. */ -export interface AppAchievementRewardEdge { - cursor?: string | null; - /** The `AppAchievementReward` at the end of the edge. */ - node?: AppAchievementReward | null; -} -export type AppAchievementRewardEdgeSelect = { - cursor?: boolean; - node?: { - select: AppAchievementRewardSelect; - }; -}; -/** A `AppEventAggregate` edge in the connection. */ -export interface AppEventAggregateEdge { - cursor?: string | null; - /** The `AppEventAggregate` at the end of the edge. */ - node?: AppEventAggregate | null; -} -export type AppEventAggregateEdgeSelect = { - cursor?: boolean; - node?: { - select: AppEventAggregateSelect; - }; -}; -/** A `AppEvent` edge in the connection. */ -export interface AppEventEdge { - cursor?: string | null; - /** The `AppEvent` at the end of the edge. */ - node?: AppEvent | null; -} -export type AppEventEdgeSelect = { - cursor?: boolean; - node?: { - select: AppEventSelect; - }; -}; -/** A `AppEventType` edge in the connection. */ -export interface AppEventTypeEdge { - cursor?: string | null; - /** The `AppEventType` at the end of the edge. */ - node?: AppEventType | null; -} -export type AppEventTypeEdgeSelect = { - cursor?: boolean; - node?: { - select: AppEventTypeSelect; - }; -}; -/** A `AppLevel` edge in the connection. */ -export interface AppLevelEdge { - cursor?: string | null; - /** The `AppLevel` at the end of the edge. */ - node?: AppLevel | null; -} -export type AppLevelEdgeSelect = { - cursor?: boolean; - node?: { - select: AppLevelSelect; - }; -}; -/** A `AppLevelGrant` edge in the connection. */ -export interface AppLevelGrantEdge { - cursor?: string | null; - /** The `AppLevelGrant` at the end of the edge. */ - node?: AppLevelGrant | null; -} -export type AppLevelGrantEdgeSelect = { - cursor?: boolean; - node?: { - select: AppLevelGrantSelect; - }; -}; /** A `AppLimitCap` edge in the connection. */ export interface AppLimitCapEdge { cursor?: string | null; @@ -7673,78 +3832,6 @@ export type AppLimitWarningEdgeSelect = { select: AppLimitWarningSelect; }; }; -/** A `BillingUsageSummary` edge in the connection. */ -export interface BillingUsageSummaryEdge { - cursor?: string | null; - /** The `BillingUsageSummary` at the end of the edge. */ - node?: BillingUsageSummary | null; -} -export type BillingUsageSummaryEdgeSelect = { - cursor?: boolean; - node?: { - select: BillingUsageSummarySelect; - }; -}; -/** A `Ledger` edge in the connection. */ -export interface LedgerEdge { - cursor?: string | null; - /** The `Ledger` at the end of the edge. */ - node?: Ledger | null; -} -export type LedgerEdgeSelect = { - cursor?: boolean; - node?: { - select: LedgerSelect; - }; -}; -/** A `Meter` edge in the connection. */ -export interface MeterEdge { - cursor?: string | null; - /** The `Meter` at the end of the edge. */ - node?: Meter | null; -} -export type MeterEdgeSelect = { - cursor?: boolean; - node?: { - select: MeterSelect; - }; -}; -/** A `MeterCredit` edge in the connection. */ -export interface MeterCreditEdge { - cursor?: string | null; - /** The `MeterCredit` at the end of the edge. */ - node?: MeterCredit | null; -} -export type MeterCreditEdgeSelect = { - cursor?: boolean; - node?: { - select: MeterCreditSelect; - }; -}; -/** A `MeterDefault` edge in the connection. */ -export interface MeterDefaultEdge { - cursor?: string | null; - /** The `MeterDefault` at the end of the edge. */ - node?: MeterDefault | null; -} -export type MeterDefaultEdgeSelect = { - cursor?: boolean; - node?: { - select: MeterDefaultSelect; - }; -}; -/** A `MeterSource` edge in the connection. */ -export interface MeterSourceEdge { - cursor?: string | null; - /** The `MeterSource` at the end of the edge. */ - node?: MeterSource | null; -} -export type MeterSourceEdgeSelect = { - cursor?: boolean; - node?: { - select: MeterSourceSelect; - }; -}; /** A `OrgLimitAggregate` edge in the connection. */ export interface OrgLimitAggregateEdge { cursor?: string | null; @@ -7841,87 +3928,3 @@ export type OrgLimitWarningEdgeSelect = { select: OrgLimitWarningSelect; }; }; -/** A `PlanCap` edge in the connection. */ -export interface PlanCapEdge { - cursor?: string | null; - /** The `PlanCap` at the end of the edge. */ - node?: PlanCap | null; -} -export type PlanCapEdgeSelect = { - cursor?: boolean; - node?: { - select: PlanCapSelect; - }; -}; -/** A `Plan` edge in the connection. */ -export interface PlanEdge { - cursor?: string | null; - /** The `Plan` at the end of the edge. */ - node?: Plan | null; -} -export type PlanEdgeSelect = { - cursor?: boolean; - node?: { - select: PlanSelect; - }; -}; -/** A `PlanLimit` edge in the connection. */ -export interface PlanLimitEdge { - cursor?: string | null; - /** The `PlanLimit` at the end of the edge. */ - node?: PlanLimit | null; -} -export type PlanLimitEdgeSelect = { - cursor?: boolean; - node?: { - select: PlanLimitSelect; - }; -}; -/** A `PlanMeterLimit` edge in the connection. */ -export interface PlanMeterLimitEdge { - cursor?: string | null; - /** The `PlanMeterLimit` at the end of the edge. */ - node?: PlanMeterLimit | null; -} -export type PlanMeterLimitEdgeSelect = { - cursor?: boolean; - node?: { - select: PlanMeterLimitSelect; - }; -}; -/** A `PlanOverride` edge in the connection. */ -export interface PlanOverrideEdge { - cursor?: string | null; - /** The `PlanOverride` at the end of the edge. */ - node?: PlanOverride | null; -} -export type PlanOverrideEdgeSelect = { - cursor?: boolean; - node?: { - select: PlanOverrideSelect; - }; -}; -/** A `PlanPricing` edge in the connection. */ -export interface PlanPricingEdge { - cursor?: string | null; - /** The `PlanPricing` at the end of the edge. */ - node?: PlanPricing | null; -} -export type PlanPricingEdgeSelect = { - cursor?: boolean; - node?: { - select: PlanPricingSelect; - }; -}; -/** A `PlanSubscription` edge in the connection. */ -export interface PlanSubscriptionEdge { - cursor?: string | null; - /** The `PlanSubscription` at the end of the edge. */ - node?: PlanSubscription | null; -} -export type PlanSubscriptionEdgeSelect = { - cursor?: boolean; - node?: { - select: PlanSubscriptionSelect; - }; -}; diff --git a/sdk/constructive-react/src/usage/orm/models/appAchievementReward.ts b/sdk/constructive-react/src/usage/orm/models/appAchievementReward.ts deleted file mode 100644 index cdbccdd6b0..0000000000 --- a/sdk/constructive-react/src/usage/orm/models/appAchievementReward.ts +++ /dev/null @@ -1,247 +0,0 @@ -/** - * AppAchievementReward 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 { - AppAchievementReward, - AppAchievementRewardWithRelations, - AppAchievementRewardSelect, - AppAchievementRewardFilter, - AppAchievementRewardOrderBy, - CreateAppAchievementRewardInput, - UpdateAppAchievementRewardInput, - AppAchievementRewardPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AppAchievementRewardModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appAchievementRewards: ConnectionResult< - InferSelectResult - >; - }> { - const { document, variables } = buildFindManyDocument( - 'AppAchievementReward', - 'appAchievementRewards', - 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, - }, - 'AppAchievementRewardFilter', - 'AppAchievementRewardOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppAchievementReward', - fieldName: 'appAchievementRewards', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appAchievementReward: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AppAchievementReward', - 'appAchievementRewards', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AppAchievementRewardFilter', - 'AppAchievementRewardOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppAchievementReward', - fieldName: 'appAchievementReward', - document, - variables, - transform: (data: { - appAchievementRewards?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appAchievementReward: data.appAchievementRewards?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - appAchievementReward: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AppAchievementReward', - 'appAchievementRewards', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AppAchievementRewardFilter', - 'AppAchievementRewardOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppAchievementReward', - fieldName: 'appAchievementReward', - document, - variables, - transform: (data: { - appAchievementRewards?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appAchievementReward: data.appAchievementRewards?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppAchievementReward: { - appAchievementReward: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppAchievementReward', - 'createAppAchievementReward', - 'appAchievementReward', - args.select, - args.data, - 'CreateAppAchievementRewardInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppAchievementReward', - fieldName: 'createAppAchievementReward', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AppAchievementRewardPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAppAchievementReward: { - appAchievementReward: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AppAchievementReward', - 'updateAppAchievementReward', - 'appAchievementReward', - args.select, - args.where.id, - args.data, - 'UpdateAppAchievementRewardInput', - 'id', - 'appAchievementRewardPatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppAchievementReward', - fieldName: 'updateAppAchievementReward', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAppAchievementReward: { - appAchievementReward: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AppAchievementReward', - 'deleteAppAchievementReward', - 'appAchievementReward', - { - id: args.where.id, - }, - 'DeleteAppAchievementRewardInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppAchievementReward', - fieldName: 'deleteAppAchievementReward', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/usage/orm/models/appEvent.ts b/sdk/constructive-react/src/usage/orm/models/appEvent.ts deleted file mode 100644 index b0cc9982d4..0000000000 --- a/sdk/constructive-react/src/usage/orm/models/appEvent.ts +++ /dev/null @@ -1,250 +0,0 @@ -/** - * AppEvent 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 { - AppEvent, - AppEventWithRelations, - AppEventSelect, - AppEventFilter, - AppEventOrderBy, - CreateAppEventInput, - UpdateAppEventInput, - AppEventPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AppEventModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appEvents: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'AppEvent', - 'appEvents', - 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, - }, - 'AppEventFilter', - 'AppEventOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppEvent', - fieldName: 'appEvents', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appEvent: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AppEvent', - 'appEvents', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AppEventFilter', - 'AppEventOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppEvent', - fieldName: 'appEvent', - document, - variables, - transform: (data: { - appEvents?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appEvent: data.appEvents?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - appEvent: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AppEvent', - 'appEvents', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AppEventFilter', - 'AppEventOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppEvent', - fieldName: 'appEvent', - document, - variables, - transform: (data: { - appEvents?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appEvent: data.appEvents?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppEvent: { - appEvent: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppEvent', - 'createAppEvent', - 'appEvent', - args.select, - args.data, - 'CreateAppEventInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppEvent', - fieldName: 'createAppEvent', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - createdAt: string; - }, - AppEventPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAppEvent: { - appEvent: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AppEvent', - 'updateAppEvent', - 'appEvent', - args.select, - args.where.id, - args.data, - 'UpdateAppEventInput', - 'id', - 'appEventPatch', - connectionFieldsMap, - { - createdAt: args.where.createdAt, - } - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppEvent', - fieldName: 'updateAppEvent', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - createdAt: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAppEvent: { - appEvent: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AppEvent', - 'deleteAppEvent', - 'appEvent', - { - id: args.where.id, - createdAt: args.where.createdAt, - }, - 'DeleteAppEventInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppEvent', - fieldName: 'deleteAppEvent', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/usage/orm/models/appEventAggregate.ts b/sdk/constructive-react/src/usage/orm/models/appEventAggregate.ts deleted file mode 100644 index 74985e675e..0000000000 --- a/sdk/constructive-react/src/usage/orm/models/appEventAggregate.ts +++ /dev/null @@ -1,245 +0,0 @@ -/** - * AppEventAggregate 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 { - AppEventAggregate, - AppEventAggregateWithRelations, - AppEventAggregateSelect, - AppEventAggregateFilter, - AppEventAggregateOrderBy, - CreateAppEventAggregateInput, - UpdateAppEventAggregateInput, - AppEventAggregatePatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AppEventAggregateModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appEventAggregates: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'AppEventAggregate', - 'appEventAggregates', - 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, - }, - 'AppEventAggregateFilter', - 'AppEventAggregateOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppEventAggregate', - fieldName: 'appEventAggregates', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appEventAggregate: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AppEventAggregate', - 'appEventAggregates', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AppEventAggregateFilter', - 'AppEventAggregateOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppEventAggregate', - fieldName: 'appEventAggregate', - document, - variables, - transform: (data: { - appEventAggregates?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appEventAggregate: data.appEventAggregates?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - appEventAggregate: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AppEventAggregate', - 'appEventAggregates', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AppEventAggregateFilter', - 'AppEventAggregateOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppEventAggregate', - fieldName: 'appEventAggregate', - document, - variables, - transform: (data: { - appEventAggregates?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appEventAggregate: data.appEventAggregates?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppEventAggregate: { - appEventAggregate: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppEventAggregate', - 'createAppEventAggregate', - 'appEventAggregate', - args.select, - args.data, - 'CreateAppEventAggregateInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppEventAggregate', - fieldName: 'createAppEventAggregate', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AppEventAggregatePatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAppEventAggregate: { - appEventAggregate: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AppEventAggregate', - 'updateAppEventAggregate', - 'appEventAggregate', - args.select, - args.where.id, - args.data, - 'UpdateAppEventAggregateInput', - 'id', - 'appEventAggregatePatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppEventAggregate', - fieldName: 'updateAppEventAggregate', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAppEventAggregate: { - appEventAggregate: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AppEventAggregate', - 'deleteAppEventAggregate', - 'appEventAggregate', - { - id: args.where.id, - }, - 'DeleteAppEventAggregateInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppEventAggregate', - fieldName: 'deleteAppEventAggregate', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/usage/orm/models/appEventType.ts b/sdk/constructive-react/src/usage/orm/models/appEventType.ts deleted file mode 100644 index 4781228b4c..0000000000 --- a/sdk/constructive-react/src/usage/orm/models/appEventType.ts +++ /dev/null @@ -1,245 +0,0 @@ -/** - * AppEventType 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 { - AppEventType, - AppEventTypeWithRelations, - AppEventTypeSelect, - AppEventTypeFilter, - AppEventTypeOrderBy, - CreateAppEventTypeInput, - UpdateAppEventTypeInput, - AppEventTypePatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AppEventTypeModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appEventTypes: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'AppEventType', - 'appEventTypes', - 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, - }, - 'AppEventTypeFilter', - 'AppEventTypeOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppEventType', - fieldName: 'appEventTypes', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appEventType: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AppEventType', - 'appEventTypes', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AppEventTypeFilter', - 'AppEventTypeOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppEventType', - fieldName: 'appEventType', - document, - variables, - transform: (data: { - appEventTypes?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appEventType: data.appEventTypes?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - appEventType: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AppEventType', - 'appEventTypes', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AppEventTypeFilter', - 'AppEventTypeOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppEventType', - fieldName: 'appEventType', - document, - variables, - transform: (data: { - appEventTypes?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appEventType: data.appEventTypes?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppEventType: { - appEventType: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppEventType', - 'createAppEventType', - 'appEventType', - args.select, - args.data, - 'CreateAppEventTypeInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppEventType', - fieldName: 'createAppEventType', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AppEventTypePatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAppEventType: { - appEventType: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AppEventType', - 'updateAppEventType', - 'appEventType', - args.select, - args.where.id, - args.data, - 'UpdateAppEventTypeInput', - 'id', - 'appEventTypePatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppEventType', - fieldName: 'updateAppEventType', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAppEventType: { - appEventType: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AppEventType', - 'deleteAppEventType', - 'appEventType', - { - id: args.where.id, - }, - 'DeleteAppEventTypeInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppEventType', - fieldName: 'deleteAppEventType', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/usage/orm/models/appLevel.ts b/sdk/constructive-react/src/usage/orm/models/appLevel.ts deleted file mode 100644 index 36a050cba3..0000000000 --- a/sdk/constructive-react/src/usage/orm/models/appLevel.ts +++ /dev/null @@ -1,245 +0,0 @@ -/** - * AppLevel 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 { - AppLevel, - AppLevelWithRelations, - AppLevelSelect, - AppLevelFilter, - AppLevelOrderBy, - CreateAppLevelInput, - UpdateAppLevelInput, - AppLevelPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AppLevelModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLevels: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'AppLevel', - 'appLevels', - 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, - }, - 'AppLevelFilter', - 'AppLevelOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLevel', - fieldName: 'appLevels', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLevel: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AppLevel', - 'appLevels', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AppLevelFilter', - 'AppLevelOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLevel', - fieldName: 'appLevel', - document, - variables, - transform: (data: { - appLevels?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appLevel: data.appLevels?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLevel: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AppLevel', - 'appLevels', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AppLevelFilter', - 'AppLevelOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLevel', - fieldName: 'appLevel', - document, - variables, - transform: (data: { - appLevels?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appLevel: data.appLevels?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppLevel: { - appLevel: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppLevel', - 'createAppLevel', - 'appLevel', - args.select, - args.data, - 'CreateAppLevelInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLevel', - fieldName: 'createAppLevel', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AppLevelPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAppLevel: { - appLevel: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AppLevel', - 'updateAppLevel', - 'appLevel', - args.select, - args.where.id, - args.data, - 'UpdateAppLevelInput', - 'id', - 'appLevelPatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLevel', - fieldName: 'updateAppLevel', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAppLevel: { - appLevel: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AppLevel', - 'deleteAppLevel', - 'appLevel', - { - id: args.where.id, - }, - 'DeleteAppLevelInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLevel', - fieldName: 'deleteAppLevel', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/usage/orm/models/appLevelGrant.ts b/sdk/constructive-react/src/usage/orm/models/appLevelGrant.ts deleted file mode 100644 index 9324be5b70..0000000000 --- a/sdk/constructive-react/src/usage/orm/models/appLevelGrant.ts +++ /dev/null @@ -1,245 +0,0 @@ -/** - * AppLevelGrant 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 { - AppLevelGrant, - AppLevelGrantWithRelations, - AppLevelGrantSelect, - AppLevelGrantFilter, - AppLevelGrantOrderBy, - CreateAppLevelGrantInput, - UpdateAppLevelGrantInput, - AppLevelGrantPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AppLevelGrantModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLevelGrants: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'AppLevelGrant', - 'appLevelGrants', - 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, - }, - 'AppLevelGrantFilter', - 'AppLevelGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLevelGrant', - fieldName: 'appLevelGrants', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLevelGrant: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AppLevelGrant', - 'appLevelGrants', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AppLevelGrantFilter', - 'AppLevelGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLevelGrant', - fieldName: 'appLevelGrant', - document, - variables, - transform: (data: { - appLevelGrants?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appLevelGrant: data.appLevelGrants?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLevelGrant: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AppLevelGrant', - 'appLevelGrants', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AppLevelGrantFilter', - 'AppLevelGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLevelGrant', - fieldName: 'appLevelGrant', - document, - variables, - transform: (data: { - appLevelGrants?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appLevelGrant: data.appLevelGrants?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppLevelGrant: { - appLevelGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppLevelGrant', - 'createAppLevelGrant', - 'appLevelGrant', - args.select, - args.data, - 'CreateAppLevelGrantInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLevelGrant', - fieldName: 'createAppLevelGrant', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AppLevelGrantPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAppLevelGrant: { - appLevelGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AppLevelGrant', - 'updateAppLevelGrant', - 'appLevelGrant', - args.select, - args.where.id, - args.data, - 'UpdateAppLevelGrantInput', - 'id', - 'appLevelGrantPatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLevelGrant', - fieldName: 'updateAppLevelGrant', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAppLevelGrant: { - appLevelGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AppLevelGrant', - 'deleteAppLevelGrant', - 'appLevelGrant', - { - id: args.where.id, - }, - 'DeleteAppLevelGrantInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLevelGrant', - fieldName: 'deleteAppLevelGrant', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/usage/orm/models/appLevelRequirement.ts b/sdk/constructive-react/src/usage/orm/models/appLevelRequirement.ts deleted file mode 100644 index f7634bc482..0000000000 --- a/sdk/constructive-react/src/usage/orm/models/appLevelRequirement.ts +++ /dev/null @@ -1,245 +0,0 @@ -/** - * AppLevelRequirement 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 { - AppLevelRequirement, - AppLevelRequirementWithRelations, - AppLevelRequirementSelect, - AppLevelRequirementFilter, - AppLevelRequirementOrderBy, - CreateAppLevelRequirementInput, - UpdateAppLevelRequirementInput, - AppLevelRequirementPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AppLevelRequirementModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLevelRequirements: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'AppLevelRequirement', - 'appLevelRequirements', - 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, - }, - 'AppLevelRequirementFilter', - 'AppLevelRequirementOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLevelRequirement', - fieldName: 'appLevelRequirements', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLevelRequirement: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AppLevelRequirement', - 'appLevelRequirements', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AppLevelRequirementFilter', - 'AppLevelRequirementOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLevelRequirement', - fieldName: 'appLevelRequirement', - document, - variables, - transform: (data: { - appLevelRequirements?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appLevelRequirement: data.appLevelRequirements?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLevelRequirement: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AppLevelRequirement', - 'appLevelRequirements', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AppLevelRequirementFilter', - 'AppLevelRequirementOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLevelRequirement', - fieldName: 'appLevelRequirement', - document, - variables, - transform: (data: { - appLevelRequirements?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appLevelRequirement: data.appLevelRequirements?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppLevelRequirement: { - appLevelRequirement: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppLevelRequirement', - 'createAppLevelRequirement', - 'appLevelRequirement', - args.select, - args.data, - 'CreateAppLevelRequirementInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLevelRequirement', - fieldName: 'createAppLevelRequirement', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AppLevelRequirementPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAppLevelRequirement: { - appLevelRequirement: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AppLevelRequirement', - 'updateAppLevelRequirement', - 'appLevelRequirement', - args.select, - args.where.id, - args.data, - 'UpdateAppLevelRequirementInput', - 'id', - 'appLevelRequirementPatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLevelRequirement', - fieldName: 'updateAppLevelRequirement', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAppLevelRequirement: { - appLevelRequirement: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AppLevelRequirement', - 'deleteAppLevelRequirement', - 'appLevelRequirement', - { - id: args.where.id, - }, - 'DeleteAppLevelRequirementInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLevelRequirement', - fieldName: 'deleteAppLevelRequirement', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/usage/orm/models/billingUsageSummary.ts b/sdk/constructive-react/src/usage/orm/models/billingUsageSummary.ts deleted file mode 100644 index 38512d9f62..0000000000 --- a/sdk/constructive-react/src/usage/orm/models/billingUsageSummary.ts +++ /dev/null @@ -1,245 +0,0 @@ -/** - * BillingUsageSummary 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 { - BillingUsageSummary, - BillingUsageSummaryWithRelations, - BillingUsageSummarySelect, - BillingUsageSummaryFilter, - BillingUsageSummaryOrderBy, - CreateBillingUsageSummaryInput, - UpdateBillingUsageSummaryInput, - BillingUsageSummaryPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class BillingUsageSummaryModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - billingUsageSummaries: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'BillingUsageSummary', - 'billingUsageSummaries', - 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, - }, - 'BillingUsageSummaryFilter', - 'BillingUsageSummaryOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'BillingUsageSummary', - fieldName: 'billingUsageSummaries', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - billingUsageSummary: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'BillingUsageSummary', - 'billingUsageSummaries', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'BillingUsageSummaryFilter', - 'BillingUsageSummaryOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'BillingUsageSummary', - fieldName: 'billingUsageSummary', - document, - variables, - transform: (data: { - billingUsageSummaries?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - billingUsageSummary: data.billingUsageSummaries?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - billingUsageSummary: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'BillingUsageSummary', - 'billingUsageSummaries', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'BillingUsageSummaryFilter', - 'BillingUsageSummaryOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'BillingUsageSummary', - fieldName: 'billingUsageSummary', - document, - variables, - transform: (data: { - billingUsageSummaries?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - billingUsageSummary: data.billingUsageSummaries?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createBillingUsageSummary: { - billingUsageSummary: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'BillingUsageSummary', - 'createBillingUsageSummary', - 'billingUsageSummary', - args.select, - args.data, - 'CreateBillingUsageSummaryInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'BillingUsageSummary', - fieldName: 'createBillingUsageSummary', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - BillingUsageSummaryPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateBillingUsageSummary: { - billingUsageSummary: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'BillingUsageSummary', - 'updateBillingUsageSummary', - 'billingUsageSummary', - args.select, - args.where.id, - args.data, - 'UpdateBillingUsageSummaryInput', - 'id', - 'billingUsageSummaryPatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'BillingUsageSummary', - fieldName: 'updateBillingUsageSummary', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteBillingUsageSummary: { - billingUsageSummary: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'BillingUsageSummary', - 'deleteBillingUsageSummary', - 'billingUsageSummary', - { - id: args.where.id, - }, - 'DeleteBillingUsageSummaryInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'BillingUsageSummary', - fieldName: 'deleteBillingUsageSummary', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/usage/orm/models/index.ts b/sdk/constructive-react/src/usage/orm/models/index.ts index ef279b7afb..049cfdab13 100644 --- a/sdk/constructive-react/src/usage/orm/models/index.ts +++ b/sdk/constructive-react/src/usage/orm/models/index.ts @@ -3,13 +3,6 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ -export { AppAchievementRewardModel } from './appAchievementReward'; -export { AppEventAggregateModel } from './appEventAggregate'; -export { AppEventModel } from './appEvent'; -export { AppEventTypeModel } from './appEventType'; -export { AppLevelModel } from './appLevel'; -export { AppLevelGrantModel } from './appLevelGrant'; -export { AppLevelRequirementModel } from './appLevelRequirement'; export { AppLimitCapModel } from './appLimitCap'; export { AppLimitCapsDefaultModel } from './appLimitCapsDefault'; export { AppLimitModel } from './appLimit'; @@ -20,12 +13,6 @@ export { AppLimitCreditRedemptionModel } from './appLimitCreditRedemption'; export { AppLimitDefaultModel } from './appLimitDefault'; export { AppLimitEventModel } from './appLimitEvent'; export { AppLimitWarningModel } from './appLimitWarning'; -export { BillingUsageSummaryModel } from './billingUsageSummary'; -export { LedgerModel } from './ledger'; -export { MeterModel } from './meter'; -export { MeterCreditModel } from './meterCredit'; -export { MeterDefaultModel } from './meterDefault'; -export { MeterSourceModel } from './meterSource'; export { OrgLimitAggregateModel } from './orgLimitAggregate'; export { OrgLimitCapModel } from './orgLimitCap'; export { OrgLimitCapsDefaultModel } from './orgLimitCapsDefault'; @@ -34,10 +21,3 @@ export { OrgLimitCreditModel } from './orgLimitCredit'; export { OrgLimitDefaultModel } from './orgLimitDefault'; export { OrgLimitEventModel } from './orgLimitEvent'; export { OrgLimitWarningModel } from './orgLimitWarning'; -export { PlanCapModel } from './planCap'; -export { PlanModel } from './plan'; -export { PlanLimitModel } from './planLimit'; -export { PlanMeterLimitModel } from './planMeterLimit'; -export { PlanOverrideModel } from './planOverride'; -export { PlanPricingModel } from './planPricing'; -export { PlanSubscriptionModel } from './planSubscription'; diff --git a/sdk/constructive-react/src/usage/orm/models/ledger.ts b/sdk/constructive-react/src/usage/orm/models/ledger.ts deleted file mode 100644 index 37a6cfd886..0000000000 --- a/sdk/constructive-react/src/usage/orm/models/ledger.ts +++ /dev/null @@ -1,250 +0,0 @@ -/** - * Ledger 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 { - Ledger, - LedgerWithRelations, - LedgerSelect, - LedgerFilter, - LedgerOrderBy, - CreateLedgerInput, - UpdateLedgerInput, - LedgerPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class LedgerModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - ledgers: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'Ledger', - 'ledgers', - 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, - }, - 'LedgerFilter', - 'LedgerOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'Ledger', - fieldName: 'ledgers', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - ledger: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'Ledger', - 'ledgers', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'LedgerFilter', - 'LedgerOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'Ledger', - fieldName: 'ledger', - document, - variables, - transform: (data: { - ledgers?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - ledger: data.ledgers?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - ledger: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'Ledger', - 'ledgers', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'LedgerFilter', - 'LedgerOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'Ledger', - fieldName: 'ledger', - document, - variables, - transform: (data: { - ledgers?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - ledger: data.ledgers?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createLedger: { - ledger: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'Ledger', - 'createLedger', - 'ledger', - args.select, - args.data, - 'CreateLedgerInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'Ledger', - fieldName: 'createLedger', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - createdAt: string; - }, - LedgerPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateLedger: { - ledger: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'Ledger', - 'updateLedger', - 'ledger', - args.select, - args.where.id, - args.data, - 'UpdateLedgerInput', - 'id', - 'ledgerPatch', - connectionFieldsMap, - { - createdAt: args.where.createdAt, - } - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'Ledger', - fieldName: 'updateLedger', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - createdAt: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteLedger: { - ledger: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'Ledger', - 'deleteLedger', - 'ledger', - { - id: args.where.id, - createdAt: args.where.createdAt, - }, - 'DeleteLedgerInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'Ledger', - fieldName: 'deleteLedger', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/usage/orm/models/meter.ts b/sdk/constructive-react/src/usage/orm/models/meter.ts deleted file mode 100644 index 26718a0190..0000000000 --- a/sdk/constructive-react/src/usage/orm/models/meter.ts +++ /dev/null @@ -1,245 +0,0 @@ -/** - * Meter 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 { - Meter, - MeterWithRelations, - MeterSelect, - MeterFilter, - MeterOrderBy, - CreateMeterInput, - UpdateMeterInput, - MeterPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class MeterModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - meters: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'Meter', - 'meters', - 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, - }, - 'MeterFilter', - 'MeterOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'Meter', - fieldName: 'meters', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - meter: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'Meter', - 'meters', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'MeterFilter', - 'MeterOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'Meter', - fieldName: 'meter', - document, - variables, - transform: (data: { - meters?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - meter: data.meters?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - meter: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'Meter', - 'meters', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'MeterFilter', - 'MeterOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'Meter', - fieldName: 'meter', - document, - variables, - transform: (data: { - meters?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - meter: data.meters?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createMeter: { - meter: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'Meter', - 'createMeter', - 'meter', - args.select, - args.data, - 'CreateMeterInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'Meter', - fieldName: 'createMeter', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - MeterPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateMeter: { - meter: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'Meter', - 'updateMeter', - 'meter', - args.select, - args.where.id, - args.data, - 'UpdateMeterInput', - 'id', - 'meterPatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'Meter', - fieldName: 'updateMeter', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteMeter: { - meter: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'Meter', - 'deleteMeter', - 'meter', - { - id: args.where.id, - }, - 'DeleteMeterInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'Meter', - fieldName: 'deleteMeter', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/usage/orm/models/meterCredit.ts b/sdk/constructive-react/src/usage/orm/models/meterCredit.ts deleted file mode 100644 index ba2881f8f5..0000000000 --- a/sdk/constructive-react/src/usage/orm/models/meterCredit.ts +++ /dev/null @@ -1,245 +0,0 @@ -/** - * MeterCredit 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 { - MeterCredit, - MeterCreditWithRelations, - MeterCreditSelect, - MeterCreditFilter, - MeterCreditOrderBy, - CreateMeterCreditInput, - UpdateMeterCreditInput, - MeterCreditPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class MeterCreditModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - meterCredits: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'MeterCredit', - 'meterCredits', - 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, - }, - 'MeterCreditFilter', - 'MeterCreditOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'MeterCredit', - fieldName: 'meterCredits', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - meterCredit: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'MeterCredit', - 'meterCredits', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'MeterCreditFilter', - 'MeterCreditOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'MeterCredit', - fieldName: 'meterCredit', - document, - variables, - transform: (data: { - meterCredits?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - meterCredit: data.meterCredits?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - meterCredit: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'MeterCredit', - 'meterCredits', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'MeterCreditFilter', - 'MeterCreditOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'MeterCredit', - fieldName: 'meterCredit', - document, - variables, - transform: (data: { - meterCredits?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - meterCredit: data.meterCredits?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createMeterCredit: { - meterCredit: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'MeterCredit', - 'createMeterCredit', - 'meterCredit', - args.select, - args.data, - 'CreateMeterCreditInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'MeterCredit', - fieldName: 'createMeterCredit', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - MeterCreditPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateMeterCredit: { - meterCredit: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'MeterCredit', - 'updateMeterCredit', - 'meterCredit', - args.select, - args.where.id, - args.data, - 'UpdateMeterCreditInput', - 'id', - 'meterCreditPatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'MeterCredit', - fieldName: 'updateMeterCredit', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteMeterCredit: { - meterCredit: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'MeterCredit', - 'deleteMeterCredit', - 'meterCredit', - { - id: args.where.id, - }, - 'DeleteMeterCreditInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'MeterCredit', - fieldName: 'deleteMeterCredit', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/usage/orm/models/meterDefault.ts b/sdk/constructive-react/src/usage/orm/models/meterDefault.ts deleted file mode 100644 index a5bec1564f..0000000000 --- a/sdk/constructive-react/src/usage/orm/models/meterDefault.ts +++ /dev/null @@ -1,245 +0,0 @@ -/** - * MeterDefault 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 { - MeterDefault, - MeterDefaultWithRelations, - MeterDefaultSelect, - MeterDefaultFilter, - MeterDefaultOrderBy, - CreateMeterDefaultInput, - UpdateMeterDefaultInput, - MeterDefaultPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class MeterDefaultModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - meterDefaults: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'MeterDefault', - 'meterDefaults', - 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, - }, - 'MeterDefaultFilter', - 'MeterDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'MeterDefault', - fieldName: 'meterDefaults', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - meterDefault: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'MeterDefault', - 'meterDefaults', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'MeterDefaultFilter', - 'MeterDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'MeterDefault', - fieldName: 'meterDefault', - document, - variables, - transform: (data: { - meterDefaults?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - meterDefault: data.meterDefaults?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - meterDefault: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'MeterDefault', - 'meterDefaults', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'MeterDefaultFilter', - 'MeterDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'MeterDefault', - fieldName: 'meterDefault', - document, - variables, - transform: (data: { - meterDefaults?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - meterDefault: data.meterDefaults?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createMeterDefault: { - meterDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'MeterDefault', - 'createMeterDefault', - 'meterDefault', - args.select, - args.data, - 'CreateMeterDefaultInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'MeterDefault', - fieldName: 'createMeterDefault', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - MeterDefaultPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateMeterDefault: { - meterDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'MeterDefault', - 'updateMeterDefault', - 'meterDefault', - args.select, - args.where.id, - args.data, - 'UpdateMeterDefaultInput', - 'id', - 'meterDefaultPatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'MeterDefault', - fieldName: 'updateMeterDefault', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteMeterDefault: { - meterDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'MeterDefault', - 'deleteMeterDefault', - 'meterDefault', - { - id: args.where.id, - }, - 'DeleteMeterDefaultInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'MeterDefault', - fieldName: 'deleteMeterDefault', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/usage/orm/models/meterSource.ts b/sdk/constructive-react/src/usage/orm/models/meterSource.ts deleted file mode 100644 index 8e1ddd7b0f..0000000000 --- a/sdk/constructive-react/src/usage/orm/models/meterSource.ts +++ /dev/null @@ -1,245 +0,0 @@ -/** - * MeterSource 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 { - MeterSource, - MeterSourceWithRelations, - MeterSourceSelect, - MeterSourceFilter, - MeterSourceOrderBy, - CreateMeterSourceInput, - UpdateMeterSourceInput, - MeterSourcePatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class MeterSourceModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - meterSources: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'MeterSource', - 'meterSources', - 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, - }, - 'MeterSourceFilter', - 'MeterSourceOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'MeterSource', - fieldName: 'meterSources', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - meterSource: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'MeterSource', - 'meterSources', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'MeterSourceFilter', - 'MeterSourceOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'MeterSource', - fieldName: 'meterSource', - document, - variables, - transform: (data: { - meterSources?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - meterSource: data.meterSources?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - meterSource: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'MeterSource', - 'meterSources', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'MeterSourceFilter', - 'MeterSourceOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'MeterSource', - fieldName: 'meterSource', - document, - variables, - transform: (data: { - meterSources?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - meterSource: data.meterSources?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createMeterSource: { - meterSource: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'MeterSource', - 'createMeterSource', - 'meterSource', - args.select, - args.data, - 'CreateMeterSourceInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'MeterSource', - fieldName: 'createMeterSource', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - MeterSourcePatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateMeterSource: { - meterSource: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'MeterSource', - 'updateMeterSource', - 'meterSource', - args.select, - args.where.id, - args.data, - 'UpdateMeterSourceInput', - 'id', - 'meterSourcePatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'MeterSource', - fieldName: 'updateMeterSource', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteMeterSource: { - meterSource: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'MeterSource', - 'deleteMeterSource', - 'meterSource', - { - id: args.where.id, - }, - 'DeleteMeterSourceInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'MeterSource', - fieldName: 'deleteMeterSource', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/usage/orm/models/plan.ts b/sdk/constructive-react/src/usage/orm/models/plan.ts deleted file mode 100644 index 16b199389a..0000000000 --- a/sdk/constructive-react/src/usage/orm/models/plan.ts +++ /dev/null @@ -1,245 +0,0 @@ -/** - * Plan 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 { - Plan, - PlanWithRelations, - PlanSelect, - PlanFilter, - PlanOrderBy, - CreatePlanInput, - UpdatePlanInput, - PlanPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class PlanModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - plans: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'Plan', - 'plans', - 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, - }, - 'PlanFilter', - 'PlanOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'Plan', - fieldName: 'plans', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - plan: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'Plan', - 'plans', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'PlanFilter', - 'PlanOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'Plan', - fieldName: 'plan', - document, - variables, - transform: (data: { - plans?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - plan: data.plans?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - plan: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'Plan', - 'plans', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'PlanFilter', - 'PlanOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'Plan', - fieldName: 'plan', - document, - variables, - transform: (data: { - plans?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - plan: data.plans?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPlan: { - plan: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'Plan', - 'createPlan', - 'plan', - args.select, - args.data, - 'CreatePlanInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'Plan', - fieldName: 'createPlan', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - PlanPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updatePlan: { - plan: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'Plan', - 'updatePlan', - 'plan', - args.select, - args.where.id, - args.data, - 'UpdatePlanInput', - 'id', - 'planPatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'Plan', - fieldName: 'updatePlan', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deletePlan: { - plan: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'Plan', - 'deletePlan', - 'plan', - { - id: args.where.id, - }, - 'DeletePlanInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'Plan', - fieldName: 'deletePlan', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/usage/orm/models/planCap.ts b/sdk/constructive-react/src/usage/orm/models/planCap.ts deleted file mode 100644 index 2c3b676aff..0000000000 --- a/sdk/constructive-react/src/usage/orm/models/planCap.ts +++ /dev/null @@ -1,245 +0,0 @@ -/** - * PlanCap 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 { - PlanCap, - PlanCapWithRelations, - PlanCapSelect, - PlanCapFilter, - PlanCapOrderBy, - CreatePlanCapInput, - UpdatePlanCapInput, - PlanCapPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class PlanCapModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - planCaps: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'PlanCap', - 'planCaps', - 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, - }, - 'PlanCapFilter', - 'PlanCapOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'PlanCap', - fieldName: 'planCaps', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - planCap: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'PlanCap', - 'planCaps', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'PlanCapFilter', - 'PlanCapOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'PlanCap', - fieldName: 'planCap', - document, - variables, - transform: (data: { - planCaps?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - planCap: data.planCaps?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - planCap: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'PlanCap', - 'planCaps', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'PlanCapFilter', - 'PlanCapOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'PlanCap', - fieldName: 'planCap', - document, - variables, - transform: (data: { - planCaps?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - planCap: data.planCaps?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPlanCap: { - planCap: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PlanCap', - 'createPlanCap', - 'planCap', - args.select, - args.data, - 'CreatePlanCapInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlanCap', - fieldName: 'createPlanCap', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - PlanCapPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updatePlanCap: { - planCap: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'PlanCap', - 'updatePlanCap', - 'planCap', - args.select, - args.where.id, - args.data, - 'UpdatePlanCapInput', - 'id', - 'planCapPatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlanCap', - fieldName: 'updatePlanCap', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deletePlanCap: { - planCap: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'PlanCap', - 'deletePlanCap', - 'planCap', - { - id: args.where.id, - }, - 'DeletePlanCapInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlanCap', - fieldName: 'deletePlanCap', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/usage/orm/models/planLimit.ts b/sdk/constructive-react/src/usage/orm/models/planLimit.ts deleted file mode 100644 index b35f99c5e2..0000000000 --- a/sdk/constructive-react/src/usage/orm/models/planLimit.ts +++ /dev/null @@ -1,245 +0,0 @@ -/** - * PlanLimit 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 { - PlanLimit, - PlanLimitWithRelations, - PlanLimitSelect, - PlanLimitFilter, - PlanLimitOrderBy, - CreatePlanLimitInput, - UpdatePlanLimitInput, - PlanLimitPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class PlanLimitModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - planLimits: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'PlanLimit', - 'planLimits', - 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, - }, - 'PlanLimitFilter', - 'PlanLimitOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'PlanLimit', - fieldName: 'planLimits', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - planLimit: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'PlanLimit', - 'planLimits', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'PlanLimitFilter', - 'PlanLimitOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'PlanLimit', - fieldName: 'planLimit', - document, - variables, - transform: (data: { - planLimits?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - planLimit: data.planLimits?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - planLimit: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'PlanLimit', - 'planLimits', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'PlanLimitFilter', - 'PlanLimitOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'PlanLimit', - fieldName: 'planLimit', - document, - variables, - transform: (data: { - planLimits?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - planLimit: data.planLimits?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPlanLimit: { - planLimit: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PlanLimit', - 'createPlanLimit', - 'planLimit', - args.select, - args.data, - 'CreatePlanLimitInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlanLimit', - fieldName: 'createPlanLimit', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - PlanLimitPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updatePlanLimit: { - planLimit: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'PlanLimit', - 'updatePlanLimit', - 'planLimit', - args.select, - args.where.id, - args.data, - 'UpdatePlanLimitInput', - 'id', - 'planLimitPatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlanLimit', - fieldName: 'updatePlanLimit', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deletePlanLimit: { - planLimit: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'PlanLimit', - 'deletePlanLimit', - 'planLimit', - { - id: args.where.id, - }, - 'DeletePlanLimitInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlanLimit', - fieldName: 'deletePlanLimit', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/usage/orm/models/planMeterLimit.ts b/sdk/constructive-react/src/usage/orm/models/planMeterLimit.ts deleted file mode 100644 index 9e2529dafb..0000000000 --- a/sdk/constructive-react/src/usage/orm/models/planMeterLimit.ts +++ /dev/null @@ -1,245 +0,0 @@ -/** - * PlanMeterLimit 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 { - PlanMeterLimit, - PlanMeterLimitWithRelations, - PlanMeterLimitSelect, - PlanMeterLimitFilter, - PlanMeterLimitOrderBy, - CreatePlanMeterLimitInput, - UpdatePlanMeterLimitInput, - PlanMeterLimitPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class PlanMeterLimitModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - planMeterLimits: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'PlanMeterLimit', - 'planMeterLimits', - 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, - }, - 'PlanMeterLimitFilter', - 'PlanMeterLimitOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'PlanMeterLimit', - fieldName: 'planMeterLimits', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - planMeterLimit: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'PlanMeterLimit', - 'planMeterLimits', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'PlanMeterLimitFilter', - 'PlanMeterLimitOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'PlanMeterLimit', - fieldName: 'planMeterLimit', - document, - variables, - transform: (data: { - planMeterLimits?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - planMeterLimit: data.planMeterLimits?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - planMeterLimit: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'PlanMeterLimit', - 'planMeterLimits', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'PlanMeterLimitFilter', - 'PlanMeterLimitOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'PlanMeterLimit', - fieldName: 'planMeterLimit', - document, - variables, - transform: (data: { - planMeterLimits?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - planMeterLimit: data.planMeterLimits?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPlanMeterLimit: { - planMeterLimit: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PlanMeterLimit', - 'createPlanMeterLimit', - 'planMeterLimit', - args.select, - args.data, - 'CreatePlanMeterLimitInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlanMeterLimit', - fieldName: 'createPlanMeterLimit', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - PlanMeterLimitPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updatePlanMeterLimit: { - planMeterLimit: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'PlanMeterLimit', - 'updatePlanMeterLimit', - 'planMeterLimit', - args.select, - args.where.id, - args.data, - 'UpdatePlanMeterLimitInput', - 'id', - 'planMeterLimitPatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlanMeterLimit', - fieldName: 'updatePlanMeterLimit', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deletePlanMeterLimit: { - planMeterLimit: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'PlanMeterLimit', - 'deletePlanMeterLimit', - 'planMeterLimit', - { - id: args.where.id, - }, - 'DeletePlanMeterLimitInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlanMeterLimit', - fieldName: 'deletePlanMeterLimit', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/usage/orm/models/planOverride.ts b/sdk/constructive-react/src/usage/orm/models/planOverride.ts deleted file mode 100644 index d8fc2bbf51..0000000000 --- a/sdk/constructive-react/src/usage/orm/models/planOverride.ts +++ /dev/null @@ -1,245 +0,0 @@ -/** - * PlanOverride 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 { - PlanOverride, - PlanOverrideWithRelations, - PlanOverrideSelect, - PlanOverrideFilter, - PlanOverrideOrderBy, - CreatePlanOverrideInput, - UpdatePlanOverrideInput, - PlanOverridePatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class PlanOverrideModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - planOverrides: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'PlanOverride', - 'planOverrides', - 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, - }, - 'PlanOverrideFilter', - 'PlanOverrideOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'PlanOverride', - fieldName: 'planOverrides', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - planOverride: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'PlanOverride', - 'planOverrides', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'PlanOverrideFilter', - 'PlanOverrideOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'PlanOverride', - fieldName: 'planOverride', - document, - variables, - transform: (data: { - planOverrides?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - planOverride: data.planOverrides?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - planOverride: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'PlanOverride', - 'planOverrides', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'PlanOverrideFilter', - 'PlanOverrideOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'PlanOverride', - fieldName: 'planOverride', - document, - variables, - transform: (data: { - planOverrides?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - planOverride: data.planOverrides?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPlanOverride: { - planOverride: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PlanOverride', - 'createPlanOverride', - 'planOverride', - args.select, - args.data, - 'CreatePlanOverrideInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlanOverride', - fieldName: 'createPlanOverride', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - PlanOverridePatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updatePlanOverride: { - planOverride: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'PlanOverride', - 'updatePlanOverride', - 'planOverride', - args.select, - args.where.id, - args.data, - 'UpdatePlanOverrideInput', - 'id', - 'planOverridePatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlanOverride', - fieldName: 'updatePlanOverride', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deletePlanOverride: { - planOverride: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'PlanOverride', - 'deletePlanOverride', - 'planOverride', - { - id: args.where.id, - }, - 'DeletePlanOverrideInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlanOverride', - fieldName: 'deletePlanOverride', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/usage/orm/models/planPricing.ts b/sdk/constructive-react/src/usage/orm/models/planPricing.ts deleted file mode 100644 index feb19c37e0..0000000000 --- a/sdk/constructive-react/src/usage/orm/models/planPricing.ts +++ /dev/null @@ -1,245 +0,0 @@ -/** - * PlanPricing 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 { - PlanPricing, - PlanPricingWithRelations, - PlanPricingSelect, - PlanPricingFilter, - PlanPricingOrderBy, - CreatePlanPricingInput, - UpdatePlanPricingInput, - PlanPricingPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class PlanPricingModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - planPricings: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'PlanPricing', - 'planPricings', - 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, - }, - 'PlanPricingFilter', - 'PlanPricingOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'PlanPricing', - fieldName: 'planPricings', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - planPricing: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'PlanPricing', - 'planPricings', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'PlanPricingFilter', - 'PlanPricingOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'PlanPricing', - fieldName: 'planPricing', - document, - variables, - transform: (data: { - planPricings?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - planPricing: data.planPricings?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - planPricing: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'PlanPricing', - 'planPricings', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'PlanPricingFilter', - 'PlanPricingOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'PlanPricing', - fieldName: 'planPricing', - document, - variables, - transform: (data: { - planPricings?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - planPricing: data.planPricings?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPlanPricing: { - planPricing: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PlanPricing', - 'createPlanPricing', - 'planPricing', - args.select, - args.data, - 'CreatePlanPricingInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlanPricing', - fieldName: 'createPlanPricing', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - PlanPricingPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updatePlanPricing: { - planPricing: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'PlanPricing', - 'updatePlanPricing', - 'planPricing', - args.select, - args.where.id, - args.data, - 'UpdatePlanPricingInput', - 'id', - 'planPricingPatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlanPricing', - fieldName: 'updatePlanPricing', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deletePlanPricing: { - planPricing: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'PlanPricing', - 'deletePlanPricing', - 'planPricing', - { - id: args.where.id, - }, - 'DeletePlanPricingInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlanPricing', - fieldName: 'deletePlanPricing', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/usage/orm/models/planSubscription.ts b/sdk/constructive-react/src/usage/orm/models/planSubscription.ts deleted file mode 100644 index 8622e5b6ad..0000000000 --- a/sdk/constructive-react/src/usage/orm/models/planSubscription.ts +++ /dev/null @@ -1,245 +0,0 @@ -/** - * PlanSubscription 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 { - PlanSubscription, - PlanSubscriptionWithRelations, - PlanSubscriptionSelect, - PlanSubscriptionFilter, - PlanSubscriptionOrderBy, - CreatePlanSubscriptionInput, - UpdatePlanSubscriptionInput, - PlanSubscriptionPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class PlanSubscriptionModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - planSubscriptions: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'PlanSubscription', - 'planSubscriptions', - 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, - }, - 'PlanSubscriptionFilter', - 'PlanSubscriptionOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'PlanSubscription', - fieldName: 'planSubscriptions', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - planSubscription: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'PlanSubscription', - 'planSubscriptions', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'PlanSubscriptionFilter', - 'PlanSubscriptionOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'PlanSubscription', - fieldName: 'planSubscription', - document, - variables, - transform: (data: { - planSubscriptions?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - planSubscription: data.planSubscriptions?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - planSubscription: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'PlanSubscription', - 'planSubscriptions', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'PlanSubscriptionFilter', - 'PlanSubscriptionOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'PlanSubscription', - fieldName: 'planSubscription', - document, - variables, - transform: (data: { - planSubscriptions?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - planSubscription: data.planSubscriptions?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPlanSubscription: { - planSubscription: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PlanSubscription', - 'createPlanSubscription', - 'planSubscription', - args.select, - args.data, - 'CreatePlanSubscriptionInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlanSubscription', - fieldName: 'createPlanSubscription', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - PlanSubscriptionPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updatePlanSubscription: { - planSubscription: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'PlanSubscription', - 'updatePlanSubscription', - 'planSubscription', - args.select, - args.where.id, - args.data, - 'UpdatePlanSubscriptionInput', - 'id', - 'planSubscriptionPatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlanSubscription', - fieldName: 'updatePlanSubscription', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deletePlanSubscription: { - planSubscription: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'PlanSubscription', - 'deletePlanSubscription', - 'planSubscription', - { - id: args.where.id, - }, - 'DeletePlanSubscriptionInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlanSubscription', - fieldName: 'deletePlanSubscription', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/usage/orm/mutation/index.ts b/sdk/constructive-react/src/usage/orm/mutation/index.ts index d573aa713c..4c768de780 100644 --- a/sdk/constructive-react/src/usage/orm/mutation/index.ts +++ b/sdk/constructive-react/src/usage/orm/mutation/index.ts @@ -7,112 +7,48 @@ import { OrmClient } from '../client'; import { QueryBuilder, buildCustomDocument } from '../query-builder'; import type { InferSelectResult, StrictSelect } from '../select-types'; import type { - GrantAchievementInput, ProvisionBucketInput, - RecomputeCapabilitiesInput, - RevokeAchievementInput, SeedAppLimitCapsDefaultsInput, SeedAppLimitDefaultsInput, - SeedMeterDefaultsInput, SeedOrgLimitCapsDefaultsInput, SeedOrgLimitDefaultsInput, - SeedPlanInput, - SeedTrustLadderInput, - GrantAchievementPayload, ProvisionBucketPayload, - RecomputeCapabilitiesPayload, - RevokeAchievementPayload, SeedAppLimitCapsDefaultsPayload, SeedAppLimitDefaultsPayload, - SeedMeterDefaultsPayload, SeedOrgLimitCapsDefaultsPayload, SeedOrgLimitDefaultsPayload, - SeedPlanPayload, - SeedTrustLadderPayload, - GrantAchievementPayloadSelect, ProvisionBucketPayloadSelect, - RecomputeCapabilitiesPayloadSelect, - RevokeAchievementPayloadSelect, SeedAppLimitCapsDefaultsPayloadSelect, SeedAppLimitDefaultsPayloadSelect, - SeedMeterDefaultsPayloadSelect, SeedOrgLimitCapsDefaultsPayloadSelect, SeedOrgLimitDefaultsPayloadSelect, - SeedPlanPayloadSelect, - SeedTrustLadderPayloadSelect, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; -export interface GrantAchievementVariables { - input: GrantAchievementInput; -} /** * Variables for provisionBucket - * 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. + * Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. */ export interface ProvisionBucketVariables { input: ProvisionBucketInput; } -export interface RecomputeCapabilitiesVariables { - input: RecomputeCapabilitiesInput; -} -export interface RevokeAchievementVariables { - input: RevokeAchievementInput; -} export interface SeedAppLimitCapsDefaultsVariables { input: SeedAppLimitCapsDefaultsInput; } export interface SeedAppLimitDefaultsVariables { input: SeedAppLimitDefaultsInput; } -export interface SeedMeterDefaultsVariables { - input: SeedMeterDefaultsInput; -} export interface SeedOrgLimitCapsDefaultsVariables { input: SeedOrgLimitCapsDefaultsInput; } export interface SeedOrgLimitDefaultsVariables { input: SeedOrgLimitDefaultsInput; } -export interface SeedPlanVariables { - input: SeedPlanInput; -} -export interface SeedTrustLadderVariables { - input: SeedTrustLadderInput; -} export function createMutationOperations(client: OrmClient) { return { - grantAchievement: ( - args: GrantAchievementVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - grantAchievement: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'GrantAchievement', - fieldName: 'grantAchievement', - ...buildCustomDocument( - 'mutation', - 'GrantAchievement', - 'grantAchievement', - options.select, - args, - [ - { - name: 'input', - type: 'GrantAchievementInput!', - }, - ], - connectionFieldsMap, - 'GrantAchievementPayload' - ), - }), provisionBucket: ( args: ProvisionBucketVariables, options: { @@ -142,64 +78,6 @@ export function createMutationOperations(client: OrmClient) { 'ProvisionBucketPayload' ), }), - recomputeCapabilities: ( - args: RecomputeCapabilitiesVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - recomputeCapabilities: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'RecomputeCapabilities', - fieldName: 'recomputeCapabilities', - ...buildCustomDocument( - 'mutation', - 'RecomputeCapabilities', - 'recomputeCapabilities', - options.select, - args, - [ - { - name: 'input', - type: 'RecomputeCapabilitiesInput!', - }, - ], - connectionFieldsMap, - 'RecomputeCapabilitiesPayload' - ), - }), - revokeAchievement: ( - args: RevokeAchievementVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - revokeAchievement: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'RevokeAchievement', - fieldName: 'revokeAchievement', - ...buildCustomDocument( - 'mutation', - 'RevokeAchievement', - 'revokeAchievement', - options.select, - args, - [ - { - name: 'input', - type: 'RevokeAchievementInput!', - }, - ], - connectionFieldsMap, - 'RevokeAchievementPayload' - ), - }), seedAppLimitCapsDefaults: ( args: SeedAppLimitCapsDefaultsVariables, options: { @@ -258,35 +136,6 @@ export function createMutationOperations(client: OrmClient) { 'SeedAppLimitDefaultsPayload' ), }), - seedMeterDefaults: ( - args: SeedMeterDefaultsVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - seedMeterDefaults: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'SeedMeterDefaults', - fieldName: 'seedMeterDefaults', - ...buildCustomDocument( - 'mutation', - 'SeedMeterDefaults', - 'seedMeterDefaults', - options.select, - args, - [ - { - name: 'input', - type: 'SeedMeterDefaultsInput!', - }, - ], - connectionFieldsMap, - 'SeedMeterDefaultsPayload' - ), - }), seedOrgLimitCapsDefaults: ( args: SeedOrgLimitCapsDefaultsVariables, options: { @@ -345,63 +194,5 @@ export function createMutationOperations(client: OrmClient) { 'SeedOrgLimitDefaultsPayload' ), }), - seedPlan: ( - args: SeedPlanVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - seedPlan: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'SeedPlan', - fieldName: 'seedPlan', - ...buildCustomDocument( - 'mutation', - 'SeedPlan', - 'seedPlan', - options.select, - args, - [ - { - name: 'input', - type: 'SeedPlanInput!', - }, - ], - connectionFieldsMap, - 'SeedPlanPayload' - ), - }), - seedTrustLadder: ( - args: SeedTrustLadderVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - seedTrustLadder: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'SeedTrustLadder', - fieldName: 'seedTrustLadder', - ...buildCustomDocument( - 'mutation', - 'SeedTrustLadder', - 'seedTrustLadder', - options.select, - args, - [ - { - name: 'input', - type: 'SeedTrustLadderInput!', - }, - ], - connectionFieldsMap, - 'SeedTrustLadderPayload' - ), - }), }; } diff --git a/sdk/constructive-react/src/usage/orm/query/index.ts b/sdk/constructive-react/src/usage/orm/query/index.ts index d620b32b26..4972b387c7 100644 --- a/sdk/constructive-react/src/usage/orm/query/index.ts +++ b/sdk/constructive-react/src/usage/orm/query/index.ts @@ -6,25 +6,7 @@ import { OrmClient } from '../client'; import { QueryBuilder, buildCustomDocument } from '../query-builder'; import type { InferSelectResult, StrictSelect } from '../select-types'; -import type { AppLevelRequirementConnection } from '../input-types'; import { connectionFieldsMap } from '../input-types'; -export interface EventsAchievedVariables { - level?: string; - roleId?: string; -} -export interface EventsRequiredVariables { - /** Read all values in the set after (below) this cursor. */ - after?: string; - /** Only read the first `n` values of the set. */ - first?: number; - level?: string; - /** - * Skip the first `n` values from our `after` cursor, an alternative to cursor - * based pagination. May not be used with `last`. - */ - offset?: number; - roleId?: string; -} export function createQueryOperations(client: OrmClient) { return { captureAppLimitDefaults: (options?: { select?: Record }) => @@ -65,102 +47,5 @@ export function createQueryOperations(client: OrmClient) { undefined ), }), - captureTrustLadder: (options?: { select?: Record }) => - new QueryBuilder<{ - captureTrustLadder: unknown | null; - }>({ - client, - operation: 'query', - operationName: 'CaptureTrustLadder', - fieldName: 'captureTrustLadder', - ...buildCustomDocument( - 'query', - 'CaptureTrustLadder', - 'captureTrustLadder', - options?.select, - undefined, - [], - connectionFieldsMap, - undefined - ), - }), - eventsAchieved: ( - args: EventsAchievedVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - eventsAchieved: boolean | null; - }>({ - client, - operation: 'query', - operationName: 'EventsAchieved', - fieldName: 'eventsAchieved', - ...buildCustomDocument( - 'query', - 'EventsAchieved', - 'eventsAchieved', - options?.select, - args, - [ - { - name: 'level', - type: 'String', - }, - { - name: 'roleId', - type: 'UUID', - }, - ], - connectionFieldsMap, - undefined - ), - }), - eventsRequired: ( - args: EventsRequiredVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - eventsRequired: AppLevelRequirementConnection | null; - }>({ - client, - operation: 'query', - operationName: 'EventsRequired', - fieldName: 'eventsRequired', - ...buildCustomDocument( - 'query', - 'EventsRequired', - 'eventsRequired', - options?.select, - args, - [ - { - name: 'after', - type: 'Cursor', - }, - { - name: 'first', - type: 'Int', - }, - { - name: 'level', - type: 'String', - }, - { - name: 'offset', - type: 'Int', - }, - { - name: 'roleId', - type: 'UUID', - }, - ], - connectionFieldsMap, - undefined - ), - }), }; } diff --git a/sdk/constructive-react/src/usage/schema-types.ts b/sdk/constructive-react/src/usage/schema-types.ts index e26701d7bd..eb30027988 100644 --- a/sdk/constructive-react/src/usage/schema-types.ts +++ b/sdk/constructive-react/src/usage/schema-types.ts @@ -5,13 +5,6 @@ */ import type { - AppAchievementReward, - AppEvent, - AppEventAggregate, - AppEventType, - AppLevel, - AppLevelGrant, - AppLevelRequirement, AppLimit, AppLimitCap, AppLimitCapsDefault, @@ -22,12 +15,6 @@ import type { AppLimitDefault, AppLimitEvent, AppLimitWarning, - BillingUsageSummary, - Ledger, - Meter, - MeterCredit, - MeterDefault, - MeterSource, OrgLimit, OrgLimitAggregate, OrgLimitCap, @@ -36,13 +23,6 @@ import type { OrgLimitDefault, OrgLimitEvent, OrgLimitWarning, - Plan, - PlanCap, - PlanLimit, - PlanMeterLimit, - PlanOverride, - PlanPricing, - PlanSubscription, BigFloatFilter, BigIntFilter, BitStringFilter, @@ -61,152 +41,6 @@ import type { UUIDListFilter, VectorFilter, } from './types'; -export type ConstructiveInternalTypeImage = unknown; -/** Methods to use when ordering `AppAchievementReward`. */ -export type AppAchievementRewardOrderBy = - | 'AMOUNT_ASC' - | 'AMOUNT_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'CREDIT_TYPE_ASC' - | 'CREDIT_TYPE_DESC' - | 'EXPIRES_INTERVAL_ASC' - | 'EXPIRES_INTERVAL_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'LEVEL_NAME_ASC' - | 'LEVEL_NAME_DESC' - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'REWARD_TYPE_ASC' - | 'REWARD_TYPE_DESC' - | 'TARGET_NAME_ASC' - | 'TARGET_NAME_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `AppEventAggregate`. */ -export type AppEventAggregateOrderBy = - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'COUNT_ASC' - | 'COUNT_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'NATURAL' - | 'PERIOD_START_ASC' - | 'PERIOD_START_DESC' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `AppEvent`. */ -export type AppEventOrderBy = - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'COUNT_ASC' - | 'COUNT_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC'; -/** Methods to use when ordering `AppEventType`. */ -export type AppEventTypeOrderBy = - | 'AGGREGATION_ASC' - | 'AGGREGATION_DESC' - | 'CATEGORY_ASC' - | 'CATEGORY_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'FEEDS_LEVELS_ASC' - | 'FEEDS_LEVELS_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'IS_ACTIVE_ASC' - | 'IS_ACTIVE_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'NATURAL' - | 'PERIOD_INTERVAL_ASC' - | 'PERIOD_INTERVAL_DESC' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `AppLevelGrant`. */ -export type AppLevelGrantOrderBy = - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'EXPIRES_AT_ASC' - | 'EXPIRES_AT_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'LEVEL_NAME_ASC' - | 'LEVEL_NAME_DESC' - | 'NATURAL' - | 'PERIOD_START_ASC' - | 'PERIOD_START_DESC' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `AppLevel`. */ -export type AppLevelOrderBy = - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'IMAGE_ASC' - | 'IMAGE_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'NATURAL' - | 'OWNER_ID_ASC' - | 'OWNER_ID_DESC' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `AppLevelRequirement`. */ -export type AppLevelRequirementOrderBy = - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'GROUP_KEY_ASC' - | 'GROUP_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'LEVEL_ASC' - | 'LEVEL_DESC' - | 'METRIC_ASC' - | 'METRIC_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'PRIORITY_ASC' - | 'PRIORITY_DESC' - | 'REQUIRED_COUNT_ASC' - | 'REQUIRED_COUNT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; /** Methods to use when ordering `AppLimitCap`. */ export type AppLimitCapOrderBy = | 'ENTITY_ID_ASC' @@ -383,152 +217,6 @@ export type AppLimitWarningOrderBy = | 'THRESHOLD_VALUE_DESC' | 'WARNING_TYPE_ASC' | 'WARNING_TYPE_DESC'; -/** Methods to use when ordering `BillingUsageSummary`. */ -export type BillingUsageSummaryOrderBy = - | 'CREDITS_CONSUMED_ASC' - | 'CREDITS_CONSUMED_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'ENTITY_TYPE_ASC' - | 'ENTITY_TYPE_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'METER_SLUG_ASC' - | 'METER_SLUG_DESC' - | 'NATURAL' - | 'ORGANIZATION_ID_ASC' - | 'ORGANIZATION_ID_DESC' - | 'OVERAGE_UNITS_ASC' - | 'OVERAGE_UNITS_DESC' - | 'PERIOD_END_ASC' - | 'PERIOD_END_DESC' - | 'PERIOD_START_ASC' - | 'PERIOD_START_DESC' - | 'PLAN_LIMIT_ASC' - | 'PLAN_LIMIT_DESC' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'QUANTITY_USED_ASC' - | 'QUANTITY_USED_DESC'; -/** Methods to use when ordering `Ledger`. */ -export type LedgerOrderBy = - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'DELTA_ASC' - | 'DELTA_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'ENTITY_TYPE_ASC' - | 'ENTITY_TYPE_DESC' - | 'ENTRY_TYPE_ASC' - | 'ENTRY_TYPE_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'LEDGER_CLASS_ASC' - | 'LEDGER_CLASS_DESC' - | 'METADATA_ASC' - | 'METADATA_DESC' - | 'METER_SLUG_ASC' - | 'METER_SLUG_DESC' - | 'NATURAL' - | 'ORGANIZATION_ID_ASC' - | 'ORGANIZATION_ID_DESC' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'USAGE_AFTER_ASC' - | 'USAGE_AFTER_DESC'; -/** Methods to use when ordering `MeterCredit`. */ -export type MeterCreditOrderBy = - | 'AMOUNT_ASC' - | 'AMOUNT_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'CREDIT_TYPE_ASC' - | 'CREDIT_TYPE_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'ENTITY_TYPE_ASC' - | 'ENTITY_TYPE_DESC' - | 'EXPIRES_AT_ASC' - | 'EXPIRES_AT_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'METER_ID_ASC' - | 'METER_ID_DESC' - | 'NATURAL' - | 'ORGANIZATION_ID_ASC' - | 'ORGANIZATION_ID_DESC' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'REASON_ASC' - | 'REASON_DESC'; -/** Methods to use when ordering `MeterDefault`. */ -export type MeterDefaultOrderBy = - | 'CATEGORY_METER_ASC' - | 'CATEGORY_METER_DESC' - | 'CREDIT_COST_ASC' - | 'CREDIT_COST_DESC' - | 'DEFAULT_PLAN_LIMIT_ASC' - | 'DEFAULT_PLAN_LIMIT_DESC' - | 'DISPLAY_NAME_ASC' - | 'DISPLAY_NAME_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'IS_ACTIVE_ASC' - | 'IS_ACTIVE_DESC' - | 'METER_TYPE_ASC' - | 'METER_TYPE_DESC' - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'SLUG_ASC' - | 'SLUG_DESC' - | 'UNIT_ASC' - | 'UNIT_DESC'; -/** Methods to use when ordering `Meter`. */ -export type MeterOrderBy = - | 'AGGREGATION_ASC' - | 'AGGREGATION_DESC' - | 'CATEGORY_METER_ASC' - | 'CATEGORY_METER_DESC' - | 'CREDIT_COST_ASC' - | 'CREDIT_COST_DESC' - | 'DISPLAY_NAME_ASC' - | 'DISPLAY_NAME_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'IS_ACTIVE_ASC' - | 'IS_ACTIVE_DESC' - | 'METER_TYPE_ASC' - | 'METER_TYPE_DESC' - | 'NATURAL' - | 'PERIOD_INTERVAL_ASC' - | 'PERIOD_INTERVAL_DESC' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ROLLOVER_CAP_ASC' - | 'ROLLOVER_CAP_DESC' - | 'SLUG_ASC' - | 'SLUG_DESC' - | 'UNIT_ASC' - | 'UNIT_DESC'; -/** Methods to use when ordering `MeterSource`. */ -export type MeterSourceOrderBy = - | 'AGGREGATION_TYPE_ASC' - | 'AGGREGATION_TYPE_DESC' - | 'DIMENSION_PATH_ASC' - | 'DIMENSION_PATH_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'IS_ACTIVE_ASC' - | 'IS_ACTIVE_DESC' - | 'METER_SLUG_ASC' - | 'METER_SLUG_DESC' - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'SOURCE_METRIC_ASC' - | 'SOURCE_METRIC_DESC'; /** Methods to use when ordering `OrgLimitAggregate`. */ export type OrgLimitAggregateOrderBy = | 'ENTITY_ID_ASC' @@ -703,574 +391,72 @@ export type OrgLimitWarningOrderBy = | 'THRESHOLD_VALUE_DESC' | 'WARNING_TYPE_ASC' | 'WARNING_TYPE_DESC'; -/** Methods to use when ordering `PlanCap`. */ -export type PlanCapOrderBy = - | 'CAP_NAME_ASC' - | 'CAP_NAME_DESC' - | 'CAP_VALUE_ASC' - | 'CAP_VALUE_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NATURAL' - | 'PLAN_ID_ASC' - | 'PLAN_ID_DESC' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC'; -/** Methods to use when ordering `PlanLimit`. */ -export type PlanLimitOrderBy = - | 'ID_ASC' - | 'ID_DESC' - | 'LIMIT_NAME_ASC' - | 'LIMIT_NAME_DESC' - | 'MAX_VALUE_ASC' - | 'MAX_VALUE_DESC' - | 'NATURAL' - | 'PLAN_ID_ASC' - | 'PLAN_ID_DESC' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC'; -/** Methods to use when ordering `PlanMeterLimit`. */ -export type PlanMeterLimitOrderBy = - | 'ID_ASC' - | 'ID_DESC' - | 'METER_SLUG_ASC' - | 'METER_SLUG_DESC' - | 'NATURAL' - | 'PLAN_ID_ASC' - | 'PLAN_ID_DESC' - | 'PLAN_LIMIT_ASC' - | 'PLAN_LIMIT_DESC' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC'; -/** Methods to use when ordering `Plan`. */ -export type PlanOrderBy = - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'IS_ACTIVE_ASC' - | 'IS_ACTIVE_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC'; -/** Methods to use when ordering `PlanOverride`. */ -export type PlanOverrideOrderBy = - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'EXPIRES_AT_ASC' - | 'EXPIRES_AT_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'LIMIT_NAME_ASC' - | 'LIMIT_NAME_DESC' - | 'MAX_VALUE_ASC' - | 'MAX_VALUE_DESC' - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'REASON_ASC' - | 'REASON_DESC'; -/** Methods to use when ordering `PlanPricing`. */ -export type PlanPricingOrderBy = - | 'BILLING_INTERVAL_ASC' - | 'BILLING_INTERVAL_DESC' - | 'CURRENCY_ASC' - | 'CURRENCY_DESC' - | 'DISCOUNT_PERCENT_ASC' - | 'DISCOUNT_PERCENT_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'IS_ACTIVE_ASC' - | 'IS_ACTIVE_DESC' - | 'NATURAL' - | 'PLAN_ID_ASC' - | 'PLAN_ID_DESC' - | 'PRICE_ASC' - | 'PRICE_DESC' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC'; -/** Methods to use when ordering `PlanSubscription`. */ -export type PlanSubscriptionOrderBy = - | 'ENDS_AT_ASC' - | 'ENDS_AT_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'ENTITY_TYPE_ASC' - | 'ENTITY_TYPE_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'IS_ACTIVE_ASC' - | 'IS_ACTIVE_DESC' - | 'NATURAL' - | 'ORGANIZATION_ID_ASC' - | 'ORGANIZATION_ID_DESC' - | 'PLAN_ID_ASC' - | 'PLAN_ID_DESC' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'STARTS_AT_ASC' - | 'STARTS_AT_DESC'; -/** A filter to be used against `AppAchievementReward` object types. All fields are combined with a logical ‘and.’ */ -export interface AppAchievementRewardFilter { - /** Filter by the object’s `amount` field. */ - amount?: IntFilter; - /** Checks for all expressions in this list. */ - and?: AppAchievementRewardFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `creditType` field. */ - creditType?: StringFilter; - /** Filter by the object’s `expiresInterval` field. */ - expiresInterval?: IntervalFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `levelName` field. */ - levelName?: StringFilter; - /** Negates the expression. */ - not?: AppAchievementRewardFilter; - /** Checks for any expressions in this list. */ - or?: AppAchievementRewardFilter[]; - /** Filter by the object’s `rewardType` field. */ - rewardType?: StringFilter; - /** Filter by the object’s `targetName` field. */ - targetName?: StringFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -/** An input for mutations affecting `AppAchievementReward` */ -export interface AppAchievementRewardInput { - /** Number of credits to grant; unused by capability rewards */ - amount?: number; - createdAt?: string; - /** Credit type: permanent, expiring, etc. */ - creditType?: string; - /** Optional duration after which the granted credit expires; NULL means never expires */ - expiresInterval?: IntervalInput; - id?: string; - /** Name of the level this reward is granted for */ - levelName: string; - /** Type of reward: limit_credit, meter_credit, or capability */ - rewardType: string; - /** Target limit name, meter slug, or capability catalog name */ - targetName: string; - updatedAt?: string; -} -/** Represents an update to a `AppAchievementReward`. Fields that are set will be updated. */ -export interface AppAchievementRewardPatch { - /** Number of credits to grant; unused by capability rewards */ - amount?: number; - createdAt?: string; - /** Credit type: permanent, expiring, etc. */ - creditType?: string; - /** Optional duration after which the granted credit expires; NULL means never expires */ - expiresInterval?: IntervalInput; - id?: string; - /** Name of the level this reward is granted for */ - levelName?: string; - /** Type of reward: limit_credit, meter_credit, or capability */ - rewardType?: string; - /** Target limit name, meter slug, or capability catalog name */ - targetName?: string; - updatedAt?: string; -} -/** A filter to be used against `AppEventAggregate` object types. All fields are combined with a logical ‘and.’ */ -export interface AppEventAggregateFilter { - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; +/** A filter to be used against `AppLimitCap` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitCapFilter { /** Checks for all expressions in this list. */ - and?: AppEventAggregateFilter[]; - /** Filter by the object’s `count` field. */ - count?: IntFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; + and?: AppLimitCapFilter[]; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; /** Negates the expression. */ - not?: AppEventAggregateFilter; + not?: AppLimitCapFilter; /** Checks for any expressions in this list. */ - or?: AppEventAggregateFilter[]; - /** Filter by the object’s `periodStart` field. */ - periodStart?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -/** An input for mutations affecting `AppEventAggregate` */ -export interface AppEventAggregateInput { - actorId?: string; - /** Cumulative count of completed steps toward this requirement */ - count?: number; - createdAt?: string; + or?: AppLimitCapFilter[]; +} +/** An input for mutations affecting `AppLimitCap` */ +export interface AppLimitCapInput { + /** Entity this cap override applies to */ + entityId: string; id?: string; - /** Name identifier of the level requirement being tracked */ + /** Override cap value for this entity */ + max?: string; + /** Name identifier of the cap being overridden */ name: string; - /** Start of current counting period; NULL means lifetime counting */ - periodStart?: string; - updatedAt?: string; } -/** Represents an update to a `AppEventAggregate`. Fields that are set will be updated. */ -export interface AppEventAggregatePatch { - actorId?: string; - /** Cumulative count of completed steps toward this requirement */ - count?: number; - createdAt?: string; +/** Represents an update to a `AppLimitCap`. Fields that are set will be updated. */ +export interface AppLimitCapPatch { + /** Entity this cap override applies to */ + entityId?: string; id?: string; - /** Name identifier of the level requirement being tracked */ + /** Override cap value for this entity */ + max?: string; + /** Name identifier of the cap being overridden */ name?: string; - /** Start of current counting period; NULL means lifetime counting */ - periodStart?: string; - updatedAt?: string; } -/** A filter to be used against `AppEvent` object types. All fields are combined with a logical ‘and.’ */ -export interface AppEventFilter { - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; +/** A filter to be used against `AppLimitCapsDefault` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitCapsDefaultFilter { /** Checks for all expressions in this list. */ - and?: AppEventFilter[]; - /** Filter by the object’s `count` field. */ - count?: IntFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; + and?: AppLimitCapsDefaultFilter[]; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; /** Negates the expression. */ - not?: AppEventFilter; + not?: AppLimitCapsDefaultFilter; /** Checks for any expressions in this list. */ - or?: AppEventFilter[]; + or?: AppLimitCapsDefaultFilter[]; } -/** An input for mutations affecting `AppEvent` */ -export interface AppEventInput { - actorId?: string; - /** Number of units completed in this step action */ - count?: number; - createdAt?: string; - /** Unique identifier for each event (uuidv7 provides temporal ordering) */ +/** An input for mutations affecting `AppLimitCapsDefault` */ +export interface AppLimitCapsDefaultInput { id?: string; - /** Name identifier of the level requirement this step fulfills */ + /** Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. */ + max?: string; + /** Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) */ name: string; } -/** Represents an update to a `AppEvent`. Fields that are set will be updated. */ -export interface AppEventPatch { - actorId?: string; - /** Number of units completed in this step action */ - count?: number; - createdAt?: string; - /** Unique identifier for each event (uuidv7 provides temporal ordering) */ +/** Represents an update to a `AppLimitCapsDefault`. Fields that are set will be updated. */ +export interface AppLimitCapsDefaultPatch { id?: string; - /** Name identifier of the level requirement this step fulfills */ - name?: string; -} -/** A filter to be used against `AppEventType` object types. All fields are combined with a logical ‘and.’ */ -export interface AppEventTypeFilter { - /** Filter by the object’s `aggregation` field. */ - aggregation?: StringFilter; - /** Checks for all expressions in this list. */ - and?: AppEventTypeFilter[]; - /** Filter by the object’s `category` field. */ - category?: StringFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `feedsLevels` field. */ - feedsLevels?: BooleanFilter; - /** 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?: AppEventTypeFilter; - /** Checks for any expressions in this list. */ - or?: AppEventTypeFilter[]; - /** Filter by the object’s `periodInterval` field. */ - periodInterval?: IntervalFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -/** An input for mutations affecting `AppEventType` */ -export interface AppEventTypeInput { - /** Aggregation mode: count, sum, last_value, or none */ - aggregation?: string; - /** Grouping category: onboarding, engagement, analytics, commerce, etc. */ - category?: string; - createdAt?: string; - /** Human-readable description of this event type */ - description?: string; - /** Whether this event type participates in the levels/badge system by updating aggregates */ - feedsLevels?: boolean; - id?: string; - /** Whether recording of this event type is enabled */ - isActive?: boolean; - /** Unique name identifier for this event type */ - name: string; - /** Optional period for aggregate count reset; NULL means lifetime counting */ - periodInterval?: IntervalInput; - updatedAt?: string; -} -/** Represents an update to a `AppEventType`. Fields that are set will be updated. */ -export interface AppEventTypePatch { - /** Aggregation mode: count, sum, last_value, or none */ - aggregation?: string; - /** Grouping category: onboarding, engagement, analytics, commerce, etc. */ - category?: string; - createdAt?: string; - /** Human-readable description of this event type */ - description?: string; - /** Whether this event type participates in the levels/badge system by updating aggregates */ - feedsLevels?: boolean; - id?: string; - /** Whether recording of this event type is enabled */ - isActive?: boolean; - /** Unique name identifier for this event type */ - name?: string; - /** Optional period for aggregate count reset; NULL means lifetime counting */ - periodInterval?: IntervalInput; - updatedAt?: string; -} -/** A filter to be used against `AppLevel` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLevelFilter { - /** Checks for all expressions in this list. */ - and?: AppLevelFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `image` field. */ - image?: ConstructiveInternalTypeImageFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Negates the expression. */ - not?: AppLevelFilter; - /** Checks for any expressions in this list. */ - or?: AppLevelFilter[]; - /** Filter by the object’s `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -/** A filter to be used against `AppLevelGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLevelGrantFilter { - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: AppLevelGrantFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `expiresAt` field. */ - expiresAt?: DatetimeFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `levelName` field. */ - levelName?: StringFilter; - /** Negates the expression. */ - not?: AppLevelGrantFilter; - /** Checks for any expressions in this list. */ - or?: AppLevelGrantFilter[]; - /** Filter by the object’s `periodStart` field. */ - periodStart?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -/** An input for mutations affecting `AppLevelGrant` */ -export interface AppLevelGrantInput { - actorId?: string; - createdAt?: string; - /** When this grant lapses; NULL means it holds until revoked */ - expiresAt?: string; - id?: string; - /** Name of the level that was achieved */ - levelName: string; - /** Period start for periodic achievements; -infinity for non-periodic (earn-once) */ - periodStart?: string; - updatedAt?: string; -} -/** Represents an update to a `AppLevelGrant`. Fields that are set will be updated. */ -export interface AppLevelGrantPatch { - actorId?: string; - createdAt?: string; - /** When this grant lapses; NULL means it holds until revoked */ - expiresAt?: string; - id?: string; - /** Name of the level that was achieved */ - levelName?: string; - /** Period start for periodic achievements; -infinity for non-periodic (earn-once) */ - periodStart?: string; - updatedAt?: string; -} -/** An input for mutations affecting `AppLevel` */ -export interface AppLevelInput { - createdAt?: string; - /** Human-readable description of what this level represents */ - description?: string; - id?: string; - /** Badge or icon image associated with this level */ - image?: ConstructiveInternalTypeImage; - /** Unique name of the level */ - name: string; - /** Optional owner (actor) who created or manages this level */ - ownerId?: string; - updatedAt?: string; -} -/** Represents an update to a `AppLevel`. Fields that are set will be updated. */ -export interface AppLevelPatch { - createdAt?: string; - /** Human-readable description of what this level represents */ - description?: string; - id?: string; - /** Badge or icon image associated with this level */ - image?: ConstructiveInternalTypeImage; - /** Upload for Badge or icon image associated with this level */ - imageUpload?: File; - /** Unique name of the level */ - name?: string; - /** Optional owner (actor) who created or manages this level */ - ownerId?: string; - updatedAt?: string; -} -/** A filter to be used against `AppLevelRequirement` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLevelRequirementFilter { - /** Checks for all expressions in this list. */ - and?: AppLevelRequirementFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `groupKey` field. */ - groupKey?: StringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `level` field. */ - level?: StringFilter; - /** Filter by the object’s `metric` field. */ - metric?: StringFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Negates the expression. */ - not?: AppLevelRequirementFilter; - /** Checks for any expressions in this list. */ - or?: AppLevelRequirementFilter[]; - /** Filter by the object’s `priority` field. */ - priority?: IntFilter; - /** Filter by the object’s `requiredCount` field. */ - requiredCount?: IntFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -/** An input for mutations affecting `AppLevelRequirement` */ -export interface AppLevelRequirementInput { - createdAt?: string; - /** Human-readable description of what this requirement entails */ - description?: string; - /** Requirements of a level sharing this key satisfy it as alternatives; NULL requires this one on its own */ - groupKey?: string; - id?: string; - /** Name of the level this requirement belongs to */ - level: string; - /** Computed signal to compare against required_count instead of an event count; currently only account_age_days */ - metric?: string; - /** Name identifier of the requirement (matches step names) */ - name: string; - /** Display ordering priority; lower values appear first */ - priority?: number; - /** Number of steps needed to satisfy this requirement */ - requiredCount?: number; - updatedAt?: string; -} -/** Represents an update to a `AppLevelRequirement`. Fields that are set will be updated. */ -export interface AppLevelRequirementPatch { - createdAt?: string; - /** Human-readable description of what this requirement entails */ - description?: string; - /** Requirements of a level sharing this key satisfy it as alternatives; NULL requires this one on its own */ - groupKey?: string; - id?: string; - /** Name of the level this requirement belongs to */ - level?: string; - /** Computed signal to compare against required_count instead of an event count; currently only account_age_days */ - metric?: string; - /** Name identifier of the requirement (matches step names) */ - name?: string; - /** Display ordering priority; lower values appear first */ - priority?: number; - /** Number of steps needed to satisfy this requirement */ - requiredCount?: number; - updatedAt?: string; -} -/** A filter to be used against `AppLimitCap` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCapFilter { - /** Checks for all expressions in this list. */ - and?: AppLimitCapFilter[]; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Negates the expression. */ - not?: AppLimitCapFilter; - /** Checks for any expressions in this list. */ - or?: AppLimitCapFilter[]; -} -/** An input for mutations affecting `AppLimitCap` */ -export interface AppLimitCapInput { - /** Entity this cap override applies to */ - entityId: string; - id?: string; - /** Override cap value for this entity */ - max?: string; - /** Name identifier of the cap being overridden */ - name: string; -} -/** Represents an update to a `AppLimitCap`. Fields that are set will be updated. */ -export interface AppLimitCapPatch { - /** Entity this cap override applies to */ - entityId?: string; - id?: string; - /** Override cap value for this entity */ - max?: string; - /** Name identifier of the cap being overridden */ - name?: string; -} -/** A filter to be used against `AppLimitCapsDefault` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCapsDefaultFilter { - /** Checks for all expressions in this list. */ - and?: AppLimitCapsDefaultFilter[]; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Negates the expression. */ - not?: AppLimitCapsDefaultFilter; - /** Checks for any expressions in this list. */ - or?: AppLimitCapsDefaultFilter[]; -} -/** An input for mutations affecting `AppLimitCapsDefault` */ -export interface AppLimitCapsDefaultInput { - id?: string; - /** Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. */ - max?: string; - /** Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) */ - name: string; -} -/** Represents an update to a `AppLimitCapsDefault`. Fields that are set will be updated. */ -export interface AppLimitCapsDefaultPatch { - id?: string; - /** Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. */ - max?: string; - /** Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) */ + /** Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. */ + max?: string; + /** Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) */ name?: string; } /** A filter to be used against `AppLimitCreditCode` object types. All fields are combined with a logical ‘and.’ */ @@ -1773,155 +959,6 @@ export interface AppLimitWarningPatch { /** Threshold type: absolute (fixed count) or percentage (of max) */ warningType?: string; } -/** A filter to be used against `BillingUsageSummary` object types. All fields are combined with a logical ‘and.’ */ -export interface BillingUsageSummaryFilter { - /** Checks for all expressions in this list. */ - and?: BillingUsageSummaryFilter[]; - /** Filter by the object’s `creditsConsumed` field. */ - creditsConsumed?: BigIntFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `entityType` field. */ - entityType?: StringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `meterSlug` field. */ - meterSlug?: StringFilter; - /** Negates the expression. */ - not?: BillingUsageSummaryFilter; - /** Checks for any expressions in this list. */ - or?: BillingUsageSummaryFilter[]; - /** Filter by the object’s `organizationId` field. */ - organizationId?: UUIDFilter; - /** Filter by the object’s `overageUnits` field. */ - overageUnits?: BigIntFilter; - /** Filter by the object’s `periodEnd` field. */ - periodEnd?: DatetimeFilter; - /** Filter by the object’s `periodStart` field. */ - periodStart?: DatetimeFilter; - /** Filter by the object’s `planLimit` field. */ - planLimit?: BigIntFilter; - /** Filter by the object’s `quantityUsed` field. */ - quantityUsed?: BigIntFilter; -} -/** An input for mutations affecting `BillingUsageSummary` */ -export interface BillingUsageSummaryInput { - /** Universal credits consumed during this period */ - creditsConsumed?: string; - /** The entity (org, team, user) this summary belongs to */ - entityId: string; - /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */ - entityType?: string; - id?: string; - /** Which meter this summary tracks */ - meterSlug: string; - /** Resolved billable organization via get_organization_id */ - organizationId?: string; - /** Units consumed beyond the plan limit (quantity_used - plan_limit when positive) */ - overageUnits?: string; - /** End of the billing period this summary covers */ - periodEnd: string; - /** Start of the billing period this summary covers */ - periodStart: string; - /** Plan limit that was in effect during this period */ - planLimit?: string; - /** Total units consumed during this period */ - quantityUsed?: string; -} -/** Represents an update to a `BillingUsageSummary`. Fields that are set will be updated. */ -export interface BillingUsageSummaryPatch { - /** Universal credits consumed during this period */ - creditsConsumed?: string; - /** The entity (org, team, user) this summary belongs to */ - entityId?: string; - /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */ - entityType?: string; - id?: string; - /** Which meter this summary tracks */ - meterSlug?: string; - /** Resolved billable organization via get_organization_id */ - organizationId?: string; - /** Units consumed beyond the plan limit (quantity_used - plan_limit when positive) */ - overageUnits?: string; - /** End of the billing period this summary covers */ - periodEnd?: string; - /** Start of the billing period this summary covers */ - periodStart?: string; - /** Plan limit that was in effect during this period */ - planLimit?: string; - /** Total units consumed during this period */ - quantityUsed?: string; -} -/** A filter to be used against ConstructiveInternalTypeImage fields. All fields are combined with a logical ‘and.’ */ -export interface ConstructiveInternalTypeImageFilter { - /** Contained by the specified JSON. */ - containedBy?: ConstructiveInternalTypeImage; - /** Contains the specified JSON. */ - contains?: ConstructiveInternalTypeImage; - /** Contains all of the specified keys. */ - containsAllKeys?: string[]; - /** Contains any of the specified keys. */ - containsAnyKeys?: string[]; - /** Contains the specified key. */ - containsKey?: string; - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: ConstructiveInternalTypeImage; - /** Equal to the specified value. */ - equalTo?: ConstructiveInternalTypeImage; - /** Greater than the specified value. */ - greaterThan?: ConstructiveInternalTypeImage; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: ConstructiveInternalTypeImage; - /** Included in the specified list. */ - in?: ConstructiveInternalTypeImage[]; - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Less than the specified value. */ - lessThan?: ConstructiveInternalTypeImage; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: ConstructiveInternalTypeImage; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: ConstructiveInternalTypeImage; - /** Not equal to the specified value. */ - notEqualTo?: ConstructiveInternalTypeImage; - /** Not included in the specified list. */ - notIn?: ConstructiveInternalTypeImage[]; -} -export interface CreateAppAchievementRewardInput { - /** The `AppAchievementReward` to be created by this mutation. */ - appAchievementReward: AppAchievementRewardInput; - clientMutationId?: string; -} -export interface CreateAppEventAggregateInput { - /** The `AppEventAggregate` to be created by this mutation. */ - appEventAggregate: AppEventAggregateInput; - clientMutationId?: string; -} -export interface CreateAppEventInput { - /** The `AppEvent` to be created by this mutation. */ - appEvent: AppEventInput; - clientMutationId?: string; -} -export interface CreateAppEventTypeInput { - /** The `AppEventType` to be created by this mutation. */ - appEventType: AppEventTypeInput; - clientMutationId?: string; -} -export interface CreateAppLevelGrantInput { - /** The `AppLevelGrant` to be created by this mutation. */ - appLevelGrant: AppLevelGrantInput; - clientMutationId?: string; -} -export interface CreateAppLevelInput { - /** The `AppLevel` to be created by this mutation. */ - appLevel: AppLevelInput; - clientMutationId?: string; -} -export interface CreateAppLevelRequirementInput { - /** The `AppLevelRequirement` to be created by this mutation. */ - appLevelRequirement: AppLevelRequirementInput; - clientMutationId?: string; -} export interface CreateAppLimitCapInput { /** The `AppLimitCap` to be created by this mutation. */ appLimitCap: AppLimitCapInput; @@ -1972,36 +1009,6 @@ export interface CreateAppLimitWarningInput { appLimitWarning: AppLimitWarningInput; clientMutationId?: string; } -export interface CreateBillingUsageSummaryInput { - /** The `BillingUsageSummary` to be created by this mutation. */ - billingUsageSummary: BillingUsageSummaryInput; - clientMutationId?: string; -} -export interface CreateLedgerInput { - clientMutationId?: string; - /** The `Ledger` to be created by this mutation. */ - ledger: LedgerInput; -} -export interface CreateMeterCreditInput { - clientMutationId?: string; - /** The `MeterCredit` to be created by this mutation. */ - meterCredit: MeterCreditInput; -} -export interface CreateMeterDefaultInput { - clientMutationId?: string; - /** The `MeterDefault` to be created by this mutation. */ - meterDefault: MeterDefaultInput; -} -export interface CreateMeterInput { - clientMutationId?: string; - /** The `Meter` to be created by this mutation. */ - meter: MeterInput; -} -export interface CreateMeterSourceInput { - clientMutationId?: string; - /** The `MeterSource` to be created by this mutation. */ - meterSource: MeterSourceInput; -} export interface CreateOrgLimitAggregateInput { clientMutationId?: string; /** The `OrgLimitAggregate` to be created by this mutation. */ @@ -2042,71 +1049,6 @@ export interface CreateOrgLimitWarningInput { /** The `OrgLimitWarning` to be created by this mutation. */ orgLimitWarning: OrgLimitWarningInput; } -export interface CreatePlanCapInput { - clientMutationId?: string; - /** The `PlanCap` to be created by this mutation. */ - planCap: PlanCapInput; -} -export interface CreatePlanInput { - clientMutationId?: string; - /** The `Plan` to be created by this mutation. */ - plan: PlanInput; -} -export interface CreatePlanLimitInput { - clientMutationId?: string; - /** The `PlanLimit` to be created by this mutation. */ - planLimit: PlanLimitInput; -} -export interface CreatePlanMeterLimitInput { - clientMutationId?: string; - /** The `PlanMeterLimit` to be created by this mutation. */ - planMeterLimit: PlanMeterLimitInput; -} -export interface CreatePlanOverrideInput { - clientMutationId?: string; - /** The `PlanOverride` to be created by this mutation. */ - planOverride: PlanOverrideInput; -} -export interface CreatePlanPricingInput { - clientMutationId?: string; - /** The `PlanPricing` to be created by this mutation. */ - planPricing: PlanPricingInput; -} -export interface CreatePlanSubscriptionInput { - clientMutationId?: string; - /** The `PlanSubscription` to be created by this mutation. */ - planSubscription: PlanSubscriptionInput; -} -export interface DeleteAppAchievementRewardInput { - clientMutationId?: string; - id: string; -} -export interface DeleteAppEventAggregateInput { - clientMutationId?: string; - id: string; -} -export interface DeleteAppEventInput { - clientMutationId?: string; - createdAt: string; - /** Unique identifier for each event (uuidv7 provides temporal ordering) */ - id: string; -} -export interface DeleteAppEventTypeInput { - clientMutationId?: string; - id: string; -} -export interface DeleteAppLevelGrantInput { - clientMutationId?: string; - id: string; -} -export interface DeleteAppLevelInput { - clientMutationId?: string; - id: string; -} -export interface DeleteAppLevelRequirementInput { - clientMutationId?: string; - id: string; -} export interface DeleteAppLimitCapInput { clientMutationId?: string; id: string; @@ -2149,32 +1091,6 @@ export interface DeleteAppLimitWarningInput { clientMutationId?: string; id: string; } -export interface DeleteBillingUsageSummaryInput { - clientMutationId?: string; - id: string; -} -export interface DeleteLedgerInput { - clientMutationId?: string; - createdAt: string; - /** Unique identifier for each ledger entry */ - id: string; -} -export interface DeleteMeterCreditInput { - clientMutationId?: string; - id: string; -} -export interface DeleteMeterDefaultInput { - clientMutationId?: string; - id: string; -} -export interface DeleteMeterInput { - clientMutationId?: string; - id: string; -} -export interface DeleteMeterSourceInput { - clientMutationId?: string; - id: string; -} export interface DeleteOrgLimitAggregateInput { clientMutationId?: string; id: string; @@ -2209,39 +1125,6 @@ export interface DeleteOrgLimitWarningInput { clientMutationId?: string; id: string; } -export interface DeletePlanCapInput { - clientMutationId?: string; - id: string; -} -export interface DeletePlanInput { - clientMutationId?: string; - id: string; -} -export interface DeletePlanLimitInput { - clientMutationId?: string; - id: string; -} -export interface DeletePlanMeterLimitInput { - clientMutationId?: string; - id: string; -} -export interface DeletePlanOverrideInput { - clientMutationId?: string; - id: string; -} -export interface DeletePlanPricingInput { - clientMutationId?: string; - id: string; -} -export interface DeletePlanSubscriptionInput { - clientMutationId?: string; - id: string; -} -export interface GrantAchievementInput { - actorId?: string; - clientMutationId?: string; - levelName?: string; -} /** A filter to be used against Interval fields. All fields are combined with a logical ‘and.’ */ export interface IntervalFilter { /** Not equal to the specified value, treating null like an ordinary value. */ @@ -2249,404 +1132,42 @@ export interface IntervalFilter { /** Equal to the specified value. */ equalTo?: IntervalInput; /** Greater than the specified value. */ - greaterThan?: IntervalInput; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: IntervalInput; - /** Included in the specified list. */ - in?: IntervalInput[]; - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Less than the specified value. */ - lessThan?: IntervalInput; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: IntervalInput; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: IntervalInput; - /** Not equal to the specified value. */ - notEqualTo?: IntervalInput; - /** Not included in the specified list. */ - notIn?: IntervalInput[]; -} -/** An interval of time that has passed where the smallest distinct unit is a second. */ -export interface IntervalInput { - /** A quantity of days. */ - days?: number; - /** A quantity of hours. */ - hours?: number; - /** A quantity of minutes. */ - minutes?: number; - /** A quantity of months. */ - months?: number; - /** - * A quantity of seconds. This is the only non-integer field, as all the other - * fields will dump their overflow into a smaller unit of time. Intervals don’t - * have a smaller unit than seconds. - */ - seconds?: number; - /** A quantity of years. */ - years?: number; -} -/** A filter to be used against `Ledger` object types. All fields are combined with a logical ‘and.’ */ -export interface LedgerFilter { - /** Checks for all expressions in this list. */ - and?: LedgerFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `delta` field. */ - delta?: BigIntFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `entityType` field. */ - entityType?: StringFilter; - /** Filter by the object’s `entryType` field. */ - entryType?: StringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `ledgerClass` field. */ - ledgerClass?: StringFilter; - /** Filter by the object’s `metadata` field. */ - metadata?: JSONFilter; - /** Filter by the object’s `meterSlug` field. */ - meterSlug?: StringFilter; - /** Negates the expression. */ - not?: LedgerFilter; - /** Checks for any expressions in this list. */ - or?: LedgerFilter[]; - /** Filter by the object’s `organizationId` field. */ - organizationId?: UUIDFilter; - /** Filter by the object’s `usageAfter` field. */ - usageAfter?: BigIntFilter; -} -/** An input for mutations affecting `Ledger` */ -export interface LedgerInput { - createdAt?: string; - /** Change amount (positive = grant/credit, negative = consumption/debit) */ - delta: string; - /** The entity this ledger entry belongs to */ - entityId: string; - /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */ - entityType?: string; - /** Specific type: increment, decrement, credit_purchase, plan_grant, reset, adjustment */ - entryType?: string; - /** Unique identifier for each ledger entry */ - id?: string; - /** Classification: usage, grant, adjustment, refund */ - ledgerClass?: string; - /** Additional context (reason, source, Stripe receipt, etc.) */ - metadata?: unknown; - /** Which meter this entry is for */ - meterSlug: string; - /** Resolved billable organization via get_organization_id */ - organizationId?: string; - /** Running total of usage after this entry */ - usageAfter: string; -} -/** Represents an update to a `Ledger`. Fields that are set will be updated. */ -export interface LedgerPatch { - createdAt?: string; - /** Change amount (positive = grant/credit, negative = consumption/debit) */ - delta?: string; - /** The entity this ledger entry belongs to */ - entityId?: string; - /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */ - entityType?: string; - /** Specific type: increment, decrement, credit_purchase, plan_grant, reset, adjustment */ - entryType?: string; - /** Unique identifier for each ledger entry */ - id?: string; - /** Classification: usage, grant, adjustment, refund */ - ledgerClass?: string; - /** Additional context (reason, source, Stripe receipt, etc.) */ - metadata?: unknown; - /** Which meter this entry is for */ - meterSlug?: string; - /** Resolved billable organization via get_organization_id */ - organizationId?: string; - /** Running total of usage after this entry */ - usageAfter?: string; -} -/** A filter to be used against `MeterCredit` object types. All fields are combined with a logical ‘and.’ */ -export interface MeterCreditFilter { - /** Filter by the object’s `amount` field. */ - amount?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: MeterCreditFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `creditType` field. */ - creditType?: StringFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `entityType` field. */ - entityType?: StringFilter; - /** Filter by the object’s `expiresAt` field. */ - expiresAt?: DatetimeFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `meter` relation. */ - meter?: MeterFilter; - /** Filter by the object’s `meterId` field. */ - meterId?: UUIDFilter; - /** Negates the expression. */ - not?: MeterCreditFilter; - /** Checks for any expressions in this list. */ - or?: MeterCreditFilter[]; - /** Filter by the object’s `organizationId` field. */ - organizationId?: UUIDFilter; - /** Filter by the object’s `reason` field. */ - reason?: StringFilter; -} -/** An input for mutations affecting `MeterCredit` */ -export interface MeterCreditInput { - /** Number of credits to grant (positive to add, negative to revoke) */ - amount: string; - /** When this credit was granted */ - createdAt?: string; - /** Credit behavior: permanent (survives reset), period (zeroed on reset), or rollover (unused portion carries forward) */ - creditType?: string; - /** Entity this credit applies to */ - entityId: string; - /** Membership prefix identifying the entity kind (org, team, app) */ - entityType?: string; - /** When this credit expires. NULL means the credit never expires. */ - expiresAt?: string; - id?: string; - /** FK to meters — which meter definition this credit applies to */ - meterId: string; - /** Resolved billable organization via get_organization_id */ - organizationId?: string; - /** Optional reason for the credit grant (promo code, admin grant, etc.) */ - reason?: string; -} -/** Represents an update to a `MeterCredit`. Fields that are set will be updated. */ -export interface MeterCreditPatch { - /** Number of credits to grant (positive to add, negative to revoke) */ - amount?: string; - /** When this credit was granted */ - createdAt?: string; - /** Credit behavior: permanent (survives reset), period (zeroed on reset), or rollover (unused portion carries forward) */ - creditType?: string; - /** Entity this credit applies to */ - entityId?: string; - /** Membership prefix identifying the entity kind (org, team, app) */ - entityType?: string; - /** When this credit expires. NULL means the credit never expires. */ - expiresAt?: string; - id?: string; - /** FK to meters — which meter definition this credit applies to */ - meterId?: string; - /** Resolved billable organization via get_organization_id */ - organizationId?: string; - /** Optional reason for the credit grant (promo code, admin grant, etc.) */ - reason?: string; + greaterThan?: IntervalInput; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: IntervalInput; + /** Included in the specified list. */ + in?: IntervalInput[]; + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Less than the specified value. */ + lessThan?: IntervalInput; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: IntervalInput; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: IntervalInput; + /** Not equal to the specified value. */ + notEqualTo?: IntervalInput; + /** Not included in the specified list. */ + notIn?: IntervalInput[]; } -/** A filter to be used against `MeterDefault` object types. All fields are combined with a logical ‘and.’ */ -export interface MeterDefaultFilter { - /** Checks for all expressions in this list. */ - and?: MeterDefaultFilter[]; - /** Filter by the object’s `categoryMeter` field. */ - categoryMeter?: StringFilter; - /** Filter by the object’s `creditCost` field. */ - creditCost?: BigFloatFilter; - /** Filter by the object’s `defaultPlanLimit` field. */ - defaultPlanLimit?: BigIntFilter; - /** Filter by the object’s `displayName` field. */ - displayName?: StringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isActive` field. */ - isActive?: BooleanFilter; - /** Filter by the object’s `meterType` field. */ - meterType?: StringFilter; - /** Negates the expression. */ - not?: MeterDefaultFilter; - /** Checks for any expressions in this list. */ - or?: MeterDefaultFilter[]; - /** Filter by the object’s `slug` field. */ - slug?: StringFilter; - /** Filter by the object’s `unit` field. */ - unit?: StringFilter; -} -/** An input for mutations affecting `MeterDefault` */ -export interface MeterDefaultInput { - /** Slug of the category pool meter (usage_pool) this meter belongs to, enabling the per-task -> category -> universal waterfall for default-provisioned meters. NULL skips the category pool. */ - categoryMeter?: string; - /** Universal credits consumed per unit of this meter. NULL disables universal credit fallback. */ - creditCost?: string; - /** Default plan_limit value for new entity balances. 0 means no quota; -1 (negative) means unlimited. */ - defaultPlanLimit?: string; - /** Human-readable name for the default meter */ - displayName?: string; - id?: string; - /** Whether this default meter is actively provisioned for new entities */ - isActive?: boolean; - /** Type of meter: quota, boolean, or usage_pool */ - meterType?: string; - /** Meter slug that matches the slug in the meters table */ - slug: string; - /** Unit of measurement for this meter (e.g. tokens, requests, images, compute_ms, credits) */ - unit?: string; -} -/** Represents an update to a `MeterDefault`. Fields that are set will be updated. */ -export interface MeterDefaultPatch { - /** Slug of the category pool meter (usage_pool) this meter belongs to, enabling the per-task -> category -> universal waterfall for default-provisioned meters. NULL skips the category pool. */ - categoryMeter?: string; - /** Universal credits consumed per unit of this meter. NULL disables universal credit fallback. */ - creditCost?: string; - /** Default plan_limit value for new entity balances. 0 means no quota; -1 (negative) means unlimited. */ - defaultPlanLimit?: string; - /** Human-readable name for the default meter */ - displayName?: string; - id?: string; - /** Whether this default meter is actively provisioned for new entities */ - isActive?: boolean; - /** Type of meter: quota, boolean, or usage_pool */ - meterType?: string; - /** Meter slug that matches the slug in the meters table */ - slug?: string; - /** Unit of measurement for this meter (e.g. tokens, requests, images, compute_ms, credits) */ - unit?: string; -} -/** A filter to be used against `Meter` object types. All fields are combined with a logical ‘and.’ */ -export interface MeterFilter { - /** Filter by the object’s `aggregation` field. */ - aggregation?: StringFilter; - /** Checks for all expressions in this list. */ - and?: MeterFilter[]; - /** Filter by the object’s `categoryMeter` field. */ - categoryMeter?: StringFilter; - /** Filter by the object’s `creditCost` field. */ - creditCost?: IntFilter; - /** Filter by the object’s `displayName` field. */ - displayName?: StringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isActive` field. */ - isActive?: BooleanFilter; - /** Filter by the object’s `meterCredits` relation. */ - meterCredits?: MeterToManyMeterCreditFilter; - /** `meterCredits` exist. */ - meterCreditsExist?: boolean; - /** Filter by the object’s `meterType` field. */ - meterType?: StringFilter; - /** Negates the expression. */ - not?: MeterFilter; - /** Checks for any expressions in this list. */ - or?: MeterFilter[]; - /** Filter by the object’s `periodInterval` field. */ - periodInterval?: IntervalFilter; - /** Filter by the object’s `rolloverCap` field. */ - rolloverCap?: BigIntFilter; - /** Filter by the object’s `slug` field. */ - slug?: StringFilter; - /** Filter by the object’s `unit` field. */ - unit?: StringFilter; -} -/** An input for mutations affecting `Meter` */ -export interface MeterInput { - /** How usage is aggregated: cumulative (sum over period) or peak (max watermark) */ - aggregation?: string; - /** Slug of the category pool meter this meter belongs to. When set, usage overflow charges the category pool before falling through to universal credits. NULL means skip category pool and fall through directly to universal. */ - categoryMeter?: string; - /** Universal credits consumed per unit of this meter. NULL disables universal credit fallback. */ - creditCost?: number; - /** Human-readable name for the meter */ - displayName?: string; - id?: string; - /** Whether this meter is currently active */ - isActive?: boolean; - /** Type of meter: quota (consumable), boolean (feature flag), or usage_pool (category aggregator) */ - meterType?: string; - /** Reset cadence for this meter (e.g. 1 month, 1 year). NULL means no periodic reset. */ - periodInterval?: IntervalInput; - /** Maximum unused units that carry forward on rollover reset. NULL means unlimited rollover. */ - rolloverCap?: string; - /** Unique identifier for the meter (e.g. api_requests, storage_gb, seats) */ - slug: string; - /** Unit of measurement for this meter (e.g. tokens, characters, audio_seconds, pages, images, megapixels, bytes, requests, compute_ms, credits) */ - unit?: string; -} -/** Represents an update to a `Meter`. Fields that are set will be updated. */ -export interface MeterPatch { - /** How usage is aggregated: cumulative (sum over period) or peak (max watermark) */ - aggregation?: string; - /** Slug of the category pool meter this meter belongs to. When set, usage overflow charges the category pool before falling through to universal credits. NULL means skip category pool and fall through directly to universal. */ - categoryMeter?: string; - /** Universal credits consumed per unit of this meter. NULL disables universal credit fallback. */ - creditCost?: number; - /** Human-readable name for the meter */ - displayName?: string; - id?: string; - /** Whether this meter is currently active */ - isActive?: boolean; - /** Type of meter: quota (consumable), boolean (feature flag), or usage_pool (category aggregator) */ - meterType?: string; - /** Reset cadence for this meter (e.g. 1 month, 1 year). NULL means no periodic reset. */ - periodInterval?: IntervalInput; - /** Maximum unused units that carry forward on rollover reset. NULL means unlimited rollover. */ - rolloverCap?: string; - /** Unique identifier for the meter (e.g. api_requests, storage_gb, seats) */ - slug?: string; - /** Unit of measurement for this meter (e.g. tokens, characters, audio_seconds, pages, images, megapixels, bytes, requests, compute_ms, credits) */ - unit?: string; -} -/** A filter to be used against `MeterSource` object types. All fields are combined with a logical ‘and.’ */ -export interface MeterSourceFilter { - /** Filter by the object’s `aggregationType` field. */ - aggregationType?: StringFilter; - /** Checks for all expressions in this list. */ - and?: MeterSourceFilter[]; - /** Filter by the object’s `dimensionPath` field. */ - dimensionPath?: StringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isActive` field. */ - isActive?: BooleanFilter; - /** Filter by the object’s `meterSlug` field. */ - meterSlug?: StringFilter; - /** Negates the expression. */ - not?: MeterSourceFilter; - /** Checks for any expressions in this list. */ - or?: MeterSourceFilter[]; - /** Filter by the object’s `sourceMetric` field. */ - sourceMetric?: StringFilter; -} -/** An input for mutations affecting `MeterSource` */ -export interface MeterSourceInput { - /** How to aggregate the column. Built-in types: sum, sum_bytes_to_gb, peak. Custom types supported. */ - aggregationType?: string; - /** Column name in the typed usage summary table (e.g. total_reads, avg_read_time_ms, size_bytes) */ - dimensionPath: string; - id?: string; - /** Soft-delete flag. Inactive sources are skipped during reconciliation. */ - isActive?: boolean; - /** Slug of the billing meter this source feeds (matches meters.slug in the billing module) */ - meterSlug: string; - /** Source table type: table_usage (db_table_stats_usage_summary), query_time (db_query_stats_usage_summary), or row_count (trigger-based, skipped by reconcile) */ - sourceMetric: string; -} -/** Represents an update to a `MeterSource`. Fields that are set will be updated. */ -export interface MeterSourcePatch { - /** How to aggregate the column. Built-in types: sum, sum_bytes_to_gb, peak. Custom types supported. */ - aggregationType?: string; - /** Column name in the typed usage summary table (e.g. total_reads, avg_read_time_ms, size_bytes) */ - dimensionPath?: string; - id?: string; - /** Soft-delete flag. Inactive sources are skipped during reconciliation. */ - isActive?: boolean; - /** Slug of the billing meter this source feeds (matches meters.slug in the billing module) */ - meterSlug?: string; - /** Source table type: table_usage (db_table_stats_usage_summary), query_time (db_query_stats_usage_summary), or row_count (trigger-based, skipped by reconcile) */ - sourceMetric?: string; -} -/** A filter to be used against many `MeterCredit` object types. All fields are combined with a logical ‘and.’ */ -export interface MeterToManyMeterCreditFilter { - /** Filters to entities where every related entity matches. */ - every?: MeterCreditFilter; - /** Filters to entities where no related entity matches. */ - none?: MeterCreditFilter; - /** Filters to entities where at least one related entity matches. */ - some?: MeterCreditFilter; +/** An interval of time that has passed where the smallest distinct unit is a second. */ +export interface IntervalInput { + /** A quantity of days. */ + days?: number; + /** A quantity of hours. */ + hours?: number; + /** A quantity of minutes. */ + minutes?: number; + /** A quantity of months. */ + months?: number; + /** + * A quantity of seconds. This is the only non-integer field, as all the other + * fields will dump their overflow into a smaller unit of time. Intervals don’t + * have a smaller unit than seconds. + */ + seconds?: number; + /** A quantity of years. */ + years?: number; } /** A filter to be used against `OrgLimitAggregate` object types. All fields are combined with a logical ‘and.’ */ export interface OrgLimitAggregateFilter { @@ -3167,394 +1688,6 @@ export interface OrgLimitWarningPatch { /** Threshold type: absolute (fixed count) or percentage (of max) */ warningType?: string; } -/** A filter to be used against `PlanCap` object types. All fields are combined with a logical ‘and.’ */ -export interface PlanCapFilter { - /** Checks for all expressions in this list. */ - and?: PlanCapFilter[]; - /** Filter by the object’s `capName` field. */ - capName?: StringFilter; - /** Filter by the object’s `capValue` field. */ - capValue?: BigIntFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Negates the expression. */ - not?: PlanCapFilter; - /** Checks for any expressions in this list. */ - or?: PlanCapFilter[]; - /** Filter by the object’s `plan` relation. */ - plan?: PlanFilter; - /** Filter by the object’s `planId` field. */ - planId?: UUIDFilter; -} -/** An input for mutations affecting `PlanCap` */ -export interface PlanCapInput { - /** Name of the cap/feature flag this plan sets (must match a name in caps_defaults or limit_caps) */ - capName: string; - /** Cap value to set when this plan is applied. Convention: 0=disabled, 1=enabled, N=numeric cap, negative=unlimited */ - capValue?: string; - id?: string; - /** Reference to the plan this cap setting belongs to */ - planId: string; -} -/** Represents an update to a `PlanCap`. Fields that are set will be updated. */ -export interface PlanCapPatch { - /** Name of the cap/feature flag this plan sets (must match a name in caps_defaults or limit_caps) */ - capName?: string; - /** Cap value to set when this plan is applied. Convention: 0=disabled, 1=enabled, N=numeric cap, negative=unlimited */ - capValue?: string; - id?: string; - /** Reference to the plan this cap setting belongs to */ - planId?: string; -} -/** A filter to be used against `Plan` object types. All fields are combined with a logical ‘and.’ */ -export interface PlanFilter { - /** Checks for all expressions in this list. */ - and?: PlanFilter[]; - /** Filter by the object’s `description` field. */ - description?: 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?: PlanFilter; - /** Checks for any expressions in this list. */ - or?: PlanFilter[]; - /** Filter by the object’s `planCaps` relation. */ - planCaps?: PlanToManyPlanCapFilter; - /** `planCaps` exist. */ - planCapsExist?: boolean; - /** Filter by the object’s `planLimits` relation. */ - planLimits?: PlanToManyPlanLimitFilter; - /** `planLimits` exist. */ - planLimitsExist?: boolean; - /** Filter by the object’s `planMeterLimits` relation. */ - planMeterLimits?: PlanToManyPlanMeterLimitFilter; - /** `planMeterLimits` exist. */ - planMeterLimitsExist?: boolean; - /** Filter by the object’s `planPricings` relation. */ - planPricings?: PlanToManyPlanPricingFilter; - /** `planPricings` exist. */ - planPricingsExist?: boolean; - /** Filter by the object’s `planSubscriptions` relation. */ - planSubscriptions?: PlanToManyPlanSubscriptionFilter; - /** `planSubscriptions` exist. */ - planSubscriptionsExist?: boolean; -} -/** An input for mutations affecting `Plan` */ -export interface PlanInput { - /** Human-readable description of the plan tier */ - description?: string; - id?: string; - /** Whether this plan can currently be applied to entities */ - isActive?: boolean; - /** Unique name identifier of the plan (e.g. free, pro, enterprise) */ - name: string; -} -/** A filter to be used against `PlanLimit` object types. All fields are combined with a logical ‘and.’ */ -export interface PlanLimitFilter { - /** Checks for all expressions in this list. */ - and?: PlanLimitFilter[]; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `limitName` field. */ - limitName?: StringFilter; - /** Filter by the object’s `maxValue` field. */ - maxValue?: BigIntFilter; - /** Negates the expression. */ - not?: PlanLimitFilter; - /** Checks for any expressions in this list. */ - or?: PlanLimitFilter[]; - /** Filter by the object’s `plan` relation. */ - plan?: PlanFilter; - /** Filter by the object’s `planId` field. */ - planId?: UUIDFilter; -} -/** An input for mutations affecting `PlanLimit` */ -export interface PlanLimitInput { - id?: string; - /** Name of the limit this plan sets (must match the name field in a limits table) */ - limitName: string; - /** Maximum value to set on the limit when this plan is applied; negative means unlimited */ - maxValue: string; - /** Reference to the plan this limit configuration belongs to */ - planId: string; -} -/** Represents an update to a `PlanLimit`. Fields that are set will be updated. */ -export interface PlanLimitPatch { - id?: string; - /** Name of the limit this plan sets (must match the name field in a limits table) */ - limitName?: string; - /** Maximum value to set on the limit when this plan is applied; negative means unlimited */ - maxValue?: string; - /** Reference to the plan this limit configuration belongs to */ - planId?: string; -} -/** A filter to be used against `PlanMeterLimit` object types. All fields are combined with a logical ‘and.’ */ -export interface PlanMeterLimitFilter { - /** Checks for all expressions in this list. */ - and?: PlanMeterLimitFilter[]; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `meterSlug` field. */ - meterSlug?: StringFilter; - /** Negates the expression. */ - not?: PlanMeterLimitFilter; - /** Checks for any expressions in this list. */ - or?: PlanMeterLimitFilter[]; - /** Filter by the object’s `plan` relation. */ - plan?: PlanFilter; - /** Filter by the object’s `planId` field. */ - planId?: UUIDFilter; - /** Filter by the object’s `planLimit` field. */ - planLimit?: BigIntFilter; -} -/** An input for mutations affecting `PlanMeterLimit` */ -export interface PlanMeterLimitInput { - id?: string; - /** Slug of the billing meter this plan sets a quota for (must match a slug in the meters table) */ - meterSlug: string; - /** Reference to the plan this meter limit belongs to */ - planId: string; - /** Billing quota to set on the balance when this plan is applied; negative means unlimited */ - planLimit: string; -} -/** Represents an update to a `PlanMeterLimit`. Fields that are set will be updated. */ -export interface PlanMeterLimitPatch { - id?: string; - /** Slug of the billing meter this plan sets a quota for (must match a slug in the meters table) */ - meterSlug?: string; - /** Reference to the plan this meter limit belongs to */ - planId?: string; - /** Billing quota to set on the balance when this plan is applied; negative means unlimited */ - planLimit?: string; -} -/** A filter to be used against `PlanOverride` object types. All fields are combined with a logical ‘and.’ */ -export interface PlanOverrideFilter { - /** Checks for all expressions in this list. */ - and?: PlanOverrideFilter[]; - /** 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 `limitName` field. */ - limitName?: StringFilter; - /** Filter by the object’s `maxValue` field. */ - maxValue?: BigIntFilter; - /** Negates the expression. */ - not?: PlanOverrideFilter; - /** Checks for any expressions in this list. */ - or?: PlanOverrideFilter[]; - /** Filter by the object’s `reason` field. */ - reason?: StringFilter; -} -/** An input for mutations affecting `PlanOverride` */ -export interface PlanOverrideInput { - /** Entity receiving the custom override (personal org or actual org) */ - entityId: string; - /** When this override expires; NULL means permanent */ - expiresAt?: string; - id?: string; - /** Name of the limit being overridden */ - limitName: string; - /** Override maximum value; negative means unlimited */ - maxValue: string; - /** Admin note explaining why this override was granted */ - reason?: string; -} -/** Represents an update to a `PlanOverride`. Fields that are set will be updated. */ -export interface PlanOverridePatch { - /** Entity receiving the custom override (personal org or actual org) */ - entityId?: string; - /** When this override expires; NULL means permanent */ - expiresAt?: string; - id?: string; - /** Name of the limit being overridden */ - limitName?: string; - /** Override maximum value; negative means unlimited */ - maxValue?: string; - /** Admin note explaining why this override was granted */ - reason?: string; -} -/** Represents an update to a `Plan`. Fields that are set will be updated. */ -export interface PlanPatch { - /** Human-readable description of the plan tier */ - description?: string; - id?: string; - /** Whether this plan can currently be applied to entities */ - isActive?: boolean; - /** Unique name identifier of the plan (e.g. free, pro, enterprise) */ - name?: string; -} -/** A filter to be used against `PlanPricing` object types. All fields are combined with a logical ‘and.’ */ -export interface PlanPricingFilter { - /** Checks for all expressions in this list. */ - and?: PlanPricingFilter[]; - /** Filter by the object’s `billingInterval` field. */ - billingInterval?: StringFilter; - /** Filter by the object’s `currency` field. */ - currency?: StringFilter; - /** Filter by the object’s `discountPercent` field. */ - discountPercent?: BigFloatFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isActive` field. */ - isActive?: BooleanFilter; - /** Negates the expression. */ - not?: PlanPricingFilter; - /** Checks for any expressions in this list. */ - or?: PlanPricingFilter[]; - /** Filter by the object’s `plan` relation. */ - plan?: PlanFilter; - /** Filter by the object’s `planId` field. */ - planId?: UUIDFilter; - /** Filter by the object’s `price` field. */ - price?: BigIntFilter; -} -/** An input for mutations affecting `PlanPricing` */ -export interface PlanPricingInput { - /** Billing cycle identifier (e.g. monthly, yearly, lifetime) */ - billingInterval: string; - /** ISO 4217 currency code (lowercase) */ - currency?: string; - /** Discount percentage off the base price (0-100); NULL means no discount */ - discountPercent?: string; - id?: string; - /** Whether this pricing option is currently available */ - isActive?: boolean; - /** Reference to the plan this pricing belongs to */ - planId: string; - /** Price in smallest currency unit (e.g. cents); negative means contact-sales */ - price: string; -} -/** Represents an update to a `PlanPricing`. Fields that are set will be updated. */ -export interface PlanPricingPatch { - /** Billing cycle identifier (e.g. monthly, yearly, lifetime) */ - billingInterval?: string; - /** ISO 4217 currency code (lowercase) */ - currency?: string; - /** Discount percentage off the base price (0-100); NULL means no discount */ - discountPercent?: string; - id?: string; - /** Whether this pricing option is currently available */ - isActive?: boolean; - /** Reference to the plan this pricing belongs to */ - planId?: string; - /** Price in smallest currency unit (e.g. cents); negative means contact-sales */ - price?: string; -} -/** A filter to be used against `PlanSubscription` object types. All fields are combined with a logical ‘and.’ */ -export interface PlanSubscriptionFilter { - /** Checks for all expressions in this list. */ - and?: PlanSubscriptionFilter[]; - /** Filter by the object’s `endsAt` field. */ - endsAt?: DatetimeFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `entityType` field. */ - entityType?: StringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isActive` field. */ - isActive?: BooleanFilter; - /** Negates the expression. */ - not?: PlanSubscriptionFilter; - /** Checks for any expressions in this list. */ - or?: PlanSubscriptionFilter[]; - /** Filter by the object’s `organizationId` field. */ - organizationId?: UUIDFilter; - /** Filter by the object’s `plan` relation. */ - plan?: PlanFilter; - /** Filter by the object’s `planId` field. */ - planId?: UUIDFilter; - /** Filter by the object’s `startsAt` field. */ - startsAt?: DatetimeFilter; -} -/** An input for mutations affecting `PlanSubscription` */ -export interface PlanSubscriptionInput { - /** When the subscription expires (NULL = no expiration) */ - endsAt?: string; - /** The entity (org, team, user) this subscription belongs to */ - entityId: string; - /** Membership prefix identifying the entity kind (org, team, app) */ - entityType?: string; - id?: string; - /** Whether the subscription is currently active */ - isActive?: boolean; - /** Resolved billable organization via get_organization_id */ - organizationId?: string; - /** Reference to the plan this subscription is for */ - planId: string; - /** When the subscription becomes active */ - startsAt?: string; -} -/** Represents an update to a `PlanSubscription`. Fields that are set will be updated. */ -export interface PlanSubscriptionPatch { - /** When the subscription expires (NULL = no expiration) */ - endsAt?: string; - /** The entity (org, team, user) this subscription belongs to */ - entityId?: string; - /** Membership prefix identifying the entity kind (org, team, app) */ - entityType?: string; - id?: string; - /** Whether the subscription is currently active */ - isActive?: boolean; - /** Resolved billable organization via get_organization_id */ - organizationId?: string; - /** Reference to the plan this subscription is for */ - planId?: string; - /** When the subscription becomes active */ - startsAt?: string; -} -/** A filter to be used against many `PlanCap` object types. All fields are combined with a logical ‘and.’ */ -export interface PlanToManyPlanCapFilter { - /** Filters to entities where every related entity matches. */ - every?: PlanCapFilter; - /** Filters to entities where no related entity matches. */ - none?: PlanCapFilter; - /** Filters to entities where at least one related entity matches. */ - some?: PlanCapFilter; -} -/** A filter to be used against many `PlanLimit` object types. All fields are combined with a logical ‘and.’ */ -export interface PlanToManyPlanLimitFilter { - /** Filters to entities where every related entity matches. */ - every?: PlanLimitFilter; - /** Filters to entities where no related entity matches. */ - none?: PlanLimitFilter; - /** Filters to entities where at least one related entity matches. */ - some?: PlanLimitFilter; -} -/** A filter to be used against many `PlanMeterLimit` object types. All fields are combined with a logical ‘and.’ */ -export interface PlanToManyPlanMeterLimitFilter { - /** Filters to entities where every related entity matches. */ - every?: PlanMeterLimitFilter; - /** Filters to entities where no related entity matches. */ - none?: PlanMeterLimitFilter; - /** Filters to entities where at least one related entity matches. */ - some?: PlanMeterLimitFilter; -} -/** A filter to be used against many `PlanPricing` object types. All fields are combined with a logical ‘and.’ */ -export interface PlanToManyPlanPricingFilter { - /** Filters to entities where every related entity matches. */ - every?: PlanPricingFilter; - /** Filters to entities where no related entity matches. */ - none?: PlanPricingFilter; - /** Filters to entities where at least one related entity matches. */ - some?: PlanPricingFilter; -} -/** A filter to be used against many `PlanSubscription` object types. All fields are combined with a logical ‘and.’ */ -export interface PlanToManyPlanSubscriptionFilter { - /** Filters to entities where every related entity matches. */ - every?: PlanSubscriptionFilter; - /** Filters to entities where no related entity matches. */ - none?: PlanSubscriptionFilter; - /** Filters to entities where at least one related entity matches. */ - some?: PlanSubscriptionFilter; -} export interface ProvisionBucketInput { /** The logical bucket key (e.g., "public", "private") */ bucketKey: string; @@ -3564,15 +1697,6 @@ export interface ProvisionBucketInput { */ ownerId?: string; } -export interface RecomputeCapabilitiesInput { - actorId?: string; - clientMutationId?: string; -} -export interface RevokeAchievementInput { - actorId?: string; - clientMutationId?: string; - levelName?: string; -} export interface SeedAppLimitCapsDefaultsInput { clientMutationId?: string; defaults?: unknown; @@ -3581,10 +1705,6 @@ export interface SeedAppLimitDefaultsInput { clientMutationId?: string; defaults?: unknown; } -export interface SeedMeterDefaultsInput { - clientMutationId?: string; - defaults?: unknown; -} export interface SeedOrgLimitCapsDefaultsInput { clientMutationId?: string; defaults?: unknown; @@ -3593,59 +1713,6 @@ export interface SeedOrgLimitDefaultsInput { clientMutationId?: string; defaults?: unknown; } -export interface SeedPlanInput { - clientMutationId?: string; - planConfig?: unknown; - planName?: string; -} -export interface SeedTrustLadderInput { - clientMutationId?: string; - ladder?: unknown; -} -export interface UpdateAppAchievementRewardInput { - /** An object where the defined keys will be set on the `AppAchievementReward` being updated. */ - appAchievementRewardPatch: AppAchievementRewardPatch; - clientMutationId?: string; - id: string; -} -export interface UpdateAppEventAggregateInput { - /** An object where the defined keys will be set on the `AppEventAggregate` being updated. */ - appEventAggregatePatch: AppEventAggregatePatch; - clientMutationId?: string; - id: string; -} -export interface UpdateAppEventInput { - /** An object where the defined keys will be set on the `AppEvent` being updated. */ - appEventPatch: AppEventPatch; - clientMutationId?: string; - createdAt: string; - /** Unique identifier for each event (uuidv7 provides temporal ordering) */ - id: string; -} -export interface UpdateAppEventTypeInput { - /** An object where the defined keys will be set on the `AppEventType` being updated. */ - appEventTypePatch: AppEventTypePatch; - clientMutationId?: string; - id: string; -} -export interface UpdateAppLevelGrantInput { - /** An object where the defined keys will be set on the `AppLevelGrant` being updated. */ - appLevelGrantPatch: AppLevelGrantPatch; - clientMutationId?: string; - id: string; -} -export interface UpdateAppLevelInput { - /** An object where the defined keys will be set on the `AppLevel` being updated. */ - appLevelPatch: AppLevelPatch; - clientMutationId?: string; - id: string; -} -export interface UpdateAppLevelRequirementInput { - /** An object where the defined keys will be set on the `AppLevelRequirement` being updated. */ - appLevelRequirementPatch: AppLevelRequirementPatch; - clientMutationId?: string; - id: string; -} export interface UpdateAppLimitCapInput { /** An object where the defined keys will be set on the `AppLimitCap` being updated. */ appLimitCapPatch: AppLimitCapPatch; @@ -3708,44 +1775,6 @@ export interface UpdateAppLimitWarningInput { clientMutationId?: string; id: string; } -export interface UpdateBillingUsageSummaryInput { - /** An object where the defined keys will be set on the `BillingUsageSummary` being updated. */ - billingUsageSummaryPatch: BillingUsageSummaryPatch; - clientMutationId?: string; - id: string; -} -export interface UpdateLedgerInput { - clientMutationId?: string; - createdAt: string; - /** Unique identifier for each ledger entry */ - id: string; - /** An object where the defined keys will be set on the `Ledger` being updated. */ - ledgerPatch: LedgerPatch; -} -export interface UpdateMeterCreditInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `MeterCredit` being updated. */ - meterCreditPatch: MeterCreditPatch; -} -export interface UpdateMeterDefaultInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `MeterDefault` being updated. */ - meterDefaultPatch: MeterDefaultPatch; -} -export interface UpdateMeterInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `Meter` being updated. */ - meterPatch: MeterPatch; -} -export interface UpdateMeterSourceInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `MeterSource` being updated. */ - meterSourcePatch: MeterSourcePatch; -} export interface UpdateOrgLimitAggregateInput { clientMutationId?: string; id: string; @@ -3770,127 +1799,36 @@ export interface UpdateOrgLimitCreditInput { /** An object where the defined keys will be set on the `OrgLimitCredit` being updated. */ orgLimitCreditPatch: OrgLimitCreditPatch; } -export interface UpdateOrgLimitDefaultInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `OrgLimitDefault` being updated. */ - orgLimitDefaultPatch: OrgLimitDefaultPatch; -} -export interface UpdateOrgLimitEventInput { - clientMutationId?: string; - createdAt: string; - /** Unique identifier for each limit event */ - id: string; - /** An object where the defined keys will be set on the `OrgLimitEvent` being updated. */ - orgLimitEventPatch: OrgLimitEventPatch; -} -export interface UpdateOrgLimitInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `OrgLimit` being updated. */ - orgLimitPatch: OrgLimitPatch; -} -export interface UpdateOrgLimitWarningInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `OrgLimitWarning` being updated. */ - orgLimitWarningPatch: OrgLimitWarningPatch; -} -export interface UpdatePlanCapInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `PlanCap` being updated. */ - planCapPatch: PlanCapPatch; -} -export interface UpdatePlanInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `Plan` being updated. */ - planPatch: PlanPatch; -} -export interface UpdatePlanLimitInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `PlanLimit` being updated. */ - planLimitPatch: PlanLimitPatch; -} -export interface UpdatePlanMeterLimitInput { +export interface UpdateOrgLimitDefaultInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `PlanMeterLimit` being updated. */ - planMeterLimitPatch: PlanMeterLimitPatch; + /** An object where the defined keys will be set on the `OrgLimitDefault` being updated. */ + orgLimitDefaultPatch: OrgLimitDefaultPatch; } -export interface UpdatePlanOverrideInput { +export interface UpdateOrgLimitEventInput { clientMutationId?: string; + createdAt: string; + /** Unique identifier for each limit event */ id: string; - /** An object where the defined keys will be set on the `PlanOverride` being updated. */ - planOverridePatch: PlanOverridePatch; + /** An object where the defined keys will be set on the `OrgLimitEvent` being updated. */ + orgLimitEventPatch: OrgLimitEventPatch; } -export interface UpdatePlanPricingInput { +export interface UpdateOrgLimitInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `PlanPricing` being updated. */ - planPricingPatch: PlanPricingPatch; + /** An object where the defined keys will be set on the `OrgLimit` being updated. */ + orgLimitPatch: OrgLimitPatch; } -export interface UpdatePlanSubscriptionInput { +export interface UpdateOrgLimitWarningInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `PlanSubscription` being updated. */ - planSubscriptionPatch: PlanSubscriptionPatch; + /** An object where the defined keys will be set on the `OrgLimitWarning` being updated. */ + orgLimitWarningPatch: OrgLimitWarningPatch; } /** Root meta schema type */ export interface MetaSchema { tables: MetaTable[]; } -/** A connection to a list of `AppAchievementReward` values. */ -export interface AppAchievementRewardConnection { - edges: AppAchievementRewardEdge[]; - nodes: AppAchievementReward[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `AppEventAggregate` values. */ -export interface AppEventAggregateConnection { - edges: AppEventAggregateEdge[]; - nodes: AppEventAggregate[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `AppEventType` values. */ -export interface AppEventTypeConnection { - edges: AppEventTypeEdge[]; - nodes: AppEventType[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `AppEvent` values. */ -export interface AppEventConnection { - edges: AppEventEdge[]; - nodes: AppEvent[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `AppLevelGrant` values. */ -export interface AppLevelGrantConnection { - edges: AppLevelGrantEdge[]; - nodes: AppLevelGrant[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `AppLevelRequirement` values. */ -export interface AppLevelRequirementConnection { - edges: AppLevelRequirementEdge[]; - nodes: AppLevelRequirement[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `AppLevel` values. */ -export interface AppLevelConnection { - edges: AppLevelEdge[]; - nodes: AppLevel[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `AppLimitCap` values. */ export interface AppLimitCapConnection { edges: AppLimitCapEdge[]; @@ -3961,48 +1899,6 @@ export interface AppLimitConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `BillingUsageSummary` values. */ -export interface BillingUsageSummaryConnection { - edges: BillingUsageSummaryEdge[]; - nodes: BillingUsageSummary[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `Ledger` values. */ -export interface LedgerConnection { - edges: LedgerEdge[]; - nodes: Ledger[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `MeterCredit` values. */ -export interface MeterCreditConnection { - edges: MeterCreditEdge[]; - nodes: MeterCredit[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `MeterDefault` values. */ -export interface MeterDefaultConnection { - edges: MeterDefaultEdge[]; - nodes: MeterDefault[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `MeterSource` values. */ -export interface MeterSourceConnection { - edges: MeterSourceEdge[]; - nodes: MeterSource[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `Meter` values. */ -export interface MeterConnection { - edges: MeterEdge[]; - nodes: Meter[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `OrgLimitAggregate` values. */ export interface OrgLimitAggregateConnection { edges: OrgLimitAggregateEdge[]; @@ -4059,97 +1955,6 @@ export interface OrgLimitConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `PlanCap` values. */ -export interface PlanCapConnection { - edges: PlanCapEdge[]; - nodes: PlanCap[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `PlanLimit` values. */ -export interface PlanLimitConnection { - edges: PlanLimitEdge[]; - nodes: PlanLimit[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `PlanMeterLimit` values. */ -export interface PlanMeterLimitConnection { - edges: PlanMeterLimitEdge[]; - nodes: PlanMeterLimit[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `PlanOverride` values. */ -export interface PlanOverrideConnection { - edges: PlanOverrideEdge[]; - nodes: PlanOverride[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `PlanPricing` values. */ -export interface PlanPricingConnection { - edges: PlanPricingEdge[]; - nodes: PlanPricing[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `PlanSubscription` values. */ -export interface PlanSubscriptionConnection { - edges: PlanSubscriptionEdge[]; - nodes: PlanSubscription[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `Plan` values. */ -export interface PlanConnection { - edges: PlanEdge[]; - nodes: Plan[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface CreateAppAchievementRewardPayload { - /** The `AppAchievementReward` that was created by this mutation. */ - appAchievementReward?: AppAchievementReward | null; - appAchievementRewardEdge?: AppAchievementRewardEdge | null; - clientMutationId?: string | null; -} -export interface CreateAppEventPayload { - /** The `AppEvent` that was created by this mutation. */ - appEvent?: AppEvent | null; - appEventEdge?: AppEventEdge | null; - clientMutationId?: string | null; -} -export interface CreateAppEventAggregatePayload { - /** The `AppEventAggregate` that was created by this mutation. */ - appEventAggregate?: AppEventAggregate | null; - appEventAggregateEdge?: AppEventAggregateEdge | null; - clientMutationId?: string | null; -} -export interface CreateAppEventTypePayload { - /** The `AppEventType` that was created by this mutation. */ - appEventType?: AppEventType | null; - appEventTypeEdge?: AppEventTypeEdge | null; - clientMutationId?: string | null; -} -export interface CreateAppLevelPayload { - /** The `AppLevel` that was created by this mutation. */ - appLevel?: AppLevel | null; - appLevelEdge?: AppLevelEdge | null; - clientMutationId?: string | null; -} -export interface CreateAppLevelGrantPayload { - /** The `AppLevelGrant` that was created by this mutation. */ - appLevelGrant?: AppLevelGrant | null; - appLevelGrantEdge?: AppLevelGrantEdge | null; - clientMutationId?: string | null; -} -export interface CreateAppLevelRequirementPayload { - /** The `AppLevelRequirement` that was created by this mutation. */ - appLevelRequirement?: AppLevelRequirement | null; - appLevelRequirementEdge?: AppLevelRequirementEdge | null; - clientMutationId?: string | null; -} export interface CreateAppLimitPayload { /** The `AppLimit` that was created by this mutation. */ appLimit?: AppLimit | null; @@ -4210,42 +2015,6 @@ export interface CreateAppLimitWarningPayload { appLimitWarningEdge?: AppLimitWarningEdge | null; clientMutationId?: string | null; } -export interface CreateBillingUsageSummaryPayload { - /** The `BillingUsageSummary` that was created by this mutation. */ - billingUsageSummary?: BillingUsageSummary | null; - billingUsageSummaryEdge?: BillingUsageSummaryEdge | null; - clientMutationId?: string | null; -} -export interface CreateLedgerPayload { - clientMutationId?: string | null; - /** The `Ledger` that was created by this mutation. */ - ledger?: Ledger | null; - ledgerEdge?: LedgerEdge | null; -} -export interface CreateMeterPayload { - clientMutationId?: string | null; - /** The `Meter` that was created by this mutation. */ - meter?: Meter | null; - meterEdge?: MeterEdge | null; -} -export interface CreateMeterCreditPayload { - clientMutationId?: string | null; - /** The `MeterCredit` that was created by this mutation. */ - meterCredit?: MeterCredit | null; - meterCreditEdge?: MeterCreditEdge | null; -} -export interface CreateMeterDefaultPayload { - clientMutationId?: string | null; - /** The `MeterDefault` that was created by this mutation. */ - meterDefault?: MeterDefault | null; - meterDefaultEdge?: MeterDefaultEdge | null; -} -export interface CreateMeterSourcePayload { - clientMutationId?: string | null; - /** The `MeterSource` that was created by this mutation. */ - meterSource?: MeterSource | null; - meterSourceEdge?: MeterSourceEdge | null; -} export interface CreateOrgLimitPayload { clientMutationId?: string | null; /** The `OrgLimit` that was created by this mutation. */ @@ -4294,90 +2063,6 @@ export interface CreateOrgLimitWarningPayload { orgLimitWarning?: OrgLimitWarning | null; orgLimitWarningEdge?: OrgLimitWarningEdge | null; } -export interface CreatePlanPayload { - clientMutationId?: string | null; - /** The `Plan` that was created by this mutation. */ - plan?: Plan | null; - planEdge?: PlanEdge | null; -} -export interface CreatePlanCapPayload { - clientMutationId?: string | null; - /** The `PlanCap` that was created by this mutation. */ - planCap?: PlanCap | null; - planCapEdge?: PlanCapEdge | null; -} -export interface CreatePlanLimitPayload { - clientMutationId?: string | null; - /** The `PlanLimit` that was created by this mutation. */ - planLimit?: PlanLimit | null; - planLimitEdge?: PlanLimitEdge | null; -} -export interface CreatePlanMeterLimitPayload { - clientMutationId?: string | null; - /** The `PlanMeterLimit` that was created by this mutation. */ - planMeterLimit?: PlanMeterLimit | null; - planMeterLimitEdge?: PlanMeterLimitEdge | null; -} -export interface CreatePlanOverridePayload { - clientMutationId?: string | null; - /** The `PlanOverride` that was created by this mutation. */ - planOverride?: PlanOverride | null; - planOverrideEdge?: PlanOverrideEdge | null; -} -export interface CreatePlanPricingPayload { - clientMutationId?: string | null; - /** The `PlanPricing` that was created by this mutation. */ - planPricing?: PlanPricing | null; - planPricingEdge?: PlanPricingEdge | null; -} -export interface CreatePlanSubscriptionPayload { - clientMutationId?: string | null; - /** The `PlanSubscription` that was created by this mutation. */ - planSubscription?: PlanSubscription | null; - planSubscriptionEdge?: PlanSubscriptionEdge | null; -} -export interface DeleteAppAchievementRewardPayload { - /** The `AppAchievementReward` that was deleted by this mutation. */ - appAchievementReward?: AppAchievementReward | null; - appAchievementRewardEdge?: AppAchievementRewardEdge | null; - clientMutationId?: string | null; -} -export interface DeleteAppEventPayload { - /** The `AppEvent` that was deleted by this mutation. */ - appEvent?: AppEvent | null; - appEventEdge?: AppEventEdge | null; - clientMutationId?: string | null; -} -export interface DeleteAppEventAggregatePayload { - /** The `AppEventAggregate` that was deleted by this mutation. */ - appEventAggregate?: AppEventAggregate | null; - appEventAggregateEdge?: AppEventAggregateEdge | null; - clientMutationId?: string | null; -} -export interface DeleteAppEventTypePayload { - /** The `AppEventType` that was deleted by this mutation. */ - appEventType?: AppEventType | null; - appEventTypeEdge?: AppEventTypeEdge | null; - clientMutationId?: string | null; -} -export interface DeleteAppLevelPayload { - /** The `AppLevel` that was deleted by this mutation. */ - appLevel?: AppLevel | null; - appLevelEdge?: AppLevelEdge | null; - clientMutationId?: string | null; -} -export interface DeleteAppLevelGrantPayload { - /** The `AppLevelGrant` that was deleted by this mutation. */ - appLevelGrant?: AppLevelGrant | null; - appLevelGrantEdge?: AppLevelGrantEdge | null; - clientMutationId?: string | null; -} -export interface DeleteAppLevelRequirementPayload { - /** The `AppLevelRequirement` that was deleted by this mutation. */ - appLevelRequirement?: AppLevelRequirement | null; - appLevelRequirementEdge?: AppLevelRequirementEdge | null; - clientMutationId?: string | null; -} export interface DeleteAppLimitPayload { /** The `AppLimit` that was deleted by this mutation. */ appLimit?: AppLimit | null; @@ -4438,42 +2123,6 @@ export interface DeleteAppLimitWarningPayload { appLimitWarningEdge?: AppLimitWarningEdge | null; clientMutationId?: string | null; } -export interface DeleteBillingUsageSummaryPayload { - /** The `BillingUsageSummary` that was deleted by this mutation. */ - billingUsageSummary?: BillingUsageSummary | null; - billingUsageSummaryEdge?: BillingUsageSummaryEdge | null; - clientMutationId?: string | null; -} -export interface DeleteLedgerPayload { - clientMutationId?: string | null; - /** The `Ledger` that was deleted by this mutation. */ - ledger?: Ledger | null; - ledgerEdge?: LedgerEdge | null; -} -export interface DeleteMeterPayload { - clientMutationId?: string | null; - /** The `Meter` that was deleted by this mutation. */ - meter?: Meter | null; - meterEdge?: MeterEdge | null; -} -export interface DeleteMeterCreditPayload { - clientMutationId?: string | null; - /** The `MeterCredit` that was deleted by this mutation. */ - meterCredit?: MeterCredit | null; - meterCreditEdge?: MeterCreditEdge | null; -} -export interface DeleteMeterDefaultPayload { - clientMutationId?: string | null; - /** The `MeterDefault` that was deleted by this mutation. */ - meterDefault?: MeterDefault | null; - meterDefaultEdge?: MeterDefaultEdge | null; -} -export interface DeleteMeterSourcePayload { - clientMutationId?: string | null; - /** The `MeterSource` that was deleted by this mutation. */ - meterSource?: MeterSource | null; - meterSourceEdge?: MeterSourceEdge | null; -} export interface DeleteOrgLimitPayload { clientMutationId?: string | null; /** The `OrgLimit` that was deleted by this mutation. */ @@ -4522,70 +2171,14 @@ export interface DeleteOrgLimitWarningPayload { orgLimitWarning?: OrgLimitWarning | null; orgLimitWarningEdge?: OrgLimitWarningEdge | null; } -export interface DeletePlanPayload { - clientMutationId?: string | null; - /** The `Plan` that was deleted by this mutation. */ - plan?: Plan | null; - planEdge?: PlanEdge | null; -} -export interface DeletePlanCapPayload { - clientMutationId?: string | null; - /** The `PlanCap` that was deleted by this mutation. */ - planCap?: PlanCap | null; - planCapEdge?: PlanCapEdge | null; -} -export interface DeletePlanLimitPayload { - clientMutationId?: string | null; - /** The `PlanLimit` that was deleted by this mutation. */ - planLimit?: PlanLimit | null; - planLimitEdge?: PlanLimitEdge | null; -} -export interface DeletePlanMeterLimitPayload { - clientMutationId?: string | null; - /** The `PlanMeterLimit` that was deleted by this mutation. */ - planMeterLimit?: PlanMeterLimit | null; - planMeterLimitEdge?: PlanMeterLimitEdge | null; -} -export interface DeletePlanOverridePayload { - clientMutationId?: string | null; - /** The `PlanOverride` that was deleted by this mutation. */ - planOverride?: PlanOverride | null; - planOverrideEdge?: PlanOverrideEdge | null; -} -export interface DeletePlanPricingPayload { - clientMutationId?: string | null; - /** The `PlanPricing` that was deleted by this mutation. */ - planPricing?: PlanPricing | null; - planPricingEdge?: PlanPricingEdge | null; -} -export interface DeletePlanSubscriptionPayload { - clientMutationId?: string | null; - /** The `PlanSubscription` that was deleted by this mutation. */ - planSubscription?: PlanSubscription | null; - planSubscriptionEdge?: PlanSubscriptionEdge | null; -} -export interface GrantAchievementPayload { - 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 interface RecomputeCapabilitiesPayload { - clientMutationId?: string | null; -} -export interface RevokeAchievementPayload { - clientMutationId?: string | null; + /** The logical bucket row that was queued for reconciliation. */ + bucketId: string; + bucketKey: string; + /** The reconciler job enqueued to provision this bucket. */ + jobId: string; + /** The physical bucket name already recorded, or null when reconciliation has not completed. */ + physicalName?: string | null; } export interface SeedAppLimitCapsDefaultsPayload { clientMutationId?: string | null; @@ -4595,10 +2188,6 @@ export interface SeedAppLimitDefaultsPayload { clientMutationId?: string | null; result?: boolean | null; } -export interface SeedMeterDefaultsPayload { - clientMutationId?: string | null; - result?: boolean | null; -} export interface SeedOrgLimitCapsDefaultsPayload { clientMutationId?: string | null; result?: boolean | null; @@ -4607,56 +2196,6 @@ export interface SeedOrgLimitDefaultsPayload { clientMutationId?: string | null; result?: boolean | null; } -export interface SeedPlanPayload { - clientMutationId?: string | null; - result?: string | null; -} -export interface SeedTrustLadderPayload { - clientMutationId?: string | null; - result?: boolean | null; -} -export interface UpdateAppAchievementRewardPayload { - /** The `AppAchievementReward` that was updated by this mutation. */ - appAchievementReward?: AppAchievementReward | null; - appAchievementRewardEdge?: AppAchievementRewardEdge | null; - clientMutationId?: string | null; -} -export interface UpdateAppEventPayload { - /** The `AppEvent` that was updated by this mutation. */ - appEvent?: AppEvent | null; - appEventEdge?: AppEventEdge | null; - clientMutationId?: string | null; -} -export interface UpdateAppEventAggregatePayload { - /** The `AppEventAggregate` that was updated by this mutation. */ - appEventAggregate?: AppEventAggregate | null; - appEventAggregateEdge?: AppEventAggregateEdge | null; - clientMutationId?: string | null; -} -export interface UpdateAppEventTypePayload { - /** The `AppEventType` that was updated by this mutation. */ - appEventType?: AppEventType | null; - appEventTypeEdge?: AppEventTypeEdge | null; - clientMutationId?: string | null; -} -export interface UpdateAppLevelPayload { - /** The `AppLevel` that was updated by this mutation. */ - appLevel?: AppLevel | null; - appLevelEdge?: AppLevelEdge | null; - clientMutationId?: string | null; -} -export interface UpdateAppLevelGrantPayload { - /** The `AppLevelGrant` that was updated by this mutation. */ - appLevelGrant?: AppLevelGrant | null; - appLevelGrantEdge?: AppLevelGrantEdge | null; - clientMutationId?: string | null; -} -export interface UpdateAppLevelRequirementPayload { - /** The `AppLevelRequirement` that was updated by this mutation. */ - appLevelRequirement?: AppLevelRequirement | null; - appLevelRequirementEdge?: AppLevelRequirementEdge | null; - clientMutationId?: string | null; -} export interface UpdateAppLimitPayload { /** The `AppLimit` that was updated by this mutation. */ appLimit?: AppLimit | null; @@ -4717,42 +2256,6 @@ export interface UpdateAppLimitWarningPayload { appLimitWarningEdge?: AppLimitWarningEdge | null; clientMutationId?: string | null; } -export interface UpdateBillingUsageSummaryPayload { - /** The `BillingUsageSummary` that was updated by this mutation. */ - billingUsageSummary?: BillingUsageSummary | null; - billingUsageSummaryEdge?: BillingUsageSummaryEdge | null; - clientMutationId?: string | null; -} -export interface UpdateLedgerPayload { - clientMutationId?: string | null; - /** The `Ledger` that was updated by this mutation. */ - ledger?: Ledger | null; - ledgerEdge?: LedgerEdge | null; -} -export interface UpdateMeterPayload { - clientMutationId?: string | null; - /** The `Meter` that was updated by this mutation. */ - meter?: Meter | null; - meterEdge?: MeterEdge | null; -} -export interface UpdateMeterCreditPayload { - clientMutationId?: string | null; - /** The `MeterCredit` that was updated by this mutation. */ - meterCredit?: MeterCredit | null; - meterCreditEdge?: MeterCreditEdge | null; -} -export interface UpdateMeterDefaultPayload { - clientMutationId?: string | null; - /** The `MeterDefault` that was updated by this mutation. */ - meterDefault?: MeterDefault | null; - meterDefaultEdge?: MeterDefaultEdge | null; -} -export interface UpdateMeterSourcePayload { - clientMutationId?: string | null; - /** The `MeterSource` that was updated by this mutation. */ - meterSource?: MeterSource | null; - meterSourceEdge?: MeterSourceEdge | null; -} export interface UpdateOrgLimitPayload { clientMutationId?: string | null; /** The `OrgLimit` that was updated by this mutation. */ @@ -4801,48 +2304,6 @@ export interface UpdateOrgLimitWarningPayload { orgLimitWarning?: OrgLimitWarning | null; orgLimitWarningEdge?: OrgLimitWarningEdge | null; } -export interface UpdatePlanPayload { - clientMutationId?: string | null; - /** The `Plan` that was updated by this mutation. */ - plan?: Plan | null; - planEdge?: PlanEdge | null; -} -export interface UpdatePlanCapPayload { - clientMutationId?: string | null; - /** The `PlanCap` that was updated by this mutation. */ - planCap?: PlanCap | null; - planCapEdge?: PlanCapEdge | null; -} -export interface UpdatePlanLimitPayload { - clientMutationId?: string | null; - /** The `PlanLimit` that was updated by this mutation. */ - planLimit?: PlanLimit | null; - planLimitEdge?: PlanLimitEdge | null; -} -export interface UpdatePlanMeterLimitPayload { - clientMutationId?: string | null; - /** The `PlanMeterLimit` that was updated by this mutation. */ - planMeterLimit?: PlanMeterLimit | null; - planMeterLimitEdge?: PlanMeterLimitEdge | null; -} -export interface UpdatePlanOverridePayload { - clientMutationId?: string | null; - /** The `PlanOverride` that was updated by this mutation. */ - planOverride?: PlanOverride | null; - planOverrideEdge?: PlanOverrideEdge | null; -} -export interface UpdatePlanPricingPayload { - clientMutationId?: string | null; - /** The `PlanPricing` that was updated by this mutation. */ - planPricing?: PlanPricing | null; - planPricingEdge?: PlanPricingEdge | null; -} -export interface UpdatePlanSubscriptionPayload { - clientMutationId?: string | null; - /** The `PlanSubscription` that was updated by this mutation. */ - planSubscription?: PlanSubscription | null; - planSubscriptionEdge?: PlanSubscriptionEdge | null; -} /** Information about a database table */ export interface MetaTable { constraints: MetaConstraints; @@ -4870,11 +2331,11 @@ export interface MetaTable { tableName: string; uniqueConstraints: MetaUniqueConstraint[]; } -/** A `AppAchievementReward` edge in the connection. */ -export interface AppAchievementRewardEdge { +/** A `AppLimitCap` edge in the connection. */ +export interface AppLimitCapEdge { cursor?: string | null; - /** The `AppAchievementReward` at the end of the edge. */ - node?: AppAchievementReward | null; + /** The `AppLimitCap` at the end of the edge. */ + node?: AppLimitCap | null; } /** Information about pagination in a connection. */ export interface PageInfo { @@ -4887,48 +2348,6 @@ export interface PageInfo { /** When paginating backwards, the cursor to continue. */ startCursor?: string | null; } -/** A `AppEventAggregate` edge in the connection. */ -export interface AppEventAggregateEdge { - cursor?: string | null; - /** The `AppEventAggregate` at the end of the edge. */ - node?: AppEventAggregate | null; -} -/** A `AppEventType` edge in the connection. */ -export interface AppEventTypeEdge { - cursor?: string | null; - /** The `AppEventType` at the end of the edge. */ - node?: AppEventType | null; -} -/** A `AppEvent` edge in the connection. */ -export interface AppEventEdge { - cursor?: string | null; - /** The `AppEvent` at the end of the edge. */ - node?: AppEvent | null; -} -/** A `AppLevelGrant` edge in the connection. */ -export interface AppLevelGrantEdge { - cursor?: string | null; - /** The `AppLevelGrant` at the end of the edge. */ - node?: AppLevelGrant | null; -} -/** A `AppLevelRequirement` edge in the connection. */ -export interface AppLevelRequirementEdge { - cursor?: string | null; - /** The `AppLevelRequirement` at the end of the edge. */ - node?: AppLevelRequirement | null; -} -/** A `AppLevel` edge in the connection. */ -export interface AppLevelEdge { - cursor?: string | null; - /** The `AppLevel` at the end of the edge. */ - node?: AppLevel | null; -} -/** A `AppLimitCap` edge in the connection. */ -export interface AppLimitCapEdge { - cursor?: string | null; - /** The `AppLimitCap` at the end of the edge. */ - node?: AppLimitCap | null; -} /** A `AppLimitCapsDefault` edge in the connection. */ export interface AppLimitCapsDefaultEdge { cursor?: string | null; @@ -4983,42 +2402,6 @@ export interface AppLimitEdge { /** The `AppLimit` at the end of the edge. */ node?: AppLimit | null; } -/** A `BillingUsageSummary` edge in the connection. */ -export interface BillingUsageSummaryEdge { - cursor?: string | null; - /** The `BillingUsageSummary` at the end of the edge. */ - node?: BillingUsageSummary | null; -} -/** A `Ledger` edge in the connection. */ -export interface LedgerEdge { - cursor?: string | null; - /** The `Ledger` at the end of the edge. */ - node?: Ledger | null; -} -/** A `MeterCredit` edge in the connection. */ -export interface MeterCreditEdge { - cursor?: string | null; - /** The `MeterCredit` at the end of the edge. */ - node?: MeterCredit | null; -} -/** A `MeterDefault` edge in the connection. */ -export interface MeterDefaultEdge { - cursor?: string | null; - /** The `MeterDefault` at the end of the edge. */ - node?: MeterDefault | null; -} -/** A `MeterSource` edge in the connection. */ -export interface MeterSourceEdge { - cursor?: string | null; - /** The `MeterSource` at the end of the edge. */ - node?: MeterSource | null; -} -/** A `Meter` edge in the connection. */ -export interface MeterEdge { - cursor?: string | null; - /** The `Meter` at the end of the edge. */ - node?: Meter | null; -} /** A `OrgLimitAggregate` edge in the connection. */ export interface OrgLimitAggregateEdge { cursor?: string | null; @@ -5067,48 +2450,6 @@ export interface OrgLimitEdge { /** The `OrgLimit` at the end of the edge. */ node?: OrgLimit | null; } -/** A `PlanCap` edge in the connection. */ -export interface PlanCapEdge { - cursor?: string | null; - /** The `PlanCap` at the end of the edge. */ - node?: PlanCap | null; -} -/** A `PlanLimit` edge in the connection. */ -export interface PlanLimitEdge { - cursor?: string | null; - /** The `PlanLimit` at the end of the edge. */ - node?: PlanLimit | null; -} -/** A `PlanMeterLimit` edge in the connection. */ -export interface PlanMeterLimitEdge { - cursor?: string | null; - /** The `PlanMeterLimit` at the end of the edge. */ - node?: PlanMeterLimit | null; -} -/** A `PlanOverride` edge in the connection. */ -export interface PlanOverrideEdge { - cursor?: string | null; - /** The `PlanOverride` at the end of the edge. */ - node?: PlanOverride | null; -} -/** A `PlanPricing` edge in the connection. */ -export interface PlanPricingEdge { - cursor?: string | null; - /** The `PlanPricing` at the end of the edge. */ - node?: PlanPricing | null; -} -/** A `PlanSubscription` edge in the connection. */ -export interface PlanSubscriptionEdge { - cursor?: string | null; - /** The `PlanSubscription` at the end of the edge. */ - node?: PlanSubscription | null; -} -/** A `Plan` edge in the connection. */ -export interface PlanEdge { - cursor?: string | null; - /** The `Plan` at the end of the edge. */ - node?: Plan | null; -} /** Table constraints */ export interface MetaConstraints { foreignKey: MetaForeignKeyConstraint[]; @@ -5221,10 +2562,18 @@ export interface MetaSearch { } /** Storage metadata for a table */ export interface MetaStorage { + /** GraphQL type name of the plane's buckets table */ + bucketsType: string; + /** Computed download-URL field on the files type; null on the buckets side */ + downloadUrlField?: string | null; + /** GraphQL type name of the plane's files table */ + filesType: string; /** Whether this table is a storage buckets table */ isBucketsTable: boolean; /** Whether this table is a storage files table */ isFilesTable: boolean; + /** The plane's GraphQL upload surface */ + upload: MetaStorageUpload; } /** Information about a unique constraint */ export interface MetaUniqueConstraint { @@ -5307,6 +2656,27 @@ export interface MetaSearchConfig { /** JSON-encoded per-adapter score weights */ weights?: string | null; } +/** The GraphQL upload surface of a storage plane, derived from the registry facts the presigned-url plugin emits from */ +export interface MetaStorageUpload { + /** Per-file input type inside the bulk input */ + bulkFileInputType: string; + /** Per-file payload type inside the bulk payload */ + bulkFilePayloadType: string; + /** Input type of the bulk upload mutation */ + bulkInputType: string; + /** Root mutation field for bulk upload */ + bulkMutation: string; + /** Payload type of the bulk upload mutation */ + bulkPayloadType: string; + /** Input type of the single upload mutation */ + inputType: string; + /** Root mutation field for single-file upload (e.g. uploadAppFile) */ + mutation: string; + /** Payload type of the single upload mutation */ + payloadType: string; + /** Whether the upload input requires ownerId (entity-keyed plane) */ + requiresOwnerId: boolean; +} /** 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. */ export interface MetaScalarEncoding { /** For 'vector': declared length, else null. */ diff --git a/sdk/constructive-react/src/usage/types.ts b/sdk/constructive-react/src/usage/types.ts index 5c7a9cbebc..122c65e73d 100644 --- a/sdk/constructive-react/src/usage/types.ts +++ b/sdk/constructive-react/src/usage/types.ts @@ -3,76 +3,6 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ -export type ConstructiveInternalTypeImage = unknown; -export interface AppAchievementReward { - amount: number | null; - createdAt: string | null; - creditType: string | null; - expiresInterval: string | null; - id: string | null; - levelName: string | null; - rewardType: string | null; - targetName: string | null; - updatedAt: string | null; -} -export interface AppEventAggregate { - actorId: string | null; - count: number | null; - createdAt: string | null; - id: string | null; - name: string | null; - periodStart: string | null; - updatedAt: string | null; -} -export interface AppEvent { - actorId: string | null; - count: number | null; - createdAt: string | null; - id: string | null; - name: string | null; -} -export interface AppEventType { - aggregation: string | null; - category: string | null; - createdAt: string | null; - description: string | null; - feedsLevels: boolean | null; - id: string | null; - isActive: boolean | null; - name: string | null; - periodInterval: string | null; - updatedAt: string | null; -} -export interface AppLevel { - createdAt: string | null; - description: string | null; - id: string | null; - image: ConstructiveInternalTypeImage | null; - name: string | null; - ownerId: string | null; - updatedAt: string | null; -} -export interface AppLevelGrant { - actorId: string | null; - createdAt: string | null; - expiresAt: string | null; - id: string | null; - levelName: string | null; - periodStart: string | null; - updatedAt: string | null; -} -export interface AppLevelRequirement { - createdAt: string | null; - description: string | null; - groupKey: string | null; - id: string | null; - level: string | null; - metric: string | null; - name: string | null; - priority: number | null; - requiredCount: number | null; - updatedAt: string | null; -} export interface AppLimitCap { entityId: string | null; id: string | null; @@ -156,76 +86,6 @@ export interface AppLimitWarning { thresholdValue: string | null; warningType: string | null; } -export interface BillingUsageSummary { - creditsConsumed: string | null; - entityId: string | null; - entityType: string | null; - id: string | null; - meterSlug: string | null; - organizationId: string | null; - overageUnits: string | null; - periodEnd: string | null; - periodStart: string | null; - planLimit: string | null; - quantityUsed: string | null; -} -export interface Ledger { - createdAt: string | null; - delta: string | null; - entityId: string | null; - entityType: string | null; - entryType: string | null; - id: string | null; - ledgerClass: string | null; - metadata: unknown | null; - meterSlug: string | null; - organizationId: string | null; - usageAfter: string | null; -} -export interface Meter { - aggregation: string | null; - categoryMeter: string | null; - creditCost: number | null; - displayName: string | null; - id: string | null; - isActive: boolean | null; - meterType: string | null; - periodInterval: string | null; - rolloverCap: string | null; - slug: string | null; - unit: string | null; -} -export interface MeterCredit { - amount: string | null; - createdAt: string | null; - creditType: string | null; - entityId: string | null; - entityType: string | null; - expiresAt: string | null; - id: string | null; - meterId: string | null; - organizationId: string | null; - reason: string | null; -} -export interface MeterDefault { - categoryMeter: string | null; - creditCost: string | null; - defaultPlanLimit: string | null; - displayName: string | null; - id: string | null; - isActive: boolean | null; - meterType: string | null; - slug: string | null; - unit: string | null; -} -export interface MeterSource { - aggregationType: string | null; - dimensionPath: string | null; - id: string | null; - isActive: boolean | null; - meterSlug: string | null; - sourceMetric: string | null; -} export interface OrgLimitAggregate { entityId: string | null; entityType: string | null; @@ -309,57 +169,6 @@ export interface OrgLimitWarning { thresholdValue: string | null; warningType: string | null; } -export interface PlanCap { - capName: string | null; - capValue: string | null; - id: string | null; - planId: string | null; -} -export interface Plan { - description: string | null; - id: string | null; - isActive: boolean | null; - name: string | null; -} -export interface PlanLimit { - id: string | null; - limitName: string | null; - maxValue: string | null; - planId: string | null; -} -export interface PlanMeterLimit { - id: string | null; - meterSlug: string | null; - planId: string | null; - planLimit: string | null; -} -export interface PlanOverride { - entityId: string | null; - expiresAt: string | null; - id: string | null; - limitName: string | null; - maxValue: string | null; - reason: string | null; -} -export interface PlanPricing { - billingInterval: string | null; - currency: string | null; - discountPercent: string | null; - id: string | null; - isActive: boolean | null; - planId: string | null; - price: string | null; -} -export interface PlanSubscription { - endsAt: string | null; - entityId: string | null; - entityType: string | null; - id: string | null; - isActive: boolean | null; - organizationId: string | null; - planId: string | null; - startsAt: string | null; -} export interface StringFilter { isNull?: boolean; equalTo?: string; diff --git a/sdk/constructive-sdk/README.md b/sdk/constructive-sdk/README.md index 5829fd2bef..8be422cae7 100644 --- a/sdk/constructive-sdk/README.md +++ b/sdk/constructive-sdk/README.md @@ -19,4 +19,6 @@ | infra | - | ORM | [./src/infra/README.md](./src/infra/README.md) | | modules | - | ORM | [./src/modules/README.md](./src/modules/README.md) | | objects | - | ORM | [./src/objects/README.md](./src/objects/README.md) | +| remote | - | ORM | [./src/remote/README.md](./src/remote/README.md) | +| storage | - | ORM | [./src/storage/README.md](./src/storage/README.md) | | usage | - | ORM | [./src/usage/README.md](./src/usage/README.md) | diff --git a/sdk/constructive-sdk/schemas/admin.graphql b/sdk/constructive-sdk/schemas/admin.graphql index 2f347aad2d..16035ba84b 100644 --- a/sdk/constructive-sdk/schemas/admin.graphql +++ b/sdk/constructive-sdk/schemas/admin.graphql @@ -122,164 +122,10 @@ input AppAdminGrantPatch { updatedAt: Datetime } -""" -Defines available capabilities as named bits within a bitmask, used by the RBAC system for access control -""" -type AppCapability { - """ - Reads a single `AppCapabilityDefaultCapability` that is related to this `AppCapability`. - """ - appCapabilityDefaultCapabilityByCapabilityId: AppCapabilityDefaultCapability - - """ - Reads and enables pagination through a set of `AppCapabilityDefaultGrant`. - """ - appCapabilityDefaultGrantsByCapabilityId( - """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 `AppCapabilityDefaultGrant`.""" - orderBy: [AppCapabilityDefaultGrantOrderBy!] = [PRIMARY_KEY_ASC] - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: AppCapabilityDefaultGrantFilter - ): AppCapabilityDefaultGrantConnection! - - """Reads and enables pagination through a set of `AppProfileCapability`.""" - appProfileCapabilitiesByCapabilityId( - """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 `AppProfileCapability`.""" - orderBy: [AppProfileCapabilityOrderBy!] = [PRIMARY_KEY_ASC] - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: AppProfileCapabilityFilter - ): AppProfileCapabilityConnection! - - """ - Reads and enables pagination through a set of `AppProfileDefinitionGrant`. - """ - appProfileDefinitionGrantsByCapabilityId( - """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 `AppProfileDefinitionGrant`.""" - orderBy: [AppProfileDefinitionGrantOrderBy!] = [PRIMARY_KEY_ASC] - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: AppProfileDefinitionGrantFilter - ): AppProfileDefinitionGrantConnection! - - """ - Position of this capability in the bitmask (1-indexed), must be unique per capability set - """ - bitnum: Int - - """ - Pre-computed bitmask with only this capability bit set, used for bitwise OR/AND operations - """ - bitstr: BitString! - - """Human-readable description of what this capability allows""" - description: String - id: UUID! - - """ - Kind of catalog entry: capability (capability) or level (achievement level) - """ - kind: String! - - """Human-readable capability name (e.g. read, write, manage)""" - name: String -} - -"""A connection to a list of `AppCapability` values.""" -type AppCapabilityConnection { - """ - A list of edges which contains the `AppCapability` and cursor to aid in pagination. - """ - edges: [AppCapabilityEdge]! - - """A list of `AppCapability` objects.""" - nodes: [AppCapability]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `AppCapability` you could get from the connection.""" - totalCount: Int! -} - -""" -Stores the default capability bitmask assigned to new members upon joining -""" -type AppCapabilityDefault { - """Default capability bitmask applied to new members""" - capabilities: BitString! - id: UUID! -} - """ Join table linking capability defaults to individual capabilities; recompute trigger rebuilds the defaults bitmask """ type AppCapabilityDefaultCapability { - """ - Reads a single `AppCapability` that is related to this `AppCapabilityDefaultCapability`. - """ - capability: AppCapability - """References the capability included in the defaults bundle""" capabilityId: UUID! createdAt: Datetime @@ -322,9 +168,6 @@ input AppCapabilityDefaultCapabilityFilter { """Checks for all expressions in this list.""" and: [AppCapabilityDefaultCapabilityFilter!] - """Filter by the object’s `capability` relation.""" - capability: AppCapabilityFilter - """Filter by the object’s `capabilityId` field.""" capabilityId: UUIDFilter @@ -379,63 +222,10 @@ input AppCapabilityDefaultCapabilityPatch { updatedAt: Datetime } -"""A connection to a list of `AppCapabilityDefault` values.""" -type AppCapabilityDefaultConnection { - """ - A list of edges which contains the `AppCapabilityDefault` and cursor to aid in pagination. - """ - edges: [AppCapabilityDefaultEdge]! - - """A list of `AppCapabilityDefault` objects.""" - nodes: [AppCapabilityDefault]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `AppCapabilityDefault` you could get from the connection. - """ - totalCount: Int! -} - -"""A `AppCapabilityDefault` edge in the connection.""" -type AppCapabilityDefaultEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `AppCapabilityDefault` at the end of the edge.""" - node: AppCapabilityDefault -} - -""" -A filter to be used against `AppCapabilityDefault` object types. All fields are combined with a logical ‘and.’ -""" -input AppCapabilityDefaultFilter { - """Checks for all expressions in this list.""" - and: [AppCapabilityDefaultFilter!] - - """Filter by the object’s `capabilities` field.""" - capabilities: BitStringFilter - - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Negates the expression.""" - not: AppCapabilityDefaultFilter - - """Checks for any expressions in this list.""" - or: [AppCapabilityDefaultFilter!] -} - """ Audit log of capability additions and removals from the defaults bitmask """ type AppCapabilityDefaultGrant { - """ - Reads a single `AppCapability` that is related to this `AppCapabilityDefaultGrant`. - """ - capability: AppCapability - """References the capability being added to or removed from defaults""" capabilityId: UUID! createdAt: Datetime @@ -482,9 +272,6 @@ input AppCapabilityDefaultGrantFilter { """Checks for all expressions in this list.""" and: [AppCapabilityDefaultGrantFilter!] - """Filter by the object’s `capability` relation.""" - capability: AppCapabilityFilter - """Filter by the object’s `capabilityId` field.""" capabilityId: UUIDFilter @@ -557,301 +344,88 @@ input AppCapabilityDefaultGrantPatch { updatedAt: Datetime } -"""An input for mutations affecting `AppCapabilityDefault`""" -input AppCapabilityDefaultInput { - """Default capability bitmask applied to new members""" - capabilities: BitString - id: UUID -} - -"""Methods to use when ordering `AppCapabilityDefault`.""" -enum AppCapabilityDefaultOrderBy { - CAPABILITIES_ASC - CAPABILITIES_DESC - ID_ASC - ID_DESC - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC -} - """ -Represents an update to a `AppCapabilityDefault`. Fields that are set will be updated. +Records of successfully claimed invitations, linking senders to receivers """ -input AppCapabilityDefaultPatch { - """Default capability bitmask applied to new members""" - capabilities: BitString - id: UUID -} - -"""A `AppCapability` edge in the connection.""" -type AppCapabilityEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `AppCapability` at the end of the edge.""" - node: AppCapability -} +type AppClaimedInvite { + createdAt: Datetime -""" -A filter to be used against `AppCapability` object types. All fields are combined with a logical ‘and.’ -""" -input AppCapabilityFilter { - """Checks for all expressions in this list.""" - and: [AppCapabilityFilter!] + """Optional JSON payload captured at the time the invite was claimed""" + data: JSON + id: UUID! - """ - Filter by the object’s `appCapabilityDefaultCapabilityByCapabilityId` relation. - """ - appCapabilityDefaultCapabilityByCapabilityId: AppCapabilityDefaultCapabilityFilter + """User ID of the person who claimed and redeemed the invitation""" + receiverId: UUID - """A related `appCapabilityDefaultCapabilityByCapabilityId` exists.""" - appCapabilityDefaultCapabilityByCapabilityIdExists: Boolean + """User ID of the original invitation sender""" + senderId: UUID + updatedAt: Datetime +} +"""A connection to a list of `AppClaimedInvite` values.""" +type AppClaimedInviteConnection { """ - Filter by the object’s `appCapabilityDefaultGrantsByCapabilityId` relation. + A list of edges which contains the `AppClaimedInvite` and cursor to aid in pagination. """ - appCapabilityDefaultGrantsByCapabilityId: AppCapabilityToManyAppCapabilityDefaultGrantFilter - - """`appCapabilityDefaultGrantsByCapabilityId` exist.""" - appCapabilityDefaultGrantsByCapabilityIdExist: Boolean + edges: [AppClaimedInviteEdge]! - """ - Filter by the object’s `appProfileCapabilitiesByCapabilityId` relation. - """ - appProfileCapabilitiesByCapabilityId: AppCapabilityToManyAppProfileCapabilityFilter + """A list of `AppClaimedInvite` objects.""" + nodes: [AppClaimedInvite]! - """`appProfileCapabilitiesByCapabilityId` exist.""" - appProfileCapabilitiesByCapabilityIdExist: Boolean + """Information to aid in pagination.""" + pageInfo: PageInfo! """ - Filter by the object’s `appProfileDefinitionGrantsByCapabilityId` relation. + The count of *all* `AppClaimedInvite` you could get from the connection. """ - appProfileDefinitionGrantsByCapabilityId: AppCapabilityToManyAppProfileDefinitionGrantFilter + totalCount: Int! +} - """`appProfileDefinitionGrantsByCapabilityId` exist.""" - appProfileDefinitionGrantsByCapabilityIdExist: Boolean +"""A `AppClaimedInvite` edge in the connection.""" +type AppClaimedInviteEdge { + """A cursor for use in pagination.""" + cursor: Cursor - """Filter by the object’s `bitnum` field.""" - bitnum: IntFilter + """The `AppClaimedInvite` at the end of the edge.""" + node: AppClaimedInvite +} - """Filter by the object’s `bitstr` field.""" - bitstr: BitStringFilter +""" +A filter to be used against `AppClaimedInvite` object types. All fields are combined with a logical ‘and.’ +""" +input AppClaimedInviteFilter { + """Checks for all expressions in this list.""" + and: [AppClaimedInviteFilter!] - """Filter by the object’s `description` field.""" - description: StringFilter + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `kind` field.""" - kind: StringFilter - - """Filter by the object’s `name` field.""" - name: StringFilter - """Negates the expression.""" - not: AppCapabilityFilter + not: AppClaimedInviteFilter """Checks for any expressions in this list.""" - or: [AppCapabilityFilter!] -} + or: [AppClaimedInviteFilter!] -"""An input for mutations affecting `AppCapability`""" -input AppCapabilityInput { - """ - Position of this capability in the bitmask (1-indexed), must be unique per capability set - """ - bitnum: Int + """Filter by the object’s `receiverId` field.""" + receiverId: UUIDFilter - """ - Pre-computed bitmask with only this capability bit set, used for bitwise OR/AND operations - """ - bitstr: BitString + """Filter by the object’s `senderId` field.""" + senderId: UUIDFilter - """Human-readable description of what this capability allows""" - description: String - id: UUID + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter +} - """ - Kind of catalog entry: capability (capability) or level (achievement level) - """ - kind: String +"""An input for mutations affecting `AppClaimedInvite`""" +input AppClaimedInviteInput { + createdAt: Datetime - """Human-readable capability name (e.g. read, write, manage)""" - name: String -} - -"""Methods to use when ordering `AppCapability`.""" -enum AppCapabilityOrderBy { - BITNUM_ASC - BITNUM_DESC - BITSTR_ASC - BITSTR_DESC - DESCRIPTION_ASC - DESCRIPTION_DESC - ID_ASC - ID_DESC - KIND_ASC - KIND_DESC - NAME_ASC - NAME_DESC - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC -} - -""" -Represents an update to a `AppCapability`. Fields that are set will be updated. -""" -input AppCapabilityPatch { - """ - Position of this capability in the bitmask (1-indexed), must be unique per capability set - """ - bitnum: Int - - """ - Pre-computed bitmask with only this capability bit set, used for bitwise OR/AND operations - """ - bitstr: BitString - - """Human-readable description of what this capability allows""" - description: String - id: UUID - - """ - Kind of catalog entry: capability (capability) or level (achievement level) - """ - kind: String - - """Human-readable capability name (e.g. read, write, manage)""" - name: String -} - -""" -A filter to be used against many `AppCapabilityDefaultGrant` object types. All fields are combined with a logical ‘and.’ -""" -input AppCapabilityToManyAppCapabilityDefaultGrantFilter { - """Filters to entities where every related entity matches.""" - every: AppCapabilityDefaultGrantFilter - - """Filters to entities where no related entity matches.""" - none: AppCapabilityDefaultGrantFilter - - """Filters to entities where at least one related entity matches.""" - some: AppCapabilityDefaultGrantFilter -} - -""" -A filter to be used against many `AppProfileCapability` object types. All fields are combined with a logical ‘and.’ -""" -input AppCapabilityToManyAppProfileCapabilityFilter { - """Filters to entities where every related entity matches.""" - every: AppProfileCapabilityFilter - - """Filters to entities where no related entity matches.""" - none: AppProfileCapabilityFilter - - """Filters to entities where at least one related entity matches.""" - some: AppProfileCapabilityFilter -} - -""" -A filter to be used against many `AppProfileDefinitionGrant` object types. All fields are combined with a logical ‘and.’ -""" -input AppCapabilityToManyAppProfileDefinitionGrantFilter { - """Filters to entities where every related entity matches.""" - every: AppProfileDefinitionGrantFilter - - """Filters to entities where no related entity matches.""" - none: AppProfileDefinitionGrantFilter - - """Filters to entities where at least one related entity matches.""" - some: AppProfileDefinitionGrantFilter -} - -""" -Records of successfully claimed invitations, linking senders to receivers -""" -type AppClaimedInvite { - createdAt: Datetime - - """Optional JSON payload captured at the time the invite was claimed""" - data: JSON - id: UUID! - - """User ID of the person who claimed and redeemed the invitation""" - receiverId: UUID - - """User ID of the original invitation sender""" - senderId: UUID - updatedAt: Datetime -} - -"""A connection to a list of `AppClaimedInvite` values.""" -type AppClaimedInviteConnection { - """ - A list of edges which contains the `AppClaimedInvite` and cursor to aid in pagination. - """ - edges: [AppClaimedInviteEdge]! - - """A list of `AppClaimedInvite` objects.""" - nodes: [AppClaimedInvite]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `AppClaimedInvite` you could get from the connection. - """ - totalCount: Int! -} - -"""A `AppClaimedInvite` edge in the connection.""" -type AppClaimedInviteEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `AppClaimedInvite` at the end of the edge.""" - node: AppClaimedInvite -} - -""" -A filter to be used against `AppClaimedInvite` object types. All fields are combined with a logical ‘and.’ -""" -input AppClaimedInviteFilter { - """Checks for all expressions in this list.""" - and: [AppClaimedInviteFilter!] - - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter - - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Negates the expression.""" - not: AppClaimedInviteFilter - - """Checks for any expressions in this list.""" - or: [AppClaimedInviteFilter!] - - """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 `AppClaimedInvite`""" -input AppClaimedInviteInput { - createdAt: Datetime - - """Optional JSON payload captured at the time the invite was claimed""" - data: JSON - id: UUID + """Optional JSON payload captured at the time the invite was claimed""" + data: JSON + id: UUID """User ID of the person who claimed and redeemed the invitation""" receiverId: UUID @@ -1076,9 +650,6 @@ type AppInvite { """ phone: String - """Reads a single `AppProfile` that is related to this `AppInvite`.""" - profile: AppProfile - """ Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. """ @@ -1161,12 +732,6 @@ input AppInviteFilter { """Filter by the object’s `phone` field.""" phone: StringFilter - """Filter by the object’s `profile` relation.""" - profile: AppProfileFilter - - """A related `profile` exists.""" - profileExists: Boolean - """Filter by the object’s `profileId` field.""" profileId: UUIDFilter @@ -1315,70 +880,13 @@ type AppMembership { """References the user who holds this membership""" actorId: UUID! - """Reads and enables pagination through a set of `AppMembershipProfile`.""" - appMembershipProfilesByMembershipId( - """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 `AppMembershipProfile`.""" - orderBy: [AppMembershipProfileOrderBy!] = [PRIMARY_KEY_ASC] - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: AppMembershipProfileFilter - ): AppMembershipProfileConnection! - - """Reads and enables pagination through a set of `AppProfileGrant`.""" - appProfileGrantsByMembershipId( - """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 `AppProfileGrant`.""" - orderBy: [AppProfileGrantOrderBy!] = [PRIMARY_KEY_ASC] - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: AppProfileGrantFilter - ): AppProfileGrantConnection! - """ Aggregated capability bitmask combining profile-based and directly granted capabilities """ capabilities: BitString! createdAt: Datetime createdBy: UUID + createdByPrincipal: UUID """ Bitmask of capabilities directly granted to this member (not from profiles) @@ -1408,12 +916,10 @@ type AppMembership { """Whether this member has been verified (e.g. email confirmation)""" isVerified: Boolean! - - """Reads a single `AppProfile` that is related to this `AppMembership`.""" - profile: AppProfile profileId: UUID updatedAt: Datetime updatedBy: UUID + updatedByPrincipal: UUID } """A connection to a list of `AppMembership` values.""" @@ -1439,6 +945,7 @@ Default membership settings per entity, controlling initial approval and verific type AppMembershipDefault { createdAt: Datetime createdBy: UUID + createdByPrincipal: UUID id: UUID! """Whether new members are automatically approved upon joining""" @@ -1448,6 +955,7 @@ type AppMembershipDefault { isVerified: Boolean! updatedAt: Datetime updatedBy: UUID + updatedByPrincipal: UUID } """A connection to a list of `AppMembershipDefault` values.""" @@ -1491,6 +999,9 @@ input AppMembershipDefaultFilter { """Filter by the object’s `createdBy` field.""" createdBy: UUIDFilter + """Filter by the object’s `createdByPrincipal` field.""" + createdByPrincipal: UUIDFilter + """Filter by the object’s `id` field.""" id: UUIDFilter @@ -1511,12 +1022,16 @@ input AppMembershipDefaultFilter { """Filter by the object’s `updatedBy` field.""" updatedBy: UUIDFilter + + """Filter by the object’s `updatedByPrincipal` field.""" + updatedByPrincipal: UUIDFilter } """An input for mutations affecting `AppMembershipDefault`""" input AppMembershipDefaultInput { createdAt: Datetime createdBy: UUID + createdByPrincipal: UUID id: UUID """Whether new members are automatically approved upon joining""" @@ -1526,6 +1041,7 @@ input AppMembershipDefaultInput { isVerified: Boolean updatedAt: Datetime updatedBy: UUID + updatedByPrincipal: UUID } """Methods to use when ordering `AppMembershipDefault`.""" @@ -1534,6 +1050,8 @@ enum AppMembershipDefaultOrderBy { CREATED_AT_DESC CREATED_BY_ASC CREATED_BY_DESC + CREATED_BY_PRINCIPAL_ASC + CREATED_BY_PRINCIPAL_DESC ID_ASC ID_DESC IS_APPROVED_ASC @@ -1547,6 +1065,8 @@ enum AppMembershipDefaultOrderBy { UPDATED_AT_DESC UPDATED_BY_ASC UPDATED_BY_DESC + UPDATED_BY_PRINCIPAL_ASC + UPDATED_BY_PRINCIPAL_DESC } """ @@ -1555,6 +1075,7 @@ Represents an update to a `AppMembershipDefault`. Fields that are set will be up input AppMembershipDefaultPatch { createdAt: Datetime createdBy: UUID + createdByPrincipal: UUID id: UUID """Whether new members are automatically approved upon joining""" @@ -1564,6 +1085,7 @@ input AppMembershipDefaultPatch { isVerified: Boolean updatedAt: Datetime updatedBy: UUID + updatedByPrincipal: UUID } """A `AppMembership` edge in the connection.""" @@ -1585,18 +1107,6 @@ input AppMembershipFilter { """Checks for all expressions in this list.""" and: [AppMembershipFilter!] - """Filter by the object’s `appMembershipProfilesByMembershipId` relation.""" - appMembershipProfilesByMembershipId: AppMembershipToManyAppMembershipProfileFilter - - """`appMembershipProfilesByMembershipId` exist.""" - appMembershipProfilesByMembershipIdExist: Boolean - - """Filter by the object’s `appProfileGrantsByMembershipId` relation.""" - appProfileGrantsByMembershipId: AppMembershipToManyAppProfileGrantFilter - - """`appProfileGrantsByMembershipId` exist.""" - appProfileGrantsByMembershipIdExist: Boolean - """Filter by the object’s `capabilities` field.""" capabilities: BitStringFilter @@ -1606,6 +1116,9 @@ input AppMembershipFilter { """Filter by the object’s `createdBy` field.""" createdBy: UUIDFilter + """Filter by the object’s `createdByPrincipal` field.""" + createdByPrincipal: UUIDFilter + """Filter by the object’s `granted` field.""" granted: BitStringFilter @@ -1639,12 +1152,6 @@ input AppMembershipFilter { """Checks for any expressions in this list.""" or: [AppMembershipFilter!] - """Filter by the object’s `profile` relation.""" - profile: AppProfileFilter - - """A related `profile` exists.""" - profileExists: Boolean - """Filter by the object’s `profileId` field.""" profileId: UUIDFilter @@ -1653,6 +1160,9 @@ input AppMembershipFilter { """Filter by the object’s `updatedBy` field.""" updatedBy: UUIDFilter + + """Filter by the object’s `updatedByPrincipal` field.""" + updatedByPrincipal: UUIDFilter } """An input for mutations affecting `AppMembership`""" @@ -1666,6 +1176,7 @@ input AppMembershipInput { capabilities: BitString createdAt: Datetime createdBy: UUID + createdByPrincipal: UUID """ Bitmask of capabilities directly granted to this member (not from profiles) @@ -1698,6 +1209,7 @@ input AppMembershipInput { profileId: UUID updatedAt: Datetime updatedBy: UUID + updatedByPrincipal: UUID } """Methods to use when ordering `AppMembership`.""" @@ -1710,6 +1222,8 @@ enum AppMembershipOrderBy { CREATED_AT_DESC CREATED_BY_ASC CREATED_BY_DESC + CREATED_BY_PRINCIPAL_ASC + CREATED_BY_PRINCIPAL_DESC GRANTED_ASC GRANTED_DESC ID_ASC @@ -1737,6 +1251,8 @@ enum AppMembershipOrderBy { UPDATED_AT_DESC UPDATED_BY_ASC UPDATED_BY_DESC + UPDATED_BY_PRINCIPAL_ASC + UPDATED_BY_PRINCIPAL_DESC } """ @@ -1752,6 +1268,7 @@ input AppMembershipPatch { capabilities: BitString createdAt: Datetime createdBy: UUID + createdByPrincipal: UUID """ Bitmask of capabilities directly granted to this member (not from profiles) @@ -1784,1434 +1301,1293 @@ input AppMembershipPatch { profileId: UUID updatedAt: Datetime updatedBy: UUID + updatedByPrincipal: UUID } -""" -Every profile a membership holds; memberships.profile_id points at one of them -""" -type AppMembershipProfile { +"""Records of ownership transfers and grants between members""" +type AppOwnerGrant { """ - References the user holding the profile, denormalised from the membership + The member receiving or losing the ownership grant; NULL if user was deleted """ - actorId: UUID! + actorId: UUID createdAt: Datetime + grantorId: UUID id: UUID! - """ - Reads a single `AppMembership` that is related to this `AppMembershipProfile`. - """ - membership: AppMembership - - """References the membership holding the profile""" - membershipId: UUID! - - """ - Reads a single `AppProfile` that is related to this `AppMembershipProfile`. - """ - profile: AppProfile - - """References the held profile""" - profileId: UUID! + """True to grant ownership, false to revoke ownership""" + isGrant: Boolean! updatedAt: Datetime } -"""A connection to a list of `AppMembershipProfile` values.""" -type AppMembershipProfileConnection { +"""A connection to a list of `AppOwnerGrant` values.""" +type AppOwnerGrantConnection { """ - A list of edges which contains the `AppMembershipProfile` and cursor to aid in pagination. + A list of edges which contains the `AppOwnerGrant` and cursor to aid in pagination. """ - edges: [AppMembershipProfileEdge]! + edges: [AppOwnerGrantEdge]! - """A list of `AppMembershipProfile` objects.""" - nodes: [AppMembershipProfile]! + """A list of `AppOwnerGrant` objects.""" + nodes: [AppOwnerGrant]! """Information to aid in pagination.""" pageInfo: PageInfo! - """ - The count of *all* `AppMembershipProfile` you could get from the connection. - """ + """The count of *all* `AppOwnerGrant` you could get from the connection.""" totalCount: Int! } -"""A `AppMembershipProfile` edge in the connection.""" -type AppMembershipProfileEdge { +"""A `AppOwnerGrant` edge in the connection.""" +type AppOwnerGrantEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `AppMembershipProfile` at the end of the edge.""" - node: AppMembershipProfile + """The `AppOwnerGrant` at the end of the edge.""" + node: AppOwnerGrant } """ -A filter to be used against `AppMembershipProfile` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `AppOwnerGrant` object types. All fields are combined with a logical ‘and.’ """ -input AppMembershipProfileFilter { +input AppOwnerGrantFilter { """Filter by the object’s `actorId` field.""" actorId: UUIDFilter """Checks for all expressions in this list.""" - and: [AppMembershipProfileFilter!] + and: [AppOwnerGrantFilter!] """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 `membership` relation.""" - membership: AppMembershipFilter - - """Filter by the object’s `membershipId` field.""" - membershipId: UUIDFilter + """Filter by the object’s `isGrant` field.""" + isGrant: BooleanFilter """Negates the expression.""" - not: AppMembershipProfileFilter + not: AppOwnerGrantFilter """Checks for any expressions in this list.""" - or: [AppMembershipProfileFilter!] - - """Filter by the object’s `profile` relation.""" - profile: AppProfileFilter - - """Filter by the object’s `profileId` field.""" - profileId: UUIDFilter + or: [AppOwnerGrantFilter!] """Filter by the object’s `updatedAt` field.""" updatedAt: DatetimeFilter } -"""An input for mutations affecting `AppMembershipProfile`""" -input AppMembershipProfileInput { +"""An input for mutations affecting `AppOwnerGrant`""" +input AppOwnerGrantInput { """ - References the user holding the profile, denormalised from the membership + The member receiving or losing the ownership grant; NULL if user was deleted """ - actorId: UUID! + actorId: UUID createdAt: Datetime + grantorId: UUID id: UUID - """References the membership holding the profile""" - membershipId: UUID! - - """References the held profile""" - profileId: UUID! + """True to grant ownership, false to revoke ownership""" + isGrant: Boolean updatedAt: Datetime } -"""Methods to use when ordering `AppMembershipProfile`.""" -enum AppMembershipProfileOrderBy { +"""Methods to use when ordering `AppOwnerGrant`.""" +enum AppOwnerGrantOrderBy { ACTOR_ID_ASC ACTOR_ID_DESC CREATED_AT_ASC CREATED_AT_DESC + GRANTOR_ID_ASC + GRANTOR_ID_DESC ID_ASC ID_DESC - MEMBERSHIP_ID_ASC - MEMBERSHIP_ID_DESC + IS_GRANT_ASC + IS_GRANT_DESC NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC - PROFILE_ID_ASC - PROFILE_ID_DESC UPDATED_AT_ASC UPDATED_AT_DESC } """ -Represents an update to a `AppMembershipProfile`. Fields that are set will be updated. +Represents an update to a `AppOwnerGrant`. Fields that are set will be updated. """ -input AppMembershipProfilePatch { +input AppOwnerGrantPatch { """ - References the user holding the profile, denormalised from the membership + The member receiving or losing the ownership grant; NULL if user was deleted """ actorId: UUID createdAt: Datetime + grantorId: UUID id: UUID - """References the membership holding the profile""" - membershipId: UUID - - """References the held profile""" - profileId: UUID + """True to grant ownership, false to revoke ownership""" + isGrant: Boolean updatedAt: Datetime } -""" -A filter to be used against many `AppMembershipProfile` object types. All fields are combined with a logical ‘and.’ -""" -input AppMembershipToManyAppMembershipProfileFilter { - """Filters to entities where every related entity matches.""" - every: AppMembershipProfileFilter - - """Filters to entities where no related entity matches.""" - none: AppMembershipProfileFilter - - """Filters to entities where at least one related entity matches.""" - some: AppMembershipProfileFilter -} +"""A string representing a series of binary bits""" +scalar BitString """ -A filter to be used against many `AppProfileGrant` object types. All fields are combined with a logical ‘and.’ +A filter to be used against BitString fields. All fields are combined with a logical ‘and.’ """ -input AppMembershipToManyAppProfileGrantFilter { - """Filters to entities where every related entity matches.""" - every: AppProfileGrantFilter +input BitStringFilter { + """ + Not equal to the specified value, treating null like an ordinary value. + """ + distinctFrom: BitString - """Filters to entities where no related entity matches.""" - none: AppProfileGrantFilter + """Equal to the specified value.""" + equalTo: BitString - """Filters to entities where at least one related entity matches.""" - some: AppProfileGrantFilter -} + """Greater than the specified value.""" + greaterThan: BitString -"""Records of ownership transfers and grants between members""" -type AppOwnerGrant { - """ - The member receiving or losing the ownership grant; NULL if user was deleted - """ - actorId: UUID - createdAt: Datetime - grantorId: UUID - id: UUID! + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: BitString - """True to grant ownership, false to revoke ownership""" - isGrant: Boolean! - updatedAt: Datetime -} + """Included in the specified list.""" + in: [BitString!] -"""A connection to a list of `AppOwnerGrant` values.""" -type AppOwnerGrantConnection { """ - A list of edges which contains the `AppOwnerGrant` and cursor to aid in pagination. + Is null (if `true` is specified) or is not null (if `false` is specified). """ - edges: [AppOwnerGrantEdge]! + isNull: Boolean - """A list of `AppOwnerGrant` objects.""" - nodes: [AppOwnerGrant]! + """Less than the specified value.""" + lessThan: BitString - """Information to aid in pagination.""" - pageInfo: PageInfo! + """Less than or equal to the specified value.""" + lessThanOrEqualTo: BitString - """The count of *all* `AppOwnerGrant` you could get from the connection.""" - totalCount: Int! -} + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: BitString -"""A `AppOwnerGrant` edge in the connection.""" -type AppOwnerGrantEdge { - """A cursor for use in pagination.""" - cursor: Cursor + """Not equal to the specified value.""" + notEqualTo: BitString - """The `AppOwnerGrant` at the end of the edge.""" - node: AppOwnerGrant + """Not included in the specified list.""" + notIn: [BitString!] } """ -A filter to be used against `AppOwnerGrant` object types. All fields are combined with a logical ‘and.’ +A filter to be used against Boolean fields. All fields are combined with a logical ‘and.’ """ -input AppOwnerGrantFilter { - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter +input BooleanFilter { + """ + Not equal to the specified value, treating null like an ordinary value. + """ + distinctFrom: Boolean - """Checks for all expressions in this list.""" - and: [AppOwnerGrantFilter!] + """Equal to the specified value.""" + equalTo: Boolean - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter + """Greater than the specified value.""" + greaterThan: Boolean - """Filter by the object’s `grantorId` field.""" - grantorId: UUIDFilter + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: Boolean - """Filter by the object’s `id` field.""" - id: UUIDFilter + """Included in the specified list.""" + in: [Boolean!] - """Filter by the object’s `isGrant` field.""" - isGrant: BooleanFilter + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean - """Negates the expression.""" - not: AppOwnerGrantFilter + """Less than the specified value.""" + lessThan: Boolean - """Checks for any expressions in this list.""" - or: [AppOwnerGrantFilter!] + """Less than or equal to the specified value.""" + lessThanOrEqualTo: Boolean - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter -} + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: Boolean -"""An input for mutations affecting `AppOwnerGrant`""" -input AppOwnerGrantInput { - """ - The member receiving or losing the ownership grant; NULL if user was deleted - """ - actorId: UUID - createdAt: Datetime - grantorId: UUID - id: UUID + """Not equal to the specified value.""" + notEqualTo: Boolean - """True to grant ownership, false to revoke ownership""" - isGrant: Boolean - updatedAt: Datetime + """Not included in the specified list.""" + notIn: [Boolean!] } -"""Methods to use when ordering `AppOwnerGrant`.""" -enum AppOwnerGrantOrderBy { - ACTOR_ID_ASC - ACTOR_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 -} +scalar ConstructiveInternalTypeEmail """ -Represents an update to a `AppOwnerGrant`. Fields that are set will be updated. +A filter to be used against ConstructiveInternalTypeEmail fields. All fields are combined with a logical ‘and.’ """ -input AppOwnerGrantPatch { +input ConstructiveInternalTypeEmailFilter { """ - The member receiving or losing the ownership grant; NULL if user was deleted + Not equal to the specified value, treating null like an ordinary value. """ - actorId: UUID - createdAt: Datetime - grantorId: UUID - id: UUID - - """True to grant ownership, false to revoke ownership""" - isGrant: Boolean - updatedAt: Datetime -} + distinctFrom: String -""" -Named capability bundles (roles) that group multiple capabilities into reusable profiles -""" -type AppProfile { - """Reads and enables pagination through a set of `AppInvite`.""" - appInvitesByProfileId( - """Read all values in the set after (below) this cursor.""" - after: Cursor + """ + Not equal to the specified value, treating null like an ordinary value (case-insensitive). + """ + distinctFromInsensitive: ConstructiveInternalTypeEmail - """Read all values in the set before (above) this cursor.""" - before: Cursor + """Ends with the specified string (case-sensitive).""" + endsWith: String - """Only read the first `n` values of the set.""" - first: Int + """Ends with the specified string (case-insensitive).""" + endsWithInsensitive: ConstructiveInternalTypeEmail - """Only read the last `n` values of the set.""" - last: Int + """Equal to the specified value.""" + equalTo: String - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int + """Equal to the specified value (case-insensitive).""" + equalToInsensitive: ConstructiveInternalTypeEmail - """The method to use when ordering `AppInvite`.""" - orderBy: [AppInviteOrderBy!] = [PRIMARY_KEY_ASC] + """Greater than the specified value.""" + greaterThan: String - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: AppInviteFilter - ): AppInviteConnection! + """Greater than the specified value (case-insensitive).""" + greaterThanInsensitive: ConstructiveInternalTypeEmail - """Reads and enables pagination through a set of `AppMembershipProfile`.""" - appMembershipProfilesByProfileId( - """Read all values in the set after (below) this cursor.""" - after: Cursor + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: String - """Read all values in the set before (above) this cursor.""" - before: Cursor + """Greater than or equal to the specified value (case-insensitive).""" + greaterThanOrEqualToInsensitive: ConstructiveInternalTypeEmail - """Only read the first `n` values of the set.""" - first: Int + """Included in the specified list.""" + in: [String!] - """Only read the last `n` values of the set.""" - last: Int + """Included in the specified list (case-insensitive).""" + inInsensitive: [ConstructiveInternalTypeEmail!] - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int + """Contains the specified string (case-sensitive).""" + includes: String - """The method to use when ordering `AppMembershipProfile`.""" - orderBy: [AppMembershipProfileOrderBy!] = [PRIMARY_KEY_ASC] + """Contains the specified string (case-insensitive).""" + includesInsensitive: ConstructiveInternalTypeEmail - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: AppMembershipProfileFilter - ): AppMembershipProfileConnection! + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean - """Reads and enables pagination through a set of `AppMembership`.""" - appMembershipsByProfileId( - """Read all values in the set after (below) this cursor.""" - after: Cursor + """Less than the specified value.""" + lessThan: String - """Read all values in the set before (above) this cursor.""" - before: Cursor + """Less than the specified value (case-insensitive).""" + lessThanInsensitive: ConstructiveInternalTypeEmail - """Only read the first `n` values of the set.""" - first: Int + """Less than or equal to the specified value.""" + lessThanOrEqualTo: String - """Only read the last `n` values of the set.""" - last: Int + """Less than or equal to the specified value (case-insensitive).""" + lessThanOrEqualToInsensitive: ConstructiveInternalTypeEmail - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int + """ + 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 - """The method to use when ordering `AppMembership`.""" - orderBy: [AppMembershipOrderBy!] = [PRIMARY_KEY_ASC] + """ + Matches the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. + """ + likeInsensitive: ConstructiveInternalTypeEmail - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: AppMembershipFilter - ): AppMembershipConnection! + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: String - """Reads and enables pagination through a set of `AppProfileCapability`.""" - appProfileCapabilitiesByProfileId( - """Read all values in the set after (below) this cursor.""" - after: Cursor + """ + Equal to the specified value, treating null like an ordinary value (case-insensitive). + """ + notDistinctFromInsensitive: ConstructiveInternalTypeEmail - """Read all values in the set before (above) this cursor.""" - before: Cursor + """Does not end with the specified string (case-sensitive).""" + notEndsWith: String - """Only read the first `n` values of the set.""" - first: Int + """Does not end with the specified string (case-insensitive).""" + notEndsWithInsensitive: ConstructiveInternalTypeEmail - """Only read the last `n` values of the set.""" - last: Int + """Not equal to the specified value.""" + notEqualTo: String - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int + """Not equal to the specified value (case-insensitive).""" + notEqualToInsensitive: ConstructiveInternalTypeEmail - """The method to use when ordering `AppProfileCapability`.""" - orderBy: [AppProfileCapabilityOrderBy!] = [PRIMARY_KEY_ASC] + """Not included in the specified list.""" + notIn: [String!] - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: AppProfileCapabilityFilter - ): AppProfileCapabilityConnection! + """Not included in the specified list (case-insensitive).""" + notInInsensitive: [ConstructiveInternalTypeEmail!] - """ - Reads and enables pagination through a set of `AppProfileDefinitionGrant`. - """ - appProfileDefinitionGrantsByProfileId( - """Read all values in the set after (below) this cursor.""" - after: Cursor + """Does not contain the specified string (case-sensitive).""" + notIncludes: String - """Read all values in the set before (above) this cursor.""" - before: Cursor + """Does not contain the specified string (case-insensitive).""" + notIncludesInsensitive: ConstructiveInternalTypeEmail - """Only read the first `n` values of the set.""" - first: Int + """ + 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 - """Only read the last `n` values of the set.""" - last: Int + """ + Does not match the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. + """ + notLikeInsensitive: ConstructiveInternalTypeEmail - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int + """Does not start with the specified string (case-sensitive).""" + notStartsWith: String - """The method to use when ordering `AppProfileDefinitionGrant`.""" - orderBy: [AppProfileDefinitionGrantOrderBy!] = [PRIMARY_KEY_ASC] + """Does not start with the specified string (case-insensitive).""" + notStartsWithInsensitive: ConstructiveInternalTypeEmail - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: AppProfileDefinitionGrantFilter - ): AppProfileDefinitionGrantConnection! + """Starts with the specified string (case-sensitive).""" + startsWith: String - """Reads and enables pagination through a set of `AppProfileGrant`.""" - appProfileGrantsByProfileId( - """Read all values in the set after (below) this cursor.""" - after: Cursor + """Starts with the specified string (case-insensitive).""" + startsWithInsensitive: ConstructiveInternalTypeEmail +} - """Read all values in the set before (above) this cursor.""" - before: Cursor +scalar ConstructiveInternalTypeImage - """Only read the first `n` values of the set.""" - first: Int +""" +A filter to be used against ConstructiveInternalTypeImage fields. All fields are combined with a logical ‘and.’ +""" +input ConstructiveInternalTypeImageFilter { + """Contained by the specified JSON.""" + containedBy: ConstructiveInternalTypeImage - """Only read the last `n` values of the set.""" - last: Int + """Contains the specified JSON.""" + contains: ConstructiveInternalTypeImage - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int + """Contains all of the specified keys.""" + containsAllKeys: [String!] - """The method to use when ordering `AppProfileGrant`.""" - orderBy: [AppProfileGrantOrderBy!] = [PRIMARY_KEY_ASC] + """Contains any of the specified keys.""" + containsAnyKeys: [String!] - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: AppProfileGrantFilter - ): AppProfileGrantConnection! + """Contains the specified key.""" + containsKey: String """ - Pre-computed capability bitmask aggregating all capabilities in this profile + Not equal to the specified value, treating null like an ordinary value. """ - capabilities: BitString! - createdAt: Datetime + distinctFrom: ConstructiveInternalTypeImage - """Human-readable description of this profile and its intended use""" - description: String - id: UUID! + """Equal to the specified value.""" + equalTo: ConstructiveInternalTypeImage + + """Greater than the specified value.""" + greaterThan: ConstructiveInternalTypeImage + + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: ConstructiveInternalTypeImage + + """Included in the specified list.""" + in: [ConstructiveInternalTypeImage!] """ - The default profile is automatically assigned to new members when they join + Is null (if `true` is specified) or is not null (if `false` is specified). """ - isDefault: Boolean! + isNull: Boolean - """System profiles are built-in and cannot be deleted or renamed by users""" - isSystem: Boolean! + """Less than the specified value.""" + lessThan: ConstructiveInternalTypeImage - """Display name for this profile (e.g. Admin, Editor, Viewer)""" - name: String! + """Less than or equal to the specified value.""" + lessThanOrEqualTo: ConstructiveInternalTypeImage - """URL-safe identifier for this profile, used in API references""" - slug: String! - updatedAt: Datetime + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: ConstructiveInternalTypeImage + + """Not equal to the specified value.""" + notEqualTo: ConstructiveInternalTypeImage + + """Not included in the specified list.""" + notIn: [ConstructiveInternalTypeImage!] } -"""Join table linking profiles to individual capabilities they include""" -type AppProfileCapability { +"""All input for the create `AppAdminGrant` mutation.""" +input CreateAppAdminGrantInput { + """The `AppAdminGrant` to be created by this mutation.""" + appAdminGrant: AppAdminGrantInput! + """ - Reads a single `AppCapability` that is related to this `AppProfileCapability`. + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - capability: AppCapability + clientMutationId: String +} - """References the capability included in this profile""" - capabilityId: UUID! - createdAt: Datetime - id: UUID! +"""The output of our create `AppAdminGrant` mutation.""" +type CreateAppAdminGrantPayload { + """The `AppAdminGrant` that was created 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 """ - Reads a single `AppProfile` that is related to this `AppProfileCapability`. + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - profile: AppProfile + clientMutationId: String - """References the profile this capability belongs to""" - profileId: UUID! - updatedAt: Datetime + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + 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 } -"""A connection to a list of `AppProfileCapability` values.""" -type AppProfileCapabilityConnection { +"""The output of our create `AppCapabilityDefaultCapability` mutation.""" +type CreateAppCapabilityDefaultCapabilityPayload { """ - A list of edges which contains the `AppProfileCapability` and cursor to aid in pagination. + The `AppCapabilityDefaultCapability` that was created by this mutation. """ - edges: [AppProfileCapabilityEdge]! + appCapabilityDefaultCapability: AppCapabilityDefaultCapability - """A list of `AppProfileCapability` objects.""" - nodes: [AppProfileCapability]! + """ + 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 - """Information to aid in pagination.""" - pageInfo: PageInfo! + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String """ - The count of *all* `AppProfileCapability` you could get from the connection. + Our root query field type. Allows us to run any query from our mutation payload. """ - totalCount: Int! + query: Query } -"""A `AppProfileCapability` edge in the connection.""" -type AppProfileCapabilityEdge { - """A cursor for use in pagination.""" - cursor: Cursor +"""All input for the create `AppCapabilityDefaultGrant` mutation.""" +input CreateAppCapabilityDefaultGrantInput { + """The `AppCapabilityDefaultGrant` to be created by this mutation.""" + appCapabilityDefaultGrant: AppCapabilityDefaultGrantInput! - """The `AppProfileCapability` at the end of the edge.""" - node: AppProfileCapability + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String } -""" -A filter to be used against `AppProfileCapability` object types. All fields are combined with a logical ‘and.’ -""" -input AppProfileCapabilityFilter { - """Checks for all expressions in this list.""" - and: [AppProfileCapabilityFilter!] +"""The output of our create `AppCapabilityDefaultGrant` mutation.""" +type CreateAppCapabilityDefaultGrantPayload { + """The `AppCapabilityDefaultGrant` that was created by this mutation.""" + appCapabilityDefaultGrant: AppCapabilityDefaultGrant - """Filter by the object’s `capability` relation.""" - capability: AppCapabilityFilter + """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 - """Filter by the object’s `capabilityId` field.""" - capabilityId: UUIDFilter + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} - """Filter by the object’s `id` field.""" - id: UUIDFilter +"""All input for the create `AppClaimedInvite` mutation.""" +input CreateAppClaimedInviteInput { + """The `AppClaimedInvite` to be created by this mutation.""" + appClaimedInvite: AppClaimedInviteInput! - """Negates the expression.""" - not: AppProfileCapabilityFilter + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String +} - """Checks for any expressions in this list.""" - or: [AppProfileCapabilityFilter!] +"""The output of our create `AppClaimedInvite` mutation.""" +type CreateAppClaimedInvitePayload { + """The `AppClaimedInvite` that was created by this mutation.""" + appClaimedInvite: AppClaimedInvite - """Filter by the object’s `profile` relation.""" - profile: AppProfileFilter + """An edge for our `AppClaimedInvite`. May be used by Relay 1.""" + appClaimedInviteEdge( + """The method to use when ordering `AppClaimedInvite`.""" + orderBy: [AppClaimedInviteOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppClaimedInviteEdge - """Filter by the object’s `profileId` field.""" - profileId: UUIDFilter + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query } -"""An input for mutations affecting `AppProfileCapability`""" -input AppProfileCapabilityInput { - """References the capability included in this profile""" - capabilityId: UUID! - createdAt: Datetime - id: UUID - - """References the profile this capability belongs to""" - profileId: UUID! - updatedAt: Datetime -} +"""All input for the create `AppGrant` mutation.""" +input CreateAppGrantInput { + """The `AppGrant` to be created by this mutation.""" + appGrant: AppGrantInput! -"""Methods to use when ordering `AppProfileCapability`.""" -enum AppProfileCapabilityOrderBy { - CAPABILITY_ID_ASC - CAPABILITY_ID_DESC - CREATED_AT_ASC - CREATED_AT_DESC - ID_ASC - ID_DESC - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - PROFILE_ID_ASC - PROFILE_ID_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String } -""" -Represents an update to a `AppProfileCapability`. Fields that are set will be updated. -""" -input AppProfileCapabilityPatch { - """References the capability included in this profile""" - capabilityId: UUID - createdAt: Datetime - id: UUID +"""The output of our create `AppGrant` mutation.""" +type CreateAppGrantPayload { + """The `AppGrant` that was created by this mutation.""" + appGrant: AppGrant - """References the profile this capability belongs to""" - profileId: UUID - updatedAt: Datetime -} + """An edge for our `AppGrant`. May be used by Relay 1.""" + appGrantEdge( + """The method to use when ordering `AppGrant`.""" + orderBy: [AppGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppGrantEdge -"""A connection to a list of `AppProfile` values.""" -type AppProfileConnection { """ - A list of edges which contains the `AppProfile` and cursor to aid in pagination. + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - edges: [AppProfileEdge]! - - """A list of `AppProfile` objects.""" - nodes: [AppProfile]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `AppProfile` you could get from the connection.""" - totalCount: Int! -} + clientMutationId: String -""" -Audit log of capability additions and removals from profile definitions -""" -type AppProfileDefinitionGrant { """ - Reads a single `AppCapability` that is related to this `AppProfileDefinitionGrant`. + Our root query field type. Allows us to run any query from our mutation payload. """ - capability: AppCapability + query: Query +} + +"""All input for the create `AppInvite` mutation.""" +input CreateAppInviteInput { + """The `AppInvite` to be created by this mutation.""" + appInvite: AppInviteInput! """ - References the capability that was added to or removed from the profile; NULL if capability was deleted + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - capabilityId: UUID - createdAt: Datetime - grantorId: UUID - id: UUID! + clientMutationId: String +} - """True to add the capability to the profile, false to remove it""" - isGrant: Boolean! +"""The output of our create `AppInvite` mutation.""" +type CreateAppInvitePayload { + """The `AppInvite` that was created by this mutation.""" + appInvite: AppInvite + + """An edge for our `AppInvite`. May be used by Relay 1.""" + appInviteEdge( + """The method to use when ordering `AppInvite`.""" + orderBy: [AppInviteOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppInviteEdge """ - Reads a single `AppProfile` that is related to this `AppProfileDefinitionGrant`. + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - profile: AppProfile + clientMutationId: String """ - References the profile whose definition was modified; NULL if profile was deleted + Our root query field type. Allows us to run any query from our mutation payload. """ - profileId: UUID - updatedAt: Datetime + query: Query } -"""A connection to a list of `AppProfileDefinitionGrant` values.""" -type AppProfileDefinitionGrantConnection { +"""All input for the create `AppMembershipDefault` mutation.""" +input CreateAppMembershipDefaultInput { + """The `AppMembershipDefault` to be created by this mutation.""" + appMembershipDefault: AppMembershipDefaultInput! + """ - A list of edges which contains the `AppProfileDefinitionGrant` and cursor to aid in pagination. + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - edges: [AppProfileDefinitionGrantEdge]! + clientMutationId: String +} - """A list of `AppProfileDefinitionGrant` objects.""" - nodes: [AppProfileDefinitionGrant]! +"""The output of our create `AppMembershipDefault` mutation.""" +type CreateAppMembershipDefaultPayload { + """The `AppMembershipDefault` that was created by this mutation.""" + appMembershipDefault: AppMembershipDefault - """Information to aid in pagination.""" - pageInfo: PageInfo! + """An edge for our `AppMembershipDefault`. May be used by Relay 1.""" + appMembershipDefaultEdge( + """The method to use when ordering `AppMembershipDefault`.""" + orderBy: [AppMembershipDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppMembershipDefaultEdge """ - The count of *all* `AppProfileDefinitionGrant` you could get from the connection. + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - totalCount: Int! -} - -"""A `AppProfileDefinitionGrant` edge in the connection.""" -type AppProfileDefinitionGrantEdge { - """A cursor for use in pagination.""" - cursor: Cursor + clientMutationId: String - """The `AppProfileDefinitionGrant` at the end of the edge.""" - node: AppProfileDefinitionGrant + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query } -""" -A filter to be used against `AppProfileDefinitionGrant` object types. All fields are combined with a logical ‘and.’ -""" -input AppProfileDefinitionGrantFilter { - """Checks for all expressions in this list.""" - and: [AppProfileDefinitionGrantFilter!] - - """Filter by the object’s `capability` relation.""" - capability: AppCapabilityFilter - - """A related `capability` exists.""" - capabilityExists: Boolean +"""All input for the create `AppMembership` mutation.""" +input CreateAppMembershipInput { + """The `AppMembership` to be created by this mutation.""" + appMembership: AppMembershipInput! - """Filter by the object’s `capabilityId` field.""" - capabilityId: UUIDFilter + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String +} - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter +"""The output of our create `AppMembership` mutation.""" +type CreateAppMembershipPayload { + """The `AppMembership` that was created by this mutation.""" + appMembership: AppMembership - """Filter by the object’s `grantorId` field.""" - grantorId: UUIDFilter + """An edge for our `AppMembership`. May be used by Relay 1.""" + appMembershipEdge( + """The method to use when ordering `AppMembership`.""" + orderBy: [AppMembershipOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppMembershipEdge - """Filter by the object’s `id` field.""" - id: UUIDFilter + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """Filter by the object’s `isGrant` field.""" - isGrant: BooleanFilter + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} - """Negates the expression.""" - not: AppProfileDefinitionGrantFilter +"""All input for the create `AppOwnerGrant` mutation.""" +input CreateAppOwnerGrantInput { + """The `AppOwnerGrant` to be created by this mutation.""" + appOwnerGrant: AppOwnerGrantInput! - """Checks for any expressions in this list.""" - or: [AppProfileDefinitionGrantFilter!] + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String +} - """Filter by the object’s `profile` relation.""" - profile: AppProfileFilter +"""The output of our create `AppOwnerGrant` mutation.""" +type CreateAppOwnerGrantPayload { + """The `AppOwnerGrant` that was created by this mutation.""" + appOwnerGrant: AppOwnerGrant - """A related `profile` exists.""" - profileExists: Boolean + """An edge for our `AppOwnerGrant`. May be used by Relay 1.""" + appOwnerGrantEdge( + """The method to use when ordering `AppOwnerGrant`.""" + orderBy: [AppOwnerGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppOwnerGrantEdge - """Filter by the object’s `profileId` field.""" - profileId: UUIDFilter + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query } -"""An input for mutations affecting `AppProfileDefinitionGrant`""" -input AppProfileDefinitionGrantInput { +"""All input for the create `MembershipType` mutation.""" +input CreateMembershipTypeInput { """ - References the capability that was added to or removed from the profile; NULL if capability was deleted + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - capabilityId: UUID - createdAt: Datetime - grantorId: UUID - id: UUID + clientMutationId: String - """True to add the capability to the profile, false to remove it""" - isGrant: Boolean + """The `MembershipType` to be created by this mutation.""" + membershipType: MembershipTypeInput! +} +"""The output of our create `MembershipType` mutation.""" +type CreateMembershipTypePayload { """ - References the profile whose definition was modified; NULL if profile was deleted + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - profileId: UUID - updatedAt: Datetime -} - -"""Methods to use when ordering `AppProfileDefinitionGrant`.""" -enum AppProfileDefinitionGrantOrderBy { - 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 - PROFILE_ID_ASC - PROFILE_ID_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC -} + clientMutationId: String -""" -Represents an update to a `AppProfileDefinitionGrant`. Fields that are set will be updated. -""" -input AppProfileDefinitionGrantPatch { - """ - References the capability that was added to or removed from the profile; NULL if capability was deleted - """ - capabilityId: UUID - createdAt: Datetime - grantorId: UUID - id: UUID + """The `MembershipType` that was created by this mutation.""" + membershipType: MembershipType - """True to add the capability to the profile, false to remove it""" - isGrant: Boolean + """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 """ - References the profile whose definition was modified; NULL if profile was deleted + Our root query field type. Allows us to run any query from our mutation payload. """ - profileId: UUID - updatedAt: Datetime + query: Query } -"""A `AppProfile` edge in the connection.""" -type AppProfileEdge { - """A cursor for use in pagination.""" - cursor: Cursor +"""All input for the create `OrgAdminGrant` mutation.""" +input CreateOrgAdminGrantInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String - """The `AppProfile` at the end of the edge.""" - node: AppProfile + """The `OrgAdminGrant` to be created by this mutation.""" + orgAdminGrant: OrgAdminGrantInput! } -""" -A filter to be used against `AppProfile` object types. All fields are combined with a logical ‘and.’ -""" -input AppProfileFilter { - """Checks for all expressions in this list.""" - and: [AppProfileFilter!] - - """Filter by the object’s `appInvitesByProfileId` relation.""" - appInvitesByProfileId: AppProfileToManyAppInviteFilter - - """`appInvitesByProfileId` exist.""" - appInvitesByProfileIdExist: Boolean +"""The output of our create `OrgAdminGrant` mutation.""" +type CreateOrgAdminGrantPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """Filter by the object’s `appMembershipProfilesByProfileId` relation.""" - appMembershipProfilesByProfileId: AppProfileToManyAppMembershipProfileFilter + """The `OrgAdminGrant` that was created by this mutation.""" + orgAdminGrant: OrgAdminGrant - """`appMembershipProfilesByProfileId` exist.""" - appMembershipProfilesByProfileIdExist: Boolean + """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 - """Filter by the object’s `appMembershipsByProfileId` relation.""" - appMembershipsByProfileId: AppProfileToManyAppMembershipFilter + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} - """`appMembershipsByProfileId` exist.""" - appMembershipsByProfileIdExist: Boolean +"""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 - """Filter by the object’s `appProfileCapabilitiesByProfileId` relation.""" - appProfileCapabilitiesByProfileId: AppProfileToManyAppProfileCapabilityFilter + """The `OrgCapabilityDefaultCapability` to be created by this mutation.""" + orgCapabilityDefaultCapability: OrgCapabilityDefaultCapabilityInput! +} - """`appProfileCapabilitiesByProfileId` exist.""" - appProfileCapabilitiesByProfileIdExist: Boolean +"""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 """ - Filter by the object’s `appProfileDefinitionGrantsByProfileId` relation. + The `OrgCapabilityDefaultCapability` that was created by this mutation. """ - appProfileDefinitionGrantsByProfileId: AppProfileToManyAppProfileDefinitionGrantFilter + orgCapabilityDefaultCapability: OrgCapabilityDefaultCapability - """`appProfileDefinitionGrantsByProfileId` exist.""" - appProfileDefinitionGrantsByProfileIdExist: Boolean + """ + 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 - """Filter by the object’s `appProfileGrantsByProfileId` relation.""" - appProfileGrantsByProfileId: AppProfileToManyAppProfileGrantFilter + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} - """`appProfileGrantsByProfileId` exist.""" - appProfileGrantsByProfileIdExist: Boolean +"""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 - """Filter by the object’s `capabilities` field.""" - capabilities: BitStringFilter + """The `OrgCapabilityDefaultGrant` to be created by this mutation.""" + orgCapabilityDefaultGrant: OrgCapabilityDefaultGrantInput! +} - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter +"""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 - """Filter by the object’s `description` field.""" - description: StringFilter + """The `OrgCapabilityDefaultGrant` that was created by this mutation.""" + orgCapabilityDefaultGrant: OrgCapabilityDefaultGrant - """Filter by the object’s `id` field.""" - id: UUIDFilter + """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 - """Filter by the object’s `isDefault` field.""" - isDefault: BooleanFilter + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} - """Filter by the object’s `isSystem` field.""" - isSystem: BooleanFilter +"""All input for the create `OrgChartEdgeGrant` mutation.""" +input CreateOrgChartEdgeGrantInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String - """Filter by the object’s `name` field.""" - name: StringFilter + """The `OrgChartEdgeGrant` to be created by this mutation.""" + orgChartEdgeGrant: OrgChartEdgeGrantInput! +} - """Negates the expression.""" - not: AppProfileFilter +"""The output of our create `OrgChartEdgeGrant` mutation.""" +type CreateOrgChartEdgeGrantPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """Checks for any expressions in this list.""" - or: [AppProfileFilter!] + """The `OrgChartEdgeGrant` that was created by this mutation.""" + orgChartEdgeGrant: OrgChartEdgeGrant - """Filter by the object’s `slug` field.""" - slug: StringFilter + """An edge for our `OrgChartEdgeGrant`. May be used by Relay 1.""" + orgChartEdgeGrantEdge( + """The method to use when ordering `OrgChartEdgeGrant`.""" + orderBy: [OrgChartEdgeGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgChartEdgeGrantEdge - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query } -"""Audit log of profile assignments and revocations for members""" -type AppProfileGrant { - createdAt: Datetime - grantorId: UUID - id: UUID! +"""All input for the create `OrgChartEdge` mutation.""" +input CreateOrgChartEdgeInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String - """True to assign the profile, false to revoke it""" - isGrant: Boolean! + """The `OrgChartEdge` to be created by this mutation.""" + orgChartEdge: OrgChartEdgeInput! +} +"""The output of our create `OrgChartEdge` mutation.""" +type CreateOrgChartEdgePayload { """ - Reads a single `AppMembership` that is related to this `AppProfileGrant`. + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - membership: AppMembership + clientMutationId: String + + """The `OrgChartEdge` that was created by this mutation.""" + orgChartEdge: OrgChartEdge + + """An edge for our `OrgChartEdge`. May be used by Relay 1.""" + orgChartEdgeEdge( + """The method to use when ordering `OrgChartEdge`.""" + orderBy: [OrgChartEdgeOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgChartEdgeEdge """ - References the membership that received or lost this profile; NULL if membership was deleted + Our root query field type. Allows us to run any query from our mutation payload. """ - membershipId: UUID - - """Reads a single `AppProfile` that is related to this `AppProfileGrant`.""" - profile: AppProfile + query: Query +} +"""All input for the create `OrgClaimedInvite` mutation.""" +input CreateOrgClaimedInviteInput { """ - References the profile being assigned; NULL indicates the profile was removed + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - profileId: UUID - updatedAt: Datetime + clientMutationId: String + + """The `OrgClaimedInvite` to be created by this mutation.""" + orgClaimedInvite: OrgClaimedInviteInput! } -"""A connection to a list of `AppProfileGrant` values.""" -type AppProfileGrantConnection { +"""The output of our create `OrgClaimedInvite` mutation.""" +type CreateOrgClaimedInvitePayload { """ - A list of edges which contains the `AppProfileGrant` and cursor to aid in pagination. + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - edges: [AppProfileGrantEdge]! + clientMutationId: String - """A list of `AppProfileGrant` objects.""" - nodes: [AppProfileGrant]! + """The `OrgClaimedInvite` that was created by this mutation.""" + orgClaimedInvite: OrgClaimedInvite - """Information to aid in pagination.""" - pageInfo: PageInfo! + """An edge for our `OrgClaimedInvite`. May be used by Relay 1.""" + orgClaimedInviteEdge( + """The method to use when ordering `OrgClaimedInvite`.""" + orderBy: [OrgClaimedInviteOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgClaimedInviteEdge """ - The count of *all* `AppProfileGrant` you could get from the connection. + Our root query field type. Allows us to run any query from our mutation payload. """ - totalCount: Int! + query: Query } -"""A `AppProfileGrant` edge in the connection.""" -type AppProfileGrantEdge { - """A cursor for use in pagination.""" - cursor: Cursor +"""All input for the create `OrgGrant` mutation.""" +input CreateOrgGrantInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String - """The `AppProfileGrant` at the end of the edge.""" - node: AppProfileGrant + """The `OrgGrant` to be created by this mutation.""" + orgGrant: OrgGrantInput! } -""" -A filter to be used against `AppProfileGrant` object types. All fields are combined with a logical ‘and.’ -""" -input AppProfileGrantFilter { - """Checks for all expressions in this list.""" - and: [AppProfileGrantFilter!] - - """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 - - """Filter by the object’s `membership` relation.""" - membership: AppMembershipFilter - - """A related `membership` exists.""" - membershipExists: Boolean - - """Filter by the object’s `membershipId` field.""" - membershipId: UUIDFilter - - """Negates the expression.""" - not: AppProfileGrantFilter +"""The output of our create `OrgGrant` mutation.""" +type CreateOrgGrantPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """Checks for any expressions in this list.""" - or: [AppProfileGrantFilter!] + """The `OrgGrant` that was created by this mutation.""" + orgGrant: OrgGrant - """Filter by the object’s `profile` relation.""" - profile: AppProfileFilter + """An edge for our `OrgGrant`. May be used by Relay 1.""" + orgGrantEdge( + """The method to use when ordering `OrgGrant`.""" + orderBy: [OrgGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgGrantEdge - """A related `profile` exists.""" - profileExists: Boolean + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} - """Filter by the object’s `profileId` field.""" - profileId: UUIDFilter +"""All input for the create `OrgInvite` mutation.""" +input CreateOrgInviteInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter + """The `OrgInvite` to be created by this mutation.""" + orgInvite: OrgInviteInput! } -"""An input for mutations affecting `AppProfileGrant`""" -input AppProfileGrantInput { - createdAt: Datetime - grantorId: UUID - id: UUID +"""The output of our create `OrgInvite` mutation.""" +type CreateOrgInvitePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """True to assign the profile, false to revoke it""" - isGrant: Boolean + """The `OrgInvite` that was created by this mutation.""" + orgInvite: OrgInvite + + """An edge for our `OrgInvite`. May be used by Relay 1.""" + orgInviteEdge( + """The method to use when ordering `OrgInvite`.""" + orderBy: [OrgInviteOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgInviteEdge """ - References the membership that received or lost this profile; NULL if membership was deleted + Our root query field type. Allows us to run any query from our mutation payload. """ - membershipId: UUID + query: Query +} +"""All input for the create `OrgMember` mutation.""" +input CreateOrgMemberInput { """ - References the profile being assigned; NULL indicates the profile was removed + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - profileId: UUID - updatedAt: Datetime -} + clientMutationId: String -"""Methods to use when ordering `AppProfileGrant`.""" -enum AppProfileGrantOrderBy { - CREATED_AT_ASC - CREATED_AT_DESC - GRANTOR_ID_ASC - GRANTOR_ID_DESC - ID_ASC - ID_DESC - IS_GRANT_ASC - IS_GRANT_DESC - MEMBERSHIP_ID_ASC - MEMBERSHIP_ID_DESC - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - PROFILE_ID_ASC - PROFILE_ID_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC + """The `OrgMember` to be created by this mutation.""" + orgMember: OrgMemberInput! } -""" -Represents an update to a `AppProfileGrant`. Fields that are set will be updated. -""" -input AppProfileGrantPatch { - createdAt: Datetime - grantorId: UUID - id: UUID - - """True to assign the profile, false to revoke it""" - isGrant: Boolean - +"""The output of our create `OrgMember` mutation.""" +type CreateOrgMemberPayload { """ - References the membership that received or lost this profile; NULL if membership was deleted + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - membershipId: UUID + clientMutationId: String + + """The `OrgMember` that was created by this mutation.""" + orgMember: OrgMember + + """An edge for our `OrgMember`. May be used by Relay 1.""" + orgMemberEdge( + """The method to use when ordering `OrgMember`.""" + orderBy: [OrgMemberOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMemberEdge """ - References the profile being assigned; NULL indicates the profile was removed + Our root query field type. Allows us to run any query from our mutation payload. """ - profileId: UUID - updatedAt: Datetime + query: Query } -"""An input for mutations affecting `AppProfile`""" -input AppProfileInput { +"""All input for the create `OrgMemberProfile` mutation.""" +input CreateOrgMemberProfileInput { """ - Pre-computed capability bitmask aggregating all capabilities in this profile + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - capabilities: BitString - createdAt: Datetime + clientMutationId: String - """Human-readable description of this profile and its intended use""" - description: String - id: UUID + """The `OrgMemberProfile` to be created by this mutation.""" + orgMemberProfile: OrgMemberProfileInput! +} +"""The output of our create `OrgMemberProfile` mutation.""" +type CreateOrgMemberProfilePayload { """ - The default profile is automatically assigned to new members when they join + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - isDefault: Boolean - - """System profiles are built-in and cannot be deleted or renamed by users""" - isSystem: Boolean + clientMutationId: String - """Display name for this profile (e.g. Admin, Editor, Viewer)""" - name: String! + """The `OrgMemberProfile` that was created by this mutation.""" + orgMemberProfile: OrgMemberProfile - """URL-safe identifier for this profile, used in API references""" - slug: String! - updatedAt: Datetime -} + """An edge for our `OrgMemberProfile`. May be used by Relay 1.""" + orgMemberProfileEdge( + """The method to use when ordering `OrgMemberProfile`.""" + orderBy: [OrgMemberProfileOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMemberProfileEdge -"""Methods to use when ordering `AppProfile`.""" -enum AppProfileOrderBy { - CAPABILITIES_ASC - CAPABILITIES_DESC - CREATED_AT_ASC - CREATED_AT_DESC - DESCRIPTION_ASC - DESCRIPTION_DESC - ID_ASC - ID_DESC - IS_DEFAULT_ASC - IS_DEFAULT_DESC - IS_SYSTEM_ASC - IS_SYSTEM_DESC - NAME_ASC - NAME_DESC - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - SLUG_ASC - SLUG_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query } -""" -Represents an update to a `AppProfile`. Fields that are set will be updated. -""" -input AppProfilePatch { +"""All input for the create `OrgMembershipDefault` mutation.""" +input CreateOrgMembershipDefaultInput { """ - Pre-computed capability bitmask aggregating all capabilities in this profile + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - capabilities: BitString - createdAt: Datetime + clientMutationId: String - """Human-readable description of this profile and its intended use""" - description: String - id: UUID + """The `OrgMembershipDefault` to be created by this mutation.""" + orgMembershipDefault: OrgMembershipDefaultInput! +} +"""The output of our create `OrgMembershipDefault` mutation.""" +type CreateOrgMembershipDefaultPayload { """ - The default profile is automatically assigned to new members when they join + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - isDefault: Boolean + clientMutationId: String - """System profiles are built-in and cannot be deleted or renamed by users""" - isSystem: Boolean + """The `OrgMembershipDefault` that was created by this mutation.""" + orgMembershipDefault: OrgMembershipDefault - """Display name for this profile (e.g. Admin, Editor, Viewer)""" - name: String + """An edge for our `OrgMembershipDefault`. May be used by Relay 1.""" + orgMembershipDefaultEdge( + """The method to use when ordering `OrgMembershipDefault`.""" + orderBy: [OrgMembershipDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMembershipDefaultEdge - """URL-safe identifier for this profile, used in API references""" - slug: String - updatedAt: Datetime + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query } -""" -Template profiles that are automatically seeded into new entities when created -""" -type AppProfileTemplate { - """Pre-computed capability bitmask for the seeded profile""" - capabilities: BitString! - createdAt: Datetime - - """Human-readable description of this template profile""" - description: String - id: UUID! - - """Whether the seeded profile should be the default for new members""" - isDefault: Boolean! - - """Display name for the template profile (e.g. Admin, Editor, Viewer)""" - name: String! +"""All input for the create `OrgMembership` mutation.""" +input CreateOrgMembershipInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String - """URL-safe identifier for the template profile""" - slug: String! - updatedAt: Datetime + """The `OrgMembership` to be created by this mutation.""" + orgMembership: OrgMembershipInput! } -"""A connection to a list of `AppProfileTemplate` values.""" -type AppProfileTemplateConnection { +"""The output of our create `OrgMembership` mutation.""" +type CreateOrgMembershipPayload { """ - A list of edges which contains the `AppProfileTemplate` and cursor to aid in pagination. + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - edges: [AppProfileTemplateEdge]! + clientMutationId: String - """A list of `AppProfileTemplate` objects.""" - nodes: [AppProfileTemplate]! + """The `OrgMembership` that was created by this mutation.""" + orgMembership: OrgMembership - """Information to aid in pagination.""" - pageInfo: PageInfo! + """An edge for our `OrgMembership`. May be used by Relay 1.""" + orgMembershipEdge( + """The method to use when ordering `OrgMembership`.""" + orderBy: [OrgMembershipOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMembershipEdge """ - The count of *all* `AppProfileTemplate` you could get from the connection. + Our root query field type. Allows us to run any query from our mutation payload. """ - totalCount: Int! + query: Query } -"""A `AppProfileTemplate` edge in the connection.""" -type AppProfileTemplateEdge { - """A cursor for use in pagination.""" - cursor: Cursor +"""All input for the create `OrgMembershipSetting` mutation.""" +input CreateOrgMembershipSettingInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String - """The `AppProfileTemplate` at the end of the edge.""" - node: AppProfileTemplate + """The `OrgMembershipSetting` to be created by this mutation.""" + orgMembershipSetting: OrgMembershipSettingInput! } -""" -A filter to be used against `AppProfileTemplate` object types. All fields are combined with a logical ‘and.’ -""" -input AppProfileTemplateFilter { - """Checks for all expressions in this list.""" - and: [AppProfileTemplateFilter!] - - """Filter by the object’s `capabilities` field.""" - capabilities: BitStringFilter - - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter - - """Filter by the object’s `description` field.""" - description: StringFilter - - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `isDefault` field.""" - isDefault: BooleanFilter - - """Filter by the object’s `name` field.""" - name: StringFilter - - """Negates the expression.""" - not: AppProfileTemplateFilter - - """Checks for any expressions in this list.""" - or: [AppProfileTemplateFilter!] - - """Filter by the object’s `slug` field.""" - slug: StringFilter - - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter -} - -"""An input for mutations affecting `AppProfileTemplate`""" -input AppProfileTemplateInput { - """Pre-computed capability bitmask for the seeded profile""" - capabilities: BitString - createdAt: Datetime - - """Human-readable description of this template profile""" - description: String - id: UUID - - """Whether the seeded profile should be the default for new members""" - isDefault: Boolean - - """Display name for the template profile (e.g. Admin, Editor, Viewer)""" - name: String! - - """URL-safe identifier for the template profile""" - slug: String! - updatedAt: Datetime -} - -"""Methods to use when ordering `AppProfileTemplate`.""" -enum AppProfileTemplateOrderBy { - CAPABILITIES_ASC - CAPABILITIES_DESC - CREATED_AT_ASC - CREATED_AT_DESC - DESCRIPTION_ASC - DESCRIPTION_DESC - ID_ASC - ID_DESC - IS_DEFAULT_ASC - IS_DEFAULT_DESC - NAME_ASC - NAME_DESC - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - SLUG_ASC - SLUG_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC -} - -""" -Represents an update to a `AppProfileTemplate`. Fields that are set will be updated. -""" -input AppProfileTemplatePatch { - """Pre-computed capability bitmask for the seeded profile""" - capabilities: BitString - createdAt: Datetime - - """Human-readable description of this template profile""" - description: String - id: UUID - - """Whether the seeded profile should be the default for new members""" - isDefault: Boolean - - """Display name for the template profile (e.g. Admin, Editor, Viewer)""" - name: String - - """URL-safe identifier for the template profile""" - slug: String - updatedAt: Datetime -} +"""The output of our create `OrgMembershipSetting` mutation.""" +type CreateOrgMembershipSettingPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String -""" -A filter to be used against many `AppInvite` object types. All fields are combined with a logical ‘and.’ -""" -input AppProfileToManyAppInviteFilter { - """Filters to entities where every related entity matches.""" - every: AppInviteFilter + """The `OrgMembershipSetting` that was created by this mutation.""" + orgMembershipSetting: OrgMembershipSetting - """Filters to entities where no related entity matches.""" - none: AppInviteFilter + """An edge for our `OrgMembershipSetting`. May be used by Relay 1.""" + orgMembershipSettingEdge( + """The method to use when ordering `OrgMembershipSetting`.""" + orderBy: [OrgMembershipSettingOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMembershipSettingEdge - """Filters to entities where at least one related entity matches.""" - some: AppInviteFilter + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query } -""" -A filter to be used against many `AppMembership` object types. All fields are combined with a logical ‘and.’ -""" -input AppProfileToManyAppMembershipFilter { - """Filters to entities where every related entity matches.""" - every: AppMembershipFilter - - """Filters to entities where no related entity matches.""" - none: AppMembershipFilter +"""All input for the create `OrgOwnerGrant` mutation.""" +input CreateOrgOwnerGrantInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String - """Filters to entities where at least one related entity matches.""" - some: AppMembershipFilter + """The `OrgOwnerGrant` to be created by this mutation.""" + orgOwnerGrant: OrgOwnerGrantInput! } -""" -A filter to be used against many `AppMembershipProfile` object types. All fields are combined with a logical ‘and.’ -""" -input AppProfileToManyAppMembershipProfileFilter { - """Filters to entities where every related entity matches.""" - every: AppMembershipProfileFilter - - """Filters to entities where no related entity matches.""" - none: AppMembershipProfileFilter - - """Filters to entities where at least one related entity matches.""" - some: AppMembershipProfileFilter -} +"""The output of our create `OrgOwnerGrant` mutation.""" +type CreateOrgOwnerGrantPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String -""" -A filter to be used against many `AppProfileCapability` object types. All fields are combined with a logical ‘and.’ -""" -input AppProfileToManyAppProfileCapabilityFilter { - """Filters to entities where every related entity matches.""" - every: AppProfileCapabilityFilter + """The `OrgOwnerGrant` that was created by this mutation.""" + orgOwnerGrant: OrgOwnerGrant - """Filters to entities where no related entity matches.""" - none: AppProfileCapabilityFilter + """An edge for our `OrgOwnerGrant`. May be used by Relay 1.""" + orgOwnerGrantEdge( + """The method to use when ordering `OrgOwnerGrant`.""" + orderBy: [OrgOwnerGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgOwnerGrantEdge - """Filters to entities where at least one related entity matches.""" - some: AppProfileCapabilityFilter + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query } -""" -A filter to be used against many `AppProfileDefinitionGrant` object types. All fields are combined with a logical ‘and.’ -""" -input AppProfileToManyAppProfileDefinitionGrantFilter { - """Filters to entities where every related entity matches.""" - every: AppProfileDefinitionGrantFilter - - """Filters to entities where no related entity matches.""" - none: AppProfileDefinitionGrantFilter - - """Filters to entities where at least one related entity matches.""" - some: AppProfileDefinitionGrantFilter -} +"""A location in a connection that can be used for resuming pagination.""" +scalar Cursor """ -A filter to be used against many `AppProfileGrant` object types. All fields are combined with a logical ‘and.’ +A point in time as described by the [ISO +8601](https://en.wikipedia.org/wiki/ISO_8601) and, if it has a timezone, [RFC +3339](https://datatracker.ietf.org/doc/html/rfc3339) standards. Input values +that do not conform to both ISO 8601 and RFC 3339 may be coerced, which may lead +to unexpected results. """ -input AppProfileToManyAppProfileGrantFilter { - """Filters to entities where every related entity matches.""" - every: AppProfileGrantFilter - - """Filters to entities where no related entity matches.""" - none: AppProfileGrantFilter - - """Filters to entities where at least one related entity matches.""" - some: AppProfileGrantFilter -} - -"""A string representing a series of binary bits""" -scalar BitString +scalar Datetime """ -A filter to be used against BitString fields. All fields are combined with a logical ‘and.’ +A filter to be used against Datetime fields. All fields are combined with a logical ‘and.’ """ -input BitStringFilter { +input DatetimeFilter { """ Not equal to the specified value, treating null like an ordinary value. """ - distinctFrom: BitString + distinctFrom: Datetime """Equal to the specified value.""" - equalTo: BitString + equalTo: Datetime """Greater than the specified value.""" - greaterThan: BitString + greaterThan: Datetime """Greater than or equal to the specified value.""" - greaterThanOrEqualTo: BitString + greaterThanOrEqualTo: Datetime """Included in the specified list.""" - in: [BitString!] + in: [Datetime!] """ Is null (if `true` is specified) or is not null (if `false` is specified). @@ -3219,278 +2595,177 @@ input BitStringFilter { isNull: Boolean """Less than the specified value.""" - lessThan: BitString + lessThan: Datetime """Less than or equal to the specified value.""" - lessThanOrEqualTo: BitString + lessThanOrEqualTo: Datetime """Equal to the specified value, treating null like an ordinary value.""" - notDistinctFrom: BitString + notDistinctFrom: Datetime """Not equal to the specified value.""" - notEqualTo: BitString + notEqualTo: Datetime """Not included in the specified list.""" - notIn: [BitString!] + notIn: [Datetime!] } -""" -A filter to be used against Boolean fields. All fields are combined with a logical ‘and.’ -""" -input BooleanFilter { +"""All input for the `deleteAppAdminGrant` mutation.""" +input DeleteAppAdminGrantInput { """ - Not equal to the specified value, treating null like an ordinary value. + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - distinctFrom: Boolean - - """Equal to the specified value.""" - equalTo: Boolean - - """Greater than the specified value.""" - greaterThan: Boolean + clientMutationId: String + id: UUID! +} - """Greater than or equal to the specified value.""" - greaterThanOrEqualTo: Boolean +"""The output of our delete `AppAdminGrant` mutation.""" +type DeleteAppAdminGrantPayload { + """The `AppAdminGrant` that was deleted by this mutation.""" + appAdminGrant: AppAdminGrant - """Included in the specified list.""" - in: [Boolean!] + """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 """ - Is null (if `true` is specified) or is not null (if `false` is specified). + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - 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 + clientMutationId: String - """Not included in the specified list.""" - notIn: [Boolean!] + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query } -scalar ConstructiveInternalTypeEmail +"""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! +} -""" -A filter to be used against ConstructiveInternalTypeEmail fields. All fields are combined with a logical ‘and.’ -""" -input ConstructiveInternalTypeEmailFilter { +"""The output of our delete `AppCapabilityDefaultCapability` mutation.""" +type DeleteAppCapabilityDefaultCapabilityPayload { """ - Not equal to the specified value, treating null like an ordinary value. + The `AppCapabilityDefaultCapability` that was deleted by this mutation. """ - distinctFrom: String + appCapabilityDefaultCapability: AppCapabilityDefaultCapability """ - Not equal to the specified value, treating null like an ordinary value (case-insensitive). + An edge for our `AppCapabilityDefaultCapability`. May be used by Relay 1. """ - distinctFromInsensitive: ConstructiveInternalTypeEmail + appCapabilityDefaultCapabilityEdge( + """The method to use when ordering `AppCapabilityDefaultCapability`.""" + orderBy: [AppCapabilityDefaultCapabilityOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppCapabilityDefaultCapabilityEdge - """Ends with the specified string (case-sensitive).""" - endsWith: String - - """Ends with the specified string (case-insensitive).""" - endsWithInsensitive: ConstructiveInternalTypeEmail - - """Equal to the specified value.""" - equalTo: String - - """Equal to the specified value (case-insensitive).""" - equalToInsensitive: ConstructiveInternalTypeEmail - - """Greater than the specified value.""" - greaterThan: String - - """Greater than the specified value (case-insensitive).""" - greaterThanInsensitive: ConstructiveInternalTypeEmail - - """Greater than or equal to the specified value.""" - greaterThanOrEqualTo: String - - """Greater than or equal to the specified value (case-insensitive).""" - greaterThanOrEqualToInsensitive: ConstructiveInternalTypeEmail - - """Included in the specified list.""" - in: [String!] - - """Included in the specified list (case-insensitive).""" - inInsensitive: [ConstructiveInternalTypeEmail!] - - """Contains the specified string (case-sensitive).""" - includes: String - - """Contains the specified string (case-insensitive).""" - includesInsensitive: ConstructiveInternalTypeEmail + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String """ - Is null (if `true` is specified) or is not null (if `false` is specified). + Our root query field type. Allows us to run any query from our mutation payload. """ - isNull: Boolean - - """Less than the specified value.""" - lessThan: String - - """Less than the specified value (case-insensitive).""" - lessThanInsensitive: ConstructiveInternalTypeEmail - - """Less than or equal to the specified value.""" - lessThanOrEqualTo: String - - """Less than or equal to the specified value (case-insensitive).""" - lessThanOrEqualToInsensitive: ConstructiveInternalTypeEmail + query: Query +} +"""All input for the `deleteAppCapabilityDefaultGrant` mutation.""" +input DeleteAppCapabilityDefaultGrantInput { """ - Matches the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - like: String + clientMutationId: String + id: UUID! +} - """ - Matches the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. - """ - likeInsensitive: ConstructiveInternalTypeEmail +"""The output of our delete `AppCapabilityDefaultGrant` mutation.""" +type DeleteAppCapabilityDefaultGrantPayload { + """The `AppCapabilityDefaultGrant` that was deleted by this mutation.""" + appCapabilityDefaultGrant: AppCapabilityDefaultGrant - """Equal to the specified value, treating null like an ordinary value.""" - notDistinctFrom: String + """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 """ - Equal to the specified value, treating null like an ordinary value (case-insensitive). + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - notDistinctFromInsensitive: ConstructiveInternalTypeEmail - - """Does not end with the specified string (case-sensitive).""" - notEndsWith: String - - """Does not end with the specified string (case-insensitive).""" - notEndsWithInsensitive: ConstructiveInternalTypeEmail - - """Not equal to the specified value.""" - notEqualTo: String - - """Not equal to the specified value (case-insensitive).""" - notEqualToInsensitive: ConstructiveInternalTypeEmail - - """Not included in the specified list.""" - notIn: [String!] - - """Not included in the specified list (case-insensitive).""" - notInInsensitive: [ConstructiveInternalTypeEmail!] - - """Does not contain the specified string (case-sensitive).""" - notIncludes: String - - """Does not contain the specified string (case-insensitive).""" - notIncludesInsensitive: ConstructiveInternalTypeEmail + clientMutationId: 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. + Our root query field type. Allows us to run any query from our mutation payload. """ - notLike: String + query: Query +} +"""All input for the `deleteAppClaimedInvite` mutation.""" +input DeleteAppClaimedInviteInput { """ - 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. + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - notLikeInsensitive: ConstructiveInternalTypeEmail - - """Does not start with the specified string (case-sensitive).""" - notStartsWith: String - - """Does not start with the specified string (case-insensitive).""" - notStartsWithInsensitive: ConstructiveInternalTypeEmail - - """Starts with the specified string (case-sensitive).""" - startsWith: String - - """Starts with the specified string (case-insensitive).""" - startsWithInsensitive: ConstructiveInternalTypeEmail + clientMutationId: String + id: UUID! } -scalar ConstructiveInternalTypeImage - -""" -A filter to be used against ConstructiveInternalTypeImage fields. All fields are combined with a logical ‘and.’ -""" -input ConstructiveInternalTypeImageFilter { - """Contained by the specified JSON.""" - containedBy: ConstructiveInternalTypeImage - - """Contains the specified JSON.""" - contains: ConstructiveInternalTypeImage - - """Contains all of the specified keys.""" - containsAllKeys: [String!] - - """Contains any of the specified keys.""" - containsAnyKeys: [String!] +"""The output of our delete `AppClaimedInvite` mutation.""" +type DeleteAppClaimedInvitePayload { + """The `AppClaimedInvite` that was deleted by this mutation.""" + appClaimedInvite: AppClaimedInvite - """Contains the specified key.""" - containsKey: String + """An edge for our `AppClaimedInvite`. May be used by Relay 1.""" + appClaimedInviteEdge( + """The method to use when ordering `AppClaimedInvite`.""" + orderBy: [AppClaimedInviteOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppClaimedInviteEdge """ - Not equal to the specified value, treating null like an ordinary value. + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - distinctFrom: ConstructiveInternalTypeImage - - """Equal to the specified value.""" - equalTo: ConstructiveInternalTypeImage - - """Greater than the specified value.""" - greaterThan: ConstructiveInternalTypeImage - - """Greater than or equal to the specified value.""" - greaterThanOrEqualTo: ConstructiveInternalTypeImage - - """Included in the specified list.""" - in: [ConstructiveInternalTypeImage!] + clientMutationId: String """ - Is null (if `true` is specified) or is not null (if `false` is specified). + Our root query field type. Allows us to run any query from our mutation payload. """ - isNull: Boolean - - """Less than the specified value.""" - lessThan: ConstructiveInternalTypeImage - - """Less than or equal to the specified value.""" - lessThanOrEqualTo: ConstructiveInternalTypeImage - - """Equal to the specified value, treating null like an ordinary value.""" - notDistinctFrom: ConstructiveInternalTypeImage - - """Not equal to the specified value.""" - notEqualTo: ConstructiveInternalTypeImage - - """Not included in the specified list.""" - notIn: [ConstructiveInternalTypeImage!] + query: Query } -"""All input for the create `AppAdminGrant` mutation.""" -input CreateAppAdminGrantInput { - """The `AppAdminGrant` to be created by this mutation.""" - appAdminGrant: AppAdminGrantInput! - +"""All input for the `deleteAppGrant` mutation.""" +input DeleteAppGrantInput { """ An arbitrary 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 create `AppAdminGrant` mutation.""" -type CreateAppAdminGrantPayload { - """The `AppAdminGrant` that was created by this mutation.""" - appAdminGrant: AppAdminGrant +"""The output of our delete `AppGrant` mutation.""" +type DeleteAppGrantPayload { + """The `AppGrant` that was deleted by this mutation.""" + appGrant: AppGrant - """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 `AppGrant`. May be used by Relay 1.""" + appGrantEdge( + """The method to use when ordering `AppGrant`.""" + orderBy: [AppGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppGrantEdge """ The exact same `clientMutationId` that was provided in the mutation input, @@ -3504,32 +2779,26 @@ type CreateAppAdminGrantPayload { query: Query } -"""All input for the create `AppCapabilityDefaultCapability` mutation.""" -input CreateAppCapabilityDefaultCapabilityInput { - """The `AppCapabilityDefaultCapability` to be created by this mutation.""" - appCapabilityDefaultCapability: AppCapabilityDefaultCapabilityInput! - +"""All input for the `deleteAppInvite` mutation.""" +input DeleteAppInviteInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String + id: UUID! } -"""The output of our create `AppCapabilityDefaultCapability` mutation.""" -type CreateAppCapabilityDefaultCapabilityPayload { - """ - The `AppCapabilityDefaultCapability` that was created by this mutation. - """ - appCapabilityDefaultCapability: AppCapabilityDefaultCapability +"""The output of our delete `AppInvite` mutation.""" +type DeleteAppInvitePayload { + """The `AppInvite` that was deleted by this mutation.""" + appInvite: AppInvite - """ - 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 + """An edge for our `AppInvite`. May be used by Relay 1.""" + appInviteEdge( + """The method to use when ordering `AppInvite`.""" + orderBy: [AppInviteOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppInviteEdge """ The exact same `clientMutationId` that was provided in the mutation input, @@ -3543,28 +2812,26 @@ type CreateAppCapabilityDefaultCapabilityPayload { query: Query } -"""All input for the create `AppCapabilityDefaultGrant` mutation.""" -input CreateAppCapabilityDefaultGrantInput { - """The `AppCapabilityDefaultGrant` to be created by this mutation.""" - appCapabilityDefaultGrant: AppCapabilityDefaultGrantInput! - +"""All input for the `deleteAppMembershipDefault` mutation.""" +input DeleteAppMembershipDefaultInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String + id: UUID! } -"""The output of our create `AppCapabilityDefaultGrant` mutation.""" -type CreateAppCapabilityDefaultGrantPayload { - """The `AppCapabilityDefaultGrant` that was created by this mutation.""" - appCapabilityDefaultGrant: AppCapabilityDefaultGrant +"""The output of our delete `AppMembershipDefault` mutation.""" +type DeleteAppMembershipDefaultPayload { + """The `AppMembershipDefault` that was deleted by this mutation.""" + appMembershipDefault: AppMembershipDefault - """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 + """An edge for our `AppMembershipDefault`. May be used by Relay 1.""" + appMembershipDefaultEdge( + """The method to use when ordering `AppMembershipDefault`.""" + orderBy: [AppMembershipDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppMembershipDefaultEdge """ The exact same `clientMutationId` that was provided in the mutation input, @@ -3578,28 +2845,26 @@ type CreateAppCapabilityDefaultGrantPayload { query: Query } -"""All input for the create `AppCapabilityDefault` mutation.""" -input CreateAppCapabilityDefaultInput { - """The `AppCapabilityDefault` to be created by this mutation.""" - appCapabilityDefault: AppCapabilityDefaultInput! - +"""All input for the `deleteAppMembership` mutation.""" +input DeleteAppMembershipInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String + id: UUID! } -"""The output of our create `AppCapabilityDefault` mutation.""" -type CreateAppCapabilityDefaultPayload { - """The `AppCapabilityDefault` that was created by this mutation.""" - appCapabilityDefault: AppCapabilityDefault +"""The output of our delete `AppMembership` mutation.""" +type DeleteAppMembershipPayload { + """The `AppMembership` that was deleted by this mutation.""" + appMembership: AppMembership - """An edge for our `AppCapabilityDefault`. May be used by Relay 1.""" - appCapabilityDefaultEdge( - """The method to use when ordering `AppCapabilityDefault`.""" - orderBy: [AppCapabilityDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppCapabilityDefaultEdge + """An edge for our `AppMembership`. May be used by Relay 1.""" + appMembershipEdge( + """The method to use when ordering `AppMembership`.""" + orderBy: [AppMembershipOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppMembershipEdge """ The exact same `clientMutationId` that was provided in the mutation input, @@ -3613,28 +2878,26 @@ type CreateAppCapabilityDefaultPayload { query: Query } -"""All input for the create `AppCapability` mutation.""" -input CreateAppCapabilityInput { - """The `AppCapability` to be created by this mutation.""" - appCapability: AppCapabilityInput! - +"""All input for the `deleteAppOwnerGrant` mutation.""" +input DeleteAppOwnerGrantInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String + id: UUID! } -"""The output of our create `AppCapability` mutation.""" -type CreateAppCapabilityPayload { - """The `AppCapability` that was created by this mutation.""" - appCapability: AppCapability +"""The output of our delete `AppOwnerGrant` mutation.""" +type DeleteAppOwnerGrantPayload { + """The `AppOwnerGrant` that was deleted by this mutation.""" + appOwnerGrant: AppOwnerGrant - """An edge for our `AppCapability`. May be used by Relay 1.""" - appCapabilityEdge( - """The method to use when ordering `AppCapability`.""" - orderBy: [AppCapabilityOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppCapabilityEdge + """An edge for our `AppOwnerGrant`. May be used by Relay 1.""" + appOwnerGrantEdge( + """The method to use when ordering `AppOwnerGrant`.""" + orderBy: [AppOwnerGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppOwnerGrantEdge """ The exact same `clientMutationId` that was provided in the mutation input, @@ -3648,454 +2911,436 @@ type CreateAppCapabilityPayload { query: Query } -"""All input for the create `AppClaimedInvite` mutation.""" -input CreateAppClaimedInviteInput { - """The `AppClaimedInvite` to be created by this mutation.""" - appClaimedInvite: AppClaimedInviteInput! - +"""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 -} - -"""The output of our create `AppClaimedInvite` mutation.""" -type CreateAppClaimedInvitePayload { - """The `AppClaimedInvite` that was created by this mutation.""" - appClaimedInvite: AppClaimedInvite - """An edge for our `AppClaimedInvite`. May be used by Relay 1.""" - appClaimedInviteEdge( - """The method to use when ordering `AppClaimedInvite`.""" - orderBy: [AppClaimedInviteOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppClaimedInviteEdge + """ + Integer identifier for the membership type (1=App, 2=Organization, 3=Group) + """ + id: Int! +} +"""The output of our delete `MembershipType` mutation.""" +type DeleteMembershipTypePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String + """The `MembershipType` that was deleted by this mutation.""" + membershipType: MembershipType + + """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 create `AppGrant` mutation.""" -input CreateAppGrantInput { - """The `AppGrant` to be created by this mutation.""" - appGrant: AppGrantInput! - +"""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. """ clientMutationId: String + id: UUID! } -"""The output of our create `AppGrant` mutation.""" -type CreateAppGrantPayload { - """The `AppGrant` that was created by this mutation.""" - appGrant: AppGrant - - """An edge for our `AppGrant`. May be used by Relay 1.""" - appGrantEdge( - """The method to use when ordering `AppGrant`.""" - orderBy: [AppGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppGrantEdge - +"""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 create `AppInvite` mutation.""" -input CreateAppInviteInput { - """The `AppInvite` to be created by this mutation.""" - appInvite: AppInviteInput! - +"""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 + id: UUID! } -"""The output of our create `AppInvite` mutation.""" -type CreateAppInvitePayload { - """The `AppInvite` that was created by this mutation.""" - appInvite: AppInvite - - """An edge for our `AppInvite`. May be used by Relay 1.""" - appInviteEdge( - """The method to use when ordering `AppInvite`.""" - orderBy: [AppInviteOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppInviteEdge - +"""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 `OrgCapabilityDefaultCapability` that was deleted 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 `AppMembershipDefault` mutation.""" -input CreateAppMembershipDefaultInput { - """The `AppMembershipDefault` to be created by this mutation.""" - appMembershipDefault: AppMembershipDefaultInput! - +"""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. """ clientMutationId: String + id: UUID! } -"""The output of our create `AppMembershipDefault` mutation.""" -type CreateAppMembershipDefaultPayload { - """The `AppMembershipDefault` that was created by this mutation.""" - appMembershipDefault: AppMembershipDefault - - """An edge for our `AppMembershipDefault`. May be used by Relay 1.""" - appMembershipDefaultEdge( - """The method to use when ordering `AppMembershipDefault`.""" - orderBy: [AppMembershipDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppMembershipDefaultEdge - +"""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 `OrgCapabilityDefaultGrant` that was deleted 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 `AppMembership` mutation.""" -input CreateAppMembershipInput { - """The `AppMembership` to be created by this mutation.""" - appMembership: AppMembershipInput! - +"""All input for the `deleteOrgChartEdgeGrant` mutation.""" +input DeleteOrgChartEdgeGrantInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String + id: UUID! } -"""The output of our create `AppMembership` mutation.""" -type CreateAppMembershipPayload { - """The `AppMembership` that was created by this mutation.""" - appMembership: AppMembership - - """An edge for our `AppMembership`. May be used by Relay 1.""" - appMembershipEdge( - """The method to use when ordering `AppMembership`.""" - orderBy: [AppMembershipOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppMembershipEdge - +"""The output of our delete `OrgChartEdgeGrant` mutation.""" +type DeleteOrgChartEdgeGrantPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String + """The `OrgChartEdgeGrant` that was deleted by this mutation.""" + orgChartEdgeGrant: OrgChartEdgeGrant + + """An edge for our `OrgChartEdgeGrant`. May be used by Relay 1.""" + orgChartEdgeGrantEdge( + """The method to use when ordering `OrgChartEdgeGrant`.""" + orderBy: [OrgChartEdgeGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgChartEdgeGrantEdge + """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query } -"""All input for the create `AppMembershipProfile` mutation.""" -input CreateAppMembershipProfileInput { - """The `AppMembershipProfile` to be created by this mutation.""" - appMembershipProfile: AppMembershipProfileInput! - +"""All input for the `deleteOrgChartEdge` mutation.""" +input DeleteOrgChartEdgeInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String + id: UUID! } -"""The output of our create `AppMembershipProfile` mutation.""" -type CreateAppMembershipProfilePayload { - """The `AppMembershipProfile` that was created by this mutation.""" - appMembershipProfile: AppMembershipProfile - - """An edge for our `AppMembershipProfile`. May be used by Relay 1.""" - appMembershipProfileEdge( - """The method to use when ordering `AppMembershipProfile`.""" - orderBy: [AppMembershipProfileOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppMembershipProfileEdge - +"""The output of our delete `OrgChartEdge` mutation.""" +type DeleteOrgChartEdgePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String + """The `OrgChartEdge` that was deleted by this mutation.""" + orgChartEdge: OrgChartEdge + + """An edge for our `OrgChartEdge`. May be used by Relay 1.""" + orgChartEdgeEdge( + """The method to use when ordering `OrgChartEdge`.""" + orderBy: [OrgChartEdgeOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgChartEdgeEdge + """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query } -"""All input for the create `AppOwnerGrant` mutation.""" -input CreateAppOwnerGrantInput { - """The `AppOwnerGrant` to be created by this mutation.""" - appOwnerGrant: AppOwnerGrantInput! - +"""All input for the `deleteOrgClaimedInvite` mutation.""" +input DeleteOrgClaimedInviteInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String + id: UUID! } -"""The output of our create `AppOwnerGrant` mutation.""" -type CreateAppOwnerGrantPayload { - """The `AppOwnerGrant` that was created by this mutation.""" - appOwnerGrant: AppOwnerGrant - - """An edge for our `AppOwnerGrant`. May be used by Relay 1.""" - appOwnerGrantEdge( - """The method to use when ordering `AppOwnerGrant`.""" - orderBy: [AppOwnerGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppOwnerGrantEdge - +"""The output of our delete `OrgClaimedInvite` mutation.""" +type DeleteOrgClaimedInvitePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String + """The `OrgClaimedInvite` that was deleted by this mutation.""" + orgClaimedInvite: OrgClaimedInvite + + """An edge for our `OrgClaimedInvite`. May be used by Relay 1.""" + orgClaimedInviteEdge( + """The method to use when ordering `OrgClaimedInvite`.""" + orderBy: [OrgClaimedInviteOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgClaimedInviteEdge + """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query } -"""All input for the create `AppProfileCapability` mutation.""" -input CreateAppProfileCapabilityInput { - """The `AppProfileCapability` to be created by this mutation.""" - appProfileCapability: AppProfileCapabilityInput! - +"""All input for the `deleteOrgGrant` mutation.""" +input DeleteOrgGrantInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String + id: UUID! } -"""The output of our create `AppProfileCapability` mutation.""" -type CreateAppProfileCapabilityPayload { - """The `AppProfileCapability` that was created by this mutation.""" - appProfileCapability: AppProfileCapability - - """An edge for our `AppProfileCapability`. May be used by Relay 1.""" - appProfileCapabilityEdge( - """The method to use when ordering `AppProfileCapability`.""" - orderBy: [AppProfileCapabilityOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppProfileCapabilityEdge - - """ +"""The output of our delete `OrgGrant` mutation.""" +type DeleteOrgGrantPayload { + """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String + """The `OrgGrant` that was deleted by this mutation.""" + orgGrant: OrgGrant + + """An edge for our `OrgGrant`. May be used by Relay 1.""" + orgGrantEdge( + """The method to use when ordering `OrgGrant`.""" + orderBy: [OrgGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgGrantEdge + """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query } -"""All input for the create `AppProfileDefinitionGrant` mutation.""" -input CreateAppProfileDefinitionGrantInput { - """The `AppProfileDefinitionGrant` to be created by this mutation.""" - appProfileDefinitionGrant: AppProfileDefinitionGrantInput! - +"""All input for the `deleteOrgInvite` mutation.""" +input DeleteOrgInviteInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String + id: UUID! } -"""The output of our create `AppProfileDefinitionGrant` mutation.""" -type CreateAppProfileDefinitionGrantPayload { - """The `AppProfileDefinitionGrant` that was created by this mutation.""" - appProfileDefinitionGrant: AppProfileDefinitionGrant - - """An edge for our `AppProfileDefinitionGrant`. May be used by Relay 1.""" - appProfileDefinitionGrantEdge( - """The method to use when ordering `AppProfileDefinitionGrant`.""" - orderBy: [AppProfileDefinitionGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppProfileDefinitionGrantEdge - +"""The output of our delete `OrgInvite` mutation.""" +type DeleteOrgInvitePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String + """The `OrgInvite` that was deleted by this mutation.""" + orgInvite: OrgInvite + + """An edge for our `OrgInvite`. May be used by Relay 1.""" + orgInviteEdge( + """The method to use when ordering `OrgInvite`.""" + orderBy: [OrgInviteOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgInviteEdge + """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query } -"""All input for the create `AppProfileGrant` mutation.""" -input CreateAppProfileGrantInput { - """The `AppProfileGrant` to be created by this mutation.""" - appProfileGrant: AppProfileGrantInput! - +"""All input for the `deleteOrgMember` mutation.""" +input DeleteOrgMemberInput { """ An arbitrary 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 create `AppProfileGrant` mutation.""" -type CreateAppProfileGrantPayload { - """The `AppProfileGrant` that was created by this mutation.""" - appProfileGrant: AppProfileGrant - - """An edge for our `AppProfileGrant`. May be used by Relay 1.""" - appProfileGrantEdge( - """The method to use when ordering `AppProfileGrant`.""" - orderBy: [AppProfileGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppProfileGrantEdge - +"""The output of our delete `OrgMember` mutation.""" +type DeleteOrgMemberPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String + """The `OrgMember` that was deleted by this mutation.""" + orgMember: OrgMember + + """An edge for our `OrgMember`. May be used by Relay 1.""" + orgMemberEdge( + """The method to use when ordering `OrgMember`.""" + orderBy: [OrgMemberOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMemberEdge + """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query } -"""All input for the create `AppProfile` mutation.""" -input CreateAppProfileInput { - """The `AppProfile` to be created by this mutation.""" - appProfile: AppProfileInput! - +"""All input for the `deleteOrgMemberProfile` mutation.""" +input DeleteOrgMemberProfileInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String + id: UUID! } -"""The output of our create `AppProfile` mutation.""" -type CreateAppProfilePayload { - """The `AppProfile` that was created by this mutation.""" - appProfile: AppProfile - - """An edge for our `AppProfile`. May be used by Relay 1.""" - appProfileEdge( - """The method to use when ordering `AppProfile`.""" - orderBy: [AppProfileOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppProfileEdge - +"""The output of our delete `OrgMemberProfile` mutation.""" +type DeleteOrgMemberProfilePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String + """The `OrgMemberProfile` that was deleted by this mutation.""" + orgMemberProfile: OrgMemberProfile + + """An edge for our `OrgMemberProfile`. May be used by Relay 1.""" + orgMemberProfileEdge( + """The method to use when ordering `OrgMemberProfile`.""" + orderBy: [OrgMemberProfileOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMemberProfileEdge + """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query } -"""All input for the create `AppProfileTemplate` mutation.""" -input CreateAppProfileTemplateInput { - """The `AppProfileTemplate` to be created by this mutation.""" - appProfileTemplate: AppProfileTemplateInput! - +"""All input for the `deleteOrgMembershipDefault` mutation.""" +input DeleteOrgMembershipDefaultInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String + id: UUID! } -"""The output of our create `AppProfileTemplate` mutation.""" -type CreateAppProfileTemplatePayload { - """The `AppProfileTemplate` that was created by this mutation.""" - appProfileTemplate: AppProfileTemplate - - """An edge for our `AppProfileTemplate`. May be used by Relay 1.""" - appProfileTemplateEdge( - """The method to use when ordering `AppProfileTemplate`.""" - orderBy: [AppProfileTemplateOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppProfileTemplateEdge - +"""The output of our delete `OrgMembershipDefault` mutation.""" +type DeleteOrgMembershipDefaultPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String + """The `OrgMembershipDefault` that was deleted by this mutation.""" + orgMembershipDefault: OrgMembershipDefault + + """An edge for our `OrgMembershipDefault`. May be used by Relay 1.""" + orgMembershipDefaultEdge( + """The method to use when ordering `OrgMembershipDefault`.""" + orderBy: [OrgMembershipDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMembershipDefaultEdge + """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query } -"""All input for the create `MembershipType` mutation.""" -input CreateMembershipTypeInput { +"""All input for the `deleteOrgMembership` mutation.""" +input DeleteOrgMembershipInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - - """The `MembershipType` to be created by this mutation.""" - membershipType: MembershipTypeInput! + id: UUID! } -"""The output of our create `MembershipType` mutation.""" -type CreateMembershipTypePayload { +"""The output of our delete `OrgMembership` mutation.""" +type DeleteOrgMembershipPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `MembershipType` that was created by this mutation.""" - membershipType: MembershipType + """The `OrgMembership` that was deleted by this mutation.""" + orgMembership: OrgMembership - """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 `OrgMembership`. May be used by Relay 1.""" + orgMembershipEdge( + """The method to use when ordering `OrgMembership`.""" + orderBy: [OrgMembershipOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMembershipEdge """ Our root query field type. Allows us to run any query from our mutation payload. @@ -4103,34 +3348,32 @@ type CreateMembershipTypePayload { query: Query } -"""All input for the create `OrgAdminGrant` mutation.""" -input CreateOrgAdminGrantInput { +"""All input for the `deleteOrgMembershipSetting` mutation.""" +input DeleteOrgMembershipSettingInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - - """The `OrgAdminGrant` to be created by this mutation.""" - orgAdminGrant: OrgAdminGrantInput! + id: UUID! } -"""The output of our create `OrgAdminGrant` mutation.""" -type CreateOrgAdminGrantPayload { +"""The output of our delete `OrgMembershipSetting` mutation.""" +type DeleteOrgMembershipSettingPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgAdminGrant` that was created by this mutation.""" - orgAdminGrant: OrgAdminGrant + """The `OrgMembershipSetting` that was deleted by this mutation.""" + orgMembershipSetting: OrgMembershipSetting - """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 `OrgMembershipSetting`. May be used by Relay 1.""" + orgMembershipSettingEdge( + """The method to use when ordering `OrgMembershipSetting`.""" + orderBy: [OrgMembershipSettingOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMembershipSettingEdge """ Our root query field type. Allows us to run any query from our mutation payload. @@ -4138,38 +3381,32 @@ type CreateOrgAdminGrantPayload { query: Query } -"""All input for the create `OrgCapabilityDefaultCapability` mutation.""" -input CreateOrgCapabilityDefaultCapabilityInput { +"""All input for the `deleteOrgOwnerGrant` mutation.""" +input DeleteOrgOwnerGrantInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - - """The `OrgCapabilityDefaultCapability` to be created by this mutation.""" - orgCapabilityDefaultCapability: OrgCapabilityDefaultCapabilityInput! + id: UUID! } -"""The output of our create `OrgCapabilityDefaultCapability` mutation.""" -type CreateOrgCapabilityDefaultCapabilityPayload { +"""The output of our delete `OrgOwnerGrant` mutation.""" +type DeleteOrgOwnerGrantPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """ - The `OrgCapabilityDefaultCapability` that was created by this mutation. - """ - orgCapabilityDefaultCapability: OrgCapabilityDefaultCapability + """The `OrgOwnerGrant` that was deleted by this mutation.""" + orgOwnerGrant: OrgOwnerGrant - """ - 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 + """An edge for our `OrgOwnerGrant`. May be used by Relay 1.""" + orgOwnerGrantEdge( + """The method to use when ordering `OrgOwnerGrant`.""" + orderBy: [OrgOwnerGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgOwnerGrantEdge """ Our root query field type. Allows us to run any query from our mutation payload. @@ -4177,5113 +3414,1248 @@ type CreateOrgCapabilityDefaultCapabilityPayload { query: Query } -"""All input for the create `OrgCapabilityDefaultGrant` mutation.""" -input CreateOrgCapabilityDefaultGrantInput { +""" +A filter to be used against Int fields. All fields are combined with a logical ‘and.’ +""" +input IntFilter { """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. + Not equal to the specified value, treating null like an ordinary value. """ - clientMutationId: String + distinctFrom: Int - """The `OrgCapabilityDefaultGrant` to be created by this mutation.""" - orgCapabilityDefaultGrant: OrgCapabilityDefaultGrantInput! -} + """Equal to the specified value.""" + equalTo: Int -"""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 + """Greater than the specified value.""" + greaterThan: Int - """The `OrgCapabilityDefaultGrant` that was created by this mutation.""" - orgCapabilityDefaultGrant: OrgCapabilityDefaultGrant + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: Int - """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 + """Included in the specified list.""" + in: [Int!] """ - Our root query field type. Allows us to run any query from our mutation payload. + Is null (if `true` is specified) or is not null (if `false` is specified). """ - query: Query -} + isNull: Boolean -"""All input for the create `OrgCapabilityDefault` mutation.""" -input CreateOrgCapabilityDefaultInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String + """Less than the specified value.""" + lessThan: Int - """The `OrgCapabilityDefault` to be created by this mutation.""" - orgCapabilityDefault: OrgCapabilityDefaultInput! -} + """Less than or equal to the specified value.""" + lessThanOrEqualTo: Int -"""The output of our create `OrgCapabilityDefault` mutation.""" -type CreateOrgCapabilityDefaultPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: Int + + """Not equal to the specified value.""" + notEqualTo: Int + + """Not included in the specified list.""" + notIn: [Int!] +} - """The `OrgCapabilityDefault` that was created by this mutation.""" - orgCapabilityDefault: OrgCapabilityDefault +""" +Represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). +""" +scalar JSON - """An edge for our `OrgCapabilityDefault`. May be used by Relay 1.""" - orgCapabilityDefaultEdge( - """The method to use when ordering `OrgCapabilityDefault`.""" - orderBy: [OrgCapabilityDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgCapabilityDefaultEdge +""" +Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) +""" +type MembershipType { + """Description of what this membership type represents""" + description: String! """ - Our root query field type. Allows us to run any query from our mutation payload. + When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs """ - query: Query -} + hasUsersTableEntry: Boolean! -"""All input for the create `OrgCapability` mutation.""" -input CreateOrgCapabilityInput { """ - 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: Int! - """The `OrgCapability` to be created by this mutation.""" - orgCapability: OrgCapabilityInput! -} + """Human-readable name of the membership type""" + name: String! -"""The output of our create `OrgCapability` mutation.""" -type CreateOrgCapabilityPayload { """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. + Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) """ - clientMutationId: String - - """The `OrgCapability` that was created by this mutation.""" - orgCapability: OrgCapability + parentMembershipType: Int - """An edge for our `OrgCapability`. May be used by Relay 1.""" - orgCapabilityEdge( - """The method to use when ordering `OrgCapability`.""" - orderBy: [OrgCapabilityOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgCapabilityEdge - - """ - 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 { """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. + Scope identifier for this membership type, used to resolve scope on module config tables """ - clientMutationId: String - - """The `OrgChartEdgeGrant` to be created by this mutation.""" - orgChartEdgeGrant: OrgChartEdgeGrantInput! + scope: String! } -"""The output of our create `OrgChartEdgeGrant` mutation.""" -type CreateOrgChartEdgeGrantPayload { +"""A connection to a list of `MembershipType` values.""" +type MembershipTypeConnection { """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. + A list of edges which contains the `MembershipType` and cursor to aid in pagination. """ - clientMutationId: String + edges: [MembershipTypeEdge]! - """The `OrgChartEdgeGrant` that was created by this mutation.""" - orgChartEdgeGrant: OrgChartEdgeGrant + """A list of `MembershipType` objects.""" + nodes: [MembershipType]! - """An edge for our `OrgChartEdgeGrant`. May be used by Relay 1.""" - orgChartEdgeGrantEdge( - """The method to use when ordering `OrgChartEdgeGrant`.""" - orderBy: [OrgChartEdgeGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgChartEdgeGrantEdge + """Information to aid in pagination.""" + pageInfo: PageInfo! - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query + """The count of *all* `MembershipType` you could get from the connection.""" + totalCount: Int! } -"""All input for the create `OrgChartEdge` mutation.""" -input CreateOrgChartEdgeInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String +"""A `MembershipType` edge in the connection.""" +type MembershipTypeEdge { + """A cursor for use in pagination.""" + cursor: Cursor - """The `OrgChartEdge` to be created by this mutation.""" - orgChartEdge: OrgChartEdgeInput! + """The `MembershipType` at the end of the edge.""" + node: MembershipType } -"""The output of our create `OrgChartEdge` mutation.""" -type CreateOrgChartEdgePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgChartEdge` that was created by this mutation.""" - orgChartEdge: OrgChartEdge +""" +A filter to be used against `MembershipType` object types. All fields are combined with a logical ‘and.’ +""" +input MembershipTypeFilter { + """Checks for all expressions in this list.""" + and: [MembershipTypeFilter!] - """An edge for our `OrgChartEdge`. May be used by Relay 1.""" - orgChartEdgeEdge( - """The method to use when ordering `OrgChartEdge`.""" - orderBy: [OrgChartEdgeOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgChartEdgeEdge + """Filter by the object’s `description` field.""" + description: StringFilter - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} + """Filter by the object’s `hasUsersTableEntry` field.""" + hasUsersTableEntry: BooleanFilter -"""All input for the create `OrgClaimedInvite` mutation.""" -input CreateOrgClaimedInviteInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String + """Filter by the object’s `id` field.""" + id: IntFilter - """The `OrgClaimedInvite` to be created by this mutation.""" - orgClaimedInvite: OrgClaimedInviteInput! -} + """Filter by the object’s `name` field.""" + name: StringFilter -"""The output of our create `OrgClaimedInvite` mutation.""" -type CreateOrgClaimedInvitePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String + """Negates the expression.""" + not: MembershipTypeFilter - """The `OrgClaimedInvite` that was created by this mutation.""" - orgClaimedInvite: OrgClaimedInvite + """Checks for any expressions in this list.""" + or: [MembershipTypeFilter!] - """An edge for our `OrgClaimedInvite`. May be used by Relay 1.""" - orgClaimedInviteEdge( - """The method to use when ordering `OrgClaimedInvite`.""" - orderBy: [OrgClaimedInviteOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgClaimedInviteEdge + """Filter by the object’s `parentMembershipType` field.""" + parentMembershipType: IntFilter - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query + """Filter by the object’s `scope` field.""" + scope: StringFilter } -"""All input for the create `OrgGrant` mutation.""" -input CreateOrgGrantInput { +"""An input for mutations affecting `MembershipType`""" +input MembershipTypeInput { + """Description of what this membership type represents""" + description: 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. + When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs """ - clientMutationId: String - - """The `OrgGrant` to be created by this mutation.""" - orgGrant: OrgGrantInput! -} + hasUsersTableEntry: Boolean -"""The output of our create `OrgGrant` mutation.""" -type CreateOrgGrantPayload { """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. + Integer identifier for the membership type (1=App, 2=Organization, 3=Group) """ - clientMutationId: String - - """The `OrgGrant` that was created by this mutation.""" - orgGrant: OrgGrant + id: Int! - """An edge for our `OrgGrant`. May be used by Relay 1.""" - orgGrantEdge( - """The method to use when ordering `OrgGrant`.""" - orderBy: [OrgGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgGrantEdge + """Human-readable name of the membership type""" + name: String! """ - Our root query field type. Allows us to run any query from our mutation payload. + Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) """ - query: Query -} + parentMembershipType: Int -"""All input for the create `OrgInvite` mutation.""" -input CreateOrgInviteInput { """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. + Scope identifier for this membership type, used to resolve scope on module config tables """ - clientMutationId: String - - """The `OrgInvite` to be created by this mutation.""" - orgInvite: OrgInviteInput! + scope: String! } -"""The output of our create `OrgInvite` mutation.""" -type CreateOrgInvitePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgInvite` that was created by this mutation.""" - orgInvite: OrgInvite +"""Methods to use when ordering `MembershipType`.""" +enum 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 +} - """An edge for our `OrgInvite`. May be used by Relay 1.""" - orgInviteEdge( - """The method to use when ordering `OrgInvite`.""" - orderBy: [OrgInviteOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgInviteEdge +""" +Represents an update to a `MembershipType`. Fields that are set will be updated. +""" +input MembershipTypePatch { + """Description of what this membership type represents""" + description: String """ - Our root query field type. Allows us to run any query from our mutation payload. + When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs """ - query: Query -} + hasUsersTableEntry: Boolean -"""All input for the create `OrgMember` mutation.""" -input CreateOrgMemberInput { """ - 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: Int - """The `OrgMember` to be created by this mutation.""" - orgMember: OrgMemberInput! -} + """Human-readable name of the membership type""" + name: String -"""The output of our create `OrgMember` mutation.""" -type CreateOrgMemberPayload { """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. + Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) """ - clientMutationId: String - - """The `OrgMember` that was created by this mutation.""" - orgMember: OrgMember - - """An edge for our `OrgMember`. May be used by Relay 1.""" - orgMemberEdge( - """The method to use when ordering `OrgMember`.""" - orderBy: [OrgMemberOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMemberEdge + parentMembershipType: Int """ - Our root query field type. Allows us to run any query from our mutation payload. + Scope identifier for this membership type, used to resolve scope on module config tables """ - query: Query + scope: String } -"""All input for the create `OrgMemberProfile` mutation.""" -input CreateOrgMemberProfileInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String +"""A belongs-to (forward FK) relation""" +type MetaBelongsToRelation { + fieldName: String + isUnique: Boolean! + keys: [MetaField!]! + references: MetaRefTable! + type: String +} - """The `OrgMemberProfile` to be created by this mutation.""" - orgMemberProfile: OrgMemberProfileInput! +"""Table constraints""" +type MetaConstraints { + foreignKey: [MetaForeignKeyConstraint!]! + primaryKey: MetaPrimaryKeyConstraint + unique: [MetaUniqueConstraint!]! } -"""The output of our create `OrgMemberProfile` mutation.""" -type CreateOrgMemberProfilePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String +"""Information about a PostgreSQL enum type""" +type MetaEnum { + """The PostgreSQL enum type name""" + name: String! - """The `OrgMemberProfile` that was created by this mutation.""" - orgMemberProfile: OrgMemberProfile + """Allowed values for this enum""" + values: [String!]! +} - """An edge for our `OrgMemberProfile`. May be used by Relay 1.""" - orgMemberProfileEdge( - """The method to use when ordering `OrgMemberProfile`.""" - orderBy: [OrgMemberProfileOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMemberProfileEdge +"""Information about a table field/column""" +type MetaField { + """PostgreSQL column name""" + columnName: String! + description: String - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query + """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! } -"""All input for the create `OrgMembershipDefault` mutation.""" -input CreateOrgMembershipDefaultInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String +"""Information about a foreign key constraint""" +type MetaForeignKeyConstraint { + fields: [MetaField!]! + name: String! + refFields: [MetaField!] + refTable: MetaRefTable + referencedFields: [String!]! + referencedTable: String! +} - """The `OrgMembershipDefault` to be created by this mutation.""" - orgMembershipDefault: OrgMembershipDefaultInput! +"""A has-one or has-many (reverse FK) relation""" +type MetaHasRelation { + fieldName: String + isUnique: Boolean! + keys: [MetaField!]! + referencedBy: MetaRefTable! + type: String } -"""The output of our create `OrgMembershipDefault` mutation.""" -type CreateOrgMembershipDefaultPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String +"""i18n metadata for a table with @i18n tag""" +type MetaI18n { + """Fields that are translatable""" + translatableFields: [MetaI18nField!]! - """The `OrgMembershipDefault` that was created by this mutation.""" - orgMembershipDefault: OrgMembershipDefault + """Name of the translation table""" + translationTable: String! +} - """An edge for our `OrgMembershipDefault`. May be used by Relay 1.""" - orgMembershipDefaultEdge( - """The method to use when ordering `OrgMembershipDefault`.""" - orderBy: [OrgMembershipDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMembershipDefaultEdge +"""A translatable field""" +type MetaI18nField { + """GraphQL field name""" + name: String! - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query + """PostgreSQL column type (text, citext)""" + type: String! } -"""All input for the create `OrgMembership` mutation.""" -input CreateOrgMembershipInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String +"""Information about a database index""" +type MetaIndex { + columns: [String!]! + fields: [MetaField!] + isPrimary: Boolean! + isUnique: Boolean! + name: String! +} - """The `OrgMembership` to be created by this mutation.""" - orgMembership: OrgMembershipInput! +"""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 } -"""The output of our create `OrgMembership` mutation.""" -type CreateOrgMembershipPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String +"""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 +} - """The `OrgMembership` that was created by this mutation.""" - orgMembership: OrgMembership +"""Information about a primary key constraint""" +type MetaPrimaryKeyConstraint { + fields: [MetaField!]! + name: String! +} - """An edge for our `OrgMembership`. May be used by Relay 1.""" - orgMembershipEdge( - """The method to use when ordering `OrgMembership`.""" - orderBy: [OrgMembershipOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMembershipEdge +"""Table query/mutation names""" +type MetaQuery { + all: String + create: String + delete: String + one: String + update: String +} - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query +"""Realtime metadata for a table with @realtime tag""" +type MetaRealtime { + """The generated subscription field name (e.g. onPostChanged)""" + subscriptionFieldName: String! } -"""All input for the create `OrgMembershipProfile` mutation.""" -input CreateOrgMembershipProfileInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String +"""Reference to a related table""" +type MetaRefTable { + name: String! +} - """The `OrgMembershipProfile` to be created by this mutation.""" - orgMembershipProfile: OrgMembershipProfileInput! +"""Table relations""" +type MetaRelations { + belongsTo: [MetaBelongsToRelation!]! + has: [MetaHasRelation!]! + hasMany: [MetaHasRelation!]! + hasOne: [MetaHasRelation!]! + manyToMany: [MetaManyToManyRelation!]! } -"""The output of our create `OrgMembershipProfile` mutation.""" -type CreateOrgMembershipProfilePayload { +""" +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 + """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. + Machine kind: bigint, datetime, date, time, interval, uuid, geojson, point, inet, ltree, vector, bytea, or composite. """ - clientMutationId: String + kind: String! + + """For 'geojson': spatial reference id, else null.""" + srid: Int +} - """The `OrgMembershipProfile` that was created by this mutation.""" - orgMembershipProfile: OrgMembershipProfile +"""Root meta schema type""" +type MetaSchema { + tables: [MetaTable!]! +} - """An edge for our `OrgMembershipProfile`. May be used by Relay 1.""" - orgMembershipProfileEdge( - """The method to use when ordering `OrgMembershipProfile`.""" - orderBy: [OrgMembershipProfileOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMembershipProfileEdge +"""Provisioning scope metadata for a table""" +type MetaScope { + """SQL name of the entity table for entity scopes, else null""" + entityTable: String """ - Our root query field type. Allows us to run any query from our mutation payload. + Inflected scope key column (e.g. databaseId, orgId), null for global tiers """ - query: Query -} + keyColumn: String -"""All input for the create `OrgMembershipSetting` mutation.""" -input CreateOrgMembershipSettingInput { """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. + Provisioning scope: 'platform', 'app', 'database', or an entity scope (e.g. 'org') """ - clientMutationId: String + scope: String! - """The `OrgMembershipSetting` to be created by this mutation.""" - orgMembershipSetting: OrgMembershipSettingInput! + """Provenance of the scope metadata (always 'smartTag')""" + source: String! + + """Coarse bucket: 'global', 'database', or 'entity'""" + tier: String! } -"""The output of our create `OrgMembershipSetting` mutation.""" -type CreateOrgMembershipSettingPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String +"""Search metadata for a table""" +type MetaSearch { + """Active search algorithms on this table""" + algorithms: [String!]! - """The `OrgMembershipSetting` that was created by this mutation.""" - orgMembershipSetting: OrgMembershipSetting + """Searchable columns with their algorithm""" + columns: [MetaSearchColumn!]! - """An edge for our `OrgMembershipSetting`. May be used by Relay 1.""" - orgMembershipSettingEdge( - """The method to use when ordering `OrgMembershipSetting`.""" - orderBy: [OrgMembershipSettingOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMembershipSettingEdge + """Per-table search configuration""" + config: MetaSearchConfig - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query + """Whether unifiedSearch composite filter is available""" + hasUnifiedSearch: Boolean! } -"""All input for the create `OrgOwnerGrant` mutation.""" -input CreateOrgOwnerGrantInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String +"""A searchable column with its algorithm""" +type MetaSearchColumn { + """Search algorithm: tsvector, bm25, trgm, or vector""" + algorithm: String! - """The `OrgOwnerGrant` to be created by this mutation.""" - orgOwnerGrant: OrgOwnerGrantInput! + """Column name (camelCase)""" + name: String! } -"""The output of our create `OrgOwnerGrant` mutation.""" -type CreateOrgOwnerGrantPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String +"""Per-table search configuration from @searchConfig smart tag""" +type MetaSearchConfig { + """Exponential decay factor per day""" + boostRecencyDecay: Float - """The `OrgOwnerGrant` that was created by this mutation.""" - orgOwnerGrant: OrgOwnerGrant + """Field used for recency decay""" + boostRecencyField: String - """An edge for our `OrgOwnerGrant`. May be used by Relay 1.""" - orgOwnerGrantEdge( - """The method to use when ordering `OrgOwnerGrant`.""" - orderBy: [OrgOwnerGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgOwnerGrantEdge + """Whether recency boosting is enabled""" + boostRecent: Boolean! - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query + """JSON-encoded per-adapter score weights""" + weights: String } -"""All input for the create `OrgProfileCapability` mutation.""" -input CreateOrgProfileCapabilityInput { - """ - An arbitrary 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 `OrgProfileCapability` to be created by this mutation.""" - orgProfileCapability: OrgProfileCapabilityInput! -} +"""Storage metadata for a table""" +type MetaStorage { + """GraphQL type name of the plane's buckets table""" + bucketsType: String! -"""The output of our create `OrgProfileCapability` mutation.""" -type CreateOrgProfileCapabilityPayload { """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. + Computed download-URL field on the files type; null on the buckets side """ - clientMutationId: String + downloadUrlField: String - """The `OrgProfileCapability` that was created by this mutation.""" - orgProfileCapability: OrgProfileCapability + """GraphQL type name of the plane's files table""" + filesType: String! - """An edge for our `OrgProfileCapability`. May be used by Relay 1.""" - orgProfileCapabilityEdge( - """The method to use when ordering `OrgProfileCapability`.""" - orderBy: [OrgProfileCapabilityOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgProfileCapabilityEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} + """Whether this table is a storage buckets table""" + isBucketsTable: Boolean! -"""All input for the create `OrgProfileDefinitionGrant` mutation.""" -input CreateOrgProfileDefinitionGrantInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String + """Whether this table is a storage files table""" + isFilesTable: Boolean! - """The `OrgProfileDefinitionGrant` to be created by this mutation.""" - orgProfileDefinitionGrant: OrgProfileDefinitionGrantInput! + """The plane's GraphQL upload surface""" + upload: MetaStorageUpload! } -"""The output of our create `OrgProfileDefinitionGrant` mutation.""" -type CreateOrgProfileDefinitionGrantPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgProfileDefinitionGrant` that was created by this mutation.""" - orgProfileDefinitionGrant: OrgProfileDefinitionGrant +""" +The GraphQL upload surface of a storage plane, derived from the registry facts the presigned-url plugin emits from +""" +type MetaStorageUpload { + """Per-file input type inside the bulk input""" + bulkFileInputType: String! - """An edge for our `OrgProfileDefinitionGrant`. May be used by Relay 1.""" - orgProfileDefinitionGrantEdge( - """The method to use when ordering `OrgProfileDefinitionGrant`.""" - orderBy: [OrgProfileDefinitionGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgProfileDefinitionGrantEdge + """Per-file payload type inside the bulk payload""" + bulkFilePayloadType: String! - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} + """Input type of the bulk upload mutation""" + bulkInputType: String! -"""All input for the create `OrgProfileGrant` mutation.""" -input CreateOrgProfileGrantInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String + """Root mutation field for bulk upload""" + bulkMutation: String! - """The `OrgProfileGrant` to be created by this mutation.""" - orgProfileGrant: OrgProfileGrantInput! -} + """Payload type of the bulk upload mutation""" + bulkPayloadType: String! -"""The output of our create `OrgProfileGrant` mutation.""" -type CreateOrgProfileGrantPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String + """Input type of the single upload mutation""" + inputType: String! - """The `OrgProfileGrant` that was created by this mutation.""" - orgProfileGrant: OrgProfileGrant + """Root mutation field for single-file upload (e.g. uploadAppFile)""" + mutation: String! - """An edge for our `OrgProfileGrant`. May be used by Relay 1.""" - orgProfileGrantEdge( - """The method to use when ordering `OrgProfileGrant`.""" - orderBy: [OrgProfileGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgProfileGrantEdge + """Payload type of the single upload mutation""" + payloadType: String! - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query + """Whether the upload input requires ownerId (entity-keyed plane)""" + requiresOwnerId: Boolean! } -"""All input for the create `OrgProfile` mutation.""" -input CreateOrgProfileInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String +"""Information about a database table""" +type MetaTable { + constraints: MetaConstraints! + fields: [MetaField!]! + foreignKeyConstraints: [MetaForeignKeyConstraint!]! - """The `OrgProfile` to be created by this mutation.""" - orgProfile: OrgProfileInput! -} + """i18n metadata (null if no @i18n tag)""" + i18n: MetaI18n + indexes: [MetaIndex!]! + inflection: MetaInflection! -"""The output of our create `OrgProfile` mutation.""" -type CreateOrgProfilePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String + """Final GraphQL output type name""" + name: String! + primaryKeyConstraints: [MetaPrimaryKeyConstraint!]! + query: MetaQuery! - """The `OrgProfile` that was created by this mutation.""" - orgProfile: OrgProfile + """Realtime metadata (null if no @realtime tag)""" + realtime: MetaRealtime + relations: MetaRelations! + schemaName: String! - """An edge for our `OrgProfile`. May be used by Relay 1.""" - orgProfileEdge( - """The method to use when ordering `OrgProfile`.""" - orderBy: [OrgProfileOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgProfileEdge + """Provisioning scope metadata (null if no @scope tag)""" + scope: MetaScope - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} + """Search metadata (null if no search configured)""" + search: MetaSearch -"""All input for the create `OrgProfileTemplate` mutation.""" -input CreateOrgProfileTemplateInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String + """Storage metadata (null if not a storage table)""" + storage: MetaStorage - """The `OrgProfileTemplate` to be created by this mutation.""" - orgProfileTemplate: OrgProfileTemplateInput! + """PostgreSQL table name""" + tableName: String! + uniqueConstraints: [MetaUniqueConstraint!]! } -"""The output of our create `OrgProfileTemplate` mutation.""" -type CreateOrgProfileTemplatePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgProfileTemplate` that was created by this mutation.""" - orgProfileTemplate: OrgProfileTemplate - - """An edge for our `OrgProfileTemplate`. May be used by Relay 1.""" - orgProfileTemplateEdge( - """The method to use when ordering `OrgProfileTemplate`.""" - orderBy: [OrgProfileTemplateOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgProfileTemplateEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query +"""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 location in a connection that can be used for resuming pagination.""" -scalar Cursor +"""Information about a unique constraint""" +type MetaUniqueConstraint { + fields: [MetaField!]! + name: String! +} """ -A point in time as described by the [ISO -8601](https://en.wikipedia.org/wiki/ISO_8601) and, if it has a timezone, [RFC -3339](https://datatracker.ietf.org/doc/html/rfc3339) standards. Input values -that do not conform to both ISO 8601 and RFC 3339 may be coerced, which may lead -to unexpected results. +The root mutation type which contains root level fields which mutate data. """ -scalar Datetime +type Mutation { + """Creates a single `AppAdminGrant`.""" + createAppAdminGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAppAdminGrantInput! + ): CreateAppAdminGrantPayload -""" -A filter to be used against Datetime fields. All fields are combined with a logical ‘and.’ -""" -input DatetimeFilter { - """ - Not equal to the specified value, treating null like an ordinary value. - """ - distinctFrom: Datetime + """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 - """Equal to the specified value.""" - equalTo: Datetime + """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 - """Greater than the specified value.""" - greaterThan: Datetime + """Creates a single `AppClaimedInvite`.""" + createAppClaimedInvite( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAppClaimedInviteInput! + ): CreateAppClaimedInvitePayload - """Greater than or equal to the specified value.""" - greaterThanOrEqualTo: Datetime + """Creates a single `AppGrant`.""" + createAppGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAppGrantInput! + ): CreateAppGrantPayload - """Included in the specified list.""" - in: [Datetime!] + """Creates a single `AppInvite`.""" + createAppInvite( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAppInviteInput! + ): CreateAppInvitePayload - """ - Is null (if `true` is specified) or is not null (if `false` is specified). - """ - isNull: Boolean + """Creates a single `AppMembership`.""" + createAppMembership( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAppMembershipInput! + ): CreateAppMembershipPayload - """Less than the specified value.""" - lessThan: Datetime + """Creates a single `AppMembershipDefault`.""" + createAppMembershipDefault( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAppMembershipDefaultInput! + ): CreateAppMembershipDefaultPayload - """Less than or equal to the specified value.""" - lessThanOrEqualTo: Datetime + """Creates a single `AppOwnerGrant`.""" + createAppOwnerGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAppOwnerGrantInput! + ): CreateAppOwnerGrantPayload - """Equal to the specified value, treating null like an ordinary value.""" - notDistinctFrom: Datetime + """Creates a single `MembershipType`.""" + createMembershipType( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateMembershipTypeInput! + ): CreateMembershipTypePayload - """Not equal to the specified value.""" - notEqualTo: Datetime + """Creates a single `OrgAdminGrant`.""" + createOrgAdminGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateOrgAdminGrantInput! + ): CreateOrgAdminGrantPayload - """Not included in the specified list.""" - notIn: [Datetime!] -} + """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 -"""All input for the `deleteAppAdminGrant` mutation.""" -input DeleteAppAdminGrantInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} + """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 -"""The output of our delete `AppAdminGrant` mutation.""" -type DeleteAppAdminGrantPayload { - """The `AppAdminGrant` that was deleted by this mutation.""" - appAdminGrant: AppAdminGrant + """Creates a single `OrgChartEdge`.""" + createOrgChartEdge( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateOrgChartEdgeInput! + ): CreateOrgChartEdgePayload - """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 + """Creates a single `OrgChartEdgeGrant`.""" + createOrgChartEdgeGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateOrgChartEdgeGrantInput! + ): CreateOrgChartEdgeGrantPayload - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String + """Creates a single `OrgClaimedInvite`.""" + createOrgClaimedInvite( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateOrgClaimedInviteInput! + ): CreateOrgClaimedInvitePayload - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} + """Creates a single `OrgGrant`.""" + createOrgGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateOrgGrantInput! + ): CreateOrgGrantPayload -"""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! -} + """Creates a single `OrgInvite`.""" + createOrgInvite( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateOrgInviteInput! + ): CreateOrgInvitePayload -"""The output of our delete `AppCapabilityDefaultCapability` mutation.""" -type DeleteAppCapabilityDefaultCapabilityPayload { - """ - The `AppCapabilityDefaultCapability` that was deleted by this mutation. - """ - appCapabilityDefaultCapability: AppCapabilityDefaultCapability + """Creates a single `OrgMember`.""" + createOrgMember( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateOrgMemberInput! + ): CreateOrgMemberPayload - """ - 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 + """Creates a single `OrgMemberProfile`.""" + createOrgMemberProfile( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateOrgMemberProfileInput! + ): CreateOrgMemberProfilePayload - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String + """Creates a single `OrgMembership`.""" + createOrgMembership( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateOrgMembershipInput! + ): CreateOrgMembershipPayload - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} + """Creates a single `OrgMembershipDefault`.""" + createOrgMembershipDefault( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateOrgMembershipDefaultInput! + ): CreateOrgMembershipDefaultPayload -"""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! -} + """Creates a single `OrgMembershipSetting`.""" + createOrgMembershipSetting( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateOrgMembershipSettingInput! + ): CreateOrgMembershipSettingPayload -"""The output of our delete `AppCapabilityDefaultGrant` mutation.""" -type DeleteAppCapabilityDefaultGrantPayload { - """The `AppCapabilityDefaultGrant` that was deleted by this mutation.""" - appCapabilityDefaultGrant: AppCapabilityDefaultGrant + """Creates a single `OrgOwnerGrant`.""" + createOrgOwnerGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateOrgOwnerGrantInput! + ): CreateOrgOwnerGrantPayload - """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 + """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: DeleteAppAdminGrantInput! + ): DeleteAppAdminGrantPayload - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String + """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: DeleteAppCapabilityDefaultCapabilityInput! + ): DeleteAppCapabilityDefaultCapabilityPayload - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} + """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: DeleteAppCapabilityDefaultGrantInput! + ): DeleteAppCapabilityDefaultGrantPayload -"""All input for the `deleteAppCapabilityDefault` mutation.""" -input DeleteAppCapabilityDefaultInput { - """ - An arbitrary 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! -} + """Deletes a single `AppClaimedInvite` using a unique key.""" + deleteAppClaimedInvite( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAppClaimedInviteInput! + ): DeleteAppClaimedInvitePayload -"""The output of our delete `AppCapabilityDefault` mutation.""" -type DeleteAppCapabilityDefaultPayload { - """The `AppCapabilityDefault` that was deleted by this mutation.""" - appCapabilityDefault: AppCapabilityDefault + """Deletes a single `AppGrant` using a unique key.""" + deleteAppGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAppGrantInput! + ): DeleteAppGrantPayload - """An edge for our `AppCapabilityDefault`. May be used by Relay 1.""" - appCapabilityDefaultEdge( - """The method to use when ordering `AppCapabilityDefault`.""" - orderBy: [AppCapabilityDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppCapabilityDefaultEdge + """Deletes a single `AppInvite` using a unique key.""" + deleteAppInvite( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAppInviteInput! + ): DeleteAppInvitePayload - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String + """Deletes a single `AppMembership` using a unique key.""" + deleteAppMembership( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAppMembershipInput! + ): DeleteAppMembershipPayload - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} + """Deletes a single `AppMembershipDefault` using a unique key.""" + deleteAppMembershipDefault( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAppMembershipDefaultInput! + ): DeleteAppMembershipDefaultPayload -"""All input for the `deleteAppCapability` mutation.""" -input DeleteAppCapabilityInput { - """ - An arbitrary 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! -} + """Deletes a single `AppOwnerGrant` using a unique key.""" + deleteAppOwnerGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAppOwnerGrantInput! + ): DeleteAppOwnerGrantPayload -"""The output of our delete `AppCapability` mutation.""" -type DeleteAppCapabilityPayload { - """The `AppCapability` that was deleted by this mutation.""" - appCapability: AppCapability + """Deletes a single `MembershipType` using a unique key.""" + deleteMembershipType( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteMembershipTypeInput! + ): DeleteMembershipTypePayload - """An edge for our `AppCapability`. May be used by Relay 1.""" - appCapabilityEdge( - """The method to use when ordering `AppCapability`.""" - orderBy: [AppCapabilityOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppCapabilityEdge + """Deletes a single `OrgAdminGrant` using a unique key.""" + deleteOrgAdminGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteOrgAdminGrantInput! + ): DeleteOrgAdminGrantPayload - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String + """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 - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} + """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 -"""All input for the `deleteAppClaimedInvite` mutation.""" -input DeleteAppClaimedInviteInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} + """Deletes a single `OrgChartEdge` using a unique key.""" + deleteOrgChartEdge( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteOrgChartEdgeInput! + ): DeleteOrgChartEdgePayload -"""The output of our delete `AppClaimedInvite` mutation.""" -type DeleteAppClaimedInvitePayload { - """The `AppClaimedInvite` that was deleted by this mutation.""" - appClaimedInvite: AppClaimedInvite + """Deletes a single `OrgChartEdgeGrant` using a unique key.""" + deleteOrgChartEdgeGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteOrgChartEdgeGrantInput! + ): DeleteOrgChartEdgeGrantPayload - """An edge for our `AppClaimedInvite`. May be used by Relay 1.""" - appClaimedInviteEdge( - """The method to use when ordering `AppClaimedInvite`.""" - orderBy: [AppClaimedInviteOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppClaimedInviteEdge + """Deletes a single `OrgClaimedInvite` using a unique key.""" + deleteOrgClaimedInvite( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteOrgClaimedInviteInput! + ): DeleteOrgClaimedInvitePayload - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String + """Deletes a single `OrgGrant` using a unique key.""" + deleteOrgGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteOrgGrantInput! + ): DeleteOrgGrantPayload - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} + """Deletes a single `OrgInvite` using a unique key.""" + deleteOrgInvite( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteOrgInviteInput! + ): DeleteOrgInvitePayload -"""All input for the `deleteAppGrant` mutation.""" -input DeleteAppGrantInput { - """ - An arbitrary 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! -} + """Deletes a single `OrgMember` using a unique key.""" + deleteOrgMember( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteOrgMemberInput! + ): DeleteOrgMemberPayload -"""The output of our delete `AppGrant` mutation.""" -type DeleteAppGrantPayload { - """The `AppGrant` that was deleted by this mutation.""" - appGrant: AppGrant + """Deletes a single `OrgMemberProfile` using a unique key.""" + deleteOrgMemberProfile( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteOrgMemberProfileInput! + ): DeleteOrgMemberProfilePayload - """An edge for our `AppGrant`. May be used by Relay 1.""" - appGrantEdge( - """The method to use when ordering `AppGrant`.""" - orderBy: [AppGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppGrantEdge + """Deletes a single `OrgMembership` using a unique key.""" + deleteOrgMembership( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteOrgMembershipInput! + ): DeleteOrgMembershipPayload - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String + """Deletes a single `OrgMembershipDefault` using a unique key.""" + deleteOrgMembershipDefault( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteOrgMembershipDefaultInput! + ): DeleteOrgMembershipDefaultPayload - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} + """Deletes a single `OrgMembershipSetting` using a unique key.""" + deleteOrgMembershipSetting( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteOrgMembershipSettingInput! + ): DeleteOrgMembershipSettingPayload + + """Deletes a single `OrgOwnerGrant` using a unique key.""" + deleteOrgOwnerGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteOrgOwnerGrantInput! + ): DeleteOrgOwnerGrantPayload -"""All input for the `deleteAppInvite` mutation.""" -input DeleteAppInviteInput { """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. + Reconcile an S3 bucket for a logical bucket in the database. + Reads the bucket config via RLS, then enqueues the same + storage:provision_bucket job used by the INSERT trigger. This is + idempotent for an already-reconciled bucket; enqueue failures become + GraphQL errors. """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `AppInvite` mutation.""" -type DeleteAppInvitePayload { - """The `AppInvite` that was deleted by this mutation.""" - appInvite: AppInvite - - """An edge for our `AppInvite`. May be used by Relay 1.""" - appInviteEdge( - """The method to use when ordering `AppInvite`.""" - orderBy: [AppInviteOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppInviteEdge - - """ - The 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 `deleteAppMembershipDefault` mutation.""" -input DeleteAppMembershipDefaultInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `AppMembershipDefault` mutation.""" -type DeleteAppMembershipDefaultPayload { - """The `AppMembershipDefault` that was deleted by this mutation.""" - appMembershipDefault: AppMembershipDefault - - """An edge for our `AppMembershipDefault`. May be used by Relay 1.""" - appMembershipDefaultEdge( - """The method to use when ordering `AppMembershipDefault`.""" - orderBy: [AppMembershipDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppMembershipDefaultEdge - - """ - The 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 `deleteAppMembership` mutation.""" -input DeleteAppMembershipInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `AppMembership` mutation.""" -type DeleteAppMembershipPayload { - """The `AppMembership` that was deleted by this mutation.""" - appMembership: AppMembership - - """An edge for our `AppMembership`. May be used by Relay 1.""" - appMembershipEdge( - """The method to use when ordering `AppMembership`.""" - orderBy: [AppMembershipOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppMembershipEdge - - """ - The 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 `deleteAppMembershipProfile` mutation.""" -input DeleteAppMembershipProfileInput { - """ - An arbitrary 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 `AppMembershipProfile` mutation.""" -type DeleteAppMembershipProfilePayload { - """The `AppMembershipProfile` that was deleted by this mutation.""" - appMembershipProfile: AppMembershipProfile - - """An edge for our `AppMembershipProfile`. May be used by Relay 1.""" - appMembershipProfileEdge( - """The method to use when ordering `AppMembershipProfile`.""" - orderBy: [AppMembershipProfileOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppMembershipProfileEdge - - """ - The 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 `deleteAppOwnerGrant` mutation.""" -input DeleteAppOwnerGrantInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `AppOwnerGrant` mutation.""" -type DeleteAppOwnerGrantPayload { - """The `AppOwnerGrant` that was deleted by this mutation.""" - appOwnerGrant: AppOwnerGrant - - """An edge for our `AppOwnerGrant`. May be used by Relay 1.""" - appOwnerGrantEdge( - """The method to use when ordering `AppOwnerGrant`.""" - orderBy: [AppOwnerGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppOwnerGrantEdge - - """ - The 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 `deleteAppProfileCapability` mutation.""" -input DeleteAppProfileCapabilityInput { - """ - An arbitrary 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 `AppProfileCapability` mutation.""" -type DeleteAppProfileCapabilityPayload { - """The `AppProfileCapability` that was deleted by this mutation.""" - appProfileCapability: AppProfileCapability - - """An edge for our `AppProfileCapability`. May be used by Relay 1.""" - appProfileCapabilityEdge( - """The method to use when ordering `AppProfileCapability`.""" - orderBy: [AppProfileCapabilityOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppProfileCapabilityEdge - - """ - The 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 `deleteAppProfileDefinitionGrant` mutation.""" -input DeleteAppProfileDefinitionGrantInput { - """ - An arbitrary 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 `AppProfileDefinitionGrant` mutation.""" -type DeleteAppProfileDefinitionGrantPayload { - """The `AppProfileDefinitionGrant` that was deleted by this mutation.""" - appProfileDefinitionGrant: AppProfileDefinitionGrant - - """An edge for our `AppProfileDefinitionGrant`. May be used by Relay 1.""" - appProfileDefinitionGrantEdge( - """The method to use when ordering `AppProfileDefinitionGrant`.""" - orderBy: [AppProfileDefinitionGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppProfileDefinitionGrantEdge - - """ - The 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 `deleteAppProfileGrant` mutation.""" -input DeleteAppProfileGrantInput { - """ - An arbitrary 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 `AppProfileGrant` mutation.""" -type DeleteAppProfileGrantPayload { - """The `AppProfileGrant` that was deleted by this mutation.""" - appProfileGrant: AppProfileGrant - - """An edge for our `AppProfileGrant`. May be used by Relay 1.""" - appProfileGrantEdge( - """The method to use when ordering `AppProfileGrant`.""" - orderBy: [AppProfileGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppProfileGrantEdge - - """ - The 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 `deleteAppProfile` mutation.""" -input DeleteAppProfileInput { - """ - An arbitrary 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 `AppProfile` mutation.""" -type DeleteAppProfilePayload { - """The `AppProfile` that was deleted by this mutation.""" - appProfile: AppProfile - - """An edge for our `AppProfile`. May be used by Relay 1.""" - appProfileEdge( - """The method to use when ordering `AppProfile`.""" - orderBy: [AppProfileOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppProfileEdge - - """ - The 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 `deleteAppProfileTemplate` mutation.""" -input DeleteAppProfileTemplateInput { - """ - An arbitrary 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 `AppProfileTemplate` mutation.""" -type DeleteAppProfileTemplatePayload { - """The `AppProfileTemplate` that was deleted by this mutation.""" - appProfileTemplate: AppProfileTemplate - - """An edge for our `AppProfileTemplate`. May be used by Relay 1.""" - appProfileTemplateEdge( - """The method to use when ordering `AppProfileTemplate`.""" - orderBy: [AppProfileTemplateOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppProfileTemplateEdge - - """ - The 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 `deleteMembershipType` mutation.""" -input DeleteMembershipTypeInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """ - Integer identifier for the membership type (1=App, 2=Organization, 3=Group) - """ - id: Int! -} - -"""The output of our delete `MembershipType` mutation.""" -type DeleteMembershipTypePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `MembershipType` that was deleted by this mutation.""" - membershipType: MembershipType - - """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 `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. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `OrgAdminGrant` mutation.""" -type DeleteOrgAdminGrantPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgAdminGrant` that was deleted by this mutation.""" - orgAdminGrant: OrgAdminGrant - - """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 `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 - id: UUID! -} - -"""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 `OrgCapabilityDefaultCapability` that was deleted 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 `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. - """ - clientMutationId: String - id: UUID! -} - -"""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 `OrgCapabilityDefaultGrant` that was deleted 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 `deleteOrgCapabilityDefault` mutation.""" -input DeleteOrgCapabilityDefaultInput { - """ - An arbitrary 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 `OrgCapabilityDefault` mutation.""" -type DeleteOrgCapabilityDefaultPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgCapabilityDefault` that was deleted by this mutation.""" - orgCapabilityDefault: OrgCapabilityDefault - - """An edge for our `OrgCapabilityDefault`. May be used by Relay 1.""" - orgCapabilityDefaultEdge( - """The method to use when ordering `OrgCapabilityDefault`.""" - orderBy: [OrgCapabilityDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgCapabilityDefaultEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the `deleteOrgCapability` mutation.""" -input DeleteOrgCapabilityInput { - """ - An arbitrary 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 `OrgCapability` mutation.""" -type DeleteOrgCapabilityPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgCapability` that was deleted by this mutation.""" - orgCapability: OrgCapability - - """An edge for our `OrgCapability`. May be used by Relay 1.""" - orgCapabilityEdge( - """The method to use when ordering `OrgCapability`.""" - orderBy: [OrgCapabilityOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgCapabilityEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the `deleteOrgChartEdgeGrant` mutation.""" -input DeleteOrgChartEdgeGrantInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `OrgChartEdgeGrant` mutation.""" -type DeleteOrgChartEdgeGrantPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgChartEdgeGrant` that was deleted by this mutation.""" - orgChartEdgeGrant: OrgChartEdgeGrant - - """An edge for our `OrgChartEdgeGrant`. May be used by Relay 1.""" - orgChartEdgeGrantEdge( - """The method to use when ordering `OrgChartEdgeGrant`.""" - orderBy: [OrgChartEdgeGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgChartEdgeGrantEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the `deleteOrgChartEdge` mutation.""" -input DeleteOrgChartEdgeInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `OrgChartEdge` mutation.""" -type DeleteOrgChartEdgePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgChartEdge` that was deleted by this mutation.""" - orgChartEdge: OrgChartEdge - - """An edge for our `OrgChartEdge`. May be used by Relay 1.""" - orgChartEdgeEdge( - """The method to use when ordering `OrgChartEdge`.""" - orderBy: [OrgChartEdgeOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgChartEdgeEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the `deleteOrgClaimedInvite` mutation.""" -input DeleteOrgClaimedInviteInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `OrgClaimedInvite` mutation.""" -type DeleteOrgClaimedInvitePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgClaimedInvite` that was deleted by this mutation.""" - orgClaimedInvite: OrgClaimedInvite - - """An edge for our `OrgClaimedInvite`. May be used by Relay 1.""" - orgClaimedInviteEdge( - """The method to use when ordering `OrgClaimedInvite`.""" - orderBy: [OrgClaimedInviteOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgClaimedInviteEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the `deleteOrgGrant` mutation.""" -input DeleteOrgGrantInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `OrgGrant` mutation.""" -type DeleteOrgGrantPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgGrant` that was deleted by this mutation.""" - orgGrant: OrgGrant - - """An edge for our `OrgGrant`. May be used by Relay 1.""" - orgGrantEdge( - """The method to use when ordering `OrgGrant`.""" - orderBy: [OrgGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgGrantEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the `deleteOrgInvite` mutation.""" -input DeleteOrgInviteInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `OrgInvite` mutation.""" -type DeleteOrgInvitePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgInvite` that was deleted by this mutation.""" - orgInvite: OrgInvite - - """An edge for our `OrgInvite`. May be used by Relay 1.""" - orgInviteEdge( - """The method to use when ordering `OrgInvite`.""" - orderBy: [OrgInviteOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgInviteEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the `deleteOrgMember` mutation.""" -input DeleteOrgMemberInput { - """ - An arbitrary 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 `OrgMember` mutation.""" -type DeleteOrgMemberPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgMember` that was deleted by this mutation.""" - orgMember: OrgMember - - """An edge for our `OrgMember`. May be used by Relay 1.""" - orgMemberEdge( - """The method to use when ordering `OrgMember`.""" - orderBy: [OrgMemberOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMemberEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the `deleteOrgMemberProfile` mutation.""" -input DeleteOrgMemberProfileInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `OrgMemberProfile` mutation.""" -type DeleteOrgMemberProfilePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgMemberProfile` that was deleted by this mutation.""" - orgMemberProfile: OrgMemberProfile - - """An edge for our `OrgMemberProfile`. May be used by Relay 1.""" - orgMemberProfileEdge( - """The method to use when ordering `OrgMemberProfile`.""" - orderBy: [OrgMemberProfileOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMemberProfileEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the `deleteOrgMembershipDefault` mutation.""" -input DeleteOrgMembershipDefaultInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `OrgMembershipDefault` mutation.""" -type DeleteOrgMembershipDefaultPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgMembershipDefault` that was deleted by this mutation.""" - orgMembershipDefault: OrgMembershipDefault - - """An edge for our `OrgMembershipDefault`. May be used by Relay 1.""" - orgMembershipDefaultEdge( - """The method to use when ordering `OrgMembershipDefault`.""" - orderBy: [OrgMembershipDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMembershipDefaultEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the `deleteOrgMembership` mutation.""" -input DeleteOrgMembershipInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `OrgMembership` mutation.""" -type DeleteOrgMembershipPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgMembership` that was deleted by this mutation.""" - orgMembership: OrgMembership - - """An edge for our `OrgMembership`. May be used by Relay 1.""" - orgMembershipEdge( - """The method to use when ordering `OrgMembership`.""" - orderBy: [OrgMembershipOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMembershipEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the `deleteOrgMembershipProfile` mutation.""" -input DeleteOrgMembershipProfileInput { - """ - An arbitrary 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 `OrgMembershipProfile` mutation.""" -type DeleteOrgMembershipProfilePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgMembershipProfile` that was deleted by this mutation.""" - orgMembershipProfile: OrgMembershipProfile - - """An edge for our `OrgMembershipProfile`. May be used by Relay 1.""" - orgMembershipProfileEdge( - """The method to use when ordering `OrgMembershipProfile`.""" - orderBy: [OrgMembershipProfileOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMembershipProfileEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the `deleteOrgMembershipSetting` mutation.""" -input DeleteOrgMembershipSettingInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `OrgMembershipSetting` mutation.""" -type DeleteOrgMembershipSettingPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgMembershipSetting` that was deleted by this mutation.""" - orgMembershipSetting: OrgMembershipSetting - - """An edge for our `OrgMembershipSetting`. May be used by Relay 1.""" - orgMembershipSettingEdge( - """The method to use when ordering `OrgMembershipSetting`.""" - orderBy: [OrgMembershipSettingOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMembershipSettingEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the `deleteOrgOwnerGrant` mutation.""" -input DeleteOrgOwnerGrantInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `OrgOwnerGrant` mutation.""" -type DeleteOrgOwnerGrantPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgOwnerGrant` that was deleted by this mutation.""" - orgOwnerGrant: OrgOwnerGrant - - """An edge for our `OrgOwnerGrant`. May be used by Relay 1.""" - orgOwnerGrantEdge( - """The method to use when ordering `OrgOwnerGrant`.""" - orderBy: [OrgOwnerGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgOwnerGrantEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the `deleteOrgProfileCapability` mutation.""" -input DeleteOrgProfileCapabilityInput { - """ - An arbitrary 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 `OrgProfileCapability` mutation.""" -type DeleteOrgProfileCapabilityPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgProfileCapability` that was deleted by this mutation.""" - orgProfileCapability: OrgProfileCapability - - """An edge for our `OrgProfileCapability`. May be used by Relay 1.""" - orgProfileCapabilityEdge( - """The method to use when ordering `OrgProfileCapability`.""" - orderBy: [OrgProfileCapabilityOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgProfileCapabilityEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the `deleteOrgProfileDefinitionGrant` mutation.""" -input DeleteOrgProfileDefinitionGrantInput { - """ - An arbitrary 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 `OrgProfileDefinitionGrant` mutation.""" -type DeleteOrgProfileDefinitionGrantPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgProfileDefinitionGrant` that was deleted by this mutation.""" - orgProfileDefinitionGrant: OrgProfileDefinitionGrant - - """An edge for our `OrgProfileDefinitionGrant`. May be used by Relay 1.""" - orgProfileDefinitionGrantEdge( - """The method to use when ordering `OrgProfileDefinitionGrant`.""" - orderBy: [OrgProfileDefinitionGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgProfileDefinitionGrantEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the `deleteOrgProfileGrant` mutation.""" -input DeleteOrgProfileGrantInput { - """ - An arbitrary 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 `OrgProfileGrant` mutation.""" -type DeleteOrgProfileGrantPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgProfileGrant` that was deleted by this mutation.""" - orgProfileGrant: OrgProfileGrant - - """An edge for our `OrgProfileGrant`. May be used by Relay 1.""" - orgProfileGrantEdge( - """The method to use when ordering `OrgProfileGrant`.""" - orderBy: [OrgProfileGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgProfileGrantEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the `deleteOrgProfile` mutation.""" -input DeleteOrgProfileInput { - """ - An arbitrary 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 `OrgProfile` mutation.""" -type DeleteOrgProfilePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgProfile` that was deleted by this mutation.""" - orgProfile: OrgProfile - - """An edge for our `OrgProfile`. May be used by Relay 1.""" - orgProfileEdge( - """The method to use when ordering `OrgProfile`.""" - orderBy: [OrgProfileOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgProfileEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the `deleteOrgProfileTemplate` mutation.""" -input DeleteOrgProfileTemplateInput { - """ - An arbitrary 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 `OrgProfileTemplate` mutation.""" -type DeleteOrgProfileTemplatePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgProfileTemplate` that was deleted by this mutation.""" - orgProfileTemplate: OrgProfileTemplate - - """An edge for our `OrgProfileTemplate`. May be used by Relay 1.""" - orgProfileTemplateEdge( - """The method to use when ordering `OrgProfileTemplate`.""" - orderBy: [OrgProfileTemplateOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgProfileTemplateEdge - - """ - 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.’ -""" -input IntFilter { - """ - Not equal to the specified value, treating null like an ordinary value. - """ - distinctFrom: Int - - """Equal to the specified value.""" - equalTo: Int - - """Greater than the specified value.""" - greaterThan: Int - - """Greater than or equal to the specified value.""" - greaterThanOrEqualTo: Int - - """Included in the specified list.""" - in: [Int!] - - """ - Is null (if `true` is specified) or is not null (if `false` is specified). - """ - isNull: Boolean - - """Less than the specified value.""" - lessThan: Int - - """Less than or equal to the specified value.""" - lessThanOrEqualTo: Int - - """Equal to the specified value, treating null like an ordinary value.""" - notDistinctFrom: Int - - """Not equal to the specified value.""" - notEqualTo: Int - - """Not included in the specified list.""" - notIn: [Int!] -} - -""" -Represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). -""" -scalar JSON - -""" -Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) -""" -type MembershipType { - """Description of what this membership type represents""" - description: String! - - """ - When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs - """ - hasUsersTableEntry: Boolean! - - """ - Integer identifier for the membership type (1=App, 2=Organization, 3=Group) - """ - id: Int! - - """Human-readable name of the membership type""" - name: String! - - """ - Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) - """ - parentMembershipType: Int - - """ - Scope identifier for this membership type, used to resolve scope on module config tables - """ - scope: String! -} - -"""A connection to a list of `MembershipType` values.""" -type MembershipTypeConnection { - """ - A list of edges which contains the `MembershipType` and cursor to aid in pagination. - """ - edges: [MembershipTypeEdge]! - - """A list of `MembershipType` objects.""" - nodes: [MembershipType]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `MembershipType` you could get from the connection.""" - totalCount: Int! -} - -"""A `MembershipType` edge in the connection.""" -type MembershipTypeEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `MembershipType` at the end of the edge.""" - node: MembershipType -} - -""" -A filter to be used against `MembershipType` object types. All fields are combined with a logical ‘and.’ -""" -input 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 -} - -"""An input for mutations affecting `MembershipType`""" -input MembershipTypeInput { - """Description of what this membership type represents""" - description: String! - - """ - When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs - """ - hasUsersTableEntry: Boolean - - """ - Integer identifier for the membership type (1=App, 2=Organization, 3=Group) - """ - id: Int! - - """Human-readable name of the membership type""" - name: String! - - """ - Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) - """ - parentMembershipType: Int - - """ - Scope identifier for this membership type, used to resolve scope on module config tables - """ - scope: String! -} - -"""Methods to use when ordering `MembershipType`.""" -enum 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 -} - -""" -Represents an update to a `MembershipType`. Fields that are set will be updated. -""" -input MembershipTypePatch { - """Description of what this membership type represents""" - description: String - - """ - When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs - """ - hasUsersTableEntry: Boolean - - """ - Integer identifier for the membership type (1=App, 2=Organization, 3=Group) - """ - id: Int - - """Human-readable name of the membership type""" - name: String - - """ - Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) - """ - parentMembershipType: Int - - """ - Scope identifier for this membership type, used to resolve scope on module config tables - """ - scope: String -} - -"""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 { - """Creates a single `AppAdminGrant`.""" - createAppAdminGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAppAdminGrantInput! - ): CreateAppAdminGrantPayload - - """Creates a single `AppCapability`.""" - createAppCapability( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAppCapabilityInput! - ): CreateAppCapabilityPayload - - """Creates a single `AppCapabilityDefault`.""" - createAppCapabilityDefault( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAppCapabilityDefaultInput! - ): CreateAppCapabilityDefaultPayload - - """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( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAppClaimedInviteInput! - ): CreateAppClaimedInvitePayload - - """Creates a single `AppGrant`.""" - createAppGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAppGrantInput! - ): CreateAppGrantPayload - - """Creates a single `AppInvite`.""" - createAppInvite( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAppInviteInput! - ): CreateAppInvitePayload - - """Creates a single `AppMembership`.""" - createAppMembership( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAppMembershipInput! - ): CreateAppMembershipPayload - - """Creates a single `AppMembershipDefault`.""" - createAppMembershipDefault( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAppMembershipDefaultInput! - ): CreateAppMembershipDefaultPayload - - """Creates a single `AppMembershipProfile`.""" - createAppMembershipProfile( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAppMembershipProfileInput! - ): CreateAppMembershipProfilePayload - - """Creates a single `AppOwnerGrant`.""" - createAppOwnerGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAppOwnerGrantInput! - ): CreateAppOwnerGrantPayload - - """Creates a single `AppProfile`.""" - createAppProfile( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAppProfileInput! - ): CreateAppProfilePayload - - """Creates a single `AppProfileCapability`.""" - createAppProfileCapability( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAppProfileCapabilityInput! - ): CreateAppProfileCapabilityPayload - - """Creates a single `AppProfileDefinitionGrant`.""" - createAppProfileDefinitionGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAppProfileDefinitionGrantInput! - ): CreateAppProfileDefinitionGrantPayload - - """Creates a single `AppProfileGrant`.""" - createAppProfileGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAppProfileGrantInput! - ): CreateAppProfileGrantPayload - - """Creates a single `AppProfileTemplate`.""" - createAppProfileTemplate( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAppProfileTemplateInput! - ): CreateAppProfileTemplatePayload - - """Creates a single `MembershipType`.""" - createMembershipType( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateMembershipTypeInput! - ): CreateMembershipTypePayload - - """Creates a single `OrgAdminGrant`.""" - createOrgAdminGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateOrgAdminGrantInput! - ): CreateOrgAdminGrantPayload - - """Creates a single `OrgCapability`.""" - createOrgCapability( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateOrgCapabilityInput! - ): CreateOrgCapabilityPayload - - """Creates a single `OrgCapabilityDefault`.""" - createOrgCapabilityDefault( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateOrgCapabilityDefaultInput! - ): CreateOrgCapabilityDefaultPayload - - """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( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateOrgChartEdgeInput! - ): CreateOrgChartEdgePayload - - """Creates a single `OrgChartEdgeGrant`.""" - createOrgChartEdgeGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateOrgChartEdgeGrantInput! - ): CreateOrgChartEdgeGrantPayload - - """Creates a single `OrgClaimedInvite`.""" - createOrgClaimedInvite( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateOrgClaimedInviteInput! - ): CreateOrgClaimedInvitePayload - - """Creates a single `OrgGrant`.""" - createOrgGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateOrgGrantInput! - ): CreateOrgGrantPayload - - """Creates a single `OrgInvite`.""" - createOrgInvite( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateOrgInviteInput! - ): CreateOrgInvitePayload - - """Creates a single `OrgMember`.""" - createOrgMember( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateOrgMemberInput! - ): CreateOrgMemberPayload - - """Creates a single `OrgMemberProfile`.""" - createOrgMemberProfile( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateOrgMemberProfileInput! - ): CreateOrgMemberProfilePayload - - """Creates a single `OrgMembership`.""" - createOrgMembership( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateOrgMembershipInput! - ): CreateOrgMembershipPayload - - """Creates a single `OrgMembershipDefault`.""" - createOrgMembershipDefault( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateOrgMembershipDefaultInput! - ): CreateOrgMembershipDefaultPayload - - """Creates a single `OrgMembershipProfile`.""" - createOrgMembershipProfile( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateOrgMembershipProfileInput! - ): CreateOrgMembershipProfilePayload - - """Creates a single `OrgMembershipSetting`.""" - createOrgMembershipSetting( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateOrgMembershipSettingInput! - ): CreateOrgMembershipSettingPayload - - """Creates a single `OrgOwnerGrant`.""" - createOrgOwnerGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateOrgOwnerGrantInput! - ): CreateOrgOwnerGrantPayload - - """Creates a single `OrgProfile`.""" - createOrgProfile( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateOrgProfileInput! - ): CreateOrgProfilePayload - - """Creates a single `OrgProfileCapability`.""" - createOrgProfileCapability( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateOrgProfileCapabilityInput! - ): CreateOrgProfileCapabilityPayload - - """Creates a single `OrgProfileDefinitionGrant`.""" - createOrgProfileDefinitionGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateOrgProfileDefinitionGrantInput! - ): CreateOrgProfileDefinitionGrantPayload - - """Creates a single `OrgProfileGrant`.""" - createOrgProfileGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateOrgProfileGrantInput! - ): CreateOrgProfileGrantPayload - - """Creates a single `OrgProfileTemplate`.""" - createOrgProfileTemplate( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateOrgProfileTemplateInput! - ): CreateOrgProfileTemplatePayload - - """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: DeleteAppAdminGrantInput! - ): DeleteAppAdminGrantPayload - - """Deletes a single `AppCapability` using a unique key.""" - deleteAppCapability( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteAppCapabilityInput! - ): DeleteAppCapabilityPayload - - """Deletes a single `AppCapabilityDefault` using a unique key.""" - deleteAppCapabilityDefault( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteAppCapabilityDefaultInput! - ): DeleteAppCapabilityDefaultPayload - - """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: DeleteAppCapabilityDefaultCapabilityInput! - ): DeleteAppCapabilityDefaultCapabilityPayload - - """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: DeleteAppCapabilityDefaultGrantInput! - ): DeleteAppCapabilityDefaultGrantPayload - - """Deletes a single `AppClaimedInvite` using a unique key.""" - deleteAppClaimedInvite( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteAppClaimedInviteInput! - ): DeleteAppClaimedInvitePayload - - """Deletes a single `AppGrant` using a unique key.""" - deleteAppGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteAppGrantInput! - ): DeleteAppGrantPayload - - """Deletes a single `AppInvite` using a unique key.""" - deleteAppInvite( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteAppInviteInput! - ): DeleteAppInvitePayload - - """Deletes a single `AppMembership` using a unique key.""" - deleteAppMembership( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteAppMembershipInput! - ): DeleteAppMembershipPayload - - """Deletes a single `AppMembershipDefault` using a unique key.""" - deleteAppMembershipDefault( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteAppMembershipDefaultInput! - ): DeleteAppMembershipDefaultPayload - - """Deletes a single `AppMembershipProfile` using a unique key.""" - deleteAppMembershipProfile( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteAppMembershipProfileInput! - ): DeleteAppMembershipProfilePayload - - """Deletes a single `AppOwnerGrant` using a unique key.""" - deleteAppOwnerGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteAppOwnerGrantInput! - ): DeleteAppOwnerGrantPayload - - """Deletes a single `AppProfile` using a unique key.""" - deleteAppProfile( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteAppProfileInput! - ): DeleteAppProfilePayload - - """Deletes a single `AppProfileCapability` using a unique key.""" - deleteAppProfileCapability( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteAppProfileCapabilityInput! - ): DeleteAppProfileCapabilityPayload - - """Deletes a single `AppProfileDefinitionGrant` using a unique key.""" - deleteAppProfileDefinitionGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteAppProfileDefinitionGrantInput! - ): DeleteAppProfileDefinitionGrantPayload - - """Deletes a single `AppProfileGrant` using a unique key.""" - deleteAppProfileGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteAppProfileGrantInput! - ): DeleteAppProfileGrantPayload - - """Deletes a single `AppProfileTemplate` using a unique key.""" - deleteAppProfileTemplate( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteAppProfileTemplateInput! - ): DeleteAppProfileTemplatePayload - - """Deletes a single `MembershipType` using a unique key.""" - deleteMembershipType( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteMembershipTypeInput! - ): DeleteMembershipTypePayload - - """Deletes a single `OrgAdminGrant` using a unique key.""" - deleteOrgAdminGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteOrgAdminGrantInput! - ): DeleteOrgAdminGrantPayload - - """Deletes a single `OrgCapability` using a unique key.""" - deleteOrgCapability( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteOrgCapabilityInput! - ): DeleteOrgCapabilityPayload - - """Deletes a single `OrgCapabilityDefault` using a unique key.""" - deleteOrgCapabilityDefault( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteOrgCapabilityDefaultInput! - ): DeleteOrgCapabilityDefaultPayload - - """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( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteOrgChartEdgeInput! - ): DeleteOrgChartEdgePayload - - """Deletes a single `OrgChartEdgeGrant` using a unique key.""" - deleteOrgChartEdgeGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteOrgChartEdgeGrantInput! - ): DeleteOrgChartEdgeGrantPayload - - """Deletes a single `OrgClaimedInvite` using a unique key.""" - deleteOrgClaimedInvite( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteOrgClaimedInviteInput! - ): DeleteOrgClaimedInvitePayload - - """Deletes a single `OrgGrant` using a unique key.""" - deleteOrgGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteOrgGrantInput! - ): DeleteOrgGrantPayload - - """Deletes a single `OrgInvite` using a unique key.""" - deleteOrgInvite( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteOrgInviteInput! - ): DeleteOrgInvitePayload - - """Deletes a single `OrgMember` using a unique key.""" - deleteOrgMember( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteOrgMemberInput! - ): DeleteOrgMemberPayload - - """Deletes a single `OrgMemberProfile` using a unique key.""" - deleteOrgMemberProfile( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteOrgMemberProfileInput! - ): DeleteOrgMemberProfilePayload - - """Deletes a single `OrgMembership` using a unique key.""" - deleteOrgMembership( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteOrgMembershipInput! - ): DeleteOrgMembershipPayload - - """Deletes a single `OrgMembershipDefault` using a unique key.""" - deleteOrgMembershipDefault( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteOrgMembershipDefaultInput! - ): DeleteOrgMembershipDefaultPayload - - """Deletes a single `OrgMembershipProfile` using a unique key.""" - deleteOrgMembershipProfile( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteOrgMembershipProfileInput! - ): DeleteOrgMembershipProfilePayload - - """Deletes a single `OrgMembershipSetting` using a unique key.""" - deleteOrgMembershipSetting( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteOrgMembershipSettingInput! - ): DeleteOrgMembershipSettingPayload - - """Deletes a single `OrgOwnerGrant` using a unique key.""" - deleteOrgOwnerGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteOrgOwnerGrantInput! - ): DeleteOrgOwnerGrantPayload - - """Deletes a single `OrgProfile` using a unique key.""" - deleteOrgProfile( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteOrgProfileInput! - ): DeleteOrgProfilePayload - - """Deletes a single `OrgProfileCapability` using a unique key.""" - deleteOrgProfileCapability( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteOrgProfileCapabilityInput! - ): DeleteOrgProfileCapabilityPayload - - """Deletes a single `OrgProfileDefinitionGrant` using a unique key.""" - deleteOrgProfileDefinitionGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteOrgProfileDefinitionGrantInput! - ): DeleteOrgProfileDefinitionGrantPayload - - """Deletes a single `OrgProfileGrant` using a unique key.""" - deleteOrgProfileGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteOrgProfileGrantInput! - ): DeleteOrgProfileGrantPayload - - """Deletes a single `OrgProfileTemplate` using a unique key.""" - deleteOrgProfileTemplate( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteOrgProfileTemplateInput! - ): DeleteOrgProfileTemplatePayload - - """ - 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 - submitAppInviteCode( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: SubmitAppInviteCodeInput! - ): SubmitAppInviteCodePayload - submitOrgInviteCode( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: SubmitOrgInviteCodeInput! - ): SubmitOrgInviteCodePayload - - """Updates a single `AppAdminGrant` using a unique key and a patch.""" - updateAppAdminGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateAppAdminGrantInput! - ): UpdateAppAdminGrantPayload - - """Updates a single `AppCapability` using a unique key and a patch.""" - updateAppCapability( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateAppCapabilityInput! - ): UpdateAppCapabilityPayload - - """ - Updates a single `AppCapabilityDefault` using a unique key and a patch. - """ - updateAppCapabilityDefault( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateAppCapabilityDefaultInput! - ): UpdateAppCapabilityDefaultPayload - - """ - 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( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateAppClaimedInviteInput! - ): UpdateAppClaimedInvitePayload - - """Updates a single `AppGrant` using a unique key and a patch.""" - updateAppGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateAppGrantInput! - ): UpdateAppGrantPayload - - """Updates a single `AppInvite` using a unique key and a patch.""" - updateAppInvite( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateAppInviteInput! - ): UpdateAppInvitePayload - - """Updates a single `AppMembership` using a unique key and a patch.""" - updateAppMembership( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateAppMembershipInput! - ): UpdateAppMembershipPayload - - """ - Updates a single `AppMembershipDefault` using a unique key and a patch. - """ - updateAppMembershipDefault( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateAppMembershipDefaultInput! - ): UpdateAppMembershipDefaultPayload - - """ - Updates a single `AppMembershipProfile` using a unique key and a patch. - """ - updateAppMembershipProfile( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateAppMembershipProfileInput! - ): UpdateAppMembershipProfilePayload - - """Updates a single `AppOwnerGrant` using a unique key and a patch.""" - updateAppOwnerGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateAppOwnerGrantInput! - ): UpdateAppOwnerGrantPayload - - """Updates a single `AppProfile` using a unique key and a patch.""" - updateAppProfile( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateAppProfileInput! - ): UpdateAppProfilePayload - - """ - Updates a single `AppProfileCapability` using a unique key and a patch. - """ - updateAppProfileCapability( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateAppProfileCapabilityInput! - ): UpdateAppProfileCapabilityPayload - - """ - Updates a single `AppProfileDefinitionGrant` using a unique key and a patch. - """ - updateAppProfileDefinitionGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateAppProfileDefinitionGrantInput! - ): UpdateAppProfileDefinitionGrantPayload - - """Updates a single `AppProfileGrant` using a unique key and a patch.""" - updateAppProfileGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateAppProfileGrantInput! - ): UpdateAppProfileGrantPayload - - """Updates a single `AppProfileTemplate` using a unique key and a patch.""" - updateAppProfileTemplate( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateAppProfileTemplateInput! - ): UpdateAppProfileTemplatePayload - - """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( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateOrgAdminGrantInput! - ): UpdateOrgAdminGrantPayload - - """Updates a single `OrgCapability` using a unique key and a patch.""" - updateOrgCapability( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateOrgCapabilityInput! - ): UpdateOrgCapabilityPayload - - """ - Updates a single `OrgCapabilityDefault` using a unique key and a patch. - """ - updateOrgCapabilityDefault( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateOrgCapabilityDefaultInput! - ): UpdateOrgCapabilityDefaultPayload - - """ - Updates a single `OrgCapabilityDefaultCapability` using a unique key and a patch. - """ - updateOrgCapabilityDefaultCapability( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateOrgCapabilityDefaultCapabilityInput! - ): UpdateOrgCapabilityDefaultCapabilityPayload - - """ - 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: UpdateOrgCapabilityDefaultGrantInput! - ): UpdateOrgCapabilityDefaultGrantPayload - - """Updates a single `OrgChartEdge` using a unique key and a patch.""" - updateOrgChartEdge( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateOrgChartEdgeInput! - ): UpdateOrgChartEdgePayload - - """Updates a single `OrgChartEdgeGrant` using a unique key and a patch.""" - updateOrgChartEdgeGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateOrgChartEdgeGrantInput! - ): UpdateOrgChartEdgeGrantPayload - - """Updates a single `OrgClaimedInvite` using a unique key and a patch.""" - updateOrgClaimedInvite( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateOrgClaimedInviteInput! - ): UpdateOrgClaimedInvitePayload - - """Updates a single `OrgGrant` using a unique key and a patch.""" - updateOrgGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateOrgGrantInput! - ): UpdateOrgGrantPayload - - """Updates a single `OrgInvite` using a unique key and a patch.""" - updateOrgInvite( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateOrgInviteInput! - ): UpdateOrgInvitePayload - - """Updates a single `OrgMember` using a unique key and a patch.""" - updateOrgMember( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateOrgMemberInput! - ): UpdateOrgMemberPayload - - """Updates a single `OrgMemberProfile` using a unique key and a patch.""" - updateOrgMemberProfile( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateOrgMemberProfileInput! - ): UpdateOrgMemberProfilePayload - - """Updates a single `OrgMembership` using a unique key and a patch.""" - updateOrgMembership( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateOrgMembershipInput! - ): UpdateOrgMembershipPayload - - """ - Updates a single `OrgMembershipDefault` using a unique key and a patch. - """ - updateOrgMembershipDefault( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateOrgMembershipDefaultInput! - ): UpdateOrgMembershipDefaultPayload - - """ - Updates a single `OrgMembershipProfile` using a unique key and a patch. - """ - updateOrgMembershipProfile( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateOrgMembershipProfileInput! - ): UpdateOrgMembershipProfilePayload - - """ - Updates a single `OrgMembershipSetting` using a unique key and a patch. - """ - updateOrgMembershipSetting( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateOrgMembershipSettingInput! - ): UpdateOrgMembershipSettingPayload - - """Updates a single `OrgOwnerGrant` using a unique key and a patch.""" - updateOrgOwnerGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateOrgOwnerGrantInput! - ): UpdateOrgOwnerGrantPayload - - """Updates a single `OrgProfile` using a unique key and a patch.""" - updateOrgProfile( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateOrgProfileInput! - ): UpdateOrgProfilePayload - - """ - Updates a single `OrgProfileCapability` using a unique key and a patch. - """ - updateOrgProfileCapability( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateOrgProfileCapabilityInput! - ): UpdateOrgProfileCapabilityPayload - - """ - Updates a single `OrgProfileDefinitionGrant` using a unique key and a patch. - """ - updateOrgProfileDefinitionGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateOrgProfileDefinitionGrantInput! - ): UpdateOrgProfileDefinitionGrantPayload - - """Updates a single `OrgProfileGrant` using a unique key and a patch.""" - updateOrgProfileGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateOrgProfileGrantInput! - ): UpdateOrgProfileGrantPayload - - """Updates a single `OrgProfileTemplate` using a unique key and a patch.""" - updateOrgProfileTemplate( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateOrgProfileTemplateInput! - ): UpdateOrgProfileTemplatePayload -} - -"""Records of admin role grants and revocations between members""" -type OrgAdminGrant { - """ - The member receiving or losing the admin grant; NULL if user was deleted - """ - actorId: UUID - createdAt: Datetime - - """The entity (org or group) this admin grant applies to""" - entityId: UUID! - grantorId: UUID - id: UUID! - - """True to grant admin, false to revoke admin""" - isGrant: Boolean! - updatedAt: Datetime -} - -"""A connection to a list of `OrgAdminGrant` values.""" -type OrgAdminGrantConnection { - """ - A list of edges which contains the `OrgAdminGrant` and cursor to aid in pagination. - """ - edges: [OrgAdminGrantEdge]! - - """A list of `OrgAdminGrant` objects.""" - nodes: [OrgAdminGrant]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `OrgAdminGrant` you could get from the connection.""" - totalCount: Int! -} - -"""A `OrgAdminGrant` edge in the connection.""" -type OrgAdminGrantEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `OrgAdminGrant` at the end of the edge.""" - node: OrgAdminGrant -} - -""" -A filter to be used against `OrgAdminGrant` object types. All fields are combined with a logical ‘and.’ -""" -input OrgAdminGrantFilter { - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter - - """Checks for all expressions in this list.""" - 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.""" - id: UUIDFilter - - """Filter by the object’s `isGrant` field.""" - isGrant: BooleanFilter - - """Negates the expression.""" - not: OrgAdminGrantFilter - - """Checks for any expressions in this list.""" - or: [OrgAdminGrantFilter!] - - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter -} - -"""An input for mutations affecting `OrgAdminGrant`""" -input OrgAdminGrantInput { - """ - The member receiving or losing the admin grant; NULL if user was deleted - """ - actorId: UUID - createdAt: Datetime - - """The entity (org or group) this admin grant applies to""" - entityId: UUID! - grantorId: UUID - id: UUID - - """True to grant admin, false to revoke admin""" - isGrant: Boolean - updatedAt: Datetime -} - -"""Methods to use when ordering `OrgAdminGrant`.""" -enum 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 - 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 `OrgAdminGrant`. Fields that are set will be updated. -""" -input OrgAdminGrantPatch { - """ - The member receiving or losing the admin grant; NULL if user was deleted - """ - actorId: UUID - createdAt: Datetime - - """The entity (org or group) this admin grant applies to""" - entityId: UUID - grantorId: UUID - id: UUID - - """True to grant admin, false to revoke admin""" - isGrant: Boolean - updatedAt: Datetime -} - -""" -Defines available capabilities as named bits within a bitmask, used by the RBAC system for access control -""" -type OrgCapability { - """ - Position of this capability in the bitmask (1-indexed), must be unique per capability set - """ - bitnum: Int - - """ - Pre-computed bitmask with only this capability bit set, used for bitwise OR/AND operations - """ - bitstr: BitString! - - """Human-readable description of what this capability allows""" - description: String - id: UUID! - - """ - Kind of catalog entry: capability (capability) or level (achievement level) - """ - kind: String! - - """Human-readable capability name (e.g. read, write, manage)""" - name: String - - """ - Reads and enables pagination through a set of `OrgCapabilityDefaultCapability`. - """ - orgCapabilityDefaultCapabilitiesByCapabilityId( - """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 `OrgCapabilityDefaultCapability`.""" - orderBy: [OrgCapabilityDefaultCapabilityOrderBy!] = [PRIMARY_KEY_ASC] - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: OrgCapabilityDefaultCapabilityFilter - ): OrgCapabilityDefaultCapabilityConnection! - - """ - Reads and enables pagination through a set of `OrgCapabilityDefaultGrant`. - """ - orgCapabilityDefaultGrantsByCapabilityId( - """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 `OrgCapabilityDefaultGrant`.""" - orderBy: [OrgCapabilityDefaultGrantOrderBy!] = [PRIMARY_KEY_ASC] - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: OrgCapabilityDefaultGrantFilter - ): OrgCapabilityDefaultGrantConnection! - - """Reads and enables pagination through a set of `OrgProfileCapability`.""" - orgProfileCapabilitiesByCapabilityId( - """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 `OrgProfileCapability`.""" - orderBy: [OrgProfileCapabilityOrderBy!] = [PRIMARY_KEY_ASC] - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: OrgProfileCapabilityFilter - ): OrgProfileCapabilityConnection! - - """ - Reads and enables pagination through a set of `OrgProfileDefinitionGrant`. - """ - orgProfileDefinitionGrantsByCapabilityId( - """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 `OrgProfileDefinitionGrant`.""" - orderBy: [OrgProfileDefinitionGrantOrderBy!] = [PRIMARY_KEY_ASC] - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: OrgProfileDefinitionGrantFilter - ): OrgProfileDefinitionGrantConnection! -} - -"""A connection to a list of `OrgCapability` values.""" -type OrgCapabilityConnection { - """ - A list of edges which contains the `OrgCapability` and cursor to aid in pagination. - """ - edges: [OrgCapabilityEdge]! - - """A list of `OrgCapability` objects.""" - nodes: [OrgCapability]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `OrgCapability` you could get from the connection.""" - totalCount: Int! -} - -""" -Stores the default capability bitmask assigned to new members upon joining -""" -type OrgCapabilityDefault { - """Default capability bitmask applied to new members""" - capabilities: BitString! - - """References the entity these default capabilities apply to""" - entityId: UUID! - id: UUID! -} - -""" -Join table linking capability defaults to individual capabilities; recompute trigger rebuilds the defaults bitmask -""" -type OrgCapabilityDefaultCapability { - """ - Reads a single `OrgCapability` that is related to this `OrgCapabilityDefaultCapability`. - """ - capability: OrgCapability - - """References the capability included in the defaults bundle""" - capabilityId: UUID! - createdAt: Datetime - - """Scopes this default capability to a specific entity""" - entityId: UUID! - id: UUID! - updatedAt: Datetime -} - -"""A connection to a list of `OrgCapabilityDefaultCapability` values.""" -type OrgCapabilityDefaultCapabilityConnection { - """ - A list of edges which contains the `OrgCapabilityDefaultCapability` and cursor to aid in pagination. - """ - edges: [OrgCapabilityDefaultCapabilityEdge]! - - """A list of `OrgCapabilityDefaultCapability` objects.""" - nodes: [OrgCapabilityDefaultCapability]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `OrgCapabilityDefaultCapability` you could get from the connection. - """ - totalCount: Int! -} - -"""A `OrgCapabilityDefaultCapability` edge in the connection.""" -type OrgCapabilityDefaultCapabilityEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `OrgCapabilityDefaultCapability` at the end of the edge.""" - node: OrgCapabilityDefaultCapability -} - -""" -A filter to be used against `OrgCapabilityDefaultCapability` object types. All fields are combined with a logical ‘and.’ -""" -input OrgCapabilityDefaultCapabilityFilter { - """Checks for all expressions in this list.""" - and: [OrgCapabilityDefaultCapabilityFilter!] - - """Filter by the object’s `capability` relation.""" - capability: OrgCapabilityFilter - - """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`""" -input OrgCapabilityDefaultCapabilityInput { - """References the capability included in the defaults bundle""" - capabilityId: UUID! - createdAt: Datetime - - """Scopes this default capability to a specific entity""" - entityId: UUID! - id: UUID - updatedAt: Datetime -} - -"""Methods to use when ordering `OrgCapabilityDefaultCapability`.""" -enum OrgCapabilityDefaultCapabilityOrderBy { - CAPABILITY_ID_ASC - CAPABILITY_ID_DESC - CREATED_AT_ASC - CREATED_AT_DESC - ENTITY_ID_ASC - ENTITY_ID_DESC - ID_ASC - ID_DESC - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC -} - -""" -Represents an update to a `OrgCapabilityDefaultCapability`. Fields that are set will be updated. -""" -input OrgCapabilityDefaultCapabilityPatch { - """References the capability included in the defaults bundle""" - capabilityId: UUID - createdAt: Datetime - - """Scopes this default capability to a specific entity""" - entityId: UUID - id: UUID - updatedAt: Datetime -} - -"""A connection to a list of `OrgCapabilityDefault` values.""" -type OrgCapabilityDefaultConnection { - """ - A list of edges which contains the `OrgCapabilityDefault` and cursor to aid in pagination. - """ - edges: [OrgCapabilityDefaultEdge]! - - """A list of `OrgCapabilityDefault` objects.""" - nodes: [OrgCapabilityDefault]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `OrgCapabilityDefault` you could get from the connection. - """ - totalCount: Int! -} - -"""A `OrgCapabilityDefault` edge in the connection.""" -type OrgCapabilityDefaultEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `OrgCapabilityDefault` at the end of the edge.""" - node: OrgCapabilityDefault -} - -""" -A filter to be used against `OrgCapabilityDefault` object types. All fields are combined with a logical ‘and.’ -""" -input OrgCapabilityDefaultFilter { - """Checks for all expressions in this list.""" - and: [OrgCapabilityDefaultFilter!] - - """Filter by the object’s `capabilities` field.""" - capabilities: BitStringFilter - - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter - - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Negates the expression.""" - not: OrgCapabilityDefaultFilter - - """Checks for any expressions in this list.""" - or: [OrgCapabilityDefaultFilter!] -} - -""" -Audit log of capability additions and removals from the defaults bitmask -""" -type OrgCapabilityDefaultGrant { - """ - Reads a single `OrgCapability` that is related to this `OrgCapabilityDefaultGrant`. - """ - capability: OrgCapability - - """References the capability being added to or removed from defaults""" - capabilityId: UUID! - createdAt: Datetime - - """Scopes this audit entry to a specific entity""" - entityId: UUID! - 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 `OrgCapabilityDefaultGrant` values.""" -type OrgCapabilityDefaultGrantConnection { - """ - A list of edges which contains the `OrgCapabilityDefaultGrant` and cursor to aid in pagination. - """ - edges: [OrgCapabilityDefaultGrantEdge]! - - """A list of `OrgCapabilityDefaultGrant` objects.""" - nodes: [OrgCapabilityDefaultGrant]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `OrgCapabilityDefaultGrant` you could get from the connection. - """ - totalCount: Int! -} - -"""A `OrgCapabilityDefaultGrant` edge in the connection.""" -type OrgCapabilityDefaultGrantEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `OrgCapabilityDefaultGrant` at the end of the edge.""" - node: OrgCapabilityDefaultGrant -} - -""" -A filter to be used against `OrgCapabilityDefaultGrant` object types. All fields are combined with a logical ‘and.’ -""" -input OrgCapabilityDefaultGrantFilter { - """Checks for all expressions in this list.""" - and: [OrgCapabilityDefaultGrantFilter!] - - """Filter by the object’s `capability` relation.""" - capability: OrgCapabilityFilter - - """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`""" -input OrgCapabilityDefaultGrantInput { - """References the capability being added to or removed from defaults""" - capabilityId: UUID! - createdAt: Datetime - - """Scopes this audit entry to a specific entity""" - entityId: UUID! - grantorId: UUID - id: UUID - - """True to add the capability to defaults, false to remove it""" - isGrant: Boolean - updatedAt: Datetime -} - -"""Methods to use when ordering `OrgCapabilityDefaultGrant`.""" -enum OrgCapabilityDefaultGrantOrderBy { - CAPABILITY_ID_ASC - CAPABILITY_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 - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC -} - -""" -Represents an update to a `OrgCapabilityDefaultGrant`. Fields that are set will be updated. -""" -input OrgCapabilityDefaultGrantPatch { - """References the capability being added to or removed from defaults""" - capabilityId: UUID - createdAt: Datetime - - """Scopes this audit entry to a specific entity""" - entityId: UUID - grantorId: UUID - id: UUID - - """True to add the capability to defaults, false to remove it""" - isGrant: Boolean - updatedAt: Datetime -} - -"""An input for mutations affecting `OrgCapabilityDefault`""" -input OrgCapabilityDefaultInput { - """Default capability bitmask applied to new members""" - capabilities: BitString - - """References the entity these default capabilities apply to""" - entityId: UUID! - id: UUID -} - -"""Methods to use when ordering `OrgCapabilityDefault`.""" -enum OrgCapabilityDefaultOrderBy { - CAPABILITIES_ASC - CAPABILITIES_DESC - ENTITY_ID_ASC - ENTITY_ID_DESC - ID_ASC - ID_DESC - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC -} - -""" -Represents an update to a `OrgCapabilityDefault`. Fields that are set will be updated. -""" -input OrgCapabilityDefaultPatch { - """Default capability bitmask applied to new members""" - capabilities: BitString - - """References the entity these default capabilities apply to""" - entityId: UUID - id: UUID -} - -"""A `OrgCapability` edge in the connection.""" -type OrgCapabilityEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `OrgCapability` at the end of the edge.""" - node: OrgCapability -} - -""" -A filter to be used against `OrgCapability` object types. All fields are combined with a logical ‘and.’ -""" -input OrgCapabilityFilter { - """Checks for all expressions in this list.""" - and: [OrgCapabilityFilter!] - - """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 `kind` field.""" - kind: StringFilter - - """Filter by the object’s `name` field.""" - name: StringFilter - - """Negates the expression.""" - not: OrgCapabilityFilter - - """Checks for any expressions in this list.""" - or: [OrgCapabilityFilter!] - - """ - Filter by the object’s `orgCapabilityDefaultCapabilitiesByCapabilityId` relation. - """ - orgCapabilityDefaultCapabilitiesByCapabilityId: OrgCapabilityToManyOrgCapabilityDefaultCapabilityFilter - - """`orgCapabilityDefaultCapabilitiesByCapabilityId` exist.""" - orgCapabilityDefaultCapabilitiesByCapabilityIdExist: Boolean - - """ - Filter by the object’s `orgCapabilityDefaultGrantsByCapabilityId` relation. - """ - orgCapabilityDefaultGrantsByCapabilityId: OrgCapabilityToManyOrgCapabilityDefaultGrantFilter - - """`orgCapabilityDefaultGrantsByCapabilityId` exist.""" - orgCapabilityDefaultGrantsByCapabilityIdExist: Boolean - - """ - Filter by the object’s `orgProfileCapabilitiesByCapabilityId` relation. - """ - orgProfileCapabilitiesByCapabilityId: OrgCapabilityToManyOrgProfileCapabilityFilter - - """`orgProfileCapabilitiesByCapabilityId` exist.""" - orgProfileCapabilitiesByCapabilityIdExist: Boolean - - """ - Filter by the object’s `orgProfileDefinitionGrantsByCapabilityId` relation. - """ - orgProfileDefinitionGrantsByCapabilityId: OrgCapabilityToManyOrgProfileDefinitionGrantFilter - - """`orgProfileDefinitionGrantsByCapabilityId` exist.""" - orgProfileDefinitionGrantsByCapabilityIdExist: Boolean -} - -"""An input for mutations affecting `OrgCapability`""" -input OrgCapabilityInput { - """ - Position of this capability in the bitmask (1-indexed), must be unique per capability set - """ - bitnum: Int - - """ - Pre-computed bitmask with only this capability bit set, used for bitwise OR/AND operations - """ - bitstr: BitString - - """Human-readable description of what this capability allows""" - description: String - id: UUID - - """ - Kind of catalog entry: capability (capability) or level (achievement level) - """ - kind: String - - """Human-readable capability name (e.g. read, write, manage)""" - name: String -} - -"""Methods to use when ordering `OrgCapability`.""" -enum OrgCapabilityOrderBy { - BITNUM_ASC - BITNUM_DESC - BITSTR_ASC - BITSTR_DESC - DESCRIPTION_ASC - DESCRIPTION_DESC - ID_ASC - ID_DESC - KIND_ASC - KIND_DESC - NAME_ASC - NAME_DESC - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC -} - -""" -Represents an update to a `OrgCapability`. Fields that are set will be updated. -""" -input OrgCapabilityPatch { - """ - Position of this capability in the bitmask (1-indexed), must be unique per capability set - """ - bitnum: Int - - """ - Pre-computed bitmask with only this capability bit set, used for bitwise OR/AND operations - """ - bitstr: BitString - - """Human-readable description of what this capability allows""" - description: String - id: UUID - - """ - Kind of catalog entry: capability (capability) or level (achievement level) - """ - kind: String - - """Human-readable capability name (e.g. read, write, manage)""" - name: String -} - -""" -A filter to be used against many `OrgCapabilityDefaultCapability` object types. All fields are combined with a logical ‘and.’ -""" -input OrgCapabilityToManyOrgCapabilityDefaultCapabilityFilter { - """Filters to entities where every related entity matches.""" - every: OrgCapabilityDefaultCapabilityFilter - - """Filters to entities where no related entity matches.""" - none: OrgCapabilityDefaultCapabilityFilter - - """Filters to entities where at least one related entity matches.""" - some: OrgCapabilityDefaultCapabilityFilter -} - -""" -A filter to be used against many `OrgCapabilityDefaultGrant` object types. All fields are combined with a logical ‘and.’ -""" -input OrgCapabilityToManyOrgCapabilityDefaultGrantFilter { - """Filters to entities where every related entity matches.""" - every: OrgCapabilityDefaultGrantFilter - - """Filters to entities where no related entity matches.""" - none: OrgCapabilityDefaultGrantFilter - - """Filters to entities where at least one related entity matches.""" - some: OrgCapabilityDefaultGrantFilter -} - -""" -A filter to be used against many `OrgProfileCapability` object types. All fields are combined with a logical ‘and.’ -""" -input OrgCapabilityToManyOrgProfileCapabilityFilter { - """Filters to entities where every related entity matches.""" - every: OrgProfileCapabilityFilter - - """Filters to entities where no related entity matches.""" - none: OrgProfileCapabilityFilter - - """Filters to entities where at least one related entity matches.""" - some: OrgProfileCapabilityFilter -} - -""" -A filter to be used against many `OrgProfileDefinitionGrant` object types. All fields are combined with a logical ‘and.’ -""" -input OrgCapabilityToManyOrgProfileDefinitionGrantFilter { - """Filters to entities where every related entity matches.""" - every: OrgProfileDefinitionGrantFilter - - """Filters to entities where no related entity matches.""" - none: OrgProfileDefinitionGrantFilter - - """Filters to entities where at least one related entity matches.""" - some: OrgProfileDefinitionGrantFilter -} - -""" -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 - - """Organization this hierarchy edge belongs to""" - 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 list of edges which contains the `OrgChartEdgeGrant` and cursor to aid in pagination. - """ - edges: [OrgChartEdgeGrantEdge]! - - """A list of `OrgChartEdgeGrant` objects.""" - nodes: [OrgChartEdgeGrant]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `OrgChartEdgeGrant` you could get from the connection. - """ - totalCount: Int! -} - -"""A `OrgChartEdgeGrant` edge in the connection.""" -type OrgChartEdgeGrantEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `OrgChartEdgeGrant` at the end of the edge.""" - node: OrgChartEdgeGrant -} - -""" -A filter to be used against `OrgChartEdgeGrant` object types. All fields are combined with a logical ‘and.’ -""" -input OrgChartEdgeGrantFilter { - """Checks for all expressions in this list.""" - and: [OrgChartEdgeGrantFilter!] - - """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 `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 - - """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 -} - -"""An input for mutations affecting `OrgChartEdge`""" -input OrgChartEdgeInput { - """User ID of the subordinate (employee) in this reporting relationship""" - childId: UUID! - createdAt: Datetime - - """Organization this hierarchy edge belongs to""" - 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 - 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 -} - -""" -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 - - """ - 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 -""" -type OrgClaimedInvite { - createdAt: Datetime - - """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 + provisionBucket( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: ProvisionBucketInput! + ): ProvisionBucketPayload + submitAppInviteCode( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: SubmitAppInviteCodeInput! + ): SubmitAppInviteCodePayload + submitOrgInviteCode( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: SubmitOrgInviteCodeInput! + ): SubmitOrgInviteCodePayload - """User ID of the original invitation sender""" - senderId: UUID - updatedAt: Datetime -} + """Updates a single `AppAdminGrant` using a unique key and a patch.""" + updateAppAdminGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAppAdminGrantInput! + ): UpdateAppAdminGrantPayload -"""A connection to a list of `OrgClaimedInvite` values.""" -type OrgClaimedInviteConnection { """ - A list of edges which contains the `OrgClaimedInvite` and cursor to aid in pagination. + Updates a single `AppCapabilityDefaultCapability` using a unique key and a patch. """ - edges: [OrgClaimedInviteEdge]! - - """A list of `OrgClaimedInvite` objects.""" - nodes: [OrgClaimedInvite]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! + updateAppCapabilityDefaultCapability( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAppCapabilityDefaultCapabilityInput! + ): UpdateAppCapabilityDefaultCapabilityPayload """ - The count of *all* `OrgClaimedInvite` you could get from the connection. + Updates a single `AppCapabilityDefaultGrant` using a unique key and a patch. """ - totalCount: Int! -} - -"""A `OrgClaimedInvite` edge in the connection.""" -type OrgClaimedInviteEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `OrgClaimedInvite` at the end of the edge.""" - node: OrgClaimedInvite -} - -""" -A filter to be used against `OrgClaimedInvite` object types. All fields are combined with a logical ‘and.’ -""" -input OrgClaimedInviteFilter { - """Checks for all expressions in this list.""" - and: [OrgClaimedInviteFilter!] - - """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: OrgClaimedInviteFilter - - """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 - - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter -} + updateAppCapabilityDefaultGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAppCapabilityDefaultGrantInput! + ): UpdateAppCapabilityDefaultGrantPayload -"""An input for mutations affecting `OrgClaimedInvite`""" -input OrgClaimedInviteInput { - createdAt: Datetime + """Updates a single `AppClaimedInvite` using a unique key and a patch.""" + updateAppClaimedInvite( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAppClaimedInviteInput! + ): UpdateAppClaimedInvitePayload - """Optional JSON payload captured at the time the invite was claimed""" - data: JSON - entityId: UUID! - id: UUID + """Updates a single `AppGrant` using a unique key and a patch.""" + updateAppGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAppGrantInput! + ): UpdateAppGrantPayload - """User ID of the person who claimed and redeemed the invitation""" - receiverId: UUID + """Updates a single `AppInvite` using a unique key and a patch.""" + updateAppInvite( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAppInviteInput! + ): UpdateAppInvitePayload - """User ID of the original invitation sender""" - senderId: UUID - updatedAt: Datetime -} + """Updates a single `AppMembership` using a unique key and a patch.""" + updateAppMembership( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAppMembershipInput! + ): UpdateAppMembershipPayload -"""Methods to use when ordering `OrgClaimedInvite`.""" -enum OrgClaimedInviteOrderBy { - CREATED_AT_ASC - CREATED_AT_DESC - DATA_ASC - DATA_DESC - ENTITY_ID_ASC - ENTITY_ID_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 -} + """ + Updates a single `AppMembershipDefault` using a unique key and a patch. + """ + updateAppMembershipDefault( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAppMembershipDefaultInput! + ): UpdateAppMembershipDefaultPayload -""" -Represents an update to a `OrgClaimedInvite`. Fields that are set will be updated. -""" -input OrgClaimedInvitePatch { - createdAt: Datetime + """Updates a single `AppOwnerGrant` using a unique key and a patch.""" + updateAppOwnerGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAppOwnerGrantInput! + ): UpdateAppOwnerGrantPayload - """Optional JSON payload captured at the time the invite was claimed""" - data: JSON - entityId: UUID - id: UUID + """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 - """User ID of the person who claimed and redeemed the invitation""" - receiverId: UUID + """Updates a single `OrgAdminGrant` using a unique key and a patch.""" + updateOrgAdminGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateOrgAdminGrantInput! + ): UpdateOrgAdminGrantPayload - """User ID of the original invitation sender""" - senderId: UUID - updatedAt: Datetime -} + """ + Updates a single `OrgCapabilityDefaultCapability` using a unique key and a patch. + """ + updateOrgCapabilityDefaultCapability( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateOrgCapabilityDefaultCapabilityInput! + ): UpdateOrgCapabilityDefaultCapabilityPayload -"""A connection to a list of `OrgGetManagersRecord` values.""" -type OrgGetManagersConnection { """ - A list of edges which contains the `OrgGetManagersRecord` and cursor to aid in pagination. + Updates a single `OrgCapabilityDefaultGrant` using a unique key and a patch. """ - edges: [OrgGetManagersEdge]! + updateOrgCapabilityDefaultGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateOrgCapabilityDefaultGrantInput! + ): UpdateOrgCapabilityDefaultGrantPayload - """A list of `OrgGetManagersRecord` objects.""" - nodes: [OrgGetManagersRecord]! + """Updates a single `OrgChartEdge` using a unique key and a patch.""" + updateOrgChartEdge( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateOrgChartEdgeInput! + ): UpdateOrgChartEdgePayload - """Information to aid in pagination.""" - pageInfo: PageInfo! + """Updates a single `OrgChartEdgeGrant` using a unique key and a patch.""" + updateOrgChartEdgeGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateOrgChartEdgeGrantInput! + ): UpdateOrgChartEdgeGrantPayload - """ - The count of *all* `OrgGetManagersRecord` you could get from the connection. - """ - totalCount: Int! -} + """Updates a single `OrgClaimedInvite` using a unique key and a patch.""" + updateOrgClaimedInvite( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateOrgClaimedInviteInput! + ): UpdateOrgClaimedInvitePayload -"""A `OrgGetManagersRecord` edge in the connection.""" -type OrgGetManagersEdge { - """A cursor for use in pagination.""" - cursor: Cursor + """Updates a single `OrgGrant` using a unique key and a patch.""" + updateOrgGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateOrgGrantInput! + ): UpdateOrgGrantPayload - """The `OrgGetManagersRecord` at the end of the edge.""" - node: OrgGetManagersRecord -} + """Updates a single `OrgInvite` using a unique key and a patch.""" + updateOrgInvite( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateOrgInviteInput! + ): UpdateOrgInvitePayload + + """Updates a single `OrgMember` using a unique key and a patch.""" + updateOrgMember( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateOrgMemberInput! + ): UpdateOrgMemberPayload + + """Updates a single `OrgMemberProfile` using a unique key and a patch.""" + updateOrgMemberProfile( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateOrgMemberProfileInput! + ): UpdateOrgMemberProfilePayload -type OrgGetManagersRecord { - depth: Int - userId: UUID -} + """Updates a single `OrgMembership` using a unique key and a patch.""" + updateOrgMembership( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateOrgMembershipInput! + ): UpdateOrgMembershipPayload -"""A connection to a list of `OrgGetSubordinatesRecord` values.""" -type OrgGetSubordinatesConnection { """ - A list of edges which contains the `OrgGetSubordinatesRecord` and cursor to aid in pagination. + Updates a single `OrgMembershipDefault` using a unique key and a patch. """ - edges: [OrgGetSubordinatesEdge]! - - """A list of `OrgGetSubordinatesRecord` objects.""" - nodes: [OrgGetSubordinatesRecord]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! + updateOrgMembershipDefault( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateOrgMembershipDefaultInput! + ): UpdateOrgMembershipDefaultPayload """ - The count of *all* `OrgGetSubordinatesRecord` you could get from the connection. + Updates a single `OrgMembershipSetting` using a unique key and a patch. """ - totalCount: Int! -} - -"""A `OrgGetSubordinatesRecord` edge in the connection.""" -type OrgGetSubordinatesEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `OrgGetSubordinatesRecord` at the end of the edge.""" - node: OrgGetSubordinatesRecord -} + updateOrgMembershipSetting( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateOrgMembershipSettingInput! + ): UpdateOrgMembershipSettingPayload -type OrgGetSubordinatesRecord { - depth: Int - userId: UUID + """Updates a single `OrgOwnerGrant` using a unique key and a patch.""" + updateOrgOwnerGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateOrgOwnerGrantInput! + ): UpdateOrgOwnerGrantPayload } -""" -Records of individual capability grants and revocations for members via bitmask -""" -type OrgGrant { +"""Records of admin role grants and revocations between members""" +type OrgAdminGrant { """ - The member receiving or losing the capability grant; NULL if user was deleted + The member receiving or losing the admin grant; NULL if user was deleted """ actorId: UUID - - """Bitmask of capabilities being granted or revoked""" - capabilities: BitString! createdAt: Datetime - """The entity (org or group) this capability grant applies to""" + """The entity (org or group) this admin grant applies to""" entityId: UUID! grantorId: UUID id: UUID! - """True to grant the capabilities, false to revoke them""" + """True to grant admin, false to revoke admin""" isGrant: Boolean! updatedAt: Datetime } -"""A connection to a list of `OrgGrant` values.""" -type OrgGrantConnection { +"""A connection to a list of `OrgAdminGrant` values.""" +type OrgAdminGrantConnection { """ - A list of edges which contains the `OrgGrant` and cursor to aid in pagination. + A list of edges which contains the `OrgAdminGrant` and cursor to aid in pagination. """ - edges: [OrgGrantEdge]! + edges: [OrgAdminGrantEdge]! - """A list of `OrgGrant` objects.""" - nodes: [OrgGrant]! + """A list of `OrgAdminGrant` objects.""" + nodes: [OrgAdminGrant]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `OrgGrant` you could get from the connection.""" + """The count of *all* `OrgAdminGrant` you could get from the connection.""" totalCount: Int! } -"""A `OrgGrant` edge in the connection.""" -type OrgGrantEdge { +"""A `OrgAdminGrant` edge in the connection.""" +type OrgAdminGrantEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `OrgGrant` at the end of the edge.""" - node: OrgGrant + """The `OrgAdminGrant` at the end of the edge.""" + node: OrgAdminGrant } """ -A filter to be used against `OrgGrant` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `OrgAdminGrant` object types. All fields are combined with a logical ‘and.’ """ -input OrgGrantFilter { +input OrgAdminGrantFilter { """Filter by the object’s `actorId` field.""" actorId: UUIDFilter """Checks for all expressions in this list.""" - and: [OrgGrantFilter!] - - """Filter by the object’s `capabilities` field.""" - capabilities: BitStringFilter + and: [OrgAdminGrantFilter!] """Filter by the object’s `createdAt` field.""" createdAt: DatetimeFilter @@ -9301,42 +4673,37 @@ input OrgGrantFilter { isGrant: BooleanFilter """Negates the expression.""" - not: OrgGrantFilter + not: OrgAdminGrantFilter """Checks for any expressions in this list.""" - or: [OrgGrantFilter!] + or: [OrgAdminGrantFilter!] """Filter by the object’s `updatedAt` field.""" updatedAt: DatetimeFilter } -"""An input for mutations affecting `OrgGrant`""" -input OrgGrantInput { +"""An input for mutations affecting `OrgAdminGrant`""" +input OrgAdminGrantInput { """ - The member receiving or losing the capability grant; NULL if user was deleted + The member receiving or losing the admin grant; NULL if user was deleted """ actorId: UUID - - """Bitmask of capabilities being granted or revoked""" - capabilities: BitString createdAt: Datetime - """The entity (org or group) this capability grant applies to""" + """The entity (org or group) this admin grant applies to""" entityId: UUID! grantorId: UUID id: UUID - """True to grant the capabilities, false to revoke them""" + """True to grant admin, false to revoke admin""" isGrant: Boolean updatedAt: Datetime } -"""Methods to use when ordering `OrgGrant`.""" -enum OrgGrantOrderBy { +"""Methods to use when ordering `OrgAdminGrant`.""" +enum OrgAdminGrantOrderBy { ACTOR_ID_ASC ACTOR_ID_DESC - CAPABILITIES_ASC - CAPABILITIES_DESC CREATED_AT_ASC CREATED_AT_DESC ENTITY_ID_ASC @@ -9355,390 +4722,338 @@ enum OrgGrantOrderBy { } """ -Represents an update to a `OrgGrant`. Fields that are set will be updated. +Represents an update to a `OrgAdminGrant`. Fields that are set will be updated. """ -input OrgGrantPatch { +input OrgAdminGrantPatch { """ - The member receiving or losing the capability grant; NULL if user was deleted + The member receiving or losing the admin grant; NULL if user was deleted """ actorId: UUID - - """Bitmask of capabilities being granted or revoked""" - capabilities: BitString createdAt: Datetime - """The entity (org or group) this capability grant applies to""" + """The entity (org or group) this admin grant applies to""" entityId: UUID grantorId: UUID id: UUID - """True to grant the capabilities, false to revoke them""" + """True to grant admin, false to revoke admin""" isGrant: Boolean updatedAt: Datetime } """ -Invitation records sent to prospective members via email, with token-based redemption and expiration +Join table linking capability defaults to individual capabilities; recompute trigger rebuilds the defaults bitmask """ -type OrgInvite { - """Delivery channel for this invitation: email, sms, or link""" - channel: String! +type OrgCapabilityDefaultCapability { + """References the capability included in the defaults bundle""" + capabilityId: UUID! createdAt: Datetime - """Optional JSON payload of additional invite metadata""" - data: JSON - - """Email address of the invited recipient (required when channel=email)""" - email: ConstructiveInternalTypeEmail + """Scopes this default capability to a specific entity""" entityId: UUID! - - """Timestamp after which this invitation can no longer be redeemed""" - expiresAt: Datetime! id: UUID! + updatedAt: Datetime +} - """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! +"""A connection to a list of `OrgCapabilityDefaultCapability` values.""" +type OrgCapabilityDefaultCapabilityConnection { + """ + A list of edges which contains the `OrgCapabilityDefaultCapability` and cursor to aid in pagination. + """ + edges: [OrgCapabilityDefaultCapabilityEdge]! - """Unique random hex token used to redeem this invitation""" - inviteToken: String! + """A list of `OrgCapabilityDefaultCapability` objects.""" + nodes: [OrgCapabilityDefaultCapability]! - """Whether this invitation is still valid and can be redeemed""" - inviteValid: Boolean! + """Information to aid in pagination.""" + pageInfo: PageInfo! """ - Whether the resulting membership should be read-only when this invite is claimed + The count of *all* `OrgCapabilityDefaultCapability` you could get from the connection. """ - isReadOnly: Boolean! + totalCount: Int! +} - """Whether this invite can be claimed by multiple recipients""" - multiple: Boolean! +"""A `OrgCapabilityDefaultCapability` edge in the connection.""" +type OrgCapabilityDefaultCapabilityEdge { + """A cursor for use in pagination.""" + cursor: Cursor - """ - Phone number of the invited recipient in E.164 format (required when channel=sms) - """ - phone: String + """The `OrgCapabilityDefaultCapability` at the end of the edge.""" + node: OrgCapabilityDefaultCapability +} + +""" +A filter to be used against `OrgCapabilityDefaultCapability` object types. All fields are combined with a logical ‘and.’ +""" +input 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`""" +input OrgCapabilityDefaultCapabilityInput { + """References the capability included in the defaults bundle""" + capabilityId: UUID! + createdAt: Datetime + + """Scopes this default capability to a specific entity""" + entityId: UUID! + id: UUID + updatedAt: Datetime +} + +"""Methods to use when ordering `OrgCapabilityDefaultCapability`.""" +enum OrgCapabilityDefaultCapabilityOrderBy { + CAPABILITY_ID_ASC + CAPABILITY_ID_DESC + CREATED_AT_ASC + CREATED_AT_DESC + ENTITY_ID_ASC + ENTITY_ID_DESC + ID_ASC + ID_DESC + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC +} - """Reads a single `OrgProfile` that is related to this `OrgInvite`.""" - profile: OrgProfile +""" +Represents an update to a `OrgCapabilityDefaultCapability`. Fields that are set will be updated. +""" +input OrgCapabilityDefaultCapabilityPatch { + """References the capability included in the defaults bundle""" + capabilityId: UUID + createdAt: Datetime - """ - Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. - """ - profileId: UUID + """Scopes this default capability to a specific entity""" + entityId: UUID + id: UUID + updatedAt: Datetime +} - """User ID of the intended recipient, if targeting a specific user""" - receiverId: UUID +""" +Audit log of capability additions and removals from the defaults bitmask +""" +type OrgCapabilityDefaultGrant { + """References the capability being added to or removed from defaults""" + capabilityId: UUID! + createdAt: Datetime - """User ID of the member who sent this invitation""" - senderId: UUID! + """Scopes this audit entry to a specific entity""" + entityId: UUID! + 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 `OrgInvite` values.""" -type OrgInviteConnection { +"""A connection to a list of `OrgCapabilityDefaultGrant` values.""" +type OrgCapabilityDefaultGrantConnection { """ - A list of edges which contains the `OrgInvite` and cursor to aid in pagination. + A list of edges which contains the `OrgCapabilityDefaultGrant` and cursor to aid in pagination. """ - edges: [OrgInviteEdge]! + edges: [OrgCapabilityDefaultGrantEdge]! - """A list of `OrgInvite` objects.""" - nodes: [OrgInvite]! + """A list of `OrgCapabilityDefaultGrant` objects.""" + nodes: [OrgCapabilityDefaultGrant]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `OrgInvite` you could get from the connection.""" + """ + The count of *all* `OrgCapabilityDefaultGrant` you could get from the connection. + """ totalCount: Int! } -"""A `OrgInvite` edge in the connection.""" -type OrgInviteEdge { +"""A `OrgCapabilityDefaultGrant` edge in the connection.""" +type OrgCapabilityDefaultGrantEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `OrgInvite` at the end of the edge.""" - node: OrgInvite + """The `OrgCapabilityDefaultGrant` at the end of the edge.""" + node: OrgCapabilityDefaultGrant } """ -A filter to be used against `OrgInvite` 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 OrgInviteFilter { +input OrgCapabilityDefaultGrantFilter { """Checks for all expressions in this list.""" - and: [OrgInviteFilter!] + and: [OrgCapabilityDefaultGrantFilter!] - """Filter by the object’s `channel` field.""" - channel: StringFilter + """Filter by the object’s `capabilityId` field.""" + capabilityId: UUIDFilter """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 `grantorId` field.""" + grantorId: UUIDFilter """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 + """Filter by the object’s `isGrant` field.""" + isGrant: BooleanFilter """Negates the expression.""" - not: OrgInviteFilter + not: OrgCapabilityDefaultGrantFilter """Checks for any expressions in this list.""" - or: [OrgInviteFilter!] - - """Filter by the object’s `phone` field.""" - phone: StringFilter - - """Filter by the object’s `profile` relation.""" - profile: OrgProfileFilter - - """A related `profile` exists.""" - profileExists: Boolean - - """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 + or: [OrgCapabilityDefaultGrantFilter!] """Filter by the object’s `updatedAt` field.""" 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 `OrgCapabilityDefaultGrant`""" +input OrgCapabilityDefaultGrantInput { + """References the capability being added to or removed from defaults""" + capabilityId: UUID! createdAt: Datetime - """Optional JSON payload of additional invite metadata""" - data: JSON - - """Email address of the invited recipient (required when channel=email)""" - email: ConstructiveInternalTypeEmail + """Scopes this audit entry to a specific entity""" entityId: UUID! - - """Timestamp after which this invitation can no longer be redeemed""" - expiresAt: Datetime + grantorId: UUID 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""" - receiverId: UUID - - """User ID of the member who sent this invitation""" - senderId: UUID + """True to add the capability to defaults, false to remove it""" + isGrant: Boolean updatedAt: Datetime } -"""Methods to use when ordering `OrgInvite`.""" -enum OrgInviteOrderBy { - CHANNEL_ASC - CHANNEL_DESC +"""Methods to use when ordering `OrgCapabilityDefaultGrant`.""" +enum OrgCapabilityDefaultGrantOrderBy { + CAPABILITY_ID_ASC + CAPABILITY_ID_DESC 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 + GRANTOR_ID_ASC + GRANTOR_ID_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 + IS_GRANT_ASC + IS_GRANT_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 - SENDER_ID_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC -} - -""" -Represents an update to a `OrgInvite`. Fields that are set will be updated. -""" -input OrgInvitePatch { - """Delivery channel for this invitation: email, sms, or link""" - channel: String - createdAt: Datetime - - """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 - - """ - Phone number of the invited recipient in E.164 format (required when channel=sms) - """ - phone: String + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC +} - """ - Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. - """ - profileId: UUID +""" +Represents an update to a `OrgCapabilityDefaultGrant`. Fields that are set will be updated. +""" +input OrgCapabilityDefaultGrantPatch { + """References the capability being added to or removed from defaults""" + capabilityId: UUID + createdAt: Datetime - """User ID of the intended recipient, if targeting a specific user""" - receiverId: UUID + """Scopes this audit entry to a specific entity""" + entityId: UUID + grantorId: UUID + id: UUID - """User ID of the member who sent this invitation""" - senderId: UUID + """True to add the capability to defaults, false to remove it""" + isGrant: Boolean updatedAt: Datetime } """ -Simplified view of active members in an entity, used for listing who belongs to an org or group +Organizational chart edges defining parent-child reporting relationships between members within an entity """ -type OrgMember { - """References the user who is a member""" - actorId: UUID! +type OrgChartEdge { + """User ID of the subordinate (employee) in this reporting relationship""" + childId: UUID! + createdAt: Datetime - """References the entity (org or group) this member belongs to""" + """Organization this hierarchy edge belongs to""" entityId: UUID! id: UUID! - """Whether this member has admin privileges""" - isAdmin: Boolean! + """ + 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 `OrgMember` values.""" -type OrgMemberConnection { +"""A connection to a list of `OrgChartEdge` values.""" +type OrgChartEdgeConnection { """ - A list of edges which contains the `OrgMember` and cursor to aid in pagination. + A list of edges which contains the `OrgChartEdge` and cursor to aid in pagination. """ - edges: [OrgMemberEdge]! + edges: [OrgChartEdgeEdge]! - """A list of `OrgMember` objects.""" - nodes: [OrgMember]! + """A list of `OrgChartEdge` objects.""" + nodes: [OrgChartEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `OrgMember` you could get from the connection.""" + """The count of *all* `OrgChartEdge` you could get from the connection.""" totalCount: Int! } -"""A `OrgMember` edge in the connection.""" -type OrgMemberEdge { +"""A `OrgChartEdge` edge in the connection.""" +type OrgChartEdgeEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `OrgMember` at the end of the edge.""" - node: OrgMember + """The `OrgChartEdge` at the end of the edge.""" + node: OrgChartEdge } """ -A filter to be used against `OrgMember` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `OrgChartEdge` object types. All fields are combined with a logical ‘and.’ """ -input OrgMemberFilter { - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter - +input OrgChartEdgeFilter { """Checks for all expressions in this list.""" - and: [OrgMemberFilter!] + 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 @@ -9746,1053 +5061,993 @@ input OrgMemberFilter { """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `isAdmin` field.""" - isAdmin: BooleanFilter - """Negates the expression.""" - not: OrgMemberFilter + not: OrgChartEdgeFilter """Checks for any expressions in this list.""" - or: [OrgMemberFilter!] -} - -"""An input for mutations affecting `OrgMember`""" -input OrgMemberInput { - """References the user who is a member""" - actorId: UUID! - - """References the entity (org or group) this member belongs to""" - entityId: UUID! - id: UUID - - """Whether this member has admin privileges""" - isAdmin: Boolean -} + or: [OrgChartEdgeFilter!] -"""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_ADMIN_ASC - IS_ADMIN_DESC - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC -} + """Filter by the object’s `parentId` field.""" + parentId: UUIDFilter -""" -Represents an update to a `OrgMember`. Fields that are set will be updated. -""" -input OrgMemberPatch { - """References the user who is a member""" - actorId: UUID + """Filter by the object’s `positionLevel` field.""" + positionLevel: IntFilter - """References the entity (org or group) this member belongs to""" - entityId: UUID - id: UUID + """Filter by the object’s `positionTitle` field.""" + positionTitle: StringFilter - """Whether this member has admin privileges""" - isAdmin: Boolean + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter } """ -Per-membership profile information visible to other entity members (display name, email, title, bio, avatar) +Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table """ -type OrgMemberProfile { - """References the user who owns this profile (for self-edit RLS)""" - actorId: UUID! +type OrgChartEdgeGrant { + """User ID of the subordinate being placed in the hierarchy""" + childId: UUID! - """Short biography visible to other entity members""" - bio: String - createdAt: Datetime + """Timestamp when this grant or revocation was recorded""" + createdAt: Datetime! - """Display name shown to other entity members""" - displayName: String + """Organization this grant applies to""" + entityId: UUID! """ - Email address visible to other entity members (auto-populated from verified primary email) + User ID of the admin who performed this grant or revocation; NULL if grantor was deleted """ - email: String - - """References the entity this profile belongs to (used for RLS lookups)""" - entityId: UUID! + grantorId: UUID id: UUID! - """ - Reads a single `OrgMembership` that is related to this `OrgMemberProfile`. - """ - membership: OrgMembership + """TRUE to add/update the edge, FALSE to remove it""" + isGrant: Boolean! - """References the membership this profile belongs to (1:1)""" - membershipId: UUID! + """User ID of the manager being assigned; NULL for top-level positions""" + parentId: UUID - """Profile picture visible to other entity members""" - profilePicture: ConstructiveInternalTypeImage + """Numeric seniority level being assigned in this grant""" + positionLevel: Int - """Job title or role description visible to other entity members""" - title: String - updatedAt: Datetime + """Job title or role name being assigned in this grant""" + positionTitle: String } -"""A connection to a list of `OrgMemberProfile` values.""" -type OrgMemberProfileConnection { +"""A connection to a list of `OrgChartEdgeGrant` values.""" +type OrgChartEdgeGrantConnection { """ - A list of edges which contains the `OrgMemberProfile` and cursor to aid in pagination. + A list of edges which contains the `OrgChartEdgeGrant` and cursor to aid in pagination. """ - edges: [OrgMemberProfileEdge]! + edges: [OrgChartEdgeGrantEdge]! - """A list of `OrgMemberProfile` objects.""" - nodes: [OrgMemberProfile]! + """A list of `OrgChartEdgeGrant` objects.""" + nodes: [OrgChartEdgeGrant]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `OrgMemberProfile` you could get from the connection. + The count of *all* `OrgChartEdgeGrant` you could get from the connection. """ totalCount: Int! } -"""A `OrgMemberProfile` edge in the connection.""" -type OrgMemberProfileEdge { +"""A `OrgChartEdgeGrant` edge in the connection.""" +type OrgChartEdgeGrantEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `OrgMemberProfile` at the end of the edge.""" - node: OrgMemberProfile + """The `OrgChartEdgeGrant` at the end of the edge.""" + node: OrgChartEdgeGrant } """ -A filter to be used against `OrgMemberProfile` 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 OrgMemberProfileFilter { - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter - +input OrgChartEdgeGrantFilter { """Checks for all expressions in this list.""" - and: [OrgMemberProfileFilter!] + and: [OrgChartEdgeGrantFilter!] - """Filter by the object’s `bio` field.""" - bio: StringFilter + """Filter by the object’s `childId` field.""" + childId: UUIDFilter """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 - """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 `membership` relation.""" - membership: OrgMembershipFilter - - """Filter by the object’s `membershipId` field.""" - membershipId: UUIDFilter + """Filter by the object’s `isGrant` field.""" + isGrant: BooleanFilter """Negates the expression.""" - not: OrgMemberProfileFilter + not: OrgChartEdgeGrantFilter """Checks for any expressions in this list.""" - or: [OrgMemberProfileFilter!] + or: [OrgChartEdgeGrantFilter!] - """Filter by the object’s `profilePicture` field.""" - profilePicture: ConstructiveInternalTypeImageFilter + """Filter by the object’s `parentId` field.""" + parentId: UUIDFilter - """Filter by the object’s `title` field.""" - title: StringFilter + """Filter by the object’s `positionLevel` field.""" + positionLevel: IntFilter - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter + """Filter by the object’s `positionTitle` field.""" + positionTitle: StringFilter } -"""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 `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 - """Display name shown to other entity members""" - displayName: String + """Organization this grant applies to""" + entityId: UUID! """ - Email address visible to other entity members (auto-populated from verified primary email) + User ID of the admin who performed this grant or revocation; NULL if grantor was deleted """ - email: String - - """References the entity this profile belongs to (used for RLS lookups)""" - entityId: UUID! + grantorId: UUID id: UUID - """References the membership this profile belongs to (1:1)""" - membershipId: UUID! + """TRUE to add/update the edge, FALSE to remove it""" + isGrant: Boolean - """Profile picture visible to other entity members""" - profilePicture: ConstructiveInternalTypeImage + """User ID of the manager being assigned; NULL for top-level positions""" + parentId: UUID - """Job title or role description visible to other entity members""" - title: String - updatedAt: Datetime + """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 `OrgMemberProfile`.""" -enum OrgMemberProfileOrderBy { - ACTOR_ID_ASC - ACTOR_ID_DESC - BIO_ASC - BIO_DESC +"""Methods to use when ordering `OrgChartEdgeGrant`.""" +enum OrgChartEdgeGrantOrderBy { + CHILD_ID_ASC + CHILD_ID_DESC CREATED_AT_ASC CREATED_AT_DESC - DISPLAY_NAME_ASC - DISPLAY_NAME_DESC - EMAIL_ASC - EMAIL_DESC ENTITY_ID_ASC ENTITY_ID_DESC + GRANTOR_ID_ASC + GRANTOR_ID_DESC ID_ASC ID_DESC - MEMBERSHIP_ID_ASC - MEMBERSHIP_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 - PROFILE_PICTURE_ASC - PROFILE_PICTURE_DESC - TITLE_ASC - TITLE_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 `OrgChartEdgeGrant`. Fields that are set will be updated. """ -input OrgMemberProfilePatch { - """References the user who owns this profile (for self-edit RLS)""" - actorId: UUID +input OrgChartEdgeGrantPatch { + """User ID of the subordinate being placed in the hierarchy""" + childId: UUID - """Short biography visible to other entity members""" - bio: String + """Timestamp when this grant or revocation was recorded""" createdAt: Datetime - """Display name shown to other entity members""" - displayName: String + """Organization this grant applies to""" + entityId: UUID """ - Email address visible to other entity members (auto-populated from verified primary email) + User ID of the admin who performed this grant or revocation; NULL if grantor was deleted """ - email: String - - """References the entity this profile belongs to (used for RLS lookups)""" - entityId: UUID + grantorId: UUID id: UUID - """References the membership this profile belongs to (1:1)""" - membershipId: UUID + """TRUE to add/update the edge, FALSE to remove it""" + isGrant: Boolean - """Profile picture visible to other entity members""" - profilePicture: ConstructiveInternalTypeImage + """User ID of the manager being assigned; NULL for top-level positions""" + parentId: UUID - """Upload for Profile picture visible to other entity members""" - profilePictureUpload: Upload + """Numeric seniority level being assigned in this grant""" + positionLevel: Int - """Job title or role description visible to other entity members""" - title: String - updatedAt: Datetime + """Job title or role name being assigned in this grant""" + positionTitle: String } -""" -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! +"""An input for mutations affecting `OrgChartEdge`""" +input OrgChartEdgeInput { + """User ID of the subordinate (employee) in this reporting relationship""" + childId: UUID! createdAt: Datetime - createdBy: UUID - """References the entity (org or group) this membership belongs to""" + """Organization this hierarchy edge belongs to""" entityId: UUID! + id: UUID """ - Bitmask of capabilities 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! - - """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! - - """ - Reads a single `OrgMemberProfile` that is related to this `OrgMembership`. + User ID of the manager; NULL indicates a top-level position with no direct report """ - orgMemberProfileByMembershipId: OrgMemberProfile - - """Reads and enables pagination through a set of `OrgMembershipProfile`.""" - orgMembershipProfilesByMembershipId( - """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 `OrgMembershipProfile`.""" - orderBy: [OrgMembershipProfileOrderBy!] = [PRIMARY_KEY_ASC] - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: OrgMembershipProfileFilter - ): OrgMembershipProfileConnection! - - """Reads and enables pagination through a set of `OrgProfileGrant`.""" - orgProfileGrantsByMembershipId( - """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 + parentId: UUID - """Only read the last `n` values of the set.""" - last: Int + """Numeric seniority level for this position (higher = more senior)""" + positionLevel: Int - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int + """Job title or role name for this position in the org chart""" + positionTitle: String + updatedAt: Datetime +} - """The method to use when ordering `OrgProfileGrant`.""" - orderBy: [OrgProfileGrantOrderBy!] = [PRIMARY_KEY_ASC] +"""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 +} - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: OrgProfileGrantFilter - ): OrgProfileGrantConnection! +""" +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 - """Reads a single `OrgProfile` that is related to this `OrgMembership`.""" - profile: OrgProfile - profileId: UUID - updatedAt: Datetime - updatedBy: UUID -} + """Organization this hierarchy edge belongs to""" + entityId: UUID + id: 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. + User ID of the manager; NULL indicates a top-level position with no direct report """ - edges: [OrgMembershipEdge]! - - """A list of `OrgMembership` objects.""" - nodes: [OrgMembership]! + parentId: UUID - """Information to aid in pagination.""" - pageInfo: PageInfo! + """Numeric seniority level for this position (higher = more senior)""" + positionLevel: Int - """The count of *all* `OrgMembership` you could get from the connection.""" - totalCount: Int! + """Job title or role name for this position in the org chart""" + positionTitle: String + updatedAt: Datetime } """ -Default membership settings per entity, controlling initial approval and verification state for new members +Records of successfully claimed invitations, linking senders to receivers """ -type OrgMembershipDefault { +type OrgClaimedInvite { createdAt: Datetime - createdBy: UUID - """References the entity these membership defaults apply to""" + """Optional JSON payload captured at the time the invite was claimed""" + data: JSON entityId: UUID! id: UUID! - """Whether new members are automatically approved upon joining""" - isApproved: Boolean! + """User ID of the person who claimed and redeemed the invitation""" + receiverId: UUID + + """User ID of the original invitation sender""" + senderId: UUID updatedAt: Datetime - updatedBy: UUID } -"""A connection to a list of `OrgMembershipDefault` values.""" -type OrgMembershipDefaultConnection { +"""A connection to a list of `OrgClaimedInvite` values.""" +type OrgClaimedInviteConnection { """ - A list of edges which contains the `OrgMembershipDefault` and cursor to aid in pagination. + A list of edges which contains the `OrgClaimedInvite` and cursor to aid in pagination. """ - edges: [OrgMembershipDefaultEdge]! + edges: [OrgClaimedInviteEdge]! - """A list of `OrgMembershipDefault` objects.""" - nodes: [OrgMembershipDefault]! + """A list of `OrgClaimedInvite` objects.""" + nodes: [OrgClaimedInvite]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `OrgMembershipDefault` you could get from the connection. + The count of *all* `OrgClaimedInvite` you could get from the connection. """ totalCount: Int! } -"""A `OrgMembershipDefault` edge in the connection.""" -type OrgMembershipDefaultEdge { +"""A `OrgClaimedInvite` edge in the connection.""" +type OrgClaimedInviteEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `OrgMembershipDefault` at the end of the edge.""" - node: OrgMembershipDefault + """The `OrgClaimedInvite` at the end of the edge.""" + node: OrgClaimedInvite } """ -A filter to be used against `OrgMembershipDefault` 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 OrgMembershipDefaultFilter { +input OrgClaimedInviteFilter { """Checks for all expressions in this list.""" - and: [OrgMembershipDefaultFilter!] + and: [OrgClaimedInviteFilter!] """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 `id` field.""" id: UUIDFilter - """Filter by the object’s `isApproved` field.""" - isApproved: BooleanFilter - """Negates the expression.""" - not: OrgMembershipDefaultFilter + not: OrgClaimedInviteFilter """Checks for any expressions in this list.""" - or: [OrgMembershipDefaultFilter!] + or: [OrgClaimedInviteFilter!] + + """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 - - """Filter by the object’s `updatedBy` field.""" - updatedBy: UUIDFilter } -"""An input for mutations affecting `OrgMembershipDefault`""" -input OrgMembershipDefaultInput { +"""An input for mutations affecting `OrgClaimedInvite`""" +input OrgClaimedInviteInput { createdAt: Datetime - createdBy: UUID - """References the entity these membership defaults apply to""" + """Optional JSON payload captured at the time the invite was claimed""" + data: JSON entityId: UUID! id: UUID - """Whether new members are automatically approved upon joining""" - isApproved: Boolean + """User ID of the person who claimed and redeemed the invitation""" + receiverId: UUID + + """User ID of the original invitation sender""" + senderId: UUID updatedAt: Datetime - updatedBy: UUID } -"""Methods to use when ordering `OrgMembershipDefault`.""" -enum OrgMembershipDefaultOrderBy { +"""Methods to use when ordering `OrgClaimedInvite`.""" +enum OrgClaimedInviteOrderBy { CREATED_AT_ASC CREATED_AT_DESC - CREATED_BY_ASC - CREATED_BY_DESC + DATA_ASC + DATA_DESC ENTITY_ID_ASC ENTITY_ID_DESC ID_ASC ID_DESC - IS_APPROVED_ASC - IS_APPROVED_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 - UPDATED_BY_ASC - UPDATED_BY_DESC } """ -Represents an update to a `OrgMembershipDefault`. Fields that are set will be updated. +Represents an update to a `OrgClaimedInvite`. Fields that are set will be updated. """ -input OrgMembershipDefaultPatch { +input OrgClaimedInvitePatch { createdAt: Datetime - createdBy: UUID - """References the entity these membership defaults apply to""" + """Optional JSON payload captured at the time the invite was claimed""" + data: JSON entityId: UUID id: UUID - """Whether new members are automatically approved upon joining""" - isApproved: Boolean + """User ID of the person who claimed and redeemed the invitation""" + receiverId: UUID + + """User ID of the original invitation sender""" + senderId: UUID updatedAt: Datetime - updatedBy: UUID } -"""A `OrgMembership` edge in the connection.""" -type OrgMembershipEdge { +"""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]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `OrgGetManagersRecord` you could get from the connection. + """ + totalCount: Int! +} + +"""A `OrgGetManagersRecord` edge in the connection.""" +type OrgGetManagersEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `OrgMembership` at the end of the edge.""" - node: OrgMembership + """The `OrgGetManagersRecord` at the end of the edge.""" + node: OrgGetManagersRecord } -""" -A filter to be used against `OrgMembership` object types. All fields are combined with a logical ‘and.’ -""" -input OrgMembershipFilter { - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter +type OrgGetManagersRecord { + depth: Int + userId: UUID +} - """Checks for all expressions in this list.""" - and: [OrgMembershipFilter!] +"""A connection to a list of `OrgGetSubordinatesRecord` values.""" +type OrgGetSubordinatesConnection { + """ + A list of edges which contains the `OrgGetSubordinatesRecord` and cursor to aid in pagination. + """ + edges: [OrgGetSubordinatesEdge]! - """Filter by the object’s `capabilities` field.""" - capabilities: BitStringFilter + """A list of `OrgGetSubordinatesRecord` objects.""" + nodes: [OrgGetSubordinatesRecord]! - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter + """Information to aid in pagination.""" + pageInfo: PageInfo! - """Filter by the object’s `createdBy` field.""" - createdBy: UUIDFilter + """ + The count of *all* `OrgGetSubordinatesRecord` you could get from the connection. + """ + totalCount: Int! +} - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter +"""A `OrgGetSubordinatesRecord` edge in the connection.""" +type OrgGetSubordinatesEdge { + """A cursor for use in pagination.""" + cursor: Cursor - """Filter by the object’s `granted` field.""" - granted: BitStringFilter + """The `OrgGetSubordinatesRecord` at the end of the edge.""" + node: OrgGetSubordinatesRecord +} - """Filter by the object’s `id` field.""" - id: UUIDFilter +type OrgGetSubordinatesRecord { + depth: Int + userId: UUID +} - """Filter by the object’s `isActive` field.""" - isActive: BooleanFilter +""" +Records of individual capability grants and revocations for members via bitmask +""" +type OrgGrant { + """ + The member receiving or losing the capability grant; NULL if user was deleted + """ + actorId: UUID - """Filter by the object’s `isAdmin` field.""" - isAdmin: BooleanFilter + """Bitmask of capabilities being granted or revoked""" + capabilities: BitString! + createdAt: Datetime - """Filter by the object’s `isApproved` field.""" - isApproved: BooleanFilter + """The entity (org or group) this capability grant applies to""" + entityId: UUID! + grantorId: UUID + id: UUID! - """Filter by the object’s `isBanned` field.""" - isBanned: BooleanFilter + """True to grant the capabilities, false to revoke them""" + isGrant: Boolean! + updatedAt: Datetime +} - """Filter by the object’s `isDisabled` field.""" - isDisabled: BooleanFilter +"""A connection to a list of `OrgGrant` values.""" +type OrgGrantConnection { + """ + A list of edges which contains the `OrgGrant` and cursor to aid in pagination. + """ + edges: [OrgGrantEdge]! - """Filter by the object’s `isExternal` field.""" - isExternal: BooleanFilter + """A list of `OrgGrant` objects.""" + nodes: [OrgGrant]! - """Filter by the object’s `isOwner` field.""" - isOwner: BooleanFilter + """Information to aid in pagination.""" + pageInfo: PageInfo! - """Filter by the object’s `isReadOnly` field.""" - isReadOnly: BooleanFilter + """The count of *all* `OrgGrant` you could get from the connection.""" + totalCount: Int! +} - """Negates the expression.""" - not: OrgMembershipFilter +"""A `OrgGrant` edge in the connection.""" +type OrgGrantEdge { + """A cursor for use in pagination.""" + cursor: Cursor - """Checks for any expressions in this list.""" - or: [OrgMembershipFilter!] + """The `OrgGrant` at the end of the edge.""" + node: OrgGrant +} - """Filter by the object’s `orgMemberProfileByMembershipId` relation.""" - orgMemberProfileByMembershipId: OrgMemberProfileFilter +""" +A filter to be used against `OrgGrant` object types. All fields are combined with a logical ‘and.’ +""" +input OrgGrantFilter { + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter - """A related `orgMemberProfileByMembershipId` exists.""" - orgMemberProfileByMembershipIdExists: Boolean + """Checks for all expressions in this list.""" + and: [OrgGrantFilter!] - """Filter by the object’s `orgMembershipProfilesByMembershipId` relation.""" - orgMembershipProfilesByMembershipId: OrgMembershipToManyOrgMembershipProfileFilter + """Filter by the object’s `capabilities` field.""" + capabilities: BitStringFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter - """`orgMembershipProfilesByMembershipId` exist.""" - orgMembershipProfilesByMembershipIdExist: Boolean + """Filter by the object’s `entityId` field.""" + entityId: UUIDFilter - """Filter by the object’s `orgProfileGrantsByMembershipId` relation.""" - orgProfileGrantsByMembershipId: OrgMembershipToManyOrgProfileGrantFilter + """Filter by the object’s `grantorId` field.""" + grantorId: UUIDFilter - """`orgProfileGrantsByMembershipId` exist.""" - orgProfileGrantsByMembershipIdExist: Boolean + """Filter by the object’s `id` field.""" + id: UUIDFilter - """Filter by the object’s `profile` relation.""" - profile: OrgProfileFilter + """Filter by the object’s `isGrant` field.""" + isGrant: BooleanFilter - """A related `profile` exists.""" - profileExists: Boolean + """Negates the expression.""" + not: OrgGrantFilter - """Filter by the object’s `profileId` field.""" - profileId: UUIDFilter + """Checks for any expressions in this list.""" + or: [OrgGrantFilter!] """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""" - actorId: UUID! - +"""An input for mutations affecting `OrgGrant`""" +input OrgGrantInput { """ - Aggregated capability bitmask combining profile-based and directly granted capabilities + 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 - createdBy: UUID - """References the entity (org or group) this membership belongs to""" + """The entity (org or group) this capability grant applies to""" entityId: UUID! - - """ - Bitmask of capabilities directly granted to this member (not from profiles) - """ - granted: BitString + grantorId: UUID id: UUID - """ - 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 + """True to grant the capabilities, false to revoke them""" + isGrant: Boolean updatedAt: Datetime - updatedBy: UUID } -"""Methods to use when ordering `OrgMembership`.""" -enum OrgMembershipOrderBy { +"""Methods to use when ordering `OrgGrant`.""" +enum OrgGrantOrderBy { 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 - GRANTED_ASC - GRANTED_DESC + GRANTOR_ID_ASC + GRANTOR_ID_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 + IS_GRANT_ASC + IS_GRANT_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 `OrgMembership`. Fields that are set will be updated. +Represents an update to a `OrgGrant`. Fields that are set will be updated. """ -input OrgMembershipPatch { - """References the user who holds this membership""" - actorId: UUID - +input OrgGrantPatch { """ - Aggregated capability bitmask combining profile-based and directly granted capabilities + 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 - createdBy: UUID - """References the entity (org or group) this membership belongs to""" + """The entity (org or group) this capability grant applies to""" entityId: UUID - - """ - Bitmask of capabilities directly granted to this member (not from profiles) - """ - granted: BitString + grantorId: UUID id: UUID - """ - Computed field indicating the membership is approved, verified, not banned, and not disabled - """ - isActive: Boolean + """True to grant the capabilities, false to revoke them""" + isGrant: Boolean + updatedAt: Datetime +} - """Whether the actor has admin privileges on this entity""" - isAdmin: Boolean +""" +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! + createdAt: Datetime - """Whether this membership has been approved by an admin""" - isApproved: Boolean + """Optional JSON payload of additional invite metadata""" + data: JSON - """Whether this member has been banned from the entity""" - isBanned: Boolean + """Email address of the invited recipient (required when channel=email)""" + email: ConstructiveInternalTypeEmail + entityId: UUID! - """Whether this membership is temporarily disabled""" - isDisabled: Boolean + """Timestamp after which this invitation can no longer be redeemed""" + expiresAt: Datetime! + id: UUID! - """ - Whether this member is external (not a member of the parent scope). External members may have restricted capabilities. - """ - isExternal: Boolean + """Running count of how many times this invite has been claimed""" + inviteCount: Int! - """Whether the actor is the owner of this entity""" - isOwner: Boolean + """Maximum number of times this invite can be claimed; -1 means unlimited""" + inviteLimit: Int! - """Whether this member has read-only access (blocks mutations when true)""" - isReadOnly: Boolean - profileId: UUID - updatedAt: Datetime - updatedBy: UUID -} + """Unique random hex token used to redeem this invitation""" + inviteToken: String! + + """Whether this invitation is still valid and can be redeemed""" + inviteValid: Boolean! -""" -Every profile a membership holds; memberships.profile_id points at one of them -""" -type OrgMembershipProfile { """ - References the user holding the profile, denormalised from the membership + Whether the resulting membership should be read-only when this invite is claimed """ - actorId: UUID! - createdAt: Datetime - id: UUID! + isReadOnly: Boolean! + + """Whether this invite can be claimed by multiple recipients""" + multiple: Boolean! """ - Reads a single `OrgMembership` that is related to this `OrgMembershipProfile`. + Phone number of the invited recipient in E.164 format (required when channel=sms) """ - membership: OrgMembership - - """References the membership holding the profile""" - membershipId: UUID! + phone: String """ - Reads a single `OrgProfile` that is related to this `OrgMembershipProfile`. + Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. """ - profile: OrgProfile + profileId: UUID - """References the held profile""" - profileId: UUID! + """User ID of the intended recipient, if targeting a specific user""" + receiverId: UUID + + """User ID of the member who sent this invitation""" + senderId: UUID! updatedAt: Datetime } -"""A connection to a list of `OrgMembershipProfile` values.""" -type OrgMembershipProfileConnection { +"""A connection to a list of `OrgInvite` values.""" +type OrgInviteConnection { """ - A list of edges which contains the `OrgMembershipProfile` and cursor to aid in pagination. + A list of edges which contains the `OrgInvite` and cursor to aid in pagination. """ - edges: [OrgMembershipProfileEdge]! + edges: [OrgInviteEdge]! - """A list of `OrgMembershipProfile` objects.""" - nodes: [OrgMembershipProfile]! + """A list of `OrgInvite` objects.""" + nodes: [OrgInvite]! """Information to aid in pagination.""" pageInfo: PageInfo! - """ - The count of *all* `OrgMembershipProfile` you could get from the connection. - """ + """The count of *all* `OrgInvite` you could get from the connection.""" totalCount: Int! } -"""A `OrgMembershipProfile` edge in the connection.""" -type OrgMembershipProfileEdge { +"""A `OrgInvite` edge in the connection.""" +type OrgInviteEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `OrgMembershipProfile` at the end of the edge.""" - node: OrgMembershipProfile + """The `OrgInvite` at the end of the edge.""" + node: OrgInvite } """ -A filter to be used against `OrgMembershipProfile` 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 OrgMembershipProfileFilter { - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter - +input OrgInviteFilter { """Checks for all expressions in this list.""" - and: [OrgMembershipProfileFilter!] + and: [OrgInviteFilter!] + + """Filter by the object’s `channel` field.""" + channel: StringFilter + + """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 `createdAt` field.""" - createdAt: DatetimeFilter + """Filter by the object’s `inviteToken` field.""" + inviteToken: StringFilter - """Filter by the object’s `id` field.""" - id: UUIDFilter + """Filter by the object’s `inviteValid` field.""" + inviteValid: 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 + """Filter by the object’s `multiple` field.""" + multiple: BooleanFilter """Negates the expression.""" - not: OrgMembershipProfileFilter + not: OrgInviteFilter """Checks for any expressions in this list.""" - or: [OrgMembershipProfileFilter!] + or: [OrgInviteFilter!] - """Filter by the object’s `profile` relation.""" - profile: OrgProfileFilter + """Filter by the object’s `phone` field.""" + phone: 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 `OrgMembershipProfile`""" -input OrgMembershipProfileInput { - """ - References the user holding the profile, denormalised from the membership - """ - actorId: UUID! +"""An input for mutations affecting `OrgInvite`""" +input OrgInviteInput { + """Delivery channel for this invitation: email, sms, or link""" + channel: String createdAt: Datetime + + """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 - """References the membership holding the profile""" - membershipId: 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""" + receiverId: UUID - """References the held profile""" - profileId: UUID! + """User ID of the member who sent this invitation""" + senderId: UUID updatedAt: Datetime } -"""Methods to use when ordering `OrgMembershipProfile`.""" -enum OrgMembershipProfileOrderBy { - ACTOR_ID_ASC - ACTOR_ID_DESC +"""Methods to use when ordering `OrgInvite`.""" +enum OrgInviteOrderBy { + CHANNEL_ASC + CHANNEL_DESC 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 - 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_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 `OrgMembershipProfile`. Fields that are set will be updated. +Represents an update to a `OrgInvite`. Fields that are set will be updated. """ -input OrgMembershipProfilePatch { - """ - References the user holding the profile, denormalised from the membership - """ - actorId: UUID +input OrgInvitePatch { + """Delivery channel for this invitation: email, sms, or link""" + channel: String createdAt: Datetime - id: UUID - """References the membership holding the profile""" - membershipId: UUID + """Optional JSON payload of additional invite metadata""" + data: JSON - """References the held profile""" - profileId: UUID - updatedAt: Datetime -} + """Email address of the invited recipient (required when channel=email)""" + email: ConstructiveInternalTypeEmail + entityId: UUID -"""Per-entity settings for the memberships module""" -type OrgMembershipSetting { - """ - Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) - """ - allowExternalMembers: Boolean! + """Timestamp after which this invitation can no longer be redeemed""" + expiresAt: Datetime + id: UUID - """ - When a child entity is created, whether to auto-add existing org-level admins as child-entity admins - """ - createChildCascadeAdmins: Boolean! + """Running count of how many times this invite has been claimed""" + inviteCount: Int - """ - When a child entity is created, whether to auto-add existing org-level members (non-admin, non-owner) as child-entity members - """ - createChildCascadeMembers: Boolean! + """Maximum number of times this invite can be claimed; -1 means unlimited""" + inviteLimit: Int - """ - When a child entity is created, whether to auto-add existing org-level owners as child-entity owners - """ - createChildCascadeOwners: Boolean! - createdAt: Datetime - createdBy: UUID + """Unique random hex token used to redeem this invitation""" + inviteToken: String + + """Whether this invitation is still valid and can be redeemed""" + inviteValid: Boolean """ - When a member is deleted, whether to cascade-remove their descendant-entity memberships + Whether the resulting membership should be read-only when this invite is claimed """ - deleteMemberCascadeChildren: Boolean! + isReadOnly: Boolean - """References the entity these settings apply to""" - entityId: UUID! - id: UUID! + """Whether this invite can be claimed by multiple recipients""" + multiple: Boolean """ - Controls how profile assignment on invites is validated: strict (capability + subset check), capability_only (capability only), or subset_only (subset check only) + Phone number of the invited recipient in E.164 format (required when channel=sms) """ - inviteProfileAssignmentMode: String! + phone: String """ - Allocation mode for sub-entity limits: pooled (shared parent cap, no per-entity budgets) or budgeted (explicit per-entity allocations, transfer enabled) + Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. """ - limitAllocationMode: String! + profileId: 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! + """User ID of the intended recipient, if targeting a specific user""" + receiverId: UUID + + """User ID of the member who sent this invitation""" + senderId: UUID updatedAt: Datetime - updatedBy: UUID } -"""A connection to a list of `OrgMembershipSetting` values.""" -type OrgMembershipSettingConnection { +""" +Simplified view of active members in an entity, used for listing who belongs to an org or group +""" +type OrgMember { + """References the user who is a member""" + actorId: UUID! + + """References the entity (org or group) this member belongs to""" + entityId: UUID! + id: UUID! + + """Whether this member has admin privileges""" + isAdmin: Boolean! +} + +"""A connection to a list of `OrgMember` values.""" +type OrgMemberConnection { """ - A list of edges which contains the `OrgMembershipSetting` and cursor to aid in pagination. + A list of edges which contains the `OrgMember` and cursor to aid in pagination. """ - edges: [OrgMembershipSettingEdge]! + edges: [OrgMemberEdge]! - """A list of `OrgMembershipSetting` objects.""" - nodes: [OrgMembershipSetting]! + """A list of `OrgMember` objects.""" + nodes: [OrgMember]! """Information to aid in pagination.""" pageInfo: PageInfo! - """ - The count of *all* `OrgMembershipSetting` you could get from the connection. - """ + """The count of *all* `OrgMember` you could get from the connection.""" totalCount: Int! } -"""A `OrgMembershipSetting` edge in the connection.""" -type OrgMembershipSettingEdge { +"""A `OrgMember` edge in the connection.""" +type OrgMemberEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `OrgMembershipSetting` at the end of the edge.""" - node: OrgMembershipSetting + """The `OrgMember` at the end of the edge.""" + node: OrgMember } """ -A filter to be used against `OrgMembershipSetting` 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 OrgMembershipSettingFilter { - """Filter by the object’s `allowExternalMembers` field.""" - allowExternalMembers: BooleanFilter - - """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 - - """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 +input OrgMemberFilter { + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter + + """Checks for all expressions in this list.""" + and: [OrgMemberFilter!] """Filter by the object’s `entityId` field.""" entityId: UUIDFilter @@ -10800,828 +6055,680 @@ input OrgMembershipSettingFilter { """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 `isAdmin` field.""" + isAdmin: BooleanFilter """Negates the expression.""" - not: OrgMembershipSettingFilter + not: OrgMemberFilter """Checks for any expressions in this list.""" - or: [OrgMembershipSettingFilter!] - - """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 + or: [OrgMemberFilter!] } -"""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 - - """ - When a member is deleted, whether to cascade-remove their descendant-entity memberships - """ - deleteMemberCascadeChildren: Boolean +"""An input for mutations affecting `OrgMember`""" +input OrgMemberInput { + """References the user who is a member""" + actorId: UUID! - """References the entity these settings apply to""" + """References the entity (org or group) this member belongs to""" entityId: UUID! id: UUID - """ - 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 + """Whether this member has admin privileges""" + isAdmin: Boolean } -"""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 +"""Methods to use when ordering `OrgMember`.""" +enum OrgMemberOrderBy { + ACTOR_ID_ASC + ACTOR_ID_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_ADMIN_ASC + IS_ADMIN_DESC NATURAL - 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 `OrgMembershipSetting`. Fields that are set will be updated. +Represents an update to a `OrgMember`. 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 - createdAt: Datetime - createdBy: UUID - - """ - When a member is deleted, whether to cascade-remove their descendant-entity memberships - """ - deleteMemberCascadeChildren: Boolean +input OrgMemberPatch { + """References the user who is a member""" + actorId: UUID - """References the entity these settings apply to""" + """References the entity (org or group) this member belongs to""" entityId: UUID id: UUID - """ - 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 -} - -""" -A filter to be used against many `OrgMembershipProfile` object types. All fields are combined with a logical ‘and.’ -""" -input OrgMembershipToManyOrgMembershipProfileFilter { - """Filters to entities where every related entity matches.""" - every: OrgMembershipProfileFilter - - """Filters to entities where no related entity matches.""" - none: OrgMembershipProfileFilter - - """Filters to entities where at least one related entity matches.""" - some: OrgMembershipProfileFilter + """Whether this member has admin privileges""" + isAdmin: Boolean } """ -A filter to be used against many `OrgProfileGrant` object types. All fields are combined with a logical ‘and.’ +Per-membership profile information visible to other entity members (display name, email, title, bio, avatar) """ -input OrgMembershipToManyOrgProfileGrantFilter { - """Filters to entities where every related entity matches.""" - every: OrgProfileGrantFilter +type OrgMemberProfile { + """References the user who owns this profile (for self-edit RLS)""" + actorId: UUID! - """Filters to entities where no related entity matches.""" - none: OrgProfileGrantFilter + """Short biography visible to other entity members""" + bio: String + createdAt: Datetime - """Filters to entities where at least one related entity matches.""" - some: OrgProfileGrantFilter -} + """Display name shown to other entity members""" + displayName: String -"""Records of ownership transfers and grants between members""" -type OrgOwnerGrant { """ - The member receiving or losing the ownership grant; NULL if user was deleted + Email address visible to other entity members (auto-populated from verified primary email) """ - actorId: UUID - createdAt: Datetime + email: String - """The entity (org or group) this ownership grant applies to""" + """References the entity this profile belongs to (used for RLS lookups)""" entityId: UUID! - grantorId: UUID id: UUID! - """True to grant ownership, false to revoke ownership""" - isGrant: Boolean! + """ + 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 } -"""A connection to a list of `OrgOwnerGrant` values.""" -type OrgOwnerGrantConnection { +"""A connection to a list of `OrgMemberProfile` values.""" +type OrgMemberProfileConnection { """ - A list of edges which contains the `OrgOwnerGrant` and cursor to aid in pagination. + A list of edges which contains the `OrgMemberProfile` and cursor to aid in pagination. """ - edges: [OrgOwnerGrantEdge]! + edges: [OrgMemberProfileEdge]! - """A list of `OrgOwnerGrant` objects.""" - nodes: [OrgOwnerGrant]! + """A list of `OrgMemberProfile` objects.""" + nodes: [OrgMemberProfile]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `OrgOwnerGrant` you could get from the connection.""" + """ + The count of *all* `OrgMemberProfile` you could get from the connection. + """ totalCount: Int! } -"""A `OrgOwnerGrant` edge in the connection.""" -type OrgOwnerGrantEdge { +"""A `OrgMemberProfile` edge in the connection.""" +type OrgMemberProfileEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `OrgOwnerGrant` at the end of the edge.""" - node: OrgOwnerGrant + """The `OrgMemberProfile` at the end of the edge.""" + node: OrgMemberProfile } """ -A filter to be used against `OrgOwnerGrant` 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 OrgOwnerGrantFilter { +input OrgMemberProfileFilter { """Filter by the object’s `actorId` field.""" actorId: UUIDFilter """Checks for all expressions in this list.""" - and: [OrgOwnerGrantFilter!] + 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 `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 `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 `membership` relation.""" + membership: OrgMembershipFilter + + """Filter by the object’s `membershipId` field.""" + membershipId: UUIDFilter """Negates the expression.""" - not: OrgOwnerGrantFilter + not: OrgMemberProfileFilter """Checks for any expressions in this list.""" - or: [OrgOwnerGrantFilter!] + or: [OrgMemberProfileFilter!] + + """Filter by the object’s `profilePicture` field.""" + profilePicture: ConstructiveInternalTypeImageFilter + + """Filter by the object’s `title` field.""" + title: StringFilter """Filter by the object’s `updatedAt` field.""" updatedAt: DatetimeFilter } -"""An input for mutations affecting `OrgOwnerGrant`""" -input OrgOwnerGrantInput { +"""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 + createdAt: Datetime + + """Display name shown to other entity members""" + displayName: String + """ - The member receiving or losing the ownership grant; NULL if user was deleted + Email address visible to other entity members (auto-populated from verified primary email) """ - actorId: UUID - createdAt: Datetime + email: String - """The entity (org or group) this ownership grant applies to""" + """References the entity this profile belongs to (used for RLS lookups)""" entityId: UUID! - grantorId: UUID id: UUID - """True to grant ownership, false to revoke ownership""" - isGrant: Boolean + """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 } -"""Methods to use when ordering `OrgOwnerGrant`.""" -enum OrgOwnerGrantOrderBy { +"""Methods to use when ordering `OrgMemberProfile`.""" +enum OrgMemberProfileOrderBy { ACTOR_ID_ASC ACTOR_ID_DESC + BIO_ASC + BIO_DESC CREATED_AT_ASC CREATED_AT_DESC + DISPLAY_NAME_ASC + DISPLAY_NAME_DESC + EMAIL_ASC + EMAIL_DESC ENTITY_ID_ASC ENTITY_ID_DESC - GRANTOR_ID_ASC - GRANTOR_ID_DESC ID_ASC ID_DESC - IS_GRANT_ASC - IS_GRANT_DESC + MEMBERSHIP_ID_ASC + MEMBERSHIP_ID_DESC NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC + PROFILE_PICTURE_ASC + PROFILE_PICTURE_DESC + TITLE_ASC + TITLE_DESC UPDATED_AT_ASC UPDATED_AT_DESC } """ -Represents an update to a `OrgOwnerGrant`. Fields that are set will be updated. +Represents an update to a `OrgMemberProfile`. Fields that are set will be updated. """ -input OrgOwnerGrantPatch { - """ - The member receiving or losing the ownership grant; NULL if user was deleted - """ +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 - """The entity (org or group) this ownership grant applies to""" + """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 - grantorId: UUID id: UUID - """True to grant ownership, false to revoke ownership""" - isGrant: Boolean + """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 } """ -Named capability bundles (roles) that group multiple capabilities into reusable profiles +Tracks membership records linking actors to entities with capability bitmasks, ownership, and admin status """ -type OrgProfile { +type OrgMembership { + """References the user who holds this membership""" + actorId: UUID! + """ - Pre-computed capability bitmask aggregating all capabilities in this profile + Aggregated capability bitmask combining profile-based and directly granted capabilities """ capabilities: BitString! createdAt: Datetime + createdBy: UUID + createdByPrincipal: UUID - """Human-readable description of this profile and its intended use""" - description: String + """References the entity (org or group) this membership belongs to""" + entityId: UUID! """ - Scopes this profile to a specific entity; NULL means it is a global profile + Bitmask of capabilities directly granted to this member (not from profiles) """ - entityId: UUID + granted: BitString! id: UUID! """ - The default profile is automatically assigned to new members when they join + Computed field indicating the membership is approved, verified, not banned, and not disabled """ - isDefault: Boolean! - - """System profiles are built-in and cannot be deleted or renamed by users""" - isSystem: Boolean! - - """Display name for this profile (e.g. Admin, Editor, Viewer)""" - name: String! - - """Reads and enables pagination through a set of `OrgInvite`.""" - orgInvitesByProfileId( - """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 `OrgInvite`.""" - orderBy: [OrgInviteOrderBy!] = [PRIMARY_KEY_ASC] - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: OrgInviteFilter - ): OrgInviteConnection! - - """Reads and enables pagination through a set of `OrgMembershipProfile`.""" - orgMembershipProfilesByProfileId( - """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 `OrgMembershipProfile`.""" - orderBy: [OrgMembershipProfileOrderBy!] = [PRIMARY_KEY_ASC] - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: OrgMembershipProfileFilter - ): OrgMembershipProfileConnection! - - """Reads and enables pagination through a set of `OrgMembership`.""" - orgMembershipsByProfileId( - """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 `OrgMembership`.""" - orderBy: [OrgMembershipOrderBy!] = [PRIMARY_KEY_ASC] - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: OrgMembershipFilter - ): OrgMembershipConnection! - - """Reads and enables pagination through a set of `OrgProfileCapability`.""" - orgProfileCapabilitiesByProfileId( - """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 `OrgProfileCapability`.""" - orderBy: [OrgProfileCapabilityOrderBy!] = [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: OrgProfileCapabilityFilter - ): OrgProfileCapabilityConnection! + """Whether this membership is temporarily disabled""" + isDisabled: Boolean! """ - Reads and enables pagination through a set of `OrgProfileDefinitionGrant`. + Whether this member is external (not a member of the parent scope). External members may have restricted capabilities. """ - orgProfileDefinitionGrantsByProfileId( - """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 `OrgProfileDefinitionGrant`.""" - orderBy: [OrgProfileDefinitionGrantOrderBy!] = [PRIMARY_KEY_ASC] - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: OrgProfileDefinitionGrantFilter - ): OrgProfileDefinitionGrantConnection! - - """Reads and enables pagination through a set of `OrgProfileGrant`.""" - orgProfileGrantsByProfileId( - """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 + isExternal: Boolean! - """The method to use when ordering `OrgProfileGrant`.""" - orderBy: [OrgProfileGrantOrderBy!] = [PRIMARY_KEY_ASC] + """Whether the actor is the owner of this entity""" + isOwner: Boolean! - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: OrgProfileGrantFilter - ): OrgProfileGrantConnection! + """Whether this member has read-only access (blocks mutations when true)""" + isReadOnly: Boolean! - """URL-safe identifier for this profile, used in API references""" - slug: String! + """ + Reads a single `OrgMemberProfile` that is related to this `OrgMembership`. + """ + orgMemberProfileByMembershipId: OrgMemberProfile + profileId: UUID updatedAt: Datetime + updatedBy: UUID + updatedByPrincipal: UUID } -"""Join table linking profiles to individual capabilities they include""" -type OrgProfileCapability { +"""A connection to a list of `OrgMembership` values.""" +type OrgMembershipConnection { """ - Reads a single `OrgCapability` that is related to this `OrgProfileCapability`. + A list of edges which contains the `OrgMembership` and cursor to aid in pagination. """ - capability: OrgCapability + edges: [OrgMembershipEdge]! - """References the capability included in this profile""" - capabilityId: UUID! + """A list of `OrgMembership` objects.""" + nodes: [OrgMembership]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """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 - id: UUID! + createdBy: UUID + createdByPrincipal: UUID - """ - Reads a single `OrgProfile` that is related to this `OrgProfileCapability`. - """ - profile: OrgProfile + """References the entity these membership defaults apply to""" + entityId: UUID! + id: UUID! - """References the profile this capability belongs to""" - profileId: UUID! + """Whether new members are automatically approved upon joining""" + isApproved: Boolean! updatedAt: Datetime + updatedBy: UUID + updatedByPrincipal: UUID } -"""A connection to a list of `OrgProfileCapability` values.""" -type OrgProfileCapabilityConnection { +"""A connection to a list of `OrgMembershipDefault` values.""" +type OrgMembershipDefaultConnection { """ - A list of edges which contains the `OrgProfileCapability` and cursor to aid in pagination. + A list of edges which contains the `OrgMembershipDefault` and cursor to aid in pagination. """ - edges: [OrgProfileCapabilityEdge]! + edges: [OrgMembershipDefaultEdge]! - """A list of `OrgProfileCapability` objects.""" - nodes: [OrgProfileCapability]! + """A list of `OrgMembershipDefault` objects.""" + nodes: [OrgMembershipDefault]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `OrgProfileCapability` you could get from the connection. + The count of *all* `OrgMembershipDefault` you could get from the connection. """ totalCount: Int! } -"""A `OrgProfileCapability` edge in the connection.""" -type OrgProfileCapabilityEdge { +"""A `OrgMembershipDefault` edge in the connection.""" +type OrgMembershipDefaultEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `OrgProfileCapability` at the end of the edge.""" - node: OrgProfileCapability + """The `OrgMembershipDefault` at the end of the edge.""" + node: OrgMembershipDefault } """ -A filter to be used against `OrgProfileCapability` 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 OrgProfileCapabilityFilter { +input OrgMembershipDefaultFilter { """Checks for all expressions in this list.""" - and: [OrgProfileCapabilityFilter!] - - """Filter by the object’s `capability` relation.""" - capability: OrgCapabilityFilter - - """Filter by the object’s `capabilityId` field.""" - capabilityId: UUIDFilter + and: [OrgMembershipDefaultFilter!] """Filter by the object’s `createdAt` field.""" createdAt: DatetimeFilter + """Filter by the object’s `createdBy` field.""" + createdBy: UUIDFilter + + """Filter by the object’s `createdByPrincipal` field.""" + createdByPrincipal: UUIDFilter + + """Filter by the object’s `entityId` field.""" + entityId: UUIDFilter + """Filter by the object’s `id` field.""" id: UUIDFilter + """Filter by the object’s `isApproved` field.""" + isApproved: BooleanFilter + """Negates the expression.""" - not: OrgProfileCapabilityFilter + not: OrgMembershipDefaultFilter """Checks for any expressions in this list.""" - or: [OrgProfileCapabilityFilter!] - - """Filter by the object’s `profile` relation.""" - profile: OrgProfileFilter - - """Filter by the object’s `profileId` field.""" - profileId: UUIDFilter + or: [OrgMembershipDefaultFilter!] """Filter by the object’s `updatedAt` field.""" updatedAt: DatetimeFilter + + """Filter by the object’s `updatedBy` field.""" + updatedBy: UUIDFilter + + """Filter by the object’s `updatedByPrincipal` field.""" + updatedByPrincipal: UUIDFilter } -"""An input for mutations affecting `OrgProfileCapability`""" -input OrgProfileCapabilityInput { - """References the capability included in this profile""" - capabilityId: UUID! +"""An input for mutations affecting `OrgMembershipDefault`""" +input OrgMembershipDefaultInput { createdAt: Datetime + createdBy: UUID + createdByPrincipal: UUID + + """References the entity these membership defaults apply to""" + entityId: UUID! id: UUID - """References the profile this capability belongs to""" - profileId: UUID! + """Whether new members are automatically approved upon joining""" + isApproved: Boolean updatedAt: Datetime + updatedBy: UUID + updatedByPrincipal: UUID } -"""Methods to use when ordering `OrgProfileCapability`.""" -enum OrgProfileCapabilityOrderBy { - CAPABILITY_ID_ASC - CAPABILITY_ID_DESC +"""Methods to use when ordering `OrgMembershipDefault`.""" +enum OrgMembershipDefaultOrderBy { CREATED_AT_ASC CREATED_AT_DESC + CREATED_BY_ASC + CREATED_BY_DESC + CREATED_BY_PRINCIPAL_ASC + CREATED_BY_PRINCIPAL_DESC + ENTITY_ID_ASC + ENTITY_ID_DESC ID_ASC ID_DESC + IS_APPROVED_ASC + IS_APPROVED_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 + UPDATED_BY_PRINCIPAL_ASC + UPDATED_BY_PRINCIPAL_DESC } """ -Represents an update to a `OrgProfileCapability`. Fields that are set will be updated. +Represents an update to a `OrgMembershipDefault`. Fields that are set will be updated. """ -input OrgProfileCapabilityPatch { - """References the capability included in this profile""" - capabilityId: UUID +input OrgMembershipDefaultPatch { createdAt: Datetime + createdBy: UUID + createdByPrincipal: UUID + + """References the entity these membership defaults apply to""" + entityId: UUID id: UUID - """References the profile this capability belongs to""" - profileId: UUID + """Whether new members are automatically approved upon joining""" + isApproved: Boolean updatedAt: Datetime + updatedBy: UUID + updatedByPrincipal: UUID } -"""A connection to a list of `OrgProfile` values.""" -type OrgProfileConnection { - """ - A list of edges which contains the `OrgProfile` and cursor to aid in pagination. - """ - edges: [OrgProfileEdge]! - - """A list of `OrgProfile` objects.""" - nodes: [OrgProfile]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! +"""A `OrgMembership` edge in the connection.""" +type OrgMembershipEdge { + """A cursor for use in pagination.""" + cursor: Cursor - """The count of *all* `OrgProfile` you could get from the connection.""" - totalCount: Int! + """The `OrgMembership` at the end of the edge.""" + node: OrgMembership } """ -Audit log of capability additions and removals from profile definitions +A filter to be used against `OrgMembership` object types. All fields are combined with a logical ‘and.’ """ -type OrgProfileDefinitionGrant { - """ - Reads a single `OrgCapability` that is related to this `OrgProfileDefinitionGrant`. - """ - capability: OrgCapability - - """ - References the capability that was added to or removed from the profile; NULL if capability was deleted - """ - capabilityId: UUID - createdAt: Datetime - grantorId: UUID - id: UUID! - - """True to add the capability to the profile, false to remove it""" - isGrant: Boolean! +input OrgMembershipFilter { + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter - """ - Reads a single `OrgProfile` that is related to this `OrgProfileDefinitionGrant`. - """ - profile: OrgProfile + """Checks for all expressions in this list.""" + and: [OrgMembershipFilter!] - """ - References the profile whose definition was modified; NULL if profile was deleted - """ - profileId: UUID - updatedAt: Datetime -} + """Filter by the object’s `capabilities` field.""" + capabilities: BitStringFilter -"""A connection to a list of `OrgProfileDefinitionGrant` values.""" -type OrgProfileDefinitionGrantConnection { - """ - A list of edges which contains the `OrgProfileDefinitionGrant` and cursor to aid in pagination. - """ - edges: [OrgProfileDefinitionGrantEdge]! + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter - """A list of `OrgProfileDefinitionGrant` objects.""" - nodes: [OrgProfileDefinitionGrant]! + """Filter by the object’s `createdBy` field.""" + createdBy: UUIDFilter - """Information to aid in pagination.""" - pageInfo: PageInfo! + """Filter by the object’s `createdByPrincipal` field.""" + createdByPrincipal: UUIDFilter - """ - The count of *all* `OrgProfileDefinitionGrant` you could get from the connection. - """ - totalCount: Int! -} + """Filter by the object’s `entityId` field.""" + entityId: UUIDFilter -"""A `OrgProfileDefinitionGrant` edge in the connection.""" -type OrgProfileDefinitionGrantEdge { - """A cursor for use in pagination.""" - cursor: Cursor + """Filter by the object’s `granted` field.""" + granted: BitStringFilter - """The `OrgProfileDefinitionGrant` at the end of the edge.""" - node: OrgProfileDefinitionGrant -} + """Filter by the object’s `id` field.""" + id: UUIDFilter -""" -A filter to be used against `OrgProfileDefinitionGrant` object types. All fields are combined with a logical ‘and.’ -""" -input OrgProfileDefinitionGrantFilter { - """Checks for all expressions in this list.""" - and: [OrgProfileDefinitionGrantFilter!] + """Filter by the object’s `isActive` field.""" + isActive: BooleanFilter - """Filter by the object’s `capability` relation.""" - capability: OrgCapabilityFilter + """Filter by the object’s `isAdmin` field.""" + isAdmin: BooleanFilter - """A related `capability` exists.""" - capabilityExists: Boolean + """Filter by the object’s `isApproved` field.""" + isApproved: BooleanFilter - """Filter by the object’s `capabilityId` field.""" - capabilityId: UUIDFilter + """Filter by the object’s `isBanned` field.""" + isBanned: BooleanFilter - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter + """Filter by the object’s `isDisabled` field.""" + isDisabled: BooleanFilter - """Filter by the object’s `grantorId` field.""" - grantorId: UUIDFilter + """Filter by the object’s `isExternal` field.""" + isExternal: BooleanFilter - """Filter by the object’s `id` field.""" - id: UUIDFilter + """Filter by the object’s `isOwner` field.""" + isOwner: BooleanFilter - """Filter by the object’s `isGrant` field.""" - isGrant: BooleanFilter + """Filter by the object’s `isReadOnly` field.""" + isReadOnly: BooleanFilter """Negates the expression.""" - not: OrgProfileDefinitionGrantFilter + not: OrgMembershipFilter """Checks for any expressions in this list.""" - or: [OrgProfileDefinitionGrantFilter!] + or: [OrgMembershipFilter!] - """Filter by the object’s `profile` relation.""" - profile: OrgProfileFilter + """Filter by the object’s `orgMemberProfileByMembershipId` relation.""" + orgMemberProfileByMembershipId: OrgMemberProfileFilter - """A related `profile` exists.""" - profileExists: Boolean + """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 + + """Filter by the object’s `updatedByPrincipal` field.""" + updatedByPrincipal: UUIDFilter } -"""An input for mutations affecting `OrgProfileDefinitionGrant`""" -input OrgProfileDefinitionGrantInput { +"""An input for mutations affecting `OrgMembership`""" +input OrgMembershipInput { + """References the user who holds this membership""" + actorId: UUID! + """ - References the capability that was added to or removed from the profile; NULL if capability was deleted + Aggregated capability bitmask combining profile-based and directly granted capabilities """ - capabilityId: UUID + capabilities: BitString createdAt: Datetime - grantorId: UUID + createdBy: UUID + createdByPrincipal: UUID + + """References the entity (org or group) this membership belongs to""" + entityId: UUID! + + """ + Bitmask of capabilities directly granted to this member (not from profiles) + """ + granted: BitString id: UUID - """True to add the capability to the profile, false to remove it""" - 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 """ - References the profile whose definition was modified; NULL if profile was deleted + 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 + updatedByPrincipal: UUID } -"""Methods to use when ordering `OrgProfileDefinitionGrant`.""" -enum OrgProfileDefinitionGrantOrderBy { - CAPABILITY_ID_ASC - CAPABILITY_ID_DESC +"""Methods to use when ordering `OrgMembership`.""" +enum OrgMembershipOrderBy { + ACTOR_ID_ASC + ACTOR_ID_DESC + CAPABILITIES_ASC + CAPABILITIES_DESC CREATED_AT_ASC CREATED_AT_DESC - GRANTOR_ID_ASC - GRANTOR_ID_DESC + CREATED_BY_ASC + CREATED_BY_DESC + CREATED_BY_PRINCIPAL_ASC + CREATED_BY_PRINCIPAL_DESC + ENTITY_ID_ASC + ENTITY_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 @@ -11629,637 +6736,515 @@ enum OrgProfileDefinitionGrantOrderBy { PROFILE_ID_DESC UPDATED_AT_ASC UPDATED_AT_DESC + UPDATED_BY_ASC + UPDATED_BY_DESC + UPDATED_BY_PRINCIPAL_ASC + UPDATED_BY_PRINCIPAL_DESC } """ -Represents an update to a `OrgProfileDefinitionGrant`. Fields that are set will be updated. +Represents an update to a `OrgMembership`. Fields that are set will be updated. """ -input OrgProfileDefinitionGrantPatch { +input OrgMembershipPatch { + """References the user who holds this membership""" + actorId: UUID + """ - References the capability that was added to or removed from the profile; NULL if capability was deleted + Aggregated capability bitmask combining profile-based and directly granted capabilities """ - capabilityId: UUID + capabilities: BitString createdAt: Datetime - grantorId: UUID - id: UUID + createdBy: UUID + createdByPrincipal: UUID - """True to add the capability to the profile, false to remove it""" - isGrant: Boolean + """References the entity (org or group) this membership belongs to""" + entityId: UUID """ - References the profile whose definition was modified; NULL if profile was deleted + Bitmask of capabilities directly granted to this member (not from profiles) """ - profileId: UUID - updatedAt: Datetime -} - -"""A `OrgProfile` edge in the connection.""" -type OrgProfileEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `OrgProfile` at the end of the edge.""" - node: OrgProfile -} - -""" -A filter to be used against `OrgProfile` object types. All fields are combined with a logical ‘and.’ -""" -input OrgProfileFilter { - """Checks for all expressions in this list.""" - and: [OrgProfileFilter!] - - """Filter by the object’s `capabilities` field.""" - capabilities: BitStringFilter - - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter - - """Filter by the object’s `description` field.""" - description: StringFilter - - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter - - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `isDefault` field.""" - isDefault: BooleanFilter - - """Filter by the object’s `isSystem` field.""" - isSystem: BooleanFilter - - """Filter by the object’s `name` field.""" - name: StringFilter - - """Negates the expression.""" - not: OrgProfileFilter - - """Checks for any expressions in this list.""" - or: [OrgProfileFilter!] + granted: BitString + id: UUID - """Filter by the object’s `orgInvitesByProfileId` relation.""" - orgInvitesByProfileId: OrgProfileToManyOrgInviteFilter + """ + Computed field indicating the membership is approved, verified, not banned, and not disabled + """ + isActive: Boolean - """`orgInvitesByProfileId` exist.""" - orgInvitesByProfileIdExist: Boolean + """Whether the actor has admin privileges on this entity""" + isAdmin: Boolean - """Filter by the object’s `orgMembershipProfilesByProfileId` relation.""" - orgMembershipProfilesByProfileId: OrgProfileToManyOrgMembershipProfileFilter + """Whether this membership has been approved by an admin""" + isApproved: Boolean - """`orgMembershipProfilesByProfileId` exist.""" - orgMembershipProfilesByProfileIdExist: Boolean + """Whether this member has been banned from the entity""" + isBanned: Boolean - """Filter by the object’s `orgMembershipsByProfileId` relation.""" - orgMembershipsByProfileId: OrgProfileToManyOrgMembershipFilter + """Whether this membership is temporarily disabled""" + isDisabled: Boolean - """`orgMembershipsByProfileId` exist.""" - orgMembershipsByProfileIdExist: Boolean + """ + Whether this member is external (not a member of the parent scope). External members may have restricted capabilities. + """ + isExternal: Boolean - """Filter by the object’s `orgProfileCapabilitiesByProfileId` relation.""" - orgProfileCapabilitiesByProfileId: OrgProfileToManyOrgProfileCapabilityFilter + """Whether the actor is the owner of this entity""" + isOwner: Boolean - """`orgProfileCapabilitiesByProfileId` exist.""" - orgProfileCapabilitiesByProfileIdExist: Boolean + """Whether this member has read-only access (blocks mutations when true)""" + isReadOnly: Boolean + profileId: UUID + updatedAt: Datetime + updatedBy: UUID + updatedByPrincipal: UUID +} +"""Per-entity settings for the memberships module""" +type OrgMembershipSetting { """ - Filter by the object’s `orgProfileDefinitionGrantsByProfileId` relation. + Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) """ - orgProfileDefinitionGrantsByProfileId: OrgProfileToManyOrgProfileDefinitionGrantFilter - - """`orgProfileDefinitionGrantsByProfileId` exist.""" - orgProfileDefinitionGrantsByProfileIdExist: Boolean - - """Filter by the object’s `orgProfileGrantsByProfileId` relation.""" - orgProfileGrantsByProfileId: OrgProfileToManyOrgProfileGrantFilter + allowExternalMembers: Boolean! - """`orgProfileGrantsByProfileId` exist.""" - orgProfileGrantsByProfileIdExist: Boolean + """ + Whether principals (agents, API-key identities) may mint API keys and child sessions for this org; requires auth_settings.allow_principal_delegation too + """ + allowPrincipalOwnedApiKeys: Boolean! - """Filter by the object’s `slug` field.""" - slug: StringFilter + """ + When a child entity is created, whether to auto-add existing org-level admins as child-entity admins + """ + createChildCascadeAdmins: Boolean! - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter -} + """ + 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 profile assignments and revocations for members""" -type OrgProfileGrant { + """ + When a child entity is created, whether to auto-add existing org-level owners as child-entity owners + """ + createChildCascadeOwners: Boolean! createdAt: Datetime + createdBy: UUID + createdByPrincipal: UUID - """The entity (org or group) scope for this profile grant""" - entityId: UUID - grantorId: UUID - id: UUID! + """ + When a member is deleted, whether to cascade-remove their descendant-entity memberships + """ + deleteMemberCascadeChildren: Boolean! - """True to assign the profile, false to revoke it""" - isGrant: Boolean! + """References the entity these settings apply to""" + entityId: UUID! + id: UUID! """ - Reads a single `OrgMembership` that is related to this `OrgProfileGrant`. + Controls how profile assignment on invites is validated: strict (capability + subset check), capability_only (capability only), or subset_only (subset check only) """ - membership: OrgMembership + inviteProfileAssignmentMode: String! """ - References the membership that received or lost this profile; NULL if membership was deleted + Allocation mode for sub-entity limits: pooled (shared parent cap, no per-entity budgets) or budgeted (explicit per-entity allocations, transfer enabled) """ - membershipId: UUID - - """Reads a single `OrgProfile` that is related to this `OrgProfileGrant`.""" - profile: OrgProfile + limitAllocationMode: String! """ - References the profile being assigned; NULL indicates the profile was removed + 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. """ - profileId: UUID + populateMemberEmail: Boolean! updatedAt: Datetime + updatedBy: UUID + updatedByPrincipal: UUID } -"""A connection to a list of `OrgProfileGrant` values.""" -type OrgProfileGrantConnection { +"""A connection to a list of `OrgMembershipSetting` values.""" +type OrgMembershipSettingConnection { """ - A list of edges which contains the `OrgProfileGrant` and cursor to aid in pagination. + A list of edges which contains the `OrgMembershipSetting` and cursor to aid in pagination. """ - edges: [OrgProfileGrantEdge]! + edges: [OrgMembershipSettingEdge]! - """A list of `OrgProfileGrant` objects.""" - nodes: [OrgProfileGrant]! + """A list of `OrgMembershipSetting` objects.""" + nodes: [OrgMembershipSetting]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `OrgProfileGrant` you could get from the connection. + The count of *all* `OrgMembershipSetting` you could get from the connection. """ totalCount: Int! } -"""A `OrgProfileGrant` edge in the connection.""" -type OrgProfileGrantEdge { +"""A `OrgMembershipSetting` edge in the connection.""" +type OrgMembershipSettingEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `OrgProfileGrant` at the end of the edge.""" - node: OrgProfileGrant + """The `OrgMembershipSetting` at the end of the edge.""" + node: OrgMembershipSetting } """ -A filter to be used against `OrgProfileGrant` 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 OrgProfileGrantFilter { +input OrgMembershipSettingFilter { + """Filter by the object’s `allowExternalMembers` field.""" + allowExternalMembers: BooleanFilter + + """Filter by the object’s `allowPrincipalOwnedApiKeys` field.""" + allowPrincipalOwnedApiKeys: BooleanFilter + """Checks for all expressions in this list.""" - and: [OrgProfileGrantFilter!] + 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 `createdByPrincipal` field.""" + createdByPrincipal: 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 `membership` relation.""" - membership: OrgMembershipFilter - - """A related `membership` exists.""" - membershipExists: Boolean + """Filter by the object’s `inviteProfileAssignmentMode` field.""" + inviteProfileAssignmentMode: StringFilter - """Filter by the object’s `membershipId` field.""" - membershipId: UUIDFilter + """Filter by the object’s `limitAllocationMode` field.""" + limitAllocationMode: StringFilter """Negates the expression.""" - not: OrgProfileGrantFilter + not: OrgMembershipSettingFilter """Checks for any expressions in this list.""" - or: [OrgProfileGrantFilter!] - - """Filter by the object’s `profile` relation.""" - profile: OrgProfileFilter - - """A related `profile` exists.""" - profileExists: Boolean + or: [OrgMembershipSettingFilter!] - """Filter by the object’s `profileId` field.""" - profileId: UUIDFilter + """Filter by the object’s `populateMemberEmail` field.""" + populateMemberEmail: BooleanFilter """Filter by the object’s `updatedAt` field.""" updatedAt: DatetimeFilter -} - -"""An input for mutations affecting `OrgProfileGrant`""" -input OrgProfileGrantInput { - createdAt: Datetime - - """The entity (org or group) scope for this profile grant""" - entityId: UUID - grantorId: UUID - id: UUID - - """True to assign the profile, false to revoke it""" - isGrant: Boolean - - """ - References the membership that received or lost this profile; NULL if membership was deleted - """ - membershipId: UUID - - """ - References the profile being assigned; NULL indicates the profile was removed - """ - profileId: UUID - updatedAt: Datetime -} -"""Methods to use when ordering `OrgProfileGrant`.""" -enum OrgProfileGrantOrderBy { - 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 - MEMBERSHIP_ID_ASC - MEMBERSHIP_ID_DESC - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - PROFILE_ID_ASC - PROFILE_ID_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC -} + """Filter by the object’s `updatedBy` field.""" + updatedBy: UUIDFilter -""" -Represents an update to a `OrgProfileGrant`. Fields that are set will be updated. -""" -input OrgProfileGrantPatch { - createdAt: Datetime + """Filter by the object’s `updatedByPrincipal` field.""" + updatedByPrincipal: UUIDFilter +} - """The entity (org or group) scope for this profile grant""" - entityId: UUID - grantorId: UUID - id: UUID +"""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 - """True to assign the profile, false to revoke it""" - isGrant: Boolean + """ + Whether principals (agents, API-key identities) may mint API keys and child sessions for this org; requires auth_settings.allow_principal_delegation too + """ + allowPrincipalOwnedApiKeys: Boolean """ - References the membership that received or lost this profile; NULL if membership was deleted + When a child entity is created, whether to auto-add existing org-level admins as child-entity admins """ - membershipId: UUID + createChildCascadeAdmins: Boolean """ - References the profile being assigned; NULL indicates the profile was removed + When a child entity is created, whether to auto-add existing org-level members (non-admin, non-owner) as child-entity members """ - profileId: UUID - updatedAt: Datetime -} + createChildCascadeMembers: Boolean -"""An input for mutations affecting `OrgProfile`""" -input OrgProfileInput { """ - Pre-computed capability bitmask aggregating all capabilities in this profile + When a child entity is created, whether to auto-add existing org-level owners as child-entity owners """ - capabilities: BitString + createChildCascadeOwners: Boolean createdAt: Datetime - - """Human-readable description of this profile and its intended use""" - description: String + createdBy: UUID + createdByPrincipal: UUID """ - Scopes this profile to a specific entity; NULL means it is a global profile + When a member is deleted, whether to cascade-remove their descendant-entity memberships """ - entityId: UUID + deleteMemberCascadeChildren: Boolean + + """References the entity these settings apply to""" + entityId: UUID! id: UUID """ - The default profile is automatically assigned to new members when they join + Controls how profile assignment on invites is validated: strict (capability + subset check), capability_only (capability only), or subset_only (subset check only) """ - isDefault: Boolean - - """System profiles are built-in and cannot be deleted or renamed by users""" - isSystem: Boolean + inviteProfileAssignmentMode: String - """Display name for this profile (e.g. Admin, Editor, Viewer)""" - name: 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 - """URL-safe identifier for this profile, used in API references""" - slug: 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 + updatedByPrincipal: UUID } -"""Methods to use when ordering `OrgProfile`.""" -enum OrgProfileOrderBy { - CAPABILITIES_ASC - CAPABILITIES_DESC +"""Methods to use when ordering `OrgMembershipSetting`.""" +enum OrgMembershipSettingOrderBy { + ALLOW_EXTERNAL_MEMBERS_ASC + ALLOW_EXTERNAL_MEMBERS_DESC + ALLOW_PRINCIPAL_OWNED_API_KEYS_ASC + ALLOW_PRINCIPAL_OWNED_API_KEYS_DESC CREATED_AT_ASC CREATED_AT_DESC - DESCRIPTION_ASC - DESCRIPTION_DESC + CREATED_BY_ASC + CREATED_BY_DESC + CREATED_BY_PRINCIPAL_ASC + CREATED_BY_PRINCIPAL_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 ID_ASC ID_DESC - IS_DEFAULT_ASC - IS_DEFAULT_DESC - IS_SYSTEM_ASC - IS_SYSTEM_DESC - NAME_ASC - NAME_DESC + INVITE_PROFILE_ASSIGNMENT_MODE_ASC + INVITE_PROFILE_ASSIGNMENT_MODE_DESC + LIMIT_ALLOCATION_MODE_ASC + LIMIT_ALLOCATION_MODE_DESC NATURAL + POPULATE_MEMBER_EMAIL_ASC + POPULATE_MEMBER_EMAIL_DESC PRIMARY_KEY_ASC PRIMARY_KEY_DESC - SLUG_ASC - SLUG_DESC UPDATED_AT_ASC UPDATED_AT_DESC + UPDATED_BY_ASC + UPDATED_BY_DESC + UPDATED_BY_PRINCIPAL_ASC + UPDATED_BY_PRINCIPAL_DESC } """ -Represents an update to a `OrgProfile`. Fields that are set will be updated. +Represents an update to a `OrgMembershipSetting`. Fields that are set will be updated. """ -input OrgProfilePatch { +input OrgMembershipSettingPatch { """ - Pre-computed capability bitmask aggregating all capabilities in this profile + Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) """ - capabilities: BitString - createdAt: Datetime + allowExternalMembers: Boolean - """Human-readable description of this profile and its intended use""" - description: String + """ + Whether principals (agents, API-key identities) may mint API keys and child sessions for this org; requires auth_settings.allow_principal_delegation too + """ + allowPrincipalOwnedApiKeys: 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 + createdByPrincipal: UUID """ - Scopes this profile to a specific entity; NULL means it is a global profile + When a member is deleted, whether to cascade-remove their descendant-entity memberships """ + deleteMemberCascadeChildren: Boolean + + """References the entity these settings apply to""" entityId: UUID id: UUID """ - The default profile is automatically assigned to new members when they join + Controls how profile assignment on invites is validated: strict (capability + subset check), capability_only (capability only), or subset_only (subset check only) """ - isDefault: Boolean - - """System profiles are built-in and cannot be deleted or renamed by users""" - isSystem: Boolean + inviteProfileAssignmentMode: String - """Display name for this profile (e.g. Admin, Editor, Viewer)""" - name: 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 - """URL-safe identifier for this profile, used in API references""" - slug: 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 + updatedByPrincipal: UUID } -""" -Template profiles that are automatically seeded into new entities when created -""" -type OrgProfileTemplate { - """Pre-computed capability bitmask for the seeded profile""" - capabilities: BitString! +"""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 - """Human-readable description of this template profile""" - description: String + """The entity (org or group) this ownership grant applies to""" + entityId: UUID! + grantorId: UUID id: UUID! - """Whether the seeded profile should be the default for new members""" - isDefault: Boolean! - - """Display name for the template profile (e.g. Admin, Editor, Viewer)""" - name: String! - - """URL-safe identifier for the template profile""" - slug: String! + """True to grant ownership, false to revoke ownership""" + isGrant: Boolean! updatedAt: Datetime } -"""A connection to a list of `OrgProfileTemplate` values.""" -type OrgProfileTemplateConnection { +"""A connection to a list of `OrgOwnerGrant` values.""" +type OrgOwnerGrantConnection { """ - A list of edges which contains the `OrgProfileTemplate` and cursor to aid in pagination. + A list of edges which contains the `OrgOwnerGrant` and cursor to aid in pagination. """ - edges: [OrgProfileTemplateEdge]! + edges: [OrgOwnerGrantEdge]! - """A list of `OrgProfileTemplate` objects.""" - nodes: [OrgProfileTemplate]! + """A list of `OrgOwnerGrant` objects.""" + nodes: [OrgOwnerGrant]! """Information to aid in pagination.""" pageInfo: PageInfo! - """ - The count of *all* `OrgProfileTemplate` you could get from the connection. - """ + """The count of *all* `OrgOwnerGrant` you could get from the connection.""" totalCount: Int! } -"""A `OrgProfileTemplate` edge in the connection.""" -type OrgProfileTemplateEdge { +"""A `OrgOwnerGrant` edge in the connection.""" +type OrgOwnerGrantEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `OrgProfileTemplate` at the end of the edge.""" - node: OrgProfileTemplate + """The `OrgOwnerGrant` at the end of the edge.""" + node: OrgOwnerGrant } """ -A filter to be used against `OrgProfileTemplate` 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 OrgProfileTemplateFilter { - """Checks for all expressions in this list.""" - and: [OrgProfileTemplateFilter!] +input OrgOwnerGrantFilter { + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter - """Filter by the object’s `capabilities` field.""" - capabilities: BitStringFilter + """Checks for all expressions in this list.""" + and: [OrgOwnerGrantFilter!] """Filter by the object’s `createdAt` field.""" createdAt: DatetimeFilter - """Filter by the object’s `description` field.""" - description: StringFilter + """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 `isDefault` field.""" - isDefault: BooleanFilter - - """Filter by the object’s `name` field.""" - name: StringFilter + """Filter by the object’s `isGrant` field.""" + isGrant: BooleanFilter """Negates the expression.""" - not: OrgProfileTemplateFilter + not: OrgOwnerGrantFilter """Checks for any expressions in this list.""" - or: [OrgProfileTemplateFilter!] - - """Filter by the object’s `slug` field.""" - slug: StringFilter + or: [OrgOwnerGrantFilter!] """Filter by the object’s `updatedAt` field.""" updatedAt: DatetimeFilter } -"""An input for mutations affecting `OrgProfileTemplate`""" -input OrgProfileTemplateInput { - """Pre-computed capability bitmask for the seeded profile""" - capabilities: BitString +"""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 - """Human-readable description of this template profile""" - description: String + """The entity (org or group) this ownership grant applies to""" + entityId: UUID! + grantorId: UUID id: UUID - """Whether the seeded profile should be the default for new members""" - isDefault: Boolean - - """Display name for the template profile (e.g. Admin, Editor, Viewer)""" - name: String! - - """URL-safe identifier for the template profile""" - slug: String! + """True to grant ownership, false to revoke ownership""" + isGrant: Boolean updatedAt: Datetime } -"""Methods to use when ordering `OrgProfileTemplate`.""" -enum OrgProfileTemplateOrderBy { - CAPABILITIES_ASC - CAPABILITIES_DESC +"""Methods to use when ordering `OrgOwnerGrant`.""" +enum OrgOwnerGrantOrderBy { + ACTOR_ID_ASC + ACTOR_ID_DESC CREATED_AT_ASC CREATED_AT_DESC - DESCRIPTION_ASC - DESCRIPTION_DESC + ENTITY_ID_ASC + ENTITY_ID_DESC + GRANTOR_ID_ASC + GRANTOR_ID_DESC ID_ASC - ID_DESC - IS_DEFAULT_ASC - IS_DEFAULT_DESC - NAME_ASC - NAME_DESC - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - SLUG_ASC - SLUG_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC -} - -""" -Represents an update to a `OrgProfileTemplate`. Fields that are set will be updated. -""" -input OrgProfileTemplatePatch { - """Pre-computed capability bitmask for the seeded profile""" - capabilities: BitString - createdAt: Datetime - - """Human-readable description of this template profile""" - description: String - id: UUID - - """Whether the seeded profile should be the default for new members""" - isDefault: Boolean - - """Display name for the template profile (e.g. Admin, Editor, Viewer)""" - name: String - - """URL-safe identifier for the template profile""" - slug: String - updatedAt: Datetime -} - -""" -A filter to be used against many `OrgInvite` object types. All fields are combined with a logical ‘and.’ -""" -input OrgProfileToManyOrgInviteFilter { - """Filters to entities where every related entity matches.""" - every: OrgInviteFilter - - """Filters to entities where no related entity matches.""" - none: OrgInviteFilter - - """Filters to entities where at least one related entity matches.""" - some: OrgInviteFilter -} - -""" -A filter to be used against many `OrgMembership` object types. All fields are combined with a logical ‘and.’ -""" -input OrgProfileToManyOrgMembershipFilter { - """Filters to entities where every related entity matches.""" - every: OrgMembershipFilter - - """Filters to entities where no related entity matches.""" - none: OrgMembershipFilter - - """Filters to entities where at least one related entity matches.""" - some: OrgMembershipFilter -} - -""" -A filter to be used against many `OrgMembershipProfile` object types. All fields are combined with a logical ‘and.’ -""" -input OrgProfileToManyOrgMembershipProfileFilter { - """Filters to entities where every related entity matches.""" - every: OrgMembershipProfileFilter - - """Filters to entities where no related entity matches.""" - none: OrgMembershipProfileFilter - - """Filters to entities where at least one related entity matches.""" - some: OrgMembershipProfileFilter -} - -""" -A filter to be used against many `OrgProfileCapability` object types. All fields are combined with a logical ‘and.’ -""" -input OrgProfileToManyOrgProfileCapabilityFilter { - """Filters to entities where every related entity matches.""" - every: OrgProfileCapabilityFilter - - """Filters to entities where no related entity matches.""" - none: OrgProfileCapabilityFilter - - """Filters to entities where at least one related entity matches.""" - some: OrgProfileCapabilityFilter -} - -""" -A filter to be used against many `OrgProfileDefinitionGrant` object types. All fields are combined with a logical ‘and.’ -""" -input OrgProfileToManyOrgProfileDefinitionGrantFilter { - """Filters to entities where every related entity matches.""" - every: OrgProfileDefinitionGrantFilter - - """Filters to entities where no related entity matches.""" - none: OrgProfileDefinitionGrantFilter - - """Filters to entities where at least one related entity matches.""" - some: OrgProfileDefinitionGrantFilter + ID_DESC + IS_GRANT_ASC + IS_GRANT_DESC + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC } """ -A filter to be used against many `OrgProfileGrant` object types. All fields are combined with a logical ‘and.’ +Represents an update to a `OrgOwnerGrant`. Fields that are set will be updated. """ -input OrgProfileToManyOrgProfileGrantFilter { - """Filters to entities where every related entity matches.""" - every: OrgProfileGrantFilter +input OrgOwnerGrantPatch { + """ + The member receiving or losing the ownership grant; NULL if user was deleted + """ + actorId: UUID + createdAt: Datetime - """Filters to entities where no related entity matches.""" - none: OrgProfileGrantFilter + """The entity (org or group) this ownership grant applies to""" + entityId: UUID + grantorId: UUID + id: UUID - """Filters to entities where at least one related entity matches.""" - some: OrgProfileGrantFilter + """True to grant ownership, false to revoke ownership""" + isGrant: Boolean + updatedAt: Datetime } """Information about pagination in a connection.""" @@ -12289,23 +7274,17 @@ input ProvisionBucketInput { } type 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 - - """Error message if provisioning failed""" - error: String + """The logical bucket row that was queued for reconciliation.""" + bucketId: UUID! + bucketKey: String! - """The storage provider used""" - provider: String! + """The reconciler job enqueued to provision this bucket.""" + jobId: UUID! - """Whether provisioning succeeded""" - success: Boolean! + """ + The physical bucket name already recorded, or null when reconciliation has not completed. + """ + physicalName: String } """The root query type which gives access points into the data universe.""" @@ -12344,54 +7323,6 @@ type Query { where: AppAdminGrantFilter ): AppAdminGrantConnection - """Reads and enables pagination through a set of `AppCapability`.""" - appCapabilities( - """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 `AppCapability`.""" - orderBy: [AppCapabilityOrderBy!] = [PRIMARY_KEY_ASC] - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: AppCapabilityFilter - ): AppCapabilityConnection - - """Reads and enables pagination through a set of `AppCapability`.""" - appCapabilitiesGetByMask( - """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 - ): AppCapabilityConnection - appCapabilitiesGetMask(ids: [UUID]): BitString - appCapabilitiesGetMaskByNames(names: [String]): BitString - appCapabilitiesGetPaddedMask(mask: BitString): BitString - """ Reads and enables pagination through a set of `AppCapabilityDefaultCapability`. """ @@ -12423,213 +7354,10 @@ type Query { where: AppCapabilityDefaultCapabilityFilter ): AppCapabilityDefaultCapabilityConnection - """ - Reads and enables pagination through a set of `AppCapabilityDefaultGrant`. - """ - appCapabilityDefaultGrants( - """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 `AppCapabilityDefaultGrant`.""" - orderBy: [AppCapabilityDefaultGrantOrderBy!] = [PRIMARY_KEY_ASC] - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: AppCapabilityDefaultGrantFilter - ): AppCapabilityDefaultGrantConnection - - """Reads and enables pagination through a set of `AppCapabilityDefault`.""" - appCapabilityDefaults( - """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 `AppCapabilityDefault`.""" - orderBy: [AppCapabilityDefaultOrderBy!] = [PRIMARY_KEY_ASC] - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: AppCapabilityDefaultFilter - ): AppCapabilityDefaultConnection - - """Reads and enables pagination through a set of `AppClaimedInvite`.""" - appClaimedInvites( - """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 `AppClaimedInvite`.""" - orderBy: [AppClaimedInviteOrderBy!] = [PRIMARY_KEY_ASC] - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: AppClaimedInviteFilter - ): AppClaimedInviteConnection - - """Reads and enables pagination through a set of `AppGrant`.""" - appGrants( - """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 `AppGrant`.""" - orderBy: [AppGrantOrderBy!] = [PRIMARY_KEY_ASC] - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: AppGrantFilter - ): AppGrantConnection - - """Reads and enables pagination through a set of `AppInvite`.""" - appInvites( - """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 `AppInvite`.""" - orderBy: [AppInviteOrderBy!] = [PRIMARY_KEY_ASC] - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: AppInviteFilter - ): AppInviteConnection - - """Reads and enables pagination through a set of `AppMembershipDefault`.""" - appMembershipDefaults( - """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 `AppMembershipDefault`.""" - orderBy: [AppMembershipDefaultOrderBy!] = [PRIMARY_KEY_ASC] - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: AppMembershipDefaultFilter - ): AppMembershipDefaultConnection - - """Reads and enables pagination through a set of `AppMembershipProfile`.""" - appMembershipProfiles( - """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 `AppMembershipProfile`.""" - orderBy: [AppMembershipProfileOrderBy!] = [PRIMARY_KEY_ASC] - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: AppMembershipProfileFilter - ): AppMembershipProfileConnection - - """Reads and enables pagination through a set of `AppMembership`.""" - appMemberships( + """ + Reads and enables pagination through a set of `AppCapabilityDefaultGrant`. + """ + appCapabilityDefaultGrants( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -12648,17 +7376,17 @@ type Query { """ offset: Int - """The method to use when ordering `AppMembership`.""" - orderBy: [AppMembershipOrderBy!] = [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: AppMembershipFilter - ): AppMembershipConnection + where: AppCapabilityDefaultGrantFilter + ): AppCapabilityDefaultGrantConnection - """Reads and enables pagination through a set of `AppOwnerGrant`.""" - appOwnerGrants( + """Reads and enables pagination through a set of `AppClaimedInvite`.""" + appClaimedInvites( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -12677,17 +7405,17 @@ type Query { """ offset: Int - """The method to use when ordering `AppOwnerGrant`.""" - orderBy: [AppOwnerGrantOrderBy!] = [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: AppOwnerGrantFilter - ): AppOwnerGrantConnection + where: AppClaimedInviteFilter + ): AppClaimedInviteConnection - """Reads and enables pagination through a set of `AppProfileCapability`.""" - appProfileCapabilities( + """Reads and enables pagination through a set of `AppGrant`.""" + appGrants( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -12706,19 +7434,17 @@ type Query { """ offset: Int - """The method to use when ordering `AppProfileCapability`.""" - orderBy: [AppProfileCapabilityOrderBy!] = [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: AppProfileCapabilityFilter - ): AppProfileCapabilityConnection + where: AppGrantFilter + ): AppGrantConnection - """ - Reads and enables pagination through a set of `AppProfileDefinitionGrant`. - """ - appProfileDefinitionGrants( + """Reads and enables pagination through a set of `AppInvite`.""" + appInvites( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -12737,17 +7463,17 @@ type Query { """ offset: Int - """The method to use when ordering `AppProfileDefinitionGrant`.""" - orderBy: [AppProfileDefinitionGrantOrderBy!] = [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: AppProfileDefinitionGrantFilter - ): AppProfileDefinitionGrantConnection + where: AppInviteFilter + ): AppInviteConnection - """Reads and enables pagination through a set of `AppProfileGrant`.""" - appProfileGrants( + """Reads and enables pagination through a set of `AppMembershipDefault`.""" + appMembershipDefaults( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -12766,17 +7492,17 @@ type Query { """ offset: Int - """The method to use when ordering `AppProfileGrant`.""" - orderBy: [AppProfileGrantOrderBy!] = [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: AppProfileGrantFilter - ): AppProfileGrantConnection + where: AppMembershipDefaultFilter + ): AppMembershipDefaultConnection - """Reads and enables pagination through a set of `AppProfileTemplate`.""" - appProfileTemplates( + """Reads and enables pagination through a set of `AppMembership`.""" + appMemberships( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -12795,17 +7521,17 @@ type Query { """ offset: Int - """The method to use when ordering `AppProfileTemplate`.""" - orderBy: [AppProfileTemplateOrderBy!] = [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: AppProfileTemplateFilter - ): AppProfileTemplateConnection + where: AppMembershipFilter + ): AppMembershipConnection - """Reads and enables pagination through a set of `AppProfile`.""" - appProfiles( + """Reads and enables pagination through a set of `AppOwnerGrant`.""" + appOwnerGrants( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -12824,14 +7550,15 @@ type Query { """ offset: Int - """The method to use when ordering `AppProfile`.""" - orderBy: [AppProfileOrderBy!] = [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: AppProfileFilter - ): AppProfileConnection + where: AppOwnerGrantFilter + ): AppOwnerGrantConnection + getOrganizationId(entityId: UUID, entityType: String): UUID """Reads and enables pagination through a set of `MembershipType`.""" membershipTypes( @@ -12891,54 +7618,6 @@ type Query { where: OrgAdminGrantFilter ): OrgAdminGrantConnection - """Reads and enables pagination through a set of `OrgCapability`.""" - orgCapabilities( - """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 `OrgCapability`.""" - orderBy: [OrgCapabilityOrderBy!] = [PRIMARY_KEY_ASC] - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: OrgCapabilityFilter - ): OrgCapabilityConnection - - """Reads and enables pagination through a set of `OrgCapability`.""" - orgCapabilitiesGetByMask( - """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 - ): OrgCapabilityConnection - orgCapabilitiesGetMask(ids: [UUID]): BitString - orgCapabilitiesGetMaskByNames(names: [String]): BitString - orgCapabilitiesGetPaddedMask(mask: BitString): BitString - """ Reads and enables pagination through a set of `OrgCapabilityDefaultCapability`. """ @@ -13001,35 +7680,6 @@ type Query { where: OrgCapabilityDefaultGrantFilter ): OrgCapabilityDefaultGrantConnection - """Reads and enables pagination through a set of `OrgCapabilityDefault`.""" - orgCapabilityDefaults( - """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 `OrgCapabilityDefault`.""" - orderBy: [OrgCapabilityDefaultOrderBy!] = [PRIMARY_KEY_ASC] - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: OrgCapabilityDefaultFilter - ): OrgCapabilityDefaultConnection - """Reads and enables pagination through a set of `OrgChartEdgeGrant`.""" orgChartEdgeGrants( """Read all values in the set after (below) this cursor.""" @@ -13301,35 +7951,6 @@ type Query { where: OrgMembershipDefaultFilter ): OrgMembershipDefaultConnection - """Reads and enables pagination through a set of `OrgMembershipProfile`.""" - orgMembershipProfiles( - """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 `OrgMembershipProfile`.""" - orderBy: [OrgMembershipProfileOrderBy!] = [PRIMARY_KEY_ASC] - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: OrgMembershipProfileFilter - ): OrgMembershipProfileConnection - """Reads and enables pagination through a set of `OrgMembershipSetting`.""" orgMembershipSettings( """Read all values in the set after (below) this cursor.""" @@ -13416,153 +8037,6 @@ type Query { """ where: OrgOwnerGrantFilter ): OrgOwnerGrantConnection - - """Reads and enables pagination through a set of `OrgProfileCapability`.""" - orgProfileCapabilities( - """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 `OrgProfileCapability`.""" - orderBy: [OrgProfileCapabilityOrderBy!] = [PRIMARY_KEY_ASC] - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: OrgProfileCapabilityFilter - ): OrgProfileCapabilityConnection - - """ - Reads and enables pagination through a set of `OrgProfileDefinitionGrant`. - """ - orgProfileDefinitionGrants( - """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 `OrgProfileDefinitionGrant`.""" - orderBy: [OrgProfileDefinitionGrantOrderBy!] = [PRIMARY_KEY_ASC] - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: OrgProfileDefinitionGrantFilter - ): OrgProfileDefinitionGrantConnection - - """Reads and enables pagination through a set of `OrgProfileGrant`.""" - orgProfileGrants( - """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 `OrgProfileGrant`.""" - orderBy: [OrgProfileGrantOrderBy!] = [PRIMARY_KEY_ASC] - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: OrgProfileGrantFilter - ): OrgProfileGrantConnection - - """Reads and enables pagination through a set of `OrgProfileTemplate`.""" - orgProfileTemplates( - """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 `OrgProfileTemplate`.""" - orderBy: [OrgProfileTemplateOrderBy!] = [PRIMARY_KEY_ASC] - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: OrgProfileTemplateFilter - ): OrgProfileTemplateConnection - - """Reads and enables pagination through a set of `OrgProfile`.""" - orgProfiles( - """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 `OrgProfile`.""" - orderBy: [OrgProfileOrderBy!] = [PRIMARY_KEY_ASC] - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: OrgProfileFilter - ): OrgProfileConnection } """ @@ -13912,82 +8386,6 @@ type UpdateAppCapabilityDefaultGrantPayload { query: Query } -"""All input for the `updateAppCapabilityDefault` mutation.""" -input UpdateAppCapabilityDefaultInput { - """ - An object where the defined keys will be set on the `AppCapabilityDefault` being updated. - """ - appCapabilityDefaultPatch: AppCapabilityDefaultPatch! - - """ - An arbitrary 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 `AppCapabilityDefault` mutation.""" -type UpdateAppCapabilityDefaultPayload { - """The `AppCapabilityDefault` that was updated by this mutation.""" - appCapabilityDefault: AppCapabilityDefault - - """An edge for our `AppCapabilityDefault`. May be used by Relay 1.""" - appCapabilityDefaultEdge( - """The method to use when ordering `AppCapabilityDefault`.""" - orderBy: [AppCapabilityDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppCapabilityDefaultEdge - - """ - The 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 `updateAppCapability` mutation.""" -input UpdateAppCapabilityInput { - """ - An object where the defined keys will be set on the `AppCapability` being updated. - """ - appCapabilityPatch: AppCapabilityPatch! - - """ - An arbitrary 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 `AppCapability` mutation.""" -type UpdateAppCapabilityPayload { - """The `AppCapability` that was updated by this mutation.""" - appCapability: AppCapability - - """An edge for our `AppCapability`. May be used by Relay 1.""" - appCapabilityEdge( - """The method to use when ordering `AppCapability`.""" - orderBy: [AppCapabilityOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppCapabilityEdge - - """ - The 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 `updateAppClaimedInvite` mutation.""" input UpdateAppClaimedInviteInput { """ @@ -14047,238 +8445,10 @@ type UpdateAppGrantPayload { appGrant: AppGrant """An edge for our `AppGrant`. May be used by Relay 1.""" - appGrantEdge( - """The method to use when ordering `AppGrant`.""" - orderBy: [AppGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppGrantEdge - - """ - The 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 `updateAppInvite` mutation.""" -input UpdateAppInviteInput { - """ - An object where the defined keys will be set on the `AppInvite` being updated. - """ - appInvitePatch: AppInvitePatch! - - """ - An arbitrary 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 `AppInvite` mutation.""" -type UpdateAppInvitePayload { - """The `AppInvite` that was updated by this mutation.""" - appInvite: AppInvite - - """An edge for our `AppInvite`. May be used by Relay 1.""" - appInviteEdge( - """The method to use when ordering `AppInvite`.""" - orderBy: [AppInviteOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppInviteEdge - - """ - The 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 `updateAppMembershipDefault` mutation.""" -input UpdateAppMembershipDefaultInput { - """ - An object where the defined keys will be set on the `AppMembershipDefault` being updated. - """ - appMembershipDefaultPatch: AppMembershipDefaultPatch! - - """ - An arbitrary 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 `AppMembershipDefault` mutation.""" -type UpdateAppMembershipDefaultPayload { - """The `AppMembershipDefault` that was updated by this mutation.""" - appMembershipDefault: AppMembershipDefault - - """An edge for our `AppMembershipDefault`. May be used by Relay 1.""" - appMembershipDefaultEdge( - """The method to use when ordering `AppMembershipDefault`.""" - orderBy: [AppMembershipDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppMembershipDefaultEdge - - """ - The 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 `updateAppMembership` mutation.""" -input UpdateAppMembershipInput { - """ - An object where the defined keys will be set on the `AppMembership` being updated. - """ - appMembershipPatch: AppMembershipPatch! - - """ - An arbitrary 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 `AppMembership` mutation.""" -type UpdateAppMembershipPayload { - """The `AppMembership` that was updated by this mutation.""" - appMembership: AppMembership - - """An edge for our `AppMembership`. May be used by Relay 1.""" - appMembershipEdge( - """The method to use when ordering `AppMembership`.""" - orderBy: [AppMembershipOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppMembershipEdge - - """ - The 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 `updateAppMembershipProfile` mutation.""" -input UpdateAppMembershipProfileInput { - """ - An object where the defined keys will be set on the `AppMembershipProfile` being updated. - """ - appMembershipProfilePatch: AppMembershipProfilePatch! - - """ - An arbitrary 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 `AppMembershipProfile` mutation.""" -type UpdateAppMembershipProfilePayload { - """The `AppMembershipProfile` that was updated by this mutation.""" - appMembershipProfile: AppMembershipProfile - - """An edge for our `AppMembershipProfile`. May be used by Relay 1.""" - appMembershipProfileEdge( - """The method to use when ordering `AppMembershipProfile`.""" - orderBy: [AppMembershipProfileOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppMembershipProfileEdge - - """ - The 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 `updateAppOwnerGrant` mutation.""" -input UpdateAppOwnerGrantInput { - """ - An object where the defined keys will be set on the `AppOwnerGrant` being updated. - """ - appOwnerGrantPatch: AppOwnerGrantPatch! - - """ - An arbitrary 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 `AppOwnerGrant` mutation.""" -type UpdateAppOwnerGrantPayload { - """The `AppOwnerGrant` that was updated by this mutation.""" - appOwnerGrant: AppOwnerGrant - - """An edge for our `AppOwnerGrant`. May be used by Relay 1.""" - appOwnerGrantEdge( - """The method to use when ordering `AppOwnerGrant`.""" - orderBy: [AppOwnerGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppOwnerGrantEdge - - """ - The 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 `updateAppProfileCapability` mutation.""" -input UpdateAppProfileCapabilityInput { - """ - An object where the defined keys will be set on the `AppProfileCapability` being updated. - """ - appProfileCapabilityPatch: AppProfileCapabilityPatch! - - """ - An arbitrary 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 `AppProfileCapability` mutation.""" -type UpdateAppProfileCapabilityPayload { - """The `AppProfileCapability` that was updated by this mutation.""" - appProfileCapability: AppProfileCapability - - """An edge for our `AppProfileCapability`. May be used by Relay 1.""" - appProfileCapabilityEdge( - """The method to use when ordering `AppProfileCapability`.""" - orderBy: [AppProfileCapabilityOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppProfileCapabilityEdge + appGrantEdge( + """The method to use when ordering `AppGrant`.""" + orderBy: [AppGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppGrantEdge """ The exact same `clientMutationId` that was provided in the mutation input, @@ -14292,12 +8462,12 @@ type UpdateAppProfileCapabilityPayload { query: Query } -"""All input for the `updateAppProfileDefinitionGrant` mutation.""" -input UpdateAppProfileDefinitionGrantInput { +"""All input for the `updateAppInvite` mutation.""" +input UpdateAppInviteInput { """ - An object where the defined keys will be set on the `AppProfileDefinitionGrant` being updated. + An object where the defined keys will be set on the `AppInvite` being updated. """ - appProfileDefinitionGrantPatch: AppProfileDefinitionGrantPatch! + appInvitePatch: AppInvitePatch! """ An arbitrary string value with no semantic meaning. Will be included in the @@ -14307,16 +8477,16 @@ input UpdateAppProfileDefinitionGrantInput { id: UUID! } -"""The output of our update `AppProfileDefinitionGrant` mutation.""" -type UpdateAppProfileDefinitionGrantPayload { - """The `AppProfileDefinitionGrant` that was updated by this mutation.""" - appProfileDefinitionGrant: AppProfileDefinitionGrant +"""The output of our update `AppInvite` mutation.""" +type UpdateAppInvitePayload { + """The `AppInvite` that was updated by this mutation.""" + appInvite: AppInvite - """An edge for our `AppProfileDefinitionGrant`. May be used by Relay 1.""" - appProfileDefinitionGrantEdge( - """The method to use when ordering `AppProfileDefinitionGrant`.""" - orderBy: [AppProfileDefinitionGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppProfileDefinitionGrantEdge + """An edge for our `AppInvite`. May be used by Relay 1.""" + appInviteEdge( + """The method to use when ordering `AppInvite`.""" + orderBy: [AppInviteOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppInviteEdge """ The exact same `clientMutationId` that was provided in the mutation input, @@ -14330,12 +8500,12 @@ type UpdateAppProfileDefinitionGrantPayload { query: Query } -"""All input for the `updateAppProfileGrant` mutation.""" -input UpdateAppProfileGrantInput { +"""All input for the `updateAppMembershipDefault` mutation.""" +input UpdateAppMembershipDefaultInput { """ - An object where the defined keys will be set on the `AppProfileGrant` being updated. + An object where the defined keys will be set on the `AppMembershipDefault` being updated. """ - appProfileGrantPatch: AppProfileGrantPatch! + appMembershipDefaultPatch: AppMembershipDefaultPatch! """ An arbitrary string value with no semantic meaning. Will be included in the @@ -14345,16 +8515,16 @@ input UpdateAppProfileGrantInput { id: UUID! } -"""The output of our update `AppProfileGrant` mutation.""" -type UpdateAppProfileGrantPayload { - """The `AppProfileGrant` that was updated by this mutation.""" - appProfileGrant: AppProfileGrant +"""The output of our update `AppMembershipDefault` mutation.""" +type UpdateAppMembershipDefaultPayload { + """The `AppMembershipDefault` that was updated by this mutation.""" + appMembershipDefault: AppMembershipDefault - """An edge for our `AppProfileGrant`. May be used by Relay 1.""" - appProfileGrantEdge( - """The method to use when ordering `AppProfileGrant`.""" - orderBy: [AppProfileGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppProfileGrantEdge + """An edge for our `AppMembershipDefault`. May be used by Relay 1.""" + appMembershipDefaultEdge( + """The method to use when ordering `AppMembershipDefault`.""" + orderBy: [AppMembershipDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppMembershipDefaultEdge """ The exact same `clientMutationId` that was provided in the mutation input, @@ -14368,12 +8538,12 @@ type UpdateAppProfileGrantPayload { query: Query } -"""All input for the `updateAppProfile` mutation.""" -input UpdateAppProfileInput { +"""All input for the `updateAppMembership` mutation.""" +input UpdateAppMembershipInput { """ - An object where the defined keys will be set on the `AppProfile` being updated. + An object where the defined keys will be set on the `AppMembership` being updated. """ - appProfilePatch: AppProfilePatch! + appMembershipPatch: AppMembershipPatch! """ An arbitrary string value with no semantic meaning. Will be included in the @@ -14383,16 +8553,16 @@ input UpdateAppProfileInput { id: UUID! } -"""The output of our update `AppProfile` mutation.""" -type UpdateAppProfilePayload { - """The `AppProfile` that was updated by this mutation.""" - appProfile: AppProfile +"""The output of our update `AppMembership` mutation.""" +type UpdateAppMembershipPayload { + """The `AppMembership` that was updated by this mutation.""" + appMembership: AppMembership - """An edge for our `AppProfile`. May be used by Relay 1.""" - appProfileEdge( - """The method to use when ordering `AppProfile`.""" - orderBy: [AppProfileOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppProfileEdge + """An edge for our `AppMembership`. May be used by Relay 1.""" + appMembershipEdge( + """The method to use when ordering `AppMembership`.""" + orderBy: [AppMembershipOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppMembershipEdge """ The exact same `clientMutationId` that was provided in the mutation input, @@ -14406,12 +8576,12 @@ type UpdateAppProfilePayload { query: Query } -"""All input for the `updateAppProfileTemplate` mutation.""" -input UpdateAppProfileTemplateInput { +"""All input for the `updateAppOwnerGrant` mutation.""" +input UpdateAppOwnerGrantInput { """ - An object where the defined keys will be set on the `AppProfileTemplate` being updated. + An object where the defined keys will be set on the `AppOwnerGrant` being updated. """ - appProfileTemplatePatch: AppProfileTemplatePatch! + appOwnerGrantPatch: AppOwnerGrantPatch! """ An arbitrary string value with no semantic meaning. Will be included in the @@ -14421,16 +8591,16 @@ input UpdateAppProfileTemplateInput { id: UUID! } -"""The output of our update `AppProfileTemplate` mutation.""" -type UpdateAppProfileTemplatePayload { - """The `AppProfileTemplate` that was updated by this mutation.""" - appProfileTemplate: AppProfileTemplate +"""The output of our update `AppOwnerGrant` mutation.""" +type UpdateAppOwnerGrantPayload { + """The `AppOwnerGrant` that was updated by this mutation.""" + appOwnerGrant: AppOwnerGrant - """An edge for our `AppProfileTemplate`. May be used by Relay 1.""" - appProfileTemplateEdge( - """The method to use when ordering `AppProfileTemplate`.""" - orderBy: [AppProfileTemplateOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppProfileTemplateEdge + """An edge for our `AppOwnerGrant`. May be used by Relay 1.""" + appOwnerGrantEdge( + """The method to use when ordering `AppOwnerGrant`.""" + orderBy: [AppOwnerGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppOwnerGrantEdge """ The exact same `clientMutationId` that was provided in the mutation input, @@ -14604,82 +8774,6 @@ type UpdateOrgCapabilityDefaultGrantPayload { query: Query } -"""All input for the `updateOrgCapabilityDefault` mutation.""" -input UpdateOrgCapabilityDefaultInput { - """ - An arbitrary 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 `OrgCapabilityDefault` being updated. - """ - orgCapabilityDefaultPatch: OrgCapabilityDefaultPatch! -} - -"""The output of our update `OrgCapabilityDefault` mutation.""" -type UpdateOrgCapabilityDefaultPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgCapabilityDefault` that was updated by this mutation.""" - orgCapabilityDefault: OrgCapabilityDefault - - """An edge for our `OrgCapabilityDefault`. May be used by Relay 1.""" - orgCapabilityDefaultEdge( - """The method to use when ordering `OrgCapabilityDefault`.""" - orderBy: [OrgCapabilityDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgCapabilityDefaultEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the `updateOrgCapability` mutation.""" -input UpdateOrgCapabilityInput { - """ - An arbitrary 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 `OrgCapability` being updated. - """ - orgCapabilityPatch: OrgCapabilityPatch! -} - -"""The output of our update `OrgCapability` mutation.""" -type UpdateOrgCapabilityPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgCapability` that was updated by this mutation.""" - orgCapability: OrgCapability - - """An edge for our `OrgCapability`. May be used by Relay 1.""" - orgCapabilityEdge( - """The method to use when ordering `OrgCapability`.""" - orderBy: [OrgCapabilityOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgCapabilityEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - """All input for the `updateOrgChartEdgeGrant` mutation.""" input UpdateOrgChartEdgeGrantInput { """ @@ -15022,44 +9116,6 @@ type UpdateOrgMembershipPayload { query: Query } -"""All input for the `updateOrgMembershipProfile` mutation.""" -input UpdateOrgMembershipProfileInput { - """ - An arbitrary 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 `OrgMembershipProfile` being updated. - """ - orgMembershipProfilePatch: OrgMembershipProfilePatch! -} - -"""The output of our update `OrgMembershipProfile` mutation.""" -type UpdateOrgMembershipProfilePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgMembershipProfile` that was updated by this mutation.""" - orgMembershipProfile: OrgMembershipProfile - - """An edge for our `OrgMembershipProfile`. May be used by Relay 1.""" - orgMembershipProfileEdge( - """The method to use when ordering `OrgMembershipProfile`.""" - orderBy: [OrgMembershipProfileOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMembershipProfileEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - """All input for the `updateOrgMembershipSetting` mutation.""" input UpdateOrgMembershipSettingInput { """ @@ -15136,195 +9192,5 @@ type UpdateOrgOwnerGrantPayload { query: Query } -"""All input for the `updateOrgProfileCapability` mutation.""" -input UpdateOrgProfileCapabilityInput { - """ - An arbitrary 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 `OrgProfileCapability` being updated. - """ - orgProfileCapabilityPatch: OrgProfileCapabilityPatch! -} - -"""The output of our update `OrgProfileCapability` mutation.""" -type UpdateOrgProfileCapabilityPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgProfileCapability` that was updated by this mutation.""" - orgProfileCapability: OrgProfileCapability - - """An edge for our `OrgProfileCapability`. May be used by Relay 1.""" - orgProfileCapabilityEdge( - """The method to use when ordering `OrgProfileCapability`.""" - orderBy: [OrgProfileCapabilityOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgProfileCapabilityEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the `updateOrgProfileDefinitionGrant` mutation.""" -input UpdateOrgProfileDefinitionGrantInput { - """ - An arbitrary 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 `OrgProfileDefinitionGrant` being updated. - """ - orgProfileDefinitionGrantPatch: OrgProfileDefinitionGrantPatch! -} - -"""The output of our update `OrgProfileDefinitionGrant` mutation.""" -type UpdateOrgProfileDefinitionGrantPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgProfileDefinitionGrant` that was updated by this mutation.""" - orgProfileDefinitionGrant: OrgProfileDefinitionGrant - - """An edge for our `OrgProfileDefinitionGrant`. May be used by Relay 1.""" - orgProfileDefinitionGrantEdge( - """The method to use when ordering `OrgProfileDefinitionGrant`.""" - orderBy: [OrgProfileDefinitionGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgProfileDefinitionGrantEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the `updateOrgProfileGrant` mutation.""" -input UpdateOrgProfileGrantInput { - """ - An arbitrary 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 `OrgProfileGrant` being updated. - """ - orgProfileGrantPatch: OrgProfileGrantPatch! -} - -"""The output of our update `OrgProfileGrant` mutation.""" -type UpdateOrgProfileGrantPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgProfileGrant` that was updated by this mutation.""" - orgProfileGrant: OrgProfileGrant - - """An edge for our `OrgProfileGrant`. May be used by Relay 1.""" - orgProfileGrantEdge( - """The method to use when ordering `OrgProfileGrant`.""" - orderBy: [OrgProfileGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgProfileGrantEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the `updateOrgProfile` mutation.""" -input UpdateOrgProfileInput { - """ - An arbitrary 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 `OrgProfile` being updated. - """ - orgProfilePatch: OrgProfilePatch! -} - -"""The output of our update `OrgProfile` mutation.""" -type UpdateOrgProfilePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgProfile` that was updated by this mutation.""" - orgProfile: OrgProfile - - """An edge for our `OrgProfile`. May be used by Relay 1.""" - orgProfileEdge( - """The method to use when ordering `OrgProfile`.""" - orderBy: [OrgProfileOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgProfileEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the `updateOrgProfileTemplate` mutation.""" -input UpdateOrgProfileTemplateInput { - """ - An arbitrary 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 `OrgProfileTemplate` being updated. - """ - orgProfileTemplatePatch: OrgProfileTemplatePatch! -} - -"""The output of our update `OrgProfileTemplate` mutation.""" -type UpdateOrgProfileTemplatePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgProfileTemplate` that was updated by this mutation.""" - orgProfileTemplate: OrgProfileTemplate - - """An edge for our `OrgProfileTemplate`. May be used by Relay 1.""" - orgProfileTemplateEdge( - """The method to use when ordering `OrgProfileTemplate`.""" - orderBy: [OrgProfileTemplateOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgProfileTemplateEdge - - """ - 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/agent.graphql b/sdk/constructive-sdk/schemas/agent.graphql index db2a4d613f..d40523946f 100644 --- a/sdk/constructive-sdk/schemas/agent.graphql +++ b/sdk/constructive-sdk/schemas/agent.graphql @@ -282,6 +282,11 @@ type AgentMessage { databaseId: UUID! id: UUID! + """ + Turn kind: user, assistant, system, or interrupt (arrived mid-run and redirects it) + """ + kind: String! + """LLM model that generated this response""" model: String @@ -294,6 +299,9 @@ type AgentMessage { """Foreign key to agent_thread""" threadId: UUID! updatedAt: Datetime + + """Who may read this message, inherited from the thread""" + visibility: String! } """A connection to a list of `AgentMessage` values.""" @@ -353,6 +361,9 @@ input AgentMessageFilter { """Filter by the object’s `id` field.""" id: UUIDFilter + """Filter by the object’s `kind` field.""" + kind: StringFilter + """Filter by the object’s `model` field.""" model: StringFilter @@ -373,6 +384,9 @@ input AgentMessageFilter { """Filter by the object’s `updatedAt` field.""" updatedAt: DatetimeFilter + + """Filter by the object’s `visibility` field.""" + visibility: StringFilter } """An input for mutations affecting `AgentMessage`""" @@ -391,6 +405,11 @@ input AgentMessageInput { databaseId: UUID! id: UUID + """ + Turn kind: user, assistant, system, or interrupt (arrived mid-run and redirects it) + """ + kind: String + """LLM model that generated this response""" model: String @@ -400,6 +419,9 @@ input AgentMessageInput { """Foreign key to agent_thread""" threadId: UUID! updatedAt: Datetime + + """Who may read this message, inherited from the thread""" + visibility: String } """Methods to use when ordering `AgentMessage`.""" @@ -416,6 +438,8 @@ enum AgentMessageOrderBy { DATABASE_ID_DESC ID_ASC ID_DESC + KIND_ASC + KIND_DESC MODEL_ASC MODEL_DESC NATURAL @@ -427,6 +451,8 @@ enum AgentMessageOrderBy { THREAD_ID_DESC UPDATED_AT_ASC UPDATED_AT_DESC + VISIBILITY_ASC + VISIBILITY_DESC } """ @@ -447,6 +473,11 @@ input AgentMessagePatch { databaseId: UUID id: UUID + """ + Turn kind: user, assistant, system, or interrupt (arrived mid-run and redirects it) + """ + kind: String + """LLM model that generated this response""" model: String @@ -456,6 +487,9 @@ input AgentMessagePatch { """Foreign key to agent_thread""" threadId: UUID updatedAt: Datetime + + """Who may read this message, inherited from the thread""" + visibility: String } """Methods to use when ordering `Agent`.""" @@ -561,6 +595,7 @@ type AgentPersona { config: JSON createdAt: Datetime createdBy: UUID + createdByPrincipal: UUID """Database that owns this resource (database-scoped isolation)""" databaseId: UUID! @@ -585,6 +620,7 @@ type AgentPersona { systemPrompt: String updatedAt: Datetime updatedBy: UUID + updatedByPrincipal: UUID } """A connection to a list of `AgentPersona` values.""" @@ -635,6 +671,9 @@ input AgentPersonaFilter { """Filter by the object’s `createdBy` field.""" createdBy: UUIDFilter + """Filter by the object’s `createdByPrincipal` field.""" + createdByPrincipal: UUIDFilter + """Filter by the object’s `databaseId` field.""" databaseId: UUIDFilter @@ -670,6 +709,9 @@ input AgentPersonaFilter { """Filter by the object’s `updatedBy` field.""" updatedBy: UUIDFilter + + """Filter by the object’s `updatedByPrincipal` field.""" + updatedByPrincipal: UUIDFilter } """An input for mutations affecting `AgentPersona`""" @@ -678,6 +720,7 @@ input AgentPersonaInput { config: JSON createdAt: Datetime createdBy: UUID + createdByPrincipal: UUID """Database that owns this resource (database-scoped isolation)""" databaseId: UUID! @@ -702,6 +745,7 @@ input AgentPersonaInput { systemPrompt: String updatedAt: Datetime updatedBy: UUID + updatedByPrincipal: UUID } """Methods to use when ordering `AgentPersona`.""" @@ -712,6 +756,8 @@ enum AgentPersonaOrderBy { CREATED_AT_DESC CREATED_BY_ASC CREATED_BY_DESC + CREATED_BY_PRINCIPAL_ASC + CREATED_BY_PRINCIPAL_DESC DATABASE_ID_ASC DATABASE_ID_DESC DESCRIPTION_ASC @@ -735,6 +781,8 @@ enum AgentPersonaOrderBy { UPDATED_AT_DESC UPDATED_BY_ASC UPDATED_BY_DESC + UPDATED_BY_PRINCIPAL_ASC + UPDATED_BY_PRINCIPAL_DESC } """ @@ -745,6 +793,7 @@ input AgentPersonaPatch { config: JSON createdAt: Datetime createdBy: UUID + createdByPrincipal: UUID """Database that owns this resource (database-scoped isolation)""" databaseId: UUID @@ -769,6 +818,7 @@ input AgentPersonaPatch { systemPrompt: String updatedAt: Datetime updatedBy: UUID + updatedByPrincipal: UUID } """ @@ -841,6 +891,9 @@ type AgentPlan { """Human-readable plan name""" title: String! updatedAt: Datetime + + """Who may read this plan, inherited from the thread""" + visibility: String! } """A connection to a list of `AgentPlan` values.""" @@ -917,6 +970,9 @@ input AgentPlanFilter { """Filter by the object’s `updatedAt` field.""" updatedAt: DatetimeFilter + + """Filter by the object’s `visibility` field.""" + visibility: StringFilter } """An input for mutations affecting `AgentPlan`""" @@ -942,6 +998,9 @@ input AgentPlanInput { """Human-readable plan name""" title: String! updatedAt: Datetime + + """Who may read this plan, inherited from the thread""" + visibility: String } """Methods to use when ordering `AgentPlan`.""" @@ -967,6 +1026,8 @@ enum AgentPlanOrderBy { TITLE_DESC UPDATED_AT_ASC UPDATED_AT_DESC + VISIBILITY_ASC + VISIBILITY_DESC } """ @@ -994,6 +1055,9 @@ input AgentPlanPatch { """Human-readable plan name""" title: String updatedAt: Datetime + + """Who may read this plan, inherited from the thread""" + visibility: String } """ @@ -1045,6 +1109,7 @@ type AgentPrompt { content: String! createdAt: Datetime createdBy: UUID + createdByPrincipal: UUID """Database that owns this resource (database-scoped isolation)""" databaseId: UUID! @@ -1063,6 +1128,7 @@ type AgentPrompt { name: String! updatedAt: Datetime updatedBy: UUID + updatedByPrincipal: UUID } """A connection to a list of `AgentPrompt` values.""" @@ -1113,6 +1179,9 @@ input AgentPromptFilter { """Filter by the object’s `createdBy` field.""" createdBy: UUIDFilter + """Filter by the object’s `createdByPrincipal` field.""" + createdByPrincipal: UUIDFilter + """Filter by the object’s `databaseId` field.""" databaseId: UUIDFilter @@ -1142,6 +1211,9 @@ input AgentPromptFilter { """Filter by the object’s `updatedBy` field.""" updatedBy: UUIDFilter + + """Filter by the object’s `updatedByPrincipal` field.""" + updatedByPrincipal: UUIDFilter } """An input for mutations affecting `AgentPrompt`""" @@ -1150,6 +1222,7 @@ input AgentPromptInput { content: String! createdAt: Datetime createdBy: UUID + createdByPrincipal: UUID """Database that owns this resource (database-scoped isolation)""" databaseId: UUID! @@ -1168,6 +1241,7 @@ input AgentPromptInput { name: String! updatedAt: Datetime updatedBy: UUID + updatedByPrincipal: UUID } """Methods to use when ordering `AgentPrompt`.""" @@ -1178,6 +1252,8 @@ enum AgentPromptOrderBy { CREATED_AT_DESC CREATED_BY_ASC CREATED_BY_DESC + CREATED_BY_PRINCIPAL_ASC + CREATED_BY_PRINCIPAL_DESC DATABASE_ID_ASC DATABASE_ID_DESC DESCRIPTION_ASC @@ -1197,6 +1273,8 @@ enum AgentPromptOrderBy { UPDATED_AT_DESC UPDATED_BY_ASC UPDATED_BY_DESC + UPDATED_BY_PRINCIPAL_ASC + UPDATED_BY_PRINCIPAL_DESC } """ @@ -1207,6 +1285,7 @@ input AgentPromptPatch { content: String createdAt: Datetime createdBy: UUID + createdByPrincipal: UUID """Database that owns this resource (database-scoped isolation)""" databaseId: UUID @@ -1225,6 +1304,7 @@ input AgentPromptPatch { name: String updatedAt: Datetime updatedBy: UUID + updatedByPrincipal: UUID } """ @@ -1284,6 +1364,7 @@ type AgentResource { bodyTrgmSimilarity: Float createdAt: Datetime createdBy: UUID + createdByPrincipal: UUID """Database that owns this resource (database-scoped isolation)""" databaseId: UUID! @@ -1347,6 +1428,7 @@ type AgentResource { titleTrgmSimilarity: Float updatedAt: Datetime updatedBy: UUID + updatedByPrincipal: UUID } type AgentResourceChunk { @@ -1358,6 +1440,11 @@ type AgentResourceChunk { body: String! chunkIndex: Int! createdAt: Datetime + + """ + Policy-required field derived from source table (used by AuthzRelatedEntityMembership) + """ + databaseId: UUID embedding: Vector """ @@ -1424,6 +1511,9 @@ input AgentResourceChunkFilter { """Filter by the object’s `createdAt` field.""" createdAt: DatetimeFilter + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + """Filter by the object’s `embedding` field.""" embedding: VectorFilter @@ -1452,6 +1542,11 @@ input AgentResourceChunkInput { body: String! chunkIndex: Int createdAt: Datetime + + """ + Policy-required field derived from source table (used by AuthzRelatedEntityMembership) + """ + databaseId: UUID embedding: Vector """ @@ -1473,6 +1568,8 @@ enum AgentResourceChunkOrderBy { CHUNK_INDEX_DESC CREATED_AT_ASC CREATED_AT_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC EMBEDDING_ASC EMBEDDING_DESC EMBEDDING_VECTOR_DISTANCE_ASC @@ -1498,6 +1595,11 @@ input AgentResourceChunkPatch { body: String chunkIndex: Int createdAt: Datetime + + """ + Policy-required field derived from source table (used by AuthzRelatedEntityMembership) + """ + databaseId: UUID embedding: Vector """ @@ -1560,6 +1662,9 @@ input AgentResourceFilter { """Filter by the object’s `createdBy` field.""" createdBy: UUIDFilter + """Filter by the object’s `createdByPrincipal` field.""" + createdByPrincipal: UUIDFilter + """Filter by the object’s `databaseId` field.""" databaseId: UUIDFilter @@ -1635,6 +1740,9 @@ input AgentResourceFilter { """Filter by the object’s `updatedBy` field.""" updatedBy: UUIDFilter + """Filter by the object’s `updatedByPrincipal` field.""" + updatedByPrincipal: UUIDFilter + """VECTOR search on the `embedding` column.""" vectorEmbedding: VectorNearbyInput } @@ -1648,6 +1756,7 @@ input AgentResourceInput { body: String! createdAt: Datetime createdBy: UUID + createdByPrincipal: UUID """Database that owns this resource (database-scoped isolation)""" databaseId: UUID! @@ -1684,6 +1793,7 @@ input AgentResourceInput { title: String! updatedAt: Datetime updatedBy: UUID + updatedByPrincipal: UUID } """Methods to use when ordering `AgentResource`.""" @@ -1698,6 +1808,8 @@ enum AgentResourceOrderBy { CREATED_AT_DESC CREATED_BY_ASC CREATED_BY_DESC + CREATED_BY_PRINCIPAL_ASC + CREATED_BY_PRINCIPAL_DESC DATABASE_ID_ASC DATABASE_ID_DESC DESCRIPTION_ASC @@ -1743,6 +1855,8 @@ enum AgentResourceOrderBy { UPDATED_AT_DESC UPDATED_BY_ASC UPDATED_BY_DESC + UPDATED_BY_PRINCIPAL_ASC + UPDATED_BY_PRINCIPAL_DESC } """ @@ -1756,6 +1870,7 @@ input AgentResourcePatch { body: String createdAt: Datetime createdBy: UUID + createdByPrincipal: UUID """Database that owns this resource (database-scoped isolation)""" databaseId: UUID @@ -1792,6 +1907,7 @@ input AgentResourcePatch { title: String updatedAt: Datetime updatedBy: UUID + updatedByPrincipal: UUID } """ @@ -1856,6 +1972,9 @@ type AgentTask { """Current status of this task""" status: String! updatedAt: Datetime + + """Who may read this task, inherited from its parent""" + visibility: String! } """A connection to a list of `AgentTask` values.""" @@ -1947,6 +2066,9 @@ input AgentTaskFilter { """Filter by the object’s `updatedAt` field.""" updatedAt: DatetimeFilter + + """Filter by the object’s `visibility` field.""" + visibility: StringFilter } """An input for mutations affecting `AgentTask`""" @@ -1994,6 +2116,9 @@ input AgentTaskInput { """Current status of this task""" status: String updatedAt: Datetime + + """Who may read this task, inherited from its parent""" + visibility: String } """Methods to use when ordering `AgentTask`.""" @@ -2033,6 +2158,8 @@ enum AgentTaskOrderBy { STATUS_DESC UPDATED_AT_ASC UPDATED_AT_DESC + VISIBILITY_ASC + VISIBILITY_DESC } """ @@ -2082,6 +2209,9 @@ input AgentTaskPatch { """Current status of this task""" status: String updatedAt: Datetime + + """Who may read this task, inherited from its parent""" + visibility: String } """Top-level AI/LLM conversation thread""" @@ -2223,6 +2353,11 @@ type AgentThread { """Human-readable conversation title""" title: String updatedAt: Datetime + + """ + Who may read this thread: private (owner only) or entity (the scope's members) + """ + visibility: String! } """A connection to a list of `AgentThread` values.""" @@ -2347,6 +2482,9 @@ input AgentThreadFilter { """Filter by the object’s `updatedAt` field.""" updatedAt: DatetimeFilter + + """Filter by the object’s `visibility` field.""" + visibility: StringFilter } """An input for mutations affecting `AgentThread`""" @@ -2392,6 +2530,11 @@ input AgentThreadInput { """Human-readable conversation title""" title: String updatedAt: Datetime + + """ + Who may read this thread: private (owner only) or entity (the scope's members) + """ + visibility: String } """Methods to use when ordering `AgentThread`.""" @@ -2431,6 +2574,8 @@ enum AgentThreadOrderBy { TITLE_DESC UPDATED_AT_ASC UPDATED_AT_DESC + VISIBILITY_ASC + VISIBILITY_DESC } """ @@ -2478,6 +2623,11 @@ input AgentThreadPatch { """Human-readable conversation title""" title: String updatedAt: Datetime + + """ + Who may read this thread: private (owner only) or entity (the scope's members) + """ + visibility: String } """ @@ -2564,6 +2714,53 @@ input AgentToManyAgentThreadFilter { some: AgentThreadFilter } +""" +A floating point number that requires more precision than IEEE 754 binary 64 +""" +scalar BigFloat + +""" +A filter to be used against BigFloat fields. All fields are combined with a logical ‘and.’ +""" +input BigFloatFilter { + """ + Not equal to the specified value, treating null like an ordinary value. + """ + distinctFrom: BigFloat + + """Equal to the specified value.""" + equalTo: BigFloat + + """Greater than the specified value.""" + greaterThan: BigFloat + + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: BigFloat + + """Included in the specified list.""" + in: [BigFloat!] + + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean + + """Less than the specified value.""" + lessThan: BigFloat + + """Less than or equal to the specified value.""" + lessThanOrEqualTo: BigFloat + + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: BigFloat + + """Not equal to the specified value.""" + notEqualTo: BigFloat + + """Not included in the specified list.""" + notIn: [BigFloat!] +} + """ A filter to be used against Boolean fields. All fields are combined with a logical ‘and.’ """ @@ -2921,475 +3118,458 @@ type CreateAgentThreadPayload { query: Query } -"""A location in a connection that can be used for resuming pagination.""" -scalar Cursor - -""" -A point in time as described by the [ISO -8601](https://en.wikipedia.org/wiki/ISO_8601) and, if it has a timezone, [RFC -3339](https://datatracker.ietf.org/doc/html/rfc3339) standards. Input values -that do not conform to both ISO 8601 and RFC 3339 may be coerced, which may lead -to unexpected results. -""" -scalar Datetime - -""" -A filter to be used against Datetime fields. All fields are combined with a logical ‘and.’ -""" -input DatetimeFilter { +"""All input for the create `PlatformAgentEvent` mutation.""" +input CreatePlatformAgentEventInput { """ - Not equal to the specified value, treating null like an ordinary value. + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - distinctFrom: Datetime - - """Equal to the specified value.""" - equalTo: Datetime - - """Greater than the specified value.""" - greaterThan: Datetime - - """Greater than or equal to the specified value.""" - greaterThanOrEqualTo: Datetime + clientMutationId: String - """Included in the specified list.""" - in: [Datetime!] + """The `PlatformAgentEvent` to be created by this mutation.""" + platformAgentEvent: PlatformAgentEventInput! +} +"""The output of our create `PlatformAgentEvent` mutation.""" +type CreatePlatformAgentEventPayload { """ - Is null (if `true` is specified) or is not null (if `false` is specified). + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - isNull: Boolean - - """Less than the specified value.""" - lessThan: Datetime - - """Less than or equal to the specified value.""" - lessThanOrEqualTo: Datetime + clientMutationId: String - """Equal to the specified value, treating null like an ordinary value.""" - notDistinctFrom: Datetime + """The `PlatformAgentEvent` that was created by this mutation.""" + platformAgentEvent: PlatformAgentEvent - """Not equal to the specified value.""" - notEqualTo: Datetime + """An edge for our `PlatformAgentEvent`. May be used by Relay 1.""" + platformAgentEventEdge( + """The method to use when ordering `PlatformAgentEvent`.""" + orderBy: [PlatformAgentEventOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformAgentEventEdge - """Not included in the specified list.""" - notIn: [Datetime!] + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query } -"""All input for the `deleteAgent` mutation.""" -input DeleteAgentInput { +"""All input for the create `PlatformAgent` mutation.""" +input CreatePlatformAgentInput { """ An arbitrary 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 `PlatformAgent` to be created by this mutation.""" + platformAgent: PlatformAgentInput! } -"""All input for the `deleteAgentMessage` mutation.""" -input DeleteAgentMessageInput { +"""All input for the create `PlatformAgentMessage` mutation.""" +input CreatePlatformAgentMessageInput { """ An arbitrary 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 `AgentMessage` mutation.""" -type DeleteAgentMessagePayload { - """The `AgentMessage` that was deleted by this mutation.""" - agentMessage: AgentMessage - """An edge for our `AgentMessage`. May be used by Relay 1.""" - agentMessageEdge( - """The method to use when ordering `AgentMessage`.""" - orderBy: [AgentMessageOrderBy!]! = [PRIMARY_KEY_ASC] - ): AgentMessageEdge + """The `PlatformAgentMessage` to be created by this mutation.""" + platformAgentMessage: PlatformAgentMessageInput! +} +"""The output of our create `PlatformAgentMessage` mutation.""" +type CreatePlatformAgentMessagePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String + """The `PlatformAgentMessage` that was created by this mutation.""" + platformAgentMessage: PlatformAgentMessage + + """An edge for our `PlatformAgentMessage`. May be used by Relay 1.""" + platformAgentMessageEdge( + """The method to use when ordering `PlatformAgentMessage`.""" + orderBy: [PlatformAgentMessageOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformAgentMessageEdge + """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query } -"""The output of our delete `Agent` mutation.""" -type DeleteAgentPayload { - """The `Agent` that was deleted by this mutation.""" - agent: Agent - - """An edge for our `Agent`. May be used by Relay 1.""" - agentEdge( - """The method to use when ordering `Agent`.""" - orderBy: [AgentOrderBy!]! = [PRIMARY_KEY_ASC] - ): AgentEdge - +"""The output of our create `PlatformAgent` mutation.""" +type CreatePlatformAgentPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String + """The `PlatformAgent` that was created by this mutation.""" + platformAgent: PlatformAgent + + """An edge for our `PlatformAgent`. May be used by Relay 1.""" + platformAgentEdge( + """The method to use when ordering `PlatformAgent`.""" + orderBy: [PlatformAgentOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformAgentEdge + """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query } -"""All input for the `deleteAgentPersona` mutation.""" -input DeleteAgentPersonaInput { +"""All input for the create `PlatformAgentPersona` mutation.""" +input CreatePlatformAgentPersonaInput { """ An arbitrary 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 `AgentPersona` mutation.""" -type DeleteAgentPersonaPayload { - """The `AgentPersona` that was deleted by this mutation.""" - agentPersona: AgentPersona - """An edge for our `AgentPersona`. May be used by Relay 1.""" - agentPersonaEdge( - """The method to use when ordering `AgentPersona`.""" - orderBy: [AgentPersonaOrderBy!]! = [PRIMARY_KEY_ASC] - ): AgentPersonaEdge + """The `PlatformAgentPersona` to be created by this mutation.""" + platformAgentPersona: PlatformAgentPersonaInput! +} +"""The output of our create `PlatformAgentPersona` mutation.""" +type CreatePlatformAgentPersonaPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String + """The `PlatformAgentPersona` that was created by this mutation.""" + platformAgentPersona: PlatformAgentPersona + + """An edge for our `PlatformAgentPersona`. May be used by Relay 1.""" + platformAgentPersonaEdge( + """The method to use when ordering `PlatformAgentPersona`.""" + orderBy: [PlatformAgentPersonaOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformAgentPersonaEdge + """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query } -"""All input for the `deleteAgentPlan` mutation.""" -input DeleteAgentPlanInput { +"""All input for the create `PlatformAgentPlan` mutation.""" +input CreatePlatformAgentPlanInput { """ An arbitrary 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 `AgentPlan` mutation.""" -type DeleteAgentPlanPayload { - """The `AgentPlan` that was deleted by this mutation.""" - agentPlan: AgentPlan - """An edge for our `AgentPlan`. May be used by Relay 1.""" - agentPlanEdge( - """The method to use when ordering `AgentPlan`.""" - orderBy: [AgentPlanOrderBy!]! = [PRIMARY_KEY_ASC] - ): AgentPlanEdge + """The `PlatformAgentPlan` to be created by this mutation.""" + platformAgentPlan: PlatformAgentPlanInput! +} +"""The output of our create `PlatformAgentPlan` mutation.""" +type CreatePlatformAgentPlanPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String + """The `PlatformAgentPlan` that was created by this mutation.""" + platformAgentPlan: PlatformAgentPlan + + """An edge for our `PlatformAgentPlan`. May be used by Relay 1.""" + platformAgentPlanEdge( + """The method to use when ordering `PlatformAgentPlan`.""" + orderBy: [PlatformAgentPlanOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformAgentPlanEdge + """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query } -"""All input for the `deleteAgentPrompt` mutation.""" -input DeleteAgentPromptInput { +"""All input for the create `PlatformAgentPrompt` mutation.""" +input CreatePlatformAgentPromptInput { """ An arbitrary 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 `AgentPrompt` mutation.""" -type DeleteAgentPromptPayload { - """The `AgentPrompt` that was deleted by this mutation.""" - agentPrompt: AgentPrompt - """An edge for our `AgentPrompt`. May be used by Relay 1.""" - agentPromptEdge( - """The method to use when ordering `AgentPrompt`.""" - orderBy: [AgentPromptOrderBy!]! = [PRIMARY_KEY_ASC] - ): AgentPromptEdge + """The `PlatformAgentPrompt` to be created by this mutation.""" + platformAgentPrompt: PlatformAgentPromptInput! +} +"""The output of our create `PlatformAgentPrompt` mutation.""" +type CreatePlatformAgentPromptPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String + """The `PlatformAgentPrompt` that was created by this mutation.""" + platformAgentPrompt: PlatformAgentPrompt + + """An edge for our `PlatformAgentPrompt`. May be used by Relay 1.""" + platformAgentPromptEdge( + """The method to use when ordering `PlatformAgentPrompt`.""" + orderBy: [PlatformAgentPromptOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformAgentPromptEdge + """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query } -"""All input for the `deleteAgentResourceChunk` mutation.""" -input DeleteAgentResourceChunkInput { +"""All input for the create `PlatformAgentResourceChunk` mutation.""" +input CreatePlatformAgentResourceChunkInput { """ An arbitrary 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 `AgentResourceChunk` mutation.""" -type DeleteAgentResourceChunkPayload { - """The `AgentResourceChunk` that was deleted by this mutation.""" - agentResourceChunk: AgentResourceChunk - """An edge for our `AgentResourceChunk`. May be used by Relay 1.""" - agentResourceChunkEdge( - """The method to use when ordering `AgentResourceChunk`.""" - orderBy: [AgentResourceChunkOrderBy!]! = [PRIMARY_KEY_ASC] - ): AgentResourceChunkEdge + """The `PlatformAgentResourceChunk` to be created by this mutation.""" + platformAgentResourceChunk: PlatformAgentResourceChunkInput! +} +"""The output of our create `PlatformAgentResourceChunk` mutation.""" +type CreatePlatformAgentResourceChunkPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String + """The `PlatformAgentResourceChunk` that was created by this mutation.""" + platformAgentResourceChunk: PlatformAgentResourceChunk + + """An edge for our `PlatformAgentResourceChunk`. May be used by Relay 1.""" + platformAgentResourceChunkEdge( + """The method to use when ordering `PlatformAgentResourceChunk`.""" + orderBy: [PlatformAgentResourceChunkOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformAgentResourceChunkEdge + """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query } -"""All input for the `deleteAgentResource` mutation.""" -input DeleteAgentResourceInput { +"""All input for the create `PlatformAgentResource` mutation.""" +input CreatePlatformAgentResourceInput { """ An arbitrary 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 `PlatformAgentResource` to be created by this mutation.""" + platformAgentResource: PlatformAgentResourceInput! } -"""The output of our delete `AgentResource` mutation.""" -type DeleteAgentResourcePayload { - """The `AgentResource` that was deleted by this mutation.""" - agentResource: AgentResource - - """An edge for our `AgentResource`. May be used by Relay 1.""" - agentResourceEdge( - """The method to use when ordering `AgentResource`.""" - orderBy: [AgentResourceOrderBy!]! = [PRIMARY_KEY_ASC] - ): AgentResourceEdge - +"""The output of our create `PlatformAgentResource` mutation.""" +type CreatePlatformAgentResourcePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String + """The `PlatformAgentResource` that was created by this mutation.""" + platformAgentResource: PlatformAgentResource + + """An edge for our `PlatformAgentResource`. May be used by Relay 1.""" + platformAgentResourceEdge( + """The method to use when ordering `PlatformAgentResource`.""" + orderBy: [PlatformAgentResourceOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformAgentResourceEdge + """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query } -"""All input for the `deleteAgentTask` mutation.""" -input DeleteAgentTaskInput { +"""All input for the create `PlatformAgentRun` mutation.""" +input CreatePlatformAgentRunInput { """ An arbitrary 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 `AgentTask` mutation.""" -type DeleteAgentTaskPayload { - """The `AgentTask` that was deleted by this mutation.""" - agentTask: AgentTask - """An edge for our `AgentTask`. May be used by Relay 1.""" - agentTaskEdge( - """The method to use when ordering `AgentTask`.""" - orderBy: [AgentTaskOrderBy!]! = [PRIMARY_KEY_ASC] - ): AgentTaskEdge + """The `PlatformAgentRun` to be created by this mutation.""" + platformAgentRun: PlatformAgentRunInput! +} +"""The output of our create `PlatformAgentRun` mutation.""" +type CreatePlatformAgentRunPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String + """The `PlatformAgentRun` that was created by this mutation.""" + platformAgentRun: PlatformAgentRun + + """An edge for our `PlatformAgentRun`. May be used by Relay 1.""" + platformAgentRunEdge( + """The method to use when ordering `PlatformAgentRun`.""" + orderBy: [PlatformAgentRunOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformAgentRunEdge + """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query } -"""All input for the `deleteAgentThread` mutation.""" -input DeleteAgentThreadInput { +"""All input for the create `PlatformAgentRunWorkspace` mutation.""" +input CreatePlatformAgentRunWorkspaceInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - id: UUID! -} -"""The output of our delete `AgentThread` mutation.""" -type DeleteAgentThreadPayload { - """The `AgentThread` that was deleted by this mutation.""" - agentThread: AgentThread - - """An edge for our `AgentThread`. May be used by Relay 1.""" - agentThreadEdge( - """The method to use when ordering `AgentThread`.""" - orderBy: [AgentThreadOrderBy!]! = [PRIMARY_KEY_ASC] - ): AgentThreadEdge + """The `PlatformAgentRunWorkspace` to be created by this mutation.""" + platformAgentRunWorkspace: PlatformAgentRunWorkspaceInput! +} +"""The output of our create `PlatformAgentRunWorkspace` mutation.""" +type CreatePlatformAgentRunWorkspacePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String + """The `PlatformAgentRunWorkspace` that was created by this mutation.""" + platformAgentRunWorkspace: PlatformAgentRunWorkspace + + """An edge for our `PlatformAgentRunWorkspace`. May be used by Relay 1.""" + platformAgentRunWorkspaceEdge( + """The method to use when ordering `PlatformAgentRunWorkspace`.""" + orderBy: [PlatformAgentRunWorkspaceOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformAgentRunWorkspaceEdge + """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query } -"""A full-text search tsvector value represented as a string.""" -scalar FullText - -""" -A filter to be used against FullText fields. All fields are combined with a logical ‘and.’ -""" -input FullTextFilter { +"""All input for the create `PlatformAgentTask` mutation.""" +input CreatePlatformAgentTaskInput { """ - Not equal to the specified value, treating null like an ordinary value. + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - distinctFrom: FullText - - """Equal to the specified value.""" - equalTo: FullText + clientMutationId: String - """Included in the specified list.""" - in: [FullText!] + """The `PlatformAgentTask` to be created by this mutation.""" + platformAgentTask: PlatformAgentTaskInput! +} +"""The output of our create `PlatformAgentTask` mutation.""" +type CreatePlatformAgentTaskPayload { """ - Is null (if `true` is specified) or is not null (if `false` is specified). + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - isNull: Boolean - - """Performs a full text search on the field.""" - matches: String + clientMutationId: String - """Equal to the specified value, treating null like an ordinary value.""" - notDistinctFrom: FullText + """The `PlatformAgentTask` that was created by this mutation.""" + platformAgentTask: PlatformAgentTask - """Not equal to the specified value.""" - notEqualTo: FullText + """An edge for our `PlatformAgentTask`. May be used by Relay 1.""" + platformAgentTaskEdge( + """The method to use when ordering `PlatformAgentTask`.""" + orderBy: [PlatformAgentTaskOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformAgentTaskEdge - """Not included in the specified list.""" - notIn: [FullText!] + """ + 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.’ -""" -input IntFilter { +"""All input for the create `PlatformAgentThread` mutation.""" +input CreatePlatformAgentThreadInput { """ - Not equal to the specified value, treating null like an ordinary value. + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - distinctFrom: Int - - """Equal to the specified value.""" - equalTo: Int - - """Greater than the specified value.""" - greaterThan: Int - - """Greater than or equal to the specified value.""" - greaterThanOrEqualTo: Int + clientMutationId: String - """Included in the specified list.""" - in: [Int!] + """The `PlatformAgentThread` to be created by this mutation.""" + platformAgentThread: PlatformAgentThreadInput! +} +"""The output of our create `PlatformAgentThread` mutation.""" +type CreatePlatformAgentThreadPayload { """ - Is null (if `true` is specified) or is not null (if `false` is specified). + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - isNull: Boolean - - """Less than the specified value.""" - lessThan: Int - - """Less than or equal to the specified value.""" - lessThanOrEqualTo: Int + clientMutationId: String - """Equal to the specified value, treating null like an ordinary value.""" - notDistinctFrom: Int + """The `PlatformAgentThread` that was created by this mutation.""" + platformAgentThread: PlatformAgentThread - """Not equal to the specified value.""" - notEqualTo: Int + """An edge for our `PlatformAgentThread`. May be used by Relay 1.""" + platformAgentThreadEdge( + """The method to use when ordering `PlatformAgentThread`.""" + orderBy: [PlatformAgentThreadOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformAgentThreadEdge - """Not included in the specified list.""" - notIn: [Int!] + """ + 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 + """ -Represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). +A point in time as described by the [ISO +8601](https://en.wikipedia.org/wiki/ISO_8601) and, if it has a timezone, [RFC +3339](https://datatracker.ietf.org/doc/html/rfc3339) standards. Input values +that do not conform to both ISO 8601 and RFC 3339 may be coerced, which may lead +to unexpected results. """ -scalar JSON +scalar Datetime """ -A filter to be used against JSON fields. All fields are combined with a logical ‘and.’ +A filter to be used against Datetime fields. All fields are combined with a logical ‘and.’ """ -input JSONFilter { - """Contained by the specified JSON.""" - containedBy: JSON - - """Contains the specified JSON.""" - contains: JSON - - """Contains all of the specified keys.""" - containsAllKeys: [String!] - - """Contains any of the specified keys.""" - containsAnyKeys: [String!] - - """Contains the specified key.""" - containsKey: String - +input DatetimeFilter { """ Not equal to the specified value, treating null like an ordinary value. """ - distinctFrom: JSON + distinctFrom: Datetime """Equal to the specified value.""" - equalTo: JSON + equalTo: Datetime """Greater than the specified value.""" - greaterThan: JSON + greaterThan: Datetime """Greater than or equal to the specified value.""" - greaterThanOrEqualTo: JSON + greaterThanOrEqualTo: Datetime """Included in the specified list.""" - in: [JSON!] + in: [Datetime!] """ Is null (if `true` is specified) or is not null (if `false` is specified). @@ -3397,76 +3577,909 @@ input JSONFilter { isNull: Boolean """Less than the specified value.""" - lessThan: JSON + lessThan: Datetime """Less than or equal to the specified value.""" - lessThanOrEqualTo: JSON + lessThanOrEqualTo: Datetime """Equal to the specified value, treating null like an ordinary value.""" - notDistinctFrom: JSON + notDistinctFrom: Datetime """Not equal to the specified value.""" - notEqualTo: JSON + notEqualTo: Datetime """Not included in the specified list.""" - notIn: [JSON!] + notIn: [Datetime!] } -"""A belongs-to (forward FK) relation""" -type MetaBelongsToRelation { - fieldName: String - isUnique: Boolean! - keys: [MetaField!]! - references: MetaRefTable! - type: String +"""All input for the `deleteAgent` mutation.""" +input DeleteAgentInput { + """ + An arbitrary 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! } -"""Table constraints""" -type MetaConstraints { - foreignKey: [MetaForeignKeyConstraint!]! - primaryKey: MetaPrimaryKeyConstraint - unique: [MetaUniqueConstraint!]! +"""All input for the `deleteAgentMessage` mutation.""" +input DeleteAgentMessageInput { + """ + An arbitrary 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! } -"""Information about a PostgreSQL enum type""" -type MetaEnum { - """The PostgreSQL enum type name""" - name: String! - - """Allowed values for this enum""" - values: [String!]! -} +"""The output of our delete `AgentMessage` mutation.""" +type DeleteAgentMessagePayload { + """The `AgentMessage` that was deleted by this mutation.""" + agentMessage: AgentMessage -"""Information about a table field/column""" -type MetaField { - """PostgreSQL column name""" - columnName: String! - description: String + """An edge for our `AgentMessage`. May be used by Relay 1.""" + agentMessageEdge( + """The method to use when ordering `AgentMessage`.""" + orderBy: [AgentMessageOrderBy!]! = [PRIMARY_KEY_ASC] + ): AgentMessageEdge - """Enum metadata if this field has an enum type""" - enumValues: MetaEnum - hasDefault: Boolean! - isForeignKey: Boolean! - isNotNull: Boolean! - isPrimaryKey: Boolean! + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """Final GraphQL field name""" - name: String! - type: MetaType! + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query } -"""Information about a foreign key constraint""" -type MetaForeignKeyConstraint { - fields: [MetaField!]! - name: String! - refFields: [MetaField!] - refTable: MetaRefTable - referencedFields: [String!]! - referencedTable: String! -} +"""The output of our delete `Agent` mutation.""" +type DeleteAgentPayload { + """The `Agent` that was deleted by this mutation.""" + agent: Agent -"""A has-one or has-many (reverse FK) relation""" -type MetaHasRelation { + """An edge for our `Agent`. May be used by Relay 1.""" + agentEdge( + """The method to use when ordering `Agent`.""" + orderBy: [AgentOrderBy!]! = [PRIMARY_KEY_ASC] + ): AgentEdge + + """ + The 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 `deleteAgentPersona` mutation.""" +input DeleteAgentPersonaInput { + """ + An arbitrary 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 `AgentPersona` mutation.""" +type DeleteAgentPersonaPayload { + """The `AgentPersona` that was deleted by this mutation.""" + agentPersona: AgentPersona + + """An edge for our `AgentPersona`. May be used by Relay 1.""" + agentPersonaEdge( + """The method to use when ordering `AgentPersona`.""" + orderBy: [AgentPersonaOrderBy!]! = [PRIMARY_KEY_ASC] + ): AgentPersonaEdge + + """ + The 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 `deleteAgentPlan` mutation.""" +input DeleteAgentPlanInput { + """ + An arbitrary 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 `AgentPlan` mutation.""" +type DeleteAgentPlanPayload { + """The `AgentPlan` that was deleted by this mutation.""" + agentPlan: AgentPlan + + """An edge for our `AgentPlan`. May be used by Relay 1.""" + agentPlanEdge( + """The method to use when ordering `AgentPlan`.""" + orderBy: [AgentPlanOrderBy!]! = [PRIMARY_KEY_ASC] + ): AgentPlanEdge + + """ + The 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 `deleteAgentPrompt` mutation.""" +input DeleteAgentPromptInput { + """ + An arbitrary 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 `AgentPrompt` mutation.""" +type DeleteAgentPromptPayload { + """The `AgentPrompt` that was deleted by this mutation.""" + agentPrompt: AgentPrompt + + """An edge for our `AgentPrompt`. May be used by Relay 1.""" + agentPromptEdge( + """The method to use when ordering `AgentPrompt`.""" + orderBy: [AgentPromptOrderBy!]! = [PRIMARY_KEY_ASC] + ): AgentPromptEdge + + """ + The 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 `deleteAgentResourceChunk` mutation.""" +input DeleteAgentResourceChunkInput { + """ + An arbitrary 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 `AgentResourceChunk` mutation.""" +type DeleteAgentResourceChunkPayload { + """The `AgentResourceChunk` that was deleted by this mutation.""" + agentResourceChunk: AgentResourceChunk + + """An edge for our `AgentResourceChunk`. May be used by Relay 1.""" + agentResourceChunkEdge( + """The method to use when ordering `AgentResourceChunk`.""" + orderBy: [AgentResourceChunkOrderBy!]! = [PRIMARY_KEY_ASC] + ): AgentResourceChunkEdge + + """ + The 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 `deleteAgentResource` mutation.""" +input DeleteAgentResourceInput { + """ + An arbitrary 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 `AgentResource` mutation.""" +type DeleteAgentResourcePayload { + """The `AgentResource` that was deleted by this mutation.""" + agentResource: AgentResource + + """An edge for our `AgentResource`. May be used by Relay 1.""" + agentResourceEdge( + """The method to use when ordering `AgentResource`.""" + orderBy: [AgentResourceOrderBy!]! = [PRIMARY_KEY_ASC] + ): AgentResourceEdge + + """ + The 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 `deleteAgentTask` mutation.""" +input DeleteAgentTaskInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + +"""The output of our delete `AgentTask` mutation.""" +type DeleteAgentTaskPayload { + """The `AgentTask` that was deleted by this mutation.""" + agentTask: AgentTask + + """An edge for our `AgentTask`. May be used by Relay 1.""" + agentTaskEdge( + """The method to use when ordering `AgentTask`.""" + orderBy: [AgentTaskOrderBy!]! = [PRIMARY_KEY_ASC] + ): AgentTaskEdge + + """ + The 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 `deleteAgentThread` mutation.""" +input DeleteAgentThreadInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + +"""The output of our delete `AgentThread` mutation.""" +type DeleteAgentThreadPayload { + """The `AgentThread` that was deleted by this mutation.""" + agentThread: AgentThread + + """An edge for our `AgentThread`. May be used by Relay 1.""" + agentThreadEdge( + """The method to use when ordering `AgentThread`.""" + orderBy: [AgentThreadOrderBy!]! = [PRIMARY_KEY_ASC] + ): AgentThreadEdge + + """ + The 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 `deletePlatformAgentEvent` mutation.""" +input DeletePlatformAgentEventInput { + """ + An arbitrary 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 `PlatformAgentEvent` mutation.""" +type DeletePlatformAgentEventPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `PlatformAgentEvent` that was deleted by this mutation.""" + platformAgentEvent: PlatformAgentEvent + + """An edge for our `PlatformAgentEvent`. May be used by Relay 1.""" + platformAgentEventEdge( + """The method to use when ordering `PlatformAgentEvent`.""" + orderBy: [PlatformAgentEventOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformAgentEventEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `deletePlatformAgent` mutation.""" +input DeletePlatformAgentInput { + """ + An arbitrary 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! +} + +"""All input for the `deletePlatformAgentMessage` mutation.""" +input DeletePlatformAgentMessageInput { + """ + An arbitrary 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 `PlatformAgentMessage` mutation.""" +type DeletePlatformAgentMessagePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `PlatformAgentMessage` that was deleted by this mutation.""" + platformAgentMessage: PlatformAgentMessage + + """An edge for our `PlatformAgentMessage`. May be used by Relay 1.""" + platformAgentMessageEdge( + """The method to use when ordering `PlatformAgentMessage`.""" + orderBy: [PlatformAgentMessageOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformAgentMessageEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""The output of our delete `PlatformAgent` mutation.""" +type DeletePlatformAgentPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `PlatformAgent` that was deleted by this mutation.""" + platformAgent: PlatformAgent + + """An edge for our `PlatformAgent`. May be used by Relay 1.""" + platformAgentEdge( + """The method to use when ordering `PlatformAgent`.""" + orderBy: [PlatformAgentOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformAgentEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `deletePlatformAgentPersona` mutation.""" +input DeletePlatformAgentPersonaInput { + """ + An arbitrary 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 `PlatformAgentPersona` mutation.""" +type DeletePlatformAgentPersonaPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `PlatformAgentPersona` that was deleted by this mutation.""" + platformAgentPersona: PlatformAgentPersona + + """An edge for our `PlatformAgentPersona`. May be used by Relay 1.""" + platformAgentPersonaEdge( + """The method to use when ordering `PlatformAgentPersona`.""" + orderBy: [PlatformAgentPersonaOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformAgentPersonaEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `deletePlatformAgentPlan` mutation.""" +input DeletePlatformAgentPlanInput { + """ + An arbitrary 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 `PlatformAgentPlan` mutation.""" +type DeletePlatformAgentPlanPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `PlatformAgentPlan` that was deleted by this mutation.""" + platformAgentPlan: PlatformAgentPlan + + """An edge for our `PlatformAgentPlan`. May be used by Relay 1.""" + platformAgentPlanEdge( + """The method to use when ordering `PlatformAgentPlan`.""" + orderBy: [PlatformAgentPlanOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformAgentPlanEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `deletePlatformAgentPrompt` mutation.""" +input DeletePlatformAgentPromptInput { + """ + An arbitrary 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 `PlatformAgentPrompt` mutation.""" +type DeletePlatformAgentPromptPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `PlatformAgentPrompt` that was deleted by this mutation.""" + platformAgentPrompt: PlatformAgentPrompt + + """An edge for our `PlatformAgentPrompt`. May be used by Relay 1.""" + platformAgentPromptEdge( + """The method to use when ordering `PlatformAgentPrompt`.""" + orderBy: [PlatformAgentPromptOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformAgentPromptEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `deletePlatformAgentResourceChunk` mutation.""" +input DeletePlatformAgentResourceChunkInput { + """ + An arbitrary 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 `PlatformAgentResourceChunk` mutation.""" +type DeletePlatformAgentResourceChunkPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `PlatformAgentResourceChunk` that was deleted by this mutation.""" + platformAgentResourceChunk: PlatformAgentResourceChunk + + """An edge for our `PlatformAgentResourceChunk`. May be used by Relay 1.""" + platformAgentResourceChunkEdge( + """The method to use when ordering `PlatformAgentResourceChunk`.""" + orderBy: [PlatformAgentResourceChunkOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformAgentResourceChunkEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `deletePlatformAgentResource` mutation.""" +input DeletePlatformAgentResourceInput { + """ + An arbitrary 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 `PlatformAgentResource` mutation.""" +type DeletePlatformAgentResourcePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `PlatformAgentResource` that was deleted by this mutation.""" + platformAgentResource: PlatformAgentResource + + """An edge for our `PlatformAgentResource`. May be used by Relay 1.""" + platformAgentResourceEdge( + """The method to use when ordering `PlatformAgentResource`.""" + orderBy: [PlatformAgentResourceOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformAgentResourceEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `deletePlatformAgentRun` mutation.""" +input DeletePlatformAgentRunInput { + """ + An arbitrary 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 `PlatformAgentRun` mutation.""" +type DeletePlatformAgentRunPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `PlatformAgentRun` that was deleted by this mutation.""" + platformAgentRun: PlatformAgentRun + + """An edge for our `PlatformAgentRun`. May be used by Relay 1.""" + platformAgentRunEdge( + """The method to use when ordering `PlatformAgentRun`.""" + orderBy: [PlatformAgentRunOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformAgentRunEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `deletePlatformAgentRunWorkspace` mutation.""" +input DeletePlatformAgentRunWorkspaceInput { + """ + An arbitrary 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 `PlatformAgentRunWorkspace` mutation.""" +type DeletePlatformAgentRunWorkspacePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `PlatformAgentRunWorkspace` that was deleted by this mutation.""" + platformAgentRunWorkspace: PlatformAgentRunWorkspace + + """An edge for our `PlatformAgentRunWorkspace`. May be used by Relay 1.""" + platformAgentRunWorkspaceEdge( + """The method to use when ordering `PlatformAgentRunWorkspace`.""" + orderBy: [PlatformAgentRunWorkspaceOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformAgentRunWorkspaceEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `deletePlatformAgentTask` mutation.""" +input DeletePlatformAgentTaskInput { + """ + An arbitrary 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 `PlatformAgentTask` mutation.""" +type DeletePlatformAgentTaskPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `PlatformAgentTask` that was deleted by this mutation.""" + platformAgentTask: PlatformAgentTask + + """An edge for our `PlatformAgentTask`. May be used by Relay 1.""" + platformAgentTaskEdge( + """The method to use when ordering `PlatformAgentTask`.""" + orderBy: [PlatformAgentTaskOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformAgentTaskEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `deletePlatformAgentThread` mutation.""" +input DeletePlatformAgentThreadInput { + """ + An arbitrary 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 `PlatformAgentThread` mutation.""" +type DeletePlatformAgentThreadPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `PlatformAgentThread` that was deleted by this mutation.""" + platformAgentThread: PlatformAgentThread + + """An edge for our `PlatformAgentThread`. May be used by Relay 1.""" + platformAgentThreadEdge( + """The method to use when ordering `PlatformAgentThread`.""" + orderBy: [PlatformAgentThreadOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformAgentThreadEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""A full-text search tsvector value represented as a string.""" +scalar FullText + +""" +A filter to be used against FullText fields. All fields are combined with a logical ‘and.’ +""" +input FullTextFilter { + """ + Not equal to the specified value, treating null like an ordinary value. + """ + distinctFrom: FullText + + """Equal to the specified value.""" + equalTo: FullText + + """Included in the specified list.""" + in: [FullText!] + + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean + + """Performs a full text search on the field.""" + matches: String + + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: FullText + + """Not equal to the specified value.""" + notEqualTo: FullText + + """Not included in the specified list.""" + notIn: [FullText!] +} + +""" +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 + + """Equal to the specified value.""" + equalTo: Int + + """Greater than the specified value.""" + greaterThan: Int + + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: Int + + """Included in the specified list.""" + in: [Int!] + + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean + + """Less than the specified value.""" + lessThan: Int + + """Less than or equal to the specified value.""" + lessThanOrEqualTo: Int + + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: Int + + """Not equal to the specified value.""" + notEqualTo: Int + + """Not included in the specified list.""" + notIn: [Int!] +} + +""" +Represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). +""" +scalar JSON + +""" +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 + + """Contains the specified JSON.""" + contains: JSON + + """Contains all of the specified keys.""" + containsAllKeys: [String!] + + """Contains any of the specified keys.""" + containsAnyKeys: [String!] + + """Contains the specified key.""" + containsKey: String + + """ + Not equal to the specified value, treating null like an ordinary value. + """ + distinctFrom: JSON + + """Equal to the specified value.""" + equalTo: JSON + + """Greater than the specified value.""" + greaterThan: JSON + + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: JSON + + """Included in the specified list.""" + in: [JSON!] + + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean + + """Less than the specified value.""" + lessThan: JSON + + """Less than or equal to the specified value.""" + lessThanOrEqualTo: JSON + + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: JSON + + """Not equal to the specified value.""" + notEqualTo: JSON + + """Not included in the specified list.""" + notIn: [JSON!] +} + +"""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!]! @@ -3474,540 +4487,5123 @@ type MetaHasRelation { type: String } -"""i18n metadata for a table with @i18n tag""" -type MetaI18n { - """Fields that are translatable""" - translatableFields: [MetaI18nField!]! +"""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 { + """GraphQL type name of the plane's buckets table""" + bucketsType: String! + + """ + Computed download-URL field on the files type; null on the buckets side + """ + downloadUrlField: String + + """GraphQL type name of the plane's files table""" + filesType: String! + + """Whether this table is a storage buckets table""" + isBucketsTable: Boolean! + + """Whether this table is a storage files table""" + isFilesTable: Boolean! + + """The plane's GraphQL upload surface""" + upload: MetaStorageUpload! +} + +""" +The GraphQL upload surface of a storage plane, derived from the registry facts the presigned-url plugin emits from +""" +type MetaStorageUpload { + """Per-file input type inside the bulk input""" + bulkFileInputType: String! + + """Per-file payload type inside the bulk payload""" + bulkFilePayloadType: String! + + """Input type of the bulk upload mutation""" + bulkInputType: String! + + """Root mutation field for bulk upload""" + bulkMutation: String! + + """Payload type of the bulk upload mutation""" + bulkPayloadType: String! + + """Input type of the single upload mutation""" + inputType: String! + + """Root mutation field for single-file upload (e.g. uploadAppFile)""" + mutation: String! + + """Payload type of the single upload mutation""" + payloadType: String! + + """Whether the upload input requires ownerId (entity-keyed plane)""" + requiresOwnerId: 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 { + """Creates a single `Agent`.""" + createAgent( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAgentInput! + ): CreateAgentPayload + + """Creates a single `AgentMessage`.""" + createAgentMessage( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAgentMessageInput! + ): CreateAgentMessagePayload + + """Creates a single `AgentPersona`.""" + createAgentPersona( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAgentPersonaInput! + ): CreateAgentPersonaPayload + + """Creates a single `AgentPlan`.""" + createAgentPlan( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAgentPlanInput! + ): CreateAgentPlanPayload + + """Creates a single `AgentPrompt`.""" + createAgentPrompt( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAgentPromptInput! + ): CreateAgentPromptPayload + + """Creates a single `AgentResource`.""" + createAgentResource( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAgentResourceInput! + ): CreateAgentResourcePayload + + """Creates a single `AgentResourceChunk`.""" + createAgentResourceChunk( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAgentResourceChunkInput! + ): CreateAgentResourceChunkPayload + + """Creates a single `AgentTask`.""" + createAgentTask( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAgentTaskInput! + ): CreateAgentTaskPayload + + """Creates a single `AgentThread`.""" + createAgentThread( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAgentThreadInput! + ): CreateAgentThreadPayload + + """Creates a single `PlatformAgent`.""" + createPlatformAgent( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreatePlatformAgentInput! + ): CreatePlatformAgentPayload + + """Creates a single `PlatformAgentEvent`.""" + createPlatformAgentEvent( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreatePlatformAgentEventInput! + ): CreatePlatformAgentEventPayload + + """Creates a single `PlatformAgentMessage`.""" + createPlatformAgentMessage( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreatePlatformAgentMessageInput! + ): CreatePlatformAgentMessagePayload + + """Creates a single `PlatformAgentPersona`.""" + createPlatformAgentPersona( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreatePlatformAgentPersonaInput! + ): CreatePlatformAgentPersonaPayload + + """Creates a single `PlatformAgentPlan`.""" + createPlatformAgentPlan( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreatePlatformAgentPlanInput! + ): CreatePlatformAgentPlanPayload + + """Creates a single `PlatformAgentPrompt`.""" + createPlatformAgentPrompt( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreatePlatformAgentPromptInput! + ): CreatePlatformAgentPromptPayload + + """Creates a single `PlatformAgentResource`.""" + createPlatformAgentResource( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreatePlatformAgentResourceInput! + ): CreatePlatformAgentResourcePayload + + """Creates a single `PlatformAgentResourceChunk`.""" + createPlatformAgentResourceChunk( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreatePlatformAgentResourceChunkInput! + ): CreatePlatformAgentResourceChunkPayload + + """Creates a single `PlatformAgentRun`.""" + createPlatformAgentRun( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreatePlatformAgentRunInput! + ): CreatePlatformAgentRunPayload + + """Creates a single `PlatformAgentRunWorkspace`.""" + createPlatformAgentRunWorkspace( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreatePlatformAgentRunWorkspaceInput! + ): CreatePlatformAgentRunWorkspacePayload + + """Creates a single `PlatformAgentTask`.""" + createPlatformAgentTask( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreatePlatformAgentTaskInput! + ): CreatePlatformAgentTaskPayload + + """Creates a single `PlatformAgentThread`.""" + createPlatformAgentThread( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreatePlatformAgentThreadInput! + ): CreatePlatformAgentThreadPayload + + """Deletes a single `Agent` using a unique key.""" + deleteAgent( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAgentInput! + ): DeleteAgentPayload + + """Deletes a single `AgentMessage` using a unique key.""" + deleteAgentMessage( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAgentMessageInput! + ): DeleteAgentMessagePayload + + """Deletes a single `AgentPersona` using a unique key.""" + deleteAgentPersona( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAgentPersonaInput! + ): DeleteAgentPersonaPayload + + """Deletes a single `AgentPlan` using a unique key.""" + deleteAgentPlan( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAgentPlanInput! + ): DeleteAgentPlanPayload + + """Deletes a single `AgentPrompt` using a unique key.""" + deleteAgentPrompt( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAgentPromptInput! + ): DeleteAgentPromptPayload + + """Deletes a single `AgentResource` using a unique key.""" + deleteAgentResource( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAgentResourceInput! + ): DeleteAgentResourcePayload + + """Deletes a single `AgentResourceChunk` using a unique key.""" + deleteAgentResourceChunk( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAgentResourceChunkInput! + ): DeleteAgentResourceChunkPayload + + """Deletes a single `AgentTask` using a unique key.""" + deleteAgentTask( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAgentTaskInput! + ): DeleteAgentTaskPayload + + """Deletes a single `AgentThread` using a unique key.""" + deleteAgentThread( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAgentThreadInput! + ): DeleteAgentThreadPayload + + """Deletes a single `PlatformAgent` using a unique key.""" + deletePlatformAgent( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePlatformAgentInput! + ): DeletePlatformAgentPayload + + """Deletes a single `PlatformAgentEvent` using a unique key.""" + deletePlatformAgentEvent( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePlatformAgentEventInput! + ): DeletePlatformAgentEventPayload + + """Deletes a single `PlatformAgentMessage` using a unique key.""" + deletePlatformAgentMessage( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePlatformAgentMessageInput! + ): DeletePlatformAgentMessagePayload + + """Deletes a single `PlatformAgentPersona` using a unique key.""" + deletePlatformAgentPersona( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePlatformAgentPersonaInput! + ): DeletePlatformAgentPersonaPayload + + """Deletes a single `PlatformAgentPlan` using a unique key.""" + deletePlatformAgentPlan( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePlatformAgentPlanInput! + ): DeletePlatformAgentPlanPayload + + """Deletes a single `PlatformAgentPrompt` using a unique key.""" + deletePlatformAgentPrompt( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePlatformAgentPromptInput! + ): DeletePlatformAgentPromptPayload + + """Deletes a single `PlatformAgentResource` using a unique key.""" + deletePlatformAgentResource( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePlatformAgentResourceInput! + ): DeletePlatformAgentResourcePayload + + """Deletes a single `PlatformAgentResourceChunk` using a unique key.""" + deletePlatformAgentResourceChunk( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePlatformAgentResourceChunkInput! + ): DeletePlatformAgentResourceChunkPayload + + """Deletes a single `PlatformAgentRun` using a unique key.""" + deletePlatformAgentRun( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePlatformAgentRunInput! + ): DeletePlatformAgentRunPayload + + """Deletes a single `PlatformAgentRunWorkspace` using a unique key.""" + deletePlatformAgentRunWorkspace( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePlatformAgentRunWorkspaceInput! + ): DeletePlatformAgentRunWorkspacePayload + + """Deletes a single `PlatformAgentTask` using a unique key.""" + deletePlatformAgentTask( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePlatformAgentTaskInput! + ): DeletePlatformAgentTaskPayload + + """Deletes a single `PlatformAgentThread` using a unique key.""" + deletePlatformAgentThread( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePlatformAgentThreadInput! + ): DeletePlatformAgentThreadPayload + + """ + Reconcile an S3 bucket for a logical bucket in the database. + Reads the bucket config via RLS, then enqueues the same + storage:provision_bucket job used by the INSERT trigger. This is + idempotent for an already-reconciled bucket; enqueue failures become + GraphQL errors. + """ + provisionBucket( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: ProvisionBucketInput! + ): ProvisionBucketPayload + + """Updates a single `Agent` using a unique key and a patch.""" + updateAgent( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAgentInput! + ): UpdateAgentPayload + + """Updates a single `AgentMessage` using a unique key and a patch.""" + updateAgentMessage( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAgentMessageInput! + ): UpdateAgentMessagePayload + + """Updates a single `AgentPersona` using a unique key and a patch.""" + updateAgentPersona( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAgentPersonaInput! + ): UpdateAgentPersonaPayload + + """Updates a single `AgentPlan` using a unique key and a patch.""" + updateAgentPlan( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAgentPlanInput! + ): UpdateAgentPlanPayload + + """Updates a single `AgentPrompt` using a unique key and a patch.""" + updateAgentPrompt( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAgentPromptInput! + ): UpdateAgentPromptPayload + + """Updates a single `AgentResource` using a unique key and a patch.""" + updateAgentResource( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAgentResourceInput! + ): UpdateAgentResourcePayload + + """Updates a single `AgentResourceChunk` using a unique key and a patch.""" + updateAgentResourceChunk( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAgentResourceChunkInput! + ): UpdateAgentResourceChunkPayload + + """Updates a single `AgentTask` using a unique key and a patch.""" + updateAgentTask( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAgentTaskInput! + ): UpdateAgentTaskPayload + + """Updates a single `AgentThread` using a unique key and a patch.""" + updateAgentThread( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAgentThreadInput! + ): UpdateAgentThreadPayload + + """Updates a single `PlatformAgent` using a unique key and a patch.""" + updatePlatformAgent( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePlatformAgentInput! + ): UpdatePlatformAgentPayload + + """Updates a single `PlatformAgentEvent` using a unique key and a patch.""" + updatePlatformAgentEvent( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePlatformAgentEventInput! + ): UpdatePlatformAgentEventPayload + + """ + Updates a single `PlatformAgentMessage` using a unique key and a patch. + """ + updatePlatformAgentMessage( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePlatformAgentMessageInput! + ): UpdatePlatformAgentMessagePayload + + """ + Updates a single `PlatformAgentPersona` using a unique key and a patch. + """ + updatePlatformAgentPersona( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePlatformAgentPersonaInput! + ): UpdatePlatformAgentPersonaPayload + + """Updates a single `PlatformAgentPlan` using a unique key and a patch.""" + updatePlatformAgentPlan( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePlatformAgentPlanInput! + ): UpdatePlatformAgentPlanPayload + + """Updates a single `PlatformAgentPrompt` using a unique key and a patch.""" + updatePlatformAgentPrompt( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePlatformAgentPromptInput! + ): UpdatePlatformAgentPromptPayload + + """ + Updates a single `PlatformAgentResource` using a unique key and a patch. + """ + updatePlatformAgentResource( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePlatformAgentResourceInput! + ): UpdatePlatformAgentResourcePayload + + """ + Updates a single `PlatformAgentResourceChunk` using a unique key and a patch. + """ + updatePlatformAgentResourceChunk( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePlatformAgentResourceChunkInput! + ): UpdatePlatformAgentResourceChunkPayload + + """Updates a single `PlatformAgentRun` using a unique key and a patch.""" + updatePlatformAgentRun( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePlatformAgentRunInput! + ): UpdatePlatformAgentRunPayload + + """ + Updates a single `PlatformAgentRunWorkspace` using a unique key and a patch. + """ + updatePlatformAgentRunWorkspace( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePlatformAgentRunWorkspaceInput! + ): UpdatePlatformAgentRunWorkspacePayload + + """Updates a single `PlatformAgentTask` using a unique key and a patch.""" + updatePlatformAgentTask( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePlatformAgentTaskInput! + ): UpdatePlatformAgentTaskPayload + + """Updates a single `PlatformAgentThread` using a unique key and a patch.""" + updatePlatformAgentThread( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePlatformAgentThreadInput! + ): UpdatePlatformAgentThreadPayload +} + +"""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 +} + +"""Agent instance registry (human-managed or ephemeral sub-agents)""" +type PlatformAgent { + """Reads and enables pagination through a set of `PlatformAgent`.""" + childPlatformAgents( + """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 `PlatformAgent`.""" + orderBy: [PlatformAgentOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformAgentFilter + ): PlatformAgentConnection! + + """Per-instance config overrides (model, temperature, tools)""" + config: JSON + createdAt: Datetime + id: UUID! + + """If true, agent is deleted when its spawning thread is deleted""" + isEphemeral: Boolean! + + """Display name for this agent instance""" + name: String! + + """Human who owns/manages this agent""" + ownerId: UUID! + + """ + Reads a single `PlatformAgent` that is related to this `PlatformAgent`. + """ + parent: PlatformAgent + + """Parent agent (for sub-agent delegation hierarchy)""" + parentId: UUID + + """ + Reads a single `PlatformAgentPersona` that is related to this `PlatformAgent`. + """ + persona: PlatformAgentPersona + + """Persona template this agent was created from""" + personaId: UUID + + """Reads and enables pagination through a set of `PlatformAgentMessage`.""" + platformAgentMessagesByAgentId( + """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 `PlatformAgentMessage`.""" + orderBy: [PlatformAgentMessageOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformAgentMessageFilter + ): PlatformAgentMessageConnection! + + """Reads and enables pagination through a set of `PlatformAgentThread`.""" + platformAgentThreadsByAgentId( + """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 `PlatformAgentThread`.""" + orderBy: [PlatformAgentThreadOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformAgentThreadFilter + ): PlatformAgentThreadConnection! + + """Agent lifecycle status: active, paused, terminated""" + status: String! + + """System prompt override (NULL = inherit from persona)""" + systemPrompt: String + updatedAt: Datetime +} + +"""A connection to a list of `PlatformAgent` values.""" +type PlatformAgentConnection { + """ + A list of edges which contains the `PlatformAgent` and cursor to aid in pagination. + """ + edges: [PlatformAgentEdge]! + + """A list of `PlatformAgent` objects.""" + nodes: [PlatformAgent]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `PlatformAgent` you could get from the connection.""" + totalCount: Int! +} + +"""A `PlatformAgent` edge in the connection.""" +type PlatformAgentEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `PlatformAgent` at the end of the edge.""" + node: PlatformAgent +} + +""" +Append-only transcript of an agent run: one agent session entry per row, stored verbatim +""" +type PlatformAgentEvent { + """User whose run this entry belongs to, inherited from the run""" + actorId: UUID! + createdAt: Datetime + + """ + The agent session entry, verbatim — every rendered surface is a projection of it + """ + entry: JSON! + id: UUID! + + """When the writer produced this entry, by its own clock""" + recordedAt: Datetime! + + """ + Reads a single `PlatformAgentRun` that is related to this `PlatformAgentEvent`. + """ + run: PlatformAgentRun + + """Foreign key to agent_run""" + runId: UUID! + + """Position of this entry in the run, 1-based and gapless""" + seq: Int! + + """Transcript format this entry is encoded in""" + transcriptFormat: String! + + """Version of that transcript format this entry was written in""" + transcriptVersion: Int! + updatedAt: Datetime + + """Who may read this entry, inherited from the run""" + visibility: String! +} + +"""A connection to a list of `PlatformAgentEvent` values.""" +type PlatformAgentEventConnection { + """ + A list of edges which contains the `PlatformAgentEvent` and cursor to aid in pagination. + """ + edges: [PlatformAgentEventEdge]! + + """A list of `PlatformAgentEvent` objects.""" + nodes: [PlatformAgentEvent]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `PlatformAgentEvent` you could get from the connection. + """ + totalCount: Int! +} + +"""A `PlatformAgentEvent` edge in the connection.""" +type PlatformAgentEventEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `PlatformAgentEvent` at the end of the edge.""" + node: PlatformAgentEvent +} + +""" +A filter to be used against `PlatformAgentEvent` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformAgentEventFilter { + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter + + """Checks for all expressions in this list.""" + and: [PlatformAgentEventFilter!] + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `entry` field.""" + entry: JSONFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Negates the expression.""" + not: PlatformAgentEventFilter + + """Checks for any expressions in this list.""" + or: [PlatformAgentEventFilter!] + + """Filter by the object’s `recordedAt` field.""" + recordedAt: DatetimeFilter + + """Filter by the object’s `run` relation.""" + run: PlatformAgentRunFilter + + """Filter by the object’s `runId` field.""" + runId: UUIDFilter + + """Filter by the object’s `seq` field.""" + seq: IntFilter + + """Filter by the object’s `transcriptFormat` field.""" + transcriptFormat: StringFilter + + """Filter by the object’s `transcriptVersion` field.""" + transcriptVersion: IntFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + + """Filter by the object’s `visibility` field.""" + visibility: StringFilter +} + +"""An input for mutations affecting `PlatformAgentEvent`""" +input PlatformAgentEventInput { + """User whose run this entry belongs to, inherited from the run""" + actorId: UUID + createdAt: Datetime + + """ + The agent session entry, verbatim — every rendered surface is a projection of it + """ + entry: JSON! + id: UUID + + """When the writer produced this entry, by its own clock""" + recordedAt: Datetime! + + """Foreign key to agent_run""" + runId: UUID! + + """Position of this entry in the run, 1-based and gapless""" + seq: Int! + + """Transcript format this entry is encoded in""" + transcriptFormat: String + + """Version of that transcript format this entry was written in""" + transcriptVersion: Int! + updatedAt: Datetime + + """Who may read this entry, inherited from the run""" + visibility: String +} + +"""Methods to use when ordering `PlatformAgentEvent`.""" +enum PlatformAgentEventOrderBy { + ACTOR_ID_ASC + ACTOR_ID_DESC + CREATED_AT_ASC + CREATED_AT_DESC + ENTRY_ASC + ENTRY_DESC + ID_ASC + ID_DESC + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + RECORDED_AT_ASC + RECORDED_AT_DESC + RUN_ID_ASC + RUN_ID_DESC + SEQ_ASC + SEQ_DESC + TRANSCRIPT_FORMAT_ASC + TRANSCRIPT_FORMAT_DESC + TRANSCRIPT_VERSION_ASC + TRANSCRIPT_VERSION_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + VISIBILITY_ASC + VISIBILITY_DESC +} + +""" +Represents an update to a `PlatformAgentEvent`. Fields that are set will be updated. +""" +input PlatformAgentEventPatch { + """User whose run this entry belongs to, inherited from the run""" + actorId: UUID + createdAt: Datetime + + """ + The agent session entry, verbatim — every rendered surface is a projection of it + """ + entry: JSON + id: UUID + + """When the writer produced this entry, by its own clock""" + recordedAt: Datetime + + """Foreign key to agent_run""" + runId: UUID + + """Position of this entry in the run, 1-based and gapless""" + seq: Int + + """Transcript format this entry is encoded in""" + transcriptFormat: String + + """Version of that transcript format this entry was written in""" + transcriptVersion: Int + updatedAt: Datetime + + """Who may read this entry, inherited from the run""" + visibility: String +} + +""" +A filter to be used against `PlatformAgent` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformAgentFilter { + """Checks for all expressions in this list.""" + and: [PlatformAgentFilter!] + + """Filter by the object’s `childPlatformAgents` relation.""" + childPlatformAgents: PlatformAgentToManyPlatformAgentFilter + + """`childPlatformAgents` exist.""" + childPlatformAgentsExist: Boolean + + """Filter by the object’s `config` field.""" + config: JSONFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `isEphemeral` field.""" + isEphemeral: BooleanFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """Negates the expression.""" + not: PlatformAgentFilter + + """Checks for any expressions in this list.""" + or: [PlatformAgentFilter!] + + """Filter by the object’s `ownerId` field.""" + ownerId: UUIDFilter + + """Filter by the object’s `parent` relation.""" + parent: PlatformAgentFilter + + """A related `parent` exists.""" + parentExists: Boolean + + """Filter by the object’s `parentId` field.""" + parentId: UUIDFilter + + """Filter by the object’s `persona` relation.""" + persona: PlatformAgentPersonaFilter + + """A related `persona` exists.""" + personaExists: Boolean + + """Filter by the object’s `personaId` field.""" + personaId: UUIDFilter + + """Filter by the object’s `platformAgentMessagesByAgentId` relation.""" + platformAgentMessagesByAgentId: PlatformAgentToManyPlatformAgentMessageFilter + + """`platformAgentMessagesByAgentId` exist.""" + platformAgentMessagesByAgentIdExist: Boolean + + """Filter by the object’s `platformAgentThreadsByAgentId` relation.""" + platformAgentThreadsByAgentId: PlatformAgentToManyPlatformAgentThreadFilter + + """`platformAgentThreadsByAgentId` exist.""" + platformAgentThreadsByAgentIdExist: Boolean + + """Filter by the object’s `status` field.""" + status: StringFilter + + """Filter by the object’s `systemPrompt` field.""" + systemPrompt: StringFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter +} + +"""An input for mutations affecting `PlatformAgent`""" +input PlatformAgentInput { + """Per-instance config overrides (model, temperature, tools)""" + config: JSON + createdAt: Datetime + id: UUID + + """If true, agent is deleted when its spawning thread is deleted""" + isEphemeral: Boolean + + """Display name for this agent instance""" + name: String! + + """Human who owns/manages this agent""" + ownerId: UUID + + """Parent agent (for sub-agent delegation hierarchy)""" + parentId: UUID + + """Persona template this agent was created from""" + personaId: UUID + + """Agent lifecycle status: active, paused, terminated""" + status: String + + """System prompt override (NULL = inherit from persona)""" + systemPrompt: String + updatedAt: Datetime +} + +"""Message within an agent thread with TextPart/ToolPart jsonb parts""" +type PlatformAgentMessage { + """User who authored this message""" + actorId: UUID! + + """ + Reads a single `PlatformAgent` that is related to this `PlatformAgentMessage`. + """ + agent: PlatformAgent + + """Agent that authored this message (NULL for human messages)""" + agentId: UUID + + """Who authored this message: user or assistant""" + authorRole: String! + createdAt: Datetime + + """ + Reads a single `PlatformAgentRun` that is related to this `PlatformAgentMessage`. + """ + deliveredRun: PlatformAgentRun + + """Run that consumed this message; null while it is still queued""" + deliveredRunId: UUID + id: UUID! + + """ + Turn kind: user, assistant, system, or interrupt (arrived mid-run and redirects it) + """ + kind: String! + + """LLM model that generated this response""" + model: String + + """Message content: TextPart and ToolPart array""" + parts: JSON + + """ + Reads a single `PlatformAgentThread` that is related to this `PlatformAgentMessage`. + """ + thread: PlatformAgentThread + + """Foreign key to agent_thread""" + threadId: UUID! + updatedAt: Datetime + + """Who may read this message, inherited from the thread""" + visibility: String! +} + +"""A connection to a list of `PlatformAgentMessage` values.""" +type PlatformAgentMessageConnection { + """ + A list of edges which contains the `PlatformAgentMessage` and cursor to aid in pagination. + """ + edges: [PlatformAgentMessageEdge]! + + """A list of `PlatformAgentMessage` objects.""" + nodes: [PlatformAgentMessage]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `PlatformAgentMessage` you could get from the connection. + """ + totalCount: Int! +} + +"""A `PlatformAgentMessage` edge in the connection.""" +type PlatformAgentMessageEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `PlatformAgentMessage` at the end of the edge.""" + node: PlatformAgentMessage +} + +""" +A filter to be used against `PlatformAgentMessage` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformAgentMessageFilter { + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter + + """Filter by the object’s `agent` relation.""" + agent: PlatformAgentFilter + + """A related `agent` exists.""" + agentExists: Boolean + + """Filter by the object’s `agentId` field.""" + agentId: UUIDFilter + + """Checks for all expressions in this list.""" + and: [PlatformAgentMessageFilter!] + + """Filter by the object’s `authorRole` field.""" + authorRole: StringFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `deliveredRun` relation.""" + deliveredRun: PlatformAgentRunFilter + + """A related `deliveredRun` exists.""" + deliveredRunExists: Boolean + + """Filter by the object’s `deliveredRunId` field.""" + deliveredRunId: UUIDFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `kind` field.""" + kind: StringFilter + + """Filter by the object’s `model` field.""" + model: StringFilter + + """Negates the expression.""" + not: PlatformAgentMessageFilter + + """Checks for any expressions in this list.""" + or: [PlatformAgentMessageFilter!] + + """Filter by the object’s `parts` field.""" + parts: JSONFilter + + """Filter by the object’s `thread` relation.""" + thread: PlatformAgentThreadFilter + + """Filter by the object’s `threadId` field.""" + threadId: UUIDFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + + """Filter by the object’s `visibility` field.""" + visibility: StringFilter +} + +"""An input for mutations affecting `PlatformAgentMessage`""" +input PlatformAgentMessageInput { + """User who authored this message""" + actorId: UUID + + """Agent that authored this message (NULL for human messages)""" + agentId: UUID + + """Who authored this message: user or assistant""" + authorRole: String! + createdAt: Datetime + + """Run that consumed this message; null while it is still queued""" + deliveredRunId: UUID + id: UUID + + """ + Turn kind: user, assistant, system, or interrupt (arrived mid-run and redirects it) + """ + kind: String + + """LLM model that generated this response""" + model: String + + """Message content: TextPart and ToolPart array""" + parts: JSON + + """Foreign key to agent_thread""" + threadId: UUID! + updatedAt: Datetime + + """Who may read this message, inherited from the thread""" + visibility: String +} + +"""Methods to use when ordering `PlatformAgentMessage`.""" +enum PlatformAgentMessageOrderBy { + ACTOR_ID_ASC + ACTOR_ID_DESC + AGENT_ID_ASC + AGENT_ID_DESC + AUTHOR_ROLE_ASC + AUTHOR_ROLE_DESC + CREATED_AT_ASC + CREATED_AT_DESC + DELIVERED_RUN_ID_ASC + DELIVERED_RUN_ID_DESC + ID_ASC + ID_DESC + KIND_ASC + KIND_DESC + MODEL_ASC + MODEL_DESC + NATURAL + PARTS_ASC + PARTS_DESC + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + THREAD_ID_ASC + THREAD_ID_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + VISIBILITY_ASC + VISIBILITY_DESC +} + +""" +Represents an update to a `PlatformAgentMessage`. Fields that are set will be updated. +""" +input PlatformAgentMessagePatch { + """User who authored this message""" + actorId: UUID + + """Agent that authored this message (NULL for human messages)""" + agentId: UUID + + """Who authored this message: user or assistant""" + authorRole: String + createdAt: Datetime + + """Run that consumed this message; null while it is still queued""" + deliveredRunId: UUID + id: UUID + + """ + Turn kind: user, assistant, system, or interrupt (arrived mid-run and redirects it) + """ + kind: String + + """LLM model that generated this response""" + model: String + + """Message content: TextPart and ToolPart array""" + parts: JSON + + """Foreign key to agent_thread""" + threadId: UUID + updatedAt: Datetime + + """Who may read this message, inherited from the thread""" + visibility: String +} + +"""Methods to use when ordering `PlatformAgent`.""" +enum PlatformAgentOrderBy { + CONFIG_ASC + CONFIG_DESC + CREATED_AT_ASC + CREATED_AT_DESC + ID_ASC + ID_DESC + IS_EPHEMERAL_ASC + IS_EPHEMERAL_DESC + NAME_ASC + NAME_DESC + NATURAL + OWNER_ID_ASC + OWNER_ID_DESC + PARENT_ID_ASC + PARENT_ID_DESC + PERSONA_ID_ASC + PERSONA_ID_DESC + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + STATUS_ASC + STATUS_DESC + SYSTEM_PROMPT_ASC + SYSTEM_PROMPT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC +} + +""" +Represents an update to a `PlatformAgent`. Fields that are set will be updated. +""" +input PlatformAgentPatch { + """Per-instance config overrides (model, temperature, tools)""" + config: JSON + createdAt: Datetime + id: UUID + + """If true, agent is deleted when its spawning thread is deleted""" + isEphemeral: Boolean + + """Display name for this agent instance""" + name: String + + """Human who owns/manages this agent""" + ownerId: UUID + + """Parent agent (for sub-agent delegation hierarchy)""" + parentId: UUID + + """Persona template this agent was created from""" + personaId: UUID + + """Agent lifecycle status: active, paused, terminated""" + status: String + + """System prompt override (NULL = inherit from persona)""" + systemPrompt: String + updatedAt: Datetime +} + +""" +Agent persona templates (role, system prompt, default skills/knowledge) +""" +type PlatformAgentPersona { + """Model preferences, temperature, tool access, constraints""" + config: JSON + createdAt: Datetime + createdBy: UUID + createdByPrincipal: UUID + + """Brief description of this persona role""" + description: String + id: UUID! + + """Whether this persona is available for use""" + isActive: Boolean! + + """Display name for this persona""" + name: String! + + """Reads and enables pagination through a set of `PlatformAgent`.""" + platformAgentsByPersonaId( + """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 `PlatformAgent`.""" + orderBy: [PlatformAgentOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformAgentFilter + ): PlatformAgentConnection! + + """Slugs of agent_resource entries to link when spawning""" + resources: [String] + + """Unique human-readable identifier for this persona""" + slug: String! + + """Default system prompt for agents using this persona""" + systemPrompt: String + updatedAt: Datetime + updatedBy: UUID + updatedByPrincipal: UUID +} + +"""A connection to a list of `PlatformAgentPersona` values.""" +type PlatformAgentPersonaConnection { + """ + A list of edges which contains the `PlatformAgentPersona` and cursor to aid in pagination. + """ + edges: [PlatformAgentPersonaEdge]! + + """A list of `PlatformAgentPersona` objects.""" + nodes: [PlatformAgentPersona]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `PlatformAgentPersona` you could get from the connection. + """ + totalCount: Int! +} + +"""A `PlatformAgentPersona` edge in the connection.""" +type PlatformAgentPersonaEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `PlatformAgentPersona` at the end of the edge.""" + node: PlatformAgentPersona +} + +""" +A filter to be used against `PlatformAgentPersona` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformAgentPersonaFilter { + """Checks for all expressions in this list.""" + and: [PlatformAgentPersonaFilter!] + + """Filter by the object’s `config` field.""" + config: JSONFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `createdBy` field.""" + createdBy: UUIDFilter + + """Filter by the object’s `createdByPrincipal` field.""" + createdByPrincipal: UUIDFilter + + """Filter by the object’s `description` field.""" + description: 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: PlatformAgentPersonaFilter + + """Checks for any expressions in this list.""" + or: [PlatformAgentPersonaFilter!] + + """Filter by the object’s `platformAgentsByPersonaId` relation.""" + platformAgentsByPersonaId: PlatformAgentPersonaToManyPlatformAgentFilter + + """`platformAgentsByPersonaId` exist.""" + platformAgentsByPersonaIdExist: Boolean + + """Filter by the object’s `resources` field.""" + resources: StringListFilter + + """Filter by the object’s `slug` field.""" + slug: StringFilter + + """Filter by the object’s `systemPrompt` field.""" + systemPrompt: StringFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + + """Filter by the object’s `updatedBy` field.""" + updatedBy: UUIDFilter + + """Filter by the object’s `updatedByPrincipal` field.""" + updatedByPrincipal: UUIDFilter +} + +"""An input for mutations affecting `PlatformAgentPersona`""" +input PlatformAgentPersonaInput { + """Model preferences, temperature, tool access, constraints""" + config: JSON + createdAt: Datetime + createdBy: UUID + createdByPrincipal: UUID + + """Brief description of this persona role""" + description: String + id: UUID + + """Whether this persona is available for use""" + isActive: Boolean + + """Display name for this persona""" + name: String! + + """Slugs of agent_resource entries to link when spawning""" + resources: [String] + + """Unique human-readable identifier for this persona""" + slug: String! + + """Default system prompt for agents using this persona""" + systemPrompt: String + updatedAt: Datetime + updatedBy: UUID + updatedByPrincipal: UUID +} + +"""Methods to use when ordering `PlatformAgentPersona`.""" +enum PlatformAgentPersonaOrderBy { + CONFIG_ASC + CONFIG_DESC + CREATED_AT_ASC + CREATED_AT_DESC + CREATED_BY_ASC + CREATED_BY_DESC + CREATED_BY_PRINCIPAL_ASC + CREATED_BY_PRINCIPAL_DESC + DESCRIPTION_ASC + DESCRIPTION_DESC + ID_ASC + ID_DESC + IS_ACTIVE_ASC + IS_ACTIVE_DESC + NAME_ASC + NAME_DESC + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + RESOURCES_ASC + RESOURCES_DESC + SLUG_ASC + SLUG_DESC + SYSTEM_PROMPT_ASC + SYSTEM_PROMPT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + UPDATED_BY_ASC + UPDATED_BY_DESC + UPDATED_BY_PRINCIPAL_ASC + UPDATED_BY_PRINCIPAL_DESC +} + +""" +Represents an update to a `PlatformAgentPersona`. Fields that are set will be updated. +""" +input PlatformAgentPersonaPatch { + """Model preferences, temperature, tool access, constraints""" + config: JSON + createdAt: Datetime + createdBy: UUID + createdByPrincipal: UUID + + """Brief description of this persona role""" + description: String + id: UUID + + """Whether this persona is available for use""" + isActive: Boolean + + """Display name for this persona""" + name: String + + """Slugs of agent_resource entries to link when spawning""" + resources: [String] + + """Unique human-readable identifier for this persona""" + slug: String + + """Default system prompt for agents using this persona""" + systemPrompt: String + updatedAt: Datetime + updatedBy: UUID + updatedByPrincipal: UUID +} + +""" +A filter to be used against many `PlatformAgent` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformAgentPersonaToManyPlatformAgentFilter { + """Filters to entities where every related entity matches.""" + every: PlatformAgentFilter + + """Filters to entities where no related entity matches.""" + none: PlatformAgentFilter + + """Filters to entities where at least one related entity matches.""" + some: PlatformAgentFilter +} + +""" +Workflow plan attached to an agent thread with ordered tasks and optional approval gates +""" +type PlatformAgentPlan { + createdAt: Datetime + + """Overall goal or context for this plan""" + description: String + id: UUID! + + """User who owns this plan""" + ownerId: UUID! + + """Reads and enables pagination through a set of `PlatformAgentTask`.""" + platformAgentTasksByPlanId( + """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 `PlatformAgentTask`.""" + orderBy: [PlatformAgentTaskOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformAgentTaskFilter + ): PlatformAgentTaskConnection! + + """Plan lifecycle: draft, active, completed, failed, cancelled""" + status: String! + + """ + Reads a single `PlatformAgentThread` that is related to this `PlatformAgentPlan`. + """ + thread: PlatformAgentThread + + """Foreign key to agent_thread""" + threadId: UUID! + + """Human-readable plan name""" + title: String! + updatedAt: Datetime + + """Who may read this plan, inherited from the thread""" + visibility: String! +} + +"""A connection to a list of `PlatformAgentPlan` values.""" +type PlatformAgentPlanConnection { + """ + A list of edges which contains the `PlatformAgentPlan` and cursor to aid in pagination. + """ + edges: [PlatformAgentPlanEdge]! + + """A list of `PlatformAgentPlan` objects.""" + nodes: [PlatformAgentPlan]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `PlatformAgentPlan` you could get from the connection. + """ + totalCount: Int! +} + +"""A `PlatformAgentPlan` edge in the connection.""" +type PlatformAgentPlanEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `PlatformAgentPlan` at the end of the edge.""" + node: PlatformAgentPlan +} + +""" +A filter to be used against `PlatformAgentPlan` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformAgentPlanFilter { + """Checks for all expressions in this list.""" + and: [PlatformAgentPlanFilter!] + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `description` field.""" + description: StringFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Negates the expression.""" + not: PlatformAgentPlanFilter + + """Checks for any expressions in this list.""" + or: [PlatformAgentPlanFilter!] + + """Filter by the object’s `ownerId` field.""" + ownerId: UUIDFilter + + """Filter by the object’s `platformAgentTasksByPlanId` relation.""" + platformAgentTasksByPlanId: PlatformAgentPlanToManyPlatformAgentTaskFilter + + """`platformAgentTasksByPlanId` exist.""" + platformAgentTasksByPlanIdExist: Boolean + + """Filter by the object’s `status` field.""" + status: StringFilter + + """Filter by the object’s `thread` relation.""" + thread: PlatformAgentThreadFilter + + """Filter by the object’s `threadId` field.""" + threadId: UUIDFilter + + """Filter by the object’s `title` field.""" + title: StringFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + + """Filter by the object’s `visibility` field.""" + visibility: StringFilter +} + +"""An input for mutations affecting `PlatformAgentPlan`""" +input PlatformAgentPlanInput { + createdAt: Datetime + + """Overall goal or context for this plan""" + description: String + id: UUID + + """User who owns this plan""" + ownerId: UUID + + """Plan lifecycle: draft, active, completed, failed, cancelled""" + status: String + + """Foreign key to agent_thread""" + threadId: UUID! + + """Human-readable plan name""" + title: String! + updatedAt: Datetime + + """Who may read this plan, inherited from the thread""" + visibility: String +} + +"""Methods to use when ordering `PlatformAgentPlan`.""" +enum PlatformAgentPlanOrderBy { + CREATED_AT_ASC + CREATED_AT_DESC + DESCRIPTION_ASC + DESCRIPTION_DESC + ID_ASC + ID_DESC + NATURAL + OWNER_ID_ASC + OWNER_ID_DESC + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + STATUS_ASC + STATUS_DESC + THREAD_ID_ASC + THREAD_ID_DESC + TITLE_ASC + TITLE_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + VISIBILITY_ASC + VISIBILITY_DESC +} + +""" +Represents an update to a `PlatformAgentPlan`. Fields that are set will be updated. +""" +input PlatformAgentPlanPatch { + createdAt: Datetime + + """Overall goal or context for this plan""" + description: String + id: UUID + + """User who owns this plan""" + ownerId: UUID + + """Plan lifecycle: draft, active, completed, failed, cancelled""" + status: String + + """Foreign key to agent_thread""" + threadId: UUID + + """Human-readable plan name""" + title: String + updatedAt: Datetime + + """Who may read this plan, inherited from the thread""" + visibility: String +} + +""" +A filter to be used against many `PlatformAgentTask` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformAgentPlanToManyPlatformAgentTaskFilter { + """Filters to entities where every related entity matches.""" + every: PlatformAgentTaskFilter + + """Filters to entities where no related entity matches.""" + none: PlatformAgentTaskFilter + + """Filters to entities where at least one related entity matches.""" + some: PlatformAgentTaskFilter +} + +"""Shared system prompt templates for agent conversations""" +type PlatformAgentPrompt { + """The system prompt template content""" + content: String! + createdAt: Datetime + createdBy: UUID + createdByPrincipal: UUID + + """What this prompt template is for""" + description: String + id: UUID! + + """Whether this is the default prompt for the entity/app""" + isDefault: Boolean! + + """Variables, tags, category metadata""" + metadata: JSON + + """Unique name for lookup (e.g. default, code-review, sales-assistant)""" + name: String! + + """Reads and enables pagination through a set of `PlatformAgentThread`.""" + platformAgentThreadsByPromptTemplateId( + """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 `PlatformAgentThread`.""" + orderBy: [PlatformAgentThreadOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformAgentThreadFilter + ): PlatformAgentThreadConnection! + updatedAt: Datetime + updatedBy: UUID + updatedByPrincipal: UUID +} + +"""A connection to a list of `PlatformAgentPrompt` values.""" +type PlatformAgentPromptConnection { + """ + A list of edges which contains the `PlatformAgentPrompt` and cursor to aid in pagination. + """ + edges: [PlatformAgentPromptEdge]! + + """A list of `PlatformAgentPrompt` objects.""" + nodes: [PlatformAgentPrompt]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `PlatformAgentPrompt` you could get from the connection. + """ + totalCount: Int! +} + +"""A `PlatformAgentPrompt` edge in the connection.""" +type PlatformAgentPromptEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `PlatformAgentPrompt` at the end of the edge.""" + node: PlatformAgentPrompt +} + +""" +A filter to be used against `PlatformAgentPrompt` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformAgentPromptFilter { + """Checks for all expressions in this list.""" + and: [PlatformAgentPromptFilter!] + + """Filter by the object’s `content` field.""" + content: StringFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `createdBy` field.""" + createdBy: UUIDFilter + + """Filter by the object’s `createdByPrincipal` field.""" + createdByPrincipal: UUIDFilter + + """Filter by the object’s `description` field.""" + description: StringFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `isDefault` field.""" + isDefault: BooleanFilter + + """Filter by the object’s `metadata` field.""" + metadata: JSONFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """Negates the expression.""" + not: PlatformAgentPromptFilter + + """Checks for any expressions in this list.""" + or: [PlatformAgentPromptFilter!] + + """ + Filter by the object’s `platformAgentThreadsByPromptTemplateId` relation. + """ + platformAgentThreadsByPromptTemplateId: PlatformAgentPromptToManyPlatformAgentThreadFilter + + """`platformAgentThreadsByPromptTemplateId` exist.""" + platformAgentThreadsByPromptTemplateIdExist: Boolean + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + + """Filter by the object’s `updatedBy` field.""" + updatedBy: UUIDFilter + + """Filter by the object’s `updatedByPrincipal` field.""" + updatedByPrincipal: UUIDFilter +} + +"""An input for mutations affecting `PlatformAgentPrompt`""" +input PlatformAgentPromptInput { + """The system prompt template content""" + content: String! + createdAt: Datetime + createdBy: UUID + createdByPrincipal: UUID + + """What this prompt template is for""" + description: String + id: UUID + + """Whether this is the default prompt for the entity/app""" + isDefault: Boolean + + """Variables, tags, category metadata""" + metadata: JSON + + """Unique name for lookup (e.g. default, code-review, sales-assistant)""" + name: String! + updatedAt: Datetime + updatedBy: UUID + updatedByPrincipal: UUID +} + +"""Methods to use when ordering `PlatformAgentPrompt`.""" +enum PlatformAgentPromptOrderBy { + CONTENT_ASC + CONTENT_DESC + CREATED_AT_ASC + CREATED_AT_DESC + CREATED_BY_ASC + CREATED_BY_DESC + CREATED_BY_PRINCIPAL_ASC + CREATED_BY_PRINCIPAL_DESC + DESCRIPTION_ASC + DESCRIPTION_DESC + ID_ASC + ID_DESC + IS_DEFAULT_ASC + IS_DEFAULT_DESC + METADATA_ASC + METADATA_DESC + NAME_ASC + NAME_DESC + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + UPDATED_BY_ASC + UPDATED_BY_DESC + UPDATED_BY_PRINCIPAL_ASC + UPDATED_BY_PRINCIPAL_DESC +} + +""" +Represents an update to a `PlatformAgentPrompt`. Fields that are set will be updated. +""" +input PlatformAgentPromptPatch { + """The system prompt template content""" + content: String + createdAt: Datetime + createdBy: UUID + createdByPrincipal: UUID + + """What this prompt template is for""" + description: String + id: UUID + + """Whether this is the default prompt for the entity/app""" + isDefault: Boolean + + """Variables, tags, category metadata""" + metadata: JSON + + """Unique name for lookup (e.g. default, code-review, sales-assistant)""" + name: String + updatedAt: Datetime + updatedBy: UUID + updatedByPrincipal: UUID +} + +""" +A filter to be used against many `PlatformAgentThread` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformAgentPromptToManyPlatformAgentThreadFilter { + """Filters to entities where every related entity matches.""" + every: PlatformAgentThreadFilter + + """Filters to entities where no related entity matches.""" + none: PlatformAgentThreadFilter + + """Filters to entities where at least one related entity matches.""" + some: PlatformAgentThreadFilter +} + +"""Unified skills and knowledge resources for agent retrieval""" +type PlatformAgentResource { + """Timestamp when this record was archived, NULL if active""" + archivedAt: Datetime + + """Full content (instructions for skills, reference text for knowledge)""" + body: String! + + """ + TRGM similarity when searching `body`. Returns null when no trgm search filter is active. + """ + bodyTrgmSimilarity: Float + createdAt: Datetime + createdBy: UUID + createdByPrincipal: UUID + + """Brief description of this resource""" + description: String + + """ + TRGM similarity when searching `description`. Returns null when no trgm search filter is active. + """ + descriptionTrgmSimilarity: Float + embedding: Vector + embeddingUpdatedAt: Datetime + + """ + VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. + """ + embeddingVectorDistance: Float + id: UUID! + + """Whether this resource is active and retrievable""" + isActive: Boolean! + + """Whether this record has been archived by the user""" + isArchived: Boolean! + + """Keywords for deterministic retrieval routing""" + keywords: [String] + + """Resource type: skill, knowledge, or convention""" + kind: String! + + """ + TRGM similarity when searching `kind`. Returns null when no trgm search filter is active. + """ + kindTrgmSimilarity: Float + + """Structured metadata: category, version, author, custom attributes""" + metadata: JSON + + """ + Reads and enables pagination through a set of `PlatformAgentResourceChunk`. + """ + platformAgentResourceChunks( + """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 `PlatformAgentResourceChunk`.""" + orderBy: [PlatformAgentResourceChunkOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformAgentResourceChunkFilter + ): PlatformAgentResourceChunkConnection! + search: FullText + + """ + Composite search relevance score (0..1, higher = more relevant). Computed using Reciprocal Rank Fusion (RRF) across all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. + """ + searchScore: Float + + """ + TSV rank when searching `search`. Returns null when no tsv search filter is active. + """ + searchTsvRank: Float + + """Unique human-readable identifier for portable references""" + slug: String! + + """Resource name or title""" + title: String! + + """ + TRGM similarity when searching `title`. Returns null when no trgm search filter is active. + """ + titleTrgmSimilarity: Float + updatedAt: Datetime + updatedBy: UUID + updatedByPrincipal: UUID +} + +type PlatformAgentResourceChunk { + body: String! + chunkIndex: Int! + createdAt: Datetime + embedding: Vector + + """ + VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. + """ + embeddingVectorDistance: Float + id: UUID! + metadata: JSON + + """ + Reads a single `PlatformAgentResource` that is related to this `PlatformAgentResourceChunk`. + """ + platformAgentResource: PlatformAgentResource + platformAgentResourceId: UUID! + + """ + Composite search relevance score (0..1, higher = more relevant). Computed using Reciprocal Rank Fusion (RRF) across all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. + """ + searchScore: Float + updatedAt: Datetime +} + +"""A connection to a list of `PlatformAgentResourceChunk` values.""" +type PlatformAgentResourceChunkConnection { + """ + A list of edges which contains the `PlatformAgentResourceChunk` and cursor to aid in pagination. + """ + edges: [PlatformAgentResourceChunkEdge]! + + """A list of `PlatformAgentResourceChunk` objects.""" + nodes: [PlatformAgentResourceChunk]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `PlatformAgentResourceChunk` you could get from the connection. + """ + totalCount: Int! +} + +"""A `PlatformAgentResourceChunk` edge in the connection.""" +type PlatformAgentResourceChunkEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `PlatformAgentResourceChunk` at the end of the edge.""" + node: PlatformAgentResourceChunk +} + +""" +A filter to be used against `PlatformAgentResourceChunk` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformAgentResourceChunkFilter { + """Checks for all expressions in this list.""" + and: [PlatformAgentResourceChunkFilter!] + + """Filter by the object’s `body` field.""" + body: StringFilter + + """Filter by the object’s `chunkIndex` field.""" + chunkIndex: IntFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `embedding` field.""" + embedding: VectorFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `metadata` field.""" + metadata: JSONFilter + + """Negates the expression.""" + not: PlatformAgentResourceChunkFilter + + """Checks for any expressions in this list.""" + or: [PlatformAgentResourceChunkFilter!] + + """Filter by the object’s `platformAgentResource` relation.""" + platformAgentResource: PlatformAgentResourceFilter + + """Filter by the object’s `platformAgentResourceId` field.""" + platformAgentResourceId: UUIDFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + + """VECTOR search on the `embedding` column.""" + vectorEmbedding: VectorNearbyInput +} + +"""An input for mutations affecting `PlatformAgentResourceChunk`""" +input PlatformAgentResourceChunkInput { + body: String! + chunkIndex: Int + createdAt: Datetime + embedding: Vector + + """ + Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. + """ + embeddingText: String + id: UUID + metadata: JSON + platformAgentResourceId: UUID! + updatedAt: Datetime +} + +"""Methods to use when ordering `PlatformAgentResourceChunk`.""" +enum PlatformAgentResourceChunkOrderBy { + BODY_ASC + BODY_DESC + CHUNK_INDEX_ASC + CHUNK_INDEX_DESC + CREATED_AT_ASC + CREATED_AT_DESC + EMBEDDING_ASC + EMBEDDING_DESC + EMBEDDING_VECTOR_DISTANCE_ASC + EMBEDDING_VECTOR_DISTANCE_DESC + ID_ASC + ID_DESC + METADATA_ASC + METADATA_DESC + NATURAL + PLATFORM_AGENT_RESOURCE_ID_ASC + PLATFORM_AGENT_RESOURCE_ID_DESC + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + SEARCH_SCORE_ASC + SEARCH_SCORE_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC +} + +""" +Represents an update to a `PlatformAgentResourceChunk`. Fields that are set will be updated. +""" +input PlatformAgentResourceChunkPatch { + body: String + chunkIndex: Int + createdAt: Datetime + embedding: Vector + + """ + Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. + """ + embeddingText: String + id: UUID + metadata: JSON + platformAgentResourceId: UUID + updatedAt: Datetime +} + +"""A connection to a list of `PlatformAgentResource` values.""" +type PlatformAgentResourceConnection { + """ + A list of edges which contains the `PlatformAgentResource` and cursor to aid in pagination. + """ + edges: [PlatformAgentResourceEdge]! + + """A list of `PlatformAgentResource` objects.""" + nodes: [PlatformAgentResource]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `PlatformAgentResource` you could get from the connection. + """ + totalCount: Int! +} + +"""A `PlatformAgentResource` edge in the connection.""" +type PlatformAgentResourceEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `PlatformAgentResource` at the end of the edge.""" + node: PlatformAgentResource +} + +""" +A filter to be used against `PlatformAgentResource` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformAgentResourceFilter { + """Checks for all expressions in this list.""" + and: [PlatformAgentResourceFilter!] + + """Filter by the object’s `archivedAt` field.""" + archivedAt: DatetimeFilter + + """Filter by the object’s `body` field.""" + body: StringTrgmFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `createdBy` field.""" + createdBy: UUIDFilter + + """Filter by the object’s `createdByPrincipal` field.""" + createdByPrincipal: UUIDFilter + + """Filter by the object’s `description` field.""" + description: StringTrgmFilter + + """Filter by the object’s `embedding` field.""" + embedding: VectorFilter + + """Filter by the object’s `embeddingUpdatedAt` field.""" + embeddingUpdatedAt: DatetimeFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `isActive` field.""" + isActive: BooleanFilter + + """Filter by the object’s `isArchived` field.""" + isArchived: BooleanFilter + + """Filter by the object’s `keywords` field.""" + keywords: StringListFilter + + """Filter by the object’s `kind` field.""" + kind: StringTrgmFilter + + """Filter by the object’s `metadata` field.""" + metadata: JSONFilter + + """Negates the expression.""" + not: PlatformAgentResourceFilter + + """Checks for any expressions in this list.""" + or: [PlatformAgentResourceFilter!] + + """Filter by the object’s `platformAgentResourceChunks` relation.""" + platformAgentResourceChunks: PlatformAgentResourceToManyPlatformAgentResourceChunkFilter + + """`platformAgentResourceChunks` exist.""" + platformAgentResourceChunksExist: Boolean + + """Filter by the object’s `search` field.""" + search: FullTextFilter + + """Filter by the object’s `slug` field.""" + slug: StringTrgmFilter + + """Filter by the object’s `title` field.""" + title: StringTrgmFilter + + """TRGM search on the `body` column.""" + trgmBody: TrgmSearchInput + + """TRGM search on the `description` column.""" + trgmDescription: TrgmSearchInput + + """TRGM search on the `kind` column.""" + trgmKind: TrgmSearchInput + + """TRGM search on the `title` column.""" + trgmTitle: TrgmSearchInput + + """TSV search on the `search` column.""" + tsvSearch: String + + """ + Composite unified search. Provide a search string and it will be dispatched to + all text-compatible search algorithms (tsvector, BM25, pg_trgm) + simultaneously. When the LLM plugin is active, pgvector also participates via + auto-embedding. Rows matching ANY algorithm are returned. All matching score + fields are populated. + """ + unifiedSearch: String + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + + """Filter by the object’s `updatedBy` field.""" + updatedBy: UUIDFilter + + """Filter by the object’s `updatedByPrincipal` field.""" + updatedByPrincipal: UUIDFilter + + """VECTOR search on the `embedding` column.""" + vectorEmbedding: VectorNearbyInput +} + +"""An input for mutations affecting `PlatformAgentResource`""" +input PlatformAgentResourceInput { + """Timestamp when this record was archived, NULL if active""" + archivedAt: Datetime + + """Full content (instructions for skills, reference text for knowledge)""" + body: String! + createdAt: Datetime + createdBy: UUID + createdByPrincipal: UUID + + """Brief description of this resource""" + description: String + embedding: Vector + + """ + Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. + """ + embeddingText: String + id: UUID + + """Whether this resource is active and retrievable""" + isActive: Boolean + + """Whether this record has been archived by the user""" + isArchived: Boolean + + """Keywords for deterministic retrieval routing""" + keywords: [String] + + """Resource type: skill, knowledge, or convention""" + kind: String + + """Structured metadata: category, version, author, custom attributes""" + metadata: JSON + + """Unique human-readable identifier for portable references""" + slug: String! + + """Resource name or title""" + title: String! + updatedAt: Datetime + updatedBy: UUID + updatedByPrincipal: UUID +} + +"""Methods to use when ordering `PlatformAgentResource`.""" +enum PlatformAgentResourceOrderBy { + ARCHIVED_AT_ASC + ARCHIVED_AT_DESC + BODY_ASC + BODY_DESC + BODY_TRGM_SIMILARITY_ASC + BODY_TRGM_SIMILARITY_DESC + CREATED_AT_ASC + CREATED_AT_DESC + CREATED_BY_ASC + CREATED_BY_DESC + CREATED_BY_PRINCIPAL_ASC + CREATED_BY_PRINCIPAL_DESC + DESCRIPTION_ASC + DESCRIPTION_DESC + DESCRIPTION_TRGM_SIMILARITY_ASC + DESCRIPTION_TRGM_SIMILARITY_DESC + EMBEDDING_ASC + EMBEDDING_DESC + EMBEDDING_UPDATED_AT_ASC + EMBEDDING_UPDATED_AT_DESC + EMBEDDING_VECTOR_DISTANCE_ASC + EMBEDDING_VECTOR_DISTANCE_DESC + ID_ASC + ID_DESC + IS_ACTIVE_ASC + IS_ACTIVE_DESC + IS_ARCHIVED_ASC + IS_ARCHIVED_DESC + KEYWORDS_ASC + KEYWORDS_DESC + KIND_ASC + KIND_DESC + KIND_TRGM_SIMILARITY_ASC + KIND_TRGM_SIMILARITY_DESC + METADATA_ASC + METADATA_DESC + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + SEARCH_ASC + SEARCH_DESC + SEARCH_SCORE_ASC + SEARCH_SCORE_DESC + SEARCH_TSV_RANK_ASC + SEARCH_TSV_RANK_DESC + SLUG_ASC + SLUG_DESC + TITLE_ASC + TITLE_DESC + TITLE_TRGM_SIMILARITY_ASC + TITLE_TRGM_SIMILARITY_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + UPDATED_BY_ASC + UPDATED_BY_DESC + UPDATED_BY_PRINCIPAL_ASC + UPDATED_BY_PRINCIPAL_DESC +} + +""" +Represents an update to a `PlatformAgentResource`. Fields that are set will be updated. +""" +input PlatformAgentResourcePatch { + """Timestamp when this record was archived, NULL if active""" + archivedAt: Datetime + + """Full content (instructions for skills, reference text for knowledge)""" + body: String + createdAt: Datetime + createdBy: UUID + createdByPrincipal: UUID + + """Brief description of this resource""" + description: String + embedding: Vector + + """ + Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. + """ + embeddingText: String + id: UUID + + """Whether this resource is active and retrievable""" + isActive: Boolean + + """Whether this record has been archived by the user""" + isArchived: Boolean + + """Keywords for deterministic retrieval routing""" + keywords: [String] + + """Resource type: skill, knowledge, or convention""" + kind: String + + """Structured metadata: category, version, author, custom attributes""" + metadata: JSON + + """Unique human-readable identifier for portable references""" + slug: String + + """Resource name or title""" + title: String + updatedAt: Datetime + updatedBy: UUID + updatedByPrincipal: UUID +} + +""" +A filter to be used against many `PlatformAgentResourceChunk` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformAgentResourceToManyPlatformAgentResourceChunkFilter { + """Filters to entities where every related entity matches.""" + every: PlatformAgentResourceChunkFilter + + """Filters to entities where no related entity matches.""" + none: PlatformAgentResourceChunkFilter + + """Filters to entities where at least one related entity matches.""" + some: PlatformAgentResourceChunkFilter +} + +""" +One supervised agent run of a thread: its placement, workspace, cursor and artifacts +""" +type PlatformAgentRun { + """User who invoked this run (audit/provenance; billing is entity_id)""" + actorId: UUID! + + """What the run produced: commits, diffs, pull requests, usage totals""" + artifacts: JSON + + """Attempt number within this run lineage""" + attempt: Int! + + """Commit the run started from""" + baseCommit: String + + """Branch the run commits to""" + branch: String + createdAt: Datetime + + """Tenant database this run is attributed to (usage/billing attribution)""" + databaseId: UUID! + + """When a supervisor should consider this run abandoned""" + deadlineAt: Datetime + + """ + Entity billed for this run: an org the actor invoked on behalf of, or the actor themselves + """ + entityId: UUID! + + """Failure reason when status is failed""" + error: String + + """ + Execution currently attached to this run, by id and without a foreign key; null when the run holds no compute + """ + executionId: UUID + + """When the run reached a terminal status""" + finishedAt: Datetime + + """Commit the run has reached""" + headCommit: String + id: UUID! + + """Highest event seq appended for this run; 0 before the first event""" + lastEventSeq: Int! + + """ + Run this one retries, by id and without a foreign key so lineage survives pruning + """ + parentRunId: UUID + + """Where this run executes: cloud (a job) or local (an embedded host)""" + placement: String! + + """Reads and enables pagination through a set of `PlatformAgentEvent`.""" + platformAgentEventsByRunId( + """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 `PlatformAgentEvent`.""" + orderBy: [PlatformAgentEventOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformAgentEventFilter + ): PlatformAgentEventConnection! + + """Reads and enables pagination through a set of `PlatformAgentMessage`.""" + platformAgentMessagesByDeliveredRunId( + """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 `PlatformAgentMessage`.""" + orderBy: [PlatformAgentMessageOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformAgentMessageFilter + ): PlatformAgentMessageConnection! + + """ + Reads and enables pagination through a set of `PlatformAgentRunWorkspace`. + """ + platformAgentRunWorkspacesByRunId( + """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 `PlatformAgentRunWorkspace`.""" + orderBy: [PlatformAgentRunWorkspaceOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformAgentRunWorkspaceFilter + ): PlatformAgentRunWorkspaceConnection! + + """ + Principal that invoked this run; equals actor_id when the actor acted directly + """ + principalId: UUID + + """Git remote the run works against — the workspace sync protocol""" + repoUrl: String + + """When the run began executing""" + startedAt: Datetime + + """ + Lifecycle state: pending, running, waiting, idle, interrupted, succeeded, failed, cancelled + """ + status: String! + + """ + Reads a single `PlatformAgentThread` that is related to this `PlatformAgentRun`. + """ + thread: PlatformAgentThread + + """Foreign key to agent_thread""" + threadId: UUID! + + """ + Token counts this run accumulated, per model, as the runtime reports them; null until settled + """ + tokenUsage: JSON + + """ + Settled cost of this run in the billing currency, summarising its metered rows; null until settled + """ + totalCost: BigFloat + updatedAt: Datetime + + """Who may read this run, inherited from the thread""" + visibility: String! +} + +"""A connection to a list of `PlatformAgentRun` values.""" +type PlatformAgentRunConnection { + """ + A list of edges which contains the `PlatformAgentRun` and cursor to aid in pagination. + """ + edges: [PlatformAgentRunEdge]! + + """A list of `PlatformAgentRun` objects.""" + nodes: [PlatformAgentRun]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `PlatformAgentRun` you could get from the connection. + """ + totalCount: Int! +} + +"""A `PlatformAgentRun` edge in the connection.""" +type PlatformAgentRunEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `PlatformAgentRun` at the end of the edge.""" + node: PlatformAgentRun +} + +""" +A filter to be used against `PlatformAgentRun` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformAgentRunFilter { + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter + + """Checks for all expressions in this list.""" + and: [PlatformAgentRunFilter!] + + """Filter by the object’s `artifacts` field.""" + artifacts: JSONFilter + + """Filter by the object’s `attempt` field.""" + attempt: IntFilter + + """Filter by the object’s `baseCommit` field.""" + baseCommit: StringFilter + + """Filter by the object’s `branch` field.""" + branch: StringFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `deadlineAt` field.""" + deadlineAt: DatetimeFilter + + """Filter by the object’s `entityId` field.""" + entityId: UUIDFilter + + """Filter by the object’s `error` field.""" + error: StringFilter + + """Filter by the object’s `executionId` field.""" + executionId: UUIDFilter + + """Filter by the object’s `finishedAt` field.""" + finishedAt: DatetimeFilter + + """Filter by the object’s `headCommit` field.""" + headCommit: StringFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `lastEventSeq` field.""" + lastEventSeq: IntFilter + + """Negates the expression.""" + not: PlatformAgentRunFilter + + """Checks for any expressions in this list.""" + or: [PlatformAgentRunFilter!] + + """Filter by the object’s `parentRunId` field.""" + parentRunId: UUIDFilter + + """Filter by the object’s `placement` field.""" + placement: StringFilter + + """Filter by the object’s `platformAgentEventsByRunId` relation.""" + platformAgentEventsByRunId: PlatformAgentRunToManyPlatformAgentEventFilter + + """`platformAgentEventsByRunId` exist.""" + platformAgentEventsByRunIdExist: Boolean + + """ + Filter by the object’s `platformAgentMessagesByDeliveredRunId` relation. + """ + platformAgentMessagesByDeliveredRunId: PlatformAgentRunToManyPlatformAgentMessageFilter + + """`platformAgentMessagesByDeliveredRunId` exist.""" + platformAgentMessagesByDeliveredRunIdExist: Boolean + + """Filter by the object’s `platformAgentRunWorkspacesByRunId` relation.""" + platformAgentRunWorkspacesByRunId: PlatformAgentRunToManyPlatformAgentRunWorkspaceFilter + + """`platformAgentRunWorkspacesByRunId` exist.""" + platformAgentRunWorkspacesByRunIdExist: Boolean + + """Filter by the object’s `principalId` field.""" + principalId: UUIDFilter + + """Filter by the object’s `repoUrl` field.""" + repoUrl: StringFilter + + """Filter by the object’s `startedAt` field.""" + startedAt: DatetimeFilter + + """Filter by the object’s `status` field.""" + status: StringFilter + + """Filter by the object’s `thread` relation.""" + thread: PlatformAgentThreadFilter + + """Filter by the object’s `threadId` field.""" + threadId: UUIDFilter + + """Filter by the object’s `tokenUsage` field.""" + tokenUsage: JSONFilter + + """Filter by the object’s `totalCost` field.""" + totalCost: BigFloatFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + + """Filter by the object’s `visibility` field.""" + visibility: StringFilter +} + +"""An input for mutations affecting `PlatformAgentRun`""" +input PlatformAgentRunInput { + """User who invoked this run (audit/provenance; billing is entity_id)""" + actorId: UUID + + """What the run produced: commits, diffs, pull requests, usage totals""" + artifacts: JSON + + """Attempt number within this run lineage""" + attempt: Int + + """Commit the run started from""" + baseCommit: String + + """Branch the run commits to""" + branch: String + createdAt: Datetime + + """Tenant database this run is attributed to (usage/billing attribution)""" + databaseId: UUID + + """When a supervisor should consider this run abandoned""" + deadlineAt: Datetime + + """ + Entity billed for this run: an org the actor invoked on behalf of, or the actor themselves + """ + entityId: UUID + + """Failure reason when status is failed""" + error: String + + """ + Execution currently attached to this run, by id and without a foreign key; null when the run holds no compute + """ + executionId: UUID + + """When the run reached a terminal status""" + finishedAt: Datetime + + """Commit the run has reached""" + headCommit: String + id: UUID + + """Highest event seq appended for this run; 0 before the first event""" + lastEventSeq: Int + + """ + Run this one retries, by id and without a foreign key so lineage survives pruning + """ + parentRunId: UUID + + """Where this run executes: cloud (a job) or local (an embedded host)""" + placement: String + + """ + Principal that invoked this run; equals actor_id when the actor acted directly + """ + principalId: UUID + + """Git remote the run works against — the workspace sync protocol""" + repoUrl: String + + """When the run began executing""" + startedAt: Datetime + + """ + Lifecycle state: pending, running, waiting, idle, interrupted, succeeded, failed, cancelled + """ + status: String + + """Foreign key to agent_thread""" + threadId: UUID! + + """ + Token counts this run accumulated, per model, as the runtime reports them; null until settled + """ + tokenUsage: JSON + + """ + Settled cost of this run in the billing currency, summarising its metered rows; null until settled + """ + totalCost: BigFloat + updatedAt: Datetime + + """Who may read this run, inherited from the thread""" + visibility: String +} + +"""Methods to use when ordering `PlatformAgentRun`.""" +enum PlatformAgentRunOrderBy { + ACTOR_ID_ASC + ACTOR_ID_DESC + ARTIFACTS_ASC + ARTIFACTS_DESC + ATTEMPT_ASC + ATTEMPT_DESC + BASE_COMMIT_ASC + BASE_COMMIT_DESC + BRANCH_ASC + BRANCH_DESC + CREATED_AT_ASC + CREATED_AT_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + DEADLINE_AT_ASC + DEADLINE_AT_DESC + ENTITY_ID_ASC + ENTITY_ID_DESC + ERROR_ASC + ERROR_DESC + EXECUTION_ID_ASC + EXECUTION_ID_DESC + FINISHED_AT_ASC + FINISHED_AT_DESC + HEAD_COMMIT_ASC + HEAD_COMMIT_DESC + ID_ASC + ID_DESC + LAST_EVENT_SEQ_ASC + LAST_EVENT_SEQ_DESC + NATURAL + PARENT_RUN_ID_ASC + PARENT_RUN_ID_DESC + PLACEMENT_ASC + PLACEMENT_DESC + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + PRINCIPAL_ID_ASC + PRINCIPAL_ID_DESC + REPO_URL_ASC + REPO_URL_DESC + STARTED_AT_ASC + STARTED_AT_DESC + STATUS_ASC + STATUS_DESC + THREAD_ID_ASC + THREAD_ID_DESC + TOKEN_USAGE_ASC + TOKEN_USAGE_DESC + TOTAL_COST_ASC + TOTAL_COST_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + VISIBILITY_ASC + VISIBILITY_DESC +} + +""" +Represents an update to a `PlatformAgentRun`. Fields that are set will be updated. +""" +input PlatformAgentRunPatch { + """User who invoked this run (audit/provenance; billing is entity_id)""" + actorId: UUID + + """What the run produced: commits, diffs, pull requests, usage totals""" + artifacts: JSON + + """Attempt number within this run lineage""" + attempt: Int + + """Commit the run started from""" + baseCommit: String + + """Branch the run commits to""" + branch: String + createdAt: Datetime + + """Tenant database this run is attributed to (usage/billing attribution)""" + databaseId: UUID + + """When a supervisor should consider this run abandoned""" + deadlineAt: Datetime + + """ + Entity billed for this run: an org the actor invoked on behalf of, or the actor themselves + """ + entityId: UUID + + """Failure reason when status is failed""" + error: String + + """ + Execution currently attached to this run, by id and without a foreign key; null when the run holds no compute + """ + executionId: UUID + + """When the run reached a terminal status""" + finishedAt: Datetime + + """Commit the run has reached""" + headCommit: String + id: UUID + + """Highest event seq appended for this run; 0 before the first event""" + lastEventSeq: Int + + """ + Run this one retries, by id and without a foreign key so lineage survives pruning + """ + parentRunId: UUID + + """Where this run executes: cloud (a job) or local (an embedded host)""" + placement: String + + """ + Principal that invoked this run; equals actor_id when the actor acted directly + """ + principalId: UUID + + """Git remote the run works against — the workspace sync protocol""" + repoUrl: String + + """When the run began executing""" + startedAt: Datetime + + """ + Lifecycle state: pending, running, waiting, idle, interrupted, succeeded, failed, cancelled + """ + status: String + + """Foreign key to agent_thread""" + threadId: UUID + + """ + Token counts this run accumulated, per model, as the runtime reports them; null until settled + """ + tokenUsage: JSON + + """ + Settled cost of this run in the billing currency, summarising its metered rows; null until settled + """ + totalCost: BigFloat + updatedAt: Datetime + + """Who may read this run, inherited from the thread""" + visibility: String +} + +""" +A filter to be used against many `PlatformAgentEvent` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformAgentRunToManyPlatformAgentEventFilter { + """Filters to entities where every related entity matches.""" + every: PlatformAgentEventFilter + + """Filters to entities where no related entity matches.""" + none: PlatformAgentEventFilter + + """Filters to entities where at least one related entity matches.""" + some: PlatformAgentEventFilter +} + +""" +A filter to be used against many `PlatformAgentMessage` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformAgentRunToManyPlatformAgentMessageFilter { + """Filters to entities where every related entity matches.""" + every: PlatformAgentMessageFilter + + """Filters to entities where no related entity matches.""" + none: PlatformAgentMessageFilter + + """Filters to entities where at least one related entity matches.""" + some: PlatformAgentMessageFilter +} + +""" +A filter to be used against many `PlatformAgentRunWorkspace` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformAgentRunToManyPlatformAgentRunWorkspaceFilter { + """Filters to entities where every related entity matches.""" + every: PlatformAgentRunWorkspaceFilter + + """Filters to entities where no related entity matches.""" + none: PlatformAgentRunWorkspaceFilter + + """Filters to entities where at least one related entity matches.""" + some: PlatformAgentRunWorkspaceFilter +} + +""" +One repository an agent run works in: its remote, branch, commits and how the work is published +""" +type PlatformAgentRunWorkspace { + """User whose run this workspace belongs to, inherited from the run""" + actorId: UUID! + + """ + What publishing this workspace produced: diff stats, a pull request, a stored patch + """ + artifacts: JSON + + """Branch the workspace was cut from, and what a pull request merges into""" + baseBranch: String! + + """Commit the workspace was cut from; fixed once recorded""" + baseCommit: String + + """Branch this run commits to in this repository""" + branch: String! + + """When an execution first cloned this workspace""" + clonedAt: Datetime + createdAt: Datetime + + """Commit the work in this repository has reached""" + headCommit: String + id: UUID! + + """ + When an execution last worked in this workspace; what a reclaim policy reads + """ + lastUsedAt: Datetime + + """Position of this workspace among the run's, 1-based and in clone order""" + ordinal: Int! + + """ + Git host this workspace was cloned from, as the runtime names it: github, local + """ + provider: String! + + """How the work is published: pull_request, push, patch_artifact or none""" + publication: String! + + """Repository as its provider names it (owner/name)""" + repo: String! + + """ + Catalog repository this workspace was cloned from, when the platform hosts it + """ + repositoryId: UUID + + """ + Reads a single `PlatformAgentRun` that is related to this `PlatformAgentRunWorkspace`. + """ + run: PlatformAgentRun + + """Foreign key to agent_run""" + runId: UUID! + + """ + Whether the tree still exists: active (on disk), cold (reclaimed, restorable from head_commit) or purged + """ + state: String! + updatedAt: Datetime + + """Who may read this workspace, inherited from the run""" + visibility: String! +} + +"""A connection to a list of `PlatformAgentRunWorkspace` values.""" +type PlatformAgentRunWorkspaceConnection { + """ + A list of edges which contains the `PlatformAgentRunWorkspace` and cursor to aid in pagination. + """ + edges: [PlatformAgentRunWorkspaceEdge]! + + """A list of `PlatformAgentRunWorkspace` objects.""" + nodes: [PlatformAgentRunWorkspace]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `PlatformAgentRunWorkspace` you could get from the connection. + """ + totalCount: Int! +} + +"""A `PlatformAgentRunWorkspace` edge in the connection.""" +type PlatformAgentRunWorkspaceEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `PlatformAgentRunWorkspace` at the end of the edge.""" + node: PlatformAgentRunWorkspace +} + +""" +A filter to be used against `PlatformAgentRunWorkspace` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformAgentRunWorkspaceFilter { + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter + + """Checks for all expressions in this list.""" + and: [PlatformAgentRunWorkspaceFilter!] + + """Filter by the object’s `artifacts` field.""" + artifacts: JSONFilter + + """Filter by the object’s `baseBranch` field.""" + baseBranch: StringFilter + + """Filter by the object’s `baseCommit` field.""" + baseCommit: StringFilter + + """Filter by the object’s `branch` field.""" + branch: StringFilter + + """Filter by the object’s `clonedAt` field.""" + clonedAt: DatetimeFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `headCommit` field.""" + headCommit: StringFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `lastUsedAt` field.""" + lastUsedAt: DatetimeFilter + + """Negates the expression.""" + not: PlatformAgentRunWorkspaceFilter + + """Checks for any expressions in this list.""" + or: [PlatformAgentRunWorkspaceFilter!] + + """Filter by the object’s `ordinal` field.""" + ordinal: IntFilter + + """Filter by the object’s `provider` field.""" + provider: StringFilter + + """Filter by the object’s `publication` field.""" + publication: StringFilter + + """Filter by the object’s `repo` field.""" + repo: StringFilter + + """Filter by the object’s `repositoryId` field.""" + repositoryId: UUIDFilter + + """Filter by the object’s `run` relation.""" + run: PlatformAgentRunFilter + + """Filter by the object’s `runId` field.""" + runId: UUIDFilter + + """Filter by the object’s `state` field.""" + state: StringFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + + """Filter by the object’s `visibility` field.""" + visibility: StringFilter +} + +"""An input for mutations affecting `PlatformAgentRunWorkspace`""" +input PlatformAgentRunWorkspaceInput { + """User whose run this workspace belongs to, inherited from the run""" + actorId: UUID + + """ + What publishing this workspace produced: diff stats, a pull request, a stored patch + """ + artifacts: JSON + + """Branch the workspace was cut from, and what a pull request merges into""" + baseBranch: String! + + """Commit the workspace was cut from; fixed once recorded""" + baseCommit: String + + """Branch this run commits to in this repository""" + branch: String! + + """When an execution first cloned this workspace""" + clonedAt: Datetime + createdAt: Datetime + + """Commit the work in this repository has reached""" + headCommit: String + id: UUID + + """ + When an execution last worked in this workspace; what a reclaim policy reads + """ + lastUsedAt: Datetime + + """Position of this workspace among the run's, 1-based and in clone order""" + ordinal: Int + + """ + Git host this workspace was cloned from, as the runtime names it: github, local + """ + provider: String! + + """How the work is published: pull_request, push, patch_artifact or none""" + publication: String + + """Repository as its provider names it (owner/name)""" + repo: String! + + """ + Catalog repository this workspace was cloned from, when the platform hosts it + """ + repositoryId: UUID + + """Foreign key to agent_run""" + runId: UUID! + + """ + Whether the tree still exists: active (on disk), cold (reclaimed, restorable from head_commit) or purged + """ + state: String + updatedAt: Datetime + + """Who may read this workspace, inherited from the run""" + visibility: String +} + +"""Methods to use when ordering `PlatformAgentRunWorkspace`.""" +enum PlatformAgentRunWorkspaceOrderBy { + ACTOR_ID_ASC + ACTOR_ID_DESC + ARTIFACTS_ASC + ARTIFACTS_DESC + BASE_BRANCH_ASC + BASE_BRANCH_DESC + BASE_COMMIT_ASC + BASE_COMMIT_DESC + BRANCH_ASC + BRANCH_DESC + CLONED_AT_ASC + CLONED_AT_DESC + CREATED_AT_ASC + CREATED_AT_DESC + HEAD_COMMIT_ASC + HEAD_COMMIT_DESC + ID_ASC + ID_DESC + LAST_USED_AT_ASC + LAST_USED_AT_DESC + NATURAL + ORDINAL_ASC + ORDINAL_DESC + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + PROVIDER_ASC + PROVIDER_DESC + PUBLICATION_ASC + PUBLICATION_DESC + REPOSITORY_ID_ASC + REPOSITORY_ID_DESC + REPO_ASC + REPO_DESC + RUN_ID_ASC + RUN_ID_DESC + STATE_ASC + STATE_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + VISIBILITY_ASC + VISIBILITY_DESC +} + +""" +Represents an update to a `PlatformAgentRunWorkspace`. Fields that are set will be updated. +""" +input PlatformAgentRunWorkspacePatch { + """User whose run this workspace belongs to, inherited from the run""" + actorId: UUID + + """ + What publishing this workspace produced: diff stats, a pull request, a stored patch + """ + artifacts: JSON + + """Branch the workspace was cut from, and what a pull request merges into""" + baseBranch: String + + """Commit the workspace was cut from; fixed once recorded""" + baseCommit: String + + """Branch this run commits to in this repository""" + branch: String + + """When an execution first cloned this workspace""" + clonedAt: Datetime + createdAt: Datetime + + """Commit the work in this repository has reached""" + headCommit: String + id: UUID + + """ + When an execution last worked in this workspace; what a reclaim policy reads + """ + lastUsedAt: Datetime + + """Position of this workspace among the run's, 1-based and in clone order""" + ordinal: Int + + """ + Git host this workspace was cloned from, as the runtime names it: github, local + """ + provider: String + + """How the work is published: pull_request, push, patch_artifact or none""" + publication: String + + """Repository as its provider names it (owner/name)""" + repo: String + + """ + Catalog repository this workspace was cloned from, when the platform hosts it + """ + repositoryId: UUID + + """Foreign key to agent_run""" + runId: UUID + + """ + Whether the tree still exists: active (on disk), cold (reclaimed, restorable from head_commit) or purged + """ + state: String + updatedAt: Datetime + + """Who may read this workspace, inherited from the run""" + visibility: String +} + +"""Task within a plan, with ordering and optional approval gates""" +type PlatformAgentTask { + """User who authored this task""" + actorId: UUID! + + """Reviewer feedback or reason for the decision""" + approvalFeedback: String + + """ + Approval decision: pending, approved, rejected (NULL if not an approval task) + """ + approvalStatus: String + + """Timestamp of the approval or rejection decision""" + approvedAt: Datetime + + """User who approved or rejected this task""" + approvedBy: UUID + createdAt: Datetime + + """Natural-language description of the work to do""" + description: String! + + """Error message captured when the task failed""" + error: String + id: UUID! + + """Position within the plan (for ordered task lists)""" + orderIndex: Int + + """ + Reads a single `PlatformAgentPlan` that is related to this `PlatformAgentTask`. + """ + plan: PlatformAgentPlan + + """Foreign key to agent_plan""" + planId: UUID! + + """Whether this task is an approval gate requiring human decision""" + requiresApproval: Boolean! + + """Who created the task: agent or user""" + source: String! + + """Current status of this task""" + status: String! + updatedAt: Datetime + + """Who may read this task, inherited from its parent""" + visibility: String! +} + +"""A connection to a list of `PlatformAgentTask` values.""" +type PlatformAgentTaskConnection { + """ + A list of edges which contains the `PlatformAgentTask` and cursor to aid in pagination. + """ + edges: [PlatformAgentTaskEdge]! + + """A list of `PlatformAgentTask` objects.""" + nodes: [PlatformAgentTask]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `PlatformAgentTask` you could get from the connection. + """ + totalCount: Int! +} + +"""A `PlatformAgentTask` edge in the connection.""" +type PlatformAgentTaskEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `PlatformAgentTask` at the end of the edge.""" + node: PlatformAgentTask +} + +""" +A filter to be used against `PlatformAgentTask` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformAgentTaskFilter { + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter + + """Checks for all expressions in this list.""" + and: [PlatformAgentTaskFilter!] + + """Filter by the object’s `approvalFeedback` field.""" + approvalFeedback: StringFilter + + """Filter by the object’s `approvalStatus` field.""" + approvalStatus: StringFilter + + """Filter by the object’s `approvedAt` field.""" + approvedAt: DatetimeFilter + + """Filter by the object’s `approvedBy` field.""" + approvedBy: UUIDFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `description` field.""" + description: StringFilter + + """Filter by the object’s `error` field.""" + error: StringFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Negates the expression.""" + not: PlatformAgentTaskFilter + + """Checks for any expressions in this list.""" + or: [PlatformAgentTaskFilter!] + + """Filter by the object’s `orderIndex` field.""" + orderIndex: IntFilter + + """Filter by the object’s `plan` relation.""" + plan: PlatformAgentPlanFilter + + """Filter by the object’s `planId` field.""" + planId: UUIDFilter + + """Filter by the object’s `requiresApproval` field.""" + requiresApproval: BooleanFilter + + """Filter by the object’s `source` field.""" + source: StringFilter + + """Filter by the object’s `status` field.""" + status: StringFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + + """Filter by the object’s `visibility` field.""" + visibility: StringFilter +} + +"""An input for mutations affecting `PlatformAgentTask`""" +input PlatformAgentTaskInput { + """User who authored this task""" + actorId: UUID + + """Reviewer feedback or reason for the decision""" + approvalFeedback: String + + """ + Approval decision: pending, approved, rejected (NULL if not an approval task) + """ + approvalStatus: String + + """Timestamp of the approval or rejection decision""" + approvedAt: Datetime + + """User who approved or rejected this task""" + approvedBy: UUID + createdAt: Datetime + + """Natural-language description of the work to do""" + description: String! + + """Error message captured when the task failed""" + error: String + id: UUID + + """Position within the plan (for ordered task lists)""" + orderIndex: Int + + """Foreign key to agent_plan""" + planId: UUID! + + """Whether this task is an approval gate requiring human decision""" + requiresApproval: Boolean + + """Who created the task: agent or user""" + source: String + + """Current status of this task""" + status: String + updatedAt: Datetime + + """Who may read this task, inherited from its parent""" + visibility: String +} + +"""Methods to use when ordering `PlatformAgentTask`.""" +enum PlatformAgentTaskOrderBy { + ACTOR_ID_ASC + ACTOR_ID_DESC + APPROVAL_FEEDBACK_ASC + APPROVAL_FEEDBACK_DESC + APPROVAL_STATUS_ASC + APPROVAL_STATUS_DESC + APPROVED_AT_ASC + APPROVED_AT_DESC + APPROVED_BY_ASC + APPROVED_BY_DESC + CREATED_AT_ASC + CREATED_AT_DESC + DESCRIPTION_ASC + DESCRIPTION_DESC + ERROR_ASC + ERROR_DESC + ID_ASC + ID_DESC + NATURAL + ORDER_INDEX_ASC + ORDER_INDEX_DESC + PLAN_ID_ASC + PLAN_ID_DESC + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + REQUIRES_APPROVAL_ASC + REQUIRES_APPROVAL_DESC + SOURCE_ASC + SOURCE_DESC + STATUS_ASC + STATUS_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + VISIBILITY_ASC + VISIBILITY_DESC +} + +""" +Represents an update to a `PlatformAgentTask`. Fields that are set will be updated. +""" +input PlatformAgentTaskPatch { + """User who authored this task""" + actorId: UUID + + """Reviewer feedback or reason for the decision""" + approvalFeedback: String + + """ + Approval decision: pending, approved, rejected (NULL if not an approval task) + """ + approvalStatus: String + + """Timestamp of the approval or rejection decision""" + approvedAt: Datetime + + """User who approved or rejected this task""" + approvedBy: UUID + createdAt: Datetime + + """Natural-language description of the work to do""" + description: String + + """Error message captured when the task failed""" + error: String + id: UUID + + """Position within the plan (for ordered task lists)""" + orderIndex: Int + + """Foreign key to agent_plan""" + planId: UUID + + """Whether this task is an approval gate requiring human decision""" + requiresApproval: Boolean + + """Who created the task: agent or user""" + source: String + + """Current status of this task""" + status: String + updatedAt: Datetime + + """Who may read this task, inherited from its parent""" + visibility: String +} + +"""Top-level AI/LLM conversation thread""" +type PlatformAgentThread { + """ + Reads a single `PlatformAgent` that is related to this `PlatformAgentThread`. + """ + agent: PlatformAgent + + """Agent instance assigned to this thread""" + agentId: UUID + + """Timestamp when this record was archived, NULL if active""" + archivedAt: Datetime + createdAt: Datetime + id: UUID! + + """Whether this record has been archived by the user""" + isArchived: Boolean! + + """Conversation mode: ask (plain Q&A) or agent (tool-enabled)""" + mode: String! + + """LLM model id this thread is bound to""" + model: String + + """User who owns this thread""" + ownerId: UUID! + + """ + Reads a single `PlatformAgentThread` that is related to this `PlatformAgentThread`. + """ + parentThread: PlatformAgentThread + + """Parent thread that spawned this sub-conversation""" + parentThreadId: UUID + + """Reads and enables pagination through a set of `PlatformAgentMessage`.""" + platformAgentMessagesByThreadId( + """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 `PlatformAgentMessage`.""" + orderBy: [PlatformAgentMessageOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformAgentMessageFilter + ): PlatformAgentMessageConnection! + + """Reads and enables pagination through a set of `PlatformAgentPlan`.""" + platformAgentPlansByThreadId( + """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 `PlatformAgentPlan`.""" + orderBy: [PlatformAgentPlanOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformAgentPlanFilter + ): PlatformAgentPlanConnection! + + """Reads and enables pagination through a set of `PlatformAgentRun`.""" + platformAgentRunsByThreadId( + """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 `PlatformAgentRun`.""" + orderBy: [PlatformAgentRunOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformAgentRunFilter + ): PlatformAgentRunConnection! + + """Reads and enables pagination through a set of `PlatformAgentThread`.""" + platformAgentThreadsByParentThreadId( + """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 `PlatformAgentThread`.""" + orderBy: [PlatformAgentThreadOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformAgentThreadFilter + ): PlatformAgentThreadConnection! + + """ + Reads a single `PlatformAgentPrompt` that is related to this `PlatformAgentThread`. + """ + promptTemplate: PlatformAgentPrompt + + """Optional FK to a shared prompt template""" + promptTemplateId: UUID + + """Current status of this thread""" + status: String! + + """System prompt active for this thread""" + systemPrompt: String + + """User-defined labels for organizing and filtering threads""" + tags: [String] + + """Human-readable conversation title""" + title: String + updatedAt: Datetime + + """ + Who may read this thread: private (owner only) or entity (the scope's members) + """ + visibility: String! +} + +"""A connection to a list of `PlatformAgentThread` values.""" +type PlatformAgentThreadConnection { + """ + A list of edges which contains the `PlatformAgentThread` and cursor to aid in pagination. + """ + edges: [PlatformAgentThreadEdge]! + + """A list of `PlatformAgentThread` objects.""" + nodes: [PlatformAgentThread]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `PlatformAgentThread` you could get from the connection. + """ + totalCount: Int! +} + +"""A `PlatformAgentThread` edge in the connection.""" +type PlatformAgentThreadEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `PlatformAgentThread` at the end of the edge.""" + node: PlatformAgentThread +} + +""" +A filter to be used against `PlatformAgentThread` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformAgentThreadFilter { + """Filter by the object’s `agent` relation.""" + agent: PlatformAgentFilter + + """A related `agent` exists.""" + agentExists: Boolean + + """Filter by the object’s `agentId` field.""" + agentId: UUIDFilter + + """Checks for all expressions in this list.""" + and: [PlatformAgentThreadFilter!] + + """Filter by the object’s `archivedAt` field.""" + archivedAt: DatetimeFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `isArchived` field.""" + isArchived: BooleanFilter + + """Filter by the object’s `mode` field.""" + mode: StringFilter + + """Filter by the object’s `model` field.""" + model: StringFilter + + """Negates the expression.""" + not: PlatformAgentThreadFilter + + """Checks for any expressions in this list.""" + or: [PlatformAgentThreadFilter!] + + """Filter by the object’s `ownerId` field.""" + ownerId: UUIDFilter + + """Filter by the object’s `parentThread` relation.""" + parentThread: PlatformAgentThreadFilter + + """A related `parentThread` exists.""" + parentThreadExists: Boolean + + """Filter by the object’s `parentThreadId` field.""" + parentThreadId: UUIDFilter + + """Filter by the object’s `platformAgentMessagesByThreadId` relation.""" + platformAgentMessagesByThreadId: PlatformAgentThreadToManyPlatformAgentMessageFilter + + """`platformAgentMessagesByThreadId` exist.""" + platformAgentMessagesByThreadIdExist: Boolean + + """Filter by the object’s `platformAgentPlansByThreadId` relation.""" + platformAgentPlansByThreadId: PlatformAgentThreadToManyPlatformAgentPlanFilter + + """`platformAgentPlansByThreadId` exist.""" + platformAgentPlansByThreadIdExist: Boolean + + """Filter by the object’s `platformAgentRunsByThreadId` relation.""" + platformAgentRunsByThreadId: PlatformAgentThreadToManyPlatformAgentRunFilter + + """`platformAgentRunsByThreadId` exist.""" + platformAgentRunsByThreadIdExist: Boolean + + """ + Filter by the object’s `platformAgentThreadsByParentThreadId` relation. + """ + platformAgentThreadsByParentThreadId: PlatformAgentThreadToManyPlatformAgentThreadFilter + + """`platformAgentThreadsByParentThreadId` exist.""" + platformAgentThreadsByParentThreadIdExist: Boolean + + """Filter by the object’s `promptTemplate` relation.""" + promptTemplate: PlatformAgentPromptFilter + + """A related `promptTemplate` exists.""" + promptTemplateExists: Boolean + + """Filter by the object’s `promptTemplateId` field.""" + promptTemplateId: UUIDFilter + + """Filter by the object’s `status` field.""" + status: StringFilter + + """Filter by the object’s `systemPrompt` field.""" + systemPrompt: StringFilter + + """Filter by the object’s `tags` field.""" + tags: StringListFilter + + """Filter by the object’s `title` field.""" + title: StringFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter - """Name of the translation table""" - translationTable: String! + """Filter by the object’s `visibility` field.""" + visibility: StringFilter } -"""A translatable field""" -type MetaI18nField { - """GraphQL field name""" - name: String! +"""An input for mutations affecting `PlatformAgentThread`""" +input PlatformAgentThreadInput { + """Agent instance assigned to this thread""" + agentId: UUID - """PostgreSQL column type (text, citext)""" - type: String! -} + """Timestamp when this record was archived, NULL if active""" + archivedAt: Datetime + createdAt: Datetime + id: UUID -"""Information about a database index""" -type MetaIndex { - columns: [String!]! - fields: [MetaField!] - isPrimary: Boolean! - isUnique: Boolean! - name: String! -} + """Whether this record has been archived by the user""" + isArchived: Boolean -"""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 -} + """Conversation mode: ask (plain Q&A) or agent (tool-enabled)""" + mode: 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 -} + """LLM model id this thread is bound to""" + model: String -"""Information about a primary key constraint""" -type MetaPrimaryKeyConstraint { - fields: [MetaField!]! - name: String! -} + """User who owns this thread""" + ownerId: UUID -"""Table query/mutation names""" -type MetaQuery { - all: String - create: String - delete: String - one: String - update: String -} + """Parent thread that spawned this sub-conversation""" + parentThreadId: UUID -"""Realtime metadata for a table with @realtime tag""" -type MetaRealtime { - """The generated subscription field name (e.g. onPostChanged)""" - subscriptionFieldName: String! -} + """Optional FK to a shared prompt template""" + promptTemplateId: UUID -"""Reference to a related table""" -type MetaRefTable { - name: String! + """Current status of this thread""" + status: String + + """System prompt active for this thread""" + systemPrompt: String + + """User-defined labels for organizing and filtering threads""" + tags: [String] + + """Human-readable conversation title""" + title: String + updatedAt: Datetime + + """ + Who may read this thread: private (owner only) or entity (the scope's members) + """ + visibility: String } -"""Table relations""" -type MetaRelations { - belongsTo: [MetaBelongsToRelation!]! - has: [MetaHasRelation!]! - hasMany: [MetaHasRelation!]! - hasOne: [MetaHasRelation!]! - manyToMany: [MetaManyToManyRelation!]! +"""Methods to use when ordering `PlatformAgentThread`.""" +enum PlatformAgentThreadOrderBy { + AGENT_ID_ASC + AGENT_ID_DESC + ARCHIVED_AT_ASC + ARCHIVED_AT_DESC + CREATED_AT_ASC + CREATED_AT_DESC + ID_ASC + ID_DESC + IS_ARCHIVED_ASC + IS_ARCHIVED_DESC + MODEL_ASC + MODEL_DESC + MODE_ASC + MODE_DESC + NATURAL + OWNER_ID_ASC + OWNER_ID_DESC + PARENT_THREAD_ID_ASC + PARENT_THREAD_ID_DESC + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + PROMPT_TEMPLATE_ID_ASC + PROMPT_TEMPLATE_ID_DESC + STATUS_ASC + STATUS_DESC + SYSTEM_PROMPT_ASC + SYSTEM_PROMPT_DESC + TAGS_ASC + TAGS_DESC + TITLE_ASC + TITLE_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + VISIBILITY_ASC + VISIBILITY_DESC } """ -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. +Represents an update to a `PlatformAgentThread`. Fields that are set will be updated. """ -type MetaScalarEncoding { - """For 'vector': declared length, else null.""" - dimensions: Int +input PlatformAgentThreadPatch { + """Agent instance assigned to this thread""" + agentId: UUID - """For 'ltree': values are dot-separated path strings.""" - dotPath: Boolean + """Timestamp when this record was archived, NULL if active""" + archivedAt: Datetime + createdAt: Datetime + id: UUID - """For 'vector': element scalar (e.g. 'float').""" - elementType: String + """Whether this record has been archived by the user""" + isArchived: Boolean - """For 'geojson': Point/LineString/Polygon/…, else null.""" - geometrySubtype: String + """Conversation mode: ask (plain Q&A) or agent (tool-enabled)""" + mode: String - """ - Machine kind: bigint, datetime, date, time, interval, uuid, geojson, point, inet, ltree, vector, bytea, or composite. - """ - kind: String! + """LLM model id this thread is bound to""" + model: String - """For 'geojson': spatial reference id, else null.""" - srid: Int -} + """User who owns this thread""" + ownerId: UUID -"""Root meta schema type""" -type MetaSchema { - tables: [MetaTable!]! -} + """Parent thread that spawned this sub-conversation""" + parentThreadId: UUID -"""Provisioning scope metadata for a table""" -type MetaScope { - """SQL name of the entity table for entity scopes, else null""" - entityTable: String + """Optional FK to a shared prompt template""" + promptTemplateId: UUID - """ - Inflected scope key column (e.g. databaseId, orgId), null for global tiers - """ - keyColumn: String + """Current status of this thread""" + status: String + + """System prompt active for this thread""" + systemPrompt: String + + """User-defined labels for organizing and filtering threads""" + tags: [String] + + """Human-readable conversation title""" + title: String + updatedAt: Datetime """ - Provisioning scope: 'platform', 'app', 'database', or an entity scope (e.g. 'org') + Who may read this thread: private (owner only) or entity (the scope's members) """ - scope: String! + visibility: String +} - """Provenance of the scope metadata (always 'smartTag')""" - source: String! +""" +A filter to be used against many `PlatformAgentMessage` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformAgentThreadToManyPlatformAgentMessageFilter { + """Filters to entities where every related entity matches.""" + every: PlatformAgentMessageFilter - """Coarse bucket: 'global', 'database', or 'entity'""" - tier: String! + """Filters to entities where no related entity matches.""" + none: PlatformAgentMessageFilter + + """Filters to entities where at least one related entity matches.""" + some: PlatformAgentMessageFilter } -"""Search metadata for a table""" -type MetaSearch { - """Active search algorithms on this table""" - algorithms: [String!]! +""" +A filter to be used against many `PlatformAgentPlan` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformAgentThreadToManyPlatformAgentPlanFilter { + """Filters to entities where every related entity matches.""" + every: PlatformAgentPlanFilter - """Searchable columns with their algorithm""" - columns: [MetaSearchColumn!]! + """Filters to entities where no related entity matches.""" + none: PlatformAgentPlanFilter - """Per-table search configuration""" - config: MetaSearchConfig + """Filters to entities where at least one related entity matches.""" + some: PlatformAgentPlanFilter +} - """Whether unifiedSearch composite filter is available""" - hasUnifiedSearch: Boolean! +""" +A filter to be used against many `PlatformAgentRun` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformAgentThreadToManyPlatformAgentRunFilter { + """Filters to entities where every related entity matches.""" + every: PlatformAgentRunFilter + + """Filters to entities where no related entity matches.""" + none: PlatformAgentRunFilter + + """Filters to entities where at least one related entity matches.""" + some: PlatformAgentRunFilter } -"""A searchable column with its algorithm""" -type MetaSearchColumn { - """Search algorithm: tsvector, bm25, trgm, or vector""" - algorithm: String! +""" +A filter to be used against many `PlatformAgentThread` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformAgentThreadToManyPlatformAgentThreadFilter { + """Filters to entities where every related entity matches.""" + every: PlatformAgentThreadFilter + + """Filters to entities where no related entity matches.""" + none: PlatformAgentThreadFilter + + """Filters to entities where at least one related entity matches.""" + some: PlatformAgentThreadFilter +} + +""" +A filter to be used against many `PlatformAgent` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformAgentToManyPlatformAgentFilter { + """Filters to entities where every related entity matches.""" + every: PlatformAgentFilter - """Column name (camelCase)""" - name: String! -} + """Filters to entities where no related entity matches.""" + none: PlatformAgentFilter -"""Per-table search configuration from @searchConfig smart tag""" -type MetaSearchConfig { - """Exponential decay factor per day""" - boostRecencyDecay: Float + """Filters to entities where at least one related entity matches.""" + some: PlatformAgentFilter +} - """Field used for recency decay""" - boostRecencyField: String +""" +A filter to be used against many `PlatformAgentMessage` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformAgentToManyPlatformAgentMessageFilter { + """Filters to entities where every related entity matches.""" + every: PlatformAgentMessageFilter - """Whether recency boosting is enabled""" - boostRecent: Boolean! + """Filters to entities where no related entity matches.""" + none: PlatformAgentMessageFilter - """JSON-encoded per-adapter score weights""" - weights: String + """Filters to entities where at least one related entity matches.""" + some: PlatformAgentMessageFilter } -"""Storage metadata for a table""" -type MetaStorage { - """Whether this table is a storage buckets table""" - isBucketsTable: Boolean! +""" +A filter to be used against many `PlatformAgentThread` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformAgentToManyPlatformAgentThreadFilter { + """Filters to entities where every related entity matches.""" + every: PlatformAgentThreadFilter - """Whether this table is a storage files table""" - isFilesTable: Boolean! + """Filters to entities where no related entity matches.""" + none: PlatformAgentThreadFilter + + """Filters to entities where at least one related entity matches.""" + some: PlatformAgentThreadFilter } -"""Information about a database table""" -type MetaTable { - constraints: MetaConstraints! - fields: [MetaField!]! - foreignKeyConstraints: [MetaForeignKeyConstraint!]! +input ProvisionBucketInput { + """The logical bucket key (e.g., "public", "private")""" + bucketKey: String! - """i18n metadata (null if no @i18n tag)""" - i18n: MetaI18n - indexes: [MetaIndex!]! - inflection: MetaInflection! + """ + Owner entity ID for entity-scoped bucket provisioning. + Omit for app-level (database-wide) storage. + """ + ownerId: UUID +} - """Final GraphQL output type name""" - name: String! - primaryKeyConstraints: [MetaPrimaryKeyConstraint!]! - query: MetaQuery! +type ProvisionBucketPayload { + """The logical bucket row that was queued for reconciliation.""" + bucketId: UUID! + bucketKey: String! - """Realtime metadata (null if no @realtime tag)""" - realtime: MetaRealtime - relations: MetaRelations! - schemaName: String! + """The reconciler job enqueued to provision this bucket.""" + jobId: UUID! - """Provisioning scope metadata (null if no @scope tag)""" - scope: MetaScope + """ + The physical bucket name already recorded, or null when reconciliation has not completed. + """ + physicalName: String +} - """Search metadata (null if no search configured)""" - search: MetaSearch +"""The root query type which gives access points into the data universe.""" +type Query { + """ + Metadata about the database schema, including tables, fields, indexes, and constraints. Useful for code generation tools. + """ + _meta: MetaSchema - """Storage metadata (null if not a storage table)""" - storage: MetaStorage + """Reads and enables pagination through a set of `AgentMessage`.""" + agentMessages( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """PostgreSQL table name""" - tableName: String! - uniqueConstraints: [MetaUniqueConstraint!]! -} + """Read all values in the set before (above) this cursor.""" + before: Cursor -"""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 -} + """Only read the first `n` values of the set.""" + first: Int -"""Information about a unique constraint""" -type MetaUniqueConstraint { - fields: [MetaField!]! - name: String! -} + """Only read the last `n` values of the set.""" + last: Int -""" -The root mutation type which contains root level fields which mutate data. -""" -type Mutation { - """Creates a single `Agent`.""" - createAgent( """ - 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: CreateAgentInput! - ): CreateAgentPayload + offset: Int - """Creates a single `AgentMessage`.""" - createAgentMessage( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAgentMessageInput! - ): CreateAgentMessagePayload + """The method to use when ordering `AgentMessage`.""" + orderBy: [AgentMessageOrderBy!] = [PRIMARY_KEY_ASC] - """Creates a single `AgentPersona`.""" - createAgentPersona( """ - 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: CreateAgentPersonaInput! - ): CreateAgentPersonaPayload + where: AgentMessageFilter + ): AgentMessageConnection - """Creates a single `AgentPlan`.""" - createAgentPlan( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAgentPlanInput! - ): CreateAgentPlanPayload + """Reads and enables pagination through a set of `AgentPersona`.""" + agentPersonas( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """Creates a single `AgentPrompt`.""" - createAgentPrompt( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAgentPromptInput! - ): CreateAgentPromptPayload + """Read all values in the set before (above) this cursor.""" + before: Cursor - """Creates a single `AgentResource`.""" - createAgentResource( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAgentResourceInput! - ): CreateAgentResourcePayload + """Only read the first `n` values of the set.""" + first: Int - """Creates a single `AgentResourceChunk`.""" - createAgentResourceChunk( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAgentResourceChunkInput! - ): CreateAgentResourceChunkPayload + """Only read the last `n` values of the set.""" + last: Int - """Creates a single `AgentTask`.""" - createAgentTask( """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. """ - input: CreateAgentTaskInput! - ): CreateAgentTaskPayload + offset: Int - """Creates a single `AgentThread`.""" - createAgentThread( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAgentThreadInput! - ): CreateAgentThreadPayload + """The method to use when ordering `AgentPersona`.""" + orderBy: [AgentPersonaOrderBy!] = [PRIMARY_KEY_ASC] - """Deletes a single `Agent` using a unique key.""" - deleteAgent( """ - 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: DeleteAgentInput! - ): DeleteAgentPayload + where: AgentPersonaFilter + ): AgentPersonaConnection + + """Reads and enables pagination through a set of `AgentPlan`.""" + agentPlans( + """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 - """Deletes a single `AgentMessage` using a unique key.""" - deleteAgentMessage( """ - 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: DeleteAgentMessageInput! - ): DeleteAgentMessagePayload + offset: Int + + """The method to use when ordering `AgentPlan`.""" + orderBy: [AgentPlanOrderBy!] = [PRIMARY_KEY_ASC] - """Deletes a single `AgentPersona` using a unique key.""" - deleteAgentPersona( """ - 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: DeleteAgentPersonaInput! - ): DeleteAgentPersonaPayload + where: AgentPlanFilter + ): AgentPlanConnection + + """Reads and enables pagination through a set of `AgentPrompt`.""" + agentPrompts( + """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 - """Deletes a single `AgentPlan` using a unique key.""" - deleteAgentPlan( """ - 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: DeleteAgentPlanInput! - ): DeleteAgentPlanPayload + offset: Int + + """The method to use when ordering `AgentPrompt`.""" + orderBy: [AgentPromptOrderBy!] = [PRIMARY_KEY_ASC] - """Deletes a single `AgentPrompt` using a unique key.""" - deleteAgentPrompt( """ - 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: DeleteAgentPromptInput! - ): DeleteAgentPromptPayload + where: AgentPromptFilter + ): AgentPromptConnection + + """Reads and enables pagination through a set of `AgentResourceChunk`.""" + agentResourceChunks( + """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 - """Deletes a single `AgentResource` using a unique key.""" - deleteAgentResource( """ - 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: DeleteAgentResourceInput! - ): DeleteAgentResourcePayload + offset: Int + + """The method to use when ordering `AgentResourceChunk`.""" + orderBy: [AgentResourceChunkOrderBy!] = [PRIMARY_KEY_ASC] - """Deletes a single `AgentResourceChunk` using a unique key.""" - deleteAgentResourceChunk( """ - 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: DeleteAgentResourceChunkInput! - ): DeleteAgentResourceChunkPayload + where: AgentResourceChunkFilter + ): AgentResourceChunkConnection + + """Reads and enables pagination through a set of `AgentResource`.""" + agentResources( + """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 - """Deletes a single `AgentTask` using a unique key.""" - deleteAgentTask( """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. """ - input: DeleteAgentTaskInput! - ): DeleteAgentTaskPayload + offset: Int + + """The method to use when ordering `AgentResource`.""" + orderBy: [AgentResourceOrderBy!] = [PRIMARY_KEY_ASC] - """Deletes a single `AgentThread` using a unique key.""" - deleteAgentThread( """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + A filter to be used in determining which values should be returned by the collection. """ - input: DeleteAgentThreadInput! - ): DeleteAgentThreadPayload + where: AgentResourceFilter + ): AgentResourceConnection + + """Reads and enables pagination through a set of `AgentTask`.""" + agentTasks( + """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 - """ - 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. + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. """ - input: ProvisionBucketInput! - ): ProvisionBucketPayload + offset: Int + + """The method to use when ordering `AgentTask`.""" + orderBy: [AgentTaskOrderBy!] = [PRIMARY_KEY_ASC] - """Updates a single `Agent` using a unique key and a patch.""" - updateAgent( """ - 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: UpdateAgentInput! - ): UpdateAgentPayload + where: AgentTaskFilter + ): AgentTaskConnection + + """Reads and enables pagination through a set of `AgentThread`.""" + agentThreads( + """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 - """Updates a single `AgentMessage` using a unique key and a patch.""" - updateAgentMessage( """ - 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: UpdateAgentMessageInput! - ): UpdateAgentMessagePayload + offset: Int + + """The method to use when ordering `AgentThread`.""" + orderBy: [AgentThreadOrderBy!] = [PRIMARY_KEY_ASC] - """Updates a single `AgentPersona` using a unique key and a patch.""" - updateAgentPersona( """ - 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: UpdateAgentPersonaInput! - ): UpdateAgentPersonaPayload + where: AgentThreadFilter + ): AgentThreadConnection + + """Reads and enables pagination through a set of `Agent`.""" + agents( + """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 - """Updates a single `AgentPlan` using a unique key and a patch.""" - updateAgentPlan( """ - 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: UpdateAgentPlanInput! - ): UpdateAgentPlanPayload + offset: Int + + """The method to use when ordering `Agent`.""" + orderBy: [AgentOrderBy!] = [PRIMARY_KEY_ASC] - """Updates a single `AgentPrompt` using a unique key and a patch.""" - updateAgentPrompt( """ - 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: UpdateAgentPromptInput! - ): UpdateAgentPromptPayload + where: AgentFilter + ): AgentConnection + + """Reads and enables pagination through a set of `PlatformAgentEvent`.""" + platformAgentEvents( + """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 - """Updates a single `AgentResource` using a unique key and a patch.""" - updateAgentResource( """ - 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: UpdateAgentResourceInput! - ): UpdateAgentResourcePayload + offset: Int + + """The method to use when ordering `PlatformAgentEvent`.""" + orderBy: [PlatformAgentEventOrderBy!] = [PRIMARY_KEY_ASC] - """Updates a single `AgentResourceChunk` using a unique key and a patch.""" - updateAgentResourceChunk( """ - 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: UpdateAgentResourceChunkInput! - ): UpdateAgentResourceChunkPayload + where: PlatformAgentEventFilter + ): PlatformAgentEventConnection + + """Reads and enables pagination through a set of `PlatformAgentMessage`.""" + platformAgentMessages( + """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 - """Updates a single `AgentTask` using a unique key and a patch.""" - updateAgentTask( """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. """ - input: UpdateAgentTaskInput! - ): UpdateAgentTaskPayload + offset: Int + + """The method to use when ordering `PlatformAgentMessage`.""" + orderBy: [PlatformAgentMessageOrderBy!] = [PRIMARY_KEY_ASC] - """Updates a single `AgentThread` using a unique key and a patch.""" - updateAgentThread( """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + A filter to be used in determining which values should be returned by the collection. """ - input: UpdateAgentThreadInput! - ): UpdateAgentThreadPayload -} + where: PlatformAgentMessageFilter + ): PlatformAgentMessageConnection -"""Information about pagination in a connection.""" -type PageInfo { - """When paginating forwards, the cursor to continue.""" - endCursor: Cursor + """Reads and enables pagination through a set of `PlatformAgentPersona`.""" + platformAgentPersonas( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """When paginating forwards, are there more items?""" - hasNextPage: Boolean! + """Read all values in the set before (above) this cursor.""" + before: Cursor - """When paginating backwards, are there more items?""" - hasPreviousPage: Boolean! + """Only read the first `n` values of the set.""" + first: Int - """When paginating backwards, the cursor to continue.""" - startCursor: Cursor -} + """Only read the last `n` values of the set.""" + last: Int -input ProvisionBucketInput { - """The logical bucket key (e.g., "public", "private")""" - bucketKey: String! + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int - """ - Owner entity ID for entity-scoped bucket provisioning. - Omit for app-level (database-wide) storage. - """ - ownerId: UUID -} + """The method to use when ordering `PlatformAgentPersona`.""" + orderBy: [PlatformAgentPersonaOrderBy!] = [PRIMARY_KEY_ASC] -type ProvisionBucketPayload { - """The access type applied""" - accessType: String! + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformAgentPersonaFilter + ): PlatformAgentPersonaConnection - """The S3 bucket name that was provisioned""" - bucketName: String! + """Reads and enables pagination through a set of `PlatformAgentPlan`.""" + platformAgentPlans( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """The S3 endpoint (null for AWS S3 default)""" - endpoint: String + """Read all values in the set before (above) this cursor.""" + before: Cursor - """Error message if provisioning failed""" - error: String + """Only read the first `n` values of the set.""" + first: Int - """The storage provider used""" - provider: String! + """Only read the last `n` values of the set.""" + last: Int - """Whether provisioning succeeded""" - success: Boolean! -} + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int -"""The root query type which gives access points into the data universe.""" -type Query { - """ - Metadata about the database schema, including tables, fields, indexes, and constraints. Useful for code generation tools. - """ - _meta: MetaSchema + """The method to use when ordering `PlatformAgentPlan`.""" + orderBy: [PlatformAgentPlanOrderBy!] = [PRIMARY_KEY_ASC] - """Reads and enables pagination through a set of `AgentMessage`.""" - agentMessages( + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformAgentPlanFilter + ): PlatformAgentPlanConnection + + """Reads and enables pagination through a set of `PlatformAgentPrompt`.""" + platformAgentPrompts( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -4026,17 +9622,19 @@ type Query { """ offset: Int - """The method to use when ordering `AgentMessage`.""" - orderBy: [AgentMessageOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `PlatformAgentPrompt`.""" + orderBy: [PlatformAgentPromptOrderBy!] = [PRIMARY_KEY_ASC] """ A filter to be used in determining which values should be returned by the collection. """ - where: AgentMessageFilter - ): AgentMessageConnection + where: PlatformAgentPromptFilter + ): PlatformAgentPromptConnection - """Reads and enables pagination through a set of `AgentPersona`.""" - agentPersonas( + """ + Reads and enables pagination through a set of `PlatformAgentResourceChunk`. + """ + platformAgentResourceChunks( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -4055,17 +9653,17 @@ type Query { """ offset: Int - """The method to use when ordering `AgentPersona`.""" - orderBy: [AgentPersonaOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `PlatformAgentResourceChunk`.""" + orderBy: [PlatformAgentResourceChunkOrderBy!] = [PRIMARY_KEY_ASC] """ A filter to be used in determining which values should be returned by the collection. """ - where: AgentPersonaFilter - ): AgentPersonaConnection + where: PlatformAgentResourceChunkFilter + ): PlatformAgentResourceChunkConnection - """Reads and enables pagination through a set of `AgentPlan`.""" - agentPlans( + """Reads and enables pagination through a set of `PlatformAgentResource`.""" + platformAgentResources( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -4084,17 +9682,19 @@ type Query { """ offset: Int - """The method to use when ordering `AgentPlan`.""" - orderBy: [AgentPlanOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `PlatformAgentResource`.""" + orderBy: [PlatformAgentResourceOrderBy!] = [PRIMARY_KEY_ASC] """ A filter to be used in determining which values should be returned by the collection. """ - where: AgentPlanFilter - ): AgentPlanConnection + where: PlatformAgentResourceFilter + ): PlatformAgentResourceConnection - """Reads and enables pagination through a set of `AgentPrompt`.""" - agentPrompts( + """ + Reads and enables pagination through a set of `PlatformAgentRunWorkspace`. + """ + platformAgentRunWorkspaces( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -4113,17 +9713,17 @@ type Query { """ offset: Int - """The method to use when ordering `AgentPrompt`.""" - orderBy: [AgentPromptOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `PlatformAgentRunWorkspace`.""" + orderBy: [PlatformAgentRunWorkspaceOrderBy!] = [PRIMARY_KEY_ASC] """ A filter to be used in determining which values should be returned by the collection. """ - where: AgentPromptFilter - ): AgentPromptConnection + where: PlatformAgentRunWorkspaceFilter + ): PlatformAgentRunWorkspaceConnection - """Reads and enables pagination through a set of `AgentResourceChunk`.""" - agentResourceChunks( + """Reads and enables pagination through a set of `PlatformAgentRun`.""" + platformAgentRuns( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -4142,17 +9742,17 @@ type Query { """ offset: Int - """The method to use when ordering `AgentResourceChunk`.""" - orderBy: [AgentResourceChunkOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `PlatformAgentRun`.""" + orderBy: [PlatformAgentRunOrderBy!] = [PRIMARY_KEY_ASC] """ A filter to be used in determining which values should be returned by the collection. """ - where: AgentResourceChunkFilter - ): AgentResourceChunkConnection + where: PlatformAgentRunFilter + ): PlatformAgentRunConnection - """Reads and enables pagination through a set of `AgentResource`.""" - agentResources( + """Reads and enables pagination through a set of `PlatformAgentTask`.""" + platformAgentTasks( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -4171,17 +9771,17 @@ type Query { """ offset: Int - """The method to use when ordering `AgentResource`.""" - orderBy: [AgentResourceOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `PlatformAgentTask`.""" + orderBy: [PlatformAgentTaskOrderBy!] = [PRIMARY_KEY_ASC] """ A filter to be used in determining which values should be returned by the collection. """ - where: AgentResourceFilter - ): AgentResourceConnection + where: PlatformAgentTaskFilter + ): PlatformAgentTaskConnection - """Reads and enables pagination through a set of `AgentTask`.""" - agentTasks( + """Reads and enables pagination through a set of `PlatformAgentThread`.""" + platformAgentThreads( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -4200,17 +9800,17 @@ type Query { """ offset: Int - """The method to use when ordering `AgentTask`.""" - orderBy: [AgentTaskOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `PlatformAgentThread`.""" + orderBy: [PlatformAgentThreadOrderBy!] = [PRIMARY_KEY_ASC] """ A filter to be used in determining which values should be returned by the collection. """ - where: AgentTaskFilter - ): AgentTaskConnection + where: PlatformAgentThreadFilter + ): PlatformAgentThreadConnection - """Reads and enables pagination through a set of `AgentThread`.""" - agentThreads( + """Reads and enables pagination through a set of `PlatformAgent`.""" + platformAgents( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -4229,49 +9829,215 @@ type Query { """ offset: Int - """The method to use when ordering `AgentThread`.""" - orderBy: [AgentThreadOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `PlatformAgent`.""" + orderBy: [PlatformAgentOrderBy!] = [PRIMARY_KEY_ASC] """ A filter to be used in determining which values should be returned by the collection. """ - where: AgentThreadFilter - ): AgentThreadConnection + where: PlatformAgentFilter + ): PlatformAgentConnection +} + +""" +A filter to be used against String fields. All fields are combined with a logical ‘and.’ +""" +input 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 filter to be used against String List fields. All fields are combined with a logical ‘and.’ +""" +input StringListFilter { + """Any array item is equal to the specified value.""" + anyEqualTo: String + + """Any array item is greater than the specified value.""" + anyGreaterThan: String + + """Any array item is greater than or equal to the specified value.""" + anyGreaterThanOrEqualTo: String + + """Any array item is less than the specified value.""" + anyLessThan: String + + """Any array item is less than or equal to the specified value.""" + anyLessThanOrEqualTo: String + + """Any array item is not equal to the specified value.""" + anyNotEqualTo: String + + """Contained by the specified list of values.""" + containedBy: [String] + + """Contains the specified list of values.""" + contains: [String] + + """ + Not equal to the specified value, treating null like an ordinary value. + """ + distinctFrom: [String] + + """Equal to the specified value.""" + equalTo: [String] - """Reads and enables pagination through a set of `Agent`.""" - agents( - """Read all values in the set after (below) this cursor.""" - after: Cursor + """Greater than the specified value.""" + greaterThan: [String] - """Read all values in the set before (above) this cursor.""" - before: Cursor + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: [String] - """Only read the first `n` values of the set.""" - first: Int + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean - """Only read the last `n` values of the set.""" - last: Int + """Less than the specified value.""" + lessThan: [String] - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int + """Less than or equal to the specified value.""" + lessThanOrEqualTo: [String] - """The method to use when ordering `Agent`.""" - orderBy: [AgentOrderBy!] = [PRIMARY_KEY_ASC] + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: [String] - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: AgentFilter - ): AgentConnection + """Not equal to the specified value.""" + notEqualTo: [String] + + """Overlaps the specified list of values.""" + overlaps: [String] } """ -A filter to be used against String fields. All fields are combined with a logical ‘and.’ +A filter to be used against String fields with pg_trgm support. All fields are combined with a logical ‘and.’ """ -input StringFilter { +input StringTrgmFilter { """ Not equal to the specified value, treating null like an ordinary value. """ @@ -4393,54 +10159,61 @@ input StringFilter { """Does not start with the specified string (case-insensitive).""" notStartsWithInsensitive: String + """ + Fuzzy matches using pg_trgm trigram similarity. Tolerates typos and misspellings. + """ + similarTo: TrgmSearchInput + """Starts with the specified string (case-sensitive).""" startsWith: String """Starts with the specified string (case-insensitive).""" startsWithInsensitive: String + + """ + Fuzzy matches using pg_trgm word_similarity. Finds the best matching substring within the column value. + """ + wordSimilarTo: TrgmSearchInput } """ -A filter to be used against String List fields. All fields are combined with a logical ‘and.’ +Input for pg_trgm fuzzy text matching. Provide a search value and optional similarity threshold. """ -input StringListFilter { - """Any array item is equal to the specified value.""" - anyEqualTo: String - - """Any array item is greater than the specified value.""" - anyGreaterThan: String - - """Any array item is greater than or equal to the specified value.""" - anyGreaterThanOrEqualTo: String - - """Any array item is less than the specified value.""" - anyLessThan: String - - """Any array item is less than or equal to the specified value.""" - anyLessThanOrEqualTo: String - - """Any array item is not equal to the specified value.""" - anyNotEqualTo: String +input TrgmSearchInput { + """ + Minimum similarity threshold (0.0 to 1.0). Higher = stricter matching. Default is 0.3. + """ + threshold: Float - """Contained by the specified list of values.""" - containedBy: [String] + """The text to fuzzy-match against. Typos and misspellings are tolerated.""" + value: String! +} - """Contains the specified list of values.""" - contains: [String] +""" +A universally unique identifier as defined by [RFC 4122](https://tools.ietf.org/html/rfc4122). +""" +scalar UUID +""" +A filter to be used against UUID fields. All fields are combined with a logical ‘and.’ +""" +input UUIDFilter { """ Not equal to the specified value, treating null like an ordinary value. """ - distinctFrom: [String] + distinctFrom: UUID """Equal to the specified value.""" - equalTo: [String] + equalTo: UUID """Greater than the specified value.""" - greaterThan: [String] + greaterThan: UUID """Greater than or equal to the specified value.""" - greaterThanOrEqualTo: [String] + greaterThanOrEqualTo: UUID + + """Included in the specified list.""" + in: [UUID!] """ Is null (if `true` is specified) or is not null (if `false` is specified). @@ -4448,559 +10221,813 @@ input StringListFilter { isNull: Boolean """Less than the specified value.""" - lessThan: [String] + lessThan: UUID """Less than or equal to the specified value.""" - lessThanOrEqualTo: [String] + lessThanOrEqualTo: UUID """Equal to the specified value, treating null like an ordinary value.""" - notDistinctFrom: [String] + notDistinctFrom: UUID """Not equal to the specified value.""" - notEqualTo: [String] + notEqualTo: UUID - """Overlaps the specified list of values.""" - overlaps: [String] + """Not included in the specified list.""" + notIn: [UUID!] } -""" -A filter to be used against String fields with pg_trgm support. All fields are combined with a logical ‘and.’ -""" -input StringTrgmFilter { +"""All input for the `updateAgent` mutation.""" +input UpdateAgentInput { """ - Not equal to the specified value, treating null like an ordinary value. + An object where the defined keys will be set on the `Agent` being updated. """ - distinctFrom: String + agentPatch: AgentPatch! """ - Not equal to the specified value, treating null like an ordinary value (case-insensitive). + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - distinctFromInsensitive: String + clientMutationId: String + id: UUID! +} - """Ends with the specified string (case-sensitive).""" - endsWith: String +"""All input for the `updateAgentMessage` mutation.""" +input UpdateAgentMessageInput { + """ + An object where the defined keys will be set on the `AgentMessage` being updated. + """ + agentMessagePatch: AgentMessagePatch! - """Ends with the specified string (case-insensitive).""" - endsWithInsensitive: 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 + id: UUID! +} - """Equal to the specified value.""" - equalTo: String +"""The output of our update `AgentMessage` mutation.""" +type UpdateAgentMessagePayload { + """The `AgentMessage` that was updated by this mutation.""" + agentMessage: AgentMessage - """Equal to the specified value (case-insensitive).""" - equalToInsensitive: String + """An edge for our `AgentMessage`. May be used by Relay 1.""" + agentMessageEdge( + """The method to use when ordering `AgentMessage`.""" + orderBy: [AgentMessageOrderBy!]! = [PRIMARY_KEY_ASC] + ): AgentMessageEdge - """Greater than the specified value.""" - greaterThan: String + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """Greater than the specified value (case-insensitive).""" - greaterThanInsensitive: String + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} - """Greater than or equal to the specified value.""" - greaterThanOrEqualTo: String +"""The output of our update `Agent` mutation.""" +type UpdateAgentPayload { + """The `Agent` that was updated by this mutation.""" + agent: Agent - """Greater than or equal to the specified value (case-insensitive).""" - greaterThanOrEqualToInsensitive: String + """An edge for our `Agent`. May be used by Relay 1.""" + agentEdge( + """The method to use when ordering `Agent`.""" + orderBy: [AgentOrderBy!]! = [PRIMARY_KEY_ASC] + ): AgentEdge - """Included in the specified list.""" - in: [String!] + """ + The 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 `updateAgentPersona` mutation.""" +input UpdateAgentPersonaInput { + """ + An object where the defined keys will be set on the `AgentPersona` being updated. + """ + agentPersonaPatch: AgentPersonaPatch! + + """ + An arbitrary 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 `AgentPersona` mutation.""" +type UpdateAgentPersonaPayload { + """The `AgentPersona` that was updated by this mutation.""" + agentPersona: AgentPersona + + """An edge for our `AgentPersona`. May be used by Relay 1.""" + agentPersonaEdge( + """The method to use when ordering `AgentPersona`.""" + orderBy: [AgentPersonaOrderBy!]! = [PRIMARY_KEY_ASC] + ): AgentPersonaEdge + + """ + The 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 `updateAgentPlan` mutation.""" +input UpdateAgentPlanInput { + """ + An object where the defined keys will be set on the `AgentPlan` being updated. + """ + agentPlanPatch: AgentPlanPatch! + + """ + An arbitrary 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! +} - """Included in the specified list (case-insensitive).""" - inInsensitive: [String!] +"""The output of our update `AgentPlan` mutation.""" +type UpdateAgentPlanPayload { + """The `AgentPlan` that was updated by this mutation.""" + agentPlan: AgentPlan - """Contains the specified string (case-sensitive).""" - includes: String + """An edge for our `AgentPlan`. May be used by Relay 1.""" + agentPlanEdge( + """The method to use when ordering `AgentPlan`.""" + orderBy: [AgentPlanOrderBy!]! = [PRIMARY_KEY_ASC] + ): AgentPlanEdge - """Contains the specified string (case-insensitive).""" - includesInsensitive: String + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String """ - Is null (if `true` is specified) or is not null (if `false` is specified). + Our root query field type. Allows us to run any query from our mutation payload. """ - isNull: Boolean + query: Query +} - """Less than the specified value.""" - lessThan: String +"""All input for the `updateAgentPrompt` mutation.""" +input UpdateAgentPromptInput { + """ + An object where the defined keys will be set on the `AgentPrompt` being updated. + """ + agentPromptPatch: AgentPromptPatch! - """Less than the specified value (case-insensitive).""" - lessThanInsensitive: 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 + id: UUID! +} - """Less than or equal to the specified value.""" - lessThanOrEqualTo: String +"""The output of our update `AgentPrompt` mutation.""" +type UpdateAgentPromptPayload { + """The `AgentPrompt` that was updated by this mutation.""" + agentPrompt: AgentPrompt - """Less than or equal to the specified value (case-insensitive).""" - lessThanOrEqualToInsensitive: String + """An edge for our `AgentPrompt`. May be used by Relay 1.""" + agentPromptEdge( + """The method to use when ordering `AgentPrompt`.""" + orderBy: [AgentPromptOrderBy!]! = [PRIMARY_KEY_ASC] + ): AgentPromptEdge """ - Matches the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - like: String + clientMutationId: String """ - Matches the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. + Our root query field type. Allows us to run any query from our mutation payload. """ - likeInsensitive: String + query: Query +} - """Equal to the specified value, treating null like an ordinary value.""" - notDistinctFrom: String +"""All input for the `updateAgentResourceChunk` mutation.""" +input UpdateAgentResourceChunkInput { + """ + An object where the defined keys will be set on the `AgentResourceChunk` being updated. + """ + agentResourceChunkPatch: AgentResourceChunkPatch! """ - Equal to the specified value, treating null like an ordinary value (case-insensitive). + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - notDistinctFromInsensitive: String + clientMutationId: String + id: UUID! +} - """Does not end with the specified string (case-sensitive).""" - notEndsWith: String +"""The output of our update `AgentResourceChunk` mutation.""" +type UpdateAgentResourceChunkPayload { + """The `AgentResourceChunk` that was updated by this mutation.""" + agentResourceChunk: AgentResourceChunk - """Does not end with the specified string (case-insensitive).""" - notEndsWithInsensitive: String + """An edge for our `AgentResourceChunk`. May be used by Relay 1.""" + agentResourceChunkEdge( + """The method to use when ordering `AgentResourceChunk`.""" + orderBy: [AgentResourceChunkOrderBy!]! = [PRIMARY_KEY_ASC] + ): AgentResourceChunkEdge - """Not equal to the specified value.""" - notEqualTo: String + """ + The 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 equal to the specified value (case-insensitive).""" - notEqualToInsensitive: String + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} - """Not included in the specified list.""" - notIn: [String!] +"""All input for the `updateAgentResource` mutation.""" +input UpdateAgentResourceInput { + """ + An object where the defined keys will be set on the `AgentResource` being updated. + """ + agentResourcePatch: AgentResourcePatch! - """Not included in the specified list (case-insensitive).""" - notInInsensitive: [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 + id: UUID! +} - """Does not contain the specified string (case-sensitive).""" - notIncludes: String +"""The output of our update `AgentResource` mutation.""" +type UpdateAgentResourcePayload { + """The `AgentResource` that was updated by this mutation.""" + agentResource: AgentResource - """Does not contain the specified string (case-insensitive).""" - notIncludesInsensitive: String + """An edge for our `AgentResource`. May be used by Relay 1.""" + agentResourceEdge( + """The method to use when ordering `AgentResource`.""" + orderBy: [AgentResourceOrderBy!]! = [PRIMARY_KEY_ASC] + ): AgentResourceEdge """ - 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. + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - notLike: String + clientMutationId: 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. + Our root query field type. Allows us to run any query from our mutation payload. """ - notLikeInsensitive: String - - """Does not start with the specified string (case-sensitive).""" - notStartsWith: String + query: Query +} - """Does not start with the specified string (case-insensitive).""" - notStartsWithInsensitive: String +"""All input for the `updateAgentTask` mutation.""" +input UpdateAgentTaskInput { + """ + An object where the defined keys will be set on the `AgentTask` being updated. + """ + agentTaskPatch: AgentTaskPatch! """ - Fuzzy matches using pg_trgm trigram similarity. Tolerates typos and misspellings. + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - similarTo: TrgmSearchInput + clientMutationId: String + id: UUID! +} - """Starts with the specified string (case-sensitive).""" - startsWith: String +"""The output of our update `AgentTask` mutation.""" +type UpdateAgentTaskPayload { + """The `AgentTask` that was updated by this mutation.""" + agentTask: AgentTask - """Starts with the specified string (case-insensitive).""" - startsWithInsensitive: String + """An edge for our `AgentTask`. May be used by Relay 1.""" + agentTaskEdge( + """The method to use when ordering `AgentTask`.""" + orderBy: [AgentTaskOrderBy!]! = [PRIMARY_KEY_ASC] + ): AgentTaskEdge """ - Fuzzy matches using pg_trgm word_similarity. Finds the best matching substring within the column value. + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - wordSimilarTo: TrgmSearchInput -} + clientMutationId: String -""" -Input for pg_trgm fuzzy text matching. Provide a search value and optional similarity threshold. -""" -input TrgmSearchInput { """ - Minimum similarity threshold (0.0 to 1.0). Higher = stricter matching. Default is 0.3. + Our root query field type. Allows us to run any query from our mutation payload. """ - threshold: Float - - """The text to fuzzy-match against. Typos and misspellings are tolerated.""" - value: String! + query: Query } -""" -A universally unique identifier as defined by [RFC 4122](https://tools.ietf.org/html/rfc4122). -""" -scalar UUID - -""" -A filter to be used against UUID fields. All fields are combined with a logical ‘and.’ -""" -input UUIDFilter { +"""All input for the `updateAgentThread` mutation.""" +input UpdateAgentThreadInput { """ - Not equal to the specified value, treating null like an ordinary value. + An object where the defined keys will be set on the `AgentThread` being updated. """ - distinctFrom: UUID + agentThreadPatch: AgentThreadPatch! - """Equal to the specified value.""" - equalTo: UUID + """ + An arbitrary 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! +} - """Greater than the specified value.""" - greaterThan: UUID +"""The output of our update `AgentThread` mutation.""" +type UpdateAgentThreadPayload { + """The `AgentThread` that was updated by this mutation.""" + agentThread: AgentThread - """Greater than or equal to the specified value.""" - greaterThanOrEqualTo: UUID + """An edge for our `AgentThread`. May be used by Relay 1.""" + agentThreadEdge( + """The method to use when ordering `AgentThread`.""" + orderBy: [AgentThreadOrderBy!]! = [PRIMARY_KEY_ASC] + ): AgentThreadEdge - """Included in the specified list.""" - in: [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 """ - Is null (if `true` is specified) or is not null (if `false` is specified). + Our root query field type. Allows us to run any query from our mutation payload. """ - isNull: Boolean + query: Query +} - """Less than the specified value.""" - lessThan: UUID +"""All input for the `updatePlatformAgentEvent` mutation.""" +input UpdatePlatformAgentEventInput { + """ + An arbitrary 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! - """Less than or equal to the specified value.""" - lessThanOrEqualTo: UUID + """ + An object where the defined keys will be set on the `PlatformAgentEvent` being updated. + """ + platformAgentEventPatch: PlatformAgentEventPatch! +} - """Equal to the specified value, treating null like an ordinary value.""" - notDistinctFrom: UUID +"""The output of our update `PlatformAgentEvent` mutation.""" +type UpdatePlatformAgentEventPayload { + """ + The 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 equal to the specified value.""" - notEqualTo: UUID + """The `PlatformAgentEvent` that was updated by this mutation.""" + platformAgentEvent: PlatformAgentEvent - """Not included in the specified list.""" - notIn: [UUID!] -} + """An edge for our `PlatformAgentEvent`. May be used by Relay 1.""" + platformAgentEventEdge( + """The method to use when ordering `PlatformAgentEvent`.""" + orderBy: [PlatformAgentEventOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformAgentEventEdge -"""All input for the `updateAgent` mutation.""" -input UpdateAgentInput { """ - An object where the defined keys will be set on the `Agent` being updated. + Our root query field type. Allows us to run any query from our mutation payload. """ - agentPatch: AgentPatch! + query: Query +} +"""All input for the `updatePlatformAgent` mutation.""" +input UpdatePlatformAgentInput { """ An arbitrary 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! -} -"""All input for the `updateAgentMessage` mutation.""" -input UpdateAgentMessageInput { """ - An object where the defined keys will be set on the `AgentMessage` being updated. + An object where the defined keys will be set on the `PlatformAgent` being updated. """ - agentMessagePatch: AgentMessagePatch! + platformAgentPatch: PlatformAgentPatch! +} +"""All input for the `updatePlatformAgentMessage` mutation.""" +input UpdatePlatformAgentMessageInput { """ An arbitrary 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 `PlatformAgentMessage` being updated. + """ + platformAgentMessagePatch: PlatformAgentMessagePatch! } -"""The output of our update `AgentMessage` mutation.""" -type UpdateAgentMessagePayload { - """The `AgentMessage` that was updated by this mutation.""" - agentMessage: AgentMessage +"""The output of our update `PlatformAgentMessage` mutation.""" +type UpdatePlatformAgentMessagePayload { + """ + The 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 `AgentMessage`. May be used by Relay 1.""" - agentMessageEdge( - """The method to use when ordering `AgentMessage`.""" - orderBy: [AgentMessageOrderBy!]! = [PRIMARY_KEY_ASC] - ): AgentMessageEdge + """The `PlatformAgentMessage` that was updated by this mutation.""" + platformAgentMessage: PlatformAgentMessage + + """An edge for our `PlatformAgentMessage`. May be used by Relay 1.""" + platformAgentMessageEdge( + """The method to use when ordering `PlatformAgentMessage`.""" + orderBy: [PlatformAgentMessageOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformAgentMessageEdge + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""The output of our update `PlatformAgent` mutation.""" +type UpdatePlatformAgentPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String + """The `PlatformAgent` that was updated by this mutation.""" + platformAgent: PlatformAgent + + """An edge for our `PlatformAgent`. May be used by Relay 1.""" + platformAgentEdge( + """The method to use when ordering `PlatformAgent`.""" + orderBy: [PlatformAgentOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformAgentEdge + """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query } -"""The output of our update `Agent` mutation.""" -type UpdateAgentPayload { - """The `Agent` that was updated by this mutation.""" - agent: Agent +"""All input for the `updatePlatformAgentPersona` mutation.""" +input UpdatePlatformAgentPersonaInput { + """ + An arbitrary 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 edge for our `Agent`. May be used by Relay 1.""" - agentEdge( - """The method to use when ordering `Agent`.""" - orderBy: [AgentOrderBy!]! = [PRIMARY_KEY_ASC] - ): AgentEdge + """ + An object where the defined keys will be set on the `PlatformAgentPersona` being updated. + """ + platformAgentPersonaPatch: PlatformAgentPersonaPatch! +} +"""The output of our update `PlatformAgentPersona` mutation.""" +type UpdatePlatformAgentPersonaPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String + """The `PlatformAgentPersona` that was updated by this mutation.""" + platformAgentPersona: PlatformAgentPersona + + """An edge for our `PlatformAgentPersona`. May be used by Relay 1.""" + platformAgentPersonaEdge( + """The method to use when ordering `PlatformAgentPersona`.""" + orderBy: [PlatformAgentPersonaOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformAgentPersonaEdge + """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query } -"""All input for the `updateAgentPersona` mutation.""" -input UpdateAgentPersonaInput { - """ - An object where the defined keys will be set on the `AgentPersona` being updated. - """ - agentPersonaPatch: AgentPersonaPatch! - +"""All input for the `updatePlatformAgentPlan` mutation.""" +input UpdatePlatformAgentPlanInput { """ An arbitrary 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 `AgentPersona` mutation.""" -type UpdateAgentPersonaPayload { - """The `AgentPersona` that was updated by this mutation.""" - agentPersona: AgentPersona - """An edge for our `AgentPersona`. May be used by Relay 1.""" - agentPersonaEdge( - """The method to use when ordering `AgentPersona`.""" - orderBy: [AgentPersonaOrderBy!]! = [PRIMARY_KEY_ASC] - ): AgentPersonaEdge + """ + An object where the defined keys will be set on the `PlatformAgentPlan` being updated. + """ + platformAgentPlanPatch: PlatformAgentPlanPatch! +} +"""The output of our update `PlatformAgentPlan` mutation.""" +type UpdatePlatformAgentPlanPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String + """The `PlatformAgentPlan` that was updated by this mutation.""" + platformAgentPlan: PlatformAgentPlan + + """An edge for our `PlatformAgentPlan`. May be used by Relay 1.""" + platformAgentPlanEdge( + """The method to use when ordering `PlatformAgentPlan`.""" + orderBy: [PlatformAgentPlanOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformAgentPlanEdge + """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query } -"""All input for the `updateAgentPlan` mutation.""" -input UpdateAgentPlanInput { - """ - An object where the defined keys will be set on the `AgentPlan` being updated. - """ - agentPlanPatch: AgentPlanPatch! - +"""All input for the `updatePlatformAgentPrompt` mutation.""" +input UpdatePlatformAgentPromptInput { """ An arbitrary 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 `AgentPlan` mutation.""" -type UpdateAgentPlanPayload { - """The `AgentPlan` that was updated by this mutation.""" - agentPlan: AgentPlan - """An edge for our `AgentPlan`. May be used by Relay 1.""" - agentPlanEdge( - """The method to use when ordering `AgentPlan`.""" - orderBy: [AgentPlanOrderBy!]! = [PRIMARY_KEY_ASC] - ): AgentPlanEdge + """ + An object where the defined keys will be set on the `PlatformAgentPrompt` being updated. + """ + platformAgentPromptPatch: PlatformAgentPromptPatch! +} +"""The output of our update `PlatformAgentPrompt` mutation.""" +type UpdatePlatformAgentPromptPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String + """The `PlatformAgentPrompt` that was updated by this mutation.""" + platformAgentPrompt: PlatformAgentPrompt + + """An edge for our `PlatformAgentPrompt`. May be used by Relay 1.""" + platformAgentPromptEdge( + """The method to use when ordering `PlatformAgentPrompt`.""" + orderBy: [PlatformAgentPromptOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformAgentPromptEdge + """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query } -"""All input for the `updateAgentPrompt` mutation.""" -input UpdateAgentPromptInput { - """ - An object where the defined keys will be set on the `AgentPrompt` being updated. - """ - agentPromptPatch: AgentPromptPatch! - +"""All input for the `updatePlatformAgentResourceChunk` mutation.""" +input UpdatePlatformAgentResourceChunkInput { """ An arbitrary 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 `AgentPrompt` mutation.""" -type UpdateAgentPromptPayload { - """The `AgentPrompt` that was updated by this mutation.""" - agentPrompt: AgentPrompt - """An edge for our `AgentPrompt`. May be used by Relay 1.""" - agentPromptEdge( - """The method to use when ordering `AgentPrompt`.""" - orderBy: [AgentPromptOrderBy!]! = [PRIMARY_KEY_ASC] - ): AgentPromptEdge + """ + An object where the defined keys will be set on the `PlatformAgentResourceChunk` being updated. + """ + platformAgentResourceChunkPatch: PlatformAgentResourceChunkPatch! +} +"""The output of our update `PlatformAgentResourceChunk` mutation.""" +type UpdatePlatformAgentResourceChunkPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String + """The `PlatformAgentResourceChunk` that was updated by this mutation.""" + platformAgentResourceChunk: PlatformAgentResourceChunk + + """An edge for our `PlatformAgentResourceChunk`. May be used by Relay 1.""" + platformAgentResourceChunkEdge( + """The method to use when ordering `PlatformAgentResourceChunk`.""" + orderBy: [PlatformAgentResourceChunkOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformAgentResourceChunkEdge + """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query } -"""All input for the `updateAgentResourceChunk` mutation.""" -input UpdateAgentResourceChunkInput { - """ - An object where the defined keys will be set on the `AgentResourceChunk` being updated. - """ - agentResourceChunkPatch: AgentResourceChunkPatch! - +"""All input for the `updatePlatformAgentResource` mutation.""" +input UpdatePlatformAgentResourceInput { """ An arbitrary 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 `AgentResourceChunk` mutation.""" -type UpdateAgentResourceChunkPayload { - """The `AgentResourceChunk` that was updated by this mutation.""" - agentResourceChunk: AgentResourceChunk - """An edge for our `AgentResourceChunk`. May be used by Relay 1.""" - agentResourceChunkEdge( - """The method to use when ordering `AgentResourceChunk`.""" - orderBy: [AgentResourceChunkOrderBy!]! = [PRIMARY_KEY_ASC] - ): AgentResourceChunkEdge + """ + An object where the defined keys will be set on the `PlatformAgentResource` being updated. + """ + platformAgentResourcePatch: PlatformAgentResourcePatch! +} +"""The output of our update `PlatformAgentResource` mutation.""" +type UpdatePlatformAgentResourcePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String + """The `PlatformAgentResource` that was updated by this mutation.""" + platformAgentResource: PlatformAgentResource + + """An edge for our `PlatformAgentResource`. May be used by Relay 1.""" + platformAgentResourceEdge( + """The method to use when ordering `PlatformAgentResource`.""" + orderBy: [PlatformAgentResourceOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformAgentResourceEdge + """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query } -"""All input for the `updateAgentResource` mutation.""" -input UpdateAgentResourceInput { - """ - An object where the defined keys will be set on the `AgentResource` being updated. - """ - agentResourcePatch: AgentResourcePatch! - +"""All input for the `updatePlatformAgentRun` mutation.""" +input UpdatePlatformAgentRunInput { """ An arbitrary 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 `AgentResource` mutation.""" -type UpdateAgentResourcePayload { - """The `AgentResource` that was updated by this mutation.""" - agentResource: AgentResource - - """An edge for our `AgentResource`. May be used by Relay 1.""" - agentResourceEdge( - """The method to use when ordering `AgentResource`.""" - orderBy: [AgentResourceOrderBy!]! = [PRIMARY_KEY_ASC] - ): AgentResourceEdge + """ + An object where the defined keys will be set on the `PlatformAgentRun` being updated. + """ + platformAgentRunPatch: PlatformAgentRunPatch! +} +"""The output of our update `PlatformAgentRun` mutation.""" +type UpdatePlatformAgentRunPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String + """The `PlatformAgentRun` that was updated by this mutation.""" + platformAgentRun: PlatformAgentRun + + """An edge for our `PlatformAgentRun`. May be used by Relay 1.""" + platformAgentRunEdge( + """The method to use when ordering `PlatformAgentRun`.""" + orderBy: [PlatformAgentRunOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformAgentRunEdge + """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query } -"""All input for the `updateAgentTask` mutation.""" -input UpdateAgentTaskInput { - """ - An object where the defined keys will be set on the `AgentTask` being updated. - """ - agentTaskPatch: AgentTaskPatch! - +"""All input for the `updatePlatformAgentRunWorkspace` mutation.""" +input UpdatePlatformAgentRunWorkspaceInput { """ An arbitrary 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 `AgentTask` mutation.""" -type UpdateAgentTaskPayload { - """The `AgentTask` that was updated by this mutation.""" - agentTask: AgentTask - """An edge for our `AgentTask`. May be used by Relay 1.""" - agentTaskEdge( - """The method to use when ordering `AgentTask`.""" - orderBy: [AgentTaskOrderBy!]! = [PRIMARY_KEY_ASC] - ): AgentTaskEdge + """ + An object where the defined keys will be set on the `PlatformAgentRunWorkspace` being updated. + """ + platformAgentRunWorkspacePatch: PlatformAgentRunWorkspacePatch! +} +"""The output of our update `PlatformAgentRunWorkspace` mutation.""" +type UpdatePlatformAgentRunWorkspacePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String + """The `PlatformAgentRunWorkspace` that was updated by this mutation.""" + platformAgentRunWorkspace: PlatformAgentRunWorkspace + + """An edge for our `PlatformAgentRunWorkspace`. May be used by Relay 1.""" + platformAgentRunWorkspaceEdge( + """The method to use when ordering `PlatformAgentRunWorkspace`.""" + orderBy: [PlatformAgentRunWorkspaceOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformAgentRunWorkspaceEdge + """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query } -"""All input for the `updateAgentThread` mutation.""" -input UpdateAgentThreadInput { +"""All input for the `updatePlatformAgentTask` mutation.""" +input UpdatePlatformAgentTaskInput { """ - An object where the defined keys will be set on the `AgentThread` being updated. + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - agentThreadPatch: AgentThreadPatch! + clientMutationId: String + id: UUID! + + """ + An object where the defined keys will be set on the `PlatformAgentTask` being updated. + """ + platformAgentTaskPatch: PlatformAgentTaskPatch! +} + +"""The output of our update `PlatformAgentTask` mutation.""" +type UpdatePlatformAgentTaskPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `PlatformAgentTask` that was updated by this mutation.""" + platformAgentTask: PlatformAgentTask + + """An edge for our `PlatformAgentTask`. May be used by Relay 1.""" + platformAgentTaskEdge( + """The method to use when ordering `PlatformAgentTask`.""" + orderBy: [PlatformAgentTaskOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformAgentTaskEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} +"""All input for the `updatePlatformAgentThread` mutation.""" +input UpdatePlatformAgentThreadInput { """ An arbitrary 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 `AgentThread` mutation.""" -type UpdateAgentThreadPayload { - """The `AgentThread` that was updated by this mutation.""" - agentThread: AgentThread - """An edge for our `AgentThread`. May be used by Relay 1.""" - agentThreadEdge( - """The method to use when ordering `AgentThread`.""" - orderBy: [AgentThreadOrderBy!]! = [PRIMARY_KEY_ASC] - ): AgentThreadEdge + """ + An object where the defined keys will be set on the `PlatformAgentThread` being updated. + """ + platformAgentThreadPatch: PlatformAgentThreadPatch! +} +"""The output of our update `PlatformAgentThread` mutation.""" +type UpdatePlatformAgentThreadPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String + """The `PlatformAgentThread` that was updated by this mutation.""" + platformAgentThread: PlatformAgentThread + + """An edge for our `PlatformAgentThread`. May be used by Relay 1.""" + platformAgentThreadEdge( + """The method to use when ordering `PlatformAgentThread`.""" + orderBy: [PlatformAgentThreadOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformAgentThreadEdge + """ Our root query field type. Allows us to run any query from our mutation payload. """ diff --git a/sdk/constructive-sdk/schemas/api.graphql b/sdk/constructive-sdk/schemas/api.graphql index c2ae817b9b..7a63fb6320 100644 --- a/sdk/constructive-sdk/schemas/api.graphql +++ b/sdk/constructive-sdk/schemas/api.graphql @@ -1,3 +1,28 @@ +"""All input for the `acceptDatabaseTransfer` mutation.""" +input AcceptDatabaseTransferInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + transferId: UUID +} + +"""The output of our `acceptDatabaseTransfer` mutation.""" +type AcceptDatabaseTransferPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + result: Boolean +} + """ API surfaces exposed by this scope; publication makes a surface bindable from other scopes """ @@ -480,6 +505,11 @@ type ApiSetting { """ enableI18N: Boolean + """ + Override: enable GraphQL schema introspection queries (NULL = inherit from database_settings) + """ + enableIntrospection: Boolean + """ Override: enable LLM/AI integration features (NULL = inherit from database_settings) """ @@ -516,11 +546,61 @@ type ApiSetting { enableSearch: Boolean id: UUID! + """ + Override: idle-in-transaction timeout in milliseconds (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. + """ + idleInTransactionTimeoutMs: BigInt + + """ + Override: lock acquisition timeout in milliseconds (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. + """ + lockTimeoutMs: BigInt + + """ + Override: maximum concurrently executing GraphQL requests (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. + """ + maxConcurrentRequests: Int + + """ + Override: maximum page size for connection queries (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. + """ + maxPageSize: Int + + """ + Override: maximum GraphQL query cost (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. + """ + maxQueryCost: Int + + """ + Override: maximum GraphQL query depth (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. + """ + maxQueryDepth: Int + + """ + Override: maximum time in milliseconds a request may wait for a concurrency slot (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. + """ + maxQueueWaitMs: Int + + """ + Override: maximum request body size in bytes (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. + """ + maxRequestBytes: Int + """ Extensible JSON for additional per-API settings that do not have dedicated columns """ options: JSON! + """ + Override: rate-limit burst allowance (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. + """ + rateLimitBurst: Int + + """ + Override: request rate limit in requests per minute (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. + """ + rateLimitRpm: Int + """ Override: GraphQL statement timeout in milliseconds (NULL = inherit from database_settings). Clamped by the plan cap at read time. """ @@ -588,6 +668,9 @@ input ApiSettingFilter { """Filter by the object’s `enableI18N` field.""" enableI18N: BooleanFilter + """Filter by the object’s `enableIntrospection` field.""" + enableIntrospection: BooleanFilter + """Filter by the object’s `enableLlm` field.""" enableLlm: BooleanFilter @@ -612,6 +695,30 @@ input ApiSettingFilter { """Filter by the object’s `id` field.""" id: UUIDFilter + """Filter by the object’s `idleInTransactionTimeoutMs` field.""" + idleInTransactionTimeoutMs: BigIntFilter + + """Filter by the object’s `lockTimeoutMs` field.""" + lockTimeoutMs: BigIntFilter + + """Filter by the object’s `maxConcurrentRequests` field.""" + maxConcurrentRequests: IntFilter + + """Filter by the object’s `maxPageSize` field.""" + maxPageSize: IntFilter + + """Filter by the object’s `maxQueryCost` field.""" + maxQueryCost: IntFilter + + """Filter by the object’s `maxQueryDepth` field.""" + maxQueryDepth: IntFilter + + """Filter by the object’s `maxQueueWaitMs` field.""" + maxQueueWaitMs: IntFilter + + """Filter by the object’s `maxRequestBytes` field.""" + maxRequestBytes: IntFilter + """Negates the expression.""" not: ApiSettingFilter @@ -621,6 +728,12 @@ input ApiSettingFilter { """Checks for any expressions in this list.""" or: [ApiSettingFilter!] + """Filter by the object’s `rateLimitBurst` field.""" + rateLimitBurst: IntFilter + + """Filter by the object’s `rateLimitRpm` field.""" + rateLimitRpm: IntFilter + """Filter by the object’s `statementTimeoutMs` field.""" statementTimeoutMs: BigIntFilter @@ -662,6 +775,11 @@ input ApiSettingInput { """ enableI18N: Boolean + """ + Override: enable GraphQL schema introspection queries (NULL = inherit from database_settings) + """ + enableIntrospection: Boolean + """ Override: enable LLM/AI integration features (NULL = inherit from database_settings) """ @@ -698,11 +816,61 @@ input ApiSettingInput { enableSearch: Boolean id: UUID + """ + Override: idle-in-transaction timeout in milliseconds (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. + """ + idleInTransactionTimeoutMs: BigInt + + """ + Override: lock acquisition timeout in milliseconds (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. + """ + lockTimeoutMs: BigInt + + """ + Override: maximum concurrently executing GraphQL requests (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. + """ + maxConcurrentRequests: Int + + """ + Override: maximum page size for connection queries (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. + """ + maxPageSize: Int + + """ + Override: maximum GraphQL query cost (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. + """ + maxQueryCost: Int + + """ + Override: maximum GraphQL query depth (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. + """ + maxQueryDepth: Int + + """ + Override: maximum time in milliseconds a request may wait for a concurrency slot (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. + """ + maxQueueWaitMs: Int + + """ + Override: maximum request body size in bytes (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. + """ + maxRequestBytes: Int + """ Extensible JSON for additional per-API settings that do not have dedicated columns """ options: JSON + """ + Override: rate-limit burst allowance (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. + """ + rateLimitBurst: Int + + """ + Override: request rate limit in requests per minute (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. + """ + rateLimitRpm: Int + """ Override: GraphQL statement timeout in milliseconds (NULL = inherit from database_settings). Clamped by the plan cap at read time. """ @@ -728,6 +896,8 @@ enum ApiSettingOrderBy { ENABLE_DIRECT_UPLOADS_DESC ENABLE_I18N_ASC ENABLE_I18N_DESC + ENABLE_INTROSPECTION_ASC + ENABLE_INTROSPECTION_DESC ENABLE_LLM_ASC ENABLE_LLM_DESC ENABLE_LTREE_ASC @@ -742,13 +912,33 @@ enum ApiSettingOrderBy { ENABLE_REALTIME_DESC ENABLE_SEARCH_ASC ENABLE_SEARCH_DESC + IDLE_IN_TRANSACTION_TIMEOUT_MS_ASC + IDLE_IN_TRANSACTION_TIMEOUT_MS_DESC ID_ASC ID_DESC + LOCK_TIMEOUT_MS_ASC + LOCK_TIMEOUT_MS_DESC + MAX_CONCURRENT_REQUESTS_ASC + MAX_CONCURRENT_REQUESTS_DESC + MAX_PAGE_SIZE_ASC + MAX_PAGE_SIZE_DESC + MAX_QUERY_COST_ASC + MAX_QUERY_COST_DESC + MAX_QUERY_DEPTH_ASC + MAX_QUERY_DEPTH_DESC + MAX_QUEUE_WAIT_MS_ASC + MAX_QUEUE_WAIT_MS_DESC + MAX_REQUEST_BYTES_ASC + MAX_REQUEST_BYTES_DESC NATURAL OPTIONS_ASC OPTIONS_DESC PRIMARY_KEY_ASC PRIMARY_KEY_DESC + RATE_LIMIT_BURST_ASC + RATE_LIMIT_BURST_DESC + RATE_LIMIT_RPM_ASC + RATE_LIMIT_RPM_DESC STATEMENT_TIMEOUT_MS_ASC STATEMENT_TIMEOUT_MS_DESC UPDATED_AT_ASC @@ -791,6 +981,11 @@ input ApiSettingPatch { """ enableI18N: Boolean + """ + Override: enable GraphQL schema introspection queries (NULL = inherit from database_settings) + """ + enableIntrospection: Boolean + """ Override: enable LLM/AI integration features (NULL = inherit from database_settings) """ @@ -828,376 +1023,182 @@ input ApiSettingPatch { id: UUID """ - Extensible JSON for additional per-API settings that do not have dedicated columns + Override: idle-in-transaction timeout in milliseconds (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. """ - options: JSON + idleInTransactionTimeoutMs: BigInt """ - Override: GraphQL statement timeout in milliseconds (NULL = inherit from database_settings). Clamped by the plan cap at read time. + Override: lock acquisition timeout in milliseconds (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. """ - statementTimeoutMs: BigInt - updatedAt: Datetime -} - -""" -A filter to be used against many `ApiSchema` object types. All fields are combined with a logical ‘and.’ -""" -input ApiToManyApiSchemaFilter { - """Filters to entities where every related entity matches.""" - every: ApiSchemaFilter - - """Filters to entities where no related entity matches.""" - none: ApiSchemaFilter - - """Filters to entities where at least one related entity matches.""" - some: ApiSchemaFilter -} - -""" -A filter to be used against many `CorsSetting` object types. All fields are combined with a logical ‘and.’ -""" -input ApiToManyCorsSettingFilter { - """Filters to entities where every related entity matches.""" - every: CorsSettingFilter - - """Filters to entities where no related entity matches.""" - none: CorsSettingFilter - - """Filters to entities where at least one related entity matches.""" - some: CorsSettingFilter -} - -""" -App aggregates: thin identity rows whose components are global catalog references -""" -type App { - """Reads and enables pagination through a set of `AppComponent`.""" - appComponents( - """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 `AppComponent`.""" - orderBy: [AppComponentOrderBy!] = [PRIMARY_KEY_ASC] - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: AppComponentFilter - ): AppComponentConnection! - - """Module-specific configuration for this app""" - config: JSON - createdAt: Datetime - - """Database that owns this resource (database-scoped isolation)""" - databaseId: UUID! - - """Human-readable app description""" - description: String - id: UUID! - - """Whether other scopes may see and reference this app""" - isPublished: Boolean! - - """Owner-local app name""" - name: String! - - """App lifecycle status: active, suspended, archived""" - status: String! - - """Human-readable app title""" - title: String - updatedAt: Datetime -} - -""" -App component rows binding an app to typed catalog rows (exactly one typed component reference per row) -""" -type AppComponent { - """Reads a single `App` that is related to this `AppComponent`.""" - app: App - - """App this component belongs to""" - appId: UUID! + lockTimeoutMs: BigInt """ - Typed catalog api row of the component surface; must be owner-matched or visible cross-scope + Override: maximum concurrently executing GraphQL requests (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. """ - componentApiId: UUID + maxConcurrentRequests: Int """ - Typed catalog domain row of the component surface; must be owner-matched or visible cross-scope + Override: maximum page size for connection queries (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. """ - componentDomainId: UUID + maxPageSize: Int """ - Typed catalog resource installation row of the component release; must be owner-matched or visible cross-scope + Override: maximum GraphQL query cost (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. """ - componentInstallationId: UUID + maxQueryCost: Int """ - Typed catalog site row of the component surface; must be owner-matched or visible cross-scope + Override: maximum GraphQL query depth (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. """ - componentSiteId: UUID + maxQueryDepth: Int """ - Which kind of catalog row this component binds (api, site, domain, installation) + Override: maximum time in milliseconds a request may wait for a concurrency slot (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. """ - componentType: String - - """Component-specific configuration inside this app""" - config: JSON - createdAt: Datetime - - """Database that owns this resource (database-scoped isolation)""" - databaseId: UUID! - id: UUID! - updatedAt: Datetime -} - -"""A connection to a list of `AppComponent` values.""" -type AppComponentConnection { - """ - A list of edges which contains the `AppComponent` and cursor to aid in pagination. - """ - edges: [AppComponentEdge]! - - """A list of `AppComponent` objects.""" - nodes: [AppComponent]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `AppComponent` you could get from the connection.""" - totalCount: Int! -} - -"""A `AppComponent` edge in the connection.""" -type AppComponentEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `AppComponent` at the end of the edge.""" - node: AppComponent -} - -""" -A filter to be used against `AppComponent` object types. All fields are combined with a logical ‘and.’ -""" -input AppComponentFilter { - """Checks for all expressions in this list.""" - and: [AppComponentFilter!] - - """Filter by the object’s `app` relation.""" - app: AppFilter - - """Filter by the object’s `appId` field.""" - appId: UUIDFilter - - """Filter by the object’s `componentApiId` field.""" - componentApiId: UUIDFilter - - """Filter by the object’s `componentDomainId` field.""" - componentDomainId: UUIDFilter - - """Filter by the object’s `componentInstallationId` field.""" - componentInstallationId: UUIDFilter - - """Filter by the object’s `componentSiteId` field.""" - componentSiteId: UUIDFilter - - """Filter by the object’s `componentType` field.""" - componentType: StringFilter - - """Filter by the object’s `config` field.""" - config: 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: AppComponentFilter - - """Checks for any expressions in this list.""" - or: [AppComponentFilter!] - - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter -} - -"""An input for mutations affecting `AppComponent`""" -input AppComponentInput { - """App this component belongs to""" - appId: UUID! + maxQueueWaitMs: Int """ - Typed catalog api row of the component surface; must be owner-matched or visible cross-scope + Override: maximum request body size in bytes (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. """ - componentApiId: UUID + maxRequestBytes: Int """ - Typed catalog domain row of the component surface; must be owner-matched or visible cross-scope + Extensible JSON for additional per-API settings that do not have dedicated columns """ - componentDomainId: UUID + options: JSON """ - Typed catalog resource installation row of the component release; must be owner-matched or visible cross-scope + Override: rate-limit burst allowance (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. """ - componentInstallationId: UUID + rateLimitBurst: Int """ - Typed catalog site row of the component surface; must be owner-matched or visible cross-scope + Override: request rate limit in requests per minute (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. """ - componentSiteId: UUID + rateLimitRpm: Int """ - Which kind of catalog row this component binds (api, site, domain, installation) + Override: GraphQL statement timeout in milliseconds (NULL = inherit from database_settings). Clamped by the plan cap at read time. """ - componentType: String - - """Component-specific configuration inside this app""" - config: JSON - createdAt: Datetime - - """Database that owns this resource (database-scoped isolation)""" - databaseId: UUID! - id: UUID + statementTimeoutMs: BigInt updatedAt: Datetime } -"""Methods to use when ordering `AppComponent`.""" -enum AppComponentOrderBy { - APP_ID_ASC - APP_ID_DESC - COMPONENT_API_ID_ASC - COMPONENT_API_ID_DESC - COMPONENT_DOMAIN_ID_ASC - COMPONENT_DOMAIN_ID_DESC - COMPONENT_INSTALLATION_ID_ASC - COMPONENT_INSTALLATION_ID_DESC - COMPONENT_SITE_ID_ASC - COMPONENT_SITE_ID_DESC - COMPONENT_TYPE_ASC - COMPONENT_TYPE_DESC - CONFIG_ASC - CONFIG_DESC - CREATED_AT_ASC - CREATED_AT_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - ID_ASC - ID_DESC - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC +""" +A filter to be used against many `ApiSchema` object types. All fields are combined with a logical ‘and.’ +""" +input ApiToManyApiSchemaFilter { + """Filters to entities where every related entity matches.""" + every: ApiSchemaFilter + + """Filters to entities where no related entity matches.""" + none: ApiSchemaFilter + + """Filters to entities where at least one related entity matches.""" + some: ApiSchemaFilter } """ -Represents an update to a `AppComponent`. Fields that are set will be updated. +A filter to be used against many `CorsSetting` object types. All fields are combined with a logical ‘and.’ """ -input AppComponentPatch { - """App this component belongs to""" - appId: UUID +input ApiToManyCorsSettingFilter { + """Filters to entities where every related entity matches.""" + every: CorsSettingFilter - """ - Typed catalog api row of the component surface; must be owner-matched or visible cross-scope - """ - componentApiId: UUID + """Filters to entities where no related entity matches.""" + none: CorsSettingFilter - """ - Typed catalog domain row of the component surface; must be owner-matched or visible cross-scope - """ - componentDomainId: UUID + """Filters to entities where at least one related entity matches.""" + some: CorsSettingFilter +} +"""All input for the `applyRls` mutation.""" +input ApplyRlsInput { """ - Typed catalog resource installation row of the component release; must be owner-matched or visible cross-scope + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - componentInstallationId: UUID + clientMutationId: String + fieldIds: [UUID] + grants: JSON + name: String + permissive: Boolean + policyType: String + tableId: UUID + vars: JSON +} +"""The output of our `applyRls` mutation.""" +type ApplyRlsPayload { """ - Typed catalog site row of the component surface; must be owner-matched or visible cross-scope + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - componentSiteId: UUID + clientMutationId: String """ - Which kind of catalog row this component binds (api, site, domain, installation) + Our root query field type. Allows us to run any query from our mutation payload. """ - componentType: String + query: Query +} - """Component-specific configuration inside this app""" - config: JSON +type AstMigration { + actionId: UUID + actionName: String + actorId: UUID createdAt: Datetime - - """Database that owns this resource (database-scoped isolation)""" databaseId: UUID - id: UUID - updatedAt: Datetime + deploy: JSON + deploys: String + id: Int + name: String + payload: JSON + requires: [String] + revert: JSON + verify: JSON } -"""A connection to a list of `App` values.""" -type AppConnection { +"""A connection to a list of `AstMigration` values.""" +type AstMigrationConnection { """ - A list of edges which contains the `App` and cursor to aid in pagination. + A list of edges which contains the `AstMigration` and cursor to aid in pagination. """ - edges: [AppEdge]! + edges: [AstMigrationEdge]! - """A list of `App` objects.""" - nodes: [App]! + """A list of `AstMigration` objects.""" + nodes: [AstMigration]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `App` you could get from the connection.""" + """The count of *all* `AstMigration` you could get from the connection.""" totalCount: Int! } -"""A `App` edge in the connection.""" -type AppEdge { +"""A `AstMigration` edge in the connection.""" +type AstMigrationEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `App` at the end of the edge.""" - node: App + """The `AstMigration` at the end of the edge.""" + node: AstMigration } """ -A filter to be used against `App` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `AstMigration` object types. All fields are combined with a logical ‘and.’ """ -input AppFilter { - """Checks for all expressions in this list.""" - and: [AppFilter!] +input AstMigrationFilter { + """Filter by the object’s `actionId` field.""" + actionId: UUIDFilter - """Filter by the object’s `appComponents` relation.""" - appComponents: AppToManyAppComponentFilter + """Filter by the object’s `actionName` field.""" + actionName: StringFilter - """`appComponents` exist.""" - appComponentsExist: Boolean + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter - """Filter by the object’s `config` field.""" - config: JSONFilter + """Checks for all expressions in this list.""" + and: [AstMigrationFilter!] """Filter by the object’s `createdAt` field.""" createdAt: DatetimeFilter @@ -1205,248 +1206,66 @@ input AppFilter { """Filter by the object’s `databaseId` field.""" databaseId: UUIDFilter - """Filter by the object’s `description` field.""" - description: StringFilter + """Filter by the object’s `deploy` field.""" + deploy: JSONFilter - """Filter by the object’s `id` field.""" - id: UUIDFilter + """Filter by the object’s `deploys` field.""" + deploys: StringFilter - """Filter by the object’s `isPublished` field.""" - isPublished: BooleanFilter + """Filter by the object’s `id` field.""" + id: IntFilter """Filter by the object’s `name` field.""" name: StringFilter """Negates the expression.""" - not: AppFilter + not: AstMigrationFilter """Checks for any expressions in this list.""" - or: [AppFilter!] - - """Filter by the object’s `status` field.""" - status: StringFilter - - """Filter by the object’s `title` field.""" - title: StringFilter - - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter -} - -"""An input for mutations affecting `App`""" -input AppInput { - """Module-specific configuration for this app""" - config: JSON - createdAt: Datetime - - """Database that owns this resource (database-scoped isolation)""" - databaseId: UUID! + or: [AstMigrationFilter!] - """Human-readable app description""" - description: String - id: UUID + """Filter by the object’s `payload` field.""" + payload: JSONFilter - """Whether other scopes may see and reference this app""" - isPublished: Boolean + """Filter by the object’s `requires` field.""" + requires: StringListFilter - """Owner-local app name""" - name: String! + """Filter by the object’s `revert` field.""" + revert: JSONFilter - """App lifecycle status: active, suspended, archived""" - status: String - - """Human-readable app title""" - title: String - updatedAt: Datetime + """Filter by the object’s `verify` field.""" + verify: JSONFilter } -"""Methods to use when ordering `App`.""" -enum AppOrderBy { - CONFIG_ASC - CONFIG_DESC +"""Methods to use when ordering `AstMigration`.""" +enum AstMigrationOrderBy { + ACTION_ID_ASC + ACTION_ID_DESC + ACTION_NAME_ASC + ACTION_NAME_DESC + ACTOR_ID_ASC + ACTOR_ID_DESC CREATED_AT_ASC CREATED_AT_DESC DATABASE_ID_ASC DATABASE_ID_DESC - DESCRIPTION_ASC - DESCRIPTION_DESC + DEPLOYS_ASC + DEPLOYS_DESC + DEPLOY_ASC + DEPLOY_DESC ID_ASC ID_DESC - IS_PUBLISHED_ASC - IS_PUBLISHED_DESC NAME_ASC NAME_DESC NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - STATUS_ASC - STATUS_DESC - TITLE_ASC - TITLE_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC -} - -"""Represents an update to a `App`. Fields that are set will be updated.""" -input AppPatch { - """Module-specific configuration for this app""" - config: JSON - createdAt: Datetime - - """Database that owns this resource (database-scoped isolation)""" - databaseId: UUID - - """Human-readable app description""" - description: String - id: UUID - - """Whether other scopes may see and reference this app""" - isPublished: Boolean - - """Owner-local app name""" - name: String - - """App lifecycle status: active, suspended, archived""" - status: String - - """Human-readable app title""" - title: String - updatedAt: Datetime -} - -""" -A filter to be used against many `AppComponent` object types. All fields are combined with a logical ‘and.’ -""" -input AppToManyAppComponentFilter { - """Filters to entities where every related entity matches.""" - every: AppComponentFilter - - """Filters to entities where no related entity matches.""" - none: AppComponentFilter - - """Filters to entities where at least one related entity matches.""" - some: AppComponentFilter -} - -"""All input for the `applyRls` mutation.""" -input ApplyRlsInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - fieldIds: [UUID] - grants: JSON - name: String - permissive: Boolean - policyType: String - tableId: UUID - vars: JSON -} - -"""The output of our `applyRls` mutation.""" -type ApplyRlsPayload { - """ - The 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 `appsInstallApp` mutation.""" -input AppsInstallAppInput { - 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 - config: JSON - definitionIds: [UUID] - hostname: String - label: String - name: String - namespaceId: UUID - params: JSON - routePath: String - slug: String - title: String -} - -"""The output of our `appsInstallApp` mutation.""" -type AppsInstallAppPayload { - """An edge for our `App`. May be used by Relay 1.""" - appEdge( - """The method to use when ordering `App`.""" - orderBy: [AppOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppEdge - - """ - The 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: App -} - -"""All input for the `appsUninstallApp` mutation.""" -input AppsUninstallAppInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - targetAppId: UUID -} - -"""The output of our `appsUninstallApp` mutation.""" -type AppsUninstallAppPayload { - """ - The 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 `appsUpgradeApp` mutation.""" -input AppsUpgradeAppInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - newParams: JSON - targetAppId: UUID -} - -"""The output of our `appsUpgradeApp` mutation.""" -type AppsUpgradeAppPayload { - """ - The 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 + PAYLOAD_ASC + PAYLOAD_DESC + REQUIRES_ASC + REQUIRES_DESC + REVERT_ASC + REVERT_DESC + VERIFY_ASC + VERIFY_DESC } """ @@ -1540,6 +1359,31 @@ input BooleanFilter { notIn: [Boolean!] } +"""All input for the `cancelDatabaseTransfer` mutation.""" +input CancelDatabaseTransferInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + transferId: UUID +} + +"""The output of our `cancelDatabaseTransfer` mutation.""" +type CancelDatabaseTransferPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + result: Boolean +} + type CheckConstraint { category: ObjectCategory! createdAt: Datetime @@ -2183,76 +2027,6 @@ type CreateApiSettingPayload { query: Query } -"""All input for the create `AppComponent` mutation.""" -input CreateAppComponentInput { - """The `AppComponent` to be created by this mutation.""" - appComponent: AppComponentInput! - - """ - An arbitrary 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 `AppComponent` mutation.""" -type CreateAppComponentPayload { - """The `AppComponent` that was created by this mutation.""" - appComponent: AppComponent - - """An edge for our `AppComponent`. May be used by Relay 1.""" - appComponentEdge( - """The method to use when ordering `AppComponent`.""" - orderBy: [AppComponentOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppComponentEdge - - """ - The 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 `App` mutation.""" -input CreateAppInput { - """The `App` to be created by this mutation.""" - app: AppInput! - - """ - An arbitrary 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 `App` mutation.""" -type CreateAppPayload { - """The `App` that was created by this mutation.""" - app: App - - """An edge for our `App`. May be used by Relay 1.""" - appEdge( - """The method to use when ordering `App`.""" - orderBy: [AppOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppEdge - - """ - The 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.""" @@ -3130,34 +2904,34 @@ type CreateHostnameBindingPayload { query: Query } -"""All input for the create `HttpRoute` mutation.""" -input CreateHttpRouteInput { +"""All input for the create `IdentityProviderRegistry` mutation.""" +input CreateIdentityProviderRegistryInput { """ An arbitrary 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 `HttpRoute` to be created by this mutation.""" - httpRoute: HttpRouteInput! + """The `IdentityProviderRegistry` to be created by this mutation.""" + identityProviderRegistry: IdentityProviderRegistryInput! } -"""The output of our create `HttpRoute` mutation.""" -type CreateHttpRoutePayload { +"""The output of our create `IdentityProviderRegistry` mutation.""" +type CreateIdentityProviderRegistryPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `HttpRoute` that was created by this mutation.""" - httpRoute: HttpRoute + """The `IdentityProviderRegistry` that was created by this mutation.""" + identityProviderRegistry: IdentityProviderRegistry - """An edge for our `HttpRoute`. May be used by Relay 1.""" - httpRouteEdge( - """The method to use when ordering `HttpRoute`.""" - orderBy: [HttpRouteOrderBy!]! = [PRIMARY_KEY_ASC] - ): HttpRouteEdge + """An edge for our `IdentityProviderRegistry`. May be used by Relay 1.""" + identityProviderRegistryEdge( + """The method to use when ordering `IdentityProviderRegistry`.""" + orderBy: [IdentityProviderRegistryOrderBy!]! = [PRIMARY_KEY_ASC] + ): IdentityProviderRegistryEdge """ Our root query field type. Allows us to run any query from our mutation payload. @@ -3972,6 +3746,41 @@ type CreatePlatformSitePayload { query: Query } +"""All input for the create `PlatformSiteRelease` mutation.""" +input CreatePlatformSiteReleaseInput { + """ + An arbitrary 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 `PlatformSiteRelease` to be created by this mutation.""" + platformSiteRelease: PlatformSiteReleaseInput! +} + +"""The output of our create `PlatformSiteRelease` mutation.""" +type CreatePlatformSiteReleasePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `PlatformSiteRelease` that was created by this mutation.""" + platformSiteRelease: PlatformSiteRelease + + """An edge for our `PlatformSiteRelease`. May be used by Relay 1.""" + platformSiteReleaseEdge( + """The method to use when ordering `PlatformSiteRelease`.""" + orderBy: [PlatformSiteReleaseOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformSiteReleaseEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + """All input for the create `PlatformSiteTheme` mutation.""" input CreatePlatformSiteThemeInput { """ @@ -4147,6 +3956,41 @@ type CreatePubkeySettingPayload { query: Query } +"""All input for the create `Redirect` mutation.""" +input CreateRedirectInput { + """ + An arbitrary 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 `Redirect` to be created by this mutation.""" + redirect: RedirectInput! +} + +"""The output of our create `Redirect` mutation.""" +type CreateRedirectPayload { + """ + The 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 `Redirect` that was created by this mutation.""" + redirect: Redirect + + """An edge for our `Redirect`. May be used by Relay 1.""" + redirectEdge( + """The method to use when ordering `Redirect`.""" + orderBy: [RedirectOrderBy!]! = [PRIMARY_KEY_ASC] + ): RedirectEdge +} + """All input for the create `RlsSetting` mutation.""" input CreateRlsSettingInput { """ @@ -4532,6 +4376,41 @@ type CreateSitePayload { ): SiteEdge } +"""All input for the create `SiteRelease` mutation.""" +input CreateSiteReleaseInput { + """ + An arbitrary 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 `SiteRelease` to be created by this mutation.""" + siteRelease: SiteReleaseInput! +} + +"""The output of our create `SiteRelease` mutation.""" +type CreateSiteReleasePayload { + """ + The 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 `SiteRelease` that was created by this mutation.""" + siteRelease: SiteRelease + + """An edge for our `SiteRelease`. May be used by Relay 1.""" + siteReleaseEdge( + """The method to use when ordering `SiteRelease`.""" + orderBy: [SiteReleaseOrderBy!]! = [PRIMARY_KEY_ASC] + ): SiteReleaseEdge +} + """All input for the create `SiteTheme` mutation.""" input CreateSiteThemeInput { """ @@ -6421,6 +6300,11 @@ type DatabaseProvisionModule { """ async: Boolean! + """ + The user whose identity is copied into the new database. Defaults to owner_id when NULL; set explicitly when owner_id is an organization + """ + bootstrapActorId: UUID + """Error message from the most recent failed bootstrap attempt""" bootstrapError: String @@ -6430,7 +6314,7 @@ type DatabaseProvisionModule { bootstrapStatus: String! """ - When true, copies the owner user and password hash from source database to the newly provisioned database + When true, copies the bootstrap user and password hash from source database to the newly provisioned database """ bootstrapUser: Boolean! completedAt: Datetime @@ -6460,7 +6344,9 @@ type DatabaseProvisionModule { """Additional configuration options for provisioning""" options: JSON! - """UUID of the user who owns this database""" + """ + UUID of the entity that owns this database: a user, or an organization for an org-owned request + """ ownerId: UUID! """ @@ -6492,6 +6378,11 @@ type DatabaseSetting { """Enable aggregate queries (sum, avg, min, max, etc.) in the GraphQL API""" enableAggregates: Boolean! + """ + Enable billing: financial provider actions (customer/subscription/usage sync, overdue sweep) are refused while false. Activation gate for the billing rollout — flipped only after billing:doctor passes. + """ + enableBilling: Boolean! + """ Enable bulk mutation operations (insert, upsert, update, delete) in the GraphQL API """ @@ -6508,6 +6399,11 @@ type DatabaseSetting { """ enableI18N: Boolean! + """ + Enable GraphQL schema introspection queries in the GraphQL API. A tenant may only ever lower a bound, so the stored default is the permissive end: turning introspection off is the opt-in. + """ + enableIntrospection: Boolean! + """Enable LLM/AI integration features in the GraphQL API""" enableLlm: Boolean! @@ -6534,14 +6430,64 @@ type DatabaseSetting { enableSearch: Boolean! id: UUID! + """ + Scope-wide default idle-in-transaction timeout in milliseconds; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. + """ + idleInTransactionTimeoutMs: BigInt + """Key/value pairs for selecting and filtering settings""" labels: JSON! + """ + Scope-wide default lock acquisition timeout in milliseconds; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. + """ + lockTimeoutMs: BigInt + + """ + Scope-wide default maximum concurrently executing GraphQL requests; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. + """ + maxConcurrentRequests: Int + + """ + Scope-wide default maximum page size for connection queries; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. + """ + maxPageSize: Int + + """ + Scope-wide default maximum GraphQL query cost; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. + """ + maxQueryCost: Int + + """ + Scope-wide default maximum GraphQL query depth; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. + """ + maxQueryDepth: Int + + """ + Scope-wide default maximum time in milliseconds a request may wait for a concurrency slot; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. + """ + maxQueueWaitMs: Int + + """ + Scope-wide default maximum request body size in bytes; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. + """ + maxRequestBytes: Int + """ Extensible JSON for additional settings that do not have dedicated columns """ options: JSON! + """ + Scope-wide default rate-limit burst allowance; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. + """ + rateLimitBurst: Int + + """ + Scope-wide default request rate limit in requests per minute; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. + """ + rateLimitRpm: Int + """ Scope-wide default GraphQL statement timeout in milliseconds; NULL inherits the platform default. Clamped by the plan cap at read time. """ @@ -6596,6 +6542,9 @@ input DatabaseSettingFilter { """Filter by the object’s `enableAggregates` field.""" enableAggregates: BooleanFilter + """Filter by the object’s `enableBilling` field.""" + enableBilling: BooleanFilter + """Filter by the object’s `enableBulk` field.""" enableBulk: BooleanFilter @@ -6608,6 +6557,9 @@ input DatabaseSettingFilter { """Filter by the object’s `enableI18N` field.""" enableI18N: BooleanFilter + """Filter by the object’s `enableIntrospection` field.""" + enableIntrospection: BooleanFilter + """Filter by the object’s `enableLlm` field.""" enableLlm: BooleanFilter @@ -6632,9 +6584,33 @@ input DatabaseSettingFilter { """Filter by the object’s `id` field.""" id: UUIDFilter + """Filter by the object’s `idleInTransactionTimeoutMs` field.""" + idleInTransactionTimeoutMs: BigIntFilter + """Filter by the object’s `labels` field.""" labels: JSONFilter + """Filter by the object’s `lockTimeoutMs` field.""" + lockTimeoutMs: BigIntFilter + + """Filter by the object’s `maxConcurrentRequests` field.""" + maxConcurrentRequests: IntFilter + + """Filter by the object’s `maxPageSize` field.""" + maxPageSize: IntFilter + + """Filter by the object’s `maxQueryCost` field.""" + maxQueryCost: IntFilter + + """Filter by the object’s `maxQueryDepth` field.""" + maxQueryDepth: IntFilter + + """Filter by the object’s `maxQueueWaitMs` field.""" + maxQueueWaitMs: IntFilter + + """Filter by the object’s `maxRequestBytes` field.""" + maxRequestBytes: IntFilter + """Negates the expression.""" not: DatabaseSettingFilter @@ -6644,6 +6620,12 @@ input DatabaseSettingFilter { """Checks for any expressions in this list.""" or: [DatabaseSettingFilter!] + """Filter by the object’s `rateLimitBurst` field.""" + rateLimitBurst: IntFilter + + """Filter by the object’s `rateLimitRpm` field.""" + rateLimitRpm: IntFilter + """Filter by the object’s `statementTimeoutMs` field.""" statementTimeoutMs: BigIntFilter @@ -6663,6 +6645,11 @@ input DatabaseSettingInput { """Enable aggregate queries (sum, avg, min, max, etc.) in the GraphQL API""" enableAggregates: Boolean + """ + Enable billing: financial provider actions (customer/subscription/usage sync, overdue sweep) are refused while false. Activation gate for the billing rollout — flipped only after billing:doctor passes. + """ + enableBilling: Boolean + """ Enable bulk mutation operations (insert, upsert, update, delete) in the GraphQL API """ @@ -6679,6 +6666,213 @@ input DatabaseSettingInput { """ enableI18N: Boolean + """ + Enable GraphQL schema introspection queries in the GraphQL API. A tenant may only ever lower a bound, so the stored default is the permissive end: turning introspection off is the opt-in. + """ + enableIntrospection: Boolean + + """Enable LLM/AI integration features in the GraphQL API""" + enableLlm: Boolean + + """Enable ltree hierarchical data type support in the GraphQL API""" + enableLtree: Boolean + + """Enable many-to-many relationship queries in the GraphQL API""" + enableManyToMany: Boolean + + """Enable PostGIS spatial types and operators in the GraphQL API""" + enablePostgis: Boolean + + """Enable presigned URL upload flow for S3/MinIO storage""" + enablePresignedUploads: Boolean + + """ + Enable realtime subscriptions (cursor-tracked change delivery) in the GraphQL API + """ + enableRealtime: Boolean + + """ + Enable unified search (tsvector, BM25, pg_trgm, pgvector) in the GraphQL API + """ + enableSearch: Boolean + id: UUID + + """ + Scope-wide default idle-in-transaction timeout in milliseconds; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. + """ + idleInTransactionTimeoutMs: BigInt + + """Key/value pairs for selecting and filtering settings""" + labels: JSON + + """ + Scope-wide default lock acquisition timeout in milliseconds; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. + """ + lockTimeoutMs: BigInt + + """ + Scope-wide default maximum concurrently executing GraphQL requests; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. + """ + maxConcurrentRequests: Int + + """ + Scope-wide default maximum page size for connection queries; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. + """ + maxPageSize: Int + + """ + Scope-wide default maximum GraphQL query cost; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. + """ + maxQueryCost: Int + + """ + Scope-wide default maximum GraphQL query depth; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. + """ + maxQueryDepth: Int + + """ + Scope-wide default maximum time in milliseconds a request may wait for a concurrency slot; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. + """ + maxQueueWaitMs: Int + + """ + Scope-wide default maximum request body size in bytes; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. + """ + maxRequestBytes: Int + + """ + Extensible JSON for additional settings that do not have dedicated columns + """ + options: JSON + + """ + Scope-wide default rate-limit burst allowance; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. + """ + rateLimitBurst: Int + + """ + Scope-wide default request rate limit in requests per minute; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. + """ + rateLimitRpm: Int + + """ + Scope-wide default GraphQL statement timeout in milliseconds; NULL inherits the platform default. Clamped by the plan cap at read time. + """ + statementTimeoutMs: BigInt + updatedAt: Datetime +} + +"""Methods to use when ordering `DatabaseSetting`.""" +enum DatabaseSettingOrderBy { + ANNOTATIONS_ASC + ANNOTATIONS_DESC + CREATED_AT_ASC + CREATED_AT_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + ENABLE_AGGREGATES_ASC + ENABLE_AGGREGATES_DESC + ENABLE_BILLING_ASC + ENABLE_BILLING_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_INTROSPECTION_ASC + ENABLE_INTROSPECTION_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 + IDLE_IN_TRANSACTION_TIMEOUT_MS_ASC + IDLE_IN_TRANSACTION_TIMEOUT_MS_DESC + ID_ASC + ID_DESC + LABELS_ASC + LABELS_DESC + LOCK_TIMEOUT_MS_ASC + LOCK_TIMEOUT_MS_DESC + MAX_CONCURRENT_REQUESTS_ASC + MAX_CONCURRENT_REQUESTS_DESC + MAX_PAGE_SIZE_ASC + MAX_PAGE_SIZE_DESC + MAX_QUERY_COST_ASC + MAX_QUERY_COST_DESC + MAX_QUERY_DEPTH_ASC + MAX_QUERY_DEPTH_DESC + MAX_QUEUE_WAIT_MS_ASC + MAX_QUEUE_WAIT_MS_DESC + MAX_REQUEST_BYTES_ASC + MAX_REQUEST_BYTES_DESC + NATURAL + OPTIONS_ASC + OPTIONS_DESC + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + RATE_LIMIT_BURST_ASC + RATE_LIMIT_BURST_DESC + RATE_LIMIT_RPM_ASC + RATE_LIMIT_RPM_DESC + STATEMENT_TIMEOUT_MS_ASC + STATEMENT_TIMEOUT_MS_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC +} + +""" +Represents an update to a `DatabaseSetting`. Fields that are set will be updated. +""" +input DatabaseSettingPatch { + """Freeform metadata for tooling and operational notes""" + annotations: JSON + createdAt: Datetime + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID + + """Enable aggregate queries (sum, avg, min, max, etc.) in the GraphQL API""" + enableAggregates: Boolean + + """ + Enable billing: financial provider actions (customer/subscription/usage sync, overdue sweep) are refused while false. Activation gate for the billing rollout — flipped only after billing:doctor passes. + """ + enableBilling: Boolean + + """ + Enable bulk mutation operations (insert, upsert, update, delete) in the GraphQL API + """ + enableBulk: Boolean + + """Enable connection filter (where argument) in the GraphQL API""" + enableConnectionFilter: Boolean + + """Enable direct (multipart) file upload mutations in the GraphQL API""" + enableDirectUploads: Boolean + + """ + Enable internationalization plugin (localeStrings field, translation table discovery) in the GraphQL API + """ + enableI18N: Boolean + + """ + Enable GraphQL schema introspection queries in the GraphQL API. A tenant may only ever lower a bound, so the stored default is the permissive end: turning introspection off is the opt-in. + """ + enableIntrospection: Boolean + """Enable LLM/AI integration features in the GraphQL API""" enableLlm: Boolean @@ -6705,132 +6899,64 @@ input DatabaseSettingInput { enableSearch: Boolean id: UUID + """ + Scope-wide default idle-in-transaction timeout in milliseconds; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. + """ + idleInTransactionTimeoutMs: BigInt + """Key/value pairs for selecting and filtering settings""" labels: JSON """ - Extensible JSON for additional settings that do not have dedicated columns + Scope-wide default lock acquisition timeout in milliseconds; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. """ - options: JSON + lockTimeoutMs: BigInt """ - Scope-wide default GraphQL statement timeout in milliseconds; NULL inherits the platform default. Clamped by the plan cap at read time. + Scope-wide default maximum concurrently executing GraphQL requests; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. """ - statementTimeoutMs: BigInt - updatedAt: Datetime -} - -"""Methods to use when ordering `DatabaseSetting`.""" -enum DatabaseSettingOrderBy { - ANNOTATIONS_ASC - ANNOTATIONS_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 - 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 - LABELS_ASC - LABELS_DESC - NATURAL - OPTIONS_ASC - OPTIONS_DESC - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - STATEMENT_TIMEOUT_MS_ASC - STATEMENT_TIMEOUT_MS_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC -} - -""" -Represents an update to a `DatabaseSetting`. Fields that are set will be updated. -""" -input DatabaseSettingPatch { - """Freeform metadata for tooling and operational notes""" - annotations: JSON - createdAt: Datetime - - """Database that owns this resource (database-scoped isolation)""" - databaseId: UUID - - """Enable aggregate queries (sum, avg, min, max, etc.) in the GraphQL API""" - enableAggregates: Boolean + maxConcurrentRequests: Int """ - Enable bulk mutation operations (insert, upsert, update, delete) in the GraphQL API + Scope-wide default maximum page size for connection queries; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. """ - enableBulk: Boolean - - """Enable connection filter (where argument) in the GraphQL API""" - enableConnectionFilter: Boolean - - """Enable direct (multipart) file upload mutations in the GraphQL API""" - enableDirectUploads: Boolean + maxPageSize: Int """ - Enable internationalization plugin (localeStrings field, translation table discovery) in the GraphQL API + Scope-wide default maximum GraphQL query cost; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. """ - enableI18N: Boolean - - """Enable LLM/AI integration features in the GraphQL API""" - enableLlm: Boolean - - """Enable ltree hierarchical data type support in the GraphQL API""" - enableLtree: Boolean - - """Enable many-to-many relationship queries in the GraphQL API""" - enableManyToMany: Boolean - - """Enable PostGIS spatial types and operators in the GraphQL API""" - enablePostgis: Boolean - - """Enable presigned URL upload flow for S3/MinIO storage""" - enablePresignedUploads: Boolean + maxQueryCost: Int """ - Enable realtime subscriptions (cursor-tracked change delivery) in the GraphQL API + Scope-wide default maximum GraphQL query depth; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. """ - enableRealtime: Boolean + maxQueryDepth: Int """ - Enable unified search (tsvector, BM25, pg_trgm, pgvector) in the GraphQL API + Scope-wide default maximum time in milliseconds a request may wait for a concurrency slot; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. """ - enableSearch: Boolean - id: UUID + maxQueueWaitMs: Int - """Key/value pairs for selecting and filtering settings""" - labels: JSON + """ + Scope-wide default maximum request body size in bytes; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. + """ + maxRequestBytes: Int """ Extensible JSON for additional settings that do not have dedicated columns """ options: JSON + """ + Scope-wide default rate-limit burst allowance; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. + """ + rateLimitBurst: Int + + """ + Scope-wide default request rate limit in requests per minute; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. + """ + rateLimitRpm: Int + """ Scope-wide default GraphQL statement timeout in milliseconds; NULL inherits the platform default. Clamped by the plan cap at read time. """ @@ -7773,72 +7899,6 @@ type DeleteApiSettingPayload { query: Query } -"""All input for the `deleteAppComponent` mutation.""" -input DeleteAppComponentInput { - """ - An arbitrary 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 `AppComponent` mutation.""" -type DeleteAppComponentPayload { - """The `AppComponent` that was deleted by this mutation.""" - appComponent: AppComponent - - """An edge for our `AppComponent`. May be used by Relay 1.""" - appComponentEdge( - """The method to use when ordering `AppComponent`.""" - orderBy: [AppComponentOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppComponentEdge - - """ - The 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 `deleteApp` mutation.""" -input DeleteAppInput { - """ - An arbitrary 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 `App` mutation.""" -type DeleteAppPayload { - """The `App` that was deleted by this mutation.""" - app: App - - """An edge for our `App`. May be used by Relay 1.""" - appEdge( - """The method to use when ordering `App`.""" - orderBy: [AppOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppEdge - - """ - The 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 `deleteCheckConstraint` mutation.""" input DeleteCheckConstraintInput { """ @@ -8666,32 +8726,32 @@ type DeleteHostnameBindingPayload { query: Query } -"""All input for the `deleteHttpRoute` mutation.""" -input DeleteHttpRouteInput { +"""All input for the `deleteIdentityProviderRegistry` mutation.""" +input DeleteIdentityProviderRegistryInput { """ An arbitrary 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! + slug: String! } -"""The output of our delete `HttpRoute` mutation.""" -type DeleteHttpRoutePayload { +"""The output of our delete `IdentityProviderRegistry` mutation.""" +type DeleteIdentityProviderRegistryPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `HttpRoute` that was deleted by this mutation.""" - httpRoute: HttpRoute + """The `IdentityProviderRegistry` that was deleted by this mutation.""" + identityProviderRegistry: IdentityProviderRegistry - """An edge for our `HttpRoute`. May be used by Relay 1.""" - httpRouteEdge( - """The method to use when ordering `HttpRoute`.""" - orderBy: [HttpRouteOrderBy!]! = [PRIMARY_KEY_ASC] - ): HttpRouteEdge + """An edge for our `IdentityProviderRegistry`. May be used by Relay 1.""" + identityProviderRegistryEdge( + """The method to use when ordering `IdentityProviderRegistry`.""" + orderBy: [IdentityProviderRegistryOrderBy!]! = [PRIMARY_KEY_ASC] + ): IdentityProviderRegistryEdge """ Our root query field type. Allows us to run any query from our mutation payload. @@ -9464,6 +9524,39 @@ type DeletePlatformSitePayload { query: Query } +"""All input for the `deletePlatformSiteRelease` mutation.""" +input DeletePlatformSiteReleaseInput { + """ + An arbitrary 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 `PlatformSiteRelease` mutation.""" +type DeletePlatformSiteReleasePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `PlatformSiteRelease` that was deleted by this mutation.""" + platformSiteRelease: PlatformSiteRelease + + """An edge for our `PlatformSiteRelease`. May be used by Relay 1.""" + platformSiteReleaseEdge( + """The method to use when ordering `PlatformSiteRelease`.""" + orderBy: [PlatformSiteReleaseOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformSiteReleaseEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + """All input for the `deletePlatformSiteTheme` mutation.""" input DeletePlatformSiteThemeInput { """ @@ -9629,6 +9722,39 @@ type DeletePubkeySettingPayload { query: Query } +"""All input for the `deleteRedirect` mutation.""" +input DeleteRedirectInput { + """ + An arbitrary 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 `Redirect` mutation.""" +type DeleteRedirectPayload { + """ + The 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 `Redirect` that was deleted by this mutation.""" + redirect: Redirect + + """An edge for our `Redirect`. May be used by Relay 1.""" + redirectEdge( + """The method to use when ordering `Redirect`.""" + orderBy: [RedirectOrderBy!]! = [PRIMARY_KEY_ASC] + ): RedirectEdge +} + """All input for the `deleteRlsSetting` mutation.""" input DeleteRlsSettingInput { """ @@ -9992,6 +10118,64 @@ type DeleteSitePayload { ): SiteEdge } +"""All input for the `deleteSitePreview` mutation.""" +input DeleteSitePreviewInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + targetName: String + targetSiteId: UUID +} + +"""The output of our `deleteSitePreview` mutation.""" +type DeleteSitePreviewPayload { + """ + The 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 `deleteSiteRelease` mutation.""" +input DeleteSiteReleaseInput { + """ + An arbitrary 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 `SiteRelease` mutation.""" +type DeleteSiteReleasePayload { + """ + The 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 `SiteRelease` that was deleted by this mutation.""" + siteRelease: SiteRelease + + """An edge for our `SiteRelease`. May be used by Relay 1.""" + siteReleaseEdge( + """The method to use when ordering `SiteRelease`.""" + orderBy: [SiteReleaseOrderBy!]! = [PRIMARY_KEY_ASC] + ): SiteReleaseEdge +} + """All input for the `deleteSiteTheme` mutation.""" input DeleteSiteThemeInput { """ @@ -10527,6 +10711,7 @@ type Derive { database: Database databaseId: UUID! id: UUID! + includeGrants: Boolean! includeMutations: Boolean! kind: String! policyPrefix: String! @@ -10586,6 +10771,9 @@ input DeriveFilter { """Filter by the object’s `id` field.""" id: UUIDFilter + """Filter by the object’s `includeGrants` field.""" + includeGrants: BooleanFilter + """Filter by the object’s `includeMutations` field.""" includeMutations: BooleanFilter @@ -10622,6 +10810,7 @@ input DeriveInput { createdAt: Datetime databaseId: UUID id: UUID + includeGrants: Boolean includeMutations: Boolean kind: String! policyPrefix: String @@ -10638,6 +10827,8 @@ enum DeriveOrderBy { DATABASE_ID_DESC ID_ASC ID_DESC + INCLUDE_GRANTS_ASC + INCLUDE_GRANTS_DESC INCLUDE_MUTATIONS_ASC INCLUDE_MUTATIONS_DESC KIND_ASC @@ -10662,6 +10853,7 @@ input DerivePatch { createdAt: Datetime databaseId: UUID id: UUID + includeGrants: Boolean includeMutations: Boolean kind: String policyPrefix: String @@ -10677,6 +10869,7 @@ type Domain { """Module-specific configuration for this hostname""" config: JSON createdAt: Datetime + createdByPrincipal: UUID """Database that owns this resource (database-scoped isolation)""" databaseId: UUID! @@ -10741,35 +10934,6 @@ type Domain { """Lowercase fully-qualified hostname; wildcards use the *.parent form""" hostname: String! - - """Reads and enables pagination through a set of `HttpRoute`.""" - httpRoutes( - """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 `HttpRoute`.""" - orderBy: [HttpRouteOrderBy!] = [PRIMARY_KEY_ASC] - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: HttpRouteFilter - ): HttpRouteConnection! id: UUID! """Whether other scopes may see and bind under this hostname""" @@ -10826,6 +10990,7 @@ type Domain { """Certificate lifecycle state for this hostname""" tlsStatus: String! updatedAt: Datetime + updatedByPrincipal: UUID """Ownership verification state of this hostname""" verificationStatus: String! @@ -10862,7 +11027,9 @@ type DomainEdge { """Audit trail of domain lifecycle events""" type DomainEvent { - """User who triggered this event, if any""" + """ + User who triggered this event; NULL only when no human actor was proven + """ actorId: UUID createdAt: Datetime @@ -10994,7 +11161,9 @@ input DomainEventFilter { """An input for mutations affecting `DomainEvent`""" input DomainEventInput { - """User who triggered this event, if any""" + """ + User who triggered this event; NULL only when no human actor was proven + """ actorId: UUID createdAt: Datetime @@ -11055,7 +11224,9 @@ enum DomainEventOrderBy { Represents an update to a `DomainEvent`. Fields that are set will be updated. """ input DomainEventPatch { - """User who triggered this event, if any""" + """ + User who triggered this event; NULL only when no human actor was proven + """ actorId: UUID createdAt: Datetime @@ -11096,6 +11267,9 @@ input DomainFilter { """Filter by the object’s `createdAt` field.""" createdAt: DatetimeFilter + """Filter by the object’s `createdByPrincipal` field.""" + createdByPrincipal: UUIDFilter + """Filter by the object’s `databaseId` field.""" databaseId: UUIDFilter @@ -11114,12 +11288,6 @@ input DomainFilter { """Filter by the object’s `hostname` field.""" hostname: StringFilter - """Filter by the object’s `httpRoutes` relation.""" - httpRoutes: DomainToManyHttpRouteFilter - - """`httpRoutes` exist.""" - httpRoutesExist: Boolean - """Filter by the object’s `id` field.""" id: UUIDFilter @@ -11159,6 +11327,9 @@ input DomainFilter { """Filter by the object’s `updatedAt` field.""" updatedAt: DatetimeFilter + """Filter by the object’s `updatedByPrincipal` field.""" + updatedByPrincipal: UUIDFilter + """Filter by the object’s `verificationStatus` field.""" verificationStatus: StringFilter @@ -11171,6 +11342,7 @@ input DomainInput { """Module-specific configuration for this hostname""" config: JSON createdAt: Datetime + createdByPrincipal: UUID """Database that owns this resource (database-scoped isolation)""" databaseId: UUID! @@ -11204,6 +11376,7 @@ input DomainInput { """Certificate lifecycle state for this hostname""" tlsStatus: String updatedAt: Datetime + updatedByPrincipal: UUID """Ownership verification state of this hostname""" verificationStatus: String @@ -11218,6 +11391,8 @@ enum DomainOrderBy { CONFIG_DESC CREATED_AT_ASC CREATED_AT_DESC + CREATED_BY_PRINCIPAL_ASC + CREATED_BY_PRINCIPAL_DESC DATABASE_ID_ASC DATABASE_ID_DESC HOSTNAME_ASC @@ -11243,6 +11418,8 @@ enum DomainOrderBy { TLS_STATUS_DESC UPDATED_AT_ASC UPDATED_AT_DESC + UPDATED_BY_PRINCIPAL_ASC + UPDATED_BY_PRINCIPAL_DESC VERIFICATION_STATUS_ASC VERIFICATION_STATUS_DESC VERIFIED_AT_ASC @@ -11256,6 +11433,7 @@ input DomainPatch { """Module-specific configuration for this hostname""" config: JSON createdAt: Datetime + createdByPrincipal: UUID """Database that owns this resource (database-scoped isolation)""" databaseId: UUID @@ -11289,6 +11467,7 @@ input DomainPatch { """Certificate lifecycle state for this hostname""" tlsStatus: String updatedAt: Datetime + updatedByPrincipal: UUID """Ownership verification state of this hostname""" verificationStatus: String @@ -11325,20 +11504,6 @@ input DomainToManyDomainVerificationFilter { some: DomainVerificationFilter } -""" -A filter to be used against many `HttpRoute` object types. All fields are combined with a logical ‘and.’ -""" -input DomainToManyHttpRouteFilter { - """Filters to entities where every related entity matches.""" - every: HttpRouteFilter - - """Filters to entities where no related entity matches.""" - none: HttpRouteFilter - - """Filters to entities where at least one related entity matches.""" - some: HttpRouteFilter -} - """ A filter to be used against many `Route` object types. All fields are combined with a logical ‘and.’ """ @@ -14581,15 +14746,58 @@ input FullTextSearchPatch { } type Function { + apiExposed: Boolean! + arguments: JSON! + bodyAst: JSON + category: ObjectCategory! + data: JSON + """Reads a single `Database` that is related to this `Function`.""" database: Database databaseId: UUID! + functionType: String id: UUID! + isStrict: Boolean! + kind: String! name: String! + returns: JSON """Reads a single `Schema` that is related to this `Function`.""" schema: Schema schemaId: UUID! + securityInvoker: Boolean! + smartTags: JSON + tags: [String]! + + """Reads and enables pagination through a set of `Trigger`.""" + triggers( + """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 `Trigger`.""" + orderBy: [TriggerOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: TriggerFilter + ): TriggerConnection! + volatility: String } """A connection to a list of `Function` values.""" @@ -14625,15 +14833,39 @@ input FunctionFilter { """Checks for all expressions in this list.""" and: [FunctionFilter!] + """Filter by the object’s `apiExposed` field.""" + apiExposed: BooleanFilter + + """Filter by the object’s `arguments` field.""" + arguments: JSONFilter + + """Filter by the object’s `bodyAst` field.""" + bodyAst: JSONFilter + + """Filter by the object’s `category` field.""" + category: ObjectCategoryFilter + + """Filter by the object’s `data` field.""" + data: JSONFilter + """Filter by the object’s `database` relation.""" database: DatabaseFilter """Filter by the object’s `databaseId` field.""" databaseId: UUIDFilter + """Filter by the object’s `functionType` field.""" + functionType: StringFilter + """Filter by the object’s `id` field.""" id: UUIDFilter + """Filter by the object’s `isStrict` field.""" + isStrict: BooleanFilter + + """Filter by the object’s `kind` field.""" + kind: StringFilter + """Filter by the object’s `name` field.""" name: StringFilter @@ -14643,44 +14875,164 @@ input FunctionFilter { """Checks for any expressions in this list.""" or: [FunctionFilter!] + """Filter by the object’s `returns` field.""" + returns: JSONFilter + """Filter by the object’s `schema` relation.""" schema: SchemaFilter """Filter by the object’s `schemaId` field.""" schemaId: UUIDFilter + + """Filter by the object’s `securityInvoker` field.""" + securityInvoker: BooleanFilter + + """Filter by the object’s `smartTags` field.""" + smartTags: JSONFilter + + """Filter by the object’s `tags` field.""" + tags: StringListFilter + + """Filter by the object’s `triggers` relation.""" + triggers: FunctionToManyTriggerFilter + + """`triggers` exist.""" + triggersExist: Boolean + + """Filter by the object’s `volatility` field.""" + volatility: StringFilter } """An input for mutations affecting `Function`""" input FunctionInput { + apiExposed: Boolean + arguments: JSON + bodyAst: JSON + category: ObjectCategory + data: JSON databaseId: UUID! + functionType: String id: UUID + isStrict: Boolean + kind: String name: String! + returns: JSON schemaId: UUID! + securityInvoker: Boolean + smartTags: JSON + tags: [String] + volatility: String } """Methods to use when ordering `Function`.""" enum FunctionOrderBy { + API_EXPOSED_ASC + API_EXPOSED_DESC + ARGUMENTS_ASC + ARGUMENTS_DESC + BODY_AST_ASC + BODY_AST_DESC + CATEGORY_ASC + CATEGORY_DESC DATABASE_ID_ASC DATABASE_ID_DESC + DATA_ASC + DATA_DESC + FUNCTION_TYPE_ASC + FUNCTION_TYPE_DESC ID_ASC ID_DESC + IS_STRICT_ASC + IS_STRICT_DESC + KIND_ASC + KIND_DESC NAME_ASC NAME_DESC NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC + RETURNS_ASC + RETURNS_DESC SCHEMA_ID_ASC SCHEMA_ID_DESC + SECURITY_INVOKER_ASC + SECURITY_INVOKER_DESC + SMART_TAGS_ASC + SMART_TAGS_DESC + TAGS_ASC + TAGS_DESC + VOLATILITY_ASC + VOLATILITY_DESC } """ Represents an update to a `Function`. Fields that are set will be updated. """ input FunctionPatch { + apiExposed: Boolean + arguments: JSON + bodyAst: JSON + category: ObjectCategory + data: JSON databaseId: UUID + functionType: String id: UUID + isStrict: Boolean + kind: String name: String + returns: JSON schemaId: UUID + securityInvoker: Boolean + smartTags: JSON + tags: [String] + volatility: String +} + +""" +A filter to be used against many `Trigger` object types. All fields are combined with a logical ‘and.’ +""" +input FunctionToManyTriggerFilter { + """Filters to entities where every related entity matches.""" + every: TriggerFilter + + """Filters to entities where no related entity matches.""" + none: TriggerFilter + + """Filters to entities where at least one related entity matches.""" + some: TriggerFilter +} + +"""A connection to a list of `GetSitePreviewsRecord` values.""" +type GetSitePreviewsConnection { + """ + A list of edges which contains the `GetSitePreviewsRecord` and cursor to aid in pagination. + """ + edges: [GetSitePreviewsEdge]! + + """A list of `GetSitePreviewsRecord` objects.""" + nodes: [GetSitePreviewsRecord]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `GetSitePreviewsRecord` you could get from the connection. + """ + totalCount: Int! +} + +"""A `GetSitePreviewsRecord` edge in the connection.""" +type GetSitePreviewsEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `GetSitePreviewsRecord` at the end of the edge.""" + node: GetSitePreviewsRecord +} + +type GetSitePreviewsRecord { + commitId: UUID + name: String } """ @@ -14879,231 +15231,130 @@ input HostnameBindingPatch { verificationStatus: String } -""" -Request-time HTTP routing authority: registered domain plus path prefix and optional method to a typed target -""" -type HttpRoute { - createdAt: Datetime - createdBy: UUID - - """Database that owns this resource (database-scoped isolation)""" - databaseId: UUID! - - """Reads a single `Domain` that is related to this `HttpRoute`.""" - domain: Domain - - """Registered host in the scoped routing domains table""" - domainId: 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 IdentityProviderRegistry { + authorizationUrl: String + displayName: String! + issuerUrl: String + kind: String! + scopes: [String]! + slug: String! + tokenUrl: String + userinfoUrl: String } -"""A connection to a list of `HttpRoute` values.""" -type HttpRouteConnection { +"""A connection to a list of `IdentityProviderRegistry` values.""" +type IdentityProviderRegistryConnection { """ - A list of edges which contains the `HttpRoute` and cursor to aid in pagination. + A list of edges which contains the `IdentityProviderRegistry` and cursor to aid in pagination. """ - edges: [HttpRouteEdge]! + edges: [IdentityProviderRegistryEdge]! - """A list of `HttpRoute` objects.""" - nodes: [HttpRoute]! + """A list of `IdentityProviderRegistry` objects.""" + nodes: [IdentityProviderRegistry]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `HttpRoute` you could get from the connection.""" + """ + The count of *all* `IdentityProviderRegistry` you could get from the connection. + """ totalCount: Int! } -"""A `HttpRoute` edge in the connection.""" -type HttpRouteEdge { +"""A `IdentityProviderRegistry` edge in the connection.""" +type IdentityProviderRegistryEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `HttpRoute` at the end of the edge.""" - node: HttpRoute + """The `IdentityProviderRegistry` at the end of the edge.""" + node: IdentityProviderRegistry } """ -A filter to be used against `HttpRoute` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `IdentityProviderRegistry` object types. All fields are combined with a logical ‘and.’ """ -input HttpRouteFilter { +input IdentityProviderRegistryFilter { """Checks for all expressions in this list.""" - and: [HttpRouteFilter!] - - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter - - """Filter by the object’s `createdBy` field.""" - createdBy: UUIDFilter - - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter + and: [IdentityProviderRegistryFilter!] - """Filter by the object’s `domain` relation.""" - domain: DomainFilter + """Filter by the object’s `authorizationUrl` field.""" + authorizationUrl: StringFilter - """Filter by the object’s `domainId` field.""" - domainId: UUIDFilter - - """Filter by the object’s `id` field.""" - id: UUIDFilter + """Filter by the object’s `displayName` field.""" + displayName: StringFilter - """Filter by the object’s `isActive` field.""" - isActive: BooleanFilter + """Filter by the object’s `issuerUrl` field.""" + issuerUrl: StringFilter - """Filter by the object’s `method` field.""" - method: StringFilter + """Filter by the object’s `kind` field.""" + kind: StringFilter """Negates the expression.""" - not: HttpRouteFilter + not: IdentityProviderRegistryFilter """Checks for any expressions in this list.""" - or: [HttpRouteFilter!] + or: [IdentityProviderRegistryFilter!] - """Filter by the object’s `path` field.""" - path: StringFilter - - """Filter by the object’s `priority` field.""" - priority: IntFilter + """Filter by the object’s `scopes` field.""" + scopes: StringListFilter - """Filter by the object’s `targetId` field.""" - targetId: UUIDFilter - - """Filter by the object’s `targetKind` field.""" - targetKind: StringFilter + """Filter by the object’s `slug` field.""" + slug: StringFilter - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter + """Filter by the object’s `tokenUrl` field.""" + tokenUrl: StringFilter - """Filter by the object’s `updatedBy` field.""" - updatedBy: UUIDFilter + """Filter by the object’s `userinfoUrl` field.""" + userinfoUrl: StringFilter } -"""An input for mutations affecting `HttpRoute`""" -input HttpRouteInput { - createdAt: Datetime - createdBy: UUID - - """Database that owns this resource (database-scoped isolation)""" - databaseId: UUID! - - """Registered host in the scoped routing domains table""" - domainId: 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 +"""An input for mutations affecting `IdentityProviderRegistry`""" +input IdentityProviderRegistryInput { + authorizationUrl: String + displayName: String! + issuerUrl: String + kind: String! + scopes: [String] + slug: String! + tokenUrl: String + userinfoUrl: String } -"""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 +"""Methods to use when ordering `IdentityProviderRegistry`.""" +enum IdentityProviderRegistryOrderBy { + AUTHORIZATION_URL_ASC + AUTHORIZATION_URL_DESC + DISPLAY_NAME_ASC + DISPLAY_NAME_DESC + ISSUER_URL_ASC + ISSUER_URL_DESC + KIND_ASC + KIND_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 + SCOPES_ASC + SCOPES_DESC + SLUG_ASC + SLUG_DESC + TOKEN_URL_ASC + TOKEN_URL_DESC + USERINFO_URL_ASC + USERINFO_URL_DESC } """ -Represents an update to a `HttpRoute`. Fields that are set will be updated. +Represents an update to a `IdentityProviderRegistry`. Fields that are set will be updated. """ -input HttpRoutePatch { - createdAt: Datetime - createdBy: UUID - - """Database that owns this resource (database-scoped isolation)""" - databaseId: UUID - - """Registered host in the scoped routing domains table""" - domainId: 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 +input IdentityProviderRegistryPatch { + authorizationUrl: String + displayName: String + issuerUrl: String + kind: String + scopes: [String] + slug: String + tokenUrl: String + userinfoUrl: String } type Index { @@ -15120,6 +15371,7 @@ type Index { indexParams: JSON isUnique: Boolean! name: String! + nullsNotDistinct: Boolean! opClasses: [String] options: JSON smartTags: JSON @@ -15201,6 +15453,9 @@ input IndexFilter { """Negates the expression.""" not: IndexFilter + """Filter by the object’s `nullsNotDistinct` field.""" + nullsNotDistinct: BooleanFilter + """Filter by the object’s `opClasses` field.""" opClasses: StringListFilter @@ -15241,6 +15496,7 @@ input IndexInput { indexParams: JSON isUnique: Boolean name: String + nullsNotDistinct: Boolean opClasses: [String] options: JSON smartTags: JSON @@ -15273,6 +15529,8 @@ enum IndexOrderBy { NAME_ASC NAME_DESC NATURAL + NULLS_NOT_DISTINCT_ASC + NULLS_NOT_DISTINCT_DESC OPTIONS_ASC OPTIONS_DESC OP_CLASSES_ASC @@ -15305,6 +15563,7 @@ input IndexPatch { indexParams: JSON isUnique: Boolean name: String + nullsNotDistinct: Boolean opClasses: [String] options: JSON smartTags: JSON @@ -15431,6 +15690,7 @@ type ManagedDomain { """Certificate issuance state for this managed hostname""" certStatus: String! createdAt: Datetime + createdByPrincipal: UUID """Database that owns this resource (database-scoped isolation)""" databaseId: UUID! @@ -15508,6 +15768,7 @@ type ManagedDomain { """TLS provisioning state for this managed hostname""" tlsStatus: String! updatedAt: Datetime + updatedByPrincipal: UUID """DNS ownership verification state of this managed hostname""" verificationStatus: String! @@ -15561,6 +15822,9 @@ input ManagedDomainFilter { """Filter by the object’s `createdAt` field.""" createdAt: DatetimeFilter + """Filter by the object’s `createdByPrincipal` field.""" + createdByPrincipal: UUIDFilter + """Filter by the object’s `databaseId` field.""" databaseId: UUIDFilter @@ -15600,6 +15864,9 @@ input ManagedDomainFilter { """Filter by the object’s `updatedAt` field.""" updatedAt: DatetimeFilter + """Filter by the object’s `updatedByPrincipal` field.""" + updatedByPrincipal: UUIDFilter + """Filter by the object’s `verificationStatus` field.""" verificationStatus: StringFilter @@ -15618,6 +15885,7 @@ input ManagedDomainInput { """Certificate issuance state for this managed hostname""" certStatus: String createdAt: Datetime + createdByPrincipal: UUID """Database that owns this resource (database-scoped isolation)""" databaseId: UUID! @@ -15637,6 +15905,7 @@ input ManagedDomainInput { """TLS provisioning state for this managed hostname""" tlsStatus: String updatedAt: Datetime + updatedByPrincipal: UUID """DNS ownership verification state of this managed hostname""" verificationStatus: String @@ -15655,6 +15924,8 @@ enum ManagedDomainOrderBy { CERT_STATUS_DESC CREATED_AT_ASC CREATED_AT_DESC + CREATED_BY_PRINCIPAL_ASC + CREATED_BY_PRINCIPAL_DESC DATABASE_ID_ASC DATABASE_ID_DESC DOMAIN_ASC @@ -15672,6 +15943,8 @@ enum ManagedDomainOrderBy { TLS_STATUS_DESC UPDATED_AT_ASC UPDATED_AT_DESC + UPDATED_BY_PRINCIPAL_ASC + UPDATED_BY_PRINCIPAL_DESC VERIFICATION_STATUS_ASC VERIFICATION_STATUS_DESC VERIFIED_AT_ASC @@ -15691,6 +15964,7 @@ input ManagedDomainPatch { """Certificate issuance state for this managed hostname""" certStatus: String createdAt: Datetime + createdByPrincipal: UUID """Database that owns this resource (database-scoped isolation)""" databaseId: UUID @@ -15710,6 +15984,7 @@ input ManagedDomainPatch { """TLS provisioning state for this managed hostname""" tlsStatus: String updatedAt: Datetime + updatedByPrincipal: UUID """DNS ownership verification state of this managed hostname""" verificationStatus: String @@ -15993,11 +16268,57 @@ type MetaSearchConfig { """Storage metadata for a table""" type MetaStorage { + """GraphQL type name of the plane's buckets table""" + bucketsType: String! + + """ + Computed download-URL field on the files type; null on the buckets side + """ + downloadUrlField: String + + """GraphQL type name of the plane's files table""" + filesType: String! + """Whether this table is a storage buckets table""" isBucketsTable: Boolean! """Whether this table is a storage files table""" isFilesTable: Boolean! + + """The plane's GraphQL upload surface""" + upload: MetaStorageUpload! +} + +""" +The GraphQL upload surface of a storage plane, derived from the registry facts the presigned-url plugin emits from +""" +type MetaStorageUpload { + """Per-file input type inside the bulk input""" + bulkFileInputType: String! + + """Per-file payload type inside the bulk payload""" + bulkFilePayloadType: String! + + """Input type of the bulk upload mutation""" + bulkInputType: String! + + """Root mutation field for bulk upload""" + bulkMutation: String! + + """Payload type of the bulk upload mutation""" + bulkPayloadType: String! + + """Input type of the single upload mutation""" + inputType: String! + + """Root mutation field for single-file upload (e.g. uploadAppFile)""" + mutation: String! + + """Payload type of the single upload mutation""" + payloadType: String! + + """Whether the upload input requires ownerId (entity-keyed plane)""" + requiresOwnerId: Boolean! } """Information about a database table""" @@ -16053,34 +16374,61 @@ type MetaUniqueConstraint { name: String! } +"""All input for the `mintSitePreviewToken` mutation.""" +input MintSitePreviewTokenInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + siteId: UUID + target: String + targetKind: String + ttlSeconds: Int +} + +"""The output of our `mintSitePreviewToken` mutation.""" +type MintSitePreviewTokenPayload { + """ + The 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: [MintSitePreviewTokenRecord] +} + +type MintSitePreviewTokenRecord { + expiresAt: BigInt + token: String +} + """ The root mutation type which contains root level fields which mutate data. """ type Mutation { - applyRls( + acceptDatabaseTransfer( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: ApplyRlsInput! - ): ApplyRlsPayload - appsInstallApp( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: AppsInstallAppInput! - ): AppsInstallAppPayload - appsUninstallApp( + 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: AppsUninstallAppInput! - ): AppsUninstallAppPayload - appsUpgradeApp( + 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: AppsUpgradeAppInput! - ): AppsUpgradeAppPayload + input: CancelDatabaseTransferInput! + ): CancelDatabaseTransferPayload """Creates a single `Api`.""" createApi( @@ -16106,22 +16454,6 @@ type Mutation { input: CreateApiSettingInput! ): CreateApiSettingPayload - """Creates a single `App`.""" - createApp( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAppInput! - ): CreateAppPayload - - """Creates a single `AppComponent`.""" - createAppComponent( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAppComponentInput! - ): CreateAppComponentPayload - """Creates a single `CheckConstraint`.""" createCheckConstraint( """ @@ -16322,13 +16654,13 @@ type Mutation { input: CreateHostnameBindingInput! ): CreateHostnameBindingPayload - """Creates a single `HttpRoute`.""" - createHttpRoute( + """Creates a single `IdentityProviderRegistry`.""" + createIdentityProviderRegistry( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateHttpRouteInput! - ): CreateHttpRoutePayload + input: CreateIdentityProviderRegistryInput! + ): CreateIdentityProviderRegistryPayload """Creates a single `Index`.""" createIndex( @@ -16514,6 +16846,14 @@ type Mutation { input: CreatePlatformSiteModuleInput! ): CreatePlatformSiteModulePayload + """Creates a single `PlatformSiteRelease`.""" + createPlatformSiteRelease( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreatePlatformSiteReleaseInput! + ): CreatePlatformSiteReleasePayload + """Creates a single `PlatformSiteTheme`.""" createPlatformSiteTheme( """ @@ -16554,6 +16894,14 @@ type Mutation { input: CreatePubkeySettingInput! ): CreatePubkeySettingPayload + """Creates a single `Redirect`.""" + createRedirect( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateRedirectInput! + ): CreateRedirectPayload + """Creates a single `RlsSetting`.""" createRlsSetting( """ @@ -16642,6 +16990,14 @@ type Mutation { input: CreateSiteModuleInput! ): CreateSiteModulePayload + """Creates a single `SiteRelease`.""" + createSiteRelease( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateSiteReleaseInput! + ): CreateSiteReleasePayload + """Creates a single `SiteTheme`.""" createSiteTheme( """ @@ -16794,22 +17150,6 @@ type Mutation { input: DeleteApiSettingInput! ): DeleteApiSettingPayload - """Deletes a single `App` using a unique key.""" - deleteApp( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteAppInput! - ): DeleteAppPayload - - """Deletes a single `AppComponent` using a unique key.""" - deleteAppComponent( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteAppComponentInput! - ): DeleteAppComponentPayload - """Deletes a single `CheckConstraint` using a unique key.""" deleteCheckConstraint( """ @@ -17010,13 +17350,13 @@ type Mutation { input: DeleteHostnameBindingInput! ): DeleteHostnameBindingPayload - """Deletes a single `HttpRoute` using a unique key.""" - deleteHttpRoute( + """Deletes a single `IdentityProviderRegistry` using a unique key.""" + deleteIdentityProviderRegistry( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteHttpRouteInput! - ): DeleteHttpRoutePayload + input: DeleteIdentityProviderRegistryInput! + ): DeleteIdentityProviderRegistryPayload """Deletes a single `Index` using a unique key.""" deleteIndex( @@ -17202,6 +17542,14 @@ type Mutation { input: DeletePlatformSiteModuleInput! ): DeletePlatformSiteModulePayload + """Deletes a single `PlatformSiteRelease` using a unique key.""" + deletePlatformSiteRelease( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePlatformSiteReleaseInput! + ): DeletePlatformSiteReleasePayload + """Deletes a single `PlatformSiteTheme` using a unique key.""" deletePlatformSiteTheme( """ @@ -17242,6 +17590,14 @@ type Mutation { input: DeletePubkeySettingInput! ): DeletePubkeySettingPayload + """Deletes a single `Redirect` using a unique key.""" + deleteRedirect( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteRedirectInput! + ): DeleteRedirectPayload + """Deletes a single `RlsSetting` using a unique key.""" deleteRlsSetting( """ @@ -17329,6 +17685,20 @@ type Mutation { """ input: DeleteSiteModuleInput! ): DeleteSiteModulePayload + deleteSitePreview( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteSitePreviewInput! + ): DeleteSitePreviewPayload + + """Deletes a single `SiteRelease` using a unique key.""" + deleteSiteRelease( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteSiteReleaseInput! + ): DeleteSiteReleasePayload """Deletes a single `SiteTheme` using a unique key.""" deleteSiteTheme( @@ -17463,12 +17833,72 @@ type Mutation { """ input: DomainsAssignSubdomainInput! ): DomainsAssignSubdomainPayload + mintSitePreviewToken( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: MintSitePreviewTokenInput! + ): MintSitePreviewTokenPayload + pagesInstallPages( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: PagesInstallPagesInput! + ): PagesInstallPagesPayload + platformDeleteSitePreview( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: PlatformDeleteSitePreviewInput! + ): PlatformDeleteSitePreviewPayload platformDomainsAssignSubdomain( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ input: PlatformDomainsAssignSubdomainInput! ): PlatformDomainsAssignSubdomainPayload + platformMintSitePreviewToken( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: PlatformMintSitePreviewTokenInput! + ): PlatformMintSitePreviewTokenPayload + platformPagesInstallPages( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: PlatformPagesInstallPagesInput! + ): PlatformPagesInstallPagesPayload + platformProvisionSitePreview( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: PlatformProvisionSitePreviewInput! + ): PlatformProvisionSitePreviewPayload + platformSetSitePreview( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: PlatformSetSitePreviewInput! + ): PlatformSetSitePreviewPayload + platformSiteMetadataInstallRobots( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: PlatformSiteMetadataInstallRobotsInput! + ): PlatformSiteMetadataInstallRobotsPayload + platformSitesInstallContentPreset( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: PlatformSitesInstallContentPresetInput! + ): PlatformSitesInstallContentPresetPayload + platformSitesInstallMantra( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: PlatformSitesInstallMantraInput! + ): PlatformSitesInstallMantraPayload platformSitesProvisionStaticSite( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. @@ -17477,10 +17907,11 @@ type Mutation { ): 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. + Reconcile an S3 bucket for a logical bucket in the database. + Reads the bucket config via RLS, then enqueues the same + storage:provision_bucket job used by the INSERT trigger. This is + idempotent for an already-reconciled bucket; enqueue failures become + GraphQL errors. """ provisionBucket( """ @@ -17488,15 +17919,28 @@ type Mutation { """ input: ProvisionBucketInput! ): ProvisionBucketPayload + provisionSitePreview( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: ProvisionSitePreviewInput! + ): ProvisionSitePreviewPayload + 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. + Pass exactly one of preset_slug or modules. Pass organization_id to have the organization own the database from the start (the caller must be an owner of that organization); the requesting user is still the identity bootstrapped into the new database. Omit it for a personal database. 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); + SELECT * FROM metaschema_public.request_database('team_app', 'example.com', preset_slug := 'full', organization_id := '00000000-0000-0000-0000-000000000000'::uuid); """ requestDatabase( """ @@ -17510,6 +17954,30 @@ type Mutation { """ input: SetFieldOrderInput! ): SetFieldOrderPayload + setSitePreview( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: SetSitePreviewInput! + ): SetSitePreviewPayload + siteMetadataInstallRobots( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: SiteMetadataInstallRobotsInput! + ): SiteMetadataInstallRobotsPayload + sitesInstallContentPreset( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: SitesInstallContentPresetInput! + ): SitesInstallContentPresetPayload + sitesInstallMantra( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: SitesInstallMantraInput! + ): SitesInstallMantraPayload sitesProvisionStaticSite( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. @@ -17541,22 +18009,6 @@ type Mutation { input: UpdateApiSettingInput! ): UpdateApiSettingPayload - """Updates a single `App` using a unique key and a patch.""" - updateApp( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateAppInput! - ): UpdateAppPayload - - """Updates a single `AppComponent` using a unique key and a patch.""" - updateAppComponent( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateAppComponentInput! - ): UpdateAppComponentPayload - """Updates a single `CheckConstraint` using a unique key and a patch.""" updateCheckConstraint( """ @@ -17763,13 +18215,15 @@ type Mutation { input: UpdateHostnameBindingInput! ): UpdateHostnameBindingPayload - """Updates a single `HttpRoute` using a unique key and a patch.""" - updateHttpRoute( + """ + Updates a single `IdentityProviderRegistry` using a unique key and a patch. + """ + updateIdentityProviderRegistry( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateHttpRouteInput! - ): UpdateHttpRoutePayload + input: UpdateIdentityProviderRegistryInput! + ): UpdateIdentityProviderRegistryPayload """Updates a single `Index` using a unique key and a patch.""" updateIndex( @@ -17971,6 +18425,14 @@ type Mutation { input: UpdatePlatformSiteModuleInput! ): UpdatePlatformSiteModulePayload + """Updates a single `PlatformSiteRelease` using a unique key and a patch.""" + updatePlatformSiteRelease( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePlatformSiteReleaseInput! + ): UpdatePlatformSiteReleasePayload + """Updates a single `PlatformSiteTheme` using a unique key and a patch.""" updatePlatformSiteTheme( """ @@ -18015,6 +18477,14 @@ type Mutation { input: UpdatePubkeySettingInput! ): UpdatePubkeySettingPayload + """Updates a single `Redirect` using a unique key and a patch.""" + updateRedirect( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateRedirectInput! + ): UpdateRedirectPayload + """Updates a single `RlsSetting` using a unique key and a patch.""" updateRlsSetting( """ @@ -18103,6 +18573,14 @@ type Mutation { input: UpdateSiteModuleInput! ): UpdateSiteModulePayload + """Updates a single `SiteRelease` using a unique key and a patch.""" + updateSiteRelease( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateSiteReleaseInput! + ): UpdateSiteReleasePayload + """Updates a single `SiteTheme` using a unique key and a patch.""" updateSiteTheme( """ @@ -18426,6 +18904,11 @@ type Page { """Unique page identifier""" id: UUID! + """ + Provenance of a seeded page: the content preset (kind, slug, catalog commit_id) it was installed from, or NULL when authored directly + """ + seededFrom: JSON + """Reads a single `Site` that is related to this `Page`.""" site: Site @@ -18500,6 +18983,9 @@ input PageFilter { """Checks for any expressions in this list.""" or: [PageFilter!] + """Filter by the object’s `seededFrom` field.""" + seededFrom: JSONFilter + """Filter by the object’s `site` relation.""" site: SiteFilter @@ -18552,6 +19038,11 @@ input PageInput { """Unique page identifier""" id: UUID + """ + Provenance of a seeded page: the content preset (kind, slug, catalog commit_id) it was installed from, or NULL when authored directly + """ + seededFrom: JSON + """ Site surface this page belongs to; each site owns its own infra store and pages live at path [page, slug] within it """ @@ -18584,6 +19075,8 @@ enum PageOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC + SEEDED_FROM_ASC + SEEDED_FROM_DESC SITE_ID_ASC SITE_ID_DESC SLUG_ASC @@ -18615,6 +19108,11 @@ input PagePatch { """Unique page identifier""" id: UUID + """ + Provenance of a seeded page: the content preset (kind, slug, catalog commit_id) it was installed from, or NULL when authored directly + """ + seededFrom: JSON + """ Site surface this page belongs to; each site owns its own infra store and pages live at path [page, slug] within it """ @@ -18632,6 +19130,33 @@ input PagePatch { updatedAt: Datetime } +"""All input for the `pagesInstallPages` mutation.""" +input PagesInstallPagesInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + entityId: UUID + pagesPreset: String + siteId: UUID +} + +"""The output of our `pagesInstallPages` mutation.""" +type PagesInstallPagesPayload { + """ + The 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: JSON +} + type Partition { createdAt: Datetime @@ -19203,6 +19728,11 @@ type PlatformApiSetting { """ enableI18N: Boolean + """ + Override: enable GraphQL schema introspection queries (NULL = inherit from database_settings) + """ + enableIntrospection: Boolean + """ Override: enable LLM/AI integration features (NULL = inherit from database_settings) """ @@ -19239,11 +19769,61 @@ type PlatformApiSetting { enableSearch: Boolean id: UUID! + """ + Override: idle-in-transaction timeout in milliseconds (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. + """ + idleInTransactionTimeoutMs: BigInt + + """ + Override: lock acquisition timeout in milliseconds (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. + """ + lockTimeoutMs: BigInt + + """ + Override: maximum concurrently executing GraphQL requests (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. + """ + maxConcurrentRequests: Int + + """ + Override: maximum page size for connection queries (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. + """ + maxPageSize: Int + + """ + Override: maximum GraphQL query cost (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. + """ + maxQueryCost: Int + + """ + Override: maximum GraphQL query depth (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. + """ + maxQueryDepth: Int + + """ + Override: maximum time in milliseconds a request may wait for a concurrency slot (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. + """ + maxQueueWaitMs: Int + + """ + Override: maximum request body size in bytes (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. + """ + maxRequestBytes: Int + """ Extensible JSON for additional per-API settings that do not have dedicated columns """ options: JSON! + """ + Override: rate-limit burst allowance (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. + """ + rateLimitBurst: Int + + """ + Override: request rate limit in requests per minute (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. + """ + rateLimitRpm: Int + """ Override: GraphQL statement timeout in milliseconds (NULL = inherit from database_settings). Clamped by the plan cap at read time. """ @@ -19310,6 +19890,9 @@ input PlatformApiSettingFilter { """Filter by the object’s `enableI18N` field.""" enableI18N: BooleanFilter + """Filter by the object’s `enableIntrospection` field.""" + enableIntrospection: BooleanFilter + """Filter by the object’s `enableLlm` field.""" enableLlm: BooleanFilter @@ -19334,6 +19917,30 @@ input PlatformApiSettingFilter { """Filter by the object’s `id` field.""" id: UUIDFilter + """Filter by the object’s `idleInTransactionTimeoutMs` field.""" + idleInTransactionTimeoutMs: BigIntFilter + + """Filter by the object’s `lockTimeoutMs` field.""" + lockTimeoutMs: BigIntFilter + + """Filter by the object’s `maxConcurrentRequests` field.""" + maxConcurrentRequests: IntFilter + + """Filter by the object’s `maxPageSize` field.""" + maxPageSize: IntFilter + + """Filter by the object’s `maxQueryCost` field.""" + maxQueryCost: IntFilter + + """Filter by the object’s `maxQueryDepth` field.""" + maxQueryDepth: IntFilter + + """Filter by the object’s `maxQueueWaitMs` field.""" + maxQueueWaitMs: IntFilter + + """Filter by the object’s `maxRequestBytes` field.""" + maxRequestBytes: IntFilter + """Negates the expression.""" not: PlatformApiSettingFilter @@ -19343,6 +19950,12 @@ input PlatformApiSettingFilter { """Checks for any expressions in this list.""" or: [PlatformApiSettingFilter!] + """Filter by the object’s `rateLimitBurst` field.""" + rateLimitBurst: IntFilter + + """Filter by the object’s `rateLimitRpm` field.""" + rateLimitRpm: IntFilter + """Filter by the object’s `statementTimeoutMs` field.""" statementTimeoutMs: BigIntFilter @@ -19381,6 +19994,11 @@ input PlatformApiSettingInput { """ enableI18N: Boolean + """ + Override: enable GraphQL schema introspection queries (NULL = inherit from database_settings) + """ + enableIntrospection: Boolean + """ Override: enable LLM/AI integration features (NULL = inherit from database_settings) """ @@ -19417,11 +20035,61 @@ input PlatformApiSettingInput { enableSearch: Boolean id: UUID + """ + Override: idle-in-transaction timeout in milliseconds (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. + """ + idleInTransactionTimeoutMs: BigInt + + """ + Override: lock acquisition timeout in milliseconds (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. + """ + lockTimeoutMs: BigInt + + """ + Override: maximum concurrently executing GraphQL requests (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. + """ + maxConcurrentRequests: Int + + """ + Override: maximum page size for connection queries (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. + """ + maxPageSize: Int + + """ + Override: maximum GraphQL query cost (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. + """ + maxQueryCost: Int + + """ + Override: maximum GraphQL query depth (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. + """ + maxQueryDepth: Int + + """ + Override: maximum time in milliseconds a request may wait for a concurrency slot (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. + """ + maxQueueWaitMs: Int + + """ + Override: maximum request body size in bytes (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. + """ + maxRequestBytes: Int + """ Extensible JSON for additional per-API settings that do not have dedicated columns """ options: JSON + """ + Override: rate-limit burst allowance (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. + """ + rateLimitBurst: Int + + """ + Override: request rate limit in requests per minute (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. + """ + rateLimitRpm: Int + """ Override: GraphQL statement timeout in milliseconds (NULL = inherit from database_settings). Clamped by the plan cap at read time. """ @@ -19445,6 +20113,8 @@ enum PlatformApiSettingOrderBy { ENABLE_DIRECT_UPLOADS_DESC ENABLE_I18N_ASC ENABLE_I18N_DESC + ENABLE_INTROSPECTION_ASC + ENABLE_INTROSPECTION_DESC ENABLE_LLM_ASC ENABLE_LLM_DESC ENABLE_LTREE_ASC @@ -19459,13 +20129,33 @@ enum PlatformApiSettingOrderBy { ENABLE_REALTIME_DESC ENABLE_SEARCH_ASC ENABLE_SEARCH_DESC + IDLE_IN_TRANSACTION_TIMEOUT_MS_ASC + IDLE_IN_TRANSACTION_TIMEOUT_MS_DESC ID_ASC ID_DESC + LOCK_TIMEOUT_MS_ASC + LOCK_TIMEOUT_MS_DESC + MAX_CONCURRENT_REQUESTS_ASC + MAX_CONCURRENT_REQUESTS_DESC + MAX_PAGE_SIZE_ASC + MAX_PAGE_SIZE_DESC + MAX_QUERY_COST_ASC + MAX_QUERY_COST_DESC + MAX_QUERY_DEPTH_ASC + MAX_QUERY_DEPTH_DESC + MAX_QUEUE_WAIT_MS_ASC + MAX_QUEUE_WAIT_MS_DESC + MAX_REQUEST_BYTES_ASC + MAX_REQUEST_BYTES_DESC NATURAL OPTIONS_ASC OPTIONS_DESC PRIMARY_KEY_ASC PRIMARY_KEY_DESC + RATE_LIMIT_BURST_ASC + RATE_LIMIT_BURST_DESC + RATE_LIMIT_RPM_ASC + RATE_LIMIT_RPM_DESC STATEMENT_TIMEOUT_MS_ASC STATEMENT_TIMEOUT_MS_DESC UPDATED_AT_ASC @@ -19505,6 +20195,11 @@ input PlatformApiSettingPatch { """ enableI18N: Boolean + """ + Override: enable GraphQL schema introspection queries (NULL = inherit from database_settings) + """ + enableIntrospection: Boolean + """ Override: enable LLM/AI integration features (NULL = inherit from database_settings) """ @@ -19541,11 +20236,61 @@ input PlatformApiSettingPatch { enableSearch: Boolean id: UUID + """ + Override: idle-in-transaction timeout in milliseconds (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. + """ + idleInTransactionTimeoutMs: BigInt + + """ + Override: lock acquisition timeout in milliseconds (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. + """ + lockTimeoutMs: BigInt + + """ + Override: maximum concurrently executing GraphQL requests (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. + """ + maxConcurrentRequests: Int + + """ + Override: maximum page size for connection queries (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. + """ + maxPageSize: Int + + """ + Override: maximum GraphQL query cost (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. + """ + maxQueryCost: Int + + """ + Override: maximum GraphQL query depth (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. + """ + maxQueryDepth: Int + + """ + Override: maximum time in milliseconds a request may wait for a concurrency slot (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. + """ + maxQueueWaitMs: Int + + """ + Override: maximum request body size in bytes (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. + """ + maxRequestBytes: Int + """ Extensible JSON for additional per-API settings that do not have dedicated columns """ options: JSON + """ + Override: rate-limit burst allowance (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. + """ + rateLimitBurst: Int + + """ + Override: request rate limit in requests per minute (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. + """ + rateLimitRpm: Int + """ Override: GraphQL statement timeout in milliseconds (NULL = inherit from database_settings). Clamped by the plan cap at read time. """ @@ -19698,6 +20443,31 @@ input PlatformCorsSettingPatch { updatedAt: Datetime } +"""All input for the `platformDeleteSitePreview` mutation.""" +input PlatformDeleteSitePreviewInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + targetName: String + targetSiteId: UUID +} + +"""The output of our `platformDeleteSitePreview` mutation.""" +type PlatformDeleteSitePreviewPayload { + """ + The 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 +} + """ Fully-qualified hostnames owned by this scope; each row claims its hostname globally through the catalog """ @@ -19705,6 +20475,7 @@ type PlatformDomain { """Module-specific configuration for this hostname""" config: JSON createdAt: Datetime + createdByPrincipal: UUID """Lowercase fully-qualified hostname; wildcards use the *.parent form""" hostname: String! @@ -19795,6 +20566,7 @@ type PlatformDomain { """Certificate lifecycle state for this hostname""" tlsStatus: String! updatedAt: Datetime + updatedByPrincipal: UUID """Ownership verification state of this hostname""" verificationStatus: String! @@ -19831,7 +20603,9 @@ type PlatformDomainEdge { """Audit trail of domain lifecycle events""" type PlatformDomainEvent { - """User who triggered this event, if any""" + """ + User who triggered this event; NULL only when no human actor was proven + """ actorId: UUID createdAt: Datetime @@ -19963,7 +20737,9 @@ input PlatformDomainEventFilter { """An input for mutations affecting `PlatformDomainEvent`""" input PlatformDomainEventInput { - """User who triggered this event, if any""" + """ + User who triggered this event; NULL only when no human actor was proven + """ actorId: UUID createdAt: Datetime @@ -20019,7 +20795,9 @@ enum PlatformDomainEventOrderBy { Represents an update to a `PlatformDomainEvent`. Fields that are set will be updated. """ input PlatformDomainEventPatch { - """User who triggered this event, if any""" + """ + User who triggered this event; NULL only when no human actor was proven + """ actorId: UUID createdAt: Datetime @@ -20057,6 +20835,9 @@ input PlatformDomainFilter { """Filter by the object’s `createdAt` field.""" createdAt: DatetimeFilter + """Filter by the object’s `createdByPrincipal` field.""" + createdByPrincipal: UUIDFilter + """Filter by the object’s `hostname` field.""" hostname: StringFilter @@ -20107,6 +20888,9 @@ input PlatformDomainFilter { """Filter by the object’s `updatedAt` field.""" updatedAt: DatetimeFilter + """Filter by the object’s `updatedByPrincipal` field.""" + updatedByPrincipal: UUIDFilter + """Filter by the object’s `verificationStatus` field.""" verificationStatus: StringFilter @@ -20119,6 +20903,7 @@ input PlatformDomainInput { """Module-specific configuration for this hostname""" config: JSON createdAt: Datetime + createdByPrincipal: UUID """Lowercase fully-qualified hostname; wildcards use the *.parent form""" hostname: String! @@ -20149,6 +20934,7 @@ input PlatformDomainInput { """Certificate lifecycle state for this hostname""" tlsStatus: String updatedAt: Datetime + updatedByPrincipal: UUID """Ownership verification state of this hostname""" verificationStatus: String @@ -20163,6 +20949,8 @@ enum PlatformDomainOrderBy { CONFIG_DESC CREATED_AT_ASC CREATED_AT_DESC + CREATED_BY_PRINCIPAL_ASC + CREATED_BY_PRINCIPAL_DESC HOSTNAME_ASC HOSTNAME_DESC ID_ASC @@ -20186,6 +20974,8 @@ enum PlatformDomainOrderBy { TLS_STATUS_DESC UPDATED_AT_ASC UPDATED_AT_DESC + UPDATED_BY_PRINCIPAL_ASC + UPDATED_BY_PRINCIPAL_DESC VERIFICATION_STATUS_ASC VERIFICATION_STATUS_DESC VERIFIED_AT_ASC @@ -20199,6 +20989,7 @@ input PlatformDomainPatch { """Module-specific configuration for this hostname""" config: JSON createdAt: Datetime + createdByPrincipal: UUID """Lowercase fully-qualified hostname; wildcards use the *.parent form""" hostname: String @@ -20229,6 +21020,7 @@ input PlatformDomainPatch { """Certificate lifecycle state for this hostname""" tlsStatus: String updatedAt: Datetime + updatedByPrincipal: UUID """Ownership verification state of this hostname""" verificationStatus: String @@ -21356,6 +22148,39 @@ input PlatformEmailSiteIdentityPatch { updatedAt: Datetime } +"""A connection to a list of `PlatformGetSitePreviewsRecord` values.""" +type PlatformGetSitePreviewsConnection { + """ + A list of edges which contains the `PlatformGetSitePreviewsRecord` and cursor to aid in pagination. + """ + edges: [PlatformGetSitePreviewsEdge]! + + """A list of `PlatformGetSitePreviewsRecord` objects.""" + nodes: [PlatformGetSitePreviewsRecord]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `PlatformGetSitePreviewsRecord` you could get from the connection. + """ + totalCount: Int! +} + +"""A `PlatformGetSitePreviewsRecord` edge in the connection.""" +type PlatformGetSitePreviewsEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `PlatformGetSitePreviewsRecord` at the end of the edge.""" + node: PlatformGetSitePreviewsRecord +} + +type PlatformGetSitePreviewsRecord { + commitId: UUID + name: String +} + """ Platform-operated hostnames whose DNS and certificate lifecycle the platform drives """ @@ -21369,6 +22194,7 @@ type PlatformManagedDomain { """Certificate issuance state for this managed hostname""" certStatus: String! createdAt: Datetime + createdByPrincipal: UUID """ Lowercase fully-qualified managed hostname; wildcards use the *.parent form @@ -21445,6 +22271,7 @@ type PlatformManagedDomain { """TLS provisioning state for this managed hostname""" tlsStatus: String! updatedAt: Datetime + updatedByPrincipal: UUID """DNS ownership verification state of this managed hostname""" verificationStatus: String! @@ -21500,6 +22327,9 @@ input PlatformManagedDomainFilter { """Filter by the object’s `createdAt` field.""" createdAt: DatetimeFilter + """Filter by the object’s `createdByPrincipal` field.""" + createdByPrincipal: UUIDFilter + """Filter by the object’s `domain` field.""" domain: StringFilter @@ -21540,6 +22370,9 @@ input PlatformManagedDomainFilter { """Filter by the object’s `updatedAt` field.""" updatedAt: DatetimeFilter + """Filter by the object’s `updatedByPrincipal` field.""" + updatedByPrincipal: UUIDFilter + """Filter by the object’s `verificationStatus` field.""" verificationStatus: StringFilter @@ -21558,6 +22391,7 @@ input PlatformManagedDomainInput { """Certificate issuance state for this managed hostname""" certStatus: String createdAt: Datetime + createdByPrincipal: UUID """ Lowercase fully-qualified managed hostname; wildcards use the *.parent form @@ -21574,6 +22408,7 @@ input PlatformManagedDomainInput { """TLS provisioning state for this managed hostname""" tlsStatus: String updatedAt: Datetime + updatedByPrincipal: UUID """DNS ownership verification state of this managed hostname""" verificationStatus: String @@ -21592,6 +22427,8 @@ enum PlatformManagedDomainOrderBy { CERT_STATUS_DESC CREATED_AT_ASC CREATED_AT_DESC + CREATED_BY_PRINCIPAL_ASC + CREATED_BY_PRINCIPAL_DESC DOMAIN_ASC DOMAIN_DESC ID_ASC @@ -21607,6 +22444,8 @@ enum PlatformManagedDomainOrderBy { TLS_STATUS_DESC UPDATED_AT_ASC UPDATED_AT_DESC + UPDATED_BY_PRINCIPAL_ASC + UPDATED_BY_PRINCIPAL_DESC VERIFICATION_STATUS_ASC VERIFICATION_STATUS_DESC VERIFIED_AT_ASC @@ -21626,6 +22465,7 @@ input PlatformManagedDomainPatch { """Certificate issuance state for this managed hostname""" certStatus: String createdAt: Datetime + createdByPrincipal: UUID """ Lowercase fully-qualified managed hostname; wildcards use the *.parent form @@ -21642,6 +22482,7 @@ input PlatformManagedDomainPatch { """TLS provisioning state for this managed hostname""" tlsStatus: String updatedAt: Datetime + updatedByPrincipal: UUID """DNS ownership verification state of this managed hostname""" verificationStatus: String @@ -21678,6 +22519,39 @@ input PlatformManagedDomainToManyPlatformDomainVerificationFilter { some: PlatformDomainVerificationFilter } +"""All input for the `platformMintSitePreviewToken` mutation.""" +input PlatformMintSitePreviewTokenInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + siteId: UUID + target: String + targetKind: String + ttlSeconds: Int +} + +"""The output of our `platformMintSitePreviewToken` mutation.""" +type PlatformMintSitePreviewTokenPayload { + """ + The 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: [PlatformMintSitePreviewTokenRecord] +} + +type PlatformMintSitePreviewTokenRecord { + expiresAt: BigInt + token: String +} + """ Site-owned page content — merkle-versioned head over the infra store; never a routing surface """ @@ -21698,6 +22572,11 @@ type PlatformPage { """Unique page identifier""" id: UUID! + """ + Provenance of a seeded page: the content preset (kind, slug, catalog commit_id) it was installed from, or NULL when authored directly + """ + seededFrom: JSON + """Reads a single `PlatformSite` that is related to this `PlatformPage`.""" site: PlatformSite @@ -21769,6 +22648,9 @@ input PlatformPageFilter { """Checks for any expressions in this list.""" or: [PlatformPageFilter!] + """Filter by the object’s `seededFrom` field.""" + seededFrom: JSONFilter + """Filter by the object’s `site` relation.""" site: PlatformSiteFilter @@ -21803,6 +22685,11 @@ input PlatformPageInput { """Unique page identifier""" id: UUID + """ + Provenance of a seeded page: the content preset (kind, slug, catalog commit_id) it was installed from, or NULL when authored directly + """ + seededFrom: JSON + """ Site surface this page belongs to; each site owns its own infra store and pages live at path [page, slug] within it """ @@ -21833,6 +22720,8 @@ enum PlatformPageOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC + SEEDED_FROM_ASC + SEEDED_FROM_DESC SITE_ID_ASC SITE_ID_DESC SLUG_ASC @@ -21863,6 +22752,11 @@ input PlatformPagePatch { """Unique page identifier""" id: UUID + """ + Provenance of a seeded page: the content preset (kind, slug, catalog commit_id) it was installed from, or NULL when authored directly + """ + seededFrom: JSON + """ Site surface this page belongs to; each site owns its own infra store and pages live at path [page, slug] within it """ @@ -21880,8 +22774,69 @@ input PlatformPagePatch { updatedAt: Datetime } +"""All input for the `platformPagesInstallPages` mutation.""" +input PlatformPagesInstallPagesInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + entityId: UUID + pagesPreset: String + siteId: UUID +} + +"""The output of our `platformPagesInstallPages` mutation.""" +type PlatformPagesInstallPagesPayload { + """ + The 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: JSON +} + +"""All input for the `platformProvisionSitePreview` mutation.""" +input PlatformProvisionSitePreviewInput { + 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 + commitId: UUID + name: String + siteId: UUID +} + +"""The output of our `platformProvisionSitePreview` mutation.""" +type PlatformProvisionSitePreviewPayload { + """ + The 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: PlatformRoute +} + """Routes binding a domain hostname and path to a typed catalog target""" type PlatformRoute { + """ + Whether this route answers callers with no identity. Requires the target function to declare anonymous_callable; default false = an identity is required + """ + anonymous: Boolean! + """ Route metadata; target configuration is read live from the typed catalog, never copied here """ @@ -21903,34 +22858,70 @@ type PlatformRoute { """ path: String! + """ + The site preview this route serves; NULL serves the site's published release + """ + previewRef: String + """Higher priority wins between otherwise-equal matches""" priority: Int! """ - Api catalog row this route targets; must be owner-matched or visible cross-scope + Site whose surface this route serves; the serving lane renders as this site. NULL when the route serves no site """ + servingSiteId: UUID + + """Api surface this route targets; must be this scope's own api""" targetApiId: UUID """ - Bucket catalog row this route targets; must be a public bucket that is owner-matched or visible cross-scope + Bucket this route targets; must be a public bucket in this scope's own storage plane """ targetBucketId: UUID + """Function this route targets; must be this scope's own function""" + targetFunctionId: UUID + """ - Function catalog row this route targets; must be owner-matched or visible cross-scope + Redirect this route targets; the edge answers with a redirect status instead of proxying a backend """ - targetFunctionId: UUID + targetRedirectId: UUID """ - Resource catalog row (a Service resource) this route targets; must be owner-matched or visible cross-scope + Resource (a Service resource) this route targets; must be this scope's own resource """ targetServiceId: UUID + """Site surface this route targets; must be this scope's own site""" + targetSiteId: UUID + updatedAt: Datetime +} + +"""All input for the `platformSetSitePreview` mutation.""" +input PlatformSetSitePreviewInput { """ - Site catalog row this route targets; must be owner-matched or visible cross-scope + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ + clientMutationId: String + targetCommitId: UUID + targetName: String targetSiteId: UUID - updatedAt: Datetime +} + +"""The output of our `platformSetSitePreview` mutation.""" +type PlatformSetSitePreviewPayload { + """ + The 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 } """ @@ -21943,17 +22934,18 @@ type PlatformSite { activeCommitId: UUID """ - Catalog bucket that backs this site (static content store; exactly one of bucket_id/resource_id) + Bucket that backs this site (static content store; exactly one of bucket_id/resource_id) """ bucketId: UUID createdAt: Datetime + createdByPrincipal: UUID """Human-readable site description""" description: String id: UUID! """ - Catalog resource_installation (release) that backs this site; the servable member is named by installation_member_slug (exactly one of bucket_id/resource_id/installation_id) + Resource installation (release) that backs this site; the servable member is named by installation_member_slug (exactly one of bucket_id/resource_id/installation_id) """ installationId: UUID @@ -22123,6 +23115,11 @@ type PlatformSite { where: PlatformSiteModuleFilter ): PlatformSiteModuleConnection! + """ + Reads a single `PlatformSiteRelease` that is related to this `PlatformSite`. + """ + platformSiteReleaseBySiteId: PlatformSiteRelease + """Reads and enables pagination through a set of `PlatformSiteTheme`.""" platformSiteThemesBySiteId( """Read all values in the set after (below) this cursor.""" @@ -22158,21 +23155,24 @@ type PlatformSite { platformSiteWebConfigBySiteId: PlatformSiteWebConfig """ - Catalog resource/service that backs this site (SSR/app Service pinned to one concrete resource row; exactly one of bucket_id/resource_id/installation_id) + Resource/service that backs this site (SSR/app Service pinned to one concrete resource row; exactly one of bucket_id/resource_id/installation_id) """ resourceId: UUID """Human-readable site title""" title: String updatedAt: Datetime + updatedByPrincipal: UUID } """ -Native-app deep-link association metadata for a site surface (feeds AASA / assetlinks.json generation) +Per-host native-app association for a site surface: which app-owned store identity this host serves, and the path patterns it claims (joined with the store identity to render AASA / assetlinks.json) """ type PlatformSiteAppLink { - """App identifier: iOS bundle id or Android package name""" - appIdentifier: String! + """ + App-owned store identity this association serves (app_store_identities row in this scope's app plane; the association carries no store facts of its own) + """ + appStoreIdentityId: UUID! createdAt: Datetime id: UUID! @@ -22181,12 +23181,6 @@ type PlatformSiteAppLink { """ pathComponents: [String]! - """Target platform for this association (ios, android)""" - platform: String! - - """Android signing certificate SHA-256 fingerprints for assetlinks.json""" - sha256CertFingerprints: [String]! - """ Reads a single `PlatformSite` that is related to this `PlatformSiteAppLink`. """ @@ -22194,16 +23188,6 @@ type PlatformSiteAppLink { """Site surface this app-link association belongs to""" siteId: UUID! - - """ - App/Play store URL for this app (used by install banners and fallbacks) - """ - storeUrl: String - - """ - Apple Developer team id (iOS); combined with app_identifier to form the AASA appID - """ - teamId: String updatedAt: Datetime """ @@ -22247,8 +23231,8 @@ input PlatformSiteAppLinkFilter { """Checks for all expressions in this list.""" and: [PlatformSiteAppLinkFilter!] - """Filter by the object’s `appIdentifier` field.""" - appIdentifier: StringFilter + """Filter by the object’s `appStoreIdentityId` field.""" + appStoreIdentityId: UUIDFilter """Filter by the object’s `createdAt` field.""" createdAt: DatetimeFilter @@ -22265,24 +23249,12 @@ input PlatformSiteAppLinkFilter { """Filter by the object’s `pathComponents` field.""" pathComponents: StringListFilter - """Filter by the object’s `platform` field.""" - platform: StringFilter - - """Filter by the object’s `sha256CertFingerprints` field.""" - sha256CertFingerprints: StringListFilter - """Filter by the object’s `site` relation.""" site: PlatformSiteFilter """Filter by the object’s `siteId` field.""" siteId: UUIDFilter - """Filter by the object’s `storeUrl` field.""" - storeUrl: StringFilter - - """Filter by the object’s `teamId` field.""" - teamId: StringFilter - """Filter by the object’s `updatedAt` field.""" updatedAt: DatetimeFilter @@ -22292,8 +23264,10 @@ input PlatformSiteAppLinkFilter { """An input for mutations affecting `PlatformSiteAppLink`""" input PlatformSiteAppLinkInput { - """App identifier: iOS bundle id or Android package name""" - appIdentifier: String! + """ + App-owned store identity this association serves (app_store_identities row in this scope's app plane; the association carries no store facts of its own) + """ + appStoreIdentityId: UUID! createdAt: Datetime id: UUID @@ -22302,24 +23276,8 @@ input PlatformSiteAppLinkInput { """ pathComponents: [String] - """Target platform for this association (ios, android)""" - platform: String! - - """Android signing certificate SHA-256 fingerprints for assetlinks.json""" - sha256CertFingerprints: [String] - """Site surface this app-link association belongs to""" siteId: UUID! - - """ - App/Play store URL for this app (used by install banners and fallbacks) - """ - storeUrl: String - - """ - Apple Developer team id (iOS); combined with app_identifier to form the AASA appID - """ - teamId: String updatedAt: Datetime """ @@ -22330,8 +23288,8 @@ input PlatformSiteAppLinkInput { """Methods to use when ordering `PlatformSiteAppLink`.""" enum PlatformSiteAppLinkOrderBy { - APP_IDENTIFIER_ASC - APP_IDENTIFIER_DESC + APP_STORE_IDENTITY_ID_ASC + APP_STORE_IDENTITY_ID_DESC CREATED_AT_ASC CREATED_AT_DESC ID_ASC @@ -22339,18 +23297,10 @@ enum PlatformSiteAppLinkOrderBy { NATURAL PATH_COMPONENTS_ASC PATH_COMPONENTS_DESC - PLATFORM_ASC - PLATFORM_DESC PRIMARY_KEY_ASC PRIMARY_KEY_DESC - SHA256_CERT_FINGERPRINTS_ASC - SHA256_CERT_FINGERPRINTS_DESC SITE_ID_ASC SITE_ID_DESC - STORE_URL_ASC - STORE_URL_DESC - TEAM_ID_ASC - TEAM_ID_DESC UPDATED_AT_ASC UPDATED_AT_DESC WEBCREDENTIALS_ASC @@ -22361,8 +23311,10 @@ enum PlatformSiteAppLinkOrderBy { Represents an update to a `PlatformSiteAppLink`. Fields that are set will be updated. """ input PlatformSiteAppLinkPatch { - """App identifier: iOS bundle id or Android package name""" - appIdentifier: String + """ + App-owned store identity this association serves (app_store_identities row in this scope's app plane; the association carries no store facts of its own) + """ + appStoreIdentityId: UUID createdAt: Datetime id: UUID @@ -22371,24 +23323,8 @@ input PlatformSiteAppLinkPatch { """ pathComponents: [String] - """Target platform for this association (ios, android)""" - platform: String - - """Android signing certificate SHA-256 fingerprints for assetlinks.json""" - sha256CertFingerprints: [String] - """Site surface this app-link association belongs to""" siteId: UUID - - """ - App/Play store URL for this app (used by install banners and fallbacks) - """ - storeUrl: String - - """ - Apple Developer team id (iOS); combined with app_identifier to form the AASA appID - """ - teamId: String updatedAt: Datetime """ @@ -22431,6 +23367,11 @@ type PlatformSiteDeepLink { """Additional link metadata (campaign/UTM parameters, escape hatch)""" metadata: JSON + """ + Page this link's web_path resolves to (soft reference into the pages module; NULL for external or non-page targets) + """ + pageId: UUID + """ Reads a single `PlatformSite` that is related to this `PlatformSiteDeepLink`. """ @@ -22507,6 +23448,9 @@ input PlatformSiteDeepLinkFilter { """Checks for any expressions in this list.""" or: [PlatformSiteDeepLinkFilter!] + """Filter by the object’s `pageId` field.""" + pageId: UUIDFilter + """Filter by the object’s `site` relation.""" site: PlatformSiteFilter @@ -22538,6 +23482,11 @@ input PlatformSiteDeepLinkInput { """Additional link metadata (campaign/UTM parameters, escape hatch)""" metadata: JSON + """ + Page this link's web_path resolves to (soft reference into the pages module; NULL for external or non-page targets) + """ + pageId: UUID + """ Site surface this deep link belongs to (the hostname plane that serves it) """ @@ -22566,6 +23515,8 @@ enum PlatformSiteDeepLinkOrderBy { METADATA_ASC METADATA_DESC NATURAL + PAGE_ID_ASC + PAGE_ID_DESC PRIMARY_KEY_ASC PRIMARY_KEY_DESC SITE_ID_ASC @@ -22595,6 +23546,11 @@ input PlatformSiteDeepLinkPatch { """Additional link metadata (campaign/UTM parameters, escape hatch)""" metadata: JSON + """ + Page this link's web_path resolves to (soft reference into the pages module; NULL for external or non-page targets) + """ + pageId: UUID + """ Site surface this deep link belongs to (the hostname plane that serves it) """ @@ -22778,6 +23734,9 @@ input PlatformSiteFilter { """Filter by the object’s `createdAt` field.""" createdAt: DatetimeFilter + """Filter by the object’s `createdByPrincipal` field.""" + createdByPrincipal: UUIDFilter + """Filter by the object’s `description` field.""" description: StringFilter @@ -22844,6 +23803,12 @@ input PlatformSiteFilter { """`platformSiteModulesBySiteId` exist.""" platformSiteModulesBySiteIdExist: Boolean + """Filter by the object’s `platformSiteReleaseBySiteId` relation.""" + platformSiteReleaseBySiteId: PlatformSiteReleaseFilter + + """A related `platformSiteReleaseBySiteId` exists.""" + platformSiteReleaseBySiteIdExists: Boolean + """Filter by the object’s `platformSiteThemesBySiteId` relation.""" platformSiteThemesBySiteId: PlatformSiteToManyPlatformSiteThemeFilter @@ -22864,6 +23829,9 @@ input PlatformSiteFilter { """Filter by the object’s `updatedAt` field.""" updatedAt: DatetimeFilter + + """Filter by the object’s `updatedByPrincipal` field.""" + updatedByPrincipal: UUIDFilter } """An input for mutations affecting `PlatformSite`""" @@ -22874,17 +23842,18 @@ input PlatformSiteInput { activeCommitId: UUID """ - Catalog bucket that backs this site (static content store; exactly one of bucket_id/resource_id) + Bucket that backs this site (static content store; exactly one of bucket_id/resource_id) """ bucketId: UUID createdAt: Datetime + createdByPrincipal: UUID """Human-readable site description""" description: String id: UUID """ - Catalog resource_installation (release) that backs this site; the servable member is named by installation_member_slug (exactly one of bucket_id/resource_id/installation_id) + Resource installation (release) that backs this site; the servable member is named by installation_member_slug (exactly one of bucket_id/resource_id/installation_id) """ installationId: UUID @@ -22900,13 +23869,41 @@ input PlatformSiteInput { name: String! """ - Catalog resource/service that backs this site (SSR/app Service pinned to one concrete resource row; exactly one of bucket_id/resource_id/installation_id) + Resource/service that backs this site (SSR/app Service pinned to one concrete resource row; exactly one of bucket_id/resource_id/installation_id) """ resourceId: UUID """Human-readable site title""" title: String updatedAt: Datetime + updatedByPrincipal: UUID +} + +"""All input for the `platformSiteMetadataInstallRobots` mutation.""" +input PlatformSiteMetadataInstallRobotsInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + entityId: UUID + robotsPreset: String + siteId: UUID +} + +"""The output of our `platformSiteMetadataInstallRobots` mutation.""" +type PlatformSiteMetadataInstallRobotsPayload { + """ + The 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: JSON } """SEO and social sharing metadata for a site surface""" @@ -22939,6 +23936,11 @@ type PlatformSiteMetadatum { """robots meta directive (e.g. index,follow / noindex,nofollow)""" robots: String + """ + Provenance of the robots value: the content preset (kind, slug, catalog commit_id) an install applied, or NULL when it was authored directly + """ + robotsSeededFrom: JSON + """ Reads a single `PlatformSite` that is related to this `PlatformSiteMetadatum`. """ @@ -23028,6 +24030,9 @@ input PlatformSiteMetadatumFilter { """Filter by the object’s `robots` field.""" robots: StringFilter + """Filter by the object’s `robotsSeededFrom` field.""" + robotsSeededFrom: JSONFilter + """Filter by the object’s `site` relation.""" site: PlatformSiteFilter @@ -23074,6 +24079,11 @@ input PlatformSiteMetadatumInput { """robots meta directive (e.g. index,follow / noindex,nofollow)""" robots: String + """ + Provenance of the robots value: the content preset (kind, slug, catalog commit_id) an install applied, or NULL when it was authored directly + """ + robotsSeededFrom: JSON + """Site surface this metadata belongs to""" siteId: UUID! @@ -23112,6 +24122,8 @@ enum PlatformSiteMetadatumOrderBy { PRIMARY_KEY_DESC ROBOTS_ASC ROBOTS_DESC + ROBOTS_SEEDED_FROM_ASC + ROBOTS_SEEDED_FROM_DESC SITE_ID_ASC SITE_ID_DESC STORE_ID_ASC @@ -23166,6 +24178,11 @@ input PlatformSiteMetadatumPatch { """robots meta directive (e.g. index,follow / noindex,nofollow)""" robots: String + """ + Provenance of the robots value: the content preset (kind, slug, catalog commit_id) an install applied, or NULL when it was authored directly + """ + robotsSeededFrom: JSON + """Site surface this metadata belongs to""" siteId: UUID @@ -23351,6 +24368,8 @@ enum PlatformSiteOrderBy { BUCKET_ID_DESC CREATED_AT_ASC CREATED_AT_DESC + CREATED_BY_PRINCIPAL_ASC + CREATED_BY_PRINCIPAL_DESC DESCRIPTION_ASC DESCRIPTION_DESC ID_ASC @@ -23372,6 +24391,8 @@ enum PlatformSiteOrderBy { TITLE_DESC UPDATED_AT_ASC UPDATED_AT_DESC + UPDATED_BY_PRINCIPAL_ASC + UPDATED_BY_PRINCIPAL_DESC } """ @@ -23384,17 +24405,18 @@ input PlatformSitePatch { activeCommitId: UUID """ - Catalog bucket that backs this site (static content store; exactly one of bucket_id/resource_id) + Bucket that backs this site (static content store; exactly one of bucket_id/resource_id) """ bucketId: UUID createdAt: Datetime + createdByPrincipal: UUID """Human-readable site description""" description: String id: UUID """ - Catalog resource_installation (release) that backs this site; the servable member is named by installation_member_slug (exactly one of bucket_id/resource_id/installation_id) + Resource installation (release) that backs this site; the servable member is named by installation_member_slug (exactly one of bucket_id/resource_id/installation_id) """ installationId: UUID @@ -23410,13 +24432,182 @@ input PlatformSitePatch { name: String """ - Catalog resource/service that backs this site (SSR/app Service pinned to one concrete resource row; exactly one of bucket_id/resource_id/installation_id) + Resource/service that backs this site (SSR/app Service pinned to one concrete resource row; exactly one of bucket_id/resource_id/installation_id) """ resourceId: UUID """Human-readable site title""" title: String updatedAt: Datetime + updatedByPrincipal: UUID +} + +""" +Immutable static-site release manifest head, versioned in the site-owned merkle store +""" +type PlatformSiteRelease { + """ + Infra store commit for the current content (stamped by the versioned trigger on every write) + """ + commitId: UUID + createdAt: Datetime + id: UUID! + + """ + Release manifest: {"files":{"":{"hash":"<64-hex sha256>","content_type":"...","size":123}},"file_count":N,"total_bytes":N} + """ + manifest: JSON! + + """ + Reads a single `PlatformSite` that is related to this `PlatformSiteRelease`. + """ + site: PlatformSite + + """Site surface this release manifest belongs to""" + siteId: UUID! + + """ + Infra Merkle store holding this row's history (stamped by the versioned trigger) + """ + storeId: UUID + updatedAt: Datetime +} + +"""A connection to a list of `PlatformSiteRelease` values.""" +type PlatformSiteReleaseConnection { + """ + A list of edges which contains the `PlatformSiteRelease` and cursor to aid in pagination. + """ + edges: [PlatformSiteReleaseEdge]! + + """A list of `PlatformSiteRelease` objects.""" + nodes: [PlatformSiteRelease]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `PlatformSiteRelease` you could get from the connection. + """ + totalCount: Int! +} + +"""A `PlatformSiteRelease` edge in the connection.""" +type PlatformSiteReleaseEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `PlatformSiteRelease` at the end of the edge.""" + node: PlatformSiteRelease +} + +""" +A filter to be used against `PlatformSiteRelease` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformSiteReleaseFilter { + """Checks for all expressions in this list.""" + and: [PlatformSiteReleaseFilter!] + + """Filter by the object’s `commitId` field.""" + commitId: UUIDFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `manifest` field.""" + manifest: JSONFilter + + """Negates the expression.""" + not: PlatformSiteReleaseFilter + + """Checks for any expressions in this list.""" + or: [PlatformSiteReleaseFilter!] + + """Filter by the object’s `site` relation.""" + site: PlatformSiteFilter + + """Filter by the object’s `siteId` field.""" + siteId: UUIDFilter + + """Filter by the object’s `storeId` field.""" + storeId: UUIDFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter +} + +"""An input for mutations affecting `PlatformSiteRelease`""" +input PlatformSiteReleaseInput { + """ + Infra store commit for the current content (stamped by the versioned trigger on every write) + """ + commitId: UUID + createdAt: Datetime + id: UUID + + """ + Release manifest: {"files":{"":{"hash":"<64-hex sha256>","content_type":"...","size":123}},"file_count":N,"total_bytes":N} + """ + manifest: JSON! + + """Site surface this release manifest belongs to""" + siteId: UUID! + + """ + Infra Merkle store holding this row's history (stamped by the versioned trigger) + """ + storeId: UUID + updatedAt: Datetime +} + +"""Methods to use when ordering `PlatformSiteRelease`.""" +enum PlatformSiteReleaseOrderBy { + COMMIT_ID_ASC + COMMIT_ID_DESC + CREATED_AT_ASC + CREATED_AT_DESC + ID_ASC + ID_DESC + MANIFEST_ASC + MANIFEST_DESC + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + SITE_ID_ASC + SITE_ID_DESC + STORE_ID_ASC + STORE_ID_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC +} + +""" +Represents an update to a `PlatformSiteRelease`. Fields that are set will be updated. +""" +input PlatformSiteReleasePatch { + """ + Infra store commit for the current content (stamped by the versioned trigger on every write) + """ + commitId: UUID + createdAt: Datetime + id: UUID + + """ + Release manifest: {"files":{"":{"hash":"<64-hex sha256>","content_type":"...","size":123}},"file_count":N,"total_bytes":N} + """ + manifest: JSON + + """Site surface this release manifest belongs to""" + siteId: UUID + + """ + Infra Merkle store holding this row's history (stamped by the versioned trigger) + """ + storeId: UUID + updatedAt: Datetime } """Theme (colors, fonts, design tokens) for a site surface""" @@ -23873,6 +25064,67 @@ input PlatformSiteWebConfigPatch { updatedAt: Datetime } +"""All input for the `platformSitesInstallContentPreset` mutation.""" +input PlatformSitesInstallContentPresetInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + entityId: UUID + presetKind: String + presetSlug: String + siteId: UUID +} + +"""The output of our `platformSitesInstallContentPreset` mutation.""" +type PlatformSitesInstallContentPresetPayload { + """ + The 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: JSON +} + +"""All input for the `platformSitesInstallMantra` mutation.""" +input PlatformSitesInstallMantraInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + entityId: UUID + routePreset: String + siteId: UUID +} + +"""The output of our `platformSitesInstallMantra` mutation.""" +type PlatformSitesInstallMantraPayload { + """ + The 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 `PlatformSite`. May be used by Relay 1.""" + platformSiteEdge( + """The method to use when ordering `PlatformSite`.""" + orderBy: [PlatformSiteOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformSiteEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + result: PlatformSite +} + """All input for the `platformSitesProvisionStaticSite` mutation.""" input PlatformSitesProvisionStaticSiteInput { apex: String @@ -23906,6 +25158,11 @@ type PlatformSitesProvisionStaticSitePayload { type Policy { category: ObjectCategory! + + """ + Columns of this policy's table that its expression filters on. Stamped when the policy is derived onto a companion table, so a consumer needing those columns (e.g. a chunking worker copying them from the parent row) reads them here instead of re-walking the node type's parameter schema. + """ + columnRefs: [String] createdAt: Datetime data: JSON @@ -23977,6 +25234,9 @@ input PolicyFilter { """Filter by the object’s `category` field.""" category: ObjectCategoryFilter + """Filter by the object’s `columnRefs` field.""" + columnRefs: StringListFilter + """Filter by the object’s `createdAt` field.""" createdAt: DatetimeFilter @@ -24056,6 +25316,11 @@ input PolicyFilter { """An input for mutations affecting `Policy`""" input PolicyInput { category: ObjectCategory + + """ + Columns of this policy's table that its expression filters on. Stamped when the policy is derived onto a companion table, so a consumer needing those columns (e.g. a chunking worker copying them from the parent row) reads them here instead of re-walking the node type's parameter schema. + """ + columnRefs: [String] createdAt: Datetime data: JSON databaseId: UUID @@ -24083,6 +25348,8 @@ input PolicyInput { enum PolicyOrderBy { CATEGORY_ASC CATEGORY_DESC + COLUMN_REFS_ASC + COLUMN_REFS_DESC CREATED_AT_ASC CREATED_AT_DESC DATABASE_ID_ASC @@ -24127,6 +25394,11 @@ Represents an update to a `Policy`. Fields that are set will be updated. """ input PolicyPatch { category: ObjectCategory + + """ + Columns of this policy's table that its expression filters on. Stamped when the policy is derived onto a companion table, so a consumer needing those columns (e.g. a chunking worker copying them from the parent row) reads them here instead of re-walking the node type's parameter schema. + """ + columnRefs: [String] createdAt: Datetime data: JSON databaseId: UUID @@ -24350,23 +25622,52 @@ input ProvisionBucketInput { } type ProvisionBucketPayload { - """The access type applied""" - accessType: String! + """The logical bucket row that was queued for reconciliation.""" + bucketId: UUID! + bucketKey: String! - """The S3 bucket name that was provisioned""" - bucketName: String! + """The reconciler job enqueued to provision this bucket.""" + jobId: UUID! - """The S3 endpoint (null for AWS S3 default)""" - endpoint: String + """ + The physical bucket name already recorded, or null when reconciliation has not completed. + """ + physicalName: String +} - """Error message if provisioning failed""" - error: String +"""All input for the `provisionSitePreview` mutation.""" +input ProvisionSitePreviewInput { + apex: String - """The storage provider used""" - provider: 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 + commitId: UUID + name: String + siteId: UUID +} + +"""The output of our `provisionSitePreview` mutation.""" +type ProvisionSitePreviewPayload { + """ + The 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: Route - """Whether provisioning succeeded""" - success: Boolean! + """An edge for our `Route`. May be used by Relay 1.""" + routeEdge( + """The method to use when ordering `Route`.""" + orderBy: [RouteOrderBy!]! = [PRIMARY_KEY_ASC] + ): RouteEdge } """ @@ -24737,39 +26038,10 @@ type Query { """ where: ApiFilter ): ApiConnection - - """Reads and enables pagination through a set of `AppComponent`.""" - appComponents( - """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 `AppComponent`.""" - orderBy: [AppComponentOrderBy!] = [PRIMARY_KEY_ASC] - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: AppComponentFilter - ): AppComponentConnection applyRegistryDefaults(data: JSON, nodeType: String): JSON - """Reads and enables pagination through a set of `App`.""" - apps( + """Reads and enables pagination through a set of `AstMigration`.""" + astMigrations( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -24788,14 +26060,14 @@ type Query { """ offset: Int - """The method to use when ordering `App`.""" - orderBy: [AppOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `AstMigration`.""" + orderBy: [AstMigrationOrderBy!] = [NATURAL] """ A filter to be used in determining which values should be returned by the collection. """ - where: AppFilter - ): AppConnection + where: AstMigrationFilter + ): AstMigrationConnection """Reads and enables pagination through a set of `CheckConstraint`.""" checkConstraints( @@ -25494,6 +26766,24 @@ type Query { """ where: FunctionFilter ): FunctionConnection + getSitePreviewCommit(targetName: String, targetSiteId: UUID): UUID + + """Reads and enables pagination through a set of `GetSitePreviewsRecord`.""" + getSitePreviews( + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """Only read the first `n` values of the set.""" + first: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + targetSiteId: UUID + ): GetSitePreviewsConnection + getSiteReleaseManifest(targetCommitId: UUID, targetSiteId: UUID): JSON """Reads and enables pagination through a set of `HostnameBinding`.""" hostnameBindings( @@ -25524,8 +26814,10 @@ type Query { where: HostnameBindingFilter ): HostnameBindingConnection - """Reads and enables pagination through a set of `HttpRoute`.""" - httpRoutes( + """ + Reads and enables pagination through a set of `IdentityProviderRegistry`. + """ + identityProviderRegistries( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -25544,14 +26836,14 @@ type Query { """ offset: Int - """The method to use when ordering `HttpRoute`.""" - orderBy: [HttpRouteOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `IdentityProviderRegistry`.""" + orderBy: [IdentityProviderRegistryOrderBy!] = [PRIMARY_KEY_ASC] """ A filter to be used in determining which values should be returned by the collection. """ - where: HttpRouteFilter - ): HttpRouteConnection + where: IdentityProviderRegistryFilter + ): IdentityProviderRegistryConnection """Reads and enables pagination through a set of `Index`.""" indices( @@ -25639,6 +26931,7 @@ type Query { """ where: NodeTypeRegistryFilter ): NodeTypeRegistryConnection + pagePublished(pageSlug: String, targetSiteId: UUID): JSON """Reads and enables pagination through a set of `Page`.""" pages( @@ -25993,6 +27286,26 @@ type Query { """ where: PlatformEmailSiteIdentityFilter ): PlatformEmailSiteIdentityConnection + platformGetSitePreviewCommit(targetName: String, targetSiteId: UUID): UUID + + """ + Reads and enables pagination through a set of `PlatformGetSitePreviewsRecord`. + """ + platformGetSitePreviews( + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """Only read the first `n` values of the set.""" + first: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + targetSiteId: UUID + ): PlatformGetSitePreviewsConnection + platformGetSiteReleaseManifest(targetCommitId: UUID, targetSiteId: UUID): JSON """Reads and enables pagination through a set of `PlatformManagedDomain`.""" platformManagedDomains( @@ -26022,6 +27335,7 @@ type Query { """ where: PlatformManagedDomainFilter ): PlatformManagedDomainConnection + platformPagePublished(pageSlug: String, targetSiteId: UUID): JSON """Reads and enables pagination through a set of `PlatformPage`.""" platformPages( @@ -26197,6 +27511,35 @@ type Query { where: PlatformSiteModuleFilter ): PlatformSiteModuleConnection + """Reads and enables pagination through a set of `PlatformSiteRelease`.""" + platformSiteReleases( + """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 `PlatformSiteRelease`.""" + orderBy: [PlatformSiteReleaseOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformSiteReleaseFilter + ): PlatformSiteReleaseConnection + """Reads and enables pagination through a set of `PlatformSiteTheme`.""" platformSiteThemes( """Read all values in the set after (below) this cursor.""" @@ -26283,6 +27626,9 @@ type Query { """ where: PlatformSiteFilter ): PlatformSiteConnection + platformSitesDeepLinkUrl(linkSlug: String, targetSiteId: UUID): String + platformSitesSiteOrigin(targetSiteId: UUID): String + platformVerifySitePreviewToken(siteId: UUID, token: String): UUID """Reads and enables pagination through a set of `Policy`.""" policies( @@ -26370,8 +27716,36 @@ type Query { """ where: PubkeySettingFilter ): PubkeySettingConnection + + """Reads and enables pagination through a set of `Redirect`.""" + redirects( + """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 `Redirect`.""" + orderBy: [RedirectOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: RedirectFilter + ): RedirectConnection resolveDeepLink(linkSlug: String, targetSiteId: UUID): JSON - resolveHttpRoute(requestHost: String, requestMethod: String, requestPath: String): ResolveHttpRouteRecord resolveRoute(requestHost: String, requestMethod: String, requestPath: String): ResolveRouteRecord resolveSiteAppLinks(targetSiteId: UUID): JSON @@ -26665,6 +28039,35 @@ type Query { where: SiteModuleFilter ): SiteModuleConnection + """Reads and enables pagination through a set of `SiteRelease`.""" + siteReleases( + """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 `SiteRelease`.""" + orderBy: [SiteReleaseOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: SiteReleaseFilter + ): SiteReleaseConnection + """Reads and enables pagination through a set of `SiteTheme`.""" siteThemes( """Read all values in the set after (below) this cursor.""" @@ -26751,6 +28154,8 @@ type Query { """ where: SiteFilter ): SiteConnection + sitesDeepLinkUrl(linkSlug: String, targetSiteId: UUID): String + sitesSiteOrigin(targetSiteId: UUID): String """Reads and enables pagination through a set of `SpatialRelation`.""" spatialRelations( @@ -26781,6 +28186,35 @@ type Query { where: SpatialRelationFilter ): SpatialRelationConnection + """Reads and enables pagination through a set of `SqlAction`.""" + sqlActions( + """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 `SqlAction`.""" + orderBy: [SqlActionOrderBy!] = [NATURAL] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: SqlActionFilter + ): SqlActionConnection + """Reads and enables pagination through a set of `TableBehavior`.""" tableBehaviors( """Read all values in the set after (below) this cursor.""" @@ -26985,6 +28419,7 @@ type Query { """ where: UniqueConstraintFilter ): UniqueConstraintConnection + verifySitePreviewToken(siteId: UUID, token: String): UUID """Reads and enables pagination through a set of `ViewBehavior`.""" viewBehaviors( @@ -27161,6 +28596,265 @@ type Query { ): WebauthnSettingConnection } +""" +Redirect targets a route can point at; the edge answers with a redirect status instead of a backend +""" +type Redirect { + createdAt: Datetime + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! + id: UUID! + + """Owner-local name for this redirect""" + name: String! + + """Whether the incoming path is appended to the destination""" + preservePath: Boolean! + + """Whether the incoming query string is carried to the destination""" + preserveQuery: Boolean! + + """Reads and enables pagination through a set of `Route`.""" + routesByTargetRedirectId( + """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 `Route`.""" + orderBy: [RouteOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: RouteFilter + ): RouteConnection! + + """HTTP redirect status the edge answers with (301, 302, 307 or 308)""" + statusCode: Int! + + """Destination hostname the edge redirects to""" + toHost: String! + + """Destination path; NULL keeps the incoming path (see preserve_path)""" + toPath: String + updatedAt: Datetime +} + +"""A connection to a list of `Redirect` values.""" +type RedirectConnection { + """ + A list of edges which contains the `Redirect` and cursor to aid in pagination. + """ + edges: [RedirectEdge]! + + """A list of `Redirect` objects.""" + nodes: [Redirect]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `Redirect` you could get from the connection.""" + totalCount: Int! +} + +"""A `Redirect` edge in the connection.""" +type RedirectEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `Redirect` at the end of the edge.""" + node: Redirect +} + +""" +A filter to be used against `Redirect` object types. All fields are combined with a logical ‘and.’ +""" +input RedirectFilter { + """Checks for all expressions in this list.""" + and: [RedirectFilter!] + + """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 `name` field.""" + name: StringFilter + + """Negates the expression.""" + not: RedirectFilter + + """Checks for any expressions in this list.""" + or: [RedirectFilter!] + + """Filter by the object’s `preservePath` field.""" + preservePath: BooleanFilter + + """Filter by the object’s `preserveQuery` field.""" + preserveQuery: BooleanFilter + + """Filter by the object’s `routesByTargetRedirectId` relation.""" + routesByTargetRedirectId: RedirectToManyRouteFilter + + """`routesByTargetRedirectId` exist.""" + routesByTargetRedirectIdExist: Boolean + + """Filter by the object’s `statusCode` field.""" + statusCode: IntFilter + + """Filter by the object’s `toHost` field.""" + toHost: StringFilter + + """Filter by the object’s `toPath` field.""" + toPath: StringFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter +} + +"""An input for mutations affecting `Redirect`""" +input RedirectInput { + createdAt: Datetime + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! + id: UUID + + """Owner-local name for this redirect""" + name: String! + + """Whether the incoming path is appended to the destination""" + preservePath: Boolean + + """Whether the incoming query string is carried to the destination""" + preserveQuery: Boolean + + """HTTP redirect status the edge answers with (301, 302, 307 or 308)""" + statusCode: Int + + """Destination hostname the edge redirects to""" + toHost: String! + + """Destination path; NULL keeps the incoming path (see preserve_path)""" + toPath: String + updatedAt: Datetime +} + +"""Methods to use when ordering `Redirect`.""" +enum RedirectOrderBy { + CREATED_AT_ASC + CREATED_AT_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + ID_ASC + ID_DESC + NAME_ASC + NAME_DESC + NATURAL + PRESERVE_PATH_ASC + PRESERVE_PATH_DESC + PRESERVE_QUERY_ASC + PRESERVE_QUERY_DESC + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + STATUS_CODE_ASC + STATUS_CODE_DESC + TO_HOST_ASC + TO_HOST_DESC + TO_PATH_ASC + TO_PATH_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC +} + +""" +Represents an update to a `Redirect`. Fields that are set will be updated. +""" +input RedirectPatch { + createdAt: Datetime + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID + id: UUID + + """Owner-local name for this redirect""" + name: String + + """Whether the incoming path is appended to the destination""" + preservePath: Boolean + + """Whether the incoming query string is carried to the destination""" + preserveQuery: Boolean + + """HTTP redirect status the edge answers with (301, 302, 307 or 308)""" + statusCode: Int + + """Destination hostname the edge redirects to""" + toHost: String + + """Destination path; NULL keeps the incoming path (see preserve_path)""" + toPath: String + updatedAt: Datetime +} + +""" +A filter to be used against many `Route` object types. All fields are combined with a logical ‘and.’ +""" +input RedirectToManyRouteFilter { + """Filters to entities where every related entity matches.""" + every: RouteFilter + + """Filters to entities where no related entity matches.""" + none: RouteFilter + + """Filters to entities where at least one related entity matches.""" + some: RouteFilter +} + +"""All input for the `rejectDatabaseTransfer` mutation.""" +input RejectDatabaseTransferInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + transferId: UUID +} + +"""The output of our `rejectDatabaseTransfer` mutation.""" +type RejectDatabaseTransferPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + result: Boolean +} + """All input for the `requestDatabase` mutation.""" input RequestDatabaseInput { """ @@ -27172,6 +28866,7 @@ input RequestDatabaseInput { domain: String modules: JSON options: JSON + organizationId: UUID presetSlug: String subdomain: String } @@ -27191,16 +28886,6 @@ type RequestDatabasePayload { result: DatabaseProvisionModule } -type ResolveHttpRouteRecord { - databaseId: UUID - domainId: UUID - matchedPath: String - method: String - routeId: UUID - targetId: UUID - targetKind: String -} - type ResolveRouteRecord { domainId: UUID hostname: String @@ -27553,6 +29238,11 @@ input RlsSettingPatch { """Routes binding a domain hostname and path to a typed catalog target""" type Route { + """ + Whether this route answers callers with no identity. Requires the target function to declare anonymous_callable; default false = an identity is required + """ + anonymous: Boolean! + """ Route metadata; target configuration is read live from the typed catalog, never copied here """ @@ -27580,32 +29270,53 @@ type Route { """ path: String! + """ + The site preview this route serves; NULL serves the site's published release + """ + previewRef: String + """Higher priority wins between otherwise-equal matches""" priority: Int! + """Reads a single `Site` that is related to this `Route`.""" + servingSite: Site + """ - Api catalog row this route targets; must be owner-matched or visible cross-scope + Site whose surface this route serves; the serving lane renders as this site. NULL when the route serves no site """ + servingSiteId: UUID + + """Reads a single `Api` that is related to this `Route`.""" + targetApi: Api + + """Api surface this route targets; must be this scope's own api""" targetApiId: UUID """ - Bucket catalog row this route targets; must be a public bucket that is owner-matched or visible cross-scope + Bucket this route targets; must be a public bucket in this scope's own storage plane """ targetBucketId: UUID - """ - Function catalog row this route targets; must be owner-matched or visible cross-scope - """ + """Function this route targets; must be this scope's own function""" targetFunctionId: UUID + """Reads a single `Redirect` that is related to this `Route`.""" + targetRedirect: Redirect + """ - Resource catalog row (a Service resource) this route targets; must be owner-matched or visible cross-scope + Redirect this route targets; the edge answers with a redirect status instead of proxying a backend """ - targetServiceId: UUID + targetRedirectId: UUID """ - Site catalog row this route targets; must be owner-matched or visible cross-scope + Resource (a Service resource) this route targets; must be this scope's own resource """ + targetServiceId: UUID + + """Reads a single `Site` that is related to this `Route`.""" + targetSite: Site + + """Site surface this route targets; must be this scope's own site""" targetSiteId: UUID updatedAt: Datetime } @@ -27630,6 +29341,11 @@ type RouteBinding { """Priority compiled from the source route""" priority: Int! + """ + Site whose surface the source route serves; NULL when it serves no site + """ + servingSiteId: UUID + """Api catalog row the source route targets""" targetApiId: UUID @@ -27639,6 +29355,9 @@ type RouteBinding { """Function catalog row the source route targets""" targetFunctionId: UUID + """Redirect catalog row the source route targets""" + targetRedirectId: UUID + """Resource catalog row (a Service resource) the source route targets""" targetServiceId: UUID @@ -27706,6 +29425,9 @@ input RouteBindingFilter { """Filter by the object’s `priority` field.""" priority: IntFilter + """Filter by the object’s `servingSiteId` field.""" + servingSiteId: UUIDFilter + """Filter by the object’s `targetApiId` field.""" targetApiId: UUIDFilter @@ -27715,6 +29437,9 @@ input RouteBindingFilter { """Filter by the object’s `targetFunctionId` field.""" targetFunctionId: UUIDFilter + """Filter by the object’s `targetRedirectId` field.""" + targetRedirectId: UUIDFilter + """Filter by the object’s `targetServiceId` field.""" targetServiceId: UUIDFilter @@ -27743,6 +29468,11 @@ input RouteBindingInput { """Priority compiled from the source route""" priority: Int + """ + Site whose surface the source route serves; NULL when it serves no site + """ + servingSiteId: UUID + """Api catalog row the source route targets""" targetApiId: UUID @@ -27752,6 +29482,9 @@ input RouteBindingInput { """Function catalog row the source route targets""" targetFunctionId: UUID + """Redirect catalog row the source route targets""" + targetRedirectId: UUID + """Resource catalog row (a Service resource) the source route targets""" targetServiceId: UUID @@ -27779,12 +29512,16 @@ enum RouteBindingOrderBy { PRIMARY_KEY_DESC PRIORITY_ASC PRIORITY_DESC + SERVING_SITE_ID_ASC + SERVING_SITE_ID_DESC TARGET_API_ID_ASC TARGET_API_ID_DESC TARGET_BUCKET_ID_ASC TARGET_BUCKET_ID_DESC TARGET_FUNCTION_ID_ASC TARGET_FUNCTION_ID_DESC + TARGET_REDIRECT_ID_ASC + TARGET_REDIRECT_ID_DESC TARGET_SERVICE_ID_ASC TARGET_SERVICE_ID_DESC TARGET_SITE_ID_ASC @@ -27813,6 +29550,11 @@ input RouteBindingPatch { """Priority compiled from the source route""" priority: Int + """ + Site whose surface the source route serves; NULL when it serves no site + """ + servingSiteId: UUID + """Api catalog row the source route targets""" targetApiId: UUID @@ -27822,6 +29564,9 @@ input RouteBindingPatch { """Function catalog row the source route targets""" targetFunctionId: UUID + """Redirect catalog row the source route targets""" + targetRedirectId: UUID + """Resource catalog row (a Service resource) the source route targets""" targetServiceId: UUID @@ -27865,6 +29610,9 @@ input RouteFilter { """Checks for all expressions in this list.""" and: [RouteFilter!] + """Filter by the object’s `anonymous` field.""" + anonymous: BooleanFilter + """Filter by the object’s `config` field.""" config: JSONFilter @@ -27898,9 +29646,27 @@ input RouteFilter { """Filter by the object’s `path` field.""" path: StringFilter + """Filter by the object’s `previewRef` field.""" + previewRef: StringFilter + """Filter by the object’s `priority` field.""" priority: IntFilter + """Filter by the object’s `servingSite` relation.""" + servingSite: SiteFilter + + """A related `servingSite` exists.""" + servingSiteExists: Boolean + + """Filter by the object’s `servingSiteId` field.""" + servingSiteId: UUIDFilter + + """Filter by the object’s `targetApi` relation.""" + targetApi: ApiFilter + + """A related `targetApi` exists.""" + targetApiExists: Boolean + """Filter by the object’s `targetApiId` field.""" targetApiId: UUIDFilter @@ -27910,9 +29676,24 @@ input RouteFilter { """Filter by the object’s `targetFunctionId` field.""" targetFunctionId: UUIDFilter + """Filter by the object’s `targetRedirect` relation.""" + targetRedirect: RedirectFilter + + """A related `targetRedirect` exists.""" + targetRedirectExists: Boolean + + """Filter by the object’s `targetRedirectId` field.""" + targetRedirectId: UUIDFilter + """Filter by the object’s `targetServiceId` field.""" targetServiceId: UUIDFilter + """Filter by the object’s `targetSite` relation.""" + targetSite: SiteFilter + + """A related `targetSite` exists.""" + targetSiteExists: Boolean + """Filter by the object’s `targetSiteId` field.""" targetSiteId: UUIDFilter @@ -27922,6 +29703,11 @@ input RouteFilter { """An input for mutations affecting `Route`""" input RouteInput { + """ + Whether this route answers callers with no identity. Requires the target function to declare anonymous_callable; default false = an identity is required + """ + anonymous: Boolean + """ Route metadata; target configuration is read live from the typed catalog, never copied here """ @@ -27946,38 +29732,49 @@ input RouteInput { """ path: String + """ + The site preview this route serves; NULL serves the site's published release + """ + previewRef: String + """Higher priority wins between otherwise-equal matches""" priority: Int """ - Api catalog row this route targets; must be owner-matched or visible cross-scope + Site whose surface this route serves; the serving lane renders as this site. NULL when the route serves no site """ + servingSiteId: UUID + + """Api surface this route targets; must be this scope's own api""" targetApiId: UUID """ - Bucket catalog row this route targets; must be a public bucket that is owner-matched or visible cross-scope + Bucket this route targets; must be a public bucket in this scope's own storage plane """ targetBucketId: UUID - """ - Function catalog row this route targets; must be owner-matched or visible cross-scope - """ + """Function this route targets; must be this scope's own function""" targetFunctionId: UUID """ - Resource catalog row (a Service resource) this route targets; must be owner-matched or visible cross-scope + Redirect this route targets; the edge answers with a redirect status instead of proxying a backend """ - targetServiceId: UUID + targetRedirectId: UUID """ - Site catalog row this route targets; must be owner-matched or visible cross-scope + Resource (a Service resource) this route targets; must be this scope's own resource """ + targetServiceId: UUID + + """Site surface this route targets; must be this scope's own site""" targetSiteId: UUID updatedAt: Datetime } """Methods to use when ordering `Route`.""" enum RouteOrderBy { + ANONYMOUS_ASC + ANONYMOUS_DESC CONFIG_ASC CONFIG_DESC CREATED_AT_ASC @@ -27995,16 +29792,22 @@ enum RouteOrderBy { NATURAL PATH_ASC PATH_DESC + PREVIEW_REF_ASC + PREVIEW_REF_DESC PRIMARY_KEY_ASC PRIMARY_KEY_DESC PRIORITY_ASC PRIORITY_DESC + SERVING_SITE_ID_ASC + SERVING_SITE_ID_DESC TARGET_API_ID_ASC TARGET_API_ID_DESC TARGET_BUCKET_ID_ASC TARGET_BUCKET_ID_DESC TARGET_FUNCTION_ID_ASC TARGET_FUNCTION_ID_DESC + TARGET_REDIRECT_ID_ASC + TARGET_REDIRECT_ID_DESC TARGET_SERVICE_ID_ASC TARGET_SERVICE_ID_DESC TARGET_SITE_ID_ASC @@ -28017,6 +29820,11 @@ enum RouteOrderBy { Represents an update to a `Route`. Fields that are set will be updated. """ input RoutePatch { + """ + Whether this route answers callers with no identity. Requires the target function to declare anonymous_callable; default false = an identity is required + """ + anonymous: Boolean + """ Route metadata; target configuration is read live from the typed catalog, never copied here """ @@ -28041,32 +29849,41 @@ input RoutePatch { """ path: String + """ + The site preview this route serves; NULL serves the site's published release + """ + previewRef: String + """Higher priority wins between otherwise-equal matches""" priority: Int """ - Api catalog row this route targets; must be owner-matched or visible cross-scope + Site whose surface this route serves; the serving lane renders as this site. NULL when the route serves no site """ + servingSiteId: UUID + + """Api surface this route targets; must be this scope's own api""" targetApiId: UUID """ - Bucket catalog row this route targets; must be a public bucket that is owner-matched or visible cross-scope + Bucket this route targets; must be a public bucket in this scope's own storage plane """ targetBucketId: UUID - """ - Function catalog row this route targets; must be owner-matched or visible cross-scope - """ + """Function this route targets; must be this scope's own function""" targetFunctionId: UUID """ - Resource catalog row (a Service resource) this route targets; must be owner-matched or visible cross-scope + Redirect this route targets; the edge answers with a redirect status instead of proxying a backend """ - targetServiceId: UUID + targetRedirectId: UUID """ - Site catalog row this route targets; must be owner-matched or visible cross-scope + Resource (a Service resource) this route targets; must be this scope's own resource """ + targetServiceId: UUID + + """Site surface this route targets; must be this scope's own site""" targetSiteId: UUID updatedAt: Datetime } @@ -28875,6 +30692,33 @@ type SetFieldOrderPayload { query: Query } +"""All input for the `setSitePreview` mutation.""" +input SetSitePreviewInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + targetCommitId: UUID + targetName: String + targetSiteId: UUID +} + +"""The output of our `setSitePreview` mutation.""" +type SetSitePreviewPayload { + """ + The 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 +} + """ Site surfaces exposed by this scope; publication makes a surface bindable from other scopes """ @@ -28885,10 +30729,11 @@ type Site { activeCommitId: UUID """ - Catalog bucket that backs this site (static content store; exactly one of bucket_id/resource_id) + Bucket that backs this site (static content store; exactly one of bucket_id/resource_id) """ bucketId: UUID createdAt: Datetime + createdByPrincipal: UUID """Database that owns this resource (database-scoped isolation)""" databaseId: UUID! @@ -28901,7 +30746,7 @@ type Site { id: UUID! """ - Catalog resource_installation (release) that backs this site; the servable member is named by installation_member_slug (exactly one of bucket_id/resource_id/installation_id) + Resource installation (release) that backs this site; the servable member is named by installation_member_slug (exactly one of bucket_id/resource_id/installation_id) """ installationId: UUID @@ -28946,10 +30791,39 @@ type Site { ): PageConnection! """ - Catalog resource/service that backs this site (SSR/app Service pinned to one concrete resource row; exactly one of bucket_id/resource_id/installation_id) + Resource/service that backs this site (SSR/app Service pinned to one concrete resource row; exactly one of bucket_id/resource_id/installation_id) """ resourceId: UUID + """Reads and enables pagination through a set of `Route`.""" + routesByServingSiteId( + """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 `Route`.""" + orderBy: [RouteOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: RouteFilter + ): RouteConnection! + """Reads and enables pagination through a set of `SiteAppLink`.""" siteAppLinks( """Read all values in the set after (below) this cursor.""" @@ -29069,6 +30943,9 @@ type Site { where: SiteModuleFilter ): SiteModuleConnection! + """Reads a single `SiteRelease` that is related to this `Site`.""" + siteRelease: SiteRelease + """Reads and enables pagination through a set of `SiteTheme`.""" siteThemes( """Read all values in the set after (below) this cursor.""" @@ -29104,14 +30981,17 @@ type Site { """Human-readable site title""" title: String updatedAt: Datetime + updatedByPrincipal: UUID } """ -Native-app deep-link association metadata for a site surface (feeds AASA / assetlinks.json generation) +Per-host native-app association for a site surface: which app-owned store identity this host serves, and the path patterns it claims (joined with the store identity to render AASA / assetlinks.json) """ type SiteAppLink { - """App identifier: iOS bundle id or Android package name""" - appIdentifier: String! + """ + App-owned store identity this association serves (app_store_identities row in this scope's app plane; the association carries no store facts of its own) + """ + appStoreIdentityId: UUID! createdAt: Datetime """Database that owns this resource (database-scoped isolation)""" @@ -29123,27 +31003,11 @@ type SiteAppLink { """ pathComponents: [String]! - """Target platform for this association (ios, android)""" - platform: String! - - """Android signing certificate SHA-256 fingerprints for assetlinks.json""" - sha256CertFingerprints: [String]! - """Reads a single `Site` that is related to this `SiteAppLink`.""" site: Site """Site surface this app-link association belongs to""" siteId: UUID! - - """ - App/Play store URL for this app (used by install banners and fallbacks) - """ - storeUrl: String - - """ - Apple Developer team id (iOS); combined with app_identifier to form the AASA appID - """ - teamId: String updatedAt: Datetime """ @@ -29185,8 +31049,8 @@ input SiteAppLinkFilter { """Checks for all expressions in this list.""" and: [SiteAppLinkFilter!] - """Filter by the object’s `appIdentifier` field.""" - appIdentifier: StringFilter + """Filter by the object’s `appStoreIdentityId` field.""" + appStoreIdentityId: UUIDFilter """Filter by the object’s `createdAt` field.""" createdAt: DatetimeFilter @@ -29206,24 +31070,12 @@ input SiteAppLinkFilter { """Filter by the object’s `pathComponents` field.""" pathComponents: StringListFilter - """Filter by the object’s `platform` field.""" - platform: StringFilter - - """Filter by the object’s `sha256CertFingerprints` field.""" - sha256CertFingerprints: StringListFilter - """Filter by the object’s `site` relation.""" site: SiteFilter """Filter by the object’s `siteId` field.""" siteId: UUIDFilter - """Filter by the object’s `storeUrl` field.""" - storeUrl: StringFilter - - """Filter by the object’s `teamId` field.""" - teamId: StringFilter - """Filter by the object’s `updatedAt` field.""" updatedAt: DatetimeFilter @@ -29233,8 +31085,10 @@ input SiteAppLinkFilter { """An input for mutations affecting `SiteAppLink`""" input SiteAppLinkInput { - """App identifier: iOS bundle id or Android package name""" - appIdentifier: String! + """ + App-owned store identity this association serves (app_store_identities row in this scope's app plane; the association carries no store facts of its own) + """ + appStoreIdentityId: UUID! createdAt: Datetime """Database that owns this resource (database-scoped isolation)""" @@ -29246,24 +31100,8 @@ input SiteAppLinkInput { """ pathComponents: [String] - """Target platform for this association (ios, android)""" - platform: String! - - """Android signing certificate SHA-256 fingerprints for assetlinks.json""" - sha256CertFingerprints: [String] - """Site surface this app-link association belongs to""" siteId: UUID! - - """ - App/Play store URL for this app (used by install banners and fallbacks) - """ - storeUrl: String - - """ - Apple Developer team id (iOS); combined with app_identifier to form the AASA appID - """ - teamId: String updatedAt: Datetime """ @@ -29274,8 +31112,8 @@ input SiteAppLinkInput { """Methods to use when ordering `SiteAppLink`.""" enum SiteAppLinkOrderBy { - APP_IDENTIFIER_ASC - APP_IDENTIFIER_DESC + APP_STORE_IDENTITY_ID_ASC + APP_STORE_IDENTITY_ID_DESC CREATED_AT_ASC CREATED_AT_DESC DATABASE_ID_ASC @@ -29285,18 +31123,10 @@ enum SiteAppLinkOrderBy { NATURAL PATH_COMPONENTS_ASC PATH_COMPONENTS_DESC - PLATFORM_ASC - PLATFORM_DESC PRIMARY_KEY_ASC PRIMARY_KEY_DESC - SHA256_CERT_FINGERPRINTS_ASC - SHA256_CERT_FINGERPRINTS_DESC SITE_ID_ASC SITE_ID_DESC - STORE_URL_ASC - STORE_URL_DESC - TEAM_ID_ASC - TEAM_ID_DESC UPDATED_AT_ASC UPDATED_AT_DESC WEBCREDENTIALS_ASC @@ -29307,8 +31137,10 @@ enum SiteAppLinkOrderBy { Represents an update to a `SiteAppLink`. Fields that are set will be updated. """ input SiteAppLinkPatch { - """App identifier: iOS bundle id or Android package name""" - appIdentifier: String + """ + App-owned store identity this association serves (app_store_identities row in this scope's app plane; the association carries no store facts of its own) + """ + appStoreIdentityId: UUID createdAt: Datetime """Database that owns this resource (database-scoped isolation)""" @@ -29320,24 +31152,8 @@ input SiteAppLinkPatch { """ pathComponents: [String] - """Target platform for this association (ios, android)""" - platform: String - - """Android signing certificate SHA-256 fingerprints for assetlinks.json""" - sha256CertFingerprints: [String] - """Site surface this app-link association belongs to""" siteId: UUID - - """ - App/Play store URL for this app (used by install banners and fallbacks) - """ - storeUrl: String - - """ - Apple Developer team id (iOS); combined with app_identifier to form the AASA appID - """ - teamId: String updatedAt: Datetime """ @@ -29383,6 +31199,11 @@ type SiteDeepLink { """Additional link metadata (campaign/UTM parameters, escape hatch)""" metadata: JSON + """ + Page this link's web_path resolves to (soft reference into the pages module; NULL for external or non-page targets) + """ + pageId: UUID + """Reads a single `Site` that is related to this `SiteDeepLink`.""" site: Site @@ -29458,6 +31279,9 @@ input SiteDeepLinkFilter { """Checks for any expressions in this list.""" or: [SiteDeepLinkFilter!] + """Filter by the object’s `pageId` field.""" + pageId: UUIDFilter + """Filter by the object’s `site` relation.""" site: SiteFilter @@ -29492,6 +31316,11 @@ input SiteDeepLinkInput { """Additional link metadata (campaign/UTM parameters, escape hatch)""" metadata: JSON + """ + Page this link's web_path resolves to (soft reference into the pages module; NULL for external or non-page targets) + """ + pageId: UUID + """ Site surface this deep link belongs to (the hostname plane that serves it) """ @@ -29522,6 +31351,8 @@ enum SiteDeepLinkOrderBy { METADATA_ASC METADATA_DESC NATURAL + PAGE_ID_ASC + PAGE_ID_DESC PRIMARY_KEY_ASC PRIMARY_KEY_DESC SITE_ID_ASC @@ -29554,6 +31385,11 @@ input SiteDeepLinkPatch { """Additional link metadata (campaign/UTM parameters, escape hatch)""" metadata: JSON + """ + Page this link's web_path resolves to (soft reference into the pages module; NULL for external or non-page targets) + """ + pageId: UUID + """ Site surface this deep link belongs to (the hostname plane that serves it) """ @@ -29747,6 +31583,9 @@ input SiteFilter { """Filter by the object’s `createdAt` field.""" createdAt: DatetimeFilter + """Filter by the object’s `createdByPrincipal` field.""" + createdByPrincipal: UUIDFilter + """Filter by the object’s `databaseId` field.""" databaseId: UUIDFilter @@ -29789,6 +31628,12 @@ input SiteFilter { """Filter by the object’s `resourceId` field.""" resourceId: UUIDFilter + """Filter by the object’s `routesByServingSiteId` relation.""" + routesByServingSiteId: SiteToManyRouteFilter + + """`routesByServingSiteId` exist.""" + routesByServingSiteIdExist: Boolean + """Filter by the object’s `siteAppLinks` relation.""" siteAppLinks: SiteToManySiteAppLinkFilter @@ -29819,6 +31664,12 @@ input SiteFilter { """`siteModules` exist.""" siteModulesExist: Boolean + """Filter by the object’s `siteRelease` relation.""" + siteRelease: SiteReleaseFilter + + """A related `siteRelease` exists.""" + siteReleaseExists: Boolean + """Filter by the object’s `siteThemes` relation.""" siteThemes: SiteToManySiteThemeFilter @@ -29836,6 +31687,9 @@ input SiteFilter { """Filter by the object’s `updatedAt` field.""" updatedAt: DatetimeFilter + + """Filter by the object’s `updatedByPrincipal` field.""" + updatedByPrincipal: UUIDFilter } """An input for mutations affecting `Site`""" @@ -29846,10 +31700,11 @@ input SiteInput { activeCommitId: UUID """ - Catalog bucket that backs this site (static content store; exactly one of bucket_id/resource_id) + Bucket that backs this site (static content store; exactly one of bucket_id/resource_id) """ bucketId: UUID createdAt: Datetime + createdByPrincipal: UUID """Database that owns this resource (database-scoped isolation)""" databaseId: UUID! @@ -29859,7 +31714,7 @@ input SiteInput { id: UUID """ - Catalog resource_installation (release) that backs this site; the servable member is named by installation_member_slug (exactly one of bucket_id/resource_id/installation_id) + Resource installation (release) that backs this site; the servable member is named by installation_member_slug (exactly one of bucket_id/resource_id/installation_id) """ installationId: UUID @@ -29875,13 +31730,41 @@ input SiteInput { name: String! """ - Catalog resource/service that backs this site (SSR/app Service pinned to one concrete resource row; exactly one of bucket_id/resource_id/installation_id) + Resource/service that backs this site (SSR/app Service pinned to one concrete resource row; exactly one of bucket_id/resource_id/installation_id) """ resourceId: UUID """Human-readable site title""" title: String updatedAt: Datetime + updatedByPrincipal: UUID +} + +"""All input for the `siteMetadataInstallRobots` mutation.""" +input SiteMetadataInstallRobotsInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + entityId: UUID + robotsPreset: String + siteId: UUID +} + +"""The output of our `siteMetadataInstallRobots` mutation.""" +type SiteMetadataInstallRobotsPayload { + """ + The 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: JSON } """SEO and social sharing metadata for a site surface""" @@ -29917,6 +31800,11 @@ type SiteMetadatum { """robots meta directive (e.g. index,follow / noindex,nofollow)""" robots: String + """ + Provenance of the robots value: the content preset (kind, slug, catalog commit_id) an install applied, or NULL when it was authored directly + """ + robotsSeededFrom: JSON + """Reads a single `Site` that is related to this `SiteMetadatum`.""" site: Site @@ -30005,6 +31893,9 @@ input SiteMetadatumFilter { """Filter by the object’s `robots` field.""" robots: StringFilter + """Filter by the object’s `robotsSeededFrom` field.""" + robotsSeededFrom: JSONFilter + """Filter by the object’s `site` relation.""" site: SiteFilter @@ -30054,6 +31945,11 @@ input SiteMetadatumInput { """robots meta directive (e.g. index,follow / noindex,nofollow)""" robots: String + """ + Provenance of the robots value: the content preset (kind, slug, catalog commit_id) an install applied, or NULL when it was authored directly + """ + robotsSeededFrom: JSON + """Site surface this metadata belongs to""" siteId: UUID! @@ -30094,6 +31990,8 @@ enum SiteMetadatumOrderBy { PRIMARY_KEY_DESC ROBOTS_ASC ROBOTS_DESC + ROBOTS_SEEDED_FROM_ASC + ROBOTS_SEEDED_FROM_DESC SITE_ID_ASC SITE_ID_DESC STORE_ID_ASC @@ -30151,6 +32049,11 @@ input SiteMetadatumPatch { """robots meta directive (e.g. index,follow / noindex,nofollow)""" robots: String + """ + Provenance of the robots value: the content preset (kind, slug, catalog commit_id) an install applied, or NULL when it was authored directly + """ + robotsSeededFrom: JSON + """Site surface this metadata belongs to""" siteId: UUID @@ -30346,6 +32249,8 @@ enum SiteOrderBy { BUCKET_ID_DESC CREATED_AT_ASC CREATED_AT_DESC + CREATED_BY_PRINCIPAL_ASC + CREATED_BY_PRINCIPAL_DESC DATABASE_ID_ASC DATABASE_ID_DESC DESCRIPTION_ASC @@ -30369,6 +32274,8 @@ enum SiteOrderBy { TITLE_DESC UPDATED_AT_ASC UPDATED_AT_DESC + UPDATED_BY_PRINCIPAL_ASC + UPDATED_BY_PRINCIPAL_DESC } """Represents an update to a `Site`. Fields that are set will be updated.""" @@ -30379,10 +32286,11 @@ input SitePatch { activeCommitId: UUID """ - Catalog bucket that backs this site (static content store; exactly one of bucket_id/resource_id) + Bucket that backs this site (static content store; exactly one of bucket_id/resource_id) """ bucketId: UUID createdAt: Datetime + createdByPrincipal: UUID """Database that owns this resource (database-scoped isolation)""" databaseId: UUID @@ -30392,7 +32300,7 @@ input SitePatch { id: UUID """ - Catalog resource_installation (release) that backs this site; the servable member is named by installation_member_slug (exactly one of bucket_id/resource_id/installation_id) + Resource installation (release) that backs this site; the servable member is named by installation_member_slug (exactly one of bucket_id/resource_id/installation_id) """ installationId: UUID @@ -30408,13 +32316,192 @@ input SitePatch { name: String """ - Catalog resource/service that backs this site (SSR/app Service pinned to one concrete resource row; exactly one of bucket_id/resource_id/installation_id) + Resource/service that backs this site (SSR/app Service pinned to one concrete resource row; exactly one of bucket_id/resource_id/installation_id) """ resourceId: UUID """Human-readable site title""" title: String updatedAt: Datetime + updatedByPrincipal: UUID +} + +""" +Immutable static-site release manifest head, versioned in the site-owned merkle store +""" +type SiteRelease { + """ + Infra store commit for the current content (stamped by the versioned trigger on every write) + """ + commitId: UUID + createdAt: Datetime + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! + id: UUID! + + """ + Release manifest: {"files":{"":{"hash":"<64-hex sha256>","content_type":"...","size":123}},"file_count":N,"total_bytes":N} + """ + manifest: JSON! + + """Reads a single `Site` that is related to this `SiteRelease`.""" + site: Site + + """Site surface this release manifest belongs to""" + siteId: UUID! + + """ + Infra Merkle store holding this row's history (stamped by the versioned trigger) + """ + storeId: UUID + updatedAt: Datetime +} + +"""A connection to a list of `SiteRelease` values.""" +type SiteReleaseConnection { + """ + A list of edges which contains the `SiteRelease` and cursor to aid in pagination. + """ + edges: [SiteReleaseEdge]! + + """A list of `SiteRelease` objects.""" + nodes: [SiteRelease]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `SiteRelease` you could get from the connection.""" + totalCount: Int! +} + +"""A `SiteRelease` edge in the connection.""" +type SiteReleaseEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `SiteRelease` at the end of the edge.""" + node: SiteRelease +} + +""" +A filter to be used against `SiteRelease` object types. All fields are combined with a logical ‘and.’ +""" +input SiteReleaseFilter { + """Checks for all expressions in this list.""" + and: [SiteReleaseFilter!] + + """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 `id` field.""" + id: UUIDFilter + + """Filter by the object’s `manifest` field.""" + manifest: JSONFilter + + """Negates the expression.""" + not: SiteReleaseFilter + + """Checks for any expressions in this list.""" + or: [SiteReleaseFilter!] + + """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 `updatedAt` field.""" + updatedAt: DatetimeFilter +} + +"""An input for mutations affecting `SiteRelease`""" +input SiteReleaseInput { + """ + Infra store commit for the current content (stamped by the versioned trigger on every write) + """ + commitId: UUID + createdAt: Datetime + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! + id: UUID + + """ + Release manifest: {"files":{"":{"hash":"<64-hex sha256>","content_type":"...","size":123}},"file_count":N,"total_bytes":N} + """ + manifest: JSON! + + """Site surface this release manifest belongs to""" + siteId: UUID! + + """ + Infra Merkle store holding this row's history (stamped by the versioned trigger) + """ + storeId: UUID + updatedAt: Datetime +} + +"""Methods to use when ordering `SiteRelease`.""" +enum SiteReleaseOrderBy { + COMMIT_ID_ASC + COMMIT_ID_DESC + CREATED_AT_ASC + CREATED_AT_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + ID_ASC + ID_DESC + MANIFEST_ASC + MANIFEST_DESC + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + SITE_ID_ASC + SITE_ID_DESC + STORE_ID_ASC + STORE_ID_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC +} + +""" +Represents an update to a `SiteRelease`. Fields that are set will be updated. +""" +input SiteReleasePatch { + """ + Infra store commit for the current content (stamped by the versioned trigger on every write) + """ + commitId: UUID + createdAt: Datetime + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID + id: UUID + + """ + Release manifest: {"files":{"":{"hash":"<64-hex sha256>","content_type":"...","size":123}},"file_count":N,"total_bytes":N} + """ + manifest: JSON + + """Site surface this release manifest belongs to""" + siteId: UUID + + """ + Infra Merkle store holding this row's history (stamped by the versioned trigger) + """ + storeId: UUID + updatedAt: Datetime } """Theme (colors, fonts, design tokens) for a site surface""" @@ -30629,6 +32716,20 @@ input SiteToManyPageFilter { some: PageFilter } +""" +A filter to be used against many `Route` object types. All fields are combined with a logical ‘and.’ +""" +input SiteToManyRouteFilter { + """Filters to entities where every related entity matches.""" + every: RouteFilter + + """Filters to entities where no related entity matches.""" + none: RouteFilter + + """Filters to entities where at least one related entity matches.""" + some: RouteFilter +} + """ A filter to be used against many `SiteAppLink` object types. All fields are combined with a logical ‘and.’ """ @@ -30891,6 +32992,67 @@ input SiteWebConfigPatch { updatedAt: Datetime } +"""All input for the `sitesInstallContentPreset` mutation.""" +input SitesInstallContentPresetInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + entityId: UUID + presetKind: String + presetSlug: String + siteId: UUID +} + +"""The output of our `sitesInstallContentPreset` mutation.""" +type SitesInstallContentPresetPayload { + """ + The 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: JSON +} + +"""All input for the `sitesInstallMantra` mutation.""" +input SitesInstallMantraInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + entityId: UUID + routePreset: String + siteId: UUID +} + +"""The output of our `sitesInstallMantra` mutation.""" +type SitesInstallMantraPayload { + """ + The 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: Site + + """An edge for our `Site`. May be used by Relay 1.""" + siteEdge( + """The method to use when ordering `Site`.""" + orderBy: [SiteOrderBy!]! = [PRIMARY_KEY_ASC] + ): SiteEdge +} + """All input for the `sitesProvisionStaticSite` mutation.""" input SitesProvisionStaticSiteInput { apex: String @@ -30919,7 +33081,13 @@ type SitesProvisionStaticSitePayload { Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - result: PlatformRoute + result: Route + + """An edge for our `Route`. May be used by Relay 1.""" + routeEdge( + """The method to use when ordering `Route`.""" + orderBy: [RouteOrderBy!]! = [PRIMARY_KEY_ASC] + ): RouteEdge } type SpatialRelation { @@ -31118,6 +33286,129 @@ input SpatialRelationPatch { updatedAt: Datetime } +type SqlAction { + actionId: UUID + actionName: String + actorId: UUID + content: String + createdAt: Datetime + databaseId: UUID + deploy: String + deps: [String] + id: Int + name: String + payload: JSON + revert: String + verify: String +} + +"""A connection to a list of `SqlAction` values.""" +type SqlActionConnection { + """ + A list of edges which contains the `SqlAction` and cursor to aid in pagination. + """ + edges: [SqlActionEdge]! + + """A list of `SqlAction` objects.""" + nodes: [SqlAction]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `SqlAction` you could get from the connection.""" + totalCount: Int! +} + +"""A `SqlAction` edge in the connection.""" +type SqlActionEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `SqlAction` at the end of the edge.""" + node: SqlAction +} + +""" +A filter to be used against `SqlAction` object types. All fields are combined with a logical ‘and.’ +""" +input SqlActionFilter { + """Filter by the object’s `actionId` field.""" + actionId: UUIDFilter + + """Filter by the object’s `actionName` field.""" + actionName: StringFilter + + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter + + """Checks for all expressions in this list.""" + and: [SqlActionFilter!] + + """Filter by the object’s `content` field.""" + content: StringFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `deploy` field.""" + deploy: StringFilter + + """Filter by the object’s `deps` field.""" + deps: StringListFilter + + """Filter by the object’s `id` field.""" + id: IntFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """Negates the expression.""" + not: SqlActionFilter + + """Checks for any expressions in this list.""" + or: [SqlActionFilter!] + + """Filter by the object’s `revert` field.""" + revert: StringFilter + + """Filter by the object’s `verify` field.""" + verify: StringFilter +} + +"""Methods to use when ordering `SqlAction`.""" +enum SqlActionOrderBy { + ACTION_ID_ASC + ACTION_ID_DESC + ACTION_NAME_ASC + ACTION_NAME_DESC + ACTOR_ID_ASC + ACTOR_ID_DESC + CONTENT_ASC + CONTENT_DESC + CREATED_AT_ASC + CREATED_AT_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + DEPLOY_ASC + DEPLOY_DESC + DEPS_ASC + DEPS_DESC + ID_ASC + ID_DESC + NAME_ASC + NAME_DESC + NATURAL + PAYLOAD_ASC + PAYLOAD_DESC + REVERT_ASC + REVERT_DESC + VERIFY_ASC + VERIFY_DESC +} + """ A filter to be used against String fields. All fields are combined with a logical ‘and.’ """ @@ -32909,8 +35200,15 @@ type Trigger { database: Database databaseId: UUID! event: String + events: [String] + forEachRow: Boolean + + """Reads a single `Function` that is related to this `Trigger`.""" + function: Function + functionId: UUID functionName: String id: UUID! + kind: String! name: String! smartTags: JSON @@ -32918,7 +35216,9 @@ type Trigger { table: Table tableId: UUID! tags: [String]! + timing: String updatedAt: Datetime + whenAst: JSON } """A connection to a list of `Trigger` values.""" @@ -32969,12 +35269,30 @@ input TriggerFilter { """Filter by the object’s `event` field.""" event: StringFilter + """Filter by the object’s `events` field.""" + events: StringListFilter + + """Filter by the object’s `forEachRow` field.""" + forEachRow: BooleanFilter + + """Filter by the object’s `function` relation.""" + function: FunctionFilter + + """A related `function` exists.""" + functionExists: Boolean + + """Filter by the object’s `functionId` field.""" + functionId: UUIDFilter + """Filter by the object’s `functionName` field.""" functionName: StringFilter """Filter by the object’s `id` field.""" id: UUIDFilter + """Filter by the object’s `kind` field.""" + kind: StringFilter + """Filter by the object’s `name` field.""" name: StringFilter @@ -32996,8 +35314,14 @@ input TriggerFilter { """Filter by the object’s `tags` field.""" tags: StringListFilter + """Filter by the object’s `timing` field.""" + timing: StringFilter + """Filter by the object’s `updatedAt` field.""" updatedAt: DatetimeFilter + + """Filter by the object’s `whenAst` field.""" + whenAst: JSONFilter } type TriggerFunction { @@ -33122,13 +35446,19 @@ input TriggerInput { createdAt: Datetime databaseId: UUID event: String + events: [String] + forEachRow: Boolean + functionId: UUID functionName: String id: UUID + kind: String name: String! smartTags: JSON tableId: UUID! tags: [String] + timing: String updatedAt: Datetime + whenAst: JSON } """Methods to use when ordering `Trigger`.""" @@ -33139,12 +35469,20 @@ enum TriggerOrderBy { CREATED_AT_DESC DATABASE_ID_ASC DATABASE_ID_DESC + EVENTS_ASC + EVENTS_DESC EVENT_ASC EVENT_DESC + FOR_EACH_ROW_ASC + FOR_EACH_ROW_DESC + FUNCTION_ID_ASC + FUNCTION_ID_DESC FUNCTION_NAME_ASC FUNCTION_NAME_DESC ID_ASC ID_DESC + KIND_ASC + KIND_DESC NAME_ASC NAME_DESC NATURAL @@ -33156,8 +35494,12 @@ enum TriggerOrderBy { TABLE_ID_DESC TAGS_ASC TAGS_DESC + TIMING_ASC + TIMING_DESC UPDATED_AT_ASC UPDATED_AT_DESC + WHEN_AST_ASC + WHEN_AST_DESC } """ @@ -33168,13 +35510,19 @@ input TriggerPatch { createdAt: Datetime databaseId: UUID event: String + events: [String] + forEachRow: Boolean + functionId: UUID functionName: String id: UUID + kind: String name: String smartTags: JSON tableId: UUID tags: [String] + timing: String updatedAt: Datetime + whenAst: JSON } """ @@ -33788,82 +36136,6 @@ type UpdateApiSettingPayload { query: Query } -"""All input for the `updateAppComponent` mutation.""" -input UpdateAppComponentInput { - """ - An object where the defined keys will be set on the `AppComponent` being updated. - """ - appComponentPatch: AppComponentPatch! - - """ - An arbitrary 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 `AppComponent` mutation.""" -type UpdateAppComponentPayload { - """The `AppComponent` that was updated by this mutation.""" - appComponent: AppComponent - - """An edge for our `AppComponent`. May be used by Relay 1.""" - appComponentEdge( - """The method to use when ordering `AppComponent`.""" - orderBy: [AppComponentOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppComponentEdge - - """ - The 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 `updateApp` mutation.""" -input UpdateAppInput { - """ - An object where the defined keys will be set on the `App` being updated. - """ - appPatch: AppPatch! - - """ - An arbitrary 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 `App` mutation.""" -type UpdateAppPayload { - """The `App` that was updated by this mutation.""" - app: App - - """An edge for our `App`. May be used by Relay 1.""" - appEdge( - """The method to use when ordering `App`.""" - orderBy: [AppOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppEdge - - """ - The 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 { """ @@ -34816,8 +37088,8 @@ type UpdateHostnameBindingPayload { query: Query } -"""All input for the `updateHttpRoute` mutation.""" -input UpdateHttpRouteInput { +"""All input for the `updateIdentityProviderRegistry` mutation.""" +input UpdateIdentityProviderRegistryInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -34825,28 +37097,28 @@ input UpdateHttpRouteInput { clientMutationId: String """ - An object where the defined keys will be set on the `HttpRoute` being updated. + An object where the defined keys will be set on the `IdentityProviderRegistry` being updated. """ - httpRoutePatch: HttpRoutePatch! - id: UUID! + identityProviderRegistryPatch: IdentityProviderRegistryPatch! + slug: String! } -"""The output of our update `HttpRoute` mutation.""" -type UpdateHttpRoutePayload { +"""The output of our update `IdentityProviderRegistry` mutation.""" +type UpdateIdentityProviderRegistryPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `HttpRoute` that was updated by this mutation.""" - httpRoute: HttpRoute + """The `IdentityProviderRegistry` that was updated by this mutation.""" + identityProviderRegistry: IdentityProviderRegistry - """An edge for our `HttpRoute`. May be used by Relay 1.""" - httpRouteEdge( - """The method to use when ordering `HttpRoute`.""" - orderBy: [HttpRouteOrderBy!]! = [PRIMARY_KEY_ASC] - ): HttpRouteEdge + """An edge for our `IdentityProviderRegistry`. May be used by Relay 1.""" + identityProviderRegistryEdge( + """The method to use when ordering `IdentityProviderRegistry`.""" + orderBy: [IdentityProviderRegistryOrderBy!]! = [PRIMARY_KEY_ASC] + ): IdentityProviderRegistryEdge """ Our root query field type. Allows us to run any query from our mutation payload. @@ -35734,6 +38006,44 @@ type UpdatePlatformSitePayload { query: Query } +"""All input for the `updatePlatformSiteRelease` mutation.""" +input UpdatePlatformSiteReleaseInput { + """ + An arbitrary 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 `PlatformSiteRelease` being updated. + """ + platformSiteReleasePatch: PlatformSiteReleasePatch! +} + +"""The output of our update `PlatformSiteRelease` mutation.""" +type UpdatePlatformSiteReleasePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `PlatformSiteRelease` that was updated by this mutation.""" + platformSiteRelease: PlatformSiteRelease + + """An edge for our `PlatformSiteRelease`. May be used by Relay 1.""" + platformSiteReleaseEdge( + """The method to use when ordering `PlatformSiteRelease`.""" + orderBy: [PlatformSiteReleaseOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformSiteReleaseEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + """All input for the `updatePlatformSiteTheme` mutation.""" input UpdatePlatformSiteThemeInput { """ @@ -35924,6 +38234,44 @@ type UpdatePubkeySettingPayload { query: Query } +"""All input for the `updateRedirect` mutation.""" +input UpdateRedirectInput { + """ + An arbitrary 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 `Redirect` being updated. + """ + redirectPatch: RedirectPatch! +} + +"""The output of our update `Redirect` mutation.""" +type UpdateRedirectPayload { + """ + The 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 `Redirect` that was updated by this mutation.""" + redirect: Redirect + + """An edge for our `Redirect`. May be used by Relay 1.""" + redirectEdge( + """The method to use when ordering `Redirect`.""" + orderBy: [RedirectOrderBy!]! = [PRIMARY_KEY_ASC] + ): RedirectEdge +} + """All input for the `updateRlsSetting` mutation.""" input UpdateRlsSettingInput { """ @@ -36342,6 +38690,44 @@ type UpdateSitePayload { ): SiteEdge } +"""All input for the `updateSiteRelease` mutation.""" +input UpdateSiteReleaseInput { + """ + An arbitrary 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 `SiteRelease` being updated. + """ + siteReleasePatch: SiteReleasePatch! +} + +"""The output of our update `SiteRelease` mutation.""" +type UpdateSiteReleasePayload { + """ + The 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 `SiteRelease` that was updated by this mutation.""" + siteRelease: SiteRelease + + """An edge for our `SiteRelease`. May be used by Relay 1.""" + siteReleaseEdge( + """The method to use when ordering `SiteRelease`.""" + orderBy: [SiteReleaseOrderBy!]! = [PRIMARY_KEY_ASC] + ): SiteReleaseEdge +} + """All input for the `updateSiteTheme` mutation.""" input UpdateSiteThemeInput { """ diff --git a/sdk/constructive-sdk/schemas/auth.graphql b/sdk/constructive-sdk/schemas/auth.graphql index 5e5386d6eb..df9d503e66 100644 --- a/sdk/constructive-sdk/schemas/auth.graphql +++ b/sdk/constructive-sdk/schemas/auth.graphql @@ -1,3 +1,29 @@ +"""All input for the `approveDevice` mutation.""" +input ApproveDeviceInput { + approvalToken: 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 +} + +"""The output of our `approveDevice` mutation.""" +type ApproveDevicePayload { + """ + The 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: Boolean +} + """ Partitioned append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) """ @@ -9,6 +35,11 @@ type AuditLogAuth { actorId: UUID createdAt: Datetime! + """ + Event-specific structured payload (e.g. preset slug and catalog commit id for create_principal_from_preset) + """ + details: JSON + """ Type of authentication event (e.g. sign_in, sign_up, password_change, verify_email) """ @@ -77,6 +108,9 @@ input AuditLogAuthFilter { """Filter by the object’s `createdAt` field.""" createdAt: DatetimeFilter + """Filter by the object’s `details` field.""" + details: JSONFilter + """Filter by the object’s `event` field.""" event: StringFilter @@ -108,6 +142,11 @@ input AuditLogAuthInput { actorId: UUID createdAt: Datetime + """ + Event-specific structured payload (e.g. preset slug and catalog commit id for create_principal_from_preset) + """ + details: JSON + """ Type of authentication event (e.g. sign_in, sign_up, password_change, verify_email) """ @@ -137,6 +176,8 @@ enum AuditLogAuthOrderBy { ACTOR_ID_DESC CREATED_AT_ASC CREATED_AT_DESC + DETAILS_ASC + DETAILS_DESC EVENT_ASC EVENT_DESC ID_ASC @@ -162,6 +203,11 @@ input AuditLogAuthPatch { actorId: UUID createdAt: Datetime + """ + Event-specific structured payload (e.g. preset slug and catalog commit id for create_principal_from_preset) + """ + details: JSON + """ Type of authentication event (e.g. sign_in, sign_up, password_change, verify_email) """ @@ -378,6 +424,50 @@ type CheckPasswordPayload { query: Query } +"""All input for the `completeMfaChallenge` mutation.""" +input CompleteMfaChallengeInput { + authMethod: 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 + credentialKind: String + deviceToken: String + mfaChallengeToken: String + mfaMethod: String + rememberMe: Boolean + totpCode: String + trustDevice: Boolean + userId: UUID +} + +"""The output of our `completeMfaChallenge` mutation.""" +type CompleteMfaChallengePayload { + """ + The 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: CompleteMfaChallengeRecord +} + +type CompleteMfaChallengeRecord { + accessToken: String + accessTokenExpiresAt: Datetime + deviceApprovalRequired: Boolean + id: UUID + isVerified: Boolean + outDeviceToken: String + outUserId: UUID +} + """All input for the `confirmDeleteAccount` mutation.""" input ConfirmDeleteAccountInput { """ @@ -404,6 +494,31 @@ type ConfirmDeleteAccountPayload { result: Boolean } +"""All input for the `confirmTotpSetup` mutation.""" +input ConfirmTotpSetupInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + totpValue: String! +} + +"""The output of our `confirmTotpSetup` mutation.""" +type ConfirmTotpSetupPayload { + """ + The 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: Boolean +} + scalar ConstructiveInternalTypeEmail """ @@ -802,6 +917,38 @@ type CreateAuditLogAuthPayload { query: Query } +"""All input for the `createChildPrincipal` mutation.""" +input CreateChildPrincipalInput { + allowedMask: BitString + + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + entityIds: [UUID] + expiresAt: Datetime + intent: String + isReadOnly: Boolean + name: String + parentPrincipalId: UUID +} + +"""The output of our `createChildPrincipal` mutation.""" +type CreateChildPrincipalPayload { + """ + The 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 create `CryptoAddress` mutation.""" input CreateCryptoAddressInput { """ @@ -974,39 +1121,32 @@ type CreatePhoneNumberPayload { query: Query } -"""All input for the create `PrincipalEntity` mutation.""" -input CreatePrincipalEntityInput { +"""All input for the `createPrincipalFromPreset` mutation.""" +input CreatePrincipalFromPresetInput { """ An arbitrary 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 `PrincipalEntity` to be created by this mutation.""" - principalEntity: PrincipalEntityInput! + entityIds: [UUID] + name: String + overrides: JSON + slug: String } -"""The output of our create `PrincipalEntity` mutation.""" -type CreatePrincipalEntityPayload { +"""The output of our `createPrincipalFromPreset` mutation.""" +type CreatePrincipalFromPresetPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `PrincipalEntity` that was created by this mutation.""" - principalEntity: PrincipalEntity - - """An edge for our `PrincipalEntity`. May be used by Relay 1.""" - principalEntityEdge( - """The method to use when ordering `PrincipalEntity`.""" - orderBy: [PrincipalEntityOrderBy!]! = [PRIMARY_KEY_ASC] - ): PrincipalEntityEdge - """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query + result: UUID } """All input for the `createPrincipal` mutation.""" @@ -1109,6 +1249,76 @@ type CreateUserPayload { ): UserEdge } +"""All input for the create `UserSetting` mutation.""" +input CreateUserSettingInput { + """ + An arbitrary 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 `UserSetting` to be created by this mutation.""" + userSetting: UserSettingInput! +} + +"""The output of our create `UserSetting` mutation.""" +type CreateUserSettingPayload { + """ + The 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 `UserSetting` that was created by this mutation.""" + userSetting: UserSetting + + """An edge for our `UserSetting`. May be used by Relay 1.""" + userSettingEdge( + """The method to use when ordering `UserSetting`.""" + orderBy: [UserSettingOrderBy!]! = [PRIMARY_KEY_ASC] + ): UserSettingEdge +} + +"""All input for the create `UserSettingsSecurity` mutation.""" +input CreateUserSettingsSecurityInput { + """ + An arbitrary 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 `UserSettingsSecurity` to be created by this mutation.""" + userSettingsSecurity: UserSettingsSecurityInput! +} + +"""The output of our create `UserSettingsSecurity` mutation.""" +type CreateUserSettingsSecurityPayload { + """ + The 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 `UserSettingsSecurity` that was created by this mutation.""" + userSettingsSecurity: UserSettingsSecurity + + """An edge for our `UserSettingsSecurity`. May be used by Relay 1.""" + userSettingsSecurityEdge( + """The method to use when ordering `UserSettingsSecurity`.""" + orderBy: [UserSettingsSecurityOrderBy!]! = [PRIMARY_KEY_ASC] + ): UserSettingsSecurityEdge +} + """All input for the create `WebauthnCredential` mutation.""" input CreateWebauthnCredentialInput { """ @@ -1526,39 +1736,6 @@ type DeletePhoneNumberPayload { query: Query } -"""All input for the `deletePrincipalEntity` mutation.""" -input DeletePrincipalEntityInput { - """ - An arbitrary 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 `PrincipalEntity` mutation.""" -type DeletePrincipalEntityPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `PrincipalEntity` that was deleted by this mutation.""" - principalEntity: PrincipalEntity - - """An edge for our `PrincipalEntity`. May be used by Relay 1.""" - principalEntityEdge( - """The method to use when ordering `PrincipalEntity`.""" - orderBy: [PrincipalEntityOrderBy!]! = [PRIMARY_KEY_ASC] - ): PrincipalEntityEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - """All input for the `deletePrincipal` mutation.""" input DeletePrincipalInput { """ @@ -1650,6 +1827,72 @@ type DeleteUserPayload { ): UserEdge } +"""All input for the `deleteUserSetting` mutation.""" +input DeleteUserSettingInput { + """ + An arbitrary 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 `UserSetting` mutation.""" +type DeleteUserSettingPayload { + """ + The 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 `UserSetting` that was deleted by this mutation.""" + userSetting: UserSetting + + """An edge for our `UserSetting`. May be used by Relay 1.""" + userSettingEdge( + """The method to use when ordering `UserSetting`.""" + orderBy: [UserSettingOrderBy!]! = [PRIMARY_KEY_ASC] + ): UserSettingEdge +} + +"""All input for the `deleteUserSettingsSecurity` mutation.""" +input DeleteUserSettingsSecurityInput { + """ + An arbitrary 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 `UserSettingsSecurity` mutation.""" +type DeleteUserSettingsSecurityPayload { + """ + The 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 `UserSettingsSecurity` that was deleted by this mutation.""" + userSettingsSecurity: UserSettingsSecurity + + """An edge for our `UserSettingsSecurity`. May be used by Relay 1.""" + userSettingsSecurityEdge( + """The method to use when ordering `UserSettingsSecurity`.""" + orderBy: [UserSettingsSecurityOrderBy!]! = [PRIMARY_KEY_ASC] + ): UserSettingsSecurityEdge +} + """All input for the `deleteWebauthnCredential` mutation.""" input DeleteWebauthnCredentialInput { """ @@ -1683,10 +1926,8 @@ type DeleteWebauthnCredentialPayload { ): WebauthnCredentialEdge } -"""All input for the `disconnectAccount` mutation.""" -input DisconnectAccountInput { - accountId: UUID! - +"""All input for the `disableEmailMfa` mutation.""" +input DisableEmailMfaInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -1694,8 +1935,8 @@ input DisconnectAccountInput { clientMutationId: String } -"""The output of our `disconnectAccount` mutation.""" -type DisconnectAccountPayload { +"""The output of our `disableEmailMfa` mutation.""" +type DisableEmailMfaPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. @@ -1709,16 +1950,91 @@ type DisconnectAccountPayload { result: Boolean } -"""User email addresses with verification and primary-email management""" -type Email { - createdAt: Datetime - - """The email address""" - email: ConstructiveInternalTypeEmail! - id: UUID! +"""All input for the `disableSmsMfa` mutation.""" +input DisableSmsMfaInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String +} - """Whether this is the user's primary email address""" - isPrimary: Boolean! +"""The output of our `disableSmsMfa` mutation.""" +type DisableSmsMfaPayload { + """ + The 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: Boolean +} + +"""All input for the `disableTotp` mutation.""" +input DisableTotpInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + totpValue: String! +} + +"""The output of our `disableTotp` mutation.""" +type DisableTotpPayload { + """ + The 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: Boolean +} + +"""All input for the `disconnectAccount` mutation.""" +input DisconnectAccountInput { + accountId: UUID! + + """ + An arbitrary 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 `disconnectAccount` mutation.""" +type DisconnectAccountPayload { + """ + The 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: Boolean +} + +"""User email addresses with verification and primary-email management""" +type Email { + createdAt: Datetime + + """The email address""" + email: ConstructiveInternalTypeEmail! + id: UUID! + + """Whether this is the user's primary email address""" + isPrimary: Boolean! """Whether the email address has been verified via confirmation link""" isVerified: Boolean! @@ -1864,6 +2180,78 @@ input EmailPatch { updatedAt: Datetime } +"""All input for the `enableEmailMfa` mutation.""" +input EnableEmailMfaInput { + """ + An arbitrary 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 `enableEmailMfa` mutation.""" +type EnableEmailMfaPayload { + """ + The 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: Boolean +} + +"""All input for the `enableSmsMfa` mutation.""" +input EnableSmsMfaInput { + """ + An arbitrary 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 `enableSmsMfa` mutation.""" +type EnableSmsMfaPayload { + """ + The 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: Boolean +} + +"""All input for the `enableTotp` mutation.""" +input EnableTotpInput { + """ + An arbitrary 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 `enableTotp` mutation.""" +type EnableTotpPayload { + """ + The 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: String +} + """All input for the `extendTokenExpires` mutation.""" input ExtendTokenExpiresInput { amount: IntervalInput @@ -1956,6 +2344,37 @@ input FullTextFilter { notIn: [FullText!] } +"""All input for the `generateBackupCodes` mutation.""" +input GenerateBackupCodesInput { + """ + An arbitrary 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 `generateBackupCodes` mutation.""" +type GenerateBackupCodesPayload { + """ + The 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: String +} + +type GetMfaStatusRecord { + backupCodesCount: Int + emailMfaEnabled: Boolean + smsMfaEnabled: Boolean + totpEnabled: Boolean +} + type IdentityProvider { displayName: String enabled: Boolean @@ -2495,11 +2914,57 @@ type MetaSearchConfig { """Storage metadata for a table""" type MetaStorage { + """GraphQL type name of the plane's buckets table""" + bucketsType: String! + + """ + Computed download-URL field on the files type; null on the buckets side + """ + downloadUrlField: String + + """GraphQL type name of the plane's files table""" + filesType: String! + """Whether this table is a storage buckets table""" isBucketsTable: Boolean! """Whether this table is a storage files table""" isFilesTable: Boolean! + + """The plane's GraphQL upload surface""" + upload: MetaStorageUpload! +} + +""" +The GraphQL upload surface of a storage plane, derived from the registry facts the presigned-url plugin emits from +""" +type MetaStorageUpload { + """Per-file input type inside the bulk input""" + bulkFileInputType: String! + + """Per-file payload type inside the bulk payload""" + bulkFilePayloadType: String! + + """Input type of the bulk upload mutation""" + bulkInputType: String! + + """Root mutation field for bulk upload""" + bulkMutation: String! + + """Payload type of the bulk upload mutation""" + bulkPayloadType: String! + + """Input type of the single upload mutation""" + inputType: String! + + """Root mutation field for single-file upload (e.g. uploadAppFile)""" + mutation: String! + + """Payload type of the single upload mutation""" + payloadType: String! + + """Whether the upload input requires ownerId (entity-keyed plane)""" + requiresOwnerId: Boolean! } """Information about a database table""" @@ -2555,22 +3020,77 @@ type MetaUniqueConstraint { name: String! } +"""All input for the `mintAccessToken` mutation.""" +input MintAccessTokenInput { + accessTtl: IntervalInput + + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + intent: String + principalId: UUID +} + +"""The output of our `mintAccessToken` mutation.""" +type MintAccessTokenPayload { + """ + The 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: MintAccessTokenRecord +} + +type MintAccessTokenRecord { + accessExpiresAt: Datetime + accessToken: String + principalUserId: UUID + refreshExpiresAt: Datetime + refreshToken: String + sessionId: UUID +} + """ The root mutation type which contains root level fields which mutate data. """ type Mutation { + approveDevice( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: ApproveDeviceInput! + ): ApproveDevicePayload checkPassword( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ input: CheckPasswordInput! ): CheckPasswordPayload + completeMfaChallenge( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CompleteMfaChallengeInput! + ): CompleteMfaChallengePayload confirmDeleteAccount( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ input: ConfirmDeleteAccountInput! ): ConfirmDeleteAccountPayload + confirmTotpSetup( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: ConfirmTotpSetupInput! + ): ConfirmTotpSetupPayload createApiKey( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. @@ -2585,6 +3105,12 @@ type Mutation { """ input: CreateAuditLogAuthInput! ): CreateAuditLogAuthPayload + createChildPrincipal( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateChildPrincipalInput! + ): CreateChildPrincipalPayload """Creates a single `CryptoAddress`.""" createCryptoAddress( @@ -2627,14 +3153,12 @@ type Mutation { """ input: CreatePrincipalInput! ): CreatePrincipalPayload - - """Creates a single `PrincipalEntity`.""" - createPrincipalEntity( + createPrincipalFromPreset( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreatePrincipalEntityInput! - ): CreatePrincipalEntityPayload + input: CreatePrincipalFromPresetInput! + ): CreatePrincipalFromPresetPayload """Creates a single `RoleType`.""" createRoleType( @@ -2652,6 +3176,22 @@ type Mutation { input: CreateUserInput! ): CreateUserPayload + """Creates a single `UserSetting`.""" + createUserSetting( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateUserSettingInput! + ): CreateUserSettingPayload + + """Creates a single `UserSettingsSecurity`.""" + createUserSettingsSecurity( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateUserSettingsSecurityInput! + ): CreateUserSettingsSecurityPayload + """Creates a single `WebauthnCredential`.""" createWebauthnCredential( """ @@ -2704,14 +3244,6 @@ type Mutation { input: DeletePrincipalInput! ): DeletePrincipalPayload - """Deletes a single `PrincipalEntity` using a unique key.""" - deletePrincipalEntity( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeletePrincipalEntityInput! - ): DeletePrincipalEntityPayload - """Deletes a single `RoleType` using a unique key.""" deleteRoleType( """ @@ -2728,6 +3260,22 @@ type Mutation { input: DeleteUserInput! ): DeleteUserPayload + """Deletes a single `UserSetting` using a unique key.""" + deleteUserSetting( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteUserSettingInput! + ): DeleteUserSettingPayload + + """Deletes a single `UserSettingsSecurity` using a unique key.""" + deleteUserSettingsSecurity( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteUserSettingsSecurityInput! + ): DeleteUserSettingsSecurityPayload + """Deletes a single `WebauthnCredential` using a unique key.""" deleteWebauthnCredential( """ @@ -2735,12 +3283,48 @@ type Mutation { """ input: DeleteWebauthnCredentialInput! ): DeleteWebauthnCredentialPayload + disableEmailMfa( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DisableEmailMfaInput! + ): DisableEmailMfaPayload + disableSmsMfa( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DisableSmsMfaInput! + ): DisableSmsMfaPayload + disableTotp( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DisableTotpInput! + ): DisableTotpPayload disconnectAccount( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ input: DisconnectAccountInput! ): DisconnectAccountPayload + enableEmailMfa( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: EnableEmailMfaInput! + ): EnableEmailMfaPayload + enableSmsMfa( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: EnableSmsMfaInput! + ): EnableSmsMfaPayload + enableTotp( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: EnableTotpInput! + ): EnableTotpPayload extendTokenExpires( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. @@ -2753,18 +3337,31 @@ type Mutation { """ input: ForgotPasswordInput! ): ForgotPasswordPayload + generateBackupCodes( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: GenerateBackupCodesInput! + ): GenerateBackupCodesPayload linkIdentity( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ input: LinkIdentityInput! ): LinkIdentityPayload + mintAccessToken( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: MintAccessTokenInput! + ): MintAccessTokenPayload """ - 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. + Reconcile an S3 bucket for a logical bucket in the database. + Reads the bucket config via RLS, then enqueues the same + storage:provision_bucket job used by the INSERT trigger. This is + idempotent for an already-reconciled bucket; enqueue failures become + GraphQL errors. """ provisionBucket( """ @@ -2778,6 +3375,12 @@ type Mutation { """ input: ProvisionNewUserInput! ): ProvisionNewUserPayload + refreshAccessToken( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: RefreshAccessTokenInput! + ): RefreshAccessTokenPayload requestCrossOriginToken( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. @@ -2826,6 +3429,18 @@ type Mutation { """ input: SetPasswordInput! ): SetPasswordPayload + setPrincipalEntities( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: SetPrincipalEntitiesInput! + ): SetPrincipalEntitiesPayload + setPrincipalScope( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: SetPrincipalScopeInput! + ): SetPrincipalScopePayload signIn( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. @@ -2906,14 +3521,12 @@ type Mutation { """ input: UpdatePhoneNumberInput! ): UpdatePhoneNumberPayload - - """Updates a single `PrincipalEntity` using a unique key and a patch.""" - updatePrincipalEntity( + updatePrincipal( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdatePrincipalEntityInput! - ): UpdatePrincipalEntityPayload + input: UpdatePrincipalInput! + ): UpdatePrincipalPayload """Updates a single `RoleType` using a unique key and a patch.""" updateRoleType( @@ -2931,6 +3544,24 @@ type Mutation { input: UpdateUserInput! ): UpdateUserPayload + """Updates a single `UserSetting` using a unique key and a patch.""" + updateUserSetting( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateUserSettingInput! + ): UpdateUserSettingPayload + + """ + Updates a single `UserSettingsSecurity` using a unique key and a patch. + """ + updateUserSettingsSecurity( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateUserSettingsSecurityInput! + ): UpdateUserSettingsSecurityPayload + """Updates a single `WebauthnCredential` using a unique key and a patch.""" updateWebauthnCredential( """ @@ -3283,7 +3914,51 @@ input PhoneNumberPatch { type Principal { """Whether this principal bypasses MFA step-up requirements""" bypassStepUp: Boolean! + + """Reads and enables pagination through a set of `Principal`.""" + child_principals( + """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 `Principal`.""" + orderBy: [PrincipalOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PrincipalFilter + ): PrincipalConnection! createdAt: Datetime + + """ + Session that minted this child principal; NULL for principals created outside a session chain + """ + createdBySessionId: UUID + + """ + Depth of this principal below its owner-derived root (0 for standing principals), bounded by auth_settings.max_principal_depth + """ + depth: Int! + + """ + When this ephemeral child principal expires; NULL for standing principals + """ + expiresAt: Datetime id: UUID! """Whether this principal is restricted to read-only operations""" @@ -3300,6 +3975,14 @@ type Principal { """The human user who owns and manages this principal""" ownerId: UUID! + """Reads a single `Principal` that is related to this `Principal`.""" + parentPrincipal: Principal + + """ + Principal this child principal derives its authority from; NULL for principals that derive from owner_id + """ + parentPrincipalId: UUID + """Reads and enables pagination through a set of `PrincipalEntity`.""" principalEntities( """Read all values in the set after (below) this cursor.""" @@ -3493,22 +4176,6 @@ input PrincipalEntityFilter { updatedAt: DatetimeFilter } -"""An input for mutations affecting `PrincipalEntity`""" -input PrincipalEntityInput { - createdAt: Datetime - - """The organization this principal is scoped to""" - entityId: UUID! - id: UUID - - """Denormalized owner_id from principals table for RLS""" - ownerId: UUID! - - """The principal this scoping row belongs to""" - principalId: UUID! - updatedAt: Datetime -} - """Methods to use when ordering `PrincipalEntity`.""" enum PrincipalEntityOrderBy { CREATED_AT_ASC @@ -3528,24 +4195,6 @@ enum PrincipalEntityOrderBy { UPDATED_AT_DESC } -""" -Represents an update to a `PrincipalEntity`. Fields that are set will be updated. -""" -input PrincipalEntityPatch { - createdAt: Datetime - - """The organization this principal is scoped to""" - entityId: UUID - id: UUID - - """Denormalized owner_id from principals table for RLS""" - ownerId: UUID - - """The principal this scoping row belongs to""" - principalId: UUID - updatedAt: Datetime -} - """ A filter to be used against `Principal` object types. All fields are combined with a logical ‘and.’ """ @@ -3556,9 +4205,24 @@ input PrincipalFilter { """Filter by the object’s `bypassStepUp` field.""" bypassStepUp: BooleanFilter + """Filter by the object’s `child_principals` relation.""" + child_principals: PrincipalToManyPrincipalFilter + + """`child_principals` exist.""" + child_principalsExist: Boolean + """Filter by the object’s `createdAt` field.""" createdAt: DatetimeFilter + """Filter by the object’s `createdBySessionId` field.""" + createdBySessionId: UUIDFilter + + """Filter by the object’s `depth` field.""" + depth: IntFilter + + """Filter by the object’s `expiresAt` field.""" + expiresAt: DatetimeFilter + """Filter by the object’s `id` field.""" id: UUIDFilter @@ -3580,6 +4244,15 @@ input PrincipalFilter { """Filter by the object’s `ownerId` field.""" ownerId: UUIDFilter + """Filter by the object’s `parentPrincipal` relation.""" + parentPrincipal: PrincipalFilter + + """A related `parentPrincipal` exists.""" + parentPrincipalExists: Boolean + + """Filter by the object’s `parentPrincipalId` field.""" + parentPrincipalId: UUIDFilter + """Filter by the object’s `principalEntities` relation.""" principalEntities: PrincipalToManyPrincipalEntityFilter @@ -3611,6 +4284,12 @@ enum PrincipalOrderBy { BYPASS_STEP_UP_DESC CREATED_AT_ASC CREATED_AT_DESC + CREATED_BY_SESSION_ID_ASC + CREATED_BY_SESSION_ID_DESC + DEPTH_ASC + DEPTH_DESC + EXPIRES_AT_ASC + EXPIRES_AT_DESC ID_ASC ID_DESC IS_READ_ONLY_ASC @@ -3620,6 +4299,8 @@ enum PrincipalOrderBy { NATURAL OWNER_ID_ASC OWNER_ID_DESC + PARENT_PRINCIPAL_ID_ASC + PARENT_PRINCIPAL_ID_DESC PRIMARY_KEY_ASC PRIMARY_KEY_DESC UPDATED_AT_ASC @@ -3778,6 +4459,20 @@ input PrincipalToManyPrincipalEntityFilter { some: PrincipalEntityFilter } +""" +A filter to be used against many `Principal` object types. All fields are combined with a logical ‘and.’ +""" +input PrincipalToManyPrincipalFilter { + """Filters to entities where every related entity matches.""" + every: PrincipalFilter + + """Filters to entities where no related entity matches.""" + none: PrincipalFilter + + """Filters to entities where at least one related entity matches.""" + some: PrincipalFilter +} + """ A filter to be used against many `PrincipalScopeOverride` object types. All fields are combined with a logical ‘and.’ """ @@ -3804,23 +4499,17 @@ input ProvisionBucketInput { } type 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 - - """Error message if provisioning failed""" - error: String + """The logical bucket row that was queued for reconciliation.""" + bucketId: UUID! + bucketKey: String! - """The storage provider used""" - provider: String! + """The reconciler job enqueued to provision this bucket.""" + jobId: UUID! - """Whether provisioning succeeded""" - success: Boolean! + """ + The physical bucket name already recorded, or null when reconciliation has not completed. + """ + physicalName: String } """All input for the `provisionNewUser` mutation.""" @@ -3946,6 +4635,7 @@ type Query { """ where: EmailFilter ): EmailConnection + getMfaStatus: GetMfaStatusRecord """Reads and enables pagination through a set of `IdentityProvider`.""" identityProviders( @@ -4182,6 +4872,64 @@ type Query { where: UserConnectedAccountFilter ): UserConnectedAccountConnection + """Reads and enables pagination through a set of `UserSetting`.""" + userSettings( + """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 `UserSetting`.""" + orderBy: [UserSettingOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: UserSettingFilter + ): UserSettingConnection + + """Reads and enables pagination through a set of `UserSettingsSecurity`.""" + userSettingsSecurities( + """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 `UserSettingsSecurity`.""" + orderBy: [UserSettingsSecurityOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: UserSettingsSecurityFilter + ): UserSettingsSecurityConnection + """Reads and enables pagination through a set of `User`.""" users( """Read all values in the set after (below) this cursor.""" @@ -4241,6 +4989,40 @@ type Query { ): WebauthnCredentialConnection } +"""All input for the `refreshAccessToken` mutation.""" +input RefreshAccessTokenInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + token: String +} + +"""The output of our `refreshAccessToken` mutation.""" +type RefreshAccessTokenPayload { + """ + The 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: RefreshAccessTokenRecord +} + +type RefreshAccessTokenRecord { + accessExpiresAt: Datetime + accessToken: String + principalUserId: UUID + refreshExpiresAt: Datetime + refreshToken: String + sessionId: UUID +} + """All input for the `requestCrossOriginToken` mutation.""" input RequestCrossOriginTokenInput { """ @@ -4497,19 +5279,76 @@ type SendVerificationEmailPayload { result: Boolean } -"""All input for the `setPassword` mutation.""" -input SetPasswordInput { +"""All input for the `setPassword` mutation.""" +input SetPasswordInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + currentPassword: String + newPassword: String +} + +"""The output of our `setPassword` mutation.""" +type SetPasswordPayload { + """ + The 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: Boolean +} + +"""All input for the `setPrincipalEntities` mutation.""" +input SetPrincipalEntitiesInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + entityIds: [UUID] + principalId: UUID +} + +"""The output of our `setPrincipalEntities` mutation.""" +type SetPrincipalEntitiesPayload { + """ + The 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: Boolean +} + +"""All input for the `setPrincipalScope` mutation.""" +input SetPrincipalScopeInput { + allowedMask: BitString + """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - currentPassword: String - newPassword: String + isActive: Boolean + isReadOnly: Boolean + membershipType: Int + principalId: UUID + useAdminOwner: Boolean } -"""The output of our `setPassword` mutation.""" -type SetPasswordPayload { +"""The output of our `setPrincipalScope` mutation.""" +type SetPrincipalScopePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. @@ -4604,6 +5443,8 @@ type SignInMagicLinkPayload { type SignInMagicLinkRecord { accessToken: String accessTokenExpiresAt: Datetime + deviceApprovalRequired: Boolean + outDeviceToken: String userId: UUID } @@ -4625,10 +5466,12 @@ type SignInPayload { type SignInRecord { accessToken: String accessTokenExpiresAt: Datetime + deviceApprovalRequired: Boolean id: UUID isVerified: Boolean mfaChallengeToken: String mfaRequired: Boolean + outDeviceToken: String totpEnabled: Boolean userId: UUID } @@ -4665,6 +5508,8 @@ type SignInSmsOtpPayload { type SignInSmsOtpRecord { accessToken: String accessTokenExpiresAt: Datetime + deviceApprovalRequired: Boolean + outDeviceToken: String userId: UUID } @@ -4737,6 +5582,7 @@ type SignUpMagicLinkPayload { type SignUpMagicLinkRecord { accessToken: String accessTokenExpiresAt: Datetime + outDeviceToken: String userId: UUID } @@ -4760,6 +5606,7 @@ type SignUpRecord { accessTokenExpiresAt: Datetime id: UUID isVerified: Boolean + outDeviceToken: String totpEnabled: Boolean userId: UUID } @@ -4796,6 +5643,7 @@ type SignUpSmsPayload { type SignUpSmsRecord { accessToken: String accessTokenExpiresAt: Datetime + outDeviceToken: String userId: UUID } @@ -5353,42 +6201,34 @@ type UpdatePhoneNumberPayload { query: Query } -"""All input for the `updatePrincipalEntity` mutation.""" -input UpdatePrincipalEntityInput { +"""All input for the `updatePrincipal` mutation.""" +input UpdatePrincipalInput { + bypassStepUp: 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 - id: UUID! - - """ - An object where the defined keys will be set on the `PrincipalEntity` being updated. - """ - principalEntityPatch: PrincipalEntityPatch! + isReadOnly: Boolean + name: String + principalId: UUID + useAdminOwner: Boolean } -"""The output of our update `PrincipalEntity` mutation.""" -type UpdatePrincipalEntityPayload { +"""The output of our `updatePrincipal` mutation.""" +type UpdatePrincipalPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `PrincipalEntity` that was updated by this mutation.""" - principalEntity: PrincipalEntity - - """An edge for our `PrincipalEntity`. May be used by Relay 1.""" - principalEntityEdge( - """The method to use when ordering `PrincipalEntity`.""" - orderBy: [PrincipalEntityOrderBy!]! = [PRIMARY_KEY_ASC] - ): PrincipalEntityEdge - """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query + result: Boolean } """All input for the `updateRoleType` mutation.""" @@ -5467,6 +6307,82 @@ type UpdateUserPayload { ): UserEdge } +"""All input for the `updateUserSetting` mutation.""" +input UpdateUserSettingInput { + """ + An arbitrary 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 `UserSetting` being updated. + """ + userSettingPatch: UserSettingPatch! +} + +"""The output of our update `UserSetting` mutation.""" +type UpdateUserSettingPayload { + """ + The 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 `UserSetting` that was updated by this mutation.""" + userSetting: UserSetting + + """An edge for our `UserSetting`. May be used by Relay 1.""" + userSettingEdge( + """The method to use when ordering `UserSetting`.""" + orderBy: [UserSettingOrderBy!]! = [PRIMARY_KEY_ASC] + ): UserSettingEdge +} + +"""All input for the `updateUserSettingsSecurity` mutation.""" +input UpdateUserSettingsSecurityInput { + """ + An arbitrary 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 `UserSettingsSecurity` being updated. + """ + userSettingsSecurityPatch: UserSettingsSecurityPatch! +} + +"""The output of our update `UserSettingsSecurity` mutation.""" +type UpdateUserSettingsSecurityPayload { + """ + The 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 `UserSettingsSecurity` that was updated by this mutation.""" + userSettingsSecurity: UserSettingsSecurity + + """An edge for our `UserSettingsSecurity`. May be used by Relay 1.""" + userSettingsSecurityEdge( + """The method to use when ordering `UserSettingsSecurity`.""" + orderBy: [UserSettingsSecurityOrderBy!]! = [PRIMARY_KEY_ASC] + ): UserSettingsSecurityEdge +} + """All input for the `updateWebauthnCredential` mutation.""" input UpdateWebauthnCredentialInput { """ @@ -5604,6 +6520,12 @@ type User { ): EmailConnection! id: UUID! + """Reads a single `UserSetting` that is related to this `User`.""" + ownedUserSetting: UserSetting + + """Reads a single `UserSettingsSecurity` that is related to this `User`.""" + ownedUserSettingsSecurity: UserSettingsSecurity + """Reads and enables pagination through a set of `PhoneNumber`.""" phoneNumbers( """Read all values in the set after (below) this cursor.""" @@ -5903,6 +6825,18 @@ input UserFilter { """Checks for any expressions in this list.""" or: [UserFilter!] + """Filter by the object’s `ownedUserSetting` relation.""" + ownedUserSetting: UserSettingFilter + + """A related `ownedUserSetting` exists.""" + ownedUserSettingExists: Boolean + + """Filter by the object’s `ownedUserSettingsSecurity` relation.""" + ownedUserSettingsSecurity: UserSettingsSecurityFilter + + """A related `ownedUserSettingsSecurity` exists.""" + ownedUserSettingsSecurityExists: Boolean + """Filter by the object’s `phoneNumbers` relation.""" phoneNumbers: UserToManyPhoneNumberFilter @@ -6015,6 +6949,291 @@ input UserPatch { username: String } +""" +Per-user settings and preferences. Extended by other modules (i18n, notifications, MFA) via metaschema.create_field(). +""" +type UserSetting { + createdAt: Datetime + id: UUID! + + """Reads a single `User` that is related to this `UserSetting`.""" + owner: User + ownerId: UUID! + updatedAt: Datetime +} + +"""A connection to a list of `UserSetting` values.""" +type UserSettingConnection { + """ + A list of edges which contains the `UserSetting` and cursor to aid in pagination. + """ + edges: [UserSettingEdge]! + + """A list of `UserSetting` objects.""" + nodes: [UserSetting]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `UserSetting` you could get from the connection.""" + totalCount: Int! +} + +"""A `UserSetting` edge in the connection.""" +type UserSettingEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `UserSetting` at the end of the edge.""" + node: UserSetting +} + +""" +A filter to be used against `UserSetting` object types. All fields are combined with a logical ‘and.’ +""" +input UserSettingFilter { + """Checks for all expressions in this list.""" + and: [UserSettingFilter!] + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Negates the expression.""" + not: UserSettingFilter + + """Checks for any expressions in this list.""" + or: [UserSettingFilter!] + + """Filter by the object’s `owner` relation.""" + owner: UserFilter + + """Filter by the object’s `ownerId` field.""" + ownerId: UUIDFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter +} + +"""An input for mutations affecting `UserSetting`""" +input UserSettingInput { + createdAt: Datetime + id: UUID + ownerId: UUID + updatedAt: Datetime +} + +"""Methods to use when ordering `UserSetting`.""" +enum UserSettingOrderBy { + CREATED_AT_ASC + CREATED_AT_DESC + ID_ASC + ID_DESC + NATURAL + OWNER_ID_ASC + OWNER_ID_DESC + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC +} + +""" +Represents an update to a `UserSetting`. Fields that are set will be updated. +""" +input UserSettingPatch { + createdAt: Datetime + id: UUID + ownerId: UUID + updatedAt: Datetime +} + +""" +Per-user security settings for MFA configuration (separate from user_settings preferences) +""" +type UserSettingsSecurity { + """Number of remaining unused backup codes""" + backupCodesCount: Int! + createdAt: Datetime + + """Whether email-based MFA codes are active for this user""" + emailMfaEnabled: Boolean! + id: UUID! + + """When the first MFA method was enabled""" + mfaEnrolledAt: Datetime + + """When MFA was last successfully verified""" + mfaLastUsedAt: Datetime + + """Reads a single `User` that is related to this `UserSettingsSecurity`.""" + owner: User + ownerId: UUID! + + """Whether SMS-based MFA codes are active for this user""" + smsMfaEnabled: Boolean! + + """Whether TOTP (authenticator app) MFA is active for this user""" + totpEnabled: Boolean! + updatedAt: Datetime +} + +"""A connection to a list of `UserSettingsSecurity` values.""" +type UserSettingsSecurityConnection { + """ + A list of edges which contains the `UserSettingsSecurity` and cursor to aid in pagination. + """ + edges: [UserSettingsSecurityEdge]! + + """A list of `UserSettingsSecurity` objects.""" + nodes: [UserSettingsSecurity]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `UserSettingsSecurity` you could get from the connection. + """ + totalCount: Int! +} + +"""A `UserSettingsSecurity` edge in the connection.""" +type UserSettingsSecurityEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `UserSettingsSecurity` at the end of the edge.""" + node: UserSettingsSecurity +} + +""" +A filter to be used against `UserSettingsSecurity` object types. All fields are combined with a logical ‘and.’ +""" +input UserSettingsSecurityFilter { + """Checks for all expressions in this list.""" + and: [UserSettingsSecurityFilter!] + + """Filter by the object’s `backupCodesCount` field.""" + backupCodesCount: IntFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `emailMfaEnabled` field.""" + emailMfaEnabled: BooleanFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `mfaEnrolledAt` field.""" + mfaEnrolledAt: DatetimeFilter + + """Filter by the object’s `mfaLastUsedAt` field.""" + mfaLastUsedAt: DatetimeFilter + + """Negates the expression.""" + not: UserSettingsSecurityFilter + + """Checks for any expressions in this list.""" + or: [UserSettingsSecurityFilter!] + + """Filter by the object’s `owner` relation.""" + owner: UserFilter + + """Filter by the object’s `ownerId` field.""" + ownerId: UUIDFilter + + """Filter by the object’s `smsMfaEnabled` field.""" + smsMfaEnabled: BooleanFilter + + """Filter by the object’s `totpEnabled` field.""" + totpEnabled: BooleanFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter +} + +"""An input for mutations affecting `UserSettingsSecurity`""" +input UserSettingsSecurityInput { + """Number of remaining unused backup codes""" + backupCodesCount: Int + createdAt: Datetime + + """Whether email-based MFA codes are active for this user""" + emailMfaEnabled: Boolean + id: UUID + + """When the first MFA method was enabled""" + mfaEnrolledAt: Datetime + + """When MFA was last successfully verified""" + mfaLastUsedAt: Datetime + ownerId: UUID + + """Whether SMS-based MFA codes are active for this user""" + smsMfaEnabled: Boolean + + """Whether TOTP (authenticator app) MFA is active for this user""" + totpEnabled: Boolean + updatedAt: Datetime +} + +"""Methods to use when ordering `UserSettingsSecurity`.""" +enum UserSettingsSecurityOrderBy { + BACKUP_CODES_COUNT_ASC + BACKUP_CODES_COUNT_DESC + CREATED_AT_ASC + CREATED_AT_DESC + EMAIL_MFA_ENABLED_ASC + EMAIL_MFA_ENABLED_DESC + ID_ASC + ID_DESC + MFA_ENROLLED_AT_ASC + MFA_ENROLLED_AT_DESC + MFA_LAST_USED_AT_ASC + MFA_LAST_USED_AT_DESC + NATURAL + OWNER_ID_ASC + OWNER_ID_DESC + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + SMS_MFA_ENABLED_ASC + SMS_MFA_ENABLED_DESC + TOTP_ENABLED_ASC + TOTP_ENABLED_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC +} + +""" +Represents an update to a `UserSettingsSecurity`. Fields that are set will be updated. +""" +input UserSettingsSecurityPatch { + """Number of remaining unused backup codes""" + backupCodesCount: Int + createdAt: Datetime + + """Whether email-based MFA codes are active for this user""" + emailMfaEnabled: Boolean + id: UUID + + """When the first MFA method was enabled""" + mfaEnrolledAt: Datetime + + """When MFA was last successfully verified""" + mfaLastUsedAt: Datetime + ownerId: UUID + + """Whether SMS-based MFA codes are active for this user""" + smsMfaEnabled: Boolean + + """Whether TOTP (authenticator app) MFA is active for this user""" + totpEnabled: Boolean + updatedAt: Datetime +} + """ A filter to be used against many `AuditLogAuth` object types. All fields are combined with a logical ‘and.’ """ diff --git a/sdk/constructive-sdk/schemas/cluster.graphql b/sdk/constructive-sdk/schemas/cluster.graphql new file mode 100644 index 0000000000..7028b976cc --- /dev/null +++ b/sdk/constructive-sdk/schemas/cluster.graphql @@ -0,0 +1,409 @@ +"""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 { + """GraphQL type name of the plane's buckets table""" + bucketsType: String! + + """ + Computed download-URL field on the files type; null on the buckets side + """ + downloadUrlField: String + + """GraphQL type name of the plane's files table""" + filesType: String! + + """Whether this table is a storage buckets table""" + isBucketsTable: Boolean! + + """Whether this table is a storage files table""" + isFilesTable: Boolean! + + """The plane's GraphQL upload surface""" + upload: MetaStorageUpload! +} + +""" +The GraphQL upload surface of a storage plane, derived from the registry facts the presigned-url plugin emits from +""" +type MetaStorageUpload { + """Per-file input type inside the bulk input""" + bulkFileInputType: String! + + """Per-file payload type inside the bulk payload""" + bulkFilePayloadType: String! + + """Input type of the bulk upload mutation""" + bulkInputType: String! + + """Root mutation field for bulk upload""" + bulkMutation: String! + + """Payload type of the bulk upload mutation""" + bulkPayloadType: String! + + """Input type of the single upload mutation""" + inputType: String! + + """Root mutation field for single-file upload (e.g. uploadAppFile)""" + mutation: String! + + """Payload type of the single upload mutation""" + payloadType: String! + + """Whether the upload input requires ownerId (entity-keyed plane)""" + requiresOwnerId: 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 { + """ + Reconcile an S3 bucket for a logical bucket in the database. + Reads the bucket config via RLS, then enqueues the same + storage:provision_bucket job used by the INSERT trigger. This is + idempotent for an already-reconciled bucket; enqueue failures become + GraphQL errors. + """ + provisionBucket( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: ProvisionBucketInput! + ): ProvisionBucketPayload +} + +input 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: UUID +} + +type ProvisionBucketPayload { + """The logical bucket row that was queued for reconciliation.""" + bucketId: UUID! + bucketKey: String! + + """The reconciler job enqueued to provision this bucket.""" + jobId: UUID! + + """ + The physical bucket name already recorded, or null when reconciliation has not completed. + """ + physicalName: String +} + +"""The root query type which gives access points into the data universe.""" +type Query { + """ + Metadata about the database schema, including tables, fields, indexes, and constraints. Useful for code generation tools. + """ + _meta: MetaSchema +} + +""" +A universally unique identifier as defined by [RFC 4122](https://tools.ietf.org/html/rfc4122). +""" +scalar UUID \ No newline at end of file diff --git a/sdk/constructive-sdk/schemas/compute.graphql b/sdk/constructive-sdk/schemas/compute.graphql index fab3a1298c..b3b28c4cc3 100644 --- a/sdk/constructive-sdk/schemas/compute.graphql +++ b/sdk/constructive-sdk/schemas/compute.graphql @@ -122,6 +122,34 @@ type AddNodePayload { result: UUID } +"""All input for the `approveNode` mutation.""" +input ApproveNodeInput { + approved: 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 + executionId: UUID + feedback: JSON + nodeName: String +} + +"""The output of our `approveNode` mutation.""" +type ApproveNodePayload { + """ + The 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 +} + """Binary data encoded using Base64""" scalar Base64EncodedBinary @@ -293,1748 +321,1538 @@ input BooleanFilter { notIn: [Boolean!] } -scalar ConstructiveInternalTypeImage - """ -A filter to be used against ConstructiveInternalTypeImage fields. All fields are combined with a logical ‘and.’ +One run of a repository workflow: its commit, its job, and what it produced """ -input ConstructiveInternalTypeImageFilter { - """Contained by the specified JSON.""" - containedBy: ConstructiveInternalTypeImage - - """Contains the specified JSON.""" - contains: ConstructiveInternalTypeImage - - """Contains all of the specified keys.""" - containsAllKeys: [String!] +type Build { + """ + Authenticated actor this build is attributed to; NULL only when no human actor was proven + """ + actorId: UUID - """Contains any of the specified keys.""" - containsAnyKeys: [String!] + """Retry attempt number for this workflow, commit, and matrix shard""" + attempt: Int! - """Contains the specified key.""" - containsKey: String + """Commit this build built""" + commitSha: String """ - Not equal to the specified value, treating null like an ordinary value. + Verdict: NULL while pending/running, then success, failure, neutral, cancelled, skipped, timed_out, or action_required """ - distinctFrom: ConstructiveInternalTypeImage + conclusion: String + createdAt: Datetime + createdByPrincipal: UUID - """Equal to the specified value.""" - equalTo: ConstructiveInternalTypeImage + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! - """Greater than the specified value.""" - greaterThan: ConstructiveInternalTypeImage + """Reads a single `RepositoryEvent` that is related to this `Build`.""" + event: RepositoryEvent - """Greater than or equal to the specified value.""" - greaterThanOrEqualTo: ConstructiveInternalTypeImage + """Event that triggered this build (NULL for a manual build)""" + eventId: UUID - """Included in the specified list.""" - in: [ConstructiveInternalTypeImage!] + """When the build reached a terminal status""" + finishedAt: Datetime + id: UUID! """ - Is null (if `true` is specified) or is not null (if `false` is specified). + Image reference this build produced (registry host/repository:tag; NULL when the build produced no image) """ - isNull: Boolean - - """Less than the specified value.""" - lessThan: ConstructiveInternalTypeImage - - """Less than or equal to the specified value.""" - lessThanOrEqualTo: ConstructiveInternalTypeImage + imageRef: String - """Equal to the specified value, treating null like an ordinary value.""" - notDistinctFrom: ConstructiveInternalTypeImage - - """Not equal to the specified value.""" - notEqualTo: ConstructiveInternalTypeImage + """app_jobs row running this build""" + jobId: BigInt - """Not included in the specified list.""" - notIn: [ConstructiveInternalTypeImage!] -} + """Build log object in storage; step rows slice it by byte range""" + logs: ConstructiveInternalTypeUpload -""" -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! + """Matrix shard identity; NULL for a non-matrix build""" + matrixKey: String - """ - Infra store commit for the current definition (stamped by the versioned trigger on every write) - """ - commitId: UUID + """Build detail (step results, durations, failure reason)""" + metadata: JSON - """Timestamp of preset creation""" - createdAt: Datetime! + """Reads a single `Proposal` that is related to this `Build`.""" + proposal: Proposal - """ - 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! + """Proposal this build checks (NULL for builds not tied to a proposal)""" + proposalId: UUID - """Human-readable description of the preset""" - description: String + """Ref this build built""" + ref: String - """Unique preset identifier""" - id: UUID! + """Reads a single `Repository` that is related to this `Build`.""" + repository: Repository - """ - What the definition seeds — the module option that resolves it (limit_defaults, trust_ladder, ...) - """ - kind: String! + """Repository this build is of""" + repositoryId: UUID! - """Human-readable preset name""" - label: String + """When the build began running""" + startedAt: Datetime - """ - Preset slug (unique per kind per scope); the preset's path in the infra tree is [content_preset, kind, slug] - """ - slug: String! + """Lifecycle: pending, running, succeeded, failed, cancelled""" + status: String! + updatedAt: Datetime + updatedByPrincipal: UUID - """ - Infra Merkle store holding this preset's history (stamped by the versioned trigger) - """ - storeId: UUID + """Reads a single `RepositoryWorkflow` that is related to this `Build`.""" + workflow: RepositoryWorkflow - """Timestamp of last modification""" - updatedAt: Datetime! + """Workflow whose firing produced this build (NULL for a manual build)""" + workflowId: UUID } -"""A connection to a list of `ContentPreset` values.""" -type ContentPresetConnection { +"""A connection to a list of `Build` values.""" +type BuildConnection { """ - A list of edges which contains the `ContentPreset` and cursor to aid in pagination. + A list of edges which contains the `Build` and cursor to aid in pagination. """ - edges: [ContentPresetEdge]! + edges: [BuildEdge]! - """A list of `ContentPreset` objects.""" - nodes: [ContentPreset]! + """A list of `Build` objects.""" + nodes: [Build]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `ContentPreset` you could get from the connection.""" + """The count of *all* `Build` you could get from the connection.""" totalCount: Int! } -"""A `ContentPreset` edge in the connection.""" -type ContentPresetEdge { +"""A `Build` edge in the connection.""" +type BuildEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `ContentPreset` at the end of the edge.""" - node: ContentPreset + """The `Build` at the end of the edge.""" + node: Build } """ -A filter to be used against `ContentPreset` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `Build` object types. All fields are combined with a logical ‘and.’ """ -input ContentPresetFilter { - """Filter by the object’s `active` field.""" - active: BooleanFilter +input BuildFilter { + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter """Checks for all expressions in this list.""" - and: [ContentPresetFilter!] + and: [BuildFilter!] - """Filter by the object’s `commitId` field.""" - commitId: UUIDFilter + """Filter by the object’s `attempt` field.""" + attempt: IntFilter + + """Filter by the object’s `commitSha` field.""" + commitSha: StringFilter + + """Filter by the object’s `conclusion` field.""" + conclusion: StringFilter """Filter by the object’s `createdAt` field.""" createdAt: DatetimeFilter - """Filter by the object’s `definition` field.""" - definition: JSONFilter + """Filter by the object’s `createdByPrincipal` field.""" + createdByPrincipal: UUIDFilter - """Filter by the object’s `description` field.""" - description: StringFilter + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `event` relation.""" + event: RepositoryEventFilter + + """A related `event` exists.""" + eventExists: Boolean + + """Filter by the object’s `eventId` field.""" + eventId: UUIDFilter + + """Filter by the object’s `finishedAt` field.""" + finishedAt: DatetimeFilter """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `kind` field.""" - kind: StringFilter + """Filter by the object’s `imageRef` field.""" + imageRef: StringFilter - """Filter by the object’s `label` field.""" - label: StringFilter + """Filter by the object’s `jobId` field.""" + jobId: BigIntFilter + + """Filter by the object’s `logs` field.""" + logs: ConstructiveInternalTypeUploadFilter + + """Filter by the object’s `matrixKey` field.""" + matrixKey: StringFilter + + """Filter by the object’s `metadata` field.""" + metadata: JSONFilter """Negates the expression.""" - not: ContentPresetFilter + not: BuildFilter """Checks for any expressions in this list.""" - or: [ContentPresetFilter!] + or: [BuildFilter!] - """Filter by the object’s `slug` field.""" - slug: StringFilter + """Filter by the object’s `proposal` relation.""" + proposal: ProposalFilter - """Filter by the object’s `storeId` field.""" - storeId: UUIDFilter + """A related `proposal` exists.""" + proposalExists: Boolean + + """Filter by the object’s `proposalId` field.""" + proposalId: UUIDFilter + + """Filter by the object’s `ref` field.""" + ref: StringFilter + + """Filter by the object’s `repository` relation.""" + repository: RepositoryFilter + + """Filter by the object’s `repositoryId` field.""" + repositoryId: UUIDFilter + + """Filter by the object’s `startedAt` field.""" + startedAt: DatetimeFilter + + """Filter by the object’s `status` field.""" + status: StringFilter """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 + """Filter by the object’s `updatedByPrincipal` field.""" + updatedByPrincipal: UUIDFilter + + """Filter by the object’s `workflow` relation.""" + workflow: RepositoryWorkflowFilter + """A related `workflow` exists.""" + workflowExists: Boolean + + """Filter by the object’s `workflowId` field.""" + workflowId: UUIDFilter +} + +"""An input for mutations affecting `Build`""" +input BuildInput { """ - Infra store commit for the current definition (stamped by the versioned trigger on every write) + Authenticated actor this build is attributed to; NULL only when no human actor was proven """ - commitId: UUID + actorId: UUID - """Timestamp of preset creation""" - createdAt: Datetime + """Retry attempt number for this workflow, commit, and matrix shard""" + attempt: Int + + """Commit this build built""" + commitSha: String """ - The seed document itself, in the shape the kind's seed function takes — the readily-cached head; history lives in the infra store + Verdict: NULL while pending/running, then success, failure, neutral, cancelled, skipped, timed_out, or action_required """ - definition: JSON! + conclusion: String + createdAt: Datetime + createdByPrincipal: UUID - """Human-readable description of the preset""" - description: String + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! - """Unique preset identifier""" + """Event that triggered this build (NULL for a manual build)""" + eventId: UUID + + """When the build reached a terminal status""" + finishedAt: Datetime id: UUID """ - What the definition seeds — the module option that resolves it (limit_defaults, trust_ladder, ...) + Image reference this build produced (registry host/repository:tag; NULL when the build produced no image) """ - kind: String! + imageRef: String - """Human-readable preset name""" - label: String + """app_jobs row running this build""" + jobId: BigInt - """ - Preset slug (unique per kind per scope); the preset's path in the infra tree is [content_preset, kind, slug] - """ - slug: String! + """Build log object in storage; step rows slice it by byte range""" + logs: ConstructiveInternalTypeUpload - """ - Infra Merkle store holding this preset's history (stamped by the versioned trigger) - """ - storeId: UUID + """Matrix shard identity; NULL for a non-matrix build""" + matrixKey: String - """Timestamp of last modification""" + """Build detail (step results, durations, failure reason)""" + metadata: JSON + + """Proposal this build checks (NULL for builds not tied to a proposal)""" + proposalId: UUID + + """Ref this build built""" + ref: String + + """Repository this build is of""" + repositoryId: UUID! + + """When the build began running""" + startedAt: Datetime + + """Lifecycle: pending, running, succeeded, failed, cancelled""" + status: String updatedAt: Datetime + updatedByPrincipal: UUID + + """Workflow whose firing produced this build (NULL for a manual build)""" + workflowId: UUID } -"""Methods to use when ordering `ContentPreset`.""" -enum ContentPresetOrderBy { - ACTIVE_ASC - ACTIVE_DESC - COMMIT_ID_ASC - COMMIT_ID_DESC +"""Methods to use when ordering `Build`.""" +enum BuildOrderBy { + ACTOR_ID_ASC + ACTOR_ID_DESC + ATTEMPT_ASC + ATTEMPT_DESC + COMMIT_SHA_ASC + COMMIT_SHA_DESC + CONCLUSION_ASC + CONCLUSION_DESC CREATED_AT_ASC CREATED_AT_DESC - DEFINITION_ASC - DEFINITION_DESC - DESCRIPTION_ASC - DESCRIPTION_DESC + CREATED_BY_PRINCIPAL_ASC + CREATED_BY_PRINCIPAL_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + EVENT_ID_ASC + EVENT_ID_DESC + FINISHED_AT_ASC + FINISHED_AT_DESC ID_ASC ID_DESC - KIND_ASC - KIND_DESC - LABEL_ASC - LABEL_DESC + IMAGE_REF_ASC + IMAGE_REF_DESC + JOB_ID_ASC + JOB_ID_DESC + LOGS_ASC + LOGS_DESC + MATRIX_KEY_ASC + MATRIX_KEY_DESC + METADATA_ASC + METADATA_DESC NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC - SLUG_ASC - SLUG_DESC - STORE_ID_ASC - STORE_ID_DESC + PROPOSAL_ID_ASC + PROPOSAL_ID_DESC + REF_ASC + REF_DESC + REPOSITORY_ID_ASC + REPOSITORY_ID_DESC + STARTED_AT_ASC + STARTED_AT_DESC + STATUS_ASC + STATUS_DESC UPDATED_AT_ASC UPDATED_AT_DESC + UPDATED_BY_PRINCIPAL_ASC + UPDATED_BY_PRINCIPAL_DESC + WORKFLOW_ID_ASC + WORKFLOW_ID_DESC } """ -Represents an update to a `ContentPreset`. Fields that are set will be updated. +Represents an update to a `Build`. Fields that are set will be updated. """ -input ContentPresetPatch { - """Whether this preset is selectable at provision time""" - active: Boolean - +input BuildPatch { """ - Infra store commit for the current definition (stamped by the versioned trigger on every write) + Authenticated actor this build is attributed to; NULL only when no human actor was proven """ - commitId: UUID + actorId: UUID - """Timestamp of preset creation""" - createdAt: Datetime + """Retry attempt number for this workflow, commit, and matrix shard""" + attempt: Int + + """Commit this build built""" + commitSha: String """ - The seed document itself, in the shape the kind's seed function takes — the readily-cached head; history lives in the infra store + Verdict: NULL while pending/running, then success, failure, neutral, cancelled, skipped, timed_out, or action_required """ - definition: JSON + conclusion: String + createdAt: Datetime + createdByPrincipal: UUID - """Human-readable description of the preset""" - description: String + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID - """Unique preset identifier""" + """Event that triggered this build (NULL for a manual build)""" + eventId: UUID + + """When the build reached a terminal status""" + finishedAt: Datetime id: UUID """ - What the definition seeds — the module option that resolves it (limit_defaults, trust_ladder, ...) + Image reference this build produced (registry host/repository:tag; NULL when the build produced no image) """ - kind: String + imageRef: String - """Human-readable preset name""" - label: String + """app_jobs row running this build""" + jobId: BigInt - """ - Preset slug (unique per kind per scope); the preset's path in the infra tree is [content_preset, kind, slug] - """ - slug: String + """Build log object in storage; step rows slice it by byte range""" + logs: ConstructiveInternalTypeUpload """ - Infra Merkle store holding this preset's history (stamped by the versioned trigger) + Upload for Build log object in storage; step rows slice it by byte range """ - storeId: UUID + logsUpload: Upload - """Timestamp of last modification""" - updatedAt: Datetime -} + """Matrix shard identity; NULL for a non-matrix build""" + matrixKey: String -"""All input for the `copyGraph` mutation.""" -input CopyGraphInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - graphId: UUID - name: String - scopeId: UUID -} + """Build detail (step results, durations, failure reason)""" + metadata: JSON -"""The output of our `copyGraph` mutation.""" -type CopyGraphPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String + """Proposal this build checks (NULL for builds not tied to a proposal)""" + proposalId: UUID - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - result: UUID -} + """Ref this build built""" + ref: String -"""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 + """Repository this build is of""" + repositoryId: UUID - """The `ContentPreset` to be created by this mutation.""" - contentPreset: ContentPresetInput! + """When the build began running""" + startedAt: Datetime + + """Lifecycle: pending, running, succeeded, failed, cancelled""" + status: String + updatedAt: Datetime + updatedByPrincipal: UUID + + """Workflow whose firing produced this build (NULL for a manual build)""" + workflowId: UUID } -"""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 +""" +Partitioned append-only step and test results of a build, keyed into its log object +""" +type BuildStep { + """Build these results belong to""" + buildId: UUID! - """The `ContentPreset` that was created by this mutation.""" - contentPreset: ContentPreset + """Acting principal (agent, API key, or user) who created this record""" + createdByPrincipal: UUID - """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 + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} + """Process exit code of a step (NULL for a test result)""" + exitCode: Int -"""All input for the create `DbPreset` mutation.""" -input CreateDbPresetInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String + """When this step or test finished""" + finishedAt: Datetime - """The `DbPreset` to be created by this mutation.""" - dbPreset: DbPresetInput! -} + """Unique identifier (uuidv7 provides temporal ordering)""" + id: UUID! -"""The output of our create `DbPreset` mutation.""" -type CreateDbPresetPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String + """What this row is: step, or test""" + kind: String! - """The `DbPreset` that was created by this mutation.""" - dbPreset: DbPreset + """Byte length of this row's output in the build log object""" + logBytes: BigInt - """An edge for our `DbPreset`. May be used by Relay 1.""" - dbPresetEdge( - """The method to use when ordering `DbPreset`.""" - orderBy: [DbPresetOrderBy!]! = [PRIMARY_KEY_ASC] - ): DbPresetEdge + """Byte offset of this row's output in the build log object""" + logOffset: BigInt - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} + """Step name, or the test's fully qualified name""" + name: String! + + """Sequence of the step that reported this test (NULL for a step itself)""" + parentSeq: Int + + """When the result was recorded (partition key)""" + recordedAt: Datetime! -"""All input for the create `FunctionApiBinding` mutation.""" -input CreateFunctionApiBindingInput { """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. + Position within the build, monotonically increasing across steps and their tests """ - clientMutationId: String + seq: Int! - """The `FunctionApiBinding` to be created by this mutation.""" - functionApiBinding: FunctionApiBindingInput! + """When this step or test began""" + startedAt: Datetime + + """Outcome: running, succeeded, failed, skipped, cancelled""" + status: String! + + """Parsed detail: failure message, assertion diff, counts, annotations""" + summary: JSON! } -"""The output of our create `FunctionApiBinding` mutation.""" -type CreateFunctionApiBindingPayload { +"""A connection to a list of `BuildStep` values.""" +type BuildStepConnection { """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. + A list of edges which contains the `BuildStep` and cursor to aid in pagination. """ - clientMutationId: String + edges: [BuildStepEdge]! - """The `FunctionApiBinding` that was created by this mutation.""" - functionApiBinding: FunctionApiBinding + """A list of `BuildStep` objects.""" + nodes: [BuildStep]! - """An edge for our `FunctionApiBinding`. May be used by Relay 1.""" - functionApiBindingEdge( - """The method to use when ordering `FunctionApiBinding`.""" - orderBy: [FunctionApiBindingOrderBy!]! = [PRIMARY_KEY_ASC] - ): FunctionApiBindingEdge + """Information to aid in pagination.""" + pageInfo: PageInfo! - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query + """The count of *all* `BuildStep` you could get from the connection.""" + totalCount: Int! } -"""All input for the create `FunctionCapabilityBinding` mutation.""" -input CreateFunctionCapabilityBindingInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String +"""A `BuildStep` edge in the connection.""" +type BuildStepEdge { + """A cursor for use in pagination.""" + cursor: Cursor - """The `FunctionCapabilityBinding` to be created by this mutation.""" - functionCapabilityBinding: FunctionCapabilityBindingInput! + """The `BuildStep` at the end of the edge.""" + node: BuildStep } -"""The output of our create `FunctionCapabilityBinding` mutation.""" -type CreateFunctionCapabilityBindingPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String +""" +A filter to be used against `BuildStep` object types. All fields are combined with a logical ‘and.’ +""" +input BuildStepFilter { + """Checks for all expressions in this list.""" + and: [BuildStepFilter!] - """The `FunctionCapabilityBinding` that was created by this mutation.""" - functionCapabilityBinding: FunctionCapabilityBinding + """Filter by the object’s `buildId` field.""" + buildId: UUIDFilter - """An edge for our `FunctionCapabilityBinding`. May be used by Relay 1.""" - functionCapabilityBindingEdge( - """The method to use when ordering `FunctionCapabilityBinding`.""" - orderBy: [FunctionCapabilityBindingOrderBy!]! = [PRIMARY_KEY_ASC] - ): FunctionCapabilityBindingEdge + """Filter by the object’s `createdByPrincipal` field.""" + createdByPrincipal: UUIDFilter - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter -"""All input for the create `FunctionDefinition` mutation.""" -input CreateFunctionDefinitionInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String + """Filter by the object’s `exitCode` field.""" + exitCode: IntFilter - """The `FunctionDefinition` to be created by this mutation.""" - functionDefinition: FunctionDefinitionInput! -} + """Filter by the object’s `finishedAt` field.""" + finishedAt: DatetimeFilter -"""The output of our create `FunctionDefinition` mutation.""" -type CreateFunctionDefinitionPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String + """Filter by the object’s `id` field.""" + id: UUIDFilter - """The `FunctionDefinition` that was created by this mutation.""" - functionDefinition: FunctionDefinition + """Filter by the object’s `kind` field.""" + kind: StringFilter - """An edge for our `FunctionDefinition`. May be used by Relay 1.""" - functionDefinitionEdge( - """The method to use when ordering `FunctionDefinition`.""" - orderBy: [FunctionDefinitionOrderBy!]! = [PRIMARY_KEY_ASC] - ): FunctionDefinitionEdge + """Filter by the object’s `logBytes` field.""" + logBytes: BigIntFilter - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} + """Filter by the object’s `logOffset` field.""" + logOffset: BigIntFilter -"""All input for the create `FunctionDeploymentEvent` mutation.""" -input CreateFunctionDeploymentEventInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String + """Filter by the object’s `name` field.""" + name: StringFilter - """The `FunctionDeploymentEvent` to be created by this mutation.""" - functionDeploymentEvent: FunctionDeploymentEventInput! -} + """Negates the expression.""" + not: BuildStepFilter -"""The output of our create `FunctionDeploymentEvent` mutation.""" -type CreateFunctionDeploymentEventPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String + """Checks for any expressions in this list.""" + or: [BuildStepFilter!] - """The `FunctionDeploymentEvent` that was created by this mutation.""" - functionDeploymentEvent: FunctionDeploymentEvent + """Filter by the object’s `parentSeq` field.""" + parentSeq: IntFilter - """An edge for our `FunctionDeploymentEvent`. May be used by Relay 1.""" - functionDeploymentEventEdge( - """The method to use when ordering `FunctionDeploymentEvent`.""" - orderBy: [FunctionDeploymentEventOrderBy!]! = [PRIMARY_KEY_ASC] - ): FunctionDeploymentEventEdge + """Filter by the object’s `recordedAt` field.""" + recordedAt: DatetimeFilter - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} + """Filter by the object’s `seq` field.""" + seq: IntFilter -"""All input for the create `FunctionDeployment` mutation.""" -input CreateFunctionDeploymentInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String + """Filter by the object’s `startedAt` field.""" + startedAt: DatetimeFilter - """The `FunctionDeployment` to be created by this mutation.""" - functionDeployment: FunctionDeploymentInput! + """Filter by the object’s `status` field.""" + status: StringFilter + + """Filter by the object’s `summary` field.""" + summary: JSONFilter } -"""The output of our create `FunctionDeployment` mutation.""" -type CreateFunctionDeploymentPayload { - """ - The 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 input for mutations affecting `BuildStep`""" +input BuildStepInput { + """Build these results belong to""" + buildId: UUID! - """The `FunctionDeployment` that was created by this mutation.""" - functionDeployment: FunctionDeployment + """Acting principal (agent, API key, or user) who created this record""" + createdByPrincipal: UUID - """An edge for our `FunctionDeployment`. May be used by Relay 1.""" - functionDeploymentEdge( - """The method to use when ordering `FunctionDeployment`.""" - orderBy: [FunctionDeploymentOrderBy!]! = [PRIMARY_KEY_ASC] - ): FunctionDeploymentEdge + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} + """Process exit code of a step (NULL for a test result)""" + exitCode: Int -"""All input for the create `FunctionExecutionLog` mutation.""" -input CreateFunctionExecutionLogInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String + """When this step or test finished""" + finishedAt: Datetime - """The `FunctionExecutionLog` to be created by this mutation.""" - functionExecutionLog: FunctionExecutionLogInput! -} + """Unique identifier (uuidv7 provides temporal ordering)""" + id: UUID -"""The output of our create `FunctionExecutionLog` mutation.""" -type CreateFunctionExecutionLogPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String + """What this row is: step, or test""" + kind: String - """The `FunctionExecutionLog` that was created by this mutation.""" - functionExecutionLog: FunctionExecutionLog + """Byte length of this row's output in the build log object""" + logBytes: BigInt - """An edge for our `FunctionExecutionLog`. May be used by Relay 1.""" - functionExecutionLogEdge( - """The method to use when ordering `FunctionExecutionLog`.""" - orderBy: [FunctionExecutionLogOrderBy!]! = [PRIMARY_KEY_ASC] - ): FunctionExecutionLogEdge + """Byte offset of this row's output in the build log object""" + logOffset: BigInt - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} + """Step name, or the test's fully qualified name""" + name: String! -"""All input for the create `FunctionGraphCommit` mutation.""" -input CreateFunctionGraphCommitInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String + """Sequence of the step that reported this test (NULL for a step itself)""" + parentSeq: Int - """The `FunctionGraphCommit` to be created by this mutation.""" - functionGraphCommit: FunctionGraphCommitInput! -} + """When the result was recorded (partition key)""" + recordedAt: Datetime -"""The output of our create `FunctionGraphCommit` mutation.""" -type CreateFunctionGraphCommitPayload { """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. + Position within the build, monotonically increasing across steps and their tests """ - clientMutationId: String + seq: Int! - """The `FunctionGraphCommit` that was created by this mutation.""" - functionGraphCommit: FunctionGraphCommit + """When this step or test began""" + startedAt: Datetime - """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 + """Outcome: running, succeeded, failed, skipped, cancelled""" + status: String - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query + """Parsed detail: failure message, assertion diff, counts, annotations""" + summary: JSON } -"""All input for the create `FunctionGraphExecution` mutation.""" -input CreateFunctionGraphExecutionInput { - """ - An arbitrary 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 `FunctionGraphExecution` to be created by this mutation.""" - functionGraphExecution: FunctionGraphExecutionInput! +"""Methods to use when ordering `BuildStep`.""" +enum BuildStepOrderBy { + BUILD_ID_ASC + BUILD_ID_DESC + CREATED_BY_PRINCIPAL_ASC + CREATED_BY_PRINCIPAL_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + EXIT_CODE_ASC + EXIT_CODE_DESC + FINISHED_AT_ASC + FINISHED_AT_DESC + ID_ASC + ID_DESC + KIND_ASC + KIND_DESC + LOG_BYTES_ASC + LOG_BYTES_DESC + LOG_OFFSET_ASC + LOG_OFFSET_DESC + NAME_ASC + NAME_DESC + NATURAL + PARENT_SEQ_ASC + PARENT_SEQ_DESC + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + RECORDED_AT_ASC + RECORDED_AT_DESC + SEQ_ASC + SEQ_DESC + STARTED_AT_ASC + STARTED_AT_DESC + STATUS_ASC + STATUS_DESC + SUMMARY_ASC + SUMMARY_DESC } -"""All input for the create `FunctionGraphExecutionNodeState` mutation.""" -input CreateFunctionGraphExecutionNodeStateInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String +""" +Represents an update to a `BuildStep`. Fields that are set will be updated. +""" +input BuildStepPatch { + """Build these results belong to""" + buildId: UUID - """The `FunctionGraphExecutionNodeState` to be created by this mutation.""" - functionGraphExecutionNodeState: FunctionGraphExecutionNodeStateInput! -} + """Acting principal (agent, API key, or user) who created this record""" + createdByPrincipal: UUID -"""The output of our create `FunctionGraphExecutionNodeState` mutation.""" -type CreateFunctionGraphExecutionNodeStatePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID - """ - The `FunctionGraphExecutionNodeState` that was created by this mutation. - """ - functionGraphExecutionNodeState: FunctionGraphExecutionNodeState + """Process exit code of a step (NULL for a test result)""" + exitCode: Int - """ - An edge for our `FunctionGraphExecutionNodeState`. May be used by Relay 1. - """ - functionGraphExecutionNodeStateEdge( - """The method to use when ordering `FunctionGraphExecutionNodeState`.""" - orderBy: [FunctionGraphExecutionNodeStateOrderBy!]! = [PRIMARY_KEY_ASC] - ): FunctionGraphExecutionNodeStateEdge + """When this step or test finished""" + finishedAt: Datetime - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} + """Unique identifier (uuidv7 provides temporal ordering)""" + id: UUID -"""All input for the create `FunctionGraphExecutionOutput` mutation.""" -input CreateFunctionGraphExecutionOutputInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String + """What this row is: step, or test""" + kind: String - """The `FunctionGraphExecutionOutput` to be created by this mutation.""" - functionGraphExecutionOutput: FunctionGraphExecutionOutputInput! -} + """Byte length of this row's output in the build log object""" + logBytes: BigInt -"""The output of our create `FunctionGraphExecutionOutput` mutation.""" -type CreateFunctionGraphExecutionOutputPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String + """Byte offset of this row's output in the build log object""" + logOffset: BigInt - """The `FunctionGraphExecutionOutput` that was created by this mutation.""" - functionGraphExecutionOutput: FunctionGraphExecutionOutput + """Step name, or the test's fully qualified name""" + name: String - """ - An edge for our `FunctionGraphExecutionOutput`. May be used by Relay 1. - """ - functionGraphExecutionOutputEdge( - """The method to use when ordering `FunctionGraphExecutionOutput`.""" - orderBy: [FunctionGraphExecutionOutputOrderBy!]! = [PRIMARY_KEY_ASC] - ): FunctionGraphExecutionOutputEdge + """Sequence of the step that reported this test (NULL for a step itself)""" + parentSeq: Int - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} + """When the result was recorded (partition key)""" + recordedAt: Datetime -"""The output of our create `FunctionGraphExecution` mutation.""" -type CreateFunctionGraphExecutionPayload { """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. + Position within the build, monotonically increasing across steps and their tests """ - clientMutationId: String + seq: Int - """The `FunctionGraphExecution` that was created by this mutation.""" - functionGraphExecution: FunctionGraphExecution + """When this step or test began""" + startedAt: Datetime - """An edge for our `FunctionGraphExecution`. May be used by Relay 1.""" - functionGraphExecutionEdge( - """The method to use when ordering `FunctionGraphExecution`.""" - orderBy: [FunctionGraphExecutionOrderBy!]! = [PRIMARY_KEY_ASC] - ): FunctionGraphExecutionEdge + """Outcome: running, succeeded, failed, skipped, cancelled""" + status: String - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query + """Parsed detail: failure message, assertion diff, counts, annotations""" + summary: JSON } -"""All input for the `createFunctionGraph` mutation.""" -input CreateFunctionGraphInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - context: String +""" +Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST +""" +type BuilderBinding { + createdAt: Datetime createdBy: UUID - definitionsCommitId: UUID - description: String - name: String - scopeId: UUID -} - -"""All input for the create `FunctionGraphObject` mutation.""" -input CreateFunctionGraphObjectInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String + createdByPrincipal: UUID - """The `FunctionGraphObject` to be created by this mutation.""" - functionGraphObject: FunctionGraphObjectInput! -} + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! + id: UUID! -"""The output of our create `FunctionGraphObject` mutation.""" -type CreateFunctionGraphObjectPayload { """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. + BuildKit resource installation serving this binding; may belong to another resource scope """ - clientMutationId: String + installationId: UUID! - """The `FunctionGraphObject` that was created by this mutation.""" - functionGraphObject: FunctionGraphObject + """Most recent projection failure""" + lastError: String - """An edge for our `FunctionGraphObject`. May be used by Relay 1.""" - functionGraphObjectEdge( - """The method to use when ordering `FunctionGraphObject`.""" - orderBy: [FunctionGraphObjectOrderBy!]! = [PRIMARY_KEY_ASC] - ): FunctionGraphObjectEdge + """Reconciler detail (projection timestamps and diagnostics)""" + metadata: JSON - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} + """Reads a single `Namespace` that is related to this `BuilderBinding`.""" + namespace: Namespace -"""The output of our `createFunctionGraph` mutation.""" -type CreateFunctionGraphPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String + """Namespace whose builds use this BuildKit installation""" + namespaceId: UUID! """ - Our root query field type. Allows us to run any query from our mutation payload. + BuildKit address last projected into the namespace (NULL = never projected) """ - query: Query - result: UUID -} + observedHost: String -"""All input for the create `FunctionGraphRef` mutation.""" -input CreateFunctionGraphRefInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String + """Lane this binding applies to (NULL = the scope's default lane)""" + realm: String - """The `FunctionGraphRef` to be created by this mutation.""" - functionGraphRef: FunctionGraphRefInput! + """Projection state of BUILDKIT_HOST: pending, active, failed""" + status: String! + updatedAt: Datetime + updatedBy: UUID + updatedByPrincipal: UUID } -"""The output of our create `FunctionGraphRef` mutation.""" -type CreateFunctionGraphRefPayload { +"""A connection to a list of `BuilderBinding` values.""" +type BuilderBindingConnection { """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. + A list of edges which contains the `BuilderBinding` and cursor to aid in pagination. """ - clientMutationId: String + edges: [BuilderBindingEdge]! - """The `FunctionGraphRef` that was created by this mutation.""" - functionGraphRef: FunctionGraphRef + """A list of `BuilderBinding` objects.""" + nodes: [BuilderBinding]! - """An edge for our `FunctionGraphRef`. May be used by Relay 1.""" - functionGraphRefEdge( - """The method to use when ordering `FunctionGraphRef`.""" - orderBy: [FunctionGraphRefOrderBy!]! = [PRIMARY_KEY_ASC] - ): FunctionGraphRefEdge + """Information to aid in pagination.""" + pageInfo: PageInfo! - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query + """The count of *all* `BuilderBinding` you could get from the connection.""" + totalCount: Int! } -"""All input for the create `FunctionGraphStore` mutation.""" -input CreateFunctionGraphStoreInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String +"""A `BuilderBinding` edge in the connection.""" +type BuilderBindingEdge { + """A cursor for use in pagination.""" + cursor: Cursor - """The `FunctionGraphStore` to be created by this mutation.""" - functionGraphStore: FunctionGraphStoreInput! + """The `BuilderBinding` at the end of the edge.""" + node: BuilderBinding } -"""The output of our create `FunctionGraphStore` mutation.""" -type CreateFunctionGraphStorePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `FunctionGraphStore` that was created by this mutation.""" - functionGraphStore: FunctionGraphStore - - """An edge for our `FunctionGraphStore`. May be used by Relay 1.""" - functionGraphStoreEdge( - """The method to use when ordering `FunctionGraphStore`.""" - orderBy: [FunctionGraphStoreOrderBy!]! = [PRIMARY_KEY_ASC] - ): FunctionGraphStoreEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} +""" +A filter to be used against `BuilderBinding` object types. All fields are combined with a logical ‘and.’ +""" +input BuilderBindingFilter { + """Checks for all expressions in this list.""" + and: [BuilderBindingFilter!] -"""All input for the create `FunctionInvocationAttempt` mutation.""" -input CreateFunctionInvocationAttemptInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter - """The `FunctionInvocationAttempt` to be created by this mutation.""" - functionInvocationAttempt: FunctionInvocationAttemptInput! -} + """Filter by the object’s `createdBy` field.""" + createdBy: UUIDFilter -"""The output of our create `FunctionInvocationAttempt` mutation.""" -type CreateFunctionInvocationAttemptPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String + """Filter by the object’s `createdByPrincipal` field.""" + createdByPrincipal: UUIDFilter - """The `FunctionInvocationAttempt` that was created by this mutation.""" - functionInvocationAttempt: FunctionInvocationAttempt + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter - """An edge for our `FunctionInvocationAttempt`. May be used by Relay 1.""" - functionInvocationAttemptEdge( - """The method to use when ordering `FunctionInvocationAttempt`.""" - orderBy: [FunctionInvocationAttemptOrderBy!]! = [PRIMARY_KEY_ASC] - ): FunctionInvocationAttemptEdge + """Filter by the object’s `id` field.""" + id: UUIDFilter - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} + """Filter by the object’s `installationId` field.""" + installationId: UUIDFilter -"""All input for the create `FunctionInvocation` mutation.""" -input CreateFunctionInvocationInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String + """Filter by the object’s `lastError` field.""" + lastError: StringFilter - """The `FunctionInvocation` to be created by this mutation.""" - functionInvocation: FunctionInvocationInput! -} + """Filter by the object’s `metadata` field.""" + metadata: JSONFilter -"""The output of our create `FunctionInvocation` mutation.""" -type CreateFunctionInvocationPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String + """Filter by the object’s `namespace` relation.""" + namespace: NamespaceFilter - """The `FunctionInvocation` that was created by this mutation.""" - functionInvocation: FunctionInvocation + """Filter by the object’s `namespaceId` field.""" + namespaceId: UUIDFilter - """An edge for our `FunctionInvocation`. May be used by Relay 1.""" - functionInvocationEdge( - """The method to use when ordering `FunctionInvocation`.""" - orderBy: [FunctionInvocationOrderBy!]! = [PRIMARY_KEY_ASC] - ): FunctionInvocationEdge + """Negates the expression.""" + not: BuilderBindingFilter - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} + """Filter by the object’s `observedHost` field.""" + observedHost: StringFilter -"""All input for the create `InfraCommit` mutation.""" -input CreateInfraCommitInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String + """Checks for any expressions in this list.""" + or: [BuilderBindingFilter!] - """The `InfraCommit` to be created by this mutation.""" - infraCommit: InfraCommitInput! -} + """Filter by the object’s `realm` field.""" + realm: StringFilter -"""The output of our create `InfraCommit` mutation.""" -type CreateInfraCommitPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String + """Filter by the object’s `status` field.""" + status: StringFilter - """The `InfraCommit` that was created by this mutation.""" - infraCommit: InfraCommit + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter - """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 + """Filter by the object’s `updatedBy` field.""" + updatedBy: UUIDFilter - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query + """Filter by the object’s `updatedByPrincipal` field.""" + updatedByPrincipal: UUIDFilter } -"""All input for the create `InfraObject` mutation.""" -input CreateInfraObjectInput { - """ - An arbitrary 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 input for mutations affecting `BuilderBinding`""" +input BuilderBindingInput { + createdAt: Datetime + createdBy: UUID + createdByPrincipal: UUID - """The `InfraObject` to be created by this mutation.""" - infraObject: InfraObjectInput! -} + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! + id: UUID -"""The output of our create `InfraObject` mutation.""" -type CreateInfraObjectPayload { """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. + BuildKit resource installation serving this binding; may belong to another resource scope """ - clientMutationId: String + installationId: UUID! - """The `InfraObject` that was created by this mutation.""" - infraObject: InfraObject + """Most recent projection failure""" + lastError: String - """An edge for our `InfraObject`. May be used by Relay 1.""" - infraObjectEdge( - """The method to use when ordering `InfraObject`.""" - orderBy: [InfraObjectOrderBy!]! = [PRIMARY_KEY_ASC] - ): InfraObjectEdge + """Reconciler detail (projection timestamps and diagnostics)""" + metadata: JSON - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} + """Namespace whose builds use this BuildKit installation""" + namespaceId: UUID! -"""All input for the create `InfraRef` mutation.""" -input CreateInfraRefInput { """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. + BuildKit address last projected into the namespace (NULL = never projected) """ - clientMutationId: String + observedHost: String - """The `InfraRef` to be created by this mutation.""" - infraRef: InfraRefInput! -} + """Lane this binding applies to (NULL = the scope's default lane)""" + realm: String -"""The output of our create `InfraRef` mutation.""" -type CreateInfraRefPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String + """Projection state of BUILDKIT_HOST: pending, active, failed""" + status: String + updatedAt: Datetime + updatedBy: UUID + updatedByPrincipal: UUID +} - """The `InfraRef` that was created by this mutation.""" - infraRef: InfraRef - - """An edge for our `InfraRef`. May be used by Relay 1.""" - infraRefEdge( - """The method to use when ordering `InfraRef`.""" - orderBy: [InfraRefOrderBy!]! = [PRIMARY_KEY_ASC] - ): InfraRefEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query +"""Methods to use when ordering `BuilderBinding`.""" +enum BuilderBindingOrderBy { + CREATED_AT_ASC + CREATED_AT_DESC + CREATED_BY_ASC + CREATED_BY_DESC + CREATED_BY_PRINCIPAL_ASC + CREATED_BY_PRINCIPAL_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + ID_ASC + ID_DESC + INSTALLATION_ID_ASC + INSTALLATION_ID_DESC + LAST_ERROR_ASC + LAST_ERROR_DESC + METADATA_ASC + METADATA_DESC + NAMESPACE_ID_ASC + NAMESPACE_ID_DESC + NATURAL + OBSERVED_HOST_ASC + OBSERVED_HOST_DESC + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + REALM_ASC + REALM_DESC + STATUS_ASC + STATUS_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + UPDATED_BY_ASC + UPDATED_BY_DESC + UPDATED_BY_PRINCIPAL_ASC + UPDATED_BY_PRINCIPAL_DESC } -"""All input for the create `InfraStore` mutation.""" -input CreateInfraStoreInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String +""" +Represents an update to a `BuilderBinding`. Fields that are set will be updated. +""" +input BuilderBindingPatch { + createdAt: Datetime + createdBy: UUID + createdByPrincipal: UUID - """The `InfraStore` to be created by this mutation.""" - infraStore: InfraStoreInput! -} + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID + id: UUID -"""The output of our create `InfraStore` mutation.""" -type CreateInfraStorePayload { """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. + BuildKit resource installation serving this binding; may belong to another resource scope """ - clientMutationId: String + installationId: UUID - """The `InfraStore` that was created by this mutation.""" - infraStore: InfraStore + """Most recent projection failure""" + lastError: String - """An edge for our `InfraStore`. May be used by Relay 1.""" - infraStoreEdge( - """The method to use when ordering `InfraStore`.""" - orderBy: [InfraStoreOrderBy!]! = [PRIMARY_KEY_ASC] - ): InfraStoreEdge + """Reconciler detail (projection timestamps and diagnostics)""" + metadata: JSON - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} + """Namespace whose builds use this BuildKit installation""" + namespaceId: UUID -"""All input for the create `IntegrationProvider` mutation.""" -input CreateIntegrationProviderInput { """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. + BuildKit address last projected into the namespace (NULL = never projected) """ - clientMutationId: String + observedHost: String - """The `IntegrationProvider` to be created by this mutation.""" - integrationProvider: IntegrationProviderInput! + """Lane this binding applies to (NULL = the scope's default lane)""" + realm: String + + """Projection state of BUILDKIT_HOST: pending, active, failed""" + status: String + updatedAt: Datetime + updatedBy: UUID + updatedByPrincipal: UUID } -"""The output of our create `IntegrationProvider` mutation.""" -type CreateIntegrationProviderPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String +scalar ConstructiveInternalTypeImage - """The `IntegrationProvider` that was created by this mutation.""" - integrationProvider: IntegrationProvider +""" +A filter to be used against ConstructiveInternalTypeImage fields. All fields are combined with a logical ‘and.’ +""" +input ConstructiveInternalTypeImageFilter { + """Contained by the specified JSON.""" + containedBy: ConstructiveInternalTypeImage - """An edge for our `IntegrationProvider`. May be used by Relay 1.""" - integrationProviderEdge( - """The method to use when ordering `IntegrationProvider`.""" - orderBy: [IntegrationProviderOrderBy!]! = [PRIMARY_KEY_ASC] - ): IntegrationProviderEdge + """Contains the specified JSON.""" + contains: ConstructiveInternalTypeImage - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} + """Contains all of the specified keys.""" + containsAllKeys: [String!] -"""All input for the create `NamespaceEvent` mutation.""" -input CreateNamespaceEventInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String + """Contains any of the specified keys.""" + containsAnyKeys: [String!] - """The `NamespaceEvent` to be created by this mutation.""" - namespaceEvent: NamespaceEventInput! -} + """Contains the specified key.""" + containsKey: String -"""The output of our create `NamespaceEvent` mutation.""" -type CreateNamespaceEventPayload { """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. + Not equal to the specified value, treating null like an ordinary value. """ - clientMutationId: String - - """The `NamespaceEvent` that was created by this mutation.""" - namespaceEvent: NamespaceEvent + distinctFrom: ConstructiveInternalTypeImage - """An edge for our `NamespaceEvent`. May be used by Relay 1.""" - namespaceEventEdge( - """The method to use when ordering `NamespaceEvent`.""" - orderBy: [NamespaceEventOrderBy!]! = [PRIMARY_KEY_ASC] - ): NamespaceEventEdge + """Equal to the specified value.""" + equalTo: ConstructiveInternalTypeImage - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} + """Greater than the specified value.""" + greaterThan: ConstructiveInternalTypeImage -"""All input for the create `Namespace` mutation.""" -input CreateNamespaceInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: ConstructiveInternalTypeImage - """The `Namespace` to be created by this mutation.""" - namespace: NamespaceInput! -} + """Included in the specified list.""" + in: [ConstructiveInternalTypeImage!] -"""The output of our create `Namespace` mutation.""" -type CreateNamespacePayload { """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. + Is null (if `true` is specified) or is not null (if `false` is specified). """ - clientMutationId: String + isNull: Boolean - """The `Namespace` that was created by this mutation.""" - namespace: Namespace + """Less than the specified value.""" + lessThan: ConstructiveInternalTypeImage - """An edge for our `Namespace`. May be used by Relay 1.""" - namespaceEdge( - """The method to use when ordering `Namespace`.""" - orderBy: [NamespaceOrderBy!]! = [PRIMARY_KEY_ASC] - ): NamespaceEdge + """Less than or equal to the specified value.""" + lessThanOrEqualTo: ConstructiveInternalTypeImage - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: ConstructiveInternalTypeImage -"""All input for the create `PlatformFunctionApiBinding` mutation.""" -input CreatePlatformFunctionApiBindingInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String + """Not equal to the specified value.""" + notEqualTo: ConstructiveInternalTypeImage - """The `PlatformFunctionApiBinding` to be created by this mutation.""" - platformFunctionApiBinding: PlatformFunctionApiBindingInput! + """Not included in the specified list.""" + notIn: [ConstructiveInternalTypeImage!] } -"""The output of our create `PlatformFunctionApiBinding` mutation.""" -type CreatePlatformFunctionApiBindingPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String +scalar ConstructiveInternalTypeUpload - """The `PlatformFunctionApiBinding` that was created by this mutation.""" - platformFunctionApiBinding: PlatformFunctionApiBinding +""" +A filter to be used against ConstructiveInternalTypeUpload fields. All fields are combined with a logical ‘and.’ +""" +input ConstructiveInternalTypeUploadFilter { + """Contained by the specified JSON.""" + containedBy: ConstructiveInternalTypeUpload - """An edge for our `PlatformFunctionApiBinding`. May be used by Relay 1.""" - platformFunctionApiBindingEdge( - """The method to use when ordering `PlatformFunctionApiBinding`.""" - orderBy: [PlatformFunctionApiBindingOrderBy!]! = [PRIMARY_KEY_ASC] - ): PlatformFunctionApiBindingEdge + """Contains the specified JSON.""" + contains: ConstructiveInternalTypeUpload - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} + """Contains all of the specified keys.""" + containsAllKeys: [String!] -"""All input for the create `PlatformFunctionCapabilityBinding` mutation.""" -input CreatePlatformFunctionCapabilityBindingInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String + """Contains any of the specified keys.""" + containsAnyKeys: [String!] - """ - The `PlatformFunctionCapabilityBinding` to be created by this mutation. - """ - platformFunctionCapabilityBinding: PlatformFunctionCapabilityBindingInput! -} + """Contains the specified key.""" + containsKey: String -"""The output of our create `PlatformFunctionCapabilityBinding` mutation.""" -type CreatePlatformFunctionCapabilityBindingPayload { """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. + Not equal to the specified value, treating null like an ordinary value. """ - clientMutationId: String + distinctFrom: ConstructiveInternalTypeUpload - """ - The `PlatformFunctionCapabilityBinding` that was created by this mutation. - """ - platformFunctionCapabilityBinding: PlatformFunctionCapabilityBinding + """Equal to the specified value.""" + equalTo: ConstructiveInternalTypeUpload - """ - An edge for our `PlatformFunctionCapabilityBinding`. May be used by Relay 1. - """ - platformFunctionCapabilityBindingEdge( - """The method to use when ordering `PlatformFunctionCapabilityBinding`.""" - orderBy: [PlatformFunctionCapabilityBindingOrderBy!]! = [PRIMARY_KEY_ASC] - ): PlatformFunctionCapabilityBindingEdge + """Greater than the specified value.""" + greaterThan: ConstructiveInternalTypeUpload - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: ConstructiveInternalTypeUpload + + """Included in the specified list.""" + in: [ConstructiveInternalTypeUpload!] -"""All input for the create `PlatformFunctionDefinition` mutation.""" -input CreatePlatformFunctionDefinitionInput { """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. + Is null (if `true` is specified) or is not null (if `false` is specified). """ - clientMutationId: String + isNull: Boolean - """The `PlatformFunctionDefinition` to be created by this mutation.""" - platformFunctionDefinition: PlatformFunctionDefinitionInput! -} + """Less than the specified value.""" + lessThan: ConstructiveInternalTypeUpload -"""The output of our create `PlatformFunctionDefinition` mutation.""" -type CreatePlatformFunctionDefinitionPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String + """Less than or equal to the specified value.""" + lessThanOrEqualTo: ConstructiveInternalTypeUpload - """The `PlatformFunctionDefinition` that was created by this mutation.""" - platformFunctionDefinition: PlatformFunctionDefinition + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: ConstructiveInternalTypeUpload - """An edge for our `PlatformFunctionDefinition`. May be used by Relay 1.""" - platformFunctionDefinitionEdge( - """The method to use when ordering `PlatformFunctionDefinition`.""" - orderBy: [PlatformFunctionDefinitionOrderBy!]! = [PRIMARY_KEY_ASC] - ): PlatformFunctionDefinitionEdge + """Not equal to the specified value.""" + notEqualTo: ConstructiveInternalTypeUpload - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query + """Not included in the specified list.""" + notIn: [ConstructiveInternalTypeUpload!] } -"""All input for the create `PlatformFunctionDeploymentEvent` mutation.""" -input CreatePlatformFunctionDeploymentEventInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String +""" +A filter to be used against ConstructiveInternalTypeUpload List fields. All fields are combined with a logical ‘and.’ +""" +input ConstructiveInternalTypeUploadListFilter { + """Any array item is equal to the specified value.""" + anyEqualTo: ConstructiveInternalTypeUpload - """The `PlatformFunctionDeploymentEvent` to be created by this mutation.""" - platformFunctionDeploymentEvent: PlatformFunctionDeploymentEventInput! -} + """Any array item is greater than the specified value.""" + anyGreaterThan: ConstructiveInternalTypeUpload -"""The output of our create `PlatformFunctionDeploymentEvent` mutation.""" -type CreatePlatformFunctionDeploymentEventPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String + """Any array item is greater than or equal to the specified value.""" + anyGreaterThanOrEqualTo: ConstructiveInternalTypeUpload - """ - The `PlatformFunctionDeploymentEvent` that was created by this mutation. - """ - platformFunctionDeploymentEvent: PlatformFunctionDeploymentEvent + """Any array item is less than the specified value.""" + anyLessThan: ConstructiveInternalTypeUpload - """ - An edge for our `PlatformFunctionDeploymentEvent`. May be used by Relay 1. - """ - platformFunctionDeploymentEventEdge( - """The method to use when ordering `PlatformFunctionDeploymentEvent`.""" - orderBy: [PlatformFunctionDeploymentEventOrderBy!]! = [PRIMARY_KEY_ASC] - ): PlatformFunctionDeploymentEventEdge + """Any array item is less than or equal to the specified value.""" + anyLessThanOrEqualTo: ConstructiveInternalTypeUpload - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} + """Any array item is not equal to the specified value.""" + anyNotEqualTo: ConstructiveInternalTypeUpload -"""All input for the create `PlatformFunctionDeployment` mutation.""" -input CreatePlatformFunctionDeploymentInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String + """Contained by the specified list of values.""" + containedBy: [ConstructiveInternalTypeUpload] - """The `PlatformFunctionDeployment` to be created by this mutation.""" - platformFunctionDeployment: PlatformFunctionDeploymentInput! -} + """Contains the specified list of values.""" + contains: [ConstructiveInternalTypeUpload] -"""The output of our create `PlatformFunctionDeployment` mutation.""" -type CreatePlatformFunctionDeploymentPayload { """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. + Not equal to the specified value, treating null like an ordinary value. """ - clientMutationId: String + distinctFrom: [ConstructiveInternalTypeUpload] - """The `PlatformFunctionDeployment` that was created by this mutation.""" - platformFunctionDeployment: PlatformFunctionDeployment + """Equal to the specified value.""" + equalTo: [ConstructiveInternalTypeUpload] - """An edge for our `PlatformFunctionDeployment`. May be used by Relay 1.""" - platformFunctionDeploymentEdge( - """The method to use when ordering `PlatformFunctionDeployment`.""" - orderBy: [PlatformFunctionDeploymentOrderBy!]! = [PRIMARY_KEY_ASC] - ): PlatformFunctionDeploymentEdge + """Greater than the specified value.""" + greaterThan: [ConstructiveInternalTypeUpload] - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: [ConstructiveInternalTypeUpload] -"""All input for the create `PlatformFunctionExecutionLog` mutation.""" -input CreatePlatformFunctionExecutionLogInput { """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. + Is null (if `true` is specified) or is not null (if `false` is specified). """ - clientMutationId: String + isNull: Boolean - """The `PlatformFunctionExecutionLog` to be created by this mutation.""" - platformFunctionExecutionLog: PlatformFunctionExecutionLogInput! -} + """Less than the specified value.""" + lessThan: [ConstructiveInternalTypeUpload] -"""The output of our create `PlatformFunctionExecutionLog` mutation.""" -type CreatePlatformFunctionExecutionLogPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String + """Less than or equal to the specified value.""" + lessThanOrEqualTo: [ConstructiveInternalTypeUpload] - """The `PlatformFunctionExecutionLog` that was created by this mutation.""" - platformFunctionExecutionLog: PlatformFunctionExecutionLog + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: [ConstructiveInternalTypeUpload] - """ - An edge for our `PlatformFunctionExecutionLog`. May be used by Relay 1. - """ - platformFunctionExecutionLogEdge( - """The method to use when ordering `PlatformFunctionExecutionLog`.""" - orderBy: [PlatformFunctionExecutionLogOrderBy!]! = [PRIMARY_KEY_ASC] - ): PlatformFunctionExecutionLogEdge + """Not equal to the specified value.""" + notEqualTo: [ConstructiveInternalTypeUpload] - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query + """Overlaps the specified list of values.""" + overlaps: [ConstructiveInternalTypeUpload] } -"""All input for the create `PlatformFunctionInvocationAttempt` mutation.""" -input CreatePlatformFunctionInvocationAttemptInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String +""" +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! """ - The `PlatformFunctionInvocationAttempt` to be created by this mutation. + Infra store commit for the current definition (stamped by the versioned trigger on every write) """ - platformFunctionInvocationAttempt: PlatformFunctionInvocationAttemptInput! -} + commitId: UUID -"""The output of our create `PlatformFunctionInvocationAttempt` mutation.""" -type CreatePlatformFunctionInvocationAttemptPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String + """Timestamp of preset creation""" + createdAt: Datetime! """ - The `PlatformFunctionInvocationAttempt` that was created by this mutation. + The seed document itself, in the shape the kind's seed function takes — the readily-cached head; history lives in the infra store """ - platformFunctionInvocationAttempt: PlatformFunctionInvocationAttempt + definition: JSON! + + """Human-readable description of the preset""" + description: String + + """Unique preset identifier""" + id: UUID! """ - An edge for our `PlatformFunctionInvocationAttempt`. May be used by Relay 1. + What the definition seeds — the module option that resolves it (limit_defaults, trust_ladder, ...) """ - platformFunctionInvocationAttemptEdge( - """The method to use when ordering `PlatformFunctionInvocationAttempt`.""" - orderBy: [PlatformFunctionInvocationAttemptOrderBy!]! = [PRIMARY_KEY_ASC] - ): PlatformFunctionInvocationAttemptEdge + kind: String! + + """Human-readable preset name""" + label: String """ - Our root query field type. Allows us to run any query from our mutation payload. + Preset slug (unique per kind per scope); the preset's path in the infra tree is [content_preset, kind, slug] """ - query: Query -} + slug: String! -"""All input for the create `PlatformFunctionInvocation` mutation.""" -input CreatePlatformFunctionInvocationInput { """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. + Infra Merkle store holding this preset's history (stamped by the versioned trigger) """ - clientMutationId: String + storeId: UUID - """The `PlatformFunctionInvocation` to be created by this mutation.""" - platformFunctionInvocation: PlatformFunctionInvocationInput! + """Timestamp of last modification""" + updatedAt: Datetime! } -"""The output of our create `PlatformFunctionInvocation` mutation.""" -type CreatePlatformFunctionInvocationPayload { +"""A connection to a list of `ContentPreset` values.""" +type ContentPresetConnection { """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. + A list of edges which contains the `ContentPreset` and cursor to aid in pagination. """ - clientMutationId: String + edges: [ContentPresetEdge]! - """The `PlatformFunctionInvocation` that was created by this mutation.""" - platformFunctionInvocation: PlatformFunctionInvocation + """A list of `ContentPreset` objects.""" + nodes: [ContentPreset]! - """An edge for our `PlatformFunctionInvocation`. May be used by Relay 1.""" - platformFunctionInvocationEdge( - """The method to use when ordering `PlatformFunctionInvocation`.""" - orderBy: [PlatformFunctionInvocationOrderBy!]! = [PRIMARY_KEY_ASC] - ): PlatformFunctionInvocationEdge + """Information to aid in pagination.""" + pageInfo: PageInfo! - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query + """The count of *all* `ContentPreset` you could get from the connection.""" + totalCount: Int! } -"""All input for the create `PlatformInfraCommit` mutation.""" -input CreatePlatformInfraCommitInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String +"""A `ContentPreset` edge in the connection.""" +type ContentPresetEdge { + """A cursor for use in pagination.""" + cursor: Cursor - """The `PlatformInfraCommit` to be created by this mutation.""" - platformInfraCommit: PlatformInfraCommitInput! + """The `ContentPreset` at the end of the edge.""" + node: ContentPreset } -"""The output of our create `PlatformInfraCommit` mutation.""" -type CreatePlatformInfraCommitPayload { +""" +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 + """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. + Infra store commit for the current definition (stamped by the versioned trigger on every write) """ - clientMutationId: String + commitId: UUID - """The `PlatformInfraCommit` that was created by this mutation.""" - platformInfraCommit: PlatformInfraCommit + """Timestamp of preset creation""" + createdAt: Datetime - """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 + """ + 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 """ - Our root query field type. Allows us to run any query from our mutation payload. + What the definition seeds — the module option that resolves it (limit_defaults, trust_ladder, ...) """ - query: Query -} + kind: String! + + """Human-readable preset name""" + label: String -"""All input for the create `PlatformInfraObject` mutation.""" -input CreatePlatformInfraObjectInput { """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. + Preset slug (unique per kind per scope); the preset's path in the infra tree is [content_preset, kind, slug] """ - clientMutationId: String + slug: String! - """The `PlatformInfraObject` to be created by this mutation.""" - platformInfraObject: PlatformInfraObjectInput! + """ + Infra Merkle store holding this preset's history (stamped by the versioned trigger) + """ + storeId: UUID + + """Timestamp of last modification""" + updatedAt: Datetime } -"""The output of our create `PlatformInfraObject` mutation.""" -type CreatePlatformInfraObjectPayload { +"""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 + """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. + Infra store commit for the current definition (stamped by the versioned trigger on every write) """ - clientMutationId: String + commitId: UUID - """The `PlatformInfraObject` that was created by this mutation.""" - platformInfraObject: PlatformInfraObject + """Timestamp of preset creation""" + createdAt: Datetime - """An edge for our `PlatformInfraObject`. May be used by Relay 1.""" - platformInfraObjectEdge( - """The method to use when ordering `PlatformInfraObject`.""" - orderBy: [PlatformInfraObjectOrderBy!]! = [PRIMARY_KEY_ASC] - ): PlatformInfraObjectEdge + """ + 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 """ - Our root query field type. Allows us to run any query from our mutation payload. + What the definition seeds — the module option that resolves it (limit_defaults, trust_ladder, ...) """ - query: Query + 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 `PlatformInfraRef` mutation.""" -input CreatePlatformInfraRefInput { +"""All input for the `copyGraph` mutation.""" +input CopyGraphInput { """ An arbitrary 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 `PlatformInfraRef` to be created by this mutation.""" - platformInfraRef: PlatformInfraRefInput! + graphId: UUID + name: String + scopeId: UUID } -"""The output of our create `PlatformInfraRef` mutation.""" -type CreatePlatformInfraRefPayload { +"""The output of our `copyGraph` mutation.""" +type CopyGraphPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `PlatformInfraRef` that was created by this mutation.""" - platformInfraRef: PlatformInfraRef - - """An edge for our `PlatformInfraRef`. May be used by Relay 1.""" - platformInfraRefEdge( - """The method to use when ordering `PlatformInfraRef`.""" - orderBy: [PlatformInfraRefOrderBy!]! = [PRIMARY_KEY_ASC] - ): PlatformInfraRefEdge - """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query + result: UUID } -"""All input for the create `PlatformInfraStore` mutation.""" -input CreatePlatformInfraStoreInput { +"""All input for the create `Build` mutation.""" +input CreateBuildInput { + """The `Build` to be created by this mutation.""" + build: BuildInput! + """ An arbitrary 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 `PlatformInfraStore` to be created by this mutation.""" - platformInfraStore: PlatformInfraStoreInput! } -"""The output of our create `PlatformInfraStore` mutation.""" -type CreatePlatformInfraStorePayload { +"""The output of our create `Build` mutation.""" +type CreateBuildPayload { + """The `Build` that was created by this mutation.""" + build: Build + + """An edge for our `Build`. May be used by Relay 1.""" + buildEdge( + """The method to use when ordering `Build`.""" + orderBy: [BuildOrderBy!]! = [PRIMARY_KEY_ASC] + ): BuildEdge + """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `PlatformInfraStore` that was created by this mutation.""" - platformInfraStore: PlatformInfraStore - - """An edge for our `PlatformInfraStore`. May be used by Relay 1.""" - platformInfraStoreEdge( - """The method to use when ordering `PlatformInfraStore`.""" - orderBy: [PlatformInfraStoreOrderBy!]! = [PRIMARY_KEY_ASC] - ): PlatformInfraStoreEdge - """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query } -"""All input for the create `PlatformNamespaceEvent` mutation.""" -input CreatePlatformNamespaceEventInput { +"""All input for the create `BuildStep` mutation.""" +input CreateBuildStepInput { + """The `BuildStep` to be created by this mutation.""" + buildStep: BuildStepInput! + """ An arbitrary 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 `PlatformNamespaceEvent` to be created by this mutation.""" - platformNamespaceEvent: PlatformNamespaceEventInput! } -"""The output of our create `PlatformNamespaceEvent` mutation.""" -type CreatePlatformNamespaceEventPayload { +"""The output of our create `BuildStep` mutation.""" +type CreateBuildStepPayload { + """The `BuildStep` that was created by this mutation.""" + buildStep: BuildStep + + """An edge for our `BuildStep`. May be used by Relay 1.""" + buildStepEdge( + """The method to use when ordering `BuildStep`.""" + orderBy: [BuildStepOrderBy!]! = [PRIMARY_KEY_ASC] + ): BuildStepEdge + """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `PlatformNamespaceEvent` that was created by this mutation.""" - platformNamespaceEvent: PlatformNamespaceEvent - - """An edge for our `PlatformNamespaceEvent`. May be used by Relay 1.""" - platformNamespaceEventEdge( - """The method to use when ordering `PlatformNamespaceEvent`.""" - orderBy: [PlatformNamespaceEventOrderBy!]! = [PRIMARY_KEY_ASC] - ): PlatformNamespaceEventEdge - """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query } -"""All input for the create `PlatformNamespace` mutation.""" -input CreatePlatformNamespaceInput { +"""All input for the create `BuilderBinding` mutation.""" +input CreateBuilderBindingInput { + """The `BuilderBinding` to be created by this mutation.""" + builderBinding: BuilderBindingInput! + """ An arbitrary 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 `PlatformNamespace` to be created by this mutation.""" - platformNamespace: PlatformNamespaceInput! } -"""The output of our create `PlatformNamespace` mutation.""" -type CreatePlatformNamespacePayload { +"""The output of our create `BuilderBinding` mutation.""" +type CreateBuilderBindingPayload { + """The `BuilderBinding` that was created by this mutation.""" + builderBinding: BuilderBinding + + """An edge for our `BuilderBinding`. May be used by Relay 1.""" + builderBindingEdge( + """The method to use when ordering `BuilderBinding`.""" + orderBy: [BuilderBindingOrderBy!]! = [PRIMARY_KEY_ASC] + ): BuilderBindingEdge + """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `PlatformNamespace` that was created by this mutation.""" - platformNamespace: PlatformNamespace - - """An edge for our `PlatformNamespace`. May be used by Relay 1.""" - platformNamespaceEdge( - """The method to use when ordering `PlatformNamespace`.""" - orderBy: [PlatformNamespaceOrderBy!]! = [PRIMARY_KEY_ASC] - ): PlatformNamespaceEdge - """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query } -"""All input for the create `PlatformResourceDefinition` mutation.""" -input CreatePlatformResourceDefinitionInput { +"""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 `PlatformResourceDefinition` to be created by this mutation.""" - platformResourceDefinition: PlatformResourceDefinitionInput! + """The `ContentPreset` to be created by this mutation.""" + contentPreset: ContentPresetInput! } -"""The output of our create `PlatformResourceDefinition` mutation.""" -type CreatePlatformResourceDefinitionPayload { +"""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 `PlatformResourceDefinition` that was created by this mutation.""" - platformResourceDefinition: PlatformResourceDefinition + """The `ContentPreset` that was created by this mutation.""" + contentPreset: ContentPreset - """An edge for our `PlatformResourceDefinition`. May be used by Relay 1.""" - platformResourceDefinitionEdge( - """The method to use when ordering `PlatformResourceDefinition`.""" - orderBy: [PlatformResourceDefinitionOrderBy!]! = [PRIMARY_KEY_ASC] - ): PlatformResourceDefinitionEdge + """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. @@ -2042,34 +1860,58 @@ type CreatePlatformResourceDefinitionPayload { query: Query } -"""All input for the create `PlatformResourceEvent` mutation.""" -input CreatePlatformResourceEventInput { +"""All input for the create `DatabaseFunctionGraphExecution` mutation.""" +input CreateDatabaseFunctionGraphExecutionInput { """ An arbitrary 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 `PlatformResourceEvent` to be created by this mutation.""" - platformResourceEvent: PlatformResourceEventInput! + """The `DatabaseFunctionGraphExecution` to be created by this mutation.""" + databaseFunctionGraphExecution: DatabaseFunctionGraphExecutionInput! } -"""The output of our create `PlatformResourceEvent` mutation.""" -type CreatePlatformResourceEventPayload { +""" +All input for the create `DatabaseFunctionGraphExecutionNodeState` mutation. +""" +input CreateDatabaseFunctionGraphExecutionNodeStateInput { + """ + An arbitrary 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 `DatabaseFunctionGraphExecutionNodeState` to be created by this mutation. + """ + databaseFunctionGraphExecutionNodeState: DatabaseFunctionGraphExecutionNodeStateInput! +} + +""" +The output of our create `DatabaseFunctionGraphExecutionNodeState` mutation. +""" +type CreateDatabaseFunctionGraphExecutionNodeStatePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `PlatformResourceEvent` that was created by this mutation.""" - platformResourceEvent: PlatformResourceEvent + """ + The `DatabaseFunctionGraphExecutionNodeState` that was created by this mutation. + """ + databaseFunctionGraphExecutionNodeState: DatabaseFunctionGraphExecutionNodeState - """An edge for our `PlatformResourceEvent`. May be used by Relay 1.""" - platformResourceEventEdge( - """The method to use when ordering `PlatformResourceEvent`.""" - orderBy: [PlatformResourceEventOrderBy!]! = [PRIMARY_KEY_ASC] - ): PlatformResourceEventEdge + """ + An edge for our `DatabaseFunctionGraphExecutionNodeState`. May be used by Relay 1. + """ + databaseFunctionGraphExecutionNodeStateEdge( + """ + The method to use when ordering `DatabaseFunctionGraphExecutionNodeState`. + """ + orderBy: [DatabaseFunctionGraphExecutionNodeStateOrderBy!]! = [PRIMARY_KEY_ASC] + ): DatabaseFunctionGraphExecutionNodeStateEdge """ Our root query field type. Allows us to run any query from our mutation payload. @@ -2077,48 +1919,46 @@ type CreatePlatformResourceEventPayload { query: Query } -"""All input for the create `PlatformResource` mutation.""" -input CreatePlatformResourceInput { +""" +All input for the create `DatabaseFunctionGraphExecutionOutput` mutation. +""" +input CreateDatabaseFunctionGraphExecutionOutputInput { """ An arbitrary 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 `PlatformResource` to be created by this mutation.""" - platformResource: PlatformResourceInput! -} - -"""All input for the create `PlatformResourceInstallation` mutation.""" -input CreatePlatformResourceInstallationInput { """ - 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 `DatabaseFunctionGraphExecutionOutput` to be created by this mutation. """ - clientMutationId: String - - """The `PlatformResourceInstallation` to be created by this mutation.""" - platformResourceInstallation: PlatformResourceInstallationInput! + databaseFunctionGraphExecutionOutput: DatabaseFunctionGraphExecutionOutputInput! } -"""The output of our create `PlatformResourceInstallation` mutation.""" -type CreatePlatformResourceInstallationPayload { +""" +The output of our create `DatabaseFunctionGraphExecutionOutput` mutation. +""" +type CreateDatabaseFunctionGraphExecutionOutputPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `PlatformResourceInstallation` that was created by this mutation.""" - platformResourceInstallation: PlatformResourceInstallation + """ + The `DatabaseFunctionGraphExecutionOutput` that was created by this mutation. + """ + databaseFunctionGraphExecutionOutput: DatabaseFunctionGraphExecutionOutput """ - An edge for our `PlatformResourceInstallation`. May be used by Relay 1. + An edge for our `DatabaseFunctionGraphExecutionOutput`. May be used by Relay 1. """ - platformResourceInstallationEdge( - """The method to use when ordering `PlatformResourceInstallation`.""" - orderBy: [PlatformResourceInstallationOrderBy!]! = [PRIMARY_KEY_ASC] - ): PlatformResourceInstallationEdge + databaseFunctionGraphExecutionOutputEdge( + """ + The method to use when ordering `DatabaseFunctionGraphExecutionOutput`. + """ + orderBy: [DatabaseFunctionGraphExecutionOutputOrderBy!]! = [PRIMARY_KEY_ASC] + ): DatabaseFunctionGraphExecutionOutputEdge """ Our root query field type. Allows us to run any query from our mutation payload. @@ -2126,22 +1966,26 @@ type CreatePlatformResourceInstallationPayload { query: Query } -"""The output of our create `PlatformResource` mutation.""" -type CreatePlatformResourcePayload { +"""The output of our create `DatabaseFunctionGraphExecution` mutation.""" +type CreateDatabaseFunctionGraphExecutionPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `PlatformResource` that was created by this mutation.""" - platformResource: PlatformResource + """ + The `DatabaseFunctionGraphExecution` that was created by this mutation. + """ + databaseFunctionGraphExecution: DatabaseFunctionGraphExecution - """An edge for our `PlatformResource`. May be used by Relay 1.""" - platformResourceEdge( - """The method to use when ordering `PlatformResource`.""" - orderBy: [PlatformResourceOrderBy!]! = [PRIMARY_KEY_ASC] - ): PlatformResourceEdge + """ + An edge for our `DatabaseFunctionGraphExecution`. May be used by Relay 1. + """ + databaseFunctionGraphExecutionEdge( + """The method to use when ordering `DatabaseFunctionGraphExecution`.""" + orderBy: [DatabaseFunctionGraphExecutionOrderBy!]! = [PRIMARY_KEY_ASC] + ): DatabaseFunctionGraphExecutionEdge """ Our root query field type. Allows us to run any query from our mutation payload. @@ -2149,34 +1993,34 @@ type CreatePlatformResourcePayload { query: Query } -"""All input for the create `PlatformResourceStatusCheck` mutation.""" -input CreatePlatformResourceStatusCheckInput { +"""All input for the create `DatabaseGraphCommit` mutation.""" +input CreateDatabaseGraphCommitInput { """ An arbitrary 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 `PlatformResourceStatusCheck` to be created by this mutation.""" - platformResourceStatusCheck: PlatformResourceStatusCheckInput! + """The `DatabaseGraphCommit` to be created by this mutation.""" + databaseGraphCommit: DatabaseGraphCommitInput! } -"""The output of our create `PlatformResourceStatusCheck` mutation.""" -type CreatePlatformResourceStatusCheckPayload { +"""The output of our create `DatabaseGraphCommit` mutation.""" +type CreateDatabaseGraphCommitPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `PlatformResourceStatusCheck` that was created by this mutation.""" - platformResourceStatusCheck: PlatformResourceStatusCheck + """The `DatabaseGraphCommit` that was created by this mutation.""" + databaseGraphCommit: DatabaseGraphCommit - """An edge for our `PlatformResourceStatusCheck`. May be used by Relay 1.""" - platformResourceStatusCheckEdge( - """The method to use when ordering `PlatformResourceStatusCheck`.""" - orderBy: [PlatformResourceStatusCheckOrderBy!]! = [PRIMARY_KEY_ASC] - ): PlatformResourceStatusCheckEdge + """An edge for our `DatabaseGraphCommit`. May be used by Relay 1.""" + databaseGraphCommitEdge( + """The method to use when ordering `DatabaseGraphCommit`.""" + orderBy: [DatabaseGraphCommitOrderBy!]! = [PRIMARY_KEY_ASC] + ): DatabaseGraphCommitEdge """ Our root query field type. Allows us to run any query from our mutation payload. @@ -2184,34 +2028,34 @@ type CreatePlatformResourceStatusCheckPayload { query: Query } -"""All input for the create `PlatformResourceUsageLog` mutation.""" -input CreatePlatformResourceUsageLogInput { +"""All input for the create `DatabaseGraphObject` mutation.""" +input CreateDatabaseGraphObjectInput { """ An arbitrary 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 `PlatformResourceUsageLog` to be created by this mutation.""" - platformResourceUsageLog: PlatformResourceUsageLogInput! + """The `DatabaseGraphObject` to be created by this mutation.""" + databaseGraphObject: DatabaseGraphObjectInput! } -"""The output of our create `PlatformResourceUsageLog` mutation.""" -type CreatePlatformResourceUsageLogPayload { +"""The output of our create `DatabaseGraphObject` mutation.""" +type CreateDatabaseGraphObjectPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `PlatformResourceUsageLog` that was created by this mutation.""" - platformResourceUsageLog: PlatformResourceUsageLog + """The `DatabaseGraphObject` that was created by this mutation.""" + databaseGraphObject: DatabaseGraphObject - """An edge for our `PlatformResourceUsageLog`. May be used by Relay 1.""" - platformResourceUsageLogEdge( - """The method to use when ordering `PlatformResourceUsageLog`.""" - orderBy: [PlatformResourceUsageLogOrderBy!]! = [PRIMARY_KEY_ASC] - ): PlatformResourceUsageLogEdge + """An edge for our `DatabaseGraphObject`. May be used by Relay 1.""" + databaseGraphObjectEdge( + """The method to use when ordering `DatabaseGraphObject`.""" + orderBy: [DatabaseGraphObjectOrderBy!]! = [PRIMARY_KEY_ASC] + ): DatabaseGraphObjectEdge """ Our root query field type. Allows us to run any query from our mutation payload. @@ -2219,36 +2063,34 @@ type CreatePlatformResourceUsageLogPayload { query: Query } -"""All input for the create `PlatformResourceUsageSummary` mutation.""" -input CreatePlatformResourceUsageSummaryInput { +"""All input for the create `DatabaseGraphRef` mutation.""" +input CreateDatabaseGraphRefInput { """ An arbitrary 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 `PlatformResourceUsageSummary` to be created by this mutation.""" - platformResourceUsageSummary: PlatformResourceUsageSummaryInput! + """The `DatabaseGraphRef` to be created by this mutation.""" + databaseGraphRef: DatabaseGraphRefInput! } -"""The output of our create `PlatformResourceUsageSummary` mutation.""" -type CreatePlatformResourceUsageSummaryPayload { +"""The output of our create `DatabaseGraphRef` mutation.""" +type CreateDatabaseGraphRefPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `PlatformResourceUsageSummary` that was created by this mutation.""" - platformResourceUsageSummary: PlatformResourceUsageSummary + """The `DatabaseGraphRef` that was created by this mutation.""" + databaseGraphRef: DatabaseGraphRef - """ - An edge for our `PlatformResourceUsageSummary`. May be used by Relay 1. - """ - platformResourceUsageSummaryEdge( - """The method to use when ordering `PlatformResourceUsageSummary`.""" - orderBy: [PlatformResourceUsageSummaryOrderBy!]! = [PRIMARY_KEY_ASC] - ): PlatformResourceUsageSummaryEdge + """An edge for our `DatabaseGraphRef`. May be used by Relay 1.""" + databaseGraphRefEdge( + """The method to use when ordering `DatabaseGraphRef`.""" + orderBy: [DatabaseGraphRefOrderBy!]! = [PRIMARY_KEY_ASC] + ): DatabaseGraphRefEdge """ Our root query field type. Allows us to run any query from our mutation payload. @@ -2256,34 +2098,34 @@ type CreatePlatformResourceUsageSummaryPayload { query: Query } -"""All input for the create `PlatformWebhookEndpoint` mutation.""" -input CreatePlatformWebhookEndpointInput { +"""All input for the create `DatabaseGraphStore` mutation.""" +input CreateDatabaseGraphStoreInput { """ An arbitrary 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 `PlatformWebhookEndpoint` to be created by this mutation.""" - platformWebhookEndpoint: PlatformWebhookEndpointInput! + """The `DatabaseGraphStore` to be created by this mutation.""" + databaseGraphStore: DatabaseGraphStoreInput! } -"""The output of our create `PlatformWebhookEndpoint` mutation.""" -type CreatePlatformWebhookEndpointPayload { +"""The output of our create `DatabaseGraphStore` mutation.""" +type CreateDatabaseGraphStorePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `PlatformWebhookEndpoint` that was created by this mutation.""" - platformWebhookEndpoint: PlatformWebhookEndpoint + """The `DatabaseGraphStore` that was created by this mutation.""" + databaseGraphStore: DatabaseGraphStore - """An edge for our `PlatformWebhookEndpoint`. May be used by Relay 1.""" - platformWebhookEndpointEdge( - """The method to use when ordering `PlatformWebhookEndpoint`.""" - orderBy: [PlatformWebhookEndpointOrderBy!]! = [PRIMARY_KEY_ASC] - ): PlatformWebhookEndpointEdge + """An edge for our `DatabaseGraphStore`. May be used by Relay 1.""" + databaseGraphStoreEdge( + """The method to use when ordering `DatabaseGraphStore`.""" + orderBy: [DatabaseGraphStoreOrderBy!]! = [PRIMARY_KEY_ASC] + ): DatabaseGraphStoreEdge """ Our root query field type. Allows us to run any query from our mutation payload. @@ -2291,34 +2133,34 @@ type CreatePlatformWebhookEndpointPayload { query: Query } -"""All input for the create `PlatformWebhookEvent` mutation.""" -input CreatePlatformWebhookEventInput { +"""All input for the create `DbPreset` mutation.""" +input CreateDbPresetInput { """ An arbitrary 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 `PlatformWebhookEvent` to be created by this mutation.""" - platformWebhookEvent: PlatformWebhookEventInput! + """The `DbPreset` to be created by this mutation.""" + dbPreset: DbPresetInput! } -"""The output of our create `PlatformWebhookEvent` mutation.""" -type CreatePlatformWebhookEventPayload { +"""The output of our create `DbPreset` mutation.""" +type CreateDbPresetPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `PlatformWebhookEvent` that was created by this mutation.""" - platformWebhookEvent: PlatformWebhookEvent + """The `DbPreset` that was created by this mutation.""" + dbPreset: DbPreset - """An edge for our `PlatformWebhookEvent`. May be used by Relay 1.""" - platformWebhookEventEdge( - """The method to use when ordering `PlatformWebhookEvent`.""" - orderBy: [PlatformWebhookEventOrderBy!]! = [PRIMARY_KEY_ASC] - ): PlatformWebhookEventEdge + """An edge for our `DbPreset`. May be used by Relay 1.""" + dbPresetEdge( + """The method to use when ordering `DbPreset`.""" + orderBy: [DbPresetOrderBy!]! = [PRIMARY_KEY_ASC] + ): DbPresetEdge """ Our root query field type. Allows us to run any query from our mutation payload. @@ -2326,230 +2168,277 @@ type CreatePlatformWebhookEventPayload { query: Query } -"""All input for the create `ResourceDefinition` mutation.""" -input CreateResourceDefinitionInput { +"""All input for the create `FunctionApiBinding` mutation.""" +input CreateFunctionApiBindingInput { """ An arbitrary 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 `ResourceDefinition` to be created by this mutation.""" - resourceDefinition: ResourceDefinitionInput! + """The `FunctionApiBinding` to be created by this mutation.""" + functionApiBinding: FunctionApiBindingInput! } -"""The output of our create `ResourceDefinition` mutation.""" -type CreateResourceDefinitionPayload { +"""The output of our create `FunctionApiBinding` mutation.""" +type CreateFunctionApiBindingPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String + """The `FunctionApiBinding` that was created by this mutation.""" + functionApiBinding: FunctionApiBinding + + """An edge for our `FunctionApiBinding`. May be used by Relay 1.""" + functionApiBindingEdge( + """The method to use when ordering `FunctionApiBinding`.""" + orderBy: [FunctionApiBindingOrderBy!]! = [PRIMARY_KEY_ASC] + ): FunctionApiBindingEdge + """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - - """The `ResourceDefinition` that was created by this mutation.""" - resourceDefinition: ResourceDefinition - - """An edge for our `ResourceDefinition`. May be used by Relay 1.""" - resourceDefinitionEdge( - """The method to use when ordering `ResourceDefinition`.""" - orderBy: [ResourceDefinitionOrderBy!]! = [PRIMARY_KEY_ASC] - ): ResourceDefinitionEdge } -"""All input for the create `ResourceEvent` mutation.""" -input CreateResourceEventInput { +"""All input for the create `FunctionCapabilityBinding` mutation.""" +input CreateFunctionCapabilityBindingInput { """ An arbitrary 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 `ResourceEvent` to be created by this mutation.""" - resourceEvent: ResourceEventInput! + """The `FunctionCapabilityBinding` to be created by this mutation.""" + functionCapabilityBinding: FunctionCapabilityBindingInput! } -"""The output of our create `ResourceEvent` mutation.""" -type CreateResourceEventPayload { +"""The output of our create `FunctionCapabilityBinding` mutation.""" +type CreateFunctionCapabilityBindingPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String + """The `FunctionCapabilityBinding` that was created by this mutation.""" + functionCapabilityBinding: FunctionCapabilityBinding + + """An edge for our `FunctionCapabilityBinding`. May be used by Relay 1.""" + functionCapabilityBindingEdge( + """The method to use when ordering `FunctionCapabilityBinding`.""" + orderBy: [FunctionCapabilityBindingOrderBy!]! = [PRIMARY_KEY_ASC] + ): FunctionCapabilityBindingEdge + """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query +} - """The `ResourceEvent` that was created by this mutation.""" - resourceEvent: ResourceEvent +"""All input for the create `FunctionDefinition` mutation.""" +input CreateFunctionDefinitionInput { + """ + An arbitrary 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 edge for our `ResourceEvent`. May be used by Relay 1.""" - resourceEventEdge( - """The method to use when ordering `ResourceEvent`.""" - orderBy: [ResourceEventOrderBy!]! = [PRIMARY_KEY_ASC] - ): ResourceEventEdge + """The `FunctionDefinition` to be created by this mutation.""" + functionDefinition: FunctionDefinitionInput! } -"""All input for the create `Resource` mutation.""" -input CreateResourceInput { +"""The output of our create `FunctionDefinition` mutation.""" +type CreateFunctionDefinitionPayload { """ - 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 - """The `Resource` to be created by this mutation.""" - resource: ResourceInput! + """The `FunctionDefinition` that was created by this mutation.""" + functionDefinition: FunctionDefinition + + """An edge for our `FunctionDefinition`. May be used by Relay 1.""" + functionDefinitionEdge( + """The method to use when ordering `FunctionDefinition`.""" + orderBy: [FunctionDefinitionOrderBy!]! = [PRIMARY_KEY_ASC] + ): FunctionDefinitionEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query } -"""All input for the create `ResourceInstallation` mutation.""" -input CreateResourceInstallationInput { +"""All input for the create `FunctionDeploymentEvent` mutation.""" +input CreateFunctionDeploymentEventInput { """ An arbitrary 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 `ResourceInstallation` to be created by this mutation.""" - resourceInstallation: ResourceInstallationInput! + """The `FunctionDeploymentEvent` to be created by this mutation.""" + functionDeploymentEvent: FunctionDeploymentEventInput! } -"""The output of our create `ResourceInstallation` mutation.""" -type CreateResourceInstallationPayload { +"""The output of our create `FunctionDeploymentEvent` mutation.""" +type CreateFunctionDeploymentEventPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String + """The `FunctionDeploymentEvent` that was created by this mutation.""" + functionDeploymentEvent: FunctionDeploymentEvent + + """An edge for our `FunctionDeploymentEvent`. May be used by Relay 1.""" + functionDeploymentEventEdge( + """The method to use when ordering `FunctionDeploymentEvent`.""" + orderBy: [FunctionDeploymentEventOrderBy!]! = [PRIMARY_KEY_ASC] + ): FunctionDeploymentEventEdge + """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query +} - """The `ResourceInstallation` that was created by this mutation.""" - resourceInstallation: ResourceInstallation +"""All input for the create `FunctionDeployment` mutation.""" +input CreateFunctionDeploymentInput { + """ + An arbitrary 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 edge for our `ResourceInstallation`. May be used by Relay 1.""" - resourceInstallationEdge( - """The method to use when ordering `ResourceInstallation`.""" - orderBy: [ResourceInstallationOrderBy!]! = [PRIMARY_KEY_ASC] - ): ResourceInstallationEdge + """The `FunctionDeployment` to be created by this mutation.""" + functionDeployment: FunctionDeploymentInput! } -"""The output of our create `Resource` mutation.""" -type CreateResourcePayload { +"""The output of our create `FunctionDeployment` mutation.""" +type CreateFunctionDeploymentPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String + """The `FunctionDeployment` that was created by this mutation.""" + functionDeployment: FunctionDeployment + + """An edge for our `FunctionDeployment`. May be used by Relay 1.""" + functionDeploymentEdge( + """The method to use when ordering `FunctionDeployment`.""" + orderBy: [FunctionDeploymentOrderBy!]! = [PRIMARY_KEY_ASC] + ): FunctionDeploymentEdge + """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - - """The `Resource` that was created by this mutation.""" - resource: Resource - - """An edge for our `Resource`. May be used by Relay 1.""" - resourceEdge( - """The method to use when ordering `Resource`.""" - orderBy: [ResourceOrderBy!]! = [PRIMARY_KEY_ASC] - ): ResourceEdge } -"""All input for the create `ResourceStatusCheck` mutation.""" -input CreateResourceStatusCheckInput { +"""All input for the create `FunctionExecutionLog` mutation.""" +input CreateFunctionExecutionLogInput { """ An arbitrary 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 `ResourceStatusCheck` to be created by this mutation.""" - resourceStatusCheck: ResourceStatusCheckInput! + """The `FunctionExecutionLog` to be created by this mutation.""" + functionExecutionLog: FunctionExecutionLogInput! } -"""The output of our create `ResourceStatusCheck` mutation.""" -type CreateResourceStatusCheckPayload { +"""The output of our create `FunctionExecutionLog` mutation.""" +type CreateFunctionExecutionLogPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String + """The `FunctionExecutionLog` that was created by this mutation.""" + functionExecutionLog: FunctionExecutionLog + + """An edge for our `FunctionExecutionLog`. May be used by Relay 1.""" + functionExecutionLogEdge( + """The method to use when ordering `FunctionExecutionLog`.""" + orderBy: [FunctionExecutionLogOrderBy!]! = [PRIMARY_KEY_ASC] + ): FunctionExecutionLogEdge + """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - - """The `ResourceStatusCheck` that was created by this mutation.""" - resourceStatusCheck: ResourceStatusCheck - - """An edge for our `ResourceStatusCheck`. May be used by Relay 1.""" - resourceStatusCheckEdge( - """The method to use when ordering `ResourceStatusCheck`.""" - orderBy: [ResourceStatusCheckOrderBy!]! = [PRIMARY_KEY_ASC] - ): ResourceStatusCheckEdge } -"""All input for the create `ResourceUsageLog` mutation.""" -input CreateResourceUsageLogInput { +"""All input for the create `FunctionGraphCommit` mutation.""" +input CreateFunctionGraphCommitInput { """ An arbitrary 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 `ResourceUsageLog` to be created by this mutation.""" - resourceUsageLog: ResourceUsageLogInput! + """The `FunctionGraphCommit` to be created by this mutation.""" + functionGraphCommit: FunctionGraphCommitInput! } -"""The output of our create `ResourceUsageLog` mutation.""" -type CreateResourceUsageLogPayload { +"""The output of our create `FunctionGraphCommit` mutation.""" +type CreateFunctionGraphCommitPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String + """The `FunctionGraphCommit` that was created by this mutation.""" + functionGraphCommit: FunctionGraphCommit + + """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 +} - """The `ResourceUsageLog` that was created by this mutation.""" - resourceUsageLog: ResourceUsageLog +"""All input for the create `FunctionGraphExecution` mutation.""" +input CreateFunctionGraphExecutionInput { + """ + An arbitrary 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 edge for our `ResourceUsageLog`. May be used by Relay 1.""" - resourceUsageLogEdge( - """The method to use when ordering `ResourceUsageLog`.""" - orderBy: [ResourceUsageLogOrderBy!]! = [PRIMARY_KEY_ASC] - ): ResourceUsageLogEdge + """The `FunctionGraphExecution` to be created by this mutation.""" + functionGraphExecution: FunctionGraphExecutionInput! } -"""All input for the create `ResourceUsageSummary` mutation.""" -input CreateResourceUsageSummaryInput { +"""All input for the create `FunctionGraphExecutionNodeState` mutation.""" +input CreateFunctionGraphExecutionNodeStateInput { """ An arbitrary 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 `ResourceUsageSummary` to be created by this mutation.""" - resourceUsageSummary: ResourceUsageSummaryInput! + """The `FunctionGraphExecutionNodeState` to be created by this mutation.""" + functionGraphExecutionNodeState: FunctionGraphExecutionNodeStateInput! } -"""The output of our create `ResourceUsageSummary` mutation.""" -type CreateResourceUsageSummaryPayload { +"""The output of our create `FunctionGraphExecutionNodeState` mutation.""" +type CreateFunctionGraphExecutionNodeStatePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. @@ -2557,461 +2446,457 @@ type CreateResourceUsageSummaryPayload { clientMutationId: String """ - Our root query field type. Allows us to run any query from our mutation payload. + The `FunctionGraphExecutionNodeState` that was created by this mutation. """ - query: Query + functionGraphExecutionNodeState: FunctionGraphExecutionNodeState - """The `ResourceUsageSummary` that was created by this mutation.""" - resourceUsageSummary: ResourceUsageSummary + """ + An edge for our `FunctionGraphExecutionNodeState`. May be used by Relay 1. + """ + functionGraphExecutionNodeStateEdge( + """The method to use when ordering `FunctionGraphExecutionNodeState`.""" + orderBy: [FunctionGraphExecutionNodeStateOrderBy!]! = [PRIMARY_KEY_ASC] + ): FunctionGraphExecutionNodeStateEdge - """An edge for our `ResourceUsageSummary`. May be used by Relay 1.""" - resourceUsageSummaryEdge( - """The method to use when ordering `ResourceUsageSummary`.""" - orderBy: [ResourceUsageSummaryOrderBy!]! = [PRIMARY_KEY_ASC] - ): ResourceUsageSummaryEdge + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query } -"""All input for the create `WebhookEndpoint` mutation.""" -input CreateWebhookEndpointInput { +"""All input for the create `FunctionGraphExecutionOutput` mutation.""" +input CreateFunctionGraphExecutionOutputInput { """ An arbitrary 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 `WebhookEndpoint` to be created by this mutation.""" - webhookEndpoint: WebhookEndpointInput! + """The `FunctionGraphExecutionOutput` to be created by this mutation.""" + functionGraphExecutionOutput: FunctionGraphExecutionOutputInput! } -"""The output of our create `WebhookEndpoint` mutation.""" -type CreateWebhookEndpointPayload { +"""The output of our create `FunctionGraphExecutionOutput` mutation.""" +type CreateFunctionGraphExecutionOutputPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String + """The `FunctionGraphExecutionOutput` that was created by this mutation.""" + functionGraphExecutionOutput: FunctionGraphExecutionOutput + + """ + An edge for our `FunctionGraphExecutionOutput`. May be used by Relay 1. + """ + functionGraphExecutionOutputEdge( + """The method to use when ordering `FunctionGraphExecutionOutput`.""" + orderBy: [FunctionGraphExecutionOutputOrderBy!]! = [PRIMARY_KEY_ASC] + ): FunctionGraphExecutionOutputEdge + """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query +} - """The `WebhookEndpoint` that was created by this mutation.""" - webhookEndpoint: WebhookEndpoint +"""The output of our create `FunctionGraphExecution` mutation.""" +type CreateFunctionGraphExecutionPayload { + """ + The 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 `WebhookEndpoint`. May be used by Relay 1.""" - webhookEndpointEdge( - """The method to use when ordering `WebhookEndpoint`.""" - orderBy: [WebhookEndpointOrderBy!]! = [PRIMARY_KEY_ASC] - ): WebhookEndpointEdge + """The `FunctionGraphExecution` that was created by this mutation.""" + functionGraphExecution: FunctionGraphExecution + + """An edge for our `FunctionGraphExecution`. May be used by Relay 1.""" + functionGraphExecutionEdge( + """The method to use when ordering `FunctionGraphExecution`.""" + orderBy: [FunctionGraphExecutionOrderBy!]! = [PRIMARY_KEY_ASC] + ): FunctionGraphExecutionEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query } -"""All input for the create `WebhookEvent` mutation.""" -input CreateWebhookEventInput { +"""All input for the `createFunctionGraph` mutation.""" +input CreateFunctionGraphInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String + context: String + createdBy: UUID + definitionsCommitId: UUID + description: String + name: String + scopeId: UUID +} - """The `WebhookEvent` to be created by this mutation.""" - webhookEvent: WebhookEventInput! +"""All input for the create `FunctionGraphObject` mutation.""" +input CreateFunctionGraphObjectInput { + """ + An arbitrary 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 `FunctionGraphObject` to be created by this mutation.""" + functionGraphObject: FunctionGraphObjectInput! } -"""The output of our create `WebhookEvent` mutation.""" -type CreateWebhookEventPayload { +"""The output of our create `FunctionGraphObject` mutation.""" +type CreateFunctionGraphObjectPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String + """The `FunctionGraphObject` that was created by this mutation.""" + functionGraphObject: FunctionGraphObject + + """An edge for our `FunctionGraphObject`. May be used by Relay 1.""" + functionGraphObjectEdge( + """The method to use when ordering `FunctionGraphObject`.""" + orderBy: [FunctionGraphObjectOrderBy!]! = [PRIMARY_KEY_ASC] + ): FunctionGraphObjectEdge + """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - - """The `WebhookEvent` that was created by this mutation.""" - webhookEvent: WebhookEvent - - """An edge for our `WebhookEvent`. May be used by Relay 1.""" - webhookEventEdge( - """The method to use when ordering `WebhookEvent`.""" - orderBy: [WebhookEventOrderBy!]! = [PRIMARY_KEY_ASC] - ): WebhookEventEdge } -"""A location in a connection that can be used for resuming pagination.""" -scalar Cursor - -"""A calendar date in YYYY-MM-DD format.""" -scalar Date - -""" -A filter to be used against Date fields. All fields are combined with a logical ‘and.’ -""" -input DateFilter { +"""The output of our `createFunctionGraph` mutation.""" +type CreateFunctionGraphPayload { """ - Not equal to the specified value, treating null like an ordinary value. + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - distinctFrom: Date - - """Equal to the specified value.""" - equalTo: Date + clientMutationId: String - """Greater than the specified value.""" - greaterThan: Date + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + result: UUID +} - """Greater than or equal to the specified value.""" - greaterThanOrEqualTo: Date +"""All input for the create `FunctionGraphRef` mutation.""" +input CreateFunctionGraphRefInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String - """Included in the specified list.""" - in: [Date!] + """The `FunctionGraphRef` to be created by this mutation.""" + functionGraphRef: FunctionGraphRefInput! +} +"""The output of our create `FunctionGraphRef` mutation.""" +type CreateFunctionGraphRefPayload { """ - Is null (if `true` is specified) or is not null (if `false` is specified). + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - isNull: Boolean + clientMutationId: String - """Less than the specified value.""" - lessThan: Date + """The `FunctionGraphRef` that was created by this mutation.""" + functionGraphRef: FunctionGraphRef - """Less than or equal to the specified value.""" - lessThanOrEqualTo: Date + """An edge for our `FunctionGraphRef`. May be used by Relay 1.""" + functionGraphRefEdge( + """The method to use when ordering `FunctionGraphRef`.""" + orderBy: [FunctionGraphRefOrderBy!]! = [PRIMARY_KEY_ASC] + ): FunctionGraphRefEdge - """Equal to the specified value, treating null like an ordinary value.""" - notDistinctFrom: Date + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} - """Not equal to the specified value.""" - notEqualTo: Date +"""All input for the create `FunctionGraphStore` mutation.""" +input CreateFunctionGraphStoreInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String - """Not included in the specified list.""" - notIn: [Date!] + """The `FunctionGraphStore` to be created by this mutation.""" + functionGraphStore: FunctionGraphStoreInput! } -""" -A point in time as described by the [ISO -8601](https://en.wikipedia.org/wiki/ISO_8601) and, if it has a timezone, [RFC -3339](https://datatracker.ietf.org/doc/html/rfc3339) standards. Input values -that do not conform to both ISO 8601 and RFC 3339 may be coerced, which may lead -to unexpected results. -""" -scalar Datetime - -""" -A filter to be used against Datetime fields. All fields are combined with a logical ‘and.’ -""" -input DatetimeFilter { +"""The output of our create `FunctionGraphStore` mutation.""" +type CreateFunctionGraphStorePayload { """ - Not equal to the specified value, treating null like an ordinary value. + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - distinctFrom: Datetime - - """Equal to the specified value.""" - equalTo: Datetime + clientMutationId: String - """Greater than the specified value.""" - greaterThan: Datetime + """The `FunctionGraphStore` that was created by this mutation.""" + functionGraphStore: FunctionGraphStore - """Greater than or equal to the specified value.""" - greaterThanOrEqualTo: Datetime + """An edge for our `FunctionGraphStore`. May be used by Relay 1.""" + functionGraphStoreEdge( + """The method to use when ordering `FunctionGraphStore`.""" + orderBy: [FunctionGraphStoreOrderBy!]! = [PRIMARY_KEY_ASC] + ): FunctionGraphStoreEdge - """Included in the specified list.""" - in: [Datetime!] + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} +"""All input for the create `FunctionInvocationAttempt` mutation.""" +input CreateFunctionInvocationAttemptInput { """ - Is null (if `true` is specified) or is not null (if `false` is specified). + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - isNull: Boolean + clientMutationId: String - """Less than the specified value.""" - lessThan: Datetime + """The `FunctionInvocationAttempt` to be created by this mutation.""" + functionInvocationAttempt: FunctionInvocationAttemptInput! +} - """Less than or equal to the specified value.""" - lessThanOrEqualTo: Datetime +"""The output of our create `FunctionInvocationAttempt` mutation.""" +type CreateFunctionInvocationAttemptPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """Equal to the specified value, treating null like an ordinary value.""" - notDistinctFrom: Datetime + """The `FunctionInvocationAttempt` that was created by this mutation.""" + functionInvocationAttempt: FunctionInvocationAttempt - """Not equal to the specified value.""" - notEqualTo: Datetime + """An edge for our `FunctionInvocationAttempt`. May be used by Relay 1.""" + functionInvocationAttemptEdge( + """The method to use when ordering `FunctionInvocationAttempt`.""" + orderBy: [FunctionInvocationAttemptOrderBy!]! = [PRIMARY_KEY_ASC] + ): FunctionInvocationAttemptEdge - """Not included in the specified list.""" - notIn: [Datetime!] + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query } -""" -Database provisioning preset catalog — merkle-versioned head over the infra store -""" -type DbPreset { - """Whether this preset is selectable for new databases""" - active: Boolean! - +"""All input for the create `FunctionInvocation` mutation.""" +input CreateFunctionInvocationInput { """ - Infra store commit for the current definition (stamped by the versioned trigger on every write) + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - commitId: UUID + clientMutationId: String - """Timestamp of preset creation""" - createdAt: Datetime! + """The `FunctionInvocation` to be created by this mutation.""" + functionInvocation: FunctionInvocationInput! +} +"""The output of our create `FunctionInvocation` mutation.""" +type CreateFunctionInvocationPayload { """ - Preset definition (modules + options) — the readily-cached head; history lives in the infra store + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - definition: JSON! - - """Human-readable description of the preset""" - description: String + clientMutationId: String - """Unique preset identifier""" - id: UUID! + """The `FunctionInvocation` that was created by this mutation.""" + functionInvocation: FunctionInvocation - """Human-readable preset name""" - label: String + """An edge for our `FunctionInvocation`. May be used by Relay 1.""" + functionInvocationEdge( + """The method to use when ordering `FunctionInvocation`.""" + orderBy: [FunctionInvocationOrderBy!]! = [PRIMARY_KEY_ASC] + ): FunctionInvocationEdge """ - Content-address of definition->modules via metaschema_private.modules_hash (stamped by the versioned trigger); fast exact-match lookup key for provisioning requests + Our root query field type. Allows us to run any query from our mutation payload. """ - modulesHash: UUID + query: Query +} +"""All input for the create `ImageGrant` mutation.""" +input CreateImageGrantInput { """ - Preset slug (unique per scope); the preset's path in the infra tree is [db_preset, slug] + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - slug: String! + clientMutationId: String + + """The `ImageGrant` to be created by this mutation.""" + imageGrant: ImageGrantInput! +} +"""The output of our create `ImageGrant` mutation.""" +type CreateImageGrantPayload { """ - Infra Merkle store holding this preset's history (stamped by the versioned trigger) + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - storeId: UUID + clientMutationId: String - """Timestamp of last modification""" - updatedAt: Datetime! -} + """The `ImageGrant` that was created by this mutation.""" + imageGrant: ImageGrant + + """An edge for our `ImageGrant`. May be used by Relay 1.""" + imageGrantEdge( + """The method to use when ordering `ImageGrant`.""" + orderBy: [ImageGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): ImageGrantEdge -"""A connection to a list of `DbPreset` values.""" -type DbPresetConnection { """ - A list of edges which contains the `DbPreset` and cursor to aid in pagination. + Our root query field type. Allows us to run any query from our mutation payload. """ - edges: [DbPresetEdge]! - - """A list of `DbPreset` objects.""" - nodes: [DbPreset]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `DbPreset` you could get from the connection.""" - totalCount: Int! -} - -"""A `DbPreset` edge in the connection.""" -type DbPresetEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `DbPreset` at the end of the edge.""" - node: DbPreset -} - -""" -A filter to be used against `DbPreset` object types. All fields are combined with a logical ‘and.’ -""" -input DbPresetFilter { - """Filter by the object’s `active` field.""" - active: BooleanFilter - - """Checks for all expressions in this list.""" - and: [DbPresetFilter!] - - """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 `label` field.""" - label: StringFilter - - """Filter by the object’s `modulesHash` field.""" - modulesHash: UUIDFilter - - """Negates the expression.""" - not: DbPresetFilter - - """Checks for any expressions in this list.""" - or: [DbPresetFilter!] - - """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 + query: Query } -"""An input for mutations affecting `DbPreset`""" -input DbPresetInput { - """Whether this preset is selectable for new databases""" - active: Boolean - +"""All input for the create `Image` mutation.""" +input CreateImageInput { """ - Infra store commit for the current definition (stamped by the versioned trigger on every write) + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - commitId: UUID + clientMutationId: String - """Timestamp of preset creation""" - createdAt: Datetime + """The `Image` to be created by this mutation.""" + image: ImageInput! +} +"""The output of our create `Image` mutation.""" +type CreateImagePayload { """ - Preset definition (modules + options) — the readily-cached head; history lives in the infra store + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - definition: JSON! - - """Human-readable description of the preset""" - description: String + clientMutationId: String - """Unique preset identifier""" - id: UUID + """The `Image` that was created by this mutation.""" + image: Image - """Human-readable preset name""" - label: String + """An edge for our `Image`. May be used by Relay 1.""" + imageEdge( + """The method to use when ordering `Image`.""" + orderBy: [ImageOrderBy!]! = [PRIMARY_KEY_ASC] + ): ImageEdge """ - Content-address of definition->modules via metaschema_private.modules_hash (stamped by the versioned trigger); fast exact-match lookup key for provisioning requests + Our root query field type. Allows us to run any query from our mutation payload. """ - modulesHash: UUID + query: Query +} +"""All input for the create `InfraCommit` mutation.""" +input CreateInfraCommitInput { """ - Preset slug (unique per scope); the preset's path in the infra tree is [db_preset, slug] + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - slug: String! + clientMutationId: String + + """The `InfraCommit` to be created by this mutation.""" + infraCommit: InfraCommitInput! +} +"""The output of our create `InfraCommit` mutation.""" +type CreateInfraCommitPayload { """ - Infra Merkle store holding this preset's history (stamped by the versioned trigger) + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - storeId: UUID - - """Timestamp of last modification""" - updatedAt: Datetime -} + clientMutationId: String -"""Methods to use when ordering `DbPreset`.""" -enum DbPresetOrderBy { - 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 - LABEL_ASC - LABEL_DESC - MODULES_HASH_ASC - MODULES_HASH_DESC - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - SLUG_ASC - SLUG_DESC - STORE_ID_ASC - STORE_ID_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC -} + """The `InfraCommit` that was created by this mutation.""" + infraCommit: InfraCommit -""" -Represents an update to a `DbPreset`. Fields that are set will be updated. -""" -input DbPresetPatch { - """Whether this preset is selectable for new databases""" - active: Boolean + """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 """ - Infra store commit for the current definition (stamped by the versioned trigger on every write) + Our root query field type. Allows us to run any query from our mutation payload. """ - commitId: UUID - - """Timestamp of preset creation""" - createdAt: Datetime + query: Query +} +"""All input for the create `InfraObject` mutation.""" +input CreateInfraObjectInput { """ - Preset definition (modules + options) — the readily-cached head; history lives in the infra store + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - definition: JSON - - """Human-readable description of the preset""" - description: String - - """Unique preset identifier""" - id: UUID + clientMutationId: String - """Human-readable preset name""" - label: String + """The `InfraObject` to be created by this mutation.""" + infraObject: InfraObjectInput! +} +"""The output of our create `InfraObject` mutation.""" +type CreateInfraObjectPayload { """ - Content-address of definition->modules via metaschema_private.modules_hash (stamped by the versioned trigger); fast exact-match lookup key for provisioning requests + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - modulesHash: UUID + clientMutationId: String - """ - Preset slug (unique per scope); the preset's path in the infra tree is [db_preset, slug] - """ - slug: String + """The `InfraObject` that was created by this mutation.""" + infraObject: InfraObject + + """An edge for our `InfraObject`. May be used by Relay 1.""" + infraObjectEdge( + """The method to use when ordering `InfraObject`.""" + orderBy: [InfraObjectOrderBy!]! = [PRIMARY_KEY_ASC] + ): InfraObjectEdge """ - Infra Merkle store holding this preset's history (stamped by the versioned trigger) + Our root query field type. Allows us to run any query from our mutation payload. """ - storeId: UUID - - """Timestamp of last modification""" - updatedAt: Datetime + query: Query } -"""All input for the `deleteContentPreset` mutation.""" -input DeleteContentPresetInput { +"""All input for the create `InfraRef` mutation.""" +input CreateInfraRefInput { """ An arbitrary 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 `InfraRef` to be created by this mutation.""" + infraRef: InfraRefInput! } -"""The output of our delete `ContentPreset` mutation.""" -type DeleteContentPresetPayload { +"""The output of our create `InfraRef` mutation.""" +type CreateInfraRefPayload { """ The exact 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 + """The `InfraRef` that was created by this mutation.""" + infraRef: InfraRef - """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 + """An edge for our `InfraRef`. May be used by Relay 1.""" + infraRefEdge( + """The method to use when ordering `InfraRef`.""" + orderBy: [InfraRefOrderBy!]! = [PRIMARY_KEY_ASC] + ): InfraRefEdge """ Our root query field type. Allows us to run any query from our mutation payload. @@ -3019,34 +2904,34 @@ type DeleteContentPresetPayload { query: Query } -"""All input for the `deleteDbPreset` mutation.""" -input DeleteDbPresetInput { +"""All input for the create `InfraStore` mutation.""" +input CreateInfraStoreInput { """ An arbitrary 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 `InfraStore` to be created by this mutation.""" + infraStore: InfraStoreInput! } -"""The output of our delete `DbPreset` mutation.""" -type DeleteDbPresetPayload { +"""The output of our create `InfraStore` mutation.""" +type CreateInfraStorePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `DbPreset` that was deleted by this mutation.""" - dbPreset: DbPreset + """The `InfraStore` that was created by this mutation.""" + infraStore: InfraStore - """An edge for our `DbPreset`. May be used by Relay 1.""" - dbPresetEdge( - """The method to use when ordering `DbPreset`.""" - orderBy: [DbPresetOrderBy!]! = [PRIMARY_KEY_ASC] - ): DbPresetEdge + """An edge for our `InfraStore`. May be used by Relay 1.""" + infraStoreEdge( + """The method to use when ordering `InfraStore`.""" + orderBy: [InfraStoreOrderBy!]! = [PRIMARY_KEY_ASC] + ): InfraStoreEdge """ Our root query field type. Allows us to run any query from our mutation payload. @@ -3054,32 +2939,34 @@ type DeleteDbPresetPayload { query: Query } -"""All input for the `deleteFunctionApiBinding` mutation.""" -input DeleteFunctionApiBindingInput { +"""All input for the create `IntegrationProvider` mutation.""" +input CreateIntegrationProviderInput { """ An arbitrary 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 `IntegrationProvider` to be created by this mutation.""" + integrationProvider: IntegrationProviderInput! } -"""The output of our delete `FunctionApiBinding` mutation.""" -type DeleteFunctionApiBindingPayload { +"""The output of our create `IntegrationProvider` mutation.""" +type CreateIntegrationProviderPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `FunctionApiBinding` that was deleted by this mutation.""" - functionApiBinding: FunctionApiBinding + """The `IntegrationProvider` that was created by this mutation.""" + integrationProvider: IntegrationProvider - """An edge for our `FunctionApiBinding`. May be used by Relay 1.""" - functionApiBindingEdge( - """The method to use when ordering `FunctionApiBinding`.""" - orderBy: [FunctionApiBindingOrderBy!]! = [PRIMARY_KEY_ASC] - ): FunctionApiBindingEdge + """An edge for our `IntegrationProvider`. May be used by Relay 1.""" + integrationProviderEdge( + """The method to use when ordering `IntegrationProvider`.""" + orderBy: [IntegrationProviderOrderBy!]! = [PRIMARY_KEY_ASC] + ): IntegrationProviderEdge """ Our root query field type. Allows us to run any query from our mutation payload. @@ -3087,32 +2974,34 @@ type DeleteFunctionApiBindingPayload { query: Query } -"""All input for the `deleteFunctionCapabilityBinding` mutation.""" -input DeleteFunctionCapabilityBindingInput { +"""All input for the create `NamespaceEvent` mutation.""" +input CreateNamespaceEventInput { """ An arbitrary 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 `NamespaceEvent` to be created by this mutation.""" + namespaceEvent: NamespaceEventInput! } -"""The output of our delete `FunctionCapabilityBinding` mutation.""" -type DeleteFunctionCapabilityBindingPayload { +"""The output of our create `NamespaceEvent` mutation.""" +type CreateNamespaceEventPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `FunctionCapabilityBinding` that was deleted by this mutation.""" - functionCapabilityBinding: FunctionCapabilityBinding + """The `NamespaceEvent` that was created by this mutation.""" + namespaceEvent: NamespaceEvent - """An edge for our `FunctionCapabilityBinding`. May be used by Relay 1.""" - functionCapabilityBindingEdge( - """The method to use when ordering `FunctionCapabilityBinding`.""" - orderBy: [FunctionCapabilityBindingOrderBy!]! = [PRIMARY_KEY_ASC] - ): FunctionCapabilityBindingEdge + """An edge for our `NamespaceEvent`. May be used by Relay 1.""" + namespaceEventEdge( + """The method to use when ordering `NamespaceEvent`.""" + orderBy: [NamespaceEventOrderBy!]! = [PRIMARY_KEY_ASC] + ): NamespaceEventEdge """ Our root query field type. Allows us to run any query from our mutation payload. @@ -3120,32 +3009,34 @@ type DeleteFunctionCapabilityBindingPayload { query: Query } -"""All input for the `deleteFunctionDefinition` mutation.""" -input DeleteFunctionDefinitionInput { +"""All input for the create `Namespace` mutation.""" +input CreateNamespaceInput { """ An arbitrary 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 `Namespace` to be created by this mutation.""" + namespace: NamespaceInput! } -"""The output of our delete `FunctionDefinition` mutation.""" -type DeleteFunctionDefinitionPayload { +"""The output of our create `Namespace` mutation.""" +type CreateNamespacePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `FunctionDefinition` that was deleted by this mutation.""" - functionDefinition: FunctionDefinition + """The `Namespace` that was created by this mutation.""" + namespace: Namespace - """An edge for our `FunctionDefinition`. May be used by Relay 1.""" - functionDefinitionEdge( - """The method to use when ordering `FunctionDefinition`.""" - orderBy: [FunctionDefinitionOrderBy!]! = [PRIMARY_KEY_ASC] - ): FunctionDefinitionEdge + """An edge for our `Namespace`. May be used by Relay 1.""" + namespaceEdge( + """The method to use when ordering `Namespace`.""" + orderBy: [NamespaceOrderBy!]! = [PRIMARY_KEY_ASC] + ): NamespaceEdge """ Our root query field type. Allows us to run any query from our mutation payload. @@ -3153,37 +3044,34 @@ type DeleteFunctionDefinitionPayload { query: Query } -"""All input for the `deleteFunctionDeploymentEvent` mutation.""" -input DeleteFunctionDeploymentEventInput { +"""All input for the create `PlatformBuild` mutation.""" +input CreatePlatformBuildInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """Event timestamp (partition key)""" - createdAt: Datetime! - - """Unique event identifier""" - id: UUID! + """The `PlatformBuild` to be created by this mutation.""" + platformBuild: PlatformBuildInput! } -"""The output of our delete `FunctionDeploymentEvent` mutation.""" -type DeleteFunctionDeploymentEventPayload { +"""The output of our create `PlatformBuild` mutation.""" +type CreatePlatformBuildPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `FunctionDeploymentEvent` that was deleted by this mutation.""" - functionDeploymentEvent: FunctionDeploymentEvent + """The `PlatformBuild` that was created by this mutation.""" + platformBuild: PlatformBuild - """An edge for our `FunctionDeploymentEvent`. May be used by Relay 1.""" - functionDeploymentEventEdge( - """The method to use when ordering `FunctionDeploymentEvent`.""" - orderBy: [FunctionDeploymentEventOrderBy!]! = [PRIMARY_KEY_ASC] - ): FunctionDeploymentEventEdge + """An edge for our `PlatformBuild`. May be used by Relay 1.""" + platformBuildEdge( + """The method to use when ordering `PlatformBuild`.""" + orderBy: [PlatformBuildOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformBuildEdge """ Our root query field type. Allows us to run any query from our mutation payload. @@ -3191,32 +3079,34 @@ type DeleteFunctionDeploymentEventPayload { query: Query } -"""All input for the `deleteFunctionDeployment` mutation.""" -input DeleteFunctionDeploymentInput { +"""All input for the create `PlatformBuildStep` mutation.""" +input CreatePlatformBuildStepInput { """ An arbitrary 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 `PlatformBuildStep` to be created by this mutation.""" + platformBuildStep: PlatformBuildStepInput! } -"""The output of our delete `FunctionDeployment` mutation.""" -type DeleteFunctionDeploymentPayload { +"""The output of our create `PlatformBuildStep` mutation.""" +type CreatePlatformBuildStepPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `FunctionDeployment` that was deleted by this mutation.""" - functionDeployment: FunctionDeployment + """The `PlatformBuildStep` that was created by this mutation.""" + platformBuildStep: PlatformBuildStep - """An edge for our `FunctionDeployment`. May be used by Relay 1.""" - functionDeploymentEdge( - """The method to use when ordering `FunctionDeployment`.""" - orderBy: [FunctionDeploymentOrderBy!]! = [PRIMARY_KEY_ASC] - ): FunctionDeploymentEdge + """An edge for our `PlatformBuildStep`. May be used by Relay 1.""" + platformBuildStepEdge( + """The method to use when ordering `PlatformBuildStep`.""" + orderBy: [PlatformBuildStepOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformBuildStepEdge """ Our root query field type. Allows us to run any query from our mutation payload. @@ -3224,37 +3114,34 @@ type DeleteFunctionDeploymentPayload { query: Query } -"""All input for the `deleteFunctionExecutionLog` mutation.""" -input DeleteFunctionExecutionLogInput { +"""All input for the create `PlatformBuilderBinding` mutation.""" +input CreatePlatformBuilderBindingInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """Log entry timestamp (partition key)""" - createdAt: Datetime! - - """Unique log entry identifier""" - id: UUID! + """The `PlatformBuilderBinding` to be created by this mutation.""" + platformBuilderBinding: PlatformBuilderBindingInput! } -"""The output of our delete `FunctionExecutionLog` mutation.""" -type DeleteFunctionExecutionLogPayload { +"""The output of our create `PlatformBuilderBinding` mutation.""" +type CreatePlatformBuilderBindingPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `FunctionExecutionLog` that was deleted by this mutation.""" - functionExecutionLog: FunctionExecutionLog + """The `PlatformBuilderBinding` that was created by this mutation.""" + platformBuilderBinding: PlatformBuilderBinding - """An edge for our `FunctionExecutionLog`. May be used by Relay 1.""" - functionExecutionLogEdge( - """The method to use when ordering `FunctionExecutionLog`.""" - orderBy: [FunctionExecutionLogOrderBy!]! = [PRIMARY_KEY_ASC] - ): FunctionExecutionLogEdge + """An edge for our `PlatformBuilderBinding`. May be used by Relay 1.""" + platformBuilderBindingEdge( + """The method to use when ordering `PlatformBuilderBinding`.""" + orderBy: [PlatformBuilderBindingOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformBuilderBindingEdge """ Our root query field type. Allows us to run any query from our mutation payload. @@ -3262,37 +3149,34 @@ type DeleteFunctionExecutionLogPayload { query: Query } -"""All input for the `deleteFunctionGraphCommit` mutation.""" -input DeleteFunctionGraphCommitInput { +"""All input for the create `PlatformFunctionApiBinding` mutation.""" +input CreatePlatformFunctionApiBindingInput { """ An arbitrary 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 commit identifier""" - id: UUID! - - """Opaque store partition key for the global tier""" - scopeId: UUID! + """The `PlatformFunctionApiBinding` to be created by this mutation.""" + platformFunctionApiBinding: PlatformFunctionApiBindingInput! } -"""The output of our delete `FunctionGraphCommit` mutation.""" -type DeleteFunctionGraphCommitPayload { +"""The output of our create `PlatformFunctionApiBinding` mutation.""" +type CreatePlatformFunctionApiBindingPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `FunctionGraphCommit` that was deleted by this mutation.""" - functionGraphCommit: FunctionGraphCommit + """The `PlatformFunctionApiBinding` that was created by this mutation.""" + platformFunctionApiBinding: PlatformFunctionApiBinding - """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 + """An edge for our `PlatformFunctionApiBinding`. May be used by Relay 1.""" + platformFunctionApiBindingEdge( + """The method to use when ordering `PlatformFunctionApiBinding`.""" + orderBy: [PlatformFunctionApiBindingOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformFunctionApiBindingEdge """ Our root query field type. Allows us to run any query from our mutation payload. @@ -3300,38 +3184,22 @@ type DeleteFunctionGraphCommitPayload { query: Query } -"""All input for the `deleteFunctionGraphExecution` mutation.""" -input DeleteFunctionGraphExecutionInput { +"""All input for the create `PlatformFunctionCapabilityBinding` mutation.""" +input CreatePlatformFunctionCapabilityBindingInput { """ An arbitrary 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 execution identifier""" - id: UUID! - - """Execution start timestamp""" - startedAt: Datetime! -} - -"""All input for the `deleteFunctionGraphExecutionNodeState` mutation.""" -input DeleteFunctionGraphExecutionNodeStateInput { """ - 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 `PlatformFunctionCapabilityBinding` to be created by this mutation. """ - clientMutationId: String - - """Timestamp of node state creation (partition key)""" - createdAt: Datetime! - - """Unique node state identifier""" - id: UUID! + platformFunctionCapabilityBinding: PlatformFunctionCapabilityBindingInput! } -"""The output of our delete `FunctionGraphExecutionNodeState` mutation.""" -type DeleteFunctionGraphExecutionNodeStatePayload { +"""The output of our create `PlatformFunctionCapabilityBinding` mutation.""" +type CreatePlatformFunctionCapabilityBindingPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. @@ -3339,17 +3207,17 @@ type DeleteFunctionGraphExecutionNodeStatePayload { clientMutationId: String """ - The `FunctionGraphExecutionNodeState` that was deleted by this mutation. + The `PlatformFunctionCapabilityBinding` that was created by this mutation. """ - functionGraphExecutionNodeState: FunctionGraphExecutionNodeState + platformFunctionCapabilityBinding: PlatformFunctionCapabilityBinding """ - An edge for our `FunctionGraphExecutionNodeState`. May be used by Relay 1. + An edge for our `PlatformFunctionCapabilityBinding`. May be used by Relay 1. """ - functionGraphExecutionNodeStateEdge( - """The method to use when ordering `FunctionGraphExecutionNodeState`.""" - orderBy: [FunctionGraphExecutionNodeStateOrderBy!]! = [PRIMARY_KEY_ASC] - ): FunctionGraphExecutionNodeStateEdge + platformFunctionCapabilityBindingEdge( + """The method to use when ordering `PlatformFunctionCapabilityBinding`.""" + orderBy: [PlatformFunctionCapabilityBindingOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformFunctionCapabilityBindingEdge """ Our root query field type. Allows us to run any query from our mutation payload. @@ -3357,39 +3225,34 @@ type DeleteFunctionGraphExecutionNodeStatePayload { query: Query } -"""All input for the `deleteFunctionGraphExecutionOutput` mutation.""" -input DeleteFunctionGraphExecutionOutputInput { +"""All input for the create `PlatformFunctionDefinition` mutation.""" +input CreatePlatformFunctionDefinitionInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """Timestamp of output creation""" - createdAt: Datetime! - - """Unique execution output identifier""" - id: UUID! + """The `PlatformFunctionDefinition` to be created by this mutation.""" + platformFunctionDefinition: PlatformFunctionDefinitionInput! } -"""The output of our delete `FunctionGraphExecutionOutput` mutation.""" -type DeleteFunctionGraphExecutionOutputPayload { +"""The output of our create `PlatformFunctionDefinition` mutation.""" +type CreatePlatformFunctionDefinitionPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `FunctionGraphExecutionOutput` that was deleted by this mutation.""" - functionGraphExecutionOutput: FunctionGraphExecutionOutput + """The `PlatformFunctionDefinition` that was created by this mutation.""" + platformFunctionDefinition: PlatformFunctionDefinition - """ - An edge for our `FunctionGraphExecutionOutput`. May be used by Relay 1. - """ - functionGraphExecutionOutputEdge( - """The method to use when ordering `FunctionGraphExecutionOutput`.""" - orderBy: [FunctionGraphExecutionOutputOrderBy!]! = [PRIMARY_KEY_ASC] - ): FunctionGraphExecutionOutputEdge + """An edge for our `PlatformFunctionDefinition`. May be used by Relay 1.""" + platformFunctionDefinitionEdge( + """The method to use when ordering `PlatformFunctionDefinition`.""" + orderBy: [PlatformFunctionDefinitionOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformFunctionDefinitionEdge """ Our root query field type. Allows us to run any query from our mutation payload. @@ -3397,72 +3260,73 @@ type DeleteFunctionGraphExecutionOutputPayload { query: Query } -"""The output of our delete `FunctionGraphExecution` mutation.""" -type DeleteFunctionGraphExecutionPayload { +"""All input for the create `PlatformFunctionDeploymentEvent` mutation.""" +input CreatePlatformFunctionDeploymentEventInput { """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. + An arbitrary 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 `FunctionGraphExecution` that was deleted by this mutation.""" - functionGraphExecution: FunctionGraphExecution + """The `PlatformFunctionDeploymentEvent` to be created by this mutation.""" + platformFunctionDeploymentEvent: PlatformFunctionDeploymentEventInput! +} - """An edge for our `FunctionGraphExecution`. May be used by Relay 1.""" - functionGraphExecutionEdge( - """The method to use when ordering `FunctionGraphExecution`.""" - orderBy: [FunctionGraphExecutionOrderBy!]! = [PRIMARY_KEY_ASC] - ): FunctionGraphExecutionEdge +"""The output of our create `PlatformFunctionDeploymentEvent` mutation.""" +type CreatePlatformFunctionDeploymentEventPayload { + """ + The 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. + The `PlatformFunctionDeploymentEvent` that was created by this mutation. """ - query: Query -} + platformFunctionDeploymentEvent: PlatformFunctionDeploymentEvent -"""All input for the `deleteFunctionGraph` mutation.""" -input DeleteFunctionGraphInput { """ - 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 edge for our `PlatformFunctionDeploymentEvent`. May be used by Relay 1. """ - clientMutationId: String + platformFunctionDeploymentEventEdge( + """The method to use when ordering `PlatformFunctionDeploymentEvent`.""" + orderBy: [PlatformFunctionDeploymentEventOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformFunctionDeploymentEventEdge - """Unique graph identifier""" - id: UUID! + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query } -"""All input for the `deleteFunctionGraphObject` mutation.""" -input DeleteFunctionGraphObjectInput { +"""All input for the create `PlatformFunctionDeployment` mutation.""" +input CreatePlatformFunctionDeploymentInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """Content-addressed UUID v5 — deterministic hash of (data, kids, ktree)""" - id: UUID! - - """Opaque store partition key for the global tier""" - scopeId: UUID! + """The `PlatformFunctionDeployment` to be created by this mutation.""" + platformFunctionDeployment: PlatformFunctionDeploymentInput! } -"""The output of our delete `FunctionGraphObject` mutation.""" -type DeleteFunctionGraphObjectPayload { +"""The output of our create `PlatformFunctionDeployment` mutation.""" +type CreatePlatformFunctionDeploymentPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `FunctionGraphObject` that was deleted by this mutation.""" - functionGraphObject: FunctionGraphObject + """The `PlatformFunctionDeployment` that was created by this mutation.""" + platformFunctionDeployment: PlatformFunctionDeployment - """An edge for our `FunctionGraphObject`. May be used by Relay 1.""" - functionGraphObjectEdge( - """The method to use when ordering `FunctionGraphObject`.""" - orderBy: [FunctionGraphObjectOrderBy!]! = [PRIMARY_KEY_ASC] - ): FunctionGraphObjectEdge + """An edge for our `PlatformFunctionDeployment`. May be used by Relay 1.""" + platformFunctionDeploymentEdge( + """The method to use when ordering `PlatformFunctionDeployment`.""" + orderBy: [PlatformFunctionDeploymentOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformFunctionDeploymentEdge """ Our root query field type. Allows us to run any query from our mutation payload. @@ -3470,22 +3334,36 @@ type DeleteFunctionGraphObjectPayload { query: Query } -"""The output of our delete `FunctionGraph` mutation.""" -type DeleteFunctionGraphPayload { +"""All input for the create `PlatformFunctionExecutionLog` mutation.""" +input CreatePlatformFunctionExecutionLogInput { + """ + An arbitrary 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 `PlatformFunctionExecutionLog` to be created by this mutation.""" + platformFunctionExecutionLog: PlatformFunctionExecutionLogInput! +} + +"""The output of our create `PlatformFunctionExecutionLog` mutation.""" +type CreatePlatformFunctionExecutionLogPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `FunctionGraph` that was deleted by this mutation.""" - functionGraph: FunctionGraph + """The `PlatformFunctionExecutionLog` that was created by this mutation.""" + platformFunctionExecutionLog: PlatformFunctionExecutionLog - """An edge for our `FunctionGraph`. May be used by Relay 1.""" - functionGraphEdge( - """The method to use when ordering `FunctionGraph`.""" - orderBy: [FunctionGraphOrderBy!]! = [PRIMARY_KEY_ASC] - ): FunctionGraphEdge + """ + An edge for our `PlatformFunctionExecutionLog`. May be used by Relay 1. + """ + platformFunctionExecutionLogEdge( + """The method to use when ordering `PlatformFunctionExecutionLog`.""" + orderBy: [PlatformFunctionExecutionLogOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformFunctionExecutionLogEdge """ Our root query field type. Allows us to run any query from our mutation payload. @@ -3493,37 +3371,40 @@ type DeleteFunctionGraphPayload { query: Query } -"""All input for the `deleteFunctionGraphRef` mutation.""" -input DeleteFunctionGraphRefInput { +"""All input for the create `PlatformFunctionInvocationAttempt` mutation.""" +input CreatePlatformFunctionInvocationAttemptInput { """ An arbitrary 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 ref identifier""" - id: UUID! - - """Opaque store partition key for the global tier""" - scopeId: UUID! + """ + The `PlatformFunctionInvocationAttempt` to be created by this mutation. + """ + platformFunctionInvocationAttempt: PlatformFunctionInvocationAttemptInput! } -"""The output of our delete `FunctionGraphRef` mutation.""" -type DeleteFunctionGraphRefPayload { +"""The output of our create `PlatformFunctionInvocationAttempt` mutation.""" +type CreatePlatformFunctionInvocationAttemptPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `FunctionGraphRef` that was deleted by this mutation.""" - functionGraphRef: FunctionGraphRef + """ + The `PlatformFunctionInvocationAttempt` that was created by this mutation. + """ + platformFunctionInvocationAttempt: PlatformFunctionInvocationAttempt - """An edge for our `FunctionGraphRef`. May be used by Relay 1.""" - functionGraphRefEdge( - """The method to use when ordering `FunctionGraphRef`.""" - orderBy: [FunctionGraphRefOrderBy!]! = [PRIMARY_KEY_ASC] - ): FunctionGraphRefEdge + """ + An edge for our `PlatformFunctionInvocationAttempt`. May be used by Relay 1. + """ + platformFunctionInvocationAttemptEdge( + """The method to use when ordering `PlatformFunctionInvocationAttempt`.""" + orderBy: [PlatformFunctionInvocationAttemptOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformFunctionInvocationAttemptEdge """ Our root query field type. Allows us to run any query from our mutation payload. @@ -3531,34 +3412,34 @@ type DeleteFunctionGraphRefPayload { query: Query } -"""All input for the `deleteFunctionGraphStore` mutation.""" -input DeleteFunctionGraphStoreInput { +"""All input for the create `PlatformFunctionInvocation` mutation.""" +input CreatePlatformFunctionInvocationInput { """ An arbitrary 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 store identifier""" - id: UUID! + """The `PlatformFunctionInvocation` to be created by this mutation.""" + platformFunctionInvocation: PlatformFunctionInvocationInput! } -"""The output of our delete `FunctionGraphStore` mutation.""" -type DeleteFunctionGraphStorePayload { +"""The output of our create `PlatformFunctionInvocation` mutation.""" +type CreatePlatformFunctionInvocationPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `FunctionGraphStore` that was deleted by this mutation.""" - functionGraphStore: FunctionGraphStore + """The `PlatformFunctionInvocation` that was created by this mutation.""" + platformFunctionInvocation: PlatformFunctionInvocation - """An edge for our `FunctionGraphStore`. May be used by Relay 1.""" - functionGraphStoreEdge( - """The method to use when ordering `FunctionGraphStore`.""" - orderBy: [FunctionGraphStoreOrderBy!]! = [PRIMARY_KEY_ASC] - ): FunctionGraphStoreEdge + """An edge for our `PlatformFunctionInvocation`. May be used by Relay 1.""" + platformFunctionInvocationEdge( + """The method to use when ordering `PlatformFunctionInvocation`.""" + orderBy: [PlatformFunctionInvocationOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformFunctionInvocationEdge """ Our root query field type. Allows us to run any query from our mutation payload. @@ -3566,37 +3447,34 @@ type DeleteFunctionGraphStorePayload { query: Query } -"""All input for the `deleteFunctionInvocationAttempt` mutation.""" -input DeleteFunctionInvocationAttemptInput { +"""All input for the create `PlatformImageGrant` mutation.""" +input CreatePlatformImageGrantInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """When the attempt result was recorded (partition key)""" - createdAt: Datetime! - - """Unique attempt identifier""" - id: UUID! + """The `PlatformImageGrant` to be created by this mutation.""" + platformImageGrant: PlatformImageGrantInput! } -"""The output of our delete `FunctionInvocationAttempt` mutation.""" -type DeleteFunctionInvocationAttemptPayload { +"""The output of our create `PlatformImageGrant` mutation.""" +type CreatePlatformImageGrantPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `FunctionInvocationAttempt` that was deleted by this mutation.""" - functionInvocationAttempt: FunctionInvocationAttempt + """The `PlatformImageGrant` that was created by this mutation.""" + platformImageGrant: PlatformImageGrant - """An edge for our `FunctionInvocationAttempt`. May be used by Relay 1.""" - functionInvocationAttemptEdge( - """The method to use when ordering `FunctionInvocationAttempt`.""" - orderBy: [FunctionInvocationAttemptOrderBy!]! = [PRIMARY_KEY_ASC] - ): FunctionInvocationAttemptEdge + """An edge for our `PlatformImageGrant`. May be used by Relay 1.""" + platformImageGrantEdge( + """The method to use when ordering `PlatformImageGrant`.""" + orderBy: [PlatformImageGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformImageGrantEdge """ Our root query field type. Allows us to run any query from our mutation payload. @@ -3604,37 +3482,34 @@ type DeleteFunctionInvocationAttemptPayload { query: Query } -"""All input for the `deleteFunctionInvocation` mutation.""" -input DeleteFunctionInvocationInput { +"""All input for the create `PlatformImage` mutation.""" +input CreatePlatformImageInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """Invocation creation timestamp (partition key)""" - createdAt: Datetime! - - """Unique invocation identifier""" - id: UUID! + """The `PlatformImage` to be created by this mutation.""" + platformImage: PlatformImageInput! } -"""The output of our delete `FunctionInvocation` mutation.""" -type DeleteFunctionInvocationPayload { +"""The output of our create `PlatformImage` mutation.""" +type CreatePlatformImagePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `FunctionInvocation` that was deleted by this mutation.""" - functionInvocation: FunctionInvocation + """The `PlatformImage` that was created by this mutation.""" + platformImage: PlatformImage - """An edge for our `FunctionInvocation`. May be used by Relay 1.""" - functionInvocationEdge( - """The method to use when ordering `FunctionInvocation`.""" - orderBy: [FunctionInvocationOrderBy!]! = [PRIMARY_KEY_ASC] - ): FunctionInvocationEdge + """An edge for our `PlatformImage`. May be used by Relay 1.""" + platformImageEdge( + """The method to use when ordering `PlatformImage`.""" + orderBy: [PlatformImageOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformImageEdge """ Our root query field type. Allows us to run any query from our mutation payload. @@ -3642,37 +3517,34 @@ type DeleteFunctionInvocationPayload { query: Query } -"""All input for the `deleteInfraCommit` mutation.""" -input DeleteInfraCommitInput { +"""All input for the create `PlatformInfraCommit` mutation.""" +input CreatePlatformInfraCommitInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """Database scope for multi-tenant isolation""" - databaseId: UUID! - - """Unique commit identifier""" - id: UUID! + """The `PlatformInfraCommit` to be created by this mutation.""" + platformInfraCommit: PlatformInfraCommitInput! } -"""The output of our delete `InfraCommit` mutation.""" -type DeleteInfraCommitPayload { +"""The output of our create `PlatformInfraCommit` mutation.""" +type CreatePlatformInfraCommitPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `InfraCommit` that was deleted by this mutation.""" - infraCommit: InfraCommit + """The `PlatformInfraCommit` that was created by this mutation.""" + platformInfraCommit: PlatformInfraCommit - """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 + """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. @@ -3680,37 +3552,34 @@ type DeleteInfraCommitPayload { query: Query } -"""All input for the `deleteInfraObject` mutation.""" -input DeleteInfraObjectInput { +"""All input for the create `PlatformInfraObject` mutation.""" +input CreatePlatformInfraObjectInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """Database scope for multi-tenant isolation""" - databaseId: UUID! - - """Content-addressed UUID v5 — deterministic hash of (data, kids, ktree)""" - id: UUID! + """The `PlatformInfraObject` to be created by this mutation.""" + platformInfraObject: PlatformInfraObjectInput! } -"""The output of our delete `InfraObject` mutation.""" -type DeleteInfraObjectPayload { +"""The output of our create `PlatformInfraObject` mutation.""" +type CreatePlatformInfraObjectPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `InfraObject` that was deleted by this mutation.""" - infraObject: InfraObject + """The `PlatformInfraObject` that was created by this mutation.""" + platformInfraObject: PlatformInfraObject - """An edge for our `InfraObject`. May be used by Relay 1.""" - infraObjectEdge( - """The method to use when ordering `InfraObject`.""" - orderBy: [InfraObjectOrderBy!]! = [PRIMARY_KEY_ASC] - ): InfraObjectEdge + """An edge for our `PlatformInfraObject`. May be used by Relay 1.""" + platformInfraObjectEdge( + """The method to use when ordering `PlatformInfraObject`.""" + orderBy: [PlatformInfraObjectOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformInfraObjectEdge """ Our root query field type. Allows us to run any query from our mutation payload. @@ -3718,37 +3587,34 @@ type DeleteInfraObjectPayload { query: Query } -"""All input for the `deleteInfraRef` mutation.""" -input DeleteInfraRefInput { +"""All input for the create `PlatformInfraRef` mutation.""" +input CreatePlatformInfraRefInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """Database scope for multi-tenant isolation""" - databaseId: UUID! - - """Unique ref identifier""" - id: UUID! + """The `PlatformInfraRef` to be created by this mutation.""" + platformInfraRef: PlatformInfraRefInput! } -"""The output of our delete `InfraRef` mutation.""" -type DeleteInfraRefPayload { +"""The output of our create `PlatformInfraRef` mutation.""" +type CreatePlatformInfraRefPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `InfraRef` that was deleted by this mutation.""" - infraRef: InfraRef + """The `PlatformInfraRef` that was created by this mutation.""" + platformInfraRef: PlatformInfraRef - """An edge for our `InfraRef`. May be used by Relay 1.""" - infraRefEdge( - """The method to use when ordering `InfraRef`.""" - orderBy: [InfraRefOrderBy!]! = [PRIMARY_KEY_ASC] - ): InfraRefEdge + """An edge for our `PlatformInfraRef`. May be used by Relay 1.""" + platformInfraRefEdge( + """The method to use when ordering `PlatformInfraRef`.""" + orderBy: [PlatformInfraRefOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformInfraRefEdge """ Our root query field type. Allows us to run any query from our mutation payload. @@ -3756,34 +3622,34 @@ type DeleteInfraRefPayload { query: Query } -"""All input for the `deleteInfraStore` mutation.""" -input DeleteInfraStoreInput { +"""All input for the create `PlatformInfraStore` mutation.""" +input CreatePlatformInfraStoreInput { """ An arbitrary 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 store identifier""" - id: UUID! + """The `PlatformInfraStore` to be created by this mutation.""" + platformInfraStore: PlatformInfraStoreInput! } -"""The output of our delete `InfraStore` mutation.""" -type DeleteInfraStorePayload { +"""The output of our create `PlatformInfraStore` mutation.""" +type CreatePlatformInfraStorePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `InfraStore` that was deleted by this mutation.""" - infraStore: InfraStore + """The `PlatformInfraStore` that was created by this mutation.""" + platformInfraStore: PlatformInfraStore - """An edge for our `InfraStore`. May be used by Relay 1.""" - infraStoreEdge( - """The method to use when ordering `InfraStore`.""" - orderBy: [InfraStoreOrderBy!]! = [PRIMARY_KEY_ASC] - ): InfraStoreEdge + """An edge for our `PlatformInfraStore`. May be used by Relay 1.""" + platformInfraStoreEdge( + """The method to use when ordering `PlatformInfraStore`.""" + orderBy: [PlatformInfraStoreOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformInfraStoreEdge """ Our root query field type. Allows us to run any query from our mutation payload. @@ -3791,32 +3657,34 @@ type DeleteInfraStorePayload { query: Query } -"""All input for the `deleteIntegrationProvider` mutation.""" -input DeleteIntegrationProviderInput { +"""All input for the create `PlatformK8sResourceKind` mutation.""" +input CreatePlatformK8sResourceKindInput { """ An arbitrary 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 `PlatformK8sResourceKind` to be created by this mutation.""" + platformK8sResourceKind: PlatformK8sResourceKindInput! } -"""The output of our delete `IntegrationProvider` mutation.""" -type DeleteIntegrationProviderPayload { +"""The output of our create `PlatformK8sResourceKind` mutation.""" +type CreatePlatformK8sResourceKindPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `IntegrationProvider` that was deleted by this mutation.""" - integrationProvider: IntegrationProvider + """The `PlatformK8sResourceKind` that was created by this mutation.""" + platformK8sResourceKind: PlatformK8sResourceKind - """An edge for our `IntegrationProvider`. May be used by Relay 1.""" - integrationProviderEdge( - """The method to use when ordering `IntegrationProvider`.""" - orderBy: [IntegrationProviderOrderBy!]! = [PRIMARY_KEY_ASC] - ): IntegrationProviderEdge + """An edge for our `PlatformK8sResourceKind`. May be used by Relay 1.""" + platformK8sResourceKindEdge( + """The method to use when ordering `PlatformK8sResourceKind`.""" + orderBy: [PlatformK8sResourceKindOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformK8sResourceKindEdge """ Our root query field type. Allows us to run any query from our mutation payload. @@ -3824,37 +3692,34 @@ type DeleteIntegrationProviderPayload { query: Query } -"""All input for the `deleteNamespaceEvent` mutation.""" -input DeleteNamespaceEventInput { +"""All input for the create `PlatformK8sSpecRule` mutation.""" +input CreatePlatformK8sSpecRuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """Event timestamp (partition key)""" - createdAt: Datetime! - - """Unique event identifier""" - id: UUID! + """The `PlatformK8sSpecRule` to be created by this mutation.""" + platformK8sSpecRule: PlatformK8sSpecRuleInput! } -"""The output of our delete `NamespaceEvent` mutation.""" -type DeleteNamespaceEventPayload { +"""The output of our create `PlatformK8sSpecRule` mutation.""" +type CreatePlatformK8sSpecRulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `NamespaceEvent` that was deleted by this mutation.""" - namespaceEvent: NamespaceEvent + """The `PlatformK8sSpecRule` that was created by this mutation.""" + platformK8sSpecRule: PlatformK8sSpecRule - """An edge for our `NamespaceEvent`. May be used by Relay 1.""" - namespaceEventEdge( - """The method to use when ordering `NamespaceEvent`.""" - orderBy: [NamespaceEventOrderBy!]! = [PRIMARY_KEY_ASC] - ): NamespaceEventEdge + """An edge for our `PlatformK8sSpecRule`. May be used by Relay 1.""" + platformK8sSpecRuleEdge( + """The method to use when ordering `PlatformK8sSpecRule`.""" + orderBy: [PlatformK8sSpecRuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformK8sSpecRuleEdge """ Our root query field type. Allows us to run any query from our mutation payload. @@ -3862,32 +3727,34 @@ type DeleteNamespaceEventPayload { query: Query } -"""All input for the `deleteNamespace` mutation.""" -input DeleteNamespaceInput { +"""All input for the create `PlatformNamespaceEvent` mutation.""" +input CreatePlatformNamespaceEventInput { """ An arbitrary 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 `PlatformNamespaceEvent` to be created by this mutation.""" + platformNamespaceEvent: PlatformNamespaceEventInput! } -"""The output of our delete `Namespace` mutation.""" -type DeleteNamespacePayload { +"""The output of our create `PlatformNamespaceEvent` mutation.""" +type CreatePlatformNamespaceEventPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `Namespace` that was deleted by this mutation.""" - namespace: Namespace + """The `PlatformNamespaceEvent` that was created by this mutation.""" + platformNamespaceEvent: PlatformNamespaceEvent - """An edge for our `Namespace`. May be used by Relay 1.""" - namespaceEdge( - """The method to use when ordering `Namespace`.""" - orderBy: [NamespaceOrderBy!]! = [PRIMARY_KEY_ASC] - ): NamespaceEdge + """An edge for our `PlatformNamespaceEvent`. May be used by Relay 1.""" + platformNamespaceEventEdge( + """The method to use when ordering `PlatformNamespaceEvent`.""" + orderBy: [PlatformNamespaceEventOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformNamespaceEventEdge """ Our root query field type. Allows us to run any query from our mutation payload. @@ -3895,32 +3762,34 @@ type DeleteNamespacePayload { query: Query } -"""All input for the `deletePlatformFunctionApiBinding` mutation.""" -input DeletePlatformFunctionApiBindingInput { +"""All input for the create `PlatformNamespace` mutation.""" +input CreatePlatformNamespaceInput { """ An arbitrary 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 `PlatformNamespace` to be created by this mutation.""" + platformNamespace: PlatformNamespaceInput! } -"""The output of our delete `PlatformFunctionApiBinding` mutation.""" -type DeletePlatformFunctionApiBindingPayload { +"""The output of our create `PlatformNamespace` mutation.""" +type CreatePlatformNamespacePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `PlatformFunctionApiBinding` that was deleted by this mutation.""" - platformFunctionApiBinding: PlatformFunctionApiBinding + """The `PlatformNamespace` that was created by this mutation.""" + platformNamespace: PlatformNamespace - """An edge for our `PlatformFunctionApiBinding`. May be used by Relay 1.""" - platformFunctionApiBindingEdge( - """The method to use when ordering `PlatformFunctionApiBinding`.""" - orderBy: [PlatformFunctionApiBindingOrderBy!]! = [PRIMARY_KEY_ASC] - ): PlatformFunctionApiBindingEdge + """An edge for our `PlatformNamespace`. May be used by Relay 1.""" + platformNamespaceEdge( + """The method to use when ordering `PlatformNamespace`.""" + orderBy: [PlatformNamespaceOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformNamespaceEdge """ Our root query field type. Allows us to run any query from our mutation payload. @@ -3928,36 +3797,34 @@ type DeletePlatformFunctionApiBindingPayload { query: Query } -"""All input for the `deletePlatformFunctionCapabilityBinding` mutation.""" -input DeletePlatformFunctionCapabilityBindingInput { +"""All input for the create `PlatformProposalComment` mutation.""" +input CreatePlatformProposalCommentInput { """ An arbitrary 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 `PlatformProposalComment` to be created by this mutation.""" + platformProposalComment: PlatformProposalCommentInput! } -"""The output of our delete `PlatformFunctionCapabilityBinding` mutation.""" -type DeletePlatformFunctionCapabilityBindingPayload { +"""The output of our create `PlatformProposalComment` mutation.""" +type CreatePlatformProposalCommentPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """ - The `PlatformFunctionCapabilityBinding` that was deleted by this mutation. - """ - platformFunctionCapabilityBinding: PlatformFunctionCapabilityBinding + """The `PlatformProposalComment` that was created by this mutation.""" + platformProposalComment: PlatformProposalComment - """ - An edge for our `PlatformFunctionCapabilityBinding`. May be used by Relay 1. - """ - platformFunctionCapabilityBindingEdge( - """The method to use when ordering `PlatformFunctionCapabilityBinding`.""" - orderBy: [PlatformFunctionCapabilityBindingOrderBy!]! = [PRIMARY_KEY_ASC] - ): PlatformFunctionCapabilityBindingEdge + """An edge for our `PlatformProposalComment`. May be used by Relay 1.""" + platformProposalCommentEdge( + """The method to use when ordering `PlatformProposalComment`.""" + orderBy: [PlatformProposalCommentOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformProposalCommentEdge """ Our root query field type. Allows us to run any query from our mutation payload. @@ -3965,32 +3832,34 @@ type DeletePlatformFunctionCapabilityBindingPayload { query: Query } -"""All input for the `deletePlatformFunctionDefinition` mutation.""" -input DeletePlatformFunctionDefinitionInput { +"""All input for the create `PlatformProposalFileView` mutation.""" +input CreatePlatformProposalFileViewInput { """ An arbitrary 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 `PlatformProposalFileView` to be created by this mutation.""" + platformProposalFileView: PlatformProposalFileViewInput! } -"""The output of our delete `PlatformFunctionDefinition` mutation.""" -type DeletePlatformFunctionDefinitionPayload { +"""The output of our create `PlatformProposalFileView` mutation.""" +type CreatePlatformProposalFileViewPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `PlatformFunctionDefinition` that was deleted by this mutation.""" - platformFunctionDefinition: PlatformFunctionDefinition + """The `PlatformProposalFileView` that was created by this mutation.""" + platformProposalFileView: PlatformProposalFileView - """An edge for our `PlatformFunctionDefinition`. May be used by Relay 1.""" - platformFunctionDefinitionEdge( - """The method to use when ordering `PlatformFunctionDefinition`.""" - orderBy: [PlatformFunctionDefinitionOrderBy!]! = [PRIMARY_KEY_ASC] - ): PlatformFunctionDefinitionEdge + """An edge for our `PlatformProposalFileView`. May be used by Relay 1.""" + platformProposalFileViewEdge( + """The method to use when ordering `PlatformProposalFileView`.""" + orderBy: [PlatformProposalFileViewOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformProposalFileViewEdge """ Our root query field type. Allows us to run any query from our mutation payload. @@ -3998,41 +3867,34 @@ type DeletePlatformFunctionDefinitionPayload { query: Query } -"""All input for the `deletePlatformFunctionDeploymentEvent` mutation.""" -input DeletePlatformFunctionDeploymentEventInput { +"""All input for the create `PlatformProposal` mutation.""" +input CreatePlatformProposalInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """Event timestamp (partition key)""" - createdAt: Datetime! - - """Unique event identifier""" - id: UUID! + """The `PlatformProposal` to be created by this mutation.""" + platformProposal: PlatformProposalInput! } -"""The output of our delete `PlatformFunctionDeploymentEvent` mutation.""" -type DeletePlatformFunctionDeploymentEventPayload { +"""The output of our create `PlatformProposal` mutation.""" +type CreatePlatformProposalPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """ - The `PlatformFunctionDeploymentEvent` that was deleted by this mutation. - """ - platformFunctionDeploymentEvent: PlatformFunctionDeploymentEvent + """The `PlatformProposal` that was created by this mutation.""" + platformProposal: PlatformProposal - """ - An edge for our `PlatformFunctionDeploymentEvent`. May be used by Relay 1. - """ - platformFunctionDeploymentEventEdge( - """The method to use when ordering `PlatformFunctionDeploymentEvent`.""" - orderBy: [PlatformFunctionDeploymentEventOrderBy!]! = [PRIMARY_KEY_ASC] - ): PlatformFunctionDeploymentEventEdge + """An edge for our `PlatformProposal`. May be used by Relay 1.""" + platformProposalEdge( + """The method to use when ordering `PlatformProposal`.""" + orderBy: [PlatformProposalOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformProposalEdge """ Our root query field type. Allows us to run any query from our mutation payload. @@ -4040,32 +3902,34 @@ type DeletePlatformFunctionDeploymentEventPayload { query: Query } -"""All input for the `deletePlatformFunctionDeployment` mutation.""" -input DeletePlatformFunctionDeploymentInput { +"""All input for the create `PlatformProposalReaction` mutation.""" +input CreatePlatformProposalReactionInput { """ An arbitrary 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 `PlatformProposalReaction` to be created by this mutation.""" + platformProposalReaction: PlatformProposalReactionInput! } -"""The output of our delete `PlatformFunctionDeployment` mutation.""" -type DeletePlatformFunctionDeploymentPayload { +"""The output of our create `PlatformProposalReaction` mutation.""" +type CreatePlatformProposalReactionPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `PlatformFunctionDeployment` that was deleted by this mutation.""" - platformFunctionDeployment: PlatformFunctionDeployment + """The `PlatformProposalReaction` that was created by this mutation.""" + platformProposalReaction: PlatformProposalReaction - """An edge for our `PlatformFunctionDeployment`. May be used by Relay 1.""" - platformFunctionDeploymentEdge( - """The method to use when ordering `PlatformFunctionDeployment`.""" - orderBy: [PlatformFunctionDeploymentOrderBy!]! = [PRIMARY_KEY_ASC] - ): PlatformFunctionDeploymentEdge + """An edge for our `PlatformProposalReaction`. May be used by Relay 1.""" + platformProposalReactionEdge( + """The method to use when ordering `PlatformProposalReaction`.""" + orderBy: [PlatformProposalReactionOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformProposalReactionEdge """ Our root query field type. Allows us to run any query from our mutation payload. @@ -4073,39 +3937,34 @@ type DeletePlatformFunctionDeploymentPayload { query: Query } -"""All input for the `deletePlatformFunctionExecutionLog` mutation.""" -input DeletePlatformFunctionExecutionLogInput { +"""All input for the create `PlatformProposalReview` mutation.""" +input CreatePlatformProposalReviewInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """Log entry timestamp (partition key)""" - createdAt: Datetime! - - """Unique log entry identifier""" - id: UUID! + """The `PlatformProposalReview` to be created by this mutation.""" + platformProposalReview: PlatformProposalReviewInput! } -"""The output of our delete `PlatformFunctionExecutionLog` mutation.""" -type DeletePlatformFunctionExecutionLogPayload { +"""The output of our create `PlatformProposalReview` mutation.""" +type CreatePlatformProposalReviewPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `PlatformFunctionExecutionLog` that was deleted by this mutation.""" - platformFunctionExecutionLog: PlatformFunctionExecutionLog + """The `PlatformProposalReview` that was created by this mutation.""" + platformProposalReview: PlatformProposalReview - """ - An edge for our `PlatformFunctionExecutionLog`. May be used by Relay 1. - """ - platformFunctionExecutionLogEdge( - """The method to use when ordering `PlatformFunctionExecutionLog`.""" - orderBy: [PlatformFunctionExecutionLogOrderBy!]! = [PRIMARY_KEY_ASC] - ): PlatformFunctionExecutionLogEdge + """An edge for our `PlatformProposalReview`. May be used by Relay 1.""" + platformProposalReviewEdge( + """The method to use when ordering `PlatformProposalReview`.""" + orderBy: [PlatformProposalReviewOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformProposalReviewEdge """ Our root query field type. Allows us to run any query from our mutation payload. @@ -4113,41 +3972,34 @@ type DeletePlatformFunctionExecutionLogPayload { query: Query } -"""All input for the `deletePlatformFunctionInvocationAttempt` mutation.""" -input DeletePlatformFunctionInvocationAttemptInput { +"""All input for the create `PlatformProposalsChunk` mutation.""" +input CreatePlatformProposalsChunkInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """When the attempt result was recorded (partition key)""" - createdAt: Datetime! - - """Unique attempt identifier""" - id: UUID! + """The `PlatformProposalsChunk` to be created by this mutation.""" + platformProposalsChunk: PlatformProposalsChunkInput! } -"""The output of our delete `PlatformFunctionInvocationAttempt` mutation.""" -type DeletePlatformFunctionInvocationAttemptPayload { +"""The output of our create `PlatformProposalsChunk` mutation.""" +type CreatePlatformProposalsChunkPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """ - The `PlatformFunctionInvocationAttempt` that was deleted by this mutation. - """ - platformFunctionInvocationAttempt: PlatformFunctionInvocationAttempt + """The `PlatformProposalsChunk` that was created by this mutation.""" + platformProposalsChunk: PlatformProposalsChunk - """ - An edge for our `PlatformFunctionInvocationAttempt`. May be used by Relay 1. - """ - platformFunctionInvocationAttemptEdge( - """The method to use when ordering `PlatformFunctionInvocationAttempt`.""" - orderBy: [PlatformFunctionInvocationAttemptOrderBy!]! = [PRIMARY_KEY_ASC] - ): PlatformFunctionInvocationAttemptEdge + """An edge for our `PlatformProposalsChunk`. May be used by Relay 1.""" + platformProposalsChunkEdge( + """The method to use when ordering `PlatformProposalsChunk`.""" + orderBy: [PlatformProposalsChunkOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformProposalsChunkEdge """ Our root query field type. Allows us to run any query from our mutation payload. @@ -4155,37 +4007,34 @@ type DeletePlatformFunctionInvocationAttemptPayload { query: Query } -"""All input for the `deletePlatformFunctionInvocation` mutation.""" -input DeletePlatformFunctionInvocationInput { +"""All input for the create `PlatformRegistryBinding` mutation.""" +input CreatePlatformRegistryBindingInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """Invocation creation timestamp (partition key)""" - createdAt: Datetime! - - """Unique invocation identifier""" - id: UUID! + """The `PlatformRegistryBinding` to be created by this mutation.""" + platformRegistryBinding: PlatformRegistryBindingInput! } -"""The output of our delete `PlatformFunctionInvocation` mutation.""" -type DeletePlatformFunctionInvocationPayload { +"""The output of our create `PlatformRegistryBinding` mutation.""" +type CreatePlatformRegistryBindingPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `PlatformFunctionInvocation` that was deleted by this mutation.""" - platformFunctionInvocation: PlatformFunctionInvocation + """The `PlatformRegistryBinding` that was created by this mutation.""" + platformRegistryBinding: PlatformRegistryBinding - """An edge for our `PlatformFunctionInvocation`. May be used by Relay 1.""" - platformFunctionInvocationEdge( - """The method to use when ordering `PlatformFunctionInvocation`.""" - orderBy: [PlatformFunctionInvocationOrderBy!]! = [PRIMARY_KEY_ASC] - ): PlatformFunctionInvocationEdge + """An edge for our `PlatformRegistryBinding`. May be used by Relay 1.""" + platformRegistryBindingEdge( + """The method to use when ordering `PlatformRegistryBinding`.""" + orderBy: [PlatformRegistryBindingOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformRegistryBindingEdge """ Our root query field type. Allows us to run any query from our mutation payload. @@ -4193,37 +4042,34 @@ type DeletePlatformFunctionInvocationPayload { query: Query } -"""All input for the `deletePlatformInfraCommit` mutation.""" -input DeletePlatformInfraCommitInput { +"""All input for the create `PlatformRegistryGrant` mutation.""" +input CreatePlatformRegistryGrantInput { """ An arbitrary 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 commit identifier""" - id: UUID! - - """Opaque store partition key for the global tier""" - scopeId: UUID! + """The `PlatformRegistryGrant` to be created by this mutation.""" + platformRegistryGrant: PlatformRegistryGrantInput! } -"""The output of our delete `PlatformInfraCommit` mutation.""" -type DeletePlatformInfraCommitPayload { +"""The output of our create `PlatformRegistryGrant` mutation.""" +type CreatePlatformRegistryGrantPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `PlatformInfraCommit` that was deleted by this mutation.""" - platformInfraCommit: PlatformInfraCommit + """The `PlatformRegistryGrant` that was created by this mutation.""" + platformRegistryGrant: PlatformRegistryGrant - """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 + """An edge for our `PlatformRegistryGrant`. May be used by Relay 1.""" + platformRegistryGrantEdge( + """The method to use when ordering `PlatformRegistryGrant`.""" + orderBy: [PlatformRegistryGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformRegistryGrantEdge """ Our root query field type. Allows us to run any query from our mutation payload. @@ -4231,37 +4077,34 @@ type DeletePlatformInfraCommitPayload { query: Query } -"""All input for the `deletePlatformInfraObject` mutation.""" -input DeletePlatformInfraObjectInput { +"""All input for the create `PlatformRegistry` mutation.""" +input CreatePlatformRegistryInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """Content-addressed UUID v5 — deterministic hash of (data, kids, ktree)""" - id: UUID! - - """Opaque store partition key for the global tier""" - scopeId: UUID! + """The `PlatformRegistry` to be created by this mutation.""" + platformRegistry: PlatformRegistryInput! } -"""The output of our delete `PlatformInfraObject` mutation.""" -type DeletePlatformInfraObjectPayload { +"""The output of our create `PlatformRegistry` mutation.""" +type CreatePlatformRegistryPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `PlatformInfraObject` that was deleted by this mutation.""" - platformInfraObject: PlatformInfraObject + """The `PlatformRegistry` that was created by this mutation.""" + platformRegistry: PlatformRegistry - """An edge for our `PlatformInfraObject`. May be used by Relay 1.""" - platformInfraObjectEdge( - """The method to use when ordering `PlatformInfraObject`.""" - orderBy: [PlatformInfraObjectOrderBy!]! = [PRIMARY_KEY_ASC] - ): PlatformInfraObjectEdge + """An edge for our `PlatformRegistry`. May be used by Relay 1.""" + platformRegistryEdge( + """The method to use when ordering `PlatformRegistry`.""" + orderBy: [PlatformRegistryOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformRegistryEdge """ Our root query field type. Allows us to run any query from our mutation payload. @@ -4269,37 +4112,34 @@ type DeletePlatformInfraObjectPayload { query: Query } -"""All input for the `deletePlatformInfraRef` mutation.""" -input DeletePlatformInfraRefInput { +"""All input for the create `PlatformRepositoryEvent` mutation.""" +input CreatePlatformRepositoryEventInput { """ An arbitrary 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 ref identifier""" - id: UUID! - - """Opaque store partition key for the global tier""" - scopeId: UUID! + """The `PlatformRepositoryEvent` to be created by this mutation.""" + platformRepositoryEvent: PlatformRepositoryEventInput! } -"""The output of our delete `PlatformInfraRef` mutation.""" -type DeletePlatformInfraRefPayload { +"""The output of our create `PlatformRepositoryEvent` mutation.""" +type CreatePlatformRepositoryEventPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `PlatformInfraRef` that was deleted by this mutation.""" - platformInfraRef: PlatformInfraRef + """The `PlatformRepositoryEvent` that was created by this mutation.""" + platformRepositoryEvent: PlatformRepositoryEvent - """An edge for our `PlatformInfraRef`. May be used by Relay 1.""" - platformInfraRefEdge( - """The method to use when ordering `PlatformInfraRef`.""" - orderBy: [PlatformInfraRefOrderBy!]! = [PRIMARY_KEY_ASC] - ): PlatformInfraRefEdge + """An edge for our `PlatformRepositoryEvent`. May be used by Relay 1.""" + platformRepositoryEventEdge( + """The method to use when ordering `PlatformRepositoryEvent`.""" + orderBy: [PlatformRepositoryEventOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformRepositoryEventEdge """ Our root query field type. Allows us to run any query from our mutation payload. @@ -4307,34 +4147,34 @@ type DeletePlatformInfraRefPayload { query: Query } -"""All input for the `deletePlatformInfraStore` mutation.""" -input DeletePlatformInfraStoreInput { +"""All input for the create `PlatformRepository` mutation.""" +input CreatePlatformRepositoryInput { """ An arbitrary 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 store identifier""" - id: UUID! + """The `PlatformRepository` to be created by this mutation.""" + platformRepository: PlatformRepositoryInput! } -"""The output of our delete `PlatformInfraStore` mutation.""" -type DeletePlatformInfraStorePayload { +"""The output of our create `PlatformRepository` mutation.""" +type CreatePlatformRepositoryPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `PlatformInfraStore` that was deleted by this mutation.""" - platformInfraStore: PlatformInfraStore + """The `PlatformRepository` that was created by this mutation.""" + platformRepository: PlatformRepository - """An edge for our `PlatformInfraStore`. May be used by Relay 1.""" - platformInfraStoreEdge( - """The method to use when ordering `PlatformInfraStore`.""" - orderBy: [PlatformInfraStoreOrderBy!]! = [PRIMARY_KEY_ASC] - ): PlatformInfraStoreEdge + """An edge for our `PlatformRepository`. May be used by Relay 1.""" + platformRepositoryEdge( + """The method to use when ordering `PlatformRepository`.""" + orderBy: [PlatformRepositoryOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformRepositoryEdge """ Our root query field type. Allows us to run any query from our mutation payload. @@ -4342,37 +4182,38 @@ type DeletePlatformInfraStorePayload { query: Query } -"""All input for the `deletePlatformNamespaceEvent` mutation.""" -input DeletePlatformNamespaceEventInput { +"""All input for the create `PlatformRepositoryRequiredCheck` mutation.""" +input CreatePlatformRepositoryRequiredCheckInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """Event timestamp (partition key)""" - createdAt: Datetime! - - """Unique event identifier""" - id: UUID! + """The `PlatformRepositoryRequiredCheck` to be created by this mutation.""" + platformRepositoryRequiredCheck: PlatformRepositoryRequiredCheckInput! } -"""The output of our delete `PlatformNamespaceEvent` mutation.""" -type DeletePlatformNamespaceEventPayload { +"""The output of our create `PlatformRepositoryRequiredCheck` mutation.""" +type CreatePlatformRepositoryRequiredCheckPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `PlatformNamespaceEvent` that was deleted by this mutation.""" - platformNamespaceEvent: PlatformNamespaceEvent + """ + The `PlatformRepositoryRequiredCheck` that was created by this mutation. + """ + platformRepositoryRequiredCheck: PlatformRepositoryRequiredCheck - """An edge for our `PlatformNamespaceEvent`. May be used by Relay 1.""" - platformNamespaceEventEdge( - """The method to use when ordering `PlatformNamespaceEvent`.""" - orderBy: [PlatformNamespaceEventOrderBy!]! = [PRIMARY_KEY_ASC] - ): PlatformNamespaceEventEdge + """ + An edge for our `PlatformRepositoryRequiredCheck`. May be used by Relay 1. + """ + platformRepositoryRequiredCheckEdge( + """The method to use when ordering `PlatformRepositoryRequiredCheck`.""" + orderBy: [PlatformRepositoryRequiredCheckOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformRepositoryRequiredCheckEdge """ Our root query field type. Allows us to run any query from our mutation payload. @@ -4380,32 +4221,34 @@ type DeletePlatformNamespaceEventPayload { query: Query } -"""All input for the `deletePlatformNamespace` mutation.""" -input DeletePlatformNamespaceInput { +"""All input for the create `PlatformRepositoryWorkflow` mutation.""" +input CreatePlatformRepositoryWorkflowInput { """ An arbitrary 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 `PlatformRepositoryWorkflow` to be created by this mutation.""" + platformRepositoryWorkflow: PlatformRepositoryWorkflowInput! } -"""The output of our delete `PlatformNamespace` mutation.""" -type DeletePlatformNamespacePayload { +"""The output of our create `PlatformRepositoryWorkflow` mutation.""" +type CreatePlatformRepositoryWorkflowPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `PlatformNamespace` that was deleted by this mutation.""" - platformNamespace: PlatformNamespace + """The `PlatformRepositoryWorkflow` that was created by this mutation.""" + platformRepositoryWorkflow: PlatformRepositoryWorkflow - """An edge for our `PlatformNamespace`. May be used by Relay 1.""" - platformNamespaceEdge( - """The method to use when ordering `PlatformNamespace`.""" - orderBy: [PlatformNamespaceOrderBy!]! = [PRIMARY_KEY_ASC] - ): PlatformNamespaceEdge + """An edge for our `PlatformRepositoryWorkflow`. May be used by Relay 1.""" + platformRepositoryWorkflowEdge( + """The method to use when ordering `PlatformRepositoryWorkflow`.""" + orderBy: [PlatformRepositoryWorkflowOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformRepositoryWorkflowEdge """ Our root query field type. Allows us to run any query from our mutation payload. @@ -4413,25 +4256,27 @@ type DeletePlatformNamespacePayload { query: Query } -"""All input for the `deletePlatformResourceDefinition` mutation.""" -input DeletePlatformResourceDefinitionInput { +"""All input for the create `PlatformResourceDefinition` mutation.""" +input CreatePlatformResourceDefinitionInput { """ An arbitrary 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 `PlatformResourceDefinition` to be created by this mutation.""" + platformResourceDefinition: PlatformResourceDefinitionInput! } -"""The output of our delete `PlatformResourceDefinition` mutation.""" -type DeletePlatformResourceDefinitionPayload { +"""The output of our create `PlatformResourceDefinition` mutation.""" +type CreatePlatformResourceDefinitionPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `PlatformResourceDefinition` that was deleted by this mutation.""" + """The `PlatformResourceDefinition` that was created by this mutation.""" platformResourceDefinition: PlatformResourceDefinition """An edge for our `PlatformResourceDefinition`. May be used by Relay 1.""" @@ -4446,30 +4291,27 @@ type DeletePlatformResourceDefinitionPayload { query: Query } -"""All input for the `deletePlatformResourceEvent` mutation.""" -input DeletePlatformResourceEventInput { +"""All input for the create `PlatformResourceEvent` mutation.""" +input CreatePlatformResourceEventInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """Event timestamp (partition key)""" - createdAt: Datetime! - - """Unique event identifier""" - id: UUID! + """The `PlatformResourceEvent` to be created by this mutation.""" + platformResourceEvent: PlatformResourceEventInput! } -"""The output of our delete `PlatformResourceEvent` mutation.""" -type DeletePlatformResourceEventPayload { +"""The output of our create `PlatformResourceEvent` mutation.""" +type CreatePlatformResourceEventPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `PlatformResourceEvent` that was deleted by this mutation.""" + """The `PlatformResourceEvent` that was created by this mutation.""" platformResourceEvent: PlatformResourceEvent """An edge for our `PlatformResourceEvent`. May be used by Relay 1.""" @@ -4484,35 +4326,39 @@ type DeletePlatformResourceEventPayload { query: Query } -"""All input for the `deletePlatformResource` mutation.""" -input DeletePlatformResourceInput { +"""All input for the create `PlatformResource` mutation.""" +input CreatePlatformResourceInput { """ An arbitrary 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 `PlatformResource` to be created by this mutation.""" + platformResource: PlatformResourceInput! } -"""All input for the `deletePlatformResourceInstallation` mutation.""" -input DeletePlatformResourceInstallationInput { +"""All input for the create `PlatformResourceInstallation` mutation.""" +input CreatePlatformResourceInstallationInput { """ An arbitrary 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 `PlatformResourceInstallation` to be created by this mutation.""" + platformResourceInstallation: PlatformResourceInstallationInput! } -"""The output of our delete `PlatformResourceInstallation` mutation.""" -type DeletePlatformResourceInstallationPayload { +"""The output of our create `PlatformResourceInstallation` mutation.""" +type CreatePlatformResourceInstallationPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `PlatformResourceInstallation` that was deleted by this mutation.""" + """The `PlatformResourceInstallation` that was created by this mutation.""" platformResourceInstallation: PlatformResourceInstallation """ @@ -4529,15 +4375,15 @@ type DeletePlatformResourceInstallationPayload { query: Query } -"""The output of our delete `PlatformResource` mutation.""" -type DeletePlatformResourcePayload { +"""The output of our create `PlatformResource` mutation.""" +type CreatePlatformResourcePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `PlatformResource` that was deleted by this mutation.""" + """The `PlatformResource` that was created by this mutation.""" platformResource: PlatformResource """An edge for our `PlatformResource`. May be used by Relay 1.""" @@ -4552,27 +4398,27 @@ type DeletePlatformResourcePayload { query: Query } -"""All input for the `deletePlatformResourceStatusCheck` mutation.""" -input DeletePlatformResourceStatusCheckInput { +"""All input for the create `PlatformResourceStatusCheck` mutation.""" +input CreatePlatformResourceStatusCheckInput { """ An arbitrary 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 status check identifier""" - id: UUID! + """The `PlatformResourceStatusCheck` to be created by this mutation.""" + platformResourceStatusCheck: PlatformResourceStatusCheckInput! } -"""The output of our delete `PlatformResourceStatusCheck` mutation.""" -type DeletePlatformResourceStatusCheckPayload { +"""The output of our create `PlatformResourceStatusCheck` mutation.""" +type CreatePlatformResourceStatusCheckPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `PlatformResourceStatusCheck` that was deleted by this mutation.""" + """The `PlatformResourceStatusCheck` that was created by this mutation.""" platformResourceStatusCheck: PlatformResourceStatusCheck """An edge for our `PlatformResourceStatusCheck`. May be used by Relay 1.""" @@ -4587,30 +4433,27 @@ type DeletePlatformResourceStatusCheckPayload { query: Query } -"""All input for the `deletePlatformResourceUsageLog` mutation.""" -input DeletePlatformResourceUsageLogInput { +"""All input for the create `PlatformResourceUsageLog` mutation.""" +input CreatePlatformResourceUsageLogInput { """ An arbitrary 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 sample identifier""" - id: UUID! - - """Sample timestamp (partition key) — end of the measured interval""" - sampledAt: Datetime! + """The `PlatformResourceUsageLog` to be created by this mutation.""" + platformResourceUsageLog: PlatformResourceUsageLogInput! } -"""The output of our delete `PlatformResourceUsageLog` mutation.""" -type DeletePlatformResourceUsageLogPayload { +"""The output of our create `PlatformResourceUsageLog` mutation.""" +type CreatePlatformResourceUsageLogPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `PlatformResourceUsageLog` that was deleted by this mutation.""" + """The `PlatformResourceUsageLog` that was created by this mutation.""" platformResourceUsageLog: PlatformResourceUsageLog """An edge for our `PlatformResourceUsageLog`. May be used by Relay 1.""" @@ -4625,30 +4468,27 @@ type DeletePlatformResourceUsageLogPayload { query: Query } -"""All input for the `deletePlatformResourceUsageSummary` mutation.""" -input DeletePlatformResourceUsageSummaryInput { +"""All input for the create `PlatformResourceUsageSummary` mutation.""" +input CreatePlatformResourceUsageSummaryInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """Day this summary covers (partition key)""" - date: Date! - - """Unique usage summary identifier""" - id: UUID! + """The `PlatformResourceUsageSummary` to be created by this mutation.""" + platformResourceUsageSummary: PlatformResourceUsageSummaryInput! } -"""The output of our delete `PlatformResourceUsageSummary` mutation.""" -type DeletePlatformResourceUsageSummaryPayload { +"""The output of our create `PlatformResourceUsageSummary` mutation.""" +type CreatePlatformResourceUsageSummaryPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `PlatformResourceUsageSummary` that was deleted by this mutation.""" + """The `PlatformResourceUsageSummary` that was created by this mutation.""" platformResourceUsageSummary: PlatformResourceUsageSummary """ @@ -4665,25 +4505,27 @@ type DeletePlatformResourceUsageSummaryPayload { query: Query } -"""All input for the `deletePlatformWebhookEndpoint` mutation.""" -input DeletePlatformWebhookEndpointInput { +"""All input for the create `PlatformWebhookEndpoint` mutation.""" +input CreatePlatformWebhookEndpointInput { """ An arbitrary 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 `PlatformWebhookEndpoint` to be created by this mutation.""" + platformWebhookEndpoint: PlatformWebhookEndpointInput! } -"""The output of our delete `PlatformWebhookEndpoint` mutation.""" -type DeletePlatformWebhookEndpointPayload { +"""The output of our create `PlatformWebhookEndpoint` mutation.""" +type CreatePlatformWebhookEndpointPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `PlatformWebhookEndpoint` that was deleted by this mutation.""" + """The `PlatformWebhookEndpoint` that was created by this mutation.""" platformWebhookEndpoint: PlatformWebhookEndpoint """An edge for our `PlatformWebhookEndpoint`. May be used by Relay 1.""" @@ -4698,25 +4540,27 @@ type DeletePlatformWebhookEndpointPayload { query: Query } -"""All input for the `deletePlatformWebhookEvent` mutation.""" -input DeletePlatformWebhookEventInput { +"""All input for the create `PlatformWebhookEvent` mutation.""" +input CreatePlatformWebhookEventInput { """ An arbitrary 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 `PlatformWebhookEvent` to be created by this mutation.""" + platformWebhookEvent: PlatformWebhookEventInput! } -"""The output of our delete `PlatformWebhookEvent` mutation.""" -type DeletePlatformWebhookEventPayload { +"""The output of our create `PlatformWebhookEvent` mutation.""" +type CreatePlatformWebhookEventPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `PlatformWebhookEvent` that was deleted by this mutation.""" + """The `PlatformWebhookEvent` that was created by this mutation.""" platformWebhookEvent: PlatformWebhookEvent """An edge for our `PlatformWebhookEvent`. May be used by Relay 1.""" @@ -4731,195 +4575,230 @@ type DeletePlatformWebhookEventPayload { query: Query } -"""All input for the `deleteResourceDefinition` mutation.""" -input DeleteResourceDefinitionInput { +"""All input for the create `ProposalComment` mutation.""" +input CreateProposalCommentInput { """ An arbitrary 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 `ProposalComment` to be created by this mutation.""" + proposalComment: ProposalCommentInput! } -"""The output of our delete `ResourceDefinition` mutation.""" -type DeleteResourceDefinitionPayload { +"""The output of our create `ProposalComment` mutation.""" +type CreateProposalCommentPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String + """The `ProposalComment` that was created by this mutation.""" + proposalComment: ProposalComment + + """An edge for our `ProposalComment`. May be used by Relay 1.""" + proposalCommentEdge( + """The method to use when ordering `ProposalComment`.""" + orderBy: [ProposalCommentOrderBy!]! = [PRIMARY_KEY_ASC] + ): ProposalCommentEdge + """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - - """The `ResourceDefinition` that was deleted by this mutation.""" - resourceDefinition: ResourceDefinition - - """An edge for our `ResourceDefinition`. May be used by Relay 1.""" - resourceDefinitionEdge( - """The method to use when ordering `ResourceDefinition`.""" - orderBy: [ResourceDefinitionOrderBy!]! = [PRIMARY_KEY_ASC] - ): ResourceDefinitionEdge } -"""All input for the `deleteResourceEvent` mutation.""" -input DeleteResourceEventInput { +"""All input for the create `ProposalFileView` mutation.""" +input CreateProposalFileViewInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """Event timestamp (partition key)""" - createdAt: Datetime! - - """Unique event identifier""" - id: UUID! + """The `ProposalFileView` to be created by this mutation.""" + proposalFileView: ProposalFileViewInput! } -"""The output of our delete `ResourceEvent` mutation.""" -type DeleteResourceEventPayload { +"""The output of our create `ProposalFileView` mutation.""" +type CreateProposalFileViewPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String + """The `ProposalFileView` that was created by this mutation.""" + proposalFileView: ProposalFileView + + """An edge for our `ProposalFileView`. May be used by Relay 1.""" + proposalFileViewEdge( + """The method to use when ordering `ProposalFileView`.""" + orderBy: [ProposalFileViewOrderBy!]! = [PRIMARY_KEY_ASC] + ): ProposalFileViewEdge + """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - - """The `ResourceEvent` that was deleted by this mutation.""" - resourceEvent: ResourceEvent - - """An edge for our `ResourceEvent`. May be used by Relay 1.""" - resourceEventEdge( - """The method to use when ordering `ResourceEvent`.""" - orderBy: [ResourceEventOrderBy!]! = [PRIMARY_KEY_ASC] - ): ResourceEventEdge } -"""All input for the `deleteResource` mutation.""" -input DeleteResourceInput { +"""All input for the create `Proposal` mutation.""" +input CreateProposalInput { """ An arbitrary 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 `Proposal` to be created by this mutation.""" + proposal: ProposalInput! } -"""All input for the `deleteResourceInstallation` mutation.""" -input DeleteResourceInstallationInput { +"""The output of our create `Proposal` mutation.""" +type CreateProposalPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `Proposal` that was created by this mutation.""" + proposal: Proposal + + """An edge for our `Proposal`. May be used by Relay 1.""" + proposalEdge( + """The method to use when ordering `Proposal`.""" + orderBy: [ProposalOrderBy!]! = [PRIMARY_KEY_ASC] + ): ProposalEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the create `ProposalReaction` mutation.""" +input CreateProposalReactionInput { """ An arbitrary 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 `ProposalReaction` to be created by this mutation.""" + proposalReaction: ProposalReactionInput! } -"""The output of our delete `ResourceInstallation` mutation.""" -type DeleteResourceInstallationPayload { +"""The output of our create `ProposalReaction` mutation.""" +type CreateProposalReactionPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String + """The `ProposalReaction` that was created by this mutation.""" + proposalReaction: ProposalReaction + + """An edge for our `ProposalReaction`. May be used by Relay 1.""" + proposalReactionEdge( + """The method to use when ordering `ProposalReaction`.""" + orderBy: [ProposalReactionOrderBy!]! = [PRIMARY_KEY_ASC] + ): ProposalReactionEdge + """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query +} - """The `ResourceInstallation` that was deleted by this mutation.""" - resourceInstallation: ResourceInstallation +"""All input for the create `ProposalReview` mutation.""" +input CreateProposalReviewInput { + """ + An arbitrary 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 edge for our `ResourceInstallation`. May be used by Relay 1.""" - resourceInstallationEdge( - """The method to use when ordering `ResourceInstallation`.""" - orderBy: [ResourceInstallationOrderBy!]! = [PRIMARY_KEY_ASC] - ): ResourceInstallationEdge + """The `ProposalReview` to be created by this mutation.""" + proposalReview: ProposalReviewInput! } -"""The output of our delete `Resource` mutation.""" -type DeleteResourcePayload { +"""The output of our create `ProposalReview` mutation.""" +type CreateProposalReviewPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String + """The `ProposalReview` that was created by this mutation.""" + proposalReview: ProposalReview + + """An edge for our `ProposalReview`. May be used by Relay 1.""" + proposalReviewEdge( + """The method to use when ordering `ProposalReview`.""" + orderBy: [ProposalReviewOrderBy!]! = [PRIMARY_KEY_ASC] + ): ProposalReviewEdge + """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - - """The `Resource` that was deleted by this mutation.""" - resource: Resource - - """An edge for our `Resource`. May be used by Relay 1.""" - resourceEdge( - """The method to use when ordering `Resource`.""" - orderBy: [ResourceOrderBy!]! = [PRIMARY_KEY_ASC] - ): ResourceEdge } -"""All input for the `deleteResourceStatusCheck` mutation.""" -input DeleteResourceStatusCheckInput { +"""All input for the create `ProposalsChunk` mutation.""" +input CreateProposalsChunkInput { """ An arbitrary 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 status check identifier""" - id: UUID! + """The `ProposalsChunk` to be created by this mutation.""" + proposalsChunk: ProposalsChunkInput! } -"""The output of our delete `ResourceStatusCheck` mutation.""" -type DeleteResourceStatusCheckPayload { +"""The output of our create `ProposalsChunk` mutation.""" +type CreateProposalsChunkPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String + """The `ProposalsChunk` that was created by this mutation.""" + proposalsChunk: ProposalsChunk + + """An edge for our `ProposalsChunk`. May be used by Relay 1.""" + proposalsChunkEdge( + """The method to use when ordering `ProposalsChunk`.""" + orderBy: [ProposalsChunkOrderBy!]! = [PRIMARY_KEY_ASC] + ): ProposalsChunkEdge + """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - - """The `ResourceStatusCheck` that was deleted by this mutation.""" - resourceStatusCheck: ResourceStatusCheck - - """An edge for our `ResourceStatusCheck`. May be used by Relay 1.""" - resourceStatusCheckEdge( - """The method to use when ordering `ResourceStatusCheck`.""" - orderBy: [ResourceStatusCheckOrderBy!]! = [PRIMARY_KEY_ASC] - ): ResourceStatusCheckEdge } -"""All input for the `deleteResourceUsageLog` mutation.""" -input DeleteResourceUsageLogInput { +"""All input for the create `RegistryBinding` mutation.""" +input CreateRegistryBindingInput { """ An arbitrary 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 sample identifier""" - id: UUID! - - """Sample timestamp (partition key) — end of the measured interval""" - sampledAt: Datetime! + """The `RegistryBinding` to be created by this mutation.""" + registryBinding: RegistryBindingInput! } -"""The output of our delete `ResourceUsageLog` mutation.""" -type DeleteResourceUsageLogPayload { +"""The output of our create `RegistryBinding` mutation.""" +type CreateRegistryBindingPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. @@ -4931,33 +4810,30 @@ type DeleteResourceUsageLogPayload { """ query: Query - """The `ResourceUsageLog` that was deleted by this mutation.""" - resourceUsageLog: ResourceUsageLog + """The `RegistryBinding` that was created by this mutation.""" + registryBinding: RegistryBinding - """An edge for our `ResourceUsageLog`. May be used by Relay 1.""" - resourceUsageLogEdge( - """The method to use when ordering `ResourceUsageLog`.""" - orderBy: [ResourceUsageLogOrderBy!]! = [PRIMARY_KEY_ASC] - ): ResourceUsageLogEdge + """An edge for our `RegistryBinding`. May be used by Relay 1.""" + registryBindingEdge( + """The method to use when ordering `RegistryBinding`.""" + orderBy: [RegistryBindingOrderBy!]! = [PRIMARY_KEY_ASC] + ): RegistryBindingEdge } -"""All input for the `deleteResourceUsageSummary` mutation.""" -input DeleteResourceUsageSummaryInput { +"""All input for the create `RegistryGrant` mutation.""" +input CreateRegistryGrantInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """Day this summary covers (partition key)""" - date: Date! - - """Unique usage summary identifier""" - id: UUID! + """The `RegistryGrant` to be created by this mutation.""" + registryGrant: RegistryGrantInput! } -"""The output of our delete `ResourceUsageSummary` mutation.""" -type DeleteResourceUsageSummaryPayload { +"""The output of our create `RegistryGrant` mutation.""" +type CreateRegistryGrantPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. @@ -4969,28 +4845,30 @@ type DeleteResourceUsageSummaryPayload { """ query: Query - """The `ResourceUsageSummary` that was deleted by this mutation.""" - resourceUsageSummary: ResourceUsageSummary + """The `RegistryGrant` that was created by this mutation.""" + registryGrant: RegistryGrant - """An edge for our `ResourceUsageSummary`. May be used by Relay 1.""" - resourceUsageSummaryEdge( - """The method to use when ordering `ResourceUsageSummary`.""" - orderBy: [ResourceUsageSummaryOrderBy!]! = [PRIMARY_KEY_ASC] - ): ResourceUsageSummaryEdge + """An edge for our `RegistryGrant`. May be used by Relay 1.""" + registryGrantEdge( + """The method to use when ordering `RegistryGrant`.""" + orderBy: [RegistryGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): RegistryGrantEdge } -"""All input for the `deleteWebhookEndpoint` mutation.""" -input DeleteWebhookEndpointInput { +"""All input for the create `Registry` mutation.""" +input CreateRegistryInput { """ An arbitrary 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 `Registry` to be created by this mutation.""" + registry: RegistryInput! } -"""The output of our delete `WebhookEndpoint` mutation.""" -type DeleteWebhookEndpointPayload { +"""The output of our create `Registry` mutation.""" +type CreateRegistryPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. @@ -5002,28 +4880,30 @@ type DeleteWebhookEndpointPayload { """ query: Query - """The `WebhookEndpoint` that was deleted by this mutation.""" - webhookEndpoint: WebhookEndpoint + """The `Registry` that was created by this mutation.""" + registry: Registry - """An edge for our `WebhookEndpoint`. May be used by Relay 1.""" - webhookEndpointEdge( - """The method to use when ordering `WebhookEndpoint`.""" - orderBy: [WebhookEndpointOrderBy!]! = [PRIMARY_KEY_ASC] - ): WebhookEndpointEdge + """An edge for our `Registry`. May be used by Relay 1.""" + registryEdge( + """The method to use when ordering `Registry`.""" + orderBy: [RegistryOrderBy!]! = [PRIMARY_KEY_ASC] + ): RegistryEdge } -"""All input for the `deleteWebhookEvent` mutation.""" -input DeleteWebhookEventInput { +"""All input for the create `RepositoryEvent` mutation.""" +input CreateRepositoryEventInput { """ An arbitrary 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 `RepositoryEvent` to be created by this mutation.""" + repositoryEvent: RepositoryEventInput! } -"""The output of our delete `WebhookEvent` mutation.""" -type DeleteWebhookEventPayload { +"""The output of our create `RepositoryEvent` mutation.""" +type CreateRepositoryEventPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. @@ -5035,473 +4915,665 @@ type DeleteWebhookEventPayload { """ query: Query - """The `WebhookEvent` that was deleted by this mutation.""" - webhookEvent: WebhookEvent + """The `RepositoryEvent` that was created by this mutation.""" + repositoryEvent: RepositoryEvent - """An edge for our `WebhookEvent`. May be used by Relay 1.""" - webhookEventEdge( - """The method to use when ordering `WebhookEvent`.""" - orderBy: [WebhookEventOrderBy!]! = [PRIMARY_KEY_ASC] - ): WebhookEventEdge + """An edge for our `RepositoryEvent`. May be used by Relay 1.""" + repositoryEventEdge( + """The method to use when ordering `RepositoryEvent`.""" + orderBy: [RepositoryEventOrderBy!]! = [PRIMARY_KEY_ASC] + ): RepositoryEventEdge } -""" -Join table binding function definitions to API endpoints with per-binding alias and config -""" -type FunctionApiBinding { - """Binding alias (e.g. default, staging, production)""" - alias: String! +"""All input for the create `Repository` mutation.""" +input CreateRepositoryInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String - """API endpoint this function is bound to""" - apiId: UUID! + """The `Repository` to be created by this mutation.""" + repository: RepositoryInput! +} - """Per-binding configuration (overrides, routing rules, etc.)""" - config: JSON! - createdAt: Datetime +"""The output of our create `Repository` mutation.""" +type CreateRepositoryPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String """ - Reads a single `FunctionDefinition` that is related to this `FunctionApiBinding`. + Our root query field type. Allows us to run any query from our mutation payload. """ - functionDefinition: FunctionDefinition + query: Query - """Function definition this binding belongs to""" - functionDefinitionId: UUID! + """The `Repository` that was created by this mutation.""" + repository: Repository - """Reads and enables pagination through a set of `FunctionInvocation`.""" - functionInvocationsByApiBindingId( - """Read all values in the set after (below) this cursor.""" - after: Cursor + """An edge for our `Repository`. May be used by Relay 1.""" + repositoryEdge( + """The method to use when ordering `Repository`.""" + orderBy: [RepositoryOrderBy!]! = [PRIMARY_KEY_ASC] + ): RepositoryEdge +} - """Read all values in the set before (above) this cursor.""" - before: Cursor +"""All input for the create `RepositoryRequiredCheck` mutation.""" +input CreateRepositoryRequiredCheckInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String - """Only read the first `n` values of the set.""" - first: Int + """The `RepositoryRequiredCheck` to be created by this mutation.""" + repositoryRequiredCheck: RepositoryRequiredCheckInput! +} - """Only read the last `n` values of the set.""" - last: Int +"""The output of our create `RepositoryRequiredCheck` mutation.""" +type CreateRepositoryRequiredCheckPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query - """The method to use when ordering `FunctionInvocation`.""" - orderBy: [FunctionInvocationOrderBy!] = [PRIMARY_KEY_ASC] + """The `RepositoryRequiredCheck` that was created by this mutation.""" + repositoryRequiredCheck: RepositoryRequiredCheck - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: FunctionInvocationFilter - ): FunctionInvocationConnection! - id: UUID! - updatedAt: Datetime + """An edge for our `RepositoryRequiredCheck`. May be used by Relay 1.""" + repositoryRequiredCheckEdge( + """The method to use when ordering `RepositoryRequiredCheck`.""" + orderBy: [RepositoryRequiredCheckOrderBy!]! = [PRIMARY_KEY_ASC] + ): RepositoryRequiredCheckEdge } -"""A connection to a list of `FunctionApiBinding` values.""" -type FunctionApiBindingConnection { +"""All input for the create `RepositoryWorkflow` mutation.""" +input CreateRepositoryWorkflowInput { """ - A list of edges which contains the `FunctionApiBinding` and cursor to aid in pagination. + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - edges: [FunctionApiBindingEdge]! + clientMutationId: String - """A list of `FunctionApiBinding` objects.""" - nodes: [FunctionApiBinding]! + """The `RepositoryWorkflow` to be created by this mutation.""" + repositoryWorkflow: RepositoryWorkflowInput! +} - """Information to aid in pagination.""" - pageInfo: PageInfo! +"""The output of our create `RepositoryWorkflow` mutation.""" +type CreateRepositoryWorkflowPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String """ - The count of *all* `FunctionApiBinding` you could get from the connection. + Our root query field type. Allows us to run any query from our mutation payload. """ - totalCount: Int! -} + query: Query -"""A `FunctionApiBinding` edge in the connection.""" -type FunctionApiBindingEdge { - """A cursor for use in pagination.""" - cursor: Cursor + """The `RepositoryWorkflow` that was created by this mutation.""" + repositoryWorkflow: RepositoryWorkflow - """The `FunctionApiBinding` at the end of the edge.""" - node: FunctionApiBinding + """An edge for our `RepositoryWorkflow`. May be used by Relay 1.""" + repositoryWorkflowEdge( + """The method to use when ordering `RepositoryWorkflow`.""" + orderBy: [RepositoryWorkflowOrderBy!]! = [PRIMARY_KEY_ASC] + ): RepositoryWorkflowEdge } -""" -A filter to be used against `FunctionApiBinding` object types. All fields are combined with a logical ‘and.’ -""" -input FunctionApiBindingFilter { - """Filter by the object’s `alias` field.""" - alias: StringFilter +"""All input for the create `ResourceDefinition` mutation.""" +input CreateResourceDefinitionInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String - """Checks for all expressions in this list.""" - and: [FunctionApiBindingFilter!] + """The `ResourceDefinition` to be created by this mutation.""" + resourceDefinition: ResourceDefinitionInput! +} - """Filter by the object’s `apiId` field.""" - apiId: UUIDFilter +"""The output of our create `ResourceDefinition` mutation.""" +type CreateResourceDefinitionPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """Filter by the object’s `config` field.""" - config: JSONFilter + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter + """The `ResourceDefinition` that was created by this mutation.""" + resourceDefinition: ResourceDefinition - """Filter by the object’s `functionDefinition` relation.""" - functionDefinition: FunctionDefinitionFilter - - """Filter by the object’s `functionDefinitionId` field.""" - functionDefinitionId: UUIDFilter - - """Filter by the object’s `functionInvocationsByApiBindingId` relation.""" - functionInvocationsByApiBindingId: FunctionApiBindingToManyFunctionInvocationFilter - - """`functionInvocationsByApiBindingId` exist.""" - functionInvocationsByApiBindingIdExist: Boolean - - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Negates the expression.""" - not: FunctionApiBindingFilter - - """Checks for any expressions in this list.""" - or: [FunctionApiBindingFilter!] - - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter + """An edge for our `ResourceDefinition`. May be used by Relay 1.""" + resourceDefinitionEdge( + """The method to use when ordering `ResourceDefinition`.""" + orderBy: [ResourceDefinitionOrderBy!]! = [PRIMARY_KEY_ASC] + ): ResourceDefinitionEdge } -"""An input for mutations affecting `FunctionApiBinding`""" -input FunctionApiBindingInput { - """Binding alias (e.g. default, staging, production)""" - alias: String - - """API endpoint this function is bound to""" - apiId: UUID! - - """Per-binding configuration (overrides, routing rules, etc.)""" - config: JSON - createdAt: Datetime - - """Function definition this binding belongs to""" - functionDefinitionId: UUID! - id: UUID - updatedAt: Datetime -} +"""All input for the create `ResourceEvent` mutation.""" +input CreateResourceEventInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String -"""Methods to use when ordering `FunctionApiBinding`.""" -enum FunctionApiBindingOrderBy { - ALIAS_ASC - ALIAS_DESC - API_ID_ASC - API_ID_DESC - CONFIG_ASC - CONFIG_DESC - CREATED_AT_ASC - CREATED_AT_DESC - FUNCTION_DEFINITION_ID_ASC - FUNCTION_DEFINITION_ID_DESC - ID_ASC - ID_DESC - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC + """The `ResourceEvent` to be created by this mutation.""" + resourceEvent: ResourceEventInput! } -""" -Represents an update to a `FunctionApiBinding`. Fields that are set will be updated. -""" -input FunctionApiBindingPatch { - """Binding alias (e.g. default, staging, production)""" - alias: String +"""The output of our create `ResourceEvent` mutation.""" +type CreateResourceEventPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """API endpoint this function is bound to""" - apiId: UUID + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query - """Per-binding configuration (overrides, routing rules, etc.)""" - config: JSON - createdAt: Datetime + """The `ResourceEvent` that was created by this mutation.""" + resourceEvent: ResourceEvent - """Function definition this binding belongs to""" - functionDefinitionId: UUID - id: UUID - updatedAt: Datetime + """An edge for our `ResourceEvent`. May be used by Relay 1.""" + resourceEventEdge( + """The method to use when ordering `ResourceEvent`.""" + orderBy: [ResourceEventOrderBy!]! = [PRIMARY_KEY_ASC] + ): ResourceEventEdge } -""" -A filter to be used against many `FunctionInvocation` object types. All fields are combined with a logical ‘and.’ -""" -input FunctionApiBindingToManyFunctionInvocationFilter { - """Filters to entities where every related entity matches.""" - every: FunctionInvocationFilter - - """Filters to entities where no related entity matches.""" - none: FunctionInvocationFilter +"""All input for the create `Resource` mutation.""" +input CreateResourceInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String - """Filters to entities where at least one related entity matches.""" - some: FunctionInvocationFilter + """The `Resource` to be created by this mutation.""" + resource: ResourceInput! } -""" -Capability bindings — declarative grants of typed resource capabilities (buckets) to function/graph holders per lifecycle -""" -type FunctionCapabilityBinding { - """Bucket this capability targets (exactly one typed target is set)""" - bucketId: UUID - createdAt: Datetime - - """Database that owns this resource (database-scoped isolation)""" - databaseId: UUID! - +"""All input for the create `ResourceInstallation` mutation.""" +input CreateResourceInstallationInput { """ - Reads a single `FunctionDefinition` that is related to this `FunctionCapabilityBinding`. + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - function: FunctionDefinition + clientMutationId: String + + """The `ResourceInstallation` to be created by this mutation.""" + resourceInstallation: ResourceInstallationInput! +} +"""The output of our create `ResourceInstallation` mutation.""" +type CreateResourceInstallationPayload { """ - Function definition holding this capability (exactly one of function_id / graph_id is set) + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - functionId: UUID + clientMutationId: String """ - Flow graph holding this capability (exactly one of function_id / graph_id is set) + Our root query field type. Allows us to run any query from our mutation payload. """ - graphId: UUID - id: UUID! + query: Query + + """The `ResourceInstallation` that was created by this mutation.""" + resourceInstallation: ResourceInstallation + + """An edge for our `ResourceInstallation`. May be used by Relay 1.""" + resourceInstallationEdge( + """The method to use when ordering `ResourceInstallation`.""" + orderBy: [ResourceInstallationOrderBy!]! = [PRIMARY_KEY_ASC] + ): ResourceInstallationEdge +} +"""The output of our create `Resource` mutation.""" +type CreateResourcePayload { """ - Runtime handle the holder addresses this capability by (e.g. default, scratch) + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - key: String! + clientMutationId: String """ - Lifecycle the capability applies to: deployment (build/deploy time), execution (per invocation), root_execution (root of a graph execution tree) + Our root query field type. Allows us to run any query from our mutation payload. """ - lifecycle: String! + query: Query - """Per-binding annotations (no runtime semantics)""" - metadata: JSON - updatedAt: Datetime + """The `Resource` that was created by this mutation.""" + resource: Resource + + """An edge for our `Resource`. May be used by Relay 1.""" + resourceEdge( + """The method to use when ordering `Resource`.""" + orderBy: [ResourceOrderBy!]! = [PRIMARY_KEY_ASC] + ): ResourceEdge } -"""A connection to a list of `FunctionCapabilityBinding` values.""" -type FunctionCapabilityBindingConnection { +"""All input for the create `ResourceStatusCheck` mutation.""" +input CreateResourceStatusCheckInput { """ - A list of edges which contains the `FunctionCapabilityBinding` and cursor to aid in pagination. + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - edges: [FunctionCapabilityBindingEdge]! + clientMutationId: String - """A list of `FunctionCapabilityBinding` objects.""" - nodes: [FunctionCapabilityBinding]! + """The `ResourceStatusCheck` to be created by this mutation.""" + resourceStatusCheck: ResourceStatusCheckInput! +} - """Information to aid in pagination.""" - pageInfo: PageInfo! +"""The output of our create `ResourceStatusCheck` mutation.""" +type CreateResourceStatusCheckPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String """ - The count of *all* `FunctionCapabilityBinding` you could get from the connection. + Our root query field type. Allows us to run any query from our mutation payload. """ - totalCount: Int! -} + query: Query -"""A `FunctionCapabilityBinding` edge in the connection.""" -type FunctionCapabilityBindingEdge { - """A cursor for use in pagination.""" - cursor: Cursor + """The `ResourceStatusCheck` that was created by this mutation.""" + resourceStatusCheck: ResourceStatusCheck - """The `FunctionCapabilityBinding` at the end of the edge.""" - node: FunctionCapabilityBinding + """An edge for our `ResourceStatusCheck`. May be used by Relay 1.""" + resourceStatusCheckEdge( + """The method to use when ordering `ResourceStatusCheck`.""" + orderBy: [ResourceStatusCheckOrderBy!]! = [PRIMARY_KEY_ASC] + ): ResourceStatusCheckEdge } -""" -A filter to be used against `FunctionCapabilityBinding` object types. All fields are combined with a logical ‘and.’ -""" -input FunctionCapabilityBindingFilter { - """Checks for all expressions in this list.""" - and: [FunctionCapabilityBindingFilter!] - - """Filter by the object’s `bucketId` field.""" - bucketId: UUIDFilter +"""All input for the create `ResourceUsageLog` mutation.""" +input CreateResourceUsageLogInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter + """The `ResourceUsageLog` to be created by this mutation.""" + resourceUsageLog: ResourceUsageLogInput! +} - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter +"""The output of our create `ResourceUsageLog` mutation.""" +type CreateResourceUsageLogPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """Filter by the object’s `function` relation.""" - function: FunctionDefinitionFilter + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query - """A related `function` exists.""" - functionExists: Boolean + """The `ResourceUsageLog` that was created by this mutation.""" + resourceUsageLog: ResourceUsageLog - """Filter by the object’s `functionId` field.""" - functionId: UUIDFilter + """An edge for our `ResourceUsageLog`. May be used by Relay 1.""" + resourceUsageLogEdge( + """The method to use when ordering `ResourceUsageLog`.""" + orderBy: [ResourceUsageLogOrderBy!]! = [PRIMARY_KEY_ASC] + ): ResourceUsageLogEdge +} - """Filter by the object’s `graphId` field.""" - graphId: UUIDFilter +"""All input for the create `ResourceUsageSummary` mutation.""" +input CreateResourceUsageSummaryInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String - """Filter by the object’s `id` field.""" - id: UUIDFilter + """The `ResourceUsageSummary` to be created by this mutation.""" + resourceUsageSummary: ResourceUsageSummaryInput! +} - """Filter by the object’s `key` field.""" - key: StringFilter +"""The output of our create `ResourceUsageSummary` mutation.""" +type CreateResourceUsageSummaryPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """Filter by the object’s `lifecycle` field.""" - lifecycle: StringFilter + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query - """Filter by the object’s `metadata` field.""" - metadata: JSONFilter + """The `ResourceUsageSummary` that was created by this mutation.""" + resourceUsageSummary: ResourceUsageSummary - """Negates the expression.""" - not: FunctionCapabilityBindingFilter + """An edge for our `ResourceUsageSummary`. May be used by Relay 1.""" + resourceUsageSummaryEdge( + """The method to use when ordering `ResourceUsageSummary`.""" + orderBy: [ResourceUsageSummaryOrderBy!]! = [PRIMARY_KEY_ASC] + ): ResourceUsageSummaryEdge +} - """Checks for any expressions in this list.""" - or: [FunctionCapabilityBindingFilter!] +"""All input for the create `WebhookEndpoint` mutation.""" +input CreateWebhookEndpointInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter + """The `WebhookEndpoint` to be created by this mutation.""" + webhookEndpoint: WebhookEndpointInput! } -"""An input for mutations affecting `FunctionCapabilityBinding`""" -input FunctionCapabilityBindingInput { - """Bucket this capability targets (exactly one typed target is set)""" - bucketId: UUID - createdAt: Datetime - - """Database that owns this resource (database-scoped isolation)""" - databaseId: UUID! +"""The output of our create `WebhookEndpoint` mutation.""" +type CreateWebhookEndpointPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String """ - Function definition holding this capability (exactly one of function_id / graph_id is set) + Our root query field type. Allows us to run any query from our mutation payload. """ - functionId: UUID + query: Query + + """The `WebhookEndpoint` that was created by this mutation.""" + webhookEndpoint: WebhookEndpoint + + """An edge for our `WebhookEndpoint`. May be used by Relay 1.""" + webhookEndpointEdge( + """The method to use when ordering `WebhookEndpoint`.""" + orderBy: [WebhookEndpointOrderBy!]! = [PRIMARY_KEY_ASC] + ): WebhookEndpointEdge +} +"""All input for the create `WebhookEvent` mutation.""" +input CreateWebhookEventInput { """ - Flow graph holding this capability (exactly one of function_id / graph_id is set) + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - graphId: UUID - id: UUID + clientMutationId: String + + """The `WebhookEvent` to be created by this mutation.""" + webhookEvent: WebhookEventInput! +} +"""The output of our create `WebhookEvent` mutation.""" +type CreateWebhookEventPayload { """ - Runtime handle the holder addresses this capability by (e.g. default, scratch) + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - key: String + clientMutationId: String """ - Lifecycle the capability applies to: deployment (build/deploy time), execution (per invocation), root_execution (root of a graph execution tree) + Our root query field type. Allows us to run any query from our mutation payload. """ - lifecycle: String! + query: Query - """Per-binding annotations (no runtime semantics)""" - metadata: JSON - updatedAt: Datetime -} + """The `WebhookEvent` that was created by this mutation.""" + webhookEvent: WebhookEvent -"""Methods to use when ordering `FunctionCapabilityBinding`.""" -enum FunctionCapabilityBindingOrderBy { - BUCKET_ID_ASC - BUCKET_ID_DESC - CREATED_AT_ASC - CREATED_AT_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - FUNCTION_ID_ASC - FUNCTION_ID_DESC - GRAPH_ID_ASC - GRAPH_ID_DESC - ID_ASC - ID_DESC - KEY_ASC - KEY_DESC - LIFECYCLE_ASC - LIFECYCLE_DESC - METADATA_ASC - METADATA_DESC - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC + """An edge for our `WebhookEvent`. May be used by Relay 1.""" + webhookEventEdge( + """The method to use when ordering `WebhookEvent`.""" + orderBy: [WebhookEventOrderBy!]! = [PRIMARY_KEY_ASC] + ): WebhookEventEdge } -""" -Represents an update to a `FunctionCapabilityBinding`. Fields that are set will be updated. -""" -input FunctionCapabilityBindingPatch { - """Bucket this capability targets (exactly one typed target is set)""" - bucketId: UUID - createdAt: Datetime - - """Database that owns this resource (database-scoped isolation)""" - databaseId: UUID +"""A location in a connection that can be used for resuming pagination.""" +scalar Cursor +"""All input for the `databaseAddEdgeAndSave` mutation.""" +input DatabaseAddEdgeAndSaveInput { """ - Function definition holding this capability (exactly one of function_id / graph_id is set) + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - functionId: UUID + clientMutationId: String + dstNode: String + dstPort: String + graphId: UUID + message: String + srcNode: String + srcPort: String +} +"""The output of our `databaseAddEdgeAndSave` mutation.""" +type DatabaseAddEdgeAndSavePayload { """ - Flow graph holding this capability (exactly one of function_id / graph_id is set) + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - graphId: UUID - id: UUID + clientMutationId: String """ - Runtime handle the holder addresses this capability by (e.g. default, scratch) + Our root query field type. Allows us to run any query from our mutation payload. """ - key: String + query: Query + result: UUID +} +"""All input for the `databaseAddEdge` mutation.""" +input DatabaseAddEdgeInput { """ - Lifecycle the capability applies to: deployment (build/deploy time), execution (per invocation), root_execution (root of a graph execution tree) + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - lifecycle: String - - """Per-binding annotations (no runtime semantics)""" - metadata: JSON - updatedAt: Datetime + clientMutationId: String + context: String + databaseId: UUID + dstNode: String + dstPort: String + graphName: String + rootHash: UUID + srcNode: String + srcPort: String } -""" -Function definitions — registered cloud functions with routing, queue, and retry configuration -""" -type FunctionDefinition { +"""The output of our `databaseAddEdge` mutation.""" +type DatabaseAddEdgePayload { """ - 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. + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - accessChannels: [String]! - - """Function task category (e.g. email, embed, chunk, custom)""" - category: String! + clientMutationId: String """ - Knative containerConcurrency — max concurrent requests per pod instance + Our root query field type. Allows us to run any query from our mutation payload. """ - concurrency: Int! + query: Query + result: UUID +} +"""All input for the `databaseAddNodeAndSave` mutation.""" +input DatabaseAddNodeAndSaveInput { """ - CPU limit in millicores, derived from resources.limits.cpu (NULL if unset/invalid) + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - cpuLimitMillicores: BigInt + clientMutationId: String + graphId: UUID + message: String + meta: JSON + nodeName: String + nodeType: String + props: JSON +} +"""The output of our `databaseAddNodeAndSave` mutation.""" +type DatabaseAddNodeAndSavePayload { """ - Requested CPU in millicores, derived from resources.requests.cpu (NULL if unset/invalid) + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - cpuRequestMillicores: BigInt - createdAt: Datetime + clientMutationId: String - """Database that owns this resource (database-scoped isolation)""" - databaseId: UUID! + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + result: UUID +} - """Human-readable description of what this function does""" +"""All input for the `databaseAddNode` mutation.""" +input DatabaseAddNodeInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + context: String + databaseId: UUID + graphName: String + meta: JSON + nodeName: String + nodeType: String + props: JSON + rootHash: UUID +} + +"""The output of our `databaseAddNode` mutation.""" +type DatabaseAddNodePayload { + """ + The 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 `databaseApproveNode` mutation.""" +input DatabaseApproveNodeInput { + approved: 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 + executionId: UUID + feedback: JSON + nodeName: String +} + +"""The output of our `databaseApproveNode` mutation.""" +type DatabaseApproveNodePayload { + """ + The 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 `databaseCopyGraph` mutation.""" +input DatabaseCopyGraphInput { + """ + An arbitrary 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 + graphId: UUID + name: String +} + +"""The output of our `databaseCopyGraph` mutation.""" +type DatabaseCopyGraphPayload { + """ + The 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 `databaseCreateFunctionGraph` mutation.""" +input DatabaseCreateFunctionGraphInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + context: String + createdBy: UUID + databaseId: UUID + definitionsCommitId: UUID description: String + name: String +} - """Palette grouping category (e.g. email, data, ai, custom)""" - fnCategory: String +"""The output of our `databaseCreateFunctionGraph` mutation.""" +type DatabaseCreateFunctionGraphPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """Reads and enables pagination through a set of `FunctionApiBinding`.""" - functionApiBindings( + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + result: UUID +} + +""" +Flow graph definitions — FBP graphs stored in the dedicated graph Merkle store +""" +type DatabaseFunctionGraph { + """Evaluator/runtime context (function, js, sql, system)""" + context: String! + + """Timestamp of graph creation""" + createdAt: Datetime! + + """Actor who created this graph""" + createdBy: UUID + + """ + Reads and enables pagination through a set of `DatabaseFunctionGraphExecution`. + """ + databaseFunctionGraphExecutionsByGraphId( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -5520,19 +5592,26 @@ type FunctionDefinition { """ offset: Int - """The method to use when ordering `FunctionApiBinding`.""" - orderBy: [FunctionApiBindingOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `DatabaseFunctionGraphExecution`.""" + orderBy: [DatabaseFunctionGraphExecutionOrderBy!] = [PRIMARY_KEY_ASC] """ A filter to be used in determining which values should be returned by the collection. """ - where: FunctionApiBindingFilter - ): FunctionApiBindingConnection! + where: DatabaseFunctionGraphExecutionFilter + ): DatabaseFunctionGraphExecutionConnection! - """ - Reads and enables pagination through a set of `FunctionCapabilityBinding`. - """ - functionCapabilityBindingsByFunctionId( + """Database scope for multi-tenant isolation""" + databaseId: UUID! + + """Pinned definitions store commit for deterministic evaluation""" + definitionsCommitId: UUID + + """Human-readable description of the graph""" + description: String + + """Reads and enables pagination through a set of `FunctionDefinition`.""" + functionDefinitionsByGraphId( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -5551,7567 +5630,27059 @@ type FunctionDefinition { """ offset: Int - """The method to use when ordering `FunctionCapabilityBinding`.""" - orderBy: [FunctionCapabilityBindingOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `FunctionDefinition`.""" + orderBy: [FunctionDefinitionOrderBy!] = [PRIMARY_KEY_ASC] """ A filter to be used in determining which values should be returned by the collection. """ - where: FunctionCapabilityBindingFilter - ): FunctionCapabilityBindingConnection! + where: FunctionDefinitionFilter + ): FunctionDefinitionConnection! - """ - Ordered array of module_table column names holding the generated function names to invoke when runtime=sql (module mode). NULL for direct mode and other runtimes. - """ - functionColumns: JSON + """Unique graph identifier""" + id: UUID! - """ - Existing flow graph invoked when runtime=graph. Required for graph runtime and forbidden for all other runtimes. - """ - graphId: UUID + """Whether graph passes structural validation""" + isValid: Boolean! - """Icon identifier for UI palette rendering (e.g. mail, database, code)""" - icon: String - id: UUID! + """Graph name (unique per database)""" + name: String! - """ - Docker image reference (e.g. ghcr.io/constructive-io/email-send-fn:latest). Required when runtime=http or runtime=resource. NULL for inline functions. - """ - image: String + """Reads and enables pagination through a set of `RepositoryWorkflow`.""" + repositoryWorkflowsByGraphId( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """ - Data input ports: [{name, type, description?, optional?, multi?, schema?}] - """ - inputs: JSON! + """Read all values in the set before (above) this cursor.""" + before: Cursor - """ - Provider slugs (e.g. mailgun, postgres) associated with this function. The UI uses this to auto-fill required_secrets and required_configs from integration_providers. - """ - integrations: [String]! + """Only read the first `n` values of the set.""" + first: Int - """ - Whether this function definition is published to the public catalog for direct authenticated invocation. Default false = internal-only via add_job() - """ - isPublished: Boolean! + """Only read the last `n` values of the set.""" + last: Int - """Maximum retry attempts for the underlying job""" - maxAttempts: Int! + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int - """ - Memory limit in bytes, derived from resources.limits.memory (NULL if unset/invalid) - """ - memoryLimitBytes: BigInt + """The method to use when ordering `RepositoryWorkflow`.""" + orderBy: [RepositoryWorkflowOrderBy!] = [PRIMARY_KEY_ASC] - """ - Requested memory in bytes, derived from resources.requests.memory (NULL if unset/invalid) - """ - memoryRequestBytes: BigInt + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: RepositoryWorkflowFilter + ): RepositoryWorkflowConnection! - """ - metaschema_modules_public table whose per-database row carries the generated function names when runtime=sql (module mode). NULL for direct mode and other runtimes. - """ - moduleTable: String + """Graph store (Merkle store) holding the graph definition""" + storeId: UUID! - """ - Function name within category (e.g. send_verification_link, process_file_embedding) - """ - name: String! + """Timestamp of last modification""" + updatedAt: Datetime! - """ - Data output ports: [{name, type, description?, optional?, multi?, schema?}] - """ - outputs: JSON! + """Array of validation error objects when is_valid = false""" + validationErrors: JSON +} +"""A connection to a list of `DatabaseFunctionGraph` values.""" +type DatabaseFunctionGraphConnection { """ - Ordered bind-parameter mapping for runtime=sql: [{name, type}]. payload[name] is bound as $n::type. + A list of edges which contains the `DatabaseFunctionGraph` and cursor to aid in pagination. """ - payloadArgs: JSON! + edges: [DatabaseFunctionGraphEdge]! - """Job priority (lower = higher priority)""" - priority: Int! + """A list of `DatabaseFunctionGraph` objects.""" + nodes: [DatabaseFunctionGraph]! - """ - Configuration properties: [{name, type, default?, description?, required?, schema?}] - """ - props: JSON! + """Information to aid in pagination.""" + pageInfo: PageInfo! """ - Protected platform definition: narrower scopes cannot register the same task_identifier + The count of *all* `DatabaseFunctionGraph` you could get from the connection. """ - protected: Boolean! + totalCount: Int! +} - """ - Timestamp when this function was published. NULL means immediately published when is_published is true; future timestamps delay public visibility - """ - publishedAt: Datetime +"""A `DatabaseFunctionGraph` edge in the connection.""" +type DatabaseFunctionGraphEdge { + """A cursor for use in pagination.""" + cursor: Cursor - """Job queue name for serialization (e.g. email, ai, default)""" - queueName: String! + """The `DatabaseFunctionGraph` at the end of the edge.""" + node: DatabaseFunctionGraph +} - """ - 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]! +"""Ephemeral execution state for flow graph evaluation""" +type DatabaseFunctionGraphExecution { + """User actor propagated to asynchronous graph jobs""" + actorId: UUID - """ - Embedded config requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. - """ - requiredConfigs: [ResourceRequirement]! + """Execution completion timestamp""" + completedAt: Datetime - """ - Inference model whitelist (e.g. gpt-4o, claude-3). Empty = no model requirements. - """ - requiredModels: [String]! + """Index into execution_plan — tick only processes this wave""" + currentWave: Int! - """ - 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]! + """Database scope for multi-tenant isolation""" + databaseId: UUID! + + """Pinned definitions store commit for deterministic evaluation""" + definitionsCommitId: UUID + + """Entity context propagated to asynchronous graph jobs""" + entityId: UUID + + """Scope discriminator propagated to asynchronous graph jobs""" + entityType: String + + """Machine-readable error code when status = failed""" + errorCode: String + + """Human-readable error description when status = failed""" + errorMessage: String + + """Pre-computed topological sort as array of wave objects""" + executionPlan: JSON """ - Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. + Reads a single `DatabaseFunctionGraph` that is related to this `DatabaseFunctionGraphExecution`. """ - requiredSecrets: [ResourceRequirement]! + graph: DatabaseFunctionGraph + + """FK to the graph definition being executed""" + graphId: UUID! + + """Unique execution identifier""" + id: UUID! + + """Initial inputs provided at invocation time""" + inputPayload: JSON """ - Container resource requests and limits: {requests: {memory, cpu}, limits: {memory, cpu}} + Partition coordinate for the function invocation that launched this graph execution """ - resources: JSON! + invocationCreatedAt: Datetime + + """Function invocation that launched this top-level graph execution""" + invocationId: UUID """ - Execution mode: http (Knative Service dispatch), inline (in-process in compute worker), handler (registered infrastructure handler), sql (generic SQL dispatch via a trusted direct target or module-resolved function names), resource (Kubernetes Job via the resource module with node-gateway callbacks), or graph (existing flow graph referenced by graph_id) + Timestamp of the last real progress (node enqueue, node output, completion) — drives the activity-debounced watchdog """ - runtime: String! + lastProgressAt: Datetime! - """Maximum pod count for Knative autoscaling (maxScale)""" - scaleMax: Int! + """Maximum pending jobs before execution is failed (default 50)""" + maxPendingJobs: Int! - """Minimum pod count for Knative autoscaling (minScale)""" - scaleMin: Int! + """Maximum ticks before execution is failed (default 100)""" + maxTicks: Int! """ - Name of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. + Map of node_name → execution output id (content-addressed hash reference) """ - targetFunction: String + nodeOutputs: JSON! + + """Organization context propagated to asynchronous graph jobs""" + organizationId: UUID """ - Schema of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. + Selected graphOutput portName values; NULL or empty returns all graph outputs """ - targetSchema: String + outputNames: [String] """ - Routing slug generated as category || ':' || name (used by the Knative job worker for dispatch) + Target output boundary node name to resolve; NULL derives completion from the graph's graphOutput nodes """ - taskIdentifier: String + outputNode: String - """Knative request timeout in seconds""" - timeoutSeconds: Int! - updatedAt: Datetime + """Final result extracted from terminal output node""" + outputPayload: JSON + + """Target output port name (default: value)""" + outputPort: String! + + """Parent execution when this is a sub-execution""" + parentExecutionId: UUID """ - Whether this function has side effects and cannot be cached or memoized + Function invocation parent assigned to node invocations spawned by this execution """ - volatile: Boolean! - - """Reads and enables pagination through a set of `WebhookEndpoint`.""" - webhookEndpoints( - """Read all values in the set after (below) this cursor.""" - after: Cursor + parentInvocationId: UUID - """Read all values in the set before (above) this cursor.""" - before: Cursor + """Node name in parent execution that spawned this sub-execution""" + parentNodeName: String - """Only read the first `n` values of the set.""" - first: Int + """Principal identity propagated to asynchronous graph jobs""" + principalId: UUID - """Only read the last `n` values of the set.""" - last: Int + """Execution start timestamp""" + startedAt: Datetime! - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int + """Lifecycle: pending → running → completed/failed/cancelled""" + status: String! - """The method to use when ordering `WebhookEndpoint`.""" - orderBy: [WebhookEndpointOrderBy!] = [PRIMARY_KEY_ASC] + """Number of evaluate_step ticks executed""" + tickCount: Int! - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: WebhookEndpointFilter - ): WebhookEndpointConnection! + """Absolute deadline — execution fails if still running after this time""" + timeoutAt: Datetime! } -"""A connection to a list of `FunctionDefinition` values.""" -type FunctionDefinitionConnection { +"""A connection to a list of `DatabaseFunctionGraphExecution` values.""" +type DatabaseFunctionGraphExecutionConnection { """ - A list of edges which contains the `FunctionDefinition` and cursor to aid in pagination. + A list of edges which contains the `DatabaseFunctionGraphExecution` and cursor to aid in pagination. """ - edges: [FunctionDefinitionEdge]! + edges: [DatabaseFunctionGraphExecutionEdge]! - """A list of `FunctionDefinition` objects.""" - nodes: [FunctionDefinition]! + """A list of `DatabaseFunctionGraphExecution` objects.""" + nodes: [DatabaseFunctionGraphExecution]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `FunctionDefinition` you could get from the connection. + The count of *all* `DatabaseFunctionGraphExecution` you could get from the connection. """ totalCount: Int! } -"""A `FunctionDefinition` edge in the connection.""" -type FunctionDefinitionEdge { +"""A `DatabaseFunctionGraphExecution` edge in the connection.""" +type DatabaseFunctionGraphExecutionEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `FunctionDefinition` at the end of the edge.""" - node: FunctionDefinition + """The `DatabaseFunctionGraphExecution` at the end of the edge.""" + node: DatabaseFunctionGraphExecution } """ -A filter to be used against `FunctionDefinition` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `DatabaseFunctionGraphExecution` object types. All fields are combined with a logical ‘and.’ """ -input FunctionDefinitionFilter { - """Filter by the object’s `accessChannels` field.""" - accessChannels: StringListFilter +input DatabaseFunctionGraphExecutionFilter { + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter """Checks for all expressions in this list.""" - and: [FunctionDefinitionFilter!] - - """Filter by the object’s `category` field.""" - category: StringFilter - - """Filter by the object’s `concurrency` field.""" - concurrency: IntFilter - - """Filter by the object’s `cpuLimitMillicores` field.""" - cpuLimitMillicores: BigIntFilter + and: [DatabaseFunctionGraphExecutionFilter!] - """Filter by the object’s `cpuRequestMillicores` field.""" - cpuRequestMillicores: BigIntFilter + """Filter by the object’s `completedAt` field.""" + completedAt: DatetimeFilter - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter + """Filter by the object’s `currentWave` field.""" + currentWave: IntFilter """Filter by the object’s `databaseId` field.""" databaseId: UUIDFilter - """Filter by the object’s `description` field.""" - description: StringFilter + """Filter by the object’s `definitionsCommitId` field.""" + definitionsCommitId: UUIDFilter - """Filter by the object’s `fnCategory` field.""" - fnCategory: StringFilter + """Filter by the object’s `entityId` field.""" + entityId: UUIDFilter - """Filter by the object’s `functionApiBindings` relation.""" - functionApiBindings: FunctionDefinitionToManyFunctionApiBindingFilter + """Filter by the object’s `entityType` field.""" + entityType: StringFilter - """`functionApiBindings` exist.""" - functionApiBindingsExist: Boolean + """Filter by the object’s `errorCode` field.""" + errorCode: StringFilter - """ - Filter by the object’s `functionCapabilityBindingsByFunctionId` relation. - """ - functionCapabilityBindingsByFunctionId: FunctionDefinitionToManyFunctionCapabilityBindingFilter + """Filter by the object’s `errorMessage` field.""" + errorMessage: StringFilter - """`functionCapabilityBindingsByFunctionId` exist.""" - functionCapabilityBindingsByFunctionIdExist: Boolean + """Filter by the object’s `executionPlan` field.""" + executionPlan: JSONFilter - """Filter by the object’s `functionColumns` field.""" - functionColumns: JSONFilter + """Filter by the object’s `graph` relation.""" + graph: DatabaseFunctionGraphFilter """Filter by the object’s `graphId` field.""" graphId: UUIDFilter - """Filter by the object’s `icon` field.""" - icon: StringFilter - """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `image` field.""" - image: StringFilter - - """Filter by the object’s `inputs` field.""" - inputs: JSONFilter - - """Filter by the object’s `integrations` field.""" - integrations: StringListFilter + """Filter by the object’s `inputPayload` field.""" + inputPayload: JSONFilter - """Filter by the object’s `isPublished` field.""" - isPublished: BooleanFilter + """Filter by the object’s `invocationCreatedAt` field.""" + invocationCreatedAt: DatetimeFilter - """Filter by the object’s `maxAttempts` field.""" - maxAttempts: IntFilter + """Filter by the object’s `invocationId` field.""" + invocationId: UUIDFilter - """Filter by the object’s `memoryLimitBytes` field.""" - memoryLimitBytes: BigIntFilter + """Filter by the object’s `lastProgressAt` field.""" + lastProgressAt: DatetimeFilter - """Filter by the object’s `memoryRequestBytes` field.""" - memoryRequestBytes: BigIntFilter + """Filter by the object’s `maxPendingJobs` field.""" + maxPendingJobs: IntFilter - """Filter by the object’s `moduleTable` field.""" - moduleTable: StringFilter + """Filter by the object’s `maxTicks` field.""" + maxTicks: IntFilter - """Filter by the object’s `name` field.""" - name: StringFilter + """Filter by the object’s `nodeOutputs` field.""" + nodeOutputs: JSONFilter """Negates the expression.""" - not: FunctionDefinitionFilter + not: DatabaseFunctionGraphExecutionFilter """Checks for any expressions in this list.""" - or: [FunctionDefinitionFilter!] + or: [DatabaseFunctionGraphExecutionFilter!] - """Filter by the object’s `outputs` field.""" - outputs: JSONFilter + """Filter by the object’s `organizationId` field.""" + organizationId: UUIDFilter - """Filter by the object’s `payloadArgs` field.""" - payloadArgs: JSONFilter + """Filter by the object’s `outputNames` field.""" + outputNames: StringListFilter - """Filter by the object’s `priority` field.""" - priority: IntFilter + """Filter by the object’s `outputNode` field.""" + outputNode: StringFilter - """Filter by the object’s `props` field.""" - props: JSONFilter + """Filter by the object’s `outputPayload` field.""" + outputPayload: JSONFilter - """Filter by the object’s `protected` field.""" - protected: BooleanFilter + """Filter by the object’s `outputPort` field.""" + outputPort: StringFilter - """Filter by the object’s `publishedAt` field.""" - publishedAt: DatetimeFilter + """Filter by the object’s `parentExecutionId` field.""" + parentExecutionId: UUIDFilter - """Filter by the object’s `queueName` field.""" - queueName: StringFilter - - """Filter by the object’s `requiredBuckets` field.""" - requiredBuckets: StringListFilter - - """Filter by the object’s `requiredModels` field.""" - requiredModels: StringListFilter + """Filter by the object’s `parentInvocationId` field.""" + parentInvocationId: UUIDFilter - """Filter by the object’s `requiredModules` field.""" - requiredModules: StringListFilter + """Filter by the object’s `parentNodeName` field.""" + parentNodeName: StringFilter - """Filter by the object’s `resources` field.""" - resources: JSONFilter + """Filter by the object’s `principalId` field.""" + principalId: UUIDFilter - """Filter by the object’s `runtime` field.""" - runtime: StringFilter + """Filter by the object’s `startedAt` field.""" + startedAt: DatetimeFilter - """Filter by the object’s `scaleMax` field.""" - scaleMax: IntFilter + """Filter by the object’s `status` field.""" + status: StringFilter - """Filter by the object’s `scaleMin` field.""" - scaleMin: IntFilter + """Filter by the object’s `tickCount` field.""" + tickCount: IntFilter - """Filter by the object’s `targetFunction` field.""" - targetFunction: StringFilter + """Filter by the object’s `timeoutAt` field.""" + timeoutAt: DatetimeFilter +} - """Filter by the object’s `targetSchema` field.""" - targetSchema: StringFilter +"""An input for mutations affecting `DatabaseFunctionGraphExecution`""" +input DatabaseFunctionGraphExecutionInput { + """User actor propagated to asynchronous graph jobs""" + actorId: UUID - """Filter by the object’s `taskIdentifier` field.""" - taskIdentifier: StringFilter + """Execution completion timestamp""" + completedAt: Datetime - """Filter by the object’s `timeoutSeconds` field.""" - timeoutSeconds: IntFilter + """Index into execution_plan — tick only processes this wave""" + currentWave: Int - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter + """Database scope for multi-tenant isolation""" + databaseId: UUID! - """Filter by the object’s `volatile` field.""" - volatile: BooleanFilter + """Pinned definitions store commit for deterministic evaluation""" + definitionsCommitId: UUID - """Filter by the object’s `webhookEndpoints` relation.""" - webhookEndpoints: FunctionDefinitionToManyWebhookEndpointFilter + """Entity context propagated to asynchronous graph jobs""" + entityId: UUID - """`webhookEndpoints` exist.""" - webhookEndpointsExist: Boolean -} + """Scope discriminator propagated to asynchronous graph jobs""" + entityType: String -"""An input for mutations affecting `FunctionDefinition`""" -input FunctionDefinitionInput { - """ - 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] + """Machine-readable error code when status = failed""" + errorCode: String - """Function task category (e.g. email, embed, chunk, custom)""" - category: String! + """Human-readable error description when status = failed""" + errorMessage: String - """ - Knative containerConcurrency — max concurrent requests per pod instance - """ - concurrency: Int - createdAt: Datetime + """Pre-computed topological sort as array of wave objects""" + executionPlan: JSON - """Database that owns this resource (database-scoped isolation)""" - databaseId: UUID! + """FK to the graph definition being executed""" + graphId: UUID! - """Human-readable description of what this function does""" - description: String + """Unique execution identifier""" + id: UUID - """Palette grouping category (e.g. email, data, ai, custom)""" - fnCategory: String + """Initial inputs provided at invocation time""" + inputPayload: JSON """ - Ordered array of module_table column names holding the generated function names to invoke when runtime=sql (module mode). NULL for direct mode and other runtimes. + Partition coordinate for the function invocation that launched this graph execution """ - functionColumns: JSON + invocationCreatedAt: Datetime + + """Function invocation that launched this top-level graph execution""" + invocationId: UUID """ - Existing flow graph invoked when runtime=graph. Required for graph runtime and forbidden for all other runtimes. + Timestamp of the last real progress (node enqueue, node output, completion) — drives the activity-debounced watchdog """ - graphId: UUID + lastProgressAt: Datetime - """Icon identifier for UI palette rendering (e.g. mail, database, code)""" - icon: String - id: UUID + """Maximum pending jobs before execution is failed (default 50)""" + maxPendingJobs: Int - """ - Docker image reference (e.g. ghcr.io/constructive-io/email-send-fn:latest). Required when runtime=http or runtime=resource. NULL for inline functions. - """ - image: String + """Maximum ticks before execution is failed (default 100)""" + maxTicks: Int """ - Data input ports: [{name, type, description?, optional?, multi?, schema?}] + Map of node_name → execution output id (content-addressed hash reference) """ - inputs: JSON + nodeOutputs: JSON + + """Organization context propagated to asynchronous graph jobs""" + organizationId: UUID """ - Provider slugs (e.g. mailgun, postgres) associated with this function. The UI uses this to auto-fill required_secrets and required_configs from integration_providers. + Selected graphOutput portName values; NULL or empty returns all graph outputs """ - integrations: [String] + outputNames: [String] """ - Whether this function definition is published to the public catalog for direct authenticated invocation. Default false = internal-only via add_job() + Target output boundary node name to resolve; NULL derives completion from the graph's graphOutput nodes """ - isPublished: Boolean + outputNode: String - """Maximum retry attempts for the underlying job""" - maxAttempts: Int + """Final result extracted from terminal output node""" + outputPayload: JSON - """ - metaschema_modules_public table whose per-database row carries the generated function names when runtime=sql (module mode). NULL for direct mode and other runtimes. - """ - moduleTable: String + """Target output port name (default: value)""" + outputPort: String - """ - Function name within category (e.g. send_verification_link, process_file_embedding) - """ - name: String! + """Parent execution when this is a sub-execution""" + parentExecutionId: UUID """ - Data output ports: [{name, type, description?, optional?, multi?, schema?}] + Function invocation parent assigned to node invocations spawned by this execution """ - outputs: JSON + parentInvocationId: UUID - """ - Ordered bind-parameter mapping for runtime=sql: [{name, type}]. payload[name] is bound as $n::type. - """ - payloadArgs: JSON + """Node name in parent execution that spawned this sub-execution""" + parentNodeName: String - """Job priority (lower = higher priority)""" - priority: Int + """Principal identity propagated to asynchronous graph jobs""" + principalId: UUID - """ - Configuration properties: [{name, type, default?, description?, required?, schema?}] - """ - props: JSON + """Execution start timestamp""" + startedAt: Datetime - """ - Protected platform definition: narrower scopes cannot register the same task_identifier - """ - protected: Boolean + """Lifecycle: pending → running → completed/failed/cancelled""" + status: String - """ - Timestamp when this function was published. NULL means immediately published when is_published is true; future timestamps delay public visibility - """ - publishedAt: Datetime + """Number of evaluate_step ticks executed""" + tickCount: Int - """Job queue name for serialization (e.g. email, ai, default)""" - queueName: String + """Absolute deadline — execution fails if still running after this time""" + timeoutAt: Datetime +} +""" +Per-node execution state — tracks individual node lifecycle for debugging +""" +type DatabaseFunctionGraphExecutionNodeState { """ - 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. + Snapshot of the node's resolved inputs for resource-runtime nodes — served by the node gateway GET /inputs endpoint """ - requiredBuckets: [String] + callbackInputs: JSON """ - Embedded config requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. + Metering/attribution context stamped at resource dispatch (namespace_id, task_identifier, entity_id, scope, resource identity, dispatched_at, attempt) — lets the node gateway settle and attribute without extra lookups """ - requiredConfigs: [ResourceRequirementInput] + callbackMeta: JSON """ - Inference model whitelist (e.g. gpt-4o, claude-3). Empty = no model requirements. + SHA-256 hex digest of the node callback token — set for resource-runtime nodes so the node gateway can authenticate result/error/heartbeat callbacks """ - requiredModels: [String] + callbackTokenHash: 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] + """Timestamp when the node finished (success or failure)""" + completedAt: Datetime - """ - Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. - """ - requiredSecrets: [ResourceRequirementInput] + """Timestamp of node state creation (partition key)""" + createdAt: Datetime! - """ - Container resource requests and limits: {requests: {memory, cpu}, limits: {memory, cpu}} - """ - resources: JSON + """Database scope for multi-tenant isolation""" + databaseId: UUID! + + """Machine-readable error code when status = failed""" + errorCode: String + + """Human-readable error description when status = failed""" + errorMessage: String + + """FK to the parent graph execution""" + executionId: UUID! + + """Declared output applied by the default_answer expiry policy""" + expiryDefaultOutput: JSON + + """When the escalate expiry policy fired — guards the one-time extension""" + expiryEscalatedAt: Datetime """ - Execution mode: http (Knative Service dispatch), inline (in-process in compute worker), handler (registered infrastructure handler), sql (generic SQL dispatch via a trusted direct target or module-resolved function names), resource (Kubernetes Job via the resource module with node-gateway callbacks), or graph (existing flow graph referenced by graph_id) + Declared expiry behaviour when waiting_deadline_at passes unanswered: fail (fail the execution), default_answer (settle with expiry_default_output), or escalate (notify and extend once) """ - runtime: String + expiryPolicy: String - """Maximum pod count for Knative autoscaling (maxScale)""" - scaleMax: Int + """Unique node state identifier""" + id: UUID! - """Minimum pod count for Knative autoscaling (minScale)""" - scaleMin: Int + """Name of the node within the graph (e.g. send-email1)""" + nodeName: String! """ - Name of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. + Full merkle tree path to this node (e.g. {function,graphs,myflow,nodes,send-email1}) — enables subnet hierarchy tracking """ - targetFunction: String + nodePath: [String] + + """FK to execution_outputs — content-addressed output blob for this node""" + outputId: UUID + + """Timestamp when the node began executing""" + startedAt: Datetime """ - Schema of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. + Node lifecycle: pending → queued → running → completed/failed/cancelled """ - targetSchema: String + status: String! - """Knative request timeout in seconds""" - timeoutSeconds: Int - updatedAt: Datetime + """When the declared expiry policy applies to the still-unanswered node""" + waitingDeadlineAt: Datetime """ - Whether this function has side effects and cannot be cached or memoized + What class of external reporter settles this node: human (a person answers) or external (webhook/adapter). NULL for nodes with an active workload """ - volatile: Boolean -} + waitingOn: String -"""Methods to use when ordering `FunctionDefinition`.""" -enum FunctionDefinitionOrderBy { - ACCESS_CHANNELS_ASC - ACCESS_CHANNELS_DESC - CATEGORY_ASC - CATEGORY_DESC - CONCURRENCY_ASC - CONCURRENCY_DESC - CPU_LIMIT_MILLICORES_ASC - CPU_LIMIT_MILLICORES_DESC - CPU_REQUEST_MILLICORES_ASC - CPU_REQUEST_MILLICORES_DESC - CREATED_AT_ASC - CREATED_AT_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - DESCRIPTION_ASC - DESCRIPTION_DESC - FN_CATEGORY_ASC - FN_CATEGORY_DESC - FUNCTION_COLUMNS_ASC - FUNCTION_COLUMNS_DESC - GRAPH_ID_ASC - GRAPH_ID_DESC - ICON_ASC - ICON_DESC - ID_ASC - ID_DESC - IMAGE_ASC - IMAGE_DESC - INPUTS_ASC - INPUTS_DESC - INTEGRATIONS_ASC - INTEGRATIONS_DESC - IS_PUBLISHED_ASC - IS_PUBLISHED_DESC - MAX_ATTEMPTS_ASC - MAX_ATTEMPTS_DESC - MEMORY_LIMIT_BYTES_ASC - MEMORY_LIMIT_BYTES_DESC - MEMORY_REQUEST_BYTES_ASC - MEMORY_REQUEST_BYTES_DESC - MODULE_TABLE_ASC - MODULE_TABLE_DESC - NAME_ASC - NAME_DESC - NATURAL - OUTPUTS_ASC - OUTPUTS_DESC - PAYLOAD_ARGS_ASC - PAYLOAD_ARGS_DESC - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - PRIORITY_ASC - PRIORITY_DESC - PROPS_ASC - PROPS_DESC - PROTECTED_ASC - PROTECTED_DESC - PUBLISHED_AT_ASC - PUBLISHED_AT_DESC - QUEUE_NAME_ASC - QUEUE_NAME_DESC - REQUIRED_BUCKETS_ASC - REQUIRED_BUCKETS_DESC - REQUIRED_CONFIGS_ASC - REQUIRED_CONFIGS_DESC - REQUIRED_MODELS_ASC - REQUIRED_MODELS_DESC - REQUIRED_MODULES_ASC - REQUIRED_MODULES_DESC - REQUIRED_SECRETS_ASC - REQUIRED_SECRETS_DESC - RESOURCES_ASC - RESOURCES_DESC - RUNTIME_ASC - RUNTIME_DESC - SCALE_MAX_ASC - SCALE_MAX_DESC - SCALE_MIN_ASC - SCALE_MIN_DESC - TARGET_FUNCTION_ASC - TARGET_FUNCTION_DESC - TARGET_SCHEMA_ASC - TARGET_SCHEMA_DESC - TASK_IDENTIFIER_ASC - TASK_IDENTIFIER_DESC - TIMEOUT_SECONDS_ASC - TIMEOUT_SECONDS_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC - VOLATILE_ASC - VOLATILE_DESC + """When the node parked awaiting its external report""" + waitingSince: Datetime } """ -Represents an update to a `FunctionDefinition`. Fields that are set will be updated. +A connection to a list of `DatabaseFunctionGraphExecutionNodeState` values. """ -input FunctionDefinitionPatch { +type DatabaseFunctionGraphExecutionNodeStateConnection { """ - 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. + A list of edges which contains the `DatabaseFunctionGraphExecutionNodeState` and cursor to aid in pagination. """ - accessChannels: [String] + edges: [DatabaseFunctionGraphExecutionNodeStateEdge]! - """Function task category (e.g. email, embed, chunk, custom)""" - category: String + """A list of `DatabaseFunctionGraphExecutionNodeState` objects.""" + nodes: [DatabaseFunctionGraphExecutionNodeState]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! """ - Knative containerConcurrency — max concurrent requests per pod instance + The count of *all* `DatabaseFunctionGraphExecutionNodeState` you could get from the connection. """ - concurrency: Int - createdAt: Datetime + totalCount: Int! +} - """Database that owns this resource (database-scoped isolation)""" - databaseId: UUID +"""A `DatabaseFunctionGraphExecutionNodeState` edge in the connection.""" +type DatabaseFunctionGraphExecutionNodeStateEdge { + """A cursor for use in pagination.""" + cursor: Cursor - """Human-readable description of what this function does""" - description: String + """The `DatabaseFunctionGraphExecutionNodeState` at the end of the edge.""" + node: DatabaseFunctionGraphExecutionNodeState +} - """Palette grouping category (e.g. email, data, ai, custom)""" - fnCategory: String +""" +A filter to be used against `DatabaseFunctionGraphExecutionNodeState` object types. All fields are combined with a logical ‘and.’ +""" +input DatabaseFunctionGraphExecutionNodeStateFilter { + """Checks for all expressions in this list.""" + and: [DatabaseFunctionGraphExecutionNodeStateFilter!] - """ - Ordered array of module_table column names holding the generated function names to invoke when runtime=sql (module mode). NULL for direct mode and other runtimes. - """ - functionColumns: JSON + """Filter by the object’s `callbackInputs` field.""" + callbackInputs: JSONFilter - """ - Existing flow graph invoked when runtime=graph. Required for graph runtime and forbidden for all other runtimes. - """ - graphId: UUID + """Filter by the object’s `callbackMeta` field.""" + callbackMeta: JSONFilter - """Icon identifier for UI palette rendering (e.g. mail, database, code)""" - icon: String - id: UUID + """Filter by the object’s `callbackTokenHash` field.""" + callbackTokenHash: StringFilter - """ - Docker image reference (e.g. ghcr.io/constructive-io/email-send-fn:latest). Required when runtime=http or runtime=resource. NULL for inline functions. - """ - image: String + """Filter by the object’s `completedAt` field.""" + completedAt: DatetimeFilter - """ - Data input ports: [{name, type, description?, optional?, multi?, schema?}] - """ - inputs: JSON + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter - """ - Provider slugs (e.g. mailgun, postgres) associated with this function. The UI uses this to auto-fill required_secrets and required_configs from integration_providers. - """ - integrations: [String] + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter - """ - Whether this function definition is published to the public catalog for direct authenticated invocation. Default false = internal-only via add_job() - """ - isPublished: Boolean + """Filter by the object’s `errorCode` field.""" + errorCode: StringFilter - """Maximum retry attempts for the underlying job""" - maxAttempts: Int + """Filter by the object’s `errorMessage` field.""" + errorMessage: StringFilter - """ - metaschema_modules_public table whose per-database row carries the generated function names when runtime=sql (module mode). NULL for direct mode and other runtimes. - """ - moduleTable: String + """Filter by the object’s `executionId` field.""" + executionId: UUIDFilter - """ - Function name within category (e.g. send_verification_link, process_file_embedding) - """ - name: String + """Filter by the object’s `expiryDefaultOutput` field.""" + expiryDefaultOutput: JSONFilter - """ - Data output ports: [{name, type, description?, optional?, multi?, schema?}] - """ - outputs: JSON + """Filter by the object’s `expiryEscalatedAt` field.""" + expiryEscalatedAt: DatetimeFilter - """ - Ordered bind-parameter mapping for runtime=sql: [{name, type}]. payload[name] is bound as $n::type. - """ - payloadArgs: JSON + """Filter by the object’s `expiryPolicy` field.""" + expiryPolicy: StringFilter - """Job priority (lower = higher priority)""" - priority: Int + """Filter by the object’s `id` field.""" + id: UUIDFilter - """ - Configuration properties: [{name, type, default?, description?, required?, schema?}] - """ - props: JSON + """Filter by the object’s `nodeName` field.""" + nodeName: StringFilter - """ - Protected platform definition: narrower scopes cannot register the same task_identifier - """ - protected: Boolean + """Filter by the object’s `nodePath` field.""" + nodePath: StringListFilter - """ - Timestamp when this function was published. NULL means immediately published when is_published is true; future timestamps delay public visibility - """ - publishedAt: Datetime + """Negates the expression.""" + not: DatabaseFunctionGraphExecutionNodeStateFilter - """Job queue name for serialization (e.g. email, ai, default)""" - queueName: String + """Checks for any expressions in this list.""" + or: [DatabaseFunctionGraphExecutionNodeStateFilter!] - """ - 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] + """Filter by the object’s `outputId` field.""" + outputId: UUIDFilter - """ - Embedded config requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. - """ - requiredConfigs: [ResourceRequirementInput] + """Filter by the object’s `startedAt` field.""" + startedAt: DatetimeFilter - """ - Inference model whitelist (e.g. gpt-4o, claude-3). Empty = no model requirements. - """ - requiredModels: [String] + """Filter by the object’s `status` field.""" + status: StringFilter - """ - 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] + """Filter by the object’s `waitingDeadlineAt` field.""" + waitingDeadlineAt: DatetimeFilter + + """Filter by the object’s `waitingOn` field.""" + waitingOn: StringFilter + + """Filter by the object’s `waitingSince` field.""" + waitingSince: DatetimeFilter +} +""" +An input for mutations affecting `DatabaseFunctionGraphExecutionNodeState` +""" +input DatabaseFunctionGraphExecutionNodeStateInput { """ - Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. + Snapshot of the node's resolved inputs for resource-runtime nodes — served by the node gateway GET /inputs endpoint """ - requiredSecrets: [ResourceRequirementInput] + callbackInputs: JSON """ - Container resource requests and limits: {requests: {memory, cpu}, limits: {memory, cpu}} + Metering/attribution context stamped at resource dispatch (namespace_id, task_identifier, entity_id, scope, resource identity, dispatched_at, attempt) — lets the node gateway settle and attribute without extra lookups """ - resources: JSON + callbackMeta: JSON """ - Execution mode: http (Knative Service dispatch), inline (in-process in compute worker), handler (registered infrastructure handler), sql (generic SQL dispatch via a trusted direct target or module-resolved function names), resource (Kubernetes Job via the resource module with node-gateway callbacks), or graph (existing flow graph referenced by graph_id) + SHA-256 hex digest of the node callback token — set for resource-runtime nodes so the node gateway can authenticate result/error/heartbeat callbacks """ - runtime: String + callbackTokenHash: String - """Maximum pod count for Knative autoscaling (maxScale)""" - scaleMax: Int + """Timestamp when the node finished (success or failure)""" + completedAt: Datetime - """Minimum pod count for Knative autoscaling (minScale)""" - scaleMin: Int + """Timestamp of node state creation (partition key)""" + createdAt: Datetime - """ - Name of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. - """ - targetFunction: String + """Database scope for multi-tenant isolation""" + databaseId: UUID! + + """Machine-readable error code when status = failed""" + errorCode: String + + """Human-readable error description when status = failed""" + errorMessage: String + + """FK to the parent graph execution""" + executionId: UUID! + + """Declared output applied by the default_answer expiry policy""" + expiryDefaultOutput: JSON + + """When the escalate expiry policy fired — guards the one-time extension""" + expiryEscalatedAt: Datetime """ - Schema of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. + Declared expiry behaviour when waiting_deadline_at passes unanswered: fail (fail the execution), default_answer (settle with expiry_default_output), or escalate (notify and extend once) """ - targetSchema: String + expiryPolicy: String - """Knative request timeout in seconds""" - timeoutSeconds: Int - updatedAt: Datetime + """Unique node state identifier""" + id: UUID + + """Name of the node within the graph (e.g. send-email1)""" + nodeName: String! """ - Whether this function has side effects and cannot be cached or memoized + Full merkle tree path to this node (e.g. {function,graphs,myflow,nodes,send-email1}) — enables subnet hierarchy tracking """ - volatile: Boolean -} + nodePath: [String] -""" -A filter to be used against many `FunctionApiBinding` object types. All fields are combined with a logical ‘and.’ -""" -input FunctionDefinitionToManyFunctionApiBindingFilter { - """Filters to entities where every related entity matches.""" - every: FunctionApiBindingFilter + """FK to execution_outputs — content-addressed output blob for this node""" + outputId: UUID - """Filters to entities where no related entity matches.""" - none: FunctionApiBindingFilter + """Timestamp when the node began executing""" + startedAt: Datetime - """Filters to entities where at least one related entity matches.""" - some: FunctionApiBindingFilter -} + """ + Node lifecycle: pending → queued → running → completed/failed/cancelled + """ + status: String -""" -A filter to be used against many `FunctionCapabilityBinding` object types. All fields are combined with a logical ‘and.’ -""" -input FunctionDefinitionToManyFunctionCapabilityBindingFilter { - """Filters to entities where every related entity matches.""" - every: FunctionCapabilityBindingFilter + """When the declared expiry policy applies to the still-unanswered node""" + waitingDeadlineAt: Datetime - """Filters to entities where no related entity matches.""" - none: FunctionCapabilityBindingFilter + """ + What class of external reporter settles this node: human (a person answers) or external (webhook/adapter). NULL for nodes with an active workload + """ + waitingOn: String - """Filters to entities where at least one related entity matches.""" - some: FunctionCapabilityBindingFilter + """When the node parked awaiting its external report""" + waitingSince: Datetime } """ -A filter to be used against many `WebhookEndpoint` object types. All fields are combined with a logical ‘and.’ +Methods to use when ordering `DatabaseFunctionGraphExecutionNodeState`. """ -input FunctionDefinitionToManyWebhookEndpointFilter { - """Filters to entities where every related entity matches.""" - every: WebhookEndpointFilter - - """Filters to entities where no related entity matches.""" - none: WebhookEndpointFilter - - """Filters to entities where at least one related entity matches.""" - some: WebhookEndpointFilter +enum DatabaseFunctionGraphExecutionNodeStateOrderBy { + CALLBACK_INPUTS_ASC + CALLBACK_INPUTS_DESC + CALLBACK_META_ASC + CALLBACK_META_DESC + CALLBACK_TOKEN_HASH_ASC + CALLBACK_TOKEN_HASH_DESC + COMPLETED_AT_ASC + COMPLETED_AT_DESC + CREATED_AT_ASC + CREATED_AT_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + ERROR_CODE_ASC + ERROR_CODE_DESC + ERROR_MESSAGE_ASC + ERROR_MESSAGE_DESC + EXECUTION_ID_ASC + EXECUTION_ID_DESC + EXPIRY_DEFAULT_OUTPUT_ASC + EXPIRY_DEFAULT_OUTPUT_DESC + EXPIRY_ESCALATED_AT_ASC + EXPIRY_ESCALATED_AT_DESC + EXPIRY_POLICY_ASC + EXPIRY_POLICY_DESC + ID_ASC + ID_DESC + NATURAL + NODE_NAME_ASC + NODE_NAME_DESC + NODE_PATH_ASC + NODE_PATH_DESC + OUTPUT_ID_ASC + OUTPUT_ID_DESC + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + STARTED_AT_ASC + STARTED_AT_DESC + STATUS_ASC + STATUS_DESC + WAITING_DEADLINE_AT_ASC + WAITING_DEADLINE_AT_DESC + WAITING_ON_ASC + WAITING_ON_DESC + WAITING_SINCE_ASC + WAITING_SINCE_DESC } """ -Function deployment bindings — ties a handler image to a namespace for Knative provisioning and routing (one row per handler image per namespace) +Represents an update to a `DatabaseFunctionGraphExecutionNodeState`. Fields that are set will be updated. """ -type FunctionDeployment { - """Freeform metadata for tooling and operational notes""" - annotations: JSON! - - """Max concurrent requests per pod (NULL = inherit from definition)""" - concurrency: Int - createdAt: Datetime - - """Database that owns this resource (database-scoped isolation)""" - databaseId: UUID! - - """Cumulative error count for this deployment""" - errorCount: Int! - +input DatabaseFunctionGraphExecutionNodeStatePatch { """ - Handler directory name (e.g. email, document) — used as FN_HANDLER_NAME in combined-image mode to select the entry point + Snapshot of the node's resolved inputs for resource-runtime nodes — served by the node gateway GET /inputs endpoint """ - handlerName: String - id: UUID! + callbackInputs: JSON """ - Logical image name — the handler identity and grouping key (e.g. fn-email). No registry host or tag; tag lives in image_version. + Metering/attribution context stamped at resource dispatch (namespace_id, task_identifier, entity_id, scope, resource identity, dispatched_at, attempt) — lets the node gateway settle and attribute without extra lookups """ - image: String! + callbackMeta: JSON - """Image tag/version for the handler container (e.g. latest, 2.6.4)""" - imageVersion: String! + """ + SHA-256 hex digest of the node callback token — set for resource-runtime nodes so the node gateway can authenticate result/error/heartbeat callbacks + """ + callbackTokenHash: String - """Key/value pairs for selecting and filtering deployments""" - labels: JSON! + """Timestamp when the node finished (success or failure)""" + completedAt: Datetime - """Most recent provisioning or runtime error message""" - lastError: String + """Timestamp of node state creation (partition key)""" + createdAt: Datetime - """Timestamp of the most recent error""" - lastErrorAt: Datetime + """Database scope for multi-tenant isolation""" + databaseId: UUID - """ - Reads a single `Namespace` that is related to this `FunctionDeployment`. - """ - namespace: Namespace + """Machine-readable error code when status = failed""" + errorCode: String - """Target namespace for this deployment (maps to a K8s namespace)""" - namespaceId: UUID! + """Human-readable error description when status = failed""" + errorMessage: 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 + """FK to the parent graph execution""" + executionId: UUID - """ - K8s resource spec override: {"requests":{"cpu":"100m","memory":"128Mi"},"limits":{...}} - """ - resources: JSON + """Declared output applied by the default_answer expiry policy""" + expiryDefaultOutput: JSON - """Deployment revision number (incremented on each redeployment)""" - revision: Int! + """When the escalate expiry policy fired — guards the one-time extension""" + expiryEscalatedAt: Datetime """ - Maximum replica count (NULL = inherit from definition or Knative default) + Declared expiry behaviour when waiting_deadline_at passes unanswered: fail (fail the execution), default_answer (settle with expiry_default_output), or escalate (notify and extend once) """ - scaleMax: Int + expiryPolicy: String - """ - Minimum replica count (NULL = inherit from definition or Knative default) - """ - scaleMin: Int + """Unique node state identifier""" + id: UUID - """ - Knative service name — a randomly minted cute name (unique_names.generate_name() + random hex suffix) assigned by the service_url trigger; unique per namespace, not derived from the image - """ - serviceName: String + """Name of the node within the graph (e.g. send-email1)""" + nodeName: String """ - Knative service URL (http://{service-name}.{namespace}.svc.cluster.local) — populated after provisioning + Full merkle tree path to this node (e.g. {function,graphs,myflow,nodes,send-email1}) — enables subnet hierarchy tracking """ - serviceUrl: String + nodePath: [String] - """ - Deployment lifecycle status: pending, provisioning, active, failed, scaled_to_zero, deactivated - """ - status: String! + """FK to execution_outputs — content-addressed output blob for this node""" + outputId: UUID - """Request timeout override in seconds (NULL = inherit from definition)""" - timeoutSeconds: Int - updatedAt: Datetime -} + """Timestamp when the node began executing""" + startedAt: Datetime -"""A connection to a list of `FunctionDeployment` values.""" -type FunctionDeploymentConnection { """ - A list of edges which contains the `FunctionDeployment` and cursor to aid in pagination. + Node lifecycle: pending → queued → running → completed/failed/cancelled """ - edges: [FunctionDeploymentEdge]! - - """A list of `FunctionDeployment` objects.""" - nodes: [FunctionDeployment]! + status: String - """Information to aid in pagination.""" - pageInfo: PageInfo! + """When the declared expiry policy applies to the still-unanswered node""" + waitingDeadlineAt: Datetime """ - The count of *all* `FunctionDeployment` you could get from the connection. + What class of external reporter settles this node: human (a person answers) or external (webhook/adapter). NULL for nodes with an active workload """ - totalCount: Int! -} + waitingOn: String -"""A `FunctionDeployment` edge in the connection.""" -type FunctionDeploymentEdge { - """A cursor for use in pagination.""" - cursor: Cursor + """When the node parked awaiting its external report""" + waitingSince: Datetime +} - """The `FunctionDeployment` at the end of the edge.""" - node: FunctionDeployment +"""Methods to use when ordering `DatabaseFunctionGraphExecution`.""" +enum DatabaseFunctionGraphExecutionOrderBy { + ACTOR_ID_ASC + ACTOR_ID_DESC + COMPLETED_AT_ASC + COMPLETED_AT_DESC + CURRENT_WAVE_ASC + CURRENT_WAVE_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + DEFINITIONS_COMMIT_ID_ASC + DEFINITIONS_COMMIT_ID_DESC + ENTITY_ID_ASC + ENTITY_ID_DESC + ENTITY_TYPE_ASC + ENTITY_TYPE_DESC + ERROR_CODE_ASC + ERROR_CODE_DESC + ERROR_MESSAGE_ASC + ERROR_MESSAGE_DESC + EXECUTION_PLAN_ASC + EXECUTION_PLAN_DESC + GRAPH_ID_ASC + GRAPH_ID_DESC + ID_ASC + ID_DESC + INPUT_PAYLOAD_ASC + INPUT_PAYLOAD_DESC + INVOCATION_CREATED_AT_ASC + INVOCATION_CREATED_AT_DESC + INVOCATION_ID_ASC + INVOCATION_ID_DESC + LAST_PROGRESS_AT_ASC + LAST_PROGRESS_AT_DESC + MAX_PENDING_JOBS_ASC + MAX_PENDING_JOBS_DESC + MAX_TICKS_ASC + MAX_TICKS_DESC + NATURAL + NODE_OUTPUTS_ASC + NODE_OUTPUTS_DESC + ORGANIZATION_ID_ASC + ORGANIZATION_ID_DESC + OUTPUT_NAMES_ASC + OUTPUT_NAMES_DESC + OUTPUT_NODE_ASC + OUTPUT_NODE_DESC + OUTPUT_PAYLOAD_ASC + OUTPUT_PAYLOAD_DESC + OUTPUT_PORT_ASC + OUTPUT_PORT_DESC + PARENT_EXECUTION_ID_ASC + PARENT_EXECUTION_ID_DESC + PARENT_INVOCATION_ID_ASC + PARENT_INVOCATION_ID_DESC + PARENT_NODE_NAME_ASC + PARENT_NODE_NAME_DESC + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + PRINCIPAL_ID_ASC + PRINCIPAL_ID_DESC + STARTED_AT_ASC + STARTED_AT_DESC + STATUS_ASC + STATUS_DESC + TICK_COUNT_ASC + TICK_COUNT_DESC + TIMEOUT_AT_ASC + TIMEOUT_AT_DESC } """ -Deployment lifecycle events — audit log of provisioning, scaling, and failure events +Content-addressed store for execution outputs — hash-referenced from node_outputs """ -type FunctionDeploymentEvent { - """User who triggered this event (NULL for system/automated)""" - actorId: UUID - - """Event timestamp (partition key)""" +type DatabaseFunctionGraphExecutionOutput { + """Timestamp of output creation""" createdAt: Datetime! - """Database that owns this resource (database-scoped isolation)""" - databaseId: UUID! + """The actual output payload from a completed node""" + data: JSON! - """Deployment this event belongs to""" - deploymentId: UUID! + """Database scope for multi-tenant isolation""" + databaseId: UUID! - """ - Event type: provisioned, scaled, failed, deactivated, redeployed, health_check - """ - eventType: String! + """SHA-256 hash of the data JSONB — content-addressed deduplication""" + hash: Base64EncodedBinary! - """Unique event identifier""" + """Unique execution output identifier""" id: UUID! - - """Human-readable description of the event""" - message: String - - """Structured context (old/new values, error details, etc.)""" - metadata: JSON } -"""A connection to a list of `FunctionDeploymentEvent` values.""" -type FunctionDeploymentEventConnection { +""" +A connection to a list of `DatabaseFunctionGraphExecutionOutput` values. +""" +type DatabaseFunctionGraphExecutionOutputConnection { """ - A list of edges which contains the `FunctionDeploymentEvent` and cursor to aid in pagination. + A list of edges which contains the `DatabaseFunctionGraphExecutionOutput` and cursor to aid in pagination. """ - edges: [FunctionDeploymentEventEdge]! + edges: [DatabaseFunctionGraphExecutionOutputEdge]! - """A list of `FunctionDeploymentEvent` objects.""" - nodes: [FunctionDeploymentEvent]! + """A list of `DatabaseFunctionGraphExecutionOutput` objects.""" + nodes: [DatabaseFunctionGraphExecutionOutput]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `FunctionDeploymentEvent` you could get from the connection. + The count of *all* `DatabaseFunctionGraphExecutionOutput` you could get from the connection. """ totalCount: Int! } -"""A `FunctionDeploymentEvent` edge in the connection.""" -type FunctionDeploymentEventEdge { +"""A `DatabaseFunctionGraphExecutionOutput` edge in the connection.""" +type DatabaseFunctionGraphExecutionOutputEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `FunctionDeploymentEvent` at the end of the edge.""" - node: FunctionDeploymentEvent + """The `DatabaseFunctionGraphExecutionOutput` at the end of the edge.""" + node: DatabaseFunctionGraphExecutionOutput } """ -A filter to be used against `FunctionDeploymentEvent` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `DatabaseFunctionGraphExecutionOutput` object types. All fields are combined with a logical ‘and.’ """ -input FunctionDeploymentEventFilter { - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter - +input DatabaseFunctionGraphExecutionOutputFilter { """Checks for all expressions in this list.""" - and: [FunctionDeploymentEventFilter!] + and: [DatabaseFunctionGraphExecutionOutputFilter!] """Filter by the object’s `createdAt` field.""" createdAt: DatetimeFilter + """Filter by the object’s `data` field.""" + data: JSONFilter + """Filter by the object’s `databaseId` field.""" databaseId: UUIDFilter - """Filter by the object’s `deploymentId` field.""" - deploymentId: UUIDFilter - - """Filter by the object’s `eventType` field.""" - eventType: StringFilter + """Filter by the object’s `hash` field.""" + hash: Base64EncodedBinaryFilter """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `message` field.""" - message: StringFilter - - """Filter by the object’s `metadata` field.""" - metadata: JSONFilter - """Negates the expression.""" - not: FunctionDeploymentEventFilter + not: DatabaseFunctionGraphExecutionOutputFilter """Checks for any expressions in this list.""" - or: [FunctionDeploymentEventFilter!] + or: [DatabaseFunctionGraphExecutionOutputFilter!] } -"""An input for mutations affecting `FunctionDeploymentEvent`""" -input FunctionDeploymentEventInput { - """User who triggered this event (NULL for system/automated)""" - actorId: UUID - - """Event timestamp (partition key)""" +""" +An input for mutations affecting `DatabaseFunctionGraphExecutionOutput` +""" +input DatabaseFunctionGraphExecutionOutputInput { + """Timestamp of output creation""" createdAt: Datetime - """Database that owns this resource (database-scoped isolation)""" - databaseId: UUID! + """The actual output payload from a completed node""" + data: JSON! - """Deployment this event belongs to""" - deploymentId: UUID! + """Database scope for multi-tenant isolation""" + databaseId: UUID! - """ - Event type: provisioned, scaled, failed, deactivated, redeployed, health_check - """ - eventType: String! + """SHA-256 hash of the data JSONB — content-addressed deduplication""" + hash: Base64EncodedBinary! - """Unique event identifier""" + """Unique execution output identifier""" id: UUID - - """Human-readable description of the event""" - message: String - - """Structured context (old/new values, error details, etc.)""" - metadata: JSON } -"""Methods to use when ordering `FunctionDeploymentEvent`.""" -enum FunctionDeploymentEventOrderBy { - ACTOR_ID_ASC - ACTOR_ID_DESC +"""Methods to use when ordering `DatabaseFunctionGraphExecutionOutput`.""" +enum DatabaseFunctionGraphExecutionOutputOrderBy { CREATED_AT_ASC CREATED_AT_DESC DATABASE_ID_ASC DATABASE_ID_DESC - DEPLOYMENT_ID_ASC - DEPLOYMENT_ID_DESC - EVENT_TYPE_ASC - EVENT_TYPE_DESC + DATA_ASC + DATA_DESC + HASH_ASC + HASH_DESC ID_ASC ID_DESC - MESSAGE_ASC - MESSAGE_DESC - METADATA_ASC - METADATA_DESC NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC } """ -Represents an update to a `FunctionDeploymentEvent`. Fields that are set will be updated. +Represents an update to a `DatabaseFunctionGraphExecutionOutput`. Fields that are set will be updated. """ -input FunctionDeploymentEventPatch { - """User who triggered this event (NULL for system/automated)""" - actorId: UUID - - """Event timestamp (partition key)""" +input DatabaseFunctionGraphExecutionOutputPatch { + """Timestamp of output creation""" createdAt: Datetime - """Database that owns this resource (database-scoped isolation)""" - databaseId: UUID + """The actual output payload from a completed node""" + data: JSON - """Deployment this event belongs to""" - deploymentId: UUID + """Database scope for multi-tenant isolation""" + databaseId: UUID - """ - Event type: provisioned, scaled, failed, deactivated, redeployed, health_check - """ - eventType: String + """SHA-256 hash of the data JSONB — content-addressed deduplication""" + hash: Base64EncodedBinary - """Unique event identifier""" + """Unique execution output identifier""" id: UUID - - """Human-readable description of the event""" - message: String - - """Structured context (old/new values, error details, etc.)""" - metadata: JSON } """ -A filter to be used against `FunctionDeployment` object types. All fields are combined with a logical ‘and.’ +Represents an update to a `DatabaseFunctionGraphExecution`. Fields that are set will be updated. """ -input FunctionDeploymentFilter { - """Checks for all expressions in this list.""" - and: [FunctionDeploymentFilter!] +input DatabaseFunctionGraphExecutionPatch { + """User actor propagated to asynchronous graph jobs""" + actorId: UUID - """Filter by the object’s `annotations` field.""" - annotations: JSONFilter + """Execution completion timestamp""" + completedAt: Datetime - """Filter by the object’s `concurrency` field.""" - concurrency: IntFilter + """Index into execution_plan — tick only processes this wave""" + currentWave: Int - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter + """Database scope for multi-tenant isolation""" + databaseId: UUID - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter + """Pinned definitions store commit for deterministic evaluation""" + definitionsCommitId: UUID - """Filter by the object’s `errorCount` field.""" - errorCount: IntFilter + """Entity context propagated to asynchronous graph jobs""" + entityId: UUID - """Filter by the object’s `handlerName` field.""" - handlerName: StringFilter + """Scope discriminator propagated to asynchronous graph jobs""" + entityType: String - """Filter by the object’s `id` field.""" - id: UUIDFilter + """Machine-readable error code when status = failed""" + errorCode: String - """Filter by the object’s `image` field.""" - image: StringFilter + """Human-readable error description when status = failed""" + errorMessage: String - """Filter by the object’s `imageVersion` field.""" - imageVersion: StringFilter + """Pre-computed topological sort as array of wave objects""" + executionPlan: JSON - """Filter by the object’s `labels` field.""" - labels: JSONFilter + """FK to the graph definition being executed""" + graphId: UUID - """Filter by the object’s `lastError` field.""" - lastError: StringFilter + """Unique execution identifier""" + id: UUID - """Filter by the object’s `lastErrorAt` field.""" - lastErrorAt: DatetimeFilter + """Initial inputs provided at invocation time""" + inputPayload: JSON - """Filter by the object’s `namespace` relation.""" - namespace: NamespaceFilter + """ + Partition coordinate for the function invocation that launched this graph execution + """ + invocationCreatedAt: Datetime - """Filter by the object’s `namespaceId` field.""" - namespaceId: UUIDFilter + """Function invocation that launched this top-level graph execution""" + invocationId: UUID - """Negates the expression.""" - not: FunctionDeploymentFilter + """ + Timestamp of the last real progress (node enqueue, node output, completion) — drives the activity-debounced watchdog + """ + lastProgressAt: Datetime - """Checks for any expressions in this list.""" - or: [FunctionDeploymentFilter!] + """Maximum pending jobs before execution is failed (default 50)""" + maxPendingJobs: Int - """Filter by the object’s `realm` field.""" - realm: StringFilter + """Maximum ticks before execution is failed (default 100)""" + maxTicks: Int - """Filter by the object’s `resources` field.""" - resources: JSONFilter + """ + Map of node_name → execution output id (content-addressed hash reference) + """ + nodeOutputs: JSON - """Filter by the object’s `revision` field.""" - revision: IntFilter + """Organization context propagated to asynchronous graph jobs""" + organizationId: UUID - """Filter by the object’s `scaleMax` field.""" - scaleMax: IntFilter + """ + Selected graphOutput portName values; NULL or empty returns all graph outputs + """ + outputNames: [String] - """Filter by the object’s `scaleMin` field.""" - scaleMin: IntFilter + """ + Target output boundary node name to resolve; NULL derives completion from the graph's graphOutput nodes + """ + outputNode: String - """Filter by the object’s `serviceName` field.""" - serviceName: StringFilter + """Final result extracted from terminal output node""" + outputPayload: JSON - """Filter by the object’s `serviceUrl` field.""" - serviceUrl: StringFilter + """Target output port name (default: value)""" + outputPort: String - """Filter by the object’s `status` field.""" - status: StringFilter + """Parent execution when this is a sub-execution""" + parentExecutionId: UUID - """Filter by the object’s `timeoutSeconds` field.""" - timeoutSeconds: IntFilter + """ + Function invocation parent assigned to node invocations spawned by this execution + """ + parentInvocationId: UUID - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter + """Node name in parent execution that spawned this sub-execution""" + parentNodeName: String + + """Principal identity propagated to asynchronous graph jobs""" + principalId: UUID + + """Execution start timestamp""" + startedAt: Datetime + + """Lifecycle: pending → running → completed/failed/cancelled""" + status: String + + """Number of evaluate_step ticks executed""" + tickCount: Int + + """Absolute deadline — execution fails if still running after this time""" + timeoutAt: Datetime } -"""An input for mutations affecting `FunctionDeployment`""" -input FunctionDeploymentInput { - """Freeform metadata for tooling and operational notes""" - annotations: JSON +""" +A filter to be used against `DatabaseFunctionGraph` object types. All fields are combined with a logical ‘and.’ +""" +input DatabaseFunctionGraphFilter { + """Checks for all expressions in this list.""" + and: [DatabaseFunctionGraphFilter!] - """Max concurrent requests per pod (NULL = inherit from definition)""" - concurrency: Int - createdAt: Datetime + """Filter by the object’s `context` field.""" + context: StringFilter - """Database that owns this resource (database-scoped isolation)""" - databaseId: UUID! + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter - """Cumulative error count for this deployment""" - errorCount: Int + """Filter by the object’s `createdBy` field.""" + createdBy: UUIDFilter """ - Handler directory name (e.g. email, document) — used as FN_HANDLER_NAME in combined-image mode to select the entry point + Filter by the object’s `databaseFunctionGraphExecutionsByGraphId` relation. """ - handlerName: String - id: UUID + databaseFunctionGraphExecutionsByGraphId: DatabaseFunctionGraphToManyDatabaseFunctionGraphExecutionFilter - """ - Logical image name — the handler identity and grouping key (e.g. fn-email). No registry host or tag; tag lives in image_version. - """ - image: String! + """`databaseFunctionGraphExecutionsByGraphId` exist.""" + databaseFunctionGraphExecutionsByGraphIdExist: Boolean - """Image tag/version for the handler container (e.g. latest, 2.6.4)""" - imageVersion: String + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter - """Key/value pairs for selecting and filtering deployments""" - labels: JSON + """Filter by the object’s `definitionsCommitId` field.""" + definitionsCommitId: UUIDFilter - """Most recent provisioning or runtime error message""" - lastError: String + """Filter by the object’s `description` field.""" + description: StringFilter - """Timestamp of the most recent error""" - lastErrorAt: Datetime + """Filter by the object’s `functionDefinitionsByGraphId` relation.""" + functionDefinitionsByGraphId: DatabaseFunctionGraphToManyFunctionDefinitionFilter - """Target namespace for this deployment (maps to a K8s namespace)""" - namespaceId: UUID! + """`functionDefinitionsByGraphId` exist.""" + functionDefinitionsByGraphIdExist: Boolean - """ - 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 + """Filter by the object’s `id` field.""" + id: UUIDFilter - """ - K8s resource spec override: {"requests":{"cpu":"100m","memory":"128Mi"},"limits":{...}} - """ - resources: JSON + """Filter by the object’s `isValid` field.""" + isValid: BooleanFilter - """Deployment revision number (incremented on each redeployment)""" - revision: Int + """Filter by the object’s `name` field.""" + name: StringFilter - """ - Maximum replica count (NULL = inherit from definition or Knative default) - """ - scaleMax: Int + """Negates the expression.""" + not: DatabaseFunctionGraphFilter - """ - Minimum replica count (NULL = inherit from definition or Knative default) - """ - scaleMin: Int + """Checks for any expressions in this list.""" + or: [DatabaseFunctionGraphFilter!] - """ - Knative service name — a randomly minted cute name (unique_names.generate_name() + random hex suffix) assigned by the service_url trigger; unique per namespace, not derived from the image - """ - serviceName: String + """Filter by the object’s `repositoryWorkflowsByGraphId` relation.""" + repositoryWorkflowsByGraphId: DatabaseFunctionGraphToManyRepositoryWorkflowFilter - """ - Knative service URL (http://{service-name}.{namespace}.svc.cluster.local) — populated after provisioning - """ - serviceUrl: String + """`repositoryWorkflowsByGraphId` exist.""" + repositoryWorkflowsByGraphIdExist: Boolean - """ - Deployment lifecycle status: pending, provisioning, active, failed, scaled_to_zero, deactivated - """ - status: String + """Filter by the object’s `storeId` field.""" + storeId: UUIDFilter - """Request timeout override in seconds (NULL = inherit from definition)""" - timeoutSeconds: Int - updatedAt: Datetime + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + + """Filter by the object’s `validationErrors` field.""" + validationErrors: JSONFilter } -"""Methods to use when ordering `FunctionDeployment`.""" -enum FunctionDeploymentOrderBy { - ANNOTATIONS_ASC - ANNOTATIONS_DESC - CONCURRENCY_ASC - CONCURRENCY_DESC +"""Methods to use when ordering `DatabaseFunctionGraph`.""" +enum DatabaseFunctionGraphOrderBy { + CONTEXT_ASC + CONTEXT_DESC CREATED_AT_ASC CREATED_AT_DESC + CREATED_BY_ASC + CREATED_BY_DESC DATABASE_ID_ASC DATABASE_ID_DESC - ERROR_COUNT_ASC - ERROR_COUNT_DESC - HANDLER_NAME_ASC - HANDLER_NAME_DESC + DEFINITIONS_COMMIT_ID_ASC + DEFINITIONS_COMMIT_ID_DESC + DESCRIPTION_ASC + DESCRIPTION_DESC ID_ASC ID_DESC - IMAGE_ASC - IMAGE_DESC - IMAGE_VERSION_ASC - IMAGE_VERSION_DESC - LABELS_ASC - LABELS_DESC - LAST_ERROR_ASC - LAST_ERROR_AT_ASC - LAST_ERROR_AT_DESC - LAST_ERROR_DESC - NAMESPACE_ID_ASC - NAMESPACE_ID_DESC + IS_VALID_ASC + IS_VALID_DESC + NAME_ASC + NAME_DESC NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC - REALM_ASC - REALM_DESC - RESOURCES_ASC - RESOURCES_DESC - REVISION_ASC - REVISION_DESC - SCALE_MAX_ASC - SCALE_MAX_DESC - SCALE_MIN_ASC - SCALE_MIN_DESC - SERVICE_NAME_ASC - SERVICE_NAME_DESC - SERVICE_URL_ASC - SERVICE_URL_DESC - STATUS_ASC - STATUS_DESC - TIMEOUT_SECONDS_ASC - TIMEOUT_SECONDS_DESC + STORE_ID_ASC + STORE_ID_DESC UPDATED_AT_ASC UPDATED_AT_DESC + VALIDATION_ERRORS_ASC + VALIDATION_ERRORS_DESC } """ -Represents an update to a `FunctionDeployment`. Fields that are set will be updated. +Represents an update to a `DatabaseFunctionGraph`. Fields that are set will be updated. """ -input FunctionDeploymentPatch { - """Freeform metadata for tooling and operational notes""" - annotations: JSON +input DatabaseFunctionGraphPatch { + """Evaluator/runtime context (function, js, sql, system)""" + context: String - """Max concurrent requests per pod (NULL = inherit from definition)""" - concurrency: Int + """Timestamp of graph creation""" createdAt: Datetime - """Database that owns this resource (database-scoped isolation)""" + """Actor who created this graph""" + createdBy: UUID + + """Database scope for multi-tenant isolation""" databaseId: UUID - """Cumulative error count for this deployment""" - errorCount: Int + """Pinned definitions store commit for deterministic evaluation""" + definitionsCommitId: UUID - """ - Handler directory name (e.g. email, document) — used as FN_HANDLER_NAME in combined-image mode to select the entry point - """ - handlerName: String - id: UUID + """Human-readable description of the graph""" + description: String - """ - Logical image name — the handler identity and grouping key (e.g. fn-email). No registry host or tag; tag lives in image_version. - """ - image: String + """Unique graph identifier""" + id: UUID - """Image tag/version for the handler container (e.g. latest, 2.6.4)""" - imageVersion: String + """Whether graph passes structural validation""" + isValid: Boolean - """Key/value pairs for selecting and filtering deployments""" - labels: JSON + """Graph name (unique per database)""" + name: String - """Most recent provisioning or runtime error message""" - lastError: String + """Graph store (Merkle store) holding the graph definition""" + storeId: UUID - """Timestamp of the most recent error""" - lastErrorAt: Datetime + """Timestamp of last modification""" + updatedAt: Datetime - """Target namespace for this deployment (maps to a K8s namespace)""" - namespaceId: UUID + """Array of validation error objects when is_valid = false""" + validationErrors: JSON +} - """ - 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 +""" +A filter to be used against many `DatabaseFunctionGraphExecution` object types. All fields are combined with a logical ‘and.’ +""" +input DatabaseFunctionGraphToManyDatabaseFunctionGraphExecutionFilter { + """Filters to entities where every related entity matches.""" + every: DatabaseFunctionGraphExecutionFilter - """ - K8s resource spec override: {"requests":{"cpu":"100m","memory":"128Mi"},"limits":{...}} - """ - resources: JSON + """Filters to entities where no related entity matches.""" + none: DatabaseFunctionGraphExecutionFilter - """Deployment revision number (incremented on each redeployment)""" - revision: Int + """Filters to entities where at least one related entity matches.""" + some: DatabaseFunctionGraphExecutionFilter +} - """ - Maximum replica count (NULL = inherit from definition or Knative default) - """ - scaleMax: Int +""" +A filter to be used against many `FunctionDefinition` object types. All fields are combined with a logical ‘and.’ +""" +input DatabaseFunctionGraphToManyFunctionDefinitionFilter { + """Filters to entities where every related entity matches.""" + every: FunctionDefinitionFilter - """ - Minimum replica count (NULL = inherit from definition or Knative default) - """ - scaleMin: Int + """Filters to entities where no related entity matches.""" + none: FunctionDefinitionFilter - """ - Knative service name — a randomly minted cute name (unique_names.generate_name() + random hex suffix) assigned by the service_url trigger; unique per namespace, not derived from the image - """ - serviceName: String + """Filters to entities where at least one related entity matches.""" + some: FunctionDefinitionFilter +} - """ - Knative service URL (http://{service-name}.{namespace}.svc.cluster.local) — populated after provisioning - """ - serviceUrl: String +""" +A filter to be used against many `RepositoryWorkflow` object types. All fields are combined with a logical ‘and.’ +""" +input DatabaseFunctionGraphToManyRepositoryWorkflowFilter { + """Filters to entities where every related entity matches.""" + every: RepositoryWorkflowFilter - """ - Deployment lifecycle status: pending, provisioning, active, failed, scaled_to_zero, deactivated - """ - status: String + """Filters to entities where no related entity matches.""" + none: RepositoryWorkflowFilter - """Request timeout override in seconds (NULL = inherit from definition)""" - timeoutSeconds: Int - updatedAt: Datetime + """Filters to entities where at least one related entity matches.""" + some: RepositoryWorkflowFilter } -"""Function execution logs — structured console output per invocation""" -type FunctionExecutionLog { - """User who triggered the execution (NULL for system/cron)""" - actorId: UUID +"""Commit history — each commit snapshots a tree root for a store""" +type DatabaseGraphCommit { + """User who authored the changes""" + authorId: UUID - """Log entry timestamp (partition key)""" - createdAt: Datetime! + """User who committed (may differ from author)""" + committerId: UUID - """Database that owns this resource (database-scoped isolation)""" + """Database scope for multi-tenant isolation""" databaseId: UUID! - """Unique log entry identifier""" - id: UUID! + """Commit timestamp""" + date: Datetime! - """Invocation this log entry belongs to (NULL for standalone job logs)""" - invocationId: UUID + """Unique commit identifier""" + id: UUID! - """Log severity: debug, info, warn, error""" - logLevel: String! + """Optional commit message""" + message: String - """Log message text""" - message: String! + """Parent commit IDs (supports merge commits)""" + parentIds: [UUID] - """Structured context (labels, trace data, extra fields)""" - metadata: JSON + """Store this commit belongs to""" + storeId: UUID! - """Function routing key (NULL for generic job logs)""" - taskIdentifier: String + """Root object ID of the tree snapshot at this commit""" + treeId: UUID } -"""A connection to a list of `FunctionExecutionLog` values.""" -type FunctionExecutionLogConnection { +"""A connection to a list of `DatabaseGraphCommit` values.""" +type DatabaseGraphCommitConnection { """ - A list of edges which contains the `FunctionExecutionLog` and cursor to aid in pagination. + A list of edges which contains the `DatabaseGraphCommit` and cursor to aid in pagination. """ - edges: [FunctionExecutionLogEdge]! + edges: [DatabaseGraphCommitEdge]! - """A list of `FunctionExecutionLog` objects.""" - nodes: [FunctionExecutionLog]! + """A list of `DatabaseGraphCommit` objects.""" + nodes: [DatabaseGraphCommit]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `FunctionExecutionLog` you could get from the connection. + The count of *all* `DatabaseGraphCommit` you could get from the connection. """ totalCount: Int! } -"""A `FunctionExecutionLog` edge in the connection.""" -type FunctionExecutionLogEdge { +"""A `DatabaseGraphCommit` edge in the connection.""" +type DatabaseGraphCommitEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `FunctionExecutionLog` at the end of the edge.""" - node: FunctionExecutionLog + """The `DatabaseGraphCommit` at the end of the edge.""" + node: DatabaseGraphCommit } """ -A filter to be used against `FunctionExecutionLog` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `DatabaseGraphCommit` object types. All fields are combined with a logical ‘and.’ """ -input FunctionExecutionLogFilter { - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter - +input DatabaseGraphCommitFilter { """Checks for all expressions in this list.""" - and: [FunctionExecutionLogFilter!] + and: [DatabaseGraphCommitFilter!] - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter + """Filter by the object’s `authorId` field.""" + authorId: UUIDFilter + + """Filter by the object’s `committerId` field.""" + committerId: UUIDFilter """Filter by the object’s `databaseId` field.""" databaseId: UUIDFilter + """Filter by the object’s `date` field.""" + date: DatetimeFilter + """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `invocationId` field.""" - invocationId: UUIDFilter - - """Filter by the object’s `logLevel` field.""" - logLevel: StringFilter - """Filter by the object’s `message` field.""" message: StringFilter - """Filter by the object’s `metadata` field.""" - metadata: JSONFilter - """Negates the expression.""" - not: FunctionExecutionLogFilter + not: DatabaseGraphCommitFilter """Checks for any expressions in this list.""" - or: [FunctionExecutionLogFilter!] + or: [DatabaseGraphCommitFilter!] - """Filter by the object’s `taskIdentifier` field.""" - taskIdentifier: StringFilter + """Filter by the object’s `parentIds` field.""" + parentIds: UUIDListFilter + + """Filter by the object’s `storeId` field.""" + storeId: UUIDFilter + + """Filter by the object’s `treeId` field.""" + treeId: UUIDFilter } -"""An input for mutations affecting `FunctionExecutionLog`""" -input FunctionExecutionLogInput { - """User who triggered the execution (NULL for system/cron)""" - actorId: UUID +"""An input for mutations affecting `DatabaseGraphCommit`""" +input DatabaseGraphCommitInput { + """User who authored the changes""" + authorId: UUID - """Log entry timestamp (partition key)""" - createdAt: Datetime + """User who committed (may differ from author)""" + committerId: UUID - """Database that owns this resource (database-scoped isolation)""" + """Database scope for multi-tenant isolation""" databaseId: UUID! - """Unique log entry identifier""" - id: UUID + """Commit timestamp""" + date: Datetime - """Invocation this log entry belongs to (NULL for standalone job logs)""" - invocationId: UUID + """Unique commit identifier""" + id: UUID - """Log severity: debug, info, warn, error""" - logLevel: String + """Optional commit message""" + message: String - """Log message text""" - message: String! + """Parent commit IDs (supports merge commits)""" + parentIds: [UUID] - """Structured context (labels, trace data, extra fields)""" - metadata: JSON + """Store this commit belongs to""" + storeId: UUID! - """Function routing key (NULL for generic job logs)""" - taskIdentifier: String + """Root object ID of the tree snapshot at this commit""" + treeId: UUID } -"""Methods to use when ordering `FunctionExecutionLog`.""" -enum FunctionExecutionLogOrderBy { - ACTOR_ID_ASC - ACTOR_ID_DESC - CREATED_AT_ASC - CREATED_AT_DESC +"""Methods to use when ordering `DatabaseGraphCommit`.""" +enum DatabaseGraphCommitOrderBy { + AUTHOR_ID_ASC + AUTHOR_ID_DESC + COMMITTER_ID_ASC + COMMITTER_ID_DESC DATABASE_ID_ASC DATABASE_ID_DESC + DATE_ASC + DATE_DESC ID_ASC ID_DESC - INVOCATION_ID_ASC - INVOCATION_ID_DESC - LOG_LEVEL_ASC - LOG_LEVEL_DESC MESSAGE_ASC MESSAGE_DESC - METADATA_ASC - METADATA_DESC NATURAL + PARENT_IDS_ASC + PARENT_IDS_DESC PRIMARY_KEY_ASC PRIMARY_KEY_DESC - TASK_IDENTIFIER_ASC - TASK_IDENTIFIER_DESC + STORE_ID_ASC + STORE_ID_DESC + TREE_ID_ASC + TREE_ID_DESC } """ -Represents an update to a `FunctionExecutionLog`. Fields that are set will be updated. +Represents an update to a `DatabaseGraphCommit`. Fields that are set will be updated. """ -input FunctionExecutionLogPatch { - """User who triggered the execution (NULL for system/cron)""" - actorId: UUID +input DatabaseGraphCommitPatch { + """User who authored the changes""" + authorId: UUID - """Log entry timestamp (partition key)""" - createdAt: Datetime + """User who committed (may differ from author)""" + committerId: UUID - """Database that owns this resource (database-scoped isolation)""" + """Database scope for multi-tenant isolation""" databaseId: UUID - """Unique log entry identifier""" - id: UUID - - """Invocation this log entry belongs to (NULL for standalone job logs)""" - invocationId: UUID + """Commit timestamp""" + date: Datetime - """Log severity: debug, info, warn, error""" - logLevel: String + """Unique commit identifier""" + id: UUID - """Log message text""" + """Optional commit message""" message: String - """Structured context (labels, trace data, extra fields)""" - metadata: JSON - - """Function routing key (NULL for generic job logs)""" - taskIdentifier: String -} + """Parent commit IDs (supports merge commits)""" + parentIds: [UUID] -""" -Flow graph definitions — FBP graphs stored in the dedicated graph Merkle store -""" -type FunctionGraph { - """Evaluator/runtime context (function, js, sql, system)""" - context: String! + """Store this commit belongs to""" + storeId: UUID - """Timestamp of graph creation""" - createdAt: Datetime! + """Root object ID of the tree snapshot at this commit""" + treeId: UUID +} - """Actor who created this graph""" - createdBy: UUID +"""A connection to a list of `DatabaseGraphGetAllTreeNodesRecord` values.""" +type DatabaseGraphGetAllTreeNodesConnection { + """ + A list of edges which contains the `DatabaseGraphGetAllTreeNodesRecord` and cursor to aid in pagination. + """ + edges: [DatabaseGraphGetAllTreeNodesEdge]! - """Pinned definitions store commit for deterministic evaluation""" - definitionsCommitId: UUID + """A list of `DatabaseGraphGetAllTreeNodesRecord` objects.""" + nodes: [DatabaseGraphGetAllTreeNodesRecord]! - """Human-readable description of the graph""" - description: String + """Information to aid in pagination.""" + pageInfo: PageInfo! """ - Reads and enables pagination through a set of `FunctionGraphExecution`. + The count of *all* `DatabaseGraphGetAllTreeNodesRecord` you could get from the connection. """ - functionGraphExecutionsByGraphId( - """Read all values in the set after (below) this cursor.""" - after: Cursor + totalCount: Int! +} - """Read all values in the set before (above) this cursor.""" - before: Cursor +"""A `DatabaseGraphGetAllTreeNodesRecord` edge in the connection.""" +type DatabaseGraphGetAllTreeNodesEdge { + """A cursor for use in pagination.""" + cursor: Cursor - """Only read the first `n` values of the set.""" - first: Int + """The `DatabaseGraphGetAllTreeNodesRecord` at the end of the edge.""" + node: DatabaseGraphGetAllTreeNodesRecord +} - """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 `FunctionGraphExecution`.""" - orderBy: [FunctionGraphExecutionOrderBy!] = [PRIMARY_KEY_ASC] - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: FunctionGraphExecutionFilter - ): FunctionGraphExecutionConnection! - - """Unique graph identifier""" - id: UUID! - - """Whether graph passes structural validation""" - isValid: Boolean! - - """Graph name (unique per database)""" - name: String! +type DatabaseGraphGetAllTreeNodesRecord { + data: JSON + path: [String] +} +"""All input for the `databaseGraphInitEmptyRepo` mutation.""" +input DatabaseGraphInitEmptyRepoInput { """ - Reads and enables pagination through a set of `PlatformFunctionDefinition`. + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - platformFunctionDefinitionsByGraphId( - """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 + clientMutationId: String + sId: UUID + storeId: UUID +} - """Only read the last `n` values of the set.""" - last: Int +"""The output of our `databaseGraphInitEmptyRepo` mutation.""" +type DatabaseGraphInitEmptyRepoPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} - """The method to use when ordering `PlatformFunctionDefinition`.""" - orderBy: [PlatformFunctionDefinitionOrderBy!] = [PRIMARY_KEY_ASC] +"""All input for the `databaseGraphInsertNodeAtPath` mutation.""" +input DatabaseGraphInsertNodeAtPathInput { + """ + An arbitrary 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] + path: [String] + root: UUID + sId: UUID +} - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: PlatformFunctionDefinitionFilter - ): PlatformFunctionDefinitionConnection! +"""The output of our `databaseGraphInsertNodeAtPath` mutation.""" +type DatabaseGraphInsertNodeAtPathPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """Opaque store partition key for the global tier""" - scopeId: UUID! + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + result: UUID +} - """Graph store (Merkle store) holding the graph definition""" - storeId: UUID! +"""All input for the `databaseGraphInsertNodesAtPaths` mutation.""" +input DatabaseGraphInsertNodesAtPathsInput { + """ + An arbitrary 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 +} - """Timestamp of last modification""" - updatedAt: Datetime! +"""The output of our `databaseGraphInsertNodesAtPaths` mutation.""" +type DatabaseGraphInsertNodesAtPathsPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """Array of validation error objects when is_valid = false""" - validationErrors: JSON + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + result: UUID } -"""Commit history — each commit snapshots a tree root for a store""" -type FunctionGraphCommit { - """User who authored the changes""" - authorId: UUID +""" +Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children +""" +type DatabaseGraphObject { + """Timestamp of object creation""" + createdAt: Datetime - """User who committed (may differ from author)""" - committerId: UUID + """Payload data for this object node""" + data: JSON - """Commit timestamp""" - date: Datetime! + """Database scope for multi-tenant isolation""" + databaseId: UUID! - """Unique commit identifier""" + """Content-addressed UUID v5 — deterministic hash of (data, kids, ktree)""" id: UUID! - """Optional commit message""" - message: String - - """Parent commit IDs (supports merge commits)""" - parentIds: [UUID] - - """Opaque store partition key for the global tier""" - scopeId: UUID! - - """Store this commit belongs to""" - storeId: UUID! + """Ordered array of child object IDs""" + kids: [UUID] - """Root object ID of the tree snapshot at this commit""" - treeId: UUID + """Ordered array of child path names (parallel to kids)""" + ktree: [String] } -"""A connection to a list of `FunctionGraphCommit` values.""" -type FunctionGraphCommitConnection { +"""A connection to a list of `DatabaseGraphObject` values.""" +type DatabaseGraphObjectConnection { """ - A list of edges which contains the `FunctionGraphCommit` and cursor to aid in pagination. + A list of edges which contains the `DatabaseGraphObject` and cursor to aid in pagination. """ - edges: [FunctionGraphCommitEdge]! + edges: [DatabaseGraphObjectEdge]! - """A list of `FunctionGraphCommit` objects.""" - nodes: [FunctionGraphCommit]! + """A list of `DatabaseGraphObject` objects.""" + nodes: [DatabaseGraphObject]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `FunctionGraphCommit` you could get from the connection. + The count of *all* `DatabaseGraphObject` you could get from the connection. """ totalCount: Int! } -"""A `FunctionGraphCommit` edge in the connection.""" -type FunctionGraphCommitEdge { +"""A `DatabaseGraphObject` edge in the connection.""" +type DatabaseGraphObjectEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `FunctionGraphCommit` at the end of the edge.""" - node: FunctionGraphCommit + """The `DatabaseGraphObject` at the end of the edge.""" + node: DatabaseGraphObject } """ -A filter to be used against `FunctionGraphCommit` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `DatabaseGraphObject` object types. All fields are combined with a logical ‘and.’ """ -input FunctionGraphCommitFilter { +input DatabaseGraphObjectFilter { """Checks for all expressions in this list.""" - and: [FunctionGraphCommitFilter!] + and: [DatabaseGraphObjectFilter!] - """Filter by the object’s `authorId` field.""" - authorId: UUIDFilter + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter - """Filter by the object’s `committerId` field.""" - committerId: UUIDFilter + """Filter by the object’s `data` field.""" + data: JSONFilter - """Filter by the object’s `date` field.""" - date: DatetimeFilter + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `message` field.""" - message: StringFilter + """Filter by the object’s `kids` field.""" + kids: UUIDListFilter + + """Filter by the object’s `ktree` field.""" + ktree: StringListFilter """Negates the expression.""" - not: FunctionGraphCommitFilter + not: DatabaseGraphObjectFilter """Checks for any expressions in this list.""" - or: [FunctionGraphCommitFilter!] - - """Filter by the object’s `parentIds` field.""" - parentIds: UUIDListFilter - - """Filter by the object’s `scopeId` field.""" - scopeId: UUIDFilter - - """Filter by the object’s `storeId` field.""" - storeId: UUIDFilter - - """Filter by the object’s `treeId` field.""" - treeId: UUIDFilter + or: [DatabaseGraphObjectFilter!] } -"""An input for mutations affecting `FunctionGraphCommit`""" -input FunctionGraphCommitInput { - """User who authored the changes""" - authorId: UUID - - """User who committed (may differ from author)""" - committerId: UUID - - """Commit timestamp""" - date: Datetime - - """Unique commit identifier""" - id: UUID +"""An input for mutations affecting `DatabaseGraphObject`""" +input DatabaseGraphObjectInput { + """Timestamp of object creation""" + createdAt: Datetime - """Optional commit message""" - message: String + """Payload data for this object node""" + data: JSON - """Parent commit IDs (supports merge commits)""" - parentIds: [UUID] + """Database scope for multi-tenant isolation""" + databaseId: UUID! - """Opaque store partition key for the global tier""" - scopeId: UUID! + """Content-addressed UUID v5 — deterministic hash of (data, kids, ktree)""" + id: UUID! - """Store this commit belongs to""" - storeId: UUID! + """Ordered array of child object IDs""" + kids: [UUID] - """Root object ID of the tree snapshot at this commit""" - treeId: UUID + """Ordered array of child path names (parallel to kids)""" + ktree: [String] } -"""Methods to use when ordering `FunctionGraphCommit`.""" -enum FunctionGraphCommitOrderBy { - AUTHOR_ID_ASC - AUTHOR_ID_DESC - COMMITTER_ID_ASC - COMMITTER_ID_DESC - DATE_ASC - DATE_DESC +"""Methods to use when ordering `DatabaseGraphObject`.""" +enum DatabaseGraphObjectOrderBy { + CREATED_AT_ASC + CREATED_AT_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + DATA_ASC + DATA_DESC ID_ASC ID_DESC - MESSAGE_ASC - MESSAGE_DESC + KIDS_ASC + KIDS_DESC + KTREE_ASC + KTREE_DESC NATURAL - PARENT_IDS_ASC - PARENT_IDS_DESC PRIMARY_KEY_ASC PRIMARY_KEY_DESC - SCOPE_ID_ASC - SCOPE_ID_DESC - STORE_ID_ASC - STORE_ID_DESC - TREE_ID_ASC - TREE_ID_DESC } """ -Represents an update to a `FunctionGraphCommit`. Fields that are set will be updated. +Represents an update to a `DatabaseGraphObject`. Fields that are set will be updated. """ -input FunctionGraphCommitPatch { - """User who authored the changes""" - authorId: UUID +input DatabaseGraphObjectPatch { + """Timestamp of object creation""" + createdAt: Datetime - """User who committed (may differ from author)""" - committerId: UUID + """Payload data for this object node""" + data: JSON - """Commit timestamp""" - date: Datetime + """Database scope for multi-tenant isolation""" + databaseId: UUID - """Unique commit identifier""" + """Content-addressed UUID v5 — deterministic hash of (data, kids, ktree)""" id: UUID - """Optional commit message""" - message: String + """Ordered array of child object IDs""" + kids: [UUID] - """Parent commit IDs (supports merge commits)""" - parentIds: [UUID] + """Ordered array of child path names (parallel to kids)""" + ktree: [String] +} - """Opaque store partition key for the global tier""" - scopeId: UUID +"""Branch heads — mutable pointers into the commit chain""" +type DatabaseGraphRef { + """Commit this ref points to""" + commitId: UUID - """Store this commit belongs to""" - storeId: UUID + """Database scope for multi-tenant isolation""" + databaseId: UUID! - """Root object ID of the tree snapshot at this commit""" - treeId: UUID + """Unique ref identifier""" + id: UUID! + + """Ref name (e.g. HEAD, main)""" + name: String! + + """Store this ref belongs to""" + storeId: UUID! } -"""A connection to a list of `FunctionGraph` values.""" -type FunctionGraphConnection { +"""A connection to a list of `DatabaseGraphRef` values.""" +type DatabaseGraphRefConnection { """ - A list of edges which contains the `FunctionGraph` and cursor to aid in pagination. + A list of edges which contains the `DatabaseGraphRef` and cursor to aid in pagination. """ - edges: [FunctionGraphEdge]! + edges: [DatabaseGraphRefEdge]! - """A list of `FunctionGraph` objects.""" - nodes: [FunctionGraph]! + """A list of `DatabaseGraphRef` objects.""" + nodes: [DatabaseGraphRef]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `FunctionGraph` you could get from the connection.""" + """ + The count of *all* `DatabaseGraphRef` you could get from the connection. + """ totalCount: Int! } -"""A `FunctionGraph` edge in the connection.""" -type FunctionGraphEdge { +"""A `DatabaseGraphRef` edge in the connection.""" +type DatabaseGraphRefEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `FunctionGraph` at the end of the edge.""" - node: FunctionGraph + """The `DatabaseGraphRef` at the end of the edge.""" + node: DatabaseGraphRef } -"""Ephemeral execution state for flow graph evaluation""" -type FunctionGraphExecution { - """User actor propagated to asynchronous graph jobs""" - actorId: UUID +""" +A filter to be used against `DatabaseGraphRef` object types. All fields are combined with a logical ‘and.’ +""" +input DatabaseGraphRefFilter { + """Checks for all expressions in this list.""" + and: [DatabaseGraphRefFilter!] - """Execution completion timestamp""" - completedAt: Datetime + """Filter by the object’s `commitId` field.""" + commitId: UUIDFilter - """Index into execution_plan — tick only processes this wave""" - currentWave: Int! + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter - """Pinned definitions store commit for deterministic evaluation""" - definitionsCommitId: UUID + """Filter by the object’s `id` field.""" + id: UUIDFilter - """Entity context propagated to asynchronous graph jobs""" - entityId: UUID + """Filter by the object’s `name` field.""" + name: StringFilter - """Scope discriminator propagated to asynchronous graph jobs""" - entityType: String + """Negates the expression.""" + not: DatabaseGraphRefFilter - """Machine-readable error code when status = failed""" - errorCode: String + """Checks for any expressions in this list.""" + or: [DatabaseGraphRefFilter!] - """Human-readable error description when status = failed""" - errorMessage: String + """Filter by the object’s `storeId` field.""" + storeId: UUIDFilter +} - """Pre-computed topological sort as array of wave objects""" - executionPlan: JSON +"""An input for mutations affecting `DatabaseGraphRef`""" +input DatabaseGraphRefInput { + """Commit this ref points to""" + commitId: UUID - """ - Reads a single `FunctionGraph` that is related to this `FunctionGraphExecution`. - """ - graph: FunctionGraph + """Database scope for multi-tenant isolation""" + databaseId: UUID! - """FK to the graph definition being executed""" - graphId: UUID! + """Unique ref identifier""" + id: UUID - """Unique execution identifier""" - id: UUID! + """Ref name (e.g. HEAD, main)""" + name: String! - """Initial inputs provided at invocation time""" - inputPayload: JSON + """Store this ref belongs to""" + storeId: UUID! +} - """ - Partition coordinate for the function invocation that launched this graph execution - """ - invocationCreatedAt: Datetime +"""Methods to use when ordering `DatabaseGraphRef`.""" +enum DatabaseGraphRefOrderBy { + COMMIT_ID_ASC + COMMIT_ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + ID_ASC + ID_DESC + NAME_ASC + NAME_DESC + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + STORE_ID_ASC + STORE_ID_DESC +} - """Function invocation that launched this top-level graph execution""" - invocationId: UUID +""" +Represents an update to a `DatabaseGraphRef`. Fields that are set will be updated. +""" +input DatabaseGraphRefPatch { + """Commit this ref points to""" + commitId: UUID + + """Database scope for multi-tenant isolation""" + databaseId: UUID + + """Unique ref identifier""" + id: UUID + + """Ref name (e.g. HEAD, main)""" + name: String + + """Store this ref belongs to""" + storeId: UUID +} +"""All input for the `databaseGraphSetAndCommit` mutation.""" +input DatabaseGraphSetAndCommitInput { """ - Timestamp of the last real progress (node enqueue, node output, completion) — drives the activity-debounced watchdog + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - lastProgressAt: Datetime! + clientMutationId: String + data: JSON + kids: [UUID] + ktree: [String] + message: String + path: [String] + refname: String + sId: UUID + storeId: UUID +} - """Maximum pending jobs before execution is failed (default 50)""" - maxPendingJobs: Int! +"""The output of our `databaseGraphSetAndCommit` mutation.""" +type DatabaseGraphSetAndCommitPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """Maximum ticks before execution is failed (default 100)""" - maxTicks: Int! + """An edge for our `DatabaseGraphCommit`. May be used by Relay 1.""" + databaseGraphCommitEdge( + """The method to use when ordering `DatabaseGraphCommit`.""" + orderBy: [DatabaseGraphCommitOrderBy!]! = [PRIMARY_KEY_ASC] + ): DatabaseGraphCommitEdge """ - Map of node_name → execution output id (content-addressed hash reference) + Our root query field type. Allows us to run any query from our mutation payload. """ - nodeOutputs: JSON! + query: Query + result: DatabaseGraphCommit +} - """Organization context propagated to asynchronous graph jobs""" - organizationId: UUID +"""All input for the `databaseGraphSetDataAtPath` mutation.""" +input DatabaseGraphSetDataAtPathInput { + """ + An arbitrary 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 + path: [String] + root: UUID + sId: UUID +} +"""The output of our `databaseGraphSetDataAtPath` mutation.""" +type DatabaseGraphSetDataAtPathPayload { """ - Selected graphOutput portName values; NULL or empty returns all graph outputs + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - outputNames: [String] + clientMutationId: String """ - Target output boundary node name to resolve; NULL derives completion from the graph's graphOutput nodes + Our root query field type. Allows us to run any query from our mutation payload. """ - outputNode: String + query: Query + result: UUID +} - """Final result extracted from terminal output node""" - outputPayload: JSON +"""All input for the `databaseGraphSetManyAndCommit` mutation.""" +input DatabaseGraphSetManyAndCommitInput { + """ + An arbitrary 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 +} - """Target output port name (default: value)""" - outputPort: String! +"""The output of our `databaseGraphSetManyAndCommit` mutation.""" +type DatabaseGraphSetManyAndCommitPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """Parent execution when this is a sub-execution""" - parentExecutionId: UUID + """An edge for our `DatabaseGraphCommit`. May be used by Relay 1.""" + databaseGraphCommitEdge( + """The method to use when ordering `DatabaseGraphCommit`.""" + orderBy: [DatabaseGraphCommitOrderBy!]! = [PRIMARY_KEY_ASC] + ): DatabaseGraphCommitEdge """ - Function invocation parent assigned to node invocations spawned by this execution + Our root query field type. Allows us to run any query from our mutation payload. """ - parentInvocationId: UUID + query: Query + result: DatabaseGraphCommit +} - """Node name in parent execution that spawned this sub-execution""" - parentNodeName: String +""" +Named stores — one per version-controlled tree (e.g. one graph, one definition set) +""" +type DatabaseGraphStore { + """Timestamp of store creation""" + createdAt: Datetime - """Principal identity propagated to asynchronous graph jobs""" - principalId: UUID + """Database scope for multi-tenant isolation""" + databaseId: UUID! - """Opaque store partition key for the global tier""" - scopeId: UUID! + """Current root object hash of this store""" + hash: UUID - """Execution start timestamp""" - startedAt: Datetime! - - """Lifecycle: pending → running → completed/failed/cancelled""" - status: String! - - """Number of evaluate_step ticks executed""" - tickCount: Int! + """Unique store identifier""" + id: UUID! - """Absolute deadline — execution fails if still running after this time""" - timeoutAt: Datetime! + """Human-readable store name""" + name: String! } -"""A connection to a list of `FunctionGraphExecution` values.""" -type FunctionGraphExecutionConnection { +"""A connection to a list of `DatabaseGraphStore` values.""" +type DatabaseGraphStoreConnection { """ - A list of edges which contains the `FunctionGraphExecution` and cursor to aid in pagination. + A list of edges which contains the `DatabaseGraphStore` and cursor to aid in pagination. """ - edges: [FunctionGraphExecutionEdge]! + edges: [DatabaseGraphStoreEdge]! - """A list of `FunctionGraphExecution` objects.""" - nodes: [FunctionGraphExecution]! + """A list of `DatabaseGraphStore` objects.""" + nodes: [DatabaseGraphStore]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `FunctionGraphExecution` you could get from the connection. + The count of *all* `DatabaseGraphStore` you could get from the connection. """ totalCount: Int! } -"""A `FunctionGraphExecution` edge in the connection.""" -type FunctionGraphExecutionEdge { +"""A `DatabaseGraphStore` edge in the connection.""" +type DatabaseGraphStoreEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `FunctionGraphExecution` at the end of the edge.""" - node: FunctionGraphExecution + """The `DatabaseGraphStore` at the end of the edge.""" + node: DatabaseGraphStore } """ -A filter to be used against `FunctionGraphExecution` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `DatabaseGraphStore` object types. All fields are combined with a logical ‘and.’ """ -input FunctionGraphExecutionFilter { - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter - +input DatabaseGraphStoreFilter { """Checks for all expressions in this list.""" - and: [FunctionGraphExecutionFilter!] - - """Filter by the object’s `completedAt` field.""" - completedAt: DatetimeFilter + and: [DatabaseGraphStoreFilter!] - """Filter by the object’s `currentWave` field.""" - currentWave: IntFilter - - """Filter by the object’s `definitionsCommitId` field.""" - definitionsCommitId: UUIDFilter - - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter - - """Filter by the object’s `entityType` field.""" - entityType: StringFilter - - """Filter by the object’s `errorCode` field.""" - errorCode: StringFilter - - """Filter by the object’s `errorMessage` field.""" - errorMessage: StringFilter - - """Filter by the object’s `executionPlan` field.""" - executionPlan: JSONFilter + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter - """Filter by the object’s `graph` relation.""" - graph: FunctionGraphFilter + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter - """Filter by the object’s `graphId` field.""" - graphId: UUIDFilter + """Filter by the object’s `hash` field.""" + hash: UUIDFilter """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `inputPayload` field.""" - inputPayload: JSONFilter - - """Filter by the object’s `invocationCreatedAt` field.""" - invocationCreatedAt: DatetimeFilter - - """Filter by the object’s `invocationId` field.""" - invocationId: UUIDFilter - - """Filter by the object’s `lastProgressAt` field.""" - lastProgressAt: DatetimeFilter - - """Filter by the object’s `maxPendingJobs` field.""" - maxPendingJobs: IntFilter - - """Filter by the object’s `maxTicks` field.""" - maxTicks: IntFilter - - """Filter by the object’s `nodeOutputs` field.""" - nodeOutputs: JSONFilter + """Filter by the object’s `name` field.""" + name: StringFilter """Negates the expression.""" - not: FunctionGraphExecutionFilter + not: DatabaseGraphStoreFilter """Checks for any expressions in this list.""" - or: [FunctionGraphExecutionFilter!] - - """Filter by the object’s `organizationId` field.""" - organizationId: UUIDFilter - - """Filter by the object’s `outputNames` field.""" - outputNames: StringListFilter - - """Filter by the object’s `outputNode` field.""" - outputNode: StringFilter + or: [DatabaseGraphStoreFilter!] +} - """Filter by the object’s `outputPayload` field.""" - outputPayload: JSONFilter +"""An input for mutations affecting `DatabaseGraphStore`""" +input DatabaseGraphStoreInput { + """Timestamp of store creation""" + createdAt: Datetime - """Filter by the object’s `outputPort` field.""" - outputPort: StringFilter + """Database scope for multi-tenant isolation""" + databaseId: UUID! - """Filter by the object’s `parentExecutionId` field.""" - parentExecutionId: UUIDFilter + """Current root object hash of this store""" + hash: UUID - """Filter by the object’s `parentInvocationId` field.""" - parentInvocationId: UUIDFilter + """Unique store identifier""" + id: UUID - """Filter by the object’s `parentNodeName` field.""" - parentNodeName: StringFilter + """Human-readable store name""" + name: String! +} - """Filter by the object’s `principalId` field.""" - principalId: UUIDFilter +"""Methods to use when ordering `DatabaseGraphStore`.""" +enum DatabaseGraphStoreOrderBy { + CREATED_AT_ASC + CREATED_AT_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + HASH_ASC + HASH_DESC + ID_ASC + ID_DESC + NAME_ASC + NAME_DESC + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC +} - """Filter by the object’s `scopeId` field.""" - scopeId: UUIDFilter +""" +Represents an update to a `DatabaseGraphStore`. Fields that are set will be updated. +""" +input DatabaseGraphStorePatch { + """Timestamp of store creation""" + createdAt: Datetime - """Filter by the object’s `startedAt` field.""" - startedAt: DatetimeFilter + """Database scope for multi-tenant isolation""" + databaseId: UUID - """Filter by the object’s `status` field.""" - status: StringFilter + """Current root object hash of this store""" + hash: UUID - """Filter by the object’s `tickCount` field.""" - tickCount: IntFilter + """Unique store identifier""" + id: UUID - """Filter by the object’s `timeoutAt` field.""" - timeoutAt: DatetimeFilter + """Human-readable store name""" + name: String } -"""An input for mutations affecting `FunctionGraphExecution`""" -input FunctionGraphExecutionInput { - """User actor propagated to asynchronous graph jobs""" - actorId: UUID +"""All input for the `databaseImportDefinitions` mutation.""" +input DatabaseImportDefinitionsInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + contexts: [String] + graphId: UUID + sourceCommitId: UUID + sourceScopeId: UUID +} - """Execution completion timestamp""" - completedAt: Datetime +"""The output of our `databaseImportDefinitions` mutation.""" +type DatabaseImportDefinitionsPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """Index into execution_plan — tick only processes this wave""" - currentWave: Int + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} - """Pinned definitions store commit for deterministic evaluation""" +"""All input for the `databaseImportGraphJson` mutation.""" +input DatabaseImportGraphJsonInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + context: String + createdBy: UUID + databaseId: UUID definitionsCommitId: UUID + description: String + graphJson: JSON + name: String +} - """Entity context propagated to asynchronous graph jobs""" - entityId: UUID - - """Scope discriminator propagated to asynchronous graph jobs""" - entityType: String - - """Machine-readable error code when status = failed""" - errorCode: String - - """Human-readable error description when status = failed""" - errorMessage: String - - """Pre-computed topological sort as array of wave objects""" - executionPlan: JSON - - """FK to the graph definition being executed""" - graphId: UUID! - - """Unique execution identifier""" - id: UUID +"""The output of our `databaseImportGraphJson` mutation.""" +type DatabaseImportGraphJsonPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """Initial inputs provided at invocation time""" - inputPayload: JSON + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + result: UUID +} +"""All input for the `databaseSaveGraph` mutation.""" +input DatabaseSaveGraphInput { """ - Partition coordinate for the function invocation that launched this graph execution + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - invocationCreatedAt: Datetime + clientMutationId: String + graphId: UUID + message: String + rootHash: UUID +} - """Function invocation that launched this top-level graph execution""" - invocationId: UUID +"""The output of our `databaseSaveGraph` mutation.""" +type DatabaseSaveGraphPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String """ - Timestamp of the last real progress (node enqueue, node output, completion) — drives the activity-debounced watchdog + Our root query field type. Allows us to run any query from our mutation payload. """ - lastProgressAt: Datetime + query: Query + result: UUID +} - """Maximum pending jobs before execution is failed (default 50)""" +"""All input for the `databaseStartExecution` mutation.""" +input DatabaseStartExecutionInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + graphId: UUID + inputPayload: JSON maxPendingJobs: Int - - """Maximum ticks before execution is failed (default 100)""" maxTicks: Int + outputNames: [String] + outputNode: String + outputPort: String + parentExecutionId: UUID + parentNodeName: String + timeoutInterval: IntervalInput +} +"""The output of our `databaseStartExecution` mutation.""" +type DatabaseStartExecutionPayload { """ - Map of node_name → execution output id (content-addressed hash reference) + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - nodeOutputs: JSON - - """Organization context propagated to asynchronous graph jobs""" - organizationId: UUID + clientMutationId: String """ - Selected graphOutput portName values; NULL or empty returns all graph outputs + Our root query field type. Allows us to run any query from our mutation payload. """ - outputNames: [String] + query: Query + result: UUID +} +"""All input for the `databaseValidateFunctionGraph` mutation.""" +input DatabaseValidateFunctionGraphInput { """ - Target output boundary node name to resolve; NULL derives completion from the graph's graphOutput nodes + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - outputNode: String + clientMutationId: String + graphId: UUID +} - """Final result extracted from terminal output node""" - outputPayload: JSON +"""The output of our `databaseValidateFunctionGraph` mutation.""" +type DatabaseValidateFunctionGraphPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """Target output port name (default: value)""" - outputPort: String + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + result: Boolean +} - """Parent execution when this is a sub-execution""" - parentExecutionId: UUID +"""A calendar date in YYYY-MM-DD format.""" +scalar Date +""" +A filter to be used against Date fields. All fields are combined with a logical ‘and.’ +""" +input DateFilter { """ - Function invocation parent assigned to node invocations spawned by this execution + Not equal to the specified value, treating null like an ordinary value. """ - parentInvocationId: UUID + distinctFrom: Date - """Node name in parent execution that spawned this sub-execution""" - parentNodeName: String + """Equal to the specified value.""" + equalTo: Date - """Principal identity propagated to asynchronous graph jobs""" - principalId: UUID + """Greater than the specified value.""" + greaterThan: Date - """Opaque store partition key for the global tier""" - scopeId: UUID! + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: Date - """Execution start timestamp""" - startedAt: Datetime + """Included in the specified list.""" + in: [Date!] - """Lifecycle: pending → running → completed/failed/cancelled""" - status: String + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean - """Number of evaluate_step ticks executed""" - tickCount: Int + """Less than the specified value.""" + lessThan: Date - """Absolute deadline — execution fails if still running after this time""" - timeoutAt: Datetime + """Less than or equal to the specified value.""" + lessThanOrEqualTo: Date + + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: Date + + """Not equal to the specified value.""" + notEqualTo: Date + + """Not included in the specified list.""" + notIn: [Date!] } """ -Per-node execution state — tracks individual node lifecycle for debugging +A point in time as described by the [ISO +8601](https://en.wikipedia.org/wiki/ISO_8601) and, if it has a timezone, [RFC +3339](https://datatracker.ietf.org/doc/html/rfc3339) standards. Input values +that do not conform to both ISO 8601 and RFC 3339 may be coerced, which may lead +to unexpected results. """ -type FunctionGraphExecutionNodeState { +scalar Datetime + +""" +A filter to be used against Datetime fields. All fields are combined with a logical ‘and.’ +""" +input DatetimeFilter { """ - Snapshot of the node's resolved inputs for resource-runtime nodes — served by the node gateway GET /inputs endpoint + Not equal to the specified value, treating null like an ordinary value. """ - callbackInputs: JSON + distinctFrom: Datetime + + """Equal to the specified value.""" + equalTo: Datetime + + """Greater than the specified value.""" + greaterThan: Datetime + + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: Datetime + + """Included in the specified list.""" + in: [Datetime!] """ - Metering/attribution context stamped at resource dispatch (namespace_id, task_identifier, entity_id, scope, resource identity, dispatched_at, attempt) — lets the node gateway settle and attribute without extra lookups + Is null (if `true` is specified) or is not null (if `false` is specified). """ - callbackMeta: JSON + isNull: Boolean + + """Less than the specified value.""" + lessThan: Datetime + + """Less than or equal to the specified value.""" + lessThanOrEqualTo: Datetime + + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: Datetime + + """Not equal to the specified value.""" + notEqualTo: Datetime + + """Not included in the specified list.""" + notIn: [Datetime!] +} + +""" +Database provisioning preset catalog — merkle-versioned head over the infra store +""" +type DbPreset { + """Whether this preset is selectable for new databases""" + active: Boolean! """ - SHA-256 hex digest of the node callback token — set for resource-runtime nodes so the node gateway can authenticate result/error/heartbeat callbacks + Infra store commit for the current definition (stamped by the versioned trigger on every write) """ - callbackTokenHash: String - - """Timestamp when the node finished (success or failure)""" - completedAt: Datetime + commitId: UUID - """Timestamp of node state creation (partition key)""" + """Timestamp of preset creation""" createdAt: Datetime! - """Machine-readable error code when status = failed""" - errorCode: String - - """Human-readable error description when status = failed""" - errorMessage: String + """ + Preset definition (modules + options) — the readily-cached head; history lives in the infra store + """ + definition: JSON! - """FK to the parent graph execution""" - executionId: UUID! + """Human-readable description of the preset""" + description: String - """Unique node state identifier""" + """Unique preset identifier""" id: UUID! - """Name of the node within the graph (e.g. send-email1)""" - nodeName: String! + """Human-readable preset name""" + label: String """ - Full merkle tree path to this node (e.g. {function,graphs,myflow,nodes,send-email1}) — enables subnet hierarchy tracking + Content-address of definition->modules via metaschema_private.modules_hash (stamped by the versioned trigger); fast exact-match lookup key for provisioning requests """ - nodePath: [String] - - """FK to execution_outputs — content-addressed output blob for this node""" - outputId: UUID + modulesHash: UUID - """Opaque store partition key for the global tier""" - scopeId: UUID! + """ + Preset slug (unique per scope); the preset's path in the infra tree is [db_preset, slug] + """ + slug: String! - """Timestamp when the node began executing""" - startedAt: Datetime + """ + Infra Merkle store holding this preset's history (stamped by the versioned trigger) + """ + storeId: UUID - """Node lifecycle: pending → queued → running → completed/failed""" - status: String! + """Timestamp of last modification""" + updatedAt: Datetime! } -"""A connection to a list of `FunctionGraphExecutionNodeState` values.""" -type FunctionGraphExecutionNodeStateConnection { +"""A connection to a list of `DbPreset` values.""" +type DbPresetConnection { """ - A list of edges which contains the `FunctionGraphExecutionNodeState` and cursor to aid in pagination. + A list of edges which contains the `DbPreset` and cursor to aid in pagination. """ - edges: [FunctionGraphExecutionNodeStateEdge]! + edges: [DbPresetEdge]! - """A list of `FunctionGraphExecutionNodeState` objects.""" - nodes: [FunctionGraphExecutionNodeState]! + """A list of `DbPreset` objects.""" + nodes: [DbPreset]! """Information to aid in pagination.""" pageInfo: PageInfo! - """ - The count of *all* `FunctionGraphExecutionNodeState` you could get from the connection. - """ + """The count of *all* `DbPreset` you could get from the connection.""" totalCount: Int! } -"""A `FunctionGraphExecutionNodeState` edge in the connection.""" -type FunctionGraphExecutionNodeStateEdge { +"""A `DbPreset` edge in the connection.""" +type DbPresetEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `FunctionGraphExecutionNodeState` at the end of the edge.""" - node: FunctionGraphExecutionNodeState + """The `DbPreset` at the end of the edge.""" + node: DbPreset } """ -A filter to be used against `FunctionGraphExecutionNodeState` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `DbPreset` object types. All fields are combined with a logical ‘and.’ """ -input FunctionGraphExecutionNodeStateFilter { - """Checks for all expressions in this list.""" - and: [FunctionGraphExecutionNodeStateFilter!] - - """Filter by the object’s `callbackInputs` field.""" - callbackInputs: JSONFilter - - """Filter by the object’s `callbackMeta` field.""" - callbackMeta: JSONFilter +input DbPresetFilter { + """Filter by the object’s `active` field.""" + active: BooleanFilter - """Filter by the object’s `callbackTokenHash` field.""" - callbackTokenHash: StringFilter + """Checks for all expressions in this list.""" + and: [DbPresetFilter!] - """Filter by the object’s `completedAt` field.""" - completedAt: DatetimeFilter + """Filter by the object’s `commitId` field.""" + commitId: UUIDFilter """Filter by the object’s `createdAt` field.""" createdAt: DatetimeFilter - """Filter by the object’s `errorCode` field.""" - errorCode: StringFilter + """Filter by the object’s `definition` field.""" + definition: JSONFilter - """Filter by the object’s `errorMessage` field.""" - errorMessage: StringFilter - - """Filter by the object’s `executionId` field.""" - executionId: UUIDFilter + """Filter by the object’s `description` field.""" + description: StringFilter """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `nodeName` field.""" - nodeName: StringFilter + """Filter by the object’s `label` field.""" + label: StringFilter - """Filter by the object’s `nodePath` field.""" - nodePath: StringListFilter + """Filter by the object’s `modulesHash` field.""" + modulesHash: UUIDFilter """Negates the expression.""" - not: FunctionGraphExecutionNodeStateFilter + not: DbPresetFilter """Checks for any expressions in this list.""" - or: [FunctionGraphExecutionNodeStateFilter!] - - """Filter by the object’s `outputId` field.""" - outputId: UUIDFilter + or: [DbPresetFilter!] - """Filter by the object’s `scopeId` field.""" - scopeId: UUIDFilter + """Filter by the object’s `slug` field.""" + slug: StringFilter - """Filter by the object’s `startedAt` field.""" - startedAt: DatetimeFilter + """Filter by the object’s `storeId` field.""" + storeId: UUIDFilter - """Filter by the object’s `status` field.""" - status: StringFilter + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter } -"""An input for mutations affecting `FunctionGraphExecutionNodeState`""" -input FunctionGraphExecutionNodeStateInput { - """ - Snapshot of the node's resolved inputs for resource-runtime nodes — served by the node gateway GET /inputs endpoint - """ - callbackInputs: JSON - - """ - Metering/attribution context stamped at resource dispatch (namespace_id, task_identifier, entity_id, scope, resource identity, dispatched_at, attempt) — lets the node gateway settle and attribute without extra lookups - """ - callbackMeta: JSON +"""An input for mutations affecting `DbPreset`""" +input DbPresetInput { + """Whether this preset is selectable for new databases""" + active: Boolean """ - SHA-256 hex digest of the node callback token — set for resource-runtime nodes so the node gateway can authenticate result/error/heartbeat callbacks + Infra store commit for the current definition (stamped by the versioned trigger on every write) """ - callbackTokenHash: String - - """Timestamp when the node finished (success or failure)""" - completedAt: Datetime + commitId: UUID - """Timestamp of node state creation (partition key)""" + """Timestamp of preset creation""" createdAt: Datetime - """Machine-readable error code when status = failed""" - errorCode: String - - """Human-readable error description when status = failed""" - errorMessage: String + """ + Preset definition (modules + options) — the readily-cached head; history lives in the infra store + """ + definition: JSON! - """FK to the parent graph execution""" - executionId: UUID! + """Human-readable description of the preset""" + description: String - """Unique node state identifier""" + """Unique preset identifier""" id: UUID - """Name of the node within the graph (e.g. send-email1)""" - nodeName: String! + """Human-readable preset name""" + label: String """ - Full merkle tree path to this node (e.g. {function,graphs,myflow,nodes,send-email1}) — enables subnet hierarchy tracking + Content-address of definition->modules via metaschema_private.modules_hash (stamped by the versioned trigger); fast exact-match lookup key for provisioning requests """ - nodePath: [String] - - """FK to execution_outputs — content-addressed output blob for this node""" - outputId: UUID + modulesHash: UUID - """Opaque store partition key for the global tier""" - scopeId: UUID! + """ + Preset slug (unique per scope); the preset's path in the infra tree is [db_preset, slug] + """ + slug: String! - """Timestamp when the node began executing""" - startedAt: Datetime + """ + Infra Merkle store holding this preset's history (stamped by the versioned trigger) + """ + storeId: UUID - """Node lifecycle: pending → queued → running → completed/failed""" - status: String + """Timestamp of last modification""" + updatedAt: Datetime } -"""Methods to use when ordering `FunctionGraphExecutionNodeState`.""" -enum FunctionGraphExecutionNodeStateOrderBy { - CALLBACK_INPUTS_ASC - CALLBACK_INPUTS_DESC - CALLBACK_META_ASC - CALLBACK_META_DESC - CALLBACK_TOKEN_HASH_ASC - CALLBACK_TOKEN_HASH_DESC - COMPLETED_AT_ASC - COMPLETED_AT_DESC +"""Methods to use when ordering `DbPreset`.""" +enum DbPresetOrderBy { + ACTIVE_ASC + ACTIVE_DESC + COMMIT_ID_ASC + COMMIT_ID_DESC CREATED_AT_ASC CREATED_AT_DESC - ERROR_CODE_ASC - ERROR_CODE_DESC - ERROR_MESSAGE_ASC - ERROR_MESSAGE_DESC - EXECUTION_ID_ASC - EXECUTION_ID_DESC + DEFINITION_ASC + DEFINITION_DESC + DESCRIPTION_ASC + DESCRIPTION_DESC ID_ASC ID_DESC + LABEL_ASC + LABEL_DESC + MODULES_HASH_ASC + MODULES_HASH_DESC NATURAL - NODE_NAME_ASC - NODE_NAME_DESC - NODE_PATH_ASC - NODE_PATH_DESC - OUTPUT_ID_ASC - OUTPUT_ID_DESC PRIMARY_KEY_ASC PRIMARY_KEY_DESC - SCOPE_ID_ASC - SCOPE_ID_DESC - STARTED_AT_ASC - STARTED_AT_DESC - STATUS_ASC - STATUS_DESC + SLUG_ASC + SLUG_DESC + STORE_ID_ASC + STORE_ID_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC } """ -Represents an update to a `FunctionGraphExecutionNodeState`. Fields that are set will be updated. +Represents an update to a `DbPreset`. Fields that are set will be updated. """ -input FunctionGraphExecutionNodeStatePatch { - """ - Snapshot of the node's resolved inputs for resource-runtime nodes — served by the node gateway GET /inputs endpoint - """ - callbackInputs: JSON +input DbPresetPatch { + """Whether this preset is selectable for new databases""" + active: Boolean """ - Metering/attribution context stamped at resource dispatch (namespace_id, task_identifier, entity_id, scope, resource identity, dispatched_at, attempt) — lets the node gateway settle and attribute without extra lookups + Infra store commit for the current definition (stamped by the versioned trigger on every write) """ - callbackMeta: JSON + commitId: UUID + + """Timestamp of preset creation""" + createdAt: Datetime """ - SHA-256 hex digest of the node callback token — set for resource-runtime nodes so the node gateway can authenticate result/error/heartbeat callbacks + Preset definition (modules + options) — the readily-cached head; history lives in the infra store """ - callbackTokenHash: String + definition: JSON - """Timestamp when the node finished (success or failure)""" - completedAt: Datetime + """Human-readable description of the preset""" + description: String - """Timestamp of node state creation (partition key)""" - createdAt: Datetime + """Unique preset identifier""" + id: UUID - """Machine-readable error code when status = failed""" - errorCode: String + """Human-readable preset name""" + label: String - """Human-readable error description when status = failed""" - errorMessage: String + """ + Content-address of definition->modules via metaschema_private.modules_hash (stamped by the versioned trigger); fast exact-match lookup key for provisioning requests + """ + modulesHash: UUID - """FK to the parent graph execution""" - executionId: UUID + """ + Preset slug (unique per scope); the preset's path in the infra tree is [db_preset, slug] + """ + slug: String - """Unique node state identifier""" - id: UUID + """ + Infra Merkle store holding this preset's history (stamped by the versioned trigger) + """ + storeId: UUID - """Name of the node within the graph (e.g. send-email1)""" - nodeName: String + """Timestamp of last modification""" + updatedAt: Datetime +} +"""All input for the `deleteBuild` mutation.""" +input DeleteBuildInput { """ - Full merkle tree path to this node (e.g. {function,graphs,myflow,nodes,send-email1}) — enables subnet hierarchy tracking + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - nodePath: [String] + clientMutationId: String + id: UUID! +} - """FK to execution_outputs — content-addressed output blob for this node""" - outputId: UUID +"""The output of our delete `Build` mutation.""" +type DeleteBuildPayload { + """The `Build` that was deleted by this mutation.""" + build: Build - """Opaque store partition key for the global tier""" - scopeId: UUID + """An edge for our `Build`. May be used by Relay 1.""" + buildEdge( + """The method to use when ordering `Build`.""" + orderBy: [BuildOrderBy!]! = [PRIMARY_KEY_ASC] + ): BuildEdge - """Timestamp when the node began executing""" - startedAt: Datetime + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """Node lifecycle: pending → queued → running → completed/failed""" - status: String + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query } -"""Methods to use when ordering `FunctionGraphExecution`.""" -enum FunctionGraphExecutionOrderBy { - ACTOR_ID_ASC - ACTOR_ID_DESC - COMPLETED_AT_ASC - COMPLETED_AT_DESC - CURRENT_WAVE_ASC - CURRENT_WAVE_DESC - DEFINITIONS_COMMIT_ID_ASC - DEFINITIONS_COMMIT_ID_DESC - ENTITY_ID_ASC - ENTITY_ID_DESC - ENTITY_TYPE_ASC - ENTITY_TYPE_DESC - ERROR_CODE_ASC - ERROR_CODE_DESC - ERROR_MESSAGE_ASC - ERROR_MESSAGE_DESC - EXECUTION_PLAN_ASC - EXECUTION_PLAN_DESC - GRAPH_ID_ASC - GRAPH_ID_DESC - ID_ASC - ID_DESC - INPUT_PAYLOAD_ASC - INPUT_PAYLOAD_DESC - INVOCATION_CREATED_AT_ASC - INVOCATION_CREATED_AT_DESC - INVOCATION_ID_ASC - INVOCATION_ID_DESC - LAST_PROGRESS_AT_ASC - LAST_PROGRESS_AT_DESC - MAX_PENDING_JOBS_ASC - MAX_PENDING_JOBS_DESC - MAX_TICKS_ASC - MAX_TICKS_DESC - NATURAL - NODE_OUTPUTS_ASC - NODE_OUTPUTS_DESC - ORGANIZATION_ID_ASC - ORGANIZATION_ID_DESC - OUTPUT_NAMES_ASC - OUTPUT_NAMES_DESC - OUTPUT_NODE_ASC - OUTPUT_NODE_DESC - OUTPUT_PAYLOAD_ASC - OUTPUT_PAYLOAD_DESC - OUTPUT_PORT_ASC - OUTPUT_PORT_DESC - PARENT_EXECUTION_ID_ASC - PARENT_EXECUTION_ID_DESC - PARENT_INVOCATION_ID_ASC - PARENT_INVOCATION_ID_DESC - PARENT_NODE_NAME_ASC - PARENT_NODE_NAME_DESC - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - PRINCIPAL_ID_ASC - PRINCIPAL_ID_DESC - SCOPE_ID_ASC - SCOPE_ID_DESC - STARTED_AT_ASC - STARTED_AT_DESC - STATUS_ASC - STATUS_DESC - TICK_COUNT_ASC - TICK_COUNT_DESC - TIMEOUT_AT_ASC - TIMEOUT_AT_DESC -} +"""All input for the `deleteBuildStep` mutation.""" +input DeleteBuildStepInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String -""" -Content-addressed store for execution outputs — hash-referenced from node_outputs -""" -type FunctionGraphExecutionOutput { - """Timestamp of output creation""" - createdAt: Datetime! + """Unique identifier (uuidv7 provides temporal ordering)""" + id: UUID! - """The actual output payload from a completed node""" - data: JSON! + """When the result was recorded (partition key)""" + recordedAt: Datetime! +} - """SHA-256 hash of the data JSONB — content-addressed deduplication""" - hash: Base64EncodedBinary! +"""The output of our delete `BuildStep` mutation.""" +type DeleteBuildStepPayload { + """The `BuildStep` that was deleted by this mutation.""" + buildStep: BuildStep - """Unique execution output identifier""" - id: UUID! + """An edge for our `BuildStep`. May be used by Relay 1.""" + buildStepEdge( + """The method to use when ordering `BuildStep`.""" + orderBy: [BuildStepOrderBy!]! = [PRIMARY_KEY_ASC] + ): BuildStepEdge - """Opaque store partition key for the global tier""" - scopeId: 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 + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query } -"""A connection to a list of `FunctionGraphExecutionOutput` values.""" -type FunctionGraphExecutionOutputConnection { +"""All input for the `deleteBuilderBinding` mutation.""" +input DeleteBuilderBindingInput { """ - A list of edges which contains the `FunctionGraphExecutionOutput` and cursor to aid in pagination. + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - edges: [FunctionGraphExecutionOutputEdge]! + clientMutationId: String + id: UUID! +} - """A list of `FunctionGraphExecutionOutput` objects.""" - nodes: [FunctionGraphExecutionOutput]! +"""The output of our delete `BuilderBinding` mutation.""" +type DeleteBuilderBindingPayload { + """The `BuilderBinding` that was deleted by this mutation.""" + builderBinding: BuilderBinding - """Information to aid in pagination.""" - pageInfo: PageInfo! + """An edge for our `BuilderBinding`. May be used by Relay 1.""" + builderBindingEdge( + """The method to use when ordering `BuilderBinding`.""" + orderBy: [BuilderBindingOrderBy!]! = [PRIMARY_KEY_ASC] + ): BuilderBindingEdge """ - The count of *all* `FunctionGraphExecutionOutput` you could get from the connection. + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - totalCount: Int! + clientMutationId: String + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query } -"""A `FunctionGraphExecutionOutput` edge in the connection.""" -type FunctionGraphExecutionOutputEdge { - """A cursor for use in pagination.""" - cursor: Cursor +"""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 - """The `FunctionGraphExecutionOutput` at the end of the edge.""" - node: FunctionGraphExecutionOutput + """Unique preset identifier""" + id: UUID! } -""" -A filter to be used against `FunctionGraphExecutionOutput` object types. All fields are combined with a logical ‘and.’ -""" -input FunctionGraphExecutionOutputFilter { - """Checks for all expressions in this list.""" - and: [FunctionGraphExecutionOutputFilter!] - - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter +"""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 - """Filter by the object’s `data` field.""" - data: JSONFilter + """The `ContentPreset` that was deleted by this mutation.""" + contentPreset: ContentPreset - """Filter by the object’s `hash` field.""" - hash: Base64EncodedBinaryFilter + """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 - """Filter by the object’s `id` field.""" - id: UUIDFilter + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} - """Negates the expression.""" - not: FunctionGraphExecutionOutputFilter +"""All input for the `deleteDatabaseFunctionGraphExecution` mutation.""" +input DeleteDatabaseFunctionGraphExecutionInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String - """Checks for any expressions in this list.""" - or: [FunctionGraphExecutionOutputFilter!] + """Unique execution identifier""" + id: UUID! - """Filter by the object’s `scopeId` field.""" - scopeId: UUIDFilter + """Execution start timestamp""" + startedAt: Datetime! } -"""An input for mutations affecting `FunctionGraphExecutionOutput`""" -input FunctionGraphExecutionOutputInput { - """Timestamp of output creation""" - createdAt: Datetime +""" +All input for the `deleteDatabaseFunctionGraphExecutionNodeState` mutation. +""" +input DeleteDatabaseFunctionGraphExecutionNodeStateInput { + """ + An arbitrary 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 actual output payload from a completed node""" - data: JSON! + """Timestamp of node state creation (partition key)""" + createdAt: Datetime! - """SHA-256 hash of the data JSONB — content-addressed deduplication""" - hash: Base64EncodedBinary! + """Unique node state identifier""" + id: UUID! +} - """Unique execution output identifier""" - id: UUID +""" +The output of our delete `DatabaseFunctionGraphExecutionNodeState` mutation. +""" +type DeleteDatabaseFunctionGraphExecutionNodeStatePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """Opaque store partition key for the global tier""" - scopeId: UUID! -} + """ + The `DatabaseFunctionGraphExecutionNodeState` that was deleted by this mutation. + """ + databaseFunctionGraphExecutionNodeState: DatabaseFunctionGraphExecutionNodeState -"""Methods to use when ordering `FunctionGraphExecutionOutput`.""" -enum FunctionGraphExecutionOutputOrderBy { - CREATED_AT_ASC - CREATED_AT_DESC - DATA_ASC - DATA_DESC - HASH_ASC - HASH_DESC - ID_ASC - ID_DESC - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - SCOPE_ID_ASC - SCOPE_ID_DESC + """ + An edge for our `DatabaseFunctionGraphExecutionNodeState`. May be used by Relay 1. + """ + databaseFunctionGraphExecutionNodeStateEdge( + """ + The method to use when ordering `DatabaseFunctionGraphExecutionNodeState`. + """ + orderBy: [DatabaseFunctionGraphExecutionNodeStateOrderBy!]! = [PRIMARY_KEY_ASC] + ): DatabaseFunctionGraphExecutionNodeStateEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query } """ -Represents an update to a `FunctionGraphExecutionOutput`. Fields that are set will be updated. +All input for the `deleteDatabaseFunctionGraphExecutionOutput` mutation. """ -input FunctionGraphExecutionOutputPatch { - """Timestamp of output creation""" - createdAt: Datetime - - """The actual output payload from a completed node""" - data: JSON +input DeleteDatabaseFunctionGraphExecutionOutputInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String - """SHA-256 hash of the data JSONB — content-addressed deduplication""" - hash: Base64EncodedBinary + """Timestamp of output creation""" + createdAt: Datetime! """Unique execution output identifier""" - id: UUID - - """Opaque store partition key for the global tier""" - scopeId: UUID + id: UUID! } """ -Represents an update to a `FunctionGraphExecution`. Fields that are set will be updated. +The output of our delete `DatabaseFunctionGraphExecutionOutput` mutation. """ -input FunctionGraphExecutionPatch { - """User actor propagated to asynchronous graph jobs""" - actorId: UUID +type DeleteDatabaseFunctionGraphExecutionOutputPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """Execution completion timestamp""" - completedAt: Datetime + """ + The `DatabaseFunctionGraphExecutionOutput` that was deleted by this mutation. + """ + databaseFunctionGraphExecutionOutput: DatabaseFunctionGraphExecutionOutput - """Index into execution_plan — tick only processes this wave""" - currentWave: Int + """ + An edge for our `DatabaseFunctionGraphExecutionOutput`. May be used by Relay 1. + """ + databaseFunctionGraphExecutionOutputEdge( + """ + The method to use when ordering `DatabaseFunctionGraphExecutionOutput`. + """ + orderBy: [DatabaseFunctionGraphExecutionOutputOrderBy!]! = [PRIMARY_KEY_ASC] + ): DatabaseFunctionGraphExecutionOutputEdge - """Pinned definitions store commit for deterministic evaluation""" - definitionsCommitId: UUID + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} - """Entity context propagated to asynchronous graph jobs""" - entityId: UUID +"""The output of our delete `DatabaseFunctionGraphExecution` mutation.""" +type DeleteDatabaseFunctionGraphExecutionPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """Scope discriminator propagated to asynchronous graph jobs""" - entityType: String + """ + The `DatabaseFunctionGraphExecution` that was deleted by this mutation. + """ + databaseFunctionGraphExecution: DatabaseFunctionGraphExecution - """Machine-readable error code when status = failed""" - errorCode: String + """ + An edge for our `DatabaseFunctionGraphExecution`. May be used by Relay 1. + """ + databaseFunctionGraphExecutionEdge( + """The method to use when ordering `DatabaseFunctionGraphExecution`.""" + orderBy: [DatabaseFunctionGraphExecutionOrderBy!]! = [PRIMARY_KEY_ASC] + ): DatabaseFunctionGraphExecutionEdge - """Human-readable error description when status = failed""" - errorMessage: String + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} - """Pre-computed topological sort as array of wave objects""" - executionPlan: JSON +"""All input for the `deleteDatabaseFunctionGraph` mutation.""" +input DeleteDatabaseFunctionGraphInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String - """FK to the graph definition being executed""" - graphId: UUID + """Unique graph identifier""" + id: UUID! +} - """Unique execution identifier""" - id: UUID +"""The output of our delete `DatabaseFunctionGraph` mutation.""" +type DeleteDatabaseFunctionGraphPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """Initial inputs provided at invocation time""" - inputPayload: JSON + """The `DatabaseFunctionGraph` that was deleted by this mutation.""" + databaseFunctionGraph: DatabaseFunctionGraph + + """An edge for our `DatabaseFunctionGraph`. May be used by Relay 1.""" + databaseFunctionGraphEdge( + """The method to use when ordering `DatabaseFunctionGraph`.""" + orderBy: [DatabaseFunctionGraphOrderBy!]! = [PRIMARY_KEY_ASC] + ): DatabaseFunctionGraphEdge """ - Partition coordinate for the function invocation that launched this graph execution + Our root query field type. Allows us to run any query from our mutation payload. """ - invocationCreatedAt: Datetime - - """Function invocation that launched this top-level graph execution""" - invocationId: UUID + query: Query +} +"""All input for the `deleteDatabaseGraphCommit` mutation.""" +input DeleteDatabaseGraphCommitInput { """ - Timestamp of the last real progress (node enqueue, node output, completion) — drives the activity-debounced watchdog + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - lastProgressAt: Datetime + clientMutationId: String - """Maximum pending jobs before execution is failed (default 50)""" - maxPendingJobs: Int + """Database scope for multi-tenant isolation""" + databaseId: UUID! - """Maximum ticks before execution is failed (default 100)""" - maxTicks: Int + """Unique commit identifier""" + id: UUID! +} +"""The output of our delete `DatabaseGraphCommit` mutation.""" +type DeleteDatabaseGraphCommitPayload { """ - Map of node_name → execution output id (content-addressed hash reference) + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - nodeOutputs: JSON + clientMutationId: String - """Organization context propagated to asynchronous graph jobs""" - organizationId: UUID + """The `DatabaseGraphCommit` that was deleted by this mutation.""" + databaseGraphCommit: DatabaseGraphCommit + + """An edge for our `DatabaseGraphCommit`. May be used by Relay 1.""" + databaseGraphCommitEdge( + """The method to use when ordering `DatabaseGraphCommit`.""" + orderBy: [DatabaseGraphCommitOrderBy!]! = [PRIMARY_KEY_ASC] + ): DatabaseGraphCommitEdge """ - Selected graphOutput portName values; NULL or empty returns all graph outputs + Our root query field type. Allows us to run any query from our mutation payload. """ - outputNames: [String] + query: Query +} +"""All input for the `deleteDatabaseGraphObject` mutation.""" +input DeleteDatabaseGraphObjectInput { """ - Target output boundary node name to resolve; NULL derives completion from the graph's graphOutput nodes + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - outputNode: String - - """Final result extracted from terminal output node""" - outputPayload: JSON + clientMutationId: String - """Target output port name (default: value)""" - outputPort: String + """Database scope for multi-tenant isolation""" + databaseId: UUID! - """Parent execution when this is a sub-execution""" - parentExecutionId: UUID + """Content-addressed UUID v5 — deterministic hash of (data, kids, ktree)""" + id: UUID! +} +"""The output of our delete `DatabaseGraphObject` mutation.""" +type DeleteDatabaseGraphObjectPayload { """ - Function invocation parent assigned to node invocations spawned by this execution + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - parentInvocationId: UUID - - """Node name in parent execution that spawned this sub-execution""" - parentNodeName: String + clientMutationId: String - """Principal identity propagated to asynchronous graph jobs""" - principalId: UUID + """The `DatabaseGraphObject` that was deleted by this mutation.""" + databaseGraphObject: DatabaseGraphObject - """Opaque store partition key for the global tier""" - scopeId: UUID + """An edge for our `DatabaseGraphObject`. May be used by Relay 1.""" + databaseGraphObjectEdge( + """The method to use when ordering `DatabaseGraphObject`.""" + orderBy: [DatabaseGraphObjectOrderBy!]! = [PRIMARY_KEY_ASC] + ): DatabaseGraphObjectEdge - """Execution start timestamp""" - startedAt: Datetime + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} - """Lifecycle: pending → running → completed/failed/cancelled""" - status: String +"""All input for the `deleteDatabaseGraphRef` mutation.""" +input DeleteDatabaseGraphRefInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String - """Number of evaluate_step ticks executed""" - tickCount: Int + """Database scope for multi-tenant isolation""" + databaseId: UUID! - """Absolute deadline — execution fails if still running after this time""" - timeoutAt: Datetime + """Unique ref identifier""" + id: UUID! } -""" -A filter to be used against `FunctionGraph` object types. All fields are combined with a logical ‘and.’ -""" -input FunctionGraphFilter { - """Checks for all expressions in this list.""" - and: [FunctionGraphFilter!] +"""The output of our delete `DatabaseGraphRef` mutation.""" +type DeleteDatabaseGraphRefPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """Filter by the object’s `context` field.""" - context: StringFilter + """The `DatabaseGraphRef` that was deleted by this mutation.""" + databaseGraphRef: DatabaseGraphRef - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter + """An edge for our `DatabaseGraphRef`. May be used by Relay 1.""" + databaseGraphRefEdge( + """The method to use when ordering `DatabaseGraphRef`.""" + orderBy: [DatabaseGraphRefOrderBy!]! = [PRIMARY_KEY_ASC] + ): DatabaseGraphRefEdge - """Filter by the object’s `createdBy` field.""" - createdBy: UUIDFilter + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} - """Filter by the object’s `definitionsCommitId` field.""" - definitionsCommitId: UUIDFilter +"""All input for the `deleteDatabaseGraphStore` mutation.""" +input DeleteDatabaseGraphStoreInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String - """Filter by the object’s `description` field.""" - description: StringFilter + """Unique store identifier""" + id: UUID! +} - """Filter by the object’s `functionGraphExecutionsByGraphId` relation.""" - functionGraphExecutionsByGraphId: FunctionGraphToManyFunctionGraphExecutionFilter +"""The output of our delete `DatabaseGraphStore` mutation.""" +type DeleteDatabaseGraphStorePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """`functionGraphExecutionsByGraphId` exist.""" - functionGraphExecutionsByGraphIdExist: Boolean + """The `DatabaseGraphStore` that was deleted by this mutation.""" + databaseGraphStore: DatabaseGraphStore - """Filter by the object’s `id` field.""" - id: UUIDFilter + """An edge for our `DatabaseGraphStore`. May be used by Relay 1.""" + databaseGraphStoreEdge( + """The method to use when ordering `DatabaseGraphStore`.""" + orderBy: [DatabaseGraphStoreOrderBy!]! = [PRIMARY_KEY_ASC] + ): DatabaseGraphStoreEdge - """Filter by the object’s `isValid` field.""" - isValid: BooleanFilter + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} - """Filter by the object’s `name` field.""" - name: StringFilter +"""All input for the `deleteDbPreset` mutation.""" +input DeleteDbPresetInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String - """Negates the expression.""" - not: FunctionGraphFilter + """Unique preset identifier""" + id: UUID! +} - """Checks for any expressions in this list.""" - or: [FunctionGraphFilter!] +"""The output of our delete `DbPreset` mutation.""" +type DeleteDbPresetPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `DbPreset` that was deleted by this mutation.""" + dbPreset: DbPreset + + """An edge for our `DbPreset`. May be used by Relay 1.""" + dbPresetEdge( + """The method to use when ordering `DbPreset`.""" + orderBy: [DbPresetOrderBy!]! = [PRIMARY_KEY_ASC] + ): DbPresetEdge """ - Filter by the object’s `platformFunctionDefinitionsByGraphId` relation. + Our root query field type. Allows us to run any query from our mutation payload. """ - platformFunctionDefinitionsByGraphId: FunctionGraphToManyPlatformFunctionDefinitionFilter + query: Query +} - """`platformFunctionDefinitionsByGraphId` exist.""" - platformFunctionDefinitionsByGraphIdExist: Boolean +"""All input for the `deleteFunctionApiBinding` mutation.""" +input DeleteFunctionApiBindingInput { + """ + An arbitrary 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! +} - """Filter by the object’s `scopeId` field.""" - scopeId: UUIDFilter +"""The output of our delete `FunctionApiBinding` mutation.""" +type DeleteFunctionApiBindingPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """Filter by the object’s `storeId` field.""" - storeId: UUIDFilter + """The `FunctionApiBinding` that was deleted by this mutation.""" + functionApiBinding: FunctionApiBinding - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter + """An edge for our `FunctionApiBinding`. May be used by Relay 1.""" + functionApiBindingEdge( + """The method to use when ordering `FunctionApiBinding`.""" + orderBy: [FunctionApiBindingOrderBy!]! = [PRIMARY_KEY_ASC] + ): FunctionApiBindingEdge - """Filter by the object’s `validationErrors` field.""" - validationErrors: JSONFilter + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query } -""" -Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children -""" -type FunctionGraphObject { - """Timestamp of object creation""" - createdAt: Datetime +"""All input for the `deleteFunctionCapabilityBinding` mutation.""" +input DeleteFunctionCapabilityBindingInput { + """ + An arbitrary 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! +} - """Payload data for this object node""" - data: JSON +"""The output of our delete `FunctionCapabilityBinding` mutation.""" +type DeleteFunctionCapabilityBindingPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """Content-addressed UUID v5 — deterministic hash of (data, kids, ktree)""" - id: UUID! + """The `FunctionCapabilityBinding` that was deleted by this mutation.""" + functionCapabilityBinding: FunctionCapabilityBinding - """Ordered array of child object IDs""" - kids: [UUID] + """An edge for our `FunctionCapabilityBinding`. May be used by Relay 1.""" + functionCapabilityBindingEdge( + """The method to use when ordering `FunctionCapabilityBinding`.""" + orderBy: [FunctionCapabilityBindingOrderBy!]! = [PRIMARY_KEY_ASC] + ): FunctionCapabilityBindingEdge - """Ordered array of child path names (parallel to kids)""" - ktree: [String] + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} - """Opaque store partition key for the global tier""" - scopeId: UUID! +"""All input for the `deleteFunctionDefinition` mutation.""" +input DeleteFunctionDefinitionInput { + """ + An arbitrary 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! } -"""A connection to a list of `FunctionGraphObject` values.""" -type FunctionGraphObjectConnection { +"""The output of our delete `FunctionDefinition` mutation.""" +type DeleteFunctionDefinitionPayload { """ - A list of edges which contains the `FunctionGraphObject` and cursor to aid in pagination. + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - edges: [FunctionGraphObjectEdge]! + clientMutationId: String - """A list of `FunctionGraphObject` objects.""" - nodes: [FunctionGraphObject]! + """The `FunctionDefinition` that was deleted by this mutation.""" + functionDefinition: FunctionDefinition - """Information to aid in pagination.""" - pageInfo: PageInfo! + """An edge for our `FunctionDefinition`. May be used by Relay 1.""" + functionDefinitionEdge( + """The method to use when ordering `FunctionDefinition`.""" + orderBy: [FunctionDefinitionOrderBy!]! = [PRIMARY_KEY_ASC] + ): FunctionDefinitionEdge """ - The count of *all* `FunctionGraphObject` you could get from the connection. + Our root query field type. Allows us to run any query from our mutation payload. """ - totalCount: Int! + query: Query } -"""A `FunctionGraphObject` edge in the connection.""" -type FunctionGraphObjectEdge { - """A cursor for use in pagination.""" - cursor: Cursor +"""All input for the `deleteFunctionDeploymentEvent` mutation.""" +input DeleteFunctionDeploymentEventInput { + """ + An arbitrary 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 `FunctionGraphObject` at the end of the edge.""" - node: FunctionGraphObject + """Event timestamp (partition key)""" + createdAt: Datetime! + + """Unique event identifier""" + id: UUID! } -""" -A filter to be used against `FunctionGraphObject` object types. All fields are combined with a logical ‘and.’ -""" -input FunctionGraphObjectFilter { - """Checks for all expressions in this list.""" - and: [FunctionGraphObjectFilter!] +"""The output of our delete `FunctionDeploymentEvent` mutation.""" +type DeleteFunctionDeploymentEventPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter + """The `FunctionDeploymentEvent` that was deleted by this mutation.""" + functionDeploymentEvent: FunctionDeploymentEvent - """Filter by the object’s `data` field.""" - data: JSONFilter + """An edge for our `FunctionDeploymentEvent`. May be used by Relay 1.""" + functionDeploymentEventEdge( + """The method to use when ordering `FunctionDeploymentEvent`.""" + orderBy: [FunctionDeploymentEventOrderBy!]! = [PRIMARY_KEY_ASC] + ): FunctionDeploymentEventEdge - """Filter by the object’s `id` field.""" - id: UUIDFilter + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} - """Filter by the object’s `kids` field.""" - kids: UUIDListFilter +"""All input for the `deleteFunctionDeployment` mutation.""" +input DeleteFunctionDeploymentInput { + """ + An arbitrary 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! +} - """Filter by the object’s `ktree` field.""" - ktree: StringListFilter +"""The output of our delete `FunctionDeployment` mutation.""" +type DeleteFunctionDeploymentPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """Negates the expression.""" - not: FunctionGraphObjectFilter + """The `FunctionDeployment` that was deleted by this mutation.""" + functionDeployment: FunctionDeployment - """Checks for any expressions in this list.""" - or: [FunctionGraphObjectFilter!] + """An edge for our `FunctionDeployment`. May be used by Relay 1.""" + functionDeploymentEdge( + """The method to use when ordering `FunctionDeployment`.""" + orderBy: [FunctionDeploymentOrderBy!]! = [PRIMARY_KEY_ASC] + ): FunctionDeploymentEdge - """Filter by the object’s `scopeId` field.""" - scopeId: UUIDFilter + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query } -"""An input for mutations affecting `FunctionGraphObject`""" -input FunctionGraphObjectInput { - """Timestamp of object creation""" - createdAt: Datetime +"""All input for the `deleteFunctionExecutionLog` mutation.""" +input DeleteFunctionExecutionLogInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String - """Payload data for this object node""" - data: JSON + """Log entry timestamp (partition key)""" + createdAt: Datetime! - """Content-addressed UUID v5 — deterministic hash of (data, kids, ktree)""" + """Unique log entry identifier""" id: UUID! - - """Ordered array of child object IDs""" - kids: [UUID] - - """Ordered array of child path names (parallel to kids)""" - ktree: [String] - - """Opaque store partition key for the global tier""" - scopeId: UUID! } -"""Methods to use when ordering `FunctionGraphObject`.""" -enum FunctionGraphObjectOrderBy { - CREATED_AT_ASC - CREATED_AT_DESC - DATA_ASC - DATA_DESC - ID_ASC - ID_DESC - KIDS_ASC - KIDS_DESC - KTREE_ASC - KTREE_DESC - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - SCOPE_ID_ASC - SCOPE_ID_DESC -} +"""The output of our delete `FunctionExecutionLog` mutation.""" +type DeleteFunctionExecutionLogPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String -""" -Represents an update to a `FunctionGraphObject`. Fields that are set will be updated. -""" -input FunctionGraphObjectPatch { - """Timestamp of object creation""" - createdAt: Datetime + """The `FunctionExecutionLog` that was deleted by this mutation.""" + functionExecutionLog: FunctionExecutionLog - """Payload data for this object node""" - data: JSON + """An edge for our `FunctionExecutionLog`. May be used by Relay 1.""" + functionExecutionLogEdge( + """The method to use when ordering `FunctionExecutionLog`.""" + orderBy: [FunctionExecutionLogOrderBy!]! = [PRIMARY_KEY_ASC] + ): FunctionExecutionLogEdge - """Content-addressed UUID v5 — deterministic hash of (data, kids, ktree)""" - id: UUID + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} - """Ordered array of child object IDs""" - kids: [UUID] +"""All input for the `deleteFunctionGraphCommit` mutation.""" +input DeleteFunctionGraphCommitInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String - """Ordered array of child path names (parallel to kids)""" - ktree: [String] + """Unique commit identifier""" + id: UUID! """Opaque store partition key for the global tier""" - scopeId: UUID + scopeId: UUID! } -"""Methods to use when ordering `FunctionGraph`.""" -enum FunctionGraphOrderBy { - CONTEXT_ASC - CONTEXT_DESC - CREATED_AT_ASC - CREATED_AT_DESC - CREATED_BY_ASC - CREATED_BY_DESC - DEFINITIONS_COMMIT_ID_ASC - DEFINITIONS_COMMIT_ID_DESC - DESCRIPTION_ASC - DESCRIPTION_DESC - ID_ASC - ID_DESC - IS_VALID_ASC - IS_VALID_DESC - NAME_ASC - NAME_DESC - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - SCOPE_ID_ASC - SCOPE_ID_DESC - STORE_ID_ASC - STORE_ID_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC - VALIDATION_ERRORS_ASC - VALIDATION_ERRORS_DESC -} +"""The output of our delete `FunctionGraphCommit` mutation.""" +type DeleteFunctionGraphCommitPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String -""" -Represents an update to a `FunctionGraph`. Fields that are set will be updated. -""" -input FunctionGraphPatch { - """Evaluator/runtime context (function, js, sql, system)""" - context: String + """The `FunctionGraphCommit` that was deleted by this mutation.""" + functionGraphCommit: FunctionGraphCommit - """Timestamp of graph creation""" - createdAt: Datetime + """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 - """Actor who created this graph""" - createdBy: UUID + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} - """Pinned definitions store commit for deterministic evaluation""" - definitionsCommitId: UUID +"""All input for the `deleteFunctionGraphExecution` mutation.""" +input DeleteFunctionGraphExecutionInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String - """Human-readable description of the graph""" - description: String + """Unique execution identifier""" + id: UUID! - """Unique graph identifier""" - id: UUID + """Execution start timestamp""" + startedAt: Datetime! +} - """Whether graph passes structural validation""" - isValid: Boolean +"""All input for the `deleteFunctionGraphExecutionNodeState` mutation.""" +input DeleteFunctionGraphExecutionNodeStateInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String - """Graph name (unique per database)""" - name: String + """Timestamp of node state creation (partition key)""" + createdAt: Datetime! - """Opaque store partition key for the global tier""" - scopeId: UUID + """Unique node state identifier""" + id: UUID! +} - """Graph store (Merkle store) holding the graph definition""" - storeId: UUID +"""The output of our delete `FunctionGraphExecutionNodeState` mutation.""" +type DeleteFunctionGraphExecutionNodeStatePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """Timestamp of last modification""" - updatedAt: Datetime + """ + The `FunctionGraphExecutionNodeState` that was deleted by this mutation. + """ + functionGraphExecutionNodeState: FunctionGraphExecutionNodeState - """Array of validation error objects when is_valid = false""" - validationErrors: JSON + """ + An edge for our `FunctionGraphExecutionNodeState`. May be used by Relay 1. + """ + functionGraphExecutionNodeStateEdge( + """The method to use when ordering `FunctionGraphExecutionNodeState`.""" + orderBy: [FunctionGraphExecutionNodeStateOrderBy!]! = [PRIMARY_KEY_ASC] + ): FunctionGraphExecutionNodeStateEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query } -"""Branch heads — mutable pointers into the commit chain""" -type FunctionGraphRef { - """Commit this ref points to""" - commitId: UUID +"""All input for the `deleteFunctionGraphExecutionOutput` mutation.""" +input DeleteFunctionGraphExecutionOutputInput { + """ + An arbitrary 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 ref identifier""" + """Timestamp of output creation""" + createdAt: Datetime! + + """Unique execution output identifier""" id: UUID! +} - """Ref name (e.g. HEAD, main)""" - name: String! +"""The output of our delete `FunctionGraphExecutionOutput` mutation.""" +type DeleteFunctionGraphExecutionOutputPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """Opaque store partition key for the global tier""" - scopeId: UUID! + """The `FunctionGraphExecutionOutput` that was deleted by this mutation.""" + functionGraphExecutionOutput: FunctionGraphExecutionOutput - """Store this ref belongs to""" - storeId: UUID! + """ + An edge for our `FunctionGraphExecutionOutput`. May be used by Relay 1. + """ + functionGraphExecutionOutputEdge( + """The method to use when ordering `FunctionGraphExecutionOutput`.""" + orderBy: [FunctionGraphExecutionOutputOrderBy!]! = [PRIMARY_KEY_ASC] + ): FunctionGraphExecutionOutputEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query } -"""A connection to a list of `FunctionGraphRef` values.""" -type FunctionGraphRefConnection { +"""The output of our delete `FunctionGraphExecution` mutation.""" +type DeleteFunctionGraphExecutionPayload { """ - A list of edges which contains the `FunctionGraphRef` and cursor to aid in pagination. + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - edges: [FunctionGraphRefEdge]! + clientMutationId: String - """A list of `FunctionGraphRef` objects.""" - nodes: [FunctionGraphRef]! + """The `FunctionGraphExecution` that was deleted by this mutation.""" + functionGraphExecution: FunctionGraphExecution - """Information to aid in pagination.""" - pageInfo: PageInfo! + """An edge for our `FunctionGraphExecution`. May be used by Relay 1.""" + functionGraphExecutionEdge( + """The method to use when ordering `FunctionGraphExecution`.""" + orderBy: [FunctionGraphExecutionOrderBy!]! = [PRIMARY_KEY_ASC] + ): FunctionGraphExecutionEdge """ - The count of *all* `FunctionGraphRef` you could get from the connection. + Our root query field type. Allows us to run any query from our mutation payload. """ - totalCount: Int! + query: Query } -"""A `FunctionGraphRef` edge in the connection.""" -type FunctionGraphRefEdge { - """A cursor for use in pagination.""" - cursor: Cursor +"""All input for the `deleteFunctionGraph` mutation.""" +input DeleteFunctionGraphInput { + """ + An arbitrary 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 `FunctionGraphRef` at the end of the edge.""" - node: FunctionGraphRef + """Unique graph identifier""" + id: UUID! } -""" -A filter to be used against `FunctionGraphRef` object types. All fields are combined with a logical ‘and.’ -""" -input FunctionGraphRefFilter { - """Checks for all expressions in this list.""" - and: [FunctionGraphRefFilter!] +"""All input for the `deleteFunctionGraphObject` mutation.""" +input DeleteFunctionGraphObjectInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String - """Filter by the object’s `commitId` field.""" - commitId: UUIDFilter + """Content-addressed UUID v5 — deterministic hash of (data, kids, ktree)""" + id: UUID! - """Filter by the object’s `id` field.""" - id: UUIDFilter + """Opaque store partition key for the global tier""" + scopeId: UUID! +} - """Filter by the object’s `name` field.""" - name: StringFilter +"""The output of our delete `FunctionGraphObject` mutation.""" +type DeleteFunctionGraphObjectPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """Negates the expression.""" - not: FunctionGraphRefFilter + """The `FunctionGraphObject` that was deleted by this mutation.""" + functionGraphObject: FunctionGraphObject - """Checks for any expressions in this list.""" - or: [FunctionGraphRefFilter!] + """An edge for our `FunctionGraphObject`. May be used by Relay 1.""" + functionGraphObjectEdge( + """The method to use when ordering `FunctionGraphObject`.""" + orderBy: [FunctionGraphObjectOrderBy!]! = [PRIMARY_KEY_ASC] + ): FunctionGraphObjectEdge - """Filter by the object’s `scopeId` field.""" - scopeId: UUIDFilter + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} - """Filter by the object’s `storeId` field.""" - storeId: UUIDFilter +"""The output of our delete `FunctionGraph` mutation.""" +type DeleteFunctionGraphPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `FunctionGraph` that was deleted by this mutation.""" + functionGraph: FunctionGraph + + """An edge for our `FunctionGraph`. May be used by Relay 1.""" + functionGraphEdge( + """The method to use when ordering `FunctionGraph`.""" + orderBy: [FunctionGraphOrderBy!]! = [PRIMARY_KEY_ASC] + ): FunctionGraphEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query } -"""An input for mutations affecting `FunctionGraphRef`""" -input FunctionGraphRefInput { - """Commit this ref points to""" - commitId: UUID +"""All input for the `deleteFunctionGraphRef` mutation.""" +input DeleteFunctionGraphRefInput { + """ + An arbitrary 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 ref identifier""" - id: UUID - - """Ref name (e.g. HEAD, main)""" - name: String! + id: UUID! """Opaque store partition key for the global tier""" scopeId: UUID! - - """Store this ref belongs to""" - storeId: UUID! -} - -"""Methods to use when ordering `FunctionGraphRef`.""" -enum FunctionGraphRefOrderBy { - COMMIT_ID_ASC - COMMIT_ID_DESC - ID_ASC - ID_DESC - NAME_ASC - NAME_DESC - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - SCOPE_ID_ASC - SCOPE_ID_DESC - STORE_ID_ASC - STORE_ID_DESC } -""" -Represents an update to a `FunctionGraphRef`. Fields that are set will be updated. -""" -input FunctionGraphRefPatch { - """Commit this ref points to""" - commitId: UUID - - """Unique ref identifier""" - id: UUID +"""The output of our delete `FunctionGraphRef` mutation.""" +type DeleteFunctionGraphRefPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """Ref name (e.g. HEAD, main)""" - name: String + """The `FunctionGraphRef` that was deleted by this mutation.""" + functionGraphRef: FunctionGraphRef - """Opaque store partition key for the global tier""" - scopeId: UUID + """An edge for our `FunctionGraphRef`. May be used by Relay 1.""" + functionGraphRefEdge( + """The method to use when ordering `FunctionGraphRef`.""" + orderBy: [FunctionGraphRefOrderBy!]! = [PRIMARY_KEY_ASC] + ): FunctionGraphRefEdge - """Store this ref belongs to""" - storeId: UUID + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query } -""" -Named stores — one per version-controlled tree (e.g. one graph, one definition set) -""" -type FunctionGraphStore { - """Timestamp of store creation""" - createdAt: Datetime - - """Current root object hash of this store""" - hash: UUID +"""All input for the `deleteFunctionGraphStore` mutation.""" +input DeleteFunctionGraphStoreInput { + """ + An arbitrary 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 store identifier""" id: UUID! - - """Human-readable store name""" - name: String! - - """Opaque store partition key for the global tier""" - scopeId: UUID! } -"""A connection to a list of `FunctionGraphStore` values.""" -type FunctionGraphStoreConnection { +"""The output of our delete `FunctionGraphStore` mutation.""" +type DeleteFunctionGraphStorePayload { """ - A list of edges which contains the `FunctionGraphStore` and cursor to aid in pagination. + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - edges: [FunctionGraphStoreEdge]! + clientMutationId: String - """A list of `FunctionGraphStore` objects.""" - nodes: [FunctionGraphStore]! + """The `FunctionGraphStore` that was deleted by this mutation.""" + functionGraphStore: FunctionGraphStore - """Information to aid in pagination.""" - pageInfo: PageInfo! + """An edge for our `FunctionGraphStore`. May be used by Relay 1.""" + functionGraphStoreEdge( + """The method to use when ordering `FunctionGraphStore`.""" + orderBy: [FunctionGraphStoreOrderBy!]! = [PRIMARY_KEY_ASC] + ): FunctionGraphStoreEdge """ - The count of *all* `FunctionGraphStore` you could get from the connection. + Our root query field type. Allows us to run any query from our mutation payload. """ - totalCount: Int! + query: Query } -"""A `FunctionGraphStore` edge in the connection.""" -type FunctionGraphStoreEdge { - """A cursor for use in pagination.""" - cursor: Cursor +"""All input for the `deleteFunctionInvocationAttempt` mutation.""" +input DeleteFunctionInvocationAttemptInput { + """ + An arbitrary 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 `FunctionGraphStore` at the end of the edge.""" - node: FunctionGraphStore + """When the attempt result was recorded (partition key)""" + createdAt: Datetime! + + """Unique attempt identifier""" + id: UUID! } -""" -A filter to be used against `FunctionGraphStore` object types. All fields are combined with a logical ‘and.’ -""" -input FunctionGraphStoreFilter { - """Checks for all expressions in this list.""" - and: [FunctionGraphStoreFilter!] +"""The output of our delete `FunctionInvocationAttempt` mutation.""" +type DeleteFunctionInvocationAttemptPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter + """The `FunctionInvocationAttempt` that was deleted by this mutation.""" + functionInvocationAttempt: FunctionInvocationAttempt - """Filter by the object’s `hash` field.""" - hash: UUIDFilter + """An edge for our `FunctionInvocationAttempt`. May be used by Relay 1.""" + functionInvocationAttemptEdge( + """The method to use when ordering `FunctionInvocationAttempt`.""" + orderBy: [FunctionInvocationAttemptOrderBy!]! = [PRIMARY_KEY_ASC] + ): FunctionInvocationAttemptEdge - """Filter by the object’s `id` field.""" - id: UUIDFilter + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} - """Filter by the object’s `name` field.""" - name: StringFilter +"""All input for the `deleteFunctionInvocation` mutation.""" +input DeleteFunctionInvocationInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String - """Negates the expression.""" - not: FunctionGraphStoreFilter + """Invocation creation timestamp (partition key)""" + createdAt: Datetime! - """Checks for any expressions in this list.""" - or: [FunctionGraphStoreFilter!] + """Unique invocation identifier""" + id: UUID! +} - """Filter by the object’s `scopeId` field.""" - scopeId: UUIDFilter +"""The output of our delete `FunctionInvocation` mutation.""" +type DeleteFunctionInvocationPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `FunctionInvocation` that was deleted by this mutation.""" + functionInvocation: FunctionInvocation + + """An edge for our `FunctionInvocation`. May be used by Relay 1.""" + functionInvocationEdge( + """The method to use when ordering `FunctionInvocation`.""" + orderBy: [FunctionInvocationOrderBy!]! = [PRIMARY_KEY_ASC] + ): FunctionInvocationEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query } -"""An input for mutations affecting `FunctionGraphStore`""" -input FunctionGraphStoreInput { - """Timestamp of store creation""" - createdAt: Datetime +"""All input for the `deleteImageGrant` mutation.""" +input DeleteImageGrantInput { + """ + An arbitrary 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! +} - """Current root object hash of this store""" - hash: UUID +"""The output of our delete `ImageGrant` mutation.""" +type DeleteImageGrantPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """Unique store identifier""" - id: UUID + """The `ImageGrant` that was deleted by this mutation.""" + imageGrant: ImageGrant - """Human-readable store name""" - name: String! + """An edge for our `ImageGrant`. May be used by Relay 1.""" + imageGrantEdge( + """The method to use when ordering `ImageGrant`.""" + orderBy: [ImageGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): ImageGrantEdge - """Opaque store partition key for the global tier""" - scopeId: UUID! + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query } -"""Methods to use when ordering `FunctionGraphStore`.""" -enum FunctionGraphStoreOrderBy { - CREATED_AT_ASC - CREATED_AT_DESC - HASH_ASC - HASH_DESC - ID_ASC - ID_DESC - NAME_ASC - NAME_DESC - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - SCOPE_ID_ASC - SCOPE_ID_DESC +"""All input for the `deleteImage` mutation.""" +input DeleteImageInput { + """ + An arbitrary 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! } -""" -Represents an update to a `FunctionGraphStore`. Fields that are set will be updated. -""" -input FunctionGraphStorePatch { - """Timestamp of store creation""" - createdAt: Datetime - - """Current root object hash of this store""" - hash: UUID +"""The output of our delete `Image` mutation.""" +type DeleteImagePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """Unique store identifier""" - id: UUID + """The `Image` that was deleted by this mutation.""" + image: Image - """Human-readable store name""" - name: String + """An edge for our `Image`. May be used by Relay 1.""" + imageEdge( + """The method to use when ordering `Image`.""" + orderBy: [ImageOrderBy!]! = [PRIMARY_KEY_ASC] + ): ImageEdge - """Opaque store partition key for the global tier""" - scopeId: UUID + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query } -""" -A filter to be used against many `FunctionGraphExecution` object types. All fields are combined with a logical ‘and.’ -""" -input FunctionGraphToManyFunctionGraphExecutionFilter { - """Filters to entities where every related entity matches.""" - every: FunctionGraphExecutionFilter +"""All input for the `deleteInfraCommit` mutation.""" +input DeleteInfraCommitInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String - """Filters to entities where no related entity matches.""" - none: FunctionGraphExecutionFilter + """Database scope for multi-tenant isolation""" + databaseId: UUID! - """Filters to entities where at least one related entity matches.""" - some: FunctionGraphExecutionFilter + """Unique commit identifier""" + id: UUID! } -""" -A filter to be used against many `PlatformFunctionDefinition` object types. All fields are combined with a logical ‘and.’ -""" -input FunctionGraphToManyPlatformFunctionDefinitionFilter { - """Filters to entities where every related entity matches.""" - every: PlatformFunctionDefinitionFilter - - """Filters to entities where no related entity matches.""" - none: PlatformFunctionDefinitionFilter +"""The output of our delete `InfraCommit` mutation.""" +type DeleteInfraCommitPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """Filters to entities where at least one related entity matches.""" - some: PlatformFunctionDefinitionFilter -} + """The `InfraCommit` that was deleted by this mutation.""" + infraCommit: InfraCommit -""" -Function invocation log — INSERT to call a function (business-layer, metered). Linked to definitions via function_definition_id FK, with task_identifier as the denormalized routing/audit slug. -""" -type FunctionInvocation { - """Who triggered the invocation (NULL for system/cron)""" - actorId: UUID + """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 """ - Reads a single `FunctionApiBinding` that is related to this `FunctionInvocation`. + Our root query field type. Allows us to run any query from our mutation payload. """ - apiBinding: FunctionApiBinding + query: Query +} +"""All input for the `deleteInfraObject` mutation.""" +input DeleteInfraObjectInput { """ - API binding this invocation arrived through (NULL for cron/graph/system/worker paths) + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - apiBindingId: UUID - - """Invocation trigger channel: api, graph, cron, sync, webhook, or worker""" - channel: String - - """When execution completed""" - completedAt: Datetime - - """Invocation creation timestamp (partition key)""" - createdAt: Datetime! + clientMutationId: String - """Database that owns this resource (database-scoped isolation)""" + """Database scope for multi-tenant isolation""" databaseId: UUID! + """Content-addressed UUID v5 — deterministic hash of (data, kids, ktree)""" + id: UUID! +} + +"""The output of our delete `InfraObject` mutation.""" +type DeleteInfraObjectPayload { """ - Scope that owns function_definition_id (e.g. app/org/database/platform) — the per-scope definitions table the resolver selected + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - definitionScope: String + clientMutationId: String - """Wall-clock execution time in milliseconds""" - durationMs: Int + """The `InfraObject` that was deleted by this mutation.""" + infraObject: InfraObject + + """An edge for our `InfraObject`. May be used by Relay 1.""" + infraObjectEdge( + """The method to use when ordering `InfraObject`.""" + orderBy: [InfraObjectOrderBy!]! = [PRIMARY_KEY_ASC] + ): InfraObjectEdge """ - Error message when status is failed, or the reason the run was skipped when status is skipped + Our root query field type. Allows us to run any query from our mutation payload. """ - error: String + query: Query +} +"""All input for the `deleteInfraRef` mutation.""" +input DeleteInfraRefInput { """ - Function definition this invocation ran (soft cross-scope ref; paired with definition_scope). task_identifier stays as the audit slug. + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - functionDefinitionId: UUID + clientMutationId: String - """Groups all node invocations from a single flow graph execution""" - graphExecutionId: UUID + """Database scope for multi-tenant isolation""" + databaseId: UUID! - """Unique invocation identifier""" + """Unique ref identifier""" id: UUID! +} - """FK to app_jobs.jobs — the underlying transport""" - jobId: BigInt - - """Parent invocation when this is a child node of a flow graph execution""" - parentInvocationId: UUID - - """Function input payload""" - payload: JSON - +"""The output of our delete `InfraRef` mutation.""" +type DeleteInfraRefPayload { """ - Non-secret channel-specific invocation provenance (route/binding/event identifiers only) + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - provenance: JSON! + clientMutationId: String - """Function return value (success) or structured error (failure)""" - result: JSON + """The `InfraRef` that was deleted by this mutation.""" + infraRef: InfraRef - """When execution started""" - startedAt: Datetime + """An edge for our `InfraRef`. May be used by Relay 1.""" + infraRefEdge( + """The method to use when ordering `InfraRef`.""" + orderBy: [InfraRefOrderBy!]! = [PRIMARY_KEY_ASC] + ): InfraRefEdge """ - Lifecycle: pending → running → completed/failed/cancelled; skipped = never ran (a gate rejected the intended run) + Our root query field type. Allows us to run any query from our mutation payload. """ - status: String! + query: Query +} +"""All input for the `deleteInfraStore` mutation.""" +input DeleteInfraStoreInput { """ - Function routing slug (category:name). Denormalized from the definition — must match the row referenced by function_definition_id when that is set. + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - taskIdentifier: String! + clientMutationId: String + + """Unique store identifier""" + id: UUID! } -""" -Function invocation attempts — one row per worker attempt (including failed retries) with duration and error detail -""" -type FunctionInvocationAttempt { - """Who triggered the invocation (NULL for system/cron)""" - actorId: UUID +"""The output of our delete `InfraStore` mutation.""" +type DeleteInfraStorePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """1-based attempt number for this invocation""" - attempt: Int! + """The `InfraStore` that was deleted by this mutation.""" + infraStore: InfraStore - """When the attempt result was recorded (partition key)""" - createdAt: Datetime! + """An edge for our `InfraStore`. May be used by Relay 1.""" + infraStoreEdge( + """The method to use when ordering `InfraStore`.""" + orderBy: [InfraStoreOrderBy!]! = [PRIMARY_KEY_ASC] + ): InfraStoreEdge - """Database that owns this resource (database-scoped isolation)""" - databaseId: UUID! + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} - """Wall-clock attempt time in milliseconds""" - durationMs: Int +"""All input for the `deleteIntegrationProvider` mutation.""" +input DeleteIntegrationProviderInput { + """ + An arbitrary 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! +} - """Error message when the attempt failed""" - error: String +"""The output of our delete `IntegrationProvider` mutation.""" +type DeleteIntegrationProviderPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """Structured error context (stack, code, provider response)""" - errorDetail: JSON + """The `IntegrationProvider` that was deleted by this mutation.""" + integrationProvider: IntegrationProvider - """Unique attempt identifier""" - id: UUID! + """An edge for our `IntegrationProvider`. May be used by Relay 1.""" + integrationProviderEdge( + """The method to use when ordering `IntegrationProvider`.""" + orderBy: [IntegrationProviderOrderBy!]! = [PRIMARY_KEY_ASC] + ): IntegrationProviderEdge """ - created_at of the referenced invocation (partition-pruned lookups against the invocations PK) + Our root query field type. Allows us to run any query from our mutation payload. """ - invocationCreatedAt: Datetime! + query: Query +} +"""All input for the `deleteNamespaceEvent` mutation.""" +input DeleteNamespaceEventInput { """ - Invocation this attempt belongs to (soft reference paired with invocation_created_at) + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - invocationId: UUID! - - """When the attempt began executing""" - startedAt: Datetime + clientMutationId: String - """Whether this attempt completed successfully""" - success: Boolean! + """Event timestamp (partition key)""" + createdAt: Datetime! - """Function routing slug (denormalized from the invocation)""" - taskIdentifier: String! + """Unique event identifier""" + id: UUID! } -"""A connection to a list of `FunctionInvocationAttempt` values.""" -type FunctionInvocationAttemptConnection { +"""The output of our delete `NamespaceEvent` mutation.""" +type DeleteNamespaceEventPayload { """ - A list of edges which contains the `FunctionInvocationAttempt` and cursor to aid in pagination. + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - edges: [FunctionInvocationAttemptEdge]! + clientMutationId: String - """A list of `FunctionInvocationAttempt` objects.""" - nodes: [FunctionInvocationAttempt]! + """The `NamespaceEvent` that was deleted by this mutation.""" + namespaceEvent: NamespaceEvent - """Information to aid in pagination.""" - pageInfo: PageInfo! + """An edge for our `NamespaceEvent`. May be used by Relay 1.""" + namespaceEventEdge( + """The method to use when ordering `NamespaceEvent`.""" + orderBy: [NamespaceEventOrderBy!]! = [PRIMARY_KEY_ASC] + ): NamespaceEventEdge """ - The count of *all* `FunctionInvocationAttempt` you could get from the connection. + Our root query field type. Allows us to run any query from our mutation payload. """ - totalCount: Int! + query: Query } -"""A `FunctionInvocationAttempt` edge in the connection.""" -type FunctionInvocationAttemptEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `FunctionInvocationAttempt` at the end of the edge.""" - node: FunctionInvocationAttempt +"""All input for the `deleteNamespace` mutation.""" +input DeleteNamespaceInput { + """ + An arbitrary 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! } -""" -A filter to be used against `FunctionInvocationAttempt` object types. All fields are combined with a logical ‘and.’ -""" -input FunctionInvocationAttemptFilter { - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter +"""The output of our delete `Namespace` mutation.""" +type DeleteNamespacePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """Checks for all expressions in this list.""" - and: [FunctionInvocationAttemptFilter!] + """The `Namespace` that was deleted by this mutation.""" + namespace: Namespace - """Filter by the object’s `attempt` field.""" - attempt: IntFilter + """An edge for our `Namespace`. May be used by Relay 1.""" + namespaceEdge( + """The method to use when ordering `Namespace`.""" + orderBy: [NamespaceOrderBy!]! = [PRIMARY_KEY_ASC] + ): NamespaceEdge - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter +"""All input for the `deletePlatformBuild` mutation.""" +input DeletePlatformBuildInput { + """ + An arbitrary 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! +} - """Filter by the object’s `durationMs` field.""" - durationMs: IntFilter +"""The output of our delete `PlatformBuild` mutation.""" +type DeletePlatformBuildPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """Filter by the object’s `error` field.""" - error: StringFilter + """The `PlatformBuild` that was deleted by this mutation.""" + platformBuild: PlatformBuild - """Filter by the object’s `errorDetail` field.""" - errorDetail: JSONFilter + """An edge for our `PlatformBuild`. May be used by Relay 1.""" + platformBuildEdge( + """The method to use when ordering `PlatformBuild`.""" + orderBy: [PlatformBuildOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformBuildEdge - """Filter by the object’s `id` field.""" - id: UUIDFilter + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} - """Filter by the object’s `invocationCreatedAt` field.""" - invocationCreatedAt: DatetimeFilter +"""All input for the `deletePlatformBuildStep` mutation.""" +input DeletePlatformBuildStepInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String - """Filter by the object’s `invocationId` field.""" - invocationId: UUIDFilter + """Unique identifier (uuidv7 provides temporal ordering)""" + id: UUID! - """Negates the expression.""" - not: FunctionInvocationAttemptFilter + """When the result was recorded (partition key)""" + recordedAt: Datetime! +} - """Checks for any expressions in this list.""" - or: [FunctionInvocationAttemptFilter!] +"""The output of our delete `PlatformBuildStep` mutation.""" +type DeletePlatformBuildStepPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """Filter by the object’s `startedAt` field.""" - startedAt: DatetimeFilter + """The `PlatformBuildStep` that was deleted by this mutation.""" + platformBuildStep: PlatformBuildStep - """Filter by the object’s `success` field.""" - success: BooleanFilter + """An edge for our `PlatformBuildStep`. May be used by Relay 1.""" + platformBuildStepEdge( + """The method to use when ordering `PlatformBuildStep`.""" + orderBy: [PlatformBuildStepOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformBuildStepEdge - """Filter by the object’s `taskIdentifier` field.""" - taskIdentifier: StringFilter + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query } -"""An input for mutations affecting `FunctionInvocationAttempt`""" -input FunctionInvocationAttemptInput { - """Who triggered the invocation (NULL for system/cron)""" - actorId: UUID +"""All input for the `deletePlatformBuilderBinding` mutation.""" +input DeletePlatformBuilderBindingInput { + """ + An arbitrary 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! +} - """1-based attempt number for this invocation""" - attempt: Int! +"""The output of our delete `PlatformBuilderBinding` mutation.""" +type DeletePlatformBuilderBindingPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """When the attempt result was recorded (partition key)""" - createdAt: Datetime + """The `PlatformBuilderBinding` that was deleted by this mutation.""" + platformBuilderBinding: PlatformBuilderBinding - """Database that owns this resource (database-scoped isolation)""" - databaseId: UUID! + """An edge for our `PlatformBuilderBinding`. May be used by Relay 1.""" + platformBuilderBindingEdge( + """The method to use when ordering `PlatformBuilderBinding`.""" + orderBy: [PlatformBuilderBindingOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformBuilderBindingEdge - """Wall-clock attempt time in milliseconds""" - durationMs: Int + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} - """Error message when the attempt failed""" - error: String +"""All input for the `deletePlatformFunctionApiBinding` mutation.""" +input DeletePlatformFunctionApiBindingInput { + """ + An arbitrary 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! +} - """Structured error context (stack, code, provider response)""" - errorDetail: JSON +"""The output of our delete `PlatformFunctionApiBinding` mutation.""" +type DeletePlatformFunctionApiBindingPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """Unique attempt identifier""" - id: UUID + """The `PlatformFunctionApiBinding` that was deleted by this mutation.""" + platformFunctionApiBinding: PlatformFunctionApiBinding + + """An edge for our `PlatformFunctionApiBinding`. May be used by Relay 1.""" + platformFunctionApiBindingEdge( + """The method to use when ordering `PlatformFunctionApiBinding`.""" + orderBy: [PlatformFunctionApiBindingOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformFunctionApiBindingEdge """ - created_at of the referenced invocation (partition-pruned lookups against the invocations PK) + Our root query field type. Allows us to run any query from our mutation payload. """ - invocationCreatedAt: Datetime! + query: Query +} +"""All input for the `deletePlatformFunctionCapabilityBinding` mutation.""" +input DeletePlatformFunctionCapabilityBindingInput { """ - Invocation this attempt belongs to (soft reference paired with invocation_created_at) + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - invocationId: UUID! + clientMutationId: String + id: UUID! +} - """When the attempt began executing""" - startedAt: Datetime +"""The output of our delete `PlatformFunctionCapabilityBinding` mutation.""" +type DeletePlatformFunctionCapabilityBindingPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """Whether this attempt completed successfully""" - success: Boolean! + """ + The `PlatformFunctionCapabilityBinding` that was deleted by this mutation. + """ + platformFunctionCapabilityBinding: PlatformFunctionCapabilityBinding - """Function routing slug (denormalized from the invocation)""" - taskIdentifier: String! -} - -"""Methods to use when ordering `FunctionInvocationAttempt`.""" -enum FunctionInvocationAttemptOrderBy { - ACTOR_ID_ASC - ACTOR_ID_DESC - ATTEMPT_ASC - ATTEMPT_DESC - CREATED_AT_ASC - CREATED_AT_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - DURATION_MS_ASC - DURATION_MS_DESC - ERROR_ASC - ERROR_DESC - ERROR_DETAIL_ASC - ERROR_DETAIL_DESC - ID_ASC - ID_DESC - INVOCATION_CREATED_AT_ASC - INVOCATION_CREATED_AT_DESC - INVOCATION_ID_ASC - INVOCATION_ID_DESC - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - STARTED_AT_ASC - STARTED_AT_DESC - SUCCESS_ASC - SUCCESS_DESC - TASK_IDENTIFIER_ASC - TASK_IDENTIFIER_DESC -} - -""" -Represents an update to a `FunctionInvocationAttempt`. Fields that are set will be updated. -""" -input FunctionInvocationAttemptPatch { - """Who triggered the invocation (NULL for system/cron)""" - actorId: UUID - - """1-based attempt number for this invocation""" - attempt: Int - - """When the attempt result was recorded (partition key)""" - createdAt: Datetime - - """Database that owns this resource (database-scoped isolation)""" - databaseId: UUID - - """Wall-clock attempt time in milliseconds""" - durationMs: Int - - """Error message when the attempt failed""" - error: String - - """Structured error context (stack, code, provider response)""" - errorDetail: JSON - - """Unique attempt identifier""" - id: UUID + """ + An edge for our `PlatformFunctionCapabilityBinding`. May be used by Relay 1. + """ + platformFunctionCapabilityBindingEdge( + """The method to use when ordering `PlatformFunctionCapabilityBinding`.""" + orderBy: [PlatformFunctionCapabilityBindingOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformFunctionCapabilityBindingEdge """ - created_at of the referenced invocation (partition-pruned lookups against the invocations PK) + Our root query field type. Allows us to run any query from our mutation payload. """ - invocationCreatedAt: Datetime + query: Query +} +"""All input for the `deletePlatformFunctionDefinition` mutation.""" +input DeletePlatformFunctionDefinitionInput { """ - Invocation this attempt belongs to (soft reference paired with invocation_created_at) + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - invocationId: UUID - - """When the attempt began executing""" - startedAt: Datetime - - """Whether this attempt completed successfully""" - success: Boolean - - """Function routing slug (denormalized from the invocation)""" - taskIdentifier: String + clientMutationId: String + id: UUID! } -"""A connection to a list of `FunctionInvocation` values.""" -type FunctionInvocationConnection { +"""The output of our delete `PlatformFunctionDefinition` mutation.""" +type DeletePlatformFunctionDefinitionPayload { """ - A list of edges which contains the `FunctionInvocation` and cursor to aid in pagination. + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - edges: [FunctionInvocationEdge]! + clientMutationId: String - """A list of `FunctionInvocation` objects.""" - nodes: [FunctionInvocation]! + """The `PlatformFunctionDefinition` that was deleted by this mutation.""" + platformFunctionDefinition: PlatformFunctionDefinition - """Information to aid in pagination.""" - pageInfo: PageInfo! + """An edge for our `PlatformFunctionDefinition`. May be used by Relay 1.""" + platformFunctionDefinitionEdge( + """The method to use when ordering `PlatformFunctionDefinition`.""" + orderBy: [PlatformFunctionDefinitionOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformFunctionDefinitionEdge """ - The count of *all* `FunctionInvocation` you could get from the connection. + Our root query field type. Allows us to run any query from our mutation payload. """ - totalCount: Int! -} - -"""A `FunctionInvocation` edge in the connection.""" -type FunctionInvocationEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `FunctionInvocation` at the end of the edge.""" - node: FunctionInvocation + query: Query } -""" -A filter to be used against `FunctionInvocation` object types. All fields are combined with a logical ‘and.’ -""" -input FunctionInvocationFilter { - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter - - """Checks for all expressions in this list.""" - and: [FunctionInvocationFilter!] - - """Filter by the object’s `apiBinding` relation.""" - apiBinding: FunctionApiBindingFilter - - """A related `apiBinding` exists.""" - apiBindingExists: Boolean - - """Filter by the object’s `apiBindingId` field.""" - apiBindingId: UUIDFilter - - """Filter by the object’s `channel` field.""" - channel: StringFilter - - """Filter by the object’s `completedAt` field.""" - completedAt: DatetimeFilter - - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter - - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter - - """Filter by the object’s `definitionScope` field.""" - definitionScope: StringFilter - - """Filter by the object’s `durationMs` field.""" - durationMs: IntFilter - - """Filter by the object’s `error` field.""" - error: StringFilter - - """Filter by the object’s `functionDefinitionId` field.""" - functionDefinitionId: UUIDFilter - - """Filter by the object’s `graphExecutionId` field.""" - graphExecutionId: UUIDFilter - - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `jobId` field.""" - jobId: BigIntFilter - - """Negates the expression.""" - not: FunctionInvocationFilter - - """Checks for any expressions in this list.""" - or: [FunctionInvocationFilter!] - - """Filter by the object’s `parentInvocationId` field.""" - parentInvocationId: UUIDFilter - - """Filter by the object’s `payload` field.""" - payload: JSONFilter - - """Filter by the object’s `provenance` field.""" - provenance: JSONFilter - - """Filter by the object’s `result` field.""" - result: JSONFilter - - """Filter by the object’s `startedAt` field.""" - startedAt: DatetimeFilter +"""All input for the `deletePlatformFunctionDeploymentEvent` mutation.""" +input DeletePlatformFunctionDeploymentEventInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String - """Filter by the object’s `status` field.""" - status: StringFilter + """Event timestamp (partition key)""" + createdAt: Datetime! - """Filter by the object’s `taskIdentifier` field.""" - taskIdentifier: StringFilter + """Unique event identifier""" + id: UUID! } -"""An input for mutations affecting `FunctionInvocation`""" -input FunctionInvocationInput { - """Who triggered the invocation (NULL for system/cron)""" - actorId: UUID - +"""The output of our delete `PlatformFunctionDeploymentEvent` mutation.""" +type DeletePlatformFunctionDeploymentEventPayload { """ - API binding this invocation arrived through (NULL for cron/graph/system/worker paths) + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - apiBindingId: UUID - - """Invocation trigger channel: api, graph, cron, sync, webhook, or worker""" - channel: String - - """When execution completed""" - completedAt: Datetime - - """Invocation creation timestamp (partition key)""" - createdAt: Datetime - - """Database that owns this resource (database-scoped isolation)""" - databaseId: UUID! + clientMutationId: String """ - Scope that owns function_definition_id (e.g. app/org/database/platform) — the per-scope definitions table the resolver selected + The `PlatformFunctionDeploymentEvent` that was deleted by this mutation. """ - definitionScope: String - - """Wall-clock execution time in milliseconds""" - durationMs: Int + platformFunctionDeploymentEvent: PlatformFunctionDeploymentEvent """ - Error message when status is failed, or the reason the run was skipped when status is skipped + An edge for our `PlatformFunctionDeploymentEvent`. May be used by Relay 1. """ - error: String + platformFunctionDeploymentEventEdge( + """The method to use when ordering `PlatformFunctionDeploymentEvent`.""" + orderBy: [PlatformFunctionDeploymentEventOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformFunctionDeploymentEventEdge """ - Function definition this invocation ran (soft cross-scope ref; paired with definition_scope). task_identifier stays as the audit slug. + Our root query field type. Allows us to run any query from our mutation payload. """ - functionDefinitionId: UUID - - """Groups all node invocations from a single flow graph execution""" - graphExecutionId: UUID - - """Unique invocation identifier""" - id: UUID - - """FK to app_jobs.jobs — the underlying transport""" - jobId: BigInt - - """Parent invocation when this is a child node of a flow graph execution""" - parentInvocationId: UUID + query: Query +} - """Function input payload""" - payload: JSON +"""All input for the `deletePlatformFunctionDeployment` mutation.""" +input DeletePlatformFunctionDeploymentInput { + """ + An arbitrary 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 `PlatformFunctionDeployment` mutation.""" +type DeletePlatformFunctionDeploymentPayload { """ - Non-secret channel-specific invocation provenance (route/binding/event identifiers only) + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - provenance: JSON + clientMutationId: String - """Function return value (success) or structured error (failure)""" - result: JSON + """The `PlatformFunctionDeployment` that was deleted by this mutation.""" + platformFunctionDeployment: PlatformFunctionDeployment - """When execution started""" - startedAt: Datetime + """An edge for our `PlatformFunctionDeployment`. May be used by Relay 1.""" + platformFunctionDeploymentEdge( + """The method to use when ordering `PlatformFunctionDeployment`.""" + orderBy: [PlatformFunctionDeploymentOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformFunctionDeploymentEdge """ - Lifecycle: pending → running → completed/failed/cancelled; skipped = never ran (a gate rejected the intended run) + Our root query field type. Allows us to run any query from our mutation payload. """ - status: String + query: Query +} +"""All input for the `deletePlatformFunctionExecutionLog` mutation.""" +input DeletePlatformFunctionExecutionLogInput { """ - Function routing slug (category:name). Denormalized from the definition — must match the row referenced by function_definition_id when that is set. + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - taskIdentifier: String! -} + clientMutationId: String -"""Methods to use when ordering `FunctionInvocation`.""" -enum FunctionInvocationOrderBy { - ACTOR_ID_ASC - ACTOR_ID_DESC - API_BINDING_ID_ASC - API_BINDING_ID_DESC - CHANNEL_ASC - CHANNEL_DESC - COMPLETED_AT_ASC - COMPLETED_AT_DESC - CREATED_AT_ASC - CREATED_AT_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - DEFINITION_SCOPE_ASC - DEFINITION_SCOPE_DESC - DURATION_MS_ASC - DURATION_MS_DESC - ERROR_ASC - ERROR_DESC - FUNCTION_DEFINITION_ID_ASC - FUNCTION_DEFINITION_ID_DESC - GRAPH_EXECUTION_ID_ASC - GRAPH_EXECUTION_ID_DESC - ID_ASC - ID_DESC - JOB_ID_ASC - JOB_ID_DESC - NATURAL - PARENT_INVOCATION_ID_ASC - PARENT_INVOCATION_ID_DESC - PAYLOAD_ASC - PAYLOAD_DESC - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - PROVENANCE_ASC - PROVENANCE_DESC - RESULT_ASC - RESULT_DESC - STARTED_AT_ASC - STARTED_AT_DESC - STATUS_ASC - STATUS_DESC - TASK_IDENTIFIER_ASC - TASK_IDENTIFIER_DESC -} + """Log entry timestamp (partition key)""" + createdAt: Datetime! -""" -Represents an update to a `FunctionInvocation`. Fields that are set will be updated. -""" -input FunctionInvocationPatch { - """Who triggered the invocation (NULL for system/cron)""" - actorId: UUID + """Unique log entry identifier""" + id: UUID! +} +"""The output of our delete `PlatformFunctionExecutionLog` mutation.""" +type DeletePlatformFunctionExecutionLogPayload { """ - API binding this invocation arrived through (NULL for cron/graph/system/worker paths) + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - apiBindingId: UUID - - """Invocation trigger channel: api, graph, cron, sync, webhook, or worker""" - channel: String - - """When execution completed""" - completedAt: Datetime - - """Invocation creation timestamp (partition key)""" - createdAt: Datetime + clientMutationId: String - """Database that owns this resource (database-scoped isolation)""" - databaseId: UUID + """The `PlatformFunctionExecutionLog` that was deleted by this mutation.""" + platformFunctionExecutionLog: PlatformFunctionExecutionLog """ - Scope that owns function_definition_id (e.g. app/org/database/platform) — the per-scope definitions table the resolver selected + An edge for our `PlatformFunctionExecutionLog`. May be used by Relay 1. """ - definitionScope: String - - """Wall-clock execution time in milliseconds""" - durationMs: Int + platformFunctionExecutionLogEdge( + """The method to use when ordering `PlatformFunctionExecutionLog`.""" + orderBy: [PlatformFunctionExecutionLogOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformFunctionExecutionLogEdge """ - Error message when status is failed, or the reason the run was skipped when status is skipped + Our root query field type. Allows us to run any query from our mutation payload. """ - error: String + query: Query +} +"""All input for the `deletePlatformFunctionInvocationAttempt` mutation.""" +input DeletePlatformFunctionInvocationAttemptInput { """ - Function definition this invocation ran (soft cross-scope ref; paired with definition_scope). task_identifier stays as the audit slug. + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - functionDefinitionId: UUID - - """Groups all node invocations from a single flow graph execution""" - graphExecutionId: UUID - - """Unique invocation identifier""" - id: UUID - - """FK to app_jobs.jobs — the underlying transport""" - jobId: BigInt + clientMutationId: String - """Parent invocation when this is a child node of a flow graph execution""" - parentInvocationId: UUID + """When the attempt result was recorded (partition key)""" + createdAt: Datetime! - """Function input payload""" - payload: JSON + """Unique attempt identifier""" + id: UUID! +} +"""The output of our delete `PlatformFunctionInvocationAttempt` mutation.""" +type DeletePlatformFunctionInvocationAttemptPayload { """ - Non-secret channel-specific invocation provenance (route/binding/event identifiers only) + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - provenance: JSON - - """Function return value (success) or structured error (failure)""" - result: JSON + clientMutationId: String - """When execution started""" - startedAt: Datetime + """ + The `PlatformFunctionInvocationAttempt` that was deleted by this mutation. + """ + platformFunctionInvocationAttempt: PlatformFunctionInvocationAttempt """ - Lifecycle: pending → running → completed/failed/cancelled; skipped = never ran (a gate rejected the intended run) + An edge for our `PlatformFunctionInvocationAttempt`. May be used by Relay 1. """ - status: String + platformFunctionInvocationAttemptEdge( + """The method to use when ordering `PlatformFunctionInvocationAttempt`.""" + orderBy: [PlatformFunctionInvocationAttemptOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformFunctionInvocationAttemptEdge """ - Function routing slug (category:name). Denormalized from the definition — must match the row referenced by function_definition_id when that is set. + Our root query field type. Allows us to run any query from our mutation payload. """ - taskIdentifier: String + query: Query } -"""A connection to a list of `GetAllTreeNodesRecord` values.""" -type GetAllTreeNodesConnection { +"""All input for the `deletePlatformFunctionInvocation` mutation.""" +input DeletePlatformFunctionInvocationInput { """ - A list of edges which contains the `GetAllTreeNodesRecord` and cursor to aid in pagination. + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - edges: [GetAllTreeNodesEdge]! + clientMutationId: String - """A list of `GetAllTreeNodesRecord` objects.""" - nodes: [GetAllTreeNodesRecord]! + """Invocation creation timestamp (partition key)""" + createdAt: Datetime! - """Information to aid in pagination.""" - pageInfo: PageInfo! + """Unique invocation identifier""" + id: UUID! +} +"""The output of our delete `PlatformFunctionInvocation` mutation.""" +type DeletePlatformFunctionInvocationPayload { """ - The count of *all* `GetAllTreeNodesRecord` you could get from the connection. + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - totalCount: Int! -} + clientMutationId: String -"""A `GetAllTreeNodesRecord` edge in the connection.""" -type GetAllTreeNodesEdge { - """A cursor for use in pagination.""" - cursor: Cursor + """The `PlatformFunctionInvocation` that was deleted by this mutation.""" + platformFunctionInvocation: PlatformFunctionInvocation - """The `GetAllTreeNodesRecord` at the end of the edge.""" - node: GetAllTreeNodesRecord -} + """An edge for our `PlatformFunctionInvocation`. May be used by Relay 1.""" + platformFunctionInvocationEdge( + """The method to use when ordering `PlatformFunctionInvocation`.""" + orderBy: [PlatformFunctionInvocationOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformFunctionInvocationEdge -type GetAllTreeNodesRecord { - data: JSON - path: [String] + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query } -"""All input for the `importDefinitions` mutation.""" -input ImportDefinitionsInput { +"""All input for the `deletePlatformImageGrant` mutation.""" +input DeletePlatformImageGrantInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - contexts: [String] - graphId: UUID - sourceCommitId: UUID - sourceScopeId: UUID + id: UUID! } -"""The output of our `importDefinitions` mutation.""" -type ImportDefinitionsPayload { +"""The output of our delete `PlatformImageGrant` mutation.""" +type DeletePlatformImageGrantPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String + """The `PlatformImageGrant` that was deleted by this mutation.""" + platformImageGrant: PlatformImageGrant + + """An edge for our `PlatformImageGrant`. May be used by Relay 1.""" + platformImageGrantEdge( + """The method to use when ordering `PlatformImageGrant`.""" + orderBy: [PlatformImageGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformImageGrantEdge + """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query } -"""All input for the `importGraphJson` mutation.""" -input ImportGraphJsonInput { +"""All input for the `deletePlatformImage` mutation.""" +input DeletePlatformImageInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - context: String - createdBy: UUID - definitionsCommitId: UUID - description: String - graphJson: JSON - name: String - scopeId: UUID + id: UUID! } -"""The output of our `importGraphJson` mutation.""" -type ImportGraphJsonPayload { +"""The output of our delete `PlatformImage` mutation.""" +type DeletePlatformImagePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String + """The `PlatformImage` that was deleted by this mutation.""" + platformImage: PlatformImage + + """An edge for our `PlatformImage`. May be used by Relay 1.""" + platformImageEdge( + """The method to use when ordering `PlatformImage`.""" + orderBy: [PlatformImageOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformImageEdge + """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - result: UUID } -"""Commit history — each commit snapshots a tree root for a store""" -type InfraCommit { - """User who authored the changes""" - authorId: UUID - - """User who committed (may differ from author)""" - committerId: UUID - - """Database scope for multi-tenant isolation""" - databaseId: UUID! - - """Commit timestamp""" - date: Datetime! +"""All input for the `deletePlatformInfraCommit` mutation.""" +input DeletePlatformInfraCommitInput { + """ + An arbitrary 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 commit identifier""" id: UUID! - """Optional commit message""" - message: String - - """Parent commit IDs (supports merge commits)""" - parentIds: [UUID] - - """Store this commit belongs to""" - storeId: UUID! - - """Root object ID of the tree snapshot at this commit""" - treeId: UUID + """Opaque store partition key for the global tier""" + scopeId: UUID! } -"""A connection to a list of `InfraCommit` values.""" -type InfraCommitConnection { +"""The output of our delete `PlatformInfraCommit` mutation.""" +type DeletePlatformInfraCommitPayload { """ - A list of edges which contains the `InfraCommit` and cursor to aid in pagination. + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - edges: [InfraCommitEdge]! + clientMutationId: String - """A list of `InfraCommit` objects.""" - nodes: [InfraCommit]! + """The `PlatformInfraCommit` that was deleted by this mutation.""" + platformInfraCommit: PlatformInfraCommit - """Information to aid in pagination.""" - pageInfo: PageInfo! + """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 - """The count of *all* `InfraCommit` you could get from the connection.""" - totalCount: Int! + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query } -"""A `InfraCommit` edge in the connection.""" -type InfraCommitEdge { - """A cursor for use in pagination.""" - cursor: Cursor +"""All input for the `deletePlatformInfraObject` mutation.""" +input DeletePlatformInfraObjectInput { + """ + An arbitrary 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 `InfraCommit` at the end of the edge.""" - node: InfraCommit -} + """Content-addressed UUID v5 — deterministic hash of (data, kids, ktree)""" + id: UUID! -""" -A filter to be used against `InfraCommit` object types. All fields are combined with a logical ‘and.’ -""" -input InfraCommitFilter { - """Checks for all expressions in this list.""" - and: [InfraCommitFilter!] + """Opaque store partition key for the global tier""" + scopeId: UUID! +} - """Filter by the object’s `authorId` field.""" - authorId: UUIDFilter +"""The output of our delete `PlatformInfraObject` mutation.""" +type DeletePlatformInfraObjectPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """Filter by the object’s `committerId` field.""" - committerId: UUIDFilter + """The `PlatformInfraObject` that was deleted by this mutation.""" + platformInfraObject: PlatformInfraObject - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter + """An edge for our `PlatformInfraObject`. May be used by Relay 1.""" + platformInfraObjectEdge( + """The method to use when ordering `PlatformInfraObject`.""" + orderBy: [PlatformInfraObjectOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformInfraObjectEdge - """Filter by the object’s `date` field.""" - date: DatetimeFilter + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} - """Filter by the object’s `id` field.""" - id: UUIDFilter +"""All input for the `deletePlatformInfraRef` mutation.""" +input DeletePlatformInfraRefInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String - """Filter by the object’s `message` field.""" - message: StringFilter + """Unique ref identifier""" + id: UUID! - """Negates the expression.""" - not: InfraCommitFilter + """Opaque store partition key for the global tier""" + scopeId: UUID! +} - """Checks for any expressions in this list.""" - or: [InfraCommitFilter!] +"""The output of our delete `PlatformInfraRef` mutation.""" +type DeletePlatformInfraRefPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """Filter by the object’s `parentIds` field.""" - parentIds: UUIDListFilter + """The `PlatformInfraRef` that was deleted by this mutation.""" + platformInfraRef: PlatformInfraRef - """Filter by the object’s `storeId` field.""" - storeId: UUIDFilter + """An edge for our `PlatformInfraRef`. May be used by Relay 1.""" + platformInfraRefEdge( + """The method to use when ordering `PlatformInfraRef`.""" + orderBy: [PlatformInfraRefOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformInfraRefEdge - """Filter by the object’s `treeId` field.""" - treeId: UUIDFilter + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query } -"""An input for mutations affecting `InfraCommit`""" -input InfraCommitInput { - """User who authored the changes""" - authorId: UUID - - """User who committed (may differ from author)""" - committerId: UUID +"""All input for the `deletePlatformInfraStore` mutation.""" +input DeletePlatformInfraStoreInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String - """Database scope for multi-tenant isolation""" - databaseId: UUID! + """Unique store identifier""" + id: UUID! +} - """Commit timestamp""" - date: Datetime +"""The output of our delete `PlatformInfraStore` mutation.""" +type DeletePlatformInfraStorePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """Unique commit identifier""" - id: UUID + """The `PlatformInfraStore` that was deleted by this mutation.""" + platformInfraStore: PlatformInfraStore - """Optional commit message""" - message: String + """An edge for our `PlatformInfraStore`. May be used by Relay 1.""" + platformInfraStoreEdge( + """The method to use when ordering `PlatformInfraStore`.""" + orderBy: [PlatformInfraStoreOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformInfraStoreEdge - """Parent commit IDs (supports merge commits)""" - parentIds: [UUID] + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} - """Store this commit belongs to""" - storeId: UUID! +"""All input for the `deletePlatformK8sResourceKind` mutation.""" +input DeletePlatformK8sResourceKindInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String - """Root object ID of the tree snapshot at this commit""" - treeId: UUID + """Unique kind policy identifier""" + id: UUID! } -"""Methods to use when ordering `InfraCommit`.""" -enum InfraCommitOrderBy { - AUTHOR_ID_ASC - AUTHOR_ID_DESC - COMMITTER_ID_ASC - COMMITTER_ID_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - DATE_ASC - DATE_DESC - ID_ASC - ID_DESC - MESSAGE_ASC - MESSAGE_DESC - NATURAL - PARENT_IDS_ASC - PARENT_IDS_DESC - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - STORE_ID_ASC - STORE_ID_DESC - TREE_ID_ASC - TREE_ID_DESC -} +"""The output of our delete `PlatformK8sResourceKind` mutation.""" +type DeletePlatformK8sResourceKindPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String -""" -Represents an update to a `InfraCommit`. Fields that are set will be updated. -""" -input InfraCommitPatch { - """User who authored the changes""" - authorId: UUID + """The `PlatformK8sResourceKind` that was deleted by this mutation.""" + platformK8sResourceKind: PlatformK8sResourceKind - """User who committed (may differ from author)""" - committerId: UUID + """An edge for our `PlatformK8sResourceKind`. May be used by Relay 1.""" + platformK8sResourceKindEdge( + """The method to use when ordering `PlatformK8sResourceKind`.""" + orderBy: [PlatformK8sResourceKindOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformK8sResourceKindEdge - """Database scope for multi-tenant isolation""" - databaseId: UUID + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} - """Commit timestamp""" - date: Datetime +"""All input for the `deletePlatformK8sSpecRule` mutation.""" +input DeletePlatformK8sSpecRuleInput { + """ + An arbitrary 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 commit identifier""" - id: UUID + """Unique spec rule identifier""" + id: UUID! +} - """Optional commit message""" - message: String +"""The output of our delete `PlatformK8sSpecRule` mutation.""" +type DeletePlatformK8sSpecRulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """Parent commit IDs (supports merge commits)""" - parentIds: [UUID] + """The `PlatformK8sSpecRule` that was deleted by this mutation.""" + platformK8sSpecRule: PlatformK8sSpecRule - """Store this commit belongs to""" - storeId: UUID + """An edge for our `PlatformK8sSpecRule`. May be used by Relay 1.""" + platformK8sSpecRuleEdge( + """The method to use when ordering `PlatformK8sSpecRule`.""" + orderBy: [PlatformK8sSpecRuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformK8sSpecRuleEdge - """Root object ID of the tree snapshot at this commit""" - treeId: UUID + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query } -"""A connection to a list of `InfraGetAllTreeNodesRecord` values.""" -type InfraGetAllTreeNodesConnection { +"""All input for the `deletePlatformNamespaceEvent` mutation.""" +input DeletePlatformNamespaceEventInput { """ - A list of edges which contains the `InfraGetAllTreeNodesRecord` and cursor to aid in pagination. + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - edges: [InfraGetAllTreeNodesEdge]! + clientMutationId: String - """A list of `InfraGetAllTreeNodesRecord` objects.""" - nodes: [InfraGetAllTreeNodesRecord]! + """Event timestamp (partition key)""" + createdAt: Datetime! - """Information to aid in pagination.""" - pageInfo: PageInfo! + """Unique event identifier""" + id: UUID! +} +"""The output of our delete `PlatformNamespaceEvent` mutation.""" +type DeletePlatformNamespaceEventPayload { """ - The count of *all* `InfraGetAllTreeNodesRecord` you could get from the connection. + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - totalCount: Int! -} + clientMutationId: String -"""A `InfraGetAllTreeNodesRecord` edge in the connection.""" -type InfraGetAllTreeNodesEdge { - """A cursor for use in pagination.""" - cursor: Cursor + """The `PlatformNamespaceEvent` that was deleted by this mutation.""" + platformNamespaceEvent: PlatformNamespaceEvent - """The `InfraGetAllTreeNodesRecord` at the end of the edge.""" - node: InfraGetAllTreeNodesRecord -} + """An edge for our `PlatformNamespaceEvent`. May be used by Relay 1.""" + platformNamespaceEventEdge( + """The method to use when ordering `PlatformNamespaceEvent`.""" + orderBy: [PlatformNamespaceEventOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformNamespaceEventEdge -type InfraGetAllTreeNodesRecord { - data: JSON - path: [String] + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query } -"""All input for the `infraInitEmptyRepo` mutation.""" -input InfraInitEmptyRepoInput { +"""All input for the `deletePlatformNamespace` mutation.""" +input DeletePlatformNamespaceInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - sId: UUID - storeId: UUID + id: UUID! } -"""The output of our `infraInitEmptyRepo` mutation.""" -type InfraInitEmptyRepoPayload { +"""The output of our delete `PlatformNamespace` mutation.""" +type DeletePlatformNamespacePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String + """The `PlatformNamespace` that was deleted by this mutation.""" + platformNamespace: PlatformNamespace + + """An edge for our `PlatformNamespace`. May be used by Relay 1.""" + platformNamespaceEdge( + """The method to use when ordering `PlatformNamespace`.""" + orderBy: [PlatformNamespaceOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformNamespaceEdge + """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query } -"""All input for the `infraInsertNodeAtPath` mutation.""" -input InfraInsertNodeAtPathInput { +"""All input for the `deletePlatformProposalComment` mutation.""" +input DeletePlatformProposalCommentInput { """ An arbitrary 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] - path: [String] - root: UUID - sId: UUID + id: UUID! } -"""The output of our `infraInsertNodeAtPath` mutation.""" -type InfraInsertNodeAtPathPayload { +"""The output of our delete `PlatformProposalComment` mutation.""" +type DeletePlatformProposalCommentPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String + """The `PlatformProposalComment` that was deleted by this mutation.""" + platformProposalComment: PlatformProposalComment + + """An edge for our `PlatformProposalComment`. May be used by Relay 1.""" + platformProposalCommentEdge( + """The method to use when ordering `PlatformProposalComment`.""" + orderBy: [PlatformProposalCommentOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformProposalCommentEdge + """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - result: UUID } -"""All input for the `infraInsertNodesAtPaths` mutation.""" -input InfraInsertNodesAtPathsInput { +"""All input for the `deletePlatformProposalFileView` mutation.""" +input DeletePlatformProposalFileViewInput { """ An arbitrary 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 + id: UUID! } -"""The output of our `infraInsertNodesAtPaths` mutation.""" -type InfraInsertNodesAtPathsPayload { +"""The output of our delete `PlatformProposalFileView` mutation.""" +type DeletePlatformProposalFileViewPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String + """The `PlatformProposalFileView` that was deleted by this mutation.""" + platformProposalFileView: PlatformProposalFileView + + """An edge for our `PlatformProposalFileView`. May be used by Relay 1.""" + platformProposalFileViewEdge( + """The method to use when ordering `PlatformProposalFileView`.""" + orderBy: [PlatformProposalFileViewOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformProposalFileViewEdge + """ 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 -""" -type InfraObject { - """Timestamp of object creation""" - createdAt: Datetime +"""All input for the `deletePlatformProposal` mutation.""" +input DeletePlatformProposalInput { + """ + An arbitrary 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! +} - """Payload data for this object node""" - data: JSON +"""The output of our delete `PlatformProposal` mutation.""" +type DeletePlatformProposalPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """Database scope for multi-tenant isolation""" - databaseId: UUID! + """The `PlatformProposal` that was deleted by this mutation.""" + platformProposal: PlatformProposal - """Content-addressed UUID v5 — deterministic hash of (data, kids, ktree)""" - id: UUID! + """An edge for our `PlatformProposal`. May be used by Relay 1.""" + platformProposalEdge( + """The method to use when ordering `PlatformProposal`.""" + orderBy: [PlatformProposalOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformProposalEdge - """Ordered array of child object IDs""" - kids: [UUID] + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} - """Ordered array of child path names (parallel to kids)""" - ktree: [String] +"""All input for the `deletePlatformProposalReaction` mutation.""" +input DeletePlatformProposalReactionInput { + """ + An arbitrary 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! } -"""A connection to a list of `InfraObject` values.""" -type InfraObjectConnection { +"""The output of our delete `PlatformProposalReaction` mutation.""" +type DeletePlatformProposalReactionPayload { """ - A list of edges which contains the `InfraObject` and cursor to aid in pagination. + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - edges: [InfraObjectEdge]! + clientMutationId: String - """A list of `InfraObject` objects.""" - nodes: [InfraObject]! + """The `PlatformProposalReaction` that was deleted by this mutation.""" + platformProposalReaction: PlatformProposalReaction - """Information to aid in pagination.""" - pageInfo: PageInfo! + """An edge for our `PlatformProposalReaction`. May be used by Relay 1.""" + platformProposalReactionEdge( + """The method to use when ordering `PlatformProposalReaction`.""" + orderBy: [PlatformProposalReactionOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformProposalReactionEdge - """The count of *all* `InfraObject` you could get from the connection.""" - totalCount: Int! + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query } -"""A `InfraObject` edge in the connection.""" -type InfraObjectEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `InfraObject` at the end of the edge.""" - node: InfraObject +"""All input for the `deletePlatformProposalReview` mutation.""" +input DeletePlatformProposalReviewInput { + """ + An arbitrary 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! } -""" -A filter to be used against `InfraObject` object types. All fields are combined with a logical ‘and.’ -""" -input InfraObjectFilter { - """Checks for all expressions in this list.""" - and: [InfraObjectFilter!] +"""The output of our delete `PlatformProposalReview` mutation.""" +type DeletePlatformProposalReviewPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter + """The `PlatformProposalReview` that was deleted by this mutation.""" + platformProposalReview: PlatformProposalReview - """Filter by the object’s `data` field.""" - data: JSONFilter + """An edge for our `PlatformProposalReview`. May be used by Relay 1.""" + platformProposalReviewEdge( + """The method to use when ordering `PlatformProposalReview`.""" + orderBy: [PlatformProposalReviewOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformProposalReviewEdge - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} - """Filter by the object’s `id` field.""" - id: UUIDFilter +"""All input for the `deletePlatformProposalsChunk` mutation.""" +input DeletePlatformProposalsChunkInput { + """ + An arbitrary 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! +} - """Filter by the object’s `kids` field.""" - kids: UUIDListFilter +"""The output of our delete `PlatformProposalsChunk` mutation.""" +type DeletePlatformProposalsChunkPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """Filter by the object’s `ktree` field.""" - ktree: StringListFilter + """The `PlatformProposalsChunk` that was deleted by this mutation.""" + platformProposalsChunk: PlatformProposalsChunk - """Negates the expression.""" - not: InfraObjectFilter + """An edge for our `PlatformProposalsChunk`. May be used by Relay 1.""" + platformProposalsChunkEdge( + """The method to use when ordering `PlatformProposalsChunk`.""" + orderBy: [PlatformProposalsChunkOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformProposalsChunkEdge - """Checks for any expressions in this list.""" - or: [InfraObjectFilter!] + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query } -"""An input for mutations affecting `InfraObject`""" -input InfraObjectInput { - """Timestamp of object creation""" - createdAt: Datetime +"""All input for the `deletePlatformRegistryBinding` mutation.""" +input DeletePlatformRegistryBindingInput { + """ + An arbitrary 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! +} - """Payload data for this object node""" - data: JSON +"""The output of our delete `PlatformRegistryBinding` mutation.""" +type DeletePlatformRegistryBindingPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """Database scope for multi-tenant isolation""" - databaseId: UUID! + """The `PlatformRegistryBinding` that was deleted by this mutation.""" + platformRegistryBinding: PlatformRegistryBinding - """Content-addressed UUID v5 — deterministic hash of (data, kids, ktree)""" - id: UUID! - - """Ordered array of child object IDs""" - kids: [UUID] - - """Ordered array of child path names (parallel to kids)""" - ktree: [String] -} - -"""Methods to use when ordering `InfraObject`.""" -enum InfraObjectOrderBy { - CREATED_AT_ASC - CREATED_AT_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - DATA_ASC - DATA_DESC - ID_ASC - ID_DESC - KIDS_ASC - KIDS_DESC - KTREE_ASC - KTREE_DESC - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC -} - -""" -Represents an update to a `InfraObject`. Fields that are set will be updated. -""" -input InfraObjectPatch { - """Timestamp of object creation""" - createdAt: Datetime - - """Payload data for this object node""" - data: JSON - - """Database scope for multi-tenant isolation""" - databaseId: UUID - - """Content-addressed UUID v5 — deterministic hash of (data, kids, ktree)""" - id: UUID + """An edge for our `PlatformRegistryBinding`. May be used by Relay 1.""" + platformRegistryBindingEdge( + """The method to use when ordering `PlatformRegistryBinding`.""" + orderBy: [PlatformRegistryBindingOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformRegistryBindingEdge - """Ordered array of child object IDs""" - kids: [UUID] - - """Ordered array of child path names (parallel to kids)""" - ktree: [String] + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query } -"""Branch heads — mutable pointers into the commit chain""" -type InfraRef { - """Commit this ref points to""" - commitId: UUID - - """Database scope for multi-tenant isolation""" - databaseId: UUID! - - """Unique ref identifier""" +"""All input for the `deletePlatformRegistryGrant` mutation.""" +input DeletePlatformRegistryGrantInput { + """ + An arbitrary 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! - - """Ref name (e.g. HEAD, main)""" - name: String! - - """Store this ref belongs to""" - storeId: UUID! } -"""A connection to a list of `InfraRef` values.""" -type InfraRefConnection { +"""The output of our delete `PlatformRegistryGrant` mutation.""" +type DeletePlatformRegistryGrantPayload { """ - A list of edges which contains the `InfraRef` and cursor to aid in pagination. + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - edges: [InfraRefEdge]! - - """A list of `InfraRef` objects.""" - nodes: [InfraRef]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! + clientMutationId: String - """The count of *all* `InfraRef` you could get from the connection.""" - totalCount: Int! -} + """The `PlatformRegistryGrant` that was deleted by this mutation.""" + platformRegistryGrant: PlatformRegistryGrant -"""A `InfraRef` edge in the connection.""" -type InfraRefEdge { - """A cursor for use in pagination.""" - cursor: Cursor + """An edge for our `PlatformRegistryGrant`. May be used by Relay 1.""" + platformRegistryGrantEdge( + """The method to use when ordering `PlatformRegistryGrant`.""" + orderBy: [PlatformRegistryGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformRegistryGrantEdge - """The `InfraRef` at the end of the edge.""" - node: InfraRef + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query } -""" -A filter to be used against `InfraRef` object types. All fields are combined with a logical ‘and.’ -""" -input InfraRefFilter { - """Checks for all expressions in this list.""" - and: [InfraRefFilter!] - - """Filter by the object’s `commitId` field.""" - commitId: UUIDFilter - - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter - - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `name` field.""" - name: StringFilter - - """Negates the expression.""" - not: InfraRefFilter - - """Checks for any expressions in this list.""" - or: [InfraRefFilter!] - - """Filter by the object’s `storeId` field.""" - storeId: UUIDFilter +"""All input for the `deletePlatformRegistry` mutation.""" +input DeletePlatformRegistryInput { + """ + An arbitrary 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 input for mutations affecting `InfraRef`""" -input InfraRefInput { - """Commit this ref points to""" - commitId: UUID - - """Database scope for multi-tenant isolation""" - databaseId: UUID! +"""The output of our delete `PlatformRegistry` mutation.""" +type DeletePlatformRegistryPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """Unique ref identifier""" - id: UUID + """The `PlatformRegistry` that was deleted by this mutation.""" + platformRegistry: PlatformRegistry - """Ref name (e.g. HEAD, main)""" - name: String! + """An edge for our `PlatformRegistry`. May be used by Relay 1.""" + platformRegistryEdge( + """The method to use when ordering `PlatformRegistry`.""" + orderBy: [PlatformRegistryOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformRegistryEdge - """Store this ref belongs to""" - storeId: UUID! + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query } -"""Methods to use when ordering `InfraRef`.""" -enum InfraRefOrderBy { - COMMIT_ID_ASC - COMMIT_ID_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - ID_ASC - ID_DESC - NAME_ASC - NAME_DESC - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - STORE_ID_ASC - STORE_ID_DESC +"""All input for the `deletePlatformRepositoryEvent` mutation.""" +input DeletePlatformRepositoryEventInput { + """ + An arbitrary 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! } -""" -Represents an update to a `InfraRef`. Fields that are set will be updated. -""" -input InfraRefPatch { - """Commit this ref points to""" - commitId: UUID - - """Database scope for multi-tenant isolation""" - databaseId: UUID +"""The output of our delete `PlatformRepositoryEvent` mutation.""" +type DeletePlatformRepositoryEventPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """Unique ref identifier""" - id: UUID + """The `PlatformRepositoryEvent` that was deleted by this mutation.""" + platformRepositoryEvent: PlatformRepositoryEvent - """Ref name (e.g. HEAD, main)""" - name: String + """An edge for our `PlatformRepositoryEvent`. May be used by Relay 1.""" + platformRepositoryEventEdge( + """The method to use when ordering `PlatformRepositoryEvent`.""" + orderBy: [PlatformRepositoryEventOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformRepositoryEventEdge - """Store this ref belongs to""" - storeId: UUID + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query } -"""All input for the `infraSetAndCommit` mutation.""" -input InfraSetAndCommitInput { +"""All input for the `deletePlatformRepository` mutation.""" +input DeletePlatformRepositoryInput { """ An arbitrary 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 + id: UUID! } -"""The output of our `infraSetAndCommit` mutation.""" -type InfraSetAndCommitPayload { +"""The output of our delete `PlatformRepository` mutation.""" +type DeletePlatformRepositoryPayload { """ The 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 + """The `PlatformRepository` that was deleted by this mutation.""" + platformRepository: PlatformRepository + + """An edge for our `PlatformRepository`. May be used by Relay 1.""" + platformRepositoryEdge( + """The method to use when ordering `PlatformRepository`.""" + orderBy: [PlatformRepositoryOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformRepositoryEdge """ 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 { +"""All input for the `deletePlatformRepositoryRequiredCheck` mutation.""" +input DeletePlatformRepositoryRequiredCheckInput { """ An arbitrary 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 - path: [String] - root: UUID - sId: UUID + id: UUID! } -"""The output of our `infraSetDataAtPath` mutation.""" -type InfraSetDataAtPathPayload { +"""The output of our delete `PlatformRepositoryRequiredCheck` mutation.""" +type DeletePlatformRepositoryRequiredCheckPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String + """ + The `PlatformRepositoryRequiredCheck` that was deleted by this mutation. + """ + platformRepositoryRequiredCheck: PlatformRepositoryRequiredCheck + + """ + An edge for our `PlatformRepositoryRequiredCheck`. May be used by Relay 1. + """ + platformRepositoryRequiredCheckEdge( + """The method to use when ordering `PlatformRepositoryRequiredCheck`.""" + orderBy: [PlatformRepositoryRequiredCheckOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformRepositoryRequiredCheckEdge + """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - result: UUID } -"""All input for the `infraSetManyAndCommit` mutation.""" -input InfraSetManyAndCommitInput { +"""All input for the `deletePlatformRepositoryWorkflow` mutation.""" +input DeletePlatformRepositoryWorkflowInput { """ An arbitrary 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 + id: UUID! } -"""The output of our `infraSetManyAndCommit` mutation.""" -type InfraSetManyAndCommitPayload { +"""The output of our delete `PlatformRepositoryWorkflow` mutation.""" +type DeletePlatformRepositoryWorkflowPayload { """ The 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 + """The `PlatformRepositoryWorkflow` that was deleted by this mutation.""" + platformRepositoryWorkflow: PlatformRepositoryWorkflow + + """An edge for our `PlatformRepositoryWorkflow`. May be used by Relay 1.""" + platformRepositoryWorkflowEdge( + """The method to use when ordering `PlatformRepositoryWorkflow`.""" + orderBy: [PlatformRepositoryWorkflowOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformRepositoryWorkflowEdge """ 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) -""" -type InfraStore { - """Timestamp of store creation""" - createdAt: Datetime - - """Database scope for multi-tenant isolation""" - databaseId: UUID! - - """Current root object hash of this store""" - hash: UUID - - """Unique store identifier""" +"""All input for the `deletePlatformResourceDefinition` mutation.""" +input DeletePlatformResourceDefinitionInput { + """ + An arbitrary 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! - - """Human-readable store name""" - name: String! } -"""A connection to a list of `InfraStore` values.""" -type InfraStoreConnection { +"""The output of our delete `PlatformResourceDefinition` mutation.""" +type DeletePlatformResourceDefinitionPayload { """ - A list of edges which contains the `InfraStore` and cursor to aid in pagination. + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - edges: [InfraStoreEdge]! - - """A list of `InfraStore` objects.""" - nodes: [InfraStore]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! + clientMutationId: String - """The count of *all* `InfraStore` you could get from the connection.""" - totalCount: Int! -} + """The `PlatformResourceDefinition` that was deleted by this mutation.""" + platformResourceDefinition: PlatformResourceDefinition -"""A `InfraStore` edge in the connection.""" -type InfraStoreEdge { - """A cursor for use in pagination.""" - cursor: Cursor + """An edge for our `PlatformResourceDefinition`. May be used by Relay 1.""" + platformResourceDefinitionEdge( + """The method to use when ordering `PlatformResourceDefinition`.""" + orderBy: [PlatformResourceDefinitionOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformResourceDefinitionEdge - """The `InfraStore` at the end of the edge.""" - node: InfraStore + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query } -""" -A filter to be used against `InfraStore` object types. All fields are combined with a logical ‘and.’ -""" -input InfraStoreFilter { - """Checks for all expressions in this list.""" - and: [InfraStoreFilter!] - - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter - - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter - - """Filter by the object’s `hash` field.""" - hash: UUIDFilter - - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `name` field.""" - name: StringFilter +"""All input for the `deletePlatformResourceEvent` mutation.""" +input DeletePlatformResourceEventInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String - """Negates the expression.""" - not: InfraStoreFilter + """Event timestamp (partition key)""" + createdAt: Datetime! - """Checks for any expressions in this list.""" - or: [InfraStoreFilter!] + """Unique event identifier""" + id: UUID! } -"""An input for mutations affecting `InfraStore`""" -input InfraStoreInput { - """Timestamp of store creation""" - createdAt: Datetime - - """Database scope for multi-tenant isolation""" - databaseId: UUID! - - """Current root object hash of this store""" - hash: UUID +"""The output of our delete `PlatformResourceEvent` mutation.""" +type DeletePlatformResourceEventPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """Unique store identifier""" - id: UUID + """The `PlatformResourceEvent` that was deleted by this mutation.""" + platformResourceEvent: PlatformResourceEvent - """Human-readable store name""" - name: String! -} + """An edge for our `PlatformResourceEvent`. May be used by Relay 1.""" + platformResourceEventEdge( + """The method to use when ordering `PlatformResourceEvent`.""" + orderBy: [PlatformResourceEventOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformResourceEventEdge -"""Methods to use when ordering `InfraStore`.""" -enum InfraStoreOrderBy { - CREATED_AT_ASC - CREATED_AT_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - HASH_ASC - HASH_DESC - ID_ASC - ID_DESC - NAME_ASC - NAME_DESC - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query } -""" -Represents an update to a `InfraStore`. Fields that are set will be updated. -""" -input InfraStorePatch { - """Timestamp of store creation""" - createdAt: Datetime - - """Database scope for multi-tenant isolation""" - databaseId: UUID - - """Current root object hash of this store""" - hash: UUID - - """Unique store identifier""" - id: UUID - - """Human-readable store name""" - name: String +"""All input for the `deletePlatformResource` mutation.""" +input DeletePlatformResourceInput { + """ + An arbitrary 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! } -"""All input for the `initEmptyRepo` mutation.""" -input InitEmptyRepoInput { +"""All input for the `deletePlatformResourceInstallation` mutation.""" +input DeletePlatformResourceInstallationInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - sId: UUID - storeId: UUID + id: UUID! } -"""The output of our `initEmptyRepo` mutation.""" -type InitEmptyRepoPayload { +"""The output of our delete `PlatformResourceInstallation` mutation.""" +type DeletePlatformResourceInstallationPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String + """The `PlatformResourceInstallation` that was deleted by this mutation.""" + platformResourceInstallation: PlatformResourceInstallation + """ - Our root query field type. Allows us to run any query from our mutation payload. + An edge for our `PlatformResourceInstallation`. May be used by Relay 1. """ - query: Query -} + platformResourceInstallationEdge( + """The method to use when ordering `PlatformResourceInstallation`.""" + orderBy: [PlatformResourceInstallationOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformResourceInstallationEdge -"""All input for the `insertNodeAtPath` mutation.""" -input InsertNodeAtPathInput { """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. + Our root query field type. Allows us to run any query from our mutation payload. """ - clientMutationId: String - data: JSON - kids: [UUID] - ktree: [String] - path: [String] - root: UUID - sId: UUID + query: Query } -"""The output of our `insertNodeAtPath` mutation.""" -type InsertNodeAtPathPayload { +"""The output of our delete `PlatformResource` mutation.""" +type DeletePlatformResourcePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String + """The `PlatformResource` that was deleted by this mutation.""" + platformResource: PlatformResource + + """An edge for our `PlatformResource`. May be used by Relay 1.""" + platformResourceEdge( + """The method to use when ordering `PlatformResource`.""" + orderBy: [PlatformResourceOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformResourceEdge + """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - result: UUID } -"""All input for the `insertNodesAtPaths` mutation.""" -input InsertNodesAtPathsInput { +"""All input for the `deletePlatformResourceStatusCheck` mutation.""" +input DeletePlatformResourceStatusCheckInput { """ An arbitrary 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 + + """Unique status check identifier""" + id: UUID! } -"""The output of our `insertNodesAtPaths` mutation.""" -type InsertNodesAtPathsPayload { +"""The output of our delete `PlatformResourceStatusCheck` mutation.""" +type DeletePlatformResourceStatusCheckPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String + """The `PlatformResourceStatusCheck` that was deleted by this mutation.""" + platformResourceStatusCheck: PlatformResourceStatusCheck + + """An edge for our `PlatformResourceStatusCheck`. May be used by Relay 1.""" + platformResourceStatusCheckEdge( + """The method to use when ordering `PlatformResourceStatusCheck`.""" + orderBy: [PlatformResourceStatusCheckOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformResourceStatusCheckEdge + """ 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.’ -""" -input IntFilter { +"""All input for the `deletePlatformResourceUsageLog` mutation.""" +input DeletePlatformResourceUsageLogInput { """ - Not equal to the specified value, treating null like an ordinary value. + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - distinctFrom: Int + clientMutationId: String - """Equal to the specified value.""" - equalTo: Int + """Unique sample identifier""" + id: UUID! - """Greater than the specified value.""" - greaterThan: Int - - """Greater than or equal to the specified value.""" - greaterThanOrEqualTo: Int - - """Included in the specified list.""" - in: [Int!] + """Sample timestamp (partition key) — end of the measured interval""" + sampledAt: Datetime! +} +"""The output of our delete `PlatformResourceUsageLog` mutation.""" +type DeletePlatformResourceUsageLogPayload { """ - Is null (if `true` is specified) or is not null (if `false` is specified). + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - isNull: Boolean - - """Less than the specified value.""" - lessThan: Int - - """Less than or equal to the specified value.""" - lessThanOrEqualTo: Int + clientMutationId: String - """Equal to the specified value, treating null like an ordinary value.""" - notDistinctFrom: Int + """The `PlatformResourceUsageLog` that was deleted by this mutation.""" + platformResourceUsageLog: PlatformResourceUsageLog - """Not equal to the specified value.""" - notEqualTo: Int + """An edge for our `PlatformResourceUsageLog`. May be used by Relay 1.""" + platformResourceUsageLogEdge( + """The method to use when ordering `PlatformResourceUsageLog`.""" + orderBy: [PlatformResourceUsageLogOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformResourceUsageLogEdge - """Not included in the specified list.""" - notIn: [Int!] + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query } -""" -Branded catalog of external service integrations and their canonical secret/config requirements. Each row defines a provider (e.g. Mailgun, Postgres) that function and resource definitions can reference by slug. The required_secrets/required_configs arrays are guidance that the UI can copy into a definition; the definition arrays remain the source of truth. -""" -type IntegrationProvider { +"""All input for the `deletePlatformResourceUsageSummary` mutation.""" +input DeletePlatformResourceUsageSummaryInput { """ - Brand metadata: colors, fonts, and other provider-specific styling. Not a foreign key. + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - brand: JSON! - - """Browser category (e.g. email, database, storage, ai, analytics)""" - category: String - createdAt: Datetime + clientMutationId: String - """Short description of what this integration provides and when to use it""" - description: String + """Day this summary covers (partition key)""" + date: Date! - """Icon identifier for the UI (e.g. mail, database, cloud)""" - icon: String + """Unique usage summary identifier""" id: UUID! +} +"""The output of our delete `PlatformResourceUsageSummary` mutation.""" +type DeletePlatformResourceUsageSummaryPayload { """ - Provider logo as an image domain value (url, id, key, bucket, provider) + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - logo: ConstructiveInternalTypeImage + clientMutationId: String - """Human-readable brand name (e.g. 'Mailgun', 'PostgreSQL')""" - name: String! + """The `PlatformResourceUsageSummary` that was deleted by this mutation.""" + platformResourceUsageSummary: PlatformResourceUsageSummary """ - Canonical config requirements for this provider: array of (name, required, provider) tuples. Used by the UI to auto-fill function/resource required_configs. + An edge for our `PlatformResourceUsageSummary`. May be used by Relay 1. """ - requiredConfigs: [ResourceRequirement]! + platformResourceUsageSummaryEdge( + """The method to use when ordering `PlatformResourceUsageSummary`.""" + orderBy: [PlatformResourceUsageSummaryOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformResourceUsageSummaryEdge """ - Canonical secret requirements for this provider: array of (name, required, provider) tuples. Used by the UI to auto-fill function/resource required_secrets. + Our root query field type. Allows us to run any query from our mutation payload. """ - requiredSecrets: [ResourceRequirement]! + query: Query +} +"""All input for the `deletePlatformWebhookEndpoint` mutation.""" +input DeletePlatformWebhookEndpointInput { """ - Stable URL-safe identifier for the provider. Other tables match by this string, not by FK. + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - slug: String! - updatedAt: Datetime + clientMutationId: String + id: UUID! } -"""A connection to a list of `IntegrationProvider` values.""" -type IntegrationProviderConnection { +"""The output of our delete `PlatformWebhookEndpoint` mutation.""" +type DeletePlatformWebhookEndpointPayload { """ - A list of edges which contains the `IntegrationProvider` and cursor to aid in pagination. + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - edges: [IntegrationProviderEdge]! + clientMutationId: String - """A list of `IntegrationProvider` objects.""" - nodes: [IntegrationProvider]! + """The `PlatformWebhookEndpoint` that was deleted by this mutation.""" + platformWebhookEndpoint: PlatformWebhookEndpoint - """Information to aid in pagination.""" - pageInfo: PageInfo! + """An edge for our `PlatformWebhookEndpoint`. May be used by Relay 1.""" + platformWebhookEndpointEdge( + """The method to use when ordering `PlatformWebhookEndpoint`.""" + orderBy: [PlatformWebhookEndpointOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformWebhookEndpointEdge """ - The count of *all* `IntegrationProvider` you could get from the connection. + Our root query field type. Allows us to run any query from our mutation payload. """ - totalCount: Int! + query: Query } -"""A `IntegrationProvider` edge in the connection.""" -type IntegrationProviderEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `IntegrationProvider` at the end of the edge.""" - node: IntegrationProvider +"""All input for the `deletePlatformWebhookEvent` mutation.""" +input DeletePlatformWebhookEventInput { + """ + An arbitrary 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! } -""" -A filter to be used against `IntegrationProvider` object types. All fields are combined with a logical ‘and.’ -""" -input IntegrationProviderFilter { - """Checks for all expressions in this list.""" - and: [IntegrationProviderFilter!] - - """Filter by the object’s `brand` field.""" - brand: JSONFilter - - """Filter by the object’s `category` field.""" - category: StringFilter - - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter - - """Filter by the object’s `description` field.""" - description: StringFilter +"""The output of our delete `PlatformWebhookEvent` mutation.""" +type DeletePlatformWebhookEventPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """Filter by the object’s `icon` field.""" - icon: StringFilter + """The `PlatformWebhookEvent` that was deleted by this mutation.""" + platformWebhookEvent: PlatformWebhookEvent - """Filter by the object’s `id` field.""" - id: UUIDFilter + """An edge for our `PlatformWebhookEvent`. May be used by Relay 1.""" + platformWebhookEventEdge( + """The method to use when ordering `PlatformWebhookEvent`.""" + orderBy: [PlatformWebhookEventOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformWebhookEventEdge - """Filter by the object’s `logo` field.""" - logo: ConstructiveInternalTypeImageFilter + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} - """Filter by the object’s `name` field.""" - name: StringFilter +"""All input for the `deleteProposalComment` mutation.""" +input DeleteProposalCommentInput { + """ + An arbitrary 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! +} - """Negates the expression.""" - not: IntegrationProviderFilter +"""The output of our delete `ProposalComment` mutation.""" +type DeleteProposalCommentPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """Checks for any expressions in this list.""" - or: [IntegrationProviderFilter!] + """The `ProposalComment` that was deleted by this mutation.""" + proposalComment: ProposalComment - """Filter by the object’s `slug` field.""" - slug: StringFilter + """An edge for our `ProposalComment`. May be used by Relay 1.""" + proposalCommentEdge( + """The method to use when ordering `ProposalComment`.""" + orderBy: [ProposalCommentOrderBy!]! = [PRIMARY_KEY_ASC] + ): ProposalCommentEdge - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query } -"""An input for mutations affecting `IntegrationProvider`""" -input IntegrationProviderInput { +"""All input for the `deleteProposalFileView` mutation.""" +input DeleteProposalFileViewInput { """ - Brand metadata: colors, fonts, and other provider-specific styling. Not a foreign key. + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - brand: JSON + clientMutationId: String + id: UUID! +} - """Browser category (e.g. email, database, storage, ai, analytics)""" - category: String - createdAt: Datetime +"""The output of our delete `ProposalFileView` mutation.""" +type DeleteProposalFileViewPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """Short description of what this integration provides and when to use it""" - description: String + """The `ProposalFileView` that was deleted by this mutation.""" + proposalFileView: ProposalFileView - """Icon identifier for the UI (e.g. mail, database, cloud)""" - icon: String - id: UUID + """An edge for our `ProposalFileView`. May be used by Relay 1.""" + proposalFileViewEdge( + """The method to use when ordering `ProposalFileView`.""" + orderBy: [ProposalFileViewOrderBy!]! = [PRIMARY_KEY_ASC] + ): ProposalFileViewEdge """ - Provider logo as an image domain value (url, id, key, bucket, provider) + Our root query field type. Allows us to run any query from our mutation payload. """ - logo: ConstructiveInternalTypeImage - - """Human-readable brand name (e.g. 'Mailgun', 'PostgreSQL')""" - name: String! + query: Query +} +"""All input for the `deleteProposal` mutation.""" +input DeleteProposalInput { """ - Canonical config requirements for this provider: array of (name, required, provider) tuples. Used by the UI to auto-fill function/resource required_configs. + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - requiredConfigs: [ResourceRequirementInput] + clientMutationId: String + id: UUID! +} +"""The output of our delete `Proposal` mutation.""" +type DeleteProposalPayload { """ - Canonical secret requirements for this provider: array of (name, required, provider) tuples. Used by the UI to auto-fill function/resource required_secrets. + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - requiredSecrets: [ResourceRequirementInput] + clientMutationId: String + + """The `Proposal` that was deleted by this mutation.""" + proposal: Proposal + + """An edge for our `Proposal`. May be used by Relay 1.""" + proposalEdge( + """The method to use when ordering `Proposal`.""" + orderBy: [ProposalOrderBy!]! = [PRIMARY_KEY_ASC] + ): ProposalEdge """ - Stable URL-safe identifier for the provider. Other tables match by this string, not by FK. + Our root query field type. Allows us to run any query from our mutation payload. """ - slug: String! - updatedAt: Datetime + query: Query } -"""Methods to use when ordering `IntegrationProvider`.""" -enum IntegrationProviderOrderBy { - BRAND_ASC - BRAND_DESC - CATEGORY_ASC - CATEGORY_DESC - CREATED_AT_ASC - CREATED_AT_DESC - DESCRIPTION_ASC - DESCRIPTION_DESC - ICON_ASC - ICON_DESC - ID_ASC - ID_DESC - LOGO_ASC - LOGO_DESC - NAME_ASC - NAME_DESC - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - REQUIRED_CONFIGS_ASC - REQUIRED_CONFIGS_DESC - REQUIRED_SECRETS_ASC - REQUIRED_SECRETS_DESC - SLUG_ASC - SLUG_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC +"""All input for the `deleteProposalReaction` mutation.""" +input DeleteProposalReactionInput { + """ + An arbitrary 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! } -""" -Represents an update to a `IntegrationProvider`. Fields that are set will be updated. -""" -input IntegrationProviderPatch { +"""The output of our delete `ProposalReaction` mutation.""" +type DeleteProposalReactionPayload { """ - Brand metadata: colors, fonts, and other provider-specific styling. Not a foreign key. + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - brand: JSON - - """Browser category (e.g. email, database, storage, ai, analytics)""" - category: String - createdAt: Datetime + clientMutationId: String - """Short description of what this integration provides and when to use it""" - description: String + """The `ProposalReaction` that was deleted by this mutation.""" + proposalReaction: ProposalReaction - """Icon identifier for the UI (e.g. mail, database, cloud)""" - icon: String - id: UUID + """An edge for our `ProposalReaction`. May be used by Relay 1.""" + proposalReactionEdge( + """The method to use when ordering `ProposalReaction`.""" + orderBy: [ProposalReactionOrderBy!]! = [PRIMARY_KEY_ASC] + ): ProposalReactionEdge """ - Provider logo as an image domain value (url, id, key, bucket, provider) + Our root query field type. Allows us to run any query from our mutation payload. """ - logo: ConstructiveInternalTypeImage + query: Query +} +"""All input for the `deleteProposalReview` mutation.""" +input DeleteProposalReviewInput { """ - Upload for Provider logo as an image domain value (url, id, key, bucket, provider) + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - logoUpload: Upload - - """Human-readable brand name (e.g. 'Mailgun', 'PostgreSQL')""" - name: String + clientMutationId: String + id: UUID! +} +"""The output of our delete `ProposalReview` mutation.""" +type DeleteProposalReviewPayload { """ - Canonical config requirements for this provider: array of (name, required, provider) tuples. Used by the UI to auto-fill function/resource required_configs. + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - requiredConfigs: [ResourceRequirementInput] + clientMutationId: String + + """The `ProposalReview` that was deleted by this mutation.""" + proposalReview: ProposalReview + + """An edge for our `ProposalReview`. May be used by Relay 1.""" + proposalReviewEdge( + """The method to use when ordering `ProposalReview`.""" + orderBy: [ProposalReviewOrderBy!]! = [PRIMARY_KEY_ASC] + ): ProposalReviewEdge """ - Canonical secret requirements for this provider: array of (name, required, provider) tuples. Used by the UI to auto-fill function/resource required_secrets. + Our root query field type. Allows us to run any query from our mutation payload. """ - requiredSecrets: [ResourceRequirementInput] + query: Query +} +"""All input for the `deleteProposalsChunk` mutation.""" +input DeleteProposalsChunkInput { """ - Stable URL-safe identifier for the provider. Other tables match by this string, not by FK. + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - slug: String - updatedAt: Datetime + clientMutationId: String + id: UUID! } -""" -An interval of time that has passed where the smallest distinct unit is a second. -""" -type Interval { - """A quantity of days.""" - days: Int - - """A quantity of hours.""" - hours: Int +"""The output of our delete `ProposalsChunk` mutation.""" +type DeleteProposalsChunkPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """A quantity of minutes.""" - minutes: Int + """The `ProposalsChunk` that was deleted by this mutation.""" + proposalsChunk: ProposalsChunk - """A quantity of months.""" - months: Int + """An edge for our `ProposalsChunk`. May be used by Relay 1.""" + proposalsChunkEdge( + """The method to use when ordering `ProposalsChunk`.""" + orderBy: [ProposalsChunkOrderBy!]! = [PRIMARY_KEY_ASC] + ): ProposalsChunkEdge """ - A quantity of seconds. This is the only non-integer field, as all the other - fields will dump their overflow into a smaller unit of time. Intervals don’t - have a smaller unit than seconds. + Our root query field type. Allows us to run any query from our mutation payload. """ - seconds: Float - - """A quantity of years.""" - years: Int + query: Query } -""" -A filter to be used against Interval fields. All fields are combined with a logical ‘and.’ -""" -input IntervalFilter { +"""All input for the `deleteRegistryBinding` mutation.""" +input DeleteRegistryBindingInput { """ - Not equal to the specified value, treating null like an ordinary value. + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - distinctFrom: IntervalInput + clientMutationId: String + id: UUID! +} - """Equal to the specified value.""" - equalTo: IntervalInput +"""The output of our delete `RegistryBinding` mutation.""" +type DeleteRegistryBindingPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """Greater than the specified value.""" - greaterThan: IntervalInput + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query - """Greater than or equal to the specified value.""" - greaterThanOrEqualTo: IntervalInput + """The `RegistryBinding` that was deleted by this mutation.""" + registryBinding: RegistryBinding - """Included in the specified list.""" - in: [IntervalInput!] + """An edge for our `RegistryBinding`. May be used by Relay 1.""" + registryBindingEdge( + """The method to use when ordering `RegistryBinding`.""" + orderBy: [RegistryBindingOrderBy!]! = [PRIMARY_KEY_ASC] + ): RegistryBindingEdge +} +"""All input for the `deleteRegistryGrant` mutation.""" +input DeleteRegistryGrantInput { """ - Is null (if `true` is specified) or is not null (if `false` is specified). + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - isNull: Boolean + clientMutationId: String + id: UUID! +} - """Less than the specified value.""" - lessThan: IntervalInput +"""The output of our delete `RegistryGrant` mutation.""" +type DeleteRegistryGrantPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """Less than or equal to the specified value.""" - lessThanOrEqualTo: IntervalInput + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query - """Equal to the specified value, treating null like an ordinary value.""" - notDistinctFrom: IntervalInput + """The `RegistryGrant` that was deleted by this mutation.""" + registryGrant: RegistryGrant - """Not equal to the specified value.""" - notEqualTo: IntervalInput + """An edge for our `RegistryGrant`. May be used by Relay 1.""" + registryGrantEdge( + """The method to use when ordering `RegistryGrant`.""" + orderBy: [RegistryGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): RegistryGrantEdge +} - """Not included in the specified list.""" - notIn: [IntervalInput!] +"""All input for the `deleteRegistry` mutation.""" +input DeleteRegistryInput { + """ + An arbitrary 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 interval of time that has passed where the smallest distinct unit is a second. -""" -input IntervalInput { - """A quantity of days.""" - days: Int +"""The output of our delete `Registry` mutation.""" +type DeleteRegistryPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """A quantity of hours.""" - hours: Int + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query - """A quantity of minutes.""" - minutes: Int + """The `Registry` that was deleted by this mutation.""" + registry: Registry - """A quantity of months.""" - months: Int + """An edge for our `Registry`. May be used by Relay 1.""" + registryEdge( + """The method to use when ordering `Registry`.""" + orderBy: [RegistryOrderBy!]! = [PRIMARY_KEY_ASC] + ): RegistryEdge +} +"""All input for the `deleteRepositoryEvent` mutation.""" +input DeleteRepositoryEventInput { """ - A quantity of seconds. This is the only non-integer field, as all the other - fields will dump their overflow into a smaller unit of time. Intervals don’t - have a smaller unit than seconds. + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - seconds: Float - - """A quantity of years.""" - years: Int + clientMutationId: String + id: UUID! } -""" -Represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). -""" -scalar JSON +"""The output of our delete `RepositoryEvent` mutation.""" +type DeleteRepositoryEventPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String -""" -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 + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query - """Contains the specified JSON.""" - contains: JSON + """The `RepositoryEvent` that was deleted by this mutation.""" + repositoryEvent: RepositoryEvent - """Contains all of the specified keys.""" - containsAllKeys: [String!] + """An edge for our `RepositoryEvent`. May be used by Relay 1.""" + repositoryEventEdge( + """The method to use when ordering `RepositoryEvent`.""" + orderBy: [RepositoryEventOrderBy!]! = [PRIMARY_KEY_ASC] + ): RepositoryEventEdge +} - """Contains any of the specified keys.""" - containsAnyKeys: [String!] +"""All input for the `deleteRepository` mutation.""" +input DeleteRepositoryInput { + """ + An arbitrary 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! +} - """Contains the specified key.""" - containsKey: String +"""The output of our delete `Repository` mutation.""" +type DeleteRepositoryPayload { + """ + The 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 equal to the specified value, treating null like an ordinary value. + Our root query field type. Allows us to run any query from our mutation payload. """ - distinctFrom: JSON + query: Query - """Equal to the specified value.""" - equalTo: JSON + """The `Repository` that was deleted by this mutation.""" + repository: Repository - """Greater than the specified value.""" - greaterThan: JSON + """An edge for our `Repository`. May be used by Relay 1.""" + repositoryEdge( + """The method to use when ordering `Repository`.""" + orderBy: [RepositoryOrderBy!]! = [PRIMARY_KEY_ASC] + ): RepositoryEdge +} - """Greater than or equal to the specified value.""" - greaterThanOrEqualTo: JSON +"""All input for the `deleteRepositoryRequiredCheck` mutation.""" +input DeleteRepositoryRequiredCheckInput { + """ + An arbitrary 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! +} - """Included in the specified list.""" - in: [JSON!] +"""The output of our delete `RepositoryRequiredCheck` mutation.""" +type DeleteRepositoryRequiredCheckPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String """ - Is null (if `true` is specified) or is not null (if `false` is specified). + Our root query field type. Allows us to run any query from our mutation payload. """ - isNull: Boolean + query: Query - """Less than the specified value.""" - lessThan: JSON + """The `RepositoryRequiredCheck` that was deleted by this mutation.""" + repositoryRequiredCheck: RepositoryRequiredCheck - """Less than or equal to the specified value.""" - lessThanOrEqualTo: JSON + """An edge for our `RepositoryRequiredCheck`. May be used by Relay 1.""" + repositoryRequiredCheckEdge( + """The method to use when ordering `RepositoryRequiredCheck`.""" + orderBy: [RepositoryRequiredCheckOrderBy!]! = [PRIMARY_KEY_ASC] + ): RepositoryRequiredCheckEdge +} - """Equal to the specified value, treating null like an ordinary value.""" - notDistinctFrom: JSON +"""All input for the `deleteRepositoryWorkflow` mutation.""" +input DeleteRepositoryWorkflowInput { + """ + An arbitrary 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! +} - """Not equal to the specified value.""" - notEqualTo: JSON +"""The output of our delete `RepositoryWorkflow` mutation.""" +type DeleteRepositoryWorkflowPayload { + """ + The 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: [JSON!] -} + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query -"""A belongs-to (forward FK) relation""" -type MetaBelongsToRelation { - fieldName: String - isUnique: Boolean! - keys: [MetaField!]! - references: MetaRefTable! - type: String -} + """The `RepositoryWorkflow` that was deleted by this mutation.""" + repositoryWorkflow: RepositoryWorkflow -"""Table constraints""" -type MetaConstraints { - foreignKey: [MetaForeignKeyConstraint!]! - primaryKey: MetaPrimaryKeyConstraint - unique: [MetaUniqueConstraint!]! + """An edge for our `RepositoryWorkflow`. May be used by Relay 1.""" + repositoryWorkflowEdge( + """The method to use when ordering `RepositoryWorkflow`.""" + orderBy: [RepositoryWorkflowOrderBy!]! = [PRIMARY_KEY_ASC] + ): RepositoryWorkflowEdge } -"""Information about a PostgreSQL enum type""" -type MetaEnum { - """The PostgreSQL enum type name""" - name: String! - - """Allowed values for this enum""" - values: [String!]! +"""All input for the `deleteResourceDefinition` mutation.""" +input DeleteResourceDefinitionInput { + """ + An arbitrary 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! } -"""Information about a table field/column""" -type MetaField { - """PostgreSQL column name""" - columnName: String! - description: String +"""The output of our delete `ResourceDefinition` mutation.""" +type DeleteResourceDefinitionPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """Enum metadata if this field has an enum type""" - enumValues: MetaEnum - hasDefault: Boolean! - isForeignKey: Boolean! - isNotNull: Boolean! - isPrimaryKey: Boolean! + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query - """Final GraphQL field name""" - name: String! - type: MetaType! -} + """The `ResourceDefinition` that was deleted by this mutation.""" + resourceDefinition: ResourceDefinition -"""Information about a foreign key constraint""" -type MetaForeignKeyConstraint { - fields: [MetaField!]! - name: String! - refFields: [MetaField!] - refTable: MetaRefTable - referencedFields: [String!]! - referencedTable: String! + """An edge for our `ResourceDefinition`. May be used by Relay 1.""" + resourceDefinitionEdge( + """The method to use when ordering `ResourceDefinition`.""" + orderBy: [ResourceDefinitionOrderBy!]! = [PRIMARY_KEY_ASC] + ): ResourceDefinitionEdge } -"""A has-one or has-many (reverse FK) relation""" -type MetaHasRelation { - fieldName: String - isUnique: Boolean! - keys: [MetaField!]! - referencedBy: MetaRefTable! - type: String -} +"""All input for the `deleteResourceEvent` mutation.""" +input DeleteResourceEventInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String -"""i18n metadata for a table with @i18n tag""" -type MetaI18n { - """Fields that are translatable""" - translatableFields: [MetaI18nField!]! + """Event timestamp (partition key)""" + createdAt: Datetime! - """Name of the translation table""" - translationTable: String! + """Unique event identifier""" + id: UUID! } -"""A translatable field""" -type MetaI18nField { - """GraphQL field name""" - name: String! +"""The output of our delete `ResourceEvent` mutation.""" +type DeleteResourceEventPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """PostgreSQL column type (text, citext)""" - type: String! -} + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query -"""Information about a database index""" -type MetaIndex { - columns: [String!]! - fields: [MetaField!] - isPrimary: Boolean! - isUnique: Boolean! - name: String! -} + """The `ResourceEvent` that was deleted by this mutation.""" + resourceEvent: ResourceEvent -"""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 + """An edge for our `ResourceEvent`. May be used by Relay 1.""" + resourceEventEdge( + """The method to use when ordering `ResourceEvent`.""" + orderBy: [ResourceEventOrderBy!]! = [PRIMARY_KEY_ASC] + ): ResourceEventEdge } -"""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 +"""All input for the `deleteResource` mutation.""" +input DeleteResourceInput { + """ + An arbitrary 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! } -"""Information about a primary key constraint""" -type MetaPrimaryKeyConstraint { - fields: [MetaField!]! - name: String! +"""All input for the `deleteResourceInstallation` mutation.""" +input DeleteResourceInstallationInput { + """ + An arbitrary 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! } -"""Table query/mutation names""" -type MetaQuery { - all: String - create: String - delete: String - one: String - update: String -} +"""The output of our delete `ResourceInstallation` mutation.""" +type DeleteResourceInstallationPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String -"""Realtime metadata for a table with @realtime tag""" -type MetaRealtime { - """The generated subscription field name (e.g. onPostChanged)""" - subscriptionFieldName: String! -} + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query -"""Reference to a related table""" -type MetaRefTable { - name: String! -} + """The `ResourceInstallation` that was deleted by this mutation.""" + resourceInstallation: ResourceInstallation -"""Table relations""" -type MetaRelations { - belongsTo: [MetaBelongsToRelation!]! - has: [MetaHasRelation!]! - hasMany: [MetaHasRelation!]! - hasOne: [MetaHasRelation!]! - manyToMany: [MetaManyToManyRelation!]! + """An edge for our `ResourceInstallation`. May be used by Relay 1.""" + resourceInstallationEdge( + """The method to use when ordering `ResourceInstallation`.""" + orderBy: [ResourceInstallationOrderBy!]! = [PRIMARY_KEY_ASC] + ): ResourceInstallationEdge } -""" -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 +"""The output of our delete `Resource` mutation.""" +type DeleteResourcePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """For 'ltree': values are dot-separated path strings.""" - dotPath: Boolean + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query - """For 'vector': element scalar (e.g. 'float').""" - elementType: String + """The `Resource` that was deleted by this mutation.""" + resource: Resource - """For 'geojson': Point/LineString/Polygon/…, else null.""" - geometrySubtype: String + """An edge for our `Resource`. May be used by Relay 1.""" + resourceEdge( + """The method to use when ordering `Resource`.""" + orderBy: [ResourceOrderBy!]! = [PRIMARY_KEY_ASC] + ): ResourceEdge +} +"""All input for the `deleteResourceStatusCheck` mutation.""" +input DeleteResourceStatusCheckInput { """ - Machine kind: bigint, datetime, date, time, interval, uuid, geojson, point, inet, ltree, vector, bytea, or composite. + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - kind: String! - - """For 'geojson': spatial reference id, else null.""" - srid: Int -} + clientMutationId: String -"""Root meta schema type""" -type MetaSchema { - tables: [MetaTable!]! + """Unique status check identifier""" + id: UUID! } -"""Provisioning scope metadata for a table""" -type MetaScope { - """SQL name of the entity table for entity scopes, else null""" - entityTable: String +"""The output of our delete `ResourceStatusCheck` mutation.""" +type DeleteResourceStatusCheckPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String """ - Inflected scope key column (e.g. databaseId, orgId), null for global tiers + Our root query field type. Allows us to run any query from our mutation payload. """ - keyColumn: String + query: Query + + """The `ResourceStatusCheck` that was deleted by this mutation.""" + resourceStatusCheck: ResourceStatusCheck + + """An edge for our `ResourceStatusCheck`. May be used by Relay 1.""" + resourceStatusCheckEdge( + """The method to use when ordering `ResourceStatusCheck`.""" + orderBy: [ResourceStatusCheckOrderBy!]! = [PRIMARY_KEY_ASC] + ): ResourceStatusCheckEdge +} +"""All input for the `deleteResourceUsageLog` mutation.""" +input DeleteResourceUsageLogInput { """ - Provisioning scope: 'platform', 'app', 'database', or an entity scope (e.g. 'org') + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - scope: String! + clientMutationId: String - """Provenance of the scope metadata (always 'smartTag')""" - source: String! + """Unique sample identifier""" + id: UUID! - """Coarse bucket: 'global', 'database', or 'entity'""" - tier: String! + """Sample timestamp (partition key) — end of the measured interval""" + sampledAt: Datetime! } -"""Search metadata for a table""" -type MetaSearch { - """Active search algorithms on this table""" - algorithms: [String!]! +"""The output of our delete `ResourceUsageLog` mutation.""" +type DeleteResourceUsageLogPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """Searchable columns with their algorithm""" - columns: [MetaSearchColumn!]! + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query - """Per-table search configuration""" - config: MetaSearchConfig + """The `ResourceUsageLog` that was deleted by this mutation.""" + resourceUsageLog: ResourceUsageLog - """Whether unifiedSearch composite filter is available""" - hasUnifiedSearch: Boolean! + """An edge for our `ResourceUsageLog`. May be used by Relay 1.""" + resourceUsageLogEdge( + """The method to use when ordering `ResourceUsageLog`.""" + orderBy: [ResourceUsageLogOrderBy!]! = [PRIMARY_KEY_ASC] + ): ResourceUsageLogEdge } -"""A searchable column with its algorithm""" -type MetaSearchColumn { - """Search algorithm: tsvector, bm25, trgm, or vector""" - algorithm: String! +"""All input for the `deleteResourceUsageSummary` mutation.""" +input DeleteResourceUsageSummaryInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String - """Column name (camelCase)""" - name: String! + """Day this summary covers (partition key)""" + date: Date! + + """Unique usage summary identifier""" + id: UUID! } -"""Per-table search configuration from @searchConfig smart tag""" -type MetaSearchConfig { - """Exponential decay factor per day""" - boostRecencyDecay: Float +"""The output of our delete `ResourceUsageSummary` mutation.""" +type DeleteResourceUsageSummaryPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """Field used for recency decay""" - boostRecencyField: String + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query - """Whether recency boosting is enabled""" - boostRecent: Boolean! + """The `ResourceUsageSummary` that was deleted by this mutation.""" + resourceUsageSummary: ResourceUsageSummary - """JSON-encoded per-adapter score weights""" - weights: String + """An edge for our `ResourceUsageSummary`. May be used by Relay 1.""" + resourceUsageSummaryEdge( + """The method to use when ordering `ResourceUsageSummary`.""" + orderBy: [ResourceUsageSummaryOrderBy!]! = [PRIMARY_KEY_ASC] + ): ResourceUsageSummaryEdge } -"""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! +"""All input for the `deleteWebhookEndpoint` mutation.""" +input DeleteWebhookEndpointInput { + """ + An arbitrary 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! } -"""Information about a database table""" -type MetaTable { - constraints: MetaConstraints! - fields: [MetaField!]! - foreignKeyConstraints: [MetaForeignKeyConstraint!]! +"""The output of our delete `WebhookEndpoint` mutation.""" +type DeleteWebhookEndpointPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """i18n metadata (null if no @i18n tag)""" - i18n: MetaI18n - indexes: [MetaIndex!]! - inflection: MetaInflection! + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query - """Final GraphQL output type name""" - name: String! - primaryKeyConstraints: [MetaPrimaryKeyConstraint!]! - query: MetaQuery! + """The `WebhookEndpoint` that was deleted by this mutation.""" + webhookEndpoint: WebhookEndpoint - """Realtime metadata (null if no @realtime tag)""" - realtime: MetaRealtime - relations: MetaRelations! - schemaName: String! + """An edge for our `WebhookEndpoint`. May be used by Relay 1.""" + webhookEndpointEdge( + """The method to use when ordering `WebhookEndpoint`.""" + orderBy: [WebhookEndpointOrderBy!]! = [PRIMARY_KEY_ASC] + ): WebhookEndpointEdge +} - """Provisioning scope metadata (null if no @scope tag)""" - scope: MetaScope +"""All input for the `deleteWebhookEvent` mutation.""" +input DeleteWebhookEventInput { + """ + An arbitrary 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! +} - """Search metadata (null if no search configured)""" - search: MetaSearch +"""The output of our delete `WebhookEvent` mutation.""" +type DeleteWebhookEventPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """Storage metadata (null if not a storage table)""" - storage: MetaStorage + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query - """PostgreSQL table name""" - tableName: String! - uniqueConstraints: [MetaUniqueConstraint!]! + """The `WebhookEvent` that was deleted by this mutation.""" + webhookEvent: WebhookEvent + + """An edge for our `WebhookEvent`. May be used by Relay 1.""" + webhookEventEdge( + """The method to use when ordering `WebhookEvent`.""" + orderBy: [WebhookEventOrderBy!]! = [PRIMARY_KEY_ASC] + ): WebhookEventEdge } -"""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! -} +"""A full-text search tsvector value represented as a string.""" +scalar FullText """ -The root mutation type which contains root level fields which mutate data. +A filter to be used against FullText fields. All fields are combined with a logical ‘and.’ """ -type Mutation { - addEdge( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: AddEdgeInput! - ): AddEdgePayload - addEdgeAndSave( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: AddEdgeAndSaveInput! - ): AddEdgeAndSavePayload - addNode( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: AddNodeInput! - ): AddNodePayload - addNodeAndSave( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: AddNodeAndSaveInput! - ): AddNodeAndSavePayload - copyGraph( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CopyGraphInput! - ): CopyGraphPayload +input FullTextFilter { + """ + Not equal to the specified value, treating null like an ordinary value. + """ + distinctFrom: FullText - """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 + """Equal to the specified value.""" + equalTo: FullText - """Creates a single `DbPreset`.""" - createDbPreset( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateDbPresetInput! - ): CreateDbPresetPayload + """Included in the specified list.""" + in: [FullText!] - """Creates a single `FunctionApiBinding`.""" - createFunctionApiBinding( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateFunctionApiBindingInput! - ): CreateFunctionApiBindingPayload + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean - """Creates a single `FunctionCapabilityBinding`.""" - createFunctionCapabilityBinding( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateFunctionCapabilityBindingInput! - ): CreateFunctionCapabilityBindingPayload + """Performs a full text search on the field.""" + matches: String - """Creates a single `FunctionDefinition`.""" - createFunctionDefinition( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateFunctionDefinitionInput! - ): CreateFunctionDefinitionPayload + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: FullText - """Creates a single `FunctionDeployment`.""" - createFunctionDeployment( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateFunctionDeploymentInput! - ): CreateFunctionDeploymentPayload + """Not equal to the specified value.""" + notEqualTo: FullText - """Creates a single `FunctionDeploymentEvent`.""" - createFunctionDeploymentEvent( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateFunctionDeploymentEventInput! - ): CreateFunctionDeploymentEventPayload + """Not included in the specified list.""" + notIn: [FullText!] +} - """Creates a single `FunctionExecutionLog`.""" - createFunctionExecutionLog( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateFunctionExecutionLogInput! - ): CreateFunctionExecutionLogPayload - createFunctionGraph( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateFunctionGraphInput! - ): CreateFunctionGraphPayload +""" +Join table binding function definitions to API endpoints with per-binding alias and config +""" +type FunctionApiBinding { + """Binding alias (e.g. default, staging, production)""" + alias: String! - """Creates a single `FunctionGraphCommit`.""" - createFunctionGraphCommit( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateFunctionGraphCommitInput! - ): CreateFunctionGraphCommitPayload + """API endpoint this function is bound to""" + apiId: UUID! - """Creates a single `FunctionGraphExecution`.""" - createFunctionGraphExecution( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateFunctionGraphExecutionInput! - ): CreateFunctionGraphExecutionPayload + """Per-binding configuration (overrides, routing rules, etc.)""" + config: JSON! + createdAt: Datetime - """Creates a single `FunctionGraphExecutionNodeState`.""" - createFunctionGraphExecutionNodeState( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateFunctionGraphExecutionNodeStateInput! - ): CreateFunctionGraphExecutionNodeStatePayload + """ + Reads a single `FunctionDefinition` that is related to this `FunctionApiBinding`. + """ + functionDefinition: FunctionDefinition - """Creates a single `FunctionGraphExecutionOutput`.""" - createFunctionGraphExecutionOutput( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateFunctionGraphExecutionOutputInput! - ): CreateFunctionGraphExecutionOutputPayload + """Function definition this binding belongs to""" + functionDefinitionId: UUID! - """Creates a single `FunctionGraphObject`.""" - createFunctionGraphObject( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateFunctionGraphObjectInput! - ): CreateFunctionGraphObjectPayload + """Reads and enables pagination through a set of `FunctionInvocation`.""" + functionInvocationsByApiBindingId( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """Creates a single `FunctionGraphRef`.""" - createFunctionGraphRef( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateFunctionGraphRefInput! - ): CreateFunctionGraphRefPayload + """Read all values in the set before (above) this cursor.""" + before: Cursor - """Creates a single `FunctionGraphStore`.""" - createFunctionGraphStore( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateFunctionGraphStoreInput! - ): CreateFunctionGraphStorePayload + """Only read the first `n` values of the set.""" + first: Int - """Creates a single `FunctionInvocation`.""" - createFunctionInvocation( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateFunctionInvocationInput! - ): CreateFunctionInvocationPayload + """Only read the last `n` values of the set.""" + last: Int - """Creates a single `FunctionInvocationAttempt`.""" - createFunctionInvocationAttempt( """ - 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: CreateFunctionInvocationAttemptInput! - ): CreateFunctionInvocationAttemptPayload + offset: Int - """Creates a single `InfraCommit`.""" - createInfraCommit( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateInfraCommitInput! - ): CreateInfraCommitPayload + """The method to use when ordering `FunctionInvocation`.""" + orderBy: [FunctionInvocationOrderBy!] = [PRIMARY_KEY_ASC] - """Creates a single `InfraObject`.""" - createInfraObject( """ - 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: CreateInfraObjectInput! - ): CreateInfraObjectPayload + where: FunctionInvocationFilter + ): FunctionInvocationConnection! + id: UUID! + updatedAt: Datetime +} - """Creates a single `InfraRef`.""" - createInfraRef( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateInfraRefInput! - ): CreateInfraRefPayload +"""A connection to a list of `FunctionApiBinding` values.""" +type FunctionApiBindingConnection { + """ + A list of edges which contains the `FunctionApiBinding` and cursor to aid in pagination. + """ + edges: [FunctionApiBindingEdge]! - """Creates a single `InfraStore`.""" - createInfraStore( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateInfraStoreInput! - ): CreateInfraStorePayload + """A list of `FunctionApiBinding` objects.""" + nodes: [FunctionApiBinding]! - """Creates a single `IntegrationProvider`.""" - createIntegrationProvider( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateIntegrationProviderInput! - ): CreateIntegrationProviderPayload + """Information to aid in pagination.""" + pageInfo: PageInfo! - """Creates a single `Namespace`.""" - createNamespace( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateNamespaceInput! - ): CreateNamespacePayload + """ + The count of *all* `FunctionApiBinding` you could get from the connection. + """ + totalCount: Int! +} - """Creates a single `NamespaceEvent`.""" - createNamespaceEvent( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateNamespaceEventInput! - ): CreateNamespaceEventPayload +"""A `FunctionApiBinding` edge in the connection.""" +type FunctionApiBindingEdge { + """A cursor for use in pagination.""" + cursor: Cursor - """Creates a single `PlatformFunctionApiBinding`.""" - createPlatformFunctionApiBinding( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreatePlatformFunctionApiBindingInput! - ): CreatePlatformFunctionApiBindingPayload + """The `FunctionApiBinding` at the end of the edge.""" + node: FunctionApiBinding +} - """Creates a single `PlatformFunctionCapabilityBinding`.""" - createPlatformFunctionCapabilityBinding( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreatePlatformFunctionCapabilityBindingInput! - ): CreatePlatformFunctionCapabilityBindingPayload +""" +A filter to be used against `FunctionApiBinding` object types. All fields are combined with a logical ‘and.’ +""" +input FunctionApiBindingFilter { + """Filter by the object’s `alias` field.""" + alias: StringFilter - """Creates a single `PlatformFunctionDefinition`.""" - createPlatformFunctionDefinition( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreatePlatformFunctionDefinitionInput! - ): CreatePlatformFunctionDefinitionPayload + """Checks for all expressions in this list.""" + and: [FunctionApiBindingFilter!] - """Creates a single `PlatformFunctionDeployment`.""" - createPlatformFunctionDeployment( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreatePlatformFunctionDeploymentInput! - ): CreatePlatformFunctionDeploymentPayload + """Filter by the object’s `apiId` field.""" + apiId: UUIDFilter - """Creates a single `PlatformFunctionDeploymentEvent`.""" - createPlatformFunctionDeploymentEvent( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreatePlatformFunctionDeploymentEventInput! - ): CreatePlatformFunctionDeploymentEventPayload + """Filter by the object’s `config` field.""" + config: JSONFilter - """Creates a single `PlatformFunctionExecutionLog`.""" - createPlatformFunctionExecutionLog( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreatePlatformFunctionExecutionLogInput! - ): CreatePlatformFunctionExecutionLogPayload + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter - """Creates a single `PlatformFunctionInvocation`.""" - createPlatformFunctionInvocation( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreatePlatformFunctionInvocationInput! - ): CreatePlatformFunctionInvocationPayload + """Filter by the object’s `functionDefinition` relation.""" + functionDefinition: FunctionDefinitionFilter - """Creates a single `PlatformFunctionInvocationAttempt`.""" - createPlatformFunctionInvocationAttempt( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreatePlatformFunctionInvocationAttemptInput! - ): CreatePlatformFunctionInvocationAttemptPayload + """Filter by the object’s `functionDefinitionId` field.""" + functionDefinitionId: UUIDFilter - """Creates a single `PlatformInfraCommit`.""" - createPlatformInfraCommit( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreatePlatformInfraCommitInput! - ): CreatePlatformInfraCommitPayload + """Filter by the object’s `functionInvocationsByApiBindingId` relation.""" + functionInvocationsByApiBindingId: FunctionApiBindingToManyFunctionInvocationFilter - """Creates a single `PlatformInfraObject`.""" - createPlatformInfraObject( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreatePlatformInfraObjectInput! - ): CreatePlatformInfraObjectPayload + """`functionInvocationsByApiBindingId` exist.""" + functionInvocationsByApiBindingIdExist: Boolean - """Creates a single `PlatformInfraRef`.""" - createPlatformInfraRef( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreatePlatformInfraRefInput! - ): CreatePlatformInfraRefPayload + """Filter by the object’s `id` field.""" + id: UUIDFilter - """Creates a single `PlatformInfraStore`.""" - createPlatformInfraStore( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreatePlatformInfraStoreInput! - ): CreatePlatformInfraStorePayload + """Negates the expression.""" + not: FunctionApiBindingFilter - """Creates a single `PlatformNamespace`.""" - createPlatformNamespace( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreatePlatformNamespaceInput! - ): CreatePlatformNamespacePayload + """Checks for any expressions in this list.""" + or: [FunctionApiBindingFilter!] - """Creates a single `PlatformNamespaceEvent`.""" - createPlatformNamespaceEvent( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreatePlatformNamespaceEventInput! - ): CreatePlatformNamespaceEventPayload + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter +} - """Creates a single `PlatformResource`.""" - createPlatformResource( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreatePlatformResourceInput! - ): CreatePlatformResourcePayload +"""An input for mutations affecting `FunctionApiBinding`""" +input FunctionApiBindingInput { + """Binding alias (e.g. default, staging, production)""" + alias: String - """Creates a single `PlatformResourceDefinition`.""" - createPlatformResourceDefinition( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreatePlatformResourceDefinitionInput! - ): CreatePlatformResourceDefinitionPayload + """API endpoint this function is bound to""" + apiId: UUID! - """Creates a single `PlatformResourceEvent`.""" - createPlatformResourceEvent( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreatePlatformResourceEventInput! - ): CreatePlatformResourceEventPayload + """Per-binding configuration (overrides, routing rules, etc.)""" + config: JSON + createdAt: Datetime - """Creates a single `PlatformResourceInstallation`.""" - createPlatformResourceInstallation( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreatePlatformResourceInstallationInput! - ): CreatePlatformResourceInstallationPayload + """Function definition this binding belongs to""" + functionDefinitionId: UUID! + id: UUID + updatedAt: Datetime +} - """Creates a single `PlatformResourceStatusCheck`.""" - createPlatformResourceStatusCheck( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreatePlatformResourceStatusCheckInput! - ): CreatePlatformResourceStatusCheckPayload +"""Methods to use when ordering `FunctionApiBinding`.""" +enum FunctionApiBindingOrderBy { + ALIAS_ASC + ALIAS_DESC + API_ID_ASC + API_ID_DESC + CONFIG_ASC + CONFIG_DESC + CREATED_AT_ASC + CREATED_AT_DESC + FUNCTION_DEFINITION_ID_ASC + FUNCTION_DEFINITION_ID_DESC + ID_ASC + ID_DESC + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC +} - """Creates a single `PlatformResourceUsageLog`.""" - createPlatformResourceUsageLog( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreatePlatformResourceUsageLogInput! - ): CreatePlatformResourceUsageLogPayload +""" +Represents an update to a `FunctionApiBinding`. Fields that are set will be updated. +""" +input FunctionApiBindingPatch { + """Binding alias (e.g. default, staging, production)""" + alias: String - """Creates a single `PlatformResourceUsageSummary`.""" - createPlatformResourceUsageSummary( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreatePlatformResourceUsageSummaryInput! - ): CreatePlatformResourceUsageSummaryPayload + """API endpoint this function is bound to""" + apiId: UUID - """Creates a single `PlatformWebhookEndpoint`.""" - createPlatformWebhookEndpoint( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreatePlatformWebhookEndpointInput! - ): CreatePlatformWebhookEndpointPayload + """Per-binding configuration (overrides, routing rules, etc.)""" + config: JSON + createdAt: Datetime - """Creates a single `PlatformWebhookEvent`.""" - createPlatformWebhookEvent( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreatePlatformWebhookEventInput! - ): CreatePlatformWebhookEventPayload + """Function definition this binding belongs to""" + functionDefinitionId: UUID + id: UUID + updatedAt: Datetime +} - """Creates a single `Resource`.""" - createResource( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateResourceInput! - ): CreateResourcePayload +""" +A filter to be used against many `FunctionInvocation` object types. All fields are combined with a logical ‘and.’ +""" +input FunctionApiBindingToManyFunctionInvocationFilter { + """Filters to entities where every related entity matches.""" + every: FunctionInvocationFilter - """Creates a single `ResourceDefinition`.""" - createResourceDefinition( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateResourceDefinitionInput! - ): CreateResourceDefinitionPayload + """Filters to entities where no related entity matches.""" + none: FunctionInvocationFilter - """Creates a single `ResourceEvent`.""" - createResourceEvent( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateResourceEventInput! - ): CreateResourceEventPayload + """Filters to entities where at least one related entity matches.""" + some: FunctionInvocationFilter +} - """Creates a single `ResourceInstallation`.""" - createResourceInstallation( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateResourceInstallationInput! - ): CreateResourceInstallationPayload +""" +Capability bindings — declarative grants of typed resource capabilities (buckets) to function/graph holders per lifecycle +""" +type FunctionCapabilityBinding { + """Bucket this capability targets (exactly one typed target is set)""" + bucketId: UUID + createdAt: Datetime - """Creates a single `ResourceStatusCheck`.""" - createResourceStatusCheck( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateResourceStatusCheckInput! - ): CreateResourceStatusCheckPayload + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! - """Creates a single `ResourceUsageLog`.""" - createResourceUsageLog( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateResourceUsageLogInput! - ): CreateResourceUsageLogPayload + """ + Reads a single `FunctionDefinition` that is related to this `FunctionCapabilityBinding`. + """ + function: FunctionDefinition - """Creates a single `ResourceUsageSummary`.""" - createResourceUsageSummary( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateResourceUsageSummaryInput! - ): CreateResourceUsageSummaryPayload + """ + Function definition holding this capability (exactly one of function_id / graph_id is set) + """ + functionId: UUID - """Creates a single `WebhookEndpoint`.""" - createWebhookEndpoint( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateWebhookEndpointInput! - ): CreateWebhookEndpointPayload + """ + Flow graph holding this capability (exactly one of function_id / graph_id is set) + """ + graphId: UUID + id: UUID! - """Creates a single `WebhookEvent`.""" - createWebhookEvent( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateWebhookEventInput! - ): CreateWebhookEventPayload + """ + Runtime handle the holder addresses this capability by (e.g. default, scratch) + """ + key: String! - """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 + """ + Lifecycle the capability applies to: deployment (build/deploy time), execution (per invocation), root_execution (root of a graph execution tree) + """ + lifecycle: String! - """Deletes a single `DbPreset` using a unique key.""" - deleteDbPreset( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteDbPresetInput! - ): DeleteDbPresetPayload + """Per-binding annotations (no runtime semantics)""" + metadata: JSON + updatedAt: Datetime +} - """Deletes a single `FunctionApiBinding` using a unique key.""" - deleteFunctionApiBinding( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteFunctionApiBindingInput! - ): DeleteFunctionApiBindingPayload +"""A connection to a list of `FunctionCapabilityBinding` values.""" +type FunctionCapabilityBindingConnection { + """ + A list of edges which contains the `FunctionCapabilityBinding` and cursor to aid in pagination. + """ + edges: [FunctionCapabilityBindingEdge]! - """Deletes a single `FunctionCapabilityBinding` using a unique key.""" - deleteFunctionCapabilityBinding( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteFunctionCapabilityBindingInput! - ): DeleteFunctionCapabilityBindingPayload + """A list of `FunctionCapabilityBinding` objects.""" + nodes: [FunctionCapabilityBinding]! - """Deletes a single `FunctionDefinition` using a unique key.""" - deleteFunctionDefinition( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteFunctionDefinitionInput! - ): DeleteFunctionDefinitionPayload + """Information to aid in pagination.""" + pageInfo: PageInfo! - """Deletes a single `FunctionDeployment` using a unique key.""" - deleteFunctionDeployment( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteFunctionDeploymentInput! - ): DeleteFunctionDeploymentPayload + """ + The count of *all* `FunctionCapabilityBinding` you could get from the connection. + """ + totalCount: Int! +} - """Deletes a single `FunctionDeploymentEvent` using a unique key.""" - deleteFunctionDeploymentEvent( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteFunctionDeploymentEventInput! - ): DeleteFunctionDeploymentEventPayload +"""A `FunctionCapabilityBinding` edge in the connection.""" +type FunctionCapabilityBindingEdge { + """A cursor for use in pagination.""" + cursor: Cursor - """Deletes a single `FunctionExecutionLog` using a unique key.""" - deleteFunctionExecutionLog( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteFunctionExecutionLogInput! - ): DeleteFunctionExecutionLogPayload + """The `FunctionCapabilityBinding` at the end of the edge.""" + node: FunctionCapabilityBinding +} - """Deletes a single `FunctionGraph` using a unique key.""" - deleteFunctionGraph( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteFunctionGraphInput! - ): DeleteFunctionGraphPayload +""" +A filter to be used against `FunctionCapabilityBinding` object types. All fields are combined with a logical ‘and.’ +""" +input FunctionCapabilityBindingFilter { + """Checks for all expressions in this list.""" + and: [FunctionCapabilityBindingFilter!] - """Deletes a single `FunctionGraphCommit` using a unique key.""" - deleteFunctionGraphCommit( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteFunctionGraphCommitInput! - ): DeleteFunctionGraphCommitPayload + """Filter by the object’s `bucketId` field.""" + bucketId: UUIDFilter - """Deletes a single `FunctionGraphExecution` using a unique key.""" - deleteFunctionGraphExecution( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteFunctionGraphExecutionInput! - ): DeleteFunctionGraphExecutionPayload + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter - """Deletes a single `FunctionGraphExecutionNodeState` using a unique key.""" - deleteFunctionGraphExecutionNodeState( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteFunctionGraphExecutionNodeStateInput! - ): DeleteFunctionGraphExecutionNodeStatePayload + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter - """Deletes a single `FunctionGraphExecutionOutput` using a unique key.""" - deleteFunctionGraphExecutionOutput( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteFunctionGraphExecutionOutputInput! - ): DeleteFunctionGraphExecutionOutputPayload + """Filter by the object’s `function` relation.""" + function: FunctionDefinitionFilter - """Deletes a single `FunctionGraphObject` using a unique key.""" - deleteFunctionGraphObject( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteFunctionGraphObjectInput! - ): DeleteFunctionGraphObjectPayload + """A related `function` exists.""" + functionExists: Boolean - """Deletes a single `FunctionGraphRef` using a unique key.""" - deleteFunctionGraphRef( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteFunctionGraphRefInput! - ): DeleteFunctionGraphRefPayload + """Filter by the object’s `functionId` field.""" + functionId: UUIDFilter - """Deletes a single `FunctionGraphStore` using a unique key.""" - deleteFunctionGraphStore( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteFunctionGraphStoreInput! - ): DeleteFunctionGraphStorePayload + """Filter by the object’s `graphId` field.""" + graphId: UUIDFilter - """Deletes a single `FunctionInvocation` using a unique key.""" - deleteFunctionInvocation( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteFunctionInvocationInput! - ): DeleteFunctionInvocationPayload + """Filter by the object’s `id` field.""" + id: UUIDFilter - """Deletes a single `FunctionInvocationAttempt` using a unique key.""" - deleteFunctionInvocationAttempt( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteFunctionInvocationAttemptInput! - ): DeleteFunctionInvocationAttemptPayload + """Filter by the object’s `key` field.""" + key: StringFilter - """Deletes a single `InfraCommit` using a unique key.""" - deleteInfraCommit( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteInfraCommitInput! - ): DeleteInfraCommitPayload + """Filter by the object’s `lifecycle` field.""" + lifecycle: StringFilter - """Deletes a single `InfraObject` using a unique key.""" - deleteInfraObject( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteInfraObjectInput! - ): DeleteInfraObjectPayload + """Filter by the object’s `metadata` field.""" + metadata: JSONFilter - """Deletes a single `InfraRef` using a unique key.""" - deleteInfraRef( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteInfraRefInput! - ): DeleteInfraRefPayload + """Negates the expression.""" + not: FunctionCapabilityBindingFilter - """Deletes a single `InfraStore` using a unique key.""" - deleteInfraStore( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteInfraStoreInput! - ): DeleteInfraStorePayload + """Checks for any expressions in this list.""" + or: [FunctionCapabilityBindingFilter!] - """Deletes a single `IntegrationProvider` using a unique key.""" - deleteIntegrationProvider( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteIntegrationProviderInput! - ): DeleteIntegrationProviderPayload + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter +} - """Deletes a single `Namespace` using a unique key.""" - deleteNamespace( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteNamespaceInput! - ): DeleteNamespacePayload +"""An input for mutations affecting `FunctionCapabilityBinding`""" +input FunctionCapabilityBindingInput { + """Bucket this capability targets (exactly one typed target is set)""" + bucketId: UUID + createdAt: Datetime - """Deletes a single `NamespaceEvent` using a unique key.""" - deleteNamespaceEvent( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteNamespaceEventInput! - ): DeleteNamespaceEventPayload + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! - """Deletes a single `PlatformFunctionApiBinding` using a unique key.""" - deletePlatformFunctionApiBinding( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeletePlatformFunctionApiBindingInput! - ): DeletePlatformFunctionApiBindingPayload + """ + Function definition holding this capability (exactly one of function_id / graph_id is set) + """ + functionId: UUID """ - Deletes a single `PlatformFunctionCapabilityBinding` using a unique key. + Flow graph holding this capability (exactly one of function_id / graph_id is set) """ - deletePlatformFunctionCapabilityBinding( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeletePlatformFunctionCapabilityBindingInput! - ): DeletePlatformFunctionCapabilityBindingPayload + graphId: UUID + id: UUID - """Deletes a single `PlatformFunctionDefinition` using a unique key.""" - deletePlatformFunctionDefinition( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeletePlatformFunctionDefinitionInput! - ): DeletePlatformFunctionDefinitionPayload + """ + Runtime handle the holder addresses this capability by (e.g. default, scratch) + """ + key: String - """Deletes a single `PlatformFunctionDeployment` using a unique key.""" - deletePlatformFunctionDeployment( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeletePlatformFunctionDeploymentInput! - ): DeletePlatformFunctionDeploymentPayload + """ + Lifecycle the capability applies to: deployment (build/deploy time), execution (per invocation), root_execution (root of a graph execution tree) + """ + lifecycle: String! - """Deletes a single `PlatformFunctionDeploymentEvent` using a unique key.""" - deletePlatformFunctionDeploymentEvent( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeletePlatformFunctionDeploymentEventInput! - ): DeletePlatformFunctionDeploymentEventPayload + """Per-binding annotations (no runtime semantics)""" + metadata: JSON + updatedAt: Datetime +} - """Deletes a single `PlatformFunctionExecutionLog` using a unique key.""" - deletePlatformFunctionExecutionLog( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeletePlatformFunctionExecutionLogInput! - ): DeletePlatformFunctionExecutionLogPayload +"""Methods to use when ordering `FunctionCapabilityBinding`.""" +enum FunctionCapabilityBindingOrderBy { + BUCKET_ID_ASC + BUCKET_ID_DESC + CREATED_AT_ASC + CREATED_AT_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + FUNCTION_ID_ASC + FUNCTION_ID_DESC + GRAPH_ID_ASC + GRAPH_ID_DESC + ID_ASC + ID_DESC + KEY_ASC + KEY_DESC + LIFECYCLE_ASC + LIFECYCLE_DESC + METADATA_ASC + METADATA_DESC + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC +} - """Deletes a single `PlatformFunctionInvocation` using a unique key.""" - deletePlatformFunctionInvocation( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeletePlatformFunctionInvocationInput! - ): DeletePlatformFunctionInvocationPayload +""" +Represents an update to a `FunctionCapabilityBinding`. Fields that are set will be updated. +""" +input FunctionCapabilityBindingPatch { + """Bucket this capability targets (exactly one typed target is set)""" + bucketId: UUID + createdAt: Datetime + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID """ - Deletes a single `PlatformFunctionInvocationAttempt` using a unique key. + Function definition holding this capability (exactly one of function_id / graph_id is set) """ - deletePlatformFunctionInvocationAttempt( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeletePlatformFunctionInvocationAttemptInput! - ): DeletePlatformFunctionInvocationAttemptPayload - - """Deletes a single `PlatformInfraCommit` using a unique key.""" - deletePlatformInfraCommit( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeletePlatformInfraCommitInput! - ): DeletePlatformInfraCommitPayload + functionId: UUID - """Deletes a single `PlatformInfraObject` using a unique key.""" - deletePlatformInfraObject( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeletePlatformInfraObjectInput! - ): DeletePlatformInfraObjectPayload + """ + Flow graph holding this capability (exactly one of function_id / graph_id is set) + """ + graphId: UUID + id: UUID - """Deletes a single `PlatformInfraRef` using a unique key.""" - deletePlatformInfraRef( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeletePlatformInfraRefInput! - ): DeletePlatformInfraRefPayload + """ + Runtime handle the holder addresses this capability by (e.g. default, scratch) + """ + key: String - """Deletes a single `PlatformInfraStore` using a unique key.""" - deletePlatformInfraStore( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeletePlatformInfraStoreInput! - ): DeletePlatformInfraStorePayload - - """Deletes a single `PlatformNamespace` using a unique key.""" - deletePlatformNamespace( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeletePlatformNamespaceInput! - ): DeletePlatformNamespacePayload - - """Deletes a single `PlatformNamespaceEvent` using a unique key.""" - deletePlatformNamespaceEvent( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeletePlatformNamespaceEventInput! - ): DeletePlatformNamespaceEventPayload - - """Deletes a single `PlatformResource` using a unique key.""" - deletePlatformResource( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeletePlatformResourceInput! - ): DeletePlatformResourcePayload + """ + Lifecycle the capability applies to: deployment (build/deploy time), execution (per invocation), root_execution (root of a graph execution tree) + """ + lifecycle: String - """Deletes a single `PlatformResourceDefinition` using a unique key.""" - deletePlatformResourceDefinition( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeletePlatformResourceDefinitionInput! - ): DeletePlatformResourceDefinitionPayload + """Per-binding annotations (no runtime semantics)""" + metadata: JSON + updatedAt: Datetime +} - """Deletes a single `PlatformResourceEvent` using a unique key.""" - deletePlatformResourceEvent( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeletePlatformResourceEventInput! - ): DeletePlatformResourceEventPayload +""" +Function definitions — registered cloud functions with routing, queue, and retry configuration +""" +type FunctionDefinition { + """ + 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]! - """Deletes a single `PlatformResourceInstallation` using a unique key.""" - deletePlatformResourceInstallation( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeletePlatformResourceInstallationInput! - ): DeletePlatformResourceInstallationPayload + """ + Whether this function consents to run for a caller with no identity (a sign-in surface, a public page). Anonymous execution additionally requires the matched route to declare anonymous access. Default false = an identity is required. + """ + anonymousCallable: Boolean! - """Deletes a single `PlatformResourceStatusCheck` using a unique key.""" - deletePlatformResourceStatusCheck( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeletePlatformResourceStatusCheckInput! - ): DeletePlatformResourceStatusCheckPayload + """Function task category (e.g. email, embed, chunk, custom)""" + category: String! - """Deletes a single `PlatformResourceUsageLog` using a unique key.""" - deletePlatformResourceUsageLog( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeletePlatformResourceUsageLogInput! - ): DeletePlatformResourceUsageLogPayload + """ + Knative containerConcurrency — max concurrent requests per pod instance + """ + concurrency: Int! - """Deletes a single `PlatformResourceUsageSummary` using a unique key.""" - deletePlatformResourceUsageSummary( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeletePlatformResourceUsageSummaryInput! - ): DeletePlatformResourceUsageSummaryPayload + """ + CPU limit in millicores, derived from resources.limits.cpu (NULL if unset/invalid) + """ + cpuLimitMillicores: BigInt - """Deletes a single `PlatformWebhookEndpoint` using a unique key.""" - deletePlatformWebhookEndpoint( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeletePlatformWebhookEndpointInput! - ): DeletePlatformWebhookEndpointPayload + """ + Requested CPU in millicores, derived from resources.requests.cpu (NULL if unset/invalid) + """ + cpuRequestMillicores: BigInt + createdAt: Datetime + createdByPrincipal: UUID - """Deletes a single `PlatformWebhookEvent` using a unique key.""" - deletePlatformWebhookEvent( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeletePlatformWebhookEventInput! - ): DeletePlatformWebhookEventPayload + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! - """Deletes a single `Resource` using a unique key.""" - deleteResource( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteResourceInput! - ): DeleteResourcePayload + """Human-readable description of what this function does""" + description: String - """Deletes a single `ResourceDefinition` using a unique key.""" - deleteResourceDefinition( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteResourceDefinitionInput! - ): DeleteResourceDefinitionPayload + """Palette grouping category (e.g. email, data, ai, custom)""" + fnCategory: String - """Deletes a single `ResourceEvent` using a unique key.""" - deleteResourceEvent( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteResourceEventInput! - ): DeleteResourceEventPayload + """Reads and enables pagination through a set of `FunctionApiBinding`.""" + functionApiBindings( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """Deletes a single `ResourceInstallation` using a unique key.""" - deleteResourceInstallation( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteResourceInstallationInput! - ): DeleteResourceInstallationPayload + """Read all values in the set before (above) this cursor.""" + before: Cursor - """Deletes a single `ResourceStatusCheck` using a unique key.""" - deleteResourceStatusCheck( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteResourceStatusCheckInput! - ): DeleteResourceStatusCheckPayload + """Only read the first `n` values of the set.""" + first: Int - """Deletes a single `ResourceUsageLog` using a unique key.""" - deleteResourceUsageLog( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteResourceUsageLogInput! - ): DeleteResourceUsageLogPayload + """Only read the last `n` values of the set.""" + last: Int - """Deletes a single `ResourceUsageSummary` using a unique key.""" - deleteResourceUsageSummary( """ - 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: DeleteResourceUsageSummaryInput! - ): DeleteResourceUsageSummaryPayload + offset: Int - """Deletes a single `WebhookEndpoint` using a unique key.""" - deleteWebhookEndpoint( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteWebhookEndpointInput! - ): DeleteWebhookEndpointPayload + """The method to use when ordering `FunctionApiBinding`.""" + orderBy: [FunctionApiBindingOrderBy!] = [PRIMARY_KEY_ASC] - """Deletes a single `WebhookEvent` using a unique key.""" - deleteWebhookEvent( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteWebhookEventInput! - ): DeleteWebhookEventPayload - importDefinitions( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: ImportDefinitionsInput! - ): ImportDefinitionsPayload - importGraphJson( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: ImportGraphJsonInput! - ): ImportGraphJsonPayload - infraInitEmptyRepo( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: InfraInitEmptyRepoInput! - ): InfraInitEmptyRepoPayload - infraInsertNodeAtPath( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - 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. - """ - input: InitEmptyRepoInput! - ): InitEmptyRepoPayload - insertNodeAtPath( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - 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. - """ - input: PlatformInfraInitEmptyRepoInput! - ): PlatformInfraInitEmptyRepoPayload - platformInfraInsertNodeAtPath( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - 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. - """ - input: PlatformResourceInstallationsInstallInput! - ): PlatformResourceInstallationsInstallPayload - platformResourceInstallationsRollback( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: PlatformResourceInstallationsRollbackInput! - ): PlatformResourceInstallationsRollbackPayload - platformResourceInstallationsUninstall( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: PlatformResourceInstallationsUninstallInput! - ): PlatformResourceInstallationsUninstallPayload - platformResourceInstallationsUpgrade( """ - 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: PlatformResourceInstallationsUpgradeInput! - ): PlatformResourceInstallationsUpgradePayload + where: FunctionApiBindingFilter + ): FunctionApiBindingConnection! """ - 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. + Reads and enables pagination through a set of `FunctionCapabilityBinding`. """ - provisionBucket( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: ProvisionBucketInput! - ): ProvisionBucketPayload - resourceInstallationsInstall( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: ResourceInstallationsInstallInput! - ): ResourceInstallationsInstallPayload - resourceInstallationsRollback( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: ResourceInstallationsRollbackInput! - ): ResourceInstallationsRollbackPayload - resourceInstallationsUninstall( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: ResourceInstallationsUninstallInput! - ): ResourceInstallationsUninstallPayload - resourceInstallationsUpgrade( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: ResourceInstallationsUpgradeInput! - ): ResourceInstallationsUpgradePayload - saveGraph( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - 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. - """ - input: StartExecutionInput! - ): StartExecutionPayload + functionCapabilityBindingsByFunctionId( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """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 + """Read all values in the set before (above) this cursor.""" + before: Cursor - """Updates a single `DbPreset` using a unique key and a patch.""" - updateDbPreset( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateDbPresetInput! - ): UpdateDbPresetPayload + """Only read the first `n` values of the set.""" + first: Int - """Updates a single `FunctionApiBinding` using a unique key and a patch.""" - updateFunctionApiBinding( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateFunctionApiBindingInput! - ): UpdateFunctionApiBindingPayload + """Only read the last `n` values of the set.""" + last: Int - """ - Updates a single `FunctionCapabilityBinding` using a unique key and a patch. - """ - updateFunctionCapabilityBinding( """ - 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: UpdateFunctionCapabilityBindingInput! - ): UpdateFunctionCapabilityBindingPayload + offset: Int - """Updates a single `FunctionDefinition` using a unique key and a patch.""" - updateFunctionDefinition( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateFunctionDefinitionInput! - ): UpdateFunctionDefinitionPayload + """The method to use when ordering `FunctionCapabilityBinding`.""" + orderBy: [FunctionCapabilityBindingOrderBy!] = [PRIMARY_KEY_ASC] - """Updates a single `FunctionDeployment` using a unique key and a patch.""" - updateFunctionDeployment( """ - 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: UpdateFunctionDeploymentInput! - ): UpdateFunctionDeploymentPayload + where: FunctionCapabilityBindingFilter + ): FunctionCapabilityBindingConnection! """ - Updates a single `FunctionDeploymentEvent` using a unique key and a patch. + Ordered array of module_table column names holding the generated function names to invoke when runtime=sql (module mode). NULL for direct mode and other runtimes. """ - updateFunctionDeploymentEvent( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateFunctionDeploymentEventInput! - ): UpdateFunctionDeploymentEventPayload + functionColumns: JSON """ - Updates a single `FunctionExecutionLog` using a unique key and a patch. + Reads a single `DatabaseFunctionGraph` that is related to this `FunctionDefinition`. """ - updateFunctionExecutionLog( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateFunctionExecutionLogInput! - ): UpdateFunctionExecutionLogPayload + graph: DatabaseFunctionGraph - """Updates a single `FunctionGraph` using a unique key and a patch.""" - updateFunctionGraph( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateFunctionGraphInput! - ): UpdateFunctionGraphPayload + """ + Existing flow graph invoked when runtime=graph. Required for graph runtime and forbidden for all other runtimes. + """ + graphId: UUID - """Updates a single `FunctionGraphCommit` using a unique key and a patch.""" - updateFunctionGraphCommit( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateFunctionGraphCommitInput! - ): UpdateFunctionGraphCommitPayload + """Icon identifier for UI palette rendering (e.g. mail, database, code)""" + icon: String + id: UUID! """ - Updates a single `FunctionGraphExecution` using a unique key and a patch. + Docker image reference (e.g. ghcr.io/constructive-io/email-send-fn:latest). Required when runtime=http or runtime=resource. NULL for inline functions. """ - updateFunctionGraphExecution( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateFunctionGraphExecutionInput! - ): UpdateFunctionGraphExecutionPayload + image: String """ - Updates a single `FunctionGraphExecutionNodeState` using a unique key and a patch. + Data input ports: [{name, type, description?, optional?, multi?, schema?}] """ - updateFunctionGraphExecutionNodeState( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateFunctionGraphExecutionNodeStateInput! - ): UpdateFunctionGraphExecutionNodeStatePayload + inputs: JSON! """ - Updates a single `FunctionGraphExecutionOutput` using a unique key and a patch. + Provider slugs (e.g. mailgun, postgres) associated with this function. The UI uses this to auto-fill required_secrets and required_configs from integration_providers. """ - updateFunctionGraphExecutionOutput( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateFunctionGraphExecutionOutputInput! - ): UpdateFunctionGraphExecutionOutputPayload + integrations: [String]! + + """ + Whether this function definition is published to the public catalog for direct authenticated invocation. Default false = internal-only via add_job() + """ + isPublished: Boolean! + + """Maximum retry attempts for the underlying job""" + maxAttempts: Int! + + """ + Memory limit in bytes, derived from resources.limits.memory (NULL if unset/invalid) + """ + memoryLimitBytes: BigInt + + """ + Requested memory in bytes, derived from resources.requests.memory (NULL if unset/invalid) + """ + memoryRequestBytes: BigInt + + """ + metaschema_modules_public table whose per-database row carries the generated function names when runtime=sql (module mode). NULL for direct mode and other runtimes. + """ + moduleTable: String + + """ + Function name within category (e.g. send_verification_link, process_file_embedding) + """ + name: String! + + """ + Data output ports: [{name, type, description?, optional?, multi?, schema?}] + """ + outputs: JSON! + + """ + Ordered bind-parameter mapping for runtime=sql: [{name, type}]. payload[name] is bound as $n::type. + """ + payloadArgs: JSON! + + """Job priority (lower = higher priority)""" + priority: Int! + + """ + Configuration properties: [{name, type, default?, description?, required?, schema?}] + """ + props: JSON! + + """ + Protected platform definition: narrower scopes cannot register the same task_identifier + """ + protected: Boolean! + + """ + Timestamp when this function was published. NULL means immediately published when is_published is true; future timestamps delay public visibility + """ + publishedAt: Datetime + + """Job queue name for serialization (e.g. email, ai, default)""" + queueName: String! + + """ + 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]! + + """ + Capability providers the handler declared in handler.json requires.capabilities, as an array of {name, version, declaration}. NULL when the handler declares none, which mounts the full platform set. + """ + requiredCapabilities: JSON + + """ + Embedded config requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. + """ + requiredConfigs: [ResourceRequirement]! + + """ + 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: [ResourceRequirement]! + + """ + Container resource requests and limits: {requests: {memory, cpu}, limits: {memory, cpu}} + """ + resources: JSON! + + """ + Execution mode: http (Knative Service dispatch), inline (in-process in compute worker), handler (registered infrastructure handler), sql (generic SQL dispatch via a trusted direct target or module-resolved function names), resource (Kubernetes Job via the resource module with node-gateway callbacks), graph (existing flow graph referenced by graph_id), or human (parks the node awaiting a person's answer through approve_node) + """ + runtime: String! + + """Maximum pod count for Knative autoscaling (maxScale)""" + scaleMax: Int! + + """Minimum pod count for Knative autoscaling (minScale)""" + scaleMin: Int! + + """ + Name of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. + """ + targetFunction: String + + """ + Schema of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. + """ + targetSchema: String + + """ + Routing slug generated as category || ':' || name (used by the Knative job worker for dispatch) + """ + taskIdentifier: String + + """Knative request timeout in seconds""" + timeoutSeconds: Int! + updatedAt: Datetime + updatedByPrincipal: UUID + + """ + Whether this function has side effects and cannot be cached or memoized + """ + volatile: Boolean! + + """Reads and enables pagination through a set of `WebhookEndpoint`.""" + webhookEndpoints( + """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 - """Updates a single `FunctionGraphObject` using a unique key and a patch.""" - updateFunctionGraphObject( """ - 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: UpdateFunctionGraphObjectInput! - ): UpdateFunctionGraphObjectPayload + offset: Int + + """The method to use when ordering `WebhookEndpoint`.""" + orderBy: [WebhookEndpointOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: WebhookEndpointFilter + ): WebhookEndpointConnection! +} + +"""A connection to a list of `FunctionDefinition` values.""" +type FunctionDefinitionConnection { + """ + A list of edges which contains the `FunctionDefinition` and cursor to aid in pagination. + """ + edges: [FunctionDefinitionEdge]! + + """A list of `FunctionDefinition` objects.""" + nodes: [FunctionDefinition]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `FunctionDefinition` you could get from the connection. + """ + totalCount: Int! +} + +"""A `FunctionDefinition` edge in the connection.""" +type FunctionDefinitionEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `FunctionDefinition` at the end of the edge.""" + node: FunctionDefinition +} + +""" +A filter to be used against `FunctionDefinition` object types. All fields are combined with a logical ‘and.’ +""" +input FunctionDefinitionFilter { + """Filter by the object’s `accessChannels` field.""" + accessChannels: StringListFilter + + """Checks for all expressions in this list.""" + and: [FunctionDefinitionFilter!] + + """Filter by the object’s `anonymousCallable` field.""" + anonymousCallable: BooleanFilter + + """Filter by the object’s `category` field.""" + category: StringFilter + + """Filter by the object’s `concurrency` field.""" + concurrency: IntFilter + + """Filter by the object’s `cpuLimitMillicores` field.""" + cpuLimitMillicores: BigIntFilter + + """Filter by the object’s `cpuRequestMillicores` field.""" + cpuRequestMillicores: BigIntFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `createdByPrincipal` field.""" + createdByPrincipal: UUIDFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `description` field.""" + description: StringFilter + + """Filter by the object’s `fnCategory` field.""" + fnCategory: StringFilter + + """Filter by the object’s `functionApiBindings` relation.""" + functionApiBindings: FunctionDefinitionToManyFunctionApiBindingFilter + + """`functionApiBindings` exist.""" + functionApiBindingsExist: Boolean + + """ + Filter by the object’s `functionCapabilityBindingsByFunctionId` relation. + """ + functionCapabilityBindingsByFunctionId: FunctionDefinitionToManyFunctionCapabilityBindingFilter + + """`functionCapabilityBindingsByFunctionId` exist.""" + functionCapabilityBindingsByFunctionIdExist: Boolean + + """Filter by the object’s `functionColumns` field.""" + functionColumns: JSONFilter + + """Filter by the object’s `graph` relation.""" + graph: DatabaseFunctionGraphFilter + + """A related `graph` exists.""" + graphExists: Boolean + + """Filter by the object’s `graphId` field.""" + graphId: UUIDFilter + + """Filter by the object’s `icon` field.""" + icon: StringFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `image` field.""" + image: StringFilter + + """Filter by the object’s `inputs` field.""" + inputs: JSONFilter + + """Filter by the object’s `integrations` field.""" + integrations: StringListFilter + + """Filter by the object’s `isPublished` field.""" + isPublished: BooleanFilter + + """Filter by the object’s `maxAttempts` field.""" + maxAttempts: IntFilter + + """Filter by the object’s `memoryLimitBytes` field.""" + memoryLimitBytes: BigIntFilter + + """Filter by the object’s `memoryRequestBytes` field.""" + memoryRequestBytes: BigIntFilter + + """Filter by the object’s `moduleTable` field.""" + moduleTable: StringFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """Negates the expression.""" + not: FunctionDefinitionFilter + + """Checks for any expressions in this list.""" + or: [FunctionDefinitionFilter!] + + """Filter by the object’s `outputs` field.""" + outputs: JSONFilter + + """Filter by the object’s `payloadArgs` field.""" + payloadArgs: JSONFilter + + """Filter by the object’s `priority` field.""" + priority: IntFilter + + """Filter by the object’s `props` field.""" + props: JSONFilter + + """Filter by the object’s `protected` field.""" + protected: BooleanFilter + + """Filter by the object’s `publishedAt` field.""" + publishedAt: DatetimeFilter + + """Filter by the object’s `queueName` field.""" + queueName: StringFilter + + """Filter by the object’s `requiredBuckets` field.""" + requiredBuckets: StringListFilter + + """Filter by the object’s `requiredCapabilities` field.""" + requiredCapabilities: JSONFilter + + """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.""" + runtime: StringFilter + + """Filter by the object’s `scaleMax` field.""" + scaleMax: IntFilter + + """Filter by the object’s `scaleMin` field.""" + scaleMin: IntFilter + + """Filter by the object’s `targetFunction` field.""" + targetFunction: StringFilter + + """Filter by the object’s `targetSchema` field.""" + targetSchema: StringFilter + + """Filter by the object’s `taskIdentifier` field.""" + taskIdentifier: StringFilter + + """Filter by the object’s `timeoutSeconds` field.""" + timeoutSeconds: IntFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + + """Filter by the object’s `updatedByPrincipal` field.""" + updatedByPrincipal: UUIDFilter + + """Filter by the object’s `volatile` field.""" + volatile: BooleanFilter + + """Filter by the object’s `webhookEndpoints` relation.""" + webhookEndpoints: FunctionDefinitionToManyWebhookEndpointFilter + + """`webhookEndpoints` exist.""" + webhookEndpointsExist: Boolean +} + +"""An input for mutations affecting `FunctionDefinition`""" +input FunctionDefinitionInput { + """ + 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 this function consents to run for a caller with no identity (a sign-in surface, a public page). Anonymous execution additionally requires the matched route to declare anonymous access. Default false = an identity is required. + """ + anonymousCallable: Boolean + + """Function task category (e.g. email, embed, chunk, custom)""" + category: String! + + """ + Knative containerConcurrency — max concurrent requests per pod instance + """ + concurrency: Int + createdAt: Datetime + createdByPrincipal: UUID + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! + + """Human-readable description of what this function does""" + description: String + + """Palette grouping category (e.g. email, data, ai, custom)""" + fnCategory: String + + """ + Ordered array of module_table column names holding the generated function names to invoke when runtime=sql (module mode). NULL for direct mode and other runtimes. + """ + functionColumns: JSON + + """ + Existing flow graph invoked when runtime=graph. Required for graph runtime and forbidden for all other runtimes. + """ + graphId: UUID + + """Icon identifier for UI palette rendering (e.g. mail, database, code)""" + icon: String + id: UUID + + """ + Docker image reference (e.g. ghcr.io/constructive-io/email-send-fn:latest). Required when runtime=http or runtime=resource. NULL for inline functions. + """ + image: String + + """ + Data input ports: [{name, type, description?, optional?, multi?, schema?}] + """ + inputs: JSON + + """ + Provider slugs (e.g. mailgun, postgres) associated with this function. The UI uses this to auto-fill required_secrets and required_configs from integration_providers. + """ + integrations: [String] + + """ + Whether this function definition is published to the public catalog for direct authenticated invocation. Default false = internal-only via add_job() + """ + isPublished: Boolean + + """Maximum retry attempts for the underlying job""" + maxAttempts: Int + + """ + metaschema_modules_public table whose per-database row carries the generated function names when runtime=sql (module mode). NULL for direct mode and other runtimes. + """ + moduleTable: String + + """ + Function name within category (e.g. send_verification_link, process_file_embedding) + """ + name: String! + + """ + Data output ports: [{name, type, description?, optional?, multi?, schema?}] + """ + outputs: JSON + + """ + Ordered bind-parameter mapping for runtime=sql: [{name, type}]. payload[name] is bound as $n::type. + """ + payloadArgs: JSON + + """Job priority (lower = higher priority)""" + priority: Int + + """ + Configuration properties: [{name, type, default?, description?, required?, schema?}] + """ + props: JSON + + """ + Protected platform definition: narrower scopes cannot register the same task_identifier + """ + protected: Boolean + + """ + Timestamp when this function was published. NULL means immediately published when is_published is true; future timestamps delay public visibility + """ + publishedAt: Datetime + + """Job queue name for serialization (e.g. email, ai, default)""" + queueName: String + + """ + 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] + + """ + Capability providers the handler declared in handler.json requires.capabilities, as an array of {name, version, declaration}. NULL when the handler declares none, which mounts the full platform set. + """ + requiredCapabilities: JSON + + """ + 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}} + """ + resources: JSON + + """ + Execution mode: http (Knative Service dispatch), inline (in-process in compute worker), handler (registered infrastructure handler), sql (generic SQL dispatch via a trusted direct target or module-resolved function names), resource (Kubernetes Job via the resource module with node-gateway callbacks), graph (existing flow graph referenced by graph_id), or human (parks the node awaiting a person's answer through approve_node) + """ + runtime: String + + """Maximum pod count for Knative autoscaling (maxScale)""" + scaleMax: Int + + """Minimum pod count for Knative autoscaling (minScale)""" + scaleMin: Int + + """ + Name of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. + """ + targetFunction: String + + """ + Schema of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. + """ + targetSchema: String + + """Knative request timeout in seconds""" + timeoutSeconds: Int + updatedAt: Datetime + updatedByPrincipal: UUID + + """ + Whether this function has side effects and cannot be cached or memoized + """ + volatile: Boolean +} + +"""Methods to use when ordering `FunctionDefinition`.""" +enum FunctionDefinitionOrderBy { + ACCESS_CHANNELS_ASC + ACCESS_CHANNELS_DESC + ANONYMOUS_CALLABLE_ASC + ANONYMOUS_CALLABLE_DESC + CATEGORY_ASC + CATEGORY_DESC + CONCURRENCY_ASC + CONCURRENCY_DESC + CPU_LIMIT_MILLICORES_ASC + CPU_LIMIT_MILLICORES_DESC + CPU_REQUEST_MILLICORES_ASC + CPU_REQUEST_MILLICORES_DESC + CREATED_AT_ASC + CREATED_AT_DESC + CREATED_BY_PRINCIPAL_ASC + CREATED_BY_PRINCIPAL_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + DESCRIPTION_ASC + DESCRIPTION_DESC + FN_CATEGORY_ASC + FN_CATEGORY_DESC + FUNCTION_COLUMNS_ASC + FUNCTION_COLUMNS_DESC + GRAPH_ID_ASC + GRAPH_ID_DESC + ICON_ASC + ICON_DESC + ID_ASC + ID_DESC + IMAGE_ASC + IMAGE_DESC + INPUTS_ASC + INPUTS_DESC + INTEGRATIONS_ASC + INTEGRATIONS_DESC + IS_PUBLISHED_ASC + IS_PUBLISHED_DESC + MAX_ATTEMPTS_ASC + MAX_ATTEMPTS_DESC + MEMORY_LIMIT_BYTES_ASC + MEMORY_LIMIT_BYTES_DESC + MEMORY_REQUEST_BYTES_ASC + MEMORY_REQUEST_BYTES_DESC + MODULE_TABLE_ASC + MODULE_TABLE_DESC + NAME_ASC + NAME_DESC + NATURAL + OUTPUTS_ASC + OUTPUTS_DESC + PAYLOAD_ARGS_ASC + PAYLOAD_ARGS_DESC + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + PRIORITY_ASC + PRIORITY_DESC + PROPS_ASC + PROPS_DESC + PROTECTED_ASC + PROTECTED_DESC + PUBLISHED_AT_ASC + PUBLISHED_AT_DESC + QUEUE_NAME_ASC + QUEUE_NAME_DESC + REQUIRED_BUCKETS_ASC + REQUIRED_BUCKETS_DESC + REQUIRED_CAPABILITIES_ASC + REQUIRED_CAPABILITIES_DESC + REQUIRED_CONFIGS_ASC + REQUIRED_CONFIGS_DESC + REQUIRED_MODELS_ASC + REQUIRED_MODELS_DESC + REQUIRED_MODULES_ASC + REQUIRED_MODULES_DESC + REQUIRED_SECRETS_ASC + REQUIRED_SECRETS_DESC + RESOURCES_ASC + RESOURCES_DESC + RUNTIME_ASC + RUNTIME_DESC + SCALE_MAX_ASC + SCALE_MAX_DESC + SCALE_MIN_ASC + SCALE_MIN_DESC + TARGET_FUNCTION_ASC + TARGET_FUNCTION_DESC + TARGET_SCHEMA_ASC + TARGET_SCHEMA_DESC + TASK_IDENTIFIER_ASC + TASK_IDENTIFIER_DESC + TIMEOUT_SECONDS_ASC + TIMEOUT_SECONDS_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + UPDATED_BY_PRINCIPAL_ASC + UPDATED_BY_PRINCIPAL_DESC + VOLATILE_ASC + VOLATILE_DESC +} + +""" +Represents an update to a `FunctionDefinition`. Fields that are set will be updated. +""" +input FunctionDefinitionPatch { + """ + 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 this function consents to run for a caller with no identity (a sign-in surface, a public page). Anonymous execution additionally requires the matched route to declare anonymous access. Default false = an identity is required. + """ + anonymousCallable: Boolean + + """Function task category (e.g. email, embed, chunk, custom)""" + category: String + + """ + Knative containerConcurrency — max concurrent requests per pod instance + """ + concurrency: Int + createdAt: Datetime + createdByPrincipal: UUID + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID + + """Human-readable description of what this function does""" + description: String + + """Palette grouping category (e.g. email, data, ai, custom)""" + fnCategory: String + + """ + Ordered array of module_table column names holding the generated function names to invoke when runtime=sql (module mode). NULL for direct mode and other runtimes. + """ + functionColumns: JSON + + """ + Existing flow graph invoked when runtime=graph. Required for graph runtime and forbidden for all other runtimes. + """ + graphId: UUID + + """Icon identifier for UI palette rendering (e.g. mail, database, code)""" + icon: String + id: UUID + + """ + Docker image reference (e.g. ghcr.io/constructive-io/email-send-fn:latest). Required when runtime=http or runtime=resource. NULL for inline functions. + """ + image: String + + """ + Data input ports: [{name, type, description?, optional?, multi?, schema?}] + """ + inputs: JSON + + """ + Provider slugs (e.g. mailgun, postgres) associated with this function. The UI uses this to auto-fill required_secrets and required_configs from integration_providers. + """ + integrations: [String] + + """ + Whether this function definition is published to the public catalog for direct authenticated invocation. Default false = internal-only via add_job() + """ + isPublished: Boolean + + """Maximum retry attempts for the underlying job""" + maxAttempts: Int + + """ + metaschema_modules_public table whose per-database row carries the generated function names when runtime=sql (module mode). NULL for direct mode and other runtimes. + """ + moduleTable: String + + """ + Function name within category (e.g. send_verification_link, process_file_embedding) + """ + name: String + + """ + Data output ports: [{name, type, description?, optional?, multi?, schema?}] + """ + outputs: JSON + + """ + Ordered bind-parameter mapping for runtime=sql: [{name, type}]. payload[name] is bound as $n::type. + """ + payloadArgs: JSON + + """Job priority (lower = higher priority)""" + priority: Int + + """ + Configuration properties: [{name, type, default?, description?, required?, schema?}] + """ + props: JSON + + """ + Protected platform definition: narrower scopes cannot register the same task_identifier + """ + protected: Boolean + + """ + Timestamp when this function was published. NULL means immediately published when is_published is true; future timestamps delay public visibility + """ + publishedAt: Datetime + + """Job queue name for serialization (e.g. email, ai, default)""" + queueName: String + + """ + 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] + + """ + Capability providers the handler declared in handler.json requires.capabilities, as an array of {name, version, declaration}. NULL when the handler declares none, which mounts the full platform set. + """ + requiredCapabilities: JSON + + """ + 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}} + """ + resources: JSON + + """ + Execution mode: http (Knative Service dispatch), inline (in-process in compute worker), handler (registered infrastructure handler), sql (generic SQL dispatch via a trusted direct target or module-resolved function names), resource (Kubernetes Job via the resource module with node-gateway callbacks), graph (existing flow graph referenced by graph_id), or human (parks the node awaiting a person's answer through approve_node) + """ + runtime: String + + """Maximum pod count for Knative autoscaling (maxScale)""" + scaleMax: Int + + """Minimum pod count for Knative autoscaling (minScale)""" + scaleMin: Int + + """ + Name of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. + """ + targetFunction: String + + """ + Schema of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. + """ + targetSchema: String + + """Knative request timeout in seconds""" + timeoutSeconds: Int + updatedAt: Datetime + updatedByPrincipal: UUID + + """ + Whether this function has side effects and cannot be cached or memoized + """ + volatile: Boolean +} + +""" +A filter to be used against many `FunctionApiBinding` object types. All fields are combined with a logical ‘and.’ +""" +input FunctionDefinitionToManyFunctionApiBindingFilter { + """Filters to entities where every related entity matches.""" + every: FunctionApiBindingFilter + + """Filters to entities where no related entity matches.""" + none: FunctionApiBindingFilter + + """Filters to entities where at least one related entity matches.""" + some: FunctionApiBindingFilter +} + +""" +A filter to be used against many `FunctionCapabilityBinding` object types. All fields are combined with a logical ‘and.’ +""" +input FunctionDefinitionToManyFunctionCapabilityBindingFilter { + """Filters to entities where every related entity matches.""" + every: FunctionCapabilityBindingFilter + + """Filters to entities where no related entity matches.""" + none: FunctionCapabilityBindingFilter + + """Filters to entities where at least one related entity matches.""" + some: FunctionCapabilityBindingFilter +} + +""" +A filter to be used against many `WebhookEndpoint` object types. All fields are combined with a logical ‘and.’ +""" +input FunctionDefinitionToManyWebhookEndpointFilter { + """Filters to entities where every related entity matches.""" + every: WebhookEndpointFilter + + """Filters to entities where no related entity matches.""" + none: WebhookEndpointFilter + + """Filters to entities where at least one related entity matches.""" + some: WebhookEndpointFilter +} + +""" +Function deployment bindings — ties a handler image to a namespace for Knative provisioning and routing (one row per handler image per namespace) +""" +type FunctionDeployment { + """Freeform metadata for tooling and operational notes""" + annotations: JSON! + + """Max concurrent requests per pod (NULL = inherit from definition)""" + concurrency: Int + createdAt: Datetime + createdByPrincipal: UUID + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! + + """Cumulative error count for this deployment""" + errorCount: Int! + + """ + Handler directory name (e.g. email, document) — used as FN_HANDLER_NAME in combined-image mode to select the entry point + """ + handlerName: String + id: UUID! + + """ + Logical image name — the handler identity and grouping key (e.g. fn-email). No registry host or tag; tag lives in image_version. + """ + image: String! + + """Image tag/version for the handler container (e.g. latest, 2.6.4)""" + imageVersion: String! + + """Key/value pairs for selecting and filtering deployments""" + labels: JSON! + + """Most recent provisioning or runtime error message""" + lastError: String + + """Timestamp of the most recent error""" + lastErrorAt: Datetime + + """ + Reads a single `Namespace` that is related to this `FunctionDeployment`. + """ + namespace: Namespace + + """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":{...}} + """ + resources: JSON + + """Deployment revision number (incremented on each redeployment)""" + revision: Int! + + """ + Maximum replica count (NULL = inherit from definition or Knative default) + """ + scaleMax: Int + + """ + Minimum replica count (NULL = inherit from definition or Knative default) + """ + scaleMin: Int + + """ + Knative service name — a randomly minted cute name (unique_names.generate_name() + random hex suffix) assigned by the service_url trigger; unique per namespace, not derived from the image + """ + serviceName: String + + """ + Knative service URL (http://{service-name}.{namespace}.svc.cluster.local) — populated after provisioning + """ + serviceUrl: String + + """ + Deployment lifecycle status: pending, provisioning, active, failed, scaled_to_zero, deactivated + """ + status: String! + + """Request timeout override in seconds (NULL = inherit from definition)""" + timeoutSeconds: Int + updatedAt: Datetime + updatedByPrincipal: UUID +} + +"""A connection to a list of `FunctionDeployment` values.""" +type FunctionDeploymentConnection { + """ + A list of edges which contains the `FunctionDeployment` and cursor to aid in pagination. + """ + edges: [FunctionDeploymentEdge]! + + """A list of `FunctionDeployment` objects.""" + nodes: [FunctionDeployment]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `FunctionDeployment` you could get from the connection. + """ + totalCount: Int! +} + +"""A `FunctionDeployment` edge in the connection.""" +type FunctionDeploymentEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `FunctionDeployment` at the end of the edge.""" + node: FunctionDeployment +} + +""" +Deployment lifecycle events — audit log of provisioning, scaling, and failure events +""" +type FunctionDeploymentEvent { + """ + User who triggered this event; NULL only when no human actor was proven + """ + actorId: UUID + + """Event timestamp (partition key)""" + createdAt: Datetime! + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! + + """Deployment this event belongs to""" + deploymentId: UUID! + + """ + Event type: provisioned, scaled, failed, deactivated, redeployed, health_check + """ + eventType: String! + + """Unique event identifier""" + id: UUID! + + """Human-readable description of the event""" + message: String + + """Structured context (old/new values, error details, etc.)""" + metadata: JSON +} + +"""A connection to a list of `FunctionDeploymentEvent` values.""" +type FunctionDeploymentEventConnection { + """ + A list of edges which contains the `FunctionDeploymentEvent` and cursor to aid in pagination. + """ + edges: [FunctionDeploymentEventEdge]! + + """A list of `FunctionDeploymentEvent` objects.""" + nodes: [FunctionDeploymentEvent]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `FunctionDeploymentEvent` you could get from the connection. + """ + totalCount: Int! +} + +"""A `FunctionDeploymentEvent` edge in the connection.""" +type FunctionDeploymentEventEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `FunctionDeploymentEvent` at the end of the edge.""" + node: FunctionDeploymentEvent +} + +""" +A filter to be used against `FunctionDeploymentEvent` object types. All fields are combined with a logical ‘and.’ +""" +input FunctionDeploymentEventFilter { + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter + + """Checks for all expressions in this list.""" + and: [FunctionDeploymentEventFilter!] + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `deploymentId` field.""" + deploymentId: UUIDFilter + + """Filter by the object’s `eventType` field.""" + eventType: StringFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `message` field.""" + message: StringFilter + + """Filter by the object’s `metadata` field.""" + metadata: JSONFilter + + """Negates the expression.""" + not: FunctionDeploymentEventFilter + + """Checks for any expressions in this list.""" + or: [FunctionDeploymentEventFilter!] +} + +"""An input for mutations affecting `FunctionDeploymentEvent`""" +input FunctionDeploymentEventInput { + """ + User who triggered this event; NULL only when no human actor was proven + """ + actorId: UUID + + """Event timestamp (partition key)""" + createdAt: Datetime + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! + + """Deployment this event belongs to""" + deploymentId: UUID! + + """ + Event type: provisioned, scaled, failed, deactivated, redeployed, health_check + """ + eventType: String! + + """Unique event identifier""" + id: UUID + + """Human-readable description of the event""" + message: String + + """Structured context (old/new values, error details, etc.)""" + metadata: JSON +} + +"""Methods to use when ordering `FunctionDeploymentEvent`.""" +enum FunctionDeploymentEventOrderBy { + ACTOR_ID_ASC + ACTOR_ID_DESC + CREATED_AT_ASC + CREATED_AT_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + DEPLOYMENT_ID_ASC + DEPLOYMENT_ID_DESC + EVENT_TYPE_ASC + EVENT_TYPE_DESC + ID_ASC + ID_DESC + MESSAGE_ASC + MESSAGE_DESC + METADATA_ASC + METADATA_DESC + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC +} + +""" +Represents an update to a `FunctionDeploymentEvent`. Fields that are set will be updated. +""" +input FunctionDeploymentEventPatch { + """ + User who triggered this event; NULL only when no human actor was proven + """ + actorId: UUID + + """Event timestamp (partition key)""" + createdAt: Datetime + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID + + """Deployment this event belongs to""" + deploymentId: UUID + + """ + Event type: provisioned, scaled, failed, deactivated, redeployed, health_check + """ + eventType: String + + """Unique event identifier""" + id: UUID + + """Human-readable description of the event""" + message: String + + """Structured context (old/new values, error details, etc.)""" + metadata: JSON +} + +""" +A filter to be used against `FunctionDeployment` object types. All fields are combined with a logical ‘and.’ +""" +input FunctionDeploymentFilter { + """Checks for all expressions in this list.""" + and: [FunctionDeploymentFilter!] + + """Filter by the object’s `annotations` field.""" + annotations: JSONFilter + + """Filter by the object’s `concurrency` field.""" + concurrency: IntFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `createdByPrincipal` field.""" + createdByPrincipal: UUIDFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `errorCount` field.""" + errorCount: IntFilter + + """Filter by the object’s `handlerName` field.""" + handlerName: StringFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `image` field.""" + image: StringFilter + + """Filter by the object’s `imageVersion` field.""" + imageVersion: StringFilter + + """Filter by the object’s `labels` field.""" + labels: JSONFilter + + """Filter by the object’s `lastError` field.""" + lastError: StringFilter + + """Filter by the object’s `lastErrorAt` field.""" + lastErrorAt: DatetimeFilter + + """Filter by the object’s `namespace` relation.""" + namespace: NamespaceFilter + + """Filter by the object’s `namespaceId` field.""" + namespaceId: UUIDFilter + + """Negates the expression.""" + 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.""" + revision: IntFilter + + """Filter by the object’s `scaleMax` field.""" + scaleMax: IntFilter + + """Filter by the object’s `scaleMin` field.""" + scaleMin: IntFilter + + """Filter by the object’s `serviceName` field.""" + serviceName: StringFilter + + """Filter by the object’s `serviceUrl` field.""" + serviceUrl: StringFilter + + """Filter by the object’s `status` field.""" + status: StringFilter + + """Filter by the object’s `timeoutSeconds` field.""" + timeoutSeconds: IntFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + + """Filter by the object’s `updatedByPrincipal` field.""" + updatedByPrincipal: UUIDFilter +} + +"""An input for mutations affecting `FunctionDeployment`""" +input FunctionDeploymentInput { + """Freeform metadata for tooling and operational notes""" + annotations: JSON + + """Max concurrent requests per pod (NULL = inherit from definition)""" + concurrency: Int + createdAt: Datetime + createdByPrincipal: UUID + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! + + """Cumulative error count for this deployment""" + errorCount: Int + + """ + Handler directory name (e.g. email, document) — used as FN_HANDLER_NAME in combined-image mode to select the entry point + """ + handlerName: String + id: UUID + + """ + Logical image name — the handler identity and grouping key (e.g. fn-email). No registry host or tag; tag lives in image_version. + """ + image: String! + + """Image tag/version for the handler container (e.g. latest, 2.6.4)""" + imageVersion: String + + """Key/value pairs for selecting and filtering deployments""" + labels: JSON + + """Most recent provisioning or runtime error message""" + lastError: String + + """Timestamp of the most recent error""" + lastErrorAt: Datetime + + """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":{...}} + """ + resources: JSON + + """Deployment revision number (incremented on each redeployment)""" + revision: Int + + """ + Maximum replica count (NULL = inherit from definition or Knative default) + """ + scaleMax: Int + + """ + Minimum replica count (NULL = inherit from definition or Knative default) + """ + scaleMin: Int + + """ + Knative service name — a randomly minted cute name (unique_names.generate_name() + random hex suffix) assigned by the service_url trigger; unique per namespace, not derived from the image + """ + serviceName: String + + """ + Knative service URL (http://{service-name}.{namespace}.svc.cluster.local) — populated after provisioning + """ + serviceUrl: String + + """ + Deployment lifecycle status: pending, provisioning, active, failed, scaled_to_zero, deactivated + """ + status: String + + """Request timeout override in seconds (NULL = inherit from definition)""" + timeoutSeconds: Int + updatedAt: Datetime + updatedByPrincipal: UUID +} + +"""Methods to use when ordering `FunctionDeployment`.""" +enum FunctionDeploymentOrderBy { + ANNOTATIONS_ASC + ANNOTATIONS_DESC + CONCURRENCY_ASC + CONCURRENCY_DESC + CREATED_AT_ASC + CREATED_AT_DESC + CREATED_BY_PRINCIPAL_ASC + CREATED_BY_PRINCIPAL_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + ERROR_COUNT_ASC + ERROR_COUNT_DESC + HANDLER_NAME_ASC + HANDLER_NAME_DESC + ID_ASC + ID_DESC + IMAGE_ASC + IMAGE_DESC + IMAGE_VERSION_ASC + IMAGE_VERSION_DESC + LABELS_ASC + LABELS_DESC + LAST_ERROR_ASC + LAST_ERROR_AT_ASC + LAST_ERROR_AT_DESC + LAST_ERROR_DESC + NAMESPACE_ID_ASC + NAMESPACE_ID_DESC + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + REALM_ASC + REALM_DESC + RESOURCES_ASC + RESOURCES_DESC + REVISION_ASC + REVISION_DESC + SCALE_MAX_ASC + SCALE_MAX_DESC + SCALE_MIN_ASC + SCALE_MIN_DESC + SERVICE_NAME_ASC + SERVICE_NAME_DESC + SERVICE_URL_ASC + SERVICE_URL_DESC + STATUS_ASC + STATUS_DESC + TIMEOUT_SECONDS_ASC + TIMEOUT_SECONDS_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + UPDATED_BY_PRINCIPAL_ASC + UPDATED_BY_PRINCIPAL_DESC +} + +""" +Represents an update to a `FunctionDeployment`. Fields that are set will be updated. +""" +input FunctionDeploymentPatch { + """Freeform metadata for tooling and operational notes""" + annotations: JSON + + """Max concurrent requests per pod (NULL = inherit from definition)""" + concurrency: Int + createdAt: Datetime + createdByPrincipal: UUID + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID + + """Cumulative error count for this deployment""" + errorCount: Int + + """ + Handler directory name (e.g. email, document) — used as FN_HANDLER_NAME in combined-image mode to select the entry point + """ + handlerName: String + id: UUID + + """ + Logical image name — the handler identity and grouping key (e.g. fn-email). No registry host or tag; tag lives in image_version. + """ + image: String + + """Image tag/version for the handler container (e.g. latest, 2.6.4)""" + imageVersion: String + + """Key/value pairs for selecting and filtering deployments""" + labels: JSON + + """Most recent provisioning or runtime error message""" + lastError: String + + """Timestamp of the most recent error""" + lastErrorAt: Datetime + + """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":{...}} + """ + resources: JSON + + """Deployment revision number (incremented on each redeployment)""" + revision: Int + + """ + Maximum replica count (NULL = inherit from definition or Knative default) + """ + scaleMax: Int + + """ + Minimum replica count (NULL = inherit from definition or Knative default) + """ + scaleMin: Int + + """ + Knative service name — a randomly minted cute name (unique_names.generate_name() + random hex suffix) assigned by the service_url trigger; unique per namespace, not derived from the image + """ + serviceName: String + + """ + Knative service URL (http://{service-name}.{namespace}.svc.cluster.local) — populated after provisioning + """ + serviceUrl: String + + """ + Deployment lifecycle status: pending, provisioning, active, failed, scaled_to_zero, deactivated + """ + status: String + + """Request timeout override in seconds (NULL = inherit from definition)""" + timeoutSeconds: Int + updatedAt: Datetime + updatedByPrincipal: UUID +} + +"""Function execution logs — structured console output per invocation""" +type FunctionExecutionLog { + """ + User who triggered the execution; NULL only when no human actor was proven + """ + actorId: UUID + + """Log entry timestamp (partition key)""" + createdAt: Datetime! + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! + + """Unique log entry identifier""" + id: UUID! + + """Invocation this log entry belongs to (NULL for standalone job logs)""" + invocationId: UUID + + """Log severity: debug, info, warn, error""" + logLevel: String! + + """Log message text""" + message: String! + + """Structured context (labels, trace data, extra fields)""" + metadata: JSON + + """Function routing key (NULL for generic job logs)""" + taskIdentifier: String +} + +"""A connection to a list of `FunctionExecutionLog` values.""" +type FunctionExecutionLogConnection { + """ + A list of edges which contains the `FunctionExecutionLog` and cursor to aid in pagination. + """ + edges: [FunctionExecutionLogEdge]! + + """A list of `FunctionExecutionLog` objects.""" + nodes: [FunctionExecutionLog]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `FunctionExecutionLog` you could get from the connection. + """ + totalCount: Int! +} + +"""A `FunctionExecutionLog` edge in the connection.""" +type FunctionExecutionLogEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `FunctionExecutionLog` at the end of the edge.""" + node: FunctionExecutionLog +} + +""" +A filter to be used against `FunctionExecutionLog` object types. All fields are combined with a logical ‘and.’ +""" +input FunctionExecutionLogFilter { + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter + + """Checks for all expressions in this list.""" + and: [FunctionExecutionLogFilter!] + + """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 `invocationId` field.""" + invocationId: UUIDFilter + + """Filter by the object’s `logLevel` field.""" + logLevel: StringFilter + + """Filter by the object’s `message` field.""" + message: StringFilter + + """Filter by the object’s `metadata` field.""" + metadata: JSONFilter + + """Negates the expression.""" + not: FunctionExecutionLogFilter + + """Checks for any expressions in this list.""" + or: [FunctionExecutionLogFilter!] + + """Filter by the object’s `taskIdentifier` field.""" + taskIdentifier: StringFilter +} + +"""An input for mutations affecting `FunctionExecutionLog`""" +input FunctionExecutionLogInput { + """ + User who triggered the execution; NULL only when no human actor was proven + """ + actorId: UUID + + """Log entry timestamp (partition key)""" + createdAt: Datetime + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! + + """Unique log entry identifier""" + id: UUID + + """Invocation this log entry belongs to (NULL for standalone job logs)""" + invocationId: UUID + + """Log severity: debug, info, warn, error""" + logLevel: String + + """Log message text""" + message: String! + + """Structured context (labels, trace data, extra fields)""" + metadata: JSON + + """Function routing key (NULL for generic job logs)""" + taskIdentifier: String +} + +"""Methods to use when ordering `FunctionExecutionLog`.""" +enum FunctionExecutionLogOrderBy { + ACTOR_ID_ASC + ACTOR_ID_DESC + CREATED_AT_ASC + CREATED_AT_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + ID_ASC + ID_DESC + INVOCATION_ID_ASC + INVOCATION_ID_DESC + LOG_LEVEL_ASC + LOG_LEVEL_DESC + MESSAGE_ASC + MESSAGE_DESC + METADATA_ASC + METADATA_DESC + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + TASK_IDENTIFIER_ASC + TASK_IDENTIFIER_DESC +} + +""" +Represents an update to a `FunctionExecutionLog`. Fields that are set will be updated. +""" +input FunctionExecutionLogPatch { + """ + User who triggered the execution; NULL only when no human actor was proven + """ + actorId: UUID + + """Log entry timestamp (partition key)""" + createdAt: Datetime + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID + + """Unique log entry identifier""" + id: UUID + + """Invocation this log entry belongs to (NULL for standalone job logs)""" + invocationId: UUID + + """Log severity: debug, info, warn, error""" + logLevel: String + + """Log message text""" + message: String + + """Structured context (labels, trace data, extra fields)""" + metadata: JSON + + """Function routing key (NULL for generic job logs)""" + taskIdentifier: String +} + +""" +Flow graph definitions — FBP graphs stored in the dedicated graph Merkle store +""" +type FunctionGraph { + """Evaluator/runtime context (function, js, sql, system)""" + context: String! + + """Timestamp of graph creation""" + createdAt: Datetime! + + """Actor who created this graph""" + createdBy: UUID + + """Pinned definitions store commit for deterministic evaluation""" + definitionsCommitId: UUID + + """Human-readable description of the graph""" + description: String + + """ + Reads and enables pagination through a set of `FunctionGraphExecution`. + """ + functionGraphExecutionsByGraphId( + """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 `FunctionGraphExecution`.""" + orderBy: [FunctionGraphExecutionOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: FunctionGraphExecutionFilter + ): FunctionGraphExecutionConnection! + + """Unique graph identifier""" + id: UUID! + + """Whether graph passes structural validation""" + isValid: Boolean! + + """Graph name (unique per database)""" + name: String! + + """ + Reads and enables pagination through a set of `PlatformFunctionDefinition`. + """ + platformFunctionDefinitionsByGraphId( + """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 `PlatformFunctionDefinition`.""" + orderBy: [PlatformFunctionDefinitionOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformFunctionDefinitionFilter + ): PlatformFunctionDefinitionConnection! + + """ + Reads and enables pagination through a set of `PlatformRepositoryWorkflow`. + """ + platformRepositoryWorkflowsByGraphId( + """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 `PlatformRepositoryWorkflow`.""" + orderBy: [PlatformRepositoryWorkflowOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformRepositoryWorkflowFilter + ): PlatformRepositoryWorkflowConnection! + + """Opaque store partition key for the global tier""" + scopeId: UUID! + + """Graph store (Merkle store) holding the graph definition""" + storeId: UUID! + + """Timestamp of last modification""" + updatedAt: Datetime! + + """Array of validation error objects when is_valid = false""" + validationErrors: JSON +} + +"""Commit history — each commit snapshots a tree root for a store""" +type FunctionGraphCommit { + """User who authored the changes""" + authorId: UUID + + """User who committed (may differ from author)""" + committerId: UUID + + """Commit timestamp""" + date: Datetime! + + """Unique commit identifier""" + id: UUID! + + """Optional commit message""" + message: String + + """Parent commit IDs (supports merge commits)""" + parentIds: [UUID] + + """Opaque store partition key for the global tier""" + scopeId: UUID! + + """Store this commit belongs to""" + storeId: UUID! + + """Root object ID of the tree snapshot at this commit""" + treeId: UUID +} + +"""A connection to a list of `FunctionGraphCommit` values.""" +type FunctionGraphCommitConnection { + """ + A list of edges which contains the `FunctionGraphCommit` and cursor to aid in pagination. + """ + edges: [FunctionGraphCommitEdge]! + + """A list of `FunctionGraphCommit` objects.""" + nodes: [FunctionGraphCommit]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `FunctionGraphCommit` you could get from the connection. + """ + totalCount: Int! +} + +"""A `FunctionGraphCommit` edge in the connection.""" +type FunctionGraphCommitEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `FunctionGraphCommit` at the end of the edge.""" + node: FunctionGraphCommit +} + +""" +A filter to be used against `FunctionGraphCommit` object types. All fields are combined with a logical ‘and.’ +""" +input FunctionGraphCommitFilter { + """Checks for all expressions in this list.""" + and: [FunctionGraphCommitFilter!] + + """Filter by the object’s `authorId` field.""" + authorId: UUIDFilter + + """Filter by the object’s `committerId` field.""" + committerId: UUIDFilter + + """Filter by the object’s `date` field.""" + date: DatetimeFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `message` field.""" + message: StringFilter + + """Negates the expression.""" + not: FunctionGraphCommitFilter + + """Checks for any expressions in this list.""" + or: [FunctionGraphCommitFilter!] + + """Filter by the object’s `parentIds` field.""" + parentIds: UUIDListFilter + + """Filter by the object’s `scopeId` field.""" + scopeId: UUIDFilter + + """Filter by the object’s `storeId` field.""" + storeId: UUIDFilter + + """Filter by the object’s `treeId` field.""" + treeId: UUIDFilter +} + +"""An input for mutations affecting `FunctionGraphCommit`""" +input FunctionGraphCommitInput { + """User who authored the changes""" + authorId: UUID + + """User who committed (may differ from author)""" + committerId: UUID + + """Commit timestamp""" + date: Datetime + + """Unique commit identifier""" + id: UUID + + """Optional commit message""" + message: String + + """Parent commit IDs (supports merge commits)""" + parentIds: [UUID] + + """Opaque store partition key for the global tier""" + scopeId: UUID! + + """Store this commit belongs to""" + storeId: UUID! + + """Root object ID of the tree snapshot at this commit""" + treeId: UUID +} + +"""Methods to use when ordering `FunctionGraphCommit`.""" +enum FunctionGraphCommitOrderBy { + AUTHOR_ID_ASC + AUTHOR_ID_DESC + COMMITTER_ID_ASC + COMMITTER_ID_DESC + DATE_ASC + DATE_DESC + ID_ASC + ID_DESC + MESSAGE_ASC + MESSAGE_DESC + NATURAL + PARENT_IDS_ASC + PARENT_IDS_DESC + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + SCOPE_ID_ASC + SCOPE_ID_DESC + STORE_ID_ASC + STORE_ID_DESC + TREE_ID_ASC + TREE_ID_DESC +} + +""" +Represents an update to a `FunctionGraphCommit`. Fields that are set will be updated. +""" +input FunctionGraphCommitPatch { + """User who authored the changes""" + authorId: UUID + + """User who committed (may differ from author)""" + committerId: UUID + + """Commit timestamp""" + date: Datetime + + """Unique commit identifier""" + id: UUID + + """Optional commit message""" + message: String + + """Parent commit IDs (supports merge commits)""" + parentIds: [UUID] + + """Opaque store partition key for the global tier""" + scopeId: UUID + + """Store this commit belongs to""" + storeId: UUID + + """Root object ID of the tree snapshot at this commit""" + treeId: UUID +} + +"""A connection to a list of `FunctionGraph` values.""" +type FunctionGraphConnection { + """ + A list of edges which contains the `FunctionGraph` and cursor to aid in pagination. + """ + edges: [FunctionGraphEdge]! + + """A list of `FunctionGraph` objects.""" + nodes: [FunctionGraph]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `FunctionGraph` you could get from the connection.""" + totalCount: Int! +} + +"""A `FunctionGraph` edge in the connection.""" +type FunctionGraphEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `FunctionGraph` at the end of the edge.""" + node: FunctionGraph +} + +"""Ephemeral execution state for flow graph evaluation""" +type FunctionGraphExecution { + """User actor propagated to asynchronous graph jobs""" + actorId: UUID + + """Execution completion timestamp""" + completedAt: Datetime + + """Index into execution_plan — tick only processes this wave""" + currentWave: Int! + + """Pinned definitions store commit for deterministic evaluation""" + definitionsCommitId: UUID + + """Entity context propagated to asynchronous graph jobs""" + entityId: UUID + + """Scope discriminator propagated to asynchronous graph jobs""" + entityType: String + + """Machine-readable error code when status = failed""" + errorCode: String + + """Human-readable error description when status = failed""" + errorMessage: String + + """Pre-computed topological sort as array of wave objects""" + executionPlan: JSON + + """ + Reads a single `FunctionGraph` that is related to this `FunctionGraphExecution`. + """ + graph: FunctionGraph + + """FK to the graph definition being executed""" + graphId: UUID! + + """Unique execution identifier""" + id: UUID! + + """Initial inputs provided at invocation time""" + inputPayload: JSON + + """ + Partition coordinate for the function invocation that launched this graph execution + """ + invocationCreatedAt: Datetime + + """Function invocation that launched this top-level graph execution""" + invocationId: UUID + + """ + Timestamp of the last real progress (node enqueue, node output, completion) — drives the activity-debounced watchdog + """ + lastProgressAt: Datetime! + + """Maximum pending jobs before execution is failed (default 50)""" + maxPendingJobs: Int! + + """Maximum ticks before execution is failed (default 100)""" + maxTicks: Int! + + """ + Map of node_name → execution output id (content-addressed hash reference) + """ + nodeOutputs: JSON! + + """Organization context propagated to asynchronous graph jobs""" + organizationId: UUID + + """ + Selected graphOutput portName values; NULL or empty returns all graph outputs + """ + outputNames: [String] + + """ + Target output boundary node name to resolve; NULL derives completion from the graph's graphOutput nodes + """ + outputNode: String + + """Final result extracted from terminal output node""" + outputPayload: JSON + + """Target output port name (default: value)""" + outputPort: String! + + """Parent execution when this is a sub-execution""" + parentExecutionId: UUID + + """ + Function invocation parent assigned to node invocations spawned by this execution + """ + parentInvocationId: UUID + + """Node name in parent execution that spawned this sub-execution""" + parentNodeName: String + + """Principal identity propagated to asynchronous graph jobs""" + principalId: UUID + + """Opaque store partition key for the global tier""" + scopeId: UUID! + + """Execution start timestamp""" + startedAt: Datetime! + + """Lifecycle: pending → running → completed/failed/cancelled""" + status: String! + + """Number of evaluate_step ticks executed""" + tickCount: Int! + + """Absolute deadline — execution fails if still running after this time""" + timeoutAt: Datetime! +} + +"""A connection to a list of `FunctionGraphExecution` values.""" +type FunctionGraphExecutionConnection { + """ + A list of edges which contains the `FunctionGraphExecution` and cursor to aid in pagination. + """ + edges: [FunctionGraphExecutionEdge]! + + """A list of `FunctionGraphExecution` objects.""" + nodes: [FunctionGraphExecution]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `FunctionGraphExecution` you could get from the connection. + """ + totalCount: Int! +} + +"""A `FunctionGraphExecution` edge in the connection.""" +type FunctionGraphExecutionEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `FunctionGraphExecution` at the end of the edge.""" + node: FunctionGraphExecution +} + +""" +A filter to be used against `FunctionGraphExecution` object types. All fields are combined with a logical ‘and.’ +""" +input FunctionGraphExecutionFilter { + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter + + """Checks for all expressions in this list.""" + and: [FunctionGraphExecutionFilter!] + + """Filter by the object’s `completedAt` field.""" + completedAt: DatetimeFilter + + """Filter by the object’s `currentWave` field.""" + currentWave: IntFilter + + """Filter by the object’s `definitionsCommitId` field.""" + definitionsCommitId: UUIDFilter + + """Filter by the object’s `entityId` field.""" + entityId: UUIDFilter + + """Filter by the object’s `entityType` field.""" + entityType: StringFilter + + """Filter by the object’s `errorCode` field.""" + errorCode: StringFilter + + """Filter by the object’s `errorMessage` field.""" + errorMessage: StringFilter + + """Filter by the object’s `executionPlan` field.""" + executionPlan: JSONFilter + + """Filter by the object’s `graph` relation.""" + graph: FunctionGraphFilter + + """Filter by the object’s `graphId` field.""" + graphId: UUIDFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `inputPayload` field.""" + inputPayload: JSONFilter + + """Filter by the object’s `invocationCreatedAt` field.""" + invocationCreatedAt: DatetimeFilter + + """Filter by the object’s `invocationId` field.""" + invocationId: UUIDFilter + + """Filter by the object’s `lastProgressAt` field.""" + lastProgressAt: DatetimeFilter + + """Filter by the object’s `maxPendingJobs` field.""" + maxPendingJobs: IntFilter + + """Filter by the object’s `maxTicks` field.""" + maxTicks: IntFilter + + """Filter by the object’s `nodeOutputs` field.""" + nodeOutputs: JSONFilter + + """Negates the expression.""" + not: FunctionGraphExecutionFilter + + """Checks for any expressions in this list.""" + or: [FunctionGraphExecutionFilter!] + + """Filter by the object’s `organizationId` field.""" + organizationId: UUIDFilter + + """Filter by the object’s `outputNames` field.""" + outputNames: StringListFilter + + """Filter by the object’s `outputNode` field.""" + outputNode: StringFilter + + """Filter by the object’s `outputPayload` field.""" + outputPayload: JSONFilter + + """Filter by the object’s `outputPort` field.""" + outputPort: StringFilter + + """Filter by the object’s `parentExecutionId` field.""" + parentExecutionId: UUIDFilter + + """Filter by the object’s `parentInvocationId` field.""" + parentInvocationId: UUIDFilter + + """Filter by the object’s `parentNodeName` field.""" + parentNodeName: StringFilter + + """Filter by the object’s `principalId` field.""" + principalId: UUIDFilter + + """Filter by the object’s `scopeId` field.""" + scopeId: UUIDFilter + + """Filter by the object’s `startedAt` field.""" + startedAt: DatetimeFilter + + """Filter by the object’s `status` field.""" + status: StringFilter + + """Filter by the object’s `tickCount` field.""" + tickCount: IntFilter + + """Filter by the object’s `timeoutAt` field.""" + timeoutAt: DatetimeFilter +} + +"""An input for mutations affecting `FunctionGraphExecution`""" +input FunctionGraphExecutionInput { + """User actor propagated to asynchronous graph jobs""" + actorId: UUID + + """Execution completion timestamp""" + completedAt: Datetime + + """Index into execution_plan — tick only processes this wave""" + currentWave: Int + + """Pinned definitions store commit for deterministic evaluation""" + definitionsCommitId: UUID + + """Entity context propagated to asynchronous graph jobs""" + entityId: UUID + + """Scope discriminator propagated to asynchronous graph jobs""" + entityType: String + + """Machine-readable error code when status = failed""" + errorCode: String + + """Human-readable error description when status = failed""" + errorMessage: String + + """Pre-computed topological sort as array of wave objects""" + executionPlan: JSON + + """FK to the graph definition being executed""" + graphId: UUID! + + """Unique execution identifier""" + id: UUID + + """Initial inputs provided at invocation time""" + inputPayload: JSON + + """ + Partition coordinate for the function invocation that launched this graph execution + """ + invocationCreatedAt: Datetime + + """Function invocation that launched this top-level graph execution""" + invocationId: UUID + + """ + Timestamp of the last real progress (node enqueue, node output, completion) — drives the activity-debounced watchdog + """ + lastProgressAt: Datetime + + """Maximum pending jobs before execution is failed (default 50)""" + maxPendingJobs: Int + + """Maximum ticks before execution is failed (default 100)""" + maxTicks: Int + + """ + Map of node_name → execution output id (content-addressed hash reference) + """ + nodeOutputs: JSON + + """Organization context propagated to asynchronous graph jobs""" + organizationId: UUID + + """ + Selected graphOutput portName values; NULL or empty returns all graph outputs + """ + outputNames: [String] + + """ + Target output boundary node name to resolve; NULL derives completion from the graph's graphOutput nodes + """ + outputNode: String + + """Final result extracted from terminal output node""" + outputPayload: JSON + + """Target output port name (default: value)""" + outputPort: String + + """Parent execution when this is a sub-execution""" + parentExecutionId: UUID + + """ + Function invocation parent assigned to node invocations spawned by this execution + """ + parentInvocationId: UUID + + """Node name in parent execution that spawned this sub-execution""" + parentNodeName: String + + """Principal identity propagated to asynchronous graph jobs""" + principalId: UUID + + """Opaque store partition key for the global tier""" + scopeId: UUID! + + """Execution start timestamp""" + startedAt: Datetime + + """Lifecycle: pending → running → completed/failed/cancelled""" + status: String + + """Number of evaluate_step ticks executed""" + tickCount: Int + + """Absolute deadline — execution fails if still running after this time""" + timeoutAt: Datetime +} + +""" +Per-node execution state — tracks individual node lifecycle for debugging +""" +type FunctionGraphExecutionNodeState { + """ + Snapshot of the node's resolved inputs for resource-runtime nodes — served by the node gateway GET /inputs endpoint + """ + callbackInputs: JSON + + """ + Metering/attribution context stamped at resource dispatch (namespace_id, task_identifier, entity_id, scope, resource identity, dispatched_at, attempt) — lets the node gateway settle and attribute without extra lookups + """ + callbackMeta: JSON + + """ + SHA-256 hex digest of the node callback token — set for resource-runtime nodes so the node gateway can authenticate result/error/heartbeat callbacks + """ + callbackTokenHash: String + + """Timestamp when the node finished (success or failure)""" + completedAt: Datetime + + """Timestamp of node state creation (partition key)""" + createdAt: Datetime! + + """Machine-readable error code when status = failed""" + errorCode: String + + """Human-readable error description when status = failed""" + errorMessage: String + + """FK to the parent graph execution""" + executionId: UUID! + + """Declared output applied by the default_answer expiry policy""" + expiryDefaultOutput: JSON + + """When the escalate expiry policy fired — guards the one-time extension""" + expiryEscalatedAt: Datetime + + """ + Declared expiry behaviour when waiting_deadline_at passes unanswered: fail (fail the execution), default_answer (settle with expiry_default_output), or escalate (notify and extend once) + """ + expiryPolicy: String + + """Unique node state identifier""" + id: UUID! + + """Name of the node within the graph (e.g. send-email1)""" + nodeName: String! + + """ + Full merkle tree path to this node (e.g. {function,graphs,myflow,nodes,send-email1}) — enables subnet hierarchy tracking + """ + nodePath: [String] + + """FK to execution_outputs — content-addressed output blob for this node""" + outputId: UUID + + """Opaque store partition key for the global tier""" + scopeId: UUID! + + """Timestamp when the node began executing""" + startedAt: Datetime + + """ + Node lifecycle: pending → queued → running → completed/failed/cancelled + """ + status: String! + + """When the declared expiry policy applies to the still-unanswered node""" + waitingDeadlineAt: Datetime + + """ + What class of external reporter settles this node: human (a person answers) or external (webhook/adapter). NULL for nodes with an active workload + """ + waitingOn: String + + """When the node parked awaiting its external report""" + waitingSince: Datetime +} + +"""A connection to a list of `FunctionGraphExecutionNodeState` values.""" +type FunctionGraphExecutionNodeStateConnection { + """ + A list of edges which contains the `FunctionGraphExecutionNodeState` and cursor to aid in pagination. + """ + edges: [FunctionGraphExecutionNodeStateEdge]! + + """A list of `FunctionGraphExecutionNodeState` objects.""" + nodes: [FunctionGraphExecutionNodeState]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `FunctionGraphExecutionNodeState` you could get from the connection. + """ + totalCount: Int! +} + +"""A `FunctionGraphExecutionNodeState` edge in the connection.""" +type FunctionGraphExecutionNodeStateEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `FunctionGraphExecutionNodeState` at the end of the edge.""" + node: FunctionGraphExecutionNodeState +} + +""" +A filter to be used against `FunctionGraphExecutionNodeState` object types. All fields are combined with a logical ‘and.’ +""" +input FunctionGraphExecutionNodeStateFilter { + """Checks for all expressions in this list.""" + and: [FunctionGraphExecutionNodeStateFilter!] + + """Filter by the object’s `callbackInputs` field.""" + callbackInputs: JSONFilter + + """Filter by the object’s `callbackMeta` field.""" + callbackMeta: JSONFilter + + """Filter by the object’s `callbackTokenHash` field.""" + callbackTokenHash: StringFilter + + """Filter by the object’s `completedAt` field.""" + completedAt: DatetimeFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `errorCode` field.""" + errorCode: StringFilter + + """Filter by the object’s `errorMessage` field.""" + errorMessage: StringFilter + + """Filter by the object’s `executionId` field.""" + executionId: UUIDFilter + + """Filter by the object’s `expiryDefaultOutput` field.""" + expiryDefaultOutput: JSONFilter + + """Filter by the object’s `expiryEscalatedAt` field.""" + expiryEscalatedAt: DatetimeFilter + + """Filter by the object’s `expiryPolicy` field.""" + expiryPolicy: StringFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `nodeName` field.""" + nodeName: StringFilter + + """Filter by the object’s `nodePath` field.""" + nodePath: StringListFilter + + """Negates the expression.""" + not: FunctionGraphExecutionNodeStateFilter + + """Checks for any expressions in this list.""" + or: [FunctionGraphExecutionNodeStateFilter!] + + """Filter by the object’s `outputId` field.""" + outputId: UUIDFilter + + """Filter by the object’s `scopeId` field.""" + scopeId: UUIDFilter + + """Filter by the object’s `startedAt` field.""" + startedAt: DatetimeFilter + + """Filter by the object’s `status` field.""" + status: StringFilter + + """Filter by the object’s `waitingDeadlineAt` field.""" + waitingDeadlineAt: DatetimeFilter + + """Filter by the object’s `waitingOn` field.""" + waitingOn: StringFilter + + """Filter by the object’s `waitingSince` field.""" + waitingSince: DatetimeFilter +} + +"""An input for mutations affecting `FunctionGraphExecutionNodeState`""" +input FunctionGraphExecutionNodeStateInput { + """ + Snapshot of the node's resolved inputs for resource-runtime nodes — served by the node gateway GET /inputs endpoint + """ + callbackInputs: JSON + + """ + Metering/attribution context stamped at resource dispatch (namespace_id, task_identifier, entity_id, scope, resource identity, dispatched_at, attempt) — lets the node gateway settle and attribute without extra lookups + """ + callbackMeta: JSON + + """ + SHA-256 hex digest of the node callback token — set for resource-runtime nodes so the node gateway can authenticate result/error/heartbeat callbacks + """ + callbackTokenHash: String + + """Timestamp when the node finished (success or failure)""" + completedAt: Datetime + + """Timestamp of node state creation (partition key)""" + createdAt: Datetime + + """Machine-readable error code when status = failed""" + errorCode: String + + """Human-readable error description when status = failed""" + errorMessage: String + + """FK to the parent graph execution""" + executionId: UUID! + + """Declared output applied by the default_answer expiry policy""" + expiryDefaultOutput: JSON + + """When the escalate expiry policy fired — guards the one-time extension""" + expiryEscalatedAt: Datetime + + """ + Declared expiry behaviour when waiting_deadline_at passes unanswered: fail (fail the execution), default_answer (settle with expiry_default_output), or escalate (notify and extend once) + """ + expiryPolicy: String + + """Unique node state identifier""" + id: UUID + + """Name of the node within the graph (e.g. send-email1)""" + nodeName: String! + + """ + Full merkle tree path to this node (e.g. {function,graphs,myflow,nodes,send-email1}) — enables subnet hierarchy tracking + """ + nodePath: [String] + + """FK to execution_outputs — content-addressed output blob for this node""" + outputId: UUID + + """Opaque store partition key for the global tier""" + scopeId: UUID! + + """Timestamp when the node began executing""" + startedAt: Datetime + + """ + Node lifecycle: pending → queued → running → completed/failed/cancelled + """ + status: String + + """When the declared expiry policy applies to the still-unanswered node""" + waitingDeadlineAt: Datetime + + """ + What class of external reporter settles this node: human (a person answers) or external (webhook/adapter). NULL for nodes with an active workload + """ + waitingOn: String + + """When the node parked awaiting its external report""" + waitingSince: Datetime +} + +"""Methods to use when ordering `FunctionGraphExecutionNodeState`.""" +enum FunctionGraphExecutionNodeStateOrderBy { + CALLBACK_INPUTS_ASC + CALLBACK_INPUTS_DESC + CALLBACK_META_ASC + CALLBACK_META_DESC + CALLBACK_TOKEN_HASH_ASC + CALLBACK_TOKEN_HASH_DESC + COMPLETED_AT_ASC + COMPLETED_AT_DESC + CREATED_AT_ASC + CREATED_AT_DESC + ERROR_CODE_ASC + ERROR_CODE_DESC + ERROR_MESSAGE_ASC + ERROR_MESSAGE_DESC + EXECUTION_ID_ASC + EXECUTION_ID_DESC + EXPIRY_DEFAULT_OUTPUT_ASC + EXPIRY_DEFAULT_OUTPUT_DESC + EXPIRY_ESCALATED_AT_ASC + EXPIRY_ESCALATED_AT_DESC + EXPIRY_POLICY_ASC + EXPIRY_POLICY_DESC + ID_ASC + ID_DESC + NATURAL + NODE_NAME_ASC + NODE_NAME_DESC + NODE_PATH_ASC + NODE_PATH_DESC + OUTPUT_ID_ASC + OUTPUT_ID_DESC + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + SCOPE_ID_ASC + SCOPE_ID_DESC + STARTED_AT_ASC + STARTED_AT_DESC + STATUS_ASC + STATUS_DESC + WAITING_DEADLINE_AT_ASC + WAITING_DEADLINE_AT_DESC + WAITING_ON_ASC + WAITING_ON_DESC + WAITING_SINCE_ASC + WAITING_SINCE_DESC +} + +""" +Represents an update to a `FunctionGraphExecutionNodeState`. Fields that are set will be updated. +""" +input FunctionGraphExecutionNodeStatePatch { + """ + Snapshot of the node's resolved inputs for resource-runtime nodes — served by the node gateway GET /inputs endpoint + """ + callbackInputs: JSON + + """ + Metering/attribution context stamped at resource dispatch (namespace_id, task_identifier, entity_id, scope, resource identity, dispatched_at, attempt) — lets the node gateway settle and attribute without extra lookups + """ + callbackMeta: JSON + + """ + SHA-256 hex digest of the node callback token — set for resource-runtime nodes so the node gateway can authenticate result/error/heartbeat callbacks + """ + callbackTokenHash: String + + """Timestamp when the node finished (success or failure)""" + completedAt: Datetime + + """Timestamp of node state creation (partition key)""" + createdAt: Datetime + + """Machine-readable error code when status = failed""" + errorCode: String + + """Human-readable error description when status = failed""" + errorMessage: String + + """FK to the parent graph execution""" + executionId: UUID + + """Declared output applied by the default_answer expiry policy""" + expiryDefaultOutput: JSON + + """When the escalate expiry policy fired — guards the one-time extension""" + expiryEscalatedAt: Datetime + + """ + Declared expiry behaviour when waiting_deadline_at passes unanswered: fail (fail the execution), default_answer (settle with expiry_default_output), or escalate (notify and extend once) + """ + expiryPolicy: String + + """Unique node state identifier""" + id: UUID + + """Name of the node within the graph (e.g. send-email1)""" + nodeName: String + + """ + Full merkle tree path to this node (e.g. {function,graphs,myflow,nodes,send-email1}) — enables subnet hierarchy tracking + """ + nodePath: [String] + + """FK to execution_outputs — content-addressed output blob for this node""" + outputId: UUID + + """Opaque store partition key for the global tier""" + scopeId: UUID + + """Timestamp when the node began executing""" + startedAt: Datetime + + """ + Node lifecycle: pending → queued → running → completed/failed/cancelled + """ + status: String + + """When the declared expiry policy applies to the still-unanswered node""" + waitingDeadlineAt: Datetime + + """ + What class of external reporter settles this node: human (a person answers) or external (webhook/adapter). NULL for nodes with an active workload + """ + waitingOn: String + + """When the node parked awaiting its external report""" + waitingSince: Datetime +} + +"""Methods to use when ordering `FunctionGraphExecution`.""" +enum FunctionGraphExecutionOrderBy { + ACTOR_ID_ASC + ACTOR_ID_DESC + COMPLETED_AT_ASC + COMPLETED_AT_DESC + CURRENT_WAVE_ASC + CURRENT_WAVE_DESC + DEFINITIONS_COMMIT_ID_ASC + DEFINITIONS_COMMIT_ID_DESC + ENTITY_ID_ASC + ENTITY_ID_DESC + ENTITY_TYPE_ASC + ENTITY_TYPE_DESC + ERROR_CODE_ASC + ERROR_CODE_DESC + ERROR_MESSAGE_ASC + ERROR_MESSAGE_DESC + EXECUTION_PLAN_ASC + EXECUTION_PLAN_DESC + GRAPH_ID_ASC + GRAPH_ID_DESC + ID_ASC + ID_DESC + INPUT_PAYLOAD_ASC + INPUT_PAYLOAD_DESC + INVOCATION_CREATED_AT_ASC + INVOCATION_CREATED_AT_DESC + INVOCATION_ID_ASC + INVOCATION_ID_DESC + LAST_PROGRESS_AT_ASC + LAST_PROGRESS_AT_DESC + MAX_PENDING_JOBS_ASC + MAX_PENDING_JOBS_DESC + MAX_TICKS_ASC + MAX_TICKS_DESC + NATURAL + NODE_OUTPUTS_ASC + NODE_OUTPUTS_DESC + ORGANIZATION_ID_ASC + ORGANIZATION_ID_DESC + OUTPUT_NAMES_ASC + OUTPUT_NAMES_DESC + OUTPUT_NODE_ASC + OUTPUT_NODE_DESC + OUTPUT_PAYLOAD_ASC + OUTPUT_PAYLOAD_DESC + OUTPUT_PORT_ASC + OUTPUT_PORT_DESC + PARENT_EXECUTION_ID_ASC + PARENT_EXECUTION_ID_DESC + PARENT_INVOCATION_ID_ASC + PARENT_INVOCATION_ID_DESC + PARENT_NODE_NAME_ASC + PARENT_NODE_NAME_DESC + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + PRINCIPAL_ID_ASC + PRINCIPAL_ID_DESC + SCOPE_ID_ASC + SCOPE_ID_DESC + STARTED_AT_ASC + STARTED_AT_DESC + STATUS_ASC + STATUS_DESC + TICK_COUNT_ASC + TICK_COUNT_DESC + TIMEOUT_AT_ASC + TIMEOUT_AT_DESC +} + +""" +Content-addressed store for execution outputs — hash-referenced from node_outputs +""" +type FunctionGraphExecutionOutput { + """Timestamp of output creation""" + createdAt: Datetime! + + """The actual output payload from a completed node""" + data: JSON! + + """SHA-256 hash of the data JSONB — content-addressed deduplication""" + hash: Base64EncodedBinary! + + """Unique execution output identifier""" + id: UUID! + + """Opaque store partition key for the global tier""" + scopeId: UUID! +} + +"""A connection to a list of `FunctionGraphExecutionOutput` values.""" +type FunctionGraphExecutionOutputConnection { + """ + A list of edges which contains the `FunctionGraphExecutionOutput` and cursor to aid in pagination. + """ + edges: [FunctionGraphExecutionOutputEdge]! + + """A list of `FunctionGraphExecutionOutput` objects.""" + nodes: [FunctionGraphExecutionOutput]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `FunctionGraphExecutionOutput` you could get from the connection. + """ + totalCount: Int! +} + +"""A `FunctionGraphExecutionOutput` edge in the connection.""" +type FunctionGraphExecutionOutputEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `FunctionGraphExecutionOutput` at the end of the edge.""" + node: FunctionGraphExecutionOutput +} + +""" +A filter to be used against `FunctionGraphExecutionOutput` object types. All fields are combined with a logical ‘and.’ +""" +input FunctionGraphExecutionOutputFilter { + """Checks for all expressions in this list.""" + and: [FunctionGraphExecutionOutputFilter!] + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `data` field.""" + data: JSONFilter + + """Filter by the object’s `hash` field.""" + hash: Base64EncodedBinaryFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Negates the expression.""" + not: FunctionGraphExecutionOutputFilter + + """Checks for any expressions in this list.""" + or: [FunctionGraphExecutionOutputFilter!] + + """Filter by the object’s `scopeId` field.""" + scopeId: UUIDFilter +} + +"""An input for mutations affecting `FunctionGraphExecutionOutput`""" +input FunctionGraphExecutionOutputInput { + """Timestamp of output creation""" + createdAt: Datetime + + """The actual output payload from a completed node""" + data: JSON! + + """SHA-256 hash of the data JSONB — content-addressed deduplication""" + hash: Base64EncodedBinary! + + """Unique execution output identifier""" + id: UUID + + """Opaque store partition key for the global tier""" + scopeId: UUID! +} + +"""Methods to use when ordering `FunctionGraphExecutionOutput`.""" +enum FunctionGraphExecutionOutputOrderBy { + CREATED_AT_ASC + CREATED_AT_DESC + DATA_ASC + DATA_DESC + HASH_ASC + HASH_DESC + ID_ASC + ID_DESC + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + SCOPE_ID_ASC + SCOPE_ID_DESC +} + +""" +Represents an update to a `FunctionGraphExecutionOutput`. Fields that are set will be updated. +""" +input FunctionGraphExecutionOutputPatch { + """Timestamp of output creation""" + createdAt: Datetime + + """The actual output payload from a completed node""" + data: JSON + + """SHA-256 hash of the data JSONB — content-addressed deduplication""" + hash: Base64EncodedBinary + + """Unique execution output identifier""" + id: UUID + + """Opaque store partition key for the global tier""" + scopeId: UUID +} + +""" +Represents an update to a `FunctionGraphExecution`. Fields that are set will be updated. +""" +input FunctionGraphExecutionPatch { + """User actor propagated to asynchronous graph jobs""" + actorId: UUID + + """Execution completion timestamp""" + completedAt: Datetime + + """Index into execution_plan — tick only processes this wave""" + currentWave: Int + + """Pinned definitions store commit for deterministic evaluation""" + definitionsCommitId: UUID + + """Entity context propagated to asynchronous graph jobs""" + entityId: UUID + + """Scope discriminator propagated to asynchronous graph jobs""" + entityType: String + + """Machine-readable error code when status = failed""" + errorCode: String + + """Human-readable error description when status = failed""" + errorMessage: String + + """Pre-computed topological sort as array of wave objects""" + executionPlan: JSON + + """FK to the graph definition being executed""" + graphId: UUID + + """Unique execution identifier""" + id: UUID + + """Initial inputs provided at invocation time""" + inputPayload: JSON + + """ + Partition coordinate for the function invocation that launched this graph execution + """ + invocationCreatedAt: Datetime + + """Function invocation that launched this top-level graph execution""" + invocationId: UUID + + """ + Timestamp of the last real progress (node enqueue, node output, completion) — drives the activity-debounced watchdog + """ + lastProgressAt: Datetime + + """Maximum pending jobs before execution is failed (default 50)""" + maxPendingJobs: Int + + """Maximum ticks before execution is failed (default 100)""" + maxTicks: Int + + """ + Map of node_name → execution output id (content-addressed hash reference) + """ + nodeOutputs: JSON + + """Organization context propagated to asynchronous graph jobs""" + organizationId: UUID + + """ + Selected graphOutput portName values; NULL or empty returns all graph outputs + """ + outputNames: [String] + + """ + Target output boundary node name to resolve; NULL derives completion from the graph's graphOutput nodes + """ + outputNode: String + + """Final result extracted from terminal output node""" + outputPayload: JSON + + """Target output port name (default: value)""" + outputPort: String + + """Parent execution when this is a sub-execution""" + parentExecutionId: UUID + + """ + Function invocation parent assigned to node invocations spawned by this execution + """ + parentInvocationId: UUID + + """Node name in parent execution that spawned this sub-execution""" + parentNodeName: String + + """Principal identity propagated to asynchronous graph jobs""" + principalId: UUID + + """Opaque store partition key for the global tier""" + scopeId: UUID + + """Execution start timestamp""" + startedAt: Datetime + + """Lifecycle: pending → running → completed/failed/cancelled""" + status: String + + """Number of evaluate_step ticks executed""" + tickCount: Int + + """Absolute deadline — execution fails if still running after this time""" + timeoutAt: Datetime +} + +""" +A filter to be used against `FunctionGraph` object types. All fields are combined with a logical ‘and.’ +""" +input FunctionGraphFilter { + """Checks for all expressions in this list.""" + and: [FunctionGraphFilter!] + + """Filter by the object’s `context` field.""" + context: StringFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `createdBy` field.""" + createdBy: UUIDFilter + + """Filter by the object’s `definitionsCommitId` field.""" + definitionsCommitId: UUIDFilter + + """Filter by the object’s `description` field.""" + description: StringFilter + + """Filter by the object’s `functionGraphExecutionsByGraphId` relation.""" + functionGraphExecutionsByGraphId: FunctionGraphToManyFunctionGraphExecutionFilter + + """`functionGraphExecutionsByGraphId` exist.""" + functionGraphExecutionsByGraphIdExist: Boolean + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `isValid` field.""" + isValid: BooleanFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """Negates the expression.""" + not: FunctionGraphFilter + + """Checks for any expressions in this list.""" + or: [FunctionGraphFilter!] + + """ + Filter by the object’s `platformFunctionDefinitionsByGraphId` relation. + """ + platformFunctionDefinitionsByGraphId: FunctionGraphToManyPlatformFunctionDefinitionFilter + + """`platformFunctionDefinitionsByGraphId` exist.""" + platformFunctionDefinitionsByGraphIdExist: Boolean + + """ + Filter by the object’s `platformRepositoryWorkflowsByGraphId` relation. + """ + platformRepositoryWorkflowsByGraphId: FunctionGraphToManyPlatformRepositoryWorkflowFilter + + """`platformRepositoryWorkflowsByGraphId` exist.""" + platformRepositoryWorkflowsByGraphIdExist: Boolean + + """Filter by the object’s `scopeId` field.""" + scopeId: UUIDFilter + + """Filter by the object’s `storeId` field.""" + storeId: UUIDFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + + """Filter by the object’s `validationErrors` field.""" + validationErrors: JSONFilter +} + +""" +Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children +""" +type FunctionGraphObject { + """Timestamp of object creation""" + createdAt: Datetime + + """Payload data for this object node""" + data: JSON + + """Content-addressed UUID v5 — deterministic hash of (data, kids, ktree)""" + id: UUID! + + """Ordered array of child object IDs""" + kids: [UUID] + + """Ordered array of child path names (parallel to kids)""" + ktree: [String] + + """Opaque store partition key for the global tier""" + scopeId: UUID! +} + +"""A connection to a list of `FunctionGraphObject` values.""" +type FunctionGraphObjectConnection { + """ + A list of edges which contains the `FunctionGraphObject` and cursor to aid in pagination. + """ + edges: [FunctionGraphObjectEdge]! + + """A list of `FunctionGraphObject` objects.""" + nodes: [FunctionGraphObject]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `FunctionGraphObject` you could get from the connection. + """ + totalCount: Int! +} + +"""A `FunctionGraphObject` edge in the connection.""" +type FunctionGraphObjectEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `FunctionGraphObject` at the end of the edge.""" + node: FunctionGraphObject +} + +""" +A filter to be used against `FunctionGraphObject` object types. All fields are combined with a logical ‘and.’ +""" +input FunctionGraphObjectFilter { + """Checks for all expressions in this list.""" + and: [FunctionGraphObjectFilter!] + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `data` field.""" + data: JSONFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `kids` field.""" + kids: UUIDListFilter + + """Filter by the object’s `ktree` field.""" + ktree: StringListFilter + + """Negates the expression.""" + not: FunctionGraphObjectFilter + + """Checks for any expressions in this list.""" + or: [FunctionGraphObjectFilter!] + + """Filter by the object’s `scopeId` field.""" + scopeId: UUIDFilter +} + +"""An input for mutations affecting `FunctionGraphObject`""" +input FunctionGraphObjectInput { + """Timestamp of object creation""" + createdAt: Datetime + + """Payload data for this object node""" + data: JSON + + """Content-addressed UUID v5 — deterministic hash of (data, kids, ktree)""" + id: UUID! + + """Ordered array of child object IDs""" + kids: [UUID] + + """Ordered array of child path names (parallel to kids)""" + ktree: [String] + + """Opaque store partition key for the global tier""" + scopeId: UUID! +} + +"""Methods to use when ordering `FunctionGraphObject`.""" +enum FunctionGraphObjectOrderBy { + CREATED_AT_ASC + CREATED_AT_DESC + DATA_ASC + DATA_DESC + ID_ASC + ID_DESC + KIDS_ASC + KIDS_DESC + KTREE_ASC + KTREE_DESC + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + SCOPE_ID_ASC + SCOPE_ID_DESC +} + +""" +Represents an update to a `FunctionGraphObject`. Fields that are set will be updated. +""" +input FunctionGraphObjectPatch { + """Timestamp of object creation""" + createdAt: Datetime + + """Payload data for this object node""" + data: JSON + + """Content-addressed UUID v5 — deterministic hash of (data, kids, ktree)""" + id: UUID + + """Ordered array of child object IDs""" + kids: [UUID] + + """Ordered array of child path names (parallel to kids)""" + ktree: [String] + + """Opaque store partition key for the global tier""" + scopeId: UUID +} + +"""Methods to use when ordering `FunctionGraph`.""" +enum FunctionGraphOrderBy { + CONTEXT_ASC + CONTEXT_DESC + CREATED_AT_ASC + CREATED_AT_DESC + CREATED_BY_ASC + CREATED_BY_DESC + DEFINITIONS_COMMIT_ID_ASC + DEFINITIONS_COMMIT_ID_DESC + DESCRIPTION_ASC + DESCRIPTION_DESC + ID_ASC + ID_DESC + IS_VALID_ASC + IS_VALID_DESC + NAME_ASC + NAME_DESC + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + SCOPE_ID_ASC + SCOPE_ID_DESC + STORE_ID_ASC + STORE_ID_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + VALIDATION_ERRORS_ASC + VALIDATION_ERRORS_DESC +} + +""" +Represents an update to a `FunctionGraph`. Fields that are set will be updated. +""" +input FunctionGraphPatch { + """Evaluator/runtime context (function, js, sql, system)""" + context: String + + """Timestamp of graph creation""" + createdAt: Datetime + + """Actor who created this graph""" + createdBy: UUID + + """Pinned definitions store commit for deterministic evaluation""" + definitionsCommitId: UUID + + """Human-readable description of the graph""" + description: String + + """Unique graph identifier""" + id: UUID + + """Whether graph passes structural validation""" + isValid: Boolean + + """Graph name (unique per database)""" + name: String + + """Opaque store partition key for the global tier""" + scopeId: UUID + + """Graph store (Merkle store) holding the graph definition""" + storeId: UUID + + """Timestamp of last modification""" + updatedAt: Datetime + + """Array of validation error objects when is_valid = false""" + validationErrors: JSON +} + +"""Branch heads — mutable pointers into the commit chain""" +type FunctionGraphRef { + """Commit this ref points to""" + commitId: UUID + + """Unique ref identifier""" + id: UUID! + + """Ref name (e.g. HEAD, main)""" + name: String! + + """Opaque store partition key for the global tier""" + scopeId: UUID! + + """Store this ref belongs to""" + storeId: UUID! +} + +"""A connection to a list of `FunctionGraphRef` values.""" +type FunctionGraphRefConnection { + """ + A list of edges which contains the `FunctionGraphRef` and cursor to aid in pagination. + """ + edges: [FunctionGraphRefEdge]! + + """A list of `FunctionGraphRef` objects.""" + nodes: [FunctionGraphRef]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `FunctionGraphRef` you could get from the connection. + """ + totalCount: Int! +} + +"""A `FunctionGraphRef` edge in the connection.""" +type FunctionGraphRefEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `FunctionGraphRef` at the end of the edge.""" + node: FunctionGraphRef +} + +""" +A filter to be used against `FunctionGraphRef` object types. All fields are combined with a logical ‘and.’ +""" +input FunctionGraphRefFilter { + """Checks for all expressions in this list.""" + and: [FunctionGraphRefFilter!] + + """Filter by the object’s `commitId` field.""" + commitId: UUIDFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """Negates the expression.""" + not: FunctionGraphRefFilter + + """Checks for any expressions in this list.""" + or: [FunctionGraphRefFilter!] + + """Filter by the object’s `scopeId` field.""" + scopeId: UUIDFilter + + """Filter by the object’s `storeId` field.""" + storeId: UUIDFilter +} + +"""An input for mutations affecting `FunctionGraphRef`""" +input FunctionGraphRefInput { + """Commit this ref points to""" + commitId: UUID + + """Unique ref identifier""" + id: UUID + + """Ref name (e.g. HEAD, main)""" + name: String! + + """Opaque store partition key for the global tier""" + scopeId: UUID! + + """Store this ref belongs to""" + storeId: UUID! +} + +"""Methods to use when ordering `FunctionGraphRef`.""" +enum FunctionGraphRefOrderBy { + COMMIT_ID_ASC + COMMIT_ID_DESC + ID_ASC + ID_DESC + NAME_ASC + NAME_DESC + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + SCOPE_ID_ASC + SCOPE_ID_DESC + STORE_ID_ASC + STORE_ID_DESC +} + +""" +Represents an update to a `FunctionGraphRef`. Fields that are set will be updated. +""" +input FunctionGraphRefPatch { + """Commit this ref points to""" + commitId: UUID + + """Unique ref identifier""" + id: UUID + + """Ref name (e.g. HEAD, main)""" + name: String + + """Opaque store partition key for the global tier""" + scopeId: UUID + + """Store this ref belongs to""" + storeId: UUID +} + +""" +Named stores — one per version-controlled tree (e.g. one graph, one definition set) +""" +type FunctionGraphStore { + """Timestamp of store creation""" + createdAt: Datetime + + """Current root object hash of this store""" + hash: UUID + + """Unique store identifier""" + id: UUID! + + """Human-readable store name""" + name: String! + + """Opaque store partition key for the global tier""" + scopeId: UUID! +} + +"""A connection to a list of `FunctionGraphStore` values.""" +type FunctionGraphStoreConnection { + """ + A list of edges which contains the `FunctionGraphStore` and cursor to aid in pagination. + """ + edges: [FunctionGraphStoreEdge]! + + """A list of `FunctionGraphStore` objects.""" + nodes: [FunctionGraphStore]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `FunctionGraphStore` you could get from the connection. + """ + totalCount: Int! +} + +"""A `FunctionGraphStore` edge in the connection.""" +type FunctionGraphStoreEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `FunctionGraphStore` at the end of the edge.""" + node: FunctionGraphStore +} + +""" +A filter to be used against `FunctionGraphStore` object types. All fields are combined with a logical ‘and.’ +""" +input FunctionGraphStoreFilter { + """Checks for all expressions in this list.""" + and: [FunctionGraphStoreFilter!] + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `hash` field.""" + hash: UUIDFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """Negates the expression.""" + not: FunctionGraphStoreFilter + + """Checks for any expressions in this list.""" + or: [FunctionGraphStoreFilter!] + + """Filter by the object’s `scopeId` field.""" + scopeId: UUIDFilter +} + +"""An input for mutations affecting `FunctionGraphStore`""" +input FunctionGraphStoreInput { + """Timestamp of store creation""" + createdAt: Datetime + + """Current root object hash of this store""" + hash: UUID + + """Unique store identifier""" + id: UUID + + """Human-readable store name""" + name: String! + + """Opaque store partition key for the global tier""" + scopeId: UUID! +} + +"""Methods to use when ordering `FunctionGraphStore`.""" +enum FunctionGraphStoreOrderBy { + CREATED_AT_ASC + CREATED_AT_DESC + HASH_ASC + HASH_DESC + ID_ASC + ID_DESC + NAME_ASC + NAME_DESC + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + SCOPE_ID_ASC + SCOPE_ID_DESC +} + +""" +Represents an update to a `FunctionGraphStore`. Fields that are set will be updated. +""" +input FunctionGraphStorePatch { + """Timestamp of store creation""" + createdAt: Datetime + + """Current root object hash of this store""" + hash: UUID + + """Unique store identifier""" + id: UUID + + """Human-readable store name""" + name: String + + """Opaque store partition key for the global tier""" + scopeId: UUID +} + +""" +A filter to be used against many `FunctionGraphExecution` object types. All fields are combined with a logical ‘and.’ +""" +input FunctionGraphToManyFunctionGraphExecutionFilter { + """Filters to entities where every related entity matches.""" + every: FunctionGraphExecutionFilter + + """Filters to entities where no related entity matches.""" + none: FunctionGraphExecutionFilter + + """Filters to entities where at least one related entity matches.""" + some: FunctionGraphExecutionFilter +} + +""" +A filter to be used against many `PlatformFunctionDefinition` object types. All fields are combined with a logical ‘and.’ +""" +input FunctionGraphToManyPlatformFunctionDefinitionFilter { + """Filters to entities where every related entity matches.""" + every: PlatformFunctionDefinitionFilter + + """Filters to entities where no related entity matches.""" + none: PlatformFunctionDefinitionFilter + + """Filters to entities where at least one related entity matches.""" + some: PlatformFunctionDefinitionFilter +} + +""" +A filter to be used against many `PlatformRepositoryWorkflow` object types. All fields are combined with a logical ‘and.’ +""" +input FunctionGraphToManyPlatformRepositoryWorkflowFilter { + """Filters to entities where every related entity matches.""" + every: PlatformRepositoryWorkflowFilter + + """Filters to entities where no related entity matches.""" + none: PlatformRepositoryWorkflowFilter + + """Filters to entities where at least one related entity matches.""" + some: PlatformRepositoryWorkflowFilter +} + +""" +Function invocation log — INSERT to call a function (business-layer, metered). Linked to definitions via function_definition_id FK, with task_identifier as the denormalized routing/audit slug. +""" +type FunctionInvocation { + """Who triggered the invocation; NULL only when no human actor was proven""" + actorId: UUID + + """ + Reads a single `FunctionApiBinding` that is related to this `FunctionInvocation`. + """ + apiBinding: FunctionApiBinding + + """ + API binding this invocation arrived through (NULL for cron/graph/system/worker paths) + """ + apiBindingId: UUID + + """ + Invocation trigger channel: api, graph, cron, sync, webhook, trigger, or worker + """ + channel: String! + + """When execution completed""" + completedAt: Datetime + + """Invocation creation timestamp (partition key)""" + createdAt: Datetime! + + """Acting principal (agent, API key, or user) who created this record""" + createdByPrincipal: UUID + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! + + """ + Scope that owns function_definition_id (e.g. app/org/database/platform) — the per-scope definitions table the resolver selected + """ + definitionScope: String + + """Wall-clock execution time in milliseconds""" + durationMs: Int + + """Entity identity propagated with the invocation""" + entityId: UUID + + """Entity type propagated with the invocation""" + entityType: String + + """ + Error message when status is failed, or the reason the run was skipped when status is skipped + """ + error: String + + """ + Function definition this invocation ran (soft cross-scope ref; paired with definition_scope). task_identifier stays as the audit slug. + """ + functionDefinitionId: UUID + + """Groups all node invocations from a single flow graph execution""" + graphExecutionId: UUID + + """Unique invocation identifier""" + id: UUID! + + """FK to app_jobs.jobs — the underlying transport""" + jobId: BigInt + + """Organization identity propagated with the invocation""" + organizationId: UUID + + """Parent invocation when this is a child node of a flow graph execution""" + parentInvocationId: UUID + + """Function input payload""" + payload: JSON + + """Principal identity that triggered the invocation""" + principalId: UUID + + """ + Non-secret channel-specific invocation provenance (route/binding/event identifiers only) + """ + provenance: JSON! + + """Function return value (success) or structured error (failure)""" + result: JSON + + """When execution started""" + startedAt: Datetime + + """ + Lifecycle: pending → running → completed/failed/cancelled; skipped = never ran (a gate rejected the intended run) + """ + status: String! + + """ + Function routing slug (category:name). Denormalized from the definition — must match the row referenced by function_definition_id when that is set. + """ + taskIdentifier: String! +} + +""" +Function invocation attempts — one row per worker attempt (including failed retries) with duration and error detail +""" +type FunctionInvocationAttempt { + """Who triggered the invocation; NULL only when no human actor was proven""" + actorId: UUID + + """1-based attempt number for this invocation""" + attempt: Int! + + """When the attempt result was recorded (partition key)""" + createdAt: Datetime! + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! + + """Wall-clock attempt time in milliseconds""" + durationMs: Int + + """Error message when the attempt failed""" + error: String + + """Structured error context (stack, code, provider response)""" + errorDetail: JSON + + """Unique attempt identifier""" + id: UUID! + + """ + created_at of the referenced invocation (partition-pruned lookups against the invocations PK) + """ + invocationCreatedAt: Datetime! + + """ + Invocation this attempt belongs to (soft reference paired with invocation_created_at) + """ + invocationId: UUID! + + """When the attempt began executing""" + startedAt: Datetime + + """Whether this attempt completed successfully""" + success: Boolean! + + """Function routing slug (denormalized from the invocation)""" + taskIdentifier: String! +} + +"""A connection to a list of `FunctionInvocationAttempt` values.""" +type FunctionInvocationAttemptConnection { + """ + A list of edges which contains the `FunctionInvocationAttempt` and cursor to aid in pagination. + """ + edges: [FunctionInvocationAttemptEdge]! + + """A list of `FunctionInvocationAttempt` objects.""" + nodes: [FunctionInvocationAttempt]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `FunctionInvocationAttempt` you could get from the connection. + """ + totalCount: Int! +} + +"""A `FunctionInvocationAttempt` edge in the connection.""" +type FunctionInvocationAttemptEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `FunctionInvocationAttempt` at the end of the edge.""" + node: FunctionInvocationAttempt +} + +""" +A filter to be used against `FunctionInvocationAttempt` object types. All fields are combined with a logical ‘and.’ +""" +input FunctionInvocationAttemptFilter { + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter + + """Checks for all expressions in this list.""" + and: [FunctionInvocationAttemptFilter!] + + """Filter by the object’s `attempt` field.""" + attempt: IntFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `durationMs` field.""" + durationMs: IntFilter + + """Filter by the object’s `error` field.""" + error: StringFilter + + """Filter by the object’s `errorDetail` field.""" + errorDetail: JSONFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `invocationCreatedAt` field.""" + invocationCreatedAt: DatetimeFilter + + """Filter by the object’s `invocationId` field.""" + invocationId: UUIDFilter + + """Negates the expression.""" + not: FunctionInvocationAttemptFilter + + """Checks for any expressions in this list.""" + or: [FunctionInvocationAttemptFilter!] + + """Filter by the object’s `startedAt` field.""" + startedAt: DatetimeFilter + + """Filter by the object’s `success` field.""" + success: BooleanFilter + + """Filter by the object’s `taskIdentifier` field.""" + taskIdentifier: StringFilter +} + +"""An input for mutations affecting `FunctionInvocationAttempt`""" +input FunctionInvocationAttemptInput { + """Who triggered the invocation; NULL only when no human actor was proven""" + actorId: UUID + + """1-based attempt number for this invocation""" + attempt: Int! + + """When the attempt result was recorded (partition key)""" + createdAt: Datetime + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! + + """Wall-clock attempt time in milliseconds""" + durationMs: Int + + """Error message when the attempt failed""" + error: String + + """Structured error context (stack, code, provider response)""" + errorDetail: JSON + + """Unique attempt identifier""" + id: UUID + + """ + created_at of the referenced invocation (partition-pruned lookups against the invocations PK) + """ + invocationCreatedAt: Datetime! + + """ + Invocation this attempt belongs to (soft reference paired with invocation_created_at) + """ + invocationId: UUID! + + """When the attempt began executing""" + startedAt: Datetime + + """Whether this attempt completed successfully""" + success: Boolean! + + """Function routing slug (denormalized from the invocation)""" + taskIdentifier: String! +} + +"""Methods to use when ordering `FunctionInvocationAttempt`.""" +enum FunctionInvocationAttemptOrderBy { + ACTOR_ID_ASC + ACTOR_ID_DESC + ATTEMPT_ASC + ATTEMPT_DESC + CREATED_AT_ASC + CREATED_AT_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + DURATION_MS_ASC + DURATION_MS_DESC + ERROR_ASC + ERROR_DESC + ERROR_DETAIL_ASC + ERROR_DETAIL_DESC + ID_ASC + ID_DESC + INVOCATION_CREATED_AT_ASC + INVOCATION_CREATED_AT_DESC + INVOCATION_ID_ASC + INVOCATION_ID_DESC + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + STARTED_AT_ASC + STARTED_AT_DESC + SUCCESS_ASC + SUCCESS_DESC + TASK_IDENTIFIER_ASC + TASK_IDENTIFIER_DESC +} + +""" +Represents an update to a `FunctionInvocationAttempt`. Fields that are set will be updated. +""" +input FunctionInvocationAttemptPatch { + """Who triggered the invocation; NULL only when no human actor was proven""" + actorId: UUID + + """1-based attempt number for this invocation""" + attempt: Int + + """When the attempt result was recorded (partition key)""" + createdAt: Datetime + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID + + """Wall-clock attempt time in milliseconds""" + durationMs: Int + + """Error message when the attempt failed""" + error: String + + """Structured error context (stack, code, provider response)""" + errorDetail: JSON + + """Unique attempt identifier""" + id: UUID + + """ + created_at of the referenced invocation (partition-pruned lookups against the invocations PK) + """ + invocationCreatedAt: Datetime + + """ + Invocation this attempt belongs to (soft reference paired with invocation_created_at) + """ + invocationId: UUID + + """When the attempt began executing""" + startedAt: Datetime + + """Whether this attempt completed successfully""" + success: Boolean + + """Function routing slug (denormalized from the invocation)""" + taskIdentifier: String +} + +"""A connection to a list of `FunctionInvocation` values.""" +type FunctionInvocationConnection { + """ + A list of edges which contains the `FunctionInvocation` and cursor to aid in pagination. + """ + edges: [FunctionInvocationEdge]! + + """A list of `FunctionInvocation` objects.""" + nodes: [FunctionInvocation]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `FunctionInvocation` you could get from the connection. + """ + totalCount: Int! +} + +"""A `FunctionInvocation` edge in the connection.""" +type FunctionInvocationEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `FunctionInvocation` at the end of the edge.""" + node: FunctionInvocation +} + +""" +A filter to be used against `FunctionInvocation` object types. All fields are combined with a logical ‘and.’ +""" +input FunctionInvocationFilter { + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter + + """Checks for all expressions in this list.""" + and: [FunctionInvocationFilter!] + + """Filter by the object’s `apiBinding` relation.""" + apiBinding: FunctionApiBindingFilter + + """A related `apiBinding` exists.""" + apiBindingExists: Boolean + + """Filter by the object’s `apiBindingId` field.""" + apiBindingId: UUIDFilter + + """Filter by the object’s `channel` field.""" + channel: StringFilter + + """Filter by the object’s `completedAt` field.""" + completedAt: DatetimeFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `createdByPrincipal` field.""" + createdByPrincipal: UUIDFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `definitionScope` field.""" + definitionScope: StringFilter + + """Filter by the object’s `durationMs` field.""" + durationMs: IntFilter + + """Filter by the object’s `entityId` field.""" + entityId: UUIDFilter + + """Filter by the object’s `entityType` field.""" + entityType: StringFilter + + """Filter by the object’s `error` field.""" + error: StringFilter + + """Filter by the object’s `functionDefinitionId` field.""" + functionDefinitionId: UUIDFilter + + """Filter by the object’s `graphExecutionId` field.""" + graphExecutionId: UUIDFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `jobId` field.""" + jobId: BigIntFilter + + """Negates the expression.""" + not: FunctionInvocationFilter + + """Checks for any expressions in this list.""" + or: [FunctionInvocationFilter!] + + """Filter by the object’s `organizationId` field.""" + organizationId: UUIDFilter + + """Filter by the object’s `parentInvocationId` field.""" + parentInvocationId: UUIDFilter + + """Filter by the object’s `payload` field.""" + payload: JSONFilter + + """Filter by the object’s `principalId` field.""" + principalId: UUIDFilter + + """Filter by the object’s `provenance` field.""" + provenance: JSONFilter + + """Filter by the object’s `result` field.""" + result: JSONFilter + + """Filter by the object’s `startedAt` field.""" + startedAt: DatetimeFilter + + """Filter by the object’s `status` field.""" + status: StringFilter + + """Filter by the object’s `taskIdentifier` field.""" + taskIdentifier: StringFilter +} + +"""An input for mutations affecting `FunctionInvocation`""" +input FunctionInvocationInput { + """Who triggered the invocation; NULL only when no human actor was proven""" + actorId: UUID + + """ + API binding this invocation arrived through (NULL for cron/graph/system/worker paths) + """ + apiBindingId: UUID + + """ + Invocation trigger channel: api, graph, cron, sync, webhook, trigger, or worker + """ + channel: String! + + """When execution completed""" + completedAt: Datetime + + """Invocation creation timestamp (partition key)""" + createdAt: Datetime + + """Acting principal (agent, API key, or user) who created this record""" + createdByPrincipal: UUID + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! + + """ + Scope that owns function_definition_id (e.g. app/org/database/platform) — the per-scope definitions table the resolver selected + """ + definitionScope: String + + """Wall-clock execution time in milliseconds""" + durationMs: Int + + """Entity identity propagated with the invocation""" + entityId: UUID + + """Entity type propagated with the invocation""" + entityType: String + + """ + Error message when status is failed, or the reason the run was skipped when status is skipped + """ + error: String + + """ + Function definition this invocation ran (soft cross-scope ref; paired with definition_scope). task_identifier stays as the audit slug. + """ + functionDefinitionId: UUID + + """Groups all node invocations from a single flow graph execution""" + graphExecutionId: UUID + + """Unique invocation identifier""" + id: UUID + + """FK to app_jobs.jobs — the underlying transport""" + jobId: BigInt + + """Organization identity propagated with the invocation""" + organizationId: UUID + + """Parent invocation when this is a child node of a flow graph execution""" + parentInvocationId: UUID + + """Function input payload""" + payload: JSON + + """Principal identity that triggered the invocation""" + principalId: UUID + + """ + Non-secret channel-specific invocation provenance (route/binding/event identifiers only) + """ + provenance: JSON + + """Function return value (success) or structured error (failure)""" + result: JSON + + """When execution started""" + startedAt: Datetime + + """ + Lifecycle: pending → running → completed/failed/cancelled; skipped = never ran (a gate rejected the intended run) + """ + status: String + + """ + Function routing slug (category:name). Denormalized from the definition — must match the row referenced by function_definition_id when that is set. + """ + taskIdentifier: String! +} + +"""Methods to use when ordering `FunctionInvocation`.""" +enum FunctionInvocationOrderBy { + ACTOR_ID_ASC + ACTOR_ID_DESC + API_BINDING_ID_ASC + API_BINDING_ID_DESC + CHANNEL_ASC + CHANNEL_DESC + COMPLETED_AT_ASC + COMPLETED_AT_DESC + CREATED_AT_ASC + CREATED_AT_DESC + CREATED_BY_PRINCIPAL_ASC + CREATED_BY_PRINCIPAL_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + DEFINITION_SCOPE_ASC + DEFINITION_SCOPE_DESC + DURATION_MS_ASC + DURATION_MS_DESC + ENTITY_ID_ASC + ENTITY_ID_DESC + ENTITY_TYPE_ASC + ENTITY_TYPE_DESC + ERROR_ASC + ERROR_DESC + FUNCTION_DEFINITION_ID_ASC + FUNCTION_DEFINITION_ID_DESC + GRAPH_EXECUTION_ID_ASC + GRAPH_EXECUTION_ID_DESC + ID_ASC + ID_DESC + JOB_ID_ASC + JOB_ID_DESC + NATURAL + ORGANIZATION_ID_ASC + ORGANIZATION_ID_DESC + PARENT_INVOCATION_ID_ASC + PARENT_INVOCATION_ID_DESC + PAYLOAD_ASC + PAYLOAD_DESC + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + PRINCIPAL_ID_ASC + PRINCIPAL_ID_DESC + PROVENANCE_ASC + PROVENANCE_DESC + RESULT_ASC + RESULT_DESC + STARTED_AT_ASC + STARTED_AT_DESC + STATUS_ASC + STATUS_DESC + TASK_IDENTIFIER_ASC + TASK_IDENTIFIER_DESC +} + +""" +Represents an update to a `FunctionInvocation`. Fields that are set will be updated. +""" +input FunctionInvocationPatch { + """Who triggered the invocation; NULL only when no human actor was proven""" + actorId: UUID + + """ + API binding this invocation arrived through (NULL for cron/graph/system/worker paths) + """ + apiBindingId: UUID + + """ + Invocation trigger channel: api, graph, cron, sync, webhook, trigger, or worker + """ + channel: String + + """When execution completed""" + completedAt: Datetime + + """Invocation creation timestamp (partition key)""" + createdAt: Datetime + + """Acting principal (agent, API key, or user) who created this record""" + createdByPrincipal: UUID + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID + + """ + Scope that owns function_definition_id (e.g. app/org/database/platform) — the per-scope definitions table the resolver selected + """ + definitionScope: String + + """Wall-clock execution time in milliseconds""" + durationMs: Int + + """Entity identity propagated with the invocation""" + entityId: UUID + + """Entity type propagated with the invocation""" + entityType: String + + """ + Error message when status is failed, or the reason the run was skipped when status is skipped + """ + error: String + + """ + Function definition this invocation ran (soft cross-scope ref; paired with definition_scope). task_identifier stays as the audit slug. + """ + functionDefinitionId: UUID + + """Groups all node invocations from a single flow graph execution""" + graphExecutionId: UUID + + """Unique invocation identifier""" + id: UUID + + """FK to app_jobs.jobs — the underlying transport""" + jobId: BigInt + + """Organization identity propagated with the invocation""" + organizationId: UUID + + """Parent invocation when this is a child node of a flow graph execution""" + parentInvocationId: UUID + + """Function input payload""" + payload: JSON + + """Principal identity that triggered the invocation""" + principalId: UUID + + """ + Non-secret channel-specific invocation provenance (route/binding/event identifiers only) + """ + provenance: JSON + + """Function return value (success) or structured error (failure)""" + result: JSON + + """When execution started""" + startedAt: Datetime + + """ + Lifecycle: pending → running → completed/failed/cancelled; skipped = never ran (a gate rejected the intended run) + """ + status: String + + """ + Function routing slug (category:name). Denormalized from the definition — must match the row referenced by function_definition_id when that is set. + """ + taskIdentifier: String +} + +"""All input for the `functionInvocationsCreateSync` mutation.""" +input FunctionInvocationsCreateSyncInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + entityId: UUID + payload: JSON + provenance: JSON + routeBindingId: UUID + taskIdentifier: String +} + +"""The output of our `functionInvocationsCreateSync` mutation.""" +type FunctionInvocationsCreateSyncPayload { + """ + The 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 `FunctionInvocation`. May be used by Relay 1.""" + functionInvocationEdge( + """The method to use when ordering `FunctionInvocation`.""" + orderBy: [FunctionInvocationOrderBy!]! = [PRIMARY_KEY_ASC] + ): FunctionInvocationEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + result: FunctionInvocation +} + +"""A connection to a list of `GetAllTreeNodesRecord` values.""" +type GetAllTreeNodesConnection { + """ + A list of edges which contains the `GetAllTreeNodesRecord` and cursor to aid in pagination. + """ + edges: [GetAllTreeNodesEdge]! + + """A list of `GetAllTreeNodesRecord` objects.""" + nodes: [GetAllTreeNodesRecord]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `GetAllTreeNodesRecord` you could get from the connection. + """ + totalCount: Int! +} + +"""A `GetAllTreeNodesRecord` edge in the connection.""" +type GetAllTreeNodesEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `GetAllTreeNodesRecord` at the end of the edge.""" + node: GetAllTreeNodesRecord +} + +type GetAllTreeNodesRecord { + data: JSON + path: [String] +} + +""" +Container image catalog: images available to run as functions, resources, and builds +""" +type Image { + createdAt: Datetime + createdByPrincipal: UUID + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! + + """Human-readable description of what this image runs""" + description: String + + """Content address (sha256:...) pinning this image, when known""" + digest: String + + """ + When this catalog row becomes eligible for retention cleanup (NULL = kept forever) + """ + expiresAt: Datetime + id: UUID! + + """Reads and enables pagination through a set of `ImageGrant`.""" + imageGrants( + """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 `ImageGrant`.""" + orderBy: [ImageGrantOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: ImageGrantFilter + ): ImageGrantConnection! + + """Whether this image is published for use by any scope""" + isPublished: Boolean! + + """Labels for selecting images (architecture, capabilities, lane)""" + labels: JSON! + + """Freeform metadata (build provenance, source repository, SBOM pointer)""" + metadata: JSON + + """Human-readable image name (e.g. node-runtime)""" + name: String! + + """User who registered this catalog row""" + ownerId: UUID + + """Whether this image is reserved for platform-internal use""" + platformOnly: Boolean! + + """ + Registry host serving this image (NULL means the platform default registry) + """ + registryHost: String + + """Repository path within the registry (e.g. constructiveio/worker)""" + repository: String! + + """Runtime this image implements (e.g. nodejs, python, custom)""" + runtime: String + + """Mutable tag this row addresses""" + tag: String! + updatedAt: Datetime + updatedByPrincipal: UUID +} + +"""A connection to a list of `Image` values.""" +type ImageConnection { + """ + A list of edges which contains the `Image` and cursor to aid in pagination. + """ + edges: [ImageEdge]! + + """A list of `Image` objects.""" + nodes: [Image]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `Image` you could get from the connection.""" + totalCount: Int! +} + +"""A `Image` edge in the connection.""" +type ImageEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `Image` at the end of the edge.""" + node: Image +} + +""" +A filter to be used against `Image` object types. All fields are combined with a logical ‘and.’ +""" +input ImageFilter { + """Checks for all expressions in this list.""" + and: [ImageFilter!] + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `createdByPrincipal` field.""" + createdByPrincipal: UUIDFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `description` field.""" + description: StringFilter + + """Filter by the object’s `digest` field.""" + digest: StringFilter + + """Filter by the object’s `expiresAt` field.""" + expiresAt: DatetimeFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `imageGrants` relation.""" + imageGrants: ImageToManyImageGrantFilter + + """`imageGrants` exist.""" + imageGrantsExist: Boolean + + """Filter by the object’s `isPublished` field.""" + isPublished: BooleanFilter + + """Filter by the object’s `labels` field.""" + labels: JSONFilter + + """Filter by the object’s `metadata` field.""" + metadata: JSONFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """Negates the expression.""" + not: ImageFilter + + """Checks for any expressions in this list.""" + or: [ImageFilter!] + + """Filter by the object’s `ownerId` field.""" + ownerId: UUIDFilter + + """Filter by the object’s `platformOnly` field.""" + platformOnly: BooleanFilter + + """Filter by the object’s `registryHost` field.""" + registryHost: StringFilter + + """Filter by the object’s `repository` field.""" + repository: StringFilter + + """Filter by the object’s `runtime` field.""" + runtime: StringFilter + + """Filter by the object’s `tag` field.""" + tag: StringFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + + """Filter by the object’s `updatedByPrincipal` field.""" + updatedByPrincipal: UUIDFilter +} + +"""Grants that make a catalog image usable by one scope""" +type ImageGrant { + """Registry actions this grant allows (pull, push, delete)""" + actions: [String]! + createdAt: Datetime + createdByPrincipal: UUID + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! + + """When this grant stops applying (NULL never expires)""" + expiresAt: Datetime + + """User who issued this grant""" + grantedBy: UUID + + """Scope key of the grantee (a database_id or an entity_id)""" + granteeKey: UUID! + + """Scope tier of the grantee (database, org, app, platform)""" + granteeScope: String! + id: UUID! + + """Reads a single `Image` that is related to this `ImageGrant`.""" + image: Image + + """Catalog image this grant applies to""" + imageId: UUID! + updatedAt: Datetime + updatedByPrincipal: UUID +} + +"""A connection to a list of `ImageGrant` values.""" +type ImageGrantConnection { + """ + A list of edges which contains the `ImageGrant` and cursor to aid in pagination. + """ + edges: [ImageGrantEdge]! + + """A list of `ImageGrant` objects.""" + nodes: [ImageGrant]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `ImageGrant` you could get from the connection.""" + totalCount: Int! +} + +"""A `ImageGrant` edge in the connection.""" +type ImageGrantEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `ImageGrant` at the end of the edge.""" + node: ImageGrant +} + +""" +A filter to be used against `ImageGrant` object types. All fields are combined with a logical ‘and.’ +""" +input ImageGrantFilter { + """Filter by the object’s `actions` field.""" + actions: StringListFilter + + """Checks for all expressions in this list.""" + and: [ImageGrantFilter!] + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `createdByPrincipal` field.""" + createdByPrincipal: UUIDFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `expiresAt` field.""" + expiresAt: DatetimeFilter + + """Filter by the object’s `grantedBy` field.""" + grantedBy: UUIDFilter + + """Filter by the object’s `granteeKey` field.""" + granteeKey: UUIDFilter + + """Filter by the object’s `granteeScope` field.""" + granteeScope: StringFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `image` relation.""" + image: ImageFilter + + """Filter by the object’s `imageId` field.""" + imageId: UUIDFilter + + """Negates the expression.""" + not: ImageGrantFilter + + """Checks for any expressions in this list.""" + or: [ImageGrantFilter!] + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + + """Filter by the object’s `updatedByPrincipal` field.""" + updatedByPrincipal: UUIDFilter +} + +"""An input for mutations affecting `ImageGrant`""" +input ImageGrantInput { + """Registry actions this grant allows (pull, push, delete)""" + actions: [String] + createdAt: Datetime + createdByPrincipal: UUID + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! + + """When this grant stops applying (NULL never expires)""" + expiresAt: Datetime + + """User who issued this grant""" + grantedBy: UUID + + """Scope key of the grantee (a database_id or an entity_id)""" + granteeKey: UUID! + + """Scope tier of the grantee (database, org, app, platform)""" + granteeScope: String! + id: UUID + + """Catalog image this grant applies to""" + imageId: UUID! + updatedAt: Datetime + updatedByPrincipal: UUID +} + +"""Methods to use when ordering `ImageGrant`.""" +enum ImageGrantOrderBy { + ACTIONS_ASC + ACTIONS_DESC + CREATED_AT_ASC + CREATED_AT_DESC + CREATED_BY_PRINCIPAL_ASC + CREATED_BY_PRINCIPAL_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + EXPIRES_AT_ASC + EXPIRES_AT_DESC + GRANTED_BY_ASC + GRANTED_BY_DESC + GRANTEE_KEY_ASC + GRANTEE_KEY_DESC + GRANTEE_SCOPE_ASC + GRANTEE_SCOPE_DESC + ID_ASC + ID_DESC + IMAGE_ID_ASC + IMAGE_ID_DESC + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + UPDATED_BY_PRINCIPAL_ASC + UPDATED_BY_PRINCIPAL_DESC +} + +""" +Represents an update to a `ImageGrant`. Fields that are set will be updated. +""" +input ImageGrantPatch { + """Registry actions this grant allows (pull, push, delete)""" + actions: [String] + createdAt: Datetime + createdByPrincipal: UUID + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID + + """When this grant stops applying (NULL never expires)""" + expiresAt: Datetime + + """User who issued this grant""" + grantedBy: UUID + + """Scope key of the grantee (a database_id or an entity_id)""" + granteeKey: UUID + + """Scope tier of the grantee (database, org, app, platform)""" + granteeScope: String + id: UUID + + """Catalog image this grant applies to""" + imageId: UUID + updatedAt: Datetime + updatedByPrincipal: UUID +} + +"""An input for mutations affecting `Image`""" +input ImageInput { + createdAt: Datetime + createdByPrincipal: UUID + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! + + """Human-readable description of what this image runs""" + description: String + + """Content address (sha256:...) pinning this image, when known""" + digest: String + + """ + When this catalog row becomes eligible for retention cleanup (NULL = kept forever) + """ + expiresAt: Datetime + id: UUID + + """Whether this image is published for use by any scope""" + isPublished: Boolean + + """Labels for selecting images (architecture, capabilities, lane)""" + labels: JSON + + """Freeform metadata (build provenance, source repository, SBOM pointer)""" + metadata: JSON + + """Human-readable image name (e.g. node-runtime)""" + name: String! + + """User who registered this catalog row""" + ownerId: UUID + + """Whether this image is reserved for platform-internal use""" + platformOnly: Boolean + + """ + Registry host serving this image (NULL means the platform default registry) + """ + registryHost: String + + """Repository path within the registry (e.g. constructiveio/worker)""" + repository: String! + + """Runtime this image implements (e.g. nodejs, python, custom)""" + runtime: String + + """Mutable tag this row addresses""" + tag: String + updatedAt: Datetime + updatedByPrincipal: UUID +} + +"""Methods to use when ordering `Image`.""" +enum ImageOrderBy { + CREATED_AT_ASC + CREATED_AT_DESC + CREATED_BY_PRINCIPAL_ASC + CREATED_BY_PRINCIPAL_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + DESCRIPTION_ASC + DESCRIPTION_DESC + DIGEST_ASC + DIGEST_DESC + EXPIRES_AT_ASC + EXPIRES_AT_DESC + ID_ASC + ID_DESC + IS_PUBLISHED_ASC + IS_PUBLISHED_DESC + LABELS_ASC + LABELS_DESC + METADATA_ASC + METADATA_DESC + NAME_ASC + NAME_DESC + NATURAL + OWNER_ID_ASC + OWNER_ID_DESC + PLATFORM_ONLY_ASC + PLATFORM_ONLY_DESC + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + REGISTRY_HOST_ASC + REGISTRY_HOST_DESC + REPOSITORY_ASC + REPOSITORY_DESC + RUNTIME_ASC + RUNTIME_DESC + TAG_ASC + TAG_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + UPDATED_BY_PRINCIPAL_ASC + UPDATED_BY_PRINCIPAL_DESC +} + +""" +Represents an update to a `Image`. Fields that are set will be updated. +""" +input ImagePatch { + createdAt: Datetime + createdByPrincipal: UUID + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID + + """Human-readable description of what this image runs""" + description: String + + """Content address (sha256:...) pinning this image, when known""" + digest: String + + """ + When this catalog row becomes eligible for retention cleanup (NULL = kept forever) + """ + expiresAt: Datetime + id: UUID + + """Whether this image is published for use by any scope""" + isPublished: Boolean + + """Labels for selecting images (architecture, capabilities, lane)""" + labels: JSON + + """Freeform metadata (build provenance, source repository, SBOM pointer)""" + metadata: JSON + + """Human-readable image name (e.g. node-runtime)""" + name: String + + """User who registered this catalog row""" + ownerId: UUID + + """Whether this image is reserved for platform-internal use""" + platformOnly: Boolean + + """ + Registry host serving this image (NULL means the platform default registry) + """ + registryHost: String + + """Repository path within the registry (e.g. constructiveio/worker)""" + repository: String + + """Runtime this image implements (e.g. nodejs, python, custom)""" + runtime: String + + """Mutable tag this row addresses""" + tag: String + updatedAt: Datetime + updatedByPrincipal: UUID +} + +""" +A filter to be used against many `ImageGrant` object types. All fields are combined with a logical ‘and.’ +""" +input ImageToManyImageGrantFilter { + """Filters to entities where every related entity matches.""" + every: ImageGrantFilter + + """Filters to entities where no related entity matches.""" + none: ImageGrantFilter + + """Filters to entities where at least one related entity matches.""" + some: ImageGrantFilter +} + +"""All input for the `importDefinitions` mutation.""" +input ImportDefinitionsInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + contexts: [String] + graphId: UUID + sourceCommitId: UUID + sourceScopeId: UUID +} + +"""The output of our `importDefinitions` mutation.""" +type ImportDefinitionsPayload { + """ + The 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 `importGraphJson` mutation.""" +input ImportGraphJsonInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + context: String + createdBy: UUID + definitionsCommitId: UUID + description: String + graphJson: JSON + name: String + scopeId: UUID +} + +"""The output of our `importGraphJson` mutation.""" +type ImportGraphJsonPayload { + """ + The 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 +} + +"""Commit history — each commit snapshots a tree root for a store""" +type InfraCommit { + """User who authored the changes""" + authorId: UUID + + """User who committed (may differ from author)""" + committerId: UUID + + """Database scope for multi-tenant isolation""" + databaseId: UUID! + + """Commit timestamp""" + date: Datetime! + + """Unique commit identifier""" + id: UUID! + + """Optional commit message""" + message: String + + """Parent commit IDs (supports merge commits)""" + parentIds: [UUID] + + """Store this commit belongs to""" + storeId: UUID! + + """Root object ID of the tree snapshot at this commit""" + treeId: UUID +} + +"""A connection to a list of `InfraCommit` values.""" +type InfraCommitConnection { + """ + A list of edges which contains the `InfraCommit` and cursor to aid in pagination. + """ + edges: [InfraCommitEdge]! + + """A list of `InfraCommit` objects.""" + nodes: [InfraCommit]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `InfraCommit` you could get from the connection.""" + totalCount: Int! +} + +"""A `InfraCommit` edge in the connection.""" +type InfraCommitEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `InfraCommit` at the end of the edge.""" + node: InfraCommit +} + +""" +A filter to be used against `InfraCommit` object types. All fields are combined with a logical ‘and.’ +""" +input InfraCommitFilter { + """Checks for all expressions in this list.""" + and: [InfraCommitFilter!] + + """Filter by the object’s `authorId` field.""" + authorId: UUIDFilter + + """Filter by the object’s `committerId` field.""" + committerId: UUIDFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `date` field.""" + date: DatetimeFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `message` field.""" + message: StringFilter + + """Negates the expression.""" + not: InfraCommitFilter + + """Checks for any expressions in this list.""" + or: [InfraCommitFilter!] + + """Filter by the object’s `parentIds` field.""" + parentIds: UUIDListFilter + + """Filter by the object’s `storeId` field.""" + storeId: UUIDFilter + + """Filter by the object’s `treeId` field.""" + treeId: UUIDFilter +} + +"""An input for mutations affecting `InfraCommit`""" +input InfraCommitInput { + """User who authored the changes""" + authorId: UUID + + """User who committed (may differ from author)""" + committerId: UUID + + """Database scope for multi-tenant isolation""" + databaseId: UUID! + + """Commit timestamp""" + date: Datetime + + """Unique commit identifier""" + id: UUID + + """Optional commit message""" + message: String + + """Parent commit IDs (supports merge commits)""" + parentIds: [UUID] + + """Store this commit belongs to""" + storeId: UUID! + + """Root object ID of the tree snapshot at this commit""" + treeId: UUID +} + +"""Methods to use when ordering `InfraCommit`.""" +enum InfraCommitOrderBy { + AUTHOR_ID_ASC + AUTHOR_ID_DESC + COMMITTER_ID_ASC + COMMITTER_ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + DATE_ASC + DATE_DESC + ID_ASC + ID_DESC + MESSAGE_ASC + MESSAGE_DESC + NATURAL + PARENT_IDS_ASC + PARENT_IDS_DESC + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + STORE_ID_ASC + STORE_ID_DESC + TREE_ID_ASC + TREE_ID_DESC +} + +""" +Represents an update to a `InfraCommit`. Fields that are set will be updated. +""" +input InfraCommitPatch { + """User who authored the changes""" + authorId: UUID + + """User who committed (may differ from author)""" + committerId: UUID + + """Database scope for multi-tenant isolation""" + databaseId: UUID + + """Commit timestamp""" + date: Datetime + + """Unique commit identifier""" + id: UUID + + """Optional commit message""" + message: String + + """Parent commit IDs (supports merge commits)""" + parentIds: [UUID] + + """Store this commit belongs to""" + storeId: UUID + + """Root object ID of the tree snapshot at this commit""" + treeId: UUID +} + +"""A connection to a list of `InfraGetAllTreeNodesRecord` values.""" +type InfraGetAllTreeNodesConnection { + """ + A list of edges which contains the `InfraGetAllTreeNodesRecord` and cursor to aid in pagination. + """ + edges: [InfraGetAllTreeNodesEdge]! + + """A list of `InfraGetAllTreeNodesRecord` objects.""" + nodes: [InfraGetAllTreeNodesRecord]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `InfraGetAllTreeNodesRecord` you could get from the connection. + """ + totalCount: Int! +} + +"""A `InfraGetAllTreeNodesRecord` edge in the connection.""" +type InfraGetAllTreeNodesEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `InfraGetAllTreeNodesRecord` at the end of the edge.""" + node: InfraGetAllTreeNodesRecord +} + +type InfraGetAllTreeNodesRecord { + data: JSON + path: [String] +} + +"""All input for the `infraInitEmptyRepo` mutation.""" +input InfraInitEmptyRepoInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + sId: UUID + storeId: UUID +} + +"""The output of our `infraInitEmptyRepo` mutation.""" +type InfraInitEmptyRepoPayload { + """ + The 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 `infraInsertNodeAtPath` mutation.""" +input InfraInsertNodeAtPathInput { + """ + An arbitrary 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] + path: [String] + root: UUID + sId: UUID +} + +"""The output of our `infraInsertNodeAtPath` mutation.""" +type InfraInsertNodeAtPathPayload { + """ + The 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 `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 +""" +type InfraObject { + """Timestamp of object creation""" + createdAt: Datetime + + """Payload data for this object node""" + data: JSON + + """Database scope for multi-tenant isolation""" + databaseId: UUID! + + """Content-addressed UUID v5 — deterministic hash of (data, kids, ktree)""" + id: UUID! + + """Ordered array of child object IDs""" + kids: [UUID] + + """Ordered array of child path names (parallel to kids)""" + ktree: [String] +} + +"""A connection to a list of `InfraObject` values.""" +type InfraObjectConnection { + """ + A list of edges which contains the `InfraObject` and cursor to aid in pagination. + """ + edges: [InfraObjectEdge]! + + """A list of `InfraObject` objects.""" + nodes: [InfraObject]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `InfraObject` you could get from the connection.""" + totalCount: Int! +} + +"""A `InfraObject` edge in the connection.""" +type InfraObjectEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `InfraObject` at the end of the edge.""" + node: InfraObject +} + +""" +A filter to be used against `InfraObject` object types. All fields are combined with a logical ‘and.’ +""" +input InfraObjectFilter { + """Checks for all expressions in this list.""" + and: [InfraObjectFilter!] + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `data` field.""" + data: JSONFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `kids` field.""" + kids: UUIDListFilter + + """Filter by the object’s `ktree` field.""" + ktree: StringListFilter + + """Negates the expression.""" + not: InfraObjectFilter + + """Checks for any expressions in this list.""" + or: [InfraObjectFilter!] +} + +"""An input for mutations affecting `InfraObject`""" +input InfraObjectInput { + """Timestamp of object creation""" + createdAt: Datetime + + """Payload data for this object node""" + data: JSON + + """Database scope for multi-tenant isolation""" + databaseId: UUID! + + """Content-addressed UUID v5 — deterministic hash of (data, kids, ktree)""" + id: UUID! + + """Ordered array of child object IDs""" + kids: [UUID] + + """Ordered array of child path names (parallel to kids)""" + ktree: [String] +} + +"""Methods to use when ordering `InfraObject`.""" +enum InfraObjectOrderBy { + CREATED_AT_ASC + CREATED_AT_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + DATA_ASC + DATA_DESC + ID_ASC + ID_DESC + KIDS_ASC + KIDS_DESC + KTREE_ASC + KTREE_DESC + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC +} + +""" +Represents an update to a `InfraObject`. Fields that are set will be updated. +""" +input InfraObjectPatch { + """Timestamp of object creation""" + createdAt: Datetime + + """Payload data for this object node""" + data: JSON + + """Database scope for multi-tenant isolation""" + databaseId: UUID + + """Content-addressed UUID v5 — deterministic hash of (data, kids, ktree)""" + id: UUID + + """Ordered array of child object IDs""" + kids: [UUID] + + """Ordered array of child path names (parallel to kids)""" + ktree: [String] +} + +"""Branch heads — mutable pointers into the commit chain""" +type InfraRef { + """Commit this ref points to""" + commitId: UUID + + """Database scope for multi-tenant isolation""" + databaseId: UUID! + + """Unique ref identifier""" + id: UUID! + + """Ref name (e.g. HEAD, main)""" + name: String! + + """Store this ref belongs to""" + storeId: UUID! +} + +"""A connection to a list of `InfraRef` values.""" +type InfraRefConnection { + """ + A list of edges which contains the `InfraRef` and cursor to aid in pagination. + """ + edges: [InfraRefEdge]! + + """A list of `InfraRef` objects.""" + nodes: [InfraRef]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `InfraRef` you could get from the connection.""" + totalCount: Int! +} + +"""A `InfraRef` edge in the connection.""" +type InfraRefEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `InfraRef` at the end of the edge.""" + node: InfraRef +} + +""" +A filter to be used against `InfraRef` object types. All fields are combined with a logical ‘and.’ +""" +input InfraRefFilter { + """Checks for all expressions in this list.""" + and: [InfraRefFilter!] + + """Filter by the object’s `commitId` field.""" + commitId: UUIDFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """Negates the expression.""" + not: InfraRefFilter + + """Checks for any expressions in this list.""" + or: [InfraRefFilter!] + + """Filter by the object’s `storeId` field.""" + storeId: UUIDFilter +} + +"""An input for mutations affecting `InfraRef`""" +input InfraRefInput { + """Commit this ref points to""" + commitId: UUID + + """Database scope for multi-tenant isolation""" + databaseId: UUID! + + """Unique ref identifier""" + id: UUID + + """Ref name (e.g. HEAD, main)""" + name: String! + + """Store this ref belongs to""" + storeId: UUID! +} + +"""Methods to use when ordering `InfraRef`.""" +enum InfraRefOrderBy { + COMMIT_ID_ASC + COMMIT_ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + ID_ASC + ID_DESC + NAME_ASC + NAME_DESC + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + STORE_ID_ASC + STORE_ID_DESC +} + +""" +Represents an update to a `InfraRef`. Fields that are set will be updated. +""" +input InfraRefPatch { + """Commit this ref points to""" + commitId: UUID + + """Database scope for multi-tenant isolation""" + databaseId: UUID + + """Unique ref identifier""" + id: UUID + + """Ref name (e.g. HEAD, main)""" + name: String + + """Store this ref belongs to""" + 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 { + """ + An arbitrary 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 + path: [String] + root: UUID + sId: UUID +} + +"""The output of our `infraSetDataAtPath` mutation.""" +type InfraSetDataAtPathPayload { + """ + The 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 `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) +""" +type InfraStore { + """Timestamp of store creation""" + createdAt: Datetime + + """Database scope for multi-tenant isolation""" + databaseId: UUID! + + """Current root object hash of this store""" + hash: UUID + + """Unique store identifier""" + id: UUID! + + """Human-readable store name""" + name: String! +} + +"""A connection to a list of `InfraStore` values.""" +type InfraStoreConnection { + """ + A list of edges which contains the `InfraStore` and cursor to aid in pagination. + """ + edges: [InfraStoreEdge]! + + """A list of `InfraStore` objects.""" + nodes: [InfraStore]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `InfraStore` you could get from the connection.""" + totalCount: Int! +} + +"""A `InfraStore` edge in the connection.""" +type InfraStoreEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `InfraStore` at the end of the edge.""" + node: InfraStore +} + +""" +A filter to be used against `InfraStore` object types. All fields are combined with a logical ‘and.’ +""" +input InfraStoreFilter { + """Checks for all expressions in this list.""" + and: [InfraStoreFilter!] + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `hash` field.""" + hash: UUIDFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """Negates the expression.""" + not: InfraStoreFilter + + """Checks for any expressions in this list.""" + or: [InfraStoreFilter!] +} + +"""An input for mutations affecting `InfraStore`""" +input InfraStoreInput { + """Timestamp of store creation""" + createdAt: Datetime + + """Database scope for multi-tenant isolation""" + databaseId: UUID! + + """Current root object hash of this store""" + hash: UUID + + """Unique store identifier""" + id: UUID + + """Human-readable store name""" + name: String! +} + +"""Methods to use when ordering `InfraStore`.""" +enum InfraStoreOrderBy { + CREATED_AT_ASC + CREATED_AT_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + HASH_ASC + HASH_DESC + ID_ASC + ID_DESC + NAME_ASC + NAME_DESC + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC +} + +""" +Represents an update to a `InfraStore`. Fields that are set will be updated. +""" +input InfraStorePatch { + """Timestamp of store creation""" + createdAt: Datetime + + """Database scope for multi-tenant isolation""" + databaseId: UUID + + """Current root object hash of this store""" + hash: UUID + + """Unique store identifier""" + id: UUID + + """Human-readable store name""" + name: String +} + +"""All input for the `initEmptyRepo` mutation.""" +input InitEmptyRepoInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + sId: UUID + storeId: UUID +} + +"""The output of our `initEmptyRepo` mutation.""" +type InitEmptyRepoPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `insertNodeAtPath` mutation.""" +input InsertNodeAtPathInput { + """ + An arbitrary 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] + path: [String] + root: UUID + sId: UUID +} + +"""The output of our `insertNodeAtPath` mutation.""" +type InsertNodeAtPathPayload { + """ + The 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 `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.’ +""" +input IntFilter { + """ + Not equal to the specified value, treating null like an ordinary value. + """ + distinctFrom: Int + + """Equal to the specified value.""" + equalTo: Int + + """Greater than the specified value.""" + greaterThan: Int + + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: Int + + """Included in the specified list.""" + in: [Int!] + + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean + + """Less than the specified value.""" + lessThan: Int + + """Less than or equal to the specified value.""" + lessThanOrEqualTo: Int + + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: Int + + """Not equal to the specified value.""" + notEqualTo: Int + + """Not included in the specified list.""" + notIn: [Int!] +} + +""" +Branded catalog of external service integrations and their canonical secret/config requirements. Each row defines a provider (e.g. Mailgun, Postgres) that function and resource definitions can reference by slug. The required_secrets/required_configs arrays are guidance that the UI can copy into a definition; the definition arrays remain the source of truth. +""" +type IntegrationProvider { + """ + Brand metadata: colors, fonts, and other provider-specific styling. Not a foreign key. + """ + brand: JSON! + + """Browser category (e.g. email, database, storage, ai, analytics)""" + category: String + createdAt: Datetime + + """Short description of what this integration provides and when to use it""" + description: String + + """Icon identifier for the UI (e.g. mail, database, cloud)""" + icon: String + id: UUID! + + """ + Provider logo as an image domain value (url, id, key, bucket, provider) + """ + logo: ConstructiveInternalTypeImage + + """Human-readable brand name (e.g. 'Mailgun', 'PostgreSQL')""" + name: String! + + """ + Canonical config requirements for this provider: array of (name, required, provider) tuples. Used by the UI to auto-fill function/resource required_configs. + """ + requiredConfigs: [ResourceRequirement]! + + """ + Canonical secret requirements for this provider: array of (name, required, provider) tuples. Used by the UI to auto-fill function/resource required_secrets. + """ + requiredSecrets: [ResourceRequirement]! + + """ + Stable URL-safe identifier for the provider. Other tables match by this string, not by FK. + """ + slug: String! + updatedAt: Datetime +} + +"""A connection to a list of `IntegrationProvider` values.""" +type IntegrationProviderConnection { + """ + A list of edges which contains the `IntegrationProvider` and cursor to aid in pagination. + """ + edges: [IntegrationProviderEdge]! + + """A list of `IntegrationProvider` objects.""" + nodes: [IntegrationProvider]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `IntegrationProvider` you could get from the connection. + """ + totalCount: Int! +} + +"""A `IntegrationProvider` edge in the connection.""" +type IntegrationProviderEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `IntegrationProvider` at the end of the edge.""" + node: IntegrationProvider +} + +""" +A filter to be used against `IntegrationProvider` object types. All fields are combined with a logical ‘and.’ +""" +input IntegrationProviderFilter { + """Checks for all expressions in this list.""" + and: [IntegrationProviderFilter!] + + """Filter by the object’s `brand` field.""" + brand: JSONFilter + + """Filter by the object’s `category` field.""" + category: StringFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `description` field.""" + description: StringFilter + + """Filter by the object’s `icon` field.""" + icon: StringFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `logo` field.""" + logo: ConstructiveInternalTypeImageFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """Negates the expression.""" + not: IntegrationProviderFilter + + """Checks for any expressions in this list.""" + or: [IntegrationProviderFilter!] + + """Filter by the object’s `slug` field.""" + slug: StringFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter +} + +"""An input for mutations affecting `IntegrationProvider`""" +input IntegrationProviderInput { + """ + Brand metadata: colors, fonts, and other provider-specific styling. Not a foreign key. + """ + brand: JSON + + """Browser category (e.g. email, database, storage, ai, analytics)""" + category: String + createdAt: Datetime + + """Short description of what this integration provides and when to use it""" + description: String + + """Icon identifier for the UI (e.g. mail, database, cloud)""" + icon: String + id: UUID + + """ + Provider logo as an image domain value (url, id, key, bucket, provider) + """ + logo: ConstructiveInternalTypeImage + + """Human-readable brand name (e.g. 'Mailgun', 'PostgreSQL')""" + name: String! + + """ + Canonical config requirements for this provider: array of (name, required, provider) tuples. Used by the UI to auto-fill function/resource required_configs. + """ + requiredConfigs: [ResourceRequirementInput] + + """ + Canonical secret requirements for this provider: array of (name, required, provider) tuples. Used by the UI to auto-fill function/resource required_secrets. + """ + requiredSecrets: [ResourceRequirementInput] + + """ + Stable URL-safe identifier for the provider. Other tables match by this string, not by FK. + """ + slug: String! + updatedAt: Datetime +} + +"""Methods to use when ordering `IntegrationProvider`.""" +enum IntegrationProviderOrderBy { + BRAND_ASC + BRAND_DESC + CATEGORY_ASC + CATEGORY_DESC + CREATED_AT_ASC + CREATED_AT_DESC + DESCRIPTION_ASC + DESCRIPTION_DESC + ICON_ASC + ICON_DESC + ID_ASC + ID_DESC + LOGO_ASC + LOGO_DESC + NAME_ASC + NAME_DESC + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + REQUIRED_CONFIGS_ASC + REQUIRED_CONFIGS_DESC + REQUIRED_SECRETS_ASC + REQUIRED_SECRETS_DESC + SLUG_ASC + SLUG_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC +} + +""" +Represents an update to a `IntegrationProvider`. Fields that are set will be updated. +""" +input IntegrationProviderPatch { + """ + Brand metadata: colors, fonts, and other provider-specific styling. Not a foreign key. + """ + brand: JSON + + """Browser category (e.g. email, database, storage, ai, analytics)""" + category: String + createdAt: Datetime + + """Short description of what this integration provides and when to use it""" + description: String + + """Icon identifier for the UI (e.g. mail, database, cloud)""" + icon: String + id: UUID + + """ + Provider logo as an image domain value (url, id, key, bucket, provider) + """ + logo: ConstructiveInternalTypeImage + + """ + Upload for Provider logo as an image domain value (url, id, key, bucket, provider) + """ + logoUpload: Upload + + """Human-readable brand name (e.g. 'Mailgun', 'PostgreSQL')""" + name: String + + """ + Canonical config requirements for this provider: array of (name, required, provider) tuples. Used by the UI to auto-fill function/resource required_configs. + """ + requiredConfigs: [ResourceRequirementInput] + + """ + Canonical secret requirements for this provider: array of (name, required, provider) tuples. Used by the UI to auto-fill function/resource required_secrets. + """ + requiredSecrets: [ResourceRequirementInput] + + """ + Stable URL-safe identifier for the provider. Other tables match by this string, not by FK. + """ + slug: String + updatedAt: Datetime +} + +""" +An interval of time that has passed where the smallest distinct unit is a second. +""" +type Interval { + """A quantity of days.""" + days: Int + + """A quantity of hours.""" + hours: Int + + """A quantity of minutes.""" + minutes: Int + + """A quantity of months.""" + months: Int + + """ + A quantity of seconds. This is the only non-integer field, as all the other + fields will dump their overflow into a smaller unit of time. Intervals don’t + have a smaller unit than seconds. + """ + seconds: Float + + """A quantity of years.""" + years: Int +} + +""" +A filter to be used against Interval fields. All fields are combined with a logical ‘and.’ +""" +input IntervalFilter { + """ + Not equal to the specified value, treating null like an ordinary value. + """ + distinctFrom: IntervalInput + + """Equal to the specified value.""" + equalTo: IntervalInput + + """Greater than the specified value.""" + greaterThan: IntervalInput + + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: IntervalInput + + """Included in the specified list.""" + in: [IntervalInput!] + + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean + + """Less than the specified value.""" + lessThan: IntervalInput + + """Less than or equal to the specified value.""" + lessThanOrEqualTo: IntervalInput + + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: IntervalInput + + """Not equal to the specified value.""" + notEqualTo: IntervalInput + + """Not included in the specified list.""" + notIn: [IntervalInput!] +} + +""" +An interval of time that has passed where the smallest distinct unit is a second. +""" +input IntervalInput { + """A quantity of days.""" + days: Int + + """A quantity of hours.""" + hours: Int + + """A quantity of minutes.""" + minutes: Int + + """A quantity of months.""" + months: Int + + """ + A quantity of seconds. This is the only non-integer field, as all the other + fields will dump their overflow into a smaller unit of time. Intervals don’t + have a smaller unit than seconds. + """ + seconds: Float + + """A quantity of years.""" + years: Int +} + +""" +Represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). +""" +scalar JSON + +""" +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 + + """Contains the specified JSON.""" + contains: JSON + + """Contains all of the specified keys.""" + containsAllKeys: [String!] + + """Contains any of the specified keys.""" + containsAnyKeys: [String!] + + """Contains the specified key.""" + containsKey: String + + """ + Not equal to the specified value, treating null like an ordinary value. + """ + distinctFrom: JSON + + """Equal to the specified value.""" + equalTo: JSON + + """Greater than the specified value.""" + greaterThan: JSON + + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: JSON + + """Included in the specified list.""" + in: [JSON!] + + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean + + """Less than the specified value.""" + lessThan: JSON + + """Less than or equal to the specified value.""" + lessThanOrEqualTo: JSON + + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: JSON + + """Not equal to the specified value.""" + notEqualTo: JSON + + """Not included in the specified list.""" + notIn: [JSON!] +} + +"""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 { + """GraphQL type name of the plane's buckets table""" + bucketsType: String! + + """ + Computed download-URL field on the files type; null on the buckets side + """ + downloadUrlField: String + + """GraphQL type name of the plane's files table""" + filesType: String! + + """Whether this table is a storage buckets table""" + isBucketsTable: Boolean! + + """Whether this table is a storage files table""" + isFilesTable: Boolean! + + """The plane's GraphQL upload surface""" + upload: MetaStorageUpload! +} + +""" +The GraphQL upload surface of a storage plane, derived from the registry facts the presigned-url plugin emits from +""" +type MetaStorageUpload { + """Per-file input type inside the bulk input""" + bulkFileInputType: String! + + """Per-file payload type inside the bulk payload""" + bulkFilePayloadType: String! + + """Input type of the bulk upload mutation""" + bulkInputType: String! + + """Root mutation field for bulk upload""" + bulkMutation: String! + + """Payload type of the bulk upload mutation""" + bulkPayloadType: String! + + """Input type of the single upload mutation""" + inputType: String! + + """Root mutation field for single-file upload (e.g. uploadAppFile)""" + mutation: String! + + """Payload type of the single upload mutation""" + payloadType: String! + + """Whether the upload input requires ownerId (entity-keyed plane)""" + requiresOwnerId: 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 { + addEdge( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: AddEdgeInput! + ): AddEdgePayload + addEdgeAndSave( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: AddEdgeAndSaveInput! + ): AddEdgeAndSavePayload + addNode( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: AddNodeInput! + ): AddNodePayload + addNodeAndSave( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: AddNodeAndSaveInput! + ): AddNodeAndSavePayload + approveNode( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: ApproveNodeInput! + ): ApproveNodePayload + copyGraph( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CopyGraphInput! + ): CopyGraphPayload + + """Creates a single `Build`.""" + createBuild( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateBuildInput! + ): CreateBuildPayload + + """Creates a single `BuildStep`.""" + createBuildStep( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateBuildStepInput! + ): CreateBuildStepPayload + + """Creates a single `BuilderBinding`.""" + createBuilderBinding( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateBuilderBindingInput! + ): CreateBuilderBindingPayload + + """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 `DatabaseFunctionGraphExecution`.""" + createDatabaseFunctionGraphExecution( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateDatabaseFunctionGraphExecutionInput! + ): CreateDatabaseFunctionGraphExecutionPayload + + """Creates a single `DatabaseFunctionGraphExecutionNodeState`.""" + createDatabaseFunctionGraphExecutionNodeState( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateDatabaseFunctionGraphExecutionNodeStateInput! + ): CreateDatabaseFunctionGraphExecutionNodeStatePayload + + """Creates a single `DatabaseFunctionGraphExecutionOutput`.""" + createDatabaseFunctionGraphExecutionOutput( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateDatabaseFunctionGraphExecutionOutputInput! + ): CreateDatabaseFunctionGraphExecutionOutputPayload + + """Creates a single `DatabaseGraphCommit`.""" + createDatabaseGraphCommit( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateDatabaseGraphCommitInput! + ): CreateDatabaseGraphCommitPayload + + """Creates a single `DatabaseGraphObject`.""" + createDatabaseGraphObject( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateDatabaseGraphObjectInput! + ): CreateDatabaseGraphObjectPayload + + """Creates a single `DatabaseGraphRef`.""" + createDatabaseGraphRef( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateDatabaseGraphRefInput! + ): CreateDatabaseGraphRefPayload + + """Creates a single `DatabaseGraphStore`.""" + createDatabaseGraphStore( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateDatabaseGraphStoreInput! + ): CreateDatabaseGraphStorePayload + + """Creates a single `DbPreset`.""" + createDbPreset( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateDbPresetInput! + ): CreateDbPresetPayload + + """Creates a single `FunctionApiBinding`.""" + createFunctionApiBinding( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateFunctionApiBindingInput! + ): CreateFunctionApiBindingPayload + + """Creates a single `FunctionCapabilityBinding`.""" + createFunctionCapabilityBinding( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateFunctionCapabilityBindingInput! + ): CreateFunctionCapabilityBindingPayload + + """Creates a single `FunctionDefinition`.""" + createFunctionDefinition( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateFunctionDefinitionInput! + ): CreateFunctionDefinitionPayload + + """Creates a single `FunctionDeployment`.""" + createFunctionDeployment( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateFunctionDeploymentInput! + ): CreateFunctionDeploymentPayload + + """Creates a single `FunctionDeploymentEvent`.""" + createFunctionDeploymentEvent( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateFunctionDeploymentEventInput! + ): CreateFunctionDeploymentEventPayload + + """Creates a single `FunctionExecutionLog`.""" + createFunctionExecutionLog( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateFunctionExecutionLogInput! + ): CreateFunctionExecutionLogPayload + createFunctionGraph( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateFunctionGraphInput! + ): CreateFunctionGraphPayload + + """Creates a single `FunctionGraphCommit`.""" + createFunctionGraphCommit( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateFunctionGraphCommitInput! + ): CreateFunctionGraphCommitPayload + + """Creates a single `FunctionGraphExecution`.""" + createFunctionGraphExecution( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateFunctionGraphExecutionInput! + ): CreateFunctionGraphExecutionPayload + + """Creates a single `FunctionGraphExecutionNodeState`.""" + createFunctionGraphExecutionNodeState( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateFunctionGraphExecutionNodeStateInput! + ): CreateFunctionGraphExecutionNodeStatePayload + + """Creates a single `FunctionGraphExecutionOutput`.""" + createFunctionGraphExecutionOutput( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateFunctionGraphExecutionOutputInput! + ): CreateFunctionGraphExecutionOutputPayload + + """Creates a single `FunctionGraphObject`.""" + createFunctionGraphObject( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateFunctionGraphObjectInput! + ): CreateFunctionGraphObjectPayload + + """Creates a single `FunctionGraphRef`.""" + createFunctionGraphRef( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateFunctionGraphRefInput! + ): CreateFunctionGraphRefPayload + + """Creates a single `FunctionGraphStore`.""" + createFunctionGraphStore( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateFunctionGraphStoreInput! + ): CreateFunctionGraphStorePayload + + """Creates a single `FunctionInvocation`.""" + createFunctionInvocation( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateFunctionInvocationInput! + ): CreateFunctionInvocationPayload + + """Creates a single `FunctionInvocationAttempt`.""" + createFunctionInvocationAttempt( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateFunctionInvocationAttemptInput! + ): CreateFunctionInvocationAttemptPayload + + """Creates a single `Image`.""" + createImage( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateImageInput! + ): CreateImagePayload + + """Creates a single `ImageGrant`.""" + createImageGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateImageGrantInput! + ): CreateImageGrantPayload + + """Creates a single `InfraCommit`.""" + createInfraCommit( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateInfraCommitInput! + ): CreateInfraCommitPayload + + """Creates a single `InfraObject`.""" + createInfraObject( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateInfraObjectInput! + ): CreateInfraObjectPayload + + """Creates a single `InfraRef`.""" + createInfraRef( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateInfraRefInput! + ): CreateInfraRefPayload + + """Creates a single `InfraStore`.""" + createInfraStore( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateInfraStoreInput! + ): CreateInfraStorePayload + + """Creates a single `IntegrationProvider`.""" + createIntegrationProvider( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateIntegrationProviderInput! + ): CreateIntegrationProviderPayload + + """Creates a single `Namespace`.""" + createNamespace( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateNamespaceInput! + ): CreateNamespacePayload + + """Creates a single `NamespaceEvent`.""" + createNamespaceEvent( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateNamespaceEventInput! + ): CreateNamespaceEventPayload + + """Creates a single `PlatformBuild`.""" + createPlatformBuild( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreatePlatformBuildInput! + ): CreatePlatformBuildPayload + + """Creates a single `PlatformBuildStep`.""" + createPlatformBuildStep( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreatePlatformBuildStepInput! + ): CreatePlatformBuildStepPayload + + """Creates a single `PlatformBuilderBinding`.""" + createPlatformBuilderBinding( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreatePlatformBuilderBindingInput! + ): CreatePlatformBuilderBindingPayload + + """Creates a single `PlatformFunctionApiBinding`.""" + createPlatformFunctionApiBinding( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreatePlatformFunctionApiBindingInput! + ): CreatePlatformFunctionApiBindingPayload + + """Creates a single `PlatformFunctionCapabilityBinding`.""" + createPlatformFunctionCapabilityBinding( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreatePlatformFunctionCapabilityBindingInput! + ): CreatePlatformFunctionCapabilityBindingPayload + + """Creates a single `PlatformFunctionDefinition`.""" + createPlatformFunctionDefinition( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreatePlatformFunctionDefinitionInput! + ): CreatePlatformFunctionDefinitionPayload + + """Creates a single `PlatformFunctionDeployment`.""" + createPlatformFunctionDeployment( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreatePlatformFunctionDeploymentInput! + ): CreatePlatformFunctionDeploymentPayload + + """Creates a single `PlatformFunctionDeploymentEvent`.""" + createPlatformFunctionDeploymentEvent( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreatePlatformFunctionDeploymentEventInput! + ): CreatePlatformFunctionDeploymentEventPayload + + """Creates a single `PlatformFunctionExecutionLog`.""" + createPlatformFunctionExecutionLog( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreatePlatformFunctionExecutionLogInput! + ): CreatePlatformFunctionExecutionLogPayload + + """Creates a single `PlatformFunctionInvocation`.""" + createPlatformFunctionInvocation( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreatePlatformFunctionInvocationInput! + ): CreatePlatformFunctionInvocationPayload + + """Creates a single `PlatformFunctionInvocationAttempt`.""" + createPlatformFunctionInvocationAttempt( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreatePlatformFunctionInvocationAttemptInput! + ): CreatePlatformFunctionInvocationAttemptPayload + + """Creates a single `PlatformImage`.""" + createPlatformImage( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreatePlatformImageInput! + ): CreatePlatformImagePayload + + """Creates a single `PlatformImageGrant`.""" + createPlatformImageGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreatePlatformImageGrantInput! + ): CreatePlatformImageGrantPayload + + """Creates a single `PlatformInfraCommit`.""" + createPlatformInfraCommit( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreatePlatformInfraCommitInput! + ): CreatePlatformInfraCommitPayload + + """Creates a single `PlatformInfraObject`.""" + createPlatformInfraObject( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreatePlatformInfraObjectInput! + ): CreatePlatformInfraObjectPayload + + """Creates a single `PlatformInfraRef`.""" + createPlatformInfraRef( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreatePlatformInfraRefInput! + ): CreatePlatformInfraRefPayload + + """Creates a single `PlatformInfraStore`.""" + createPlatformInfraStore( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreatePlatformInfraStoreInput! + ): CreatePlatformInfraStorePayload + + """Creates a single `PlatformK8sResourceKind`.""" + createPlatformK8sResourceKind( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreatePlatformK8sResourceKindInput! + ): CreatePlatformK8sResourceKindPayload + + """Creates a single `PlatformK8sSpecRule`.""" + createPlatformK8sSpecRule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreatePlatformK8sSpecRuleInput! + ): CreatePlatformK8sSpecRulePayload + + """Creates a single `PlatformNamespace`.""" + createPlatformNamespace( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreatePlatformNamespaceInput! + ): CreatePlatformNamespacePayload + + """Creates a single `PlatformNamespaceEvent`.""" + createPlatformNamespaceEvent( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreatePlatformNamespaceEventInput! + ): CreatePlatformNamespaceEventPayload + + """Creates a single `PlatformProposal`.""" + createPlatformProposal( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreatePlatformProposalInput! + ): CreatePlatformProposalPayload + + """Creates a single `PlatformProposalComment`.""" + createPlatformProposalComment( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreatePlatformProposalCommentInput! + ): CreatePlatformProposalCommentPayload + + """Creates a single `PlatformProposalFileView`.""" + createPlatformProposalFileView( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreatePlatformProposalFileViewInput! + ): CreatePlatformProposalFileViewPayload + + """Creates a single `PlatformProposalReaction`.""" + createPlatformProposalReaction( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreatePlatformProposalReactionInput! + ): CreatePlatformProposalReactionPayload + + """Creates a single `PlatformProposalReview`.""" + createPlatformProposalReview( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreatePlatformProposalReviewInput! + ): CreatePlatformProposalReviewPayload + + """Creates a single `PlatformProposalsChunk`.""" + createPlatformProposalsChunk( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreatePlatformProposalsChunkInput! + ): CreatePlatformProposalsChunkPayload + + """Creates a single `PlatformRegistry`.""" + createPlatformRegistry( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreatePlatformRegistryInput! + ): CreatePlatformRegistryPayload + + """Creates a single `PlatformRegistryBinding`.""" + createPlatformRegistryBinding( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreatePlatformRegistryBindingInput! + ): CreatePlatformRegistryBindingPayload + + """Creates a single `PlatformRegistryGrant`.""" + createPlatformRegistryGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreatePlatformRegistryGrantInput! + ): CreatePlatformRegistryGrantPayload + + """Creates a single `PlatformRepository`.""" + createPlatformRepository( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreatePlatformRepositoryInput! + ): CreatePlatformRepositoryPayload + + """Creates a single `PlatformRepositoryEvent`.""" + createPlatformRepositoryEvent( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreatePlatformRepositoryEventInput! + ): CreatePlatformRepositoryEventPayload + + """Creates a single `PlatformRepositoryRequiredCheck`.""" + createPlatformRepositoryRequiredCheck( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreatePlatformRepositoryRequiredCheckInput! + ): CreatePlatformRepositoryRequiredCheckPayload + + """Creates a single `PlatformRepositoryWorkflow`.""" + createPlatformRepositoryWorkflow( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreatePlatformRepositoryWorkflowInput! + ): CreatePlatformRepositoryWorkflowPayload + + """Creates a single `PlatformResource`.""" + createPlatformResource( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreatePlatformResourceInput! + ): CreatePlatformResourcePayload + + """Creates a single `PlatformResourceDefinition`.""" + createPlatformResourceDefinition( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreatePlatformResourceDefinitionInput! + ): CreatePlatformResourceDefinitionPayload + + """Creates a single `PlatformResourceEvent`.""" + createPlatformResourceEvent( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreatePlatformResourceEventInput! + ): CreatePlatformResourceEventPayload + + """Creates a single `PlatformResourceInstallation`.""" + createPlatformResourceInstallation( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreatePlatformResourceInstallationInput! + ): CreatePlatformResourceInstallationPayload + + """Creates a single `PlatformResourceStatusCheck`.""" + createPlatformResourceStatusCheck( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreatePlatformResourceStatusCheckInput! + ): CreatePlatformResourceStatusCheckPayload + + """Creates a single `PlatformResourceUsageLog`.""" + createPlatformResourceUsageLog( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreatePlatformResourceUsageLogInput! + ): CreatePlatformResourceUsageLogPayload + + """Creates a single `PlatformResourceUsageSummary`.""" + createPlatformResourceUsageSummary( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreatePlatformResourceUsageSummaryInput! + ): CreatePlatformResourceUsageSummaryPayload + + """Creates a single `PlatformWebhookEndpoint`.""" + createPlatformWebhookEndpoint( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreatePlatformWebhookEndpointInput! + ): CreatePlatformWebhookEndpointPayload + + """Creates a single `PlatformWebhookEvent`.""" + createPlatformWebhookEvent( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreatePlatformWebhookEventInput! + ): CreatePlatformWebhookEventPayload + + """Creates a single `Proposal`.""" + createProposal( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateProposalInput! + ): CreateProposalPayload + + """Creates a single `ProposalComment`.""" + createProposalComment( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateProposalCommentInput! + ): CreateProposalCommentPayload + + """Creates a single `ProposalFileView`.""" + createProposalFileView( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateProposalFileViewInput! + ): CreateProposalFileViewPayload + + """Creates a single `ProposalReaction`.""" + createProposalReaction( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateProposalReactionInput! + ): CreateProposalReactionPayload + + """Creates a single `ProposalReview`.""" + createProposalReview( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateProposalReviewInput! + ): CreateProposalReviewPayload + + """Creates a single `ProposalsChunk`.""" + createProposalsChunk( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateProposalsChunkInput! + ): CreateProposalsChunkPayload + + """Creates a single `Registry`.""" + createRegistry( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateRegistryInput! + ): CreateRegistryPayload + + """Creates a single `RegistryBinding`.""" + createRegistryBinding( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateRegistryBindingInput! + ): CreateRegistryBindingPayload + + """Creates a single `RegistryGrant`.""" + createRegistryGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateRegistryGrantInput! + ): CreateRegistryGrantPayload + + """Creates a single `Repository`.""" + createRepository( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateRepositoryInput! + ): CreateRepositoryPayload + + """Creates a single `RepositoryEvent`.""" + createRepositoryEvent( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateRepositoryEventInput! + ): CreateRepositoryEventPayload + + """Creates a single `RepositoryRequiredCheck`.""" + createRepositoryRequiredCheck( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateRepositoryRequiredCheckInput! + ): CreateRepositoryRequiredCheckPayload + + """Creates a single `RepositoryWorkflow`.""" + createRepositoryWorkflow( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateRepositoryWorkflowInput! + ): CreateRepositoryWorkflowPayload + + """Creates a single `Resource`.""" + createResource( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateResourceInput! + ): CreateResourcePayload + + """Creates a single `ResourceDefinition`.""" + createResourceDefinition( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateResourceDefinitionInput! + ): CreateResourceDefinitionPayload + + """Creates a single `ResourceEvent`.""" + createResourceEvent( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateResourceEventInput! + ): CreateResourceEventPayload + + """Creates a single `ResourceInstallation`.""" + createResourceInstallation( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateResourceInstallationInput! + ): CreateResourceInstallationPayload + + """Creates a single `ResourceStatusCheck`.""" + createResourceStatusCheck( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateResourceStatusCheckInput! + ): CreateResourceStatusCheckPayload + + """Creates a single `ResourceUsageLog`.""" + createResourceUsageLog( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateResourceUsageLogInput! + ): CreateResourceUsageLogPayload + + """Creates a single `ResourceUsageSummary`.""" + createResourceUsageSummary( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateResourceUsageSummaryInput! + ): CreateResourceUsageSummaryPayload + + """Creates a single `WebhookEndpoint`.""" + createWebhookEndpoint( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateWebhookEndpointInput! + ): CreateWebhookEndpointPayload + + """Creates a single `WebhookEvent`.""" + createWebhookEvent( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateWebhookEventInput! + ): CreateWebhookEventPayload + databaseAddEdge( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DatabaseAddEdgeInput! + ): DatabaseAddEdgePayload + databaseAddEdgeAndSave( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DatabaseAddEdgeAndSaveInput! + ): DatabaseAddEdgeAndSavePayload + databaseAddNode( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DatabaseAddNodeInput! + ): DatabaseAddNodePayload + databaseAddNodeAndSave( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DatabaseAddNodeAndSaveInput! + ): DatabaseAddNodeAndSavePayload + databaseApproveNode( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DatabaseApproveNodeInput! + ): DatabaseApproveNodePayload + databaseCopyGraph( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DatabaseCopyGraphInput! + ): DatabaseCopyGraphPayload + databaseCreateFunctionGraph( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DatabaseCreateFunctionGraphInput! + ): DatabaseCreateFunctionGraphPayload + databaseGraphInitEmptyRepo( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DatabaseGraphInitEmptyRepoInput! + ): DatabaseGraphInitEmptyRepoPayload + databaseGraphInsertNodeAtPath( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DatabaseGraphInsertNodeAtPathInput! + ): DatabaseGraphInsertNodeAtPathPayload + databaseGraphInsertNodesAtPaths( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DatabaseGraphInsertNodesAtPathsInput! + ): DatabaseGraphInsertNodesAtPathsPayload + databaseGraphSetAndCommit( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DatabaseGraphSetAndCommitInput! + ): DatabaseGraphSetAndCommitPayload + databaseGraphSetDataAtPath( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DatabaseGraphSetDataAtPathInput! + ): DatabaseGraphSetDataAtPathPayload + databaseGraphSetManyAndCommit( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DatabaseGraphSetManyAndCommitInput! + ): DatabaseGraphSetManyAndCommitPayload + databaseImportDefinitions( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DatabaseImportDefinitionsInput! + ): DatabaseImportDefinitionsPayload + databaseImportGraphJson( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DatabaseImportGraphJsonInput! + ): DatabaseImportGraphJsonPayload + databaseSaveGraph( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DatabaseSaveGraphInput! + ): DatabaseSaveGraphPayload + databaseStartExecution( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DatabaseStartExecutionInput! + ): DatabaseStartExecutionPayload + databaseValidateFunctionGraph( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DatabaseValidateFunctionGraphInput! + ): DatabaseValidateFunctionGraphPayload + + """Deletes a single `Build` using a unique key.""" + deleteBuild( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteBuildInput! + ): DeleteBuildPayload + + """Deletes a single `BuildStep` using a unique key.""" + deleteBuildStep( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteBuildStepInput! + ): DeleteBuildStepPayload + + """Deletes a single `BuilderBinding` using a unique key.""" + deleteBuilderBinding( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteBuilderBindingInput! + ): DeleteBuilderBindingPayload + + """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 `DatabaseFunctionGraph` using a unique key.""" + deleteDatabaseFunctionGraph( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteDatabaseFunctionGraphInput! + ): DeleteDatabaseFunctionGraphPayload + + """Deletes a single `DatabaseFunctionGraphExecution` using a unique key.""" + deleteDatabaseFunctionGraphExecution( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteDatabaseFunctionGraphExecutionInput! + ): DeleteDatabaseFunctionGraphExecutionPayload + + """ + Deletes a single `DatabaseFunctionGraphExecutionNodeState` using a unique key. + """ + deleteDatabaseFunctionGraphExecutionNodeState( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteDatabaseFunctionGraphExecutionNodeStateInput! + ): DeleteDatabaseFunctionGraphExecutionNodeStatePayload + + """ + Deletes a single `DatabaseFunctionGraphExecutionOutput` using a unique key. + """ + deleteDatabaseFunctionGraphExecutionOutput( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteDatabaseFunctionGraphExecutionOutputInput! + ): DeleteDatabaseFunctionGraphExecutionOutputPayload + + """Deletes a single `DatabaseGraphCommit` using a unique key.""" + deleteDatabaseGraphCommit( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteDatabaseGraphCommitInput! + ): DeleteDatabaseGraphCommitPayload + + """Deletes a single `DatabaseGraphObject` using a unique key.""" + deleteDatabaseGraphObject( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteDatabaseGraphObjectInput! + ): DeleteDatabaseGraphObjectPayload + + """Deletes a single `DatabaseGraphRef` using a unique key.""" + deleteDatabaseGraphRef( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteDatabaseGraphRefInput! + ): DeleteDatabaseGraphRefPayload + + """Deletes a single `DatabaseGraphStore` using a unique key.""" + deleteDatabaseGraphStore( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteDatabaseGraphStoreInput! + ): DeleteDatabaseGraphStorePayload + + """Deletes a single `DbPreset` using a unique key.""" + deleteDbPreset( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteDbPresetInput! + ): DeleteDbPresetPayload + + """Deletes a single `FunctionApiBinding` using a unique key.""" + deleteFunctionApiBinding( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteFunctionApiBindingInput! + ): DeleteFunctionApiBindingPayload + + """Deletes a single `FunctionCapabilityBinding` using a unique key.""" + deleteFunctionCapabilityBinding( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteFunctionCapabilityBindingInput! + ): DeleteFunctionCapabilityBindingPayload + + """Deletes a single `FunctionDefinition` using a unique key.""" + deleteFunctionDefinition( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteFunctionDefinitionInput! + ): DeleteFunctionDefinitionPayload + + """Deletes a single `FunctionDeployment` using a unique key.""" + deleteFunctionDeployment( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteFunctionDeploymentInput! + ): DeleteFunctionDeploymentPayload + + """Deletes a single `FunctionDeploymentEvent` using a unique key.""" + deleteFunctionDeploymentEvent( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteFunctionDeploymentEventInput! + ): DeleteFunctionDeploymentEventPayload + + """Deletes a single `FunctionExecutionLog` using a unique key.""" + deleteFunctionExecutionLog( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteFunctionExecutionLogInput! + ): DeleteFunctionExecutionLogPayload + + """Deletes a single `FunctionGraph` using a unique key.""" + deleteFunctionGraph( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteFunctionGraphInput! + ): DeleteFunctionGraphPayload + + """Deletes a single `FunctionGraphCommit` using a unique key.""" + deleteFunctionGraphCommit( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteFunctionGraphCommitInput! + ): DeleteFunctionGraphCommitPayload + + """Deletes a single `FunctionGraphExecution` using a unique key.""" + deleteFunctionGraphExecution( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteFunctionGraphExecutionInput! + ): DeleteFunctionGraphExecutionPayload + + """Deletes a single `FunctionGraphExecutionNodeState` using a unique key.""" + deleteFunctionGraphExecutionNodeState( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteFunctionGraphExecutionNodeStateInput! + ): DeleteFunctionGraphExecutionNodeStatePayload + + """Deletes a single `FunctionGraphExecutionOutput` using a unique key.""" + deleteFunctionGraphExecutionOutput( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteFunctionGraphExecutionOutputInput! + ): DeleteFunctionGraphExecutionOutputPayload + + """Deletes a single `FunctionGraphObject` using a unique key.""" + deleteFunctionGraphObject( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteFunctionGraphObjectInput! + ): DeleteFunctionGraphObjectPayload + + """Deletes a single `FunctionGraphRef` using a unique key.""" + deleteFunctionGraphRef( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteFunctionGraphRefInput! + ): DeleteFunctionGraphRefPayload + + """Deletes a single `FunctionGraphStore` using a unique key.""" + deleteFunctionGraphStore( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteFunctionGraphStoreInput! + ): DeleteFunctionGraphStorePayload + + """Deletes a single `FunctionInvocation` using a unique key.""" + deleteFunctionInvocation( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteFunctionInvocationInput! + ): DeleteFunctionInvocationPayload + + """Deletes a single `FunctionInvocationAttempt` using a unique key.""" + deleteFunctionInvocationAttempt( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteFunctionInvocationAttemptInput! + ): DeleteFunctionInvocationAttemptPayload + + """Deletes a single `Image` using a unique key.""" + deleteImage( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteImageInput! + ): DeleteImagePayload + + """Deletes a single `ImageGrant` using a unique key.""" + deleteImageGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteImageGrantInput! + ): DeleteImageGrantPayload + + """Deletes a single `InfraCommit` using a unique key.""" + deleteInfraCommit( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteInfraCommitInput! + ): DeleteInfraCommitPayload + + """Deletes a single `InfraObject` using a unique key.""" + deleteInfraObject( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteInfraObjectInput! + ): DeleteInfraObjectPayload + + """Deletes a single `InfraRef` using a unique key.""" + deleteInfraRef( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteInfraRefInput! + ): DeleteInfraRefPayload + + """Deletes a single `InfraStore` using a unique key.""" + deleteInfraStore( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteInfraStoreInput! + ): DeleteInfraStorePayload + + """Deletes a single `IntegrationProvider` using a unique key.""" + deleteIntegrationProvider( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteIntegrationProviderInput! + ): DeleteIntegrationProviderPayload + + """Deletes a single `Namespace` using a unique key.""" + deleteNamespace( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteNamespaceInput! + ): DeleteNamespacePayload + + """Deletes a single `NamespaceEvent` using a unique key.""" + deleteNamespaceEvent( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteNamespaceEventInput! + ): DeleteNamespaceEventPayload + + """Deletes a single `PlatformBuild` using a unique key.""" + deletePlatformBuild( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePlatformBuildInput! + ): DeletePlatformBuildPayload + + """Deletes a single `PlatformBuildStep` using a unique key.""" + deletePlatformBuildStep( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePlatformBuildStepInput! + ): DeletePlatformBuildStepPayload + + """Deletes a single `PlatformBuilderBinding` using a unique key.""" + deletePlatformBuilderBinding( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePlatformBuilderBindingInput! + ): DeletePlatformBuilderBindingPayload + + """Deletes a single `PlatformFunctionApiBinding` using a unique key.""" + deletePlatformFunctionApiBinding( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePlatformFunctionApiBindingInput! + ): DeletePlatformFunctionApiBindingPayload + + """ + Deletes a single `PlatformFunctionCapabilityBinding` using a unique key. + """ + deletePlatformFunctionCapabilityBinding( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePlatformFunctionCapabilityBindingInput! + ): DeletePlatformFunctionCapabilityBindingPayload + + """Deletes a single `PlatformFunctionDefinition` using a unique key.""" + deletePlatformFunctionDefinition( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePlatformFunctionDefinitionInput! + ): DeletePlatformFunctionDefinitionPayload + + """Deletes a single `PlatformFunctionDeployment` using a unique key.""" + deletePlatformFunctionDeployment( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePlatformFunctionDeploymentInput! + ): DeletePlatformFunctionDeploymentPayload + + """Deletes a single `PlatformFunctionDeploymentEvent` using a unique key.""" + deletePlatformFunctionDeploymentEvent( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePlatformFunctionDeploymentEventInput! + ): DeletePlatformFunctionDeploymentEventPayload + + """Deletes a single `PlatformFunctionExecutionLog` using a unique key.""" + deletePlatformFunctionExecutionLog( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePlatformFunctionExecutionLogInput! + ): DeletePlatformFunctionExecutionLogPayload + + """Deletes a single `PlatformFunctionInvocation` using a unique key.""" + deletePlatformFunctionInvocation( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePlatformFunctionInvocationInput! + ): DeletePlatformFunctionInvocationPayload + + """ + Deletes a single `PlatformFunctionInvocationAttempt` using a unique key. + """ + deletePlatformFunctionInvocationAttempt( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePlatformFunctionInvocationAttemptInput! + ): DeletePlatformFunctionInvocationAttemptPayload + + """Deletes a single `PlatformImage` using a unique key.""" + deletePlatformImage( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePlatformImageInput! + ): DeletePlatformImagePayload + + """Deletes a single `PlatformImageGrant` using a unique key.""" + deletePlatformImageGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePlatformImageGrantInput! + ): DeletePlatformImageGrantPayload + + """Deletes a single `PlatformInfraCommit` using a unique key.""" + deletePlatformInfraCommit( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePlatformInfraCommitInput! + ): DeletePlatformInfraCommitPayload + + """Deletes a single `PlatformInfraObject` using a unique key.""" + deletePlatformInfraObject( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePlatformInfraObjectInput! + ): DeletePlatformInfraObjectPayload + + """Deletes a single `PlatformInfraRef` using a unique key.""" + deletePlatformInfraRef( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePlatformInfraRefInput! + ): DeletePlatformInfraRefPayload + + """Deletes a single `PlatformInfraStore` using a unique key.""" + deletePlatformInfraStore( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePlatformInfraStoreInput! + ): DeletePlatformInfraStorePayload + + """Deletes a single `PlatformK8sResourceKind` using a unique key.""" + deletePlatformK8sResourceKind( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePlatformK8sResourceKindInput! + ): DeletePlatformK8sResourceKindPayload + + """Deletes a single `PlatformK8sSpecRule` using a unique key.""" + deletePlatformK8sSpecRule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePlatformK8sSpecRuleInput! + ): DeletePlatformK8sSpecRulePayload + + """Deletes a single `PlatformNamespace` using a unique key.""" + deletePlatformNamespace( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePlatformNamespaceInput! + ): DeletePlatformNamespacePayload + + """Deletes a single `PlatformNamespaceEvent` using a unique key.""" + deletePlatformNamespaceEvent( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePlatformNamespaceEventInput! + ): DeletePlatformNamespaceEventPayload + + """Deletes a single `PlatformProposal` using a unique key.""" + deletePlatformProposal( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePlatformProposalInput! + ): DeletePlatformProposalPayload + + """Deletes a single `PlatformProposalComment` using a unique key.""" + deletePlatformProposalComment( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePlatformProposalCommentInput! + ): DeletePlatformProposalCommentPayload + + """Deletes a single `PlatformProposalFileView` using a unique key.""" + deletePlatformProposalFileView( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePlatformProposalFileViewInput! + ): DeletePlatformProposalFileViewPayload + + """Deletes a single `PlatformProposalReaction` using a unique key.""" + deletePlatformProposalReaction( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePlatformProposalReactionInput! + ): DeletePlatformProposalReactionPayload + + """Deletes a single `PlatformProposalReview` using a unique key.""" + deletePlatformProposalReview( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePlatformProposalReviewInput! + ): DeletePlatformProposalReviewPayload + + """Deletes a single `PlatformProposalsChunk` using a unique key.""" + deletePlatformProposalsChunk( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePlatformProposalsChunkInput! + ): DeletePlatformProposalsChunkPayload + + """Deletes a single `PlatformRegistry` using a unique key.""" + deletePlatformRegistry( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePlatformRegistryInput! + ): DeletePlatformRegistryPayload + + """Deletes a single `PlatformRegistryBinding` using a unique key.""" + deletePlatformRegistryBinding( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePlatformRegistryBindingInput! + ): DeletePlatformRegistryBindingPayload + + """Deletes a single `PlatformRegistryGrant` using a unique key.""" + deletePlatformRegistryGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePlatformRegistryGrantInput! + ): DeletePlatformRegistryGrantPayload + + """Deletes a single `PlatformRepository` using a unique key.""" + deletePlatformRepository( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePlatformRepositoryInput! + ): DeletePlatformRepositoryPayload + + """Deletes a single `PlatformRepositoryEvent` using a unique key.""" + deletePlatformRepositoryEvent( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePlatformRepositoryEventInput! + ): DeletePlatformRepositoryEventPayload + + """Deletes a single `PlatformRepositoryRequiredCheck` using a unique key.""" + deletePlatformRepositoryRequiredCheck( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePlatformRepositoryRequiredCheckInput! + ): DeletePlatformRepositoryRequiredCheckPayload + + """Deletes a single `PlatformRepositoryWorkflow` using a unique key.""" + deletePlatformRepositoryWorkflow( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePlatformRepositoryWorkflowInput! + ): DeletePlatformRepositoryWorkflowPayload + + """Deletes a single `PlatformResource` using a unique key.""" + deletePlatformResource( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePlatformResourceInput! + ): DeletePlatformResourcePayload + + """Deletes a single `PlatformResourceDefinition` using a unique key.""" + deletePlatformResourceDefinition( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePlatformResourceDefinitionInput! + ): DeletePlatformResourceDefinitionPayload + + """Deletes a single `PlatformResourceEvent` using a unique key.""" + deletePlatformResourceEvent( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePlatformResourceEventInput! + ): DeletePlatformResourceEventPayload + + """Deletes a single `PlatformResourceInstallation` using a unique key.""" + deletePlatformResourceInstallation( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePlatformResourceInstallationInput! + ): DeletePlatformResourceInstallationPayload + + """Deletes a single `PlatformResourceStatusCheck` using a unique key.""" + deletePlatformResourceStatusCheck( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePlatformResourceStatusCheckInput! + ): DeletePlatformResourceStatusCheckPayload + + """Deletes a single `PlatformResourceUsageLog` using a unique key.""" + deletePlatformResourceUsageLog( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePlatformResourceUsageLogInput! + ): DeletePlatformResourceUsageLogPayload + + """Deletes a single `PlatformResourceUsageSummary` using a unique key.""" + deletePlatformResourceUsageSummary( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePlatformResourceUsageSummaryInput! + ): DeletePlatformResourceUsageSummaryPayload + + """Deletes a single `PlatformWebhookEndpoint` using a unique key.""" + deletePlatformWebhookEndpoint( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePlatformWebhookEndpointInput! + ): DeletePlatformWebhookEndpointPayload + + """Deletes a single `PlatformWebhookEvent` using a unique key.""" + deletePlatformWebhookEvent( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePlatformWebhookEventInput! + ): DeletePlatformWebhookEventPayload + + """Deletes a single `Proposal` using a unique key.""" + deleteProposal( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteProposalInput! + ): DeleteProposalPayload + + """Deletes a single `ProposalComment` using a unique key.""" + deleteProposalComment( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteProposalCommentInput! + ): DeleteProposalCommentPayload + + """Deletes a single `ProposalFileView` using a unique key.""" + deleteProposalFileView( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteProposalFileViewInput! + ): DeleteProposalFileViewPayload + + """Deletes a single `ProposalReaction` using a unique key.""" + deleteProposalReaction( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteProposalReactionInput! + ): DeleteProposalReactionPayload + + """Deletes a single `ProposalReview` using a unique key.""" + deleteProposalReview( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteProposalReviewInput! + ): DeleteProposalReviewPayload + + """Deletes a single `ProposalsChunk` using a unique key.""" + deleteProposalsChunk( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteProposalsChunkInput! + ): DeleteProposalsChunkPayload + + """Deletes a single `Registry` using a unique key.""" + deleteRegistry( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteRegistryInput! + ): DeleteRegistryPayload + + """Deletes a single `RegistryBinding` using a unique key.""" + deleteRegistryBinding( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteRegistryBindingInput! + ): DeleteRegistryBindingPayload + + """Deletes a single `RegistryGrant` using a unique key.""" + deleteRegistryGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteRegistryGrantInput! + ): DeleteRegistryGrantPayload + + """Deletes a single `Repository` using a unique key.""" + deleteRepository( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteRepositoryInput! + ): DeleteRepositoryPayload + + """Deletes a single `RepositoryEvent` using a unique key.""" + deleteRepositoryEvent( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteRepositoryEventInput! + ): DeleteRepositoryEventPayload + + """Deletes a single `RepositoryRequiredCheck` using a unique key.""" + deleteRepositoryRequiredCheck( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteRepositoryRequiredCheckInput! + ): DeleteRepositoryRequiredCheckPayload + + """Deletes a single `RepositoryWorkflow` using a unique key.""" + deleteRepositoryWorkflow( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteRepositoryWorkflowInput! + ): DeleteRepositoryWorkflowPayload + + """Deletes a single `Resource` using a unique key.""" + deleteResource( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteResourceInput! + ): DeleteResourcePayload + + """Deletes a single `ResourceDefinition` using a unique key.""" + deleteResourceDefinition( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteResourceDefinitionInput! + ): DeleteResourceDefinitionPayload + + """Deletes a single `ResourceEvent` using a unique key.""" + deleteResourceEvent( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteResourceEventInput! + ): DeleteResourceEventPayload + + """Deletes a single `ResourceInstallation` using a unique key.""" + deleteResourceInstallation( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteResourceInstallationInput! + ): DeleteResourceInstallationPayload + + """Deletes a single `ResourceStatusCheck` using a unique key.""" + deleteResourceStatusCheck( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteResourceStatusCheckInput! + ): DeleteResourceStatusCheckPayload + + """Deletes a single `ResourceUsageLog` using a unique key.""" + deleteResourceUsageLog( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteResourceUsageLogInput! + ): DeleteResourceUsageLogPayload + + """Deletes a single `ResourceUsageSummary` using a unique key.""" + deleteResourceUsageSummary( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteResourceUsageSummaryInput! + ): DeleteResourceUsageSummaryPayload + + """Deletes a single `WebhookEndpoint` using a unique key.""" + deleteWebhookEndpoint( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteWebhookEndpointInput! + ): DeleteWebhookEndpointPayload + + """Deletes a single `WebhookEvent` using a unique key.""" + deleteWebhookEvent( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteWebhookEventInput! + ): DeleteWebhookEventPayload + functionInvocationsCreateSync( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: FunctionInvocationsCreateSyncInput! + ): FunctionInvocationsCreateSyncPayload + importDefinitions( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: ImportDefinitionsInput! + ): ImportDefinitionsPayload + importGraphJson( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: ImportGraphJsonInput! + ): ImportGraphJsonPayload + infraInitEmptyRepo( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: InfraInitEmptyRepoInput! + ): InfraInitEmptyRepoPayload + infraInsertNodeAtPath( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + 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. + """ + input: InitEmptyRepoInput! + ): InitEmptyRepoPayload + insertNodeAtPath( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + 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 + platformFunctionInvocationsCreateSync( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: PlatformFunctionInvocationsCreateSyncInput! + ): PlatformFunctionInvocationsCreateSyncPayload + platformInfraInitEmptyRepo( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: PlatformInfraInitEmptyRepoInput! + ): PlatformInfraInitEmptyRepoPayload + platformInfraInsertNodeAtPath( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + 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. + """ + input: PlatformResourceInstallationsInstallInput! + ): PlatformResourceInstallationsInstallPayload + platformResourceInstallationsRollback( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: PlatformResourceInstallationsRollbackInput! + ): PlatformResourceInstallationsRollbackPayload + platformResourceInstallationsUninstall( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: PlatformResourceInstallationsUninstallInput! + ): PlatformResourceInstallationsUninstallPayload + platformResourceInstallationsUpgrade( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: PlatformResourceInstallationsUpgradeInput! + ): PlatformResourceInstallationsUpgradePayload + + """ + Reconcile an S3 bucket for a logical bucket in the database. + Reads the bucket config via RLS, then enqueues the same + storage:provision_bucket job used by the INSERT trigger. This is + idempotent for an already-reconciled bucket; enqueue failures become + GraphQL errors. + """ + provisionBucket( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: ProvisionBucketInput! + ): ProvisionBucketPayload + resourceInstallationsInstall( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: ResourceInstallationsInstallInput! + ): ResourceInstallationsInstallPayload + resourceInstallationsRollback( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: ResourceInstallationsRollbackInput! + ): ResourceInstallationsRollbackPayload + resourceInstallationsUninstall( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: ResourceInstallationsUninstallInput! + ): ResourceInstallationsUninstallPayload + resourceInstallationsUpgrade( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: ResourceInstallationsUpgradeInput! + ): ResourceInstallationsUpgradePayload + saveGraph( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + 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. + """ + input: StartExecutionInput! + ): StartExecutionPayload + + """Updates a single `Build` using a unique key and a patch.""" + updateBuild( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateBuildInput! + ): UpdateBuildPayload + + """Updates a single `BuildStep` using a unique key and a patch.""" + updateBuildStep( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateBuildStepInput! + ): UpdateBuildStepPayload + + """Updates a single `BuilderBinding` using a unique key and a patch.""" + updateBuilderBinding( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateBuilderBindingInput! + ): UpdateBuilderBindingPayload + + """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 `DatabaseFunctionGraph` using a unique key and a patch. + """ + updateDatabaseFunctionGraph( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateDatabaseFunctionGraphInput! + ): UpdateDatabaseFunctionGraphPayload + + """ + Updates a single `DatabaseFunctionGraphExecution` using a unique key and a patch. + """ + updateDatabaseFunctionGraphExecution( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateDatabaseFunctionGraphExecutionInput! + ): UpdateDatabaseFunctionGraphExecutionPayload + + """ + Updates a single `DatabaseFunctionGraphExecutionNodeState` using a unique key and a patch. + """ + updateDatabaseFunctionGraphExecutionNodeState( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateDatabaseFunctionGraphExecutionNodeStateInput! + ): UpdateDatabaseFunctionGraphExecutionNodeStatePayload + + """ + Updates a single `DatabaseFunctionGraphExecutionOutput` using a unique key and a patch. + """ + updateDatabaseFunctionGraphExecutionOutput( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateDatabaseFunctionGraphExecutionOutputInput! + ): UpdateDatabaseFunctionGraphExecutionOutputPayload + + """Updates a single `DatabaseGraphCommit` using a unique key and a patch.""" + updateDatabaseGraphCommit( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateDatabaseGraphCommitInput! + ): UpdateDatabaseGraphCommitPayload + + """Updates a single `DatabaseGraphObject` using a unique key and a patch.""" + updateDatabaseGraphObject( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateDatabaseGraphObjectInput! + ): UpdateDatabaseGraphObjectPayload + + """Updates a single `DatabaseGraphRef` using a unique key and a patch.""" + updateDatabaseGraphRef( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateDatabaseGraphRefInput! + ): UpdateDatabaseGraphRefPayload + + """Updates a single `DatabaseGraphStore` using a unique key and a patch.""" + updateDatabaseGraphStore( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateDatabaseGraphStoreInput! + ): UpdateDatabaseGraphStorePayload + + """Updates a single `DbPreset` using a unique key and a patch.""" + updateDbPreset( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateDbPresetInput! + ): UpdateDbPresetPayload + + """Updates a single `FunctionApiBinding` using a unique key and a patch.""" + updateFunctionApiBinding( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateFunctionApiBindingInput! + ): UpdateFunctionApiBindingPayload + + """ + Updates a single `FunctionCapabilityBinding` using a unique key and a patch. + """ + updateFunctionCapabilityBinding( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateFunctionCapabilityBindingInput! + ): UpdateFunctionCapabilityBindingPayload + + """Updates a single `FunctionDefinition` using a unique key and a patch.""" + updateFunctionDefinition( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateFunctionDefinitionInput! + ): UpdateFunctionDefinitionPayload + + """Updates a single `FunctionDeployment` using a unique key and a patch.""" + updateFunctionDeployment( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateFunctionDeploymentInput! + ): UpdateFunctionDeploymentPayload + + """ + Updates a single `FunctionDeploymentEvent` using a unique key and a patch. + """ + updateFunctionDeploymentEvent( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateFunctionDeploymentEventInput! + ): UpdateFunctionDeploymentEventPayload + + """ + Updates a single `FunctionExecutionLog` using a unique key and a patch. + """ + updateFunctionExecutionLog( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateFunctionExecutionLogInput! + ): UpdateFunctionExecutionLogPayload + + """Updates a single `FunctionGraph` using a unique key and a patch.""" + updateFunctionGraph( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateFunctionGraphInput! + ): UpdateFunctionGraphPayload + + """Updates a single `FunctionGraphCommit` using a unique key and a patch.""" + updateFunctionGraphCommit( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateFunctionGraphCommitInput! + ): UpdateFunctionGraphCommitPayload + + """ + Updates a single `FunctionGraphExecution` using a unique key and a patch. + """ + updateFunctionGraphExecution( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateFunctionGraphExecutionInput! + ): UpdateFunctionGraphExecutionPayload + + """ + Updates a single `FunctionGraphExecutionNodeState` using a unique key and a patch. + """ + updateFunctionGraphExecutionNodeState( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateFunctionGraphExecutionNodeStateInput! + ): UpdateFunctionGraphExecutionNodeStatePayload + + """ + Updates a single `FunctionGraphExecutionOutput` using a unique key and a patch. + """ + updateFunctionGraphExecutionOutput( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateFunctionGraphExecutionOutputInput! + ): UpdateFunctionGraphExecutionOutputPayload + + """Updates a single `FunctionGraphObject` using a unique key and a patch.""" + updateFunctionGraphObject( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateFunctionGraphObjectInput! + ): UpdateFunctionGraphObjectPayload + + """Updates a single `FunctionGraphRef` using a unique key and a patch.""" + updateFunctionGraphRef( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateFunctionGraphRefInput! + ): UpdateFunctionGraphRefPayload + + """Updates a single `FunctionGraphStore` using a unique key and a patch.""" + updateFunctionGraphStore( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateFunctionGraphStoreInput! + ): UpdateFunctionGraphStorePayload + + """Updates a single `FunctionInvocation` using a unique key and a patch.""" + updateFunctionInvocation( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateFunctionInvocationInput! + ): UpdateFunctionInvocationPayload + + """ + Updates a single `FunctionInvocationAttempt` using a unique key and a patch. + """ + updateFunctionInvocationAttempt( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateFunctionInvocationAttemptInput! + ): UpdateFunctionInvocationAttemptPayload + + """Updates a single `Image` using a unique key and a patch.""" + updateImage( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateImageInput! + ): UpdateImagePayload + + """Updates a single `ImageGrant` using a unique key and a patch.""" + updateImageGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateImageGrantInput! + ): UpdateImageGrantPayload + + """Updates a single `InfraCommit` using a unique key and a patch.""" + updateInfraCommit( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateInfraCommitInput! + ): UpdateInfraCommitPayload + + """Updates a single `InfraObject` using a unique key and a patch.""" + updateInfraObject( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateInfraObjectInput! + ): UpdateInfraObjectPayload + + """Updates a single `InfraRef` using a unique key and a patch.""" + updateInfraRef( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateInfraRefInput! + ): UpdateInfraRefPayload + + """Updates a single `InfraStore` using a unique key and a patch.""" + updateInfraStore( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateInfraStoreInput! + ): UpdateInfraStorePayload + + """Updates a single `IntegrationProvider` using a unique key and a patch.""" + updateIntegrationProvider( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateIntegrationProviderInput! + ): UpdateIntegrationProviderPayload + + """Updates a single `Namespace` using a unique key and a patch.""" + updateNamespace( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateNamespaceInput! + ): UpdateNamespacePayload + + """Updates a single `NamespaceEvent` using a unique key and a patch.""" + updateNamespaceEvent( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateNamespaceEventInput! + ): UpdateNamespaceEventPayload + + """Updates a single `PlatformBuild` using a unique key and a patch.""" + updatePlatformBuild( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePlatformBuildInput! + ): UpdatePlatformBuildPayload + + """Updates a single `PlatformBuildStep` using a unique key and a patch.""" + updatePlatformBuildStep( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePlatformBuildStepInput! + ): UpdatePlatformBuildStepPayload + + """ + Updates a single `PlatformBuilderBinding` using a unique key and a patch. + """ + updatePlatformBuilderBinding( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePlatformBuilderBindingInput! + ): UpdatePlatformBuilderBindingPayload + + """ + Updates a single `PlatformFunctionApiBinding` using a unique key and a patch. + """ + updatePlatformFunctionApiBinding( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePlatformFunctionApiBindingInput! + ): UpdatePlatformFunctionApiBindingPayload + + """ + Updates a single `PlatformFunctionCapabilityBinding` using a unique key and a patch. + """ + updatePlatformFunctionCapabilityBinding( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePlatformFunctionCapabilityBindingInput! + ): UpdatePlatformFunctionCapabilityBindingPayload + + """ + Updates a single `PlatformFunctionDefinition` using a unique key and a patch. + """ + updatePlatformFunctionDefinition( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePlatformFunctionDefinitionInput! + ): UpdatePlatformFunctionDefinitionPayload + + """ + Updates a single `PlatformFunctionDeployment` using a unique key and a patch. + """ + updatePlatformFunctionDeployment( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePlatformFunctionDeploymentInput! + ): UpdatePlatformFunctionDeploymentPayload + + """ + Updates a single `PlatformFunctionDeploymentEvent` using a unique key and a patch. + """ + updatePlatformFunctionDeploymentEvent( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePlatformFunctionDeploymentEventInput! + ): UpdatePlatformFunctionDeploymentEventPayload + + """ + Updates a single `PlatformFunctionExecutionLog` using a unique key and a patch. + """ + updatePlatformFunctionExecutionLog( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePlatformFunctionExecutionLogInput! + ): UpdatePlatformFunctionExecutionLogPayload + + """ + Updates a single `PlatformFunctionInvocation` using a unique key and a patch. + """ + updatePlatformFunctionInvocation( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePlatformFunctionInvocationInput! + ): UpdatePlatformFunctionInvocationPayload + + """ + Updates a single `PlatformFunctionInvocationAttempt` using a unique key and a patch. + """ + updatePlatformFunctionInvocationAttempt( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePlatformFunctionInvocationAttemptInput! + ): UpdatePlatformFunctionInvocationAttemptPayload + + """Updates a single `PlatformImage` using a unique key and a patch.""" + updatePlatformImage( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePlatformImageInput! + ): UpdatePlatformImagePayload + + """Updates a single `PlatformImageGrant` using a unique key and a patch.""" + updatePlatformImageGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePlatformImageGrantInput! + ): UpdatePlatformImageGrantPayload + + """Updates a single `PlatformInfraCommit` using a unique key and a patch.""" + updatePlatformInfraCommit( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePlatformInfraCommitInput! + ): UpdatePlatformInfraCommitPayload + + """Updates a single `PlatformInfraObject` using a unique key and a patch.""" + updatePlatformInfraObject( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePlatformInfraObjectInput! + ): UpdatePlatformInfraObjectPayload + + """Updates a single `PlatformInfraRef` using a unique key and a patch.""" + updatePlatformInfraRef( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePlatformInfraRefInput! + ): UpdatePlatformInfraRefPayload + + """Updates a single `PlatformInfraStore` using a unique key and a patch.""" + updatePlatformInfraStore( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePlatformInfraStoreInput! + ): UpdatePlatformInfraStorePayload + + """ + Updates a single `PlatformK8sResourceKind` using a unique key and a patch. + """ + updatePlatformK8sResourceKind( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePlatformK8sResourceKindInput! + ): UpdatePlatformK8sResourceKindPayload + + """Updates a single `PlatformK8sSpecRule` using a unique key and a patch.""" + updatePlatformK8sSpecRule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePlatformK8sSpecRuleInput! + ): UpdatePlatformK8sSpecRulePayload + + """Updates a single `PlatformNamespace` using a unique key and a patch.""" + updatePlatformNamespace( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePlatformNamespaceInput! + ): UpdatePlatformNamespacePayload + + """ + Updates a single `PlatformNamespaceEvent` using a unique key and a patch. + """ + updatePlatformNamespaceEvent( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePlatformNamespaceEventInput! + ): UpdatePlatformNamespaceEventPayload + + """Updates a single `PlatformProposal` using a unique key and a patch.""" + updatePlatformProposal( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePlatformProposalInput! + ): UpdatePlatformProposalPayload + + """ + Updates a single `PlatformProposalComment` using a unique key and a patch. + """ + updatePlatformProposalComment( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePlatformProposalCommentInput! + ): UpdatePlatformProposalCommentPayload + + """ + Updates a single `PlatformProposalFileView` using a unique key and a patch. + """ + updatePlatformProposalFileView( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePlatformProposalFileViewInput! + ): UpdatePlatformProposalFileViewPayload + + """ + Updates a single `PlatformProposalReaction` using a unique key and a patch. + """ + updatePlatformProposalReaction( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePlatformProposalReactionInput! + ): UpdatePlatformProposalReactionPayload + + """ + Updates a single `PlatformProposalReview` using a unique key and a patch. + """ + updatePlatformProposalReview( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePlatformProposalReviewInput! + ): UpdatePlatformProposalReviewPayload + + """ + Updates a single `PlatformProposalsChunk` using a unique key and a patch. + """ + updatePlatformProposalsChunk( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePlatformProposalsChunkInput! + ): UpdatePlatformProposalsChunkPayload + + """Updates a single `PlatformRegistry` using a unique key and a patch.""" + updatePlatformRegistry( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePlatformRegistryInput! + ): UpdatePlatformRegistryPayload + + """ + Updates a single `PlatformRegistryBinding` using a unique key and a patch. + """ + updatePlatformRegistryBinding( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePlatformRegistryBindingInput! + ): UpdatePlatformRegistryBindingPayload + + """ + Updates a single `PlatformRegistryGrant` using a unique key and a patch. + """ + updatePlatformRegistryGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePlatformRegistryGrantInput! + ): UpdatePlatformRegistryGrantPayload + + """Updates a single `PlatformRepository` using a unique key and a patch.""" + updatePlatformRepository( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePlatformRepositoryInput! + ): UpdatePlatformRepositoryPayload + + """ + Updates a single `PlatformRepositoryEvent` using a unique key and a patch. + """ + updatePlatformRepositoryEvent( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePlatformRepositoryEventInput! + ): UpdatePlatformRepositoryEventPayload + + """ + Updates a single `PlatformRepositoryRequiredCheck` using a unique key and a patch. + """ + updatePlatformRepositoryRequiredCheck( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePlatformRepositoryRequiredCheckInput! + ): UpdatePlatformRepositoryRequiredCheckPayload + + """ + Updates a single `PlatformRepositoryWorkflow` using a unique key and a patch. + """ + updatePlatformRepositoryWorkflow( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePlatformRepositoryWorkflowInput! + ): UpdatePlatformRepositoryWorkflowPayload + + """Updates a single `PlatformResource` using a unique key and a patch.""" + updatePlatformResource( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePlatformResourceInput! + ): UpdatePlatformResourcePayload + + """ + Updates a single `PlatformResourceDefinition` using a unique key and a patch. + """ + updatePlatformResourceDefinition( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePlatformResourceDefinitionInput! + ): UpdatePlatformResourceDefinitionPayload + + """ + Updates a single `PlatformResourceEvent` using a unique key and a patch. + """ + updatePlatformResourceEvent( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePlatformResourceEventInput! + ): UpdatePlatformResourceEventPayload + + """ + Updates a single `PlatformResourceInstallation` using a unique key and a patch. + """ + updatePlatformResourceInstallation( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePlatformResourceInstallationInput! + ): UpdatePlatformResourceInstallationPayload + + """ + Updates a single `PlatformResourceStatusCheck` using a unique key and a patch. + """ + updatePlatformResourceStatusCheck( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePlatformResourceStatusCheckInput! + ): UpdatePlatformResourceStatusCheckPayload + + """ + Updates a single `PlatformResourceUsageLog` using a unique key and a patch. + """ + updatePlatformResourceUsageLog( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePlatformResourceUsageLogInput! + ): UpdatePlatformResourceUsageLogPayload + + """ + Updates a single `PlatformResourceUsageSummary` using a unique key and a patch. + """ + updatePlatformResourceUsageSummary( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePlatformResourceUsageSummaryInput! + ): UpdatePlatformResourceUsageSummaryPayload + + """ + Updates a single `PlatformWebhookEndpoint` using a unique key and a patch. + """ + updatePlatformWebhookEndpoint( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePlatformWebhookEndpointInput! + ): UpdatePlatformWebhookEndpointPayload + + """ + Updates a single `PlatformWebhookEvent` using a unique key and a patch. + """ + updatePlatformWebhookEvent( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePlatformWebhookEventInput! + ): UpdatePlatformWebhookEventPayload + + """Updates a single `Proposal` using a unique key and a patch.""" + updateProposal( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateProposalInput! + ): UpdateProposalPayload + + """Updates a single `ProposalComment` using a unique key and a patch.""" + updateProposalComment( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateProposalCommentInput! + ): UpdateProposalCommentPayload + + """Updates a single `ProposalFileView` using a unique key and a patch.""" + updateProposalFileView( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateProposalFileViewInput! + ): UpdateProposalFileViewPayload + + """Updates a single `ProposalReaction` using a unique key and a patch.""" + updateProposalReaction( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateProposalReactionInput! + ): UpdateProposalReactionPayload + + """Updates a single `ProposalReview` using a unique key and a patch.""" + updateProposalReview( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateProposalReviewInput! + ): UpdateProposalReviewPayload + + """Updates a single `ProposalsChunk` using a unique key and a patch.""" + updateProposalsChunk( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateProposalsChunkInput! + ): UpdateProposalsChunkPayload + + """Updates a single `Registry` using a unique key and a patch.""" + updateRegistry( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateRegistryInput! + ): UpdateRegistryPayload + + """Updates a single `RegistryBinding` using a unique key and a patch.""" + updateRegistryBinding( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateRegistryBindingInput! + ): UpdateRegistryBindingPayload + + """Updates a single `RegistryGrant` using a unique key and a patch.""" + updateRegistryGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateRegistryGrantInput! + ): UpdateRegistryGrantPayload + + """Updates a single `Repository` using a unique key and a patch.""" + updateRepository( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateRepositoryInput! + ): UpdateRepositoryPayload + + """Updates a single `RepositoryEvent` using a unique key and a patch.""" + updateRepositoryEvent( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateRepositoryEventInput! + ): UpdateRepositoryEventPayload + + """ + Updates a single `RepositoryRequiredCheck` using a unique key and a patch. + """ + updateRepositoryRequiredCheck( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateRepositoryRequiredCheckInput! + ): UpdateRepositoryRequiredCheckPayload + + """Updates a single `RepositoryWorkflow` using a unique key and a patch.""" + updateRepositoryWorkflow( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateRepositoryWorkflowInput! + ): UpdateRepositoryWorkflowPayload + + """Updates a single `Resource` using a unique key and a patch.""" + updateResource( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateResourceInput! + ): UpdateResourcePayload + + """Updates a single `ResourceDefinition` using a unique key and a patch.""" + updateResourceDefinition( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateResourceDefinitionInput! + ): UpdateResourceDefinitionPayload + + """Updates a single `ResourceEvent` using a unique key and a patch.""" + updateResourceEvent( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateResourceEventInput! + ): UpdateResourceEventPayload + + """ + Updates a single `ResourceInstallation` using a unique key and a patch. + """ + updateResourceInstallation( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateResourceInstallationInput! + ): UpdateResourceInstallationPayload + + """Updates a single `ResourceStatusCheck` using a unique key and a patch.""" + updateResourceStatusCheck( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateResourceStatusCheckInput! + ): UpdateResourceStatusCheckPayload + + """Updates a single `ResourceUsageLog` using a unique key and a patch.""" + updateResourceUsageLog( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateResourceUsageLogInput! + ): UpdateResourceUsageLogPayload + + """ + Updates a single `ResourceUsageSummary` using a unique key and a patch. + """ + updateResourceUsageSummary( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateResourceUsageSummaryInput! + ): UpdateResourceUsageSummaryPayload + + """Updates a single `WebhookEndpoint` using a unique key and a patch.""" + updateWebhookEndpoint( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateWebhookEndpointInput! + ): UpdateWebhookEndpointPayload + + """Updates a single `WebhookEvent` using a unique key and a patch.""" + updateWebhookEvent( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateWebhookEventInput! + ): UpdateWebhookEventPayload + validateFunctionGraph( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: ValidateFunctionGraphInput! + ): ValidateFunctionGraphPayload +} + +""" +Logical namespace containers for grouping secrets, config, functions, and other resources +""" +type Namespace { + """Freeform metadata for tooling and operational notes""" + annotations: JSON! + + """Reads and enables pagination through a set of `BuilderBinding`.""" + builderBindings( + """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 `BuilderBinding`.""" + orderBy: [BuilderBindingOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: BuilderBindingFilter + ): BuilderBindingConnection! + + """ + Cluster this namespace is projected onto; NULL = the cluster the reconciler runs in + """ + clusterId: UUID + createdAt: Datetime + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! + + """Optional human-readable description of this namespace""" + description: String + + """Reads and enables pagination through a set of `FunctionDeployment`.""" + functionDeployments( + """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 `FunctionDeployment`.""" + orderBy: [FunctionDeploymentOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: FunctionDeploymentFilter + ): FunctionDeploymentConnection! + id: UUID! + + """Whether this namespace is active (soft-disable for filtering)""" + isActive: Boolean! + + """ + true = provisioned by the platform via jobs, false = unmanaged/platform-native (bootstrapped externally) + """ + isManaged: Boolean! + + """Key/value pairs for selecting and filtering namespaces""" + labels: JSON! + + """Most recent provisioning or reconcile error message""" + lastError: String + + """Human-readable namespace name (e.g. default, production, oauth)""" + name: String! + + """ + Globally unique computed namespace identifier via inflection.underscore + """ + namespaceName: String! + + """Reads and enables pagination through a set of `RegistryBinding`.""" + registryBindings( + """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 `RegistryBinding`.""" + orderBy: [RegistryBindingOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: RegistryBindingFilter + ): RegistryBindingConnection! + + """Reads and enables pagination through a set of `ResourceDefinition`.""" + resourceDefinitions( + """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 `ResourceDefinition`.""" + orderBy: [ResourceDefinitionOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: ResourceDefinitionFilter + ): ResourceDefinitionConnection! + + """Reads and enables pagination through a set of `ResourceInstallation`.""" + resourceInstallations( + """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 `ResourceInstallation`.""" + orderBy: [ResourceInstallationOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: ResourceInstallationFilter + ): ResourceInstallationConnection! + + """Reads and enables pagination through a set of `Resource`.""" + resources( + """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 `Resource`.""" + orderBy: [ResourceOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: ResourceFilter + ): ResourceConnection! + + """ + Namespace provisioning lifecycle status: pending, provisioning, active, failed + """ + status: String! + updatedAt: Datetime + + """Reads and enables pagination through a set of `WebhookEndpoint`.""" + webhookEndpoints( + """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 `WebhookEndpoint`.""" + orderBy: [WebhookEndpointOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: WebhookEndpointFilter + ): WebhookEndpointConnection! +} + +"""A connection to a list of `Namespace` values.""" +type NamespaceConnection { + """ + A list of edges which contains the `Namespace` and cursor to aid in pagination. + """ + edges: [NamespaceEdge]! + + """A list of `Namespace` objects.""" + nodes: [Namespace]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `Namespace` you could get from the connection.""" + totalCount: Int! +} + +"""A `Namespace` edge in the connection.""" +type NamespaceEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `Namespace` at the end of the edge.""" + node: Namespace +} + +""" +Namespace lifecycle events — audit log of creation, activation, deactivation, label changes +""" +type NamespaceEvent { + """ + User who triggered this event; NULL only when no human actor was proven + """ + actorId: UUID + + """Event timestamp (partition key)""" + createdAt: Datetime! + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! + + """ + Event type: created, activated, deactivated, labels_updated, annotations_updated, renamed + """ + eventType: String! + + """Unique event identifier""" + id: UUID! + + """Human-readable description of the event""" + message: String + + """Structured context (old/new values, labels diff, etc.)""" + metadata: JSON + + """Namespace this event belongs to""" + namespaceId: UUID! +} + +"""A connection to a list of `NamespaceEvent` values.""" +type NamespaceEventConnection { + """ + A list of edges which contains the `NamespaceEvent` and cursor to aid in pagination. + """ + edges: [NamespaceEventEdge]! + + """A list of `NamespaceEvent` objects.""" + nodes: [NamespaceEvent]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `NamespaceEvent` you could get from the connection.""" + totalCount: Int! +} + +"""A `NamespaceEvent` edge in the connection.""" +type NamespaceEventEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `NamespaceEvent` at the end of the edge.""" + node: NamespaceEvent +} + +""" +A filter to be used against `NamespaceEvent` object types. All fields are combined with a logical ‘and.’ +""" +input NamespaceEventFilter { + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter + + """Checks for all expressions in this list.""" + and: [NamespaceEventFilter!] + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `eventType` field.""" + eventType: StringFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `message` field.""" + message: StringFilter + + """Filter by the object’s `metadata` field.""" + metadata: JSONFilter + + """Filter by the object’s `namespaceId` field.""" + namespaceId: UUIDFilter + + """Negates the expression.""" + not: NamespaceEventFilter + + """Checks for any expressions in this list.""" + or: [NamespaceEventFilter!] +} + +"""An input for mutations affecting `NamespaceEvent`""" +input NamespaceEventInput { + """ + User who triggered this event; NULL only when no human actor was proven + """ + actorId: UUID + + """Event timestamp (partition key)""" + createdAt: Datetime + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! + + """ + Event type: created, activated, deactivated, labels_updated, annotations_updated, renamed + """ + eventType: String! + + """Unique event identifier""" + id: UUID + + """Human-readable description of the event""" + message: String + + """Structured context (old/new values, labels diff, etc.)""" + metadata: JSON + + """Namespace this event belongs to""" + namespaceId: UUID! +} + +"""Methods to use when ordering `NamespaceEvent`.""" +enum NamespaceEventOrderBy { + ACTOR_ID_ASC + ACTOR_ID_DESC + CREATED_AT_ASC + CREATED_AT_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + EVENT_TYPE_ASC + EVENT_TYPE_DESC + ID_ASC + ID_DESC + MESSAGE_ASC + MESSAGE_DESC + METADATA_ASC + METADATA_DESC + NAMESPACE_ID_ASC + NAMESPACE_ID_DESC + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC +} + +""" +Represents an update to a `NamespaceEvent`. Fields that are set will be updated. +""" +input NamespaceEventPatch { + """ + User who triggered this event; NULL only when no human actor was proven + """ + actorId: UUID + + """Event timestamp (partition key)""" + createdAt: Datetime + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID + + """ + Event type: created, activated, deactivated, labels_updated, annotations_updated, renamed + """ + eventType: String + + """Unique event identifier""" + id: UUID + + """Human-readable description of the event""" + message: String + + """Structured context (old/new values, labels diff, etc.)""" + metadata: JSON + + """Namespace this event belongs to""" + namespaceId: UUID +} + +""" +A filter to be used against `Namespace` object types. All fields are combined with a logical ‘and.’ +""" +input NamespaceFilter { + """Checks for all expressions in this list.""" + and: [NamespaceFilter!] + + """Filter by the object’s `annotations` field.""" + annotations: JSONFilter + + """Filter by the object’s `builderBindings` relation.""" + builderBindings: NamespaceToManyBuilderBindingFilter + + """`builderBindings` exist.""" + builderBindingsExist: Boolean + + """Filter by the object’s `clusterId` field.""" + clusterId: 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 `functionDeployments` relation.""" + functionDeployments: NamespaceToManyFunctionDeploymentFilter + + """`functionDeployments` exist.""" + functionDeploymentsExist: Boolean + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `isActive` field.""" + isActive: BooleanFilter + + """Filter by the object’s `isManaged` field.""" + isManaged: BooleanFilter + + """Filter by the object’s `labels` field.""" + labels: JSONFilter + + """Filter by the object’s `lastError` field.""" + lastError: StringFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """Filter by the object’s `namespaceName` field.""" + namespaceName: StringFilter + + """Negates the expression.""" + not: NamespaceFilter + + """Checks for any expressions in this list.""" + or: [NamespaceFilter!] + + """Filter by the object’s `registryBindings` relation.""" + registryBindings: NamespaceToManyRegistryBindingFilter + + """`registryBindings` exist.""" + registryBindingsExist: Boolean + + """Filter by the object’s `resourceDefinitions` relation.""" + resourceDefinitions: NamespaceToManyResourceDefinitionFilter + + """`resourceDefinitions` exist.""" + resourceDefinitionsExist: Boolean + + """Filter by the object’s `resourceInstallations` relation.""" + resourceInstallations: NamespaceToManyResourceInstallationFilter + + """`resourceInstallations` exist.""" + resourceInstallationsExist: Boolean + + """Filter by the object’s `resources` relation.""" + resources: NamespaceToManyResourceFilter + + """`resources` exist.""" + resourcesExist: Boolean + + """Filter by the object’s `status` field.""" + status: StringFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + + """Filter by the object’s `webhookEndpoints` relation.""" + webhookEndpoints: NamespaceToManyWebhookEndpointFilter + + """`webhookEndpoints` exist.""" + webhookEndpointsExist: Boolean +} + +"""An input for mutations affecting `Namespace`""" +input NamespaceInput { + """Freeform metadata for tooling and operational notes""" + annotations: JSON + + """ + Cluster this namespace is projected onto; NULL = the cluster the reconciler runs in + """ + clusterId: UUID + createdAt: Datetime + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! + + """Optional human-readable description of this namespace""" + description: String + id: UUID + + """Whether this namespace is active (soft-disable for filtering)""" + isActive: Boolean + + """ + true = provisioned by the platform via jobs, false = unmanaged/platform-native (bootstrapped externally) + """ + isManaged: Boolean + + """Key/value pairs for selecting and filtering namespaces""" + labels: JSON + + """Most recent provisioning or reconcile error message""" + lastError: String + + """Human-readable namespace name (e.g. default, production, oauth)""" + name: String! + + """ + Globally unique computed namespace identifier via inflection.underscore + """ + namespaceName: String! + + """ + Namespace provisioning lifecycle status: pending, provisioning, active, failed + """ + status: String + updatedAt: Datetime +} + +"""Methods to use when ordering `Namespace`.""" +enum NamespaceOrderBy { + ANNOTATIONS_ASC + ANNOTATIONS_DESC + CLUSTER_ID_ASC + CLUSTER_ID_DESC + CREATED_AT_ASC + CREATED_AT_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + DESCRIPTION_ASC + DESCRIPTION_DESC + ID_ASC + ID_DESC + IS_ACTIVE_ASC + IS_ACTIVE_DESC + IS_MANAGED_ASC + IS_MANAGED_DESC + LABELS_ASC + LABELS_DESC + LAST_ERROR_ASC + LAST_ERROR_DESC + NAMESPACE_NAME_ASC + NAMESPACE_NAME_DESC + NAME_ASC + NAME_DESC + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + STATUS_ASC + STATUS_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC +} + +""" +Represents an update to a `Namespace`. Fields that are set will be updated. +""" +input NamespacePatch { + """Freeform metadata for tooling and operational notes""" + annotations: JSON + + """ + Cluster this namespace is projected onto; NULL = the cluster the reconciler runs in + """ + clusterId: UUID + createdAt: Datetime + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID + + """Optional human-readable description of this namespace""" + description: String + id: UUID + + """Whether this namespace is active (soft-disable for filtering)""" + isActive: Boolean + + """ + true = provisioned by the platform via jobs, false = unmanaged/platform-native (bootstrapped externally) + """ + isManaged: Boolean + + """Key/value pairs for selecting and filtering namespaces""" + labels: JSON + + """Most recent provisioning or reconcile error message""" + lastError: String + + """Human-readable namespace name (e.g. default, production, oauth)""" + name: String + + """ + Globally unique computed namespace identifier via inflection.underscore + """ + namespaceName: String + + """ + Namespace provisioning lifecycle status: pending, provisioning, active, failed + """ + status: String + updatedAt: Datetime +} + +""" +A filter to be used against many `BuilderBinding` object types. All fields are combined with a logical ‘and.’ +""" +input NamespaceToManyBuilderBindingFilter { + """Filters to entities where every related entity matches.""" + every: BuilderBindingFilter + + """Filters to entities where no related entity matches.""" + none: BuilderBindingFilter + + """Filters to entities where at least one related entity matches.""" + some: BuilderBindingFilter +} + +""" +A filter to be used against many `FunctionDeployment` object types. All fields are combined with a logical ‘and.’ +""" +input NamespaceToManyFunctionDeploymentFilter { + """Filters to entities where every related entity matches.""" + every: FunctionDeploymentFilter + + """Filters to entities where no related entity matches.""" + none: FunctionDeploymentFilter + + """Filters to entities where at least one related entity matches.""" + some: FunctionDeploymentFilter +} + +""" +A filter to be used against many `RegistryBinding` object types. All fields are combined with a logical ‘and.’ +""" +input NamespaceToManyRegistryBindingFilter { + """Filters to entities where every related entity matches.""" + every: RegistryBindingFilter + + """Filters to entities where no related entity matches.""" + none: RegistryBindingFilter + + """Filters to entities where at least one related entity matches.""" + some: RegistryBindingFilter +} + +""" +A filter to be used against many `ResourceDefinition` object types. All fields are combined with a logical ‘and.’ +""" +input NamespaceToManyResourceDefinitionFilter { + """Filters to entities where every related entity matches.""" + every: ResourceDefinitionFilter + + """Filters to entities where no related entity matches.""" + none: ResourceDefinitionFilter + + """Filters to entities where at least one related entity matches.""" + some: ResourceDefinitionFilter +} + +""" +A filter to be used against many `Resource` object types. All fields are combined with a logical ‘and.’ +""" +input NamespaceToManyResourceFilter { + """Filters to entities where every related entity matches.""" + every: ResourceFilter + + """Filters to entities where no related entity matches.""" + none: ResourceFilter + + """Filters to entities where at least one related entity matches.""" + some: ResourceFilter +} + +""" +A filter to be used against many `ResourceInstallation` object types. All fields are combined with a logical ‘and.’ +""" +input NamespaceToManyResourceInstallationFilter { + """Filters to entities where every related entity matches.""" + every: ResourceInstallationFilter + + """Filters to entities where no related entity matches.""" + none: ResourceInstallationFilter + + """Filters to entities where at least one related entity matches.""" + some: ResourceInstallationFilter +} + +""" +A filter to be used against many `WebhookEndpoint` object types. All fields are combined with a logical ‘and.’ +""" +input NamespaceToManyWebhookEndpointFilter { + """Filters to entities where every related entity matches.""" + every: WebhookEndpointFilter + + """Filters to entities where no related entity matches.""" + none: WebhookEndpointFilter + + """Filters to entities where at least one related entity matches.""" + some: WebhookEndpointFilter +} + +"""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 +} + +""" +One run of a repository workflow: its commit, its job, and what it produced +""" +type PlatformBuild { + """ + Authenticated actor this build is attributed to; NULL only when no human actor was proven + """ + actorId: UUID + + """Retry attempt number for this workflow, commit, and matrix shard""" + attempt: Int! + + """Commit this build built""" + commitSha: String + + """ + Verdict: NULL while pending/running, then success, failure, neutral, cancelled, skipped, timed_out, or action_required + """ + conclusion: String + createdAt: Datetime + createdByPrincipal: UUID + + """ + Reads a single `PlatformRepositoryEvent` that is related to this `PlatformBuild`. + """ + event: PlatformRepositoryEvent + + """Event that triggered this build (NULL for a manual build)""" + eventId: UUID + + """When the build reached a terminal status""" + finishedAt: Datetime + id: UUID! + + """ + Image reference this build produced (registry host/repository:tag; NULL when the build produced no image) + """ + imageRef: String + + """app_jobs row running this build""" + jobId: BigInt + + """Build log object in storage; step rows slice it by byte range""" + logs: ConstructiveInternalTypeUpload + + """Matrix shard identity; NULL for a non-matrix build""" + matrixKey: String + + """Build detail (step results, durations, failure reason)""" + metadata: JSON + + """ + Reads a single `PlatformProposal` that is related to this `PlatformBuild`. + """ + proposal: PlatformProposal + + """Proposal this build checks (NULL for builds not tied to a proposal)""" + proposalId: UUID + + """Ref this build built""" + ref: String + + """ + Reads a single `PlatformRepository` that is related to this `PlatformBuild`. + """ + repository: PlatformRepository + + """Repository this build is of""" + repositoryId: UUID! + + """When the build began running""" + startedAt: Datetime + + """Lifecycle: pending, running, succeeded, failed, cancelled""" + status: String! + updatedAt: Datetime + updatedByPrincipal: UUID + + """ + Reads a single `PlatformRepositoryWorkflow` that is related to this `PlatformBuild`. + """ + workflow: PlatformRepositoryWorkflow + + """Workflow whose firing produced this build (NULL for a manual build)""" + workflowId: UUID +} + +"""A connection to a list of `PlatformBuild` values.""" +type PlatformBuildConnection { + """ + A list of edges which contains the `PlatformBuild` and cursor to aid in pagination. + """ + edges: [PlatformBuildEdge]! + + """A list of `PlatformBuild` objects.""" + nodes: [PlatformBuild]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `PlatformBuild` you could get from the connection.""" + totalCount: Int! +} + +"""A `PlatformBuild` edge in the connection.""" +type PlatformBuildEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `PlatformBuild` at the end of the edge.""" + node: PlatformBuild +} + +""" +A filter to be used against `PlatformBuild` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformBuildFilter { + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter + + """Checks for all expressions in this list.""" + and: [PlatformBuildFilter!] + + """Filter by the object’s `attempt` field.""" + attempt: IntFilter + + """Filter by the object’s `commitSha` field.""" + commitSha: StringFilter + + """Filter by the object’s `conclusion` field.""" + conclusion: StringFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `createdByPrincipal` field.""" + createdByPrincipal: UUIDFilter + + """Filter by the object’s `event` relation.""" + event: PlatformRepositoryEventFilter + + """A related `event` exists.""" + eventExists: Boolean + + """Filter by the object’s `eventId` field.""" + eventId: UUIDFilter + + """Filter by the object’s `finishedAt` field.""" + finishedAt: DatetimeFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `imageRef` field.""" + imageRef: StringFilter + + """Filter by the object’s `jobId` field.""" + jobId: BigIntFilter + + """Filter by the object’s `logs` field.""" + logs: ConstructiveInternalTypeUploadFilter + + """Filter by the object’s `matrixKey` field.""" + matrixKey: StringFilter + + """Filter by the object’s `metadata` field.""" + metadata: JSONFilter + + """Negates the expression.""" + not: PlatformBuildFilter + + """Checks for any expressions in this list.""" + or: [PlatformBuildFilter!] + + """Filter by the object’s `proposal` relation.""" + proposal: PlatformProposalFilter + + """A related `proposal` exists.""" + proposalExists: Boolean + + """Filter by the object’s `proposalId` field.""" + proposalId: UUIDFilter + + """Filter by the object’s `ref` field.""" + ref: StringFilter + + """Filter by the object’s `repository` relation.""" + repository: PlatformRepositoryFilter + + """Filter by the object’s `repositoryId` field.""" + repositoryId: UUIDFilter + + """Filter by the object’s `startedAt` field.""" + startedAt: DatetimeFilter + + """Filter by the object’s `status` field.""" + status: StringFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + + """Filter by the object’s `updatedByPrincipal` field.""" + updatedByPrincipal: UUIDFilter + + """Filter by the object’s `workflow` relation.""" + workflow: PlatformRepositoryWorkflowFilter + + """A related `workflow` exists.""" + workflowExists: Boolean + + """Filter by the object’s `workflowId` field.""" + workflowId: UUIDFilter +} + +"""An input for mutations affecting `PlatformBuild`""" +input PlatformBuildInput { + """ + Authenticated actor this build is attributed to; NULL only when no human actor was proven + """ + actorId: UUID + + """Retry attempt number for this workflow, commit, and matrix shard""" + attempt: Int + + """Commit this build built""" + commitSha: String + + """ + Verdict: NULL while pending/running, then success, failure, neutral, cancelled, skipped, timed_out, or action_required + """ + conclusion: String + createdAt: Datetime + createdByPrincipal: UUID + + """Event that triggered this build (NULL for a manual build)""" + eventId: UUID + + """When the build reached a terminal status""" + finishedAt: Datetime + id: UUID + + """ + Image reference this build produced (registry host/repository:tag; NULL when the build produced no image) + """ + imageRef: String + + """app_jobs row running this build""" + jobId: BigInt + + """Build log object in storage; step rows slice it by byte range""" + logs: ConstructiveInternalTypeUpload + + """Matrix shard identity; NULL for a non-matrix build""" + matrixKey: String + + """Build detail (step results, durations, failure reason)""" + metadata: JSON + + """Proposal this build checks (NULL for builds not tied to a proposal)""" + proposalId: UUID + + """Ref this build built""" + ref: String + + """Repository this build is of""" + repositoryId: UUID! + + """When the build began running""" + startedAt: Datetime + + """Lifecycle: pending, running, succeeded, failed, cancelled""" + status: String + updatedAt: Datetime + updatedByPrincipal: UUID + + """Workflow whose firing produced this build (NULL for a manual build)""" + workflowId: UUID +} + +"""Methods to use when ordering `PlatformBuild`.""" +enum PlatformBuildOrderBy { + ACTOR_ID_ASC + ACTOR_ID_DESC + ATTEMPT_ASC + ATTEMPT_DESC + COMMIT_SHA_ASC + COMMIT_SHA_DESC + CONCLUSION_ASC + CONCLUSION_DESC + CREATED_AT_ASC + CREATED_AT_DESC + CREATED_BY_PRINCIPAL_ASC + CREATED_BY_PRINCIPAL_DESC + EVENT_ID_ASC + EVENT_ID_DESC + FINISHED_AT_ASC + FINISHED_AT_DESC + ID_ASC + ID_DESC + IMAGE_REF_ASC + IMAGE_REF_DESC + JOB_ID_ASC + JOB_ID_DESC + LOGS_ASC + LOGS_DESC + MATRIX_KEY_ASC + MATRIX_KEY_DESC + METADATA_ASC + METADATA_DESC + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + PROPOSAL_ID_ASC + PROPOSAL_ID_DESC + REF_ASC + REF_DESC + REPOSITORY_ID_ASC + REPOSITORY_ID_DESC + STARTED_AT_ASC + STARTED_AT_DESC + STATUS_ASC + STATUS_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + UPDATED_BY_PRINCIPAL_ASC + UPDATED_BY_PRINCIPAL_DESC + WORKFLOW_ID_ASC + WORKFLOW_ID_DESC +} + +""" +Represents an update to a `PlatformBuild`. Fields that are set will be updated. +""" +input PlatformBuildPatch { + """ + Authenticated actor this build is attributed to; NULL only when no human actor was proven + """ + actorId: UUID + + """Retry attempt number for this workflow, commit, and matrix shard""" + attempt: Int + + """Commit this build built""" + commitSha: String + + """ + Verdict: NULL while pending/running, then success, failure, neutral, cancelled, skipped, timed_out, or action_required + """ + conclusion: String + createdAt: Datetime + createdByPrincipal: UUID + + """Event that triggered this build (NULL for a manual build)""" + eventId: UUID + + """When the build reached a terminal status""" + finishedAt: Datetime + id: UUID + + """ + Image reference this build produced (registry host/repository:tag; NULL when the build produced no image) + """ + imageRef: String + + """app_jobs row running this build""" + jobId: BigInt + + """Build log object in storage; step rows slice it by byte range""" + logs: ConstructiveInternalTypeUpload + + """ + Upload for Build log object in storage; step rows slice it by byte range + """ + logsUpload: Upload + + """Matrix shard identity; NULL for a non-matrix build""" + matrixKey: String + + """Build detail (step results, durations, failure reason)""" + metadata: JSON + + """Proposal this build checks (NULL for builds not tied to a proposal)""" + proposalId: UUID + + """Ref this build built""" + ref: String + + """Repository this build is of""" + repositoryId: UUID + + """When the build began running""" + startedAt: Datetime + + """Lifecycle: pending, running, succeeded, failed, cancelled""" + status: String + updatedAt: Datetime + updatedByPrincipal: UUID + + """Workflow whose firing produced this build (NULL for a manual build)""" + workflowId: UUID +} + +""" +Partitioned append-only step and test results of a build, keyed into its log object +""" +type PlatformBuildStep { + """Build these results belong to""" + buildId: UUID! + + """Acting principal (agent, API key, or user) who created this record""" + createdByPrincipal: UUID + + """Process exit code of a step (NULL for a test result)""" + exitCode: Int + + """When this step or test finished""" + finishedAt: Datetime + + """Unique identifier (uuidv7 provides temporal ordering)""" + id: UUID! + + """What this row is: step, or test""" + kind: String! + + """Byte length of this row's output in the build log object""" + logBytes: BigInt + + """Byte offset of this row's output in the build log object""" + logOffset: BigInt + + """Step name, or the test's fully qualified name""" + name: String! + + """Sequence of the step that reported this test (NULL for a step itself)""" + parentSeq: Int + + """When the result was recorded (partition key)""" + recordedAt: Datetime! + + """ + Position within the build, monotonically increasing across steps and their tests + """ + seq: Int! + + """When this step or test began""" + startedAt: Datetime + + """Outcome: running, succeeded, failed, skipped, cancelled""" + status: String! + + """Parsed detail: failure message, assertion diff, counts, annotations""" + summary: JSON! +} + +"""A connection to a list of `PlatformBuildStep` values.""" +type PlatformBuildStepConnection { + """ + A list of edges which contains the `PlatformBuildStep` and cursor to aid in pagination. + """ + edges: [PlatformBuildStepEdge]! + + """A list of `PlatformBuildStep` objects.""" + nodes: [PlatformBuildStep]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `PlatformBuildStep` you could get from the connection. + """ + totalCount: Int! +} + +"""A `PlatformBuildStep` edge in the connection.""" +type PlatformBuildStepEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `PlatformBuildStep` at the end of the edge.""" + node: PlatformBuildStep +} + +""" +A filter to be used against `PlatformBuildStep` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformBuildStepFilter { + """Checks for all expressions in this list.""" + and: [PlatformBuildStepFilter!] + + """Filter by the object’s `buildId` field.""" + buildId: UUIDFilter + + """Filter by the object’s `createdByPrincipal` field.""" + createdByPrincipal: UUIDFilter + + """Filter by the object’s `exitCode` field.""" + exitCode: IntFilter + + """Filter by the object’s `finishedAt` field.""" + finishedAt: DatetimeFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `kind` field.""" + kind: StringFilter + + """Filter by the object’s `logBytes` field.""" + logBytes: BigIntFilter + + """Filter by the object’s `logOffset` field.""" + logOffset: BigIntFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """Negates the expression.""" + not: PlatformBuildStepFilter + + """Checks for any expressions in this list.""" + or: [PlatformBuildStepFilter!] + + """Filter by the object’s `parentSeq` field.""" + parentSeq: IntFilter + + """Filter by the object’s `recordedAt` field.""" + recordedAt: DatetimeFilter + + """Filter by the object’s `seq` field.""" + seq: IntFilter + + """Filter by the object’s `startedAt` field.""" + startedAt: DatetimeFilter + + """Filter by the object’s `status` field.""" + status: StringFilter + + """Filter by the object’s `summary` field.""" + summary: JSONFilter +} + +"""An input for mutations affecting `PlatformBuildStep`""" +input PlatformBuildStepInput { + """Build these results belong to""" + buildId: UUID! + + """Acting principal (agent, API key, or user) who created this record""" + createdByPrincipal: UUID + + """Process exit code of a step (NULL for a test result)""" + exitCode: Int + + """When this step or test finished""" + finishedAt: Datetime + + """Unique identifier (uuidv7 provides temporal ordering)""" + id: UUID + + """What this row is: step, or test""" + kind: String + + """Byte length of this row's output in the build log object""" + logBytes: BigInt + + """Byte offset of this row's output in the build log object""" + logOffset: BigInt + + """Step name, or the test's fully qualified name""" + name: String! + + """Sequence of the step that reported this test (NULL for a step itself)""" + parentSeq: Int + + """When the result was recorded (partition key)""" + recordedAt: Datetime + + """ + Position within the build, monotonically increasing across steps and their tests + """ + seq: Int! + + """When this step or test began""" + startedAt: Datetime + + """Outcome: running, succeeded, failed, skipped, cancelled""" + status: String + + """Parsed detail: failure message, assertion diff, counts, annotations""" + summary: JSON +} + +"""Methods to use when ordering `PlatformBuildStep`.""" +enum PlatformBuildStepOrderBy { + BUILD_ID_ASC + BUILD_ID_DESC + CREATED_BY_PRINCIPAL_ASC + CREATED_BY_PRINCIPAL_DESC + EXIT_CODE_ASC + EXIT_CODE_DESC + FINISHED_AT_ASC + FINISHED_AT_DESC + ID_ASC + ID_DESC + KIND_ASC + KIND_DESC + LOG_BYTES_ASC + LOG_BYTES_DESC + LOG_OFFSET_ASC + LOG_OFFSET_DESC + NAME_ASC + NAME_DESC + NATURAL + PARENT_SEQ_ASC + PARENT_SEQ_DESC + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + RECORDED_AT_ASC + RECORDED_AT_DESC + SEQ_ASC + SEQ_DESC + STARTED_AT_ASC + STARTED_AT_DESC + STATUS_ASC + STATUS_DESC + SUMMARY_ASC + SUMMARY_DESC +} + +""" +Represents an update to a `PlatformBuildStep`. Fields that are set will be updated. +""" +input PlatformBuildStepPatch { + """Build these results belong to""" + buildId: UUID + + """Acting principal (agent, API key, or user) who created this record""" + createdByPrincipal: UUID + + """Process exit code of a step (NULL for a test result)""" + exitCode: Int + + """When this step or test finished""" + finishedAt: Datetime + + """Unique identifier (uuidv7 provides temporal ordering)""" + id: UUID + + """What this row is: step, or test""" + kind: String + + """Byte length of this row's output in the build log object""" + logBytes: BigInt + + """Byte offset of this row's output in the build log object""" + logOffset: BigInt + + """Step name, or the test's fully qualified name""" + name: String + + """Sequence of the step that reported this test (NULL for a step itself)""" + parentSeq: Int + + """When the result was recorded (partition key)""" + recordedAt: Datetime + + """ + Position within the build, monotonically increasing across steps and their tests + """ + seq: Int + + """When this step or test began""" + startedAt: Datetime + + """Outcome: running, succeeded, failed, skipped, cancelled""" + status: String + + """Parsed detail: failure message, assertion diff, counts, annotations""" + summary: JSON +} + +""" +Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST +""" +type PlatformBuilderBinding { + createdAt: Datetime + createdBy: UUID + createdByPrincipal: UUID + id: UUID! + + """ + BuildKit resource installation serving this binding; may belong to another resource scope + """ + installationId: UUID! + + """Most recent projection failure""" + lastError: String + + """Reconciler detail (projection timestamps and diagnostics)""" + metadata: JSON + + """ + Reads a single `PlatformNamespace` that is related to this `PlatformBuilderBinding`. + """ + namespace: PlatformNamespace + + """Namespace whose builds use this BuildKit installation""" + namespaceId: UUID! + + """ + BuildKit address last projected into the namespace (NULL = never projected) + """ + observedHost: String + + """Lane this binding applies to (NULL = the scope's default lane)""" + realm: String + + """Projection state of BUILDKIT_HOST: pending, active, failed""" + status: String! + updatedAt: Datetime + updatedBy: UUID + updatedByPrincipal: UUID +} + +"""A connection to a list of `PlatformBuilderBinding` values.""" +type PlatformBuilderBindingConnection { + """ + A list of edges which contains the `PlatformBuilderBinding` and cursor to aid in pagination. + """ + edges: [PlatformBuilderBindingEdge]! + + """A list of `PlatformBuilderBinding` objects.""" + nodes: [PlatformBuilderBinding]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `PlatformBuilderBinding` you could get from the connection. + """ + totalCount: Int! +} + +"""A `PlatformBuilderBinding` edge in the connection.""" +type PlatformBuilderBindingEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `PlatformBuilderBinding` at the end of the edge.""" + node: PlatformBuilderBinding +} + +""" +A filter to be used against `PlatformBuilderBinding` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformBuilderBindingFilter { + """Checks for all expressions in this list.""" + and: [PlatformBuilderBindingFilter!] + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `createdBy` field.""" + createdBy: UUIDFilter + + """Filter by the object’s `createdByPrincipal` field.""" + createdByPrincipal: UUIDFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `installationId` field.""" + installationId: UUIDFilter + + """Filter by the object’s `lastError` field.""" + lastError: StringFilter + + """Filter by the object’s `metadata` field.""" + metadata: JSONFilter + + """Filter by the object’s `namespace` relation.""" + namespace: PlatformNamespaceFilter + + """Filter by the object’s `namespaceId` field.""" + namespaceId: UUIDFilter + + """Negates the expression.""" + not: PlatformBuilderBindingFilter + + """Filter by the object’s `observedHost` field.""" + observedHost: StringFilter + + """Checks for any expressions in this list.""" + or: [PlatformBuilderBindingFilter!] + + """Filter by the object’s `realm` field.""" + realm: StringFilter + + """Filter by the object’s `status` field.""" + status: StringFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + + """Filter by the object’s `updatedBy` field.""" + updatedBy: UUIDFilter + + """Filter by the object’s `updatedByPrincipal` field.""" + updatedByPrincipal: UUIDFilter +} + +"""An input for mutations affecting `PlatformBuilderBinding`""" +input PlatformBuilderBindingInput { + createdAt: Datetime + createdBy: UUID + createdByPrincipal: UUID + id: UUID + + """ + BuildKit resource installation serving this binding; may belong to another resource scope + """ + installationId: UUID! + + """Most recent projection failure""" + lastError: String + + """Reconciler detail (projection timestamps and diagnostics)""" + metadata: JSON + + """Namespace whose builds use this BuildKit installation""" + namespaceId: UUID! + + """ + BuildKit address last projected into the namespace (NULL = never projected) + """ + observedHost: String + + """Lane this binding applies to (NULL = the scope's default lane)""" + realm: String + + """Projection state of BUILDKIT_HOST: pending, active, failed""" + status: String + updatedAt: Datetime + updatedBy: UUID + updatedByPrincipal: UUID +} + +"""Methods to use when ordering `PlatformBuilderBinding`.""" +enum PlatformBuilderBindingOrderBy { + CREATED_AT_ASC + CREATED_AT_DESC + CREATED_BY_ASC + CREATED_BY_DESC + CREATED_BY_PRINCIPAL_ASC + CREATED_BY_PRINCIPAL_DESC + ID_ASC + ID_DESC + INSTALLATION_ID_ASC + INSTALLATION_ID_DESC + LAST_ERROR_ASC + LAST_ERROR_DESC + METADATA_ASC + METADATA_DESC + NAMESPACE_ID_ASC + NAMESPACE_ID_DESC + NATURAL + OBSERVED_HOST_ASC + OBSERVED_HOST_DESC + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + REALM_ASC + REALM_DESC + STATUS_ASC + STATUS_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + UPDATED_BY_ASC + UPDATED_BY_DESC + UPDATED_BY_PRINCIPAL_ASC + UPDATED_BY_PRINCIPAL_DESC +} + +""" +Represents an update to a `PlatformBuilderBinding`. Fields that are set will be updated. +""" +input PlatformBuilderBindingPatch { + createdAt: Datetime + createdBy: UUID + createdByPrincipal: UUID + id: UUID + + """ + BuildKit resource installation serving this binding; may belong to another resource scope + """ + installationId: UUID + + """Most recent projection failure""" + lastError: String + + """Reconciler detail (projection timestamps and diagnostics)""" + metadata: JSON + + """Namespace whose builds use this BuildKit installation""" + namespaceId: UUID + + """ + BuildKit address last projected into the namespace (NULL = never projected) + """ + observedHost: String + + """Lane this binding applies to (NULL = the scope's default lane)""" + realm: String + + """Projection state of BUILDKIT_HOST: pending, active, failed""" + status: String + updatedAt: Datetime + updatedBy: UUID + updatedByPrincipal: UUID +} + +""" +Join table binding function definitions to API endpoints with per-binding alias and config +""" +type PlatformFunctionApiBinding { + """Binding alias (e.g. default, staging, production)""" + alias: String! + + """API endpoint this function is bound to""" + apiId: UUID! + + """Per-binding configuration (overrides, routing rules, etc.)""" + config: JSON! + createdAt: Datetime + + """ + Reads a single `PlatformFunctionDefinition` that is related to this `PlatformFunctionApiBinding`. + """ + functionDefinition: PlatformFunctionDefinition + + """Function definition this binding belongs to""" + functionDefinitionId: UUID! + id: UUID! + + """ + Reads and enables pagination through a set of `PlatformFunctionInvocation`. + """ + platformFunctionInvocationsByApiBindingId( + """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 `PlatformFunctionInvocation`.""" + orderBy: [PlatformFunctionInvocationOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformFunctionInvocationFilter + ): PlatformFunctionInvocationConnection! + updatedAt: Datetime +} + +"""A connection to a list of `PlatformFunctionApiBinding` values.""" +type PlatformFunctionApiBindingConnection { + """ + A list of edges which contains the `PlatformFunctionApiBinding` and cursor to aid in pagination. + """ + edges: [PlatformFunctionApiBindingEdge]! + + """A list of `PlatformFunctionApiBinding` objects.""" + nodes: [PlatformFunctionApiBinding]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `PlatformFunctionApiBinding` you could get from the connection. + """ + totalCount: Int! +} + +"""A `PlatformFunctionApiBinding` edge in the connection.""" +type PlatformFunctionApiBindingEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `PlatformFunctionApiBinding` at the end of the edge.""" + node: PlatformFunctionApiBinding +} + +""" +A filter to be used against `PlatformFunctionApiBinding` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformFunctionApiBindingFilter { + """Filter by the object’s `alias` field.""" + alias: StringFilter + + """Checks for all expressions in this list.""" + and: [PlatformFunctionApiBindingFilter!] + + """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 `functionDefinition` relation.""" + functionDefinition: PlatformFunctionDefinitionFilter + + """Filter by the object’s `functionDefinitionId` field.""" + functionDefinitionId: UUIDFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Negates the expression.""" + not: PlatformFunctionApiBindingFilter + + """Checks for any expressions in this list.""" + or: [PlatformFunctionApiBindingFilter!] + + """ + Filter by the object’s `platformFunctionInvocationsByApiBindingId` relation. + """ + platformFunctionInvocationsByApiBindingId: PlatformFunctionApiBindingToManyPlatformFunctionInvocationFilter + + """`platformFunctionInvocationsByApiBindingId` exist.""" + platformFunctionInvocationsByApiBindingIdExist: Boolean + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter +} + +"""An input for mutations affecting `PlatformFunctionApiBinding`""" +input PlatformFunctionApiBindingInput { + """Binding alias (e.g. default, staging, production)""" + alias: String + + """API endpoint this function is bound to""" + apiId: UUID! + + """Per-binding configuration (overrides, routing rules, etc.)""" + config: JSON + createdAt: Datetime + + """Function definition this binding belongs to""" + functionDefinitionId: UUID! + id: UUID + updatedAt: Datetime +} + +"""Methods to use when ordering `PlatformFunctionApiBinding`.""" +enum PlatformFunctionApiBindingOrderBy { + ALIAS_ASC + ALIAS_DESC + API_ID_ASC + API_ID_DESC + CONFIG_ASC + CONFIG_DESC + CREATED_AT_ASC + CREATED_AT_DESC + FUNCTION_DEFINITION_ID_ASC + FUNCTION_DEFINITION_ID_DESC + ID_ASC + ID_DESC + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC +} + +""" +Represents an update to a `PlatformFunctionApiBinding`. Fields that are set will be updated. +""" +input PlatformFunctionApiBindingPatch { + """Binding alias (e.g. default, staging, production)""" + alias: String + + """API endpoint this function is bound to""" + apiId: UUID + + """Per-binding configuration (overrides, routing rules, etc.)""" + config: JSON + createdAt: Datetime + + """Function definition this binding belongs to""" + functionDefinitionId: UUID + id: UUID + updatedAt: Datetime +} + +""" +A filter to be used against many `PlatformFunctionInvocation` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformFunctionApiBindingToManyPlatformFunctionInvocationFilter { + """Filters to entities where every related entity matches.""" + every: PlatformFunctionInvocationFilter + + """Filters to entities where no related entity matches.""" + none: PlatformFunctionInvocationFilter + + """Filters to entities where at least one related entity matches.""" + some: PlatformFunctionInvocationFilter +} + +""" +Capability bindings — declarative grants of typed resource capabilities (buckets) to function/graph holders per lifecycle +""" +type PlatformFunctionCapabilityBinding { + """Bucket this capability targets (exactly one typed target is set)""" + bucketId: UUID + createdAt: Datetime + + """ + Reads a single `PlatformFunctionDefinition` that is related to this `PlatformFunctionCapabilityBinding`. + """ + function: PlatformFunctionDefinition + + """ + Function definition holding this capability (exactly one of function_id / graph_id is set) + """ + functionId: UUID + + """ + Flow graph holding this capability (exactly one of function_id / graph_id is set) + """ + graphId: UUID + id: UUID! + + """ + Runtime handle the holder addresses this capability by (e.g. default, scratch) + """ + key: String! + + """ + Lifecycle the capability applies to: deployment (build/deploy time), execution (per invocation), root_execution (root of a graph execution tree) + """ + lifecycle: String! + + """Per-binding annotations (no runtime semantics)""" + metadata: JSON + updatedAt: Datetime +} + +"""A connection to a list of `PlatformFunctionCapabilityBinding` values.""" +type PlatformFunctionCapabilityBindingConnection { + """ + A list of edges which contains the `PlatformFunctionCapabilityBinding` and cursor to aid in pagination. + """ + edges: [PlatformFunctionCapabilityBindingEdge]! + + """A list of `PlatformFunctionCapabilityBinding` objects.""" + nodes: [PlatformFunctionCapabilityBinding]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `PlatformFunctionCapabilityBinding` you could get from the connection. + """ + totalCount: Int! +} + +"""A `PlatformFunctionCapabilityBinding` edge in the connection.""" +type PlatformFunctionCapabilityBindingEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `PlatformFunctionCapabilityBinding` at the end of the edge.""" + node: PlatformFunctionCapabilityBinding +} + +""" +A filter to be used against `PlatformFunctionCapabilityBinding` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformFunctionCapabilityBindingFilter { + """Checks for all expressions in this list.""" + and: [PlatformFunctionCapabilityBindingFilter!] + + """Filter by the object’s `bucketId` field.""" + bucketId: UUIDFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `function` relation.""" + function: PlatformFunctionDefinitionFilter + + """A related `function` exists.""" + functionExists: Boolean + + """Filter by the object’s `functionId` field.""" + functionId: UUIDFilter + + """Filter by the object’s `graphId` field.""" + graphId: UUIDFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `key` field.""" + key: StringFilter + + """Filter by the object’s `lifecycle` field.""" + lifecycle: StringFilter + + """Filter by the object’s `metadata` field.""" + metadata: JSONFilter + + """Negates the expression.""" + not: PlatformFunctionCapabilityBindingFilter + + """Checks for any expressions in this list.""" + or: [PlatformFunctionCapabilityBindingFilter!] + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter +} + +"""An input for mutations affecting `PlatformFunctionCapabilityBinding`""" +input PlatformFunctionCapabilityBindingInput { + """Bucket this capability targets (exactly one typed target is set)""" + bucketId: UUID + createdAt: Datetime + + """ + Function definition holding this capability (exactly one of function_id / graph_id is set) + """ + functionId: UUID + + """ + Flow graph holding this capability (exactly one of function_id / graph_id is set) + """ + graphId: UUID + id: UUID + + """ + Runtime handle the holder addresses this capability by (e.g. default, scratch) + """ + key: String + + """ + Lifecycle the capability applies to: deployment (build/deploy time), execution (per invocation), root_execution (root of a graph execution tree) + """ + lifecycle: String! + + """Per-binding annotations (no runtime semantics)""" + metadata: JSON + updatedAt: Datetime +} + +"""Methods to use when ordering `PlatformFunctionCapabilityBinding`.""" +enum PlatformFunctionCapabilityBindingOrderBy { + BUCKET_ID_ASC + BUCKET_ID_DESC + CREATED_AT_ASC + CREATED_AT_DESC + FUNCTION_ID_ASC + FUNCTION_ID_DESC + GRAPH_ID_ASC + GRAPH_ID_DESC + ID_ASC + ID_DESC + KEY_ASC + KEY_DESC + LIFECYCLE_ASC + LIFECYCLE_DESC + METADATA_ASC + METADATA_DESC + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC +} + +""" +Represents an update to a `PlatformFunctionCapabilityBinding`. Fields that are set will be updated. +""" +input PlatformFunctionCapabilityBindingPatch { + """Bucket this capability targets (exactly one typed target is set)""" + bucketId: UUID + createdAt: Datetime + + """ + Function definition holding this capability (exactly one of function_id / graph_id is set) + """ + functionId: UUID + + """ + Flow graph holding this capability (exactly one of function_id / graph_id is set) + """ + graphId: UUID + id: UUID + + """ + Runtime handle the holder addresses this capability by (e.g. default, scratch) + """ + key: String + + """ + Lifecycle the capability applies to: deployment (build/deploy time), execution (per invocation), root_execution (root of a graph execution tree) + """ + lifecycle: String + + """Per-binding annotations (no runtime semantics)""" + metadata: JSON + updatedAt: Datetime +} + +""" +Function definitions — registered cloud functions with routing, queue, and retry configuration +""" +type PlatformFunctionDefinition { + """ + 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 this function consents to run for a caller with no identity (a sign-in surface, a public page). Anonymous execution additionally requires the matched route to declare anonymous access. Default false = an identity is required. + """ + anonymousCallable: Boolean! + + """ + Whether executions are metered through the invocation ledger and billing quota gate + """ + billable: Boolean! + + """Function task category (e.g. email, embed, chunk, custom)""" + category: String! + + """ + Knative containerConcurrency — max concurrent requests per pod instance + """ + concurrency: Int! + + """ + CPU limit in millicores, derived from resources.limits.cpu (NULL if unset/invalid) + """ + cpuLimitMillicores: BigInt + + """ + Requested CPU in millicores, derived from resources.requests.cpu (NULL if unset/invalid) + """ + cpuRequestMillicores: BigInt + createdAt: Datetime + createdByPrincipal: UUID + + """Human-readable description of what this function does""" + description: String + + """Palette grouping category (e.g. email, data, ai, custom)""" + fnCategory: String + + """ + Ordered array of module_table column names holding the generated function names to invoke when runtime=sql (module mode). NULL for direct mode and other runtimes. + """ + functionColumns: JSON + + """ + Reads a single `FunctionGraph` that is related to this `PlatformFunctionDefinition`. + """ + graph: FunctionGraph + + """ + Existing flow graph invoked when runtime=graph. Required for graph runtime and forbidden for all other runtimes. + """ + graphId: UUID + + """Icon identifier for UI palette rendering (e.g. mail, database, code)""" + icon: String + id: UUID! + + """ + Docker image reference (e.g. ghcr.io/constructive-io/email-send-fn:latest). Required when runtime=http or runtime=resource. NULL for inline functions. + """ + image: String + + """ + Data input ports: [{name, type, description?, optional?, multi?, schema?}] + """ + inputs: JSON! + + """ + Provider slugs (e.g. mailgun, postgres) associated with this function. The UI uses this to auto-fill required_secrets and required_configs from integration_providers. + """ + integrations: [String]! + + """ + Whether this function definition is published to the public catalog for direct authenticated invocation. Default false = internal-only via add_job() + """ + isPublished: Boolean! + + """Maximum retry attempts for the underlying job""" + maxAttempts: Int! + + """ + Memory limit in bytes, derived from resources.limits.memory (NULL if unset/invalid) + """ + memoryLimitBytes: BigInt + + """ + Requested memory in bytes, derived from resources.requests.memory (NULL if unset/invalid) + """ + memoryRequestBytes: BigInt + + """ + metaschema_modules_public table whose per-database row carries the generated function names when runtime=sql (module mode). NULL for direct mode and other runtimes. + """ + moduleTable: String + + """ + Function name within category (e.g. send_verification_link, process_file_embedding) + """ + name: String! + + """ + Data output ports: [{name, type, description?, optional?, multi?, schema?}] + """ + outputs: JSON! + + """ + Ordered bind-parameter mapping for runtime=sql: [{name, type}]. payload[name] is bound as $n::type. + """ + payloadArgs: JSON! + + """ + Reads and enables pagination through a set of `PlatformFunctionApiBinding`. + """ + platformFunctionApiBindingsByFunctionDefinitionId( + """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 `PlatformFunctionApiBinding`.""" + orderBy: [PlatformFunctionApiBindingOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformFunctionApiBindingFilter + ): PlatformFunctionApiBindingConnection! + + """ + Reads and enables pagination through a set of `PlatformFunctionCapabilityBinding`. + """ + platformFunctionCapabilityBindingsByFunctionId( + """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 `PlatformFunctionCapabilityBinding`.""" + orderBy: [PlatformFunctionCapabilityBindingOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformFunctionCapabilityBindingFilter + ): PlatformFunctionCapabilityBindingConnection! + + """ + Reads and enables pagination through a set of `PlatformWebhookEndpoint`. + """ + platformWebhookEndpointsByFunctionDefinitionId( + """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 `PlatformWebhookEndpoint`.""" + orderBy: [PlatformWebhookEndpointOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformWebhookEndpointFilter + ): PlatformWebhookEndpointConnection! + + """Job priority (lower = higher priority)""" + priority: Int! + + """ + Configuration properties: [{name, type, default?, description?, required?, schema?}] + """ + props: JSON! + + """ + Protected platform definition: narrower scopes cannot register the same task_identifier + """ + protected: Boolean! + + """ + Timestamp when this function was published. NULL means immediately published when is_published is true; future timestamps delay public visibility + """ + publishedAt: Datetime + + """Job queue name for serialization (e.g. email, ai, default)""" + queueName: String! + + """ + 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]! + + """ + Capability providers the handler declared in handler.json requires.capabilities, as an array of {name, version, declaration}. NULL when the handler declares none, which mounts the full platform set. + """ + requiredCapabilities: JSON + + """ + Embedded config requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. + """ + requiredConfigs: [ResourceRequirement]! + + """ + 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: [ResourceRequirement]! + + """ + Container resource requests and limits: {requests: {memory, cpu}, limits: {memory, cpu}} + """ + resources: JSON! + + """ + Execution mode: http (Knative Service dispatch), inline (in-process in compute worker), handler (registered infrastructure handler), sql (generic SQL dispatch via a trusted direct target or module-resolved function names), resource (Kubernetes Job via the resource module with node-gateway callbacks), graph (existing flow graph referenced by graph_id), or human (parks the node awaiting a person's answer through approve_node) + """ + runtime: String! + + """Maximum pod count for Knative autoscaling (maxScale)""" + scaleMax: Int! + + """Minimum pod count for Knative autoscaling (minScale)""" + scaleMin: Int! + + """ + Platform system definition: its task_identifier cannot be shadowed by non-platform registration + """ + system: Boolean! + + """ + Name of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. + """ + targetFunction: String + + """ + Schema of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. + """ + targetSchema: String + + """ + Routing slug generated as category || ':' || name (used by the Knative job worker for dispatch) + """ + taskIdentifier: String + + """Knative request timeout in seconds""" + timeoutSeconds: Int! + updatedAt: Datetime + updatedByPrincipal: UUID + + """ + Whether this function has side effects and cannot be cached or memoized + """ + volatile: Boolean! +} + +"""A connection to a list of `PlatformFunctionDefinition` values.""" +type PlatformFunctionDefinitionConnection { + """ + A list of edges which contains the `PlatformFunctionDefinition` and cursor to aid in pagination. + """ + edges: [PlatformFunctionDefinitionEdge]! + + """A list of `PlatformFunctionDefinition` objects.""" + nodes: [PlatformFunctionDefinition]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `PlatformFunctionDefinition` you could get from the connection. + """ + totalCount: Int! +} + +"""A `PlatformFunctionDefinition` edge in the connection.""" +type PlatformFunctionDefinitionEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `PlatformFunctionDefinition` at the end of the edge.""" + node: PlatformFunctionDefinition +} + +""" +A filter to be used against `PlatformFunctionDefinition` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformFunctionDefinitionFilter { + """Filter by the object’s `accessChannels` field.""" + accessChannels: StringListFilter + + """Checks for all expressions in this list.""" + and: [PlatformFunctionDefinitionFilter!] + + """Filter by the object’s `anonymousCallable` field.""" + anonymousCallable: BooleanFilter + + """Filter by the object’s `billable` field.""" + billable: BooleanFilter + + """Filter by the object’s `category` field.""" + category: StringFilter + + """Filter by the object’s `concurrency` field.""" + concurrency: IntFilter + + """Filter by the object’s `cpuLimitMillicores` field.""" + cpuLimitMillicores: BigIntFilter + + """Filter by the object’s `cpuRequestMillicores` field.""" + cpuRequestMillicores: BigIntFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `createdByPrincipal` field.""" + createdByPrincipal: UUIDFilter + + """Filter by the object’s `description` field.""" + description: StringFilter + + """Filter by the object’s `fnCategory` field.""" + fnCategory: StringFilter + + """Filter by the object’s `functionColumns` field.""" + functionColumns: JSONFilter + + """Filter by the object’s `graph` relation.""" + graph: FunctionGraphFilter + + """A related `graph` exists.""" + graphExists: Boolean + + """Filter by the object’s `graphId` field.""" + graphId: UUIDFilter + + """Filter by the object’s `icon` field.""" + icon: StringFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `image` field.""" + image: StringFilter + + """Filter by the object’s `inputs` field.""" + inputs: JSONFilter + + """Filter by the object’s `integrations` field.""" + integrations: StringListFilter + + """Filter by the object’s `isPublished` field.""" + isPublished: BooleanFilter + + """Filter by the object’s `maxAttempts` field.""" + maxAttempts: IntFilter + + """Filter by the object’s `memoryLimitBytes` field.""" + memoryLimitBytes: BigIntFilter + + """Filter by the object’s `memoryRequestBytes` field.""" + memoryRequestBytes: BigIntFilter + + """Filter by the object’s `moduleTable` field.""" + moduleTable: StringFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """Negates the expression.""" + not: PlatformFunctionDefinitionFilter + + """Checks for any expressions in this list.""" + or: [PlatformFunctionDefinitionFilter!] + + """Filter by the object’s `outputs` field.""" + outputs: JSONFilter + + """Filter by the object’s `payloadArgs` field.""" + payloadArgs: JSONFilter + + """ + Filter by the object’s `platformFunctionApiBindingsByFunctionDefinitionId` relation. + """ + platformFunctionApiBindingsByFunctionDefinitionId: PlatformFunctionDefinitionToManyPlatformFunctionApiBindingFilter + + """`platformFunctionApiBindingsByFunctionDefinitionId` exist.""" + platformFunctionApiBindingsByFunctionDefinitionIdExist: Boolean + + """ + Filter by the object’s `platformFunctionCapabilityBindingsByFunctionId` relation. + """ + platformFunctionCapabilityBindingsByFunctionId: PlatformFunctionDefinitionToManyPlatformFunctionCapabilityBindingFilter + + """`platformFunctionCapabilityBindingsByFunctionId` exist.""" + platformFunctionCapabilityBindingsByFunctionIdExist: Boolean + + """ + Filter by the object’s `platformWebhookEndpointsByFunctionDefinitionId` relation. + """ + platformWebhookEndpointsByFunctionDefinitionId: PlatformFunctionDefinitionToManyPlatformWebhookEndpointFilter + + """`platformWebhookEndpointsByFunctionDefinitionId` exist.""" + platformWebhookEndpointsByFunctionDefinitionIdExist: Boolean + + """Filter by the object’s `priority` field.""" + priority: IntFilter + + """Filter by the object’s `props` field.""" + props: JSONFilter + + """Filter by the object’s `protected` field.""" + protected: BooleanFilter + + """Filter by the object’s `publishedAt` field.""" + publishedAt: DatetimeFilter + + """Filter by the object’s `queueName` field.""" + queueName: StringFilter + + """Filter by the object’s `requiredBuckets` field.""" + requiredBuckets: StringListFilter + + """Filter by the object’s `requiredCapabilities` field.""" + requiredCapabilities: JSONFilter + + """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.""" + runtime: StringFilter + + """Filter by the object’s `scaleMax` field.""" + scaleMax: IntFilter + + """Filter by the object’s `scaleMin` field.""" + scaleMin: IntFilter + + """Filter by the object’s `system` field.""" + system: BooleanFilter + + """Filter by the object’s `targetFunction` field.""" + targetFunction: StringFilter + + """Filter by the object’s `targetSchema` field.""" + targetSchema: StringFilter + + """Filter by the object’s `taskIdentifier` field.""" + taskIdentifier: StringFilter + + """Filter by the object’s `timeoutSeconds` field.""" + timeoutSeconds: IntFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + + """Filter by the object’s `updatedByPrincipal` field.""" + updatedByPrincipal: UUIDFilter + + """Filter by the object’s `volatile` field.""" + volatile: BooleanFilter +} + +"""An input for mutations affecting `PlatformFunctionDefinition`""" +input PlatformFunctionDefinitionInput { + """ + 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 this function consents to run for a caller with no identity (a sign-in surface, a public page). Anonymous execution additionally requires the matched route to declare anonymous access. Default false = an identity is required. + """ + anonymousCallable: Boolean + + """ + Whether executions are metered through the invocation ledger and billing quota gate + """ + billable: Boolean + + """Function task category (e.g. email, embed, chunk, custom)""" + category: String! + + """ + Knative containerConcurrency — max concurrent requests per pod instance + """ + concurrency: Int + createdAt: Datetime + createdByPrincipal: UUID + + """Human-readable description of what this function does""" + description: String + + """Palette grouping category (e.g. email, data, ai, custom)""" + fnCategory: String + + """ + Ordered array of module_table column names holding the generated function names to invoke when runtime=sql (module mode). NULL for direct mode and other runtimes. + """ + functionColumns: JSON + + """ + Existing flow graph invoked when runtime=graph. Required for graph runtime and forbidden for all other runtimes. + """ + graphId: UUID + + """Icon identifier for UI palette rendering (e.g. mail, database, code)""" + icon: String + id: UUID + + """ + Docker image reference (e.g. ghcr.io/constructive-io/email-send-fn:latest). Required when runtime=http or runtime=resource. NULL for inline functions. + """ + image: String + + """ + Data input ports: [{name, type, description?, optional?, multi?, schema?}] + """ + inputs: JSON + + """ + Provider slugs (e.g. mailgun, postgres) associated with this function. The UI uses this to auto-fill required_secrets and required_configs from integration_providers. + """ + integrations: [String] + + """ + Whether this function definition is published to the public catalog for direct authenticated invocation. Default false = internal-only via add_job() + """ + isPublished: Boolean + + """Maximum retry attempts for the underlying job""" + maxAttempts: Int + + """ + metaschema_modules_public table whose per-database row carries the generated function names when runtime=sql (module mode). NULL for direct mode and other runtimes. + """ + moduleTable: String + + """ + Function name within category (e.g. send_verification_link, process_file_embedding) + """ + name: String! + + """ + Data output ports: [{name, type, description?, optional?, multi?, schema?}] + """ + outputs: JSON + + """ + Ordered bind-parameter mapping for runtime=sql: [{name, type}]. payload[name] is bound as $n::type. + """ + payloadArgs: JSON + + """Job priority (lower = higher priority)""" + priority: Int + + """ + Configuration properties: [{name, type, default?, description?, required?, schema?}] + """ + props: JSON + + """ + Protected platform definition: narrower scopes cannot register the same task_identifier + """ + protected: Boolean + + """ + Timestamp when this function was published. NULL means immediately published when is_published is true; future timestamps delay public visibility + """ + publishedAt: Datetime + + """Job queue name for serialization (e.g. email, ai, default)""" + queueName: String + + """ + 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] + + """ + Capability providers the handler declared in handler.json requires.capabilities, as an array of {name, version, declaration}. NULL when the handler declares none, which mounts the full platform set. + """ + requiredCapabilities: JSON + + """ + 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}} + """ + resources: JSON + + """ + Execution mode: http (Knative Service dispatch), inline (in-process in compute worker), handler (registered infrastructure handler), sql (generic SQL dispatch via a trusted direct target or module-resolved function names), resource (Kubernetes Job via the resource module with node-gateway callbacks), graph (existing flow graph referenced by graph_id), or human (parks the node awaiting a person's answer through approve_node) + """ + runtime: String + + """Maximum pod count for Knative autoscaling (maxScale)""" + scaleMax: Int + + """Minimum pod count for Knative autoscaling (minScale)""" + scaleMin: Int + + """ + Platform system definition: its task_identifier cannot be shadowed by non-platform registration + """ + system: Boolean + + """ + Name of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. + """ + targetFunction: String + + """ + Schema of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. + """ + targetSchema: String + + """Knative request timeout in seconds""" + timeoutSeconds: Int + updatedAt: Datetime + updatedByPrincipal: UUID + + """ + Whether this function has side effects and cannot be cached or memoized + """ + volatile: Boolean +} + +"""Methods to use when ordering `PlatformFunctionDefinition`.""" +enum PlatformFunctionDefinitionOrderBy { + ACCESS_CHANNELS_ASC + ACCESS_CHANNELS_DESC + ANONYMOUS_CALLABLE_ASC + ANONYMOUS_CALLABLE_DESC + BILLABLE_ASC + BILLABLE_DESC + CATEGORY_ASC + CATEGORY_DESC + CONCURRENCY_ASC + CONCURRENCY_DESC + CPU_LIMIT_MILLICORES_ASC + CPU_LIMIT_MILLICORES_DESC + CPU_REQUEST_MILLICORES_ASC + CPU_REQUEST_MILLICORES_DESC + CREATED_AT_ASC + CREATED_AT_DESC + CREATED_BY_PRINCIPAL_ASC + CREATED_BY_PRINCIPAL_DESC + DESCRIPTION_ASC + DESCRIPTION_DESC + FN_CATEGORY_ASC + FN_CATEGORY_DESC + FUNCTION_COLUMNS_ASC + FUNCTION_COLUMNS_DESC + GRAPH_ID_ASC + GRAPH_ID_DESC + ICON_ASC + ICON_DESC + ID_ASC + ID_DESC + IMAGE_ASC + IMAGE_DESC + INPUTS_ASC + INPUTS_DESC + INTEGRATIONS_ASC + INTEGRATIONS_DESC + IS_PUBLISHED_ASC + IS_PUBLISHED_DESC + MAX_ATTEMPTS_ASC + MAX_ATTEMPTS_DESC + MEMORY_LIMIT_BYTES_ASC + MEMORY_LIMIT_BYTES_DESC + MEMORY_REQUEST_BYTES_ASC + MEMORY_REQUEST_BYTES_DESC + MODULE_TABLE_ASC + MODULE_TABLE_DESC + NAME_ASC + NAME_DESC + NATURAL + OUTPUTS_ASC + OUTPUTS_DESC + PAYLOAD_ARGS_ASC + PAYLOAD_ARGS_DESC + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + PRIORITY_ASC + PRIORITY_DESC + PROPS_ASC + PROPS_DESC + PROTECTED_ASC + PROTECTED_DESC + PUBLISHED_AT_ASC + PUBLISHED_AT_DESC + QUEUE_NAME_ASC + QUEUE_NAME_DESC + REQUIRED_BUCKETS_ASC + REQUIRED_BUCKETS_DESC + REQUIRED_CAPABILITIES_ASC + REQUIRED_CAPABILITIES_DESC + REQUIRED_CONFIGS_ASC + REQUIRED_CONFIGS_DESC + REQUIRED_MODELS_ASC + REQUIRED_MODELS_DESC + REQUIRED_MODULES_ASC + REQUIRED_MODULES_DESC + REQUIRED_SECRETS_ASC + REQUIRED_SECRETS_DESC + RESOURCES_ASC + RESOURCES_DESC + RUNTIME_ASC + RUNTIME_DESC + SCALE_MAX_ASC + SCALE_MAX_DESC + SCALE_MIN_ASC + SCALE_MIN_DESC + SYSTEM_ASC + SYSTEM_DESC + TARGET_FUNCTION_ASC + TARGET_FUNCTION_DESC + TARGET_SCHEMA_ASC + TARGET_SCHEMA_DESC + TASK_IDENTIFIER_ASC + TASK_IDENTIFIER_DESC + TIMEOUT_SECONDS_ASC + TIMEOUT_SECONDS_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + UPDATED_BY_PRINCIPAL_ASC + UPDATED_BY_PRINCIPAL_DESC + VOLATILE_ASC + VOLATILE_DESC +} + +""" +Represents an update to a `PlatformFunctionDefinition`. Fields that are set will be updated. +""" +input PlatformFunctionDefinitionPatch { + """ + 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 this function consents to run for a caller with no identity (a sign-in surface, a public page). Anonymous execution additionally requires the matched route to declare anonymous access. Default false = an identity is required. + """ + anonymousCallable: Boolean + + """ + Whether executions are metered through the invocation ledger and billing quota gate + """ + billable: Boolean + + """Function task category (e.g. email, embed, chunk, custom)""" + category: String + + """ + Knative containerConcurrency — max concurrent requests per pod instance + """ + concurrency: Int + createdAt: Datetime + createdByPrincipal: UUID + + """Human-readable description of what this function does""" + description: String + + """Palette grouping category (e.g. email, data, ai, custom)""" + fnCategory: String + + """ + Ordered array of module_table column names holding the generated function names to invoke when runtime=sql (module mode). NULL for direct mode and other runtimes. + """ + functionColumns: JSON + + """ + Existing flow graph invoked when runtime=graph. Required for graph runtime and forbidden for all other runtimes. + """ + graphId: UUID + + """Icon identifier for UI palette rendering (e.g. mail, database, code)""" + icon: String + id: UUID + + """ + Docker image reference (e.g. ghcr.io/constructive-io/email-send-fn:latest). Required when runtime=http or runtime=resource. NULL for inline functions. + """ + image: String + + """ + Data input ports: [{name, type, description?, optional?, multi?, schema?}] + """ + inputs: JSON + + """ + Provider slugs (e.g. mailgun, postgres) associated with this function. The UI uses this to auto-fill required_secrets and required_configs from integration_providers. + """ + integrations: [String] + + """ + Whether this function definition is published to the public catalog for direct authenticated invocation. Default false = internal-only via add_job() + """ + isPublished: Boolean + + """Maximum retry attempts for the underlying job""" + maxAttempts: Int + + """ + metaschema_modules_public table whose per-database row carries the generated function names when runtime=sql (module mode). NULL for direct mode and other runtimes. + """ + moduleTable: String + + """ + Function name within category (e.g. send_verification_link, process_file_embedding) + """ + name: String + + """ + Data output ports: [{name, type, description?, optional?, multi?, schema?}] + """ + outputs: JSON + + """ + Ordered bind-parameter mapping for runtime=sql: [{name, type}]. payload[name] is bound as $n::type. + """ + payloadArgs: JSON + + """Job priority (lower = higher priority)""" + priority: Int + + """ + Configuration properties: [{name, type, default?, description?, required?, schema?}] + """ + props: JSON + + """ + Protected platform definition: narrower scopes cannot register the same task_identifier + """ + protected: Boolean + + """ + Timestamp when this function was published. NULL means immediately published when is_published is true; future timestamps delay public visibility + """ + publishedAt: Datetime + + """Job queue name for serialization (e.g. email, ai, default)""" + queueName: String + + """ + 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] + + """ + Capability providers the handler declared in handler.json requires.capabilities, as an array of {name, version, declaration}. NULL when the handler declares none, which mounts the full platform set. + """ + requiredCapabilities: JSON + + """ + 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}} + """ + resources: JSON + + """ + Execution mode: http (Knative Service dispatch), inline (in-process in compute worker), handler (registered infrastructure handler), sql (generic SQL dispatch via a trusted direct target or module-resolved function names), resource (Kubernetes Job via the resource module with node-gateway callbacks), graph (existing flow graph referenced by graph_id), or human (parks the node awaiting a person's answer through approve_node) + """ + runtime: String + + """Maximum pod count for Knative autoscaling (maxScale)""" + scaleMax: Int + + """Minimum pod count for Knative autoscaling (minScale)""" + scaleMin: Int + + """ + Platform system definition: its task_identifier cannot be shadowed by non-platform registration + """ + system: Boolean + + """ + Name of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. + """ + targetFunction: String + + """ + Schema of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. + """ + targetSchema: String + + """Knative request timeout in seconds""" + timeoutSeconds: Int + updatedAt: Datetime + updatedByPrincipal: UUID + + """ + Whether this function has side effects and cannot be cached or memoized + """ + volatile: Boolean +} + +""" +A filter to be used against many `PlatformFunctionApiBinding` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformFunctionDefinitionToManyPlatformFunctionApiBindingFilter { + """Filters to entities where every related entity matches.""" + every: PlatformFunctionApiBindingFilter + + """Filters to entities where no related entity matches.""" + none: PlatformFunctionApiBindingFilter + + """Filters to entities where at least one related entity matches.""" + some: PlatformFunctionApiBindingFilter +} + +""" +A filter to be used against many `PlatformFunctionCapabilityBinding` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformFunctionDefinitionToManyPlatformFunctionCapabilityBindingFilter { + """Filters to entities where every related entity matches.""" + every: PlatformFunctionCapabilityBindingFilter + + """Filters to entities where no related entity matches.""" + none: PlatformFunctionCapabilityBindingFilter + + """Filters to entities where at least one related entity matches.""" + some: PlatformFunctionCapabilityBindingFilter +} + +""" +A filter to be used against many `PlatformWebhookEndpoint` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformFunctionDefinitionToManyPlatformWebhookEndpointFilter { + """Filters to entities where every related entity matches.""" + every: PlatformWebhookEndpointFilter + + """Filters to entities where no related entity matches.""" + none: PlatformWebhookEndpointFilter + + """Filters to entities where at least one related entity matches.""" + some: PlatformWebhookEndpointFilter +} + +""" +Function deployment bindings — ties a handler image to a namespace for Knative provisioning and routing (one row per handler image per namespace) +""" +type PlatformFunctionDeployment { + """Freeform metadata for tooling and operational notes""" + annotations: JSON! + + """Max concurrent requests per pod (NULL = inherit from definition)""" + concurrency: Int + createdAt: Datetime + createdByPrincipal: UUID + + """Cumulative error count for this deployment""" + errorCount: Int! + + """ + Handler directory name (e.g. email, document) — used as FN_HANDLER_NAME in combined-image mode to select the entry point + """ + handlerName: String + id: UUID! + + """ + Logical image name — the handler identity and grouping key (e.g. fn-email). No registry host or tag; tag lives in image_version. + """ + image: String! + + """Image tag/version for the handler container (e.g. latest, 2.6.4)""" + imageVersion: String! + + """Key/value pairs for selecting and filtering deployments""" + labels: JSON! + + """Most recent provisioning or runtime error message""" + lastError: String + + """Timestamp of the most recent error""" + lastErrorAt: Datetime + + """ + Reads a single `PlatformNamespace` that is related to this `PlatformFunctionDeployment`. + """ + namespace: PlatformNamespace + + """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":{...}} + """ + resources: JSON + + """Deployment revision number (incremented on each redeployment)""" + revision: Int! + + """ + Maximum replica count (NULL = inherit from definition or Knative default) + """ + scaleMax: Int + + """ + Minimum replica count (NULL = inherit from definition or Knative default) + """ + scaleMin: Int + + """ + Knative service name — a randomly minted cute name (unique_names.generate_name() + random hex suffix) assigned by the service_url trigger; unique per namespace, not derived from the image + """ + serviceName: String + + """ + Knative service URL (http://{service-name}.{namespace}.svc.cluster.local) — populated after provisioning + """ + serviceUrl: String + + """ + Deployment lifecycle status: pending, provisioning, active, failed, scaled_to_zero, deactivated + """ + status: String! + + """Request timeout override in seconds (NULL = inherit from definition)""" + timeoutSeconds: Int + updatedAt: Datetime + updatedByPrincipal: UUID +} + +"""A connection to a list of `PlatformFunctionDeployment` values.""" +type PlatformFunctionDeploymentConnection { + """ + A list of edges which contains the `PlatformFunctionDeployment` and cursor to aid in pagination. + """ + edges: [PlatformFunctionDeploymentEdge]! + + """A list of `PlatformFunctionDeployment` objects.""" + nodes: [PlatformFunctionDeployment]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `PlatformFunctionDeployment` you could get from the connection. + """ + totalCount: Int! +} + +"""A `PlatformFunctionDeployment` edge in the connection.""" +type PlatformFunctionDeploymentEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `PlatformFunctionDeployment` at the end of the edge.""" + node: PlatformFunctionDeployment +} + +""" +Deployment lifecycle events — audit log of provisioning, scaling, and failure events +""" +type PlatformFunctionDeploymentEvent { + """ + User who triggered this event; NULL only when no human actor was proven + """ + actorId: UUID + + """Event timestamp (partition key)""" + createdAt: Datetime! + + """Deployment this event belongs to""" + deploymentId: UUID! + + """ + Event type: provisioned, scaled, failed, deactivated, redeployed, health_check + """ + eventType: String! + + """Unique event identifier""" + id: UUID! + + """Human-readable description of the event""" + message: String + + """Structured context (old/new values, error details, etc.)""" + metadata: JSON +} + +"""A connection to a list of `PlatformFunctionDeploymentEvent` values.""" +type PlatformFunctionDeploymentEventConnection { + """ + A list of edges which contains the `PlatformFunctionDeploymentEvent` and cursor to aid in pagination. + """ + edges: [PlatformFunctionDeploymentEventEdge]! + + """A list of `PlatformFunctionDeploymentEvent` objects.""" + nodes: [PlatformFunctionDeploymentEvent]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `PlatformFunctionDeploymentEvent` you could get from the connection. + """ + totalCount: Int! +} + +"""A `PlatformFunctionDeploymentEvent` edge in the connection.""" +type PlatformFunctionDeploymentEventEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `PlatformFunctionDeploymentEvent` at the end of the edge.""" + node: PlatformFunctionDeploymentEvent +} + +""" +A filter to be used against `PlatformFunctionDeploymentEvent` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformFunctionDeploymentEventFilter { + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter + + """Checks for all expressions in this list.""" + and: [PlatformFunctionDeploymentEventFilter!] + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `deploymentId` field.""" + deploymentId: UUIDFilter + + """Filter by the object’s `eventType` field.""" + eventType: StringFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `message` field.""" + message: StringFilter + + """Filter by the object’s `metadata` field.""" + metadata: JSONFilter + + """Negates the expression.""" + not: PlatformFunctionDeploymentEventFilter + + """Checks for any expressions in this list.""" + or: [PlatformFunctionDeploymentEventFilter!] +} + +"""An input for mutations affecting `PlatformFunctionDeploymentEvent`""" +input PlatformFunctionDeploymentEventInput { + """ + User who triggered this event; NULL only when no human actor was proven + """ + actorId: UUID + + """Event timestamp (partition key)""" + createdAt: Datetime + + """Deployment this event belongs to""" + deploymentId: UUID! + + """ + Event type: provisioned, scaled, failed, deactivated, redeployed, health_check + """ + eventType: String! + + """Unique event identifier""" + id: UUID + + """Human-readable description of the event""" + message: String + + """Structured context (old/new values, error details, etc.)""" + metadata: JSON +} + +"""Methods to use when ordering `PlatformFunctionDeploymentEvent`.""" +enum PlatformFunctionDeploymentEventOrderBy { + ACTOR_ID_ASC + ACTOR_ID_DESC + CREATED_AT_ASC + CREATED_AT_DESC + DEPLOYMENT_ID_ASC + DEPLOYMENT_ID_DESC + EVENT_TYPE_ASC + EVENT_TYPE_DESC + ID_ASC + ID_DESC + MESSAGE_ASC + MESSAGE_DESC + METADATA_ASC + METADATA_DESC + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC +} + +""" +Represents an update to a `PlatformFunctionDeploymentEvent`. Fields that are set will be updated. +""" +input PlatformFunctionDeploymentEventPatch { + """ + User who triggered this event; NULL only when no human actor was proven + """ + actorId: UUID + + """Event timestamp (partition key)""" + createdAt: Datetime + + """Deployment this event belongs to""" + deploymentId: UUID + + """ + Event type: provisioned, scaled, failed, deactivated, redeployed, health_check + """ + eventType: String + + """Unique event identifier""" + id: UUID + + """Human-readable description of the event""" + message: String + + """Structured context (old/new values, error details, etc.)""" + metadata: JSON +} + +""" +A filter to be used against `PlatformFunctionDeployment` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformFunctionDeploymentFilter { + """Checks for all expressions in this list.""" + and: [PlatformFunctionDeploymentFilter!] + + """Filter by the object’s `annotations` field.""" + annotations: JSONFilter + + """Filter by the object’s `concurrency` field.""" + concurrency: IntFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `createdByPrincipal` field.""" + createdByPrincipal: UUIDFilter + + """Filter by the object’s `errorCount` field.""" + errorCount: IntFilter + + """Filter by the object’s `handlerName` field.""" + handlerName: StringFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `image` field.""" + image: StringFilter + + """Filter by the object’s `imageVersion` field.""" + imageVersion: StringFilter + + """Filter by the object’s `labels` field.""" + labels: JSONFilter + + """Filter by the object’s `lastError` field.""" + lastError: StringFilter + + """Filter by the object’s `lastErrorAt` field.""" + lastErrorAt: DatetimeFilter + + """Filter by the object’s `namespace` relation.""" + namespace: PlatformNamespaceFilter + + """Filter by the object’s `namespaceId` field.""" + namespaceId: UUIDFilter + + """Negates the expression.""" + 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.""" + revision: IntFilter + + """Filter by the object’s `scaleMax` field.""" + scaleMax: IntFilter + + """Filter by the object’s `scaleMin` field.""" + scaleMin: IntFilter + + """Filter by the object’s `serviceName` field.""" + serviceName: StringFilter + + """Filter by the object’s `serviceUrl` field.""" + serviceUrl: StringFilter + + """Filter by the object’s `status` field.""" + status: StringFilter + + """Filter by the object’s `timeoutSeconds` field.""" + timeoutSeconds: IntFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + + """Filter by the object’s `updatedByPrincipal` field.""" + updatedByPrincipal: UUIDFilter +} + +"""An input for mutations affecting `PlatformFunctionDeployment`""" +input PlatformFunctionDeploymentInput { + """Freeform metadata for tooling and operational notes""" + annotations: JSON + + """Max concurrent requests per pod (NULL = inherit from definition)""" + concurrency: Int + createdAt: Datetime + createdByPrincipal: UUID + + """Cumulative error count for this deployment""" + errorCount: Int + + """ + Handler directory name (e.g. email, document) — used as FN_HANDLER_NAME in combined-image mode to select the entry point + """ + handlerName: String + id: UUID + + """ + Logical image name — the handler identity and grouping key (e.g. fn-email). No registry host or tag; tag lives in image_version. + """ + image: String! + + """Image tag/version for the handler container (e.g. latest, 2.6.4)""" + imageVersion: String + + """Key/value pairs for selecting and filtering deployments""" + labels: JSON + + """Most recent provisioning or runtime error message""" + lastError: String + + """Timestamp of the most recent error""" + lastErrorAt: Datetime + + """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":{...}} + """ + resources: JSON + + """Deployment revision number (incremented on each redeployment)""" + revision: Int + + """ + Maximum replica count (NULL = inherit from definition or Knative default) + """ + scaleMax: Int + + """ + Minimum replica count (NULL = inherit from definition or Knative default) + """ + scaleMin: Int + + """ + Knative service name — a randomly minted cute name (unique_names.generate_name() + random hex suffix) assigned by the service_url trigger; unique per namespace, not derived from the image + """ + serviceName: String + + """ + Knative service URL (http://{service-name}.{namespace}.svc.cluster.local) — populated after provisioning + """ + serviceUrl: String + + """ + Deployment lifecycle status: pending, provisioning, active, failed, scaled_to_zero, deactivated + """ + status: String + + """Request timeout override in seconds (NULL = inherit from definition)""" + timeoutSeconds: Int + updatedAt: Datetime + updatedByPrincipal: UUID +} + +"""Methods to use when ordering `PlatformFunctionDeployment`.""" +enum PlatformFunctionDeploymentOrderBy { + ANNOTATIONS_ASC + ANNOTATIONS_DESC + CONCURRENCY_ASC + CONCURRENCY_DESC + CREATED_AT_ASC + CREATED_AT_DESC + CREATED_BY_PRINCIPAL_ASC + CREATED_BY_PRINCIPAL_DESC + ERROR_COUNT_ASC + ERROR_COUNT_DESC + HANDLER_NAME_ASC + HANDLER_NAME_DESC + ID_ASC + ID_DESC + IMAGE_ASC + IMAGE_DESC + IMAGE_VERSION_ASC + IMAGE_VERSION_DESC + LABELS_ASC + LABELS_DESC + LAST_ERROR_ASC + LAST_ERROR_AT_ASC + LAST_ERROR_AT_DESC + LAST_ERROR_DESC + NAMESPACE_ID_ASC + NAMESPACE_ID_DESC + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + REALM_ASC + REALM_DESC + RESOURCES_ASC + RESOURCES_DESC + REVISION_ASC + REVISION_DESC + SCALE_MAX_ASC + SCALE_MAX_DESC + SCALE_MIN_ASC + SCALE_MIN_DESC + SERVICE_NAME_ASC + SERVICE_NAME_DESC + SERVICE_URL_ASC + SERVICE_URL_DESC + STATUS_ASC + STATUS_DESC + TIMEOUT_SECONDS_ASC + TIMEOUT_SECONDS_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + UPDATED_BY_PRINCIPAL_ASC + UPDATED_BY_PRINCIPAL_DESC +} + +""" +Represents an update to a `PlatformFunctionDeployment`. Fields that are set will be updated. +""" +input PlatformFunctionDeploymentPatch { + """Freeform metadata for tooling and operational notes""" + annotations: JSON + + """Max concurrent requests per pod (NULL = inherit from definition)""" + concurrency: Int + createdAt: Datetime + createdByPrincipal: UUID + + """Cumulative error count for this deployment""" + errorCount: Int + + """ + Handler directory name (e.g. email, document) — used as FN_HANDLER_NAME in combined-image mode to select the entry point + """ + handlerName: String + id: UUID + + """ + Logical image name — the handler identity and grouping key (e.g. fn-email). No registry host or tag; tag lives in image_version. + """ + image: String + + """Image tag/version for the handler container (e.g. latest, 2.6.4)""" + imageVersion: String + + """Key/value pairs for selecting and filtering deployments""" + labels: JSON + + """Most recent provisioning or runtime error message""" + lastError: String + + """Timestamp of the most recent error""" + lastErrorAt: Datetime + + """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":{...}} + """ + resources: JSON + + """Deployment revision number (incremented on each redeployment)""" + revision: Int + + """ + Maximum replica count (NULL = inherit from definition or Knative default) + """ + scaleMax: Int + + """ + Minimum replica count (NULL = inherit from definition or Knative default) + """ + scaleMin: Int + + """ + Knative service name — a randomly minted cute name (unique_names.generate_name() + random hex suffix) assigned by the service_url trigger; unique per namespace, not derived from the image + """ + serviceName: String + + """ + Knative service URL (http://{service-name}.{namespace}.svc.cluster.local) — populated after provisioning + """ + serviceUrl: String + + """ + Deployment lifecycle status: pending, provisioning, active, failed, scaled_to_zero, deactivated + """ + status: String + + """Request timeout override in seconds (NULL = inherit from definition)""" + timeoutSeconds: Int + updatedAt: Datetime + updatedByPrincipal: UUID +} + +"""Function execution logs — structured console output per invocation""" +type PlatformFunctionExecutionLog { + """ + User who triggered the execution; NULL only when no human actor was proven + """ + actorId: UUID + + """Log entry timestamp (partition key)""" + createdAt: Datetime! + + """Unique log entry identifier""" + id: UUID! + + """Invocation this log entry belongs to (NULL for standalone job logs)""" + invocationId: UUID + + """Log severity: debug, info, warn, error""" + logLevel: String! + + """Log message text""" + message: String! + + """Structured context (labels, trace data, extra fields)""" + metadata: JSON + + """Function routing key (NULL for generic job logs)""" + taskIdentifier: String +} + +"""A connection to a list of `PlatformFunctionExecutionLog` values.""" +type PlatformFunctionExecutionLogConnection { + """ + A list of edges which contains the `PlatformFunctionExecutionLog` and cursor to aid in pagination. + """ + edges: [PlatformFunctionExecutionLogEdge]! + + """A list of `PlatformFunctionExecutionLog` objects.""" + nodes: [PlatformFunctionExecutionLog]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `PlatformFunctionExecutionLog` you could get from the connection. + """ + totalCount: Int! +} + +"""A `PlatformFunctionExecutionLog` edge in the connection.""" +type PlatformFunctionExecutionLogEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `PlatformFunctionExecutionLog` at the end of the edge.""" + node: PlatformFunctionExecutionLog +} + +""" +A filter to be used against `PlatformFunctionExecutionLog` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformFunctionExecutionLogFilter { + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter + + """Checks for all expressions in this list.""" + and: [PlatformFunctionExecutionLogFilter!] + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `invocationId` field.""" + invocationId: UUIDFilter + + """Filter by the object’s `logLevel` field.""" + logLevel: StringFilter + + """Filter by the object’s `message` field.""" + message: StringFilter + + """Filter by the object’s `metadata` field.""" + metadata: JSONFilter + + """Negates the expression.""" + not: PlatformFunctionExecutionLogFilter + + """Checks for any expressions in this list.""" + or: [PlatformFunctionExecutionLogFilter!] + + """Filter by the object’s `taskIdentifier` field.""" + taskIdentifier: StringFilter +} + +"""An input for mutations affecting `PlatformFunctionExecutionLog`""" +input PlatformFunctionExecutionLogInput { + """ + User who triggered the execution; NULL only when no human actor was proven + """ + actorId: UUID + + """Log entry timestamp (partition key)""" + createdAt: Datetime + + """Unique log entry identifier""" + id: UUID + + """Invocation this log entry belongs to (NULL for standalone job logs)""" + invocationId: UUID + + """Log severity: debug, info, warn, error""" + logLevel: String + + """Log message text""" + message: String! + + """Structured context (labels, trace data, extra fields)""" + metadata: JSON + + """Function routing key (NULL for generic job logs)""" + taskIdentifier: String +} + +"""Methods to use when ordering `PlatformFunctionExecutionLog`.""" +enum PlatformFunctionExecutionLogOrderBy { + ACTOR_ID_ASC + ACTOR_ID_DESC + CREATED_AT_ASC + CREATED_AT_DESC + ID_ASC + ID_DESC + INVOCATION_ID_ASC + INVOCATION_ID_DESC + LOG_LEVEL_ASC + LOG_LEVEL_DESC + MESSAGE_ASC + MESSAGE_DESC + METADATA_ASC + METADATA_DESC + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + TASK_IDENTIFIER_ASC + TASK_IDENTIFIER_DESC +} + +""" +Represents an update to a `PlatformFunctionExecutionLog`. Fields that are set will be updated. +""" +input PlatformFunctionExecutionLogPatch { + """ + User who triggered the execution; NULL only when no human actor was proven + """ + actorId: UUID + + """Log entry timestamp (partition key)""" + createdAt: Datetime + + """Unique log entry identifier""" + id: UUID + + """Invocation this log entry belongs to (NULL for standalone job logs)""" + invocationId: UUID + + """Log severity: debug, info, warn, error""" + logLevel: String + + """Log message text""" + message: String + + """Structured context (labels, trace data, extra fields)""" + metadata: JSON + + """Function routing key (NULL for generic job logs)""" + taskIdentifier: String +} + +""" +Function invocation log — INSERT to call a function (business-layer, metered). Linked to definitions via function_definition_id FK, with task_identifier as the denormalized routing/audit slug. +""" +type PlatformFunctionInvocation { + """Who triggered the invocation; NULL only when no human actor was proven""" + actorId: UUID + + """ + Reads a single `PlatformFunctionApiBinding` that is related to this `PlatformFunctionInvocation`. + """ + apiBinding: PlatformFunctionApiBinding + + """ + API binding this invocation arrived through (NULL for cron/graph/system/worker paths) + """ + apiBindingId: UUID + + """ + Invocation trigger channel: api, graph, cron, sync, webhook, trigger, or worker + """ + channel: String! + + """When execution completed""" + completedAt: Datetime + + """Invocation creation timestamp (partition key)""" + createdAt: Datetime! + + """Acting principal (agent, API key, or user) who created this record""" + createdByPrincipal: UUID + + """Database this invocation is attributed to (usage/billing attribution)""" + databaseId: UUID! + + """ + Scope that owns function_definition_id (e.g. app/org/database/platform) — the per-scope definitions table the resolver selected + """ + definitionScope: String + + """Wall-clock execution time in milliseconds""" + durationMs: Int + + """Entity identity propagated with the invocation""" + entityId: UUID + + """Entity type propagated with the invocation""" + entityType: String + + """ + Error message when status is failed, or the reason the run was skipped when status is skipped + """ + error: String + + """ + Function definition this invocation ran (soft cross-scope ref; paired with definition_scope). task_identifier stays as the audit slug. + """ + functionDefinitionId: UUID + + """Groups all node invocations from a single flow graph execution""" + graphExecutionId: UUID + + """Unique invocation identifier""" + id: UUID! + + """FK to app_jobs.jobs — the underlying transport""" + jobId: BigInt + + """Organization identity propagated with the invocation""" + organizationId: UUID + + """Parent invocation when this is a child node of a flow graph execution""" + parentInvocationId: UUID + + """Function input payload""" + payload: JSON + + """Principal identity that triggered the invocation""" + principalId: UUID + + """ + Non-secret channel-specific invocation provenance (route/binding/event identifiers only) + """ + provenance: JSON! + + """Function return value (success) or structured error (failure)""" + result: JSON + + """When execution started""" + startedAt: Datetime + + """ + Lifecycle: pending → running → completed/failed/cancelled; skipped = never ran (a gate rejected the intended run) + """ + status: String! + + """ + Function routing slug (category:name). Denormalized from the definition — must match the row referenced by function_definition_id when that is set. + """ + taskIdentifier: String! +} + +""" +Function invocation attempts — one row per worker attempt (including failed retries) with duration and error detail +""" +type PlatformFunctionInvocationAttempt { + """Who triggered the invocation; NULL only when no human actor was proven""" + actorId: UUID + + """1-based attempt number for this invocation""" + attempt: Int! + + """When the attempt result was recorded (partition key)""" + createdAt: Datetime! + + """Wall-clock attempt time in milliseconds""" + durationMs: Int + + """Error message when the attempt failed""" + error: String + + """Structured error context (stack, code, provider response)""" + errorDetail: JSON + + """Unique attempt identifier""" + id: UUID! + + """ + created_at of the referenced invocation (partition-pruned lookups against the invocations PK) + """ + invocationCreatedAt: Datetime! + + """ + Invocation this attempt belongs to (soft reference paired with invocation_created_at) + """ + invocationId: UUID! + + """When the attempt began executing""" + startedAt: Datetime + + """Whether this attempt completed successfully""" + success: Boolean! + + """Function routing slug (denormalized from the invocation)""" + taskIdentifier: String! +} + +"""A connection to a list of `PlatformFunctionInvocationAttempt` values.""" +type PlatformFunctionInvocationAttemptConnection { + """ + A list of edges which contains the `PlatformFunctionInvocationAttempt` and cursor to aid in pagination. + """ + edges: [PlatformFunctionInvocationAttemptEdge]! + + """A list of `PlatformFunctionInvocationAttempt` objects.""" + nodes: [PlatformFunctionInvocationAttempt]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `PlatformFunctionInvocationAttempt` you could get from the connection. + """ + totalCount: Int! +} + +"""A `PlatformFunctionInvocationAttempt` edge in the connection.""" +type PlatformFunctionInvocationAttemptEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `PlatformFunctionInvocationAttempt` at the end of the edge.""" + node: PlatformFunctionInvocationAttempt +} + +""" +A filter to be used against `PlatformFunctionInvocationAttempt` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformFunctionInvocationAttemptFilter { + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter + + """Checks for all expressions in this list.""" + and: [PlatformFunctionInvocationAttemptFilter!] + + """Filter by the object’s `attempt` field.""" + attempt: IntFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `durationMs` field.""" + durationMs: IntFilter + + """Filter by the object’s `error` field.""" + error: StringFilter + + """Filter by the object’s `errorDetail` field.""" + errorDetail: JSONFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `invocationCreatedAt` field.""" + invocationCreatedAt: DatetimeFilter + + """Filter by the object’s `invocationId` field.""" + invocationId: UUIDFilter + + """Negates the expression.""" + not: PlatformFunctionInvocationAttemptFilter + + """Checks for any expressions in this list.""" + or: [PlatformFunctionInvocationAttemptFilter!] + + """Filter by the object’s `startedAt` field.""" + startedAt: DatetimeFilter + + """Filter by the object’s `success` field.""" + success: BooleanFilter + + """Filter by the object’s `taskIdentifier` field.""" + taskIdentifier: StringFilter +} + +"""An input for mutations affecting `PlatformFunctionInvocationAttempt`""" +input PlatformFunctionInvocationAttemptInput { + """Who triggered the invocation; NULL only when no human actor was proven""" + actorId: UUID + + """1-based attempt number for this invocation""" + attempt: Int! + + """When the attempt result was recorded (partition key)""" + createdAt: Datetime + + """Wall-clock attempt time in milliseconds""" + durationMs: Int + + """Error message when the attempt failed""" + error: String + + """Structured error context (stack, code, provider response)""" + errorDetail: JSON + + """Unique attempt identifier""" + id: UUID + + """ + created_at of the referenced invocation (partition-pruned lookups against the invocations PK) + """ + invocationCreatedAt: Datetime! + + """ + Invocation this attempt belongs to (soft reference paired with invocation_created_at) + """ + invocationId: UUID! + + """When the attempt began executing""" + startedAt: Datetime + + """Whether this attempt completed successfully""" + success: Boolean! + + """Function routing slug (denormalized from the invocation)""" + taskIdentifier: String! +} + +"""Methods to use when ordering `PlatformFunctionInvocationAttempt`.""" +enum PlatformFunctionInvocationAttemptOrderBy { + ACTOR_ID_ASC + ACTOR_ID_DESC + ATTEMPT_ASC + ATTEMPT_DESC + CREATED_AT_ASC + CREATED_AT_DESC + DURATION_MS_ASC + DURATION_MS_DESC + ERROR_ASC + ERROR_DESC + ERROR_DETAIL_ASC + ERROR_DETAIL_DESC + ID_ASC + ID_DESC + INVOCATION_CREATED_AT_ASC + INVOCATION_CREATED_AT_DESC + INVOCATION_ID_ASC + INVOCATION_ID_DESC + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + STARTED_AT_ASC + STARTED_AT_DESC + SUCCESS_ASC + SUCCESS_DESC + TASK_IDENTIFIER_ASC + TASK_IDENTIFIER_DESC +} + +""" +Represents an update to a `PlatformFunctionInvocationAttempt`. Fields that are set will be updated. +""" +input PlatformFunctionInvocationAttemptPatch { + """Who triggered the invocation; NULL only when no human actor was proven""" + actorId: UUID + + """1-based attempt number for this invocation""" + attempt: Int + + """When the attempt result was recorded (partition key)""" + createdAt: Datetime + + """Wall-clock attempt time in milliseconds""" + durationMs: Int + + """Error message when the attempt failed""" + error: String + + """Structured error context (stack, code, provider response)""" + errorDetail: JSON + + """Unique attempt identifier""" + id: UUID + + """ + created_at of the referenced invocation (partition-pruned lookups against the invocations PK) + """ + invocationCreatedAt: Datetime + + """ + Invocation this attempt belongs to (soft reference paired with invocation_created_at) + """ + invocationId: UUID + + """When the attempt began executing""" + startedAt: Datetime + + """Whether this attempt completed successfully""" + success: Boolean + + """Function routing slug (denormalized from the invocation)""" + taskIdentifier: String +} + +"""A connection to a list of `PlatformFunctionInvocation` values.""" +type PlatformFunctionInvocationConnection { + """ + A list of edges which contains the `PlatformFunctionInvocation` and cursor to aid in pagination. + """ + edges: [PlatformFunctionInvocationEdge]! + + """A list of `PlatformFunctionInvocation` objects.""" + nodes: [PlatformFunctionInvocation]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `PlatformFunctionInvocation` you could get from the connection. + """ + totalCount: Int! +} + +"""A `PlatformFunctionInvocation` edge in the connection.""" +type PlatformFunctionInvocationEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `PlatformFunctionInvocation` at the end of the edge.""" + node: PlatformFunctionInvocation +} + +""" +A filter to be used against `PlatformFunctionInvocation` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformFunctionInvocationFilter { + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter + + """Checks for all expressions in this list.""" + and: [PlatformFunctionInvocationFilter!] + + """Filter by the object’s `apiBinding` relation.""" + apiBinding: PlatformFunctionApiBindingFilter + + """A related `apiBinding` exists.""" + apiBindingExists: Boolean + + """Filter by the object’s `apiBindingId` field.""" + apiBindingId: UUIDFilter + + """Filter by the object’s `channel` field.""" + channel: StringFilter + + """Filter by the object’s `completedAt` field.""" + completedAt: DatetimeFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `createdByPrincipal` field.""" + createdByPrincipal: UUIDFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `definitionScope` field.""" + definitionScope: StringFilter + + """Filter by the object’s `durationMs` field.""" + durationMs: IntFilter + + """Filter by the object’s `entityId` field.""" + entityId: UUIDFilter + + """Filter by the object’s `entityType` field.""" + entityType: StringFilter + + """Filter by the object’s `error` field.""" + error: StringFilter + + """Filter by the object’s `functionDefinitionId` field.""" + functionDefinitionId: UUIDFilter + + """Filter by the object’s `graphExecutionId` field.""" + graphExecutionId: UUIDFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `jobId` field.""" + jobId: BigIntFilter + + """Negates the expression.""" + not: PlatformFunctionInvocationFilter + + """Checks for any expressions in this list.""" + or: [PlatformFunctionInvocationFilter!] + + """Filter by the object’s `organizationId` field.""" + organizationId: UUIDFilter + + """Filter by the object’s `parentInvocationId` field.""" + parentInvocationId: UUIDFilter + + """Filter by the object’s `payload` field.""" + payload: JSONFilter + + """Filter by the object’s `principalId` field.""" + principalId: UUIDFilter + + """Filter by the object’s `provenance` field.""" + provenance: JSONFilter + + """Filter by the object’s `result` field.""" + result: JSONFilter + + """Filter by the object’s `startedAt` field.""" + startedAt: DatetimeFilter + + """Filter by the object’s `status` field.""" + status: StringFilter + + """Filter by the object’s `taskIdentifier` field.""" + taskIdentifier: StringFilter +} + +"""An input for mutations affecting `PlatformFunctionInvocation`""" +input PlatformFunctionInvocationInput { + """Who triggered the invocation; NULL only when no human actor was proven""" + actorId: UUID + + """ + API binding this invocation arrived through (NULL for cron/graph/system/worker paths) + """ + apiBindingId: UUID + + """ + Invocation trigger channel: api, graph, cron, sync, webhook, trigger, or worker + """ + channel: String! + + """When execution completed""" + completedAt: Datetime + + """Invocation creation timestamp (partition key)""" + createdAt: Datetime + + """Acting principal (agent, API key, or user) who created this record""" + createdByPrincipal: UUID + + """Database this invocation is attributed to (usage/billing attribution)""" + databaseId: UUID + + """ + Scope that owns function_definition_id (e.g. app/org/database/platform) — the per-scope definitions table the resolver selected + """ + definitionScope: String + + """Wall-clock execution time in milliseconds""" + durationMs: Int + + """Entity identity propagated with the invocation""" + entityId: UUID + + """Entity type propagated with the invocation""" + entityType: String + + """ + Error message when status is failed, or the reason the run was skipped when status is skipped + """ + error: String + + """ + Function definition this invocation ran (soft cross-scope ref; paired with definition_scope). task_identifier stays as the audit slug. + """ + functionDefinitionId: UUID + + """Groups all node invocations from a single flow graph execution""" + graphExecutionId: UUID + + """Unique invocation identifier""" + id: UUID + + """FK to app_jobs.jobs — the underlying transport""" + jobId: BigInt + + """Organization identity propagated with the invocation""" + organizationId: UUID + + """Parent invocation when this is a child node of a flow graph execution""" + parentInvocationId: UUID + + """Function input payload""" + payload: JSON + + """Principal identity that triggered the invocation""" + principalId: UUID + + """ + Non-secret channel-specific invocation provenance (route/binding/event identifiers only) + """ + provenance: JSON + + """Function return value (success) or structured error (failure)""" + result: JSON + + """When execution started""" + startedAt: Datetime + + """ + Lifecycle: pending → running → completed/failed/cancelled; skipped = never ran (a gate rejected the intended run) + """ + status: String + + """ + Function routing slug (category:name). Denormalized from the definition — must match the row referenced by function_definition_id when that is set. + """ + taskIdentifier: String! +} + +"""Methods to use when ordering `PlatformFunctionInvocation`.""" +enum PlatformFunctionInvocationOrderBy { + ACTOR_ID_ASC + ACTOR_ID_DESC + API_BINDING_ID_ASC + API_BINDING_ID_DESC + CHANNEL_ASC + CHANNEL_DESC + COMPLETED_AT_ASC + COMPLETED_AT_DESC + CREATED_AT_ASC + CREATED_AT_DESC + CREATED_BY_PRINCIPAL_ASC + CREATED_BY_PRINCIPAL_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + DEFINITION_SCOPE_ASC + DEFINITION_SCOPE_DESC + DURATION_MS_ASC + DURATION_MS_DESC + ENTITY_ID_ASC + ENTITY_ID_DESC + ENTITY_TYPE_ASC + ENTITY_TYPE_DESC + ERROR_ASC + ERROR_DESC + FUNCTION_DEFINITION_ID_ASC + FUNCTION_DEFINITION_ID_DESC + GRAPH_EXECUTION_ID_ASC + GRAPH_EXECUTION_ID_DESC + ID_ASC + ID_DESC + JOB_ID_ASC + JOB_ID_DESC + NATURAL + ORGANIZATION_ID_ASC + ORGANIZATION_ID_DESC + PARENT_INVOCATION_ID_ASC + PARENT_INVOCATION_ID_DESC + PAYLOAD_ASC + PAYLOAD_DESC + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + PRINCIPAL_ID_ASC + PRINCIPAL_ID_DESC + PROVENANCE_ASC + PROVENANCE_DESC + RESULT_ASC + RESULT_DESC + STARTED_AT_ASC + STARTED_AT_DESC + STATUS_ASC + STATUS_DESC + TASK_IDENTIFIER_ASC + TASK_IDENTIFIER_DESC +} + +""" +Represents an update to a `PlatformFunctionInvocation`. Fields that are set will be updated. +""" +input PlatformFunctionInvocationPatch { + """Who triggered the invocation; NULL only when no human actor was proven""" + actorId: UUID + + """ + API binding this invocation arrived through (NULL for cron/graph/system/worker paths) + """ + apiBindingId: UUID + + """ + Invocation trigger channel: api, graph, cron, sync, webhook, trigger, or worker + """ + channel: String + + """When execution completed""" + completedAt: Datetime + + """Invocation creation timestamp (partition key)""" + createdAt: Datetime + + """Acting principal (agent, API key, or user) who created this record""" + createdByPrincipal: UUID + + """Database this invocation is attributed to (usage/billing attribution)""" + databaseId: UUID + + """ + Scope that owns function_definition_id (e.g. app/org/database/platform) — the per-scope definitions table the resolver selected + """ + definitionScope: String + + """Wall-clock execution time in milliseconds""" + durationMs: Int + + """Entity identity propagated with the invocation""" + entityId: UUID + + """Entity type propagated with the invocation""" + entityType: String + + """ + Error message when status is failed, or the reason the run was skipped when status is skipped + """ + error: String + + """ + Function definition this invocation ran (soft cross-scope ref; paired with definition_scope). task_identifier stays as the audit slug. + """ + functionDefinitionId: UUID + + """Groups all node invocations from a single flow graph execution""" + graphExecutionId: UUID + + """Unique invocation identifier""" + id: UUID + + """FK to app_jobs.jobs — the underlying transport""" + jobId: BigInt + + """Organization identity propagated with the invocation""" + organizationId: UUID + + """Parent invocation when this is a child node of a flow graph execution""" + parentInvocationId: UUID + + """Function input payload""" + payload: JSON + + """Principal identity that triggered the invocation""" + principalId: UUID + + """ + Non-secret channel-specific invocation provenance (route/binding/event identifiers only) + """ + provenance: JSON + + """Function return value (success) or structured error (failure)""" + result: JSON + + """When execution started""" + startedAt: Datetime + + """ + Lifecycle: pending → running → completed/failed/cancelled; skipped = never ran (a gate rejected the intended run) + """ + status: String + + """ + Function routing slug (category:name). Denormalized from the definition — must match the row referenced by function_definition_id when that is set. + """ + taskIdentifier: String +} + +"""All input for the `platformFunctionInvocationsCreateSync` mutation.""" +input PlatformFunctionInvocationsCreateSyncInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + entityId: UUID + payload: JSON + provenance: JSON + routeBindingId: UUID + taskIdentifier: String +} + +"""The output of our `platformFunctionInvocationsCreateSync` mutation.""" +type PlatformFunctionInvocationsCreateSyncPayload { + """ + The 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 `PlatformFunctionInvocation`. May be used by Relay 1.""" + platformFunctionInvocationEdge( + """The method to use when ordering `PlatformFunctionInvocation`.""" + orderBy: [PlatformFunctionInvocationOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformFunctionInvocationEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + result: PlatformFunctionInvocation +} + +""" +Container image catalog: images available to run as functions, resources, and builds +""" +type PlatformImage { + createdAt: Datetime + createdByPrincipal: UUID + + """Human-readable description of what this image runs""" + description: String + + """Content address (sha256:...) pinning this image, when known""" + digest: String + + """ + When this catalog row becomes eligible for retention cleanup (NULL = kept forever) + """ + expiresAt: Datetime + id: UUID! + + """Whether this image is published for use by any scope""" + isPublished: Boolean! + + """Labels for selecting images (architecture, capabilities, lane)""" + labels: JSON! + + """Freeform metadata (build provenance, source repository, SBOM pointer)""" + metadata: JSON + + """Human-readable image name (e.g. node-runtime)""" + name: String! + + """User who registered this catalog row""" + ownerId: UUID + + """Reads and enables pagination through a set of `PlatformImageGrant`.""" + platformImageGrantsByImageId( + """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 `PlatformImageGrant`.""" + orderBy: [PlatformImageGrantOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformImageGrantFilter + ): PlatformImageGrantConnection! + + """Whether this image is reserved for platform-internal use""" + platformOnly: Boolean! + + """ + Registry host serving this image (NULL means the platform default registry) + """ + registryHost: String + + """Repository path within the registry (e.g. constructiveio/worker)""" + repository: String! + + """Runtime this image implements (e.g. nodejs, python, custom)""" + runtime: String + + """Mutable tag this row addresses""" + tag: String! + updatedAt: Datetime + updatedByPrincipal: UUID +} + +"""A connection to a list of `PlatformImage` values.""" +type PlatformImageConnection { + """ + A list of edges which contains the `PlatformImage` and cursor to aid in pagination. + """ + edges: [PlatformImageEdge]! + + """A list of `PlatformImage` objects.""" + nodes: [PlatformImage]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `PlatformImage` you could get from the connection.""" + totalCount: Int! +} + +"""A `PlatformImage` edge in the connection.""" +type PlatformImageEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `PlatformImage` at the end of the edge.""" + node: PlatformImage +} + +""" +A filter to be used against `PlatformImage` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformImageFilter { + """Checks for all expressions in this list.""" + and: [PlatformImageFilter!] + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `createdByPrincipal` field.""" + createdByPrincipal: UUIDFilter + + """Filter by the object’s `description` field.""" + description: StringFilter + + """Filter by the object’s `digest` field.""" + digest: StringFilter + + """Filter by the object’s `expiresAt` field.""" + expiresAt: DatetimeFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `isPublished` field.""" + isPublished: BooleanFilter + + """Filter by the object’s `labels` field.""" + labels: JSONFilter + + """Filter by the object’s `metadata` field.""" + metadata: JSONFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """Negates the expression.""" + not: PlatformImageFilter + + """Checks for any expressions in this list.""" + or: [PlatformImageFilter!] + + """Filter by the object’s `ownerId` field.""" + ownerId: UUIDFilter + + """Filter by the object’s `platformImageGrantsByImageId` relation.""" + platformImageGrantsByImageId: PlatformImageToManyPlatformImageGrantFilter + + """`platformImageGrantsByImageId` exist.""" + platformImageGrantsByImageIdExist: Boolean + + """Filter by the object’s `platformOnly` field.""" + platformOnly: BooleanFilter + + """Filter by the object’s `registryHost` field.""" + registryHost: StringFilter + + """Filter by the object’s `repository` field.""" + repository: StringFilter + + """Filter by the object’s `runtime` field.""" + runtime: StringFilter + + """Filter by the object’s `tag` field.""" + tag: StringFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + + """Filter by the object’s `updatedByPrincipal` field.""" + updatedByPrincipal: UUIDFilter +} + +"""Grants that make a catalog image usable by one scope""" +type PlatformImageGrant { + """Registry actions this grant allows (pull, push, delete)""" + actions: [String]! + createdAt: Datetime + createdByPrincipal: UUID + + """When this grant stops applying (NULL never expires)""" + expiresAt: Datetime + + """User who issued this grant""" + grantedBy: UUID + + """Scope key of the grantee (a database_id or an entity_id)""" + granteeKey: UUID! + + """Scope tier of the grantee (database, org, app, platform)""" + granteeScope: String! + id: UUID! + + """ + Reads a single `PlatformImage` that is related to this `PlatformImageGrant`. + """ + image: PlatformImage + + """Catalog image this grant applies to""" + imageId: UUID! + updatedAt: Datetime + updatedByPrincipal: UUID +} + +"""A connection to a list of `PlatformImageGrant` values.""" +type PlatformImageGrantConnection { + """ + A list of edges which contains the `PlatformImageGrant` and cursor to aid in pagination. + """ + edges: [PlatformImageGrantEdge]! + + """A list of `PlatformImageGrant` objects.""" + nodes: [PlatformImageGrant]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `PlatformImageGrant` you could get from the connection. + """ + totalCount: Int! +} + +"""A `PlatformImageGrant` edge in the connection.""" +type PlatformImageGrantEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `PlatformImageGrant` at the end of the edge.""" + node: PlatformImageGrant +} + +""" +A filter to be used against `PlatformImageGrant` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformImageGrantFilter { + """Filter by the object’s `actions` field.""" + actions: StringListFilter + + """Checks for all expressions in this list.""" + and: [PlatformImageGrantFilter!] + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `createdByPrincipal` field.""" + createdByPrincipal: UUIDFilter + + """Filter by the object’s `expiresAt` field.""" + expiresAt: DatetimeFilter + + """Filter by the object’s `grantedBy` field.""" + grantedBy: UUIDFilter + + """Filter by the object’s `granteeKey` field.""" + granteeKey: UUIDFilter + + """Filter by the object’s `granteeScope` field.""" + granteeScope: StringFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `image` relation.""" + image: PlatformImageFilter + + """Filter by the object’s `imageId` field.""" + imageId: UUIDFilter + + """Negates the expression.""" + not: PlatformImageGrantFilter + + """Checks for any expressions in this list.""" + or: [PlatformImageGrantFilter!] + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + + """Filter by the object’s `updatedByPrincipal` field.""" + updatedByPrincipal: UUIDFilter +} + +"""An input for mutations affecting `PlatformImageGrant`""" +input PlatformImageGrantInput { + """Registry actions this grant allows (pull, push, delete)""" + actions: [String] + createdAt: Datetime + createdByPrincipal: UUID + + """When this grant stops applying (NULL never expires)""" + expiresAt: Datetime + + """User who issued this grant""" + grantedBy: UUID + + """Scope key of the grantee (a database_id or an entity_id)""" + granteeKey: UUID! + + """Scope tier of the grantee (database, org, app, platform)""" + granteeScope: String! + id: UUID + + """Catalog image this grant applies to""" + imageId: UUID! + updatedAt: Datetime + updatedByPrincipal: UUID +} + +"""Methods to use when ordering `PlatformImageGrant`.""" +enum PlatformImageGrantOrderBy { + ACTIONS_ASC + ACTIONS_DESC + CREATED_AT_ASC + CREATED_AT_DESC + CREATED_BY_PRINCIPAL_ASC + CREATED_BY_PRINCIPAL_DESC + EXPIRES_AT_ASC + EXPIRES_AT_DESC + GRANTED_BY_ASC + GRANTED_BY_DESC + GRANTEE_KEY_ASC + GRANTEE_KEY_DESC + GRANTEE_SCOPE_ASC + GRANTEE_SCOPE_DESC + ID_ASC + ID_DESC + IMAGE_ID_ASC + IMAGE_ID_DESC + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + UPDATED_BY_PRINCIPAL_ASC + UPDATED_BY_PRINCIPAL_DESC +} + +""" +Represents an update to a `PlatformImageGrant`. Fields that are set will be updated. +""" +input PlatformImageGrantPatch { + """Registry actions this grant allows (pull, push, delete)""" + actions: [String] + createdAt: Datetime + createdByPrincipal: UUID + + """When this grant stops applying (NULL never expires)""" + expiresAt: Datetime + + """User who issued this grant""" + grantedBy: UUID + + """Scope key of the grantee (a database_id or an entity_id)""" + granteeKey: UUID + + """Scope tier of the grantee (database, org, app, platform)""" + granteeScope: String + id: UUID + + """Catalog image this grant applies to""" + imageId: UUID + updatedAt: Datetime + updatedByPrincipal: UUID +} + +"""An input for mutations affecting `PlatformImage`""" +input PlatformImageInput { + createdAt: Datetime + createdByPrincipal: UUID + + """Human-readable description of what this image runs""" + description: String + + """Content address (sha256:...) pinning this image, when known""" + digest: String + + """ + When this catalog row becomes eligible for retention cleanup (NULL = kept forever) + """ + expiresAt: Datetime + id: UUID + + """Whether this image is published for use by any scope""" + isPublished: Boolean + + """Labels for selecting images (architecture, capabilities, lane)""" + labels: JSON + + """Freeform metadata (build provenance, source repository, SBOM pointer)""" + metadata: JSON + + """Human-readable image name (e.g. node-runtime)""" + name: String! + + """User who registered this catalog row""" + ownerId: UUID + + """Whether this image is reserved for platform-internal use""" + platformOnly: Boolean + + """ + Registry host serving this image (NULL means the platform default registry) + """ + registryHost: String + + """Repository path within the registry (e.g. constructiveio/worker)""" + repository: String! + + """Runtime this image implements (e.g. nodejs, python, custom)""" + runtime: String + + """Mutable tag this row addresses""" + tag: String + updatedAt: Datetime + updatedByPrincipal: UUID +} + +"""Methods to use when ordering `PlatformImage`.""" +enum PlatformImageOrderBy { + CREATED_AT_ASC + CREATED_AT_DESC + CREATED_BY_PRINCIPAL_ASC + CREATED_BY_PRINCIPAL_DESC + DESCRIPTION_ASC + DESCRIPTION_DESC + DIGEST_ASC + DIGEST_DESC + EXPIRES_AT_ASC + EXPIRES_AT_DESC + ID_ASC + ID_DESC + IS_PUBLISHED_ASC + IS_PUBLISHED_DESC + LABELS_ASC + LABELS_DESC + METADATA_ASC + METADATA_DESC + NAME_ASC + NAME_DESC + NATURAL + OWNER_ID_ASC + OWNER_ID_DESC + PLATFORM_ONLY_ASC + PLATFORM_ONLY_DESC + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + REGISTRY_HOST_ASC + REGISTRY_HOST_DESC + REPOSITORY_ASC + REPOSITORY_DESC + RUNTIME_ASC + RUNTIME_DESC + TAG_ASC + TAG_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + UPDATED_BY_PRINCIPAL_ASC + UPDATED_BY_PRINCIPAL_DESC +} + +""" +Represents an update to a `PlatformImage`. Fields that are set will be updated. +""" +input PlatformImagePatch { + createdAt: Datetime + createdByPrincipal: UUID + + """Human-readable description of what this image runs""" + description: String + + """Content address (sha256:...) pinning this image, when known""" + digest: String + + """ + When this catalog row becomes eligible for retention cleanup (NULL = kept forever) + """ + expiresAt: Datetime + id: UUID + + """Whether this image is published for use by any scope""" + isPublished: Boolean + + """Labels for selecting images (architecture, capabilities, lane)""" + labels: JSON + + """Freeform metadata (build provenance, source repository, SBOM pointer)""" + metadata: JSON + + """Human-readable image name (e.g. node-runtime)""" + name: String + + """User who registered this catalog row""" + ownerId: UUID + + """Whether this image is reserved for platform-internal use""" + platformOnly: Boolean + + """ + Registry host serving this image (NULL means the platform default registry) + """ + registryHost: String + + """Repository path within the registry (e.g. constructiveio/worker)""" + repository: String + + """Runtime this image implements (e.g. nodejs, python, custom)""" + runtime: String + + """Mutable tag this row addresses""" + tag: String + updatedAt: Datetime + updatedByPrincipal: UUID +} + +""" +A filter to be used against many `PlatformImageGrant` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformImageToManyPlatformImageGrantFilter { + """Filters to entities where every related entity matches.""" + every: PlatformImageGrantFilter + + """Filters to entities where no related entity matches.""" + none: PlatformImageGrantFilter + + """Filters to entities where at least one related entity matches.""" + some: PlatformImageGrantFilter +} + +"""Commit history — each commit snapshots a tree root for a store""" +type PlatformInfraCommit { + """User who authored the changes""" + authorId: UUID + + """User who committed (may differ from author)""" + committerId: UUID + + """Commit timestamp""" + date: Datetime! + + """Unique commit identifier""" + id: UUID! + + """Optional commit message""" + message: String + + """Parent commit IDs (supports merge commits)""" + parentIds: [UUID] + + """Opaque store partition key for the global tier""" + scopeId: UUID! + + """Store this commit belongs to""" + storeId: UUID! + + """Root object ID of the tree snapshot at this commit""" + treeId: UUID +} + +"""A connection to a list of `PlatformInfraCommit` values.""" +type PlatformInfraCommitConnection { + """ + A list of edges which contains the `PlatformInfraCommit` and cursor to aid in pagination. + """ + edges: [PlatformInfraCommitEdge]! + + """A list of `PlatformInfraCommit` objects.""" + nodes: [PlatformInfraCommit]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `PlatformInfraCommit` you could get from the connection. + """ + totalCount: Int! +} + +"""A `PlatformInfraCommit` edge in the connection.""" +type PlatformInfraCommitEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `PlatformInfraCommit` at the end of the edge.""" + node: PlatformInfraCommit +} + +""" +A filter to be used against `PlatformInfraCommit` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformInfraCommitFilter { + """Checks for all expressions in this list.""" + and: [PlatformInfraCommitFilter!] + + """Filter by the object’s `authorId` field.""" + authorId: UUIDFilter + + """Filter by the object’s `committerId` field.""" + committerId: UUIDFilter + + """Filter by the object’s `date` field.""" + date: DatetimeFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `message` field.""" + message: StringFilter + + """Negates the expression.""" + not: PlatformInfraCommitFilter + + """Checks for any expressions in this list.""" + or: [PlatformInfraCommitFilter!] + + """Filter by the object’s `parentIds` field.""" + parentIds: UUIDListFilter + + """Filter by the object’s `scopeId` field.""" + scopeId: UUIDFilter + + """Filter by the object’s `storeId` field.""" + storeId: UUIDFilter + + """Filter by the object’s `treeId` field.""" + treeId: UUIDFilter +} + +"""An input for mutations affecting `PlatformInfraCommit`""" +input PlatformInfraCommitInput { + """User who authored the changes""" + authorId: UUID + + """User who committed (may differ from author)""" + committerId: UUID + + """Commit timestamp""" + date: Datetime + + """Unique commit identifier""" + id: UUID + + """Optional commit message""" + message: String + + """Parent commit IDs (supports merge commits)""" + parentIds: [UUID] + + """Opaque store partition key for the global tier""" + scopeId: UUID! + + """Store this commit belongs to""" + storeId: UUID! + + """Root object ID of the tree snapshot at this commit""" + treeId: UUID +} + +"""Methods to use when ordering `PlatformInfraCommit`.""" +enum PlatformInfraCommitOrderBy { + AUTHOR_ID_ASC + AUTHOR_ID_DESC + COMMITTER_ID_ASC + COMMITTER_ID_DESC + DATE_ASC + DATE_DESC + ID_ASC + ID_DESC + MESSAGE_ASC + MESSAGE_DESC + NATURAL + PARENT_IDS_ASC + PARENT_IDS_DESC + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + SCOPE_ID_ASC + SCOPE_ID_DESC + STORE_ID_ASC + STORE_ID_DESC + TREE_ID_ASC + TREE_ID_DESC +} + +""" +Represents an update to a `PlatformInfraCommit`. Fields that are set will be updated. +""" +input PlatformInfraCommitPatch { + """User who authored the changes""" + authorId: UUID + + """User who committed (may differ from author)""" + committerId: UUID + + """Commit timestamp""" + date: Datetime + + """Unique commit identifier""" + id: UUID + + """Optional commit message""" + message: String + + """Parent commit IDs (supports merge commits)""" + parentIds: [UUID] + + """Opaque store partition key for the global tier""" + scopeId: UUID + + """Store this commit belongs to""" + storeId: UUID + + """Root object ID of the tree snapshot at this commit""" + treeId: UUID +} + +"""A connection to a list of `PlatformInfraGetAllTreeNodesRecord` values.""" +type PlatformInfraGetAllTreeNodesConnection { + """ + A list of edges which contains the `PlatformInfraGetAllTreeNodesRecord` and cursor to aid in pagination. + """ + edges: [PlatformInfraGetAllTreeNodesEdge]! + + """A list of `PlatformInfraGetAllTreeNodesRecord` objects.""" + nodes: [PlatformInfraGetAllTreeNodesRecord]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `PlatformInfraGetAllTreeNodesRecord` you could get from the connection. + """ + totalCount: Int! +} + +"""A `PlatformInfraGetAllTreeNodesRecord` edge in the connection.""" +type PlatformInfraGetAllTreeNodesEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `PlatformInfraGetAllTreeNodesRecord` at the end of the edge.""" + node: PlatformInfraGetAllTreeNodesRecord +} + +type PlatformInfraGetAllTreeNodesRecord { + data: JSON + path: [String] +} + +"""All input for the `platformInfraInitEmptyRepo` mutation.""" +input PlatformInfraInitEmptyRepoInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + sId: UUID + storeId: UUID +} + +"""The output of our `platformInfraInitEmptyRepo` mutation.""" +type PlatformInfraInitEmptyRepoPayload { + """ + The 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 `platformInfraInsertNodeAtPath` mutation.""" +input PlatformInfraInsertNodeAtPathInput { + """ + An arbitrary 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] + path: [String] + root: UUID + sId: UUID +} + +"""The output of our `platformInfraInsertNodeAtPath` mutation.""" +type PlatformInfraInsertNodeAtPathPayload { + """ + The 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 `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 +""" +type PlatformInfraObject { + """Timestamp of object creation""" + createdAt: Datetime + + """Payload data for this object node""" + data: JSON + + """Content-addressed UUID v5 — deterministic hash of (data, kids, ktree)""" + id: UUID! + + """Ordered array of child object IDs""" + kids: [UUID] + + """Ordered array of child path names (parallel to kids)""" + ktree: [String] + + """Opaque store partition key for the global tier""" + scopeId: UUID! +} + +"""A connection to a list of `PlatformInfraObject` values.""" +type PlatformInfraObjectConnection { + """ + A list of edges which contains the `PlatformInfraObject` and cursor to aid in pagination. + """ + edges: [PlatformInfraObjectEdge]! + + """A list of `PlatformInfraObject` objects.""" + nodes: [PlatformInfraObject]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `PlatformInfraObject` you could get from the connection. + """ + totalCount: Int! +} + +"""A `PlatformInfraObject` edge in the connection.""" +type PlatformInfraObjectEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `PlatformInfraObject` at the end of the edge.""" + node: PlatformInfraObject +} + +""" +A filter to be used against `PlatformInfraObject` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformInfraObjectFilter { + """Checks for all expressions in this list.""" + and: [PlatformInfraObjectFilter!] + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `data` field.""" + data: JSONFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `kids` field.""" + kids: UUIDListFilter + + """Filter by the object’s `ktree` field.""" + ktree: StringListFilter + + """Negates the expression.""" + not: PlatformInfraObjectFilter + + """Checks for any expressions in this list.""" + or: [PlatformInfraObjectFilter!] + + """Filter by the object’s `scopeId` field.""" + scopeId: UUIDFilter +} + +"""An input for mutations affecting `PlatformInfraObject`""" +input PlatformInfraObjectInput { + """Timestamp of object creation""" + createdAt: Datetime + + """Payload data for this object node""" + data: JSON + + """Content-addressed UUID v5 — deterministic hash of (data, kids, ktree)""" + id: UUID! + + """Ordered array of child object IDs""" + kids: [UUID] + + """Ordered array of child path names (parallel to kids)""" + ktree: [String] + + """Opaque store partition key for the global tier""" + scopeId: UUID! +} + +"""Methods to use when ordering `PlatformInfraObject`.""" +enum PlatformInfraObjectOrderBy { + CREATED_AT_ASC + CREATED_AT_DESC + DATA_ASC + DATA_DESC + ID_ASC + ID_DESC + KIDS_ASC + KIDS_DESC + KTREE_ASC + KTREE_DESC + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + SCOPE_ID_ASC + SCOPE_ID_DESC +} + +""" +Represents an update to a `PlatformInfraObject`. Fields that are set will be updated. +""" +input PlatformInfraObjectPatch { + """Timestamp of object creation""" + createdAt: Datetime + + """Payload data for this object node""" + data: JSON + + """Content-addressed UUID v5 — deterministic hash of (data, kids, ktree)""" + id: UUID + + """Ordered array of child object IDs""" + kids: [UUID] + + """Ordered array of child path names (parallel to kids)""" + ktree: [String] + + """Opaque store partition key for the global tier""" + scopeId: UUID +} + +"""Branch heads — mutable pointers into the commit chain""" +type PlatformInfraRef { + """Commit this ref points to""" + commitId: UUID + + """Unique ref identifier""" + id: UUID! + + """Ref name (e.g. HEAD, main)""" + name: String! + + """Opaque store partition key for the global tier""" + scopeId: UUID! + + """Store this ref belongs to""" + storeId: UUID! +} + +"""A connection to a list of `PlatformInfraRef` values.""" +type PlatformInfraRefConnection { + """ + A list of edges which contains the `PlatformInfraRef` and cursor to aid in pagination. + """ + edges: [PlatformInfraRefEdge]! + + """A list of `PlatformInfraRef` objects.""" + nodes: [PlatformInfraRef]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `PlatformInfraRef` you could get from the connection. + """ + totalCount: Int! +} + +"""A `PlatformInfraRef` edge in the connection.""" +type PlatformInfraRefEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `PlatformInfraRef` at the end of the edge.""" + node: PlatformInfraRef +} + +""" +A filter to be used against `PlatformInfraRef` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformInfraRefFilter { + """Checks for all expressions in this list.""" + and: [PlatformInfraRefFilter!] + + """Filter by the object’s `commitId` field.""" + commitId: UUIDFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """Negates the expression.""" + not: PlatformInfraRefFilter + + """Checks for any expressions in this list.""" + or: [PlatformInfraRefFilter!] + + """Filter by the object’s `scopeId` field.""" + scopeId: UUIDFilter + + """Filter by the object’s `storeId` field.""" + storeId: UUIDFilter +} + +"""An input for mutations affecting `PlatformInfraRef`""" +input PlatformInfraRefInput { + """Commit this ref points to""" + commitId: UUID + + """Unique ref identifier""" + id: UUID + + """Ref name (e.g. HEAD, main)""" + name: String! + + """Opaque store partition key for the global tier""" + scopeId: UUID! + + """Store this ref belongs to""" + storeId: UUID! +} + +"""Methods to use when ordering `PlatformInfraRef`.""" +enum PlatformInfraRefOrderBy { + COMMIT_ID_ASC + COMMIT_ID_DESC + ID_ASC + ID_DESC + NAME_ASC + NAME_DESC + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + SCOPE_ID_ASC + SCOPE_ID_DESC + STORE_ID_ASC + STORE_ID_DESC +} + +""" +Represents an update to a `PlatformInfraRef`. Fields that are set will be updated. +""" +input PlatformInfraRefPatch { + """Commit this ref points to""" + commitId: UUID + + """Unique ref identifier""" + id: UUID + + """Ref name (e.g. HEAD, main)""" + name: String + + """Opaque store partition key for the global tier""" + scopeId: UUID + + """Store this ref belongs to""" + 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 { + """ + An arbitrary 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 + path: [String] + root: UUID + sId: UUID +} + +"""The output of our `platformInfraSetDataAtPath` mutation.""" +type PlatformInfraSetDataAtPathPayload { + """ + The 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 `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) +""" +type PlatformInfraStore { + """Timestamp of store creation""" + createdAt: Datetime + + """Current root object hash of this store""" + hash: UUID + + """Unique store identifier""" + id: UUID! + + """Human-readable store name""" + name: String! + + """Opaque store partition key for the global tier""" + scopeId: UUID! +} + +"""A connection to a list of `PlatformInfraStore` values.""" +type PlatformInfraStoreConnection { + """ + A list of edges which contains the `PlatformInfraStore` and cursor to aid in pagination. + """ + edges: [PlatformInfraStoreEdge]! + + """A list of `PlatformInfraStore` objects.""" + nodes: [PlatformInfraStore]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `PlatformInfraStore` you could get from the connection. + """ + totalCount: Int! +} + +"""A `PlatformInfraStore` edge in the connection.""" +type PlatformInfraStoreEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `PlatformInfraStore` at the end of the edge.""" + node: PlatformInfraStore +} + +""" +A filter to be used against `PlatformInfraStore` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformInfraStoreFilter { + """Checks for all expressions in this list.""" + and: [PlatformInfraStoreFilter!] + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `hash` field.""" + hash: UUIDFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """Negates the expression.""" + not: PlatformInfraStoreFilter + + """Checks for any expressions in this list.""" + or: [PlatformInfraStoreFilter!] + + """Filter by the object’s `scopeId` field.""" + scopeId: UUIDFilter +} + +"""An input for mutations affecting `PlatformInfraStore`""" +input PlatformInfraStoreInput { + """Timestamp of store creation""" + createdAt: Datetime + + """Current root object hash of this store""" + hash: UUID + + """Unique store identifier""" + id: UUID + + """Human-readable store name""" + name: String! + + """Opaque store partition key for the global tier""" + scopeId: UUID! +} + +"""Methods to use when ordering `PlatformInfraStore`.""" +enum PlatformInfraStoreOrderBy { + CREATED_AT_ASC + CREATED_AT_DESC + HASH_ASC + HASH_DESC + ID_ASC + ID_DESC + NAME_ASC + NAME_DESC + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + SCOPE_ID_ASC + SCOPE_ID_DESC +} + +""" +Represents an update to a `PlatformInfraStore`. Fields that are set will be updated. +""" +input PlatformInfraStorePatch { + """Timestamp of store creation""" + createdAt: Datetime + + """Current root object hash of this store""" + hash: UUID + + """Unique store identifier""" + id: UUID + + """Human-readable store name""" + name: String + + """Opaque store partition key for the global tier""" + scopeId: UUID +} + +""" +Kubernetes kind allow-list for DB-driven resources — merkle-versioned head over the infra store; the admission gate fails closed on kinds without an active row +""" +type PlatformK8sResourceKind { + """ + Whether the admission gate consults this row; deactivating a kind row denies the kind (fail closed) + """ + active: Boolean! + + """ + Infra store commit for the current definition (stamped by the versioned trigger on every write) + """ + commitId: UUID + + """Timestamp of policy creation""" + createdAt: Datetime! + + """ + Kind policy: {allowed, allowed_scopes?, notes} — the readily-cached head; history lives in the infra store + """ + definition: JSON! + + """Human-readable description of the kind policy""" + description: String + + """Unique kind policy identifier""" + id: UUID! + + """Human-readable kind policy name""" + label: String + + """ + Kubernetes kind this policy governs (e.g. Deployment); the policy's path in the infra tree is [k8s_resource_kind, slug] + """ + slug: String! + + """ + Infra Merkle store holding this policy's history (stamped by the versioned trigger) + """ + storeId: UUID + + """Timestamp of last modification""" + updatedAt: Datetime! +} + +"""A connection to a list of `PlatformK8sResourceKind` values.""" +type PlatformK8sResourceKindConnection { + """ + A list of edges which contains the `PlatformK8sResourceKind` and cursor to aid in pagination. + """ + edges: [PlatformK8sResourceKindEdge]! + + """A list of `PlatformK8sResourceKind` objects.""" + nodes: [PlatformK8sResourceKind]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `PlatformK8sResourceKind` you could get from the connection. + """ + totalCount: Int! +} + +"""A `PlatformK8sResourceKind` edge in the connection.""" +type PlatformK8sResourceKindEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `PlatformK8sResourceKind` at the end of the edge.""" + node: PlatformK8sResourceKind +} + +""" +A filter to be used against `PlatformK8sResourceKind` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformK8sResourceKindFilter { + """Filter by the object’s `active` field.""" + active: BooleanFilter + + """Checks for all expressions in this list.""" + and: [PlatformK8sResourceKindFilter!] + + """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 `label` field.""" + label: StringFilter + + """Negates the expression.""" + not: PlatformK8sResourceKindFilter + + """Checks for any expressions in this list.""" + or: [PlatformK8sResourceKindFilter!] + + """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 `PlatformK8sResourceKind`""" +input PlatformK8sResourceKindInput { + """ + Whether the admission gate consults this row; deactivating a kind row denies the kind (fail closed) + """ + active: Boolean + + """ + Infra store commit for the current definition (stamped by the versioned trigger on every write) + """ + commitId: UUID + + """Timestamp of policy creation""" + createdAt: Datetime + + """ + Kind policy: {allowed, allowed_scopes?, notes} — the readily-cached head; history lives in the infra store + """ + definition: JSON! + + """Human-readable description of the kind policy""" + description: String + + """Unique kind policy identifier""" + id: UUID + + """Human-readable kind policy name""" + label: String + + """ + Kubernetes kind this policy governs (e.g. Deployment); the policy's path in the infra tree is [k8s_resource_kind, slug] + """ + slug: String! + + """ + Infra Merkle store holding this policy's history (stamped by the versioned trigger) + """ + storeId: UUID + + """Timestamp of last modification""" + updatedAt: Datetime +} + +"""Methods to use when ordering `PlatformK8sResourceKind`.""" +enum PlatformK8sResourceKindOrderBy { + 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 + 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 `PlatformK8sResourceKind`. Fields that are set will be updated. +""" +input PlatformK8sResourceKindPatch { + """ + Whether the admission gate consults this row; deactivating a kind row denies the kind (fail closed) + """ + active: Boolean + + """ + Infra store commit for the current definition (stamped by the versioned trigger on every write) + """ + commitId: UUID + + """Timestamp of policy creation""" + createdAt: Datetime + + """ + Kind policy: {allowed, allowed_scopes?, notes} — the readily-cached head; history lives in the infra store + """ + definition: JSON + + """Human-readable description of the kind policy""" + description: String + + """Unique kind policy identifier""" + id: UUID + + """Human-readable kind policy name""" + label: String + + """ + Kubernetes kind this policy governs (e.g. Deployment); the policy's path in the infra tree is [k8s_resource_kind, slug] + """ + slug: String + + """ + Infra Merkle store holding this policy's history (stamped by the versioned trigger) + """ + storeId: UUID + + """Timestamp of last modification""" + updatedAt: Datetime +} + +""" +Spec rulebook for DB-driven resources — merkle-versioned head over the infra store; enforced by the generated admission gate via infra_utils.check_resource_admission +""" +type PlatformK8sSpecRule { + """ + Whether the admission gate enforces this rule; rules are disabled here rather than deleted so history stays intact + """ + active: Boolean! + + """ + Infra store commit for the current definition (stamped by the versioned trigger on every write) + """ + commitId: UUID + + """Timestamp of rule creation""" + createdAt: Datetime! + + """ + Rule definition: {rule_type, kind?, match, notes?} — the readily-cached head; history lives in the infra store + """ + definition: JSON! + + """Human-readable description of the rule""" + description: String + + """Unique spec rule identifier""" + id: UUID! + + """Human-readable rule name""" + label: String + + """ + Rule slug (unique per scope); the rule's path in the infra tree is [k8s_spec_rule, slug] + """ + slug: String! + + """ + Infra Merkle store holding this rule's history (stamped by the versioned trigger) + """ + storeId: UUID + + """Timestamp of last modification""" + updatedAt: Datetime! +} + +"""A connection to a list of `PlatformK8sSpecRule` values.""" +type PlatformK8sSpecRuleConnection { + """ + A list of edges which contains the `PlatformK8sSpecRule` and cursor to aid in pagination. + """ + edges: [PlatformK8sSpecRuleEdge]! + + """A list of `PlatformK8sSpecRule` objects.""" + nodes: [PlatformK8sSpecRule]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `PlatformK8sSpecRule` you could get from the connection. + """ + totalCount: Int! +} + +"""A `PlatformK8sSpecRule` edge in the connection.""" +type PlatformK8sSpecRuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `PlatformK8sSpecRule` at the end of the edge.""" + node: PlatformK8sSpecRule +} + +""" +A filter to be used against `PlatformK8sSpecRule` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformK8sSpecRuleFilter { + """Filter by the object’s `active` field.""" + active: BooleanFilter + + """Checks for all expressions in this list.""" + and: [PlatformK8sSpecRuleFilter!] + + """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 `label` field.""" + label: StringFilter + + """Negates the expression.""" + not: PlatformK8sSpecRuleFilter + + """Checks for any expressions in this list.""" + or: [PlatformK8sSpecRuleFilter!] + + """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 `PlatformK8sSpecRule`""" +input PlatformK8sSpecRuleInput { + """ + Whether the admission gate enforces this rule; rules are disabled here rather than deleted so history stays intact + """ + active: Boolean + + """ + Infra store commit for the current definition (stamped by the versioned trigger on every write) + """ + commitId: UUID + + """Timestamp of rule creation""" + createdAt: Datetime + + """ + Rule definition: {rule_type, kind?, match, notes?} — the readily-cached head; history lives in the infra store + """ + definition: JSON! + + """Human-readable description of the rule""" + description: String + + """Unique spec rule identifier""" + id: UUID + + """Human-readable rule name""" + label: String + + """ + Rule slug (unique per scope); the rule's path in the infra tree is [k8s_spec_rule, slug] + """ + slug: String! + + """ + Infra Merkle store holding this rule's history (stamped by the versioned trigger) + """ + storeId: UUID + + """Timestamp of last modification""" + updatedAt: Datetime +} + +"""Methods to use when ordering `PlatformK8sSpecRule`.""" +enum PlatformK8sSpecRuleOrderBy { + 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 + 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 `PlatformK8sSpecRule`. Fields that are set will be updated. +""" +input PlatformK8sSpecRulePatch { + """ + Whether the admission gate enforces this rule; rules are disabled here rather than deleted so history stays intact + """ + active: Boolean + + """ + Infra store commit for the current definition (stamped by the versioned trigger on every write) + """ + commitId: UUID + + """Timestamp of rule creation""" + createdAt: Datetime + + """ + Rule definition: {rule_type, kind?, match, notes?} — the readily-cached head; history lives in the infra store + """ + definition: JSON + + """Human-readable description of the rule""" + description: String + + """Unique spec rule identifier""" + id: UUID + + """Human-readable rule name""" + label: String + + """ + Rule slug (unique per scope); the rule's path in the infra tree is [k8s_spec_rule, slug] + """ + slug: String + + """ + Infra Merkle store holding this rule's history (stamped by the versioned trigger) + """ + storeId: UUID + + """Timestamp of last modification""" + updatedAt: Datetime +} + +""" +Logical namespace containers for grouping secrets, config, functions, and other resources +""" +type PlatformNamespace { + """Freeform metadata for tooling and operational notes""" + annotations: JSON! + + """ + Cluster this namespace is projected onto; NULL = the cluster the reconciler runs in + """ + clusterId: UUID + createdAt: Datetime + + """Optional human-readable description of this namespace""" + description: String + id: UUID! + + """Whether this namespace is active (soft-disable for filtering)""" + isActive: Boolean! + + """ + true = provisioned by the platform via jobs, false = unmanaged/platform-native (bootstrapped externally) + """ + isManaged: Boolean! + + """Key/value pairs for selecting and filtering namespaces""" + labels: JSON! + + """Most recent provisioning or reconcile error message""" + lastError: String + + """Human-readable namespace name (e.g. default, production, oauth)""" + name: String! + + """ + Globally unique computed namespace identifier via inflection.underscore + """ + namespaceName: String! + + """ + Reads and enables pagination through a set of `PlatformBuilderBinding`. + """ + platformBuilderBindingsByNamespaceId( + """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 `PlatformBuilderBinding`.""" + orderBy: [PlatformBuilderBindingOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformBuilderBindingFilter + ): PlatformBuilderBindingConnection! + + """ + Reads and enables pagination through a set of `PlatformFunctionDeployment`. + """ + platformFunctionDeploymentsByNamespaceId( + """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 `PlatformFunctionDeployment`.""" + orderBy: [PlatformFunctionDeploymentOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformFunctionDeploymentFilter + ): PlatformFunctionDeploymentConnection! + + """ + Reads and enables pagination through a set of `PlatformRegistryBinding`. + """ + platformRegistryBindingsByNamespaceId( + """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 `PlatformRegistryBinding`.""" + orderBy: [PlatformRegistryBindingOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformRegistryBindingFilter + ): PlatformRegistryBindingConnection! + + """ + Reads and enables pagination through a set of `PlatformResourceDefinition`. + """ + platformResourceDefinitionsByNamespaceId( + """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 `PlatformResourceDefinition`.""" + orderBy: [PlatformResourceDefinitionOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformResourceDefinitionFilter + ): PlatformResourceDefinitionConnection! + + """ + Reads and enables pagination through a set of `PlatformResourceInstallation`. + """ + platformResourceInstallationsByNamespaceId( + """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 `PlatformResourceInstallation`.""" + orderBy: [PlatformResourceInstallationOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformResourceInstallationFilter + ): PlatformResourceInstallationConnection! + + """Reads and enables pagination through a set of `PlatformResource`.""" + platformResourcesByNamespaceId( + """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 `PlatformResource`.""" + orderBy: [PlatformResourceOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformResourceFilter + ): PlatformResourceConnection! + + """ + Reads and enables pagination through a set of `PlatformWebhookEndpoint`. + """ + platformWebhookEndpointsByNamespaceId( + """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 `PlatformWebhookEndpoint`.""" + orderBy: [PlatformWebhookEndpointOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformWebhookEndpointFilter + ): PlatformWebhookEndpointConnection! + + """ + Namespace provisioning lifecycle status: pending, provisioning, active, failed + """ + status: String! + updatedAt: Datetime +} + +"""A connection to a list of `PlatformNamespace` values.""" +type PlatformNamespaceConnection { + """ + A list of edges which contains the `PlatformNamespace` and cursor to aid in pagination. + """ + edges: [PlatformNamespaceEdge]! + + """A list of `PlatformNamespace` objects.""" + nodes: [PlatformNamespace]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `PlatformNamespace` you could get from the connection. + """ + totalCount: Int! +} + +"""A `PlatformNamespace` edge in the connection.""" +type PlatformNamespaceEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `PlatformNamespace` at the end of the edge.""" + node: PlatformNamespace +} + +""" +Namespace lifecycle events — audit log of creation, activation, deactivation, label changes +""" +type PlatformNamespaceEvent { + """ + User who triggered this event; NULL only when no human actor was proven + """ + actorId: UUID + + """Event timestamp (partition key)""" + createdAt: Datetime! + + """ + Event type: created, activated, deactivated, labels_updated, annotations_updated, renamed + """ + eventType: String! + + """Unique event identifier""" + id: UUID! + + """Human-readable description of the event""" + message: String + + """Structured context (old/new values, labels diff, etc.)""" + metadata: JSON + + """Namespace this event belongs to""" + namespaceId: UUID! +} + +"""A connection to a list of `PlatformNamespaceEvent` values.""" +type PlatformNamespaceEventConnection { + """ + A list of edges which contains the `PlatformNamespaceEvent` and cursor to aid in pagination. + """ + edges: [PlatformNamespaceEventEdge]! + + """A list of `PlatformNamespaceEvent` objects.""" + nodes: [PlatformNamespaceEvent]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `PlatformNamespaceEvent` you could get from the connection. + """ + totalCount: Int! +} + +"""A `PlatformNamespaceEvent` edge in the connection.""" +type PlatformNamespaceEventEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `PlatformNamespaceEvent` at the end of the edge.""" + node: PlatformNamespaceEvent +} + +""" +A filter to be used against `PlatformNamespaceEvent` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformNamespaceEventFilter { + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter + + """Checks for all expressions in this list.""" + and: [PlatformNamespaceEventFilter!] + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `eventType` field.""" + eventType: StringFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `message` field.""" + message: StringFilter + + """Filter by the object’s `metadata` field.""" + metadata: JSONFilter + + """Filter by the object’s `namespaceId` field.""" + namespaceId: UUIDFilter + + """Negates the expression.""" + not: PlatformNamespaceEventFilter + + """Checks for any expressions in this list.""" + or: [PlatformNamespaceEventFilter!] +} + +"""An input for mutations affecting `PlatformNamespaceEvent`""" +input PlatformNamespaceEventInput { + """ + User who triggered this event; NULL only when no human actor was proven + """ + actorId: UUID + + """Event timestamp (partition key)""" + createdAt: Datetime + + """ + Event type: created, activated, deactivated, labels_updated, annotations_updated, renamed + """ + eventType: String! + + """Unique event identifier""" + id: UUID + + """Human-readable description of the event""" + message: String + + """Structured context (old/new values, labels diff, etc.)""" + metadata: JSON + + """Namespace this event belongs to""" + namespaceId: UUID! +} + +"""Methods to use when ordering `PlatformNamespaceEvent`.""" +enum PlatformNamespaceEventOrderBy { + ACTOR_ID_ASC + ACTOR_ID_DESC + CREATED_AT_ASC + CREATED_AT_DESC + EVENT_TYPE_ASC + EVENT_TYPE_DESC + ID_ASC + ID_DESC + MESSAGE_ASC + MESSAGE_DESC + METADATA_ASC + METADATA_DESC + NAMESPACE_ID_ASC + NAMESPACE_ID_DESC + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC +} + +""" +Represents an update to a `PlatformNamespaceEvent`. Fields that are set will be updated. +""" +input PlatformNamespaceEventPatch { + """ + User who triggered this event; NULL only when no human actor was proven + """ + actorId: UUID + + """Event timestamp (partition key)""" + createdAt: Datetime + + """ + Event type: created, activated, deactivated, labels_updated, annotations_updated, renamed + """ + eventType: String + + """Unique event identifier""" + id: UUID + + """Human-readable description of the event""" + message: String + + """Structured context (old/new values, labels diff, etc.)""" + metadata: JSON + + """Namespace this event belongs to""" + namespaceId: UUID +} + +""" +A filter to be used against `PlatformNamespace` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformNamespaceFilter { + """Checks for all expressions in this list.""" + and: [PlatformNamespaceFilter!] + + """Filter by the object’s `annotations` field.""" + annotations: JSONFilter + + """Filter by the object’s `clusterId` field.""" + clusterId: UUIDFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `description` field.""" + description: StringFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `isActive` field.""" + isActive: BooleanFilter + + """Filter by the object’s `isManaged` field.""" + isManaged: BooleanFilter + + """Filter by the object’s `labels` field.""" + labels: JSONFilter + + """Filter by the object’s `lastError` field.""" + lastError: StringFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """Filter by the object’s `namespaceName` field.""" + namespaceName: StringFilter + + """Negates the expression.""" + not: PlatformNamespaceFilter + + """Checks for any expressions in this list.""" + or: [PlatformNamespaceFilter!] + + """ + Filter by the object’s `platformBuilderBindingsByNamespaceId` relation. + """ + platformBuilderBindingsByNamespaceId: PlatformNamespaceToManyPlatformBuilderBindingFilter + + """`platformBuilderBindingsByNamespaceId` exist.""" + platformBuilderBindingsByNamespaceIdExist: Boolean + + """ + Filter by the object’s `platformFunctionDeploymentsByNamespaceId` relation. + """ + platformFunctionDeploymentsByNamespaceId: PlatformNamespaceToManyPlatformFunctionDeploymentFilter + + """`platformFunctionDeploymentsByNamespaceId` exist.""" + platformFunctionDeploymentsByNamespaceIdExist: Boolean + + """ + Filter by the object’s `platformRegistryBindingsByNamespaceId` relation. + """ + platformRegistryBindingsByNamespaceId: PlatformNamespaceToManyPlatformRegistryBindingFilter + + """`platformRegistryBindingsByNamespaceId` exist.""" + platformRegistryBindingsByNamespaceIdExist: Boolean + + """ + Filter by the object’s `platformResourceDefinitionsByNamespaceId` relation. + """ + platformResourceDefinitionsByNamespaceId: PlatformNamespaceToManyPlatformResourceDefinitionFilter + + """`platformResourceDefinitionsByNamespaceId` exist.""" + platformResourceDefinitionsByNamespaceIdExist: Boolean + + """ + Filter by the object’s `platformResourceInstallationsByNamespaceId` relation. + """ + platformResourceInstallationsByNamespaceId: PlatformNamespaceToManyPlatformResourceInstallationFilter + + """`platformResourceInstallationsByNamespaceId` exist.""" + platformResourceInstallationsByNamespaceIdExist: Boolean + + """Filter by the object’s `platformResourcesByNamespaceId` relation.""" + platformResourcesByNamespaceId: PlatformNamespaceToManyPlatformResourceFilter + + """`platformResourcesByNamespaceId` exist.""" + platformResourcesByNamespaceIdExist: Boolean + + """ + Filter by the object’s `platformWebhookEndpointsByNamespaceId` relation. + """ + platformWebhookEndpointsByNamespaceId: PlatformNamespaceToManyPlatformWebhookEndpointFilter + + """`platformWebhookEndpointsByNamespaceId` exist.""" + platformWebhookEndpointsByNamespaceIdExist: Boolean + + """Filter by the object’s `status` field.""" + status: StringFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter +} + +"""An input for mutations affecting `PlatformNamespace`""" +input PlatformNamespaceInput { + """Freeform metadata for tooling and operational notes""" + annotations: JSON + + """ + Cluster this namespace is projected onto; NULL = the cluster the reconciler runs in + """ + clusterId: UUID + createdAt: Datetime + + """Optional human-readable description of this namespace""" + description: String + id: UUID + + """Whether this namespace is active (soft-disable for filtering)""" + isActive: Boolean + + """ + true = provisioned by the platform via jobs, false = unmanaged/platform-native (bootstrapped externally) + """ + isManaged: Boolean + + """Key/value pairs for selecting and filtering namespaces""" + labels: JSON + + """Most recent provisioning or reconcile error message""" + lastError: String + + """Human-readable namespace name (e.g. default, production, oauth)""" + name: String! + + """ + Globally unique computed namespace identifier via inflection.underscore + """ + namespaceName: String! + + """ + Namespace provisioning lifecycle status: pending, provisioning, active, failed + """ + status: String + updatedAt: Datetime +} + +"""Methods to use when ordering `PlatformNamespace`.""" +enum PlatformNamespaceOrderBy { + ANNOTATIONS_ASC + ANNOTATIONS_DESC + CLUSTER_ID_ASC + CLUSTER_ID_DESC + CREATED_AT_ASC + CREATED_AT_DESC + DESCRIPTION_ASC + DESCRIPTION_DESC + ID_ASC + ID_DESC + IS_ACTIVE_ASC + IS_ACTIVE_DESC + IS_MANAGED_ASC + IS_MANAGED_DESC + LABELS_ASC + LABELS_DESC + LAST_ERROR_ASC + LAST_ERROR_DESC + NAMESPACE_NAME_ASC + NAMESPACE_NAME_DESC + NAME_ASC + NAME_DESC + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + STATUS_ASC + STATUS_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC +} + +""" +Represents an update to a `PlatformNamespace`. Fields that are set will be updated. +""" +input PlatformNamespacePatch { + """Freeform metadata for tooling and operational notes""" + annotations: JSON + + """ + Cluster this namespace is projected onto; NULL = the cluster the reconciler runs in + """ + clusterId: UUID + createdAt: Datetime + + """Optional human-readable description of this namespace""" + description: String + id: UUID + + """Whether this namespace is active (soft-disable for filtering)""" + isActive: Boolean + + """ + true = provisioned by the platform via jobs, false = unmanaged/platform-native (bootstrapped externally) + """ + isManaged: Boolean + + """Key/value pairs for selecting and filtering namespaces""" + labels: JSON + + """Most recent provisioning or reconcile error message""" + lastError: String + + """Human-readable namespace name (e.g. default, production, oauth)""" + name: String + + """ + Globally unique computed namespace identifier via inflection.underscore + """ + namespaceName: String + + """ + Namespace provisioning lifecycle status: pending, provisioning, active, failed + """ + status: String + updatedAt: Datetime +} + +""" +A filter to be used against many `PlatformBuilderBinding` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformNamespaceToManyPlatformBuilderBindingFilter { + """Filters to entities where every related entity matches.""" + every: PlatformBuilderBindingFilter + + """Filters to entities where no related entity matches.""" + none: PlatformBuilderBindingFilter + + """Filters to entities where at least one related entity matches.""" + some: PlatformBuilderBindingFilter +} + +""" +A filter to be used against many `PlatformFunctionDeployment` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformNamespaceToManyPlatformFunctionDeploymentFilter { + """Filters to entities where every related entity matches.""" + every: PlatformFunctionDeploymentFilter + + """Filters to entities where no related entity matches.""" + none: PlatformFunctionDeploymentFilter + + """Filters to entities where at least one related entity matches.""" + some: PlatformFunctionDeploymentFilter +} + +""" +A filter to be used against many `PlatformRegistryBinding` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformNamespaceToManyPlatformRegistryBindingFilter { + """Filters to entities where every related entity matches.""" + every: PlatformRegistryBindingFilter + + """Filters to entities where no related entity matches.""" + none: PlatformRegistryBindingFilter + + """Filters to entities where at least one related entity matches.""" + some: PlatformRegistryBindingFilter +} + +""" +A filter to be used against many `PlatformResourceDefinition` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformNamespaceToManyPlatformResourceDefinitionFilter { + """Filters to entities where every related entity matches.""" + every: PlatformResourceDefinitionFilter + + """Filters to entities where no related entity matches.""" + none: PlatformResourceDefinitionFilter + + """Filters to entities where at least one related entity matches.""" + some: PlatformResourceDefinitionFilter +} + +""" +A filter to be used against many `PlatformResource` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformNamespaceToManyPlatformResourceFilter { + """Filters to entities where every related entity matches.""" + every: PlatformResourceFilter + + """Filters to entities where no related entity matches.""" + none: PlatformResourceFilter + + """Filters to entities where at least one related entity matches.""" + some: PlatformResourceFilter +} + +""" +A filter to be used against many `PlatformResourceInstallation` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformNamespaceToManyPlatformResourceInstallationFilter { + """Filters to entities where every related entity matches.""" + every: PlatformResourceInstallationFilter + + """Filters to entities where no related entity matches.""" + none: PlatformResourceInstallationFilter + + """Filters to entities where at least one related entity matches.""" + some: PlatformResourceInstallationFilter +} + +""" +A filter to be used against many `PlatformWebhookEndpoint` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformNamespaceToManyPlatformWebhookEndpointFilter { + """Filters to entities where every related entity matches.""" + every: PlatformWebhookEndpointFilter + + """Filters to entities where no related entity matches.""" + none: PlatformWebhookEndpointFilter + + """Filters to entities where at least one related entity matches.""" + some: PlatformWebhookEndpointFilter +} + +""" +Proposals against a repository: issues, changes to merge, discussions and decisions +""" +type PlatformProposal { + """ + Actor who opened the proposal; NULL only when no human actor was proven + """ + actorId: UUID + + """Description of the proposed change""" + body: String + + """ + TRGM similarity when searching `body`. Returns null when no trgm search filter is active. + """ + bodyTrgmSimilarity: Float + + """Reads and enables pagination through a set of `PlatformProposal`.""" + childPlatformProposals( + """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 `PlatformProposal`.""" + orderBy: [PlatformProposalOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformProposalFilter + ): PlatformProposalConnection! + + """Why this was closed: completed, not_planned, duplicate, superseded""" + closedReason: String + + """ + TRGM similarity when searching `closedReason`. Returns null when no trgm search filter is active. + """ + closedReasonTrgmSimilarity: Float + createdAt: Datetime + createdBy: UUID + createdByPrincipal: UUID + + """When the decision was taken (NULL while the question is open)""" + decidedAt: Datetime + + """When this is wanted by (NULL when nothing is promised)""" + dueAt: Datetime + embedding: Vector + embeddingUpdatedAt: Datetime + + """ + VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. + """ + embeddingVectorDistance: Float + id: UUID! + + """ + issue (a report or plan), change (merge one ref into another), discussion (an open question), decision (a question answered) + """ + kind: String! + + """ + TRGM similarity when searching `kind`. Returns null when no trgm search filter is active. + """ + kindTrgmSimilarity: Float + + """ + Labels for filtering and grouping (a board is a query over kind, status and these) + """ + labels: [String] + + """Commit the merge produced""" + mergeCommit: String + + """ + TRGM similarity when searching `mergeCommit`. Returns null when no trgm search filter is active. + """ + mergeCommitTrgmSimilarity: Float + + """How to merge when eligible: merge, squash, rebase""" + mergeMethod: String + + """ + TRGM similarity when searching `mergeMethod`. Returns null when no trgm search filter is active. + """ + mergeMethodTrgmSimilarity: Float + + """When merge-when-green was requested (NULL when no merge is pending)""" + mergeRequestedAt: Datetime + + """When the merge completed""" + mergedAt: Datetime + + """Review detail (reviewers, labels, checks summary)""" + metadata: JSON + + """ + Reads a single `PlatformProposal` that is related to this `PlatformProposal`. + """ + parent: PlatformProposal + + """ + Proposal this one hangs under: an epic, or the discussion a decision came out of + """ + parentId: UUID + + """Reads and enables pagination through a set of `PlatformBuild`.""" + platformBuildsByProposalId( + """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 `PlatformBuild`.""" + orderBy: [PlatformBuildOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformBuildFilter + ): PlatformBuildConnection! + + """ + Reads and enables pagination through a set of `PlatformProposalComment`. + """ + platformProposalCommentsByProposalId( + """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 `PlatformProposalComment`.""" + orderBy: [PlatformProposalCommentOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformProposalCommentFilter + ): PlatformProposalCommentConnection! + + """ + Reads and enables pagination through a set of `PlatformProposalFileView`. + """ + platformProposalFileViewsByProposalId( + """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 `PlatformProposalFileView`.""" + orderBy: [PlatformProposalFileViewOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformProposalFileViewFilter + ): PlatformProposalFileViewConnection! + + """ + Reads and enables pagination through a set of `PlatformProposalReaction`. + """ + platformProposalReactionsByProposalId( + """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 `PlatformProposalReaction`.""" + orderBy: [PlatformProposalReactionOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformProposalReactionFilter + ): PlatformProposalReactionConnection! + + """ + Reads and enables pagination through a set of `PlatformProposalReview`. + """ + platformProposalReviewsByProposalId( + """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 `PlatformProposalReview`.""" + orderBy: [PlatformProposalReviewOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformProposalReviewFilter + ): PlatformProposalReviewConnection! + + """ + Reads and enables pagination through a set of `PlatformProposalsChunk`. + """ + platformProposalsChunksByPlatformProposalsId( + """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 `PlatformProposalsChunk`.""" + orderBy: [PlatformProposalsChunkOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformProposalsChunkFilter + ): PlatformProposalsChunkConnection! + + """ + Manual order within a board column, sparse so an insert between two rows moves one row (NULL when unranked) + """ + priority: BigFloat + + """ + Reads a single `PlatformRepository` that is related to this `PlatformProposal`. + """ + repository: PlatformRepository + + """Repository this proposal is against""" + repositoryId: UUID! + + """ + What was decided (for kind = decision; NULL while the question is open) + """ + resolution: String + + """ + TRGM similarity when searching `resolution`. Returns null when no trgm search filter is active. + """ + resolutionTrgmSimilarity: Float + search: FullText + + """ + Composite search relevance score (0..1, higher = more relevant). Computed using Reciprocal Rank Fusion (RRF) across all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. + """ + searchScore: Float + + """ + TSV rank when searching `search`. Returns null when no tsv search filter is active. + """ + searchTsvRank: Float + + """Ref holding the proposed commits (NULL unless kind is change)""" + sourceRef: String + + """ + TRGM similarity when searching `sourceRef`. Returns null when no trgm search filter is active. + """ + sourceRefTrgmSimilarity: Float + + """Lifecycle state: draft, open, merged, closed""" + status: String! + + """ + TRGM similarity when searching `status`. Returns null when no trgm search filter is active. + """ + statusTrgmSimilarity: Float + + """Ref the commits are proposed for (NULL unless kind is change)""" + targetRef: String + + """ + TRGM similarity when searching `targetRef`. Returns null when no trgm search filter is active. + """ + targetRefTrgmSimilarity: Float + + """What this proposal does""" + title: String! + + """ + TRGM similarity when searching `title`. Returns null when no trgm search filter is active. + """ + titleTrgmSimilarity: Float + updatedAt: Datetime + updatedBy: UUID + updatedByPrincipal: UUID +} + +"""Comments on a local proposal, optionally anchored to a line""" +type PlatformProposalComment { + """Actor who wrote the comment; NULL only when no human actor was proven""" + actorId: UUID + + """Files referenced by the comment body, in the order they were attached""" + attachments: [ConstructiveInternalTypeUpload] + + """Comment text""" + body: String! + + """ + TRGM similarity when searching `body`. Returns null when no trgm search filter is active. + """ + bodyTrgmSimilarity: Float + createdAt: Datetime + createdBy: UUID + createdByPrincipal: UUID + embedding: Vector + embeddingUpdatedAt: Datetime + + """ + VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. + """ + embeddingVectorDistance: Float + id: UUID! + + """Line within path the comment is anchored to""" + line: Int + + """When the anchored range this comment pointed at vanished from the diff""" + outdatedAt: Datetime + + """File the comment is anchored to (NULL for a comment on the proposal)""" + path: String + + """ + TRGM similarity when searching `path`. Returns null when no trgm search filter is active. + """ + pathTrgmSimilarity: Float + + """ + Reads and enables pagination through a set of `PlatformProposalReaction`. + """ + platformProposalReactionsByCommentId( + """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 `PlatformProposalReaction`.""" + orderBy: [PlatformProposalReactionOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformProposalReactionFilter + ): PlatformProposalReactionConnection! + + """ + Reads a single `PlatformProposal` that is related to this `PlatformProposalComment`. + """ + proposal: PlatformProposal + + """Proposal being commented on""" + proposalId: UUID! + + """When this comment was marked resolved""" + resolvedAt: Datetime + search: FullText + + """ + Composite search relevance score (0..1, higher = more relevant). Computed using Reciprocal Rank Fusion (RRF) across all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. + """ + searchScore: Float + + """ + TSV rank when searching `search`. Returns null when no tsv search filter is active. + """ + searchTsvRank: Float + updatedAt: Datetime + updatedBy: UUID + updatedByPrincipal: UUID +} + +"""A connection to a list of `PlatformProposalComment` values.""" +type PlatformProposalCommentConnection { + """ + A list of edges which contains the `PlatformProposalComment` and cursor to aid in pagination. + """ + edges: [PlatformProposalCommentEdge]! + + """A list of `PlatformProposalComment` objects.""" + nodes: [PlatformProposalComment]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `PlatformProposalComment` you could get from the connection. + """ + totalCount: Int! +} + +"""A `PlatformProposalComment` edge in the connection.""" +type PlatformProposalCommentEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `PlatformProposalComment` at the end of the edge.""" + node: PlatformProposalComment +} + +""" +A filter to be used against `PlatformProposalComment` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformProposalCommentFilter { + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter + + """Checks for all expressions in this list.""" + and: [PlatformProposalCommentFilter!] + + """Filter by the object’s `attachments` field.""" + attachments: ConstructiveInternalTypeUploadListFilter + + """Filter by the object’s `body` field.""" + body: StringTrgmFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `createdBy` field.""" + createdBy: UUIDFilter + + """Filter by the object’s `createdByPrincipal` field.""" + createdByPrincipal: UUIDFilter + + """Filter by the object’s `embedding` field.""" + embedding: VectorFilter + + """Filter by the object’s `embeddingUpdatedAt` field.""" + embeddingUpdatedAt: DatetimeFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `line` field.""" + line: IntFilter + + """Negates the expression.""" + not: PlatformProposalCommentFilter + + """Checks for any expressions in this list.""" + or: [PlatformProposalCommentFilter!] + + """Filter by the object’s `outdatedAt` field.""" + outdatedAt: DatetimeFilter + + """Filter by the object’s `path` field.""" + path: StringTrgmFilter + + """ + Filter by the object’s `platformProposalReactionsByCommentId` relation. + """ + platformProposalReactionsByCommentId: PlatformProposalCommentToManyPlatformProposalReactionFilter + + """`platformProposalReactionsByCommentId` exist.""" + platformProposalReactionsByCommentIdExist: Boolean + + """Filter by the object’s `proposal` relation.""" + proposal: PlatformProposalFilter + + """Filter by the object’s `proposalId` field.""" + proposalId: UUIDFilter + + """Filter by the object’s `resolvedAt` field.""" + resolvedAt: DatetimeFilter + + """Filter by the object’s `search` field.""" + search: FullTextFilter + + """TRGM search on the `body` column.""" + trgmBody: TrgmSearchInput + + """TRGM search on the `path` column.""" + trgmPath: TrgmSearchInput + + """TSV search on the `search` column.""" + tsvSearch: String + + """ + Composite unified search. Provide a search string and it will be dispatched to + all text-compatible search algorithms (tsvector, BM25, pg_trgm) + simultaneously. When the LLM plugin is active, pgvector also participates via + auto-embedding. Rows matching ANY algorithm are returned. All matching score + fields are populated. + """ + unifiedSearch: String + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + + """Filter by the object’s `updatedBy` field.""" + updatedBy: UUIDFilter + + """Filter by the object’s `updatedByPrincipal` field.""" + updatedByPrincipal: UUIDFilter + + """VECTOR search on the `embedding` column.""" + vectorEmbedding: VectorNearbyInput +} + +"""An input for mutations affecting `PlatformProposalComment`""" +input PlatformProposalCommentInput { + """Actor who wrote the comment; NULL only when no human actor was proven""" + actorId: UUID + + """Files referenced by the comment body, in the order they were attached""" + attachments: [ConstructiveInternalTypeUpload] + + """Comment text""" + body: String! + createdAt: Datetime + createdBy: UUID + createdByPrincipal: UUID + embedding: Vector + + """ + Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. + """ + embeddingText: String + id: UUID + + """Line within path the comment is anchored to""" + line: Int + + """When the anchored range this comment pointed at vanished from the diff""" + outdatedAt: Datetime + + """File the comment is anchored to (NULL for a comment on the proposal)""" + path: String + + """Proposal being commented on""" + proposalId: UUID! + + """When this comment was marked resolved""" + resolvedAt: Datetime + updatedAt: Datetime + updatedBy: UUID + updatedByPrincipal: UUID +} + +"""Methods to use when ordering `PlatformProposalComment`.""" +enum PlatformProposalCommentOrderBy { + ACTOR_ID_ASC + ACTOR_ID_DESC + ATTACHMENTS_ASC + ATTACHMENTS_DESC + BODY_ASC + BODY_DESC + BODY_TRGM_SIMILARITY_ASC + BODY_TRGM_SIMILARITY_DESC + CREATED_AT_ASC + CREATED_AT_DESC + CREATED_BY_ASC + CREATED_BY_DESC + CREATED_BY_PRINCIPAL_ASC + CREATED_BY_PRINCIPAL_DESC + EMBEDDING_ASC + EMBEDDING_DESC + EMBEDDING_UPDATED_AT_ASC + EMBEDDING_UPDATED_AT_DESC + EMBEDDING_VECTOR_DISTANCE_ASC + EMBEDDING_VECTOR_DISTANCE_DESC + ID_ASC + ID_DESC + LINE_ASC + LINE_DESC + NATURAL + OUTDATED_AT_ASC + OUTDATED_AT_DESC + PATH_ASC + PATH_DESC + PATH_TRGM_SIMILARITY_ASC + PATH_TRGM_SIMILARITY_DESC + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + PROPOSAL_ID_ASC + PROPOSAL_ID_DESC + RESOLVED_AT_ASC + RESOLVED_AT_DESC + SEARCH_ASC + SEARCH_DESC + SEARCH_SCORE_ASC + SEARCH_SCORE_DESC + SEARCH_TSV_RANK_ASC + SEARCH_TSV_RANK_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + UPDATED_BY_ASC + UPDATED_BY_DESC + UPDATED_BY_PRINCIPAL_ASC + UPDATED_BY_PRINCIPAL_DESC +} + +""" +Represents an update to a `PlatformProposalComment`. Fields that are set will be updated. +""" +input PlatformProposalCommentPatch { + """Actor who wrote the comment; NULL only when no human actor was proven""" + actorId: UUID + + """Files referenced by the comment body, in the order they were attached""" + attachments: [ConstructiveInternalTypeUpload] + + """Comment text""" + body: String + createdAt: Datetime + createdBy: UUID + createdByPrincipal: UUID + embedding: Vector + + """ + Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. + """ + embeddingText: String + id: UUID + + """Line within path the comment is anchored to""" + line: Int + + """When the anchored range this comment pointed at vanished from the diff""" + outdatedAt: Datetime + + """File the comment is anchored to (NULL for a comment on the proposal)""" + path: String + + """Proposal being commented on""" + proposalId: UUID + + """When this comment was marked resolved""" + resolvedAt: Datetime + updatedAt: Datetime + updatedBy: UUID + updatedByPrincipal: UUID +} + +""" +A filter to be used against many `PlatformProposalReaction` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformProposalCommentToManyPlatformProposalReactionFilter { + """Filters to entities where every related entity matches.""" + every: PlatformProposalReactionFilter + + """Filters to entities where no related entity matches.""" + none: PlatformProposalReactionFilter + + """Filters to entities where at least one related entity matches.""" + some: PlatformProposalReactionFilter +} + +"""A connection to a list of `PlatformProposal` values.""" +type PlatformProposalConnection { + """ + A list of edges which contains the `PlatformProposal` and cursor to aid in pagination. + """ + edges: [PlatformProposalEdge]! + + """A list of `PlatformProposal` objects.""" + nodes: [PlatformProposal]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `PlatformProposal` you could get from the connection. + """ + totalCount: Int! +} + +"""A `PlatformProposal` edge in the connection.""" +type PlatformProposalEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `PlatformProposal` at the end of the edge.""" + node: PlatformProposal +} + +"""Files a reviewer has read, pinned to the blob they read""" +type PlatformProposalFileView { + """ + Blob the reviewer read, which is what makes the mark survive a rebase or go stale + """ + blobSha: String! + createdAt: Datetime + createdByPrincipal: UUID + id: UUID! + + """Path of the file as the diff named it""" + path: String! + + """ + Reads a single `PlatformProposal` that is related to this `PlatformProposalFileView`. + """ + proposal: PlatformProposal + + """Proposal the file belongs to""" + proposalId: UUID! + + """Actor who read the file""" + reviewerId: UUID! + updatedAt: Datetime + updatedByPrincipal: UUID + + """When the file was marked read""" + viewedAt: Datetime! +} + +"""A connection to a list of `PlatformProposalFileView` values.""" +type PlatformProposalFileViewConnection { + """ + A list of edges which contains the `PlatformProposalFileView` and cursor to aid in pagination. + """ + edges: [PlatformProposalFileViewEdge]! + + """A list of `PlatformProposalFileView` objects.""" + nodes: [PlatformProposalFileView]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `PlatformProposalFileView` you could get from the connection. + """ + totalCount: Int! +} + +"""A `PlatformProposalFileView` edge in the connection.""" +type PlatformProposalFileViewEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `PlatformProposalFileView` at the end of the edge.""" + node: PlatformProposalFileView +} + +""" +A filter to be used against `PlatformProposalFileView` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformProposalFileViewFilter { + """Checks for all expressions in this list.""" + and: [PlatformProposalFileViewFilter!] + + """Filter by the object’s `blobSha` field.""" + blobSha: StringFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `createdByPrincipal` field.""" + createdByPrincipal: UUIDFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Negates the expression.""" + not: PlatformProposalFileViewFilter + + """Checks for any expressions in this list.""" + or: [PlatformProposalFileViewFilter!] + + """Filter by the object’s `path` field.""" + path: StringFilter + + """Filter by the object’s `proposal` relation.""" + proposal: PlatformProposalFilter + + """Filter by the object’s `proposalId` field.""" + proposalId: UUIDFilter + + """Filter by the object’s `reviewerId` field.""" + reviewerId: UUIDFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + + """Filter by the object’s `updatedByPrincipal` field.""" + updatedByPrincipal: UUIDFilter + + """Filter by the object’s `viewedAt` field.""" + viewedAt: DatetimeFilter +} + +"""An input for mutations affecting `PlatformProposalFileView`""" +input PlatformProposalFileViewInput { + """ + Blob the reviewer read, which is what makes the mark survive a rebase or go stale + """ + blobSha: String! + createdAt: Datetime + createdByPrincipal: UUID + id: UUID + + """Path of the file as the diff named it""" + path: String! + + """Proposal the file belongs to""" + proposalId: UUID! + + """Actor who read the file""" + reviewerId: UUID! + updatedAt: Datetime + updatedByPrincipal: UUID + + """When the file was marked read""" + viewedAt: Datetime +} + +"""Methods to use when ordering `PlatformProposalFileView`.""" +enum PlatformProposalFileViewOrderBy { + BLOB_SHA_ASC + BLOB_SHA_DESC + CREATED_AT_ASC + CREATED_AT_DESC + CREATED_BY_PRINCIPAL_ASC + CREATED_BY_PRINCIPAL_DESC + ID_ASC + ID_DESC + NATURAL + PATH_ASC + PATH_DESC + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + PROPOSAL_ID_ASC + PROPOSAL_ID_DESC + REVIEWER_ID_ASC + REVIEWER_ID_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + UPDATED_BY_PRINCIPAL_ASC + UPDATED_BY_PRINCIPAL_DESC + VIEWED_AT_ASC + VIEWED_AT_DESC +} + +""" +Represents an update to a `PlatformProposalFileView`. Fields that are set will be updated. +""" +input PlatformProposalFileViewPatch { + """ + Blob the reviewer read, which is what makes the mark survive a rebase or go stale + """ + blobSha: String + createdAt: Datetime + createdByPrincipal: UUID + id: UUID + + """Path of the file as the diff named it""" + path: String + + """Proposal the file belongs to""" + proposalId: UUID + + """Actor who read the file""" + reviewerId: UUID + updatedAt: Datetime + updatedByPrincipal: UUID + + """When the file was marked read""" + viewedAt: Datetime +} + +""" +A filter to be used against `PlatformProposal` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformProposalFilter { + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter + + """Checks for all expressions in this list.""" + and: [PlatformProposalFilter!] + + """Filter by the object’s `body` field.""" + body: StringTrgmFilter + + """Filter by the object’s `childPlatformProposals` relation.""" + childPlatformProposals: PlatformProposalToManyPlatformProposalFilter + + """`childPlatformProposals` exist.""" + childPlatformProposalsExist: Boolean + + """Filter by the object’s `closedReason` field.""" + closedReason: StringTrgmFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `createdBy` field.""" + createdBy: UUIDFilter + + """Filter by the object’s `createdByPrincipal` field.""" + createdByPrincipal: UUIDFilter + + """Filter by the object’s `decidedAt` field.""" + decidedAt: DatetimeFilter + + """Filter by the object’s `dueAt` field.""" + dueAt: DatetimeFilter + + """Filter by the object’s `embedding` field.""" + embedding: VectorFilter + + """Filter by the object’s `embeddingUpdatedAt` field.""" + embeddingUpdatedAt: DatetimeFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `kind` field.""" + kind: StringTrgmFilter + + """Filter by the object’s `labels` field.""" + labels: StringListFilter + + """Filter by the object’s `mergeCommit` field.""" + mergeCommit: StringTrgmFilter + + """Filter by the object’s `mergeMethod` field.""" + mergeMethod: StringTrgmFilter + + """Filter by the object’s `mergeRequestedAt` field.""" + mergeRequestedAt: DatetimeFilter + + """Filter by the object’s `mergedAt` field.""" + mergedAt: DatetimeFilter + + """Filter by the object’s `metadata` field.""" + metadata: JSONFilter + + """Negates the expression.""" + not: PlatformProposalFilter + + """Checks for any expressions in this list.""" + or: [PlatformProposalFilter!] + + """Filter by the object’s `parent` relation.""" + parent: PlatformProposalFilter + + """A related `parent` exists.""" + parentExists: Boolean + + """Filter by the object’s `parentId` field.""" + parentId: UUIDFilter + + """Filter by the object’s `platformBuildsByProposalId` relation.""" + platformBuildsByProposalId: PlatformProposalToManyPlatformBuildFilter + + """`platformBuildsByProposalId` exist.""" + platformBuildsByProposalIdExist: Boolean + + """ + Filter by the object’s `platformProposalCommentsByProposalId` relation. + """ + platformProposalCommentsByProposalId: PlatformProposalToManyPlatformProposalCommentFilter + + """`platformProposalCommentsByProposalId` exist.""" + platformProposalCommentsByProposalIdExist: Boolean + + """ + Filter by the object’s `platformProposalFileViewsByProposalId` relation. + """ + platformProposalFileViewsByProposalId: PlatformProposalToManyPlatformProposalFileViewFilter + + """`platformProposalFileViewsByProposalId` exist.""" + platformProposalFileViewsByProposalIdExist: Boolean + + """ + Filter by the object’s `platformProposalReactionsByProposalId` relation. + """ + platformProposalReactionsByProposalId: PlatformProposalToManyPlatformProposalReactionFilter + + """`platformProposalReactionsByProposalId` exist.""" + platformProposalReactionsByProposalIdExist: Boolean + + """Filter by the object’s `platformProposalReviewsByProposalId` relation.""" + platformProposalReviewsByProposalId: PlatformProposalToManyPlatformProposalReviewFilter + + """`platformProposalReviewsByProposalId` exist.""" + platformProposalReviewsByProposalIdExist: Boolean + + """ + Filter by the object’s `platformProposalsChunksByPlatformProposalsId` relation. + """ + platformProposalsChunksByPlatformProposalsId: PlatformProposalToManyPlatformProposalsChunkFilter + + """`platformProposalsChunksByPlatformProposalsId` exist.""" + platformProposalsChunksByPlatformProposalsIdExist: Boolean + + """Filter by the object’s `priority` field.""" + priority: BigFloatFilter + + """Filter by the object’s `repository` relation.""" + repository: PlatformRepositoryFilter + + """Filter by the object’s `repositoryId` field.""" + repositoryId: UUIDFilter + + """Filter by the object’s `resolution` field.""" + resolution: StringTrgmFilter + + """Filter by the object’s `search` field.""" + search: FullTextFilter + + """Filter by the object’s `sourceRef` field.""" + sourceRef: StringTrgmFilter + + """Filter by the object’s `status` field.""" + status: StringTrgmFilter + + """Filter by the object’s `targetRef` field.""" + targetRef: StringTrgmFilter + + """Filter by the object’s `title` field.""" + title: StringTrgmFilter + + """TRGM search on the `body` column.""" + trgmBody: TrgmSearchInput + + """TRGM search on the `closed_reason` column.""" + trgmClosedReason: TrgmSearchInput + + """TRGM search on the `kind` column.""" + trgmKind: TrgmSearchInput + + """TRGM search on the `merge_commit` column.""" + trgmMergeCommit: TrgmSearchInput + + """TRGM search on the `merge_method` column.""" + trgmMergeMethod: TrgmSearchInput + + """TRGM search on the `resolution` column.""" + trgmResolution: TrgmSearchInput + + """TRGM search on the `source_ref` column.""" + trgmSourceRef: TrgmSearchInput + + """TRGM search on the `status` column.""" + trgmStatus: TrgmSearchInput + + """TRGM search on the `target_ref` column.""" + trgmTargetRef: TrgmSearchInput + + """TRGM search on the `title` column.""" + trgmTitle: TrgmSearchInput + + """TSV search on the `search` column.""" + tsvSearch: String + + """ + Composite unified search. Provide a search string and it will be dispatched to + all text-compatible search algorithms (tsvector, BM25, pg_trgm) + simultaneously. When the LLM plugin is active, pgvector also participates via + auto-embedding. Rows matching ANY algorithm are returned. All matching score + fields are populated. + """ + unifiedSearch: String + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + + """Filter by the object’s `updatedBy` field.""" + updatedBy: UUIDFilter + + """Filter by the object’s `updatedByPrincipal` field.""" + updatedByPrincipal: UUIDFilter + + """VECTOR search on the `embedding` column.""" + vectorEmbedding: VectorNearbyInput +} + +"""An input for mutations affecting `PlatformProposal`""" +input PlatformProposalInput { + """ + Actor who opened the proposal; NULL only when no human actor was proven + """ + actorId: UUID + + """Description of the proposed change""" + body: String + + """Why this was closed: completed, not_planned, duplicate, superseded""" + closedReason: String + createdAt: Datetime + createdBy: UUID + createdByPrincipal: UUID + + """When the decision was taken (NULL while the question is open)""" + decidedAt: Datetime + + """When this is wanted by (NULL when nothing is promised)""" + dueAt: Datetime + embedding: Vector + + """ + Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. + """ + embeddingText: String + id: UUID + + """ + issue (a report or plan), change (merge one ref into another), discussion (an open question), decision (a question answered) + """ + kind: String + + """ + Labels for filtering and grouping (a board is a query over kind, status and these) + """ + labels: [String] + + """Commit the merge produced""" + mergeCommit: String + + """How to merge when eligible: merge, squash, rebase""" + mergeMethod: String + + """When merge-when-green was requested (NULL when no merge is pending)""" + mergeRequestedAt: Datetime + + """When the merge completed""" + mergedAt: Datetime + + """Review detail (reviewers, labels, checks summary)""" + metadata: JSON + + """ + Proposal this one hangs under: an epic, or the discussion a decision came out of + """ + parentId: UUID + + """ + Manual order within a board column, sparse so an insert between two rows moves one row (NULL when unranked) + """ + priority: BigFloat + + """Repository this proposal is against""" + repositoryId: UUID! + + """ + What was decided (for kind = decision; NULL while the question is open) + """ + resolution: String + + """Ref holding the proposed commits (NULL unless kind is change)""" + sourceRef: String + + """Lifecycle state: draft, open, merged, closed""" + status: String + + """Ref the commits are proposed for (NULL unless kind is change)""" + targetRef: String + + """What this proposal does""" + title: String! + updatedAt: Datetime + updatedBy: UUID + updatedByPrincipal: UUID +} + +"""Methods to use when ordering `PlatformProposal`.""" +enum PlatformProposalOrderBy { + ACTOR_ID_ASC + ACTOR_ID_DESC + BODY_ASC + BODY_DESC + BODY_TRGM_SIMILARITY_ASC + BODY_TRGM_SIMILARITY_DESC + CLOSED_REASON_ASC + CLOSED_REASON_DESC + CLOSED_REASON_TRGM_SIMILARITY_ASC + CLOSED_REASON_TRGM_SIMILARITY_DESC + CREATED_AT_ASC + CREATED_AT_DESC + CREATED_BY_ASC + CREATED_BY_DESC + CREATED_BY_PRINCIPAL_ASC + CREATED_BY_PRINCIPAL_DESC + DECIDED_AT_ASC + DECIDED_AT_DESC + DUE_AT_ASC + DUE_AT_DESC + EMBEDDING_ASC + EMBEDDING_DESC + EMBEDDING_UPDATED_AT_ASC + EMBEDDING_UPDATED_AT_DESC + EMBEDDING_VECTOR_DISTANCE_ASC + EMBEDDING_VECTOR_DISTANCE_DESC + ID_ASC + ID_DESC + KIND_ASC + KIND_DESC + KIND_TRGM_SIMILARITY_ASC + KIND_TRGM_SIMILARITY_DESC + LABELS_ASC + LABELS_DESC + MERGED_AT_ASC + MERGED_AT_DESC + MERGE_COMMIT_ASC + MERGE_COMMIT_DESC + MERGE_COMMIT_TRGM_SIMILARITY_ASC + MERGE_COMMIT_TRGM_SIMILARITY_DESC + MERGE_METHOD_ASC + MERGE_METHOD_DESC + MERGE_METHOD_TRGM_SIMILARITY_ASC + MERGE_METHOD_TRGM_SIMILARITY_DESC + MERGE_REQUESTED_AT_ASC + MERGE_REQUESTED_AT_DESC + METADATA_ASC + METADATA_DESC + NATURAL + PARENT_ID_ASC + PARENT_ID_DESC + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + PRIORITY_ASC + PRIORITY_DESC + REPOSITORY_ID_ASC + REPOSITORY_ID_DESC + RESOLUTION_ASC + RESOLUTION_DESC + RESOLUTION_TRGM_SIMILARITY_ASC + RESOLUTION_TRGM_SIMILARITY_DESC + SEARCH_ASC + SEARCH_DESC + SEARCH_SCORE_ASC + SEARCH_SCORE_DESC + SEARCH_TSV_RANK_ASC + SEARCH_TSV_RANK_DESC + SOURCE_REF_ASC + SOURCE_REF_DESC + SOURCE_REF_TRGM_SIMILARITY_ASC + SOURCE_REF_TRGM_SIMILARITY_DESC + STATUS_ASC + STATUS_DESC + STATUS_TRGM_SIMILARITY_ASC + STATUS_TRGM_SIMILARITY_DESC + TARGET_REF_ASC + TARGET_REF_DESC + TARGET_REF_TRGM_SIMILARITY_ASC + TARGET_REF_TRGM_SIMILARITY_DESC + TITLE_ASC + TITLE_DESC + TITLE_TRGM_SIMILARITY_ASC + TITLE_TRGM_SIMILARITY_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + UPDATED_BY_ASC + UPDATED_BY_DESC + UPDATED_BY_PRINCIPAL_ASC + UPDATED_BY_PRINCIPAL_DESC +} + +""" +Represents an update to a `PlatformProposal`. Fields that are set will be updated. +""" +input PlatformProposalPatch { + """ + Actor who opened the proposal; NULL only when no human actor was proven + """ + actorId: UUID + + """Description of the proposed change""" + body: String + + """Why this was closed: completed, not_planned, duplicate, superseded""" + closedReason: String + createdAt: Datetime + createdBy: UUID + createdByPrincipal: UUID + + """When the decision was taken (NULL while the question is open)""" + decidedAt: Datetime + + """When this is wanted by (NULL when nothing is promised)""" + dueAt: Datetime + embedding: Vector + + """ + Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. + """ + embeddingText: String + id: UUID + + """ + issue (a report or plan), change (merge one ref into another), discussion (an open question), decision (a question answered) + """ + kind: String + + """ + Labels for filtering and grouping (a board is a query over kind, status and these) + """ + labels: [String] + + """Commit the merge produced""" + mergeCommit: String + + """How to merge when eligible: merge, squash, rebase""" + mergeMethod: String + + """When merge-when-green was requested (NULL when no merge is pending)""" + mergeRequestedAt: Datetime + + """When the merge completed""" + mergedAt: Datetime + + """Review detail (reviewers, labels, checks summary)""" + metadata: JSON + + """ + Proposal this one hangs under: an epic, or the discussion a decision came out of + """ + parentId: UUID + + """ + Manual order within a board column, sparse so an insert between two rows moves one row (NULL when unranked) + """ + priority: BigFloat + + """Repository this proposal is against""" + repositoryId: UUID + + """ + What was decided (for kind = decision; NULL while the question is open) + """ + resolution: String + + """Ref holding the proposed commits (NULL unless kind is change)""" + sourceRef: String + + """Lifecycle state: draft, open, merged, closed""" + status: String + + """Ref the commits are proposed for (NULL unless kind is change)""" + targetRef: String + + """What this proposal does""" + title: String + updatedAt: Datetime + updatedBy: UUID + updatedByPrincipal: UUID +} + +"""Emoji reactions to a local proposal or one of its comments""" +type PlatformProposalReaction { + """Actor who reacted""" + actorId: UUID! + + """ + Reads a single `PlatformProposalComment` that is related to this `PlatformProposalReaction`. + """ + comment: PlatformProposalComment + + """Comment being reacted to (NULL for a reaction to the proposal itself)""" + commentId: UUID + createdAt: Datetime + createdByPrincipal: UUID + + """Reaction shortcode (+1, eyes, rocket)""" + emoji: String! + id: UUID! + + """ + Reads a single `PlatformProposal` that is related to this `PlatformProposalReaction`. + """ + proposal: PlatformProposal + + """Proposal the reaction belongs to""" + proposalId: UUID! + updatedAt: Datetime + updatedByPrincipal: UUID +} + +"""A connection to a list of `PlatformProposalReaction` values.""" +type PlatformProposalReactionConnection { + """ + A list of edges which contains the `PlatformProposalReaction` and cursor to aid in pagination. + """ + edges: [PlatformProposalReactionEdge]! + + """A list of `PlatformProposalReaction` objects.""" + nodes: [PlatformProposalReaction]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `PlatformProposalReaction` you could get from the connection. + """ + totalCount: Int! +} + +"""A `PlatformProposalReaction` edge in the connection.""" +type PlatformProposalReactionEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `PlatformProposalReaction` at the end of the edge.""" + node: PlatformProposalReaction +} + +""" +A filter to be used against `PlatformProposalReaction` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformProposalReactionFilter { + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter + + """Checks for all expressions in this list.""" + and: [PlatformProposalReactionFilter!] + + """Filter by the object’s `comment` relation.""" + comment: PlatformProposalCommentFilter + + """A related `comment` exists.""" + commentExists: Boolean + + """Filter by the object’s `commentId` field.""" + commentId: UUIDFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `createdByPrincipal` field.""" + createdByPrincipal: UUIDFilter + + """Filter by the object’s `emoji` field.""" + emoji: StringFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Negates the expression.""" + not: PlatformProposalReactionFilter + + """Checks for any expressions in this list.""" + or: [PlatformProposalReactionFilter!] + + """Filter by the object’s `proposal` relation.""" + proposal: PlatformProposalFilter + + """Filter by the object’s `proposalId` field.""" + proposalId: UUIDFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + + """Filter by the object’s `updatedByPrincipal` field.""" + updatedByPrincipal: UUIDFilter +} + +"""An input for mutations affecting `PlatformProposalReaction`""" +input PlatformProposalReactionInput { + """Actor who reacted""" + actorId: UUID! + + """Comment being reacted to (NULL for a reaction to the proposal itself)""" + commentId: UUID + createdAt: Datetime + createdByPrincipal: UUID + + """Reaction shortcode (+1, eyes, rocket)""" + emoji: String! + id: UUID + + """Proposal the reaction belongs to""" + proposalId: UUID! + updatedAt: Datetime + updatedByPrincipal: UUID +} + +"""Methods to use when ordering `PlatformProposalReaction`.""" +enum PlatformProposalReactionOrderBy { + ACTOR_ID_ASC + ACTOR_ID_DESC + COMMENT_ID_ASC + COMMENT_ID_DESC + CREATED_AT_ASC + CREATED_AT_DESC + CREATED_BY_PRINCIPAL_ASC + CREATED_BY_PRINCIPAL_DESC + EMOJI_ASC + EMOJI_DESC + ID_ASC + ID_DESC + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + PROPOSAL_ID_ASC + PROPOSAL_ID_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + UPDATED_BY_PRINCIPAL_ASC + UPDATED_BY_PRINCIPAL_DESC +} + +""" +Represents an update to a `PlatformProposalReaction`. Fields that are set will be updated. +""" +input PlatformProposalReactionPatch { + """Actor who reacted""" + actorId: UUID + + """Comment being reacted to (NULL for a reaction to the proposal itself)""" + commentId: UUID + createdAt: Datetime + createdByPrincipal: UUID + + """Reaction shortcode (+1, eyes, rocket)""" + emoji: String + id: UUID + + """Proposal the reaction belongs to""" + proposalId: UUID + updatedAt: Datetime + updatedByPrincipal: UUID +} + +"""Review verdicts on a proposal, each pinned to the commit reviewed""" +type PlatformProposalReview { + """Summary the reviewer submitted with the verdict""" + body: String + + """ + TRGM similarity when searching `body`. Returns null when no trgm search filter is active. + """ + bodyTrgmSimilarity: Float + + """Head commit this verdict was submitted against""" + commitSha: String! + + """ + TRGM similarity when searching `commitSha`. Returns null when no trgm search filter is active. + """ + commitShaTrgmSimilarity: Float + createdAt: Datetime + createdByPrincipal: UUID + id: UUID! + + """ + Reads a single `PlatformProposal` that is related to this `PlatformProposalReview`. + """ + proposal: PlatformProposal + + """Proposal being reviewed""" + proposalId: UUID! + + """Actor who submitted the verdict""" + reviewerId: UUID! + search: FullText + + """ + Composite search relevance score (0..1, higher = more relevant). Computed using Reciprocal Rank Fusion (RRF) across all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. + """ + searchScore: Float + + """ + TSV rank when searching `search`. Returns null when no tsv search filter is active. + """ + searchTsvRank: Float + + """When the verdict was submitted""" + submittedAt: Datetime! + updatedAt: Datetime + updatedByPrincipal: UUID + + """approve, reject or comment (a review that gates nothing)""" + verdict: String! + + """ + TRGM similarity when searching `verdict`. Returns null when no trgm search filter is active. + """ + verdictTrgmSimilarity: Float +} + +"""A connection to a list of `PlatformProposalReview` values.""" +type PlatformProposalReviewConnection { + """ + A list of edges which contains the `PlatformProposalReview` and cursor to aid in pagination. + """ + edges: [PlatformProposalReviewEdge]! + + """A list of `PlatformProposalReview` objects.""" + nodes: [PlatformProposalReview]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `PlatformProposalReview` you could get from the connection. + """ + totalCount: Int! +} + +"""A `PlatformProposalReview` edge in the connection.""" +type PlatformProposalReviewEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `PlatformProposalReview` at the end of the edge.""" + node: PlatformProposalReview +} + +""" +A filter to be used against `PlatformProposalReview` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformProposalReviewFilter { + """Checks for all expressions in this list.""" + and: [PlatformProposalReviewFilter!] + + """Filter by the object’s `body` field.""" + body: StringTrgmFilter + + """Filter by the object’s `commitSha` field.""" + commitSha: StringTrgmFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `createdByPrincipal` field.""" + createdByPrincipal: UUIDFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Negates the expression.""" + not: PlatformProposalReviewFilter + + """Checks for any expressions in this list.""" + or: [PlatformProposalReviewFilter!] + + """Filter by the object’s `proposal` relation.""" + proposal: PlatformProposalFilter + + """Filter by the object’s `proposalId` field.""" + proposalId: UUIDFilter + + """Filter by the object’s `reviewerId` field.""" + reviewerId: UUIDFilter + + """Filter by the object’s `search` field.""" + search: FullTextFilter + + """Filter by the object’s `submittedAt` field.""" + submittedAt: DatetimeFilter + + """TRGM search on the `body` column.""" + trgmBody: TrgmSearchInput + + """TRGM search on the `commit_sha` column.""" + trgmCommitSha: TrgmSearchInput + + """TRGM search on the `verdict` column.""" + trgmVerdict: TrgmSearchInput + + """TSV search on the `search` column.""" + tsvSearch: String + + """ + Composite unified search. Provide a search string and it will be dispatched to + all text-compatible search algorithms (tsvector, BM25, pg_trgm) + simultaneously. When the LLM plugin is active, pgvector also participates via + auto-embedding. Rows matching ANY algorithm are returned. All matching score + fields are populated. + """ + unifiedSearch: String + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + + """Filter by the object’s `updatedByPrincipal` field.""" + updatedByPrincipal: UUIDFilter + + """Filter by the object’s `verdict` field.""" + verdict: StringTrgmFilter +} + +"""An input for mutations affecting `PlatformProposalReview`""" +input PlatformProposalReviewInput { + """Summary the reviewer submitted with the verdict""" + body: String + + """Head commit this verdict was submitted against""" + commitSha: String! + createdAt: Datetime + createdByPrincipal: UUID + id: UUID + + """Proposal being reviewed""" + proposalId: UUID! + + """Actor who submitted the verdict""" + reviewerId: UUID! + + """When the verdict was submitted""" + submittedAt: Datetime + updatedAt: Datetime + updatedByPrincipal: UUID + + """approve, reject or comment (a review that gates nothing)""" + verdict: String! +} + +"""Methods to use when ordering `PlatformProposalReview`.""" +enum PlatformProposalReviewOrderBy { + BODY_ASC + BODY_DESC + BODY_TRGM_SIMILARITY_ASC + BODY_TRGM_SIMILARITY_DESC + COMMIT_SHA_ASC + COMMIT_SHA_DESC + COMMIT_SHA_TRGM_SIMILARITY_ASC + COMMIT_SHA_TRGM_SIMILARITY_DESC + CREATED_AT_ASC + CREATED_AT_DESC + CREATED_BY_PRINCIPAL_ASC + CREATED_BY_PRINCIPAL_DESC + ID_ASC + ID_DESC + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + PROPOSAL_ID_ASC + PROPOSAL_ID_DESC + REVIEWER_ID_ASC + REVIEWER_ID_DESC + SEARCH_ASC + SEARCH_DESC + SEARCH_SCORE_ASC + SEARCH_SCORE_DESC + SEARCH_TSV_RANK_ASC + SEARCH_TSV_RANK_DESC + SUBMITTED_AT_ASC + SUBMITTED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + UPDATED_BY_PRINCIPAL_ASC + UPDATED_BY_PRINCIPAL_DESC + VERDICT_ASC + VERDICT_DESC + VERDICT_TRGM_SIMILARITY_ASC + VERDICT_TRGM_SIMILARITY_DESC +} + +""" +Represents an update to a `PlatformProposalReview`. Fields that are set will be updated. +""" +input PlatformProposalReviewPatch { + """Summary the reviewer submitted with the verdict""" + body: String + + """Head commit this verdict was submitted against""" + commitSha: String + createdAt: Datetime + createdByPrincipal: UUID + id: UUID + + """Proposal being reviewed""" + proposalId: UUID + + """Actor who submitted the verdict""" + reviewerId: UUID + + """When the verdict was submitted""" + submittedAt: Datetime + updatedAt: Datetime + updatedByPrincipal: UUID + + """approve, reject or comment (a review that gates nothing)""" + verdict: String +} + +""" +A filter to be used against many `PlatformBuild` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformProposalToManyPlatformBuildFilter { + """Filters to entities where every related entity matches.""" + every: PlatformBuildFilter + + """Filters to entities where no related entity matches.""" + none: PlatformBuildFilter + + """Filters to entities where at least one related entity matches.""" + some: PlatformBuildFilter +} + +""" +A filter to be used against many `PlatformProposalComment` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformProposalToManyPlatformProposalCommentFilter { + """Filters to entities where every related entity matches.""" + every: PlatformProposalCommentFilter + + """Filters to entities where no related entity matches.""" + none: PlatformProposalCommentFilter + + """Filters to entities where at least one related entity matches.""" + some: PlatformProposalCommentFilter +} + +""" +A filter to be used against many `PlatformProposalFileView` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformProposalToManyPlatformProposalFileViewFilter { + """Filters to entities where every related entity matches.""" + every: PlatformProposalFileViewFilter + + """Filters to entities where no related entity matches.""" + none: PlatformProposalFileViewFilter + + """Filters to entities where at least one related entity matches.""" + some: PlatformProposalFileViewFilter +} + +""" +A filter to be used against many `PlatformProposal` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformProposalToManyPlatformProposalFilter { + """Filters to entities where every related entity matches.""" + every: PlatformProposalFilter + + """Filters to entities where no related entity matches.""" + none: PlatformProposalFilter + + """Filters to entities where at least one related entity matches.""" + some: PlatformProposalFilter +} + +""" +A filter to be used against many `PlatformProposalReaction` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformProposalToManyPlatformProposalReactionFilter { + """Filters to entities where every related entity matches.""" + every: PlatformProposalReactionFilter + + """Filters to entities where no related entity matches.""" + none: PlatformProposalReactionFilter + + """Filters to entities where at least one related entity matches.""" + some: PlatformProposalReactionFilter +} + +""" +A filter to be used against many `PlatformProposalReview` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformProposalToManyPlatformProposalReviewFilter { + """Filters to entities where every related entity matches.""" + every: PlatformProposalReviewFilter + + """Filters to entities where no related entity matches.""" + none: PlatformProposalReviewFilter + + """Filters to entities where at least one related entity matches.""" + some: PlatformProposalReviewFilter +} + +""" +A filter to be used against many `PlatformProposalsChunk` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformProposalToManyPlatformProposalsChunkFilter { + """Filters to entities where every related entity matches.""" + every: PlatformProposalsChunkFilter + + """Filters to entities where no related entity matches.""" + none: PlatformProposalsChunkFilter + + """Filters to entities where at least one related entity matches.""" + some: PlatformProposalsChunkFilter +} + +type PlatformProposalsChunk { + """ + Policy-required field derived from source table (used by AuthzComposite) + """ + actorId: UUID + body: String! + chunkIndex: Int! + createdAt: Datetime + embedding: Vector + + """ + VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. + """ + embeddingVectorDistance: Float + id: UUID! + metadata: JSON + + """ + Reads a single `PlatformProposal` that is related to this `PlatformProposalsChunk`. + """ + platformProposals: PlatformProposal + platformProposalsId: UUID! + + """ + Composite search relevance score (0..1, higher = more relevant). Computed using Reciprocal Rank Fusion (RRF) across all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. + """ + searchScore: Float + updatedAt: Datetime +} + +"""A connection to a list of `PlatformProposalsChunk` values.""" +type PlatformProposalsChunkConnection { + """ + A list of edges which contains the `PlatformProposalsChunk` and cursor to aid in pagination. + """ + edges: [PlatformProposalsChunkEdge]! + + """A list of `PlatformProposalsChunk` objects.""" + nodes: [PlatformProposalsChunk]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `PlatformProposalsChunk` you could get from the connection. + """ + totalCount: Int! +} + +"""A `PlatformProposalsChunk` edge in the connection.""" +type PlatformProposalsChunkEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `PlatformProposalsChunk` at the end of the edge.""" + node: PlatformProposalsChunk +} + +""" +A filter to be used against `PlatformProposalsChunk` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformProposalsChunkFilter { + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter + + """Checks for all expressions in this list.""" + and: [PlatformProposalsChunkFilter!] + + """Filter by the object’s `body` field.""" + body: StringFilter + + """Filter by the object’s `chunkIndex` field.""" + chunkIndex: IntFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `embedding` field.""" + embedding: VectorFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `metadata` field.""" + metadata: JSONFilter + + """Negates the expression.""" + not: PlatformProposalsChunkFilter + + """Checks for any expressions in this list.""" + or: [PlatformProposalsChunkFilter!] + + """Filter by the object’s `platformProposals` relation.""" + platformProposals: PlatformProposalFilter + + """Filter by the object’s `platformProposalsId` field.""" + platformProposalsId: UUIDFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + + """VECTOR search on the `embedding` column.""" + vectorEmbedding: VectorNearbyInput +} + +"""An input for mutations affecting `PlatformProposalsChunk`""" +input PlatformProposalsChunkInput { + """ + Policy-required field derived from source table (used by AuthzComposite) + """ + actorId: UUID + body: String! + chunkIndex: Int + createdAt: Datetime + embedding: Vector - """Updates a single `FunctionGraphRef` using a unique key and a patch.""" - updateFunctionGraphRef( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateFunctionGraphRefInput! - ): UpdateFunctionGraphRefPayload + """ + Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. + """ + embeddingText: String + id: UUID + metadata: JSON + platformProposalsId: UUID! + updatedAt: Datetime +} - """Updates a single `FunctionGraphStore` using a unique key and a patch.""" - updateFunctionGraphStore( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateFunctionGraphStoreInput! - ): UpdateFunctionGraphStorePayload +"""Methods to use when ordering `PlatformProposalsChunk`.""" +enum PlatformProposalsChunkOrderBy { + ACTOR_ID_ASC + ACTOR_ID_DESC + BODY_ASC + BODY_DESC + CHUNK_INDEX_ASC + CHUNK_INDEX_DESC + CREATED_AT_ASC + CREATED_AT_DESC + EMBEDDING_ASC + EMBEDDING_DESC + EMBEDDING_VECTOR_DISTANCE_ASC + EMBEDDING_VECTOR_DISTANCE_DESC + ID_ASC + ID_DESC + METADATA_ASC + METADATA_DESC + NATURAL + PLATFORM_PROPOSALS_ID_ASC + PLATFORM_PROPOSALS_ID_DESC + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + SEARCH_SCORE_ASC + SEARCH_SCORE_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC +} - """Updates a single `FunctionInvocation` using a unique key and a patch.""" - updateFunctionInvocation( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateFunctionInvocationInput! - ): UpdateFunctionInvocationPayload +""" +Represents an update to a `PlatformProposalsChunk`. Fields that are set will be updated. +""" +input PlatformProposalsChunkPatch { + """ + Policy-required field derived from source table (used by AuthzComposite) + """ + actorId: UUID + body: String + chunkIndex: Int + createdAt: Datetime + embedding: Vector """ - Updates a single `FunctionInvocationAttempt` using a unique key and a patch. + Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. """ - updateFunctionInvocationAttempt( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateFunctionInvocationAttemptInput! - ): UpdateFunctionInvocationAttemptPayload + embeddingText: String + id: UUID + metadata: JSON + platformProposalsId: UUID + updatedAt: Datetime +} - """Updates a single `InfraCommit` using a unique key and a patch.""" - updateInfraCommit( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateInfraCommitInput! - ): UpdateInfraCommitPayload +""" +Artifact registries this scope pulls from or pushes to (OCI images, npm packages), platform-run or external +""" +type PlatformRegistry { + """How a client authenticates to this registry (none, basic, token)""" + authMode: String! - """Updates a single `InfraObject` using a unique key and a patch.""" - updateInfraObject( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateInfraObjectInput! - ): UpdateInfraObjectPayload + """ + Path prefix within the host (npm scope, OCI project); NULL = the host root + """ + basePath: String + createdAt: Datetime + createdByPrincipal: UUID + + """ + Name of the infra secret carrying this registry's credential (NULL when auth_mode = none) + """ + credentialSecretName: String + + """ + Registry host, without a scheme (e.g. ghcr.io, registry.npmjs.org); required unless role is source, where it is the optional requested host and is stamped with the provisioned one + """ + host: String + id: UUID! + + """ + Reads a single `PlatformResourceInstallation` that is related to this `PlatformRegistry`. + """ + installation: PlatformResourceInstallation + + """ + Resource installation running this registry (NULL for an external registry) + """ + installationId: UUID + + """Whether this registry is published for use by any scope""" + isPublished: Boolean! + + """Artifact ecosystem this registry serves (oci, npm)""" + kind: String! + + """Labels for selecting registries (lane, region, mirror role)""" + labels: JSON! + + """ + Message from the last failed provision/deprovision attempt (NULL when healthy) + """ + lastError: String + + """Freeform metadata (mirror-of pointer, rate limits, contact)""" + metadata: JSON + + """Human-readable registry name (e.g. github-container-registry)""" + name: String! + + """Whether this registry is reserved for platform-internal use""" + platformOnly: Boolean! + + """ + Reads and enables pagination through a set of `PlatformRegistryBinding`. + """ + platformRegistryBindingsByRegistryId( + """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 - """Updates a single `InfraRef` using a unique key and a patch.""" - updateInfraRef( """ - 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: UpdateInfraRefInput! - ): UpdateInfraRefPayload + offset: Int + + """The method to use when ordering `PlatformRegistryBinding`.""" + orderBy: [PlatformRegistryBindingOrderBy!] = [PRIMARY_KEY_ASC] - """Updates a single `InfraStore` using a unique key and a patch.""" - updateInfraStore( """ - 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: UpdateInfraStoreInput! - ): UpdateInfraStorePayload + where: PlatformRegistryBindingFilter + ): PlatformRegistryBindingConnection! + + """Reads and enables pagination through a set of `PlatformRegistryGrant`.""" + platformRegistryGrantsByRegistryId( + """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 - """Updates a single `IntegrationProvider` using a unique key and a patch.""" - updateIntegrationProvider( """ - 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: UpdateIntegrationProviderInput! - ): UpdateIntegrationProviderPayload + offset: Int + + """The method to use when ordering `PlatformRegistryGrant`.""" + orderBy: [PlatformRegistryGrantOrderBy!] = [PRIMARY_KEY_ASC] - """Updates a single `Namespace` using a unique key and a patch.""" - updateNamespace( """ - 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: UpdateNamespaceInput! - ): UpdateNamespacePayload + where: PlatformRegistryGrantFilter + ): PlatformRegistryGrantConnection! + + """ + Role in this scope: source (the push target), cache (read-through mirror), external (pull only) + """ + role: String! + + """ + Provisioning state (pending, provisioning, active, failed); rows the platform does not create are active on insert + """ + status: String! + updatedAt: Datetime + updatedByPrincipal: UUID +} + +""" +Binds a namespace to an installed container registry for a lane (realm) — the reconciler projects that registry's credentials into the namespace as an image pull secret +""" +type PlatformRegistryBinding { + createdAt: Datetime + createdBy: UUID + createdByPrincipal: UUID + id: UUID! + + """Reconciler detail (last error, projection timestamps)""" + metadata: JSON + + """ + Reads a single `PlatformNamespace` that is related to this `PlatformRegistryBinding`. + """ + namespace: PlatformNamespace + + """Namespace the registry credentials are projected into""" + namespaceId: UUID! + + """ + Registry credential version last projected into the namespace (NULL = never projected) + """ + observedCredentialVersion: String + + """Name of the image pull secret the reconciler writes into the namespace""" + pullSecretName: String! + + """Lane this binding applies to (NULL = the scope's default lane)""" + realm: String + + """ + Reads a single `PlatformRegistry` that is related to this `PlatformRegistryBinding`. + """ + registry: PlatformRegistry + + """ + Registry host this binding's credentials authenticate to (what kubelet matches image references against) + """ + registryHost: String! + + """ + Registry endpoint (in this scope's registry catalog) the namespace pulls from + """ + registryId: UUID! + + """Projection state of the pull secret: pending, active, failed""" + status: String! + updatedAt: Datetime + updatedBy: UUID + updatedByPrincipal: UUID +} + +"""A connection to a list of `PlatformRegistryBinding` values.""" +type PlatformRegistryBindingConnection { + """ + A list of edges which contains the `PlatformRegistryBinding` and cursor to aid in pagination. + """ + edges: [PlatformRegistryBindingEdge]! + + """A list of `PlatformRegistryBinding` objects.""" + nodes: [PlatformRegistryBinding]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `PlatformRegistryBinding` you could get from the connection. + """ + totalCount: Int! +} + +"""A `PlatformRegistryBinding` edge in the connection.""" +type PlatformRegistryBindingEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `PlatformRegistryBinding` at the end of the edge.""" + node: PlatformRegistryBinding +} + +""" +A filter to be used against `PlatformRegistryBinding` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformRegistryBindingFilter { + """Checks for all expressions in this list.""" + and: [PlatformRegistryBindingFilter!] + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `createdBy` field.""" + createdBy: UUIDFilter + + """Filter by the object’s `createdByPrincipal` field.""" + createdByPrincipal: UUIDFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `metadata` field.""" + metadata: JSONFilter + + """Filter by the object’s `namespace` relation.""" + namespace: PlatformNamespaceFilter + + """Filter by the object’s `namespaceId` field.""" + namespaceId: UUIDFilter + + """Negates the expression.""" + not: PlatformRegistryBindingFilter + + """Filter by the object’s `observedCredentialVersion` field.""" + observedCredentialVersion: StringFilter + + """Checks for any expressions in this list.""" + or: [PlatformRegistryBindingFilter!] + + """Filter by the object’s `pullSecretName` field.""" + pullSecretName: StringFilter + + """Filter by the object’s `realm` field.""" + realm: StringFilter + + """Filter by the object’s `registry` relation.""" + registry: PlatformRegistryFilter + + """Filter by the object’s `registryHost` field.""" + registryHost: StringFilter + + """Filter by the object’s `registryId` field.""" + registryId: UUIDFilter + + """Filter by the object’s `status` field.""" + status: StringFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + + """Filter by the object’s `updatedBy` field.""" + updatedBy: UUIDFilter + + """Filter by the object’s `updatedByPrincipal` field.""" + updatedByPrincipal: UUIDFilter +} + +"""An input for mutations affecting `PlatformRegistryBinding`""" +input PlatformRegistryBindingInput { + createdAt: Datetime + createdBy: UUID + createdByPrincipal: UUID + id: UUID + + """Reconciler detail (last error, projection timestamps)""" + metadata: JSON + + """Namespace the registry credentials are projected into""" + namespaceId: UUID! + + """ + Registry credential version last projected into the namespace (NULL = never projected) + """ + observedCredentialVersion: String + + """Name of the image pull secret the reconciler writes into the namespace""" + pullSecretName: String + + """Lane this binding applies to (NULL = the scope's default lane)""" + realm: String + + """ + Registry host this binding's credentials authenticate to (what kubelet matches image references against) + """ + registryHost: String! + + """ + Registry endpoint (in this scope's registry catalog) the namespace pulls from + """ + registryId: UUID! + + """Projection state of the pull secret: pending, active, failed""" + status: String + updatedAt: Datetime + updatedBy: UUID + updatedByPrincipal: UUID +} + +"""Methods to use when ordering `PlatformRegistryBinding`.""" +enum PlatformRegistryBindingOrderBy { + CREATED_AT_ASC + CREATED_AT_DESC + CREATED_BY_ASC + CREATED_BY_DESC + CREATED_BY_PRINCIPAL_ASC + CREATED_BY_PRINCIPAL_DESC + ID_ASC + ID_DESC + METADATA_ASC + METADATA_DESC + NAMESPACE_ID_ASC + NAMESPACE_ID_DESC + NATURAL + OBSERVED_CREDENTIAL_VERSION_ASC + OBSERVED_CREDENTIAL_VERSION_DESC + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + PULL_SECRET_NAME_ASC + PULL_SECRET_NAME_DESC + REALM_ASC + REALM_DESC + REGISTRY_HOST_ASC + REGISTRY_HOST_DESC + REGISTRY_ID_ASC + REGISTRY_ID_DESC + STATUS_ASC + STATUS_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + UPDATED_BY_ASC + UPDATED_BY_DESC + UPDATED_BY_PRINCIPAL_ASC + UPDATED_BY_PRINCIPAL_DESC +} + +""" +Represents an update to a `PlatformRegistryBinding`. Fields that are set will be updated. +""" +input PlatformRegistryBindingPatch { + createdAt: Datetime + createdBy: UUID + createdByPrincipal: UUID + id: UUID + + """Reconciler detail (last error, projection timestamps)""" + metadata: JSON + + """Namespace the registry credentials are projected into""" + namespaceId: UUID + + """ + Registry credential version last projected into the namespace (NULL = never projected) + """ + observedCredentialVersion: String + + """Name of the image pull secret the reconciler writes into the namespace""" + pullSecretName: String + + """Lane this binding applies to (NULL = the scope's default lane)""" + realm: String + + """ + Registry host this binding's credentials authenticate to (what kubelet matches image references against) + """ + registryHost: String + + """ + Registry endpoint (in this scope's registry catalog) the namespace pulls from + """ + registryId: UUID + + """Projection state of the pull secret: pending, active, failed""" + status: String + updatedAt: Datetime + updatedBy: UUID + updatedByPrincipal: UUID +} + +"""A connection to a list of `PlatformRegistry` values.""" +type PlatformRegistryConnection { + """ + A list of edges which contains the `PlatformRegistry` and cursor to aid in pagination. + """ + edges: [PlatformRegistryEdge]! + + """A list of `PlatformRegistry` objects.""" + nodes: [PlatformRegistry]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `PlatformRegistry` you could get from the connection. + """ + totalCount: Int! +} + +"""A `PlatformRegistry` edge in the connection.""" +type PlatformRegistryEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `PlatformRegistry` at the end of the edge.""" + node: PlatformRegistry +} + +""" +A filter to be used against `PlatformRegistry` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformRegistryFilter { + """Checks for all expressions in this list.""" + and: [PlatformRegistryFilter!] + + """Filter by the object’s `authMode` field.""" + authMode: StringFilter + + """Filter by the object’s `basePath` field.""" + basePath: StringFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `createdByPrincipal` field.""" + createdByPrincipal: UUIDFilter + + """Filter by the object’s `credentialSecretName` field.""" + credentialSecretName: StringFilter + + """Filter by the object’s `host` field.""" + host: StringFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `installation` relation.""" + installation: PlatformResourceInstallationFilter + + """A related `installation` exists.""" + installationExists: Boolean + + """Filter by the object’s `installationId` field.""" + installationId: UUIDFilter + + """Filter by the object’s `isPublished` field.""" + isPublished: BooleanFilter + + """Filter by the object’s `kind` field.""" + kind: StringFilter + + """Filter by the object’s `labels` field.""" + labels: JSONFilter + + """Filter by the object’s `lastError` field.""" + lastError: StringFilter + + """Filter by the object’s `metadata` field.""" + metadata: JSONFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """Negates the expression.""" + not: PlatformRegistryFilter + + """Checks for any expressions in this list.""" + or: [PlatformRegistryFilter!] + + """Filter by the object’s `platformOnly` field.""" + platformOnly: BooleanFilter + + """ + Filter by the object’s `platformRegistryBindingsByRegistryId` relation. + """ + platformRegistryBindingsByRegistryId: PlatformRegistryToManyPlatformRegistryBindingFilter + + """`platformRegistryBindingsByRegistryId` exist.""" + platformRegistryBindingsByRegistryIdExist: Boolean + + """Filter by the object’s `platformRegistryGrantsByRegistryId` relation.""" + platformRegistryGrantsByRegistryId: PlatformRegistryToManyPlatformRegistryGrantFilter + + """`platformRegistryGrantsByRegistryId` exist.""" + platformRegistryGrantsByRegistryIdExist: Boolean + + """Filter by the object’s `role` field.""" + role: StringFilter + + """Filter by the object’s `status` field.""" + status: StringFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + + """Filter by the object’s `updatedByPrincipal` field.""" + updatedByPrincipal: UUIDFilter +} + +"""Grants that make a registry usable by one scope""" +type PlatformRegistryGrant { + """Endpoint actions this grant allows (read, write)""" + actions: [String]! + createdAt: Datetime + createdByPrincipal: UUID + + """When this grant stops applying (NULL never expires)""" + expiresAt: Datetime + + """User who issued this grant""" + grantedBy: UUID + + """Scope key of the grantee (a database_id or an entity_id)""" + granteeKey: UUID! + + """Scope tier of the grantee (database, org, app, platform)""" + granteeScope: String! + id: UUID! + + """ + Reads a single `PlatformRegistry` that is related to this `PlatformRegistryGrant`. + """ + registry: PlatformRegistry + + """Registry this grant applies to""" + registryId: UUID! + updatedAt: Datetime + updatedByPrincipal: UUID +} + +"""A connection to a list of `PlatformRegistryGrant` values.""" +type PlatformRegistryGrantConnection { + """ + A list of edges which contains the `PlatformRegistryGrant` and cursor to aid in pagination. + """ + edges: [PlatformRegistryGrantEdge]! + + """A list of `PlatformRegistryGrant` objects.""" + nodes: [PlatformRegistryGrant]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `PlatformRegistryGrant` you could get from the connection. + """ + totalCount: Int! +} + +"""A `PlatformRegistryGrant` edge in the connection.""" +type PlatformRegistryGrantEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `PlatformRegistryGrant` at the end of the edge.""" + node: PlatformRegistryGrant +} + +""" +A filter to be used against `PlatformRegistryGrant` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformRegistryGrantFilter { + """Filter by the object’s `actions` field.""" + actions: StringListFilter + + """Checks for all expressions in this list.""" + and: [PlatformRegistryGrantFilter!] + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `createdByPrincipal` field.""" + createdByPrincipal: UUIDFilter + + """Filter by the object’s `expiresAt` field.""" + expiresAt: DatetimeFilter + + """Filter by the object’s `grantedBy` field.""" + grantedBy: UUIDFilter + + """Filter by the object’s `granteeKey` field.""" + granteeKey: UUIDFilter + + """Filter by the object’s `granteeScope` field.""" + granteeScope: StringFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Negates the expression.""" + not: PlatformRegistryGrantFilter + + """Checks for any expressions in this list.""" + or: [PlatformRegistryGrantFilter!] + + """Filter by the object’s `registry` relation.""" + registry: PlatformRegistryFilter + + """Filter by the object’s `registryId` field.""" + registryId: UUIDFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + + """Filter by the object’s `updatedByPrincipal` field.""" + updatedByPrincipal: UUIDFilter +} + +"""An input for mutations affecting `PlatformRegistryGrant`""" +input PlatformRegistryGrantInput { + """Endpoint actions this grant allows (read, write)""" + actions: [String] + createdAt: Datetime + createdByPrincipal: UUID + + """When this grant stops applying (NULL never expires)""" + expiresAt: Datetime + + """User who issued this grant""" + grantedBy: UUID + + """Scope key of the grantee (a database_id or an entity_id)""" + granteeKey: UUID! + + """Scope tier of the grantee (database, org, app, platform)""" + granteeScope: String! + id: UUID + + """Registry this grant applies to""" + registryId: UUID! + updatedAt: Datetime + updatedByPrincipal: UUID +} + +"""Methods to use when ordering `PlatformRegistryGrant`.""" +enum PlatformRegistryGrantOrderBy { + ACTIONS_ASC + ACTIONS_DESC + CREATED_AT_ASC + CREATED_AT_DESC + CREATED_BY_PRINCIPAL_ASC + CREATED_BY_PRINCIPAL_DESC + EXPIRES_AT_ASC + EXPIRES_AT_DESC + GRANTED_BY_ASC + GRANTED_BY_DESC + GRANTEE_KEY_ASC + GRANTEE_KEY_DESC + GRANTEE_SCOPE_ASC + GRANTEE_SCOPE_DESC + ID_ASC + ID_DESC + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + REGISTRY_ID_ASC + REGISTRY_ID_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + UPDATED_BY_PRINCIPAL_ASC + UPDATED_BY_PRINCIPAL_DESC +} + +""" +Represents an update to a `PlatformRegistryGrant`. Fields that are set will be updated. +""" +input PlatformRegistryGrantPatch { + """Endpoint actions this grant allows (read, write)""" + actions: [String] + createdAt: Datetime + createdByPrincipal: UUID + + """When this grant stops applying (NULL never expires)""" + expiresAt: Datetime + + """User who issued this grant""" + grantedBy: UUID + + """Scope key of the grantee (a database_id or an entity_id)""" + granteeKey: UUID - """Updates a single `NamespaceEvent` using a unique key and a patch.""" - updateNamespaceEvent( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateNamespaceEventInput! - ): UpdateNamespaceEventPayload + """Scope tier of the grantee (database, org, app, platform)""" + granteeScope: String + id: UUID - """ - Updates a single `PlatformFunctionApiBinding` using a unique key and a patch. - """ - updatePlatformFunctionApiBinding( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdatePlatformFunctionApiBindingInput! - ): UpdatePlatformFunctionApiBindingPayload + """Registry this grant applies to""" + registryId: UUID + updatedAt: Datetime + updatedByPrincipal: UUID +} - """ - Updates a single `PlatformFunctionCapabilityBinding` using a unique key and a patch. - """ - updatePlatformFunctionCapabilityBinding( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdatePlatformFunctionCapabilityBindingInput! - ): UpdatePlatformFunctionCapabilityBindingPayload +"""An input for mutations affecting `PlatformRegistry`""" +input PlatformRegistryInput { + """How a client authenticates to this registry (none, basic, token)""" + authMode: String """ - Updates a single `PlatformFunctionDefinition` using a unique key and a patch. + Path prefix within the host (npm scope, OCI project); NULL = the host root """ - updatePlatformFunctionDefinition( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdatePlatformFunctionDefinitionInput! - ): UpdatePlatformFunctionDefinitionPayload + basePath: String + createdAt: Datetime + createdByPrincipal: UUID """ - Updates a single `PlatformFunctionDeployment` using a unique key and a patch. + Name of the infra secret carrying this registry's credential (NULL when auth_mode = none) """ - updatePlatformFunctionDeployment( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdatePlatformFunctionDeploymentInput! - ): UpdatePlatformFunctionDeploymentPayload + credentialSecretName: String """ - Updates a single `PlatformFunctionDeploymentEvent` using a unique key and a patch. + Registry host, without a scheme (e.g. ghcr.io, registry.npmjs.org); required unless role is source, where it is the optional requested host and is stamped with the provisioned one """ - updatePlatformFunctionDeploymentEvent( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdatePlatformFunctionDeploymentEventInput! - ): UpdatePlatformFunctionDeploymentEventPayload + host: String + id: UUID """ - Updates a single `PlatformFunctionExecutionLog` using a unique key and a patch. + Resource installation running this registry (NULL for an external registry) """ - updatePlatformFunctionExecutionLog( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdatePlatformFunctionExecutionLogInput! - ): UpdatePlatformFunctionExecutionLogPayload + installationId: UUID - """ - Updates a single `PlatformFunctionInvocation` using a unique key and a patch. - """ - updatePlatformFunctionInvocation( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdatePlatformFunctionInvocationInput! - ): UpdatePlatformFunctionInvocationPayload + """Whether this registry is published for use by any scope""" + isPublished: Boolean + + """Artifact ecosystem this registry serves (oci, npm)""" + kind: String! + + """Labels for selecting registries (lane, region, mirror role)""" + labels: JSON """ - Updates a single `PlatformFunctionInvocationAttempt` using a unique key and a patch. + Message from the last failed provision/deprovision attempt (NULL when healthy) """ - updatePlatformFunctionInvocationAttempt( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdatePlatformFunctionInvocationAttemptInput! - ): UpdatePlatformFunctionInvocationAttemptPayload - - """Updates a single `PlatformInfraCommit` using a unique key and a patch.""" - updatePlatformInfraCommit( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdatePlatformInfraCommitInput! - ): UpdatePlatformInfraCommitPayload + lastError: String - """Updates a single `PlatformInfraObject` using a unique key and a patch.""" - updatePlatformInfraObject( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdatePlatformInfraObjectInput! - ): UpdatePlatformInfraObjectPayload + """Freeform metadata (mirror-of pointer, rate limits, contact)""" + metadata: JSON - """Updates a single `PlatformInfraRef` using a unique key and a patch.""" - updatePlatformInfraRef( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdatePlatformInfraRefInput! - ): UpdatePlatformInfraRefPayload + """Human-readable registry name (e.g. github-container-registry)""" + name: String! - """Updates a single `PlatformInfraStore` using a unique key and a patch.""" - updatePlatformInfraStore( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdatePlatformInfraStoreInput! - ): UpdatePlatformInfraStorePayload + """Whether this registry is reserved for platform-internal use""" + platformOnly: Boolean - """Updates a single `PlatformNamespace` using a unique key and a patch.""" - updatePlatformNamespace( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdatePlatformNamespaceInput! - ): UpdatePlatformNamespacePayload + """ + Role in this scope: source (the push target), cache (read-through mirror), external (pull only) + """ + role: String """ - Updates a single `PlatformNamespaceEvent` using a unique key and a patch. + Provisioning state (pending, provisioning, active, failed); rows the platform does not create are active on insert """ - updatePlatformNamespaceEvent( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdatePlatformNamespaceEventInput! - ): UpdatePlatformNamespaceEventPayload + status: String + updatedAt: Datetime + updatedByPrincipal: UUID +} - """Updates a single `PlatformResource` using a unique key and a patch.""" - updatePlatformResource( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdatePlatformResourceInput! - ): UpdatePlatformResourcePayload +"""Methods to use when ordering `PlatformRegistry`.""" +enum PlatformRegistryOrderBy { + AUTH_MODE_ASC + AUTH_MODE_DESC + BASE_PATH_ASC + BASE_PATH_DESC + CREATED_AT_ASC + CREATED_AT_DESC + CREATED_BY_PRINCIPAL_ASC + CREATED_BY_PRINCIPAL_DESC + CREDENTIAL_SECRET_NAME_ASC + CREDENTIAL_SECRET_NAME_DESC + HOST_ASC + HOST_DESC + ID_ASC + ID_DESC + INSTALLATION_ID_ASC + INSTALLATION_ID_DESC + IS_PUBLISHED_ASC + IS_PUBLISHED_DESC + KIND_ASC + KIND_DESC + LABELS_ASC + LABELS_DESC + LAST_ERROR_ASC + LAST_ERROR_DESC + METADATA_ASC + METADATA_DESC + NAME_ASC + NAME_DESC + NATURAL + PLATFORM_ONLY_ASC + PLATFORM_ONLY_DESC + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ROLE_ASC + ROLE_DESC + STATUS_ASC + STATUS_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + UPDATED_BY_PRINCIPAL_ASC + UPDATED_BY_PRINCIPAL_DESC +} + +""" +Represents an update to a `PlatformRegistry`. Fields that are set will be updated. +""" +input PlatformRegistryPatch { + """How a client authenticates to this registry (none, basic, token)""" + authMode: String """ - Updates a single `PlatformResourceDefinition` using a unique key and a patch. + Path prefix within the host (npm scope, OCI project); NULL = the host root """ - updatePlatformResourceDefinition( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdatePlatformResourceDefinitionInput! - ): UpdatePlatformResourceDefinitionPayload + basePath: String + createdAt: Datetime + createdByPrincipal: UUID """ - Updates a single `PlatformResourceEvent` using a unique key and a patch. + Name of the infra secret carrying this registry's credential (NULL when auth_mode = none) """ - updatePlatformResourceEvent( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdatePlatformResourceEventInput! - ): UpdatePlatformResourceEventPayload + credentialSecretName: String """ - Updates a single `PlatformResourceInstallation` using a unique key and a patch. + Registry host, without a scheme (e.g. ghcr.io, registry.npmjs.org); required unless role is source, where it is the optional requested host and is stamped with the provisioned one """ - updatePlatformResourceInstallation( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdatePlatformResourceInstallationInput! - ): UpdatePlatformResourceInstallationPayload + host: String + id: UUID """ - Updates a single `PlatformResourceStatusCheck` using a unique key and a patch. + Resource installation running this registry (NULL for an external registry) """ - updatePlatformResourceStatusCheck( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdatePlatformResourceStatusCheckInput! - ): UpdatePlatformResourceStatusCheckPayload + installationId: UUID + + """Whether this registry is published for use by any scope""" + isPublished: Boolean + + """Artifact ecosystem this registry serves (oci, npm)""" + kind: String + + """Labels for selecting registries (lane, region, mirror role)""" + labels: JSON """ - Updates a single `PlatformResourceUsageLog` using a unique key and a patch. + Message from the last failed provision/deprovision attempt (NULL when healthy) """ - updatePlatformResourceUsageLog( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdatePlatformResourceUsageLogInput! - ): UpdatePlatformResourceUsageLogPayload + lastError: String + + """Freeform metadata (mirror-of pointer, rate limits, contact)""" + metadata: JSON + + """Human-readable registry name (e.g. github-container-registry)""" + name: String + + """Whether this registry is reserved for platform-internal use""" + platformOnly: Boolean """ - Updates a single `PlatformResourceUsageSummary` using a unique key and a patch. + Role in this scope: source (the push target), cache (read-through mirror), external (pull only) """ - updatePlatformResourceUsageSummary( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdatePlatformResourceUsageSummaryInput! - ): UpdatePlatformResourceUsageSummaryPayload + role: String """ - Updates a single `PlatformWebhookEndpoint` using a unique key and a patch. + Provisioning state (pending, provisioning, active, failed); rows the platform does not create are active on insert """ - updatePlatformWebhookEndpoint( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdatePlatformWebhookEndpointInput! - ): UpdatePlatformWebhookEndpointPayload + status: String + updatedAt: Datetime + updatedByPrincipal: UUID +} + +""" +A filter to be used against many `PlatformRegistryBinding` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformRegistryToManyPlatformRegistryBindingFilter { + """Filters to entities where every related entity matches.""" + every: PlatformRegistryBindingFilter + + """Filters to entities where no related entity matches.""" + none: PlatformRegistryBindingFilter + + """Filters to entities where at least one related entity matches.""" + some: PlatformRegistryBindingFilter +} + +""" +A filter to be used against many `PlatformRegistryGrant` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformRegistryToManyPlatformRegistryGrantFilter { + """Filters to entities where every related entity matches.""" + every: PlatformRegistryGrantFilter + + """Filters to entities where no related entity matches.""" + none: PlatformRegistryGrantFilter + + """Filters to entities where at least one related entity matches.""" + some: PlatformRegistryGrantFilter +} + +"""Source repositories, hosted locally or on an external provider""" +type PlatformRepository { + """URL a workspace clones from (NULL until the repository is provisioned)""" + cloneUrl: String """ - Updates a single `PlatformWebhookEvent` using a unique key and a patch. + TRGM similarity when searching `cloneUrl`. Returns null when no trgm search filter is active. """ - updatePlatformWebhookEvent( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdatePlatformWebhookEventInput! - ): UpdatePlatformWebhookEventPayload + cloneUrlTrgmSimilarity: Float + createdAt: Datetime + createdBy: UUID + createdByPrincipal: UUID - """Updates a single `Resource` using a unique key and a patch.""" - updateResource( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateResourceInput! - ): UpdateResourcePayload + """Branch a clone checks out and a proposal targets by default""" + defaultBranch: String! - """Updates a single `ResourceDefinition` using a unique key and a patch.""" - updateResourceDefinition( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateResourceDefinitionInput! - ): UpdateResourceDefinitionPayload + """ + TRGM similarity when searching `defaultBranch`. Returns null when no trgm search filter is active. + """ + defaultBranchTrgmSimilarity: Float - """Updates a single `ResourceEvent` using a unique key and a patch.""" - updateResourceEvent( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateResourceEventInput! - ): UpdateResourceEventPayload + """What this repository holds""" + description: String """ - Updates a single `ResourceInstallation` using a unique key and a patch. + TRGM similarity when searching `description`. Returns null when no trgm search filter is active. """ - updateResourceInstallation( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateResourceInstallationInput! - ): UpdateResourceInstallationPayload + descriptionTrgmSimilarity: Float + embedding: Vector + embeddingUpdatedAt: Datetime - """Updates a single `ResourceStatusCheck` using a unique key and a patch.""" - updateResourceStatusCheck( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateResourceStatusCheckInput! - ): UpdateResourceStatusCheckPayload + """ + VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. + """ + embeddingVectorDistance: Float - """Updates a single `ResourceUsageLog` using a unique key and a patch.""" - updateResourceUsageLog( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateResourceUsageLogInput! - ): UpdateResourceUsageLogPayload + """ + Identifier of this repository in the external provider (NULL for local) + """ + externalId: String """ - Updates a single `ResourceUsageSummary` using a unique key and a patch. + TRGM similarity when searching `externalId`. Returns null when no trgm search filter is active. """ - updateResourceUsageSummary( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateResourceUsageSummaryInput! - ): UpdateResourceUsageSummaryPayload + externalIdTrgmSimilarity: Float + id: UUID! - """Updates a single `WebhookEndpoint` using a unique key and a patch.""" - updateWebhookEndpoint( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateWebhookEndpointInput! - ): UpdateWebhookEndpointPayload + """Whether this repository is retired: readable, not written to""" + isArchived: Boolean! - """Updates a single `WebhookEvent` using a unique key and a patch.""" - updateWebhookEvent( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateWebhookEventInput! - ): UpdateWebhookEventPayload - validateFunctionGraph( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: ValidateFunctionGraphInput! - ): ValidateFunctionGraphPayload -} + """Provider detail (installation id, topics, external URLs)""" + metadata: JSON -""" -Logical namespace containers for grouping secrets, config, functions, and other resources -""" -type Namespace { - """Freeform metadata for tooling and operational notes""" - annotations: JSON! - createdAt: Datetime + """Human-readable repository name""" + name: String! - """Database that owns this resource (database-scoped isolation)""" - databaseId: UUID! + """ + TRGM similarity when searching `name`. Returns null when no trgm search filter is active. + """ + nameTrgmSimilarity: Float - """Optional human-readable description of this namespace""" - description: String + """User who owns this repository""" + ownerId: UUID - """Reads and enables pagination through a set of `FunctionDeployment`.""" - functionDeployments( + """Reads and enables pagination through a set of `PlatformBuild`.""" + platformBuildsByRepositoryId( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -13130,40 +32701,17 @@ type Namespace { """ offset: Int - """The method to use when ordering `FunctionDeployment`.""" - orderBy: [FunctionDeploymentOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `PlatformBuild`.""" + orderBy: [PlatformBuildOrderBy!] = [PRIMARY_KEY_ASC] """ A filter to be used in determining which values should be returned by the collection. """ - where: FunctionDeploymentFilter - ): FunctionDeploymentConnection! - id: UUID! - - """Whether this namespace is active (soft-disable for filtering)""" - isActive: Boolean! - - """ - true = provisioned by the platform via jobs, false = unmanaged/platform-native (bootstrapped externally) - """ - isManaged: Boolean! - - """Key/value pairs for selecting and filtering namespaces""" - labels: JSON! - - """Most recent provisioning or reconcile error message""" - lastError: String - - """Human-readable namespace name (e.g. default, production, oauth)""" - name: String! + where: PlatformBuildFilter + ): PlatformBuildConnection! - """ - Globally unique computed namespace identifier via inflection.underscore - """ - namespaceName: String! - - """Reads and enables pagination through a set of `ResourceDefinition`.""" - resourceDefinitions( + """Reads and enables pagination through a set of `PlatformProposal`.""" + platformProposalsByRepositoryId( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -13182,17 +32730,19 @@ type Namespace { """ offset: Int - """The method to use when ordering `ResourceDefinition`.""" - orderBy: [ResourceDefinitionOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `PlatformProposal`.""" + orderBy: [PlatformProposalOrderBy!] = [PRIMARY_KEY_ASC] """ A filter to be used in determining which values should be returned by the collection. """ - where: ResourceDefinitionFilter - ): ResourceDefinitionConnection! + where: PlatformProposalFilter + ): PlatformProposalConnection! - """Reads and enables pagination through a set of `ResourceInstallation`.""" - resourceInstallations( + """ + Reads and enables pagination through a set of `PlatformRepositoryEvent`. + """ + platformRepositoryEventsByRepositoryId( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -13211,17 +32761,19 @@ type Namespace { """ offset: Int - """The method to use when ordering `ResourceInstallation`.""" - orderBy: [ResourceInstallationOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `PlatformRepositoryEvent`.""" + orderBy: [PlatformRepositoryEventOrderBy!] = [PRIMARY_KEY_ASC] """ A filter to be used in determining which values should be returned by the collection. """ - where: ResourceInstallationFilter - ): ResourceInstallationConnection! + where: PlatformRepositoryEventFilter + ): PlatformRepositoryEventConnection! - """Reads and enables pagination through a set of `Resource`.""" - resources( + """ + Reads and enables pagination through a set of `PlatformRepositoryRequiredCheck`. + """ + platformRepositoryRequiredChecksByRepositoryId( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -13240,23 +32792,19 @@ type Namespace { """ offset: Int - """The method to use when ordering `Resource`.""" - orderBy: [ResourceOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `PlatformRepositoryRequiredCheck`.""" + orderBy: [PlatformRepositoryRequiredCheckOrderBy!] = [PRIMARY_KEY_ASC] """ A filter to be used in determining which values should be returned by the collection. """ - where: ResourceFilter - ): ResourceConnection! + where: PlatformRepositoryRequiredCheckFilter + ): PlatformRepositoryRequiredCheckConnection! """ - Namespace provisioning lifecycle status: pending, provisioning, active, failed + Reads and enables pagination through a set of `PlatformRepositoryWorkflow`. """ - status: String! - updatedAt: Datetime - - """Reads and enables pagination through a set of `WebhookEndpoint`.""" - webhookEndpoints( + platformRepositoryWorkflowsByRepositoryId( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -13275,114 +32823,205 @@ type Namespace { """ offset: Int - """The method to use when ordering `WebhookEndpoint`.""" - orderBy: [WebhookEndpointOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `PlatformRepositoryWorkflow`.""" + orderBy: [PlatformRepositoryWorkflowOrderBy!] = [PRIMARY_KEY_ASC] """ A filter to be used in determining which values should be returned by the collection. """ - where: WebhookEndpointFilter - ): WebhookEndpointConnection! + where: PlatformRepositoryWorkflowFilter + ): PlatformRepositoryWorkflowConnection! + + """Where the repository lives: local (platform git server) or github""" + provider: String! + + """ + TRGM similarity when searching `provider`. Returns null when no trgm search filter is active. + """ + providerTrgmSimilarity: Float + search: FullText + + """ + Composite search relevance score (0..1, higher = more relevant). Computed using Reciprocal Rank Fusion (RRF) across all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. + """ + searchScore: Float + + """ + TSV rank when searching `search`. Returns null when no tsv search filter is active. + """ + searchTsvRank: Float + + """URL-safe identifier, unique within the owning scope""" + slug: String! + + """ + TRGM similarity when searching `slug`. Returns null when no trgm search filter is active. + """ + slugTrgmSimilarity: Float + updatedAt: Datetime + updatedBy: UUID + updatedByPrincipal: UUID + + """ + Read reach: private (owner), internal (scope members), public (any authenticated actor) + """ + visibility: String! + + """ + TRGM similarity when searching `visibility`. Returns null when no trgm search filter is active. + """ + visibilityTrgmSimilarity: Float } -"""A connection to a list of `Namespace` values.""" -type NamespaceConnection { +"""A connection to a list of `PlatformRepository` values.""" +type PlatformRepositoryConnection { """ - A list of edges which contains the `Namespace` and cursor to aid in pagination. + A list of edges which contains the `PlatformRepository` and cursor to aid in pagination. """ - edges: [NamespaceEdge]! + edges: [PlatformRepositoryEdge]! - """A list of `Namespace` objects.""" - nodes: [Namespace]! + """A list of `PlatformRepository` objects.""" + nodes: [PlatformRepository]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `Namespace` you could get from the connection.""" + """ + The count of *all* `PlatformRepository` you could get from the connection. + """ totalCount: Int! } -"""A `Namespace` edge in the connection.""" -type NamespaceEdge { +"""A `PlatformRepository` edge in the connection.""" +type PlatformRepositoryEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `Namespace` at the end of the edge.""" - node: Namespace + """The `PlatformRepository` at the end of the edge.""" + node: PlatformRepository } -""" -Namespace lifecycle events — audit log of creation, activation, deactivation, label changes -""" -type NamespaceEvent { - """User who triggered this event (NULL for system/automated)""" +"""Normalized repository events from local hooks and external providers""" +type PlatformRepositoryEvent { + """ + Authenticated actor behind the event (NULL when only the sending system was proven) + """ actorId: UUID - """Event timestamp (partition key)""" - createdAt: Datetime! - - """Database that owns this resource (database-scoped isolation)""" - databaseId: UUID! + """Commit the ref points at after the event""" + commitSha: String + createdAt: Datetime + createdByPrincipal: UUID """ - Event type: created, activated, deactivated, labels_updated, annotations_updated, renamed + Provider delivery identifier, for redelivery dedupe (NULL for local hooks) """ - eventType: String! + deliveryId: String - """Unique event identifier""" + """What happened: push, tag, pr_open, pr_merge, proposal_comment, manual""" + eventType: String! id: UUID! - """Human-readable description of the event""" - message: String - - """Structured context (old/new values, labels diff, etc.)""" + """ + Unverified provider detail (payload login, commit author, external URLs) + """ metadata: JSON - """Namespace this event belongs to""" - namespaceId: UUID! + """Normalized event body the workflows read""" + payload: JSON! + + """Reads and enables pagination through a set of `PlatformBuild`.""" + platformBuildsByEventId( + """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 `PlatformBuild`.""" + orderBy: [PlatformBuildOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformBuildFilter + ): PlatformBuildConnection! + + """Git ref the event concerns (refs/heads/main)""" + ref: String + + """ + Reads a single `PlatformRepository` that is related to this `PlatformRepositoryEvent`. + """ + repository: PlatformRepository + + """Repository this event happened to""" + repositoryId: UUID! + updatedAt: Datetime + updatedByPrincipal: UUID } -"""A connection to a list of `NamespaceEvent` values.""" -type NamespaceEventConnection { +"""A connection to a list of `PlatformRepositoryEvent` values.""" +type PlatformRepositoryEventConnection { """ - A list of edges which contains the `NamespaceEvent` and cursor to aid in pagination. + A list of edges which contains the `PlatformRepositoryEvent` and cursor to aid in pagination. """ - edges: [NamespaceEventEdge]! + edges: [PlatformRepositoryEventEdge]! - """A list of `NamespaceEvent` objects.""" - nodes: [NamespaceEvent]! + """A list of `PlatformRepositoryEvent` objects.""" + nodes: [PlatformRepositoryEvent]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `NamespaceEvent` you could get from the connection.""" + """ + The count of *all* `PlatformRepositoryEvent` you could get from the connection. + """ totalCount: Int! } -"""A `NamespaceEvent` edge in the connection.""" -type NamespaceEventEdge { +"""A `PlatformRepositoryEvent` edge in the connection.""" +type PlatformRepositoryEventEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `NamespaceEvent` at the end of the edge.""" - node: NamespaceEvent + """The `PlatformRepositoryEvent` at the end of the edge.""" + node: PlatformRepositoryEvent } """ -A filter to be used against `NamespaceEvent` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `PlatformRepositoryEvent` object types. All fields are combined with a logical ‘and.’ """ -input NamespaceEventFilter { +input PlatformRepositoryEventFilter { """Filter by the object’s `actorId` field.""" actorId: UUIDFilter """Checks for all expressions in this list.""" - and: [NamespaceEventFilter!] + and: [PlatformRepositoryEventFilter!] + + """Filter by the object’s `commitSha` field.""" + commitSha: StringFilter """Filter by the object’s `createdAt` field.""" createdAt: DatetimeFilter - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter + """Filter by the object’s `createdByPrincipal` field.""" + createdByPrincipal: UUIDFilter + + """Filter by the object’s `deliveryId` field.""" + deliveryId: StringFilter """Filter by the object’s `eventType` field.""" eventType: StringFilter @@ -13390,419 +33029,766 @@ input NamespaceEventFilter { """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `message` field.""" - message: StringFilter - """Filter by the object’s `metadata` field.""" metadata: JSONFilter - """Filter by the object’s `namespaceId` field.""" - namespaceId: UUIDFilter - """Negates the expression.""" - not: NamespaceEventFilter + not: PlatformRepositoryEventFilter """Checks for any expressions in this list.""" - or: [NamespaceEventFilter!] + or: [PlatformRepositoryEventFilter!] + + """Filter by the object’s `payload` field.""" + payload: JSONFilter + + """Filter by the object’s `platformBuildsByEventId` relation.""" + platformBuildsByEventId: PlatformRepositoryEventToManyPlatformBuildFilter + + """`platformBuildsByEventId` exist.""" + platformBuildsByEventIdExist: Boolean + + """Filter by the object’s `ref` field.""" + ref: StringFilter + + """Filter by the object’s `repository` relation.""" + repository: PlatformRepositoryFilter + + """Filter by the object’s `repositoryId` field.""" + repositoryId: UUIDFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + + """Filter by the object’s `updatedByPrincipal` field.""" + updatedByPrincipal: UUIDFilter } -"""An input for mutations affecting `NamespaceEvent`""" -input NamespaceEventInput { - """User who triggered this event (NULL for system/automated)""" +"""An input for mutations affecting `PlatformRepositoryEvent`""" +input PlatformRepositoryEventInput { + """ + Authenticated actor behind the event (NULL when only the sending system was proven) + """ actorId: UUID - """Event timestamp (partition key)""" + """Commit the ref points at after the event""" + commitSha: String createdAt: Datetime - - """Database that owns this resource (database-scoped isolation)""" - databaseId: UUID! + createdByPrincipal: UUID """ - Event type: created, activated, deactivated, labels_updated, annotations_updated, renamed + Provider delivery identifier, for redelivery dedupe (NULL for local hooks) """ - eventType: String! + deliveryId: String - """Unique event identifier""" + """What happened: push, tag, pr_open, pr_merge, proposal_comment, manual""" + eventType: String! id: UUID - """Human-readable description of the event""" - message: String - - """Structured context (old/new values, labels diff, etc.)""" + """ + Unverified provider detail (payload login, commit author, external URLs) + """ metadata: JSON - """Namespace this event belongs to""" - namespaceId: UUID! + """Normalized event body the workflows read""" + payload: JSON + + """Git ref the event concerns (refs/heads/main)""" + ref: String + + """Repository this event happened to""" + repositoryId: UUID! + updatedAt: Datetime + updatedByPrincipal: UUID } -"""Methods to use when ordering `NamespaceEvent`.""" -enum NamespaceEventOrderBy { +"""Methods to use when ordering `PlatformRepositoryEvent`.""" +enum PlatformRepositoryEventOrderBy { ACTOR_ID_ASC ACTOR_ID_DESC + COMMIT_SHA_ASC + COMMIT_SHA_DESC CREATED_AT_ASC CREATED_AT_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC + CREATED_BY_PRINCIPAL_ASC + CREATED_BY_PRINCIPAL_DESC + DELIVERY_ID_ASC + DELIVERY_ID_DESC EVENT_TYPE_ASC EVENT_TYPE_DESC ID_ASC ID_DESC - MESSAGE_ASC - MESSAGE_DESC METADATA_ASC METADATA_DESC - NAMESPACE_ID_ASC - NAMESPACE_ID_DESC NATURAL + PAYLOAD_ASC + PAYLOAD_DESC PRIMARY_KEY_ASC PRIMARY_KEY_DESC + REF_ASC + REF_DESC + REPOSITORY_ID_ASC + REPOSITORY_ID_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + UPDATED_BY_PRINCIPAL_ASC + UPDATED_BY_PRINCIPAL_DESC } """ -Represents an update to a `NamespaceEvent`. Fields that are set will be updated. +Represents an update to a `PlatformRepositoryEvent`. Fields that are set will be updated. """ -input NamespaceEventPatch { - """User who triggered this event (NULL for system/automated)""" +input PlatformRepositoryEventPatch { + """ + Authenticated actor behind the event (NULL when only the sending system was proven) + """ actorId: UUID - """Event timestamp (partition key)""" + """Commit the ref points at after the event""" + commitSha: String createdAt: Datetime - - """Database that owns this resource (database-scoped isolation)""" - databaseId: UUID + createdByPrincipal: UUID """ - Event type: created, activated, deactivated, labels_updated, annotations_updated, renamed + Provider delivery identifier, for redelivery dedupe (NULL for local hooks) """ - eventType: String + deliveryId: String - """Unique event identifier""" + """What happened: push, tag, pr_open, pr_merge, proposal_comment, manual""" + eventType: String id: UUID - """Human-readable description of the event""" - message: String - - """Structured context (old/new values, labels diff, etc.)""" + """ + Unverified provider detail (payload login, commit author, external URLs) + """ metadata: JSON - """Namespace this event belongs to""" - namespaceId: UUID + """Normalized event body the workflows read""" + payload: JSON + + """Git ref the event concerns (refs/heads/main)""" + ref: String + + """Repository this event happened to""" + repositoryId: UUID + updatedAt: Datetime + updatedByPrincipal: UUID } """ -A filter to be used against `Namespace` object types. All fields are combined with a logical ‘and.’ +A filter to be used against many `PlatformBuild` object types. All fields are combined with a logical ‘and.’ """ -input NamespaceFilter { +input PlatformRepositoryEventToManyPlatformBuildFilter { + """Filters to entities where every related entity matches.""" + every: PlatformBuildFilter + + """Filters to entities where no related entity matches.""" + none: PlatformBuildFilter + + """Filters to entities where at least one related entity matches.""" + some: PlatformBuildFilter +} + +""" +A filter to be used against `PlatformRepository` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformRepositoryFilter { """Checks for all expressions in this list.""" - and: [NamespaceFilter!] + and: [PlatformRepositoryFilter!] - """Filter by the object’s `annotations` field.""" - annotations: JSONFilter + """Filter by the object’s `cloneUrl` field.""" + cloneUrl: StringTrgmFilter """Filter by the object’s `createdAt` field.""" createdAt: DatetimeFilter - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter + """Filter by the object’s `createdBy` field.""" + createdBy: UUIDFilter + + """Filter by the object’s `createdByPrincipal` field.""" + createdByPrincipal: UUIDFilter + + """Filter by the object’s `defaultBranch` field.""" + defaultBranch: StringTrgmFilter """Filter by the object’s `description` field.""" - description: StringFilter + description: StringTrgmFilter - """Filter by the object’s `functionDeployments` relation.""" - functionDeployments: NamespaceToManyFunctionDeploymentFilter + """Filter by the object’s `embedding` field.""" + embedding: VectorFilter - """`functionDeployments` exist.""" - functionDeploymentsExist: Boolean + """Filter by the object’s `embeddingUpdatedAt` field.""" + embeddingUpdatedAt: DatetimeFilter + + """Filter by the object’s `externalId` field.""" + externalId: StringTrgmFilter """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `isActive` field.""" - isActive: BooleanFilter - - """Filter by the object’s `isManaged` field.""" - isManaged: BooleanFilter - - """Filter by the object’s `labels` field.""" - labels: JSONFilter + """Filter by the object’s `isArchived` field.""" + isArchived: BooleanFilter - """Filter by the object’s `lastError` field.""" - lastError: StringFilter + """Filter by the object’s `metadata` field.""" + metadata: JSONFilter """Filter by the object’s `name` field.""" - name: StringFilter - - """Filter by the object’s `namespaceName` field.""" - namespaceName: StringFilter + name: StringTrgmFilter """Negates the expression.""" - not: NamespaceFilter + not: PlatformRepositoryFilter """Checks for any expressions in this list.""" - or: [NamespaceFilter!] + or: [PlatformRepositoryFilter!] - """Filter by the object’s `resourceDefinitions` relation.""" - resourceDefinitions: NamespaceToManyResourceDefinitionFilter + """Filter by the object’s `ownerId` field.""" + ownerId: UUIDFilter - """`resourceDefinitions` exist.""" - resourceDefinitionsExist: Boolean + """Filter by the object’s `platformBuildsByRepositoryId` relation.""" + platformBuildsByRepositoryId: PlatformRepositoryToManyPlatformBuildFilter - """Filter by the object’s `resourceInstallations` relation.""" - resourceInstallations: NamespaceToManyResourceInstallationFilter + """`platformBuildsByRepositoryId` exist.""" + platformBuildsByRepositoryIdExist: Boolean - """`resourceInstallations` exist.""" - resourceInstallationsExist: Boolean + """Filter by the object’s `platformProposalsByRepositoryId` relation.""" + platformProposalsByRepositoryId: PlatformRepositoryToManyPlatformProposalFilter - """Filter by the object’s `resources` relation.""" - resources: NamespaceToManyResourceFilter + """`platformProposalsByRepositoryId` exist.""" + platformProposalsByRepositoryIdExist: Boolean - """`resources` exist.""" - resourcesExist: Boolean + """ + Filter by the object’s `platformRepositoryEventsByRepositoryId` relation. + """ + platformRepositoryEventsByRepositoryId: PlatformRepositoryToManyPlatformRepositoryEventFilter - """Filter by the object’s `status` field.""" - status: StringFilter + """`platformRepositoryEventsByRepositoryId` exist.""" + platformRepositoryEventsByRepositoryIdExist: Boolean + + """ + Filter by the object’s `platformRepositoryRequiredChecksByRepositoryId` relation. + """ + platformRepositoryRequiredChecksByRepositoryId: PlatformRepositoryToManyPlatformRepositoryRequiredCheckFilter + + """`platformRepositoryRequiredChecksByRepositoryId` exist.""" + platformRepositoryRequiredChecksByRepositoryIdExist: Boolean + + """ + Filter by the object’s `platformRepositoryWorkflowsByRepositoryId` relation. + """ + platformRepositoryWorkflowsByRepositoryId: PlatformRepositoryToManyPlatformRepositoryWorkflowFilter + + """`platformRepositoryWorkflowsByRepositoryId` exist.""" + platformRepositoryWorkflowsByRepositoryIdExist: Boolean + + """Filter by the object’s `provider` field.""" + provider: StringTrgmFilter + + """Filter by the object’s `search` field.""" + search: FullTextFilter + + """Filter by the object’s `slug` field.""" + slug: StringTrgmFilter + + """TRGM search on the `clone_url` column.""" + trgmCloneUrl: TrgmSearchInput + + """TRGM search on the `default_branch` column.""" + trgmDefaultBranch: TrgmSearchInput + + """TRGM search on the `description` column.""" + trgmDescription: TrgmSearchInput + + """TRGM search on the `external_id` column.""" + trgmExternalId: TrgmSearchInput + + """TRGM search on the `name` column.""" + trgmName: TrgmSearchInput + + """TRGM search on the `provider` column.""" + trgmProvider: TrgmSearchInput + + """TRGM search on the `slug` column.""" + trgmSlug: TrgmSearchInput + + """TRGM search on the `visibility` column.""" + trgmVisibility: TrgmSearchInput + + """TSV search on the `search` column.""" + tsvSearch: String + + """ + Composite unified search. Provide a search string and it will be dispatched to + all text-compatible search algorithms (tsvector, BM25, pg_trgm) + simultaneously. When the LLM plugin is active, pgvector also participates via + auto-embedding. Rows matching ANY algorithm are returned. All matching score + fields are populated. + """ + unifiedSearch: String """Filter by the object’s `updatedAt` field.""" updatedAt: DatetimeFilter - """Filter by the object’s `webhookEndpoints` relation.""" - webhookEndpoints: NamespaceToManyWebhookEndpointFilter + """Filter by the object’s `updatedBy` field.""" + updatedBy: UUIDFilter - """`webhookEndpoints` exist.""" - webhookEndpointsExist: Boolean + """Filter by the object’s `updatedByPrincipal` field.""" + updatedByPrincipal: UUIDFilter + + """VECTOR search on the `embedding` column.""" + vectorEmbedding: VectorNearbyInput + + """Filter by the object’s `visibility` field.""" + visibility: StringTrgmFilter } -"""An input for mutations affecting `Namespace`""" -input NamespaceInput { - """Freeform metadata for tooling and operational notes""" - annotations: JSON +"""An input for mutations affecting `PlatformRepository`""" +input PlatformRepositoryInput { + """URL a workspace clones from (NULL until the repository is provisioned)""" + cloneUrl: String createdAt: Datetime + createdBy: UUID + createdByPrincipal: UUID - """Database that owns this resource (database-scoped isolation)""" - databaseId: UUID! + """Branch a clone checks out and a proposal targets by default""" + defaultBranch: String - """Optional human-readable description of this namespace""" + """What this repository holds""" description: String - id: UUID + embedding: Vector - """Whether this namespace is active (soft-disable for filtering)""" - isActive: Boolean + """ + Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. + """ + embeddingText: String """ - true = provisioned by the platform via jobs, false = unmanaged/platform-native (bootstrapped externally) + Identifier of this repository in the external provider (NULL for local) """ - isManaged: Boolean + externalId: String + id: UUID - """Key/value pairs for selecting and filtering namespaces""" - labels: JSON + """Whether this repository is retired: readable, not written to""" + isArchived: Boolean - """Most recent provisioning or reconcile error message""" - lastError: String + """Provider detail (installation id, topics, external URLs)""" + metadata: JSON - """Human-readable namespace name (e.g. default, production, oauth)""" + """Human-readable repository name""" name: String! - """ - Globally unique computed namespace identifier via inflection.underscore - """ - namespaceName: String! + """User who owns this repository""" + ownerId: UUID + + """Where the repository lives: local (platform git server) or github""" + provider: String + + """URL-safe identifier, unique within the owning scope""" + slug: String! + updatedAt: Datetime + updatedBy: UUID + updatedByPrincipal: UUID """ - Namespace provisioning lifecycle status: pending, provisioning, active, failed + Read reach: private (owner), internal (scope members), public (any authenticated actor) """ - status: String - updatedAt: Datetime + visibility: String } -"""Methods to use when ordering `Namespace`.""" -enum NamespaceOrderBy { - ANNOTATIONS_ASC - ANNOTATIONS_DESC +"""Methods to use when ordering `PlatformRepository`.""" +enum PlatformRepositoryOrderBy { + CLONE_URL_ASC + CLONE_URL_DESC + CLONE_URL_TRGM_SIMILARITY_ASC + CLONE_URL_TRGM_SIMILARITY_DESC CREATED_AT_ASC CREATED_AT_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC + CREATED_BY_ASC + CREATED_BY_DESC + CREATED_BY_PRINCIPAL_ASC + CREATED_BY_PRINCIPAL_DESC + DEFAULT_BRANCH_ASC + DEFAULT_BRANCH_DESC + DEFAULT_BRANCH_TRGM_SIMILARITY_ASC + DEFAULT_BRANCH_TRGM_SIMILARITY_DESC DESCRIPTION_ASC DESCRIPTION_DESC + DESCRIPTION_TRGM_SIMILARITY_ASC + DESCRIPTION_TRGM_SIMILARITY_DESC + EMBEDDING_ASC + EMBEDDING_DESC + EMBEDDING_UPDATED_AT_ASC + EMBEDDING_UPDATED_AT_DESC + EMBEDDING_VECTOR_DISTANCE_ASC + EMBEDDING_VECTOR_DISTANCE_DESC + EXTERNAL_ID_ASC + EXTERNAL_ID_DESC + EXTERNAL_ID_TRGM_SIMILARITY_ASC + EXTERNAL_ID_TRGM_SIMILARITY_DESC ID_ASC ID_DESC - IS_ACTIVE_ASC - IS_ACTIVE_DESC - IS_MANAGED_ASC - IS_MANAGED_DESC - LABELS_ASC - LABELS_DESC - LAST_ERROR_ASC - LAST_ERROR_DESC - NAMESPACE_NAME_ASC - NAMESPACE_NAME_DESC + IS_ARCHIVED_ASC + IS_ARCHIVED_DESC + METADATA_ASC + METADATA_DESC NAME_ASC NAME_DESC + NAME_TRGM_SIMILARITY_ASC + NAME_TRGM_SIMILARITY_DESC NATURAL + OWNER_ID_ASC + OWNER_ID_DESC PRIMARY_KEY_ASC PRIMARY_KEY_DESC - STATUS_ASC - STATUS_DESC + PROVIDER_ASC + PROVIDER_DESC + PROVIDER_TRGM_SIMILARITY_ASC + PROVIDER_TRGM_SIMILARITY_DESC + SEARCH_ASC + SEARCH_DESC + SEARCH_SCORE_ASC + SEARCH_SCORE_DESC + SEARCH_TSV_RANK_ASC + SEARCH_TSV_RANK_DESC + SLUG_ASC + SLUG_DESC + SLUG_TRGM_SIMILARITY_ASC + SLUG_TRGM_SIMILARITY_DESC UPDATED_AT_ASC UPDATED_AT_DESC + UPDATED_BY_ASC + UPDATED_BY_DESC + UPDATED_BY_PRINCIPAL_ASC + UPDATED_BY_PRINCIPAL_DESC + VISIBILITY_ASC + VISIBILITY_DESC + VISIBILITY_TRGM_SIMILARITY_ASC + VISIBILITY_TRGM_SIMILARITY_DESC } """ -Represents an update to a `Namespace`. Fields that are set will be updated. +Represents an update to a `PlatformRepository`. Fields that are set will be updated. """ -input NamespacePatch { - """Freeform metadata for tooling and operational notes""" - annotations: JSON +input PlatformRepositoryPatch { + """URL a workspace clones from (NULL until the repository is provisioned)""" + cloneUrl: String createdAt: Datetime + createdBy: UUID + createdByPrincipal: UUID - """Database that owns this resource (database-scoped isolation)""" - databaseId: UUID + """Branch a clone checks out and a proposal targets by default""" + defaultBranch: String - """Optional human-readable description of this namespace""" + """What this repository holds""" description: String - id: UUID + embedding: Vector - """Whether this namespace is active (soft-disable for filtering)""" - isActive: Boolean + """ + Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. + """ + embeddingText: String """ - true = provisioned by the platform via jobs, false = unmanaged/platform-native (bootstrapped externally) + Identifier of this repository in the external provider (NULL for local) """ - isManaged: Boolean + externalId: String + id: UUID - """Key/value pairs for selecting and filtering namespaces""" - labels: JSON + """Whether this repository is retired: readable, not written to""" + isArchived: Boolean - """Most recent provisioning or reconcile error message""" - lastError: String + """Provider detail (installation id, topics, external URLs)""" + metadata: JSON - """Human-readable namespace name (e.g. default, production, oauth)""" + """Human-readable repository name""" name: String + """User who owns this repository""" + ownerId: UUID + + """Where the repository lives: local (platform git server) or github""" + provider: String + + """URL-safe identifier, unique within the owning scope""" + slug: String + updatedAt: Datetime + updatedBy: UUID + updatedByPrincipal: UUID + """ - Globally unique computed namespace identifier via inflection.underscore + Read reach: private (owner), internal (scope members), public (any authenticated actor) """ - namespaceName: String + visibility: String +} + +"""Workflows required to pass before a repository proposal merges""" +type PlatformRepositoryRequiredCheck { + createdAt: Datetime + id: UUID! """ - Namespace provisioning lifecycle status: pending, provisioning, active, failed + Reads a single `PlatformRepository` that is related to this `PlatformRepositoryRequiredCheck`. """ - status: String + repository: PlatformRepository + + """Repository whose merge gate requires this workflow""" + repositoryId: UUID! updatedAt: Datetime + + """ + Reads a single `PlatformRepositoryWorkflow` that is related to this `PlatformRepositoryRequiredCheck`. + """ + workflow: PlatformRepositoryWorkflow + + """Workflow identity required by this repository gate""" + workflowId: UUID! +} + +"""A connection to a list of `PlatformRepositoryRequiredCheck` values.""" +type PlatformRepositoryRequiredCheckConnection { + """ + A list of edges which contains the `PlatformRepositoryRequiredCheck` and cursor to aid in pagination. + """ + edges: [PlatformRepositoryRequiredCheckEdge]! + + """A list of `PlatformRepositoryRequiredCheck` objects.""" + nodes: [PlatformRepositoryRequiredCheck]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `PlatformRepositoryRequiredCheck` you could get from the connection. + """ + totalCount: Int! +} + +"""A `PlatformRepositoryRequiredCheck` edge in the connection.""" +type PlatformRepositoryRequiredCheckEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `PlatformRepositoryRequiredCheck` at the end of the edge.""" + node: PlatformRepositoryRequiredCheck } """ -A filter to be used against many `FunctionDeployment` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `PlatformRepositoryRequiredCheck` object types. All fields are combined with a logical ‘and.’ """ -input NamespaceToManyFunctionDeploymentFilter { - """Filters to entities where every related entity matches.""" - every: FunctionDeploymentFilter +input PlatformRepositoryRequiredCheckFilter { + """Checks for all expressions in this list.""" + and: [PlatformRepositoryRequiredCheckFilter!] - """Filters to entities where no related entity matches.""" - none: FunctionDeploymentFilter + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter - """Filters to entities where at least one related entity matches.""" - some: FunctionDeploymentFilter + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Negates the expression.""" + not: PlatformRepositoryRequiredCheckFilter + + """Checks for any expressions in this list.""" + or: [PlatformRepositoryRequiredCheckFilter!] + + """Filter by the object’s `repository` relation.""" + repository: PlatformRepositoryFilter + + """Filter by the object’s `repositoryId` field.""" + repositoryId: UUIDFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + + """Filter by the object’s `workflow` relation.""" + workflow: PlatformRepositoryWorkflowFilter + + """Filter by the object’s `workflowId` field.""" + workflowId: UUIDFilter +} + +"""An input for mutations affecting `PlatformRepositoryRequiredCheck`""" +input PlatformRepositoryRequiredCheckInput { + createdAt: Datetime + id: UUID + + """Repository whose merge gate requires this workflow""" + repositoryId: UUID! + updatedAt: Datetime + + """Workflow identity required by this repository gate""" + workflowId: UUID! +} + +"""Methods to use when ordering `PlatformRepositoryRequiredCheck`.""" +enum PlatformRepositoryRequiredCheckOrderBy { + CREATED_AT_ASC + CREATED_AT_DESC + ID_ASC + ID_DESC + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + REPOSITORY_ID_ASC + REPOSITORY_ID_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + WORKFLOW_ID_ASC + WORKFLOW_ID_DESC } """ -A filter to be used against many `ResourceDefinition` object types. All fields are combined with a logical ‘and.’ +Represents an update to a `PlatformRepositoryRequiredCheck`. Fields that are set will be updated. """ -input NamespaceToManyResourceDefinitionFilter { - """Filters to entities where every related entity matches.""" - every: ResourceDefinitionFilter +input PlatformRepositoryRequiredCheckPatch { + createdAt: Datetime + id: UUID - """Filters to entities where no related entity matches.""" - none: ResourceDefinitionFilter + """Repository whose merge gate requires this workflow""" + repositoryId: UUID + updatedAt: Datetime - """Filters to entities where at least one related entity matches.""" - some: ResourceDefinitionFilter + """Workflow identity required by this repository gate""" + workflowId: UUID } """ -A filter to be used against many `Resource` object types. All fields are combined with a logical ‘and.’ +A filter to be used against many `PlatformBuild` object types. All fields are combined with a logical ‘and.’ """ -input NamespaceToManyResourceFilter { +input PlatformRepositoryToManyPlatformBuildFilter { """Filters to entities where every related entity matches.""" - every: ResourceFilter + every: PlatformBuildFilter """Filters to entities where no related entity matches.""" - none: ResourceFilter + none: PlatformBuildFilter """Filters to entities where at least one related entity matches.""" - some: ResourceFilter + some: PlatformBuildFilter } """ -A filter to be used against many `ResourceInstallation` object types. All fields are combined with a logical ‘and.’ +A filter to be used against many `PlatformProposal` object types. All fields are combined with a logical ‘and.’ """ -input NamespaceToManyResourceInstallationFilter { +input PlatformRepositoryToManyPlatformProposalFilter { """Filters to entities where every related entity matches.""" - every: ResourceInstallationFilter + every: PlatformProposalFilter """Filters to entities where no related entity matches.""" - none: ResourceInstallationFilter + none: PlatformProposalFilter """Filters to entities where at least one related entity matches.""" - some: ResourceInstallationFilter + some: PlatformProposalFilter } """ -A filter to be used against many `WebhookEndpoint` object types. All fields are combined with a logical ‘and.’ +A filter to be used against many `PlatformRepositoryEvent` object types. All fields are combined with a logical ‘and.’ """ -input NamespaceToManyWebhookEndpointFilter { +input PlatformRepositoryToManyPlatformRepositoryEventFilter { """Filters to entities where every related entity matches.""" - every: WebhookEndpointFilter + every: PlatformRepositoryEventFilter """Filters to entities where no related entity matches.""" - none: WebhookEndpointFilter + none: PlatformRepositoryEventFilter """Filters to entities where at least one related entity matches.""" - some: WebhookEndpointFilter + some: PlatformRepositoryEventFilter } -"""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! +""" +A filter to be used against many `PlatformRepositoryRequiredCheck` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformRepositoryToManyPlatformRepositoryRequiredCheckFilter { + """Filters to entities where every related entity matches.""" + every: PlatformRepositoryRequiredCheckFilter - """When paginating backwards, are there more items?""" - hasPreviousPage: Boolean! + """Filters to entities where no related entity matches.""" + none: PlatformRepositoryRequiredCheckFilter - """When paginating backwards, the cursor to continue.""" - startCursor: Cursor + """Filters to entities where at least one related entity matches.""" + some: PlatformRepositoryRequiredCheckFilter } """ -Join table binding function definitions to API endpoints with per-binding alias and config +A filter to be used against many `PlatformRepositoryWorkflow` object types. All fields are combined with a logical ‘and.’ """ -type PlatformFunctionApiBinding { - """Binding alias (e.g. default, staging, production)""" - alias: String! +input PlatformRepositoryToManyPlatformRepositoryWorkflowFilter { + """Filters to entities where every related entity matches.""" + every: PlatformRepositoryWorkflowFilter - """API endpoint this function is bound to""" - apiId: UUID! + """Filters to entities where no related entity matches.""" + none: PlatformRepositoryWorkflowFilter - """Per-binding configuration (overrides, routing rules, etc.)""" - config: JSON! + """Filters to entities where at least one related entity matches.""" + some: PlatformRepositoryWorkflowFilter +} + +"""Bindings from a repository event to the flow graph that should run""" +type PlatformRepositoryWorkflow { + """ + Whether a new build cancels a running build with the same concurrency key instead of queueing + """ + cancelInProgress: Boolean! + + """ + Builds of this workflow sharing this key run one at a time (NULL = unlimited) + """ + concurrencyKey: String createdAt: Datetime + createdBy: UUID + createdByPrincipal: UUID + + """Event type that fires this workflow""" + eventType: String! """ - Reads a single `PlatformFunctionDefinition` that is related to this `PlatformFunctionApiBinding`. + Reads a single `FunctionGraph` that is related to this `PlatformRepositoryWorkflow`. """ - functionDefinition: PlatformFunctionDefinition + graph: FunctionGraph - """Function definition this binding belongs to""" - functionDefinitionId: UUID! + """Flow graph to run when this workflow fires""" + graphId: UUID id: UUID! + """Static inputs merged into the graph run alongside the event""" + inputs: JSON! + + """Whether matching events fire this workflow""" + isEnabled: Boolean! + + """Human-readable workflow name""" + name: String! + + """Reads and enables pagination through a set of `PlatformBuild`.""" + platformBuildsByWorkflowId( + """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 `PlatformBuild`.""" + orderBy: [PlatformBuildOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformBuildFilter + ): PlatformBuildConnection! + """ - Reads and enables pagination through a set of `PlatformFunctionInvocation`. + Reads and enables pagination through a set of `PlatformRepositoryRequiredCheck`. """ - platformFunctionInvocationsByApiBindingId( + platformRepositoryRequiredChecksByWorkflowId( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -13821,546 +33807,712 @@ type PlatformFunctionApiBinding { """ offset: Int - """The method to use when ordering `PlatformFunctionInvocation`.""" - orderBy: [PlatformFunctionInvocationOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `PlatformRepositoryRequiredCheck`.""" + orderBy: [PlatformRepositoryRequiredCheckOrderBy!] = [PRIMARY_KEY_ASC] """ A filter to be used in determining which values should be returned by the collection. """ - where: PlatformFunctionInvocationFilter - ): PlatformFunctionInvocationConnection! + where: PlatformRepositoryRequiredCheckFilter + ): PlatformRepositoryRequiredCheckConnection! + + """Glob the event ref must match (NULL matches any ref)""" + refPattern: String + + """ + Reads a single `PlatformRepository` that is related to this `PlatformRepositoryWorkflow`. + """ + repository: PlatformRepository + + """Repository whose events this workflow listens to""" + repositoryId: UUID! + + """ + Secret names this workflow's builds may resolve, intersected with the build lane's realm + """ + requiredSecrets: [String]! + + """URL-safe identifier, unique within the repository""" + slug: String! updatedAt: Datetime + updatedBy: UUID + updatedByPrincipal: UUID } -"""A connection to a list of `PlatformFunctionApiBinding` values.""" -type PlatformFunctionApiBindingConnection { +"""A connection to a list of `PlatformRepositoryWorkflow` values.""" +type PlatformRepositoryWorkflowConnection { """ - A list of edges which contains the `PlatformFunctionApiBinding` and cursor to aid in pagination. + A list of edges which contains the `PlatformRepositoryWorkflow` and cursor to aid in pagination. """ - edges: [PlatformFunctionApiBindingEdge]! + edges: [PlatformRepositoryWorkflowEdge]! - """A list of `PlatformFunctionApiBinding` objects.""" - nodes: [PlatformFunctionApiBinding]! + """A list of `PlatformRepositoryWorkflow` objects.""" + nodes: [PlatformRepositoryWorkflow]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `PlatformFunctionApiBinding` you could get from the connection. + The count of *all* `PlatformRepositoryWorkflow` you could get from the connection. """ totalCount: Int! } -"""A `PlatformFunctionApiBinding` edge in the connection.""" -type PlatformFunctionApiBindingEdge { +"""A `PlatformRepositoryWorkflow` edge in the connection.""" +type PlatformRepositoryWorkflowEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `PlatformFunctionApiBinding` at the end of the edge.""" - node: PlatformFunctionApiBinding + """The `PlatformRepositoryWorkflow` at the end of the edge.""" + node: PlatformRepositoryWorkflow } """ -A filter to be used against `PlatformFunctionApiBinding` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `PlatformRepositoryWorkflow` object types. All fields are combined with a logical ‘and.’ """ -input PlatformFunctionApiBindingFilter { - """Filter by the object’s `alias` field.""" - alias: StringFilter - +input PlatformRepositoryWorkflowFilter { """Checks for all expressions in this list.""" - and: [PlatformFunctionApiBindingFilter!] + and: [PlatformRepositoryWorkflowFilter!] - """Filter by the object’s `apiId` field.""" - apiId: UUIDFilter + """Filter by the object’s `cancelInProgress` field.""" + cancelInProgress: BooleanFilter - """Filter by the object’s `config` field.""" - config: JSONFilter + """Filter by the object’s `concurrencyKey` field.""" + concurrencyKey: StringFilter """Filter by the object’s `createdAt` field.""" createdAt: DatetimeFilter - """Filter by the object’s `functionDefinition` relation.""" - functionDefinition: PlatformFunctionDefinitionFilter + """Filter by the object’s `createdBy` field.""" + createdBy: UUIDFilter - """Filter by the object’s `functionDefinitionId` field.""" - functionDefinitionId: UUIDFilter + """Filter by the object’s `createdByPrincipal` field.""" + createdByPrincipal: UUIDFilter + + """Filter by the object’s `eventType` field.""" + eventType: StringFilter + + """Filter by the object’s `graph` relation.""" + graph: FunctionGraphFilter + + """A related `graph` exists.""" + graphExists: Boolean + + """Filter by the object’s `graphId` field.""" + graphId: UUIDFilter """Filter by the object’s `id` field.""" id: UUIDFilter + """Filter by the object’s `inputs` field.""" + inputs: JSONFilter + + """Filter by the object’s `isEnabled` field.""" + isEnabled: BooleanFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + """Negates the expression.""" - not: PlatformFunctionApiBindingFilter + not: PlatformRepositoryWorkflowFilter """Checks for any expressions in this list.""" - or: [PlatformFunctionApiBindingFilter!] + or: [PlatformRepositoryWorkflowFilter!] + + """Filter by the object’s `platformBuildsByWorkflowId` relation.""" + platformBuildsByWorkflowId: PlatformRepositoryWorkflowToManyPlatformBuildFilter + + """`platformBuildsByWorkflowId` exist.""" + platformBuildsByWorkflowIdExist: Boolean """ - Filter by the object’s `platformFunctionInvocationsByApiBindingId` relation. + Filter by the object’s `platformRepositoryRequiredChecksByWorkflowId` relation. """ - platformFunctionInvocationsByApiBindingId: PlatformFunctionApiBindingToManyPlatformFunctionInvocationFilter + platformRepositoryRequiredChecksByWorkflowId: PlatformRepositoryWorkflowToManyPlatformRepositoryRequiredCheckFilter - """`platformFunctionInvocationsByApiBindingId` exist.""" - platformFunctionInvocationsByApiBindingIdExist: Boolean + """`platformRepositoryRequiredChecksByWorkflowId` exist.""" + platformRepositoryRequiredChecksByWorkflowIdExist: Boolean + + """Filter by the object’s `refPattern` field.""" + refPattern: StringFilter + + """Filter by the object’s `repository` relation.""" + repository: PlatformRepositoryFilter + + """Filter by the object’s `repositoryId` field.""" + repositoryId: UUIDFilter + + """Filter by the object’s `requiredSecrets` field.""" + requiredSecrets: StringListFilter + + """Filter by the object’s `slug` field.""" + slug: StringFilter """Filter by the object’s `updatedAt` field.""" updatedAt: DatetimeFilter -} -"""An input for mutations affecting `PlatformFunctionApiBinding`""" -input PlatformFunctionApiBindingInput { - """Binding alias (e.g. default, staging, production)""" - alias: String + """Filter by the object’s `updatedBy` field.""" + updatedBy: UUIDFilter - """API endpoint this function is bound to""" - apiId: UUID! + """Filter by the object’s `updatedByPrincipal` field.""" + updatedByPrincipal: UUIDFilter +} - """Per-binding configuration (overrides, routing rules, etc.)""" - config: JSON +"""An input for mutations affecting `PlatformRepositoryWorkflow`""" +input PlatformRepositoryWorkflowInput { + """ + Whether a new build cancels a running build with the same concurrency key instead of queueing + """ + cancelInProgress: Boolean + + """ + Builds of this workflow sharing this key run one at a time (NULL = unlimited) + """ + concurrencyKey: String createdAt: Datetime + createdBy: UUID + createdByPrincipal: UUID - """Function definition this binding belongs to""" - functionDefinitionId: UUID! + """Event type that fires this workflow""" + eventType: String! + + """Flow graph to run when this workflow fires""" + graphId: UUID id: UUID + + """Static inputs merged into the graph run alongside the event""" + inputs: JSON + + """Whether matching events fire this workflow""" + isEnabled: Boolean + + """Human-readable workflow name""" + name: String! + + """Glob the event ref must match (NULL matches any ref)""" + refPattern: String + + """Repository whose events this workflow listens to""" + repositoryId: UUID! + + """ + Secret names this workflow's builds may resolve, intersected with the build lane's realm + """ + requiredSecrets: [String] + + """URL-safe identifier, unique within the repository""" + slug: String! updatedAt: Datetime + updatedBy: UUID + updatedByPrincipal: UUID } -"""Methods to use when ordering `PlatformFunctionApiBinding`.""" -enum PlatformFunctionApiBindingOrderBy { - ALIAS_ASC - ALIAS_DESC - API_ID_ASC - API_ID_DESC - CONFIG_ASC - CONFIG_DESC +"""Methods to use when ordering `PlatformRepositoryWorkflow`.""" +enum PlatformRepositoryWorkflowOrderBy { + CANCEL_IN_PROGRESS_ASC + CANCEL_IN_PROGRESS_DESC + CONCURRENCY_KEY_ASC + CONCURRENCY_KEY_DESC CREATED_AT_ASC CREATED_AT_DESC - FUNCTION_DEFINITION_ID_ASC - FUNCTION_DEFINITION_ID_DESC + CREATED_BY_ASC + CREATED_BY_DESC + CREATED_BY_PRINCIPAL_ASC + CREATED_BY_PRINCIPAL_DESC + EVENT_TYPE_ASC + EVENT_TYPE_DESC + GRAPH_ID_ASC + GRAPH_ID_DESC ID_ASC ID_DESC + INPUTS_ASC + INPUTS_DESC + IS_ENABLED_ASC + IS_ENABLED_DESC + NAME_ASC + NAME_DESC NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC + REF_PATTERN_ASC + REF_PATTERN_DESC + REPOSITORY_ID_ASC + REPOSITORY_ID_DESC + REQUIRED_SECRETS_ASC + REQUIRED_SECRETS_DESC + SLUG_ASC + SLUG_DESC UPDATED_AT_ASC UPDATED_AT_DESC + UPDATED_BY_ASC + UPDATED_BY_DESC + UPDATED_BY_PRINCIPAL_ASC + UPDATED_BY_PRINCIPAL_DESC } """ -Represents an update to a `PlatformFunctionApiBinding`. Fields that are set will be updated. +Represents an update to a `PlatformRepositoryWorkflow`. Fields that are set will be updated. """ -input PlatformFunctionApiBindingPatch { - """Binding alias (e.g. default, staging, production)""" - alias: String - - """API endpoint this function is bound to""" - apiId: UUID +input PlatformRepositoryWorkflowPatch { + """ + Whether a new build cancels a running build with the same concurrency key instead of queueing + """ + cancelInProgress: Boolean - """Per-binding configuration (overrides, routing rules, etc.)""" - config: JSON + """ + Builds of this workflow sharing this key run one at a time (NULL = unlimited) + """ + concurrencyKey: String createdAt: Datetime + createdBy: UUID + createdByPrincipal: UUID - """Function definition this binding belongs to""" - functionDefinitionId: UUID + """Event type that fires this workflow""" + eventType: String + + """Flow graph to run when this workflow fires""" + graphId: UUID id: UUID + + """Static inputs merged into the graph run alongside the event""" + inputs: JSON + + """Whether matching events fire this workflow""" + isEnabled: Boolean + + """Human-readable workflow name""" + name: String + + """Glob the event ref must match (NULL matches any ref)""" + refPattern: String + + """Repository whose events this workflow listens to""" + repositoryId: UUID + + """ + Secret names this workflow's builds may resolve, intersected with the build lane's realm + """ + requiredSecrets: [String] + + """URL-safe identifier, unique within the repository""" + slug: String updatedAt: Datetime + updatedBy: UUID + updatedByPrincipal: UUID } """ -A filter to be used against many `PlatformFunctionInvocation` object types. All fields are combined with a logical ‘and.’ +A filter to be used against many `PlatformBuild` object types. All fields are combined with a logical ‘and.’ """ -input PlatformFunctionApiBindingToManyPlatformFunctionInvocationFilter { +input PlatformRepositoryWorkflowToManyPlatformBuildFilter { """Filters to entities where every related entity matches.""" - every: PlatformFunctionInvocationFilter + every: PlatformBuildFilter """Filters to entities where no related entity matches.""" - none: PlatformFunctionInvocationFilter + none: PlatformBuildFilter """Filters to entities where at least one related entity matches.""" - some: PlatformFunctionInvocationFilter + some: PlatformBuildFilter } """ -Capability bindings — declarative grants of typed resource capabilities (buckets) to function/graph holders per lifecycle +A filter to be used against many `PlatformRepositoryRequiredCheck` object types. All fields are combined with a logical ‘and.’ """ -type PlatformFunctionCapabilityBinding { - """Bucket this capability targets (exactly one typed target is set)""" - bucketId: UUID - createdAt: Datetime +input PlatformRepositoryWorkflowToManyPlatformRepositoryRequiredCheckFilter { + """Filters to entities where every related entity matches.""" + every: PlatformRepositoryRequiredCheckFilter - """ - Reads a single `PlatformFunctionDefinition` that is related to this `PlatformFunctionCapabilityBinding`. - """ - function: PlatformFunctionDefinition + """Filters to entities where no related entity matches.""" + none: PlatformRepositoryRequiredCheckFilter + + """Filters to entities where at least one related entity matches.""" + some: PlatformRepositoryRequiredCheckFilter +} + +""" +Unified K8s resource declarations — stores desired state (spec) and observed state (status) for all resource kinds within a namespace +""" +type PlatformResource { + """Freeform metadata for tooling and operational notes""" + annotations: JSON! """ - Function definition holding this capability (exactly one of function_id / graph_id is set) + CPU limit in millicores, derived from spec.resources.limits.cpu (NULL if unset/invalid) """ - functionId: UUID + cpuLimitMillicores: BigInt """ - Flow graph holding this capability (exactly one of function_id / graph_id is set) + Requested CPU in millicores, derived from spec.resources.requests.cpu (NULL if unset/invalid) """ - graphId: UUID + cpuRequestMillicores: BigInt + createdAt: Datetime + createdBy: UUID + createdByPrincipal: UUID + + """Cumulative error count for this resource""" + errorCount: Int! id: UUID! """ - Runtime handle the holder addresses this capability by (e.g. default, scratch) + Pinned image reference this resource runs (registry host/repository:tag or @digest), written by promotion; NULL means spec.image decides """ - key: String! + imageRef: String """ - Lifecycle the capability applies to: deployment (build/deploy time), execution (per invocation), root_execution (root of a graph execution tree) + Reads a single `PlatformResourceInstallation` that is related to this `PlatformResource`. """ - lifecycle: String! - - """Per-binding annotations (no runtime semantics)""" - metadata: JSON - updatedAt: Datetime -} + installation: PlatformResourceInstallation -"""A connection to a list of `PlatformFunctionCapabilityBinding` values.""" -type PlatformFunctionCapabilityBindingConnection { """ - A list of edges which contains the `PlatformFunctionCapabilityBinding` and cursor to aid in pagination. + Installation ("release") this resource belongs to (NULL for standalone resources) """ - edges: [PlatformFunctionCapabilityBindingEdge]! - - """A list of `PlatformFunctionCapabilityBinding` objects.""" - nodes: [PlatformFunctionCapabilityBinding]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! + installationId: UUID """ - The count of *all* `PlatformFunctionCapabilityBinding` you could get from the connection. + Provider slugs (e.g. mailgun, postgres) associated with this resource. The UI uses this to auto-fill required_secrets and required_configs from integration_providers. """ - totalCount: Int! -} + integrations: [String]! -"""A `PlatformFunctionCapabilityBinding` edge in the connection.""" -type PlatformFunctionCapabilityBindingEdge { - """A cursor for use in pagination.""" - cursor: Cursor + """ + Resource kind: Deployment, StatefulSet, Job, Service, Ingress, Certificate, ClusterIssuer + """ + kind: String! - """The `PlatformFunctionCapabilityBinding` at the end of the edge.""" - node: PlatformFunctionCapabilityBinding -} + """Key/value pairs for selecting and filtering resources""" + labels: JSON! -""" -A filter to be used against `PlatformFunctionCapabilityBinding` object types. All fields are combined with a logical ‘and.’ -""" -input PlatformFunctionCapabilityBindingFilter { - """Checks for all expressions in this list.""" - and: [PlatformFunctionCapabilityBindingFilter!] + """Most recent provisioning or runtime error message""" + lastError: String - """Filter by the object’s `bucketId` field.""" - bucketId: UUIDFilter + """ + Last time a usage heartbeat was received for this resource (NULL until first heartbeat) + """ + lastHeartbeatAt: Datetime - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter + """ + Memory limit in bytes, derived from spec.resources.limits.memory (NULL if unset/invalid) + """ + memoryLimitBytes: BigInt - """Filter by the object’s `function` relation.""" - function: PlatformFunctionDefinitionFilter + """ + Requested memory in bytes, derived from spec.resources.requests.memory (NULL if unset/invalid) + """ + memoryRequestBytes: BigInt - """A related `function` exists.""" - functionExists: Boolean + """Human-readable resource name""" + name: String! - """Filter by the object’s `functionId` field.""" - functionId: UUIDFilter + """ + Reads a single `PlatformNamespace` that is related to this `PlatformResource`. + """ + namespace: PlatformNamespace - """Filter by the object’s `graphId` field.""" - graphId: UUIDFilter + """ + Namespace this resource belongs to (security boundary, maps to K8s namespace) + """ + namespaceId: UUID! - """Filter by the object’s `id` field.""" - id: UUIDFilter + """ + Reads and enables pagination through a set of `PlatformResourceStatusCheck`. + """ + platformResourceStatusChecksByResourceId( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """Filter by the object’s `key` field.""" - key: StringFilter + """Read all values in the set before (above) this cursor.""" + before: Cursor - """Filter by the object’s `lifecycle` field.""" - lifecycle: StringFilter + """Only read the first `n` values of the set.""" + first: Int - """Filter by the object’s `metadata` field.""" - metadata: JSONFilter + """Only read the last `n` values of the set.""" + last: Int - """Negates the expression.""" - not: PlatformFunctionCapabilityBindingFilter + """ + 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: [PlatformFunctionCapabilityBindingFilter!] + """The method to use when ordering `PlatformResourceStatusCheck`.""" + orderBy: [PlatformResourceStatusCheckOrderBy!] = [PRIMARY_KEY_ASC] - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter -} + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformResourceStatusCheckFilter + ): PlatformResourceStatusCheckConnection! -"""An input for mutations affecting `PlatformFunctionCapabilityBinding`""" -input PlatformFunctionCapabilityBindingInput { - """Bucket this capability targets (exactly one typed target is set)""" - bucketId: UUID - createdAt: Datetime + """ + Config/secret realm this resource resolves against. Per key, the realm-specific atom wins over the NULL-realm default. NULL = the default lane. + """ + realm: String """ - Function definition holding this capability (exactly one of function_id / graph_id is set) + Desired pod count, derived from spec.replicas — the multiplier for total requested capacity (NULL if unset/invalid) """ - functionId: UUID + replicas: Int """ - Flow graph holding this capability (exactly one of function_id / graph_id is set) + Embedded config requirements: array of (name, required, provider) tuples — extends the linked definition's requirements. provider is the integration slug this requirement belongs to, if any. """ - graphId: UUID - id: UUID + requiredConfigs: [ResourceRequirement]! """ - Runtime handle the holder addresses this capability by (e.g. default, scratch) + Embedded secret requirements: array of (name, required, provider) tuples — extends the linked definition's requirements. provider is the integration slug this requirement belongs to, if any. """ - key: String + requiredSecrets: [ResourceRequirement]! """ - Lifecycle the capability applies to: deployment (build/deploy time), execution (per invocation), root_execution (root of a graph execution tree) + Reads a single `PlatformResourceDefinition` that is related to this `PlatformResource`. """ - lifecycle: String! + resourceDefinition: PlatformResourceDefinition - """Per-binding annotations (no runtime semantics)""" - metadata: JSON - updatedAt: Datetime -} + """ + Definition template this resource was created from (NULL for standalone resources) + """ + resourceDefinitionId: UUID -"""Methods to use when ordering `PlatformFunctionCapabilityBinding`.""" -enum PlatformFunctionCapabilityBindingOrderBy { - BUCKET_ID_ASC - BUCKET_ID_DESC - CREATED_AT_ASC - CREATED_AT_DESC - FUNCTION_ID_ASC - FUNCTION_ID_DESC - GRAPH_ID_ASC - GRAPH_ID_DESC - ID_ASC - ID_DESC - KEY_ASC - KEY_DESC - LIFECYCLE_ASC - LIFECYCLE_DESC - METADATA_ASC - METADATA_DESC - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC -} + """URL-safe identifier, unique within (namespace_id, kind)""" + slug: String! -""" -Represents an update to a `PlatformFunctionCapabilityBinding`. Fields that are set will be updated. -""" -input PlatformFunctionCapabilityBindingPatch { - """Bucket this capability targets (exactly one typed target is set)""" - bucketId: UUID - createdAt: Datetime + """ + Desired state — kind-specific configuration (image, ports, resources, etc.). Opaque to DB; validated by K8s. + """ + spec: JSON! """ - Function definition holding this capability (exactly one of function_id / graph_id is set) + Resource lifecycle status: pending, provisioning, active, completed, failed, draining, deleting """ - functionId: UUID + status: String! """ - Flow graph holding this capability (exactly one of function_id / graph_id is set) + Observed state from K8s — populated by handlers after reconciliation (service_url, clone_url, replicas, etc.) """ - graphId: UUID - id: UUID + statusObserved: JSON """ - Runtime handle the holder addresses this capability by (e.g. default, scratch) + Storage class/tier, derived from the legacy spec.storage_class else spec.storage[0].class (NULL if unset) """ - key: String + storageClass: String """ - Lifecycle the capability applies to: deployment (build/deploy time), execution (per invocation), root_execution (root of a graph execution tree) + Declared persistent volume bytes per pod, summed over spec.storage[] plus the legacy spec.storage_size (NULL if none declared) """ - lifecycle: String + storageSizeBytes: BigInt - """Per-binding annotations (no runtime semantics)""" - metadata: JSON + """ + Total declared persistent volume bytes for the resource: per-pod bytes times replicas for StatefulSet (per-ordinal claims), per-pod bytes otherwise (claims shared across replicas) + """ + storageTotalBytes: BigInt updatedAt: Datetime + updatedBy: UUID + updatedByPrincipal: UUID } -""" -Function definitions — registered cloud functions with routing, queue, and retry configuration -""" -type PlatformFunctionDefinition { +"""A connection to a list of `PlatformResource` values.""" +type PlatformResourceConnection { """ - 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. + A list of edges which contains the `PlatformResource` and cursor to aid in pagination. """ - accessChannels: [String]! + edges: [PlatformResourceEdge]! + + """A list of `PlatformResource` objects.""" + nodes: [PlatformResource]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! """ - Whether executions are metered through the invocation ledger and billing quota gate + The count of *all* `PlatformResource` you could get from the connection. """ - billable: Boolean! + totalCount: Int! +} - """Function task category (e.g. email, embed, chunk, custom)""" - category: String! +type PlatformResourceDeclaredCapacity { + cpuLimitMillicores: BigInt + cpuRequestMillicores: BigInt + installationId: UUID + isTransient: Boolean + kind: String + memoryLimitBytes: BigInt + memoryRequestBytes: BigInt + namespaceId: UUID + podCountMax: Int + podCountMin: Int + source: String + sourceId: UUID + storageSizeBytes: BigInt + storageTotalBytes: BigInt +} +"""A connection to a list of `PlatformResourceDeclaredCapacity` values.""" +type PlatformResourceDeclaredCapacityConnection { """ - Knative containerConcurrency — max concurrent requests per pod instance + A list of edges which contains the `PlatformResourceDeclaredCapacity` and cursor to aid in pagination. """ - concurrency: Int! + edges: [PlatformResourceDeclaredCapacityEdge]! + + """A list of `PlatformResourceDeclaredCapacity` objects.""" + nodes: [PlatformResourceDeclaredCapacity]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! """ - CPU limit in millicores, derived from resources.limits.cpu (NULL if unset/invalid) + The count of *all* `PlatformResourceDeclaredCapacity` you could get from the connection. """ - cpuLimitMillicores: BigInt + totalCount: Int! +} + +"""A `PlatformResourceDeclaredCapacity` edge in the connection.""" +type PlatformResourceDeclaredCapacityEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `PlatformResourceDeclaredCapacity` at the end of the edge.""" + node: PlatformResourceDeclaredCapacity +} + +""" +A filter to be used against `PlatformResourceDeclaredCapacity` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformResourceDeclaredCapacityFilter { + """Checks for all expressions in this list.""" + and: [PlatformResourceDeclaredCapacityFilter!] + + """Filter by the object’s `cpuLimitMillicores` field.""" + cpuLimitMillicores: BigIntFilter + + """Filter by the object’s `cpuRequestMillicores` field.""" + cpuRequestMillicores: BigIntFilter + + """Filter by the object’s `installationId` field.""" + installationId: UUIDFilter + + """Filter by the object’s `isTransient` field.""" + isTransient: BooleanFilter + + """Filter by the object’s `kind` field.""" + kind: StringFilter + + """Filter by the object’s `memoryLimitBytes` field.""" + memoryLimitBytes: BigIntFilter + + """Filter by the object’s `memoryRequestBytes` field.""" + memoryRequestBytes: BigIntFilter + + """Filter by the object’s `namespaceId` field.""" + namespaceId: UUIDFilter + + """Negates the expression.""" + not: PlatformResourceDeclaredCapacityFilter + + """Checks for any expressions in this list.""" + or: [PlatformResourceDeclaredCapacityFilter!] + + """Filter by the object’s `podCountMax` field.""" + podCountMax: IntFilter + + """Filter by the object’s `podCountMin` field.""" + podCountMin: IntFilter + + """Filter by the object’s `source` field.""" + source: StringFilter + + """Filter by the object’s `sourceId` field.""" + sourceId: UUIDFilter + + """Filter by the object’s `storageSizeBytes` field.""" + storageSizeBytes: BigIntFilter + + """Filter by the object’s `storageTotalBytes` field.""" + storageTotalBytes: BigIntFilter +} + +"""Methods to use when ordering `PlatformResourceDeclaredCapacity`.""" +enum PlatformResourceDeclaredCapacityOrderBy { + CPU_LIMIT_MILLICORES_ASC + CPU_LIMIT_MILLICORES_DESC + CPU_REQUEST_MILLICORES_ASC + CPU_REQUEST_MILLICORES_DESC + INSTALLATION_ID_ASC + INSTALLATION_ID_DESC + IS_TRANSIENT_ASC + IS_TRANSIENT_DESC + KIND_ASC + KIND_DESC + MEMORY_LIMIT_BYTES_ASC + MEMORY_LIMIT_BYTES_DESC + MEMORY_REQUEST_BYTES_ASC + MEMORY_REQUEST_BYTES_DESC + NAMESPACE_ID_ASC + NAMESPACE_ID_DESC + NATURAL + POD_COUNT_MAX_ASC + POD_COUNT_MAX_DESC + POD_COUNT_MIN_ASC + POD_COUNT_MIN_DESC + SOURCE_ASC + SOURCE_DESC + SOURCE_ID_ASC + SOURCE_ID_DESC + STORAGE_SIZE_BYTES_ASC + STORAGE_SIZE_BYTES_DESC + STORAGE_TOTAL_BYTES_ASC + STORAGE_TOTAL_BYTES_DESC +} - """ - Requested CPU in millicores, derived from resources.requests.cpu (NULL if unset/invalid) - """ - cpuRequestMillicores: BigInt +""" +Resource definitions — templates for resource kinds declaring default spec and secret/config requirements +""" +type PlatformResourceDefinition { + """Freeform metadata for tooling and operational notes""" + annotations: JSON! createdAt: Datetime + createdBy: UUID + createdByPrincipal: UUID - """Human-readable description of what this function does""" - description: String - - """Palette grouping category (e.g. email, data, ai, custom)""" - fnCategory: String - - """ - Ordered array of module_table column names holding the generated function names to invoke when runtime=sql (module mode). NULL for direct mode and other runtimes. - """ - functionColumns: JSON - - """ - Reads a single `FunctionGraph` that is related to this `PlatformFunctionDefinition`. - """ - graph: FunctionGraph - - """ - Existing flow graph invoked when runtime=graph. Required for graph runtime and forbidden for all other runtimes. - """ - graphId: UUID + """Template spec for creating resource instances of this kind""" + defaultSpec: JSON! - """Icon identifier for UI palette rendering (e.g. mail, database, code)""" - icon: String + """What this resource definition provides""" + description: String id: UUID! """ - Docker image reference (e.g. ghcr.io/constructive-io/email-send-fn:latest). Required when runtime=http or runtime=resource. NULL for inline functions. - """ - image: String - - """ - Data input ports: [{name, type, description?, optional?, multi?, schema?}] - """ - inputs: JSON! - - """ - Provider slugs (e.g. mailgun, postgres) associated with this function. The UI uses this to auto-fill required_secrets and required_configs from integration_providers. + Provider slugs (e.g. mailgun, postgres) associated with this resource definition. The UI uses this to auto-fill required_secrets and required_configs from integration_providers. """ integrations: [String]! """ - Whether this function definition is published to the public catalog for direct authenticated invocation. Default false = internal-only via add_job() - """ - isPublished: Boolean! - - """Maximum retry attempts for the underlying job""" - maxAttempts: Int! - - """ - Memory limit in bytes, derived from resources.limits.memory (NULL if unset/invalid) - """ - memoryLimitBytes: BigInt - - """ - Requested memory in bytes, derived from resources.requests.memory (NULL if unset/invalid) + Resource kind: Deployment, StatefulSet, Job, Service, Ingress, Certificate, ClusterIssuer, or custom kinds """ - memoryRequestBytes: BigInt + kind: String! - """ - metaschema_modules_public table whose per-database row carries the generated function names when runtime=sql (module mode). NULL for direct mode and other runtimes. - """ - moduleTable: String + """Key/value pairs for selecting and filtering definitions""" + labels: JSON! - """ - Function name within category (e.g. send_verification_link, process_file_embedding) - """ + """Human-readable definition name""" name: String! """ - Data output ports: [{name, type, description?, optional?, multi?, schema?}] - """ - outputs: JSON! - - """ - Ordered bind-parameter mapping for runtime=sql: [{name, type}]. payload[name] is bound as $n::type. + Reads a single `PlatformNamespace` that is related to this `PlatformResourceDefinition`. """ - payloadArgs: JSON! + namespace: PlatformNamespace """ - Reads and enables pagination through a set of `PlatformFunctionApiBinding`. + Namespace this definition belongs to (security boundary, maps to K8s namespace) """ - platformFunctionApiBindingsByFunctionDefinitionId( - """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 `PlatformFunctionApiBinding`.""" - orderBy: [PlatformFunctionApiBindingOrderBy!] = [PRIMARY_KEY_ASC] - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: PlatformFunctionApiBindingFilter - ): PlatformFunctionApiBindingConnection! + namespaceId: UUID! """ - Reads and enables pagination through a set of `PlatformFunctionCapabilityBinding`. + Declared parameter interface: [{key,label,type,default,required,min,max,options,group,order,bindings:[{path,template,scale,round,unit}]}]. Installation params are validated and compiled through these declarations; [] keeps the legacy raw spec overlay. """ - platformFunctionCapabilityBindingsByFunctionId( - """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 `PlatformFunctionCapabilityBinding`.""" - orderBy: [PlatformFunctionCapabilityBindingOrderBy!] = [PRIMARY_KEY_ASC] - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: PlatformFunctionCapabilityBindingFilter - ): PlatformFunctionCapabilityBindingConnection! + paramsSchema: JSON! - """ - Reads and enables pagination through a set of `PlatformWebhookEndpoint`. - """ - platformWebhookEndpointsByFunctionDefinitionId( + """Reads and enables pagination through a set of `PlatformResource`.""" + platformResourcesByResourceDefinitionId( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -14379,3031 +34531,3576 @@ type PlatformFunctionDefinition { """ offset: Int - """The method to use when ordering `PlatformWebhookEndpoint`.""" - orderBy: [PlatformWebhookEndpointOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `PlatformResource`.""" + orderBy: [PlatformResourceOrderBy!] = [PRIMARY_KEY_ASC] """ A filter to be used in determining which values should be returned by the collection. """ - where: PlatformWebhookEndpointFilter - ): PlatformWebhookEndpointConnection! - - """Job priority (lower = higher priority)""" - priority: Int! - - """ - Configuration properties: [{name, type, default?, description?, required?, schema?}] - """ - props: JSON! - - """ - Protected platform definition: narrower scopes cannot register the same task_identifier - """ - protected: Boolean! - - """ - Timestamp when this function was published. NULL means immediately published when is_published is true; future timestamps delay public visibility - """ - publishedAt: Datetime - - """Job queue name for serialization (e.g. email, ai, default)""" - queueName: String! - - """ - 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]! + where: PlatformResourceFilter + ): PlatformResourceConnection! """ Embedded config requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. """ requiredConfigs: [ResourceRequirement]! - """ - 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: [ResourceRequirement]! - """ - Container resource requests and limits: {requests: {memory, cpu}, limits: {memory, cpu}} - """ - resources: JSON! - - """ - Execution mode: http (Knative Service dispatch), inline (in-process in compute worker), handler (registered infrastructure handler), sql (generic SQL dispatch via a trusted direct target or module-resolved function names), resource (Kubernetes Job via the resource module with node-gateway callbacks), or graph (existing flow graph referenced by graph_id) - """ - runtime: String! - - """Maximum pod count for Knative autoscaling (maxScale)""" - scaleMax: Int! - - """Minimum pod count for Knative autoscaling (minScale)""" - scaleMin: Int! - - """ - Platform system definition: its task_identifier cannot be shadowed by non-platform registration - """ - system: Boolean! - - """ - Name of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. - """ - targetFunction: String - - """ - Schema of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. - """ - targetSchema: String + """URL-safe identifier, unique within (namespace_id, kind)""" + slug: String! """ - Routing slug generated as category || ':' || name (used by the Knative job worker for dispatch) + Min age before DELETE of a resource of this kind requires step-up; NULL inherits the 6h default """ - taskIdentifier: String - - """Knative request timeout in seconds""" - timeoutSeconds: Int! + stepUpMinAge: Interval updatedAt: Datetime - - """ - Whether this function has side effects and cannot be cached or memoized - """ - volatile: Boolean! + updatedBy: UUID + updatedByPrincipal: UUID } -"""A connection to a list of `PlatformFunctionDefinition` values.""" -type PlatformFunctionDefinitionConnection { +"""A connection to a list of `PlatformResourceDefinition` values.""" +type PlatformResourceDefinitionConnection { """ - A list of edges which contains the `PlatformFunctionDefinition` and cursor to aid in pagination. + A list of edges which contains the `PlatformResourceDefinition` and cursor to aid in pagination. """ - edges: [PlatformFunctionDefinitionEdge]! + edges: [PlatformResourceDefinitionEdge]! - """A list of `PlatformFunctionDefinition` objects.""" - nodes: [PlatformFunctionDefinition]! + """A list of `PlatformResourceDefinition` objects.""" + nodes: [PlatformResourceDefinition]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `PlatformFunctionDefinition` you could get from the connection. + The count of *all* `PlatformResourceDefinition` you could get from the connection. """ totalCount: Int! } -"""A `PlatformFunctionDefinition` edge in the connection.""" -type PlatformFunctionDefinitionEdge { +"""A `PlatformResourceDefinition` edge in the connection.""" +type PlatformResourceDefinitionEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `PlatformFunctionDefinition` at the end of the edge.""" - node: PlatformFunctionDefinition + """The `PlatformResourceDefinition` at the end of the edge.""" + node: PlatformResourceDefinition } """ -A filter to be used against `PlatformFunctionDefinition` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `PlatformResourceDefinition` object types. All fields are combined with a logical ‘and.’ """ -input PlatformFunctionDefinitionFilter { - """Filter by the object’s `accessChannels` field.""" - accessChannels: StringListFilter - +input PlatformResourceDefinitionFilter { """Checks for all expressions in this list.""" - and: [PlatformFunctionDefinitionFilter!] - - """Filter by the object’s `billable` field.""" - billable: BooleanFilter - - """Filter by the object’s `category` field.""" - category: StringFilter - - """Filter by the object’s `concurrency` field.""" - concurrency: IntFilter - - """Filter by the object’s `cpuLimitMillicores` field.""" - cpuLimitMillicores: BigIntFilter + and: [PlatformResourceDefinitionFilter!] - """Filter by the object’s `cpuRequestMillicores` field.""" - cpuRequestMillicores: BigIntFilter + """Filter by the object’s `annotations` field.""" + annotations: JSONFilter """Filter by the object’s `createdAt` field.""" createdAt: DatetimeFilter - """Filter by the object’s `description` field.""" - description: StringFilter - - """Filter by the object’s `fnCategory` field.""" - fnCategory: StringFilter - - """Filter by the object’s `functionColumns` field.""" - functionColumns: JSONFilter - - """Filter by the object’s `graph` relation.""" - graph: FunctionGraphFilter + """Filter by the object’s `createdBy` field.""" + createdBy: UUIDFilter - """A related `graph` exists.""" - graphExists: Boolean + """Filter by the object’s `createdByPrincipal` field.""" + createdByPrincipal: UUIDFilter - """Filter by the object’s `graphId` field.""" - graphId: UUIDFilter + """Filter by the object’s `defaultSpec` field.""" + defaultSpec: JSONFilter - """Filter by the object’s `icon` field.""" - icon: StringFilter + """Filter by the object’s `description` field.""" + description: StringFilter """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `image` field.""" - image: StringFilter - - """Filter by the object’s `inputs` field.""" - inputs: JSONFilter - """Filter by the object’s `integrations` field.""" integrations: StringListFilter - """Filter by the object’s `isPublished` field.""" - isPublished: BooleanFilter - - """Filter by the object’s `maxAttempts` field.""" - maxAttempts: IntFilter - - """Filter by the object’s `memoryLimitBytes` field.""" - memoryLimitBytes: BigIntFilter - - """Filter by the object’s `memoryRequestBytes` field.""" - memoryRequestBytes: BigIntFilter + """Filter by the object’s `kind` field.""" + kind: StringFilter - """Filter by the object’s `moduleTable` field.""" - moduleTable: StringFilter + """Filter by the object’s `labels` field.""" + labels: JSONFilter """Filter by the object’s `name` field.""" name: StringFilter - """Negates the expression.""" - not: PlatformFunctionDefinitionFilter - - """Checks for any expressions in this list.""" - or: [PlatformFunctionDefinitionFilter!] - - """Filter by the object’s `outputs` field.""" - outputs: JSONFilter - - """Filter by the object’s `payloadArgs` field.""" - payloadArgs: JSONFilter + """Filter by the object’s `namespace` relation.""" + namespace: PlatformNamespaceFilter - """ - Filter by the object’s `platformFunctionApiBindingsByFunctionDefinitionId` relation. - """ - platformFunctionApiBindingsByFunctionDefinitionId: PlatformFunctionDefinitionToManyPlatformFunctionApiBindingFilter + """Filter by the object’s `namespaceId` field.""" + namespaceId: UUIDFilter - """`platformFunctionApiBindingsByFunctionDefinitionId` exist.""" - platformFunctionApiBindingsByFunctionDefinitionIdExist: Boolean + """Negates the expression.""" + not: PlatformResourceDefinitionFilter - """ - Filter by the object’s `platformFunctionCapabilityBindingsByFunctionId` relation. - """ - platformFunctionCapabilityBindingsByFunctionId: PlatformFunctionDefinitionToManyPlatformFunctionCapabilityBindingFilter + """Checks for any expressions in this list.""" + or: [PlatformResourceDefinitionFilter!] - """`platformFunctionCapabilityBindingsByFunctionId` exist.""" - platformFunctionCapabilityBindingsByFunctionIdExist: Boolean + """Filter by the object’s `paramsSchema` field.""" + paramsSchema: JSONFilter """ - Filter by the object’s `platformWebhookEndpointsByFunctionDefinitionId` relation. + Filter by the object’s `platformResourcesByResourceDefinitionId` relation. """ - platformWebhookEndpointsByFunctionDefinitionId: PlatformFunctionDefinitionToManyPlatformWebhookEndpointFilter + platformResourcesByResourceDefinitionId: PlatformResourceDefinitionToManyPlatformResourceFilter - """`platformWebhookEndpointsByFunctionDefinitionId` exist.""" - platformWebhookEndpointsByFunctionDefinitionIdExist: Boolean + """`platformResourcesByResourceDefinitionId` exist.""" + platformResourcesByResourceDefinitionIdExist: Boolean - """Filter by the object’s `priority` field.""" - priority: IntFilter + """Filter by the object’s `slug` field.""" + slug: StringFilter - """Filter by the object’s `props` field.""" - props: JSONFilter + """Filter by the object’s `stepUpMinAge` field.""" + stepUpMinAge: IntervalFilter - """Filter by the object’s `protected` field.""" - protected: BooleanFilter + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter - """Filter by the object’s `publishedAt` field.""" - publishedAt: DatetimeFilter + """Filter by the object’s `updatedBy` field.""" + updatedBy: UUIDFilter - """Filter by the object’s `queueName` field.""" - queueName: StringFilter + """Filter by the object’s `updatedByPrincipal` field.""" + updatedByPrincipal: UUIDFilter +} - """Filter by the object’s `requiredBuckets` field.""" - requiredBuckets: StringListFilter +"""An input for mutations affecting `PlatformResourceDefinition`""" +input PlatformResourceDefinitionInput { + """Freeform metadata for tooling and operational notes""" + annotations: JSON + createdAt: Datetime + createdBy: UUID + createdByPrincipal: UUID - """Filter by the object’s `requiredModels` field.""" - requiredModels: StringListFilter + """Template spec for creating resource instances of this kind""" + defaultSpec: JSON - """Filter by the object’s `requiredModules` field.""" - requiredModules: StringListFilter + """What this resource definition provides""" + description: String + id: UUID - """Filter by the object’s `resources` field.""" - resources: JSONFilter + """ + Provider slugs (e.g. mailgun, postgres) associated with this resource definition. The UI uses this to auto-fill required_secrets and required_configs from integration_providers. + """ + integrations: [String] - """Filter by the object’s `runtime` field.""" - runtime: StringFilter + """ + Resource kind: Deployment, StatefulSet, Job, Service, Ingress, Certificate, ClusterIssuer, or custom kinds + """ + kind: String! - """Filter by the object’s `scaleMax` field.""" - scaleMax: IntFilter + """Key/value pairs for selecting and filtering definitions""" + labels: JSON - """Filter by the object’s `scaleMin` field.""" - scaleMin: IntFilter + """Human-readable definition name""" + name: String! - """Filter by the object’s `system` field.""" - system: BooleanFilter + """ + Namespace this definition belongs to (security boundary, maps to K8s namespace) + """ + namespaceId: UUID! - """Filter by the object’s `targetFunction` field.""" - targetFunction: StringFilter + """ + Declared parameter interface: [{key,label,type,default,required,min,max,options,group,order,bindings:[{path,template,scale,round,unit}]}]. Installation params are validated and compiled through these declarations; [] keeps the legacy raw spec overlay. + """ + paramsSchema: JSON - """Filter by the object’s `targetSchema` field.""" - targetSchema: StringFilter + """ + Embedded config requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. + """ + requiredConfigs: [ResourceRequirementInput] - """Filter by the object’s `taskIdentifier` field.""" - taskIdentifier: StringFilter + """ + Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. + """ + requiredSecrets: [ResourceRequirementInput] - """Filter by the object’s `timeoutSeconds` field.""" - timeoutSeconds: IntFilter + """URL-safe identifier, unique within (namespace_id, kind)""" + slug: String! - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter + """ + Min age before DELETE of a resource of this kind requires step-up; NULL inherits the 6h default + """ + stepUpMinAge: IntervalInput + updatedAt: Datetime + updatedBy: UUID + updatedByPrincipal: UUID +} - """Filter by the object’s `volatile` field.""" - volatile: BooleanFilter +"""Methods to use when ordering `PlatformResourceDefinition`.""" +enum PlatformResourceDefinitionOrderBy { + ANNOTATIONS_ASC + ANNOTATIONS_DESC + CREATED_AT_ASC + CREATED_AT_DESC + CREATED_BY_ASC + CREATED_BY_DESC + CREATED_BY_PRINCIPAL_ASC + CREATED_BY_PRINCIPAL_DESC + DEFAULT_SPEC_ASC + DEFAULT_SPEC_DESC + DESCRIPTION_ASC + DESCRIPTION_DESC + ID_ASC + ID_DESC + INTEGRATIONS_ASC + INTEGRATIONS_DESC + KIND_ASC + KIND_DESC + LABELS_ASC + LABELS_DESC + NAMESPACE_ID_ASC + NAMESPACE_ID_DESC + NAME_ASC + NAME_DESC + NATURAL + PARAMS_SCHEMA_ASC + PARAMS_SCHEMA_DESC + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + REQUIRED_CONFIGS_ASC + REQUIRED_CONFIGS_DESC + REQUIRED_SECRETS_ASC + REQUIRED_SECRETS_DESC + SLUG_ASC + SLUG_DESC + STEP_UP_MIN_AGE_ASC + STEP_UP_MIN_AGE_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + UPDATED_BY_ASC + UPDATED_BY_DESC + UPDATED_BY_PRINCIPAL_ASC + UPDATED_BY_PRINCIPAL_DESC } -"""An input for mutations affecting `PlatformFunctionDefinition`""" -input PlatformFunctionDefinitionInput { - """ - 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 - - """Function task category (e.g. email, embed, chunk, custom)""" - category: String! - - """ - Knative containerConcurrency — max concurrent requests per pod instance - """ - concurrency: Int +""" +Represents an update to a `PlatformResourceDefinition`. Fields that are set will be updated. +""" +input PlatformResourceDefinitionPatch { + """Freeform metadata for tooling and operational notes""" + annotations: JSON createdAt: Datetime + createdBy: UUID + createdByPrincipal: UUID - """Human-readable description of what this function does""" - description: String + """Template spec for creating resource instances of this kind""" + defaultSpec: JSON - """Palette grouping category (e.g. email, data, ai, custom)""" - fnCategory: String + """What this resource definition provides""" + description: String + id: UUID """ - Ordered array of module_table column names holding the generated function names to invoke when runtime=sql (module mode). NULL for direct mode and other runtimes. + Provider slugs (e.g. mailgun, postgres) associated with this resource definition. The UI uses this to auto-fill required_secrets and required_configs from integration_providers. """ - functionColumns: JSON + integrations: [String] """ - Existing flow graph invoked when runtime=graph. Required for graph runtime and forbidden for all other runtimes. + Resource kind: Deployment, StatefulSet, Job, Service, Ingress, Certificate, ClusterIssuer, or custom kinds """ - graphId: UUID + kind: String - """Icon identifier for UI palette rendering (e.g. mail, database, code)""" - icon: String - id: UUID + """Key/value pairs for selecting and filtering definitions""" + labels: JSON + + """Human-readable definition name""" + name: String """ - Docker image reference (e.g. ghcr.io/constructive-io/email-send-fn:latest). Required when runtime=http or runtime=resource. NULL for inline functions. + Namespace this definition belongs to (security boundary, maps to K8s namespace) """ - image: String + namespaceId: UUID """ - Data input ports: [{name, type, description?, optional?, multi?, schema?}] + Declared parameter interface: [{key,label,type,default,required,min,max,options,group,order,bindings:[{path,template,scale,round,unit}]}]. Installation params are validated and compiled through these declarations; [] keeps the legacy raw spec overlay. """ - inputs: JSON + paramsSchema: JSON """ - Provider slugs (e.g. mailgun, postgres) associated with this function. The UI uses this to auto-fill required_secrets and required_configs from integration_providers. + Embedded config requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. """ - integrations: [String] + requiredConfigs: [ResourceRequirementInput] """ - Whether this function definition is published to the public catalog for direct authenticated invocation. Default false = internal-only via add_job() + Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. """ - isPublished: Boolean + requiredSecrets: [ResourceRequirementInput] - """Maximum retry attempts for the underlying job""" - maxAttempts: Int + """URL-safe identifier, unique within (namespace_id, kind)""" + slug: String """ - metaschema_modules_public table whose per-database row carries the generated function names when runtime=sql (module mode). NULL for direct mode and other runtimes. + Min age before DELETE of a resource of this kind requires step-up; NULL inherits the 6h default """ - moduleTable: String + stepUpMinAge: IntervalInput + updatedAt: Datetime + updatedBy: UUID + updatedByPrincipal: UUID +} - """ - Function name within category (e.g. send_verification_link, process_file_embedding) - """ - name: String! +""" +A filter to be used against many `PlatformResource` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformResourceDefinitionToManyPlatformResourceFilter { + """Filters to entities where every related entity matches.""" + every: PlatformResourceFilter - """ - Data output ports: [{name, type, description?, optional?, multi?, schema?}] - """ - outputs: JSON + """Filters to entities where no related entity matches.""" + none: PlatformResourceFilter - """ - Ordered bind-parameter mapping for runtime=sql: [{name, type}]. payload[name] is bound as $n::type. - """ - payloadArgs: JSON + """Filters to entities where at least one related entity matches.""" + some: PlatformResourceFilter +} - """Job priority (lower = higher priority)""" - priority: Int +"""A `PlatformResource` edge in the connection.""" +type PlatformResourceEdge { + """A cursor for use in pagination.""" + cursor: Cursor - """ - Configuration properties: [{name, type, default?, description?, required?, schema?}] - """ - props: JSON + """The `PlatformResource` at the end of the edge.""" + node: PlatformResource +} +""" +Resource lifecycle events — audit log of provisioning, updates, and failure events +""" +type PlatformResourceEvent { """ - Protected platform definition: narrower scopes cannot register the same task_identifier + User who triggered this event; NULL only when no human actor was proven """ - protected: Boolean + actorId: UUID + + """Event timestamp (partition key)""" + createdAt: Datetime! """ - Timestamp when this function was published. NULL means immediately published when is_published is true; future timestamps delay public visibility + Event type: provisioned, provisioning, updated, failed, deprovisioned, health_check """ - publishedAt: Datetime + eventType: String! - """Job queue name for serialization (e.g. email, ai, default)""" - queueName: String + """Unique event identifier""" + id: UUID! - """ - 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] + """Human-readable description of the event""" + message: String - """ - Embedded config requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. - """ - requiredConfigs: [ResourceRequirementInput] + """Structured context (old/new values, error details, etc.)""" + metadata: JSON - """ - Inference model whitelist (e.g. gpt-4o, claude-3). Empty = no model requirements. - """ - requiredModels: [String] + """Resource this event belongs to""" + resourceId: UUID! +} +"""A connection to a list of `PlatformResourceEvent` values.""" +type PlatformResourceEventConnection { """ - 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. + A list of edges which contains the `PlatformResourceEvent` and cursor to aid in pagination. """ - requiredModules: [String] + edges: [PlatformResourceEventEdge]! - """ - Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. - """ - requiredSecrets: [ResourceRequirementInput] + """A list of `PlatformResourceEvent` objects.""" + nodes: [PlatformResourceEvent]! - """ - Container resource requests and limits: {requests: {memory, cpu}, limits: {memory, cpu}} - """ - resources: JSON + """Information to aid in pagination.""" + pageInfo: PageInfo! """ - Execution mode: http (Knative Service dispatch), inline (in-process in compute worker), handler (registered infrastructure handler), sql (generic SQL dispatch via a trusted direct target or module-resolved function names), resource (Kubernetes Job via the resource module with node-gateway callbacks), or graph (existing flow graph referenced by graph_id) + The count of *all* `PlatformResourceEvent` you could get from the connection. """ - runtime: String + totalCount: Int! +} - """Maximum pod count for Knative autoscaling (maxScale)""" - scaleMax: Int +"""A `PlatformResourceEvent` edge in the connection.""" +type PlatformResourceEventEdge { + """A cursor for use in pagination.""" + cursor: Cursor - """Minimum pod count for Knative autoscaling (minScale)""" - scaleMin: Int + """The `PlatformResourceEvent` at the end of the edge.""" + node: PlatformResourceEvent +} - """ - Platform system definition: its task_identifier cannot be shadowed by non-platform registration - """ - system: Boolean +""" +A filter to be used against `PlatformResourceEvent` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformResourceEventFilter { + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter - """ - Name of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. - """ - targetFunction: String + """Checks for all expressions in this list.""" + and: [PlatformResourceEventFilter!] + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `eventType` field.""" + eventType: StringFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `message` field.""" + message: StringFilter + + """Filter by the object’s `metadata` field.""" + metadata: JSONFilter + + """Negates the expression.""" + not: PlatformResourceEventFilter + + """Checks for any expressions in this list.""" + or: [PlatformResourceEventFilter!] + + """Filter by the object’s `resourceId` field.""" + resourceId: UUIDFilter +} +"""An input for mutations affecting `PlatformResourceEvent`""" +input PlatformResourceEventInput { """ - Schema of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. + User who triggered this event; NULL only when no human actor was proven """ - targetSchema: String + actorId: UUID - """Knative request timeout in seconds""" - timeoutSeconds: Int - updatedAt: Datetime + """Event timestamp (partition key)""" + createdAt: Datetime """ - Whether this function has side effects and cannot be cached or memoized + Event type: provisioned, provisioning, updated, failed, deprovisioned, health_check """ - volatile: Boolean + eventType: String! + + """Unique event identifier""" + id: UUID + + """Human-readable description of the event""" + message: String + + """Structured context (old/new values, error details, etc.)""" + metadata: JSON + + """Resource this event belongs to""" + resourceId: UUID! } -"""Methods to use when ordering `PlatformFunctionDefinition`.""" -enum PlatformFunctionDefinitionOrderBy { - ACCESS_CHANNELS_ASC - ACCESS_CHANNELS_DESC - BILLABLE_ASC - BILLABLE_DESC - CATEGORY_ASC - CATEGORY_DESC - CONCURRENCY_ASC - CONCURRENCY_DESC - CPU_LIMIT_MILLICORES_ASC - CPU_LIMIT_MILLICORES_DESC - CPU_REQUEST_MILLICORES_ASC - CPU_REQUEST_MILLICORES_DESC +"""Methods to use when ordering `PlatformResourceEvent`.""" +enum PlatformResourceEventOrderBy { + ACTOR_ID_ASC + ACTOR_ID_DESC CREATED_AT_ASC CREATED_AT_DESC - DESCRIPTION_ASC - DESCRIPTION_DESC - FN_CATEGORY_ASC - FN_CATEGORY_DESC - FUNCTION_COLUMNS_ASC - FUNCTION_COLUMNS_DESC - GRAPH_ID_ASC - GRAPH_ID_DESC - ICON_ASC - ICON_DESC + EVENT_TYPE_ASC + EVENT_TYPE_DESC ID_ASC ID_DESC - IMAGE_ASC - IMAGE_DESC - INPUTS_ASC - INPUTS_DESC - INTEGRATIONS_ASC - INTEGRATIONS_DESC - IS_PUBLISHED_ASC - IS_PUBLISHED_DESC - MAX_ATTEMPTS_ASC - MAX_ATTEMPTS_DESC - MEMORY_LIMIT_BYTES_ASC - MEMORY_LIMIT_BYTES_DESC - MEMORY_REQUEST_BYTES_ASC - MEMORY_REQUEST_BYTES_DESC - MODULE_TABLE_ASC - MODULE_TABLE_DESC - NAME_ASC - NAME_DESC + MESSAGE_ASC + MESSAGE_DESC + METADATA_ASC + METADATA_DESC NATURAL - OUTPUTS_ASC - OUTPUTS_DESC - PAYLOAD_ARGS_ASC - PAYLOAD_ARGS_DESC PRIMARY_KEY_ASC PRIMARY_KEY_DESC - PRIORITY_ASC - PRIORITY_DESC - PROPS_ASC - PROPS_DESC - PROTECTED_ASC - PROTECTED_DESC - PUBLISHED_AT_ASC - PUBLISHED_AT_DESC - QUEUE_NAME_ASC - QUEUE_NAME_DESC - REQUIRED_BUCKETS_ASC - REQUIRED_BUCKETS_DESC - REQUIRED_CONFIGS_ASC - REQUIRED_CONFIGS_DESC - REQUIRED_MODELS_ASC - REQUIRED_MODELS_DESC - REQUIRED_MODULES_ASC - REQUIRED_MODULES_DESC - REQUIRED_SECRETS_ASC - REQUIRED_SECRETS_DESC - RESOURCES_ASC - RESOURCES_DESC - RUNTIME_ASC - RUNTIME_DESC - SCALE_MAX_ASC - SCALE_MAX_DESC - SCALE_MIN_ASC - SCALE_MIN_DESC - SYSTEM_ASC - SYSTEM_DESC - TARGET_FUNCTION_ASC - TARGET_FUNCTION_DESC - TARGET_SCHEMA_ASC - TARGET_SCHEMA_DESC - TASK_IDENTIFIER_ASC - TASK_IDENTIFIER_DESC - TIMEOUT_SECONDS_ASC - TIMEOUT_SECONDS_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC - VOLATILE_ASC - VOLATILE_DESC + RESOURCE_ID_ASC + RESOURCE_ID_DESC } """ -Represents an update to a `PlatformFunctionDefinition`. Fields that are set will be updated. +Represents an update to a `PlatformResourceEvent`. Fields that are set will be updated. """ -input PlatformFunctionDefinitionPatch { +input PlatformResourceEventPatch { """ - 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. + User who triggered this event; NULL only when no human actor was proven """ - accessChannels: [String] + actorId: UUID + + """Event timestamp (partition key)""" + createdAt: Datetime """ - Whether executions are metered through the invocation ledger and billing quota gate + Event type: provisioned, provisioning, updated, failed, deprovisioned, health_check """ - billable: Boolean + eventType: String - """Function task category (e.g. email, embed, chunk, custom)""" - category: String + """Unique event identifier""" + id: UUID - """ - Knative containerConcurrency — max concurrent requests per pod instance - """ - concurrency: Int - createdAt: Datetime + """Human-readable description of the event""" + message: String - """Human-readable description of what this function does""" - description: String + """Structured context (old/new values, error details, etc.)""" + metadata: JSON - """Palette grouping category (e.g. email, data, ai, custom)""" - fnCategory: String + """Resource this event belongs to""" + resourceId: UUID +} - """ - Ordered array of module_table column names holding the generated function names to invoke when runtime=sql (module mode). NULL for direct mode and other runtimes. - """ - functionColumns: JSON +""" +A filter to be used against `PlatformResource` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformResourceFilter { + """Checks for all expressions in this list.""" + and: [PlatformResourceFilter!] - """ - Existing flow graph invoked when runtime=graph. Required for graph runtime and forbidden for all other runtimes. - """ - graphId: UUID + """Filter by the object’s `annotations` field.""" + annotations: JSONFilter - """Icon identifier for UI palette rendering (e.g. mail, database, code)""" - icon: String - id: UUID + """Filter by the object’s `cpuLimitMillicores` field.""" + cpuLimitMillicores: BigIntFilter - """ - Docker image reference (e.g. ghcr.io/constructive-io/email-send-fn:latest). Required when runtime=http or runtime=resource. NULL for inline functions. - """ - image: String + """Filter by the object’s `cpuRequestMillicores` field.""" + cpuRequestMillicores: BigIntFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `createdBy` field.""" + createdBy: UUIDFilter + + """Filter by the object’s `createdByPrincipal` field.""" + createdByPrincipal: UUIDFilter + + """Filter by the object’s `errorCount` field.""" + errorCount: IntFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `imageRef` field.""" + imageRef: StringFilter + + """Filter by the object’s `installation` relation.""" + installation: PlatformResourceInstallationFilter + + """A related `installation` exists.""" + installationExists: Boolean + + """Filter by the object’s `installationId` field.""" + installationId: UUIDFilter + + """Filter by the object’s `integrations` field.""" + integrations: StringListFilter + + """Filter by the object’s `kind` field.""" + kind: StringFilter + + """Filter by the object’s `labels` field.""" + labels: JSONFilter + + """Filter by the object’s `lastError` field.""" + lastError: StringFilter + + """Filter by the object’s `lastHeartbeatAt` field.""" + lastHeartbeatAt: DatetimeFilter + + """Filter by the object’s `memoryLimitBytes` field.""" + memoryLimitBytes: BigIntFilter + + """Filter by the object’s `memoryRequestBytes` field.""" + memoryRequestBytes: BigIntFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """Filter by the object’s `namespace` relation.""" + namespace: PlatformNamespaceFilter + + """Filter by the object’s `namespaceId` field.""" + namespaceId: UUIDFilter + + """Negates the expression.""" + not: PlatformResourceFilter + + """Checks for any expressions in this list.""" + or: [PlatformResourceFilter!] """ - Data input ports: [{name, type, description?, optional?, multi?, schema?}] + Filter by the object’s `platformResourceStatusChecksByResourceId` relation. """ - inputs: JSON + platformResourceStatusChecksByResourceId: PlatformResourceToManyPlatformResourceStatusCheckFilter + + """`platformResourceStatusChecksByResourceId` exist.""" + platformResourceStatusChecksByResourceIdExist: Boolean + + """Filter by the object’s `realm` field.""" + realm: StringFilter + + """Filter by the object’s `replicas` field.""" + replicas: IntFilter + + """Filter by the object’s `resourceDefinition` relation.""" + resourceDefinition: PlatformResourceDefinitionFilter + + """A related `resourceDefinition` exists.""" + resourceDefinitionExists: Boolean + + """Filter by the object’s `resourceDefinitionId` field.""" + resourceDefinitionId: UUIDFilter + + """Filter by the object’s `slug` field.""" + slug: StringFilter + + """Filter by the object’s `spec` field.""" + spec: JSONFilter + + """Filter by the object’s `status` field.""" + status: StringFilter + + """Filter by the object’s `statusObserved` field.""" + statusObserved: JSONFilter + + """Filter by the object’s `storageClass` field.""" + storageClass: StringFilter + + """Filter by the object’s `storageSizeBytes` field.""" + storageSizeBytes: BigIntFilter - """ - Provider slugs (e.g. mailgun, postgres) associated with this function. The UI uses this to auto-fill required_secrets and required_configs from integration_providers. - """ - integrations: [String] + """Filter by the object’s `storageTotalBytes` field.""" + storageTotalBytes: BigIntFilter - """ - Whether this function definition is published to the public catalog for direct authenticated invocation. Default false = internal-only via add_job() - """ - isPublished: Boolean + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter - """Maximum retry attempts for the underlying job""" - maxAttempts: Int + """Filter by the object’s `updatedBy` field.""" + updatedBy: UUIDFilter - """ - metaschema_modules_public table whose per-database row carries the generated function names when runtime=sql (module mode). NULL for direct mode and other runtimes. - """ - moduleTable: String + """Filter by the object’s `updatedByPrincipal` field.""" + updatedByPrincipal: UUIDFilter +} - """ - Function name within category (e.g. send_verification_link, process_file_embedding) - """ - name: String +"""An input for mutations affecting `PlatformResource`""" +input PlatformResourceInput { + """Freeform metadata for tooling and operational notes""" + annotations: JSON + createdAt: Datetime + createdBy: UUID + createdByPrincipal: UUID - """ - Data output ports: [{name, type, description?, optional?, multi?, schema?}] - """ - outputs: JSON + """Cumulative error count for this resource""" + errorCount: Int + id: UUID """ - Ordered bind-parameter mapping for runtime=sql: [{name, type}]. payload[name] is bound as $n::type. + Pinned image reference this resource runs (registry host/repository:tag or @digest), written by promotion; NULL means spec.image decides """ - payloadArgs: JSON - - """Job priority (lower = higher priority)""" - priority: Int + imageRef: String """ - Configuration properties: [{name, type, default?, description?, required?, schema?}] + Installation ("release") this resource belongs to (NULL for standalone resources) """ - props: JSON + installationId: UUID """ - Protected platform definition: narrower scopes cannot register the same task_identifier + Provider slugs (e.g. mailgun, postgres) associated with this resource. The UI uses this to auto-fill required_secrets and required_configs from integration_providers. """ - protected: Boolean + integrations: [String] """ - Timestamp when this function was published. NULL means immediately published when is_published is true; future timestamps delay public visibility + Resource kind: Deployment, StatefulSet, Job, Service, Ingress, Certificate, ClusterIssuer """ - publishedAt: Datetime + kind: String! - """Job queue name for serialization (e.g. email, ai, default)""" - queueName: String + """Key/value pairs for selecting and filtering resources""" + labels: JSON - """ - 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] + """Most recent provisioning or runtime error message""" + lastError: String """ - Embedded config requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. + Last time a usage heartbeat was received for this resource (NULL until first heartbeat) """ - requiredConfigs: [ResourceRequirementInput] + lastHeartbeatAt: Datetime + + """Human-readable resource name""" + name: String! """ - Inference model whitelist (e.g. gpt-4o, claude-3). Empty = no model requirements. + Namespace this resource belongs to (security boundary, maps to K8s namespace) """ - requiredModels: [String] + namespaceId: UUID! """ - 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. + Config/secret realm this resource resolves against. Per key, the realm-specific atom wins over the NULL-realm default. NULL = the default lane. """ - requiredModules: [String] + realm: String """ - Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. + Embedded config requirements: array of (name, required, provider) tuples — extends the linked definition's requirements. provider is the integration slug this requirement belongs to, if any. """ - requiredSecrets: [ResourceRequirementInput] + requiredConfigs: [ResourceRequirementInput] """ - Container resource requests and limits: {requests: {memory, cpu}, limits: {memory, cpu}} + Embedded secret requirements: array of (name, required, provider) tuples — extends the linked definition's requirements. provider is the integration slug this requirement belongs to, if any. """ - resources: JSON + requiredSecrets: [ResourceRequirementInput] """ - Execution mode: http (Knative Service dispatch), inline (in-process in compute worker), handler (registered infrastructure handler), sql (generic SQL dispatch via a trusted direct target or module-resolved function names), resource (Kubernetes Job via the resource module with node-gateway callbacks), or graph (existing flow graph referenced by graph_id) + Definition template this resource was created from (NULL for standalone resources) """ - runtime: String - - """Maximum pod count for Knative autoscaling (maxScale)""" - scaleMax: Int + resourceDefinitionId: UUID - """Minimum pod count for Knative autoscaling (minScale)""" - scaleMin: Int + """URL-safe identifier, unique within (namespace_id, kind)""" + slug: String! """ - Platform system definition: its task_identifier cannot be shadowed by non-platform registration + Desired state — kind-specific configuration (image, ports, resources, etc.). Opaque to DB; validated by K8s. """ - system: Boolean + spec: JSON """ - Name of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. + Resource lifecycle status: pending, provisioning, active, completed, failed, draining, deleting """ - targetFunction: String + status: String """ - Schema of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. + Observed state from K8s — populated by handlers after reconciliation (service_url, clone_url, replicas, etc.) """ - targetSchema: String - - """Knative request timeout in seconds""" - timeoutSeconds: Int + statusObserved: JSON updatedAt: Datetime - - """ - Whether this function has side effects and cannot be cached or memoized - """ - volatile: Boolean + updatedBy: UUID + updatedByPrincipal: UUID } """ -A filter to be used against many `PlatformFunctionApiBinding` object types. All fields are combined with a logical ‘and.’ +Installed resource bundle ("release") — groups a set of resources; params are merkle-versioned in the scope's shared infra store for rollback """ -input PlatformFunctionDefinitionToManyPlatformFunctionApiBindingFilter { - """Filters to entities where every related entity matches.""" - every: PlatformFunctionApiBindingFilter - - """Filters to entities where no related entity matches.""" - none: PlatformFunctionApiBindingFilter - - """Filters to entities where at least one related entity matches.""" - some: PlatformFunctionApiBindingFilter -} +type PlatformResourceInstallation { + """ + Infra store commit for the current params (stamped by the versioned trigger on every write) + """ + commitId: UUID + createdAt: Datetime + createdBy: UUID + createdByPrincipal: UUID + id: UUID! -""" -A filter to be used against many `PlatformFunctionCapabilityBinding` object types. All fields are combined with a logical ‘and.’ -""" -input PlatformFunctionDefinitionToManyPlatformFunctionCapabilityBindingFilter { - """Filters to entities where every related entity matches.""" - every: PlatformFunctionCapabilityBindingFilter + """Human-readable release name""" + name: String! - """Filters to entities where no related entity matches.""" - none: PlatformFunctionCapabilityBindingFilter + """ + Reads a single `PlatformNamespace` that is related to this `PlatformResourceInstallation`. + """ + namespace: PlatformNamespace - """Filters to entities where at least one related entity matches.""" - some: PlatformFunctionCapabilityBindingFilter -} + """Namespace this installation belongs to (security boundary)""" + namespaceId: UUID! -""" -A filter to be used against many `PlatformWebhookEndpoint` object types. All fields are combined with a logical ‘and.’ -""" -input PlatformFunctionDefinitionToManyPlatformWebhookEndpointFilter { - """Filters to entities where every related entity matches.""" - every: PlatformWebhookEndpointFilter + """ + Release parameters — the readily-cached head; history lives in the infra store. Never contains secret/config literals. + """ + params: JSON! - """Filters to entities where no related entity matches.""" - none: PlatformWebhookEndpointFilter + """Reads and enables pagination through a set of `PlatformRegistry`.""" + platformRegistriesByInstallationId( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """Filters to entities where at least one related entity matches.""" - some: PlatformWebhookEndpointFilter -} + """Read all values in the set before (above) this cursor.""" + before: Cursor -""" -Function deployment bindings — ties a handler image to a namespace for Knative provisioning and routing (one row per handler image per namespace) -""" -type PlatformFunctionDeployment { - """Freeform metadata for tooling and operational notes""" - annotations: JSON! + """Only read the first `n` values of the set.""" + first: Int - """Max concurrent requests per pod (NULL = inherit from definition)""" - concurrency: Int - createdAt: Datetime + """Only read the last `n` values of the set.""" + last: Int - """Cumulative error count for this deployment""" - errorCount: Int! + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int - """ - Handler directory name (e.g. email, document) — used as FN_HANDLER_NAME in combined-image mode to select the entry point - """ - handlerName: String - id: UUID! + """The method to use when ordering `PlatformRegistry`.""" + orderBy: [PlatformRegistryOrderBy!] = [PRIMARY_KEY_ASC] - """ - Logical image name — the handler identity and grouping key (e.g. fn-email). No registry host or tag; tag lives in image_version. - """ - image: String! + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformRegistryFilter + ): PlatformRegistryConnection! - """Image tag/version for the handler container (e.g. latest, 2.6.4)""" - imageVersion: String! + """Reads and enables pagination through a set of `PlatformResource`.""" + platformResourcesByInstallationId( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """Key/value pairs for selecting and filtering deployments""" - labels: JSON! + """Read all values in the set before (above) this cursor.""" + before: Cursor - """Most recent provisioning or runtime error message""" - lastError: String + """Only read the first `n` values of the set.""" + first: Int - """Timestamp of the most recent error""" - lastErrorAt: Datetime + """Only read the last `n` values of the set.""" + last: Int - """ - Reads a single `PlatformNamespace` that is related to this `PlatformFunctionDeployment`. - """ - namespace: PlatformNamespace + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int - """Target namespace for this deployment (maps to a K8s namespace)""" - namespaceId: UUID! + """The method to use when ordering `PlatformResource`.""" + orderBy: [PlatformResourceOrderBy!] = [PRIMARY_KEY_ASC] - """ - 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 + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformResourceFilter + ): PlatformResourceConnection! """ - K8s resource spec override: {"requests":{"cpu":"100m","memory":"128Mi"},"limits":{...}} + Monotonic release revision counter: install starts at 1, bumped on every upgrade/rollback """ - resources: JSON - - """Deployment revision number (incremented on each redeployment)""" revision: Int! """ - Maximum replica count (NULL = inherit from definition or Knative default) - """ - scaleMax: Int - - """ - Minimum replica count (NULL = inherit from definition or Knative default) - """ - scaleMin: Int - - """ - Knative service name — a randomly minted cute name (unique_names.generate_name() + random hex suffix) assigned by the service_url trigger; unique per namespace, not derived from the image + URL-safe release identifier, unique within the namespace; the release's path in the infra tree is [resource_installation, slug] """ - serviceName: String + slug: String! - """ - Knative service URL (http://{service-name}.{namespace}.svc.cluster.local) — populated after provisioning - """ - serviceUrl: String + """Installation lifecycle status: pending, installed, uninstalled, failed""" + status: String! """ - Deployment lifecycle status: pending, provisioning, active, failed, scaled_to_zero, deactivated + Infra merkle store holding this installation's history (stamped by the versioned trigger) """ - status: String! - - """Request timeout override in seconds (NULL = inherit from definition)""" - timeoutSeconds: Int + storeId: UUID updatedAt: Datetime + updatedBy: UUID + updatedByPrincipal: UUID } -"""A connection to a list of `PlatformFunctionDeployment` values.""" -type PlatformFunctionDeploymentConnection { +"""A connection to a list of `PlatformResourceInstallation` values.""" +type PlatformResourceInstallationConnection { """ - A list of edges which contains the `PlatformFunctionDeployment` and cursor to aid in pagination. + A list of edges which contains the `PlatformResourceInstallation` and cursor to aid in pagination. """ - edges: [PlatformFunctionDeploymentEdge]! + edges: [PlatformResourceInstallationEdge]! - """A list of `PlatformFunctionDeployment` objects.""" - nodes: [PlatformFunctionDeployment]! + """A list of `PlatformResourceInstallation` objects.""" + nodes: [PlatformResourceInstallation]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `PlatformFunctionDeployment` you could get from the connection. + The count of *all* `PlatformResourceInstallation` you could get from the connection. """ totalCount: Int! } -"""A `PlatformFunctionDeployment` edge in the connection.""" -type PlatformFunctionDeploymentEdge { +"""A `PlatformResourceInstallation` edge in the connection.""" +type PlatformResourceInstallationEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `PlatformFunctionDeployment` at the end of the edge.""" - node: PlatformFunctionDeployment + """The `PlatformResourceInstallation` at the end of the edge.""" + node: PlatformResourceInstallation } """ -Deployment lifecycle events — audit log of provisioning, scaling, and failure events +A filter to be used against `PlatformResourceInstallation` object types. All fields are combined with a logical ‘and.’ """ -type PlatformFunctionDeploymentEvent { - """User who triggered this event (NULL for system/automated)""" - actorId: UUID +input PlatformResourceInstallationFilter { + """Checks for all expressions in this list.""" + and: [PlatformResourceInstallationFilter!] - """Event timestamp (partition key)""" - createdAt: Datetime! + """Filter by the object’s `commitId` field.""" + commitId: UUIDFilter - """Deployment this event belongs to""" - deploymentId: UUID! + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter - """ - Event type: provisioned, scaled, failed, deactivated, redeployed, health_check - """ - eventType: String! + """Filter by the object’s `createdBy` field.""" + createdBy: UUIDFilter - """Unique event identifier""" - id: UUID! + """Filter by the object’s `createdByPrincipal` field.""" + createdByPrincipal: UUIDFilter - """Human-readable description of the event""" - message: String + """Filter by the object’s `id` field.""" + id: UUIDFilter - """Structured context (old/new values, error details, etc.)""" - metadata: JSON -} + """Filter by the object’s `name` field.""" + name: StringFilter -"""A connection to a list of `PlatformFunctionDeploymentEvent` values.""" -type PlatformFunctionDeploymentEventConnection { - """ - A list of edges which contains the `PlatformFunctionDeploymentEvent` and cursor to aid in pagination. - """ - edges: [PlatformFunctionDeploymentEventEdge]! + """Filter by the object’s `namespace` relation.""" + namespace: PlatformNamespaceFilter - """A list of `PlatformFunctionDeploymentEvent` objects.""" - nodes: [PlatformFunctionDeploymentEvent]! + """Filter by the object’s `namespaceId` field.""" + namespaceId: UUIDFilter - """Information to aid in pagination.""" - pageInfo: PageInfo! + """Negates the expression.""" + not: PlatformResourceInstallationFilter - """ - The count of *all* `PlatformFunctionDeploymentEvent` you could get from the connection. - """ - totalCount: Int! -} + """Checks for any expressions in this list.""" + or: [PlatformResourceInstallationFilter!] -"""A `PlatformFunctionDeploymentEvent` edge in the connection.""" -type PlatformFunctionDeploymentEventEdge { - """A cursor for use in pagination.""" - cursor: Cursor + """Filter by the object’s `params` field.""" + params: JSONFilter - """The `PlatformFunctionDeploymentEvent` at the end of the edge.""" - node: PlatformFunctionDeploymentEvent -} + """Filter by the object’s `platformRegistriesByInstallationId` relation.""" + platformRegistriesByInstallationId: PlatformResourceInstallationToManyPlatformRegistryFilter -""" -A filter to be used against `PlatformFunctionDeploymentEvent` object types. All fields are combined with a logical ‘and.’ -""" -input PlatformFunctionDeploymentEventFilter { - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter + """`platformRegistriesByInstallationId` exist.""" + platformRegistriesByInstallationIdExist: Boolean - """Checks for all expressions in this list.""" - and: [PlatformFunctionDeploymentEventFilter!] + """Filter by the object’s `platformResourcesByInstallationId` relation.""" + platformResourcesByInstallationId: PlatformResourceInstallationToManyPlatformResourceFilter - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter + """`platformResourcesByInstallationId` exist.""" + platformResourcesByInstallationIdExist: Boolean - """Filter by the object’s `deploymentId` field.""" - deploymentId: UUIDFilter + """Filter by the object’s `revision` field.""" + revision: IntFilter - """Filter by the object’s `eventType` field.""" - eventType: StringFilter + """Filter by the object’s `slug` field.""" + slug: StringFilter - """Filter by the object’s `id` field.""" - id: UUIDFilter + """Filter by the object’s `status` field.""" + status: StringFilter - """Filter by the object’s `message` field.""" - message: StringFilter + """Filter by the object’s `storeId` field.""" + storeId: UUIDFilter - """Filter by the object’s `metadata` field.""" - metadata: JSONFilter + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter - """Negates the expression.""" - not: PlatformFunctionDeploymentEventFilter + """Filter by the object’s `updatedBy` field.""" + updatedBy: UUIDFilter - """Checks for any expressions in this list.""" - or: [PlatformFunctionDeploymentEventFilter!] + """Filter by the object’s `updatedByPrincipal` field.""" + updatedByPrincipal: UUIDFilter } -"""An input for mutations affecting `PlatformFunctionDeploymentEvent`""" -input PlatformFunctionDeploymentEventInput { - """User who triggered this event (NULL for system/automated)""" - actorId: UUID - - """Event timestamp (partition key)""" +"""An input for mutations affecting `PlatformResourceInstallation`""" +input PlatformResourceInstallationInput { + """ + Infra store commit for the current params (stamped by the versioned trigger on every write) + """ + commitId: UUID createdAt: Datetime + createdBy: UUID + createdByPrincipal: UUID + id: UUID - """Deployment this event belongs to""" - deploymentId: UUID! + """Human-readable release name""" + name: String! + + """Namespace this installation belongs to (security boundary)""" + namespaceId: UUID! """ - Event type: provisioned, scaled, failed, deactivated, redeployed, health_check + Release parameters — the readily-cached head; history lives in the infra store. Never contains secret/config literals. """ - eventType: String! + params: JSON - """Unique event identifier""" - id: UUID + """ + Monotonic release revision counter: install starts at 1, bumped on every upgrade/rollback + """ + revision: Int - """Human-readable description of the event""" - message: String + """ + URL-safe release identifier, unique within the namespace; the release's path in the infra tree is [resource_installation, slug] + """ + slug: String! - """Structured context (old/new values, error details, etc.)""" - metadata: JSON + """Installation lifecycle status: pending, installed, uninstalled, failed""" + status: String + + """ + Infra merkle store holding this installation's history (stamped by the versioned trigger) + """ + storeId: UUID + updatedAt: Datetime + updatedBy: UUID + updatedByPrincipal: UUID } -"""Methods to use when ordering `PlatformFunctionDeploymentEvent`.""" -enum PlatformFunctionDeploymentEventOrderBy { - ACTOR_ID_ASC - ACTOR_ID_DESC +"""Methods to use when ordering `PlatformResourceInstallation`.""" +enum PlatformResourceInstallationOrderBy { + COMMIT_ID_ASC + COMMIT_ID_DESC CREATED_AT_ASC CREATED_AT_DESC - DEPLOYMENT_ID_ASC - DEPLOYMENT_ID_DESC - EVENT_TYPE_ASC - EVENT_TYPE_DESC + CREATED_BY_ASC + CREATED_BY_DESC + CREATED_BY_PRINCIPAL_ASC + CREATED_BY_PRINCIPAL_DESC ID_ASC ID_DESC - MESSAGE_ASC - MESSAGE_DESC - METADATA_ASC - METADATA_DESC + NAMESPACE_ID_ASC + NAMESPACE_ID_DESC + NAME_ASC + NAME_DESC NATURAL + PARAMS_ASC + PARAMS_DESC PRIMARY_KEY_ASC PRIMARY_KEY_DESC + REVISION_ASC + REVISION_DESC + SLUG_ASC + SLUG_DESC + STATUS_ASC + STATUS_DESC + STORE_ID_ASC + STORE_ID_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + UPDATED_BY_ASC + UPDATED_BY_DESC + UPDATED_BY_PRINCIPAL_ASC + UPDATED_BY_PRINCIPAL_DESC } """ -Represents an update to a `PlatformFunctionDeploymentEvent`. Fields that are set will be updated. +Represents an update to a `PlatformResourceInstallation`. Fields that are set will be updated. """ -input PlatformFunctionDeploymentEventPatch { - """User who triggered this event (NULL for system/automated)""" - actorId: UUID - - """Event timestamp (partition key)""" +input PlatformResourceInstallationPatch { + """ + Infra store commit for the current params (stamped by the versioned trigger on every write) + """ + commitId: UUID createdAt: Datetime + createdBy: UUID + createdByPrincipal: UUID + id: UUID - """Deployment this event belongs to""" - deploymentId: UUID + """Human-readable release name""" + name: String + + """Namespace this installation belongs to (security boundary)""" + namespaceId: UUID + + """ + Release parameters — the readily-cached head; history lives in the infra store. Never contains secret/config literals. + """ + params: JSON """ - Event type: provisioned, scaled, failed, deactivated, redeployed, health_check + Monotonic release revision counter: install starts at 1, bumped on every upgrade/rollback """ - eventType: String + revision: Int - """Unique event identifier""" - id: UUID + """ + URL-safe release identifier, unique within the namespace; the release's path in the infra tree is [resource_installation, slug] + """ + slug: String - """Human-readable description of the event""" - message: String + """Installation lifecycle status: pending, installed, uninstalled, failed""" + status: String - """Structured context (old/new values, error details, etc.)""" - metadata: JSON + """ + Infra merkle store holding this installation's history (stamped by the versioned trigger) + """ + storeId: UUID + updatedAt: Datetime + updatedBy: UUID + updatedByPrincipal: UUID } """ -A filter to be used against `PlatformFunctionDeployment` object types. All fields are combined with a logical ‘and.’ +A filter to be used against many `PlatformRegistry` object types. All fields are combined with a logical ‘and.’ """ -input PlatformFunctionDeploymentFilter { - """Checks for all expressions in this list.""" - and: [PlatformFunctionDeploymentFilter!] - - """Filter by the object’s `annotations` field.""" - annotations: JSONFilter +input PlatformResourceInstallationToManyPlatformRegistryFilter { + """Filters to entities where every related entity matches.""" + every: PlatformRegistryFilter - """Filter by the object’s `concurrency` field.""" - concurrency: IntFilter + """Filters to entities where no related entity matches.""" + none: PlatformRegistryFilter - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter + """Filters to entities where at least one related entity matches.""" + some: PlatformRegistryFilter +} - """Filter by the object’s `errorCount` field.""" - errorCount: IntFilter +""" +A filter to be used against many `PlatformResource` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformResourceInstallationToManyPlatformResourceFilter { + """Filters to entities where every related entity matches.""" + every: PlatformResourceFilter - """Filter by the object’s `handlerName` field.""" - handlerName: StringFilter + """Filters to entities where no related entity matches.""" + none: PlatformResourceFilter - """Filter by the object’s `id` field.""" - id: UUIDFilter + """Filters to entities where at least one related entity matches.""" + some: PlatformResourceFilter +} - """Filter by the object’s `image` field.""" - image: StringFilter +"""All input for the `platformResourceInstallationsInstall` mutation.""" +input PlatformResourceInstallationsInstallInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + definitionIds: [UUID] + name: String + namespaceId: UUID + newParams: JSON + slug: String +} - """Filter by the object’s `imageVersion` field.""" - imageVersion: StringFilter +"""The output of our `platformResourceInstallationsInstall` mutation.""" +type PlatformResourceInstallationsInstallPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """Filter by the object’s `labels` field.""" - labels: JSONFilter + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + result: UUID +} - """Filter by the object’s `lastError` field.""" - lastError: StringFilter +"""All input for the `platformResourceInstallationsRollback` mutation.""" +input PlatformResourceInstallationsRollbackInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + commitId: UUID + targetInstallationId: UUID +} - """Filter by the object’s `lastErrorAt` field.""" - lastErrorAt: DatetimeFilter +"""The output of our `platformResourceInstallationsRollback` mutation.""" +type PlatformResourceInstallationsRollbackPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """Filter by the object’s `namespace` relation.""" - namespace: PlatformNamespaceFilter + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} - """Filter by the object’s `namespaceId` field.""" - namespaceId: UUIDFilter +"""All input for the `platformResourceInstallationsUninstall` mutation.""" +input PlatformResourceInstallationsUninstallInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + targetInstallationId: UUID +} - """Negates the expression.""" - not: PlatformFunctionDeploymentFilter +"""The output of our `platformResourceInstallationsUninstall` mutation.""" +type PlatformResourceInstallationsUninstallPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """Checks for any expressions in this list.""" - or: [PlatformFunctionDeploymentFilter!] + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} - """Filter by the object’s `realm` field.""" - realm: StringFilter +"""All input for the `platformResourceInstallationsUpgrade` mutation.""" +input PlatformResourceInstallationsUpgradeInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + newParams: JSON + targetInstallationId: UUID +} - """Filter by the object’s `resources` field.""" - resources: JSONFilter +"""The output of our `platformResourceInstallationsUpgrade` mutation.""" +type PlatformResourceInstallationsUpgradePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """Filter by the object’s `revision` field.""" - revision: IntFilter + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} - """Filter by the object’s `scaleMax` field.""" - scaleMax: IntFilter +type PlatformResourceObservedStorage { + capacity: String + capacityBytes: BigInt + claimName: String + declaredStorageClass: String + declaredStorageSizeBytes: BigInt + declaredStorageTotalBytes: BigInt + installationId: UUID + isBound: Boolean + kind: String + namespaceId: UUID + phase: String + requested: String + requestedBytes: BigInt + resourceId: UUID + resourceStatus: String + slug: String + storageClass: String + storageName: String +} - """Filter by the object’s `scaleMin` field.""" - scaleMin: IntFilter +"""A connection to a list of `PlatformResourceObservedStorage` values.""" +type PlatformResourceObservedStorageConnection { + """ + A list of edges which contains the `PlatformResourceObservedStorage` and cursor to aid in pagination. + """ + edges: [PlatformResourceObservedStorageEdge]! - """Filter by the object’s `serviceName` field.""" - serviceName: StringFilter + """A list of `PlatformResourceObservedStorage` objects.""" + nodes: [PlatformResourceObservedStorage]! - """Filter by the object’s `serviceUrl` field.""" - serviceUrl: StringFilter + """Information to aid in pagination.""" + pageInfo: PageInfo! - """Filter by the object’s `status` field.""" - status: StringFilter + """ + The count of *all* `PlatformResourceObservedStorage` you could get from the connection. + """ + totalCount: Int! +} - """Filter by the object’s `timeoutSeconds` field.""" - timeoutSeconds: IntFilter +"""A `PlatformResourceObservedStorage` edge in the connection.""" +type PlatformResourceObservedStorageEdge { + """A cursor for use in pagination.""" + cursor: Cursor - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter + """The `PlatformResourceObservedStorage` at the end of the edge.""" + node: PlatformResourceObservedStorage } -"""An input for mutations affecting `PlatformFunctionDeployment`""" -input PlatformFunctionDeploymentInput { - """Freeform metadata for tooling and operational notes""" - annotations: JSON +""" +A filter to be used against `PlatformResourceObservedStorage` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformResourceObservedStorageFilter { + """Checks for all expressions in this list.""" + and: [PlatformResourceObservedStorageFilter!] - """Max concurrent requests per pod (NULL = inherit from definition)""" - concurrency: Int - createdAt: Datetime + """Filter by the object’s `capacity` field.""" + capacity: StringFilter - """Cumulative error count for this deployment""" - errorCount: Int + """Filter by the object’s `capacityBytes` field.""" + capacityBytes: BigIntFilter - """ - Handler directory name (e.g. email, document) — used as FN_HANDLER_NAME in combined-image mode to select the entry point - """ - handlerName: String - id: UUID + """Filter by the object’s `claimName` field.""" + claimName: StringFilter - """ - Logical image name — the handler identity and grouping key (e.g. fn-email). No registry host or tag; tag lives in image_version. - """ - image: String! + """Filter by the object’s `declaredStorageClass` field.""" + declaredStorageClass: StringFilter - """Image tag/version for the handler container (e.g. latest, 2.6.4)""" - imageVersion: String + """Filter by the object’s `declaredStorageSizeBytes` field.""" + declaredStorageSizeBytes: BigIntFilter - """Key/value pairs for selecting and filtering deployments""" - labels: JSON + """Filter by the object’s `declaredStorageTotalBytes` field.""" + declaredStorageTotalBytes: BigIntFilter - """Most recent provisioning or runtime error message""" - lastError: String + """Filter by the object’s `installationId` field.""" + installationId: UUIDFilter - """Timestamp of the most recent error""" - lastErrorAt: Datetime + """Filter by the object’s `isBound` field.""" + isBound: BooleanFilter - """Target namespace for this deployment (maps to a K8s namespace)""" - namespaceId: UUID! + """Filter by the object’s `kind` field.""" + kind: StringFilter - """ - 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 + """Filter by the object’s `namespaceId` field.""" + namespaceId: UUIDFilter - """ - K8s resource spec override: {"requests":{"cpu":"100m","memory":"128Mi"},"limits":{...}} - """ - resources: JSON + """Negates the expression.""" + not: PlatformResourceObservedStorageFilter - """Deployment revision number (incremented on each redeployment)""" - revision: Int + """Checks for any expressions in this list.""" + or: [PlatformResourceObservedStorageFilter!] - """ - Maximum replica count (NULL = inherit from definition or Knative default) - """ - scaleMax: Int + """Filter by the object’s `phase` field.""" + phase: StringFilter - """ - Minimum replica count (NULL = inherit from definition or Knative default) - """ - scaleMin: Int + """Filter by the object’s `requested` field.""" + requested: StringFilter - """ - Knative service name — a randomly minted cute name (unique_names.generate_name() + random hex suffix) assigned by the service_url trigger; unique per namespace, not derived from the image - """ - serviceName: String + """Filter by the object’s `requestedBytes` field.""" + requestedBytes: BigIntFilter - """ - Knative service URL (http://{service-name}.{namespace}.svc.cluster.local) — populated after provisioning - """ - serviceUrl: String + """Filter by the object’s `resourceId` field.""" + resourceId: UUIDFilter - """ - Deployment lifecycle status: pending, provisioning, active, failed, scaled_to_zero, deactivated - """ - status: String + """Filter by the object’s `resourceStatus` field.""" + resourceStatus: StringFilter - """Request timeout override in seconds (NULL = inherit from definition)""" - timeoutSeconds: Int - updatedAt: Datetime + """Filter by the object’s `slug` field.""" + slug: StringFilter + + """Filter by the object’s `storageClass` field.""" + storageClass: StringFilter + + """Filter by the object’s `storageName` field.""" + storageName: StringFilter +} + +"""Methods to use when ordering `PlatformResourceObservedStorage`.""" +enum PlatformResourceObservedStorageOrderBy { + CAPACITY_ASC + CAPACITY_BYTES_ASC + CAPACITY_BYTES_DESC + CAPACITY_DESC + CLAIM_NAME_ASC + CLAIM_NAME_DESC + DECLARED_STORAGE_CLASS_ASC + DECLARED_STORAGE_CLASS_DESC + DECLARED_STORAGE_SIZE_BYTES_ASC + DECLARED_STORAGE_SIZE_BYTES_DESC + DECLARED_STORAGE_TOTAL_BYTES_ASC + DECLARED_STORAGE_TOTAL_BYTES_DESC + INSTALLATION_ID_ASC + INSTALLATION_ID_DESC + IS_BOUND_ASC + IS_BOUND_DESC + KIND_ASC + KIND_DESC + NAMESPACE_ID_ASC + NAMESPACE_ID_DESC + NATURAL + PHASE_ASC + PHASE_DESC + REQUESTED_ASC + REQUESTED_BYTES_ASC + REQUESTED_BYTES_DESC + REQUESTED_DESC + RESOURCE_ID_ASC + RESOURCE_ID_DESC + RESOURCE_STATUS_ASC + RESOURCE_STATUS_DESC + SLUG_ASC + SLUG_DESC + STORAGE_CLASS_ASC + STORAGE_CLASS_DESC + STORAGE_NAME_ASC + STORAGE_NAME_DESC } -"""Methods to use when ordering `PlatformFunctionDeployment`.""" -enum PlatformFunctionDeploymentOrderBy { +"""Methods to use when ordering `PlatformResource`.""" +enum PlatformResourceOrderBy { ANNOTATIONS_ASC ANNOTATIONS_DESC - CONCURRENCY_ASC - CONCURRENCY_DESC + CPU_LIMIT_MILLICORES_ASC + CPU_LIMIT_MILLICORES_DESC + CPU_REQUEST_MILLICORES_ASC + CPU_REQUEST_MILLICORES_DESC CREATED_AT_ASC CREATED_AT_DESC + CREATED_BY_ASC + CREATED_BY_DESC + CREATED_BY_PRINCIPAL_ASC + CREATED_BY_PRINCIPAL_DESC ERROR_COUNT_ASC ERROR_COUNT_DESC - HANDLER_NAME_ASC - HANDLER_NAME_DESC ID_ASC ID_DESC - IMAGE_ASC - IMAGE_DESC - IMAGE_VERSION_ASC - IMAGE_VERSION_DESC + IMAGE_REF_ASC + IMAGE_REF_DESC + INSTALLATION_ID_ASC + INSTALLATION_ID_DESC + INTEGRATIONS_ASC + INTEGRATIONS_DESC + KIND_ASC + KIND_DESC LABELS_ASC LABELS_DESC LAST_ERROR_ASC - LAST_ERROR_AT_ASC - LAST_ERROR_AT_DESC LAST_ERROR_DESC + LAST_HEARTBEAT_AT_ASC + LAST_HEARTBEAT_AT_DESC + MEMORY_LIMIT_BYTES_ASC + MEMORY_LIMIT_BYTES_DESC + MEMORY_REQUEST_BYTES_ASC + MEMORY_REQUEST_BYTES_DESC NAMESPACE_ID_ASC NAMESPACE_ID_DESC + NAME_ASC + NAME_DESC NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC REALM_ASC REALM_DESC - RESOURCES_ASC - RESOURCES_DESC - REVISION_ASC - REVISION_DESC - SCALE_MAX_ASC - SCALE_MAX_DESC - SCALE_MIN_ASC - SCALE_MIN_DESC - SERVICE_NAME_ASC - SERVICE_NAME_DESC - SERVICE_URL_ASC - SERVICE_URL_DESC + REPLICAS_ASC + REPLICAS_DESC + REQUIRED_CONFIGS_ASC + REQUIRED_CONFIGS_DESC + REQUIRED_SECRETS_ASC + REQUIRED_SECRETS_DESC + RESOURCE_DEFINITION_ID_ASC + RESOURCE_DEFINITION_ID_DESC + SLUG_ASC + SLUG_DESC + SPEC_ASC + SPEC_DESC STATUS_ASC STATUS_DESC - TIMEOUT_SECONDS_ASC - TIMEOUT_SECONDS_DESC + STATUS_OBSERVED_ASC + STATUS_OBSERVED_DESC + STORAGE_CLASS_ASC + STORAGE_CLASS_DESC + STORAGE_SIZE_BYTES_ASC + STORAGE_SIZE_BYTES_DESC + STORAGE_TOTAL_BYTES_ASC + STORAGE_TOTAL_BYTES_DESC UPDATED_AT_ASC UPDATED_AT_DESC + UPDATED_BY_ASC + UPDATED_BY_DESC + UPDATED_BY_PRINCIPAL_ASC + UPDATED_BY_PRINCIPAL_DESC } """ -Represents an update to a `PlatformFunctionDeployment`. Fields that are set will be updated. +Represents an update to a `PlatformResource`. Fields that are set will be updated. """ -input PlatformFunctionDeploymentPatch { +input PlatformResourcePatch { """Freeform metadata for tooling and operational notes""" annotations: JSON - - """Max concurrent requests per pod (NULL = inherit from definition)""" - concurrency: Int createdAt: Datetime + createdBy: UUID + createdByPrincipal: UUID - """Cumulative error count for this deployment""" + """Cumulative error count for this resource""" errorCount: Int + id: UUID """ - Handler directory name (e.g. email, document) — used as FN_HANDLER_NAME in combined-image mode to select the entry point + Pinned image reference this resource runs (registry host/repository:tag or @digest), written by promotion; NULL means spec.image decides """ - handlerName: String - id: UUID + imageRef: String """ - Logical image name — the handler identity and grouping key (e.g. fn-email). No registry host or tag; tag lives in image_version. + Installation ("release") this resource belongs to (NULL for standalone resources) """ - image: String + installationId: UUID - """Image tag/version for the handler container (e.g. latest, 2.6.4)""" - imageVersion: String + """ + Provider slugs (e.g. mailgun, postgres) associated with this resource. The UI uses this to auto-fill required_secrets and required_configs from integration_providers. + """ + integrations: [String] - """Key/value pairs for selecting and filtering deployments""" + """ + Resource kind: Deployment, StatefulSet, Job, Service, Ingress, Certificate, ClusterIssuer + """ + kind: String + + """Key/value pairs for selecting and filtering resources""" labels: JSON """Most recent provisioning or runtime error message""" lastError: String - """Timestamp of the most recent error""" - lastErrorAt: Datetime + """ + Last time a usage heartbeat was received for this resource (NULL until first heartbeat) + """ + lastHeartbeatAt: Datetime - """Target namespace for this deployment (maps to a K8s namespace)""" - namespaceId: UUID + """Human-readable resource name""" + name: 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). + Namespace this resource belongs to (security boundary, maps to K8s namespace) """ - realm: String + namespaceId: UUID """ - K8s resource spec override: {"requests":{"cpu":"100m","memory":"128Mi"},"limits":{...}} + Config/secret realm this resource resolves against. Per key, the realm-specific atom wins over the NULL-realm default. NULL = the default lane. """ - resources: JSON - - """Deployment revision number (incremented on each redeployment)""" - revision: Int + realm: String """ - Maximum replica count (NULL = inherit from definition or Knative default) + Embedded config requirements: array of (name, required, provider) tuples — extends the linked definition's requirements. provider is the integration slug this requirement belongs to, if any. """ - scaleMax: Int + requiredConfigs: [ResourceRequirementInput] """ - Minimum replica count (NULL = inherit from definition or Knative default) + Embedded secret requirements: array of (name, required, provider) tuples — extends the linked definition's requirements. provider is the integration slug this requirement belongs to, if any. """ - scaleMin: Int + requiredSecrets: [ResourceRequirementInput] """ - Knative service name — a randomly minted cute name (unique_names.generate_name() + random hex suffix) assigned by the service_url trigger; unique per namespace, not derived from the image + Definition template this resource was created from (NULL for standalone resources) """ - serviceName: String + resourceDefinitionId: UUID + + """URL-safe identifier, unique within (namespace_id, kind)""" + slug: String """ - Knative service URL (http://{service-name}.{namespace}.svc.cluster.local) — populated after provisioning + Desired state — kind-specific configuration (image, ports, resources, etc.). Opaque to DB; validated by K8s. """ - serviceUrl: String + spec: JSON """ - Deployment lifecycle status: pending, provisioning, active, failed, scaled_to_zero, deactivated + Resource lifecycle status: pending, provisioning, active, completed, failed, draining, deleting """ status: String - """Request timeout override in seconds (NULL = inherit from definition)""" - timeoutSeconds: Int + """ + Observed state from K8s — populated by handlers after reconciliation (service_url, clone_url, replicas, etc.) + """ + statusObserved: JSON updatedAt: Datetime + updatedBy: UUID + updatedByPrincipal: UUID } -"""Function execution logs — structured console output per invocation""" -type PlatformFunctionExecutionLog { - """User who triggered the execution (NULL for system/cron)""" - actorId: UUID - - """Log entry timestamp (partition key)""" - createdAt: Datetime! +""" +On-demand resource status checks — diagnostic snapshots from the runtime (K8s status, conditions, log tails) +""" +type PlatformResourceStatusCheck { + """When the check completed (NULL while pending/running)""" + completedAt: Datetime - """Unique log entry identifier""" + """Unique status check identifier""" id: UUID! - """Invocation this log entry belongs to (NULL for standalone job logs)""" - invocationId: UUID + """When the check was requested""" + requestedAt: Datetime! - """Log severity: debug, info, warn, error""" - logLevel: String! + """User who requested the check (NULL for system/scheduled)""" + requestedBy: UUID - """Log message text""" - message: String! + """ + Reads a single `PlatformResource` that is related to this `PlatformResourceStatusCheck`. + """ + resource: PlatformResource - """Structured context (labels, trace data, extra fields)""" - metadata: JSON + """Resource to check""" + resourceId: UUID! - """Function routing key (NULL for generic job logs)""" - taskIdentifier: String + """Diagnostic snapshot: k8s_status, conditions, pod_logs_tail, events""" + result: JSON + + """Check lifecycle: pending, running, completed, failed""" + status: String! } -"""A connection to a list of `PlatformFunctionExecutionLog` values.""" -type PlatformFunctionExecutionLogConnection { +"""A connection to a list of `PlatformResourceStatusCheck` values.""" +type PlatformResourceStatusCheckConnection { """ - A list of edges which contains the `PlatformFunctionExecutionLog` and cursor to aid in pagination. + A list of edges which contains the `PlatformResourceStatusCheck` and cursor to aid in pagination. """ - edges: [PlatformFunctionExecutionLogEdge]! + edges: [PlatformResourceStatusCheckEdge]! - """A list of `PlatformFunctionExecutionLog` objects.""" - nodes: [PlatformFunctionExecutionLog]! + """A list of `PlatformResourceStatusCheck` objects.""" + nodes: [PlatformResourceStatusCheck]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `PlatformFunctionExecutionLog` you could get from the connection. + The count of *all* `PlatformResourceStatusCheck` you could get from the connection. """ totalCount: Int! } -"""A `PlatformFunctionExecutionLog` edge in the connection.""" -type PlatformFunctionExecutionLogEdge { +"""A `PlatformResourceStatusCheck` edge in the connection.""" +type PlatformResourceStatusCheckEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `PlatformFunctionExecutionLog` at the end of the edge.""" - node: PlatformFunctionExecutionLog + """The `PlatformResourceStatusCheck` at the end of the edge.""" + node: PlatformResourceStatusCheck } -""" -A filter to be used against `PlatformFunctionExecutionLog` object types. All fields are combined with a logical ‘and.’ -""" -input PlatformFunctionExecutionLogFilter { - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter - +""" +A filter to be used against `PlatformResourceStatusCheck` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformResourceStatusCheckFilter { """Checks for all expressions in this list.""" - and: [PlatformFunctionExecutionLogFilter!] + and: [PlatformResourceStatusCheckFilter!] - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter + """Filter by the object’s `completedAt` field.""" + completedAt: DatetimeFilter """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `invocationId` field.""" - invocationId: UUIDFilter + """Negates the expression.""" + not: PlatformResourceStatusCheckFilter - """Filter by the object’s `logLevel` field.""" - logLevel: StringFilter + """Checks for any expressions in this list.""" + or: [PlatformResourceStatusCheckFilter!] - """Filter by the object’s `message` field.""" - message: StringFilter + """Filter by the object’s `requestedAt` field.""" + requestedAt: DatetimeFilter - """Filter by the object’s `metadata` field.""" - metadata: JSONFilter + """Filter by the object’s `requestedBy` field.""" + requestedBy: UUIDFilter - """Negates the expression.""" - not: PlatformFunctionExecutionLogFilter + """Filter by the object’s `resource` relation.""" + resource: PlatformResourceFilter - """Checks for any expressions in this list.""" - or: [PlatformFunctionExecutionLogFilter!] + """Filter by the object’s `resourceId` field.""" + resourceId: UUIDFilter - """Filter by the object’s `taskIdentifier` field.""" - taskIdentifier: StringFilter -} + """Filter by the object’s `result` field.""" + result: JSONFilter -"""An input for mutations affecting `PlatformFunctionExecutionLog`""" -input PlatformFunctionExecutionLogInput { - """User who triggered the execution (NULL for system/cron)""" - actorId: UUID + """Filter by the object’s `status` field.""" + status: StringFilter +} - """Log entry timestamp (partition key)""" - createdAt: Datetime +"""An input for mutations affecting `PlatformResourceStatusCheck`""" +input PlatformResourceStatusCheckInput { + """When the check completed (NULL while pending/running)""" + completedAt: Datetime - """Unique log entry identifier""" + """Unique status check identifier""" id: UUID - """Invocation this log entry belongs to (NULL for standalone job logs)""" - invocationId: UUID + """When the check was requested""" + requestedAt: Datetime - """Log severity: debug, info, warn, error""" - logLevel: String + """User who requested the check (NULL for system/scheduled)""" + requestedBy: UUID - """Log message text""" - message: String! + """Resource to check""" + resourceId: UUID! - """Structured context (labels, trace data, extra fields)""" - metadata: JSON + """Diagnostic snapshot: k8s_status, conditions, pod_logs_tail, events""" + result: JSON - """Function routing key (NULL for generic job logs)""" - taskIdentifier: String + """Check lifecycle: pending, running, completed, failed""" + status: String } -"""Methods to use when ordering `PlatformFunctionExecutionLog`.""" -enum PlatformFunctionExecutionLogOrderBy { - ACTOR_ID_ASC - ACTOR_ID_DESC - CREATED_AT_ASC - CREATED_AT_DESC +"""Methods to use when ordering `PlatformResourceStatusCheck`.""" +enum PlatformResourceStatusCheckOrderBy { + COMPLETED_AT_ASC + COMPLETED_AT_DESC ID_ASC ID_DESC - INVOCATION_ID_ASC - INVOCATION_ID_DESC - LOG_LEVEL_ASC - LOG_LEVEL_DESC - MESSAGE_ASC - MESSAGE_DESC - METADATA_ASC - METADATA_DESC NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC - TASK_IDENTIFIER_ASC - TASK_IDENTIFIER_DESC + REQUESTED_AT_ASC + REQUESTED_AT_DESC + REQUESTED_BY_ASC + REQUESTED_BY_DESC + RESOURCE_ID_ASC + RESOURCE_ID_DESC + RESULT_ASC + RESULT_DESC + STATUS_ASC + STATUS_DESC } """ -Represents an update to a `PlatformFunctionExecutionLog`. Fields that are set will be updated. +Represents an update to a `PlatformResourceStatusCheck`. Fields that are set will be updated. """ -input PlatformFunctionExecutionLogPatch { - """User who triggered the execution (NULL for system/cron)""" - actorId: UUID - - """Log entry timestamp (partition key)""" - createdAt: Datetime +input PlatformResourceStatusCheckPatch { + """When the check completed (NULL while pending/running)""" + completedAt: Datetime - """Unique log entry identifier""" + """Unique status check identifier""" id: UUID - """Invocation this log entry belongs to (NULL for standalone job logs)""" - invocationId: UUID + """When the check was requested""" + requestedAt: Datetime - """Log severity: debug, info, warn, error""" - logLevel: String + """User who requested the check (NULL for system/scheduled)""" + requestedBy: UUID - """Log message text""" - message: String + """Resource to check""" + resourceId: UUID - """Structured context (labels, trace data, extra fields)""" - metadata: JSON + """Diagnostic snapshot: k8s_status, conditions, pod_logs_tail, events""" + result: JSON - """Function routing key (NULL for generic job logs)""" - taskIdentifier: String + """Check lifecycle: pending, running, completed, failed""" + status: String } """ -Function invocation log — INSERT to call a function (business-layer, metered). Linked to definitions via function_definition_id FK, with task_identifier as the denormalized routing/audit slug. +A filter to be used against many `PlatformResourceStatusCheck` object types. All fields are combined with a logical ‘and.’ """ -type PlatformFunctionInvocation { - """Who triggered the invocation (NULL for system/cron)""" - actorId: UUID - - """ - Reads a single `PlatformFunctionApiBinding` that is related to this `PlatformFunctionInvocation`. - """ - apiBinding: PlatformFunctionApiBinding - - """ - API binding this invocation arrived through (NULL for cron/graph/system/worker paths) - """ - apiBindingId: UUID - - """Invocation trigger channel: api, graph, cron, sync, webhook, or worker""" - channel: String - - """When execution completed""" - completedAt: Datetime - - """Invocation creation timestamp (partition key)""" - createdAt: Datetime! - - """Database this invocation is attributed to (usage/billing attribution)""" - databaseId: UUID! - - """ - Scope that owns function_definition_id (e.g. app/org/database/platform) — the per-scope definitions table the resolver selected - """ - definitionScope: String - - """Wall-clock execution time in milliseconds""" - durationMs: Int +input PlatformResourceToManyPlatformResourceStatusCheckFilter { + """Filters to entities where every related entity matches.""" + every: PlatformResourceStatusCheckFilter - """ - Error message when status is failed, or the reason the run was skipped when status is skipped - """ - error: String + """Filters to entities where no related entity matches.""" + none: PlatformResourceStatusCheckFilter - """ - Function definition this invocation ran (soft cross-scope ref; paired with definition_scope). task_identifier stays as the audit slug. - """ - functionDefinitionId: UUID + """Filters to entities where at least one related entity matches.""" + some: PlatformResourceStatusCheckFilter +} - """Groups all node invocations from a single flow graph execution""" - graphExecutionId: UUID +""" +Raw resource usage log — interval-accounting measurements from heartbeats (self), the reconciler (observer), and the namespace-grain collector (prometheus) +""" +type PlatformResourceUsageLog { + """CPU gauge in millicores at sample time (NULL when unknown)""" + cpuMillicores: BigInt - """Unique invocation identifier""" + """Unique sample identifier""" id: UUID! - """FK to app_jobs.jobs — the underlying transport""" - jobId: BigInt - - """Parent invocation when this is a child node of a flow graph execution""" - parentInvocationId: UUID + """Seconds covered by this sample — runtime is SUM(interval_seconds)""" + intervalSeconds: Int! - """Function input payload""" - payload: JSON + """Memory gauge in bytes at sample time (NULL when unknown)""" + memoryBytes: BigInt """ - Non-secret channel-specific invocation provenance (route/binding/event identifiers only) + Structured gauges: replicas, pod counts, phases, and other producer-specific metrics """ - provenance: JSON! - - """Function return value (success) or structured error (failure)""" - result: JSON - - """When execution started""" - startedAt: Datetime + metrics: JSON! - """ - Lifecycle: pending → running → completed/failed/cancelled; skipped = never ran (a gate rejected the intended run) - """ - status: String! + """Namespace the measured workload runs in""" + namespaceId: UUID! """ - Function routing slug (category:name). Denormalized from the definition — must match the row referenced by function_definition_id when that is set. + Resource this sample measures (NULL for namespace-grain catch-all rows) """ - taskIdentifier: String! -} - -""" -Function invocation attempts — one row per worker attempt (including failed retries) with duration and error detail -""" -type PlatformFunctionInvocationAttempt { - """Who triggered the invocation (NULL for system/cron)""" - actorId: UUID - - """1-based attempt number for this invocation""" - attempt: Int! - - """When the attempt result was recorded (partition key)""" - createdAt: Datetime! - - """Wall-clock attempt time in milliseconds""" - durationMs: Int - - """Error message when the attempt failed""" - error: String - - """Structured error context (stack, code, provider response)""" - errorDetail: JSON - - """Unique attempt identifier""" - id: UUID! + resourceId: UUID - """ - created_at of the referenced invocation (partition-pruned lookups against the invocations PK) - """ - invocationCreatedAt: Datetime! + """Sample timestamp (partition key) — end of the measured interval""" + sampledAt: Datetime! """ - Invocation this attempt belongs to (soft reference paired with invocation_created_at) + Sample producer: self (workload heartbeat), observer (reconciler), or prometheus (namespace-grain usage collector) """ - invocationId: UUID! - - """When the attempt began executing""" - startedAt: Datetime - - """Whether this attempt completed successfully""" - success: Boolean! - - """Function routing slug (denormalized from the invocation)""" - taskIdentifier: String! + source: String! } -"""A connection to a list of `PlatformFunctionInvocationAttempt` values.""" -type PlatformFunctionInvocationAttemptConnection { +"""A connection to a list of `PlatformResourceUsageLog` values.""" +type PlatformResourceUsageLogConnection { """ - A list of edges which contains the `PlatformFunctionInvocationAttempt` and cursor to aid in pagination. + A list of edges which contains the `PlatformResourceUsageLog` and cursor to aid in pagination. """ - edges: [PlatformFunctionInvocationAttemptEdge]! + edges: [PlatformResourceUsageLogEdge]! - """A list of `PlatformFunctionInvocationAttempt` objects.""" - nodes: [PlatformFunctionInvocationAttempt]! + """A list of `PlatformResourceUsageLog` objects.""" + nodes: [PlatformResourceUsageLog]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `PlatformFunctionInvocationAttempt` you could get from the connection. + The count of *all* `PlatformResourceUsageLog` you could get from the connection. """ totalCount: Int! } -"""A `PlatformFunctionInvocationAttempt` edge in the connection.""" -type PlatformFunctionInvocationAttemptEdge { +"""A `PlatformResourceUsageLog` edge in the connection.""" +type PlatformResourceUsageLogEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `PlatformFunctionInvocationAttempt` at the end of the edge.""" - node: PlatformFunctionInvocationAttempt + """The `PlatformResourceUsageLog` at the end of the edge.""" + node: PlatformResourceUsageLog } """ -A filter to be used against `PlatformFunctionInvocationAttempt` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `PlatformResourceUsageLog` object types. All fields are combined with a logical ‘and.’ """ -input PlatformFunctionInvocationAttemptFilter { - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter - +input PlatformResourceUsageLogFilter { """Checks for all expressions in this list.""" - and: [PlatformFunctionInvocationAttemptFilter!] - - """Filter by the object’s `attempt` field.""" - attempt: IntFilter - - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter - - """Filter by the object’s `durationMs` field.""" - durationMs: IntFilter - - """Filter by the object’s `error` field.""" - error: StringFilter + and: [PlatformResourceUsageLogFilter!] - """Filter by the object’s `errorDetail` field.""" - errorDetail: JSONFilter + """Filter by the object’s `cpuMillicores` field.""" + cpuMillicores: BigIntFilter """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `invocationCreatedAt` field.""" - invocationCreatedAt: DatetimeFilter + """Filter by the object’s `intervalSeconds` field.""" + intervalSeconds: IntFilter - """Filter by the object’s `invocationId` field.""" - invocationId: UUIDFilter + """Filter by the object’s `memoryBytes` field.""" + memoryBytes: BigIntFilter + + """Filter by the object’s `metrics` field.""" + metrics: JSONFilter + + """Filter by the object’s `namespaceId` field.""" + namespaceId: UUIDFilter """Negates the expression.""" - not: PlatformFunctionInvocationAttemptFilter + not: PlatformResourceUsageLogFilter """Checks for any expressions in this list.""" - or: [PlatformFunctionInvocationAttemptFilter!] + or: [PlatformResourceUsageLogFilter!] - """Filter by the object’s `startedAt` field.""" - startedAt: DatetimeFilter + """Filter by the object’s `resourceId` field.""" + resourceId: UUIDFilter - """Filter by the object’s `success` field.""" - success: BooleanFilter + """Filter by the object’s `sampledAt` field.""" + sampledAt: DatetimeFilter - """Filter by the object’s `taskIdentifier` field.""" - taskIdentifier: StringFilter + """Filter by the object’s `source` field.""" + source: StringFilter } -"""An input for mutations affecting `PlatformFunctionInvocationAttempt`""" -input PlatformFunctionInvocationAttemptInput { - """Who triggered the invocation (NULL for system/cron)""" - actorId: UUID - - """1-based attempt number for this invocation""" - attempt: Int! - - """When the attempt result was recorded (partition key)""" - createdAt: Datetime - - """Wall-clock attempt time in milliseconds""" - durationMs: Int +"""An input for mutations affecting `PlatformResourceUsageLog`""" +input PlatformResourceUsageLogInput { + """CPU gauge in millicores at sample time (NULL when unknown)""" + cpuMillicores: BigInt - """Error message when the attempt failed""" - error: String + """Unique sample identifier""" + id: UUID - """Structured error context (stack, code, provider response)""" - errorDetail: JSON + """Seconds covered by this sample — runtime is SUM(interval_seconds)""" + intervalSeconds: Int! - """Unique attempt identifier""" - id: UUID + """Memory gauge in bytes at sample time (NULL when unknown)""" + memoryBytes: BigInt """ - created_at of the referenced invocation (partition-pruned lookups against the invocations PK) + Structured gauges: replicas, pod counts, phases, and other producer-specific metrics """ - invocationCreatedAt: Datetime! + metrics: JSON + + """Namespace the measured workload runs in""" + namespaceId: UUID! """ - Invocation this attempt belongs to (soft reference paired with invocation_created_at) + Resource this sample measures (NULL for namespace-grain catch-all rows) """ - invocationId: UUID! - - """When the attempt began executing""" - startedAt: Datetime + resourceId: UUID - """Whether this attempt completed successfully""" - success: Boolean! + """Sample timestamp (partition key) — end of the measured interval""" + sampledAt: Datetime - """Function routing slug (denormalized from the invocation)""" - taskIdentifier: String! + """ + Sample producer: self (workload heartbeat), observer (reconciler), or prometheus (namespace-grain usage collector) + """ + source: String! } -"""Methods to use when ordering `PlatformFunctionInvocationAttempt`.""" -enum PlatformFunctionInvocationAttemptOrderBy { - ACTOR_ID_ASC - ACTOR_ID_DESC - ATTEMPT_ASC - ATTEMPT_DESC - CREATED_AT_ASC - CREATED_AT_DESC - DURATION_MS_ASC - DURATION_MS_DESC - ERROR_ASC - ERROR_DESC - ERROR_DETAIL_ASC - ERROR_DETAIL_DESC +"""Methods to use when ordering `PlatformResourceUsageLog`.""" +enum PlatformResourceUsageLogOrderBy { + CPU_MILLICORES_ASC + CPU_MILLICORES_DESC ID_ASC ID_DESC - INVOCATION_CREATED_AT_ASC - INVOCATION_CREATED_AT_DESC - INVOCATION_ID_ASC - INVOCATION_ID_DESC + INTERVAL_SECONDS_ASC + INTERVAL_SECONDS_DESC + MEMORY_BYTES_ASC + MEMORY_BYTES_DESC + METRICS_ASC + METRICS_DESC + NAMESPACE_ID_ASC + NAMESPACE_ID_DESC NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC - STARTED_AT_ASC - STARTED_AT_DESC - SUCCESS_ASC - SUCCESS_DESC - TASK_IDENTIFIER_ASC - TASK_IDENTIFIER_DESC + RESOURCE_ID_ASC + RESOURCE_ID_DESC + SAMPLED_AT_ASC + SAMPLED_AT_DESC + SOURCE_ASC + SOURCE_DESC } """ -Represents an update to a `PlatformFunctionInvocationAttempt`. Fields that are set will be updated. +Represents an update to a `PlatformResourceUsageLog`. Fields that are set will be updated. """ -input PlatformFunctionInvocationAttemptPatch { - """Who triggered the invocation (NULL for system/cron)""" - actorId: UUID +input PlatformResourceUsageLogPatch { + """CPU gauge in millicores at sample time (NULL when unknown)""" + cpuMillicores: BigInt - """1-based attempt number for this invocation""" - attempt: Int + """Unique sample identifier""" + id: UUID - """When the attempt result was recorded (partition key)""" - createdAt: Datetime + """Seconds covered by this sample — runtime is SUM(interval_seconds)""" + intervalSeconds: Int - """Wall-clock attempt time in milliseconds""" - durationMs: Int + """Memory gauge in bytes at sample time (NULL when unknown)""" + memoryBytes: BigInt - """Error message when the attempt failed""" - error: String + """ + Structured gauges: replicas, pod counts, phases, and other producer-specific metrics + """ + metrics: JSON - """Structured error context (stack, code, provider response)""" - errorDetail: JSON + """Namespace the measured workload runs in""" + namespaceId: UUID - """Unique attempt identifier""" - id: UUID + """ + Resource this sample measures (NULL for namespace-grain catch-all rows) + """ + resourceId: UUID + + """Sample timestamp (partition key) — end of the measured interval""" + sampledAt: Datetime """ - created_at of the referenced invocation (partition-pruned lookups against the invocations PK) + Sample producer: self (workload heartbeat), observer (reconciler), or prometheus (namespace-grain usage collector) """ - invocationCreatedAt: Datetime + source: String +} + +""" +Resource usage summaries — runtime seconds, GB-seconds, and max gauges per (resource, namespace, day); resource_id-NULL rows are namespace-grain totals +""" +type PlatformResourceUsageSummary { + """Day this summary covers (partition key)""" + date: Date! """ - Invocation this attempt belongs to (soft reference paired with invocation_created_at) + Memory usage for the day — SUM(memory_bytes * interval_seconds) normalized to GB-seconds """ - invocationId: UUID + gbSeconds: BigFloat! - """When the attempt began executing""" - startedAt: Datetime + """Unique usage summary identifier""" + id: UUID! + + """Maximum CPU gauge observed during the day (NULL when never reported)""" + maxCpuMillicores: BigInt + + """ + Maximum memory gauge observed during the day (NULL when never reported) + """ + maxMemoryBytes: BigInt + + """Namespace the resource runs in""" + namespaceId: UUID! + + """ + Resource this summary covers (NULL for namespace-grain catch-all summaries) + """ + resourceId: UUID - """Whether this attempt completed successfully""" - success: Boolean + """Total measured runtime for the day — SUM(interval_seconds)""" + runtimeSeconds: BigInt! - """Function routing slug (denormalized from the invocation)""" - taskIdentifier: String + """Number of raw samples aggregated into this summary""" + sampleCount: Int! } -"""A connection to a list of `PlatformFunctionInvocation` values.""" -type PlatformFunctionInvocationConnection { +"""A connection to a list of `PlatformResourceUsageSummary` values.""" +type PlatformResourceUsageSummaryConnection { """ - A list of edges which contains the `PlatformFunctionInvocation` and cursor to aid in pagination. + A list of edges which contains the `PlatformResourceUsageSummary` and cursor to aid in pagination. """ - edges: [PlatformFunctionInvocationEdge]! + edges: [PlatformResourceUsageSummaryEdge]! - """A list of `PlatformFunctionInvocation` objects.""" - nodes: [PlatformFunctionInvocation]! + """A list of `PlatformResourceUsageSummary` objects.""" + nodes: [PlatformResourceUsageSummary]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `PlatformFunctionInvocation` you could get from the connection. + The count of *all* `PlatformResourceUsageSummary` you could get from the connection. """ totalCount: Int! } -"""A `PlatformFunctionInvocation` edge in the connection.""" -type PlatformFunctionInvocationEdge { +"""A `PlatformResourceUsageSummary` edge in the connection.""" +type PlatformResourceUsageSummaryEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `PlatformFunctionInvocation` at the end of the edge.""" - node: PlatformFunctionInvocation + """The `PlatformResourceUsageSummary` at the end of the edge.""" + node: PlatformResourceUsageSummary } """ -A filter to be used against `PlatformFunctionInvocation` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `PlatformResourceUsageSummary` object types. All fields are combined with a logical ‘and.’ """ -input PlatformFunctionInvocationFilter { - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter - +input PlatformResourceUsageSummaryFilter { """Checks for all expressions in this list.""" - and: [PlatformFunctionInvocationFilter!] - - """Filter by the object’s `apiBinding` relation.""" - apiBinding: PlatformFunctionApiBindingFilter - - """A related `apiBinding` exists.""" - apiBindingExists: Boolean - - """Filter by the object’s `apiBindingId` field.""" - apiBindingId: UUIDFilter - - """Filter by the object’s `channel` field.""" - channel: StringFilter - - """Filter by the object’s `completedAt` field.""" - completedAt: DatetimeFilter - - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter - - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter - - """Filter by the object’s `definitionScope` field.""" - definitionScope: StringFilter - - """Filter by the object’s `durationMs` field.""" - durationMs: IntFilter - - """Filter by the object’s `error` field.""" - error: StringFilter + and: [PlatformResourceUsageSummaryFilter!] - """Filter by the object’s `functionDefinitionId` field.""" - functionDefinitionId: UUIDFilter + """Filter by the object’s `date` field.""" + date: DateFilter - """Filter by the object’s `graphExecutionId` field.""" - graphExecutionId: UUIDFilter + """Filter by the object’s `gbSeconds` field.""" + gbSeconds: BigFloatFilter """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `jobId` field.""" - jobId: BigIntFilter - - """Negates the expression.""" - not: PlatformFunctionInvocationFilter - - """Checks for any expressions in this list.""" - or: [PlatformFunctionInvocationFilter!] + """Filter by the object’s `maxCpuMillicores` field.""" + maxCpuMillicores: BigIntFilter - """Filter by the object’s `parentInvocationId` field.""" - parentInvocationId: UUIDFilter + """Filter by the object’s `maxMemoryBytes` field.""" + maxMemoryBytes: BigIntFilter - """Filter by the object’s `payload` field.""" - payload: JSONFilter + """Filter by the object’s `namespaceId` field.""" + namespaceId: UUIDFilter - """Filter by the object’s `provenance` field.""" - provenance: JSONFilter + """Negates the expression.""" + not: PlatformResourceUsageSummaryFilter - """Filter by the object’s `result` field.""" - result: JSONFilter + """Checks for any expressions in this list.""" + or: [PlatformResourceUsageSummaryFilter!] - """Filter by the object’s `startedAt` field.""" - startedAt: DatetimeFilter + """Filter by the object’s `resourceId` field.""" + resourceId: UUIDFilter - """Filter by the object’s `status` field.""" - status: StringFilter + """Filter by the object’s `runtimeSeconds` field.""" + runtimeSeconds: BigIntFilter - """Filter by the object’s `taskIdentifier` field.""" - taskIdentifier: StringFilter + """Filter by the object’s `sampleCount` field.""" + sampleCount: IntFilter } -"""An input for mutations affecting `PlatformFunctionInvocation`""" -input PlatformFunctionInvocationInput { - """Who triggered the invocation (NULL for system/cron)""" - actorId: UUID - - """ - API binding this invocation arrived through (NULL for cron/graph/system/worker paths) - """ - apiBindingId: UUID - - """Invocation trigger channel: api, graph, cron, sync, webhook, or worker""" - channel: String - - """When execution completed""" - completedAt: Datetime - - """Invocation creation timestamp (partition key)""" - createdAt: Datetime - - """Database this invocation is attributed to (usage/billing attribution)""" - databaseId: UUID - - """ - Scope that owns function_definition_id (e.g. app/org/database/platform) — the per-scope definitions table the resolver selected - """ - definitionScope: String - - """Wall-clock execution time in milliseconds""" - durationMs: Int - - """ - Error message when status is failed, or the reason the run was skipped when status is skipped - """ - error: String +"""An input for mutations affecting `PlatformResourceUsageSummary`""" +input PlatformResourceUsageSummaryInput { + """Day this summary covers (partition key)""" + date: Date! """ - Function definition this invocation ran (soft cross-scope ref; paired with definition_scope). task_identifier stays as the audit slug. + Memory usage for the day — SUM(memory_bytes * interval_seconds) normalized to GB-seconds """ - functionDefinitionId: UUID - - """Groups all node invocations from a single flow graph execution""" - graphExecutionId: UUID + gbSeconds: BigFloat - """Unique invocation identifier""" + """Unique usage summary identifier""" id: UUID - """FK to app_jobs.jobs — the underlying transport""" - jobId: BigInt - - """Parent invocation when this is a child node of a flow graph execution""" - parentInvocationId: UUID - - """Function input payload""" - payload: JSON + """Maximum CPU gauge observed during the day (NULL when never reported)""" + maxCpuMillicores: BigInt """ - Non-secret channel-specific invocation provenance (route/binding/event identifiers only) + Maximum memory gauge observed during the day (NULL when never reported) """ - provenance: JSON - - """Function return value (success) or structured error (failure)""" - result: JSON + maxMemoryBytes: BigInt - """When execution started""" - startedAt: Datetime + """Namespace the resource runs in""" + namespaceId: UUID! """ - Lifecycle: pending → running → completed/failed/cancelled; skipped = never ran (a gate rejected the intended run) + Resource this summary covers (NULL for namespace-grain catch-all summaries) """ - status: String + resourceId: UUID - """ - Function routing slug (category:name). Denormalized from the definition — must match the row referenced by function_definition_id when that is set. - """ - taskIdentifier: String! + """Total measured runtime for the day — SUM(interval_seconds)""" + runtimeSeconds: BigInt + + """Number of raw samples aggregated into this summary""" + sampleCount: Int } -"""Methods to use when ordering `PlatformFunctionInvocation`.""" -enum PlatformFunctionInvocationOrderBy { - ACTOR_ID_ASC - ACTOR_ID_DESC - API_BINDING_ID_ASC - API_BINDING_ID_DESC - CHANNEL_ASC - CHANNEL_DESC - COMPLETED_AT_ASC - COMPLETED_AT_DESC - CREATED_AT_ASC - CREATED_AT_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - DEFINITION_SCOPE_ASC - DEFINITION_SCOPE_DESC - DURATION_MS_ASC - DURATION_MS_DESC - ERROR_ASC - ERROR_DESC - FUNCTION_DEFINITION_ID_ASC - FUNCTION_DEFINITION_ID_DESC - GRAPH_EXECUTION_ID_ASC - GRAPH_EXECUTION_ID_DESC +"""Methods to use when ordering `PlatformResourceUsageSummary`.""" +enum PlatformResourceUsageSummaryOrderBy { + DATE_ASC + DATE_DESC + GB_SECONDS_ASC + GB_SECONDS_DESC ID_ASC ID_DESC - JOB_ID_ASC - JOB_ID_DESC + MAX_CPU_MILLICORES_ASC + MAX_CPU_MILLICORES_DESC + MAX_MEMORY_BYTES_ASC + MAX_MEMORY_BYTES_DESC + NAMESPACE_ID_ASC + NAMESPACE_ID_DESC NATURAL - PARENT_INVOCATION_ID_ASC - PARENT_INVOCATION_ID_DESC - PAYLOAD_ASC - PAYLOAD_DESC PRIMARY_KEY_ASC PRIMARY_KEY_DESC - PROVENANCE_ASC - PROVENANCE_DESC - RESULT_ASC - RESULT_DESC - STARTED_AT_ASC - STARTED_AT_DESC - STATUS_ASC - STATUS_DESC - TASK_IDENTIFIER_ASC - TASK_IDENTIFIER_DESC + RESOURCE_ID_ASC + RESOURCE_ID_DESC + RUNTIME_SECONDS_ASC + RUNTIME_SECONDS_DESC + SAMPLE_COUNT_ASC + SAMPLE_COUNT_DESC } """ -Represents an update to a `PlatformFunctionInvocation`. Fields that are set will be updated. +Represents an update to a `PlatformResourceUsageSummary`. Fields that are set will be updated. """ -input PlatformFunctionInvocationPatch { - """Who triggered the invocation (NULL for system/cron)""" - actorId: UUID +input PlatformResourceUsageSummaryPatch { + """Day this summary covers (partition key)""" + date: Date """ - API binding this invocation arrived through (NULL for cron/graph/system/worker paths) + Memory usage for the day — SUM(memory_bytes * interval_seconds) normalized to GB-seconds """ - apiBindingId: UUID + gbSeconds: BigFloat - """Invocation trigger channel: api, graph, cron, sync, webhook, or worker""" - channel: String + """Unique usage summary identifier""" + id: UUID - """When execution completed""" - completedAt: Datetime + """Maximum CPU gauge observed during the day (NULL when never reported)""" + maxCpuMillicores: BigInt - """Invocation creation timestamp (partition key)""" - createdAt: Datetime + """ + Maximum memory gauge observed during the day (NULL when never reported) + """ + maxMemoryBytes: BigInt - """Database this invocation is attributed to (usage/billing attribution)""" - databaseId: UUID + """Namespace the resource runs in""" + namespaceId: UUID """ - Scope that owns function_definition_id (e.g. app/org/database/platform) — the per-scope definitions table the resolver selected + Resource this summary covers (NULL for namespace-grain catch-all summaries) """ - definitionScope: String + resourceId: UUID - """Wall-clock execution time in milliseconds""" - durationMs: Int + """Total measured runtime for the day — SUM(interval_seconds)""" + runtimeSeconds: BigInt + + """Number of raw samples aggregated into this summary""" + sampleCount: Int +} + +type PlatformResourceUtilization { + avgMemoryBytes: BigInt + cpuLimitMillicores: BigInt + cpuPeakUtilization: BigFloat + cpuRequestHeadroomMillicores: BigInt + cpuRequestMillicores: BigInt + date: Date + gbSeconds: BigFloat + kind: String + maxCpuMillicores: BigInt + maxMemoryBytes: BigInt + memoryLimitBytes: BigInt + memoryPeakUtilization: BigFloat + memoryRequestBytes: BigInt + memoryRequestHeadroomBytes: BigInt + namespaceId: UUID + replicas: Int + resourceId: UUID + runtimeSeconds: BigInt + sampleCount: Int +} +"""A connection to a list of `PlatformResourceUtilization` values.""" +type PlatformResourceUtilizationConnection { """ - Error message when status is failed, or the reason the run was skipped when status is skipped + A list of edges which contains the `PlatformResourceUtilization` and cursor to aid in pagination. """ - error: String + edges: [PlatformResourceUtilizationEdge]! + + """A list of `PlatformResourceUtilization` objects.""" + nodes: [PlatformResourceUtilization]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! """ - Function definition this invocation ran (soft cross-scope ref; paired with definition_scope). task_identifier stays as the audit slug. + The count of *all* `PlatformResourceUtilization` you could get from the connection. """ - functionDefinitionId: UUID + totalCount: Int! +} - """Groups all node invocations from a single flow graph execution""" - graphExecutionId: UUID +"""A `PlatformResourceUtilization` edge in the connection.""" +type PlatformResourceUtilizationEdge { + """A cursor for use in pagination.""" + cursor: Cursor - """Unique invocation identifier""" - id: UUID + """The `PlatformResourceUtilization` at the end of the edge.""" + node: PlatformResourceUtilization +} - """FK to app_jobs.jobs — the underlying transport""" - jobId: BigInt +""" +A filter to be used against `PlatformResourceUtilization` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformResourceUtilizationFilter { + """Checks for all expressions in this list.""" + and: [PlatformResourceUtilizationFilter!] - """Parent invocation when this is a child node of a flow graph execution""" - parentInvocationId: UUID + """Filter by the object’s `avgMemoryBytes` field.""" + avgMemoryBytes: BigIntFilter - """Function input payload""" - payload: JSON + """Filter by the object’s `cpuLimitMillicores` field.""" + cpuLimitMillicores: BigIntFilter - """ - Non-secret channel-specific invocation provenance (route/binding/event identifiers only) - """ - provenance: JSON + """Filter by the object’s `cpuPeakUtilization` field.""" + cpuPeakUtilization: BigFloatFilter - """Function return value (success) or structured error (failure)""" - result: JSON + """Filter by the object’s `cpuRequestHeadroomMillicores` field.""" + cpuRequestHeadroomMillicores: BigIntFilter - """When execution started""" - startedAt: Datetime + """Filter by the object’s `cpuRequestMillicores` field.""" + cpuRequestMillicores: BigIntFilter - """ - Lifecycle: pending → running → completed/failed/cancelled; skipped = never ran (a gate rejected the intended run) - """ - status: String + """Filter by the object’s `date` field.""" + date: DateFilter - """ - Function routing slug (category:name). Denormalized from the definition — must match the row referenced by function_definition_id when that is set. - """ - taskIdentifier: String -} + """Filter by the object’s `gbSeconds` field.""" + gbSeconds: BigFloatFilter -"""Commit history — each commit snapshots a tree root for a store""" -type PlatformInfraCommit { - """User who authored the changes""" - authorId: UUID + """Filter by the object’s `kind` field.""" + kind: StringFilter - """User who committed (may differ from author)""" - committerId: UUID + """Filter by the object’s `maxCpuMillicores` field.""" + maxCpuMillicores: BigIntFilter - """Commit timestamp""" - date: Datetime! + """Filter by the object’s `maxMemoryBytes` field.""" + maxMemoryBytes: BigIntFilter - """Unique commit identifier""" - id: UUID! + """Filter by the object’s `memoryLimitBytes` field.""" + memoryLimitBytes: BigIntFilter - """Optional commit message""" - message: String + """Filter by the object’s `memoryPeakUtilization` field.""" + memoryPeakUtilization: BigFloatFilter - """Parent commit IDs (supports merge commits)""" - parentIds: [UUID] + """Filter by the object’s `memoryRequestBytes` field.""" + memoryRequestBytes: BigIntFilter - """Opaque store partition key for the global tier""" - scopeId: UUID! + """Filter by the object’s `memoryRequestHeadroomBytes` field.""" + memoryRequestHeadroomBytes: BigIntFilter - """Store this commit belongs to""" - storeId: UUID! + """Filter by the object’s `namespaceId` field.""" + namespaceId: UUIDFilter - """Root object ID of the tree snapshot at this commit""" - treeId: UUID + """Negates the expression.""" + not: PlatformResourceUtilizationFilter + + """Checks for any expressions in this list.""" + or: [PlatformResourceUtilizationFilter!] + + """Filter by the object’s `replicas` field.""" + replicas: IntFilter + + """Filter by the object’s `resourceId` field.""" + resourceId: UUIDFilter + + """Filter by the object’s `runtimeSeconds` field.""" + runtimeSeconds: BigIntFilter + + """Filter by the object’s `sampleCount` field.""" + sampleCount: IntFilter +} + +"""Methods to use when ordering `PlatformResourceUtilization`.""" +enum PlatformResourceUtilizationOrderBy { + AVG_MEMORY_BYTES_ASC + AVG_MEMORY_BYTES_DESC + CPU_LIMIT_MILLICORES_ASC + CPU_LIMIT_MILLICORES_DESC + CPU_PEAK_UTILIZATION_ASC + CPU_PEAK_UTILIZATION_DESC + CPU_REQUEST_HEADROOM_MILLICORES_ASC + CPU_REQUEST_HEADROOM_MILLICORES_DESC + CPU_REQUEST_MILLICORES_ASC + CPU_REQUEST_MILLICORES_DESC + DATE_ASC + DATE_DESC + GB_SECONDS_ASC + GB_SECONDS_DESC + KIND_ASC + KIND_DESC + MAX_CPU_MILLICORES_ASC + MAX_CPU_MILLICORES_DESC + MAX_MEMORY_BYTES_ASC + MAX_MEMORY_BYTES_DESC + MEMORY_LIMIT_BYTES_ASC + MEMORY_LIMIT_BYTES_DESC + MEMORY_PEAK_UTILIZATION_ASC + MEMORY_PEAK_UTILIZATION_DESC + MEMORY_REQUEST_BYTES_ASC + MEMORY_REQUEST_BYTES_DESC + MEMORY_REQUEST_HEADROOM_BYTES_ASC + MEMORY_REQUEST_HEADROOM_BYTES_DESC + NAMESPACE_ID_ASC + NAMESPACE_ID_DESC + NATURAL + REPLICAS_ASC + REPLICAS_DESC + RESOURCE_ID_ASC + RESOURCE_ID_DESC + RUNTIME_SECONDS_ASC + RUNTIME_SECONDS_DESC + SAMPLE_COUNT_ASC + SAMPLE_COUNT_DESC +} + +type PlatformResourcesHealth { + annotations: JSON + cpuLimitMillicores: BigInt + cpuRequestMillicores: BigInt + createdAt: Datetime + createdBy: UUID + createdByPrincipal: UUID + errorCount: Int + id: UUID + imageRef: String + installationId: UUID + integrations: [String] + kind: String + labels: JSON + lastError: String + lastHeartbeatAt: Datetime + memoryLimitBytes: BigInt + memoryRequestBytes: BigInt + name: String + namespaceId: UUID + realm: String + replicas: Int + requiredConfigs: [ResourceRequirement] + requiredSecrets: [ResourceRequirement] + resourceDefinitionId: UUID + slug: String + spec: JSON + status: String + statusDetail: String + statusObserved: JSON + storageClass: String + storageSizeBytes: BigInt + storageTotalBytes: BigInt + updatedAt: Datetime + updatedBy: UUID + updatedByPrincipal: UUID } -"""A connection to a list of `PlatformInfraCommit` values.""" -type PlatformInfraCommitConnection { +"""A connection to a list of `PlatformResourcesHealth` values.""" +type PlatformResourcesHealthConnection { """ - A list of edges which contains the `PlatformInfraCommit` and cursor to aid in pagination. + A list of edges which contains the `PlatformResourcesHealth` and cursor to aid in pagination. """ - edges: [PlatformInfraCommitEdge]! + edges: [PlatformResourcesHealthEdge]! - """A list of `PlatformInfraCommit` objects.""" - nodes: [PlatformInfraCommit]! + """A list of `PlatformResourcesHealth` objects.""" + nodes: [PlatformResourcesHealth]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `PlatformInfraCommit` you could get from the connection. + The count of *all* `PlatformResourcesHealth` you could get from the connection. """ totalCount: Int! } -"""A `PlatformInfraCommit` edge in the connection.""" -type PlatformInfraCommitEdge { +"""A `PlatformResourcesHealth` edge in the connection.""" +type PlatformResourcesHealthEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `PlatformInfraCommit` at the end of the edge.""" - node: PlatformInfraCommit + """The `PlatformResourcesHealth` at the end of the edge.""" + node: PlatformResourcesHealth } """ -A filter to be used against `PlatformInfraCommit` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `PlatformResourcesHealth` object types. All fields are combined with a logical ‘and.’ """ -input PlatformInfraCommitFilter { +input PlatformResourcesHealthFilter { """Checks for all expressions in this list.""" - and: [PlatformInfraCommitFilter!] + and: [PlatformResourcesHealthFilter!] - """Filter by the object’s `authorId` field.""" - authorId: UUIDFilter + """Filter by the object’s `annotations` field.""" + annotations: JSONFilter - """Filter by the object’s `committerId` field.""" - committerId: UUIDFilter + """Filter by the object’s `cpuLimitMillicores` field.""" + cpuLimitMillicores: BigIntFilter - """Filter by the object’s `date` field.""" - date: DatetimeFilter + """Filter by the object’s `cpuRequestMillicores` field.""" + cpuRequestMillicores: BigIntFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `createdBy` field.""" + createdBy: UUIDFilter + + """Filter by the object’s `createdByPrincipal` field.""" + createdByPrincipal: UUIDFilter + + """Filter by the object’s `errorCount` field.""" + errorCount: IntFilter """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `message` field.""" - message: StringFilter + """Filter by the object’s `imageRef` field.""" + imageRef: StringFilter + + """Filter by the object’s `installationId` field.""" + installationId: UUIDFilter + + """Filter by the object’s `integrations` field.""" + integrations: StringListFilter + + """Filter by the object’s `kind` field.""" + kind: StringFilter + + """Filter by the object’s `labels` field.""" + labels: JSONFilter + + """Filter by the object’s `lastError` field.""" + lastError: StringFilter + + """Filter by the object’s `lastHeartbeatAt` field.""" + lastHeartbeatAt: DatetimeFilter + + """Filter by the object’s `memoryLimitBytes` field.""" + memoryLimitBytes: BigIntFilter + + """Filter by the object’s `memoryRequestBytes` field.""" + memoryRequestBytes: BigIntFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """Filter by the object’s `namespaceId` field.""" + namespaceId: UUIDFilter """Negates the expression.""" - not: PlatformInfraCommitFilter + not: PlatformResourcesHealthFilter """Checks for any expressions in this list.""" - or: [PlatformInfraCommitFilter!] + or: [PlatformResourcesHealthFilter!] - """Filter by the object’s `parentIds` field.""" - parentIds: UUIDListFilter + """Filter by the object’s `realm` field.""" + realm: StringFilter - """Filter by the object’s `scopeId` field.""" - scopeId: UUIDFilter + """Filter by the object’s `replicas` field.""" + replicas: IntFilter - """Filter by the object’s `storeId` field.""" - storeId: UUIDFilter + """Filter by the object’s `resourceDefinitionId` field.""" + resourceDefinitionId: UUIDFilter - """Filter by the object’s `treeId` field.""" - treeId: UUIDFilter -} + """Filter by the object’s `slug` field.""" + slug: StringFilter -"""An input for mutations affecting `PlatformInfraCommit`""" -input PlatformInfraCommitInput { - """User who authored the changes""" - authorId: UUID + """Filter by the object’s `spec` field.""" + spec: JSONFilter - """User who committed (may differ from author)""" - committerId: UUID + """Filter by the object’s `status` field.""" + status: StringFilter - """Commit timestamp""" - date: Datetime + """Filter by the object’s `statusDetail` field.""" + statusDetail: StringFilter - """Unique commit identifier""" - id: UUID + """Filter by the object’s `statusObserved` field.""" + statusObserved: JSONFilter - """Optional commit message""" - message: String + """Filter by the object’s `storageClass` field.""" + storageClass: StringFilter - """Parent commit IDs (supports merge commits)""" - parentIds: [UUID] + """Filter by the object’s `storageSizeBytes` field.""" + storageSizeBytes: BigIntFilter - """Opaque store partition key for the global tier""" - scopeId: UUID! + """Filter by the object’s `storageTotalBytes` field.""" + storageTotalBytes: BigIntFilter - """Store this commit belongs to""" - storeId: UUID! + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter - """Root object ID of the tree snapshot at this commit""" - treeId: UUID + """Filter by the object’s `updatedBy` field.""" + updatedBy: UUIDFilter + + """Filter by the object’s `updatedByPrincipal` field.""" + updatedByPrincipal: UUIDFilter } -"""Methods to use when ordering `PlatformInfraCommit`.""" -enum PlatformInfraCommitOrderBy { - AUTHOR_ID_ASC - AUTHOR_ID_DESC - COMMITTER_ID_ASC - COMMITTER_ID_DESC - DATE_ASC - DATE_DESC +"""Methods to use when ordering `PlatformResourcesHealth`.""" +enum PlatformResourcesHealthOrderBy { + ANNOTATIONS_ASC + ANNOTATIONS_DESC + CPU_LIMIT_MILLICORES_ASC + CPU_LIMIT_MILLICORES_DESC + CPU_REQUEST_MILLICORES_ASC + CPU_REQUEST_MILLICORES_DESC + CREATED_AT_ASC + CREATED_AT_DESC + CREATED_BY_ASC + CREATED_BY_DESC + CREATED_BY_PRINCIPAL_ASC + CREATED_BY_PRINCIPAL_DESC + ERROR_COUNT_ASC + ERROR_COUNT_DESC ID_ASC ID_DESC - MESSAGE_ASC - MESSAGE_DESC + IMAGE_REF_ASC + IMAGE_REF_DESC + INSTALLATION_ID_ASC + INSTALLATION_ID_DESC + INTEGRATIONS_ASC + INTEGRATIONS_DESC + KIND_ASC + KIND_DESC + LABELS_ASC + LABELS_DESC + LAST_ERROR_ASC + LAST_ERROR_DESC + LAST_HEARTBEAT_AT_ASC + LAST_HEARTBEAT_AT_DESC + MEMORY_LIMIT_BYTES_ASC + MEMORY_LIMIT_BYTES_DESC + MEMORY_REQUEST_BYTES_ASC + MEMORY_REQUEST_BYTES_DESC + NAMESPACE_ID_ASC + NAMESPACE_ID_DESC + NAME_ASC + NAME_DESC NATURAL - PARENT_IDS_ASC - PARENT_IDS_DESC - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - SCOPE_ID_ASC - SCOPE_ID_DESC - STORE_ID_ASC - STORE_ID_DESC - TREE_ID_ASC - TREE_ID_DESC + REALM_ASC + REALM_DESC + REPLICAS_ASC + REPLICAS_DESC + REQUIRED_CONFIGS_ASC + REQUIRED_CONFIGS_DESC + REQUIRED_SECRETS_ASC + REQUIRED_SECRETS_DESC + RESOURCE_DEFINITION_ID_ASC + RESOURCE_DEFINITION_ID_DESC + SLUG_ASC + SLUG_DESC + SPEC_ASC + SPEC_DESC + STATUS_ASC + STATUS_DESC + STATUS_DETAIL_ASC + STATUS_DETAIL_DESC + STATUS_OBSERVED_ASC + STATUS_OBSERVED_DESC + STORAGE_CLASS_ASC + STORAGE_CLASS_DESC + STORAGE_SIZE_BYTES_ASC + STORAGE_SIZE_BYTES_DESC + STORAGE_TOTAL_BYTES_ASC + STORAGE_TOTAL_BYTES_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + UPDATED_BY_ASC + UPDATED_BY_DESC + UPDATED_BY_PRINCIPAL_ASC + UPDATED_BY_PRINCIPAL_DESC +} + +type PlatformResourcesRequirementsState { + configHash: String + configObjectName: String + requirementsHash: String + resourceId: UUID + secretsHash: String + secretsObjectName: String + slug: String +} + +"""A connection to a list of `PlatformResourcesRequirementsState` values.""" +type PlatformResourcesRequirementsStateConnection { + """ + A list of edges which contains the `PlatformResourcesRequirementsState` and cursor to aid in pagination. + """ + edges: [PlatformResourcesRequirementsStateEdge]! + + """A list of `PlatformResourcesRequirementsState` objects.""" + nodes: [PlatformResourcesRequirementsState]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `PlatformResourcesRequirementsState` you could get from the connection. + """ + totalCount: Int! +} + +"""A `PlatformResourcesRequirementsState` edge in the connection.""" +type PlatformResourcesRequirementsStateEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `PlatformResourcesRequirementsState` at the end of the edge.""" + node: PlatformResourcesRequirementsState } """ -Represents an update to a `PlatformInfraCommit`. Fields that are set will be updated. +A filter to be used against `PlatformResourcesRequirementsState` object types. All fields are combined with a logical ‘and.’ """ -input PlatformInfraCommitPatch { - """User who authored the changes""" - authorId: UUID +input PlatformResourcesRequirementsStateFilter { + """Checks for all expressions in this list.""" + and: [PlatformResourcesRequirementsStateFilter!] - """User who committed (may differ from author)""" - committerId: UUID + """Filter by the object’s `configHash` field.""" + configHash: StringFilter - """Commit timestamp""" - date: Datetime + """Filter by the object’s `configObjectName` field.""" + configObjectName: StringFilter - """Unique commit identifier""" - id: UUID + """Negates the expression.""" + not: PlatformResourcesRequirementsStateFilter - """Optional commit message""" - message: String + """Checks for any expressions in this list.""" + or: [PlatformResourcesRequirementsStateFilter!] - """Parent commit IDs (supports merge commits)""" - parentIds: [UUID] + """Filter by the object’s `requirementsHash` field.""" + requirementsHash: StringFilter - """Opaque store partition key for the global tier""" - scopeId: UUID + """Filter by the object’s `resourceId` field.""" + resourceId: UUIDFilter - """Store this commit belongs to""" - storeId: UUID + """Filter by the object’s `secretsHash` field.""" + secretsHash: StringFilter - """Root object ID of the tree snapshot at this commit""" - treeId: UUID + """Filter by the object’s `secretsObjectName` field.""" + secretsObjectName: StringFilter + + """Filter by the object’s `slug` field.""" + slug: StringFilter } -"""A connection to a list of `PlatformInfraGetAllTreeNodesRecord` values.""" -type PlatformInfraGetAllTreeNodesConnection { +"""Methods to use when ordering `PlatformResourcesRequirementsState`.""" +enum PlatformResourcesRequirementsStateOrderBy { + CONFIG_HASH_ASC + CONFIG_HASH_DESC + CONFIG_OBJECT_NAME_ASC + CONFIG_OBJECT_NAME_DESC + NATURAL + REQUIREMENTS_HASH_ASC + REQUIREMENTS_HASH_DESC + RESOURCE_ID_ASC + RESOURCE_ID_DESC + SECRETS_HASH_ASC + SECRETS_HASH_DESC + SECRETS_OBJECT_NAME_ASC + SECRETS_OBJECT_NAME_DESC + SLUG_ASC + SLUG_DESC +} + +type PlatformResourcesResolvedRequirement { + atomId: UUID + configObjectName: String + name: String + namespaceId: UUID + present: Boolean + realm: String + required: Boolean + requirementKind: String + resourceId: UUID + secretsObjectName: String + slug: String +} + +""" +A connection to a list of `PlatformResourcesResolvedRequirement` values. +""" +type PlatformResourcesResolvedRequirementConnection { """ - A list of edges which contains the `PlatformInfraGetAllTreeNodesRecord` and cursor to aid in pagination. + A list of edges which contains the `PlatformResourcesResolvedRequirement` and cursor to aid in pagination. """ - edges: [PlatformInfraGetAllTreeNodesEdge]! + edges: [PlatformResourcesResolvedRequirementEdge]! - """A list of `PlatformInfraGetAllTreeNodesRecord` objects.""" - nodes: [PlatformInfraGetAllTreeNodesRecord]! + """A list of `PlatformResourcesResolvedRequirement` objects.""" + nodes: [PlatformResourcesResolvedRequirement]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `PlatformInfraGetAllTreeNodesRecord` you could get from the connection. + The count of *all* `PlatformResourcesResolvedRequirement` you could get from the connection. """ totalCount: Int! } -"""A `PlatformInfraGetAllTreeNodesRecord` edge in the connection.""" -type PlatformInfraGetAllTreeNodesEdge { +"""A `PlatformResourcesResolvedRequirement` edge in the connection.""" +type PlatformResourcesResolvedRequirementEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `PlatformInfraGetAllTreeNodesRecord` at the end of the edge.""" - node: PlatformInfraGetAllTreeNodesRecord + """The `PlatformResourcesResolvedRequirement` at the end of the edge.""" + node: PlatformResourcesResolvedRequirement } -type PlatformInfraGetAllTreeNodesRecord { - data: JSON - path: [String] -} +""" +A filter to be used against `PlatformResourcesResolvedRequirement` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformResourcesResolvedRequirementFilter { + """Checks for all expressions in this list.""" + and: [PlatformResourcesResolvedRequirementFilter!] -"""All input for the `platformInfraInitEmptyRepo` mutation.""" -input PlatformInfraInitEmptyRepoInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - sId: UUID - storeId: UUID -} + """Filter by the object’s `atomId` field.""" + atomId: UUIDFilter -"""The output of our `platformInfraInitEmptyRepo` mutation.""" -type PlatformInfraInitEmptyRepoPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String + """Filter by the object’s `configObjectName` field.""" + configObjectName: StringFilter - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query + """Filter by the object’s `name` field.""" + name: StringFilter + + """Filter by the object’s `namespaceId` field.""" + namespaceId: UUIDFilter + + """Negates the expression.""" + not: PlatformResourcesResolvedRequirementFilter + + """Checks for any expressions in this list.""" + or: [PlatformResourcesResolvedRequirementFilter!] + + """Filter by the object’s `present` field.""" + present: BooleanFilter + + """Filter by the object’s `realm` field.""" + realm: StringFilter + + """Filter by the object’s `required` field.""" + required: BooleanFilter + + """Filter by the object’s `requirementKind` field.""" + requirementKind: StringFilter + + """Filter by the object’s `resourceId` field.""" + resourceId: UUIDFilter + + """Filter by the object’s `secretsObjectName` field.""" + secretsObjectName: StringFilter + + """Filter by the object’s `slug` field.""" + slug: StringFilter } -"""All input for the `platformInfraInsertNodeAtPath` mutation.""" -input PlatformInfraInsertNodeAtPathInput { - """ - An arbitrary 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] - path: [String] - root: UUID - sId: UUID +"""Methods to use when ordering `PlatformResourcesResolvedRequirement`.""" +enum PlatformResourcesResolvedRequirementOrderBy { + ATOM_ID_ASC + ATOM_ID_DESC + CONFIG_OBJECT_NAME_ASC + CONFIG_OBJECT_NAME_DESC + NAMESPACE_ID_ASC + NAMESPACE_ID_DESC + NAME_ASC + NAME_DESC + NATURAL + PRESENT_ASC + PRESENT_DESC + REALM_ASC + REALM_DESC + REQUIRED_ASC + REQUIRED_DESC + REQUIREMENT_KIND_ASC + REQUIREMENT_KIND_DESC + RESOURCE_ID_ASC + RESOURCE_ID_DESC + SECRETS_OBJECT_NAME_ASC + SECRETS_OBJECT_NAME_DESC + SLUG_ASC + SLUG_DESC } -"""The output of our `platformInfraInsertNodeAtPath` mutation.""" -type PlatformInfraInsertNodeAtPathPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String +""" +Webhook route authority: (host, path) -> function task_identifier invoked through the webhook channel, with provider, signing-secret reference, and replay window +""" +type PlatformWebhookEndpoint { + """Whether this endpoint currently accepts deliveries""" + active: Boolean! + createdAt: Datetime + createdBy: UUID + createdByPrincipal: UUID """ - Our root query field type. Allows us to run any query from our mutation payload. + Reads a single `PlatformFunctionDefinition` that is related to this `PlatformWebhookEndpoint`. """ - query: Query - result: UUID -} + functionDefinition: PlatformFunctionDefinition -"""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. + Same-scope function definition invoked on delivery. The function must list the webhook channel in access_channels. """ - clientMutationId: String - datas: [JSON] - kidsList: JSON - ktreeList: JSON - paths: JSON - root: UUID - sId: UUID -} + functionDefinitionId: 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. + Inbound Host header this endpoint matches (normalized lower-case, no port) """ - clientMutationId: String + host: String! + id: UUID! """ - Our root query field type. Allows us to run any query from our mutation payload. + Reads a single `PlatformNamespace` that is related to this `PlatformWebhookEndpoint`. """ - query: Query - result: UUID -} + namespace: PlatformNamespace -""" -Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children -""" -type PlatformInfraObject { - """Timestamp of object creation""" - createdAt: Datetime + """Namespace that owns this endpoint and contains its signing secret""" + namespaceId: UUID! - """Payload data for this object node""" - data: JSON + """Exact request path this endpoint matches (e.g. /webhooks/stripe)""" + path: String! - """Content-addressed UUID v5 — deterministic hash of (data, kids, ktree)""" - id: UUID! + """Reads and enables pagination through a set of `PlatformWebhookEvent`.""" + platformWebhookEventsByEndpointId( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """Ordered array of child object IDs""" - kids: [UUID] + """Read all values in the set before (above) this cursor.""" + before: Cursor - """Ordered array of child path names (parallel to kids)""" - ktree: [String] + """Only read the first `n` values of the set.""" + first: Int - """Opaque store partition key for the global tier""" - scopeId: UUID! + """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 `PlatformWebhookEvent`.""" + orderBy: [PlatformWebhookEventOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformWebhookEventFilter + ): PlatformWebhookEventConnection! + + """Verification scheme: generic (HMAC), stripe, or github""" + provider: String! + + """ + Maximum age (seconds) of a signed provider timestamp before the delivery is rejected as a replay + """ + replayWindowSeconds: Int! + + """ + Name of the signing secret in the infra secrets store. The gateway resolves the value through the generated secrets getter — the plaintext secret is never stored here. + """ + signingSecretName: String! + updatedAt: Datetime + updatedBy: UUID + updatedByPrincipal: UUID } -"""A connection to a list of `PlatformInfraObject` values.""" -type PlatformInfraObjectConnection { +"""A connection to a list of `PlatformWebhookEndpoint` values.""" +type PlatformWebhookEndpointConnection { """ - A list of edges which contains the `PlatformInfraObject` and cursor to aid in pagination. + A list of edges which contains the `PlatformWebhookEndpoint` and cursor to aid in pagination. """ - edges: [PlatformInfraObjectEdge]! + edges: [PlatformWebhookEndpointEdge]! - """A list of `PlatformInfraObject` objects.""" - nodes: [PlatformInfraObject]! + """A list of `PlatformWebhookEndpoint` objects.""" + nodes: [PlatformWebhookEndpoint]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `PlatformInfraObject` you could get from the connection. + The count of *all* `PlatformWebhookEndpoint` you could get from the connection. """ totalCount: Int! } -"""A `PlatformInfraObject` edge in the connection.""" -type PlatformInfraObjectEdge { +"""A `PlatformWebhookEndpoint` edge in the connection.""" +type PlatformWebhookEndpointEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `PlatformInfraObject` at the end of the edge.""" - node: PlatformInfraObject + """The `PlatformWebhookEndpoint` at the end of the edge.""" + node: PlatformWebhookEndpoint } """ -A filter to be used against `PlatformInfraObject` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `PlatformWebhookEndpoint` object types. All fields are combined with a logical ‘and.’ """ -input PlatformInfraObjectFilter { +input PlatformWebhookEndpointFilter { + """Filter by the object’s `active` field.""" + active: BooleanFilter + """Checks for all expressions in this list.""" - and: [PlatformInfraObjectFilter!] + and: [PlatformWebhookEndpointFilter!] """Filter by the object’s `createdAt` field.""" createdAt: DatetimeFilter - """Filter by the object’s `data` field.""" - data: JSONFilter + """Filter by the object’s `createdBy` field.""" + createdBy: UUIDFilter + + """Filter by the object’s `createdByPrincipal` field.""" + createdByPrincipal: UUIDFilter + + """Filter by the object’s `functionDefinition` relation.""" + functionDefinition: PlatformFunctionDefinitionFilter + + """Filter by the object’s `functionDefinitionId` field.""" + functionDefinitionId: UUIDFilter + + """Filter by the object’s `host` field.""" + host: StringFilter """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `kids` field.""" - kids: UUIDListFilter + """Filter by the object’s `namespace` relation.""" + namespace: PlatformNamespaceFilter - """Filter by the object’s `ktree` field.""" - ktree: StringListFilter + """Filter by the object’s `namespaceId` field.""" + namespaceId: UUIDFilter """Negates the expression.""" - not: PlatformInfraObjectFilter + not: PlatformWebhookEndpointFilter """Checks for any expressions in this list.""" - or: [PlatformInfraObjectFilter!] + or: [PlatformWebhookEndpointFilter!] - """Filter by the object’s `scopeId` field.""" - scopeId: UUIDFilter + """Filter by the object’s `path` field.""" + path: StringFilter + + """Filter by the object’s `platformWebhookEventsByEndpointId` relation.""" + platformWebhookEventsByEndpointId: PlatformWebhookEndpointToManyPlatformWebhookEventFilter + + """`platformWebhookEventsByEndpointId` exist.""" + platformWebhookEventsByEndpointIdExist: Boolean + + """Filter by the object’s `provider` field.""" + provider: StringFilter + + """Filter by the object’s `replayWindowSeconds` field.""" + replayWindowSeconds: IntFilter + + """Filter by the object’s `signingSecretName` field.""" + signingSecretName: StringFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + + """Filter by the object’s `updatedBy` field.""" + updatedBy: UUIDFilter + + """Filter by the object’s `updatedByPrincipal` field.""" + updatedByPrincipal: UUIDFilter } -"""An input for mutations affecting `PlatformInfraObject`""" -input PlatformInfraObjectInput { - """Timestamp of object creation""" +"""An input for mutations affecting `PlatformWebhookEndpoint`""" +input PlatformWebhookEndpointInput { + """Whether this endpoint currently accepts deliveries""" + active: Boolean createdAt: Datetime + createdBy: UUID + createdByPrincipal: UUID - """Payload data for this object node""" - data: JSON + """ + Same-scope function definition invoked on delivery. The function must list the webhook channel in access_channels. + """ + functionDefinitionId: UUID! - """Content-addressed UUID v5 — deterministic hash of (data, kids, ktree)""" - id: UUID! + """ + Inbound Host header this endpoint matches (normalized lower-case, no port) + """ + host: String! + id: UUID - """Ordered array of child object IDs""" - kids: [UUID] + """Namespace that owns this endpoint and contains its signing secret""" + namespaceId: UUID! - """Ordered array of child path names (parallel to kids)""" - ktree: [String] + """Exact request path this endpoint matches (e.g. /webhooks/stripe)""" + path: String! - """Opaque store partition key for the global tier""" - scopeId: UUID! + """Verification scheme: generic (HMAC), stripe, or github""" + provider: String + + """ + Maximum age (seconds) of a signed provider timestamp before the delivery is rejected as a replay + """ + replayWindowSeconds: Int + + """ + Name of the signing secret in the infra secrets store. The gateway resolves the value through the generated secrets getter — the plaintext secret is never stored here. + """ + signingSecretName: String! + updatedAt: Datetime + updatedBy: UUID + updatedByPrincipal: UUID } -"""Methods to use when ordering `PlatformInfraObject`.""" -enum PlatformInfraObjectOrderBy { +"""Methods to use when ordering `PlatformWebhookEndpoint`.""" +enum PlatformWebhookEndpointOrderBy { + ACTIVE_ASC + ACTIVE_DESC CREATED_AT_ASC CREATED_AT_DESC - DATA_ASC - DATA_DESC + CREATED_BY_ASC + CREATED_BY_DESC + CREATED_BY_PRINCIPAL_ASC + CREATED_BY_PRINCIPAL_DESC + FUNCTION_DEFINITION_ID_ASC + FUNCTION_DEFINITION_ID_DESC + HOST_ASC + HOST_DESC ID_ASC ID_DESC - KIDS_ASC - KIDS_DESC - KTREE_ASC - KTREE_DESC + NAMESPACE_ID_ASC + NAMESPACE_ID_DESC NATURAL + PATH_ASC + PATH_DESC PRIMARY_KEY_ASC PRIMARY_KEY_DESC - SCOPE_ID_ASC - SCOPE_ID_DESC + PROVIDER_ASC + PROVIDER_DESC + REPLAY_WINDOW_SECONDS_ASC + REPLAY_WINDOW_SECONDS_DESC + SIGNING_SECRET_NAME_ASC + SIGNING_SECRET_NAME_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + UPDATED_BY_ASC + UPDATED_BY_DESC + UPDATED_BY_PRINCIPAL_ASC + UPDATED_BY_PRINCIPAL_DESC } """ -Represents an update to a `PlatformInfraObject`. Fields that are set will be updated. +Represents an update to a `PlatformWebhookEndpoint`. Fields that are set will be updated. """ -input PlatformInfraObjectPatch { - """Timestamp of object creation""" +input PlatformWebhookEndpointPatch { + """Whether this endpoint currently accepts deliveries""" + active: Boolean createdAt: Datetime + createdBy: UUID + createdByPrincipal: UUID - """Payload data for this object node""" - data: JSON + """ + Same-scope function definition invoked on delivery. The function must list the webhook channel in access_channels. + """ + functionDefinitionId: UUID - """Content-addressed UUID v5 — deterministic hash of (data, kids, ktree)""" + """ + Inbound Host header this endpoint matches (normalized lower-case, no port) + """ + host: String id: UUID - """Ordered array of child object IDs""" - kids: [UUID] + """Namespace that owns this endpoint and contains its signing secret""" + namespaceId: UUID - """Ordered array of child path names (parallel to kids)""" - ktree: [String] + """Exact request path this endpoint matches (e.g. /webhooks/stripe)""" + path: String - """Opaque store partition key for the global tier""" - scopeId: UUID + """Verification scheme: generic (HMAC), stripe, or github""" + provider: String + + """ + Maximum age (seconds) of a signed provider timestamp before the delivery is rejected as a replay + """ + replayWindowSeconds: Int + + """ + Name of the signing secret in the infra secrets store. The gateway resolves the value through the generated secrets getter — the plaintext secret is never stored here. + """ + signingSecretName: String + updatedAt: Datetime + updatedBy: UUID + updatedByPrincipal: UUID } -"""Branch heads — mutable pointers into the commit chain""" -type PlatformInfraRef { - """Commit this ref points to""" - commitId: UUID +""" +A filter to be used against many `PlatformWebhookEvent` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformWebhookEndpointToManyPlatformWebhookEventFilter { + """Filters to entities where every related entity matches.""" + every: PlatformWebhookEventFilter - """Unique ref identifier""" + """Filters to entities where no related entity matches.""" + none: PlatformWebhookEventFilter + + """Filters to entities where at least one related entity matches.""" + some: PlatformWebhookEventFilter +} + +""" +Durable webhook acceptance log — one row per accepted delivery, deduplicated on (endpoint_id, external_event_id), linked to the pending function invocation it enqueued +""" +type PlatformWebhookEvent { + createdAt: Datetime + + """ + Reads a single `PlatformWebhookEndpoint` that is related to this `PlatformWebhookEvent`. + """ + endpoint: PlatformWebhookEndpoint + + """Endpoint that accepted this delivery""" + endpointId: UUID! + + """Failure detail when status = failed""" + error: String + + """Provider-supplied delivery/event id used for idempotent dedup""" + externalEventId: String! id: UUID! - """Ref name (e.g. HEAD, main)""" - name: String! + """ + created_at of the enqueued invocation (partition key companion to invocation_id) + """ + invocationCreatedAt: Datetime - """Opaque store partition key for the global tier""" - scopeId: UUID! + """ + Pending function invocation enqueued for this delivery (NULL until enqueued) + """ + invocationId: UUID - """Store this ref belongs to""" - storeId: UUID! + """ + Parsed delivery payload (parsed only after signature verification over the exact raw bytes) + """ + payload: JSON! + + """ + Provider that produced this delivery (copied from the endpoint at acceptance) + """ + provider: String! + + """ + Signed provider timestamp used for replay-window validation (NULL when the provider supplies none) + """ + providerTimestamp: Datetime + + """Acceptance lifecycle: accepted, processed, failed""" + status: String! + updatedAt: Datetime } -"""A connection to a list of `PlatformInfraRef` values.""" -type PlatformInfraRefConnection { +"""A connection to a list of `PlatformWebhookEvent` values.""" +type PlatformWebhookEventConnection { """ - A list of edges which contains the `PlatformInfraRef` and cursor to aid in pagination. + A list of edges which contains the `PlatformWebhookEvent` and cursor to aid in pagination. """ - edges: [PlatformInfraRefEdge]! + edges: [PlatformWebhookEventEdge]! - """A list of `PlatformInfraRef` objects.""" - nodes: [PlatformInfraRef]! + """A list of `PlatformWebhookEvent` objects.""" + nodes: [PlatformWebhookEvent]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `PlatformInfraRef` you could get from the connection. + The count of *all* `PlatformWebhookEvent` you could get from the connection. """ totalCount: Int! } -"""A `PlatformInfraRef` edge in the connection.""" -type PlatformInfraRefEdge { +"""A `PlatformWebhookEvent` edge in the connection.""" +type PlatformWebhookEventEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `PlatformInfraRef` at the end of the edge.""" - node: PlatformInfraRef + """The `PlatformWebhookEvent` at the end of the edge.""" + node: PlatformWebhookEvent } """ -A filter to be used against `PlatformInfraRef` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `PlatformWebhookEvent` object types. All fields are combined with a logical ‘and.’ """ -input PlatformInfraRefFilter { +input PlatformWebhookEventFilter { """Checks for all expressions in this list.""" - and: [PlatformInfraRefFilter!] + and: [PlatformWebhookEventFilter!] - """Filter by the object’s `commitId` field.""" - commitId: UUIDFilter + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `endpoint` relation.""" + endpoint: PlatformWebhookEndpointFilter + + """Filter by the object’s `endpointId` field.""" + endpointId: UUIDFilter + + """Filter by the object’s `error` field.""" + error: StringFilter + + """Filter by the object’s `externalEventId` field.""" + externalEventId: StringFilter """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `name` field.""" - name: StringFilter + """Filter by the object’s `invocationCreatedAt` field.""" + invocationCreatedAt: DatetimeFilter + + """Filter by the object’s `invocationId` field.""" + invocationId: UUIDFilter """Negates the expression.""" - not: PlatformInfraRefFilter + not: PlatformWebhookEventFilter """Checks for any expressions in this list.""" - or: [PlatformInfraRefFilter!] + or: [PlatformWebhookEventFilter!] - """Filter by the object’s `scopeId` field.""" - scopeId: UUIDFilter + """Filter by the object’s `payload` field.""" + payload: JSONFilter - """Filter by the object’s `storeId` field.""" - storeId: UUIDFilter + """Filter by the object’s `provider` field.""" + provider: StringFilter + + """Filter by the object’s `providerTimestamp` field.""" + providerTimestamp: DatetimeFilter + + """Filter by the object’s `status` field.""" + status: StringFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter } -"""An input for mutations affecting `PlatformInfraRef`""" -input PlatformInfraRefInput { - """Commit this ref points to""" - commitId: UUID +"""An input for mutations affecting `PlatformWebhookEvent`""" +input PlatformWebhookEventInput { + createdAt: Datetime - """Unique ref identifier""" + """Endpoint that accepted this delivery""" + endpointId: UUID! + + """Failure detail when status = failed""" + error: String + + """Provider-supplied delivery/event id used for idempotent dedup""" + externalEventId: String! id: UUID - """Ref name (e.g. HEAD, main)""" - name: String! + """ + created_at of the enqueued invocation (partition key companion to invocation_id) + """ + invocationCreatedAt: Datetime - """Opaque store partition key for the global tier""" - scopeId: UUID! + """ + Pending function invocation enqueued for this delivery (NULL until enqueued) + """ + invocationId: UUID - """Store this ref belongs to""" - storeId: UUID! + """ + Parsed delivery payload (parsed only after signature verification over the exact raw bytes) + """ + payload: JSON + + """ + Provider that produced this delivery (copied from the endpoint at acceptance) + """ + provider: String! + + """ + Signed provider timestamp used for replay-window validation (NULL when the provider supplies none) + """ + providerTimestamp: Datetime + + """Acceptance lifecycle: accepted, processed, failed""" + status: String + updatedAt: Datetime } -"""Methods to use when ordering `PlatformInfraRef`.""" -enum PlatformInfraRefOrderBy { - COMMIT_ID_ASC - COMMIT_ID_DESC +"""Methods to use when ordering `PlatformWebhookEvent`.""" +enum PlatformWebhookEventOrderBy { + CREATED_AT_ASC + CREATED_AT_DESC + ENDPOINT_ID_ASC + ENDPOINT_ID_DESC + ERROR_ASC + ERROR_DESC + EXTERNAL_EVENT_ID_ASC + EXTERNAL_EVENT_ID_DESC ID_ASC ID_DESC - NAME_ASC - NAME_DESC + INVOCATION_CREATED_AT_ASC + INVOCATION_CREATED_AT_DESC + INVOCATION_ID_ASC + INVOCATION_ID_DESC NATURAL + PAYLOAD_ASC + PAYLOAD_DESC PRIMARY_KEY_ASC PRIMARY_KEY_DESC - SCOPE_ID_ASC - SCOPE_ID_DESC - STORE_ID_ASC - STORE_ID_DESC + PROVIDER_ASC + PROVIDER_DESC + PROVIDER_TIMESTAMP_ASC + PROVIDER_TIMESTAMP_DESC + STATUS_ASC + STATUS_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC } """ -Represents an update to a `PlatformInfraRef`. Fields that are set will be updated. +Represents an update to a `PlatformWebhookEvent`. Fields that are set will be updated. """ -input PlatformInfraRefPatch { - """Commit this ref points to""" - commitId: UUID - - """Unique ref identifier""" - id: UUID +input PlatformWebhookEventPatch { + createdAt: Datetime - """Ref name (e.g. HEAD, main)""" - name: String + """Endpoint that accepted this delivery""" + endpointId: UUID - """Opaque store partition key for the global tier""" - scopeId: UUID + """Failure detail when status = failed""" + error: String - """Store this ref belongs to""" - storeId: UUID -} + """Provider-supplied delivery/event id used for idempotent dedup""" + externalEventId: String + id: 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. + created_at of the enqueued invocation (partition key companion to invocation_id) """ - clientMutationId: String - data: JSON - kids: [UUID] - ktree: [String] - message: String - path: [String] - refname: String - sId: UUID - storeId: UUID -} + invocationCreatedAt: Datetime -"""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. + Pending function invocation enqueued for this delivery (NULL until enqueued) """ - 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 + invocationId: UUID """ - Our root query field type. Allows us to run any query from our mutation payload. + Parsed delivery payload (parsed only after signature verification over the exact raw bytes) """ - query: Query - result: PlatformInfraCommit -} + payload: JSON -"""All input for the `platformInfraSetDataAtPath` mutation.""" -input PlatformInfraSetDataAtPathInput { """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. + Provider that produced this delivery (copied from the endpoint at acceptance) """ - clientMutationId: String - data: JSON - path: [String] - root: UUID - sId: UUID -} + provider: String -"""The output of our `platformInfraSetDataAtPath` mutation.""" -type PlatformInfraSetDataAtPathPayload { """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. + Signed provider timestamp used for replay-window validation (NULL when the provider supplies none) """ - clientMutationId: String + providerTimestamp: Datetime - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - result: UUID + """Acceptance lifecycle: accepted, processed, failed""" + status: String + updatedAt: Datetime } -"""All input for the `platformInfraSetManyAndCommit` mutation.""" -input PlatformInfraSetManyAndCommitInput { +""" +Proposals against a repository: issues, changes to merge, discussions and decisions +""" +type Proposal { """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. + Actor who opened the proposal; NULL only when no human actor was proven """ - clientMutationId: String - entries: JSON - message: String - refname: String - sId: UUID - storeId: UUID -} + actorId: UUID + + """Description of the proposed change""" + body: String -"""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. + TRGM similarity when searching `body`. Returns null when no trgm search filter is active. """ - clientMutationId: String + bodyTrgmSimilarity: Float - """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 + """Reads and enables pagination through a set of `Build`.""" + builds( + """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 `Build`.""" + orderBy: [BuildOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: BuildFilter + ): BuildConnection! + + """Reads and enables pagination through a set of `Proposal`.""" + childProposals( + """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 `Proposal`.""" + orderBy: [ProposalOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: ProposalFilter + ): ProposalConnection! + + """Why this was closed: completed, not_planned, duplicate, superseded""" + closedReason: String """ - Our root query field type. Allows us to run any query from our mutation payload. + TRGM similarity when searching `closedReason`. Returns null when no trgm search filter is active. """ - query: Query - result: PlatformInfraCommit -} - -""" -Named stores — one per version-controlled tree (e.g. one graph, one definition set) -""" -type PlatformInfraStore { - """Timestamp of store creation""" + closedReasonTrgmSimilarity: Float createdAt: Datetime + createdBy: UUID + createdByPrincipal: UUID - """Current root object hash of this store""" - hash: UUID + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! - """Unique store identifier""" - id: UUID! + """When the decision was taken (NULL while the question is open)""" + decidedAt: Datetime - """Human-readable store name""" - name: String! + """When this is wanted by (NULL when nothing is promised)""" + dueAt: Datetime + embedding: Vector + embeddingUpdatedAt: Datetime - """Opaque store partition key for the global tier""" - scopeId: UUID! -} + """ + VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. + """ + embeddingVectorDistance: Float + id: UUID! -"""A connection to a list of `PlatformInfraStore` values.""" -type PlatformInfraStoreConnection { """ - A list of edges which contains the `PlatformInfraStore` and cursor to aid in pagination. + issue (a report or plan), change (merge one ref into another), discussion (an open question), decision (a question answered) """ - edges: [PlatformInfraStoreEdge]! + kind: String! - """A list of `PlatformInfraStore` objects.""" - nodes: [PlatformInfraStore]! + """ + TRGM similarity when searching `kind`. Returns null when no trgm search filter is active. + """ + kindTrgmSimilarity: Float - """Information to aid in pagination.""" - pageInfo: PageInfo! + """ + Labels for filtering and grouping (a board is a query over kind, status and these) + """ + labels: [String] + + """Commit the merge produced""" + mergeCommit: String """ - The count of *all* `PlatformInfraStore` you could get from the connection. + TRGM similarity when searching `mergeCommit`. Returns null when no trgm search filter is active. """ - totalCount: Int! -} + mergeCommitTrgmSimilarity: Float -"""A `PlatformInfraStore` edge in the connection.""" -type PlatformInfraStoreEdge { - """A cursor for use in pagination.""" - cursor: Cursor + """How to merge when eligible: merge, squash, rebase""" + mergeMethod: String - """The `PlatformInfraStore` at the end of the edge.""" - node: PlatformInfraStore -} + """ + TRGM similarity when searching `mergeMethod`. Returns null when no trgm search filter is active. + """ + mergeMethodTrgmSimilarity: Float -""" -A filter to be used against `PlatformInfraStore` object types. All fields are combined with a logical ‘and.’ -""" -input PlatformInfraStoreFilter { - """Checks for all expressions in this list.""" - and: [PlatformInfraStoreFilter!] + """When merge-when-green was requested (NULL when no merge is pending)""" + mergeRequestedAt: Datetime - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter + """When the merge completed""" + mergedAt: Datetime - """Filter by the object’s `hash` field.""" - hash: UUIDFilter + """Review detail (reviewers, labels, checks summary)""" + metadata: JSON - """Filter by the object’s `id` field.""" - id: UUIDFilter + """Reads a single `Proposal` that is related to this `Proposal`.""" + parent: Proposal - """Filter by the object’s `name` field.""" - name: StringFilter + """ + Proposal this one hangs under: an epic, or the discussion a decision came out of + """ + parentId: UUID - """Negates the expression.""" - not: PlatformInfraStoreFilter + """ + Manual order within a board column, sparse so an insert between two rows moves one row (NULL when unranked) + """ + priority: BigFloat - """Checks for any expressions in this list.""" - or: [PlatformInfraStoreFilter!] + """Reads and enables pagination through a set of `ProposalComment`.""" + proposalComments( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """Filter by the object’s `scopeId` field.""" - scopeId: UUIDFilter -} + """Read all values in the set before (above) this cursor.""" + before: Cursor -"""An input for mutations affecting `PlatformInfraStore`""" -input PlatformInfraStoreInput { - """Timestamp of store creation""" - createdAt: Datetime + """Only read the first `n` values of the set.""" + first: Int - """Current root object hash of this store""" - hash: UUID + """Only read the last `n` values of the set.""" + last: Int - """Unique store identifier""" - id: UUID + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int - """Human-readable store name""" - name: String! + """The method to use when ordering `ProposalComment`.""" + orderBy: [ProposalCommentOrderBy!] = [PRIMARY_KEY_ASC] - """Opaque store partition key for the global tier""" - scopeId: UUID! -} + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: ProposalCommentFilter + ): ProposalCommentConnection! -"""Methods to use when ordering `PlatformInfraStore`.""" -enum PlatformInfraStoreOrderBy { - CREATED_AT_ASC - CREATED_AT_DESC - HASH_ASC - HASH_DESC - ID_ASC - ID_DESC - NAME_ASC - NAME_DESC - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - SCOPE_ID_ASC - SCOPE_ID_DESC -} + """Reads and enables pagination through a set of `ProposalFileView`.""" + proposalFileViews( + """Read all values in the set after (below) this cursor.""" + after: Cursor -""" -Represents an update to a `PlatformInfraStore`. Fields that are set will be updated. -""" -input PlatformInfraStorePatch { - """Timestamp of store creation""" - createdAt: Datetime + """Read all values in the set before (above) this cursor.""" + before: Cursor - """Current root object hash of this store""" - hash: UUID + """Only read the first `n` values of the set.""" + first: Int - """Unique store identifier""" - id: UUID + """Only read the last `n` values of the set.""" + last: Int - """Human-readable store name""" - 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 - """Opaque store partition key for the global tier""" - scopeId: UUID -} + """The method to use when ordering `ProposalFileView`.""" + orderBy: [ProposalFileViewOrderBy!] = [PRIMARY_KEY_ASC] -""" -Logical namespace containers for grouping secrets, config, functions, and other resources -""" -type PlatformNamespace { - """Freeform metadata for tooling and operational notes""" - annotations: JSON! - createdAt: Datetime + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: ProposalFileViewFilter + ): ProposalFileViewConnection! - """Optional human-readable description of this namespace""" - description: String - id: UUID! + """Reads and enables pagination through a set of `ProposalReaction`.""" + proposalReactions( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """Whether this namespace is active (soft-disable for filtering)""" - isActive: Boolean! + """Read all values in the set before (above) this cursor.""" + before: Cursor - """ - true = provisioned by the platform via jobs, false = unmanaged/platform-native (bootstrapped externally) - """ - isManaged: Boolean! + """Only read the first `n` values of the set.""" + first: Int - """Key/value pairs for selecting and filtering namespaces""" - labels: JSON! + """Only read the last `n` values of the set.""" + last: Int - """Most recent provisioning or reconcile error message""" - lastError: String + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int - """Human-readable namespace name (e.g. default, production, oauth)""" - name: String! + """The method to use when ordering `ProposalReaction`.""" + orderBy: [ProposalReactionOrderBy!] = [PRIMARY_KEY_ASC] - """ - Globally unique computed namespace identifier via inflection.underscore - """ - namespaceName: String! + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: ProposalReactionFilter + ): ProposalReactionConnection! - """ - Reads and enables pagination through a set of `PlatformFunctionDeployment`. - """ - platformFunctionDeploymentsByNamespaceId( + """Reads and enables pagination through a set of `ProposalReview`.""" + proposalReviews( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -17422,19 +38119,17 @@ type PlatformNamespace { """ offset: Int - """The method to use when ordering `PlatformFunctionDeployment`.""" - orderBy: [PlatformFunctionDeploymentOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `ProposalReview`.""" + orderBy: [ProposalReviewOrderBy!] = [PRIMARY_KEY_ASC] """ A filter to be used in determining which values should be returned by the collection. """ - where: PlatformFunctionDeploymentFilter - ): PlatformFunctionDeploymentConnection! + where: ProposalReviewFilter + ): ProposalReviewConnection! - """ - Reads and enables pagination through a set of `PlatformResourceDefinition`. - """ - platformResourceDefinitionsByNamespaceId( + """Reads and enables pagination through a set of `ProposalsChunk`.""" + proposalsChunksByProposalsId( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -17453,19 +38148,130 @@ type PlatformNamespace { """ offset: Int - """The method to use when ordering `PlatformResourceDefinition`.""" - orderBy: [PlatformResourceDefinitionOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `ProposalsChunk`.""" + orderBy: [ProposalsChunkOrderBy!] = [PRIMARY_KEY_ASC] """ A filter to be used in determining which values should be returned by the collection. """ - where: PlatformResourceDefinitionFilter - ): PlatformResourceDefinitionConnection! + where: ProposalsChunkFilter + ): ProposalsChunkConnection! + + """Reads a single `Repository` that is related to this `Proposal`.""" + repository: Repository + + """Repository this proposal is against""" + repositoryId: UUID! """ - Reads and enables pagination through a set of `PlatformResourceInstallation`. + What was decided (for kind = decision; NULL while the question is open) """ - platformResourceInstallationsByNamespaceId( + resolution: String + + """ + TRGM similarity when searching `resolution`. Returns null when no trgm search filter is active. + """ + resolutionTrgmSimilarity: Float + search: FullText + + """ + Composite search relevance score (0..1, higher = more relevant). Computed using Reciprocal Rank Fusion (RRF) across all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. + """ + searchScore: Float + + """ + TSV rank when searching `search`. Returns null when no tsv search filter is active. + """ + searchTsvRank: Float + + """Ref holding the proposed commits (NULL unless kind is change)""" + sourceRef: String + + """ + TRGM similarity when searching `sourceRef`. Returns null when no trgm search filter is active. + """ + sourceRefTrgmSimilarity: Float + + """Lifecycle state: draft, open, merged, closed""" + status: String! + + """ + TRGM similarity when searching `status`. Returns null when no trgm search filter is active. + """ + statusTrgmSimilarity: Float + + """Ref the commits are proposed for (NULL unless kind is change)""" + targetRef: String + + """ + TRGM similarity when searching `targetRef`. Returns null when no trgm search filter is active. + """ + targetRefTrgmSimilarity: Float + + """What this proposal does""" + title: String! + + """ + TRGM similarity when searching `title`. Returns null when no trgm search filter is active. + """ + titleTrgmSimilarity: Float + updatedAt: Datetime + updatedBy: UUID + updatedByPrincipal: UUID +} + +"""Comments on a local proposal, optionally anchored to a line""" +type ProposalComment { + """Actor who wrote the comment; NULL only when no human actor was proven""" + actorId: UUID + + """Files referenced by the comment body, in the order they were attached""" + attachments: [ConstructiveInternalTypeUpload] + + """Comment text""" + body: String! + + """ + TRGM similarity when searching `body`. Returns null when no trgm search filter is active. + """ + bodyTrgmSimilarity: Float + createdAt: Datetime + createdBy: UUID + createdByPrincipal: UUID + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! + embedding: Vector + embeddingUpdatedAt: Datetime + + """ + VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. + """ + embeddingVectorDistance: Float + id: UUID! + + """Line within path the comment is anchored to""" + line: Int + + """When the anchored range this comment pointed at vanished from the diff""" + outdatedAt: Datetime + + """File the comment is anchored to (NULL for a comment on the proposal)""" + path: String + + """ + TRGM similarity when searching `path`. Returns null when no trgm search filter is active. + """ + pathTrgmSimilarity: Float + + """Reads a single `Proposal` that is related to this `ProposalComment`.""" + proposal: Proposal + + """Proposal being commented on""" + proposalId: UUID! + + """Reads and enables pagination through a set of `ProposalReaction`.""" + proposalReactionsByCommentId( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -17478,1658 +38284,2274 @@ type PlatformNamespace { """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 + """ + 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 `ProposalReaction`.""" + orderBy: [ProposalReactionOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: ProposalReactionFilter + ): ProposalReactionConnection! + + """When this comment was marked resolved""" + resolvedAt: Datetime + search: FullText + + """ + Composite search relevance score (0..1, higher = more relevant). Computed using Reciprocal Rank Fusion (RRF) across all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. + """ + searchScore: Float + + """ + TSV rank when searching `search`. Returns null when no tsv search filter is active. + """ + searchTsvRank: Float + updatedAt: Datetime + updatedBy: UUID + updatedByPrincipal: UUID +} + +"""A connection to a list of `ProposalComment` values.""" +type ProposalCommentConnection { + """ + A list of edges which contains the `ProposalComment` and cursor to aid in pagination. + """ + edges: [ProposalCommentEdge]! + + """A list of `ProposalComment` objects.""" + nodes: [ProposalComment]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `ProposalComment` you could get from the connection. + """ + totalCount: Int! +} + +"""A `ProposalComment` edge in the connection.""" +type ProposalCommentEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `ProposalComment` at the end of the edge.""" + node: ProposalComment +} + +""" +A filter to be used against `ProposalComment` object types. All fields are combined with a logical ‘and.’ +""" +input ProposalCommentFilter { + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter + + """Checks for all expressions in this list.""" + and: [ProposalCommentFilter!] + + """Filter by the object’s `attachments` field.""" + attachments: ConstructiveInternalTypeUploadListFilter + + """Filter by the object’s `body` field.""" + body: StringTrgmFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `createdBy` field.""" + createdBy: UUIDFilter + + """Filter by the object’s `createdByPrincipal` field.""" + createdByPrincipal: UUIDFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `embedding` field.""" + embedding: VectorFilter + + """Filter by the object’s `embeddingUpdatedAt` field.""" + embeddingUpdatedAt: DatetimeFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `line` field.""" + line: IntFilter + + """Negates the expression.""" + not: ProposalCommentFilter + + """Checks for any expressions in this list.""" + or: [ProposalCommentFilter!] + + """Filter by the object’s `outdatedAt` field.""" + outdatedAt: DatetimeFilter + + """Filter by the object’s `path` field.""" + path: StringTrgmFilter + + """Filter by the object’s `proposal` relation.""" + proposal: ProposalFilter + + """Filter by the object’s `proposalId` field.""" + proposalId: UUIDFilter + + """Filter by the object’s `proposalReactionsByCommentId` relation.""" + proposalReactionsByCommentId: ProposalCommentToManyProposalReactionFilter + + """`proposalReactionsByCommentId` exist.""" + proposalReactionsByCommentIdExist: Boolean + + """Filter by the object’s `resolvedAt` field.""" + resolvedAt: DatetimeFilter + + """Filter by the object’s `search` field.""" + search: FullTextFilter + + """TRGM search on the `body` column.""" + trgmBody: TrgmSearchInput + + """TRGM search on the `path` column.""" + trgmPath: TrgmSearchInput + + """TSV search on the `search` column.""" + tsvSearch: String + + """ + Composite unified search. Provide a search string and it will be dispatched to + all text-compatible search algorithms (tsvector, BM25, pg_trgm) + simultaneously. When the LLM plugin is active, pgvector also participates via + auto-embedding. Rows matching ANY algorithm are returned. All matching score + fields are populated. + """ + unifiedSearch: String + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + + """Filter by the object’s `updatedBy` field.""" + updatedBy: UUIDFilter + + """Filter by the object’s `updatedByPrincipal` field.""" + updatedByPrincipal: UUIDFilter + + """VECTOR search on the `embedding` column.""" + vectorEmbedding: VectorNearbyInput +} + +"""An input for mutations affecting `ProposalComment`""" +input ProposalCommentInput { + """Actor who wrote the comment; NULL only when no human actor was proven""" + actorId: UUID + + """Files referenced by the comment body, in the order they were attached""" + attachments: [ConstructiveInternalTypeUpload] + + """Comment text""" + body: String! + createdAt: Datetime + createdBy: UUID + createdByPrincipal: UUID + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! + embedding: Vector + + """ + Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. + """ + embeddingText: String + id: UUID + + """Line within path the comment is anchored to""" + line: Int - """The method to use when ordering `PlatformResourceInstallation`.""" - orderBy: [PlatformResourceInstallationOrderBy!] = [PRIMARY_KEY_ASC] + """When the anchored range this comment pointed at vanished from the diff""" + outdatedAt: Datetime - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: PlatformResourceInstallationFilter - ): PlatformResourceInstallationConnection! + """File the comment is anchored to (NULL for a comment on the proposal)""" + path: String - """Reads and enables pagination through a set of `PlatformResource`.""" - platformResourcesByNamespaceId( - """Read all values in the set after (below) this cursor.""" - after: Cursor + """Proposal being commented on""" + proposalId: UUID! - """Read all values in the set before (above) this cursor.""" - before: Cursor + """When this comment was marked resolved""" + resolvedAt: Datetime + updatedAt: Datetime + updatedBy: UUID + updatedByPrincipal: UUID +} - """Only read the first `n` values of the set.""" - first: Int +"""Methods to use when ordering `ProposalComment`.""" +enum ProposalCommentOrderBy { + ACTOR_ID_ASC + ACTOR_ID_DESC + ATTACHMENTS_ASC + ATTACHMENTS_DESC + BODY_ASC + BODY_DESC + BODY_TRGM_SIMILARITY_ASC + BODY_TRGM_SIMILARITY_DESC + CREATED_AT_ASC + CREATED_AT_DESC + CREATED_BY_ASC + CREATED_BY_DESC + CREATED_BY_PRINCIPAL_ASC + CREATED_BY_PRINCIPAL_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + EMBEDDING_ASC + EMBEDDING_DESC + EMBEDDING_UPDATED_AT_ASC + EMBEDDING_UPDATED_AT_DESC + EMBEDDING_VECTOR_DISTANCE_ASC + EMBEDDING_VECTOR_DISTANCE_DESC + ID_ASC + ID_DESC + LINE_ASC + LINE_DESC + NATURAL + OUTDATED_AT_ASC + OUTDATED_AT_DESC + PATH_ASC + PATH_DESC + PATH_TRGM_SIMILARITY_ASC + PATH_TRGM_SIMILARITY_DESC + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + PROPOSAL_ID_ASC + PROPOSAL_ID_DESC + RESOLVED_AT_ASC + RESOLVED_AT_DESC + SEARCH_ASC + SEARCH_DESC + SEARCH_SCORE_ASC + SEARCH_SCORE_DESC + SEARCH_TSV_RANK_ASC + SEARCH_TSV_RANK_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + UPDATED_BY_ASC + UPDATED_BY_DESC + UPDATED_BY_PRINCIPAL_ASC + UPDATED_BY_PRINCIPAL_DESC +} - """Only read the last `n` values of the set.""" - last: Int +""" +Represents an update to a `ProposalComment`. Fields that are set will be updated. +""" +input ProposalCommentPatch { + """Actor who wrote the comment; NULL only when no human actor was proven""" + actorId: UUID - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int + """Files referenced by the comment body, in the order they were attached""" + attachments: [ConstructiveInternalTypeUpload] - """The method to use when ordering `PlatformResource`.""" - orderBy: [PlatformResourceOrderBy!] = [PRIMARY_KEY_ASC] + """Comment text""" + body: String + createdAt: Datetime + createdBy: UUID + createdByPrincipal: UUID - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: PlatformResourceFilter - ): PlatformResourceConnection! + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID + embedding: Vector """ - Reads and enables pagination through a set of `PlatformWebhookEndpoint`. + Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. """ - platformWebhookEndpointsByNamespaceId( - """Read all values in the set after (below) this cursor.""" - after: Cursor + embeddingText: String + id: UUID - """Read all values in the set before (above) this cursor.""" - before: Cursor + """Line within path the comment is anchored to""" + line: Int - """Only read the first `n` values of the set.""" - first: Int + """When the anchored range this comment pointed at vanished from the diff""" + outdatedAt: Datetime - """Only read the last `n` values of the set.""" - last: Int + """File the comment is anchored to (NULL for a comment on the proposal)""" + 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 + """Proposal being commented on""" + proposalId: UUID - """The method to use when ordering `PlatformWebhookEndpoint`.""" - orderBy: [PlatformWebhookEndpointOrderBy!] = [PRIMARY_KEY_ASC] + """When this comment was marked resolved""" + resolvedAt: Datetime + updatedAt: Datetime + updatedBy: UUID + updatedByPrincipal: UUID +} - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: PlatformWebhookEndpointFilter - ): PlatformWebhookEndpointConnection! +""" +A filter to be used against many `ProposalReaction` object types. All fields are combined with a logical ‘and.’ +""" +input ProposalCommentToManyProposalReactionFilter { + """Filters to entities where every related entity matches.""" + every: ProposalReactionFilter - """ - Namespace provisioning lifecycle status: pending, provisioning, active, failed - """ - status: String! - updatedAt: Datetime + """Filters to entities where no related entity matches.""" + none: ProposalReactionFilter + + """Filters to entities where at least one related entity matches.""" + some: ProposalReactionFilter } -"""A connection to a list of `PlatformNamespace` values.""" -type PlatformNamespaceConnection { +"""A connection to a list of `Proposal` values.""" +type ProposalConnection { """ - A list of edges which contains the `PlatformNamespace` and cursor to aid in pagination. + A list of edges which contains the `Proposal` and cursor to aid in pagination. """ - edges: [PlatformNamespaceEdge]! + edges: [ProposalEdge]! - """A list of `PlatformNamespace` objects.""" - nodes: [PlatformNamespace]! + """A list of `Proposal` objects.""" + nodes: [Proposal]! """Information to aid in pagination.""" pageInfo: PageInfo! - """ - The count of *all* `PlatformNamespace` you could get from the connection. - """ + """The count of *all* `Proposal` you could get from the connection.""" totalCount: Int! } -"""A `PlatformNamespace` edge in the connection.""" -type PlatformNamespaceEdge { +"""A `Proposal` edge in the connection.""" +type ProposalEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `PlatformNamespace` at the end of the edge.""" - node: PlatformNamespace + """The `Proposal` at the end of the edge.""" + node: Proposal } -""" -Namespace lifecycle events — audit log of creation, activation, deactivation, label changes -""" -type PlatformNamespaceEvent { - """User who triggered this event (NULL for system/automated)""" - actorId: UUID - - """Event timestamp (partition key)""" - createdAt: Datetime! - +"""Files a reviewer has read, pinned to the blob they read""" +type ProposalFileView { """ - Event type: created, activated, deactivated, labels_updated, annotations_updated, renamed + Blob the reviewer read, which is what makes the mark survive a rebase or go stale """ - eventType: String! + blobSha: String! + createdAt: Datetime + createdByPrincipal: UUID - """Unique event identifier""" + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! id: UUID! - """Human-readable description of the event""" - message: String + """Path of the file as the diff named it""" + path: String! - """Structured context (old/new values, labels diff, etc.)""" - metadata: JSON + """Reads a single `Proposal` that is related to this `ProposalFileView`.""" + proposal: Proposal - """Namespace this event belongs to""" - namespaceId: UUID! + """Proposal the file belongs to""" + proposalId: UUID! + + """Actor who read the file""" + reviewerId: UUID! + updatedAt: Datetime + updatedByPrincipal: UUID + + """When the file was marked read""" + viewedAt: Datetime! } -"""A connection to a list of `PlatformNamespaceEvent` values.""" -type PlatformNamespaceEventConnection { +"""A connection to a list of `ProposalFileView` values.""" +type ProposalFileViewConnection { """ - A list of edges which contains the `PlatformNamespaceEvent` and cursor to aid in pagination. + A list of edges which contains the `ProposalFileView` and cursor to aid in pagination. """ - edges: [PlatformNamespaceEventEdge]! + edges: [ProposalFileViewEdge]! - """A list of `PlatformNamespaceEvent` objects.""" - nodes: [PlatformNamespaceEvent]! + """A list of `ProposalFileView` objects.""" + nodes: [ProposalFileView]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `PlatformNamespaceEvent` you could get from the connection. + The count of *all* `ProposalFileView` you could get from the connection. """ totalCount: Int! } -"""A `PlatformNamespaceEvent` edge in the connection.""" -type PlatformNamespaceEventEdge { +"""A `ProposalFileView` edge in the connection.""" +type ProposalFileViewEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `PlatformNamespaceEvent` at the end of the edge.""" - node: PlatformNamespaceEvent + """The `ProposalFileView` at the end of the edge.""" + node: ProposalFileView } """ -A filter to be used against `PlatformNamespaceEvent` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `ProposalFileView` object types. All fields are combined with a logical ‘and.’ """ -input PlatformNamespaceEventFilter { - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter - +input ProposalFileViewFilter { """Checks for all expressions in this list.""" - and: [PlatformNamespaceEventFilter!] + and: [ProposalFileViewFilter!] + + """Filter by the object’s `blobSha` field.""" + blobSha: StringFilter """Filter by the object’s `createdAt` field.""" createdAt: DatetimeFilter - """Filter by the object’s `eventType` field.""" - eventType: StringFilter + """Filter by the object’s `createdByPrincipal` field.""" + createdByPrincipal: UUIDFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `message` field.""" - message: StringFilter + """Negates the expression.""" + not: ProposalFileViewFilter - """Filter by the object’s `metadata` field.""" - metadata: JSONFilter + """Checks for any expressions in this list.""" + or: [ProposalFileViewFilter!] - """Filter by the object’s `namespaceId` field.""" - namespaceId: UUIDFilter + """Filter by the object’s `path` field.""" + path: StringFilter - """Negates the expression.""" - not: PlatformNamespaceEventFilter + """Filter by the object’s `proposal` relation.""" + proposal: ProposalFilter - """Checks for any expressions in this list.""" - or: [PlatformNamespaceEventFilter!] -} + """Filter by the object’s `proposalId` field.""" + proposalId: UUIDFilter -"""An input for mutations affecting `PlatformNamespaceEvent`""" -input PlatformNamespaceEventInput { - """User who triggered this event (NULL for system/automated)""" - actorId: UUID + """Filter by the object’s `reviewerId` field.""" + reviewerId: UUIDFilter - """Event timestamp (partition key)""" - createdAt: Datetime + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + """Filter by the object’s `updatedByPrincipal` field.""" + updatedByPrincipal: UUIDFilter + + """Filter by the object’s `viewedAt` field.""" + viewedAt: DatetimeFilter +} + +"""An input for mutations affecting `ProposalFileView`""" +input ProposalFileViewInput { """ - Event type: created, activated, deactivated, labels_updated, annotations_updated, renamed + Blob the reviewer read, which is what makes the mark survive a rebase or go stale """ - eventType: String! + blobSha: String! + createdAt: Datetime + createdByPrincipal: UUID - """Unique event identifier""" + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! id: UUID - """Human-readable description of the event""" - message: String + """Path of the file as the diff named it""" + path: String! - """Structured context (old/new values, labels diff, etc.)""" - metadata: JSON + """Proposal the file belongs to""" + proposalId: UUID! - """Namespace this event belongs to""" - namespaceId: UUID! + """Actor who read the file""" + reviewerId: UUID! + updatedAt: Datetime + updatedByPrincipal: UUID + + """When the file was marked read""" + viewedAt: Datetime } -"""Methods to use when ordering `PlatformNamespaceEvent`.""" -enum PlatformNamespaceEventOrderBy { - ACTOR_ID_ASC - ACTOR_ID_DESC +"""Methods to use when ordering `ProposalFileView`.""" +enum ProposalFileViewOrderBy { + BLOB_SHA_ASC + BLOB_SHA_DESC CREATED_AT_ASC CREATED_AT_DESC - EVENT_TYPE_ASC - EVENT_TYPE_DESC + CREATED_BY_PRINCIPAL_ASC + CREATED_BY_PRINCIPAL_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC ID_ASC ID_DESC - MESSAGE_ASC - MESSAGE_DESC - METADATA_ASC - METADATA_DESC - NAMESPACE_ID_ASC - NAMESPACE_ID_DESC NATURAL + PATH_ASC + PATH_DESC PRIMARY_KEY_ASC PRIMARY_KEY_DESC + PROPOSAL_ID_ASC + PROPOSAL_ID_DESC + REVIEWER_ID_ASC + REVIEWER_ID_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + UPDATED_BY_PRINCIPAL_ASC + UPDATED_BY_PRINCIPAL_DESC + VIEWED_AT_ASC + VIEWED_AT_DESC } """ -Represents an update to a `PlatformNamespaceEvent`. Fields that are set will be updated. +Represents an update to a `ProposalFileView`. Fields that are set will be updated. """ -input PlatformNamespaceEventPatch { - """User who triggered this event (NULL for system/automated)""" - actorId: UUID - - """Event timestamp (partition key)""" - createdAt: Datetime - +input ProposalFileViewPatch { """ - Event type: created, activated, deactivated, labels_updated, annotations_updated, renamed + Blob the reviewer read, which is what makes the mark survive a rebase or go stale """ - eventType: String + blobSha: String + createdAt: Datetime + createdByPrincipal: UUID - """Unique event identifier""" + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID id: UUID - """Human-readable description of the event""" - message: String + """Path of the file as the diff named it""" + path: String - """Structured context (old/new values, labels diff, etc.)""" - metadata: JSON + """Proposal the file belongs to""" + proposalId: UUID - """Namespace this event belongs to""" - namespaceId: UUID + """Actor who read the file""" + reviewerId: UUID + updatedAt: Datetime + updatedByPrincipal: UUID + + """When the file was marked read""" + viewedAt: Datetime } """ -A filter to be used against `PlatformNamespace` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `Proposal` object types. All fields are combined with a logical ‘and.’ """ -input PlatformNamespaceFilter { - """Checks for all expressions in this list.""" - and: [PlatformNamespaceFilter!] - - """Filter by the object’s `annotations` field.""" - annotations: JSONFilter +input ProposalFilter { + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter + """Checks for all expressions in this list.""" + and: [ProposalFilter!] - """Filter by the object’s `description` field.""" - description: StringFilter + """Filter by the object’s `body` field.""" + body: StringTrgmFilter - """Filter by the object’s `id` field.""" - id: UUIDFilter + """Filter by the object’s `builds` relation.""" + builds: ProposalToManyBuildFilter - """Filter by the object’s `isActive` field.""" - isActive: BooleanFilter + """`builds` exist.""" + buildsExist: Boolean - """Filter by the object’s `isManaged` field.""" - isManaged: BooleanFilter + """Filter by the object’s `childProposals` relation.""" + childProposals: ProposalToManyProposalFilter - """Filter by the object’s `labels` field.""" - labels: JSONFilter + """`childProposals` exist.""" + childProposalsExist: Boolean - """Filter by the object’s `lastError` field.""" - lastError: StringFilter + """Filter by the object’s `closedReason` field.""" + closedReason: StringTrgmFilter - """Filter by the object’s `name` field.""" - name: StringFilter + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter - """Filter by the object’s `namespaceName` field.""" - namespaceName: StringFilter + """Filter by the object’s `createdBy` field.""" + createdBy: UUIDFilter - """Negates the expression.""" - not: PlatformNamespaceFilter + """Filter by the object’s `createdByPrincipal` field.""" + createdByPrincipal: UUIDFilter - """Checks for any expressions in this list.""" - or: [PlatformNamespaceFilter!] + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter - """ - Filter by the object’s `platformFunctionDeploymentsByNamespaceId` relation. - """ - platformFunctionDeploymentsByNamespaceId: PlatformNamespaceToManyPlatformFunctionDeploymentFilter + """Filter by the object’s `decidedAt` field.""" + decidedAt: DatetimeFilter - """`platformFunctionDeploymentsByNamespaceId` exist.""" - platformFunctionDeploymentsByNamespaceIdExist: Boolean + """Filter by the object’s `dueAt` field.""" + dueAt: DatetimeFilter - """ - Filter by the object’s `platformResourceDefinitionsByNamespaceId` relation. - """ - platformResourceDefinitionsByNamespaceId: PlatformNamespaceToManyPlatformResourceDefinitionFilter + """Filter by the object’s `embedding` field.""" + embedding: VectorFilter - """`platformResourceDefinitionsByNamespaceId` exist.""" - platformResourceDefinitionsByNamespaceIdExist: Boolean + """Filter by the object’s `embeddingUpdatedAt` field.""" + embeddingUpdatedAt: DatetimeFilter - """ - Filter by the object’s `platformResourceInstallationsByNamespaceId` relation. - """ - platformResourceInstallationsByNamespaceId: PlatformNamespaceToManyPlatformResourceInstallationFilter + """Filter by the object’s `id` field.""" + id: UUIDFilter - """`platformResourceInstallationsByNamespaceId` exist.""" - platformResourceInstallationsByNamespaceIdExist: Boolean + """Filter by the object’s `kind` field.""" + kind: StringTrgmFilter - """Filter by the object’s `platformResourcesByNamespaceId` relation.""" - platformResourcesByNamespaceId: PlatformNamespaceToManyPlatformResourceFilter + """Filter by the object’s `labels` field.""" + labels: StringListFilter - """`platformResourcesByNamespaceId` exist.""" - platformResourcesByNamespaceIdExist: Boolean + """Filter by the object’s `mergeCommit` field.""" + mergeCommit: StringTrgmFilter - """ - Filter by the object’s `platformWebhookEndpointsByNamespaceId` relation. - """ - platformWebhookEndpointsByNamespaceId: PlatformNamespaceToManyPlatformWebhookEndpointFilter + """Filter by the object’s `mergeMethod` field.""" + mergeMethod: StringTrgmFilter - """`platformWebhookEndpointsByNamespaceId` exist.""" - platformWebhookEndpointsByNamespaceIdExist: Boolean + """Filter by the object’s `mergeRequestedAt` field.""" + mergeRequestedAt: DatetimeFilter - """Filter by the object’s `status` field.""" - status: StringFilter + """Filter by the object’s `mergedAt` field.""" + mergedAt: DatetimeFilter - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter -} + """Filter by the object’s `metadata` field.""" + metadata: JSONFilter -"""An input for mutations affecting `PlatformNamespace`""" -input PlatformNamespaceInput { - """Freeform metadata for tooling and operational notes""" - annotations: JSON - createdAt: Datetime + """Negates the expression.""" + not: ProposalFilter - """Optional human-readable description of this namespace""" - description: String - id: UUID + """Checks for any expressions in this list.""" + or: [ProposalFilter!] - """Whether this namespace is active (soft-disable for filtering)""" - isActive: Boolean + """Filter by the object’s `parent` relation.""" + parent: ProposalFilter - """ - true = provisioned by the platform via jobs, false = unmanaged/platform-native (bootstrapped externally) - """ - isManaged: Boolean + """A related `parent` exists.""" + parentExists: Boolean - """Key/value pairs for selecting and filtering namespaces""" - labels: JSON + """Filter by the object’s `parentId` field.""" + parentId: UUIDFilter - """Most recent provisioning or reconcile error message""" - lastError: String + """Filter by the object’s `priority` field.""" + priority: BigFloatFilter - """Human-readable namespace name (e.g. default, production, oauth)""" - name: String! + """Filter by the object’s `proposalComments` relation.""" + proposalComments: ProposalToManyProposalCommentFilter - """ - Globally unique computed namespace identifier via inflection.underscore - """ - namespaceName: String! + """`proposalComments` exist.""" + proposalCommentsExist: Boolean - """ - Namespace provisioning lifecycle status: pending, provisioning, active, failed - """ - status: String - updatedAt: Datetime -} + """Filter by the object’s `proposalFileViews` relation.""" + proposalFileViews: ProposalToManyProposalFileViewFilter -"""Methods to use when ordering `PlatformNamespace`.""" -enum PlatformNamespaceOrderBy { - ANNOTATIONS_ASC - ANNOTATIONS_DESC - CREATED_AT_ASC - CREATED_AT_DESC - DESCRIPTION_ASC - DESCRIPTION_DESC - ID_ASC - ID_DESC - IS_ACTIVE_ASC - IS_ACTIVE_DESC - IS_MANAGED_ASC - IS_MANAGED_DESC - LABELS_ASC - LABELS_DESC - LAST_ERROR_ASC - LAST_ERROR_DESC - NAMESPACE_NAME_ASC - NAMESPACE_NAME_DESC - NAME_ASC - NAME_DESC - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - STATUS_ASC - STATUS_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC -} + """`proposalFileViews` exist.""" + proposalFileViewsExist: Boolean -""" -Represents an update to a `PlatformNamespace`. Fields that are set will be updated. -""" -input PlatformNamespacePatch { - """Freeform metadata for tooling and operational notes""" - annotations: JSON - createdAt: Datetime + """Filter by the object’s `proposalReactions` relation.""" + proposalReactions: ProposalToManyProposalReactionFilter - """Optional human-readable description of this namespace""" - description: String - id: UUID + """`proposalReactions` exist.""" + proposalReactionsExist: Boolean - """Whether this namespace is active (soft-disable for filtering)""" - isActive: Boolean + """Filter by the object’s `proposalReviews` relation.""" + proposalReviews: ProposalToManyProposalReviewFilter - """ - true = provisioned by the platform via jobs, false = unmanaged/platform-native (bootstrapped externally) - """ - isManaged: Boolean + """`proposalReviews` exist.""" + proposalReviewsExist: Boolean - """Key/value pairs for selecting and filtering namespaces""" - labels: JSON + """Filter by the object’s `proposalsChunksByProposalsId` relation.""" + proposalsChunksByProposalsId: ProposalToManyProposalsChunkFilter - """Most recent provisioning or reconcile error message""" - lastError: String + """`proposalsChunksByProposalsId` exist.""" + proposalsChunksByProposalsIdExist: Boolean - """Human-readable namespace name (e.g. default, production, oauth)""" - name: String + """Filter by the object’s `repository` relation.""" + repository: RepositoryFilter - """ - Globally unique computed namespace identifier via inflection.underscore - """ - namespaceName: String + """Filter by the object’s `repositoryId` field.""" + repositoryId: UUIDFilter - """ - Namespace provisioning lifecycle status: pending, provisioning, active, failed - """ - status: String - updatedAt: Datetime -} + """Filter by the object’s `resolution` field.""" + resolution: StringTrgmFilter -""" -A filter to be used against many `PlatformFunctionDeployment` object types. All fields are combined with a logical ‘and.’ -""" -input PlatformNamespaceToManyPlatformFunctionDeploymentFilter { - """Filters to entities where every related entity matches.""" - every: PlatformFunctionDeploymentFilter + """Filter by the object’s `search` field.""" + search: FullTextFilter - """Filters to entities where no related entity matches.""" - none: PlatformFunctionDeploymentFilter + """Filter by the object’s `sourceRef` field.""" + sourceRef: StringTrgmFilter - """Filters to entities where at least one related entity matches.""" - some: PlatformFunctionDeploymentFilter -} + """Filter by the object’s `status` field.""" + status: StringTrgmFilter -""" -A filter to be used against many `PlatformResourceDefinition` object types. All fields are combined with a logical ‘and.’ -""" -input PlatformNamespaceToManyPlatformResourceDefinitionFilter { - """Filters to entities where every related entity matches.""" - every: PlatformResourceDefinitionFilter + """Filter by the object’s `targetRef` field.""" + targetRef: StringTrgmFilter - """Filters to entities where no related entity matches.""" - none: PlatformResourceDefinitionFilter + """Filter by the object’s `title` field.""" + title: StringTrgmFilter - """Filters to entities where at least one related entity matches.""" - some: PlatformResourceDefinitionFilter -} + """TRGM search on the `body` column.""" + trgmBody: TrgmSearchInput -""" -A filter to be used against many `PlatformResource` object types. All fields are combined with a logical ‘and.’ -""" -input PlatformNamespaceToManyPlatformResourceFilter { - """Filters to entities where every related entity matches.""" - every: PlatformResourceFilter + """TRGM search on the `closed_reason` column.""" + trgmClosedReason: TrgmSearchInput - """Filters to entities where no related entity matches.""" - none: PlatformResourceFilter + """TRGM search on the `kind` column.""" + trgmKind: TrgmSearchInput - """Filters to entities where at least one related entity matches.""" - some: PlatformResourceFilter -} + """TRGM search on the `merge_commit` column.""" + trgmMergeCommit: TrgmSearchInput -""" -A filter to be used against many `PlatformResourceInstallation` object types. All fields are combined with a logical ‘and.’ -""" -input PlatformNamespaceToManyPlatformResourceInstallationFilter { - """Filters to entities where every related entity matches.""" - every: PlatformResourceInstallationFilter + """TRGM search on the `merge_method` column.""" + trgmMergeMethod: TrgmSearchInput - """Filters to entities where no related entity matches.""" - none: PlatformResourceInstallationFilter + """TRGM search on the `resolution` column.""" + trgmResolution: TrgmSearchInput - """Filters to entities where at least one related entity matches.""" - some: PlatformResourceInstallationFilter -} + """TRGM search on the `source_ref` column.""" + trgmSourceRef: TrgmSearchInput -""" -A filter to be used against many `PlatformWebhookEndpoint` object types. All fields are combined with a logical ‘and.’ -""" -input PlatformNamespaceToManyPlatformWebhookEndpointFilter { - """Filters to entities where every related entity matches.""" - every: PlatformWebhookEndpointFilter + """TRGM search on the `status` column.""" + trgmStatus: TrgmSearchInput - """Filters to entities where no related entity matches.""" - none: PlatformWebhookEndpointFilter + """TRGM search on the `target_ref` column.""" + trgmTargetRef: TrgmSearchInput - """Filters to entities where at least one related entity matches.""" - some: PlatformWebhookEndpointFilter -} + """TRGM search on the `title` column.""" + trgmTitle: TrgmSearchInput -""" -Unified K8s resource declarations — stores desired state (spec) and observed state (status) for all resource kinds within a namespace -""" -type PlatformResource { - """Freeform metadata for tooling and operational notes""" - annotations: JSON! + """TSV search on the `search` column.""" + tsvSearch: String """ - CPU limit in millicores, derived from spec.resources.limits.cpu (NULL if unset/invalid) + Composite unified search. Provide a search string and it will be dispatched to + all text-compatible search algorithms (tsvector, BM25, pg_trgm) + simultaneously. When the LLM plugin is active, pgvector also participates via + auto-embedding. Rows matching ANY algorithm are returned. All matching score + fields are populated. """ - cpuLimitMillicores: BigInt + unifiedSearch: String - """ - Requested CPU in millicores, derived from spec.resources.requests.cpu (NULL if unset/invalid) - """ - cpuRequestMillicores: BigInt - createdAt: Datetime - createdBy: UUID + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter - """Cumulative error count for this resource""" - errorCount: Int! - id: UUID! + """Filter by the object’s `updatedBy` field.""" + updatedBy: UUIDFilter - """ - Reads a single `PlatformResourceInstallation` that is related to this `PlatformResource`. - """ - installation: PlatformResourceInstallation + """Filter by the object’s `updatedByPrincipal` field.""" + updatedByPrincipal: UUIDFilter - """ - Installation ("release") this resource belongs to (NULL for standalone resources) - """ - installationId: UUID + """VECTOR search on the `embedding` column.""" + vectorEmbedding: VectorNearbyInput +} +"""An input for mutations affecting `Proposal`""" +input ProposalInput { """ - Provider slugs (e.g. mailgun, postgres) associated with this resource. The UI uses this to auto-fill required_secrets and required_configs from integration_providers. + Actor who opened the proposal; NULL only when no human actor was proven """ - integrations: [String]! + actorId: UUID - """ - Resource kind: Deployment, StatefulSet, Job, Service, Ingress, Certificate, ClusterIssuer - """ - kind: String! + """Description of the proposed change""" + body: String + + """Why this was closed: completed, not_planned, duplicate, superseded""" + closedReason: String + createdAt: Datetime + createdBy: UUID + createdByPrincipal: UUID - """Key/value pairs for selecting and filtering resources""" - labels: JSON! + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! - """Most recent provisioning or runtime error message""" - lastError: String + """When the decision was taken (NULL while the question is open)""" + decidedAt: Datetime + + """When this is wanted by (NULL when nothing is promised)""" + dueAt: Datetime + embedding: Vector """ - Last time a usage heartbeat was received for this resource (NULL until first heartbeat) + Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. """ - lastHeartbeatAt: Datetime + embeddingText: String + id: UUID """ - Memory limit in bytes, derived from spec.resources.limits.memory (NULL if unset/invalid) + issue (a report or plan), change (merge one ref into another), discussion (an open question), decision (a question answered) """ - memoryLimitBytes: BigInt + kind: String """ - Requested memory in bytes, derived from spec.resources.requests.memory (NULL if unset/invalid) + Labels for filtering and grouping (a board is a query over kind, status and these) """ - memoryRequestBytes: BigInt + labels: [String] - """Human-readable resource name""" - name: String! + """Commit the merge produced""" + mergeCommit: String + + """How to merge when eligible: merge, squash, rebase""" + mergeMethod: String + + """When merge-when-green was requested (NULL when no merge is pending)""" + mergeRequestedAt: Datetime + + """When the merge completed""" + mergedAt: Datetime + + """Review detail (reviewers, labels, checks summary)""" + metadata: JSON """ - Reads a single `PlatformNamespace` that is related to this `PlatformResource`. + Proposal this one hangs under: an epic, or the discussion a decision came out of """ - namespace: PlatformNamespace + parentId: UUID """ - Namespace this resource belongs to (security boundary, maps to K8s namespace) + Manual order within a board column, sparse so an insert between two rows moves one row (NULL when unranked) """ - namespaceId: UUID! + priority: BigFloat + + """Repository this proposal is against""" + repositoryId: UUID! """ - Reads and enables pagination through a set of `PlatformResourceStatusCheck`. + What was decided (for kind = decision; NULL while the question is open) """ - platformResourceStatusChecksByResourceId( - """Read all values in the set after (below) this cursor.""" - after: Cursor - - """Read all values in the set before (above) this cursor.""" - before: Cursor + resolution: String - """Only read the first `n` values of the set.""" - first: Int + """Ref holding the proposed commits (NULL unless kind is change)""" + sourceRef: String - """Only read the last `n` values of the set.""" - last: Int + """Lifecycle state: draft, open, merged, closed""" + status: String - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int + """Ref the commits are proposed for (NULL unless kind is change)""" + targetRef: String - """The method to use when ordering `PlatformResourceStatusCheck`.""" - orderBy: [PlatformResourceStatusCheckOrderBy!] = [PRIMARY_KEY_ASC] + """What this proposal does""" + title: String! + updatedAt: Datetime + updatedBy: UUID + updatedByPrincipal: UUID +} - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: PlatformResourceStatusCheckFilter - ): PlatformResourceStatusCheckConnection! +"""Methods to use when ordering `Proposal`.""" +enum ProposalOrderBy { + ACTOR_ID_ASC + ACTOR_ID_DESC + BODY_ASC + BODY_DESC + BODY_TRGM_SIMILARITY_ASC + BODY_TRGM_SIMILARITY_DESC + CLOSED_REASON_ASC + CLOSED_REASON_DESC + CLOSED_REASON_TRGM_SIMILARITY_ASC + CLOSED_REASON_TRGM_SIMILARITY_DESC + CREATED_AT_ASC + CREATED_AT_DESC + CREATED_BY_ASC + CREATED_BY_DESC + CREATED_BY_PRINCIPAL_ASC + CREATED_BY_PRINCIPAL_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + DECIDED_AT_ASC + DECIDED_AT_DESC + DUE_AT_ASC + DUE_AT_DESC + EMBEDDING_ASC + EMBEDDING_DESC + EMBEDDING_UPDATED_AT_ASC + EMBEDDING_UPDATED_AT_DESC + EMBEDDING_VECTOR_DISTANCE_ASC + EMBEDDING_VECTOR_DISTANCE_DESC + ID_ASC + ID_DESC + KIND_ASC + KIND_DESC + KIND_TRGM_SIMILARITY_ASC + KIND_TRGM_SIMILARITY_DESC + LABELS_ASC + LABELS_DESC + MERGED_AT_ASC + MERGED_AT_DESC + MERGE_COMMIT_ASC + MERGE_COMMIT_DESC + MERGE_COMMIT_TRGM_SIMILARITY_ASC + MERGE_COMMIT_TRGM_SIMILARITY_DESC + MERGE_METHOD_ASC + MERGE_METHOD_DESC + MERGE_METHOD_TRGM_SIMILARITY_ASC + MERGE_METHOD_TRGM_SIMILARITY_DESC + MERGE_REQUESTED_AT_ASC + MERGE_REQUESTED_AT_DESC + METADATA_ASC + METADATA_DESC + NATURAL + PARENT_ID_ASC + PARENT_ID_DESC + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + PRIORITY_ASC + PRIORITY_DESC + REPOSITORY_ID_ASC + REPOSITORY_ID_DESC + RESOLUTION_ASC + RESOLUTION_DESC + RESOLUTION_TRGM_SIMILARITY_ASC + RESOLUTION_TRGM_SIMILARITY_DESC + SEARCH_ASC + SEARCH_DESC + SEARCH_SCORE_ASC + SEARCH_SCORE_DESC + SEARCH_TSV_RANK_ASC + SEARCH_TSV_RANK_DESC + SOURCE_REF_ASC + SOURCE_REF_DESC + SOURCE_REF_TRGM_SIMILARITY_ASC + SOURCE_REF_TRGM_SIMILARITY_DESC + STATUS_ASC + STATUS_DESC + STATUS_TRGM_SIMILARITY_ASC + STATUS_TRGM_SIMILARITY_DESC + TARGET_REF_ASC + TARGET_REF_DESC + TARGET_REF_TRGM_SIMILARITY_ASC + TARGET_REF_TRGM_SIMILARITY_DESC + TITLE_ASC + TITLE_DESC + TITLE_TRGM_SIMILARITY_ASC + TITLE_TRGM_SIMILARITY_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + UPDATED_BY_ASC + UPDATED_BY_DESC + UPDATED_BY_PRINCIPAL_ASC + UPDATED_BY_PRINCIPAL_DESC +} +""" +Represents an update to a `Proposal`. Fields that are set will be updated. +""" +input ProposalPatch { """ - Config/secret realm this resource resolves against. Per key, the realm-specific atom wins over the NULL-realm default. NULL = the default lane. + Actor who opened the proposal; NULL only when no human actor was proven """ - realm: String + actorId: UUID - """ - Desired pod count, derived from spec.replicas — the multiplier for total requested capacity (NULL if unset/invalid) - """ - replicas: Int + """Description of the proposed change""" + body: String - """ - Embedded config requirements: array of (name, required, provider) tuples — extends the linked definition's requirements. provider is the integration slug this requirement belongs to, if any. - """ - requiredConfigs: [ResourceRequirement]! + """Why this was closed: completed, not_planned, duplicate, superseded""" + closedReason: String + createdAt: Datetime + createdBy: UUID + createdByPrincipal: UUID + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID + + """When the decision was taken (NULL while the question is open)""" + decidedAt: Datetime + + """When this is wanted by (NULL when nothing is promised)""" + dueAt: Datetime + embedding: Vector """ - Embedded secret requirements: array of (name, required, provider) tuples — extends the linked definition's requirements. provider is the integration slug this requirement belongs to, if any. + Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. """ - requiredSecrets: [ResourceRequirement]! + embeddingText: String + id: UUID """ - Reads a single `PlatformResourceDefinition` that is related to this `PlatformResource`. + issue (a report or plan), change (merge one ref into another), discussion (an open question), decision (a question answered) """ - resourceDefinition: PlatformResourceDefinition + kind: String """ - Definition template this resource was created from (NULL for standalone resources) + Labels for filtering and grouping (a board is a query over kind, status and these) """ - resourceDefinitionId: UUID + labels: [String] - """URL-safe identifier, unique within (namespace_id, kind)""" - slug: String! + """Commit the merge produced""" + mergeCommit: String - """ - Desired state — kind-specific configuration (image, ports, resources, etc.). Opaque to DB; validated by K8s. - """ - spec: JSON! + """How to merge when eligible: merge, squash, rebase""" + mergeMethod: String - """ - Resource lifecycle status: pending, provisioning, active, completed, failed, draining, deleting - """ - status: String! + """When merge-when-green was requested (NULL when no merge is pending)""" + mergeRequestedAt: Datetime + + """When the merge completed""" + mergedAt: Datetime + + """Review detail (reviewers, labels, checks summary)""" + metadata: JSON """ - Observed state from K8s — populated by handlers after reconciliation (service_url, clone_url, replicas, etc.) + Proposal this one hangs under: an epic, or the discussion a decision came out of """ - statusObserved: JSON + parentId: UUID """ - Storage class/tier, derived from spec.storage_class (StatefulSet; NULL if unset) + Manual order within a board column, sparse so an insert between two rows moves one row (NULL when unranked) """ - storageClass: String + priority: BigFloat + + """Repository this proposal is against""" + repositoryId: UUID """ - Persistent volume size in bytes, derived from spec.storage_size (StatefulSet; NULL if unset/invalid) + What was decided (for kind = decision; NULL while the question is open) """ - storageSizeBytes: BigInt + resolution: String + + """Ref holding the proposed commits (NULL unless kind is change)""" + sourceRef: String + + """Lifecycle state: draft, open, merged, closed""" + status: String + + """Ref the commits are proposed for (NULL unless kind is change)""" + targetRef: String + + """What this proposal does""" + title: String updatedAt: Datetime updatedBy: UUID + updatedByPrincipal: UUID } -"""A connection to a list of `PlatformResource` values.""" -type PlatformResourceConnection { +"""Emoji reactions to a local proposal or one of its comments""" +type ProposalReaction { + """Actor who reacted""" + actorId: UUID! + """ - A list of edges which contains the `PlatformResource` and cursor to aid in pagination. + Reads a single `ProposalComment` that is related to this `ProposalReaction`. """ - edges: [PlatformResourceEdge]! + comment: ProposalComment - """A list of `PlatformResource` objects.""" - nodes: [PlatformResource]! + """Comment being reacted to (NULL for a reaction to the proposal itself)""" + commentId: UUID + createdAt: Datetime + createdByPrincipal: UUID - """Information to aid in pagination.""" - pageInfo: PageInfo! + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! - """ - The count of *all* `PlatformResource` you could get from the connection. - """ - totalCount: Int! -} + """Reaction shortcode (+1, eyes, rocket)""" + emoji: String! + id: UUID! -type PlatformResourceDeclaredCapacity { - cpuLimitMillicores: BigInt - cpuRequestMillicores: BigInt - installationId: UUID - isTransient: Boolean - kind: String - memoryLimitBytes: BigInt - memoryRequestBytes: BigInt - namespaceId: UUID - podCountMax: Int - podCountMin: Int - source: String - sourceId: UUID - storageSizeBytes: BigInt + """Reads a single `Proposal` that is related to this `ProposalReaction`.""" + proposal: Proposal + + """Proposal the reaction belongs to""" + proposalId: UUID! + updatedAt: Datetime + updatedByPrincipal: UUID } -"""A connection to a list of `PlatformResourceDeclaredCapacity` values.""" -type PlatformResourceDeclaredCapacityConnection { +"""A connection to a list of `ProposalReaction` values.""" +type ProposalReactionConnection { """ - A list of edges which contains the `PlatformResourceDeclaredCapacity` and cursor to aid in pagination. + A list of edges which contains the `ProposalReaction` and cursor to aid in pagination. """ - edges: [PlatformResourceDeclaredCapacityEdge]! + edges: [ProposalReactionEdge]! - """A list of `PlatformResourceDeclaredCapacity` objects.""" - nodes: [PlatformResourceDeclaredCapacity]! + """A list of `ProposalReaction` objects.""" + nodes: [ProposalReaction]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `PlatformResourceDeclaredCapacity` you could get from the connection. + The count of *all* `ProposalReaction` you could get from the connection. """ totalCount: Int! } -"""A `PlatformResourceDeclaredCapacity` edge in the connection.""" -type PlatformResourceDeclaredCapacityEdge { +"""A `ProposalReaction` edge in the connection.""" +type ProposalReactionEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `PlatformResourceDeclaredCapacity` at the end of the edge.""" - node: PlatformResourceDeclaredCapacity + """The `ProposalReaction` at the end of the edge.""" + node: ProposalReaction } """ -A filter to be used against `PlatformResourceDeclaredCapacity` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `ProposalReaction` object types. All fields are combined with a logical ‘and.’ """ -input PlatformResourceDeclaredCapacityFilter { +input ProposalReactionFilter { + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter + """Checks for all expressions in this list.""" - and: [PlatformResourceDeclaredCapacityFilter!] + and: [ProposalReactionFilter!] - """Filter by the object’s `cpuLimitMillicores` field.""" - cpuLimitMillicores: BigIntFilter + """Filter by the object’s `comment` relation.""" + comment: ProposalCommentFilter - """Filter by the object’s `cpuRequestMillicores` field.""" - cpuRequestMillicores: BigIntFilter + """A related `comment` exists.""" + commentExists: Boolean - """Filter by the object’s `installationId` field.""" - installationId: UUIDFilter + """Filter by the object’s `commentId` field.""" + commentId: UUIDFilter - """Filter by the object’s `isTransient` field.""" - isTransient: BooleanFilter + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter - """Filter by the object’s `kind` field.""" - kind: StringFilter + """Filter by the object’s `createdByPrincipal` field.""" + createdByPrincipal: UUIDFilter - """Filter by the object’s `memoryLimitBytes` field.""" - memoryLimitBytes: BigIntFilter + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter - """Filter by the object’s `memoryRequestBytes` field.""" - memoryRequestBytes: BigIntFilter + """Filter by the object’s `emoji` field.""" + emoji: StringFilter - """Filter by the object’s `namespaceId` field.""" - namespaceId: UUIDFilter + """Filter by the object’s `id` field.""" + id: UUIDFilter """Negates the expression.""" - not: PlatformResourceDeclaredCapacityFilter + not: ProposalReactionFilter """Checks for any expressions in this list.""" - or: [PlatformResourceDeclaredCapacityFilter!] + or: [ProposalReactionFilter!] - """Filter by the object’s `podCountMax` field.""" - podCountMax: IntFilter + """Filter by the object’s `proposal` relation.""" + proposal: ProposalFilter - """Filter by the object’s `podCountMin` field.""" - podCountMin: IntFilter + """Filter by the object’s `proposalId` field.""" + proposalId: UUIDFilter - """Filter by the object’s `source` field.""" - source: StringFilter + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter - """Filter by the object’s `sourceId` field.""" - sourceId: UUIDFilter + """Filter by the object’s `updatedByPrincipal` field.""" + updatedByPrincipal: UUIDFilter +} - """Filter by the object’s `storageSizeBytes` field.""" - storageSizeBytes: BigIntFilter +"""An input for mutations affecting `ProposalReaction`""" +input ProposalReactionInput { + """Actor who reacted""" + actorId: UUID! + + """Comment being reacted to (NULL for a reaction to the proposal itself)""" + commentId: UUID + createdAt: Datetime + createdByPrincipal: UUID + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! + + """Reaction shortcode (+1, eyes, rocket)""" + emoji: String! + id: UUID + + """Proposal the reaction belongs to""" + proposalId: UUID! + updatedAt: Datetime + updatedByPrincipal: UUID } -"""Methods to use when ordering `PlatformResourceDeclaredCapacity`.""" -enum PlatformResourceDeclaredCapacityOrderBy { - CPU_LIMIT_MILLICORES_ASC - CPU_LIMIT_MILLICORES_DESC - CPU_REQUEST_MILLICORES_ASC - CPU_REQUEST_MILLICORES_DESC - INSTALLATION_ID_ASC - INSTALLATION_ID_DESC - IS_TRANSIENT_ASC - IS_TRANSIENT_DESC - KIND_ASC - KIND_DESC - MEMORY_LIMIT_BYTES_ASC - MEMORY_LIMIT_BYTES_DESC - MEMORY_REQUEST_BYTES_ASC - MEMORY_REQUEST_BYTES_DESC - NAMESPACE_ID_ASC - NAMESPACE_ID_DESC +"""Methods to use when ordering `ProposalReaction`.""" +enum ProposalReactionOrderBy { + ACTOR_ID_ASC + ACTOR_ID_DESC + COMMENT_ID_ASC + COMMENT_ID_DESC + CREATED_AT_ASC + CREATED_AT_DESC + CREATED_BY_PRINCIPAL_ASC + CREATED_BY_PRINCIPAL_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + EMOJI_ASC + EMOJI_DESC + ID_ASC + ID_DESC NATURAL - POD_COUNT_MAX_ASC - POD_COUNT_MAX_DESC - POD_COUNT_MIN_ASC - POD_COUNT_MIN_DESC - SOURCE_ASC - SOURCE_DESC - SOURCE_ID_ASC - SOURCE_ID_DESC - STORAGE_SIZE_BYTES_ASC - STORAGE_SIZE_BYTES_DESC + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + PROPOSAL_ID_ASC + PROPOSAL_ID_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + UPDATED_BY_PRINCIPAL_ASC + UPDATED_BY_PRINCIPAL_DESC } """ -Resource definitions — templates for resource kinds declaring default spec and secret/config requirements +Represents an update to a `ProposalReaction`. Fields that are set will be updated. """ -type PlatformResourceDefinition { - """Freeform metadata for tooling and operational notes""" - annotations: JSON! - createdAt: Datetime - createdBy: UUID - - """Template spec for creating resource instances of this kind""" - defaultSpec: JSON! +input ProposalReactionPatch { + """Actor who reacted""" + actorId: UUID - """What this resource definition provides""" - description: String - id: UUID! + """Comment being reacted to (NULL for a reaction to the proposal itself)""" + commentId: UUID + createdAt: Datetime + createdByPrincipal: UUID - """ - Provider slugs (e.g. mailgun, postgres) associated with this resource definition. The UI uses this to auto-fill required_secrets and required_configs from integration_providers. - """ - integrations: [String]! + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID - """ - Resource kind: Deployment, StatefulSet, Job, Service, Ingress, Certificate, ClusterIssuer, or custom kinds - """ - kind: String! + """Reaction shortcode (+1, eyes, rocket)""" + emoji: String + id: UUID - """Key/value pairs for selecting and filtering definitions""" - labels: JSON! + """Proposal the reaction belongs to""" + proposalId: UUID + updatedAt: Datetime + updatedByPrincipal: UUID +} - """Human-readable definition name""" - name: String! +"""Review verdicts on a proposal, each pinned to the commit reviewed""" +type ProposalReview { + """Summary the reviewer submitted with the verdict""" + body: String """ - Reads a single `PlatformNamespace` that is related to this `PlatformResourceDefinition`. + TRGM similarity when searching `body`. Returns null when no trgm search filter is active. """ - namespace: PlatformNamespace + bodyTrgmSimilarity: Float - """ - Namespace this definition belongs to (security boundary, maps to K8s namespace) - """ - namespaceId: UUID! + """Head commit this verdict was submitted against""" + commitSha: String! """ - Declared parameter interface: [{key,label,type,default,required,min,max,options,group,order,bindings:[{path,template,scale,round,unit}]}]. Installation params are validated and compiled through these declarations; [] keeps the legacy raw spec overlay. + TRGM similarity when searching `commitSha`. Returns null when no trgm search filter is active. """ - paramsSchema: JSON! - - """Reads and enables pagination through a set of `PlatformResource`.""" - platformResourcesByResourceDefinitionId( - """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 + commitShaTrgmSimilarity: Float + createdAt: Datetime + createdByPrincipal: UUID - """Only read the last `n` values of the set.""" - last: Int + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! + id: UUID! - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int + """Reads a single `Proposal` that is related to this `ProposalReview`.""" + proposal: Proposal - """The method to use when ordering `PlatformResource`.""" - orderBy: [PlatformResourceOrderBy!] = [PRIMARY_KEY_ASC] + """Proposal being reviewed""" + proposalId: UUID! - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: PlatformResourceFilter - ): PlatformResourceConnection! + """Actor who submitted the verdict""" + reviewerId: UUID! + search: FullText """ - Embedded config requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. + Composite search relevance score (0..1, higher = more relevant). Computed using Reciprocal Rank Fusion (RRF) across all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. """ - requiredConfigs: [ResourceRequirement]! + searchScore: Float """ - Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. + TSV rank when searching `search`. Returns null when no tsv search filter is active. """ - requiredSecrets: [ResourceRequirement]! + searchTsvRank: Float - """URL-safe identifier, unique within (namespace_id, kind)""" - slug: String! + """When the verdict was submitted""" + submittedAt: Datetime! + updatedAt: Datetime + updatedByPrincipal: UUID + + """approve, reject or comment (a review that gates nothing)""" + verdict: String! """ - Min age before DELETE of a resource of this kind requires step-up; NULL inherits the 6h default + TRGM similarity when searching `verdict`. Returns null when no trgm search filter is active. """ - stepUpMinAge: Interval - updatedAt: Datetime - updatedBy: UUID + verdictTrgmSimilarity: Float } -"""A connection to a list of `PlatformResourceDefinition` values.""" -type PlatformResourceDefinitionConnection { +"""A connection to a list of `ProposalReview` values.""" +type ProposalReviewConnection { """ - A list of edges which contains the `PlatformResourceDefinition` and cursor to aid in pagination. + A list of edges which contains the `ProposalReview` and cursor to aid in pagination. """ - edges: [PlatformResourceDefinitionEdge]! + edges: [ProposalReviewEdge]! - """A list of `PlatformResourceDefinition` objects.""" - nodes: [PlatformResourceDefinition]! + """A list of `ProposalReview` objects.""" + nodes: [ProposalReview]! """Information to aid in pagination.""" pageInfo: PageInfo! - """ - The count of *all* `PlatformResourceDefinition` you could get from the connection. - """ + """The count of *all* `ProposalReview` you could get from the connection.""" totalCount: Int! } -"""A `PlatformResourceDefinition` edge in the connection.""" -type PlatformResourceDefinitionEdge { +"""A `ProposalReview` edge in the connection.""" +type ProposalReviewEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `PlatformResourceDefinition` at the end of the edge.""" - node: PlatformResourceDefinition + """The `ProposalReview` at the end of the edge.""" + node: ProposalReview } """ -A filter to be used against `PlatformResourceDefinition` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `ProposalReview` object types. All fields are combined with a logical ‘and.’ """ -input PlatformResourceDefinitionFilter { +input ProposalReviewFilter { """Checks for all expressions in this list.""" - and: [PlatformResourceDefinitionFilter!] + and: [ProposalReviewFilter!] - """Filter by the object’s `annotations` field.""" - annotations: JSONFilter + """Filter by the object’s `body` field.""" + body: StringTrgmFilter + + """Filter by the object’s `commitSha` field.""" + commitSha: StringTrgmFilter """Filter by the object’s `createdAt` field.""" createdAt: DatetimeFilter - """Filter by the object’s `createdBy` field.""" - createdBy: UUIDFilter - - """Filter by the object’s `defaultSpec` field.""" - defaultSpec: JSONFilter + """Filter by the object’s `createdByPrincipal` field.""" + createdByPrincipal: UUIDFilter - """Filter by the object’s `description` field.""" - description: StringFilter + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `integrations` field.""" - integrations: StringListFilter - - """Filter by the object’s `kind` field.""" - kind: StringFilter - - """Filter by the object’s `labels` field.""" - labels: JSONFilter - - """Filter by the object’s `name` field.""" - name: StringFilter - - """Filter by the object’s `namespace` relation.""" - namespace: PlatformNamespaceFilter - - """Filter by the object’s `namespaceId` field.""" - namespaceId: UUIDFilter - """Negates the expression.""" - not: PlatformResourceDefinitionFilter + not: ProposalReviewFilter """Checks for any expressions in this list.""" - or: [PlatformResourceDefinitionFilter!] + or: [ProposalReviewFilter!] - """Filter by the object’s `paramsSchema` field.""" - paramsSchema: JSONFilter - - """ - Filter by the object’s `platformResourcesByResourceDefinitionId` relation. - """ - platformResourcesByResourceDefinitionId: PlatformResourceDefinitionToManyPlatformResourceFilter + """Filter by the object’s `proposal` relation.""" + proposal: ProposalFilter - """`platformResourcesByResourceDefinitionId` exist.""" - platformResourcesByResourceDefinitionIdExist: Boolean + """Filter by the object’s `proposalId` field.""" + proposalId: UUIDFilter - """Filter by the object’s `slug` field.""" - slug: StringFilter + """Filter by the object’s `reviewerId` field.""" + reviewerId: UUIDFilter - """Filter by the object’s `stepUpMinAge` field.""" - stepUpMinAge: IntervalFilter + """Filter by the object’s `search` field.""" + search: FullTextFilter - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter + """Filter by the object’s `submittedAt` field.""" + submittedAt: DatetimeFilter - """Filter by the object’s `updatedBy` field.""" - updatedBy: UUIDFilter -} + """TRGM search on the `body` column.""" + trgmBody: TrgmSearchInput -"""An input for mutations affecting `PlatformResourceDefinition`""" -input PlatformResourceDefinitionInput { - """Freeform metadata for tooling and operational notes""" - annotations: JSON - createdAt: Datetime - createdBy: UUID + """TRGM search on the `commit_sha` column.""" + trgmCommitSha: TrgmSearchInput - """Template spec for creating resource instances of this kind""" - defaultSpec: JSON + """TRGM search on the `verdict` column.""" + trgmVerdict: TrgmSearchInput - """What this resource definition provides""" - description: String - id: UUID + """TSV search on the `search` column.""" + tsvSearch: String """ - Provider slugs (e.g. mailgun, postgres) associated with this resource definition. The UI uses this to auto-fill required_secrets and required_configs from integration_providers. + Composite unified search. Provide a search string and it will be dispatched to + all text-compatible search algorithms (tsvector, BM25, pg_trgm) + simultaneously. When the LLM plugin is active, pgvector also participates via + auto-embedding. Rows matching ANY algorithm are returned. All matching score + fields are populated. """ - integrations: [String] + unifiedSearch: String - """ - Resource kind: Deployment, StatefulSet, Job, Service, Ingress, Certificate, ClusterIssuer, or custom kinds - """ - kind: String! + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter - """Key/value pairs for selecting and filtering definitions""" - labels: JSON + """Filter by the object’s `updatedByPrincipal` field.""" + updatedByPrincipal: UUIDFilter - """Human-readable definition name""" - name: String! + """Filter by the object’s `verdict` field.""" + verdict: StringTrgmFilter +} - """ - Namespace this definition belongs to (security boundary, maps to K8s namespace) - """ - namespaceId: UUID! +"""An input for mutations affecting `ProposalReview`""" +input ProposalReviewInput { + """Summary the reviewer submitted with the verdict""" + body: String - """ - Declared parameter interface: [{key,label,type,default,required,min,max,options,group,order,bindings:[{path,template,scale,round,unit}]}]. Installation params are validated and compiled through these declarations; [] keeps the legacy raw spec overlay. - """ - paramsSchema: JSON + """Head commit this verdict was submitted against""" + commitSha: String! + createdAt: Datetime + createdByPrincipal: UUID - """ - Embedded config requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. - """ - requiredConfigs: [ResourceRequirementInput] + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! + id: UUID - """ - Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. - """ - requiredSecrets: [ResourceRequirementInput] + """Proposal being reviewed""" + proposalId: UUID! - """URL-safe identifier, unique within (namespace_id, kind)""" - slug: String! + """Actor who submitted the verdict""" + reviewerId: UUID! - """ - Min age before DELETE of a resource of this kind requires step-up; NULL inherits the 6h default - """ - stepUpMinAge: IntervalInput + """When the verdict was submitted""" + submittedAt: Datetime updatedAt: Datetime - updatedBy: UUID -} - -"""Methods to use when ordering `PlatformResourceDefinition`.""" -enum PlatformResourceDefinitionOrderBy { - ANNOTATIONS_ASC - ANNOTATIONS_DESC + updatedByPrincipal: UUID + + """approve, reject or comment (a review that gates nothing)""" + verdict: String! +} + +"""Methods to use when ordering `ProposalReview`.""" +enum ProposalReviewOrderBy { + BODY_ASC + BODY_DESC + BODY_TRGM_SIMILARITY_ASC + BODY_TRGM_SIMILARITY_DESC + COMMIT_SHA_ASC + COMMIT_SHA_DESC + COMMIT_SHA_TRGM_SIMILARITY_ASC + COMMIT_SHA_TRGM_SIMILARITY_DESC CREATED_AT_ASC CREATED_AT_DESC - CREATED_BY_ASC - CREATED_BY_DESC - DEFAULT_SPEC_ASC - DEFAULT_SPEC_DESC - DESCRIPTION_ASC - DESCRIPTION_DESC + CREATED_BY_PRINCIPAL_ASC + CREATED_BY_PRINCIPAL_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC ID_ASC ID_DESC - INTEGRATIONS_ASC - INTEGRATIONS_DESC - KIND_ASC - KIND_DESC - LABELS_ASC - LABELS_DESC - NAMESPACE_ID_ASC - NAMESPACE_ID_DESC - NAME_ASC - NAME_DESC NATURAL - PARAMS_SCHEMA_ASC - PARAMS_SCHEMA_DESC PRIMARY_KEY_ASC PRIMARY_KEY_DESC - REQUIRED_CONFIGS_ASC - REQUIRED_CONFIGS_DESC - REQUIRED_SECRETS_ASC - REQUIRED_SECRETS_DESC - SLUG_ASC - SLUG_DESC - STEP_UP_MIN_AGE_ASC - STEP_UP_MIN_AGE_DESC + PROPOSAL_ID_ASC + PROPOSAL_ID_DESC + REVIEWER_ID_ASC + REVIEWER_ID_DESC + SEARCH_ASC + SEARCH_DESC + SEARCH_SCORE_ASC + SEARCH_SCORE_DESC + SEARCH_TSV_RANK_ASC + SEARCH_TSV_RANK_DESC + SUBMITTED_AT_ASC + SUBMITTED_AT_DESC UPDATED_AT_ASC UPDATED_AT_DESC - UPDATED_BY_ASC - UPDATED_BY_DESC + UPDATED_BY_PRINCIPAL_ASC + UPDATED_BY_PRINCIPAL_DESC + VERDICT_ASC + VERDICT_DESC + VERDICT_TRGM_SIMILARITY_ASC + VERDICT_TRGM_SIMILARITY_DESC +} + +""" +Represents an update to a `ProposalReview`. Fields that are set will be updated. +""" +input ProposalReviewPatch { + """Summary the reviewer submitted with the verdict""" + body: String + + """Head commit this verdict was submitted against""" + commitSha: String + createdAt: Datetime + createdByPrincipal: UUID + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID + id: UUID + + """Proposal being reviewed""" + proposalId: UUID + + """Actor who submitted the verdict""" + reviewerId: UUID + + """When the verdict was submitted""" + submittedAt: Datetime + updatedAt: Datetime + updatedByPrincipal: UUID + + """approve, reject or comment (a review that gates nothing)""" + verdict: String } """ -Represents an update to a `PlatformResourceDefinition`. Fields that are set will be updated. +A filter to be used against many `Build` object types. All fields are combined with a logical ‘and.’ """ -input PlatformResourceDefinitionPatch { - """Freeform metadata for tooling and operational notes""" - annotations: JSON - createdAt: Datetime - createdBy: UUID - - """Template spec for creating resource instances of this kind""" - defaultSpec: JSON +input ProposalToManyBuildFilter { + """Filters to entities where every related entity matches.""" + every: BuildFilter - """What this resource definition provides""" - description: String - id: UUID + """Filters to entities where no related entity matches.""" + none: BuildFilter - """ - Provider slugs (e.g. mailgun, postgres) associated with this resource definition. The UI uses this to auto-fill required_secrets and required_configs from integration_providers. - """ - integrations: [String] + """Filters to entities where at least one related entity matches.""" + some: BuildFilter +} - """ - Resource kind: Deployment, StatefulSet, Job, Service, Ingress, Certificate, ClusterIssuer, or custom kinds - """ - kind: String +""" +A filter to be used against many `ProposalComment` object types. All fields are combined with a logical ‘and.’ +""" +input ProposalToManyProposalCommentFilter { + """Filters to entities where every related entity matches.""" + every: ProposalCommentFilter - """Key/value pairs for selecting and filtering definitions""" - labels: JSON + """Filters to entities where no related entity matches.""" + none: ProposalCommentFilter - """Human-readable definition name""" - name: String + """Filters to entities where at least one related entity matches.""" + some: ProposalCommentFilter +} - """ - Namespace this definition belongs to (security boundary, maps to K8s namespace) - """ - namespaceId: UUID +""" +A filter to be used against many `ProposalFileView` object types. All fields are combined with a logical ‘and.’ +""" +input ProposalToManyProposalFileViewFilter { + """Filters to entities where every related entity matches.""" + every: ProposalFileViewFilter - """ - Declared parameter interface: [{key,label,type,default,required,min,max,options,group,order,bindings:[{path,template,scale,round,unit}]}]. Installation params are validated and compiled through these declarations; [] keeps the legacy raw spec overlay. - """ - paramsSchema: JSON + """Filters to entities where no related entity matches.""" + none: ProposalFileViewFilter - """ - Embedded config requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. - """ - requiredConfigs: [ResourceRequirementInput] + """Filters to entities where at least one related entity matches.""" + some: ProposalFileViewFilter +} - """ - Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. - """ - requiredSecrets: [ResourceRequirementInput] +""" +A filter to be used against many `Proposal` object types. All fields are combined with a logical ‘and.’ +""" +input ProposalToManyProposalFilter { + """Filters to entities where every related entity matches.""" + every: ProposalFilter - """URL-safe identifier, unique within (namespace_id, kind)""" - slug: String + """Filters to entities where no related entity matches.""" + none: ProposalFilter - """ - Min age before DELETE of a resource of this kind requires step-up; NULL inherits the 6h default - """ - stepUpMinAge: IntervalInput - updatedAt: Datetime - updatedBy: UUID + """Filters to entities where at least one related entity matches.""" + some: ProposalFilter } """ -A filter to be used against many `PlatformResource` object types. All fields are combined with a logical ‘and.’ +A filter to be used against many `ProposalReaction` object types. All fields are combined with a logical ‘and.’ """ -input PlatformResourceDefinitionToManyPlatformResourceFilter { +input ProposalToManyProposalReactionFilter { """Filters to entities where every related entity matches.""" - every: PlatformResourceFilter + every: ProposalReactionFilter """Filters to entities where no related entity matches.""" - none: PlatformResourceFilter + none: ProposalReactionFilter """Filters to entities where at least one related entity matches.""" - some: PlatformResourceFilter + some: ProposalReactionFilter } -"""A `PlatformResource` edge in the connection.""" -type PlatformResourceEdge { - """A cursor for use in pagination.""" - cursor: Cursor +""" +A filter to be used against many `ProposalReview` object types. All fields are combined with a logical ‘and.’ +""" +input ProposalToManyProposalReviewFilter { + """Filters to entities where every related entity matches.""" + every: ProposalReviewFilter - """The `PlatformResource` at the end of the edge.""" - node: PlatformResource + """Filters to entities where no related entity matches.""" + none: ProposalReviewFilter + + """Filters to entities where at least one related entity matches.""" + some: ProposalReviewFilter } """ -Resource lifecycle events — audit log of provisioning, updates, and failure events +A filter to be used against many `ProposalsChunk` object types. All fields are combined with a logical ‘and.’ """ -type PlatformResourceEvent { - """User who triggered this event (NULL for system/automated)""" - actorId: UUID +input ProposalToManyProposalsChunkFilter { + """Filters to entities where every related entity matches.""" + every: ProposalsChunkFilter - """Event timestamp (partition key)""" - createdAt: Datetime! + """Filters to entities where no related entity matches.""" + none: ProposalsChunkFilter + + """Filters to entities where at least one related entity matches.""" + some: ProposalsChunkFilter +} +type ProposalsChunk { """ - Event type: provisioned, provisioning, updated, failed, deprovisioned, health_check + Policy-required field derived from source table (used by AuthzComposite) """ - eventType: String! - - """Unique event identifier""" - id: UUID! + actorId: UUID + body: String! + chunkIndex: Int! + createdAt: Datetime - """Human-readable description of the event""" - message: String + """ + Policy-required field derived from source table (used by AuthzRelatedEntityMembership) + """ + databaseId: UUID + embedding: Vector - """Structured context (old/new values, error details, etc.)""" + """ + VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. + """ + embeddingVectorDistance: Float + id: UUID! metadata: JSON - """Resource this event belongs to""" - resourceId: UUID! + """Reads a single `Proposal` that is related to this `ProposalsChunk`.""" + proposals: Proposal + proposalsId: UUID! + + """ + Composite search relevance score (0..1, higher = more relevant). Computed using Reciprocal Rank Fusion (RRF) across all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. + """ + searchScore: Float + updatedAt: Datetime } -"""A connection to a list of `PlatformResourceEvent` values.""" -type PlatformResourceEventConnection { +"""A connection to a list of `ProposalsChunk` values.""" +type ProposalsChunkConnection { """ - A list of edges which contains the `PlatformResourceEvent` and cursor to aid in pagination. + A list of edges which contains the `ProposalsChunk` and cursor to aid in pagination. """ - edges: [PlatformResourceEventEdge]! + edges: [ProposalsChunkEdge]! - """A list of `PlatformResourceEvent` objects.""" - nodes: [PlatformResourceEvent]! + """A list of `ProposalsChunk` objects.""" + nodes: [ProposalsChunk]! """Information to aid in pagination.""" pageInfo: PageInfo! - """ - The count of *all* `PlatformResourceEvent` you could get from the connection. - """ + """The count of *all* `ProposalsChunk` you could get from the connection.""" totalCount: Int! } -"""A `PlatformResourceEvent` edge in the connection.""" -type PlatformResourceEventEdge { +"""A `ProposalsChunk` edge in the connection.""" +type ProposalsChunkEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `PlatformResourceEvent` at the end of the edge.""" - node: PlatformResourceEvent + """The `ProposalsChunk` at the end of the edge.""" + node: ProposalsChunk } """ -A filter to be used against `PlatformResourceEvent` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `ProposalsChunk` object types. All fields are combined with a logical ‘and.’ """ -input PlatformResourceEventFilter { +input ProposalsChunkFilter { """Filter by the object’s `actorId` field.""" actorId: UUIDFilter """Checks for all expressions in this list.""" - and: [PlatformResourceEventFilter!] + and: [ProposalsChunkFilter!] + + """Filter by the object’s `body` field.""" + body: StringFilter + + """Filter by the object’s `chunkIndex` field.""" + chunkIndex: IntFilter """Filter by the object’s `createdAt` field.""" createdAt: DatetimeFilter - """Filter by the object’s `eventType` field.""" - eventType: StringFilter + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `embedding` field.""" + embedding: VectorFilter """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `message` field.""" - message: StringFilter - """Filter by the object’s `metadata` field.""" metadata: JSONFilter """Negates the expression.""" - not: PlatformResourceEventFilter + not: ProposalsChunkFilter """Checks for any expressions in this list.""" - or: [PlatformResourceEventFilter!] + or: [ProposalsChunkFilter!] - """Filter by the object’s `resourceId` field.""" - resourceId: UUIDFilter + """Filter by the object’s `proposals` relation.""" + proposals: ProposalFilter + + """Filter by the object’s `proposalsId` field.""" + proposalsId: UUIDFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + + """VECTOR search on the `embedding` column.""" + vectorEmbedding: VectorNearbyInput } -"""An input for mutations affecting `PlatformResourceEvent`""" -input PlatformResourceEventInput { - """User who triggered this event (NULL for system/automated)""" +"""An input for mutations affecting `ProposalsChunk`""" +input ProposalsChunkInput { + """ + Policy-required field derived from source table (used by AuthzComposite) + """ actorId: UUID - - """Event timestamp (partition key)""" + body: String! + chunkIndex: Int createdAt: Datetime """ - Event type: provisioned, provisioning, updated, failed, deprovisioned, health_check + Policy-required field derived from source table (used by AuthzRelatedEntityMembership) """ - eventType: String! + databaseId: UUID + embedding: Vector - """Unique event identifier""" + """ + Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. + """ + embeddingText: String id: UUID - - """Human-readable description of the event""" - message: String - - """Structured context (old/new values, error details, etc.)""" metadata: JSON - - """Resource this event belongs to""" - resourceId: UUID! + proposalsId: UUID! + updatedAt: Datetime } -"""Methods to use when ordering `PlatformResourceEvent`.""" -enum PlatformResourceEventOrderBy { +"""Methods to use when ordering `ProposalsChunk`.""" +enum ProposalsChunkOrderBy { ACTOR_ID_ASC ACTOR_ID_DESC + BODY_ASC + BODY_DESC + CHUNK_INDEX_ASC + CHUNK_INDEX_DESC CREATED_AT_ASC CREATED_AT_DESC - EVENT_TYPE_ASC - EVENT_TYPE_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + EMBEDDING_ASC + EMBEDDING_DESC + EMBEDDING_VECTOR_DISTANCE_ASC + EMBEDDING_VECTOR_DISTANCE_DESC ID_ASC ID_DESC - MESSAGE_ASC - MESSAGE_DESC METADATA_ASC METADATA_DESC NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC - RESOURCE_ID_ASC - RESOURCE_ID_DESC + PROPOSALS_ID_ASC + PROPOSALS_ID_DESC + SEARCH_SCORE_ASC + SEARCH_SCORE_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC } """ -Represents an update to a `PlatformResourceEvent`. Fields that are set will be updated. +Represents an update to a `ProposalsChunk`. Fields that are set will be updated. """ -input PlatformResourceEventPatch { - """User who triggered this event (NULL for system/automated)""" +input ProposalsChunkPatch { + """ + Policy-required field derived from source table (used by AuthzComposite) + """ actorId: UUID - - """Event timestamp (partition key)""" + body: String + chunkIndex: Int createdAt: Datetime """ - Event type: provisioned, provisioning, updated, failed, deprovisioned, health_check + Policy-required field derived from source table (used by AuthzRelatedEntityMembership) """ - eventType: String + databaseId: UUID + embedding: Vector - """Unique event identifier""" + """ + Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. + """ + embeddingText: String id: UUID + metadata: JSON + proposalsId: UUID + updatedAt: Datetime +} - """Human-readable description of the event""" - message: String +input ProvisionBucketInput { + """The logical bucket key (e.g., "public", "private")""" + bucketKey: String! - """Structured context (old/new values, error details, etc.)""" - metadata: JSON + """ + Owner entity ID for entity-scoped bucket provisioning. + Omit for app-level (database-wide) storage. + """ + ownerId: UUID +} - """Resource this event belongs to""" - resourceId: UUID +type ProvisionBucketPayload { + """The logical bucket row that was queued for reconciliation.""" + bucketId: UUID! + bucketKey: String! + + """The reconciler job enqueued to provision this bucket.""" + jobId: UUID! + + """ + The physical bucket name already recorded, or null when reconciliation has not completed. + """ + physicalName: String } -""" -A filter to be used against `PlatformResource` object types. All fields are combined with a logical ‘and.’ -""" -input PlatformResourceFilter { - """Checks for all expressions in this list.""" - and: [PlatformResourceFilter!] +"""The root query type which gives access points into the data universe.""" +type Query { + """ + Metadata about the database schema, including tables, fields, indexes, and constraints. Useful for code generation tools. + """ + _meta: MetaSchema - """Filter by the object’s `annotations` field.""" - annotations: JSONFilter + """Reads and enables pagination through a set of `BuildStep`.""" + buildSteps( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """Filter by the object’s `cpuLimitMillicores` field.""" - cpuLimitMillicores: BigIntFilter + """Read all values in the set before (above) this cursor.""" + before: Cursor - """Filter by the object’s `cpuRequestMillicores` field.""" - cpuRequestMillicores: BigIntFilter + """Only read the first `n` values of the set.""" + first: Int - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter + """Only read the last `n` values of the set.""" + last: Int - """Filter by the object’s `createdBy` field.""" - createdBy: 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 `errorCount` field.""" - errorCount: IntFilter + """The method to use when ordering `BuildStep`.""" + orderBy: [BuildStepOrderBy!] = [PRIMARY_KEY_ASC] - """Filter by the object’s `id` field.""" - id: UUIDFilter + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: BuildStepFilter + ): BuildStepConnection - """Filter by the object’s `installation` relation.""" - installation: PlatformResourceInstallationFilter + """Reads and enables pagination through a set of `BuilderBinding`.""" + builderBindings( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """A related `installation` exists.""" - installationExists: Boolean + """Read all values in the set before (above) this cursor.""" + before: Cursor - """Filter by the object’s `installationId` field.""" - installationId: UUIDFilter + """Only read the first `n` values of the set.""" + first: Int - """Filter by the object’s `integrations` field.""" - integrations: StringListFilter + """Only read the last `n` values of the set.""" + last: Int - """Filter by the object’s `kind` field.""" - kind: StringFilter + """ + 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 `labels` field.""" - labels: JSONFilter + """The method to use when ordering `BuilderBinding`.""" + orderBy: [BuilderBindingOrderBy!] = [PRIMARY_KEY_ASC] - """Filter by the object’s `lastError` field.""" - lastError: StringFilter + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: BuilderBindingFilter + ): BuilderBindingConnection - """Filter by the object’s `lastHeartbeatAt` field.""" - lastHeartbeatAt: DatetimeFilter + """Reads and enables pagination through a set of `Build`.""" + builds( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """Filter by the object’s `memoryLimitBytes` field.""" - memoryLimitBytes: BigIntFilter + """Read all values in the set before (above) this cursor.""" + before: Cursor - """Filter by the object’s `memoryRequestBytes` field.""" - memoryRequestBytes: BigIntFilter + """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 - """Filter by the object’s `namespace` relation.""" - namespace: PlatformNamespaceFilter + """ + 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 `namespaceId` field.""" - namespaceId: UUIDFilter + """The method to use when ordering `Build`.""" + orderBy: [BuildOrderBy!] = [PRIMARY_KEY_ASC] - """Negates the expression.""" - not: PlatformResourceFilter + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: BuildFilter + ): BuildConnection - """Checks for any expressions in this list.""" - or: [PlatformResourceFilter!] + """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 `DatabaseFunctionGraphExecutionNodeState`. + """ + databaseFunctionGraphExecutionNodeStates( + """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 `DatabaseFunctionGraphExecutionNodeState`. + """ + orderBy: [DatabaseFunctionGraphExecutionNodeStateOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: DatabaseFunctionGraphExecutionNodeStateFilter + ): DatabaseFunctionGraphExecutionNodeStateConnection + + """ + Reads and enables pagination through a set of `DatabaseFunctionGraphExecutionOutput`. + """ + databaseFunctionGraphExecutionOutputs( + """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 `DatabaseFunctionGraphExecutionOutput`. + """ + orderBy: [DatabaseFunctionGraphExecutionOutputOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: DatabaseFunctionGraphExecutionOutputFilter + ): DatabaseFunctionGraphExecutionOutputConnection + + """ + Reads and enables pagination through a set of `DatabaseFunctionGraphExecution`. + """ + databaseFunctionGraphExecutions( + """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 `DatabaseFunctionGraphExecution`.""" + orderBy: [DatabaseFunctionGraphExecutionOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: DatabaseFunctionGraphExecutionFilter + ): DatabaseFunctionGraphExecutionConnection + + """Reads and enables pagination through a set of `DatabaseFunctionGraph`.""" + databaseFunctionGraphs( + """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 `DatabaseFunctionGraph`.""" + orderBy: [DatabaseFunctionGraphOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: DatabaseFunctionGraphFilter + ): DatabaseFunctionGraphConnection + + """Reads and enables pagination through a set of `DatabaseGraphCommit`.""" + databaseGraphCommits( + """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 `DatabaseGraphCommit`.""" + orderBy: [DatabaseGraphCommitOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: DatabaseGraphCommitFilter + ): DatabaseGraphCommitConnection + + """ + Reads and enables pagination through a set of `DatabaseGraphGetAllTreeNodesRecord`. + """ + databaseGraphGetAllTreeNodes( + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """Only read the first `n` values of the set.""" + first: Int + id: UUID + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + sId: UUID + ): DatabaseGraphGetAllTreeNodesConnection + databaseGraphGetNodeAtPath(id: UUID, path: [String], sId: UUID): DatabaseGraphObject + + """Reads and enables pagination through a set of `DatabaseGraphObject`.""" + databaseGraphObjects( + """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 - """ - Filter by the object’s `platformResourceStatusChecksByResourceId` relation. - """ - platformResourceStatusChecksByResourceId: PlatformResourceToManyPlatformResourceStatusCheckFilter + """Only read the last `n` values of the set.""" + last: Int - """`platformResourceStatusChecksByResourceId` exist.""" - platformResourceStatusChecksByResourceIdExist: Boolean + """ + 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 `realm` field.""" - realm: StringFilter + """The method to use when ordering `DatabaseGraphObject`.""" + orderBy: [DatabaseGraphObjectOrderBy!] = [PRIMARY_KEY_ASC] - """Filter by the object’s `replicas` field.""" - replicas: IntFilter + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: DatabaseGraphObjectFilter + ): DatabaseGraphObjectConnection - """Filter by the object’s `resourceDefinition` relation.""" - resourceDefinition: PlatformResourceDefinitionFilter + """Reads and enables pagination through a set of `DatabaseGraphRef`.""" + databaseGraphRefs( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """A related `resourceDefinition` exists.""" - resourceDefinitionExists: Boolean + """Read all values in the set before (above) this cursor.""" + before: Cursor - """Filter by the object’s `resourceDefinitionId` field.""" - resourceDefinitionId: UUIDFilter + """Only read the first `n` values of the set.""" + first: Int - """Filter by the object’s `slug` field.""" - slug: StringFilter + """Only read the last `n` values of the set.""" + last: Int - """Filter by the object’s `spec` field.""" - spec: JSONFilter + """ + 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 `status` field.""" - status: StringFilter + """The method to use when ordering `DatabaseGraphRef`.""" + orderBy: [DatabaseGraphRefOrderBy!] = [PRIMARY_KEY_ASC] - """Filter by the object’s `statusObserved` field.""" - statusObserved: JSONFilter + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: DatabaseGraphRefFilter + ): DatabaseGraphRefConnection - """Filter by the object’s `storageClass` field.""" - storageClass: StringFilter + """Reads and enables pagination through a set of `DatabaseGraphStore`.""" + databaseGraphStores( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """Filter by the object’s `storageSizeBytes` field.""" - storageSizeBytes: BigIntFilter + """Read all values in the set before (above) this cursor.""" + before: Cursor - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter + """Only read the first `n` values of the set.""" + first: Int - """Filter by the object’s `updatedBy` field.""" - updatedBy: UUIDFilter -} + """Only read the last `n` values of the set.""" + last: Int -"""An input for mutations affecting `PlatformResource`""" -input PlatformResourceInput { - """Freeform metadata for tooling and operational notes""" - annotations: JSON - createdAt: Datetime - createdBy: UUID + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int - """Cumulative error count for this resource""" - errorCount: Int - id: UUID + """The method to use when ordering `DatabaseGraphStore`.""" + orderBy: [DatabaseGraphStoreOrderBy!] = [PRIMARY_KEY_ASC] - """ - Installation ("release") this resource belongs to (NULL for standalone resources) - """ - installationId: UUID + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: DatabaseGraphStoreFilter + ): DatabaseGraphStoreConnection + databaseReadFunctionGraph(graphId: UUID): JSON - """ - Provider slugs (e.g. mailgun, postgres) associated with this resource. The UI uses this to auto-fill required_secrets and required_configs from integration_providers. - """ - integrations: [String] + """Reads and enables pagination through a set of `DbPreset`.""" + dbPresets( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """ - Resource kind: Deployment, StatefulSet, Job, Service, Ingress, Certificate, ClusterIssuer - """ - kind: String! + """Read all values in the set before (above) this cursor.""" + before: Cursor - """Key/value pairs for selecting and filtering resources""" - labels: JSON + """Only read the first `n` values of the set.""" + first: Int - """Most recent provisioning or runtime error message""" - lastError: String + """Only read the last `n` values of the set.""" + last: Int - """ - Last time a usage heartbeat was received for this resource (NULL until first heartbeat) - """ - lastHeartbeatAt: Datetime + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int - """Human-readable resource name""" - name: String! + """The method to use when ordering `DbPreset`.""" + orderBy: [DbPresetOrderBy!] = [PRIMARY_KEY_ASC] - """ - Namespace this resource belongs to (security boundary, maps to K8s namespace) - """ - namespaceId: UUID! + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: DbPresetFilter + ): DbPresetConnection - """ - Config/secret realm this resource resolves against. Per key, the realm-specific atom wins over the NULL-realm default. NULL = the default lane. - """ - realm: String + """Reads and enables pagination through a set of `FunctionApiBinding`.""" + functionApiBindings( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """ - Embedded config requirements: array of (name, required, provider) tuples — extends the linked definition's requirements. provider is the integration slug this requirement belongs to, if any. - """ - requiredConfigs: [ResourceRequirementInput] + """Read all values in the set before (above) this cursor.""" + before: Cursor - """ - Embedded secret requirements: array of (name, required, provider) tuples — extends the linked definition's requirements. provider is the integration slug this requirement belongs to, if any. - """ - requiredSecrets: [ResourceRequirementInput] + """Only read the first `n` values of the set.""" + first: Int - """ - Definition template this resource was created from (NULL for standalone resources) - """ - resourceDefinitionId: UUID + """Only read the last `n` values of the set.""" + last: Int - """URL-safe identifier, unique within (namespace_id, kind)""" - 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 - """ - Desired state — kind-specific configuration (image, ports, resources, etc.). Opaque to DB; validated by K8s. - """ - spec: JSON + """The method to use when ordering `FunctionApiBinding`.""" + orderBy: [FunctionApiBindingOrderBy!] = [PRIMARY_KEY_ASC] - """ - Resource lifecycle status: pending, provisioning, active, completed, failed, draining, deleting - """ - status: String + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: FunctionApiBindingFilter + ): FunctionApiBindingConnection """ - Observed state from K8s — populated by handlers after reconciliation (service_url, clone_url, replicas, etc.) + Reads and enables pagination through a set of `FunctionCapabilityBinding`. """ - statusObserved: JSON - updatedAt: Datetime - updatedBy: UUID -} + functionCapabilityBindings( + """Read all values in the set after (below) this cursor.""" + after: Cursor -""" -Installed resource bundle ("release") — groups a set of resources; params are merkle-versioned in the scope's shared infra store for rollback -""" -type PlatformResourceInstallation { - """ - Infra store commit for the current params (stamped by the versioned trigger on every write) - """ - commitId: UUID - createdAt: Datetime - createdBy: UUID - id: UUID! + """Read all values in the set before (above) this cursor.""" + before: Cursor - """Human-readable release name""" - name: String! + """Only read the first `n` values of the set.""" + first: Int - """ - Reads a single `PlatformNamespace` that is related to this `PlatformResourceInstallation`. - """ - namespace: PlatformNamespace + """Only read the last `n` values of the set.""" + last: Int - """Namespace this installation belongs to (security boundary)""" - namespaceId: UUID! + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int - """ - Release parameters — the readily-cached head; history lives in the infra store. Never contains secret/config literals. - """ - params: JSON! + """The method to use when ordering `FunctionCapabilityBinding`.""" + orderBy: [FunctionCapabilityBindingOrderBy!] = [PRIMARY_KEY_ASC] - """Reads and enables pagination through a set of `PlatformResource`.""" - platformResourcesByInstallationId( + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: FunctionCapabilityBindingFilter + ): FunctionCapabilityBindingConnection + + """Reads and enables pagination through a set of `FunctionDefinition`.""" + functionDefinitions( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -19148,1753 +40570,1538 @@ type PlatformResourceInstallation { """ offset: Int - """The method to use when ordering `PlatformResource`.""" - orderBy: [PlatformResourceOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `FunctionDefinition`.""" + orderBy: [FunctionDefinitionOrderBy!] = [PRIMARY_KEY_ASC] """ A filter to be used in determining which values should be returned by the collection. """ - where: PlatformResourceFilter - ): PlatformResourceConnection! - - """ - Monotonic release revision counter: install starts at 1, bumped on every upgrade/rollback - """ - revision: Int! + where: FunctionDefinitionFilter + ): FunctionDefinitionConnection """ - URL-safe release identifier, unique within the namespace; the release's path in the infra tree is [resource_installation, slug] + Reads and enables pagination through a set of `FunctionDeploymentEvent`. """ - slug: String! + functionDeploymentEvents( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """Installation lifecycle status: pending, installed, uninstalled, failed""" - status: String! + """Read all values in the set before (above) this cursor.""" + before: Cursor - """ - Infra merkle store holding this installation's history (stamped by the versioned trigger) - """ - storeId: UUID - updatedAt: Datetime - updatedBy: UUID -} + """Only read the first `n` values of the set.""" + first: Int -"""A connection to a list of `PlatformResourceInstallation` values.""" -type PlatformResourceInstallationConnection { - """ - A list of edges which contains the `PlatformResourceInstallation` and cursor to aid in pagination. - """ - edges: [PlatformResourceInstallationEdge]! + """Only read the last `n` values of the set.""" + last: Int - """A list of `PlatformResourceInstallation` objects.""" - nodes: [PlatformResourceInstallation]! + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int - """Information to aid in pagination.""" - pageInfo: PageInfo! + """The method to use when ordering `FunctionDeploymentEvent`.""" + orderBy: [FunctionDeploymentEventOrderBy!] = [PRIMARY_KEY_ASC] - """ - The count of *all* `PlatformResourceInstallation` you could get from the connection. - """ - totalCount: Int! -} + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: FunctionDeploymentEventFilter + ): FunctionDeploymentEventConnection -"""A `PlatformResourceInstallation` edge in the connection.""" -type PlatformResourceInstallationEdge { - """A cursor for use in pagination.""" - cursor: Cursor + """Reads and enables pagination through a set of `FunctionDeployment`.""" + functionDeployments( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """The `PlatformResourceInstallation` at the end of the edge.""" - node: PlatformResourceInstallation -} + """Read all values in the set before (above) this cursor.""" + before: Cursor -""" -A filter to be used against `PlatformResourceInstallation` object types. All fields are combined with a logical ‘and.’ -""" -input PlatformResourceInstallationFilter { - """Checks for all expressions in this list.""" - and: [PlatformResourceInstallationFilter!] + """Only read the first `n` values of the set.""" + first: Int - """Filter by the object’s `commitId` field.""" - commitId: UUIDFilter + """Only read the last `n` values of the set.""" + last: Int - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter + """ + 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 `createdBy` field.""" - createdBy: UUIDFilter + """The method to use when ordering `FunctionDeployment`.""" + orderBy: [FunctionDeploymentOrderBy!] = [PRIMARY_KEY_ASC] - """Filter by the object’s `id` field.""" - id: UUIDFilter + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: FunctionDeploymentFilter + ): FunctionDeploymentConnection - """Filter by the object’s `name` field.""" - name: StringFilter + """Reads and enables pagination through a set of `FunctionExecutionLog`.""" + functionExecutionLogs( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """Filter by the object’s `namespace` relation.""" - namespace: PlatformNamespaceFilter + """Read all values in the set before (above) this cursor.""" + before: Cursor - """Filter by the object’s `namespaceId` field.""" - namespaceId: UUIDFilter + """Only read the first `n` values of the set.""" + first: Int - """Negates the expression.""" - not: PlatformResourceInstallationFilter + """Only read the last `n` values of the set.""" + last: Int - """Checks for any expressions in this list.""" - or: [PlatformResourceInstallationFilter!] + """ + 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 `params` field.""" - params: JSONFilter + """The method to use when ordering `FunctionExecutionLog`.""" + orderBy: [FunctionExecutionLogOrderBy!] = [PRIMARY_KEY_ASC] - """Filter by the object’s `platformResourcesByInstallationId` relation.""" - platformResourcesByInstallationId: PlatformResourceInstallationToManyPlatformResourceFilter + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: FunctionExecutionLogFilter + ): FunctionExecutionLogConnection - """`platformResourcesByInstallationId` exist.""" - platformResourcesByInstallationIdExist: Boolean + """Reads and enables pagination through a set of `FunctionGraphCommit`.""" + functionGraphCommits( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """Filter by the object’s `revision` field.""" - revision: IntFilter + """Read all values in the set before (above) this cursor.""" + before: Cursor - """Filter by the object’s `slug` field.""" - slug: StringFilter + """Only read the first `n` values of the set.""" + first: Int - """Filter by the object’s `status` field.""" - status: StringFilter + """Only read the last `n` values of the set.""" + last: Int - """Filter by the object’s `storeId` field.""" - storeId: 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 `FunctionGraphCommit`.""" + orderBy: [FunctionGraphCommitOrderBy!] = [PRIMARY_KEY_ASC] - """Filter by the object’s `updatedBy` field.""" - updatedBy: UUIDFilter -} + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: FunctionGraphCommitFilter + ): FunctionGraphCommitConnection -"""An input for mutations affecting `PlatformResourceInstallation`""" -input PlatformResourceInstallationInput { """ - Infra store commit for the current params (stamped by the versioned trigger on every write) + Reads and enables pagination through a set of `FunctionGraphExecutionNodeState`. """ - commitId: UUID - createdAt: Datetime - createdBy: UUID - id: UUID + functionGraphExecutionNodeStates( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """Human-readable release name""" - name: String! + """Read all values in the set before (above) this cursor.""" + before: Cursor - """Namespace this installation belongs to (security boundary)""" - namespaceId: UUID! + """Only read the first `n` values of the set.""" + first: Int - """ - Release parameters — the readily-cached head; history lives in the infra store. Never contains secret/config literals. - """ - params: JSON + """Only read the last `n` values of the set.""" + last: Int - """ - Monotonic release revision counter: install starts at 1, bumped on every upgrade/rollback - """ - revision: Int + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int - """ - URL-safe release identifier, unique within the namespace; the release's path in the infra tree is [resource_installation, slug] - """ - slug: String! + """The method to use when ordering `FunctionGraphExecutionNodeState`.""" + orderBy: [FunctionGraphExecutionNodeStateOrderBy!] = [PRIMARY_KEY_ASC] - """Installation lifecycle status: pending, installed, uninstalled, failed""" - status: String + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: FunctionGraphExecutionNodeStateFilter + ): FunctionGraphExecutionNodeStateConnection """ - Infra merkle store holding this installation's history (stamped by the versioned trigger) + Reads and enables pagination through a set of `FunctionGraphExecutionOutput`. """ - storeId: UUID - updatedAt: Datetime - updatedBy: UUID -} - -"""Methods to use when ordering `PlatformResourceInstallation`.""" -enum PlatformResourceInstallationOrderBy { - COMMIT_ID_ASC - COMMIT_ID_DESC - CREATED_AT_ASC - CREATED_AT_DESC - CREATED_BY_ASC - CREATED_BY_DESC - ID_ASC - ID_DESC - NAMESPACE_ID_ASC - NAMESPACE_ID_DESC - NAME_ASC - NAME_DESC - NATURAL - PARAMS_ASC - PARAMS_DESC - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - REVISION_ASC - REVISION_DESC - SLUG_ASC - SLUG_DESC - STATUS_ASC - STATUS_DESC - STORE_ID_ASC - STORE_ID_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC - UPDATED_BY_ASC - UPDATED_BY_DESC -} + functionGraphExecutionOutputs( + """Read all values in the set after (below) this cursor.""" + after: Cursor -""" -Represents an update to a `PlatformResourceInstallation`. Fields that are set will be updated. -""" -input PlatformResourceInstallationPatch { - """ - Infra store commit for the current params (stamped by the versioned trigger on every write) - """ - commitId: UUID - createdAt: Datetime - createdBy: UUID - id: UUID + """Read all values in the set before (above) this cursor.""" + before: Cursor - """Human-readable release name""" - name: String + """Only read the first `n` values of the set.""" + first: Int - """Namespace this installation belongs to (security boundary)""" - namespaceId: UUID + """Only read the last `n` values of the set.""" + last: Int - """ - Release parameters — the readily-cached head; history lives in the infra store. Never contains secret/config literals. - """ - params: JSON + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int - """ - Monotonic release revision counter: install starts at 1, bumped on every upgrade/rollback - """ - revision: Int + """The method to use when ordering `FunctionGraphExecutionOutput`.""" + orderBy: [FunctionGraphExecutionOutputOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: FunctionGraphExecutionOutputFilter + ): FunctionGraphExecutionOutputConnection """ - URL-safe release identifier, unique within the namespace; the release's path in the infra tree is [resource_installation, slug] + Reads and enables pagination through a set of `FunctionGraphExecution`. """ - slug: String + functionGraphExecutions( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """Installation lifecycle status: pending, installed, uninstalled, failed""" - status: String + """Read all values in the set before (above) this cursor.""" + before: Cursor - """ - Infra merkle store holding this installation's history (stamped by the versioned trigger) - """ - storeId: UUID - updatedAt: Datetime - updatedBy: UUID -} + """Only read the first `n` values of the set.""" + first: Int -""" -A filter to be used against many `PlatformResource` object types. All fields are combined with a logical ‘and.’ -""" -input PlatformResourceInstallationToManyPlatformResourceFilter { - """Filters to entities where every related entity matches.""" - every: PlatformResourceFilter + """Only read the last `n` values of the set.""" + last: Int - """Filters to entities where no related entity matches.""" - none: PlatformResourceFilter + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int - """Filters to entities where at least one related entity matches.""" - some: PlatformResourceFilter -} + """The method to use when ordering `FunctionGraphExecution`.""" + orderBy: [FunctionGraphExecutionOrderBy!] = [PRIMARY_KEY_ASC] -"""All input for the `platformResourceInstallationsInstall` mutation.""" -input PlatformResourceInstallationsInstallInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - definitionIds: [UUID] - name: String - namespaceId: UUID - newParams: JSON - slug: String -} + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: FunctionGraphExecutionFilter + ): FunctionGraphExecutionConnection -"""The output of our `platformResourceInstallationsInstall` mutation.""" -type PlatformResourceInstallationsInstallPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String + """Reads and enables pagination through a set of `FunctionGraphObject`.""" + functionGraphObjects( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - result: UUID -} + """Read all values in the set before (above) this cursor.""" + before: Cursor -"""All input for the `platformResourceInstallationsRollback` mutation.""" -input PlatformResourceInstallationsRollbackInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - commitId: UUID - targetInstallationId: UUID -} + """Only read the first `n` values of the set.""" + first: Int -"""The output of our `platformResourceInstallationsRollback` mutation.""" -type PlatformResourceInstallationsRollbackPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String + """Only read the last `n` values of the set.""" + last: Int - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int -"""All input for the `platformResourceInstallationsUninstall` mutation.""" -input PlatformResourceInstallationsUninstallInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - targetInstallationId: UUID -} + """The method to use when ordering `FunctionGraphObject`.""" + orderBy: [FunctionGraphObjectOrderBy!] = [PRIMARY_KEY_ASC] -"""The output of our `platformResourceInstallationsUninstall` mutation.""" -type PlatformResourceInstallationsUninstallPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: FunctionGraphObjectFilter + ): FunctionGraphObjectConnection - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} + """Reads and enables pagination through a set of `FunctionGraphRef`.""" + functionGraphRefs( + """Read all values in the set after (below) this cursor.""" + after: Cursor -"""All input for the `platformResourceInstallationsUpgrade` mutation.""" -input PlatformResourceInstallationsUpgradeInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - newParams: JSON - targetInstallationId: UUID -} + """Read all values in the set before (above) this cursor.""" + before: Cursor -"""The output of our `platformResourceInstallationsUpgrade` mutation.""" -type PlatformResourceInstallationsUpgradePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String + """Only read the first `n` values of the set.""" + first: Int - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} + """Only read the last `n` values of the set.""" + last: Int -"""Methods to use when ordering `PlatformResource`.""" -enum PlatformResourceOrderBy { - ANNOTATIONS_ASC - ANNOTATIONS_DESC - CPU_LIMIT_MILLICORES_ASC - CPU_LIMIT_MILLICORES_DESC - CPU_REQUEST_MILLICORES_ASC - CPU_REQUEST_MILLICORES_DESC - CREATED_AT_ASC - CREATED_AT_DESC - CREATED_BY_ASC - CREATED_BY_DESC - ERROR_COUNT_ASC - ERROR_COUNT_DESC - ID_ASC - ID_DESC - INSTALLATION_ID_ASC - INSTALLATION_ID_DESC - INTEGRATIONS_ASC - INTEGRATIONS_DESC - KIND_ASC - KIND_DESC - LABELS_ASC - LABELS_DESC - LAST_ERROR_ASC - LAST_ERROR_DESC - LAST_HEARTBEAT_AT_ASC - LAST_HEARTBEAT_AT_DESC - MEMORY_LIMIT_BYTES_ASC - MEMORY_LIMIT_BYTES_DESC - MEMORY_REQUEST_BYTES_ASC - MEMORY_REQUEST_BYTES_DESC - NAMESPACE_ID_ASC - NAMESPACE_ID_DESC - NAME_ASC - NAME_DESC - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - REALM_ASC - REALM_DESC - REPLICAS_ASC - REPLICAS_DESC - REQUIRED_CONFIGS_ASC - REQUIRED_CONFIGS_DESC - REQUIRED_SECRETS_ASC - REQUIRED_SECRETS_DESC - RESOURCE_DEFINITION_ID_ASC - RESOURCE_DEFINITION_ID_DESC - SLUG_ASC - SLUG_DESC - SPEC_ASC - SPEC_DESC - STATUS_ASC - STATUS_DESC - STATUS_OBSERVED_ASC - STATUS_OBSERVED_DESC - STORAGE_CLASS_ASC - STORAGE_CLASS_DESC - STORAGE_SIZE_BYTES_ASC - STORAGE_SIZE_BYTES_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC - UPDATED_BY_ASC - UPDATED_BY_DESC -} + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int -""" -Represents an update to a `PlatformResource`. Fields that are set will be updated. -""" -input PlatformResourcePatch { - """Freeform metadata for tooling and operational notes""" - annotations: JSON - createdAt: Datetime - createdBy: UUID + """The method to use when ordering `FunctionGraphRef`.""" + orderBy: [FunctionGraphRefOrderBy!] = [PRIMARY_KEY_ASC] - """Cumulative error count for this resource""" - errorCount: Int - id: UUID + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: FunctionGraphRefFilter + ): FunctionGraphRefConnection - """ - Installation ("release") this resource belongs to (NULL for standalone resources) - """ - installationId: UUID + """Reads and enables pagination through a set of `FunctionGraphStore`.""" + functionGraphStores( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """ - Provider slugs (e.g. mailgun, postgres) associated with this resource. The UI uses this to auto-fill required_secrets and required_configs from integration_providers. - """ - integrations: [String] + """Read all values in the set before (above) this cursor.""" + before: Cursor - """ - Resource kind: Deployment, StatefulSet, Job, Service, Ingress, Certificate, ClusterIssuer - """ - kind: String + """Only read the first `n` values of the set.""" + first: Int - """Key/value pairs for selecting and filtering resources""" - labels: JSON + """Only read the last `n` values of the set.""" + last: Int - """Most recent provisioning or runtime error message""" - lastError: String + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int - """ - Last time a usage heartbeat was received for this resource (NULL until first heartbeat) - """ - lastHeartbeatAt: Datetime + """The method to use when ordering `FunctionGraphStore`.""" + orderBy: [FunctionGraphStoreOrderBy!] = [PRIMARY_KEY_ASC] - """Human-readable resource name""" - name: String + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: FunctionGraphStoreFilter + ): FunctionGraphStoreConnection - """ - Namespace this resource belongs to (security boundary, maps to K8s namespace) - """ - namespaceId: UUID + """Reads and enables pagination through a set of `FunctionGraph`.""" + functionGraphs( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """ - Config/secret realm this resource resolves against. Per key, the realm-specific atom wins over the NULL-realm default. NULL = the default lane. - """ - realm: String + """Read all values in the set before (above) this cursor.""" + before: Cursor - """ - Embedded config requirements: array of (name, required, provider) tuples — extends the linked definition's requirements. provider is the integration slug this requirement belongs to, if any. - """ - requiredConfigs: [ResourceRequirementInput] + """Only read the first `n` values of the set.""" + first: Int - """ - Embedded secret requirements: array of (name, required, provider) tuples — extends the linked definition's requirements. provider is the integration slug this requirement belongs to, if any. - """ - requiredSecrets: [ResourceRequirementInput] + """Only read the last `n` values of the set.""" + last: Int - """ - Definition template this resource was created from (NULL for standalone resources) - """ - resourceDefinitionId: UUID + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int - """URL-safe identifier, unique within (namespace_id, kind)""" - slug: String + """The method to use when ordering `FunctionGraph`.""" + orderBy: [FunctionGraphOrderBy!] = [PRIMARY_KEY_ASC] - """ - Desired state — kind-specific configuration (image, ports, resources, etc.). Opaque to DB; validated by K8s. - """ - spec: JSON + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: FunctionGraphFilter + ): FunctionGraphConnection """ - Resource lifecycle status: pending, provisioning, active, completed, failed, draining, deleting + Reads and enables pagination through a set of `FunctionInvocationAttempt`. """ - status: String + functionInvocationAttempts( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """ - Observed state from K8s — populated by handlers after reconciliation (service_url, clone_url, replicas, etc.) - """ - statusObserved: JSON - updatedAt: Datetime - updatedBy: UUID -} + """Read all values in the set before (above) this cursor.""" + before: Cursor -""" -On-demand resource status checks — diagnostic snapshots from the runtime (K8s status, conditions, log tails) -""" -type PlatformResourceStatusCheck { - """When the check completed (NULL while pending/running)""" - completedAt: Datetime + """Only read the first `n` values of the set.""" + first: Int - """Unique status check identifier""" - id: UUID! + """Only read the last `n` values of the set.""" + last: Int - """When the check was requested""" - requestedAt: Datetime! + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int - """User who requested the check (NULL for system/scheduled)""" - requestedBy: UUID + """The method to use when ordering `FunctionInvocationAttempt`.""" + orderBy: [FunctionInvocationAttemptOrderBy!] = [PRIMARY_KEY_ASC] - """ - Reads a single `PlatformResource` that is related to this `PlatformResourceStatusCheck`. - """ - resource: PlatformResource + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: FunctionInvocationAttemptFilter + ): FunctionInvocationAttemptConnection - """Resource to check""" - resourceId: UUID! + """Reads and enables pagination through a set of `FunctionInvocation`.""" + functionInvocations( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """Diagnostic snapshot: k8s_status, conditions, pod_logs_tail, events""" - result: JSON + """Read all values in the set before (above) this cursor.""" + before: Cursor - """Check lifecycle: pending, running, completed, failed""" - status: String! -} + """Only read the first `n` values of the set.""" + first: Int -"""A connection to a list of `PlatformResourceStatusCheck` values.""" -type PlatformResourceStatusCheckConnection { - """ - A list of edges which contains the `PlatformResourceStatusCheck` and cursor to aid in pagination. - """ - edges: [PlatformResourceStatusCheckEdge]! + """Only read the last `n` values of the set.""" + last: Int - """A list of `PlatformResourceStatusCheck` objects.""" - nodes: [PlatformResourceStatusCheck]! + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int - """Information to aid in pagination.""" - pageInfo: PageInfo! + """The method to use when ordering `FunctionInvocation`.""" + orderBy: [FunctionInvocationOrderBy!] = [PRIMARY_KEY_ASC] - """ - The count of *all* `PlatformResourceStatusCheck` you could get from the connection. - """ - totalCount: Int! -} + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: FunctionInvocationFilter + ): FunctionInvocationConnection -"""A `PlatformResourceStatusCheck` edge in the connection.""" -type PlatformResourceStatusCheckEdge { - """A cursor for use in pagination.""" - cursor: Cursor + """Reads and enables pagination through a set of `GetAllTreeNodesRecord`.""" + getAllTreeNodes( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """The `PlatformResourceStatusCheck` at the end of the edge.""" - node: PlatformResourceStatusCheck -} + """Only read the first `n` values of the set.""" + first: Int + id: UUID -""" -A filter to be used against `PlatformResourceStatusCheck` object types. All fields are combined with a logical ‘and.’ -""" -input PlatformResourceStatusCheckFilter { - """Checks for all expressions in this list.""" - and: [PlatformResourceStatusCheckFilter!] + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + sId: UUID + ): GetAllTreeNodesConnection + getNodeAtPath(id: UUID, path: [String], sId: UUID): FunctionGraphObject - """Filter by the object’s `completedAt` field.""" - completedAt: DatetimeFilter + """Reads and enables pagination through a set of `ImageGrant`.""" + imageGrants( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """Filter by the object’s `id` field.""" - id: UUIDFilter + """Read all values in the set before (above) this cursor.""" + before: Cursor - """Negates the expression.""" - not: PlatformResourceStatusCheckFilter + """Only read the first `n` values of the set.""" + first: Int - """Checks for any expressions in this list.""" - or: [PlatformResourceStatusCheckFilter!] + """Only read the last `n` values of the set.""" + last: Int - """Filter by the object’s `requestedAt` field.""" - requestedAt: DatetimeFilter + """ + 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 `requestedBy` field.""" - requestedBy: UUIDFilter + """The method to use when ordering `ImageGrant`.""" + orderBy: [ImageGrantOrderBy!] = [PRIMARY_KEY_ASC] - """Filter by the object’s `resource` relation.""" - resource: PlatformResourceFilter + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: ImageGrantFilter + ): ImageGrantConnection - """Filter by the object’s `resourceId` field.""" - resourceId: UUIDFilter + """Reads and enables pagination through a set of `Image`.""" + images( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """Filter by the object’s `result` field.""" - result: JSONFilter + """Read all values in the set before (above) this cursor.""" + before: Cursor - """Filter by the object’s `status` field.""" - status: StringFilter -} + """Only read the first `n` values of the set.""" + first: Int -"""An input for mutations affecting `PlatformResourceStatusCheck`""" -input PlatformResourceStatusCheckInput { - """When the check completed (NULL while pending/running)""" - completedAt: Datetime + """Only read the last `n` values of the set.""" + last: Int - """Unique status check identifier""" - id: UUID + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int - """When the check was requested""" - requestedAt: Datetime + """The method to use when ordering `Image`.""" + orderBy: [ImageOrderBy!] = [PRIMARY_KEY_ASC] - """User who requested the check (NULL for system/scheduled)""" - requestedBy: UUID + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: ImageFilter + ): ImageConnection - """Resource to check""" - resourceId: UUID! + """Reads and enables pagination through a set of `InfraCommit`.""" + infraCommits( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """Diagnostic snapshot: k8s_status, conditions, pod_logs_tail, events""" - result: JSON + """Read all values in the set before (above) this cursor.""" + before: Cursor - """Check lifecycle: pending, running, completed, failed""" - status: String -} + """Only read the first `n` values of the set.""" + first: Int -"""Methods to use when ordering `PlatformResourceStatusCheck`.""" -enum PlatformResourceStatusCheckOrderBy { - COMPLETED_AT_ASC - COMPLETED_AT_DESC - ID_ASC - ID_DESC - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - REQUESTED_AT_ASC - REQUESTED_AT_DESC - REQUESTED_BY_ASC - REQUESTED_BY_DESC - RESOURCE_ID_ASC - RESOURCE_ID_DESC - RESULT_ASC - RESULT_DESC - STATUS_ASC - STATUS_DESC -} + """Only read the last `n` values of the set.""" + last: Int -""" -Represents an update to a `PlatformResourceStatusCheck`. Fields that are set will be updated. -""" -input PlatformResourceStatusCheckPatch { - """When the check completed (NULL while pending/running)""" - completedAt: Datetime + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int - """Unique status check identifier""" - id: UUID + """The method to use when ordering `InfraCommit`.""" + orderBy: [InfraCommitOrderBy!] = [PRIMARY_KEY_ASC] - """When the check was requested""" - requestedAt: Datetime + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: InfraCommitFilter + ): InfraCommitConnection - """User who requested the check (NULL for system/scheduled)""" - requestedBy: UUID + """ + Reads and enables pagination through a set of `InfraGetAllTreeNodesRecord`. + """ + infraGetAllTreeNodes( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """Resource to check""" - resourceId: UUID + """Only read the first `n` values of the set.""" + first: Int + id: UUID - """Diagnostic snapshot: k8s_status, conditions, pod_logs_tail, events""" - result: JSON + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + sId: UUID + ): InfraGetAllTreeNodesConnection + infraGetNodeAtPath(id: UUID, path: [String], sId: UUID): InfraObject - """Check lifecycle: pending, running, completed, failed""" - status: String -} + """Reads and enables pagination through a set of `InfraObject`.""" + infraObjects( + """Read all values in the set after (below) this cursor.""" + after: Cursor -""" -A filter to be used against many `PlatformResourceStatusCheck` object types. All fields are combined with a logical ‘and.’ -""" -input PlatformResourceToManyPlatformResourceStatusCheckFilter { - """Filters to entities where every related entity matches.""" - every: PlatformResourceStatusCheckFilter + """Read all values in the set before (above) this cursor.""" + before: Cursor - """Filters to entities where no related entity matches.""" - none: PlatformResourceStatusCheckFilter + """Only read the first `n` values of the set.""" + first: Int - """Filters to entities where at least one related entity matches.""" - some: PlatformResourceStatusCheckFilter -} + """Only read the last `n` values of the set.""" + last: Int -""" -Raw resource usage log — interval-accounting measurements from heartbeats (self), the reconciler (observer), and the namespace-grain collector (prometheus) -""" -type PlatformResourceUsageLog { - """CPU gauge in millicores at sample time (NULL when unknown)""" - cpuMillicores: BigInt + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int - """Unique sample identifier""" - id: UUID! + """The method to use when ordering `InfraObject`.""" + orderBy: [InfraObjectOrderBy!] = [PRIMARY_KEY_ASC] - """Seconds covered by this sample — runtime is SUM(interval_seconds)""" - intervalSeconds: Int! + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: InfraObjectFilter + ): InfraObjectConnection - """Memory gauge in bytes at sample time (NULL when unknown)""" - memoryBytes: BigInt + """Reads and enables pagination through a set of `InfraRef`.""" + infraRefs( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """ - Structured gauges: replicas, pod counts, phases, and other producer-specific metrics - """ - metrics: JSON! + """Read all values in the set before (above) this cursor.""" + before: Cursor - """Namespace the measured workload runs in""" - namespaceId: UUID! + """Only read the first `n` values of the set.""" + first: Int - """ - Resource this sample measures (NULL for namespace-grain catch-all rows) - """ - resourceId: UUID + """Only read the last `n` values of the set.""" + last: Int - """Sample timestamp (partition key) — end of the measured interval""" - sampledAt: Datetime! + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int - """ - Sample producer: self (workload heartbeat), observer (reconciler), or prometheus (namespace-grain usage collector) - """ - source: String! -} + """The method to use when ordering `InfraRef`.""" + orderBy: [InfraRefOrderBy!] = [PRIMARY_KEY_ASC] -"""A connection to a list of `PlatformResourceUsageLog` values.""" -type PlatformResourceUsageLogConnection { - """ - A list of edges which contains the `PlatformResourceUsageLog` and cursor to aid in pagination. - """ - edges: [PlatformResourceUsageLogEdge]! + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: InfraRefFilter + ): InfraRefConnection - """A list of `PlatformResourceUsageLog` objects.""" - nodes: [PlatformResourceUsageLog]! + """Reads and enables pagination through a set of `InfraStore`.""" + infraStores( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """Information to aid in pagination.""" - pageInfo: PageInfo! + """Read all values in the set before (above) this cursor.""" + before: Cursor - """ - The count of *all* `PlatformResourceUsageLog` you could get from the connection. - """ - totalCount: Int! -} + """Only read the first `n` values of the set.""" + first: Int -"""A `PlatformResourceUsageLog` edge in the connection.""" -type PlatformResourceUsageLogEdge { - """A cursor for use in pagination.""" - cursor: Cursor + """Only read the last `n` values of the set.""" + last: Int - """The `PlatformResourceUsageLog` at the end of the edge.""" - node: PlatformResourceUsageLog -} + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int -""" -A filter to be used against `PlatformResourceUsageLog` object types. All fields are combined with a logical ‘and.’ -""" -input PlatformResourceUsageLogFilter { - """Checks for all expressions in this list.""" - and: [PlatformResourceUsageLogFilter!] + """The method to use when ordering `InfraStore`.""" + orderBy: [InfraStoreOrderBy!] = [PRIMARY_KEY_ASC] - """Filter by the object’s `cpuMillicores` field.""" - cpuMillicores: BigIntFilter + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: InfraStoreFilter + ): InfraStoreConnection - """Filter by the object’s `id` field.""" - id: UUIDFilter + """Reads and enables pagination through a set of `IntegrationProvider`.""" + integrationProviders( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """Filter by the object’s `intervalSeconds` field.""" - intervalSeconds: IntFilter + """Read all values in the set before (above) this cursor.""" + before: Cursor - """Filter by the object’s `memoryBytes` field.""" - memoryBytes: BigIntFilter + """Only read the first `n` values of the set.""" + first: Int - """Filter by the object’s `metrics` field.""" - metrics: JSONFilter + """Only read the last `n` values of the set.""" + last: Int - """Filter by the object’s `namespaceId` field.""" - namespaceId: UUIDFilter + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int - """Negates the expression.""" - not: PlatformResourceUsageLogFilter + """The method to use when ordering `IntegrationProvider`.""" + orderBy: [IntegrationProviderOrderBy!] = [PRIMARY_KEY_ASC] - """Checks for any expressions in this list.""" - or: [PlatformResourceUsageLogFilter!] + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: IntegrationProviderFilter + ): IntegrationProviderConnection - """Filter by the object’s `resourceId` field.""" - resourceId: UUIDFilter + """Reads and enables pagination through a set of `NamespaceEvent`.""" + namespaceEvents( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """Filter by the object’s `sampledAt` field.""" - sampledAt: DatetimeFilter + """Read all values in the set before (above) this cursor.""" + before: Cursor - """Filter by the object’s `source` field.""" - source: StringFilter -} + """Only read the first `n` values of the set.""" + first: Int -"""An input for mutations affecting `PlatformResourceUsageLog`""" -input PlatformResourceUsageLogInput { - """CPU gauge in millicores at sample time (NULL when unknown)""" - cpuMillicores: BigInt + """Only read the last `n` values of the set.""" + last: Int - """Unique sample identifier""" - id: UUID + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int - """Seconds covered by this sample — runtime is SUM(interval_seconds)""" - intervalSeconds: Int! + """The method to use when ordering `NamespaceEvent`.""" + orderBy: [NamespaceEventOrderBy!] = [PRIMARY_KEY_ASC] - """Memory gauge in bytes at sample time (NULL when unknown)""" - memoryBytes: BigInt + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: NamespaceEventFilter + ): NamespaceEventConnection - """ - Structured gauges: replicas, pod counts, phases, and other producer-specific metrics - """ - metrics: JSON + """Reads and enables pagination through a set of `Namespace`.""" + namespaces( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """Namespace the measured workload runs in""" - namespaceId: UUID! + """Read all values in the set before (above) this cursor.""" + before: Cursor - """ - Resource this sample measures (NULL for namespace-grain catch-all rows) - """ - resourceId: UUID + """Only read the first `n` values of the set.""" + first: Int - """Sample timestamp (partition key) — end of the measured interval""" - sampledAt: Datetime + """Only read the last `n` values of the set.""" + last: Int - """ - Sample producer: self (workload heartbeat), observer (reconciler), or prometheus (namespace-grain usage collector) - """ - source: String! -} + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int -"""Methods to use when ordering `PlatformResourceUsageLog`.""" -enum PlatformResourceUsageLogOrderBy { - CPU_MILLICORES_ASC - CPU_MILLICORES_DESC - ID_ASC - ID_DESC - INTERVAL_SECONDS_ASC - INTERVAL_SECONDS_DESC - MEMORY_BYTES_ASC - MEMORY_BYTES_DESC - METRICS_ASC - METRICS_DESC - NAMESPACE_ID_ASC - NAMESPACE_ID_DESC - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - RESOURCE_ID_ASC - RESOURCE_ID_DESC - SAMPLED_AT_ASC - SAMPLED_AT_DESC - SOURCE_ASC - SOURCE_DESC -} + """The method to use when ordering `Namespace`.""" + orderBy: [NamespaceOrderBy!] = [PRIMARY_KEY_ASC] -""" -Represents an update to a `PlatformResourceUsageLog`. Fields that are set will be updated. -""" -input PlatformResourceUsageLogPatch { - """CPU gauge in millicores at sample time (NULL when unknown)""" - cpuMillicores: BigInt + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: NamespaceFilter + ): NamespaceConnection - """Unique sample identifier""" - id: UUID + """Reads and enables pagination through a set of `PlatformBuildStep`.""" + platformBuildSteps( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """Seconds covered by this sample — runtime is SUM(interval_seconds)""" - intervalSeconds: Int + """Read all values in the set before (above) this cursor.""" + before: Cursor - """Memory gauge in bytes at sample time (NULL when unknown)""" - memoryBytes: BigInt + """Only read the first `n` values of the set.""" + first: Int - """ - Structured gauges: replicas, pod counts, phases, and other producer-specific metrics - """ - metrics: JSON + """Only read the last `n` values of the set.""" + last: Int - """Namespace the measured workload runs in""" - namespaceId: UUID + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int - """ - Resource this sample measures (NULL for namespace-grain catch-all rows) - """ - resourceId: UUID + """The method to use when ordering `PlatformBuildStep`.""" + orderBy: [PlatformBuildStepOrderBy!] = [PRIMARY_KEY_ASC] - """Sample timestamp (partition key) — end of the measured interval""" - sampledAt: Datetime + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformBuildStepFilter + ): PlatformBuildStepConnection """ - Sample producer: self (workload heartbeat), observer (reconciler), or prometheus (namespace-grain usage collector) + Reads and enables pagination through a set of `PlatformBuilderBinding`. """ - source: String -} + platformBuilderBindings( + """Read all values in the set after (below) this cursor.""" + after: Cursor -""" -Resource usage summaries — runtime seconds, GB-seconds, and max gauges per (resource, namespace, day); resource_id-NULL rows are namespace-grain totals -""" -type PlatformResourceUsageSummary { - """Day this summary covers (partition key)""" - date: Date! + """Read all values in the set before (above) this cursor.""" + before: Cursor - """ - Memory usage for the day — SUM(memory_bytes * interval_seconds) normalized to GB-seconds - """ - gbSeconds: BigFloat! + """Only read the first `n` values of the set.""" + first: Int - """Unique usage summary identifier""" - id: UUID! + """Only read the last `n` values of the set.""" + last: Int - """Maximum CPU gauge observed during the day (NULL when never reported)""" - maxCpuMillicores: BigInt + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int - """ - Maximum memory gauge observed during the day (NULL when never reported) - """ - maxMemoryBytes: BigInt + """The method to use when ordering `PlatformBuilderBinding`.""" + orderBy: [PlatformBuilderBindingOrderBy!] = [PRIMARY_KEY_ASC] - """Namespace the resource runs in""" - namespaceId: UUID! + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformBuilderBindingFilter + ): PlatformBuilderBindingConnection - """ - Resource this summary covers (NULL for namespace-grain catch-all summaries) - """ - resourceId: UUID + """Reads and enables pagination through a set of `PlatformBuild`.""" + platformBuilds( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """Total measured runtime for the day — SUM(interval_seconds)""" - runtimeSeconds: BigInt! + """Read all values in the set before (above) this cursor.""" + before: Cursor - """Number of raw samples aggregated into this summary""" - sampleCount: Int! -} + """Only read the first `n` values of the set.""" + first: Int -"""A connection to a list of `PlatformResourceUsageSummary` values.""" -type PlatformResourceUsageSummaryConnection { - """ - A list of edges which contains the `PlatformResourceUsageSummary` and cursor to aid in pagination. - """ - edges: [PlatformResourceUsageSummaryEdge]! + """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 - """A list of `PlatformResourceUsageSummary` objects.""" - nodes: [PlatformResourceUsageSummary]! + """The method to use when ordering `PlatformBuild`.""" + orderBy: [PlatformBuildOrderBy!] = [PRIMARY_KEY_ASC] - """Information to aid in pagination.""" - pageInfo: PageInfo! + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformBuildFilter + ): PlatformBuildConnection """ - The count of *all* `PlatformResourceUsageSummary` you could get from the connection. + Reads and enables pagination through a set of `PlatformFunctionApiBinding`. """ - totalCount: Int! -} - -"""A `PlatformResourceUsageSummary` edge in the connection.""" -type PlatformResourceUsageSummaryEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `PlatformResourceUsageSummary` at the end of the edge.""" - node: PlatformResourceUsageSummary -} + platformFunctionApiBindings( + """Read all values in the set after (below) this cursor.""" + after: Cursor -""" -A filter to be used against `PlatformResourceUsageSummary` object types. All fields are combined with a logical ‘and.’ -""" -input PlatformResourceUsageSummaryFilter { - """Checks for all expressions in this list.""" - and: [PlatformResourceUsageSummaryFilter!] + """Read all values in the set before (above) this cursor.""" + before: Cursor - """Filter by the object’s `date` field.""" - date: DateFilter + """Only read the first `n` values of the set.""" + first: Int - """Filter by the object’s `gbSeconds` field.""" - gbSeconds: BigFloatFilter + """Only read the last `n` values of the set.""" + last: Int - """Filter by the object’s `id` field.""" - id: 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 `maxCpuMillicores` field.""" - maxCpuMillicores: BigIntFilter + """The method to use when ordering `PlatformFunctionApiBinding`.""" + orderBy: [PlatformFunctionApiBindingOrderBy!] = [PRIMARY_KEY_ASC] - """Filter by the object’s `maxMemoryBytes` field.""" - maxMemoryBytes: BigIntFilter + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformFunctionApiBindingFilter + ): PlatformFunctionApiBindingConnection - """Filter by the object’s `namespaceId` field.""" - namespaceId: UUIDFilter + """ + Reads and enables pagination through a set of `PlatformFunctionCapabilityBinding`. + """ + platformFunctionCapabilityBindings( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """Negates the expression.""" - not: PlatformResourceUsageSummaryFilter + """Read all values in the set before (above) this cursor.""" + before: Cursor - """Checks for any expressions in this list.""" - or: [PlatformResourceUsageSummaryFilter!] + """Only read the first `n` values of the set.""" + first: Int - """Filter by the object’s `resourceId` field.""" - resourceId: UUIDFilter + """Only read the last `n` values of the set.""" + last: Int - """Filter by the object’s `runtimeSeconds` field.""" - runtimeSeconds: BigIntFilter + """ + 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 `sampleCount` field.""" - sampleCount: IntFilter -} + """The method to use when ordering `PlatformFunctionCapabilityBinding`.""" + orderBy: [PlatformFunctionCapabilityBindingOrderBy!] = [PRIMARY_KEY_ASC] -"""An input for mutations affecting `PlatformResourceUsageSummary`""" -input PlatformResourceUsageSummaryInput { - """Day this summary covers (partition key)""" - date: Date! + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformFunctionCapabilityBindingFilter + ): PlatformFunctionCapabilityBindingConnection """ - Memory usage for the day — SUM(memory_bytes * interval_seconds) normalized to GB-seconds + Reads and enables pagination through a set of `PlatformFunctionDefinition`. """ - gbSeconds: BigFloat + platformFunctionDefinitions( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """Unique usage summary identifier""" - id: UUID + """Read all values in the set before (above) this cursor.""" + before: Cursor - """Maximum CPU gauge observed during the day (NULL when never reported)""" - maxCpuMillicores: BigInt + """Only read the first `n` values of the set.""" + first: Int - """ - Maximum memory gauge observed during the day (NULL when never reported) - """ - maxMemoryBytes: BigInt + """Only read the last `n` values of the set.""" + last: Int - """Namespace the resource runs in""" - namespaceId: UUID! + """ + 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 `PlatformFunctionDefinition`.""" + orderBy: [PlatformFunctionDefinitionOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformFunctionDefinitionFilter + ): PlatformFunctionDefinitionConnection """ - Resource this summary covers (NULL for namespace-grain catch-all summaries) + Reads and enables pagination through a set of `PlatformFunctionDeploymentEvent`. """ - resourceId: UUID + platformFunctionDeploymentEvents( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """Total measured runtime for the day — SUM(interval_seconds)""" - runtimeSeconds: BigInt + """Read all values in the set before (above) this cursor.""" + before: Cursor - """Number of raw samples aggregated into this summary""" - sampleCount: Int -} + """Only read the first `n` values of the set.""" + first: Int -"""Methods to use when ordering `PlatformResourceUsageSummary`.""" -enum PlatformResourceUsageSummaryOrderBy { - DATE_ASC - DATE_DESC - GB_SECONDS_ASC - GB_SECONDS_DESC - ID_ASC - ID_DESC - MAX_CPU_MILLICORES_ASC - MAX_CPU_MILLICORES_DESC - MAX_MEMORY_BYTES_ASC - MAX_MEMORY_BYTES_DESC - NAMESPACE_ID_ASC - NAMESPACE_ID_DESC - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - RESOURCE_ID_ASC - RESOURCE_ID_DESC - RUNTIME_SECONDS_ASC - RUNTIME_SECONDS_DESC - SAMPLE_COUNT_ASC - SAMPLE_COUNT_DESC -} + """Only read the last `n` values of the set.""" + last: Int -""" -Represents an update to a `PlatformResourceUsageSummary`. Fields that are set will be updated. -""" -input PlatformResourceUsageSummaryPatch { - """Day this summary covers (partition key)""" - date: Date + """ + 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 `PlatformFunctionDeploymentEvent`.""" + orderBy: [PlatformFunctionDeploymentEventOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformFunctionDeploymentEventFilter + ): PlatformFunctionDeploymentEventConnection """ - Memory usage for the day — SUM(memory_bytes * interval_seconds) normalized to GB-seconds + Reads and enables pagination through a set of `PlatformFunctionDeployment`. """ - gbSeconds: BigFloat + platformFunctionDeployments( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """Unique usage summary identifier""" - id: UUID + """Read all values in the set before (above) this cursor.""" + before: Cursor - """Maximum CPU gauge observed during the day (NULL when never reported)""" - maxCpuMillicores: BigInt + """Only read the first `n` values of the set.""" + first: Int - """ - Maximum memory gauge observed during the day (NULL when never reported) - """ - maxMemoryBytes: BigInt + """Only read the last `n` values of the set.""" + last: Int - """Namespace the resource runs in""" - namespaceId: UUID + """ + 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 `PlatformFunctionDeployment`.""" + orderBy: [PlatformFunctionDeploymentOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformFunctionDeploymentFilter + ): PlatformFunctionDeploymentConnection """ - Resource this summary covers (NULL for namespace-grain catch-all summaries) + Reads and enables pagination through a set of `PlatformFunctionExecutionLog`. """ - resourceId: UUID + platformFunctionExecutionLogs( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """Total measured runtime for the day — SUM(interval_seconds)""" - runtimeSeconds: BigInt + """Read all values in the set before (above) this cursor.""" + before: Cursor - """Number of raw samples aggregated into this summary""" - sampleCount: Int -} + """Only read the first `n` values of the set.""" + first: Int -type PlatformResourceUtilization { - avgMemoryBytes: BigInt - cpuLimitMillicores: BigInt - cpuPeakUtilization: BigFloat - cpuRequestHeadroomMillicores: BigInt - cpuRequestMillicores: BigInt - date: Date - gbSeconds: BigFloat - kind: String - maxCpuMillicores: BigInt - maxMemoryBytes: BigInt - memoryLimitBytes: BigInt - memoryPeakUtilization: BigFloat - memoryRequestBytes: BigInt - memoryRequestHeadroomBytes: BigInt - namespaceId: UUID - replicas: Int - resourceId: UUID - runtimeSeconds: BigInt - sampleCount: Int -} + """Only read the last `n` values of the set.""" + last: Int -"""A connection to a list of `PlatformResourceUtilization` values.""" -type PlatformResourceUtilizationConnection { - """ - A list of edges which contains the `PlatformResourceUtilization` and cursor to aid in pagination. - """ - edges: [PlatformResourceUtilizationEdge]! + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int - """A list of `PlatformResourceUtilization` objects.""" - nodes: [PlatformResourceUtilization]! + """The method to use when ordering `PlatformFunctionExecutionLog`.""" + orderBy: [PlatformFunctionExecutionLogOrderBy!] = [PRIMARY_KEY_ASC] - """Information to aid in pagination.""" - pageInfo: PageInfo! + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformFunctionExecutionLogFilter + ): PlatformFunctionExecutionLogConnection """ - The count of *all* `PlatformResourceUtilization` you could get from the connection. + Reads and enables pagination through a set of `PlatformFunctionInvocationAttempt`. """ - totalCount: Int! -} + platformFunctionInvocationAttempts( + """Read all values in the set after (below) this cursor.""" + after: Cursor -"""A `PlatformResourceUtilization` edge in the connection.""" -type PlatformResourceUtilizationEdge { - """A cursor for use in pagination.""" - cursor: Cursor + """Read all values in the set before (above) this cursor.""" + before: Cursor - """The `PlatformResourceUtilization` at the end of the edge.""" - node: PlatformResourceUtilization -} + """Only read the first `n` values of the set.""" + first: Int -""" -A filter to be used against `PlatformResourceUtilization` object types. All fields are combined with a logical ‘and.’ -""" -input PlatformResourceUtilizationFilter { - """Checks for all expressions in this list.""" - and: [PlatformResourceUtilizationFilter!] + """Only read the last `n` values of the set.""" + last: Int - """Filter by the object’s `avgMemoryBytes` field.""" - avgMemoryBytes: BigIntFilter + """ + 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 `cpuLimitMillicores` field.""" - cpuLimitMillicores: BigIntFilter + """The method to use when ordering `PlatformFunctionInvocationAttempt`.""" + orderBy: [PlatformFunctionInvocationAttemptOrderBy!] = [PRIMARY_KEY_ASC] - """Filter by the object’s `cpuPeakUtilization` field.""" - cpuPeakUtilization: BigFloatFilter + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformFunctionInvocationAttemptFilter + ): PlatformFunctionInvocationAttemptConnection - """Filter by the object’s `cpuRequestHeadroomMillicores` field.""" - cpuRequestHeadroomMillicores: BigIntFilter + """ + Reads and enables pagination through a set of `PlatformFunctionInvocation`. + """ + platformFunctionInvocations( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """Filter by the object’s `cpuRequestMillicores` field.""" - cpuRequestMillicores: BigIntFilter + """Read all values in the set before (above) this cursor.""" + before: Cursor - """Filter by the object’s `date` field.""" - date: DateFilter + """Only read the first `n` values of the set.""" + first: Int - """Filter by the object’s `gbSeconds` field.""" - gbSeconds: BigFloatFilter + """Only read the last `n` values of the set.""" + last: Int - """Filter by the object’s `kind` field.""" - kind: StringFilter + """ + 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 `maxCpuMillicores` field.""" - maxCpuMillicores: BigIntFilter + """The method to use when ordering `PlatformFunctionInvocation`.""" + orderBy: [PlatformFunctionInvocationOrderBy!] = [PRIMARY_KEY_ASC] - """Filter by the object’s `maxMemoryBytes` field.""" - maxMemoryBytes: BigIntFilter + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformFunctionInvocationFilter + ): PlatformFunctionInvocationConnection - """Filter by the object’s `memoryLimitBytes` field.""" - memoryLimitBytes: BigIntFilter + """Reads and enables pagination through a set of `PlatformImageGrant`.""" + platformImageGrants( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """Filter by the object’s `memoryPeakUtilization` field.""" - memoryPeakUtilization: BigFloatFilter + """Read all values in the set before (above) this cursor.""" + before: Cursor - """Filter by the object’s `memoryRequestBytes` field.""" - memoryRequestBytes: BigIntFilter + """Only read the first `n` values of the set.""" + first: Int - """Filter by the object’s `memoryRequestHeadroomBytes` field.""" - memoryRequestHeadroomBytes: BigIntFilter + """Only read the last `n` values of the set.""" + last: Int - """Filter by the object’s `namespaceId` field.""" - namespaceId: UUIDFilter + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int - """Negates the expression.""" - not: PlatformResourceUtilizationFilter + """The method to use when ordering `PlatformImageGrant`.""" + orderBy: [PlatformImageGrantOrderBy!] = [PRIMARY_KEY_ASC] - """Checks for any expressions in this list.""" - or: [PlatformResourceUtilizationFilter!] + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformImageGrantFilter + ): PlatformImageGrantConnection - """Filter by the object’s `replicas` field.""" - replicas: IntFilter + """Reads and enables pagination through a set of `PlatformImage`.""" + platformImages( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """Filter by the object’s `resourceId` field.""" - resourceId: UUIDFilter + """Read all values in the set before (above) this cursor.""" + before: Cursor - """Filter by the object’s `runtimeSeconds` field.""" - runtimeSeconds: BigIntFilter + """Only read the first `n` values of the set.""" + first: Int - """Filter by the object’s `sampleCount` field.""" - sampleCount: IntFilter -} + """Only read the last `n` values of the set.""" + last: Int -"""Methods to use when ordering `PlatformResourceUtilization`.""" -enum PlatformResourceUtilizationOrderBy { - AVG_MEMORY_BYTES_ASC - AVG_MEMORY_BYTES_DESC - CPU_LIMIT_MILLICORES_ASC - CPU_LIMIT_MILLICORES_DESC - CPU_PEAK_UTILIZATION_ASC - CPU_PEAK_UTILIZATION_DESC - CPU_REQUEST_HEADROOM_MILLICORES_ASC - CPU_REQUEST_HEADROOM_MILLICORES_DESC - CPU_REQUEST_MILLICORES_ASC - CPU_REQUEST_MILLICORES_DESC - DATE_ASC - DATE_DESC - GB_SECONDS_ASC - GB_SECONDS_DESC - KIND_ASC - KIND_DESC - MAX_CPU_MILLICORES_ASC - MAX_CPU_MILLICORES_DESC - MAX_MEMORY_BYTES_ASC - MAX_MEMORY_BYTES_DESC - MEMORY_LIMIT_BYTES_ASC - MEMORY_LIMIT_BYTES_DESC - MEMORY_PEAK_UTILIZATION_ASC - MEMORY_PEAK_UTILIZATION_DESC - MEMORY_REQUEST_BYTES_ASC - MEMORY_REQUEST_BYTES_DESC - MEMORY_REQUEST_HEADROOM_BYTES_ASC - MEMORY_REQUEST_HEADROOM_BYTES_DESC - NAMESPACE_ID_ASC - NAMESPACE_ID_DESC - NATURAL - REPLICAS_ASC - REPLICAS_DESC - RESOURCE_ID_ASC - RESOURCE_ID_DESC - RUNTIME_SECONDS_ASC - RUNTIME_SECONDS_DESC - SAMPLE_COUNT_ASC - SAMPLE_COUNT_DESC -} + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int -type PlatformResourcesHealth { - annotations: JSON - cpuLimitMillicores: BigInt - cpuRequestMillicores: BigInt - createdAt: Datetime - createdBy: UUID - errorCount: Int - id: UUID - installationId: UUID - integrations: [String] - kind: String - labels: JSON - lastError: String - lastHeartbeatAt: Datetime - memoryLimitBytes: BigInt - memoryRequestBytes: BigInt - name: String - namespaceId: UUID - realm: String - replicas: Int - requiredConfigs: [ResourceRequirement] - requiredSecrets: [ResourceRequirement] - resourceDefinitionId: UUID - slug: String - spec: JSON - status: String - statusDetail: String - statusObserved: JSON - storageClass: String - storageSizeBytes: BigInt - updatedAt: Datetime - updatedBy: UUID -} + """The method to use when ordering `PlatformImage`.""" + orderBy: [PlatformImageOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformImageFilter + ): PlatformImageConnection + + """Reads and enables pagination through a set of `PlatformInfraCommit`.""" + platformInfraCommits( + """Read all values in the set after (below) this cursor.""" + after: Cursor -"""A connection to a list of `PlatformResourcesHealth` values.""" -type PlatformResourcesHealthConnection { - """ - A list of edges which contains the `PlatformResourcesHealth` and cursor to aid in pagination. - """ - edges: [PlatformResourcesHealthEdge]! + """Read all values in the set before (above) this cursor.""" + before: Cursor - """A list of `PlatformResourcesHealth` objects.""" - nodes: [PlatformResourcesHealth]! + """Only read the first `n` values of the set.""" + first: Int - """Information to aid in pagination.""" - pageInfo: PageInfo! + """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 `PlatformInfraCommit`.""" + orderBy: [PlatformInfraCommitOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformInfraCommitFilter + ): PlatformInfraCommitConnection """ - The count of *all* `PlatformResourcesHealth` you could get from the connection. + Reads and enables pagination through a set of `PlatformInfraGetAllTreeNodesRecord`. """ - totalCount: Int! -} + platformInfraGetAllTreeNodes( + """Read all values in the set after (below) this cursor.""" + after: Cursor -"""A `PlatformResourcesHealth` edge in the connection.""" -type PlatformResourcesHealthEdge { - """A cursor for use in pagination.""" - cursor: Cursor + """Only read the first `n` values of the set.""" + first: Int + id: UUID - """The `PlatformResourcesHealth` at the end of the edge.""" - node: PlatformResourcesHealth -} + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + sId: UUID + ): PlatformInfraGetAllTreeNodesConnection + platformInfraGetNodeAtPath(id: UUID, path: [String], sId: UUID): PlatformInfraObject -""" -A filter to be used against `PlatformResourcesHealth` object types. All fields are combined with a logical ‘and.’ -""" -input PlatformResourcesHealthFilter { - """Checks for all expressions in this list.""" - and: [PlatformResourcesHealthFilter!] + """Reads and enables pagination through a set of `PlatformInfraObject`.""" + platformInfraObjects( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """Filter by the object’s `annotations` field.""" - annotations: JSONFilter + """Read all values in the set before (above) this cursor.""" + before: Cursor - """Filter by the object’s `cpuLimitMillicores` field.""" - cpuLimitMillicores: BigIntFilter + """Only read the first `n` values of the set.""" + first: Int - """Filter by the object’s `cpuRequestMillicores` field.""" - cpuRequestMillicores: BigIntFilter + """Only read the last `n` values of the set.""" + last: Int - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter + """ + 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 `createdBy` field.""" - createdBy: UUIDFilter + """The method to use when ordering `PlatformInfraObject`.""" + orderBy: [PlatformInfraObjectOrderBy!] = [PRIMARY_KEY_ASC] - """Filter by the object’s `errorCount` field.""" - errorCount: IntFilter + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformInfraObjectFilter + ): PlatformInfraObjectConnection - """Filter by the object’s `id` field.""" - id: UUIDFilter + """Reads and enables pagination through a set of `PlatformInfraRef`.""" + platformInfraRefs( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """Filter by the object’s `installationId` field.""" - installationId: UUIDFilter + """Read all values in the set before (above) this cursor.""" + before: Cursor - """Filter by the object’s `integrations` field.""" - integrations: StringListFilter + """Only read the first `n` values of the set.""" + first: Int - """Filter by the object’s `kind` field.""" - kind: StringFilter + """Only read the last `n` values of the set.""" + last: Int - """Filter by the object’s `labels` field.""" - labels: JSONFilter + """ + 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 `lastError` field.""" - lastError: StringFilter + """The method to use when ordering `PlatformInfraRef`.""" + orderBy: [PlatformInfraRefOrderBy!] = [PRIMARY_KEY_ASC] - """Filter by the object’s `lastHeartbeatAt` field.""" - lastHeartbeatAt: DatetimeFilter + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformInfraRefFilter + ): PlatformInfraRefConnection - """Filter by the object’s `memoryLimitBytes` field.""" - memoryLimitBytes: BigIntFilter + """Reads and enables pagination through a set of `PlatformInfraStore`.""" + platformInfraStores( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """Filter by the object’s `memoryRequestBytes` field.""" - memoryRequestBytes: BigIntFilter + """Read all values in the set before (above) this cursor.""" + before: Cursor - """Filter by the object’s `name` field.""" - name: StringFilter + """Only read the first `n` values of the set.""" + first: Int - """Filter by the object’s `namespaceId` field.""" - namespaceId: UUIDFilter + """Only read the last `n` values of the set.""" + last: Int - """Negates the expression.""" - not: PlatformResourcesHealthFilter + """ + 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: [PlatformResourcesHealthFilter!] + """The method to use when ordering `PlatformInfraStore`.""" + orderBy: [PlatformInfraStoreOrderBy!] = [PRIMARY_KEY_ASC] - """Filter by the object’s `realm` field.""" - realm: StringFilter + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformInfraStoreFilter + ): PlatformInfraStoreConnection - """Filter by the object’s `replicas` field.""" - replicas: IntFilter + """ + Reads and enables pagination through a set of `PlatformK8sResourceKind`. + """ + platformK8sResourceKinds( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """Filter by the object’s `resourceDefinitionId` field.""" - resourceDefinitionId: UUIDFilter + """Read all values in the set before (above) this cursor.""" + before: Cursor - """Filter by the object’s `slug` field.""" - slug: StringFilter + """Only read the first `n` values of the set.""" + first: Int - """Filter by the object’s `spec` field.""" - spec: JSONFilter + """Only read the last `n` values of the set.""" + last: Int - """Filter by the object’s `status` field.""" - status: StringFilter + """ + 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 `statusDetail` field.""" - statusDetail: StringFilter + """The method to use when ordering `PlatformK8sResourceKind`.""" + orderBy: [PlatformK8sResourceKindOrderBy!] = [PRIMARY_KEY_ASC] - """Filter by the object’s `statusObserved` field.""" - statusObserved: JSONFilter + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformK8sResourceKindFilter + ): PlatformK8sResourceKindConnection - """Filter by the object’s `storageClass` field.""" - storageClass: StringFilter + """Reads and enables pagination through a set of `PlatformK8sSpecRule`.""" + platformK8sSpecRules( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """Filter by the object’s `storageSizeBytes` field.""" - storageSizeBytes: BigIntFilter + """Read all values in the set before (above) this cursor.""" + before: Cursor - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter + """Only read the first `n` values of the set.""" + first: Int - """Filter by the object’s `updatedBy` field.""" - updatedBy: UUIDFilter -} + """Only read the last `n` values of the set.""" + last: Int -"""Methods to use when ordering `PlatformResourcesHealth`.""" -enum PlatformResourcesHealthOrderBy { - ANNOTATIONS_ASC - ANNOTATIONS_DESC - CPU_LIMIT_MILLICORES_ASC - CPU_LIMIT_MILLICORES_DESC - CPU_REQUEST_MILLICORES_ASC - CPU_REQUEST_MILLICORES_DESC - CREATED_AT_ASC - CREATED_AT_DESC - CREATED_BY_ASC - CREATED_BY_DESC - ERROR_COUNT_ASC - ERROR_COUNT_DESC - ID_ASC - ID_DESC - INSTALLATION_ID_ASC - INSTALLATION_ID_DESC - INTEGRATIONS_ASC - INTEGRATIONS_DESC - KIND_ASC - KIND_DESC - LABELS_ASC - LABELS_DESC - LAST_ERROR_ASC - LAST_ERROR_DESC - LAST_HEARTBEAT_AT_ASC - LAST_HEARTBEAT_AT_DESC - MEMORY_LIMIT_BYTES_ASC - MEMORY_LIMIT_BYTES_DESC - MEMORY_REQUEST_BYTES_ASC - MEMORY_REQUEST_BYTES_DESC - NAMESPACE_ID_ASC - NAMESPACE_ID_DESC - NAME_ASC - NAME_DESC - NATURAL - REALM_ASC - REALM_DESC - REPLICAS_ASC - REPLICAS_DESC - REQUIRED_CONFIGS_ASC - REQUIRED_CONFIGS_DESC - REQUIRED_SECRETS_ASC - REQUIRED_SECRETS_DESC - RESOURCE_DEFINITION_ID_ASC - RESOURCE_DEFINITION_ID_DESC - SLUG_ASC - SLUG_DESC - SPEC_ASC - SPEC_DESC - STATUS_ASC - STATUS_DESC - STATUS_DETAIL_ASC - STATUS_DETAIL_DESC - STATUS_OBSERVED_ASC - STATUS_OBSERVED_DESC - STORAGE_CLASS_ASC - STORAGE_CLASS_DESC - STORAGE_SIZE_BYTES_ASC - STORAGE_SIZE_BYTES_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC - UPDATED_BY_ASC - UPDATED_BY_DESC -} + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int -type PlatformResourcesRequirementsState { - configHash: String - configObjectName: String - requirementsHash: String - resourceId: UUID - secretsHash: String - secretsObjectName: String - slug: String -} + """The method to use when ordering `PlatformK8sSpecRule`.""" + orderBy: [PlatformK8sSpecRuleOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformK8sSpecRuleFilter + ): PlatformK8sSpecRuleConnection -"""A connection to a list of `PlatformResourcesRequirementsState` values.""" -type PlatformResourcesRequirementsStateConnection { """ - A list of edges which contains the `PlatformResourcesRequirementsState` and cursor to aid in pagination. + Reads and enables pagination through a set of `PlatformNamespaceEvent`. """ - edges: [PlatformResourcesRequirementsStateEdge]! + platformNamespaceEvents( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """A list of `PlatformResourcesRequirementsState` objects.""" - nodes: [PlatformResourcesRequirementsState]! + """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* `PlatformResourcesRequirementsState` you could get from the connection. - """ - totalCount: Int! -} + """Only read the last `n` values of the set.""" + last: Int -"""A `PlatformResourcesRequirementsState` edge in the connection.""" -type PlatformResourcesRequirementsStateEdge { - """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 `PlatformResourcesRequirementsState` at the end of the edge.""" - node: PlatformResourcesRequirementsState -} + """The method to use when ordering `PlatformNamespaceEvent`.""" + orderBy: [PlatformNamespaceEventOrderBy!] = [PRIMARY_KEY_ASC] -""" -A filter to be used against `PlatformResourcesRequirementsState` object types. All fields are combined with a logical ‘and.’ -""" -input PlatformResourcesRequirementsStateFilter { - """Checks for all expressions in this list.""" - and: [PlatformResourcesRequirementsStateFilter!] + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformNamespaceEventFilter + ): PlatformNamespaceEventConnection - """Filter by the object’s `configHash` field.""" - configHash: StringFilter + """Reads and enables pagination through a set of `PlatformNamespace`.""" + platformNamespaces( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """Filter by the object’s `configObjectName` field.""" - configObjectName: StringFilter + """Read all values in the set before (above) this cursor.""" + before: Cursor - """Negates the expression.""" - not: PlatformResourcesRequirementsStateFilter + """Only read the first `n` values of the set.""" + first: Int - """Checks for any expressions in this list.""" - or: [PlatformResourcesRequirementsStateFilter!] + """Only read the last `n` values of the set.""" + last: Int - """Filter by the object’s `requirementsHash` field.""" - requirementsHash: StringFilter + """ + 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 `resourceId` field.""" - resourceId: UUIDFilter + """The method to use when ordering `PlatformNamespace`.""" + orderBy: [PlatformNamespaceOrderBy!] = [PRIMARY_KEY_ASC] - """Filter by the object’s `secretsHash` field.""" - secretsHash: StringFilter + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformNamespaceFilter + ): PlatformNamespaceConnection - """Filter by the object’s `secretsObjectName` field.""" - secretsObjectName: StringFilter + """ + Reads and enables pagination through a set of `PlatformProposalComment`. + """ + platformProposalComments( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """Filter by the object’s `slug` field.""" - slug: StringFilter -} + """Read all values in the set before (above) this cursor.""" + before: Cursor -"""Methods to use when ordering `PlatformResourcesRequirementsState`.""" -enum PlatformResourcesRequirementsStateOrderBy { - CONFIG_HASH_ASC - CONFIG_HASH_DESC - CONFIG_OBJECT_NAME_ASC - CONFIG_OBJECT_NAME_DESC - NATURAL - REQUIREMENTS_HASH_ASC - REQUIREMENTS_HASH_DESC - RESOURCE_ID_ASC - RESOURCE_ID_DESC - SECRETS_HASH_ASC - SECRETS_HASH_DESC - SECRETS_OBJECT_NAME_ASC - SECRETS_OBJECT_NAME_DESC - SLUG_ASC - SLUG_DESC -} + """Only read the first `n` values of the set.""" + first: Int -type PlatformResourcesResolvedRequirement { - atomId: UUID - configObjectName: String - name: String - namespaceId: UUID - present: Boolean - realm: String - required: Boolean - requirementKind: String - resourceId: UUID - secretsObjectName: String - slug: String -} + """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 `PlatformProposalComment`.""" + orderBy: [PlatformProposalCommentOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformProposalCommentFilter + ): PlatformProposalCommentConnection -""" -A connection to a list of `PlatformResourcesResolvedRequirement` values. -""" -type PlatformResourcesResolvedRequirementConnection { """ - A list of edges which contains the `PlatformResourcesResolvedRequirement` and cursor to aid in pagination. + Reads and enables pagination through a set of `PlatformProposalFileView`. """ - edges: [PlatformResourcesResolvedRequirementEdge]! + platformProposalFileViews( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """A list of `PlatformResourcesResolvedRequirement` objects.""" - nodes: [PlatformResourcesResolvedRequirement]! + """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 + + """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 `PlatformProposalFileView`.""" + orderBy: [PlatformProposalFileViewOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformProposalFileViewFilter + ): PlatformProposalFileViewConnection """ - The count of *all* `PlatformResourcesResolvedRequirement` you could get from the connection. + Reads and enables pagination through a set of `PlatformProposalReaction`. """ - totalCount: Int! -} + platformProposalReactions( + """Read all values in the set after (below) this cursor.""" + after: Cursor -"""A `PlatformResourcesResolvedRequirement` edge in the connection.""" -type PlatformResourcesResolvedRequirementEdge { - """A cursor for use in pagination.""" - cursor: Cursor + """Read all values in the set before (above) this cursor.""" + before: Cursor - """The `PlatformResourcesResolvedRequirement` at the end of the edge.""" - node: PlatformResourcesResolvedRequirement -} + """Only read the first `n` values of the set.""" + first: Int -""" -A filter to be used against `PlatformResourcesResolvedRequirement` object types. All fields are combined with a logical ‘and.’ -""" -input PlatformResourcesResolvedRequirementFilter { - """Checks for all expressions in this list.""" - and: [PlatformResourcesResolvedRequirementFilter!] + """Only read the last `n` values of the set.""" + last: Int - """Filter by the object’s `atomId` field.""" - atomId: 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 `configObjectName` field.""" - configObjectName: StringFilter + """The method to use when ordering `PlatformProposalReaction`.""" + orderBy: [PlatformProposalReactionOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformProposalReactionFilter + ): PlatformProposalReactionConnection + + """ + Reads and enables pagination through a set of `PlatformProposalReview`. + """ + platformProposalReviews( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """Filter by the object’s `name` field.""" - name: StringFilter + """Read all values in the set before (above) this cursor.""" + before: Cursor - """Filter by the object’s `namespaceId` field.""" - namespaceId: UUIDFilter + """Only read the first `n` values of the set.""" + first: Int - """Negates the expression.""" - not: PlatformResourcesResolvedRequirementFilter + """Only read the last `n` values of the set.""" + last: Int - """Checks for any expressions in this list.""" - or: [PlatformResourcesResolvedRequirementFilter!] + """ + 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 `present` field.""" - present: BooleanFilter + """The method to use when ordering `PlatformProposalReview`.""" + orderBy: [PlatformProposalReviewOrderBy!] = [PRIMARY_KEY_ASC] - """Filter by the object’s `realm` field.""" - realm: StringFilter + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformProposalReviewFilter + ): PlatformProposalReviewConnection - """Filter by the object’s `required` field.""" - required: BooleanFilter + """Reads and enables pagination through a set of `PlatformProposal`.""" + platformProposals( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """Filter by the object’s `requirementKind` field.""" - requirementKind: StringFilter + """Read all values in the set before (above) this cursor.""" + before: Cursor - """Filter by the object’s `resourceId` field.""" - resourceId: UUIDFilter + """Only read the first `n` values of the set.""" + first: Int - """Filter by the object’s `secretsObjectName` field.""" - secretsObjectName: StringFilter + """Only read the last `n` values of the set.""" + last: Int - """Filter by the object’s `slug` field.""" - slug: StringFilter -} + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int -"""Methods to use when ordering `PlatformResourcesResolvedRequirement`.""" -enum PlatformResourcesResolvedRequirementOrderBy { - ATOM_ID_ASC - ATOM_ID_DESC - CONFIG_OBJECT_NAME_ASC - CONFIG_OBJECT_NAME_DESC - NAMESPACE_ID_ASC - NAMESPACE_ID_DESC - NAME_ASC - NAME_DESC - NATURAL - PRESENT_ASC - PRESENT_DESC - REALM_ASC - REALM_DESC - REQUIRED_ASC - REQUIRED_DESC - REQUIREMENT_KIND_ASC - REQUIREMENT_KIND_DESC - RESOURCE_ID_ASC - RESOURCE_ID_DESC - SECRETS_OBJECT_NAME_ASC - SECRETS_OBJECT_NAME_DESC - SLUG_ASC - SLUG_DESC -} + """The method to use when ordering `PlatformProposal`.""" + orderBy: [PlatformProposalOrderBy!] = [PRIMARY_KEY_ASC] -""" -Webhook route authority: (host, path) -> function task_identifier invoked through the webhook channel, with provider, signing-secret reference, and replay window -""" -type PlatformWebhookEndpoint { - """Whether this endpoint currently accepts deliveries""" - active: Boolean! - createdAt: Datetime - createdBy: UUID + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformProposalFilter + ): PlatformProposalConnection """ - Reads a single `PlatformFunctionDefinition` that is related to this `PlatformWebhookEndpoint`. + Reads and enables pagination through a set of `PlatformProposalsChunk`. """ - functionDefinition: PlatformFunctionDefinition + platformProposalsChunks( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """ - Same-scope function definition invoked on delivery. The function must list the webhook channel in access_channels. - """ - functionDefinitionId: UUID! + """Read all values in the set before (above) this cursor.""" + before: Cursor - """ - Inbound Host header this endpoint matches (normalized lower-case, no port) - """ - host: String! - id: UUID! + """Only read the first `n` values of the set.""" + first: Int - """ - Reads a single `PlatformNamespace` that is related to this `PlatformWebhookEndpoint`. - """ - namespace: PlatformNamespace + """Only read the last `n` values of the set.""" + last: Int - """Namespace that owns this endpoint and contains its signing secret""" - namespaceId: UUID! + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int - """Exact request path this endpoint matches (e.g. /webhooks/stripe)""" - path: String! + """The method to use when ordering `PlatformProposalsChunk`.""" + orderBy: [PlatformProposalsChunkOrderBy!] = [PRIMARY_KEY_ASC] - """Reads and enables pagination through a set of `PlatformWebhookEvent`.""" - platformWebhookEventsByEndpointId( + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformProposalsChunkFilter + ): PlatformProposalsChunkConnection + + """Reads and enables pagination through a set of `PlatformRegistry`.""" + platformRegistries( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -20913,546 +42120,507 @@ type PlatformWebhookEndpoint { """ offset: Int - """The method to use when ordering `PlatformWebhookEvent`.""" - orderBy: [PlatformWebhookEventOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `PlatformRegistry`.""" + orderBy: [PlatformRegistryOrderBy!] = [PRIMARY_KEY_ASC] """ A filter to be used in determining which values should be returned by the collection. """ - where: PlatformWebhookEventFilter - ): PlatformWebhookEventConnection! - - """Verification scheme: generic (HMAC), stripe, or github""" - provider: String! - - """ - Maximum age (seconds) of a signed provider timestamp before the delivery is rejected as a replay - """ - replayWindowSeconds: Int! + where: PlatformRegistryFilter + ): PlatformRegistryConnection """ - Name of the signing secret in the infra secrets store. The gateway resolves the value through the generated secrets getter — the plaintext secret is never stored here. + Reads and enables pagination through a set of `PlatformRegistryBinding`. """ - signingSecretName: String! - updatedAt: Datetime - updatedBy: UUID -} + platformRegistryBindings( + """Read all values in the set after (below) this cursor.""" + after: Cursor -"""A connection to a list of `PlatformWebhookEndpoint` values.""" -type PlatformWebhookEndpointConnection { - """ - A list of edges which contains the `PlatformWebhookEndpoint` and cursor to aid in pagination. - """ - edges: [PlatformWebhookEndpointEdge]! + """Read all values in the set before (above) this cursor.""" + before: Cursor - """A list of `PlatformWebhookEndpoint` objects.""" - nodes: [PlatformWebhookEndpoint]! + """Only read the first `n` values of the set.""" + first: Int - """Information to aid in pagination.""" - pageInfo: PageInfo! + """Only read the last `n` values of the set.""" + last: Int - """ - The count of *all* `PlatformWebhookEndpoint` you could get from the connection. - """ - totalCount: Int! -} + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int -"""A `PlatformWebhookEndpoint` edge in the connection.""" -type PlatformWebhookEndpointEdge { - """A cursor for use in pagination.""" - cursor: Cursor + """The method to use when ordering `PlatformRegistryBinding`.""" + orderBy: [PlatformRegistryBindingOrderBy!] = [PRIMARY_KEY_ASC] - """The `PlatformWebhookEndpoint` at the end of the edge.""" - node: PlatformWebhookEndpoint -} + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformRegistryBindingFilter + ): PlatformRegistryBindingConnection -""" -A filter to be used against `PlatformWebhookEndpoint` object types. All fields are combined with a logical ‘and.’ -""" -input PlatformWebhookEndpointFilter { - """Filter by the object’s `active` field.""" - active: BooleanFilter + """Reads and enables pagination through a set of `PlatformRegistryGrant`.""" + platformRegistryGrants( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """Checks for all expressions in this list.""" - and: [PlatformWebhookEndpointFilter!] + """Read all values in the set before (above) this cursor.""" + before: Cursor - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter + """Only read the first `n` values of the set.""" + first: Int - """Filter by the object’s `createdBy` field.""" - createdBy: UUIDFilter + """Only read the last `n` values of the set.""" + last: Int - """Filter by the object’s `functionDefinition` relation.""" - functionDefinition: PlatformFunctionDefinitionFilter + """ + 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 `functionDefinitionId` field.""" - functionDefinitionId: UUIDFilter + """The method to use when ordering `PlatformRegistryGrant`.""" + orderBy: [PlatformRegistryGrantOrderBy!] = [PRIMARY_KEY_ASC] - """Filter by the object’s `host` field.""" - host: StringFilter + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformRegistryGrantFilter + ): PlatformRegistryGrantConnection - """Filter by the object’s `id` field.""" - id: UUIDFilter + """Reads and enables pagination through a set of `PlatformRepository`.""" + platformRepositories( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """Filter by the object’s `namespace` relation.""" - namespace: PlatformNamespaceFilter + """Read all values in the set before (above) this cursor.""" + before: Cursor - """Filter by the object’s `namespaceId` field.""" - namespaceId: UUIDFilter + """Only read the first `n` values of the set.""" + first: Int - """Negates the expression.""" - not: PlatformWebhookEndpointFilter + """Only read the last `n` values of the set.""" + last: Int - """Checks for any expressions in this list.""" - or: [PlatformWebhookEndpointFilter!] + """ + 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 `path` field.""" - path: StringFilter + """The method to use when ordering `PlatformRepository`.""" + orderBy: [PlatformRepositoryOrderBy!] = [PRIMARY_KEY_ASC] - """Filter by the object’s `platformWebhookEventsByEndpointId` relation.""" - platformWebhookEventsByEndpointId: PlatformWebhookEndpointToManyPlatformWebhookEventFilter + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformRepositoryFilter + ): PlatformRepositoryConnection - """`platformWebhookEventsByEndpointId` exist.""" - platformWebhookEventsByEndpointIdExist: Boolean + """ + Reads and enables pagination through a set of `PlatformRepositoryEvent`. + """ + platformRepositoryEvents( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """Filter by the object’s `provider` field.""" - provider: StringFilter + """Read all values in the set before (above) this cursor.""" + before: Cursor - """Filter by the object’s `replayWindowSeconds` field.""" - replayWindowSeconds: IntFilter + """Only read the first `n` values of the set.""" + first: Int - """Filter by the object’s `signingSecretName` field.""" - signingSecretName: StringFilter + """Only read the last `n` values of the set.""" + last: Int - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter + """ + 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 `updatedBy` field.""" - updatedBy: UUIDFilter -} + """The method to use when ordering `PlatformRepositoryEvent`.""" + orderBy: [PlatformRepositoryEventOrderBy!] = [PRIMARY_KEY_ASC] -"""An input for mutations affecting `PlatformWebhookEndpoint`""" -input PlatformWebhookEndpointInput { - """Whether this endpoint currently accepts deliveries""" - active: Boolean - createdAt: Datetime - createdBy: UUID + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformRepositoryEventFilter + ): PlatformRepositoryEventConnection """ - Same-scope function definition invoked on delivery. The function must list the webhook channel in access_channels. + Reads and enables pagination through a set of `PlatformRepositoryRequiredCheck`. """ - functionDefinitionId: UUID! + platformRepositoryRequiredChecks( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """ - Inbound Host header this endpoint matches (normalized lower-case, no port) - """ - host: String! - id: UUID + """Read all values in the set before (above) this cursor.""" + before: Cursor - """Namespace that owns this endpoint and contains its signing secret""" - namespaceId: UUID! + """Only read the first `n` values of the set.""" + first: Int - """Exact request path this endpoint matches (e.g. /webhooks/stripe)""" - path: String! + """Only read the last `n` values of the set.""" + last: Int - """Verification scheme: generic (HMAC), stripe, or github""" - provider: String + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int - """ - Maximum age (seconds) of a signed provider timestamp before the delivery is rejected as a replay - """ - replayWindowSeconds: Int + """The method to use when ordering `PlatformRepositoryRequiredCheck`.""" + orderBy: [PlatformRepositoryRequiredCheckOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformRepositoryRequiredCheckFilter + ): PlatformRepositoryRequiredCheckConnection """ - Name of the signing secret in the infra secrets store. The gateway resolves the value through the generated secrets getter — the plaintext secret is never stored here. + Reads and enables pagination through a set of `PlatformRepositoryWorkflow`. """ - signingSecretName: String! - updatedAt: Datetime - updatedBy: UUID -} - -"""Methods to use when ordering `PlatformWebhookEndpoint`.""" -enum PlatformWebhookEndpointOrderBy { - ACTIVE_ASC - ACTIVE_DESC - CREATED_AT_ASC - CREATED_AT_DESC - CREATED_BY_ASC - CREATED_BY_DESC - FUNCTION_DEFINITION_ID_ASC - FUNCTION_DEFINITION_ID_DESC - HOST_ASC - HOST_DESC - ID_ASC - ID_DESC - NAMESPACE_ID_ASC - NAMESPACE_ID_DESC - NATURAL - PATH_ASC - PATH_DESC - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - PROVIDER_ASC - PROVIDER_DESC - REPLAY_WINDOW_SECONDS_ASC - REPLAY_WINDOW_SECONDS_DESC - SIGNING_SECRET_NAME_ASC - SIGNING_SECRET_NAME_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC - UPDATED_BY_ASC - UPDATED_BY_DESC -} + platformRepositoryWorkflows( + """Read all values in the set after (below) this cursor.""" + after: Cursor -""" -Represents an update to a `PlatformWebhookEndpoint`. Fields that are set will be updated. -""" -input PlatformWebhookEndpointPatch { - """Whether this endpoint currently accepts deliveries""" - active: Boolean - createdAt: Datetime - createdBy: UUID + """Read all values in the set before (above) this cursor.""" + before: Cursor - """ - Same-scope function definition invoked on delivery. The function must list the webhook channel in access_channels. - """ - functionDefinitionId: UUID + """Only read the first `n` values of the set.""" + first: Int - """ - Inbound Host header this endpoint matches (normalized lower-case, no port) - """ - host: String - id: UUID + """Only read the last `n` values of the set.""" + last: Int - """Namespace that owns this endpoint and contains its signing secret""" - namespaceId: UUID + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int - """Exact request path this endpoint matches (e.g. /webhooks/stripe)""" - path: String + """The method to use when ordering `PlatformRepositoryWorkflow`.""" + orderBy: [PlatformRepositoryWorkflowOrderBy!] = [PRIMARY_KEY_ASC] - """Verification scheme: generic (HMAC), stripe, or github""" - provider: String + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformRepositoryWorkflowFilter + ): PlatformRepositoryWorkflowConnection """ - Maximum age (seconds) of a signed provider timestamp before the delivery is rejected as a replay + Reads and enables pagination through a set of `PlatformResourceDeclaredCapacity`. """ - replayWindowSeconds: Int + platformResourceDeclaredCapacities( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """ - Name of the signing secret in the infra secrets store. The gateway resolves the value through the generated secrets getter — the plaintext secret is never stored here. - """ - signingSecretName: String - updatedAt: Datetime - updatedBy: UUID -} + """Read all values in the set before (above) this cursor.""" + before: Cursor -""" -A filter to be used against many `PlatformWebhookEvent` object types. All fields are combined with a logical ‘and.’ -""" -input PlatformWebhookEndpointToManyPlatformWebhookEventFilter { - """Filters to entities where every related entity matches.""" - every: PlatformWebhookEventFilter + """Only read the first `n` values of the set.""" + first: Int - """Filters to entities where no related entity matches.""" - none: PlatformWebhookEventFilter + """Only read the last `n` values of the set.""" + last: Int - """Filters to entities where at least one related entity matches.""" - some: PlatformWebhookEventFilter -} + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int -""" -Durable webhook acceptance log — one row per accepted delivery, deduplicated on (endpoint_id, external_event_id), linked to the pending function invocation it enqueued -""" -type PlatformWebhookEvent { - createdAt: Datetime + """The method to use when ordering `PlatformResourceDeclaredCapacity`.""" + orderBy: [PlatformResourceDeclaredCapacityOrderBy!] = [NATURAL] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformResourceDeclaredCapacityFilter + ): PlatformResourceDeclaredCapacityConnection """ - Reads a single `PlatformWebhookEndpoint` that is related to this `PlatformWebhookEvent`. + Reads and enables pagination through a set of `PlatformResourceDefinition`. """ - endpoint: PlatformWebhookEndpoint + platformResourceDefinitions( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """Endpoint that accepted this delivery""" - endpointId: UUID! + """Read all values in the set before (above) this cursor.""" + before: Cursor - """Failure detail when status = failed""" - error: String + """Only read the first `n` values of the set.""" + first: Int - """Provider-supplied delivery/event id used for idempotent dedup""" - externalEventId: String! - id: UUID! + """Only read the last `n` values of the set.""" + last: Int - """ - created_at of the enqueued invocation (partition key companion to invocation_id) - """ - invocationCreatedAt: Datetime + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int - """ - Pending function invocation enqueued for this delivery (NULL until enqueued) - """ - invocationId: UUID + """The method to use when ordering `PlatformResourceDefinition`.""" + orderBy: [PlatformResourceDefinitionOrderBy!] = [PRIMARY_KEY_ASC] - """ - Parsed delivery payload (parsed only after signature verification over the exact raw bytes) - """ - payload: JSON! + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformResourceDefinitionFilter + ): PlatformResourceDefinitionConnection - """ - Provider that produced this delivery (copied from the endpoint at acceptance) - """ - provider: String! + """Reads and enables pagination through a set of `PlatformResourceEvent`.""" + platformResourceEvents( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """ - Signed provider timestamp used for replay-window validation (NULL when the provider supplies none) - """ - providerTimestamp: Datetime + """Read all values in the set before (above) this cursor.""" + before: Cursor - """Acceptance lifecycle: accepted, processed, failed""" - status: String! - updatedAt: Datetime -} + """Only read the first `n` values of the set.""" + first: Int -"""A connection to a list of `PlatformWebhookEvent` values.""" -type PlatformWebhookEventConnection { - """ - A list of edges which contains the `PlatformWebhookEvent` and cursor to aid in pagination. - """ - edges: [PlatformWebhookEventEdge]! + """Only read the last `n` values of the set.""" + last: Int - """A list of `PlatformWebhookEvent` objects.""" - nodes: [PlatformWebhookEvent]! + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int - """Information to aid in pagination.""" - pageInfo: PageInfo! + """The method to use when ordering `PlatformResourceEvent`.""" + orderBy: [PlatformResourceEventOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformResourceEventFilter + ): PlatformResourceEventConnection """ - The count of *all* `PlatformWebhookEvent` you could get from the connection. + Reads and enables pagination through a set of `PlatformResourceInstallation`. """ - totalCount: Int! -} - -"""A `PlatformWebhookEvent` edge in the connection.""" -type PlatformWebhookEventEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `PlatformWebhookEvent` at the end of the edge.""" - node: PlatformWebhookEvent -} + platformResourceInstallations( + """Read all values in the set after (below) this cursor.""" + after: Cursor -""" -A filter to be used against `PlatformWebhookEvent` object types. All fields are combined with a logical ‘and.’ -""" -input PlatformWebhookEventFilter { - """Checks for all expressions in this list.""" - and: [PlatformWebhookEventFilter!] + """Read all values in the set before (above) this cursor.""" + before: Cursor - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter + """Only read the first `n` values of the set.""" + first: Int - """Filter by the object’s `endpoint` relation.""" - endpoint: PlatformWebhookEndpointFilter + """Only read the last `n` values of the set.""" + last: Int - """Filter by the object’s `endpointId` field.""" - endpointId: 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 `error` field.""" - error: StringFilter + """The method to use when ordering `PlatformResourceInstallation`.""" + orderBy: [PlatformResourceInstallationOrderBy!] = [PRIMARY_KEY_ASC] - """Filter by the object’s `externalEventId` field.""" - externalEventId: StringFilter + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformResourceInstallationFilter + ): PlatformResourceInstallationConnection - """Filter by the object’s `id` field.""" - id: UUIDFilter + """ + Reads and enables pagination through a set of `PlatformResourceObservedStorage`. + """ + platformResourceObservedStorages( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """Filter by the object’s `invocationCreatedAt` field.""" - invocationCreatedAt: DatetimeFilter + """Read all values in the set before (above) this cursor.""" + before: Cursor - """Filter by the object’s `invocationId` field.""" - invocationId: UUIDFilter + """Only read the first `n` values of the set.""" + first: Int - """Negates the expression.""" - not: PlatformWebhookEventFilter + """Only read the last `n` values of the set.""" + last: Int - """Checks for any expressions in this list.""" - or: [PlatformWebhookEventFilter!] + """ + 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 `payload` field.""" - payload: JSONFilter + """The method to use when ordering `PlatformResourceObservedStorage`.""" + orderBy: [PlatformResourceObservedStorageOrderBy!] = [NATURAL] - """Filter by the object’s `provider` field.""" - provider: StringFilter + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformResourceObservedStorageFilter + ): PlatformResourceObservedStorageConnection - """Filter by the object’s `providerTimestamp` field.""" - providerTimestamp: DatetimeFilter + """ + Reads and enables pagination through a set of `PlatformResourceStatusCheck`. + """ + platformResourceStatusChecks( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """Filter by the object’s `status` field.""" - status: StringFilter + """Read all values in the set before (above) this cursor.""" + before: Cursor - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter -} + """Only read the first `n` values of the set.""" + first: Int -"""An input for mutations affecting `PlatformWebhookEvent`""" -input PlatformWebhookEventInput { - createdAt: Datetime + """Only read the last `n` values of the set.""" + last: Int - """Endpoint that accepted this delivery""" - endpointId: UUID! + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int - """Failure detail when status = failed""" - error: String + """The method to use when ordering `PlatformResourceStatusCheck`.""" + orderBy: [PlatformResourceStatusCheckOrderBy!] = [PRIMARY_KEY_ASC] - """Provider-supplied delivery/event id used for idempotent dedup""" - externalEventId: String! - id: UUID + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformResourceStatusCheckFilter + ): PlatformResourceStatusCheckConnection """ - created_at of the enqueued invocation (partition key companion to invocation_id) + Reads and enables pagination through a set of `PlatformResourceUsageLog`. """ - invocationCreatedAt: Datetime + platformResourceUsageLogs( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """ - Pending function invocation enqueued for this delivery (NULL until enqueued) - """ - invocationId: UUID + """Read all values in the set before (above) this cursor.""" + before: Cursor - """ - Parsed delivery payload (parsed only after signature verification over the exact raw bytes) - """ - payload: JSON + """Only read the first `n` values of the set.""" + first: Int - """ - Provider that produced this delivery (copied from the endpoint at acceptance) - """ - provider: String! + """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 `PlatformResourceUsageLog`.""" + orderBy: [PlatformResourceUsageLogOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformResourceUsageLogFilter + ): PlatformResourceUsageLogConnection """ - Signed provider timestamp used for replay-window validation (NULL when the provider supplies none) + Reads and enables pagination through a set of `PlatformResourceUsageSummary`. """ - providerTimestamp: Datetime + platformResourceUsageSummaries( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """Acceptance lifecycle: accepted, processed, failed""" - status: String - updatedAt: Datetime -} + """Read all values in the set before (above) this cursor.""" + before: Cursor -"""Methods to use when ordering `PlatformWebhookEvent`.""" -enum PlatformWebhookEventOrderBy { - CREATED_AT_ASC - CREATED_AT_DESC - ENDPOINT_ID_ASC - ENDPOINT_ID_DESC - ERROR_ASC - ERROR_DESC - EXTERNAL_EVENT_ID_ASC - EXTERNAL_EVENT_ID_DESC - ID_ASC - ID_DESC - INVOCATION_CREATED_AT_ASC - INVOCATION_CREATED_AT_DESC - INVOCATION_ID_ASC - INVOCATION_ID_DESC - NATURAL - PAYLOAD_ASC - PAYLOAD_DESC - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - PROVIDER_ASC - PROVIDER_DESC - PROVIDER_TIMESTAMP_ASC - PROVIDER_TIMESTAMP_DESC - STATUS_ASC - STATUS_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC -} + """Only read the first `n` values of the set.""" + first: Int -""" -Represents an update to a `PlatformWebhookEvent`. Fields that are set will be updated. -""" -input PlatformWebhookEventPatch { - createdAt: Datetime + """Only read the last `n` values of the set.""" + last: Int - """Endpoint that accepted this delivery""" - endpointId: UUID + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int - """Failure detail when status = failed""" - error: String + """The method to use when ordering `PlatformResourceUsageSummary`.""" + orderBy: [PlatformResourceUsageSummaryOrderBy!] = [PRIMARY_KEY_ASC] - """Provider-supplied delivery/event id used for idempotent dedup""" - externalEventId: String - id: UUID + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformResourceUsageSummaryFilter + ): PlatformResourceUsageSummaryConnection """ - created_at of the enqueued invocation (partition key companion to invocation_id) + Reads and enables pagination through a set of `PlatformResourceUtilization`. """ - invocationCreatedAt: Datetime + platformResourceUtilizations( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """ - Pending function invocation enqueued for this delivery (NULL until enqueued) - """ - invocationId: UUID + """Read all values in the set before (above) this cursor.""" + before: Cursor - """ - Parsed delivery payload (parsed only after signature verification over the exact raw bytes) - """ - payload: JSON + """Only read the first `n` values of the set.""" + first: Int - """ - Provider that produced this delivery (copied from the endpoint at acceptance) - """ - provider: String + """Only read the last `n` values of the set.""" + last: Int - """ - Signed provider timestamp used for replay-window validation (NULL when the provider supplies none) - """ - providerTimestamp: Datetime + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int - """Acceptance lifecycle: accepted, processed, failed""" - status: String - updatedAt: Datetime -} + """The method to use when ordering `PlatformResourceUtilization`.""" + orderBy: [PlatformResourceUtilizationOrderBy!] = [NATURAL] -input ProvisionBucketInput { - """The logical bucket key (e.g., "public", "private")""" - bucketKey: String! + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformResourceUtilizationFilter + ): PlatformResourceUtilizationConnection - """ - Owner entity ID for entity-scoped bucket provisioning. - Omit for app-level (database-wide) storage. - """ - ownerId: UUID -} + """Reads and enables pagination through a set of `PlatformResource`.""" + platformResources( + """Read all values in the set after (below) this cursor.""" + after: Cursor -type ProvisionBucketPayload { - """The access type applied""" - accessType: String! + """Read all values in the set before (above) this cursor.""" + before: Cursor - """The S3 bucket name that was provisioned""" - bucketName: String! + """Only read the first `n` values of the set.""" + first: Int - """The S3 endpoint (null for AWS S3 default)""" - endpoint: String + """Only read the last `n` values of the set.""" + last: Int - """Error message if provisioning failed""" - error: 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 storage provider used""" - provider: String! + """The method to use when ordering `PlatformResource`.""" + orderBy: [PlatformResourceOrderBy!] = [PRIMARY_KEY_ASC] - """Whether provisioning succeeded""" - success: Boolean! -} + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformResourceFilter + ): PlatformResourceConnection -"""The root query type which gives access points into the data universe.""" -type Query { """ - Metadata about the database schema, including tables, fields, indexes, and constraints. Useful for code generation tools. + Reads and enables pagination through a set of `PlatformResourcesHealth`. """ - _meta: MetaSchema - - """Reads and enables pagination through a set of `ContentPreset`.""" - contentPresets( + platformResourcesHealths( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -21471,17 +42639,19 @@ type Query { """ offset: Int - """The method to use when ordering `ContentPreset`.""" - orderBy: [ContentPresetOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `PlatformResourcesHealth`.""" + orderBy: [PlatformResourcesHealthOrderBy!] = [NATURAL] """ A filter to be used in determining which values should be returned by the collection. """ - where: ContentPresetFilter - ): ContentPresetConnection + where: PlatformResourcesHealthFilter + ): PlatformResourcesHealthConnection - """Reads and enables pagination through a set of `DbPreset`.""" - dbPresets( + """ + Reads and enables pagination through a set of `PlatformResourcesRequirementsState`. + """ + platformResourcesRequirementsStates( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -21500,17 +42670,19 @@ type Query { """ offset: Int - """The method to use when ordering `DbPreset`.""" - orderBy: [DbPresetOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `PlatformResourcesRequirementsState`.""" + orderBy: [PlatformResourcesRequirementsStateOrderBy!] = [NATURAL] """ A filter to be used in determining which values should be returned by the collection. """ - where: DbPresetFilter - ): DbPresetConnection + where: PlatformResourcesRequirementsStateFilter + ): PlatformResourcesRequirementsStateConnection - """Reads and enables pagination through a set of `FunctionApiBinding`.""" - functionApiBindings( + """ + Reads and enables pagination through a set of `PlatformResourcesResolvedRequirement`. + """ + platformResourcesResolvedRequirements( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -21529,19 +42701,21 @@ type Query { """ offset: Int - """The method to use when ordering `FunctionApiBinding`.""" - orderBy: [FunctionApiBindingOrderBy!] = [PRIMARY_KEY_ASC] + """ + The method to use when ordering `PlatformResourcesResolvedRequirement`. + """ + orderBy: [PlatformResourcesResolvedRequirementOrderBy!] = [NATURAL] """ A filter to be used in determining which values should be returned by the collection. """ - where: FunctionApiBindingFilter - ): FunctionApiBindingConnection + where: PlatformResourcesResolvedRequirementFilter + ): PlatformResourcesResolvedRequirementConnection """ - Reads and enables pagination through a set of `FunctionCapabilityBinding`. + Reads and enables pagination through a set of `PlatformWebhookEndpoint`. """ - functionCapabilityBindings( + platformWebhookEndpoints( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -21560,17 +42734,17 @@ type Query { """ offset: Int - """The method to use when ordering `FunctionCapabilityBinding`.""" - orderBy: [FunctionCapabilityBindingOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `PlatformWebhookEndpoint`.""" + orderBy: [PlatformWebhookEndpointOrderBy!] = [PRIMARY_KEY_ASC] """ A filter to be used in determining which values should be returned by the collection. """ - where: FunctionCapabilityBindingFilter - ): FunctionCapabilityBindingConnection + where: PlatformWebhookEndpointFilter + ): PlatformWebhookEndpointConnection - """Reads and enables pagination through a set of `FunctionDefinition`.""" - functionDefinitions( + """Reads and enables pagination through a set of `PlatformWebhookEvent`.""" + platformWebhookEvents( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -21589,19 +42763,17 @@ type Query { """ offset: Int - """The method to use when ordering `FunctionDefinition`.""" - orderBy: [FunctionDefinitionOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `PlatformWebhookEvent`.""" + orderBy: [PlatformWebhookEventOrderBy!] = [PRIMARY_KEY_ASC] """ A filter to be used in determining which values should be returned by the collection. """ - where: FunctionDefinitionFilter - ): FunctionDefinitionConnection + where: PlatformWebhookEventFilter + ): PlatformWebhookEventConnection - """ - Reads and enables pagination through a set of `FunctionDeploymentEvent`. - """ - functionDeploymentEvents( + """Reads and enables pagination through a set of `ProposalComment`.""" + proposalComments( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -21620,17 +42792,17 @@ type Query { """ offset: Int - """The method to use when ordering `FunctionDeploymentEvent`.""" - orderBy: [FunctionDeploymentEventOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `ProposalComment`.""" + orderBy: [ProposalCommentOrderBy!] = [PRIMARY_KEY_ASC] """ A filter to be used in determining which values should be returned by the collection. """ - where: FunctionDeploymentEventFilter - ): FunctionDeploymentEventConnection + where: ProposalCommentFilter + ): ProposalCommentConnection - """Reads and enables pagination through a set of `FunctionDeployment`.""" - functionDeployments( + """Reads and enables pagination through a set of `ProposalFileView`.""" + proposalFileViews( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -21649,17 +42821,17 @@ type Query { """ offset: Int - """The method to use when ordering `FunctionDeployment`.""" - orderBy: [FunctionDeploymentOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `ProposalFileView`.""" + orderBy: [ProposalFileViewOrderBy!] = [PRIMARY_KEY_ASC] """ A filter to be used in determining which values should be returned by the collection. """ - where: FunctionDeploymentFilter - ): FunctionDeploymentConnection + where: ProposalFileViewFilter + ): ProposalFileViewConnection - """Reads and enables pagination through a set of `FunctionExecutionLog`.""" - functionExecutionLogs( + """Reads and enables pagination through a set of `ProposalReaction`.""" + proposalReactions( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -21678,17 +42850,17 @@ type Query { """ offset: Int - """The method to use when ordering `FunctionExecutionLog`.""" - orderBy: [FunctionExecutionLogOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `ProposalReaction`.""" + orderBy: [ProposalReactionOrderBy!] = [PRIMARY_KEY_ASC] """ A filter to be used in determining which values should be returned by the collection. """ - where: FunctionExecutionLogFilter - ): FunctionExecutionLogConnection + where: ProposalReactionFilter + ): ProposalReactionConnection - """Reads and enables pagination through a set of `FunctionGraphCommit`.""" - functionGraphCommits( + """Reads and enables pagination through a set of `ProposalReview`.""" + proposalReviews( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -21707,19 +42879,17 @@ type Query { """ offset: Int - """The method to use when ordering `FunctionGraphCommit`.""" - orderBy: [FunctionGraphCommitOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `ProposalReview`.""" + orderBy: [ProposalReviewOrderBy!] = [PRIMARY_KEY_ASC] """ A filter to be used in determining which values should be returned by the collection. """ - where: FunctionGraphCommitFilter - ): FunctionGraphCommitConnection + where: ProposalReviewFilter + ): ProposalReviewConnection - """ - Reads and enables pagination through a set of `FunctionGraphExecutionNodeState`. - """ - functionGraphExecutionNodeStates( + """Reads and enables pagination through a set of `Proposal`.""" + proposals( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -21738,19 +42908,17 @@ type Query { """ offset: Int - """The method to use when ordering `FunctionGraphExecutionNodeState`.""" - orderBy: [FunctionGraphExecutionNodeStateOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `Proposal`.""" + orderBy: [ProposalOrderBy!] = [PRIMARY_KEY_ASC] """ A filter to be used in determining which values should be returned by the collection. """ - where: FunctionGraphExecutionNodeStateFilter - ): FunctionGraphExecutionNodeStateConnection + where: ProposalFilter + ): ProposalConnection - """ - Reads and enables pagination through a set of `FunctionGraphExecutionOutput`. - """ - functionGraphExecutionOutputs( + """Reads and enables pagination through a set of `ProposalsChunk`.""" + proposalsChunks( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -21769,19 +42937,18 @@ type Query { """ offset: Int - """The method to use when ordering `FunctionGraphExecutionOutput`.""" - orderBy: [FunctionGraphExecutionOutputOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `ProposalsChunk`.""" + orderBy: [ProposalsChunkOrderBy!] = [PRIMARY_KEY_ASC] """ A filter to be used in determining which values should be returned by the collection. """ - where: FunctionGraphExecutionOutputFilter - ): FunctionGraphExecutionOutputConnection + where: ProposalsChunkFilter + ): ProposalsChunkConnection + readFunctionGraph(graphId: UUID): JSON - """ - Reads and enables pagination through a set of `FunctionGraphExecution`. - """ - functionGraphExecutions( + """Reads and enables pagination through a set of `Registry`.""" + registries( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -21800,17 +42967,17 @@ type Query { """ offset: Int - """The method to use when ordering `FunctionGraphExecution`.""" - orderBy: [FunctionGraphExecutionOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `Registry`.""" + orderBy: [RegistryOrderBy!] = [PRIMARY_KEY_ASC] """ A filter to be used in determining which values should be returned by the collection. """ - where: FunctionGraphExecutionFilter - ): FunctionGraphExecutionConnection + where: RegistryFilter + ): RegistryConnection - """Reads and enables pagination through a set of `FunctionGraphObject`.""" - functionGraphObjects( + """Reads and enables pagination through a set of `RegistryBinding`.""" + registryBindings( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -21829,17 +42996,17 @@ type Query { """ offset: Int - """The method to use when ordering `FunctionGraphObject`.""" - orderBy: [FunctionGraphObjectOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `RegistryBinding`.""" + orderBy: [RegistryBindingOrderBy!] = [PRIMARY_KEY_ASC] """ A filter to be used in determining which values should be returned by the collection. """ - where: FunctionGraphObjectFilter - ): FunctionGraphObjectConnection + where: RegistryBindingFilter + ): RegistryBindingConnection - """Reads and enables pagination through a set of `FunctionGraphRef`.""" - functionGraphRefs( + """Reads and enables pagination through a set of `RegistryGrant`.""" + registryGrants( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -21858,17 +43025,17 @@ type Query { """ offset: Int - """The method to use when ordering `FunctionGraphRef`.""" - orderBy: [FunctionGraphRefOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `RegistryGrant`.""" + orderBy: [RegistryGrantOrderBy!] = [PRIMARY_KEY_ASC] """ A filter to be used in determining which values should be returned by the collection. """ - where: FunctionGraphRefFilter - ): FunctionGraphRefConnection + where: RegistryGrantFilter + ): RegistryGrantConnection - """Reads and enables pagination through a set of `FunctionGraphStore`.""" - functionGraphStores( + """Reads and enables pagination through a set of `Repository`.""" + repositories( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -21887,17 +43054,17 @@ type Query { """ offset: Int - """The method to use when ordering `FunctionGraphStore`.""" - orderBy: [FunctionGraphStoreOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `Repository`.""" + orderBy: [RepositoryOrderBy!] = [PRIMARY_KEY_ASC] """ A filter to be used in determining which values should be returned by the collection. """ - where: FunctionGraphStoreFilter - ): FunctionGraphStoreConnection + where: RepositoryFilter + ): RepositoryConnection - """Reads and enables pagination through a set of `FunctionGraph`.""" - functionGraphs( + """Reads and enables pagination through a set of `RepositoryEvent`.""" + repositoryEvents( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -21916,19 +43083,19 @@ type Query { """ offset: Int - """The method to use when ordering `FunctionGraph`.""" - orderBy: [FunctionGraphOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `RepositoryEvent`.""" + orderBy: [RepositoryEventOrderBy!] = [PRIMARY_KEY_ASC] """ A filter to be used in determining which values should be returned by the collection. """ - where: FunctionGraphFilter - ): FunctionGraphConnection + where: RepositoryEventFilter + ): RepositoryEventConnection """ - Reads and enables pagination through a set of `FunctionInvocationAttempt`. + Reads and enables pagination through a set of `RepositoryRequiredCheck`. """ - functionInvocationAttempts( + repositoryRequiredChecks( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -21947,17 +43114,17 @@ type Query { """ offset: Int - """The method to use when ordering `FunctionInvocationAttempt`.""" - orderBy: [FunctionInvocationAttemptOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `RepositoryRequiredCheck`.""" + orderBy: [RepositoryRequiredCheckOrderBy!] = [PRIMARY_KEY_ASC] """ A filter to be used in determining which values should be returned by the collection. """ - where: FunctionInvocationAttemptFilter - ): FunctionInvocationAttemptConnection + where: RepositoryRequiredCheckFilter + ): RepositoryRequiredCheckConnection - """Reads and enables pagination through a set of `FunctionInvocation`.""" - functionInvocations( + """Reads and enables pagination through a set of `RepositoryWorkflow`.""" + repositoryWorkflows( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -21976,35 +43143,48 @@ type Query { """ offset: Int - """The method to use when ordering `FunctionInvocation`.""" - orderBy: [FunctionInvocationOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `RepositoryWorkflow`.""" + orderBy: [RepositoryWorkflowOrderBy!] = [PRIMARY_KEY_ASC] """ A filter to be used in determining which values should be returned by the collection. """ - where: FunctionInvocationFilter - ): FunctionInvocationConnection + where: RepositoryWorkflowFilter + ): RepositoryWorkflowConnection - """Reads and enables pagination through a set of `GetAllTreeNodesRecord`.""" - getAllTreeNodes( + """ + Reads and enables pagination through a set of `ResourceDeclaredCapacity`. + """ + resourceDeclaredCapacities( """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 - id: UUID + + """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 - sId: UUID - ): GetAllTreeNodesConnection - getNodeAtPath(id: UUID, path: [String], sId: UUID): FunctionGraphObject - """Reads and enables pagination through a set of `InfraCommit`.""" - infraCommits( + """The method to use when ordering `ResourceDeclaredCapacity`.""" + orderBy: [ResourceDeclaredCapacityOrderBy!] = [NATURAL] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: ResourceDeclaredCapacityFilter + ): ResourceDeclaredCapacityConnection + + """Reads and enables pagination through a set of `ResourceDefinition`.""" + resourceDefinitions( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -22023,37 +43203,46 @@ type Query { """ offset: Int - """The method to use when ordering `InfraCommit`.""" - orderBy: [InfraCommitOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `ResourceDefinition`.""" + orderBy: [ResourceDefinitionOrderBy!] = [PRIMARY_KEY_ASC] """ A filter to be used in determining which values should be returned by the collection. """ - where: InfraCommitFilter - ): InfraCommitConnection + where: ResourceDefinitionFilter + ): ResourceDefinitionConnection - """ - Reads and enables pagination through a set of `InfraGetAllTreeNodesRecord`. - """ - infraGetAllTreeNodes( + """Reads and enables pagination through a set of `ResourceEvent`.""" + resourceEvents( """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 - id: UUID + + """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 - sId: UUID - ): InfraGetAllTreeNodesConnection - infraGetNodeAtPath(id: UUID, path: [String], sId: UUID): InfraObject - """Reads and enables pagination through a set of `InfraObject`.""" - infraObjects( + """The method to use when ordering `ResourceEvent`.""" + orderBy: [ResourceEventOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: ResourceEventFilter + ): ResourceEventConnection + + """Reads and enables pagination through a set of `ResourceInstallation`.""" + resourceInstallations( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -22072,17 +43261,19 @@ type Query { """ offset: Int - """The method to use when ordering `InfraObject`.""" - orderBy: [InfraObjectOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `ResourceInstallation`.""" + orderBy: [ResourceInstallationOrderBy!] = [PRIMARY_KEY_ASC] """ A filter to be used in determining which values should be returned by the collection. """ - where: InfraObjectFilter - ): InfraObjectConnection + where: ResourceInstallationFilter + ): ResourceInstallationConnection - """Reads and enables pagination through a set of `InfraRef`.""" - infraRefs( + """ + Reads and enables pagination through a set of `ResourceObservedStorage`. + """ + resourceObservedStorages( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -22101,17 +43292,17 @@ type Query { """ offset: Int - """The method to use when ordering `InfraRef`.""" - orderBy: [InfraRefOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `ResourceObservedStorage`.""" + orderBy: [ResourceObservedStorageOrderBy!] = [NATURAL] """ A filter to be used in determining which values should be returned by the collection. """ - where: InfraRefFilter - ): InfraRefConnection + where: ResourceObservedStorageFilter + ): ResourceObservedStorageConnection - """Reads and enables pagination through a set of `InfraStore`.""" - infraStores( + """Reads and enables pagination through a set of `ResourceStatusCheck`.""" + resourceStatusChecks( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -22130,17 +43321,17 @@ type Query { """ offset: Int - """The method to use when ordering `InfraStore`.""" - orderBy: [InfraStoreOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `ResourceStatusCheck`.""" + orderBy: [ResourceStatusCheckOrderBy!] = [PRIMARY_KEY_ASC] """ A filter to be used in determining which values should be returned by the collection. """ - where: InfraStoreFilter - ): InfraStoreConnection + where: ResourceStatusCheckFilter + ): ResourceStatusCheckConnection - """Reads and enables pagination through a set of `IntegrationProvider`.""" - integrationProviders( + """Reads and enables pagination through a set of `ResourceUsageLog`.""" + resourceUsageLogs( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -22159,17 +43350,17 @@ type Query { """ offset: Int - """The method to use when ordering `IntegrationProvider`.""" - orderBy: [IntegrationProviderOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `ResourceUsageLog`.""" + orderBy: [ResourceUsageLogOrderBy!] = [PRIMARY_KEY_ASC] """ A filter to be used in determining which values should be returned by the collection. """ - where: IntegrationProviderFilter - ): IntegrationProviderConnection + where: ResourceUsageLogFilter + ): ResourceUsageLogConnection - """Reads and enables pagination through a set of `NamespaceEvent`.""" - namespaceEvents( + """Reads and enables pagination through a set of `ResourceUsageSummary`.""" + resourceUsageSummaries( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -22188,17 +43379,17 @@ type Query { """ offset: Int - """The method to use when ordering `NamespaceEvent`.""" - orderBy: [NamespaceEventOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `ResourceUsageSummary`.""" + orderBy: [ResourceUsageSummaryOrderBy!] = [PRIMARY_KEY_ASC] """ A filter to be used in determining which values should be returned by the collection. """ - where: NamespaceEventFilter - ): NamespaceEventConnection + where: ResourceUsageSummaryFilter + ): ResourceUsageSummaryConnection - """Reads and enables pagination through a set of `Namespace`.""" - namespaces( + """Reads and enables pagination through a set of `ResourceUtilization`.""" + resourceUtilizations( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -22217,19 +43408,17 @@ type Query { """ offset: Int - """The method to use when ordering `Namespace`.""" - orderBy: [NamespaceOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `ResourceUtilization`.""" + orderBy: [ResourceUtilizationOrderBy!] = [NATURAL] """ A filter to be used in determining which values should be returned by the collection. """ - where: NamespaceFilter - ): NamespaceConnection + where: ResourceUtilizationFilter + ): ResourceUtilizationConnection - """ - Reads and enables pagination through a set of `PlatformFunctionApiBinding`. - """ - platformFunctionApiBindings( + """Reads and enables pagination through a set of `Resource`.""" + resources( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -22248,19 +43437,17 @@ type Query { """ offset: Int - """The method to use when ordering `PlatformFunctionApiBinding`.""" - orderBy: [PlatformFunctionApiBindingOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `Resource`.""" + orderBy: [ResourceOrderBy!] = [PRIMARY_KEY_ASC] """ A filter to be used in determining which values should be returned by the collection. """ - where: PlatformFunctionApiBindingFilter - ): PlatformFunctionApiBindingConnection + where: ResourceFilter + ): ResourceConnection - """ - Reads and enables pagination through a set of `PlatformFunctionCapabilityBinding`. - """ - platformFunctionCapabilityBindings( + """Reads and enables pagination through a set of `ResourcesHealth`.""" + resourcesHealths( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -22279,19 +43466,19 @@ type Query { """ offset: Int - """The method to use when ordering `PlatformFunctionCapabilityBinding`.""" - orderBy: [PlatformFunctionCapabilityBindingOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `ResourcesHealth`.""" + orderBy: [ResourcesHealthOrderBy!] = [NATURAL] """ A filter to be used in determining which values should be returned by the collection. """ - where: PlatformFunctionCapabilityBindingFilter - ): PlatformFunctionCapabilityBindingConnection + where: ResourcesHealthFilter + ): ResourcesHealthConnection """ - Reads and enables pagination through a set of `PlatformFunctionDefinition`. + Reads and enables pagination through a set of `ResourcesRequirementsState`. """ - platformFunctionDefinitions( + resourcesRequirementsStates( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -22310,19 +43497,19 @@ type Query { """ offset: Int - """The method to use when ordering `PlatformFunctionDefinition`.""" - orderBy: [PlatformFunctionDefinitionOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `ResourcesRequirementsState`.""" + orderBy: [ResourcesRequirementsStateOrderBy!] = [NATURAL] """ A filter to be used in determining which values should be returned by the collection. """ - where: PlatformFunctionDefinitionFilter - ): PlatformFunctionDefinitionConnection + where: ResourcesRequirementsStateFilter + ): ResourcesRequirementsStateConnection """ - Reads and enables pagination through a set of `PlatformFunctionDeploymentEvent`. + Reads and enables pagination through a set of `ResourcesResolvedRequirement`. """ - platformFunctionDeploymentEvents( + resourcesResolvedRequirements( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -22341,19 +43528,17 @@ type Query { """ offset: Int - """The method to use when ordering `PlatformFunctionDeploymentEvent`.""" - orderBy: [PlatformFunctionDeploymentEventOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `ResourcesResolvedRequirement`.""" + orderBy: [ResourcesResolvedRequirementOrderBy!] = [NATURAL] """ A filter to be used in determining which values should be returned by the collection. """ - where: PlatformFunctionDeploymentEventFilter - ): PlatformFunctionDeploymentEventConnection + where: ResourcesResolvedRequirementFilter + ): ResourcesResolvedRequirementConnection - """ - Reads and enables pagination through a set of `PlatformFunctionDeployment`. - """ - platformFunctionDeployments( + """Reads and enables pagination through a set of `WebhookEndpoint`.""" + webhookEndpoints( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -22372,19 +43557,17 @@ type Query { """ offset: Int - """The method to use when ordering `PlatformFunctionDeployment`.""" - orderBy: [PlatformFunctionDeploymentOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `WebhookEndpoint`.""" + orderBy: [WebhookEndpointOrderBy!] = [PRIMARY_KEY_ASC] """ A filter to be used in determining which values should be returned by the collection. """ - where: PlatformFunctionDeploymentFilter - ): PlatformFunctionDeploymentConnection + where: WebhookEndpointFilter + ): WebhookEndpointConnection - """ - Reads and enables pagination through a set of `PlatformFunctionExecutionLog`. - """ - platformFunctionExecutionLogs( + """Reads and enables pagination through a set of `WebhookEvent`.""" + webhookEvents( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -22403,19 +43586,79 @@ type Query { """ offset: Int - """The method to use when ordering `PlatformFunctionExecutionLog`.""" - orderBy: [PlatformFunctionExecutionLogOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `WebhookEvent`.""" + orderBy: [WebhookEventOrderBy!] = [PRIMARY_KEY_ASC] """ A filter to be used in determining which values should be returned by the collection. """ - where: PlatformFunctionExecutionLogFilter - ): PlatformFunctionExecutionLogConnection + where: WebhookEventFilter + ): WebhookEventConnection +} + +""" +Artifact registries this scope pulls from or pushes to (OCI images, npm packages), platform-run or external +""" +type Registry { + """How a client authenticates to this registry (none, basic, token)""" + authMode: String! """ - Reads and enables pagination through a set of `PlatformFunctionInvocationAttempt`. + Path prefix within the host (npm scope, OCI project); NULL = the host root """ - platformFunctionInvocationAttempts( + basePath: String + createdAt: Datetime + createdByPrincipal: UUID + + """ + Name of the infra secret carrying this registry's credential (NULL when auth_mode = none) + """ + credentialSecretName: String + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! + + """ + Registry host, without a scheme (e.g. ghcr.io, registry.npmjs.org); required unless role is source, where it is the optional requested host and is stamped with the provisioned one + """ + host: String + id: UUID! + + """ + Reads a single `ResourceInstallation` that is related to this `Registry`. + """ + installation: ResourceInstallation + + """ + Resource installation running this registry (NULL for an external registry) + """ + installationId: UUID + + """Whether this registry is published for use by any scope""" + isPublished: Boolean! + + """Artifact ecosystem this registry serves (oci, npm)""" + kind: String! + + """Labels for selecting registries (lane, region, mirror role)""" + labels: JSON! + + """ + Message from the last failed provision/deprovision attempt (NULL when healthy) + """ + lastError: String + + """Freeform metadata (mirror-of pointer, rate limits, contact)""" + metadata: JSON + + """Human-readable registry name (e.g. github-container-registry)""" + name: String! + + """Whether this registry is reserved for platform-internal use""" + platformOnly: Boolean! + + """Reads and enables pagination through a set of `RegistryBinding`.""" + registryBindings( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -22434,19 +43677,17 @@ type Query { """ offset: Int - """The method to use when ordering `PlatformFunctionInvocationAttempt`.""" - orderBy: [PlatformFunctionInvocationAttemptOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `RegistryBinding`.""" + orderBy: [RegistryBindingOrderBy!] = [PRIMARY_KEY_ASC] """ A filter to be used in determining which values should be returned by the collection. """ - where: PlatformFunctionInvocationAttemptFilter - ): PlatformFunctionInvocationAttemptConnection + where: RegistryBindingFilter + ): RegistryBindingConnection! - """ - Reads and enables pagination through a set of `PlatformFunctionInvocation`. - """ - platformFunctionInvocations( + """Reads and enables pagination through a set of `RegistryGrant`.""" + registryGrants( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -22465,399 +43706,840 @@ type Query { """ offset: Int - """The method to use when ordering `PlatformFunctionInvocation`.""" - orderBy: [PlatformFunctionInvocationOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `RegistryGrant`.""" + orderBy: [RegistryGrantOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: RegistryGrantFilter + ): RegistryGrantConnection! + + """ + Role in this scope: source (the push target), cache (read-through mirror), external (pull only) + """ + role: String! + + """ + Provisioning state (pending, provisioning, active, failed); rows the platform does not create are active on insert + """ + status: String! + updatedAt: Datetime + updatedByPrincipal: UUID +} + +""" +Binds a namespace to an installed container registry for a lane (realm) — the reconciler projects that registry's credentials into the namespace as an image pull secret +""" +type RegistryBinding { + createdAt: Datetime + createdBy: UUID + createdByPrincipal: UUID + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! + id: UUID! + + """Reconciler detail (last error, projection timestamps)""" + metadata: JSON + + """Reads a single `Namespace` that is related to this `RegistryBinding`.""" + namespace: Namespace + + """Namespace the registry credentials are projected into""" + namespaceId: UUID! + + """ + Registry credential version last projected into the namespace (NULL = never projected) + """ + observedCredentialVersion: String + + """Name of the image pull secret the reconciler writes into the namespace""" + pullSecretName: String! + + """Lane this binding applies to (NULL = the scope's default lane)""" + realm: String + + """Reads a single `Registry` that is related to this `RegistryBinding`.""" + registry: Registry + + """ + Registry host this binding's credentials authenticate to (what kubelet matches image references against) + """ + registryHost: String! + + """ + Registry endpoint (in this scope's registry catalog) the namespace pulls from + """ + registryId: UUID! + + """Projection state of the pull secret: pending, active, failed""" + status: String! + updatedAt: Datetime + updatedBy: UUID + updatedByPrincipal: UUID +} + +"""A connection to a list of `RegistryBinding` values.""" +type RegistryBindingConnection { + """ + A list of edges which contains the `RegistryBinding` and cursor to aid in pagination. + """ + edges: [RegistryBindingEdge]! + + """A list of `RegistryBinding` objects.""" + nodes: [RegistryBinding]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `RegistryBinding` you could get from the connection. + """ + totalCount: Int! +} + +"""A `RegistryBinding` edge in the connection.""" +type RegistryBindingEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `RegistryBinding` at the end of the edge.""" + node: RegistryBinding +} + +""" +A filter to be used against `RegistryBinding` object types. All fields are combined with a logical ‘and.’ +""" +input RegistryBindingFilter { + """Checks for all expressions in this list.""" + and: [RegistryBindingFilter!] + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `createdBy` field.""" + createdBy: UUIDFilter + + """Filter by the object’s `createdByPrincipal` field.""" + createdByPrincipal: UUIDFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `metadata` field.""" + metadata: JSONFilter + + """Filter by the object’s `namespace` relation.""" + namespace: NamespaceFilter + + """Filter by the object’s `namespaceId` field.""" + namespaceId: UUIDFilter + + """Negates the expression.""" + not: RegistryBindingFilter + + """Filter by the object’s `observedCredentialVersion` field.""" + observedCredentialVersion: StringFilter + + """Checks for any expressions in this list.""" + or: [RegistryBindingFilter!] + + """Filter by the object’s `pullSecretName` field.""" + pullSecretName: StringFilter + + """Filter by the object’s `realm` field.""" + realm: StringFilter + + """Filter by the object’s `registry` relation.""" + registry: RegistryFilter + + """Filter by the object’s `registryHost` field.""" + registryHost: StringFilter + + """Filter by the object’s `registryId` field.""" + registryId: UUIDFilter + + """Filter by the object’s `status` field.""" + status: StringFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + + """Filter by the object’s `updatedBy` field.""" + updatedBy: UUIDFilter + + """Filter by the object’s `updatedByPrincipal` field.""" + updatedByPrincipal: UUIDFilter +} + +"""An input for mutations affecting `RegistryBinding`""" +input RegistryBindingInput { + createdAt: Datetime + createdBy: UUID + createdByPrincipal: UUID + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! + id: UUID + + """Reconciler detail (last error, projection timestamps)""" + metadata: JSON + + """Namespace the registry credentials are projected into""" + namespaceId: UUID! + + """ + Registry credential version last projected into the namespace (NULL = never projected) + """ + observedCredentialVersion: String + + """Name of the image pull secret the reconciler writes into the namespace""" + pullSecretName: String + + """Lane this binding applies to (NULL = the scope's default lane)""" + realm: String + + """ + Registry host this binding's credentials authenticate to (what kubelet matches image references against) + """ + registryHost: String! + + """ + Registry endpoint (in this scope's registry catalog) the namespace pulls from + """ + registryId: UUID! + + """Projection state of the pull secret: pending, active, failed""" + status: String + updatedAt: Datetime + updatedBy: UUID + updatedByPrincipal: UUID +} + +"""Methods to use when ordering `RegistryBinding`.""" +enum RegistryBindingOrderBy { + CREATED_AT_ASC + CREATED_AT_DESC + CREATED_BY_ASC + CREATED_BY_DESC + CREATED_BY_PRINCIPAL_ASC + CREATED_BY_PRINCIPAL_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + ID_ASC + ID_DESC + METADATA_ASC + METADATA_DESC + NAMESPACE_ID_ASC + NAMESPACE_ID_DESC + NATURAL + OBSERVED_CREDENTIAL_VERSION_ASC + OBSERVED_CREDENTIAL_VERSION_DESC + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + PULL_SECRET_NAME_ASC + PULL_SECRET_NAME_DESC + REALM_ASC + REALM_DESC + REGISTRY_HOST_ASC + REGISTRY_HOST_DESC + REGISTRY_ID_ASC + REGISTRY_ID_DESC + STATUS_ASC + STATUS_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + UPDATED_BY_ASC + UPDATED_BY_DESC + UPDATED_BY_PRINCIPAL_ASC + UPDATED_BY_PRINCIPAL_DESC +} + +""" +Represents an update to a `RegistryBinding`. Fields that are set will be updated. +""" +input RegistryBindingPatch { + createdAt: Datetime + createdBy: UUID + createdByPrincipal: UUID + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID + id: UUID + + """Reconciler detail (last error, projection timestamps)""" + metadata: JSON + + """Namespace the registry credentials are projected into""" + namespaceId: UUID + + """ + Registry credential version last projected into the namespace (NULL = never projected) + """ + observedCredentialVersion: String + + """Name of the image pull secret the reconciler writes into the namespace""" + pullSecretName: String + + """Lane this binding applies to (NULL = the scope's default lane)""" + realm: String + + """ + Registry host this binding's credentials authenticate to (what kubelet matches image references against) + """ + registryHost: String + + """ + Registry endpoint (in this scope's registry catalog) the namespace pulls from + """ + registryId: UUID + + """Projection state of the pull secret: pending, active, failed""" + status: String + updatedAt: Datetime + updatedBy: UUID + updatedByPrincipal: UUID +} + +"""A connection to a list of `Registry` values.""" +type RegistryConnection { + """ + A list of edges which contains the `Registry` and cursor to aid in pagination. + """ + edges: [RegistryEdge]! + + """A list of `Registry` objects.""" + nodes: [Registry]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `Registry` you could get from the connection.""" + totalCount: Int! +} + +"""A `Registry` edge in the connection.""" +type RegistryEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `Registry` at the end of the edge.""" + node: Registry +} + +""" +A filter to be used against `Registry` object types. All fields are combined with a logical ‘and.’ +""" +input RegistryFilter { + """Checks for all expressions in this list.""" + and: [RegistryFilter!] + + """Filter by the object’s `authMode` field.""" + authMode: StringFilter + + """Filter by the object’s `basePath` field.""" + basePath: StringFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `createdByPrincipal` field.""" + createdByPrincipal: UUIDFilter + + """Filter by the object’s `credentialSecretName` field.""" + credentialSecretName: StringFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `host` field.""" + host: StringFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `installation` relation.""" + installation: ResourceInstallationFilter + + """A related `installation` exists.""" + installationExists: Boolean + + """Filter by the object’s `installationId` field.""" + installationId: UUIDFilter + + """Filter by the object’s `isPublished` field.""" + isPublished: BooleanFilter + + """Filter by the object’s `kind` field.""" + kind: StringFilter + + """Filter by the object’s `labels` field.""" + labels: JSONFilter + + """Filter by the object’s `lastError` field.""" + lastError: StringFilter + + """Filter by the object’s `metadata` field.""" + metadata: JSONFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """Negates the expression.""" + not: RegistryFilter + + """Checks for any expressions in this list.""" + or: [RegistryFilter!] + + """Filter by the object’s `platformOnly` field.""" + platformOnly: BooleanFilter + + """Filter by the object’s `registryBindings` relation.""" + registryBindings: RegistryToManyRegistryBindingFilter + + """`registryBindings` exist.""" + registryBindingsExist: Boolean + + """Filter by the object’s `registryGrants` relation.""" + registryGrants: RegistryToManyRegistryGrantFilter + + """`registryGrants` exist.""" + registryGrantsExist: Boolean + + """Filter by the object’s `role` field.""" + role: StringFilter + + """Filter by the object’s `status` field.""" + status: StringFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: PlatformFunctionInvocationFilter - ): PlatformFunctionInvocationConnection + """Filter by the object’s `updatedByPrincipal` field.""" + updatedByPrincipal: UUIDFilter +} - """Reads and enables pagination through a set of `PlatformInfraCommit`.""" - platformInfraCommits( - """Read all values in the set after (below) this cursor.""" - after: Cursor +"""Grants that make a registry usable by one scope""" +type RegistryGrant { + """Endpoint actions this grant allows (read, write)""" + actions: [String]! + createdAt: Datetime + createdByPrincipal: UUID - """Read all values in the set before (above) this cursor.""" - before: Cursor + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! - """Only read the first `n` values of the set.""" - first: Int + """When this grant stops applying (NULL never expires)""" + expiresAt: Datetime - """Only read the last `n` values of the set.""" - last: Int + """User who issued this grant""" + grantedBy: UUID - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int + """Scope key of the grantee (a database_id or an entity_id)""" + granteeKey: UUID! - """The method to use when ordering `PlatformInfraCommit`.""" - orderBy: [PlatformInfraCommitOrderBy!] = [PRIMARY_KEY_ASC] + """Scope tier of the grantee (database, org, app, platform)""" + granteeScope: String! + id: UUID! - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: PlatformInfraCommitFilter - ): PlatformInfraCommitConnection + """Reads a single `Registry` that is related to this `RegistryGrant`.""" + registry: Registry + """Registry this grant applies to""" + registryId: UUID! + updatedAt: Datetime + updatedByPrincipal: UUID +} + +"""A connection to a list of `RegistryGrant` values.""" +type RegistryGrantConnection { """ - Reads and enables pagination through a set of `PlatformInfraGetAllTreeNodesRecord`. + A list of edges which contains the `RegistryGrant` and cursor to aid in pagination. """ - platformInfraGetAllTreeNodes( - """Read all values in the set after (below) this cursor.""" - after: Cursor + edges: [RegistryGrantEdge]! - """Only read the first `n` values of the set.""" - first: Int - id: UUID + """A list of `RegistryGrant` objects.""" + nodes: [RegistryGrant]! - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int - sId: UUID - ): PlatformInfraGetAllTreeNodesConnection - platformInfraGetNodeAtPath(id: UUID, path: [String], sId: UUID): PlatformInfraObject + """Information to aid in pagination.""" + pageInfo: PageInfo! - """Reads and enables pagination through a set of `PlatformInfraObject`.""" - platformInfraObjects( - """Read all values in the set after (below) this cursor.""" - after: Cursor + """The count of *all* `RegistryGrant` you could get from the connection.""" + totalCount: Int! +} - """Read all values in the set before (above) this cursor.""" - before: Cursor +"""A `RegistryGrant` edge in the connection.""" +type RegistryGrantEdge { + """A cursor for use in pagination.""" + cursor: Cursor - """Only read the first `n` values of the set.""" - first: Int + """The `RegistryGrant` at the end of the edge.""" + node: RegistryGrant +} - """Only read the last `n` values of the set.""" - last: Int +""" +A filter to be used against `RegistryGrant` object types. All fields are combined with a logical ‘and.’ +""" +input RegistryGrantFilter { + """Filter by the object’s `actions` field.""" + actions: StringListFilter - """ - 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 all expressions in this list.""" + and: [RegistryGrantFilter!] - """The method to use when ordering `PlatformInfraObject`.""" - orderBy: [PlatformInfraObjectOrderBy!] = [PRIMARY_KEY_ASC] + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: PlatformInfraObjectFilter - ): PlatformInfraObjectConnection + """Filter by the object’s `createdByPrincipal` field.""" + createdByPrincipal: UUIDFilter - """Reads and enables pagination through a set of `PlatformInfraRef`.""" - platformInfraRefs( - """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 `expiresAt` field.""" + expiresAt: DatetimeFilter - """Only read the first `n` values of the set.""" - first: Int + """Filter by the object’s `grantedBy` field.""" + grantedBy: UUIDFilter - """Only read the last `n` values of the set.""" - last: Int + """Filter by the object’s `granteeKey` field.""" + granteeKey: 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 `granteeScope` field.""" + granteeScope: StringFilter - """The method to use when ordering `PlatformInfraRef`.""" - orderBy: [PlatformInfraRefOrderBy!] = [PRIMARY_KEY_ASC] + """Filter by the object’s `id` field.""" + id: UUIDFilter - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: PlatformInfraRefFilter - ): PlatformInfraRefConnection + """Negates the expression.""" + not: RegistryGrantFilter - """Reads and enables pagination through a set of `PlatformInfraStore`.""" - platformInfraStores( - """Read all values in the set after (below) this cursor.""" - after: Cursor + """Checks for any expressions in this list.""" + or: [RegistryGrantFilter!] - """Read all values in the set before (above) this cursor.""" - before: Cursor + """Filter by the object’s `registry` relation.""" + registry: RegistryFilter - """Only read the first `n` values of the set.""" - first: Int + """Filter by the object’s `registryId` field.""" + registryId: UUIDFilter - """Only read the last `n` values of the set.""" - last: Int + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter - """ - 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 `updatedByPrincipal` field.""" + updatedByPrincipal: UUIDFilter +} - """The method to use when ordering `PlatformInfraStore`.""" - orderBy: [PlatformInfraStoreOrderBy!] = [PRIMARY_KEY_ASC] +"""An input for mutations affecting `RegistryGrant`""" +input RegistryGrantInput { + """Endpoint actions this grant allows (read, write)""" + actions: [String] + createdAt: Datetime + createdByPrincipal: UUID - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: PlatformInfraStoreFilter - ): PlatformInfraStoreConnection + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! - """ - Reads and enables pagination through a set of `PlatformNamespaceEvent`. - """ - platformNamespaceEvents( - """Read all values in the set after (below) this cursor.""" - after: Cursor + """When this grant stops applying (NULL never expires)""" + expiresAt: Datetime - """Read all values in the set before (above) this cursor.""" - before: Cursor + """User who issued this grant""" + grantedBy: UUID - """Only read the first `n` values of the set.""" - first: Int + """Scope key of the grantee (a database_id or an entity_id)""" + granteeKey: UUID! - """Only read the last `n` values of the set.""" - last: Int + """Scope tier of the grantee (database, org, app, platform)""" + granteeScope: String! + id: UUID - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int + """Registry this grant applies to""" + registryId: UUID! + updatedAt: Datetime + updatedByPrincipal: UUID +} - """The method to use when ordering `PlatformNamespaceEvent`.""" - orderBy: [PlatformNamespaceEventOrderBy!] = [PRIMARY_KEY_ASC] +"""Methods to use when ordering `RegistryGrant`.""" +enum RegistryGrantOrderBy { + ACTIONS_ASC + ACTIONS_DESC + CREATED_AT_ASC + CREATED_AT_DESC + CREATED_BY_PRINCIPAL_ASC + CREATED_BY_PRINCIPAL_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + EXPIRES_AT_ASC + EXPIRES_AT_DESC + GRANTED_BY_ASC + GRANTED_BY_DESC + GRANTEE_KEY_ASC + GRANTEE_KEY_DESC + GRANTEE_SCOPE_ASC + GRANTEE_SCOPE_DESC + ID_ASC + ID_DESC + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + REGISTRY_ID_ASC + REGISTRY_ID_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + UPDATED_BY_PRINCIPAL_ASC + UPDATED_BY_PRINCIPAL_DESC +} - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: PlatformNamespaceEventFilter - ): PlatformNamespaceEventConnection +""" +Represents an update to a `RegistryGrant`. Fields that are set will be updated. +""" +input RegistryGrantPatch { + """Endpoint actions this grant allows (read, write)""" + actions: [String] + createdAt: Datetime + createdByPrincipal: UUID - """Reads and enables pagination through a set of `PlatformNamespace`.""" - platformNamespaces( - """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 + """When this grant stops applying (NULL never expires)""" + expiresAt: Datetime - """Only read the first `n` values of the set.""" - first: Int + """User who issued this grant""" + grantedBy: UUID - """Only read the last `n` values of the set.""" - last: Int + """Scope key of the grantee (a database_id or an entity_id)""" + granteeKey: UUID - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int + """Scope tier of the grantee (database, org, app, platform)""" + granteeScope: String + id: UUID - """The method to use when ordering `PlatformNamespace`.""" - orderBy: [PlatformNamespaceOrderBy!] = [PRIMARY_KEY_ASC] + """Registry this grant applies to""" + registryId: UUID + updatedAt: Datetime + updatedByPrincipal: UUID +} - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: PlatformNamespaceFilter - ): PlatformNamespaceConnection +"""An input for mutations affecting `Registry`""" +input RegistryInput { + """How a client authenticates to this registry (none, basic, token)""" + authMode: String """ - Reads and enables pagination through a set of `PlatformResourceDeclaredCapacity`. + Path prefix within the host (npm scope, OCI project); NULL = the host root """ - platformResourceDeclaredCapacities( - """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 + basePath: String + createdAt: Datetime + createdByPrincipal: UUID - """The method to use when ordering `PlatformResourceDeclaredCapacity`.""" - orderBy: [PlatformResourceDeclaredCapacityOrderBy!] = [NATURAL] + """ + Name of the infra secret carrying this registry's credential (NULL when auth_mode = none) + """ + credentialSecretName: String - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: PlatformResourceDeclaredCapacityFilter - ): PlatformResourceDeclaredCapacityConnection + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! """ - Reads and enables pagination through a set of `PlatformResourceDefinition`. + Registry host, without a scheme (e.g. ghcr.io, registry.npmjs.org); required unless role is source, where it is the optional requested host and is stamped with the provisioned one """ - platformResourceDefinitions( - """Read all values in the set after (below) this cursor.""" - after: Cursor + host: String + id: UUID - """Read all values in the set before (above) this cursor.""" - before: Cursor + """ + Resource installation running this registry (NULL for an external registry) + """ + installationId: UUID - """Only read the first `n` values of the set.""" - first: Int + """Whether this registry is published for use by any scope""" + isPublished: Boolean - """Only read the last `n` values of the set.""" - last: Int + """Artifact ecosystem this registry serves (oci, npm)""" + kind: String! - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int + """Labels for selecting registries (lane, region, mirror role)""" + labels: JSON - """The method to use when ordering `PlatformResourceDefinition`.""" - orderBy: [PlatformResourceDefinitionOrderBy!] = [PRIMARY_KEY_ASC] + """ + Message from the last failed provision/deprovision attempt (NULL when healthy) + """ + lastError: String - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: PlatformResourceDefinitionFilter - ): PlatformResourceDefinitionConnection + """Freeform metadata (mirror-of pointer, rate limits, contact)""" + metadata: JSON - """Reads and enables pagination through a set of `PlatformResourceEvent`.""" - platformResourceEvents( - """Read all values in the set after (below) this cursor.""" - after: Cursor + """Human-readable registry name (e.g. github-container-registry)""" + name: String! - """Read all values in the set before (above) this cursor.""" - before: Cursor + """Whether this registry is reserved for platform-internal use""" + platformOnly: Boolean - """Only read the first `n` values of the set.""" - first: Int + """ + Role in this scope: source (the push target), cache (read-through mirror), external (pull only) + """ + role: String - """Only read the last `n` values of the set.""" - last: Int + """ + Provisioning state (pending, provisioning, active, failed); rows the platform does not create are active on insert + """ + status: String + updatedAt: Datetime + updatedByPrincipal: UUID +} - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int +"""Methods to use when ordering `Registry`.""" +enum RegistryOrderBy { + AUTH_MODE_ASC + AUTH_MODE_DESC + BASE_PATH_ASC + BASE_PATH_DESC + CREATED_AT_ASC + CREATED_AT_DESC + CREATED_BY_PRINCIPAL_ASC + CREATED_BY_PRINCIPAL_DESC + CREDENTIAL_SECRET_NAME_ASC + CREDENTIAL_SECRET_NAME_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + HOST_ASC + HOST_DESC + ID_ASC + ID_DESC + INSTALLATION_ID_ASC + INSTALLATION_ID_DESC + IS_PUBLISHED_ASC + IS_PUBLISHED_DESC + KIND_ASC + KIND_DESC + LABELS_ASC + LABELS_DESC + LAST_ERROR_ASC + LAST_ERROR_DESC + METADATA_ASC + METADATA_DESC + NAME_ASC + NAME_DESC + NATURAL + PLATFORM_ONLY_ASC + PLATFORM_ONLY_DESC + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ROLE_ASC + ROLE_DESC + STATUS_ASC + STATUS_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + UPDATED_BY_PRINCIPAL_ASC + UPDATED_BY_PRINCIPAL_DESC +} - """The method to use when ordering `PlatformResourceEvent`.""" - orderBy: [PlatformResourceEventOrderBy!] = [PRIMARY_KEY_ASC] +""" +Represents an update to a `Registry`. Fields that are set will be updated. +""" +input RegistryPatch { + """How a client authenticates to this registry (none, basic, token)""" + authMode: String - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: PlatformResourceEventFilter - ): PlatformResourceEventConnection + """ + Path prefix within the host (npm scope, OCI project); NULL = the host root + """ + basePath: String + createdAt: Datetime + createdByPrincipal: UUID """ - Reads and enables pagination through a set of `PlatformResourceInstallation`. + Name of the infra secret carrying this registry's credential (NULL when auth_mode = none) """ - platformResourceInstallations( - """Read all values in the set after (below) this cursor.""" - after: Cursor + credentialSecretName: String - """Read all values in the set before (above) this cursor.""" - before: Cursor + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID - """Only read the first `n` values of the set.""" - first: Int + """ + Registry host, without a scheme (e.g. ghcr.io, registry.npmjs.org); required unless role is source, where it is the optional requested host and is stamped with the provisioned one + """ + host: String + id: UUID - """Only read the last `n` values of the set.""" - last: Int + """ + Resource installation running this registry (NULL for an external registry) + """ + installationId: UUID - """ - 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 registry is published for use by any scope""" + isPublished: Boolean - """The method to use when ordering `PlatformResourceInstallation`.""" - orderBy: [PlatformResourceInstallationOrderBy!] = [PRIMARY_KEY_ASC] + """Artifact ecosystem this registry serves (oci, npm)""" + kind: String - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: PlatformResourceInstallationFilter - ): PlatformResourceInstallationConnection + """Labels for selecting registries (lane, region, mirror role)""" + labels: JSON """ - Reads and enables pagination through a set of `PlatformResourceStatusCheck`. + Message from the last failed provision/deprovision attempt (NULL when healthy) """ - platformResourceStatusChecks( - """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 + lastError: String - """Only read the last `n` values of the set.""" - last: Int + """Freeform metadata (mirror-of pointer, rate limits, contact)""" + metadata: JSON - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int + """Human-readable registry name (e.g. github-container-registry)""" + name: String - """The method to use when ordering `PlatformResourceStatusCheck`.""" - orderBy: [PlatformResourceStatusCheckOrderBy!] = [PRIMARY_KEY_ASC] + """Whether this registry is reserved for platform-internal use""" + platformOnly: Boolean - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: PlatformResourceStatusCheckFilter - ): PlatformResourceStatusCheckConnection + """ + Role in this scope: source (the push target), cache (read-through mirror), external (pull only) + """ + role: String """ - Reads and enables pagination through a set of `PlatformResourceUsageLog`. + Provisioning state (pending, provisioning, active, failed); rows the platform does not create are active on insert """ - platformResourceUsageLogs( - """Read all values in the set after (below) this cursor.""" - after: Cursor + status: String + updatedAt: Datetime + updatedByPrincipal: UUID +} - """Read all values in the set before (above) this cursor.""" - before: Cursor +""" +A filter to be used against many `RegistryBinding` object types. All fields are combined with a logical ‘and.’ +""" +input RegistryToManyRegistryBindingFilter { + """Filters to entities where every related entity matches.""" + every: RegistryBindingFilter - """Only read the first `n` values of the set.""" - first: Int + """Filters to entities where no related entity matches.""" + none: RegistryBindingFilter - """Only read the last `n` values of the set.""" - last: Int + """Filters to entities where at least one related entity matches.""" + some: RegistryBindingFilter +} - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int +""" +A filter to be used against many `RegistryGrant` object types. All fields are combined with a logical ‘and.’ +""" +input RegistryToManyRegistryGrantFilter { + """Filters to entities where every related entity matches.""" + every: RegistryGrantFilter - """The method to use when ordering `PlatformResourceUsageLog`.""" - orderBy: [PlatformResourceUsageLogOrderBy!] = [PRIMARY_KEY_ASC] + """Filters to entities where no related entity matches.""" + none: RegistryGrantFilter - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: PlatformResourceUsageLogFilter - ): PlatformResourceUsageLogConnection + """Filters to entities where at least one related entity matches.""" + some: RegistryGrantFilter +} - """ - Reads and enables pagination through a set of `PlatformResourceUsageSummary`. - """ - platformResourceUsageSummaries( +"""Source repositories, hosted locally or on an external provider""" +type Repository { + """Reads and enables pagination through a set of `Build`.""" + builds( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -22876,79 +44558,82 @@ type Query { """ offset: Int - """The method to use when ordering `PlatformResourceUsageSummary`.""" - orderBy: [PlatformResourceUsageSummaryOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `Build`.""" + orderBy: [BuildOrderBy!] = [PRIMARY_KEY_ASC] """ A filter to be used in determining which values should be returned by the collection. """ - where: PlatformResourceUsageSummaryFilter - ): PlatformResourceUsageSummaryConnection + where: BuildFilter + ): BuildConnection! + + """URL a workspace clones from (NULL until the repository is provisioned)""" + cloneUrl: String """ - Reads and enables pagination through a set of `PlatformResourceUtilization`. + TRGM similarity when searching `cloneUrl`. Returns null when no trgm search filter is active. """ - platformResourceUtilizations( - """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 + cloneUrlTrgmSimilarity: Float + createdAt: Datetime + createdBy: UUID + createdByPrincipal: UUID - """The method to use when ordering `PlatformResourceUtilization`.""" - orderBy: [PlatformResourceUtilizationOrderBy!] = [NATURAL] + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: PlatformResourceUtilizationFilter - ): PlatformResourceUtilizationConnection + """Branch a clone checks out and a proposal targets by default""" + defaultBranch: String! - """Reads and enables pagination through a set of `PlatformResource`.""" - platformResources( - """Read all values in the set after (below) this cursor.""" - after: Cursor + """ + TRGM similarity when searching `defaultBranch`. Returns null when no trgm search filter is active. + """ + defaultBranchTrgmSimilarity: Float - """Read all values in the set before (above) this cursor.""" - before: Cursor + """What this repository holds""" + description: String - """Only read the first `n` values of the set.""" - first: Int + """ + TRGM similarity when searching `description`. Returns null when no trgm search filter is active. + """ + descriptionTrgmSimilarity: Float + embedding: Vector + embeddingUpdatedAt: Datetime - """Only read the last `n` values of the set.""" - last: Int + """ + VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. + """ + embeddingVectorDistance: Float - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int + """ + Identifier of this repository in the external provider (NULL for local) + """ + externalId: String - """The method to use when ordering `PlatformResource`.""" - orderBy: [PlatformResourceOrderBy!] = [PRIMARY_KEY_ASC] + """ + TRGM similarity when searching `externalId`. Returns null when no trgm search filter is active. + """ + externalIdTrgmSimilarity: Float + id: UUID! - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: PlatformResourceFilter - ): PlatformResourceConnection + """Whether this repository is retired: readable, not written to""" + isArchived: Boolean! + + """Provider detail (installation id, topics, external URLs)""" + metadata: JSON + + """Human-readable repository name""" + name: String! """ - Reads and enables pagination through a set of `PlatformResourcesHealth`. + TRGM similarity when searching `name`. Returns null when no trgm search filter is active. """ - platformResourcesHealths( + nameTrgmSimilarity: Float + + """User who owns this repository""" + ownerId: UUID + + """Reads and enables pagination through a set of `Proposal`.""" + proposals( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -22967,19 +44652,25 @@ type Query { """ offset: Int - """The method to use when ordering `PlatformResourcesHealth`.""" - orderBy: [PlatformResourcesHealthOrderBy!] = [NATURAL] + """The method to use when ordering `Proposal`.""" + orderBy: [ProposalOrderBy!] = [PRIMARY_KEY_ASC] """ A filter to be used in determining which values should be returned by the collection. """ - where: PlatformResourcesHealthFilter - ): PlatformResourcesHealthConnection + where: ProposalFilter + ): ProposalConnection! + + """Where the repository lives: local (platform git server) or github""" + provider: String! """ - Reads and enables pagination through a set of `PlatformResourcesRequirementsState`. + TRGM similarity when searching `provider`. Returns null when no trgm search filter is active. """ - platformResourcesRequirementsStates( + providerTrgmSimilarity: Float + + """Reads and enables pagination through a set of `RepositoryEvent`.""" + repositoryEvents( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -22998,19 +44689,19 @@ type Query { """ offset: Int - """The method to use when ordering `PlatformResourcesRequirementsState`.""" - orderBy: [PlatformResourcesRequirementsStateOrderBy!] = [NATURAL] + """The method to use when ordering `RepositoryEvent`.""" + orderBy: [RepositoryEventOrderBy!] = [PRIMARY_KEY_ASC] """ A filter to be used in determining which values should be returned by the collection. """ - where: PlatformResourcesRequirementsStateFilter - ): PlatformResourcesRequirementsStateConnection + where: RepositoryEventFilter + ): RepositoryEventConnection! """ - Reads and enables pagination through a set of `PlatformResourcesResolvedRequirement`. + Reads and enables pagination through a set of `RepositoryRequiredCheck`. """ - platformResourcesResolvedRequirements( + repositoryRequiredChecks( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -23029,21 +44720,17 @@ type Query { """ offset: Int - """ - The method to use when ordering `PlatformResourcesResolvedRequirement`. - """ - orderBy: [PlatformResourcesResolvedRequirementOrderBy!] = [NATURAL] + """The method to use when ordering `RepositoryRequiredCheck`.""" + orderBy: [RepositoryRequiredCheckOrderBy!] = [PRIMARY_KEY_ASC] """ A filter to be used in determining which values should be returned by the collection. """ - where: PlatformResourcesResolvedRequirementFilter - ): PlatformResourcesResolvedRequirementConnection + where: RepositoryRequiredCheckFilter + ): RepositoryRequiredCheckConnection! - """ - Reads and enables pagination through a set of `PlatformWebhookEndpoint`. - """ - platformWebhookEndpoints( + """Reads and enables pagination through a set of `RepositoryWorkflow`.""" + repositoryWorkflows( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -23062,17 +44749,83 @@ type Query { """ offset: Int - """The method to use when ordering `PlatformWebhookEndpoint`.""" - orderBy: [PlatformWebhookEndpointOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `RepositoryWorkflow`.""" + orderBy: [RepositoryWorkflowOrderBy!] = [PRIMARY_KEY_ASC] """ A filter to be used in determining which values should be returned by the collection. """ - where: PlatformWebhookEndpointFilter - ): PlatformWebhookEndpointConnection + where: RepositoryWorkflowFilter + ): RepositoryWorkflowConnection! + search: FullText - """Reads and enables pagination through a set of `PlatformWebhookEvent`.""" - platformWebhookEvents( + """ + Composite search relevance score (0..1, higher = more relevant). Computed using Reciprocal Rank Fusion (RRF) across all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. + """ + searchScore: Float + + """ + TSV rank when searching `search`. Returns null when no tsv search filter is active. + """ + searchTsvRank: Float + + """URL-safe identifier, unique within the owning scope""" + slug: String! + + """ + TRGM similarity when searching `slug`. Returns null when no trgm search filter is active. + """ + slugTrgmSimilarity: Float + updatedAt: Datetime + updatedBy: UUID + updatedByPrincipal: UUID + + """ + Read reach: private (owner), internal (scope members), public (any authenticated actor) + """ + visibility: String! + + """ + TRGM similarity when searching `visibility`. Returns null when no trgm search filter is active. + """ + visibilityTrgmSimilarity: Float +} + +"""A connection to a list of `Repository` values.""" +type RepositoryConnection { + """ + A list of edges which contains the `Repository` and cursor to aid in pagination. + """ + edges: [RepositoryEdge]! + + """A list of `Repository` objects.""" + nodes: [Repository]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `Repository` you could get from the connection.""" + totalCount: Int! +} + +"""A `Repository` edge in the connection.""" +type RepositoryEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `Repository` at the end of the edge.""" + node: Repository +} + +"""Normalized repository events from local hooks and external providers""" +type RepositoryEvent { + """ + Authenticated actor behind the event (NULL when only the sending system was proven) + """ + actorId: UUID + + """Reads and enables pagination through a set of `Build`.""" + buildsByEventId( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -23091,78 +44844,833 @@ type Query { """ offset: Int - """The method to use when ordering `PlatformWebhookEvent`.""" - orderBy: [PlatformWebhookEventOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `Build`.""" + orderBy: [BuildOrderBy!] = [PRIMARY_KEY_ASC] """ A filter to be used in determining which values should be returned by the collection. """ - where: PlatformWebhookEventFilter - ): PlatformWebhookEventConnection - readFunctionGraph(graphId: UUID): JSON + where: BuildFilter + ): BuildConnection! + + """Commit the ref points at after the event""" + commitSha: String + createdAt: Datetime + createdByPrincipal: UUID + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! """ - Reads and enables pagination through a set of `ResourceDeclaredCapacity`. + Provider delivery identifier, for redelivery dedupe (NULL for local hooks) """ - resourceDeclaredCapacities( - """Read all values in the set after (below) this cursor.""" - after: Cursor + deliveryId: String + + """What happened: push, tag, pr_open, pr_merge, proposal_comment, manual""" + eventType: String! + id: UUID! + + """ + Unverified provider detail (payload login, commit author, external URLs) + """ + metadata: JSON + + """Normalized event body the workflows read""" + payload: JSON! + + """Git ref the event concerns (refs/heads/main)""" + ref: String + + """Reads a single `Repository` that is related to this `RepositoryEvent`.""" + repository: Repository + + """Repository this event happened to""" + repositoryId: UUID! + updatedAt: Datetime + updatedByPrincipal: UUID +} + +"""A connection to a list of `RepositoryEvent` values.""" +type RepositoryEventConnection { + """ + A list of edges which contains the `RepositoryEvent` and cursor to aid in pagination. + """ + edges: [RepositoryEventEdge]! + + """A list of `RepositoryEvent` objects.""" + nodes: [RepositoryEvent]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `RepositoryEvent` you could get from the connection. + """ + totalCount: Int! +} + +"""A `RepositoryEvent` edge in the connection.""" +type RepositoryEventEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `RepositoryEvent` at the end of the edge.""" + node: RepositoryEvent +} + +""" +A filter to be used against `RepositoryEvent` object types. All fields are combined with a logical ‘and.’ +""" +input RepositoryEventFilter { + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter + + """Checks for all expressions in this list.""" + and: [RepositoryEventFilter!] + + """Filter by the object’s `buildsByEventId` relation.""" + buildsByEventId: RepositoryEventToManyBuildFilter + + """`buildsByEventId` exist.""" + buildsByEventIdExist: Boolean + + """Filter by the object’s `commitSha` field.""" + commitSha: StringFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `createdByPrincipal` field.""" + createdByPrincipal: UUIDFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `deliveryId` field.""" + deliveryId: StringFilter + + """Filter by the object’s `eventType` field.""" + eventType: StringFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `metadata` field.""" + metadata: JSONFilter + + """Negates the expression.""" + not: RepositoryEventFilter + + """Checks for any expressions in this list.""" + or: [RepositoryEventFilter!] + + """Filter by the object’s `payload` field.""" + payload: JSONFilter + + """Filter by the object’s `ref` field.""" + ref: StringFilter + + """Filter by the object’s `repository` relation.""" + repository: RepositoryFilter + + """Filter by the object’s `repositoryId` field.""" + repositoryId: UUIDFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + + """Filter by the object’s `updatedByPrincipal` field.""" + updatedByPrincipal: UUIDFilter +} + +"""An input for mutations affecting `RepositoryEvent`""" +input RepositoryEventInput { + """ + Authenticated actor behind the event (NULL when only the sending system was proven) + """ + actorId: UUID + + """Commit the ref points at after the event""" + commitSha: String + createdAt: Datetime + createdByPrincipal: UUID + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! + + """ + Provider delivery identifier, for redelivery dedupe (NULL for local hooks) + """ + deliveryId: String + + """What happened: push, tag, pr_open, pr_merge, proposal_comment, manual""" + eventType: String! + id: UUID + + """ + Unverified provider detail (payload login, commit author, external URLs) + """ + metadata: JSON + + """Normalized event body the workflows read""" + payload: JSON + + """Git ref the event concerns (refs/heads/main)""" + ref: String + + """Repository this event happened to""" + repositoryId: UUID! + updatedAt: Datetime + updatedByPrincipal: UUID +} + +"""Methods to use when ordering `RepositoryEvent`.""" +enum RepositoryEventOrderBy { + ACTOR_ID_ASC + ACTOR_ID_DESC + COMMIT_SHA_ASC + COMMIT_SHA_DESC + CREATED_AT_ASC + CREATED_AT_DESC + CREATED_BY_PRINCIPAL_ASC + CREATED_BY_PRINCIPAL_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + DELIVERY_ID_ASC + DELIVERY_ID_DESC + EVENT_TYPE_ASC + EVENT_TYPE_DESC + ID_ASC + ID_DESC + METADATA_ASC + METADATA_DESC + NATURAL + PAYLOAD_ASC + PAYLOAD_DESC + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + REF_ASC + REF_DESC + REPOSITORY_ID_ASC + REPOSITORY_ID_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + UPDATED_BY_PRINCIPAL_ASC + UPDATED_BY_PRINCIPAL_DESC +} + +""" +Represents an update to a `RepositoryEvent`. Fields that are set will be updated. +""" +input RepositoryEventPatch { + """ + Authenticated actor behind the event (NULL when only the sending system was proven) + """ + actorId: UUID + + """Commit the ref points at after the event""" + commitSha: String + createdAt: Datetime + createdByPrincipal: UUID + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID + + """ + Provider delivery identifier, for redelivery dedupe (NULL for local hooks) + """ + deliveryId: String + + """What happened: push, tag, pr_open, pr_merge, proposal_comment, manual""" + eventType: String + id: UUID + + """ + Unverified provider detail (payload login, commit author, external URLs) + """ + metadata: JSON + + """Normalized event body the workflows read""" + payload: JSON + + """Git ref the event concerns (refs/heads/main)""" + ref: String + + """Repository this event happened to""" + repositoryId: UUID + updatedAt: Datetime + updatedByPrincipal: UUID +} + +""" +A filter to be used against many `Build` object types. All fields are combined with a logical ‘and.’ +""" +input RepositoryEventToManyBuildFilter { + """Filters to entities where every related entity matches.""" + every: BuildFilter + + """Filters to entities where no related entity matches.""" + none: BuildFilter + + """Filters to entities where at least one related entity matches.""" + some: BuildFilter +} + +""" +A filter to be used against `Repository` object types. All fields are combined with a logical ‘and.’ +""" +input RepositoryFilter { + """Checks for all expressions in this list.""" + and: [RepositoryFilter!] + + """Filter by the object’s `builds` relation.""" + builds: RepositoryToManyBuildFilter + + """`builds` exist.""" + buildsExist: Boolean + + """Filter by the object’s `cloneUrl` field.""" + cloneUrl: StringTrgmFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `createdBy` field.""" + createdBy: UUIDFilter + + """Filter by the object’s `createdByPrincipal` field.""" + createdByPrincipal: UUIDFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `defaultBranch` field.""" + defaultBranch: StringTrgmFilter + + """Filter by the object’s `description` field.""" + description: StringTrgmFilter + + """Filter by the object’s `embedding` field.""" + embedding: VectorFilter + + """Filter by the object’s `embeddingUpdatedAt` field.""" + embeddingUpdatedAt: DatetimeFilter + + """Filter by the object’s `externalId` field.""" + externalId: StringTrgmFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `isArchived` field.""" + isArchived: BooleanFilter + + """Filter by the object’s `metadata` field.""" + metadata: JSONFilter + + """Filter by the object’s `name` field.""" + name: StringTrgmFilter + + """Negates the expression.""" + not: RepositoryFilter + + """Checks for any expressions in this list.""" + or: [RepositoryFilter!] + + """Filter by the object’s `ownerId` field.""" + ownerId: UUIDFilter + + """Filter by the object’s `proposals` relation.""" + proposals: RepositoryToManyProposalFilter + + """`proposals` exist.""" + proposalsExist: Boolean + + """Filter by the object’s `provider` field.""" + provider: StringTrgmFilter + + """Filter by the object’s `repositoryEvents` relation.""" + repositoryEvents: RepositoryToManyRepositoryEventFilter + + """`repositoryEvents` exist.""" + repositoryEventsExist: Boolean + + """Filter by the object’s `repositoryRequiredChecks` relation.""" + repositoryRequiredChecks: RepositoryToManyRepositoryRequiredCheckFilter + + """`repositoryRequiredChecks` exist.""" + repositoryRequiredChecksExist: Boolean + + """Filter by the object’s `repositoryWorkflows` relation.""" + repositoryWorkflows: RepositoryToManyRepositoryWorkflowFilter + + """`repositoryWorkflows` exist.""" + repositoryWorkflowsExist: Boolean + + """Filter by the object’s `search` field.""" + search: FullTextFilter + + """Filter by the object’s `slug` field.""" + slug: StringTrgmFilter + + """TRGM search on the `clone_url` column.""" + trgmCloneUrl: TrgmSearchInput + + """TRGM search on the `default_branch` column.""" + trgmDefaultBranch: TrgmSearchInput + + """TRGM search on the `description` column.""" + trgmDescription: TrgmSearchInput + + """TRGM search on the `external_id` column.""" + trgmExternalId: TrgmSearchInput + + """TRGM search on the `name` column.""" + trgmName: TrgmSearchInput + + """TRGM search on the `provider` column.""" + trgmProvider: TrgmSearchInput + + """TRGM search on the `slug` column.""" + trgmSlug: TrgmSearchInput + + """TRGM search on the `visibility` column.""" + trgmVisibility: TrgmSearchInput + + """TSV search on the `search` column.""" + tsvSearch: String + + """ + Composite unified search. Provide a search string and it will be dispatched to + all text-compatible search algorithms (tsvector, BM25, pg_trgm) + simultaneously. When the LLM plugin is active, pgvector also participates via + auto-embedding. Rows matching ANY algorithm are returned. All matching score + fields are populated. + """ + unifiedSearch: String + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + + """Filter by the object’s `updatedBy` field.""" + updatedBy: UUIDFilter + + """Filter by the object’s `updatedByPrincipal` field.""" + updatedByPrincipal: UUIDFilter + + """VECTOR search on the `embedding` column.""" + vectorEmbedding: VectorNearbyInput + + """Filter by the object’s `visibility` field.""" + visibility: StringTrgmFilter +} + +"""An input for mutations affecting `Repository`""" +input RepositoryInput { + """URL a workspace clones from (NULL until the repository is provisioned)""" + cloneUrl: String + createdAt: Datetime + createdBy: UUID + createdByPrincipal: UUID + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! + + """Branch a clone checks out and a proposal targets by default""" + defaultBranch: String + + """What this repository holds""" + description: String + embedding: Vector + + """ + Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. + """ + embeddingText: String + + """ + Identifier of this repository in the external provider (NULL for local) + """ + externalId: String + id: UUID + + """Whether this repository is retired: readable, not written to""" + isArchived: Boolean + + """Provider detail (installation id, topics, external URLs)""" + metadata: JSON + + """Human-readable repository name""" + name: String! + + """User who owns this repository""" + ownerId: UUID + + """Where the repository lives: local (platform git server) or github""" + provider: String + + """URL-safe identifier, unique within the owning scope""" + slug: String! + updatedAt: Datetime + updatedBy: UUID + updatedByPrincipal: UUID + + """ + Read reach: private (owner), internal (scope members), public (any authenticated actor) + """ + visibility: String +} + +"""Methods to use when ordering `Repository`.""" +enum RepositoryOrderBy { + CLONE_URL_ASC + CLONE_URL_DESC + CLONE_URL_TRGM_SIMILARITY_ASC + CLONE_URL_TRGM_SIMILARITY_DESC + CREATED_AT_ASC + CREATED_AT_DESC + CREATED_BY_ASC + CREATED_BY_DESC + CREATED_BY_PRINCIPAL_ASC + CREATED_BY_PRINCIPAL_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + DEFAULT_BRANCH_ASC + DEFAULT_BRANCH_DESC + DEFAULT_BRANCH_TRGM_SIMILARITY_ASC + DEFAULT_BRANCH_TRGM_SIMILARITY_DESC + DESCRIPTION_ASC + DESCRIPTION_DESC + DESCRIPTION_TRGM_SIMILARITY_ASC + DESCRIPTION_TRGM_SIMILARITY_DESC + EMBEDDING_ASC + EMBEDDING_DESC + EMBEDDING_UPDATED_AT_ASC + EMBEDDING_UPDATED_AT_DESC + EMBEDDING_VECTOR_DISTANCE_ASC + EMBEDDING_VECTOR_DISTANCE_DESC + EXTERNAL_ID_ASC + EXTERNAL_ID_DESC + EXTERNAL_ID_TRGM_SIMILARITY_ASC + EXTERNAL_ID_TRGM_SIMILARITY_DESC + ID_ASC + ID_DESC + IS_ARCHIVED_ASC + IS_ARCHIVED_DESC + METADATA_ASC + METADATA_DESC + NAME_ASC + NAME_DESC + NAME_TRGM_SIMILARITY_ASC + NAME_TRGM_SIMILARITY_DESC + NATURAL + OWNER_ID_ASC + OWNER_ID_DESC + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + PROVIDER_ASC + PROVIDER_DESC + PROVIDER_TRGM_SIMILARITY_ASC + PROVIDER_TRGM_SIMILARITY_DESC + SEARCH_ASC + SEARCH_DESC + SEARCH_SCORE_ASC + SEARCH_SCORE_DESC + SEARCH_TSV_RANK_ASC + SEARCH_TSV_RANK_DESC + SLUG_ASC + SLUG_DESC + SLUG_TRGM_SIMILARITY_ASC + SLUG_TRGM_SIMILARITY_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + UPDATED_BY_ASC + UPDATED_BY_DESC + UPDATED_BY_PRINCIPAL_ASC + UPDATED_BY_PRINCIPAL_DESC + VISIBILITY_ASC + VISIBILITY_DESC + VISIBILITY_TRGM_SIMILARITY_ASC + VISIBILITY_TRGM_SIMILARITY_DESC +} + +""" +Represents an update to a `Repository`. Fields that are set will be updated. +""" +input RepositoryPatch { + """URL a workspace clones from (NULL until the repository is provisioned)""" + cloneUrl: String + createdAt: Datetime + createdBy: UUID + createdByPrincipal: UUID + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID + + """Branch a clone checks out and a proposal targets by default""" + defaultBranch: String + + """What this repository holds""" + description: String + embedding: Vector + + """ + Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. + """ + embeddingText: String + + """ + Identifier of this repository in the external provider (NULL for local) + """ + externalId: String + id: UUID + + """Whether this repository is retired: readable, not written to""" + isArchived: Boolean + + """Provider detail (installation id, topics, external URLs)""" + metadata: JSON + + """Human-readable repository name""" + name: String + + """User who owns this repository""" + ownerId: UUID + + """Where the repository lives: local (platform git server) or github""" + provider: String + + """URL-safe identifier, unique within the owning scope""" + slug: String + updatedAt: Datetime + updatedBy: UUID + updatedByPrincipal: UUID + + """ + Read reach: private (owner), internal (scope members), public (any authenticated actor) + """ + visibility: String +} + +"""Workflows required to pass before a repository proposal merges""" +type RepositoryRequiredCheck { + createdAt: Datetime + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! + id: UUID! + + """ + Reads a single `Repository` that is related to this `RepositoryRequiredCheck`. + """ + repository: Repository + + """Repository whose merge gate requires this workflow""" + repositoryId: UUID! + updatedAt: Datetime + + """ + Reads a single `RepositoryWorkflow` that is related to this `RepositoryRequiredCheck`. + """ + workflow: RepositoryWorkflow + + """Workflow identity required by this repository gate""" + workflowId: UUID! +} + +"""A connection to a list of `RepositoryRequiredCheck` values.""" +type RepositoryRequiredCheckConnection { + """ + A list of edges which contains the `RepositoryRequiredCheck` and cursor to aid in pagination. + """ + edges: [RepositoryRequiredCheckEdge]! + + """A list of `RepositoryRequiredCheck` objects.""" + nodes: [RepositoryRequiredCheck]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `RepositoryRequiredCheck` you could get from the connection. + """ + totalCount: Int! +} + +"""A `RepositoryRequiredCheck` edge in the connection.""" +type RepositoryRequiredCheckEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `RepositoryRequiredCheck` at the end of the edge.""" + node: RepositoryRequiredCheck +} + +""" +A filter to be used against `RepositoryRequiredCheck` object types. All fields are combined with a logical ‘and.’ +""" +input RepositoryRequiredCheckFilter { + """Checks for all expressions in this list.""" + and: [RepositoryRequiredCheckFilter!] + + """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: RepositoryRequiredCheckFilter + + """Checks for any expressions in this list.""" + or: [RepositoryRequiredCheckFilter!] + + """Filter by the object’s `repository` relation.""" + repository: RepositoryFilter + + """Filter by the object’s `repositoryId` field.""" + repositoryId: UUIDFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + + """Filter by the object’s `workflow` relation.""" + workflow: RepositoryWorkflowFilter + + """Filter by the object’s `workflowId` field.""" + workflowId: UUIDFilter +} + +"""An input for mutations affecting `RepositoryRequiredCheck`""" +input RepositoryRequiredCheckInput { + createdAt: Datetime + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! + id: UUID + + """Repository whose merge gate requires this workflow""" + repositoryId: UUID! + updatedAt: Datetime + + """Workflow identity required by this repository gate""" + workflowId: UUID! +} + +"""Methods to use when ordering `RepositoryRequiredCheck`.""" +enum RepositoryRequiredCheckOrderBy { + CREATED_AT_ASC + CREATED_AT_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + ID_ASC + ID_DESC + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + REPOSITORY_ID_ASC + REPOSITORY_ID_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + WORKFLOW_ID_ASC + WORKFLOW_ID_DESC +} + +""" +Represents an update to a `RepositoryRequiredCheck`. Fields that are set will be updated. +""" +input RepositoryRequiredCheckPatch { + createdAt: Datetime + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID + id: UUID + + """Repository whose merge gate requires this workflow""" + repositoryId: UUID + updatedAt: Datetime + + """Workflow identity required by this repository gate""" + workflowId: UUID +} + +""" +A filter to be used against many `Build` object types. All fields are combined with a logical ‘and.’ +""" +input RepositoryToManyBuildFilter { + """Filters to entities where every related entity matches.""" + every: BuildFilter - """Read all values in the set before (above) this cursor.""" - before: Cursor + """Filters to entities where no related entity matches.""" + none: BuildFilter - """Only read the first `n` values of the set.""" - first: Int + """Filters to entities where at least one related entity matches.""" + some: BuildFilter +} - """Only read the last `n` values of the set.""" - last: Int +""" +A filter to be used against many `Proposal` object types. All fields are combined with a logical ‘and.’ +""" +input RepositoryToManyProposalFilter { + """Filters to entities where every related entity matches.""" + every: ProposalFilter - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int + """Filters to entities where no related entity matches.""" + none: ProposalFilter - """The method to use when ordering `ResourceDeclaredCapacity`.""" - orderBy: [ResourceDeclaredCapacityOrderBy!] = [NATURAL] + """Filters to entities where at least one related entity matches.""" + some: ProposalFilter +} - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: ResourceDeclaredCapacityFilter - ): ResourceDeclaredCapacityConnection +""" +A filter to be used against many `RepositoryEvent` object types. All fields are combined with a logical ‘and.’ +""" +input RepositoryToManyRepositoryEventFilter { + """Filters to entities where every related entity matches.""" + every: RepositoryEventFilter - """Reads and enables pagination through a set of `ResourceDefinition`.""" - resourceDefinitions( - """Read all values in the set after (below) this cursor.""" - after: Cursor + """Filters to entities where no related entity matches.""" + none: RepositoryEventFilter - """Read all values in the set before (above) this cursor.""" - before: Cursor + """Filters to entities where at least one related entity matches.""" + some: RepositoryEventFilter +} - """Only read the first `n` values of the set.""" - first: Int +""" +A filter to be used against many `RepositoryRequiredCheck` object types. All fields are combined with a logical ‘and.’ +""" +input RepositoryToManyRepositoryRequiredCheckFilter { + """Filters to entities where every related entity matches.""" + every: RepositoryRequiredCheckFilter - """Only read the last `n` values of the set.""" - last: Int + """Filters to entities where no related entity matches.""" + none: RepositoryRequiredCheckFilter - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int + """Filters to entities where at least one related entity matches.""" + some: RepositoryRequiredCheckFilter +} - """The method to use when ordering `ResourceDefinition`.""" - orderBy: [ResourceDefinitionOrderBy!] = [PRIMARY_KEY_ASC] +""" +A filter to be used against many `RepositoryWorkflow` object types. All fields are combined with a logical ‘and.’ +""" +input RepositoryToManyRepositoryWorkflowFilter { + """Filters to entities where every related entity matches.""" + every: RepositoryWorkflowFilter - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: ResourceDefinitionFilter - ): ResourceDefinitionConnection + """Filters to entities where no related entity matches.""" + none: RepositoryWorkflowFilter - """Reads and enables pagination through a set of `ResourceEvent`.""" - resourceEvents( + """Filters to entities where at least one related entity matches.""" + some: RepositoryWorkflowFilter +} + +"""Bindings from a repository event to the flow graph that should run""" +type RepositoryWorkflow { + """Reads and enables pagination through a set of `Build`.""" + buildsByWorkflowId( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -23181,46 +45689,67 @@ type Query { """ offset: Int - """The method to use when ordering `ResourceEvent`.""" - orderBy: [ResourceEventOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `Build`.""" + orderBy: [BuildOrderBy!] = [PRIMARY_KEY_ASC] """ A filter to be used in determining which values should be returned by the collection. """ - where: ResourceEventFilter - ): ResourceEventConnection + where: BuildFilter + ): BuildConnection! - """Reads and enables pagination through a set of `ResourceInstallation`.""" - resourceInstallations( - """Read all values in the set after (below) this cursor.""" - after: Cursor + """ + Whether a new build cancels a running build with the same concurrency key instead of queueing + """ + cancelInProgress: Boolean! - """Read all values in the set before (above) this cursor.""" - before: Cursor + """ + Builds of this workflow sharing this key run one at a time (NULL = unlimited) + """ + concurrencyKey: String + createdAt: Datetime + createdBy: UUID + createdByPrincipal: UUID - """Only read the first `n` values of the set.""" - first: Int + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! - """Only read the last `n` values of the set.""" - last: Int + """Event type that fires this workflow""" + eventType: String! - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int + """ + Reads a single `DatabaseFunctionGraph` that is related to this `RepositoryWorkflow`. + """ + graph: DatabaseFunctionGraph - """The method to use when ordering `ResourceInstallation`.""" - orderBy: [ResourceInstallationOrderBy!] = [PRIMARY_KEY_ASC] + """Flow graph to run when this workflow fires""" + graphId: UUID + id: UUID! - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: ResourceInstallationFilter - ): ResourceInstallationConnection + """Static inputs merged into the graph run alongside the event""" + inputs: JSON! - """Reads and enables pagination through a set of `ResourceStatusCheck`.""" - resourceStatusChecks( + """Whether matching events fire this workflow""" + isEnabled: Boolean! + + """Human-readable workflow name""" + name: String! + + """Glob the event ref must match (NULL matches any ref)""" + refPattern: String + + """ + Reads a single `Repository` that is related to this `RepositoryWorkflow`. + """ + repository: Repository + + """Repository whose events this workflow listens to""" + repositoryId: UUID! + + """ + Reads and enables pagination through a set of `RepositoryRequiredCheck`. + """ + repositoryRequiredChecksByWorkflowId( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -23239,279 +45768,326 @@ type Query { """ offset: Int - """The method to use when ordering `ResourceStatusCheck`.""" - orderBy: [ResourceStatusCheckOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `RepositoryRequiredCheck`.""" + orderBy: [RepositoryRequiredCheckOrderBy!] = [PRIMARY_KEY_ASC] """ A filter to be used in determining which values should be returned by the collection. """ - where: ResourceStatusCheckFilter - ): ResourceStatusCheckConnection + where: RepositoryRequiredCheckFilter + ): RepositoryRequiredCheckConnection! - """Reads and enables pagination through a set of `ResourceUsageLog`.""" - resourceUsageLogs( - """Read all values in the set after (below) this cursor.""" - after: Cursor + """ + Secret names this workflow's builds may resolve, intersected with the build lane's realm + """ + requiredSecrets: [String]! - """Read all values in the set before (above) this cursor.""" - before: Cursor + """URL-safe identifier, unique within the repository""" + slug: String! + updatedAt: Datetime + updatedBy: UUID + updatedByPrincipal: UUID +} - """Only read the first `n` values of the set.""" - first: Int +"""A connection to a list of `RepositoryWorkflow` values.""" +type RepositoryWorkflowConnection { + """ + A list of edges which contains the `RepositoryWorkflow` and cursor to aid in pagination. + """ + edges: [RepositoryWorkflowEdge]! - """Only read the last `n` values of the set.""" - last: Int + """A list of `RepositoryWorkflow` objects.""" + nodes: [RepositoryWorkflow]! - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int + """Information to aid in pagination.""" + pageInfo: PageInfo! - """The method to use when ordering `ResourceUsageLog`.""" - orderBy: [ResourceUsageLogOrderBy!] = [PRIMARY_KEY_ASC] + """ + The count of *all* `RepositoryWorkflow` you could get from the connection. + """ + totalCount: Int! +} - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: ResourceUsageLogFilter - ): ResourceUsageLogConnection +"""A `RepositoryWorkflow` edge in the connection.""" +type RepositoryWorkflowEdge { + """A cursor for use in pagination.""" + cursor: Cursor - """Reads and enables pagination through a set of `ResourceUsageSummary`.""" - resourceUsageSummaries( - """Read all values in the set after (below) this cursor.""" - after: Cursor + """The `RepositoryWorkflow` at the end of the edge.""" + node: RepositoryWorkflow +} - """Read all values in the set before (above) this cursor.""" - before: Cursor +""" +A filter to be used against `RepositoryWorkflow` object types. All fields are combined with a logical ‘and.’ +""" +input RepositoryWorkflowFilter { + """Checks for all expressions in this list.""" + and: [RepositoryWorkflowFilter!] - """Only read the first `n` values of the set.""" - first: Int + """Filter by the object’s `buildsByWorkflowId` relation.""" + buildsByWorkflowId: RepositoryWorkflowToManyBuildFilter - """Only read the last `n` values of the set.""" - last: Int + """`buildsByWorkflowId` exist.""" + buildsByWorkflowIdExist: Boolean - """ - 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 `cancelInProgress` field.""" + cancelInProgress: BooleanFilter - """The method to use when ordering `ResourceUsageSummary`.""" - orderBy: [ResourceUsageSummaryOrderBy!] = [PRIMARY_KEY_ASC] + """Filter by the object’s `concurrencyKey` field.""" + concurrencyKey: StringFilter - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: ResourceUsageSummaryFilter - ): ResourceUsageSummaryConnection + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter - """Reads and enables pagination through a set of `ResourceUtilization`.""" - resourceUtilizations( - """Read all values in the set after (below) this cursor.""" - after: Cursor + """Filter by the object’s `createdBy` field.""" + createdBy: UUIDFilter - """Read all values in the set before (above) this cursor.""" - before: Cursor + """Filter by the object’s `createdByPrincipal` field.""" + createdByPrincipal: UUIDFilter - """Only read the first `n` values of the set.""" - first: Int + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter - """Only read the last `n` values of the set.""" - last: Int + """Filter by the object’s `eventType` field.""" + eventType: StringFilter - """ - 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 `graph` relation.""" + graph: DatabaseFunctionGraphFilter - """The method to use when ordering `ResourceUtilization`.""" - orderBy: [ResourceUtilizationOrderBy!] = [NATURAL] + """A related `graph` exists.""" + graphExists: Boolean - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: ResourceUtilizationFilter - ): ResourceUtilizationConnection + """Filter by the object’s `graphId` field.""" + graphId: UUIDFilter - """Reads and enables pagination through a set of `Resource`.""" - resources( - """Read all values in the set after (below) this cursor.""" - after: Cursor + """Filter by the object’s `id` field.""" + id: UUIDFilter - """Read all values in the set before (above) this cursor.""" - before: Cursor + """Filter by the object’s `inputs` field.""" + inputs: JSONFilter - """Only read the first `n` values of the set.""" - first: Int + """Filter by the object’s `isEnabled` field.""" + isEnabled: BooleanFilter - """Only read the last `n` values of the set.""" - last: Int + """Filter by the object’s `name` field.""" + name: StringFilter - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int + """Negates the expression.""" + not: RepositoryWorkflowFilter - """The method to use when ordering `Resource`.""" - orderBy: [ResourceOrderBy!] = [PRIMARY_KEY_ASC] + """Checks for any expressions in this list.""" + or: [RepositoryWorkflowFilter!] - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: ResourceFilter - ): ResourceConnection + """Filter by the object’s `refPattern` field.""" + refPattern: StringFilter - """Reads and enables pagination through a set of `ResourcesHealth`.""" - resourcesHealths( - """Read all values in the set after (below) this cursor.""" - after: Cursor + """Filter by the object’s `repository` relation.""" + repository: RepositoryFilter - """Read all values in the set before (above) this cursor.""" - before: Cursor + """Filter by the object’s `repositoryId` field.""" + repositoryId: UUIDFilter - """Only read the first `n` values of the set.""" - first: Int + """ + Filter by the object’s `repositoryRequiredChecksByWorkflowId` relation. + """ + repositoryRequiredChecksByWorkflowId: RepositoryWorkflowToManyRepositoryRequiredCheckFilter - """Only read the last `n` values of the set.""" - last: Int + """`repositoryRequiredChecksByWorkflowId` exist.""" + repositoryRequiredChecksByWorkflowIdExist: Boolean - """ - 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 `requiredSecrets` field.""" + requiredSecrets: StringListFilter - """The method to use when ordering `ResourcesHealth`.""" - orderBy: [ResourcesHealthOrderBy!] = [NATURAL] + """Filter by the object’s `slug` field.""" + slug: StringFilter - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: ResourcesHealthFilter - ): ResourcesHealthConnection + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + + """Filter by the object’s `updatedBy` field.""" + updatedBy: UUIDFilter + + """Filter by the object’s `updatedByPrincipal` field.""" + updatedByPrincipal: UUIDFilter +} +"""An input for mutations affecting `RepositoryWorkflow`""" +input RepositoryWorkflowInput { """ - Reads and enables pagination through a set of `ResourcesRequirementsState`. + Whether a new build cancels a running build with the same concurrency key instead of queueing """ - resourcesRequirementsStates( - """Read all values in the set after (below) this cursor.""" - after: Cursor + cancelInProgress: Boolean - """Read all values in the set before (above) this cursor.""" - before: Cursor + """ + Builds of this workflow sharing this key run one at a time (NULL = unlimited) + """ + concurrencyKey: String + createdAt: Datetime + createdBy: UUID + createdByPrincipal: UUID - """Only read the first `n` values of the set.""" - first: Int + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! - """Only read the last `n` values of the set.""" - last: Int + """Event type that fires this workflow""" + eventType: String! - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int + """Flow graph to run when this workflow fires""" + graphId: UUID + id: UUID - """The method to use when ordering `ResourcesRequirementsState`.""" - orderBy: [ResourcesRequirementsStateOrderBy!] = [NATURAL] + """Static inputs merged into the graph run alongside the event""" + inputs: JSON - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: ResourcesRequirementsStateFilter - ): ResourcesRequirementsStateConnection + """Whether matching events fire this workflow""" + isEnabled: Boolean + + """Human-readable workflow name""" + name: String! + + """Glob the event ref must match (NULL matches any ref)""" + refPattern: String + + """Repository whose events this workflow listens to""" + repositoryId: UUID! """ - Reads and enables pagination through a set of `ResourcesResolvedRequirement`. + Secret names this workflow's builds may resolve, intersected with the build lane's realm """ - resourcesResolvedRequirements( - """Read all values in the set after (below) this cursor.""" - after: Cursor + requiredSecrets: [String] - """Read all values in the set before (above) this cursor.""" - before: Cursor + """URL-safe identifier, unique within the repository""" + slug: String! + updatedAt: Datetime + updatedBy: UUID + updatedByPrincipal: UUID +} - """Only read the first `n` values of the set.""" - first: Int +"""Methods to use when ordering `RepositoryWorkflow`.""" +enum RepositoryWorkflowOrderBy { + CANCEL_IN_PROGRESS_ASC + CANCEL_IN_PROGRESS_DESC + CONCURRENCY_KEY_ASC + CONCURRENCY_KEY_DESC + CREATED_AT_ASC + CREATED_AT_DESC + CREATED_BY_ASC + CREATED_BY_DESC + CREATED_BY_PRINCIPAL_ASC + CREATED_BY_PRINCIPAL_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + EVENT_TYPE_ASC + EVENT_TYPE_DESC + GRAPH_ID_ASC + GRAPH_ID_DESC + ID_ASC + ID_DESC + INPUTS_ASC + INPUTS_DESC + IS_ENABLED_ASC + IS_ENABLED_DESC + NAME_ASC + NAME_DESC + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + REF_PATTERN_ASC + REF_PATTERN_DESC + REPOSITORY_ID_ASC + REPOSITORY_ID_DESC + REQUIRED_SECRETS_ASC + REQUIRED_SECRETS_DESC + SLUG_ASC + SLUG_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + UPDATED_BY_ASC + UPDATED_BY_DESC + UPDATED_BY_PRINCIPAL_ASC + UPDATED_BY_PRINCIPAL_DESC +} - """Only read the last `n` values of the set.""" - last: Int +""" +Represents an update to a `RepositoryWorkflow`. Fields that are set will be updated. +""" +input RepositoryWorkflowPatch { + """ + Whether a new build cancels a running build with the same concurrency key instead of queueing + """ + cancelInProgress: Boolean - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int + """ + Builds of this workflow sharing this key run one at a time (NULL = unlimited) + """ + concurrencyKey: String + createdAt: Datetime + createdBy: UUID + createdByPrincipal: UUID - """The method to use when ordering `ResourcesResolvedRequirement`.""" - orderBy: [ResourcesResolvedRequirementOrderBy!] = [NATURAL] + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: ResourcesResolvedRequirementFilter - ): ResourcesResolvedRequirementConnection + """Event type that fires this workflow""" + eventType: String - """Reads and enables pagination through a set of `WebhookEndpoint`.""" - webhookEndpoints( - """Read all values in the set after (below) this cursor.""" - after: Cursor + """Flow graph to run when this workflow fires""" + graphId: UUID + id: UUID - """Read all values in the set before (above) this cursor.""" - before: Cursor + """Static inputs merged into the graph run alongside the event""" + inputs: JSON - """Only read the first `n` values of the set.""" - first: Int + """Whether matching events fire this workflow""" + isEnabled: Boolean - """Only read the last `n` values of the set.""" - last: Int + """Human-readable workflow name""" + 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 + """Glob the event ref must match (NULL matches any ref)""" + refPattern: String - """The method to use when ordering `WebhookEndpoint`.""" - orderBy: [WebhookEndpointOrderBy!] = [PRIMARY_KEY_ASC] + """Repository whose events this workflow listens to""" + repositoryId: UUID - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: WebhookEndpointFilter - ): WebhookEndpointConnection + """ + Secret names this workflow's builds may resolve, intersected with the build lane's realm + """ + requiredSecrets: [String] - """Reads and enables pagination through a set of `WebhookEvent`.""" - webhookEvents( - """Read all values in the set after (below) this cursor.""" - after: Cursor + """URL-safe identifier, unique within the repository""" + slug: String + updatedAt: Datetime + updatedBy: UUID + updatedByPrincipal: UUID +} - """Read all values in the set before (above) this cursor.""" - before: Cursor +""" +A filter to be used against many `Build` object types. All fields are combined with a logical ‘and.’ +""" +input RepositoryWorkflowToManyBuildFilter { + """Filters to entities where every related entity matches.""" + every: BuildFilter - """Only read the first `n` values of the set.""" - first: Int + """Filters to entities where no related entity matches.""" + none: BuildFilter - """Only read the last `n` values of the set.""" - last: Int + """Filters to entities where at least one related entity matches.""" + some: BuildFilter +} - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int +""" +A filter to be used against many `RepositoryRequiredCheck` object types. All fields are combined with a logical ‘and.’ +""" +input RepositoryWorkflowToManyRepositoryRequiredCheckFilter { + """Filters to entities where every related entity matches.""" + every: RepositoryRequiredCheckFilter - """The method to use when ordering `WebhookEvent`.""" - orderBy: [WebhookEventOrderBy!] = [PRIMARY_KEY_ASC] + """Filters to entities where no related entity matches.""" + none: RepositoryRequiredCheckFilter - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: WebhookEventFilter - ): WebhookEventConnection + """Filters to entities where at least one related entity matches.""" + some: RepositoryRequiredCheckFilter } """ @@ -23532,6 +46108,7 @@ type Resource { cpuRequestMillicores: BigInt createdAt: Datetime createdBy: UUID + createdByPrincipal: UUID """Database that owns this resource (database-scoped isolation)""" databaseId: UUID! @@ -23540,6 +46117,11 @@ type Resource { errorCount: Int! id: UUID! + """ + Pinned image reference this resource runs (registry host/repository:tag or @digest), written by promotion; NULL means spec.image decides + """ + imageRef: String + """ Reads a single `ResourceInstallation` that is related to this `Resource`. """ @@ -23670,16 +46252,22 @@ type Resource { statusObserved: JSON """ - Storage class/tier, derived from spec.storage_class (StatefulSet; NULL if unset) + Storage class/tier, derived from the legacy spec.storage_class else spec.storage[0].class (NULL if unset) """ storageClass: String """ - Persistent volume size in bytes, derived from spec.storage_size (StatefulSet; NULL if unset/invalid) + Declared persistent volume bytes per pod, summed over spec.storage[] plus the legacy spec.storage_size (NULL if none declared) """ storageSizeBytes: BigInt + + """ + Total declared persistent volume bytes for the resource: per-pod bytes times replicas for StatefulSet (per-ordinal claims), per-pod bytes otherwise (claims shared across replicas) + """ + storageTotalBytes: BigInt updatedAt: Datetime updatedBy: UUID + updatedByPrincipal: UUID } """A connection to a list of `Resource` values.""" @@ -23713,6 +46301,7 @@ type ResourceDeclaredCapacity { source: String sourceId: UUID storageSizeBytes: BigInt + storageTotalBytes: BigInt } """A connection to a list of `ResourceDeclaredCapacity` values.""" @@ -23794,6 +46383,9 @@ input ResourceDeclaredCapacityFilter { """Filter by the object’s `storageSizeBytes` field.""" storageSizeBytes: BigIntFilter + + """Filter by the object’s `storageTotalBytes` field.""" + storageTotalBytes: BigIntFilter } """Methods to use when ordering `ResourceDeclaredCapacity`.""" @@ -23825,6 +46417,8 @@ enum ResourceDeclaredCapacityOrderBy { SOURCE_ID_DESC STORAGE_SIZE_BYTES_ASC STORAGE_SIZE_BYTES_DESC + STORAGE_TOTAL_BYTES_ASC + STORAGE_TOTAL_BYTES_DESC } """ @@ -23835,6 +46429,7 @@ type ResourceDefinition { annotations: JSON! createdAt: Datetime createdBy: UUID + createdByPrincipal: UUID """Database that owns this resource (database-scoped isolation)""" databaseId: UUID! @@ -23925,6 +46520,7 @@ type ResourceDefinition { stepUpMinAge: Interval updatedAt: Datetime updatedBy: UUID + updatedByPrincipal: UUID } """A connection to a list of `ResourceDefinition` values.""" @@ -23971,6 +46567,9 @@ input ResourceDefinitionFilter { """Filter by the object’s `createdBy` field.""" createdBy: UUIDFilter + """Filter by the object’s `createdByPrincipal` field.""" + createdByPrincipal: UUIDFilter + """Filter by the object’s `databaseId` field.""" databaseId: UUIDFilter @@ -24027,6 +46626,9 @@ input ResourceDefinitionFilter { """Filter by the object’s `updatedBy` field.""" updatedBy: UUIDFilter + + """Filter by the object’s `updatedByPrincipal` field.""" + updatedByPrincipal: UUIDFilter } """An input for mutations affecting `ResourceDefinition`""" @@ -24035,6 +46637,7 @@ input ResourceDefinitionInput { annotations: JSON createdAt: Datetime createdBy: UUID + createdByPrincipal: UUID """Database that owns this resource (database-scoped isolation)""" databaseId: UUID! @@ -24091,6 +46694,7 @@ input ResourceDefinitionInput { stepUpMinAge: IntervalInput updatedAt: Datetime updatedBy: UUID + updatedByPrincipal: UUID } """Methods to use when ordering `ResourceDefinition`.""" @@ -24101,6 +46705,8 @@ enum ResourceDefinitionOrderBy { CREATED_AT_DESC CREATED_BY_ASC CREATED_BY_DESC + CREATED_BY_PRINCIPAL_ASC + CREATED_BY_PRINCIPAL_DESC DATABASE_ID_ASC DATABASE_ID_DESC DEFAULT_SPEC_ASC @@ -24136,6 +46742,8 @@ enum ResourceDefinitionOrderBy { UPDATED_AT_DESC UPDATED_BY_ASC UPDATED_BY_DESC + UPDATED_BY_PRINCIPAL_ASC + UPDATED_BY_PRINCIPAL_DESC } """ @@ -24146,6 +46754,7 @@ input ResourceDefinitionPatch { annotations: JSON createdAt: Datetime createdBy: UUID + createdByPrincipal: UUID """Database that owns this resource (database-scoped isolation)""" databaseId: UUID @@ -24202,6 +46811,7 @@ input ResourceDefinitionPatch { stepUpMinAge: IntervalInput updatedAt: Datetime updatedBy: UUID + updatedByPrincipal: UUID } """ @@ -24231,7 +46841,9 @@ type ResourceEdge { Resource lifecycle events — audit log of provisioning, updates, and failure events """ type ResourceEvent { - """User who triggered this event (NULL for system/automated)""" + """ + User who triggered this event; NULL only when no human actor was proven + """ actorId: UUID """Event timestamp (partition key)""" @@ -24324,7 +46936,9 @@ input ResourceEventFilter { """An input for mutations affecting `ResourceEvent`""" input ResourceEventInput { - """User who triggered this event (NULL for system/automated)""" + """ + User who triggered this event; NULL only when no human actor was proven + """ actorId: UUID """Event timestamp (partition key)""" @@ -24378,7 +46992,9 @@ enum ResourceEventOrderBy { Represents an update to a `ResourceEvent`. Fields that are set will be updated. """ input ResourceEventPatch { - """User who triggered this event (NULL for system/automated)""" + """ + User who triggered this event; NULL only when no human actor was proven + """ actorId: UUID """Event timestamp (partition key)""" @@ -24427,6 +47043,9 @@ input ResourceFilter { """Filter by the object’s `createdBy` field.""" createdBy: UUIDFilter + """Filter by the object’s `createdByPrincipal` field.""" + createdByPrincipal: UUIDFilter + """Filter by the object’s `databaseId` field.""" databaseId: UUIDFilter @@ -24436,6 +47055,9 @@ input ResourceFilter { """Filter by the object’s `id` field.""" id: UUIDFilter + """Filter by the object’s `imageRef` field.""" + imageRef: StringFilter + """Filter by the object’s `installation` relation.""" installation: ResourceInstallationFilter @@ -24520,11 +47142,17 @@ input ResourceFilter { """Filter by the object’s `storageSizeBytes` field.""" storageSizeBytes: BigIntFilter + """Filter by the object’s `storageTotalBytes` field.""" + storageTotalBytes: BigIntFilter + """Filter by the object’s `updatedAt` field.""" updatedAt: DatetimeFilter """Filter by the object’s `updatedBy` field.""" updatedBy: UUIDFilter + + """Filter by the object’s `updatedByPrincipal` field.""" + updatedByPrincipal: UUIDFilter } """An input for mutations affecting `Resource`""" @@ -24533,6 +47161,7 @@ input ResourceInput { annotations: JSON createdAt: Datetime createdBy: UUID + createdByPrincipal: UUID """Database that owns this resource (database-scoped isolation)""" databaseId: UUID! @@ -24541,6 +47170,11 @@ input ResourceInput { errorCount: Int id: UUID + """ + Pinned image reference this resource runs (registry host/repository:tag or @digest), written by promotion; NULL means spec.image decides + """ + imageRef: String + """ Installation ("release") this resource belongs to (NULL for standalone resources) """ @@ -24614,6 +47248,7 @@ input ResourceInput { statusObserved: JSON updatedAt: Datetime updatedBy: UUID + updatedByPrincipal: UUID } """ @@ -24626,6 +47261,7 @@ type ResourceInstallation { commitId: UUID createdAt: Datetime createdBy: UUID + createdByPrincipal: UUID """Database that owns this resource (database-scoped isolation)""" databaseId: UUID! @@ -24647,6 +47283,35 @@ type ResourceInstallation { """ params: JSON! + """Reads and enables pagination through a set of `Registry`.""" + registriesByInstallationId( + """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 `Registry`.""" + orderBy: [RegistryOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: RegistryFilter + ): RegistryConnection! + """Reads and enables pagination through a set of `Resource`.""" resourcesByInstallationId( """Read all values in the set after (below) this cursor.""" @@ -24695,6 +47360,7 @@ type ResourceInstallation { storeId: UUID updatedAt: Datetime updatedBy: UUID + updatedByPrincipal: UUID } """A connection to a list of `ResourceInstallation` values.""" @@ -24741,6 +47407,9 @@ input ResourceInstallationFilter { """Filter by the object’s `createdBy` field.""" createdBy: UUIDFilter + """Filter by the object’s `createdByPrincipal` field.""" + createdByPrincipal: UUIDFilter + """Filter by the object’s `databaseId` field.""" databaseId: UUIDFilter @@ -24765,6 +47434,12 @@ input ResourceInstallationFilter { """Filter by the object’s `params` field.""" params: JSONFilter + """Filter by the object’s `registriesByInstallationId` relation.""" + registriesByInstallationId: ResourceInstallationToManyRegistryFilter + + """`registriesByInstallationId` exist.""" + registriesByInstallationIdExist: Boolean + """Filter by the object’s `resourcesByInstallationId` relation.""" resourcesByInstallationId: ResourceInstallationToManyResourceFilter @@ -24788,6 +47463,9 @@ input ResourceInstallationFilter { """Filter by the object’s `updatedBy` field.""" updatedBy: UUIDFilter + + """Filter by the object’s `updatedByPrincipal` field.""" + updatedByPrincipal: UUIDFilter } """An input for mutations affecting `ResourceInstallation`""" @@ -24798,6 +47476,7 @@ input ResourceInstallationInput { commitId: UUID createdAt: Datetime createdBy: UUID + createdByPrincipal: UUID """Database that owns this resource (database-scoped isolation)""" databaseId: UUID! @@ -24833,6 +47512,7 @@ input ResourceInstallationInput { storeId: UUID updatedAt: Datetime updatedBy: UUID + updatedByPrincipal: UUID } """Methods to use when ordering `ResourceInstallation`.""" @@ -24843,6 +47523,8 @@ enum ResourceInstallationOrderBy { CREATED_AT_DESC CREATED_BY_ASC CREATED_BY_DESC + CREATED_BY_PRINCIPAL_ASC + CREATED_BY_PRINCIPAL_DESC DATABASE_ID_ASC DATABASE_ID_DESC ID_ASC @@ -24868,6 +47550,8 @@ enum ResourceInstallationOrderBy { UPDATED_AT_DESC UPDATED_BY_ASC UPDATED_BY_DESC + UPDATED_BY_PRINCIPAL_ASC + UPDATED_BY_PRINCIPAL_DESC } """ @@ -24880,6 +47564,7 @@ input ResourceInstallationPatch { commitId: UUID createdAt: Datetime createdBy: UUID + createdByPrincipal: UUID """Database that owns this resource (database-scoped isolation)""" databaseId: UUID @@ -24915,6 +47600,21 @@ input ResourceInstallationPatch { storeId: UUID updatedAt: Datetime updatedBy: UUID + updatedByPrincipal: UUID +} + +""" +A filter to be used against many `Registry` object types. All fields are combined with a logical ‘and.’ +""" +input ResourceInstallationToManyRegistryFilter { + """Filters to entities where every related entity matches.""" + every: RegistryFilter + + """Filters to entities where no related entity matches.""" + none: RegistryFilter + + """Filters to entities where at least one related entity matches.""" + some: RegistryFilter } """ @@ -25034,6 +47734,164 @@ type ResourceInstallationsUpgradePayload { query: Query } +type ResourceObservedStorage { + capacity: String + capacityBytes: BigInt + claimName: String + declaredStorageClass: String + declaredStorageSizeBytes: BigInt + declaredStorageTotalBytes: BigInt + installationId: UUID + isBound: Boolean + kind: String + namespaceId: UUID + phase: String + requested: String + requestedBytes: BigInt + resourceId: UUID + resourceStatus: String + slug: String + storageClass: String + storageName: String +} + +"""A connection to a list of `ResourceObservedStorage` values.""" +type ResourceObservedStorageConnection { + """ + A list of edges which contains the `ResourceObservedStorage` and cursor to aid in pagination. + """ + edges: [ResourceObservedStorageEdge]! + + """A list of `ResourceObservedStorage` objects.""" + nodes: [ResourceObservedStorage]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `ResourceObservedStorage` you could get from the connection. + """ + totalCount: Int! +} + +"""A `ResourceObservedStorage` edge in the connection.""" +type ResourceObservedStorageEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `ResourceObservedStorage` at the end of the edge.""" + node: ResourceObservedStorage +} + +""" +A filter to be used against `ResourceObservedStorage` object types. All fields are combined with a logical ‘and.’ +""" +input ResourceObservedStorageFilter { + """Checks for all expressions in this list.""" + and: [ResourceObservedStorageFilter!] + + """Filter by the object’s `capacity` field.""" + capacity: StringFilter + + """Filter by the object’s `capacityBytes` field.""" + capacityBytes: BigIntFilter + + """Filter by the object’s `claimName` field.""" + claimName: StringFilter + + """Filter by the object’s `declaredStorageClass` field.""" + declaredStorageClass: StringFilter + + """Filter by the object’s `declaredStorageSizeBytes` field.""" + declaredStorageSizeBytes: BigIntFilter + + """Filter by the object’s `declaredStorageTotalBytes` field.""" + declaredStorageTotalBytes: BigIntFilter + + """Filter by the object’s `installationId` field.""" + installationId: UUIDFilter + + """Filter by the object’s `isBound` field.""" + isBound: BooleanFilter + + """Filter by the object’s `kind` field.""" + kind: StringFilter + + """Filter by the object’s `namespaceId` field.""" + namespaceId: UUIDFilter + + """Negates the expression.""" + not: ResourceObservedStorageFilter + + """Checks for any expressions in this list.""" + or: [ResourceObservedStorageFilter!] + + """Filter by the object’s `phase` field.""" + phase: StringFilter + + """Filter by the object’s `requested` field.""" + requested: StringFilter + + """Filter by the object’s `requestedBytes` field.""" + requestedBytes: BigIntFilter + + """Filter by the object’s `resourceId` field.""" + resourceId: UUIDFilter + + """Filter by the object’s `resourceStatus` field.""" + resourceStatus: StringFilter + + """Filter by the object’s `slug` field.""" + slug: StringFilter + + """Filter by the object’s `storageClass` field.""" + storageClass: StringFilter + + """Filter by the object’s `storageName` field.""" + storageName: StringFilter +} + +"""Methods to use when ordering `ResourceObservedStorage`.""" +enum ResourceObservedStorageOrderBy { + CAPACITY_ASC + CAPACITY_BYTES_ASC + CAPACITY_BYTES_DESC + CAPACITY_DESC + CLAIM_NAME_ASC + CLAIM_NAME_DESC + DECLARED_STORAGE_CLASS_ASC + DECLARED_STORAGE_CLASS_DESC + DECLARED_STORAGE_SIZE_BYTES_ASC + DECLARED_STORAGE_SIZE_BYTES_DESC + DECLARED_STORAGE_TOTAL_BYTES_ASC + DECLARED_STORAGE_TOTAL_BYTES_DESC + INSTALLATION_ID_ASC + INSTALLATION_ID_DESC + IS_BOUND_ASC + IS_BOUND_DESC + KIND_ASC + KIND_DESC + NAMESPACE_ID_ASC + NAMESPACE_ID_DESC + NATURAL + PHASE_ASC + PHASE_DESC + REQUESTED_ASC + REQUESTED_BYTES_ASC + REQUESTED_BYTES_DESC + REQUESTED_DESC + RESOURCE_ID_ASC + RESOURCE_ID_DESC + RESOURCE_STATUS_ASC + RESOURCE_STATUS_DESC + SLUG_ASC + SLUG_DESC + STORAGE_CLASS_ASC + STORAGE_CLASS_DESC + STORAGE_NAME_ASC + STORAGE_NAME_DESC +} + """Methods to use when ordering `Resource`.""" enum ResourceOrderBy { ANNOTATIONS_ASC @@ -25046,12 +47904,16 @@ enum ResourceOrderBy { CREATED_AT_DESC CREATED_BY_ASC CREATED_BY_DESC + CREATED_BY_PRINCIPAL_ASC + CREATED_BY_PRINCIPAL_DESC DATABASE_ID_ASC DATABASE_ID_DESC ERROR_COUNT_ASC ERROR_COUNT_DESC ID_ASC ID_DESC + IMAGE_REF_ASC + IMAGE_REF_DESC INSTALLATION_ID_ASC INSTALLATION_ID_DESC INTEGRATIONS_ASC @@ -25097,10 +47959,14 @@ enum ResourceOrderBy { STORAGE_CLASS_DESC STORAGE_SIZE_BYTES_ASC STORAGE_SIZE_BYTES_DESC + STORAGE_TOTAL_BYTES_ASC + STORAGE_TOTAL_BYTES_DESC UPDATED_AT_ASC UPDATED_AT_DESC UPDATED_BY_ASC UPDATED_BY_DESC + UPDATED_BY_PRINCIPAL_ASC + UPDATED_BY_PRINCIPAL_DESC } """ @@ -25111,6 +47977,7 @@ input ResourcePatch { annotations: JSON createdAt: Datetime createdBy: UUID + createdByPrincipal: UUID """Database that owns this resource (database-scoped isolation)""" databaseId: UUID @@ -25119,6 +47986,11 @@ input ResourcePatch { errorCount: Int id: UUID + """ + Pinned image reference this resource runs (registry host/repository:tag or @digest), written by promotion; NULL means spec.image decides + """ + imageRef: String + """ Installation ("release") this resource belongs to (NULL for standalone resources) """ @@ -25192,6 +48064,7 @@ input ResourcePatch { statusObserved: JSON updatedAt: Datetime updatedBy: UUID + updatedByPrincipal: UUID } type ResourceRequirement { @@ -26013,9 +48886,11 @@ type ResourcesHealth { cpuRequestMillicores: BigInt createdAt: Datetime createdBy: UUID + createdByPrincipal: UUID databaseId: UUID errorCount: Int id: UUID + imageRef: String installationId: UUID integrations: [String] kind: String @@ -26038,8 +48913,10 @@ type ResourcesHealth { statusObserved: JSON storageClass: String storageSizeBytes: BigInt + storageTotalBytes: BigInt updatedAt: Datetime updatedBy: UUID + updatedByPrincipal: UUID } """A connection to a list of `ResourcesHealth` values.""" @@ -26092,6 +48969,9 @@ input ResourcesHealthFilter { """Filter by the object’s `createdBy` field.""" createdBy: UUIDFilter + """Filter by the object’s `createdByPrincipal` field.""" + createdByPrincipal: UUIDFilter + """Filter by the object’s `databaseId` field.""" databaseId: UUIDFilter @@ -26101,6 +48981,9 @@ input ResourcesHealthFilter { """Filter by the object’s `id` field.""" id: UUIDFilter + """Filter by the object’s `imageRef` field.""" + imageRef: StringFilter + """Filter by the object’s `installationId` field.""" installationId: UUIDFilter @@ -26167,11 +49050,17 @@ input ResourcesHealthFilter { """Filter by the object’s `storageSizeBytes` field.""" storageSizeBytes: BigIntFilter + """Filter by the object’s `storageTotalBytes` field.""" + storageTotalBytes: BigIntFilter + """Filter by the object’s `updatedAt` field.""" updatedAt: DatetimeFilter """Filter by the object’s `updatedBy` field.""" updatedBy: UUIDFilter + + """Filter by the object’s `updatedByPrincipal` field.""" + updatedByPrincipal: UUIDFilter } """Methods to use when ordering `ResourcesHealth`.""" @@ -26186,12 +49075,16 @@ enum ResourcesHealthOrderBy { CREATED_AT_DESC CREATED_BY_ASC CREATED_BY_DESC + CREATED_BY_PRINCIPAL_ASC + CREATED_BY_PRINCIPAL_DESC DATABASE_ID_ASC DATABASE_ID_DESC ERROR_COUNT_ASC ERROR_COUNT_DESC ID_ASC ID_DESC + IMAGE_REF_ASC + IMAGE_REF_DESC INSTALLATION_ID_ASC INSTALLATION_ID_DESC INTEGRATIONS_ASC @@ -26237,10 +49130,14 @@ enum ResourcesHealthOrderBy { STORAGE_CLASS_DESC STORAGE_SIZE_BYTES_ASC STORAGE_SIZE_BYTES_DESC + STORAGE_TOTAL_BYTES_ASC + STORAGE_TOTAL_BYTES_DESC UPDATED_AT_ASC UPDATED_AT_DESC UPDATED_BY_ASC UPDATED_BY_DESC + UPDATED_BY_PRINCIPAL_ASC + UPDATED_BY_PRINCIPAL_DESC } type ResourcesRequirementsState { @@ -26808,6 +49705,161 @@ input StringListFilter { overlaps: [String] } +""" +A filter to be used against String fields with pg_trgm support. All fields are combined with a logical ‘and.’ +""" +input StringTrgmFilter { + """ + 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 + + """ + Fuzzy matches using pg_trgm trigram similarity. Tolerates typos and misspellings. + """ + similarTo: TrgmSearchInput + + """Starts with the specified string (case-sensitive).""" + startsWith: String + + """Starts with the specified string (case-insensitive).""" + startsWithInsensitive: String + + """ + Fuzzy matches using pg_trgm word_similarity. Finds the best matching substring within the column value. + """ + wordSimilarTo: TrgmSearchInput +} + +""" +Input for pg_trgm fuzzy text matching. Provide a search value and optional similarity threshold. +""" +input TrgmSearchInput { + """ + Minimum similarity threshold (0.0 to 1.0). Higher = stricter matching. Default is 0.3. + """ + threshold: Float + + """The text to fuzzy-match against. Typos and misspellings are tolerated.""" + value: String! +} + """ A universally unique identifier as defined by [RFC 4122](https://tools.ietf.org/html/rfc4122). """ @@ -26918,6 +49970,125 @@ input UUIDListFilter { overlaps: [UUID] } +"""All input for the `updateBuild` mutation.""" +input UpdateBuildInput { + """ + An object where the defined keys will be set on the `Build` being updated. + """ + buildPatch: BuildPatch! + + """ + An arbitrary 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 `Build` mutation.""" +type UpdateBuildPayload { + """The `Build` that was updated by this mutation.""" + build: Build + + """An edge for our `Build`. May be used by Relay 1.""" + buildEdge( + """The method to use when ordering `Build`.""" + orderBy: [BuildOrderBy!]! = [PRIMARY_KEY_ASC] + ): BuildEdge + + """ + The 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 `updateBuildStep` mutation.""" +input UpdateBuildStepInput { + """ + An object where the defined keys will be set on the `BuildStep` being updated. + """ + buildStepPatch: BuildStepPatch! + + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """Unique identifier (uuidv7 provides temporal ordering)""" + id: UUID! + + """When the result was recorded (partition key)""" + recordedAt: Datetime! +} + +"""The output of our update `BuildStep` mutation.""" +type UpdateBuildStepPayload { + """The `BuildStep` that was updated by this mutation.""" + buildStep: BuildStep + + """An edge for our `BuildStep`. May be used by Relay 1.""" + buildStepEdge( + """The method to use when ordering `BuildStep`.""" + orderBy: [BuildStepOrderBy!]! = [PRIMARY_KEY_ASC] + ): BuildStepEdge + + """ + The 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 `updateBuilderBinding` mutation.""" +input UpdateBuilderBindingInput { + """ + An object where the defined keys will be set on the `BuilderBinding` being updated. + """ + builderBindingPatch: BuilderBindingPatch! + + """ + An arbitrary 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 `BuilderBinding` mutation.""" +type UpdateBuilderBindingPayload { + """The `BuilderBinding` that was updated by this mutation.""" + builderBinding: BuilderBinding + + """An edge for our `BuilderBinding`. May be used by Relay 1.""" + builderBindingEdge( + """The method to use when ordering `BuilderBinding`.""" + orderBy: [BuilderBindingOrderBy!]! = [PRIMARY_KEY_ASC] + ): BuilderBindingEdge + + """ + The 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 `updateContentPreset` mutation.""" input UpdateContentPresetInput { """ @@ -26958,6 +50129,368 @@ type UpdateContentPresetPayload { query: Query } +"""All input for the `updateDatabaseFunctionGraphExecution` mutation.""" +input UpdateDatabaseFunctionGraphExecutionInput { + """ + An arbitrary 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 `DatabaseFunctionGraphExecution` being updated. + """ + databaseFunctionGraphExecutionPatch: DatabaseFunctionGraphExecutionPatch! + + """Unique execution identifier""" + id: UUID! + + """Execution start timestamp""" + startedAt: Datetime! +} + +""" +All input for the `updateDatabaseFunctionGraphExecutionNodeState` mutation. +""" +input UpdateDatabaseFunctionGraphExecutionNodeStateInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """Timestamp of node state creation (partition key)""" + createdAt: Datetime! + + """ + An object where the defined keys will be set on the `DatabaseFunctionGraphExecutionNodeState` being updated. + """ + databaseFunctionGraphExecutionNodeStatePatch: DatabaseFunctionGraphExecutionNodeStatePatch! + + """Unique node state identifier""" + id: UUID! +} + +""" +The output of our update `DatabaseFunctionGraphExecutionNodeState` mutation. +""" +type UpdateDatabaseFunctionGraphExecutionNodeStatePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """ + The `DatabaseFunctionGraphExecutionNodeState` that was updated by this mutation. + """ + databaseFunctionGraphExecutionNodeState: DatabaseFunctionGraphExecutionNodeState + + """ + An edge for our `DatabaseFunctionGraphExecutionNodeState`. May be used by Relay 1. + """ + databaseFunctionGraphExecutionNodeStateEdge( + """ + The method to use when ordering `DatabaseFunctionGraphExecutionNodeState`. + """ + orderBy: [DatabaseFunctionGraphExecutionNodeStateOrderBy!]! = [PRIMARY_KEY_ASC] + ): DatabaseFunctionGraphExecutionNodeStateEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +""" +All input for the `updateDatabaseFunctionGraphExecutionOutput` mutation. +""" +input UpdateDatabaseFunctionGraphExecutionOutputInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """Timestamp of output creation""" + createdAt: Datetime! + + """ + An object where the defined keys will be set on the `DatabaseFunctionGraphExecutionOutput` being updated. + """ + databaseFunctionGraphExecutionOutputPatch: DatabaseFunctionGraphExecutionOutputPatch! + + """Unique execution output identifier""" + id: UUID! +} + +""" +The output of our update `DatabaseFunctionGraphExecutionOutput` mutation. +""" +type UpdateDatabaseFunctionGraphExecutionOutputPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """ + The `DatabaseFunctionGraphExecutionOutput` that was updated by this mutation. + """ + databaseFunctionGraphExecutionOutput: DatabaseFunctionGraphExecutionOutput + + """ + An edge for our `DatabaseFunctionGraphExecutionOutput`. May be used by Relay 1. + """ + databaseFunctionGraphExecutionOutputEdge( + """ + The method to use when ordering `DatabaseFunctionGraphExecutionOutput`. + """ + orderBy: [DatabaseFunctionGraphExecutionOutputOrderBy!]! = [PRIMARY_KEY_ASC] + ): DatabaseFunctionGraphExecutionOutputEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""The output of our update `DatabaseFunctionGraphExecution` mutation.""" +type UpdateDatabaseFunctionGraphExecutionPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """ + The `DatabaseFunctionGraphExecution` that was updated by this mutation. + """ + databaseFunctionGraphExecution: DatabaseFunctionGraphExecution + + """ + An edge for our `DatabaseFunctionGraphExecution`. May be used by Relay 1. + """ + databaseFunctionGraphExecutionEdge( + """The method to use when ordering `DatabaseFunctionGraphExecution`.""" + orderBy: [DatabaseFunctionGraphExecutionOrderBy!]! = [PRIMARY_KEY_ASC] + ): DatabaseFunctionGraphExecutionEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `updateDatabaseFunctionGraph` mutation.""" +input UpdateDatabaseFunctionGraphInput { + """ + An arbitrary 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 `DatabaseFunctionGraph` being updated. + """ + databaseFunctionGraphPatch: DatabaseFunctionGraphPatch! + + """Unique graph identifier""" + id: UUID! +} + +"""The output of our update `DatabaseFunctionGraph` mutation.""" +type UpdateDatabaseFunctionGraphPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `DatabaseFunctionGraph` that was updated by this mutation.""" + databaseFunctionGraph: DatabaseFunctionGraph + + """An edge for our `DatabaseFunctionGraph`. May be used by Relay 1.""" + databaseFunctionGraphEdge( + """The method to use when ordering `DatabaseFunctionGraph`.""" + orderBy: [DatabaseFunctionGraphOrderBy!]! = [PRIMARY_KEY_ASC] + ): DatabaseFunctionGraphEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `updateDatabaseGraphCommit` mutation.""" +input UpdateDatabaseGraphCommitInput { + """ + An arbitrary 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 `DatabaseGraphCommit` being updated. + """ + databaseGraphCommitPatch: DatabaseGraphCommitPatch! + + """Database scope for multi-tenant isolation""" + databaseId: UUID! + + """Unique commit identifier""" + id: UUID! +} + +"""The output of our update `DatabaseGraphCommit` mutation.""" +type UpdateDatabaseGraphCommitPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `DatabaseGraphCommit` that was updated by this mutation.""" + databaseGraphCommit: DatabaseGraphCommit + + """An edge for our `DatabaseGraphCommit`. May be used by Relay 1.""" + databaseGraphCommitEdge( + """The method to use when ordering `DatabaseGraphCommit`.""" + orderBy: [DatabaseGraphCommitOrderBy!]! = [PRIMARY_KEY_ASC] + ): DatabaseGraphCommitEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `updateDatabaseGraphObject` mutation.""" +input UpdateDatabaseGraphObjectInput { + """ + An arbitrary 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 `DatabaseGraphObject` being updated. + """ + databaseGraphObjectPatch: DatabaseGraphObjectPatch! + + """Database scope for multi-tenant isolation""" + databaseId: UUID! + + """Content-addressed UUID v5 — deterministic hash of (data, kids, ktree)""" + id: UUID! +} + +"""The output of our update `DatabaseGraphObject` mutation.""" +type UpdateDatabaseGraphObjectPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `DatabaseGraphObject` that was updated by this mutation.""" + databaseGraphObject: DatabaseGraphObject + + """An edge for our `DatabaseGraphObject`. May be used by Relay 1.""" + databaseGraphObjectEdge( + """The method to use when ordering `DatabaseGraphObject`.""" + orderBy: [DatabaseGraphObjectOrderBy!]! = [PRIMARY_KEY_ASC] + ): DatabaseGraphObjectEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `updateDatabaseGraphRef` mutation.""" +input UpdateDatabaseGraphRefInput { + """ + An arbitrary 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 `DatabaseGraphRef` being updated. + """ + databaseGraphRefPatch: DatabaseGraphRefPatch! + + """Database scope for multi-tenant isolation""" + databaseId: UUID! + + """Unique ref identifier""" + id: UUID! +} + +"""The output of our update `DatabaseGraphRef` mutation.""" +type UpdateDatabaseGraphRefPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `DatabaseGraphRef` that was updated by this mutation.""" + databaseGraphRef: DatabaseGraphRef + + """An edge for our `DatabaseGraphRef`. May be used by Relay 1.""" + databaseGraphRefEdge( + """The method to use when ordering `DatabaseGraphRef`.""" + orderBy: [DatabaseGraphRefOrderBy!]! = [PRIMARY_KEY_ASC] + ): DatabaseGraphRefEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `updateDatabaseGraphStore` mutation.""" +input UpdateDatabaseGraphStoreInput { + """ + An arbitrary 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 `DatabaseGraphStore` being updated. + """ + databaseGraphStorePatch: DatabaseGraphStorePatch! + + """Unique store identifier""" + id: UUID! +} + +"""The output of our update `DatabaseGraphStore` mutation.""" +type UpdateDatabaseGraphStorePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `DatabaseGraphStore` that was updated by this mutation.""" + databaseGraphStore: DatabaseGraphStore + + """An edge for our `DatabaseGraphStore`. May be used by Relay 1.""" + databaseGraphStoreEdge( + """The method to use when ordering `DatabaseGraphStore`.""" + orderBy: [DatabaseGraphStoreOrderBy!]! = [PRIMARY_KEY_ASC] + ): DatabaseGraphStoreEdge + + """ + 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 { """ @@ -27666,6 +51199,82 @@ type UpdateFunctionInvocationPayload { query: Query } +"""All input for the `updateImageGrant` mutation.""" +input UpdateImageGrantInput { + """ + An arbitrary 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 `ImageGrant` being updated. + """ + imageGrantPatch: ImageGrantPatch! +} + +"""The output of our update `ImageGrant` mutation.""" +type UpdateImageGrantPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `ImageGrant` that was updated by this mutation.""" + imageGrant: ImageGrant + + """An edge for our `ImageGrant`. May be used by Relay 1.""" + imageGrantEdge( + """The method to use when ordering `ImageGrant`.""" + orderBy: [ImageGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): ImageGrantEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `updateImage` mutation.""" +input UpdateImageInput { + """ + An arbitrary 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 `Image` being updated. + """ + imagePatch: ImagePatch! +} + +"""The output of our update `Image` mutation.""" +type UpdateImagePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `Image` that was updated by this mutation.""" + image: Image + + """An edge for our `Image`. May be used by Relay 1.""" + imageEdge( + """The method to use when ordering `Image`.""" + orderBy: [ImageOrderBy!]! = [PRIMARY_KEY_ASC] + ): ImageEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + """All input for the `updateInfraCommit` mutation.""" input UpdateInfraCommitInput { """ @@ -27954,6 +51563,125 @@ type UpdateNamespacePayload { query: Query } +"""All input for the `updatePlatformBuild` mutation.""" +input UpdatePlatformBuildInput { + """ + An arbitrary 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 `PlatformBuild` being updated. + """ + platformBuildPatch: PlatformBuildPatch! +} + +"""The output of our update `PlatformBuild` mutation.""" +type UpdatePlatformBuildPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `PlatformBuild` that was updated by this mutation.""" + platformBuild: PlatformBuild + + """An edge for our `PlatformBuild`. May be used by Relay 1.""" + platformBuildEdge( + """The method to use when ordering `PlatformBuild`.""" + orderBy: [PlatformBuildOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformBuildEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `updatePlatformBuildStep` mutation.""" +input UpdatePlatformBuildStepInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """Unique identifier (uuidv7 provides temporal ordering)""" + id: UUID! + + """ + An object where the defined keys will be set on the `PlatformBuildStep` being updated. + """ + platformBuildStepPatch: PlatformBuildStepPatch! + + """When the result was recorded (partition key)""" + recordedAt: Datetime! +} + +"""The output of our update `PlatformBuildStep` mutation.""" +type UpdatePlatformBuildStepPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `PlatformBuildStep` that was updated by this mutation.""" + platformBuildStep: PlatformBuildStep + + """An edge for our `PlatformBuildStep`. May be used by Relay 1.""" + platformBuildStepEdge( + """The method to use when ordering `PlatformBuildStep`.""" + orderBy: [PlatformBuildStepOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformBuildStepEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `updatePlatformBuilderBinding` mutation.""" +input UpdatePlatformBuilderBindingInput { + """ + An arbitrary 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 `PlatformBuilderBinding` being updated. + """ + platformBuilderBindingPatch: PlatformBuilderBindingPatch! +} + +"""The output of our update `PlatformBuilderBinding` mutation.""" +type UpdatePlatformBuilderBindingPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `PlatformBuilderBinding` that was updated by this mutation.""" + platformBuilderBinding: PlatformBuilderBinding + + """An edge for our `PlatformBuilderBinding`. May be used by Relay 1.""" + platformBuilderBindingEdge( + """The method to use when ordering `PlatformBuilderBinding`.""" + orderBy: [PlatformBuilderBindingOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformBuilderBindingEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + """All input for the `updatePlatformFunctionApiBinding` mutation.""" input UpdatePlatformFunctionApiBindingInput { """ @@ -28292,6 +52020,82 @@ type UpdatePlatformFunctionInvocationPayload { query: Query } +"""All input for the `updatePlatformImageGrant` mutation.""" +input UpdatePlatformImageGrantInput { + """ + An arbitrary 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 `PlatformImageGrant` being updated. + """ + platformImageGrantPatch: PlatformImageGrantPatch! +} + +"""The output of our update `PlatformImageGrant` mutation.""" +type UpdatePlatformImageGrantPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `PlatformImageGrant` that was updated by this mutation.""" + platformImageGrant: PlatformImageGrant + + """An edge for our `PlatformImageGrant`. May be used by Relay 1.""" + platformImageGrantEdge( + """The method to use when ordering `PlatformImageGrant`.""" + orderBy: [PlatformImageGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformImageGrantEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `updatePlatformImage` mutation.""" +input UpdatePlatformImageInput { + """ + An arbitrary 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 `PlatformImage` being updated. + """ + platformImagePatch: PlatformImagePatch! +} + +"""The output of our update `PlatformImage` mutation.""" +type UpdatePlatformImagePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `PlatformImage` that was updated by this mutation.""" + platformImage: PlatformImage + + """An edge for our `PlatformImage`. May be used by Relay 1.""" + platformImageEdge( + """The method to use when ordering `PlatformImage`.""" + orderBy: [PlatformImageOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformImageEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + """All input for the `updatePlatformInfraCommit` mutation.""" input UpdatePlatformInfraCommitInput { """ @@ -28461,6 +52265,86 @@ type UpdatePlatformInfraStorePayload { query: Query } +"""All input for the `updatePlatformK8sResourceKind` mutation.""" +input UpdatePlatformK8sResourceKindInput { + """ + An arbitrary 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 kind policy identifier""" + id: UUID! + + """ + An object where the defined keys will be set on the `PlatformK8sResourceKind` being updated. + """ + platformK8sResourceKindPatch: PlatformK8sResourceKindPatch! +} + +"""The output of our update `PlatformK8sResourceKind` mutation.""" +type UpdatePlatformK8sResourceKindPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `PlatformK8sResourceKind` that was updated by this mutation.""" + platformK8sResourceKind: PlatformK8sResourceKind + + """An edge for our `PlatformK8sResourceKind`. May be used by Relay 1.""" + platformK8sResourceKindEdge( + """The method to use when ordering `PlatformK8sResourceKind`.""" + orderBy: [PlatformK8sResourceKindOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformK8sResourceKindEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `updatePlatformK8sSpecRule` mutation.""" +input UpdatePlatformK8sSpecRuleInput { + """ + An arbitrary 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 spec rule identifier""" + id: UUID! + + """ + An object where the defined keys will be set on the `PlatformK8sSpecRule` being updated. + """ + platformK8sSpecRulePatch: PlatformK8sSpecRulePatch! +} + +"""The output of our update `PlatformK8sSpecRule` mutation.""" +type UpdatePlatformK8sSpecRulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `PlatformK8sSpecRule` that was updated by this mutation.""" + platformK8sSpecRule: PlatformK8sSpecRule + + """An edge for our `PlatformK8sSpecRule`. May be used by Relay 1.""" + platformK8sSpecRuleEdge( + """The method to use when ordering `PlatformK8sSpecRule`.""" + orderBy: [PlatformK8sSpecRuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformK8sSpecRuleEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + """All input for the `updatePlatformNamespaceEvent` mutation.""" input UpdatePlatformNamespaceEventInput { """ @@ -28542,6 +52426,504 @@ type UpdatePlatformNamespacePayload { query: Query } +"""All input for the `updatePlatformProposalComment` mutation.""" +input UpdatePlatformProposalCommentInput { + """ + An arbitrary 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 `PlatformProposalComment` being updated. + """ + platformProposalCommentPatch: PlatformProposalCommentPatch! +} + +"""The output of our update `PlatformProposalComment` mutation.""" +type UpdatePlatformProposalCommentPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `PlatformProposalComment` that was updated by this mutation.""" + platformProposalComment: PlatformProposalComment + + """An edge for our `PlatformProposalComment`. May be used by Relay 1.""" + platformProposalCommentEdge( + """The method to use when ordering `PlatformProposalComment`.""" + orderBy: [PlatformProposalCommentOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformProposalCommentEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `updatePlatformProposalFileView` mutation.""" +input UpdatePlatformProposalFileViewInput { + """ + An arbitrary 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 `PlatformProposalFileView` being updated. + """ + platformProposalFileViewPatch: PlatformProposalFileViewPatch! +} + +"""The output of our update `PlatformProposalFileView` mutation.""" +type UpdatePlatformProposalFileViewPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `PlatformProposalFileView` that was updated by this mutation.""" + platformProposalFileView: PlatformProposalFileView + + """An edge for our `PlatformProposalFileView`. May be used by Relay 1.""" + platformProposalFileViewEdge( + """The method to use when ordering `PlatformProposalFileView`.""" + orderBy: [PlatformProposalFileViewOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformProposalFileViewEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `updatePlatformProposal` mutation.""" +input UpdatePlatformProposalInput { + """ + An arbitrary 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 `PlatformProposal` being updated. + """ + platformProposalPatch: PlatformProposalPatch! +} + +"""The output of our update `PlatformProposal` mutation.""" +type UpdatePlatformProposalPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `PlatformProposal` that was updated by this mutation.""" + platformProposal: PlatformProposal + + """An edge for our `PlatformProposal`. May be used by Relay 1.""" + platformProposalEdge( + """The method to use when ordering `PlatformProposal`.""" + orderBy: [PlatformProposalOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformProposalEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `updatePlatformProposalReaction` mutation.""" +input UpdatePlatformProposalReactionInput { + """ + An arbitrary 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 `PlatformProposalReaction` being updated. + """ + platformProposalReactionPatch: PlatformProposalReactionPatch! +} + +"""The output of our update `PlatformProposalReaction` mutation.""" +type UpdatePlatformProposalReactionPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `PlatformProposalReaction` that was updated by this mutation.""" + platformProposalReaction: PlatformProposalReaction + + """An edge for our `PlatformProposalReaction`. May be used by Relay 1.""" + platformProposalReactionEdge( + """The method to use when ordering `PlatformProposalReaction`.""" + orderBy: [PlatformProposalReactionOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformProposalReactionEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `updatePlatformProposalReview` mutation.""" +input UpdatePlatformProposalReviewInput { + """ + An arbitrary 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 `PlatformProposalReview` being updated. + """ + platformProposalReviewPatch: PlatformProposalReviewPatch! +} + +"""The output of our update `PlatformProposalReview` mutation.""" +type UpdatePlatformProposalReviewPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `PlatformProposalReview` that was updated by this mutation.""" + platformProposalReview: PlatformProposalReview + + """An edge for our `PlatformProposalReview`. May be used by Relay 1.""" + platformProposalReviewEdge( + """The method to use when ordering `PlatformProposalReview`.""" + orderBy: [PlatformProposalReviewOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformProposalReviewEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `updatePlatformProposalsChunk` mutation.""" +input UpdatePlatformProposalsChunkInput { + """ + An arbitrary 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 `PlatformProposalsChunk` being updated. + """ + platformProposalsChunkPatch: PlatformProposalsChunkPatch! +} + +"""The output of our update `PlatformProposalsChunk` mutation.""" +type UpdatePlatformProposalsChunkPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `PlatformProposalsChunk` that was updated by this mutation.""" + platformProposalsChunk: PlatformProposalsChunk + + """An edge for our `PlatformProposalsChunk`. May be used by Relay 1.""" + platformProposalsChunkEdge( + """The method to use when ordering `PlatformProposalsChunk`.""" + orderBy: [PlatformProposalsChunkOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformProposalsChunkEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `updatePlatformRegistryBinding` mutation.""" +input UpdatePlatformRegistryBindingInput { + """ + An arbitrary 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 `PlatformRegistryBinding` being updated. + """ + platformRegistryBindingPatch: PlatformRegistryBindingPatch! +} + +"""The output of our update `PlatformRegistryBinding` mutation.""" +type UpdatePlatformRegistryBindingPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `PlatformRegistryBinding` that was updated by this mutation.""" + platformRegistryBinding: PlatformRegistryBinding + + """An edge for our `PlatformRegistryBinding`. May be used by Relay 1.""" + platformRegistryBindingEdge( + """The method to use when ordering `PlatformRegistryBinding`.""" + orderBy: [PlatformRegistryBindingOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformRegistryBindingEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `updatePlatformRegistryGrant` mutation.""" +input UpdatePlatformRegistryGrantInput { + """ + An arbitrary 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 `PlatformRegistryGrant` being updated. + """ + platformRegistryGrantPatch: PlatformRegistryGrantPatch! +} + +"""The output of our update `PlatformRegistryGrant` mutation.""" +type UpdatePlatformRegistryGrantPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `PlatformRegistryGrant` that was updated by this mutation.""" + platformRegistryGrant: PlatformRegistryGrant + + """An edge for our `PlatformRegistryGrant`. May be used by Relay 1.""" + platformRegistryGrantEdge( + """The method to use when ordering `PlatformRegistryGrant`.""" + orderBy: [PlatformRegistryGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformRegistryGrantEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `updatePlatformRegistry` mutation.""" +input UpdatePlatformRegistryInput { + """ + An arbitrary 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 `PlatformRegistry` being updated. + """ + platformRegistryPatch: PlatformRegistryPatch! +} + +"""The output of our update `PlatformRegistry` mutation.""" +type UpdatePlatformRegistryPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `PlatformRegistry` that was updated by this mutation.""" + platformRegistry: PlatformRegistry + + """An edge for our `PlatformRegistry`. May be used by Relay 1.""" + platformRegistryEdge( + """The method to use when ordering `PlatformRegistry`.""" + orderBy: [PlatformRegistryOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformRegistryEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `updatePlatformRepositoryEvent` mutation.""" +input UpdatePlatformRepositoryEventInput { + """ + An arbitrary 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 `PlatformRepositoryEvent` being updated. + """ + platformRepositoryEventPatch: PlatformRepositoryEventPatch! +} + +"""The output of our update `PlatformRepositoryEvent` mutation.""" +type UpdatePlatformRepositoryEventPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `PlatformRepositoryEvent` that was updated by this mutation.""" + platformRepositoryEvent: PlatformRepositoryEvent + + """An edge for our `PlatformRepositoryEvent`. May be used by Relay 1.""" + platformRepositoryEventEdge( + """The method to use when ordering `PlatformRepositoryEvent`.""" + orderBy: [PlatformRepositoryEventOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformRepositoryEventEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `updatePlatformRepository` mutation.""" +input UpdatePlatformRepositoryInput { + """ + An arbitrary 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 `PlatformRepository` being updated. + """ + platformRepositoryPatch: PlatformRepositoryPatch! +} + +"""The output of our update `PlatformRepository` mutation.""" +type UpdatePlatformRepositoryPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `PlatformRepository` that was updated by this mutation.""" + platformRepository: PlatformRepository + + """An edge for our `PlatformRepository`. May be used by Relay 1.""" + platformRepositoryEdge( + """The method to use when ordering `PlatformRepository`.""" + orderBy: [PlatformRepositoryOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformRepositoryEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `updatePlatformRepositoryRequiredCheck` mutation.""" +input UpdatePlatformRepositoryRequiredCheckInput { + """ + An arbitrary 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 `PlatformRepositoryRequiredCheck` being updated. + """ + platformRepositoryRequiredCheckPatch: PlatformRepositoryRequiredCheckPatch! +} + +"""The output of our update `PlatformRepositoryRequiredCheck` mutation.""" +type UpdatePlatformRepositoryRequiredCheckPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """ + The `PlatformRepositoryRequiredCheck` that was updated by this mutation. + """ + platformRepositoryRequiredCheck: PlatformRepositoryRequiredCheck + + """ + An edge for our `PlatformRepositoryRequiredCheck`. May be used by Relay 1. + """ + platformRepositoryRequiredCheckEdge( + """The method to use when ordering `PlatformRepositoryRequiredCheck`.""" + orderBy: [PlatformRepositoryRequiredCheckOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformRepositoryRequiredCheckEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `updatePlatformRepositoryWorkflow` mutation.""" +input UpdatePlatformRepositoryWorkflowInput { + """ + An arbitrary 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 `PlatformRepositoryWorkflow` being updated. + """ + platformRepositoryWorkflowPatch: PlatformRepositoryWorkflowPatch! +} + +"""The output of our update `PlatformRepositoryWorkflow` mutation.""" +type UpdatePlatformRepositoryWorkflowPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `PlatformRepositoryWorkflow` that was updated by this mutation.""" + platformRepositoryWorkflow: PlatformRepositoryWorkflow + + """An edge for our `PlatformRepositoryWorkflow`. May be used by Relay 1.""" + platformRepositoryWorkflowEdge( + """The method to use when ordering `PlatformRepositoryWorkflow`.""" + orderBy: [PlatformRepositoryWorkflowOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformRepositoryWorkflowEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + """All input for the `updatePlatformResourceDefinition` mutation.""" input UpdatePlatformResourceDefinitionInput { """ @@ -28905,6 +53287,500 @@ type UpdatePlatformWebhookEventPayload { query: Query } +"""All input for the `updateProposalComment` mutation.""" +input UpdateProposalCommentInput { + """ + An arbitrary 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 `ProposalComment` being updated. + """ + proposalCommentPatch: ProposalCommentPatch! +} + +"""The output of our update `ProposalComment` mutation.""" +type UpdateProposalCommentPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `ProposalComment` that was updated by this mutation.""" + proposalComment: ProposalComment + + """An edge for our `ProposalComment`. May be used by Relay 1.""" + proposalCommentEdge( + """The method to use when ordering `ProposalComment`.""" + orderBy: [ProposalCommentOrderBy!]! = [PRIMARY_KEY_ASC] + ): ProposalCommentEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `updateProposalFileView` mutation.""" +input UpdateProposalFileViewInput { + """ + An arbitrary 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 `ProposalFileView` being updated. + """ + proposalFileViewPatch: ProposalFileViewPatch! +} + +"""The output of our update `ProposalFileView` mutation.""" +type UpdateProposalFileViewPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `ProposalFileView` that was updated by this mutation.""" + proposalFileView: ProposalFileView + + """An edge for our `ProposalFileView`. May be used by Relay 1.""" + proposalFileViewEdge( + """The method to use when ordering `ProposalFileView`.""" + orderBy: [ProposalFileViewOrderBy!]! = [PRIMARY_KEY_ASC] + ): ProposalFileViewEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `updateProposal` mutation.""" +input UpdateProposalInput { + """ + An arbitrary 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 `Proposal` being updated. + """ + proposalPatch: ProposalPatch! +} + +"""The output of our update `Proposal` mutation.""" +type UpdateProposalPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `Proposal` that was updated by this mutation.""" + proposal: Proposal + + """An edge for our `Proposal`. May be used by Relay 1.""" + proposalEdge( + """The method to use when ordering `Proposal`.""" + orderBy: [ProposalOrderBy!]! = [PRIMARY_KEY_ASC] + ): ProposalEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `updateProposalReaction` mutation.""" +input UpdateProposalReactionInput { + """ + An arbitrary 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 `ProposalReaction` being updated. + """ + proposalReactionPatch: ProposalReactionPatch! +} + +"""The output of our update `ProposalReaction` mutation.""" +type UpdateProposalReactionPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `ProposalReaction` that was updated by this mutation.""" + proposalReaction: ProposalReaction + + """An edge for our `ProposalReaction`. May be used by Relay 1.""" + proposalReactionEdge( + """The method to use when ordering `ProposalReaction`.""" + orderBy: [ProposalReactionOrderBy!]! = [PRIMARY_KEY_ASC] + ): ProposalReactionEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `updateProposalReview` mutation.""" +input UpdateProposalReviewInput { + """ + An arbitrary 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 `ProposalReview` being updated. + """ + proposalReviewPatch: ProposalReviewPatch! +} + +"""The output of our update `ProposalReview` mutation.""" +type UpdateProposalReviewPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `ProposalReview` that was updated by this mutation.""" + proposalReview: ProposalReview + + """An edge for our `ProposalReview`. May be used by Relay 1.""" + proposalReviewEdge( + """The method to use when ordering `ProposalReview`.""" + orderBy: [ProposalReviewOrderBy!]! = [PRIMARY_KEY_ASC] + ): ProposalReviewEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `updateProposalsChunk` mutation.""" +input UpdateProposalsChunkInput { + """ + An arbitrary 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 `ProposalsChunk` being updated. + """ + proposalsChunkPatch: ProposalsChunkPatch! +} + +"""The output of our update `ProposalsChunk` mutation.""" +type UpdateProposalsChunkPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `ProposalsChunk` that was updated by this mutation.""" + proposalsChunk: ProposalsChunk + + """An edge for our `ProposalsChunk`. May be used by Relay 1.""" + proposalsChunkEdge( + """The method to use when ordering `ProposalsChunk`.""" + orderBy: [ProposalsChunkOrderBy!]! = [PRIMARY_KEY_ASC] + ): ProposalsChunkEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `updateRegistryBinding` mutation.""" +input UpdateRegistryBindingInput { + """ + An arbitrary 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 `RegistryBinding` being updated. + """ + registryBindingPatch: RegistryBindingPatch! +} + +"""The output of our update `RegistryBinding` mutation.""" +type UpdateRegistryBindingPayload { + """ + The 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 `RegistryBinding` that was updated by this mutation.""" + registryBinding: RegistryBinding + + """An edge for our `RegistryBinding`. May be used by Relay 1.""" + registryBindingEdge( + """The method to use when ordering `RegistryBinding`.""" + orderBy: [RegistryBindingOrderBy!]! = [PRIMARY_KEY_ASC] + ): RegistryBindingEdge +} + +"""All input for the `updateRegistryGrant` mutation.""" +input UpdateRegistryGrantInput { + """ + An arbitrary 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 `RegistryGrant` being updated. + """ + registryGrantPatch: RegistryGrantPatch! +} + +"""The output of our update `RegistryGrant` mutation.""" +type UpdateRegistryGrantPayload { + """ + The 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 `RegistryGrant` that was updated by this mutation.""" + registryGrant: RegistryGrant + + """An edge for our `RegistryGrant`. May be used by Relay 1.""" + registryGrantEdge( + """The method to use when ordering `RegistryGrant`.""" + orderBy: [RegistryGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): RegistryGrantEdge +} + +"""All input for the `updateRegistry` mutation.""" +input UpdateRegistryInput { + """ + An arbitrary 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 `Registry` being updated. + """ + registryPatch: RegistryPatch! +} + +"""The output of our update `Registry` mutation.""" +type UpdateRegistryPayload { + """ + The 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 `Registry` that was updated by this mutation.""" + registry: Registry + + """An edge for our `Registry`. May be used by Relay 1.""" + registryEdge( + """The method to use when ordering `Registry`.""" + orderBy: [RegistryOrderBy!]! = [PRIMARY_KEY_ASC] + ): RegistryEdge +} + +"""All input for the `updateRepositoryEvent` mutation.""" +input UpdateRepositoryEventInput { + """ + An arbitrary 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 `RepositoryEvent` being updated. + """ + repositoryEventPatch: RepositoryEventPatch! +} + +"""The output of our update `RepositoryEvent` mutation.""" +type UpdateRepositoryEventPayload { + """ + The 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 `RepositoryEvent` that was updated by this mutation.""" + repositoryEvent: RepositoryEvent + + """An edge for our `RepositoryEvent`. May be used by Relay 1.""" + repositoryEventEdge( + """The method to use when ordering `RepositoryEvent`.""" + orderBy: [RepositoryEventOrderBy!]! = [PRIMARY_KEY_ASC] + ): RepositoryEventEdge +} + +"""All input for the `updateRepository` mutation.""" +input UpdateRepositoryInput { + """ + An arbitrary 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 `Repository` being updated. + """ + repositoryPatch: RepositoryPatch! +} + +"""The output of our update `Repository` mutation.""" +type UpdateRepositoryPayload { + """ + The 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 `Repository` that was updated by this mutation.""" + repository: Repository + + """An edge for our `Repository`. May be used by Relay 1.""" + repositoryEdge( + """The method to use when ordering `Repository`.""" + orderBy: [RepositoryOrderBy!]! = [PRIMARY_KEY_ASC] + ): RepositoryEdge +} + +"""All input for the `updateRepositoryRequiredCheck` mutation.""" +input UpdateRepositoryRequiredCheckInput { + """ + An arbitrary 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 `RepositoryRequiredCheck` being updated. + """ + repositoryRequiredCheckPatch: RepositoryRequiredCheckPatch! +} + +"""The output of our update `RepositoryRequiredCheck` mutation.""" +type UpdateRepositoryRequiredCheckPayload { + """ + The 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 `RepositoryRequiredCheck` that was updated by this mutation.""" + repositoryRequiredCheck: RepositoryRequiredCheck + + """An edge for our `RepositoryRequiredCheck`. May be used by Relay 1.""" + repositoryRequiredCheckEdge( + """The method to use when ordering `RepositoryRequiredCheck`.""" + orderBy: [RepositoryRequiredCheckOrderBy!]! = [PRIMARY_KEY_ASC] + ): RepositoryRequiredCheckEdge +} + +"""All input for the `updateRepositoryWorkflow` mutation.""" +input UpdateRepositoryWorkflowInput { + """ + An arbitrary 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 `RepositoryWorkflow` being updated. + """ + repositoryWorkflowPatch: RepositoryWorkflowPatch! +} + +"""The output of our update `RepositoryWorkflow` mutation.""" +type UpdateRepositoryWorkflowPayload { + """ + The 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 `RepositoryWorkflow` that was updated by this mutation.""" + repositoryWorkflow: RepositoryWorkflow + + """An edge for our `RepositoryWorkflow`. May be used by Relay 1.""" + repositoryWorkflowEdge( + """The method to use when ordering `RepositoryWorkflow`.""" + orderBy: [RepositoryWorkflowOrderBy!]! = [PRIMARY_KEY_ASC] + ): RepositoryWorkflowEdge +} + """All input for the `updateResourceDefinition` mutation.""" input UpdateResourceDefinitionInput { """ @@ -29292,6 +54168,81 @@ type ValidateFunctionGraphPayload { result: Boolean } +""" +A pgvector embedding — array of floats. Dimensions must match the column (e.g. 768 for nomic-embed-text). +""" +scalar Vector + +""" +A filter to be used against Vector fields. All fields are combined with a logical ‘and.’ +""" +input VectorFilter { + """ + Not equal to the specified value, treating null like an ordinary value. + """ + distinctFrom: Vector + + """Equal to the specified value.""" + equalTo: Vector + + """Included in the specified list.""" + in: [Vector!] + + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean + + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: Vector + + """Not equal to the specified value.""" + notEqualTo: Vector + + """Not included in the specified list.""" + notIn: [Vector!] +} + +"""Similarity metric for vector search""" +enum VectorMetric { + """ + Cosine distance (1 - cosine similarity). Range: 0 (identical) to 2 (opposite). + """ + COSINE + + """Negative inner product. Higher (less negative) = more similar.""" + IP + + """Euclidean (L2) distance. Range: 0 (identical) to infinity.""" + L2 +} + +""" +Input for vector similarity search. Provide a query vector, optional metric, and optional max distance threshold. +""" +input VectorNearbyInput { + """ + Maximum distance threshold. Only rows within this distance are returned. + """ + distance: Float + + """ + When true (default for tables with @hasChunks), transparently queries the chunks table and returns the minimum distance across parent + all chunks. Set to false to only search the parent embedding. + """ + includeChunks: Boolean + + """Similarity metric to use (default: COSINE).""" + metric: VectorMetric + + """ + Natural language text to embed server-side for similarity search. Mutually exclusive with `vector` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. + """ + text: String + + """Query vector for similarity search.""" + vector: [Float!]! +} + """ Webhook route authority: (host, path) -> function task_identifier invoked through the webhook channel, with provider, signing-secret reference, and replay window """ @@ -29300,6 +54251,7 @@ type WebhookEndpoint { active: Boolean! createdAt: Datetime createdBy: UUID + createdByPrincipal: UUID """Database that owns this resource (database-scoped isolation)""" databaseId: UUID! @@ -29343,6 +54295,7 @@ type WebhookEndpoint { signingSecretName: String! updatedAt: Datetime updatedBy: UUID + updatedByPrincipal: UUID """Reads and enables pagination through a set of `WebhookEvent`.""" webhookEventsByEndpointId( @@ -29418,6 +54371,9 @@ input WebhookEndpointFilter { """Filter by the object’s `createdBy` field.""" createdBy: UUIDFilter + """Filter by the object’s `createdByPrincipal` field.""" + createdByPrincipal: UUIDFilter + """Filter by the object’s `databaseId` field.""" databaseId: UUIDFilter @@ -29463,6 +54419,9 @@ input WebhookEndpointFilter { """Filter by the object’s `updatedBy` field.""" updatedBy: UUIDFilter + """Filter by the object’s `updatedByPrincipal` field.""" + updatedByPrincipal: UUIDFilter + """Filter by the object’s `webhookEventsByEndpointId` relation.""" webhookEventsByEndpointId: WebhookEndpointToManyWebhookEventFilter @@ -29476,6 +54435,7 @@ input WebhookEndpointInput { active: Boolean createdAt: Datetime createdBy: UUID + createdByPrincipal: UUID """Database that owns this resource (database-scoped isolation)""" databaseId: UUID! @@ -29511,6 +54471,7 @@ input WebhookEndpointInput { signingSecretName: String! updatedAt: Datetime updatedBy: UUID + updatedByPrincipal: UUID } """Methods to use when ordering `WebhookEndpoint`.""" @@ -29521,6 +54482,8 @@ enum WebhookEndpointOrderBy { CREATED_AT_DESC CREATED_BY_ASC CREATED_BY_DESC + CREATED_BY_PRINCIPAL_ASC + CREATED_BY_PRINCIPAL_DESC DATABASE_ID_ASC DATABASE_ID_DESC FUNCTION_DEFINITION_ID_ASC @@ -29546,6 +54509,8 @@ enum WebhookEndpointOrderBy { UPDATED_AT_DESC UPDATED_BY_ASC UPDATED_BY_DESC + UPDATED_BY_PRINCIPAL_ASC + UPDATED_BY_PRINCIPAL_DESC } """ @@ -29556,6 +54521,7 @@ input WebhookEndpointPatch { active: Boolean createdAt: Datetime createdBy: UUID + createdByPrincipal: UUID """Database that owns this resource (database-scoped isolation)""" databaseId: UUID @@ -29591,6 +54557,7 @@ input WebhookEndpointPatch { signingSecretName: String updatedAt: Datetime updatedBy: UUID + updatedByPrincipal: UUID } """ diff --git a/sdk/constructive-sdk/schemas/config.graphql b/sdk/constructive-sdk/schemas/config.graphql index e6ad647b2b..1649d3c630 100644 --- a/sdk/constructive-sdk/schemas/config.graphql +++ b/sdk/constructive-sdk/schemas/config.graphql @@ -1,3 +1,221 @@ +type AppInternalSecret { + annotations: JSON + createdAt: Datetime + description: String + id: UUID + labels: JSON + name: String + realm: String + retiredAt: Datetime + rotatedAt: Datetime + updatedAt: Datetime +} + +"""A connection to a list of `AppInternalSecret` values.""" +type AppInternalSecretConnection { + """ + A list of edges which contains the `AppInternalSecret` and cursor to aid in pagination. + """ + edges: [AppInternalSecretEdge]! + + """A list of `AppInternalSecret` objects.""" + nodes: [AppInternalSecret]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `AppInternalSecret` you could get from the connection. + """ + totalCount: Int! +} + +"""A `AppInternalSecret` edge in the connection.""" +type AppInternalSecretEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `AppInternalSecret` at the end of the edge.""" + node: AppInternalSecret +} + +""" +A filter to be used against `AppInternalSecret` object types. All fields are combined with a logical ‘and.’ +""" +input AppInternalSecretFilter { + """Checks for all expressions in this list.""" + and: [AppInternalSecretFilter!] + + """Filter by the object’s `annotations` field.""" + annotations: JSONFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `description` field.""" + description: StringFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `labels` field.""" + labels: JSONFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """Negates the expression.""" + not: AppInternalSecretFilter + + """Checks for any expressions in this list.""" + or: [AppInternalSecretFilter!] + + """Filter by the object’s `realm` field.""" + realm: StringFilter + + """Filter by the object’s `retiredAt` field.""" + retiredAt: DatetimeFilter + + """Filter by the object’s `rotatedAt` field.""" + rotatedAt: DatetimeFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter +} + +"""Methods to use when ordering `AppInternalSecret`.""" +enum AppInternalSecretOrderBy { + ANNOTATIONS_ASC + ANNOTATIONS_DESC + CREATED_AT_ASC + CREATED_AT_DESC + DESCRIPTION_ASC + DESCRIPTION_DESC + ID_ASC + ID_DESC + LABELS_ASC + LABELS_DESC + NAME_ASC + NAME_DESC + NATURAL + REALM_ASC + REALM_DESC + RETIRED_AT_ASC + RETIRED_AT_DESC + ROTATED_AT_ASC + ROTATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC +} + +"""All input for the `appInternalSecretsDel` mutation.""" +input AppInternalSecretsDelInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + realm: String + secretName: String +} + +"""The output of our `appInternalSecretsDel` mutation.""" +type AppInternalSecretsDelPayload { + """ + The 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 `appInternalSecretsRemoveArray` mutation.""" +input AppInternalSecretsRemoveArrayInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + realm: String + secretNames: [String] +} + +"""The output of our `appInternalSecretsRemoveArray` mutation.""" +type AppInternalSecretsRemoveArrayPayload { + """ + The 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 `appInternalSecretsRotate` mutation.""" +input AppInternalSecretsRotateInput { + algo: 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 + realm: String + secretName: String + secretValue: String +} + +"""The output of our `appInternalSecretsRotate` mutation.""" +type AppInternalSecretsRotatePayload { + """ + The 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: Boolean +} + +"""All input for the `appInternalSecretsSet` mutation.""" +input AppInternalSecretsSetInput { + algo: 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 + secretName: String + secretRealm: String + secretValue: String +} + +"""The output of our `appInternalSecretsSet` mutation.""" +type AppInternalSecretsSetPayload { + """ + The 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: Boolean +} + """ Namespace-backed plaintext key-value config store (like a k8s ConfigMap); admin-only, fully CRUD-exposed """ @@ -5,6 +223,7 @@ type Config { """Freeform metadata for tooling and operational notes""" annotations: JSON! createdAt: Datetime + createdByPrincipal: UUID """Database that owns this resource (database-scoped isolation)""" databaseId: UUID! @@ -37,6 +256,7 @@ type Config { """ realm: String updatedAt: Datetime + updatedByPrincipal: UUID """Plaintext config value""" value: String @@ -81,6 +301,9 @@ input ConfigFilter { """Filter by the object’s `createdAt` field.""" createdAt: DatetimeFilter + """Filter by the object’s `createdByPrincipal` field.""" + createdByPrincipal: UUIDFilter + """Filter by the object’s `databaseId` field.""" databaseId: UUIDFilter @@ -117,6 +340,9 @@ input ConfigFilter { """Filter by the object’s `updatedAt` field.""" updatedAt: DatetimeFilter + """Filter by the object’s `updatedByPrincipal` field.""" + updatedByPrincipal: UUIDFilter + """Filter by the object’s `value` field.""" value: StringFilter } @@ -126,6 +352,7 @@ input ConfigInput { """Freeform metadata for tooling and operational notes""" annotations: JSON createdAt: Datetime + createdByPrincipal: UUID """Database that owns this resource (database-scoped isolation)""" databaseId: UUID! @@ -158,6 +385,7 @@ input ConfigInput { """ realm: String updatedAt: Datetime + updatedByPrincipal: UUID """Plaintext config value""" value: String @@ -169,6 +397,8 @@ enum ConfigOrderBy { ANNOTATIONS_DESC CREATED_AT_ASC CREATED_AT_DESC + CREATED_BY_PRINCIPAL_ASC + CREATED_BY_PRINCIPAL_DESC DATABASE_ID_ASC DATABASE_ID_DESC DESCRIPTION_ASC @@ -192,6 +422,8 @@ enum ConfigOrderBy { REALM_DESC UPDATED_AT_ASC UPDATED_AT_DESC + UPDATED_BY_PRINCIPAL_ASC + UPDATED_BY_PRINCIPAL_DESC VALUE_ASC VALUE_DESC } @@ -203,6 +435,7 @@ input ConfigPatch { """Freeform metadata for tooling and operational notes""" annotations: JSON createdAt: Datetime + createdByPrincipal: UUID """Database that owns this resource (database-scoped isolation)""" databaseId: UUID @@ -235,6 +468,7 @@ input ConfigPatch { """ realm: String updatedAt: Datetime + updatedByPrincipal: UUID """Plaintext config value""" value: String @@ -275,6 +509,41 @@ type CreateConfigPayload { query: Query } +"""All input for the create `InternalConfig` mutation.""" +input CreateInternalConfigInput { + """ + An arbitrary 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 `InternalConfig` to be created by this mutation.""" + internalConfig: InternalConfigInput! +} + +"""The output of our create `InternalConfig` mutation.""" +type CreateInternalConfigPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `InternalConfig` that was created by this mutation.""" + internalConfig: InternalConfig + + """An edge for our `InternalConfig`. May be used by Relay 1.""" + internalConfigEdge( + """The method to use when ordering `InternalConfig`.""" + orderBy: [InternalConfigOrderBy!]! = [PRIMARY_KEY_ASC] + ): InternalConfigEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + """All input for the create `PlatformConfig` mutation.""" input CreatePlatformConfigInput { """ @@ -310,6 +579,41 @@ type CreatePlatformConfigPayload { query: Query } +"""All input for the create `PlatformInternalConfig` mutation.""" +input CreatePlatformInternalConfigInput { + """ + An arbitrary 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 `PlatformInternalConfig` to be created by this mutation.""" + platformInternalConfig: PlatformInternalConfigInput! +} + +"""The output of our create `PlatformInternalConfig` mutation.""" +type CreatePlatformInternalConfigPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `PlatformInternalConfig` that was created by this mutation.""" + platformInternalConfig: PlatformInternalConfig + + """An edge for our `PlatformInternalConfig`. May be used by Relay 1.""" + platformInternalConfigEdge( + """The method to use when ordering `PlatformInternalConfig`.""" + orderBy: [PlatformInternalConfigOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformInternalConfigEdge + + """ + 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 @@ -399,6 +703,41 @@ type DeleteConfigPayload { query: Query } +"""All input for the `deleteInternalConfig` mutation.""" +input DeleteInternalConfigInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """Unique identifier for this config entry""" + id: UUID! +} + +"""The output of our delete `InternalConfig` mutation.""" +type DeleteInternalConfigPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `InternalConfig` that was deleted by this mutation.""" + internalConfig: InternalConfig + + """An edge for our `InternalConfig`. May be used by Relay 1.""" + internalConfigEdge( + """The method to use when ordering `InternalConfig`.""" + orderBy: [InternalConfigOrderBy!]! = [PRIMARY_KEY_ASC] + ): InternalConfigEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + """All input for the `deletePlatformConfig` mutation.""" input DeletePlatformConfigInput { """ @@ -434,9 +773,386 @@ type DeletePlatformConfigPayload { query: Query } -""" -Represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). -""" +"""All input for the `deletePlatformInternalConfig` mutation.""" +input DeletePlatformInternalConfigInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """Unique identifier for this config entry""" + id: UUID! +} + +"""The output of our delete `PlatformInternalConfig` mutation.""" +type DeletePlatformInternalConfigPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `PlatformInternalConfig` that was deleted by this mutation.""" + platformInternalConfig: PlatformInternalConfig + + """An edge for our `PlatformInternalConfig`. May be used by Relay 1.""" + platformInternalConfigEdge( + """The method to use when ordering `PlatformInternalConfig`.""" + orderBy: [PlatformInternalConfigOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformInternalConfigEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +""" +-level plaintext key-value config store; database-resident, never projected into Kubernetes +""" +type InternalConfig { + """Freeform metadata for tooling and operational notes""" + annotations: JSON! + createdAt: Datetime + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! + + """Human-readable note about this config entry""" + description: String + + """Optional expiration timestamp for time-limited config entries""" + expiresAt: Datetime + + """Unique identifier for this config entry""" + id: UUID! + + """Key/value pairs for selecting/filtering config entries""" + labels: JSON! + + """Key name identifying the config entry""" + name: String! + + """ + Integration provider slug (e.g. mailgun, postgres). Used by the UI to group config entries by integration. No FK. + """ + provider: String + + """ + Optional discriminator scoping this value under its name. NULL = the default/unqualified value; getters fall back from an exact realm match to the NULL-realm row. + """ + realm: String + updatedAt: Datetime + + """Plaintext config value""" + value: String +} + +"""A connection to a list of `InternalConfig` values.""" +type InternalConfigConnection { + """ + A list of edges which contains the `InternalConfig` and cursor to aid in pagination. + """ + edges: [InternalConfigEdge]! + + """A list of `InternalConfig` objects.""" + nodes: [InternalConfig]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `InternalConfig` you could get from the connection.""" + totalCount: Int! +} + +"""A `InternalConfig` edge in the connection.""" +type InternalConfigEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `InternalConfig` at the end of the edge.""" + node: InternalConfig +} + +""" +A filter to be used against `InternalConfig` object types. All fields are combined with a logical ‘and.’ +""" +input InternalConfigFilter { + """Checks for all expressions in this list.""" + and: [InternalConfigFilter!] + + """Filter by the object’s `annotations` field.""" + annotations: JSONFilter + + """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 `expiresAt` field.""" + expiresAt: DatetimeFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `labels` field.""" + labels: JSONFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """Negates the expression.""" + not: InternalConfigFilter + + """Checks for any expressions in this list.""" + or: [InternalConfigFilter!] + + """Filter by the object’s `provider` field.""" + provider: StringFilter + + """Filter by the object’s `realm` field.""" + realm: StringFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + + """Filter by the object’s `value` field.""" + value: StringFilter +} + +"""An input for mutations affecting `InternalConfig`""" +input InternalConfigInput { + """Freeform metadata for tooling and operational notes""" + annotations: JSON + createdAt: Datetime + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! + + """Human-readable note about this config entry""" + description: String + + """Optional expiration timestamp for time-limited config entries""" + expiresAt: Datetime + + """Unique identifier for this config entry""" + id: UUID + + """Key/value pairs for selecting/filtering config entries""" + labels: JSON + + """Key name identifying the config entry""" + name: String! + + """ + Integration provider slug (e.g. mailgun, postgres). Used by the UI to group config entries by integration. No FK. + """ + provider: String + + """ + Optional discriminator scoping this value under its name. NULL = the default/unqualified value; getters fall back from an exact realm match to the NULL-realm row. + """ + realm: String + updatedAt: Datetime + + """Plaintext config value""" + value: String +} + +"""Methods to use when ordering `InternalConfig`.""" +enum InternalConfigOrderBy { + ANNOTATIONS_ASC + ANNOTATIONS_DESC + CREATED_AT_ASC + CREATED_AT_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + DESCRIPTION_ASC + DESCRIPTION_DESC + EXPIRES_AT_ASC + EXPIRES_AT_DESC + ID_ASC + ID_DESC + LABELS_ASC + LABELS_DESC + NAME_ASC + NAME_DESC + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + PROVIDER_ASC + PROVIDER_DESC + REALM_ASC + REALM_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + VALUE_ASC + VALUE_DESC +} + +""" +Represents an update to a `InternalConfig`. Fields that are set will be updated. +""" +input InternalConfigPatch { + """Freeform metadata for tooling and operational notes""" + annotations: JSON + createdAt: Datetime + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID + + """Human-readable note about this config entry""" + description: String + + """Optional expiration timestamp for time-limited config entries""" + expiresAt: Datetime + + """Unique identifier for this config entry""" + id: UUID + + """Key/value pairs for selecting/filtering config entries""" + labels: JSON + + """Key name identifying the config entry""" + name: String + + """ + Integration provider slug (e.g. mailgun, postgres). Used by the UI to group config entries by integration. No FK. + """ + provider: String + + """ + Optional discriminator scoping this value under its name. NULL = the default/unqualified value; getters fall back from an exact realm match to the NULL-realm row. + """ + realm: String + updatedAt: Datetime + + """Plaintext config value""" + value: String +} + +type InternalSecret { + annotations: JSON + createdAt: Datetime + databaseId: UUID + description: String + id: UUID + labels: JSON + name: String + realm: String + retiredAt: Datetime + rotatedAt: Datetime + updatedAt: Datetime +} + +"""A connection to a list of `InternalSecret` values.""" +type InternalSecretConnection { + """ + A list of edges which contains the `InternalSecret` and cursor to aid in pagination. + """ + edges: [InternalSecretEdge]! + + """A list of `InternalSecret` objects.""" + nodes: [InternalSecret]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `InternalSecret` you could get from the connection.""" + totalCount: Int! +} + +"""A `InternalSecret` edge in the connection.""" +type InternalSecretEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `InternalSecret` at the end of the edge.""" + node: InternalSecret +} + +""" +A filter to be used against `InternalSecret` object types. All fields are combined with a logical ‘and.’ +""" +input InternalSecretFilter { + """Checks for all expressions in this list.""" + and: [InternalSecretFilter!] + + """Filter by the object’s `annotations` field.""" + annotations: JSONFilter + + """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 `id` field.""" + id: UUIDFilter + + """Filter by the object’s `labels` field.""" + labels: JSONFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """Negates the expression.""" + not: InternalSecretFilter + + """Checks for any expressions in this list.""" + or: [InternalSecretFilter!] + + """Filter by the object’s `realm` field.""" + realm: StringFilter + + """Filter by the object’s `retiredAt` field.""" + retiredAt: DatetimeFilter + + """Filter by the object’s `rotatedAt` field.""" + rotatedAt: DatetimeFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter +} + +"""Methods to use when ordering `InternalSecret`.""" +enum InternalSecretOrderBy { + ANNOTATIONS_ASC + ANNOTATIONS_DESC + CREATED_AT_ASC + CREATED_AT_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + DESCRIPTION_ASC + DESCRIPTION_DESC + ID_ASC + ID_DESC + LABELS_ASC + LABELS_DESC + NAME_ASC + NAME_DESC + NATURAL + REALM_ASC + REALM_DESC + RETIRED_AT_ASC + RETIRED_AT_DESC + ROTATED_AT_ASC + ROTATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC +} + +""" +Represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). +""" scalar JSON """ @@ -741,13 +1457,59 @@ type MetaSearchConfig { weights: String } -"""Storage metadata for a table""" -type MetaStorage { - """Whether this table is a storage buckets table""" - isBucketsTable: Boolean! +"""Storage metadata for a table""" +type MetaStorage { + """GraphQL type name of the plane's buckets table""" + bucketsType: String! + + """ + Computed download-URL field on the files type; null on the buckets side + """ + downloadUrlField: String + + """GraphQL type name of the plane's files table""" + filesType: String! + + """Whether this table is a storage buckets table""" + isBucketsTable: Boolean! + + """Whether this table is a storage files table""" + isFilesTable: Boolean! + + """The plane's GraphQL upload surface""" + upload: MetaStorageUpload! +} + +""" +The GraphQL upload surface of a storage plane, derived from the registry facts the presigned-url plugin emits from +""" +type MetaStorageUpload { + """Per-file input type inside the bulk input""" + bulkFileInputType: String! + + """Per-file payload type inside the bulk payload""" + bulkFilePayloadType: String! + + """Input type of the bulk upload mutation""" + bulkInputType: String! + + """Root mutation field for bulk upload""" + bulkMutation: String! + + """Payload type of the bulk upload mutation""" + bulkPayloadType: String! + + """Input type of the single upload mutation""" + inputType: String! - """Whether this table is a storage files table""" - isFilesTable: Boolean! + """Root mutation field for single-file upload (e.g. uploadAppFile)""" + mutation: String! + + """Payload type of the single upload mutation""" + payloadType: String! + + """Whether the upload input requires ownerId (entity-keyed plane)""" + requiresOwnerId: Boolean! } """Information about a database table""" @@ -807,6 +1569,30 @@ type MetaUniqueConstraint { The root mutation type which contains root level fields which mutate data. """ type Mutation { + _internalSecretsDel( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: _InternalSecretsDelInput! + ): _InternalSecretsDelPayload + _internalSecretsRemoveArray( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: _InternalSecretsRemoveArrayInput! + ): _InternalSecretsRemoveArrayPayload + _internalSecretsRotate( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: _InternalSecretsRotateInput! + ): _InternalSecretsRotatePayload + _internalSecretsSet( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: _InternalSecretsSetInput! + ): _InternalSecretsSetPayload _secretsDel( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. @@ -831,6 +1617,30 @@ type Mutation { """ input: _SecretsSetInput! ): _SecretsSetPayload + appInternalSecretsDel( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: AppInternalSecretsDelInput! + ): AppInternalSecretsDelPayload + appInternalSecretsRemoveArray( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: AppInternalSecretsRemoveArrayInput! + ): AppInternalSecretsRemoveArrayPayload + appInternalSecretsRotate( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: AppInternalSecretsRotateInput! + ): AppInternalSecretsRotatePayload + appInternalSecretsSet( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: AppInternalSecretsSetInput! + ): AppInternalSecretsSetPayload """Creates a single `Config`.""" createConfig( @@ -840,6 +1650,14 @@ type Mutation { input: CreateConfigInput! ): CreateConfigPayload + """Creates a single `InternalConfig`.""" + createInternalConfig( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateInternalConfigInput! + ): CreateInternalConfigPayload + """Creates a single `PlatformConfig`.""" createPlatformConfig( """ @@ -848,6 +1666,14 @@ type Mutation { input: CreatePlatformConfigInput! ): CreatePlatformConfigPayload + """Creates a single `PlatformInternalConfig`.""" + createPlatformInternalConfig( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreatePlatformInternalConfigInput! + ): CreatePlatformInternalConfigPayload + """Deletes a single `Config` using a unique key.""" deleteConfig( """ @@ -856,6 +1682,14 @@ type Mutation { input: DeleteConfigInput! ): DeleteConfigPayload + """Deletes a single `InternalConfig` using a unique key.""" + deleteInternalConfig( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteInternalConfigInput! + ): DeleteInternalConfigPayload + """Deletes a single `PlatformConfig` using a unique key.""" deletePlatformConfig( """ @@ -863,6 +1697,14 @@ type Mutation { """ input: DeletePlatformConfigInput! ): DeletePlatformConfigPayload + + """Deletes a single `PlatformInternalConfig` using a unique key.""" + deletePlatformInternalConfig( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePlatformInternalConfigInput! + ): DeletePlatformInternalConfigPayload platformInternalSecretsDel( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. @@ -913,10 +1755,11 @@ type Mutation { ): PlatformSecretsSetPayload """ - 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. + Reconcile an S3 bucket for a logical bucket in the database. + Reads the bucket config via RLS, then enqueues the same + storage:provision_bucket job used by the INSERT trigger. This is + idempotent for an already-reconciled bucket; enqueue failures become + GraphQL errors. """ provisionBucket( """ @@ -933,6 +1776,14 @@ type Mutation { input: UpdateConfigInput! ): UpdateConfigPayload + """Updates a single `InternalConfig` using a unique key and a patch.""" + updateInternalConfig( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateInternalConfigInput! + ): UpdateInternalConfigPayload + """Updates a single `PlatformConfig` using a unique key and a patch.""" updatePlatformConfig( """ @@ -940,6 +1791,16 @@ type Mutation { """ input: UpdatePlatformConfigInput! ): UpdatePlatformConfigPayload + + """ + Updates a single `PlatformInternalConfig` using a unique key and a patch. + """ + updatePlatformInternalConfig( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePlatformInternalConfigInput! + ): UpdatePlatformInternalConfigPayload } """Information about pagination in a connection.""" @@ -964,6 +1825,7 @@ type PlatformConfig { """Freeform metadata for tooling and operational notes""" annotations: JSON! createdAt: Datetime + createdByPrincipal: UUID """Human-readable note about this config entry""" description: String @@ -993,6 +1855,7 @@ type PlatformConfig { """ realm: String updatedAt: Datetime + updatedByPrincipal: UUID """Plaintext config value""" value: String @@ -1037,6 +1900,9 @@ input PlatformConfigFilter { """Filter by the object’s `createdAt` field.""" createdAt: DatetimeFilter + """Filter by the object’s `createdByPrincipal` field.""" + createdByPrincipal: UUIDFilter + """Filter by the object’s `description` field.""" description: StringFilter @@ -1070,6 +1936,9 @@ input PlatformConfigFilter { """Filter by the object’s `updatedAt` field.""" updatedAt: DatetimeFilter + """Filter by the object’s `updatedByPrincipal` field.""" + updatedByPrincipal: UUIDFilter + """Filter by the object’s `value` field.""" value: StringFilter } @@ -1079,6 +1948,7 @@ input PlatformConfigInput { """Freeform metadata for tooling and operational notes""" annotations: JSON createdAt: Datetime + createdByPrincipal: UUID """Human-readable note about this config entry""" description: String @@ -1108,6 +1978,7 @@ input PlatformConfigInput { """ realm: String updatedAt: Datetime + updatedByPrincipal: UUID """Plaintext config value""" value: String @@ -1119,6 +1990,8 @@ enum PlatformConfigOrderBy { ANNOTATIONS_DESC CREATED_AT_ASC CREATED_AT_DESC + CREATED_BY_PRINCIPAL_ASC + CREATED_BY_PRINCIPAL_DESC DESCRIPTION_ASC DESCRIPTION_DESC EXPIRES_AT_ASC @@ -1140,6 +2013,8 @@ enum PlatformConfigOrderBy { REALM_DESC UPDATED_AT_ASC UPDATED_AT_DESC + UPDATED_BY_PRINCIPAL_ASC + UPDATED_BY_PRINCIPAL_DESC VALUE_ASC VALUE_DESC } @@ -1151,6 +2026,7 @@ input PlatformConfigPatch { """Freeform metadata for tooling and operational notes""" annotations: JSON createdAt: Datetime + createdByPrincipal: UUID """Human-readable note about this config entry""" description: String @@ -1175,6 +2051,223 @@ input PlatformConfigPatch { """ provider: String + """ + Optional discriminator scoping this value under its name. NULL = the default/unqualified value; getters fall back from an exact realm match to the NULL-realm row. + """ + realm: String + updatedAt: Datetime + updatedByPrincipal: UUID + + """Plaintext config value""" + value: String +} + +""" +platform-level plaintext key-value config store; database-resident, never projected into Kubernetes +""" +type PlatformInternalConfig { + """Freeform metadata for tooling and operational notes""" + annotations: JSON! + createdAt: Datetime + + """Human-readable note about this config entry""" + description: String + + """Optional expiration timestamp for time-limited config entries""" + expiresAt: Datetime + + """Unique identifier for this config entry""" + id: UUID! + + """Key/value pairs for selecting/filtering config entries""" + labels: JSON! + + """Key name identifying the config entry""" + name: String! + + """ + Integration provider slug (e.g. mailgun, postgres). Used by the UI to group config entries by integration. No FK. + """ + provider: String + + """ + Optional discriminator scoping this value under its name. NULL = the default/unqualified value; getters fall back from an exact realm match to the NULL-realm row. + """ + realm: String + updatedAt: Datetime + + """Plaintext config value""" + value: String +} + +"""A connection to a list of `PlatformInternalConfig` values.""" +type PlatformInternalConfigConnection { + """ + A list of edges which contains the `PlatformInternalConfig` and cursor to aid in pagination. + """ + edges: [PlatformInternalConfigEdge]! + + """A list of `PlatformInternalConfig` objects.""" + nodes: [PlatformInternalConfig]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `PlatformInternalConfig` you could get from the connection. + """ + totalCount: Int! +} + +"""A `PlatformInternalConfig` edge in the connection.""" +type PlatformInternalConfigEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `PlatformInternalConfig` at the end of the edge.""" + node: PlatformInternalConfig +} + +""" +A filter to be used against `PlatformInternalConfig` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformInternalConfigFilter { + """Checks for all expressions in this list.""" + and: [PlatformInternalConfigFilter!] + + """Filter by the object’s `annotations` field.""" + annotations: JSONFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `description` field.""" + description: StringFilter + + """Filter by the object’s `expiresAt` field.""" + expiresAt: DatetimeFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `labels` field.""" + labels: JSONFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """Negates the expression.""" + not: PlatformInternalConfigFilter + + """Checks for any expressions in this list.""" + or: [PlatformInternalConfigFilter!] + + """Filter by the object’s `provider` field.""" + provider: StringFilter + + """Filter by the object’s `realm` field.""" + realm: StringFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + + """Filter by the object’s `value` field.""" + value: StringFilter +} + +"""An input for mutations affecting `PlatformInternalConfig`""" +input PlatformInternalConfigInput { + """Freeform metadata for tooling and operational notes""" + annotations: JSON + createdAt: Datetime + + """Human-readable note about this config entry""" + description: String + + """Optional expiration timestamp for time-limited config entries""" + expiresAt: Datetime + + """Unique identifier for this config entry""" + id: UUID + + """Key/value pairs for selecting/filtering config entries""" + labels: JSON + + """Key name identifying the config entry""" + name: String! + + """ + Integration provider slug (e.g. mailgun, postgres). Used by the UI to group config entries by integration. No FK. + """ + provider: String + + """ + Optional discriminator scoping this value under its name. NULL = the default/unqualified value; getters fall back from an exact realm match to the NULL-realm row. + """ + realm: String + updatedAt: Datetime + + """Plaintext config value""" + value: String +} + +"""Methods to use when ordering `PlatformInternalConfig`.""" +enum PlatformInternalConfigOrderBy { + ANNOTATIONS_ASC + ANNOTATIONS_DESC + CREATED_AT_ASC + CREATED_AT_DESC + DESCRIPTION_ASC + DESCRIPTION_DESC + EXPIRES_AT_ASC + EXPIRES_AT_DESC + ID_ASC + ID_DESC + LABELS_ASC + LABELS_DESC + NAME_ASC + NAME_DESC + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + PROVIDER_ASC + PROVIDER_DESC + REALM_ASC + REALM_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + VALUE_ASC + VALUE_DESC +} + +""" +Represents an update to a `PlatformInternalConfig`. Fields that are set will be updated. +""" +input PlatformInternalConfigPatch { + """Freeform metadata for tooling and operational notes""" + annotations: JSON + createdAt: Datetime + + """Human-readable note about this config entry""" + description: String + + """Optional expiration timestamp for time-limited config entries""" + expiresAt: Datetime + + """Unique identifier for this config entry""" + id: UUID + + """Key/value pairs for selecting/filtering config entries""" + labels: JSON + + """Key name identifying the config entry""" + name: String + + """ + Integration provider slug (e.g. mailgun, postgres). Used by the UI to group config entries by integration. No FK. + """ + provider: String + """ Optional discriminator scoping this value under its name. NULL = the default/unqualified value; getters fall back from an exact realm match to the NULL-realm row. """ @@ -1192,7 +2285,6 @@ type PlatformInternalSecret { id: UUID labels: JSON name: String - namespaceId: UUID realm: String retiredAt: Datetime rotatedAt: Datetime @@ -1252,9 +2344,6 @@ input PlatformInternalSecretFilter { """Filter by the object’s `name` field.""" name: StringFilter - """Filter by the object’s `namespaceId` field.""" - namespaceId: UUIDFilter - """Negates the expression.""" not: PlatformInternalSecretFilter @@ -1286,8 +2375,6 @@ enum PlatformInternalSecretOrderBy { ID_DESC LABELS_ASC LABELS_DESC - NAMESPACE_ID_ASC - NAMESPACE_ID_DESC NAME_ASC NAME_DESC NATURAL @@ -1308,7 +2395,6 @@ input PlatformInternalSecretsDelInput { payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - namespaceId: UUID realm: String secretName: String } @@ -1334,7 +2420,6 @@ input PlatformInternalSecretsRemoveArrayInput { payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - namespaceId: UUID realm: String secretNames: [String] } @@ -1362,7 +2447,6 @@ input PlatformInternalSecretsRotateInput { payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - namespaceId: UUID realm: String secretName: String secretValue: String @@ -1393,7 +2477,6 @@ input PlatformInternalSecretsSetInput { """ clientMutationId: String secretName: String - secretNamespaceId: UUID secretRealm: String secretValue: String } @@ -1658,23 +2741,17 @@ input ProvisionBucketInput { } type 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 - - """Error message if provisioning failed""" - error: String + """The logical bucket row that was queued for reconciliation.""" + bucketId: UUID! + bucketKey: String! - """The storage provider used""" - provider: String! + """The reconciler job enqueued to provision this bucket.""" + jobId: UUID! - """Whether provisioning succeeded""" - success: Boolean! + """ + The physical bucket name already recorded, or null when reconciliation has not completed. + """ + physicalName: String } """The root query type which gives access points into the data universe.""" @@ -1684,6 +2761,35 @@ type Query { """ _meta: MetaSchema + """Reads and enables pagination through a set of `AppInternalSecret`.""" + appInternalSecrets( + """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 `AppInternalSecret`.""" + orderBy: [AppInternalSecretOrderBy!] = [NATURAL] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: AppInternalSecretFilter + ): AppInternalSecretConnection + """Reads and enables pagination through a set of `Config`.""" configs( """Read all values in the set after (below) this cursor.""" @@ -1713,6 +2819,64 @@ type Query { where: ConfigFilter ): ConfigConnection + """Reads and enables pagination through a set of `InternalConfig`.""" + internalConfigs( + """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 `InternalConfig`.""" + orderBy: [InternalConfigOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: InternalConfigFilter + ): InternalConfigConnection + + """Reads and enables pagination through a set of `InternalSecret`.""" + internalSecrets( + """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 `InternalSecret`.""" + orderBy: [InternalSecretOrderBy!] = [NATURAL] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: InternalSecretFilter + ): InternalSecretConnection + """Reads and enables pagination through a set of `PlatformConfig`.""" platformConfigs( """Read all values in the set after (below) this cursor.""" @@ -1742,6 +2906,37 @@ type Query { where: PlatformConfigFilter ): PlatformConfigConnection + """ + Reads and enables pagination through a set of `PlatformInternalConfig`. + """ + platformInternalConfigs( + """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 `PlatformInternalConfig`.""" + orderBy: [PlatformInternalConfigOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformInternalConfigFilter + ): PlatformInternalConfigConnection + """ Reads and enables pagination through a set of `PlatformInternalSecret`. """ @@ -2177,6 +3372,46 @@ type UpdateConfigPayload { query: Query } +"""All input for the `updateInternalConfig` mutation.""" +input UpdateInternalConfigInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """Unique identifier for this config entry""" + id: UUID! + + """ + An object where the defined keys will be set on the `InternalConfig` being updated. + """ + internalConfigPatch: InternalConfigPatch! +} + +"""The output of our update `InternalConfig` mutation.""" +type UpdateInternalConfigPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `InternalConfig` that was updated by this mutation.""" + internalConfig: InternalConfig + + """An edge for our `InternalConfig`. May be used by Relay 1.""" + internalConfigEdge( + """The method to use when ordering `InternalConfig`.""" + orderBy: [InternalConfigOrderBy!]! = [PRIMARY_KEY_ASC] + ): InternalConfigEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + """All input for the `updatePlatformConfig` mutation.""" input UpdatePlatformConfigInput { """ @@ -2217,6 +3452,158 @@ type UpdatePlatformConfigPayload { query: Query } +"""All input for the `updatePlatformInternalConfig` mutation.""" +input UpdatePlatformInternalConfigInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """Unique identifier for this config entry""" + id: UUID! + + """ + An object where the defined keys will be set on the `PlatformInternalConfig` being updated. + """ + platformInternalConfigPatch: PlatformInternalConfigPatch! +} + +"""The output of our update `PlatformInternalConfig` mutation.""" +type UpdatePlatformInternalConfigPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `PlatformInternalConfig` that was updated by this mutation.""" + platformInternalConfig: PlatformInternalConfig + + """An edge for our `PlatformInternalConfig`. May be used by Relay 1.""" + platformInternalConfigEdge( + """The method to use when ordering `PlatformInternalConfig`.""" + orderBy: [PlatformInternalConfigOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformInternalConfigEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `_internalSecretsDel` mutation.""" +input _InternalSecretsDelInput { + """ + An arbitrary 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 + realm: String + secretName: String +} + +"""The output of our `_internalSecretsDel` mutation.""" +type _InternalSecretsDelPayload { + """ + The 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 `_internalSecretsRemoveArray` mutation.""" +input _InternalSecretsRemoveArrayInput { + """ + An arbitrary 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 + realm: String + secretNames: [String] +} + +"""The output of our `_internalSecretsRemoveArray` mutation.""" +type _InternalSecretsRemoveArrayPayload { + """ + The 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 `_internalSecretsRotate` mutation.""" +input _InternalSecretsRotateInput { + algo: 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 + databaseId: UUID + realm: String + secretName: String + secretValue: String +} + +"""The output of our `_internalSecretsRotate` mutation.""" +type _InternalSecretsRotatePayload { + """ + The 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: Boolean +} + +"""All input for the `_internalSecretsSet` mutation.""" +input _InternalSecretsSetInput { + algo: 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 + scopeDatabaseId: UUID + secretName: String + secretRealm: String + secretValue: String +} + +"""The output of our `_internalSecretsSet` mutation.""" +type _InternalSecretsSetPayload { + """ + The 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: Boolean +} + """All input for the `_secretsDel` mutation.""" input _SecretsDelInput { """ diff --git a/sdk/constructive-sdk/schemas/infra.graphql b/sdk/constructive-sdk/schemas/infra.graphql index eb908836ed..535d80fd67 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 { """ @@ -1288,11 +1602,57 @@ type MetaSearchConfig { """Storage metadata for a table""" type MetaStorage { + """GraphQL type name of the plane's buckets table""" + bucketsType: String! + + """ + Computed download-URL field on the files type; null on the buckets side + """ + downloadUrlField: String + + """GraphQL type name of the plane's files table""" + filesType: String! + """Whether this table is a storage buckets table""" isBucketsTable: Boolean! """Whether this table is a storage files table""" isFilesTable: Boolean! + + """The plane's GraphQL upload surface""" + upload: MetaStorageUpload! +} + +""" +The GraphQL upload surface of a storage plane, derived from the registry facts the presigned-url plugin emits from +""" +type MetaStorageUpload { + """Per-file input type inside the bulk input""" + bulkFileInputType: String! + + """Per-file payload type inside the bulk payload""" + bulkFilePayloadType: String! + + """Input type of the bulk upload mutation""" + bulkInputType: String! + + """Root mutation field for bulk upload""" + bulkMutation: String! + + """Payload type of the bulk upload mutation""" + bulkPayloadType: String! + + """Input type of the single upload mutation""" + inputType: String! + + """Root mutation field for single-file upload (e.g. uploadAppFile)""" + mutation: String! + + """Payload type of the single upload mutation""" + payloadType: String! + + """Whether the upload input requires ownerId (entity-keyed plane)""" + requiresOwnerId: Boolean! } """Information about a database table""" @@ -1352,6 +1712,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 +1792,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,18 +1883,37 @@ 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. - Reads the bucket config via RLS, then creates and configures - the S3 bucket with the appropriate privacy policies, CORS rules, - and lifecycle settings. + Reconcile an S3 bucket for a logical bucket in the database. + Reads the bucket config via RLS, then enqueues the same + storage:provision_bucket job used by the INSERT trigger. This is + idempotent for an already-reconciled bucket; enqueue failures become + GraphQL errors. """ provisionBucket( """ @@ -1527,6 +1922,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( """ @@ -1608,6 +2011,11 @@ Logical namespace containers for grouping secrets, config, functions, and other type Namespace { """Freeform metadata for tooling and operational notes""" annotations: JSON! + + """ + Cluster this namespace is projected onto; NULL = the cluster the reconciler runs in + """ + clusterId: UUID createdAt: Datetime """Database that owns this resource (database-scoped isolation)""" @@ -1676,7 +2084,9 @@ type NamespaceEdge { Namespace lifecycle events — audit log of creation, activation, deactivation, label changes """ type NamespaceEvent { - """User who triggered this event (NULL for system/automated)""" + """ + User who triggered this event; NULL only when no human actor was proven + """ actorId: UUID """Event timestamp (partition key)""" @@ -1769,7 +2179,9 @@ input NamespaceEventFilter { """An input for mutations affecting `NamespaceEvent`""" input NamespaceEventInput { - """User who triggered this event (NULL for system/automated)""" + """ + User who triggered this event; NULL only when no human actor was proven + """ actorId: UUID """Event timestamp (partition key)""" @@ -1823,7 +2235,9 @@ enum NamespaceEventOrderBy { Represents an update to a `NamespaceEvent`. Fields that are set will be updated. """ input NamespaceEventPatch { - """User who triggered this event (NULL for system/automated)""" + """ + User who triggered this event; NULL only when no human actor was proven + """ actorId: UUID """Event timestamp (partition key)""" @@ -1860,6 +2274,9 @@ input NamespaceFilter { """Filter by the object’s `annotations` field.""" annotations: JSONFilter + """Filter by the object’s `clusterId` field.""" + clusterId: UUIDFilter + """Filter by the object’s `createdAt` field.""" createdAt: DatetimeFilter @@ -1907,6 +2324,11 @@ input NamespaceFilter { input NamespaceInput { """Freeform metadata for tooling and operational notes""" annotations: JSON + + """ + Cluster this namespace is projected onto; NULL = the cluster the reconciler runs in + """ + clusterId: UUID createdAt: Datetime """Database that owns this resource (database-scoped isolation)""" @@ -1949,6 +2371,8 @@ input NamespaceInput { enum NamespaceOrderBy { ANNOTATIONS_ASC ANNOTATIONS_DESC + CLUSTER_ID_ASC + CLUSTER_ID_DESC CREATED_AT_ASC CREATED_AT_DESC DATABASE_ID_ASC @@ -1984,6 +2408,11 @@ Represents an update to a `Namespace`. Fields that are set will be updated. input NamespacePatch { """Freeform metadata for tooling and operational notes""" annotations: JSON + + """ + Cluster this namespace is projected onto; NULL = the cluster the reconciler runs in + """ + clusterId: UUID createdAt: Datetime """Database that owns this resource (database-scoped isolation)""" @@ -2311,6 +2740,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 +3046,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 +3112,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) """ @@ -2753,6 +3285,11 @@ Logical namespace containers for grouping secrets, config, functions, and other type PlatformNamespace { """Freeform metadata for tooling and operational notes""" annotations: JSON! + + """ + Cluster this namespace is projected onto; NULL = the cluster the reconciler runs in + """ + clusterId: UUID createdAt: Datetime """Optional human-readable description of this namespace""" @@ -2820,7 +3357,9 @@ type PlatformNamespaceEdge { Namespace lifecycle events — audit log of creation, activation, deactivation, label changes """ type PlatformNamespaceEvent { - """User who triggered this event (NULL for system/automated)""" + """ + User who triggered this event; NULL only when no human actor was proven + """ actorId: UUID """Event timestamp (partition key)""" @@ -2909,7 +3448,9 @@ input PlatformNamespaceEventFilter { """An input for mutations affecting `PlatformNamespaceEvent`""" input PlatformNamespaceEventInput { - """User who triggered this event (NULL for system/automated)""" + """ + User who triggered this event; NULL only when no human actor was proven + """ actorId: UUID """Event timestamp (partition key)""" @@ -2958,7 +3499,9 @@ enum PlatformNamespaceEventOrderBy { Represents an update to a `PlatformNamespaceEvent`. Fields that are set will be updated. """ input PlatformNamespaceEventPatch { - """User who triggered this event (NULL for system/automated)""" + """ + User who triggered this event; NULL only when no human actor was proven + """ actorId: UUID """Event timestamp (partition key)""" @@ -2992,6 +3535,9 @@ input PlatformNamespaceFilter { """Filter by the object’s `annotations` field.""" annotations: JSONFilter + """Filter by the object’s `clusterId` field.""" + clusterId: UUIDFilter + """Filter by the object’s `createdAt` field.""" createdAt: DatetimeFilter @@ -3036,6 +3582,11 @@ input PlatformNamespaceFilter { input PlatformNamespaceInput { """Freeform metadata for tooling and operational notes""" annotations: JSON + + """ + Cluster this namespace is projected onto; NULL = the cluster the reconciler runs in + """ + clusterId: UUID createdAt: Datetime """Optional human-readable description of this namespace""" @@ -3075,6 +3626,8 @@ input PlatformNamespaceInput { enum PlatformNamespaceOrderBy { ANNOTATIONS_ASC ANNOTATIONS_DESC + CLUSTER_ID_ASC + CLUSTER_ID_DESC CREATED_AT_ASC CREATED_AT_DESC DESCRIPTION_ASC @@ -3108,6 +3661,11 @@ Represents an update to a `PlatformNamespace`. Fields that are set will be updat input PlatformNamespacePatch { """Freeform metadata for tooling and operational notes""" annotations: JSON + + """ + Cluster this namespace is projected onto; NULL = the cluster the reconciler runs in + """ + clusterId: UUID createdAt: Datetime """Optional human-readable description of this namespace""" @@ -3155,23 +3713,17 @@ input ProvisionBucketInput { } type 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 - - """Error message if provisioning failed""" - error: String + """The logical bucket row that was queued for reconciliation.""" + bucketId: UUID! + bucketKey: String! - """The storage provider used""" - provider: String! + """The reconciler job enqueued to provision this bucket.""" + jobId: UUID! - """Whether provisioning succeeded""" - success: Boolean! + """ + The physical bucket name already recorded, or null when reconciliation has not completed. + """ + physicalName: String } """The root query type which gives access points into the data universe.""" @@ -3181,6 +3733,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 +4351,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 ee97e6316d..6c884196e4 100644 --- a/sdk/constructive-sdk/schemas/modules.graphql +++ b/sdk/constructive-sdk/schemas/modules.graphql @@ -4,11 +4,17 @@ type AgentModule { apiName: String databaseId: UUID! defaultCapabilities: [String] + defaultVisibility: String! entityField: String entityTableId: UUID + eventTableId: UUID + eventTableName: String! hasAgents: Boolean! + hasAttachments: Boolean! hasPlans: Boolean! + hasRepositoryResources: Boolean! hasResources: Boolean! + hasRuns: Boolean! id: UUID! messageTableId: UUID! messageTableName: String! @@ -25,16 +31,21 @@ type AgentModule { promptsTableName: String! provisions: JSON publicSchemaName: String + resourceRepositoryTableId: UUID + resourceRepositoryTableName: String! resourceTableId: UUID resourceTableName: String! resources: JSON + runTableId: UUID + runTableName: String! schemaId: UUID! scope: String! - shared: Boolean! taskTableId: UUID! taskTableName: String! threadTableId: UUID! threadTableName: String! + workspaceTableId: UUID + workspaceTableName: String! } """A connection to a list of `AgentModule` values.""" @@ -85,21 +96,39 @@ input AgentModuleFilter { """Filter by the object’s `defaultCapabilities` field.""" defaultCapabilities: StringListFilter + """Filter by the object’s `defaultVisibility` field.""" + defaultVisibility: StringFilter + """Filter by the object’s `entityField` field.""" entityField: StringFilter """Filter by the object’s `entityTableId` field.""" entityTableId: UUIDFilter + """Filter by the object’s `eventTableId` field.""" + eventTableId: UUIDFilter + + """Filter by the object’s `eventTableName` field.""" + eventTableName: StringFilter + """Filter by the object’s `hasAgents` field.""" hasAgents: BooleanFilter + """Filter by the object’s `hasAttachments` field.""" + hasAttachments: BooleanFilter + """Filter by the object’s `hasPlans` field.""" hasPlans: BooleanFilter + """Filter by the object’s `hasRepositoryResources` field.""" + hasRepositoryResources: BooleanFilter + """Filter by the object’s `hasResources` field.""" hasResources: BooleanFilter + """Filter by the object’s `hasRuns` field.""" + hasRuns: BooleanFilter + """Filter by the object’s `id` field.""" id: UUIDFilter @@ -154,6 +183,12 @@ input AgentModuleFilter { """Filter by the object’s `publicSchemaName` field.""" publicSchemaName: StringFilter + """Filter by the object’s `resourceRepositoryTableId` field.""" + resourceRepositoryTableId: UUIDFilter + + """Filter by the object’s `resourceRepositoryTableName` field.""" + resourceRepositoryTableName: StringFilter + """Filter by the object’s `resourceTableId` field.""" resourceTableId: UUIDFilter @@ -163,15 +198,18 @@ input AgentModuleFilter { """Filter by the object’s `resources` field.""" resources: JSONFilter + """Filter by the object’s `runTableId` field.""" + runTableId: UUIDFilter + + """Filter by the object’s `runTableName` field.""" + runTableName: StringFilter + """Filter by the object’s `schemaId` field.""" schemaId: UUIDFilter """Filter by the object’s `scope` field.""" scope: StringFilter - """Filter by the object’s `shared` field.""" - shared: BooleanFilter - """Filter by the object’s `taskTableId` field.""" taskTableId: UUIDFilter @@ -183,6 +221,12 @@ input AgentModuleFilter { """Filter by the object’s `threadTableName` field.""" threadTableName: StringFilter + + """Filter by the object’s `workspaceTableId` field.""" + workspaceTableId: UUIDFilter + + """Filter by the object’s `workspaceTableName` field.""" + workspaceTableName: StringFilter } """An input for mutations affecting `AgentModule`""" @@ -192,11 +236,17 @@ input AgentModuleInput { apiName: String databaseId: UUID! defaultCapabilities: [String] + defaultVisibility: String entityField: String entityTableId: UUID + eventTableId: UUID + eventTableName: String hasAgents: Boolean + hasAttachments: Boolean hasPlans: Boolean + hasRepositoryResources: Boolean hasResources: Boolean + hasRuns: Boolean id: UUID messageTableId: UUID messageTableName: String @@ -213,16 +263,21 @@ input AgentModuleInput { promptsTableName: String provisions: JSON publicSchemaName: String + resourceRepositoryTableId: UUID + resourceRepositoryTableName: String resourceTableId: UUID resourceTableName: String resources: JSON + runTableId: UUID + runTableName: String schemaId: UUID scope: String! - shared: Boolean taskTableId: UUID taskTableName: String threadTableId: UUID threadTableName: String + workspaceTableId: UUID + workspaceTableName: String } """Methods to use when ordering `AgentModule`.""" @@ -237,16 +292,28 @@ enum AgentModuleOrderBy { DATABASE_ID_DESC DEFAULT_CAPABILITIES_ASC DEFAULT_CAPABILITIES_DESC + DEFAULT_VISIBILITY_ASC + DEFAULT_VISIBILITY_DESC ENTITY_FIELD_ASC ENTITY_FIELD_DESC ENTITY_TABLE_ID_ASC ENTITY_TABLE_ID_DESC + EVENT_TABLE_ID_ASC + EVENT_TABLE_ID_DESC + EVENT_TABLE_NAME_ASC + EVENT_TABLE_NAME_DESC HAS_AGENTS_ASC HAS_AGENTS_DESC + HAS_ATTACHMENTS_ASC + HAS_ATTACHMENTS_DESC HAS_PLANS_ASC HAS_PLANS_DESC + HAS_REPOSITORY_RESOURCES_ASC + HAS_REPOSITORY_RESOURCES_DESC HAS_RESOURCES_ASC HAS_RESOURCES_DESC + HAS_RUNS_ASC + HAS_RUNS_DESC ID_ASC ID_DESC MESSAGE_TABLE_ID_ASC @@ -284,16 +351,22 @@ enum AgentModuleOrderBy { PUBLIC_SCHEMA_NAME_DESC RESOURCES_ASC RESOURCES_DESC + RESOURCE_REPOSITORY_TABLE_ID_ASC + RESOURCE_REPOSITORY_TABLE_ID_DESC + RESOURCE_REPOSITORY_TABLE_NAME_ASC + RESOURCE_REPOSITORY_TABLE_NAME_DESC RESOURCE_TABLE_ID_ASC RESOURCE_TABLE_ID_DESC RESOURCE_TABLE_NAME_ASC RESOURCE_TABLE_NAME_DESC + RUN_TABLE_ID_ASC + RUN_TABLE_ID_DESC + RUN_TABLE_NAME_ASC + RUN_TABLE_NAME_DESC SCHEMA_ID_ASC SCHEMA_ID_DESC SCOPE_ASC SCOPE_DESC - SHARED_ASC - SHARED_DESC TASK_TABLE_ID_ASC TASK_TABLE_ID_DESC TASK_TABLE_NAME_ASC @@ -302,6 +375,10 @@ enum AgentModuleOrderBy { THREAD_TABLE_ID_DESC THREAD_TABLE_NAME_ASC THREAD_TABLE_NAME_DESC + WORKSPACE_TABLE_ID_ASC + WORKSPACE_TABLE_ID_DESC + WORKSPACE_TABLE_NAME_ASC + WORKSPACE_TABLE_NAME_DESC } """ @@ -313,11 +390,17 @@ input AgentModulePatch { apiName: String databaseId: UUID defaultCapabilities: [String] + defaultVisibility: String entityField: String entityTableId: UUID + eventTableId: UUID + eventTableName: String hasAgents: Boolean + hasAttachments: Boolean hasPlans: Boolean + hasRepositoryResources: Boolean hasResources: Boolean + hasRuns: Boolean id: UUID messageTableId: UUID messageTableName: String @@ -334,16 +417,21 @@ input AgentModulePatch { promptsTableName: String provisions: JSON publicSchemaName: String + resourceRepositoryTableId: UUID + resourceRepositoryTableName: String resourceTableId: UUID resourceTableName: String resources: JSON + runTableId: UUID + runTableName: String schemaId: UUID scope: String - shared: Boolean taskTableId: UUID taskTableName: String threadTableId: UUID threadTableName: String + workspaceTableId: UUID + workspaceTableName: String } type ApiSurfaceModule { @@ -599,6 +687,7 @@ type AppModule { apiName: String appComponentsTableId: UUID! appComponentsTableName: String! + appStoreIdentitiesTableName: String! appsTableId: UUID! appsTableName: String! @@ -663,6 +752,9 @@ input AppModuleFilter { """Filter by the object’s `appComponentsTableName` field.""" appComponentsTableName: StringFilter + """Filter by the object’s `appStoreIdentitiesTableName` field.""" + appStoreIdentitiesTableName: StringFilter + """Filter by the object’s `appsTableId` field.""" appsTableId: UUIDFilter @@ -732,6 +824,7 @@ input AppModuleInput { apiName: String appComponentsTableId: UUID appComponentsTableName: String + appStoreIdentitiesTableName: String appsTableId: UUID appsTableName: String catalogModuleId: UUID @@ -763,6 +856,8 @@ enum AppModuleOrderBy { APP_COMPONENTS_TABLE_ID_DESC APP_COMPONENTS_TABLE_NAME_ASC APP_COMPONENTS_TABLE_NAME_DESC + APP_STORE_IDENTITIES_TABLE_NAME_ASC + APP_STORE_IDENTITIES_TABLE_NAME_DESC CATALOG_MODULE_ID_ASC CATALOG_MODULE_ID_DESC DATABASE_ID_ASC @@ -805,6 +900,7 @@ input AppModulePatch { apiName: String appComponentsTableId: UUID appComponentsTableName: String + appStoreIdentitiesTableName: String appsTableId: UUID appsTableName: String catalogModuleId: UUID @@ -1158,9 +1254,12 @@ input BillingModulePatch { } type BillingProviderModule { + activatePlanSubscriptionFunction: String! apiName: String billingCustomersTableId: UUID! billingCustomersTableName: String! + billingDisputesTableId: UUID! + billingDisputesTableName: String! billingInvoicesTableId: UUID! billingInvoicesTableName: String! billingPricesTableId: UUID! @@ -1174,6 +1273,12 @@ type BillingProviderModule { billingWebhookEventsTableId: UUID! billingWebhookEventsTableName: String! databaseId: UUID! + getActivePlanPricingFunction: String! + getBillingCustomerFunction: String! + getBillingPriceFunction: String! + getBillingProductFunction: String! + getBillingSubscriptionFunction: String! + getFallbackFreePlanFunction: String! id: UUID! listPendingUsageSyncFunction: String! markUsageSyncedFunction: String! @@ -1184,9 +1289,15 @@ type BillingProviderModule { processBillingEventFunction: String! productsTableId: UUID provider: String! + recordDisputeFunction: String! recordRefundFunction: String! schemaId: UUID! subscriptionsTableId: UUID + sweepOverdueSubscriptionsFunction: String! + upsertBillingCustomerFunction: String! + upsertBillingPriceFunction: String! + upsertBillingProductFunction: String! + upsertBillingSubscriptionFunction: String! upsertInvoiceFunction: String! } @@ -1222,6 +1333,9 @@ type BillingProviderModuleEdge { A filter to be used against `BillingProviderModule` object types. All fields are combined with a logical ‘and.’ """ input BillingProviderModuleFilter { + """Filter by the object’s `activatePlanSubscriptionFunction` field.""" + activatePlanSubscriptionFunction: StringFilter + """Checks for all expressions in this list.""" and: [BillingProviderModuleFilter!] @@ -1234,6 +1348,12 @@ input BillingProviderModuleFilter { """Filter by the object’s `billingCustomersTableName` field.""" billingCustomersTableName: StringFilter + """Filter by the object’s `billingDisputesTableId` field.""" + billingDisputesTableId: UUIDFilter + + """Filter by the object’s `billingDisputesTableName` field.""" + billingDisputesTableName: StringFilter + """Filter by the object’s `billingInvoicesTableId` field.""" billingInvoicesTableId: UUIDFilter @@ -1273,6 +1393,24 @@ input BillingProviderModuleFilter { """Filter by the object’s `databaseId` field.""" databaseId: UUIDFilter + """Filter by the object’s `getActivePlanPricingFunction` field.""" + getActivePlanPricingFunction: StringFilter + + """Filter by the object’s `getBillingCustomerFunction` field.""" + getBillingCustomerFunction: StringFilter + + """Filter by the object’s `getBillingPriceFunction` field.""" + getBillingPriceFunction: StringFilter + + """Filter by the object’s `getBillingProductFunction` field.""" + getBillingProductFunction: StringFilter + + """Filter by the object’s `getBillingSubscriptionFunction` field.""" + getBillingSubscriptionFunction: StringFilter + + """Filter by the object’s `getFallbackFreePlanFunction` field.""" + getFallbackFreePlanFunction: StringFilter + """Filter by the object’s `id` field.""" id: UUIDFilter @@ -1309,6 +1447,9 @@ input BillingProviderModuleFilter { """Filter by the object’s `provider` field.""" provider: StringFilter + """Filter by the object’s `recordDisputeFunction` field.""" + recordDisputeFunction: StringFilter + """Filter by the object’s `recordRefundFunction` field.""" recordRefundFunction: StringFilter @@ -1318,15 +1459,33 @@ input BillingProviderModuleFilter { """Filter by the object’s `subscriptionsTableId` field.""" subscriptionsTableId: UUIDFilter + """Filter by the object’s `sweepOverdueSubscriptionsFunction` field.""" + sweepOverdueSubscriptionsFunction: StringFilter + + """Filter by the object’s `upsertBillingCustomerFunction` field.""" + upsertBillingCustomerFunction: StringFilter + + """Filter by the object’s `upsertBillingPriceFunction` field.""" + upsertBillingPriceFunction: StringFilter + + """Filter by the object’s `upsertBillingProductFunction` field.""" + upsertBillingProductFunction: StringFilter + + """Filter by the object’s `upsertBillingSubscriptionFunction` field.""" + upsertBillingSubscriptionFunction: StringFilter + """Filter by the object’s `upsertInvoiceFunction` field.""" upsertInvoiceFunction: StringFilter } """An input for mutations affecting `BillingProviderModule`""" input BillingProviderModuleInput { + activatePlanSubscriptionFunction: String apiName: String billingCustomersTableId: UUID billingCustomersTableName: String + billingDisputesTableId: UUID + billingDisputesTableName: String billingInvoicesTableId: UUID billingInvoicesTableName: String billingPricesTableId: UUID @@ -1340,6 +1499,12 @@ input BillingProviderModuleInput { billingWebhookEventsTableId: UUID billingWebhookEventsTableName: String databaseId: UUID! + getActivePlanPricingFunction: String + getBillingCustomerFunction: String + getBillingPriceFunction: String + getBillingProductFunction: String + getBillingSubscriptionFunction: String + getFallbackFreePlanFunction: String id: UUID listPendingUsageSyncFunction: String markUsageSyncedFunction: String @@ -1350,20 +1515,32 @@ input BillingProviderModuleInput { processBillingEventFunction: String productsTableId: UUID provider: String + recordDisputeFunction: String recordRefundFunction: String schemaId: UUID subscriptionsTableId: UUID + sweepOverdueSubscriptionsFunction: String + upsertBillingCustomerFunction: String + upsertBillingPriceFunction: String + upsertBillingProductFunction: String + upsertBillingSubscriptionFunction: String upsertInvoiceFunction: String } """Methods to use when ordering `BillingProviderModule`.""" enum BillingProviderModuleOrderBy { + ACTIVATE_PLAN_SUBSCRIPTION_FUNCTION_ASC + ACTIVATE_PLAN_SUBSCRIPTION_FUNCTION_DESC API_NAME_ASC API_NAME_DESC BILLING_CUSTOMERS_TABLE_ID_ASC BILLING_CUSTOMERS_TABLE_ID_DESC BILLING_CUSTOMERS_TABLE_NAME_ASC BILLING_CUSTOMERS_TABLE_NAME_DESC + BILLING_DISPUTES_TABLE_ID_ASC + BILLING_DISPUTES_TABLE_ID_DESC + BILLING_DISPUTES_TABLE_NAME_ASC + BILLING_DISPUTES_TABLE_NAME_DESC BILLING_INVOICES_TABLE_ID_ASC BILLING_INVOICES_TABLE_ID_DESC BILLING_INVOICES_TABLE_NAME_ASC @@ -1390,6 +1567,18 @@ enum BillingProviderModuleOrderBy { BILLING_WEBHOOK_EVENTS_TABLE_NAME_DESC DATABASE_ID_ASC DATABASE_ID_DESC + GET_ACTIVE_PLAN_PRICING_FUNCTION_ASC + GET_ACTIVE_PLAN_PRICING_FUNCTION_DESC + GET_BILLING_CUSTOMER_FUNCTION_ASC + GET_BILLING_CUSTOMER_FUNCTION_DESC + GET_BILLING_PRICE_FUNCTION_ASC + GET_BILLING_PRICE_FUNCTION_DESC + GET_BILLING_PRODUCT_FUNCTION_ASC + GET_BILLING_PRODUCT_FUNCTION_DESC + GET_BILLING_SUBSCRIPTION_FUNCTION_ASC + GET_BILLING_SUBSCRIPTION_FUNCTION_DESC + GET_FALLBACK_FREE_PLAN_FUNCTION_ASC + GET_FALLBACK_FREE_PLAN_FUNCTION_DESC ID_ASC ID_DESC LIST_PENDING_USAGE_SYNC_FUNCTION_ASC @@ -1413,12 +1602,24 @@ enum BillingProviderModuleOrderBy { PRODUCTS_TABLE_ID_DESC PROVIDER_ASC PROVIDER_DESC + RECORD_DISPUTE_FUNCTION_ASC + RECORD_DISPUTE_FUNCTION_DESC RECORD_REFUND_FUNCTION_ASC RECORD_REFUND_FUNCTION_DESC SCHEMA_ID_ASC SCHEMA_ID_DESC SUBSCRIPTIONS_TABLE_ID_ASC SUBSCRIPTIONS_TABLE_ID_DESC + SWEEP_OVERDUE_SUBSCRIPTIONS_FUNCTION_ASC + SWEEP_OVERDUE_SUBSCRIPTIONS_FUNCTION_DESC + UPSERT_BILLING_CUSTOMER_FUNCTION_ASC + UPSERT_BILLING_CUSTOMER_FUNCTION_DESC + UPSERT_BILLING_PRICE_FUNCTION_ASC + UPSERT_BILLING_PRICE_FUNCTION_DESC + UPSERT_BILLING_PRODUCT_FUNCTION_ASC + UPSERT_BILLING_PRODUCT_FUNCTION_DESC + UPSERT_BILLING_SUBSCRIPTION_FUNCTION_ASC + UPSERT_BILLING_SUBSCRIPTION_FUNCTION_DESC UPSERT_INVOICE_FUNCTION_ASC UPSERT_INVOICE_FUNCTION_DESC } @@ -1427,9 +1628,12 @@ enum BillingProviderModuleOrderBy { Represents an update to a `BillingProviderModule`. Fields that are set will be updated. """ input BillingProviderModulePatch { + activatePlanSubscriptionFunction: String apiName: String billingCustomersTableId: UUID billingCustomersTableName: String + billingDisputesTableId: UUID + billingDisputesTableName: String billingInvoicesTableId: UUID billingInvoicesTableName: String billingPricesTableId: UUID @@ -1443,6 +1647,12 @@ input BillingProviderModulePatch { billingWebhookEventsTableId: UUID billingWebhookEventsTableName: String databaseId: UUID + getActivePlanPricingFunction: String + getBillingCustomerFunction: String + getBillingPriceFunction: String + getBillingProductFunction: String + getBillingSubscriptionFunction: String + getFallbackFreePlanFunction: String id: UUID listPendingUsageSyncFunction: String markUsageSyncedFunction: String @@ -1453,9 +1663,15 @@ input BillingProviderModulePatch { processBillingEventFunction: String productsTableId: UUID provider: String + recordDisputeFunction: String recordRefundFunction: String schemaId: UUID subscriptionsTableId: UUID + sweepOverdueSubscriptionsFunction: String + upsertBillingCustomerFunction: String + upsertBillingPriceFunction: String + upsertBillingProductFunction: String + upsertBillingSubscriptionFunction: String upsertInvoiceFunction: String } @@ -2957,6 +3173,8 @@ type CatalogModule { """ where: AppModuleFilter ): AppModuleConnection! + appStoreIdentitiesTableId: UUID! + appStoreIdentitiesTableName: String! appsTableId: UUID! appsTableName: String! bindingsTableId: UUID! @@ -3000,12 +3218,18 @@ type CatalogModule { functionsTableId: UUID! functionsTableName: String! id: UUID! + imagesTableId: UUID! + imagesTableName: String! + managedDomainsTableId: UUID! + managedDomainsTableName: String! namespacesTableId: UUID! namespacesTableName: String! policies: JSON privateApiName: String provisions: JSON publicSchemaName: String + redirectsTableId: UUID! + redirectsTableName: String! resourceDefinitionsTableId: UUID! resourceDefinitionsTableName: String! resourceInstallationsTableId: UUID! @@ -3138,6 +3362,12 @@ input CatalogModuleFilter { """`appModules` exist.""" appModulesExist: Boolean + """Filter by the object’s `appStoreIdentitiesTableId` field.""" + appStoreIdentitiesTableId: UUIDFilter + + """Filter by the object’s `appStoreIdentitiesTableName` field.""" + appStoreIdentitiesTableName: StringFilter + """Filter by the object’s `appsTableId` field.""" appsTableId: UUIDFilter @@ -3186,6 +3416,18 @@ input CatalogModuleFilter { """Filter by the object’s `id` field.""" id: UUIDFilter + """Filter by the object’s `imagesTableId` field.""" + imagesTableId: UUIDFilter + + """Filter by the object’s `imagesTableName` field.""" + imagesTableName: StringFilter + + """Filter by the object’s `managedDomainsTableId` field.""" + managedDomainsTableId: UUIDFilter + + """Filter by the object’s `managedDomainsTableName` field.""" + managedDomainsTableName: StringFilter + """Filter by the object’s `namespacesTableId` field.""" namespacesTableId: UUIDFilter @@ -3210,6 +3452,12 @@ input CatalogModuleFilter { """Filter by the object’s `publicSchemaName` field.""" publicSchemaName: StringFilter + """Filter by the object’s `redirectsTableId` field.""" + redirectsTableId: UUIDFilter + + """Filter by the object’s `redirectsTableName` field.""" + redirectsTableName: StringFilter + """Filter by the object’s `resourceDefinitionsTableId` field.""" resourceDefinitionsTableId: UUIDFilter @@ -3282,6 +3530,8 @@ input CatalogModuleInput { apiName: String apisTableId: UUID apisTableName: String + appStoreIdentitiesTableId: UUID + appStoreIdentitiesTableName: String appsTableId: UUID appsTableName: String bindingsTableId: UUID @@ -3296,12 +3546,18 @@ input CatalogModuleInput { functionsTableId: UUID functionsTableName: String id: UUID + imagesTableId: UUID + imagesTableName: String + managedDomainsTableId: UUID + managedDomainsTableName: String namespacesTableId: UUID namespacesTableName: String policies: JSON privateApiName: String provisions: JSON publicSchemaName: String + redirectsTableId: UUID + redirectsTableName: String resourceDefinitionsTableId: UUID resourceDefinitionsTableName: String resourceInstallationsTableId: UUID @@ -3334,6 +3590,10 @@ enum CatalogModuleOrderBy { APPS_TABLE_ID_DESC APPS_TABLE_NAME_ASC APPS_TABLE_NAME_DESC + APP_STORE_IDENTITIES_TABLE_ID_ASC + APP_STORE_IDENTITIES_TABLE_ID_DESC + APP_STORE_IDENTITIES_TABLE_NAME_ASC + APP_STORE_IDENTITIES_TABLE_NAME_DESC BINDINGS_TABLE_ID_ASC BINDINGS_TABLE_ID_DESC BINDINGS_TABLE_NAME_ASC @@ -3358,6 +3618,14 @@ enum CatalogModuleOrderBy { FUNCTIONS_TABLE_NAME_DESC ID_ASC ID_DESC + IMAGES_TABLE_ID_ASC + IMAGES_TABLE_ID_DESC + IMAGES_TABLE_NAME_ASC + IMAGES_TABLE_NAME_DESC + MANAGED_DOMAINS_TABLE_ID_ASC + MANAGED_DOMAINS_TABLE_ID_DESC + MANAGED_DOMAINS_TABLE_NAME_ASC + MANAGED_DOMAINS_TABLE_NAME_DESC NAMESPACES_TABLE_ID_ASC NAMESPACES_TABLE_ID_DESC NAMESPACES_TABLE_NAME_ASC @@ -3373,6 +3641,10 @@ enum CatalogModuleOrderBy { PROVISIONS_DESC PUBLIC_SCHEMA_NAME_ASC PUBLIC_SCHEMA_NAME_DESC + REDIRECTS_TABLE_ID_ASC + REDIRECTS_TABLE_ID_DESC + REDIRECTS_TABLE_NAME_ASC + REDIRECTS_TABLE_NAME_DESC RESOURCES_TABLE_ID_ASC RESOURCES_TABLE_ID_DESC RESOURCES_TABLE_NAME_ASC @@ -3418,6 +3690,8 @@ input CatalogModulePatch { apiName: String apisTableId: UUID apisTableName: String + appStoreIdentitiesTableId: UUID + appStoreIdentitiesTableName: String appsTableId: UUID appsTableName: String bindingsTableId: UUID @@ -3432,12 +3706,18 @@ input CatalogModulePatch { functionsTableId: UUID functionsTableName: String id: UUID + imagesTableId: UUID + imagesTableName: String + managedDomainsTableId: UUID + managedDomainsTableName: String namespacesTableId: UUID namespacesTableName: String policies: JSON privateApiName: String provisions: JSON publicSchemaName: String + redirectsTableId: UUID + redirectsTableName: String resourceDefinitionsTableId: UUID resourceDefinitionsTableName: String resourceInstallationsTableId: UUID @@ -3528,96 +3808,125 @@ input CatalogModuleToManySiteSurfaceModuleFilter { some: SiteSurfaceModuleFilter } -type ComputeLogModule { - actorFkTableId: UUID +type ClusterModule { apiName: String - computeLogTableId: UUID! - computeLogTableName: String! + clusterEventsTableId: UUID! + clusterEventsTableName: String! + clustersTableId: UUID! + clustersTableName: String! databaseId: UUID! + databasePlacementsTableId: UUID! + databasePlacementsTableName: String! + databaseServersTableId: UUID! + databaseServersTableName: String! + defaultCapabilities: [String] entityField: String - entityFkTableId: UUID id: UUID! - interval: String! + partitionInterval: String! + physicalDatabasesTableId: UUID! + physicalDatabasesTableName: String! + policies: JSON prefix: String! premake: Int! privateApiName: String privateSchemaId: UUID! privateSchemaName: String + provisions: JSON publicSchemaName: String retention: String! schemaId: UUID! scope: String! - usageSummaryTableId: UUID! - usageSummaryTableName: String! } -"""A connection to a list of `ComputeLogModule` values.""" -type ComputeLogModuleConnection { +"""A connection to a list of `ClusterModule` values.""" +type ClusterModuleConnection { """ - A list of edges which contains the `ComputeLogModule` and cursor to aid in pagination. + A list of edges which contains the `ClusterModule` and cursor to aid in pagination. """ - edges: [ComputeLogModuleEdge]! + edges: [ClusterModuleEdge]! - """A list of `ComputeLogModule` objects.""" - nodes: [ComputeLogModule]! + """A list of `ClusterModule` objects.""" + nodes: [ClusterModule]! """Information to aid in pagination.""" pageInfo: PageInfo! - """ - The count of *all* `ComputeLogModule` you could get from the connection. - """ + """The count of *all* `ClusterModule` you could get from the connection.""" totalCount: Int! } -"""A `ComputeLogModule` edge in the connection.""" -type ComputeLogModuleEdge { +"""A `ClusterModule` edge in the connection.""" +type ClusterModuleEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `ComputeLogModule` at the end of the edge.""" - node: ComputeLogModule + """The `ClusterModule` at the end of the edge.""" + node: ClusterModule } """ -A filter to be used against `ComputeLogModule` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `ClusterModule` object types. All fields are combined with a logical ‘and.’ """ -input ComputeLogModuleFilter { - """Filter by the object’s `actorFkTableId` field.""" - actorFkTableId: UUIDFilter - +input ClusterModuleFilter { """Checks for all expressions in this list.""" - and: [ComputeLogModuleFilter!] + and: [ClusterModuleFilter!] """Filter by the object’s `apiName` field.""" apiName: StringFilter - """Filter by the object’s `computeLogTableId` field.""" - computeLogTableId: UUIDFilter + """Filter by the object’s `clusterEventsTableId` field.""" + clusterEventsTableId: UUIDFilter - """Filter by the object’s `computeLogTableName` field.""" - computeLogTableName: StringFilter + """Filter by the object’s `clusterEventsTableName` field.""" + clusterEventsTableName: StringFilter + + """Filter by the object’s `clustersTableId` field.""" + clustersTableId: UUIDFilter + + """Filter by the object’s `clustersTableName` field.""" + clustersTableName: StringFilter """Filter by the object’s `databaseId` field.""" databaseId: UUIDFilter + """Filter by the object’s `databasePlacementsTableId` field.""" + databasePlacementsTableId: UUIDFilter + + """Filter by the object’s `databasePlacementsTableName` field.""" + databasePlacementsTableName: StringFilter + + """Filter by the object’s `databaseServersTableId` field.""" + databaseServersTableId: UUIDFilter + + """Filter by the object’s `databaseServersTableName` field.""" + databaseServersTableName: StringFilter + + """Filter by the object’s `defaultCapabilities` field.""" + defaultCapabilities: StringListFilter + """Filter by the object’s `entityField` field.""" entityField: StringFilter - """Filter by the object’s `entityFkTableId` field.""" - entityFkTableId: UUIDFilter - """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `interval` field.""" - interval: StringFilter - """Negates the expression.""" - not: ComputeLogModuleFilter + not: ClusterModuleFilter """Checks for any expressions in this list.""" - or: [ComputeLogModuleFilter!] + or: [ClusterModuleFilter!] + + """Filter by the object’s `partitionInterval` field.""" + partitionInterval: StringFilter + + """Filter by the object’s `physicalDatabasesTableId` field.""" + physicalDatabasesTableId: UUIDFilter + + """Filter by the object’s `physicalDatabasesTableName` field.""" + physicalDatabasesTableName: StringFilter + + """Filter by the object’s `policies` field.""" + policies: JSONFilter """Filter by the object’s `prefix` field.""" prefix: StringFilter @@ -3634,6 +3943,9 @@ input ComputeLogModuleFilter { """Filter by the object’s `privateSchemaName` field.""" privateSchemaName: StringFilter + """Filter by the object’s `provisions` field.""" + provisions: JSONFilter + """Filter by the object’s `publicSchemaName` field.""" publicSchemaName: StringFilter @@ -3645,59 +3957,76 @@ input ComputeLogModuleFilter { """Filter by the object’s `scope` field.""" scope: StringFilter - - """Filter by the object’s `usageSummaryTableId` field.""" - usageSummaryTableId: UUIDFilter - - """Filter by the object’s `usageSummaryTableName` field.""" - usageSummaryTableName: StringFilter } -"""An input for mutations affecting `ComputeLogModule`""" -input ComputeLogModuleInput { - actorFkTableId: UUID +"""An input for mutations affecting `ClusterModule`""" +input ClusterModuleInput { apiName: String - computeLogTableId: UUID - computeLogTableName: String + clusterEventsTableId: UUID + clusterEventsTableName: String + clustersTableId: UUID + clustersTableName: String databaseId: UUID! + databasePlacementsTableId: UUID + databasePlacementsTableName: String + databaseServersTableId: UUID + databaseServersTableName: String + defaultCapabilities: [String] entityField: String - entityFkTableId: UUID id: UUID - interval: String + partitionInterval: String + physicalDatabasesTableId: UUID + physicalDatabasesTableName: String + policies: JSON prefix: String premake: Int privateApiName: String privateSchemaId: UUID privateSchemaName: String + provisions: JSON publicSchemaName: String retention: String schemaId: UUID - scope: String! - usageSummaryTableId: UUID - usageSummaryTableName: String + scope: String } -"""Methods to use when ordering `ComputeLogModule`.""" -enum ComputeLogModuleOrderBy { - ACTOR_FK_TABLE_ID_ASC - ACTOR_FK_TABLE_ID_DESC +"""Methods to use when ordering `ClusterModule`.""" +enum ClusterModuleOrderBy { API_NAME_ASC API_NAME_DESC - COMPUTE_LOG_TABLE_ID_ASC - COMPUTE_LOG_TABLE_ID_DESC - COMPUTE_LOG_TABLE_NAME_ASC - COMPUTE_LOG_TABLE_NAME_DESC + CLUSTERS_TABLE_ID_ASC + CLUSTERS_TABLE_ID_DESC + CLUSTERS_TABLE_NAME_ASC + CLUSTERS_TABLE_NAME_DESC + CLUSTER_EVENTS_TABLE_ID_ASC + CLUSTER_EVENTS_TABLE_ID_DESC + CLUSTER_EVENTS_TABLE_NAME_ASC + CLUSTER_EVENTS_TABLE_NAME_DESC DATABASE_ID_ASC DATABASE_ID_DESC + DATABASE_PLACEMENTS_TABLE_ID_ASC + DATABASE_PLACEMENTS_TABLE_ID_DESC + DATABASE_PLACEMENTS_TABLE_NAME_ASC + DATABASE_PLACEMENTS_TABLE_NAME_DESC + DATABASE_SERVERS_TABLE_ID_ASC + DATABASE_SERVERS_TABLE_ID_DESC + DATABASE_SERVERS_TABLE_NAME_ASC + DATABASE_SERVERS_TABLE_NAME_DESC + DEFAULT_CAPABILITIES_ASC + DEFAULT_CAPABILITIES_DESC ENTITY_FIELD_ASC ENTITY_FIELD_DESC - ENTITY_FK_TABLE_ID_ASC - ENTITY_FK_TABLE_ID_DESC ID_ASC ID_DESC - INTERVAL_ASC - INTERVAL_DESC NATURAL + PARTITION_INTERVAL_ASC + PARTITION_INTERVAL_DESC + PHYSICAL_DATABASES_TABLE_ID_ASC + PHYSICAL_DATABASES_TABLE_ID_DESC + PHYSICAL_DATABASES_TABLE_NAME_ASC + PHYSICAL_DATABASES_TABLE_NAME_DESC + POLICIES_ASC + POLICIES_DESC PREFIX_ASC PREFIX_DESC PREMAKE_ASC @@ -3710,6 +4039,8 @@ enum ComputeLogModuleOrderBy { PRIVATE_SCHEMA_ID_DESC PRIVATE_SCHEMA_NAME_ASC PRIVATE_SCHEMA_NAME_DESC + PROVISIONS_ASC + PROVISIONS_DESC PUBLIC_SCHEMA_NAME_ASC PUBLIC_SCHEMA_NAME_DESC RETENTION_ASC @@ -3718,87 +4049,107 @@ enum ComputeLogModuleOrderBy { SCHEMA_ID_DESC SCOPE_ASC SCOPE_DESC - USAGE_SUMMARY_TABLE_ID_ASC - USAGE_SUMMARY_TABLE_ID_DESC - USAGE_SUMMARY_TABLE_NAME_ASC - USAGE_SUMMARY_TABLE_NAME_DESC } """ -Represents an update to a `ComputeLogModule`. Fields that are set will be updated. +Represents an update to a `ClusterModule`. Fields that are set will be updated. """ -input ComputeLogModulePatch { - actorFkTableId: UUID +input ClusterModulePatch { apiName: String - computeLogTableId: UUID - computeLogTableName: String + clusterEventsTableId: UUID + clusterEventsTableName: String + clustersTableId: UUID + clustersTableName: String databaseId: UUID + databasePlacementsTableId: UUID + databasePlacementsTableName: String + databaseServersTableId: UUID + databaseServersTableName: String + defaultCapabilities: [String] entityField: String - entityFkTableId: UUID id: UUID - interval: String + partitionInterval: String + physicalDatabasesTableId: UUID + physicalDatabasesTableName: String + policies: JSON prefix: String premake: Int privateApiName: String privateSchemaId: UUID privateSchemaName: String + provisions: JSON publicSchemaName: String retention: String schemaId: UUID scope: String - usageSummaryTableId: UUID - usageSummaryTableName: String } -type ConfigSecretsUserModule { +type ComputeLogModule { apiName: String + computeLogTableId: UUID! + computeLogTableName: String! databaseId: UUID! entityField: String id: UUID! + interval: String! + prefix: String! + premake: Int! privateApiName: String + privateSchemaId: UUID! + privateSchemaName: String + publicSchemaName: String + retention: String! + rollupFunctionName: String! schemaId: UUID! - tableId: UUID! - tableName: String! + scope: String! + usageSummaryTableId: UUID! + usageSummaryTableName: String! } -"""A connection to a list of `ConfigSecretsUserModule` values.""" -type ConfigSecretsUserModuleConnection { +"""A connection to a list of `ComputeLogModule` values.""" +type ComputeLogModuleConnection { """ - A list of edges which contains the `ConfigSecretsUserModule` and cursor to aid in pagination. + A list of edges which contains the `ComputeLogModule` and cursor to aid in pagination. """ - edges: [ConfigSecretsUserModuleEdge]! + edges: [ComputeLogModuleEdge]! - """A list of `ConfigSecretsUserModule` objects.""" - nodes: [ConfigSecretsUserModule]! + """A list of `ComputeLogModule` objects.""" + nodes: [ComputeLogModule]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `ConfigSecretsUserModule` you could get from the connection. + The count of *all* `ComputeLogModule` you could get from the connection. """ totalCount: Int! } -"""A `ConfigSecretsUserModule` edge in the connection.""" -type ConfigSecretsUserModuleEdge { +"""A `ComputeLogModule` edge in the connection.""" +type ComputeLogModuleEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `ConfigSecretsUserModule` at the end of the edge.""" - node: ConfigSecretsUserModule + """The `ComputeLogModule` at the end of the edge.""" + node: ComputeLogModule } """ -A filter to be used against `ConfigSecretsUserModule` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `ComputeLogModule` object types. All fields are combined with a logical ‘and.’ """ -input ConfigSecretsUserModuleFilter { +input ComputeLogModuleFilter { """Checks for all expressions in this list.""" - and: [ConfigSecretsUserModuleFilter!] + and: [ComputeLogModuleFilter!] """Filter by the object’s `apiName` field.""" apiName: StringFilter + """Filter by the object’s `computeLogTableId` field.""" + computeLogTableId: UUIDFilter + + """Filter by the object’s `computeLogTableName` field.""" + computeLogTableName: StringFilter + """Filter by the object’s `databaseId` field.""" databaseId: UUIDFilter @@ -3808,72 +4159,143 @@ input ConfigSecretsUserModuleFilter { """Filter by the object’s `id` field.""" id: UUIDFilter + """Filter by the object’s `interval` field.""" + interval: StringFilter + """Negates the expression.""" - not: ConfigSecretsUserModuleFilter + not: ComputeLogModuleFilter """Checks for any expressions in this list.""" - or: [ConfigSecretsUserModuleFilter!] + or: [ComputeLogModuleFilter!] + + """Filter by the object’s `prefix` field.""" + prefix: StringFilter + + """Filter by the object’s `premake` field.""" + premake: IntFilter """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 `retention` field.""" + retention: StringFilter + + """Filter by the object’s `rollupFunctionName` field.""" + rollupFunctionName: StringFilter + """Filter by the object’s `schemaId` field.""" schemaId: UUIDFilter - """Filter by the object’s `tableId` field.""" - tableId: UUIDFilter + """Filter by the object’s `scope` field.""" + scope: StringFilter - """Filter by the object’s `tableName` field.""" - tableName: StringFilter + """Filter by the object’s `usageSummaryTableId` field.""" + usageSummaryTableId: UUIDFilter + + """Filter by the object’s `usageSummaryTableName` field.""" + usageSummaryTableName: StringFilter } -"""An input for mutations affecting `ConfigSecretsUserModule`""" -input ConfigSecretsUserModuleInput { +"""An input for mutations affecting `ComputeLogModule`""" +input ComputeLogModuleInput { apiName: String + computeLogTableId: UUID + computeLogTableName: String databaseId: UUID! entityField: String id: UUID + interval: String + prefix: String + premake: Int privateApiName: String + privateSchemaId: UUID + privateSchemaName: String + publicSchemaName: String + retention: String + rollupFunctionName: String schemaId: UUID - tableId: UUID - tableName: String + scope: String! + usageSummaryTableId: UUID + usageSummaryTableName: String } -"""Methods to use when ordering `ConfigSecretsUserModule`.""" -enum ConfigSecretsUserModuleOrderBy { +"""Methods to use when ordering `ComputeLogModule`.""" +enum ComputeLogModuleOrderBy { API_NAME_ASC API_NAME_DESC + COMPUTE_LOG_TABLE_ID_ASC + COMPUTE_LOG_TABLE_ID_DESC + COMPUTE_LOG_TABLE_NAME_ASC + COMPUTE_LOG_TABLE_NAME_DESC DATABASE_ID_ASC DATABASE_ID_DESC ENTITY_FIELD_ASC ENTITY_FIELD_DESC ID_ASC ID_DESC + INTERVAL_ASC + INTERVAL_DESC NATURAL + PREFIX_ASC + PREFIX_DESC + PREMAKE_ASC + PREMAKE_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 + RETENTION_ASC + RETENTION_DESC + ROLLUP_FUNCTION_NAME_ASC + ROLLUP_FUNCTION_NAME_DESC SCHEMA_ID_ASC SCHEMA_ID_DESC - TABLE_ID_ASC - TABLE_ID_DESC - TABLE_NAME_ASC - TABLE_NAME_DESC + SCOPE_ASC + SCOPE_DESC + USAGE_SUMMARY_TABLE_ID_ASC + USAGE_SUMMARY_TABLE_ID_DESC + USAGE_SUMMARY_TABLE_NAME_ASC + USAGE_SUMMARY_TABLE_NAME_DESC } """ -Represents an update to a `ConfigSecretsUserModule`. Fields that are set will be updated. +Represents an update to a `ComputeLogModule`. Fields that are set will be updated. """ -input ConfigSecretsUserModulePatch { +input ComputeLogModulePatch { apiName: String + computeLogTableId: UUID + computeLogTableName: String databaseId: UUID entityField: String id: UUID + interval: String + prefix: String + premake: Int privateApiName: String + privateSchemaId: UUID + privateSchemaName: String + publicSchemaName: String + retention: String + rollupFunctionName: String schemaId: UUID - tableId: UUID - tableName: String + scope: String + usageSummaryTableId: UUID + usageSummaryTableName: String } type ConnectedAccountsModule { @@ -4622,34 +5044,34 @@ type CreateCatalogModulePayload { query: Query } -"""All input for the create `ComputeLogModule` mutation.""" -input CreateComputeLogModuleInput { +"""All input for the create `ClusterModule` mutation.""" +input CreateClusterModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `ComputeLogModule` to be created by this mutation.""" - computeLogModule: ComputeLogModuleInput! + """The `ClusterModule` to be created by this mutation.""" + clusterModule: ClusterModuleInput! } -"""The output of our create `ComputeLogModule` mutation.""" -type CreateComputeLogModulePayload { +"""The output of our create `ClusterModule` mutation.""" +type CreateClusterModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `ComputeLogModule` that was created by this mutation.""" - computeLogModule: ComputeLogModule + """The `ClusterModule` that was created by this mutation.""" + clusterModule: ClusterModule - """An edge for our `ComputeLogModule`. May be used by Relay 1.""" - computeLogModuleEdge( - """The method to use when ordering `ComputeLogModule`.""" - orderBy: [ComputeLogModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): ComputeLogModuleEdge + """An edge for our `ClusterModule`. May be used by Relay 1.""" + clusterModuleEdge( + """The method to use when ordering `ClusterModule`.""" + orderBy: [ClusterModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): ClusterModuleEdge """ Our root query field type. Allows us to run any query from our mutation payload. @@ -4657,34 +5079,34 @@ type CreateComputeLogModulePayload { query: Query } -"""All input for the create `ConfigSecretsUserModule` mutation.""" -input CreateConfigSecretsUserModuleInput { +"""All input for the create `ComputeLogModule` mutation.""" +input CreateComputeLogModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `ConfigSecretsUserModule` to be created by this mutation.""" - configSecretsUserModule: ConfigSecretsUserModuleInput! + """The `ComputeLogModule` to be created by this mutation.""" + computeLogModule: ComputeLogModuleInput! } -"""The output of our create `ConfigSecretsUserModule` mutation.""" -type CreateConfigSecretsUserModulePayload { +"""The output of our create `ComputeLogModule` mutation.""" +type CreateComputeLogModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `ConfigSecretsUserModule` that was created by this mutation.""" - configSecretsUserModule: ConfigSecretsUserModule + """The `ComputeLogModule` that was created by this mutation.""" + computeLogModule: ComputeLogModule - """An edge for our `ConfigSecretsUserModule`. May be used by Relay 1.""" - configSecretsUserModuleEdge( - """The method to use when ordering `ConfigSecretsUserModule`.""" - orderBy: [ConfigSecretsUserModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): ConfigSecretsUserModuleEdge + """An edge for our `ComputeLogModule`. May be used by Relay 1.""" + computeLogModuleEdge( + """The method to use when ordering `ComputeLogModule`.""" + orderBy: [ComputeLogModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): ComputeLogModuleEdge """ Our root query field type. Allows us to run any query from our mutation payload. @@ -5602,41 +6024,6 @@ type CreateHierarchyModulePayload { query: Query } -"""All input for the create `HttpRouteModule` mutation.""" -input CreateHttpRouteModuleInput { - """ - An arbitrary 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 `HttpRouteModule` to be created by this mutation.""" - httpRouteModule: HttpRouteModuleInput! -} - -"""The output of our create `HttpRouteModule` mutation.""" -type CreateHttpRouteModulePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `HttpRouteModule` that was created by this mutation.""" - httpRouteModule: HttpRouteModule - - """An edge for our `HttpRouteModule`. May be used by Relay 1.""" - httpRouteModuleEdge( - """The method to use when ordering `HttpRouteModule`.""" - orderBy: [HttpRouteModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): HttpRouteModuleEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - """All input for the create `I18NModule` mutation.""" input CreateI18NModuleInput { """ @@ -5707,6 +6094,41 @@ type CreateIdentityProvidersModulePayload { query: Query } +"""All input for the create `ImageModule` mutation.""" +input CreateImageModuleInput { + """ + An arbitrary 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 `ImageModule` to be created by this mutation.""" + imageModule: ImageModuleInput! +} + +"""The output of our create `ImageModule` mutation.""" +type CreateImageModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `ImageModule` that was created by this mutation.""" + imageModule: ImageModule + + """An edge for our `ImageModule`. May be used by Relay 1.""" + imageModuleEdge( + """The method to use when ordering `ImageModule`.""" + orderBy: [ImageModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): ImageModuleEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + """All input for the create `InferenceLogModule` mutation.""" input CreateInferenceLogModuleInput { """ @@ -5847,6 +6269,41 @@ type CreateIntegrationProvidersModulePayload { query: Query } +"""All input for the create `InternalConfigModule` mutation.""" +input CreateInternalConfigModuleInput { + """ + An arbitrary 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 `InternalConfigModule` to be created by this mutation.""" + internalConfigModule: InternalConfigModuleInput! +} + +"""The output of our create `InternalConfigModule` mutation.""" +type CreateInternalConfigModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `InternalConfigModule` that was created by this mutation.""" + internalConfigModule: InternalConfigModule + + """An edge for our `InternalConfigModule`. May be used by Relay 1.""" + internalConfigModuleEdge( + """The method to use when ordering `InternalConfigModule`.""" + orderBy: [InternalConfigModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): InternalConfigModuleEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + """All input for the create `InternalSecretsModule` mutation.""" input CreateInternalSecretsModuleInput { """ @@ -5917,6 +6374,41 @@ type CreateInvitesModulePayload { query: Query } +"""All input for the create `K8sAdmissionModule` mutation.""" +input CreateK8sAdmissionModuleInput { + """ + An arbitrary 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 `K8sAdmissionModule` to be created by this mutation.""" + k8sAdmissionModule: K8sAdmissionModuleInput! +} + +"""The output of our create `K8sAdmissionModule` mutation.""" +type CreateK8sAdmissionModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `K8sAdmissionModule` that was created by this mutation.""" + k8sAdmissionModule: K8sAdmissionModule + + """An edge for our `K8sAdmissionModule`. May be used by Relay 1.""" + k8sAdmissionModuleEdge( + """The method to use when ordering `K8sAdmissionModule`.""" + orderBy: [K8sAdmissionModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): K8sAdmissionModuleEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + """All input for the create `LimitsModule` mutation.""" input CreateLimitsModuleInput { """ @@ -5952,6 +6444,41 @@ type CreateLimitsModulePayload { query: Query } +"""All input for the create `MachineModule` mutation.""" +input CreateMachineModuleInput { + """ + An arbitrary 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 `MachineModule` to be created by this mutation.""" + machineModule: MachineModuleInput! +} + +"""The output of our create `MachineModule` mutation.""" +type CreateMachineModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `MachineModule` that was created by this mutation.""" + machineModule: MachineModule + + """An edge for our `MachineModule`. May be used by Relay 1.""" + machineModuleEdge( + """The method to use when ordering `MachineModule`.""" + orderBy: [MachineModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): MachineModuleEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + """All input for the create `MembershipTypesModule` mutation.""" input CreateMembershipTypesModuleInput { """ @@ -6442,6 +6969,41 @@ type CreateRealtimeModulePayload { ): RealtimeModuleEdge } +"""All input for the create `RefusalLogModule` mutation.""" +input CreateRefusalLogModuleInput { + """ + An arbitrary 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 `RefusalLogModule` to be created by this mutation.""" + refusalLogModule: RefusalLogModuleInput! +} + +"""The output of our create `RefusalLogModule` mutation.""" +type CreateRefusalLogModulePayload { + """ + The 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 `RefusalLogModule` that was created by this mutation.""" + refusalLogModule: RefusalLogModule + + """An edge for our `RefusalLogModule`. May be used by Relay 1.""" + refusalLogModuleEdge( + """The method to use when ordering `RefusalLogModule`.""" + orderBy: [RefusalLogModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): RefusalLogModuleEdge +} + """All input for the create `RelationProvision` mutation.""" input CreateRelationProvisionInput { """ @@ -6477,6 +7039,41 @@ type CreateRelationProvisionPayload { ): RelationProvisionEdge } +"""All input for the create `RepositoryModule` mutation.""" +input CreateRepositoryModuleInput { + """ + An arbitrary 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 `RepositoryModule` to be created by this mutation.""" + repositoryModule: RepositoryModuleInput! +} + +"""The output of our create `RepositoryModule` mutation.""" +type CreateRepositoryModulePayload { + """ + The 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 `RepositoryModule` that was created by this mutation.""" + repositoryModule: RepositoryModule + + """An edge for our `RepositoryModule`. May be used by Relay 1.""" + repositoryModuleEdge( + """The method to use when ordering `RepositoryModule`.""" + orderBy: [RepositoryModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): RepositoryModuleEdge +} + """All input for the create `ResourceModule` mutation.""" input CreateResourceModuleInput { """ @@ -7662,6 +8259,11 @@ type DatabaseProvisionModule { """ async: Boolean! + """ + The user whose identity is copied into the new database. Defaults to owner_id when NULL; set explicitly when owner_id is an organization + """ + bootstrapActorId: UUID + """Error message from the most recent failed bootstrap attempt""" bootstrapError: String @@ -7671,7 +8273,7 @@ type DatabaseProvisionModule { bootstrapStatus: String! """ - When true, copies the owner user and password hash from source database to the newly provisioned database + When true, copies the bootstrap user and password hash from source database to the newly provisioned database """ bootstrapUser: Boolean! completedAt: Datetime @@ -7701,7 +8303,9 @@ type DatabaseProvisionModule { """Additional configuration options for provisioning""" options: JSON! - """UUID of the user who owns this database""" + """ + UUID of the entity that owns this database: a user, or an organization for an org-owned request + """ ownerId: UUID! """ @@ -7757,6 +8361,9 @@ input DatabaseProvisionModuleFilter { """Filter by the object’s `async` field.""" async: BooleanFilter + """Filter by the object’s `bootstrapActorId` field.""" + bootstrapActorId: UUIDFilter + """Filter by the object’s `bootstrapError` field.""" bootstrapError: StringFilter @@ -7825,6 +8432,11 @@ input DatabaseProvisionModuleInput { """ async: Boolean + """ + The user whose identity is copied into the new database. Defaults to owner_id when NULL; set explicitly when owner_id is an organization + """ + bootstrapActorId: UUID + """Error message from the most recent failed bootstrap attempt""" bootstrapError: String @@ -7834,7 +8446,7 @@ input DatabaseProvisionModuleInput { bootstrapStatus: String """ - When true, copies the owner user and password hash from source database to the newly provisioned database + When true, copies the bootstrap user and password hash from source database to the newly provisioned database """ bootstrapUser: Boolean completedAt: Datetime @@ -7864,7 +8476,9 @@ input DatabaseProvisionModuleInput { """Additional configuration options for provisioning""" options: JSON - """UUID of the user who owns this database""" + """ + UUID of the entity that owns this database: a user, or an organization for an org-owned request + """ ownerId: UUID! """ @@ -7886,6 +8500,8 @@ input DatabaseProvisionModuleInput { enum DatabaseProvisionModuleOrderBy { ASYNC_ASC ASYNC_DESC + BOOTSTRAP_ACTOR_ID_ASC + BOOTSTRAP_ACTOR_ID_DESC BOOTSTRAP_ERROR_ASC BOOTSTRAP_ERROR_DESC BOOTSTRAP_STATUS_ASC @@ -7936,6 +8552,11 @@ input DatabaseProvisionModulePatch { """ async: Boolean + """ + The user whose identity is copied into the new database. Defaults to owner_id when NULL; set explicitly when owner_id is an organization + """ + bootstrapActorId: UUID + """Error message from the most recent failed bootstrap attempt""" bootstrapError: String @@ -7945,7 +8566,7 @@ input DatabaseProvisionModulePatch { bootstrapStatus: String """ - When true, copies the owner user and password hash from source database to the newly provisioned database + When true, copies the bootstrap user and password hash from source database to the newly provisioned database """ bootstrapUser: Boolean completedAt: Datetime @@ -7975,7 +8596,9 @@ input DatabaseProvisionModulePatch { """Additional configuration options for provisioning""" options: JSON - """UUID of the user who owns this database""" + """ + UUID of the entity that owns this database: a user, or an organization for an org-owned request + """ ownerId: UUID """ @@ -9586,8 +10209,8 @@ type DeleteCatalogModulePayload { query: Query } -"""All input for the `deleteComputeLogModule` mutation.""" -input DeleteComputeLogModuleInput { +"""All input for the `deleteClusterModule` mutation.""" +input DeleteClusterModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -9596,22 +10219,22 @@ input DeleteComputeLogModuleInput { id: UUID! } -"""The output of our delete `ComputeLogModule` mutation.""" -type DeleteComputeLogModulePayload { +"""The output of our delete `ClusterModule` mutation.""" +type DeleteClusterModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `ComputeLogModule` that was deleted by this mutation.""" - computeLogModule: ComputeLogModule + """The `ClusterModule` that was deleted by this mutation.""" + clusterModule: ClusterModule - """An edge for our `ComputeLogModule`. May be used by Relay 1.""" - computeLogModuleEdge( - """The method to use when ordering `ComputeLogModule`.""" - orderBy: [ComputeLogModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): ComputeLogModuleEdge + """An edge for our `ClusterModule`. May be used by Relay 1.""" + clusterModuleEdge( + """The method to use when ordering `ClusterModule`.""" + orderBy: [ClusterModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): ClusterModuleEdge """ Our root query field type. Allows us to run any query from our mutation payload. @@ -9619,8 +10242,8 @@ type DeleteComputeLogModulePayload { query: Query } -"""All input for the `deleteConfigSecretsUserModule` mutation.""" -input DeleteConfigSecretsUserModuleInput { +"""All input for the `deleteComputeLogModule` mutation.""" +input DeleteComputeLogModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -9629,22 +10252,22 @@ input DeleteConfigSecretsUserModuleInput { id: UUID! } -"""The output of our delete `ConfigSecretsUserModule` mutation.""" -type DeleteConfigSecretsUserModulePayload { +"""The output of our delete `ComputeLogModule` mutation.""" +type DeleteComputeLogModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `ConfigSecretsUserModule` that was deleted by this mutation.""" - configSecretsUserModule: ConfigSecretsUserModule + """The `ComputeLogModule` that was deleted by this mutation.""" + computeLogModule: ComputeLogModule - """An edge for our `ConfigSecretsUserModule`. May be used by Relay 1.""" - configSecretsUserModuleEdge( - """The method to use when ordering `ConfigSecretsUserModule`.""" - orderBy: [ConfigSecretsUserModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): ConfigSecretsUserModuleEdge + """An edge for our `ComputeLogModule`. May be used by Relay 1.""" + computeLogModuleEdge( + """The method to use when ordering `ComputeLogModule`.""" + orderBy: [ComputeLogModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): ComputeLogModuleEdge """ Our root query field type. Allows us to run any query from our mutation payload. @@ -10512,39 +11135,6 @@ type DeleteHierarchyModulePayload { query: Query } -"""All input for the `deleteHttpRouteModule` mutation.""" -input DeleteHttpRouteModuleInput { - """ - An arbitrary 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 `HttpRouteModule` mutation.""" -type DeleteHttpRouteModulePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `HttpRouteModule` that was deleted by this mutation.""" - httpRouteModule: HttpRouteModule - - """An edge for our `HttpRouteModule`. May be used by Relay 1.""" - httpRouteModuleEdge( - """The method to use when ordering `HttpRouteModule`.""" - orderBy: [HttpRouteModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): HttpRouteModuleEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - """All input for the `deleteI18NModule` mutation.""" input DeleteI18NModuleInput { """ @@ -10611,6 +11201,39 @@ type DeleteIdentityProvidersModulePayload { query: Query } +"""All input for the `deleteImageModule` mutation.""" +input DeleteImageModuleInput { + """ + An arbitrary 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 `ImageModule` mutation.""" +type DeleteImageModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `ImageModule` that was deleted by this mutation.""" + imageModule: ImageModule + + """An edge for our `ImageModule`. May be used by Relay 1.""" + imageModuleEdge( + """The method to use when ordering `ImageModule`.""" + orderBy: [ImageModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): ImageModuleEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + """All input for the `deleteInferenceLogModule` mutation.""" input DeleteInferenceLogModuleInput { """ @@ -10743,6 +11366,39 @@ type DeleteIntegrationProvidersModulePayload { query: Query } +"""All input for the `deleteInternalConfigModule` mutation.""" +input DeleteInternalConfigModuleInput { + """ + An arbitrary 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 `InternalConfigModule` mutation.""" +type DeleteInternalConfigModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `InternalConfigModule` that was deleted by this mutation.""" + internalConfigModule: InternalConfigModule + + """An edge for our `InternalConfigModule`. May be used by Relay 1.""" + internalConfigModuleEdge( + """The method to use when ordering `InternalConfigModule`.""" + orderBy: [InternalConfigModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): InternalConfigModuleEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + """All input for the `deleteInternalSecretsModule` mutation.""" input DeleteInternalSecretsModuleInput { """ @@ -10809,6 +11465,39 @@ type DeleteInvitesModulePayload { query: Query } +"""All input for the `deleteK8sAdmissionModule` mutation.""" +input DeleteK8sAdmissionModuleInput { + """ + An arbitrary 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 `K8sAdmissionModule` mutation.""" +type DeleteK8sAdmissionModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `K8sAdmissionModule` that was deleted by this mutation.""" + k8sAdmissionModule: K8sAdmissionModule + + """An edge for our `K8sAdmissionModule`. May be used by Relay 1.""" + k8sAdmissionModuleEdge( + """The method to use when ordering `K8sAdmissionModule`.""" + orderBy: [K8sAdmissionModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): K8sAdmissionModuleEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + """All input for the `deleteLimitsModule` mutation.""" input DeleteLimitsModuleInput { """ @@ -10842,6 +11531,39 @@ type DeleteLimitsModulePayload { query: Query } +"""All input for the `deleteMachineModule` mutation.""" +input DeleteMachineModuleInput { + """ + An arbitrary 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 `MachineModule` mutation.""" +type DeleteMachineModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `MachineModule` that was deleted by this mutation.""" + machineModule: MachineModule + + """An edge for our `MachineModule`. May be used by Relay 1.""" + machineModuleEdge( + """The method to use when ordering `MachineModule`.""" + orderBy: [MachineModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): MachineModuleEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + """All input for the `deleteMembershipTypesModule` mutation.""" input DeleteMembershipTypesModuleInput { """ @@ -11304,6 +12026,39 @@ type DeleteRealtimeModulePayload { ): RealtimeModuleEdge } +"""All input for the `deleteRefusalLogModule` mutation.""" +input DeleteRefusalLogModuleInput { + """ + An arbitrary 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 `RefusalLogModule` mutation.""" +type DeleteRefusalLogModulePayload { + """ + The 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 `RefusalLogModule` that was deleted by this mutation.""" + refusalLogModule: RefusalLogModule + + """An edge for our `RefusalLogModule`. May be used by Relay 1.""" + refusalLogModuleEdge( + """The method to use when ordering `RefusalLogModule`.""" + orderBy: [RefusalLogModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): RefusalLogModuleEdge +} + """All input for the `deleteRelationProvision` mutation.""" input DeleteRelationProvisionInput { """ @@ -11339,6 +12094,39 @@ type DeleteRelationProvisionPayload { ): RelationProvisionEdge } +"""All input for the `deleteRepositoryModule` mutation.""" +input DeleteRepositoryModuleInput { + """ + An arbitrary 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 `RepositoryModule` mutation.""" +type DeleteRepositoryModulePayload { + """ + The 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 `RepositoryModule` that was deleted by this mutation.""" + repositoryModule: RepositoryModule + + """An edge for our `RepositoryModule`. May be used by Relay 1.""" + repositoryModuleEdge( + """The method to use when ordering `RepositoryModule`.""" + orderBy: [RepositoryModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): RepositoryModuleEdge +} + """All input for the `deleteResourceModule` mutation.""" input DeleteResourceModuleInput { """ @@ -15257,35 +16045,6 @@ type FunctionModule { where: FunctionDeploymentModuleFilter ): FunctionDeploymentModuleConnection! hasCron: Boolean! - - """Reads and enables pagination through a set of `HttpRouteModule`.""" - httpRouteModules( - """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 `HttpRouteModule`.""" - orderBy: [HttpRouteModuleOrderBy!] = [PRIMARY_KEY_ASC] - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: HttpRouteModuleFilter - ): HttpRouteModuleConnection! id: UUID! policies: JSON prefix: String! @@ -15297,6 +16056,7 @@ type FunctionModule { schedulesTableId: UUID schemaId: UUID! scope: String! + storageKey: String! """Reads and enables pagination through a set of `WebhookModule`.""" webhookModules( @@ -15400,12 +16160,6 @@ input FunctionModuleFilter { """Filter by the object’s `hasCron` field.""" hasCron: BooleanFilter - """Filter by the object’s `httpRouteModules` relation.""" - httpRouteModules: FunctionModuleToManyHttpRouteModuleFilter - - """`httpRouteModules` exist.""" - httpRouteModulesExist: Boolean - """Filter by the object’s `id` field.""" id: UUIDFilter @@ -15445,6 +16199,9 @@ input FunctionModuleFilter { """Filter by the object’s `scope` field.""" scope: StringFilter + """Filter by the object’s `storageKey` field.""" + storageKey: StringFilter + """Filter by the object’s `webhookModules` relation.""" webhookModules: FunctionModuleToManyWebhookModuleFilter @@ -15476,6 +16233,7 @@ input FunctionModuleInput { schedulesTableId: UUID schemaId: UUID scope: String! + storageKey: String } """Methods to use when ordering `FunctionModule`.""" @@ -15527,6 +16285,8 @@ enum FunctionModuleOrderBy { SCHEMA_ID_DESC SCOPE_ASC SCOPE_DESC + STORAGE_KEY_ASC + STORAGE_KEY_DESC } """ @@ -15555,6 +16315,7 @@ input FunctionModulePatch { schedulesTableId: UUID schemaId: UUID scope: String + storageKey: String } """ @@ -15571,20 +16332,6 @@ input FunctionModuleToManyFunctionDeploymentModuleFilter { some: FunctionDeploymentModuleFilter } -""" -A filter to be used against many `HttpRouteModule` object types. All fields are combined with a logical ‘and.’ -""" -input FunctionModuleToManyHttpRouteModuleFilter { - """Filters to entities where every related entity matches.""" - every: HttpRouteModuleFilter - - """Filters to entities where no related entity matches.""" - none: HttpRouteModuleFilter - - """Filters to entities where at least one related entity matches.""" - some: HttpRouteModuleFilter -} - """ A filter to be used against many `WebhookModule` object types. All fields are combined with a logical ‘and.’ """ @@ -16360,269 +17107,6 @@ input HierarchyModulePatch { usersTableId: UUID } -type HttpRouteModule { - apiName: String - databaseId: UUID! - defaultCapabilities: [String] - entityField: String - entityTableId: UUID - - """ - Reads a single `FunctionModule` that is related to this `HttpRouteModule`. - """ - functionModule: FunctionModule - functionModuleId: UUID - httpRoutesTableId: UUID! - httpRoutesTableName: String! - id: UUID! - policies: JSON - prefix: String! - privateApiName: String - privateSchemaId: UUID! - privateSchemaName: String - provisions: JSON - publicSchemaName: String - resolverFunctionName: String - - """ - Reads a single `ResourceModule` that is related to this `HttpRouteModule`. - """ - resourceModule: ResourceModule - resourceModuleId: UUID - schemaId: UUID! - scope: String! - - """ - Reads a single `StorageModule` that is related to this `HttpRouteModule`. - """ - storageModule: StorageModule - storageModuleId: UUID -} - -"""A connection to a list of `HttpRouteModule` values.""" -type HttpRouteModuleConnection { - """ - A list of edges which contains the `HttpRouteModule` and cursor to aid in pagination. - """ - edges: [HttpRouteModuleEdge]! - - """A list of `HttpRouteModule` objects.""" - nodes: [HttpRouteModule]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `HttpRouteModule` you could get from the connection. - """ - totalCount: Int! -} - -"""A `HttpRouteModule` edge in the connection.""" -type HttpRouteModuleEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `HttpRouteModule` at the end of the edge.""" - node: HttpRouteModule -} - -""" -A filter to be used against `HttpRouteModule` object types. All fields are combined with a logical ‘and.’ -""" -input HttpRouteModuleFilter { - """Checks for all expressions in this list.""" - and: [HttpRouteModuleFilter!] - - """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 `entityField` field.""" - entityField: StringFilter - - """Filter by the object’s `entityTableId` field.""" - entityTableId: UUIDFilter - - """Filter by the object’s `functionModule` relation.""" - functionModule: FunctionModuleFilter - - """A related `functionModule` exists.""" - functionModuleExists: Boolean - - """Filter by the object’s `functionModuleId` field.""" - functionModuleId: UUIDFilter - - """Filter by the object’s `httpRoutesTableId` field.""" - httpRoutesTableId: UUIDFilter - - """Filter by the object’s `httpRoutesTableName` field.""" - httpRoutesTableName: StringFilter - - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Negates the expression.""" - not: HttpRouteModuleFilter - - """Checks for any expressions in this list.""" - or: [HttpRouteModuleFilter!] - - """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 `publicSchemaName` field.""" - publicSchemaName: StringFilter - - """Filter by the object’s `resolverFunctionName` field.""" - resolverFunctionName: StringFilter - - """Filter by the object’s `resourceModule` relation.""" - resourceModule: ResourceModuleFilter - - """A related `resourceModule` exists.""" - resourceModuleExists: Boolean - - """Filter by the object’s `resourceModuleId` field.""" - resourceModuleId: UUIDFilter - - """Filter by the object’s `schemaId` field.""" - schemaId: UUIDFilter - - """Filter by the object’s `scope` field.""" - scope: StringFilter - - """Filter by the object’s `storageModule` relation.""" - storageModule: StorageModuleFilter - - """A related `storageModule` exists.""" - storageModuleExists: Boolean - - """Filter by the object’s `storageModuleId` field.""" - storageModuleId: UUIDFilter -} - -"""An input for mutations affecting `HttpRouteModule`""" -input HttpRouteModuleInput { - apiName: String - databaseId: UUID! - defaultCapabilities: [String] - entityField: String - entityTableId: UUID - functionModuleId: UUID - httpRoutesTableId: UUID - httpRoutesTableName: String - id: UUID - policies: JSON - prefix: String - privateApiName: String - privateSchemaId: UUID - privateSchemaName: String - provisions: JSON - publicSchemaName: String - resolverFunctionName: String - resourceModuleId: UUID - schemaId: UUID - scope: String! - storageModuleId: UUID -} - -"""Methods to use when ordering `HttpRouteModule`.""" -enum HttpRouteModuleOrderBy { - API_NAME_ASC - API_NAME_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - DEFAULT_CAPABILITIES_ASC - DEFAULT_CAPABILITIES_DESC - ENTITY_FIELD_ASC - ENTITY_FIELD_DESC - ENTITY_TABLE_ID_ASC - ENTITY_TABLE_ID_DESC - FUNCTION_MODULE_ID_ASC - FUNCTION_MODULE_ID_DESC - HTTP_ROUTES_TABLE_ID_ASC - HTTP_ROUTES_TABLE_ID_DESC - HTTP_ROUTES_TABLE_NAME_ASC - HTTP_ROUTES_TABLE_NAME_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 - PRIVATE_SCHEMA_ID_ASC - PRIVATE_SCHEMA_ID_DESC - PRIVATE_SCHEMA_NAME_ASC - PRIVATE_SCHEMA_NAME_DESC - PROVISIONS_ASC - PROVISIONS_DESC - PUBLIC_SCHEMA_NAME_ASC - PUBLIC_SCHEMA_NAME_DESC - RESOLVER_FUNCTION_NAME_ASC - RESOLVER_FUNCTION_NAME_DESC - RESOURCE_MODULE_ID_ASC - RESOURCE_MODULE_ID_DESC - SCHEMA_ID_ASC - SCHEMA_ID_DESC - SCOPE_ASC - SCOPE_DESC - STORAGE_MODULE_ID_ASC - STORAGE_MODULE_ID_DESC -} - -""" -Represents an update to a `HttpRouteModule`. Fields that are set will be updated. -""" -input HttpRouteModulePatch { - apiName: String - databaseId: UUID - defaultCapabilities: [String] - entityField: String - entityTableId: UUID - functionModuleId: UUID - httpRoutesTableId: UUID - httpRoutesTableName: String - id: UUID - policies: JSON - prefix: String - privateApiName: String - privateSchemaId: UUID - privateSchemaName: String - provisions: JSON - publicSchemaName: String - resolverFunctionName: String - resourceModuleId: UUID - schemaId: UUID - scope: String - storageModuleId: UUID -} - type I18NModule { apiName: String databaseId: UUID! @@ -16936,12 +17420,254 @@ input IdentityProvidersModulePatch { tableName: String } +type ImageModule { + apiName: String + databaseId: UUID! + defaultCapabilities: [String] + entityField: String + entityTableId: UUID + id: UUID! + imageGrantsTableId: UUID! + imageGrantsTableName: String! + imagesTableId: UUID! + imagesTableName: String! + policies: JSON + prefix: String! + privateApiName: String + privateSchemaId: UUID! + privateSchemaName: String + provisions: JSON + publicSchemaName: String + registriesTableId: UUID! + registriesTableName: String! + registryGrantsTableId: UUID! + registryGrantsTableName: String! + schemaId: UUID! + scope: String! +} + +"""A connection to a list of `ImageModule` values.""" +type ImageModuleConnection { + """ + A list of edges which contains the `ImageModule` and cursor to aid in pagination. + """ + edges: [ImageModuleEdge]! + + """A list of `ImageModule` objects.""" + nodes: [ImageModule]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `ImageModule` you could get from the connection.""" + totalCount: Int! +} + +"""A `ImageModule` edge in the connection.""" +type ImageModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `ImageModule` at the end of the edge.""" + node: ImageModule +} + +""" +A filter to be used against `ImageModule` object types. All fields are combined with a logical ‘and.’ +""" +input ImageModuleFilter { + """Checks for all expressions in this list.""" + and: [ImageModuleFilter!] + + """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 `entityField` field.""" + entityField: StringFilter + + """Filter by the object’s `entityTableId` field.""" + entityTableId: UUIDFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `imageGrantsTableId` field.""" + imageGrantsTableId: UUIDFilter + + """Filter by the object’s `imageGrantsTableName` field.""" + imageGrantsTableName: StringFilter + + """Filter by the object’s `imagesTableId` field.""" + imagesTableId: UUIDFilter + + """Filter by the object’s `imagesTableName` field.""" + imagesTableName: StringFilter + + """Negates the expression.""" + not: ImageModuleFilter + + """Checks for any expressions in this list.""" + or: [ImageModuleFilter!] + + """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 `publicSchemaName` field.""" + publicSchemaName: StringFilter + + """Filter by the object’s `registriesTableId` field.""" + registriesTableId: UUIDFilter + + """Filter by the object’s `registriesTableName` field.""" + registriesTableName: StringFilter + + """Filter by the object’s `registryGrantsTableId` field.""" + registryGrantsTableId: UUIDFilter + + """Filter by the object’s `registryGrantsTableName` field.""" + registryGrantsTableName: StringFilter + + """Filter by the object’s `schemaId` field.""" + schemaId: UUIDFilter + + """Filter by the object’s `scope` field.""" + scope: StringFilter +} + +"""An input for mutations affecting `ImageModule`""" +input ImageModuleInput { + apiName: String + databaseId: UUID! + defaultCapabilities: [String] + entityField: String + entityTableId: UUID + id: UUID + imageGrantsTableId: UUID + imageGrantsTableName: String + imagesTableId: UUID + imagesTableName: String + policies: JSON + prefix: String + privateApiName: String + privateSchemaId: UUID + privateSchemaName: String + provisions: JSON + publicSchemaName: String + registriesTableId: UUID + registriesTableName: String + registryGrantsTableId: UUID + registryGrantsTableName: String + schemaId: UUID + scope: String! +} + +"""Methods to use when ordering `ImageModule`.""" +enum ImageModuleOrderBy { + API_NAME_ASC + API_NAME_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + DEFAULT_CAPABILITIES_ASC + DEFAULT_CAPABILITIES_DESC + ENTITY_FIELD_ASC + ENTITY_FIELD_DESC + ENTITY_TABLE_ID_ASC + ENTITY_TABLE_ID_DESC + ID_ASC + ID_DESC + IMAGES_TABLE_ID_ASC + IMAGES_TABLE_ID_DESC + IMAGES_TABLE_NAME_ASC + IMAGES_TABLE_NAME_DESC + IMAGE_GRANTS_TABLE_ID_ASC + IMAGE_GRANTS_TABLE_ID_DESC + IMAGE_GRANTS_TABLE_NAME_ASC + IMAGE_GRANTS_TABLE_NAME_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_NAME_ASC + PUBLIC_SCHEMA_NAME_DESC + REGISTRIES_TABLE_ID_ASC + REGISTRIES_TABLE_ID_DESC + REGISTRIES_TABLE_NAME_ASC + REGISTRIES_TABLE_NAME_DESC + REGISTRY_GRANTS_TABLE_ID_ASC + REGISTRY_GRANTS_TABLE_ID_DESC + REGISTRY_GRANTS_TABLE_NAME_ASC + REGISTRY_GRANTS_TABLE_NAME_DESC + SCHEMA_ID_ASC + SCHEMA_ID_DESC + SCOPE_ASC + SCOPE_DESC +} + +""" +Represents an update to a `ImageModule`. Fields that are set will be updated. +""" +input ImageModulePatch { + apiName: String + databaseId: UUID + defaultCapabilities: [String] + entityField: String + entityTableId: UUID + id: UUID + imageGrantsTableId: UUID + imageGrantsTableName: String + imagesTableId: UUID + imagesTableName: String + policies: JSON + prefix: String + privateApiName: String + privateSchemaId: UUID + privateSchemaName: String + provisions: JSON + publicSchemaName: String + registriesTableId: UUID + registriesTableName: String + registryGrantsTableId: UUID + registryGrantsTableName: String + schemaId: UUID + scope: String +} + type InferenceLogModule { - actorFkTableId: UUID apiName: String databaseId: UUID! entityField: String - entityFkTableId: UUID id: UUID! inferenceLogTableId: UUID! inferenceLogTableName: String! @@ -16953,6 +17679,7 @@ type InferenceLogModule { privateSchemaName: String publicSchemaName: String retention: String! + rollupFunctionName: String! schemaId: UUID! scope: String! usageSummaryTableId: UUID! @@ -16991,9 +17718,6 @@ type InferenceLogModuleEdge { A filter to be used against `InferenceLogModule` object types. All fields are combined with a logical ‘and.’ """ input InferenceLogModuleFilter { - """Filter by the object’s `actorFkTableId` field.""" - actorFkTableId: UUIDFilter - """Checks for all expressions in this list.""" and: [InferenceLogModuleFilter!] @@ -17006,9 +17730,6 @@ input InferenceLogModuleFilter { """Filter by the object’s `entityField` field.""" entityField: StringFilter - """Filter by the object’s `entityFkTableId` field.""" - entityFkTableId: UUIDFilter - """Filter by the object’s `id` field.""" id: UUIDFilter @@ -17048,6 +17769,9 @@ input InferenceLogModuleFilter { """Filter by the object’s `retention` field.""" retention: StringFilter + """Filter by the object’s `rollupFunctionName` field.""" + rollupFunctionName: StringFilter + """Filter by the object’s `schemaId` field.""" schemaId: UUIDFilter @@ -17063,11 +17787,9 @@ input InferenceLogModuleFilter { """An input for mutations affecting `InferenceLogModule`""" input InferenceLogModuleInput { - actorFkTableId: UUID apiName: String databaseId: UUID! entityField: String - entityFkTableId: UUID id: UUID inferenceLogTableId: UUID inferenceLogTableName: String @@ -17079,6 +17801,7 @@ input InferenceLogModuleInput { privateSchemaName: String publicSchemaName: String retention: String + rollupFunctionName: String schemaId: UUID scope: String! usageSummaryTableId: UUID @@ -17087,16 +17810,12 @@ input InferenceLogModuleInput { """Methods to use when ordering `InferenceLogModule`.""" enum InferenceLogModuleOrderBy { - ACTOR_FK_TABLE_ID_ASC - ACTOR_FK_TABLE_ID_DESC API_NAME_ASC API_NAME_DESC DATABASE_ID_ASC DATABASE_ID_DESC ENTITY_FIELD_ASC ENTITY_FIELD_DESC - ENTITY_FK_TABLE_ID_ASC - ENTITY_FK_TABLE_ID_DESC ID_ASC ID_DESC INFERENCE_LOG_TABLE_ID_ASC @@ -17122,6 +17841,8 @@ enum InferenceLogModuleOrderBy { PUBLIC_SCHEMA_NAME_DESC RETENTION_ASC RETENTION_DESC + ROLLUP_FUNCTION_NAME_ASC + ROLLUP_FUNCTION_NAME_DESC SCHEMA_ID_ASC SCHEMA_ID_DESC SCOPE_ASC @@ -17136,11 +17857,9 @@ enum InferenceLogModuleOrderBy { Represents an update to a `InferenceLogModule`. Fields that are set will be updated. """ input InferenceLogModulePatch { - actorFkTableId: UUID apiName: String databaseId: UUID entityField: String - entityFkTableId: UUID id: UUID inferenceLogTableId: UUID inferenceLogTableName: String @@ -17152,6 +17871,7 @@ input InferenceLogModulePatch { privateSchemaName: String publicSchemaName: String retention: String + rollupFunctionName: String schemaId: UUID scope: String usageSummaryTableId: UUID @@ -17816,6 +18536,199 @@ input IntegrationProvidersModulePatch { tableName: String } +""" +Scope-aware plaintext internal config store. No namespace_module dependency and no K8s synchronization: values are read from the database at invocation time. Configuration that must be projected into a Kubernetes ConfigMap belongs in infra_config_module. +""" +type InternalConfigModule { + apiName: String + databaseId: UUID! + entityField: String + entityTableId: UUID + id: UUID! + internalConfigTableId: UUID! + internalConfigTableName: String! + policies: JSON + prefix: String! + privateApiName: String + privateSchemaId: UUID! + privateSchemaName: String + provisions: JSON + publicSchemaName: String + schemaId: UUID! + scope: String! +} + +"""A connection to a list of `InternalConfigModule` values.""" +type InternalConfigModuleConnection { + """ + A list of edges which contains the `InternalConfigModule` and cursor to aid in pagination. + """ + edges: [InternalConfigModuleEdge]! + + """A list of `InternalConfigModule` objects.""" + nodes: [InternalConfigModule]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `InternalConfigModule` you could get from the connection. + """ + totalCount: Int! +} + +"""A `InternalConfigModule` edge in the connection.""" +type InternalConfigModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `InternalConfigModule` at the end of the edge.""" + node: InternalConfigModule +} + +""" +A filter to be used against `InternalConfigModule` object types. All fields are combined with a logical ‘and.’ +""" +input InternalConfigModuleFilter { + """Checks for all expressions in this list.""" + and: [InternalConfigModuleFilter!] + + """Filter by the object’s `apiName` field.""" + apiName: StringFilter + + """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 + + """Filter by the object’s `internalConfigTableId` field.""" + internalConfigTableId: UUIDFilter + + """Filter by the object’s `internalConfigTableName` field.""" + internalConfigTableName: StringFilter + + """Negates the expression.""" + not: InternalConfigModuleFilter + + """Checks for any expressions in this list.""" + or: [InternalConfigModuleFilter!] + + """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 `publicSchemaName` field.""" + publicSchemaName: StringFilter + + """Filter by the object’s `schemaId` field.""" + schemaId: UUIDFilter + + """Filter by the object’s `scope` field.""" + scope: StringFilter +} + +"""An input for mutations affecting `InternalConfigModule`""" +input InternalConfigModuleInput { + apiName: String + databaseId: UUID! + entityField: String + entityTableId: UUID + id: UUID + internalConfigTableId: UUID + internalConfigTableName: String + policies: JSON + prefix: String + privateApiName: String + privateSchemaId: UUID + privateSchemaName: String + provisions: JSON + publicSchemaName: String + schemaId: UUID + scope: String! +} + +"""Methods to use when ordering `InternalConfigModule`.""" +enum InternalConfigModuleOrderBy { + API_NAME_ASC + API_NAME_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + ENTITY_FIELD_ASC + ENTITY_FIELD_DESC + ENTITY_TABLE_ID_ASC + ENTITY_TABLE_ID_DESC + ID_ASC + ID_DESC + INTERNAL_CONFIG_TABLE_ID_ASC + INTERNAL_CONFIG_TABLE_ID_DESC + INTERNAL_CONFIG_TABLE_NAME_ASC + INTERNAL_CONFIG_TABLE_NAME_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_NAME_ASC + PUBLIC_SCHEMA_NAME_DESC + SCHEMA_ID_ASC + SCHEMA_ID_DESC + SCOPE_ASC + SCOPE_DESC +} + +""" +Represents an update to a `InternalConfigModule`. Fields that are set will be updated. +""" +input InternalConfigModulePatch { + apiName: String + databaseId: UUID + entityField: String + entityTableId: UUID + id: UUID + internalConfigTableId: UUID + internalConfigTableName: String + policies: JSON + prefix: String + privateApiName: String + privateSchemaId: UUID + privateSchemaName: String + provisions: JSON + publicSchemaName: String + schemaId: UUID + scope: String +} + """ App-scoped PGP-encrypted internal secrets store. No namespace_module dependency and no K8s synchronization. Used by identity_providers_module for OAuth2 client_secret storage. """ @@ -18442,6 +19355,223 @@ input JSONListFilter { overlaps: [JSON] } +""" +Provisions the platform-managed Kubernetes admission catalogs: a kinds table and a spec-rules table, Merkle-versioned through the referenced merkle_store_module, whose rows the generated admission gate on resources/resource_definitions reads. Writes are platform-admin and human-only; every scope reads the one catalog. +""" +type K8sAdmissionModule { + apiName: String + createdAt: Datetime! + databaseId: UUID! + entityTableId: UUID + id: UUID! + k8sResourceKindsTableId: UUID! + k8sSpecRulesTableId: UUID! + + """ + Reads a single `MerkleStoreModule` that is related to this `K8sAdmissionModule`. + """ + 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 `K8sAdmissionModule` values.""" +type K8sAdmissionModuleConnection { + """ + A list of edges which contains the `K8sAdmissionModule` and cursor to aid in pagination. + """ + edges: [K8sAdmissionModuleEdge]! + + """A list of `K8sAdmissionModule` objects.""" + nodes: [K8sAdmissionModule]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `K8sAdmissionModule` you could get from the connection. + """ + totalCount: Int! +} + +"""A `K8sAdmissionModule` edge in the connection.""" +type K8sAdmissionModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `K8sAdmissionModule` at the end of the edge.""" + node: K8sAdmissionModule +} + +""" +A filter to be used against `K8sAdmissionModule` object types. All fields are combined with a logical ‘and.’ +""" +input K8sAdmissionModuleFilter { + """Checks for all expressions in this list.""" + and: [K8sAdmissionModuleFilter!] + + """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 `k8sResourceKindsTableId` field.""" + k8sResourceKindsTableId: UUIDFilter + + """Filter by the object’s `k8sSpecRulesTableId` field.""" + k8sSpecRulesTableId: UUIDFilter + + """Filter by the object’s `merkleStoreModule` relation.""" + merkleStoreModule: MerkleStoreModuleFilter + + """Filter by the object’s `merkleStoreModuleId` field.""" + merkleStoreModuleId: UUIDFilter + + """Negates the expression.""" + not: K8sAdmissionModuleFilter + + """Checks for any expressions in this list.""" + or: [K8sAdmissionModuleFilter!] + + """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 `K8sAdmissionModule`""" +input K8sAdmissionModuleInput { + apiName: String + createdAt: Datetime + databaseId: UUID! + entityTableId: UUID + id: UUID + k8sResourceKindsTableId: UUID + k8sSpecRulesTableId: 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 `K8sAdmissionModule`.""" +enum K8sAdmissionModuleOrderBy { + 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 + K8S_RESOURCE_KINDS_TABLE_ID_ASC + K8S_RESOURCE_KINDS_TABLE_ID_DESC + K8S_SPEC_RULES_TABLE_ID_ASC + K8S_SPEC_RULES_TABLE_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 `K8sAdmissionModule`. Fields that are set will be updated. +""" +input K8sAdmissionModulePatch { + apiName: String + createdAt: Datetime + databaseId: UUID + entityTableId: UUID + id: UUID + k8sResourceKindsTableId: UUID + k8sSpecRulesTableId: UUID + merkleStoreModuleId: UUID + policies: JSON + prefix: String + privateApiName: String + privateSchemaId: UUID + privateSchemaName: String + provisions: JSON + publicSchemaId: UUID + publicSchemaName: String + scope: String + storeName: String +} + type LimitsModule { actorTableId: UUID! aggregateTableId: UUID @@ -18806,6 +19936,258 @@ input LimitsModulePatch { tableName: String } +type MachineModule { + apiName: String + databaseId: UUID! + defaultCapabilities: [String] + entityField: String + entityTableId: UUID + id: UUID! + machineMessagesTableId: UUID! + machineMessagesTableName: String! + machineSessionsTableId: UUID! + machineSessionsTableName: String! + machinesTableId: UUID! + machinesTableName: String! + partitionInterval: String! + policies: JSON + prefix: String! + premake: Int! + privateApiName: String + privateSchemaId: UUID! + privateSchemaName: String + provisions: JSON + publicSchemaName: String + retention: String! + schemaId: UUID! + scope: String! +} + +"""A connection to a list of `MachineModule` values.""" +type MachineModuleConnection { + """ + A list of edges which contains the `MachineModule` and cursor to aid in pagination. + """ + edges: [MachineModuleEdge]! + + """A list of `MachineModule` objects.""" + nodes: [MachineModule]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `MachineModule` you could get from the connection.""" + totalCount: Int! +} + +"""A `MachineModule` edge in the connection.""" +type MachineModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `MachineModule` at the end of the edge.""" + node: MachineModule +} + +""" +A filter to be used against `MachineModule` object types. All fields are combined with a logical ‘and.’ +""" +input MachineModuleFilter { + """Checks for all expressions in this list.""" + and: [MachineModuleFilter!] + + """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 `entityField` field.""" + entityField: StringFilter + + """Filter by the object’s `entityTableId` field.""" + entityTableId: UUIDFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `machineMessagesTableId` field.""" + machineMessagesTableId: UUIDFilter + + """Filter by the object’s `machineMessagesTableName` field.""" + machineMessagesTableName: StringFilter + + """Filter by the object’s `machineSessionsTableId` field.""" + machineSessionsTableId: UUIDFilter + + """Filter by the object’s `machineSessionsTableName` field.""" + machineSessionsTableName: StringFilter + + """Filter by the object’s `machinesTableId` field.""" + machinesTableId: UUIDFilter + + """Filter by the object’s `machinesTableName` field.""" + machinesTableName: StringFilter + + """Negates the expression.""" + not: MachineModuleFilter + + """Checks for any expressions in this list.""" + or: [MachineModuleFilter!] + + """Filter by the object’s `partitionInterval` field.""" + partitionInterval: StringFilter + + """Filter by the object’s `policies` field.""" + policies: JSONFilter + + """Filter by the object’s `prefix` field.""" + prefix: StringFilter + + """Filter by the object’s `premake` field.""" + premake: IntFilter + + """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 `publicSchemaName` field.""" + publicSchemaName: StringFilter + + """Filter by the object’s `retention` field.""" + retention: StringFilter + + """Filter by the object’s `schemaId` field.""" + schemaId: UUIDFilter + + """Filter by the object’s `scope` field.""" + scope: StringFilter +} + +"""An input for mutations affecting `MachineModule`""" +input MachineModuleInput { + apiName: String + databaseId: UUID! + defaultCapabilities: [String] + entityField: String + entityTableId: UUID + id: UUID + machineMessagesTableId: UUID + machineMessagesTableName: String + machineSessionsTableId: UUID + machineSessionsTableName: String + machinesTableId: UUID + machinesTableName: String + partitionInterval: String + policies: JSON + prefix: String + premake: Int + privateApiName: String + privateSchemaId: UUID + privateSchemaName: String + provisions: JSON + publicSchemaName: String + retention: String + schemaId: UUID + scope: String! +} + +"""Methods to use when ordering `MachineModule`.""" +enum MachineModuleOrderBy { + API_NAME_ASC + API_NAME_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + DEFAULT_CAPABILITIES_ASC + DEFAULT_CAPABILITIES_DESC + ENTITY_FIELD_ASC + ENTITY_FIELD_DESC + ENTITY_TABLE_ID_ASC + ENTITY_TABLE_ID_DESC + ID_ASC + ID_DESC + MACHINES_TABLE_ID_ASC + MACHINES_TABLE_ID_DESC + MACHINES_TABLE_NAME_ASC + MACHINES_TABLE_NAME_DESC + MACHINE_MESSAGES_TABLE_ID_ASC + MACHINE_MESSAGES_TABLE_ID_DESC + MACHINE_MESSAGES_TABLE_NAME_ASC + MACHINE_MESSAGES_TABLE_NAME_DESC + MACHINE_SESSIONS_TABLE_ID_ASC + MACHINE_SESSIONS_TABLE_ID_DESC + MACHINE_SESSIONS_TABLE_NAME_ASC + MACHINE_SESSIONS_TABLE_NAME_DESC + NATURAL + PARTITION_INTERVAL_ASC + PARTITION_INTERVAL_DESC + POLICIES_ASC + POLICIES_DESC + PREFIX_ASC + PREFIX_DESC + PREMAKE_ASC + PREMAKE_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_NAME_ASC + PUBLIC_SCHEMA_NAME_DESC + RETENTION_ASC + RETENTION_DESC + SCHEMA_ID_ASC + SCHEMA_ID_DESC + SCOPE_ASC + SCOPE_DESC +} + +""" +Represents an update to a `MachineModule`. Fields that are set will be updated. +""" +input MachineModulePatch { + apiName: String + databaseId: UUID + defaultCapabilities: [String] + entityField: String + entityTableId: UUID + id: UUID + machineMessagesTableId: UUID + machineMessagesTableName: String + machineSessionsTableId: UUID + machineSessionsTableName: String + machinesTableId: UUID + machinesTableName: String + partitionInterval: String + policies: JSON + prefix: String + premake: Int + privateApiName: String + privateSchemaId: UUID + privateSchemaName: String + provisions: JSON + publicSchemaName: String + retention: String + schemaId: UUID + scope: String +} + type MembershipTypesModule { databaseId: UUID! id: UUID! @@ -19371,6 +20753,7 @@ type MerkleStoreModule { where: DbPresetModuleFilter ): DbPresetModuleConnection! entityField: String + entityTableId: UUID functionPrefix: String """Reads and enables pagination through a set of `GraphModule`.""" @@ -19402,6 +20785,35 @@ type MerkleStoreModule { where: GraphModuleFilter ): GraphModuleConnection! id: UUID! + + """Reads and enables pagination through a set of `K8sAdmissionModule`.""" + k8sAdmissionModules( + """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 `K8sAdmissionModule`.""" + orderBy: [K8sAdmissionModuleOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: K8sAdmissionModuleFilter + ): K8sAdmissionModuleConnection! objectTableId: UUID! """Reads and enables pagination through a set of `PagesModule`.""" @@ -19537,6 +20949,9 @@ input MerkleStoreModuleFilter { """Filter by the object’s `entityField` field.""" entityField: StringFilter + """Filter by the object’s `entityTableId` field.""" + entityTableId: UUIDFilter + """Filter by the object’s `functionPrefix` field.""" functionPrefix: StringFilter @@ -19549,6 +20964,12 @@ input MerkleStoreModuleFilter { """Filter by the object’s `id` field.""" id: UUIDFilter + """Filter by the object’s `k8sAdmissionModules` relation.""" + k8sAdmissionModules: MerkleStoreModuleToManyK8sAdmissionModuleFilter + + """`k8sAdmissionModules` exist.""" + k8sAdmissionModulesExist: Boolean + """Negates the expression.""" not: MerkleStoreModuleFilter @@ -19606,6 +21027,7 @@ input MerkleStoreModuleInput { createdAt: Datetime databaseId: UUID! entityField: String + entityTableId: UUID functionPrefix: String id: UUID objectTableId: UUID @@ -19634,6 +21056,8 @@ enum MerkleStoreModuleOrderBy { DATABASE_ID_DESC ENTITY_FIELD_ASC ENTITY_FIELD_DESC + ENTITY_TABLE_ID_ASC + ENTITY_TABLE_ID_DESC FUNCTION_PREFIX_ASC FUNCTION_PREFIX_DESC ID_ASC @@ -19673,6 +21097,7 @@ input MerkleStoreModulePatch { createdAt: Datetime databaseId: UUID entityField: String + entityTableId: UUID functionPrefix: String id: UUID objectTableId: UUID @@ -19729,6 +21154,20 @@ input MerkleStoreModuleToManyGraphModuleFilter { some: GraphModuleFilter } +""" +A filter to be used against many `K8sAdmissionModule` object types. All fields are combined with a logical ‘and.’ +""" +input MerkleStoreModuleToManyK8sAdmissionModuleFilter { + """Filters to entities where every related entity matches.""" + every: K8sAdmissionModuleFilter + + """Filters to entities where no related entity matches.""" + none: K8sAdmissionModuleFilter + + """Filters to entities where at least one related entity matches.""" + some: K8sAdmissionModuleFilter +} + """ A filter to be used against many `PagesModule` object types. All fields are combined with a logical ‘and.’ """ @@ -20004,11 +21443,57 @@ type MetaSearchConfig { """Storage metadata for a table""" type MetaStorage { + """GraphQL type name of the plane's buckets table""" + bucketsType: String! + + """ + Computed download-URL field on the files type; null on the buckets side + """ + downloadUrlField: String + + """GraphQL type name of the plane's files table""" + filesType: String! + """Whether this table is a storage buckets table""" isBucketsTable: Boolean! """Whether this table is a storage files table""" isFilesTable: Boolean! + + """The plane's GraphQL upload surface""" + upload: MetaStorageUpload! +} + +""" +The GraphQL upload surface of a storage plane, derived from the registry facts the presigned-url plugin emits from +""" +type MetaStorageUpload { + """Per-file input type inside the bulk input""" + bulkFileInputType: String! + + """Per-file payload type inside the bulk payload""" + bulkFilePayloadType: String! + + """Input type of the bulk upload mutation""" + bulkInputType: String! + + """Root mutation field for bulk upload""" + bulkMutation: String! + + """Payload type of the bulk upload mutation""" + bulkPayloadType: String! + + """Input type of the single upload mutation""" + inputType: String! + + """Root mutation field for single-file upload (e.g. uploadAppFile)""" + mutation: String! + + """Payload type of the single upload mutation""" + payloadType: String! + + """Whether the upload input requires ownerId (entity-keyed plane)""" + requiresOwnerId: Boolean! } """Information about a database table""" @@ -20069,7 +21554,7 @@ The root mutation type which contains root level fields which mutate data. """ type 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. + 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). A table entry either names its table (table_name plus optional schema_name) or references one an installed module generated ("module": {"type": "agent", "scope": "org", "table": "message"}), which resolves through the module row's recorded table ids and raises when it matches nothing instead of creating an empty table. After provisioning, optional smart_tags (jsonb object) on the table entry are applied via metaschema.append_table_smart_tags(), and optional smart_tags on individual field entries are applied via metaschema.append_field_smart_tags(). (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] — resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID on success, NULL on failure. """ constructBlueprint( """ @@ -20168,21 +21653,21 @@ type Mutation { input: CreateCatalogModuleInput! ): CreateCatalogModulePayload - """Creates a single `ComputeLogModule`.""" - createComputeLogModule( + """Creates a single `ClusterModule`.""" + createClusterModule( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateComputeLogModuleInput! - ): CreateComputeLogModulePayload + input: CreateClusterModuleInput! + ): CreateClusterModulePayload - """Creates a single `ConfigSecretsUserModule`.""" - createConfigSecretsUserModule( + """Creates a single `ComputeLogModule`.""" + createComputeLogModule( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateConfigSecretsUserModuleInput! - ): CreateConfigSecretsUserModulePayload + input: CreateComputeLogModuleInput! + ): CreateComputeLogModulePayload """Creates a single `ConnectedAccountsModule`.""" createConnectedAccountsModule( @@ -20392,14 +21877,6 @@ type Mutation { input: CreateHierarchyModuleInput! ): CreateHierarchyModulePayload - """Creates a single `HttpRouteModule`.""" - createHttpRouteModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateHttpRouteModuleInput! - ): CreateHttpRouteModulePayload - """Creates a single `I18NModule`.""" createI18NModule( """ @@ -20416,6 +21893,14 @@ type Mutation { input: CreateIdentityProvidersModuleInput! ): CreateIdentityProvidersModulePayload + """Creates a single `ImageModule`.""" + createImageModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateImageModuleInput! + ): CreateImageModulePayload + """Creates a single `InferenceLogModule`.""" createInferenceLogModule( """ @@ -20448,6 +21933,14 @@ type Mutation { input: CreateIntegrationProvidersModuleInput! ): CreateIntegrationProvidersModulePayload + """Creates a single `InternalConfigModule`.""" + createInternalConfigModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateInternalConfigModuleInput! + ): CreateInternalConfigModulePayload + """Creates a single `InternalSecretsModule`.""" createInternalSecretsModule( """ @@ -20464,6 +21957,14 @@ type Mutation { input: CreateInvitesModuleInput! ): CreateInvitesModulePayload + """Creates a single `K8sAdmissionModule`.""" + createK8sAdmissionModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateK8sAdmissionModuleInput! + ): CreateK8sAdmissionModulePayload + """Creates a single `LimitsModule`.""" createLimitsModule( """ @@ -20472,6 +21973,14 @@ type Mutation { input: CreateLimitsModuleInput! ): CreateLimitsModulePayload + """Creates a single `MachineModule`.""" + createMachineModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateMachineModuleInput! + ): CreateMachineModulePayload + """Creates a single `MembershipTypesModule`.""" createMembershipTypesModule( """ @@ -20584,6 +22093,14 @@ type Mutation { input: CreateRealtimeModuleInput! ): CreateRealtimeModulePayload + """Creates a single `RefusalLogModule`.""" + createRefusalLogModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateRefusalLogModuleInput! + ): CreateRefusalLogModulePayload + """Creates a single `RelationProvision`.""" createRelationProvision( """ @@ -20592,6 +22109,14 @@ type Mutation { input: CreateRelationProvisionInput! ): CreateRelationProvisionPayload + """Creates a single `RepositoryModule`.""" + createRepositoryModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateRepositoryModuleInput! + ): CreateRepositoryModulePayload + """Creates a single `ResourceModule`.""" createResourceModule( """ @@ -20832,21 +22357,21 @@ type Mutation { input: DeleteCatalogModuleInput! ): DeleteCatalogModulePayload - """Deletes a single `ComputeLogModule` using a unique key.""" - deleteComputeLogModule( + """Deletes a single `ClusterModule` using a unique key.""" + deleteClusterModule( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteComputeLogModuleInput! - ): DeleteComputeLogModulePayload + input: DeleteClusterModuleInput! + ): DeleteClusterModulePayload - """Deletes a single `ConfigSecretsUserModule` using a unique key.""" - deleteConfigSecretsUserModule( + """Deletes a single `ComputeLogModule` using a unique key.""" + deleteComputeLogModule( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteConfigSecretsUserModuleInput! - ): DeleteConfigSecretsUserModulePayload + input: DeleteComputeLogModuleInput! + ): DeleteComputeLogModulePayload """Deletes a single `ConnectedAccountsModule` using a unique key.""" deleteConnectedAccountsModule( @@ -21056,14 +22581,6 @@ type Mutation { input: DeleteHierarchyModuleInput! ): DeleteHierarchyModulePayload - """Deletes a single `HttpRouteModule` using a unique key.""" - deleteHttpRouteModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteHttpRouteModuleInput! - ): DeleteHttpRouteModulePayload - """Deletes a single `I18NModule` using a unique key.""" deleteI18NModule( """ @@ -21080,6 +22597,14 @@ type Mutation { input: DeleteIdentityProvidersModuleInput! ): DeleteIdentityProvidersModulePayload + """Deletes a single `ImageModule` using a unique key.""" + deleteImageModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteImageModuleInput! + ): DeleteImageModulePayload + """Deletes a single `InferenceLogModule` using a unique key.""" deleteInferenceLogModule( """ @@ -21112,6 +22637,14 @@ type Mutation { input: DeleteIntegrationProvidersModuleInput! ): DeleteIntegrationProvidersModulePayload + """Deletes a single `InternalConfigModule` using a unique key.""" + deleteInternalConfigModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteInternalConfigModuleInput! + ): DeleteInternalConfigModulePayload + """Deletes a single `InternalSecretsModule` using a unique key.""" deleteInternalSecretsModule( """ @@ -21128,6 +22661,14 @@ type Mutation { input: DeleteInvitesModuleInput! ): DeleteInvitesModulePayload + """Deletes a single `K8sAdmissionModule` using a unique key.""" + deleteK8sAdmissionModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteK8sAdmissionModuleInput! + ): DeleteK8sAdmissionModulePayload + """Deletes a single `LimitsModule` using a unique key.""" deleteLimitsModule( """ @@ -21136,6 +22677,14 @@ type Mutation { input: DeleteLimitsModuleInput! ): DeleteLimitsModulePayload + """Deletes a single `MachineModule` using a unique key.""" + deleteMachineModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteMachineModuleInput! + ): DeleteMachineModulePayload + """Deletes a single `MembershipTypesModule` using a unique key.""" deleteMembershipTypesModule( """ @@ -21248,6 +22797,14 @@ type Mutation { input: DeleteRealtimeModuleInput! ): DeleteRealtimeModulePayload + """Deletes a single `RefusalLogModule` using a unique key.""" + deleteRefusalLogModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteRefusalLogModuleInput! + ): DeleteRefusalLogModulePayload + """Deletes a single `RelationProvision` using a unique key.""" deleteRelationProvision( """ @@ -21256,6 +22813,14 @@ type Mutation { input: DeleteRelationProvisionInput! ): DeleteRelationProvisionPayload + """Deletes a single `RepositoryModule` using a unique key.""" + deleteRepositoryModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteRepositoryModuleInput! + ): DeleteRepositoryModulePayload + """Deletes a single `ResourceModule` using a unique key.""" deleteResourceModule( """ @@ -21417,10 +22982,11 @@ type Mutation { ): DeleteWebhookModulePayload """ - 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. + Reconcile an S3 bucket for a logical bucket in the database. + Reads the bucket config via RLS, then enqueues the same + storage:provision_bucket job used by the INSERT trigger. This is + idempotent for an already-reconciled bucket; enqueue failures become + GraphQL errors. """ provisionBucket( """ @@ -21513,23 +23079,21 @@ type Mutation { input: UpdateCatalogModuleInput! ): UpdateCatalogModulePayload - """Updates a single `ComputeLogModule` using a unique key and a patch.""" - updateComputeLogModule( + """Updates a single `ClusterModule` using a unique key and a patch.""" + updateClusterModule( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateComputeLogModuleInput! - ): UpdateComputeLogModulePayload + input: UpdateClusterModuleInput! + ): UpdateClusterModulePayload - """ - Updates a single `ConfigSecretsUserModule` using a unique key and a patch. - """ - updateConfigSecretsUserModule( + """Updates a single `ComputeLogModule` using a unique key and a patch.""" + updateComputeLogModule( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateConfigSecretsUserModuleInput! - ): UpdateConfigSecretsUserModulePayload + input: UpdateComputeLogModuleInput! + ): UpdateComputeLogModulePayload """ Updates a single `ConnectedAccountsModule` using a unique key and a patch. @@ -21757,14 +23321,6 @@ type Mutation { input: UpdateHierarchyModuleInput! ): UpdateHierarchyModulePayload - """Updates a single `HttpRouteModule` using a unique key and a patch.""" - updateHttpRouteModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateHttpRouteModuleInput! - ): UpdateHttpRouteModulePayload - """Updates a single `I18NModule` using a unique key and a patch.""" updateI18NModule( """ @@ -21783,6 +23339,14 @@ type Mutation { input: UpdateIdentityProvidersModuleInput! ): UpdateIdentityProvidersModulePayload + """Updates a single `ImageModule` using a unique key and a patch.""" + updateImageModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateImageModuleInput! + ): UpdateImageModulePayload + """Updates a single `InferenceLogModule` using a unique key and a patch.""" updateInferenceLogModule( """ @@ -21817,6 +23381,16 @@ type Mutation { input: UpdateIntegrationProvidersModuleInput! ): UpdateIntegrationProvidersModulePayload + """ + Updates a single `InternalConfigModule` using a unique key and a patch. + """ + updateInternalConfigModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateInternalConfigModuleInput! + ): UpdateInternalConfigModulePayload + """ Updates a single `InternalSecretsModule` using a unique key and a patch. """ @@ -21835,6 +23409,14 @@ type Mutation { input: UpdateInvitesModuleInput! ): UpdateInvitesModulePayload + """Updates a single `K8sAdmissionModule` using a unique key and a patch.""" + updateK8sAdmissionModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateK8sAdmissionModuleInput! + ): UpdateK8sAdmissionModulePayload + """Updates a single `LimitsModule` using a unique key and a patch.""" updateLimitsModule( """ @@ -21843,6 +23425,14 @@ type Mutation { input: UpdateLimitsModuleInput! ): UpdateLimitsModulePayload + """Updates a single `MachineModule` using a unique key and a patch.""" + updateMachineModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateMachineModuleInput! + ): UpdateMachineModulePayload + """ Updates a single `MembershipTypesModule` using a unique key and a patch. """ @@ -21959,6 +23549,14 @@ type Mutation { input: UpdateRealtimeModuleInput! ): UpdateRealtimeModulePayload + """Updates a single `RefusalLogModule` using a unique key and a patch.""" + updateRefusalLogModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateRefusalLogModuleInput! + ): UpdateRefusalLogModulePayload + """Updates a single `RelationProvision` using a unique key and a patch.""" updateRelationProvision( """ @@ -21967,6 +23565,14 @@ type Mutation { input: UpdateRelationProvisionInput! ): UpdateRelationProvisionPayload + """Updates a single `RepositoryModule` using a unique key and a patch.""" + updateRepositoryModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateRepositoryModuleInput! + ): UpdateRepositoryModulePayload + """Updates a single `ResourceModule` using a unique key and a patch.""" updateResourceModule( """ @@ -22951,12 +24557,17 @@ type PagesModule { pagesTableId: UUID! policies: JSON prefix: String! + previewCommitFunctionName: String + previewSetFunctionName: String + previewTokenMintFunctionName: String + previewTokenVerifierFunctionName: String privateApiName: String privateSchemaId: UUID! privateSchemaName: String provisions: JSON publicSchemaId: UUID! publicSchemaName: String + releaseManifestFunctionName: String scope: String! """ @@ -23037,6 +24648,18 @@ input PagesModuleFilter { """Filter by the object’s `prefix` field.""" prefix: StringFilter + """Filter by the object’s `previewCommitFunctionName` field.""" + previewCommitFunctionName: StringFilter + + """Filter by the object’s `previewSetFunctionName` field.""" + previewSetFunctionName: StringFilter + + """Filter by the object’s `previewTokenMintFunctionName` field.""" + previewTokenMintFunctionName: StringFilter + + """Filter by the object’s `previewTokenVerifierFunctionName` field.""" + previewTokenVerifierFunctionName: StringFilter + """Filter by the object’s `privateApiName` field.""" privateApiName: StringFilter @@ -23055,6 +24678,9 @@ input PagesModuleFilter { """Filter by the object’s `publicSchemaName` field.""" publicSchemaName: StringFilter + """Filter by the object’s `releaseManifestFunctionName` field.""" + releaseManifestFunctionName: StringFilter + """Filter by the object’s `scope` field.""" scope: StringFilter @@ -23085,12 +24711,17 @@ input PagesModuleInput { pagesTableId: UUID policies: JSON prefix: String! + previewCommitFunctionName: String + previewSetFunctionName: String + previewTokenMintFunctionName: String + previewTokenVerifierFunctionName: String privateApiName: String privateSchemaId: UUID privateSchemaName: String provisions: JSON publicSchemaId: UUID publicSchemaName: String + releaseManifestFunctionName: String scope: String! siteSurfaceModuleId: UUID sitesTableId: UUID @@ -23118,6 +24749,14 @@ enum PagesModuleOrderBy { POLICIES_DESC PREFIX_ASC PREFIX_DESC + PREVIEW_COMMIT_FUNCTION_NAME_ASC + PREVIEW_COMMIT_FUNCTION_NAME_DESC + PREVIEW_SET_FUNCTION_NAME_ASC + PREVIEW_SET_FUNCTION_NAME_DESC + PREVIEW_TOKEN_MINT_FUNCTION_NAME_ASC + PREVIEW_TOKEN_MINT_FUNCTION_NAME_DESC + PREVIEW_TOKEN_VERIFIER_FUNCTION_NAME_ASC + PREVIEW_TOKEN_VERIFIER_FUNCTION_NAME_DESC PRIMARY_KEY_ASC PRIMARY_KEY_DESC PRIVATE_API_NAME_ASC @@ -23132,6 +24771,8 @@ enum PagesModuleOrderBy { PUBLIC_SCHEMA_ID_DESC PUBLIC_SCHEMA_NAME_ASC PUBLIC_SCHEMA_NAME_DESC + RELEASE_MANIFEST_FUNCTION_NAME_ASC + RELEASE_MANIFEST_FUNCTION_NAME_DESC SCOPE_ASC SCOPE_DESC SITES_TABLE_ID_ASC @@ -23155,12 +24796,17 @@ input PagesModulePatch { pagesTableId: UUID policies: JSON prefix: String + previewCommitFunctionName: String + previewSetFunctionName: String + previewTokenMintFunctionName: String + previewTokenVerifierFunctionName: String privateApiName: String privateSchemaId: UUID privateSchemaName: String provisions: JSON publicSchemaId: UUID publicSchemaName: String + releaseManifestFunctionName: String scope: String siteSurfaceModuleId: UUID sitesTableId: UUID @@ -23546,10 +25192,12 @@ type PrincipalAuthModule { principalScopeOverridesTableId: UUID! principalsTableId: UUID! principalsTableName: String! + privateSchemaId: UUID! revokeOrgApiKeyFunction: String! schemaId: UUID! sessionCredentialsTableId: UUID! sessionsTableId: UUID! + sweepExpiredPrincipalsFunction: String! usersTableId: UUID! } @@ -23633,6 +25281,9 @@ input PrincipalAuthModuleFilter { """Filter by the object’s `principalsTableName` field.""" principalsTableName: StringFilter + """Filter by the object’s `privateSchemaId` field.""" + privateSchemaId: UUIDFilter + """Filter by the object’s `revokeOrgApiKeyFunction` field.""" revokeOrgApiKeyFunction: StringFilter @@ -23645,6 +25296,9 @@ input PrincipalAuthModuleFilter { """Filter by the object’s `sessionsTableId` field.""" sessionsTableId: UUIDFilter + """Filter by the object’s `sweepExpiredPrincipalsFunction` field.""" + sweepExpiredPrincipalsFunction: StringFilter + """Filter by the object’s `usersTableId` field.""" usersTableId: UUIDFilter } @@ -23664,10 +25318,12 @@ input PrincipalAuthModuleInput { principalScopeOverridesTableId: UUID principalsTableId: UUID principalsTableName: String + privateSchemaId: UUID revokeOrgApiKeyFunction: String schemaId: UUID sessionCredentialsTableId: UUID sessionsTableId: UUID + sweepExpiredPrincipalsFunction: String usersTableId: UUID } @@ -23702,6 +25358,8 @@ enum PrincipalAuthModuleOrderBy { PRINCIPAL_ENTITIES_TABLE_ID_DESC PRINCIPAL_SCOPE_OVERRIDES_TABLE_ID_ASC PRINCIPAL_SCOPE_OVERRIDES_TABLE_ID_DESC + PRIVATE_SCHEMA_ID_ASC + PRIVATE_SCHEMA_ID_DESC REVOKE_ORG_API_KEY_FUNCTION_ASC REVOKE_ORG_API_KEY_FUNCTION_DESC SCHEMA_ID_ASC @@ -23710,6 +25368,8 @@ enum PrincipalAuthModuleOrderBy { SESSIONS_TABLE_ID_DESC SESSION_CREDENTIALS_TABLE_ID_ASC SESSION_CREDENTIALS_TABLE_ID_DESC + SWEEP_EXPIRED_PRINCIPALS_FUNCTION_ASC + SWEEP_EXPIRED_PRINCIPALS_FUNCTION_DESC USERS_TABLE_ID_ASC USERS_TABLE_ID_DESC } @@ -23731,10 +25391,12 @@ input PrincipalAuthModulePatch { principalScopeOverridesTableId: UUID principalsTableId: UUID principalsTableName: String + privateSchemaId: UUID revokeOrgApiKeyFunction: String schemaId: UUID sessionCredentialsTableId: UUID sessionsTableId: UUID + sweepExpiredPrincipalsFunction: String usersTableId: UUID } @@ -24026,23 +25688,17 @@ input ProvisionBucketInput { } type 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 - - """Error message if provisioning failed""" - error: String + """The logical bucket row that was queued for reconciliation.""" + bucketId: UUID! + bucketKey: String! - """The storage provider used""" - provider: String! + """The reconciler job enqueued to provision this bucket.""" + jobId: UUID! - """Whether provisioning succeeded""" - success: Boolean! + """ + The physical bucket name already recorded, or null when reconciliation has not completed. + """ + physicalName: String } """The root query type which gives access points into the data universe.""" @@ -24342,8 +25998,8 @@ type Query { where: CatalogModuleFilter ): CatalogModuleConnection - """Reads and enables pagination through a set of `ComputeLogModule`.""" - computeLogModules( + """Reads and enables pagination through a set of `ClusterModule`.""" + clusterModules( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -24362,19 +26018,17 @@ type Query { """ offset: Int - """The method to use when ordering `ComputeLogModule`.""" - orderBy: [ComputeLogModuleOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `ClusterModule`.""" + orderBy: [ClusterModuleOrderBy!] = [PRIMARY_KEY_ASC] """ A filter to be used in determining which values should be returned by the collection. """ - where: ComputeLogModuleFilter - ): ComputeLogModuleConnection + where: ClusterModuleFilter + ): ClusterModuleConnection - """ - Reads and enables pagination through a set of `ConfigSecretsUserModule`. - """ - configSecretsUserModules( + """Reads and enables pagination through a set of `ComputeLogModule`.""" + computeLogModules( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -24393,14 +26047,14 @@ type Query { """ offset: Int - """The method to use when ordering `ConfigSecretsUserModule`.""" - orderBy: [ConfigSecretsUserModuleOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `ComputeLogModule`.""" + orderBy: [ComputeLogModuleOrderBy!] = [PRIMARY_KEY_ASC] """ A filter to be used in determining which values should be returned by the collection. """ - where: ConfigSecretsUserModuleFilter - ): ConfigSecretsUserModuleConnection + where: ComputeLogModuleFilter + ): ComputeLogModuleConnection """ Reads and enables pagination through a set of `ConnectedAccountsModule`. @@ -25168,8 +26822,8 @@ type Query { where: HierarchyModuleFilter ): HierarchyModuleConnection - """Reads and enables pagination through a set of `HttpRouteModule`.""" - httpRouteModules( + """Reads and enables pagination through a set of `I18NModule`.""" + i18nModules( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -25188,17 +26842,19 @@ type Query { """ offset: Int - """The method to use when ordering `HttpRouteModule`.""" - orderBy: [HttpRouteModuleOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `I18NModule`.""" + orderBy: [I18NModuleOrderBy!] = [PRIMARY_KEY_ASC] """ A filter to be used in determining which values should be returned by the collection. """ - where: HttpRouteModuleFilter - ): HttpRouteModuleConnection + where: I18NModuleFilter + ): I18NModuleConnection - """Reads and enables pagination through a set of `I18NModule`.""" - i18nModules( + """ + Reads and enables pagination through a set of `IdentityProvidersModule`. + """ + identityProvidersModules( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -25217,19 +26873,17 @@ type Query { """ offset: Int - """The method to use when ordering `I18NModule`.""" - orderBy: [I18NModuleOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `IdentityProvidersModule`.""" + orderBy: [IdentityProvidersModuleOrderBy!] = [PRIMARY_KEY_ASC] """ A filter to be used in determining which values should be returned by the collection. """ - where: I18NModuleFilter - ): I18NModuleConnection + where: IdentityProvidersModuleFilter + ): IdentityProvidersModuleConnection - """ - Reads and enables pagination through a set of `IdentityProvidersModule`. - """ - identityProvidersModules( + """Reads and enables pagination through a set of `ImageModule`.""" + imageModules( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -25248,14 +26902,14 @@ type Query { """ offset: Int - """The method to use when ordering `IdentityProvidersModule`.""" - orderBy: [IdentityProvidersModuleOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `ImageModule`.""" + orderBy: [ImageModuleOrderBy!] = [PRIMARY_KEY_ASC] """ A filter to be used in determining which values should be returned by the collection. """ - where: IdentityProvidersModuleFilter - ): IdentityProvidersModuleConnection + where: ImageModuleFilter + ): ImageModuleConnection """Reads and enables pagination through a set of `InferenceLogModule`.""" inferenceLogModules( @@ -25375,6 +27029,35 @@ type Query { where: IntegrationProvidersModuleFilter ): IntegrationProvidersModuleConnection + """Reads and enables pagination through a set of `InternalConfigModule`.""" + internalConfigModules( + """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 `InternalConfigModule`.""" + orderBy: [InternalConfigModuleOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: InternalConfigModuleFilter + ): InternalConfigModuleConnection + """Reads and enables pagination through a set of `InternalSecretsModule`.""" internalSecretsModules( """Read all values in the set after (below) this cursor.""" @@ -25433,6 +27116,35 @@ type Query { where: InvitesModuleFilter ): InvitesModuleConnection + """Reads and enables pagination through a set of `K8sAdmissionModule`.""" + k8sAdmissionModules( + """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 `K8sAdmissionModule`.""" + orderBy: [K8sAdmissionModuleOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: K8sAdmissionModuleFilter + ): K8sAdmissionModuleConnection + """Reads and enables pagination through a set of `LimitsModule`.""" limitsModules( """Read all values in the set after (below) this cursor.""" @@ -25462,6 +27174,35 @@ type Query { where: LimitsModuleFilter ): LimitsModuleConnection + """Reads and enables pagination through a set of `MachineModule`.""" + machineModules( + """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 `MachineModule`.""" + orderBy: [MachineModuleOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: MachineModuleFilter + ): MachineModuleConnection + """Reads and enables pagination through a set of `MembershipTypesModule`.""" membershipTypesModules( """Read all values in the set after (below) this cursor.""" @@ -25868,6 +27609,35 @@ type Query { where: RealtimeModuleFilter ): RealtimeModuleConnection + """Reads and enables pagination through a set of `RefusalLogModule`.""" + refusalLogModules( + """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 `RefusalLogModule`.""" + orderBy: [RefusalLogModuleOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: RefusalLogModuleFilter + ): RefusalLogModuleConnection + """Reads and enables pagination through a set of `RelationProvision`.""" relationProvisions( """Read all values in the set after (below) this cursor.""" @@ -25897,6 +27667,35 @@ type Query { where: RelationProvisionFilter ): RelationProvisionConnection + """Reads and enables pagination through a set of `RepositoryModule`.""" + repositoryModules( + """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 `RepositoryModule`.""" + orderBy: [RepositoryModuleOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: RepositoryModuleFilter + ): RepositoryModuleConnection + """Reads and enables pagination through a set of `ResourceModule`.""" resourceModules( """Read all values in the set after (below) this cursor.""" @@ -26986,6 +28785,252 @@ input RealtimeModulePatch { subscriptionsSchemaId: UUID } +type RefusalLogModule { + apiName: String + databaseId: UUID! + entityField: String + id: UUID! + logInterval: String! + logPremake: Int! + logRetention: String! + logTableId: UUID! + logTableName: String! + prefix: String! + privateApiName: String + privateSchemaId: UUID! + privateSchemaName: String + publicSchemaName: String + recordRefusalsFunction: String! + rollupRefusalUsageSummaryFunction: String! + schemaId: UUID! + scope: String! + summaryInterval: String! + summaryPremake: Int! + summaryRetention: String! + summaryTableId: UUID! + summaryTableName: String! +} + +"""A connection to a list of `RefusalLogModule` values.""" +type RefusalLogModuleConnection { + """ + A list of edges which contains the `RefusalLogModule` and cursor to aid in pagination. + """ + edges: [RefusalLogModuleEdge]! + + """A list of `RefusalLogModule` objects.""" + nodes: [RefusalLogModule]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `RefusalLogModule` you could get from the connection. + """ + totalCount: Int! +} + +"""A `RefusalLogModule` edge in the connection.""" +type RefusalLogModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `RefusalLogModule` at the end of the edge.""" + node: RefusalLogModule +} + +""" +A filter to be used against `RefusalLogModule` object types. All fields are combined with a logical ‘and.’ +""" +input RefusalLogModuleFilter { + """Checks for all expressions in this list.""" + and: [RefusalLogModuleFilter!] + + """Filter by the object’s `apiName` field.""" + apiName: StringFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `entityField` field.""" + entityField: StringFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `logInterval` field.""" + logInterval: StringFilter + + """Filter by the object’s `logPremake` field.""" + logPremake: IntFilter + + """Filter by the object’s `logRetention` field.""" + logRetention: StringFilter + + """Filter by the object’s `logTableId` field.""" + logTableId: UUIDFilter + + """Filter by the object’s `logTableName` field.""" + logTableName: StringFilter + + """Negates the expression.""" + not: RefusalLogModuleFilter + + """Checks for any expressions in this list.""" + or: [RefusalLogModuleFilter!] + + """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 `recordRefusalsFunction` field.""" + recordRefusalsFunction: StringFilter + + """Filter by the object’s `rollupRefusalUsageSummaryFunction` field.""" + rollupRefusalUsageSummaryFunction: StringFilter + + """Filter by the object’s `schemaId` field.""" + schemaId: UUIDFilter + + """Filter by the object’s `scope` field.""" + scope: StringFilter + + """Filter by the object’s `summaryInterval` field.""" + summaryInterval: StringFilter + + """Filter by the object’s `summaryPremake` field.""" + summaryPremake: IntFilter + + """Filter by the object’s `summaryRetention` field.""" + summaryRetention: StringFilter + + """Filter by the object’s `summaryTableId` field.""" + summaryTableId: UUIDFilter + + """Filter by the object’s `summaryTableName` field.""" + summaryTableName: StringFilter +} + +"""An input for mutations affecting `RefusalLogModule`""" +input RefusalLogModuleInput { + apiName: String + databaseId: UUID! + entityField: String + id: UUID + logInterval: String + logPremake: Int + logRetention: String + logTableId: UUID + logTableName: String + prefix: String + privateApiName: String + privateSchemaId: UUID + privateSchemaName: String + publicSchemaName: String + recordRefusalsFunction: String + rollupRefusalUsageSummaryFunction: String + schemaId: UUID + scope: String! + summaryInterval: String + summaryPremake: Int + summaryRetention: String + summaryTableId: UUID + summaryTableName: String +} + +"""Methods to use when ordering `RefusalLogModule`.""" +enum RefusalLogModuleOrderBy { + API_NAME_ASC + API_NAME_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + ENTITY_FIELD_ASC + ENTITY_FIELD_DESC + ID_ASC + ID_DESC + LOG_INTERVAL_ASC + LOG_INTERVAL_DESC + LOG_PREMAKE_ASC + LOG_PREMAKE_DESC + LOG_RETENTION_ASC + LOG_RETENTION_DESC + LOG_TABLE_ID_ASC + LOG_TABLE_ID_DESC + LOG_TABLE_NAME_ASC + LOG_TABLE_NAME_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 + RECORD_REFUSALS_FUNCTION_ASC + RECORD_REFUSALS_FUNCTION_DESC + ROLLUP_REFUSAL_USAGE_SUMMARY_FUNCTION_ASC + ROLLUP_REFUSAL_USAGE_SUMMARY_FUNCTION_DESC + SCHEMA_ID_ASC + SCHEMA_ID_DESC + SCOPE_ASC + SCOPE_DESC + SUMMARY_INTERVAL_ASC + SUMMARY_INTERVAL_DESC + SUMMARY_PREMAKE_ASC + SUMMARY_PREMAKE_DESC + SUMMARY_RETENTION_ASC + SUMMARY_RETENTION_DESC + SUMMARY_TABLE_ID_ASC + SUMMARY_TABLE_ID_DESC + SUMMARY_TABLE_NAME_ASC + SUMMARY_TABLE_NAME_DESC +} + +""" +Represents an update to a `RefusalLogModule`. Fields that are set will be updated. +""" +input RefusalLogModulePatch { + apiName: String + databaseId: UUID + entityField: String + id: UUID + logInterval: String + logPremake: Int + logRetention: String + logTableId: UUID + logTableName: String + prefix: String + privateApiName: String + privateSchemaId: UUID + privateSchemaName: String + publicSchemaName: String + recordRefusalsFunction: String + rollupRefusalUsageSummaryFunction: String + schemaId: UUID + scope: String + summaryInterval: String + summaryPremake: Int + summaryRetention: String + summaryTableId: UUID + summaryTableName: String +} + """ Provisions relational structure between tables. Supports four relation types: - RelationBelongsTo: adds a FK field on the source table referencing the target table (child perspective: "tasks belongs to projects" -> tasks.project_id). @@ -27676,41 +29721,396 @@ input RelationProvisionPatch { useCompositeKey: Boolean } -type ResourceModule { +type RepositoryModule { apiName: String + buildStepsTableId: UUID! + buildStepsTableName: String! + buildsTableId: UUID! + buildsTableName: String! databaseId: UUID! defaultCapabilities: [String] entityField: String entityTableId: UUID + hasAttachments: Boolean! + hasBuilds: Boolean! + id: UUID! + policies: JSON + prefix: String! + privateApiName: String + privateSchemaId: UUID! + privateSchemaName: String + proposalCommentsTableId: UUID! + proposalCommentsTableName: String! + proposalFileViewsTableId: UUID! + proposalFileViewsTableName: String! + proposalReactionsTableId: UUID! + proposalReactionsTableName: String! + proposalReviewsTableId: UUID! + proposalReviewsTableName: String! + proposalsTableId: UUID! + proposalsTableName: String! + provisions: JSON + publicSchemaName: String + repositoriesTableId: UUID! + repositoriesTableName: String! + repositoryEventsTableId: UUID! + repositoryEventsTableName: String! + repositoryRequiredChecksTableId: UUID! + repositoryRequiredChecksTableName: String! + schemaId: UUID! + scope: String! + search: JSON + workflowsTableId: UUID! + workflowsTableName: String! +} - """Reads and enables pagination through a set of `HttpRouteModule`.""" - httpRouteModules( - """Read all values in the set after (below) this cursor.""" - after: Cursor +"""A connection to a list of `RepositoryModule` values.""" +type RepositoryModuleConnection { + """ + A list of edges which contains the `RepositoryModule` and cursor to aid in pagination. + """ + edges: [RepositoryModuleEdge]! - """Read all values in the set before (above) this cursor.""" - before: Cursor + """A list of `RepositoryModule` objects.""" + nodes: [RepositoryModule]! - """Only read the first `n` values of the set.""" - first: Int + """Information to aid in pagination.""" + pageInfo: PageInfo! - """Only read the last `n` values of the set.""" - last: Int + """ + The count of *all* `RepositoryModule` you could get from the connection. + """ + totalCount: Int! +} - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int +"""A `RepositoryModule` edge in the connection.""" +type RepositoryModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor - """The method to use when ordering `HttpRouteModule`.""" - orderBy: [HttpRouteModuleOrderBy!] = [PRIMARY_KEY_ASC] + """The `RepositoryModule` at the end of the edge.""" + node: RepositoryModule +} - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: HttpRouteModuleFilter - ): HttpRouteModuleConnection! +""" +A filter to be used against `RepositoryModule` object types. All fields are combined with a logical ‘and.’ +""" +input RepositoryModuleFilter { + """Checks for all expressions in this list.""" + and: [RepositoryModuleFilter!] + + """Filter by the object’s `apiName` field.""" + apiName: StringFilter + + """Filter by the object’s `buildStepsTableId` field.""" + buildStepsTableId: UUIDFilter + + """Filter by the object’s `buildStepsTableName` field.""" + buildStepsTableName: StringFilter + + """Filter by the object’s `buildsTableId` field.""" + buildsTableId: UUIDFilter + + """Filter by the object’s `buildsTableName` field.""" + buildsTableName: StringFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """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.""" + entityTableId: UUIDFilter + + """Filter by the object’s `hasAttachments` field.""" + hasAttachments: BooleanFilter + + """Filter by the object’s `hasBuilds` field.""" + hasBuilds: BooleanFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Negates the expression.""" + not: RepositoryModuleFilter + + """Checks for any expressions in this list.""" + or: [RepositoryModuleFilter!] + + """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 `proposalCommentsTableId` field.""" + proposalCommentsTableId: UUIDFilter + + """Filter by the object’s `proposalCommentsTableName` field.""" + proposalCommentsTableName: StringFilter + + """Filter by the object’s `proposalFileViewsTableId` field.""" + proposalFileViewsTableId: UUIDFilter + + """Filter by the object’s `proposalFileViewsTableName` field.""" + proposalFileViewsTableName: StringFilter + + """Filter by the object’s `proposalReactionsTableId` field.""" + proposalReactionsTableId: UUIDFilter + + """Filter by the object’s `proposalReactionsTableName` field.""" + proposalReactionsTableName: StringFilter + + """Filter by the object’s `proposalReviewsTableId` field.""" + proposalReviewsTableId: UUIDFilter + + """Filter by the object’s `proposalReviewsTableName` field.""" + proposalReviewsTableName: StringFilter + + """Filter by the object’s `proposalsTableId` field.""" + proposalsTableId: UUIDFilter + + """Filter by the object’s `proposalsTableName` field.""" + proposalsTableName: StringFilter + + """Filter by the object’s `provisions` field.""" + provisions: JSONFilter + + """Filter by the object’s `publicSchemaName` field.""" + publicSchemaName: StringFilter + + """Filter by the object’s `repositoriesTableId` field.""" + repositoriesTableId: UUIDFilter + + """Filter by the object’s `repositoriesTableName` field.""" + repositoriesTableName: StringFilter + + """Filter by the object’s `repositoryEventsTableId` field.""" + repositoryEventsTableId: UUIDFilter + + """Filter by the object’s `repositoryEventsTableName` field.""" + repositoryEventsTableName: StringFilter + + """Filter by the object’s `repositoryRequiredChecksTableId` field.""" + repositoryRequiredChecksTableId: UUIDFilter + + """Filter by the object’s `repositoryRequiredChecksTableName` field.""" + repositoryRequiredChecksTableName: StringFilter + + """Filter by the object’s `schemaId` field.""" + schemaId: UUIDFilter + + """Filter by the object’s `scope` field.""" + scope: StringFilter + + """Filter by the object’s `search` field.""" + search: JSONFilter + + """Filter by the object’s `workflowsTableId` field.""" + workflowsTableId: UUIDFilter + + """Filter by the object’s `workflowsTableName` field.""" + workflowsTableName: StringFilter +} + +"""An input for mutations affecting `RepositoryModule`""" +input RepositoryModuleInput { + apiName: String + buildStepsTableId: UUID + buildStepsTableName: String + buildsTableId: UUID + buildsTableName: String + databaseId: UUID! + defaultCapabilities: [String] + entityField: String + entityTableId: UUID + hasAttachments: Boolean + hasBuilds: Boolean + id: UUID + policies: JSON + prefix: String + privateApiName: String + privateSchemaId: UUID + privateSchemaName: String + proposalCommentsTableId: UUID + proposalCommentsTableName: String + proposalFileViewsTableId: UUID + proposalFileViewsTableName: String + proposalReactionsTableId: UUID + proposalReactionsTableName: String + proposalReviewsTableId: UUID + proposalReviewsTableName: String + proposalsTableId: UUID + proposalsTableName: String + provisions: JSON + publicSchemaName: String + repositoriesTableId: UUID + repositoriesTableName: String + repositoryEventsTableId: UUID + repositoryEventsTableName: String + repositoryRequiredChecksTableId: UUID + repositoryRequiredChecksTableName: String + schemaId: UUID + scope: String! + search: JSON + workflowsTableId: UUID + workflowsTableName: String +} + +"""Methods to use when ordering `RepositoryModule`.""" +enum RepositoryModuleOrderBy { + API_NAME_ASC + API_NAME_DESC + BUILDS_TABLE_ID_ASC + BUILDS_TABLE_ID_DESC + BUILDS_TABLE_NAME_ASC + BUILDS_TABLE_NAME_DESC + BUILD_STEPS_TABLE_ID_ASC + BUILD_STEPS_TABLE_ID_DESC + BUILD_STEPS_TABLE_NAME_ASC + BUILD_STEPS_TABLE_NAME_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + DEFAULT_CAPABILITIES_ASC + DEFAULT_CAPABILITIES_DESC + ENTITY_FIELD_ASC + ENTITY_FIELD_DESC + ENTITY_TABLE_ID_ASC + ENTITY_TABLE_ID_DESC + HAS_ATTACHMENTS_ASC + HAS_ATTACHMENTS_DESC + HAS_BUILDS_ASC + HAS_BUILDS_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 + PRIVATE_SCHEMA_ID_ASC + PRIVATE_SCHEMA_ID_DESC + PRIVATE_SCHEMA_NAME_ASC + PRIVATE_SCHEMA_NAME_DESC + PROPOSALS_TABLE_ID_ASC + PROPOSALS_TABLE_ID_DESC + PROPOSALS_TABLE_NAME_ASC + PROPOSALS_TABLE_NAME_DESC + PROPOSAL_COMMENTS_TABLE_ID_ASC + PROPOSAL_COMMENTS_TABLE_ID_DESC + PROPOSAL_COMMENTS_TABLE_NAME_ASC + PROPOSAL_COMMENTS_TABLE_NAME_DESC + PROPOSAL_FILE_VIEWS_TABLE_ID_ASC + PROPOSAL_FILE_VIEWS_TABLE_ID_DESC + PROPOSAL_FILE_VIEWS_TABLE_NAME_ASC + PROPOSAL_FILE_VIEWS_TABLE_NAME_DESC + PROPOSAL_REACTIONS_TABLE_ID_ASC + PROPOSAL_REACTIONS_TABLE_ID_DESC + PROPOSAL_REACTIONS_TABLE_NAME_ASC + PROPOSAL_REACTIONS_TABLE_NAME_DESC + PROPOSAL_REVIEWS_TABLE_ID_ASC + PROPOSAL_REVIEWS_TABLE_ID_DESC + PROPOSAL_REVIEWS_TABLE_NAME_ASC + PROPOSAL_REVIEWS_TABLE_NAME_DESC + PROVISIONS_ASC + PROVISIONS_DESC + PUBLIC_SCHEMA_NAME_ASC + PUBLIC_SCHEMA_NAME_DESC + REPOSITORIES_TABLE_ID_ASC + REPOSITORIES_TABLE_ID_DESC + REPOSITORIES_TABLE_NAME_ASC + REPOSITORIES_TABLE_NAME_DESC + REPOSITORY_EVENTS_TABLE_ID_ASC + REPOSITORY_EVENTS_TABLE_ID_DESC + REPOSITORY_EVENTS_TABLE_NAME_ASC + REPOSITORY_EVENTS_TABLE_NAME_DESC + REPOSITORY_REQUIRED_CHECKS_TABLE_ID_ASC + REPOSITORY_REQUIRED_CHECKS_TABLE_ID_DESC + REPOSITORY_REQUIRED_CHECKS_TABLE_NAME_ASC + REPOSITORY_REQUIRED_CHECKS_TABLE_NAME_DESC + SCHEMA_ID_ASC + SCHEMA_ID_DESC + SCOPE_ASC + SCOPE_DESC + SEARCH_ASC + SEARCH_DESC + WORKFLOWS_TABLE_ID_ASC + WORKFLOWS_TABLE_ID_DESC + WORKFLOWS_TABLE_NAME_ASC + WORKFLOWS_TABLE_NAME_DESC +} + +""" +Represents an update to a `RepositoryModule`. Fields that are set will be updated. +""" +input RepositoryModulePatch { + apiName: String + buildStepsTableId: UUID + buildStepsTableName: String + buildsTableId: UUID + buildsTableName: String + databaseId: UUID + defaultCapabilities: [String] + entityField: String + entityTableId: UUID + hasAttachments: Boolean + hasBuilds: Boolean + id: UUID + policies: JSON + prefix: String + privateApiName: String + privateSchemaId: UUID + privateSchemaName: String + proposalCommentsTableId: UUID + proposalCommentsTableName: String + proposalFileViewsTableId: UUID + proposalFileViewsTableName: String + proposalReactionsTableId: UUID + proposalReactionsTableName: String + proposalReviewsTableId: UUID + proposalReviewsTableName: String + proposalsTableId: UUID + proposalsTableName: String + provisions: JSON + publicSchemaName: String + repositoriesTableId: UUID + repositoriesTableName: String + repositoryEventsTableId: UUID + repositoryEventsTableName: String + repositoryRequiredChecksTableId: UUID + repositoryRequiredChecksTableName: String + schemaId: UUID + scope: String + search: JSON + workflowsTableId: UUID + workflowsTableName: String +} + +type ResourceModule { + apiName: String + builderBindingsTableId: UUID! + builderBindingsTableName: String! + databaseId: UUID! + defaultCapabilities: [String] + entityField: String + entityTableId: UUID id: UUID! installationStoreName: String! @@ -27732,6 +30132,8 @@ type ResourceModule { privateSchemaName: String provisions: JSON publicSchemaName: String + registryBindingsTableId: UUID! + registryBindingsTableName: String! requirementsStateViewName: String resolvedRequirementsViewName: String resourceBillingRollupFunction: String! @@ -27790,6 +30192,12 @@ input ResourceModuleFilter { """Filter by the object’s `apiName` field.""" apiName: StringFilter + """Filter by the object’s `builderBindingsTableId` field.""" + builderBindingsTableId: UUIDFilter + + """Filter by the object’s `builderBindingsTableName` field.""" + builderBindingsTableName: StringFilter + """Filter by the object’s `databaseId` field.""" databaseId: UUIDFilter @@ -27802,12 +30210,6 @@ input ResourceModuleFilter { """Filter by the object’s `entityTableId` field.""" entityTableId: UUIDFilter - """Filter by the object’s `httpRouteModules` relation.""" - httpRouteModules: ResourceModuleToManyHttpRouteModuleFilter - - """`httpRouteModules` exist.""" - httpRouteModulesExist: Boolean - """Filter by the object’s `id` field.""" id: UUIDFilter @@ -27859,6 +30261,12 @@ input ResourceModuleFilter { """Filter by the object’s `publicSchemaName` field.""" publicSchemaName: StringFilter + """Filter by the object’s `registryBindingsTableId` field.""" + registryBindingsTableId: UUIDFilter + + """Filter by the object’s `registryBindingsTableName` field.""" + registryBindingsTableName: StringFilter + """Filter by the object’s `requirementsStateViewName` field.""" requirementsStateViewName: StringFilter @@ -27923,6 +30331,8 @@ input ResourceModuleFilter { """An input for mutations affecting `ResourceModule`""" input ResourceModuleInput { apiName: String + builderBindingsTableId: UUID + builderBindingsTableName: String databaseId: UUID! defaultCapabilities: [String] entityField: String @@ -27938,6 +30348,8 @@ input ResourceModuleInput { privateSchemaName: String provisions: JSON publicSchemaName: String + registryBindingsTableId: UUID + registryBindingsTableName: String requirementsStateViewName: String resolvedRequirementsViewName: String resourceBillingRollupFunction: String @@ -27964,6 +30376,10 @@ input ResourceModuleInput { enum ResourceModuleOrderBy { API_NAME_ASC API_NAME_DESC + BUILDER_BINDINGS_TABLE_ID_ASC + BUILDER_BINDINGS_TABLE_ID_DESC + BUILDER_BINDINGS_TABLE_NAME_ASC + BUILDER_BINDINGS_TABLE_NAME_DESC DATABASE_ID_ASC DATABASE_ID_DESC DEFAULT_CAPABILITIES_ASC @@ -27997,6 +30413,10 @@ enum ResourceModuleOrderBy { PROVISIONS_DESC PUBLIC_SCHEMA_NAME_ASC PUBLIC_SCHEMA_NAME_DESC + REGISTRY_BINDINGS_TABLE_ID_ASC + REGISTRY_BINDINGS_TABLE_ID_DESC + REGISTRY_BINDINGS_TABLE_NAME_ASC + REGISTRY_BINDINGS_TABLE_NAME_DESC REQUIREMENTS_STATE_VIEW_NAME_ASC REQUIREMENTS_STATE_VIEW_NAME_DESC RESOLVED_REQUIREMENTS_VIEW_NAME_ASC @@ -28044,6 +30464,8 @@ Represents an update to a `ResourceModule`. Fields that are set will be updated. """ input ResourceModulePatch { apiName: String + builderBindingsTableId: UUID + builderBindingsTableName: String databaseId: UUID defaultCapabilities: [String] entityField: String @@ -28059,6 +30481,8 @@ input ResourceModulePatch { privateSchemaName: String provisions: JSON publicSchemaName: String + registryBindingsTableId: UUID + registryBindingsTableName: String requirementsStateViewName: String resolvedRequirementsViewName: String resourceBillingRollupFunction: String @@ -28081,20 +30505,6 @@ input ResourceModulePatch { scope: String } -""" -A filter to be used against many `HttpRouteModule` object types. All fields are combined with a logical ‘and.’ -""" -input ResourceModuleToManyHttpRouteModuleFilter { - """Filters to entities where every related entity matches.""" - every: HttpRouteModuleFilter - - """Filters to entities where no related entity matches.""" - none: HttpRouteModuleFilter - - """Filters to entities where at least one related entity matches.""" - some: HttpRouteModuleFilter -} - type RlsModule { apiName: String authenticate: String! @@ -28285,6 +30695,8 @@ type RouteModule { privateSchemaName: String provisions: JSON publicSchemaName: String + redirectsTableId: UUID! + redirectsTableName: String! resolverFunctionName: String routeBindingsTableId: UUID! routeBindingsTableName: String! @@ -28292,6 +30704,8 @@ type RouteModule { routesTableName: String! schemaId: UUID! scope: String! + servingSiteField: String + storageKey: String! } """A connection to a list of `RouteModule` values.""" @@ -28402,6 +30816,12 @@ input RouteModuleFilter { """Filter by the object’s `publicSchemaName` field.""" publicSchemaName: StringFilter + """Filter by the object’s `redirectsTableId` field.""" + redirectsTableId: UUIDFilter + + """Filter by the object’s `redirectsTableName` field.""" + redirectsTableName: StringFilter + """Filter by the object’s `resolverFunctionName` field.""" resolverFunctionName: StringFilter @@ -28422,6 +30842,12 @@ input RouteModuleFilter { """Filter by the object’s `scope` field.""" scope: StringFilter + + """Filter by the object’s `servingSiteField` field.""" + servingSiteField: StringFilter + + """Filter by the object’s `storageKey` field.""" + storageKey: StringFilter } """An input for mutations affecting `RouteModule`""" @@ -28445,6 +30871,8 @@ input RouteModuleInput { privateSchemaName: String provisions: JSON publicSchemaName: String + redirectsTableId: UUID + redirectsTableName: String resolverFunctionName: String routeBindingsTableId: UUID routeBindingsTableName: String @@ -28452,6 +30880,8 @@ input RouteModuleInput { routesTableName: String schemaId: UUID scope: String! + servingSiteField: String + storageKey: String } """Methods to use when ordering `RouteModule`.""" @@ -28497,6 +30927,10 @@ enum RouteModuleOrderBy { PROVISIONS_DESC PUBLIC_SCHEMA_NAME_ASC PUBLIC_SCHEMA_NAME_DESC + REDIRECTS_TABLE_ID_ASC + REDIRECTS_TABLE_ID_DESC + REDIRECTS_TABLE_NAME_ASC + REDIRECTS_TABLE_NAME_DESC RESOLVER_FUNCTION_NAME_ASC RESOLVER_FUNCTION_NAME_DESC ROUTES_TABLE_ID_ASC @@ -28511,6 +30945,10 @@ enum RouteModuleOrderBy { SCHEMA_ID_DESC SCOPE_ASC SCOPE_DESC + SERVING_SITE_FIELD_ASC + SERVING_SITE_FIELD_DESC + STORAGE_KEY_ASC + STORAGE_KEY_DESC } """ @@ -28536,6 +30974,8 @@ input RouteModulePatch { privateSchemaName: String provisions: JSON publicSchemaName: String + redirectsTableId: UUID + redirectsTableName: String resolverFunctionName: String routeBindingsTableId: UUID routeBindingsTableName: String @@ -28543,6 +30983,8 @@ input RouteModulePatch { routesTableName: String schemaId: UUID scope: String + servingSiteField: String + storageKey: String } type ScopeTypesModule { @@ -28648,7 +31090,7 @@ input ScopeTypesModulePatch { } """ -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. +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. The target table is addressed by table_id, by table_name, or symbolically by a module reference in module. A row that lists a concern in owns[] replaces that concern on the target table instead of composing with what is already there. """ type SecureTableProvision { """The database this provision belongs to. Required.""" @@ -28667,6 +31109,11 @@ type SecureTableProvision { """Unique identifier for this provision row.""" id: UUID! + """ + Module reference naming a module-generated target table symbolically, instead of by table_id or table_name: a jsonb object with keys "type" (text, required — the module type, e.g. "image"), "table" (text, required — the module's own table key, e.g. "registries"), "scope" (text, optional — the install scope) and "prefix" (text, optional — disambiguates multiple installs of the same module). Resolved through metaschema_modules_private.resolve_module_table(), so it raises the same errors blueprint module references do (BLUEPRINT_MODULE_REF_INVALID, BLUEPRINT_MODULE_NOT_INSTALLED, BLUEPRINT_MODULE_REF_AMBIGUOUS, BLUEPRINT_MODULE_TABLE_UNKNOWN). Mutually exclusive with table_name and with an explicit table_id. Example: {"type":"image","scope":"org","table":"registries"}. Defaults to NULL. + """ + module: JSON + """ Array of node objects to apply to the table. Each element is a jsonb object with a required "$type" key (one of: DataId, DataDirectOwner, DataEntityMembership, DataOwnershipInEntity, DataTimestamps, DataPeoplestamps, DataPublishable, DataSoftDelete, DataEmbedding, DataFullTextSearch, DataSlug, etc.) and an optional "data" key containing generator-specific configuration. Supports multiple nodes per row, matching the blueprint definition format. Example: [{"$type": "DataId"}, {"$type": "DataTimestamps"}, {"$type": "DataDirectOwner", "data": {"owner_field_name": "author_id"}}]. Defaults to '[]' (no node processing). """ @@ -28677,6 +31124,11 @@ type SecureTableProvision { """ outFields: [UUID] + """ + Security concerns this row owns on the target table, as a jsonb array of "grants" and/or "policies". A listed concern is replaced: the target table's existing grants (or its non-derived policies) are dropped before this row's grants[] (or policies[]) are applied, so the row's array is the table's whole set — this is how a module-generated table's default security is superseded rather than layered on. An unlisted concern composes, which is the default and the historical behavior. A concern may only be owned when this row supplies a non-empty array for it; owning a concern with nothing to install would leave the table with RLS enabled and no policy, and raises instead. Example: ["policies","grants"]. Defaults to '[]' (compose everything). + """ + owns: JSON! + """ Array of policy objects to create on the target table. Each element is a jsonb object with keys: "$type" (text, required — the Authz* policy generator type, e.g. AuthzEntityMembership, AuthzMembership, AuthzDirectOwner, AuthzPublishable, AuthzAllowAll), "data" (jsonb, optional — opaque configuration passed to metaschema.create_policy(), structure varies by type), "privileges" (text[], optional — privileges the policy applies to, e.g. ["select","insert"]; if omitted, derived from grants[] privilege verbs), "policy_role" (text, optional — role the policy targets; if omitted, falls back to first role in first grants[] entry, or 'authenticated' if no grants), "permissive" (boolean, optional — PERMISSIVE or RESTRICTIVE; defaults to true), "policy_name" (text, optional — custom suffix for the generated policy name; if omitted, auto-derived from $type by stripping Authz prefix). Supports multiple policies per row. Example: [{"$type": "AuthzEntityMembership", "data": {"entity_field": "owner_id", "membership_type": 3}, "privileges": ["select", "insert"]}, {"$type": "AuthzDirectOwner", "data": {"entity_field": "actor_id"}, "privileges": ["update", "delete"]}]. Defaults to '[]' (no policies created). When non-empty, the trigger automatically enables RLS. """ @@ -28750,6 +31202,9 @@ input SecureTableProvisionFilter { """Filter by the object’s `id` field.""" id: UUIDFilter + """Filter by the object’s `module` field.""" + module: JSONFilter + """Filter by the object’s `nodes` field.""" nodes: JSONFilter @@ -28762,6 +31217,9 @@ input SecureTableProvisionFilter { """Filter by the object’s `outFields` field.""" outFields: UUIDListFilter + """Filter by the object’s `owns` field.""" + owns: JSONFilter + """Filter by the object’s `policies` field.""" policies: JSONFilter @@ -28796,6 +31254,11 @@ input SecureTableProvisionInput { """Unique identifier for this provision row.""" id: UUID + """ + Module reference naming a module-generated target table symbolically, instead of by table_id or table_name: a jsonb object with keys "type" (text, required — the module type, e.g. "image"), "table" (text, required — the module's own table key, e.g. "registries"), "scope" (text, optional — the install scope) and "prefix" (text, optional — disambiguates multiple installs of the same module). Resolved through metaschema_modules_private.resolve_module_table(), so it raises the same errors blueprint module references do (BLUEPRINT_MODULE_REF_INVALID, BLUEPRINT_MODULE_NOT_INSTALLED, BLUEPRINT_MODULE_REF_AMBIGUOUS, BLUEPRINT_MODULE_TABLE_UNKNOWN). Mutually exclusive with table_name and with an explicit table_id. Example: {"type":"image","scope":"org","table":"registries"}. Defaults to NULL. + """ + module: JSON + """ Array of node objects to apply to the table. Each element is a jsonb object with a required "$type" key (one of: DataId, DataDirectOwner, DataEntityMembership, DataOwnershipInEntity, DataTimestamps, DataPeoplestamps, DataPublishable, DataSoftDelete, DataEmbedding, DataFullTextSearch, DataSlug, etc.) and an optional "data" key containing generator-specific configuration. Supports multiple nodes per row, matching the blueprint definition format. Example: [{"$type": "DataId"}, {"$type": "DataTimestamps"}, {"$type": "DataDirectOwner", "data": {"owner_field_name": "author_id"}}]. Defaults to '[]' (no node processing). """ @@ -28806,6 +31269,11 @@ input SecureTableProvisionInput { """ outFields: [UUID] + """ + Security concerns this row owns on the target table, as a jsonb array of "grants" and/or "policies". A listed concern is replaced: the target table's existing grants (or its non-derived policies) are dropped before this row's grants[] (or policies[]) are applied, so the row's array is the table's whole set — this is how a module-generated table's default security is superseded rather than layered on. An unlisted concern composes, which is the default and the historical behavior. A concern may only be owned when this row supplies a non-empty array for it; owning a concern with nothing to install would leave the table with RLS enabled and no policy, and raises instead. Example: ["policies","grants"]. Defaults to '[]' (compose everything). + """ + owns: JSON + """ Array of policy objects to create on the target table. Each element is a jsonb object with keys: "$type" (text, required — the Authz* policy generator type, e.g. AuthzEntityMembership, AuthzMembership, AuthzDirectOwner, AuthzPublishable, AuthzAllowAll), "data" (jsonb, optional — opaque configuration passed to metaschema.create_policy(), structure varies by type), "privileges" (text[], optional — privileges the policy applies to, e.g. ["select","insert"]; if omitted, derived from grants[] privilege verbs), "policy_role" (text, optional — role the policy targets; if omitted, falls back to first role in first grants[] entry, or 'authenticated' if no grants), "permissive" (boolean, optional — PERMISSIVE or RESTRICTIVE; defaults to true), "policy_name" (text, optional — custom suffix for the generated policy name; if omitted, auto-derived from $type by stripping Authz prefix). Supports multiple policies per row. Example: [{"$type": "AuthzEntityMembership", "data": {"entity_field": "owner_id", "membership_type": 3}, "privileges": ["select", "insert"]}, {"$type": "AuthzDirectOwner", "data": {"entity_field": "actor_id"}, "privileges": ["update", "delete"]}]. Defaults to '[]' (no policies created). When non-empty, the trigger automatically enables RLS. """ @@ -28842,11 +31310,15 @@ enum SecureTableProvisionOrderBy { GRANTS_DESC ID_ASC ID_DESC + MODULE_ASC + MODULE_DESC NATURAL NODES_ASC NODES_DESC OUT_FIELDS_ASC OUT_FIELDS_DESC + OWNS_ASC + OWNS_DESC POLICIES_ASC POLICIES_DESC PRIMARY_KEY_ASC @@ -28881,6 +31353,11 @@ input SecureTableProvisionPatch { """Unique identifier for this provision row.""" id: UUID + """ + Module reference naming a module-generated target table symbolically, instead of by table_id or table_name: a jsonb object with keys "type" (text, required — the module type, e.g. "image"), "table" (text, required — the module's own table key, e.g. "registries"), "scope" (text, optional — the install scope) and "prefix" (text, optional — disambiguates multiple installs of the same module). Resolved through metaschema_modules_private.resolve_module_table(), so it raises the same errors blueprint module references do (BLUEPRINT_MODULE_REF_INVALID, BLUEPRINT_MODULE_NOT_INSTALLED, BLUEPRINT_MODULE_REF_AMBIGUOUS, BLUEPRINT_MODULE_TABLE_UNKNOWN). Mutually exclusive with table_name and with an explicit table_id. Example: {"type":"image","scope":"org","table":"registries"}. Defaults to NULL. + """ + module: JSON + """ Array of node objects to apply to the table. Each element is a jsonb object with a required "$type" key (one of: DataId, DataDirectOwner, DataEntityMembership, DataOwnershipInEntity, DataTimestamps, DataPeoplestamps, DataPublishable, DataSoftDelete, DataEmbedding, DataFullTextSearch, DataSlug, etc.) and an optional "data" key containing generator-specific configuration. Supports multiple nodes per row, matching the blueprint definition format. Example: [{"$type": "DataId"}, {"$type": "DataTimestamps"}, {"$type": "DataDirectOwner", "data": {"owner_field_name": "author_id"}}]. Defaults to '[]' (no node processing). """ @@ -28891,6 +31368,11 @@ input SecureTableProvisionPatch { """ outFields: [UUID] + """ + Security concerns this row owns on the target table, as a jsonb array of "grants" and/or "policies". A listed concern is replaced: the target table's existing grants (or its non-derived policies) are dropped before this row's grants[] (or policies[]) are applied, so the row's array is the table's whole set — this is how a module-generated table's default security is superseded rather than layered on. An unlisted concern composes, which is the default and the historical behavior. A concern may only be owned when this row supplies a non-empty array for it; owning a concern with nothing to install would leave the table with RLS enabled and no policy, and raises instead. Example: ["policies","grants"]. Defaults to '[]' (compose everything). + """ + owns: JSON + """ Array of policy objects to create on the target table. Each element is a jsonb object with keys: "$type" (text, required — the Authz* policy generator type, e.g. AuthzEntityMembership, AuthzMembership, AuthzDirectOwner, AuthzPublishable, AuthzAllowAll), "data" (jsonb, optional — opaque configuration passed to metaschema.create_policy(), structure varies by type), "privileges" (text[], optional — privileges the policy applies to, e.g. ["select","insert"]; if omitted, derived from grants[] privilege verbs), "policy_role" (text, optional — role the policy targets; if omitted, falls back to first role in first grants[] entry, or 'authenticated' if no grants), "permissive" (boolean, optional — PERMISSIVE or RESTRICTIVE; defaults to true), "policy_name" (text, optional — custom suffix for the generated policy name; if omitted, auto-derived from $type by stripping Authz prefix). Supports multiple policies per row. Example: [{"$type": "AuthzEntityMembership", "data": {"entity_field": "owner_id", "membership_type": 3}, "privileges": ["select", "insert"]}, {"$type": "AuthzDirectOwner", "data": {"entity_field": "actor_id"}, "privileges": ["update", "delete"]}]. Defaults to '[]' (no policies created). When non-empty, the trigger automatically enables RLS. """ @@ -29280,12 +31762,15 @@ type SiteSurfaceModule { siteMetadataTableName: String! siteModulesTableId: UUID! siteModulesTableName: String! + siteReleasesTableId: UUID! + siteReleasesTableName: String! siteThemesTableId: UUID! siteThemesTableName: String! siteWebConfigTableId: UUID! siteWebConfigTableName: String! sitesTableId: UUID! sitesTableName: String! + storageKey: String! } """A connection to a list of `SiteSurfaceModule` values.""" @@ -29425,6 +31910,12 @@ input SiteSurfaceModuleFilter { """Filter by the object’s `siteModulesTableName` field.""" siteModulesTableName: StringFilter + """Filter by the object’s `siteReleasesTableId` field.""" + siteReleasesTableId: UUIDFilter + + """Filter by the object’s `siteReleasesTableName` field.""" + siteReleasesTableName: StringFilter + """Filter by the object’s `siteThemesTableId` field.""" siteThemesTableId: UUIDFilter @@ -29442,6 +31933,9 @@ input SiteSurfaceModuleFilter { """Filter by the object’s `sitesTableName` field.""" sitesTableName: StringFilter + + """Filter by the object’s `storageKey` field.""" + storageKey: StringFilter } """An input for mutations affecting `SiteSurfaceModule`""" @@ -29472,12 +31966,15 @@ input SiteSurfaceModuleInput { siteMetadataTableName: String siteModulesTableId: UUID siteModulesTableName: String + siteReleasesTableId: UUID + siteReleasesTableName: String siteThemesTableId: UUID siteThemesTableName: String siteWebConfigTableId: UUID siteWebConfigTableName: String sitesTableId: UUID sitesTableName: String + storageKey: String } """Methods to use when ordering `SiteSurfaceModule`.""" @@ -29541,6 +32038,10 @@ enum SiteSurfaceModuleOrderBy { SITE_MODULES_TABLE_ID_DESC SITE_MODULES_TABLE_NAME_ASC SITE_MODULES_TABLE_NAME_DESC + SITE_RELEASES_TABLE_ID_ASC + SITE_RELEASES_TABLE_ID_DESC + SITE_RELEASES_TABLE_NAME_ASC + SITE_RELEASES_TABLE_NAME_DESC SITE_THEMES_TABLE_ID_ASC SITE_THEMES_TABLE_ID_DESC SITE_THEMES_TABLE_NAME_ASC @@ -29549,6 +32050,8 @@ enum SiteSurfaceModuleOrderBy { SITE_WEB_CONFIG_TABLE_ID_DESC SITE_WEB_CONFIG_TABLE_NAME_ASC SITE_WEB_CONFIG_TABLE_NAME_DESC + STORAGE_KEY_ASC + STORAGE_KEY_DESC } """ @@ -29581,12 +32084,15 @@ input SiteSurfaceModulePatch { siteMetadataTableName: String siteModulesTableId: UUID siteModulesTableName: String + siteReleasesTableId: UUID + siteReleasesTableName: String siteThemesTableId: UUID siteThemesTableName: String siteWebConfigTableId: UUID siteWebConfigTableName: String sitesTableId: UUID sitesTableName: String + storageKey: String } """ @@ -29618,11 +32124,9 @@ input SiteSurfaceModuleToManyPagesModuleFilter { } type StorageLogModule { - actorFkTableId: UUID apiName: String databaseId: UUID! entityField: String - entityFkTableId: UUID id: UUID! interval: String! prefix: String! @@ -29632,6 +32136,7 @@ type StorageLogModule { privateSchemaName: String publicSchemaName: String retention: String! + rollupFunctionName: String! schemaId: UUID! scope: String! storageLogTableId: UUID! @@ -29672,9 +32177,6 @@ type StorageLogModuleEdge { A filter to be used against `StorageLogModule` object types. All fields are combined with a logical ‘and.’ """ input StorageLogModuleFilter { - """Filter by the object’s `actorFkTableId` field.""" - actorFkTableId: UUIDFilter - """Checks for all expressions in this list.""" and: [StorageLogModuleFilter!] @@ -29687,9 +32189,6 @@ input StorageLogModuleFilter { """Filter by the object’s `entityField` field.""" entityField: StringFilter - """Filter by the object’s `entityFkTableId` field.""" - entityFkTableId: UUIDFilter - """Filter by the object’s `id` field.""" id: UUIDFilter @@ -29723,6 +32222,9 @@ input StorageLogModuleFilter { """Filter by the object’s `retention` field.""" retention: StringFilter + """Filter by the object’s `rollupFunctionName` field.""" + rollupFunctionName: StringFilter + """Filter by the object’s `schemaId` field.""" schemaId: UUIDFilter @@ -29744,11 +32246,9 @@ input StorageLogModuleFilter { """An input for mutations affecting `StorageLogModule`""" input StorageLogModuleInput { - actorFkTableId: UUID apiName: String databaseId: UUID! entityField: String - entityFkTableId: UUID id: UUID interval: String prefix: String @@ -29758,6 +32258,7 @@ input StorageLogModuleInput { privateSchemaName: String publicSchemaName: String retention: String + rollupFunctionName: String schemaId: UUID scope: String! storageLogTableId: UUID @@ -29768,16 +32269,12 @@ input StorageLogModuleInput { """Methods to use when ordering `StorageLogModule`.""" enum StorageLogModuleOrderBy { - ACTOR_FK_TABLE_ID_ASC - ACTOR_FK_TABLE_ID_DESC API_NAME_ASC API_NAME_DESC DATABASE_ID_ASC DATABASE_ID_DESC ENTITY_FIELD_ASC ENTITY_FIELD_DESC - ENTITY_FK_TABLE_ID_ASC - ENTITY_FK_TABLE_ID_DESC ID_ASC ID_DESC INTERVAL_ASC @@ -29799,6 +32296,8 @@ enum StorageLogModuleOrderBy { PUBLIC_SCHEMA_NAME_DESC RETENTION_ASC RETENTION_DESC + ROLLUP_FUNCTION_NAME_ASC + ROLLUP_FUNCTION_NAME_DESC SCHEMA_ID_ASC SCHEMA_ID_DESC SCOPE_ASC @@ -29817,11 +32316,9 @@ enum StorageLogModuleOrderBy { Represents an update to a `StorageLogModule`. Fields that are set will be updated. """ input StorageLogModulePatch { - actorFkTableId: UUID apiName: String databaseId: UUID entityField: String - entityFkTableId: UUID id: UUID interval: String prefix: String @@ -29831,6 +32328,7 @@ input StorageLogModulePatch { privateSchemaName: String publicSchemaName: String retention: String + rollupFunctionName: String schemaId: UUID scope: String storageLogTableId: UUID @@ -29892,36 +32390,8 @@ type StorageModule { hasCustomKeys: Boolean! hasPathShares: Boolean! hasVersioning: Boolean! - - """Reads and enables pagination through a set of `HttpRouteModule`.""" - httpRouteModules( - """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 `HttpRouteModule`.""" - orderBy: [HttpRouteModuleOrderBy!] = [PRIMARY_KEY_ASC] - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: HttpRouteModuleFilter - ): HttpRouteModuleConnection! id: UUID! + key: String! maxBulkFiles: Int maxBulkTotalSize: BigInt maxFilenameLength: Int @@ -30049,15 +32519,12 @@ input StorageModuleFilter { """Filter by the object’s `hasVersioning` field.""" hasVersioning: BooleanFilter - """Filter by the object’s `httpRouteModules` relation.""" - httpRouteModules: StorageModuleToManyHttpRouteModuleFilter - - """`httpRouteModules` exist.""" - httpRouteModulesExist: Boolean - """Filter by the object’s `id` field.""" id: UUIDFilter + """Filter by the object’s `key` field.""" + key: StringFilter + """Filter by the object’s `maxBulkFiles` field.""" maxBulkFiles: IntFilter @@ -30142,6 +32609,7 @@ input StorageModuleInput { hasPathShares: Boolean hasVersioning: Boolean id: UUID + key: String maxBulkFiles: Int maxBulkTotalSize: BigInt maxFilenameLength: Int @@ -30211,6 +32679,8 @@ enum StorageModuleOrderBy { HAS_VERSIONING_DESC ID_ASC ID_DESC + KEY_ASC + KEY_DESC MAX_BULK_FILES_ASC MAX_BULK_FILES_DESC MAX_BULK_TOTAL_SIZE_ASC @@ -30278,6 +32748,7 @@ input StorageModulePatch { hasPathShares: Boolean hasVersioning: Boolean id: UUID + key: String maxBulkFiles: Int maxBulkTotalSize: BigInt maxFilenameLength: Int @@ -30311,20 +32782,6 @@ input StorageModuleToManyFileRefFieldFilter { some: FileRefFieldFilter } -""" -A filter to be used against many `HttpRouteModule` object types. All fields are combined with a logical ‘and.’ -""" -input StorageModuleToManyHttpRouteModuleFilter { - """Filters to entities where every related entity matches.""" - every: HttpRouteModuleFilter - - """Filters to entities where no related entity matches.""" - none: HttpRouteModuleFilter - - """Filters to entities where at least one related entity matches.""" - some: HttpRouteModuleFilter -} - """ A filter to be used against String fields. All fields are combined with a logical ‘and.’ """ @@ -30521,11 +32978,9 @@ input StringListFilter { } type TransferLogModule { - actorFkTableId: UUID apiName: String databaseId: UUID! entityField: String - entityFkTableId: UUID id: UUID! interval: String! prefix: String! @@ -30535,6 +32990,7 @@ type TransferLogModule { privateSchemaName: String publicSchemaName: String retention: String! + rollupFunctionName: String! schemaId: UUID! scope: String! transferLogTableId: UUID! @@ -30575,9 +33031,6 @@ type TransferLogModuleEdge { A filter to be used against `TransferLogModule` object types. All fields are combined with a logical ‘and.’ """ input TransferLogModuleFilter { - """Filter by the object’s `actorFkTableId` field.""" - actorFkTableId: UUIDFilter - """Checks for all expressions in this list.""" and: [TransferLogModuleFilter!] @@ -30590,9 +33043,6 @@ input TransferLogModuleFilter { """Filter by the object’s `entityField` field.""" entityField: StringFilter - """Filter by the object’s `entityFkTableId` field.""" - entityFkTableId: UUIDFilter - """Filter by the object’s `id` field.""" id: UUIDFilter @@ -30626,6 +33076,9 @@ input TransferLogModuleFilter { """Filter by the object’s `retention` field.""" retention: StringFilter + """Filter by the object’s `rollupFunctionName` field.""" + rollupFunctionName: StringFilter + """Filter by the object’s `schemaId` field.""" schemaId: UUIDFilter @@ -30647,11 +33100,9 @@ input TransferLogModuleFilter { """An input for mutations affecting `TransferLogModule`""" input TransferLogModuleInput { - actorFkTableId: UUID apiName: String databaseId: UUID! entityField: String - entityFkTableId: UUID id: UUID interval: String prefix: String @@ -30661,6 +33112,7 @@ input TransferLogModuleInput { privateSchemaName: String publicSchemaName: String retention: String + rollupFunctionName: String schemaId: UUID scope: String! transferLogTableId: UUID @@ -30671,16 +33123,12 @@ input TransferLogModuleInput { """Methods to use when ordering `TransferLogModule`.""" enum TransferLogModuleOrderBy { - ACTOR_FK_TABLE_ID_ASC - ACTOR_FK_TABLE_ID_DESC API_NAME_ASC API_NAME_DESC DATABASE_ID_ASC DATABASE_ID_DESC ENTITY_FIELD_ASC ENTITY_FIELD_DESC - ENTITY_FK_TABLE_ID_ASC - ENTITY_FK_TABLE_ID_DESC ID_ASC ID_DESC INTERVAL_ASC @@ -30702,6 +33150,8 @@ enum TransferLogModuleOrderBy { PUBLIC_SCHEMA_NAME_DESC RETENTION_ASC RETENTION_DESC + ROLLUP_FUNCTION_NAME_ASC + ROLLUP_FUNCTION_NAME_DESC SCHEMA_ID_ASC SCHEMA_ID_DESC SCOPE_ASC @@ -30720,11 +33170,9 @@ enum TransferLogModuleOrderBy { Represents an update to a `TransferLogModule`. Fields that are set will be updated. """ input TransferLogModulePatch { - actorFkTableId: UUID apiName: String databaseId: UUID entityField: String - entityFkTableId: UUID id: UUID interval: String prefix: String @@ -30734,6 +33182,7 @@ input TransferLogModulePatch { privateSchemaName: String publicSchemaName: String retention: String + rollupFunctionName: String schemaId: UUID scope: String transferLogTableId: UUID @@ -31238,8 +33687,8 @@ type UpdateCatalogModulePayload { query: Query } -"""All input for the `updateComputeLogModule` mutation.""" -input UpdateComputeLogModuleInput { +"""All input for the `updateClusterModule` mutation.""" +input UpdateClusterModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -31247,28 +33696,28 @@ input UpdateComputeLogModuleInput { clientMutationId: String """ - An object where the defined keys will be set on the `ComputeLogModule` being updated. + An object where the defined keys will be set on the `ClusterModule` being updated. """ - computeLogModulePatch: ComputeLogModulePatch! + clusterModulePatch: ClusterModulePatch! id: UUID! } -"""The output of our update `ComputeLogModule` mutation.""" -type UpdateComputeLogModulePayload { +"""The output of our update `ClusterModule` mutation.""" +type UpdateClusterModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `ComputeLogModule` that was updated by this mutation.""" - computeLogModule: ComputeLogModule + """The `ClusterModule` that was updated by this mutation.""" + clusterModule: ClusterModule - """An edge for our `ComputeLogModule`. May be used by Relay 1.""" - computeLogModuleEdge( - """The method to use when ordering `ComputeLogModule`.""" - orderBy: [ComputeLogModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): ComputeLogModuleEdge + """An edge for our `ClusterModule`. May be used by Relay 1.""" + clusterModuleEdge( + """The method to use when ordering `ClusterModule`.""" + orderBy: [ClusterModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): ClusterModuleEdge """ Our root query field type. Allows us to run any query from our mutation payload. @@ -31276,8 +33725,8 @@ type UpdateComputeLogModulePayload { query: Query } -"""All input for the `updateConfigSecretsUserModule` mutation.""" -input UpdateConfigSecretsUserModuleInput { +"""All input for the `updateComputeLogModule` mutation.""" +input UpdateComputeLogModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -31285,28 +33734,28 @@ input UpdateConfigSecretsUserModuleInput { clientMutationId: String """ - An object where the defined keys will be set on the `ConfigSecretsUserModule` being updated. + An object where the defined keys will be set on the `ComputeLogModule` being updated. """ - configSecretsUserModulePatch: ConfigSecretsUserModulePatch! + computeLogModulePatch: ComputeLogModulePatch! id: UUID! } -"""The output of our update `ConfigSecretsUserModule` mutation.""" -type UpdateConfigSecretsUserModulePayload { +"""The output of our update `ComputeLogModule` mutation.""" +type UpdateComputeLogModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `ConfigSecretsUserModule` that was updated by this mutation.""" - configSecretsUserModule: ConfigSecretsUserModule + """The `ComputeLogModule` that was updated by this mutation.""" + computeLogModule: ComputeLogModule - """An edge for our `ConfigSecretsUserModule`. May be used by Relay 1.""" - configSecretsUserModuleEdge( - """The method to use when ordering `ConfigSecretsUserModule`.""" - orderBy: [ConfigSecretsUserModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): ConfigSecretsUserModuleEdge + """An edge for our `ComputeLogModule`. May be used by Relay 1.""" + computeLogModuleEdge( + """The method to use when ordering `ComputeLogModule`.""" + orderBy: [ComputeLogModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): ComputeLogModuleEdge """ Our root query field type. Allows us to run any query from our mutation payload. @@ -32304,44 +34753,6 @@ type UpdateHierarchyModulePayload { query: Query } -"""All input for the `updateHttpRouteModule` mutation.""" -input UpdateHttpRouteModuleInput { - """ - An arbitrary 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 `HttpRouteModule` being updated. - """ - httpRouteModulePatch: HttpRouteModulePatch! - id: UUID! -} - -"""The output of our update `HttpRouteModule` mutation.""" -type UpdateHttpRouteModulePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `HttpRouteModule` that was updated by this mutation.""" - httpRouteModule: HttpRouteModule - - """An edge for our `HttpRouteModule`. May be used by Relay 1.""" - httpRouteModuleEdge( - """The method to use when ordering `HttpRouteModule`.""" - orderBy: [HttpRouteModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): HttpRouteModuleEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - """All input for the `updateI18NModule` mutation.""" input UpdateI18NModuleInput { """ @@ -32418,6 +34829,44 @@ type UpdateIdentityProvidersModulePayload { query: Query } +"""All input for the `updateImageModule` mutation.""" +input UpdateImageModuleInput { + """ + An arbitrary 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 `ImageModule` being updated. + """ + imageModulePatch: ImageModulePatch! +} + +"""The output of our update `ImageModule` mutation.""" +type UpdateImageModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `ImageModule` that was updated by this mutation.""" + imageModule: ImageModule + + """An edge for our `ImageModule`. May be used by Relay 1.""" + imageModuleEdge( + """The method to use when ordering `ImageModule`.""" + orderBy: [ImageModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): ImageModuleEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + """All input for the `updateInferenceLogModule` mutation.""" input UpdateInferenceLogModuleInput { """ @@ -32570,6 +35019,44 @@ type UpdateIntegrationProvidersModulePayload { query: Query } +"""All input for the `updateInternalConfigModule` mutation.""" +input UpdateInternalConfigModuleInput { + """ + An arbitrary 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 `InternalConfigModule` being updated. + """ + internalConfigModulePatch: InternalConfigModulePatch! +} + +"""The output of our update `InternalConfigModule` mutation.""" +type UpdateInternalConfigModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `InternalConfigModule` that was updated by this mutation.""" + internalConfigModule: InternalConfigModule + + """An edge for our `InternalConfigModule`. May be used by Relay 1.""" + internalConfigModuleEdge( + """The method to use when ordering `InternalConfigModule`.""" + orderBy: [InternalConfigModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): InternalConfigModuleEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + """All input for the `updateInternalSecretsModule` mutation.""" input UpdateInternalSecretsModuleInput { """ @@ -32646,6 +35133,44 @@ type UpdateInvitesModulePayload { query: Query } +"""All input for the `updateK8sAdmissionModule` mutation.""" +input UpdateK8sAdmissionModuleInput { + """ + An arbitrary 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 `K8sAdmissionModule` being updated. + """ + k8sAdmissionModulePatch: K8sAdmissionModulePatch! +} + +"""The output of our update `K8sAdmissionModule` mutation.""" +type UpdateK8sAdmissionModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `K8sAdmissionModule` that was updated by this mutation.""" + k8sAdmissionModule: K8sAdmissionModule + + """An edge for our `K8sAdmissionModule`. May be used by Relay 1.""" + k8sAdmissionModuleEdge( + """The method to use when ordering `K8sAdmissionModule`.""" + orderBy: [K8sAdmissionModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): K8sAdmissionModuleEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + """All input for the `updateLimitsModule` mutation.""" input UpdateLimitsModuleInput { """ @@ -32684,6 +35209,44 @@ type UpdateLimitsModulePayload { query: Query } +"""All input for the `updateMachineModule` mutation.""" +input UpdateMachineModuleInput { + """ + An arbitrary 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 `MachineModule` being updated. + """ + machineModulePatch: MachineModulePatch! +} + +"""The output of our update `MachineModule` mutation.""" +type UpdateMachineModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `MachineModule` that was updated by this mutation.""" + machineModule: MachineModule + + """An edge for our `MachineModule`. May be used by Relay 1.""" + machineModuleEdge( + """The method to use when ordering `MachineModule`.""" + orderBy: [MachineModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): MachineModuleEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + """All input for the `updateMembershipTypesModule` mutation.""" input UpdateMembershipTypesModuleInput { """ @@ -33216,6 +35779,44 @@ type UpdateRealtimeModulePayload { ): RealtimeModuleEdge } +"""All input for the `updateRefusalLogModule` mutation.""" +input UpdateRefusalLogModuleInput { + """ + An arbitrary 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 `RefusalLogModule` being updated. + """ + refusalLogModulePatch: RefusalLogModulePatch! +} + +"""The output of our update `RefusalLogModule` mutation.""" +type UpdateRefusalLogModulePayload { + """ + The 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 `RefusalLogModule` that was updated by this mutation.""" + refusalLogModule: RefusalLogModule + + """An edge for our `RefusalLogModule`. May be used by Relay 1.""" + refusalLogModuleEdge( + """The method to use when ordering `RefusalLogModule`.""" + orderBy: [RefusalLogModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): RefusalLogModuleEdge +} + """All input for the `updateRelationProvision` mutation.""" input UpdateRelationProvisionInput { """ @@ -33256,6 +35857,44 @@ type UpdateRelationProvisionPayload { ): RelationProvisionEdge } +"""All input for the `updateRepositoryModule` mutation.""" +input UpdateRepositoryModuleInput { + """ + An arbitrary 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 `RepositoryModule` being updated. + """ + repositoryModulePatch: RepositoryModulePatch! +} + +"""The output of our update `RepositoryModule` mutation.""" +type UpdateRepositoryModulePayload { + """ + The 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 `RepositoryModule` that was updated by this mutation.""" + repositoryModule: RepositoryModule + + """An edge for our `RepositoryModule`. May be used by Relay 1.""" + repositoryModuleEdge( + """The method to use when ordering `RepositoryModule`.""" + orderBy: [RepositoryModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): RepositoryModuleEdge +} + """All input for the `updateResourceModule` mutation.""" input UpdateResourceModuleInput { """ @@ -34031,8 +36670,10 @@ type UserAuthModule { forgotPasswordFunction: String! id: UUID! privateApiName: String + privateSchemaId: UUID! requestCrossOriginTokenFunction: String! resetPasswordFunction: String! + revokeSessionTreeFunction: String! schemaId: UUID! secretsTableId: UUID! sendAccountDeletionEmailFunction: String! @@ -34044,6 +36685,7 @@ type UserAuthModule { signInFunction: String! signOutFunction: String! signUpFunction: String! + sweepExpiredSessionsFunction: String! usersTableId: UUID! verifyEmailFunction: String! verifyPasswordFunction: String! @@ -34124,12 +36766,18 @@ input UserAuthModuleFilter { """Filter by the object’s `privateApiName` field.""" privateApiName: StringFilter + """Filter by the object’s `privateSchemaId` field.""" + privateSchemaId: UUIDFilter + """Filter by the object’s `requestCrossOriginTokenFunction` field.""" requestCrossOriginTokenFunction: StringFilter """Filter by the object’s `resetPasswordFunction` field.""" resetPasswordFunction: StringFilter + """Filter by the object’s `revokeSessionTreeFunction` field.""" + revokeSessionTreeFunction: StringFilter + """Filter by the object’s `schemaId` field.""" schemaId: UUIDFilter @@ -34163,6 +36811,9 @@ input UserAuthModuleFilter { """Filter by the object’s `signUpFunction` field.""" signUpFunction: StringFilter + """Filter by the object’s `sweepExpiredSessionsFunction` field.""" + sweepExpiredSessionsFunction: StringFilter + """Filter by the object’s `usersTableId` field.""" usersTableId: UUIDFilter @@ -34187,8 +36838,10 @@ input UserAuthModuleInput { forgotPasswordFunction: String id: UUID privateApiName: String + privateSchemaId: UUID requestCrossOriginTokenFunction: String resetPasswordFunction: String + revokeSessionTreeFunction: String schemaId: UUID secretsTableId: UUID sendAccountDeletionEmailFunction: String @@ -34200,6 +36853,7 @@ input UserAuthModuleInput { signInFunction: String signOutFunction: String signUpFunction: String + sweepExpiredSessionsFunction: String usersTableId: UUID verifyEmailFunction: String verifyPasswordFunction: String @@ -34234,10 +36888,14 @@ enum UserAuthModuleOrderBy { PRIMARY_KEY_DESC PRIVATE_API_NAME_ASC PRIVATE_API_NAME_DESC + PRIVATE_SCHEMA_ID_ASC + PRIVATE_SCHEMA_ID_DESC REQUEST_CROSS_ORIGIN_TOKEN_FUNCTION_ASC REQUEST_CROSS_ORIGIN_TOKEN_FUNCTION_DESC RESET_PASSWORD_FUNCTION_ASC RESET_PASSWORD_FUNCTION_DESC + REVOKE_SESSION_TREE_FUNCTION_ASC + REVOKE_SESSION_TREE_FUNCTION_DESC SCHEMA_ID_ASC SCHEMA_ID_DESC SECRETS_TABLE_ID_ASC @@ -34260,6 +36918,8 @@ enum UserAuthModuleOrderBy { SIGN_OUT_FUNCTION_DESC SIGN_UP_FUNCTION_ASC SIGN_UP_FUNCTION_DESC + SWEEP_EXPIRED_SESSIONS_FUNCTION_ASC + SWEEP_EXPIRED_SESSIONS_FUNCTION_DESC USERS_TABLE_ID_ASC USERS_TABLE_ID_DESC VERIFY_EMAIL_FUNCTION_ASC @@ -34284,8 +36944,10 @@ input UserAuthModulePatch { forgotPasswordFunction: String id: UUID privateApiName: String + privateSchemaId: UUID requestCrossOriginTokenFunction: String resetPasswordFunction: String + revokeSessionTreeFunction: String schemaId: UUID secretsTableId: UUID sendAccountDeletionEmailFunction: String @@ -34297,6 +36959,7 @@ input UserAuthModulePatch { signInFunction: String signOutFunction: String signUpFunction: String + sweepExpiredSessionsFunction: String usersTableId: UUID verifyEmailFunction: String verifyPasswordFunction: String diff --git a/sdk/constructive-sdk/schemas/objects.graphql b/sdk/constructive-sdk/schemas/objects.graphql index 2858c435c8..f47b15fb92 100644 --- a/sdk/constructive-sdk/schemas/objects.graphql +++ b/sdk/constructive-sdk/schemas/objects.graphql @@ -952,11 +952,57 @@ type MetaSearchConfig { """Storage metadata for a table""" type MetaStorage { + """GraphQL type name of the plane's buckets table""" + bucketsType: String! + + """ + Computed download-URL field on the files type; null on the buckets side + """ + downloadUrlField: String + + """GraphQL type name of the plane's files table""" + filesType: String! + """Whether this table is a storage buckets table""" isBucketsTable: Boolean! """Whether this table is a storage files table""" isFilesTable: Boolean! + + """The plane's GraphQL upload surface""" + upload: MetaStorageUpload! +} + +""" +The GraphQL upload surface of a storage plane, derived from the registry facts the presigned-url plugin emits from +""" +type MetaStorageUpload { + """Per-file input type inside the bulk input""" + bulkFileInputType: String! + + """Per-file payload type inside the bulk payload""" + bulkFilePayloadType: String! + + """Input type of the bulk upload mutation""" + bulkInputType: String! + + """Root mutation field for bulk upload""" + bulkMutation: String! + + """Payload type of the bulk upload mutation""" + bulkPayloadType: String! + + """Input type of the single upload mutation""" + inputType: String! + + """Root mutation field for single-file upload (e.g. uploadAppFile)""" + mutation: String! + + """Payload type of the single upload mutation""" + payloadType: String! + + """Whether the upload input requires ownerId (entity-keyed plane)""" + requiresOwnerId: Boolean! } """Information about a database table""" @@ -1099,10 +1145,11 @@ type Mutation { ): InsertNodesAtPathsPayload """ - 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. + Reconcile an S3 bucket for a logical bucket in the database. + Reads the bucket config via RLS, then enqueues the same + storage:provision_bucket job used by the INSERT trigger. This is + idempotent for an already-reconciled bucket; enqueue failures become + GraphQL errors. """ provisionBucket( """ @@ -1333,23 +1380,17 @@ input ProvisionBucketInput { } type 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 - - """Error message if provisioning failed""" - error: String + """The logical bucket row that was queued for reconciliation.""" + bucketId: UUID! + bucketKey: String! - """The storage provider used""" - provider: String! + """The reconciler job enqueued to provision this bucket.""" + jobId: UUID! - """Whether provisioning succeeded""" - success: Boolean! + """ + The physical bucket name already recorded, or null when reconciliation has not completed. + """ + physicalName: String } """The root query type which gives access points into the data universe.""" diff --git a/sdk/constructive-sdk/schemas/remote.graphql b/sdk/constructive-sdk/schemas/remote.graphql new file mode 100644 index 0000000000..094ec7d83b --- /dev/null +++ b/sdk/constructive-sdk/schemas/remote.graphql @@ -0,0 +1,2466 @@ +""" +A signed eight-byte integer. The upper big integer values are greater than the +max value for a JavaScript number. Therefore all big integers will be output as +strings and not numbers. +""" +scalar BigInt + +""" +A filter to be used against BigInt fields. All fields are combined with a logical ‘and.’ +""" +input BigIntFilter { + """ + Not equal to the specified value, treating null like an ordinary value. + """ + distinctFrom: BigInt + + """Equal to the specified value.""" + equalTo: BigInt + + """Greater than the specified value.""" + greaterThan: BigInt + + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: BigInt + + """Included in the specified list.""" + in: [BigInt!] + + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean + + """Less than the specified value.""" + lessThan: BigInt + + """Less than or equal to the specified value.""" + lessThanOrEqualTo: BigInt + + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: BigInt + + """Not equal to the specified value.""" + notEqualTo: BigInt + + """Not included in the specified list.""" + notIn: [BigInt!] +} + +""" +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). + """ + 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!] +} + +"""All input for the create `Machine` mutation.""" +input CreateMachineInput { + """ + An arbitrary 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 `Machine` to be created by this mutation.""" + machine: MachineInput! +} + +"""All input for the create `MachineMessage` mutation.""" +input CreateMachineMessageInput { + """ + An arbitrary 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 `MachineMessage` to be created by this mutation.""" + machineMessage: MachineMessageInput! +} + +"""The output of our create `MachineMessage` mutation.""" +type CreateMachineMessagePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `MachineMessage` that was created by this mutation.""" + machineMessage: MachineMessage + + """An edge for our `MachineMessage`. May be used by Relay 1.""" + machineMessageEdge( + """The method to use when ordering `MachineMessage`.""" + orderBy: [MachineMessageOrderBy!]! = [PRIMARY_KEY_ASC] + ): MachineMessageEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""The output of our create `Machine` mutation.""" +type CreateMachinePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `Machine` that was created by this mutation.""" + machine: Machine + + """An edge for our `Machine`. May be used by Relay 1.""" + machineEdge( + """The method to use when ordering `Machine`.""" + orderBy: [MachineOrderBy!]! = [PRIMARY_KEY_ASC] + ): MachineEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the create `MachineSession` mutation.""" +input CreateMachineSessionInput { + """ + An arbitrary 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 `MachineSession` to be created by this mutation.""" + machineSession: MachineSessionInput! +} + +"""The output of our create `MachineSession` mutation.""" +type CreateMachineSessionPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `MachineSession` that was created by this mutation.""" + machineSession: MachineSession + + """An edge for our `MachineSession`. May be used by Relay 1.""" + machineSessionEdge( + """The method to use when ordering `MachineSession`.""" + orderBy: [MachineSessionOrderBy!]! = [PRIMARY_KEY_ASC] + ): MachineSessionEdge + + """ + 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 + +""" +A point in time as described by the [ISO +8601](https://en.wikipedia.org/wiki/ISO_8601) and, if it has a timezone, [RFC +3339](https://datatracker.ietf.org/doc/html/rfc3339) standards. Input values +that do not conform to both ISO 8601 and RFC 3339 may be coerced, which may lead +to unexpected results. +""" +scalar Datetime + +""" +A filter to be used against Datetime fields. All fields are combined with a logical ‘and.’ +""" +input DatetimeFilter { + """ + Not equal to the specified value, treating null like an ordinary value. + """ + distinctFrom: Datetime + + """Equal to the specified value.""" + equalTo: Datetime + + """Greater than the specified value.""" + greaterThan: Datetime + + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: Datetime + + """Included in the specified list.""" + in: [Datetime!] + + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean + + """Less than the specified value.""" + lessThan: Datetime + + """Less than or equal to the specified value.""" + lessThanOrEqualTo: Datetime + + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: Datetime + + """Not equal to the specified value.""" + notEqualTo: Datetime + + """Not included in the specified list.""" + notIn: [Datetime!] +} + +"""All input for the `deleteMachine` mutation.""" +input DeleteMachineInput { + """ + An arbitrary 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! +} + +"""All input for the `deleteMachineMessage` mutation.""" +input DeleteMachineMessageInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """Unique identifier (uuidv7 provides temporal ordering)""" + id: UUID! + + """When the message was recorded (partition key)""" + recordedAt: Datetime! +} + +"""The output of our delete `MachineMessage` mutation.""" +type DeleteMachineMessagePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `MachineMessage` that was deleted by this mutation.""" + machineMessage: MachineMessage + + """An edge for our `MachineMessage`. May be used by Relay 1.""" + machineMessageEdge( + """The method to use when ordering `MachineMessage`.""" + orderBy: [MachineMessageOrderBy!]! = [PRIMARY_KEY_ASC] + ): MachineMessageEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""The output of our delete `Machine` mutation.""" +type DeleteMachinePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `Machine` that was deleted by this mutation.""" + machine: Machine + + """An edge for our `Machine`. May be used by Relay 1.""" + machineEdge( + """The method to use when ordering `Machine`.""" + orderBy: [MachineOrderBy!]! = [PRIMARY_KEY_ASC] + ): MachineEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `deleteMachineSession` mutation.""" +input DeleteMachineSessionInput { + """ + An arbitrary 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 `MachineSession` mutation.""" +type DeleteMachineSessionPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `MachineSession` that was deleted by this mutation.""" + machineSession: MachineSession + + """An edge for our `MachineSession`. May be used by Relay 1.""" + machineSessionEdge( + """The method to use when ordering `MachineSession`.""" + orderBy: [MachineSessionOrderBy!]! = [PRIMARY_KEY_ASC] + ): MachineSessionEdge + + """ + 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.’ +""" +input IntFilter { + """ + Not equal to the specified value, treating null like an ordinary value. + """ + distinctFrom: Int + + """Equal to the specified value.""" + equalTo: Int + + """Greater than the specified value.""" + greaterThan: Int + + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: Int + + """Included in the specified list.""" + in: [Int!] + + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean + + """Less than the specified value.""" + lessThan: Int + + """Less than or equal to the specified value.""" + lessThanOrEqualTo: Int + + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: Int + + """Not equal to the specified value.""" + notEqualTo: Int + + """Not included in the specified list.""" + notIn: [Int!] +} + +""" +Represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). +""" +scalar JSON + +""" +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 + + """Contains the specified JSON.""" + contains: JSON + + """Contains all of the specified keys.""" + containsAllKeys: [String!] + + """Contains any of the specified keys.""" + containsAnyKeys: [String!] + + """Contains the specified key.""" + containsKey: String + + """ + Not equal to the specified value, treating null like an ordinary value. + """ + distinctFrom: JSON + + """Equal to the specified value.""" + equalTo: JSON + + """Greater than the specified value.""" + greaterThan: JSON + + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: JSON + + """Included in the specified list.""" + in: [JSON!] + + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean + + """Less than the specified value.""" + lessThan: JSON + + """Less than or equal to the specified value.""" + lessThanOrEqualTo: JSON + + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: JSON + + """Not equal to the specified value.""" + notEqualTo: JSON + + """Not included in the specified list.""" + notIn: [JSON!] +} + +"""Computers enrolled for remote control, one row per database enrollment""" +type Machine { + createdAt: Datetime + createdBy: UUID + createdByPrincipal: UUID + + """ + Entity that owns this machine (a personal entity for my own laptop, an org for a shared box) + """ + entityId: UUID! + + """ + What the runner advertises: os, arch, hostname, shells, pty, installed agents, max_sessions + """ + facts: JSON! + id: UUID! + + """ + Whether this machine is a shared runner anyone with the session capability may use (false: owner only) + """ + isShared: Boolean! + + """Human-readable machine name (dan-macbook)""" + label: String! + + """Last heartbeat from the runner; online is derived from this""" + lastSeenAt: Datetime + + """Reads and enables pagination through a set of `MachineSession`.""" + machineSessions( + """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 `MachineSession`.""" + orderBy: [MachineSessionOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: MachineSessionFilter + ): MachineSessionConnection! + + """User who enrolled this machine""" + ownerId: UUID! + + """ + Server-side copy of the local policy: mode, approved commands, allowed cwds and env keys + """ + policy: JSON! + + """ + Principal this machine acts as (set with the row by _enroll) + """ + principalId: UUID + + """When enrollment was revoked; the relay refuses a revoked machine""" + revokedAt: Datetime + + """Hash of the enrollment credential the runner presents""" + tokenHash: String! + updatedAt: Datetime + updatedBy: UUID + updatedByPrincipal: UUID +} + +"""A connection to a list of `Machine` values.""" +type MachineConnection { + """ + A list of edges which contains the `Machine` and cursor to aid in pagination. + """ + edges: [MachineEdge]! + + """A list of `Machine` objects.""" + nodes: [Machine]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `Machine` you could get from the connection.""" + totalCount: Int! +} + +"""A `Machine` edge in the connection.""" +type MachineEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `Machine` at the end of the edge.""" + node: Machine +} + +""" +A filter to be used against `Machine` object types. All fields are combined with a logical ‘and.’ +""" +input MachineFilter { + """Checks for all expressions in this list.""" + and: [MachineFilter!] + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `createdBy` field.""" + createdBy: UUIDFilter + + """Filter by the object’s `createdByPrincipal` field.""" + createdByPrincipal: UUIDFilter + + """Filter by the object’s `entityId` field.""" + entityId: UUIDFilter + + """Filter by the object’s `facts` field.""" + facts: JSONFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `isShared` field.""" + isShared: BooleanFilter + + """Filter by the object’s `label` field.""" + label: StringFilter + + """Filter by the object’s `lastSeenAt` field.""" + lastSeenAt: DatetimeFilter + + """Filter by the object’s `machineSessions` relation.""" + machineSessions: MachineToManyMachineSessionFilter + + """`machineSessions` exist.""" + machineSessionsExist: Boolean + + """Negates the expression.""" + not: MachineFilter + + """Checks for any expressions in this list.""" + or: [MachineFilter!] + + """Filter by the object’s `ownerId` field.""" + ownerId: UUIDFilter + + """Filter by the object’s `policy` field.""" + policy: JSONFilter + + """Filter by the object’s `principalId` field.""" + principalId: UUIDFilter + + """Filter by the object’s `revokedAt` field.""" + revokedAt: DatetimeFilter + + """Filter by the object’s `tokenHash` field.""" + tokenHash: StringFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + + """Filter by the object’s `updatedBy` field.""" + updatedBy: UUIDFilter + + """Filter by the object’s `updatedByPrincipal` field.""" + updatedByPrincipal: UUIDFilter +} + +"""An input for mutations affecting `Machine`""" +input MachineInput { + createdAt: Datetime + createdBy: UUID + createdByPrincipal: UUID + + """ + Entity that owns this machine (a personal entity for my own laptop, an org for a shared box) + """ + entityId: UUID! + + """ + What the runner advertises: os, arch, hostname, shells, pty, installed agents, max_sessions + """ + facts: JSON + id: UUID + + """ + Whether this machine is a shared runner anyone with the session capability may use (false: owner only) + """ + isShared: Boolean + + """Human-readable machine name (dan-macbook)""" + label: String! + + """Last heartbeat from the runner; online is derived from this""" + lastSeenAt: Datetime + + """User who enrolled this machine""" + ownerId: UUID! + + """ + Server-side copy of the local policy: mode, approved commands, allowed cwds and env keys + """ + policy: JSON + + """ + Principal this machine acts as (set with the row by _enroll) + """ + principalId: UUID + + """When enrollment was revoked; the relay refuses a revoked machine""" + revokedAt: Datetime + + """Hash of the enrollment credential the runner presents""" + tokenHash: String! + updatedAt: Datetime + updatedBy: UUID + updatedByPrincipal: UUID +} + +"""Partitioned append-only ledger of session input, output and lifecycle""" +type MachineMessage { + """ + Who produced this message: the user, or the machine acting as its principal + """ + actorId: UUID! + + """Body of the message; its shape follows the kind""" + content: JSON! + + """Acting principal (agent, API key, or user) who created this record""" + createdByPrincipal: UUID + + """Entity that owns the machine this message was exchanged with""" + entityId: UUID! + + """Unique identifier (uuidv7 provides temporal ordering)""" + id: UUID! + + """ + What this message is: command, stdin, signal, resize, stdout, stderr, cwd, exit, state, policy + """ + kind: String! + + """User who owns the session this message belongs to (inherited)""" + ownerId: UUID! + + """When the message was recorded (partition key)""" + recordedAt: Datetime! + + """Position in the session's ledger, monotonically increasing""" + seq: BigInt! + + """ + Reads a single `MachineSession` that is related to this `MachineMessage`. + """ + session: MachineSession + + """Session this message belongs to""" + sessionId: UUID! +} + +"""A connection to a list of `MachineMessage` values.""" +type MachineMessageConnection { + """ + A list of edges which contains the `MachineMessage` and cursor to aid in pagination. + """ + edges: [MachineMessageEdge]! + + """A list of `MachineMessage` objects.""" + nodes: [MachineMessage]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `MachineMessage` you could get from the connection.""" + totalCount: Int! +} + +"""A `MachineMessage` edge in the connection.""" +type MachineMessageEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `MachineMessage` at the end of the edge.""" + node: MachineMessage +} + +""" +A filter to be used against `MachineMessage` object types. All fields are combined with a logical ‘and.’ +""" +input MachineMessageFilter { + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter + + """Checks for all expressions in this list.""" + and: [MachineMessageFilter!] + + """Filter by the object’s `content` field.""" + content: JSONFilter + + """Filter by the object’s `createdByPrincipal` field.""" + createdByPrincipal: UUIDFilter + + """Filter by the object’s `entityId` field.""" + entityId: UUIDFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `kind` field.""" + kind: StringFilter + + """Negates the expression.""" + not: MachineMessageFilter + + """Checks for any expressions in this list.""" + or: [MachineMessageFilter!] + + """Filter by the object’s `ownerId` field.""" + ownerId: UUIDFilter + + """Filter by the object’s `recordedAt` field.""" + recordedAt: DatetimeFilter + + """Filter by the object’s `seq` field.""" + seq: BigIntFilter + + """Filter by the object’s `session` relation.""" + session: MachineSessionFilter + + """Filter by the object’s `sessionId` field.""" + sessionId: UUIDFilter +} + +"""An input for mutations affecting `MachineMessage`""" +input MachineMessageInput { + """ + Who produced this message: the user, or the machine acting as its principal + """ + actorId: UUID! + + """Body of the message; its shape follows the kind""" + content: JSON + + """Acting principal (agent, API key, or user) who created this record""" + createdByPrincipal: UUID + + """Entity that owns the machine this message was exchanged with""" + entityId: UUID! + + """Unique identifier (uuidv7 provides temporal ordering)""" + id: UUID + + """ + What this message is: command, stdin, signal, resize, stdout, stderr, cwd, exit, state, policy + """ + kind: String! + + """User who owns the session this message belongs to (inherited)""" + ownerId: UUID! + + """When the message was recorded (partition key)""" + recordedAt: Datetime + + """Position in the session's ledger, monotonically increasing""" + seq: BigInt! + + """Session this message belongs to""" + sessionId: UUID! +} + +"""Methods to use when ordering `MachineMessage`.""" +enum MachineMessageOrderBy { + ACTOR_ID_ASC + ACTOR_ID_DESC + CONTENT_ASC + CONTENT_DESC + CREATED_BY_PRINCIPAL_ASC + CREATED_BY_PRINCIPAL_DESC + ENTITY_ID_ASC + ENTITY_ID_DESC + ID_ASC + ID_DESC + KIND_ASC + KIND_DESC + NATURAL + OWNER_ID_ASC + OWNER_ID_DESC + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + RECORDED_AT_ASC + RECORDED_AT_DESC + SEQ_ASC + SEQ_DESC + SESSION_ID_ASC + SESSION_ID_DESC +} + +""" +Represents an update to a `MachineMessage`. Fields that are set will be updated. +""" +input MachineMessagePatch { + """ + Who produced this message: the user, or the machine acting as its principal + """ + actorId: UUID + + """Body of the message; its shape follows the kind""" + content: JSON + + """Acting principal (agent, API key, or user) who created this record""" + createdByPrincipal: UUID + + """Entity that owns the machine this message was exchanged with""" + entityId: UUID + + """Unique identifier (uuidv7 provides temporal ordering)""" + id: UUID + + """ + What this message is: command, stdin, signal, resize, stdout, stderr, cwd, exit, state, policy + """ + kind: String + + """User who owns the session this message belongs to (inherited)""" + ownerId: UUID + + """When the message was recorded (partition key)""" + recordedAt: Datetime + + """Position in the session's ledger, monotonically increasing""" + seq: BigInt + + """Session this message belongs to""" + sessionId: UUID +} + +"""Methods to use when ordering `Machine`.""" +enum MachineOrderBy { + CREATED_AT_ASC + CREATED_AT_DESC + CREATED_BY_ASC + CREATED_BY_DESC + CREATED_BY_PRINCIPAL_ASC + CREATED_BY_PRINCIPAL_DESC + ENTITY_ID_ASC + ENTITY_ID_DESC + FACTS_ASC + FACTS_DESC + ID_ASC + ID_DESC + IS_SHARED_ASC + IS_SHARED_DESC + LABEL_ASC + LABEL_DESC + LAST_SEEN_AT_ASC + LAST_SEEN_AT_DESC + NATURAL + OWNER_ID_ASC + OWNER_ID_DESC + POLICY_ASC + POLICY_DESC + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + PRINCIPAL_ID_ASC + PRINCIPAL_ID_DESC + REVOKED_AT_ASC + REVOKED_AT_DESC + TOKEN_HASH_ASC + TOKEN_HASH_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + UPDATED_BY_ASC + UPDATED_BY_DESC + UPDATED_BY_PRINCIPAL_ASC + UPDATED_BY_PRINCIPAL_DESC +} + +""" +Represents an update to a `Machine`. Fields that are set will be updated. +""" +input MachinePatch { + createdAt: Datetime + createdBy: UUID + createdByPrincipal: UUID + + """ + Entity that owns this machine (a personal entity for my own laptop, an org for a shared box) + """ + entityId: UUID + + """ + What the runner advertises: os, arch, hostname, shells, pty, installed agents, max_sessions + """ + facts: JSON + id: UUID + + """ + Whether this machine is a shared runner anyone with the session capability may use (false: owner only) + """ + isShared: Boolean + + """Human-readable machine name (dan-macbook)""" + label: String + + """Last heartbeat from the runner; online is derived from this""" + lastSeenAt: Datetime + + """User who enrolled this machine""" + ownerId: UUID + + """ + Server-side copy of the local policy: mode, approved commands, allowed cwds and env keys + """ + policy: JSON + + """ + Principal this machine acts as (set with the row by _enroll) + """ + principalId: UUID + + """When enrollment was revoked; the relay refuses a revoked machine""" + revokedAt: Datetime + + """Hash of the enrollment credential the runner presents""" + tokenHash: String + updatedAt: Datetime + updatedBy: UUID + updatedByPrincipal: UUID +} + +"""Command or terminal sessions running on an enrolled machine""" +type MachineSession { + """ + How a bound session runs the agent: cli (the user's installed CLI) or embedded (our loop) + """ + agentMode: String + + """The CLI's own resumable session identifier (agent_mode = cli)""" + agentSessionRef: String + + """Arguments the command is spawned with""" + args: [String]! + + """Terminal width, preserved across reattach""" + cols: Int + + """Program the runner spawns for this session""" + command: String! + createdAt: Datetime + createdBy: UUID + createdByPrincipal: UUID + + """Working directory the runner last reported""" + cwd: String + + """When the session reached a terminal state""" + endedAt: Datetime + + """Entity that owns the machine this session runs on""" + entityId: UUID! + + """ + Non-secret environment variables for the process; policy gates which keys are allowed + """ + env: JSON! + + """Process exit status, once it ended""" + exitCode: Int + id: UUID! + + """ + Whether raw PTY bytes ride the socket (interactive) or every command is a ledger row + """ + interactive: Boolean! + + """Last time bytes moved in either direction""" + lastActivityAt: Datetime + + """Highest ledger sequence recorded for this session""" + lastSeq: BigInt! + + """Reads a single `Machine` that is related to this `MachineSession`.""" + machine: Machine + + """Machine this session runs on""" + machineId: UUID! + + """Reads and enables pagination through a set of `MachineMessage`.""" + machineMessagesBySessionId( + """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 `MachineMessage`.""" + orderBy: [MachineMessageOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: MachineMessageFilter + ): MachineMessageConnection! + + """Session detail (client, shell integration, scrollback pointer)""" + metadata: JSON + + """User who opened this session""" + ownerId: UUID! + + """Process id on the machine, while it is running""" + pid: Int + + """Agent run this session executes locally (NULL for a plain terminal)""" + runId: UUID + + """When the process was spawned""" + startedAt: Datetime + + """Lifecycle: pending, running, detached, exited, killed, failed""" + state: String! + + """Terminal height, preserved across reattach""" + termRows: Int + updatedAt: Datetime + updatedBy: UUID + updatedByPrincipal: UUID +} + +"""A connection to a list of `MachineSession` values.""" +type MachineSessionConnection { + """ + A list of edges which contains the `MachineSession` and cursor to aid in pagination. + """ + edges: [MachineSessionEdge]! + + """A list of `MachineSession` objects.""" + nodes: [MachineSession]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `MachineSession` you could get from the connection.""" + totalCount: Int! +} + +"""A `MachineSession` edge in the connection.""" +type MachineSessionEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `MachineSession` at the end of the edge.""" + node: MachineSession +} + +""" +A filter to be used against `MachineSession` object types. All fields are combined with a logical ‘and.’ +""" +input MachineSessionFilter { + """Filter by the object’s `agentMode` field.""" + agentMode: StringFilter + + """Filter by the object’s `agentSessionRef` field.""" + agentSessionRef: StringFilter + + """Checks for all expressions in this list.""" + and: [MachineSessionFilter!] + + """Filter by the object’s `args` field.""" + args: StringListFilter + + """Filter by the object’s `cols` field.""" + cols: IntFilter + + """Filter by the object’s `command` field.""" + command: StringFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `createdBy` field.""" + createdBy: UUIDFilter + + """Filter by the object’s `createdByPrincipal` field.""" + createdByPrincipal: UUIDFilter + + """Filter by the object’s `cwd` field.""" + cwd: StringFilter + + """Filter by the object’s `endedAt` field.""" + endedAt: DatetimeFilter + + """Filter by the object’s `entityId` field.""" + entityId: UUIDFilter + + """Filter by the object’s `env` field.""" + env: JSONFilter + + """Filter by the object’s `exitCode` field.""" + exitCode: IntFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `interactive` field.""" + interactive: BooleanFilter + + """Filter by the object’s `lastActivityAt` field.""" + lastActivityAt: DatetimeFilter + + """Filter by the object’s `lastSeq` field.""" + lastSeq: BigIntFilter + + """Filter by the object’s `machine` relation.""" + machine: MachineFilter + + """Filter by the object’s `machineId` field.""" + machineId: UUIDFilter + + """Filter by the object’s `machineMessagesBySessionId` relation.""" + machineMessagesBySessionId: MachineSessionToManyMachineMessageFilter + + """`machineMessagesBySessionId` exist.""" + machineMessagesBySessionIdExist: Boolean + + """Filter by the object’s `metadata` field.""" + metadata: JSONFilter + + """Negates the expression.""" + not: MachineSessionFilter + + """Checks for any expressions in this list.""" + or: [MachineSessionFilter!] + + """Filter by the object’s `ownerId` field.""" + ownerId: UUIDFilter + + """Filter by the object’s `pid` field.""" + pid: IntFilter + + """Filter by the object’s `runId` field.""" + runId: UUIDFilter + + """Filter by the object’s `startedAt` field.""" + startedAt: DatetimeFilter + + """Filter by the object’s `state` field.""" + state: StringFilter + + """Filter by the object’s `termRows` field.""" + termRows: IntFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + + """Filter by the object’s `updatedBy` field.""" + updatedBy: UUIDFilter + + """Filter by the object’s `updatedByPrincipal` field.""" + updatedByPrincipal: UUIDFilter +} + +"""An input for mutations affecting `MachineSession`""" +input MachineSessionInput { + """ + How a bound session runs the agent: cli (the user's installed CLI) or embedded (our loop) + """ + agentMode: String + + """The CLI's own resumable session identifier (agent_mode = cli)""" + agentSessionRef: String + + """Arguments the command is spawned with""" + args: [String] + + """Terminal width, preserved across reattach""" + cols: Int + + """Program the runner spawns for this session""" + command: String + createdAt: Datetime + createdBy: UUID + createdByPrincipal: UUID + + """Working directory the runner last reported""" + cwd: String + + """When the session reached a terminal state""" + endedAt: Datetime + + """Entity that owns the machine this session runs on""" + entityId: UUID! + + """ + Non-secret environment variables for the process; policy gates which keys are allowed + """ + env: JSON + + """Process exit status, once it ended""" + exitCode: Int + id: UUID + + """ + Whether raw PTY bytes ride the socket (interactive) or every command is a ledger row + """ + interactive: Boolean + + """Last time bytes moved in either direction""" + lastActivityAt: Datetime + + """Highest ledger sequence recorded for this session""" + lastSeq: BigInt + + """Machine this session runs on""" + machineId: UUID! + + """Session detail (client, shell integration, scrollback pointer)""" + metadata: JSON + + """User who opened this session""" + ownerId: UUID! + + """Process id on the machine, while it is running""" + pid: Int + + """Agent run this session executes locally (NULL for a plain terminal)""" + runId: UUID + + """When the process was spawned""" + startedAt: Datetime + + """Lifecycle: pending, running, detached, exited, killed, failed""" + state: String + + """Terminal height, preserved across reattach""" + termRows: Int + updatedAt: Datetime + updatedBy: UUID + updatedByPrincipal: UUID +} + +"""Methods to use when ordering `MachineSession`.""" +enum MachineSessionOrderBy { + AGENT_MODE_ASC + AGENT_MODE_DESC + AGENT_SESSION_REF_ASC + AGENT_SESSION_REF_DESC + ARGS_ASC + ARGS_DESC + COLS_ASC + COLS_DESC + COMMAND_ASC + COMMAND_DESC + CREATED_AT_ASC + CREATED_AT_DESC + CREATED_BY_ASC + CREATED_BY_DESC + CREATED_BY_PRINCIPAL_ASC + CREATED_BY_PRINCIPAL_DESC + CWD_ASC + CWD_DESC + ENDED_AT_ASC + ENDED_AT_DESC + ENTITY_ID_ASC + ENTITY_ID_DESC + ENV_ASC + ENV_DESC + EXIT_CODE_ASC + EXIT_CODE_DESC + ID_ASC + ID_DESC + INTERACTIVE_ASC + INTERACTIVE_DESC + LAST_ACTIVITY_AT_ASC + LAST_ACTIVITY_AT_DESC + LAST_SEQ_ASC + LAST_SEQ_DESC + MACHINE_ID_ASC + MACHINE_ID_DESC + METADATA_ASC + METADATA_DESC + NATURAL + OWNER_ID_ASC + OWNER_ID_DESC + PID_ASC + PID_DESC + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + RUN_ID_ASC + RUN_ID_DESC + STARTED_AT_ASC + STARTED_AT_DESC + STATE_ASC + STATE_DESC + TERM_ROWS_ASC + TERM_ROWS_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + UPDATED_BY_ASC + UPDATED_BY_DESC + UPDATED_BY_PRINCIPAL_ASC + UPDATED_BY_PRINCIPAL_DESC +} + +""" +Represents an update to a `MachineSession`. Fields that are set will be updated. +""" +input MachineSessionPatch { + """ + How a bound session runs the agent: cli (the user's installed CLI) or embedded (our loop) + """ + agentMode: String + + """The CLI's own resumable session identifier (agent_mode = cli)""" + agentSessionRef: String + + """Arguments the command is spawned with""" + args: [String] + + """Terminal width, preserved across reattach""" + cols: Int + + """Program the runner spawns for this session""" + command: String + createdAt: Datetime + createdBy: UUID + createdByPrincipal: UUID + + """Working directory the runner last reported""" + cwd: String + + """When the session reached a terminal state""" + endedAt: Datetime + + """Entity that owns the machine this session runs on""" + entityId: UUID + + """ + Non-secret environment variables for the process; policy gates which keys are allowed + """ + env: JSON + + """Process exit status, once it ended""" + exitCode: Int + id: UUID + + """ + Whether raw PTY bytes ride the socket (interactive) or every command is a ledger row + """ + interactive: Boolean + + """Last time bytes moved in either direction""" + lastActivityAt: Datetime + + """Highest ledger sequence recorded for this session""" + lastSeq: BigInt + + """Machine this session runs on""" + machineId: UUID + + """Session detail (client, shell integration, scrollback pointer)""" + metadata: JSON + + """User who opened this session""" + ownerId: UUID + + """Process id on the machine, while it is running""" + pid: Int + + """Agent run this session executes locally (NULL for a plain terminal)""" + runId: UUID + + """When the process was spawned""" + startedAt: Datetime + + """Lifecycle: pending, running, detached, exited, killed, failed""" + state: String + + """Terminal height, preserved across reattach""" + termRows: Int + updatedAt: Datetime + updatedBy: UUID + updatedByPrincipal: UUID +} + +""" +A filter to be used against many `MachineMessage` object types. All fields are combined with a logical ‘and.’ +""" +input MachineSessionToManyMachineMessageFilter { + """Filters to entities where every related entity matches.""" + every: MachineMessageFilter + + """Filters to entities where no related entity matches.""" + none: MachineMessageFilter + + """Filters to entities where at least one related entity matches.""" + some: MachineMessageFilter +} + +""" +A filter to be used against many `MachineSession` object types. All fields are combined with a logical ‘and.’ +""" +input MachineToManyMachineSessionFilter { + """Filters to entities where every related entity matches.""" + every: MachineSessionFilter + + """Filters to entities where no related entity matches.""" + none: MachineSessionFilter + + """Filters to entities where at least one related entity matches.""" + some: MachineSessionFilter +} + +"""All input for the `machinesEnroll` mutation.""" +input MachinesEnrollInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + entityId: UUID + isShared: Boolean + label: String + tokenHash: String +} + +"""The output of our `machinesEnroll` mutation.""" +type MachinesEnrollPayload { + """ + The 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 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 { + """GraphQL type name of the plane's buckets table""" + bucketsType: String! + + """ + Computed download-URL field on the files type; null on the buckets side + """ + downloadUrlField: String + + """GraphQL type name of the plane's files table""" + filesType: String! + + """Whether this table is a storage buckets table""" + isBucketsTable: Boolean! + + """Whether this table is a storage files table""" + isFilesTable: Boolean! + + """The plane's GraphQL upload surface""" + upload: MetaStorageUpload! +} + +""" +The GraphQL upload surface of a storage plane, derived from the registry facts the presigned-url plugin emits from +""" +type MetaStorageUpload { + """Per-file input type inside the bulk input""" + bulkFileInputType: String! + + """Per-file payload type inside the bulk payload""" + bulkFilePayloadType: String! + + """Input type of the bulk upload mutation""" + bulkInputType: String! + + """Root mutation field for bulk upload""" + bulkMutation: String! + + """Payload type of the bulk upload mutation""" + bulkPayloadType: String! + + """Input type of the single upload mutation""" + inputType: String! + + """Root mutation field for single-file upload (e.g. uploadAppFile)""" + mutation: String! + + """Payload type of the single upload mutation""" + payloadType: String! + + """Whether the upload input requires ownerId (entity-keyed plane)""" + requiresOwnerId: 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 { + """Creates a single `Machine`.""" + createMachine( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateMachineInput! + ): CreateMachinePayload + + """Creates a single `MachineMessage`.""" + createMachineMessage( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateMachineMessageInput! + ): CreateMachineMessagePayload + + """Creates a single `MachineSession`.""" + createMachineSession( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateMachineSessionInput! + ): CreateMachineSessionPayload + + """Deletes a single `Machine` using a unique key.""" + deleteMachine( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteMachineInput! + ): DeleteMachinePayload + + """Deletes a single `MachineMessage` using a unique key.""" + deleteMachineMessage( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteMachineMessageInput! + ): DeleteMachineMessagePayload + + """Deletes a single `MachineSession` using a unique key.""" + deleteMachineSession( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteMachineSessionInput! + ): DeleteMachineSessionPayload + machinesEnroll( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: MachinesEnrollInput! + ): MachinesEnrollPayload + + """ + Reconcile an S3 bucket for a logical bucket in the database. + Reads the bucket config via RLS, then enqueues the same + storage:provision_bucket job used by the INSERT trigger. This is + idempotent for an already-reconciled bucket; enqueue failures become + GraphQL errors. + """ + provisionBucket( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: ProvisionBucketInput! + ): ProvisionBucketPayload + + """Updates a single `Machine` using a unique key and a patch.""" + updateMachine( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateMachineInput! + ): UpdateMachinePayload + + """Updates a single `MachineMessage` using a unique key and a patch.""" + updateMachineMessage( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateMachineMessageInput! + ): UpdateMachineMessagePayload + + """Updates a single `MachineSession` using a unique key and a patch.""" + updateMachineSession( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateMachineSessionInput! + ): UpdateMachineSessionPayload +} + +"""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 +} + +input 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: UUID +} + +type ProvisionBucketPayload { + """The logical bucket row that was queued for reconciliation.""" + bucketId: UUID! + bucketKey: String! + + """The reconciler job enqueued to provision this bucket.""" + jobId: UUID! + + """ + The physical bucket name already recorded, or null when reconciliation has not completed. + """ + physicalName: String +} + +"""The root query type which gives access points into the data universe.""" +type Query { + """ + Metadata about the database schema, including tables, fields, indexes, and constraints. Useful for code generation tools. + """ + _meta: MetaSchema + + """Reads and enables pagination through a set of `MachineMessage`.""" + machineMessages( + """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 `MachineMessage`.""" + orderBy: [MachineMessageOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: MachineMessageFilter + ): MachineMessageConnection + + """Reads and enables pagination through a set of `MachineSession`.""" + machineSessions( + """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 `MachineSession`.""" + orderBy: [MachineSessionOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: MachineSessionFilter + ): MachineSessionConnection + + """Reads and enables pagination through a set of `Machine`.""" + machines( + """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 `Machine`.""" + orderBy: [MachineOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: MachineFilter + ): MachineConnection +} + +""" +A filter to be used against String fields. All fields are combined with a logical ‘and.’ +""" +input 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 filter to be used against String List fields. All fields are combined with a logical ‘and.’ +""" +input StringListFilter { + """Any array item is equal to the specified value.""" + anyEqualTo: String + + """Any array item is greater than the specified value.""" + anyGreaterThan: String + + """Any array item is greater than or equal to the specified value.""" + anyGreaterThanOrEqualTo: String + + """Any array item is less than the specified value.""" + anyLessThan: String + + """Any array item is less than or equal to the specified value.""" + anyLessThanOrEqualTo: String + + """Any array item is not equal to the specified value.""" + anyNotEqualTo: String + + """Contained by the specified list of values.""" + containedBy: [String] + + """Contains the specified list of values.""" + contains: [String] + + """ + 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] + + """ + 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] + + """Overlaps the specified list of values.""" + overlaps: [String] +} + +""" +A universally unique identifier as defined by [RFC 4122](https://tools.ietf.org/html/rfc4122). +""" +scalar UUID + +""" +A filter to be used against UUID fields. All fields are combined with a logical ‘and.’ +""" +input UUIDFilter { + """ + Not equal to the specified value, treating null like an ordinary value. + """ + distinctFrom: UUID + + """Equal to the specified value.""" + equalTo: UUID + + """Greater than the specified value.""" + greaterThan: UUID + + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: UUID + + """Included in the specified list.""" + in: [UUID!] + + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean + + """Less than the specified value.""" + lessThan: UUID + + """Less than or equal to the specified value.""" + lessThanOrEqualTo: 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 `updateMachine` mutation.""" +input UpdateMachineInput { + """ + An arbitrary 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 `Machine` being updated. + """ + machinePatch: MachinePatch! +} + +"""All input for the `updateMachineMessage` mutation.""" +input UpdateMachineMessageInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """Unique identifier (uuidv7 provides temporal ordering)""" + id: UUID! + + """ + An object where the defined keys will be set on the `MachineMessage` being updated. + """ + machineMessagePatch: MachineMessagePatch! + + """When the message was recorded (partition key)""" + recordedAt: Datetime! +} + +"""The output of our update `MachineMessage` mutation.""" +type UpdateMachineMessagePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `MachineMessage` that was updated by this mutation.""" + machineMessage: MachineMessage + + """An edge for our `MachineMessage`. May be used by Relay 1.""" + machineMessageEdge( + """The method to use when ordering `MachineMessage`.""" + orderBy: [MachineMessageOrderBy!]! = [PRIMARY_KEY_ASC] + ): MachineMessageEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""The output of our update `Machine` mutation.""" +type UpdateMachinePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `Machine` that was updated by this mutation.""" + machine: Machine + + """An edge for our `Machine`. May be used by Relay 1.""" + machineEdge( + """The method to use when ordering `Machine`.""" + orderBy: [MachineOrderBy!]! = [PRIMARY_KEY_ASC] + ): MachineEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `updateMachineSession` mutation.""" +input UpdateMachineSessionInput { + """ + An arbitrary 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 `MachineSession` being updated. + """ + machineSessionPatch: MachineSessionPatch! +} + +"""The output of our update `MachineSession` mutation.""" +type UpdateMachineSessionPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `MachineSession` that was updated by this mutation.""" + machineSession: MachineSession + + """An edge for our `MachineSession`. May be used by Relay 1.""" + machineSessionEdge( + """The method to use when ordering `MachineSession`.""" + orderBy: [MachineSessionOrderBy!]! = [PRIMARY_KEY_ASC] + ): MachineSessionEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} \ No newline at end of file diff --git a/sdk/constructive-sdk/schemas/storage.graphql b/sdk/constructive-sdk/schemas/storage.graphql new file mode 100644 index 0000000000..69df9099d0 --- /dev/null +++ b/sdk/constructive-sdk/schemas/storage.graphql @@ -0,0 +1,3643 @@ +""" +A signed eight-byte integer. The upper big integer values are greater than the +max value for a JavaScript number. Therefore all big integers will be output as +strings and not numbers. +""" +scalar BigInt + +""" +A filter to be used against BigInt fields. All fields are combined with a logical ‘and.’ +""" +input BigIntFilter { + """ + Not equal to the specified value, treating null like an ordinary value. + """ + distinctFrom: BigInt + + """Equal to the specified value.""" + equalTo: BigInt + + """Greater than the specified value.""" + greaterThan: BigInt + + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: BigInt + + """Included in the specified list.""" + in: [BigInt!] + + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean + + """Less than the specified value.""" + lessThan: BigInt + + """Less than or equal to the specified value.""" + lessThanOrEqualTo: BigInt + + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: BigInt + + """Not equal to the specified value.""" + notEqualTo: BigInt + + """Not included in the specified list.""" + notIn: [BigInt!] +} + +""" +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). + """ + 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!] +} + +""" +Logical storage containers that group files with shared access policies and CDN behavior +""" +type Bucket { + """User who created this bucket. Forced to current_user_id() on INSERT.""" + actorId: UUID! + + """ + When true, clients can provide custom S3 keys (e.g. reports/2024/Q1.pdf). When false (default), S3 key = content hash (automatic dedup). contentHash always required for integrity. + """ + allowCustomKeys: Boolean! + + """ + Whitelist of allowed MIME types for files in this bucket (NULL = all allowed, enforcement deferred) + """ + allowedMimeTypes: [String] + + """ + Per-bucket CORS allowed origins override (NULL = inherit from storage_module/plugin defaults). Use ARRAY['*'] for open/CDN mode. + """ + allowedOrigins: [String] + + """Reads and enables pagination through a set of `Bucket`.""" + bucketsByDestinationBucketId( + """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 `Bucket`.""" + orderBy: [BucketOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: BucketFilter + ): BucketConnection! + createdAt: Datetime + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! + + """Human-readable description of the bucket purpose""" + description: String + + """Reads a single `Bucket` that is related to this `Bucket`.""" + destinationBucket: Bucket + + """ + For a temp bucket, the permanent bucket its uploads are promoted into. NULL on non-temp buckets; required on temp buckets. + """ + destinationBucketId: UUID + + """Reads and enables pagination through a set of `File`.""" + files( + """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 `File`.""" + orderBy: [FileOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: FileFilter + ): FileConnection! + id: UUID! + + """ + Whether bucket contents are publicly readable. Set to true when type is public. + """ + isPublic: Boolean! + + """ + Unique bucket identifier used in S3 key paths (e.g. avatars, documents, temp) + """ + key: String! + + """ + Maximum file size in bytes allowed in this bucket (NULL = no limit, enforcement deferred) + """ + maxFileSize: BigInt + + """ + Physical S3/MinIO bucket name recorded at provision time (NULL until the physical bucket exists) + """ + physicalName: String + + """ + For a temp bucket, how long an unpromoted staged file survives before it is eligible for expiry. NULL on non-temp buckets; required on temp buckets. + """ + stagingTtl: Interval + + """ + Selector labels for capability resolution and grouping (e.g. uploads, variants, exports). A function's required bucket key is matched against these plus type. + """ + tags: [String] + + """ + Bucket CDN access type: public (CDN-served), private (presigned GET), temp (staging uploads) + """ + type: BucketType! + updatedAt: Datetime +} + +"""A connection to a list of `Bucket` values.""" +type BucketConnection { + """ + A list of edges which contains the `Bucket` and cursor to aid in pagination. + """ + edges: [BucketEdge]! + + """A list of `Bucket` objects.""" + nodes: [Bucket]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `Bucket` you could get from the connection.""" + totalCount: Int! +} + +"""A `Bucket` edge in the connection.""" +type BucketEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `Bucket` at the end of the edge.""" + node: Bucket +} + +""" +A filter to be used against `Bucket` object types. All fields are combined with a logical ‘and.’ +""" +input BucketFilter { + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter + + """Filter by the object’s `allowCustomKeys` field.""" + allowCustomKeys: BooleanFilter + + """Filter by the object’s `allowedMimeTypes` field.""" + allowedMimeTypes: StringListFilter + + """Filter by the object’s `allowedOrigins` field.""" + allowedOrigins: StringListFilter + + """Checks for all expressions in this list.""" + and: [BucketFilter!] + + """Filter by the object’s `bucketsByDestinationBucketId` relation.""" + bucketsByDestinationBucketId: BucketToManyBucketFilter + + """`bucketsByDestinationBucketId` exist.""" + bucketsByDestinationBucketIdExist: Boolean + + """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 `destinationBucket` relation.""" + destinationBucket: BucketFilter + + """A related `destinationBucket` exists.""" + destinationBucketExists: Boolean + + """Filter by the object’s `destinationBucketId` field.""" + destinationBucketId: UUIDFilter + + """Filter by the object’s `files` relation.""" + files: BucketToManyFileFilter + + """`files` exist.""" + filesExist: Boolean + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `isPublic` field.""" + isPublic: BooleanFilter + + """Filter by the object’s `key` field.""" + key: StringFilter + + """Filter by the object’s `maxFileSize` field.""" + maxFileSize: BigIntFilter + + """Negates the expression.""" + not: BucketFilter + + """Checks for any expressions in this list.""" + or: [BucketFilter!] + + """Filter by the object’s `physicalName` field.""" + physicalName: StringFilter + + """Filter by the object’s `stagingTtl` field.""" + stagingTtl: IntervalFilter + + """Filter by the object’s `tags` field.""" + tags: StringListFilter + + """Filter by the object’s `type` field.""" + type: BucketTypeFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter +} + +"""An input for mutations affecting `Bucket`""" +input BucketInput { + """User who created this bucket. Forced to current_user_id() on INSERT.""" + actorId: UUID! + + """ + When true, clients can provide custom S3 keys (e.g. reports/2024/Q1.pdf). When false (default), S3 key = content hash (automatic dedup). contentHash always required for integrity. + """ + allowCustomKeys: Boolean + + """ + Whitelist of allowed MIME types for files in this bucket (NULL = all allowed, enforcement deferred) + """ + allowedMimeTypes: [String] + + """ + Per-bucket CORS allowed origins override (NULL = inherit from storage_module/plugin defaults). Use ARRAY['*'] for open/CDN mode. + """ + allowedOrigins: [String] + createdAt: Datetime + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! + + """Human-readable description of the bucket purpose""" + description: String + + """ + For a temp bucket, the permanent bucket its uploads are promoted into. NULL on non-temp buckets; required on temp buckets. + """ + destinationBucketId: UUID + id: UUID + + """ + Whether bucket contents are publicly readable. Set to true when type is public. + """ + isPublic: Boolean + + """ + Unique bucket identifier used in S3 key paths (e.g. avatars, documents, temp) + """ + key: String! + + """ + Maximum file size in bytes allowed in this bucket (NULL = no limit, enforcement deferred) + """ + maxFileSize: BigInt + + """ + Physical S3/MinIO bucket name recorded at provision time (NULL until the physical bucket exists) + """ + physicalName: String + + """ + For a temp bucket, how long an unpromoted staged file survives before it is eligible for expiry. NULL on non-temp buckets; required on temp buckets. + """ + stagingTtl: IntervalInput + + """ + Selector labels for capability resolution and grouping (e.g. uploads, variants, exports). A function's required bucket key is matched against these plus type. + """ + tags: [String] + + """ + Bucket CDN access type: public (CDN-served), private (presigned GET), temp (staging uploads) + """ + type: BucketType + updatedAt: Datetime +} + +"""Methods to use when ordering `Bucket`.""" +enum BucketOrderBy { + ACTOR_ID_ASC + ACTOR_ID_DESC + ALLOWED_MIME_TYPES_ASC + ALLOWED_MIME_TYPES_DESC + ALLOWED_ORIGINS_ASC + ALLOWED_ORIGINS_DESC + ALLOW_CUSTOM_KEYS_ASC + ALLOW_CUSTOM_KEYS_DESC + CREATED_AT_ASC + CREATED_AT_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + DESCRIPTION_ASC + DESCRIPTION_DESC + DESTINATION_BUCKET_ID_ASC + DESTINATION_BUCKET_ID_DESC + ID_ASC + ID_DESC + IS_PUBLIC_ASC + IS_PUBLIC_DESC + KEY_ASC + KEY_DESC + MAX_FILE_SIZE_ASC + MAX_FILE_SIZE_DESC + NATURAL + PHYSICAL_NAME_ASC + PHYSICAL_NAME_DESC + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + STAGING_TTL_ASC + STAGING_TTL_DESC + TAGS_ASC + TAGS_DESC + TYPE_ASC + TYPE_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC +} + +""" +Represents an update to a `Bucket`. Fields that are set will be updated. +""" +input BucketPatch { + """User who created this bucket. Forced to current_user_id() on INSERT.""" + actorId: UUID + + """ + When true, clients can provide custom S3 keys (e.g. reports/2024/Q1.pdf). When false (default), S3 key = content hash (automatic dedup). contentHash always required for integrity. + """ + allowCustomKeys: Boolean + + """ + Whitelist of allowed MIME types for files in this bucket (NULL = all allowed, enforcement deferred) + """ + allowedMimeTypes: [String] + + """ + Per-bucket CORS allowed origins override (NULL = inherit from storage_module/plugin defaults). Use ARRAY['*'] for open/CDN mode. + """ + allowedOrigins: [String] + createdAt: Datetime + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID + + """Human-readable description of the bucket purpose""" + description: String + + """ + For a temp bucket, the permanent bucket its uploads are promoted into. NULL on non-temp buckets; required on temp buckets. + """ + destinationBucketId: UUID + id: UUID + + """ + Whether bucket contents are publicly readable. Set to true when type is public. + """ + isPublic: Boolean + + """ + Unique bucket identifier used in S3 key paths (e.g. avatars, documents, temp) + """ + key: String + + """ + Maximum file size in bytes allowed in this bucket (NULL = no limit, enforcement deferred) + """ + maxFileSize: BigInt + + """ + Physical S3/MinIO bucket name recorded at provision time (NULL until the physical bucket exists) + """ + physicalName: String + + """ + For a temp bucket, how long an unpromoted staged file survives before it is eligible for expiry. NULL on non-temp buckets; required on temp buckets. + """ + stagingTtl: IntervalInput + + """ + Selector labels for capability resolution and grouping (e.g. uploads, variants, exports). A function's required bucket key is matched against these plus type. + """ + tags: [String] + + """ + Bucket CDN access type: public (CDN-served), private (presigned GET), temp (staging uploads) + """ + type: BucketType + updatedAt: Datetime +} + +""" +A filter to be used against many `Bucket` object types. All fields are combined with a logical ‘and.’ +""" +input BucketToManyBucketFilter { + """Filters to entities where every related entity matches.""" + every: BucketFilter + + """Filters to entities where no related entity matches.""" + none: BucketFilter + + """Filters to entities where at least one related entity matches.""" + some: BucketFilter +} + +""" +A filter to be used against many `File` object types. All fields are combined with a logical ‘and.’ +""" +input BucketToManyFileFilter { + """Filters to entities where every related entity matches.""" + every: FileFilter + + """Filters to entities where no related entity matches.""" + none: FileFilter + + """Filters to entities where at least one related entity matches.""" + some: FileFilter +} + +enum BucketType { + PRIVATE + PUBLIC + TEMP +} + +""" +A filter to be used against BucketType fields. All fields are combined with a logical ‘and.’ +""" +input BucketTypeFilter { + """ + Not equal to the specified value, treating null like an ordinary value. + """ + distinctFrom: BucketType + + """Equal to the specified value.""" + equalTo: BucketType + + """Greater than the specified value.""" + greaterThan: BucketType + + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: BucketType + + """Included in the specified list.""" + in: [BucketType!] + + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean + + """Less than the specified value.""" + lessThan: BucketType + + """Less than or equal to the specified value.""" + lessThanOrEqualTo: BucketType + + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: BucketType + + """Not equal to the specified value.""" + notEqualTo: BucketType + + """Not included in the specified list.""" + notIn: [BucketType!] +} + +scalar ConstructiveInternalTypeUpload + +""" +A filter to be used against ConstructiveInternalTypeUpload fields. All fields are combined with a logical ‘and.’ +""" +input ConstructiveInternalTypeUploadFilter { + """Contained by the specified JSON.""" + containedBy: ConstructiveInternalTypeUpload + + """Contains the specified JSON.""" + contains: ConstructiveInternalTypeUpload + + """Contains all of the specified keys.""" + containsAllKeys: [String!] + + """Contains any of the specified keys.""" + containsAnyKeys: [String!] + + """Contains the specified key.""" + containsKey: String + + """ + Not equal to the specified value, treating null like an ordinary value. + """ + distinctFrom: ConstructiveInternalTypeUpload + + """Equal to the specified value.""" + equalTo: ConstructiveInternalTypeUpload + + """Greater than the specified value.""" + greaterThan: ConstructiveInternalTypeUpload + + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: ConstructiveInternalTypeUpload + + """Included in the specified list.""" + in: [ConstructiveInternalTypeUpload!] + + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean + + """Less than the specified value.""" + lessThan: ConstructiveInternalTypeUpload + + """Less than or equal to the specified value.""" + lessThanOrEqualTo: ConstructiveInternalTypeUpload + + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: ConstructiveInternalTypeUpload + + """Not equal to the specified value.""" + notEqualTo: ConstructiveInternalTypeUpload + + """Not included in the specified list.""" + notIn: [ConstructiveInternalTypeUpload!] +} + +"""All input for the create `Bucket` mutation.""" +input CreateBucketInput { + """The `Bucket` to be created by this mutation.""" + bucket: BucketInput! + + """ + An arbitrary 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 `Bucket` mutation.""" +type CreateBucketPayload { + """The `Bucket` that was created by this mutation.""" + bucket: Bucket + + """An edge for our `Bucket`. May be used by Relay 1.""" + bucketEdge( + """The method to use when ordering `Bucket`.""" + orderBy: [BucketOrderBy!]! = [PRIMARY_KEY_ASC] + ): BucketEdge + + """ + The 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 `File` mutation.""" +input CreateFileInput { + """ + An arbitrary 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 `File` to be created by this mutation.""" + file: FileInput! +} + +"""The output of our create `File` mutation.""" +type CreateFilePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `File` that was created by this mutation.""" + file: File + + """An edge for our `File`. May be used by Relay 1.""" + fileEdge( + """The method to use when ordering `File`.""" + orderBy: [FileOrderBy!]! = [PRIMARY_KEY_ASC] + ): FileEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the create `PlatformBucket` mutation.""" +input CreatePlatformBucketInput { + """ + An arbitrary 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 `PlatformBucket` to be created by this mutation.""" + platformBucket: PlatformBucketInput! +} + +"""The output of our create `PlatformBucket` mutation.""" +type CreatePlatformBucketPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `PlatformBucket` that was created by this mutation.""" + platformBucket: PlatformBucket + + """An edge for our `PlatformBucket`. May be used by Relay 1.""" + platformBucketEdge( + """The method to use when ordering `PlatformBucket`.""" + orderBy: [PlatformBucketOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformBucketEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the create `PlatformFile` mutation.""" +input CreatePlatformFileInput { + """ + An arbitrary 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 `PlatformFile` to be created by this mutation.""" + platformFile: PlatformFileInput! +} + +"""The output of our create `PlatformFile` mutation.""" +type CreatePlatformFilePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `PlatformFile` that was created by this mutation.""" + platformFile: PlatformFile + + """An edge for our `PlatformFile`. May be used by Relay 1.""" + platformFileEdge( + """The method to use when ordering `PlatformFile`.""" + orderBy: [PlatformFileOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformFileEdge + + """ + 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 + +""" +A point in time as described by the [ISO +8601](https://en.wikipedia.org/wiki/ISO_8601) and, if it has a timezone, [RFC +3339](https://datatracker.ietf.org/doc/html/rfc3339) standards. Input values +that do not conform to both ISO 8601 and RFC 3339 may be coerced, which may lead +to unexpected results. +""" +scalar Datetime + +""" +A filter to be used against Datetime fields. All fields are combined with a logical ‘and.’ +""" +input DatetimeFilter { + """ + Not equal to the specified value, treating null like an ordinary value. + """ + distinctFrom: Datetime + + """Equal to the specified value.""" + equalTo: Datetime + + """Greater than the specified value.""" + greaterThan: Datetime + + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: Datetime + + """Included in the specified list.""" + in: [Datetime!] + + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean + + """Less than the specified value.""" + lessThan: Datetime + + """Less than or equal to the specified value.""" + lessThanOrEqualTo: Datetime + + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: Datetime + + """Not equal to the specified value.""" + notEqualTo: Datetime + + """Not included in the specified list.""" + notIn: [Datetime!] +} + +"""All input for the `deleteBucket` mutation.""" +input DeleteBucketInput { + """ + An arbitrary 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 `Bucket` mutation.""" +type DeleteBucketPayload { + """The `Bucket` that was deleted by this mutation.""" + bucket: Bucket + + """An edge for our `Bucket`. May be used by Relay 1.""" + bucketEdge( + """The method to use when ordering `Bucket`.""" + orderBy: [BucketOrderBy!]! = [PRIMARY_KEY_ASC] + ): BucketEdge + + """ + The 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 `deleteFile` mutation.""" +input DeleteFileInput { + """ + An arbitrary 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 `File` mutation.""" +type DeleteFilePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `File` that was deleted by this mutation.""" + file: File + + """An edge for our `File`. May be used by Relay 1.""" + fileEdge( + """The method to use when ordering `File`.""" + orderBy: [FileOrderBy!]! = [PRIMARY_KEY_ASC] + ): FileEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `deletePlatformBucket` mutation.""" +input DeletePlatformBucketInput { + """ + An arbitrary 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 `PlatformBucket` mutation.""" +type DeletePlatformBucketPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `PlatformBucket` that was deleted by this mutation.""" + platformBucket: PlatformBucket + + """An edge for our `PlatformBucket`. May be used by Relay 1.""" + platformBucketEdge( + """The method to use when ordering `PlatformBucket`.""" + orderBy: [PlatformBucketOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformBucketEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `deletePlatformFile` mutation.""" +input DeletePlatformFileInput { + """ + An arbitrary 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 `PlatformFile` mutation.""" +type DeletePlatformFilePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `PlatformFile` that was deleted by this mutation.""" + platformFile: PlatformFile + + """An edge for our `PlatformFile`. May be used by Relay 1.""" + platformFileEdge( + """The method to use when ordering `PlatformFile`.""" + orderBy: [PlatformFileOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformFileEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +""" +Individual file records within buckets, with immutable identity fields and mutable metadata +""" +type File { + """ + User who uploaded this file. Forced to current_user_id() on INSERT. Used for UPDATE/DELETE authorization. + """ + actorId: UUID! + + """Reads a single `Bucket` that is related to this `File`.""" + bucket: Bucket + + """ + Bucket this file belongs to. Determines owner_id and is_public via inheritance trigger. + """ + bucketId: UUID! + + """ + SHA-256 content hash for integrity verification and dedup. In default mode, equals the S3 key. In custom key mode, stored separately. + """ + contentHash: String + createdAt: Datetime + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! + + """Human-readable description or alt text for the file (mutable)""" + description: String + + """ + URL to download this file. For public files, returns the public URL. For private files, returns a time-limited presigned URL. + """ + downloadUrl: String + + """ + When the staged-expiry sweep enqueued deletion of this file's object. NULL until it expires; set once so expiry is enqueued exactly once. + """ + expiryEnqueuedAt: Datetime + filePath: String + + """ + Original filename provided by the uploader. Used for display and Content-Disposition header on download. + """ + filename: String + id: UUID! + + """ + Whether this file is publicly readable. Inherited from bucket on INSERT. + """ + isPublic: Boolean! + + """S3 object key for this file, unique within its bucket""" + key: String! + + """ + MIME type of the file (e.g. image/png, application/pdf). Immutable after INSERT. + """ + mimeType: String! + + """ + When this file was promoted out of its staging bucket into its destination bucket. NULL for a file that was never staged, or is still staged. + """ + promotedAt: Datetime + + """File size in bytes. Immutable after INSERT.""" + size: BigInt! + + """ + File lifecycle status: requested (presigned URL generated, not yet in S3), uploaded (file in S3 and content validated, ready for use), processed (image resized, text extracted, embedding computed), rejected (declared type disagreed with the bytes), expired (bytes never arrived before the confirm window closed). + """ + status: FileStatus! + + """User-defined tags for categorization and search (mutable)""" + tags: [String] + updatedAt: Datetime + + """ + Processed file reference (upload domain). Populated by processing jobs after file is uploaded. Copy this value to other tables to reference the file. + """ + upload: ConstructiveInternalTypeUpload +} + +"""A connection to a list of `File` values.""" +type FileConnection { + """ + A list of edges which contains the `File` and cursor to aid in pagination. + """ + edges: [FileEdge]! + + """A list of `File` objects.""" + nodes: [File]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `File` you could get from the connection.""" + totalCount: Int! +} + +"""A `File` edge in the connection.""" +type FileEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `File` at the end of the edge.""" + node: File +} + +""" +A filter to be used against `File` object types. All fields are combined with a logical ‘and.’ +""" +input FileFilter { + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter + + """Checks for all expressions in this list.""" + and: [FileFilter!] + + """Filter by the object’s `bucket` relation.""" + bucket: BucketFilter + + """Filter by the object’s `bucketId` field.""" + bucketId: UUIDFilter + + """Filter by the object’s `contentHash` field.""" + contentHash: 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 `expiryEnqueuedAt` field.""" + expiryEnqueuedAt: DatetimeFilter + + """Filter by the object’s `filename` field.""" + filename: StringFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `isPublic` field.""" + isPublic: BooleanFilter + + """Filter by the object’s `key` field.""" + key: StringFilter + + """Filter by the object’s `mimeType` field.""" + mimeType: StringFilter + + """Negates the expression.""" + not: FileFilter + + """Checks for any expressions in this list.""" + or: [FileFilter!] + + """Filter by the object’s `promotedAt` field.""" + promotedAt: DatetimeFilter + + """Filter by the object’s `size` field.""" + size: BigIntFilter + + """Filter by the object’s `status` field.""" + status: FileStatusFilter + + """Filter by the object’s `tags` field.""" + tags: StringListFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + + """Filter by the object’s `upload` field.""" + upload: ConstructiveInternalTypeUploadFilter +} + +"""An input for mutations affecting `File`""" +input FileInput { + """ + User who uploaded this file. Forced to current_user_id() on INSERT. Used for UPDATE/DELETE authorization. + """ + actorId: UUID! + + """ + Bucket this file belongs to. Determines owner_id and is_public via inheritance trigger. + """ + bucketId: UUID! + + """ + SHA-256 content hash for integrity verification and dedup. In default mode, equals the S3 key. In custom key mode, stored separately. + """ + contentHash: String + createdAt: Datetime + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! + + """Human-readable description or alt text for the file (mutable)""" + description: String + + """ + When the staged-expiry sweep enqueued deletion of this file's object. NULL until it expires; set once so expiry is enqueued exactly once. + """ + expiryEnqueuedAt: Datetime + + """ + Original filename provided by the uploader. Used for display and Content-Disposition header on download. + """ + filename: String + id: UUID + + """ + Whether this file is publicly readable. Inherited from bucket on INSERT. + """ + isPublic: Boolean + + """S3 object key for this file, unique within its bucket""" + key: String! + + """ + MIME type of the file (e.g. image/png, application/pdf). Immutable after INSERT. + """ + mimeType: String! + + """ + When this file was promoted out of its staging bucket into its destination bucket. NULL for a file that was never staged, or is still staged. + """ + promotedAt: Datetime + + """File size in bytes. Immutable after INSERT.""" + size: BigInt! + + """ + File lifecycle status: requested (presigned URL generated, not yet in S3), uploaded (file in S3 and content validated, ready for use), processed (image resized, text extracted, embedding computed), rejected (declared type disagreed with the bytes), expired (bytes never arrived before the confirm window closed). + """ + status: FileStatus + + """User-defined tags for categorization and search (mutable)""" + tags: [String] + updatedAt: Datetime + + """ + Processed file reference (upload domain). Populated by processing jobs after file is uploaded. Copy this value to other tables to reference the file. + """ + upload: ConstructiveInternalTypeUpload +} + +"""Methods to use when ordering `File`.""" +enum FileOrderBy { + ACTOR_ID_ASC + ACTOR_ID_DESC + BUCKET_ID_ASC + BUCKET_ID_DESC + CONTENT_HASH_ASC + CONTENT_HASH_DESC + CREATED_AT_ASC + CREATED_AT_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + DESCRIPTION_ASC + DESCRIPTION_DESC + EXPIRY_ENQUEUED_AT_ASC + EXPIRY_ENQUEUED_AT_DESC + FILENAME_ASC + FILENAME_DESC + ID_ASC + ID_DESC + IS_PUBLIC_ASC + IS_PUBLIC_DESC + KEY_ASC + KEY_DESC + MIME_TYPE_ASC + MIME_TYPE_DESC + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + PROMOTED_AT_ASC + PROMOTED_AT_DESC + SIZE_ASC + SIZE_DESC + STATUS_ASC + STATUS_DESC + TAGS_ASC + TAGS_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + UPLOAD_ASC + UPLOAD_DESC +} + +"""Represents an update to a `File`. Fields that are set will be updated.""" +input FilePatch { + """ + User who uploaded this file. Forced to current_user_id() on INSERT. Used for UPDATE/DELETE authorization. + """ + actorId: UUID + + """ + Bucket this file belongs to. Determines owner_id and is_public via inheritance trigger. + """ + bucketId: UUID + + """ + SHA-256 content hash for integrity verification and dedup. In default mode, equals the S3 key. In custom key mode, stored separately. + """ + contentHash: String + createdAt: Datetime + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID + + """Human-readable description or alt text for the file (mutable)""" + description: String + + """ + When the staged-expiry sweep enqueued deletion of this file's object. NULL until it expires; set once so expiry is enqueued exactly once. + """ + expiryEnqueuedAt: Datetime + + """ + Original filename provided by the uploader. Used for display and Content-Disposition header on download. + """ + filename: String + id: UUID + + """ + Whether this file is publicly readable. Inherited from bucket on INSERT. + """ + isPublic: Boolean + + """S3 object key for this file, unique within its bucket""" + key: String + + """ + MIME type of the file (e.g. image/png, application/pdf). Immutable after INSERT. + """ + mimeType: String + + """ + When this file was promoted out of its staging bucket into its destination bucket. NULL for a file that was never staged, or is still staged. + """ + promotedAt: Datetime + + """File size in bytes. Immutable after INSERT.""" + size: BigInt + + """ + File lifecycle status: requested (presigned URL generated, not yet in S3), uploaded (file in S3 and content validated, ready for use), processed (image resized, text extracted, embedding computed), rejected (declared type disagreed with the bytes), expired (bytes never arrived before the confirm window closed). + """ + status: FileStatus + + """User-defined tags for categorization and search (mutable)""" + tags: [String] + updatedAt: Datetime + + """ + Processed file reference (upload domain). Populated by processing jobs after file is uploaded. Copy this value to other tables to reference the file. + """ + upload: ConstructiveInternalTypeUpload + + """ + Upload for Processed file reference (upload domain). Populated by processing jobs after file is uploaded. Copy this value to other tables to reference the file. + """ + uploadUpload: Upload +} + +enum FileStatus { + EXPIRED + PROCESSED + REJECTED + REQUESTED + UPLOADED +} + +""" +A filter to be used against FileStatus fields. All fields are combined with a logical ‘and.’ +""" +input FileStatusFilter { + """ + Not equal to the specified value, treating null like an ordinary value. + """ + distinctFrom: FileStatus + + """Equal to the specified value.""" + equalTo: FileStatus + + """Greater than the specified value.""" + greaterThan: FileStatus + + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: FileStatus + + """Included in the specified list.""" + in: [FileStatus!] + + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean + + """Less than the specified value.""" + lessThan: FileStatus + + """Less than or equal to the specified value.""" + lessThanOrEqualTo: FileStatus + + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: FileStatus + + """Not equal to the specified value.""" + notEqualTo: FileStatus + + """Not included in the specified list.""" + notIn: [FileStatus!] +} + +"""All input for the `filesRename` mutation.""" +input FilesRenameInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + fileId: UUID + newFilename: String +} + +"""The output of our `filesRename` mutation.""" +type FilesRenamePayload { + """ + The 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 `File`. May be used by Relay 1.""" + fileEdge( + """The method to use when ordering `File`.""" + orderBy: [FileOrderBy!]! = [PRIMARY_KEY_ASC] + ): FileEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + result: File +} + +""" +An interval of time that has passed where the smallest distinct unit is a second. +""" +type Interval { + """A quantity of days.""" + days: Int + + """A quantity of hours.""" + hours: Int + + """A quantity of minutes.""" + minutes: Int + + """A quantity of months.""" + months: Int + + """ + A quantity of seconds. This is the only non-integer field, as all the other + fields will dump their overflow into a smaller unit of time. Intervals don’t + have a smaller unit than seconds. + """ + seconds: Float + + """A quantity of years.""" + years: Int +} + +""" +A filter to be used against Interval fields. All fields are combined with a logical ‘and.’ +""" +input IntervalFilter { + """ + Not equal to the specified value, treating null like an ordinary value. + """ + distinctFrom: IntervalInput + + """Equal to the specified value.""" + equalTo: IntervalInput + + """Greater than the specified value.""" + greaterThan: IntervalInput + + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: IntervalInput + + """Included in the specified list.""" + in: [IntervalInput!] + + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean + + """Less than the specified value.""" + lessThan: IntervalInput + + """Less than or equal to the specified value.""" + lessThanOrEqualTo: IntervalInput + + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: IntervalInput + + """Not equal to the specified value.""" + notEqualTo: IntervalInput + + """Not included in the specified list.""" + notIn: [IntervalInput!] +} + +""" +An interval of time that has passed where the smallest distinct unit is a second. +""" +input IntervalInput { + """A quantity of days.""" + days: Int + + """A quantity of hours.""" + hours: Int + + """A quantity of minutes.""" + minutes: Int + + """A quantity of months.""" + months: Int + + """ + A quantity of seconds. This is the only non-integer field, as all the other + fields will dump their overflow into a smaller unit of time. Intervals don’t + have a smaller unit than seconds. + """ + seconds: Float + + """A quantity of years.""" + years: Int +} + +""" +Represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). +""" +scalar JSON + +"""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 { + """GraphQL type name of the plane's buckets table""" + bucketsType: String! + + """ + Computed download-URL field on the files type; null on the buckets side + """ + downloadUrlField: String + + """GraphQL type name of the plane's files table""" + filesType: String! + + """Whether this table is a storage buckets table""" + isBucketsTable: Boolean! + + """Whether this table is a storage files table""" + isFilesTable: Boolean! + + """The plane's GraphQL upload surface""" + upload: MetaStorageUpload! +} + +""" +The GraphQL upload surface of a storage plane, derived from the registry facts the presigned-url plugin emits from +""" +type MetaStorageUpload { + """Per-file input type inside the bulk input""" + bulkFileInputType: String! + + """Per-file payload type inside the bulk payload""" + bulkFilePayloadType: String! + + """Input type of the bulk upload mutation""" + bulkInputType: String! + + """Root mutation field for bulk upload""" + bulkMutation: String! + + """Payload type of the bulk upload mutation""" + bulkPayloadType: String! + + """Input type of the single upload mutation""" + inputType: String! + + """Root mutation field for single-file upload (e.g. uploadAppFile)""" + mutation: String! + + """Payload type of the single upload mutation""" + payloadType: String! + + """Whether the upload input requires ownerId (entity-keyed plane)""" + requiresOwnerId: 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 { + """Creates a single `Bucket`.""" + createBucket( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateBucketInput! + ): CreateBucketPayload + + """Creates a single `File`.""" + createFile( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateFileInput! + ): CreateFilePayload + + """Creates a single `PlatformBucket`.""" + createPlatformBucket( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreatePlatformBucketInput! + ): CreatePlatformBucketPayload + + """Creates a single `PlatformFile`.""" + createPlatformFile( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreatePlatformFileInput! + ): CreatePlatformFilePayload + + """Deletes a single `Bucket` using a unique key.""" + deleteBucket( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteBucketInput! + ): DeleteBucketPayload + + """Deletes a single `File` using a unique key.""" + deleteFile( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteFileInput! + ): DeleteFilePayload + + """Deletes a single `PlatformBucket` using a unique key.""" + deletePlatformBucket( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePlatformBucketInput! + ): DeletePlatformBucketPayload + + """Deletes a single `PlatformFile` using a unique key.""" + deletePlatformFile( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePlatformFileInput! + ): DeletePlatformFilePayload + filesRename( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: FilesRenameInput! + ): FilesRenamePayload + platformFilesRename( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: PlatformFilesRenameInput! + ): PlatformFilesRenamePayload + + """ + Reconcile an S3 bucket for a logical bucket in the database. + Reads the bucket config via RLS, then enqueues the same + storage:provision_bucket job used by the INSERT trigger. This is + idempotent for an already-reconciled bucket; enqueue failures become + GraphQL errors. + """ + provisionBucket( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: ProvisionBucketInput! + ): ProvisionBucketPayload + + """Updates a single `Bucket` using a unique key and a patch.""" + updateBucket( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateBucketInput! + ): UpdateBucketPayload + + """Updates a single `File` using a unique key and a patch.""" + updateFile( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateFileInput! + ): UpdateFilePayload + + """Updates a single `PlatformBucket` using a unique key and a patch.""" + updatePlatformBucket( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePlatformBucketInput! + ): UpdatePlatformBucketPayload + + """Updates a single `PlatformFile` using a unique key and a patch.""" + updatePlatformFile( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePlatformFileInput! + ): UpdatePlatformFilePayload + + """ + Upload a file: resolves the bucket by key, creates the file row, and returns a presigned PUT URL. + """ + uploadFile( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UploadFileInput! + ): UploadFilePayload + + """ + Upload multiple files: resolves the bucket by key, creates file rows, and returns presigned PUT URLs for each. + """ + uploadFiles( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UploadFileBulkInput! + ): UploadFileBulkPayload + + """ + Upload a file: resolves the bucket by key, creates the file row, and returns a presigned PUT URL. + """ + uploadPlatformFile( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UploadPlatformFileInput! + ): UploadPlatformFilePayload + + """ + Upload multiple files: resolves the bucket by key, creates file rows, and returns presigned PUT URLs for each. + """ + uploadPlatformFiles( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UploadPlatformFileBulkInput! + ): UploadPlatformFileBulkPayload +} + +"""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 +} + +""" +Logical storage containers that group files with shared access policies and CDN behavior +""" +type PlatformBucket { + """User who created this bucket. Forced to current_user_id() on INSERT.""" + actorId: UUID! + + """ + When true, clients can provide custom S3 keys (e.g. reports/2024/Q1.pdf). When false (default), S3 key = content hash (automatic dedup). contentHash always required for integrity. + """ + allowCustomKeys: Boolean! + + """ + Whitelist of allowed MIME types for files in this bucket (NULL = all allowed, enforcement deferred) + """ + allowedMimeTypes: [String] + + """ + Per-bucket CORS allowed origins override (NULL = inherit from storage_module/plugin defaults). Use ARRAY['*'] for open/CDN mode. + """ + allowedOrigins: [String] + createdAt: Datetime + + """Human-readable description of the bucket purpose""" + description: String + + """ + Reads a single `PlatformBucket` that is related to this `PlatformBucket`. + """ + destinationBucket: PlatformBucket + + """ + For a temp bucket, the permanent bucket its uploads are promoted into. NULL on non-temp buckets; required on temp buckets. + """ + destinationBucketId: UUID + id: UUID! + + """ + Whether bucket contents are publicly readable. Set to true when type is public. + """ + isPublic: Boolean! + + """ + Unique bucket identifier used in S3 key paths (e.g. avatars, documents, temp) + """ + key: String! + + """ + Maximum file size in bytes allowed in this bucket (NULL = no limit, enforcement deferred) + """ + maxFileSize: BigInt + + """ + Physical S3/MinIO bucket name recorded at provision time (NULL until the physical bucket exists) + """ + physicalName: String + + """Reads and enables pagination through a set of `PlatformBucket`.""" + platformBucketsByDestinationBucketId( + """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 `PlatformBucket`.""" + orderBy: [PlatformBucketOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformBucketFilter + ): PlatformBucketConnection! + + """Reads and enables pagination through a set of `PlatformFile`.""" + platformFilesByBucketId( + """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 `PlatformFile`.""" + orderBy: [PlatformFileOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformFileFilter + ): PlatformFileConnection! + + """ + For a temp bucket, how long an unpromoted staged file survives before it is eligible for expiry. NULL on non-temp buckets; required on temp buckets. + """ + stagingTtl: Interval + + """ + Selector labels for capability resolution and grouping (e.g. uploads, variants, exports). A function's required bucket key is matched against these plus type. + """ + tags: [String] + + """ + Bucket CDN access type: public (CDN-served), private (presigned GET), temp (staging uploads) + """ + type: BucketType! + updatedAt: Datetime +} + +"""A connection to a list of `PlatformBucket` values.""" +type PlatformBucketConnection { + """ + A list of edges which contains the `PlatformBucket` and cursor to aid in pagination. + """ + edges: [PlatformBucketEdge]! + + """A list of `PlatformBucket` objects.""" + nodes: [PlatformBucket]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `PlatformBucket` you could get from the connection.""" + totalCount: Int! +} + +"""A `PlatformBucket` edge in the connection.""" +type PlatformBucketEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `PlatformBucket` at the end of the edge.""" + node: PlatformBucket +} + +""" +A filter to be used against `PlatformBucket` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformBucketFilter { + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter + + """Filter by the object’s `allowCustomKeys` field.""" + allowCustomKeys: BooleanFilter + + """Filter by the object’s `allowedMimeTypes` field.""" + allowedMimeTypes: StringListFilter + + """Filter by the object’s `allowedOrigins` field.""" + allowedOrigins: StringListFilter + + """Checks for all expressions in this list.""" + and: [PlatformBucketFilter!] + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `description` field.""" + description: StringFilter + + """Filter by the object’s `destinationBucket` relation.""" + destinationBucket: PlatformBucketFilter + + """A related `destinationBucket` exists.""" + destinationBucketExists: Boolean + + """Filter by the object’s `destinationBucketId` field.""" + destinationBucketId: UUIDFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `isPublic` field.""" + isPublic: BooleanFilter + + """Filter by the object’s `key` field.""" + key: StringFilter + + """Filter by the object’s `maxFileSize` field.""" + maxFileSize: BigIntFilter + + """Negates the expression.""" + not: PlatformBucketFilter + + """Checks for any expressions in this list.""" + or: [PlatformBucketFilter!] + + """Filter by the object’s `physicalName` field.""" + physicalName: StringFilter + + """ + Filter by the object’s `platformBucketsByDestinationBucketId` relation. + """ + platformBucketsByDestinationBucketId: PlatformBucketToManyPlatformBucketFilter + + """`platformBucketsByDestinationBucketId` exist.""" + platformBucketsByDestinationBucketIdExist: Boolean + + """Filter by the object’s `platformFilesByBucketId` relation.""" + platformFilesByBucketId: PlatformBucketToManyPlatformFileFilter + + """`platformFilesByBucketId` exist.""" + platformFilesByBucketIdExist: Boolean + + """Filter by the object’s `stagingTtl` field.""" + stagingTtl: IntervalFilter + + """Filter by the object’s `tags` field.""" + tags: StringListFilter + + """Filter by the object’s `type` field.""" + type: BucketTypeFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter +} + +"""An input for mutations affecting `PlatformBucket`""" +input PlatformBucketInput { + """User who created this bucket. Forced to current_user_id() on INSERT.""" + actorId: UUID! + + """ + When true, clients can provide custom S3 keys (e.g. reports/2024/Q1.pdf). When false (default), S3 key = content hash (automatic dedup). contentHash always required for integrity. + """ + allowCustomKeys: Boolean + + """ + Whitelist of allowed MIME types for files in this bucket (NULL = all allowed, enforcement deferred) + """ + allowedMimeTypes: [String] + + """ + Per-bucket CORS allowed origins override (NULL = inherit from storage_module/plugin defaults). Use ARRAY['*'] for open/CDN mode. + """ + allowedOrigins: [String] + createdAt: Datetime + + """Human-readable description of the bucket purpose""" + description: String + + """ + For a temp bucket, the permanent bucket its uploads are promoted into. NULL on non-temp buckets; required on temp buckets. + """ + destinationBucketId: UUID + id: UUID + + """ + Whether bucket contents are publicly readable. Set to true when type is public. + """ + isPublic: Boolean + + """ + Unique bucket identifier used in S3 key paths (e.g. avatars, documents, temp) + """ + key: String! + + """ + Maximum file size in bytes allowed in this bucket (NULL = no limit, enforcement deferred) + """ + maxFileSize: BigInt + + """ + Physical S3/MinIO bucket name recorded at provision time (NULL until the physical bucket exists) + """ + physicalName: String + + """ + For a temp bucket, how long an unpromoted staged file survives before it is eligible for expiry. NULL on non-temp buckets; required on temp buckets. + """ + stagingTtl: IntervalInput + + """ + Selector labels for capability resolution and grouping (e.g. uploads, variants, exports). A function's required bucket key is matched against these plus type. + """ + tags: [String] + + """ + Bucket CDN access type: public (CDN-served), private (presigned GET), temp (staging uploads) + """ + type: BucketType + updatedAt: Datetime +} + +"""Methods to use when ordering `PlatformBucket`.""" +enum PlatformBucketOrderBy { + ACTOR_ID_ASC + ACTOR_ID_DESC + ALLOWED_MIME_TYPES_ASC + ALLOWED_MIME_TYPES_DESC + ALLOWED_ORIGINS_ASC + ALLOWED_ORIGINS_DESC + ALLOW_CUSTOM_KEYS_ASC + ALLOW_CUSTOM_KEYS_DESC + CREATED_AT_ASC + CREATED_AT_DESC + DESCRIPTION_ASC + DESCRIPTION_DESC + DESTINATION_BUCKET_ID_ASC + DESTINATION_BUCKET_ID_DESC + ID_ASC + ID_DESC + IS_PUBLIC_ASC + IS_PUBLIC_DESC + KEY_ASC + KEY_DESC + MAX_FILE_SIZE_ASC + MAX_FILE_SIZE_DESC + NATURAL + PHYSICAL_NAME_ASC + PHYSICAL_NAME_DESC + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + STAGING_TTL_ASC + STAGING_TTL_DESC + TAGS_ASC + TAGS_DESC + TYPE_ASC + TYPE_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC +} + +""" +Represents an update to a `PlatformBucket`. Fields that are set will be updated. +""" +input PlatformBucketPatch { + """User who created this bucket. Forced to current_user_id() on INSERT.""" + actorId: UUID + + """ + When true, clients can provide custom S3 keys (e.g. reports/2024/Q1.pdf). When false (default), S3 key = content hash (automatic dedup). contentHash always required for integrity. + """ + allowCustomKeys: Boolean + + """ + Whitelist of allowed MIME types for files in this bucket (NULL = all allowed, enforcement deferred) + """ + allowedMimeTypes: [String] + + """ + Per-bucket CORS allowed origins override (NULL = inherit from storage_module/plugin defaults). Use ARRAY['*'] for open/CDN mode. + """ + allowedOrigins: [String] + createdAt: Datetime + + """Human-readable description of the bucket purpose""" + description: String + + """ + For a temp bucket, the permanent bucket its uploads are promoted into. NULL on non-temp buckets; required on temp buckets. + """ + destinationBucketId: UUID + id: UUID + + """ + Whether bucket contents are publicly readable. Set to true when type is public. + """ + isPublic: Boolean + + """ + Unique bucket identifier used in S3 key paths (e.g. avatars, documents, temp) + """ + key: String + + """ + Maximum file size in bytes allowed in this bucket (NULL = no limit, enforcement deferred) + """ + maxFileSize: BigInt + + """ + Physical S3/MinIO bucket name recorded at provision time (NULL until the physical bucket exists) + """ + physicalName: String + + """ + For a temp bucket, how long an unpromoted staged file survives before it is eligible for expiry. NULL on non-temp buckets; required on temp buckets. + """ + stagingTtl: IntervalInput + + """ + Selector labels for capability resolution and grouping (e.g. uploads, variants, exports). A function's required bucket key is matched against these plus type. + """ + tags: [String] + + """ + Bucket CDN access type: public (CDN-served), private (presigned GET), temp (staging uploads) + """ + type: BucketType + updatedAt: Datetime +} + +""" +A filter to be used against many `PlatformBucket` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformBucketToManyPlatformBucketFilter { + """Filters to entities where every related entity matches.""" + every: PlatformBucketFilter + + """Filters to entities where no related entity matches.""" + none: PlatformBucketFilter + + """Filters to entities where at least one related entity matches.""" + some: PlatformBucketFilter +} + +""" +A filter to be used against many `PlatformFile` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformBucketToManyPlatformFileFilter { + """Filters to entities where every related entity matches.""" + every: PlatformFileFilter + + """Filters to entities where no related entity matches.""" + none: PlatformFileFilter + + """Filters to entities where at least one related entity matches.""" + some: PlatformFileFilter +} + +""" +Individual file records within buckets, with immutable identity fields and mutable metadata +""" +type PlatformFile { + """ + User who uploaded this file. Forced to current_user_id() on INSERT. Used for UPDATE/DELETE authorization. + """ + actorId: UUID! + + """ + Reads a single `PlatformBucket` that is related to this `PlatformFile`. + """ + bucket: PlatformBucket + + """ + Bucket this file belongs to. Determines owner_id and is_public via inheritance trigger. + """ + bucketId: UUID! + + """ + SHA-256 content hash for integrity verification and dedup. In default mode, equals the S3 key. In custom key mode, stored separately. + """ + contentHash: String + createdAt: Datetime + + """Human-readable description or alt text for the file (mutable)""" + description: String + + """ + URL to download this file. For public files, returns the public URL. For private files, returns a time-limited presigned URL. + """ + downloadUrl: String + + """ + When the staged-expiry sweep enqueued deletion of this file's object. NULL until it expires; set once so expiry is enqueued exactly once. + """ + expiryEnqueuedAt: Datetime + filePath: String + + """ + Original filename provided by the uploader. Used for display and Content-Disposition header on download. + """ + filename: String + id: UUID! + + """ + Whether this file is publicly readable. Inherited from bucket on INSERT. + """ + isPublic: Boolean! + + """S3 object key for this file, unique within its bucket""" + key: String! + + """ + MIME type of the file (e.g. image/png, application/pdf). Immutable after INSERT. + """ + mimeType: String! + + """ + When this file was promoted out of its staging bucket into its destination bucket. NULL for a file that was never staged, or is still staged. + """ + promotedAt: Datetime + + """File size in bytes. Immutable after INSERT.""" + size: BigInt! + + """ + File lifecycle status: requested (presigned URL generated, not yet in S3), uploaded (file in S3 and content validated, ready for use), processed (image resized, text extracted, embedding computed), rejected (declared type disagreed with the bytes), expired (bytes never arrived before the confirm window closed). + """ + status: FileStatus! + + """User-defined tags for categorization and search (mutable)""" + tags: [String] + updatedAt: Datetime + + """ + Processed file reference (upload domain). Populated by processing jobs after file is uploaded. Copy this value to other tables to reference the file. + """ + upload: ConstructiveInternalTypeUpload +} + +"""A connection to a list of `PlatformFile` values.""" +type PlatformFileConnection { + """ + A list of edges which contains the `PlatformFile` and cursor to aid in pagination. + """ + edges: [PlatformFileEdge]! + + """A list of `PlatformFile` objects.""" + nodes: [PlatformFile]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `PlatformFile` you could get from the connection.""" + totalCount: Int! +} + +"""A `PlatformFile` edge in the connection.""" +type PlatformFileEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `PlatformFile` at the end of the edge.""" + node: PlatformFile +} + +""" +A filter to be used against `PlatformFile` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformFileFilter { + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter + + """Checks for all expressions in this list.""" + and: [PlatformFileFilter!] + + """Filter by the object’s `bucket` relation.""" + bucket: PlatformBucketFilter + + """Filter by the object’s `bucketId` field.""" + bucketId: UUIDFilter + + """Filter by the object’s `contentHash` field.""" + contentHash: StringFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `description` field.""" + description: StringFilter + + """Filter by the object’s `expiryEnqueuedAt` field.""" + expiryEnqueuedAt: DatetimeFilter + + """Filter by the object’s `filename` field.""" + filename: StringFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `isPublic` field.""" + isPublic: BooleanFilter + + """Filter by the object’s `key` field.""" + key: StringFilter + + """Filter by the object’s `mimeType` field.""" + mimeType: StringFilter + + """Negates the expression.""" + not: PlatformFileFilter + + """Checks for any expressions in this list.""" + or: [PlatformFileFilter!] + + """Filter by the object’s `promotedAt` field.""" + promotedAt: DatetimeFilter + + """Filter by the object’s `size` field.""" + size: BigIntFilter + + """Filter by the object’s `status` field.""" + status: FileStatusFilter + + """Filter by the object’s `tags` field.""" + tags: StringListFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + + """Filter by the object’s `upload` field.""" + upload: ConstructiveInternalTypeUploadFilter +} + +"""An input for mutations affecting `PlatformFile`""" +input PlatformFileInput { + """ + User who uploaded this file. Forced to current_user_id() on INSERT. Used for UPDATE/DELETE authorization. + """ + actorId: UUID! + + """ + Bucket this file belongs to. Determines owner_id and is_public via inheritance trigger. + """ + bucketId: UUID! + + """ + SHA-256 content hash for integrity verification and dedup. In default mode, equals the S3 key. In custom key mode, stored separately. + """ + contentHash: String + createdAt: Datetime + + """Human-readable description or alt text for the file (mutable)""" + description: String + + """ + When the staged-expiry sweep enqueued deletion of this file's object. NULL until it expires; set once so expiry is enqueued exactly once. + """ + expiryEnqueuedAt: Datetime + + """ + Original filename provided by the uploader. Used for display and Content-Disposition header on download. + """ + filename: String + id: UUID + + """ + Whether this file is publicly readable. Inherited from bucket on INSERT. + """ + isPublic: Boolean + + """S3 object key for this file, unique within its bucket""" + key: String! + + """ + MIME type of the file (e.g. image/png, application/pdf). Immutable after INSERT. + """ + mimeType: String! + + """ + When this file was promoted out of its staging bucket into its destination bucket. NULL for a file that was never staged, or is still staged. + """ + promotedAt: Datetime + + """File size in bytes. Immutable after INSERT.""" + size: BigInt! + + """ + File lifecycle status: requested (presigned URL generated, not yet in S3), uploaded (file in S3 and content validated, ready for use), processed (image resized, text extracted, embedding computed), rejected (declared type disagreed with the bytes), expired (bytes never arrived before the confirm window closed). + """ + status: FileStatus + + """User-defined tags for categorization and search (mutable)""" + tags: [String] + updatedAt: Datetime + + """ + Processed file reference (upload domain). Populated by processing jobs after file is uploaded. Copy this value to other tables to reference the file. + """ + upload: ConstructiveInternalTypeUpload +} + +"""Methods to use when ordering `PlatformFile`.""" +enum PlatformFileOrderBy { + ACTOR_ID_ASC + ACTOR_ID_DESC + BUCKET_ID_ASC + BUCKET_ID_DESC + CONTENT_HASH_ASC + CONTENT_HASH_DESC + CREATED_AT_ASC + CREATED_AT_DESC + DESCRIPTION_ASC + DESCRIPTION_DESC + EXPIRY_ENQUEUED_AT_ASC + EXPIRY_ENQUEUED_AT_DESC + FILENAME_ASC + FILENAME_DESC + ID_ASC + ID_DESC + IS_PUBLIC_ASC + IS_PUBLIC_DESC + KEY_ASC + KEY_DESC + MIME_TYPE_ASC + MIME_TYPE_DESC + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + PROMOTED_AT_ASC + PROMOTED_AT_DESC + SIZE_ASC + SIZE_DESC + STATUS_ASC + STATUS_DESC + TAGS_ASC + TAGS_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + UPLOAD_ASC + UPLOAD_DESC +} + +""" +Represents an update to a `PlatformFile`. Fields that are set will be updated. +""" +input PlatformFilePatch { + """ + User who uploaded this file. Forced to current_user_id() on INSERT. Used for UPDATE/DELETE authorization. + """ + actorId: UUID + + """ + Bucket this file belongs to. Determines owner_id and is_public via inheritance trigger. + """ + bucketId: UUID + + """ + SHA-256 content hash for integrity verification and dedup. In default mode, equals the S3 key. In custom key mode, stored separately. + """ + contentHash: String + createdAt: Datetime + + """Human-readable description or alt text for the file (mutable)""" + description: String + + """ + When the staged-expiry sweep enqueued deletion of this file's object. NULL until it expires; set once so expiry is enqueued exactly once. + """ + expiryEnqueuedAt: Datetime + + """ + Original filename provided by the uploader. Used for display and Content-Disposition header on download. + """ + filename: String + id: UUID + + """ + Whether this file is publicly readable. Inherited from bucket on INSERT. + """ + isPublic: Boolean + + """S3 object key for this file, unique within its bucket""" + key: String + + """ + MIME type of the file (e.g. image/png, application/pdf). Immutable after INSERT. + """ + mimeType: String + + """ + When this file was promoted out of its staging bucket into its destination bucket. NULL for a file that was never staged, or is still staged. + """ + promotedAt: Datetime + + """File size in bytes. Immutable after INSERT.""" + size: BigInt + + """ + File lifecycle status: requested (presigned URL generated, not yet in S3), uploaded (file in S3 and content validated, ready for use), processed (image resized, text extracted, embedding computed), rejected (declared type disagreed with the bytes), expired (bytes never arrived before the confirm window closed). + """ + status: FileStatus + + """User-defined tags for categorization and search (mutable)""" + tags: [String] + updatedAt: Datetime + + """ + Processed file reference (upload domain). Populated by processing jobs after file is uploaded. Copy this value to other tables to reference the file. + """ + upload: ConstructiveInternalTypeUpload + + """ + Upload for Processed file reference (upload domain). Populated by processing jobs after file is uploaded. Copy this value to other tables to reference the file. + """ + uploadUpload: Upload +} + +"""All input for the `platformFilesRename` mutation.""" +input PlatformFilesRenameInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + fileId: UUID + newFilename: String +} + +"""The output of our `platformFilesRename` mutation.""" +type PlatformFilesRenamePayload { + """ + The 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 `PlatformFile`. May be used by Relay 1.""" + platformFileEdge( + """The method to use when ordering `PlatformFile`.""" + orderBy: [PlatformFileOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformFileEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + result: PlatformFile +} + +input 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: UUID +} + +type ProvisionBucketPayload { + """The logical bucket row that was queued for reconciliation.""" + bucketId: UUID! + bucketKey: String! + + """The reconciler job enqueued to provision this bucket.""" + jobId: UUID! + + """ + The physical bucket name already recorded, or null when reconciliation has not completed. + """ + physicalName: String +} + +"""The root query type which gives access points into the data universe.""" +type Query { + """ + Metadata about the database schema, including tables, fields, indexes, and constraints. Useful for code generation tools. + """ + _meta: MetaSchema + + """Reads and enables pagination through a set of `Bucket`.""" + buckets( + """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 `Bucket`.""" + orderBy: [BucketOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: BucketFilter + ): BucketConnection + + """Reads and enables pagination through a set of `File`.""" + files( + """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 `File`.""" + orderBy: [FileOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: FileFilter + ): FileConnection + + """Reads and enables pagination through a set of `PlatformBucket`.""" + platformBuckets( + """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 `PlatformBucket`.""" + orderBy: [PlatformBucketOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformBucketFilter + ): PlatformBucketConnection + + """Reads and enables pagination through a set of `PlatformFile`.""" + platformFiles( + """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 `PlatformFile`.""" + orderBy: [PlatformFileOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformFileFilter + ): PlatformFileConnection +} + +""" +A filter to be used against String fields. All fields are combined with a logical ‘and.’ +""" +input 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 filter to be used against String List fields. All fields are combined with a logical ‘and.’ +""" +input StringListFilter { + """Any array item is equal to the specified value.""" + anyEqualTo: String + + """Any array item is greater than the specified value.""" + anyGreaterThan: String + + """Any array item is greater than or equal to the specified value.""" + anyGreaterThanOrEqualTo: String + + """Any array item is less than the specified value.""" + anyLessThan: String + + """Any array item is less than or equal to the specified value.""" + anyLessThanOrEqualTo: String + + """Any array item is not equal to the specified value.""" + anyNotEqualTo: String + + """Contained by the specified list of values.""" + containedBy: [String] + + """Contains the specified list of values.""" + contains: [String] + + """ + 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] + + """ + 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] + + """Overlaps the specified list of values.""" + overlaps: [String] +} + +""" +A universally unique identifier as defined by [RFC 4122](https://tools.ietf.org/html/rfc4122). +""" +scalar UUID + +""" +A filter to be used against UUID fields. All fields are combined with a logical ‘and.’ +""" +input UUIDFilter { + """ + Not equal to the specified value, treating null like an ordinary value. + """ + distinctFrom: UUID + + """Equal to the specified value.""" + equalTo: UUID + + """Greater than the specified value.""" + greaterThan: UUID + + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: UUID + + """Included in the specified list.""" + in: [UUID!] + + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean + + """Less than the specified value.""" + lessThan: UUID + + """Less than or equal to the specified value.""" + lessThanOrEqualTo: 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 `updateBucket` mutation.""" +input UpdateBucketInput { + """ + An object where the defined keys will be set on the `Bucket` being updated. + """ + bucketPatch: BucketPatch! + + """ + An arbitrary 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 `Bucket` mutation.""" +type UpdateBucketPayload { + """The `Bucket` that was updated by this mutation.""" + bucket: Bucket + + """An edge for our `Bucket`. May be used by Relay 1.""" + bucketEdge( + """The method to use when ordering `Bucket`.""" + orderBy: [BucketOrderBy!]! = [PRIMARY_KEY_ASC] + ): BucketEdge + + """ + The 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 `updateFile` mutation.""" +input UpdateFileInput { + """ + An arbitrary 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 `File` being updated. + """ + filePatch: FilePatch! + id: UUID! +} + +"""The output of our update `File` mutation.""" +type UpdateFilePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `File` that was updated by this mutation.""" + file: File + + """An edge for our `File`. May be used by Relay 1.""" + fileEdge( + """The method to use when ordering `File`.""" + orderBy: [FileOrderBy!]! = [PRIMARY_KEY_ASC] + ): FileEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `updatePlatformBucket` mutation.""" +input UpdatePlatformBucketInput { + """ + An arbitrary 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 `PlatformBucket` being updated. + """ + platformBucketPatch: PlatformBucketPatch! +} + +"""The output of our update `PlatformBucket` mutation.""" +type UpdatePlatformBucketPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `PlatformBucket` that was updated by this mutation.""" + platformBucket: PlatformBucket + + """An edge for our `PlatformBucket`. May be used by Relay 1.""" + platformBucketEdge( + """The method to use when ordering `PlatformBucket`.""" + orderBy: [PlatformBucketOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformBucketEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `updatePlatformFile` mutation.""" +input UpdatePlatformFileInput { + """ + An arbitrary 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 `PlatformFile` being updated. + """ + platformFilePatch: PlatformFilePatch! +} + +"""The output of our update `PlatformFile` mutation.""" +type UpdatePlatformFilePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `PlatformFile` that was updated by this mutation.""" + platformFile: PlatformFile + + """An edge for our `PlatformFile`. May be used by Relay 1.""" + platformFileEdge( + """The method to use when ordering `PlatformFile`.""" + orderBy: [PlatformFileOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformFileEdge + + """ + 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 + +input UploadFileBulkFileInput { + """SHA-256 content hash (hex-encoded, 64 chars)""" + contentHash: String! + + """MIME type of the file""" + contentType: String! + + """Original filename (optional)""" + filename: String + + """Custom S3 key (only when bucket has allow_custom_keys=true)""" + key: String + + """File size in bytes""" + size: Int! +} + +type UploadFileBulkFilePayload { + deduplicated: Boolean! + expiresAt: String + + """The projection document for the created file.""" + file: JSON + fileId: String! + key: String! + previousVersionId: String + uploadUrl: String +} + +input UploadFileBulkInput { + """ + Bucket key (e.g., "public", "private"). Omit to use the database's default bucket for the requested access. + """ + bucketKey: String + + """Array of files to upload""" + files: [UploadFileBulkFileInput!]! + + """ + Which default bucket to resolve when bucketKey is omitted. Ignored when bucketKey is given. + """ + isPublic: Boolean +} + +type UploadFileBulkPayload { + files: [UploadFileBulkFilePayload!]! +} + +input UploadFileInput { + """ + Bucket key (e.g., "public", "private"). Omit to use the database's default bucket for the requested access. + """ + bucketKey: String + + """SHA-256 content hash (hex-encoded, 64 chars)""" + contentHash: String! + + """MIME type of the file""" + contentType: String! + + """Original filename (optional)""" + filename: String + + """ + Which default bucket to resolve when bucketKey is omitted: the public one (true) or the private one (default false). Ignored when bucketKey is given. + """ + isPublic: Boolean + + """Custom S3 key (only when bucket has allow_custom_keys=true)""" + key: String + + """File size in bytes""" + size: Int! +} + +type UploadFilePayload { + """Whether this file was deduplicated (content already exists)""" + deduplicated: Boolean! + + """Presigned URL expiry time (null if deduplicated)""" + expiresAt: String + + """ + The projection document for the created file: {id, key, bucket_id, mime, size, filename, url?}. Store this verbatim in an image/upload column — its `id` is what keeps the object from being garbage collected while the column still references it. + """ + file: JSON + + """The file ID (UUID)""" + fileId: String! + + """The S3 object key""" + key: String! + + """ID of the previous version (when using custom keys)""" + previousVersionId: String + + """Presigned PUT URL (null if deduplicated)""" + uploadUrl: String +} + +input UploadPlatformFileBulkFileInput { + """SHA-256 content hash (hex-encoded, 64 chars)""" + contentHash: String! + + """MIME type of the file""" + contentType: String! + + """Original filename (optional)""" + filename: String + + """Custom S3 key (only when bucket has allow_custom_keys=true)""" + key: String + + """File size in bytes""" + size: Int! +} + +type UploadPlatformFileBulkFilePayload { + deduplicated: Boolean! + expiresAt: String + + """The projection document for the created file.""" + file: JSON + fileId: String! + key: String! + previousVersionId: String + uploadUrl: String +} + +input UploadPlatformFileBulkInput { + """ + Bucket key (e.g., "public", "private"). Omit to use the database's default bucket for the requested access. + """ + bucketKey: String + + """Array of files to upload""" + files: [UploadPlatformFileBulkFileInput!]! + + """ + Which default bucket to resolve when bucketKey is omitted. Ignored when bucketKey is given. + """ + isPublic: Boolean +} + +type UploadPlatformFileBulkPayload { + files: [UploadPlatformFileBulkFilePayload!]! +} + +input UploadPlatformFileInput { + """ + Bucket key (e.g., "public", "private"). Omit to use the database's default bucket for the requested access. + """ + bucketKey: String + + """SHA-256 content hash (hex-encoded, 64 chars)""" + contentHash: String! + + """MIME type of the file""" + contentType: String! + + """Original filename (optional)""" + filename: String + + """ + Which default bucket to resolve when bucketKey is omitted: the public one (true) or the private one (default false). Ignored when bucketKey is given. + """ + isPublic: Boolean + + """Custom S3 key (only when bucket has allow_custom_keys=true)""" + key: String + + """File size in bytes""" + size: Int! +} + +type UploadPlatformFilePayload { + """Whether this file was deduplicated (content already exists)""" + deduplicated: Boolean! + + """Presigned URL expiry time (null if deduplicated)""" + expiresAt: String + + """ + The projection document for the created file: {id, key, bucket_id, mime, size, filename, url?}. Store this verbatim in an image/upload column — its `id` is what keeps the object from being garbage collected while the column still references it. + """ + file: JSON + + """The file ID (UUID)""" + fileId: String! + + """The S3 object key""" + key: String! + + """ID of the previous version (when using custom keys)""" + previousVersionId: String + + """Presigned PUT URL (null if deduplicated)""" + uploadUrl: String +} \ No newline at end of file diff --git a/sdk/constructive-sdk/schemas/usage.graphql b/sdk/constructive-sdk/schemas/usage.graphql index 176c2c7f65..1e7a56f5d2 100644 --- a/sdk/constructive-sdk/schemas/usage.graphql +++ b/sdk/constructive-sdk/schemas/usage.graphql @@ -1,1330 +1,1090 @@ -""" -Defines rewards granted when a level is achieved; supports limit_credits and meter_credits -""" -type AppAchievementReward { - """Number of credits to grant; unused by capability rewards""" - amount: Int! - createdAt: Datetime +"""Tracks per-actor usage counts against configurable maximum limits""" +type AppLimit { + """User whose usage is being tracked against this limit""" + actorId: UUID! - """Credit type: permanent, expiring, etc.""" - creditType: String! + """Entity type prefix (org, team, app, etc.) for interpreting entity_id""" + entityType: String + id: UUID! """ - Optional duration after which the granted credit expires; NULL means never expires + Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. """ - expiresInterval: Interval - id: UUID! + max: BigInt + + """Name identifier of the limit being tracked""" + name: String + + """Current usage count for this actor and limit""" + num: BigInt + + """Resolved billable organization via get_organization_id""" + organizationId: UUID + + """ + Temporary credits for the current billing window. Resets to 0 on window expiry. + """ + periodCredits: BigInt + + """ + 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 + + """ + Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. + """ + purchasedCredits: BigInt + + """ + Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. + """ + softMax: BigInt + + """ + Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window + """ + windowDuration: Interval - """Name of the level this reward is granted for""" - levelName: String! + """Start of the current metering window; NULL means no time window""" + windowStart: Datetime +} + +""" +Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. +""" +type AppLimitCap { + """Entity this cap override applies to""" + entityId: UUID! + id: UUID! - """Type of reward: limit_credit, meter_credit, or capability""" - rewardType: String! + """Override cap value for this entity""" + max: BigInt! - """Target limit name, meter slug, or capability catalog name""" - targetName: String! - updatedAt: Datetime + """Name identifier of the cap being overridden""" + name: String! } -"""A connection to a list of `AppAchievementReward` values.""" -type AppAchievementRewardConnection { +"""A connection to a list of `AppLimitCap` values.""" +type AppLimitCapConnection { """ - A list of edges which contains the `AppAchievementReward` and cursor to aid in pagination. + A list of edges which contains the `AppLimitCap` and cursor to aid in pagination. """ - edges: [AppAchievementRewardEdge]! + edges: [AppLimitCapEdge]! - """A list of `AppAchievementReward` objects.""" - nodes: [AppAchievementReward]! + """A list of `AppLimitCap` objects.""" + nodes: [AppLimitCap]! """Information to aid in pagination.""" pageInfo: PageInfo! - """ - The count of *all* `AppAchievementReward` you could get from the connection. - """ + """The count of *all* `AppLimitCap` you could get from the connection.""" totalCount: Int! } -"""A `AppAchievementReward` edge in the connection.""" -type AppAchievementRewardEdge { +"""A `AppLimitCap` edge in the connection.""" +type AppLimitCapEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `AppAchievementReward` at the end of the edge.""" - node: AppAchievementReward + """The `AppLimitCap` at the end of the edge.""" + node: AppLimitCap } """ -A filter to be used against `AppAchievementReward` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `AppLimitCap` object types. All fields are combined with a logical ‘and.’ """ -input AppAchievementRewardFilter { - """Filter by the object’s `amount` field.""" - amount: IntFilter - +input AppLimitCapFilter { """Checks for all expressions in this list.""" - and: [AppAchievementRewardFilter!] - - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter - - """Filter by the object’s `creditType` field.""" - creditType: StringFilter + and: [AppLimitCapFilter!] - """Filter by the object’s `expiresInterval` field.""" - expiresInterval: IntervalFilter + """Filter by the object’s `entityId` field.""" + entityId: UUIDFilter """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `levelName` field.""" - levelName: StringFilter + """Filter by the object’s `max` field.""" + max: BigIntFilter + + """Filter by the object’s `name` field.""" + name: StringFilter """Negates the expression.""" - not: AppAchievementRewardFilter + not: AppLimitCapFilter """Checks for any expressions in this list.""" - or: [AppAchievementRewardFilter!] - - """Filter by the object’s `rewardType` field.""" - rewardType: StringFilter - - """Filter by the object’s `targetName` field.""" - targetName: StringFilter - - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter + or: [AppLimitCapFilter!] } -"""An input for mutations affecting `AppAchievementReward`""" -input AppAchievementRewardInput { - """Number of credits to grant; unused by capability rewards""" - amount: Int - createdAt: Datetime - - """Credit type: permanent, expiring, etc.""" - creditType: String - - """ - Optional duration after which the granted credit expires; NULL means never expires - """ - expiresInterval: IntervalInput +"""An input for mutations affecting `AppLimitCap`""" +input AppLimitCapInput { + """Entity this cap override applies to""" + entityId: UUID! id: UUID - """Name of the level this reward is granted for""" - levelName: String! - - """Type of reward: limit_credit, meter_credit, or capability""" - rewardType: String! + """Override cap value for this entity""" + max: BigInt - """Target limit name, meter slug, or capability catalog name""" - targetName: String! - updatedAt: Datetime + """Name identifier of the cap being overridden""" + name: String! } -"""Methods to use when ordering `AppAchievementReward`.""" -enum AppAchievementRewardOrderBy { - AMOUNT_ASC - AMOUNT_DESC - CREATED_AT_ASC - CREATED_AT_DESC - CREDIT_TYPE_ASC - CREDIT_TYPE_DESC - EXPIRES_INTERVAL_ASC - EXPIRES_INTERVAL_DESC +"""Methods to use when ordering `AppLimitCap`.""" +enum AppLimitCapOrderBy { + ENTITY_ID_ASC + ENTITY_ID_DESC ID_ASC ID_DESC - LEVEL_NAME_ASC - LEVEL_NAME_DESC + MAX_ASC + MAX_DESC + NAME_ASC + NAME_DESC NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC - REWARD_TYPE_ASC - REWARD_TYPE_DESC - TARGET_NAME_ASC - TARGET_NAME_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC } """ -Represents an update to a `AppAchievementReward`. Fields that are set will be updated. +Represents an update to a `AppLimitCap`. Fields that are set will be updated. """ -input AppAchievementRewardPatch { - """Number of credits to grant; unused by capability rewards""" - amount: Int - createdAt: Datetime - - """Credit type: permanent, expiring, etc.""" - creditType: String - - """ - Optional duration after which the granted credit expires; NULL means never expires - """ - expiresInterval: IntervalInput +input AppLimitCapPatch { + """Entity this cap override applies to""" + entityId: UUID id: UUID - """Name of the level this reward is granted for""" - levelName: String - - """Type of reward: limit_credit, meter_credit, or capability""" - rewardType: String + """Override cap value for this entity""" + max: BigInt - """Target limit name, meter slug, or capability catalog name""" - targetName: String - updatedAt: Datetime + """Name identifier of the cap being overridden""" + name: String } """ -Partitioned append-only log of individual user actions; every single event ever recorded +Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. """ -type AppEvent { - actorId: UUID! - - """Number of units completed in this step action""" - count: Int! - createdAt: Datetime! - - """Unique identifier for each event (uuidv7 provides temporal ordering)""" +type AppLimitCapsDefault { id: UUID! - """Name identifier of the level requirement this step fulfills""" - name: String! -} - -""" -Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually -""" -type AppEventAggregate { - actorId: UUID! - - """Cumulative count of completed steps toward this requirement""" - count: Int! - createdAt: Datetime - id: UUID! + """ + Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. + """ + max: BigInt! - """Name identifier of the level requirement being tracked""" + """ + Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) + """ name: String! - - """Start of current counting period; NULL means lifetime counting""" - periodStart: Datetime - updatedAt: Datetime } -"""A connection to a list of `AppEventAggregate` values.""" -type AppEventAggregateConnection { +"""A connection to a list of `AppLimitCapsDefault` values.""" +type AppLimitCapsDefaultConnection { """ - A list of edges which contains the `AppEventAggregate` and cursor to aid in pagination. + A list of edges which contains the `AppLimitCapsDefault` and cursor to aid in pagination. """ - edges: [AppEventAggregateEdge]! + edges: [AppLimitCapsDefaultEdge]! - """A list of `AppEventAggregate` objects.""" - nodes: [AppEventAggregate]! + """A list of `AppLimitCapsDefault` objects.""" + nodes: [AppLimitCapsDefault]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `AppEventAggregate` you could get from the connection. + The count of *all* `AppLimitCapsDefault` you could get from the connection. """ totalCount: Int! } -"""A `AppEventAggregate` edge in the connection.""" -type AppEventAggregateEdge { +"""A `AppLimitCapsDefault` edge in the connection.""" +type AppLimitCapsDefaultEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `AppEventAggregate` at the end of the edge.""" - node: AppEventAggregate + """The `AppLimitCapsDefault` at the end of the edge.""" + node: AppLimitCapsDefault } """ -A filter to be used against `AppEventAggregate` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `AppLimitCapsDefault` object types. All fields are combined with a logical ‘and.’ """ -input AppEventAggregateFilter { - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter - +input AppLimitCapsDefaultFilter { """Checks for all expressions in this list.""" - and: [AppEventAggregateFilter!] - - """Filter by the object’s `count` field.""" - count: IntFilter - - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter + and: [AppLimitCapsDefaultFilter!] """Filter by the object’s `id` field.""" id: UUIDFilter + """Filter by the object’s `max` field.""" + max: BigIntFilter + """Filter by the object’s `name` field.""" name: StringFilter """Negates the expression.""" - not: AppEventAggregateFilter + not: AppLimitCapsDefaultFilter """Checks for any expressions in this list.""" - or: [AppEventAggregateFilter!] - - """Filter by the object’s `periodStart` field.""" - periodStart: DatetimeFilter - - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter + or: [AppLimitCapsDefaultFilter!] } -"""An input for mutations affecting `AppEventAggregate`""" -input AppEventAggregateInput { - actorId: UUID - - """Cumulative count of completed steps toward this requirement""" - count: Int - createdAt: Datetime +"""An input for mutations affecting `AppLimitCapsDefault`""" +input AppLimitCapsDefaultInput { id: UUID - """Name identifier of the level requirement being tracked""" - name: String! + """ + Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. + """ + max: BigInt - """Start of current counting period; NULL means lifetime counting""" - periodStart: Datetime - updatedAt: Datetime + """ + Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) + """ + name: String! } -"""Methods to use when ordering `AppEventAggregate`.""" -enum AppEventAggregateOrderBy { - ACTOR_ID_ASC - ACTOR_ID_DESC - COUNT_ASC - COUNT_DESC - CREATED_AT_ASC - CREATED_AT_DESC +"""Methods to use when ordering `AppLimitCapsDefault`.""" +enum AppLimitCapsDefaultOrderBy { ID_ASC ID_DESC + MAX_ASC + MAX_DESC NAME_ASC NAME_DESC NATURAL - PERIOD_START_ASC - PERIOD_START_DESC PRIMARY_KEY_ASC PRIMARY_KEY_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC } """ -Represents an update to a `AppEventAggregate`. Fields that are set will be updated. +Represents an update to a `AppLimitCapsDefault`. Fields that are set will be updated. """ -input AppEventAggregatePatch { - actorId: UUID - - """Cumulative count of completed steps toward this requirement""" - count: Int - createdAt: Datetime +input AppLimitCapsDefaultPatch { id: UUID - """Name identifier of the level requirement being tracked""" - name: String + """ + Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. + """ + max: BigInt - """Start of current counting period; NULL means lifetime counting""" - periodStart: Datetime - updatedAt: Datetime + """ + Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) + """ + name: String } -"""A connection to a list of `AppEvent` values.""" -type AppEventConnection { +"""A connection to a list of `AppLimit` values.""" +type AppLimitConnection { """ - A list of edges which contains the `AppEvent` and cursor to aid in pagination. + A list of edges which contains the `AppLimit` and cursor to aid in pagination. """ - edges: [AppEventEdge]! + edges: [AppLimitEdge]! - """A list of `AppEvent` objects.""" - nodes: [AppEvent]! + """A list of `AppLimit` objects.""" + nodes: [AppLimit]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `AppEvent` you could get from the connection.""" + """The count of *all* `AppLimit` you could get from the connection.""" totalCount: Int! } -"""A `AppEvent` edge in the connection.""" -type AppEventEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `AppEvent` at the end of the edge.""" - node: AppEvent -} - """ -A filter to be used against `AppEvent` object types. All fields are combined with a logical ‘and.’ +Append-only ledger of credit grants that automatically update limit ceilings """ -input AppEventFilter { - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter +type AppLimitCredit { + """User this credit is for; NULL for aggregate entity-level credits""" + actorId: UUID - """Checks for all expressions in this list.""" - and: [AppEventFilter!] + """Number of credits to grant (positive to add, negative to revoke)""" + amount: BigInt! - """Filter by the object’s `count` field.""" - count: IntFilter + """ + Credit durability: permanent (survives window reset) or period (resets on window expiry) + """ + creditType: String! - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter - - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `name` field.""" - name: StringFilter + """ + Reads a single `AppLimitDefault` that is related to this `AppLimitCredit`. + """ + defaultLimit: AppLimitDefault - """Negates the expression.""" - not: AppEventFilter + """FK to default_limits — which limit definition this credit applies to""" + defaultLimitId: UUID! + id: UUID! - """Checks for any expressions in this list.""" - or: [AppEventFilter!] + """Optional reason for the credit grant (promo code, admin grant, etc.)""" + reason: String } -"""An input for mutations affecting `AppEvent`""" -input AppEventInput { - actorId: UUID +""" +Redeemable credit codes managed by admins with the add_credits capability +""" +type AppLimitCreditCode { + """ + Reads and enables pagination through a set of `AppLimitCreditCodeItem`. + """ + appLimitCreditCodeItemsByCreditCodeId( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """Number of units completed in this step action""" - count: Int - createdAt: Datetime + """Read all values in the set before (above) this cursor.""" + before: Cursor - """Unique identifier for each event (uuidv7 provides temporal ordering)""" - id: UUID + """Only read the first `n` values of the set.""" + first: Int - """Name identifier of the level requirement this step fulfills""" - name: String! -} + """Only read the last `n` values of the set.""" + last: Int -"""Methods to use when ordering `AppEvent`.""" -enum AppEventOrderBy { - ACTOR_ID_ASC - ACTOR_ID_DESC - COUNT_ASC - COUNT_DESC - CREATED_AT_ASC - CREATED_AT_DESC - ID_ASC - ID_DESC - NAME_ASC - NAME_DESC - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC -} + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int -""" -Represents an update to a `AppEvent`. Fields that are set will be updated. -""" -input AppEventPatch { - actorId: UUID + """The method to use when ordering `AppLimitCreditCodeItem`.""" + orderBy: [AppLimitCreditCodeItemOrderBy!] = [PRIMARY_KEY_ASC] - """Number of units completed in this step action""" - count: Int - createdAt: Datetime + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: AppLimitCreditCodeItemFilter + ): AppLimitCreditCodeItemConnection! - """Unique identifier for each event (uuidv7 provides temporal ordering)""" - id: UUID + """ + Reads and enables pagination through a set of `AppLimitCreditRedemption`. + """ + appLimitCreditRedemptionsByCreditCodeId( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """Name identifier of the level requirement this step fulfills""" - name: String -} + """Read all values in the set before (above) this cursor.""" + before: Cursor -""" -Catalog of known event types with per-type configuration for aggregation, retention, and level participation -""" -type AppEventType { - """Aggregation mode: count, sum, last_value, or none""" - aggregation: String! + """Only read the first `n` values of the set.""" + first: Int - """Grouping category: onboarding, engagement, analytics, commerce, etc.""" - category: String - createdAt: Datetime + """Only read the last `n` values of the set.""" + last: Int - """Human-readable description of this event type""" - description: String + """ + 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 event type participates in the levels/badge system by updating aggregates - """ - feedsLevels: Boolean! - id: UUID! + """The method to use when ordering `AppLimitCreditRedemption`.""" + orderBy: [AppLimitCreditRedemptionOrderBy!] = [PRIMARY_KEY_ASC] - """Whether recording of this event type is enabled""" - isActive: Boolean! + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: AppLimitCreditRedemptionFilter + ): AppLimitCreditRedemptionConnection! - """Unique name identifier for this event type""" - name: String! + """Human-readable credit code (case-insensitive, unique)""" + code: String! """ - Optional period for aggregate count reset; NULL means lifetime counting + Current number of redemptions (incremented by trigger on credit_redemptions) """ - periodInterval: Interval - updatedAt: Datetime + currentRedemptions: Int! + + """Expiration timestamp; NULL for no expiry""" + expiresAt: Datetime + id: UUID! + + """Maximum total redemptions allowed; NULL for unlimited""" + maxRedemptions: Int } -"""A connection to a list of `AppEventType` values.""" -type AppEventTypeConnection { +"""A connection to a list of `AppLimitCreditCode` values.""" +type AppLimitCreditCodeConnection { """ - A list of edges which contains the `AppEventType` and cursor to aid in pagination. + A list of edges which contains the `AppLimitCreditCode` and cursor to aid in pagination. """ - edges: [AppEventTypeEdge]! + edges: [AppLimitCreditCodeEdge]! - """A list of `AppEventType` objects.""" - nodes: [AppEventType]! + """A list of `AppLimitCreditCode` objects.""" + nodes: [AppLimitCreditCode]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `AppEventType` you could get from the connection.""" + """ + The count of *all* `AppLimitCreditCode` you could get from the connection. + """ totalCount: Int! } -"""A `AppEventType` edge in the connection.""" -type AppEventTypeEdge { +"""A `AppLimitCreditCode` edge in the connection.""" +type AppLimitCreditCodeEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `AppEventType` at the end of the edge.""" - node: AppEventType + """The `AppLimitCreditCode` at the end of the edge.""" + node: AppLimitCreditCode } """ -A filter to be used against `AppEventType` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `AppLimitCreditCode` object types. All fields are combined with a logical ‘and.’ """ -input AppEventTypeFilter { - """Filter by the object’s `aggregation` field.""" - aggregation: StringFilter - +input AppLimitCreditCodeFilter { """Checks for all expressions in this list.""" - and: [AppEventTypeFilter!] + and: [AppLimitCreditCodeFilter!] - """Filter by the object’s `category` field.""" - category: StringFilter + """ + Filter by the object’s `appLimitCreditCodeItemsByCreditCodeId` relation. + """ + appLimitCreditCodeItemsByCreditCodeId: AppLimitCreditCodeToManyAppLimitCreditCodeItemFilter - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter + """`appLimitCreditCodeItemsByCreditCodeId` exist.""" + appLimitCreditCodeItemsByCreditCodeIdExist: Boolean + + """ + Filter by the object’s `appLimitCreditRedemptionsByCreditCodeId` relation. + """ + appLimitCreditRedemptionsByCreditCodeId: AppLimitCreditCodeToManyAppLimitCreditRedemptionFilter + + """`appLimitCreditRedemptionsByCreditCodeId` exist.""" + appLimitCreditRedemptionsByCreditCodeIdExist: Boolean + + """Filter by the object’s `code` field.""" + code: StringFilter - """Filter by the object’s `description` field.""" - description: StringFilter + """Filter by the object’s `currentRedemptions` field.""" + currentRedemptions: IntFilter - """Filter by the object’s `feedsLevels` field.""" - feedsLevels: BooleanFilter + """Filter by the object’s `expiresAt` field.""" + expiresAt: DatetimeFilter """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 + """Filter by the object’s `maxRedemptions` field.""" + maxRedemptions: IntFilter """Negates the expression.""" - not: AppEventTypeFilter + not: AppLimitCreditCodeFilter """Checks for any expressions in this list.""" - or: [AppEventTypeFilter!] - - """Filter by the object’s `periodInterval` field.""" - periodInterval: IntervalFilter - - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter + or: [AppLimitCreditCodeFilter!] } -"""An input for mutations affecting `AppEventType`""" -input AppEventTypeInput { - """Aggregation mode: count, sum, last_value, or none""" - aggregation: String - - """Grouping category: onboarding, engagement, analytics, commerce, etc.""" - category: String - createdAt: Datetime - - """Human-readable description of this event type""" - description: String +"""An input for mutations affecting `AppLimitCreditCode`""" +input AppLimitCreditCodeInput { + """Human-readable credit code (case-insensitive, unique)""" + code: String! """ - Whether this event type participates in the levels/badge system by updating aggregates + Current number of redemptions (incremented by trigger on credit_redemptions) """ - feedsLevels: Boolean - id: UUID - - """Whether recording of this event type is enabled""" - isActive: Boolean - - """Unique name identifier for this event type""" - name: String! + currentRedemptions: Int - """ - Optional period for aggregate count reset; NULL means lifetime counting - """ - periodInterval: IntervalInput - updatedAt: Datetime -} + """Expiration timestamp; NULL for no expiry""" + expiresAt: Datetime + id: UUID -"""Methods to use when ordering `AppEventType`.""" -enum AppEventTypeOrderBy { - AGGREGATION_ASC - AGGREGATION_DESC - CATEGORY_ASC - CATEGORY_DESC - CREATED_AT_ASC - CREATED_AT_DESC - DESCRIPTION_ASC - DESCRIPTION_DESC - FEEDS_LEVELS_ASC - FEEDS_LEVELS_DESC - ID_ASC - ID_DESC - IS_ACTIVE_ASC - IS_ACTIVE_DESC - NAME_ASC - NAME_DESC - NATURAL - PERIOD_INTERVAL_ASC - PERIOD_INTERVAL_DESC - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC + """Maximum total redemptions allowed; NULL for unlimited""" + maxRedemptions: Int } """ -Represents an update to a `AppEventType`. Fields that are set will be updated. +Items within a credit code — each row grants credits for a specific limit definition """ -input AppEventTypePatch { - """Aggregation mode: count, sum, last_value, or none""" - aggregation: String - - """Grouping category: onboarding, engagement, analytics, commerce, etc.""" - category: String - createdAt: Datetime - - """Human-readable description of this event type""" - description: String +type AppLimitCreditCodeItem { + """Number of credits this item grants per redemption""" + amount: BigInt! """ - Whether this event type participates in the levels/badge system by updating aggregates + Reads a single `AppLimitCreditCode` that is related to this `AppLimitCreditCodeItem`. """ - feedsLevels: Boolean - id: UUID - - """Whether recording of this event type is enabled""" - isActive: Boolean + creditCode: AppLimitCreditCode - """Unique name identifier for this event type""" - name: String + """FK to credit_codes — which code this item belongs to""" + creditCodeId: UUID! """ - Optional period for aggregate count reset; NULL means lifetime counting + Credit durability: permanent (survives window reset) or period (resets on window expiry) """ - periodInterval: IntervalInput - updatedAt: Datetime -} + creditType: String! -""" -Defines available levels that users can achieve by completing requirements -""" -type AppLevel { - createdAt: Datetime + """ + Reads a single `AppLimitDefault` that is related to this `AppLimitCreditCodeItem`. + """ + defaultLimit: AppLimitDefault - """Human-readable description of what this level represents""" - description: String + """FK to default_limits — which limit this item grants credits for""" + defaultLimitId: UUID! id: UUID! - - """Badge or icon image associated with this level""" - image: ConstructiveInternalTypeImage - - """Unique name of the level""" - name: String! - - """Optional owner (actor) who created or manages this level""" - ownerId: UUID - updatedAt: Datetime } -"""A connection to a list of `AppLevel` values.""" -type AppLevelConnection { +"""A connection to a list of `AppLimitCreditCodeItem` values.""" +type AppLimitCreditCodeItemConnection { """ - A list of edges which contains the `AppLevel` and cursor to aid in pagination. + A list of edges which contains the `AppLimitCreditCodeItem` and cursor to aid in pagination. """ - edges: [AppLevelEdge]! + edges: [AppLimitCreditCodeItemEdge]! - """A list of `AppLevel` objects.""" - nodes: [AppLevel]! + """A list of `AppLimitCreditCodeItem` objects.""" + nodes: [AppLimitCreditCodeItem]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `AppLevel` you could get from the connection.""" + """ + The count of *all* `AppLimitCreditCodeItem` you could get from the connection. + """ totalCount: Int! } -"""A `AppLevel` edge in the connection.""" -type AppLevelEdge { +"""A `AppLimitCreditCodeItem` edge in the connection.""" +type AppLimitCreditCodeItemEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `AppLevel` at the end of the edge.""" - node: AppLevel + """The `AppLimitCreditCodeItem` at the end of the edge.""" + node: AppLimitCreditCodeItem } """ -A filter to be used against `AppLevel` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ """ -input AppLevelFilter { - """Checks for all expressions in this list.""" - and: [AppLevelFilter!] +input AppLimitCreditCodeItemFilter { + """Filter by the object’s `amount` field.""" + amount: BigIntFilter - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter + """Checks for all expressions in this list.""" + and: [AppLimitCreditCodeItemFilter!] - """Filter by the object’s `description` field.""" - description: StringFilter + """Filter by the object’s `creditCode` relation.""" + creditCode: AppLimitCreditCodeFilter - """Filter by the object’s `id` field.""" - id: UUIDFilter + """Filter by the object’s `creditCodeId` field.""" + creditCodeId: UUIDFilter - """Filter by the object’s `image` field.""" - image: ConstructiveInternalTypeImageFilter + """Filter by the object’s `creditType` field.""" + creditType: StringFilter - """Filter by the object’s `name` field.""" - name: StringFilter - - """Negates the expression.""" - not: AppLevelFilter - - """Checks for any expressions in this list.""" - or: [AppLevelFilter!] - - """Filter by the object’s `ownerId` field.""" - ownerId: UUIDFilter - - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter -} - -"""Records when a user achieves a level; prevents duplicate reward grants""" -type AppLevelGrant { - actorId: UUID! - createdAt: Datetime - - """When this grant lapses; NULL means it holds until revoked""" - expiresAt: Datetime - id: UUID! - - """Name of the level that was achieved""" - levelName: String! - - """ - Period start for periodic achievements; -infinity for non-periodic (earn-once) - """ - periodStart: Datetime! - updatedAt: Datetime -} - -"""A connection to a list of `AppLevelGrant` values.""" -type AppLevelGrantConnection { - """ - A list of edges which contains the `AppLevelGrant` and cursor to aid in pagination. - """ - edges: [AppLevelGrantEdge]! - - """A list of `AppLevelGrant` objects.""" - nodes: [AppLevelGrant]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `AppLevelGrant` you could get from the connection.""" - totalCount: Int! -} - -"""A `AppLevelGrant` edge in the connection.""" -type AppLevelGrantEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `AppLevelGrant` at the end of the edge.""" - node: AppLevelGrant -} - -""" -A filter to be used against `AppLevelGrant` object types. All fields are combined with a logical ‘and.’ -""" -input AppLevelGrantFilter { - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter - - """Checks for all expressions in this list.""" - and: [AppLevelGrantFilter!] - - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter + """Filter by the object’s `defaultLimit` relation.""" + defaultLimit: AppLimitDefaultFilter - """Filter by the object’s `expiresAt` field.""" - expiresAt: DatetimeFilter + """Filter by the object’s `defaultLimitId` field.""" + defaultLimitId: UUIDFilter """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `levelName` field.""" - levelName: StringFilter - """Negates the expression.""" - not: AppLevelGrantFilter + not: AppLimitCreditCodeItemFilter """Checks for any expressions in this list.""" - or: [AppLevelGrantFilter!] - - """Filter by the object’s `periodStart` field.""" - periodStart: DatetimeFilter - - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter + or: [AppLimitCreditCodeItemFilter!] } -"""An input for mutations affecting `AppLevelGrant`""" -input AppLevelGrantInput { - actorId: UUID - createdAt: Datetime - - """When this grant lapses; NULL means it holds until revoked""" - expiresAt: Datetime - id: UUID +"""An input for mutations affecting `AppLimitCreditCodeItem`""" +input AppLimitCreditCodeItemInput { + """Number of credits this item grants per redemption""" + amount: BigInt! - """Name of the level that was achieved""" - levelName: String! + """FK to credit_codes — which code this item belongs to""" + creditCodeId: UUID! """ - Period start for periodic achievements; -infinity for non-periodic (earn-once) + Credit durability: permanent (survives window reset) or period (resets on window expiry) """ - periodStart: Datetime - updatedAt: Datetime + creditType: String + + """FK to default_limits — which limit this item grants credits for""" + defaultLimitId: UUID! + id: UUID } -"""Methods to use when ordering `AppLevelGrant`.""" -enum AppLevelGrantOrderBy { - ACTOR_ID_ASC - ACTOR_ID_DESC - CREATED_AT_ASC - CREATED_AT_DESC - EXPIRES_AT_ASC - EXPIRES_AT_DESC +"""Methods to use when ordering `AppLimitCreditCodeItem`.""" +enum AppLimitCreditCodeItemOrderBy { + AMOUNT_ASC + AMOUNT_DESC + CREDIT_CODE_ID_ASC + CREDIT_CODE_ID_DESC + CREDIT_TYPE_ASC + CREDIT_TYPE_DESC + DEFAULT_LIMIT_ID_ASC + DEFAULT_LIMIT_ID_DESC ID_ASC ID_DESC - LEVEL_NAME_ASC - LEVEL_NAME_DESC NATURAL - PERIOD_START_ASC - PERIOD_START_DESC PRIMARY_KEY_ASC PRIMARY_KEY_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC } """ -Represents an update to a `AppLevelGrant`. Fields that are set will be updated. +Represents an update to a `AppLimitCreditCodeItem`. Fields that are set will be updated. """ -input AppLevelGrantPatch { - actorId: UUID - createdAt: Datetime - - """When this grant lapses; NULL means it holds until revoked""" - expiresAt: Datetime - id: UUID +input AppLimitCreditCodeItemPatch { + """Number of credits this item grants per redemption""" + amount: BigInt - """Name of the level that was achieved""" - levelName: String + """FK to credit_codes — which code this item belongs to""" + creditCodeId: UUID """ - Period start for periodic achievements; -infinity for non-periodic (earn-once) + Credit durability: permanent (survives window reset) or period (resets on window expiry) """ - periodStart: Datetime - updatedAt: Datetime -} - -"""An input for mutations affecting `AppLevel`""" -input AppLevelInput { - createdAt: Datetime + creditType: String - """Human-readable description of what this level represents""" - description: String + """FK to default_limits — which limit this item grants credits for""" + defaultLimitId: UUID id: UUID - - """Badge or icon image associated with this level""" - image: ConstructiveInternalTypeImage - - """Unique name of the level""" - name: String! - - """Optional owner (actor) who created or manages this level""" - ownerId: UUID - updatedAt: Datetime } -"""Methods to use when ordering `AppLevel`.""" -enum AppLevelOrderBy { - CREATED_AT_ASC - CREATED_AT_DESC - DESCRIPTION_ASC - DESCRIPTION_DESC +"""Methods to use when ordering `AppLimitCreditCode`.""" +enum AppLimitCreditCodeOrderBy { + CODE_ASC + CODE_DESC + CURRENT_REDEMPTIONS_ASC + CURRENT_REDEMPTIONS_DESC + EXPIRES_AT_ASC + EXPIRES_AT_DESC ID_ASC ID_DESC - IMAGE_ASC - IMAGE_DESC - NAME_ASC - NAME_DESC + MAX_REDEMPTIONS_ASC + MAX_REDEMPTIONS_DESC NATURAL - OWNER_ID_ASC - OWNER_ID_DESC PRIMARY_KEY_ASC PRIMARY_KEY_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC } """ -Represents an update to a `AppLevel`. Fields that are set will be updated. +Represents an update to a `AppLimitCreditCode`. Fields that are set will be updated. """ -input AppLevelPatch { - createdAt: Datetime - - """Human-readable description of what this level represents""" - description: String - id: UUID - - """Badge or icon image associated with this level""" - image: ConstructiveInternalTypeImage +input AppLimitCreditCodePatch { + """Human-readable credit code (case-insensitive, unique)""" + code: String - """Upload for Badge or icon image associated with this level""" - imageUpload: Upload + """ + Current number of redemptions (incremented by trigger on credit_redemptions) + """ + currentRedemptions: Int - """Unique name of the level""" - name: String + """Expiration timestamp; NULL for no expiry""" + expiresAt: Datetime + id: UUID - """Optional owner (actor) who created or manages this level""" - ownerId: UUID - updatedAt: Datetime + """Maximum total redemptions allowed; NULL for unlimited""" + maxRedemptions: Int } -"""Defines the specific requirements that must be met to achieve a level""" -type AppLevelRequirement { - createdAt: Datetime - - """Human-readable description of what this requirement entails""" - description: String - - """ - Requirements of a level sharing this key satisfy it as alternatives; NULL requires this one on its own - """ - groupKey: String - id: UUID! +""" +A filter to be used against many `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ +""" +input AppLimitCreditCodeToManyAppLimitCreditCodeItemFilter { + """Filters to entities where every related entity matches.""" + every: AppLimitCreditCodeItemFilter - """Name of the level this requirement belongs to""" - level: String! + """Filters to entities where no related entity matches.""" + none: AppLimitCreditCodeItemFilter - """ - Computed signal to compare against required_count instead of an event count; currently only account_age_days - """ - metric: String + """Filters to entities where at least one related entity matches.""" + some: AppLimitCreditCodeItemFilter +} - """Name identifier of the requirement (matches step names)""" - name: String! +""" +A filter to be used against many `AppLimitCreditRedemption` object types. All fields are combined with a logical ‘and.’ +""" +input AppLimitCreditCodeToManyAppLimitCreditRedemptionFilter { + """Filters to entities where every related entity matches.""" + every: AppLimitCreditRedemptionFilter - """Display ordering priority; lower values appear first""" - priority: Int! + """Filters to entities where no related entity matches.""" + none: AppLimitCreditRedemptionFilter - """Number of steps needed to satisfy this requirement""" - requiredCount: Int! - updatedAt: Datetime + """Filters to entities where at least one related entity matches.""" + some: AppLimitCreditRedemptionFilter } -"""A connection to a list of `AppLevelRequirement` values.""" -type AppLevelRequirementConnection { +"""A connection to a list of `AppLimitCredit` values.""" +type AppLimitCreditConnection { """ - A list of edges which contains the `AppLevelRequirement` and cursor to aid in pagination. + A list of edges which contains the `AppLimitCredit` and cursor to aid in pagination. """ - edges: [AppLevelRequirementEdge]! + edges: [AppLimitCreditEdge]! - """A list of `AppLevelRequirement` objects.""" - nodes: [AppLevelRequirement]! + """A list of `AppLimitCredit` objects.""" + nodes: [AppLimitCredit]! """Information to aid in pagination.""" pageInfo: PageInfo! - """ - The count of *all* `AppLevelRequirement` you could get from the connection. - """ + """The count of *all* `AppLimitCredit` you could get from the connection.""" totalCount: Int! } -"""A `AppLevelRequirement` edge in the connection.""" -type AppLevelRequirementEdge { +"""A `AppLimitCredit` edge in the connection.""" +type AppLimitCreditEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `AppLevelRequirement` at the end of the edge.""" - node: AppLevelRequirement + """The `AppLimitCredit` at the end of the edge.""" + node: AppLimitCredit } """ -A filter to be used against `AppLevelRequirement` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `AppLimitCredit` object types. All fields are combined with a logical ‘and.’ """ -input AppLevelRequirementFilter { +input AppLimitCreditFilter { + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter + + """Filter by the object’s `amount` field.""" + amount: BigIntFilter + """Checks for all expressions in this list.""" - and: [AppLevelRequirementFilter!] + and: [AppLimitCreditFilter!] - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter + """Filter by the object’s `creditType` field.""" + creditType: StringFilter - """Filter by the object’s `description` field.""" - description: StringFilter + """Filter by the object’s `defaultLimit` relation.""" + defaultLimit: AppLimitDefaultFilter - """Filter by the object’s `groupKey` field.""" - groupKey: StringFilter + """Filter by the object’s `defaultLimitId` field.""" + defaultLimitId: UUIDFilter """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `level` field.""" - level: StringFilter - - """Filter by the object’s `metric` field.""" - metric: StringFilter - - """Filter by the object’s `name` field.""" - name: StringFilter - """Negates the expression.""" - not: AppLevelRequirementFilter + not: AppLimitCreditFilter """Checks for any expressions in this list.""" - or: [AppLevelRequirementFilter!] - - """Filter by the object’s `priority` field.""" - priority: IntFilter - - """Filter by the object’s `requiredCount` field.""" - requiredCount: IntFilter + or: [AppLimitCreditFilter!] - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter + """Filter by the object’s `reason` field.""" + reason: StringFilter } -"""An input for mutations affecting `AppLevelRequirement`""" -input AppLevelRequirementInput { - createdAt: Datetime - - """Human-readable description of what this requirement entails""" - description: String - - """ - Requirements of a level sharing this key satisfy it as alternatives; NULL requires this one on its own - """ - groupKey: String - id: UUID +"""An input for mutations affecting `AppLimitCredit`""" +input AppLimitCreditInput { + """User this credit is for; NULL for aggregate entity-level credits""" + actorId: UUID - """Name of the level this requirement belongs to""" - level: String! + """Number of credits to grant (positive to add, negative to revoke)""" + amount: BigInt! """ - Computed signal to compare against required_count instead of an event count; currently only account_age_days + Credit durability: permanent (survives window reset) or period (resets on window expiry) """ - metric: String - - """Name identifier of the requirement (matches step names)""" - name: String! + creditType: String - """Display ordering priority; lower values appear first""" - priority: Int + """FK to default_limits — which limit definition this credit applies to""" + defaultLimitId: UUID! + id: UUID - """Number of steps needed to satisfy this requirement""" - requiredCount: Int - updatedAt: Datetime + """Optional reason for the credit grant (promo code, admin grant, etc.)""" + reason: String } -"""Methods to use when ordering `AppLevelRequirement`.""" -enum AppLevelRequirementOrderBy { - CREATED_AT_ASC - CREATED_AT_DESC - DESCRIPTION_ASC - DESCRIPTION_DESC - GROUP_KEY_ASC - GROUP_KEY_DESC +"""Methods to use when ordering `AppLimitCredit`.""" +enum AppLimitCreditOrderBy { + ACTOR_ID_ASC + ACTOR_ID_DESC + AMOUNT_ASC + AMOUNT_DESC + CREDIT_TYPE_ASC + CREDIT_TYPE_DESC + DEFAULT_LIMIT_ID_ASC + DEFAULT_LIMIT_ID_DESC ID_ASC ID_DESC - LEVEL_ASC - LEVEL_DESC - METRIC_ASC - METRIC_DESC - NAME_ASC - NAME_DESC NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC - PRIORITY_ASC - PRIORITY_DESC - REQUIRED_COUNT_ASC - REQUIRED_COUNT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC -} + REASON_ASC + REASON_DESC +} """ -Represents an update to a `AppLevelRequirement`. Fields that are set will be updated. +Represents an update to a `AppLimitCredit`. Fields that are set will be updated. """ -input AppLevelRequirementPatch { - createdAt: Datetime +input AppLimitCreditPatch { + """User this credit is for; NULL for aggregate entity-level credits""" + actorId: UUID - """Human-readable description of what this requirement entails""" - description: String + """Number of credits to grant (positive to add, negative to revoke)""" + amount: BigInt """ - Requirements of a level sharing this key satisfy it as alternatives; NULL requires this one on its own + Credit durability: permanent (survives window reset) or period (resets on window expiry) """ - groupKey: String + creditType: String + + """FK to default_limits — which limit definition this credit applies to""" + defaultLimitId: UUID id: UUID - """Name of the level this requirement belongs to""" - level: String + """Optional reason for the credit grant (promo code, admin grant, etc.)""" + reason: String +} +""" +Append-only ledger of code redemptions; AFTER INSERT trigger validates and cascades to limit_credits +""" +type AppLimitCreditRedemption { """ - Computed signal to compare against required_count instead of an event count; currently only account_age_days + Reads a single `AppLimitCreditCode` that is related to this `AppLimitCreditRedemption`. """ - metric: String - - """Name identifier of the requirement (matches step names)""" - name: String - - """Display ordering priority; lower values appear first""" - priority: Int + creditCode: AppLimitCreditCode - """Number of steps needed to satisfy this requirement""" - requiredCount: Int - updatedAt: Datetime -} + """FK to credit_codes — which code is being redeemed""" + creditCodeId: UUID! -"""Tracks per-actor usage counts against configurable maximum limits""" -type AppLimit { - """User whose usage is being tracked against this limit""" - actorId: UUID! + """Entity receiving the credits (personal org user_id or org entity_id)""" + entityId: UUID! - """Entity type prefix (org, team, app, etc.) for interpreting entity_id""" + """Membership prefix identifying the entity kind (org, team, app)""" entityType: String id: UUID! - """ - Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. - """ - max: BigInt - - """Name identifier of the limit being tracked""" - name: String - - """Current usage count for this actor and limit""" - num: BigInt - """Resolved billable organization via get_organization_id""" organizationId: UUID - - """ - Temporary credits for the current billing window. Resets to 0 on window expiry. - """ - periodCredits: BigInt - - """ - 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 - - """ - Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. - """ - purchasedCredits: BigInt - - """ - Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. - """ - softMax: BigInt - - """ - Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window - """ - windowDuration: Interval - - """Start of the current metering window; NULL means no time window""" - windowStart: Datetime -} - -""" -Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. -""" -type AppLimitCap { - """Entity this cap override applies to""" - entityId: UUID! - id: UUID! - - """Override cap value for this entity""" - max: BigInt! - - """Name identifier of the cap being overridden""" - name: String! } -"""A connection to a list of `AppLimitCap` values.""" -type AppLimitCapConnection { +"""A connection to a list of `AppLimitCreditRedemption` values.""" +type AppLimitCreditRedemptionConnection { """ - A list of edges which contains the `AppLimitCap` and cursor to aid in pagination. + A list of edges which contains the `AppLimitCreditRedemption` and cursor to aid in pagination. """ - edges: [AppLimitCapEdge]! + edges: [AppLimitCreditRedemptionEdge]! - """A list of `AppLimitCap` objects.""" - nodes: [AppLimitCap]! + """A list of `AppLimitCreditRedemption` objects.""" + nodes: [AppLimitCreditRedemption]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `AppLimitCap` you could get from the connection.""" + """ + The count of *all* `AppLimitCreditRedemption` you could get from the connection. + """ totalCount: Int! } -"""A `AppLimitCap` edge in the connection.""" -type AppLimitCapEdge { +"""A `AppLimitCreditRedemption` edge in the connection.""" +type AppLimitCreditRedemptionEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `AppLimitCap` at the end of the edge.""" - node: AppLimitCap + """The `AppLimitCreditRedemption` at the end of the edge.""" + node: AppLimitCreditRedemption } """ -A filter to be used against `AppLimitCap` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `AppLimitCreditRedemption` object types. All fields are combined with a logical ‘and.’ """ -input AppLimitCapFilter { +input AppLimitCreditRedemptionFilter { """Checks for all expressions in this list.""" - and: [AppLimitCapFilter!] + and: [AppLimitCreditRedemptionFilter!] + + """Filter by the object’s `creditCode` relation.""" + creditCode: AppLimitCreditCodeFilter + + """Filter by the object’s `creditCodeId` field.""" + creditCodeId: UUIDFilter """Filter by the object’s `entityId` field.""" entityId: UUIDFilter + """Filter by the object’s `entityType` field.""" + entityType: StringFilter + """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `max` field.""" - max: BigIntFilter - - """Filter by the object’s `name` field.""" - name: StringFilter - """Negates the expression.""" - not: AppLimitCapFilter + not: AppLimitCreditRedemptionFilter """Checks for any expressions in this list.""" - or: [AppLimitCapFilter!] + or: [AppLimitCreditRedemptionFilter!] + + """Filter by the object’s `organizationId` field.""" + organizationId: UUIDFilter } -"""An input for mutations affecting `AppLimitCap`""" -input AppLimitCapInput { - """Entity this cap override applies to""" +"""An input for mutations affecting `AppLimitCreditRedemption`""" +input AppLimitCreditRedemptionInput { + """FK to credit_codes — which code is being redeemed""" + creditCodeId: UUID! + + """Entity receiving the credits (personal org user_id or org entity_id)""" entityId: UUID! - id: UUID - """Override cap value for this entity""" - max: BigInt + """Membership prefix identifying the entity kind (org, team, app)""" + entityType: String + id: UUID - """Name identifier of the cap being overridden""" - name: String! + """Resolved billable organization via get_organization_id""" + organizationId: UUID } -"""Methods to use when ordering `AppLimitCap`.""" -enum AppLimitCapOrderBy { +"""Methods to use when ordering `AppLimitCreditRedemption`.""" +enum AppLimitCreditRedemptionOrderBy { + CREDIT_CODE_ID_ASC + CREDIT_CODE_ID_DESC ENTITY_ID_ASC ENTITY_ID_DESC + ENTITY_TYPE_ASC + ENTITY_TYPE_DESC ID_ASC ID_DESC - MAX_ASC - MAX_DESC - NAME_ASC - NAME_DESC NATURAL + ORGANIZATION_ID_ASC + ORGANIZATION_ID_DESC PRIMARY_KEY_ASC PRIMARY_KEY_DESC } """ -Represents an update to a `AppLimitCap`. Fields that are set will be updated. +Represents an update to a `AppLimitCreditRedemption`. Fields that are set will be updated. """ -input AppLimitCapPatch { - """Entity this cap override applies to""" +input AppLimitCreditRedemptionPatch { + """FK to credit_codes — which code is being redeemed""" + creditCodeId: UUID + + """Entity receiving the credits (personal org user_id or org entity_id)""" entityId: UUID - id: UUID - """Override cap value for this entity""" - max: BigInt + """Membership prefix identifying the entity kind (org, team, app)""" + entityType: String + id: UUID - """Name identifier of the cap being overridden""" - name: String + """Resolved billable organization via get_organization_id""" + organizationId: UUID } """ -Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. +Default maximum values for each named limit, applied when no per-actor override exists """ -type AppLimitCapsDefault { - id: UUID! - - """ - Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. - """ - max: BigInt! - +type AppLimitDefault { """ - Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) + Reads and enables pagination through a set of `AppLimitCreditCodeItem`. """ - name: String! -} + appLimitCreditCodeItemsByDefaultLimitId( + """Read all values in the set after (below) this cursor.""" + after: Cursor -"""A connection to a list of `AppLimitCapsDefault` values.""" -type AppLimitCapsDefaultConnection { - """ - A list of edges which contains the `AppLimitCapsDefault` and cursor to aid in pagination. - """ - edges: [AppLimitCapsDefaultEdge]! + """Read all values in the set before (above) this cursor.""" + before: Cursor - """A list of `AppLimitCapsDefault` objects.""" - nodes: [AppLimitCapsDefault]! + """Only read the first `n` values of the set.""" + first: Int - """Information to aid in pagination.""" - pageInfo: PageInfo! + """Only read the last `n` values of the set.""" + last: Int - """ - The count of *all* `AppLimitCapsDefault` you could get from the connection. - """ - totalCount: Int! -} + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int -"""A `AppLimitCapsDefault` edge in the connection.""" -type AppLimitCapsDefaultEdge { - """A cursor for use in pagination.""" - cursor: Cursor + """The method to use when ordering `AppLimitCreditCodeItem`.""" + orderBy: [AppLimitCreditCodeItemOrderBy!] = [PRIMARY_KEY_ASC] - """The `AppLimitCapsDefault` at the end of the edge.""" - node: AppLimitCapsDefault -} + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: AppLimitCreditCodeItemFilter + ): AppLimitCreditCodeItemConnection! + + """Reads and enables pagination through a set of `AppLimitCredit`.""" + appLimitCreditsByDefaultLimitId( + """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 `AppLimitCredit`.""" + orderBy: [AppLimitCreditOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: AppLimitCreditFilter + ): AppLimitCreditConnection! + id: UUID! + + """Default maximum usage allowed for this limit""" + max: BigInt + + """Name identifier of the limit this default applies to""" + name: String! + + """Default soft limit threshold for warnings; NULL means no soft limit""" + softMax: BigInt +} + +"""A connection to a list of `AppLimitDefault` values.""" +type AppLimitDefaultConnection { + """ + A list of edges which contains the `AppLimitDefault` and cursor to aid in pagination. + """ + edges: [AppLimitDefaultEdge]! + + """A list of `AppLimitDefault` objects.""" + nodes: [AppLimitDefault]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `AppLimitDefault` you could get from the connection. + """ + totalCount: Int! +} + +"""A `AppLimitDefault` edge in the connection.""" +type AppLimitDefaultEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `AppLimitDefault` at the end of the edge.""" + node: AppLimitDefault +} """ -A filter to be used against `AppLimitCapsDefault` object types. All fields are combined with a logical ‘and.’ -""" -input AppLimitCapsDefaultFilter { +A filter to be used against `AppLimitDefault` object types. All fields are combined with a logical ‘and.’ +""" +input AppLimitDefaultFilter { """Checks for all expressions in this list.""" - and: [AppLimitCapsDefaultFilter!] + and: [AppLimitDefaultFilter!] + + """ + Filter by the object’s `appLimitCreditCodeItemsByDefaultLimitId` relation. + """ + appLimitCreditCodeItemsByDefaultLimitId: AppLimitDefaultToManyAppLimitCreditCodeItemFilter + + """`appLimitCreditCodeItemsByDefaultLimitId` exist.""" + appLimitCreditCodeItemsByDefaultLimitIdExist: Boolean + + """Filter by the object’s `appLimitCreditsByDefaultLimitId` relation.""" + appLimitCreditsByDefaultLimitId: AppLimitDefaultToManyAppLimitCreditFilter + + """`appLimitCreditsByDefaultLimitId` exist.""" + appLimitCreditsByDefaultLimitIdExist: Boolean """Filter by the object’s `id` field.""" id: UUIDFilter @@ -1336,29 +1096,31 @@ input AppLimitCapsDefaultFilter { name: StringFilter """Negates the expression.""" - not: AppLimitCapsDefaultFilter + not: AppLimitDefaultFilter """Checks for any expressions in this list.""" - or: [AppLimitCapsDefaultFilter!] + or: [AppLimitDefaultFilter!] + + """Filter by the object’s `softMax` field.""" + softMax: BigIntFilter } -"""An input for mutations affecting `AppLimitCapsDefault`""" -input AppLimitCapsDefaultInput { +"""An input for mutations affecting `AppLimitDefault`""" +input AppLimitDefaultInput { id: UUID - """ - Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. - """ + """Default maximum usage allowed for this limit""" max: BigInt - """ - Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) - """ + """Name identifier of the limit this default applies to""" name: String! + + """Default soft limit threshold for warnings; NULL means no soft limit""" + softMax: BigInt } -"""Methods to use when ordering `AppLimitCapsDefault`.""" -enum AppLimitCapsDefaultOrderBy { +"""Methods to use when ordering `AppLimitDefault`.""" +enum AppLimitDefaultOrderBy { ID_ASC ID_DESC MAX_ASC @@ -1368,10610 +1130,4538 @@ enum AppLimitCapsDefaultOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC + SOFT_MAX_ASC + SOFT_MAX_DESC } """ -Represents an update to a `AppLimitCapsDefault`. Fields that are set will be updated. +Represents an update to a `AppLimitDefault`. Fields that are set will be updated. """ -input AppLimitCapsDefaultPatch { +input AppLimitDefaultPatch { id: UUID - """ - Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. - """ + """Default maximum usage allowed for this limit""" max: BigInt - """ - Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) - """ + """Name identifier of the limit this default applies to""" name: String -} -"""A connection to a list of `AppLimit` values.""" -type AppLimitConnection { - """ - A list of edges which contains the `AppLimit` and cursor to aid in pagination. - """ - edges: [AppLimitEdge]! + """Default soft limit threshold for warnings; NULL means no soft limit""" + softMax: BigInt +} - """A list of `AppLimit` objects.""" - nodes: [AppLimit]! +""" +A filter to be used against many `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ +""" +input AppLimitDefaultToManyAppLimitCreditCodeItemFilter { + """Filters to entities where every related entity matches.""" + every: AppLimitCreditCodeItemFilter - """Information to aid in pagination.""" - pageInfo: PageInfo! + """Filters to entities where no related entity matches.""" + none: AppLimitCreditCodeItemFilter - """The count of *all* `AppLimit` you could get from the connection.""" - totalCount: Int! + """Filters to entities where at least one related entity matches.""" + some: AppLimitCreditCodeItemFilter } """ -Append-only ledger of credit grants that automatically update limit ceilings +A filter to be used against many `AppLimitCredit` object types. All fields are combined with a logical ‘and.’ """ -type AppLimitCredit { - """User this credit is for; NULL for aggregate entity-level credits""" +input AppLimitDefaultToManyAppLimitCreditFilter { + """Filters to entities where every related entity matches.""" + every: AppLimitCreditFilter + + """Filters to entities where no related entity matches.""" + none: AppLimitCreditFilter + + """Filters to entities where at least one related entity matches.""" + some: AppLimitCreditFilter +} + +"""A `AppLimit` edge in the connection.""" +type AppLimitEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `AppLimit` at the end of the edge.""" + node: AppLimit +} + +"""Append-only log of limit events for historical reporting and audit""" +type AppLimitEvent { + """User who triggered this event; NULL for system/aggregate events""" actorId: UUID + createdAt: Datetime! - """Number of credits to grant (positive to add, negative to revoke)""" - amount: BigInt! + """Change amount: positive for increment, negative for decrement""" + delta: BigInt + + """Entity this event applies to; NULL for app-level events""" + entityId: UUID + + """Entity type prefix (org, team, app, etc.) for interpreting entity_id""" + entityType: String + + """Event type: inc, dec, check, modify, transfer, apply_plan, reset""" + eventType: String + + """Unique identifier for each limit event""" + id: UUID! + + """Max limit ceiling at the time of this event""" + maxAtEvent: BigInt + + """Limit name this event applies to""" + name: String + + """Usage count after this event""" + numAfter: BigInt + + """Usage count before this event""" + numBefore: BigInt """ - Credit durability: permanent (survives window reset) or period (resets on window expiry) + Resolved billable organization via get_organization_id; NULL for app-level events """ - creditType: String! + organizationId: UUID """ - Reads a single `AppLimitDefault` that is related to this `AppLimitCredit`. + Optional reason or source: achievement, invite, plan_change, purchase, etc. """ - defaultLimit: AppLimitDefault - - """FK to default_limits — which limit definition this credit applies to""" - defaultLimitId: UUID! - id: UUID! - - """Optional reason for the credit grant (promo code, admin grant, etc.)""" reason: String } -""" -Redeemable credit codes managed by admins with the add_credits capability -""" -type AppLimitCreditCode { +"""A connection to a list of `AppLimitEvent` values.""" +type AppLimitEventConnection { """ - Reads and enables pagination through a set of `AppLimitCreditCodeItem`. + A list of edges which contains the `AppLimitEvent` and cursor to aid in pagination. """ - appLimitCreditCodeItemsByCreditCodeId( - """Read all values in the set after (below) this cursor.""" - after: Cursor - - """Read all values in the set before (above) this cursor.""" - before: Cursor + edges: [AppLimitEventEdge]! - """Only read the first `n` values of the set.""" - first: Int + """A list of `AppLimitEvent` objects.""" + nodes: [AppLimitEvent]! - """Only read the last `n` values of the set.""" - last: Int + """Information to aid in pagination.""" + pageInfo: PageInfo! - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int + """The count of *all* `AppLimitEvent` you could get from the connection.""" + totalCount: Int! +} - """The method to use when ordering `AppLimitCreditCodeItem`.""" - orderBy: [AppLimitCreditCodeItemOrderBy!] = [PRIMARY_KEY_ASC] - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: AppLimitCreditCodeItemFilter - ): AppLimitCreditCodeItemConnection! +"""A `AppLimitEvent` edge in the connection.""" +type AppLimitEventEdge { + """A cursor for use in pagination.""" + cursor: Cursor - """ - Reads and enables pagination through a set of `AppLimitCreditRedemption`. - """ - appLimitCreditRedemptionsByCreditCodeId( - """Read all values in the set after (below) this cursor.""" - after: Cursor + """The `AppLimitEvent` at the end of the edge.""" + node: AppLimitEvent +} - """Read all values in the set before (above) this cursor.""" - before: Cursor +""" +A filter to be used against `AppLimitEvent` object types. All fields are combined with a logical ‘and.’ +""" +input AppLimitEventFilter { + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter - """Only read the first `n` values of the set.""" - first: Int + """Checks for all expressions in this list.""" + and: [AppLimitEventFilter!] - """Only read the last `n` values of the set.""" - last: Int + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter - """ - 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 `delta` field.""" + delta: BigIntFilter - """The method to use when ordering `AppLimitCreditRedemption`.""" - orderBy: [AppLimitCreditRedemptionOrderBy!] = [PRIMARY_KEY_ASC] + """Filter by the object’s `entityId` field.""" + entityId: UUIDFilter - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: AppLimitCreditRedemptionFilter - ): AppLimitCreditRedemptionConnection! + """Filter by the object’s `entityType` field.""" + entityType: StringFilter - """Human-readable credit code (case-insensitive, unique)""" - code: String! + """Filter by the object’s `eventType` field.""" + eventType: StringFilter - """ - Current number of redemptions (incremented by trigger on credit_redemptions) - """ - currentRedemptions: Int! + """Filter by the object’s `id` field.""" + id: UUIDFilter - """Expiration timestamp; NULL for no expiry""" - expiresAt: Datetime - id: UUID! + """Filter by the object’s `maxAtEvent` field.""" + maxAtEvent: BigIntFilter - """Maximum total redemptions allowed; NULL for unlimited""" - maxRedemptions: Int -} + """Filter by the object’s `name` field.""" + name: StringFilter -"""A connection to a list of `AppLimitCreditCode` values.""" -type AppLimitCreditCodeConnection { - """ - A list of edges which contains the `AppLimitCreditCode` and cursor to aid in pagination. - """ - edges: [AppLimitCreditCodeEdge]! + """Negates the expression.""" + not: AppLimitEventFilter - """A list of `AppLimitCreditCode` objects.""" - nodes: [AppLimitCreditCode]! + """Filter by the object’s `numAfter` field.""" + numAfter: BigIntFilter - """Information to aid in pagination.""" - pageInfo: PageInfo! + """Filter by the object’s `numBefore` field.""" + numBefore: BigIntFilter - """ - The count of *all* `AppLimitCreditCode` you could get from the connection. - """ - totalCount: Int! -} + """Checks for any expressions in this list.""" + or: [AppLimitEventFilter!] -"""A `AppLimitCreditCode` edge in the connection.""" -type AppLimitCreditCodeEdge { - """A cursor for use in pagination.""" - cursor: Cursor + """Filter by the object’s `organizationId` field.""" + organizationId: UUIDFilter - """The `AppLimitCreditCode` at the end of the edge.""" - node: AppLimitCreditCode + """Filter by the object’s `reason` field.""" + reason: StringFilter } -""" -A filter to be used against `AppLimitCreditCode` object types. All fields are combined with a logical ‘and.’ -""" -input AppLimitCreditCodeFilter { - """Checks for all expressions in this list.""" - and: [AppLimitCreditCodeFilter!] - - """ - Filter by the object’s `appLimitCreditCodeItemsByCreditCodeId` relation. - """ - appLimitCreditCodeItemsByCreditCodeId: AppLimitCreditCodeToManyAppLimitCreditCodeItemFilter - - """`appLimitCreditCodeItemsByCreditCodeId` exist.""" - appLimitCreditCodeItemsByCreditCodeIdExist: Boolean - - """ - Filter by the object’s `appLimitCreditRedemptionsByCreditCodeId` relation. - """ - appLimitCreditRedemptionsByCreditCodeId: AppLimitCreditCodeToManyAppLimitCreditRedemptionFilter +"""An input for mutations affecting `AppLimitEvent`""" +input AppLimitEventInput { + """User who triggered this event; NULL for system/aggregate events""" + actorId: UUID + createdAt: Datetime - """`appLimitCreditRedemptionsByCreditCodeId` exist.""" - appLimitCreditRedemptionsByCreditCodeIdExist: Boolean + """Change amount: positive for increment, negative for decrement""" + delta: BigInt - """Filter by the object’s `code` field.""" - code: StringFilter + """Entity this event applies to; NULL for app-level events""" + entityId: UUID - """Filter by the object’s `currentRedemptions` field.""" - currentRedemptions: IntFilter + """Entity type prefix (org, team, app, etc.) for interpreting entity_id""" + entityType: String - """Filter by the object’s `expiresAt` field.""" - expiresAt: DatetimeFilter + """Event type: inc, dec, check, modify, transfer, apply_plan, reset""" + eventType: String - """Filter by the object’s `id` field.""" - id: UUIDFilter + """Unique identifier for each limit event""" + id: UUID - """Filter by the object’s `maxRedemptions` field.""" - maxRedemptions: IntFilter + """Max limit ceiling at the time of this event""" + maxAtEvent: BigInt - """Negates the expression.""" - not: AppLimitCreditCodeFilter + """Limit name this event applies to""" + name: String - """Checks for any expressions in this list.""" - or: [AppLimitCreditCodeFilter!] -} + """Usage count after this event""" + numAfter: BigInt -"""An input for mutations affecting `AppLimitCreditCode`""" -input AppLimitCreditCodeInput { - """Human-readable credit code (case-insensitive, unique)""" - code: String! + """Usage count before this event""" + numBefore: BigInt """ - Current number of redemptions (incremented by trigger on credit_redemptions) + Resolved billable organization via get_organization_id; NULL for app-level events """ - currentRedemptions: Int + organizationId: UUID - """Expiration timestamp; NULL for no expiry""" - expiresAt: Datetime - id: UUID + """ + Optional reason or source: achievement, invite, plan_change, purchase, etc. + """ + reason: String +} - """Maximum total redemptions allowed; NULL for unlimited""" - maxRedemptions: Int +"""Methods to use when ordering `AppLimitEvent`.""" +enum AppLimitEventOrderBy { + ACTOR_ID_ASC + ACTOR_ID_DESC + CREATED_AT_ASC + CREATED_AT_DESC + DELTA_ASC + DELTA_DESC + ENTITY_ID_ASC + ENTITY_ID_DESC + ENTITY_TYPE_ASC + ENTITY_TYPE_DESC + EVENT_TYPE_ASC + EVENT_TYPE_DESC + ID_ASC + ID_DESC + MAX_AT_EVENT_ASC + MAX_AT_EVENT_DESC + NAME_ASC + NAME_DESC + NATURAL + NUM_AFTER_ASC + NUM_AFTER_DESC + NUM_BEFORE_ASC + NUM_BEFORE_DESC + ORGANIZATION_ID_ASC + ORGANIZATION_ID_DESC + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + REASON_ASC + REASON_DESC } """ -Items within a credit code — each row grants credits for a specific limit definition +Represents an update to a `AppLimitEvent`. Fields that are set will be updated. """ -type AppLimitCreditCodeItem { - """Number of credits this item grants per redemption""" - amount: BigInt! +input AppLimitEventPatch { + """User who triggered this event; NULL for system/aggregate events""" + actorId: UUID + createdAt: Datetime - """ - Reads a single `AppLimitCreditCode` that is related to this `AppLimitCreditCodeItem`. - """ - creditCode: AppLimitCreditCode + """Change amount: positive for increment, negative for decrement""" + delta: BigInt - """FK to credit_codes — which code this item belongs to""" - creditCodeId: UUID! + """Entity this event applies to; NULL for app-level events""" + entityId: UUID - """ - Credit durability: permanent (survives window reset) or period (resets on window expiry) - """ - creditType: String! + """Entity type prefix (org, team, app, etc.) for interpreting entity_id""" + entityType: String - """ - Reads a single `AppLimitDefault` that is related to this `AppLimitCreditCodeItem`. - """ - defaultLimit: AppLimitDefault + """Event type: inc, dec, check, modify, transfer, apply_plan, reset""" + eventType: String - """FK to default_limits — which limit this item grants credits for""" - defaultLimitId: UUID! - id: UUID! -} + """Unique identifier for each limit event""" + id: UUID -"""A connection to a list of `AppLimitCreditCodeItem` values.""" -type AppLimitCreditCodeItemConnection { - """ - A list of edges which contains the `AppLimitCreditCodeItem` and cursor to aid in pagination. - """ - edges: [AppLimitCreditCodeItemEdge]! + """Max limit ceiling at the time of this event""" + maxAtEvent: BigInt - """A list of `AppLimitCreditCodeItem` objects.""" - nodes: [AppLimitCreditCodeItem]! + """Limit name this event applies to""" + name: String - """Information to aid in pagination.""" - pageInfo: PageInfo! + """Usage count after this event""" + numAfter: BigInt + + """Usage count before this event""" + numBefore: BigInt """ - The count of *all* `AppLimitCreditCodeItem` you could get from the connection. + Resolved billable organization via get_organization_id; NULL for app-level events """ - totalCount: Int! -} - -"""A `AppLimitCreditCodeItem` edge in the connection.""" -type AppLimitCreditCodeItemEdge { - """A cursor for use in pagination.""" - cursor: Cursor + organizationId: UUID - """The `AppLimitCreditCodeItem` at the end of the edge.""" - node: AppLimitCreditCodeItem + """ + Optional reason or source: achievement, invite, plan_change, purchase, etc. + """ + reason: String } """ -A filter to be used against `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `AppLimit` object types. All fields are combined with a logical ‘and.’ """ -input AppLimitCreditCodeItemFilter { - """Filter by the object’s `amount` field.""" - amount: BigIntFilter +input AppLimitFilter { + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter """Checks for all expressions in this list.""" - and: [AppLimitCreditCodeItemFilter!] - - """Filter by the object’s `creditCode` relation.""" - creditCode: AppLimitCreditCodeFilter - - """Filter by the object’s `creditCodeId` field.""" - creditCodeId: UUIDFilter - - """Filter by the object’s `creditType` field.""" - creditType: StringFilter - - """Filter by the object’s `defaultLimit` relation.""" - defaultLimit: AppLimitDefaultFilter + and: [AppLimitFilter!] - """Filter by the object’s `defaultLimitId` field.""" - defaultLimitId: UUIDFilter + """Filter by the object’s `entityType` field.""" + entityType: StringFilter """Filter by the object’s `id` field.""" id: UUIDFilter + """Filter by the object’s `max` field.""" + max: BigIntFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + """Negates the expression.""" - not: AppLimitCreditCodeItemFilter + not: AppLimitFilter + + """Filter by the object’s `num` field.""" + num: BigIntFilter """Checks for any expressions in this list.""" - or: [AppLimitCreditCodeItemFilter!] + or: [AppLimitFilter!] + + """Filter by the object’s `organizationId` field.""" + organizationId: UUIDFilter + + """Filter by the object’s `periodCredits` field.""" + periodCredits: BigIntFilter + + """Filter by the object’s `planMax` field.""" + planMax: BigIntFilter + + """Filter by the object’s `purchasedCredits` field.""" + purchasedCredits: BigIntFilter + + """Filter by the object’s `softMax` field.""" + softMax: BigIntFilter + + """Filter by the object’s `windowDuration` field.""" + windowDuration: IntervalFilter + + """Filter by the object’s `windowStart` field.""" + windowStart: DatetimeFilter } -"""An input for mutations affecting `AppLimitCreditCodeItem`""" -input AppLimitCreditCodeItemInput { - """Number of credits this item grants per redemption""" - amount: BigInt! +"""An input for mutations affecting `AppLimit`""" +input AppLimitInput { + """User whose usage is being tracked against this limit""" + actorId: UUID! - """FK to credit_codes — which code this item belongs to""" - creditCodeId: UUID! + """Entity type prefix (org, team, app, etc.) for interpreting entity_id""" + entityType: String + id: UUID """ - Credit durability: permanent (survives window reset) or period (resets on window expiry) + Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. """ - creditType: String + max: BigInt - """FK to default_limits — which limit this item grants credits for""" - defaultLimitId: UUID! - id: UUID -} + """Name identifier of the limit being tracked""" + name: String -"""Methods to use when ordering `AppLimitCreditCodeItem`.""" -enum AppLimitCreditCodeItemOrderBy { - AMOUNT_ASC - AMOUNT_DESC - CREDIT_CODE_ID_ASC - CREDIT_CODE_ID_DESC - CREDIT_TYPE_ASC - CREDIT_TYPE_DESC - DEFAULT_LIMIT_ID_ASC - DEFAULT_LIMIT_ID_DESC - ID_ASC - ID_DESC - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC -} + """Current usage count for this actor and limit""" + num: BigInt -""" -Represents an update to a `AppLimitCreditCodeItem`. Fields that are set will be updated. -""" -input AppLimitCreditCodeItemPatch { - """Number of credits this item grants per redemption""" - amount: BigInt + """Resolved billable organization via get_organization_id""" + organizationId: UUID - """FK to credit_codes — which code this item belongs to""" - creditCodeId: UUID + """ + Temporary credits for the current billing window. Resets to 0 on window expiry. + """ + periodCredits: BigInt """ - Credit durability: permanent (survives window reset) or period (resets on window expiry) + 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. """ - creditType: String + planMax: BigInt - """FK to default_limits — which limit this item grants credits for""" - defaultLimitId: UUID - id: UUID + """ + Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. + """ + purchasedCredits: BigInt + + """ + Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. + """ + softMax: BigInt + + """ + Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window + """ + windowDuration: IntervalInput + + """Start of the current metering window; NULL means no time window""" + windowStart: Datetime } -"""Methods to use when ordering `AppLimitCreditCode`.""" -enum AppLimitCreditCodeOrderBy { - CODE_ASC - CODE_DESC - CURRENT_REDEMPTIONS_ASC - CURRENT_REDEMPTIONS_DESC - EXPIRES_AT_ASC - EXPIRES_AT_DESC +"""Methods to use when ordering `AppLimit`.""" +enum AppLimitOrderBy { + ACTOR_ID_ASC + ACTOR_ID_DESC + ENTITY_TYPE_ASC + ENTITY_TYPE_DESC ID_ASC ID_DESC - MAX_REDEMPTIONS_ASC - MAX_REDEMPTIONS_DESC + MAX_ASC + MAX_DESC + NAME_ASC + NAME_DESC NATURAL + NUM_ASC + NUM_DESC + ORGANIZATION_ID_ASC + ORGANIZATION_ID_DESC + PERIOD_CREDITS_ASC + PERIOD_CREDITS_DESC + PLAN_MAX_ASC + PLAN_MAX_DESC PRIMARY_KEY_ASC PRIMARY_KEY_DESC + PURCHASED_CREDITS_ASC + PURCHASED_CREDITS_DESC + SOFT_MAX_ASC + SOFT_MAX_DESC + WINDOW_DURATION_ASC + WINDOW_DURATION_DESC + WINDOW_START_ASC + WINDOW_START_DESC } """ -Represents an update to a `AppLimitCreditCode`. Fields that are set will be updated. +Represents an update to a `AppLimit`. Fields that are set will be updated. """ -input AppLimitCreditCodePatch { - """Human-readable credit code (case-insensitive, unique)""" - code: String +input AppLimitPatch { + """User whose usage is being tracked against this limit""" + actorId: UUID + + """Entity type prefix (org, team, app, etc.) for interpreting entity_id""" + entityType: String + id: UUID """ - Current number of redemptions (incremented by trigger on credit_redemptions) + Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. """ - currentRedemptions: Int + max: BigInt - """Expiration timestamp; NULL for no expiry""" - expiresAt: Datetime - id: UUID + """Name identifier of the limit being tracked""" + name: String - """Maximum total redemptions allowed; NULL for unlimited""" - maxRedemptions: Int -} + """Current usage count for this actor and limit""" + num: BigInt -""" -A filter to be used against many `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ -""" -input AppLimitCreditCodeToManyAppLimitCreditCodeItemFilter { - """Filters to entities where every related entity matches.""" - every: AppLimitCreditCodeItemFilter + """Resolved billable organization via get_organization_id""" + organizationId: UUID - """Filters to entities where no related entity matches.""" - none: AppLimitCreditCodeItemFilter + """ + Temporary credits for the current billing window. Resets to 0 on window expiry. + """ + periodCredits: BigInt - """Filters to entities where at least one related entity matches.""" - some: AppLimitCreditCodeItemFilter -} + """ + 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 -""" -A filter to be used against many `AppLimitCreditRedemption` object types. All fields are combined with a logical ‘and.’ -""" -input AppLimitCreditCodeToManyAppLimitCreditRedemptionFilter { - """Filters to entities where every related entity matches.""" - every: AppLimitCreditRedemptionFilter + """ + Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. + """ + purchasedCredits: BigInt - """Filters to entities where no related entity matches.""" - none: AppLimitCreditRedemptionFilter + """ + Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. + """ + softMax: BigInt - """Filters to entities where at least one related entity matches.""" - some: AppLimitCreditRedemptionFilter + """ + Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window + """ + windowDuration: IntervalInput + + """Start of the current metering window; NULL means no time window""" + windowStart: Datetime } -"""A connection to a list of `AppLimitCredit` values.""" -type AppLimitCreditConnection { +""" +Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. +""" +type AppLimitWarning { + id: UUID! + + """Limit name this warning applies to (must match a default_limits entry)""" + name: String! + """ - A list of edges which contains the `AppLimitCredit` and cursor to aid in pagination. + Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) """ - edges: [AppLimitCreditEdge]! + taskIdentifier: String! - """A list of `AppLimitCredit` objects.""" - nodes: [AppLimitCredit]! + """ + Threshold value — either an absolute count or a percentage (1-100) depending on warning_type + """ + thresholdValue: BigInt! + + """Threshold type: absolute (fixed count) or percentage (of max)""" + warningType: String! +} + +"""A connection to a list of `AppLimitWarning` values.""" +type AppLimitWarningConnection { + """ + A list of edges which contains the `AppLimitWarning` and cursor to aid in pagination. + """ + edges: [AppLimitWarningEdge]! + + """A list of `AppLimitWarning` objects.""" + nodes: [AppLimitWarning]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `AppLimitCredit` you could get from the connection.""" + """ + The count of *all* `AppLimitWarning` you could get from the connection. + """ totalCount: Int! } -"""A `AppLimitCredit` edge in the connection.""" -type AppLimitCreditEdge { +"""A `AppLimitWarning` edge in the connection.""" +type AppLimitWarningEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `AppLimitCredit` at the end of the edge.""" - node: AppLimitCredit + """The `AppLimitWarning` at the end of the edge.""" + node: AppLimitWarning } """ -A filter to be used against `AppLimitCredit` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `AppLimitWarning` object types. All fields are combined with a logical ‘and.’ """ -input AppLimitCreditFilter { - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter - - """Filter by the object’s `amount` field.""" - amount: BigIntFilter - +input AppLimitWarningFilter { """Checks for all expressions in this list.""" - and: [AppLimitCreditFilter!] - - """Filter by the object’s `creditType` field.""" - creditType: StringFilter - - """Filter by the object’s `defaultLimit` relation.""" - defaultLimit: AppLimitDefaultFilter - - """Filter by the object’s `defaultLimitId` field.""" - defaultLimitId: UUIDFilter + and: [AppLimitWarningFilter!] """Filter by the object’s `id` field.""" id: UUIDFilter + """Filter by the object’s `name` field.""" + name: StringFilter + """Negates the expression.""" - not: AppLimitCreditFilter + not: AppLimitWarningFilter """Checks for any expressions in this list.""" - or: [AppLimitCreditFilter!] + or: [AppLimitWarningFilter!] - """Filter by the object’s `reason` field.""" - reason: StringFilter + """Filter by the object’s `taskIdentifier` field.""" + taskIdentifier: StringFilter + + """Filter by the object’s `thresholdValue` field.""" + thresholdValue: BigIntFilter + + """Filter by the object’s `warningType` field.""" + warningType: StringFilter } -"""An input for mutations affecting `AppLimitCredit`""" -input AppLimitCreditInput { - """User this credit is for; NULL for aggregate entity-level credits""" - actorId: UUID +"""An input for mutations affecting `AppLimitWarning`""" +input AppLimitWarningInput { + id: UUID - """Number of credits to grant (positive to add, negative to revoke)""" - amount: BigInt! + """Limit name this warning applies to (must match a default_limits entry)""" + name: String! """ - Credit durability: permanent (survives window reset) or period (resets on window expiry) + Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) """ - creditType: String + taskIdentifier: String! - """FK to default_limits — which limit definition this credit applies to""" - defaultLimitId: UUID! - id: UUID + """ + Threshold value — either an absolute count or a percentage (1-100) depending on warning_type + """ + thresholdValue: BigInt! - """Optional reason for the credit grant (promo code, admin grant, etc.)""" - reason: String + """Threshold type: absolute (fixed count) or percentage (of max)""" + warningType: String! } -"""Methods to use when ordering `AppLimitCredit`.""" -enum AppLimitCreditOrderBy { - ACTOR_ID_ASC - ACTOR_ID_DESC - AMOUNT_ASC - AMOUNT_DESC - CREDIT_TYPE_ASC - CREDIT_TYPE_DESC - DEFAULT_LIMIT_ID_ASC - DEFAULT_LIMIT_ID_DESC +"""Methods to use when ordering `AppLimitWarning`.""" +enum AppLimitWarningOrderBy { ID_ASC ID_DESC + NAME_ASC + NAME_DESC NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC - REASON_ASC - REASON_DESC + TASK_IDENTIFIER_ASC + TASK_IDENTIFIER_DESC + THRESHOLD_VALUE_ASC + THRESHOLD_VALUE_DESC + WARNING_TYPE_ASC + WARNING_TYPE_DESC } """ -Represents an update to a `AppLimitCredit`. Fields that are set will be updated. +Represents an update to a `AppLimitWarning`. Fields that are set will be updated. """ -input AppLimitCreditPatch { - """User this credit is for; NULL for aggregate entity-level credits""" - actorId: UUID +input AppLimitWarningPatch { + id: UUID - """Number of credits to grant (positive to add, negative to revoke)""" - amount: BigInt + """Limit name this warning applies to (must match a default_limits entry)""" + name: String """ - Credit durability: permanent (survives window reset) or period (resets on window expiry) + Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) """ - creditType: String + taskIdentifier: String - """FK to default_limits — which limit definition this credit applies to""" - defaultLimitId: UUID - id: UUID + """ + Threshold value — either an absolute count or a percentage (1-100) depending on warning_type + """ + thresholdValue: BigInt - """Optional reason for the credit grant (promo code, admin grant, etc.)""" - reason: String + """Threshold type: absolute (fixed count) or percentage (of max)""" + warningType: String } """ -Append-only ledger of code redemptions; AFTER INSERT trigger validates and cascades to limit_credits +A signed eight-byte integer. The upper big integer values are greater than the +max value for a JavaScript number. Therefore all big integers will be output as +strings and not numbers. """ -type AppLimitCreditRedemption { +scalar BigInt + +""" +A filter to be used against BigInt fields. All fields are combined with a logical ‘and.’ +""" +input BigIntFilter { """ - Reads a single `AppLimitCreditCode` that is related to this `AppLimitCreditRedemption`. + Not equal to the specified value, treating null like an ordinary value. """ - creditCode: AppLimitCreditCode + distinctFrom: BigInt - """FK to credit_codes — which code is being redeemed""" - creditCodeId: UUID! + """Equal to the specified value.""" + equalTo: BigInt - """Entity receiving the credits (personal org user_id or org entity_id)""" - entityId: UUID! + """Greater than the specified value.""" + greaterThan: BigInt - """Membership prefix identifying the entity kind (org, team, app)""" - entityType: String - id: UUID! + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: BigInt - """Resolved billable organization via get_organization_id""" - organizationId: UUID -} + """Included in the specified list.""" + in: [BigInt!] -"""A connection to a list of `AppLimitCreditRedemption` values.""" -type AppLimitCreditRedemptionConnection { """ - A list of edges which contains the `AppLimitCreditRedemption` and cursor to aid in pagination. + Is null (if `true` is specified) or is not null (if `false` is specified). """ - edges: [AppLimitCreditRedemptionEdge]! + isNull: Boolean - """A list of `AppLimitCreditRedemption` objects.""" - nodes: [AppLimitCreditRedemption]! + """Less than the specified value.""" + lessThan: BigInt - """Information to aid in pagination.""" - pageInfo: PageInfo! + """Less than or equal to the specified value.""" + lessThanOrEqualTo: BigInt - """ - The count of *all* `AppLimitCreditRedemption` you could get from the connection. - """ - totalCount: Int! -} + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: BigInt -"""A `AppLimitCreditRedemption` edge in the connection.""" -type AppLimitCreditRedemptionEdge { - """A cursor for use in pagination.""" - cursor: Cursor + """Not equal to the specified value.""" + notEqualTo: BigInt - """The `AppLimitCreditRedemption` at the end of the edge.""" - node: AppLimitCreditRedemption + """Not included in the specified list.""" + notIn: [BigInt!] } -""" -A filter to be used against `AppLimitCreditRedemption` object types. All fields are combined with a logical ‘and.’ -""" -input AppLimitCreditRedemptionFilter { - """Checks for all expressions in this list.""" - and: [AppLimitCreditRedemptionFilter!] +"""All input for the create `AppLimitCap` mutation.""" +input CreateAppLimitCapInput { + """The `AppLimitCap` to be created by this mutation.""" + appLimitCap: AppLimitCapInput! - """Filter by the object’s `creditCode` relation.""" - creditCode: AppLimitCreditCodeFilter - - """Filter by the object’s `creditCodeId` field.""" - creditCodeId: UUIDFilter - - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter - - """Filter by the object’s `entityType` field.""" - entityType: StringFilter - - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Negates the expression.""" - not: AppLimitCreditRedemptionFilter - - """Checks for any expressions in this list.""" - or: [AppLimitCreditRedemptionFilter!] - - """Filter by the object’s `organizationId` field.""" - organizationId: UUIDFilter + """ + An arbitrary 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 input for mutations affecting `AppLimitCreditRedemption`""" -input AppLimitCreditRedemptionInput { - """FK to credit_codes — which code is being redeemed""" - creditCodeId: UUID! +"""The output of our create `AppLimitCap` mutation.""" +type CreateAppLimitCapPayload { + """The `AppLimitCap` that was created by this mutation.""" + appLimitCap: AppLimitCap - """Entity receiving the credits (personal org user_id or org entity_id)""" - entityId: UUID! + """An edge for our `AppLimitCap`. May be used by Relay 1.""" + appLimitCapEdge( + """The method to use when ordering `AppLimitCap`.""" + orderBy: [AppLimitCapOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitCapEdge - """Membership prefix identifying the entity kind (org, team, app)""" - entityType: String - id: 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 - """Resolved billable organization via get_organization_id""" - organizationId: UUID + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query } -"""Methods to use when ordering `AppLimitCreditRedemption`.""" -enum AppLimitCreditRedemptionOrderBy { - CREDIT_CODE_ID_ASC - CREDIT_CODE_ID_DESC - ENTITY_ID_ASC - ENTITY_ID_DESC - ENTITY_TYPE_ASC - ENTITY_TYPE_DESC - ID_ASC - ID_DESC - NATURAL - ORGANIZATION_ID_ASC - ORGANIZATION_ID_DESC - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC +"""All input for the create `AppLimitCapsDefault` mutation.""" +input CreateAppLimitCapsDefaultInput { + """The `AppLimitCapsDefault` to be created by this mutation.""" + appLimitCapsDefault: AppLimitCapsDefaultInput! + + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String } -""" -Represents an update to a `AppLimitCreditRedemption`. Fields that are set will be updated. -""" -input AppLimitCreditRedemptionPatch { - """FK to credit_codes — which code is being redeemed""" - creditCodeId: UUID +"""The output of our create `AppLimitCapsDefault` mutation.""" +type CreateAppLimitCapsDefaultPayload { + """The `AppLimitCapsDefault` that was created by this mutation.""" + appLimitCapsDefault: AppLimitCapsDefault - """Entity receiving the credits (personal org user_id or org entity_id)""" - entityId: UUID + """An edge for our `AppLimitCapsDefault`. May be used by Relay 1.""" + appLimitCapsDefaultEdge( + """The method to use when ordering `AppLimitCapsDefault`.""" + orderBy: [AppLimitCapsDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitCapsDefaultEdge - """Membership prefix identifying the entity kind (org, team, app)""" - entityType: String - id: 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 - """Resolved billable organization via get_organization_id""" - organizationId: UUID + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query } -""" -Default maximum values for each named limit, applied when no per-actor override exists -""" -type AppLimitDefault { +"""All input for the create `AppLimitCreditCode` mutation.""" +input CreateAppLimitCreditCodeInput { + """The `AppLimitCreditCode` to be created by this mutation.""" + appLimitCreditCode: AppLimitCreditCodeInput! + """ - Reads and enables pagination through a set of `AppLimitCreditCodeItem`. + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - appLimitCreditCodeItemsByDefaultLimitId( - """Read all values in the set after (below) this cursor.""" - after: Cursor - - """Read all values in the set before (above) this cursor.""" - before: Cursor + clientMutationId: String +} - """Only read the first `n` values of the set.""" - first: Int +"""All input for the create `AppLimitCreditCodeItem` mutation.""" +input CreateAppLimitCreditCodeItemInput { + """The `AppLimitCreditCodeItem` to be created by this mutation.""" + appLimitCreditCodeItem: AppLimitCreditCodeItemInput! - """Only read the last `n` values of the set.""" - last: 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. + """ + clientMutationId: 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 output of our create `AppLimitCreditCodeItem` mutation.""" +type CreateAppLimitCreditCodeItemPayload { + """The `AppLimitCreditCodeItem` that was created by this mutation.""" + appLimitCreditCodeItem: AppLimitCreditCodeItem + """An edge for our `AppLimitCreditCodeItem`. May be used by Relay 1.""" + appLimitCreditCodeItemEdge( """The method to use when ordering `AppLimitCreditCodeItem`.""" - orderBy: [AppLimitCreditCodeItemOrderBy!] = [PRIMARY_KEY_ASC] - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: AppLimitCreditCodeItemFilter - ): AppLimitCreditCodeItemConnection! - - """Reads and enables pagination through a set of `AppLimitCredit`.""" - appLimitCreditsByDefaultLimitId( - """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 `AppLimitCredit`.""" - orderBy: [AppLimitCreditOrderBy!] = [PRIMARY_KEY_ASC] + orderBy: [AppLimitCreditCodeItemOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitCreditCodeItemEdge - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: AppLimitCreditFilter - ): AppLimitCreditConnection! - id: 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 - """Default maximum usage allowed for this limit""" - max: BigInt + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} - """Name identifier of the limit this default applies to""" - name: String! +"""The output of our create `AppLimitCreditCode` mutation.""" +type CreateAppLimitCreditCodePayload { + """The `AppLimitCreditCode` that was created by this mutation.""" + appLimitCreditCode: AppLimitCreditCode - """Default soft limit threshold for warnings; NULL means no soft limit""" - softMax: BigInt -} + """An edge for our `AppLimitCreditCode`. May be used by Relay 1.""" + appLimitCreditCodeEdge( + """The method to use when ordering `AppLimitCreditCode`.""" + orderBy: [AppLimitCreditCodeOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitCreditCodeEdge -"""A connection to a list of `AppLimitDefault` values.""" -type AppLimitDefaultConnection { """ - A list of edges which contains the `AppLimitDefault` and cursor to aid in pagination. + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - edges: [AppLimitDefaultEdge]! - - """A list of `AppLimitDefault` objects.""" - nodes: [AppLimitDefault]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! + clientMutationId: String """ - The count of *all* `AppLimitDefault` you could get from the connection. + Our root query field type. Allows us to run any query from our mutation payload. """ - totalCount: Int! + query: Query } -"""A `AppLimitDefault` edge in the connection.""" -type AppLimitDefaultEdge { - """A cursor for use in pagination.""" - cursor: Cursor +"""All input for the create `AppLimitCredit` mutation.""" +input CreateAppLimitCreditInput { + """The `AppLimitCredit` to be created by this mutation.""" + appLimitCredit: AppLimitCreditInput! - """The `AppLimitDefault` at the end of the edge.""" - node: AppLimitDefault + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String } -""" -A filter to be used against `AppLimitDefault` object types. All fields are combined with a logical ‘and.’ -""" -input AppLimitDefaultFilter { - """Checks for all expressions in this list.""" - and: [AppLimitDefaultFilter!] +"""The output of our create `AppLimitCredit` mutation.""" +type CreateAppLimitCreditPayload { + """The `AppLimitCredit` that was created by this mutation.""" + appLimitCredit: AppLimitCredit + + """An edge for our `AppLimitCredit`. May be used by Relay 1.""" + appLimitCreditEdge( + """The method to use when ordering `AppLimitCredit`.""" + orderBy: [AppLimitCreditOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitCreditEdge """ - Filter by the object’s `appLimitCreditCodeItemsByDefaultLimitId` relation. + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - appLimitCreditCodeItemsByDefaultLimitId: AppLimitDefaultToManyAppLimitCreditCodeItemFilter - - """`appLimitCreditCodeItemsByDefaultLimitId` exist.""" - appLimitCreditCodeItemsByDefaultLimitIdExist: Boolean - - """Filter by the object’s `appLimitCreditsByDefaultLimitId` relation.""" - appLimitCreditsByDefaultLimitId: AppLimitDefaultToManyAppLimitCreditFilter - - """`appLimitCreditsByDefaultLimitId` exist.""" - appLimitCreditsByDefaultLimitIdExist: Boolean - - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `max` field.""" - max: BigIntFilter - - """Filter by the object’s `name` field.""" - name: StringFilter - - """Negates the expression.""" - not: AppLimitDefaultFilter - - """Checks for any expressions in this list.""" - or: [AppLimitDefaultFilter!] + clientMutationId: String - """Filter by the object’s `softMax` field.""" - softMax: BigIntFilter + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query } -"""An input for mutations affecting `AppLimitDefault`""" -input AppLimitDefaultInput { - id: UUID - - """Default maximum usage allowed for this limit""" - max: BigInt - - """Name identifier of the limit this default applies to""" - name: String! - - """Default soft limit threshold for warnings; NULL means no soft limit""" - softMax: BigInt -} +"""All input for the create `AppLimitCreditRedemption` mutation.""" +input CreateAppLimitCreditRedemptionInput { + """The `AppLimitCreditRedemption` to be created by this mutation.""" + appLimitCreditRedemption: AppLimitCreditRedemptionInput! -"""Methods to use when ordering `AppLimitDefault`.""" -enum AppLimitDefaultOrderBy { - ID_ASC - ID_DESC - MAX_ASC - MAX_DESC - NAME_ASC - NAME_DESC - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - SOFT_MAX_ASC - SOFT_MAX_DESC + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String } -""" -Represents an update to a `AppLimitDefault`. Fields that are set will be updated. -""" -input AppLimitDefaultPatch { - id: UUID +"""The output of our create `AppLimitCreditRedemption` mutation.""" +type CreateAppLimitCreditRedemptionPayload { + """The `AppLimitCreditRedemption` that was created by this mutation.""" + appLimitCreditRedemption: AppLimitCreditRedemption - """Default maximum usage allowed for this limit""" - max: BigInt + """An edge for our `AppLimitCreditRedemption`. May be used by Relay 1.""" + appLimitCreditRedemptionEdge( + """The method to use when ordering `AppLimitCreditRedemption`.""" + orderBy: [AppLimitCreditRedemptionOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitCreditRedemptionEdge - """Name identifier of the limit this default applies to""" - name: String + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """Default soft limit threshold for warnings; NULL means no soft limit""" - softMax: BigInt + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query } -""" -A filter to be used against many `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ -""" -input AppLimitDefaultToManyAppLimitCreditCodeItemFilter { - """Filters to entities where every related entity matches.""" - every: AppLimitCreditCodeItemFilter - - """Filters to entities where no related entity matches.""" - none: AppLimitCreditCodeItemFilter +"""All input for the create `AppLimitDefault` mutation.""" +input CreateAppLimitDefaultInput { + """The `AppLimitDefault` to be created by this mutation.""" + appLimitDefault: AppLimitDefaultInput! - """Filters to entities where at least one related entity matches.""" - some: AppLimitCreditCodeItemFilter + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String } -""" -A filter to be used against many `AppLimitCredit` object types. All fields are combined with a logical ‘and.’ -""" -input AppLimitDefaultToManyAppLimitCreditFilter { - """Filters to entities where every related entity matches.""" - every: AppLimitCreditFilter - - """Filters to entities where no related entity matches.""" - none: AppLimitCreditFilter +"""The output of our create `AppLimitDefault` mutation.""" +type CreateAppLimitDefaultPayload { + """The `AppLimitDefault` that was created by this mutation.""" + appLimitDefault: AppLimitDefault - """Filters to entities where at least one related entity matches.""" - some: AppLimitCreditFilter -} + """An edge for our `AppLimitDefault`. May be used by Relay 1.""" + appLimitDefaultEdge( + """The method to use when ordering `AppLimitDefault`.""" + orderBy: [AppLimitDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitDefaultEdge -"""A `AppLimit` edge in the connection.""" -type AppLimitEdge { - """A cursor for use in pagination.""" - cursor: Cursor + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """The `AppLimit` at the end of the edge.""" - node: AppLimit + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query } -"""Append-only log of limit events for historical reporting and audit""" -type AppLimitEvent { - """User who triggered this event; NULL for system/aggregate events""" - actorId: UUID - createdAt: Datetime! +"""All input for the create `AppLimitEvent` mutation.""" +input CreateAppLimitEventInput { + """The `AppLimitEvent` to be created by this mutation.""" + appLimitEvent: AppLimitEventInput! - """Change amount: positive for increment, negative for decrement""" - delta: BigInt + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String +} - """Entity this event applies to; NULL for app-level events""" - entityId: UUID +"""The output of our create `AppLimitEvent` mutation.""" +type CreateAppLimitEventPayload { + """The `AppLimitEvent` that was created by this mutation.""" + appLimitEvent: AppLimitEvent - """Entity type prefix (org, team, app, etc.) for interpreting entity_id""" - entityType: String + """An edge for our `AppLimitEvent`. May be used by Relay 1.""" + appLimitEventEdge( + """The method to use when ordering `AppLimitEvent`.""" + orderBy: [AppLimitEventOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitEventEdge - """Event type: inc, dec, check, modify, transfer, apply_plan, reset""" - eventType: String + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """Unique identifier for each limit event""" - id: UUID! + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} - """Max limit ceiling at the time of this event""" - maxAtEvent: BigInt +"""All input for the create `AppLimit` mutation.""" +input CreateAppLimitInput { + """The `AppLimit` to be created by this mutation.""" + appLimit: AppLimitInput! - """Limit name this event applies to""" - name: 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 +} - """Usage count after this event""" - numAfter: BigInt +"""The output of our create `AppLimit` mutation.""" +type CreateAppLimitPayload { + """The `AppLimit` that was created by this mutation.""" + appLimit: AppLimit - """Usage count before this event""" - numBefore: BigInt + """An edge for our `AppLimit`. May be used by Relay 1.""" + appLimitEdge( + """The method to use when ordering `AppLimit`.""" + orderBy: [AppLimitOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitEdge """ - Resolved billable organization via get_organization_id; NULL for app-level events + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - organizationId: UUID + clientMutationId: String """ - Optional reason or source: achievement, invite, plan_change, purchase, etc. + Our root query field type. Allows us to run any query from our mutation payload. """ - reason: String + query: Query } -"""A connection to a list of `AppLimitEvent` values.""" -type AppLimitEventConnection { +"""All input for the create `AppLimitWarning` mutation.""" +input CreateAppLimitWarningInput { + """The `AppLimitWarning` to be created by this mutation.""" + appLimitWarning: AppLimitWarningInput! + """ - A list of edges which contains the `AppLimitEvent` and cursor to aid in pagination. + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - edges: [AppLimitEventEdge]! + clientMutationId: String +} - """A list of `AppLimitEvent` objects.""" - nodes: [AppLimitEvent]! +"""The output of our create `AppLimitWarning` mutation.""" +type CreateAppLimitWarningPayload { + """The `AppLimitWarning` that was created by this mutation.""" + appLimitWarning: AppLimitWarning - """Information to aid in pagination.""" - pageInfo: PageInfo! + """An edge for our `AppLimitWarning`. May be used by Relay 1.""" + appLimitWarningEdge( + """The method to use when ordering `AppLimitWarning`.""" + orderBy: [AppLimitWarningOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitWarningEdge - """The count of *all* `AppLimitEvent` you could get from the connection.""" - totalCount: Int! + """ + The 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 } -"""A `AppLimitEvent` edge in the connection.""" -type AppLimitEventEdge { - """A cursor for use in pagination.""" - cursor: Cursor +"""All input for the create `OrgLimitAggregate` mutation.""" +input CreateOrgLimitAggregateInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String - """The `AppLimitEvent` at the end of the edge.""" - node: AppLimitEvent + """The `OrgLimitAggregate` to be created by this mutation.""" + orgLimitAggregate: OrgLimitAggregateInput! } -""" -A filter to be used against `AppLimitEvent` object types. All fields are combined with a logical ‘and.’ -""" -input AppLimitEventFilter { - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter +"""The output of our create `OrgLimitAggregate` mutation.""" +type CreateOrgLimitAggregatePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """Checks for all expressions in this list.""" - and: [AppLimitEventFilter!] + """The `OrgLimitAggregate` that was created by this mutation.""" + orgLimitAggregate: OrgLimitAggregate - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter + """An edge for our `OrgLimitAggregate`. May be used by Relay 1.""" + orgLimitAggregateEdge( + """The method to use when ordering `OrgLimitAggregate`.""" + orderBy: [OrgLimitAggregateOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitAggregateEdge - """Filter by the object’s `delta` field.""" - delta: BigIntFilter + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter +"""All input for the create `OrgLimitCap` mutation.""" +input CreateOrgLimitCapInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String - """Filter by the object’s `entityType` field.""" - entityType: StringFilter + """The `OrgLimitCap` to be created by this mutation.""" + orgLimitCap: OrgLimitCapInput! +} - """Filter by the object’s `eventType` field.""" - eventType: StringFilter +"""The output of our create `OrgLimitCap` mutation.""" +type CreateOrgLimitCapPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """Filter by the object’s `id` field.""" - id: UUIDFilter + """The `OrgLimitCap` that was created by this mutation.""" + orgLimitCap: OrgLimitCap - """Filter by the object’s `maxAtEvent` field.""" - maxAtEvent: BigIntFilter + """An edge for our `OrgLimitCap`. May be used by Relay 1.""" + orgLimitCapEdge( + """The method to use when ordering `OrgLimitCap`.""" + orderBy: [OrgLimitCapOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitCapEdge - """Filter by the object’s `name` field.""" - name: StringFilter + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} - """Negates the expression.""" - not: AppLimitEventFilter +"""All input for the create `OrgLimitCapsDefault` mutation.""" +input CreateOrgLimitCapsDefaultInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String - """Filter by the object’s `numAfter` field.""" - numAfter: BigIntFilter + """The `OrgLimitCapsDefault` to be created by this mutation.""" + orgLimitCapsDefault: OrgLimitCapsDefaultInput! +} - """Filter by the object’s `numBefore` field.""" - numBefore: BigIntFilter +"""The output of our create `OrgLimitCapsDefault` mutation.""" +type CreateOrgLimitCapsDefaultPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """Checks for any expressions in this list.""" - or: [AppLimitEventFilter!] + """The `OrgLimitCapsDefault` that was created by this mutation.""" + orgLimitCapsDefault: OrgLimitCapsDefault - """Filter by the object’s `organizationId` field.""" - organizationId: UUIDFilter + """An edge for our `OrgLimitCapsDefault`. May be used by Relay 1.""" + orgLimitCapsDefaultEdge( + """The method to use when ordering `OrgLimitCapsDefault`.""" + orderBy: [OrgLimitCapsDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitCapsDefaultEdge - """Filter by the object’s `reason` field.""" - reason: StringFilter + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query } -"""An input for mutations affecting `AppLimitEvent`""" -input AppLimitEventInput { - """User who triggered this event; NULL for system/aggregate events""" - actorId: UUID - createdAt: Datetime +"""All input for the create `OrgLimitCredit` mutation.""" +input CreateOrgLimitCreditInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String - """Change amount: positive for increment, negative for decrement""" - delta: BigInt + """The `OrgLimitCredit` to be created by this mutation.""" + orgLimitCredit: OrgLimitCreditInput! +} - """Entity this event applies to; NULL for app-level events""" - entityId: UUID +"""The output of our create `OrgLimitCredit` mutation.""" +type CreateOrgLimitCreditPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """Entity type prefix (org, team, app, etc.) for interpreting entity_id""" - entityType: String + """The `OrgLimitCredit` that was created by this mutation.""" + orgLimitCredit: OrgLimitCredit - """Event type: inc, dec, check, modify, transfer, apply_plan, reset""" - eventType: String + """An edge for our `OrgLimitCredit`. May be used by Relay 1.""" + orgLimitCreditEdge( + """The method to use when ordering `OrgLimitCredit`.""" + orderBy: [OrgLimitCreditOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitCreditEdge - """Unique identifier for each limit event""" - id: UUID + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} - """Max limit ceiling at the time of this event""" - maxAtEvent: BigInt +"""All input for the create `OrgLimitDefault` mutation.""" +input CreateOrgLimitDefaultInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String - """Limit name this event applies to""" - name: String + """The `OrgLimitDefault` to be created by this mutation.""" + orgLimitDefault: OrgLimitDefaultInput! +} - """Usage count after this event""" - numAfter: BigInt +"""The output of our create `OrgLimitDefault` mutation.""" +type CreateOrgLimitDefaultPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """Usage count before this event""" - numBefore: BigInt + """The `OrgLimitDefault` that was created by this mutation.""" + orgLimitDefault: OrgLimitDefault + + """An edge for our `OrgLimitDefault`. May be used by Relay 1.""" + orgLimitDefaultEdge( + """The method to use when ordering `OrgLimitDefault`.""" + orderBy: [OrgLimitDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitDefaultEdge """ - Resolved billable organization via get_organization_id; NULL for app-level events + Our root query field type. Allows us to run any query from our mutation payload. """ - organizationId: UUID + query: Query +} +"""All input for the create `OrgLimitEvent` mutation.""" +input CreateOrgLimitEventInput { """ - Optional reason or source: achievement, invite, plan_change, purchase, etc. + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - reason: String + clientMutationId: String + + """The `OrgLimitEvent` to be created by this mutation.""" + orgLimitEvent: OrgLimitEventInput! } -"""Methods to use when ordering `AppLimitEvent`.""" -enum AppLimitEventOrderBy { - ACTOR_ID_ASC - ACTOR_ID_DESC - CREATED_AT_ASC - CREATED_AT_DESC - DELTA_ASC - DELTA_DESC - ENTITY_ID_ASC - ENTITY_ID_DESC - ENTITY_TYPE_ASC - ENTITY_TYPE_DESC - EVENT_TYPE_ASC - EVENT_TYPE_DESC - ID_ASC - ID_DESC - MAX_AT_EVENT_ASC - MAX_AT_EVENT_DESC - NAME_ASC - NAME_DESC - NATURAL - NUM_AFTER_ASC - NUM_AFTER_DESC - NUM_BEFORE_ASC - NUM_BEFORE_DESC - ORGANIZATION_ID_ASC - ORGANIZATION_ID_DESC - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - REASON_ASC - REASON_DESC -} - -""" -Represents an update to a `AppLimitEvent`. Fields that are set will be updated. -""" -input AppLimitEventPatch { - """User who triggered this event; NULL for system/aggregate events""" - actorId: UUID - createdAt: Datetime - - """Change amount: positive for increment, negative for decrement""" - delta: BigInt +"""The output of our create `OrgLimitEvent` mutation.""" +type CreateOrgLimitEventPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """Entity this event applies to; NULL for app-level events""" - entityId: UUID + """The `OrgLimitEvent` that was created by this mutation.""" + orgLimitEvent: OrgLimitEvent - """Entity type prefix (org, team, app, etc.) for interpreting entity_id""" - entityType: String + """An edge for our `OrgLimitEvent`. May be used by Relay 1.""" + orgLimitEventEdge( + """The method to use when ordering `OrgLimitEvent`.""" + orderBy: [OrgLimitEventOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitEventEdge - """Event type: inc, dec, check, modify, transfer, apply_plan, reset""" - eventType: String + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} - """Unique identifier for each limit event""" - id: UUID +"""All input for the create `OrgLimit` mutation.""" +input CreateOrgLimitInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String - """Max limit ceiling at the time of this event""" - maxAtEvent: BigInt + """The `OrgLimit` to be created by this mutation.""" + orgLimit: OrgLimitInput! +} - """Limit name this event applies to""" - name: String +"""The output of our create `OrgLimit` mutation.""" +type CreateOrgLimitPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """Usage count after this event""" - numAfter: BigInt + """The `OrgLimit` that was created by this mutation.""" + orgLimit: OrgLimit - """Usage count before this event""" - numBefore: BigInt + """An edge for our `OrgLimit`. May be used by Relay 1.""" + orgLimitEdge( + """The method to use when ordering `OrgLimit`.""" + orderBy: [OrgLimitOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitEdge """ - Resolved billable organization via get_organization_id; NULL for app-level events + Our root query field type. Allows us to run any query from our mutation payload. """ - organizationId: UUID + query: Query +} +"""All input for the create `OrgLimitWarning` mutation.""" +input CreateOrgLimitWarningInput { """ - Optional reason or source: achievement, invite, plan_change, purchase, etc. + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - reason: String -} + clientMutationId: String -""" -A filter to be used against `AppLimit` object types. All fields are combined with a logical ‘and.’ -""" -input AppLimitFilter { - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter + """The `OrgLimitWarning` to be created by this mutation.""" + orgLimitWarning: OrgLimitWarningInput! +} - """Checks for all expressions in this list.""" - and: [AppLimitFilter!] +"""The output of our create `OrgLimitWarning` mutation.""" +type CreateOrgLimitWarningPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """Filter by the object’s `entityType` field.""" - entityType: StringFilter + """The `OrgLimitWarning` that was created by this mutation.""" + orgLimitWarning: OrgLimitWarning - """Filter by the object’s `id` field.""" - id: UUIDFilter + """An edge for our `OrgLimitWarning`. May be used by Relay 1.""" + orgLimitWarningEdge( + """The method to use when ordering `OrgLimitWarning`.""" + orderBy: [OrgLimitWarningOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitWarningEdge - """Filter by the object’s `max` field.""" - max: BigIntFilter + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} - """Filter by the object’s `name` field.""" - name: StringFilter +"""A location in a connection that can be used for resuming pagination.""" +scalar Cursor - """Negates the expression.""" - not: AppLimitFilter +""" +A point in time as described by the [ISO +8601](https://en.wikipedia.org/wiki/ISO_8601) and, if it has a timezone, [RFC +3339](https://datatracker.ietf.org/doc/html/rfc3339) standards. Input values +that do not conform to both ISO 8601 and RFC 3339 may be coerced, which may lead +to unexpected results. +""" +scalar Datetime - """Filter by the object’s `num` field.""" - num: BigIntFilter +""" +A filter to be used against Datetime fields. All fields are combined with a logical ‘and.’ +""" +input DatetimeFilter { + """ + Not equal to the specified value, treating null like an ordinary value. + """ + distinctFrom: Datetime - """Checks for any expressions in this list.""" - or: [AppLimitFilter!] + """Equal to the specified value.""" + equalTo: Datetime - """Filter by the object’s `organizationId` field.""" - organizationId: UUIDFilter + """Greater than the specified value.""" + greaterThan: Datetime - """Filter by the object’s `periodCredits` field.""" - periodCredits: BigIntFilter + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: Datetime - """Filter by the object’s `planMax` field.""" - planMax: BigIntFilter + """Included in the specified list.""" + in: [Datetime!] - """Filter by the object’s `purchasedCredits` field.""" - purchasedCredits: BigIntFilter + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean - """Filter by the object’s `softMax` field.""" - softMax: BigIntFilter + """Less than the specified value.""" + lessThan: Datetime - """Filter by the object’s `windowDuration` field.""" - windowDuration: IntervalFilter + """Less than or equal to the specified value.""" + lessThanOrEqualTo: Datetime - """Filter by the object’s `windowStart` field.""" - windowStart: DatetimeFilter -} + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: Datetime -"""An input for mutations affecting `AppLimit`""" -input AppLimitInput { - """User whose usage is being tracked against this limit""" - actorId: UUID! + """Not equal to the specified value.""" + notEqualTo: Datetime - """Entity type prefix (org, team, app, etc.) for interpreting entity_id""" - entityType: String - id: UUID + """Not included in the specified list.""" + notIn: [Datetime!] +} +"""All input for the `deleteAppLimitCap` mutation.""" +input DeleteAppLimitCapInput { """ - Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - max: BigInt - - """Name identifier of the limit being tracked""" - name: String + clientMutationId: String + id: UUID! +} - """Current usage count for this actor and limit""" - num: BigInt +"""The output of our delete `AppLimitCap` mutation.""" +type DeleteAppLimitCapPayload { + """The `AppLimitCap` that was deleted by this mutation.""" + appLimitCap: AppLimitCap - """Resolved billable organization via get_organization_id""" - organizationId: UUID + """An edge for our `AppLimitCap`. May be used by Relay 1.""" + appLimitCapEdge( + """The method to use when ordering `AppLimitCap`.""" + orderBy: [AppLimitCapOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitCapEdge """ - Temporary credits for the current billing window. Resets to 0 on window expiry. + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - periodCredits: BigInt + clientMutationId: String """ - 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. + Our root query field type. Allows us to run any query from our mutation payload. """ - planMax: BigInt + query: Query +} +"""All input for the `deleteAppLimitCapsDefault` mutation.""" +input DeleteAppLimitCapsDefaultInput { """ - Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - purchasedCredits: BigInt + clientMutationId: String + id: UUID! +} + +"""The output of our delete `AppLimitCapsDefault` mutation.""" +type DeleteAppLimitCapsDefaultPayload { + """The `AppLimitCapsDefault` that was deleted by this mutation.""" + appLimitCapsDefault: AppLimitCapsDefault + + """An edge for our `AppLimitCapsDefault`. May be used by Relay 1.""" + appLimitCapsDefaultEdge( + """The method to use when ordering `AppLimitCapsDefault`.""" + orderBy: [AppLimitCapsDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitCapsDefaultEdge """ - Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - softMax: BigInt + clientMutationId: String """ - Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window + Our root query field type. Allows us to run any query from our mutation payload. """ - windowDuration: IntervalInput + query: Query +} - """Start of the current metering window; NULL means no time window""" - windowStart: Datetime +"""All input for the `deleteAppLimitCreditCode` mutation.""" +input DeleteAppLimitCreditCodeInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! } -"""Methods to use when ordering `AppLimit`.""" -enum AppLimitOrderBy { - ACTOR_ID_ASC - ACTOR_ID_DESC - ENTITY_TYPE_ASC - ENTITY_TYPE_DESC - ID_ASC - ID_DESC - MAX_ASC - MAX_DESC - NAME_ASC - NAME_DESC - NATURAL - NUM_ASC - NUM_DESC - ORGANIZATION_ID_ASC - ORGANIZATION_ID_DESC - PERIOD_CREDITS_ASC - PERIOD_CREDITS_DESC - PLAN_MAX_ASC - PLAN_MAX_DESC - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - PURCHASED_CREDITS_ASC - PURCHASED_CREDITS_DESC - SOFT_MAX_ASC - SOFT_MAX_DESC - WINDOW_DURATION_ASC - WINDOW_DURATION_DESC - WINDOW_START_ASC - WINDOW_START_DESC +"""All input for the `deleteAppLimitCreditCodeItem` mutation.""" +input DeleteAppLimitCreditCodeItemInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! } -""" -Represents an update to a `AppLimit`. Fields that are set will be updated. -""" -input AppLimitPatch { - """User whose usage is being tracked against this limit""" - actorId: UUID +"""The output of our delete `AppLimitCreditCodeItem` mutation.""" +type DeleteAppLimitCreditCodeItemPayload { + """The `AppLimitCreditCodeItem` that was deleted by this mutation.""" + appLimitCreditCodeItem: AppLimitCreditCodeItem - """Entity type prefix (org, team, app, etc.) for interpreting entity_id""" - entityType: String - id: UUID + """An edge for our `AppLimitCreditCodeItem`. May be used by Relay 1.""" + appLimitCreditCodeItemEdge( + """The method to use when ordering `AppLimitCreditCodeItem`.""" + orderBy: [AppLimitCreditCodeItemOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitCreditCodeItemEdge """ - Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - max: BigInt + clientMutationId: String - """Name identifier of the limit being tracked""" - name: String + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} - """Current usage count for this actor and limit""" - num: BigInt +"""The output of our delete `AppLimitCreditCode` mutation.""" +type DeleteAppLimitCreditCodePayload { + """The `AppLimitCreditCode` that was deleted by this mutation.""" + appLimitCreditCode: AppLimitCreditCode - """Resolved billable organization via get_organization_id""" - organizationId: UUID + """An edge for our `AppLimitCreditCode`. May be used by Relay 1.""" + appLimitCreditCodeEdge( + """The method to use when ordering `AppLimitCreditCode`.""" + orderBy: [AppLimitCreditCodeOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitCreditCodeEdge """ - Temporary credits for the current billing window. Resets to 0 on window expiry. + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - periodCredits: BigInt + clientMutationId: String """ - 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. + Our root query field type. Allows us to run any query from our mutation payload. """ - planMax: BigInt + query: Query +} +"""All input for the `deleteAppLimitCredit` mutation.""" +input DeleteAppLimitCreditInput { """ - Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - purchasedCredits: BigInt + clientMutationId: String + id: UUID! +} + +"""The output of our delete `AppLimitCredit` mutation.""" +type DeleteAppLimitCreditPayload { + """The `AppLimitCredit` that was deleted by this mutation.""" + appLimitCredit: AppLimitCredit + + """An edge for our `AppLimitCredit`. May be used by Relay 1.""" + appLimitCreditEdge( + """The method to use when ordering `AppLimitCredit`.""" + orderBy: [AppLimitCreditOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitCreditEdge """ - Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - softMax: BigInt + clientMutationId: String """ - Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window + Our root query field type. Allows us to run any query from our mutation payload. """ - windowDuration: IntervalInput - - """Start of the current metering window; NULL means no time window""" - windowStart: Datetime + query: Query } -""" -Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. -""" -type AppLimitWarning { +"""All input for the `deleteAppLimitCreditRedemption` mutation.""" +input DeleteAppLimitCreditRedemptionInput { + """ + An arbitrary 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! +} - """Limit name this warning applies to (must match a default_limits entry)""" - name: String! +"""The output of our delete `AppLimitCreditRedemption` mutation.""" +type DeleteAppLimitCreditRedemptionPayload { + """The `AppLimitCreditRedemption` that was deleted by this mutation.""" + appLimitCreditRedemption: AppLimitCreditRedemption + + """An edge for our `AppLimitCreditRedemption`. May be used by Relay 1.""" + appLimitCreditRedemptionEdge( + """The method to use when ordering `AppLimitCreditRedemption`.""" + orderBy: [AppLimitCreditRedemptionOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitCreditRedemptionEdge """ - Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - taskIdentifier: String! + clientMutationId: String """ - Threshold value — either an absolute count or a percentage (1-100) depending on warning_type + Our root query field type. Allows us to run any query from our mutation payload. """ - thresholdValue: BigInt! - - """Threshold type: absolute (fixed count) or percentage (of max)""" - warningType: String! + query: Query } -"""A connection to a list of `AppLimitWarning` values.""" -type AppLimitWarningConnection { +"""All input for the `deleteAppLimitDefault` mutation.""" +input DeleteAppLimitDefaultInput { """ - A list of edges which contains the `AppLimitWarning` and cursor to aid in pagination. + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - edges: [AppLimitWarningEdge]! + clientMutationId: String + id: UUID! +} - """A list of `AppLimitWarning` objects.""" - nodes: [AppLimitWarning]! +"""The output of our delete `AppLimitDefault` mutation.""" +type DeleteAppLimitDefaultPayload { + """The `AppLimitDefault` that was deleted by this mutation.""" + appLimitDefault: AppLimitDefault - """Information to aid in pagination.""" - pageInfo: PageInfo! + """An edge for our `AppLimitDefault`. May be used by Relay 1.""" + appLimitDefaultEdge( + """The method to use when ordering `AppLimitDefault`.""" + orderBy: [AppLimitDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitDefaultEdge """ - The count of *all* `AppLimitWarning` you could get from the connection. + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - totalCount: Int! + clientMutationId: String + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query } -"""A `AppLimitWarning` edge in the connection.""" -type AppLimitWarningEdge { - """A cursor for use in pagination.""" - cursor: Cursor +"""All input for the `deleteAppLimitEvent` mutation.""" +input DeleteAppLimitEventInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + createdAt: Datetime! - """The `AppLimitWarning` at the end of the edge.""" - node: AppLimitWarning + """Unique identifier for each limit event""" + id: UUID! } -""" -A filter to be used against `AppLimitWarning` object types. All fields are combined with a logical ‘and.’ -""" -input AppLimitWarningFilter { - """Checks for all expressions in this list.""" - and: [AppLimitWarningFilter!] +"""The output of our delete `AppLimitEvent` mutation.""" +type DeleteAppLimitEventPayload { + """The `AppLimitEvent` that was deleted by this mutation.""" + appLimitEvent: AppLimitEvent - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `name` field.""" - name: StringFilter - - """Negates the expression.""" - not: AppLimitWarningFilter - - """Checks for any expressions in this list.""" - or: [AppLimitWarningFilter!] - - """Filter by the object’s `taskIdentifier` field.""" - taskIdentifier: StringFilter - - """Filter by the object’s `thresholdValue` field.""" - thresholdValue: BigIntFilter - - """Filter by the object’s `warningType` field.""" - warningType: StringFilter -} - -"""An input for mutations affecting `AppLimitWarning`""" -input AppLimitWarningInput { - id: UUID - - """Limit name this warning applies to (must match a default_limits entry)""" - name: String! + """An edge for our `AppLimitEvent`. May be used by Relay 1.""" + appLimitEventEdge( + """The method to use when ordering `AppLimitEvent`.""" + orderBy: [AppLimitEventOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitEventEdge """ - Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - taskIdentifier: String! + clientMutationId: String """ - Threshold value — either an absolute count or a percentage (1-100) depending on warning_type + Our root query field type. Allows us to run any query from our mutation payload. """ - thresholdValue: BigInt! - - """Threshold type: absolute (fixed count) or percentage (of max)""" - warningType: String! + query: Query } -"""Methods to use when ordering `AppLimitWarning`.""" -enum AppLimitWarningOrderBy { - ID_ASC - ID_DESC - NAME_ASC - NAME_DESC - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - TASK_IDENTIFIER_ASC - TASK_IDENTIFIER_DESC - THRESHOLD_VALUE_ASC - THRESHOLD_VALUE_DESC - WARNING_TYPE_ASC - WARNING_TYPE_DESC +"""All input for the `deleteAppLimit` mutation.""" +input DeleteAppLimitInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! } -""" -Represents an update to a `AppLimitWarning`. Fields that are set will be updated. -""" -input AppLimitWarningPatch { - id: UUID +"""The output of our delete `AppLimit` mutation.""" +type DeleteAppLimitPayload { + """The `AppLimit` that was deleted by this mutation.""" + appLimit: AppLimit - """Limit name this warning applies to (must match a default_limits entry)""" - name: String + """An edge for our `AppLimit`. May be used by Relay 1.""" + appLimitEdge( + """The method to use when ordering `AppLimit`.""" + orderBy: [AppLimitOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitEdge """ - Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - taskIdentifier: String + clientMutationId: String """ - Threshold value — either an absolute count or a percentage (1-100) depending on warning_type + Our root query field type. Allows us to run any query from our mutation payload. """ - thresholdValue: BigInt - - """Threshold type: absolute (fixed count) or percentage (of max)""" - warningType: String + query: Query } -""" -A floating point number that requires more precision than IEEE 754 binary 64 -""" -scalar BigFloat - -""" -A filter to be used against BigFloat fields. All fields are combined with a logical ‘and.’ -""" -input BigFloatFilter { +"""All input for the `deleteAppLimitWarning` mutation.""" +input DeleteAppLimitWarningInput { """ - Not equal to the specified value, treating null like an ordinary value. + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - distinctFrom: BigFloat - - """Equal to the specified value.""" - equalTo: BigFloat - - """Greater than the specified value.""" - greaterThan: BigFloat + clientMutationId: String + id: UUID! +} - """Greater than or equal to the specified value.""" - greaterThanOrEqualTo: BigFloat +"""The output of our delete `AppLimitWarning` mutation.""" +type DeleteAppLimitWarningPayload { + """The `AppLimitWarning` that was deleted by this mutation.""" + appLimitWarning: AppLimitWarning - """Included in the specified list.""" - in: [BigFloat!] + """An edge for our `AppLimitWarning`. May be used by Relay 1.""" + appLimitWarningEdge( + """The method to use when ordering `AppLimitWarning`.""" + orderBy: [AppLimitWarningOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitWarningEdge """ - Is null (if `true` is specified) or is not null (if `false` is specified). + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - isNull: Boolean - - """Less than the specified value.""" - lessThan: BigFloat - - """Less than or equal to the specified value.""" - lessThanOrEqualTo: BigFloat - - """Equal to the specified value, treating null like an ordinary value.""" - notDistinctFrom: BigFloat - - """Not equal to the specified value.""" - notEqualTo: BigFloat + clientMutationId: String - """Not included in the specified list.""" - notIn: [BigFloat!] + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query } -""" -A signed eight-byte integer. The upper big integer values are greater than the -max value for a JavaScript number. Therefore all big integers will be output as -strings and not numbers. -""" -scalar BigInt - -""" -A filter to be used against BigInt fields. All fields are combined with a logical ‘and.’ -""" -input BigIntFilter { +"""All input for the `deleteOrgLimitAggregate` mutation.""" +input DeleteOrgLimitAggregateInput { """ - Not equal to the specified value, treating null like an ordinary value. + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - distinctFrom: BigInt - - """Equal to the specified value.""" - equalTo: BigInt - - """Greater than the specified value.""" - greaterThan: BigInt - - """Greater than or equal to the specified value.""" - greaterThanOrEqualTo: BigInt - - """Included in the specified list.""" - in: [BigInt!] + clientMutationId: String + id: UUID! +} +"""The output of our delete `OrgLimitAggregate` mutation.""" +type DeleteOrgLimitAggregatePayload { """ - Is null (if `true` is specified) or is not null (if `false` is specified). + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - isNull: Boolean - - """Less than the specified value.""" - lessThan: BigInt - - """Less than or equal to the specified value.""" - lessThanOrEqualTo: BigInt + clientMutationId: String - """Equal to the specified value, treating null like an ordinary value.""" - notDistinctFrom: BigInt + """The `OrgLimitAggregate` that was deleted by this mutation.""" + orgLimitAggregate: OrgLimitAggregate - """Not equal to the specified value.""" - notEqualTo: BigInt + """An edge for our `OrgLimitAggregate`. May be used by Relay 1.""" + orgLimitAggregateEdge( + """The method to use when ordering `OrgLimitAggregate`.""" + orderBy: [OrgLimitAggregateOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitAggregateEdge - """Not included in the specified list.""" - notIn: [BigInt!] + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query } -""" -Permanent monthly usage summary per entity per meter (user-facing billing dashboard) -""" -type BillingUsageSummary { - """Universal credits consumed during this period""" - creditsConsumed: BigInt! - - """The entity (org, team, user) this summary belongs to""" - entityId: UUID! - - """Entity type prefix (org, team, app, etc.) for interpreting entity_id""" - entityType: String - id: UUID! - - """Which meter this summary tracks""" - meterSlug: String! - - """Resolved billable organization via get_organization_id""" - organizationId: UUID - +"""All input for the `deleteOrgLimitCap` mutation.""" +input DeleteOrgLimitCapInput { """ - Units consumed beyond the plan limit (quantity_used - plan_limit when positive) + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - overageUnits: BigInt! - - """End of the billing period this summary covers""" - periodEnd: Datetime! - - """Start of the billing period this summary covers""" - periodStart: Datetime! - - """Plan limit that was in effect during this period""" - planLimit: BigInt! - - """Total units consumed during this period""" - quantityUsed: BigInt! + clientMutationId: String + id: UUID! } -"""A connection to a list of `BillingUsageSummary` values.""" -type BillingUsageSummaryConnection { +"""The output of our delete `OrgLimitCap` mutation.""" +type DeleteOrgLimitCapPayload { """ - A list of edges which contains the `BillingUsageSummary` and cursor to aid in pagination. + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - edges: [BillingUsageSummaryEdge]! + clientMutationId: String - """A list of `BillingUsageSummary` objects.""" - nodes: [BillingUsageSummary]! + """The `OrgLimitCap` that was deleted by this mutation.""" + orgLimitCap: OrgLimitCap - """Information to aid in pagination.""" - pageInfo: PageInfo! + """An edge for our `OrgLimitCap`. May be used by Relay 1.""" + orgLimitCapEdge( + """The method to use when ordering `OrgLimitCap`.""" + orderBy: [OrgLimitCapOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitCapEdge """ - The count of *all* `BillingUsageSummary` you could get from the connection. + Our root query field type. Allows us to run any query from our mutation payload. """ - totalCount: Int! + query: Query } -"""A `BillingUsageSummary` edge in the connection.""" -type BillingUsageSummaryEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `BillingUsageSummary` at the end of the edge.""" - node: BillingUsageSummary +"""All input for the `deleteOrgLimitCapsDefault` mutation.""" +input DeleteOrgLimitCapsDefaultInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! } -""" -A filter to be used against `BillingUsageSummary` object types. All fields are combined with a logical ‘and.’ -""" -input BillingUsageSummaryFilter { - """Checks for all expressions in this list.""" - and: [BillingUsageSummaryFilter!] - - """Filter by the object’s `creditsConsumed` field.""" - creditsConsumed: BigIntFilter - - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter - - """Filter by the object’s `entityType` field.""" - entityType: StringFilter - - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `meterSlug` field.""" - meterSlug: StringFilter - - """Negates the expression.""" - not: BillingUsageSummaryFilter - - """Checks for any expressions in this list.""" - or: [BillingUsageSummaryFilter!] - - """Filter by the object’s `organizationId` field.""" - organizationId: UUIDFilter - - """Filter by the object’s `overageUnits` field.""" - overageUnits: BigIntFilter - - """Filter by the object’s `periodEnd` field.""" - periodEnd: DatetimeFilter - - """Filter by the object’s `periodStart` field.""" - periodStart: DatetimeFilter - - """Filter by the object’s `planLimit` field.""" - planLimit: BigIntFilter - - """Filter by the object’s `quantityUsed` field.""" - quantityUsed: BigIntFilter -} - -"""An input for mutations affecting `BillingUsageSummary`""" -input BillingUsageSummaryInput { - """Universal credits consumed during this period""" - creditsConsumed: BigInt - - """The entity (org, team, user) this summary belongs to""" - entityId: UUID! - - """Entity type prefix (org, team, app, etc.) for interpreting entity_id""" - entityType: String - id: UUID - - """Which meter this summary tracks""" - meterSlug: String! - - """Resolved billable organization via get_organization_id""" - organizationId: UUID - - """ - Units consumed beyond the plan limit (quantity_used - plan_limit when positive) - """ - overageUnits: BigInt - - """End of the billing period this summary covers""" - periodEnd: Datetime! - - """Start of the billing period this summary covers""" - periodStart: Datetime! - - """Plan limit that was in effect during this period""" - planLimit: BigInt - - """Total units consumed during this period""" - quantityUsed: BigInt -} - -"""Methods to use when ordering `BillingUsageSummary`.""" -enum BillingUsageSummaryOrderBy { - CREDITS_CONSUMED_ASC - CREDITS_CONSUMED_DESC - ENTITY_ID_ASC - ENTITY_ID_DESC - ENTITY_TYPE_ASC - ENTITY_TYPE_DESC - ID_ASC - ID_DESC - METER_SLUG_ASC - METER_SLUG_DESC - NATURAL - ORGANIZATION_ID_ASC - ORGANIZATION_ID_DESC - OVERAGE_UNITS_ASC - OVERAGE_UNITS_DESC - PERIOD_END_ASC - PERIOD_END_DESC - PERIOD_START_ASC - PERIOD_START_DESC - PLAN_LIMIT_ASC - PLAN_LIMIT_DESC - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - QUANTITY_USED_ASC - QUANTITY_USED_DESC -} - -""" -Represents an update to a `BillingUsageSummary`. Fields that are set will be updated. -""" -input BillingUsageSummaryPatch { - """Universal credits consumed during this period""" - creditsConsumed: BigInt - - """The entity (org, team, user) this summary belongs to""" - entityId: UUID - - """Entity type prefix (org, team, app, etc.) for interpreting entity_id""" - entityType: String - id: UUID - - """Which meter this summary tracks""" - meterSlug: String - - """Resolved billable organization via get_organization_id""" - organizationId: UUID - - """ - Units consumed beyond the plan limit (quantity_used - plan_limit when positive) - """ - overageUnits: BigInt - - """End of the billing period this summary covers""" - periodEnd: Datetime - - """Start of the billing period this summary covers""" - periodStart: Datetime - - """Plan limit that was in effect during this period""" - planLimit: BigInt - - """Total units consumed during this period""" - quantityUsed: BigInt -} - -""" -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). - """ - 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!] -} - -scalar ConstructiveInternalTypeImage - -""" -A filter to be used against ConstructiveInternalTypeImage fields. All fields are combined with a logical ‘and.’ -""" -input ConstructiveInternalTypeImageFilter { - """Contained by the specified JSON.""" - containedBy: ConstructiveInternalTypeImage - - """Contains the specified JSON.""" - contains: ConstructiveInternalTypeImage - - """Contains all of the specified keys.""" - containsAllKeys: [String!] - - """Contains any of the specified keys.""" - containsAnyKeys: [String!] - - """Contains the specified key.""" - containsKey: String - +"""The output of our delete `OrgLimitCapsDefault` mutation.""" +type DeleteOrgLimitCapsDefaultPayload { """ - Not equal to the specified value, treating null like an ordinary value. + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - distinctFrom: ConstructiveInternalTypeImage - - """Equal to the specified value.""" - equalTo: ConstructiveInternalTypeImage - - """Greater than the specified value.""" - greaterThan: ConstructiveInternalTypeImage + clientMutationId: String - """Greater than or equal to the specified value.""" - greaterThanOrEqualTo: ConstructiveInternalTypeImage + """The `OrgLimitCapsDefault` that was deleted by this mutation.""" + orgLimitCapsDefault: OrgLimitCapsDefault - """Included in the specified list.""" - in: [ConstructiveInternalTypeImage!] + """An edge for our `OrgLimitCapsDefault`. May be used by Relay 1.""" + orgLimitCapsDefaultEdge( + """The method to use when ordering `OrgLimitCapsDefault`.""" + orderBy: [OrgLimitCapsDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitCapsDefaultEdge """ - Is null (if `true` is specified) or is not null (if `false` is specified). + Our root query field type. Allows us to run any query from our mutation payload. """ - isNull: Boolean - - """Less than the specified value.""" - lessThan: ConstructiveInternalTypeImage - - """Less than or equal to the specified value.""" - lessThanOrEqualTo: ConstructiveInternalTypeImage - - """Equal to the specified value, treating null like an ordinary value.""" - notDistinctFrom: ConstructiveInternalTypeImage - - """Not equal to the specified value.""" - notEqualTo: ConstructiveInternalTypeImage - - """Not included in the specified list.""" - notIn: [ConstructiveInternalTypeImage!] + query: Query } -"""All input for the create `AppAchievementReward` mutation.""" -input CreateAppAchievementRewardInput { - """The `AppAchievementReward` to be created by this mutation.""" - appAchievementReward: AppAchievementRewardInput! - +"""All input for the `deleteOrgLimitCredit` mutation.""" +input DeleteOrgLimitCreditInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String + id: UUID! } -"""The output of our create `AppAchievementReward` mutation.""" -type CreateAppAchievementRewardPayload { - """The `AppAchievementReward` that was created by this mutation.""" - appAchievementReward: AppAchievementReward - - """An edge for our `AppAchievementReward`. May be used by Relay 1.""" - appAchievementRewardEdge( - """The method to use when ordering `AppAchievementReward`.""" - orderBy: [AppAchievementRewardOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppAchievementRewardEdge - +"""The output of our delete `OrgLimitCredit` mutation.""" +type DeleteOrgLimitCreditPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String + """The `OrgLimitCredit` that was deleted by this mutation.""" + orgLimitCredit: OrgLimitCredit + + """An edge for our `OrgLimitCredit`. May be used by Relay 1.""" + orgLimitCreditEdge( + """The method to use when ordering `OrgLimitCredit`.""" + orderBy: [OrgLimitCreditOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitCreditEdge + """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query } -"""All input for the create `AppEventAggregate` mutation.""" -input CreateAppEventAggregateInput { - """The `AppEventAggregate` to be created by this mutation.""" - appEventAggregate: AppEventAggregateInput! - +"""All input for the `deleteOrgLimitDefault` mutation.""" +input DeleteOrgLimitDefaultInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String + id: UUID! } -"""The output of our create `AppEventAggregate` mutation.""" -type CreateAppEventAggregatePayload { - """The `AppEventAggregate` that was created by this mutation.""" - appEventAggregate: AppEventAggregate - - """An edge for our `AppEventAggregate`. May be used by Relay 1.""" - appEventAggregateEdge( - """The method to use when ordering `AppEventAggregate`.""" - orderBy: [AppEventAggregateOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppEventAggregateEdge - +"""The output of our delete `OrgLimitDefault` mutation.""" +type DeleteOrgLimitDefaultPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String + """The `OrgLimitDefault` that was deleted by this mutation.""" + orgLimitDefault: OrgLimitDefault + + """An edge for our `OrgLimitDefault`. May be used by Relay 1.""" + orgLimitDefaultEdge( + """The method to use when ordering `OrgLimitDefault`.""" + orderBy: [OrgLimitDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitDefaultEdge + """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query } -"""All input for the create `AppEvent` mutation.""" -input CreateAppEventInput { - """The `AppEvent` to be created by this mutation.""" - appEvent: AppEventInput! - +"""All input for the `deleteOrgLimitEvent` mutation.""" +input DeleteOrgLimitEventInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String -} - -"""The output of our create `AppEvent` mutation.""" -type CreateAppEventPayload { - """The `AppEvent` that was created by this mutation.""" - appEvent: AppEvent + createdAt: Datetime! - """An edge for our `AppEvent`. May be used by Relay 1.""" - appEventEdge( - """The method to use when ordering `AppEvent`.""" - orderBy: [AppEventOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppEventEdge + """Unique identifier for each limit event""" + id: UUID! +} +"""The output of our delete `OrgLimitEvent` mutation.""" +type DeleteOrgLimitEventPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String + """The `OrgLimitEvent` that was deleted by this mutation.""" + orgLimitEvent: OrgLimitEvent + + """An edge for our `OrgLimitEvent`. May be used by Relay 1.""" + orgLimitEventEdge( + """The method to use when ordering `OrgLimitEvent`.""" + orderBy: [OrgLimitEventOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitEventEdge + """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query } -"""All input for the create `AppEventType` mutation.""" -input CreateAppEventTypeInput { - """The `AppEventType` to be created by this mutation.""" - appEventType: AppEventTypeInput! - +"""All input for the `deleteOrgLimit` mutation.""" +input DeleteOrgLimitInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String + id: UUID! } -"""The output of our create `AppEventType` mutation.""" -type CreateAppEventTypePayload { - """The `AppEventType` that was created by this mutation.""" - appEventType: AppEventType - - """An edge for our `AppEventType`. May be used by Relay 1.""" - appEventTypeEdge( - """The method to use when ordering `AppEventType`.""" - orderBy: [AppEventTypeOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppEventTypeEdge - +"""The output of our delete `OrgLimit` mutation.""" +type DeleteOrgLimitPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String + """The `OrgLimit` that was deleted by this mutation.""" + orgLimit: OrgLimit + + """An edge for our `OrgLimit`. May be used by Relay 1.""" + orgLimitEdge( + """The method to use when ordering `OrgLimit`.""" + orderBy: [OrgLimitOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitEdge + """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query } -"""All input for the create `AppLevelGrant` mutation.""" -input CreateAppLevelGrantInput { - """The `AppLevelGrant` to be created by this mutation.""" - appLevelGrant: AppLevelGrantInput! - +"""All input for the `deleteOrgLimitWarning` mutation.""" +input DeleteOrgLimitWarningInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String + id: UUID! } -"""The output of our create `AppLevelGrant` mutation.""" -type CreateAppLevelGrantPayload { - """The `AppLevelGrant` that was created by this mutation.""" - appLevelGrant: AppLevelGrant - - """An edge for our `AppLevelGrant`. May be used by Relay 1.""" - appLevelGrantEdge( - """The method to use when ordering `AppLevelGrant`.""" - orderBy: [AppLevelGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLevelGrantEdge - +"""The output of our delete `OrgLimitWarning` mutation.""" +type DeleteOrgLimitWarningPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String + """The `OrgLimitWarning` that was deleted by this mutation.""" + orgLimitWarning: OrgLimitWarning + + """An edge for our `OrgLimitWarning`. May be used by Relay 1.""" + orgLimitWarningEdge( + """The method to use when ordering `OrgLimitWarning`.""" + orderBy: [OrgLimitWarningOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitWarningEdge + """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query } -"""All input for the create `AppLevel` mutation.""" -input CreateAppLevelInput { - """The `AppLevel` to be created by this mutation.""" - appLevel: AppLevelInput! - +""" +A filter to be used against Int fields. All fields are combined with a logical ‘and.’ +""" +input IntFilter { """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. + Not equal to the specified value, treating null like an ordinary value. """ - clientMutationId: String -} + distinctFrom: Int -"""The output of our create `AppLevel` mutation.""" -type CreateAppLevelPayload { - """The `AppLevel` that was created by this mutation.""" - appLevel: AppLevel + """Equal to the specified value.""" + equalTo: Int - """An edge for our `AppLevel`. May be used by Relay 1.""" - appLevelEdge( - """The method to use when ordering `AppLevel`.""" - orderBy: [AppLevelOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLevelEdge + """Greater than the specified value.""" + greaterThan: Int - """ - The 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 -} + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: Int -"""All input for the create `AppLevelRequirement` mutation.""" -input CreateAppLevelRequirementInput { - """The `AppLevelRequirement` to be created by this mutation.""" - appLevelRequirement: AppLevelRequirementInput! + """Included in the specified list.""" + in: [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. + Is null (if `true` is specified) or is not null (if `false` is specified). """ - clientMutationId: String -} + isNull: Boolean -"""The output of our create `AppLevelRequirement` mutation.""" -type CreateAppLevelRequirementPayload { - """The `AppLevelRequirement` that was created by this mutation.""" - appLevelRequirement: AppLevelRequirement + """Less than the specified value.""" + lessThan: Int - """An edge for our `AppLevelRequirement`. May be used by Relay 1.""" - appLevelRequirementEdge( - """The method to use when ordering `AppLevelRequirement`.""" - orderBy: [AppLevelRequirementOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLevelRequirementEdge + """Less than or equal to the specified value.""" + lessThanOrEqualTo: Int - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: Int - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query + """Not equal to the specified value.""" + notEqualTo: Int + + """Not included in the specified list.""" + notIn: [Int!] } -"""All input for the create `AppLimitCap` mutation.""" -input CreateAppLimitCapInput { - """The `AppLimitCap` to be created by this mutation.""" - appLimitCap: AppLimitCapInput! +""" +An interval of time that has passed where the smallest distinct unit is a second. +""" +type Interval { + """A quantity of days.""" + days: 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. - """ - clientMutationId: String -} + """A quantity of hours.""" + hours: Int -"""The output of our create `AppLimitCap` mutation.""" -type CreateAppLimitCapPayload { - """The `AppLimitCap` that was created by this mutation.""" - appLimitCap: AppLimitCap + """A quantity of minutes.""" + minutes: Int - """An edge for our `AppLimitCap`. May be used by Relay 1.""" - appLimitCapEdge( - """The method to use when ordering `AppLimitCap`.""" - orderBy: [AppLimitCapOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitCapEdge + """A quantity of months.""" + months: Int """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. + A quantity of seconds. This is the only non-integer field, as all the other + fields will dump their overflow into a smaller unit of time. Intervals don’t + have a smaller unit than seconds. """ - clientMutationId: String + seconds: Float - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query + """A quantity of years.""" + years: Int } -"""All input for the create `AppLimitCapsDefault` mutation.""" -input CreateAppLimitCapsDefaultInput { - """The `AppLimitCapsDefault` to be created by this mutation.""" - appLimitCapsDefault: AppLimitCapsDefaultInput! - +""" +A filter to be used against Interval fields. All fields are combined with a logical ‘and.’ +""" +input IntervalFilter { """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. + Not equal to the specified value, treating null like an ordinary value. """ - clientMutationId: String -} - -"""The output of our create `AppLimitCapsDefault` mutation.""" -type CreateAppLimitCapsDefaultPayload { - """The `AppLimitCapsDefault` that was created by this mutation.""" - appLimitCapsDefault: AppLimitCapsDefault + distinctFrom: IntervalInput - """An edge for our `AppLimitCapsDefault`. May be used by Relay 1.""" - appLimitCapsDefaultEdge( - """The method to use when ordering `AppLimitCapsDefault`.""" - orderBy: [AppLimitCapsDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitCapsDefaultEdge + """Equal to the specified value.""" + equalTo: IntervalInput - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String + """Greater than the specified value.""" + greaterThan: IntervalInput - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: IntervalInput -"""All input for the create `AppLimitCreditCode` mutation.""" -input CreateAppLimitCreditCodeInput { - """The `AppLimitCreditCode` to be created by this mutation.""" - appLimitCreditCode: AppLimitCreditCodeInput! + """Included in the specified list.""" + in: [IntervalInput!] """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. + Is null (if `true` is specified) or is not null (if `false` is specified). """ - clientMutationId: String -} - -"""All input for the create `AppLimitCreditCodeItem` mutation.""" -input CreateAppLimitCreditCodeItemInput { - """The `AppLimitCreditCodeItem` to be created by this mutation.""" - appLimitCreditCodeItem: AppLimitCreditCodeItemInput! + isNull: 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 -} + """Less than the specified value.""" + lessThan: IntervalInput -"""The output of our create `AppLimitCreditCodeItem` mutation.""" -type CreateAppLimitCreditCodeItemPayload { - """The `AppLimitCreditCodeItem` that was created by this mutation.""" - appLimitCreditCodeItem: AppLimitCreditCodeItem + """Less than or equal to the specified value.""" + lessThanOrEqualTo: IntervalInput - """An edge for our `AppLimitCreditCodeItem`. May be used by Relay 1.""" - appLimitCreditCodeItemEdge( - """The method to use when ordering `AppLimitCreditCodeItem`.""" - orderBy: [AppLimitCreditCodeItemOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitCreditCodeItemEdge + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: IntervalInput - """ - The 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 equal to the specified value.""" + notEqualTo: IntervalInput - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query + """Not included in the specified list.""" + notIn: [IntervalInput!] } -"""The output of our create `AppLimitCreditCode` mutation.""" -type CreateAppLimitCreditCodePayload { - """The `AppLimitCreditCode` that was created by this mutation.""" - appLimitCreditCode: AppLimitCreditCode +""" +An interval of time that has passed where the smallest distinct unit is a second. +""" +input IntervalInput { + """A quantity of days.""" + days: Int - """An edge for our `AppLimitCreditCode`. May be used by Relay 1.""" - appLimitCreditCodeEdge( - """The method to use when ordering `AppLimitCreditCode`.""" - orderBy: [AppLimitCreditCodeOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitCreditCodeEdge + """A quantity of hours.""" + hours: Int - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String + """A quantity of minutes.""" + minutes: Int + + """A quantity of months.""" + months: Int """ - Our root query field type. Allows us to run any query from our mutation payload. + A quantity of seconds. This is the only non-integer field, as all the other + fields will dump their overflow into a smaller unit of time. Intervals don’t + have a smaller unit than seconds. """ - query: Query + seconds: Float + + """A quantity of years.""" + years: Int } -"""All input for the create `AppLimitCredit` mutation.""" -input CreateAppLimitCreditInput { - """The `AppLimitCredit` to be created by this mutation.""" - appLimitCredit: AppLimitCreditInput! +""" +Represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). +""" +scalar JSON - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String +"""A belongs-to (forward FK) relation""" +type MetaBelongsToRelation { + fieldName: String + isUnique: Boolean! + keys: [MetaField!]! + references: MetaRefTable! + type: String } -"""The output of our create `AppLimitCredit` mutation.""" -type CreateAppLimitCreditPayload { - """The `AppLimitCredit` that was created by this mutation.""" - appLimitCredit: AppLimitCredit +"""Table constraints""" +type MetaConstraints { + foreignKey: [MetaForeignKeyConstraint!]! + primaryKey: MetaPrimaryKeyConstraint + unique: [MetaUniqueConstraint!]! +} - """An edge for our `AppLimitCredit`. May be used by Relay 1.""" - appLimitCreditEdge( - """The method to use when ordering `AppLimitCredit`.""" - orderBy: [AppLimitCreditOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitCreditEdge +"""Information about a PostgreSQL enum type""" +type MetaEnum { + """The PostgreSQL enum type name""" + name: String! - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String + """Allowed values for this enum""" + values: [String!]! +} - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} +"""Information about a table field/column""" +type MetaField { + """PostgreSQL column name""" + columnName: String! + description: String -"""All input for the create `AppLimitCreditRedemption` mutation.""" -input CreateAppLimitCreditRedemptionInput { - """The `AppLimitCreditRedemption` to be created by this mutation.""" - appLimitCreditRedemption: AppLimitCreditRedemptionInput! + """Enum metadata if this field has an enum type""" + enumValues: MetaEnum + hasDefault: Boolean! + isForeignKey: Boolean! + isNotNull: Boolean! + isPrimaryKey: 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 + """Final GraphQL field name""" + name: String! + type: MetaType! } -"""The output of our create `AppLimitCreditRedemption` mutation.""" -type CreateAppLimitCreditRedemptionPayload { - """The `AppLimitCreditRedemption` that was created by this mutation.""" - appLimitCreditRedemption: AppLimitCreditRedemption +"""Information about a foreign key constraint""" +type MetaForeignKeyConstraint { + fields: [MetaField!]! + name: String! + refFields: [MetaField!] + refTable: MetaRefTable + referencedFields: [String!]! + referencedTable: String! +} - """An edge for our `AppLimitCreditRedemption`. May be used by Relay 1.""" - appLimitCreditRedemptionEdge( - """The method to use when ordering `AppLimitCreditRedemption`.""" - orderBy: [AppLimitCreditRedemptionOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitCreditRedemptionEdge +"""A has-one or has-many (reverse FK) relation""" +type MetaHasRelation { + fieldName: String + isUnique: Boolean! + keys: [MetaField!]! + referencedBy: MetaRefTable! + type: String +} - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String +"""i18n metadata for a table with @i18n tag""" +type MetaI18n { + """Fields that are translatable""" + translatableFields: [MetaI18nField!]! - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query + """Name of the translation table""" + translationTable: String! } -"""All input for the create `AppLimitDefault` mutation.""" -input CreateAppLimitDefaultInput { - """The `AppLimitDefault` to be created by this mutation.""" - appLimitDefault: AppLimitDefaultInput! +"""A translatable field""" +type MetaI18nField { + """GraphQL field name""" + name: 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 + """PostgreSQL column type (text, citext)""" + type: String! } -"""The output of our create `AppLimitDefault` mutation.""" -type CreateAppLimitDefaultPayload { - """The `AppLimitDefault` that was created by this mutation.""" - appLimitDefault: AppLimitDefault +"""Information about a database index""" +type MetaIndex { + columns: [String!]! + fields: [MetaField!] + isPrimary: Boolean! + isUnique: Boolean! + name: String! +} - """An edge for our `AppLimitDefault`. May be used by Relay 1.""" - appLimitDefaultEdge( - """The method to use when ordering `AppLimitDefault`.""" - orderBy: [AppLimitDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitDefaultEdge +"""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 +} - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: 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 +} - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query +"""Information about a primary key constraint""" +type MetaPrimaryKeyConstraint { + fields: [MetaField!]! + name: String! } -"""All input for the create `AppLimitEvent` mutation.""" -input CreateAppLimitEventInput { - """The `AppLimitEvent` to be created by this mutation.""" - appLimitEvent: AppLimitEventInput! +"""Table query/mutation names""" +type MetaQuery { + all: String + create: String + delete: String + one: String + update: 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 +"""Realtime metadata for a table with @realtime tag""" +type MetaRealtime { + """The generated subscription field name (e.g. onPostChanged)""" + subscriptionFieldName: String! } -"""The output of our create `AppLimitEvent` mutation.""" -type CreateAppLimitEventPayload { - """The `AppLimitEvent` that was created by this mutation.""" - appLimitEvent: AppLimitEvent +"""Reference to a related table""" +type MetaRefTable { + name: String! +} - """An edge for our `AppLimitEvent`. May be used by Relay 1.""" - appLimitEventEdge( - """The method to use when ordering `AppLimitEvent`.""" - orderBy: [AppLimitEventOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitEventEdge +"""Table relations""" +type MetaRelations { + belongsTo: [MetaBelongsToRelation!]! + has: [MetaHasRelation!]! + hasMany: [MetaHasRelation!]! + hasOne: [MetaHasRelation!]! + manyToMany: [MetaManyToManyRelation!]! +} - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String +""" +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 - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} + """For 'ltree': values are dot-separated path strings.""" + dotPath: Boolean -"""All input for the create `AppLimit` mutation.""" -input CreateAppLimitInput { - """The `AppLimit` to be created by this mutation.""" - appLimit: AppLimitInput! + """For 'vector': element scalar (e.g. 'float').""" + elementType: String + + """For 'geojson': Point/LineString/Polygon/…, else null.""" + geometrySubtype: 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. + Machine kind: bigint, datetime, date, time, interval, uuid, geojson, point, inet, ltree, vector, bytea, or composite. """ - clientMutationId: String + kind: String! + + """For 'geojson': spatial reference id, else null.""" + srid: Int } -"""The output of our create `AppLimit` mutation.""" -type CreateAppLimitPayload { - """The `AppLimit` that was created by this mutation.""" - appLimit: AppLimit +"""Root meta schema type""" +type MetaSchema { + tables: [MetaTable!]! +} - """An edge for our `AppLimit`. May be used by Relay 1.""" - appLimitEdge( - """The method to use when ordering `AppLimit`.""" - orderBy: [AppLimitOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitEdge +"""Provisioning scope metadata for a table""" +type MetaScope { + """SQL name of the entity table for entity scopes, else null""" + entityTable: String """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. + Inflected scope key column (e.g. databaseId, orgId), null for global tiers """ - clientMutationId: String + keyColumn: String """ - Our root query field type. Allows us to run any query from our mutation payload. + Provisioning scope: 'platform', 'app', 'database', or an entity scope (e.g. 'org') """ - query: Query -} + scope: String! -"""All input for the create `AppLimitWarning` mutation.""" -input CreateAppLimitWarningInput { - """The `AppLimitWarning` to be created by this mutation.""" - appLimitWarning: AppLimitWarningInput! + """Provenance of the scope metadata (always 'smartTag')""" + source: 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 + """Coarse bucket: 'global', 'database', or 'entity'""" + tier: String! } -"""The output of our create `AppLimitWarning` mutation.""" -type CreateAppLimitWarningPayload { - """The `AppLimitWarning` that was created by this mutation.""" - appLimitWarning: AppLimitWarning +"""Search metadata for a table""" +type MetaSearch { + """Active search algorithms on this table""" + algorithms: [String!]! - """An edge for our `AppLimitWarning`. May be used by Relay 1.""" - appLimitWarningEdge( - """The method to use when ordering `AppLimitWarning`.""" - orderBy: [AppLimitWarningOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitWarningEdge + """Searchable columns with their algorithm""" + columns: [MetaSearchColumn!]! - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String + """Per-table search configuration""" + config: MetaSearchConfig - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query + """Whether unifiedSearch composite filter is available""" + hasUnifiedSearch: Boolean! } -"""All input for the create `BillingUsageSummary` mutation.""" -input CreateBillingUsageSummaryInput { - """The `BillingUsageSummary` to be created by this mutation.""" - billingUsageSummary: BillingUsageSummaryInput! +"""A searchable column with its algorithm""" +type MetaSearchColumn { + """Search algorithm: tsvector, bm25, trgm, or vector""" + algorithm: 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 + """Column name (camelCase)""" + name: String! } -"""The output of our create `BillingUsageSummary` mutation.""" -type CreateBillingUsageSummaryPayload { - """The `BillingUsageSummary` that was created by this mutation.""" - billingUsageSummary: BillingUsageSummary +"""Per-table search configuration from @searchConfig smart tag""" +type MetaSearchConfig { + """Exponential decay factor per day""" + boostRecencyDecay: Float - """An edge for our `BillingUsageSummary`. May be used by Relay 1.""" - billingUsageSummaryEdge( - """The method to use when ordering `BillingUsageSummary`.""" - orderBy: [BillingUsageSummaryOrderBy!]! = [PRIMARY_KEY_ASC] - ): BillingUsageSummaryEdge + """Field used for recency decay""" + boostRecencyField: String - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String + """Whether recency boosting is enabled""" + boostRecent: Boolean! - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query + """JSON-encoded per-adapter score weights""" + weights: String } -"""All input for the create `Ledger` mutation.""" -input CreateLedgerInput { - """ - An arbitrary 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 `Ledger` to be created by this mutation.""" - ledger: LedgerInput! -} +"""Storage metadata for a table""" +type MetaStorage { + """GraphQL type name of the plane's buckets table""" + bucketsType: String! -"""The output of our create `Ledger` mutation.""" -type CreateLedgerPayload { """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. + Computed download-URL field on the files type; null on the buckets side """ - clientMutationId: String - - """The `Ledger` that was created by this mutation.""" - ledger: Ledger + downloadUrlField: String - """An edge for our `Ledger`. May be used by Relay 1.""" - ledgerEdge( - """The method to use when ordering `Ledger`.""" - orderBy: [LedgerOrderBy!]! = [PRIMARY_KEY_ASC] - ): LedgerEdge + """GraphQL type name of the plane's files table""" + filesType: String! - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} + """Whether this table is a storage buckets table""" + isBucketsTable: Boolean! -"""All input for the create `MeterCredit` mutation.""" -input CreateMeterCreditInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String + """Whether this table is a storage files table""" + isFilesTable: Boolean! - """The `MeterCredit` to be created by this mutation.""" - meterCredit: MeterCreditInput! + """The plane's GraphQL upload surface""" + upload: MetaStorageUpload! } -"""The output of our create `MeterCredit` mutation.""" -type CreateMeterCreditPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `MeterCredit` that was created by this mutation.""" - meterCredit: MeterCredit +""" +The GraphQL upload surface of a storage plane, derived from the registry facts the presigned-url plugin emits from +""" +type MetaStorageUpload { + """Per-file input type inside the bulk input""" + bulkFileInputType: String! - """An edge for our `MeterCredit`. May be used by Relay 1.""" - meterCreditEdge( - """The method to use when ordering `MeterCredit`.""" - orderBy: [MeterCreditOrderBy!]! = [PRIMARY_KEY_ASC] - ): MeterCreditEdge + """Per-file payload type inside the bulk payload""" + bulkFilePayloadType: String! - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} + """Input type of the bulk upload mutation""" + bulkInputType: String! -"""All input for the create `MeterDefault` mutation.""" -input CreateMeterDefaultInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String + """Root mutation field for bulk upload""" + bulkMutation: String! - """The `MeterDefault` to be created by this mutation.""" - meterDefault: MeterDefaultInput! -} + """Payload type of the bulk upload mutation""" + bulkPayloadType: String! -"""The output of our create `MeterDefault` mutation.""" -type CreateMeterDefaultPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String + """Input type of the single upload mutation""" + inputType: String! - """The `MeterDefault` that was created by this mutation.""" - meterDefault: MeterDefault + """Root mutation field for single-file upload (e.g. uploadAppFile)""" + mutation: String! - """An edge for our `MeterDefault`. May be used by Relay 1.""" - meterDefaultEdge( - """The method to use when ordering `MeterDefault`.""" - orderBy: [MeterDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): MeterDefaultEdge + """Payload type of the single upload mutation""" + payloadType: String! - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query + """Whether the upload input requires ownerId (entity-keyed plane)""" + requiresOwnerId: Boolean! } -"""All input for the create `Meter` mutation.""" -input CreateMeterInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String +"""Information about a database table""" +type MetaTable { + constraints: MetaConstraints! + fields: [MetaField!]! + foreignKeyConstraints: [MetaForeignKeyConstraint!]! - """The `Meter` to be created by this mutation.""" - meter: MeterInput! -} + """i18n metadata (null if no @i18n tag)""" + i18n: MetaI18n + indexes: [MetaIndex!]! + inflection: MetaInflection! -"""The output of our create `Meter` mutation.""" -type CreateMeterPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String + """Final GraphQL output type name""" + name: String! + primaryKeyConstraints: [MetaPrimaryKeyConstraint!]! + query: MetaQuery! - """The `Meter` that was created by this mutation.""" - meter: Meter + """Realtime metadata (null if no @realtime tag)""" + realtime: MetaRealtime + relations: MetaRelations! + schemaName: String! - """An edge for our `Meter`. May be used by Relay 1.""" - meterEdge( - """The method to use when ordering `Meter`.""" - orderBy: [MeterOrderBy!]! = [PRIMARY_KEY_ASC] - ): MeterEdge + """Provisioning scope metadata (null if no @scope tag)""" + scope: MetaScope - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} + """Search metadata (null if no search configured)""" + search: MetaSearch -"""All input for the create `MeterSource` mutation.""" -input CreateMeterSourceInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String + """Storage metadata (null if not a storage table)""" + storage: MetaStorage - """The `MeterSource` to be created by this mutation.""" - meterSource: MeterSourceInput! + """PostgreSQL table name""" + tableName: String! + uniqueConstraints: [MetaUniqueConstraint!]! } -"""The output of our create `MeterSource` mutation.""" -type CreateMeterSourcePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `MeterSource` that was created by this mutation.""" - meterSource: MeterSource - - """An edge for our `MeterSource`. May be used by Relay 1.""" - meterSourceEdge( - """The method to use when ordering `MeterSource`.""" - orderBy: [MeterSourceOrderBy!]! = [PRIMARY_KEY_ASC] - ): MeterSourceEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query +"""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 } -"""All input for the create `OrgLimitAggregate` mutation.""" -input CreateOrgLimitAggregateInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `OrgLimitAggregate` to be created by this mutation.""" - orgLimitAggregate: OrgLimitAggregateInput! +"""Information about a unique constraint""" +type MetaUniqueConstraint { + fields: [MetaField!]! + name: String! } -"""The output of our create `OrgLimitAggregate` mutation.""" -type CreateOrgLimitAggregatePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String +""" +The root mutation type which contains root level fields which mutate data. +""" +type Mutation { + """Creates a single `AppLimit`.""" + createAppLimit( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAppLimitInput! + ): CreateAppLimitPayload - """The `OrgLimitAggregate` that was created by this mutation.""" - orgLimitAggregate: OrgLimitAggregate + """Creates a single `AppLimitCap`.""" + createAppLimitCap( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAppLimitCapInput! + ): CreateAppLimitCapPayload - """An edge for our `OrgLimitAggregate`. May be used by Relay 1.""" - orgLimitAggregateEdge( - """The method to use when ordering `OrgLimitAggregate`.""" - orderBy: [OrgLimitAggregateOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitAggregateEdge + """Creates a single `AppLimitCapsDefault`.""" + createAppLimitCapsDefault( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAppLimitCapsDefaultInput! + ): CreateAppLimitCapsDefaultPayload - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} + """Creates a single `AppLimitCredit`.""" + createAppLimitCredit( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAppLimitCreditInput! + ): CreateAppLimitCreditPayload -"""All input for the create `OrgLimitCap` mutation.""" -input CreateOrgLimitCapInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `OrgLimitCap` to be created by this mutation.""" - orgLimitCap: OrgLimitCapInput! -} - -"""The output of our create `OrgLimitCap` mutation.""" -type CreateOrgLimitCapPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgLimitCap` that was created by this mutation.""" - orgLimitCap: OrgLimitCap - - """An edge for our `OrgLimitCap`. May be used by Relay 1.""" - orgLimitCapEdge( - """The method to use when ordering `OrgLimitCap`.""" - orderBy: [OrgLimitCapOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitCapEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the create `OrgLimitCapsDefault` mutation.""" -input CreateOrgLimitCapsDefaultInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `OrgLimitCapsDefault` to be created by this mutation.""" - orgLimitCapsDefault: OrgLimitCapsDefaultInput! -} - -"""The output of our create `OrgLimitCapsDefault` mutation.""" -type CreateOrgLimitCapsDefaultPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgLimitCapsDefault` that was created by this mutation.""" - orgLimitCapsDefault: OrgLimitCapsDefault - - """An edge for our `OrgLimitCapsDefault`. May be used by Relay 1.""" - orgLimitCapsDefaultEdge( - """The method to use when ordering `OrgLimitCapsDefault`.""" - orderBy: [OrgLimitCapsDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitCapsDefaultEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the create `OrgLimitCredit` mutation.""" -input CreateOrgLimitCreditInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `OrgLimitCredit` to be created by this mutation.""" - orgLimitCredit: OrgLimitCreditInput! -} - -"""The output of our create `OrgLimitCredit` mutation.""" -type CreateOrgLimitCreditPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgLimitCredit` that was created by this mutation.""" - orgLimitCredit: OrgLimitCredit - - """An edge for our `OrgLimitCredit`. May be used by Relay 1.""" - orgLimitCreditEdge( - """The method to use when ordering `OrgLimitCredit`.""" - orderBy: [OrgLimitCreditOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitCreditEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the create `OrgLimitDefault` mutation.""" -input CreateOrgLimitDefaultInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `OrgLimitDefault` to be created by this mutation.""" - orgLimitDefault: OrgLimitDefaultInput! -} - -"""The output of our create `OrgLimitDefault` mutation.""" -type CreateOrgLimitDefaultPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgLimitDefault` that was created by this mutation.""" - orgLimitDefault: OrgLimitDefault - - """An edge for our `OrgLimitDefault`. May be used by Relay 1.""" - orgLimitDefaultEdge( - """The method to use when ordering `OrgLimitDefault`.""" - orderBy: [OrgLimitDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitDefaultEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the create `OrgLimitEvent` mutation.""" -input CreateOrgLimitEventInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `OrgLimitEvent` to be created by this mutation.""" - orgLimitEvent: OrgLimitEventInput! -} - -"""The output of our create `OrgLimitEvent` mutation.""" -type CreateOrgLimitEventPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgLimitEvent` that was created by this mutation.""" - orgLimitEvent: OrgLimitEvent - - """An edge for our `OrgLimitEvent`. May be used by Relay 1.""" - orgLimitEventEdge( - """The method to use when ordering `OrgLimitEvent`.""" - orderBy: [OrgLimitEventOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitEventEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the create `OrgLimit` mutation.""" -input CreateOrgLimitInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `OrgLimit` to be created by this mutation.""" - orgLimit: OrgLimitInput! -} - -"""The output of our create `OrgLimit` mutation.""" -type CreateOrgLimitPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgLimit` that was created by this mutation.""" - orgLimit: OrgLimit - - """An edge for our `OrgLimit`. May be used by Relay 1.""" - orgLimitEdge( - """The method to use when ordering `OrgLimit`.""" - orderBy: [OrgLimitOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the create `OrgLimitWarning` mutation.""" -input CreateOrgLimitWarningInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `OrgLimitWarning` to be created by this mutation.""" - orgLimitWarning: OrgLimitWarningInput! -} - -"""The output of our create `OrgLimitWarning` mutation.""" -type CreateOrgLimitWarningPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgLimitWarning` that was created by this mutation.""" - orgLimitWarning: OrgLimitWarning - - """An edge for our `OrgLimitWarning`. May be used by Relay 1.""" - orgLimitWarningEdge( - """The method to use when ordering `OrgLimitWarning`.""" - orderBy: [OrgLimitWarningOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitWarningEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the create `PlanCap` mutation.""" -input CreatePlanCapInput { - """ - An arbitrary 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 `PlanCap` to be created by this mutation.""" - planCap: PlanCapInput! -} - -"""The output of our create `PlanCap` mutation.""" -type CreatePlanCapPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `PlanCap` that was created by this mutation.""" - planCap: PlanCap - - """An edge for our `PlanCap`. May be used by Relay 1.""" - planCapEdge( - """The method to use when ordering `PlanCap`.""" - orderBy: [PlanCapOrderBy!]! = [PRIMARY_KEY_ASC] - ): PlanCapEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the create `Plan` mutation.""" -input CreatePlanInput { - """ - An arbitrary 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 `Plan` to be created by this mutation.""" - plan: PlanInput! -} - -"""All input for the create `PlanLimit` mutation.""" -input CreatePlanLimitInput { - """ - An arbitrary 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 `PlanLimit` to be created by this mutation.""" - planLimit: PlanLimitInput! -} - -"""The output of our create `PlanLimit` mutation.""" -type CreatePlanLimitPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `PlanLimit` that was created by this mutation.""" - planLimit: PlanLimit - - """An edge for our `PlanLimit`. May be used by Relay 1.""" - planLimitEdge( - """The method to use when ordering `PlanLimit`.""" - orderBy: [PlanLimitOrderBy!]! = [PRIMARY_KEY_ASC] - ): PlanLimitEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the create `PlanMeterLimit` mutation.""" -input CreatePlanMeterLimitInput { - """ - An arbitrary 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 `PlanMeterLimit` to be created by this mutation.""" - planMeterLimit: PlanMeterLimitInput! -} - -"""The output of our create `PlanMeterLimit` mutation.""" -type CreatePlanMeterLimitPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `PlanMeterLimit` that was created by this mutation.""" - planMeterLimit: PlanMeterLimit - - """An edge for our `PlanMeterLimit`. May be used by Relay 1.""" - planMeterLimitEdge( - """The method to use when ordering `PlanMeterLimit`.""" - orderBy: [PlanMeterLimitOrderBy!]! = [PRIMARY_KEY_ASC] - ): PlanMeterLimitEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the create `PlanOverride` mutation.""" -input CreatePlanOverrideInput { - """ - An arbitrary 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 `PlanOverride` to be created by this mutation.""" - planOverride: PlanOverrideInput! -} - -"""The output of our create `PlanOverride` mutation.""" -type CreatePlanOverridePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `PlanOverride` that was created by this mutation.""" - planOverride: PlanOverride - - """An edge for our `PlanOverride`. May be used by Relay 1.""" - planOverrideEdge( - """The method to use when ordering `PlanOverride`.""" - orderBy: [PlanOverrideOrderBy!]! = [PRIMARY_KEY_ASC] - ): PlanOverrideEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""The output of our create `Plan` mutation.""" -type CreatePlanPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `Plan` that was created by this mutation.""" - plan: Plan - - """An edge for our `Plan`. May be used by Relay 1.""" - planEdge( - """The method to use when ordering `Plan`.""" - orderBy: [PlanOrderBy!]! = [PRIMARY_KEY_ASC] - ): PlanEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the create `PlanPricing` mutation.""" -input CreatePlanPricingInput { - """ - An arbitrary 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 `PlanPricing` to be created by this mutation.""" - planPricing: PlanPricingInput! -} - -"""The output of our create `PlanPricing` mutation.""" -type CreatePlanPricingPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `PlanPricing` that was created by this mutation.""" - planPricing: PlanPricing - - """An edge for our `PlanPricing`. May be used by Relay 1.""" - planPricingEdge( - """The method to use when ordering `PlanPricing`.""" - orderBy: [PlanPricingOrderBy!]! = [PRIMARY_KEY_ASC] - ): PlanPricingEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the create `PlanSubscription` mutation.""" -input CreatePlanSubscriptionInput { - """ - An arbitrary 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 `PlanSubscription` to be created by this mutation.""" - planSubscription: PlanSubscriptionInput! -} - -"""The output of our create `PlanSubscription` mutation.""" -type CreatePlanSubscriptionPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `PlanSubscription` that was created by this mutation.""" - planSubscription: PlanSubscription - - """An edge for our `PlanSubscription`. May be used by Relay 1.""" - planSubscriptionEdge( - """The method to use when ordering `PlanSubscription`.""" - orderBy: [PlanSubscriptionOrderBy!]! = [PRIMARY_KEY_ASC] - ): PlanSubscriptionEdge - - """ - 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 - -""" -A point in time as described by the [ISO -8601](https://en.wikipedia.org/wiki/ISO_8601) and, if it has a timezone, [RFC -3339](https://datatracker.ietf.org/doc/html/rfc3339) standards. Input values -that do not conform to both ISO 8601 and RFC 3339 may be coerced, which may lead -to unexpected results. -""" -scalar Datetime - -""" -A filter to be used against Datetime fields. All fields are combined with a logical ‘and.’ -""" -input DatetimeFilter { - """ - Not equal to the specified value, treating null like an ordinary value. - """ - distinctFrom: Datetime - - """Equal to the specified value.""" - equalTo: Datetime - - """Greater than the specified value.""" - greaterThan: Datetime - - """Greater than or equal to the specified value.""" - greaterThanOrEqualTo: Datetime - - """Included in the specified list.""" - in: [Datetime!] - - """ - Is null (if `true` is specified) or is not null (if `false` is specified). - """ - isNull: Boolean - - """Less than the specified value.""" - lessThan: Datetime - - """Less than or equal to the specified value.""" - lessThanOrEqualTo: Datetime - - """Equal to the specified value, treating null like an ordinary value.""" - notDistinctFrom: Datetime - - """Not equal to the specified value.""" - notEqualTo: Datetime - - """Not included in the specified list.""" - notIn: [Datetime!] -} - -"""All input for the `deleteAppAchievementReward` mutation.""" -input DeleteAppAchievementRewardInput { - """ - An arbitrary 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 `AppAchievementReward` mutation.""" -type DeleteAppAchievementRewardPayload { - """The `AppAchievementReward` that was deleted by this mutation.""" - appAchievementReward: AppAchievementReward - - """An edge for our `AppAchievementReward`. May be used by Relay 1.""" - appAchievementRewardEdge( - """The method to use when ordering `AppAchievementReward`.""" - orderBy: [AppAchievementRewardOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppAchievementRewardEdge - - """ - The 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 `deleteAppEventAggregate` mutation.""" -input DeleteAppEventAggregateInput { - """ - An arbitrary 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 `AppEventAggregate` mutation.""" -type DeleteAppEventAggregatePayload { - """The `AppEventAggregate` that was deleted by this mutation.""" - appEventAggregate: AppEventAggregate - - """An edge for our `AppEventAggregate`. May be used by Relay 1.""" - appEventAggregateEdge( - """The method to use when ordering `AppEventAggregate`.""" - orderBy: [AppEventAggregateOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppEventAggregateEdge - - """ - The 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 `deleteAppEvent` mutation.""" -input DeleteAppEventInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - createdAt: Datetime! - - """Unique identifier for each event (uuidv7 provides temporal ordering)""" - id: UUID! -} - -"""The output of our delete `AppEvent` mutation.""" -type DeleteAppEventPayload { - """The `AppEvent` that was deleted by this mutation.""" - appEvent: AppEvent - - """An edge for our `AppEvent`. May be used by Relay 1.""" - appEventEdge( - """The method to use when ordering `AppEvent`.""" - orderBy: [AppEventOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppEventEdge - - """ - The 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 `deleteAppEventType` mutation.""" -input DeleteAppEventTypeInput { - """ - An arbitrary 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 `AppEventType` mutation.""" -type DeleteAppEventTypePayload { - """The `AppEventType` that was deleted by this mutation.""" - appEventType: AppEventType - - """An edge for our `AppEventType`. May be used by Relay 1.""" - appEventTypeEdge( - """The method to use when ordering `AppEventType`.""" - orderBy: [AppEventTypeOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppEventTypeEdge - - """ - The 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 `deleteAppLevelGrant` mutation.""" -input DeleteAppLevelGrantInput { - """ - An arbitrary 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 `AppLevelGrant` mutation.""" -type DeleteAppLevelGrantPayload { - """The `AppLevelGrant` that was deleted by this mutation.""" - appLevelGrant: AppLevelGrant - - """An edge for our `AppLevelGrant`. May be used by Relay 1.""" - appLevelGrantEdge( - """The method to use when ordering `AppLevelGrant`.""" - orderBy: [AppLevelGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLevelGrantEdge - - """ - The 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 `deleteAppLevel` mutation.""" -input DeleteAppLevelInput { - """ - An arbitrary 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 `AppLevel` mutation.""" -type DeleteAppLevelPayload { - """The `AppLevel` that was deleted by this mutation.""" - appLevel: AppLevel - - """An edge for our `AppLevel`. May be used by Relay 1.""" - appLevelEdge( - """The method to use when ordering `AppLevel`.""" - orderBy: [AppLevelOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLevelEdge - - """ - The 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 `deleteAppLevelRequirement` mutation.""" -input DeleteAppLevelRequirementInput { - """ - An arbitrary 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 `AppLevelRequirement` mutation.""" -type DeleteAppLevelRequirementPayload { - """The `AppLevelRequirement` that was deleted by this mutation.""" - appLevelRequirement: AppLevelRequirement - - """An edge for our `AppLevelRequirement`. May be used by Relay 1.""" - appLevelRequirementEdge( - """The method to use when ordering `AppLevelRequirement`.""" - orderBy: [AppLevelRequirementOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLevelRequirementEdge - - """ - The 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 `deleteAppLimitCap` mutation.""" -input DeleteAppLimitCapInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `AppLimitCap` mutation.""" -type DeleteAppLimitCapPayload { - """The `AppLimitCap` that was deleted by this mutation.""" - appLimitCap: AppLimitCap - - """An edge for our `AppLimitCap`. May be used by Relay 1.""" - appLimitCapEdge( - """The method to use when ordering `AppLimitCap`.""" - orderBy: [AppLimitCapOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitCapEdge - - """ - The 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 `deleteAppLimitCapsDefault` mutation.""" -input DeleteAppLimitCapsDefaultInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `AppLimitCapsDefault` mutation.""" -type DeleteAppLimitCapsDefaultPayload { - """The `AppLimitCapsDefault` that was deleted by this mutation.""" - appLimitCapsDefault: AppLimitCapsDefault - - """An edge for our `AppLimitCapsDefault`. May be used by Relay 1.""" - appLimitCapsDefaultEdge( - """The method to use when ordering `AppLimitCapsDefault`.""" - orderBy: [AppLimitCapsDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitCapsDefaultEdge - - """ - The 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 `deleteAppLimitCreditCode` mutation.""" -input DeleteAppLimitCreditCodeInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""All input for the `deleteAppLimitCreditCodeItem` mutation.""" -input DeleteAppLimitCreditCodeItemInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `AppLimitCreditCodeItem` mutation.""" -type DeleteAppLimitCreditCodeItemPayload { - """The `AppLimitCreditCodeItem` that was deleted by this mutation.""" - appLimitCreditCodeItem: AppLimitCreditCodeItem - - """An edge for our `AppLimitCreditCodeItem`. May be used by Relay 1.""" - appLimitCreditCodeItemEdge( - """The method to use when ordering `AppLimitCreditCodeItem`.""" - orderBy: [AppLimitCreditCodeItemOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitCreditCodeItemEdge - - """ - The 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 output of our delete `AppLimitCreditCode` mutation.""" -type DeleteAppLimitCreditCodePayload { - """The `AppLimitCreditCode` that was deleted by this mutation.""" - appLimitCreditCode: AppLimitCreditCode - - """An edge for our `AppLimitCreditCode`. May be used by Relay 1.""" - appLimitCreditCodeEdge( - """The method to use when ordering `AppLimitCreditCode`.""" - orderBy: [AppLimitCreditCodeOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitCreditCodeEdge - - """ - The 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 `deleteAppLimitCredit` mutation.""" -input DeleteAppLimitCreditInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `AppLimitCredit` mutation.""" -type DeleteAppLimitCreditPayload { - """The `AppLimitCredit` that was deleted by this mutation.""" - appLimitCredit: AppLimitCredit - - """An edge for our `AppLimitCredit`. May be used by Relay 1.""" - appLimitCreditEdge( - """The method to use when ordering `AppLimitCredit`.""" - orderBy: [AppLimitCreditOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitCreditEdge - - """ - The 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 `deleteAppLimitCreditRedemption` mutation.""" -input DeleteAppLimitCreditRedemptionInput { - """ - An arbitrary 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 `AppLimitCreditRedemption` mutation.""" -type DeleteAppLimitCreditRedemptionPayload { - """The `AppLimitCreditRedemption` that was deleted by this mutation.""" - appLimitCreditRedemption: AppLimitCreditRedemption - - """An edge for our `AppLimitCreditRedemption`. May be used by Relay 1.""" - appLimitCreditRedemptionEdge( - """The method to use when ordering `AppLimitCreditRedemption`.""" - orderBy: [AppLimitCreditRedemptionOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitCreditRedemptionEdge - - """ - The 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 `deleteAppLimitDefault` mutation.""" -input DeleteAppLimitDefaultInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `AppLimitDefault` mutation.""" -type DeleteAppLimitDefaultPayload { - """The `AppLimitDefault` that was deleted by this mutation.""" - appLimitDefault: AppLimitDefault - - """An edge for our `AppLimitDefault`. May be used by Relay 1.""" - appLimitDefaultEdge( - """The method to use when ordering `AppLimitDefault`.""" - orderBy: [AppLimitDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitDefaultEdge - - """ - The 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 `deleteAppLimitEvent` mutation.""" -input DeleteAppLimitEventInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - createdAt: Datetime! - - """Unique identifier for each limit event""" - id: UUID! -} - -"""The output of our delete `AppLimitEvent` mutation.""" -type DeleteAppLimitEventPayload { - """The `AppLimitEvent` that was deleted by this mutation.""" - appLimitEvent: AppLimitEvent - - """An edge for our `AppLimitEvent`. May be used by Relay 1.""" - appLimitEventEdge( - """The method to use when ordering `AppLimitEvent`.""" - orderBy: [AppLimitEventOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitEventEdge - - """ - The 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 `deleteAppLimit` mutation.""" -input DeleteAppLimitInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `AppLimit` mutation.""" -type DeleteAppLimitPayload { - """The `AppLimit` that was deleted by this mutation.""" - appLimit: AppLimit - - """An edge for our `AppLimit`. May be used by Relay 1.""" - appLimitEdge( - """The method to use when ordering `AppLimit`.""" - orderBy: [AppLimitOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitEdge - - """ - The 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 `deleteAppLimitWarning` mutation.""" -input DeleteAppLimitWarningInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `AppLimitWarning` mutation.""" -type DeleteAppLimitWarningPayload { - """The `AppLimitWarning` that was deleted by this mutation.""" - appLimitWarning: AppLimitWarning - - """An edge for our `AppLimitWarning`. May be used by Relay 1.""" - appLimitWarningEdge( - """The method to use when ordering `AppLimitWarning`.""" - orderBy: [AppLimitWarningOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitWarningEdge - - """ - The 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 `deleteBillingUsageSummary` mutation.""" -input DeleteBillingUsageSummaryInput { - """ - An arbitrary 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 `BillingUsageSummary` mutation.""" -type DeleteBillingUsageSummaryPayload { - """The `BillingUsageSummary` that was deleted by this mutation.""" - billingUsageSummary: BillingUsageSummary - - """An edge for our `BillingUsageSummary`. May be used by Relay 1.""" - billingUsageSummaryEdge( - """The method to use when ordering `BillingUsageSummary`.""" - orderBy: [BillingUsageSummaryOrderBy!]! = [PRIMARY_KEY_ASC] - ): BillingUsageSummaryEdge - - """ - The 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 `deleteLedger` mutation.""" -input DeleteLedgerInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - createdAt: Datetime! - - """Unique identifier for each ledger entry""" - id: UUID! -} - -"""The output of our delete `Ledger` mutation.""" -type DeleteLedgerPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `Ledger` that was deleted by this mutation.""" - ledger: Ledger - - """An edge for our `Ledger`. May be used by Relay 1.""" - ledgerEdge( - """The method to use when ordering `Ledger`.""" - orderBy: [LedgerOrderBy!]! = [PRIMARY_KEY_ASC] - ): LedgerEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the `deleteMeterCredit` mutation.""" -input DeleteMeterCreditInput { - """ - An arbitrary 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 `MeterCredit` mutation.""" -type DeleteMeterCreditPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `MeterCredit` that was deleted by this mutation.""" - meterCredit: MeterCredit - - """An edge for our `MeterCredit`. May be used by Relay 1.""" - meterCreditEdge( - """The method to use when ordering `MeterCredit`.""" - orderBy: [MeterCreditOrderBy!]! = [PRIMARY_KEY_ASC] - ): MeterCreditEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the `deleteMeterDefault` mutation.""" -input DeleteMeterDefaultInput { - """ - An arbitrary 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 `MeterDefault` mutation.""" -type DeleteMeterDefaultPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `MeterDefault` that was deleted by this mutation.""" - meterDefault: MeterDefault - - """An edge for our `MeterDefault`. May be used by Relay 1.""" - meterDefaultEdge( - """The method to use when ordering `MeterDefault`.""" - orderBy: [MeterDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): MeterDefaultEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the `deleteMeter` mutation.""" -input DeleteMeterInput { - """ - An arbitrary 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 `Meter` mutation.""" -type DeleteMeterPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `Meter` that was deleted by this mutation.""" - meter: Meter - - """An edge for our `Meter`. May be used by Relay 1.""" - meterEdge( - """The method to use when ordering `Meter`.""" - orderBy: [MeterOrderBy!]! = [PRIMARY_KEY_ASC] - ): MeterEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the `deleteMeterSource` mutation.""" -input DeleteMeterSourceInput { - """ - An arbitrary 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 `MeterSource` mutation.""" -type DeleteMeterSourcePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `MeterSource` that was deleted by this mutation.""" - meterSource: MeterSource - - """An edge for our `MeterSource`. May be used by Relay 1.""" - meterSourceEdge( - """The method to use when ordering `MeterSource`.""" - orderBy: [MeterSourceOrderBy!]! = [PRIMARY_KEY_ASC] - ): MeterSourceEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the `deleteOrgLimitAggregate` mutation.""" -input DeleteOrgLimitAggregateInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `OrgLimitAggregate` mutation.""" -type DeleteOrgLimitAggregatePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgLimitAggregate` that was deleted by this mutation.""" - orgLimitAggregate: OrgLimitAggregate - - """An edge for our `OrgLimitAggregate`. May be used by Relay 1.""" - orgLimitAggregateEdge( - """The method to use when ordering `OrgLimitAggregate`.""" - orderBy: [OrgLimitAggregateOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitAggregateEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the `deleteOrgLimitCap` mutation.""" -input DeleteOrgLimitCapInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `OrgLimitCap` mutation.""" -type DeleteOrgLimitCapPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgLimitCap` that was deleted by this mutation.""" - orgLimitCap: OrgLimitCap - - """An edge for our `OrgLimitCap`. May be used by Relay 1.""" - orgLimitCapEdge( - """The method to use when ordering `OrgLimitCap`.""" - orderBy: [OrgLimitCapOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitCapEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the `deleteOrgLimitCapsDefault` mutation.""" -input DeleteOrgLimitCapsDefaultInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `OrgLimitCapsDefault` mutation.""" -type DeleteOrgLimitCapsDefaultPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgLimitCapsDefault` that was deleted by this mutation.""" - orgLimitCapsDefault: OrgLimitCapsDefault - - """An edge for our `OrgLimitCapsDefault`. May be used by Relay 1.""" - orgLimitCapsDefaultEdge( - """The method to use when ordering `OrgLimitCapsDefault`.""" - orderBy: [OrgLimitCapsDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitCapsDefaultEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the `deleteOrgLimitCredit` mutation.""" -input DeleteOrgLimitCreditInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `OrgLimitCredit` mutation.""" -type DeleteOrgLimitCreditPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgLimitCredit` that was deleted by this mutation.""" - orgLimitCredit: OrgLimitCredit - - """An edge for our `OrgLimitCredit`. May be used by Relay 1.""" - orgLimitCreditEdge( - """The method to use when ordering `OrgLimitCredit`.""" - orderBy: [OrgLimitCreditOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitCreditEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the `deleteOrgLimitDefault` mutation.""" -input DeleteOrgLimitDefaultInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `OrgLimitDefault` mutation.""" -type DeleteOrgLimitDefaultPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgLimitDefault` that was deleted by this mutation.""" - orgLimitDefault: OrgLimitDefault - - """An edge for our `OrgLimitDefault`. May be used by Relay 1.""" - orgLimitDefaultEdge( - """The method to use when ordering `OrgLimitDefault`.""" - orderBy: [OrgLimitDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitDefaultEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the `deleteOrgLimitEvent` mutation.""" -input DeleteOrgLimitEventInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - createdAt: Datetime! - - """Unique identifier for each limit event""" - id: UUID! -} - -"""The output of our delete `OrgLimitEvent` mutation.""" -type DeleteOrgLimitEventPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgLimitEvent` that was deleted by this mutation.""" - orgLimitEvent: OrgLimitEvent - - """An edge for our `OrgLimitEvent`. May be used by Relay 1.""" - orgLimitEventEdge( - """The method to use when ordering `OrgLimitEvent`.""" - orderBy: [OrgLimitEventOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitEventEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the `deleteOrgLimit` mutation.""" -input DeleteOrgLimitInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `OrgLimit` mutation.""" -type DeleteOrgLimitPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgLimit` that was deleted by this mutation.""" - orgLimit: OrgLimit - - """An edge for our `OrgLimit`. May be used by Relay 1.""" - orgLimitEdge( - """The method to use when ordering `OrgLimit`.""" - orderBy: [OrgLimitOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the `deleteOrgLimitWarning` mutation.""" -input DeleteOrgLimitWarningInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `OrgLimitWarning` mutation.""" -type DeleteOrgLimitWarningPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgLimitWarning` that was deleted by this mutation.""" - orgLimitWarning: OrgLimitWarning - - """An edge for our `OrgLimitWarning`. May be used by Relay 1.""" - orgLimitWarningEdge( - """The method to use when ordering `OrgLimitWarning`.""" - orderBy: [OrgLimitWarningOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitWarningEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the `deletePlanCap` mutation.""" -input DeletePlanCapInput { - """ - An arbitrary 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 `PlanCap` mutation.""" -type DeletePlanCapPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `PlanCap` that was deleted by this mutation.""" - planCap: PlanCap - - """An edge for our `PlanCap`. May be used by Relay 1.""" - planCapEdge( - """The method to use when ordering `PlanCap`.""" - orderBy: [PlanCapOrderBy!]! = [PRIMARY_KEY_ASC] - ): PlanCapEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the `deletePlan` mutation.""" -input DeletePlanInput { - """ - An arbitrary 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! -} - -"""All input for the `deletePlanLimit` mutation.""" -input DeletePlanLimitInput { - """ - An arbitrary 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 `PlanLimit` mutation.""" -type DeletePlanLimitPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `PlanLimit` that was deleted by this mutation.""" - planLimit: PlanLimit - - """An edge for our `PlanLimit`. May be used by Relay 1.""" - planLimitEdge( - """The method to use when ordering `PlanLimit`.""" - orderBy: [PlanLimitOrderBy!]! = [PRIMARY_KEY_ASC] - ): PlanLimitEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the `deletePlanMeterLimit` mutation.""" -input DeletePlanMeterLimitInput { - """ - An arbitrary 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 `PlanMeterLimit` mutation.""" -type DeletePlanMeterLimitPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `PlanMeterLimit` that was deleted by this mutation.""" - planMeterLimit: PlanMeterLimit - - """An edge for our `PlanMeterLimit`. May be used by Relay 1.""" - planMeterLimitEdge( - """The method to use when ordering `PlanMeterLimit`.""" - orderBy: [PlanMeterLimitOrderBy!]! = [PRIMARY_KEY_ASC] - ): PlanMeterLimitEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the `deletePlanOverride` mutation.""" -input DeletePlanOverrideInput { - """ - An arbitrary 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 `PlanOverride` mutation.""" -type DeletePlanOverridePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `PlanOverride` that was deleted by this mutation.""" - planOverride: PlanOverride - - """An edge for our `PlanOverride`. May be used by Relay 1.""" - planOverrideEdge( - """The method to use when ordering `PlanOverride`.""" - orderBy: [PlanOverrideOrderBy!]! = [PRIMARY_KEY_ASC] - ): PlanOverrideEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""The output of our delete `Plan` mutation.""" -type DeletePlanPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `Plan` that was deleted by this mutation.""" - plan: Plan - - """An edge for our `Plan`. May be used by Relay 1.""" - planEdge( - """The method to use when ordering `Plan`.""" - orderBy: [PlanOrderBy!]! = [PRIMARY_KEY_ASC] - ): PlanEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the `deletePlanPricing` mutation.""" -input DeletePlanPricingInput { - """ - An arbitrary 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 `PlanPricing` mutation.""" -type DeletePlanPricingPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `PlanPricing` that was deleted by this mutation.""" - planPricing: PlanPricing - - """An edge for our `PlanPricing`. May be used by Relay 1.""" - planPricingEdge( - """The method to use when ordering `PlanPricing`.""" - orderBy: [PlanPricingOrderBy!]! = [PRIMARY_KEY_ASC] - ): PlanPricingEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the `deletePlanSubscription` mutation.""" -input DeletePlanSubscriptionInput { - """ - An arbitrary 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 `PlanSubscription` mutation.""" -type DeletePlanSubscriptionPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `PlanSubscription` that was deleted by this mutation.""" - planSubscription: PlanSubscription - - """An edge for our `PlanSubscription`. May be used by Relay 1.""" - planSubscriptionEdge( - """The method to use when ordering `PlanSubscription`.""" - orderBy: [PlanSubscriptionOrderBy!]! = [PRIMARY_KEY_ASC] - ): PlanSubscriptionEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the `grantAchievement` mutation.""" -input GrantAchievementInput { - actorId: UUID - - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - levelName: String -} - -"""The output of our `grantAchievement` mutation.""" -type GrantAchievementPayload { - """ - The 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 -} - -""" -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 - - """Equal to the specified value.""" - equalTo: Int - - """Greater than the specified value.""" - greaterThan: Int - - """Greater than or equal to the specified value.""" - greaterThanOrEqualTo: Int - - """Included in the specified list.""" - in: [Int!] - - """ - Is null (if `true` is specified) or is not null (if `false` is specified). - """ - isNull: Boolean - - """Less than the specified value.""" - lessThan: Int - - """Less than or equal to the specified value.""" - lessThanOrEqualTo: Int - - """Equal to the specified value, treating null like an ordinary value.""" - notDistinctFrom: Int - - """Not equal to the specified value.""" - notEqualTo: Int - - """Not included in the specified list.""" - notIn: [Int!] -} - -""" -An interval of time that has passed where the smallest distinct unit is a second. -""" -type Interval { - """A quantity of days.""" - days: Int - - """A quantity of hours.""" - hours: Int - - """A quantity of minutes.""" - minutes: Int - - """A quantity of months.""" - months: Int - - """ - A quantity of seconds. This is the only non-integer field, as all the other - fields will dump their overflow into a smaller unit of time. Intervals don’t - have a smaller unit than seconds. - """ - seconds: Float - - """A quantity of years.""" - years: Int -} - -""" -A filter to be used against Interval fields. All fields are combined with a logical ‘and.’ -""" -input IntervalFilter { - """ - Not equal to the specified value, treating null like an ordinary value. - """ - distinctFrom: IntervalInput - - """Equal to the specified value.""" - equalTo: IntervalInput - - """Greater than the specified value.""" - greaterThan: IntervalInput - - """Greater than or equal to the specified value.""" - greaterThanOrEqualTo: IntervalInput - - """Included in the specified list.""" - in: [IntervalInput!] - - """ - Is null (if `true` is specified) or is not null (if `false` is specified). - """ - isNull: Boolean - - """Less than the specified value.""" - lessThan: IntervalInput - - """Less than or equal to the specified value.""" - lessThanOrEqualTo: IntervalInput - - """Equal to the specified value, treating null like an ordinary value.""" - notDistinctFrom: IntervalInput - - """Not equal to the specified value.""" - notEqualTo: IntervalInput - - """Not included in the specified list.""" - notIn: [IntervalInput!] -} - -""" -An interval of time that has passed where the smallest distinct unit is a second. -""" -input IntervalInput { - """A quantity of days.""" - days: Int - - """A quantity of hours.""" - hours: Int - - """A quantity of minutes.""" - minutes: Int - - """A quantity of months.""" - months: Int - - """ - A quantity of seconds. This is the only non-integer field, as all the other - fields will dump their overflow into a smaller unit of time. Intervals don’t - have a smaller unit than seconds. - """ - seconds: Float - - """A quantity of years.""" - years: Int -} - -""" -Represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). -""" -scalar JSON - -""" -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 - - """Contains the specified JSON.""" - contains: JSON - - """Contains all of the specified keys.""" - containsAllKeys: [String!] - - """Contains any of the specified keys.""" - containsAnyKeys: [String!] - - """Contains the specified key.""" - containsKey: String - - """ - Not equal to the specified value, treating null like an ordinary value. - """ - distinctFrom: JSON - - """Equal to the specified value.""" - equalTo: JSON - - """Greater than the specified value.""" - greaterThan: JSON - - """Greater than or equal to the specified value.""" - greaterThanOrEqualTo: JSON - - """Included in the specified list.""" - in: [JSON!] - - """ - Is null (if `true` is specified) or is not null (if `false` is specified). - """ - isNull: Boolean - - """Less than the specified value.""" - lessThan: JSON - - """Less than or equal to the specified value.""" - lessThanOrEqualTo: JSON - - """Equal to the specified value, treating null like an ordinary value.""" - notDistinctFrom: JSON - - """Not equal to the specified value.""" - notEqualTo: JSON - - """Not included in the specified list.""" - notIn: [JSON!] -} - -""" -Append-only event log for all billing events (usage, grants, adjustments) -""" -type Ledger { - createdAt: Datetime! - - """Change amount (positive = grant/credit, negative = consumption/debit)""" - delta: BigInt! - - """The entity this ledger entry belongs to""" - entityId: UUID! - - """Entity type prefix (org, team, app, etc.) for interpreting entity_id""" - entityType: String - - """ - Specific type: increment, decrement, credit_purchase, plan_grant, reset, adjustment - """ - entryType: String! - - """Unique identifier for each ledger entry""" - id: UUID! - - """Classification: usage, grant, adjustment, refund""" - ledgerClass: String! - - """Additional context (reason, source, Stripe receipt, etc.)""" - metadata: JSON - - """Which meter this entry is for""" - meterSlug: String! - - """Resolved billable organization via get_organization_id""" - organizationId: UUID - - """Running total of usage after this entry""" - usageAfter: BigInt! -} - -"""A connection to a list of `Ledger` values.""" -type LedgerConnection { - """ - A list of edges which contains the `Ledger` and cursor to aid in pagination. - """ - edges: [LedgerEdge]! - - """A list of `Ledger` objects.""" - nodes: [Ledger]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `Ledger` you could get from the connection.""" - totalCount: Int! -} - -"""A `Ledger` edge in the connection.""" -type LedgerEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `Ledger` at the end of the edge.""" - node: Ledger -} - -""" -A filter to be used against `Ledger` object types. All fields are combined with a logical ‘and.’ -""" -input LedgerFilter { - """Checks for all expressions in this list.""" - and: [LedgerFilter!] - - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter - - """Filter by the object’s `delta` field.""" - delta: BigIntFilter - - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter - - """Filter by the object’s `entityType` field.""" - entityType: StringFilter - - """Filter by the object’s `entryType` field.""" - entryType: StringFilter - - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `ledgerClass` field.""" - ledgerClass: StringFilter - - """Filter by the object’s `metadata` field.""" - metadata: JSONFilter - - """Filter by the object’s `meterSlug` field.""" - meterSlug: StringFilter - - """Negates the expression.""" - not: LedgerFilter - - """Checks for any expressions in this list.""" - or: [LedgerFilter!] - - """Filter by the object’s `organizationId` field.""" - organizationId: UUIDFilter - - """Filter by the object’s `usageAfter` field.""" - usageAfter: BigIntFilter -} - -"""An input for mutations affecting `Ledger`""" -input LedgerInput { - createdAt: Datetime - - """Change amount (positive = grant/credit, negative = consumption/debit)""" - delta: BigInt! - - """The entity this ledger entry belongs to""" - entityId: UUID! - - """Entity type prefix (org, team, app, etc.) for interpreting entity_id""" - entityType: String - - """ - Specific type: increment, decrement, credit_purchase, plan_grant, reset, adjustment - """ - entryType: String - - """Unique identifier for each ledger entry""" - id: UUID - - """Classification: usage, grant, adjustment, refund""" - ledgerClass: String - - """Additional context (reason, source, Stripe receipt, etc.)""" - metadata: JSON - - """Which meter this entry is for""" - meterSlug: String! - - """Resolved billable organization via get_organization_id""" - organizationId: UUID - - """Running total of usage after this entry""" - usageAfter: BigInt! -} - -"""Methods to use when ordering `Ledger`.""" -enum LedgerOrderBy { - CREATED_AT_ASC - CREATED_AT_DESC - DELTA_ASC - DELTA_DESC - ENTITY_ID_ASC - ENTITY_ID_DESC - ENTITY_TYPE_ASC - ENTITY_TYPE_DESC - ENTRY_TYPE_ASC - ENTRY_TYPE_DESC - ID_ASC - ID_DESC - LEDGER_CLASS_ASC - LEDGER_CLASS_DESC - METADATA_ASC - METADATA_DESC - METER_SLUG_ASC - METER_SLUG_DESC - NATURAL - ORGANIZATION_ID_ASC - ORGANIZATION_ID_DESC - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - USAGE_AFTER_ASC - USAGE_AFTER_DESC -} - -""" -Represents an update to a `Ledger`. Fields that are set will be updated. -""" -input LedgerPatch { - createdAt: Datetime - - """Change amount (positive = grant/credit, negative = consumption/debit)""" - delta: BigInt - - """The entity this ledger entry belongs to""" - entityId: UUID - - """Entity type prefix (org, team, app, etc.) for interpreting entity_id""" - entityType: String - - """ - Specific type: increment, decrement, credit_purchase, plan_grant, reset, adjustment - """ - entryType: String - - """Unique identifier for each ledger entry""" - id: UUID - - """Classification: usage, grant, adjustment, refund""" - ledgerClass: String - - """Additional context (reason, source, Stripe receipt, etc.)""" - metadata: JSON - - """Which meter this entry is for""" - meterSlug: String - - """Resolved billable organization via get_organization_id""" - organizationId: UUID - - """Running total of usage after this entry""" - usageAfter: BigInt -} - -"""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! -} - -""" -Defines billable meters (what to track: quotas, feature flags, credit pools) -""" -type Meter { - """ - How usage is aggregated: cumulative (sum over period) or peak (max watermark) - """ - aggregation: String! - - """ - Slug of the category pool meter this meter belongs to. When set, usage overflow charges the category pool before falling through to universal credits. NULL means skip category pool and fall through directly to universal. - """ - categoryMeter: String - - """ - Universal credits consumed per unit of this meter. NULL disables universal credit fallback. - """ - creditCost: Int - - """Human-readable name for the meter""" - displayName: String - id: UUID! - - """Whether this meter is currently active""" - isActive: Boolean - - """Reads and enables pagination through a set of `MeterCredit`.""" - meterCredits( - """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 `MeterCredit`.""" - orderBy: [MeterCreditOrderBy!] = [PRIMARY_KEY_ASC] - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: MeterCreditFilter - ): MeterCreditConnection! - - """ - Type of meter: quota (consumable), boolean (feature flag), or usage_pool (category aggregator) - """ - meterType: String! - - """ - Reset cadence for this meter (e.g. 1 month, 1 year). NULL means no periodic reset. - """ - periodInterval: Interval - - """ - Maximum unused units that carry forward on rollover reset. NULL means unlimited rollover. - """ - rolloverCap: BigInt - - """Unique identifier for the meter (e.g. api_requests, storage_gb, seats)""" - slug: String! - - """ - Unit of measurement for this meter (e.g. tokens, characters, audio_seconds, pages, images, megapixels, bytes, requests, compute_ms, credits) - """ - unit: String -} - -"""A connection to a list of `Meter` values.""" -type MeterConnection { - """ - A list of edges which contains the `Meter` and cursor to aid in pagination. - """ - edges: [MeterEdge]! - - """A list of `Meter` objects.""" - nodes: [Meter]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `Meter` you could get from the connection.""" - totalCount: Int! -} - -""" -Append-only ledger of credit grants for billing meters that automatically update balances -""" -type MeterCredit { - """Number of credits to grant (positive to add, negative to revoke)""" - amount: BigInt! - - """When this credit was granted""" - createdAt: Datetime! - - """ - Credit behavior: permanent (survives reset), period (zeroed on reset), or rollover (unused portion carries forward) - """ - creditType: String! - - """Entity this credit applies to""" - entityId: UUID! - - """Membership prefix identifying the entity kind (org, team, app)""" - entityType: String - - """When this credit expires. NULL means the credit never expires.""" - expiresAt: Datetime - id: UUID! - - """Reads a single `Meter` that is related to this `MeterCredit`.""" - meter: Meter - - """FK to meters — which meter definition this credit applies to""" - meterId: UUID! - - """Resolved billable organization via get_organization_id""" - organizationId: UUID - - """Optional reason for the credit grant (promo code, admin grant, etc.)""" - reason: String -} - -"""A connection to a list of `MeterCredit` values.""" -type MeterCreditConnection { - """ - A list of edges which contains the `MeterCredit` and cursor to aid in pagination. - """ - edges: [MeterCreditEdge]! - - """A list of `MeterCredit` objects.""" - nodes: [MeterCredit]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `MeterCredit` you could get from the connection.""" - totalCount: Int! -} - -"""A `MeterCredit` edge in the connection.""" -type MeterCreditEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `MeterCredit` at the end of the edge.""" - node: MeterCredit -} - -""" -A filter to be used against `MeterCredit` object types. All fields are combined with a logical ‘and.’ -""" -input MeterCreditFilter { - """Filter by the object’s `amount` field.""" - amount: BigIntFilter - - """Checks for all expressions in this list.""" - and: [MeterCreditFilter!] - - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter - - """Filter by the object’s `creditType` field.""" - creditType: StringFilter - - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter - - """Filter by the object’s `entityType` field.""" - entityType: StringFilter - - """Filter by the object’s `expiresAt` field.""" - expiresAt: DatetimeFilter - - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `meter` relation.""" - meter: MeterFilter - - """Filter by the object’s `meterId` field.""" - meterId: UUIDFilter - - """Negates the expression.""" - not: MeterCreditFilter - - """Checks for any expressions in this list.""" - or: [MeterCreditFilter!] - - """Filter by the object’s `organizationId` field.""" - organizationId: UUIDFilter - - """Filter by the object’s `reason` field.""" - reason: StringFilter -} - -"""An input for mutations affecting `MeterCredit`""" -input MeterCreditInput { - """Number of credits to grant (positive to add, negative to revoke)""" - amount: BigInt! - - """When this credit was granted""" - createdAt: Datetime - - """ - Credit behavior: permanent (survives reset), period (zeroed on reset), or rollover (unused portion carries forward) - """ - creditType: String - - """Entity this credit applies to""" - entityId: UUID! - - """Membership prefix identifying the entity kind (org, team, app)""" - entityType: String - - """When this credit expires. NULL means the credit never expires.""" - expiresAt: Datetime - id: UUID - - """FK to meters — which meter definition this credit applies to""" - meterId: UUID! - - """Resolved billable organization via get_organization_id""" - organizationId: UUID - - """Optional reason for the credit grant (promo code, admin grant, etc.)""" - reason: String -} - -"""Methods to use when ordering `MeterCredit`.""" -enum MeterCreditOrderBy { - AMOUNT_ASC - AMOUNT_DESC - CREATED_AT_ASC - CREATED_AT_DESC - CREDIT_TYPE_ASC - CREDIT_TYPE_DESC - ENTITY_ID_ASC - ENTITY_ID_DESC - ENTITY_TYPE_ASC - ENTITY_TYPE_DESC - EXPIRES_AT_ASC - EXPIRES_AT_DESC - ID_ASC - ID_DESC - METER_ID_ASC - METER_ID_DESC - NATURAL - ORGANIZATION_ID_ASC - ORGANIZATION_ID_DESC - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - REASON_ASC - REASON_DESC -} - -""" -Represents an update to a `MeterCredit`. Fields that are set will be updated. -""" -input MeterCreditPatch { - """Number of credits to grant (positive to add, negative to revoke)""" - amount: BigInt - - """When this credit was granted""" - createdAt: Datetime - - """ - Credit behavior: permanent (survives reset), period (zeroed on reset), or rollover (unused portion carries forward) - """ - creditType: String - - """Entity this credit applies to""" - entityId: UUID - - """Membership prefix identifying the entity kind (org, team, app)""" - entityType: String - - """When this credit expires. NULL means the credit never expires.""" - expiresAt: Datetime - id: UUID - - """FK to meters — which meter definition this credit applies to""" - meterId: UUID - - """Resolved billable organization via get_organization_id""" - organizationId: UUID - - """Optional reason for the credit grant (promo code, admin grant, etc.)""" - reason: String -} - -""" -Default meter catalog: defines which meters are available and their default plan_limit values for new entities -""" -type MeterDefault { - """ - Slug of the category pool meter (usage_pool) this meter belongs to, enabling the per-task -> category -> universal waterfall for default-provisioned meters. NULL skips the category pool. - """ - categoryMeter: String - - """ - Universal credits consumed per unit of this meter. NULL disables universal credit fallback. - """ - creditCost: BigFloat - - """ - Default plan_limit value for new entity balances. 0 means no quota; -1 (negative) means unlimited. - """ - defaultPlanLimit: BigInt! - - """Human-readable name for the default meter""" - displayName: String - id: UUID! - - """Whether this default meter is actively provisioned for new entities""" - isActive: Boolean - - """Type of meter: quota, boolean, or usage_pool""" - meterType: String! - - """Meter slug that matches the slug in the meters table""" - slug: String! - - """ - Unit of measurement for this meter (e.g. tokens, requests, images, compute_ms, credits) - """ - unit: String -} - -"""A connection to a list of `MeterDefault` values.""" -type MeterDefaultConnection { - """ - A list of edges which contains the `MeterDefault` and cursor to aid in pagination. - """ - edges: [MeterDefaultEdge]! - - """A list of `MeterDefault` objects.""" - nodes: [MeterDefault]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `MeterDefault` you could get from the connection.""" - totalCount: Int! -} - -"""A `MeterDefault` edge in the connection.""" -type MeterDefaultEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `MeterDefault` at the end of the edge.""" - node: MeterDefault -} - -""" -A filter to be used against `MeterDefault` object types. All fields are combined with a logical ‘and.’ -""" -input MeterDefaultFilter { - """Checks for all expressions in this list.""" - and: [MeterDefaultFilter!] - - """Filter by the object’s `categoryMeter` field.""" - categoryMeter: StringFilter - - """Filter by the object’s `creditCost` field.""" - creditCost: BigFloatFilter - - """Filter by the object’s `defaultPlanLimit` field.""" - defaultPlanLimit: BigIntFilter - - """Filter by the object’s `displayName` field.""" - displayName: StringFilter - - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `isActive` field.""" - isActive: BooleanFilter - - """Filter by the object’s `meterType` field.""" - meterType: StringFilter - - """Negates the expression.""" - not: MeterDefaultFilter - - """Checks for any expressions in this list.""" - or: [MeterDefaultFilter!] - - """Filter by the object’s `slug` field.""" - slug: StringFilter - - """Filter by the object’s `unit` field.""" - unit: StringFilter -} - -"""An input for mutations affecting `MeterDefault`""" -input MeterDefaultInput { - """ - Slug of the category pool meter (usage_pool) this meter belongs to, enabling the per-task -> category -> universal waterfall for default-provisioned meters. NULL skips the category pool. - """ - categoryMeter: String - - """ - Universal credits consumed per unit of this meter. NULL disables universal credit fallback. - """ - creditCost: BigFloat - - """ - Default plan_limit value for new entity balances. 0 means no quota; -1 (negative) means unlimited. - """ - defaultPlanLimit: BigInt - - """Human-readable name for the default meter""" - displayName: String - id: UUID - - """Whether this default meter is actively provisioned for new entities""" - isActive: Boolean - - """Type of meter: quota, boolean, or usage_pool""" - meterType: String - - """Meter slug that matches the slug in the meters table""" - slug: String! - - """ - Unit of measurement for this meter (e.g. tokens, requests, images, compute_ms, credits) - """ - unit: String -} - -"""Methods to use when ordering `MeterDefault`.""" -enum MeterDefaultOrderBy { - CATEGORY_METER_ASC - CATEGORY_METER_DESC - CREDIT_COST_ASC - CREDIT_COST_DESC - DEFAULT_PLAN_LIMIT_ASC - DEFAULT_PLAN_LIMIT_DESC - DISPLAY_NAME_ASC - DISPLAY_NAME_DESC - ID_ASC - ID_DESC - IS_ACTIVE_ASC - IS_ACTIVE_DESC - METER_TYPE_ASC - METER_TYPE_DESC - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - SLUG_ASC - SLUG_DESC - UNIT_ASC - UNIT_DESC -} - -""" -Represents an update to a `MeterDefault`. Fields that are set will be updated. -""" -input MeterDefaultPatch { - """ - Slug of the category pool meter (usage_pool) this meter belongs to, enabling the per-task -> category -> universal waterfall for default-provisioned meters. NULL skips the category pool. - """ - categoryMeter: String - - """ - Universal credits consumed per unit of this meter. NULL disables universal credit fallback. - """ - creditCost: BigFloat - - """ - Default plan_limit value for new entity balances. 0 means no quota; -1 (negative) means unlimited. - """ - defaultPlanLimit: BigInt - - """Human-readable name for the default meter""" - displayName: String - id: UUID - - """Whether this default meter is actively provisioned for new entities""" - isActive: Boolean - - """Type of meter: quota, boolean, or usage_pool""" - meterType: String - - """Meter slug that matches the slug in the meters table""" - slug: String - - """ - Unit of measurement for this meter (e.g. tokens, requests, images, compute_ms, credits) - """ - unit: String -} - -"""A `Meter` edge in the connection.""" -type MeterEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `Meter` at the end of the edge.""" - node: Meter -} - -""" -A filter to be used against `Meter` object types. All fields are combined with a logical ‘and.’ -""" -input MeterFilter { - """Filter by the object’s `aggregation` field.""" - aggregation: StringFilter - - """Checks for all expressions in this list.""" - and: [MeterFilter!] - - """Filter by the object’s `categoryMeter` field.""" - categoryMeter: StringFilter - - """Filter by the object’s `creditCost` field.""" - creditCost: IntFilter - - """Filter by the object’s `displayName` field.""" - displayName: StringFilter - - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `isActive` field.""" - isActive: BooleanFilter - - """Filter by the object’s `meterCredits` relation.""" - meterCredits: MeterToManyMeterCreditFilter - - """`meterCredits` exist.""" - meterCreditsExist: Boolean - - """Filter by the object’s `meterType` field.""" - meterType: StringFilter - - """Negates the expression.""" - not: MeterFilter - - """Checks for any expressions in this list.""" - or: [MeterFilter!] - - """Filter by the object’s `periodInterval` field.""" - periodInterval: IntervalFilter - - """Filter by the object’s `rolloverCap` field.""" - rolloverCap: BigIntFilter - - """Filter by the object’s `slug` field.""" - slug: StringFilter - - """Filter by the object’s `unit` field.""" - unit: StringFilter -} - -"""An input for mutations affecting `Meter`""" -input MeterInput { - """ - How usage is aggregated: cumulative (sum over period) or peak (max watermark) - """ - aggregation: String - - """ - Slug of the category pool meter this meter belongs to. When set, usage overflow charges the category pool before falling through to universal credits. NULL means skip category pool and fall through directly to universal. - """ - categoryMeter: String - - """ - Universal credits consumed per unit of this meter. NULL disables universal credit fallback. - """ - creditCost: Int - - """Human-readable name for the meter""" - displayName: String - id: UUID - - """Whether this meter is currently active""" - isActive: Boolean - - """ - Type of meter: quota (consumable), boolean (feature flag), or usage_pool (category aggregator) - """ - meterType: String - - """ - Reset cadence for this meter (e.g. 1 month, 1 year). NULL means no periodic reset. - """ - periodInterval: IntervalInput - - """ - Maximum unused units that carry forward on rollover reset. NULL means unlimited rollover. - """ - rolloverCap: BigInt - - """Unique identifier for the meter (e.g. api_requests, storage_gb, seats)""" - slug: String! - - """ - Unit of measurement for this meter (e.g. tokens, characters, audio_seconds, pages, images, megapixels, bytes, requests, compute_ms, credits) - """ - unit: String -} - -"""Methods to use when ordering `Meter`.""" -enum MeterOrderBy { - AGGREGATION_ASC - AGGREGATION_DESC - CATEGORY_METER_ASC - CATEGORY_METER_DESC - CREDIT_COST_ASC - CREDIT_COST_DESC - DISPLAY_NAME_ASC - DISPLAY_NAME_DESC - ID_ASC - ID_DESC - IS_ACTIVE_ASC - IS_ACTIVE_DESC - METER_TYPE_ASC - METER_TYPE_DESC - NATURAL - PERIOD_INTERVAL_ASC - PERIOD_INTERVAL_DESC - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ROLLOVER_CAP_ASC - ROLLOVER_CAP_DESC - SLUG_ASC - SLUG_DESC - UNIT_ASC - UNIT_DESC -} - -""" -Represents an update to a `Meter`. Fields that are set will be updated. -""" -input MeterPatch { - """ - How usage is aggregated: cumulative (sum over period) or peak (max watermark) - """ - aggregation: String - - """ - Slug of the category pool meter this meter belongs to. When set, usage overflow charges the category pool before falling through to universal credits. NULL means skip category pool and fall through directly to universal. - """ - categoryMeter: String - - """ - Universal credits consumed per unit of this meter. NULL disables universal credit fallback. - """ - creditCost: Int - - """Human-readable name for the meter""" - displayName: String - id: UUID - - """Whether this meter is currently active""" - isActive: Boolean - - """ - Type of meter: quota (consumable), boolean (feature flag), or usage_pool (category aggregator) - """ - meterType: String - - """ - Reset cadence for this meter (e.g. 1 month, 1 year). NULL means no periodic reset. - """ - periodInterval: IntervalInput - - """ - Maximum unused units that carry forward on rollover reset. NULL means unlimited rollover. - """ - rolloverCap: BigInt - - """Unique identifier for the meter (e.g. api_requests, storage_gb, seats)""" - slug: String - - """ - Unit of measurement for this meter (e.g. tokens, characters, audio_seconds, pages, images, megapixels, bytes, requests, compute_ms, credits) - """ - unit: String -} - -""" -Maps billing meters to typed usage summary table columns for automated usage reconciliation. Each row tells reconcile_typed_usage() which column to aggregate and how. -""" -type MeterSource { - """ - How to aggregate the column. Built-in types: sum, sum_bytes_to_gb, peak. Custom types supported. - """ - aggregationType: String! - - """ - Column name in the typed usage summary table (e.g. total_reads, avg_read_time_ms, size_bytes) - """ - dimensionPath: String! - id: UUID! - - """Soft-delete flag. Inactive sources are skipped during reconciliation.""" - isActive: Boolean! - - """ - Slug of the billing meter this source feeds (matches meters.slug in the billing module) - """ - meterSlug: String! - - """ - Source table type: table_usage (db_table_stats_usage_summary), query_time (db_query_stats_usage_summary), or row_count (trigger-based, skipped by reconcile) - """ - sourceMetric: String! -} - -"""A connection to a list of `MeterSource` values.""" -type MeterSourceConnection { - """ - A list of edges which contains the `MeterSource` and cursor to aid in pagination. - """ - edges: [MeterSourceEdge]! - - """A list of `MeterSource` objects.""" - nodes: [MeterSource]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `MeterSource` you could get from the connection.""" - totalCount: Int! -} - -"""A `MeterSource` edge in the connection.""" -type MeterSourceEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `MeterSource` at the end of the edge.""" - node: MeterSource -} - -""" -A filter to be used against `MeterSource` object types. All fields are combined with a logical ‘and.’ -""" -input MeterSourceFilter { - """Filter by the object’s `aggregationType` field.""" - aggregationType: StringFilter - - """Checks for all expressions in this list.""" - and: [MeterSourceFilter!] - - """Filter by the object’s `dimensionPath` field.""" - dimensionPath: StringFilter - - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `isActive` field.""" - isActive: BooleanFilter - - """Filter by the object’s `meterSlug` field.""" - meterSlug: StringFilter - - """Negates the expression.""" - not: MeterSourceFilter - - """Checks for any expressions in this list.""" - or: [MeterSourceFilter!] - - """Filter by the object’s `sourceMetric` field.""" - sourceMetric: StringFilter -} - -"""An input for mutations affecting `MeterSource`""" -input MeterSourceInput { - """ - How to aggregate the column. Built-in types: sum, sum_bytes_to_gb, peak. Custom types supported. - """ - aggregationType: String - - """ - Column name in the typed usage summary table (e.g. total_reads, avg_read_time_ms, size_bytes) - """ - dimensionPath: String! - id: UUID - - """Soft-delete flag. Inactive sources are skipped during reconciliation.""" - isActive: Boolean - - """ - Slug of the billing meter this source feeds (matches meters.slug in the billing module) - """ - meterSlug: String! - - """ - Source table type: table_usage (db_table_stats_usage_summary), query_time (db_query_stats_usage_summary), or row_count (trigger-based, skipped by reconcile) - """ - sourceMetric: String! -} - -"""Methods to use when ordering `MeterSource`.""" -enum MeterSourceOrderBy { - AGGREGATION_TYPE_ASC - AGGREGATION_TYPE_DESC - DIMENSION_PATH_ASC - DIMENSION_PATH_DESC - ID_ASC - ID_DESC - IS_ACTIVE_ASC - IS_ACTIVE_DESC - METER_SLUG_ASC - METER_SLUG_DESC - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - SOURCE_METRIC_ASC - SOURCE_METRIC_DESC -} - -""" -Represents an update to a `MeterSource`. Fields that are set will be updated. -""" -input MeterSourcePatch { - """ - How to aggregate the column. Built-in types: sum, sum_bytes_to_gb, peak. Custom types supported. - """ - aggregationType: String - - """ - Column name in the typed usage summary table (e.g. total_reads, avg_read_time_ms, size_bytes) - """ - dimensionPath: String - id: UUID - - """Soft-delete flag. Inactive sources are skipped during reconciliation.""" - isActive: Boolean - - """ - Slug of the billing meter this source feeds (matches meters.slug in the billing module) - """ - meterSlug: String - - """ - Source table type: table_usage (db_table_stats_usage_summary), query_time (db_query_stats_usage_summary), or row_count (trigger-based, skipped by reconcile) - """ - sourceMetric: String -} - -""" -A filter to be used against many `MeterCredit` object types. All fields are combined with a logical ‘and.’ -""" -input MeterToManyMeterCreditFilter { - """Filters to entities where every related entity matches.""" - every: MeterCreditFilter - - """Filters to entities where no related entity matches.""" - none: MeterCreditFilter - - """Filters to entities where at least one related entity matches.""" - some: MeterCreditFilter -} - -""" -The root mutation type which contains root level fields which mutate data. -""" -type Mutation { - """Creates a single `AppAchievementReward`.""" - createAppAchievementReward( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAppAchievementRewardInput! - ): CreateAppAchievementRewardPayload - - """Creates a single `AppEvent`.""" - createAppEvent( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAppEventInput! - ): CreateAppEventPayload - - """Creates a single `AppEventAggregate`.""" - createAppEventAggregate( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAppEventAggregateInput! - ): CreateAppEventAggregatePayload - - """Creates a single `AppEventType`.""" - createAppEventType( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAppEventTypeInput! - ): CreateAppEventTypePayload - - """Creates a single `AppLevel`.""" - createAppLevel( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAppLevelInput! - ): CreateAppLevelPayload - - """Creates a single `AppLevelGrant`.""" - createAppLevelGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAppLevelGrantInput! - ): CreateAppLevelGrantPayload - - """Creates a single `AppLevelRequirement`.""" - createAppLevelRequirement( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAppLevelRequirementInput! - ): CreateAppLevelRequirementPayload - - """Creates a single `AppLimit`.""" - createAppLimit( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAppLimitInput! - ): CreateAppLimitPayload - - """Creates a single `AppLimitCap`.""" - createAppLimitCap( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAppLimitCapInput! - ): CreateAppLimitCapPayload - - """Creates a single `AppLimitCapsDefault`.""" - createAppLimitCapsDefault( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAppLimitCapsDefaultInput! - ): CreateAppLimitCapsDefaultPayload - - """Creates a single `AppLimitCredit`.""" - createAppLimitCredit( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAppLimitCreditInput! - ): CreateAppLimitCreditPayload - - """Creates a single `AppLimitCreditCode`.""" - createAppLimitCreditCode( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAppLimitCreditCodeInput! - ): CreateAppLimitCreditCodePayload - - """Creates a single `AppLimitCreditCodeItem`.""" - createAppLimitCreditCodeItem( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAppLimitCreditCodeItemInput! - ): CreateAppLimitCreditCodeItemPayload - - """Creates a single `AppLimitCreditRedemption`.""" - createAppLimitCreditRedemption( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAppLimitCreditRedemptionInput! - ): CreateAppLimitCreditRedemptionPayload - - """Creates a single `AppLimitDefault`.""" - createAppLimitDefault( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAppLimitDefaultInput! - ): CreateAppLimitDefaultPayload - - """Creates a single `AppLimitEvent`.""" - createAppLimitEvent( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAppLimitEventInput! - ): CreateAppLimitEventPayload - - """Creates a single `AppLimitWarning`.""" - createAppLimitWarning( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAppLimitWarningInput! - ): CreateAppLimitWarningPayload - - """Creates a single `BillingUsageSummary`.""" - createBillingUsageSummary( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateBillingUsageSummaryInput! - ): CreateBillingUsageSummaryPayload - - """Creates a single `Ledger`.""" - createLedger( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateLedgerInput! - ): CreateLedgerPayload - - """Creates a single `Meter`.""" - createMeter( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateMeterInput! - ): CreateMeterPayload - - """Creates a single `MeterCredit`.""" - createMeterCredit( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateMeterCreditInput! - ): CreateMeterCreditPayload - - """Creates a single `MeterDefault`.""" - createMeterDefault( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateMeterDefaultInput! - ): CreateMeterDefaultPayload - - """Creates a single `MeterSource`.""" - createMeterSource( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateMeterSourceInput! - ): CreateMeterSourcePayload - - """Creates a single `OrgLimit`.""" - createOrgLimit( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateOrgLimitInput! - ): CreateOrgLimitPayload - - """Creates a single `OrgLimitAggregate`.""" - createOrgLimitAggregate( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateOrgLimitAggregateInput! - ): CreateOrgLimitAggregatePayload - - """Creates a single `OrgLimitCap`.""" - createOrgLimitCap( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateOrgLimitCapInput! - ): CreateOrgLimitCapPayload - - """Creates a single `OrgLimitCapsDefault`.""" - createOrgLimitCapsDefault( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateOrgLimitCapsDefaultInput! - ): CreateOrgLimitCapsDefaultPayload - - """Creates a single `OrgLimitCredit`.""" - createOrgLimitCredit( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateOrgLimitCreditInput! - ): CreateOrgLimitCreditPayload - - """Creates a single `OrgLimitDefault`.""" - createOrgLimitDefault( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateOrgLimitDefaultInput! - ): CreateOrgLimitDefaultPayload - - """Creates a single `OrgLimitEvent`.""" - createOrgLimitEvent( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateOrgLimitEventInput! - ): CreateOrgLimitEventPayload - - """Creates a single `OrgLimitWarning`.""" - createOrgLimitWarning( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateOrgLimitWarningInput! - ): CreateOrgLimitWarningPayload - - """Creates a single `Plan`.""" - createPlan( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreatePlanInput! - ): CreatePlanPayload - - """Creates a single `PlanCap`.""" - createPlanCap( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreatePlanCapInput! - ): CreatePlanCapPayload - - """Creates a single `PlanLimit`.""" - createPlanLimit( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreatePlanLimitInput! - ): CreatePlanLimitPayload - - """Creates a single `PlanMeterLimit`.""" - createPlanMeterLimit( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreatePlanMeterLimitInput! - ): CreatePlanMeterLimitPayload - - """Creates a single `PlanOverride`.""" - createPlanOverride( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreatePlanOverrideInput! - ): CreatePlanOverridePayload - - """Creates a single `PlanPricing`.""" - createPlanPricing( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreatePlanPricingInput! - ): CreatePlanPricingPayload - - """Creates a single `PlanSubscription`.""" - createPlanSubscription( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreatePlanSubscriptionInput! - ): CreatePlanSubscriptionPayload - - """Deletes a single `AppAchievementReward` using a unique key.""" - deleteAppAchievementReward( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteAppAchievementRewardInput! - ): DeleteAppAchievementRewardPayload - - """Deletes a single `AppEvent` using a unique key.""" - deleteAppEvent( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteAppEventInput! - ): DeleteAppEventPayload - - """Deletes a single `AppEventAggregate` using a unique key.""" - deleteAppEventAggregate( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteAppEventAggregateInput! - ): DeleteAppEventAggregatePayload - - """Deletes a single `AppEventType` using a unique key.""" - deleteAppEventType( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteAppEventTypeInput! - ): DeleteAppEventTypePayload - - """Deletes a single `AppLevel` using a unique key.""" - deleteAppLevel( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteAppLevelInput! - ): DeleteAppLevelPayload - - """Deletes a single `AppLevelGrant` using a unique key.""" - deleteAppLevelGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteAppLevelGrantInput! - ): DeleteAppLevelGrantPayload - - """Deletes a single `AppLevelRequirement` using a unique key.""" - deleteAppLevelRequirement( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteAppLevelRequirementInput! - ): DeleteAppLevelRequirementPayload - - """Deletes a single `AppLimit` using a unique key.""" - deleteAppLimit( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteAppLimitInput! - ): DeleteAppLimitPayload - - """Deletes a single `AppLimitCap` using a unique key.""" - deleteAppLimitCap( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteAppLimitCapInput! - ): DeleteAppLimitCapPayload - - """Deletes a single `AppLimitCapsDefault` using a unique key.""" - deleteAppLimitCapsDefault( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteAppLimitCapsDefaultInput! - ): DeleteAppLimitCapsDefaultPayload - - """Deletes a single `AppLimitCredit` using a unique key.""" - deleteAppLimitCredit( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteAppLimitCreditInput! - ): DeleteAppLimitCreditPayload - - """Deletes a single `AppLimitCreditCode` using a unique key.""" - deleteAppLimitCreditCode( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteAppLimitCreditCodeInput! - ): DeleteAppLimitCreditCodePayload - - """Deletes a single `AppLimitCreditCodeItem` using a unique key.""" - deleteAppLimitCreditCodeItem( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteAppLimitCreditCodeItemInput! - ): DeleteAppLimitCreditCodeItemPayload - - """Deletes a single `AppLimitCreditRedemption` using a unique key.""" - deleteAppLimitCreditRedemption( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteAppLimitCreditRedemptionInput! - ): DeleteAppLimitCreditRedemptionPayload - - """Deletes a single `AppLimitDefault` using a unique key.""" - deleteAppLimitDefault( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteAppLimitDefaultInput! - ): DeleteAppLimitDefaultPayload - - """Deletes a single `AppLimitEvent` using a unique key.""" - deleteAppLimitEvent( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteAppLimitEventInput! - ): DeleteAppLimitEventPayload - - """Deletes a single `AppLimitWarning` using a unique key.""" - deleteAppLimitWarning( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteAppLimitWarningInput! - ): DeleteAppLimitWarningPayload - - """Deletes a single `BillingUsageSummary` using a unique key.""" - deleteBillingUsageSummary( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteBillingUsageSummaryInput! - ): DeleteBillingUsageSummaryPayload - - """Deletes a single `Ledger` using a unique key.""" - deleteLedger( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteLedgerInput! - ): DeleteLedgerPayload - - """Deletes a single `Meter` using a unique key.""" - deleteMeter( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteMeterInput! - ): DeleteMeterPayload - - """Deletes a single `MeterCredit` using a unique key.""" - deleteMeterCredit( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteMeterCreditInput! - ): DeleteMeterCreditPayload - - """Deletes a single `MeterDefault` using a unique key.""" - deleteMeterDefault( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteMeterDefaultInput! - ): DeleteMeterDefaultPayload - - """Deletes a single `MeterSource` using a unique key.""" - deleteMeterSource( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteMeterSourceInput! - ): DeleteMeterSourcePayload - - """Deletes a single `OrgLimit` using a unique key.""" - deleteOrgLimit( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteOrgLimitInput! - ): DeleteOrgLimitPayload - - """Deletes a single `OrgLimitAggregate` using a unique key.""" - deleteOrgLimitAggregate( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteOrgLimitAggregateInput! - ): DeleteOrgLimitAggregatePayload - - """Deletes a single `OrgLimitCap` using a unique key.""" - deleteOrgLimitCap( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteOrgLimitCapInput! - ): DeleteOrgLimitCapPayload - - """Deletes a single `OrgLimitCapsDefault` using a unique key.""" - deleteOrgLimitCapsDefault( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteOrgLimitCapsDefaultInput! - ): DeleteOrgLimitCapsDefaultPayload - - """Deletes a single `OrgLimitCredit` using a unique key.""" - deleteOrgLimitCredit( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteOrgLimitCreditInput! - ): DeleteOrgLimitCreditPayload - - """Deletes a single `OrgLimitDefault` using a unique key.""" - deleteOrgLimitDefault( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteOrgLimitDefaultInput! - ): DeleteOrgLimitDefaultPayload - - """Deletes a single `OrgLimitEvent` using a unique key.""" - deleteOrgLimitEvent( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteOrgLimitEventInput! - ): DeleteOrgLimitEventPayload - - """Deletes a single `OrgLimitWarning` using a unique key.""" - deleteOrgLimitWarning( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteOrgLimitWarningInput! - ): DeleteOrgLimitWarningPayload - - """Deletes a single `Plan` using a unique key.""" - deletePlan( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeletePlanInput! - ): DeletePlanPayload - - """Deletes a single `PlanCap` using a unique key.""" - deletePlanCap( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeletePlanCapInput! - ): DeletePlanCapPayload - - """Deletes a single `PlanLimit` using a unique key.""" - deletePlanLimit( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeletePlanLimitInput! - ): DeletePlanLimitPayload - - """Deletes a single `PlanMeterLimit` using a unique key.""" - deletePlanMeterLimit( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeletePlanMeterLimitInput! - ): DeletePlanMeterLimitPayload - - """Deletes a single `PlanOverride` using a unique key.""" - deletePlanOverride( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeletePlanOverrideInput! - ): DeletePlanOverridePayload - - """Deletes a single `PlanPricing` using a unique key.""" - deletePlanPricing( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeletePlanPricingInput! - ): DeletePlanPricingPayload - - """Deletes a single `PlanSubscription` using a unique key.""" - deletePlanSubscription( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeletePlanSubscriptionInput! - ): DeletePlanSubscriptionPayload - grantAchievement( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: GrantAchievementInput! - ): GrantAchievementPayload - - """ - 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 - recomputeCapabilities( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: RecomputeCapabilitiesInput! - ): RecomputeCapabilitiesPayload - revokeAchievement( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: RevokeAchievementInput! - ): RevokeAchievementPayload - seedAppLimitCapsDefaults( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: SeedAppLimitCapsDefaultsInput! - ): SeedAppLimitCapsDefaultsPayload - seedAppLimitDefaults( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: SeedAppLimitDefaultsInput! - ): SeedAppLimitDefaultsPayload - seedMeterDefaults( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: SeedMeterDefaultsInput! - ): SeedMeterDefaultsPayload - seedOrgLimitCapsDefaults( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: SeedOrgLimitCapsDefaultsInput! - ): SeedOrgLimitCapsDefaultsPayload - seedOrgLimitDefaults( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: SeedOrgLimitDefaultsInput! - ): SeedOrgLimitDefaultsPayload - seedPlan( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: SeedPlanInput! - ): SeedPlanPayload - seedTrustLadder( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: SeedTrustLadderInput! - ): SeedTrustLadderPayload - - """ - Updates a single `AppAchievementReward` using a unique key and a patch. - """ - updateAppAchievementReward( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateAppAchievementRewardInput! - ): UpdateAppAchievementRewardPayload - - """Updates a single `AppEvent` using a unique key and a patch.""" - updateAppEvent( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateAppEventInput! - ): UpdateAppEventPayload - - """Updates a single `AppEventAggregate` using a unique key and a patch.""" - updateAppEventAggregate( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateAppEventAggregateInput! - ): UpdateAppEventAggregatePayload - - """Updates a single `AppEventType` using a unique key and a patch.""" - updateAppEventType( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateAppEventTypeInput! - ): UpdateAppEventTypePayload - - """Updates a single `AppLevel` using a unique key and a patch.""" - updateAppLevel( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateAppLevelInput! - ): UpdateAppLevelPayload - - """Updates a single `AppLevelGrant` using a unique key and a patch.""" - updateAppLevelGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateAppLevelGrantInput! - ): UpdateAppLevelGrantPayload - - """Updates a single `AppLevelRequirement` using a unique key and a patch.""" - updateAppLevelRequirement( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateAppLevelRequirementInput! - ): UpdateAppLevelRequirementPayload - - """Updates a single `AppLimit` using a unique key and a patch.""" - updateAppLimit( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateAppLimitInput! - ): UpdateAppLimitPayload - - """Updates a single `AppLimitCap` using a unique key and a patch.""" - updateAppLimitCap( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateAppLimitCapInput! - ): UpdateAppLimitCapPayload - - """Updates a single `AppLimitCapsDefault` using a unique key and a patch.""" - updateAppLimitCapsDefault( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateAppLimitCapsDefaultInput! - ): UpdateAppLimitCapsDefaultPayload - - """Updates a single `AppLimitCredit` using a unique key and a patch.""" - updateAppLimitCredit( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateAppLimitCreditInput! - ): UpdateAppLimitCreditPayload - - """Updates a single `AppLimitCreditCode` using a unique key and a patch.""" - updateAppLimitCreditCode( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateAppLimitCreditCodeInput! - ): UpdateAppLimitCreditCodePayload - - """ - Updates a single `AppLimitCreditCodeItem` using a unique key and a patch. - """ - updateAppLimitCreditCodeItem( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateAppLimitCreditCodeItemInput! - ): UpdateAppLimitCreditCodeItemPayload - - """ - Updates a single `AppLimitCreditRedemption` using a unique key and a patch. - """ - updateAppLimitCreditRedemption( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateAppLimitCreditRedemptionInput! - ): UpdateAppLimitCreditRedemptionPayload - - """Updates a single `AppLimitDefault` using a unique key and a patch.""" - updateAppLimitDefault( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateAppLimitDefaultInput! - ): UpdateAppLimitDefaultPayload - - """Updates a single `AppLimitEvent` using a unique key and a patch.""" - updateAppLimitEvent( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateAppLimitEventInput! - ): UpdateAppLimitEventPayload - - """Updates a single `AppLimitWarning` using a unique key and a patch.""" - updateAppLimitWarning( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateAppLimitWarningInput! - ): UpdateAppLimitWarningPayload - - """Updates a single `BillingUsageSummary` using a unique key and a patch.""" - updateBillingUsageSummary( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateBillingUsageSummaryInput! - ): UpdateBillingUsageSummaryPayload - - """Updates a single `Ledger` using a unique key and a patch.""" - updateLedger( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateLedgerInput! - ): UpdateLedgerPayload - - """Updates a single `Meter` using a unique key and a patch.""" - updateMeter( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateMeterInput! - ): UpdateMeterPayload - - """Updates a single `MeterCredit` using a unique key and a patch.""" - updateMeterCredit( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateMeterCreditInput! - ): UpdateMeterCreditPayload - - """Updates a single `MeterDefault` using a unique key and a patch.""" - updateMeterDefault( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateMeterDefaultInput! - ): UpdateMeterDefaultPayload - - """Updates a single `MeterSource` using a unique key and a patch.""" - updateMeterSource( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateMeterSourceInput! - ): UpdateMeterSourcePayload - - """Updates a single `OrgLimit` using a unique key and a patch.""" - updateOrgLimit( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateOrgLimitInput! - ): UpdateOrgLimitPayload - - """Updates a single `OrgLimitAggregate` using a unique key and a patch.""" - updateOrgLimitAggregate( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateOrgLimitAggregateInput! - ): UpdateOrgLimitAggregatePayload - - """Updates a single `OrgLimitCap` using a unique key and a patch.""" - updateOrgLimitCap( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateOrgLimitCapInput! - ): UpdateOrgLimitCapPayload - - """Updates a single `OrgLimitCapsDefault` using a unique key and a patch.""" - updateOrgLimitCapsDefault( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateOrgLimitCapsDefaultInput! - ): UpdateOrgLimitCapsDefaultPayload - - """Updates a single `OrgLimitCredit` using a unique key and a patch.""" - updateOrgLimitCredit( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateOrgLimitCreditInput! - ): UpdateOrgLimitCreditPayload - - """Updates a single `OrgLimitDefault` using a unique key and a patch.""" - updateOrgLimitDefault( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateOrgLimitDefaultInput! - ): UpdateOrgLimitDefaultPayload - - """Updates a single `OrgLimitEvent` using a unique key and a patch.""" - updateOrgLimitEvent( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateOrgLimitEventInput! - ): UpdateOrgLimitEventPayload - - """Updates a single `OrgLimitWarning` using a unique key and a patch.""" - updateOrgLimitWarning( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateOrgLimitWarningInput! - ): UpdateOrgLimitWarningPayload - - """Updates a single `Plan` using a unique key and a patch.""" - updatePlan( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdatePlanInput! - ): UpdatePlanPayload - - """Updates a single `PlanCap` using a unique key and a patch.""" - updatePlanCap( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdatePlanCapInput! - ): UpdatePlanCapPayload - - """Updates a single `PlanLimit` using a unique key and a patch.""" - updatePlanLimit( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdatePlanLimitInput! - ): UpdatePlanLimitPayload - - """Updates a single `PlanMeterLimit` using a unique key and a patch.""" - updatePlanMeterLimit( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdatePlanMeterLimitInput! - ): UpdatePlanMeterLimitPayload - - """Updates a single `PlanOverride` using a unique key and a patch.""" - updatePlanOverride( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdatePlanOverrideInput! - ): UpdatePlanOverridePayload - - """Updates a single `PlanPricing` using a unique key and a patch.""" - updatePlanPricing( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdatePlanPricingInput! - ): UpdatePlanPricingPayload - - """Updates a single `PlanSubscription` using a unique key and a patch.""" - updatePlanSubscription( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdatePlanSubscriptionInput! - ): UpdatePlanSubscriptionPayload -} - -"""Tracks per-actor usage counts against configurable maximum limits""" -type OrgLimit { - """User whose usage is being tracked against this limit""" - actorId: UUID! - entityId: UUID! - - """Entity type prefix (org, team, app, etc.) for interpreting entity_id""" - entityType: String - id: UUID! - - """ - Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. - """ - max: BigInt - - """Name identifier of the limit being tracked""" - name: String - - """Current usage count for this actor and limit""" - num: BigInt - - """Resolved billable organization via get_organization_id""" - organizationId: UUID - - """ - Temporary credits for the current billing window. Resets to 0 on window expiry. - """ - periodCredits: BigInt - - """ - 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 - - """ - Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. - """ - purchasedCredits: BigInt - - """ - Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. - """ - softMax: BigInt - - """ - Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window - """ - windowDuration: Interval - - """Start of the current metering window; NULL means no time window""" - windowStart: Datetime -} - -""" -Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) -""" -type OrgLimitAggregate { - """Entity (org) whose aggregate usage is being tracked""" - entityId: UUID! - - """Entity type prefix (org, team, app, etc.) for interpreting entity_id""" - entityType: String - id: UUID! - - """Maximum allowed aggregate usage; negative means unlimited""" - max: BigInt - - """Name identifier of the aggregate limit being tracked""" - name: String - - """Current aggregate usage count for this entity and limit""" - num: BigInt - - """Resolved billable organization via get_organization_id""" - organizationId: UUID - - """ - Temporary credits for the current billing window. Resets to 0 on window expiry. - """ - periodCredits: BigInt - - """ - 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 - - """ - Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. - """ - purchasedCredits: BigInt - - """ - Capacity reserved by child entities in budgeted allocation mode. Available = max - num - reserved. - """ - reserved: BigInt - - """Soft limit threshold for warnings; NULL means no soft limit""" - softMax: BigInt - - """ - Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window - """ - windowDuration: Interval - - """Start of the current metering window; NULL means no time window""" - windowStart: Datetime -} - -"""A connection to a list of `OrgLimitAggregate` values.""" -type OrgLimitAggregateConnection { - """ - A list of edges which contains the `OrgLimitAggregate` and cursor to aid in pagination. - """ - edges: [OrgLimitAggregateEdge]! - - """A list of `OrgLimitAggregate` objects.""" - nodes: [OrgLimitAggregate]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `OrgLimitAggregate` you could get from the connection. - """ - totalCount: Int! -} - -"""A `OrgLimitAggregate` edge in the connection.""" -type OrgLimitAggregateEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `OrgLimitAggregate` at the end of the edge.""" - node: OrgLimitAggregate -} - -""" -A filter to be used against `OrgLimitAggregate` object types. All fields are combined with a logical ‘and.’ -""" -input OrgLimitAggregateFilter { - """Checks for all expressions in this list.""" - and: [OrgLimitAggregateFilter!] - - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter - - """Filter by the object’s `entityType` field.""" - entityType: StringFilter - - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `max` field.""" - max: BigIntFilter - - """Filter by the object’s `name` field.""" - name: StringFilter - - """Negates the expression.""" - not: OrgLimitAggregateFilter - - """Filter by the object’s `num` field.""" - num: BigIntFilter - - """Checks for any expressions in this list.""" - or: [OrgLimitAggregateFilter!] - - """Filter by the object’s `organizationId` field.""" - organizationId: UUIDFilter - - """Filter by the object’s `periodCredits` field.""" - periodCredits: BigIntFilter - - """Filter by the object’s `planMax` field.""" - planMax: BigIntFilter - - """Filter by the object’s `purchasedCredits` field.""" - purchasedCredits: BigIntFilter - - """Filter by the object’s `reserved` field.""" - reserved: BigIntFilter - - """Filter by the object’s `softMax` field.""" - softMax: BigIntFilter - - """Filter by the object’s `windowDuration` field.""" - windowDuration: IntervalFilter - - """Filter by the object’s `windowStart` field.""" - windowStart: DatetimeFilter -} - -"""An input for mutations affecting `OrgLimitAggregate`""" -input OrgLimitAggregateInput { - """Entity (org) whose aggregate usage is being tracked""" - entityId: UUID! - - """Entity type prefix (org, team, app, etc.) for interpreting entity_id""" - entityType: String - id: UUID - - """Maximum allowed aggregate usage; negative means unlimited""" - max: BigInt - - """Name identifier of the aggregate limit being tracked""" - name: String - - """Current aggregate usage count for this entity and limit""" - num: BigInt - - """Resolved billable organization via get_organization_id""" - organizationId: UUID - - """ - Temporary credits for the current billing window. Resets to 0 on window expiry. - """ - periodCredits: BigInt - - """ - 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 - - """ - Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. - """ - purchasedCredits: BigInt - - """ - Capacity reserved by child entities in budgeted allocation mode. Available = max - num - reserved. - """ - reserved: BigInt - - """Soft limit threshold for warnings; NULL means no soft limit""" - softMax: BigInt - - """ - Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window - """ - windowDuration: IntervalInput - - """Start of the current metering window; NULL means no time window""" - windowStart: Datetime -} - -"""Methods to use when ordering `OrgLimitAggregate`.""" -enum OrgLimitAggregateOrderBy { - ENTITY_ID_ASC - ENTITY_ID_DESC - ENTITY_TYPE_ASC - ENTITY_TYPE_DESC - ID_ASC - ID_DESC - MAX_ASC - MAX_DESC - NAME_ASC - NAME_DESC - NATURAL - NUM_ASC - NUM_DESC - ORGANIZATION_ID_ASC - ORGANIZATION_ID_DESC - PERIOD_CREDITS_ASC - PERIOD_CREDITS_DESC - PLAN_MAX_ASC - PLAN_MAX_DESC - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - PURCHASED_CREDITS_ASC - PURCHASED_CREDITS_DESC - RESERVED_ASC - RESERVED_DESC - SOFT_MAX_ASC - SOFT_MAX_DESC - WINDOW_DURATION_ASC - WINDOW_DURATION_DESC - WINDOW_START_ASC - WINDOW_START_DESC -} - -""" -Represents an update to a `OrgLimitAggregate`. Fields that are set will be updated. -""" -input OrgLimitAggregatePatch { - """Entity (org) whose aggregate usage is being tracked""" - entityId: UUID - - """Entity type prefix (org, team, app, etc.) for interpreting entity_id""" - entityType: String - id: UUID - - """Maximum allowed aggregate usage; negative means unlimited""" - max: BigInt - - """Name identifier of the aggregate limit being tracked""" - name: String - - """Current aggregate usage count for this entity and limit""" - num: BigInt - - """Resolved billable organization via get_organization_id""" - organizationId: UUID - - """ - Temporary credits for the current billing window. Resets to 0 on window expiry. - """ - periodCredits: BigInt - - """ - 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 - - """ - Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. - """ - purchasedCredits: BigInt - - """ - Capacity reserved by child entities in budgeted allocation mode. Available = max - num - reserved. - """ - reserved: BigInt - - """Soft limit threshold for warnings; NULL means no soft limit""" - softMax: BigInt - - """ - Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window - """ - windowDuration: IntervalInput - - """Start of the current metering window; NULL means no time window""" - windowStart: Datetime -} - -""" -Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. -""" -type OrgLimitCap { - """Entity this cap override applies to""" - entityId: UUID! - id: UUID! - - """Override cap value for this entity""" - max: BigInt! - - """Name identifier of the cap being overridden""" - name: String! -} - -"""A connection to a list of `OrgLimitCap` values.""" -type OrgLimitCapConnection { - """ - A list of edges which contains the `OrgLimitCap` and cursor to aid in pagination. - """ - edges: [OrgLimitCapEdge]! - - """A list of `OrgLimitCap` objects.""" - nodes: [OrgLimitCap]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `OrgLimitCap` you could get from the connection.""" - totalCount: Int! -} - -"""A `OrgLimitCap` edge in the connection.""" -type OrgLimitCapEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `OrgLimitCap` at the end of the edge.""" - node: OrgLimitCap -} - -""" -A filter to be used against `OrgLimitCap` object types. All fields are combined with a logical ‘and.’ -""" -input OrgLimitCapFilter { - """Checks for all expressions in this list.""" - and: [OrgLimitCapFilter!] - - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter - - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `max` field.""" - max: BigIntFilter - - """Filter by the object’s `name` field.""" - name: StringFilter - - """Negates the expression.""" - not: OrgLimitCapFilter - - """Checks for any expressions in this list.""" - or: [OrgLimitCapFilter!] -} - -"""An input for mutations affecting `OrgLimitCap`""" -input OrgLimitCapInput { - """Entity this cap override applies to""" - entityId: UUID! - id: UUID - - """Override cap value for this entity""" - max: BigInt - - """Name identifier of the cap being overridden""" - name: String! -} - -"""Methods to use when ordering `OrgLimitCap`.""" -enum OrgLimitCapOrderBy { - ENTITY_ID_ASC - ENTITY_ID_DESC - ID_ASC - ID_DESC - MAX_ASC - MAX_DESC - NAME_ASC - NAME_DESC - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC -} - -""" -Represents an update to a `OrgLimitCap`. Fields that are set will be updated. -""" -input OrgLimitCapPatch { - """Entity this cap override applies to""" - entityId: UUID - id: UUID - - """Override cap value for this entity""" - max: BigInt - - """Name identifier of the cap being overridden""" - name: String -} - -""" -Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. -""" -type OrgLimitCapsDefault { - id: UUID! - - """ - Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. - """ - max: BigInt! - - """ - Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) - """ - name: String! -} - -"""A connection to a list of `OrgLimitCapsDefault` values.""" -type OrgLimitCapsDefaultConnection { - """ - A list of edges which contains the `OrgLimitCapsDefault` and cursor to aid in pagination. - """ - edges: [OrgLimitCapsDefaultEdge]! - - """A list of `OrgLimitCapsDefault` objects.""" - nodes: [OrgLimitCapsDefault]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `OrgLimitCapsDefault` you could get from the connection. - """ - totalCount: Int! -} - -"""A `OrgLimitCapsDefault` edge in the connection.""" -type OrgLimitCapsDefaultEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `OrgLimitCapsDefault` at the end of the edge.""" - node: OrgLimitCapsDefault -} - -""" -A filter to be used against `OrgLimitCapsDefault` object types. All fields are combined with a logical ‘and.’ -""" -input OrgLimitCapsDefaultFilter { - """Checks for all expressions in this list.""" - and: [OrgLimitCapsDefaultFilter!] - - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `max` field.""" - max: BigIntFilter - - """Filter by the object’s `name` field.""" - name: StringFilter - - """Negates the expression.""" - not: OrgLimitCapsDefaultFilter - - """Checks for any expressions in this list.""" - or: [OrgLimitCapsDefaultFilter!] -} - -"""An input for mutations affecting `OrgLimitCapsDefault`""" -input OrgLimitCapsDefaultInput { - id: UUID - - """ - Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. - """ - max: BigInt - - """ - Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) - """ - name: String! -} - -"""Methods to use when ordering `OrgLimitCapsDefault`.""" -enum OrgLimitCapsDefaultOrderBy { - ID_ASC - ID_DESC - MAX_ASC - MAX_DESC - NAME_ASC - NAME_DESC - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC -} - -""" -Represents an update to a `OrgLimitCapsDefault`. Fields that are set will be updated. -""" -input OrgLimitCapsDefaultPatch { - id: UUID - - """ - Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. - """ - max: BigInt - - """ - Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) - """ - name: String -} - -"""A connection to a list of `OrgLimit` values.""" -type OrgLimitConnection { - """ - A list of edges which contains the `OrgLimit` and cursor to aid in pagination. - """ - edges: [OrgLimitEdge]! - - """A list of `OrgLimit` objects.""" - nodes: [OrgLimit]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `OrgLimit` you could get from the connection.""" - totalCount: Int! -} - -""" -Append-only ledger of credit grants that automatically update limit ceilings -""" -type OrgLimitCredit { - """User this credit is for; NULL for aggregate entity-level credits""" - actorId: UUID - - """Number of credits to grant (positive to add, negative to revoke)""" - amount: BigInt! - - """ - Credit durability: permanent (survives window reset) or period (resets on window expiry) - """ - creditType: String! - - """ - Reads a single `OrgLimitDefault` that is related to this `OrgLimitCredit`. - """ - defaultLimit: OrgLimitDefault - - """FK to default_limits — which limit definition this credit applies to""" - defaultLimitId: UUID! - - """Entity this credit applies to; NULL for actor-only credits""" - entityId: UUID - - """Membership prefix identifying the entity kind (org, team, app)""" - entityType: String - id: UUID! - - """Resolved billable organization via get_organization_id""" - organizationId: UUID - - """Optional reason for the credit grant (promo code, admin grant, etc.)""" - reason: String -} - -"""A connection to a list of `OrgLimitCredit` values.""" -type OrgLimitCreditConnection { - """ - A list of edges which contains the `OrgLimitCredit` and cursor to aid in pagination. - """ - edges: [OrgLimitCreditEdge]! - - """A list of `OrgLimitCredit` objects.""" - nodes: [OrgLimitCredit]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `OrgLimitCredit` you could get from the connection.""" - totalCount: Int! -} - -"""A `OrgLimitCredit` edge in the connection.""" -type OrgLimitCreditEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `OrgLimitCredit` at the end of the edge.""" - node: OrgLimitCredit -} - -""" -A filter to be used against `OrgLimitCredit` object types. All fields are combined with a logical ‘and.’ -""" -input OrgLimitCreditFilter { - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter - - """Filter by the object’s `amount` field.""" - amount: BigIntFilter - - """Checks for all expressions in this list.""" - and: [OrgLimitCreditFilter!] - - """Filter by the object’s `creditType` field.""" - creditType: StringFilter - - """Filter by the object’s `defaultLimit` relation.""" - defaultLimit: OrgLimitDefaultFilter - - """Filter by the object’s `defaultLimitId` field.""" - defaultLimitId: UUIDFilter - - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter - - """Filter by the object’s `entityType` field.""" - entityType: StringFilter - - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Negates the expression.""" - not: OrgLimitCreditFilter - - """Checks for any expressions in this list.""" - or: [OrgLimitCreditFilter!] - - """Filter by the object’s `organizationId` field.""" - organizationId: UUIDFilter - - """Filter by the object’s `reason` field.""" - reason: StringFilter -} - -"""An input for mutations affecting `OrgLimitCredit`""" -input OrgLimitCreditInput { - """User this credit is for; NULL for aggregate entity-level credits""" - actorId: UUID - - """Number of credits to grant (positive to add, negative to revoke)""" - amount: BigInt! - - """ - Credit durability: permanent (survives window reset) or period (resets on window expiry) - """ - creditType: String - - """FK to default_limits — which limit definition this credit applies to""" - defaultLimitId: UUID! - - """Entity this credit applies to; NULL for actor-only credits""" - entityId: UUID - - """Membership prefix identifying the entity kind (org, team, app)""" - entityType: String - id: UUID - - """Resolved billable organization via get_organization_id""" - organizationId: UUID - - """Optional reason for the credit grant (promo code, admin grant, etc.)""" - reason: String -} - -"""Methods to use when ordering `OrgLimitCredit`.""" -enum OrgLimitCreditOrderBy { - ACTOR_ID_ASC - ACTOR_ID_DESC - AMOUNT_ASC - AMOUNT_DESC - CREDIT_TYPE_ASC - CREDIT_TYPE_DESC - DEFAULT_LIMIT_ID_ASC - DEFAULT_LIMIT_ID_DESC - ENTITY_ID_ASC - ENTITY_ID_DESC - ENTITY_TYPE_ASC - ENTITY_TYPE_DESC - ID_ASC - ID_DESC - NATURAL - ORGANIZATION_ID_ASC - ORGANIZATION_ID_DESC - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - REASON_ASC - REASON_DESC -} - -""" -Represents an update to a `OrgLimitCredit`. Fields that are set will be updated. -""" -input OrgLimitCreditPatch { - """User this credit is for; NULL for aggregate entity-level credits""" - actorId: UUID - - """Number of credits to grant (positive to add, negative to revoke)""" - amount: BigInt - - """ - Credit durability: permanent (survives window reset) or period (resets on window expiry) - """ - creditType: String - - """FK to default_limits — which limit definition this credit applies to""" - defaultLimitId: UUID - - """Entity this credit applies to; NULL for actor-only credits""" - entityId: UUID - - """Membership prefix identifying the entity kind (org, team, app)""" - entityType: String - id: UUID - - """Resolved billable organization via get_organization_id""" - organizationId: UUID - - """Optional reason for the credit grant (promo code, admin grant, etc.)""" - reason: String -} - -""" -Default maximum values for each named limit, applied when no per-actor override exists -""" -type OrgLimitDefault { - id: UUID! - - """Default maximum usage allowed for this limit""" - max: BigInt - - """Name identifier of the limit this default applies to""" - name: String! - - """Reads and enables pagination through a set of `OrgLimitCredit`.""" - orgLimitCreditsByDefaultLimitId( - """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 `OrgLimitCredit`.""" - orderBy: [OrgLimitCreditOrderBy!] = [PRIMARY_KEY_ASC] - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: OrgLimitCreditFilter - ): OrgLimitCreditConnection! - - """Default soft limit threshold for warnings; NULL means no soft limit""" - softMax: BigInt -} - -"""A connection to a list of `OrgLimitDefault` values.""" -type OrgLimitDefaultConnection { - """ - A list of edges which contains the `OrgLimitDefault` and cursor to aid in pagination. - """ - edges: [OrgLimitDefaultEdge]! - - """A list of `OrgLimitDefault` objects.""" - nodes: [OrgLimitDefault]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `OrgLimitDefault` you could get from the connection. - """ - totalCount: Int! -} - -"""A `OrgLimitDefault` edge in the connection.""" -type OrgLimitDefaultEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `OrgLimitDefault` at the end of the edge.""" - node: OrgLimitDefault -} - -""" -A filter to be used against `OrgLimitDefault` object types. All fields are combined with a logical ‘and.’ -""" -input OrgLimitDefaultFilter { - """Checks for all expressions in this list.""" - and: [OrgLimitDefaultFilter!] - - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `max` field.""" - max: BigIntFilter - - """Filter by the object’s `name` field.""" - name: StringFilter - - """Negates the expression.""" - not: OrgLimitDefaultFilter - - """Checks for any expressions in this list.""" - or: [OrgLimitDefaultFilter!] - - """Filter by the object’s `orgLimitCreditsByDefaultLimitId` relation.""" - orgLimitCreditsByDefaultLimitId: OrgLimitDefaultToManyOrgLimitCreditFilter - - """`orgLimitCreditsByDefaultLimitId` exist.""" - orgLimitCreditsByDefaultLimitIdExist: Boolean - - """Filter by the object’s `softMax` field.""" - softMax: BigIntFilter -} - -"""An input for mutations affecting `OrgLimitDefault`""" -input OrgLimitDefaultInput { - id: UUID - - """Default maximum usage allowed for this limit""" - max: BigInt - - """Name identifier of the limit this default applies to""" - name: String! - - """Default soft limit threshold for warnings; NULL means no soft limit""" - softMax: BigInt -} - -"""Methods to use when ordering `OrgLimitDefault`.""" -enum OrgLimitDefaultOrderBy { - ID_ASC - ID_DESC - MAX_ASC - MAX_DESC - NAME_ASC - NAME_DESC - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - SOFT_MAX_ASC - SOFT_MAX_DESC -} - -""" -Represents an update to a `OrgLimitDefault`. Fields that are set will be updated. -""" -input OrgLimitDefaultPatch { - id: UUID - - """Default maximum usage allowed for this limit""" - max: BigInt - - """Name identifier of the limit this default applies to""" - name: String - - """Default soft limit threshold for warnings; NULL means no soft limit""" - softMax: BigInt -} - -""" -A filter to be used against many `OrgLimitCredit` object types. All fields are combined with a logical ‘and.’ -""" -input OrgLimitDefaultToManyOrgLimitCreditFilter { - """Filters to entities where every related entity matches.""" - every: OrgLimitCreditFilter - - """Filters to entities where no related entity matches.""" - none: OrgLimitCreditFilter - - """Filters to entities where at least one related entity matches.""" - some: OrgLimitCreditFilter -} - -"""A `OrgLimit` edge in the connection.""" -type OrgLimitEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `OrgLimit` at the end of the edge.""" - node: OrgLimit -} - -"""Append-only log of limit events for historical reporting and audit""" -type OrgLimitEvent { - """User who triggered this event; NULL for system/aggregate events""" - actorId: UUID - createdAt: Datetime! - - """Change amount: positive for increment, negative for decrement""" - delta: BigInt - - """Entity this event applies to; NULL for app-level events""" - entityId: UUID - - """Entity type prefix (org, team, app, etc.) for interpreting entity_id""" - entityType: String - - """Event type: inc, dec, check, modify, transfer, apply_plan, reset""" - eventType: String - - """Unique identifier for each limit event""" - id: UUID! - - """Max limit ceiling at the time of this event""" - maxAtEvent: BigInt - - """Limit name this event applies to""" - name: String - - """Usage count after this event""" - numAfter: BigInt - - """Usage count before this event""" - numBefore: BigInt - - """ - Resolved billable organization via get_organization_id; NULL for app-level events - """ - organizationId: UUID - - """ - Optional reason or source: achievement, invite, plan_change, purchase, etc. - """ - reason: String -} - -"""A connection to a list of `OrgLimitEvent` values.""" -type OrgLimitEventConnection { - """ - A list of edges which contains the `OrgLimitEvent` and cursor to aid in pagination. - """ - edges: [OrgLimitEventEdge]! - - """A list of `OrgLimitEvent` objects.""" - nodes: [OrgLimitEvent]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `OrgLimitEvent` you could get from the connection.""" - totalCount: Int! -} - -"""A `OrgLimitEvent` edge in the connection.""" -type OrgLimitEventEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `OrgLimitEvent` at the end of the edge.""" - node: OrgLimitEvent -} - -""" -A filter to be used against `OrgLimitEvent` object types. All fields are combined with a logical ‘and.’ -""" -input OrgLimitEventFilter { - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter - - """Checks for all expressions in this list.""" - and: [OrgLimitEventFilter!] - - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter - - """Filter by the object’s `delta` field.""" - delta: BigIntFilter - - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter - - """Filter by the object’s `entityType` field.""" - entityType: StringFilter - - """Filter by the object’s `eventType` field.""" - eventType: StringFilter - - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `maxAtEvent` field.""" - maxAtEvent: BigIntFilter - - """Filter by the object’s `name` field.""" - name: StringFilter - - """Negates the expression.""" - not: OrgLimitEventFilter - - """Filter by the object’s `numAfter` field.""" - numAfter: BigIntFilter - - """Filter by the object’s `numBefore` field.""" - numBefore: BigIntFilter - - """Checks for any expressions in this list.""" - or: [OrgLimitEventFilter!] - - """Filter by the object’s `organizationId` field.""" - organizationId: UUIDFilter - - """Filter by the object’s `reason` field.""" - reason: StringFilter -} - -"""An input for mutations affecting `OrgLimitEvent`""" -input OrgLimitEventInput { - """User who triggered this event; NULL for system/aggregate events""" - actorId: UUID - createdAt: Datetime - - """Change amount: positive for increment, negative for decrement""" - delta: BigInt - - """Entity this event applies to; NULL for app-level events""" - entityId: UUID - - """Entity type prefix (org, team, app, etc.) for interpreting entity_id""" - entityType: String - - """Event type: inc, dec, check, modify, transfer, apply_plan, reset""" - eventType: String - - """Unique identifier for each limit event""" - id: UUID - - """Max limit ceiling at the time of this event""" - maxAtEvent: BigInt - - """Limit name this event applies to""" - name: String - - """Usage count after this event""" - numAfter: BigInt - - """Usage count before this event""" - numBefore: BigInt - - """ - Resolved billable organization via get_organization_id; NULL for app-level events - """ - organizationId: UUID - - """ - Optional reason or source: achievement, invite, plan_change, purchase, etc. - """ - reason: String -} - -"""Methods to use when ordering `OrgLimitEvent`.""" -enum OrgLimitEventOrderBy { - ACTOR_ID_ASC - ACTOR_ID_DESC - CREATED_AT_ASC - CREATED_AT_DESC - DELTA_ASC - DELTA_DESC - ENTITY_ID_ASC - ENTITY_ID_DESC - ENTITY_TYPE_ASC - ENTITY_TYPE_DESC - EVENT_TYPE_ASC - EVENT_TYPE_DESC - ID_ASC - ID_DESC - MAX_AT_EVENT_ASC - MAX_AT_EVENT_DESC - NAME_ASC - NAME_DESC - NATURAL - NUM_AFTER_ASC - NUM_AFTER_DESC - NUM_BEFORE_ASC - NUM_BEFORE_DESC - ORGANIZATION_ID_ASC - ORGANIZATION_ID_DESC - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - REASON_ASC - REASON_DESC -} - -""" -Represents an update to a `OrgLimitEvent`. Fields that are set will be updated. -""" -input OrgLimitEventPatch { - """User who triggered this event; NULL for system/aggregate events""" - actorId: UUID - createdAt: Datetime - - """Change amount: positive for increment, negative for decrement""" - delta: BigInt - - """Entity this event applies to; NULL for app-level events""" - entityId: UUID - - """Entity type prefix (org, team, app, etc.) for interpreting entity_id""" - entityType: String - - """Event type: inc, dec, check, modify, transfer, apply_plan, reset""" - eventType: String - - """Unique identifier for each limit event""" - id: UUID - - """Max limit ceiling at the time of this event""" - maxAtEvent: BigInt - - """Limit name this event applies to""" - name: String - - """Usage count after this event""" - numAfter: BigInt - - """Usage count before this event""" - numBefore: BigInt - - """ - Resolved billable organization via get_organization_id; NULL for app-level events - """ - organizationId: UUID - - """ - Optional reason or source: achievement, invite, plan_change, purchase, etc. - """ - reason: String -} - -""" -A filter to be used against `OrgLimit` object types. All fields are combined with a logical ‘and.’ -""" -input OrgLimitFilter { - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter - - """Checks for all expressions in this list.""" - and: [OrgLimitFilter!] - - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter - - """Filter by the object’s `entityType` field.""" - entityType: StringFilter - - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `max` field.""" - max: BigIntFilter - - """Filter by the object’s `name` field.""" - name: StringFilter - - """Negates the expression.""" - not: OrgLimitFilter - - """Filter by the object’s `num` field.""" - num: BigIntFilter - - """Checks for any expressions in this list.""" - or: [OrgLimitFilter!] - - """Filter by the object’s `organizationId` field.""" - organizationId: UUIDFilter - - """Filter by the object’s `periodCredits` field.""" - periodCredits: BigIntFilter - - """Filter by the object’s `planMax` field.""" - planMax: BigIntFilter - - """Filter by the object’s `purchasedCredits` field.""" - purchasedCredits: BigIntFilter - - """Filter by the object’s `softMax` field.""" - softMax: BigIntFilter - - """Filter by the object’s `windowDuration` field.""" - windowDuration: IntervalFilter - - """Filter by the object’s `windowStart` field.""" - windowStart: DatetimeFilter -} - -"""An input for mutations affecting `OrgLimit`""" -input OrgLimitInput { - """User whose usage is being tracked against this limit""" - actorId: UUID! - entityId: UUID! - - """Entity type prefix (org, team, app, etc.) for interpreting entity_id""" - entityType: String - id: UUID - - """ - Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. - """ - max: BigInt - - """Name identifier of the limit being tracked""" - name: String - - """Current usage count for this actor and limit""" - num: BigInt - - """Resolved billable organization via get_organization_id""" - organizationId: UUID - - """ - Temporary credits for the current billing window. Resets to 0 on window expiry. - """ - periodCredits: BigInt - - """ - 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 - - """ - Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. - """ - purchasedCredits: BigInt - - """ - Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. - """ - softMax: BigInt - - """ - Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window - """ - windowDuration: IntervalInput - - """Start of the current metering window; NULL means no time window""" - windowStart: Datetime -} - -"""Methods to use when ordering `OrgLimit`.""" -enum OrgLimitOrderBy { - ACTOR_ID_ASC - ACTOR_ID_DESC - ENTITY_ID_ASC - ENTITY_ID_DESC - ENTITY_TYPE_ASC - ENTITY_TYPE_DESC - ID_ASC - ID_DESC - MAX_ASC - MAX_DESC - NAME_ASC - NAME_DESC - NATURAL - NUM_ASC - NUM_DESC - ORGANIZATION_ID_ASC - ORGANIZATION_ID_DESC - PERIOD_CREDITS_ASC - PERIOD_CREDITS_DESC - PLAN_MAX_ASC - PLAN_MAX_DESC - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - PURCHASED_CREDITS_ASC - PURCHASED_CREDITS_DESC - SOFT_MAX_ASC - SOFT_MAX_DESC - WINDOW_DURATION_ASC - WINDOW_DURATION_DESC - WINDOW_START_ASC - WINDOW_START_DESC -} - -""" -Represents an update to a `OrgLimit`. Fields that are set will be updated. -""" -input OrgLimitPatch { - """User whose usage is being tracked against this limit""" - actorId: UUID - entityId: UUID - - """Entity type prefix (org, team, app, etc.) for interpreting entity_id""" - entityType: String - id: UUID - - """ - Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. - """ - max: BigInt - - """Name identifier of the limit being tracked""" - name: String - - """Current usage count for this actor and limit""" - num: BigInt - - """Resolved billable organization via get_organization_id""" - organizationId: UUID - - """ - Temporary credits for the current billing window. Resets to 0 on window expiry. - """ - periodCredits: BigInt - - """ - 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 - - """ - Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. - """ - purchasedCredits: BigInt - - """ - Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. - """ - softMax: BigInt - - """ - Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window - """ - windowDuration: IntervalInput - - """Start of the current metering window; NULL means no time window""" - windowStart: Datetime -} - -""" -Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. -""" -type OrgLimitWarning { - """Per-entity override (NULL = scope default for all entities)""" - entityId: UUID - id: UUID! - - """Limit name this warning applies to (must match a default_limits entry)""" - name: String! - - """ - Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) - """ - taskIdentifier: String! - - """ - Threshold value — either an absolute count or a percentage (1-100) depending on warning_type - """ - thresholdValue: BigInt! - - """Threshold type: absolute (fixed count) or percentage (of max)""" - warningType: String! -} + """Creates a single `AppLimitCreditCode`.""" + createAppLimitCreditCode( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAppLimitCreditCodeInput! + ): CreateAppLimitCreditCodePayload -"""A connection to a list of `OrgLimitWarning` values.""" -type OrgLimitWarningConnection { - """ - A list of edges which contains the `OrgLimitWarning` and cursor to aid in pagination. - """ - edges: [OrgLimitWarningEdge]! + """Creates a single `AppLimitCreditCodeItem`.""" + createAppLimitCreditCodeItem( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAppLimitCreditCodeItemInput! + ): CreateAppLimitCreditCodeItemPayload - """A list of `OrgLimitWarning` objects.""" - nodes: [OrgLimitWarning]! + """Creates a single `AppLimitCreditRedemption`.""" + createAppLimitCreditRedemption( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAppLimitCreditRedemptionInput! + ): CreateAppLimitCreditRedemptionPayload - """Information to aid in pagination.""" - pageInfo: PageInfo! + """Creates a single `AppLimitDefault`.""" + createAppLimitDefault( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAppLimitDefaultInput! + ): CreateAppLimitDefaultPayload - """ - The count of *all* `OrgLimitWarning` you could get from the connection. - """ - totalCount: Int! -} + """Creates a single `AppLimitEvent`.""" + createAppLimitEvent( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAppLimitEventInput! + ): CreateAppLimitEventPayload -"""A `OrgLimitWarning` edge in the connection.""" -type OrgLimitWarningEdge { - """A cursor for use in pagination.""" - cursor: Cursor + """Creates a single `AppLimitWarning`.""" + createAppLimitWarning( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAppLimitWarningInput! + ): CreateAppLimitWarningPayload - """The `OrgLimitWarning` at the end of the edge.""" - node: OrgLimitWarning -} + """Creates a single `OrgLimit`.""" + createOrgLimit( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateOrgLimitInput! + ): CreateOrgLimitPayload -""" -A filter to be used against `OrgLimitWarning` object types. All fields are combined with a logical ‘and.’ -""" -input OrgLimitWarningFilter { - """Checks for all expressions in this list.""" - and: [OrgLimitWarningFilter!] + """Creates a single `OrgLimitAggregate`.""" + createOrgLimitAggregate( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateOrgLimitAggregateInput! + ): CreateOrgLimitAggregatePayload - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter + """Creates a single `OrgLimitCap`.""" + createOrgLimitCap( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateOrgLimitCapInput! + ): CreateOrgLimitCapPayload - """Filter by the object’s `id` field.""" - id: UUIDFilter + """Creates a single `OrgLimitCapsDefault`.""" + createOrgLimitCapsDefault( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateOrgLimitCapsDefaultInput! + ): CreateOrgLimitCapsDefaultPayload - """Filter by the object’s `name` field.""" - name: StringFilter + """Creates a single `OrgLimitCredit`.""" + createOrgLimitCredit( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateOrgLimitCreditInput! + ): CreateOrgLimitCreditPayload - """Negates the expression.""" - not: OrgLimitWarningFilter + """Creates a single `OrgLimitDefault`.""" + createOrgLimitDefault( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateOrgLimitDefaultInput! + ): CreateOrgLimitDefaultPayload - """Checks for any expressions in this list.""" - or: [OrgLimitWarningFilter!] + """Creates a single `OrgLimitEvent`.""" + createOrgLimitEvent( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateOrgLimitEventInput! + ): CreateOrgLimitEventPayload - """Filter by the object’s `taskIdentifier` field.""" - taskIdentifier: StringFilter + """Creates a single `OrgLimitWarning`.""" + createOrgLimitWarning( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateOrgLimitWarningInput! + ): CreateOrgLimitWarningPayload - """Filter by the object’s `thresholdValue` field.""" - thresholdValue: BigIntFilter + """Deletes a single `AppLimit` using a unique key.""" + deleteAppLimit( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAppLimitInput! + ): DeleteAppLimitPayload - """Filter by the object’s `warningType` field.""" - warningType: StringFilter -} + """Deletes a single `AppLimitCap` using a unique key.""" + deleteAppLimitCap( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAppLimitCapInput! + ): DeleteAppLimitCapPayload -"""An input for mutations affecting `OrgLimitWarning`""" -input OrgLimitWarningInput { - """Per-entity override (NULL = scope default for all entities)""" - entityId: UUID - id: UUID + """Deletes a single `AppLimitCapsDefault` using a unique key.""" + deleteAppLimitCapsDefault( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAppLimitCapsDefaultInput! + ): DeleteAppLimitCapsDefaultPayload - """Limit name this warning applies to (must match a default_limits entry)""" - name: String! + """Deletes a single `AppLimitCredit` using a unique key.""" + deleteAppLimitCredit( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAppLimitCreditInput! + ): DeleteAppLimitCreditPayload - """ - Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) - """ - taskIdentifier: String! + """Deletes a single `AppLimitCreditCode` using a unique key.""" + deleteAppLimitCreditCode( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAppLimitCreditCodeInput! + ): DeleteAppLimitCreditCodePayload - """ - Threshold value — either an absolute count or a percentage (1-100) depending on warning_type - """ - thresholdValue: BigInt! + """Deletes a single `AppLimitCreditCodeItem` using a unique key.""" + deleteAppLimitCreditCodeItem( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAppLimitCreditCodeItemInput! + ): DeleteAppLimitCreditCodeItemPayload - """Threshold type: absolute (fixed count) or percentage (of max)""" - warningType: String! -} + """Deletes a single `AppLimitCreditRedemption` using a unique key.""" + deleteAppLimitCreditRedemption( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAppLimitCreditRedemptionInput! + ): DeleteAppLimitCreditRedemptionPayload -"""Methods to use when ordering `OrgLimitWarning`.""" -enum OrgLimitWarningOrderBy { - ENTITY_ID_ASC - ENTITY_ID_DESC - ID_ASC - ID_DESC - NAME_ASC - NAME_DESC - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - TASK_IDENTIFIER_ASC - TASK_IDENTIFIER_DESC - THRESHOLD_VALUE_ASC - THRESHOLD_VALUE_DESC - WARNING_TYPE_ASC - WARNING_TYPE_DESC -} + """Deletes a single `AppLimitDefault` using a unique key.""" + deleteAppLimitDefault( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAppLimitDefaultInput! + ): DeleteAppLimitDefaultPayload -""" -Represents an update to a `OrgLimitWarning`. Fields that are set will be updated. -""" -input OrgLimitWarningPatch { - """Per-entity override (NULL = scope default for all entities)""" - entityId: UUID - id: UUID + """Deletes a single `AppLimitEvent` using a unique key.""" + deleteAppLimitEvent( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAppLimitEventInput! + ): DeleteAppLimitEventPayload - """Limit name this warning applies to (must match a default_limits entry)""" - name: String + """Deletes a single `AppLimitWarning` using a unique key.""" + deleteAppLimitWarning( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAppLimitWarningInput! + ): DeleteAppLimitWarningPayload - """ - Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) - """ - taskIdentifier: String + """Deletes a single `OrgLimit` using a unique key.""" + deleteOrgLimit( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteOrgLimitInput! + ): DeleteOrgLimitPayload - """ - Threshold value — either an absolute count or a percentage (1-100) depending on warning_type - """ - thresholdValue: BigInt + """Deletes a single `OrgLimitAggregate` using a unique key.""" + deleteOrgLimitAggregate( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteOrgLimitAggregateInput! + ): DeleteOrgLimitAggregatePayload - """Threshold type: absolute (fixed count) or percentage (of max)""" - warningType: String -} + """Deletes a single `OrgLimitCap` using a unique key.""" + deleteOrgLimitCap( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteOrgLimitCapInput! + ): DeleteOrgLimitCapPayload -"""Information about pagination in a connection.""" -type PageInfo { - """When paginating forwards, the cursor to continue.""" - endCursor: Cursor + """Deletes a single `OrgLimitCapsDefault` using a unique key.""" + deleteOrgLimitCapsDefault( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteOrgLimitCapsDefaultInput! + ): DeleteOrgLimitCapsDefaultPayload - """When paginating forwards, are there more items?""" - hasNextPage: Boolean! + """Deletes a single `OrgLimitCredit` using a unique key.""" + deleteOrgLimitCredit( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteOrgLimitCreditInput! + ): DeleteOrgLimitCreditPayload - """When paginating backwards, are there more items?""" - hasPreviousPage: Boolean! + """Deletes a single `OrgLimitDefault` using a unique key.""" + deleteOrgLimitDefault( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteOrgLimitDefaultInput! + ): DeleteOrgLimitDefaultPayload - """When paginating backwards, the cursor to continue.""" - startCursor: Cursor -} + """Deletes a single `OrgLimitEvent` using a unique key.""" + deleteOrgLimitEvent( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteOrgLimitEventInput! + ): DeleteOrgLimitEventPayload -"""Defines plan tiers with named limit configurations""" -type Plan { - """Human-readable description of the plan tier""" - description: String - id: UUID! + """Deletes a single `OrgLimitWarning` using a unique key.""" + deleteOrgLimitWarning( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteOrgLimitWarningInput! + ): DeleteOrgLimitWarningPayload - """Whether this plan can currently be applied to entities""" - isActive: Boolean + """ + Reconcile an S3 bucket for a logical bucket in the database. + Reads the bucket config via RLS, then enqueues the same + storage:provision_bucket job used by the INSERT trigger. This is + idempotent for an already-reconciled bucket; enqueue failures become + GraphQL errors. + """ + provisionBucket( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: ProvisionBucketInput! + ): ProvisionBucketPayload + seedAppLimitCapsDefaults( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: SeedAppLimitCapsDefaultsInput! + ): SeedAppLimitCapsDefaultsPayload + seedAppLimitDefaults( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: SeedAppLimitDefaultsInput! + ): SeedAppLimitDefaultsPayload + seedOrgLimitCapsDefaults( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: SeedOrgLimitCapsDefaultsInput! + ): SeedOrgLimitCapsDefaultsPayload + seedOrgLimitDefaults( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: SeedOrgLimitDefaultsInput! + ): SeedOrgLimitDefaultsPayload - """Unique name identifier of the plan (e.g. free, pro, enterprise)""" - name: String! + """Updates a single `AppLimit` using a unique key and a patch.""" + updateAppLimit( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAppLimitInput! + ): UpdateAppLimitPayload - """Reads and enables pagination through a set of `PlanCap`.""" - planCaps( - """Read all values in the set after (below) this cursor.""" - after: Cursor + """Updates a single `AppLimitCap` using a unique key and a patch.""" + updateAppLimitCap( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAppLimitCapInput! + ): UpdateAppLimitCapPayload - """Read all values in the set before (above) this cursor.""" - before: Cursor + """Updates a single `AppLimitCapsDefault` using a unique key and a patch.""" + updateAppLimitCapsDefault( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAppLimitCapsDefaultInput! + ): UpdateAppLimitCapsDefaultPayload - """Only read the first `n` values of the set.""" - first: Int + """Updates a single `AppLimitCredit` using a unique key and a patch.""" + updateAppLimitCredit( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAppLimitCreditInput! + ): UpdateAppLimitCreditPayload - """Only read the last `n` values of the set.""" - last: Int + """Updates a single `AppLimitCreditCode` using a unique key and a patch.""" + updateAppLimitCreditCode( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAppLimitCreditCodeInput! + ): UpdateAppLimitCreditCodePayload + """ + Updates a single `AppLimitCreditCodeItem` using a unique key and a patch. + """ + updateAppLimitCreditCodeItem( """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - offset: Int - - """The method to use when ordering `PlanCap`.""" - orderBy: [PlanCapOrderBy!] = [PRIMARY_KEY_ASC] + input: UpdateAppLimitCreditCodeItemInput! + ): UpdateAppLimitCreditCodeItemPayload + """ + Updates a single `AppLimitCreditRedemption` using a unique key and a patch. + """ + updateAppLimitCreditRedemption( """ - A filter to be used in determining which values should be returned by the collection. + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - where: PlanCapFilter - ): PlanCapConnection! - - """Reads and enables pagination through a set of `PlanLimit`.""" - planLimits( - """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 + input: UpdateAppLimitCreditRedemptionInput! + ): UpdateAppLimitCreditRedemptionPayload + """Updates a single `AppLimitDefault` using a unique key and a patch.""" + updateAppLimitDefault( """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - offset: Int - - """The method to use when ordering `PlanLimit`.""" - orderBy: [PlanLimitOrderBy!] = [PRIMARY_KEY_ASC] + input: UpdateAppLimitDefaultInput! + ): UpdateAppLimitDefaultPayload + """Updates a single `AppLimitEvent` using a unique key and a patch.""" + updateAppLimitEvent( """ - A filter to be used in determining which values should be returned by the collection. + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - where: PlanLimitFilter - ): PlanLimitConnection! - - """Reads and enables pagination through a set of `PlanMeterLimit`.""" - planMeterLimits( - """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 + input: UpdateAppLimitEventInput! + ): UpdateAppLimitEventPayload + """Updates a single `AppLimitWarning` using a unique key and a patch.""" + updateAppLimitWarning( """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - offset: Int - - """The method to use when ordering `PlanMeterLimit`.""" - orderBy: [PlanMeterLimitOrderBy!] = [PRIMARY_KEY_ASC] + input: UpdateAppLimitWarningInput! + ): UpdateAppLimitWarningPayload + """Updates a single `OrgLimit` using a unique key and a patch.""" + updateOrgLimit( """ - A filter to be used in determining which values should be returned by the collection. + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - where: PlanMeterLimitFilter - ): PlanMeterLimitConnection! - - """Reads and enables pagination through a set of `PlanPricing`.""" - planPricings( - """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 + input: UpdateOrgLimitInput! + ): UpdateOrgLimitPayload + """Updates a single `OrgLimitAggregate` using a unique key and a patch.""" + updateOrgLimitAggregate( """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - offset: Int - - """The method to use when ordering `PlanPricing`.""" - orderBy: [PlanPricingOrderBy!] = [PRIMARY_KEY_ASC] + input: UpdateOrgLimitAggregateInput! + ): UpdateOrgLimitAggregatePayload + """Updates a single `OrgLimitCap` using a unique key and a patch.""" + updateOrgLimitCap( """ - A filter to be used in determining which values should be returned by the collection. + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - where: PlanPricingFilter - ): PlanPricingConnection! - - """Reads and enables pagination through a set of `PlanSubscription`.""" - planSubscriptions( - """Read all values in the set after (below) this cursor.""" - after: Cursor - - """Read all values in the set before (above) this cursor.""" - before: Cursor + input: UpdateOrgLimitCapInput! + ): UpdateOrgLimitCapPayload - """Only read the first `n` values of the set.""" - first: Int + """Updates a single `OrgLimitCapsDefault` using a unique key and a patch.""" + updateOrgLimitCapsDefault( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateOrgLimitCapsDefaultInput! + ): UpdateOrgLimitCapsDefaultPayload - """Only read the last `n` values of the set.""" - last: Int + """Updates a single `OrgLimitCredit` using a unique key and a patch.""" + updateOrgLimitCredit( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateOrgLimitCreditInput! + ): UpdateOrgLimitCreditPayload + """Updates a single `OrgLimitDefault` using a unique key and a patch.""" + updateOrgLimitDefault( """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - offset: Int + input: UpdateOrgLimitDefaultInput! + ): UpdateOrgLimitDefaultPayload - """The method to use when ordering `PlanSubscription`.""" - orderBy: [PlanSubscriptionOrderBy!] = [PRIMARY_KEY_ASC] + """Updates a single `OrgLimitEvent` using a unique key and a patch.""" + updateOrgLimitEvent( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateOrgLimitEventInput! + ): UpdateOrgLimitEventPayload + """Updates a single `OrgLimitWarning` using a unique key and a patch.""" + updateOrgLimitWarning( """ - A filter to be used in determining which values should be returned by the collection. + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - where: PlanSubscriptionFilter - ): PlanSubscriptionConnection! + input: UpdateOrgLimitWarningInput! + ): UpdateOrgLimitWarningPayload } -""" -Maps each plan to feature flag cap values (written to limit_caps when plan is applied) -""" -type PlanCap { - """ - Name of the cap/feature flag this plan sets (must match a name in caps_defaults or limit_caps) - """ - capName: String! +"""Tracks per-actor usage counts against configurable maximum limits""" +type OrgLimit { + """User whose usage is being tracked against this limit""" + actorId: UUID! + entityId: UUID! + + """Entity type prefix (org, team, app, etc.) for interpreting entity_id""" + entityType: String + id: UUID! """ - Cap value to set when this plan is applied. Convention: 0=disabled, 1=enabled, N=numeric cap, negative=unlimited + Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. """ - capValue: BigInt! - id: UUID! + max: BigInt + + """Name identifier of the limit being tracked""" + name: String - """Reads a single `Plan` that is related to this `PlanCap`.""" - plan: Plan + """Current usage count for this actor and limit""" + num: BigInt - """Reference to the plan this cap setting belongs to""" - planId: UUID! -} + """Resolved billable organization via get_organization_id""" + organizationId: UUID -"""A connection to a list of `PlanCap` values.""" -type PlanCapConnection { """ - A list of edges which contains the `PlanCap` and cursor to aid in pagination. + Temporary credits for the current billing window. Resets to 0 on window expiry. """ - edges: [PlanCapEdge]! + periodCredits: BigInt - """A list of `PlanCap` objects.""" - nodes: [PlanCap]! + """ + 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 - """Information to aid in pagination.""" - pageInfo: PageInfo! + """ + Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. + """ + purchasedCredits: BigInt - """The count of *all* `PlanCap` you could get from the connection.""" - totalCount: Int! -} + """ + Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. + """ + softMax: BigInt -"""A `PlanCap` edge in the connection.""" -type PlanCapEdge { - """A cursor for use in pagination.""" - cursor: Cursor + """ + Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window + """ + windowDuration: Interval - """The `PlanCap` at the end of the edge.""" - node: PlanCap + """Start of the current metering window; NULL means no time window""" + windowStart: Datetime } """ -A filter to be used against `PlanCap` object types. All fields are combined with a logical ‘and.’ +Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) """ -input PlanCapFilter { - """Checks for all expressions in this list.""" - and: [PlanCapFilter!] - - """Filter by the object’s `capName` field.""" - capName: StringFilter - - """Filter by the object’s `capValue` field.""" - capValue: BigIntFilter +type OrgLimitAggregate { + """Entity (org) whose aggregate usage is being tracked""" + entityId: UUID! - """Filter by the object’s `id` field.""" - id: UUIDFilter + """Entity type prefix (org, team, app, etc.) for interpreting entity_id""" + entityType: String + id: UUID! - """Negates the expression.""" - not: PlanCapFilter + """Maximum allowed aggregate usage; negative means unlimited""" + max: BigInt - """Checks for any expressions in this list.""" - or: [PlanCapFilter!] + """Name identifier of the aggregate limit being tracked""" + name: String - """Filter by the object’s `plan` relation.""" - plan: PlanFilter + """Current aggregate usage count for this entity and limit""" + num: BigInt - """Filter by the object’s `planId` field.""" - planId: UUIDFilter -} + """Resolved billable organization via get_organization_id""" + organizationId: UUID -"""An input for mutations affecting `PlanCap`""" -input PlanCapInput { """ - Name of the cap/feature flag this plan sets (must match a name in caps_defaults or limit_caps) + Temporary credits for the current billing window. Resets to 0 on window expiry. """ - capName: String! + periodCredits: BigInt """ - Cap value to set when this plan is applied. Convention: 0=disabled, 1=enabled, N=numeric cap, negative=unlimited + 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. """ - capValue: BigInt - id: UUID - - """Reference to the plan this cap setting belongs to""" - planId: UUID! -} + planMax: BigInt -"""Methods to use when ordering `PlanCap`.""" -enum PlanCapOrderBy { - CAP_NAME_ASC - CAP_NAME_DESC - CAP_VALUE_ASC - CAP_VALUE_DESC - ID_ASC - ID_DESC - NATURAL - PLAN_ID_ASC - PLAN_ID_DESC - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC -} + """ + Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. + """ + purchasedCredits: BigInt -""" -Represents an update to a `PlanCap`. Fields that are set will be updated. -""" -input PlanCapPatch { """ - Name of the cap/feature flag this plan sets (must match a name in caps_defaults or limit_caps) + Capacity reserved by child entities in budgeted allocation mode. Available = max - num - reserved. """ - capName: String + reserved: BigInt + + """Soft limit threshold for warnings; NULL means no soft limit""" + softMax: BigInt """ - Cap value to set when this plan is applied. Convention: 0=disabled, 1=enabled, N=numeric cap, negative=unlimited + Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window """ - capValue: BigInt - id: UUID + windowDuration: Interval - """Reference to the plan this cap setting belongs to""" - planId: UUID + """Start of the current metering window; NULL means no time window""" + windowStart: Datetime } -"""A connection to a list of `Plan` values.""" -type PlanConnection { +"""A connection to a list of `OrgLimitAggregate` values.""" +type OrgLimitAggregateConnection { """ - A list of edges which contains the `Plan` and cursor to aid in pagination. + A list of edges which contains the `OrgLimitAggregate` and cursor to aid in pagination. """ - edges: [PlanEdge]! + edges: [OrgLimitAggregateEdge]! - """A list of `Plan` objects.""" - nodes: [Plan]! + """A list of `OrgLimitAggregate` objects.""" + nodes: [OrgLimitAggregate]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `Plan` you could get from the connection.""" + """ + The count of *all* `OrgLimitAggregate` you could get from the connection. + """ totalCount: Int! } -"""A `Plan` edge in the connection.""" -type PlanEdge { +"""A `OrgLimitAggregate` edge in the connection.""" +type OrgLimitAggregateEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `Plan` at the end of the edge.""" - node: Plan + """The `OrgLimitAggregate` at the end of the edge.""" + node: OrgLimitAggregate } """ -A filter to be used against `Plan` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `OrgLimitAggregate` object types. All fields are combined with a logical ‘and.’ """ -input PlanFilter { +input OrgLimitAggregateFilter { """Checks for all expressions in this list.""" - and: [PlanFilter!] + and: [OrgLimitAggregateFilter!] - """Filter by the object’s `description` field.""" - description: StringFilter + """Filter by the object’s `entityId` field.""" + entityId: UUIDFilter + + """Filter by the object’s `entityType` field.""" + entityType: StringFilter """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `isActive` field.""" - isActive: BooleanFilter + """Filter by the object’s `max` field.""" + max: BigIntFilter """Filter by the object’s `name` field.""" name: StringFilter """Negates the expression.""" - not: PlanFilter - - """Checks for any expressions in this list.""" - or: [PlanFilter!] + not: OrgLimitAggregateFilter - """Filter by the object’s `planCaps` relation.""" - planCaps: PlanToManyPlanCapFilter + """Filter by the object’s `num` field.""" + num: BigIntFilter - """`planCaps` exist.""" - planCapsExist: Boolean + """Checks for any expressions in this list.""" + or: [OrgLimitAggregateFilter!] - """Filter by the object’s `planLimits` relation.""" - planLimits: PlanToManyPlanLimitFilter + """Filter by the object’s `organizationId` field.""" + organizationId: UUIDFilter - """`planLimits` exist.""" - planLimitsExist: Boolean + """Filter by the object’s `periodCredits` field.""" + periodCredits: BigIntFilter - """Filter by the object’s `planMeterLimits` relation.""" - planMeterLimits: PlanToManyPlanMeterLimitFilter + """Filter by the object’s `planMax` field.""" + planMax: BigIntFilter - """`planMeterLimits` exist.""" - planMeterLimitsExist: Boolean + """Filter by the object’s `purchasedCredits` field.""" + purchasedCredits: BigIntFilter - """Filter by the object’s `planPricings` relation.""" - planPricings: PlanToManyPlanPricingFilter + """Filter by the object’s `reserved` field.""" + reserved: BigIntFilter - """`planPricings` exist.""" - planPricingsExist: Boolean + """Filter by the object’s `softMax` field.""" + softMax: BigIntFilter - """Filter by the object’s `planSubscriptions` relation.""" - planSubscriptions: PlanToManyPlanSubscriptionFilter + """Filter by the object’s `windowDuration` field.""" + windowDuration: IntervalFilter - """`planSubscriptions` exist.""" - planSubscriptionsExist: Boolean + """Filter by the object’s `windowStart` field.""" + windowStart: DatetimeFilter } -"""An input for mutations affecting `Plan`""" -input PlanInput { - """Human-readable description of the plan tier""" - description: String +"""An input for mutations affecting `OrgLimitAggregate`""" +input OrgLimitAggregateInput { + """Entity (org) whose aggregate usage is being tracked""" + entityId: UUID! + + """Entity type prefix (org, team, app, etc.) for interpreting entity_id""" + entityType: String id: UUID - """Whether this plan can currently be applied to entities""" - isActive: Boolean + """Maximum allowed aggregate usage; negative means unlimited""" + max: BigInt + + """Name identifier of the aggregate limit being tracked""" + name: String - """Unique name identifier of the plan (e.g. free, pro, enterprise)""" - name: String! -} + """Current aggregate usage count for this entity and limit""" + num: BigInt -""" -Maps each plan to specific limit names and their maximum allowed values -""" -type PlanLimit { - id: UUID! + """Resolved billable organization via get_organization_id""" + organizationId: UUID """ - Name of the limit this plan sets (must match the name field in a limits table) + Temporary credits for the current billing window. Resets to 0 on window expiry. """ - limitName: String! + periodCredits: BigInt """ - Maximum value to set on the limit when this plan is applied; negative means unlimited + 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. """ - maxValue: BigInt! - - """Reads a single `Plan` that is related to this `PlanLimit`.""" - plan: Plan + planMax: BigInt - """Reference to the plan this limit configuration belongs to""" - planId: UUID! -} + """ + Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. + """ + purchasedCredits: BigInt -"""A connection to a list of `PlanLimit` values.""" -type PlanLimitConnection { """ - A list of edges which contains the `PlanLimit` and cursor to aid in pagination. + Capacity reserved by child entities in budgeted allocation mode. Available = max - num - reserved. """ - edges: [PlanLimitEdge]! + reserved: BigInt - """A list of `PlanLimit` objects.""" - nodes: [PlanLimit]! + """Soft limit threshold for warnings; NULL means no soft limit""" + softMax: BigInt - """Information to aid in pagination.""" - pageInfo: PageInfo! + """ + Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window + """ + windowDuration: IntervalInput - """The count of *all* `PlanLimit` you could get from the connection.""" - totalCount: Int! + """Start of the current metering window; NULL means no time window""" + windowStart: Datetime } -"""A `PlanLimit` edge in the connection.""" -type PlanLimitEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `PlanLimit` at the end of the edge.""" - node: PlanLimit +"""Methods to use when ordering `OrgLimitAggregate`.""" +enum OrgLimitAggregateOrderBy { + ENTITY_ID_ASC + ENTITY_ID_DESC + ENTITY_TYPE_ASC + ENTITY_TYPE_DESC + ID_ASC + ID_DESC + MAX_ASC + MAX_DESC + NAME_ASC + NAME_DESC + NATURAL + NUM_ASC + NUM_DESC + ORGANIZATION_ID_ASC + ORGANIZATION_ID_DESC + PERIOD_CREDITS_ASC + PERIOD_CREDITS_DESC + PLAN_MAX_ASC + PLAN_MAX_DESC + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + PURCHASED_CREDITS_ASC + PURCHASED_CREDITS_DESC + RESERVED_ASC + RESERVED_DESC + SOFT_MAX_ASC + SOFT_MAX_DESC + WINDOW_DURATION_ASC + WINDOW_DURATION_DESC + WINDOW_START_ASC + WINDOW_START_DESC } """ -A filter to be used against `PlanLimit` object types. All fields are combined with a logical ‘and.’ +Represents an update to a `OrgLimitAggregate`. Fields that are set will be updated. """ -input PlanLimitFilter { - """Checks for all expressions in this list.""" - and: [PlanLimitFilter!] - - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `limitName` field.""" - limitName: StringFilter - - """Filter by the object’s `maxValue` field.""" - maxValue: BigIntFilter +input OrgLimitAggregatePatch { + """Entity (org) whose aggregate usage is being tracked""" + entityId: UUID - """Negates the expression.""" - not: PlanLimitFilter + """Entity type prefix (org, team, app, etc.) for interpreting entity_id""" + entityType: String + id: UUID - """Checks for any expressions in this list.""" - or: [PlanLimitFilter!] + """Maximum allowed aggregate usage; negative means unlimited""" + max: BigInt - """Filter by the object’s `plan` relation.""" - plan: PlanFilter + """Name identifier of the aggregate limit being tracked""" + name: String - """Filter by the object’s `planId` field.""" - planId: UUIDFilter -} + """Current aggregate usage count for this entity and limit""" + num: BigInt -"""An input for mutations affecting `PlanLimit`""" -input PlanLimitInput { - id: UUID + """Resolved billable organization via get_organization_id""" + organizationId: UUID """ - Name of the limit this plan sets (must match the name field in a limits table) + Temporary credits for the current billing window. Resets to 0 on window expiry. """ - limitName: String! + periodCredits: BigInt """ - Maximum value to set on the limit when this plan is applied; negative means unlimited + 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. """ - maxValue: BigInt! - - """Reference to the plan this limit configuration belongs to""" - planId: UUID! -} - -"""Methods to use when ordering `PlanLimit`.""" -enum PlanLimitOrderBy { - ID_ASC - ID_DESC - LIMIT_NAME_ASC - LIMIT_NAME_DESC - MAX_VALUE_ASC - MAX_VALUE_DESC - NATURAL - PLAN_ID_ASC - PLAN_ID_DESC - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC -} + planMax: BigInt -""" -Represents an update to a `PlanLimit`. Fields that are set will be updated. -""" -input PlanLimitPatch { - id: UUID + """ + Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. + """ + purchasedCredits: BigInt """ - Name of the limit this plan sets (must match the name field in a limits table) + Capacity reserved by child entities in budgeted allocation mode. Available = max - num - reserved. """ - limitName: String + reserved: BigInt + + """Soft limit threshold for warnings; NULL means no soft limit""" + softMax: BigInt """ - Maximum value to set on the limit when this plan is applied; negative means unlimited + Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window """ - maxValue: BigInt + windowDuration: IntervalInput - """Reference to the plan this limit configuration belongs to""" - planId: UUID + """Start of the current metering window; NULL means no time window""" + windowStart: Datetime } """ -Maps each plan to billing meter quotas (plan_limit values written to balances when plan is applied) +Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. """ -type PlanMeterLimit { +type OrgLimitCap { + """Entity this cap override applies to""" + entityId: UUID! id: UUID! - """ - Slug of the billing meter this plan sets a quota for (must match a slug in the meters table) - """ - meterSlug: String! - - """Reads a single `Plan` that is related to this `PlanMeterLimit`.""" - plan: Plan - - """Reference to the plan this meter limit belongs to""" - planId: UUID! + """Override cap value for this entity""" + max: BigInt! - """ - Billing quota to set on the balance when this plan is applied; negative means unlimited - """ - planLimit: BigInt! + """Name identifier of the cap being overridden""" + name: String! } -"""A connection to a list of `PlanMeterLimit` values.""" -type PlanMeterLimitConnection { +"""A connection to a list of `OrgLimitCap` values.""" +type OrgLimitCapConnection { """ - A list of edges which contains the `PlanMeterLimit` and cursor to aid in pagination. + A list of edges which contains the `OrgLimitCap` and cursor to aid in pagination. """ - edges: [PlanMeterLimitEdge]! + edges: [OrgLimitCapEdge]! - """A list of `PlanMeterLimit` objects.""" - nodes: [PlanMeterLimit]! + """A list of `OrgLimitCap` objects.""" + nodes: [OrgLimitCap]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `PlanMeterLimit` you could get from the connection.""" + """The count of *all* `OrgLimitCap` you could get from the connection.""" totalCount: Int! } -"""A `PlanMeterLimit` edge in the connection.""" -type PlanMeterLimitEdge { +"""A `OrgLimitCap` edge in the connection.""" +type OrgLimitCapEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `PlanMeterLimit` at the end of the edge.""" - node: PlanMeterLimit + """The `OrgLimitCap` at the end of the edge.""" + node: OrgLimitCap } """ -A filter to be used against `PlanMeterLimit` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `OrgLimitCap` object types. All fields are combined with a logical ‘and.’ """ -input PlanMeterLimitFilter { +input OrgLimitCapFilter { """Checks for all expressions in this list.""" - and: [PlanMeterLimitFilter!] + and: [OrgLimitCapFilter!] + + """Filter by the object’s `entityId` field.""" + entityId: UUIDFilter """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `meterSlug` field.""" - meterSlug: StringFilter + """Filter by the object’s `max` field.""" + max: BigIntFilter + + """Filter by the object’s `name` field.""" + name: StringFilter """Negates the expression.""" - not: PlanMeterLimitFilter + not: OrgLimitCapFilter """Checks for any expressions in this list.""" - or: [PlanMeterLimitFilter!] - - """Filter by the object’s `plan` relation.""" - plan: PlanFilter - - """Filter by the object’s `planId` field.""" - planId: UUIDFilter - - """Filter by the object’s `planLimit` field.""" - planLimit: BigIntFilter + or: [OrgLimitCapFilter!] } -"""An input for mutations affecting `PlanMeterLimit`""" -input PlanMeterLimitInput { +"""An input for mutations affecting `OrgLimitCap`""" +input OrgLimitCapInput { + """Entity this cap override applies to""" + entityId: UUID! id: UUID - """ - Slug of the billing meter this plan sets a quota for (must match a slug in the meters table) - """ - meterSlug: String! - - """Reference to the plan this meter limit belongs to""" - planId: UUID! + """Override cap value for this entity""" + max: BigInt - """ - Billing quota to set on the balance when this plan is applied; negative means unlimited - """ - planLimit: BigInt! + """Name identifier of the cap being overridden""" + name: String! } -"""Methods to use when ordering `PlanMeterLimit`.""" -enum PlanMeterLimitOrderBy { +"""Methods to use when ordering `OrgLimitCap`.""" +enum OrgLimitCapOrderBy { + ENTITY_ID_ASC + ENTITY_ID_DESC ID_ASC ID_DESC - METER_SLUG_ASC - METER_SLUG_DESC + MAX_ASC + MAX_DESC + NAME_ASC + NAME_DESC NATURAL - PLAN_ID_ASC - PLAN_ID_DESC - PLAN_LIMIT_ASC - PLAN_LIMIT_DESC PRIMARY_KEY_ASC PRIMARY_KEY_DESC } """ -Represents an update to a `PlanMeterLimit`. Fields that are set will be updated. +Represents an update to a `OrgLimitCap`. Fields that are set will be updated. """ -input PlanMeterLimitPatch { +input OrgLimitCapPatch { + """Entity this cap override applies to""" + entityId: UUID id: UUID - """ - Slug of the billing meter this plan sets a quota for (must match a slug in the meters table) - """ - meterSlug: String - - """Reference to the plan this meter limit belongs to""" - planId: UUID - - """ - Billing quota to set on the balance when this plan is applied; negative means unlimited - """ - planLimit: BigInt -} + """Override cap value for this entity""" + max: BigInt -"""Methods to use when ordering `Plan`.""" -enum PlanOrderBy { - DESCRIPTION_ASC - DESCRIPTION_DESC - ID_ASC - ID_DESC - IS_ACTIVE_ASC - IS_ACTIVE_DESC - NAME_ASC - NAME_DESC - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC + """Name identifier of the cap being overridden""" + name: String } -"""Per-entity limit overrides that take precedence over plan defaults""" -type PlanOverride { - """Entity receiving the custom override (personal org or actual org)""" - entityId: UUID! - - """When this override expires; NULL means permanent""" - expiresAt: Datetime +""" +Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. +""" +type OrgLimitCapsDefault { id: UUID! - """Name of the limit being overridden""" - limitName: String! - - """Override maximum value; negative means unlimited""" - maxValue: BigInt! + """ + Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. + """ + max: BigInt! - """Admin note explaining why this override was granted""" - reason: String + """ + Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) + """ + name: String! } -"""A connection to a list of `PlanOverride` values.""" -type PlanOverrideConnection { +"""A connection to a list of `OrgLimitCapsDefault` values.""" +type OrgLimitCapsDefaultConnection { """ - A list of edges which contains the `PlanOverride` and cursor to aid in pagination. + A list of edges which contains the `OrgLimitCapsDefault` and cursor to aid in pagination. """ - edges: [PlanOverrideEdge]! + edges: [OrgLimitCapsDefaultEdge]! - """A list of `PlanOverride` objects.""" - nodes: [PlanOverride]! + """A list of `OrgLimitCapsDefault` objects.""" + nodes: [OrgLimitCapsDefault]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `PlanOverride` you could get from the connection.""" + """ + The count of *all* `OrgLimitCapsDefault` you could get from the connection. + """ totalCount: Int! } -"""A `PlanOverride` edge in the connection.""" -type PlanOverrideEdge { +"""A `OrgLimitCapsDefault` edge in the connection.""" +type OrgLimitCapsDefaultEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `PlanOverride` at the end of the edge.""" - node: PlanOverride + """The `OrgLimitCapsDefault` at the end of the edge.""" + node: OrgLimitCapsDefault } """ -A filter to be used against `PlanOverride` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `OrgLimitCapsDefault` object types. All fields are combined with a logical ‘and.’ """ -input PlanOverrideFilter { +input OrgLimitCapsDefaultFilter { """Checks for all expressions in this list.""" - and: [PlanOverrideFilter!] - - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter - - """Filter by the object’s `expiresAt` field.""" - expiresAt: DatetimeFilter + and: [OrgLimitCapsDefaultFilter!] """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `limitName` field.""" - limitName: StringFilter + """Filter by the object’s `max` field.""" + max: BigIntFilter - """Filter by the object’s `maxValue` field.""" - maxValue: BigIntFilter + """Filter by the object’s `name` field.""" + name: StringFilter """Negates the expression.""" - not: PlanOverrideFilter + not: OrgLimitCapsDefaultFilter """Checks for any expressions in this list.""" - or: [PlanOverrideFilter!] - - """Filter by the object’s `reason` field.""" - reason: StringFilter + or: [OrgLimitCapsDefaultFilter!] } -"""An input for mutations affecting `PlanOverride`""" -input PlanOverrideInput { - """Entity receiving the custom override (personal org or actual org)""" - entityId: UUID! - - """When this override expires; NULL means permanent""" - expiresAt: Datetime +"""An input for mutations affecting `OrgLimitCapsDefault`""" +input OrgLimitCapsDefaultInput { id: UUID - """Name of the limit being overridden""" - limitName: String! - - """Override maximum value; negative means unlimited""" - maxValue: BigInt! + """ + Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. + """ + max: BigInt - """Admin note explaining why this override was granted""" - reason: String + """ + Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) + """ + name: String! } -"""Methods to use when ordering `PlanOverride`.""" -enum PlanOverrideOrderBy { - ENTITY_ID_ASC - ENTITY_ID_DESC - EXPIRES_AT_ASC - EXPIRES_AT_DESC +"""Methods to use when ordering `OrgLimitCapsDefault`.""" +enum OrgLimitCapsDefaultOrderBy { ID_ASC ID_DESC - LIMIT_NAME_ASC - LIMIT_NAME_DESC - MAX_VALUE_ASC - MAX_VALUE_DESC + MAX_ASC + MAX_DESC + NAME_ASC + NAME_DESC NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC - REASON_ASC - REASON_DESC } """ -Represents an update to a `PlanOverride`. Fields that are set will be updated. +Represents an update to a `OrgLimitCapsDefault`. Fields that are set will be updated. """ -input PlanOverridePatch { - """Entity receiving the custom override (personal org or actual org)""" - entityId: UUID - - """When this override expires; NULL means permanent""" - expiresAt: Datetime +input OrgLimitCapsDefaultPatch { id: UUID - """Name of the limit being overridden""" - limitName: String - - """Override maximum value; negative means unlimited""" - maxValue: BigInt + """ + Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. + """ + max: BigInt - """Admin note explaining why this override was granted""" - reason: String + """ + Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) + """ + name: String } -"""Represents an update to a `Plan`. Fields that are set will be updated.""" -input PlanPatch { - """Human-readable description of the plan tier""" - description: String - id: UUID +"""A connection to a list of `OrgLimit` values.""" +type OrgLimitConnection { + """ + A list of edges which contains the `OrgLimit` and cursor to aid in pagination. + """ + edges: [OrgLimitEdge]! - """Whether this plan can currently be applied to entities""" - isActive: Boolean + """A list of `OrgLimit` objects.""" + nodes: [OrgLimit]! - """Unique name identifier of the plan (e.g. free, pro, enterprise)""" - name: String + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `OrgLimit` you could get from the connection.""" + totalCount: Int! } -"""Billing intervals and pricing for each plan tier""" -type PlanPricing { - """Billing cycle identifier (e.g. monthly, yearly, lifetime)""" - billingInterval: String! +""" +Append-only ledger of credit grants that automatically update limit ceilings +""" +type OrgLimitCredit { + """User this credit is for; NULL for aggregate entity-level credits""" + actorId: UUID + + """Number of credits to grant (positive to add, negative to revoke)""" + amount: BigInt! + + """ + Credit durability: permanent (survives window reset) or period (resets on window expiry) + """ + creditType: String! - """ISO 4217 currency code (lowercase)""" - currency: String! + """ + Reads a single `OrgLimitDefault` that is related to this `OrgLimitCredit`. + """ + defaultLimit: OrgLimitDefault - """Discount percentage off the base price (0-100); NULL means no discount""" - discountPercent: BigFloat - id: UUID! + """FK to default_limits — which limit definition this credit applies to""" + defaultLimitId: UUID! - """Whether this pricing option is currently available""" - isActive: Boolean + """Entity this credit applies to; NULL for actor-only credits""" + entityId: UUID - """Reads a single `Plan` that is related to this `PlanPricing`.""" - plan: Plan + """Membership prefix identifying the entity kind (org, team, app)""" + entityType: String + id: UUID! - """Reference to the plan this pricing belongs to""" - planId: UUID! + """Resolved billable organization via get_organization_id""" + organizationId: UUID - """ - Price in smallest currency unit (e.g. cents); negative means contact-sales - """ - price: BigInt! + """Optional reason for the credit grant (promo code, admin grant, etc.)""" + reason: String } -"""A connection to a list of `PlanPricing` values.""" -type PlanPricingConnection { +"""A connection to a list of `OrgLimitCredit` values.""" +type OrgLimitCreditConnection { """ - A list of edges which contains the `PlanPricing` and cursor to aid in pagination. + A list of edges which contains the `OrgLimitCredit` and cursor to aid in pagination. """ - edges: [PlanPricingEdge]! + edges: [OrgLimitCreditEdge]! - """A list of `PlanPricing` objects.""" - nodes: [PlanPricing]! + """A list of `OrgLimitCredit` objects.""" + nodes: [OrgLimitCredit]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `PlanPricing` you could get from the connection.""" + """The count of *all* `OrgLimitCredit` you could get from the connection.""" totalCount: Int! } -"""A `PlanPricing` edge in the connection.""" -type PlanPricingEdge { +"""A `OrgLimitCredit` edge in the connection.""" +type OrgLimitCreditEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `PlanPricing` at the end of the edge.""" - node: PlanPricing + """The `OrgLimitCredit` at the end of the edge.""" + node: OrgLimitCredit } """ -A filter to be used against `PlanPricing` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `OrgLimitCredit` object types. All fields are combined with a logical ‘and.’ """ -input PlanPricingFilter { +input OrgLimitCreditFilter { + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter + + """Filter by the object’s `amount` field.""" + amount: BigIntFilter + """Checks for all expressions in this list.""" - and: [PlanPricingFilter!] + and: [OrgLimitCreditFilter!] + + """Filter by the object’s `creditType` field.""" + creditType: StringFilter + + """Filter by the object’s `defaultLimit` relation.""" + defaultLimit: OrgLimitDefaultFilter - """Filter by the object’s `billingInterval` field.""" - billingInterval: StringFilter + """Filter by the object’s `defaultLimitId` field.""" + defaultLimitId: UUIDFilter - """Filter by the object’s `currency` field.""" - currency: StringFilter + """Filter by the object’s `entityId` field.""" + entityId: UUIDFilter - """Filter by the object’s `discountPercent` field.""" - discountPercent: BigFloatFilter + """Filter by the object’s `entityType` field.""" + entityType: StringFilter """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `isActive` field.""" - isActive: BooleanFilter - """Negates the expression.""" - not: PlanPricingFilter + not: OrgLimitCreditFilter """Checks for any expressions in this list.""" - or: [PlanPricingFilter!] - - """Filter by the object’s `plan` relation.""" - plan: PlanFilter + or: [OrgLimitCreditFilter!] - """Filter by the object’s `planId` field.""" - planId: UUIDFilter + """Filter by the object’s `organizationId` field.""" + organizationId: UUIDFilter - """Filter by the object’s `price` field.""" - price: BigIntFilter + """Filter by the object’s `reason` field.""" + reason: StringFilter } -"""An input for mutations affecting `PlanPricing`""" -input PlanPricingInput { - """Billing cycle identifier (e.g. monthly, yearly, lifetime)""" - billingInterval: String! +"""An input for mutations affecting `OrgLimitCredit`""" +input OrgLimitCreditInput { + """User this credit is for; NULL for aggregate entity-level credits""" + actorId: UUID + + """Number of credits to grant (positive to add, negative to revoke)""" + amount: BigInt! - """ISO 4217 currency code (lowercase)""" - currency: String + """ + Credit durability: permanent (survives window reset) or period (resets on window expiry) + """ + creditType: String - """Discount percentage off the base price (0-100); NULL means no discount""" - discountPercent: BigFloat - id: UUID + """FK to default_limits — which limit definition this credit applies to""" + defaultLimitId: UUID! - """Whether this pricing option is currently available""" - isActive: Boolean + """Entity this credit applies to; NULL for actor-only credits""" + entityId: UUID - """Reference to the plan this pricing belongs to""" - planId: UUID! + """Membership prefix identifying the entity kind (org, team, app)""" + entityType: String + id: UUID - """ - Price in smallest currency unit (e.g. cents); negative means contact-sales - """ - price: BigInt! + """Resolved billable organization via get_organization_id""" + organizationId: UUID + + """Optional reason for the credit grant (promo code, admin grant, etc.)""" + reason: String } -"""Methods to use when ordering `PlanPricing`.""" -enum PlanPricingOrderBy { - BILLING_INTERVAL_ASC - BILLING_INTERVAL_DESC - CURRENCY_ASC - CURRENCY_DESC - DISCOUNT_PERCENT_ASC - DISCOUNT_PERCENT_DESC +"""Methods to use when ordering `OrgLimitCredit`.""" +enum OrgLimitCreditOrderBy { + ACTOR_ID_ASC + ACTOR_ID_DESC + AMOUNT_ASC + AMOUNT_DESC + CREDIT_TYPE_ASC + CREDIT_TYPE_DESC + DEFAULT_LIMIT_ID_ASC + DEFAULT_LIMIT_ID_DESC + ENTITY_ID_ASC + ENTITY_ID_DESC + ENTITY_TYPE_ASC + ENTITY_TYPE_DESC ID_ASC ID_DESC - IS_ACTIVE_ASC - IS_ACTIVE_DESC NATURAL - PLAN_ID_ASC - PLAN_ID_DESC - PRICE_ASC - PRICE_DESC + ORGANIZATION_ID_ASC + ORGANIZATION_ID_DESC PRIMARY_KEY_ASC PRIMARY_KEY_DESC + REASON_ASC + REASON_DESC } """ -Represents an update to a `PlanPricing`. Fields that are set will be updated. +Represents an update to a `OrgLimitCredit`. Fields that are set will be updated. """ -input PlanPricingPatch { - """Billing cycle identifier (e.g. monthly, yearly, lifetime)""" - billingInterval: String +input OrgLimitCreditPatch { + """User this credit is for; NULL for aggregate entity-level credits""" + actorId: UUID + + """Number of credits to grant (positive to add, negative to revoke)""" + amount: BigInt + + """ + Credit durability: permanent (survives window reset) or period (resets on window expiry) + """ + creditType: String + + """FK to default_limits — which limit definition this credit applies to""" + defaultLimitId: UUID - """ISO 4217 currency code (lowercase)""" - currency: String + """Entity this credit applies to; NULL for actor-only credits""" + entityId: UUID - """Discount percentage off the base price (0-100); NULL means no discount""" - discountPercent: BigFloat + """Membership prefix identifying the entity kind (org, team, app)""" + entityType: String id: UUID - """Whether this pricing option is currently available""" - isActive: Boolean + """Resolved billable organization via get_organization_id""" + organizationId: UUID + + """Optional reason for the credit grant (promo code, admin grant, etc.)""" + reason: String +} + +""" +Default maximum values for each named limit, applied when no per-actor override exists +""" +type OrgLimitDefault { + id: UUID! - """Reference to the plan this pricing belongs to""" - planId: UUID + """Default maximum usage allowed for this limit""" + max: BigInt - """ - Price in smallest currency unit (e.g. cents); negative means contact-sales - """ - price: BigInt -} + """Name identifier of the limit this default applies to""" + name: String! -""" -Assigns a plan to an entity with subscription lifecycle (start, end, active state) -""" -type PlanSubscription { - """When the subscription expires (NULL = no expiration)""" - endsAt: Datetime + """Reads and enables pagination through a set of `OrgLimitCredit`.""" + orgLimitCreditsByDefaultLimitId( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """The entity (org, team, user) this subscription belongs to""" - entityId: UUID! + """Read all values in the set before (above) this cursor.""" + before: Cursor - """Membership prefix identifying the entity kind (org, team, app)""" - entityType: String - id: UUID! + """Only read the first `n` values of the set.""" + first: Int - """Whether the subscription is currently active""" - isActive: Boolean + """Only read the last `n` values of the set.""" + last: Int - """Resolved billable organization via get_organization_id""" - organizationId: UUID + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int - """Reads a single `Plan` that is related to this `PlanSubscription`.""" - plan: Plan + """The method to use when ordering `OrgLimitCredit`.""" + orderBy: [OrgLimitCreditOrderBy!] = [PRIMARY_KEY_ASC] - """Reference to the plan this subscription is for""" - planId: UUID! + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: OrgLimitCreditFilter + ): OrgLimitCreditConnection! - """When the subscription becomes active""" - startsAt: Datetime + """Default soft limit threshold for warnings; NULL means no soft limit""" + softMax: BigInt } -"""A connection to a list of `PlanSubscription` values.""" -type PlanSubscriptionConnection { +"""A connection to a list of `OrgLimitDefault` values.""" +type OrgLimitDefaultConnection { """ - A list of edges which contains the `PlanSubscription` and cursor to aid in pagination. + A list of edges which contains the `OrgLimitDefault` and cursor to aid in pagination. """ - edges: [PlanSubscriptionEdge]! + edges: [OrgLimitDefaultEdge]! - """A list of `PlanSubscription` objects.""" - nodes: [PlanSubscription]! + """A list of `OrgLimitDefault` objects.""" + nodes: [OrgLimitDefault]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `PlanSubscription` you could get from the connection. + The count of *all* `OrgLimitDefault` you could get from the connection. """ totalCount: Int! } -"""A `PlanSubscription` edge in the connection.""" -type PlanSubscriptionEdge { +"""A `OrgLimitDefault` edge in the connection.""" +type OrgLimitDefaultEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `PlanSubscription` at the end of the edge.""" - node: PlanSubscription + """The `OrgLimitDefault` at the end of the edge.""" + node: OrgLimitDefault } """ -A filter to be used against `PlanSubscription` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `OrgLimitDefault` object types. All fields are combined with a logical ‘and.’ """ -input PlanSubscriptionFilter { +input OrgLimitDefaultFilter { """Checks for all expressions in this list.""" - and: [PlanSubscriptionFilter!] - - """Filter by the object’s `endsAt` field.""" - endsAt: DatetimeFilter - - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter - - """Filter by the object’s `entityType` field.""" - entityType: StringFilter + and: [OrgLimitDefaultFilter!] """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `isActive` field.""" - isActive: BooleanFilter + """Filter by the object’s `max` field.""" + max: BigIntFilter + + """Filter by the object’s `name` field.""" + name: StringFilter """Negates the expression.""" - not: PlanSubscriptionFilter + not: OrgLimitDefaultFilter """Checks for any expressions in this list.""" - or: [PlanSubscriptionFilter!] - - """Filter by the object’s `organizationId` field.""" - organizationId: UUIDFilter + or: [OrgLimitDefaultFilter!] - """Filter by the object’s `plan` relation.""" - plan: PlanFilter + """Filter by the object’s `orgLimitCreditsByDefaultLimitId` relation.""" + orgLimitCreditsByDefaultLimitId: OrgLimitDefaultToManyOrgLimitCreditFilter - """Filter by the object’s `planId` field.""" - planId: UUIDFilter + """`orgLimitCreditsByDefaultLimitId` exist.""" + orgLimitCreditsByDefaultLimitIdExist: Boolean - """Filter by the object’s `startsAt` field.""" - startsAt: DatetimeFilter + """Filter by the object’s `softMax` field.""" + softMax: BigIntFilter } -"""An input for mutations affecting `PlanSubscription`""" -input PlanSubscriptionInput { - """When the subscription expires (NULL = no expiration)""" - endsAt: Datetime - - """The entity (org, team, user) this subscription belongs to""" - entityId: UUID! - - """Membership prefix identifying the entity kind (org, team, app)""" - entityType: String +"""An input for mutations affecting `OrgLimitDefault`""" +input OrgLimitDefaultInput { id: UUID - """Whether the subscription is currently active""" - isActive: Boolean - - """Resolved billable organization via get_organization_id""" - organizationId: UUID + """Default maximum usage allowed for this limit""" + max: BigInt - """Reference to the plan this subscription is for""" - planId: UUID! + """Name identifier of the limit this default applies to""" + name: String! - """When the subscription becomes active""" - startsAt: Datetime + """Default soft limit threshold for warnings; NULL means no soft limit""" + softMax: BigInt } -"""Methods to use when ordering `PlanSubscription`.""" -enum PlanSubscriptionOrderBy { - ENDS_AT_ASC - ENDS_AT_DESC - ENTITY_ID_ASC - ENTITY_ID_DESC - ENTITY_TYPE_ASC - ENTITY_TYPE_DESC +"""Methods to use when ordering `OrgLimitDefault`.""" +enum OrgLimitDefaultOrderBy { ID_ASC ID_DESC - IS_ACTIVE_ASC - IS_ACTIVE_DESC + MAX_ASC + MAX_DESC + NAME_ASC + NAME_DESC NATURAL - ORGANIZATION_ID_ASC - ORGANIZATION_ID_DESC - PLAN_ID_ASC - PLAN_ID_DESC PRIMARY_KEY_ASC PRIMARY_KEY_DESC - STARTS_AT_ASC - STARTS_AT_DESC + SOFT_MAX_ASC + SOFT_MAX_DESC } """ -Represents an update to a `PlanSubscription`. Fields that are set will be updated. +Represents an update to a `OrgLimitDefault`. Fields that are set will be updated. """ -input PlanSubscriptionPatch { - """When the subscription expires (NULL = no expiration)""" - endsAt: Datetime - - """The entity (org, team, user) this subscription belongs to""" - entityId: UUID - - """Membership prefix identifying the entity kind (org, team, app)""" - entityType: String +input OrgLimitDefaultPatch { id: UUID - """Whether the subscription is currently active""" - isActive: Boolean - - """Resolved billable organization via get_organization_id""" - organizationId: UUID + """Default maximum usage allowed for this limit""" + max: BigInt - """Reference to the plan this subscription is for""" - planId: UUID + """Name identifier of the limit this default applies to""" + name: String - """When the subscription becomes active""" - startsAt: Datetime + """Default soft limit threshold for warnings; NULL means no soft limit""" + softMax: BigInt } """ -A filter to be used against many `PlanCap` object types. All fields are combined with a logical ‘and.’ +A filter to be used against many `OrgLimitCredit` object types. All fields are combined with a logical ‘and.’ """ -input PlanToManyPlanCapFilter { +input OrgLimitDefaultToManyOrgLimitCreditFilter { """Filters to entities where every related entity matches.""" - every: PlanCapFilter + every: OrgLimitCreditFilter """Filters to entities where no related entity matches.""" - none: PlanCapFilter + none: OrgLimitCreditFilter """Filters to entities where at least one related entity matches.""" - some: PlanCapFilter + some: OrgLimitCreditFilter } -""" -A filter to be used against many `PlanLimit` object types. All fields are combined with a logical ‘and.’ -""" -input PlanToManyPlanLimitFilter { - """Filters to entities where every related entity matches.""" - every: PlanLimitFilter - - """Filters to entities where no related entity matches.""" - none: PlanLimitFilter +"""A `OrgLimit` edge in the connection.""" +type OrgLimitEdge { + """A cursor for use in pagination.""" + cursor: Cursor - """Filters to entities where at least one related entity matches.""" - some: PlanLimitFilter + """The `OrgLimit` at the end of the edge.""" + node: OrgLimit } -""" -A filter to be used against many `PlanMeterLimit` object types. All fields are combined with a logical ‘and.’ -""" -input PlanToManyPlanMeterLimitFilter { - """Filters to entities where every related entity matches.""" - every: PlanMeterLimitFilter +"""Append-only log of limit events for historical reporting and audit""" +type OrgLimitEvent { + """User who triggered this event; NULL for system/aggregate events""" + actorId: UUID + createdAt: Datetime! - """Filters to entities where no related entity matches.""" - none: PlanMeterLimitFilter + """Change amount: positive for increment, negative for decrement""" + delta: BigInt - """Filters to entities where at least one related entity matches.""" - some: PlanMeterLimitFilter -} + """Entity this event applies to; NULL for app-level events""" + entityId: UUID -""" -A filter to be used against many `PlanPricing` object types. All fields are combined with a logical ‘and.’ -""" -input PlanToManyPlanPricingFilter { - """Filters to entities where every related entity matches.""" - every: PlanPricingFilter + """Entity type prefix (org, team, app, etc.) for interpreting entity_id""" + entityType: String - """Filters to entities where no related entity matches.""" - none: PlanPricingFilter + """Event type: inc, dec, check, modify, transfer, apply_plan, reset""" + eventType: String - """Filters to entities where at least one related entity matches.""" - some: PlanPricingFilter -} + """Unique identifier for each limit event""" + id: UUID! -""" -A filter to be used against many `PlanSubscription` object types. All fields are combined with a logical ‘and.’ -""" -input PlanToManyPlanSubscriptionFilter { - """Filters to entities where every related entity matches.""" - every: PlanSubscriptionFilter + """Max limit ceiling at the time of this event""" + maxAtEvent: BigInt - """Filters to entities where no related entity matches.""" - none: PlanSubscriptionFilter + """Limit name this event applies to""" + name: String - """Filters to entities where at least one related entity matches.""" - some: PlanSubscriptionFilter -} + """Usage count after this event""" + numAfter: BigInt -input ProvisionBucketInput { - """The logical bucket key (e.g., "public", "private")""" - bucketKey: String! + """Usage count before this event""" + numBefore: BigInt """ - Owner entity ID for entity-scoped bucket provisioning. - Omit for app-level (database-wide) storage. + Resolved billable organization via get_organization_id; NULL for app-level events """ - ownerId: UUID -} - -type 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 - - """Error message if provisioning failed""" - error: String - - """The storage provider used""" - provider: String! - - """Whether provisioning succeeded""" - success: Boolean! -} + organizationId: UUID -"""The root query type which gives access points into the data universe.""" -type Query { - """ - Metadata about the database schema, including tables, fields, indexes, and constraints. Useful for code generation tools. """ - _meta: MetaSchema - - """Reads and enables pagination through a set of `AppAchievementReward`.""" - appAchievementRewards( - """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 `AppAchievementReward`.""" - orderBy: [AppAchievementRewardOrderBy!] = [PRIMARY_KEY_ASC] - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: AppAchievementRewardFilter - ): AppAchievementRewardConnection - - """Reads and enables pagination through a set of `AppEventAggregate`.""" - appEventAggregates( - """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 `AppEventAggregate`.""" - orderBy: [AppEventAggregateOrderBy!] = [PRIMARY_KEY_ASC] - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: AppEventAggregateFilter - ): AppEventAggregateConnection - - """Reads and enables pagination through a set of `AppEventType`.""" - appEventTypes( - """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 + Optional reason or source: achievement, invite, plan_change, purchase, etc. + """ + reason: String +} - """Only read the last `n` values of the set.""" - last: Int +"""A connection to a list of `OrgLimitEvent` values.""" +type OrgLimitEventConnection { + """ + A list of edges which contains the `OrgLimitEvent` and cursor to aid in pagination. + """ + edges: [OrgLimitEventEdge]! - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int + """A list of `OrgLimitEvent` objects.""" + nodes: [OrgLimitEvent]! - """The method to use when ordering `AppEventType`.""" - orderBy: [AppEventTypeOrderBy!] = [PRIMARY_KEY_ASC] + """Information to aid in pagination.""" + pageInfo: PageInfo! - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: AppEventTypeFilter - ): AppEventTypeConnection + """The count of *all* `OrgLimitEvent` you could get from the connection.""" + totalCount: Int! +} - """Reads and enables pagination through a set of `AppEvent`.""" - appEvents( - """Read all values in the set after (below) this cursor.""" - after: Cursor +"""A `OrgLimitEvent` edge in the connection.""" +type OrgLimitEventEdge { + """A cursor for use in pagination.""" + cursor: Cursor - """Read all values in the set before (above) this cursor.""" - before: Cursor + """The `OrgLimitEvent` at the end of the edge.""" + node: OrgLimitEvent +} - """Only read the first `n` values of the set.""" - first: Int +""" +A filter to be used against `OrgLimitEvent` object types. All fields are combined with a logical ‘and.’ +""" +input OrgLimitEventFilter { + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter - """Only read the last `n` values of the set.""" - last: Int + """Checks for all expressions in this list.""" + and: [OrgLimitEventFilter!] - """ - 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 `createdAt` field.""" + createdAt: DatetimeFilter - """The method to use when ordering `AppEvent`.""" - orderBy: [AppEventOrderBy!] = [PRIMARY_KEY_ASC] + """Filter by the object’s `delta` field.""" + delta: BigIntFilter - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: AppEventFilter - ): AppEventConnection + """Filter by the object’s `entityId` field.""" + entityId: UUIDFilter - """Reads and enables pagination through a set of `AppLevelGrant`.""" - appLevelGrants( - """Read all values in the set after (below) this cursor.""" - after: Cursor + """Filter by the object’s `entityType` field.""" + entityType: StringFilter - """Read all values in the set before (above) this cursor.""" - before: Cursor + """Filter by the object’s `eventType` field.""" + eventType: StringFilter - """Only read the first `n` values of the set.""" - first: Int + """Filter by the object’s `id` field.""" + id: UUIDFilter - """Only read the last `n` values of the set.""" - last: Int + """Filter by the object’s `maxAtEvent` field.""" + maxAtEvent: BigIntFilter - """ - 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 `name` field.""" + name: StringFilter - """The method to use when ordering `AppLevelGrant`.""" - orderBy: [AppLevelGrantOrderBy!] = [PRIMARY_KEY_ASC] + """Negates the expression.""" + not: OrgLimitEventFilter - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: AppLevelGrantFilter - ): AppLevelGrantConnection + """Filter by the object’s `numAfter` field.""" + numAfter: BigIntFilter - """Reads and enables pagination through a set of `AppLevelRequirement`.""" - appLevelRequirements( - """Read all values in the set after (below) this cursor.""" - after: Cursor + """Filter by the object’s `numBefore` field.""" + numBefore: BigIntFilter - """Read all values in the set before (above) this cursor.""" - before: Cursor + """Checks for any expressions in this list.""" + or: [OrgLimitEventFilter!] - """Only read the first `n` values of the set.""" - first: Int + """Filter by the object’s `organizationId` field.""" + organizationId: UUIDFilter - """Only read the last `n` values of the set.""" - last: Int + """Filter by the object’s `reason` field.""" + reason: StringFilter +} - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int +"""An input for mutations affecting `OrgLimitEvent`""" +input OrgLimitEventInput { + """User who triggered this event; NULL for system/aggregate events""" + actorId: UUID + createdAt: Datetime - """The method to use when ordering `AppLevelRequirement`.""" - orderBy: [AppLevelRequirementOrderBy!] = [PRIMARY_KEY_ASC] + """Change amount: positive for increment, negative for decrement""" + delta: BigInt - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: AppLevelRequirementFilter - ): AppLevelRequirementConnection + """Entity this event applies to; NULL for app-level events""" + entityId: UUID - """Reads and enables pagination through a set of `AppLevel`.""" - appLevels( - """Read all values in the set after (below) this cursor.""" - after: Cursor + """Entity type prefix (org, team, app, etc.) for interpreting entity_id""" + entityType: String - """Read all values in the set before (above) this cursor.""" - before: Cursor + """Event type: inc, dec, check, modify, transfer, apply_plan, reset""" + eventType: String - """Only read the first `n` values of the set.""" - first: Int + """Unique identifier for each limit event""" + id: UUID - """Only read the last `n` values of the set.""" - last: Int + """Max limit ceiling at the time of this event""" + maxAtEvent: BigInt - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int + """Limit name this event applies to""" + name: String - """The method to use when ordering `AppLevel`.""" - orderBy: [AppLevelOrderBy!] = [PRIMARY_KEY_ASC] + """Usage count after this event""" + numAfter: BigInt - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: AppLevelFilter - ): AppLevelConnection + """Usage count before this event""" + numBefore: BigInt - """Reads and enables pagination through a set of `AppLimitCap`.""" - appLimitCaps( - """Read all values in the set after (below) this cursor.""" - after: Cursor + """ + Resolved billable organization via get_organization_id; NULL for app-level events + """ + organizationId: UUID - """Read all values in the set before (above) this cursor.""" - before: Cursor + """ + Optional reason or source: achievement, invite, plan_change, purchase, etc. + """ + reason: String +} - """Only read the first `n` values of the set.""" - first: Int +"""Methods to use when ordering `OrgLimitEvent`.""" +enum OrgLimitEventOrderBy { + ACTOR_ID_ASC + ACTOR_ID_DESC + CREATED_AT_ASC + CREATED_AT_DESC + DELTA_ASC + DELTA_DESC + ENTITY_ID_ASC + ENTITY_ID_DESC + ENTITY_TYPE_ASC + ENTITY_TYPE_DESC + EVENT_TYPE_ASC + EVENT_TYPE_DESC + ID_ASC + ID_DESC + MAX_AT_EVENT_ASC + MAX_AT_EVENT_DESC + NAME_ASC + NAME_DESC + NATURAL + NUM_AFTER_ASC + NUM_AFTER_DESC + NUM_BEFORE_ASC + NUM_BEFORE_DESC + ORGANIZATION_ID_ASC + ORGANIZATION_ID_DESC + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + REASON_ASC + REASON_DESC +} - """Only read the last `n` values of the set.""" - last: Int +""" +Represents an update to a `OrgLimitEvent`. Fields that are set will be updated. +""" +input OrgLimitEventPatch { + """User who triggered this event; NULL for system/aggregate events""" + actorId: UUID + createdAt: Datetime - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int + """Change amount: positive for increment, negative for decrement""" + delta: BigInt - """The method to use when ordering `AppLimitCap`.""" - orderBy: [AppLimitCapOrderBy!] = [PRIMARY_KEY_ASC] + """Entity this event applies to; NULL for app-level events""" + entityId: UUID - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: AppLimitCapFilter - ): AppLimitCapConnection + """Entity type prefix (org, team, app, etc.) for interpreting entity_id""" + entityType: String - """Reads and enables pagination through a set of `AppLimitCapsDefault`.""" - appLimitCapsDefaults( - """Read all values in the set after (below) this cursor.""" - after: Cursor + """Event type: inc, dec, check, modify, transfer, apply_plan, reset""" + eventType: String - """Read all values in the set before (above) this cursor.""" - before: Cursor + """Unique identifier for each limit event""" + id: UUID - """Only read the first `n` values of the set.""" - first: Int + """Max limit ceiling at the time of this event""" + maxAtEvent: BigInt - """Only read the last `n` values of the set.""" - last: Int + """Limit name this event applies to""" + 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 + """Usage count after this event""" + numAfter: BigInt - """The method to use when ordering `AppLimitCapsDefault`.""" - orderBy: [AppLimitCapsDefaultOrderBy!] = [PRIMARY_KEY_ASC] + """Usage count before this event""" + numBefore: BigInt - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: AppLimitCapsDefaultFilter - ): AppLimitCapsDefaultConnection + """ + Resolved billable organization via get_organization_id; NULL for app-level events + """ + organizationId: UUID """ - Reads and enables pagination through a set of `AppLimitCreditCodeItem`. + Optional reason or source: achievement, invite, plan_change, purchase, etc. """ - appLimitCreditCodeItems( - """Read all values in the set after (below) this cursor.""" - after: Cursor + reason: String +} - """Read all values in the set before (above) this cursor.""" - before: Cursor +""" +A filter to be used against `OrgLimit` object types. All fields are combined with a logical ‘and.’ +""" +input OrgLimitFilter { + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter - """Only read the first `n` values of the set.""" - first: Int + """Checks for all expressions in this list.""" + and: [OrgLimitFilter!] - """Only read the last `n` values of the set.""" - last: Int + """Filter by the object’s `entityId` field.""" + entityId: 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 `entityType` field.""" + entityType: StringFilter - """The method to use when ordering `AppLimitCreditCodeItem`.""" - orderBy: [AppLimitCreditCodeItemOrderBy!] = [PRIMARY_KEY_ASC] + """Filter by the object’s `id` field.""" + id: UUIDFilter - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: AppLimitCreditCodeItemFilter - ): AppLimitCreditCodeItemConnection + """Filter by the object’s `max` field.""" + max: BigIntFilter - """Reads and enables pagination through a set of `AppLimitCreditCode`.""" - appLimitCreditCodes( - """Read all values in the set after (below) this cursor.""" - after: Cursor + """Filter by the object’s `name` field.""" + name: StringFilter - """Read all values in the set before (above) this cursor.""" - before: Cursor + """Negates the expression.""" + not: OrgLimitFilter - """Only read the first `n` values of the set.""" - first: Int + """Filter by the object’s `num` field.""" + num: BigIntFilter - """Only read the last `n` values of the set.""" - last: Int + """Checks for any expressions in this list.""" + or: [OrgLimitFilter!] - """ - 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 `organizationId` field.""" + organizationId: UUIDFilter - """The method to use when ordering `AppLimitCreditCode`.""" - orderBy: [AppLimitCreditCodeOrderBy!] = [PRIMARY_KEY_ASC] + """Filter by the object’s `periodCredits` field.""" + periodCredits: BigIntFilter - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: AppLimitCreditCodeFilter - ): AppLimitCreditCodeConnection + """Filter by the object’s `planMax` field.""" + planMax: BigIntFilter - """ - Reads and enables pagination through a set of `AppLimitCreditRedemption`. - """ - appLimitCreditRedemptions( - """Read all values in the set after (below) this cursor.""" - after: Cursor + """Filter by the object’s `purchasedCredits` field.""" + purchasedCredits: BigIntFilter - """Read all values in the set before (above) this cursor.""" - before: Cursor + """Filter by the object’s `softMax` field.""" + softMax: BigIntFilter - """Only read the first `n` values of the set.""" - first: Int + """Filter by the object’s `windowDuration` field.""" + windowDuration: IntervalFilter - """Only read the last `n` values of the set.""" - last: Int + """Filter by the object’s `windowStart` field.""" + windowStart: DatetimeFilter +} - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int +"""An input for mutations affecting `OrgLimit`""" +input OrgLimitInput { + """User whose usage is being tracked against this limit""" + actorId: UUID! + entityId: UUID! - """The method to use when ordering `AppLimitCreditRedemption`.""" - orderBy: [AppLimitCreditRedemptionOrderBy!] = [PRIMARY_KEY_ASC] + """Entity type prefix (org, team, app, etc.) for interpreting entity_id""" + entityType: String + id: UUID - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: AppLimitCreditRedemptionFilter - ): AppLimitCreditRedemptionConnection + """ + Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. + """ + max: BigInt - """Reads and enables pagination through a set of `AppLimitCredit`.""" - appLimitCredits( - """Read all values in the set after (below) this cursor.""" - after: Cursor + """Name identifier of the limit being tracked""" + name: String - """Read all values in the set before (above) this cursor.""" - before: Cursor + """Current usage count for this actor and limit""" + num: BigInt - """Only read the first `n` values of the set.""" - first: Int + """Resolved billable organization via get_organization_id""" + organizationId: UUID - """Only read the last `n` values of the set.""" - last: Int + """ + Temporary credits for the current billing window. Resets to 0 on window expiry. + """ + periodCredits: BigInt - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int + """ + 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 - """The method to use when ordering `AppLimitCredit`.""" - orderBy: [AppLimitCreditOrderBy!] = [PRIMARY_KEY_ASC] + """ + Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. + """ + purchasedCredits: BigInt - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: AppLimitCreditFilter - ): AppLimitCreditConnection + """ + Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. + """ + softMax: BigInt - """Reads and enables pagination through a set of `AppLimitDefault`.""" - appLimitDefaults( - """Read all values in the set after (below) this cursor.""" - after: Cursor + """ + Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window + """ + windowDuration: IntervalInput - """Read all values in the set before (above) this cursor.""" - before: Cursor + """Start of the current metering window; NULL means no time window""" + windowStart: Datetime +} - """Only read the first `n` values of the set.""" - first: Int +"""Methods to use when ordering `OrgLimit`.""" +enum OrgLimitOrderBy { + ACTOR_ID_ASC + ACTOR_ID_DESC + ENTITY_ID_ASC + ENTITY_ID_DESC + ENTITY_TYPE_ASC + ENTITY_TYPE_DESC + ID_ASC + ID_DESC + MAX_ASC + MAX_DESC + NAME_ASC + NAME_DESC + NATURAL + NUM_ASC + NUM_DESC + ORGANIZATION_ID_ASC + ORGANIZATION_ID_DESC + PERIOD_CREDITS_ASC + PERIOD_CREDITS_DESC + PLAN_MAX_ASC + PLAN_MAX_DESC + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + PURCHASED_CREDITS_ASC + PURCHASED_CREDITS_DESC + SOFT_MAX_ASC + SOFT_MAX_DESC + WINDOW_DURATION_ASC + WINDOW_DURATION_DESC + WINDOW_START_ASC + WINDOW_START_DESC +} - """Only read the last `n` values of the set.""" - last: Int +""" +Represents an update to a `OrgLimit`. Fields that are set will be updated. +""" +input OrgLimitPatch { + """User whose usage is being tracked against this limit""" + actorId: UUID + entityId: UUID - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int + """Entity type prefix (org, team, app, etc.) for interpreting entity_id""" + entityType: String + id: UUID + + """ + Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. + """ + max: BigInt + + """Name identifier of the limit being tracked""" + name: String + + """Current usage count for this actor and limit""" + num: BigInt - """The method to use when ordering `AppLimitDefault`.""" - orderBy: [AppLimitDefaultOrderBy!] = [PRIMARY_KEY_ASC] + """Resolved billable organization via get_organization_id""" + organizationId: UUID - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: AppLimitDefaultFilter - ): AppLimitDefaultConnection + """ + Temporary credits for the current billing window. Resets to 0 on window expiry. + """ + periodCredits: BigInt - """Reads and enables pagination through a set of `AppLimitEvent`.""" - appLimitEvents( - """Read all values in the set after (below) this cursor.""" - after: Cursor + """ + 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 - """Read all values in the set before (above) this cursor.""" - before: Cursor + """ + Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. + """ + purchasedCredits: BigInt - """Only read the first `n` values of the set.""" - first: Int + """ + Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. + """ + softMax: BigInt - """Only read the last `n` values of the set.""" - last: Int + """ + Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window + """ + windowDuration: IntervalInput - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int + """Start of the current metering window; NULL means no time window""" + windowStart: Datetime +} - """The method to use when ordering `AppLimitEvent`.""" - orderBy: [AppLimitEventOrderBy!] = [PRIMARY_KEY_ASC] +""" +Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. +""" +type OrgLimitWarning { + """Per-entity override (NULL = scope default for all entities)""" + entityId: UUID + id: UUID! - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: AppLimitEventFilter - ): AppLimitEventConnection + """Limit name this warning applies to (must match a default_limits entry)""" + name: String! - """Reads and enables pagination through a set of `AppLimitWarning`.""" - appLimitWarnings( - """Read all values in the set after (below) this cursor.""" - after: Cursor + """ + Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) + """ + taskIdentifier: String! - """Read all values in the set before (above) this cursor.""" - before: Cursor + """ + Threshold value — either an absolute count or a percentage (1-100) depending on warning_type + """ + thresholdValue: BigInt! - """Only read the first `n` values of the set.""" - first: Int + """Threshold type: absolute (fixed count) or percentage (of max)""" + warningType: String! +} - """Only read the last `n` values of the set.""" - last: Int +"""A connection to a list of `OrgLimitWarning` values.""" +type OrgLimitWarningConnection { + """ + A list of edges which contains the `OrgLimitWarning` and cursor to aid in pagination. + """ + edges: [OrgLimitWarningEdge]! - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int + """A list of `OrgLimitWarning` objects.""" + nodes: [OrgLimitWarning]! - """The method to use when ordering `AppLimitWarning`.""" - orderBy: [AppLimitWarningOrderBy!] = [PRIMARY_KEY_ASC] + """Information to aid in pagination.""" + pageInfo: PageInfo! - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: AppLimitWarningFilter - ): AppLimitWarningConnection + """ + The count of *all* `OrgLimitWarning` you could get from the connection. + """ + totalCount: Int! +} - """Reads and enables pagination through a set of `AppLimit`.""" - appLimits( - """Read all values in the set after (below) this cursor.""" - after: Cursor +"""A `OrgLimitWarning` edge in the connection.""" +type OrgLimitWarningEdge { + """A cursor for use in pagination.""" + cursor: Cursor - """Read all values in the set before (above) this cursor.""" - before: Cursor + """The `OrgLimitWarning` at the end of the edge.""" + node: OrgLimitWarning +} - """Only read the first `n` values of the set.""" - first: Int +""" +A filter to be used against `OrgLimitWarning` object types. All fields are combined with a logical ‘and.’ +""" +input OrgLimitWarningFilter { + """Checks for all expressions in this list.""" + and: [OrgLimitWarningFilter!] - """Only read the last `n` values of the set.""" - last: Int + """Filter by the object’s `entityId` field.""" + entityId: 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 `id` field.""" + id: UUIDFilter - """The method to use when ordering `AppLimit`.""" - orderBy: [AppLimitOrderBy!] = [PRIMARY_KEY_ASC] + """Filter by the object’s `name` field.""" + name: StringFilter - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: AppLimitFilter - ): AppLimitConnection + """Negates the expression.""" + not: OrgLimitWarningFilter - """Reads and enables pagination through a set of `BillingUsageSummary`.""" - billingUsageSummaries( - """Read all values in the set after (below) this cursor.""" - after: Cursor + """Checks for any expressions in this list.""" + or: [OrgLimitWarningFilter!] - """Read all values in the set before (above) this cursor.""" - before: Cursor + """Filter by the object’s `taskIdentifier` field.""" + taskIdentifier: StringFilter - """Only read the first `n` values of the set.""" - first: Int + """Filter by the object’s `thresholdValue` field.""" + thresholdValue: BigIntFilter - """Only read the last `n` values of the set.""" - last: Int + """Filter by the object’s `warningType` field.""" + warningType: StringFilter +} - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int +"""An input for mutations affecting `OrgLimitWarning`""" +input OrgLimitWarningInput { + """Per-entity override (NULL = scope default for all entities)""" + entityId: UUID + id: UUID - """The method to use when ordering `BillingUsageSummary`.""" - orderBy: [BillingUsageSummaryOrderBy!] = [PRIMARY_KEY_ASC] + """Limit name this warning applies to (must match a default_limits entry)""" + name: String! - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: BillingUsageSummaryFilter - ): BillingUsageSummaryConnection - captureAppLimitDefaults: JSON - captureOrgLimitDefaults: JSON - captureTrustLadder: JSON - eventsAchieved(level: String, roleId: UUID): Boolean + """ + Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) + """ + taskIdentifier: String! - """Reads and enables pagination through a set of `AppLevelRequirement`.""" - eventsRequired( - """Read all values in the set after (below) this cursor.""" - after: Cursor + """ + Threshold value — either an absolute count or a percentage (1-100) depending on warning_type + """ + thresholdValue: BigInt! - """Only read the first `n` values of the set.""" - first: Int - level: String + """Threshold type: absolute (fixed count) or percentage (of max)""" + warningType: String! +} - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int - roleId: UUID - ): AppLevelRequirementConnection +"""Methods to use when ordering `OrgLimitWarning`.""" +enum OrgLimitWarningOrderBy { + ENTITY_ID_ASC + ENTITY_ID_DESC + ID_ASC + ID_DESC + NAME_ASC + NAME_DESC + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + TASK_IDENTIFIER_ASC + TASK_IDENTIFIER_DESC + THRESHOLD_VALUE_ASC + THRESHOLD_VALUE_DESC + WARNING_TYPE_ASC + WARNING_TYPE_DESC +} - """Reads and enables pagination through a set of `Ledger`.""" - ledgers( - """Read all values in the set after (below) this cursor.""" - after: Cursor +""" +Represents an update to a `OrgLimitWarning`. Fields that are set will be updated. +""" +input OrgLimitWarningPatch { + """Per-entity override (NULL = scope default for all entities)""" + entityId: UUID + id: UUID - """Read all values in the set before (above) this cursor.""" - before: Cursor + """Limit name this warning applies to (must match a default_limits entry)""" + name: String - """Only read the first `n` values of the set.""" - first: Int + """ + Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) + """ + taskIdentifier: String - """Only read the last `n` values of the set.""" - last: Int + """ + Threshold value — either an absolute count or a percentage (1-100) depending on warning_type + """ + thresholdValue: BigInt + + """Threshold type: absolute (fixed count) or percentage (of max)""" + warningType: String +} - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int +"""Information about pagination in a connection.""" +type PageInfo { + """When paginating forwards, the cursor to continue.""" + endCursor: Cursor - """The method to use when ordering `Ledger`.""" - orderBy: [LedgerOrderBy!] = [PRIMARY_KEY_ASC] + """When paginating forwards, are there more items?""" + hasNextPage: Boolean! - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: LedgerFilter - ): LedgerConnection + """When paginating backwards, are there more items?""" + hasPreviousPage: Boolean! - """Reads and enables pagination through a set of `MeterCredit`.""" - meterCredits( - """Read all values in the set after (below) this cursor.""" - after: Cursor + """When paginating backwards, the cursor to continue.""" + startCursor: Cursor +} - """Read all values in the set before (above) this cursor.""" - before: Cursor +input ProvisionBucketInput { + """The logical bucket key (e.g., "public", "private")""" + bucketKey: String! - """Only read the first `n` values of the set.""" - first: Int + """ + Owner entity ID for entity-scoped bucket provisioning. + Omit for app-level (database-wide) storage. + """ + ownerId: UUID +} - """Only read the last `n` values of the set.""" - last: Int +type ProvisionBucketPayload { + """The logical bucket row that was queued for reconciliation.""" + bucketId: UUID! + bucketKey: 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 reconciler job enqueued to provision this bucket.""" + jobId: UUID! - """The method to use when ordering `MeterCredit`.""" - orderBy: [MeterCreditOrderBy!] = [PRIMARY_KEY_ASC] + """ + The physical bucket name already recorded, or null when reconciliation has not completed. + """ + physicalName: String +} - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: MeterCreditFilter - ): MeterCreditConnection +"""The root query type which gives access points into the data universe.""" +type Query { + """ + Metadata about the database schema, including tables, fields, indexes, and constraints. Useful for code generation tools. + """ + _meta: MetaSchema - """Reads and enables pagination through a set of `MeterDefault`.""" - meterDefaults( + """Reads and enables pagination through a set of `AppLimitCap`.""" + appLimitCaps( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -11990,17 +5680,17 @@ type Query { """ offset: Int - """The method to use when ordering `MeterDefault`.""" - orderBy: [MeterDefaultOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `AppLimitCap`.""" + orderBy: [AppLimitCapOrderBy!] = [PRIMARY_KEY_ASC] """ A filter to be used in determining which values should be returned by the collection. """ - where: MeterDefaultFilter - ): MeterDefaultConnection + where: AppLimitCapFilter + ): AppLimitCapConnection - """Reads and enables pagination through a set of `MeterSource`.""" - meterSources( + """Reads and enables pagination through a set of `AppLimitCapsDefault`.""" + appLimitCapsDefaults( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -12019,17 +5709,19 @@ type Query { """ offset: Int - """The method to use when ordering `MeterSource`.""" - orderBy: [MeterSourceOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `AppLimitCapsDefault`.""" + orderBy: [AppLimitCapsDefaultOrderBy!] = [PRIMARY_KEY_ASC] """ A filter to be used in determining which values should be returned by the collection. """ - where: MeterSourceFilter - ): MeterSourceConnection + where: AppLimitCapsDefaultFilter + ): AppLimitCapsDefaultConnection - """Reads and enables pagination through a set of `Meter`.""" - meters( + """ + Reads and enables pagination through a set of `AppLimitCreditCodeItem`. + """ + appLimitCreditCodeItems( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -12048,17 +5740,17 @@ type Query { """ offset: Int - """The method to use when ordering `Meter`.""" - orderBy: [MeterOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `AppLimitCreditCodeItem`.""" + orderBy: [AppLimitCreditCodeItemOrderBy!] = [PRIMARY_KEY_ASC] """ A filter to be used in determining which values should be returned by the collection. """ - where: MeterFilter - ): MeterConnection + where: AppLimitCreditCodeItemFilter + ): AppLimitCreditCodeItemConnection - """Reads and enables pagination through a set of `OrgLimitAggregate`.""" - orgLimitAggregates( + """Reads and enables pagination through a set of `AppLimitCreditCode`.""" + appLimitCreditCodes( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -12077,17 +5769,19 @@ type Query { """ offset: Int - """The method to use when ordering `OrgLimitAggregate`.""" - orderBy: [OrgLimitAggregateOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `AppLimitCreditCode`.""" + orderBy: [AppLimitCreditCodeOrderBy!] = [PRIMARY_KEY_ASC] """ A filter to be used in determining which values should be returned by the collection. """ - where: OrgLimitAggregateFilter - ): OrgLimitAggregateConnection + where: AppLimitCreditCodeFilter + ): AppLimitCreditCodeConnection - """Reads and enables pagination through a set of `OrgLimitCap`.""" - orgLimitCaps( + """ + Reads and enables pagination through a set of `AppLimitCreditRedemption`. + """ + appLimitCreditRedemptions( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -12106,17 +5800,17 @@ type Query { """ offset: Int - """The method to use when ordering `OrgLimitCap`.""" - orderBy: [OrgLimitCapOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `AppLimitCreditRedemption`.""" + orderBy: [AppLimitCreditRedemptionOrderBy!] = [PRIMARY_KEY_ASC] """ A filter to be used in determining which values should be returned by the collection. """ - where: OrgLimitCapFilter - ): OrgLimitCapConnection + where: AppLimitCreditRedemptionFilter + ): AppLimitCreditRedemptionConnection - """Reads and enables pagination through a set of `OrgLimitCapsDefault`.""" - orgLimitCapsDefaults( + """Reads and enables pagination through a set of `AppLimitCredit`.""" + appLimitCredits( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -12135,17 +5829,17 @@ type Query { """ offset: Int - """The method to use when ordering `OrgLimitCapsDefault`.""" - orderBy: [OrgLimitCapsDefaultOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `AppLimitCredit`.""" + orderBy: [AppLimitCreditOrderBy!] = [PRIMARY_KEY_ASC] """ A filter to be used in determining which values should be returned by the collection. """ - where: OrgLimitCapsDefaultFilter - ): OrgLimitCapsDefaultConnection + where: AppLimitCreditFilter + ): AppLimitCreditConnection - """Reads and enables pagination through a set of `OrgLimitCredit`.""" - orgLimitCredits( + """Reads and enables pagination through a set of `AppLimitDefault`.""" + appLimitDefaults( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -12164,17 +5858,17 @@ type Query { """ offset: Int - """The method to use when ordering `OrgLimitCredit`.""" - orderBy: [OrgLimitCreditOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `AppLimitDefault`.""" + orderBy: [AppLimitDefaultOrderBy!] = [PRIMARY_KEY_ASC] """ A filter to be used in determining which values should be returned by the collection. """ - where: OrgLimitCreditFilter - ): OrgLimitCreditConnection + where: AppLimitDefaultFilter + ): AppLimitDefaultConnection - """Reads and enables pagination through a set of `OrgLimitDefault`.""" - orgLimitDefaults( + """Reads and enables pagination through a set of `AppLimitEvent`.""" + appLimitEvents( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -12193,17 +5887,17 @@ type Query { """ offset: Int - """The method to use when ordering `OrgLimitDefault`.""" - orderBy: [OrgLimitDefaultOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `AppLimitEvent`.""" + orderBy: [AppLimitEventOrderBy!] = [PRIMARY_KEY_ASC] """ A filter to be used in determining which values should be returned by the collection. """ - where: OrgLimitDefaultFilter - ): OrgLimitDefaultConnection + where: AppLimitEventFilter + ): AppLimitEventConnection - """Reads and enables pagination through a set of `OrgLimitEvent`.""" - orgLimitEvents( + """Reads and enables pagination through a set of `AppLimitWarning`.""" + appLimitWarnings( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -12222,17 +5916,17 @@ type Query { """ offset: Int - """The method to use when ordering `OrgLimitEvent`.""" - orderBy: [OrgLimitEventOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `AppLimitWarning`.""" + orderBy: [AppLimitWarningOrderBy!] = [PRIMARY_KEY_ASC] """ A filter to be used in determining which values should be returned by the collection. """ - where: OrgLimitEventFilter - ): OrgLimitEventConnection + where: AppLimitWarningFilter + ): AppLimitWarningConnection - """Reads and enables pagination through a set of `OrgLimitWarning`.""" - orgLimitWarnings( + """Reads and enables pagination through a set of `AppLimit`.""" + appLimits( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -12251,17 +5945,19 @@ type Query { """ offset: Int - """The method to use when ordering `OrgLimitWarning`.""" - orderBy: [OrgLimitWarningOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `AppLimit`.""" + orderBy: [AppLimitOrderBy!] = [PRIMARY_KEY_ASC] """ A filter to be used in determining which values should be returned by the collection. """ - where: OrgLimitWarningFilter - ): OrgLimitWarningConnection + where: AppLimitFilter + ): AppLimitConnection + captureAppLimitDefaults: JSON + captureOrgLimitDefaults: JSON - """Reads and enables pagination through a set of `OrgLimit`.""" - orgLimits( + """Reads and enables pagination through a set of `OrgLimitAggregate`.""" + orgLimitAggregates( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -12280,17 +5976,17 @@ type Query { """ offset: Int - """The method to use when ordering `OrgLimit`.""" - orderBy: [OrgLimitOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `OrgLimitAggregate`.""" + orderBy: [OrgLimitAggregateOrderBy!] = [PRIMARY_KEY_ASC] """ A filter to be used in determining which values should be returned by the collection. """ - where: OrgLimitFilter - ): OrgLimitConnection + where: OrgLimitAggregateFilter + ): OrgLimitAggregateConnection - """Reads and enables pagination through a set of `PlanCap`.""" - planCaps( + """Reads and enables pagination through a set of `OrgLimitCap`.""" + orgLimitCaps( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -12309,17 +6005,17 @@ type Query { """ offset: Int - """The method to use when ordering `PlanCap`.""" - orderBy: [PlanCapOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `OrgLimitCap`.""" + orderBy: [OrgLimitCapOrderBy!] = [PRIMARY_KEY_ASC] """ A filter to be used in determining which values should be returned by the collection. """ - where: PlanCapFilter - ): PlanCapConnection + where: OrgLimitCapFilter + ): OrgLimitCapConnection - """Reads and enables pagination through a set of `PlanLimit`.""" - planLimits( + """Reads and enables pagination through a set of `OrgLimitCapsDefault`.""" + orgLimitCapsDefaults( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -12338,17 +6034,17 @@ type Query { """ offset: Int - """The method to use when ordering `PlanLimit`.""" - orderBy: [PlanLimitOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `OrgLimitCapsDefault`.""" + orderBy: [OrgLimitCapsDefaultOrderBy!] = [PRIMARY_KEY_ASC] """ A filter to be used in determining which values should be returned by the collection. """ - where: PlanLimitFilter - ): PlanLimitConnection + where: OrgLimitCapsDefaultFilter + ): OrgLimitCapsDefaultConnection - """Reads and enables pagination through a set of `PlanMeterLimit`.""" - planMeterLimits( + """Reads and enables pagination through a set of `OrgLimitCredit`.""" + orgLimitCredits( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -12367,17 +6063,17 @@ type Query { """ offset: Int - """The method to use when ordering `PlanMeterLimit`.""" - orderBy: [PlanMeterLimitOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `OrgLimitCredit`.""" + orderBy: [OrgLimitCreditOrderBy!] = [PRIMARY_KEY_ASC] """ A filter to be used in determining which values should be returned by the collection. """ - where: PlanMeterLimitFilter - ): PlanMeterLimitConnection + where: OrgLimitCreditFilter + ): OrgLimitCreditConnection - """Reads and enables pagination through a set of `PlanOverride`.""" - planOverrides( + """Reads and enables pagination through a set of `OrgLimitDefault`.""" + orgLimitDefaults( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -12396,17 +6092,17 @@ type Query { """ offset: Int - """The method to use when ordering `PlanOverride`.""" - orderBy: [PlanOverrideOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `OrgLimitDefault`.""" + orderBy: [OrgLimitDefaultOrderBy!] = [PRIMARY_KEY_ASC] """ A filter to be used in determining which values should be returned by the collection. """ - where: PlanOverrideFilter - ): PlanOverrideConnection + where: OrgLimitDefaultFilter + ): OrgLimitDefaultConnection - """Reads and enables pagination through a set of `PlanPricing`.""" - planPricings( + """Reads and enables pagination through a set of `OrgLimitEvent`.""" + orgLimitEvents( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -12425,17 +6121,17 @@ type Query { """ offset: Int - """The method to use when ordering `PlanPricing`.""" - orderBy: [PlanPricingOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `OrgLimitEvent`.""" + orderBy: [OrgLimitEventOrderBy!] = [PRIMARY_KEY_ASC] """ A filter to be used in determining which values should be returned by the collection. """ - where: PlanPricingFilter - ): PlanPricingConnection + where: OrgLimitEventFilter + ): OrgLimitEventConnection - """Reads and enables pagination through a set of `PlanSubscription`.""" - planSubscriptions( + """Reads and enables pagination through a set of `OrgLimitWarning`.""" + orgLimitWarnings( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -12454,17 +6150,17 @@ type Query { """ offset: Int - """The method to use when ordering `PlanSubscription`.""" - orderBy: [PlanSubscriptionOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `OrgLimitWarning`.""" + orderBy: [OrgLimitWarningOrderBy!] = [PRIMARY_KEY_ASC] """ A filter to be used in determining which values should be returned by the collection. """ - where: PlanSubscriptionFilter - ): PlanSubscriptionConnection + where: OrgLimitWarningFilter + ): OrgLimitWarningConnection - """Reads and enables pagination through a set of `Plan`.""" - plans( + """Reads and enables pagination through a set of `OrgLimit`.""" + orgLimits( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -12477,71 +6173,20 @@ type Query { """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 `Plan`.""" - orderBy: [PlanOrderBy!] = [PRIMARY_KEY_ASC] - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: PlanFilter - ): PlanConnection -} - -"""All input for the `recomputeCapabilities` mutation.""" -input RecomputeCapabilitiesInput { - actorId: UUID - - """ - An arbitrary 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 `recomputeCapabilities` mutation.""" -type RecomputeCapabilitiesPayload { - """ - The 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 `revokeAchievement` mutation.""" -input RevokeAchievementInput { - actorId: UUID - - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - levelName: String -} - -"""The output of our `revokeAchievement` mutation.""" -type RevokeAchievementPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query + """The method to use when ordering `OrgLimit`.""" + orderBy: [OrgLimitOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: OrgLimitFilter + ): OrgLimitConnection } """All input for the `seedAppLimitCapsDefaults` mutation.""" @@ -12594,31 +6239,6 @@ type SeedAppLimitDefaultsPayload { result: Boolean } -"""All input for the `seedMeterDefaults` mutation.""" -input SeedMeterDefaultsInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - defaults: JSON -} - -"""The output of our `seedMeterDefaults` mutation.""" -type SeedMeterDefaultsPayload { - """ - The 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: Boolean -} - """All input for the `seedOrgLimitCapsDefaults` mutation.""" input SeedOrgLimitCapsDefaultsInput { """ @@ -12669,57 +6289,6 @@ type SeedOrgLimitDefaultsPayload { result: Boolean } -"""All input for the `seedPlan` mutation.""" -input SeedPlanInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - planConfig: JSON - planName: String -} - -"""The output of our `seedPlan` mutation.""" -type SeedPlanPayload { - """ - The 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 `seedTrustLadder` mutation.""" -input SeedTrustLadderInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - ladder: JSON -} - -"""The output of our `seedTrustLadder` mutation.""" -type SeedTrustLadderPayload { - """ - The 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: Boolean -} - """ A filter to be used against String fields. All fields are combined with a logical ‘and.’ """ @@ -12854,318 +6423,49 @@ input StringFilter { """ A universally unique identifier as defined by [RFC 4122](https://tools.ietf.org/html/rfc4122). -""" -scalar UUID - -""" -A filter to be used against UUID fields. All fields are combined with a logical ‘and.’ -""" -input UUIDFilter { - """ - Not equal to the specified value, treating null like an ordinary value. - """ - distinctFrom: UUID - - """Equal to the specified value.""" - equalTo: UUID - - """Greater than the specified value.""" - greaterThan: UUID - - """Greater than or equal to the specified value.""" - greaterThanOrEqualTo: UUID - - """Included in the specified list.""" - in: [UUID!] - - """ - Is null (if `true` is specified) or is not null (if `false` is specified). - """ - isNull: Boolean - - """Less than the specified value.""" - lessThan: UUID - - """Less than or equal to the specified value.""" - lessThanOrEqualTo: 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 `updateAppAchievementReward` mutation.""" -input UpdateAppAchievementRewardInput { - """ - An object where the defined keys will be set on the `AppAchievementReward` being updated. - """ - appAchievementRewardPatch: AppAchievementRewardPatch! - - """ - An arbitrary 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 `AppAchievementReward` mutation.""" -type UpdateAppAchievementRewardPayload { - """The `AppAchievementReward` that was updated by this mutation.""" - appAchievementReward: AppAchievementReward - - """An edge for our `AppAchievementReward`. May be used by Relay 1.""" - appAchievementRewardEdge( - """The method to use when ordering `AppAchievementReward`.""" - orderBy: [AppAchievementRewardOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppAchievementRewardEdge - - """ - The 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 `updateAppEventAggregate` mutation.""" -input UpdateAppEventAggregateInput { - """ - An object where the defined keys will be set on the `AppEventAggregate` being updated. - """ - appEventAggregatePatch: AppEventAggregatePatch! - - """ - An arbitrary 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 `AppEventAggregate` mutation.""" -type UpdateAppEventAggregatePayload { - """The `AppEventAggregate` that was updated by this mutation.""" - appEventAggregate: AppEventAggregate - - """An edge for our `AppEventAggregate`. May be used by Relay 1.""" - appEventAggregateEdge( - """The method to use when ordering `AppEventAggregate`.""" - orderBy: [AppEventAggregateOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppEventAggregateEdge - - """ - The 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 `updateAppEvent` mutation.""" -input UpdateAppEventInput { - """ - An object where the defined keys will be set on the `AppEvent` being updated. - """ - appEventPatch: AppEventPatch! - - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - createdAt: Datetime! - - """Unique identifier for each event (uuidv7 provides temporal ordering)""" - id: UUID! -} - -"""The output of our update `AppEvent` mutation.""" -type UpdateAppEventPayload { - """The `AppEvent` that was updated by this mutation.""" - appEvent: AppEvent - - """An edge for our `AppEvent`. May be used by Relay 1.""" - appEventEdge( - """The method to use when ordering `AppEvent`.""" - orderBy: [AppEventOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppEventEdge - - """ - The 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 `updateAppEventType` mutation.""" -input UpdateAppEventTypeInput { - """ - An object where the defined keys will be set on the `AppEventType` being updated. - """ - appEventTypePatch: AppEventTypePatch! - - """ - An arbitrary 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 `AppEventType` mutation.""" -type UpdateAppEventTypePayload { - """The `AppEventType` that was updated by this mutation.""" - appEventType: AppEventType - - """An edge for our `AppEventType`. May be used by Relay 1.""" - appEventTypeEdge( - """The method to use when ordering `AppEventType`.""" - orderBy: [AppEventTypeOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppEventTypeEdge - - """ - The 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 `updateAppLevelGrant` mutation.""" -input UpdateAppLevelGrantInput { - """ - An object where the defined keys will be set on the `AppLevelGrant` being updated. - """ - appLevelGrantPatch: AppLevelGrantPatch! - - """ - An arbitrary 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 `AppLevelGrant` mutation.""" -type UpdateAppLevelGrantPayload { - """The `AppLevelGrant` that was updated by this mutation.""" - appLevelGrant: AppLevelGrant - - """An edge for our `AppLevelGrant`. May be used by Relay 1.""" - appLevelGrantEdge( - """The method to use when ordering `AppLevelGrant`.""" - orderBy: [AppLevelGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLevelGrantEdge - - """ - The 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 `updateAppLevel` mutation.""" -input UpdateAppLevelInput { - """ - An object where the defined keys will be set on the `AppLevel` being updated. - """ - appLevelPatch: AppLevelPatch! +""" +scalar UUID +""" +A filter to be used against UUID fields. All fields are combined with a logical ‘and.’ +""" +input UUIDFilter { """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. + Not equal to the specified value, treating null like an ordinary value. """ - clientMutationId: String - id: UUID! -} + distinctFrom: UUID -"""The output of our update `AppLevel` mutation.""" -type UpdateAppLevelPayload { - """The `AppLevel` that was updated by this mutation.""" - appLevel: AppLevel + """Equal to the specified value.""" + equalTo: UUID - """An edge for our `AppLevel`. May be used by Relay 1.""" - appLevelEdge( - """The method to use when ordering `AppLevel`.""" - orderBy: [AppLevelOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLevelEdge + """Greater than the specified value.""" + greaterThan: 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 + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: UUID - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} + """Included in the specified list.""" + in: [UUID!] -"""All input for the `updateAppLevelRequirement` mutation.""" -input UpdateAppLevelRequirementInput { """ - An object where the defined keys will be set on the `AppLevelRequirement` being updated. + Is null (if `true` is specified) or is not null (if `false` is specified). """ - appLevelRequirementPatch: AppLevelRequirementPatch! + isNull: 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 - id: UUID! -} + """Less than the specified value.""" + lessThan: UUID -"""The output of our update `AppLevelRequirement` mutation.""" -type UpdateAppLevelRequirementPayload { - """The `AppLevelRequirement` that was updated by this mutation.""" - appLevelRequirement: AppLevelRequirement + """Less than or equal to the specified value.""" + lessThanOrEqualTo: UUID - """An edge for our `AppLevelRequirement`. May be used by Relay 1.""" - appLevelRequirementEdge( - """The method to use when ordering `AppLevelRequirement`.""" - orderBy: [AppLevelRequirementOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLevelRequirementEdge + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: 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 equal to the specified value.""" + notEqualTo: UUID - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query + """Not included in the specified list.""" + notIn: [UUID!] } """All input for the `updateAppLimitCap` mutation.""" @@ -13416,366 +6716,135 @@ type UpdateAppLimitDefaultPayload { """The `AppLimitDefault` that was updated by this mutation.""" appLimitDefault: AppLimitDefault - """An edge for our `AppLimitDefault`. May be used by Relay 1.""" - appLimitDefaultEdge( - """The method to use when ordering `AppLimitDefault`.""" - orderBy: [AppLimitDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitDefaultEdge - - """ - The 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 `updateAppLimitEvent` mutation.""" -input UpdateAppLimitEventInput { - """ - An object where the defined keys will be set on the `AppLimitEvent` being updated. - """ - appLimitEventPatch: AppLimitEventPatch! - - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - createdAt: Datetime! - - """Unique identifier for each limit event""" - id: UUID! -} - -"""The output of our update `AppLimitEvent` mutation.""" -type UpdateAppLimitEventPayload { - """The `AppLimitEvent` that was updated by this mutation.""" - appLimitEvent: AppLimitEvent - - """An edge for our `AppLimitEvent`. May be used by Relay 1.""" - appLimitEventEdge( - """The method to use when ordering `AppLimitEvent`.""" - orderBy: [AppLimitEventOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitEventEdge - - """ - The 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 `updateAppLimit` mutation.""" -input UpdateAppLimitInput { - """ - An object where the defined keys will be set on the `AppLimit` being updated. - """ - appLimitPatch: AppLimitPatch! - - """ - An arbitrary 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 `AppLimit` mutation.""" -type UpdateAppLimitPayload { - """The `AppLimit` that was updated by this mutation.""" - appLimit: AppLimit - - """An edge for our `AppLimit`. May be used by Relay 1.""" - appLimitEdge( - """The method to use when ordering `AppLimit`.""" - orderBy: [AppLimitOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitEdge - - """ - The 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 `updateAppLimitWarning` mutation.""" -input UpdateAppLimitWarningInput { - """ - An object where the defined keys will be set on the `AppLimitWarning` being updated. - """ - appLimitWarningPatch: AppLimitWarningPatch! - - """ - An arbitrary 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 `AppLimitWarning` mutation.""" -type UpdateAppLimitWarningPayload { - """The `AppLimitWarning` that was updated by this mutation.""" - appLimitWarning: AppLimitWarning - - """An edge for our `AppLimitWarning`. May be used by Relay 1.""" - appLimitWarningEdge( - """The method to use when ordering `AppLimitWarning`.""" - orderBy: [AppLimitWarningOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitWarningEdge - - """ - The 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 `updateBillingUsageSummary` mutation.""" -input UpdateBillingUsageSummaryInput { - """ - An object where the defined keys will be set on the `BillingUsageSummary` being updated. - """ - billingUsageSummaryPatch: BillingUsageSummaryPatch! - - """ - An arbitrary 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 `BillingUsageSummary` mutation.""" -type UpdateBillingUsageSummaryPayload { - """The `BillingUsageSummary` that was updated by this mutation.""" - billingUsageSummary: BillingUsageSummary - - """An edge for our `BillingUsageSummary`. May be used by Relay 1.""" - billingUsageSummaryEdge( - """The method to use when ordering `BillingUsageSummary`.""" - orderBy: [BillingUsageSummaryOrderBy!]! = [PRIMARY_KEY_ASC] - ): BillingUsageSummaryEdge - - """ - The 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 `updateLedger` mutation.""" -input UpdateLedgerInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - createdAt: Datetime! - - """Unique identifier for each ledger entry""" - id: UUID! - - """ - An object where the defined keys will be set on the `Ledger` being updated. - """ - ledgerPatch: LedgerPatch! -} - -"""The output of our update `Ledger` mutation.""" -type UpdateLedgerPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `Ledger` that was updated by this mutation.""" - ledger: Ledger - - """An edge for our `Ledger`. May be used by Relay 1.""" - ledgerEdge( - """The method to use when ordering `Ledger`.""" - orderBy: [LedgerOrderBy!]! = [PRIMARY_KEY_ASC] - ): LedgerEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the `updateMeterCredit` mutation.""" -input UpdateMeterCreditInput { - """ - An arbitrary 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 `MeterCredit` being updated. - """ - meterCreditPatch: MeterCreditPatch! -} + """An edge for our `AppLimitDefault`. May be used by Relay 1.""" + appLimitDefaultEdge( + """The method to use when ordering `AppLimitDefault`.""" + orderBy: [AppLimitDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitDefaultEdge -"""The output of our update `MeterCredit` mutation.""" -type UpdateMeterCreditPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `MeterCredit` that was updated by this mutation.""" - meterCredit: MeterCredit - - """An edge for our `MeterCredit`. May be used by Relay 1.""" - meterCreditEdge( - """The method to use when ordering `MeterCredit`.""" - orderBy: [MeterCreditOrderBy!]! = [PRIMARY_KEY_ASC] - ): MeterCreditEdge - """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query } -"""All input for the `updateMeterDefault` mutation.""" -input UpdateMeterDefaultInput { +"""All input for the `updateAppLimitEvent` mutation.""" +input UpdateAppLimitEventInput { + """ + An object where the defined keys will be set on the `AppLimitEvent` being updated. + """ + appLimitEventPatch: AppLimitEventPatch! + """ An arbitrary 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! + createdAt: Datetime! - """ - An object where the defined keys will be set on the `MeterDefault` being updated. - """ - meterDefaultPatch: MeterDefaultPatch! + """Unique identifier for each limit event""" + id: UUID! } -"""The output of our update `MeterDefault` mutation.""" -type UpdateMeterDefaultPayload { +"""The output of our update `AppLimitEvent` mutation.""" +type UpdateAppLimitEventPayload { + """The `AppLimitEvent` that was updated by this mutation.""" + appLimitEvent: AppLimitEvent + + """An edge for our `AppLimitEvent`. May be used by Relay 1.""" + appLimitEventEdge( + """The method to use when ordering `AppLimitEvent`.""" + orderBy: [AppLimitEventOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitEventEdge + """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `MeterDefault` that was updated by this mutation.""" - meterDefault: MeterDefault - - """An edge for our `MeterDefault`. May be used by Relay 1.""" - meterDefaultEdge( - """The method to use when ordering `MeterDefault`.""" - orderBy: [MeterDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): MeterDefaultEdge - """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query } -"""All input for the `updateMeter` mutation.""" -input UpdateMeterInput { +"""All input for the `updateAppLimit` mutation.""" +input UpdateAppLimitInput { + """ + An object where the defined keys will be set on the `AppLimit` being updated. + """ + appLimitPatch: AppLimitPatch! + """ An arbitrary 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 `Meter` being updated. - """ - meterPatch: MeterPatch! } -"""The output of our update `Meter` mutation.""" -type UpdateMeterPayload { +"""The output of our update `AppLimit` mutation.""" +type UpdateAppLimitPayload { + """The `AppLimit` that was updated by this mutation.""" + appLimit: AppLimit + + """An edge for our `AppLimit`. May be used by Relay 1.""" + appLimitEdge( + """The method to use when ordering `AppLimit`.""" + orderBy: [AppLimitOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitEdge + """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `Meter` that was updated by this mutation.""" - meter: Meter - - """An edge for our `Meter`. May be used by Relay 1.""" - meterEdge( - """The method to use when ordering `Meter`.""" - orderBy: [MeterOrderBy!]! = [PRIMARY_KEY_ASC] - ): MeterEdge - """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query } -"""All input for the `updateMeterSource` mutation.""" -input UpdateMeterSourceInput { +"""All input for the `updateAppLimitWarning` mutation.""" +input UpdateAppLimitWarningInput { + """ + An object where the defined keys will be set on the `AppLimitWarning` being updated. + """ + appLimitWarningPatch: AppLimitWarningPatch! + """ An arbitrary 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 `MeterSource` being updated. - """ - meterSourcePatch: MeterSourcePatch! } -"""The output of our update `MeterSource` mutation.""" -type UpdateMeterSourcePayload { +"""The output of our update `AppLimitWarning` mutation.""" +type UpdateAppLimitWarningPayload { + """The `AppLimitWarning` that was updated by this mutation.""" + appLimitWarning: AppLimitWarning + + """An edge for our `AppLimitWarning`. May be used by Relay 1.""" + appLimitWarningEdge( + """The method to use when ordering `AppLimitWarning`.""" + orderBy: [AppLimitWarningOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitWarningEdge + """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `MeterSource` that was updated by this mutation.""" - meterSource: MeterSource - - """An edge for our `MeterSource`. May be used by Relay 1.""" - meterSourceEdge( - """The method to use when ordering `MeterSource`.""" - orderBy: [MeterSourceOrderBy!]! = [PRIMARY_KEY_ASC] - ): MeterSourceEdge - """ Our root query field type. Allows us to run any query from our mutation payload. """ @@ -14087,273 +7156,4 @@ type UpdateOrgLimitWarningPayload { Our root query field type. Allows us to run any query from our mutation payload. """ query: Query -} - -"""All input for the `updatePlanCap` mutation.""" -input UpdatePlanCapInput { - """ - An arbitrary 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 `PlanCap` being updated. - """ - planCapPatch: PlanCapPatch! -} - -"""The output of our update `PlanCap` mutation.""" -type UpdatePlanCapPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `PlanCap` that was updated by this mutation.""" - planCap: PlanCap - - """An edge for our `PlanCap`. May be used by Relay 1.""" - planCapEdge( - """The method to use when ordering `PlanCap`.""" - orderBy: [PlanCapOrderBy!]! = [PRIMARY_KEY_ASC] - ): PlanCapEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the `updatePlan` mutation.""" -input UpdatePlanInput { - """ - An arbitrary 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 `Plan` being updated. - """ - planPatch: PlanPatch! -} - -"""All input for the `updatePlanLimit` mutation.""" -input UpdatePlanLimitInput { - """ - An arbitrary 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 `PlanLimit` being updated. - """ - planLimitPatch: PlanLimitPatch! -} - -"""The output of our update `PlanLimit` mutation.""" -type UpdatePlanLimitPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `PlanLimit` that was updated by this mutation.""" - planLimit: PlanLimit - - """An edge for our `PlanLimit`. May be used by Relay 1.""" - planLimitEdge( - """The method to use when ordering `PlanLimit`.""" - orderBy: [PlanLimitOrderBy!]! = [PRIMARY_KEY_ASC] - ): PlanLimitEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the `updatePlanMeterLimit` mutation.""" -input UpdatePlanMeterLimitInput { - """ - An arbitrary 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 `PlanMeterLimit` being updated. - """ - planMeterLimitPatch: PlanMeterLimitPatch! -} - -"""The output of our update `PlanMeterLimit` mutation.""" -type UpdatePlanMeterLimitPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `PlanMeterLimit` that was updated by this mutation.""" - planMeterLimit: PlanMeterLimit - - """An edge for our `PlanMeterLimit`. May be used by Relay 1.""" - planMeterLimitEdge( - """The method to use when ordering `PlanMeterLimit`.""" - orderBy: [PlanMeterLimitOrderBy!]! = [PRIMARY_KEY_ASC] - ): PlanMeterLimitEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the `updatePlanOverride` mutation.""" -input UpdatePlanOverrideInput { - """ - An arbitrary 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 `PlanOverride` being updated. - """ - planOverridePatch: PlanOverridePatch! -} - -"""The output of our update `PlanOverride` mutation.""" -type UpdatePlanOverridePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `PlanOverride` that was updated by this mutation.""" - planOverride: PlanOverride - - """An edge for our `PlanOverride`. May be used by Relay 1.""" - planOverrideEdge( - """The method to use when ordering `PlanOverride`.""" - orderBy: [PlanOverrideOrderBy!]! = [PRIMARY_KEY_ASC] - ): PlanOverrideEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""The output of our update `Plan` mutation.""" -type UpdatePlanPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `Plan` that was updated by this mutation.""" - plan: Plan - - """An edge for our `Plan`. May be used by Relay 1.""" - planEdge( - """The method to use when ordering `Plan`.""" - orderBy: [PlanOrderBy!]! = [PRIMARY_KEY_ASC] - ): PlanEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the `updatePlanPricing` mutation.""" -input UpdatePlanPricingInput { - """ - An arbitrary 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 `PlanPricing` being updated. - """ - planPricingPatch: PlanPricingPatch! -} - -"""The output of our update `PlanPricing` mutation.""" -type UpdatePlanPricingPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `PlanPricing` that was updated by this mutation.""" - planPricing: PlanPricing - - """An edge for our `PlanPricing`. May be used by Relay 1.""" - planPricingEdge( - """The method to use when ordering `PlanPricing`.""" - orderBy: [PlanPricingOrderBy!]! = [PRIMARY_KEY_ASC] - ): PlanPricingEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the `updatePlanSubscription` mutation.""" -input UpdatePlanSubscriptionInput { - """ - An arbitrary 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 `PlanSubscription` being updated. - """ - planSubscriptionPatch: PlanSubscriptionPatch! -} - -"""The output of our update `PlanSubscription` mutation.""" -type UpdatePlanSubscriptionPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `PlanSubscription` that was updated by this mutation.""" - planSubscription: PlanSubscription - - """An edge for our `PlanSubscription`. May be used by Relay 1.""" - planSubscriptionEdge( - """The method to use when ordering `PlanSubscription`.""" - orderBy: [PlanSubscriptionOrderBy!]! = [PRIMARY_KEY_ASC] - ): PlanSubscriptionEdge - - """ - 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 +} \ No newline at end of file diff --git a/sdk/constructive-sdk/src/.targets b/sdk/constructive-sdk/src/.targets index cf3103f66e..a76617a0f3 100644 --- a/sdk/constructive-sdk/src/.targets +++ b/sdk/constructive-sdk/src/.targets @@ -1 +1 @@ -["admin","agent","api","auth","compute","config","infra","modules","objects","usage"] +["admin","agent","api","auth","compute","config","infra","modules","objects","remote","storage","usage"] diff --git a/sdk/constructive-sdk/src/admin/README.md b/sdk/constructive-sdk/src/admin/README.md index 9fc6d366af..12c85e79ad 100644 --- a/sdk/constructive-sdk/src/admin/README.md +++ b/sdk/constructive-sdk/src/admin/README.md @@ -8,8 +8,8 @@ ## Overview -- **Tables:** 42 -- **Custom queries:** 9 +- **Tables:** 26 +- **Custom queries:** 2 - **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 c337efef49..23761f3cd3 100644 --- a/sdk/constructive-sdk/src/admin/orm/README.md +++ b/sdk/constructive-sdk/src/admin/orm/README.md @@ -22,27 +22,17 @@ const db = createClient({ | Model | Operations | |-------|------------| | `appAdminGrant` | findMany, findOne, create, update, delete | -| `appCapability` | findMany, findOne, create, update, delete | | `appCapabilityDefaultCapability` | findMany, findOne, create, update, delete | -| `appCapabilityDefault` | 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 | -| `appMembershipProfile` | findMany, findOne, create, update, delete | | `appOwnerGrant` | findMany, findOne, create, update, delete | -| `appProfileCapability` | findMany, findOne, create, update, delete | -| `appProfile` | findMany, findOne, create, update, delete | -| `appProfileDefinitionGrant` | findMany, findOne, create, update, delete | -| `appProfileGrant` | findMany, findOne, create, update, delete | -| `appProfileTemplate` | findMany, findOne, create, update, delete | | `membershipType` | findMany, findOne, create, update, delete | | `orgAdminGrant` | findMany, findOne, create, update, delete | -| `orgCapability` | findMany, findOne, create, update, delete | | `orgCapabilityDefaultCapability` | findMany, findOne, create, update, delete | -| `orgCapabilityDefault` | findMany, findOne, create, update, delete | | `orgCapabilityDefaultGrant` | findMany, findOne, create, update, delete | | `orgChartEdge` | findMany, findOne, create, update, delete | | `orgChartEdgeGrant` | findMany, findOne, create, update, delete | @@ -55,14 +45,8 @@ const db = createClient({ | `orgMemberProfile` | findMany, findOne, create, update, delete | | `orgMembership` | findMany, findOne, create, update, delete | | `orgMembershipDefault` | findMany, findOne, create, update, delete | -| `orgMembershipProfile` | findMany, findOne, create, update, delete | | `orgMembershipSetting` | findMany, findOne, create, update, delete | | `orgOwnerGrant` | findMany, findOne, create, update, delete | -| `orgProfileCapability` | findMany, findOne, create, update, delete | -| `orgProfile` | findMany, findOne, create, update, delete | -| `orgProfileDefinitionGrant` | findMany, findOne, create, update, delete | -| `orgProfileGrant` | findMany, findOne, create, update, delete | -| `orgProfileTemplate` | findMany, findOne, create, update, delete | ## Table Operations @@ -100,40 +84,6 @@ const updated = await db.appAdminGrant.update({ where: { id: '' }, data: { const deleted = await db.appAdminGrant.delete({ where: { id: '' } }).execute(); ``` -### `db.appCapability` - -CRUD operations for AppCapability records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `bitnum` | Int | Yes | -| `bitstr` | BitString | Yes | -| `description` | String | Yes | -| `id` | UUID | No | -| `kind` | String | Yes | -| `name` | String | Yes | - -**Operations:** - -```typescript -// List all appCapability records -const items = await db.appCapability.findMany({ select: { bitnum: true, bitstr: true, description: true, id: true, kind: true, name: true } }).execute(); - -// Get one by id -const item = await db.appCapability.findOne({ id: '', select: { bitnum: true, bitstr: true, description: true, id: true, kind: true, name: true } }).execute(); - -// Create -const created = await db.appCapability.create({ data: { bitnum: '', bitstr: '', description: '', kind: '', name: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appCapability.update({ where: { id: '' }, data: { bitnum: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appCapability.delete({ where: { id: '' } }).execute(); -``` - ### `db.appCapabilityDefaultCapability` CRUD operations for AppCapabilityDefaultCapability records. @@ -166,36 +116,6 @@ const updated = await db.appCapabilityDefaultCapability.update({ where: { id: '< const deleted = await db.appCapabilityDefaultCapability.delete({ where: { id: '' } }).execute(); ``` -### `db.appCapabilityDefault` - -CRUD operations for AppCapabilityDefault records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `capabilities` | BitString | Yes | -| `id` | UUID | No | - -**Operations:** - -```typescript -// List all appCapabilityDefault records -const items = await db.appCapabilityDefault.findMany({ select: { capabilities: true, id: true } }).execute(); - -// Get one by id -const item = await db.appCapabilityDefault.findOne({ id: '', select: { capabilities: true, id: true } }).execute(); - -// Create -const created = await db.appCapabilityDefault.create({ data: { capabilities: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appCapabilityDefault.update({ where: { id: '' }, data: { capabilities: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appCapabilityDefault.delete({ where: { id: '' } }).execute(); -``` - ### `db.appCapabilityDefaultGrant` CRUD operations for AppCapabilityDefaultGrant records. @@ -354,6 +274,7 @@ CRUD operations for AppMembership records. | `capabilities` | BitString | Yes | | `createdAt` | Datetime | No | | `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | | `granted` | BitString | Yes | | `id` | UUID | No | | `isActive` | Boolean | Yes | @@ -366,18 +287,19 @@ CRUD operations for AppMembership records. | `profileId` | UUID | Yes | | `updatedAt` | Datetime | No | | `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | **Operations:** ```typescript // List all appMembership records -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(); +const items = await db.appMembership.findMany({ select: { actorId: true, capabilities: true, createdAt: true, createdBy: true, createdByPrincipal: 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, updatedByPrincipal: true } }).execute(); // Get one by id -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(); +const item = await db.appMembership.findOne({ id: '', select: { actorId: true, capabilities: true, createdAt: true, createdBy: true, createdByPrincipal: 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, updatedByPrincipal: true } }).execute(); // Create -const created = await db.appMembership.create({ data: { actorId: '', capabilities: '', createdBy: '', granted: '', isActive: '', isAdmin: '', isApproved: '', isBanned: '', isDisabled: '', isOwner: '', isVerified: '', profileId: '', updatedBy: '' }, select: { id: true } }).execute(); +const created = await db.appMembership.create({ data: { actorId: '', capabilities: '', createdBy: '', createdByPrincipal: '', granted: '', isActive: '', isAdmin: '', isApproved: '', isBanned: '', isDisabled: '', isOwner: '', isVerified: '', profileId: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update const updated = await db.appMembership.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); @@ -396,23 +318,25 @@ CRUD operations for AppMembershipDefault records. |-------|------|----------| | `createdAt` | Datetime | No | | `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | | `id` | UUID | No | | `isApproved` | Boolean | Yes | | `isVerified` | Boolean | Yes | | `updatedAt` | Datetime | No | | `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | **Operations:** ```typescript // List all appMembershipDefault records -const items = await db.appMembershipDefault.findMany({ select: { createdAt: true, createdBy: true, id: true, isApproved: true, isVerified: true, updatedAt: true, updatedBy: true } }).execute(); +const items = await db.appMembershipDefault.findMany({ select: { createdAt: true, createdBy: true, createdByPrincipal: true, id: true, isApproved: true, isVerified: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.appMembershipDefault.findOne({ id: '', select: { createdAt: true, createdBy: true, id: true, isApproved: true, isVerified: true, updatedAt: true, updatedBy: true } }).execute(); +const item = await db.appMembershipDefault.findOne({ id: '', select: { createdAt: true, createdBy: true, createdByPrincipal: true, id: true, isApproved: true, isVerified: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.appMembershipDefault.create({ data: { createdBy: '', isApproved: '', isVerified: '', updatedBy: '' }, select: { id: true } }).execute(); +const created = await db.appMembershipDefault.create({ data: { createdBy: '', createdByPrincipal: '', isApproved: '', isVerified: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update const updated = await db.appMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); @@ -421,40 +345,6 @@ const updated = await db.appMembershipDefault.update({ where: { id: '' }, const deleted = await db.appMembershipDefault.delete({ where: { id: '' } }).execute(); ``` -### `db.appMembershipProfile` - -CRUD operations for AppMembershipProfile records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `actorId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `id` | UUID | No | -| `membershipId` | UUID | Yes | -| `profileId` | UUID | Yes | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all appMembershipProfile records -const items = await db.appMembershipProfile.findMany({ select: { actorId: true, createdAt: true, id: true, membershipId: true, profileId: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.appMembershipProfile.findOne({ id: '', select: { actorId: true, createdAt: true, id: true, membershipId: true, profileId: true, updatedAt: true } }).execute(); - -// Create -const created = await db.appMembershipProfile.create({ data: { actorId: '', membershipId: '', profileId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appMembershipProfile.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appMembershipProfile.delete({ where: { id: '' } }).execute(); -``` - ### `db.appOwnerGrant` CRUD operations for AppOwnerGrant records. @@ -489,182 +379,6 @@ const updated = await db.appOwnerGrant.update({ where: { id: '' }, data: { const deleted = await db.appOwnerGrant.delete({ where: { id: '' } }).execute(); ``` -### `db.appProfileCapability` - -CRUD operations for AppProfileCapability records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `capabilityId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `id` | UUID | No | -| `profileId` | UUID | Yes | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all appProfileCapability records -const items = await db.appProfileCapability.findMany({ select: { capabilityId: true, createdAt: true, id: true, profileId: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.appProfileCapability.findOne({ id: '', select: { capabilityId: true, createdAt: true, id: true, profileId: true, updatedAt: true } }).execute(); - -// Create -const created = await db.appProfileCapability.create({ data: { capabilityId: '', profileId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appProfileCapability.update({ where: { id: '' }, data: { capabilityId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appProfileCapability.delete({ where: { id: '' } }).execute(); -``` - -### `db.appProfile` - -CRUD operations for AppProfile records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `capabilities` | BitString | Yes | -| `createdAt` | Datetime | No | -| `description` | String | Yes | -| `id` | UUID | No | -| `isDefault` | Boolean | Yes | -| `isSystem` | Boolean | Yes | -| `name` | String | Yes | -| `slug` | String | Yes | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all appProfile records -const items = await db.appProfile.findMany({ select: { capabilities: true, createdAt: true, description: true, id: true, isDefault: true, isSystem: true, name: true, slug: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.appProfile.findOne({ id: '', select: { capabilities: true, createdAt: true, description: true, id: true, isDefault: true, isSystem: true, name: true, slug: true, updatedAt: true } }).execute(); - -// Create -const created = await db.appProfile.create({ data: { capabilities: '', description: '', isDefault: '', isSystem: '', name: '', slug: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appProfile.update({ where: { id: '' }, data: { capabilities: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appProfile.delete({ where: { id: '' } }).execute(); -``` - -### `db.appProfileDefinitionGrant` - -CRUD operations for AppProfileDefinitionGrant records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `capabilityId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `grantorId` | UUID | Yes | -| `id` | UUID | No | -| `isGrant` | Boolean | Yes | -| `profileId` | UUID | Yes | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all appProfileDefinitionGrant records -const items = await db.appProfileDefinitionGrant.findMany({ select: { capabilityId: true, createdAt: true, grantorId: true, id: true, isGrant: true, profileId: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.appProfileDefinitionGrant.findOne({ id: '', select: { capabilityId: true, createdAt: true, grantorId: true, id: true, isGrant: true, profileId: true, updatedAt: true } }).execute(); - -// Create -const created = await db.appProfileDefinitionGrant.create({ data: { capabilityId: '', grantorId: '', isGrant: '', profileId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appProfileDefinitionGrant.update({ where: { id: '' }, data: { capabilityId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appProfileDefinitionGrant.delete({ where: { id: '' } }).execute(); -``` - -### `db.appProfileGrant` - -CRUD operations for AppProfileGrant records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `createdAt` | Datetime | No | -| `grantorId` | UUID | Yes | -| `id` | UUID | No | -| `isGrant` | Boolean | Yes | -| `membershipId` | UUID | Yes | -| `profileId` | UUID | Yes | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all appProfileGrant records -const items = await db.appProfileGrant.findMany({ select: { createdAt: true, grantorId: true, id: true, isGrant: true, membershipId: true, profileId: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.appProfileGrant.findOne({ id: '', select: { createdAt: true, grantorId: true, id: true, isGrant: true, membershipId: true, profileId: true, updatedAt: true } }).execute(); - -// Create -const created = await db.appProfileGrant.create({ data: { grantorId: '', isGrant: '', membershipId: '', profileId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appProfileGrant.update({ where: { id: '' }, data: { grantorId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appProfileGrant.delete({ where: { id: '' } }).execute(); -``` - -### `db.appProfileTemplate` - -CRUD operations for AppProfileTemplate records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `capabilities` | BitString | Yes | -| `createdAt` | Datetime | No | -| `description` | String | Yes | -| `id` | UUID | No | -| `isDefault` | Boolean | Yes | -| `name` | String | Yes | -| `slug` | String | Yes | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all appProfileTemplate records -const items = await db.appProfileTemplate.findMany({ select: { capabilities: true, createdAt: true, description: true, id: true, isDefault: true, name: true, slug: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.appProfileTemplate.findOne({ id: '', select: { capabilities: true, createdAt: true, description: true, id: true, isDefault: true, name: true, slug: true, updatedAt: true } }).execute(); - -// Create -const created = await db.appProfileTemplate.create({ data: { capabilities: '', description: '', isDefault: '', name: '', slug: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appProfileTemplate.update({ where: { id: '' }, data: { capabilities: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appProfileTemplate.delete({ where: { id: '' } }).execute(); -``` - ### `db.membershipType` CRUD operations for MembershipType records. @@ -734,40 +448,6 @@ const updated = await db.orgAdminGrant.update({ where: { id: '' }, data: { const deleted = await db.orgAdminGrant.delete({ where: { id: '' } }).execute(); ``` -### `db.orgCapability` - -CRUD operations for OrgCapability records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `bitnum` | Int | Yes | -| `bitstr` | BitString | Yes | -| `description` | String | Yes | -| `id` | UUID | No | -| `kind` | String | Yes | -| `name` | String | Yes | - -**Operations:** - -```typescript -// List all orgCapability records -const items = await db.orgCapability.findMany({ select: { bitnum: true, bitstr: true, description: true, id: true, kind: true, name: true } }).execute(); - -// Get one by id -const item = await db.orgCapability.findOne({ id: '', select: { bitnum: true, bitstr: true, description: true, id: true, kind: true, name: true } }).execute(); - -// Create -const created = await db.orgCapability.create({ data: { bitnum: '', bitstr: '', description: '', kind: '', name: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgCapability.update({ where: { id: '' }, data: { bitnum: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgCapability.delete({ where: { id: '' } }).execute(); -``` - ### `db.orgCapabilityDefaultCapability` CRUD operations for OrgCapabilityDefaultCapability records. @@ -801,37 +481,6 @@ const updated = await db.orgCapabilityDefaultCapability.update({ where: { id: '< const deleted = await db.orgCapabilityDefaultCapability.delete({ where: { id: '' } }).execute(); ``` -### `db.orgCapabilityDefault` - -CRUD operations for OrgCapabilityDefault records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `capabilities` | BitString | Yes | -| `entityId` | UUID | Yes | -| `id` | UUID | No | - -**Operations:** - -```typescript -// List all orgCapabilityDefault records -const items = await db.orgCapabilityDefault.findMany({ select: { capabilities: true, entityId: true, id: true } }).execute(); - -// Get one by id -const item = await db.orgCapabilityDefault.findOne({ id: '', select: { capabilities: true, entityId: true, id: true } }).execute(); - -// Create -const created = await db.orgCapabilityDefault.create({ data: { capabilities: '', entityId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgCapabilityDefault.update({ where: { id: '' }, data: { capabilities: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgCapabilityDefault.delete({ where: { id: '' } }).execute(); -``` - ### `db.orgCapabilityDefaultGrant` CRUD operations for OrgCapabilityDefaultGrant records. @@ -1200,6 +849,7 @@ CRUD operations for OrgMembership records. | `capabilities` | BitString | Yes | | `createdAt` | Datetime | No | | `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | | `entityId` | UUID | Yes | | `granted` | BitString | Yes | | `id` | UUID | No | @@ -1214,18 +864,19 @@ CRUD operations for OrgMembership records. | `profileId` | UUID | Yes | | `updatedAt` | Datetime | No | | `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | **Operations:** ```typescript // List all orgMembership records -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(); +const items = await db.orgMembership.findMany({ select: { actorId: true, capabilities: true, createdAt: true, createdBy: true, createdByPrincipal: 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, updatedByPrincipal: true } }).execute(); // Get one by id -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(); +const item = await db.orgMembership.findOne({ id: '', select: { actorId: true, capabilities: true, createdAt: true, createdBy: true, createdByPrincipal: 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, updatedByPrincipal: true } }).execute(); // Create -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(); +const created = await db.orgMembership.create({ data: { actorId: '', capabilities: '', createdBy: '', createdByPrincipal: '', entityId: '', granted: '', isActive: '', isAdmin: '', isApproved: '', isBanned: '', isDisabled: '', isExternal: '', isOwner: '', isReadOnly: '', profileId: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update const updated = await db.orgMembership.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); @@ -1244,23 +895,25 @@ CRUD operations for OrgMembershipDefault records. |-------|------|----------| | `createdAt` | Datetime | No | | `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | | `entityId` | UUID | Yes | | `id` | UUID | No | | `isApproved` | Boolean | Yes | | `updatedAt` | Datetime | No | | `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | **Operations:** ```typescript // List all orgMembershipDefault records -const items = await db.orgMembershipDefault.findMany({ select: { createdAt: true, createdBy: true, entityId: true, id: true, isApproved: true, updatedAt: true, updatedBy: true } }).execute(); +const items = await db.orgMembershipDefault.findMany({ select: { createdAt: true, createdBy: true, createdByPrincipal: true, entityId: true, id: true, isApproved: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.orgMembershipDefault.findOne({ id: '', select: { createdAt: true, createdBy: true, entityId: true, id: true, isApproved: true, updatedAt: true, updatedBy: true } }).execute(); +const item = await db.orgMembershipDefault.findOne({ id: '', select: { createdAt: true, createdBy: true, createdByPrincipal: true, entityId: true, id: true, isApproved: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.orgMembershipDefault.create({ data: { createdBy: '', entityId: '', isApproved: '', updatedBy: '' }, select: { id: true } }).execute(); +const created = await db.orgMembershipDefault.create({ data: { createdBy: '', createdByPrincipal: '', entityId: '', isApproved: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update const updated = await db.orgMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); @@ -1269,40 +922,6 @@ const updated = await db.orgMembershipDefault.update({ where: { id: '' }, const deleted = await db.orgMembershipDefault.delete({ where: { id: '' } }).execute(); ``` -### `db.orgMembershipProfile` - -CRUD operations for OrgMembershipProfile records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `actorId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `id` | UUID | No | -| `membershipId` | UUID | Yes | -| `profileId` | UUID | Yes | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all orgMembershipProfile records -const items = await db.orgMembershipProfile.findMany({ select: { actorId: true, createdAt: true, id: true, membershipId: true, profileId: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.orgMembershipProfile.findOne({ id: '', select: { actorId: true, createdAt: true, id: true, membershipId: true, profileId: true, updatedAt: true } }).execute(); - -// Create -const created = await db.orgMembershipProfile.create({ data: { actorId: '', membershipId: '', profileId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgMembershipProfile.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgMembershipProfile.delete({ where: { id: '' } }).execute(); -``` - ### `db.orgMembershipSetting` CRUD operations for OrgMembershipSetting records. @@ -1312,11 +931,13 @@ CRUD operations for OrgMembershipSetting records. | Field | Type | Editable | |-------|------|----------| | `allowExternalMembers` | Boolean | Yes | +| `allowPrincipalOwnedApiKeys` | Boolean | Yes | | `createChildCascadeAdmins` | Boolean | Yes | | `createChildCascadeMembers` | Boolean | Yes | | `createChildCascadeOwners` | Boolean | Yes | | `createdAt` | Datetime | No | | `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | | `deleteMemberCascadeChildren` | Boolean | Yes | | `entityId` | UUID | Yes | | `id` | UUID | No | @@ -1325,18 +946,19 @@ CRUD operations for OrgMembershipSetting records. | `populateMemberEmail` | Boolean | Yes | | `updatedAt` | Datetime | No | | `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | **Operations:** ```typescript // List all orgMembershipSetting records -const items = await db.orgMembershipSetting.findMany({ select: { allowExternalMembers: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, createChildCascadeOwners: true, createdAt: true, createdBy: true, deleteMemberCascadeChildren: true, entityId: true, id: true, inviteProfileAssignmentMode: true, limitAllocationMode: true, populateMemberEmail: true, updatedAt: true, updatedBy: true } }).execute(); +const items = await db.orgMembershipSetting.findMany({ select: { allowExternalMembers: true, allowPrincipalOwnedApiKeys: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, createChildCascadeOwners: true, createdAt: true, createdBy: true, createdByPrincipal: true, deleteMemberCascadeChildren: true, entityId: true, id: true, inviteProfileAssignmentMode: true, limitAllocationMode: true, populateMemberEmail: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.orgMembershipSetting.findOne({ id: '', select: { allowExternalMembers: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, createChildCascadeOwners: true, createdAt: true, createdBy: true, deleteMemberCascadeChildren: true, entityId: true, id: true, inviteProfileAssignmentMode: true, limitAllocationMode: true, populateMemberEmail: true, updatedAt: true, updatedBy: true } }).execute(); +const item = await db.orgMembershipSetting.findOne({ id: '', select: { allowExternalMembers: true, allowPrincipalOwnedApiKeys: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, createChildCascadeOwners: true, createdAt: true, createdBy: true, createdByPrincipal: true, deleteMemberCascadeChildren: true, entityId: true, id: true, inviteProfileAssignmentMode: true, limitAllocationMode: true, populateMemberEmail: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.orgMembershipSetting.create({ data: { allowExternalMembers: '', createChildCascadeAdmins: '', createChildCascadeMembers: '', createChildCascadeOwners: '', createdBy: '', deleteMemberCascadeChildren: '', entityId: '', inviteProfileAssignmentMode: '', limitAllocationMode: '', populateMemberEmail: '', updatedBy: '' }, select: { id: true } }).execute(); +const created = await db.orgMembershipSetting.create({ data: { allowExternalMembers: '', allowPrincipalOwnedApiKeys: '', createChildCascadeAdmins: '', createChildCascadeMembers: '', createChildCascadeOwners: '', createdBy: '', createdByPrincipal: '', deleteMemberCascadeChildren: '', entityId: '', inviteProfileAssignmentMode: '', limitAllocationMode: '', populateMemberEmail: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update const updated = await db.orgMembershipSetting.update({ where: { id: '' }, data: { allowExternalMembers: '' }, select: { id: true } }).execute(); @@ -1380,310 +1002,22 @@ const updated = await db.orgOwnerGrant.update({ where: { id: '' }, data: { const deleted = await db.orgOwnerGrant.delete({ where: { id: '' } }).execute(); ``` -### `db.orgProfileCapability` - -CRUD operations for OrgProfileCapability records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `capabilityId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `id` | UUID | No | -| `profileId` | UUID | Yes | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all orgProfileCapability records -const items = await db.orgProfileCapability.findMany({ select: { capabilityId: true, createdAt: true, id: true, profileId: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.orgProfileCapability.findOne({ id: '', select: { capabilityId: true, createdAt: true, id: true, profileId: true, updatedAt: true } }).execute(); - -// Create -const created = await db.orgProfileCapability.create({ data: { capabilityId: '', profileId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgProfileCapability.update({ where: { id: '' }, data: { capabilityId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgProfileCapability.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgProfile` - -CRUD operations for OrgProfile records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `capabilities` | BitString | Yes | -| `createdAt` | Datetime | No | -| `description` | String | Yes | -| `entityId` | UUID | Yes | -| `id` | UUID | No | -| `isDefault` | Boolean | Yes | -| `isSystem` | Boolean | Yes | -| `name` | String | Yes | -| `slug` | String | Yes | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all orgProfile records -const items = await db.orgProfile.findMany({ select: { capabilities: true, createdAt: true, description: true, entityId: true, id: true, isDefault: true, isSystem: true, name: true, slug: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.orgProfile.findOne({ id: '', select: { capabilities: true, createdAt: true, description: true, entityId: true, id: true, isDefault: true, isSystem: true, name: true, slug: true, updatedAt: true } }).execute(); - -// Create -const created = await db.orgProfile.create({ data: { capabilities: '', description: '', entityId: '', isDefault: '', isSystem: '', name: '', slug: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgProfile.update({ where: { id: '' }, data: { capabilities: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgProfile.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgProfileDefinitionGrant` - -CRUD operations for OrgProfileDefinitionGrant records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `capabilityId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `grantorId` | UUID | Yes | -| `id` | UUID | No | -| `isGrant` | Boolean | Yes | -| `profileId` | UUID | Yes | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all orgProfileDefinitionGrant records -const items = await db.orgProfileDefinitionGrant.findMany({ select: { capabilityId: true, createdAt: true, grantorId: true, id: true, isGrant: true, profileId: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.orgProfileDefinitionGrant.findOne({ id: '', select: { capabilityId: true, createdAt: true, grantorId: true, id: true, isGrant: true, profileId: true, updatedAt: true } }).execute(); - -// Create -const created = await db.orgProfileDefinitionGrant.create({ data: { capabilityId: '', grantorId: '', isGrant: '', profileId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgProfileDefinitionGrant.update({ where: { id: '' }, data: { capabilityId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgProfileDefinitionGrant.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgProfileGrant` - -CRUD operations for OrgProfileGrant records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `createdAt` | Datetime | No | -| `entityId` | UUID | Yes | -| `grantorId` | UUID | Yes | -| `id` | UUID | No | -| `isGrant` | Boolean | Yes | -| `membershipId` | UUID | Yes | -| `profileId` | UUID | Yes | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all orgProfileGrant records -const items = await db.orgProfileGrant.findMany({ select: { createdAt: true, entityId: true, grantorId: true, id: true, isGrant: true, membershipId: true, profileId: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.orgProfileGrant.findOne({ id: '', select: { createdAt: true, entityId: true, grantorId: true, id: true, isGrant: true, membershipId: true, profileId: true, updatedAt: true } }).execute(); - -// Create -const created = await db.orgProfileGrant.create({ data: { entityId: '', grantorId: '', isGrant: '', membershipId: '', profileId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgProfileGrant.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgProfileGrant.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgProfileTemplate` - -CRUD operations for OrgProfileTemplate records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `capabilities` | BitString | Yes | -| `createdAt` | Datetime | No | -| `description` | String | Yes | -| `id` | UUID | No | -| `isDefault` | Boolean | Yes | -| `name` | String | Yes | -| `slug` | String | Yes | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all orgProfileTemplate records -const items = await db.orgProfileTemplate.findMany({ select: { capabilities: true, createdAt: true, description: true, id: true, isDefault: true, name: true, slug: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.orgProfileTemplate.findOne({ id: '', select: { capabilities: true, createdAt: true, description: true, id: true, isDefault: true, name: true, slug: true, updatedAt: true } }).execute(); - -// Create -const created = await db.orgProfileTemplate.create({ data: { capabilities: '', description: '', isDefault: '', name: '', slug: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgProfileTemplate.update({ where: { id: '' }, data: { capabilities: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgProfileTemplate.delete({ where: { id: '' } }).execute(); -``` - ## Custom Operations -### `db.query.appCapabilitiesGetByMask` - -Reads and enables pagination through a set of `AppCapability`. - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `after` | Cursor | - | `first` | Int | - | `mask` | BitString | - | `offset` | Int | - -```typescript -const result = await db.query.appCapabilitiesGetByMask({ after: '', first: '', mask: '', offset: '' }).execute(); -``` - -### `db.query.appCapabilitiesGetMask` - -appCapabilitiesGetMask - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `ids` | [UUID] | - -```typescript -const result = await db.query.appCapabilitiesGetMask({ ids: '' }).execute(); -``` - -### `db.query.appCapabilitiesGetMaskByNames` - -appCapabilitiesGetMaskByNames - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `names` | [String] | - -```typescript -const result = await db.query.appCapabilitiesGetMaskByNames({ names: '' }).execute(); -``` - -### `db.query.appCapabilitiesGetPaddedMask` - -appCapabilitiesGetPaddedMask - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `mask` | BitString | - -```typescript -const result = await db.query.appCapabilitiesGetPaddedMask({ mask: '' }).execute(); -``` - -### `db.query.orgCapabilitiesGetByMask` - -Reads and enables pagination through a set of `OrgCapability`. - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `after` | Cursor | - | `first` | Int | - | `mask` | BitString | - | `offset` | Int | - -```typescript -const result = await db.query.orgCapabilitiesGetByMask({ after: '', first: '', mask: '', offset: '' }).execute(); -``` - -### `db.query.orgCapabilitiesGetMask` - -orgCapabilitiesGetMask - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `ids` | [UUID] | - -```typescript -const result = await db.query.orgCapabilitiesGetMask({ ids: '' }).execute(); -``` - -### `db.query.orgCapabilitiesGetMaskByNames` - -orgCapabilitiesGetMaskByNames - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `names` | [String] | - -```typescript -const result = await db.query.orgCapabilitiesGetMaskByNames({ names: '' }).execute(); -``` - -### `db.query.orgCapabilitiesGetPaddedMask` +### `db.query.getOrganizationId` -orgCapabilitiesGetPaddedMask +getOrganizationId - **Type:** query - **Arguments:** | Argument | Type | |----------|------| - | `mask` | BitString | + | `entityId` | UUID | + | `entityType` | String | ```typescript -const result = await db.query.orgCapabilitiesGetPaddedMask({ mask: '' }).execute(); +const result = await db.query.getOrganizationId({ entityId: '', entityType: '' }).execute(); ``` ### `db.query.orgIsManagerOf` @@ -1706,10 +1040,11 @@ const result = await db.query.orgIsManagerOf({ managerId: '', maxDepth: '< ### `db.mutation.provisionBucket` -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. +Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. - **Type:** mutation - **Arguments:** diff --git a/sdk/constructive-sdk/src/admin/orm/index.ts b/sdk/constructive-sdk/src/admin/orm/index.ts index 6da89c57c7..91f3ff0c09 100644 --- a/sdk/constructive-sdk/src/admin/orm/index.ts +++ b/sdk/constructive-sdk/src/admin/orm/index.ts @@ -6,27 +6,17 @@ import { OrmClient } from './client'; import type { OrmClientConfig } from './client'; import { AppAdminGrantModel } from './models/appAdminGrant'; -import { AppCapabilityModel } from './models/appCapability'; import { AppCapabilityDefaultCapabilityModel } from './models/appCapabilityDefaultCapability'; -import { AppCapabilityDefaultModel } from './models/appCapabilityDefault'; 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 { AppMembershipProfileModel } from './models/appMembershipProfile'; import { AppOwnerGrantModel } from './models/appOwnerGrant'; -import { AppProfileCapabilityModel } from './models/appProfileCapability'; -import { AppProfileModel } from './models/appProfile'; -import { AppProfileDefinitionGrantModel } from './models/appProfileDefinitionGrant'; -import { AppProfileGrantModel } from './models/appProfileGrant'; -import { AppProfileTemplateModel } from './models/appProfileTemplate'; import { MembershipTypeModel } from './models/membershipType'; import { OrgAdminGrantModel } from './models/orgAdminGrant'; -import { OrgCapabilityModel } from './models/orgCapability'; import { OrgCapabilityDefaultCapabilityModel } from './models/orgCapabilityDefaultCapability'; -import { OrgCapabilityDefaultModel } from './models/orgCapabilityDefault'; import { OrgCapabilityDefaultGrantModel } from './models/orgCapabilityDefaultGrant'; import { OrgChartEdgeModel } from './models/orgChartEdge'; import { OrgChartEdgeGrantModel } from './models/orgChartEdgeGrant'; @@ -39,14 +29,8 @@ import { OrgMemberModel } from './models/orgMember'; import { OrgMemberProfileModel } from './models/orgMemberProfile'; import { OrgMembershipModel } from './models/orgMembership'; import { OrgMembershipDefaultModel } from './models/orgMembershipDefault'; -import { OrgMembershipProfileModel } from './models/orgMembershipProfile'; import { OrgMembershipSettingModel } from './models/orgMembershipSetting'; import { OrgOwnerGrantModel } from './models/orgOwnerGrant'; -import { OrgProfileCapabilityModel } from './models/orgProfileCapability'; -import { OrgProfileModel } from './models/orgProfile'; -import { OrgProfileDefinitionGrantModel } from './models/orgProfileDefinitionGrant'; -import { OrgProfileGrantModel } from './models/orgProfileGrant'; -import { OrgProfileTemplateModel } from './models/orgProfileTemplate'; import { createQueryOperations } from './query'; import { createMutationOperations } from './mutation'; export type { OrmClientConfig, QueryResult, GraphQLError, GraphQLAdapter } from './client'; @@ -83,27 +67,17 @@ export function createClient(config: OrmClientConfig) { const client = new OrmClient(config); return { appAdminGrant: new AppAdminGrantModel(client), - appCapability: new AppCapabilityModel(client), appCapabilityDefaultCapability: new AppCapabilityDefaultCapabilityModel(client), - appCapabilityDefault: new AppCapabilityDefaultModel(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), - appMembershipProfile: new AppMembershipProfileModel(client), appOwnerGrant: new AppOwnerGrantModel(client), - appProfileCapability: new AppProfileCapabilityModel(client), - appProfile: new AppProfileModel(client), - appProfileDefinitionGrant: new AppProfileDefinitionGrantModel(client), - appProfileGrant: new AppProfileGrantModel(client), - appProfileTemplate: new AppProfileTemplateModel(client), membershipType: new MembershipTypeModel(client), orgAdminGrant: new OrgAdminGrantModel(client), - orgCapability: new OrgCapabilityModel(client), orgCapabilityDefaultCapability: new OrgCapabilityDefaultCapabilityModel(client), - orgCapabilityDefault: new OrgCapabilityDefaultModel(client), orgCapabilityDefaultGrant: new OrgCapabilityDefaultGrantModel(client), orgChartEdge: new OrgChartEdgeModel(client), orgChartEdgeGrant: new OrgChartEdgeGrantModel(client), @@ -116,14 +90,8 @@ export function createClient(config: OrmClientConfig) { orgMemberProfile: new OrgMemberProfileModel(client), orgMembership: new OrgMembershipModel(client), orgMembershipDefault: new OrgMembershipDefaultModel(client), - orgMembershipProfile: new OrgMembershipProfileModel(client), orgMembershipSetting: new OrgMembershipSettingModel(client), orgOwnerGrant: new OrgOwnerGrantModel(client), - orgProfileCapability: new OrgProfileCapabilityModel(client), - orgProfile: new OrgProfileModel(client), - orgProfileDefinitionGrant: new OrgProfileDefinitionGrantModel(client), - orgProfileGrant: new OrgProfileGrantModel(client), - orgProfileTemplate: new OrgProfileTemplateModel(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 cfe70fd2f2..a05796955d 100644 --- a/sdk/constructive-sdk/src/admin/orm/input-types.ts +++ b/sdk/constructive-sdk/src/admin/orm/input-types.ts @@ -245,20 +245,6 @@ export interface AppAdminGrant { isGrant?: boolean | null; updatedAt?: string | null; } -/** Defines available capabilities as named bits within a bitmask, used by the RBAC system for access control */ -export interface AppCapability { - /** Position of this capability in the bitmask (1-indexed), must be unique per capability set */ - bitnum?: number | null; - /** Pre-computed bitmask with only this capability bit set, used for bitwise OR/AND operations */ - bitstr?: string | null; - /** Human-readable description of what this capability allows */ - description?: string | null; - id: string; - /** Kind of catalog entry: capability (capability) or level (achievement level) */ - kind?: string | null; - /** Human-readable capability name (e.g. read, write, manage) */ - name?: 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 */ @@ -267,12 +253,6 @@ export interface AppCapabilityDefaultCapability { id: string; updatedAt?: string | null; } -/** Stores the default capability bitmask assigned to new members upon joining */ -export interface AppCapabilityDefault { - /** Default capability bitmask applied to new members */ - capabilities?: string | null; - id: string; -} /** Audit log of capability additions and removals from the defaults bitmask */ export interface AppCapabilityDefaultGrant { /** References the capability being added to or removed from defaults */ @@ -347,6 +327,7 @@ export interface AppMembership { capabilities?: string | null; createdAt?: string | null; createdBy?: string | null; + createdByPrincipal?: string | null; /** Bitmask of capabilities directly granted to this member (not from profiles) */ granted?: string | null; id: string; @@ -367,11 +348,13 @@ export interface AppMembership { profileId?: string | null; updatedAt?: string | null; updatedBy?: string | null; + updatedByPrincipal?: string | null; } /** Default membership settings per entity, controlling initial approval and verification state for new members */ export interface AppMembershipDefault { createdAt?: string | null; createdBy?: string | null; + createdByPrincipal?: string | null; id: string; /** Whether new members are automatically approved upon joining */ isApproved?: boolean | null; @@ -379,18 +362,7 @@ export interface AppMembershipDefault { isVerified?: boolean | null; updatedAt?: string | null; updatedBy?: string | null; -} -/** Every profile a membership holds; memberships.profile_id points at one of them */ -export interface AppMembershipProfile { - /** References the user holding the profile, denormalised from the membership */ - actorId?: string | null; - createdAt?: string | null; - id: string; - /** References the membership holding the profile */ - membershipId?: string | null; - /** References the held profile */ - profileId?: string | null; - updatedAt?: string | null; + updatedByPrincipal?: string | null; } /** Records of ownership transfers and grants between members */ export interface AppOwnerGrant { @@ -403,76 +375,6 @@ export interface AppOwnerGrant { isGrant?: boolean | null; updatedAt?: string | null; } -/** Join table linking profiles to individual capabilities they include */ -export interface AppProfileCapability { - /** References the capability included in this profile */ - capabilityId?: string | null; - createdAt?: string | null; - id: string; - /** References the profile this capability belongs to */ - profileId?: string | null; - updatedAt?: string | null; -} -/** Named capability bundles (roles) that group multiple capabilities into reusable profiles */ -export interface AppProfile { - /** Pre-computed capability bitmask aggregating all capabilities in this profile */ - capabilities?: string | null; - createdAt?: string | null; - /** Human-readable description of this profile and its intended use */ - description?: string | null; - id: string; - /** The default profile is automatically assigned to new members when they join */ - isDefault?: boolean | null; - /** System profiles are built-in and cannot be deleted or renamed by users */ - isSystem?: boolean | null; - /** Display name for this profile (e.g. Admin, Editor, Viewer) */ - name?: string | null; - /** URL-safe identifier for this profile, used in API references */ - slug?: string | null; - updatedAt?: string | null; -} -/** Audit log of capability additions and removals from profile definitions */ -export interface AppProfileDefinitionGrant { - /** References the capability that was added to or removed from the profile; NULL if capability was deleted */ - capabilityId?: string | null; - createdAt?: string | null; - grantorId?: string | null; - id: string; - /** True to add the capability to the profile, false to remove it */ - isGrant?: boolean | null; - /** References the profile whose definition was modified; NULL if profile was deleted */ - profileId?: string | null; - updatedAt?: string | null; -} -/** Audit log of profile assignments and revocations for members */ -export interface AppProfileGrant { - createdAt?: string | null; - grantorId?: string | null; - id: string; - /** True to assign the profile, false to revoke it */ - isGrant?: boolean | null; - /** References the membership that received or lost this profile; NULL if membership was deleted */ - membershipId?: string | null; - /** References the profile being assigned; NULL indicates the profile was removed */ - profileId?: string | null; - updatedAt?: string | null; -} -/** Template profiles that are automatically seeded into new entities when created */ -export interface AppProfileTemplate { - /** Pre-computed capability bitmask for the seeded profile */ - capabilities?: string | null; - createdAt?: string | null; - /** Human-readable description of this template profile */ - description?: string | null; - id: string; - /** Whether the seeded profile should be the default for new members */ - isDefault?: boolean | null; - /** Display name for the template profile (e.g. Admin, Editor, Viewer) */ - name?: string | null; - /** URL-safe identifier for the template profile */ - slug?: 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 */ @@ -501,20 +403,6 @@ export interface OrgAdminGrant { isGrant?: boolean | null; updatedAt?: string | null; } -/** Defines available capabilities as named bits within a bitmask, used by the RBAC system for access control */ -export interface OrgCapability { - /** Position of this capability in the bitmask (1-indexed), must be unique per capability set */ - bitnum?: number | null; - /** Pre-computed bitmask with only this capability bit set, used for bitwise OR/AND operations */ - bitstr?: string | null; - /** Human-readable description of what this capability allows */ - description?: string | null; - id: string; - /** Kind of catalog entry: capability (capability) or level (achievement level) */ - kind?: string | null; - /** Human-readable capability name (e.g. read, write, manage) */ - name?: 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 */ @@ -525,14 +413,6 @@ export interface OrgCapabilityDefaultCapability { id: string; updatedAt?: string | null; } -/** Stores the default capability bitmask assigned to new members upon joining */ -export interface OrgCapabilityDefault { - /** Default capability bitmask applied to new members */ - capabilities?: string | null; - /** References the entity these default capabilities apply to */ - entityId?: string | null; - id: string; -} /** Audit log of capability additions and removals from the defaults bitmask */ export interface OrgCapabilityDefaultGrant { /** References the capability being added to or removed from defaults */ @@ -693,6 +573,7 @@ export interface OrgMembership { capabilities?: string | null; createdAt?: string | null; createdBy?: string | null; + createdByPrincipal?: string | null; /** References the entity (org or group) this membership belongs to */ entityId?: string | null; /** Bitmask of capabilities directly granted to this member (not from profiles) */ @@ -717,11 +598,13 @@ export interface OrgMembership { profileId?: string | null; updatedAt?: string | null; updatedBy?: string | null; + updatedByPrincipal?: string | null; } /** Default membership settings per entity, controlling initial approval and verification state for new members */ export interface OrgMembershipDefault { createdAt?: string | null; createdBy?: string | null; + createdByPrincipal?: string | null; /** References the entity these membership defaults apply to */ entityId?: string | null; id: string; @@ -729,23 +612,14 @@ export interface OrgMembershipDefault { isApproved?: boolean | null; updatedAt?: string | null; updatedBy?: string | null; -} -/** Every profile a membership holds; memberships.profile_id points at one of them */ -export interface OrgMembershipProfile { - /** References the user holding the profile, denormalised from the membership */ - actorId?: string | null; - createdAt?: string | null; - id: string; - /** References the membership holding the profile */ - membershipId?: string | null; - /** References the held profile */ - profileId?: string | null; - updatedAt?: string | null; + updatedByPrincipal?: string | null; } /** Per-entity settings for the memberships module */ export interface OrgMembershipSetting { /** Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) */ allowExternalMembers?: boolean | null; + /** Whether principals (agents, API-key identities) may mint API keys and child sessions for this org; requires auth_settings.allow_principal_delegation too */ + allowPrincipalOwnedApiKeys?: boolean | null; /** When a child entity is created, whether to auto-add existing org-level admins as child-entity admins */ createChildCascadeAdmins?: boolean | null; /** When a child entity is created, whether to auto-add existing org-level members (non-admin, non-owner) as child-entity members */ @@ -754,6 +628,7 @@ export interface OrgMembershipSetting { createChildCascadeOwners?: boolean | null; createdAt?: string | null; createdBy?: string | null; + createdByPrincipal?: string | null; /** When a member is deleted, whether to cascade-remove their descendant-entity memberships */ deleteMemberCascadeChildren?: boolean | null; /** References the entity these settings apply to */ @@ -767,6 +642,7 @@ export interface OrgMembershipSetting { populateMemberEmail?: boolean | null; updatedAt?: string | null; updatedBy?: string | null; + updatedByPrincipal?: string | null; } /** Records of ownership transfers and grants between members */ export interface OrgOwnerGrant { @@ -781,80 +657,6 @@ export interface OrgOwnerGrant { isGrant?: boolean | null; updatedAt?: string | null; } -/** Join table linking profiles to individual capabilities they include */ -export interface OrgProfileCapability { - /** References the capability included in this profile */ - capabilityId?: string | null; - createdAt?: string | null; - id: string; - /** References the profile this capability belongs to */ - profileId?: string | null; - updatedAt?: string | null; -} -/** Named capability bundles (roles) that group multiple capabilities into reusable profiles */ -export interface OrgProfile { - /** Pre-computed capability bitmask aggregating all capabilities in this profile */ - capabilities?: string | null; - createdAt?: string | null; - /** Human-readable description of this profile and its intended use */ - description?: string | null; - /** Scopes this profile to a specific entity; NULL means it is a global profile */ - entityId?: string | null; - id: string; - /** The default profile is automatically assigned to new members when they join */ - isDefault?: boolean | null; - /** System profiles are built-in and cannot be deleted or renamed by users */ - isSystem?: boolean | null; - /** Display name for this profile (e.g. Admin, Editor, Viewer) */ - name?: string | null; - /** URL-safe identifier for this profile, used in API references */ - slug?: string | null; - updatedAt?: string | null; -} -/** Audit log of capability additions and removals from profile definitions */ -export interface OrgProfileDefinitionGrant { - /** References the capability that was added to or removed from the profile; NULL if capability was deleted */ - capabilityId?: string | null; - createdAt?: string | null; - grantorId?: string | null; - id: string; - /** True to add the capability to the profile, false to remove it */ - isGrant?: boolean | null; - /** References the profile whose definition was modified; NULL if profile was deleted */ - profileId?: string | null; - updatedAt?: string | null; -} -/** Audit log of profile assignments and revocations for members */ -export interface OrgProfileGrant { - createdAt?: string | null; - /** The entity (org or group) scope for this profile grant */ - entityId?: string | null; - grantorId?: string | null; - id: string; - /** True to assign the profile, false to revoke it */ - isGrant?: boolean | null; - /** References the membership that received or lost this profile; NULL if membership was deleted */ - membershipId?: string | null; - /** References the profile being assigned; NULL indicates the profile was removed */ - profileId?: string | null; - updatedAt?: string | null; -} -/** Template profiles that are automatically seeded into new entities when created */ -export interface OrgProfileTemplate { - /** Pre-computed capability bitmask for the seeded profile */ - capabilities?: string | null; - createdAt?: string | null; - /** Human-readable description of this template profile */ - description?: string | null; - id: string; - /** Whether the seeded profile should be the default for new members */ - isDefault?: boolean | null; - /** Display name for the template profile (e.g. Admin, Editor, Viewer) */ - name?: string | null; - /** URL-safe identifier for the template profile */ - slug?: string | null; - updatedAt?: string | null; -} // ============ Relation Helper Types ============ export interface ConnectionResult { nodes: T[]; @@ -869,125 +671,39 @@ export interface PageInfo { } // ============ Entity Relation Types ============ export interface AppAdminGrantRelations {} -export interface AppCapabilityRelations { - appCapabilityDefaultCapabilityByCapabilityId?: AppCapabilityDefaultCapability | null; - appCapabilityDefaultGrantsByCapabilityId?: ConnectionResult; - appProfileCapabilitiesByCapabilityId?: ConnectionResult; - appProfileDefinitionGrantsByCapabilityId?: ConnectionResult; -} -export interface AppCapabilityDefaultCapabilityRelations { - capability?: AppCapability | null; -} -export interface AppCapabilityDefaultRelations {} -export interface AppCapabilityDefaultGrantRelations { - capability?: AppCapability | null; -} +export interface AppCapabilityDefaultCapabilityRelations {} +export interface AppCapabilityDefaultGrantRelations {} export interface AppClaimedInviteRelations {} export interface AppGrantRelations {} -export interface AppInviteRelations { - profile?: AppProfile | null; -} -export interface AppMembershipRelations { - profile?: AppProfile | null; - appMembershipProfilesByMembershipId?: ConnectionResult; - appProfileGrantsByMembershipId?: ConnectionResult; -} +export interface AppInviteRelations {} +export interface AppMembershipRelations {} export interface AppMembershipDefaultRelations {} -export interface AppMembershipProfileRelations { - membership?: AppMembership | null; - profile?: AppProfile | null; -} export interface AppOwnerGrantRelations {} -export interface AppProfileCapabilityRelations { - capability?: AppCapability | null; - profile?: AppProfile | null; -} -export interface AppProfileRelations { - appInvitesByProfileId?: ConnectionResult; - appMembershipProfilesByProfileId?: ConnectionResult; - appMembershipsByProfileId?: ConnectionResult; - appProfileCapabilitiesByProfileId?: ConnectionResult; - appProfileDefinitionGrantsByProfileId?: ConnectionResult; - appProfileGrantsByProfileId?: ConnectionResult; -} -export interface AppProfileDefinitionGrantRelations { - capability?: AppCapability | null; - profile?: AppProfile | null; -} -export interface AppProfileGrantRelations { - membership?: AppMembership | null; - profile?: AppProfile | null; -} -export interface AppProfileTemplateRelations {} export interface MembershipTypeRelations {} export interface OrgAdminGrantRelations {} -export interface OrgCapabilityRelations { - orgCapabilityDefaultCapabilitiesByCapabilityId?: ConnectionResult; - orgCapabilityDefaultGrantsByCapabilityId?: ConnectionResult; - orgProfileCapabilitiesByCapabilityId?: ConnectionResult; - orgProfileDefinitionGrantsByCapabilityId?: ConnectionResult; -} -export interface OrgCapabilityDefaultCapabilityRelations { - capability?: OrgCapability | null; -} -export interface OrgCapabilityDefaultRelations {} -export interface OrgCapabilityDefaultGrantRelations { - capability?: OrgCapability | null; -} +export interface OrgCapabilityDefaultCapabilityRelations {} +export interface OrgCapabilityDefaultGrantRelations {} export interface OrgChartEdgeRelations {} export interface OrgChartEdgeGrantRelations {} export interface OrgClaimedInviteRelations {} export interface OrgGetManagersRecordRelations {} export interface OrgGetSubordinatesRecordRelations {} export interface OrgGrantRelations {} -export interface OrgInviteRelations { - profile?: OrgProfile | null; -} +export interface OrgInviteRelations {} export interface OrgMemberRelations {} export interface OrgMemberProfileRelations { membership?: OrgMembership | null; } export interface OrgMembershipRelations { orgMemberProfileByMembershipId?: OrgMemberProfile | null; - profile?: OrgProfile | null; - orgMembershipProfilesByMembershipId?: ConnectionResult; - orgProfileGrantsByMembershipId?: ConnectionResult; } export interface OrgMembershipDefaultRelations {} -export interface OrgMembershipProfileRelations { - membership?: OrgMembership | null; - profile?: OrgProfile | null; -} export interface OrgMembershipSettingRelations {} export interface OrgOwnerGrantRelations {} -export interface OrgProfileCapabilityRelations { - capability?: OrgCapability | null; - profile?: OrgProfile | null; -} -export interface OrgProfileRelations { - orgInvitesByProfileId?: ConnectionResult; - orgMembershipProfilesByProfileId?: ConnectionResult; - orgMembershipsByProfileId?: ConnectionResult; - orgProfileCapabilitiesByProfileId?: ConnectionResult; - orgProfileDefinitionGrantsByProfileId?: ConnectionResult; - orgProfileGrantsByProfileId?: ConnectionResult; -} -export interface OrgProfileDefinitionGrantRelations { - capability?: OrgCapability | null; - profile?: OrgProfile | null; -} -export interface OrgProfileGrantRelations { - membership?: OrgMembership | null; - profile?: OrgProfile | null; -} -export interface OrgProfileTemplateRelations {} // ============ Entity Types With Relations ============ export type AppAdminGrantWithRelations = AppAdminGrant & AppAdminGrantRelations; -export type AppCapabilityWithRelations = AppCapability & AppCapabilityRelations; export type AppCapabilityDefaultCapabilityWithRelations = AppCapabilityDefaultCapability & AppCapabilityDefaultCapabilityRelations; -export type AppCapabilityDefaultWithRelations = AppCapabilityDefault & - AppCapabilityDefaultRelations; export type AppCapabilityDefaultGrantWithRelations = AppCapabilityDefaultGrant & AppCapabilityDefaultGrantRelations; export type AppClaimedInviteWithRelations = AppClaimedInvite & AppClaimedInviteRelations; @@ -996,23 +712,11 @@ export type AppInviteWithRelations = AppInvite & AppInviteRelations; export type AppMembershipWithRelations = AppMembership & AppMembershipRelations; export type AppMembershipDefaultWithRelations = AppMembershipDefault & AppMembershipDefaultRelations; -export type AppMembershipProfileWithRelations = AppMembershipProfile & - AppMembershipProfileRelations; export type AppOwnerGrantWithRelations = AppOwnerGrant & AppOwnerGrantRelations; -export type AppProfileCapabilityWithRelations = AppProfileCapability & - AppProfileCapabilityRelations; -export type AppProfileWithRelations = AppProfile & AppProfileRelations; -export type AppProfileDefinitionGrantWithRelations = AppProfileDefinitionGrant & - AppProfileDefinitionGrantRelations; -export type AppProfileGrantWithRelations = AppProfileGrant & AppProfileGrantRelations; -export type AppProfileTemplateWithRelations = AppProfileTemplate & AppProfileTemplateRelations; export type MembershipTypeWithRelations = MembershipType & MembershipTypeRelations; export type OrgAdminGrantWithRelations = OrgAdminGrant & OrgAdminGrantRelations; -export type OrgCapabilityWithRelations = OrgCapability & OrgCapabilityRelations; export type OrgCapabilityDefaultCapabilityWithRelations = OrgCapabilityDefaultCapability & OrgCapabilityDefaultCapabilityRelations; -export type OrgCapabilityDefaultWithRelations = OrgCapabilityDefault & - OrgCapabilityDefaultRelations; export type OrgCapabilityDefaultGrantWithRelations = OrgCapabilityDefaultGrant & OrgCapabilityDefaultGrantRelations; export type OrgChartEdgeWithRelations = OrgChartEdge & OrgChartEdgeRelations; @@ -1029,18 +733,9 @@ export type OrgMemberProfileWithRelations = OrgMemberProfile & OrgMemberProfileR export type OrgMembershipWithRelations = OrgMembership & OrgMembershipRelations; export type OrgMembershipDefaultWithRelations = OrgMembershipDefault & OrgMembershipDefaultRelations; -export type OrgMembershipProfileWithRelations = OrgMembershipProfile & - OrgMembershipProfileRelations; export type OrgMembershipSettingWithRelations = OrgMembershipSetting & OrgMembershipSettingRelations; export type OrgOwnerGrantWithRelations = OrgOwnerGrant & OrgOwnerGrantRelations; -export type OrgProfileCapabilityWithRelations = OrgProfileCapability & - OrgProfileCapabilityRelations; -export type OrgProfileWithRelations = OrgProfile & OrgProfileRelations; -export type OrgProfileDefinitionGrantWithRelations = OrgProfileDefinitionGrant & - OrgProfileDefinitionGrantRelations; -export type OrgProfileGrantWithRelations = OrgProfileGrant & OrgProfileGrantRelations; -export type OrgProfileTemplateWithRelations = OrgProfileTemplate & OrgProfileTemplateRelations; // ============ Entity Select Types ============ export type AppAdminGrantSelect = { actorId?: boolean; @@ -1050,47 +745,11 @@ export type AppAdminGrantSelect = { isGrant?: boolean; updatedAt?: boolean; }; -export type AppCapabilitySelect = { - bitnum?: boolean; - bitstr?: boolean; - description?: boolean; - id?: boolean; - kind?: boolean; - name?: boolean; - appCapabilityDefaultCapabilityByCapabilityId?: { - select: AppCapabilityDefaultCapabilitySelect; - }; - appCapabilityDefaultGrantsByCapabilityId?: { - select: AppCapabilityDefaultGrantSelect; - first?: number; - filter?: AppCapabilityDefaultGrantFilter; - orderBy?: AppCapabilityDefaultGrantOrderBy[]; - }; - appProfileCapabilitiesByCapabilityId?: { - select: AppProfileCapabilitySelect; - first?: number; - filter?: AppProfileCapabilityFilter; - orderBy?: AppProfileCapabilityOrderBy[]; - }; - appProfileDefinitionGrantsByCapabilityId?: { - select: AppProfileDefinitionGrantSelect; - first?: number; - filter?: AppProfileDefinitionGrantFilter; - orderBy?: AppProfileDefinitionGrantOrderBy[]; - }; -}; export type AppCapabilityDefaultCapabilitySelect = { capabilityId?: boolean; createdAt?: boolean; id?: boolean; updatedAt?: boolean; - capability?: { - select: AppCapabilitySelect; - }; -}; -export type AppCapabilityDefaultSelect = { - capabilities?: boolean; - id?: boolean; }; export type AppCapabilityDefaultGrantSelect = { capabilityId?: boolean; @@ -1099,9 +758,6 @@ export type AppCapabilityDefaultGrantSelect = { id?: boolean; isGrant?: boolean; updatedAt?: boolean; - capability?: { - select: AppCapabilitySelect; - }; }; export type AppClaimedInviteSelect = { createdAt?: boolean; @@ -1136,15 +792,13 @@ export type AppInviteSelect = { profileId?: boolean; senderId?: boolean; updatedAt?: boolean; - profile?: { - select: AppProfileSelect; - }; }; export type AppMembershipSelect = { actorId?: boolean; capabilities?: boolean; createdAt?: boolean; createdBy?: boolean; + createdByPrincipal?: boolean; granted?: boolean; id?: boolean; isActive?: boolean; @@ -1157,44 +811,18 @@ export type AppMembershipSelect = { profileId?: boolean; updatedAt?: boolean; updatedBy?: boolean; - profile?: { - select: AppProfileSelect; - }; - appMembershipProfilesByMembershipId?: { - select: AppMembershipProfileSelect; - first?: number; - filter?: AppMembershipProfileFilter; - orderBy?: AppMembershipProfileOrderBy[]; - }; - appProfileGrantsByMembershipId?: { - select: AppProfileGrantSelect; - first?: number; - filter?: AppProfileGrantFilter; - orderBy?: AppProfileGrantOrderBy[]; - }; + updatedByPrincipal?: boolean; }; export type AppMembershipDefaultSelect = { createdAt?: boolean; createdBy?: boolean; + createdByPrincipal?: boolean; id?: boolean; isApproved?: boolean; isVerified?: boolean; updatedAt?: boolean; updatedBy?: boolean; -}; -export type AppMembershipProfileSelect = { - actorId?: boolean; - createdAt?: boolean; - id?: boolean; - membershipId?: boolean; - profileId?: boolean; - updatedAt?: boolean; - membership?: { - select: AppMembershipSelect; - }; - profile?: { - select: AppProfileSelect; - }; + updatedByPrincipal?: boolean; }; export type AppOwnerGrantSelect = { actorId?: boolean; @@ -1204,106 +832,6 @@ export type AppOwnerGrantSelect = { isGrant?: boolean; updatedAt?: boolean; }; -export type AppProfileCapabilitySelect = { - capabilityId?: boolean; - createdAt?: boolean; - id?: boolean; - profileId?: boolean; - updatedAt?: boolean; - capability?: { - select: AppCapabilitySelect; - }; - profile?: { - select: AppProfileSelect; - }; -}; -export type AppProfileSelect = { - capabilities?: boolean; - createdAt?: boolean; - description?: boolean; - id?: boolean; - isDefault?: boolean; - isSystem?: boolean; - name?: boolean; - slug?: boolean; - updatedAt?: boolean; - appInvitesByProfileId?: { - select: AppInviteSelect; - first?: number; - filter?: AppInviteFilter; - orderBy?: AppInviteOrderBy[]; - }; - appMembershipProfilesByProfileId?: { - select: AppMembershipProfileSelect; - first?: number; - filter?: AppMembershipProfileFilter; - orderBy?: AppMembershipProfileOrderBy[]; - }; - appMembershipsByProfileId?: { - select: AppMembershipSelect; - first?: number; - filter?: AppMembershipFilter; - orderBy?: AppMembershipOrderBy[]; - }; - appProfileCapabilitiesByProfileId?: { - select: AppProfileCapabilitySelect; - first?: number; - filter?: AppProfileCapabilityFilter; - orderBy?: AppProfileCapabilityOrderBy[]; - }; - appProfileDefinitionGrantsByProfileId?: { - select: AppProfileDefinitionGrantSelect; - first?: number; - filter?: AppProfileDefinitionGrantFilter; - orderBy?: AppProfileDefinitionGrantOrderBy[]; - }; - appProfileGrantsByProfileId?: { - select: AppProfileGrantSelect; - first?: number; - filter?: AppProfileGrantFilter; - orderBy?: AppProfileGrantOrderBy[]; - }; -}; -export type AppProfileDefinitionGrantSelect = { - capabilityId?: boolean; - createdAt?: boolean; - grantorId?: boolean; - id?: boolean; - isGrant?: boolean; - profileId?: boolean; - updatedAt?: boolean; - capability?: { - select: AppCapabilitySelect; - }; - profile?: { - select: AppProfileSelect; - }; -}; -export type AppProfileGrantSelect = { - createdAt?: boolean; - grantorId?: boolean; - id?: boolean; - isGrant?: boolean; - membershipId?: boolean; - profileId?: boolean; - updatedAt?: boolean; - membership?: { - select: AppMembershipSelect; - }; - profile?: { - select: AppProfileSelect; - }; -}; -export type AppProfileTemplateSelect = { - capabilities?: boolean; - createdAt?: boolean; - description?: boolean; - id?: boolean; - isDefault?: boolean; - name?: boolean; - slug?: boolean; - updatedAt?: boolean; -}; export type MembershipTypeSelect = { description?: boolean; hasUsersTableEntry?: boolean; @@ -1321,52 +849,12 @@ export type OrgAdminGrantSelect = { isGrant?: boolean; updatedAt?: boolean; }; -export type OrgCapabilitySelect = { - bitnum?: boolean; - bitstr?: boolean; - description?: boolean; - id?: boolean; - kind?: boolean; - name?: boolean; - orgCapabilityDefaultCapabilitiesByCapabilityId?: { - select: OrgCapabilityDefaultCapabilitySelect; - first?: number; - filter?: OrgCapabilityDefaultCapabilityFilter; - orderBy?: OrgCapabilityDefaultCapabilityOrderBy[]; - }; - orgCapabilityDefaultGrantsByCapabilityId?: { - select: OrgCapabilityDefaultGrantSelect; - first?: number; - filter?: OrgCapabilityDefaultGrantFilter; - orderBy?: OrgCapabilityDefaultGrantOrderBy[]; - }; - orgProfileCapabilitiesByCapabilityId?: { - select: OrgProfileCapabilitySelect; - first?: number; - filter?: OrgProfileCapabilityFilter; - orderBy?: OrgProfileCapabilityOrderBy[]; - }; - orgProfileDefinitionGrantsByCapabilityId?: { - select: OrgProfileDefinitionGrantSelect; - first?: number; - filter?: OrgProfileDefinitionGrantFilter; - orderBy?: OrgProfileDefinitionGrantOrderBy[]; - }; -}; export type OrgCapabilityDefaultCapabilitySelect = { capabilityId?: boolean; createdAt?: boolean; entityId?: boolean; id?: boolean; updatedAt?: boolean; - capability?: { - select: OrgCapabilitySelect; - }; -}; -export type OrgCapabilityDefaultSelect = { - capabilities?: boolean; - entityId?: boolean; - id?: boolean; }; export type OrgCapabilityDefaultGrantSelect = { capabilityId?: boolean; @@ -1376,9 +864,6 @@ export type OrgCapabilityDefaultGrantSelect = { id?: boolean; isGrant?: boolean; updatedAt?: boolean; - capability?: { - select: OrgCapabilitySelect; - }; }; export type OrgChartEdgeSelect = { childId?: boolean; @@ -1447,9 +932,6 @@ export type OrgInviteSelect = { receiverId?: boolean; senderId?: boolean; updatedAt?: boolean; - profile?: { - select: OrgProfileSelect; - }; }; export type OrgMemberSelect = { actorId?: boolean; @@ -1478,6 +960,7 @@ export type OrgMembershipSelect = { capabilities?: boolean; createdAt?: boolean; createdBy?: boolean; + createdByPrincipal?: boolean; entityId?: boolean; granted?: boolean; id?: boolean; @@ -1492,55 +975,31 @@ export type OrgMembershipSelect = { profileId?: boolean; updatedAt?: boolean; updatedBy?: boolean; + updatedByPrincipal?: boolean; orgMemberProfileByMembershipId?: { select: OrgMemberProfileSelect; }; - profile?: { - select: OrgProfileSelect; - }; - orgMembershipProfilesByMembershipId?: { - select: OrgMembershipProfileSelect; - first?: number; - filter?: OrgMembershipProfileFilter; - orderBy?: OrgMembershipProfileOrderBy[]; - }; - orgProfileGrantsByMembershipId?: { - select: OrgProfileGrantSelect; - first?: number; - filter?: OrgProfileGrantFilter; - orderBy?: OrgProfileGrantOrderBy[]; - }; }; export type OrgMembershipDefaultSelect = { createdAt?: boolean; createdBy?: boolean; + createdByPrincipal?: boolean; entityId?: boolean; id?: boolean; isApproved?: boolean; updatedAt?: boolean; updatedBy?: boolean; -}; -export type OrgMembershipProfileSelect = { - actorId?: boolean; - createdAt?: boolean; - id?: boolean; - membershipId?: boolean; - profileId?: boolean; - updatedAt?: boolean; - membership?: { - select: OrgMembershipSelect; - }; - profile?: { - select: OrgProfileSelect; - }; + updatedByPrincipal?: boolean; }; export type OrgMembershipSettingSelect = { allowExternalMembers?: boolean; + allowPrincipalOwnedApiKeys?: boolean; createChildCascadeAdmins?: boolean; createChildCascadeMembers?: boolean; createChildCascadeOwners?: boolean; createdAt?: boolean; createdBy?: boolean; + createdByPrincipal?: boolean; deleteMemberCascadeChildren?: boolean; entityId?: boolean; id?: boolean; @@ -1549,6 +1008,7 @@ export type OrgMembershipSettingSelect = { populateMemberEmail?: boolean; updatedAt?: boolean; updatedBy?: boolean; + updatedByPrincipal?: boolean; }; export type OrgOwnerGrantSelect = { actorId?: boolean; @@ -1559,108 +1019,6 @@ export type OrgOwnerGrantSelect = { isGrant?: boolean; updatedAt?: boolean; }; -export type OrgProfileCapabilitySelect = { - capabilityId?: boolean; - createdAt?: boolean; - id?: boolean; - profileId?: boolean; - updatedAt?: boolean; - capability?: { - select: OrgCapabilitySelect; - }; - profile?: { - select: OrgProfileSelect; - }; -}; -export type OrgProfileSelect = { - capabilities?: boolean; - createdAt?: boolean; - description?: boolean; - entityId?: boolean; - id?: boolean; - isDefault?: boolean; - isSystem?: boolean; - name?: boolean; - slug?: boolean; - updatedAt?: boolean; - orgInvitesByProfileId?: { - select: OrgInviteSelect; - first?: number; - filter?: OrgInviteFilter; - orderBy?: OrgInviteOrderBy[]; - }; - orgMembershipProfilesByProfileId?: { - select: OrgMembershipProfileSelect; - first?: number; - filter?: OrgMembershipProfileFilter; - orderBy?: OrgMembershipProfileOrderBy[]; - }; - orgMembershipsByProfileId?: { - select: OrgMembershipSelect; - first?: number; - filter?: OrgMembershipFilter; - orderBy?: OrgMembershipOrderBy[]; - }; - orgProfileCapabilitiesByProfileId?: { - select: OrgProfileCapabilitySelect; - first?: number; - filter?: OrgProfileCapabilityFilter; - orderBy?: OrgProfileCapabilityOrderBy[]; - }; - orgProfileDefinitionGrantsByProfileId?: { - select: OrgProfileDefinitionGrantSelect; - first?: number; - filter?: OrgProfileDefinitionGrantFilter; - orderBy?: OrgProfileDefinitionGrantOrderBy[]; - }; - orgProfileGrantsByProfileId?: { - select: OrgProfileGrantSelect; - first?: number; - filter?: OrgProfileGrantFilter; - orderBy?: OrgProfileGrantOrderBy[]; - }; -}; -export type OrgProfileDefinitionGrantSelect = { - capabilityId?: boolean; - createdAt?: boolean; - grantorId?: boolean; - id?: boolean; - isGrant?: boolean; - profileId?: boolean; - updatedAt?: boolean; - capability?: { - select: OrgCapabilitySelect; - }; - profile?: { - select: OrgProfileSelect; - }; -}; -export type OrgProfileGrantSelect = { - createdAt?: boolean; - entityId?: boolean; - grantorId?: boolean; - id?: boolean; - isGrant?: boolean; - membershipId?: boolean; - profileId?: boolean; - updatedAt?: boolean; - membership?: { - select: OrgMembershipSelect; - }; - profile?: { - select: OrgProfileSelect; - }; -}; -export type OrgProfileTemplateSelect = { - capabilities?: boolean; - createdAt?: boolean; - description?: boolean; - id?: boolean; - isDefault?: boolean; - name?: boolean; - slug?: boolean; - updatedAt?: boolean; -}; // ============ Table Filter Types ============ export interface AppAdminGrantFilter { /** Filter by the object’s `actorId` field. */ @@ -1682,47 +1040,9 @@ export interface AppAdminGrantFilter { /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } -export interface AppCapabilityFilter { - /** Checks for all expressions in this list. */ - and?: AppCapabilityFilter[]; - /** Filter by the object’s `appCapabilityDefaultCapabilityByCapabilityId` relation. */ - appCapabilityDefaultCapabilityByCapabilityId?: AppCapabilityDefaultCapabilityFilter; - /** A related `appCapabilityDefaultCapabilityByCapabilityId` exists. */ - appCapabilityDefaultCapabilityByCapabilityIdExists?: boolean; - /** Filter by the object’s `appCapabilityDefaultGrantsByCapabilityId` relation. */ - appCapabilityDefaultGrantsByCapabilityId?: AppCapabilityToManyAppCapabilityDefaultGrantFilter; - /** `appCapabilityDefaultGrantsByCapabilityId` exist. */ - appCapabilityDefaultGrantsByCapabilityIdExist?: boolean; - /** Filter by the object’s `appProfileCapabilitiesByCapabilityId` relation. */ - appProfileCapabilitiesByCapabilityId?: AppCapabilityToManyAppProfileCapabilityFilter; - /** `appProfileCapabilitiesByCapabilityId` exist. */ - appProfileCapabilitiesByCapabilityIdExist?: boolean; - /** Filter by the object’s `appProfileDefinitionGrantsByCapabilityId` relation. */ - appProfileDefinitionGrantsByCapabilityId?: AppCapabilityToManyAppProfileDefinitionGrantFilter; - /** `appProfileDefinitionGrantsByCapabilityId` exist. */ - appProfileDefinitionGrantsByCapabilityIdExist?: 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 `kind` field. */ - kind?: StringFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Negates the expression. */ - not?: AppCapabilityFilter; - /** Checks for any expressions in this list. */ - or?: AppCapabilityFilter[]; -} export interface AppCapabilityDefaultCapabilityFilter { /** Checks for all expressions in this list. */ and?: AppCapabilityDefaultCapabilityFilter[]; - /** Filter by the object’s `capability` relation. */ - capability?: AppCapabilityFilter; /** Filter by the object’s `capabilityId` field. */ capabilityId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ @@ -1736,23 +1056,9 @@ export interface AppCapabilityDefaultCapabilityFilter { /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } -export interface AppCapabilityDefaultFilter { - /** Checks for all expressions in this list. */ - and?: AppCapabilityDefaultFilter[]; - /** Filter by the object’s `capabilities` field. */ - capabilities?: BitStringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Negates the expression. */ - not?: AppCapabilityDefaultFilter; - /** Checks for any expressions in this list. */ - or?: AppCapabilityDefaultFilter[]; -} export interface AppCapabilityDefaultGrantFilter { /** Checks for all expressions in this list. */ and?: AppCapabilityDefaultGrantFilter[]; - /** Filter by the object’s `capability` relation. */ - capability?: AppCapabilityFilter; /** Filter by the object’s `capabilityId` field. */ capabilityId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ @@ -1839,10 +1145,6 @@ export interface AppInviteFilter { or?: AppInviteFilter[]; /** Filter by the object’s `phone` field. */ phone?: StringFilter; - /** Filter by the object’s `profile` relation. */ - profile?: AppProfileFilter; - /** A related `profile` exists. */ - profileExists?: boolean; /** Filter by the object’s `profileId` field. */ profileId?: UUIDFilter; /** Filter by the object’s `senderId` field. */ @@ -1855,20 +1157,14 @@ export interface AppMembershipFilter { actorId?: UUIDFilter; /** Checks for all expressions in this list. */ and?: AppMembershipFilter[]; - /** Filter by the object’s `appMembershipProfilesByMembershipId` relation. */ - appMembershipProfilesByMembershipId?: AppMembershipToManyAppMembershipProfileFilter; - /** `appMembershipProfilesByMembershipId` exist. */ - appMembershipProfilesByMembershipIdExist?: boolean; - /** Filter by the object’s `appProfileGrantsByMembershipId` relation. */ - appProfileGrantsByMembershipId?: AppMembershipToManyAppProfileGrantFilter; - /** `appProfileGrantsByMembershipId` exist. */ - appProfileGrantsByMembershipIdExist?: boolean; /** 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 `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `granted` field. */ granted?: BitStringFilter; /** Filter by the object’s `id` field. */ @@ -1891,16 +1187,14 @@ export interface AppMembershipFilter { not?: AppMembershipFilter; /** Checks for any expressions in this list. */ or?: AppMembershipFilter[]; - /** Filter by the object’s `profile` relation. */ - profile?: AppProfileFilter; - /** A related `profile` exists. */ - profileExists?: 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; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } export interface AppMembershipDefaultFilter { /** Checks for all expressions in this list. */ @@ -1909,6 +1203,8 @@ export interface AppMembershipDefaultFilter { createdAt?: DatetimeFilter; /** Filter by the object’s `createdBy` field. */ createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `isApproved` field. */ @@ -1923,30 +1219,8 @@ export interface AppMembershipDefaultFilter { updatedAt?: DatetimeFilter; /** Filter by the object’s `updatedBy` field. */ updatedBy?: UUIDFilter; -} -export interface AppMembershipProfileFilter { - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: AppMembershipProfileFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `membership` relation. */ - membership?: AppMembershipFilter; - /** Filter by the object’s `membershipId` field. */ - membershipId?: UUIDFilter; - /** Negates the expression. */ - not?: AppMembershipProfileFilter; - /** Checks for any expressions in this list. */ - or?: AppMembershipProfileFilter[]; - /** Filter by the object’s `profile` relation. */ - profile?: AppProfileFilter; - /** Filter by the object’s `profileId` field. */ - profileId?: UUIDFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } export interface AppOwnerGrantFilter { /** Filter by the object’s `actorId` field. */ @@ -1968,162 +1242,6 @@ export interface AppOwnerGrantFilter { /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } -export interface AppProfileCapabilityFilter { - /** Checks for all expressions in this list. */ - and?: AppProfileCapabilityFilter[]; - /** Filter by the object’s `capability` relation. */ - capability?: AppCapabilityFilter; - /** 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?: AppProfileCapabilityFilter; - /** Checks for any expressions in this list. */ - or?: AppProfileCapabilityFilter[]; - /** Filter by the object’s `profile` relation. */ - profile?: AppProfileFilter; - /** Filter by the object’s `profileId` field. */ - profileId?: UUIDFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -export interface AppProfileFilter { - /** Checks for all expressions in this list. */ - and?: AppProfileFilter[]; - /** Filter by the object’s `appInvitesByProfileId` relation. */ - appInvitesByProfileId?: AppProfileToManyAppInviteFilter; - /** `appInvitesByProfileId` exist. */ - appInvitesByProfileIdExist?: boolean; - /** Filter by the object’s `appMembershipProfilesByProfileId` relation. */ - appMembershipProfilesByProfileId?: AppProfileToManyAppMembershipProfileFilter; - /** `appMembershipProfilesByProfileId` exist. */ - appMembershipProfilesByProfileIdExist?: boolean; - /** Filter by the object’s `appMembershipsByProfileId` relation. */ - appMembershipsByProfileId?: AppProfileToManyAppMembershipFilter; - /** `appMembershipsByProfileId` exist. */ - appMembershipsByProfileIdExist?: boolean; - /** Filter by the object’s `appProfileCapabilitiesByProfileId` relation. */ - appProfileCapabilitiesByProfileId?: AppProfileToManyAppProfileCapabilityFilter; - /** `appProfileCapabilitiesByProfileId` exist. */ - appProfileCapabilitiesByProfileIdExist?: boolean; - /** Filter by the object’s `appProfileDefinitionGrantsByProfileId` relation. */ - appProfileDefinitionGrantsByProfileId?: AppProfileToManyAppProfileDefinitionGrantFilter; - /** `appProfileDefinitionGrantsByProfileId` exist. */ - appProfileDefinitionGrantsByProfileIdExist?: boolean; - /** Filter by the object’s `appProfileGrantsByProfileId` relation. */ - appProfileGrantsByProfileId?: AppProfileToManyAppProfileGrantFilter; - /** `appProfileGrantsByProfileId` exist. */ - appProfileGrantsByProfileIdExist?: boolean; - /** Filter by the object’s `capabilities` field. */ - capabilities?: BitStringFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isDefault` field. */ - isDefault?: BooleanFilter; - /** Filter by the object’s `isSystem` field. */ - isSystem?: BooleanFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Negates the expression. */ - not?: AppProfileFilter; - /** Checks for any expressions in this list. */ - or?: AppProfileFilter[]; - /** Filter by the object’s `slug` field. */ - slug?: StringFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -export interface AppProfileDefinitionGrantFilter { - /** Checks for all expressions in this list. */ - and?: AppProfileDefinitionGrantFilter[]; - /** Filter by the object’s `capability` relation. */ - capability?: AppCapabilityFilter; - /** A related `capability` exists. */ - capabilityExists?: boolean; - /** 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?: AppProfileDefinitionGrantFilter; - /** Checks for any expressions in this list. */ - or?: AppProfileDefinitionGrantFilter[]; - /** Filter by the object’s `profile` relation. */ - profile?: AppProfileFilter; - /** A related `profile` exists. */ - profileExists?: boolean; - /** Filter by the object’s `profileId` field. */ - profileId?: UUIDFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -export interface AppProfileGrantFilter { - /** Checks for all expressions in this list. */ - and?: AppProfileGrantFilter[]; - /** 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; - /** Filter by the object’s `membership` relation. */ - membership?: AppMembershipFilter; - /** A related `membership` exists. */ - membershipExists?: boolean; - /** Filter by the object’s `membershipId` field. */ - membershipId?: UUIDFilter; - /** Negates the expression. */ - not?: AppProfileGrantFilter; - /** Checks for any expressions in this list. */ - or?: AppProfileGrantFilter[]; - /** Filter by the object’s `profile` relation. */ - profile?: AppProfileFilter; - /** A related `profile` exists. */ - profileExists?: boolean; - /** Filter by the object’s `profileId` field. */ - profileId?: UUIDFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -export interface AppProfileTemplateFilter { - /** Checks for all expressions in this list. */ - and?: AppProfileTemplateFilter[]; - /** Filter by the object’s `capabilities` field. */ - capabilities?: BitStringFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isDefault` field. */ - isDefault?: BooleanFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Negates the expression. */ - not?: AppProfileTemplateFilter; - /** Checks for any expressions in this list. */ - or?: AppProfileTemplateFilter[]; - /** Filter by the object’s `slug` field. */ - slug?: StringFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} export interface MembershipTypeFilter { /** Checks for all expressions in this list. */ and?: MembershipTypeFilter[]; @@ -2166,47 +1284,9 @@ export interface OrgAdminGrantFilter { /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } -export interface OrgCapabilityFilter { - /** Checks for all expressions in this list. */ - and?: OrgCapabilityFilter[]; - /** 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 `kind` field. */ - kind?: StringFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Negates the expression. */ - not?: OrgCapabilityFilter; - /** Checks for any expressions in this list. */ - or?: OrgCapabilityFilter[]; - /** Filter by the object’s `orgCapabilityDefaultCapabilitiesByCapabilityId` relation. */ - orgCapabilityDefaultCapabilitiesByCapabilityId?: OrgCapabilityToManyOrgCapabilityDefaultCapabilityFilter; - /** `orgCapabilityDefaultCapabilitiesByCapabilityId` exist. */ - orgCapabilityDefaultCapabilitiesByCapabilityIdExist?: boolean; - /** Filter by the object’s `orgCapabilityDefaultGrantsByCapabilityId` relation. */ - orgCapabilityDefaultGrantsByCapabilityId?: OrgCapabilityToManyOrgCapabilityDefaultGrantFilter; - /** `orgCapabilityDefaultGrantsByCapabilityId` exist. */ - orgCapabilityDefaultGrantsByCapabilityIdExist?: boolean; - /** Filter by the object’s `orgProfileCapabilitiesByCapabilityId` relation. */ - orgProfileCapabilitiesByCapabilityId?: OrgCapabilityToManyOrgProfileCapabilityFilter; - /** `orgProfileCapabilitiesByCapabilityId` exist. */ - orgProfileCapabilitiesByCapabilityIdExist?: boolean; - /** Filter by the object’s `orgProfileDefinitionGrantsByCapabilityId` relation. */ - orgProfileDefinitionGrantsByCapabilityId?: OrgCapabilityToManyOrgProfileDefinitionGrantFilter; - /** `orgProfileDefinitionGrantsByCapabilityId` exist. */ - orgProfileDefinitionGrantsByCapabilityIdExist?: boolean; -} export interface OrgCapabilityDefaultCapabilityFilter { /** Checks for all expressions in this list. */ and?: OrgCapabilityDefaultCapabilityFilter[]; - /** Filter by the object’s `capability` relation. */ - capability?: OrgCapabilityFilter; /** Filter by the object’s `capabilityId` field. */ capabilityId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ @@ -2222,25 +1302,9 @@ export interface OrgCapabilityDefaultCapabilityFilter { /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } -export interface OrgCapabilityDefaultFilter { - /** Checks for all expressions in this list. */ - and?: OrgCapabilityDefaultFilter[]; - /** Filter by the object’s `capabilities` field. */ - capabilities?: BitStringFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Negates the expression. */ - not?: OrgCapabilityDefaultFilter; - /** Checks for any expressions in this list. */ - or?: OrgCapabilityDefaultFilter[]; -} export interface OrgCapabilityDefaultGrantFilter { /** Checks for all expressions in this list. */ and?: OrgCapabilityDefaultGrantFilter[]; - /** Filter by the object’s `capability` relation. */ - capability?: OrgCapabilityFilter; /** Filter by the object’s `capabilityId` field. */ capabilityId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ @@ -2401,10 +1465,6 @@ export interface OrgInviteFilter { or?: OrgInviteFilter[]; /** Filter by the object’s `phone` field. */ phone?: StringFilter; - /** Filter by the object’s `profile` relation. */ - profile?: OrgProfileFilter; - /** A related `profile` exists. */ - profileExists?: boolean; /** Filter by the object’s `profileId` field. */ profileId?: UUIDFilter; /** Filter by the object’s `receiverId` field. */ @@ -2473,6 +1533,8 @@ export interface OrgMembershipFilter { createdAt?: DatetimeFilter; /** Filter by the object’s `createdBy` field. */ createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `entityId` field. */ entityId?: UUIDFilter; /** Filter by the object’s `granted` field. */ @@ -2503,24 +1565,14 @@ export interface OrgMembershipFilter { orgMemberProfileByMembershipId?: OrgMemberProfileFilter; /** A related `orgMemberProfileByMembershipId` exists. */ orgMemberProfileByMembershipIdExists?: boolean; - /** Filter by the object’s `orgMembershipProfilesByMembershipId` relation. */ - orgMembershipProfilesByMembershipId?: OrgMembershipToManyOrgMembershipProfileFilter; - /** `orgMembershipProfilesByMembershipId` exist. */ - orgMembershipProfilesByMembershipIdExist?: boolean; - /** Filter by the object’s `orgProfileGrantsByMembershipId` relation. */ - orgProfileGrantsByMembershipId?: OrgMembershipToManyOrgProfileGrantFilter; - /** `orgProfileGrantsByMembershipId` exist. */ - orgProfileGrantsByMembershipIdExist?: boolean; - /** Filter by the object’s `profile` relation. */ - profile?: OrgProfileFilter; - /** A related `profile` exists. */ - profileExists?: 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; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } export interface OrgMembershipDefaultFilter { /** Checks for all expressions in this list. */ @@ -2529,6 +1581,8 @@ export interface OrgMembershipDefaultFilter { createdAt?: DatetimeFilter; /** Filter by the object’s `createdBy` field. */ createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `entityId` field. */ entityId?: UUIDFilter; /** Filter by the object’s `id` field. */ @@ -2543,34 +1597,14 @@ export interface OrgMembershipDefaultFilter { updatedAt?: DatetimeFilter; /** Filter by the object’s `updatedBy` field. */ updatedBy?: UUIDFilter; -} -export interface OrgMembershipProfileFilter { - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: OrgMembershipProfileFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `membership` relation. */ - membership?: OrgMembershipFilter; - /** Filter by the object’s `membershipId` field. */ - membershipId?: UUIDFilter; - /** Negates the expression. */ - not?: OrgMembershipProfileFilter; - /** Checks for any expressions in this list. */ - or?: OrgMembershipProfileFilter[]; - /** Filter by the object’s `profile` relation. */ - profile?: OrgProfileFilter; - /** Filter by the object’s `profileId` field. */ - profileId?: UUIDFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } export interface OrgMembershipSettingFilter { /** Filter by the object’s `allowExternalMembers` field. */ allowExternalMembers?: BooleanFilter; + /** Filter by the object’s `allowPrincipalOwnedApiKeys` field. */ + allowPrincipalOwnedApiKeys?: BooleanFilter; /** Checks for all expressions in this list. */ and?: OrgMembershipSettingFilter[]; /** Filter by the object’s `createChildCascadeAdmins` field. */ @@ -2583,6 +1617,8 @@ export interface OrgMembershipSettingFilter { createdAt?: DatetimeFilter; /** Filter by the object’s `createdBy` field. */ createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `deleteMemberCascadeChildren` field. */ deleteMemberCascadeChildren?: BooleanFilter; /** Filter by the object’s `entityId` field. */ @@ -2603,6 +1639,8 @@ export interface OrgMembershipSettingFilter { updatedAt?: DatetimeFilter; /** Filter by the object’s `updatedBy` field. */ updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } export interface OrgOwnerGrantFilter { /** Filter by the object’s `actorId` field. */ @@ -2626,166 +1664,6 @@ export interface OrgOwnerGrantFilter { /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } -export interface OrgProfileCapabilityFilter { - /** Checks for all expressions in this list. */ - and?: OrgProfileCapabilityFilter[]; - /** Filter by the object’s `capability` relation. */ - capability?: OrgCapabilityFilter; - /** 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?: OrgProfileCapabilityFilter; - /** Checks for any expressions in this list. */ - or?: OrgProfileCapabilityFilter[]; - /** Filter by the object’s `profile` relation. */ - profile?: OrgProfileFilter; - /** Filter by the object’s `profileId` field. */ - profileId?: UUIDFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -export interface OrgProfileFilter { - /** Checks for all expressions in this list. */ - and?: OrgProfileFilter[]; - /** Filter by the object’s `capabilities` field. */ - capabilities?: BitStringFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isDefault` field. */ - isDefault?: BooleanFilter; - /** Filter by the object’s `isSystem` field. */ - isSystem?: BooleanFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Negates the expression. */ - not?: OrgProfileFilter; - /** Checks for any expressions in this list. */ - or?: OrgProfileFilter[]; - /** Filter by the object’s `orgInvitesByProfileId` relation. */ - orgInvitesByProfileId?: OrgProfileToManyOrgInviteFilter; - /** `orgInvitesByProfileId` exist. */ - orgInvitesByProfileIdExist?: boolean; - /** Filter by the object’s `orgMembershipProfilesByProfileId` relation. */ - orgMembershipProfilesByProfileId?: OrgProfileToManyOrgMembershipProfileFilter; - /** `orgMembershipProfilesByProfileId` exist. */ - orgMembershipProfilesByProfileIdExist?: boolean; - /** Filter by the object’s `orgMembershipsByProfileId` relation. */ - orgMembershipsByProfileId?: OrgProfileToManyOrgMembershipFilter; - /** `orgMembershipsByProfileId` exist. */ - orgMembershipsByProfileIdExist?: boolean; - /** Filter by the object’s `orgProfileCapabilitiesByProfileId` relation. */ - orgProfileCapabilitiesByProfileId?: OrgProfileToManyOrgProfileCapabilityFilter; - /** `orgProfileCapabilitiesByProfileId` exist. */ - orgProfileCapabilitiesByProfileIdExist?: boolean; - /** Filter by the object’s `orgProfileDefinitionGrantsByProfileId` relation. */ - orgProfileDefinitionGrantsByProfileId?: OrgProfileToManyOrgProfileDefinitionGrantFilter; - /** `orgProfileDefinitionGrantsByProfileId` exist. */ - orgProfileDefinitionGrantsByProfileIdExist?: boolean; - /** Filter by the object’s `orgProfileGrantsByProfileId` relation. */ - orgProfileGrantsByProfileId?: OrgProfileToManyOrgProfileGrantFilter; - /** `orgProfileGrantsByProfileId` exist. */ - orgProfileGrantsByProfileIdExist?: boolean; - /** Filter by the object’s `slug` field. */ - slug?: StringFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -export interface OrgProfileDefinitionGrantFilter { - /** Checks for all expressions in this list. */ - and?: OrgProfileDefinitionGrantFilter[]; - /** Filter by the object’s `capability` relation. */ - capability?: OrgCapabilityFilter; - /** A related `capability` exists. */ - capabilityExists?: boolean; - /** 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?: OrgProfileDefinitionGrantFilter; - /** Checks for any expressions in this list. */ - or?: OrgProfileDefinitionGrantFilter[]; - /** Filter by the object’s `profile` relation. */ - profile?: OrgProfileFilter; - /** A related `profile` exists. */ - profileExists?: boolean; - /** Filter by the object’s `profileId` field. */ - profileId?: UUIDFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -export interface OrgProfileGrantFilter { - /** Checks for all expressions in this list. */ - and?: OrgProfileGrantFilter[]; - /** 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; - /** Filter by the object’s `membership` relation. */ - membership?: OrgMembershipFilter; - /** A related `membership` exists. */ - membershipExists?: boolean; - /** Filter by the object’s `membershipId` field. */ - membershipId?: UUIDFilter; - /** Negates the expression. */ - not?: OrgProfileGrantFilter; - /** Checks for any expressions in this list. */ - or?: OrgProfileGrantFilter[]; - /** Filter by the object’s `profile` relation. */ - profile?: OrgProfileFilter; - /** A related `profile` exists. */ - profileExists?: boolean; - /** Filter by the object’s `profileId` field. */ - profileId?: UUIDFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -export interface OrgProfileTemplateFilter { - /** Checks for all expressions in this list. */ - and?: OrgProfileTemplateFilter[]; - /** Filter by the object’s `capabilities` field. */ - capabilities?: BitStringFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isDefault` field. */ - isDefault?: BooleanFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Negates the expression. */ - not?: OrgProfileTemplateFilter; - /** Checks for any expressions in this list. */ - or?: OrgProfileTemplateFilter[]; - /** Filter by the object’s `slug` field. */ - slug?: StringFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} // ============ OrderBy Types ============ export type AppAdminGrantOrderBy = | 'ACTOR_ID_ASC' @@ -2803,22 +1681,6 @@ export type AppAdminGrantOrderBy = | 'PRIMARY_KEY_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type AppCapabilityOrderBy = - | 'BITNUM_ASC' - | 'BITNUM_DESC' - | 'BITSTR_ASC' - | 'BITSTR_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'KIND_ASC' - | 'KIND_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC'; export type AppCapabilityDefaultCapabilityOrderBy = | 'CAPABILITY_ID_ASC' | 'CAPABILITY_ID_DESC' @@ -2831,14 +1693,6 @@ export type AppCapabilityDefaultCapabilityOrderBy = | 'PRIMARY_KEY_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type AppCapabilityDefaultOrderBy = - | 'CAPABILITIES_ASC' - | 'CAPABILITIES_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC'; export type AppCapabilityDefaultGrantOrderBy = | 'CAPABILITY_ID_ASC' | 'CAPABILITY_ID_DESC' @@ -2932,6 +1786,8 @@ export type AppMembershipOrderBy = | 'CREATED_AT_DESC' | 'CREATED_BY_ASC' | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'GRANTED_ASC' | 'GRANTED_DESC' | 'ID_ASC' @@ -2958,12 +1814,16 @@ export type AppMembershipOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC'; + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; export type AppMembershipDefaultOrderBy = | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'CREATED_BY_ASC' | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'ID_ASC' | 'ID_DESC' | 'IS_APPROVED_ASC' @@ -2976,23 +1836,9 @@ export type AppMembershipDefaultOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC'; -export type AppMembershipProfileOrderBy = - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'MEMBERSHIP_ID_ASC' - | 'MEMBERSHIP_ID_DESC' - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'PROFILE_ID_ASC' - | 'PROFILE_ID_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; export type AppOwnerGrantOrderBy = | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' @@ -3009,98 +1855,6 @@ export type AppOwnerGrantOrderBy = | 'PRIMARY_KEY_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type AppProfileCapabilityOrderBy = - | 'CAPABILITY_ID_ASC' - | 'CAPABILITY_ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'PROFILE_ID_ASC' - | 'PROFILE_ID_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type AppProfileOrderBy = - | 'CAPABILITIES_ASC' - | 'CAPABILITIES_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'IS_DEFAULT_ASC' - | 'IS_DEFAULT_DESC' - | 'IS_SYSTEM_ASC' - | 'IS_SYSTEM_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'SLUG_ASC' - | 'SLUG_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type AppProfileDefinitionGrantOrderBy = - | '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' - | 'PROFILE_ID_ASC' - | 'PROFILE_ID_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type AppProfileGrantOrderBy = - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'GRANTOR_ID_ASC' - | 'GRANTOR_ID_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' - | 'MEMBERSHIP_ID_ASC' - | 'MEMBERSHIP_ID_DESC' - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'PROFILE_ID_ASC' - | 'PROFILE_ID_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type AppProfileTemplateOrderBy = - | 'CAPABILITIES_ASC' - | 'CAPABILITIES_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'IS_DEFAULT_ASC' - | 'IS_DEFAULT_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'SLUG_ASC' - | 'SLUG_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; export type MembershipTypeOrderBy = | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' @@ -3135,22 +1889,6 @@ export type OrgAdminGrantOrderBy = | 'PRIMARY_KEY_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type OrgCapabilityOrderBy = - | 'BITNUM_ASC' - | 'BITNUM_DESC' - | 'BITSTR_ASC' - | 'BITSTR_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'KIND_ASC' - | 'KIND_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC'; export type OrgCapabilityDefaultCapabilityOrderBy = | 'CAPABILITY_ID_ASC' | 'CAPABILITY_ID_DESC' @@ -3165,16 +1903,6 @@ export type OrgCapabilityDefaultCapabilityOrderBy = | 'PRIMARY_KEY_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type OrgCapabilityDefaultOrderBy = - | 'CAPABILITIES_ASC' - | 'CAPABILITIES_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC'; export type OrgCapabilityDefaultGrantOrderBy = | 'CAPABILITY_ID_ASC' | 'CAPABILITY_ID_DESC' @@ -3376,6 +2104,8 @@ export type OrgMembershipOrderBy = | 'CREATED_AT_DESC' | 'CREATED_BY_ASC' | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' | 'GRANTED_ASC' @@ -3406,12 +2136,16 @@ export type OrgMembershipOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC'; + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; export type OrgMembershipDefaultOrderBy = | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'CREATED_BY_ASC' | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' | 'ID_ASC' @@ -3424,30 +2158,20 @@ export type OrgMembershipDefaultOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC'; -export type OrgMembershipProfileOrderBy = - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'MEMBERSHIP_ID_ASC' - | 'MEMBERSHIP_ID_DESC' - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'PROFILE_ID_ASC' - | 'PROFILE_ID_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; export type OrgMembershipSettingOrderBy = | 'ALLOW_EXTERNAL_MEMBERS_ASC' | 'ALLOW_EXTERNAL_MEMBERS_DESC' + | 'ALLOW_PRINCIPAL_OWNED_API_KEYS_ASC' + | 'ALLOW_PRINCIPAL_OWNED_API_KEYS_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'CREATED_BY_ASC' | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'CREATE_CHILD_CASCADE_ADMINS_ASC' | 'CREATE_CHILD_CASCADE_ADMINS_DESC' | 'CREATE_CHILD_CASCADE_MEMBERS_ASC' @@ -3472,7 +2196,9 @@ export type OrgMembershipSettingOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC'; + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; export type OrgOwnerGrantOrderBy = | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' @@ -3491,102 +2217,6 @@ export type OrgOwnerGrantOrderBy = | 'PRIMARY_KEY_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type OrgProfileCapabilityOrderBy = - | 'CAPABILITY_ID_ASC' - | 'CAPABILITY_ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'PROFILE_ID_ASC' - | 'PROFILE_ID_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type OrgProfileOrderBy = - | 'CAPABILITIES_ASC' - | 'CAPABILITIES_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'IS_DEFAULT_ASC' - | 'IS_DEFAULT_DESC' - | 'IS_SYSTEM_ASC' - | 'IS_SYSTEM_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'SLUG_ASC' - | 'SLUG_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type OrgProfileDefinitionGrantOrderBy = - | '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' - | 'PROFILE_ID_ASC' - | 'PROFILE_ID_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type OrgProfileGrantOrderBy = - | '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' - | 'MEMBERSHIP_ID_ASC' - | 'MEMBERSHIP_ID_DESC' - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'PROFILE_ID_ASC' - | 'PROFILE_ID_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type OrgProfileTemplateOrderBy = - | 'CAPABILITIES_ASC' - | 'CAPABILITIES_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'IS_DEFAULT_ASC' - | 'IS_DEFAULT_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'SLUG_ASC' - | 'SLUG_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; // ============ CRUD Input Types ============ export interface CreateAppAdminGrantInput { clientMutationId?: string; @@ -3610,32 +2240,6 @@ export interface DeleteAppAdminGrantInput { clientMutationId?: string; id: string; } -export interface CreateAppCapabilityInput { - clientMutationId?: string; - appCapability: { - bitnum?: number; - bitstr?: string; - description?: string; - kind?: string; - name?: string; - }; -} -export interface AppCapabilityPatch { - bitnum?: number | null; - bitstr?: string | null; - description?: string | null; - kind?: string | null; - name?: string | null; -} -export interface UpdateAppCapabilityInput { - clientMutationId?: string; - id: string; - appCapabilityPatch: AppCapabilityPatch; -} -export interface DeleteAppCapabilityInput { - clientMutationId?: string; - id: string; -} export interface CreateAppCapabilityDefaultCapabilityInput { clientMutationId?: string; appCapabilityDefaultCapability: { @@ -3654,24 +2258,6 @@ export interface DeleteAppCapabilityDefaultCapabilityInput { clientMutationId?: string; id: string; } -export interface CreateAppCapabilityDefaultInput { - clientMutationId?: string; - appCapabilityDefault: { - capabilities?: string; - }; -} -export interface AppCapabilityDefaultPatch { - capabilities?: string | null; -} -export interface UpdateAppCapabilityDefaultInput { - clientMutationId?: string; - id: string; - appCapabilityDefaultPatch: AppCapabilityDefaultPatch; -} -export interface DeleteAppCapabilityDefaultInput { - clientMutationId?: string; - id: string; -} export interface CreateAppCapabilityDefaultGrantInput { clientMutationId?: string; appCapabilityDefaultGrant: { @@ -3786,6 +2372,7 @@ export interface CreateAppMembershipInput { actorId: string; capabilities?: string; createdBy?: string; + createdByPrincipal?: string; granted?: string; isActive?: boolean; isAdmin?: boolean; @@ -3796,12 +2383,14 @@ export interface CreateAppMembershipInput { isVerified?: boolean; profileId?: string; updatedBy?: string; + updatedByPrincipal?: string; }; } export interface AppMembershipPatch { actorId?: string | null; capabilities?: string | null; createdBy?: string | null; + createdByPrincipal?: string | null; granted?: string | null; isActive?: boolean | null; isAdmin?: boolean | null; @@ -3812,6 +2401,7 @@ export interface AppMembershipPatch { isVerified?: boolean | null; profileId?: string | null; updatedBy?: string | null; + updatedByPrincipal?: string | null; } export interface UpdateAppMembershipInput { clientMutationId?: string; @@ -3826,16 +2416,20 @@ export interface CreateAppMembershipDefaultInput { clientMutationId?: string; appMembershipDefault: { createdBy?: string; + createdByPrincipal?: string; isApproved?: boolean; isVerified?: boolean; updatedBy?: string; + updatedByPrincipal?: string; }; } export interface AppMembershipDefaultPatch { createdBy?: string | null; + createdByPrincipal?: string | null; isApproved?: boolean | null; isVerified?: boolean | null; updatedBy?: string | null; + updatedByPrincipal?: string | null; } export interface UpdateAppMembershipDefaultInput { clientMutationId?: string; @@ -3846,29 +2440,7 @@ export interface DeleteAppMembershipDefaultInput { clientMutationId?: string; id: string; } -export interface CreateAppMembershipProfileInput { - clientMutationId?: string; - appMembershipProfile: { - actorId: string; - membershipId: string; - profileId: string; - }; -} -export interface AppMembershipProfilePatch { - actorId?: string | null; - membershipId?: string | null; - profileId?: string | null; -} -export interface UpdateAppMembershipProfileInput { - clientMutationId?: string; - id: string; - appMembershipProfilePatch: AppMembershipProfilePatch; -} -export interface DeleteAppMembershipProfileInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppOwnerGrantInput { +export interface CreateAppOwnerGrantInput { clientMutationId?: string; appOwnerGrant: { actorId?: string; @@ -3890,128 +2462,6 @@ export interface DeleteAppOwnerGrantInput { clientMutationId?: string; id: string; } -export interface CreateAppProfileCapabilityInput { - clientMutationId?: string; - appProfileCapability: { - capabilityId: string; - profileId: string; - }; -} -export interface AppProfileCapabilityPatch { - capabilityId?: string | null; - profileId?: string | null; -} -export interface UpdateAppProfileCapabilityInput { - clientMutationId?: string; - id: string; - appProfileCapabilityPatch: AppProfileCapabilityPatch; -} -export interface DeleteAppProfileCapabilityInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppProfileInput { - clientMutationId?: string; - appProfile: { - capabilities?: string; - description?: string; - isDefault?: boolean; - isSystem?: boolean; - name: string; - slug: string; - }; -} -export interface AppProfilePatch { - capabilities?: string | null; - description?: string | null; - isDefault?: boolean | null; - isSystem?: boolean | null; - name?: string | null; - slug?: string | null; -} -export interface UpdateAppProfileInput { - clientMutationId?: string; - id: string; - appProfilePatch: AppProfilePatch; -} -export interface DeleteAppProfileInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppProfileDefinitionGrantInput { - clientMutationId?: string; - appProfileDefinitionGrant: { - capabilityId?: string; - grantorId?: string; - isGrant?: boolean; - profileId?: string; - }; -} -export interface AppProfileDefinitionGrantPatch { - capabilityId?: string | null; - grantorId?: string | null; - isGrant?: boolean | null; - profileId?: string | null; -} -export interface UpdateAppProfileDefinitionGrantInput { - clientMutationId?: string; - id: string; - appProfileDefinitionGrantPatch: AppProfileDefinitionGrantPatch; -} -export interface DeleteAppProfileDefinitionGrantInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppProfileGrantInput { - clientMutationId?: string; - appProfileGrant: { - grantorId?: string; - isGrant?: boolean; - membershipId?: string; - profileId?: string; - }; -} -export interface AppProfileGrantPatch { - grantorId?: string | null; - isGrant?: boolean | null; - membershipId?: string | null; - profileId?: string | null; -} -export interface UpdateAppProfileGrantInput { - clientMutationId?: string; - id: string; - appProfileGrantPatch: AppProfileGrantPatch; -} -export interface DeleteAppProfileGrantInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppProfileTemplateInput { - clientMutationId?: string; - appProfileTemplate: { - capabilities?: string; - description?: string; - isDefault?: boolean; - name: string; - slug: string; - }; -} -export interface AppProfileTemplatePatch { - capabilities?: string | null; - description?: string | null; - isDefault?: boolean | null; - name?: string | null; - slug?: string | null; -} -export interface UpdateAppProfileTemplateInput { - clientMutationId?: string; - id: string; - appProfileTemplatePatch: AppProfileTemplatePatch; -} -export interface DeleteAppProfileTemplateInput { - clientMutationId?: string; - id: string; -} export interface CreateMembershipTypeInput { clientMutationId?: string; membershipType: { @@ -4062,32 +2512,6 @@ export interface DeleteOrgAdminGrantInput { clientMutationId?: string; id: string; } -export interface CreateOrgCapabilityInput { - clientMutationId?: string; - orgCapability: { - bitnum?: number; - bitstr?: string; - description?: string; - kind?: string; - name?: string; - }; -} -export interface OrgCapabilityPatch { - bitnum?: number | null; - bitstr?: string | null; - description?: string | null; - kind?: string | null; - name?: string | null; -} -export interface UpdateOrgCapabilityInput { - clientMutationId?: string; - id: string; - orgCapabilityPatch: OrgCapabilityPatch; -} -export interface DeleteOrgCapabilityInput { - clientMutationId?: string; - id: string; -} export interface CreateOrgCapabilityDefaultCapabilityInput { clientMutationId?: string; orgCapabilityDefaultCapability: { @@ -4108,26 +2532,6 @@ export interface DeleteOrgCapabilityDefaultCapabilityInput { clientMutationId?: string; id: string; } -export interface CreateOrgCapabilityDefaultInput { - clientMutationId?: string; - orgCapabilityDefault: { - capabilities?: string; - entityId: string; - }; -} -export interface OrgCapabilityDefaultPatch { - capabilities?: string | null; - entityId?: string | null; -} -export interface UpdateOrgCapabilityDefaultInput { - clientMutationId?: string; - id: string; - orgCapabilityDefaultPatch: OrgCapabilityDefaultPatch; -} -export interface DeleteOrgCapabilityDefaultInput { - clientMutationId?: string; - id: string; -} export interface CreateOrgCapabilityDefaultGrantInput { clientMutationId?: string; orgCapabilityDefaultGrant: { @@ -4405,6 +2809,7 @@ export interface CreateOrgMembershipInput { actorId: string; capabilities?: string; createdBy?: string; + createdByPrincipal?: string; entityId: string; granted?: string; isActive?: boolean; @@ -4417,12 +2822,14 @@ export interface CreateOrgMembershipInput { isReadOnly?: boolean; profileId?: string; updatedBy?: string; + updatedByPrincipal?: string; }; } export interface OrgMembershipPatch { actorId?: string | null; capabilities?: string | null; createdBy?: string | null; + createdByPrincipal?: string | null; entityId?: string | null; granted?: string | null; isActive?: boolean | null; @@ -4435,6 +2842,7 @@ export interface OrgMembershipPatch { isReadOnly?: boolean | null; profileId?: string | null; updatedBy?: string | null; + updatedByPrincipal?: string | null; } export interface UpdateOrgMembershipInput { clientMutationId?: string; @@ -4449,16 +2857,20 @@ export interface CreateOrgMembershipDefaultInput { clientMutationId?: string; orgMembershipDefault: { createdBy?: string; + createdByPrincipal?: string; entityId: string; isApproved?: boolean; updatedBy?: string; + updatedByPrincipal?: string; }; } export interface OrgMembershipDefaultPatch { createdBy?: string | null; + createdByPrincipal?: string | null; entityId?: string | null; isApproved?: boolean | null; updatedBy?: string | null; + updatedByPrincipal?: string | null; } export interface UpdateOrgMembershipDefaultInput { clientMutationId?: string; @@ -4469,56 +2881,40 @@ export interface DeleteOrgMembershipDefaultInput { clientMutationId?: string; id: string; } -export interface CreateOrgMembershipProfileInput { - clientMutationId?: string; - orgMembershipProfile: { - actorId: string; - membershipId: string; - profileId: string; - }; -} -export interface OrgMembershipProfilePatch { - actorId?: string | null; - membershipId?: string | null; - profileId?: string | null; -} -export interface UpdateOrgMembershipProfileInput { - clientMutationId?: string; - id: string; - orgMembershipProfilePatch: OrgMembershipProfilePatch; -} -export interface DeleteOrgMembershipProfileInput { - clientMutationId?: string; - id: string; -} export interface CreateOrgMembershipSettingInput { clientMutationId?: string; orgMembershipSetting: { allowExternalMembers?: boolean; + allowPrincipalOwnedApiKeys?: boolean; createChildCascadeAdmins?: boolean; createChildCascadeMembers?: boolean; createChildCascadeOwners?: boolean; createdBy?: string; + createdByPrincipal?: string; deleteMemberCascadeChildren?: boolean; entityId: string; inviteProfileAssignmentMode?: string; limitAllocationMode?: string; populateMemberEmail?: boolean; updatedBy?: string; + updatedByPrincipal?: string; }; } export interface OrgMembershipSettingPatch { allowExternalMembers?: boolean | null; + allowPrincipalOwnedApiKeys?: boolean | null; createChildCascadeAdmins?: boolean | null; createChildCascadeMembers?: boolean | null; createChildCascadeOwners?: boolean | null; createdBy?: string | null; + createdByPrincipal?: string | null; deleteMemberCascadeChildren?: boolean | null; entityId?: string | null; inviteProfileAssignmentMode?: string | null; limitAllocationMode?: string | null; populateMemberEmail?: boolean | null; updatedBy?: string | null; + updatedByPrincipal?: string | null; } export interface UpdateOrgMembershipSettingInput { clientMutationId?: string; @@ -4553,170 +2949,8 @@ export interface DeleteOrgOwnerGrantInput { clientMutationId?: string; id: string; } -export interface CreateOrgProfileCapabilityInput { - clientMutationId?: string; - orgProfileCapability: { - capabilityId: string; - profileId: string; - }; -} -export interface OrgProfileCapabilityPatch { - capabilityId?: string | null; - profileId?: string | null; -} -export interface UpdateOrgProfileCapabilityInput { - clientMutationId?: string; - id: string; - orgProfileCapabilityPatch: OrgProfileCapabilityPatch; -} -export interface DeleteOrgProfileCapabilityInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgProfileInput { - clientMutationId?: string; - orgProfile: { - capabilities?: string; - description?: string; - entityId?: string; - isDefault?: boolean; - isSystem?: boolean; - name: string; - slug: string; - }; -} -export interface OrgProfilePatch { - capabilities?: string | null; - description?: string | null; - entityId?: string | null; - isDefault?: boolean | null; - isSystem?: boolean | null; - name?: string | null; - slug?: string | null; -} -export interface UpdateOrgProfileInput { - clientMutationId?: string; - id: string; - orgProfilePatch: OrgProfilePatch; -} -export interface DeleteOrgProfileInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgProfileDefinitionGrantInput { - clientMutationId?: string; - orgProfileDefinitionGrant: { - capabilityId?: string; - grantorId?: string; - isGrant?: boolean; - profileId?: string; - }; -} -export interface OrgProfileDefinitionGrantPatch { - capabilityId?: string | null; - grantorId?: string | null; - isGrant?: boolean | null; - profileId?: string | null; -} -export interface UpdateOrgProfileDefinitionGrantInput { - clientMutationId?: string; - id: string; - orgProfileDefinitionGrantPatch: OrgProfileDefinitionGrantPatch; -} -export interface DeleteOrgProfileDefinitionGrantInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgProfileGrantInput { - clientMutationId?: string; - orgProfileGrant: { - entityId?: string; - grantorId?: string; - isGrant?: boolean; - membershipId?: string; - profileId?: string; - }; -} -export interface OrgProfileGrantPatch { - entityId?: string | null; - grantorId?: string | null; - isGrant?: boolean | null; - membershipId?: string | null; - profileId?: string | null; -} -export interface UpdateOrgProfileGrantInput { - clientMutationId?: string; - id: string; - orgProfileGrantPatch: OrgProfileGrantPatch; -} -export interface DeleteOrgProfileGrantInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgProfileTemplateInput { - clientMutationId?: string; - orgProfileTemplate: { - capabilities?: string; - description?: string; - isDefault?: boolean; - name: string; - slug: string; - }; -} -export interface OrgProfileTemplatePatch { - capabilities?: string | null; - description?: string | null; - isDefault?: boolean | null; - name?: string | null; - slug?: string | null; -} -export interface UpdateOrgProfileTemplateInput { - clientMutationId?: string; - id: string; - orgProfileTemplatePatch: OrgProfileTemplatePatch; -} -export interface DeleteOrgProfileTemplateInput { - clientMutationId?: string; - id: string; -} // ============ Connection Fields Map ============ -export const connectionFieldsMap = { - AppCapability: { - appCapabilityDefaultGrantsByCapabilityId: 'AppCapabilityDefaultGrant', - appProfileCapabilitiesByCapabilityId: 'AppProfileCapability', - appProfileDefinitionGrantsByCapabilityId: 'AppProfileDefinitionGrant', - }, - AppMembership: { - appMembershipProfilesByMembershipId: 'AppMembershipProfile', - appProfileGrantsByMembershipId: 'AppProfileGrant', - }, - AppProfile: { - appInvitesByProfileId: 'AppInvite', - appMembershipProfilesByProfileId: 'AppMembershipProfile', - appMembershipsByProfileId: 'AppMembership', - appProfileCapabilitiesByProfileId: 'AppProfileCapability', - appProfileDefinitionGrantsByProfileId: 'AppProfileDefinitionGrant', - appProfileGrantsByProfileId: 'AppProfileGrant', - }, - OrgCapability: { - orgCapabilityDefaultCapabilitiesByCapabilityId: 'OrgCapabilityDefaultCapability', - orgCapabilityDefaultGrantsByCapabilityId: 'OrgCapabilityDefaultGrant', - orgProfileCapabilitiesByCapabilityId: 'OrgProfileCapability', - orgProfileDefinitionGrantsByCapabilityId: 'OrgProfileDefinitionGrant', - }, - OrgMembership: { - orgMembershipProfilesByMembershipId: 'OrgMembershipProfile', - orgProfileGrantsByMembershipId: 'OrgProfileGrant', - }, - OrgProfile: { - orgInvitesByProfileId: 'OrgInvite', - orgMembershipProfilesByProfileId: 'OrgMembershipProfile', - orgMembershipsByProfileId: 'OrgMembership', - orgProfileCapabilitiesByProfileId: 'OrgProfileCapability', - orgProfileDefinitionGrantsByProfileId: 'OrgProfileDefinitionGrant', - orgProfileGrantsByProfileId: 'OrgProfileGrant', - }, -} as Record>; +export const connectionFieldsMap = {} as Record>; // ============ Custom Input Types (from schema) ============ export interface ProvisionBucketInput { /** The logical bucket key (e.g., "public", "private") */ @@ -4735,33 +2969,6 @@ export interface SubmitOrgInviteCodeInput { clientMutationId?: string; token?: string; } -/** A filter to be used against many `AppCapabilityDefaultGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface AppCapabilityToManyAppCapabilityDefaultGrantFilter { - /** Filters to entities where every related entity matches. */ - every?: AppCapabilityDefaultGrantFilter; - /** Filters to entities where no related entity matches. */ - none?: AppCapabilityDefaultGrantFilter; - /** Filters to entities where at least one related entity matches. */ - some?: AppCapabilityDefaultGrantFilter; -} -/** A filter to be used against many `AppProfileCapability` object types. All fields are combined with a logical ‘and.’ */ -export interface AppCapabilityToManyAppProfileCapabilityFilter { - /** Filters to entities where every related entity matches. */ - every?: AppProfileCapabilityFilter; - /** Filters to entities where no related entity matches. */ - none?: AppProfileCapabilityFilter; - /** Filters to entities where at least one related entity matches. */ - some?: AppProfileCapabilityFilter; -} -/** A filter to be used against many `AppProfileDefinitionGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface AppCapabilityToManyAppProfileDefinitionGrantFilter { - /** Filters to entities where every related entity matches. */ - every?: AppProfileDefinitionGrantFilter; - /** Filters to entities where no related entity matches. */ - none?: AppProfileDefinitionGrantFilter; - /** Filters to entities where at least one related entity matches. */ - some?: AppProfileDefinitionGrantFilter; -} /** 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. */ @@ -4839,114 +3046,6 @@ export interface ConstructiveInternalTypeEmailFilter { /** Starts with the specified string (case-insensitive). */ startsWithInsensitive?: ConstructiveInternalTypeEmail; } -/** A filter to be used against many `AppMembershipProfile` object types. All fields are combined with a logical ‘and.’ */ -export interface AppMembershipToManyAppMembershipProfileFilter { - /** Filters to entities where every related entity matches. */ - every?: AppMembershipProfileFilter; - /** Filters to entities where no related entity matches. */ - none?: AppMembershipProfileFilter; - /** Filters to entities where at least one related entity matches. */ - some?: AppMembershipProfileFilter; -} -/** A filter to be used against many `AppProfileGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface AppMembershipToManyAppProfileGrantFilter { - /** Filters to entities where every related entity matches. */ - every?: AppProfileGrantFilter; - /** Filters to entities where no related entity matches. */ - none?: AppProfileGrantFilter; - /** Filters to entities where at least one related entity matches. */ - some?: AppProfileGrantFilter; -} -/** A filter to be used against many `AppInvite` object types. All fields are combined with a logical ‘and.’ */ -export interface AppProfileToManyAppInviteFilter { - /** Filters to entities where every related entity matches. */ - every?: AppInviteFilter; - /** Filters to entities where no related entity matches. */ - none?: AppInviteFilter; - /** Filters to entities where at least one related entity matches. */ - some?: AppInviteFilter; -} -/** A filter to be used against many `AppMembershipProfile` object types. All fields are combined with a logical ‘and.’ */ -export interface AppProfileToManyAppMembershipProfileFilter { - /** Filters to entities where every related entity matches. */ - every?: AppMembershipProfileFilter; - /** Filters to entities where no related entity matches. */ - none?: AppMembershipProfileFilter; - /** Filters to entities where at least one related entity matches. */ - some?: AppMembershipProfileFilter; -} -/** A filter to be used against many `AppMembership` object types. All fields are combined with a logical ‘and.’ */ -export interface AppProfileToManyAppMembershipFilter { - /** Filters to entities where every related entity matches. */ - every?: AppMembershipFilter; - /** Filters to entities where no related entity matches. */ - none?: AppMembershipFilter; - /** Filters to entities where at least one related entity matches. */ - some?: AppMembershipFilter; -} -/** A filter to be used against many `AppProfileCapability` object types. All fields are combined with a logical ‘and.’ */ -export interface AppProfileToManyAppProfileCapabilityFilter { - /** Filters to entities where every related entity matches. */ - every?: AppProfileCapabilityFilter; - /** Filters to entities where no related entity matches. */ - none?: AppProfileCapabilityFilter; - /** Filters to entities where at least one related entity matches. */ - some?: AppProfileCapabilityFilter; -} -/** A filter to be used against many `AppProfileDefinitionGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface AppProfileToManyAppProfileDefinitionGrantFilter { - /** Filters to entities where every related entity matches. */ - every?: AppProfileDefinitionGrantFilter; - /** Filters to entities where no related entity matches. */ - none?: AppProfileDefinitionGrantFilter; - /** Filters to entities where at least one related entity matches. */ - some?: AppProfileDefinitionGrantFilter; -} -/** A filter to be used against many `AppProfileGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface AppProfileToManyAppProfileGrantFilter { - /** Filters to entities where every related entity matches. */ - every?: AppProfileGrantFilter; - /** Filters to entities where no related entity matches. */ - none?: AppProfileGrantFilter; - /** Filters to entities where at least one related entity matches. */ - some?: AppProfileGrantFilter; -} -/** A filter to be used against many `OrgCapabilityDefaultCapability` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgCapabilityToManyOrgCapabilityDefaultCapabilityFilter { - /** Filters to entities where every related entity matches. */ - every?: OrgCapabilityDefaultCapabilityFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgCapabilityDefaultCapabilityFilter; - /** Filters to entities where at least one related entity matches. */ - some?: OrgCapabilityDefaultCapabilityFilter; -} -/** A filter to be used against many `OrgCapabilityDefaultGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgCapabilityToManyOrgCapabilityDefaultGrantFilter { - /** Filters to entities where every related entity matches. */ - every?: OrgCapabilityDefaultGrantFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgCapabilityDefaultGrantFilter; - /** Filters to entities where at least one related entity matches. */ - some?: OrgCapabilityDefaultGrantFilter; -} -/** A filter to be used against many `OrgProfileCapability` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgCapabilityToManyOrgProfileCapabilityFilter { - /** Filters to entities where every related entity matches. */ - every?: OrgProfileCapabilityFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgProfileCapabilityFilter; - /** Filters to entities where at least one related entity matches. */ - some?: OrgProfileCapabilityFilter; -} -/** A filter to be used against many `OrgProfileDefinitionGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgCapabilityToManyOrgProfileDefinitionGrantFilter { - /** Filters to entities where every related entity matches. */ - every?: OrgProfileDefinitionGrantFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgProfileDefinitionGrantFilter; - /** Filters to entities where at least one related entity matches. */ - some?: OrgProfileDefinitionGrantFilter; -} /** A filter to be used against ConstructiveInternalTypeImage fields. All fields are combined with a logical ‘and.’ */ export interface ConstructiveInternalTypeImageFilter { /** Contained by the specified JSON. */ @@ -4982,78 +3081,6 @@ export interface ConstructiveInternalTypeImageFilter { /** Not included in the specified list. */ notIn?: ConstructiveInternalTypeImage[]; } -/** A filter to be used against many `OrgMembershipProfile` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgMembershipToManyOrgMembershipProfileFilter { - /** Filters to entities where every related entity matches. */ - every?: OrgMembershipProfileFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgMembershipProfileFilter; - /** Filters to entities where at least one related entity matches. */ - some?: OrgMembershipProfileFilter; -} -/** A filter to be used against many `OrgProfileGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgMembershipToManyOrgProfileGrantFilter { - /** Filters to entities where every related entity matches. */ - every?: OrgProfileGrantFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgProfileGrantFilter; - /** Filters to entities where at least one related entity matches. */ - some?: OrgProfileGrantFilter; -} -/** A filter to be used against many `OrgInvite` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgProfileToManyOrgInviteFilter { - /** Filters to entities where every related entity matches. */ - every?: OrgInviteFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgInviteFilter; - /** Filters to entities where at least one related entity matches. */ - some?: OrgInviteFilter; -} -/** A filter to be used against many `OrgMembershipProfile` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgProfileToManyOrgMembershipProfileFilter { - /** Filters to entities where every related entity matches. */ - every?: OrgMembershipProfileFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgMembershipProfileFilter; - /** Filters to entities where at least one related entity matches. */ - some?: OrgMembershipProfileFilter; -} -/** A filter to be used against many `OrgMembership` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgProfileToManyOrgMembershipFilter { - /** Filters to entities where every related entity matches. */ - every?: OrgMembershipFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgMembershipFilter; - /** Filters to entities where at least one related entity matches. */ - some?: OrgMembershipFilter; -} -/** A filter to be used against many `OrgProfileCapability` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgProfileToManyOrgProfileCapabilityFilter { - /** Filters to entities where every related entity matches. */ - every?: OrgProfileCapabilityFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgProfileCapabilityFilter; - /** Filters to entities where at least one related entity matches. */ - some?: OrgProfileCapabilityFilter; -} -/** A filter to be used against many `OrgProfileDefinitionGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgProfileToManyOrgProfileDefinitionGrantFilter { - /** Filters to entities where every related entity matches. */ - every?: OrgProfileDefinitionGrantFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgProfileDefinitionGrantFilter; - /** Filters to entities where at least one related entity matches. */ - some?: OrgProfileDefinitionGrantFilter; -} -/** A filter to be used against many `OrgProfileGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgProfileToManyOrgProfileGrantFilter { - /** Filters to entities where every related entity matches. */ - every?: OrgProfileGrantFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgProfileGrantFilter; - /** Filters to entities where at least one related entity matches. */ - some?: OrgProfileGrantFilter; -} /** An input for mutations affecting `AppAdminGrant` */ export interface AppAdminGrantInput { /** The member receiving or losing the admin grant; NULL if user was deleted */ @@ -5065,20 +3092,6 @@ export interface AppAdminGrantInput { isGrant?: boolean; updatedAt?: string; } -/** An input for mutations affecting `AppCapability` */ -export interface AppCapabilityInput { - /** Position of this capability in the bitmask (1-indexed), must be unique per capability set */ - bitnum?: number; - /** Pre-computed bitmask with only this capability bit set, used for bitwise OR/AND operations */ - bitstr?: string; - /** Human-readable description of what this capability allows */ - description?: string; - id?: string; - /** Kind of catalog entry: capability (capability) or level (achievement level) */ - kind?: string; - /** Human-readable capability name (e.g. read, write, manage) */ - name?: string; -} /** An input for mutations affecting `AppCapabilityDefaultCapability` */ export interface AppCapabilityDefaultCapabilityInput { /** References the capability included in the defaults bundle */ @@ -5087,12 +3100,6 @@ export interface AppCapabilityDefaultCapabilityInput { id?: string; updatedAt?: string; } -/** An input for mutations affecting `AppCapabilityDefault` */ -export interface AppCapabilityDefaultInput { - /** Default capability bitmask applied to new members */ - capabilities?: string; - id?: string; -} /** An input for mutations affecting `AppCapabilityDefaultGrant` */ export interface AppCapabilityDefaultGrantInput { /** References the capability being added to or removed from defaults */ @@ -5167,6 +3174,7 @@ export interface AppMembershipInput { capabilities?: string; createdAt?: string; createdBy?: string; + createdByPrincipal?: string; /** Bitmask of capabilities directly granted to this member (not from profiles) */ granted?: string; id?: string; @@ -5187,11 +3195,13 @@ export interface AppMembershipInput { profileId?: string; updatedAt?: string; updatedBy?: string; + updatedByPrincipal?: string; } /** An input for mutations affecting `AppMembershipDefault` */ export interface AppMembershipDefaultInput { createdAt?: string; createdBy?: string; + createdByPrincipal?: string; id?: string; /** Whether new members are automatically approved upon joining */ isApproved?: boolean; @@ -5199,18 +3209,7 @@ export interface AppMembershipDefaultInput { isVerified?: boolean; updatedAt?: string; updatedBy?: string; -} -/** An input for mutations affecting `AppMembershipProfile` */ -export interface AppMembershipProfileInput { - /** References the user holding the profile, denormalised from the membership */ - actorId: string; - createdAt?: string; - id?: string; - /** References the membership holding the profile */ - membershipId: string; - /** References the held profile */ - profileId: string; - updatedAt?: string; + updatedByPrincipal?: string; } /** An input for mutations affecting `AppOwnerGrant` */ export interface AppOwnerGrantInput { @@ -5223,76 +3222,6 @@ export interface AppOwnerGrantInput { isGrant?: boolean; updatedAt?: string; } -/** An input for mutations affecting `AppProfileCapability` */ -export interface AppProfileCapabilityInput { - /** References the capability included in this profile */ - capabilityId: string; - createdAt?: string; - id?: string; - /** References the profile this capability belongs to */ - profileId: string; - updatedAt?: string; -} -/** An input for mutations affecting `AppProfile` */ -export interface AppProfileInput { - /** Pre-computed capability bitmask aggregating all capabilities in this profile */ - capabilities?: string; - createdAt?: string; - /** Human-readable description of this profile and its intended use */ - description?: string; - id?: string; - /** The default profile is automatically assigned to new members when they join */ - isDefault?: boolean; - /** System profiles are built-in and cannot be deleted or renamed by users */ - isSystem?: boolean; - /** Display name for this profile (e.g. Admin, Editor, Viewer) */ - name: string; - /** URL-safe identifier for this profile, used in API references */ - slug: string; - updatedAt?: string; -} -/** An input for mutations affecting `AppProfileDefinitionGrant` */ -export interface AppProfileDefinitionGrantInput { - /** References the capability that was added to or removed from the profile; NULL if capability was deleted */ - capabilityId?: string; - createdAt?: string; - grantorId?: string; - id?: string; - /** True to add the capability to the profile, false to remove it */ - isGrant?: boolean; - /** References the profile whose definition was modified; NULL if profile was deleted */ - profileId?: string; - updatedAt?: string; -} -/** An input for mutations affecting `AppProfileGrant` */ -export interface AppProfileGrantInput { - createdAt?: string; - grantorId?: string; - id?: string; - /** True to assign the profile, false to revoke it */ - isGrant?: boolean; - /** References the membership that received or lost this profile; NULL if membership was deleted */ - membershipId?: string; - /** References the profile being assigned; NULL indicates the profile was removed */ - profileId?: string; - updatedAt?: string; -} -/** An input for mutations affecting `AppProfileTemplate` */ -export interface AppProfileTemplateInput { - /** Pre-computed capability bitmask for the seeded profile */ - capabilities?: string; - createdAt?: string; - /** Human-readable description of this template profile */ - description?: string; - id?: string; - /** Whether the seeded profile should be the default for new members */ - isDefault?: boolean; - /** Display name for the template profile (e.g. Admin, Editor, Viewer) */ - name: string; - /** URL-safe identifier for the template profile */ - slug: string; - updatedAt?: string; -} /** An input for mutations affecting `MembershipType` */ export interface MembershipTypeInput { /** Description of what this membership type represents */ @@ -5321,20 +3250,6 @@ export interface OrgAdminGrantInput { isGrant?: boolean; updatedAt?: string; } -/** An input for mutations affecting `OrgCapability` */ -export interface OrgCapabilityInput { - /** Position of this capability in the bitmask (1-indexed), must be unique per capability set */ - bitnum?: number; - /** Pre-computed bitmask with only this capability bit set, used for bitwise OR/AND operations */ - bitstr?: string; - /** Human-readable description of what this capability allows */ - description?: string; - id?: string; - /** Kind of catalog entry: capability (capability) or level (achievement level) */ - kind?: string; - /** Human-readable capability name (e.g. read, write, manage) */ - name?: string; -} /** An input for mutations affecting `OrgCapabilityDefaultCapability` */ export interface OrgCapabilityDefaultCapabilityInput { /** References the capability included in the defaults bundle */ @@ -5345,14 +3260,6 @@ export interface OrgCapabilityDefaultCapabilityInput { id?: string; updatedAt?: string; } -/** An input for mutations affecting `OrgCapabilityDefault` */ -export interface OrgCapabilityDefaultInput { - /** Default capability bitmask applied to new members */ - capabilities?: string; - /** References the entity these default capabilities apply to */ - entityId: string; - id?: string; -} /** An input for mutations affecting `OrgCapabilityDefaultGrant` */ export interface OrgCapabilityDefaultGrantInput { /** References the capability being added to or removed from defaults */ @@ -5504,1154 +3411,106 @@ export interface OrgMembershipInput { /** 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 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 */ - 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?: string; - updatedAt?: string; - updatedBy?: string; -} -/** An input for mutations affecting `OrgMembershipDefault` */ -export interface OrgMembershipDefaultInput { - createdAt?: string; - createdBy?: string; - /** References the entity these membership defaults apply to */ - entityId: string; - id?: string; - /** Whether new members are automatically approved upon joining */ - isApproved?: boolean; - updatedAt?: string; - updatedBy?: string; -} -/** An input for mutations affecting `OrgMembershipProfile` */ -export interface OrgMembershipProfileInput { - /** References the user holding the profile, denormalised from the membership */ - actorId: string; - createdAt?: string; - id?: string; - /** References the membership holding the profile */ - membershipId: string; - /** References the held profile */ - profileId: string; - updatedAt?: string; -} -/** An input for mutations affecting `OrgMembershipSetting` */ -export interface 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?: string; - createdBy?: string; - /** When a member is deleted, whether to cascade-remove their descendant-entity memberships */ - deleteMemberCascadeChildren?: boolean; - /** References the entity these settings apply to */ - entityId: string; - id?: string; - /** 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?: string; - updatedBy?: string; -} -/** An input for mutations affecting `OrgOwnerGrant` */ -export interface OrgOwnerGrantInput { - /** The member receiving or losing the ownership grant; NULL if user was deleted */ - actorId?: string; - createdAt?: string; - /** The entity (org or group) this ownership grant applies to */ - entityId: string; - grantorId?: string; - id?: string; - /** True to grant ownership, false to revoke ownership */ - isGrant?: boolean; - updatedAt?: string; -} -/** An input for mutations affecting `OrgProfileCapability` */ -export interface OrgProfileCapabilityInput { - /** References the capability included in this profile */ - capabilityId: string; - createdAt?: string; - id?: string; - /** References the profile this capability belongs to */ - profileId: string; - updatedAt?: string; -} -/** An input for mutations affecting `OrgProfile` */ -export interface OrgProfileInput { - /** Pre-computed capability bitmask aggregating all capabilities in this profile */ - capabilities?: string; - createdAt?: string; - /** Human-readable description of this profile and its intended use */ - description?: string; - /** Scopes this profile to a specific entity; NULL means it is a global profile */ - entityId?: string; - id?: string; - /** The default profile is automatically assigned to new members when they join */ - isDefault?: boolean; - /** System profiles are built-in and cannot be deleted or renamed by users */ - isSystem?: boolean; - /** Display name for this profile (e.g. Admin, Editor, Viewer) */ - name: string; - /** URL-safe identifier for this profile, used in API references */ - slug: string; - updatedAt?: string; -} -/** An input for mutations affecting `OrgProfileDefinitionGrant` */ -export interface OrgProfileDefinitionGrantInput { - /** References the capability that was added to or removed from the profile; NULL if capability was deleted */ - capabilityId?: string; - createdAt?: string; - grantorId?: string; - id?: string; - /** True to add the capability to the profile, false to remove it */ - isGrant?: boolean; - /** References the profile whose definition was modified; NULL if profile was deleted */ - profileId?: string; - updatedAt?: string; -} -/** An input for mutations affecting `OrgProfileGrant` */ -export interface OrgProfileGrantInput { - createdAt?: string; - /** The entity (org or group) scope for this profile grant */ - entityId?: string; - grantorId?: string; - id?: string; - /** True to assign the profile, false to revoke it */ - isGrant?: boolean; - /** References the membership that received or lost this profile; NULL if membership was deleted */ - membershipId?: string; - /** References the profile being assigned; NULL indicates the profile was removed */ - profileId?: string; - updatedAt?: string; -} -/** An input for mutations affecting `OrgProfileTemplate` */ -export interface OrgProfileTemplateInput { - /** Pre-computed capability bitmask for the seeded profile */ - capabilities?: string; - createdAt?: string; - /** Human-readable description of this template profile */ - description?: string; - id?: string; - /** Whether the seeded profile should be the default for new members */ - isDefault?: boolean; - /** Display name for the template profile (e.g. Admin, Editor, Viewer) */ - name: string; - /** URL-safe identifier for the template profile */ - slug: 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 `capability` relation. */ - capability?: AppCapabilityFilter; - /** 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; -} -/** A filter to be used against `AppProfileCapability` object types. All fields are combined with a logical ‘and.’ */ -export interface AppProfileCapabilityFilter { - /** Checks for all expressions in this list. */ - and?: AppProfileCapabilityFilter[]; - /** Filter by the object’s `capability` relation. */ - capability?: AppCapabilityFilter; - /** 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?: AppProfileCapabilityFilter; - /** Checks for any expressions in this list. */ - or?: AppProfileCapabilityFilter[]; - /** Filter by the object’s `profile` relation. */ - profile?: AppProfileFilter; - /** Filter by the object’s `profileId` field. */ - profileId?: UUIDFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -/** A filter to be used against `AppProfileDefinitionGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface AppProfileDefinitionGrantFilter { - /** Checks for all expressions in this list. */ - and?: AppProfileDefinitionGrantFilter[]; - /** Filter by the object’s `capability` relation. */ - capability?: AppCapabilityFilter; - /** A related `capability` exists. */ - capabilityExists?: boolean; - /** 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?: AppProfileDefinitionGrantFilter; - /** Checks for any expressions in this list. */ - or?: AppProfileDefinitionGrantFilter[]; - /** Filter by the object’s `profile` relation. */ - profile?: AppProfileFilter; - /** A related `profile` exists. */ - profileExists?: boolean; - /** Filter by the object’s `profileId` field. */ - profileId?: UUIDFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -/** A filter to be used against `AppMembershipProfile` object types. All fields are combined with a logical ‘and.’ */ -export interface AppMembershipProfileFilter { - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: AppMembershipProfileFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `membership` relation. */ - membership?: AppMembershipFilter; - /** Filter by the object’s `membershipId` field. */ - membershipId?: UUIDFilter; - /** Negates the expression. */ - not?: AppMembershipProfileFilter; - /** Checks for any expressions in this list. */ - or?: AppMembershipProfileFilter[]; - /** Filter by the object’s `profile` relation. */ - profile?: AppProfileFilter; - /** Filter by the object’s `profileId` field. */ - profileId?: UUIDFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -/** A filter to be used against `AppProfileGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface AppProfileGrantFilter { - /** Checks for all expressions in this list. */ - and?: AppProfileGrantFilter[]; - /** 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; - /** Filter by the object’s `membership` relation. */ - membership?: AppMembershipFilter; - /** A related `membership` exists. */ - membershipExists?: boolean; - /** Filter by the object’s `membershipId` field. */ - membershipId?: UUIDFilter; - /** Negates the expression. */ - not?: AppProfileGrantFilter; - /** Checks for any expressions in this list. */ - or?: AppProfileGrantFilter[]; - /** Filter by the object’s `profile` relation. */ - profile?: AppProfileFilter; - /** A related `profile` exists. */ - profileExists?: boolean; - /** Filter by the object’s `profileId` field. */ - profileId?: UUIDFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -/** A filter to be used against `AppInvite` object types. All fields are combined with a logical ‘and.’ */ -export interface AppInviteFilter { - /** Checks for all expressions in this list. */ - and?: AppInviteFilter[]; - /** Filter by the object’s `channel` field. */ - channel?: StringFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `email` field. */ - email?: ConstructiveInternalTypeEmailFilter; - /** 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 `multiple` field. */ - multiple?: BooleanFilter; - /** Negates the expression. */ - not?: AppInviteFilter; - /** Checks for any expressions in this list. */ - or?: AppInviteFilter[]; - /** Filter by the object’s `phone` field. */ - phone?: StringFilter; - /** Filter by the object’s `profile` relation. */ - profile?: AppProfileFilter; - /** A related `profile` exists. */ - profileExists?: boolean; - /** Filter by the object’s `profileId` field. */ - profileId?: UUIDFilter; - /** Filter by the object’s `senderId` field. */ - senderId?: UUIDFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -/** A filter to be used against `AppMembership` object types. All fields are combined with a logical ‘and.’ */ -export interface AppMembershipFilter { - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: AppMembershipFilter[]; - /** Filter by the object’s `appMembershipProfilesByMembershipId` relation. */ - appMembershipProfilesByMembershipId?: AppMembershipToManyAppMembershipProfileFilter; - /** `appMembershipProfilesByMembershipId` exist. */ - appMembershipProfilesByMembershipIdExist?: boolean; - /** Filter by the object’s `appProfileGrantsByMembershipId` relation. */ - appProfileGrantsByMembershipId?: AppMembershipToManyAppProfileGrantFilter; - /** `appProfileGrantsByMembershipId` exist. */ - appProfileGrantsByMembershipIdExist?: boolean; - /** 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 `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 `isOwner` field. */ - isOwner?: BooleanFilter; - /** Filter by the object’s `isVerified` field. */ - isVerified?: BooleanFilter; - /** Negates the expression. */ - not?: AppMembershipFilter; - /** Checks for any expressions in this list. */ - or?: AppMembershipFilter[]; - /** Filter by the object’s `profile` relation. */ - profile?: AppProfileFilter; - /** A related `profile` exists. */ - profileExists?: 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; -} -/** 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 `capability` relation. */ - capability?: OrgCapabilityFilter; - /** 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; -} -/** 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 `capability` relation. */ - capability?: OrgCapabilityFilter; - /** 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; -} -/** A filter to be used against `OrgProfileCapability` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgProfileCapabilityFilter { - /** Checks for all expressions in this list. */ - and?: OrgProfileCapabilityFilter[]; - /** Filter by the object’s `capability` relation. */ - capability?: OrgCapabilityFilter; - /** 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?: OrgProfileCapabilityFilter; - /** Checks for any expressions in this list. */ - or?: OrgProfileCapabilityFilter[]; - /** Filter by the object’s `profile` relation. */ - profile?: OrgProfileFilter; - /** Filter by the object’s `profileId` field. */ - profileId?: UUIDFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -/** A filter to be used against `OrgProfileDefinitionGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgProfileDefinitionGrantFilter { - /** Checks for all expressions in this list. */ - and?: OrgProfileDefinitionGrantFilter[]; - /** Filter by the object’s `capability` relation. */ - capability?: OrgCapabilityFilter; - /** A related `capability` exists. */ - capabilityExists?: boolean; - /** 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?: OrgProfileDefinitionGrantFilter; - /** Checks for any expressions in this list. */ - or?: OrgProfileDefinitionGrantFilter[]; - /** Filter by the object’s `profile` relation. */ - profile?: OrgProfileFilter; - /** A related `profile` exists. */ - profileExists?: boolean; - /** Filter by the object’s `profileId` field. */ - profileId?: UUIDFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -/** A filter to be used against `OrgMembershipProfile` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgMembershipProfileFilter { - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: OrgMembershipProfileFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `membership` relation. */ - membership?: OrgMembershipFilter; - /** Filter by the object’s `membershipId` field. */ - membershipId?: UUIDFilter; - /** Negates the expression. */ - not?: OrgMembershipProfileFilter; - /** Checks for any expressions in this list. */ - or?: OrgMembershipProfileFilter[]; - /** Filter by the object’s `profile` relation. */ - profile?: OrgProfileFilter; - /** Filter by the object’s `profileId` field. */ - profileId?: UUIDFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -/** A filter to be used against `OrgProfileGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgProfileGrantFilter { - /** Checks for all expressions in this list. */ - and?: OrgProfileGrantFilter[]; - /** 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; - /** Filter by the object’s `membership` relation. */ - membership?: OrgMembershipFilter; - /** A related `membership` exists. */ - membershipExists?: boolean; - /** Filter by the object’s `membershipId` field. */ - membershipId?: UUIDFilter; - /** Negates the expression. */ - not?: OrgProfileGrantFilter; - /** Checks for any expressions in this list. */ - or?: OrgProfileGrantFilter[]; - /** Filter by the object’s `profile` relation. */ - profile?: OrgProfileFilter; - /** A related `profile` exists. */ - profileExists?: boolean; - /** Filter by the object’s `profileId` field. */ - profileId?: UUIDFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -/** A filter to be used against `OrgInvite` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgInviteFilter { - /** Checks for all expressions in this list. */ - and?: OrgInviteFilter[]; - /** Filter by the object’s `channel` field. */ - channel?: StringFilter; - /** 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; - /** Checks for any expressions in this list. */ - or?: OrgInviteFilter[]; - /** Filter by the object’s `phone` field. */ - phone?: StringFilter; - /** Filter by the object’s `profile` relation. */ - profile?: OrgProfileFilter; - /** A related `profile` exists. */ - profileExists?: boolean; - /** 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; -} -/** A filter to be used against `OrgMembership` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgMembershipFilter { - /** Filter by the object’s `actorId` field. */ - 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. */ - createdBy?: UUIDFilter; - /** 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 `isReadOnly` field. */ - isReadOnly?: BooleanFilter; - /** Negates the expression. */ - not?: OrgMembershipFilter; - /** Checks for any expressions in this list. */ - or?: OrgMembershipFilter[]; - /** Filter by the object’s `orgMemberProfileByMembershipId` relation. */ - orgMemberProfileByMembershipId?: OrgMemberProfileFilter; - /** A related `orgMemberProfileByMembershipId` exists. */ - orgMemberProfileByMembershipIdExists?: boolean; - /** Filter by the object’s `orgMembershipProfilesByMembershipId` relation. */ - orgMembershipProfilesByMembershipId?: OrgMembershipToManyOrgMembershipProfileFilter; - /** `orgMembershipProfilesByMembershipId` exist. */ - orgMembershipProfilesByMembershipIdExist?: boolean; - /** Filter by the object’s `orgProfileGrantsByMembershipId` relation. */ - orgProfileGrantsByMembershipId?: OrgMembershipToManyOrgProfileGrantFilter; - /** `orgProfileGrantsByMembershipId` exist. */ - orgProfileGrantsByMembershipIdExist?: boolean; - /** Filter by the object’s `profile` relation. */ - profile?: OrgProfileFilter; - /** A related `profile` exists. */ - profileExists?: 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; -} -/** A filter to be used against `AppCapability` object types. All fields are combined with a logical ‘and.’ */ -export interface AppCapabilityFilter { - /** Checks for all expressions in this list. */ - and?: AppCapabilityFilter[]; - /** Filter by the object’s `appCapabilityDefaultCapabilityByCapabilityId` relation. */ - appCapabilityDefaultCapabilityByCapabilityId?: AppCapabilityDefaultCapabilityFilter; - /** A related `appCapabilityDefaultCapabilityByCapabilityId` exists. */ - appCapabilityDefaultCapabilityByCapabilityIdExists?: boolean; - /** Filter by the object’s `appCapabilityDefaultGrantsByCapabilityId` relation. */ - appCapabilityDefaultGrantsByCapabilityId?: AppCapabilityToManyAppCapabilityDefaultGrantFilter; - /** `appCapabilityDefaultGrantsByCapabilityId` exist. */ - appCapabilityDefaultGrantsByCapabilityIdExist?: boolean; - /** Filter by the object’s `appProfileCapabilitiesByCapabilityId` relation. */ - appProfileCapabilitiesByCapabilityId?: AppCapabilityToManyAppProfileCapabilityFilter; - /** `appProfileCapabilitiesByCapabilityId` exist. */ - appProfileCapabilitiesByCapabilityIdExist?: boolean; - /** Filter by the object’s `appProfileDefinitionGrantsByCapabilityId` relation. */ - appProfileDefinitionGrantsByCapabilityId?: AppCapabilityToManyAppProfileDefinitionGrantFilter; - /** `appProfileDefinitionGrantsByCapabilityId` exist. */ - appProfileDefinitionGrantsByCapabilityIdExist?: 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 `kind` field. */ - kind?: StringFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Negates the expression. */ - not?: AppCapabilityFilter; - /** Checks for any expressions in this list. */ - or?: AppCapabilityFilter[]; -} -/** 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 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 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 `AppProfile` object types. All fields are combined with a logical ‘and.’ */ -export interface AppProfileFilter { - /** Checks for all expressions in this list. */ - and?: AppProfileFilter[]; - /** Filter by the object’s `appInvitesByProfileId` relation. */ - appInvitesByProfileId?: AppProfileToManyAppInviteFilter; - /** `appInvitesByProfileId` exist. */ - appInvitesByProfileIdExist?: boolean; - /** Filter by the object’s `appMembershipProfilesByProfileId` relation. */ - appMembershipProfilesByProfileId?: AppProfileToManyAppMembershipProfileFilter; - /** `appMembershipProfilesByProfileId` exist. */ - appMembershipProfilesByProfileIdExist?: boolean; - /** Filter by the object’s `appMembershipsByProfileId` relation. */ - appMembershipsByProfileId?: AppProfileToManyAppMembershipFilter; - /** `appMembershipsByProfileId` exist. */ - appMembershipsByProfileIdExist?: boolean; - /** Filter by the object’s `appProfileCapabilitiesByProfileId` relation. */ - appProfileCapabilitiesByProfileId?: AppProfileToManyAppProfileCapabilityFilter; - /** `appProfileCapabilitiesByProfileId` exist. */ - appProfileCapabilitiesByProfileIdExist?: boolean; - /** Filter by the object’s `appProfileDefinitionGrantsByProfileId` relation. */ - appProfileDefinitionGrantsByProfileId?: AppProfileToManyAppProfileDefinitionGrantFilter; - /** `appProfileDefinitionGrantsByProfileId` exist. */ - appProfileDefinitionGrantsByProfileIdExist?: boolean; - /** Filter by the object’s `appProfileGrantsByProfileId` relation. */ - appProfileGrantsByProfileId?: AppProfileToManyAppProfileGrantFilter; - /** `appProfileGrantsByProfileId` exist. */ - appProfileGrantsByProfileIdExist?: boolean; - /** Filter by the object’s `capabilities` field. */ - capabilities?: BitStringFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isDefault` field. */ - isDefault?: BooleanFilter; - /** Filter by the object’s `isSystem` field. */ - isSystem?: BooleanFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Negates the expression. */ - not?: AppProfileFilter; - /** Checks for any expressions in this list. */ - or?: AppProfileFilter[]; - /** Filter by the object’s `slug` field. */ - slug?: StringFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -/** 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 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 `OrgCapability` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgCapabilityFilter { - /** Checks for all expressions in this list. */ - and?: OrgCapabilityFilter[]; - /** 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 `kind` field. */ - kind?: StringFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Negates the expression. */ - not?: OrgCapabilityFilter; - /** Checks for any expressions in this list. */ - or?: OrgCapabilityFilter[]; - /** Filter by the object’s `orgCapabilityDefaultCapabilitiesByCapabilityId` relation. */ - orgCapabilityDefaultCapabilitiesByCapabilityId?: OrgCapabilityToManyOrgCapabilityDefaultCapabilityFilter; - /** `orgCapabilityDefaultCapabilitiesByCapabilityId` exist. */ - orgCapabilityDefaultCapabilitiesByCapabilityIdExist?: boolean; - /** Filter by the object’s `orgCapabilityDefaultGrantsByCapabilityId` relation. */ - orgCapabilityDefaultGrantsByCapabilityId?: OrgCapabilityToManyOrgCapabilityDefaultGrantFilter; - /** `orgCapabilityDefaultGrantsByCapabilityId` exist. */ - orgCapabilityDefaultGrantsByCapabilityIdExist?: boolean; - /** Filter by the object’s `orgProfileCapabilitiesByCapabilityId` relation. */ - orgProfileCapabilitiesByCapabilityId?: OrgCapabilityToManyOrgProfileCapabilityFilter; - /** `orgProfileCapabilitiesByCapabilityId` exist. */ - orgProfileCapabilitiesByCapabilityIdExist?: boolean; - /** Filter by the object’s `orgProfileDefinitionGrantsByCapabilityId` relation. */ - orgProfileDefinitionGrantsByCapabilityId?: OrgCapabilityToManyOrgProfileDefinitionGrantFilter; - /** `orgProfileDefinitionGrantsByCapabilityId` exist. */ - orgProfileDefinitionGrantsByCapabilityIdExist?: boolean; -} -/** A filter to be used against `OrgProfile` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgProfileFilter { - /** Checks for all expressions in this list. */ - and?: OrgProfileFilter[]; - /** Filter by the object’s `capabilities` field. */ - capabilities?: BitStringFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isDefault` field. */ - isDefault?: BooleanFilter; - /** Filter by the object’s `isSystem` field. */ - isSystem?: BooleanFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Negates the expression. */ - not?: OrgProfileFilter; - /** Checks for any expressions in this list. */ - or?: OrgProfileFilter[]; - /** Filter by the object’s `orgInvitesByProfileId` relation. */ - orgInvitesByProfileId?: OrgProfileToManyOrgInviteFilter; - /** `orgInvitesByProfileId` exist. */ - orgInvitesByProfileIdExist?: boolean; - /** Filter by the object’s `orgMembershipProfilesByProfileId` relation. */ - orgMembershipProfilesByProfileId?: OrgProfileToManyOrgMembershipProfileFilter; - /** `orgMembershipProfilesByProfileId` exist. */ - orgMembershipProfilesByProfileIdExist?: boolean; - /** Filter by the object’s `orgMembershipsByProfileId` relation. */ - orgMembershipsByProfileId?: OrgProfileToManyOrgMembershipFilter; - /** `orgMembershipsByProfileId` exist. */ - orgMembershipsByProfileIdExist?: boolean; - /** Filter by the object’s `orgProfileCapabilitiesByProfileId` relation. */ - orgProfileCapabilitiesByProfileId?: OrgProfileToManyOrgProfileCapabilityFilter; - /** `orgProfileCapabilitiesByProfileId` exist. */ - orgProfileCapabilitiesByProfileIdExist?: boolean; - /** Filter by the object’s `orgProfileDefinitionGrantsByProfileId` relation. */ - orgProfileDefinitionGrantsByProfileId?: OrgProfileToManyOrgProfileDefinitionGrantFilter; - /** `orgProfileDefinitionGrantsByProfileId` exist. */ - orgProfileDefinitionGrantsByProfileIdExist?: boolean; - /** Filter by the object’s `orgProfileGrantsByProfileId` relation. */ - orgProfileGrantsByProfileId?: OrgProfileToManyOrgProfileGrantFilter; - /** `orgProfileGrantsByProfileId` exist. */ - orgProfileGrantsByProfileIdExist?: boolean; - /** Filter by the object’s `slug` field. */ - slug?: StringFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -/** A filter to be used against `OrgMemberProfile` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgMemberProfileFilter { - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Checks for all expressions in this list. */ - 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 `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 `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `membership` relation. */ - membership?: OrgMembershipFilter; - /** Filter by the object’s `membershipId` field. */ - membershipId?: UUIDFilter; - /** Negates the expression. */ - not?: OrgMemberProfileFilter; - /** Checks for any expressions in this list. */ - or?: OrgMemberProfileFilter[]; - /** Filter by the object’s `profilePicture` field. */ - profilePicture?: ConstructiveInternalTypeImageFilter; - /** Filter by the object’s `title` field. */ - title?: StringFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; + createdBy?: string; + createdByPrincipal?: string; + /** References the entity (org or group) this membership belongs to */ + entityId: string; + /** 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 */ + 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?: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: 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 `capability` relation. */ - capability?: AppCapabilityFilter; - /** 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 `OrgMembershipDefault` */ +export interface OrgMembershipDefaultInput { + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** References the entity these membership defaults apply to */ + entityId: string; + id?: string; + /** Whether new members are automatically approved upon joining */ + isApproved?: boolean; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; } -/** A connection to a list of `AppCapability` values. */ -// ============ Payload/Return Types (for custom operations) ============ -export interface AppCapabilityConnection { - edges: AppCapabilityEdge[]; - nodes: AppCapability[]; - pageInfo: PageInfo; - totalCount: number; +/** An input for mutations affecting `OrgMembershipSetting` */ +export interface OrgMembershipSettingInput { + /** Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) */ + allowExternalMembers?: boolean; + /** Whether principals (agents, API-key identities) may mint API keys and child sessions for this org; requires auth_settings.allow_principal_delegation too */ + allowPrincipalOwnedApiKeys?: 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?: string; + createdBy?: string; + createdByPrincipal?: string; + /** When a member is deleted, whether to cascade-remove their descendant-entity memberships */ + deleteMemberCascadeChildren?: boolean; + /** References the entity these settings apply to */ + entityId: string; + id?: string; + /** 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?: string; + updatedBy?: string; + updatedByPrincipal?: string; } -export type AppCapabilityConnectionSelect = { - edges?: { - select: AppCapabilityEdgeSelect; - }; - nodes?: { - select: AppCapabilitySelect; - }; - pageInfo?: { - select: PageInfoSelect; - }; - totalCount?: boolean; -}; -/** A connection to a list of `OrgCapability` values. */ -export interface OrgCapabilityConnection { - edges: OrgCapabilityEdge[]; - nodes: OrgCapability[]; - pageInfo: PageInfo; - totalCount: number; +/** An input for mutations affecting `OrgOwnerGrant` */ +export interface OrgOwnerGrantInput { + /** The member receiving or losing the ownership grant; NULL if user was deleted */ + actorId?: string; + createdAt?: string; + /** The entity (org or group) this ownership grant applies to */ + entityId: string; + grantorId?: string; + id?: string; + /** True to grant ownership, false to revoke ownership */ + isGrant?: boolean; + updatedAt?: string; } -export type OrgCapabilityConnectionSelect = { - edges?: { - select: OrgCapabilityEdgeSelect; - }; - nodes?: { - select: OrgCapabilitySelect; - }; - pageInfo?: { - select: PageInfoSelect; - }; - totalCount?: boolean; -}; +// ============ Payload/Return Types (for custom operations) ============ 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; + /** The logical bucket row that was queued for reconciliation. */ + bucketId: string; + bucketKey: string; + /** The reconciler job enqueued to provision this bucket. */ + jobId: string; + /** The physical bucket name already recorded, or null when reconciliation has not completed. */ + physicalName?: string | null; } export type ProvisionBucketPayloadSelect = { - accessType?: boolean; - bucketName?: boolean; - endpoint?: boolean; - error?: boolean; - provider?: boolean; - success?: boolean; + bucketId?: boolean; + bucketKey?: boolean; + jobId?: boolean; + physicalName?: boolean; }; export interface SubmitAppInviteCodePayload { clientMutationId?: string | null; @@ -6714,51 +3573,6 @@ export type DeleteAppAdminGrantPayloadSelect = { }; clientMutationId?: boolean; }; -export interface CreateAppCapabilityPayload { - /** The `AppCapability` that was created by this mutation. */ - appCapability?: AppCapability | null; - appCapabilityEdge?: AppCapabilityEdge | null; - clientMutationId?: string | null; -} -export type CreateAppCapabilityPayloadSelect = { - appCapability?: { - select: AppCapabilitySelect; - }; - appCapabilityEdge?: { - select: AppCapabilityEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface UpdateAppCapabilityPayload { - /** The `AppCapability` that was updated by this mutation. */ - appCapability?: AppCapability | null; - appCapabilityEdge?: AppCapabilityEdge | null; - clientMutationId?: string | null; -} -export type UpdateAppCapabilityPayloadSelect = { - appCapability?: { - select: AppCapabilitySelect; - }; - appCapabilityEdge?: { - select: AppCapabilityEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface DeleteAppCapabilityPayload { - /** The `AppCapability` that was deleted by this mutation. */ - appCapability?: AppCapability | null; - appCapabilityEdge?: AppCapabilityEdge | null; - clientMutationId?: string | null; -} -export type DeleteAppCapabilityPayloadSelect = { - appCapability?: { - select: AppCapabilitySelect; - }; - appCapabilityEdge?: { - select: AppCapabilityEdgeSelect; - }; - clientMutationId?: boolean; -}; export interface CreateAppCapabilityDefaultCapabilityPayload { /** The `AppCapabilityDefaultCapability` that was created by this mutation. */ appCapabilityDefaultCapability?: AppCapabilityDefaultCapability | null; @@ -6804,51 +3618,6 @@ export type DeleteAppCapabilityDefaultCapabilityPayloadSelect = { }; clientMutationId?: boolean; }; -export interface CreateAppCapabilityDefaultPayload { - /** The `AppCapabilityDefault` that was created by this mutation. */ - appCapabilityDefault?: AppCapabilityDefault | null; - appCapabilityDefaultEdge?: AppCapabilityDefaultEdge | null; - clientMutationId?: string | null; -} -export type CreateAppCapabilityDefaultPayloadSelect = { - appCapabilityDefault?: { - select: AppCapabilityDefaultSelect; - }; - appCapabilityDefaultEdge?: { - select: AppCapabilityDefaultEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface UpdateAppCapabilityDefaultPayload { - /** The `AppCapabilityDefault` that was updated by this mutation. */ - appCapabilityDefault?: AppCapabilityDefault | null; - appCapabilityDefaultEdge?: AppCapabilityDefaultEdge | null; - clientMutationId?: string | null; -} -export type UpdateAppCapabilityDefaultPayloadSelect = { - appCapabilityDefault?: { - select: AppCapabilityDefaultSelect; - }; - appCapabilityDefaultEdge?: { - select: AppCapabilityDefaultEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface DeleteAppCapabilityDefaultPayload { - /** The `AppCapabilityDefault` that was deleted by this mutation. */ - appCapabilityDefault?: AppCapabilityDefault | null; - appCapabilityDefaultEdge?: AppCapabilityDefaultEdge | null; - clientMutationId?: string | null; -} -export type DeleteAppCapabilityDefaultPayloadSelect = { - appCapabilityDefault?: { - select: AppCapabilityDefaultSelect; - }; - appCapabilityDefaultEdge?: { - select: AppCapabilityDefaultEdgeSelect; - }; - clientMutationId?: boolean; -}; export interface CreateAppCapabilityDefaultGrantPayload { /** The `AppCapabilityDefaultGrant` that was created by this mutation. */ appCapabilityDefaultGrant?: AppCapabilityDefaultGrant | null; @@ -7119,51 +3888,6 @@ export type DeleteAppMembershipDefaultPayloadSelect = { }; clientMutationId?: boolean; }; -export interface CreateAppMembershipProfilePayload { - /** The `AppMembershipProfile` that was created by this mutation. */ - appMembershipProfile?: AppMembershipProfile | null; - appMembershipProfileEdge?: AppMembershipProfileEdge | null; - clientMutationId?: string | null; -} -export type CreateAppMembershipProfilePayloadSelect = { - appMembershipProfile?: { - select: AppMembershipProfileSelect; - }; - appMembershipProfileEdge?: { - select: AppMembershipProfileEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface UpdateAppMembershipProfilePayload { - /** The `AppMembershipProfile` that was updated by this mutation. */ - appMembershipProfile?: AppMembershipProfile | null; - appMembershipProfileEdge?: AppMembershipProfileEdge | null; - clientMutationId?: string | null; -} -export type UpdateAppMembershipProfilePayloadSelect = { - appMembershipProfile?: { - select: AppMembershipProfileSelect; - }; - appMembershipProfileEdge?: { - select: AppMembershipProfileEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface DeleteAppMembershipProfilePayload { - /** The `AppMembershipProfile` that was deleted by this mutation. */ - appMembershipProfile?: AppMembershipProfile | null; - appMembershipProfileEdge?: AppMembershipProfileEdge | null; - clientMutationId?: string | null; -} -export type DeleteAppMembershipProfilePayloadSelect = { - appMembershipProfile?: { - select: AppMembershipProfileSelect; - }; - appMembershipProfileEdge?: { - select: AppMembershipProfileEdgeSelect; - }; - clientMutationId?: boolean; -}; export interface CreateAppOwnerGrantPayload { /** The `AppOwnerGrant` that was created by this mutation. */ appOwnerGrant?: AppOwnerGrant | null; @@ -7194,243 +3918,18 @@ export type UpdateAppOwnerGrantPayloadSelect = { }; clientMutationId?: boolean; }; -export interface DeleteAppOwnerGrantPayload { - /** The `AppOwnerGrant` that was deleted by this mutation. */ - appOwnerGrant?: AppOwnerGrant | null; - appOwnerGrantEdge?: AppOwnerGrantEdge | null; - clientMutationId?: string | null; -} -export type DeleteAppOwnerGrantPayloadSelect = { - appOwnerGrant?: { - select: AppOwnerGrantSelect; - }; - appOwnerGrantEdge?: { - select: AppOwnerGrantEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface CreateAppProfileCapabilityPayload { - /** The `AppProfileCapability` that was created by this mutation. */ - appProfileCapability?: AppProfileCapability | null; - appProfileCapabilityEdge?: AppProfileCapabilityEdge | null; - clientMutationId?: string | null; -} -export type CreateAppProfileCapabilityPayloadSelect = { - appProfileCapability?: { - select: AppProfileCapabilitySelect; - }; - appProfileCapabilityEdge?: { - select: AppProfileCapabilityEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface UpdateAppProfileCapabilityPayload { - /** The `AppProfileCapability` that was updated by this mutation. */ - appProfileCapability?: AppProfileCapability | null; - appProfileCapabilityEdge?: AppProfileCapabilityEdge | null; - clientMutationId?: string | null; -} -export type UpdateAppProfileCapabilityPayloadSelect = { - appProfileCapability?: { - select: AppProfileCapabilitySelect; - }; - appProfileCapabilityEdge?: { - select: AppProfileCapabilityEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface DeleteAppProfileCapabilityPayload { - /** The `AppProfileCapability` that was deleted by this mutation. */ - appProfileCapability?: AppProfileCapability | null; - appProfileCapabilityEdge?: AppProfileCapabilityEdge | null; - clientMutationId?: string | null; -} -export type DeleteAppProfileCapabilityPayloadSelect = { - appProfileCapability?: { - select: AppProfileCapabilitySelect; - }; - appProfileCapabilityEdge?: { - select: AppProfileCapabilityEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface CreateAppProfilePayload { - /** The `AppProfile` that was created by this mutation. */ - appProfile?: AppProfile | null; - appProfileEdge?: AppProfileEdge | null; - clientMutationId?: string | null; -} -export type CreateAppProfilePayloadSelect = { - appProfile?: { - select: AppProfileSelect; - }; - appProfileEdge?: { - select: AppProfileEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface UpdateAppProfilePayload { - /** The `AppProfile` that was updated by this mutation. */ - appProfile?: AppProfile | null; - appProfileEdge?: AppProfileEdge | null; - clientMutationId?: string | null; -} -export type UpdateAppProfilePayloadSelect = { - appProfile?: { - select: AppProfileSelect; - }; - appProfileEdge?: { - select: AppProfileEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface DeleteAppProfilePayload { - /** The `AppProfile` that was deleted by this mutation. */ - appProfile?: AppProfile | null; - appProfileEdge?: AppProfileEdge | null; - clientMutationId?: string | null; -} -export type DeleteAppProfilePayloadSelect = { - appProfile?: { - select: AppProfileSelect; - }; - appProfileEdge?: { - select: AppProfileEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface CreateAppProfileDefinitionGrantPayload { - /** The `AppProfileDefinitionGrant` that was created by this mutation. */ - appProfileDefinitionGrant?: AppProfileDefinitionGrant | null; - appProfileDefinitionGrantEdge?: AppProfileDefinitionGrantEdge | null; - clientMutationId?: string | null; -} -export type CreateAppProfileDefinitionGrantPayloadSelect = { - appProfileDefinitionGrant?: { - select: AppProfileDefinitionGrantSelect; - }; - appProfileDefinitionGrantEdge?: { - select: AppProfileDefinitionGrantEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface UpdateAppProfileDefinitionGrantPayload { - /** The `AppProfileDefinitionGrant` that was updated by this mutation. */ - appProfileDefinitionGrant?: AppProfileDefinitionGrant | null; - appProfileDefinitionGrantEdge?: AppProfileDefinitionGrantEdge | null; - clientMutationId?: string | null; -} -export type UpdateAppProfileDefinitionGrantPayloadSelect = { - appProfileDefinitionGrant?: { - select: AppProfileDefinitionGrantSelect; - }; - appProfileDefinitionGrantEdge?: { - select: AppProfileDefinitionGrantEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface DeleteAppProfileDefinitionGrantPayload { - /** The `AppProfileDefinitionGrant` that was deleted by this mutation. */ - appProfileDefinitionGrant?: AppProfileDefinitionGrant | null; - appProfileDefinitionGrantEdge?: AppProfileDefinitionGrantEdge | null; - clientMutationId?: string | null; -} -export type DeleteAppProfileDefinitionGrantPayloadSelect = { - appProfileDefinitionGrant?: { - select: AppProfileDefinitionGrantSelect; - }; - appProfileDefinitionGrantEdge?: { - select: AppProfileDefinitionGrantEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface CreateAppProfileGrantPayload { - /** The `AppProfileGrant` that was created by this mutation. */ - appProfileGrant?: AppProfileGrant | null; - appProfileGrantEdge?: AppProfileGrantEdge | null; - clientMutationId?: string | null; -} -export type CreateAppProfileGrantPayloadSelect = { - appProfileGrant?: { - select: AppProfileGrantSelect; - }; - appProfileGrantEdge?: { - select: AppProfileGrantEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface UpdateAppProfileGrantPayload { - /** The `AppProfileGrant` that was updated by this mutation. */ - appProfileGrant?: AppProfileGrant | null; - appProfileGrantEdge?: AppProfileGrantEdge | null; - clientMutationId?: string | null; -} -export type UpdateAppProfileGrantPayloadSelect = { - appProfileGrant?: { - select: AppProfileGrantSelect; - }; - appProfileGrantEdge?: { - select: AppProfileGrantEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface DeleteAppProfileGrantPayload { - /** The `AppProfileGrant` that was deleted by this mutation. */ - appProfileGrant?: AppProfileGrant | null; - appProfileGrantEdge?: AppProfileGrantEdge | null; - clientMutationId?: string | null; -} -export type DeleteAppProfileGrantPayloadSelect = { - appProfileGrant?: { - select: AppProfileGrantSelect; - }; - appProfileGrantEdge?: { - select: AppProfileGrantEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface CreateAppProfileTemplatePayload { - /** The `AppProfileTemplate` that was created by this mutation. */ - appProfileTemplate?: AppProfileTemplate | null; - appProfileTemplateEdge?: AppProfileTemplateEdge | null; - clientMutationId?: string | null; -} -export type CreateAppProfileTemplatePayloadSelect = { - appProfileTemplate?: { - select: AppProfileTemplateSelect; - }; - appProfileTemplateEdge?: { - select: AppProfileTemplateEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface UpdateAppProfileTemplatePayload { - /** The `AppProfileTemplate` that was updated by this mutation. */ - appProfileTemplate?: AppProfileTemplate | null; - appProfileTemplateEdge?: AppProfileTemplateEdge | null; - clientMutationId?: string | null; -} -export type UpdateAppProfileTemplatePayloadSelect = { - appProfileTemplate?: { - select: AppProfileTemplateSelect; - }; - appProfileTemplateEdge?: { - select: AppProfileTemplateEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface DeleteAppProfileTemplatePayload { - /** The `AppProfileTemplate` that was deleted by this mutation. */ - appProfileTemplate?: AppProfileTemplate | null; - appProfileTemplateEdge?: AppProfileTemplateEdge | null; +export interface DeleteAppOwnerGrantPayload { + /** The `AppOwnerGrant` that was deleted by this mutation. */ + appOwnerGrant?: AppOwnerGrant | null; + appOwnerGrantEdge?: AppOwnerGrantEdge | null; clientMutationId?: string | null; } -export type DeleteAppProfileTemplatePayloadSelect = { - appProfileTemplate?: { - select: AppProfileTemplateSelect; +export type DeleteAppOwnerGrantPayloadSelect = { + appOwnerGrant?: { + select: AppOwnerGrantSelect; }; - appProfileTemplateEdge?: { - select: AppProfileTemplateEdgeSelect; + appOwnerGrantEdge?: { + select: AppOwnerGrantEdgeSelect; }; clientMutationId?: boolean; }; @@ -7524,51 +4023,6 @@ export type DeleteOrgAdminGrantPayloadSelect = { select: OrgAdminGrantEdgeSelect; }; }; -export interface CreateOrgCapabilityPayload { - clientMutationId?: string | null; - /** The `OrgCapability` that was created by this mutation. */ - orgCapability?: OrgCapability | null; - orgCapabilityEdge?: OrgCapabilityEdge | null; -} -export type CreateOrgCapabilityPayloadSelect = { - clientMutationId?: boolean; - orgCapability?: { - select: OrgCapabilitySelect; - }; - orgCapabilityEdge?: { - select: OrgCapabilityEdgeSelect; - }; -}; -export interface UpdateOrgCapabilityPayload { - clientMutationId?: string | null; - /** The `OrgCapability` that was updated by this mutation. */ - orgCapability?: OrgCapability | null; - orgCapabilityEdge?: OrgCapabilityEdge | null; -} -export type UpdateOrgCapabilityPayloadSelect = { - clientMutationId?: boolean; - orgCapability?: { - select: OrgCapabilitySelect; - }; - orgCapabilityEdge?: { - select: OrgCapabilityEdgeSelect; - }; -}; -export interface DeleteOrgCapabilityPayload { - clientMutationId?: string | null; - /** The `OrgCapability` that was deleted by this mutation. */ - orgCapability?: OrgCapability | null; - orgCapabilityEdge?: OrgCapabilityEdge | null; -} -export type DeleteOrgCapabilityPayloadSelect = { - clientMutationId?: boolean; - orgCapability?: { - select: OrgCapabilitySelect; - }; - orgCapabilityEdge?: { - select: OrgCapabilityEdgeSelect; - }; -}; export interface CreateOrgCapabilityDefaultCapabilityPayload { clientMutationId?: string | null; /** The `OrgCapabilityDefaultCapability` that was created by this mutation. */ @@ -7614,51 +4068,6 @@ export type DeleteOrgCapabilityDefaultCapabilityPayloadSelect = { select: OrgCapabilityDefaultCapabilityEdgeSelect; }; }; -export interface CreateOrgCapabilityDefaultPayload { - clientMutationId?: string | null; - /** The `OrgCapabilityDefault` that was created by this mutation. */ - orgCapabilityDefault?: OrgCapabilityDefault | null; - orgCapabilityDefaultEdge?: OrgCapabilityDefaultEdge | null; -} -export type CreateOrgCapabilityDefaultPayloadSelect = { - clientMutationId?: boolean; - orgCapabilityDefault?: { - select: OrgCapabilityDefaultSelect; - }; - orgCapabilityDefaultEdge?: { - select: OrgCapabilityDefaultEdgeSelect; - }; -}; -export interface UpdateOrgCapabilityDefaultPayload { - clientMutationId?: string | null; - /** The `OrgCapabilityDefault` that was updated by this mutation. */ - orgCapabilityDefault?: OrgCapabilityDefault | null; - orgCapabilityDefaultEdge?: OrgCapabilityDefaultEdge | null; -} -export type UpdateOrgCapabilityDefaultPayloadSelect = { - clientMutationId?: boolean; - orgCapabilityDefault?: { - select: OrgCapabilityDefaultSelect; - }; - orgCapabilityDefaultEdge?: { - select: OrgCapabilityDefaultEdgeSelect; - }; -}; -export interface DeleteOrgCapabilityDefaultPayload { - clientMutationId?: string | null; - /** The `OrgCapabilityDefault` that was deleted by this mutation. */ - orgCapabilityDefault?: OrgCapabilityDefault | null; - orgCapabilityDefaultEdge?: OrgCapabilityDefaultEdge | null; -} -export type DeleteOrgCapabilityDefaultPayloadSelect = { - clientMutationId?: boolean; - orgCapabilityDefault?: { - select: OrgCapabilityDefaultSelect; - }; - orgCapabilityDefaultEdge?: { - select: OrgCapabilityDefaultEdgeSelect; - }; -}; export interface CreateOrgCapabilityDefaultGrantPayload { clientMutationId?: string | null; /** The `OrgCapabilityDefaultGrant` that was created by this mutation. */ @@ -8109,51 +4518,6 @@ export type DeleteOrgMembershipDefaultPayloadSelect = { select: OrgMembershipDefaultEdgeSelect; }; }; -export interface CreateOrgMembershipProfilePayload { - clientMutationId?: string | null; - /** The `OrgMembershipProfile` that was created by this mutation. */ - orgMembershipProfile?: OrgMembershipProfile | null; - orgMembershipProfileEdge?: OrgMembershipProfileEdge | null; -} -export type CreateOrgMembershipProfilePayloadSelect = { - clientMutationId?: boolean; - orgMembershipProfile?: { - select: OrgMembershipProfileSelect; - }; - orgMembershipProfileEdge?: { - select: OrgMembershipProfileEdgeSelect; - }; -}; -export interface UpdateOrgMembershipProfilePayload { - clientMutationId?: string | null; - /** The `OrgMembershipProfile` that was updated by this mutation. */ - orgMembershipProfile?: OrgMembershipProfile | null; - orgMembershipProfileEdge?: OrgMembershipProfileEdge | null; -} -export type UpdateOrgMembershipProfilePayloadSelect = { - clientMutationId?: boolean; - orgMembershipProfile?: { - select: OrgMembershipProfileSelect; - }; - orgMembershipProfileEdge?: { - select: OrgMembershipProfileEdgeSelect; - }; -}; -export interface DeleteOrgMembershipProfilePayload { - clientMutationId?: string | null; - /** The `OrgMembershipProfile` that was deleted by this mutation. */ - orgMembershipProfile?: OrgMembershipProfile | null; - orgMembershipProfileEdge?: OrgMembershipProfileEdge | null; -} -export type DeleteOrgMembershipProfilePayloadSelect = { - clientMutationId?: boolean; - orgMembershipProfile?: { - select: OrgMembershipProfileSelect; - }; - orgMembershipProfileEdge?: { - select: OrgMembershipProfileEdgeSelect; - }; -}; export interface CreateOrgMembershipSettingPayload { clientMutationId?: string | null; /** The `OrgMembershipSetting` that was created by this mutation. */ @@ -8244,272 +4608,6 @@ export type DeleteOrgOwnerGrantPayloadSelect = { select: OrgOwnerGrantEdgeSelect; }; }; -export interface CreateOrgProfileCapabilityPayload { - clientMutationId?: string | null; - /** The `OrgProfileCapability` that was created by this mutation. */ - orgProfileCapability?: OrgProfileCapability | null; - orgProfileCapabilityEdge?: OrgProfileCapabilityEdge | null; -} -export type CreateOrgProfileCapabilityPayloadSelect = { - clientMutationId?: boolean; - orgProfileCapability?: { - select: OrgProfileCapabilitySelect; - }; - orgProfileCapabilityEdge?: { - select: OrgProfileCapabilityEdgeSelect; - }; -}; -export interface UpdateOrgProfileCapabilityPayload { - clientMutationId?: string | null; - /** The `OrgProfileCapability` that was updated by this mutation. */ - orgProfileCapability?: OrgProfileCapability | null; - orgProfileCapabilityEdge?: OrgProfileCapabilityEdge | null; -} -export type UpdateOrgProfileCapabilityPayloadSelect = { - clientMutationId?: boolean; - orgProfileCapability?: { - select: OrgProfileCapabilitySelect; - }; - orgProfileCapabilityEdge?: { - select: OrgProfileCapabilityEdgeSelect; - }; -}; -export interface DeleteOrgProfileCapabilityPayload { - clientMutationId?: string | null; - /** The `OrgProfileCapability` that was deleted by this mutation. */ - orgProfileCapability?: OrgProfileCapability | null; - orgProfileCapabilityEdge?: OrgProfileCapabilityEdge | null; -} -export type DeleteOrgProfileCapabilityPayloadSelect = { - clientMutationId?: boolean; - orgProfileCapability?: { - select: OrgProfileCapabilitySelect; - }; - orgProfileCapabilityEdge?: { - select: OrgProfileCapabilityEdgeSelect; - }; -}; -export interface CreateOrgProfilePayload { - clientMutationId?: string | null; - /** The `OrgProfile` that was created by this mutation. */ - orgProfile?: OrgProfile | null; - orgProfileEdge?: OrgProfileEdge | null; -} -export type CreateOrgProfilePayloadSelect = { - clientMutationId?: boolean; - orgProfile?: { - select: OrgProfileSelect; - }; - orgProfileEdge?: { - select: OrgProfileEdgeSelect; - }; -}; -export interface UpdateOrgProfilePayload { - clientMutationId?: string | null; - /** The `OrgProfile` that was updated by this mutation. */ - orgProfile?: OrgProfile | null; - orgProfileEdge?: OrgProfileEdge | null; -} -export type UpdateOrgProfilePayloadSelect = { - clientMutationId?: boolean; - orgProfile?: { - select: OrgProfileSelect; - }; - orgProfileEdge?: { - select: OrgProfileEdgeSelect; - }; -}; -export interface DeleteOrgProfilePayload { - clientMutationId?: string | null; - /** The `OrgProfile` that was deleted by this mutation. */ - orgProfile?: OrgProfile | null; - orgProfileEdge?: OrgProfileEdge | null; -} -export type DeleteOrgProfilePayloadSelect = { - clientMutationId?: boolean; - orgProfile?: { - select: OrgProfileSelect; - }; - orgProfileEdge?: { - select: OrgProfileEdgeSelect; - }; -}; -export interface CreateOrgProfileDefinitionGrantPayload { - clientMutationId?: string | null; - /** The `OrgProfileDefinitionGrant` that was created by this mutation. */ - orgProfileDefinitionGrant?: OrgProfileDefinitionGrant | null; - orgProfileDefinitionGrantEdge?: OrgProfileDefinitionGrantEdge | null; -} -export type CreateOrgProfileDefinitionGrantPayloadSelect = { - clientMutationId?: boolean; - orgProfileDefinitionGrant?: { - select: OrgProfileDefinitionGrantSelect; - }; - orgProfileDefinitionGrantEdge?: { - select: OrgProfileDefinitionGrantEdgeSelect; - }; -}; -export interface UpdateOrgProfileDefinitionGrantPayload { - clientMutationId?: string | null; - /** The `OrgProfileDefinitionGrant` that was updated by this mutation. */ - orgProfileDefinitionGrant?: OrgProfileDefinitionGrant | null; - orgProfileDefinitionGrantEdge?: OrgProfileDefinitionGrantEdge | null; -} -export type UpdateOrgProfileDefinitionGrantPayloadSelect = { - clientMutationId?: boolean; - orgProfileDefinitionGrant?: { - select: OrgProfileDefinitionGrantSelect; - }; - orgProfileDefinitionGrantEdge?: { - select: OrgProfileDefinitionGrantEdgeSelect; - }; -}; -export interface DeleteOrgProfileDefinitionGrantPayload { - clientMutationId?: string | null; - /** The `OrgProfileDefinitionGrant` that was deleted by this mutation. */ - orgProfileDefinitionGrant?: OrgProfileDefinitionGrant | null; - orgProfileDefinitionGrantEdge?: OrgProfileDefinitionGrantEdge | null; -} -export type DeleteOrgProfileDefinitionGrantPayloadSelect = { - clientMutationId?: boolean; - orgProfileDefinitionGrant?: { - select: OrgProfileDefinitionGrantSelect; - }; - orgProfileDefinitionGrantEdge?: { - select: OrgProfileDefinitionGrantEdgeSelect; - }; -}; -export interface CreateOrgProfileGrantPayload { - clientMutationId?: string | null; - /** The `OrgProfileGrant` that was created by this mutation. */ - orgProfileGrant?: OrgProfileGrant | null; - orgProfileGrantEdge?: OrgProfileGrantEdge | null; -} -export type CreateOrgProfileGrantPayloadSelect = { - clientMutationId?: boolean; - orgProfileGrant?: { - select: OrgProfileGrantSelect; - }; - orgProfileGrantEdge?: { - select: OrgProfileGrantEdgeSelect; - }; -}; -export interface UpdateOrgProfileGrantPayload { - clientMutationId?: string | null; - /** The `OrgProfileGrant` that was updated by this mutation. */ - orgProfileGrant?: OrgProfileGrant | null; - orgProfileGrantEdge?: OrgProfileGrantEdge | null; -} -export type UpdateOrgProfileGrantPayloadSelect = { - clientMutationId?: boolean; - orgProfileGrant?: { - select: OrgProfileGrantSelect; - }; - orgProfileGrantEdge?: { - select: OrgProfileGrantEdgeSelect; - }; -}; -export interface DeleteOrgProfileGrantPayload { - clientMutationId?: string | null; - /** The `OrgProfileGrant` that was deleted by this mutation. */ - orgProfileGrant?: OrgProfileGrant | null; - orgProfileGrantEdge?: OrgProfileGrantEdge | null; -} -export type DeleteOrgProfileGrantPayloadSelect = { - clientMutationId?: boolean; - orgProfileGrant?: { - select: OrgProfileGrantSelect; - }; - orgProfileGrantEdge?: { - select: OrgProfileGrantEdgeSelect; - }; -}; -export interface CreateOrgProfileTemplatePayload { - clientMutationId?: string | null; - /** The `OrgProfileTemplate` that was created by this mutation. */ - orgProfileTemplate?: OrgProfileTemplate | null; - orgProfileTemplateEdge?: OrgProfileTemplateEdge | null; -} -export type CreateOrgProfileTemplatePayloadSelect = { - clientMutationId?: boolean; - orgProfileTemplate?: { - select: OrgProfileTemplateSelect; - }; - orgProfileTemplateEdge?: { - select: OrgProfileTemplateEdgeSelect; - }; -}; -export interface UpdateOrgProfileTemplatePayload { - clientMutationId?: string | null; - /** The `OrgProfileTemplate` that was updated by this mutation. */ - orgProfileTemplate?: OrgProfileTemplate | null; - orgProfileTemplateEdge?: OrgProfileTemplateEdge | null; -} -export type UpdateOrgProfileTemplatePayloadSelect = { - clientMutationId?: boolean; - orgProfileTemplate?: { - select: OrgProfileTemplateSelect; - }; - orgProfileTemplateEdge?: { - select: OrgProfileTemplateEdgeSelect; - }; -}; -export interface DeleteOrgProfileTemplatePayload { - clientMutationId?: string | null; - /** The `OrgProfileTemplate` that was deleted by this mutation. */ - orgProfileTemplate?: OrgProfileTemplate | null; - orgProfileTemplateEdge?: OrgProfileTemplateEdge | null; -} -export type DeleteOrgProfileTemplatePayloadSelect = { - clientMutationId?: boolean; - orgProfileTemplate?: { - select: OrgProfileTemplateSelect; - }; - orgProfileTemplateEdge?: { - select: OrgProfileTemplateEdgeSelect; - }; -}; -/** A `AppCapability` edge in the connection. */ -export interface AppCapabilityEdge { - cursor?: string | null; - /** The `AppCapability` at the end of the edge. */ - node?: AppCapability | null; -} -export type AppCapabilityEdgeSelect = { - cursor?: boolean; - node?: { - select: AppCapabilitySelect; - }; -}; -/** 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 `OrgCapability` edge in the connection. */ -export interface OrgCapabilityEdge { - cursor?: string | null; - /** The `OrgCapability` at the end of the edge. */ - node?: OrgCapability | null; -} -export type OrgCapabilityEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgCapabilitySelect; - }; -}; /** A `AppAdminGrant` edge in the connection. */ export interface AppAdminGrantEdge { cursor?: string | null; @@ -8534,18 +4632,6 @@ export type AppCapabilityDefaultCapabilityEdgeSelect = { select: AppCapabilityDefaultCapabilitySelect; }; }; -/** A `AppCapabilityDefault` edge in the connection. */ -export interface AppCapabilityDefaultEdge { - cursor?: string | null; - /** The `AppCapabilityDefault` at the end of the edge. */ - node?: AppCapabilityDefault | null; -} -export type AppCapabilityDefaultEdgeSelect = { - cursor?: boolean; - node?: { - select: AppCapabilityDefaultSelect; - }; -}; /** A `AppCapabilityDefaultGrant` edge in the connection. */ export interface AppCapabilityDefaultGrantEdge { cursor?: string | null; @@ -8618,18 +4704,6 @@ export type AppMembershipDefaultEdgeSelect = { select: AppMembershipDefaultSelect; }; }; -/** A `AppMembershipProfile` edge in the connection. */ -export interface AppMembershipProfileEdge { - cursor?: string | null; - /** The `AppMembershipProfile` at the end of the edge. */ - node?: AppMembershipProfile | null; -} -export type AppMembershipProfileEdgeSelect = { - cursor?: boolean; - node?: { - select: AppMembershipProfileSelect; - }; -}; /** A `AppOwnerGrant` edge in the connection. */ export interface AppOwnerGrantEdge { cursor?: string | null; @@ -8642,66 +4716,6 @@ export type AppOwnerGrantEdgeSelect = { select: AppOwnerGrantSelect; }; }; -/** A `AppProfileCapability` edge in the connection. */ -export interface AppProfileCapabilityEdge { - cursor?: string | null; - /** The `AppProfileCapability` at the end of the edge. */ - node?: AppProfileCapability | null; -} -export type AppProfileCapabilityEdgeSelect = { - cursor?: boolean; - node?: { - select: AppProfileCapabilitySelect; - }; -}; -/** A `AppProfile` edge in the connection. */ -export interface AppProfileEdge { - cursor?: string | null; - /** The `AppProfile` at the end of the edge. */ - node?: AppProfile | null; -} -export type AppProfileEdgeSelect = { - cursor?: boolean; - node?: { - select: AppProfileSelect; - }; -}; -/** A `AppProfileDefinitionGrant` edge in the connection. */ -export interface AppProfileDefinitionGrantEdge { - cursor?: string | null; - /** The `AppProfileDefinitionGrant` at the end of the edge. */ - node?: AppProfileDefinitionGrant | null; -} -export type AppProfileDefinitionGrantEdgeSelect = { - cursor?: boolean; - node?: { - select: AppProfileDefinitionGrantSelect; - }; -}; -/** A `AppProfileGrant` edge in the connection. */ -export interface AppProfileGrantEdge { - cursor?: string | null; - /** The `AppProfileGrant` at the end of the edge. */ - node?: AppProfileGrant | null; -} -export type AppProfileGrantEdgeSelect = { - cursor?: boolean; - node?: { - select: AppProfileGrantSelect; - }; -}; -/** A `AppProfileTemplate` edge in the connection. */ -export interface AppProfileTemplateEdge { - cursor?: string | null; - /** The `AppProfileTemplate` at the end of the edge. */ - node?: AppProfileTemplate | null; -} -export type AppProfileTemplateEdgeSelect = { - cursor?: boolean; - node?: { - select: AppProfileTemplateSelect; - }; -}; /** A `MembershipType` edge in the connection. */ export interface MembershipTypeEdge { cursor?: string | null; @@ -8738,18 +4752,6 @@ export type OrgCapabilityDefaultCapabilityEdgeSelect = { select: OrgCapabilityDefaultCapabilitySelect; }; }; -/** A `OrgCapabilityDefault` edge in the connection. */ -export interface OrgCapabilityDefaultEdge { - cursor?: string | null; - /** The `OrgCapabilityDefault` at the end of the edge. */ - node?: OrgCapabilityDefault | null; -} -export type OrgCapabilityDefaultEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgCapabilityDefaultSelect; - }; -}; /** A `OrgCapabilityDefaultGrant` edge in the connection. */ export interface OrgCapabilityDefaultGrantEdge { cursor?: string | null; @@ -8870,18 +4872,6 @@ export type OrgMembershipDefaultEdgeSelect = { select: OrgMembershipDefaultSelect; }; }; -/** A `OrgMembershipProfile` edge in the connection. */ -export interface OrgMembershipProfileEdge { - cursor?: string | null; - /** The `OrgMembershipProfile` at the end of the edge. */ - node?: OrgMembershipProfile | null; -} -export type OrgMembershipProfileEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgMembershipProfileSelect; - }; -}; /** A `OrgMembershipSetting` edge in the connection. */ export interface OrgMembershipSettingEdge { cursor?: string | null; @@ -8906,63 +4896,3 @@ export type OrgOwnerGrantEdgeSelect = { select: OrgOwnerGrantSelect; }; }; -/** A `OrgProfileCapability` edge in the connection. */ -export interface OrgProfileCapabilityEdge { - cursor?: string | null; - /** The `OrgProfileCapability` at the end of the edge. */ - node?: OrgProfileCapability | null; -} -export type OrgProfileCapabilityEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgProfileCapabilitySelect; - }; -}; -/** A `OrgProfile` edge in the connection. */ -export interface OrgProfileEdge { - cursor?: string | null; - /** The `OrgProfile` at the end of the edge. */ - node?: OrgProfile | null; -} -export type OrgProfileEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgProfileSelect; - }; -}; -/** A `OrgProfileDefinitionGrant` edge in the connection. */ -export interface OrgProfileDefinitionGrantEdge { - cursor?: string | null; - /** The `OrgProfileDefinitionGrant` at the end of the edge. */ - node?: OrgProfileDefinitionGrant | null; -} -export type OrgProfileDefinitionGrantEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgProfileDefinitionGrantSelect; - }; -}; -/** A `OrgProfileGrant` edge in the connection. */ -export interface OrgProfileGrantEdge { - cursor?: string | null; - /** The `OrgProfileGrant` at the end of the edge. */ - node?: OrgProfileGrant | null; -} -export type OrgProfileGrantEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgProfileGrantSelect; - }; -}; -/** A `OrgProfileTemplate` edge in the connection. */ -export interface OrgProfileTemplateEdge { - cursor?: string | null; - /** The `OrgProfileTemplate` at the end of the edge. */ - node?: OrgProfileTemplate | null; -} -export type OrgProfileTemplateEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgProfileTemplateSelect; - }; -}; diff --git a/sdk/constructive-sdk/src/admin/orm/models/appCapability.ts b/sdk/constructive-sdk/src/admin/orm/models/appCapability.ts deleted file mode 100644 index fc1636fe62..0000000000 --- a/sdk/constructive-sdk/src/admin/orm/models/appCapability.ts +++ /dev/null @@ -1,245 +0,0 @@ -/** - * AppCapability 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 { - AppCapability, - AppCapabilityWithRelations, - AppCapabilitySelect, - AppCapabilityFilter, - AppCapabilityOrderBy, - CreateAppCapabilityInput, - UpdateAppCapabilityInput, - AppCapabilityPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AppCapabilityModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appCapabilities: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'AppCapability', - 'appCapabilities', - 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, - }, - 'AppCapabilityFilter', - 'AppCapabilityOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppCapability', - fieldName: 'appCapabilities', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appCapability: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AppCapability', - 'appCapabilities', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AppCapabilityFilter', - 'AppCapabilityOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppCapability', - fieldName: 'appCapability', - document, - variables, - transform: (data: { - appCapabilities?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appCapability: data.appCapabilities?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - appCapability: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AppCapability', - 'appCapabilities', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AppCapabilityFilter', - 'AppCapabilityOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppCapability', - fieldName: 'appCapability', - document, - variables, - transform: (data: { - appCapabilities?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appCapability: data.appCapabilities?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppCapability: { - appCapability: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppCapability', - 'createAppCapability', - 'appCapability', - args.select, - args.data, - 'CreateAppCapabilityInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppCapability', - fieldName: 'createAppCapability', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AppCapabilityPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAppCapability: { - appCapability: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AppCapability', - 'updateAppCapability', - 'appCapability', - args.select, - args.where.id, - args.data, - 'UpdateAppCapabilityInput', - 'id', - 'appCapabilityPatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppCapability', - fieldName: 'updateAppCapability', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAppCapability: { - appCapability: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AppCapability', - 'deleteAppCapability', - 'appCapability', - { - id: args.where.id, - }, - 'DeleteAppCapabilityInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppCapability', - fieldName: 'deleteAppCapability', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/admin/orm/models/appCapabilityDefault.ts b/sdk/constructive-sdk/src/admin/orm/models/appCapabilityDefault.ts deleted file mode 100644 index 815d62d3fc..0000000000 --- a/sdk/constructive-sdk/src/admin/orm/models/appCapabilityDefault.ts +++ /dev/null @@ -1,247 +0,0 @@ -/** - * AppCapabilityDefault 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 { - AppCapabilityDefault, - AppCapabilityDefaultWithRelations, - AppCapabilityDefaultSelect, - AppCapabilityDefaultFilter, - AppCapabilityDefaultOrderBy, - CreateAppCapabilityDefaultInput, - UpdateAppCapabilityDefaultInput, - AppCapabilityDefaultPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AppCapabilityDefaultModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appCapabilityDefaults: ConnectionResult< - InferSelectResult - >; - }> { - const { document, variables } = buildFindManyDocument( - 'AppCapabilityDefault', - 'appCapabilityDefaults', - 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, - }, - 'AppCapabilityDefaultFilter', - 'AppCapabilityDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppCapabilityDefault', - fieldName: 'appCapabilityDefaults', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appCapabilityDefault: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AppCapabilityDefault', - 'appCapabilityDefaults', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AppCapabilityDefaultFilter', - 'AppCapabilityDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppCapabilityDefault', - fieldName: 'appCapabilityDefault', - document, - variables, - transform: (data: { - appCapabilityDefaults?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appCapabilityDefault: data.appCapabilityDefaults?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - appCapabilityDefault: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AppCapabilityDefault', - 'appCapabilityDefaults', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AppCapabilityDefaultFilter', - 'AppCapabilityDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppCapabilityDefault', - fieldName: 'appCapabilityDefault', - document, - variables, - transform: (data: { - appCapabilityDefaults?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appCapabilityDefault: data.appCapabilityDefaults?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppCapabilityDefault: { - appCapabilityDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppCapabilityDefault', - 'createAppCapabilityDefault', - 'appCapabilityDefault', - args.select, - args.data, - 'CreateAppCapabilityDefaultInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppCapabilityDefault', - fieldName: 'createAppCapabilityDefault', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AppCapabilityDefaultPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAppCapabilityDefault: { - appCapabilityDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AppCapabilityDefault', - 'updateAppCapabilityDefault', - 'appCapabilityDefault', - args.select, - args.where.id, - args.data, - 'UpdateAppCapabilityDefaultInput', - 'id', - 'appCapabilityDefaultPatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppCapabilityDefault', - fieldName: 'updateAppCapabilityDefault', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAppCapabilityDefault: { - appCapabilityDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AppCapabilityDefault', - 'deleteAppCapabilityDefault', - 'appCapabilityDefault', - { - id: args.where.id, - }, - 'DeleteAppCapabilityDefaultInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppCapabilityDefault', - fieldName: 'deleteAppCapabilityDefault', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/admin/orm/models/appMembershipProfile.ts b/sdk/constructive-sdk/src/admin/orm/models/appMembershipProfile.ts deleted file mode 100644 index b3c39ef078..0000000000 --- a/sdk/constructive-sdk/src/admin/orm/models/appMembershipProfile.ts +++ /dev/null @@ -1,247 +0,0 @@ -/** - * AppMembershipProfile 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 { - AppMembershipProfile, - AppMembershipProfileWithRelations, - AppMembershipProfileSelect, - AppMembershipProfileFilter, - AppMembershipProfileOrderBy, - CreateAppMembershipProfileInput, - UpdateAppMembershipProfileInput, - AppMembershipProfilePatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AppMembershipProfileModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appMembershipProfiles: ConnectionResult< - InferSelectResult - >; - }> { - const { document, variables } = buildFindManyDocument( - 'AppMembershipProfile', - 'appMembershipProfiles', - 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, - }, - 'AppMembershipProfileFilter', - 'AppMembershipProfileOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppMembershipProfile', - fieldName: 'appMembershipProfiles', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appMembershipProfile: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AppMembershipProfile', - 'appMembershipProfiles', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AppMembershipProfileFilter', - 'AppMembershipProfileOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppMembershipProfile', - fieldName: 'appMembershipProfile', - document, - variables, - transform: (data: { - appMembershipProfiles?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appMembershipProfile: data.appMembershipProfiles?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - appMembershipProfile: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AppMembershipProfile', - 'appMembershipProfiles', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AppMembershipProfileFilter', - 'AppMembershipProfileOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppMembershipProfile', - fieldName: 'appMembershipProfile', - document, - variables, - transform: (data: { - appMembershipProfiles?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appMembershipProfile: data.appMembershipProfiles?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppMembershipProfile: { - appMembershipProfile: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppMembershipProfile', - 'createAppMembershipProfile', - 'appMembershipProfile', - args.select, - args.data, - 'CreateAppMembershipProfileInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppMembershipProfile', - fieldName: 'createAppMembershipProfile', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AppMembershipProfilePatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAppMembershipProfile: { - appMembershipProfile: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AppMembershipProfile', - 'updateAppMembershipProfile', - 'appMembershipProfile', - args.select, - args.where.id, - args.data, - 'UpdateAppMembershipProfileInput', - 'id', - 'appMembershipProfilePatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppMembershipProfile', - fieldName: 'updateAppMembershipProfile', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAppMembershipProfile: { - appMembershipProfile: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AppMembershipProfile', - 'deleteAppMembershipProfile', - 'appMembershipProfile', - { - id: args.where.id, - }, - 'DeleteAppMembershipProfileInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppMembershipProfile', - fieldName: 'deleteAppMembershipProfile', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/admin/orm/models/appProfile.ts b/sdk/constructive-sdk/src/admin/orm/models/appProfile.ts deleted file mode 100644 index b8a4c48d92..0000000000 --- a/sdk/constructive-sdk/src/admin/orm/models/appProfile.ts +++ /dev/null @@ -1,245 +0,0 @@ -/** - * AppProfile 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 { - AppProfile, - AppProfileWithRelations, - AppProfileSelect, - AppProfileFilter, - AppProfileOrderBy, - CreateAppProfileInput, - UpdateAppProfileInput, - AppProfilePatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AppProfileModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appProfiles: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'AppProfile', - 'appProfiles', - 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, - }, - 'AppProfileFilter', - 'AppProfileOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppProfile', - fieldName: 'appProfiles', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appProfile: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AppProfile', - 'appProfiles', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AppProfileFilter', - 'AppProfileOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppProfile', - fieldName: 'appProfile', - document, - variables, - transform: (data: { - appProfiles?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appProfile: data.appProfiles?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - appProfile: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AppProfile', - 'appProfiles', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AppProfileFilter', - 'AppProfileOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppProfile', - fieldName: 'appProfile', - document, - variables, - transform: (data: { - appProfiles?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appProfile: data.appProfiles?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppProfile: { - appProfile: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppProfile', - 'createAppProfile', - 'appProfile', - args.select, - args.data, - 'CreateAppProfileInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppProfile', - fieldName: 'createAppProfile', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AppProfilePatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAppProfile: { - appProfile: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AppProfile', - 'updateAppProfile', - 'appProfile', - args.select, - args.where.id, - args.data, - 'UpdateAppProfileInput', - 'id', - 'appProfilePatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppProfile', - fieldName: 'updateAppProfile', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAppProfile: { - appProfile: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AppProfile', - 'deleteAppProfile', - 'appProfile', - { - id: args.where.id, - }, - 'DeleteAppProfileInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppProfile', - fieldName: 'deleteAppProfile', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/admin/orm/models/appProfileCapability.ts b/sdk/constructive-sdk/src/admin/orm/models/appProfileCapability.ts deleted file mode 100644 index 86c05be461..0000000000 --- a/sdk/constructive-sdk/src/admin/orm/models/appProfileCapability.ts +++ /dev/null @@ -1,247 +0,0 @@ -/** - * AppProfileCapability 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 { - AppProfileCapability, - AppProfileCapabilityWithRelations, - AppProfileCapabilitySelect, - AppProfileCapabilityFilter, - AppProfileCapabilityOrderBy, - CreateAppProfileCapabilityInput, - UpdateAppProfileCapabilityInput, - AppProfileCapabilityPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AppProfileCapabilityModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appProfileCapabilities: ConnectionResult< - InferSelectResult - >; - }> { - const { document, variables } = buildFindManyDocument( - 'AppProfileCapability', - 'appProfileCapabilities', - 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, - }, - 'AppProfileCapabilityFilter', - 'AppProfileCapabilityOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppProfileCapability', - fieldName: 'appProfileCapabilities', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appProfileCapability: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AppProfileCapability', - 'appProfileCapabilities', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AppProfileCapabilityFilter', - 'AppProfileCapabilityOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppProfileCapability', - fieldName: 'appProfileCapability', - document, - variables, - transform: (data: { - appProfileCapabilities?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appProfileCapability: data.appProfileCapabilities?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - appProfileCapability: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AppProfileCapability', - 'appProfileCapabilities', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AppProfileCapabilityFilter', - 'AppProfileCapabilityOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppProfileCapability', - fieldName: 'appProfileCapability', - document, - variables, - transform: (data: { - appProfileCapabilities?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appProfileCapability: data.appProfileCapabilities?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppProfileCapability: { - appProfileCapability: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppProfileCapability', - 'createAppProfileCapability', - 'appProfileCapability', - args.select, - args.data, - 'CreateAppProfileCapabilityInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppProfileCapability', - fieldName: 'createAppProfileCapability', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AppProfileCapabilityPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAppProfileCapability: { - appProfileCapability: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AppProfileCapability', - 'updateAppProfileCapability', - 'appProfileCapability', - args.select, - args.where.id, - args.data, - 'UpdateAppProfileCapabilityInput', - 'id', - 'appProfileCapabilityPatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppProfileCapability', - fieldName: 'updateAppProfileCapability', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAppProfileCapability: { - appProfileCapability: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AppProfileCapability', - 'deleteAppProfileCapability', - 'appProfileCapability', - { - id: args.where.id, - }, - 'DeleteAppProfileCapabilityInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppProfileCapability', - fieldName: 'deleteAppProfileCapability', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/admin/orm/models/appProfileDefinitionGrant.ts b/sdk/constructive-sdk/src/admin/orm/models/appProfileDefinitionGrant.ts deleted file mode 100644 index 8ff9167a12..0000000000 --- a/sdk/constructive-sdk/src/admin/orm/models/appProfileDefinitionGrant.ts +++ /dev/null @@ -1,247 +0,0 @@ -/** - * AppProfileDefinitionGrant 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 { - AppProfileDefinitionGrant, - AppProfileDefinitionGrantWithRelations, - AppProfileDefinitionGrantSelect, - AppProfileDefinitionGrantFilter, - AppProfileDefinitionGrantOrderBy, - CreateAppProfileDefinitionGrantInput, - UpdateAppProfileDefinitionGrantInput, - AppProfileDefinitionGrantPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AppProfileDefinitionGrantModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appProfileDefinitionGrants: ConnectionResult< - InferSelectResult - >; - }> { - const { document, variables } = buildFindManyDocument( - 'AppProfileDefinitionGrant', - 'appProfileDefinitionGrants', - 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, - }, - 'AppProfileDefinitionGrantFilter', - 'AppProfileDefinitionGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppProfileDefinitionGrant', - fieldName: 'appProfileDefinitionGrants', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appProfileDefinitionGrant: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AppProfileDefinitionGrant', - 'appProfileDefinitionGrants', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AppProfileDefinitionGrantFilter', - 'AppProfileDefinitionGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppProfileDefinitionGrant', - fieldName: 'appProfileDefinitionGrant', - document, - variables, - transform: (data: { - appProfileDefinitionGrants?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appProfileDefinitionGrant: data.appProfileDefinitionGrants?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - appProfileDefinitionGrant: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AppProfileDefinitionGrant', - 'appProfileDefinitionGrants', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AppProfileDefinitionGrantFilter', - 'AppProfileDefinitionGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppProfileDefinitionGrant', - fieldName: 'appProfileDefinitionGrant', - document, - variables, - transform: (data: { - appProfileDefinitionGrants?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appProfileDefinitionGrant: data.appProfileDefinitionGrants?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppProfileDefinitionGrant: { - appProfileDefinitionGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppProfileDefinitionGrant', - 'createAppProfileDefinitionGrant', - 'appProfileDefinitionGrant', - args.select, - args.data, - 'CreateAppProfileDefinitionGrantInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppProfileDefinitionGrant', - fieldName: 'createAppProfileDefinitionGrant', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AppProfileDefinitionGrantPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAppProfileDefinitionGrant: { - appProfileDefinitionGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AppProfileDefinitionGrant', - 'updateAppProfileDefinitionGrant', - 'appProfileDefinitionGrant', - args.select, - args.where.id, - args.data, - 'UpdateAppProfileDefinitionGrantInput', - 'id', - 'appProfileDefinitionGrantPatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppProfileDefinitionGrant', - fieldName: 'updateAppProfileDefinitionGrant', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAppProfileDefinitionGrant: { - appProfileDefinitionGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AppProfileDefinitionGrant', - 'deleteAppProfileDefinitionGrant', - 'appProfileDefinitionGrant', - { - id: args.where.id, - }, - 'DeleteAppProfileDefinitionGrantInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppProfileDefinitionGrant', - fieldName: 'deleteAppProfileDefinitionGrant', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/admin/orm/models/appProfileGrant.ts b/sdk/constructive-sdk/src/admin/orm/models/appProfileGrant.ts deleted file mode 100644 index b22276182b..0000000000 --- a/sdk/constructive-sdk/src/admin/orm/models/appProfileGrant.ts +++ /dev/null @@ -1,245 +0,0 @@ -/** - * AppProfileGrant 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 { - AppProfileGrant, - AppProfileGrantWithRelations, - AppProfileGrantSelect, - AppProfileGrantFilter, - AppProfileGrantOrderBy, - CreateAppProfileGrantInput, - UpdateAppProfileGrantInput, - AppProfileGrantPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AppProfileGrantModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appProfileGrants: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'AppProfileGrant', - 'appProfileGrants', - 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, - }, - 'AppProfileGrantFilter', - 'AppProfileGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppProfileGrant', - fieldName: 'appProfileGrants', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appProfileGrant: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AppProfileGrant', - 'appProfileGrants', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AppProfileGrantFilter', - 'AppProfileGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppProfileGrant', - fieldName: 'appProfileGrant', - document, - variables, - transform: (data: { - appProfileGrants?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appProfileGrant: data.appProfileGrants?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - appProfileGrant: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AppProfileGrant', - 'appProfileGrants', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AppProfileGrantFilter', - 'AppProfileGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppProfileGrant', - fieldName: 'appProfileGrant', - document, - variables, - transform: (data: { - appProfileGrants?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appProfileGrant: data.appProfileGrants?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppProfileGrant: { - appProfileGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppProfileGrant', - 'createAppProfileGrant', - 'appProfileGrant', - args.select, - args.data, - 'CreateAppProfileGrantInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppProfileGrant', - fieldName: 'createAppProfileGrant', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AppProfileGrantPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAppProfileGrant: { - appProfileGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AppProfileGrant', - 'updateAppProfileGrant', - 'appProfileGrant', - args.select, - args.where.id, - args.data, - 'UpdateAppProfileGrantInput', - 'id', - 'appProfileGrantPatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppProfileGrant', - fieldName: 'updateAppProfileGrant', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAppProfileGrant: { - appProfileGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AppProfileGrant', - 'deleteAppProfileGrant', - 'appProfileGrant', - { - id: args.where.id, - }, - 'DeleteAppProfileGrantInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppProfileGrant', - fieldName: 'deleteAppProfileGrant', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/admin/orm/models/appProfileTemplate.ts b/sdk/constructive-sdk/src/admin/orm/models/appProfileTemplate.ts deleted file mode 100644 index 273bb28e3f..0000000000 --- a/sdk/constructive-sdk/src/admin/orm/models/appProfileTemplate.ts +++ /dev/null @@ -1,245 +0,0 @@ -/** - * AppProfileTemplate 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 { - AppProfileTemplate, - AppProfileTemplateWithRelations, - AppProfileTemplateSelect, - AppProfileTemplateFilter, - AppProfileTemplateOrderBy, - CreateAppProfileTemplateInput, - UpdateAppProfileTemplateInput, - AppProfileTemplatePatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AppProfileTemplateModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appProfileTemplates: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'AppProfileTemplate', - 'appProfileTemplates', - 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, - }, - 'AppProfileTemplateFilter', - 'AppProfileTemplateOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppProfileTemplate', - fieldName: 'appProfileTemplates', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appProfileTemplate: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AppProfileTemplate', - 'appProfileTemplates', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AppProfileTemplateFilter', - 'AppProfileTemplateOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppProfileTemplate', - fieldName: 'appProfileTemplate', - document, - variables, - transform: (data: { - appProfileTemplates?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appProfileTemplate: data.appProfileTemplates?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - appProfileTemplate: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AppProfileTemplate', - 'appProfileTemplates', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AppProfileTemplateFilter', - 'AppProfileTemplateOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppProfileTemplate', - fieldName: 'appProfileTemplate', - document, - variables, - transform: (data: { - appProfileTemplates?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appProfileTemplate: data.appProfileTemplates?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppProfileTemplate: { - appProfileTemplate: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppProfileTemplate', - 'createAppProfileTemplate', - 'appProfileTemplate', - args.select, - args.data, - 'CreateAppProfileTemplateInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppProfileTemplate', - fieldName: 'createAppProfileTemplate', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AppProfileTemplatePatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAppProfileTemplate: { - appProfileTemplate: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AppProfileTemplate', - 'updateAppProfileTemplate', - 'appProfileTemplate', - args.select, - args.where.id, - args.data, - 'UpdateAppProfileTemplateInput', - 'id', - 'appProfileTemplatePatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppProfileTemplate', - fieldName: 'updateAppProfileTemplate', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAppProfileTemplate: { - appProfileTemplate: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AppProfileTemplate', - 'deleteAppProfileTemplate', - 'appProfileTemplate', - { - id: args.where.id, - }, - 'DeleteAppProfileTemplateInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppProfileTemplate', - fieldName: 'deleteAppProfileTemplate', - 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 016cb0e8b4..f14d099d6e 100644 --- a/sdk/constructive-sdk/src/admin/orm/models/index.ts +++ b/sdk/constructive-sdk/src/admin/orm/models/index.ts @@ -4,27 +4,17 @@ * DO NOT EDIT - changes will be overwritten */ export { AppAdminGrantModel } from './appAdminGrant'; -export { AppCapabilityModel } from './appCapability'; export { AppCapabilityDefaultCapabilityModel } from './appCapabilityDefaultCapability'; -export { AppCapabilityDefaultModel } from './appCapabilityDefault'; 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 { AppMembershipProfileModel } from './appMembershipProfile'; export { AppOwnerGrantModel } from './appOwnerGrant'; -export { AppProfileCapabilityModel } from './appProfileCapability'; -export { AppProfileModel } from './appProfile'; -export { AppProfileDefinitionGrantModel } from './appProfileDefinitionGrant'; -export { AppProfileGrantModel } from './appProfileGrant'; -export { AppProfileTemplateModel } from './appProfileTemplate'; export { MembershipTypeModel } from './membershipType'; export { OrgAdminGrantModel } from './orgAdminGrant'; -export { OrgCapabilityModel } from './orgCapability'; export { OrgCapabilityDefaultCapabilityModel } from './orgCapabilityDefaultCapability'; -export { OrgCapabilityDefaultModel } from './orgCapabilityDefault'; export { OrgCapabilityDefaultGrantModel } from './orgCapabilityDefaultGrant'; export { OrgChartEdgeModel } from './orgChartEdge'; export { OrgChartEdgeGrantModel } from './orgChartEdgeGrant'; @@ -37,11 +27,5 @@ export { OrgMemberModel } from './orgMember'; export { OrgMemberProfileModel } from './orgMemberProfile'; export { OrgMembershipModel } from './orgMembership'; export { OrgMembershipDefaultModel } from './orgMembershipDefault'; -export { OrgMembershipProfileModel } from './orgMembershipProfile'; export { OrgMembershipSettingModel } from './orgMembershipSetting'; export { OrgOwnerGrantModel } from './orgOwnerGrant'; -export { OrgProfileCapabilityModel } from './orgProfileCapability'; -export { OrgProfileModel } from './orgProfile'; -export { OrgProfileDefinitionGrantModel } from './orgProfileDefinitionGrant'; -export { OrgProfileGrantModel } from './orgProfileGrant'; -export { OrgProfileTemplateModel } from './orgProfileTemplate'; diff --git a/sdk/constructive-sdk/src/admin/orm/models/orgCapability.ts b/sdk/constructive-sdk/src/admin/orm/models/orgCapability.ts deleted file mode 100644 index e97c3538d1..0000000000 --- a/sdk/constructive-sdk/src/admin/orm/models/orgCapability.ts +++ /dev/null @@ -1,245 +0,0 @@ -/** - * OrgCapability 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 { - OrgCapability, - OrgCapabilityWithRelations, - OrgCapabilitySelect, - OrgCapabilityFilter, - OrgCapabilityOrderBy, - CreateOrgCapabilityInput, - UpdateOrgCapabilityInput, - OrgCapabilityPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgCapabilityModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgCapabilities: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgCapability', - 'orgCapabilities', - 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, - }, - 'OrgCapabilityFilter', - 'OrgCapabilityOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgCapability', - fieldName: 'orgCapabilities', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgCapability: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgCapability', - 'orgCapabilities', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgCapabilityFilter', - 'OrgCapabilityOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgCapability', - fieldName: 'orgCapability', - document, - variables, - transform: (data: { - orgCapabilities?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgCapability: data.orgCapabilities?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgCapability: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgCapability', - 'orgCapabilities', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'OrgCapabilityFilter', - 'OrgCapabilityOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgCapability', - fieldName: 'orgCapability', - document, - variables, - transform: (data: { - orgCapabilities?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgCapability: data.orgCapabilities?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgCapability: { - orgCapability: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgCapability', - 'createOrgCapability', - 'orgCapability', - args.select, - args.data, - 'CreateOrgCapabilityInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgCapability', - fieldName: 'createOrgCapability', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - OrgCapabilityPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateOrgCapability: { - orgCapability: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'OrgCapability', - 'updateOrgCapability', - 'orgCapability', - args.select, - args.where.id, - args.data, - 'UpdateOrgCapabilityInput', - 'id', - 'orgCapabilityPatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgCapability', - fieldName: 'updateOrgCapability', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteOrgCapability: { - orgCapability: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'OrgCapability', - 'deleteOrgCapability', - 'orgCapability', - { - id: args.where.id, - }, - 'DeleteOrgCapabilityInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgCapability', - fieldName: 'deleteOrgCapability', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/admin/orm/models/orgCapabilityDefault.ts b/sdk/constructive-sdk/src/admin/orm/models/orgCapabilityDefault.ts deleted file mode 100644 index 90328fd612..0000000000 --- a/sdk/constructive-sdk/src/admin/orm/models/orgCapabilityDefault.ts +++ /dev/null @@ -1,247 +0,0 @@ -/** - * OrgCapabilityDefault 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 { - OrgCapabilityDefault, - OrgCapabilityDefaultWithRelations, - OrgCapabilityDefaultSelect, - OrgCapabilityDefaultFilter, - OrgCapabilityDefaultOrderBy, - CreateOrgCapabilityDefaultInput, - UpdateOrgCapabilityDefaultInput, - OrgCapabilityDefaultPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgCapabilityDefaultModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgCapabilityDefaults: ConnectionResult< - InferSelectResult - >; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgCapabilityDefault', - 'orgCapabilityDefaults', - 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, - }, - 'OrgCapabilityDefaultFilter', - 'OrgCapabilityDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgCapabilityDefault', - fieldName: 'orgCapabilityDefaults', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgCapabilityDefault: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgCapabilityDefault', - 'orgCapabilityDefaults', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgCapabilityDefaultFilter', - 'OrgCapabilityDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgCapabilityDefault', - fieldName: 'orgCapabilityDefault', - document, - variables, - transform: (data: { - orgCapabilityDefaults?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgCapabilityDefault: data.orgCapabilityDefaults?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgCapabilityDefault: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgCapabilityDefault', - 'orgCapabilityDefaults', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'OrgCapabilityDefaultFilter', - 'OrgCapabilityDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgCapabilityDefault', - fieldName: 'orgCapabilityDefault', - document, - variables, - transform: (data: { - orgCapabilityDefaults?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgCapabilityDefault: data.orgCapabilityDefaults?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgCapabilityDefault: { - orgCapabilityDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgCapabilityDefault', - 'createOrgCapabilityDefault', - 'orgCapabilityDefault', - args.select, - args.data, - 'CreateOrgCapabilityDefaultInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgCapabilityDefault', - fieldName: 'createOrgCapabilityDefault', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - OrgCapabilityDefaultPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateOrgCapabilityDefault: { - orgCapabilityDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'OrgCapabilityDefault', - 'updateOrgCapabilityDefault', - 'orgCapabilityDefault', - args.select, - args.where.id, - args.data, - 'UpdateOrgCapabilityDefaultInput', - 'id', - 'orgCapabilityDefaultPatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgCapabilityDefault', - fieldName: 'updateOrgCapabilityDefault', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteOrgCapabilityDefault: { - orgCapabilityDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'OrgCapabilityDefault', - 'deleteOrgCapabilityDefault', - 'orgCapabilityDefault', - { - id: args.where.id, - }, - 'DeleteOrgCapabilityDefaultInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgCapabilityDefault', - fieldName: 'deleteOrgCapabilityDefault', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/admin/orm/models/orgMembershipProfile.ts b/sdk/constructive-sdk/src/admin/orm/models/orgMembershipProfile.ts deleted file mode 100644 index 74a6532a57..0000000000 --- a/sdk/constructive-sdk/src/admin/orm/models/orgMembershipProfile.ts +++ /dev/null @@ -1,247 +0,0 @@ -/** - * OrgMembershipProfile 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 { - OrgMembershipProfile, - OrgMembershipProfileWithRelations, - OrgMembershipProfileSelect, - OrgMembershipProfileFilter, - OrgMembershipProfileOrderBy, - CreateOrgMembershipProfileInput, - UpdateOrgMembershipProfileInput, - OrgMembershipProfilePatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgMembershipProfileModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgMembershipProfiles: ConnectionResult< - InferSelectResult - >; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgMembershipProfile', - 'orgMembershipProfiles', - 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, - }, - 'OrgMembershipProfileFilter', - 'OrgMembershipProfileOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgMembershipProfile', - fieldName: 'orgMembershipProfiles', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgMembershipProfile: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgMembershipProfile', - 'orgMembershipProfiles', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgMembershipProfileFilter', - 'OrgMembershipProfileOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgMembershipProfile', - fieldName: 'orgMembershipProfile', - document, - variables, - transform: (data: { - orgMembershipProfiles?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgMembershipProfile: data.orgMembershipProfiles?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgMembershipProfile: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgMembershipProfile', - 'orgMembershipProfiles', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'OrgMembershipProfileFilter', - 'OrgMembershipProfileOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgMembershipProfile', - fieldName: 'orgMembershipProfile', - document, - variables, - transform: (data: { - orgMembershipProfiles?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgMembershipProfile: data.orgMembershipProfiles?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgMembershipProfile: { - orgMembershipProfile: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgMembershipProfile', - 'createOrgMembershipProfile', - 'orgMembershipProfile', - args.select, - args.data, - 'CreateOrgMembershipProfileInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgMembershipProfile', - fieldName: 'createOrgMembershipProfile', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - OrgMembershipProfilePatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateOrgMembershipProfile: { - orgMembershipProfile: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'OrgMembershipProfile', - 'updateOrgMembershipProfile', - 'orgMembershipProfile', - args.select, - args.where.id, - args.data, - 'UpdateOrgMembershipProfileInput', - 'id', - 'orgMembershipProfilePatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgMembershipProfile', - fieldName: 'updateOrgMembershipProfile', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteOrgMembershipProfile: { - orgMembershipProfile: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'OrgMembershipProfile', - 'deleteOrgMembershipProfile', - 'orgMembershipProfile', - { - id: args.where.id, - }, - 'DeleteOrgMembershipProfileInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgMembershipProfile', - fieldName: 'deleteOrgMembershipProfile', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/admin/orm/models/orgProfile.ts b/sdk/constructive-sdk/src/admin/orm/models/orgProfile.ts deleted file mode 100644 index 415b856a47..0000000000 --- a/sdk/constructive-sdk/src/admin/orm/models/orgProfile.ts +++ /dev/null @@ -1,245 +0,0 @@ -/** - * OrgProfile 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 { - OrgProfile, - OrgProfileWithRelations, - OrgProfileSelect, - OrgProfileFilter, - OrgProfileOrderBy, - CreateOrgProfileInput, - UpdateOrgProfileInput, - OrgProfilePatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgProfileModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgProfiles: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgProfile', - 'orgProfiles', - 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, - }, - 'OrgProfileFilter', - 'OrgProfileOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgProfile', - fieldName: 'orgProfiles', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgProfile: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgProfile', - 'orgProfiles', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgProfileFilter', - 'OrgProfileOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgProfile', - fieldName: 'orgProfile', - document, - variables, - transform: (data: { - orgProfiles?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgProfile: data.orgProfiles?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgProfile: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgProfile', - 'orgProfiles', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'OrgProfileFilter', - 'OrgProfileOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgProfile', - fieldName: 'orgProfile', - document, - variables, - transform: (data: { - orgProfiles?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgProfile: data.orgProfiles?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgProfile: { - orgProfile: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgProfile', - 'createOrgProfile', - 'orgProfile', - args.select, - args.data, - 'CreateOrgProfileInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgProfile', - fieldName: 'createOrgProfile', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - OrgProfilePatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateOrgProfile: { - orgProfile: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'OrgProfile', - 'updateOrgProfile', - 'orgProfile', - args.select, - args.where.id, - args.data, - 'UpdateOrgProfileInput', - 'id', - 'orgProfilePatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgProfile', - fieldName: 'updateOrgProfile', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteOrgProfile: { - orgProfile: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'OrgProfile', - 'deleteOrgProfile', - 'orgProfile', - { - id: args.where.id, - }, - 'DeleteOrgProfileInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgProfile', - fieldName: 'deleteOrgProfile', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/admin/orm/models/orgProfileCapability.ts b/sdk/constructive-sdk/src/admin/orm/models/orgProfileCapability.ts deleted file mode 100644 index 4b020b426c..0000000000 --- a/sdk/constructive-sdk/src/admin/orm/models/orgProfileCapability.ts +++ /dev/null @@ -1,247 +0,0 @@ -/** - * OrgProfileCapability 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 { - OrgProfileCapability, - OrgProfileCapabilityWithRelations, - OrgProfileCapabilitySelect, - OrgProfileCapabilityFilter, - OrgProfileCapabilityOrderBy, - CreateOrgProfileCapabilityInput, - UpdateOrgProfileCapabilityInput, - OrgProfileCapabilityPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgProfileCapabilityModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgProfileCapabilities: ConnectionResult< - InferSelectResult - >; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgProfileCapability', - 'orgProfileCapabilities', - 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, - }, - 'OrgProfileCapabilityFilter', - 'OrgProfileCapabilityOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgProfileCapability', - fieldName: 'orgProfileCapabilities', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgProfileCapability: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgProfileCapability', - 'orgProfileCapabilities', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgProfileCapabilityFilter', - 'OrgProfileCapabilityOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgProfileCapability', - fieldName: 'orgProfileCapability', - document, - variables, - transform: (data: { - orgProfileCapabilities?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgProfileCapability: data.orgProfileCapabilities?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgProfileCapability: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgProfileCapability', - 'orgProfileCapabilities', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'OrgProfileCapabilityFilter', - 'OrgProfileCapabilityOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgProfileCapability', - fieldName: 'orgProfileCapability', - document, - variables, - transform: (data: { - orgProfileCapabilities?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgProfileCapability: data.orgProfileCapabilities?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgProfileCapability: { - orgProfileCapability: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgProfileCapability', - 'createOrgProfileCapability', - 'orgProfileCapability', - args.select, - args.data, - 'CreateOrgProfileCapabilityInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgProfileCapability', - fieldName: 'createOrgProfileCapability', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - OrgProfileCapabilityPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateOrgProfileCapability: { - orgProfileCapability: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'OrgProfileCapability', - 'updateOrgProfileCapability', - 'orgProfileCapability', - args.select, - args.where.id, - args.data, - 'UpdateOrgProfileCapabilityInput', - 'id', - 'orgProfileCapabilityPatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgProfileCapability', - fieldName: 'updateOrgProfileCapability', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteOrgProfileCapability: { - orgProfileCapability: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'OrgProfileCapability', - 'deleteOrgProfileCapability', - 'orgProfileCapability', - { - id: args.where.id, - }, - 'DeleteOrgProfileCapabilityInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgProfileCapability', - fieldName: 'deleteOrgProfileCapability', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/admin/orm/models/orgProfileDefinitionGrant.ts b/sdk/constructive-sdk/src/admin/orm/models/orgProfileDefinitionGrant.ts deleted file mode 100644 index 1438737920..0000000000 --- a/sdk/constructive-sdk/src/admin/orm/models/orgProfileDefinitionGrant.ts +++ /dev/null @@ -1,247 +0,0 @@ -/** - * OrgProfileDefinitionGrant 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 { - OrgProfileDefinitionGrant, - OrgProfileDefinitionGrantWithRelations, - OrgProfileDefinitionGrantSelect, - OrgProfileDefinitionGrantFilter, - OrgProfileDefinitionGrantOrderBy, - CreateOrgProfileDefinitionGrantInput, - UpdateOrgProfileDefinitionGrantInput, - OrgProfileDefinitionGrantPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgProfileDefinitionGrantModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgProfileDefinitionGrants: ConnectionResult< - InferSelectResult - >; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgProfileDefinitionGrant', - 'orgProfileDefinitionGrants', - 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, - }, - 'OrgProfileDefinitionGrantFilter', - 'OrgProfileDefinitionGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgProfileDefinitionGrant', - fieldName: 'orgProfileDefinitionGrants', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgProfileDefinitionGrant: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgProfileDefinitionGrant', - 'orgProfileDefinitionGrants', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgProfileDefinitionGrantFilter', - 'OrgProfileDefinitionGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgProfileDefinitionGrant', - fieldName: 'orgProfileDefinitionGrant', - document, - variables, - transform: (data: { - orgProfileDefinitionGrants?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgProfileDefinitionGrant: data.orgProfileDefinitionGrants?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgProfileDefinitionGrant: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgProfileDefinitionGrant', - 'orgProfileDefinitionGrants', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'OrgProfileDefinitionGrantFilter', - 'OrgProfileDefinitionGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgProfileDefinitionGrant', - fieldName: 'orgProfileDefinitionGrant', - document, - variables, - transform: (data: { - orgProfileDefinitionGrants?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgProfileDefinitionGrant: data.orgProfileDefinitionGrants?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgProfileDefinitionGrant: { - orgProfileDefinitionGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgProfileDefinitionGrant', - 'createOrgProfileDefinitionGrant', - 'orgProfileDefinitionGrant', - args.select, - args.data, - 'CreateOrgProfileDefinitionGrantInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgProfileDefinitionGrant', - fieldName: 'createOrgProfileDefinitionGrant', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - OrgProfileDefinitionGrantPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateOrgProfileDefinitionGrant: { - orgProfileDefinitionGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'OrgProfileDefinitionGrant', - 'updateOrgProfileDefinitionGrant', - 'orgProfileDefinitionGrant', - args.select, - args.where.id, - args.data, - 'UpdateOrgProfileDefinitionGrantInput', - 'id', - 'orgProfileDefinitionGrantPatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgProfileDefinitionGrant', - fieldName: 'updateOrgProfileDefinitionGrant', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteOrgProfileDefinitionGrant: { - orgProfileDefinitionGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'OrgProfileDefinitionGrant', - 'deleteOrgProfileDefinitionGrant', - 'orgProfileDefinitionGrant', - { - id: args.where.id, - }, - 'DeleteOrgProfileDefinitionGrantInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgProfileDefinitionGrant', - fieldName: 'deleteOrgProfileDefinitionGrant', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/admin/orm/models/orgProfileGrant.ts b/sdk/constructive-sdk/src/admin/orm/models/orgProfileGrant.ts deleted file mode 100644 index 141311e738..0000000000 --- a/sdk/constructive-sdk/src/admin/orm/models/orgProfileGrant.ts +++ /dev/null @@ -1,245 +0,0 @@ -/** - * OrgProfileGrant 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 { - OrgProfileGrant, - OrgProfileGrantWithRelations, - OrgProfileGrantSelect, - OrgProfileGrantFilter, - OrgProfileGrantOrderBy, - CreateOrgProfileGrantInput, - UpdateOrgProfileGrantInput, - OrgProfileGrantPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgProfileGrantModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgProfileGrants: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgProfileGrant', - 'orgProfileGrants', - 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, - }, - 'OrgProfileGrantFilter', - 'OrgProfileGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgProfileGrant', - fieldName: 'orgProfileGrants', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgProfileGrant: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgProfileGrant', - 'orgProfileGrants', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgProfileGrantFilter', - 'OrgProfileGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgProfileGrant', - fieldName: 'orgProfileGrant', - document, - variables, - transform: (data: { - orgProfileGrants?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgProfileGrant: data.orgProfileGrants?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgProfileGrant: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgProfileGrant', - 'orgProfileGrants', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'OrgProfileGrantFilter', - 'OrgProfileGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgProfileGrant', - fieldName: 'orgProfileGrant', - document, - variables, - transform: (data: { - orgProfileGrants?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgProfileGrant: data.orgProfileGrants?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgProfileGrant: { - orgProfileGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgProfileGrant', - 'createOrgProfileGrant', - 'orgProfileGrant', - args.select, - args.data, - 'CreateOrgProfileGrantInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgProfileGrant', - fieldName: 'createOrgProfileGrant', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - OrgProfileGrantPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateOrgProfileGrant: { - orgProfileGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'OrgProfileGrant', - 'updateOrgProfileGrant', - 'orgProfileGrant', - args.select, - args.where.id, - args.data, - 'UpdateOrgProfileGrantInput', - 'id', - 'orgProfileGrantPatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgProfileGrant', - fieldName: 'updateOrgProfileGrant', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteOrgProfileGrant: { - orgProfileGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'OrgProfileGrant', - 'deleteOrgProfileGrant', - 'orgProfileGrant', - { - id: args.where.id, - }, - 'DeleteOrgProfileGrantInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgProfileGrant', - fieldName: 'deleteOrgProfileGrant', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/admin/orm/models/orgProfileTemplate.ts b/sdk/constructive-sdk/src/admin/orm/models/orgProfileTemplate.ts deleted file mode 100644 index 45499bc627..0000000000 --- a/sdk/constructive-sdk/src/admin/orm/models/orgProfileTemplate.ts +++ /dev/null @@ -1,245 +0,0 @@ -/** - * OrgProfileTemplate 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 { - OrgProfileTemplate, - OrgProfileTemplateWithRelations, - OrgProfileTemplateSelect, - OrgProfileTemplateFilter, - OrgProfileTemplateOrderBy, - CreateOrgProfileTemplateInput, - UpdateOrgProfileTemplateInput, - OrgProfileTemplatePatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgProfileTemplateModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgProfileTemplates: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgProfileTemplate', - 'orgProfileTemplates', - 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, - }, - 'OrgProfileTemplateFilter', - 'OrgProfileTemplateOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgProfileTemplate', - fieldName: 'orgProfileTemplates', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgProfileTemplate: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgProfileTemplate', - 'orgProfileTemplates', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgProfileTemplateFilter', - 'OrgProfileTemplateOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgProfileTemplate', - fieldName: 'orgProfileTemplate', - document, - variables, - transform: (data: { - orgProfileTemplates?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgProfileTemplate: data.orgProfileTemplates?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgProfileTemplate: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgProfileTemplate', - 'orgProfileTemplates', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'OrgProfileTemplateFilter', - 'OrgProfileTemplateOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgProfileTemplate', - fieldName: 'orgProfileTemplate', - document, - variables, - transform: (data: { - orgProfileTemplates?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgProfileTemplate: data.orgProfileTemplates?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgProfileTemplate: { - orgProfileTemplate: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgProfileTemplate', - 'createOrgProfileTemplate', - 'orgProfileTemplate', - args.select, - args.data, - 'CreateOrgProfileTemplateInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgProfileTemplate', - fieldName: 'createOrgProfileTemplate', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - OrgProfileTemplatePatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateOrgProfileTemplate: { - orgProfileTemplate: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'OrgProfileTemplate', - 'updateOrgProfileTemplate', - 'orgProfileTemplate', - args.select, - args.where.id, - args.data, - 'UpdateOrgProfileTemplateInput', - 'id', - 'orgProfileTemplatePatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgProfileTemplate', - fieldName: 'updateOrgProfileTemplate', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteOrgProfileTemplate: { - orgProfileTemplate: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'OrgProfileTemplate', - 'deleteOrgProfileTemplate', - 'orgProfileTemplate', - { - id: args.where.id, - }, - 'DeleteOrgProfileTemplateInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgProfileTemplate', - fieldName: 'deleteOrgProfileTemplate', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/admin/orm/mutation/index.ts b/sdk/constructive-sdk/src/admin/orm/mutation/index.ts index 0e8e613d2e..ea1a4ae835 100644 --- a/sdk/constructive-sdk/src/admin/orm/mutation/index.ts +++ b/sdk/constructive-sdk/src/admin/orm/mutation/index.ts @@ -20,10 +20,11 @@ import type { import { connectionFieldsMap } from '../input-types'; /** * Variables for provisionBucket - * 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. + * Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. */ export interface ProvisionBucketVariables { input: ProvisionBucketInput; diff --git a/sdk/constructive-sdk/src/admin/orm/query/index.ts b/sdk/constructive-sdk/src/admin/orm/query/index.ts index cb4b15d057..f4f0cb1eb5 100644 --- a/sdk/constructive-sdk/src/admin/orm/query/index.ts +++ b/sdk/constructive-sdk/src/admin/orm/query/index.ts @@ -6,49 +6,10 @@ import { OrmClient } from '../client'; import { QueryBuilder, buildCustomDocument } from '../query-builder'; import type { InferSelectResult, StrictSelect } from '../select-types'; -import type { AppCapabilityConnection, OrgCapabilityConnection } from '../input-types'; import { connectionFieldsMap } from '../input-types'; -export interface AppCapabilitiesGetByMaskVariables { - /** 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 AppCapabilitiesGetMaskVariables { - ids?: string[]; -} -export interface AppCapabilitiesGetMaskByNamesVariables { - names?: string[]; -} -export interface AppCapabilitiesGetPaddedMaskVariables { - mask?: string; -} -export interface OrgCapabilitiesGetByMaskVariables { - /** 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 OrgCapabilitiesGetMaskVariables { - ids?: string[]; -} -export interface OrgCapabilitiesGetMaskByNamesVariables { - names?: string[]; -} -export interface OrgCapabilitiesGetPaddedMaskVariables { - mask?: string; +export interface GetOrganizationIdVariables { + entityId?: string; + entityType?: string; } export interface OrgIsManagerOfVariables { managerId?: string; @@ -58,256 +19,33 @@ export interface OrgIsManagerOfVariables { } export function createQueryOperations(client: OrmClient) { return { - appCapabilitiesGetByMask: ( - args: AppCapabilitiesGetByMaskVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - appCapabilitiesGetByMask: AppCapabilityConnection | null; - }>({ - client, - operation: 'query', - operationName: 'AppCapabilitiesGetByMask', - fieldName: 'appCapabilitiesGetByMask', - ...buildCustomDocument( - 'query', - 'AppCapabilitiesGetByMask', - 'appCapabilitiesGetByMask', - options?.select, - args, - [ - { - name: 'after', - type: 'Cursor', - }, - { - name: 'first', - type: 'Int', - }, - { - name: 'mask', - type: 'BitString', - }, - { - name: 'offset', - type: 'Int', - }, - ], - connectionFieldsMap, - undefined - ), - }), - appCapabilitiesGetMask: ( - args: AppCapabilitiesGetMaskVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - appCapabilitiesGetMask: string | null; - }>({ - client, - operation: 'query', - operationName: 'AppCapabilitiesGetMask', - fieldName: 'appCapabilitiesGetMask', - ...buildCustomDocument( - 'query', - 'AppCapabilitiesGetMask', - 'appCapabilitiesGetMask', - options?.select, - args, - [ - { - name: 'ids', - type: '[UUID]', - }, - ], - connectionFieldsMap, - undefined - ), - }), - appCapabilitiesGetMaskByNames: ( - args: AppCapabilitiesGetMaskByNamesVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - appCapabilitiesGetMaskByNames: string | null; - }>({ - client, - operation: 'query', - operationName: 'AppCapabilitiesGetMaskByNames', - fieldName: 'appCapabilitiesGetMaskByNames', - ...buildCustomDocument( - 'query', - 'AppCapabilitiesGetMaskByNames', - 'appCapabilitiesGetMaskByNames', - options?.select, - args, - [ - { - name: 'names', - type: '[String]', - }, - ], - connectionFieldsMap, - undefined - ), - }), - appCapabilitiesGetPaddedMask: ( - args: AppCapabilitiesGetPaddedMaskVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - appCapabilitiesGetPaddedMask: string | null; - }>({ - client, - operation: 'query', - operationName: 'AppCapabilitiesGetPaddedMask', - fieldName: 'appCapabilitiesGetPaddedMask', - ...buildCustomDocument( - 'query', - 'AppCapabilitiesGetPaddedMask', - 'appCapabilitiesGetPaddedMask', - options?.select, - args, - [ - { - name: 'mask', - type: 'BitString', - }, - ], - connectionFieldsMap, - undefined - ), - }), - orgCapabilitiesGetByMask: ( - args: OrgCapabilitiesGetByMaskVariables, + getOrganizationId: ( + args: GetOrganizationIdVariables, options?: { select?: Record; } ) => new QueryBuilder<{ - orgCapabilitiesGetByMask: OrgCapabilityConnection | null; + getOrganizationId: string | null; }>({ client, operation: 'query', - operationName: 'OrgCapabilitiesGetByMask', - fieldName: 'orgCapabilitiesGetByMask', + operationName: 'GetOrganizationId', + fieldName: 'getOrganizationId', ...buildCustomDocument( 'query', - 'OrgCapabilitiesGetByMask', - 'orgCapabilitiesGetByMask', + 'GetOrganizationId', + 'getOrganizationId', options?.select, args, [ { - name: 'after', - type: 'Cursor', - }, - { - name: 'first', - type: 'Int', - }, - { - name: 'mask', - type: 'BitString', - }, - { - name: 'offset', - type: 'Int', - }, - ], - connectionFieldsMap, - undefined - ), - }), - orgCapabilitiesGetMask: ( - args: OrgCapabilitiesGetMaskVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - orgCapabilitiesGetMask: string | null; - }>({ - client, - operation: 'query', - operationName: 'OrgCapabilitiesGetMask', - fieldName: 'orgCapabilitiesGetMask', - ...buildCustomDocument( - 'query', - 'OrgCapabilitiesGetMask', - 'orgCapabilitiesGetMask', - options?.select, - args, - [ - { - name: 'ids', - type: '[UUID]', - }, - ], - connectionFieldsMap, - undefined - ), - }), - orgCapabilitiesGetMaskByNames: ( - args: OrgCapabilitiesGetMaskByNamesVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - orgCapabilitiesGetMaskByNames: string | null; - }>({ - client, - operation: 'query', - operationName: 'OrgCapabilitiesGetMaskByNames', - fieldName: 'orgCapabilitiesGetMaskByNames', - ...buildCustomDocument( - 'query', - 'OrgCapabilitiesGetMaskByNames', - 'orgCapabilitiesGetMaskByNames', - options?.select, - args, - [ - { - name: 'names', - type: '[String]', + name: 'entityId', + type: 'UUID', }, - ], - connectionFieldsMap, - undefined - ), - }), - orgCapabilitiesGetPaddedMask: ( - args: OrgCapabilitiesGetPaddedMaskVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - orgCapabilitiesGetPaddedMask: string | null; - }>({ - client, - operation: 'query', - operationName: 'OrgCapabilitiesGetPaddedMask', - fieldName: 'orgCapabilitiesGetPaddedMask', - ...buildCustomDocument( - 'query', - 'OrgCapabilitiesGetPaddedMask', - 'orgCapabilitiesGetPaddedMask', - options?.select, - args, - [ { - name: 'mask', - type: 'BitString', + name: 'entityType', + type: 'String', }, ], connectionFieldsMap, diff --git a/sdk/constructive-sdk/src/agent/README.md b/sdk/constructive-sdk/src/agent/README.md index 5c7d3ae05c..30d72a88cc 100644 --- a/sdk/constructive-sdk/src/agent/README.md +++ b/sdk/constructive-sdk/src/agent/README.md @@ -8,7 +8,7 @@ ## Overview -- **Tables:** 9 +- **Tables:** 21 - **Custom queries:** 0 - **Custom mutations:** 1 diff --git a/sdk/constructive-sdk/src/agent/orm/README.md b/sdk/constructive-sdk/src/agent/orm/README.md index d8403ed6ba..cbba8f46fe 100644 --- a/sdk/constructive-sdk/src/agent/orm/README.md +++ b/sdk/constructive-sdk/src/agent/orm/README.md @@ -30,6 +30,18 @@ const db = createClient({ | `agentResource` | findMany, findOne, create, update, delete | | `agentTask` | findMany, findOne, create, update, delete | | `agentThread` | findMany, findOne, create, update, delete | +| `platformAgent` | findMany, findOne, create, update, delete | +| `platformAgentEvent` | findMany, findOne, create, update, delete | +| `platformAgentMessage` | findMany, findOne, create, update, delete | +| `platformAgentPersona` | findMany, findOne, create, update, delete | +| `platformAgentPlan` | findMany, findOne, create, update, delete | +| `platformAgentPrompt` | findMany, findOne, create, update, delete | +| `platformAgentResourceChunk` | findMany, findOne, create, update, delete | +| `platformAgentResource` | findMany, findOne, create, update, delete | +| `platformAgentRun` | findMany, findOne, create, update, delete | +| `platformAgentRunWorkspace` | findMany, findOne, create, update, delete | +| `platformAgentTask` | findMany, findOne, create, update, delete | +| `platformAgentThread` | findMany, findOne, create, update, delete | ## Table Operations @@ -87,22 +99,24 @@ CRUD operations for AgentMessage records. | `createdAt` | Datetime | No | | `databaseId` | UUID | Yes | | `id` | UUID | No | +| `kind` | String | Yes | | `model` | String | Yes | | `parts` | JSON | Yes | | `threadId` | UUID | Yes | | `updatedAt` | Datetime | No | +| `visibility` | String | Yes | **Operations:** ```typescript // List all agentMessage records -const items = await db.agentMessage.findMany({ select: { actorId: true, agentId: true, authorRole: true, createdAt: true, databaseId: true, id: true, model: true, parts: true, threadId: true, updatedAt: true } }).execute(); +const items = await db.agentMessage.findMany({ select: { actorId: true, agentId: true, authorRole: true, createdAt: true, databaseId: true, id: true, kind: true, model: true, parts: true, threadId: true, updatedAt: true, visibility: true } }).execute(); // Get one by id -const item = await db.agentMessage.findOne({ id: '', select: { actorId: true, agentId: true, authorRole: true, createdAt: true, databaseId: true, id: true, model: true, parts: true, threadId: true, updatedAt: true } }).execute(); +const item = await db.agentMessage.findOne({ id: '', select: { actorId: true, agentId: true, authorRole: true, createdAt: true, databaseId: true, id: true, kind: true, model: true, parts: true, threadId: true, updatedAt: true, visibility: true } }).execute(); // Create -const created = await db.agentMessage.create({ data: { actorId: '', agentId: '', authorRole: '', databaseId: '', model: '', parts: '', threadId: '' }, select: { id: true } }).execute(); +const created = await db.agentMessage.create({ data: { actorId: '', agentId: '', authorRole: '', databaseId: '', kind: '', model: '', parts: '', threadId: '', visibility: '' }, select: { id: true } }).execute(); // Update const updated = await db.agentMessage.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); @@ -122,6 +136,7 @@ CRUD operations for AgentPersona records. | `config` | JSON | Yes | | `createdAt` | Datetime | No | | `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | | `databaseId` | UUID | Yes | | `description` | String | Yes | | `id` | UUID | No | @@ -132,18 +147,19 @@ CRUD operations for AgentPersona records. | `systemPrompt` | String | Yes | | `updatedAt` | Datetime | No | | `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | **Operations:** ```typescript // List all agentPersona records -const items = await db.agentPersona.findMany({ select: { config: true, createdAt: true, createdBy: true, databaseId: true, description: true, id: true, isActive: true, name: true, resources: true, slug: true, systemPrompt: true, updatedAt: true, updatedBy: true } }).execute(); +const items = await db.agentPersona.findMany({ select: { config: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, description: true, id: true, isActive: true, name: true, resources: true, slug: true, systemPrompt: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.agentPersona.findOne({ id: '', select: { config: true, createdAt: true, createdBy: true, databaseId: true, description: true, id: true, isActive: true, name: true, resources: true, slug: true, systemPrompt: true, updatedAt: true, updatedBy: true } }).execute(); +const item = await db.agentPersona.findOne({ id: '', select: { config: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, description: true, id: true, isActive: true, name: true, resources: true, slug: true, systemPrompt: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.agentPersona.create({ data: { config: '', createdBy: '', databaseId: '', description: '', isActive: '', name: '', resources: '', slug: '', systemPrompt: '', updatedBy: '' }, select: { id: true } }).execute(); +const created = await db.agentPersona.create({ data: { config: '', createdBy: '', createdByPrincipal: '', databaseId: '', description: '', isActive: '', name: '', resources: '', slug: '', systemPrompt: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update const updated = await db.agentPersona.update({ where: { id: '' }, data: { config: '' }, select: { id: true } }).execute(); @@ -169,18 +185,19 @@ CRUD operations for AgentPlan records. | `threadId` | UUID | Yes | | `title` | String | Yes | | `updatedAt` | Datetime | No | +| `visibility` | String | Yes | **Operations:** ```typescript // List all agentPlan records -const items = await db.agentPlan.findMany({ select: { createdAt: true, databaseId: true, description: true, id: true, ownerId: true, status: true, threadId: true, title: true, updatedAt: true } }).execute(); +const items = await db.agentPlan.findMany({ select: { createdAt: true, databaseId: true, description: true, id: true, ownerId: true, status: true, threadId: true, title: true, updatedAt: true, visibility: true } }).execute(); // Get one by id -const item = await db.agentPlan.findOne({ id: '', select: { createdAt: true, databaseId: true, description: true, id: true, ownerId: true, status: true, threadId: true, title: true, updatedAt: true } }).execute(); +const item = await db.agentPlan.findOne({ id: '', select: { createdAt: true, databaseId: true, description: true, id: true, ownerId: true, status: true, threadId: true, title: true, updatedAt: true, visibility: true } }).execute(); // Create -const created = await db.agentPlan.create({ data: { databaseId: '', description: '', ownerId: '', status: '', threadId: '', title: '' }, select: { id: true } }).execute(); +const created = await db.agentPlan.create({ data: { databaseId: '', description: '', ownerId: '', status: '', threadId: '', title: '', visibility: '' }, select: { id: true } }).execute(); // Update const updated = await db.agentPlan.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -200,6 +217,7 @@ CRUD operations for AgentPrompt records. | `content` | String | Yes | | `createdAt` | Datetime | No | | `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | | `databaseId` | UUID | Yes | | `description` | String | Yes | | `id` | UUID | No | @@ -208,18 +226,19 @@ CRUD operations for AgentPrompt records. | `name` | String | Yes | | `updatedAt` | Datetime | No | | `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | **Operations:** ```typescript // List all agentPrompt records -const items = await db.agentPrompt.findMany({ select: { content: true, createdAt: true, createdBy: true, databaseId: true, description: true, id: true, isDefault: true, metadata: true, name: true, updatedAt: true, updatedBy: true } }).execute(); +const items = await db.agentPrompt.findMany({ select: { content: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, description: true, id: true, isDefault: true, metadata: true, name: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.agentPrompt.findOne({ id: '', select: { content: true, createdAt: true, createdBy: true, databaseId: true, description: true, id: true, isDefault: true, metadata: true, name: true, updatedAt: true, updatedBy: true } }).execute(); +const item = await db.agentPrompt.findOne({ id: '', select: { content: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, description: true, id: true, isDefault: true, metadata: true, name: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.agentPrompt.create({ data: { content: '', createdBy: '', databaseId: '', description: '', isDefault: '', metadata: '', name: '', updatedBy: '' }, select: { id: true } }).execute(); +const created = await db.agentPrompt.create({ data: { content: '', createdBy: '', createdByPrincipal: '', databaseId: '', description: '', isDefault: '', metadata: '', name: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update const updated = await db.agentPrompt.update({ where: { id: '' }, data: { content: '' }, select: { id: true } }).execute(); @@ -240,6 +259,7 @@ CRUD operations for AgentResourceChunk records. | `body` | String | Yes | | `chunkIndex` | Int | Yes | | `createdAt` | Datetime | No | +| `databaseId` | UUID | Yes | | `embedding` | Vector | Yes | | `embeddingVectorDistance` | Float | Yes | | `id` | UUID | No | @@ -251,13 +271,13 @@ CRUD operations for AgentResourceChunk records. ```typescript // List all agentResourceChunk records -const items = await db.agentResourceChunk.findMany({ select: { agentResourceId: true, body: true, chunkIndex: true, createdAt: true, embedding: true, embeddingVectorDistance: true, id: true, metadata: true, searchScore: true, updatedAt: true } }).execute(); +const items = await db.agentResourceChunk.findMany({ select: { agentResourceId: true, body: true, chunkIndex: true, createdAt: true, databaseId: true, embedding: true, embeddingVectorDistance: true, id: true, metadata: true, searchScore: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.agentResourceChunk.findOne({ id: '', select: { agentResourceId: true, body: true, chunkIndex: true, createdAt: true, embedding: true, embeddingVectorDistance: true, id: true, metadata: true, searchScore: true, updatedAt: true } }).execute(); +const item = await db.agentResourceChunk.findOne({ id: '', select: { agentResourceId: true, body: true, chunkIndex: true, createdAt: true, databaseId: true, embedding: true, embeddingVectorDistance: true, id: true, metadata: true, searchScore: true, updatedAt: true } }).execute(); // Create -const created = await db.agentResourceChunk.create({ data: { agentResourceId: '', body: '', chunkIndex: '', embedding: '', embeddingVectorDistance: '', metadata: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.agentResourceChunk.create({ data: { agentResourceId: '', body: '', chunkIndex: '', databaseId: '', embedding: '', embeddingVectorDistance: '', metadata: '', searchScore: '' }, select: { id: true } }).execute(); // Update const updated = await db.agentResourceChunk.update({ where: { id: '' }, data: { agentResourceId: '' }, select: { id: true } }).execute(); @@ -282,6 +302,7 @@ CRUD operations for AgentResource records. | `bodyTrgmSimilarity` | Float | Yes | | `createdAt` | Datetime | No | | `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | | `databaseId` | UUID | Yes | | `description` | String | Yes | | `descriptionTrgmSimilarity` | Float | Yes | @@ -303,18 +324,19 @@ CRUD operations for AgentResource records. | `titleTrgmSimilarity` | Float | Yes | | `updatedAt` | Datetime | No | | `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | **Operations:** ```typescript // List all agentResource records -const items = await db.agentResource.findMany({ select: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, databaseId: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true } }).execute(); +const items = await db.agentResource.findMany({ select: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.agentResource.findOne({ id: '', select: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, databaseId: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true } }).execute(); +const item = await db.agentResource.findOne({ id: '', select: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.agentResource.create({ data: { archivedAt: '', body: '', bodyTrgmSimilarity: '', createdBy: '', databaseId: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', isActive: '', isArchived: '', keywords: '', kind: '', kindTrgmSimilarity: '', metadata: '', search: '', searchScore: '', searchTsvRank: '', slug: '', title: '', titleTrgmSimilarity: '', updatedBy: '' }, select: { id: true } }).execute(); +const created = await db.agentResource.create({ data: { archivedAt: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', isActive: '', isArchived: '', keywords: '', kind: '', kindTrgmSimilarity: '', metadata: '', search: '', searchScore: '', searchTsvRank: '', slug: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update const updated = await db.agentResource.update({ where: { id: '' }, data: { archivedAt: '' }, select: { id: true } }).execute(); @@ -353,18 +375,19 @@ CRUD operations for AgentTask records. | `source` | String | Yes | | `status` | String | Yes | | `updatedAt` | Datetime | No | +| `visibility` | String | Yes | **Operations:** ```typescript // List all agentTask records -const items = await db.agentTask.findMany({ select: { actorId: true, approvalFeedback: true, approvalStatus: true, approvedAt: true, approvedBy: true, createdAt: true, databaseId: true, description: true, error: true, id: true, orderIndex: true, planId: true, requiresApproval: true, source: true, status: true, updatedAt: true } }).execute(); +const items = await db.agentTask.findMany({ select: { actorId: true, approvalFeedback: true, approvalStatus: true, approvedAt: true, approvedBy: true, createdAt: true, databaseId: true, description: true, error: true, id: true, orderIndex: true, planId: true, requiresApproval: true, source: true, status: true, updatedAt: true, visibility: true } }).execute(); // Get one by id -const item = await db.agentTask.findOne({ id: '', select: { actorId: true, approvalFeedback: true, approvalStatus: true, approvedAt: true, approvedBy: true, createdAt: true, databaseId: true, description: true, error: true, id: true, orderIndex: true, planId: true, requiresApproval: true, source: true, status: true, updatedAt: true } }).execute(); +const item = await db.agentTask.findOne({ id: '', select: { actorId: true, approvalFeedback: true, approvalStatus: true, approvedAt: true, approvedBy: true, createdAt: true, databaseId: true, description: true, error: true, id: true, orderIndex: true, planId: true, requiresApproval: true, source: true, status: true, updatedAt: true, visibility: true } }).execute(); // Create -const created = await db.agentTask.create({ data: { actorId: '', approvalFeedback: '', approvalStatus: '', approvedAt: '', approvedBy: '', databaseId: '', description: '', error: '', orderIndex: '', planId: '', requiresApproval: '', source: '', status: '' }, select: { id: true } }).execute(); +const created = await db.agentTask.create({ data: { actorId: '', approvalFeedback: '', approvalStatus: '', approvedAt: '', approvedBy: '', databaseId: '', description: '', error: '', orderIndex: '', planId: '', requiresApproval: '', source: '', status: '', visibility: '' }, select: { id: true } }).execute(); // Update const updated = await db.agentTask.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); @@ -397,18 +420,19 @@ CRUD operations for AgentThread records. | `tags` | String | Yes | | `title` | String | Yes | | `updatedAt` | Datetime | No | +| `visibility` | String | Yes | **Operations:** ```typescript // List all agentThread records -const items = await db.agentThread.findMany({ select: { agentId: true, archivedAt: true, createdAt: true, databaseId: true, id: true, isArchived: true, mode: true, model: true, ownerId: true, parentThreadId: true, promptTemplateId: true, status: true, systemPrompt: true, tags: true, title: true, updatedAt: true } }).execute(); +const items = await db.agentThread.findMany({ select: { agentId: true, archivedAt: true, createdAt: true, databaseId: true, id: true, isArchived: true, mode: true, model: true, ownerId: true, parentThreadId: true, promptTemplateId: true, status: true, systemPrompt: true, tags: true, title: true, updatedAt: true, visibility: true } }).execute(); // Get one by id -const item = await db.agentThread.findOne({ id: '', select: { agentId: true, archivedAt: true, createdAt: true, databaseId: true, id: true, isArchived: true, mode: true, model: true, ownerId: true, parentThreadId: true, promptTemplateId: true, status: true, systemPrompt: true, tags: true, title: true, updatedAt: true } }).execute(); +const item = await db.agentThread.findOne({ id: '', select: { agentId: true, archivedAt: true, createdAt: true, databaseId: true, id: true, isArchived: true, mode: true, model: true, ownerId: true, parentThreadId: true, promptTemplateId: true, status: true, systemPrompt: true, tags: true, title: true, updatedAt: true, visibility: true } }).execute(); // Create -const created = await db.agentThread.create({ data: { agentId: '', archivedAt: '', databaseId: '', isArchived: '', mode: '', model: '', ownerId: '', parentThreadId: '', promptTemplateId: '', status: '', systemPrompt: '', tags: '', title: '' }, select: { id: true } }).execute(); +const created = await db.agentThread.create({ data: { agentId: '', archivedAt: '', databaseId: '', isArchived: '', mode: '', model: '', ownerId: '', parentThreadId: '', promptTemplateId: '', status: '', systemPrompt: '', tags: '', title: '', visibility: '' }, select: { id: true } }).execute(); // Update const updated = await db.agentThread.update({ where: { id: '' }, data: { agentId: '' }, select: { id: true } }).execute(); @@ -417,14 +441,543 @@ const updated = await db.agentThread.update({ where: { id: '' }, data: { a const deleted = await db.agentThread.delete({ where: { id: '' } }).execute(); ``` +### `db.platformAgent` + +CRUD operations for PlatformAgent records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `config` | JSON | Yes | +| `createdAt` | Datetime | No | +| `id` | UUID | No | +| `isEphemeral` | Boolean | Yes | +| `name` | String | Yes | +| `ownerId` | UUID | Yes | +| `parentId` | UUID | Yes | +| `personaId` | UUID | Yes | +| `status` | String | Yes | +| `systemPrompt` | String | Yes | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all platformAgent records +const items = await db.platformAgent.findMany({ select: { config: true, createdAt: true, id: true, isEphemeral: true, name: true, ownerId: true, parentId: true, personaId: true, status: true, systemPrompt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.platformAgent.findOne({ id: '', select: { config: true, createdAt: true, id: true, isEphemeral: true, name: true, ownerId: true, parentId: true, personaId: true, status: true, systemPrompt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.platformAgent.create({ data: { config: '', isEphemeral: '', name: '', ownerId: '', parentId: '', personaId: '', status: '', systemPrompt: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformAgent.update({ where: { id: '' }, data: { config: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformAgent.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformAgentEvent` + +CRUD operations for PlatformAgentEvent records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `actorId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `entry` | JSON | Yes | +| `id` | UUID | No | +| `recordedAt` | Datetime | Yes | +| `runId` | UUID | Yes | +| `seq` | Int | Yes | +| `transcriptFormat` | String | Yes | +| `transcriptVersion` | Int | Yes | +| `updatedAt` | Datetime | No | +| `visibility` | String | Yes | + +**Operations:** + +```typescript +// List all platformAgentEvent records +const items = await db.platformAgentEvent.findMany({ select: { actorId: true, createdAt: true, entry: true, id: true, recordedAt: true, runId: true, seq: true, transcriptFormat: true, transcriptVersion: true, updatedAt: true, visibility: true } }).execute(); + +// Get one by id +const item = await db.platformAgentEvent.findOne({ id: '', select: { actorId: true, createdAt: true, entry: true, id: true, recordedAt: true, runId: true, seq: true, transcriptFormat: true, transcriptVersion: true, updatedAt: true, visibility: true } }).execute(); + +// Create +const created = await db.platformAgentEvent.create({ data: { actorId: '', entry: '', recordedAt: '', runId: '', seq: '', transcriptFormat: '', transcriptVersion: '', visibility: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformAgentEvent.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformAgentEvent.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformAgentMessage` + +CRUD operations for PlatformAgentMessage records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `actorId` | UUID | Yes | +| `agentId` | UUID | Yes | +| `authorRole` | String | Yes | +| `createdAt` | Datetime | No | +| `deliveredRunId` | UUID | Yes | +| `id` | UUID | No | +| `kind` | String | Yes | +| `model` | String | Yes | +| `parts` | JSON | Yes | +| `threadId` | UUID | Yes | +| `updatedAt` | Datetime | No | +| `visibility` | String | Yes | + +**Operations:** + +```typescript +// List all platformAgentMessage records +const items = await db.platformAgentMessage.findMany({ select: { actorId: true, agentId: true, authorRole: true, createdAt: true, deliveredRunId: true, id: true, kind: true, model: true, parts: true, threadId: true, updatedAt: true, visibility: true } }).execute(); + +// Get one by id +const item = await db.platformAgentMessage.findOne({ id: '', select: { actorId: true, agentId: true, authorRole: true, createdAt: true, deliveredRunId: true, id: true, kind: true, model: true, parts: true, threadId: true, updatedAt: true, visibility: true } }).execute(); + +// Create +const created = await db.platformAgentMessage.create({ data: { actorId: '', agentId: '', authorRole: '', deliveredRunId: '', kind: '', model: '', parts: '', threadId: '', visibility: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformAgentMessage.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformAgentMessage.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformAgentPersona` + +CRUD operations for PlatformAgentPersona records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `config` | JSON | Yes | +| `createdAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | +| `description` | String | Yes | +| `id` | UUID | No | +| `isActive` | Boolean | Yes | +| `name` | String | Yes | +| `resources` | String | Yes | +| `slug` | String | Yes | +| `systemPrompt` | String | Yes | +| `updatedAt` | Datetime | No | +| `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | + +**Operations:** + +```typescript +// List all platformAgentPersona records +const items = await db.platformAgentPersona.findMany({ select: { config: true, createdAt: true, createdBy: true, createdByPrincipal: true, description: true, id: true, isActive: true, name: true, resources: true, slug: true, systemPrompt: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Get one by id +const item = await db.platformAgentPersona.findOne({ id: '', select: { config: true, createdAt: true, createdBy: true, createdByPrincipal: true, description: true, id: true, isActive: true, name: true, resources: true, slug: true, systemPrompt: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Create +const created = await db.platformAgentPersona.create({ data: { config: '', createdBy: '', createdByPrincipal: '', description: '', isActive: '', name: '', resources: '', slug: '', systemPrompt: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformAgentPersona.update({ where: { id: '' }, data: { config: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformAgentPersona.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformAgentPlan` + +CRUD operations for PlatformAgentPlan records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `createdAt` | Datetime | No | +| `description` | String | Yes | +| `id` | UUID | No | +| `ownerId` | UUID | Yes | +| `status` | String | Yes | +| `threadId` | UUID | Yes | +| `title` | String | Yes | +| `updatedAt` | Datetime | No | +| `visibility` | String | Yes | + +**Operations:** + +```typescript +// List all platformAgentPlan records +const items = await db.platformAgentPlan.findMany({ select: { createdAt: true, description: true, id: true, ownerId: true, status: true, threadId: true, title: true, updatedAt: true, visibility: true } }).execute(); + +// Get one by id +const item = await db.platformAgentPlan.findOne({ id: '', select: { createdAt: true, description: true, id: true, ownerId: true, status: true, threadId: true, title: true, updatedAt: true, visibility: true } }).execute(); + +// Create +const created = await db.platformAgentPlan.create({ data: { description: '', ownerId: '', status: '', threadId: '', title: '', visibility: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformAgentPlan.update({ where: { id: '' }, data: { description: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformAgentPlan.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformAgentPrompt` + +CRUD operations for PlatformAgentPrompt records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `content` | String | Yes | +| `createdAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | +| `description` | String | Yes | +| `id` | UUID | No | +| `isDefault` | Boolean | Yes | +| `metadata` | JSON | Yes | +| `name` | String | Yes | +| `updatedAt` | Datetime | No | +| `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | + +**Operations:** + +```typescript +// List all platformAgentPrompt records +const items = await db.platformAgentPrompt.findMany({ select: { content: true, createdAt: true, createdBy: true, createdByPrincipal: true, description: true, id: true, isDefault: true, metadata: true, name: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Get one by id +const item = await db.platformAgentPrompt.findOne({ id: '', select: { content: true, createdAt: true, createdBy: true, createdByPrincipal: true, description: true, id: true, isDefault: true, metadata: true, name: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Create +const created = await db.platformAgentPrompt.create({ data: { content: '', createdBy: '', createdByPrincipal: '', description: '', isDefault: '', metadata: '', name: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformAgentPrompt.update({ where: { id: '' }, data: { content: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformAgentPrompt.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformAgentResourceChunk` + +CRUD operations for PlatformAgentResourceChunk records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `body` | String | Yes | +| `chunkIndex` | Int | Yes | +| `createdAt` | Datetime | No | +| `embedding` | Vector | Yes | +| `embeddingVectorDistance` | Float | Yes | +| `id` | UUID | No | +| `metadata` | JSON | Yes | +| `platformAgentResourceId` | UUID | Yes | +| `searchScore` | Float | Yes | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all platformAgentResourceChunk records +const items = await db.platformAgentResourceChunk.findMany({ select: { body: true, chunkIndex: true, createdAt: true, embedding: true, embeddingVectorDistance: true, id: true, metadata: true, platformAgentResourceId: true, searchScore: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.platformAgentResourceChunk.findOne({ id: '', select: { body: true, chunkIndex: true, createdAt: true, embedding: true, embeddingVectorDistance: true, id: true, metadata: true, platformAgentResourceId: true, searchScore: true, updatedAt: true } }).execute(); + +// Create +const created = await db.platformAgentResourceChunk.create({ data: { body: '', chunkIndex: '', embedding: '', embeddingVectorDistance: '', metadata: '', platformAgentResourceId: '', searchScore: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformAgentResourceChunk.update({ where: { id: '' }, data: { body: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformAgentResourceChunk.delete({ where: { id: '' } }).execute(); +``` + +> **pgvector embedding fields:** `embedding` +> High-dimensional vector columns for semantic similarity search. Query via the Unified Search API pgvector adapter using cosine, L2, or inner-product distance. + +### `db.platformAgentResource` + +CRUD operations for PlatformAgentResource records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `archivedAt` | Datetime | Yes | +| `body` | String | Yes | +| `bodyTrgmSimilarity` | Float | Yes | +| `createdAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | +| `description` | String | Yes | +| `descriptionTrgmSimilarity` | Float | Yes | +| `embedding` | Vector | Yes | +| `embeddingUpdatedAt` | Datetime | Yes | +| `embeddingVectorDistance` | Float | Yes | +| `id` | UUID | No | +| `isActive` | Boolean | Yes | +| `isArchived` | Boolean | Yes | +| `keywords` | String | Yes | +| `kind` | String | Yes | +| `kindTrgmSimilarity` | Float | Yes | +| `metadata` | JSON | Yes | +| `search` | FullText | Yes | +| `searchScore` | Float | Yes | +| `searchTsvRank` | Float | Yes | +| `slug` | String | Yes | +| `title` | String | Yes | +| `titleTrgmSimilarity` | Float | Yes | +| `updatedAt` | Datetime | No | +| `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | + +**Operations:** + +```typescript +// List all platformAgentResource records +const items = await db.platformAgentResource.findMany({ select: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Get one by id +const item = await db.platformAgentResource.findOne({ id: '', select: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Create +const created = await db.platformAgentResource.create({ data: { archivedAt: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', isActive: '', isArchived: '', keywords: '', kind: '', kindTrgmSimilarity: '', metadata: '', search: '', searchScore: '', searchTsvRank: '', slug: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformAgentResource.update({ where: { id: '' }, data: { archivedAt: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformAgentResource.delete({ where: { id: '' } }).execute(); +``` + +> **pgvector embedding fields:** `embedding` +> High-dimensional vector columns for semantic similarity search. Query via the Unified Search API pgvector adapter using cosine, L2, or inner-product distance. + +> **Unified Search API fields:** `search` +> Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. + +### `db.platformAgentRun` + +CRUD operations for PlatformAgentRun records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `actorId` | UUID | Yes | +| `artifacts` | JSON | Yes | +| `attempt` | Int | Yes | +| `baseCommit` | String | Yes | +| `branch` | String | Yes | +| `createdAt` | Datetime | No | +| `databaseId` | UUID | Yes | +| `deadlineAt` | Datetime | Yes | +| `entityId` | UUID | Yes | +| `error` | String | Yes | +| `executionId` | UUID | Yes | +| `finishedAt` | Datetime | Yes | +| `headCommit` | String | Yes | +| `id` | UUID | No | +| `lastEventSeq` | Int | Yes | +| `parentRunId` | UUID | Yes | +| `placement` | String | Yes | +| `principalId` | UUID | Yes | +| `repoUrl` | String | Yes | +| `startedAt` | Datetime | Yes | +| `status` | String | Yes | +| `threadId` | UUID | Yes | +| `tokenUsage` | JSON | Yes | +| `totalCost` | BigFloat | Yes | +| `updatedAt` | Datetime | No | +| `visibility` | String | Yes | + +**Operations:** + +```typescript +// List all platformAgentRun records +const items = await db.platformAgentRun.findMany({ select: { actorId: true, artifacts: true, attempt: true, baseCommit: true, branch: true, createdAt: true, databaseId: true, deadlineAt: true, entityId: true, error: true, executionId: true, finishedAt: true, headCommit: true, id: true, lastEventSeq: true, parentRunId: true, placement: true, principalId: true, repoUrl: true, startedAt: true, status: true, threadId: true, tokenUsage: true, totalCost: true, updatedAt: true, visibility: true } }).execute(); + +// Get one by id +const item = await db.platformAgentRun.findOne({ id: '', select: { actorId: true, artifacts: true, attempt: true, baseCommit: true, branch: true, createdAt: true, databaseId: true, deadlineAt: true, entityId: true, error: true, executionId: true, finishedAt: true, headCommit: true, id: true, lastEventSeq: true, parentRunId: true, placement: true, principalId: true, repoUrl: true, startedAt: true, status: true, threadId: true, tokenUsage: true, totalCost: true, updatedAt: true, visibility: true } }).execute(); + +// Create +const created = await db.platformAgentRun.create({ data: { actorId: '', artifacts: '', attempt: '', baseCommit: '', branch: '', databaseId: '', deadlineAt: '', entityId: '', error: '', executionId: '', finishedAt: '', headCommit: '', lastEventSeq: '', parentRunId: '', placement: '', principalId: '', repoUrl: '', startedAt: '', status: '', threadId: '', tokenUsage: '', totalCost: '', visibility: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformAgentRun.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformAgentRun.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformAgentRunWorkspace` + +CRUD operations for PlatformAgentRunWorkspace records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `actorId` | UUID | Yes | +| `artifacts` | JSON | Yes | +| `baseBranch` | String | Yes | +| `baseCommit` | String | Yes | +| `branch` | String | Yes | +| `clonedAt` | Datetime | Yes | +| `createdAt` | Datetime | No | +| `headCommit` | String | Yes | +| `id` | UUID | No | +| `lastUsedAt` | Datetime | Yes | +| `ordinal` | Int | Yes | +| `provider` | String | Yes | +| `publication` | String | Yes | +| `repo` | String | Yes | +| `repositoryId` | UUID | Yes | +| `runId` | UUID | Yes | +| `state` | String | Yes | +| `updatedAt` | Datetime | No | +| `visibility` | String | Yes | + +**Operations:** + +```typescript +// List all platformAgentRunWorkspace records +const items = await db.platformAgentRunWorkspace.findMany({ select: { actorId: true, artifacts: true, baseBranch: true, baseCommit: true, branch: true, clonedAt: true, createdAt: true, headCommit: true, id: true, lastUsedAt: true, ordinal: true, provider: true, publication: true, repo: true, repositoryId: true, runId: true, state: true, updatedAt: true, visibility: true } }).execute(); + +// Get one by id +const item = await db.platformAgentRunWorkspace.findOne({ id: '', select: { actorId: true, artifacts: true, baseBranch: true, baseCommit: true, branch: true, clonedAt: true, createdAt: true, headCommit: true, id: true, lastUsedAt: true, ordinal: true, provider: true, publication: true, repo: true, repositoryId: true, runId: true, state: true, updatedAt: true, visibility: true } }).execute(); + +// Create +const created = await db.platformAgentRunWorkspace.create({ data: { actorId: '', artifacts: '', baseBranch: '', baseCommit: '', branch: '', clonedAt: '', headCommit: '', lastUsedAt: '', ordinal: '', provider: '', publication: '', repo: '', repositoryId: '', runId: '', state: '', visibility: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformAgentRunWorkspace.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformAgentRunWorkspace.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformAgentTask` + +CRUD operations for PlatformAgentTask records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `actorId` | UUID | Yes | +| `approvalFeedback` | String | Yes | +| `approvalStatus` | String | Yes | +| `approvedAt` | Datetime | Yes | +| `approvedBy` | UUID | Yes | +| `createdAt` | Datetime | No | +| `description` | String | Yes | +| `error` | String | Yes | +| `id` | UUID | No | +| `orderIndex` | Int | Yes | +| `planId` | UUID | Yes | +| `requiresApproval` | Boolean | Yes | +| `source` | String | Yes | +| `status` | String | Yes | +| `updatedAt` | Datetime | No | +| `visibility` | String | Yes | + +**Operations:** + +```typescript +// List all platformAgentTask records +const items = await db.platformAgentTask.findMany({ select: { actorId: true, approvalFeedback: true, approvalStatus: true, approvedAt: true, approvedBy: true, createdAt: true, description: true, error: true, id: true, orderIndex: true, planId: true, requiresApproval: true, source: true, status: true, updatedAt: true, visibility: true } }).execute(); + +// Get one by id +const item = await db.platformAgentTask.findOne({ id: '', select: { actorId: true, approvalFeedback: true, approvalStatus: true, approvedAt: true, approvedBy: true, createdAt: true, description: true, error: true, id: true, orderIndex: true, planId: true, requiresApproval: true, source: true, status: true, updatedAt: true, visibility: true } }).execute(); + +// Create +const created = await db.platformAgentTask.create({ data: { actorId: '', approvalFeedback: '', approvalStatus: '', approvedAt: '', approvedBy: '', description: '', error: '', orderIndex: '', planId: '', requiresApproval: '', source: '', status: '', visibility: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformAgentTask.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformAgentTask.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformAgentThread` + +CRUD operations for PlatformAgentThread records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `agentId` | UUID | Yes | +| `archivedAt` | Datetime | Yes | +| `createdAt` | Datetime | No | +| `id` | UUID | No | +| `isArchived` | Boolean | Yes | +| `mode` | String | Yes | +| `model` | String | Yes | +| `ownerId` | UUID | Yes | +| `parentThreadId` | UUID | Yes | +| `promptTemplateId` | UUID | Yes | +| `status` | String | Yes | +| `systemPrompt` | String | Yes | +| `tags` | String | Yes | +| `title` | String | Yes | +| `updatedAt` | Datetime | No | +| `visibility` | String | Yes | + +**Operations:** + +```typescript +// List all platformAgentThread records +const items = await db.platformAgentThread.findMany({ select: { agentId: true, archivedAt: true, createdAt: true, id: true, isArchived: true, mode: true, model: true, ownerId: true, parentThreadId: true, promptTemplateId: true, status: true, systemPrompt: true, tags: true, title: true, updatedAt: true, visibility: true } }).execute(); + +// Get one by id +const item = await db.platformAgentThread.findOne({ id: '', select: { agentId: true, archivedAt: true, createdAt: true, id: true, isArchived: true, mode: true, model: true, ownerId: true, parentThreadId: true, promptTemplateId: true, status: true, systemPrompt: true, tags: true, title: true, updatedAt: true, visibility: true } }).execute(); + +// Create +const created = await db.platformAgentThread.create({ data: { agentId: '', archivedAt: '', isArchived: '', mode: '', model: '', ownerId: '', parentThreadId: '', promptTemplateId: '', status: '', systemPrompt: '', tags: '', title: '', visibility: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformAgentThread.update({ where: { id: '' }, data: { agentId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformAgentThread.delete({ where: { id: '' } }).execute(); +``` + ## Custom Operations ### `db.mutation.provisionBucket` -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. +Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. - **Type:** mutation - **Arguments:** diff --git a/sdk/constructive-sdk/src/agent/orm/index.ts b/sdk/constructive-sdk/src/agent/orm/index.ts index 5ca8fcc3eb..ebb397965b 100644 --- a/sdk/constructive-sdk/src/agent/orm/index.ts +++ b/sdk/constructive-sdk/src/agent/orm/index.ts @@ -14,6 +14,18 @@ import { AgentResourceChunkModel } from './models/agentResourceChunk'; import { AgentResourceModel } from './models/agentResource'; import { AgentTaskModel } from './models/agentTask'; import { AgentThreadModel } from './models/agentThread'; +import { PlatformAgentModel } from './models/platformAgent'; +import { PlatformAgentEventModel } from './models/platformAgentEvent'; +import { PlatformAgentMessageModel } from './models/platformAgentMessage'; +import { PlatformAgentPersonaModel } from './models/platformAgentPersona'; +import { PlatformAgentPlanModel } from './models/platformAgentPlan'; +import { PlatformAgentPromptModel } from './models/platformAgentPrompt'; +import { PlatformAgentResourceChunkModel } from './models/platformAgentResourceChunk'; +import { PlatformAgentResourceModel } from './models/platformAgentResource'; +import { PlatformAgentRunModel } from './models/platformAgentRun'; +import { PlatformAgentRunWorkspaceModel } from './models/platformAgentRunWorkspace'; +import { PlatformAgentTaskModel } from './models/platformAgentTask'; +import { PlatformAgentThreadModel } from './models/platformAgentThread'; import { createMutationOperations } from './mutation'; export type { OrmClientConfig, QueryResult, GraphQLError, GraphQLAdapter } from './client'; export { GraphQLRequestError, FetchAdapter } from './client'; @@ -56,6 +68,18 @@ export function createClient(config: OrmClientConfig) { agentResource: new AgentResourceModel(client), agentTask: new AgentTaskModel(client), agentThread: new AgentThreadModel(client), + platformAgent: new PlatformAgentModel(client), + platformAgentEvent: new PlatformAgentEventModel(client), + platformAgentMessage: new PlatformAgentMessageModel(client), + platformAgentPersona: new PlatformAgentPersonaModel(client), + platformAgentPlan: new PlatformAgentPlanModel(client), + platformAgentPrompt: new PlatformAgentPromptModel(client), + platformAgentResourceChunk: new PlatformAgentResourceChunkModel(client), + platformAgentResource: new PlatformAgentResourceModel(client), + platformAgentRun: new PlatformAgentRunModel(client), + platformAgentRunWorkspace: new PlatformAgentRunWorkspaceModel(client), + platformAgentTask: new PlatformAgentTaskModel(client), + platformAgentThread: new PlatformAgentThreadModel(client), mutation: createMutationOperations(client), }; } diff --git a/sdk/constructive-sdk/src/agent/orm/input-types.ts b/sdk/constructive-sdk/src/agent/orm/input-types.ts index dd84bc366e..afbd94a971 100644 --- a/sdk/constructive-sdk/src/agent/orm/input-types.ts +++ b/sdk/constructive-sdk/src/agent/orm/input-types.ts @@ -267,6 +267,8 @@ export interface AgentMessage { /** Database that owns this resource (database-scoped isolation) */ databaseId?: string | null; id: string; + /** Turn kind: user, assistant, system, or interrupt (arrived mid-run and redirects it) */ + kind?: string | null; /** LLM model that generated this response */ model?: string | null; /** Message content: TextPart and ToolPart array */ @@ -274,6 +276,8 @@ export interface AgentMessage { /** Foreign key to agent_thread */ threadId?: string | null; updatedAt?: string | null; + /** Who may read this message, inherited from the thread */ + visibility?: string | null; } /** Agent persona templates (role, system prompt, default skills/knowledge) */ export interface AgentPersona { @@ -281,6 +285,7 @@ export interface AgentPersona { config?: Record | null; createdAt?: string | null; createdBy?: string | null; + createdByPrincipal?: string | null; /** Database that owns this resource (database-scoped isolation) */ databaseId?: string | null; /** Brief description of this persona role */ @@ -298,6 +303,7 @@ export interface AgentPersona { systemPrompt?: string | null; updatedAt?: string | null; updatedBy?: string | null; + updatedByPrincipal?: string | null; } /** Workflow plan attached to an agent thread with ordered tasks and optional approval gates */ export interface AgentPlan { @@ -316,6 +322,8 @@ export interface AgentPlan { /** Human-readable plan name */ title?: string | null; updatedAt?: string | null; + /** Who may read this plan, inherited from the thread */ + visibility?: string | null; } /** Shared system prompt templates for agent conversations */ export interface AgentPrompt { @@ -323,6 +331,7 @@ export interface AgentPrompt { content?: string | null; createdAt?: string | null; createdBy?: string | null; + createdByPrincipal?: string | null; /** Database that owns this resource (database-scoped isolation) */ databaseId?: string | null; /** What this prompt template is for */ @@ -336,12 +345,15 @@ export interface AgentPrompt { name?: string | null; updatedAt?: string | null; updatedBy?: string | null; + updatedByPrincipal?: string | null; } export interface AgentResourceChunk { agentResourceId?: string | null; body?: string | null; chunkIndex?: number | null; createdAt?: string | null; + /** Policy-required field derived from source table (used by AuthzRelatedEntityMembership) */ + databaseId?: string | null; embedding?: number[] | null; /** VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. */ embeddingVectorDistance?: number | null; @@ -361,6 +373,7 @@ export interface AgentResource { bodyTrgmSimilarity?: number | null; createdAt?: string | null; createdBy?: string | null; + createdByPrincipal?: string | null; /** Database that owns this resource (database-scoped isolation) */ databaseId?: string | null; /** Brief description of this resource */ @@ -397,6 +410,7 @@ export interface AgentResource { titleTrgmSimilarity?: number | null; updatedAt?: string | null; updatedBy?: string | null; + updatedByPrincipal?: string | null; } /** Task within a plan, with ordering and optional approval gates */ export interface AgentTask { @@ -429,6 +443,8 @@ export interface AgentTask { /** Current status of this task */ status?: string | null; updatedAt?: string | null; + /** Who may read this task, inherited from its parent */ + visibility?: string | null; } /** Top-level AI/LLM conversation thread */ export interface AgentThread { @@ -461,6 +477,353 @@ export interface AgentThread { /** Human-readable conversation title */ title?: string | null; updatedAt?: string | null; + /** Who may read this thread: private (owner only) or entity (the scope's members) */ + visibility?: string | null; +} +/** Agent instance registry (human-managed or ephemeral sub-agents) */ +export interface PlatformAgent { + /** Per-instance config overrides (model, temperature, tools) */ + config?: Record | null; + createdAt?: string | null; + id: string; + /** If true, agent is deleted when its spawning thread is deleted */ + isEphemeral?: boolean | null; + /** Display name for this agent instance */ + name?: string | null; + /** Human who owns/manages this agent */ + ownerId?: string | null; + /** Parent agent (for sub-agent delegation hierarchy) */ + parentId?: string | null; + /** Persona template this agent was created from */ + personaId?: string | null; + /** Agent lifecycle status: active, paused, terminated */ + status?: string | null; + /** System prompt override (NULL = inherit from persona) */ + systemPrompt?: string | null; + updatedAt?: string | null; +} +/** Append-only transcript of an agent run: one agent session entry per row, stored verbatim */ +export interface PlatformAgentEvent { + /** User whose run this entry belongs to, inherited from the run */ + actorId?: string | null; + createdAt?: string | null; + /** The agent session entry, verbatim — every rendered surface is a projection of it */ + entry?: Record | null; + id: string; + /** When the writer produced this entry, by its own clock */ + recordedAt?: string | null; + /** Foreign key to agent_run */ + runId?: string | null; + /** Position of this entry in the run, 1-based and gapless */ + seq?: number | null; + /** Transcript format this entry is encoded in */ + transcriptFormat?: string | null; + /** Version of that transcript format this entry was written in */ + transcriptVersion?: number | null; + updatedAt?: string | null; + /** Who may read this entry, inherited from the run */ + visibility?: string | null; +} +/** Message within an agent thread with TextPart/ToolPart jsonb parts */ +export interface PlatformAgentMessage { + /** User who authored this message */ + actorId?: string | null; + /** Agent that authored this message (NULL for human messages) */ + agentId?: string | null; + /** Who authored this message: user or assistant */ + authorRole?: string | null; + createdAt?: string | null; + /** Run that consumed this message; null while it is still queued */ + deliveredRunId?: string | null; + id: string; + /** Turn kind: user, assistant, system, or interrupt (arrived mid-run and redirects it) */ + kind?: string | null; + /** LLM model that generated this response */ + model?: string | null; + /** Message content: TextPart and ToolPart array */ + parts?: Record | null; + /** Foreign key to agent_thread */ + threadId?: string | null; + updatedAt?: string | null; + /** Who may read this message, inherited from the thread */ + visibility?: string | null; +} +/** Agent persona templates (role, system prompt, default skills/knowledge) */ +export interface PlatformAgentPersona { + /** Model preferences, temperature, tool access, constraints */ + config?: Record | null; + createdAt?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + /** Brief description of this persona role */ + description?: string | null; + id: string; + /** Whether this persona is available for use */ + isActive?: boolean | null; + /** Display name for this persona */ + name?: string | null; + /** Slugs of agent_resource entries to link when spawning */ + resources?: string[] | null; + /** Unique human-readable identifier for this persona */ + slug?: string | null; + /** Default system prompt for agents using this persona */ + systemPrompt?: string | null; + updatedAt?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +/** Workflow plan attached to an agent thread with ordered tasks and optional approval gates */ +export interface PlatformAgentPlan { + createdAt?: string | null; + /** Overall goal or context for this plan */ + description?: string | null; + id: string; + /** User who owns this plan */ + ownerId?: string | null; + /** Plan lifecycle: draft, active, completed, failed, cancelled */ + status?: string | null; + /** Foreign key to agent_thread */ + threadId?: string | null; + /** Human-readable plan name */ + title?: string | null; + updatedAt?: string | null; + /** Who may read this plan, inherited from the thread */ + visibility?: string | null; +} +/** Shared system prompt templates for agent conversations */ +export interface PlatformAgentPrompt { + /** The system prompt template content */ + content?: string | null; + createdAt?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + /** What this prompt template is for */ + description?: string | null; + id: string; + /** Whether this is the default prompt for the entity/app */ + isDefault?: boolean | null; + /** Variables, tags, category metadata */ + metadata?: Record | null; + /** Unique name for lookup (e.g. default, code-review, sales-assistant) */ + name?: string | null; + updatedAt?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +export interface PlatformAgentResourceChunk { + body?: string | null; + chunkIndex?: number | null; + createdAt?: string | null; + embedding?: number[] | null; + /** VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. */ + embeddingVectorDistance?: number | null; + id: string; + metadata?: Record | null; + platformAgentResourceId?: string | null; + /** Composite search relevance score (0..1, higher = more relevant). Computed using Reciprocal Rank Fusion (RRF) across all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. */ + searchScore?: number | null; + updatedAt?: string | null; +} +/** Unified skills and knowledge resources for agent retrieval */ +export interface PlatformAgentResource { + /** Timestamp when this record was archived, NULL if active */ + archivedAt?: string | null; + /** Full content (instructions for skills, reference text for knowledge) */ + body?: string | null; + /** TRGM similarity when searching `body`. Returns null when no trgm search filter is active. */ + bodyTrgmSimilarity?: number | null; + createdAt?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + /** Brief description of this resource */ + description?: string | null; + /** TRGM similarity when searching `description`. Returns null when no trgm search filter is active. */ + descriptionTrgmSimilarity?: number | null; + embedding?: number[] | null; + embeddingUpdatedAt?: string | null; + /** VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. */ + embeddingVectorDistance?: number | null; + id: string; + /** Whether this resource is active and retrievable */ + isActive?: boolean | null; + /** Whether this record has been archived by the user */ + isArchived?: boolean | null; + /** Keywords for deterministic retrieval routing */ + keywords?: string[] | null; + /** Resource type: skill, knowledge, or convention */ + kind?: string | null; + /** TRGM similarity when searching `kind`. Returns null when no trgm search filter is active. */ + kindTrgmSimilarity?: number | null; + /** Structured metadata: category, version, author, custom attributes */ + metadata?: Record | null; + search?: string | null; + /** Composite search relevance score (0..1, higher = more relevant). Computed using Reciprocal Rank Fusion (RRF) across all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. */ + searchScore?: number | null; + /** TSV rank when searching `search`. Returns null when no tsv search filter is active. */ + searchTsvRank?: number | null; + /** Unique human-readable identifier for portable references */ + slug?: string | null; + /** Resource name or title */ + title?: string | null; + /** TRGM similarity when searching `title`. Returns null when no trgm search filter is active. */ + titleTrgmSimilarity?: number | null; + updatedAt?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +/** One supervised agent run of a thread: its placement, workspace, cursor and artifacts */ +export interface PlatformAgentRun { + /** User who invoked this run (audit/provenance; billing is entity_id) */ + actorId?: string | null; + /** What the run produced: commits, diffs, pull requests, usage totals */ + artifacts?: Record | null; + /** Attempt number within this run lineage */ + attempt?: number | null; + /** Commit the run started from */ + baseCommit?: string | null; + /** Branch the run commits to */ + branch?: string | null; + createdAt?: string | null; + /** Tenant database this run is attributed to (usage/billing attribution) */ + databaseId?: string | null; + /** When a supervisor should consider this run abandoned */ + deadlineAt?: string | null; + /** Entity billed for this run: an org the actor invoked on behalf of, or the actor themselves */ + entityId?: string | null; + /** Failure reason when status is failed */ + error?: string | null; + /** Execution currently attached to this run, by id and without a foreign key; null when the run holds no compute */ + executionId?: string | null; + /** When the run reached a terminal status */ + finishedAt?: string | null; + /** Commit the run has reached */ + headCommit?: string | null; + id: string; + /** Highest event seq appended for this run; 0 before the first event */ + lastEventSeq?: number | null; + /** Run this one retries, by id and without a foreign key so lineage survives pruning */ + parentRunId?: string | null; + /** Where this run executes: cloud (a job) or local (an embedded host) */ + placement?: string | null; + /** Principal that invoked this run; equals actor_id when the actor acted directly */ + principalId?: string | null; + /** Git remote the run works against — the workspace sync protocol */ + repoUrl?: string | null; + /** When the run began executing */ + startedAt?: string | null; + /** Lifecycle state: pending, running, waiting, idle, interrupted, succeeded, failed, cancelled */ + status?: string | null; + /** Foreign key to agent_thread */ + threadId?: string | null; + /** Token counts this run accumulated, per model, as the runtime reports them; null until settled */ + tokenUsage?: Record | null; + /** Settled cost of this run in the billing currency, summarising its metered rows; null until settled */ + totalCost?: string | null; + updatedAt?: string | null; + /** Who may read this run, inherited from the thread */ + visibility?: string | null; +} +/** One repository an agent run works in: its remote, branch, commits and how the work is published */ +export interface PlatformAgentRunWorkspace { + /** User whose run this workspace belongs to, inherited from the run */ + actorId?: string | null; + /** What publishing this workspace produced: diff stats, a pull request, a stored patch */ + artifacts?: Record | null; + /** Branch the workspace was cut from, and what a pull request merges into */ + baseBranch?: string | null; + /** Commit the workspace was cut from; fixed once recorded */ + baseCommit?: string | null; + /** Branch this run commits to in this repository */ + branch?: string | null; + /** When an execution first cloned this workspace */ + clonedAt?: string | null; + createdAt?: string | null; + /** Commit the work in this repository has reached */ + headCommit?: string | null; + id: string; + /** When an execution last worked in this workspace; what a reclaim policy reads */ + lastUsedAt?: string | null; + /** Position of this workspace among the run's, 1-based and in clone order */ + ordinal?: number | null; + /** Git host this workspace was cloned from, as the runtime names it: github, local */ + provider?: string | null; + /** How the work is published: pull_request, push, patch_artifact or none */ + publication?: string | null; + /** Repository as its provider names it (owner/name) */ + repo?: string | null; + /** Catalog repository this workspace was cloned from, when the platform hosts it */ + repositoryId?: string | null; + /** Foreign key to agent_run */ + runId?: string | null; + /** Whether the tree still exists: active (on disk), cold (reclaimed, restorable from head_commit) or purged */ + state?: string | null; + updatedAt?: string | null; + /** Who may read this workspace, inherited from the run */ + visibility?: string | null; +} +/** Task within a plan, with ordering and optional approval gates */ +export interface PlatformAgentTask { + /** User who authored this task */ + actorId?: string | null; + /** Reviewer feedback or reason for the decision */ + approvalFeedback?: string | null; + /** Approval decision: pending, approved, rejected (NULL if not an approval task) */ + approvalStatus?: string | null; + /** Timestamp of the approval or rejection decision */ + approvedAt?: string | null; + /** User who approved or rejected this task */ + approvedBy?: string | null; + createdAt?: string | null; + /** Natural-language description of the work to do */ + description?: string | null; + /** Error message captured when the task failed */ + error?: string | null; + id: string; + /** Position within the plan (for ordered task lists) */ + orderIndex?: number | null; + /** Foreign key to agent_plan */ + planId?: string | null; + /** Whether this task is an approval gate requiring human decision */ + requiresApproval?: boolean | null; + /** Who created the task: agent or user */ + source?: string | null; + /** Current status of this task */ + status?: string | null; + updatedAt?: string | null; + /** Who may read this task, inherited from its parent */ + visibility?: string | null; +} +/** Top-level AI/LLM conversation thread */ +export interface PlatformAgentThread { + /** Agent instance assigned to this thread */ + agentId?: string | null; + /** Timestamp when this record was archived, NULL if active */ + archivedAt?: string | null; + createdAt?: string | null; + id: string; + /** Whether this record has been archived by the user */ + isArchived?: boolean | null; + /** Conversation mode: ask (plain Q&A) or agent (tool-enabled) */ + mode?: string | null; + /** LLM model id this thread is bound to */ + model?: string | null; + /** User who owns this thread */ + ownerId?: string | null; + /** Parent thread that spawned this sub-conversation */ + parentThreadId?: string | null; + /** Optional FK to a shared prompt template */ + promptTemplateId?: string | null; + /** Current status of this thread */ + status?: string | null; + /** System prompt active for this thread */ + systemPrompt?: string | null; + /** User-defined labels for organizing and filtering threads */ + tags?: string[] | null; + /** Human-readable conversation title */ + title?: string | null; + updatedAt?: string | null; + /** Who may read this thread: private (owner only) or entity (the scope's members) */ + visibility?: string | null; } // ============ Relation Helper Types ============ export interface ConnectionResult { @@ -513,6 +876,58 @@ export interface AgentThreadRelations { agentPlansByThreadId?: ConnectionResult; agentThreadsByParentThreadId?: ConnectionResult; } +export interface PlatformAgentRelations { + parent?: PlatformAgent | null; + persona?: PlatformAgentPersona | null; + childPlatformAgents?: ConnectionResult; + platformAgentMessagesByAgentId?: ConnectionResult; + platformAgentThreadsByAgentId?: ConnectionResult; +} +export interface PlatformAgentEventRelations { + run?: PlatformAgentRun | null; +} +export interface PlatformAgentMessageRelations { + agent?: PlatformAgent | null; + deliveredRun?: PlatformAgentRun | null; + thread?: PlatformAgentThread | null; +} +export interface PlatformAgentPersonaRelations { + platformAgentsByPersonaId?: ConnectionResult; +} +export interface PlatformAgentPlanRelations { + thread?: PlatformAgentThread | null; + platformAgentTasksByPlanId?: ConnectionResult; +} +export interface PlatformAgentPromptRelations { + platformAgentThreadsByPromptTemplateId?: ConnectionResult; +} +export interface PlatformAgentResourceChunkRelations { + platformAgentResource?: PlatformAgentResource | null; +} +export interface PlatformAgentResourceRelations { + platformAgentResourceChunks?: ConnectionResult; +} +export interface PlatformAgentRunRelations { + thread?: PlatformAgentThread | null; + platformAgentEventsByRunId?: ConnectionResult; + platformAgentMessagesByDeliveredRunId?: ConnectionResult; + platformAgentRunWorkspacesByRunId?: ConnectionResult; +} +export interface PlatformAgentRunWorkspaceRelations { + run?: PlatformAgentRun | null; +} +export interface PlatformAgentTaskRelations { + plan?: PlatformAgentPlan | null; +} +export interface PlatformAgentThreadRelations { + agent?: PlatformAgent | null; + parentThread?: PlatformAgentThread | null; + promptTemplate?: PlatformAgentPrompt | null; + platformAgentMessagesByThreadId?: ConnectionResult; + platformAgentPlansByThreadId?: ConnectionResult; + platformAgentRunsByThreadId?: ConnectionResult; + platformAgentThreadsByParentThreadId?: ConnectionResult; +} // ============ Entity Types With Relations ============ export type AgentWithRelations = Agent & AgentRelations; export type AgentMessageWithRelations = AgentMessage & AgentMessageRelations; @@ -523,6 +938,23 @@ export type AgentResourceChunkWithRelations = AgentResourceChunk & AgentResource export type AgentResourceWithRelations = AgentResource & AgentResourceRelations; export type AgentTaskWithRelations = AgentTask & AgentTaskRelations; export type AgentThreadWithRelations = AgentThread & AgentThreadRelations; +export type PlatformAgentWithRelations = PlatformAgent & PlatformAgentRelations; +export type PlatformAgentEventWithRelations = PlatformAgentEvent & PlatformAgentEventRelations; +export type PlatformAgentMessageWithRelations = PlatformAgentMessage & + PlatformAgentMessageRelations; +export type PlatformAgentPersonaWithRelations = PlatformAgentPersona & + PlatformAgentPersonaRelations; +export type PlatformAgentPlanWithRelations = PlatformAgentPlan & PlatformAgentPlanRelations; +export type PlatformAgentPromptWithRelations = PlatformAgentPrompt & PlatformAgentPromptRelations; +export type PlatformAgentResourceChunkWithRelations = PlatformAgentResourceChunk & + PlatformAgentResourceChunkRelations; +export type PlatformAgentResourceWithRelations = PlatformAgentResource & + PlatformAgentResourceRelations; +export type PlatformAgentRunWithRelations = PlatformAgentRun & PlatformAgentRunRelations; +export type PlatformAgentRunWorkspaceWithRelations = PlatformAgentRunWorkspace & + PlatformAgentRunWorkspaceRelations; +export type PlatformAgentTaskWithRelations = PlatformAgentTask & PlatformAgentTaskRelations; +export type PlatformAgentThreadWithRelations = PlatformAgentThread & PlatformAgentThreadRelations; // ============ Entity Select Types ============ export type AgentSelect = { config?: boolean; @@ -569,10 +1001,12 @@ export type AgentMessageSelect = { createdAt?: boolean; databaseId?: boolean; id?: boolean; + kind?: boolean; model?: boolean; parts?: boolean; threadId?: boolean; updatedAt?: boolean; + visibility?: boolean; agent?: { select: AgentSelect; }; @@ -584,6 +1018,7 @@ export type AgentPersonaSelect = { config?: boolean; createdAt?: boolean; createdBy?: boolean; + createdByPrincipal?: boolean; databaseId?: boolean; description?: boolean; id?: boolean; @@ -594,6 +1029,7 @@ export type AgentPersonaSelect = { systemPrompt?: boolean; updatedAt?: boolean; updatedBy?: boolean; + updatedByPrincipal?: boolean; agentsByPersonaId?: { select: AgentSelect; first?: number; @@ -611,6 +1047,7 @@ export type AgentPlanSelect = { threadId?: boolean; title?: boolean; updatedAt?: boolean; + visibility?: boolean; thread?: { select: AgentThreadSelect; }; @@ -625,6 +1062,7 @@ export type AgentPromptSelect = { content?: boolean; createdAt?: boolean; createdBy?: boolean; + createdByPrincipal?: boolean; databaseId?: boolean; description?: boolean; id?: boolean; @@ -633,6 +1071,7 @@ export type AgentPromptSelect = { name?: boolean; updatedAt?: boolean; updatedBy?: boolean; + updatedByPrincipal?: boolean; agentThreadsByPromptTemplateId?: { select: AgentThreadSelect; first?: number; @@ -645,6 +1084,7 @@ export type AgentResourceChunkSelect = { body?: boolean; chunkIndex?: boolean; createdAt?: boolean; + databaseId?: boolean; embedding?: boolean; embeddingVectorDistance?: boolean; id?: boolean; @@ -661,6 +1101,7 @@ export type AgentResourceSelect = { bodyTrgmSimilarity?: boolean; createdAt?: boolean; createdBy?: boolean; + createdByPrincipal?: boolean; databaseId?: boolean; description?: boolean; descriptionTrgmSimilarity?: boolean; @@ -682,6 +1123,7 @@ export type AgentResourceSelect = { titleTrgmSimilarity?: boolean; updatedAt?: boolean; updatedBy?: boolean; + updatedByPrincipal?: boolean; agentResourceChunks?: { select: AgentResourceChunkSelect; first?: number; @@ -706,6 +1148,7 @@ export type AgentTaskSelect = { source?: boolean; status?: boolean; updatedAt?: boolean; + visibility?: boolean; plan?: { select: AgentPlanSelect; }; @@ -727,6 +1170,7 @@ export type AgentThreadSelect = { tags?: boolean; title?: boolean; updatedAt?: boolean; + visibility?: boolean; agent?: { select: AgentSelect; }; @@ -755,20 +1199,353 @@ export type AgentThreadSelect = { orderBy?: AgentThreadOrderBy[]; }; }; -// ============ Table Filter Types ============ -export interface AgentFilter { - /** Filter by the object’s `agentMessages` relation. */ - agentMessages?: AgentToManyAgentMessageFilter; - /** `agentMessages` exist. */ - agentMessagesExist?: boolean; - /** Filter by the object’s `agentThreads` relation. */ - agentThreads?: AgentToManyAgentThreadFilter; - /** `agentThreads` exist. */ - agentThreadsExist?: boolean; - /** Checks for all expressions in this list. */ - and?: AgentFilter[]; - /** Filter by the object’s `childAgents` relation. */ - childAgents?: AgentToManyAgentFilter; +export type PlatformAgentSelect = { + config?: boolean; + createdAt?: boolean; + id?: boolean; + isEphemeral?: boolean; + name?: boolean; + ownerId?: boolean; + parentId?: boolean; + personaId?: boolean; + status?: boolean; + systemPrompt?: boolean; + updatedAt?: boolean; + parent?: { + select: PlatformAgentSelect; + }; + persona?: { + select: PlatformAgentPersonaSelect; + }; + childPlatformAgents?: { + select: PlatformAgentSelect; + first?: number; + filter?: PlatformAgentFilter; + orderBy?: PlatformAgentOrderBy[]; + }; + platformAgentMessagesByAgentId?: { + select: PlatformAgentMessageSelect; + first?: number; + filter?: PlatformAgentMessageFilter; + orderBy?: PlatformAgentMessageOrderBy[]; + }; + platformAgentThreadsByAgentId?: { + select: PlatformAgentThreadSelect; + first?: number; + filter?: PlatformAgentThreadFilter; + orderBy?: PlatformAgentThreadOrderBy[]; + }; +}; +export type PlatformAgentEventSelect = { + actorId?: boolean; + createdAt?: boolean; + entry?: boolean; + id?: boolean; + recordedAt?: boolean; + runId?: boolean; + seq?: boolean; + transcriptFormat?: boolean; + transcriptVersion?: boolean; + updatedAt?: boolean; + visibility?: boolean; + run?: { + select: PlatformAgentRunSelect; + }; +}; +export type PlatformAgentMessageSelect = { + actorId?: boolean; + agentId?: boolean; + authorRole?: boolean; + createdAt?: boolean; + deliveredRunId?: boolean; + id?: boolean; + kind?: boolean; + model?: boolean; + parts?: boolean; + threadId?: boolean; + updatedAt?: boolean; + visibility?: boolean; + agent?: { + select: PlatformAgentSelect; + }; + deliveredRun?: { + select: PlatformAgentRunSelect; + }; + thread?: { + select: PlatformAgentThreadSelect; + }; +}; +export type PlatformAgentPersonaSelect = { + config?: boolean; + createdAt?: boolean; + createdBy?: boolean; + createdByPrincipal?: boolean; + description?: boolean; + id?: boolean; + isActive?: boolean; + name?: boolean; + resources?: boolean; + slug?: boolean; + systemPrompt?: boolean; + updatedAt?: boolean; + updatedBy?: boolean; + updatedByPrincipal?: boolean; + platformAgentsByPersonaId?: { + select: PlatformAgentSelect; + first?: number; + filter?: PlatformAgentFilter; + orderBy?: PlatformAgentOrderBy[]; + }; +}; +export type PlatformAgentPlanSelect = { + createdAt?: boolean; + description?: boolean; + id?: boolean; + ownerId?: boolean; + status?: boolean; + threadId?: boolean; + title?: boolean; + updatedAt?: boolean; + visibility?: boolean; + thread?: { + select: PlatformAgentThreadSelect; + }; + platformAgentTasksByPlanId?: { + select: PlatformAgentTaskSelect; + first?: number; + filter?: PlatformAgentTaskFilter; + orderBy?: PlatformAgentTaskOrderBy[]; + }; +}; +export type PlatformAgentPromptSelect = { + content?: boolean; + createdAt?: boolean; + createdBy?: boolean; + createdByPrincipal?: boolean; + description?: boolean; + id?: boolean; + isDefault?: boolean; + metadata?: boolean; + name?: boolean; + updatedAt?: boolean; + updatedBy?: boolean; + updatedByPrincipal?: boolean; + platformAgentThreadsByPromptTemplateId?: { + select: PlatformAgentThreadSelect; + first?: number; + filter?: PlatformAgentThreadFilter; + orderBy?: PlatformAgentThreadOrderBy[]; + }; +}; +export type PlatformAgentResourceChunkSelect = { + body?: boolean; + chunkIndex?: boolean; + createdAt?: boolean; + embedding?: boolean; + embeddingVectorDistance?: boolean; + id?: boolean; + metadata?: boolean; + platformAgentResourceId?: boolean; + searchScore?: boolean; + updatedAt?: boolean; + platformAgentResource?: { + select: PlatformAgentResourceSelect; + }; +}; +export type PlatformAgentResourceSelect = { + archivedAt?: boolean; + body?: boolean; + bodyTrgmSimilarity?: boolean; + createdAt?: boolean; + createdBy?: boolean; + createdByPrincipal?: boolean; + description?: boolean; + descriptionTrgmSimilarity?: boolean; + embedding?: boolean; + embeddingUpdatedAt?: boolean; + embeddingVectorDistance?: boolean; + id?: boolean; + isActive?: boolean; + isArchived?: boolean; + keywords?: boolean; + kind?: boolean; + kindTrgmSimilarity?: boolean; + metadata?: boolean; + search?: boolean; + searchScore?: boolean; + searchTsvRank?: boolean; + slug?: boolean; + title?: boolean; + titleTrgmSimilarity?: boolean; + updatedAt?: boolean; + updatedBy?: boolean; + updatedByPrincipal?: boolean; + platformAgentResourceChunks?: { + select: PlatformAgentResourceChunkSelect; + first?: number; + filter?: PlatformAgentResourceChunkFilter; + orderBy?: PlatformAgentResourceChunkOrderBy[]; + }; +}; +export type PlatformAgentRunSelect = { + actorId?: boolean; + artifacts?: boolean; + attempt?: boolean; + baseCommit?: boolean; + branch?: boolean; + createdAt?: boolean; + databaseId?: boolean; + deadlineAt?: boolean; + entityId?: boolean; + error?: boolean; + executionId?: boolean; + finishedAt?: boolean; + headCommit?: boolean; + id?: boolean; + lastEventSeq?: boolean; + parentRunId?: boolean; + placement?: boolean; + principalId?: boolean; + repoUrl?: boolean; + startedAt?: boolean; + status?: boolean; + threadId?: boolean; + tokenUsage?: boolean; + totalCost?: boolean; + updatedAt?: boolean; + visibility?: boolean; + thread?: { + select: PlatformAgentThreadSelect; + }; + platformAgentEventsByRunId?: { + select: PlatformAgentEventSelect; + first?: number; + filter?: PlatformAgentEventFilter; + orderBy?: PlatformAgentEventOrderBy[]; + }; + platformAgentMessagesByDeliveredRunId?: { + select: PlatformAgentMessageSelect; + first?: number; + filter?: PlatformAgentMessageFilter; + orderBy?: PlatformAgentMessageOrderBy[]; + }; + platformAgentRunWorkspacesByRunId?: { + select: PlatformAgentRunWorkspaceSelect; + first?: number; + filter?: PlatformAgentRunWorkspaceFilter; + orderBy?: PlatformAgentRunWorkspaceOrderBy[]; + }; +}; +export type PlatformAgentRunWorkspaceSelect = { + actorId?: boolean; + artifacts?: boolean; + baseBranch?: boolean; + baseCommit?: boolean; + branch?: boolean; + clonedAt?: boolean; + createdAt?: boolean; + headCommit?: boolean; + id?: boolean; + lastUsedAt?: boolean; + ordinal?: boolean; + provider?: boolean; + publication?: boolean; + repo?: boolean; + repositoryId?: boolean; + runId?: boolean; + state?: boolean; + updatedAt?: boolean; + visibility?: boolean; + run?: { + select: PlatformAgentRunSelect; + }; +}; +export type PlatformAgentTaskSelect = { + actorId?: boolean; + approvalFeedback?: boolean; + approvalStatus?: boolean; + approvedAt?: boolean; + approvedBy?: boolean; + createdAt?: boolean; + description?: boolean; + error?: boolean; + id?: boolean; + orderIndex?: boolean; + planId?: boolean; + requiresApproval?: boolean; + source?: boolean; + status?: boolean; + updatedAt?: boolean; + visibility?: boolean; + plan?: { + select: PlatformAgentPlanSelect; + }; +}; +export type PlatformAgentThreadSelect = { + agentId?: boolean; + archivedAt?: boolean; + createdAt?: boolean; + id?: boolean; + isArchived?: boolean; + mode?: boolean; + model?: boolean; + ownerId?: boolean; + parentThreadId?: boolean; + promptTemplateId?: boolean; + status?: boolean; + systemPrompt?: boolean; + tags?: boolean; + title?: boolean; + updatedAt?: boolean; + visibility?: boolean; + agent?: { + select: PlatformAgentSelect; + }; + parentThread?: { + select: PlatformAgentThreadSelect; + }; + promptTemplate?: { + select: PlatformAgentPromptSelect; + }; + platformAgentMessagesByThreadId?: { + select: PlatformAgentMessageSelect; + first?: number; + filter?: PlatformAgentMessageFilter; + orderBy?: PlatformAgentMessageOrderBy[]; + }; + platformAgentPlansByThreadId?: { + select: PlatformAgentPlanSelect; + first?: number; + filter?: PlatformAgentPlanFilter; + orderBy?: PlatformAgentPlanOrderBy[]; + }; + platformAgentRunsByThreadId?: { + select: PlatformAgentRunSelect; + first?: number; + filter?: PlatformAgentRunFilter; + orderBy?: PlatformAgentRunOrderBy[]; + }; + platformAgentThreadsByParentThreadId?: { + select: PlatformAgentThreadSelect; + first?: number; + filter?: PlatformAgentThreadFilter; + orderBy?: PlatformAgentThreadOrderBy[]; + }; +}; +// ============ Table Filter Types ============ +export interface AgentFilter { + /** Filter by the object’s `agentMessages` relation. */ + agentMessages?: AgentToManyAgentMessageFilter; + /** `agentMessages` exist. */ + agentMessagesExist?: boolean; + /** Filter by the object’s `agentThreads` relation. */ + agentThreads?: AgentToManyAgentThreadFilter; + /** `agentThreads` exist. */ + agentThreadsExist?: boolean; + /** Checks for all expressions in this list. */ + and?: AgentFilter[]; + /** Filter by the object’s `childAgents` relation. */ + childAgents?: AgentToManyAgentFilter; /** `childAgents` exist. */ childAgentsExist?: boolean; /** Filter by the object’s `config` field. */ @@ -827,6 +1604,8 @@ export interface AgentMessageFilter { databaseId?: UUIDFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; /** Filter by the object’s `model` field. */ model?: StringFilter; /** Negates the expression. */ @@ -841,6 +1620,8 @@ export interface AgentMessageFilter { threadId?: UUIDFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `visibility` field. */ + visibility?: StringFilter; } export interface AgentPersonaFilter { /** Filter by the object’s `agentsByPersonaId` relation. */ @@ -855,6 +1636,8 @@ export interface AgentPersonaFilter { createdAt?: DatetimeFilter; /** Filter by the object’s `createdBy` field. */ createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; /** Filter by the object’s `description` field. */ @@ -879,6 +1662,8 @@ export interface AgentPersonaFilter { updatedAt?: DatetimeFilter; /** Filter by the object’s `updatedBy` field. */ updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } export interface AgentPlanFilter { /** Filter by the object’s `agentTasksByPlanId` relation. */ @@ -911,6 +1696,8 @@ export interface AgentPlanFilter { title?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `visibility` field. */ + visibility?: StringFilter; } export interface AgentPromptFilter { /** Filter by the object’s `agentThreadsByPromptTemplateId` relation. */ @@ -925,6 +1712,8 @@ export interface AgentPromptFilter { createdAt?: DatetimeFilter; /** Filter by the object’s `createdBy` field. */ createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; /** Filter by the object’s `description` field. */ @@ -945,6 +1734,8 @@ export interface AgentPromptFilter { updatedAt?: DatetimeFilter; /** Filter by the object’s `updatedBy` field. */ updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } export interface AgentResourceChunkFilter { /** Filter by the object’s `agentResource` relation. */ @@ -959,6 +1750,8 @@ export interface AgentResourceChunkFilter { chunkIndex?: IntFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; /** Filter by the object’s `id` field. */ @@ -989,6 +1782,8 @@ export interface AgentResourceFilter { createdAt?: DatetimeFilter; /** Filter by the object’s `createdBy` field. */ createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; /** Filter by the object’s `description` field. */ @@ -1041,6 +1836,8 @@ export interface AgentResourceFilter { updatedAt?: DatetimeFilter; /** Filter by the object’s `updatedBy` field. */ updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; /** VECTOR search on the `embedding` column. */ vectorEmbedding?: VectorNearbyInput; } @@ -1085,6 +1882,8 @@ export interface AgentTaskFilter { status?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `visibility` field. */ + visibility?: StringFilter; } export interface AgentThreadFilter { /** Filter by the object’s `agent` relation. */ @@ -1149,50 +1948,948 @@ export interface AgentThreadFilter { title?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `visibility` field. */ + visibility?: StringFilter; } -// ============ OrderBy Types ============ -export type AgentOrderBy = - | 'CONFIG_ASC' - | 'CONFIG_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'IS_EPHEMERAL_ASC' - | 'IS_EPHEMERAL_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'NATURAL' - | 'OWNER_ID_ASC' - | 'OWNER_ID_DESC' - | 'PARENT_ID_ASC' - | 'PARENT_ID_DESC' - | 'PERSONA_ID_ASC' - | 'PERSONA_ID_DESC' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'STATUS_ASC' - | 'STATUS_DESC' - | 'SYSTEM_PROMPT_ASC' - | 'SYSTEM_PROMPT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type AgentMessageOrderBy = - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'AGENT_ID_ASC' - | 'AGENT_ID_DESC' - | 'AUTHOR_ROLE_ASC' - | 'AUTHOR_ROLE_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'MODEL_ASC' +export interface PlatformAgentFilter { + /** Checks for all expressions in this list. */ + and?: PlatformAgentFilter[]; + /** Filter by the object’s `childPlatformAgents` relation. */ + childPlatformAgents?: PlatformAgentToManyPlatformAgentFilter; + /** `childPlatformAgents` exist. */ + childPlatformAgentsExist?: boolean; + /** Filter by the object’s `config` field. */ + config?: JSONFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isEphemeral` field. */ + isEphemeral?: BooleanFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: PlatformAgentFilter; + /** Checks for any expressions in this list. */ + or?: PlatformAgentFilter[]; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `parent` relation. */ + parent?: PlatformAgentFilter; + /** A related `parent` exists. */ + parentExists?: boolean; + /** Filter by the object’s `parentId` field. */ + parentId?: UUIDFilter; + /** Filter by the object’s `persona` relation. */ + persona?: PlatformAgentPersonaFilter; + /** A related `persona` exists. */ + personaExists?: boolean; + /** Filter by the object’s `personaId` field. */ + personaId?: UUIDFilter; + /** Filter by the object’s `platformAgentMessagesByAgentId` relation. */ + platformAgentMessagesByAgentId?: PlatformAgentToManyPlatformAgentMessageFilter; + /** `platformAgentMessagesByAgentId` exist. */ + platformAgentMessagesByAgentIdExist?: boolean; + /** Filter by the object’s `platformAgentThreadsByAgentId` relation. */ + platformAgentThreadsByAgentId?: PlatformAgentToManyPlatformAgentThreadFilter; + /** `platformAgentThreadsByAgentId` exist. */ + platformAgentThreadsByAgentIdExist?: boolean; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `systemPrompt` field. */ + systemPrompt?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} +export interface PlatformAgentEventFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: PlatformAgentEventFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `entry` field. */ + entry?: JSONFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformAgentEventFilter; + /** Checks for any expressions in this list. */ + or?: PlatformAgentEventFilter[]; + /** Filter by the object’s `recordedAt` field. */ + recordedAt?: DatetimeFilter; + /** Filter by the object’s `run` relation. */ + run?: PlatformAgentRunFilter; + /** Filter by the object’s `runId` field. */ + runId?: UUIDFilter; + /** Filter by the object’s `seq` field. */ + seq?: IntFilter; + /** Filter by the object’s `transcriptFormat` field. */ + transcriptFormat?: StringFilter; + /** Filter by the object’s `transcriptVersion` field. */ + transcriptVersion?: IntFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `visibility` field. */ + visibility?: StringFilter; +} +export interface PlatformAgentMessageFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `agent` relation. */ + agent?: PlatformAgentFilter; + /** A related `agent` exists. */ + agentExists?: boolean; + /** Filter by the object’s `agentId` field. */ + agentId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: PlatformAgentMessageFilter[]; + /** Filter by the object’s `authorRole` field. */ + authorRole?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `deliveredRun` relation. */ + deliveredRun?: PlatformAgentRunFilter; + /** A related `deliveredRun` exists. */ + deliveredRunExists?: boolean; + /** Filter by the object’s `deliveredRunId` field. */ + deliveredRunId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `model` field. */ + model?: StringFilter; + /** Negates the expression. */ + not?: PlatformAgentMessageFilter; + /** Checks for any expressions in this list. */ + or?: PlatformAgentMessageFilter[]; + /** Filter by the object’s `parts` field. */ + parts?: JSONFilter; + /** Filter by the object’s `thread` relation. */ + thread?: PlatformAgentThreadFilter; + /** Filter by the object’s `threadId` field. */ + threadId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `visibility` field. */ + visibility?: StringFilter; +} +export interface PlatformAgentPersonaFilter { + /** Checks for all expressions in this list. */ + and?: PlatformAgentPersonaFilter[]; + /** Filter by the object’s `config` field. */ + config?: JSONFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `description` field. */ + description?: 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?: PlatformAgentPersonaFilter; + /** Checks for any expressions in this list. */ + or?: PlatformAgentPersonaFilter[]; + /** Filter by the object’s `platformAgentsByPersonaId` relation. */ + platformAgentsByPersonaId?: PlatformAgentPersonaToManyPlatformAgentFilter; + /** `platformAgentsByPersonaId` exist. */ + platformAgentsByPersonaIdExist?: boolean; + /** Filter by the object’s `resources` field. */ + resources?: StringListFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `systemPrompt` field. */ + systemPrompt?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} +export interface PlatformAgentPlanFilter { + /** Checks for all expressions in this list. */ + and?: PlatformAgentPlanFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformAgentPlanFilter; + /** Checks for any expressions in this list. */ + or?: PlatformAgentPlanFilter[]; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `platformAgentTasksByPlanId` relation. */ + platformAgentTasksByPlanId?: PlatformAgentPlanToManyPlatformAgentTaskFilter; + /** `platformAgentTasksByPlanId` exist. */ + platformAgentTasksByPlanIdExist?: boolean; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `thread` relation. */ + thread?: PlatformAgentThreadFilter; + /** Filter by the object’s `threadId` field. */ + threadId?: UUIDFilter; + /** Filter by the object’s `title` field. */ + title?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `visibility` field. */ + visibility?: StringFilter; +} +export interface PlatformAgentPromptFilter { + /** Checks for all expressions in this list. */ + and?: PlatformAgentPromptFilter[]; + /** Filter by the object’s `content` field. */ + content?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isDefault` field. */ + isDefault?: BooleanFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: PlatformAgentPromptFilter; + /** Checks for any expressions in this list. */ + or?: PlatformAgentPromptFilter[]; + /** Filter by the object’s `platformAgentThreadsByPromptTemplateId` relation. */ + platformAgentThreadsByPromptTemplateId?: PlatformAgentPromptToManyPlatformAgentThreadFilter; + /** `platformAgentThreadsByPromptTemplateId` exist. */ + platformAgentThreadsByPromptTemplateIdExist?: boolean; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} +export interface PlatformAgentResourceChunkFilter { + /** Checks for all expressions in this list. */ + and?: PlatformAgentResourceChunkFilter[]; + /** Filter by the object’s `body` field. */ + body?: StringFilter; + /** Filter by the object’s `chunkIndex` field. */ + chunkIndex?: IntFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `embedding` field. */ + embedding?: VectorFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Negates the expression. */ + not?: PlatformAgentResourceChunkFilter; + /** Checks for any expressions in this list. */ + or?: PlatformAgentResourceChunkFilter[]; + /** Filter by the object’s `platformAgentResource` relation. */ + platformAgentResource?: PlatformAgentResourceFilter; + /** Filter by the object’s `platformAgentResourceId` field. */ + platformAgentResourceId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** VECTOR search on the `embedding` column. */ + vectorEmbedding?: VectorNearbyInput; +} +export interface PlatformAgentResourceFilter { + /** Checks for all expressions in this list. */ + and?: PlatformAgentResourceFilter[]; + /** Filter by the object’s `archivedAt` field. */ + archivedAt?: DatetimeFilter; + /** Filter by the object’s `body` field. */ + body?: StringTrgmFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `description` field. */ + description?: StringTrgmFilter; + /** Filter by the object’s `embedding` field. */ + embedding?: VectorFilter; + /** Filter by the object’s `embeddingUpdatedAt` field. */ + embeddingUpdatedAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; + /** Filter by the object’s `isArchived` field. */ + isArchived?: BooleanFilter; + /** Filter by the object’s `keywords` field. */ + keywords?: StringListFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringTrgmFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Negates the expression. */ + not?: PlatformAgentResourceFilter; + /** Checks for any expressions in this list. */ + or?: PlatformAgentResourceFilter[]; + /** Filter by the object’s `platformAgentResourceChunks` relation. */ + platformAgentResourceChunks?: PlatformAgentResourceToManyPlatformAgentResourceChunkFilter; + /** `platformAgentResourceChunks` exist. */ + platformAgentResourceChunksExist?: boolean; + /** Filter by the object’s `search` field. */ + search?: FullTextFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringTrgmFilter; + /** Filter by the object’s `title` field. */ + title?: StringTrgmFilter; + /** TRGM search on the `body` column. */ + trgmBody?: TrgmSearchInput; + /** TRGM search on the `description` column. */ + trgmDescription?: TrgmSearchInput; + /** TRGM search on the `kind` column. */ + trgmKind?: TrgmSearchInput; + /** TRGM search on the `title` column. */ + trgmTitle?: TrgmSearchInput; + /** TSV search on the `search` column. */ + tsvSearch?: string; + /** + * Composite unified search. Provide a search string and it will be dispatched to + * all text-compatible search algorithms (tsvector, BM25, pg_trgm) + * simultaneously. When the LLM plugin is active, pgvector also participates via + * auto-embedding. Rows matching ANY algorithm are returned. All matching score + * fields are populated. + */ + unifiedSearch?: string; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** VECTOR search on the `embedding` column. */ + vectorEmbedding?: VectorNearbyInput; +} +export interface PlatformAgentRunFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: PlatformAgentRunFilter[]; + /** Filter by the object’s `artifacts` field. */ + artifacts?: JSONFilter; + /** Filter by the object’s `attempt` field. */ + attempt?: IntFilter; + /** Filter by the object’s `baseCommit` field. */ + baseCommit?: StringFilter; + /** Filter by the object’s `branch` field. */ + branch?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `deadlineAt` field. */ + deadlineAt?: DatetimeFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `error` field. */ + error?: StringFilter; + /** Filter by the object’s `executionId` field. */ + executionId?: UUIDFilter; + /** Filter by the object’s `finishedAt` field. */ + finishedAt?: DatetimeFilter; + /** Filter by the object’s `headCommit` field. */ + headCommit?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `lastEventSeq` field. */ + lastEventSeq?: IntFilter; + /** Negates the expression. */ + not?: PlatformAgentRunFilter; + /** Checks for any expressions in this list. */ + or?: PlatformAgentRunFilter[]; + /** Filter by the object’s `parentRunId` field. */ + parentRunId?: UUIDFilter; + /** Filter by the object’s `placement` field. */ + placement?: StringFilter; + /** Filter by the object’s `platformAgentEventsByRunId` relation. */ + platformAgentEventsByRunId?: PlatformAgentRunToManyPlatformAgentEventFilter; + /** `platformAgentEventsByRunId` exist. */ + platformAgentEventsByRunIdExist?: boolean; + /** Filter by the object’s `platformAgentMessagesByDeliveredRunId` relation. */ + platformAgentMessagesByDeliveredRunId?: PlatformAgentRunToManyPlatformAgentMessageFilter; + /** `platformAgentMessagesByDeliveredRunId` exist. */ + platformAgentMessagesByDeliveredRunIdExist?: boolean; + /** Filter by the object’s `platformAgentRunWorkspacesByRunId` relation. */ + platformAgentRunWorkspacesByRunId?: PlatformAgentRunToManyPlatformAgentRunWorkspaceFilter; + /** `platformAgentRunWorkspacesByRunId` exist. */ + platformAgentRunWorkspacesByRunIdExist?: boolean; + /** Filter by the object’s `principalId` field. */ + principalId?: UUIDFilter; + /** Filter by the object’s `repoUrl` field. */ + repoUrl?: StringFilter; + /** Filter by the object’s `startedAt` field. */ + startedAt?: DatetimeFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `thread` relation. */ + thread?: PlatformAgentThreadFilter; + /** Filter by the object’s `threadId` field. */ + threadId?: UUIDFilter; + /** Filter by the object’s `tokenUsage` field. */ + tokenUsage?: JSONFilter; + /** Filter by the object’s `totalCost` field. */ + totalCost?: BigFloatFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `visibility` field. */ + visibility?: StringFilter; +} +export interface PlatformAgentRunWorkspaceFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: PlatformAgentRunWorkspaceFilter[]; + /** Filter by the object’s `artifacts` field. */ + artifacts?: JSONFilter; + /** Filter by the object’s `baseBranch` field. */ + baseBranch?: StringFilter; + /** Filter by the object’s `baseCommit` field. */ + baseCommit?: StringFilter; + /** Filter by the object’s `branch` field. */ + branch?: StringFilter; + /** Filter by the object’s `clonedAt` field. */ + clonedAt?: DatetimeFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `headCommit` field. */ + headCommit?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `lastUsedAt` field. */ + lastUsedAt?: DatetimeFilter; + /** Negates the expression. */ + not?: PlatformAgentRunWorkspaceFilter; + /** Checks for any expressions in this list. */ + or?: PlatformAgentRunWorkspaceFilter[]; + /** Filter by the object’s `ordinal` field. */ + ordinal?: IntFilter; + /** Filter by the object’s `provider` field. */ + provider?: StringFilter; + /** Filter by the object’s `publication` field. */ + publication?: StringFilter; + /** Filter by the object’s `repo` field. */ + repo?: StringFilter; + /** Filter by the object’s `repositoryId` field. */ + repositoryId?: UUIDFilter; + /** Filter by the object’s `run` relation. */ + run?: PlatformAgentRunFilter; + /** Filter by the object’s `runId` field. */ + runId?: UUIDFilter; + /** Filter by the object’s `state` field. */ + state?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `visibility` field. */ + visibility?: StringFilter; +} +export interface PlatformAgentTaskFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: PlatformAgentTaskFilter[]; + /** Filter by the object’s `approvalFeedback` field. */ + approvalFeedback?: StringFilter; + /** Filter by the object’s `approvalStatus` field. */ + approvalStatus?: StringFilter; + /** Filter by the object’s `approvedAt` field. */ + approvedAt?: DatetimeFilter; + /** Filter by the object’s `approvedBy` field. */ + approvedBy?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `error` field. */ + error?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformAgentTaskFilter; + /** Checks for any expressions in this list. */ + or?: PlatformAgentTaskFilter[]; + /** Filter by the object’s `orderIndex` field. */ + orderIndex?: IntFilter; + /** Filter by the object’s `plan` relation. */ + plan?: PlatformAgentPlanFilter; + /** Filter by the object’s `planId` field. */ + planId?: UUIDFilter; + /** Filter by the object’s `requiresApproval` field. */ + requiresApproval?: BooleanFilter; + /** Filter by the object’s `source` field. */ + source?: StringFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `visibility` field. */ + visibility?: StringFilter; +} +export interface PlatformAgentThreadFilter { + /** Filter by the object’s `agent` relation. */ + agent?: PlatformAgentFilter; + /** A related `agent` exists. */ + agentExists?: boolean; + /** Filter by the object’s `agentId` field. */ + agentId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: PlatformAgentThreadFilter[]; + /** Filter by the object’s `archivedAt` field. */ + archivedAt?: DatetimeFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isArchived` field. */ + isArchived?: BooleanFilter; + /** Filter by the object’s `mode` field. */ + mode?: StringFilter; + /** Filter by the object’s `model` field. */ + model?: StringFilter; + /** Negates the expression. */ + not?: PlatformAgentThreadFilter; + /** Checks for any expressions in this list. */ + or?: PlatformAgentThreadFilter[]; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `parentThread` relation. */ + parentThread?: PlatformAgentThreadFilter; + /** A related `parentThread` exists. */ + parentThreadExists?: boolean; + /** Filter by the object’s `parentThreadId` field. */ + parentThreadId?: UUIDFilter; + /** Filter by the object’s `platformAgentMessagesByThreadId` relation. */ + platformAgentMessagesByThreadId?: PlatformAgentThreadToManyPlatformAgentMessageFilter; + /** `platformAgentMessagesByThreadId` exist. */ + platformAgentMessagesByThreadIdExist?: boolean; + /** Filter by the object’s `platformAgentPlansByThreadId` relation. */ + platformAgentPlansByThreadId?: PlatformAgentThreadToManyPlatformAgentPlanFilter; + /** `platformAgentPlansByThreadId` exist. */ + platformAgentPlansByThreadIdExist?: boolean; + /** Filter by the object’s `platformAgentRunsByThreadId` relation. */ + platformAgentRunsByThreadId?: PlatformAgentThreadToManyPlatformAgentRunFilter; + /** `platformAgentRunsByThreadId` exist. */ + platformAgentRunsByThreadIdExist?: boolean; + /** Filter by the object’s `platformAgentThreadsByParentThreadId` relation. */ + platformAgentThreadsByParentThreadId?: PlatformAgentThreadToManyPlatformAgentThreadFilter; + /** `platformAgentThreadsByParentThreadId` exist. */ + platformAgentThreadsByParentThreadIdExist?: boolean; + /** Filter by the object’s `promptTemplate` relation. */ + promptTemplate?: PlatformAgentPromptFilter; + /** A related `promptTemplate` exists. */ + promptTemplateExists?: boolean; + /** Filter by the object’s `promptTemplateId` field. */ + promptTemplateId?: UUIDFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `systemPrompt` field. */ + systemPrompt?: StringFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Filter by the object’s `title` field. */ + title?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `visibility` field. */ + visibility?: StringFilter; +} +// ============ OrderBy Types ============ +export type AgentOrderBy = + | 'CONFIG_ASC' + | 'CONFIG_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_EPHEMERAL_ASC' + | 'IS_EPHEMERAL_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'PARENT_ID_ASC' + | 'PARENT_ID_DESC' + | 'PERSONA_ID_ASC' + | 'PERSONA_ID_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'SYSTEM_PROMPT_ASC' + | 'SYSTEM_PROMPT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type AgentMessageOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'AGENT_ID_ASC' + | 'AGENT_ID_DESC' + | 'AUTHOR_ROLE_ASC' + | 'AUTHOR_ROLE_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'KIND_ASC' + | 'KIND_DESC' + | 'MODEL_ASC' + | 'MODEL_DESC' + | 'NATURAL' + | 'PARTS_ASC' + | 'PARTS_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'THREAD_ID_ASC' + | 'THREAD_ID_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'VISIBILITY_ASC' + | 'VISIBILITY_DESC'; +export type AgentPersonaOrderBy = + | 'CONFIG_ASC' + | 'CONFIG_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_ACTIVE_ASC' + | 'IS_ACTIVE_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'RESOURCES_ASC' + | 'RESOURCES_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'SYSTEM_PROMPT_ASC' + | 'SYSTEM_PROMPT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +export type AgentPlanOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'THREAD_ID_ASC' + | 'THREAD_ID_DESC' + | 'TITLE_ASC' + | 'TITLE_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'VISIBILITY_ASC' + | 'VISIBILITY_DESC'; +export type AgentPromptOrderBy = + | 'CONTENT_ASC' + | 'CONTENT_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_DEFAULT_ASC' + | 'IS_DEFAULT_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +export type AgentResourceChunkOrderBy = + | 'AGENT_RESOURCE_ID_ASC' + | 'AGENT_RESOURCE_ID_DESC' + | 'BODY_ASC' + | 'BODY_DESC' + | 'CHUNK_INDEX_ASC' + | 'CHUNK_INDEX_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'EMBEDDING_ASC' + | 'EMBEDDING_DESC' + | 'EMBEDDING_VECTOR_DISTANCE_ASC' + | 'EMBEDDING_VECTOR_DISTANCE_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'SEARCH_SCORE_ASC' + | 'SEARCH_SCORE_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type AgentResourceOrderBy = + | 'ARCHIVED_AT_ASC' + | 'ARCHIVED_AT_DESC' + | 'BODY_ASC' + | 'BODY_DESC' + | 'BODY_TRGM_SIMILARITY_ASC' + | 'BODY_TRGM_SIMILARITY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'DESCRIPTION_TRGM_SIMILARITY_ASC' + | 'DESCRIPTION_TRGM_SIMILARITY_DESC' + | 'EMBEDDING_ASC' + | 'EMBEDDING_DESC' + | 'EMBEDDING_UPDATED_AT_ASC' + | 'EMBEDDING_UPDATED_AT_DESC' + | 'EMBEDDING_VECTOR_DISTANCE_ASC' + | 'EMBEDDING_VECTOR_DISTANCE_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_ACTIVE_ASC' + | 'IS_ACTIVE_DESC' + | 'IS_ARCHIVED_ASC' + | 'IS_ARCHIVED_DESC' + | 'KEYWORDS_ASC' + | 'KEYWORDS_DESC' + | 'KIND_ASC' + | 'KIND_DESC' + | 'KIND_TRGM_SIMILARITY_ASC' + | 'KIND_TRGM_SIMILARITY_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'SEARCH_ASC' + | 'SEARCH_DESC' + | 'SEARCH_SCORE_ASC' + | 'SEARCH_SCORE_DESC' + | 'SEARCH_TSV_RANK_ASC' + | 'SEARCH_TSV_RANK_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'TITLE_ASC' + | 'TITLE_DESC' + | 'TITLE_TRGM_SIMILARITY_ASC' + | 'TITLE_TRGM_SIMILARITY_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +export type AgentTaskOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'APPROVAL_FEEDBACK_ASC' + | 'APPROVAL_FEEDBACK_DESC' + | 'APPROVAL_STATUS_ASC' + | 'APPROVAL_STATUS_DESC' + | 'APPROVED_AT_ASC' + | 'APPROVED_AT_DESC' + | 'APPROVED_BY_ASC' + | 'APPROVED_BY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'ERROR_ASC' + | 'ERROR_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' + | 'ORDER_INDEX_ASC' + | 'ORDER_INDEX_DESC' + | 'PLAN_ID_ASC' + | 'PLAN_ID_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'REQUIRES_APPROVAL_ASC' + | 'REQUIRES_APPROVAL_DESC' + | 'SOURCE_ASC' + | 'SOURCE_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'VISIBILITY_ASC' + | 'VISIBILITY_DESC'; +export type AgentThreadOrderBy = + | 'AGENT_ID_ASC' + | 'AGENT_ID_DESC' + | 'ARCHIVED_AT_ASC' + | 'ARCHIVED_AT_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_ARCHIVED_ASC' + | 'IS_ARCHIVED_DESC' + | 'MODEL_ASC' + | 'MODEL_DESC' + | 'MODE_ASC' + | 'MODE_DESC' + | 'NATURAL' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'PARENT_THREAD_ID_ASC' + | 'PARENT_THREAD_ID_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PROMPT_TEMPLATE_ID_ASC' + | 'PROMPT_TEMPLATE_ID_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'SYSTEM_PROMPT_ASC' + | 'SYSTEM_PROMPT_DESC' + | 'TAGS_ASC' + | 'TAGS_DESC' + | 'TITLE_ASC' + | 'TITLE_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'VISIBILITY_ASC' + | 'VISIBILITY_DESC'; +export type PlatformAgentOrderBy = + | 'CONFIG_ASC' + | 'CONFIG_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_EPHEMERAL_ASC' + | 'IS_EPHEMERAL_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'PARENT_ID_ASC' + | 'PARENT_ID_DESC' + | 'PERSONA_ID_ASC' + | 'PERSONA_ID_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'SYSTEM_PROMPT_ASC' + | 'SYSTEM_PROMPT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type PlatformAgentEventOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ENTRY_ASC' + | 'ENTRY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'RECORDED_AT_ASC' + | 'RECORDED_AT_DESC' + | 'RUN_ID_ASC' + | 'RUN_ID_DESC' + | 'SEQ_ASC' + | 'SEQ_DESC' + | 'TRANSCRIPT_FORMAT_ASC' + | 'TRANSCRIPT_FORMAT_DESC' + | 'TRANSCRIPT_VERSION_ASC' + | 'TRANSCRIPT_VERSION_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'VISIBILITY_ASC' + | 'VISIBILITY_DESC'; +export type PlatformAgentMessageOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'AGENT_ID_ASC' + | 'AGENT_ID_DESC' + | 'AUTHOR_ROLE_ASC' + | 'AUTHOR_ROLE_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DELIVERED_RUN_ID_ASC' + | 'DELIVERED_RUN_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'KIND_ASC' + | 'KIND_DESC' + | 'MODEL_ASC' | 'MODEL_DESC' | 'NATURAL' | 'PARTS_ASC' @@ -1202,16 +2899,18 @@ export type AgentMessageOrderBy = | 'THREAD_ID_ASC' | 'THREAD_ID_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type AgentPersonaOrderBy = + | 'UPDATED_AT_DESC' + | 'VISIBILITY_ASC' + | 'VISIBILITY_DESC'; +export type PlatformAgentPersonaOrderBy = | 'CONFIG_ASC' | 'CONFIG_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'CREATED_BY_ASC' | 'CREATED_BY_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' | 'ID_ASC' @@ -1232,12 +2931,12 @@ export type AgentPersonaOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC'; -export type AgentPlanOrderBy = + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +export type PlatformAgentPlanOrderBy = | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' | 'ID_ASC' @@ -1254,16 +2953,18 @@ export type AgentPlanOrderBy = | 'TITLE_ASC' | 'TITLE_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type AgentPromptOrderBy = + | 'UPDATED_AT_DESC' + | 'VISIBILITY_ASC' + | 'VISIBILITY_DESC'; +export type PlatformAgentPromptOrderBy = | 'CONTENT_ASC' | 'CONTENT_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'CREATED_BY_ASC' | 'CREATED_BY_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' | 'ID_ASC' @@ -1280,10 +2981,10 @@ export type AgentPromptOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC'; -export type AgentResourceChunkOrderBy = - | 'AGENT_RESOURCE_ID_ASC' - | 'AGENT_RESOURCE_ID_DESC' + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +export type PlatformAgentResourceChunkOrderBy = | 'BODY_ASC' | 'BODY_DESC' | 'CHUNK_INDEX_ASC' @@ -1299,13 +3000,15 @@ export type AgentResourceChunkOrderBy = | 'METADATA_ASC' | 'METADATA_DESC' | 'NATURAL' + | 'PLATFORM_AGENT_RESOURCE_ID_ASC' + | 'PLATFORM_AGENT_RESOURCE_ID_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'SEARCH_SCORE_ASC' | 'SEARCH_SCORE_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type AgentResourceOrderBy = +export type PlatformAgentResourceOrderBy = | 'ARCHIVED_AT_ASC' | 'ARCHIVED_AT_DESC' | 'BODY_ASC' @@ -1316,8 +3019,8 @@ export type AgentResourceOrderBy = | 'CREATED_AT_DESC' | 'CREATED_BY_ASC' | 'CREATED_BY_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' | 'DESCRIPTION_TRGM_SIMILARITY_ASC' @@ -1360,8 +3063,108 @@ export type AgentResourceOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC'; -export type AgentTaskOrderBy = + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +export type PlatformAgentRunOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'ARTIFACTS_ASC' + | 'ARTIFACTS_DESC' + | 'ATTEMPT_ASC' + | 'ATTEMPT_DESC' + | 'BASE_COMMIT_ASC' + | 'BASE_COMMIT_DESC' + | 'BRANCH_ASC' + | 'BRANCH_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DEADLINE_AT_ASC' + | 'DEADLINE_AT_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'ERROR_ASC' + | 'ERROR_DESC' + | 'EXECUTION_ID_ASC' + | 'EXECUTION_ID_DESC' + | 'FINISHED_AT_ASC' + | 'FINISHED_AT_DESC' + | 'HEAD_COMMIT_ASC' + | 'HEAD_COMMIT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'LAST_EVENT_SEQ_ASC' + | 'LAST_EVENT_SEQ_DESC' + | 'NATURAL' + | 'PARENT_RUN_ID_ASC' + | 'PARENT_RUN_ID_DESC' + | 'PLACEMENT_ASC' + | 'PLACEMENT_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PRINCIPAL_ID_ASC' + | 'PRINCIPAL_ID_DESC' + | 'REPO_URL_ASC' + | 'REPO_URL_DESC' + | 'STARTED_AT_ASC' + | 'STARTED_AT_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'THREAD_ID_ASC' + | 'THREAD_ID_DESC' + | 'TOKEN_USAGE_ASC' + | 'TOKEN_USAGE_DESC' + | 'TOTAL_COST_ASC' + | 'TOTAL_COST_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'VISIBILITY_ASC' + | 'VISIBILITY_DESC'; +export type PlatformAgentRunWorkspaceOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'ARTIFACTS_ASC' + | 'ARTIFACTS_DESC' + | 'BASE_BRANCH_ASC' + | 'BASE_BRANCH_DESC' + | 'BASE_COMMIT_ASC' + | 'BASE_COMMIT_DESC' + | 'BRANCH_ASC' + | 'BRANCH_DESC' + | 'CLONED_AT_ASC' + | 'CLONED_AT_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'HEAD_COMMIT_ASC' + | 'HEAD_COMMIT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'LAST_USED_AT_ASC' + | 'LAST_USED_AT_DESC' + | 'NATURAL' + | 'ORDINAL_ASC' + | 'ORDINAL_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PROVIDER_ASC' + | 'PROVIDER_DESC' + | 'PUBLICATION_ASC' + | 'PUBLICATION_DESC' + | 'REPOSITORY_ID_ASC' + | 'REPOSITORY_ID_DESC' + | 'REPO_ASC' + | 'REPO_DESC' + | 'RUN_ID_ASC' + | 'RUN_ID_DESC' + | 'STATE_ASC' + | 'STATE_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'VISIBILITY_ASC' + | 'VISIBILITY_DESC'; +export type PlatformAgentTaskOrderBy = | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'APPROVAL_FEEDBACK_ASC' @@ -1374,8 +3177,6 @@ export type AgentTaskOrderBy = | 'APPROVED_BY_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' | 'ERROR_ASC' @@ -1396,16 +3197,16 @@ export type AgentTaskOrderBy = | 'STATUS_ASC' | 'STATUS_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type AgentThreadOrderBy = + | 'UPDATED_AT_DESC' + | 'VISIBILITY_ASC' + | 'VISIBILITY_DESC'; +export type PlatformAgentThreadOrderBy = | 'AGENT_ID_ASC' | 'AGENT_ID_DESC' | 'ARCHIVED_AT_ASC' | 'ARCHIVED_AT_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' | 'ID_ASC' | 'ID_DESC' | 'IS_ARCHIVED_ASC' @@ -1432,439 +3233,2488 @@ export type AgentThreadOrderBy = | 'TITLE_ASC' | 'TITLE_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; + | 'UPDATED_AT_DESC' + | 'VISIBILITY_ASC' + | 'VISIBILITY_DESC'; // ============ CRUD Input Types ============ export interface CreateAgentInput { clientMutationId?: string; - agent: { - config?: Record; - databaseId: string; - isEphemeral?: boolean; - name: string; + agent: { + config?: Record; + databaseId: string; + isEphemeral?: boolean; + name: string; + ownerId?: string; + parentId?: string; + personaId?: string; + status?: string; + systemPrompt?: string; + }; +} +export interface AgentPatch { + config?: Record | null; + databaseId?: string | null; + isEphemeral?: boolean | null; + name?: string | null; + ownerId?: string | null; + parentId?: string | null; + personaId?: string | null; + status?: string | null; + systemPrompt?: string | null; +} +export interface UpdateAgentInput { + clientMutationId?: string; + id: string; + agentPatch: AgentPatch; +} +export interface DeleteAgentInput { + clientMutationId?: string; + id: string; +} +export interface CreateAgentMessageInput { + clientMutationId?: string; + agentMessage: { + actorId?: string; + agentId?: string; + authorRole: string; + databaseId: string; + kind?: string; + model?: string; + parts?: Record; + threadId: string; + visibility?: string; + }; +} +export interface AgentMessagePatch { + actorId?: string | null; + agentId?: string | null; + authorRole?: string | null; + databaseId?: string | null; + kind?: string | null; + model?: string | null; + parts?: Record | null; + threadId?: string | null; + visibility?: string | null; +} +export interface UpdateAgentMessageInput { + clientMutationId?: string; + id: string; + agentMessagePatch: AgentMessagePatch; +} +export interface DeleteAgentMessageInput { + clientMutationId?: string; + id: string; +} +export interface CreateAgentPersonaInput { + clientMutationId?: string; + agentPersona: { + config?: Record; + createdBy?: string; + createdByPrincipal?: string; + databaseId: string; + description?: string; + isActive?: boolean; + name: string; + resources?: string[]; + slug: string; + systemPrompt?: string; + updatedBy?: string; + updatedByPrincipal?: string; + }; +} +export interface AgentPersonaPatch { + config?: Record | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + databaseId?: string | null; + description?: string | null; + isActive?: boolean | null; + name?: string | null; + resources?: string[] | null; + slug?: string | null; + systemPrompt?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdateAgentPersonaInput { + clientMutationId?: string; + id: string; + agentPersonaPatch: AgentPersonaPatch; +} +export interface DeleteAgentPersonaInput { + clientMutationId?: string; + id: string; +} +export interface CreateAgentPlanInput { + clientMutationId?: string; + agentPlan: { + databaseId: string; + description?: string; + ownerId?: string; + status?: string; + threadId: string; + title: string; + visibility?: string; + }; +} +export interface AgentPlanPatch { + databaseId?: string | null; + description?: string | null; + ownerId?: string | null; + status?: string | null; + threadId?: string | null; + title?: string | null; + visibility?: string | null; +} +export interface UpdateAgentPlanInput { + clientMutationId?: string; + id: string; + agentPlanPatch: AgentPlanPatch; +} +export interface DeleteAgentPlanInput { + clientMutationId?: string; + id: string; +} +export interface CreateAgentPromptInput { + clientMutationId?: string; + agentPrompt: { + content: string; + createdBy?: string; + createdByPrincipal?: string; + databaseId: string; + description?: string; + isDefault?: boolean; + metadata?: Record; + name: string; + updatedBy?: string; + updatedByPrincipal?: string; + }; +} +export interface AgentPromptPatch { + content?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + databaseId?: string | null; + description?: string | null; + isDefault?: boolean | null; + metadata?: Record | null; + name?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdateAgentPromptInput { + clientMutationId?: string; + id: string; + agentPromptPatch: AgentPromptPatch; +} +export interface DeleteAgentPromptInput { + clientMutationId?: string; + id: string; +} +export interface CreateAgentResourceChunkInput { + clientMutationId?: string; + agentResourceChunk: { + agentResourceId: string; + body: string; + chunkIndex?: number; + databaseId?: string; + embedding?: number[]; + embeddingText?: string; + metadata?: Record; + }; +} +export interface AgentResourceChunkPatch { + agentResourceId?: string | null; + body?: string | null; + chunkIndex?: number | null; + databaseId?: string | null; + embedding?: number[] | null; + embeddingText?: string | null; + metadata?: Record | null; +} +export interface UpdateAgentResourceChunkInput { + clientMutationId?: string; + id: string; + agentResourceChunkPatch: AgentResourceChunkPatch; +} +export interface DeleteAgentResourceChunkInput { + clientMutationId?: string; + id: string; +} +export interface CreateAgentResourceInput { + clientMutationId?: string; + agentResource: { + archivedAt?: string; + body: string; + createdBy?: string; + createdByPrincipal?: string; + databaseId: string; + description?: string; + embedding?: number[]; + embeddingText?: string; + isActive?: boolean; + isArchived?: boolean; + keywords?: string[]; + kind?: string; + metadata?: Record; + slug: string; + title: string; + updatedBy?: string; + updatedByPrincipal?: string; + }; +} +export interface AgentResourcePatch { + archivedAt?: string | null; + body?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + databaseId?: string | null; + description?: string | null; + embedding?: number[] | null; + embeddingText?: string | null; + isActive?: boolean | null; + isArchived?: boolean | null; + keywords?: string[] | null; + kind?: string | null; + metadata?: Record | null; + slug?: string | null; + title?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdateAgentResourceInput { + clientMutationId?: string; + id: string; + agentResourcePatch: AgentResourcePatch; +} +export interface DeleteAgentResourceInput { + clientMutationId?: string; + id: string; +} +export interface CreateAgentTaskInput { + clientMutationId?: string; + agentTask: { + actorId?: string; + approvalFeedback?: string; + approvalStatus?: string; + approvedAt?: string; + approvedBy?: string; + databaseId: string; + description: string; + error?: string; + orderIndex?: number; + planId: string; + requiresApproval?: boolean; + source?: string; + status?: string; + visibility?: string; + }; +} +export interface AgentTaskPatch { + actorId?: string | null; + approvalFeedback?: string | null; + approvalStatus?: string | null; + approvedAt?: string | null; + approvedBy?: string | null; + databaseId?: string | null; + description?: string | null; + error?: string | null; + orderIndex?: number | null; + planId?: string | null; + requiresApproval?: boolean | null; + source?: string | null; + status?: string | null; + visibility?: string | null; +} +export interface UpdateAgentTaskInput { + clientMutationId?: string; + id: string; + agentTaskPatch: AgentTaskPatch; +} +export interface DeleteAgentTaskInput { + clientMutationId?: string; + id: string; +} +export interface CreateAgentThreadInput { + clientMutationId?: string; + agentThread: { + agentId?: string; + archivedAt?: string; + databaseId: string; + isArchived?: boolean; + mode?: string; + model?: string; + ownerId?: string; + parentThreadId?: string; + promptTemplateId?: string; + status?: string; + systemPrompt?: string; + tags?: string[]; + title?: string; + visibility?: string; + }; +} +export interface AgentThreadPatch { + agentId?: string | null; + archivedAt?: string | null; + databaseId?: string | null; + isArchived?: boolean | null; + mode?: string | null; + model?: string | null; + ownerId?: string | null; + parentThreadId?: string | null; + promptTemplateId?: string | null; + status?: string | null; + systemPrompt?: string | null; + tags?: string[] | null; + title?: string | null; + visibility?: string | null; +} +export interface UpdateAgentThreadInput { + clientMutationId?: string; + id: string; + agentThreadPatch: AgentThreadPatch; +} +export interface DeleteAgentThreadInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformAgentInput { + clientMutationId?: string; + platformAgent: { + config?: Record; + isEphemeral?: boolean; + name: string; + ownerId?: string; + parentId?: string; + personaId?: string; + status?: string; + systemPrompt?: string; + }; +} +export interface PlatformAgentPatch { + config?: Record | null; + isEphemeral?: boolean | null; + name?: string | null; + ownerId?: string | null; + parentId?: string | null; + personaId?: string | null; + status?: string | null; + systemPrompt?: string | null; +} +export interface UpdatePlatformAgentInput { + clientMutationId?: string; + id: string; + platformAgentPatch: PlatformAgentPatch; +} +export interface DeletePlatformAgentInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformAgentEventInput { + clientMutationId?: string; + platformAgentEvent: { + actorId?: string; + entry: Record; + recordedAt: string; + runId: string; + seq: number; + transcriptFormat?: string; + transcriptVersion: number; + visibility?: string; + }; +} +export interface PlatformAgentEventPatch { + actorId?: string | null; + entry?: Record | null; + recordedAt?: string | null; + runId?: string | null; + seq?: number | null; + transcriptFormat?: string | null; + transcriptVersion?: number | null; + visibility?: string | null; +} +export interface UpdatePlatformAgentEventInput { + clientMutationId?: string; + id: string; + platformAgentEventPatch: PlatformAgentEventPatch; +} +export interface DeletePlatformAgentEventInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformAgentMessageInput { + clientMutationId?: string; + platformAgentMessage: { + actorId?: string; + agentId?: string; + authorRole: string; + deliveredRunId?: string; + kind?: string; + model?: string; + parts?: Record; + threadId: string; + visibility?: string; + }; +} +export interface PlatformAgentMessagePatch { + actorId?: string | null; + agentId?: string | null; + authorRole?: string | null; + deliveredRunId?: string | null; + kind?: string | null; + model?: string | null; + parts?: Record | null; + threadId?: string | null; + visibility?: string | null; +} +export interface UpdatePlatformAgentMessageInput { + clientMutationId?: string; + id: string; + platformAgentMessagePatch: PlatformAgentMessagePatch; +} +export interface DeletePlatformAgentMessageInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformAgentPersonaInput { + clientMutationId?: string; + platformAgentPersona: { + config?: Record; + createdBy?: string; + createdByPrincipal?: string; + description?: string; + isActive?: boolean; + name: string; + resources?: string[]; + slug: string; + systemPrompt?: string; + updatedBy?: string; + updatedByPrincipal?: string; + }; +} +export interface PlatformAgentPersonaPatch { + config?: Record | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + description?: string | null; + isActive?: boolean | null; + name?: string | null; + resources?: string[] | null; + slug?: string | null; + systemPrompt?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdatePlatformAgentPersonaInput { + clientMutationId?: string; + id: string; + platformAgentPersonaPatch: PlatformAgentPersonaPatch; +} +export interface DeletePlatformAgentPersonaInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformAgentPlanInput { + clientMutationId?: string; + platformAgentPlan: { + description?: string; + ownerId?: string; + status?: string; + threadId: string; + title: string; + visibility?: string; + }; +} +export interface PlatformAgentPlanPatch { + description?: string | null; + ownerId?: string | null; + status?: string | null; + threadId?: string | null; + title?: string | null; + visibility?: string | null; +} +export interface UpdatePlatformAgentPlanInput { + clientMutationId?: string; + id: string; + platformAgentPlanPatch: PlatformAgentPlanPatch; +} +export interface DeletePlatformAgentPlanInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformAgentPromptInput { + clientMutationId?: string; + platformAgentPrompt: { + content: string; + createdBy?: string; + createdByPrincipal?: string; + description?: string; + isDefault?: boolean; + metadata?: Record; + name: string; + updatedBy?: string; + updatedByPrincipal?: string; + }; +} +export interface PlatformAgentPromptPatch { + content?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + description?: string | null; + isDefault?: boolean | null; + metadata?: Record | null; + name?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdatePlatformAgentPromptInput { + clientMutationId?: string; + id: string; + platformAgentPromptPatch: PlatformAgentPromptPatch; +} +export interface DeletePlatformAgentPromptInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformAgentResourceChunkInput { + clientMutationId?: string; + platformAgentResourceChunk: { + body: string; + chunkIndex?: number; + embedding?: number[]; + embeddingText?: string; + metadata?: Record; + platformAgentResourceId: string; + }; +} +export interface PlatformAgentResourceChunkPatch { + body?: string | null; + chunkIndex?: number | null; + embedding?: number[] | null; + embeddingText?: string | null; + metadata?: Record | null; + platformAgentResourceId?: string | null; +} +export interface UpdatePlatformAgentResourceChunkInput { + clientMutationId?: string; + id: string; + platformAgentResourceChunkPatch: PlatformAgentResourceChunkPatch; +} +export interface DeletePlatformAgentResourceChunkInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformAgentResourceInput { + clientMutationId?: string; + platformAgentResource: { + archivedAt?: string; + body: string; + createdBy?: string; + createdByPrincipal?: string; + description?: string; + embedding?: number[]; + embeddingText?: string; + isActive?: boolean; + isArchived?: boolean; + keywords?: string[]; + kind?: string; + metadata?: Record; + slug: string; + title: string; + updatedBy?: string; + updatedByPrincipal?: string; + }; +} +export interface PlatformAgentResourcePatch { + archivedAt?: string | null; + body?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + description?: string | null; + embedding?: number[] | null; + embeddingText?: string | null; + isActive?: boolean | null; + isArchived?: boolean | null; + keywords?: string[] | null; + kind?: string | null; + metadata?: Record | null; + slug?: string | null; + title?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdatePlatformAgentResourceInput { + clientMutationId?: string; + id: string; + platformAgentResourcePatch: PlatformAgentResourcePatch; +} +export interface DeletePlatformAgentResourceInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformAgentRunInput { + clientMutationId?: string; + platformAgentRun: { + actorId?: string; + artifacts?: Record; + attempt?: number; + baseCommit?: string; + branch?: string; + databaseId?: string; + deadlineAt?: string; + entityId?: string; + error?: string; + executionId?: string; + finishedAt?: string; + headCommit?: string; + lastEventSeq?: number; + parentRunId?: string; + placement?: string; + principalId?: string; + repoUrl?: string; + startedAt?: string; + status?: string; + threadId: string; + tokenUsage?: Record; + totalCost?: string; + visibility?: string; + }; +} +export interface PlatformAgentRunPatch { + actorId?: string | null; + artifacts?: Record | null; + attempt?: number | null; + baseCommit?: string | null; + branch?: string | null; + databaseId?: string | null; + deadlineAt?: string | null; + entityId?: string | null; + error?: string | null; + executionId?: string | null; + finishedAt?: string | null; + headCommit?: string | null; + lastEventSeq?: number | null; + parentRunId?: string | null; + placement?: string | null; + principalId?: string | null; + repoUrl?: string | null; + startedAt?: string | null; + status?: string | null; + threadId?: string | null; + tokenUsage?: Record | null; + totalCost?: string | null; + visibility?: string | null; +} +export interface UpdatePlatformAgentRunInput { + clientMutationId?: string; + id: string; + platformAgentRunPatch: PlatformAgentRunPatch; +} +export interface DeletePlatformAgentRunInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformAgentRunWorkspaceInput { + clientMutationId?: string; + platformAgentRunWorkspace: { + actorId?: string; + artifacts?: Record; + baseBranch: string; + baseCommit?: string; + branch: string; + clonedAt?: string; + headCommit?: string; + lastUsedAt?: string; + ordinal?: number; + provider: string; + publication?: string; + repo: string; + repositoryId?: string; + runId: string; + state?: string; + visibility?: string; + }; +} +export interface PlatformAgentRunWorkspacePatch { + actorId?: string | null; + artifacts?: Record | null; + baseBranch?: string | null; + baseCommit?: string | null; + branch?: string | null; + clonedAt?: string | null; + headCommit?: string | null; + lastUsedAt?: string | null; + ordinal?: number | null; + provider?: string | null; + publication?: string | null; + repo?: string | null; + repositoryId?: string | null; + runId?: string | null; + state?: string | null; + visibility?: string | null; +} +export interface UpdatePlatformAgentRunWorkspaceInput { + clientMutationId?: string; + id: string; + platformAgentRunWorkspacePatch: PlatformAgentRunWorkspacePatch; +} +export interface DeletePlatformAgentRunWorkspaceInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformAgentTaskInput { + clientMutationId?: string; + platformAgentTask: { + actorId?: string; + approvalFeedback?: string; + approvalStatus?: string; + approvedAt?: string; + approvedBy?: string; + description: string; + error?: string; + orderIndex?: number; + planId: string; + requiresApproval?: boolean; + source?: string; + status?: string; + visibility?: string; + }; +} +export interface PlatformAgentTaskPatch { + actorId?: string | null; + approvalFeedback?: string | null; + approvalStatus?: string | null; + approvedAt?: string | null; + approvedBy?: string | null; + description?: string | null; + error?: string | null; + orderIndex?: number | null; + planId?: string | null; + requiresApproval?: boolean | null; + source?: string | null; + status?: string | null; + visibility?: string | null; +} +export interface UpdatePlatformAgentTaskInput { + clientMutationId?: string; + id: string; + platformAgentTaskPatch: PlatformAgentTaskPatch; +} +export interface DeletePlatformAgentTaskInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformAgentThreadInput { + clientMutationId?: string; + platformAgentThread: { + agentId?: string; + archivedAt?: string; + isArchived?: boolean; + mode?: string; + model?: string; ownerId?: string; - parentId?: string; - personaId?: string; + parentThreadId?: string; + promptTemplateId?: string; status?: string; systemPrompt?: string; + tags?: string[]; + title?: string; + visibility?: string; }; } -export interface AgentPatch { - config?: Record | null; - databaseId?: string | null; - isEphemeral?: boolean | null; - name?: string | null; - ownerId?: string | null; - parentId?: string | null; - personaId?: string | null; - status?: string | null; - systemPrompt?: string | null; +export interface PlatformAgentThreadPatch { + agentId?: string | null; + archivedAt?: string | null; + isArchived?: boolean | null; + mode?: string | null; + model?: string | null; + ownerId?: string | null; + parentThreadId?: string | null; + promptTemplateId?: string | null; + status?: string | null; + systemPrompt?: string | null; + tags?: string[] | null; + title?: string | null; + visibility?: string | null; +} +export interface UpdatePlatformAgentThreadInput { + clientMutationId?: string; + id: string; + platformAgentThreadPatch: PlatformAgentThreadPatch; +} +export interface DeletePlatformAgentThreadInput { + clientMutationId?: string; + id: string; +} +// ============ Connection Fields Map ============ +export const connectionFieldsMap = { + Agent: { + agentMessages: 'AgentMessage', + agentThreads: 'AgentThread', + childAgents: 'Agent', + }, + AgentPersona: { + agentsByPersonaId: 'Agent', + }, + AgentPlan: { + agentTasksByPlanId: 'AgentTask', + }, + AgentPrompt: { + agentThreadsByPromptTemplateId: 'AgentThread', + }, + AgentResource: { + agentResourceChunks: 'AgentResourceChunk', + }, + AgentThread: { + agentMessagesByThreadId: 'AgentMessage', + agentPlansByThreadId: 'AgentPlan', + agentThreadsByParentThreadId: 'AgentThread', + }, + PlatformAgent: { + childPlatformAgents: 'PlatformAgent', + platformAgentMessagesByAgentId: 'PlatformAgentMessage', + platformAgentThreadsByAgentId: 'PlatformAgentThread', + }, + PlatformAgentPersona: { + platformAgentsByPersonaId: 'PlatformAgent', + }, + PlatformAgentPlan: { + platformAgentTasksByPlanId: 'PlatformAgentTask', + }, + PlatformAgentPrompt: { + platformAgentThreadsByPromptTemplateId: 'PlatformAgentThread', + }, + PlatformAgentResource: { + platformAgentResourceChunks: 'PlatformAgentResourceChunk', + }, + PlatformAgentRun: { + platformAgentEventsByRunId: 'PlatformAgentEvent', + platformAgentMessagesByDeliveredRunId: 'PlatformAgentMessage', + platformAgentRunWorkspacesByRunId: 'PlatformAgentRunWorkspace', + }, + PlatformAgentThread: { + platformAgentMessagesByThreadId: 'PlatformAgentMessage', + platformAgentPlansByThreadId: 'PlatformAgentPlan', + platformAgentRunsByThreadId: 'PlatformAgentRun', + platformAgentThreadsByParentThreadId: 'PlatformAgentThread', + }, +} 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; +} +/** A filter to be used against many `AgentMessage` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentToManyAgentMessageFilter { + /** Filters to entities where every related entity matches. */ + every?: AgentMessageFilter; + /** Filters to entities where no related entity matches. */ + none?: AgentMessageFilter; + /** Filters to entities where at least one related entity matches. */ + some?: AgentMessageFilter; +} +/** A filter to be used against many `AgentThread` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentToManyAgentThreadFilter { + /** Filters to entities where every related entity matches. */ + every?: AgentThreadFilter; + /** Filters to entities where no related entity matches. */ + none?: AgentThreadFilter; + /** Filters to entities where at least one related entity matches. */ + some?: AgentThreadFilter; +} +/** A filter to be used against many `Agent` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentToManyAgentFilter { + /** Filters to entities where every related entity matches. */ + every?: AgentFilter; + /** Filters to entities where no related entity matches. */ + none?: AgentFilter; + /** Filters to entities where at least one related entity matches. */ + some?: AgentFilter; +} +/** A filter to be used against many `Agent` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentPersonaToManyAgentFilter { + /** Filters to entities where every related entity matches. */ + every?: AgentFilter; + /** Filters to entities where no related entity matches. */ + none?: AgentFilter; + /** Filters to entities where at least one related entity matches. */ + some?: AgentFilter; +} +/** A filter to be used against many `AgentTask` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentPlanToManyAgentTaskFilter { + /** Filters to entities where every related entity matches. */ + every?: AgentTaskFilter; + /** Filters to entities where no related entity matches. */ + none?: AgentTaskFilter; + /** Filters to entities where at least one related entity matches. */ + some?: AgentTaskFilter; +} +/** A filter to be used against many `AgentThread` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentPromptToManyAgentThreadFilter { + /** Filters to entities where every related entity matches. */ + every?: AgentThreadFilter; + /** Filters to entities where no related entity matches. */ + none?: AgentThreadFilter; + /** Filters to entities where at least one related entity matches. */ + some?: AgentThreadFilter; +} +/** Input for vector similarity search. Provide a query vector, optional metric, and optional max distance threshold. */ +export interface VectorNearbyInput { + /** Maximum distance threshold. Only rows within this distance are returned. */ + distance?: number; + /** When true (default for tables with @hasChunks), transparently queries the chunks table and returns the minimum distance across parent + all chunks. Set to false to only search the parent embedding. */ + includeChunks?: boolean; + /** Similarity metric to use (default: COSINE). */ + metric?: VectorMetric; + /** Natural language text to embed server-side for similarity search. Mutually exclusive with `vector` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + text?: string; + /** Query vector for similarity search. */ + vector: number[]; +} +/** A filter to be used against many `AgentResourceChunk` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentResourceToManyAgentResourceChunkFilter { + /** Filters to entities where every related entity matches. */ + every?: AgentResourceChunkFilter; + /** Filters to entities where no related entity matches. */ + none?: AgentResourceChunkFilter; + /** Filters to entities where at least one related entity matches. */ + some?: AgentResourceChunkFilter; +} +/** A filter to be used against String fields with pg_trgm support. All fields are combined with a logical ‘and.’ */ +export interface StringTrgmFilter { + /** 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; + /** Fuzzy matches using pg_trgm trigram similarity. Tolerates typos and misspellings. */ + similarTo?: TrgmSearchInput; + /** Starts with the specified string (case-sensitive). */ + startsWith?: string; + /** Starts with the specified string (case-insensitive). */ + startsWithInsensitive?: string; + /** Fuzzy matches using pg_trgm word_similarity. Finds the best matching substring within the column value. */ + wordSimilarTo?: TrgmSearchInput; +} +/** Input for pg_trgm fuzzy text matching. Provide a search value and optional similarity threshold. */ +export interface TrgmSearchInput { + /** Minimum similarity threshold (0.0 to 1.0). Higher = stricter matching. Default is 0.3. */ + threshold?: number; + /** The text to fuzzy-match against. Typos and misspellings are tolerated. */ + value: string; +} +/** A filter to be used against many `AgentMessage` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentThreadToManyAgentMessageFilter { + /** Filters to entities where every related entity matches. */ + every?: AgentMessageFilter; + /** Filters to entities where no related entity matches. */ + none?: AgentMessageFilter; + /** Filters to entities where at least one related entity matches. */ + some?: AgentMessageFilter; } -export interface UpdateAgentInput { - clientMutationId?: string; - id: string; - agentPatch: AgentPatch; +/** A filter to be used against many `AgentPlan` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentThreadToManyAgentPlanFilter { + /** Filters to entities where every related entity matches. */ + every?: AgentPlanFilter; + /** Filters to entities where no related entity matches. */ + none?: AgentPlanFilter; + /** Filters to entities where at least one related entity matches. */ + some?: AgentPlanFilter; } -export interface DeleteAgentInput { - clientMutationId?: string; - id: string; +/** A filter to be used against many `AgentThread` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentThreadToManyAgentThreadFilter { + /** Filters to entities where every related entity matches. */ + every?: AgentThreadFilter; + /** Filters to entities where no related entity matches. */ + none?: AgentThreadFilter; + /** Filters to entities where at least one related entity matches. */ + some?: AgentThreadFilter; } -export interface CreateAgentMessageInput { - clientMutationId?: string; - agentMessage: { - actorId?: string; - agentId?: string; - authorRole: string; - databaseId: string; - model?: string; - parts?: Record; - threadId: string; - }; +/** A filter to be used against many `PlatformAgent` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentToManyPlatformAgentFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformAgentFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformAgentFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformAgentFilter; } -export interface AgentMessagePatch { - actorId?: string | null; - agentId?: string | null; - authorRole?: string | null; - databaseId?: string | null; - model?: string | null; - parts?: Record | null; - threadId?: string | null; +/** A filter to be used against many `PlatformAgentMessage` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentToManyPlatformAgentMessageFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformAgentMessageFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformAgentMessageFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformAgentMessageFilter; } -export interface UpdateAgentMessageInput { - clientMutationId?: string; - id: string; - agentMessagePatch: AgentMessagePatch; +/** A filter to be used against many `PlatformAgentThread` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentToManyPlatformAgentThreadFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformAgentThreadFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformAgentThreadFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformAgentThreadFilter; } -export interface DeleteAgentMessageInput { - clientMutationId?: string; - id: string; +/** A filter to be used against many `PlatformAgent` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentPersonaToManyPlatformAgentFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformAgentFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformAgentFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformAgentFilter; } -export interface CreateAgentPersonaInput { - clientMutationId?: string; - agentPersona: { - config?: Record; - createdBy?: string; - databaseId: string; - description?: string; - isActive?: boolean; - name: string; - resources?: string[]; - slug: string; - systemPrompt?: string; - updatedBy?: string; - }; +/** A filter to be used against many `PlatformAgentTask` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentPlanToManyPlatformAgentTaskFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformAgentTaskFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformAgentTaskFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformAgentTaskFilter; } -export interface AgentPersonaPatch { - config?: Record | null; - createdBy?: string | null; - databaseId?: string | null; - description?: string | null; - isActive?: boolean | null; - name?: string | null; - resources?: string[] | null; - slug?: string | null; - systemPrompt?: string | null; - updatedBy?: string | null; +/** A filter to be used against many `PlatformAgentThread` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentPromptToManyPlatformAgentThreadFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformAgentThreadFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformAgentThreadFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformAgentThreadFilter; } -export interface UpdateAgentPersonaInput { - clientMutationId?: string; - id: string; - agentPersonaPatch: AgentPersonaPatch; +/** A filter to be used against many `PlatformAgentResourceChunk` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentResourceToManyPlatformAgentResourceChunkFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformAgentResourceChunkFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformAgentResourceChunkFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformAgentResourceChunkFilter; } -export interface DeleteAgentPersonaInput { - clientMutationId?: string; - id: string; +/** A filter to be used against many `PlatformAgentEvent` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentRunToManyPlatformAgentEventFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformAgentEventFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformAgentEventFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformAgentEventFilter; } -export interface CreateAgentPlanInput { - clientMutationId?: string; - agentPlan: { - databaseId: string; - description?: string; - ownerId?: string; - status?: string; - threadId: string; - title: string; - }; +/** A filter to be used against many `PlatformAgentMessage` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentRunToManyPlatformAgentMessageFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformAgentMessageFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformAgentMessageFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformAgentMessageFilter; } -export interface AgentPlanPatch { - databaseId?: string | null; - description?: string | null; - ownerId?: string | null; - status?: string | null; - threadId?: string | null; - title?: string | null; +/** A filter to be used against many `PlatformAgentRunWorkspace` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentRunToManyPlatformAgentRunWorkspaceFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformAgentRunWorkspaceFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformAgentRunWorkspaceFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformAgentRunWorkspaceFilter; } -export interface UpdateAgentPlanInput { - clientMutationId?: string; - id: string; - agentPlanPatch: AgentPlanPatch; +/** A filter to be used against many `PlatformAgentMessage` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentThreadToManyPlatformAgentMessageFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformAgentMessageFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformAgentMessageFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformAgentMessageFilter; } -export interface DeleteAgentPlanInput { - clientMutationId?: string; - id: string; +/** A filter to be used against many `PlatformAgentPlan` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentThreadToManyPlatformAgentPlanFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformAgentPlanFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformAgentPlanFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformAgentPlanFilter; +} +/** A filter to be used against many `PlatformAgentRun` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentThreadToManyPlatformAgentRunFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformAgentRunFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformAgentRunFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformAgentRunFilter; +} +/** A filter to be used against many `PlatformAgentThread` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentThreadToManyPlatformAgentThreadFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformAgentThreadFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformAgentThreadFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformAgentThreadFilter; +} +/** An input for mutations affecting `Agent` */ +export interface AgentInput { + /** Per-instance config overrides (model, temperature, tools) */ + config?: Record; + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + id?: string; + /** If true, agent is deleted when its spawning thread is deleted */ + isEphemeral?: boolean; + /** Display name for this agent instance */ + name: string; + /** Human who owns/manages this agent */ + ownerId?: string; + /** Parent agent (for sub-agent delegation hierarchy) */ + parentId?: string; + /** Persona template this agent was created from */ + personaId?: string; + /** Agent lifecycle status: active, paused, terminated */ + status?: string; + /** System prompt override (NULL = inherit from persona) */ + systemPrompt?: string; + updatedAt?: string; +} +/** An input for mutations affecting `AgentMessage` */ +export interface AgentMessageInput { + /** User who authored this message */ + actorId?: string; + /** Agent that authored this message (NULL for human messages) */ + agentId?: string; + /** Who authored this message: user or assistant */ + authorRole: string; + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + id?: string; + /** Turn kind: user, assistant, system, or interrupt (arrived mid-run and redirects it) */ + kind?: string; + /** LLM model that generated this response */ + model?: string; + /** Message content: TextPart and ToolPart array */ + parts?: Record; + /** Foreign key to agent_thread */ + threadId: string; + updatedAt?: string; + /** Who may read this message, inherited from the thread */ + visibility?: string; +} +/** An input for mutations affecting `AgentPersona` */ +export interface AgentPersonaInput { + /** Model preferences, temperature, tool access, constraints */ + config?: Record; + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Brief description of this persona role */ + description?: string; + id?: string; + /** Whether this persona is available for use */ + isActive?: boolean; + /** Display name for this persona */ + name: string; + /** Slugs of agent_resource entries to link when spawning */ + resources?: string[]; + /** Unique human-readable identifier for this persona */ + slug: string; + /** Default system prompt for agents using this persona */ + systemPrompt?: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; +} +/** An input for mutations affecting `AgentPlan` */ +export interface AgentPlanInput { + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Overall goal or context for this plan */ + description?: string; + id?: string; + /** User who owns this plan */ + ownerId?: string; + /** Plan lifecycle: draft, active, completed, failed, cancelled */ + status?: string; + /** Foreign key to agent_thread */ + threadId: string; + /** Human-readable plan name */ + title: string; + updatedAt?: string; + /** Who may read this plan, inherited from the thread */ + visibility?: string; +} +/** An input for mutations affecting `AgentPrompt` */ +export interface AgentPromptInput { + /** The system prompt template content */ + content: string; + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** What this prompt template is for */ + description?: string; + id?: string; + /** Whether this is the default prompt for the entity/app */ + isDefault?: boolean; + /** Variables, tags, category metadata */ + metadata?: Record; + /** Unique name for lookup (e.g. default, code-review, sales-assistant) */ + name: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; } -export interface CreateAgentPromptInput { - clientMutationId?: string; - agentPrompt: { - content: string; - createdBy?: string; - databaseId: string; - description?: string; - isDefault?: boolean; - metadata?: Record; - name: string; - updatedBy?: string; - }; +/** An input for mutations affecting `AgentResourceChunk` */ +export interface AgentResourceChunkInput { + agentResourceId: string; + body: string; + chunkIndex?: number; + createdAt?: string; + /** Policy-required field derived from source table (used by AuthzRelatedEntityMembership) */ + databaseId?: string; + embedding?: number[]; + /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + embeddingText?: string; + id?: string; + metadata?: Record; + updatedAt?: string; } -export interface AgentPromptPatch { - content?: string | null; - createdBy?: string | null; - databaseId?: string | null; - description?: string | null; - isDefault?: boolean | null; - metadata?: Record | null; - name?: string | null; - updatedBy?: string | null; +/** An input for mutations affecting `AgentResource` */ +export interface AgentResourceInput { + /** Timestamp when this record was archived, NULL if active */ + archivedAt?: string; + /** Full content (instructions for skills, reference text for knowledge) */ + body: string; + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Brief description of this resource */ + description?: string; + embedding?: number[]; + /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + embeddingText?: string; + id?: string; + /** Whether this resource is active and retrievable */ + isActive?: boolean; + /** Whether this record has been archived by the user */ + isArchived?: boolean; + /** Keywords for deterministic retrieval routing */ + keywords?: string[]; + /** Resource type: skill, knowledge, or convention */ + kind?: string; + /** Structured metadata: category, version, author, custom attributes */ + metadata?: Record; + /** Unique human-readable identifier for portable references */ + slug: string; + /** Resource name or title */ + title: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; } -export interface UpdateAgentPromptInput { - clientMutationId?: string; - id: string; - agentPromptPatch: AgentPromptPatch; +/** An input for mutations affecting `AgentTask` */ +export interface AgentTaskInput { + /** User who authored this task */ + actorId?: string; + /** Reviewer feedback or reason for the decision */ + approvalFeedback?: string; + /** Approval decision: pending, approved, rejected (NULL if not an approval task) */ + approvalStatus?: string; + /** Timestamp of the approval or rejection decision */ + approvedAt?: string; + /** User who approved or rejected this task */ + approvedBy?: string; + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Natural-language description of the work to do */ + description: string; + /** Error message captured when the task failed */ + error?: string; + id?: string; + /** Position within the plan (for ordered task lists) */ + orderIndex?: number; + /** Foreign key to agent_plan */ + planId: string; + /** Whether this task is an approval gate requiring human decision */ + requiresApproval?: boolean; + /** Who created the task: agent or user */ + source?: string; + /** Current status of this task */ + status?: string; + updatedAt?: string; + /** Who may read this task, inherited from its parent */ + visibility?: string; } -export interface DeleteAgentPromptInput { - clientMutationId?: string; - id: string; +/** An input for mutations affecting `AgentThread` */ +export interface AgentThreadInput { + /** Agent instance assigned to this thread */ + agentId?: string; + /** Timestamp when this record was archived, NULL if active */ + archivedAt?: string; + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + id?: string; + /** Whether this record has been archived by the user */ + isArchived?: boolean; + /** Conversation mode: ask (plain Q&A) or agent (tool-enabled) */ + mode?: string; + /** LLM model id this thread is bound to */ + model?: string; + /** User who owns this thread */ + ownerId?: string; + /** Parent thread that spawned this sub-conversation */ + parentThreadId?: string; + /** Optional FK to a shared prompt template */ + promptTemplateId?: string; + /** Current status of this thread */ + status?: string; + /** System prompt active for this thread */ + systemPrompt?: string; + /** User-defined labels for organizing and filtering threads */ + tags?: string[]; + /** Human-readable conversation title */ + title?: string; + updatedAt?: string; + /** Who may read this thread: private (owner only) or entity (the scope's members) */ + visibility?: string; } -export interface CreateAgentResourceChunkInput { - clientMutationId?: string; - agentResourceChunk: { - agentResourceId: string; - body: string; - chunkIndex?: number; - embedding?: number[]; - embeddingText?: string; - metadata?: Record; - }; +/** An input for mutations affecting `PlatformAgent` */ +export interface PlatformAgentInput { + /** Per-instance config overrides (model, temperature, tools) */ + config?: Record; + createdAt?: string; + id?: string; + /** If true, agent is deleted when its spawning thread is deleted */ + isEphemeral?: boolean; + /** Display name for this agent instance */ + name: string; + /** Human who owns/manages this agent */ + ownerId?: string; + /** Parent agent (for sub-agent delegation hierarchy) */ + parentId?: string; + /** Persona template this agent was created from */ + personaId?: string; + /** Agent lifecycle status: active, paused, terminated */ + status?: string; + /** System prompt override (NULL = inherit from persona) */ + systemPrompt?: string; + updatedAt?: string; } -export interface AgentResourceChunkPatch { - agentResourceId?: string | null; - body?: string | null; - chunkIndex?: number | null; - embedding?: number[] | null; - embeddingText?: string | null; - metadata?: Record | null; +/** An input for mutations affecting `PlatformAgentEvent` */ +export interface PlatformAgentEventInput { + /** User whose run this entry belongs to, inherited from the run */ + actorId?: string; + createdAt?: string; + /** The agent session entry, verbatim — every rendered surface is a projection of it */ + entry: Record; + id?: string; + /** When the writer produced this entry, by its own clock */ + recordedAt: string; + /** Foreign key to agent_run */ + runId: string; + /** Position of this entry in the run, 1-based and gapless */ + seq: number; + /** Transcript format this entry is encoded in */ + transcriptFormat?: string; + /** Version of that transcript format this entry was written in */ + transcriptVersion: number; + updatedAt?: string; + /** Who may read this entry, inherited from the run */ + visibility?: string; } -export interface UpdateAgentResourceChunkInput { - clientMutationId?: string; - id: string; - agentResourceChunkPatch: AgentResourceChunkPatch; +/** An input for mutations affecting `PlatformAgentMessage` */ +export interface PlatformAgentMessageInput { + /** User who authored this message */ + actorId?: string; + /** Agent that authored this message (NULL for human messages) */ + agentId?: string; + /** Who authored this message: user or assistant */ + authorRole: string; + createdAt?: string; + /** Run that consumed this message; null while it is still queued */ + deliveredRunId?: string; + id?: string; + /** Turn kind: user, assistant, system, or interrupt (arrived mid-run and redirects it) */ + kind?: string; + /** LLM model that generated this response */ + model?: string; + /** Message content: TextPart and ToolPart array */ + parts?: Record; + /** Foreign key to agent_thread */ + threadId: string; + updatedAt?: string; + /** Who may read this message, inherited from the thread */ + visibility?: string; } -export interface DeleteAgentResourceChunkInput { - clientMutationId?: string; - id: string; +/** An input for mutations affecting `PlatformAgentPersona` */ +export interface PlatformAgentPersonaInput { + /** Model preferences, temperature, tool access, constraints */ + config?: Record; + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** Brief description of this persona role */ + description?: string; + id?: string; + /** Whether this persona is available for use */ + isActive?: boolean; + /** Display name for this persona */ + name: string; + /** Slugs of agent_resource entries to link when spawning */ + resources?: string[]; + /** Unique human-readable identifier for this persona */ + slug: string; + /** Default system prompt for agents using this persona */ + systemPrompt?: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; } -export interface CreateAgentResourceInput { - clientMutationId?: string; - agentResource: { - archivedAt?: string; - body: string; - createdBy?: string; - databaseId: string; - description?: string; - embedding?: number[]; - embeddingText?: string; - isActive?: boolean; - isArchived?: boolean; - keywords?: string[]; - kind?: string; - metadata?: Record; - slug: string; - title: string; - updatedBy?: string; - }; +/** An input for mutations affecting `PlatformAgentPlan` */ +export interface PlatformAgentPlanInput { + createdAt?: string; + /** Overall goal or context for this plan */ + description?: string; + id?: string; + /** User who owns this plan */ + ownerId?: string; + /** Plan lifecycle: draft, active, completed, failed, cancelled */ + status?: string; + /** Foreign key to agent_thread */ + threadId: string; + /** Human-readable plan name */ + title: string; + updatedAt?: string; + /** Who may read this plan, inherited from the thread */ + visibility?: string; } -export interface AgentResourcePatch { - archivedAt?: string | null; - body?: string | null; - createdBy?: string | null; - databaseId?: string | null; - description?: string | null; - embedding?: number[] | null; - embeddingText?: string | null; - isActive?: boolean | null; - isArchived?: boolean | null; - keywords?: string[] | null; - kind?: string | null; - metadata?: Record | null; - slug?: string | null; - title?: string | null; - updatedBy?: string | null; +/** An input for mutations affecting `PlatformAgentPrompt` */ +export interface PlatformAgentPromptInput { + /** The system prompt template content */ + content: string; + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** What this prompt template is for */ + description?: string; + id?: string; + /** Whether this is the default prompt for the entity/app */ + isDefault?: boolean; + /** Variables, tags, category metadata */ + metadata?: Record; + /** Unique name for lookup (e.g. default, code-review, sales-assistant) */ + name: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; } -export interface UpdateAgentResourceInput { - clientMutationId?: string; - id: string; - agentResourcePatch: AgentResourcePatch; +/** An input for mutations affecting `PlatformAgentResourceChunk` */ +export interface PlatformAgentResourceChunkInput { + body: string; + chunkIndex?: number; + createdAt?: string; + embedding?: number[]; + /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + embeddingText?: string; + id?: string; + metadata?: Record; + platformAgentResourceId: string; + updatedAt?: string; } -export interface DeleteAgentResourceInput { - clientMutationId?: string; - id: string; +/** An input for mutations affecting `PlatformAgentResource` */ +export interface PlatformAgentResourceInput { + /** Timestamp when this record was archived, NULL if active */ + archivedAt?: string; + /** Full content (instructions for skills, reference text for knowledge) */ + body: string; + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** Brief description of this resource */ + description?: string; + embedding?: number[]; + /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + embeddingText?: string; + id?: string; + /** Whether this resource is active and retrievable */ + isActive?: boolean; + /** Whether this record has been archived by the user */ + isArchived?: boolean; + /** Keywords for deterministic retrieval routing */ + keywords?: string[]; + /** Resource type: skill, knowledge, or convention */ + kind?: string; + /** Structured metadata: category, version, author, custom attributes */ + metadata?: Record; + /** Unique human-readable identifier for portable references */ + slug: string; + /** Resource name or title */ + title: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; } -export interface CreateAgentTaskInput { - clientMutationId?: string; - agentTask: { - actorId?: string; - approvalFeedback?: string; - approvalStatus?: string; - approvedAt?: string; - approvedBy?: string; - databaseId: string; - description: string; - error?: string; - orderIndex?: number; - planId: string; - requiresApproval?: boolean; - source?: string; - status?: string; - }; +/** An input for mutations affecting `PlatformAgentRun` */ +export interface PlatformAgentRunInput { + /** User who invoked this run (audit/provenance; billing is entity_id) */ + actorId?: string; + /** What the run produced: commits, diffs, pull requests, usage totals */ + artifacts?: Record; + /** Attempt number within this run lineage */ + attempt?: number; + /** Commit the run started from */ + baseCommit?: string; + /** Branch the run commits to */ + branch?: string; + createdAt?: string; + /** Tenant database this run is attributed to (usage/billing attribution) */ + databaseId?: string; + /** When a supervisor should consider this run abandoned */ + deadlineAt?: string; + /** Entity billed for this run: an org the actor invoked on behalf of, or the actor themselves */ + entityId?: string; + /** Failure reason when status is failed */ + error?: string; + /** Execution currently attached to this run, by id and without a foreign key; null when the run holds no compute */ + executionId?: string; + /** When the run reached a terminal status */ + finishedAt?: string; + /** Commit the run has reached */ + headCommit?: string; + id?: string; + /** Highest event seq appended for this run; 0 before the first event */ + lastEventSeq?: number; + /** Run this one retries, by id and without a foreign key so lineage survives pruning */ + parentRunId?: string; + /** Where this run executes: cloud (a job) or local (an embedded host) */ + placement?: string; + /** Principal that invoked this run; equals actor_id when the actor acted directly */ + principalId?: string; + /** Git remote the run works against — the workspace sync protocol */ + repoUrl?: string; + /** When the run began executing */ + startedAt?: string; + /** Lifecycle state: pending, running, waiting, idle, interrupted, succeeded, failed, cancelled */ + status?: string; + /** Foreign key to agent_thread */ + threadId: string; + /** Token counts this run accumulated, per model, as the runtime reports them; null until settled */ + tokenUsage?: Record; + /** Settled cost of this run in the billing currency, summarising its metered rows; null until settled */ + totalCost?: string; + updatedAt?: string; + /** Who may read this run, inherited from the thread */ + visibility?: string; } -export interface AgentTaskPatch { - actorId?: string | null; - approvalFeedback?: string | null; - approvalStatus?: string | null; - approvedAt?: string | null; - approvedBy?: string | null; - databaseId?: string | null; - description?: string | null; - error?: string | null; - orderIndex?: number | null; - planId?: string | null; - requiresApproval?: boolean | null; - source?: string | null; - status?: string | null; +/** An input for mutations affecting `PlatformAgentRunWorkspace` */ +export interface PlatformAgentRunWorkspaceInput { + /** User whose run this workspace belongs to, inherited from the run */ + actorId?: string; + /** What publishing this workspace produced: diff stats, a pull request, a stored patch */ + artifacts?: Record; + /** Branch the workspace was cut from, and what a pull request merges into */ + baseBranch: string; + /** Commit the workspace was cut from; fixed once recorded */ + baseCommit?: string; + /** Branch this run commits to in this repository */ + branch: string; + /** When an execution first cloned this workspace */ + clonedAt?: string; + createdAt?: string; + /** Commit the work in this repository has reached */ + headCommit?: string; + id?: string; + /** When an execution last worked in this workspace; what a reclaim policy reads */ + lastUsedAt?: string; + /** Position of this workspace among the run's, 1-based and in clone order */ + ordinal?: number; + /** Git host this workspace was cloned from, as the runtime names it: github, local */ + provider: string; + /** How the work is published: pull_request, push, patch_artifact or none */ + publication?: string; + /** Repository as its provider names it (owner/name) */ + repo: string; + /** Catalog repository this workspace was cloned from, when the platform hosts it */ + repositoryId?: string; + /** Foreign key to agent_run */ + runId: string; + /** Whether the tree still exists: active (on disk), cold (reclaimed, restorable from head_commit) or purged */ + state?: string; + updatedAt?: string; + /** Who may read this workspace, inherited from the run */ + visibility?: string; } -export interface UpdateAgentTaskInput { - clientMutationId?: string; - id: string; - agentTaskPatch: AgentTaskPatch; +/** An input for mutations affecting `PlatformAgentTask` */ +export interface PlatformAgentTaskInput { + /** User who authored this task */ + actorId?: string; + /** Reviewer feedback or reason for the decision */ + approvalFeedback?: string; + /** Approval decision: pending, approved, rejected (NULL if not an approval task) */ + approvalStatus?: string; + /** Timestamp of the approval or rejection decision */ + approvedAt?: string; + /** User who approved or rejected this task */ + approvedBy?: string; + createdAt?: string; + /** Natural-language description of the work to do */ + description: string; + /** Error message captured when the task failed */ + error?: string; + id?: string; + /** Position within the plan (for ordered task lists) */ + orderIndex?: number; + /** Foreign key to agent_plan */ + planId: string; + /** Whether this task is an approval gate requiring human decision */ + requiresApproval?: boolean; + /** Who created the task: agent or user */ + source?: string; + /** Current status of this task */ + status?: string; + updatedAt?: string; + /** Who may read this task, inherited from its parent */ + visibility?: string; } -export interface DeleteAgentTaskInput { - clientMutationId?: string; - id: string; +/** An input for mutations affecting `PlatformAgentThread` */ +export interface PlatformAgentThreadInput { + /** Agent instance assigned to this thread */ + agentId?: string; + /** Timestamp when this record was archived, NULL if active */ + archivedAt?: string; + createdAt?: string; + id?: string; + /** Whether this record has been archived by the user */ + isArchived?: boolean; + /** Conversation mode: ask (plain Q&A) or agent (tool-enabled) */ + mode?: string; + /** LLM model id this thread is bound to */ + model?: string; + /** User who owns this thread */ + ownerId?: string; + /** Parent thread that spawned this sub-conversation */ + parentThreadId?: string; + /** Optional FK to a shared prompt template */ + promptTemplateId?: string; + /** Current status of this thread */ + status?: string; + /** System prompt active for this thread */ + systemPrompt?: string; + /** User-defined labels for organizing and filtering threads */ + tags?: string[]; + /** Human-readable conversation title */ + title?: string; + updatedAt?: string; + /** Who may read this thread: private (owner only) or entity (the scope's members) */ + visibility?: string; } -export interface CreateAgentThreadInput { - clientMutationId?: string; - agentThread: { - agentId?: string; - archivedAt?: string; - databaseId: string; - isArchived?: boolean; - mode?: string; - model?: string; - ownerId?: string; - parentThreadId?: string; - promptTemplateId?: string; - status?: string; - systemPrompt?: string; - tags?: string[]; - title?: string; - }; +/** A filter to be used against `AgentMessage` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentMessageFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `agent` relation. */ + agent?: AgentFilter; + /** A related `agent` exists. */ + agentExists?: boolean; + /** Filter by the object’s `agentId` field. */ + agentId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: AgentMessageFilter[]; + /** Filter by the object’s `authorRole` field. */ + authorRole?: StringFilter; + /** 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 `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `model` field. */ + model?: StringFilter; + /** Negates the expression. */ + not?: AgentMessageFilter; + /** Checks for any expressions in this list. */ + or?: AgentMessageFilter[]; + /** Filter by the object’s `parts` field. */ + parts?: JSONFilter; + /** Filter by the object’s `thread` relation. */ + thread?: AgentThreadFilter; + /** Filter by the object’s `threadId` field. */ + threadId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `visibility` field. */ + visibility?: StringFilter; +} +/** A filter to be used against `AgentThread` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentThreadFilter { + /** Filter by the object’s `agent` relation. */ + agent?: AgentFilter; + /** A related `agent` exists. */ + agentExists?: boolean; + /** Filter by the object’s `agentId` field. */ + agentId?: UUIDFilter; + /** Filter by the object’s `agentMessagesByThreadId` relation. */ + agentMessagesByThreadId?: AgentThreadToManyAgentMessageFilter; + /** `agentMessagesByThreadId` exist. */ + agentMessagesByThreadIdExist?: boolean; + /** Filter by the object’s `agentPlansByThreadId` relation. */ + agentPlansByThreadId?: AgentThreadToManyAgentPlanFilter; + /** `agentPlansByThreadId` exist. */ + agentPlansByThreadIdExist?: boolean; + /** Filter by the object’s `agentThreadsByParentThreadId` relation. */ + agentThreadsByParentThreadId?: AgentThreadToManyAgentThreadFilter; + /** `agentThreadsByParentThreadId` exist. */ + agentThreadsByParentThreadIdExist?: boolean; + /** Checks for all expressions in this list. */ + and?: AgentThreadFilter[]; + /** Filter by the object’s `archivedAt` field. */ + archivedAt?: DatetimeFilter; + /** 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 `isArchived` field. */ + isArchived?: BooleanFilter; + /** Filter by the object’s `mode` field. */ + mode?: StringFilter; + /** Filter by the object’s `model` field. */ + model?: StringFilter; + /** Negates the expression. */ + not?: AgentThreadFilter; + /** Checks for any expressions in this list. */ + or?: AgentThreadFilter[]; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `parentThread` relation. */ + parentThread?: AgentThreadFilter; + /** A related `parentThread` exists. */ + parentThreadExists?: boolean; + /** Filter by the object’s `parentThreadId` field. */ + parentThreadId?: UUIDFilter; + /** Filter by the object’s `promptTemplate` relation. */ + promptTemplate?: AgentPromptFilter; + /** A related `promptTemplate` exists. */ + promptTemplateExists?: boolean; + /** Filter by the object’s `promptTemplateId` field. */ + promptTemplateId?: UUIDFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `systemPrompt` field. */ + systemPrompt?: StringFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Filter by the object’s `title` field. */ + title?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `visibility` field. */ + visibility?: StringFilter; } -export interface AgentThreadPatch { - agentId?: string | null; - archivedAt?: string | null; - databaseId?: string | null; - isArchived?: boolean | null; - mode?: string | null; - model?: string | null; - ownerId?: string | null; - parentThreadId?: string | null; - promptTemplateId?: string | null; - status?: string | null; - systemPrompt?: string | null; - tags?: string[] | null; - title?: string | null; +/** A filter to be used against `Agent` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentFilter { + /** Filter by the object’s `agentMessages` relation. */ + agentMessages?: AgentToManyAgentMessageFilter; + /** `agentMessages` exist. */ + agentMessagesExist?: boolean; + /** Filter by the object’s `agentThreads` relation. */ + agentThreads?: AgentToManyAgentThreadFilter; + /** `agentThreads` exist. */ + agentThreadsExist?: boolean; + /** Checks for all expressions in this list. */ + and?: AgentFilter[]; + /** Filter by the object’s `childAgents` relation. */ + childAgents?: AgentToManyAgentFilter; + /** `childAgents` exist. */ + childAgentsExist?: boolean; + /** Filter by the object’s `config` field. */ + config?: 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; + /** Filter by the object’s `isEphemeral` field. */ + isEphemeral?: BooleanFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: AgentFilter; + /** Checks for any expressions in this list. */ + or?: AgentFilter[]; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `parent` relation. */ + parent?: AgentFilter; + /** A related `parent` exists. */ + parentExists?: boolean; + /** Filter by the object’s `parentId` field. */ + parentId?: UUIDFilter; + /** Filter by the object’s `persona` relation. */ + persona?: AgentPersonaFilter; + /** A related `persona` exists. */ + personaExists?: boolean; + /** Filter by the object’s `personaId` field. */ + personaId?: UUIDFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `systemPrompt` field. */ + systemPrompt?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; } -export interface UpdateAgentThreadInput { - clientMutationId?: string; - id: string; - agentThreadPatch: AgentThreadPatch; +/** A filter to be used against `AgentTask` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentTaskFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: AgentTaskFilter[]; + /** Filter by the object’s `approvalFeedback` field. */ + approvalFeedback?: StringFilter; + /** Filter by the object’s `approvalStatus` field. */ + approvalStatus?: StringFilter; + /** Filter by the object’s `approvedAt` field. */ + approvedAt?: DatetimeFilter; + /** Filter by the object’s `approvedBy` field. */ + approvedBy?: 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 `error` field. */ + error?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: AgentTaskFilter; + /** Checks for any expressions in this list. */ + or?: AgentTaskFilter[]; + /** Filter by the object’s `orderIndex` field. */ + orderIndex?: IntFilter; + /** Filter by the object’s `plan` relation. */ + plan?: AgentPlanFilter; + /** Filter by the object’s `planId` field. */ + planId?: UUIDFilter; + /** Filter by the object’s `requiresApproval` field. */ + requiresApproval?: BooleanFilter; + /** Filter by the object’s `source` field. */ + source?: StringFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `visibility` field. */ + visibility?: StringFilter; } -export interface DeleteAgentThreadInput { - clientMutationId?: string; - id: string; +/** Similarity metric for vector search */ +export type VectorMetric = 'COSINE' | 'IP' | 'L2'; +/** A filter to be used against `AgentResourceChunk` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentResourceChunkFilter { + /** Filter by the object’s `agentResource` relation. */ + agentResource?: AgentResourceFilter; + /** Filter by the object’s `agentResourceId` field. */ + agentResourceId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: AgentResourceChunkFilter[]; + /** Filter by the object’s `body` field. */ + body?: StringFilter; + /** Filter by the object’s `chunkIndex` field. */ + chunkIndex?: IntFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `embedding` field. */ + embedding?: VectorFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Negates the expression. */ + not?: AgentResourceChunkFilter; + /** Checks for any expressions in this list. */ + or?: AgentResourceChunkFilter[]; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** VECTOR search on the `embedding` column. */ + vectorEmbedding?: VectorNearbyInput; } -// ============ Connection Fields Map ============ -export const connectionFieldsMap = { - Agent: { - agentMessages: 'AgentMessage', - agentThreads: 'AgentThread', - childAgents: 'Agent', - }, - AgentPersona: { - agentsByPersonaId: 'Agent', - }, - AgentPlan: { - agentTasksByPlanId: 'AgentTask', - }, - AgentPrompt: { - agentThreadsByPromptTemplateId: 'AgentThread', - }, - AgentResource: { - agentResourceChunks: 'AgentResourceChunk', - }, - AgentThread: { - agentMessagesByThreadId: 'AgentMessage', - agentPlansByThreadId: 'AgentPlan', - agentThreadsByParentThreadId: 'AgentThread', - }, -} 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; +/** A filter to be used against `AgentPlan` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentPlanFilter { + /** Filter by the object’s `agentTasksByPlanId` relation. */ + agentTasksByPlanId?: AgentPlanToManyAgentTaskFilter; + /** `agentTasksByPlanId` exist. */ + agentTasksByPlanIdExist?: boolean; + /** Checks for all expressions in this list. */ + and?: AgentPlanFilter[]; + /** 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 `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: AgentPlanFilter; + /** Checks for any expressions in this list. */ + or?: AgentPlanFilter[]; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `thread` relation. */ + thread?: AgentThreadFilter; + /** Filter by the object’s `threadId` field. */ + threadId?: UUIDFilter; + /** Filter by the object’s `title` field. */ + title?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `visibility` field. */ + visibility?: StringFilter; } -/** A filter to be used against many `AgentMessage` object types. All fields are combined with a logical ‘and.’ */ -export interface AgentToManyAgentMessageFilter { - /** Filters to entities where every related entity matches. */ - every?: AgentMessageFilter; - /** Filters to entities where no related entity matches. */ - none?: AgentMessageFilter; - /** Filters to entities where at least one related entity matches. */ - some?: AgentMessageFilter; +/** A filter to be used against `PlatformAgent` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentFilter { + /** Checks for all expressions in this list. */ + and?: PlatformAgentFilter[]; + /** Filter by the object’s `childPlatformAgents` relation. */ + childPlatformAgents?: PlatformAgentToManyPlatformAgentFilter; + /** `childPlatformAgents` exist. */ + childPlatformAgentsExist?: boolean; + /** Filter by the object’s `config` field. */ + config?: JSONFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isEphemeral` field. */ + isEphemeral?: BooleanFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: PlatformAgentFilter; + /** Checks for any expressions in this list. */ + or?: PlatformAgentFilter[]; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `parent` relation. */ + parent?: PlatformAgentFilter; + /** A related `parent` exists. */ + parentExists?: boolean; + /** Filter by the object’s `parentId` field. */ + parentId?: UUIDFilter; + /** Filter by the object’s `persona` relation. */ + persona?: PlatformAgentPersonaFilter; + /** A related `persona` exists. */ + personaExists?: boolean; + /** Filter by the object’s `personaId` field. */ + personaId?: UUIDFilter; + /** Filter by the object’s `platformAgentMessagesByAgentId` relation. */ + platformAgentMessagesByAgentId?: PlatformAgentToManyPlatformAgentMessageFilter; + /** `platformAgentMessagesByAgentId` exist. */ + platformAgentMessagesByAgentIdExist?: boolean; + /** Filter by the object’s `platformAgentThreadsByAgentId` relation. */ + platformAgentThreadsByAgentId?: PlatformAgentToManyPlatformAgentThreadFilter; + /** `platformAgentThreadsByAgentId` exist. */ + platformAgentThreadsByAgentIdExist?: boolean; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `systemPrompt` field. */ + systemPrompt?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; } -/** A filter to be used against many `AgentThread` object types. All fields are combined with a logical ‘and.’ */ -export interface AgentToManyAgentThreadFilter { - /** Filters to entities where every related entity matches. */ - every?: AgentThreadFilter; - /** Filters to entities where no related entity matches. */ - none?: AgentThreadFilter; - /** Filters to entities where at least one related entity matches. */ - some?: AgentThreadFilter; +/** A filter to be used against `PlatformAgentMessage` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentMessageFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `agent` relation. */ + agent?: PlatformAgentFilter; + /** A related `agent` exists. */ + agentExists?: boolean; + /** Filter by the object’s `agentId` field. */ + agentId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: PlatformAgentMessageFilter[]; + /** Filter by the object’s `authorRole` field. */ + authorRole?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `deliveredRun` relation. */ + deliveredRun?: PlatformAgentRunFilter; + /** A related `deliveredRun` exists. */ + deliveredRunExists?: boolean; + /** Filter by the object’s `deliveredRunId` field. */ + deliveredRunId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `model` field. */ + model?: StringFilter; + /** Negates the expression. */ + not?: PlatformAgentMessageFilter; + /** Checks for any expressions in this list. */ + or?: PlatformAgentMessageFilter[]; + /** Filter by the object’s `parts` field. */ + parts?: JSONFilter; + /** Filter by the object’s `thread` relation. */ + thread?: PlatformAgentThreadFilter; + /** Filter by the object’s `threadId` field. */ + threadId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `visibility` field. */ + visibility?: StringFilter; } -/** A filter to be used against many `Agent` object types. All fields are combined with a logical ‘and.’ */ -export interface AgentToManyAgentFilter { - /** Filters to entities where every related entity matches. */ - every?: AgentFilter; - /** Filters to entities where no related entity matches. */ - none?: AgentFilter; - /** Filters to entities where at least one related entity matches. */ - some?: AgentFilter; +/** A filter to be used against `PlatformAgentThread` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentThreadFilter { + /** Filter by the object’s `agent` relation. */ + agent?: PlatformAgentFilter; + /** A related `agent` exists. */ + agentExists?: boolean; + /** Filter by the object’s `agentId` field. */ + agentId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: PlatformAgentThreadFilter[]; + /** Filter by the object’s `archivedAt` field. */ + archivedAt?: DatetimeFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isArchived` field. */ + isArchived?: BooleanFilter; + /** Filter by the object’s `mode` field. */ + mode?: StringFilter; + /** Filter by the object’s `model` field. */ + model?: StringFilter; + /** Negates the expression. */ + not?: PlatformAgentThreadFilter; + /** Checks for any expressions in this list. */ + or?: PlatformAgentThreadFilter[]; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `parentThread` relation. */ + parentThread?: PlatformAgentThreadFilter; + /** A related `parentThread` exists. */ + parentThreadExists?: boolean; + /** Filter by the object’s `parentThreadId` field. */ + parentThreadId?: UUIDFilter; + /** Filter by the object’s `platformAgentMessagesByThreadId` relation. */ + platformAgentMessagesByThreadId?: PlatformAgentThreadToManyPlatformAgentMessageFilter; + /** `platformAgentMessagesByThreadId` exist. */ + platformAgentMessagesByThreadIdExist?: boolean; + /** Filter by the object’s `platformAgentPlansByThreadId` relation. */ + platformAgentPlansByThreadId?: PlatformAgentThreadToManyPlatformAgentPlanFilter; + /** `platformAgentPlansByThreadId` exist. */ + platformAgentPlansByThreadIdExist?: boolean; + /** Filter by the object’s `platformAgentRunsByThreadId` relation. */ + platformAgentRunsByThreadId?: PlatformAgentThreadToManyPlatformAgentRunFilter; + /** `platformAgentRunsByThreadId` exist. */ + platformAgentRunsByThreadIdExist?: boolean; + /** Filter by the object’s `platformAgentThreadsByParentThreadId` relation. */ + platformAgentThreadsByParentThreadId?: PlatformAgentThreadToManyPlatformAgentThreadFilter; + /** `platformAgentThreadsByParentThreadId` exist. */ + platformAgentThreadsByParentThreadIdExist?: boolean; + /** Filter by the object’s `promptTemplate` relation. */ + promptTemplate?: PlatformAgentPromptFilter; + /** A related `promptTemplate` exists. */ + promptTemplateExists?: boolean; + /** Filter by the object’s `promptTemplateId` field. */ + promptTemplateId?: UUIDFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `systemPrompt` field. */ + systemPrompt?: StringFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Filter by the object’s `title` field. */ + title?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `visibility` field. */ + visibility?: StringFilter; } -/** A filter to be used against many `Agent` object types. All fields are combined with a logical ‘and.’ */ -export interface AgentPersonaToManyAgentFilter { - /** Filters to entities where every related entity matches. */ - every?: AgentFilter; - /** Filters to entities where no related entity matches. */ - none?: AgentFilter; - /** Filters to entities where at least one related entity matches. */ - some?: AgentFilter; +/** A filter to be used against `PlatformAgentTask` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentTaskFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: PlatformAgentTaskFilter[]; + /** Filter by the object’s `approvalFeedback` field. */ + approvalFeedback?: StringFilter; + /** Filter by the object’s `approvalStatus` field. */ + approvalStatus?: StringFilter; + /** Filter by the object’s `approvedAt` field. */ + approvedAt?: DatetimeFilter; + /** Filter by the object’s `approvedBy` field. */ + approvedBy?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `error` field. */ + error?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformAgentTaskFilter; + /** Checks for any expressions in this list. */ + or?: PlatformAgentTaskFilter[]; + /** Filter by the object’s `orderIndex` field. */ + orderIndex?: IntFilter; + /** Filter by the object’s `plan` relation. */ + plan?: PlatformAgentPlanFilter; + /** Filter by the object’s `planId` field. */ + planId?: UUIDFilter; + /** Filter by the object’s `requiresApproval` field. */ + requiresApproval?: BooleanFilter; + /** Filter by the object’s `source` field. */ + source?: StringFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `visibility` field. */ + visibility?: StringFilter; } -/** A filter to be used against many `AgentTask` object types. All fields are combined with a logical ‘and.’ */ -export interface AgentPlanToManyAgentTaskFilter { - /** Filters to entities where every related entity matches. */ - every?: AgentTaskFilter; - /** Filters to entities where no related entity matches. */ - none?: AgentTaskFilter; - /** Filters to entities where at least one related entity matches. */ - some?: AgentTaskFilter; +/** A filter to be used against `PlatformAgentResourceChunk` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentResourceChunkFilter { + /** Checks for all expressions in this list. */ + and?: PlatformAgentResourceChunkFilter[]; + /** Filter by the object’s `body` field. */ + body?: StringFilter; + /** Filter by the object’s `chunkIndex` field. */ + chunkIndex?: IntFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `embedding` field. */ + embedding?: VectorFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Negates the expression. */ + not?: PlatformAgentResourceChunkFilter; + /** Checks for any expressions in this list. */ + or?: PlatformAgentResourceChunkFilter[]; + /** Filter by the object’s `platformAgentResource` relation. */ + platformAgentResource?: PlatformAgentResourceFilter; + /** Filter by the object’s `platformAgentResourceId` field. */ + platformAgentResourceId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** VECTOR search on the `embedding` column. */ + vectorEmbedding?: VectorNearbyInput; } -/** A filter to be used against many `AgentThread` object types. All fields are combined with a logical ‘and.’ */ -export interface AgentPromptToManyAgentThreadFilter { - /** Filters to entities where every related entity matches. */ - every?: AgentThreadFilter; - /** Filters to entities where no related entity matches. */ - none?: AgentThreadFilter; - /** Filters to entities where at least one related entity matches. */ - some?: AgentThreadFilter; +/** A filter to be used against `PlatformAgentEvent` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentEventFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: PlatformAgentEventFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `entry` field. */ + entry?: JSONFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformAgentEventFilter; + /** Checks for any expressions in this list. */ + or?: PlatformAgentEventFilter[]; + /** Filter by the object’s `recordedAt` field. */ + recordedAt?: DatetimeFilter; + /** Filter by the object’s `run` relation. */ + run?: PlatformAgentRunFilter; + /** Filter by the object’s `runId` field. */ + runId?: UUIDFilter; + /** Filter by the object’s `seq` field. */ + seq?: IntFilter; + /** Filter by the object’s `transcriptFormat` field. */ + transcriptFormat?: StringFilter; + /** Filter by the object’s `transcriptVersion` field. */ + transcriptVersion?: IntFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `visibility` field. */ + visibility?: StringFilter; } -/** Input for vector similarity search. Provide a query vector, optional metric, and optional max distance threshold. */ -export interface VectorNearbyInput { - /** Maximum distance threshold. Only rows within this distance are returned. */ - distance?: number; - /** When true (default for tables with @hasChunks), transparently queries the chunks table and returns the minimum distance across parent + all chunks. Set to false to only search the parent embedding. */ - includeChunks?: boolean; - /** Similarity metric to use (default: COSINE). */ - metric?: VectorMetric; - /** Natural language text to embed server-side for similarity search. Mutually exclusive with `vector` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ - text?: string; - /** Query vector for similarity search. */ - vector: number[]; +/** A filter to be used against `PlatformAgentRunWorkspace` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentRunWorkspaceFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: PlatformAgentRunWorkspaceFilter[]; + /** Filter by the object’s `artifacts` field. */ + artifacts?: JSONFilter; + /** Filter by the object’s `baseBranch` field. */ + baseBranch?: StringFilter; + /** Filter by the object’s `baseCommit` field. */ + baseCommit?: StringFilter; + /** Filter by the object’s `branch` field. */ + branch?: StringFilter; + /** Filter by the object’s `clonedAt` field. */ + clonedAt?: DatetimeFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `headCommit` field. */ + headCommit?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `lastUsedAt` field. */ + lastUsedAt?: DatetimeFilter; + /** Negates the expression. */ + not?: PlatformAgentRunWorkspaceFilter; + /** Checks for any expressions in this list. */ + or?: PlatformAgentRunWorkspaceFilter[]; + /** Filter by the object’s `ordinal` field. */ + ordinal?: IntFilter; + /** Filter by the object’s `provider` field. */ + provider?: StringFilter; + /** Filter by the object’s `publication` field. */ + publication?: StringFilter; + /** Filter by the object’s `repo` field. */ + repo?: StringFilter; + /** Filter by the object’s `repositoryId` field. */ + repositoryId?: UUIDFilter; + /** Filter by the object’s `run` relation. */ + run?: PlatformAgentRunFilter; + /** Filter by the object’s `runId` field. */ + runId?: UUIDFilter; + /** Filter by the object’s `state` field. */ + state?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `visibility` field. */ + visibility?: StringFilter; +} +/** A filter to be used against `PlatformAgentPlan` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentPlanFilter { + /** Checks for all expressions in this list. */ + and?: PlatformAgentPlanFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformAgentPlanFilter; + /** Checks for any expressions in this list. */ + or?: PlatformAgentPlanFilter[]; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `platformAgentTasksByPlanId` relation. */ + platformAgentTasksByPlanId?: PlatformAgentPlanToManyPlatformAgentTaskFilter; + /** `platformAgentTasksByPlanId` exist. */ + platformAgentTasksByPlanIdExist?: boolean; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `thread` relation. */ + thread?: PlatformAgentThreadFilter; + /** Filter by the object’s `threadId` field. */ + threadId?: UUIDFilter; + /** Filter by the object’s `title` field. */ + title?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `visibility` field. */ + visibility?: StringFilter; } -/** A filter to be used against many `AgentResourceChunk` object types. All fields are combined with a logical ‘and.’ */ -export interface AgentResourceToManyAgentResourceChunkFilter { - /** Filters to entities where every related entity matches. */ - every?: AgentResourceChunkFilter; - /** Filters to entities where no related entity matches. */ - none?: AgentResourceChunkFilter; - /** Filters to entities where at least one related entity matches. */ - some?: AgentResourceChunkFilter; +/** A filter to be used against `PlatformAgentRun` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentRunFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: PlatformAgentRunFilter[]; + /** Filter by the object’s `artifacts` field. */ + artifacts?: JSONFilter; + /** Filter by the object’s `attempt` field. */ + attempt?: IntFilter; + /** Filter by the object’s `baseCommit` field. */ + baseCommit?: StringFilter; + /** Filter by the object’s `branch` field. */ + branch?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `deadlineAt` field. */ + deadlineAt?: DatetimeFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `error` field. */ + error?: StringFilter; + /** Filter by the object’s `executionId` field. */ + executionId?: UUIDFilter; + /** Filter by the object’s `finishedAt` field. */ + finishedAt?: DatetimeFilter; + /** Filter by the object’s `headCommit` field. */ + headCommit?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `lastEventSeq` field. */ + lastEventSeq?: IntFilter; + /** Negates the expression. */ + not?: PlatformAgentRunFilter; + /** Checks for any expressions in this list. */ + or?: PlatformAgentRunFilter[]; + /** Filter by the object’s `parentRunId` field. */ + parentRunId?: UUIDFilter; + /** Filter by the object’s `placement` field. */ + placement?: StringFilter; + /** Filter by the object’s `platformAgentEventsByRunId` relation. */ + platformAgentEventsByRunId?: PlatformAgentRunToManyPlatformAgentEventFilter; + /** `platformAgentEventsByRunId` exist. */ + platformAgentEventsByRunIdExist?: boolean; + /** Filter by the object’s `platformAgentMessagesByDeliveredRunId` relation. */ + platformAgentMessagesByDeliveredRunId?: PlatformAgentRunToManyPlatformAgentMessageFilter; + /** `platformAgentMessagesByDeliveredRunId` exist. */ + platformAgentMessagesByDeliveredRunIdExist?: boolean; + /** Filter by the object’s `platformAgentRunWorkspacesByRunId` relation. */ + platformAgentRunWorkspacesByRunId?: PlatformAgentRunToManyPlatformAgentRunWorkspaceFilter; + /** `platformAgentRunWorkspacesByRunId` exist. */ + platformAgentRunWorkspacesByRunIdExist?: boolean; + /** Filter by the object’s `principalId` field. */ + principalId?: UUIDFilter; + /** Filter by the object’s `repoUrl` field. */ + repoUrl?: StringFilter; + /** Filter by the object’s `startedAt` field. */ + startedAt?: DatetimeFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `thread` relation. */ + thread?: PlatformAgentThreadFilter; + /** Filter by the object’s `threadId` field. */ + threadId?: UUIDFilter; + /** Filter by the object’s `tokenUsage` field. */ + tokenUsage?: JSONFilter; + /** Filter by the object’s `totalCost` field. */ + totalCost?: BigFloatFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `visibility` field. */ + visibility?: StringFilter; } -/** A filter to be used against String fields with pg_trgm support. All fields are combined with a logical ‘and.’ */ -export interface StringTrgmFilter { +/** 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 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). */ @@ -1935,527 +5785,487 @@ export interface StringTrgmFilter { notStartsWith?: string; /** Does not start with the specified string (case-insensitive). */ notStartsWithInsensitive?: string; - /** Fuzzy matches using pg_trgm trigram similarity. Tolerates typos and misspellings. */ - similarTo?: TrgmSearchInput; /** Starts with the specified string (case-sensitive). */ startsWith?: string; /** Starts with the specified string (case-insensitive). */ startsWithInsensitive?: string; - /** Fuzzy matches using pg_trgm word_similarity. Finds the best matching substring within the column value. */ - wordSimilarTo?: TrgmSearchInput; -} -/** Input for pg_trgm fuzzy text matching. Provide a search value and optional similarity threshold. */ -export interface TrgmSearchInput { - /** Minimum similarity threshold (0.0 to 1.0). Higher = stricter matching. Default is 0.3. */ - threshold?: number; - /** The text to fuzzy-match against. Typos and misspellings are tolerated. */ - value: string; -} -/** A filter to be used against many `AgentMessage` object types. All fields are combined with a logical ‘and.’ */ -export interface AgentThreadToManyAgentMessageFilter { - /** Filters to entities where every related entity matches. */ - every?: AgentMessageFilter; - /** Filters to entities where no related entity matches. */ - none?: AgentMessageFilter; - /** Filters to entities where at least one related entity matches. */ - some?: AgentMessageFilter; -} -/** A filter to be used against many `AgentPlan` object types. All fields are combined with a logical ‘and.’ */ -export interface AgentThreadToManyAgentPlanFilter { - /** Filters to entities where every related entity matches. */ - every?: AgentPlanFilter; - /** Filters to entities where no related entity matches. */ - none?: AgentPlanFilter; - /** Filters to entities where at least one related entity matches. */ - some?: AgentPlanFilter; -} -/** A filter to be used against many `AgentThread` object types. All fields are combined with a logical ‘and.’ */ -export interface AgentThreadToManyAgentThreadFilter { - /** Filters to entities where every related entity matches. */ - every?: AgentThreadFilter; - /** Filters to entities where no related entity matches. */ - none?: AgentThreadFilter; - /** Filters to entities where at least one related entity matches. */ - some?: AgentThreadFilter; -} -/** An input for mutations affecting `Agent` */ -export interface AgentInput { - /** Per-instance config overrides (model, temperature, tools) */ - config?: Record; - createdAt?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - id?: string; - /** If true, agent is deleted when its spawning thread is deleted */ - isEphemeral?: boolean; - /** Display name for this agent instance */ - name: string; - /** Human who owns/manages this agent */ - ownerId?: string; - /** Parent agent (for sub-agent delegation hierarchy) */ - parentId?: string; - /** Persona template this agent was created from */ - personaId?: string; - /** Agent lifecycle status: active, paused, terminated */ - status?: string; - /** System prompt override (NULL = inherit from persona) */ - systemPrompt?: string; - updatedAt?: string; -} -/** An input for mutations affecting `AgentMessage` */ -export interface AgentMessageInput { - /** User who authored this message */ - actorId?: string; - /** Agent that authored this message (NULL for human messages) */ - agentId?: string; - /** Who authored this message: user or assistant */ - authorRole: string; - createdAt?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - id?: string; - /** LLM model that generated this response */ - model?: string; - /** Message content: TextPart and ToolPart array */ - parts?: Record; - /** Foreign key to agent_thread */ - threadId: string; - updatedAt?: string; -} -/** An input for mutations affecting `AgentPersona` */ -export interface AgentPersonaInput { - /** Model preferences, temperature, tool access, constraints */ - config?: Record; - createdAt?: string; - createdBy?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - /** Brief description of this persona role */ - description?: string; - id?: string; - /** Whether this persona is available for use */ - isActive?: boolean; - /** Display name for this persona */ - name: string; - /** Slugs of agent_resource entries to link when spawning */ - resources?: string[]; - /** Unique human-readable identifier for this persona */ - slug: string; - /** Default system prompt for agents using this persona */ - systemPrompt?: string; - updatedAt?: string; - updatedBy?: string; -} -/** An input for mutations affecting `AgentPlan` */ -export interface AgentPlanInput { - createdAt?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - /** Overall goal or context for this plan */ - description?: string; - id?: string; - /** User who owns this plan */ - ownerId?: string; - /** Plan lifecycle: draft, active, completed, failed, cancelled */ - status?: string; - /** Foreign key to agent_thread */ - threadId: string; - /** Human-readable plan name */ - title: string; - updatedAt?: string; -} -/** An input for mutations affecting `AgentPrompt` */ -export interface AgentPromptInput { - /** The system prompt template content */ - content: string; - createdAt?: string; - createdBy?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - /** What this prompt template is for */ - description?: string; - id?: string; - /** Whether this is the default prompt for the entity/app */ - isDefault?: boolean; - /** Variables, tags, category metadata */ - metadata?: Record; - /** Unique name for lookup (e.g. default, code-review, sales-assistant) */ - name: string; - updatedAt?: string; - updatedBy?: string; -} -/** An input for mutations affecting `AgentResourceChunk` */ -export interface AgentResourceChunkInput { - agentResourceId: string; - body: string; - chunkIndex?: number; - createdAt?: string; - embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ - embeddingText?: string; - id?: string; - metadata?: Record; - updatedAt?: string; } -/** An input for mutations affecting `AgentResource` */ -export interface AgentResourceInput { - /** Timestamp when this record was archived, NULL if active */ - archivedAt?: string; - /** Full content (instructions for skills, reference text for knowledge) */ - body: string; - createdAt?: string; - createdBy?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - /** Brief description of this resource */ - description?: string; - embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ - embeddingText?: string; - id?: string; - /** Whether this resource is active and retrievable */ - isActive?: boolean; - /** Whether this record has been archived by the user */ - isArchived?: boolean; - /** Keywords for deterministic retrieval routing */ - keywords?: string[]; - /** Resource type: skill, knowledge, or convention */ - kind?: string; - /** Structured metadata: category, version, author, custom attributes */ - metadata?: Record; - /** Unique human-readable identifier for portable references */ - slug: string; - /** Resource name or title */ - title: string; - updatedAt?: string; - updatedBy?: string; +/** 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[]; } -/** An input for mutations affecting `AgentTask` */ -export interface AgentTaskInput { - /** User who authored this task */ - actorId?: string; - /** Reviewer feedback or reason for the decision */ - approvalFeedback?: string; - /** Approval decision: pending, approved, rejected (NULL if not an approval task) */ - approvalStatus?: string; - /** Timestamp of the approval or rejection decision */ - approvedAt?: string; - /** User who approved or rejected this task */ - approvedBy?: string; - createdAt?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - /** Natural-language description of the work to do */ - description: string; - /** Error message captured when the task failed */ - error?: string; - id?: string; - /** Position within the plan (for ordered task lists) */ - orderIndex?: number; - /** Foreign key to agent_plan */ - planId: string; - /** Whether this task is an approval gate requiring human decision */ - requiresApproval?: boolean; - /** Who created the task: agent or user */ - source?: string; - /** Current status of this task */ - status?: string; - updatedAt?: string; +/** A filter to be used against JSON fields. All fields are combined with a logical ‘and.’ */ +export interface JSONFilter { + /** Contained by the specified JSON. */ + containedBy?: Record; + /** Contains the specified JSON. */ + contains?: Record; + /** Contains all of the specified keys. */ + containsAllKeys?: string[]; + /** Contains any of the specified keys. */ + containsAnyKeys?: string[]; + /** Contains the specified key. */ + containsKey?: string; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: Record; + /** Equal to the specified value. */ + equalTo?: Record; + /** Greater than the specified value. */ + greaterThan?: Record; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: Record; + /** Included in the specified list. */ + in?: Record[]; + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Less than the specified value. */ + lessThan?: Record; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: Record; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: Record; + /** Not equal to the specified value. */ + notEqualTo?: Record; + /** Not included in the specified list. */ + notIn?: Record[]; } -/** An input for mutations affecting `AgentThread` */ -export interface AgentThreadInput { - /** Agent instance assigned to this thread */ - agentId?: string; - /** Timestamp when this record was archived, NULL if active */ - archivedAt?: string; - createdAt?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - id?: string; - /** Whether this record has been archived by the user */ - isArchived?: boolean; - /** Conversation mode: ask (plain Q&A) or agent (tool-enabled) */ - mode?: string; - /** LLM model id this thread is bound to */ - model?: string; - /** User who owns this thread */ - ownerId?: string; - /** Parent thread that spawned this sub-conversation */ - parentThreadId?: string; - /** Optional FK to a shared prompt template */ - promptTemplateId?: string; - /** Current status of this thread */ - status?: string; - /** System prompt active for this thread */ - systemPrompt?: string; - /** User-defined labels for organizing and filtering threads */ - tags?: string[]; - /** Human-readable conversation title */ - title?: string; - updatedAt?: 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 `AgentMessage` object types. All fields are combined with a logical ‘and.’ */ -export interface AgentMessageFilter { - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `agent` relation. */ - agent?: AgentFilter; - /** A related `agent` exists. */ - agentExists?: boolean; - /** Filter by the object’s `agentId` field. */ - agentId?: UUIDFilter; +/** A filter to be used against `AgentPrompt` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentPromptFilter { + /** Filter by the object’s `agentThreadsByPromptTemplateId` relation. */ + agentThreadsByPromptTemplateId?: AgentPromptToManyAgentThreadFilter; + /** `agentThreadsByPromptTemplateId` exist. */ + agentThreadsByPromptTemplateIdExist?: boolean; /** Checks for all expressions in this list. */ - and?: AgentMessageFilter[]; - /** Filter by the object’s `authorRole` field. */ - authorRole?: StringFilter; + and?: AgentPromptFilter[]; + /** Filter by the object’s `content` field. */ + content?: StringFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `model` field. */ - model?: StringFilter; + /** Filter by the object’s `isDefault` field. */ + isDefault?: BooleanFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; /** Negates the expression. */ - not?: AgentMessageFilter; + not?: AgentPromptFilter; /** Checks for any expressions in this list. */ - or?: AgentMessageFilter[]; - /** Filter by the object’s `parts` field. */ - parts?: JSONFilter; - /** Filter by the object’s `thread` relation. */ - thread?: AgentThreadFilter; - /** Filter by the object’s `threadId` field. */ - threadId?: UUIDFilter; + or?: AgentPromptFilter[]; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -/** A filter to be used against `AgentThread` object types. All fields are combined with a logical ‘and.’ */ -export interface AgentThreadFilter { - /** Filter by the object’s `agent` relation. */ - agent?: AgentFilter; - /** A related `agent` exists. */ - agentExists?: boolean; - /** Filter by the object’s `agentId` field. */ - agentId?: UUIDFilter; - /** Filter by the object’s `agentMessagesByThreadId` relation. */ - agentMessagesByThreadId?: AgentThreadToManyAgentMessageFilter; - /** `agentMessagesByThreadId` exist. */ - agentMessagesByThreadIdExist?: boolean; - /** Filter by the object’s `agentPlansByThreadId` relation. */ - agentPlansByThreadId?: AgentThreadToManyAgentPlanFilter; - /** `agentPlansByThreadId` exist. */ - agentPlansByThreadIdExist?: boolean; - /** Filter by the object’s `agentThreadsByParentThreadId` relation. */ - agentThreadsByParentThreadId?: AgentThreadToManyAgentThreadFilter; - /** `agentThreadsByParentThreadId` exist. */ - agentThreadsByParentThreadIdExist?: boolean; - /** Checks for all expressions in this list. */ - and?: AgentThreadFilter[]; - /** Filter by the object’s `archivedAt` field. */ - archivedAt?: DatetimeFilter; +/** A filter to be used against String List fields. All fields are combined with a logical ‘and.’ */ +export interface StringListFilter { + /** Any array item is equal to the specified value. */ + anyEqualTo?: string; + /** Any array item is greater than the specified value. */ + anyGreaterThan?: string; + /** Any array item is greater than or equal to the specified value. */ + anyGreaterThanOrEqualTo?: string; + /** Any array item is less than the specified value. */ + anyLessThan?: string; + /** Any array item is less than or equal to the specified value. */ + anyLessThanOrEqualTo?: string; + /** Any array item is not equal to the specified value. */ + anyNotEqualTo?: string; + /** Contained by the specified list of values. */ + containedBy?: string[]; + /** Contains the specified list of values. */ + contains?: string[]; + /** 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[]; + /** 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[]; + /** Overlaps the specified list of values. */ + overlaps?: string[]; +} +/** A filter to be used against `AgentPersona` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentPersonaFilter { + /** Filter by the object’s `agentsByPersonaId` relation. */ + agentsByPersonaId?: AgentPersonaToManyAgentFilter; + /** `agentsByPersonaId` exist. */ + agentsByPersonaIdExist?: boolean; + /** Checks for all expressions in this list. */ + and?: AgentPersonaFilter[]; + /** Filter by the object’s `config` field. */ + config?: JSONFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `isArchived` field. */ - isArchived?: BooleanFilter; - /** Filter by the object’s `mode` field. */ - mode?: StringFilter; - /** Filter by the object’s `model` field. */ - model?: StringFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; /** Negates the expression. */ - not?: AgentThreadFilter; + not?: AgentPersonaFilter; /** Checks for any expressions in this list. */ - or?: AgentThreadFilter[]; - /** Filter by the object’s `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `parentThread` relation. */ - parentThread?: AgentThreadFilter; - /** A related `parentThread` exists. */ - parentThreadExists?: boolean; - /** Filter by the object’s `parentThreadId` field. */ - parentThreadId?: UUIDFilter; - /** Filter by the object’s `promptTemplate` relation. */ - promptTemplate?: AgentPromptFilter; - /** A related `promptTemplate` exists. */ - promptTemplateExists?: boolean; - /** Filter by the object’s `promptTemplateId` field. */ - promptTemplateId?: UUIDFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; + or?: AgentPersonaFilter[]; + /** Filter by the object’s `resources` field. */ + resources?: StringListFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; /** Filter by the object’s `systemPrompt` field. */ systemPrompt?: StringFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** 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; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -/** A filter to be used against `Agent` object types. All fields are combined with a logical ‘and.’ */ -export interface AgentFilter { - /** Filter by the object’s `agentMessages` relation. */ - agentMessages?: AgentToManyAgentMessageFilter; - /** `agentMessages` exist. */ - agentMessagesExist?: boolean; - /** Filter by the object’s `agentThreads` relation. */ - agentThreads?: AgentToManyAgentThreadFilter; - /** `agentThreads` exist. */ - agentThreadsExist?: boolean; +/** 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 `AgentResource` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentResourceFilter { + /** Filter by the object’s `agentResourceChunks` relation. */ + agentResourceChunks?: AgentResourceToManyAgentResourceChunkFilter; + /** `agentResourceChunks` exist. */ + agentResourceChunksExist?: boolean; /** Checks for all expressions in this list. */ - and?: AgentFilter[]; - /** Filter by the object’s `childAgents` relation. */ - childAgents?: AgentToManyAgentFilter; - /** `childAgents` exist. */ - childAgentsExist?: boolean; - /** Filter by the object’s `config` field. */ - config?: JSONFilter; + and?: AgentResourceFilter[]; + /** Filter by the object’s `archivedAt` field. */ + archivedAt?: DatetimeFilter; + /** Filter by the object’s `body` field. */ + body?: StringTrgmFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `description` field. */ + description?: StringTrgmFilter; + /** Filter by the object’s `embedding` field. */ + embedding?: VectorFilter; + /** Filter by the object’s `embeddingUpdatedAt` field. */ + embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `isEphemeral` field. */ - isEphemeral?: BooleanFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; + /** Filter by the object’s `isArchived` field. */ + isArchived?: BooleanFilter; + /** Filter by the object’s `keywords` field. */ + keywords?: StringListFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringTrgmFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; /** Negates the expression. */ - not?: AgentFilter; + not?: AgentResourceFilter; /** Checks for any expressions in this list. */ - or?: AgentFilter[]; - /** Filter by the object’s `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `parent` relation. */ - parent?: AgentFilter; - /** A related `parent` exists. */ - parentExists?: boolean; - /** Filter by the object’s `parentId` field. */ - parentId?: UUIDFilter; - /** Filter by the object’s `persona` relation. */ - persona?: AgentPersonaFilter; - /** A related `persona` exists. */ - personaExists?: boolean; - /** Filter by the object’s `personaId` field. */ - personaId?: UUIDFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `systemPrompt` field. */ - systemPrompt?: StringFilter; + or?: AgentResourceFilter[]; + /** Filter by the object’s `search` field. */ + search?: FullTextFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringTrgmFilter; + /** Filter by the object’s `title` field. */ + title?: StringTrgmFilter; + /** TRGM search on the `body` column. */ + trgmBody?: TrgmSearchInput; + /** TRGM search on the `description` column. */ + trgmDescription?: TrgmSearchInput; + /** TRGM search on the `kind` column. */ + trgmKind?: TrgmSearchInput; + /** TRGM search on the `title` column. */ + trgmTitle?: TrgmSearchInput; + /** TSV search on the `search` column. */ + tsvSearch?: string; + /** + * Composite unified search. Provide a search string and it will be dispatched to + * all text-compatible search algorithms (tsvector, BM25, pg_trgm) + * simultaneously. When the LLM plugin is active, pgvector also participates via + * auto-embedding. Rows matching ANY algorithm are returned. All matching score + * fields are populated. + */ + unifiedSearch?: string; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** VECTOR search on the `embedding` column. */ + vectorEmbedding?: VectorNearbyInput; } -/** A filter to be used against `AgentTask` object types. All fields are combined with a logical ‘and.’ */ -export interface AgentTaskFilter { - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; +/** A filter to be used against Vector fields. All fields are combined with a logical ‘and.’ */ +export interface VectorFilter { + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: number[]; + /** Equal to the specified value. */ + equalTo?: number[]; + /** Included in the specified list. */ + in?: number[][]; + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** 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 `PlatformAgentPersona` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentPersonaFilter { /** Checks for all expressions in this list. */ - and?: AgentTaskFilter[]; - /** Filter by the object’s `approvalFeedback` field. */ - approvalFeedback?: StringFilter; - /** Filter by the object’s `approvalStatus` field. */ - approvalStatus?: StringFilter; - /** Filter by the object’s `approvedAt` field. */ - approvedAt?: DatetimeFilter; - /** Filter by the object’s `approvedBy` field. */ - approvedBy?: UUIDFilter; + and?: PlatformAgentPersonaFilter[]; + /** Filter by the object’s `config` field. */ + config?: JSONFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `description` field. */ description?: StringFilter; - /** Filter by the object’s `error` field. */ - error?: 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?: AgentTaskFilter; + not?: PlatformAgentPersonaFilter; /** Checks for any expressions in this list. */ - or?: AgentTaskFilter[]; - /** Filter by the object’s `orderIndex` field. */ - orderIndex?: IntFilter; - /** Filter by the object’s `plan` relation. */ - plan?: AgentPlanFilter; - /** Filter by the object’s `planId` field. */ - planId?: UUIDFilter; - /** Filter by the object’s `requiresApproval` field. */ - requiresApproval?: BooleanFilter; - /** Filter by the object’s `source` field. */ - source?: StringFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; + or?: PlatformAgentPersonaFilter[]; + /** Filter by the object’s `platformAgentsByPersonaId` relation. */ + platformAgentsByPersonaId?: PlatformAgentPersonaToManyPlatformAgentFilter; + /** `platformAgentsByPersonaId` exist. */ + platformAgentsByPersonaIdExist?: boolean; + /** Filter by the object’s `resources` field. */ + resources?: StringListFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `systemPrompt` field. */ + systemPrompt?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -/** Similarity metric for vector search */ -export type VectorMetric = 'COSINE' | 'IP' | 'L2'; -/** A filter to be used against `AgentResourceChunk` object types. All fields are combined with a logical ‘and.’ */ -export interface AgentResourceChunkFilter { - /** Filter by the object’s `agentResource` relation. */ - agentResource?: AgentResourceFilter; - /** Filter by the object’s `agentResourceId` field. */ - agentResourceId?: UUIDFilter; +/** A filter to be used against `PlatformAgentPrompt` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentPromptFilter { /** Checks for all expressions in this list. */ - and?: AgentResourceChunkFilter[]; - /** Filter by the object’s `body` field. */ - body?: StringFilter; - /** Filter by the object’s `chunkIndex` field. */ - chunkIndex?: IntFilter; + and?: PlatformAgentPromptFilter[]; + /** Filter by the object’s `content` field. */ + content?: StringFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; - /** Filter by the object’s `embedding` field. */ - embedding?: VectorFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `isDefault` field. */ + isDefault?: BooleanFilter; /** Filter by the object’s `metadata` field. */ metadata?: JSONFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; /** Negates the expression. */ - not?: AgentResourceChunkFilter; + not?: PlatformAgentPromptFilter; /** Checks for any expressions in this list. */ - or?: AgentResourceChunkFilter[]; + or?: PlatformAgentPromptFilter[]; + /** Filter by the object’s `platformAgentThreadsByPromptTemplateId` relation. */ + platformAgentThreadsByPromptTemplateId?: PlatformAgentPromptToManyPlatformAgentThreadFilter; + /** `platformAgentThreadsByPromptTemplateId` exist. */ + platformAgentThreadsByPromptTemplateIdExist?: boolean; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; - /** VECTOR search on the `embedding` column. */ - vectorEmbedding?: VectorNearbyInput; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -/** A filter to be used against `AgentPlan` object types. All fields are combined with a logical ‘and.’ */ -export interface AgentPlanFilter { - /** Filter by the object’s `agentTasksByPlanId` relation. */ - agentTasksByPlanId?: AgentPlanToManyAgentTaskFilter; - /** `agentTasksByPlanId` exist. */ - agentTasksByPlanIdExist?: boolean; +/** A filter to be used against `PlatformAgentResource` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentResourceFilter { /** Checks for all expressions in this list. */ - and?: AgentPlanFilter[]; + and?: PlatformAgentResourceFilter[]; + /** Filter by the object’s `archivedAt` field. */ + archivedAt?: DatetimeFilter; + /** Filter by the object’s `body` field. */ + body?: StringTrgmFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `description` field. */ - description?: StringFilter; + description?: StringTrgmFilter; + /** Filter by the object’s `embedding` field. */ + embedding?: VectorFilter; + /** Filter by the object’s `embeddingUpdatedAt` field. */ + embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; + /** Filter by the object’s `isArchived` field. */ + isArchived?: BooleanFilter; + /** Filter by the object’s `keywords` field. */ + keywords?: StringListFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringTrgmFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; /** Negates the expression. */ - not?: AgentPlanFilter; + not?: PlatformAgentResourceFilter; /** Checks for any expressions in this list. */ - or?: AgentPlanFilter[]; - /** Filter by the object’s `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `thread` relation. */ - thread?: AgentThreadFilter; - /** Filter by the object’s `threadId` field. */ - threadId?: UUIDFilter; + or?: PlatformAgentResourceFilter[]; + /** Filter by the object’s `platformAgentResourceChunks` relation. */ + platformAgentResourceChunks?: PlatformAgentResourceToManyPlatformAgentResourceChunkFilter; + /** `platformAgentResourceChunks` exist. */ + platformAgentResourceChunksExist?: boolean; + /** Filter by the object’s `search` field. */ + search?: FullTextFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringTrgmFilter; /** Filter by the object’s `title` field. */ - title?: StringFilter; + title?: StringTrgmFilter; + /** TRGM search on the `body` column. */ + trgmBody?: TrgmSearchInput; + /** TRGM search on the `description` column. */ + trgmDescription?: TrgmSearchInput; + /** TRGM search on the `kind` column. */ + trgmKind?: TrgmSearchInput; + /** TRGM search on the `title` column. */ + trgmTitle?: TrgmSearchInput; + /** TSV search on the `search` column. */ + tsvSearch?: string; + /** + * Composite unified search. Provide a search string and it will be dispatched to + * all text-compatible search algorithms (tsvector, BM25, pg_trgm) + * simultaneously. When the LLM plugin is active, pgvector also participates via + * auto-embedding. Rows matching ANY algorithm are returned. All matching score + * fields are populated. + */ + unifiedSearch?: string; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** VECTOR search on the `embedding` column. */ + vectorEmbedding?: VectorNearbyInput; } -/** A filter to be used against UUID fields. All fields are combined with a logical ‘and.’ */ -export interface UUIDFilter { +/** A filter to be used against BigFloat fields. All fields are combined with a logical ‘and.’ */ +export interface BigFloatFilter { /** Not equal to the specified value, treating null like an ordinary value. */ distinctFrom?: string; /** Equal to the specified value. */ @@ -2479,840 +6289,985 @@ export interface UUIDFilter { /** 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 { +/** A filter to be used against FullText fields. All fields are combined with a logical ‘and.’ */ +export interface FullTextFilter { /** 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; + /** Performs a full text search on the field. */ + matches?: 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 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[]; +// ============ Payload/Return Types (for custom operations) ============ +export interface ProvisionBucketPayload { + /** The logical bucket row that was queued for reconciliation. */ + bucketId: string; + bucketKey: string; + /** The reconciler job enqueued to provision this bucket. */ + jobId: string; + /** The physical bucket name already recorded, or null when reconciliation has not completed. */ + physicalName?: string | null; +} +export type ProvisionBucketPayloadSelect = { + bucketId?: boolean; + bucketKey?: boolean; + jobId?: boolean; + physicalName?: boolean; +}; +export interface CreateAgentPayload { + /** The `Agent` that was created by this mutation. */ + agent?: Agent | null; + agentEdge?: AgentEdge | null; + clientMutationId?: string | null; +} +export type CreateAgentPayloadSelect = { + agent?: { + select: AgentSelect; + }; + agentEdge?: { + select: AgentEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface UpdateAgentPayload { + /** The `Agent` that was updated by this mutation. */ + agent?: Agent | null; + agentEdge?: AgentEdge | null; + clientMutationId?: string | null; +} +export type UpdateAgentPayloadSelect = { + agent?: { + select: AgentSelect; + }; + agentEdge?: { + select: AgentEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface DeleteAgentPayload { + /** The `Agent` that was deleted by this mutation. */ + agent?: Agent | null; + agentEdge?: AgentEdge | null; + clientMutationId?: string | null; +} +export type DeleteAgentPayloadSelect = { + agent?: { + select: AgentSelect; + }; + agentEdge?: { + select: AgentEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface CreateAgentMessagePayload { + /** The `AgentMessage` that was created by this mutation. */ + agentMessage?: AgentMessage | null; + agentMessageEdge?: AgentMessageEdge | null; + clientMutationId?: string | null; +} +export type CreateAgentMessagePayloadSelect = { + agentMessage?: { + select: AgentMessageSelect; + }; + agentMessageEdge?: { + select: AgentMessageEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface UpdateAgentMessagePayload { + /** The `AgentMessage` that was updated by this mutation. */ + agentMessage?: AgentMessage | null; + agentMessageEdge?: AgentMessageEdge | null; + clientMutationId?: string | null; +} +export type UpdateAgentMessagePayloadSelect = { + agentMessage?: { + select: AgentMessageSelect; + }; + agentMessageEdge?: { + select: AgentMessageEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface DeleteAgentMessagePayload { + /** The `AgentMessage` that was deleted by this mutation. */ + agentMessage?: AgentMessage | null; + agentMessageEdge?: AgentMessageEdge | null; + clientMutationId?: string | null; +} +export type DeleteAgentMessagePayloadSelect = { + agentMessage?: { + select: AgentMessageSelect; + }; + agentMessageEdge?: { + select: AgentMessageEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface CreateAgentPersonaPayload { + /** The `AgentPersona` that was created by this mutation. */ + agentPersona?: AgentPersona | null; + agentPersonaEdge?: AgentPersonaEdge | null; + clientMutationId?: string | null; +} +export type CreateAgentPersonaPayloadSelect = { + agentPersona?: { + select: AgentPersonaSelect; + }; + agentPersonaEdge?: { + select: AgentPersonaEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface UpdateAgentPersonaPayload { + /** The `AgentPersona` that was updated by this mutation. */ + agentPersona?: AgentPersona | null; + agentPersonaEdge?: AgentPersonaEdge | null; + clientMutationId?: string | null; +} +export type UpdateAgentPersonaPayloadSelect = { + agentPersona?: { + select: AgentPersonaSelect; + }; + agentPersonaEdge?: { + select: AgentPersonaEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface DeleteAgentPersonaPayload { + /** The `AgentPersona` that was deleted by this mutation. */ + agentPersona?: AgentPersona | null; + agentPersonaEdge?: AgentPersonaEdge | null; + clientMutationId?: string | null; } -/** A filter to be used against JSON fields. All fields are combined with a logical ‘and.’ */ -export interface JSONFilter { - /** Contained by the specified JSON. */ - containedBy?: Record; - /** Contains the specified JSON. */ - contains?: Record; - /** Contains all of the specified keys. */ - containsAllKeys?: string[]; - /** Contains any of the specified keys. */ - containsAnyKeys?: string[]; - /** Contains the specified key. */ - containsKey?: string; - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: Record; - /** Equal to the specified value. */ - equalTo?: Record; - /** Greater than the specified value. */ - greaterThan?: Record; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: Record; - /** Included in the specified list. */ - in?: Record[]; - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Less than the specified value. */ - lessThan?: Record; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: Record; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: Record; - /** Not equal to the specified value. */ - notEqualTo?: Record; - /** Not included in the specified list. */ - notIn?: Record[]; +export type DeleteAgentPersonaPayloadSelect = { + agentPersona?: { + select: AgentPersonaSelect; + }; + agentPersonaEdge?: { + select: AgentPersonaEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface CreateAgentPlanPayload { + /** The `AgentPlan` that was created by this mutation. */ + agentPlan?: AgentPlan | null; + agentPlanEdge?: AgentPlanEdge | null; + clientMutationId?: string | null; } -/** 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[]; +export type CreateAgentPlanPayloadSelect = { + agentPlan?: { + select: AgentPlanSelect; + }; + agentPlanEdge?: { + select: AgentPlanEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface UpdateAgentPlanPayload { + /** The `AgentPlan` that was updated by this mutation. */ + agentPlan?: AgentPlan | null; + agentPlanEdge?: AgentPlanEdge | null; + clientMutationId?: string | null; } -/** A filter to be used against `AgentPrompt` object types. All fields are combined with a logical ‘and.’ */ -export interface AgentPromptFilter { - /** Filter by the object’s `agentThreadsByPromptTemplateId` relation. */ - agentThreadsByPromptTemplateId?: AgentPromptToManyAgentThreadFilter; - /** `agentThreadsByPromptTemplateId` exist. */ - agentThreadsByPromptTemplateIdExist?: boolean; - /** Checks for all expressions in this list. */ - and?: AgentPromptFilter[]; - /** Filter by the object’s `content` field. */ - content?: StringFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isDefault` field. */ - isDefault?: BooleanFilter; - /** Filter by the object’s `metadata` field. */ - metadata?: JSONFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Negates the expression. */ - not?: AgentPromptFilter; - /** Checks for any expressions in this list. */ - or?: AgentPromptFilter[]; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; +export type UpdateAgentPlanPayloadSelect = { + agentPlan?: { + select: AgentPlanSelect; + }; + agentPlanEdge?: { + select: AgentPlanEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface DeleteAgentPlanPayload { + /** The `AgentPlan` that was deleted by this mutation. */ + agentPlan?: AgentPlan | null; + agentPlanEdge?: AgentPlanEdge | null; + clientMutationId?: string | null; +} +export type DeleteAgentPlanPayloadSelect = { + agentPlan?: { + select: AgentPlanSelect; + }; + agentPlanEdge?: { + select: AgentPlanEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface CreateAgentPromptPayload { + /** The `AgentPrompt` that was created by this mutation. */ + agentPrompt?: AgentPrompt | null; + agentPromptEdge?: AgentPromptEdge | null; + clientMutationId?: string | null; +} +export type CreateAgentPromptPayloadSelect = { + agentPrompt?: { + select: AgentPromptSelect; + }; + agentPromptEdge?: { + select: AgentPromptEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface UpdateAgentPromptPayload { + /** The `AgentPrompt` that was updated by this mutation. */ + agentPrompt?: AgentPrompt | null; + agentPromptEdge?: AgentPromptEdge | null; + clientMutationId?: string | null; +} +export type UpdateAgentPromptPayloadSelect = { + agentPrompt?: { + select: AgentPromptSelect; + }; + agentPromptEdge?: { + select: AgentPromptEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface DeleteAgentPromptPayload { + /** The `AgentPrompt` that was deleted by this mutation. */ + agentPrompt?: AgentPrompt | null; + agentPromptEdge?: AgentPromptEdge | null; + clientMutationId?: string | null; +} +export type DeleteAgentPromptPayloadSelect = { + agentPrompt?: { + select: AgentPromptSelect; + }; + agentPromptEdge?: { + select: AgentPromptEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface CreateAgentResourceChunkPayload { + /** The `AgentResourceChunk` that was created by this mutation. */ + agentResourceChunk?: AgentResourceChunk | null; + agentResourceChunkEdge?: AgentResourceChunkEdge | null; + clientMutationId?: string | null; +} +export type CreateAgentResourceChunkPayloadSelect = { + agentResourceChunk?: { + select: AgentResourceChunkSelect; + }; + agentResourceChunkEdge?: { + select: AgentResourceChunkEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface UpdateAgentResourceChunkPayload { + /** The `AgentResourceChunk` that was updated by this mutation. */ + agentResourceChunk?: AgentResourceChunk | null; + agentResourceChunkEdge?: AgentResourceChunkEdge | null; + clientMutationId?: string | null; } -/** A filter to be used against String List fields. All fields are combined with a logical ‘and.’ */ -export interface StringListFilter { - /** Any array item is equal to the specified value. */ - anyEqualTo?: string; - /** Any array item is greater than the specified value. */ - anyGreaterThan?: string; - /** Any array item is greater than or equal to the specified value. */ - anyGreaterThanOrEqualTo?: string; - /** Any array item is less than the specified value. */ - anyLessThan?: string; - /** Any array item is less than or equal to the specified value. */ - anyLessThanOrEqualTo?: string; - /** Any array item is not equal to the specified value. */ - anyNotEqualTo?: string; - /** Contained by the specified list of values. */ - containedBy?: string[]; - /** Contains the specified list of values. */ - contains?: string[]; - /** 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[]; - /** 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[]; - /** Overlaps the specified list of values. */ - overlaps?: string[]; +export type UpdateAgentResourceChunkPayloadSelect = { + agentResourceChunk?: { + select: AgentResourceChunkSelect; + }; + agentResourceChunkEdge?: { + select: AgentResourceChunkEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface DeleteAgentResourceChunkPayload { + /** The `AgentResourceChunk` that was deleted by this mutation. */ + agentResourceChunk?: AgentResourceChunk | null; + agentResourceChunkEdge?: AgentResourceChunkEdge | null; + clientMutationId?: string | null; } -/** A filter to be used against `AgentPersona` object types. All fields are combined with a logical ‘and.’ */ -export interface AgentPersonaFilter { - /** Filter by the object’s `agentsByPersonaId` relation. */ - agentsByPersonaId?: AgentPersonaToManyAgentFilter; - /** `agentsByPersonaId` exist. */ - agentsByPersonaIdExist?: boolean; - /** Checks for all expressions in this list. */ - and?: AgentPersonaFilter[]; - /** Filter by the object’s `config` field. */ - config?: JSONFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `description` field. */ - description?: 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?: AgentPersonaFilter; - /** Checks for any expressions in this list. */ - or?: AgentPersonaFilter[]; - /** Filter by the object’s `resources` field. */ - resources?: StringListFilter; - /** Filter by the object’s `slug` field. */ - slug?: StringFilter; - /** Filter by the object’s `systemPrompt` field. */ - systemPrompt?: StringFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; +export type DeleteAgentResourceChunkPayloadSelect = { + agentResourceChunk?: { + select: AgentResourceChunkSelect; + }; + agentResourceChunkEdge?: { + select: AgentResourceChunkEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface CreateAgentResourcePayload { + /** The `AgentResource` that was created by this mutation. */ + agentResource?: AgentResource | null; + agentResourceEdge?: AgentResourceEdge | null; + clientMutationId?: string | null; } -/** 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[]; +export type CreateAgentResourcePayloadSelect = { + agentResource?: { + select: AgentResourceSelect; + }; + agentResourceEdge?: { + select: AgentResourceEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface UpdateAgentResourcePayload { + /** The `AgentResource` that was updated by this mutation. */ + agentResource?: AgentResource | null; + agentResourceEdge?: AgentResourceEdge | null; + clientMutationId?: string | null; } -/** A filter to be used against `AgentResource` object types. All fields are combined with a logical ‘and.’ */ -export interface AgentResourceFilter { - /** Filter by the object’s `agentResourceChunks` relation. */ - agentResourceChunks?: AgentResourceToManyAgentResourceChunkFilter; - /** `agentResourceChunks` exist. */ - agentResourceChunksExist?: boolean; - /** Checks for all expressions in this list. */ - and?: AgentResourceFilter[]; - /** Filter by the object’s `archivedAt` field. */ - archivedAt?: DatetimeFilter; - /** Filter by the object’s `body` field. */ - body?: StringTrgmFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `description` field. */ - description?: StringTrgmFilter; - /** Filter by the object’s `embedding` field. */ - embedding?: VectorFilter; - /** Filter by the object’s `embeddingUpdatedAt` field. */ - embeddingUpdatedAt?: DatetimeFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isActive` field. */ - isActive?: BooleanFilter; - /** Filter by the object’s `isArchived` field. */ - isArchived?: BooleanFilter; - /** Filter by the object’s `keywords` field. */ - keywords?: StringListFilter; - /** Filter by the object’s `kind` field. */ - kind?: StringTrgmFilter; - /** Filter by the object’s `metadata` field. */ - metadata?: JSONFilter; - /** Negates the expression. */ - not?: AgentResourceFilter; - /** Checks for any expressions in this list. */ - or?: AgentResourceFilter[]; - /** Filter by the object’s `search` field. */ - search?: FullTextFilter; - /** Filter by the object’s `slug` field. */ - slug?: StringTrgmFilter; - /** Filter by the object’s `title` field. */ - title?: StringTrgmFilter; - /** TRGM search on the `body` column. */ - trgmBody?: TrgmSearchInput; - /** TRGM search on the `description` column. */ - trgmDescription?: TrgmSearchInput; - /** TRGM search on the `kind` column. */ - trgmKind?: TrgmSearchInput; - /** TRGM search on the `title` column. */ - trgmTitle?: TrgmSearchInput; - /** TSV search on the `search` column. */ - tsvSearch?: string; - /** - * Composite unified search. Provide a search string and it will be dispatched to - * all text-compatible search algorithms (tsvector, BM25, pg_trgm) - * simultaneously. When the LLM plugin is active, pgvector also participates via - * auto-embedding. Rows matching ANY algorithm are returned. All matching score - * fields are populated. - */ - unifiedSearch?: string; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** VECTOR search on the `embedding` column. */ - vectorEmbedding?: VectorNearbyInput; +export type UpdateAgentResourcePayloadSelect = { + agentResource?: { + select: AgentResourceSelect; + }; + agentResourceEdge?: { + select: AgentResourceEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface DeleteAgentResourcePayload { + /** The `AgentResource` that was deleted by this mutation. */ + agentResource?: AgentResource | null; + agentResourceEdge?: AgentResourceEdge | null; + clientMutationId?: string | null; +} +export type DeleteAgentResourcePayloadSelect = { + agentResource?: { + select: AgentResourceSelect; + }; + agentResourceEdge?: { + select: AgentResourceEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface CreateAgentTaskPayload { + /** The `AgentTask` that was created by this mutation. */ + agentTask?: AgentTask | null; + agentTaskEdge?: AgentTaskEdge | null; + clientMutationId?: string | null; +} +export type CreateAgentTaskPayloadSelect = { + agentTask?: { + select: AgentTaskSelect; + }; + agentTaskEdge?: { + select: AgentTaskEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface UpdateAgentTaskPayload { + /** The `AgentTask` that was updated by this mutation. */ + agentTask?: AgentTask | null; + agentTaskEdge?: AgentTaskEdge | null; + clientMutationId?: string | null; } -/** A filter to be used against Vector fields. All fields are combined with a logical ‘and.’ */ -export interface VectorFilter { - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: number[]; - /** Equal to the specified value. */ - equalTo?: number[]; - /** Included in the specified list. */ - in?: number[][]; - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** 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[][]; +export type UpdateAgentTaskPayloadSelect = { + agentTask?: { + select: AgentTaskSelect; + }; + agentTaskEdge?: { + select: AgentTaskEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface DeleteAgentTaskPayload { + /** The `AgentTask` that was deleted by this mutation. */ + agentTask?: AgentTask | null; + agentTaskEdge?: AgentTaskEdge | null; + clientMutationId?: string | null; } -/** A filter to be used against FullText fields. All fields are combined with a logical ‘and.’ */ -export interface FullTextFilter { - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: string; - /** Equal to the specified value. */ - equalTo?: string; - /** Included in the specified list. */ - in?: string[]; - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Performs a full text search on the field. */ - matches?: 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[]; +export type DeleteAgentTaskPayloadSelect = { + agentTask?: { + select: AgentTaskSelect; + }; + agentTaskEdge?: { + select: AgentTaskEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface CreateAgentThreadPayload { + /** The `AgentThread` that was created by this mutation. */ + agentThread?: AgentThread | null; + agentThreadEdge?: AgentThreadEdge | null; + clientMutationId?: string | null; } -// ============ Payload/Return Types (for custom operations) ============ -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 CreateAgentThreadPayloadSelect = { + agentThread?: { + select: AgentThreadSelect; + }; + agentThreadEdge?: { + select: AgentThreadEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface UpdateAgentThreadPayload { + /** The `AgentThread` that was updated by this mutation. */ + agentThread?: AgentThread | null; + agentThreadEdge?: AgentThreadEdge | null; + clientMutationId?: string | null; } -export type ProvisionBucketPayloadSelect = { - accessType?: boolean; - bucketName?: boolean; - endpoint?: boolean; - error?: boolean; - provider?: boolean; - success?: boolean; +export type UpdateAgentThreadPayloadSelect = { + agentThread?: { + select: AgentThreadSelect; + }; + agentThreadEdge?: { + select: AgentThreadEdgeSelect; + }; + clientMutationId?: boolean; }; -export interface CreateAgentPayload { - /** The `Agent` that was created by this mutation. */ - agent?: Agent | null; - agentEdge?: AgentEdge | null; +export interface DeleteAgentThreadPayload { + /** The `AgentThread` that was deleted by this mutation. */ + agentThread?: AgentThread | null; + agentThreadEdge?: AgentThreadEdge | null; clientMutationId?: string | null; } -export type CreateAgentPayloadSelect = { - agent?: { - select: AgentSelect; +export type DeleteAgentThreadPayloadSelect = { + agentThread?: { + select: AgentThreadSelect; }; - agentEdge?: { - select: AgentEdgeSelect; + agentThreadEdge?: { + select: AgentThreadEdgeSelect; }; clientMutationId?: boolean; }; -export interface UpdateAgentPayload { - /** The `Agent` that was updated by this mutation. */ - agent?: Agent | null; - agentEdge?: AgentEdge | null; +export interface CreatePlatformAgentPayload { clientMutationId?: string | null; + /** The `PlatformAgent` that was created by this mutation. */ + platformAgent?: PlatformAgent | null; + platformAgentEdge?: PlatformAgentEdge | null; } -export type UpdateAgentPayloadSelect = { - agent?: { - select: AgentSelect; +export type CreatePlatformAgentPayloadSelect = { + clientMutationId?: boolean; + platformAgent?: { + select: PlatformAgentSelect; }; - agentEdge?: { - select: AgentEdgeSelect; + platformAgentEdge?: { + select: PlatformAgentEdgeSelect; }; +}; +export interface UpdatePlatformAgentPayload { + clientMutationId?: string | null; + /** The `PlatformAgent` that was updated by this mutation. */ + platformAgent?: PlatformAgent | null; + platformAgentEdge?: PlatformAgentEdge | null; +} +export type UpdatePlatformAgentPayloadSelect = { clientMutationId?: boolean; + platformAgent?: { + select: PlatformAgentSelect; + }; + platformAgentEdge?: { + select: PlatformAgentEdgeSelect; + }; }; -export interface DeleteAgentPayload { - /** The `Agent` that was deleted by this mutation. */ - agent?: Agent | null; - agentEdge?: AgentEdge | null; +export interface DeletePlatformAgentPayload { clientMutationId?: string | null; + /** The `PlatformAgent` that was deleted by this mutation. */ + platformAgent?: PlatformAgent | null; + platformAgentEdge?: PlatformAgentEdge | null; } -export type DeleteAgentPayloadSelect = { - agent?: { - select: AgentSelect; +export type DeletePlatformAgentPayloadSelect = { + clientMutationId?: boolean; + platformAgent?: { + select: PlatformAgentSelect; }; - agentEdge?: { - select: AgentEdgeSelect; + platformAgentEdge?: { + select: PlatformAgentEdgeSelect; }; +}; +export interface CreatePlatformAgentEventPayload { + clientMutationId?: string | null; + /** The `PlatformAgentEvent` that was created by this mutation. */ + platformAgentEvent?: PlatformAgentEvent | null; + platformAgentEventEdge?: PlatformAgentEventEdge | null; +} +export type CreatePlatformAgentEventPayloadSelect = { clientMutationId?: boolean; + platformAgentEvent?: { + select: PlatformAgentEventSelect; + }; + platformAgentEventEdge?: { + select: PlatformAgentEventEdgeSelect; + }; }; -export interface CreateAgentMessagePayload { - /** The `AgentMessage` that was created by this mutation. */ - agentMessage?: AgentMessage | null; - agentMessageEdge?: AgentMessageEdge | null; +export interface UpdatePlatformAgentEventPayload { clientMutationId?: string | null; + /** The `PlatformAgentEvent` that was updated by this mutation. */ + platformAgentEvent?: PlatformAgentEvent | null; + platformAgentEventEdge?: PlatformAgentEventEdge | null; } -export type CreateAgentMessagePayloadSelect = { - agentMessage?: { - select: AgentMessageSelect; +export type UpdatePlatformAgentEventPayloadSelect = { + clientMutationId?: boolean; + platformAgentEvent?: { + select: PlatformAgentEventSelect; }; - agentMessageEdge?: { - select: AgentMessageEdgeSelect; + platformAgentEventEdge?: { + select: PlatformAgentEventEdgeSelect; }; +}; +export interface DeletePlatformAgentEventPayload { + clientMutationId?: string | null; + /** The `PlatformAgentEvent` that was deleted by this mutation. */ + platformAgentEvent?: PlatformAgentEvent | null; + platformAgentEventEdge?: PlatformAgentEventEdge | null; +} +export type DeletePlatformAgentEventPayloadSelect = { clientMutationId?: boolean; + platformAgentEvent?: { + select: PlatformAgentEventSelect; + }; + platformAgentEventEdge?: { + select: PlatformAgentEventEdgeSelect; + }; }; -export interface UpdateAgentMessagePayload { - /** The `AgentMessage` that was updated by this mutation. */ - agentMessage?: AgentMessage | null; - agentMessageEdge?: AgentMessageEdge | null; +export interface CreatePlatformAgentMessagePayload { clientMutationId?: string | null; + /** The `PlatformAgentMessage` that was created by this mutation. */ + platformAgentMessage?: PlatformAgentMessage | null; + platformAgentMessageEdge?: PlatformAgentMessageEdge | null; } -export type UpdateAgentMessagePayloadSelect = { - agentMessage?: { - select: AgentMessageSelect; +export type CreatePlatformAgentMessagePayloadSelect = { + clientMutationId?: boolean; + platformAgentMessage?: { + select: PlatformAgentMessageSelect; }; - agentMessageEdge?: { - select: AgentMessageEdgeSelect; + platformAgentMessageEdge?: { + select: PlatformAgentMessageEdgeSelect; }; +}; +export interface UpdatePlatformAgentMessagePayload { + clientMutationId?: string | null; + /** The `PlatformAgentMessage` that was updated by this mutation. */ + platformAgentMessage?: PlatformAgentMessage | null; + platformAgentMessageEdge?: PlatformAgentMessageEdge | null; +} +export type UpdatePlatformAgentMessagePayloadSelect = { clientMutationId?: boolean; + platformAgentMessage?: { + select: PlatformAgentMessageSelect; + }; + platformAgentMessageEdge?: { + select: PlatformAgentMessageEdgeSelect; + }; }; -export interface DeleteAgentMessagePayload { - /** The `AgentMessage` that was deleted by this mutation. */ - agentMessage?: AgentMessage | null; - agentMessageEdge?: AgentMessageEdge | null; +export interface DeletePlatformAgentMessagePayload { clientMutationId?: string | null; + /** The `PlatformAgentMessage` that was deleted by this mutation. */ + platformAgentMessage?: PlatformAgentMessage | null; + platformAgentMessageEdge?: PlatformAgentMessageEdge | null; } -export type DeleteAgentMessagePayloadSelect = { - agentMessage?: { - select: AgentMessageSelect; +export type DeletePlatformAgentMessagePayloadSelect = { + clientMutationId?: boolean; + platformAgentMessage?: { + select: PlatformAgentMessageSelect; }; - agentMessageEdge?: { - select: AgentMessageEdgeSelect; + platformAgentMessageEdge?: { + select: PlatformAgentMessageEdgeSelect; }; +}; +export interface CreatePlatformAgentPersonaPayload { + clientMutationId?: string | null; + /** The `PlatformAgentPersona` that was created by this mutation. */ + platformAgentPersona?: PlatformAgentPersona | null; + platformAgentPersonaEdge?: PlatformAgentPersonaEdge | null; +} +export type CreatePlatformAgentPersonaPayloadSelect = { clientMutationId?: boolean; + platformAgentPersona?: { + select: PlatformAgentPersonaSelect; + }; + platformAgentPersonaEdge?: { + select: PlatformAgentPersonaEdgeSelect; + }; }; -export interface CreateAgentPersonaPayload { - /** The `AgentPersona` that was created by this mutation. */ - agentPersona?: AgentPersona | null; - agentPersonaEdge?: AgentPersonaEdge | null; +export interface UpdatePlatformAgentPersonaPayload { clientMutationId?: string | null; + /** The `PlatformAgentPersona` that was updated by this mutation. */ + platformAgentPersona?: PlatformAgentPersona | null; + platformAgentPersonaEdge?: PlatformAgentPersonaEdge | null; } -export type CreateAgentPersonaPayloadSelect = { - agentPersona?: { - select: AgentPersonaSelect; +export type UpdatePlatformAgentPersonaPayloadSelect = { + clientMutationId?: boolean; + platformAgentPersona?: { + select: PlatformAgentPersonaSelect; }; - agentPersonaEdge?: { - select: AgentPersonaEdgeSelect; + platformAgentPersonaEdge?: { + select: PlatformAgentPersonaEdgeSelect; }; +}; +export interface DeletePlatformAgentPersonaPayload { + clientMutationId?: string | null; + /** The `PlatformAgentPersona` that was deleted by this mutation. */ + platformAgentPersona?: PlatformAgentPersona | null; + platformAgentPersonaEdge?: PlatformAgentPersonaEdge | null; +} +export type DeletePlatformAgentPersonaPayloadSelect = { clientMutationId?: boolean; + platformAgentPersona?: { + select: PlatformAgentPersonaSelect; + }; + platformAgentPersonaEdge?: { + select: PlatformAgentPersonaEdgeSelect; + }; }; -export interface UpdateAgentPersonaPayload { - /** The `AgentPersona` that was updated by this mutation. */ - agentPersona?: AgentPersona | null; - agentPersonaEdge?: AgentPersonaEdge | null; +export interface CreatePlatformAgentPlanPayload { clientMutationId?: string | null; + /** The `PlatformAgentPlan` that was created by this mutation. */ + platformAgentPlan?: PlatformAgentPlan | null; + platformAgentPlanEdge?: PlatformAgentPlanEdge | null; } -export type UpdateAgentPersonaPayloadSelect = { - agentPersona?: { - select: AgentPersonaSelect; +export type CreatePlatformAgentPlanPayloadSelect = { + clientMutationId?: boolean; + platformAgentPlan?: { + select: PlatformAgentPlanSelect; }; - agentPersonaEdge?: { - select: AgentPersonaEdgeSelect; + platformAgentPlanEdge?: { + select: PlatformAgentPlanEdgeSelect; }; +}; +export interface UpdatePlatformAgentPlanPayload { + clientMutationId?: string | null; + /** The `PlatformAgentPlan` that was updated by this mutation. */ + platformAgentPlan?: PlatformAgentPlan | null; + platformAgentPlanEdge?: PlatformAgentPlanEdge | null; +} +export type UpdatePlatformAgentPlanPayloadSelect = { clientMutationId?: boolean; + platformAgentPlan?: { + select: PlatformAgentPlanSelect; + }; + platformAgentPlanEdge?: { + select: PlatformAgentPlanEdgeSelect; + }; }; -export interface DeleteAgentPersonaPayload { - /** The `AgentPersona` that was deleted by this mutation. */ - agentPersona?: AgentPersona | null; - agentPersonaEdge?: AgentPersonaEdge | null; +export interface DeletePlatformAgentPlanPayload { clientMutationId?: string | null; + /** The `PlatformAgentPlan` that was deleted by this mutation. */ + platformAgentPlan?: PlatformAgentPlan | null; + platformAgentPlanEdge?: PlatformAgentPlanEdge | null; } -export type DeleteAgentPersonaPayloadSelect = { - agentPersona?: { - select: AgentPersonaSelect; +export type DeletePlatformAgentPlanPayloadSelect = { + clientMutationId?: boolean; + platformAgentPlan?: { + select: PlatformAgentPlanSelect; }; - agentPersonaEdge?: { - select: AgentPersonaEdgeSelect; + platformAgentPlanEdge?: { + select: PlatformAgentPlanEdgeSelect; }; +}; +export interface CreatePlatformAgentPromptPayload { + clientMutationId?: string | null; + /** The `PlatformAgentPrompt` that was created by this mutation. */ + platformAgentPrompt?: PlatformAgentPrompt | null; + platformAgentPromptEdge?: PlatformAgentPromptEdge | null; +} +export type CreatePlatformAgentPromptPayloadSelect = { clientMutationId?: boolean; + platformAgentPrompt?: { + select: PlatformAgentPromptSelect; + }; + platformAgentPromptEdge?: { + select: PlatformAgentPromptEdgeSelect; + }; }; -export interface CreateAgentPlanPayload { - /** The `AgentPlan` that was created by this mutation. */ - agentPlan?: AgentPlan | null; - agentPlanEdge?: AgentPlanEdge | null; +export interface UpdatePlatformAgentPromptPayload { clientMutationId?: string | null; + /** The `PlatformAgentPrompt` that was updated by this mutation. */ + platformAgentPrompt?: PlatformAgentPrompt | null; + platformAgentPromptEdge?: PlatformAgentPromptEdge | null; } -export type CreateAgentPlanPayloadSelect = { - agentPlan?: { - select: AgentPlanSelect; +export type UpdatePlatformAgentPromptPayloadSelect = { + clientMutationId?: boolean; + platformAgentPrompt?: { + select: PlatformAgentPromptSelect; }; - agentPlanEdge?: { - select: AgentPlanEdgeSelect; + platformAgentPromptEdge?: { + select: PlatformAgentPromptEdgeSelect; }; +}; +export interface DeletePlatformAgentPromptPayload { + clientMutationId?: string | null; + /** The `PlatformAgentPrompt` that was deleted by this mutation. */ + platformAgentPrompt?: PlatformAgentPrompt | null; + platformAgentPromptEdge?: PlatformAgentPromptEdge | null; +} +export type DeletePlatformAgentPromptPayloadSelect = { clientMutationId?: boolean; + platformAgentPrompt?: { + select: PlatformAgentPromptSelect; + }; + platformAgentPromptEdge?: { + select: PlatformAgentPromptEdgeSelect; + }; }; -export interface UpdateAgentPlanPayload { - /** The `AgentPlan` that was updated by this mutation. */ - agentPlan?: AgentPlan | null; - agentPlanEdge?: AgentPlanEdge | null; +export interface CreatePlatformAgentResourceChunkPayload { + clientMutationId?: string | null; + /** The `PlatformAgentResourceChunk` that was created by this mutation. */ + platformAgentResourceChunk?: PlatformAgentResourceChunk | null; + platformAgentResourceChunkEdge?: PlatformAgentResourceChunkEdge | null; +} +export type CreatePlatformAgentResourceChunkPayloadSelect = { + clientMutationId?: boolean; + platformAgentResourceChunk?: { + select: PlatformAgentResourceChunkSelect; + }; + platformAgentResourceChunkEdge?: { + select: PlatformAgentResourceChunkEdgeSelect; + }; +}; +export interface UpdatePlatformAgentResourceChunkPayload { clientMutationId?: string | null; + /** The `PlatformAgentResourceChunk` that was updated by this mutation. */ + platformAgentResourceChunk?: PlatformAgentResourceChunk | null; + platformAgentResourceChunkEdge?: PlatformAgentResourceChunkEdge | null; } -export type UpdateAgentPlanPayloadSelect = { - agentPlan?: { - select: AgentPlanSelect; +export type UpdatePlatformAgentResourceChunkPayloadSelect = { + clientMutationId?: boolean; + platformAgentResourceChunk?: { + select: PlatformAgentResourceChunkSelect; }; - agentPlanEdge?: { - select: AgentPlanEdgeSelect; + platformAgentResourceChunkEdge?: { + select: PlatformAgentResourceChunkEdgeSelect; }; - clientMutationId?: boolean; }; -export interface DeleteAgentPlanPayload { - /** The `AgentPlan` that was deleted by this mutation. */ - agentPlan?: AgentPlan | null; - agentPlanEdge?: AgentPlanEdge | null; +export interface DeletePlatformAgentResourceChunkPayload { clientMutationId?: string | null; + /** The `PlatformAgentResourceChunk` that was deleted by this mutation. */ + platformAgentResourceChunk?: PlatformAgentResourceChunk | null; + platformAgentResourceChunkEdge?: PlatformAgentResourceChunkEdge | null; } -export type DeleteAgentPlanPayloadSelect = { - agentPlan?: { - select: AgentPlanSelect; +export type DeletePlatformAgentResourceChunkPayloadSelect = { + clientMutationId?: boolean; + platformAgentResourceChunk?: { + select: PlatformAgentResourceChunkSelect; }; - agentPlanEdge?: { - select: AgentPlanEdgeSelect; + platformAgentResourceChunkEdge?: { + select: PlatformAgentResourceChunkEdgeSelect; }; - clientMutationId?: boolean; }; -export interface CreateAgentPromptPayload { - /** The `AgentPrompt` that was created by this mutation. */ - agentPrompt?: AgentPrompt | null; - agentPromptEdge?: AgentPromptEdge | null; +export interface CreatePlatformAgentResourcePayload { clientMutationId?: string | null; + /** The `PlatformAgentResource` that was created by this mutation. */ + platformAgentResource?: PlatformAgentResource | null; + platformAgentResourceEdge?: PlatformAgentResourceEdge | null; } -export type CreateAgentPromptPayloadSelect = { - agentPrompt?: { - select: AgentPromptSelect; +export type CreatePlatformAgentResourcePayloadSelect = { + clientMutationId?: boolean; + platformAgentResource?: { + select: PlatformAgentResourceSelect; }; - agentPromptEdge?: { - select: AgentPromptEdgeSelect; + platformAgentResourceEdge?: { + select: PlatformAgentResourceEdgeSelect; }; - clientMutationId?: boolean; }; -export interface UpdateAgentPromptPayload { - /** The `AgentPrompt` that was updated by this mutation. */ - agentPrompt?: AgentPrompt | null; - agentPromptEdge?: AgentPromptEdge | null; +export interface UpdatePlatformAgentResourcePayload { clientMutationId?: string | null; + /** The `PlatformAgentResource` that was updated by this mutation. */ + platformAgentResource?: PlatformAgentResource | null; + platformAgentResourceEdge?: PlatformAgentResourceEdge | null; } -export type UpdateAgentPromptPayloadSelect = { - agentPrompt?: { - select: AgentPromptSelect; +export type UpdatePlatformAgentResourcePayloadSelect = { + clientMutationId?: boolean; + platformAgentResource?: { + select: PlatformAgentResourceSelect; }; - agentPromptEdge?: { - select: AgentPromptEdgeSelect; + platformAgentResourceEdge?: { + select: PlatformAgentResourceEdgeSelect; }; - clientMutationId?: boolean; }; -export interface DeleteAgentPromptPayload { - /** The `AgentPrompt` that was deleted by this mutation. */ - agentPrompt?: AgentPrompt | null; - agentPromptEdge?: AgentPromptEdge | null; +export interface DeletePlatformAgentResourcePayload { clientMutationId?: string | null; + /** The `PlatformAgentResource` that was deleted by this mutation. */ + platformAgentResource?: PlatformAgentResource | null; + platformAgentResourceEdge?: PlatformAgentResourceEdge | null; } -export type DeleteAgentPromptPayloadSelect = { - agentPrompt?: { - select: AgentPromptSelect; +export type DeletePlatformAgentResourcePayloadSelect = { + clientMutationId?: boolean; + platformAgentResource?: { + select: PlatformAgentResourceSelect; }; - agentPromptEdge?: { - select: AgentPromptEdgeSelect; + platformAgentResourceEdge?: { + select: PlatformAgentResourceEdgeSelect; }; - clientMutationId?: boolean; }; -export interface CreateAgentResourceChunkPayload { - /** The `AgentResourceChunk` that was created by this mutation. */ - agentResourceChunk?: AgentResourceChunk | null; - agentResourceChunkEdge?: AgentResourceChunkEdge | null; +export interface CreatePlatformAgentRunPayload { clientMutationId?: string | null; + /** The `PlatformAgentRun` that was created by this mutation. */ + platformAgentRun?: PlatformAgentRun | null; + platformAgentRunEdge?: PlatformAgentRunEdge | null; } -export type CreateAgentResourceChunkPayloadSelect = { - agentResourceChunk?: { - select: AgentResourceChunkSelect; +export type CreatePlatformAgentRunPayloadSelect = { + clientMutationId?: boolean; + platformAgentRun?: { + select: PlatformAgentRunSelect; }; - agentResourceChunkEdge?: { - select: AgentResourceChunkEdgeSelect; + platformAgentRunEdge?: { + select: PlatformAgentRunEdgeSelect; }; - clientMutationId?: boolean; }; -export interface UpdateAgentResourceChunkPayload { - /** The `AgentResourceChunk` that was updated by this mutation. */ - agentResourceChunk?: AgentResourceChunk | null; - agentResourceChunkEdge?: AgentResourceChunkEdge | null; +export interface UpdatePlatformAgentRunPayload { clientMutationId?: string | null; + /** The `PlatformAgentRun` that was updated by this mutation. */ + platformAgentRun?: PlatformAgentRun | null; + platformAgentRunEdge?: PlatformAgentRunEdge | null; } -export type UpdateAgentResourceChunkPayloadSelect = { - agentResourceChunk?: { - select: AgentResourceChunkSelect; +export type UpdatePlatformAgentRunPayloadSelect = { + clientMutationId?: boolean; + platformAgentRun?: { + select: PlatformAgentRunSelect; }; - agentResourceChunkEdge?: { - select: AgentResourceChunkEdgeSelect; + platformAgentRunEdge?: { + select: PlatformAgentRunEdgeSelect; }; - clientMutationId?: boolean; }; -export interface DeleteAgentResourceChunkPayload { - /** The `AgentResourceChunk` that was deleted by this mutation. */ - agentResourceChunk?: AgentResourceChunk | null; - agentResourceChunkEdge?: AgentResourceChunkEdge | null; +export interface DeletePlatformAgentRunPayload { clientMutationId?: string | null; + /** The `PlatformAgentRun` that was deleted by this mutation. */ + platformAgentRun?: PlatformAgentRun | null; + platformAgentRunEdge?: PlatformAgentRunEdge | null; } -export type DeleteAgentResourceChunkPayloadSelect = { - agentResourceChunk?: { - select: AgentResourceChunkSelect; +export type DeletePlatformAgentRunPayloadSelect = { + clientMutationId?: boolean; + platformAgentRun?: { + select: PlatformAgentRunSelect; }; - agentResourceChunkEdge?: { - select: AgentResourceChunkEdgeSelect; + platformAgentRunEdge?: { + select: PlatformAgentRunEdgeSelect; }; - clientMutationId?: boolean; }; -export interface CreateAgentResourcePayload { - /** The `AgentResource` that was created by this mutation. */ - agentResource?: AgentResource | null; - agentResourceEdge?: AgentResourceEdge | null; +export interface CreatePlatformAgentRunWorkspacePayload { clientMutationId?: string | null; + /** The `PlatformAgentRunWorkspace` that was created by this mutation. */ + platformAgentRunWorkspace?: PlatformAgentRunWorkspace | null; + platformAgentRunWorkspaceEdge?: PlatformAgentRunWorkspaceEdge | null; } -export type CreateAgentResourcePayloadSelect = { - agentResource?: { - select: AgentResourceSelect; +export type CreatePlatformAgentRunWorkspacePayloadSelect = { + clientMutationId?: boolean; + platformAgentRunWorkspace?: { + select: PlatformAgentRunWorkspaceSelect; }; - agentResourceEdge?: { - select: AgentResourceEdgeSelect; + platformAgentRunWorkspaceEdge?: { + select: PlatformAgentRunWorkspaceEdgeSelect; }; - clientMutationId?: boolean; }; -export interface UpdateAgentResourcePayload { - /** The `AgentResource` that was updated by this mutation. */ - agentResource?: AgentResource | null; - agentResourceEdge?: AgentResourceEdge | null; +export interface UpdatePlatformAgentRunWorkspacePayload { clientMutationId?: string | null; + /** The `PlatformAgentRunWorkspace` that was updated by this mutation. */ + platformAgentRunWorkspace?: PlatformAgentRunWorkspace | null; + platformAgentRunWorkspaceEdge?: PlatformAgentRunWorkspaceEdge | null; } -export type UpdateAgentResourcePayloadSelect = { - agentResource?: { - select: AgentResourceSelect; +export type UpdatePlatformAgentRunWorkspacePayloadSelect = { + clientMutationId?: boolean; + platformAgentRunWorkspace?: { + select: PlatformAgentRunWorkspaceSelect; }; - agentResourceEdge?: { - select: AgentResourceEdgeSelect; + platformAgentRunWorkspaceEdge?: { + select: PlatformAgentRunWorkspaceEdgeSelect; }; - clientMutationId?: boolean; }; -export interface DeleteAgentResourcePayload { - /** The `AgentResource` that was deleted by this mutation. */ - agentResource?: AgentResource | null; - agentResourceEdge?: AgentResourceEdge | null; +export interface DeletePlatformAgentRunWorkspacePayload { clientMutationId?: string | null; + /** The `PlatformAgentRunWorkspace` that was deleted by this mutation. */ + platformAgentRunWorkspace?: PlatformAgentRunWorkspace | null; + platformAgentRunWorkspaceEdge?: PlatformAgentRunWorkspaceEdge | null; } -export type DeleteAgentResourcePayloadSelect = { - agentResource?: { - select: AgentResourceSelect; +export type DeletePlatformAgentRunWorkspacePayloadSelect = { + clientMutationId?: boolean; + platformAgentRunWorkspace?: { + select: PlatformAgentRunWorkspaceSelect; }; - agentResourceEdge?: { - select: AgentResourceEdgeSelect; + platformAgentRunWorkspaceEdge?: { + select: PlatformAgentRunWorkspaceEdgeSelect; }; - clientMutationId?: boolean; }; -export interface CreateAgentTaskPayload { - /** The `AgentTask` that was created by this mutation. */ - agentTask?: AgentTask | null; - agentTaskEdge?: AgentTaskEdge | null; +export interface CreatePlatformAgentTaskPayload { clientMutationId?: string | null; + /** The `PlatformAgentTask` that was created by this mutation. */ + platformAgentTask?: PlatformAgentTask | null; + platformAgentTaskEdge?: PlatformAgentTaskEdge | null; } -export type CreateAgentTaskPayloadSelect = { - agentTask?: { - select: AgentTaskSelect; +export type CreatePlatformAgentTaskPayloadSelect = { + clientMutationId?: boolean; + platformAgentTask?: { + select: PlatformAgentTaskSelect; }; - agentTaskEdge?: { - select: AgentTaskEdgeSelect; + platformAgentTaskEdge?: { + select: PlatformAgentTaskEdgeSelect; }; - clientMutationId?: boolean; }; -export interface UpdateAgentTaskPayload { - /** The `AgentTask` that was updated by this mutation. */ - agentTask?: AgentTask | null; - agentTaskEdge?: AgentTaskEdge | null; +export interface UpdatePlatformAgentTaskPayload { clientMutationId?: string | null; + /** The `PlatformAgentTask` that was updated by this mutation. */ + platformAgentTask?: PlatformAgentTask | null; + platformAgentTaskEdge?: PlatformAgentTaskEdge | null; } -export type UpdateAgentTaskPayloadSelect = { - agentTask?: { - select: AgentTaskSelect; +export type UpdatePlatformAgentTaskPayloadSelect = { + clientMutationId?: boolean; + platformAgentTask?: { + select: PlatformAgentTaskSelect; }; - agentTaskEdge?: { - select: AgentTaskEdgeSelect; + platformAgentTaskEdge?: { + select: PlatformAgentTaskEdgeSelect; }; - clientMutationId?: boolean; }; -export interface DeleteAgentTaskPayload { - /** The `AgentTask` that was deleted by this mutation. */ - agentTask?: AgentTask | null; - agentTaskEdge?: AgentTaskEdge | null; +export interface DeletePlatformAgentTaskPayload { clientMutationId?: string | null; + /** The `PlatformAgentTask` that was deleted by this mutation. */ + platformAgentTask?: PlatformAgentTask | null; + platformAgentTaskEdge?: PlatformAgentTaskEdge | null; } -export type DeleteAgentTaskPayloadSelect = { - agentTask?: { - select: AgentTaskSelect; +export type DeletePlatformAgentTaskPayloadSelect = { + clientMutationId?: boolean; + platformAgentTask?: { + select: PlatformAgentTaskSelect; }; - agentTaskEdge?: { - select: AgentTaskEdgeSelect; + platformAgentTaskEdge?: { + select: PlatformAgentTaskEdgeSelect; }; - clientMutationId?: boolean; }; -export interface CreateAgentThreadPayload { - /** The `AgentThread` that was created by this mutation. */ - agentThread?: AgentThread | null; - agentThreadEdge?: AgentThreadEdge | null; +export interface CreatePlatformAgentThreadPayload { clientMutationId?: string | null; + /** The `PlatformAgentThread` that was created by this mutation. */ + platformAgentThread?: PlatformAgentThread | null; + platformAgentThreadEdge?: PlatformAgentThreadEdge | null; } -export type CreateAgentThreadPayloadSelect = { - agentThread?: { - select: AgentThreadSelect; +export type CreatePlatformAgentThreadPayloadSelect = { + clientMutationId?: boolean; + platformAgentThread?: { + select: PlatformAgentThreadSelect; }; - agentThreadEdge?: { - select: AgentThreadEdgeSelect; + platformAgentThreadEdge?: { + select: PlatformAgentThreadEdgeSelect; }; - clientMutationId?: boolean; }; -export interface UpdateAgentThreadPayload { - /** The `AgentThread` that was updated by this mutation. */ - agentThread?: AgentThread | null; - agentThreadEdge?: AgentThreadEdge | null; +export interface UpdatePlatformAgentThreadPayload { clientMutationId?: string | null; + /** The `PlatformAgentThread` that was updated by this mutation. */ + platformAgentThread?: PlatformAgentThread | null; + platformAgentThreadEdge?: PlatformAgentThreadEdge | null; } -export type UpdateAgentThreadPayloadSelect = { - agentThread?: { - select: AgentThreadSelect; +export type UpdatePlatformAgentThreadPayloadSelect = { + clientMutationId?: boolean; + platformAgentThread?: { + select: PlatformAgentThreadSelect; }; - agentThreadEdge?: { - select: AgentThreadEdgeSelect; + platformAgentThreadEdge?: { + select: PlatformAgentThreadEdgeSelect; }; - clientMutationId?: boolean; }; -export interface DeleteAgentThreadPayload { - /** The `AgentThread` that was deleted by this mutation. */ - agentThread?: AgentThread | null; - agentThreadEdge?: AgentThreadEdge | null; +export interface DeletePlatformAgentThreadPayload { clientMutationId?: string | null; + /** The `PlatformAgentThread` that was deleted by this mutation. */ + platformAgentThread?: PlatformAgentThread | null; + platformAgentThreadEdge?: PlatformAgentThreadEdge | null; } -export type DeleteAgentThreadPayloadSelect = { - agentThread?: { - select: AgentThreadSelect; +export type DeletePlatformAgentThreadPayloadSelect = { + clientMutationId?: boolean; + platformAgentThread?: { + select: PlatformAgentThreadSelect; }; - agentThreadEdge?: { - select: AgentThreadEdgeSelect; + platformAgentThreadEdge?: { + select: PlatformAgentThreadEdgeSelect; }; - clientMutationId?: boolean; }; /** A `Agent` edge in the connection. */ export interface AgentEdge { @@ -3422,3 +7377,147 @@ export type AgentThreadEdgeSelect = { select: AgentThreadSelect; }; }; +/** A `PlatformAgent` edge in the connection. */ +export interface PlatformAgentEdge { + cursor?: string | null; + /** The `PlatformAgent` at the end of the edge. */ + node?: PlatformAgent | null; +} +export type PlatformAgentEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformAgentSelect; + }; +}; +/** A `PlatformAgentEvent` edge in the connection. */ +export interface PlatformAgentEventEdge { + cursor?: string | null; + /** The `PlatformAgentEvent` at the end of the edge. */ + node?: PlatformAgentEvent | null; +} +export type PlatformAgentEventEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformAgentEventSelect; + }; +}; +/** A `PlatformAgentMessage` edge in the connection. */ +export interface PlatformAgentMessageEdge { + cursor?: string | null; + /** The `PlatformAgentMessage` at the end of the edge. */ + node?: PlatformAgentMessage | null; +} +export type PlatformAgentMessageEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformAgentMessageSelect; + }; +}; +/** A `PlatformAgentPersona` edge in the connection. */ +export interface PlatformAgentPersonaEdge { + cursor?: string | null; + /** The `PlatformAgentPersona` at the end of the edge. */ + node?: PlatformAgentPersona | null; +} +export type PlatformAgentPersonaEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformAgentPersonaSelect; + }; +}; +/** A `PlatformAgentPlan` edge in the connection. */ +export interface PlatformAgentPlanEdge { + cursor?: string | null; + /** The `PlatformAgentPlan` at the end of the edge. */ + node?: PlatformAgentPlan | null; +} +export type PlatformAgentPlanEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformAgentPlanSelect; + }; +}; +/** A `PlatformAgentPrompt` edge in the connection. */ +export interface PlatformAgentPromptEdge { + cursor?: string | null; + /** The `PlatformAgentPrompt` at the end of the edge. */ + node?: PlatformAgentPrompt | null; +} +export type PlatformAgentPromptEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformAgentPromptSelect; + }; +}; +/** A `PlatformAgentResourceChunk` edge in the connection. */ +export interface PlatformAgentResourceChunkEdge { + cursor?: string | null; + /** The `PlatformAgentResourceChunk` at the end of the edge. */ + node?: PlatformAgentResourceChunk | null; +} +export type PlatformAgentResourceChunkEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformAgentResourceChunkSelect; + }; +}; +/** A `PlatformAgentResource` edge in the connection. */ +export interface PlatformAgentResourceEdge { + cursor?: string | null; + /** The `PlatformAgentResource` at the end of the edge. */ + node?: PlatformAgentResource | null; +} +export type PlatformAgentResourceEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformAgentResourceSelect; + }; +}; +/** A `PlatformAgentRun` edge in the connection. */ +export interface PlatformAgentRunEdge { + cursor?: string | null; + /** The `PlatformAgentRun` at the end of the edge. */ + node?: PlatformAgentRun | null; +} +export type PlatformAgentRunEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformAgentRunSelect; + }; +}; +/** A `PlatformAgentRunWorkspace` edge in the connection. */ +export interface PlatformAgentRunWorkspaceEdge { + cursor?: string | null; + /** The `PlatformAgentRunWorkspace` at the end of the edge. */ + node?: PlatformAgentRunWorkspace | null; +} +export type PlatformAgentRunWorkspaceEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformAgentRunWorkspaceSelect; + }; +}; +/** A `PlatformAgentTask` edge in the connection. */ +export interface PlatformAgentTaskEdge { + cursor?: string | null; + /** The `PlatformAgentTask` at the end of the edge. */ + node?: PlatformAgentTask | null; +} +export type PlatformAgentTaskEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformAgentTaskSelect; + }; +}; +/** A `PlatformAgentThread` edge in the connection. */ +export interface PlatformAgentThreadEdge { + cursor?: string | null; + /** The `PlatformAgentThread` at the end of the edge. */ + node?: PlatformAgentThread | null; +} +export type PlatformAgentThreadEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformAgentThreadSelect; + }; +}; diff --git a/sdk/constructive-sdk/src/agent/orm/models/index.ts b/sdk/constructive-sdk/src/agent/orm/models/index.ts index 4d02471c8a..399c45027a 100644 --- a/sdk/constructive-sdk/src/agent/orm/models/index.ts +++ b/sdk/constructive-sdk/src/agent/orm/models/index.ts @@ -12,3 +12,15 @@ export { AgentResourceChunkModel } from './agentResourceChunk'; export { AgentResourceModel } from './agentResource'; export { AgentTaskModel } from './agentTask'; export { AgentThreadModel } from './agentThread'; +export { PlatformAgentModel } from './platformAgent'; +export { PlatformAgentEventModel } from './platformAgentEvent'; +export { PlatformAgentMessageModel } from './platformAgentMessage'; +export { PlatformAgentPersonaModel } from './platformAgentPersona'; +export { PlatformAgentPlanModel } from './platformAgentPlan'; +export { PlatformAgentPromptModel } from './platformAgentPrompt'; +export { PlatformAgentResourceChunkModel } from './platformAgentResourceChunk'; +export { PlatformAgentResourceModel } from './platformAgentResource'; +export { PlatformAgentRunModel } from './platformAgentRun'; +export { PlatformAgentRunWorkspaceModel } from './platformAgentRunWorkspace'; +export { PlatformAgentTaskModel } from './platformAgentTask'; +export { PlatformAgentThreadModel } from './platformAgentThread'; diff --git a/sdk/constructive-sdk/src/agent/orm/models/platformAgent.ts b/sdk/constructive-sdk/src/agent/orm/models/platformAgent.ts new file mode 100644 index 0000000000..fad9efeb9c --- /dev/null +++ b/sdk/constructive-sdk/src/agent/orm/models/platformAgent.ts @@ -0,0 +1,245 @@ +/** + * PlatformAgent 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 { + PlatformAgent, + PlatformAgentWithRelations, + PlatformAgentSelect, + PlatformAgentFilter, + PlatformAgentOrderBy, + CreatePlatformAgentInput, + UpdatePlatformAgentInput, + PlatformAgentPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformAgentModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgents: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformAgent', + 'platformAgents', + 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, + }, + 'PlatformAgentFilter', + 'PlatformAgentOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgent', + fieldName: 'platformAgents', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgent: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformAgent', + 'platformAgents', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformAgentFilter', + 'PlatformAgentOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgent', + fieldName: 'platformAgent', + document, + variables, + transform: (data: { + platformAgents?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformAgent: data.platformAgents?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgent: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformAgent', + 'platformAgents', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformAgentFilter', + 'PlatformAgentOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgent', + fieldName: 'platformAgent', + document, + variables, + transform: (data: { + platformAgents?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformAgent: data.platformAgents?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformAgent: { + platformAgent: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformAgent', + 'createPlatformAgent', + 'platformAgent', + args.select, + args.data, + 'CreatePlatformAgentInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgent', + fieldName: 'createPlatformAgent', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformAgentPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformAgent: { + platformAgent: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformAgent', + 'updatePlatformAgent', + 'platformAgent', + args.select, + args.where.id, + args.data, + 'UpdatePlatformAgentInput', + 'id', + 'platformAgentPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgent', + fieldName: 'updatePlatformAgent', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformAgent: { + platformAgent: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformAgent', + 'deletePlatformAgent', + 'platformAgent', + { + id: args.where.id, + }, + 'DeletePlatformAgentInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgent', + fieldName: 'deletePlatformAgent', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/agent/orm/models/platformAgentEvent.ts b/sdk/constructive-sdk/src/agent/orm/models/platformAgentEvent.ts new file mode 100644 index 0000000000..b9fb61422a --- /dev/null +++ b/sdk/constructive-sdk/src/agent/orm/models/platformAgentEvent.ts @@ -0,0 +1,245 @@ +/** + * PlatformAgentEvent 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 { + PlatformAgentEvent, + PlatformAgentEventWithRelations, + PlatformAgentEventSelect, + PlatformAgentEventFilter, + PlatformAgentEventOrderBy, + CreatePlatformAgentEventInput, + UpdatePlatformAgentEventInput, + PlatformAgentEventPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformAgentEventModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgentEvents: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformAgentEvent', + 'platformAgentEvents', + 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, + }, + 'PlatformAgentEventFilter', + 'PlatformAgentEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgentEvent', + fieldName: 'platformAgentEvents', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgentEvent: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformAgentEvent', + 'platformAgentEvents', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformAgentEventFilter', + 'PlatformAgentEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgentEvent', + fieldName: 'platformAgentEvent', + document, + variables, + transform: (data: { + platformAgentEvents?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformAgentEvent: data.platformAgentEvents?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgentEvent: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformAgentEvent', + 'platformAgentEvents', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformAgentEventFilter', + 'PlatformAgentEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgentEvent', + fieldName: 'platformAgentEvent', + document, + variables, + transform: (data: { + platformAgentEvents?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformAgentEvent: data.platformAgentEvents?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformAgentEvent: { + platformAgentEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformAgentEvent', + 'createPlatformAgentEvent', + 'platformAgentEvent', + args.select, + args.data, + 'CreatePlatformAgentEventInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgentEvent', + fieldName: 'createPlatformAgentEvent', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformAgentEventPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformAgentEvent: { + platformAgentEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformAgentEvent', + 'updatePlatformAgentEvent', + 'platformAgentEvent', + args.select, + args.where.id, + args.data, + 'UpdatePlatformAgentEventInput', + 'id', + 'platformAgentEventPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgentEvent', + fieldName: 'updatePlatformAgentEvent', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformAgentEvent: { + platformAgentEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformAgentEvent', + 'deletePlatformAgentEvent', + 'platformAgentEvent', + { + id: args.where.id, + }, + 'DeletePlatformAgentEventInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgentEvent', + fieldName: 'deletePlatformAgentEvent', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/agent/orm/models/platformAgentMessage.ts b/sdk/constructive-sdk/src/agent/orm/models/platformAgentMessage.ts new file mode 100644 index 0000000000..e8187514b3 --- /dev/null +++ b/sdk/constructive-sdk/src/agent/orm/models/platformAgentMessage.ts @@ -0,0 +1,247 @@ +/** + * PlatformAgentMessage 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 { + PlatformAgentMessage, + PlatformAgentMessageWithRelations, + PlatformAgentMessageSelect, + PlatformAgentMessageFilter, + PlatformAgentMessageOrderBy, + CreatePlatformAgentMessageInput, + UpdatePlatformAgentMessageInput, + PlatformAgentMessagePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformAgentMessageModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgentMessages: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformAgentMessage', + 'platformAgentMessages', + 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, + }, + 'PlatformAgentMessageFilter', + 'PlatformAgentMessageOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgentMessage', + fieldName: 'platformAgentMessages', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgentMessage: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformAgentMessage', + 'platformAgentMessages', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformAgentMessageFilter', + 'PlatformAgentMessageOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgentMessage', + fieldName: 'platformAgentMessage', + document, + variables, + transform: (data: { + platformAgentMessages?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformAgentMessage: data.platformAgentMessages?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgentMessage: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformAgentMessage', + 'platformAgentMessages', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformAgentMessageFilter', + 'PlatformAgentMessageOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgentMessage', + fieldName: 'platformAgentMessage', + document, + variables, + transform: (data: { + platformAgentMessages?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformAgentMessage: data.platformAgentMessages?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformAgentMessage: { + platformAgentMessage: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformAgentMessage', + 'createPlatformAgentMessage', + 'platformAgentMessage', + args.select, + args.data, + 'CreatePlatformAgentMessageInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgentMessage', + fieldName: 'createPlatformAgentMessage', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformAgentMessagePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformAgentMessage: { + platformAgentMessage: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformAgentMessage', + 'updatePlatformAgentMessage', + 'platformAgentMessage', + args.select, + args.where.id, + args.data, + 'UpdatePlatformAgentMessageInput', + 'id', + 'platformAgentMessagePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgentMessage', + fieldName: 'updatePlatformAgentMessage', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformAgentMessage: { + platformAgentMessage: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformAgentMessage', + 'deletePlatformAgentMessage', + 'platformAgentMessage', + { + id: args.where.id, + }, + 'DeletePlatformAgentMessageInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgentMessage', + fieldName: 'deletePlatformAgentMessage', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/agent/orm/models/platformAgentPersona.ts b/sdk/constructive-sdk/src/agent/orm/models/platformAgentPersona.ts new file mode 100644 index 0000000000..7f78da643b --- /dev/null +++ b/sdk/constructive-sdk/src/agent/orm/models/platformAgentPersona.ts @@ -0,0 +1,247 @@ +/** + * PlatformAgentPersona 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 { + PlatformAgentPersona, + PlatformAgentPersonaWithRelations, + PlatformAgentPersonaSelect, + PlatformAgentPersonaFilter, + PlatformAgentPersonaOrderBy, + CreatePlatformAgentPersonaInput, + UpdatePlatformAgentPersonaInput, + PlatformAgentPersonaPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformAgentPersonaModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgentPersonas: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformAgentPersona', + 'platformAgentPersonas', + 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, + }, + 'PlatformAgentPersonaFilter', + 'PlatformAgentPersonaOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgentPersona', + fieldName: 'platformAgentPersonas', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgentPersona: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformAgentPersona', + 'platformAgentPersonas', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformAgentPersonaFilter', + 'PlatformAgentPersonaOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgentPersona', + fieldName: 'platformAgentPersona', + document, + variables, + transform: (data: { + platformAgentPersonas?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformAgentPersona: data.platformAgentPersonas?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgentPersona: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformAgentPersona', + 'platformAgentPersonas', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformAgentPersonaFilter', + 'PlatformAgentPersonaOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgentPersona', + fieldName: 'platformAgentPersona', + document, + variables, + transform: (data: { + platformAgentPersonas?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformAgentPersona: data.platformAgentPersonas?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformAgentPersona: { + platformAgentPersona: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformAgentPersona', + 'createPlatformAgentPersona', + 'platformAgentPersona', + args.select, + args.data, + 'CreatePlatformAgentPersonaInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgentPersona', + fieldName: 'createPlatformAgentPersona', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformAgentPersonaPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformAgentPersona: { + platformAgentPersona: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformAgentPersona', + 'updatePlatformAgentPersona', + 'platformAgentPersona', + args.select, + args.where.id, + args.data, + 'UpdatePlatformAgentPersonaInput', + 'id', + 'platformAgentPersonaPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgentPersona', + fieldName: 'updatePlatformAgentPersona', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformAgentPersona: { + platformAgentPersona: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformAgentPersona', + 'deletePlatformAgentPersona', + 'platformAgentPersona', + { + id: args.where.id, + }, + 'DeletePlatformAgentPersonaInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgentPersona', + fieldName: 'deletePlatformAgentPersona', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/agent/orm/models/platformAgentPlan.ts b/sdk/constructive-sdk/src/agent/orm/models/platformAgentPlan.ts new file mode 100644 index 0000000000..c029b7a96f --- /dev/null +++ b/sdk/constructive-sdk/src/agent/orm/models/platformAgentPlan.ts @@ -0,0 +1,245 @@ +/** + * PlatformAgentPlan 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 { + PlatformAgentPlan, + PlatformAgentPlanWithRelations, + PlatformAgentPlanSelect, + PlatformAgentPlanFilter, + PlatformAgentPlanOrderBy, + CreatePlatformAgentPlanInput, + UpdatePlatformAgentPlanInput, + PlatformAgentPlanPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformAgentPlanModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgentPlans: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformAgentPlan', + 'platformAgentPlans', + 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, + }, + 'PlatformAgentPlanFilter', + 'PlatformAgentPlanOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgentPlan', + fieldName: 'platformAgentPlans', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgentPlan: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformAgentPlan', + 'platformAgentPlans', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformAgentPlanFilter', + 'PlatformAgentPlanOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgentPlan', + fieldName: 'platformAgentPlan', + document, + variables, + transform: (data: { + platformAgentPlans?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformAgentPlan: data.platformAgentPlans?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgentPlan: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformAgentPlan', + 'platformAgentPlans', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformAgentPlanFilter', + 'PlatformAgentPlanOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgentPlan', + fieldName: 'platformAgentPlan', + document, + variables, + transform: (data: { + platformAgentPlans?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformAgentPlan: data.platformAgentPlans?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformAgentPlan: { + platformAgentPlan: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformAgentPlan', + 'createPlatformAgentPlan', + 'platformAgentPlan', + args.select, + args.data, + 'CreatePlatformAgentPlanInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgentPlan', + fieldName: 'createPlatformAgentPlan', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformAgentPlanPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformAgentPlan: { + platformAgentPlan: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformAgentPlan', + 'updatePlatformAgentPlan', + 'platformAgentPlan', + args.select, + args.where.id, + args.data, + 'UpdatePlatformAgentPlanInput', + 'id', + 'platformAgentPlanPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgentPlan', + fieldName: 'updatePlatformAgentPlan', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformAgentPlan: { + platformAgentPlan: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformAgentPlan', + 'deletePlatformAgentPlan', + 'platformAgentPlan', + { + id: args.where.id, + }, + 'DeletePlatformAgentPlanInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgentPlan', + fieldName: 'deletePlatformAgentPlan', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/agent/orm/models/platformAgentPrompt.ts b/sdk/constructive-sdk/src/agent/orm/models/platformAgentPrompt.ts new file mode 100644 index 0000000000..3fd42f1d26 --- /dev/null +++ b/sdk/constructive-sdk/src/agent/orm/models/platformAgentPrompt.ts @@ -0,0 +1,245 @@ +/** + * PlatformAgentPrompt 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 { + PlatformAgentPrompt, + PlatformAgentPromptWithRelations, + PlatformAgentPromptSelect, + PlatformAgentPromptFilter, + PlatformAgentPromptOrderBy, + CreatePlatformAgentPromptInput, + UpdatePlatformAgentPromptInput, + PlatformAgentPromptPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformAgentPromptModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgentPrompts: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformAgentPrompt', + 'platformAgentPrompts', + 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, + }, + 'PlatformAgentPromptFilter', + 'PlatformAgentPromptOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgentPrompt', + fieldName: 'platformAgentPrompts', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgentPrompt: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformAgentPrompt', + 'platformAgentPrompts', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformAgentPromptFilter', + 'PlatformAgentPromptOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgentPrompt', + fieldName: 'platformAgentPrompt', + document, + variables, + transform: (data: { + platformAgentPrompts?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformAgentPrompt: data.platformAgentPrompts?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgentPrompt: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformAgentPrompt', + 'platformAgentPrompts', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformAgentPromptFilter', + 'PlatformAgentPromptOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgentPrompt', + fieldName: 'platformAgentPrompt', + document, + variables, + transform: (data: { + platformAgentPrompts?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformAgentPrompt: data.platformAgentPrompts?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformAgentPrompt: { + platformAgentPrompt: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformAgentPrompt', + 'createPlatformAgentPrompt', + 'platformAgentPrompt', + args.select, + args.data, + 'CreatePlatformAgentPromptInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgentPrompt', + fieldName: 'createPlatformAgentPrompt', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformAgentPromptPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformAgentPrompt: { + platformAgentPrompt: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformAgentPrompt', + 'updatePlatformAgentPrompt', + 'platformAgentPrompt', + args.select, + args.where.id, + args.data, + 'UpdatePlatformAgentPromptInput', + 'id', + 'platformAgentPromptPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgentPrompt', + fieldName: 'updatePlatformAgentPrompt', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformAgentPrompt: { + platformAgentPrompt: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformAgentPrompt', + 'deletePlatformAgentPrompt', + 'platformAgentPrompt', + { + id: args.where.id, + }, + 'DeletePlatformAgentPromptInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgentPrompt', + fieldName: 'deletePlatformAgentPrompt', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/agent/orm/models/platformAgentResource.ts b/sdk/constructive-sdk/src/agent/orm/models/platformAgentResource.ts new file mode 100644 index 0000000000..fe7b5c666d --- /dev/null +++ b/sdk/constructive-sdk/src/agent/orm/models/platformAgentResource.ts @@ -0,0 +1,247 @@ +/** + * PlatformAgentResource 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 { + PlatformAgentResource, + PlatformAgentResourceWithRelations, + PlatformAgentResourceSelect, + PlatformAgentResourceFilter, + PlatformAgentResourceOrderBy, + CreatePlatformAgentResourceInput, + UpdatePlatformAgentResourceInput, + PlatformAgentResourcePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformAgentResourceModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgentResources: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformAgentResource', + 'platformAgentResources', + 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, + }, + 'PlatformAgentResourceFilter', + 'PlatformAgentResourceOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgentResource', + fieldName: 'platformAgentResources', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgentResource: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformAgentResource', + 'platformAgentResources', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformAgentResourceFilter', + 'PlatformAgentResourceOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgentResource', + fieldName: 'platformAgentResource', + document, + variables, + transform: (data: { + platformAgentResources?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformAgentResource: data.platformAgentResources?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgentResource: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformAgentResource', + 'platformAgentResources', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformAgentResourceFilter', + 'PlatformAgentResourceOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgentResource', + fieldName: 'platformAgentResource', + document, + variables, + transform: (data: { + platformAgentResources?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformAgentResource: data.platformAgentResources?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformAgentResource: { + platformAgentResource: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformAgentResource', + 'createPlatformAgentResource', + 'platformAgentResource', + args.select, + args.data, + 'CreatePlatformAgentResourceInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgentResource', + fieldName: 'createPlatformAgentResource', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformAgentResourcePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformAgentResource: { + platformAgentResource: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformAgentResource', + 'updatePlatformAgentResource', + 'platformAgentResource', + args.select, + args.where.id, + args.data, + 'UpdatePlatformAgentResourceInput', + 'id', + 'platformAgentResourcePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgentResource', + fieldName: 'updatePlatformAgentResource', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformAgentResource: { + platformAgentResource: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformAgentResource', + 'deletePlatformAgentResource', + 'platformAgentResource', + { + id: args.where.id, + }, + 'DeletePlatformAgentResourceInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgentResource', + fieldName: 'deletePlatformAgentResource', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/agent/orm/models/platformAgentResourceChunk.ts b/sdk/constructive-sdk/src/agent/orm/models/platformAgentResourceChunk.ts new file mode 100644 index 0000000000..0eb14fdf90 --- /dev/null +++ b/sdk/constructive-sdk/src/agent/orm/models/platformAgentResourceChunk.ts @@ -0,0 +1,253 @@ +/** + * PlatformAgentResourceChunk 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 { + PlatformAgentResourceChunk, + PlatformAgentResourceChunkWithRelations, + PlatformAgentResourceChunkSelect, + PlatformAgentResourceChunkFilter, + PlatformAgentResourceChunkOrderBy, + CreatePlatformAgentResourceChunkInput, + UpdatePlatformAgentResourceChunkInput, + PlatformAgentResourceChunkPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformAgentResourceChunkModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgentResourceChunks: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformAgentResourceChunk', + 'platformAgentResourceChunks', + 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, + }, + 'PlatformAgentResourceChunkFilter', + 'PlatformAgentResourceChunkOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgentResourceChunk', + fieldName: 'platformAgentResourceChunks', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgentResourceChunk: InferSelectResult< + PlatformAgentResourceChunkWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformAgentResourceChunk', + 'platformAgentResourceChunks', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformAgentResourceChunkFilter', + 'PlatformAgentResourceChunkOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgentResourceChunk', + fieldName: 'platformAgentResourceChunk', + document, + variables, + transform: (data: { + platformAgentResourceChunks?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformAgentResourceChunk: data.platformAgentResourceChunks?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgentResourceChunk: InferSelectResult< + PlatformAgentResourceChunkWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformAgentResourceChunk', + 'platformAgentResourceChunks', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformAgentResourceChunkFilter', + 'PlatformAgentResourceChunkOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgentResourceChunk', + fieldName: 'platformAgentResourceChunk', + document, + variables, + transform: (data: { + platformAgentResourceChunks?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformAgentResourceChunk: data.platformAgentResourceChunks?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformAgentResourceChunk: { + platformAgentResourceChunk: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformAgentResourceChunk', + 'createPlatformAgentResourceChunk', + 'platformAgentResourceChunk', + args.select, + args.data, + 'CreatePlatformAgentResourceChunkInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgentResourceChunk', + fieldName: 'createPlatformAgentResourceChunk', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformAgentResourceChunkPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformAgentResourceChunk: { + platformAgentResourceChunk: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformAgentResourceChunk', + 'updatePlatformAgentResourceChunk', + 'platformAgentResourceChunk', + args.select, + args.where.id, + args.data, + 'UpdatePlatformAgentResourceChunkInput', + 'id', + 'platformAgentResourceChunkPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgentResourceChunk', + fieldName: 'updatePlatformAgentResourceChunk', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformAgentResourceChunk: { + platformAgentResourceChunk: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformAgentResourceChunk', + 'deletePlatformAgentResourceChunk', + 'platformAgentResourceChunk', + { + id: args.where.id, + }, + 'DeletePlatformAgentResourceChunkInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgentResourceChunk', + fieldName: 'deletePlatformAgentResourceChunk', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/agent/orm/models/platformAgentRun.ts b/sdk/constructive-sdk/src/agent/orm/models/platformAgentRun.ts new file mode 100644 index 0000000000..86de43f916 --- /dev/null +++ b/sdk/constructive-sdk/src/agent/orm/models/platformAgentRun.ts @@ -0,0 +1,245 @@ +/** + * PlatformAgentRun 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 { + PlatformAgentRun, + PlatformAgentRunWithRelations, + PlatformAgentRunSelect, + PlatformAgentRunFilter, + PlatformAgentRunOrderBy, + CreatePlatformAgentRunInput, + UpdatePlatformAgentRunInput, + PlatformAgentRunPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformAgentRunModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgentRuns: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformAgentRun', + 'platformAgentRuns', + 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, + }, + 'PlatformAgentRunFilter', + 'PlatformAgentRunOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgentRun', + fieldName: 'platformAgentRuns', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgentRun: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformAgentRun', + 'platformAgentRuns', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformAgentRunFilter', + 'PlatformAgentRunOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgentRun', + fieldName: 'platformAgentRun', + document, + variables, + transform: (data: { + platformAgentRuns?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformAgentRun: data.platformAgentRuns?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgentRun: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformAgentRun', + 'platformAgentRuns', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformAgentRunFilter', + 'PlatformAgentRunOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgentRun', + fieldName: 'platformAgentRun', + document, + variables, + transform: (data: { + platformAgentRuns?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformAgentRun: data.platformAgentRuns?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformAgentRun: { + platformAgentRun: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformAgentRun', + 'createPlatformAgentRun', + 'platformAgentRun', + args.select, + args.data, + 'CreatePlatformAgentRunInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgentRun', + fieldName: 'createPlatformAgentRun', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformAgentRunPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformAgentRun: { + platformAgentRun: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformAgentRun', + 'updatePlatformAgentRun', + 'platformAgentRun', + args.select, + args.where.id, + args.data, + 'UpdatePlatformAgentRunInput', + 'id', + 'platformAgentRunPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgentRun', + fieldName: 'updatePlatformAgentRun', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformAgentRun: { + platformAgentRun: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformAgentRun', + 'deletePlatformAgentRun', + 'platformAgentRun', + { + id: args.where.id, + }, + 'DeletePlatformAgentRunInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgentRun', + fieldName: 'deletePlatformAgentRun', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/agent/orm/models/platformAgentRunWorkspace.ts b/sdk/constructive-sdk/src/agent/orm/models/platformAgentRunWorkspace.ts new file mode 100644 index 0000000000..a948ae7f75 --- /dev/null +++ b/sdk/constructive-sdk/src/agent/orm/models/platformAgentRunWorkspace.ts @@ -0,0 +1,247 @@ +/** + * PlatformAgentRunWorkspace 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 { + PlatformAgentRunWorkspace, + PlatformAgentRunWorkspaceWithRelations, + PlatformAgentRunWorkspaceSelect, + PlatformAgentRunWorkspaceFilter, + PlatformAgentRunWorkspaceOrderBy, + CreatePlatformAgentRunWorkspaceInput, + UpdatePlatformAgentRunWorkspaceInput, + PlatformAgentRunWorkspacePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformAgentRunWorkspaceModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgentRunWorkspaces: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformAgentRunWorkspace', + 'platformAgentRunWorkspaces', + 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, + }, + 'PlatformAgentRunWorkspaceFilter', + 'PlatformAgentRunWorkspaceOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgentRunWorkspace', + fieldName: 'platformAgentRunWorkspaces', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgentRunWorkspace: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformAgentRunWorkspace', + 'platformAgentRunWorkspaces', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformAgentRunWorkspaceFilter', + 'PlatformAgentRunWorkspaceOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgentRunWorkspace', + fieldName: 'platformAgentRunWorkspace', + document, + variables, + transform: (data: { + platformAgentRunWorkspaces?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformAgentRunWorkspace: data.platformAgentRunWorkspaces?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgentRunWorkspace: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformAgentRunWorkspace', + 'platformAgentRunWorkspaces', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformAgentRunWorkspaceFilter', + 'PlatformAgentRunWorkspaceOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgentRunWorkspace', + fieldName: 'platformAgentRunWorkspace', + document, + variables, + transform: (data: { + platformAgentRunWorkspaces?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformAgentRunWorkspace: data.platformAgentRunWorkspaces?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformAgentRunWorkspace: { + platformAgentRunWorkspace: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformAgentRunWorkspace', + 'createPlatformAgentRunWorkspace', + 'platformAgentRunWorkspace', + args.select, + args.data, + 'CreatePlatformAgentRunWorkspaceInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgentRunWorkspace', + fieldName: 'createPlatformAgentRunWorkspace', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformAgentRunWorkspacePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformAgentRunWorkspace: { + platformAgentRunWorkspace: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformAgentRunWorkspace', + 'updatePlatformAgentRunWorkspace', + 'platformAgentRunWorkspace', + args.select, + args.where.id, + args.data, + 'UpdatePlatformAgentRunWorkspaceInput', + 'id', + 'platformAgentRunWorkspacePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgentRunWorkspace', + fieldName: 'updatePlatformAgentRunWorkspace', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformAgentRunWorkspace: { + platformAgentRunWorkspace: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformAgentRunWorkspace', + 'deletePlatformAgentRunWorkspace', + 'platformAgentRunWorkspace', + { + id: args.where.id, + }, + 'DeletePlatformAgentRunWorkspaceInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgentRunWorkspace', + fieldName: 'deletePlatformAgentRunWorkspace', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/agent/orm/models/platformAgentTask.ts b/sdk/constructive-sdk/src/agent/orm/models/platformAgentTask.ts new file mode 100644 index 0000000000..a71fb03e7b --- /dev/null +++ b/sdk/constructive-sdk/src/agent/orm/models/platformAgentTask.ts @@ -0,0 +1,245 @@ +/** + * PlatformAgentTask 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 { + PlatformAgentTask, + PlatformAgentTaskWithRelations, + PlatformAgentTaskSelect, + PlatformAgentTaskFilter, + PlatformAgentTaskOrderBy, + CreatePlatformAgentTaskInput, + UpdatePlatformAgentTaskInput, + PlatformAgentTaskPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformAgentTaskModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgentTasks: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformAgentTask', + 'platformAgentTasks', + 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, + }, + 'PlatformAgentTaskFilter', + 'PlatformAgentTaskOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgentTask', + fieldName: 'platformAgentTasks', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgentTask: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformAgentTask', + 'platformAgentTasks', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformAgentTaskFilter', + 'PlatformAgentTaskOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgentTask', + fieldName: 'platformAgentTask', + document, + variables, + transform: (data: { + platformAgentTasks?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformAgentTask: data.platformAgentTasks?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgentTask: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformAgentTask', + 'platformAgentTasks', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformAgentTaskFilter', + 'PlatformAgentTaskOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgentTask', + fieldName: 'platformAgentTask', + document, + variables, + transform: (data: { + platformAgentTasks?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformAgentTask: data.platformAgentTasks?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformAgentTask: { + platformAgentTask: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformAgentTask', + 'createPlatformAgentTask', + 'platformAgentTask', + args.select, + args.data, + 'CreatePlatformAgentTaskInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgentTask', + fieldName: 'createPlatformAgentTask', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformAgentTaskPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformAgentTask: { + platformAgentTask: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformAgentTask', + 'updatePlatformAgentTask', + 'platformAgentTask', + args.select, + args.where.id, + args.data, + 'UpdatePlatformAgentTaskInput', + 'id', + 'platformAgentTaskPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgentTask', + fieldName: 'updatePlatformAgentTask', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformAgentTask: { + platformAgentTask: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformAgentTask', + 'deletePlatformAgentTask', + 'platformAgentTask', + { + id: args.where.id, + }, + 'DeletePlatformAgentTaskInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgentTask', + fieldName: 'deletePlatformAgentTask', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/agent/orm/models/platformAgentThread.ts b/sdk/constructive-sdk/src/agent/orm/models/platformAgentThread.ts new file mode 100644 index 0000000000..7738100a6e --- /dev/null +++ b/sdk/constructive-sdk/src/agent/orm/models/platformAgentThread.ts @@ -0,0 +1,245 @@ +/** + * PlatformAgentThread 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 { + PlatformAgentThread, + PlatformAgentThreadWithRelations, + PlatformAgentThreadSelect, + PlatformAgentThreadFilter, + PlatformAgentThreadOrderBy, + CreatePlatformAgentThreadInput, + UpdatePlatformAgentThreadInput, + PlatformAgentThreadPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformAgentThreadModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgentThreads: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformAgentThread', + 'platformAgentThreads', + 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, + }, + 'PlatformAgentThreadFilter', + 'PlatformAgentThreadOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgentThread', + fieldName: 'platformAgentThreads', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgentThread: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformAgentThread', + 'platformAgentThreads', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformAgentThreadFilter', + 'PlatformAgentThreadOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgentThread', + fieldName: 'platformAgentThread', + document, + variables, + transform: (data: { + platformAgentThreads?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformAgentThread: data.platformAgentThreads?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformAgentThread: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformAgentThread', + 'platformAgentThreads', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformAgentThreadFilter', + 'PlatformAgentThreadOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformAgentThread', + fieldName: 'platformAgentThread', + document, + variables, + transform: (data: { + platformAgentThreads?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformAgentThread: data.platformAgentThreads?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformAgentThread: { + platformAgentThread: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformAgentThread', + 'createPlatformAgentThread', + 'platformAgentThread', + args.select, + args.data, + 'CreatePlatformAgentThreadInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgentThread', + fieldName: 'createPlatformAgentThread', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformAgentThreadPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformAgentThread: { + platformAgentThread: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformAgentThread', + 'updatePlatformAgentThread', + 'platformAgentThread', + args.select, + args.where.id, + args.data, + 'UpdatePlatformAgentThreadInput', + 'id', + 'platformAgentThreadPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgentThread', + fieldName: 'updatePlatformAgentThread', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformAgentThread: { + platformAgentThread: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformAgentThread', + 'deletePlatformAgentThread', + 'platformAgentThread', + { + id: args.where.id, + }, + 'DeletePlatformAgentThreadInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformAgentThread', + fieldName: 'deletePlatformAgentThread', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/agent/orm/mutation/index.ts b/sdk/constructive-sdk/src/agent/orm/mutation/index.ts index 989afbcbd6..5491e16cd0 100644 --- a/sdk/constructive-sdk/src/agent/orm/mutation/index.ts +++ b/sdk/constructive-sdk/src/agent/orm/mutation/index.ts @@ -14,10 +14,11 @@ import type { import { connectionFieldsMap } from '../input-types'; /** * Variables for provisionBucket - * 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. + * Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. */ export interface ProvisionBucketVariables { input: ProvisionBucketInput; diff --git a/sdk/constructive-sdk/src/api/README.md b/sdk/constructive-sdk/src/api/README.md index 0eb8caf4b1..e01d214ecb 100644 --- a/sdk/constructive-sdk/src/api/README.md +++ b/sdk/constructive-sdk/src/api/README.md @@ -8,9 +8,9 @@ ## Overview -- **Tables:** 86 -- **Custom queries:** 6 -- **Custom mutations:** 11 +- **Tables:** 91 +- **Custom queries:** 17 +- **Custom mutations:** 27 **Generators:** ORM diff --git a/sdk/constructive-sdk/src/api/orm/README.md b/sdk/constructive-sdk/src/api/orm/README.md index 8d92fe2572..95c893dcb5 100644 --- a/sdk/constructive-sdk/src/api/orm/README.md +++ b/sdk/constructive-sdk/src/api/orm/README.md @@ -24,8 +24,7 @@ const db = createClient({ | `api` | findMany, findOne, create, update, delete | | `apiSchema` | findMany, findOne, create, update, delete | | `apiSetting` | findMany, findOne, create, update, delete | -| `appComponent` | findMany, findOne, create, update, delete | -| `app` | findMany, findOne, create, update, delete | +| `astMigration` | findMany, findOne, create, update, delete | | `checkConstraint` | findMany, findOne, create, update, delete | | `compositeType` | findMany, findOne, create, update, delete | | `corsSetting` | findMany, findOne, create, update, delete | @@ -50,8 +49,9 @@ const db = createClient({ | `foreignKeyConstraint` | findMany, findOne, create, update, delete | | `fullTextSearch` | findMany, findOne, create, update, delete | | `function` | findMany, findOne, create, update, delete | +| `getSitePreviewsRecord` | findMany, findOne, create, update, delete | | `hostnameBinding` | findMany, findOne, create, update, delete | -| `httpRoute` | findMany, findOne, create, update, delete | +| `identityProviderRegistry` | findMany, findOne, create, update, delete | | `index` | findMany, findOne, create, update, delete | | `managedDomain` | findMany, findOne, create, update, delete | | `nodeTypeRegistry` | findMany, findOne, create, update, delete | @@ -67,6 +67,7 @@ const db = createClient({ | `platformEmailIdentity` | findMany, findOne, create, update, delete | | `platformEmailProviderAccount` | findMany, findOne, create, update, delete | | `platformEmailSiteIdentity` | findMany, findOne, create, update, delete | +| `platformGetSitePreviewsRecord` | findMany, findOne, create, update, delete | | `platformManagedDomain` | findMany, findOne, create, update, delete | | `platformPage` | findMany, findOne, create, update, delete | | `platformSiteAppLink` | findMany, findOne, create, update, delete | @@ -75,11 +76,13 @@ const db = createClient({ | `platformSiteErrorPage` | findMany, findOne, create, update, delete | | `platformSiteMetadatum` | findMany, findOne, create, update, delete | | `platformSiteModule` | findMany, findOne, create, update, delete | +| `platformSiteRelease` | findMany, findOne, create, update, delete | | `platformSiteTheme` | findMany, findOne, create, update, delete | | `platformSiteWebConfig` | findMany, findOne, create, update, delete | | `policy` | findMany, findOne, create, update, delete | | `primaryKeyConstraint` | findMany, findOne, create, update, delete | | `pubkeySetting` | findMany, findOne, create, update, delete | +| `redirect` | findMany, findOne, create, update, delete | | `rlsSetting` | findMany, findOne, create, update, delete | | `routeBinding` | findMany, findOne, create, update, delete | | `route` | findMany, findOne, create, update, delete | @@ -91,9 +94,11 @@ const db = createClient({ | `siteErrorPage` | findMany, findOne, create, update, delete | | `siteMetadatum` | findMany, findOne, create, update, delete | | `siteModule` | findMany, findOne, create, update, delete | +| `siteRelease` | findMany, findOne, create, update, delete | | `siteTheme` | findMany, findOne, create, update, delete | | `siteWebConfig` | findMany, findOne, create, update, delete | | `spatialRelation` | findMany, findOne, create, update, delete | +| `sqlAction` | findMany, findOne, create, update, delete | | `tableBehavior` | findMany, findOne, create, update, delete | | `table` | findMany, findOne, create, update, delete | | `tableGrant` | findMany, findOne, create, update, delete | @@ -198,6 +203,7 @@ CRUD operations for ApiSetting records. | `enableConnectionFilter` | Boolean | Yes | | `enableDirectUploads` | Boolean | Yes | | `enableI18N` | Boolean | Yes | +| `enableIntrospection` | Boolean | Yes | | `enableLlm` | Boolean | Yes | | `enableLtree` | Boolean | Yes | | `enableManyToMany` | Boolean | Yes | @@ -206,7 +212,17 @@ CRUD operations for ApiSetting records. | `enableRealtime` | Boolean | Yes | | `enableSearch` | Boolean | Yes | | `id` | UUID | No | +| `idleInTransactionTimeoutMs` | BigInt | Yes | +| `lockTimeoutMs` | BigInt | Yes | +| `maxConcurrentRequests` | Int | Yes | +| `maxPageSize` | Int | Yes | +| `maxQueryCost` | Int | Yes | +| `maxQueryDepth` | Int | Yes | +| `maxQueueWaitMs` | Int | Yes | +| `maxRequestBytes` | Int | Yes | | `options` | JSON | Yes | +| `rateLimitBurst` | Int | Yes | +| `rateLimitRpm` | Int | Yes | | `statementTimeoutMs` | BigInt | Yes | | `updatedAt` | Datetime | No | @@ -214,13 +230,13 @@ CRUD operations for ApiSetting records. ```typescript // List all apiSetting records -const items = await db.apiSetting.findMany({ select: { apiId: true, createdAt: true, databaseId: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, options: true, statementTimeoutMs: true, updatedAt: true } }).execute(); +const items = await db.apiSetting.findMany({ select: { apiId: true, createdAt: true, databaseId: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.apiSetting.findOne({ id: '', select: { apiId: true, createdAt: true, databaseId: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, options: true, statementTimeoutMs: true, updatedAt: true } }).execute(); +const item = await db.apiSetting.findOne({ id: '', select: { apiId: true, createdAt: true, databaseId: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }).execute(); // Create -const created = await db.apiSetting.create({ data: { apiId: '', databaseId: '', enableAggregates: '', enableBulk: '', enableConnectionFilter: '', enableDirectUploads: '', enableI18N: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', options: '', statementTimeoutMs: '' }, select: { id: true } }).execute(); +const created = await db.apiSetting.create({ data: { apiId: '', databaseId: '', enableAggregates: '', enableBulk: '', enableConnectionFilter: '', enableDirectUploads: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }, select: { id: true } }).execute(); // Update const updated = await db.apiSetting.update({ where: { id: '' }, data: { apiId: '' }, select: { id: true } }).execute(); @@ -229,81 +245,45 @@ const updated = await db.apiSetting.update({ where: { id: '' }, data: { ap const deleted = await db.apiSetting.delete({ where: { id: '' } }).execute(); ``` -### `db.appComponent` +### `db.astMigration` -CRUD operations for AppComponent records. +CRUD operations for AstMigration records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `appId` | UUID | Yes | -| `componentApiId` | UUID | Yes | -| `componentDomainId` | UUID | Yes | -| `componentInstallationId` | UUID | Yes | -| `componentSiteId` | UUID | Yes | -| `componentType` | String | Yes | -| `config` | JSON | Yes | -| `createdAt` | Datetime | No | -| `databaseId` | UUID | Yes | -| `id` | UUID | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all appComponent records -const items = await db.appComponent.findMany({ select: { appId: true, componentApiId: true, componentDomainId: true, componentInstallationId: true, componentSiteId: true, componentType: true, config: true, createdAt: true, databaseId: true, id: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.appComponent.findOne({ id: '', select: { appId: true, componentApiId: true, componentDomainId: true, componentInstallationId: true, componentSiteId: true, componentType: true, config: true, createdAt: true, databaseId: true, id: true, updatedAt: true } }).execute(); - -// Create -const created = await db.appComponent.create({ data: { appId: '', componentApiId: '', componentDomainId: '', componentInstallationId: '', componentSiteId: '', componentType: '', config: '', databaseId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appComponent.update({ where: { id: '' }, data: { appId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appComponent.delete({ where: { id: '' } }).execute(); -``` - -### `db.app` - -CRUD operations for App records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `config` | JSON | Yes | +| `actionId` | UUID | Yes | +| `actionName` | String | Yes | +| `actorId` | UUID | Yes | | `createdAt` | Datetime | No | | `databaseId` | UUID | Yes | -| `description` | String | Yes | -| `id` | UUID | No | -| `isPublished` | Boolean | Yes | +| `deploy` | JSON | Yes | +| `deploys` | String | Yes | +| `id` | Int | No | | `name` | String | Yes | -| `status` | String | Yes | -| `title` | String | Yes | -| `updatedAt` | Datetime | No | +| `payload` | JSON | Yes | +| `requires` | String | Yes | +| `revert` | JSON | Yes | +| `verify` | JSON | Yes | **Operations:** ```typescript -// List all app records -const items = await db.app.findMany({ select: { config: true, createdAt: true, databaseId: true, description: true, id: true, isPublished: true, name: true, status: true, title: true, updatedAt: true } }).execute(); +// List all astMigration records +const items = await db.astMigration.findMany({ select: { actionId: true, actionName: true, actorId: true, createdAt: true, databaseId: true, deploy: true, deploys: true, id: true, name: true, payload: true, requires: true, revert: true, verify: true } }).execute(); // Get one by id -const item = await db.app.findOne({ id: '', select: { config: true, createdAt: true, databaseId: true, description: true, id: true, isPublished: true, name: true, status: true, title: true, updatedAt: true } }).execute(); +const item = await db.astMigration.findOne({ id: '', select: { actionId: true, actionName: true, actorId: true, createdAt: true, databaseId: true, deploy: true, deploys: true, id: true, name: true, payload: true, requires: true, revert: true, verify: true } }).execute(); // Create -const created = await db.app.create({ data: { config: '', databaseId: '', description: '', isPublished: '', name: '', status: '', title: '' }, select: { id: true } }).execute(); +const created = await db.astMigration.create({ data: { actionId: '', actionName: '', actorId: '', databaseId: '', deploy: '', deploys: '', name: '', payload: '', requires: '', revert: '', verify: '' }, select: { id: true } }).execute(); // Update -const updated = await db.app.update({ where: { id: '' }, data: { config: '' }, select: { id: true } }).execute(); +const updated = await db.astMigration.update({ where: { id: '' }, data: { actionId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.app.delete({ where: { id: '' } }).execute(); +const deleted = await db.astMigration.delete({ where: { id: '' } }).execute(); ``` ### `db.checkConstraint` @@ -468,10 +448,12 @@ CRUD operations for DatabaseSetting records. | `createdAt` | Datetime | No | | `databaseId` | UUID | Yes | | `enableAggregates` | Boolean | Yes | +| `enableBilling` | Boolean | Yes | | `enableBulk` | Boolean | Yes | | `enableConnectionFilter` | Boolean | Yes | | `enableDirectUploads` | Boolean | Yes | | `enableI18N` | Boolean | Yes | +| `enableIntrospection` | Boolean | Yes | | `enableLlm` | Boolean | Yes | | `enableLtree` | Boolean | Yes | | `enableManyToMany` | Boolean | Yes | @@ -480,8 +462,18 @@ CRUD operations for DatabaseSetting records. | `enableRealtime` | Boolean | Yes | | `enableSearch` | Boolean | Yes | | `id` | UUID | No | +| `idleInTransactionTimeoutMs` | BigInt | Yes | | `labels` | JSON | Yes | +| `lockTimeoutMs` | BigInt | Yes | +| `maxConcurrentRequests` | Int | Yes | +| `maxPageSize` | Int | Yes | +| `maxQueryCost` | Int | Yes | +| `maxQueryDepth` | Int | Yes | +| `maxQueueWaitMs` | Int | Yes | +| `maxRequestBytes` | Int | Yes | | `options` | JSON | Yes | +| `rateLimitBurst` | Int | Yes | +| `rateLimitRpm` | Int | Yes | | `statementTimeoutMs` | BigInt | Yes | | `updatedAt` | Datetime | No | @@ -489,13 +481,13 @@ CRUD operations for DatabaseSetting records. ```typescript // List all databaseSetting records -const items = await db.databaseSetting.findMany({ select: { annotations: true, createdAt: true, databaseId: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, labels: true, options: true, statementTimeoutMs: true, updatedAt: true } }).execute(); +const items = await db.databaseSetting.findMany({ select: { annotations: true, createdAt: true, databaseId: true, enableAggregates: true, enableBilling: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, labels: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.databaseSetting.findOne({ id: '', select: { annotations: true, createdAt: true, databaseId: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, labels: true, options: true, statementTimeoutMs: true, updatedAt: true } }).execute(); +const item = await db.databaseSetting.findOne({ id: '', select: { annotations: true, createdAt: true, databaseId: true, enableAggregates: true, enableBilling: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, labels: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }).execute(); // Create -const created = await db.databaseSetting.create({ data: { annotations: '', databaseId: '', enableAggregates: '', enableBulk: '', enableConnectionFilter: '', enableDirectUploads: '', enableI18N: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', labels: '', options: '', statementTimeoutMs: '' }, select: { id: true } }).execute(); +const created = await db.databaseSetting.create({ data: { annotations: '', databaseId: '', enableAggregates: '', enableBilling: '', enableBulk: '', enableConnectionFilter: '', enableDirectUploads: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', labels: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }, select: { id: true } }).execute(); // Update const updated = await db.databaseSetting.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); @@ -592,6 +584,7 @@ CRUD operations for Derive records. | `createdAt` | Datetime | No | | `databaseId` | UUID | Yes | | `id` | UUID | No | +| `includeGrants` | Boolean | Yes | | `includeMutations` | Boolean | Yes | | `kind` | String | Yes | | `policyPrefix` | String | Yes | @@ -603,13 +596,13 @@ CRUD operations for Derive records. ```typescript // List all derive records -const items = await db.derive.findMany({ select: { createdAt: true, databaseId: true, id: true, includeMutations: true, kind: true, policyPrefix: true, sourceTableId: true, tableId: true, updatedAt: true } }).execute(); +const items = await db.derive.findMany({ select: { createdAt: true, databaseId: true, id: true, includeGrants: true, includeMutations: true, kind: true, policyPrefix: true, sourceTableId: true, tableId: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.derive.findOne({ id: '', select: { createdAt: true, databaseId: true, id: true, includeMutations: true, kind: true, policyPrefix: true, sourceTableId: true, tableId: true, updatedAt: true } }).execute(); +const item = await db.derive.findOne({ id: '', select: { createdAt: true, databaseId: true, id: true, includeGrants: true, includeMutations: true, kind: true, policyPrefix: true, sourceTableId: true, tableId: true, updatedAt: true } }).execute(); // Create -const created = await db.derive.create({ data: { databaseId: '', includeMutations: '', kind: '', policyPrefix: '', sourceTableId: '', tableId: '' }, select: { id: true } }).execute(); +const created = await db.derive.create({ data: { databaseId: '', includeGrants: '', includeMutations: '', kind: '', policyPrefix: '', sourceTableId: '', tableId: '' }, select: { id: true } }).execute(); // Update const updated = await db.derive.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -628,6 +621,7 @@ CRUD operations for Domain records. |-------|------|----------| | `config` | JSON | Yes | | `createdAt` | Datetime | No | +| `createdByPrincipal` | UUID | Yes | | `databaseId` | UUID | Yes | | `hostname` | String | Yes | | `id` | UUID | No | @@ -639,6 +633,7 @@ CRUD operations for Domain records. | `tlsSecretName` | String | Yes | | `tlsStatus` | String | Yes | | `updatedAt` | Datetime | No | +| `updatedByPrincipal` | UUID | Yes | | `verificationStatus` | String | Yes | | `verifiedAt` | Datetime | Yes | @@ -646,13 +641,13 @@ CRUD operations for Domain records. ```typescript // List all domain records -const items = await db.domain.findMany({ select: { config: true, createdAt: true, databaseId: true, hostname: true, id: true, isPublished: true, isWildcard: true, managed: true, parentHostname: true, tlsReadyAt: true, tlsSecretName: true, tlsStatus: true, updatedAt: true, verificationStatus: true, verifiedAt: true } }).execute(); +const items = await db.domain.findMany({ select: { config: true, createdAt: true, createdByPrincipal: true, databaseId: true, hostname: true, id: true, isPublished: true, isWildcard: true, managed: true, parentHostname: true, tlsReadyAt: true, tlsSecretName: true, tlsStatus: true, updatedAt: true, updatedByPrincipal: true, verificationStatus: true, verifiedAt: true } }).execute(); // Get one by id -const item = await db.domain.findOne({ id: '', select: { config: true, createdAt: true, databaseId: true, hostname: true, id: true, isPublished: true, isWildcard: true, managed: true, parentHostname: true, tlsReadyAt: true, tlsSecretName: true, tlsStatus: true, updatedAt: true, verificationStatus: true, verifiedAt: true } }).execute(); +const item = await db.domain.findOne({ id: '', select: { config: true, createdAt: true, createdByPrincipal: true, databaseId: true, hostname: true, id: true, isPublished: true, isWildcard: true, managed: true, parentHostname: true, tlsReadyAt: true, tlsSecretName: true, tlsStatus: true, updatedAt: true, updatedByPrincipal: true, verificationStatus: true, verifiedAt: true } }).execute(); // Create -const created = await db.domain.create({ data: { config: '', databaseId: '', hostname: '', isPublished: '', isWildcard: '', managed: '', parentHostname: '', tlsReadyAt: '', tlsSecretName: '', tlsStatus: '', verificationStatus: '', verifiedAt: '' }, select: { id: true } }).execute(); +const created = await db.domain.create({ data: { config: '', createdByPrincipal: '', databaseId: '', hostname: '', isPublished: '', isWildcard: '', managed: '', parentHostname: '', tlsReadyAt: '', tlsSecretName: '', tlsStatus: '', updatedByPrincipal: '', verificationStatus: '', verifiedAt: '' }, select: { id: true } }).execute(); // Update const updated = await db.domain.update({ where: { id: '' }, data: { config: '' }, select: { id: true } }).execute(); @@ -1253,30 +1248,73 @@ CRUD operations for Function records. | Field | Type | Editable | |-------|------|----------| +| `apiExposed` | Boolean | Yes | +| `arguments` | JSON | Yes | +| `bodyAst` | JSON | Yes | +| `category` | ObjectCategory | Yes | +| `data` | JSON | Yes | | `databaseId` | UUID | Yes | +| `functionType` | String | Yes | | `id` | UUID | No | +| `isStrict` | Boolean | Yes | +| `kind` | String | Yes | | `name` | String | Yes | +| `returns` | JSON | Yes | | `schemaId` | UUID | Yes | +| `securityInvoker` | Boolean | Yes | +| `smartTags` | JSON | Yes | +| `tags` | String | Yes | +| `volatility` | String | Yes | **Operations:** ```typescript // List all function records -const items = await db.function.findMany({ select: { databaseId: true, id: true, name: true, schemaId: true } }).execute(); +const items = await db.function.findMany({ select: { apiExposed: true, arguments: true, bodyAst: true, category: true, data: true, databaseId: true, functionType: true, id: true, isStrict: true, kind: true, name: true, returns: true, schemaId: true, securityInvoker: true, smartTags: true, tags: true, volatility: true } }).execute(); // Get one by id -const item = await db.function.findOne({ id: '', select: { databaseId: true, id: true, name: true, schemaId: true } }).execute(); +const item = await db.function.findOne({ id: '', select: { apiExposed: true, arguments: true, bodyAst: true, category: true, data: true, databaseId: true, functionType: true, id: true, isStrict: true, kind: true, name: true, returns: true, schemaId: true, securityInvoker: true, smartTags: true, tags: true, volatility: true } }).execute(); // Create -const created = await db.function.create({ data: { databaseId: '', name: '', schemaId: '' }, select: { id: true } }).execute(); +const created = await db.function.create({ data: { apiExposed: '', arguments: '', bodyAst: '', category: '', data: '', databaseId: '', functionType: '', isStrict: '', kind: '', name: '', returns: '', schemaId: '', securityInvoker: '', smartTags: '', tags: '', volatility: '' }, select: { id: true } }).execute(); // Update -const updated = await db.function.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.function.update({ where: { id: '' }, data: { apiExposed: '' }, select: { id: true } }).execute(); // Delete const deleted = await db.function.delete({ where: { id: '' } }).execute(); ``` +### `db.getSitePreviewsRecord` + +CRUD operations for GetSitePreviewsRecord records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `commitId` | UUID | Yes | +| `name` | String | Yes | + +**Operations:** + +```typescript +// List all getSitePreviewsRecord records +const items = await db.getSitePreviewsRecord.findMany({ select: { commitId: true, name: true } }).execute(); + +// Get one by id +const item = await db.getSitePreviewsRecord.findOne({ id: '', select: { commitId: true, name: true } }).execute(); + +// Create +const created = await db.getSitePreviewsRecord.create({ data: { commitId: '', name: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.getSitePreviewsRecord.update({ where: { id: '' }, data: { commitId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.getSitePreviewsRecord.delete({ where: { id: '' } }).execute(); +``` + ### `db.hostnameBinding` CRUD operations for HostnameBinding records. @@ -1315,45 +1353,40 @@ const updated = await db.hostnameBinding.update({ where: { id: '' }, data: const deleted = await db.hostnameBinding.delete({ where: { id: '' } }).execute(); ``` -### `db.httpRoute` +### `db.identityProviderRegistry` -CRUD operations for HttpRoute records. +CRUD operations for IdentityProviderRegistry records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `createdAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `databaseId` | UUID | Yes | -| `domainId` | UUID | Yes | -| `id` | UUID | No | -| `isActive` | Boolean | Yes | -| `method` | String | Yes | -| `path` | String | Yes | -| `priority` | Int | Yes | -| `targetId` | UUID | Yes | -| `targetKind` | String | Yes | -| `updatedAt` | Datetime | No | -| `updatedBy` | UUID | Yes | +| `authorizationUrl` | String | Yes | +| `displayName` | String | Yes | +| `issuerUrl` | String | Yes | +| `kind` | String | Yes | +| `scopes` | String | Yes | +| `slug` | String | No | +| `tokenUrl` | String | Yes | +| `userinfoUrl` | String | Yes | **Operations:** ```typescript -// List all httpRoute records -const items = await db.httpRoute.findMany({ select: { createdAt: true, createdBy: true, databaseId: true, domainId: true, id: true, isActive: true, method: true, path: true, priority: true, targetId: true, targetKind: true, updatedAt: true, updatedBy: true } }).execute(); +// List all identityProviderRegistry records +const items = await db.identityProviderRegistry.findMany({ select: { authorizationUrl: true, displayName: true, issuerUrl: true, kind: true, scopes: true, slug: true, tokenUrl: true, userinfoUrl: true } }).execute(); -// Get one by id -const item = await db.httpRoute.findOne({ id: '', select: { createdAt: true, createdBy: true, databaseId: true, domainId: true, id: true, isActive: true, method: true, path: true, priority: true, targetId: true, targetKind: true, updatedAt: true, updatedBy: true } }).execute(); +// Get one by slug +const item = await db.identityProviderRegistry.findOne({ slug: '', select: { authorizationUrl: true, displayName: true, issuerUrl: true, kind: true, scopes: true, slug: true, tokenUrl: true, userinfoUrl: true } }).execute(); // Create -const created = await db.httpRoute.create({ data: { createdBy: '', databaseId: '', domainId: '', isActive: '', method: '', path: '', priority: '', targetId: '', targetKind: '', updatedBy: '' }, select: { id: true } }).execute(); +const created = await db.identityProviderRegistry.create({ data: { authorizationUrl: '', displayName: '', issuerUrl: '', kind: '', scopes: '', tokenUrl: '', userinfoUrl: '' }, select: { slug: true } }).execute(); // Update -const updated = await db.httpRoute.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); +const updated = await db.identityProviderRegistry.update({ where: { slug: '' }, data: { authorizationUrl: '' }, select: { slug: true } }).execute(); // Delete -const deleted = await db.httpRoute.delete({ where: { id: '' } }).execute(); +const deleted = await db.identityProviderRegistry.delete({ where: { slug: '' } }).execute(); ``` ### `db.index` @@ -1374,6 +1407,7 @@ CRUD operations for Index records. | `indexParams` | JSON | Yes | | `isUnique` | Boolean | Yes | | `name` | String | Yes | +| `nullsNotDistinct` | Boolean | Yes | | `opClasses` | String | Yes | | `options` | JSON | Yes | | `smartTags` | JSON | Yes | @@ -1386,13 +1420,13 @@ CRUD operations for Index records. ```typescript // List all index records -const items = await db.index.findMany({ select: { accessMethod: true, category: true, createdAt: true, databaseId: true, fieldIds: true, id: true, includeFieldIds: true, indexParams: true, isUnique: true, name: true, opClasses: true, options: true, smartTags: true, tableId: true, tags: true, updatedAt: true, whereClause: true } }).execute(); +const items = await db.index.findMany({ select: { accessMethod: true, category: true, createdAt: true, databaseId: true, fieldIds: true, id: true, includeFieldIds: true, indexParams: true, isUnique: true, name: true, nullsNotDistinct: true, opClasses: true, options: true, smartTags: true, tableId: true, tags: true, updatedAt: true, whereClause: true } }).execute(); // Get one by id -const item = await db.index.findOne({ id: '', select: { accessMethod: true, category: true, createdAt: true, databaseId: true, fieldIds: true, id: true, includeFieldIds: true, indexParams: true, isUnique: true, name: true, opClasses: true, options: true, smartTags: true, tableId: true, tags: true, updatedAt: true, whereClause: true } }).execute(); +const item = await db.index.findOne({ id: '', select: { accessMethod: true, category: true, createdAt: true, databaseId: true, fieldIds: true, id: true, includeFieldIds: true, indexParams: true, isUnique: true, name: true, nullsNotDistinct: true, opClasses: true, options: true, smartTags: true, tableId: true, tags: true, updatedAt: true, whereClause: true } }).execute(); // Create -const created = await db.index.create({ data: { accessMethod: '', category: '', databaseId: '', fieldIds: '', includeFieldIds: '', indexParams: '', isUnique: '', name: '', opClasses: '', options: '', smartTags: '', tableId: '', tags: '', whereClause: '' }, select: { id: true } }).execute(); +const created = await db.index.create({ data: { accessMethod: '', category: '', databaseId: '', fieldIds: '', includeFieldIds: '', indexParams: '', isUnique: '', name: '', nullsNotDistinct: '', opClasses: '', options: '', smartTags: '', tableId: '', tags: '', whereClause: '' }, select: { id: true } }).execute(); // Update const updated = await db.index.update({ where: { id: '' }, data: { accessMethod: '' }, select: { id: true } }).execute(); @@ -1413,6 +1447,7 @@ CRUD operations for ManagedDomain records. | `annotations` | JSON | Yes | | `certStatus` | String | Yes | | `createdAt` | Datetime | No | +| `createdByPrincipal` | UUID | Yes | | `databaseId` | UUID | Yes | | `domain` | String | Yes | | `id` | UUID | No | @@ -1420,6 +1455,7 @@ CRUD operations for ManagedDomain records. | `tlsReadyAt` | Datetime | Yes | | `tlsStatus` | String | Yes | | `updatedAt` | Datetime | No | +| `updatedByPrincipal` | UUID | Yes | | `verificationStatus` | String | Yes | | `verifiedAt` | Datetime | Yes | @@ -1427,13 +1463,13 @@ CRUD operations for ManagedDomain records. ```typescript // List all managedDomain records -const items = await db.managedDomain.findMany({ select: { allowPublicUsage: true, annotations: true, certStatus: true, createdAt: true, databaseId: true, domain: true, id: true, isWildcard: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, verificationStatus: true, verifiedAt: true } }).execute(); +const items = await db.managedDomain.findMany({ select: { allowPublicUsage: true, annotations: true, certStatus: true, createdAt: true, createdByPrincipal: true, databaseId: true, domain: true, id: true, isWildcard: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, updatedByPrincipal: true, verificationStatus: true, verifiedAt: true } }).execute(); // Get one by id -const item = await db.managedDomain.findOne({ id: '', select: { allowPublicUsage: true, annotations: true, certStatus: true, createdAt: true, databaseId: true, domain: true, id: true, isWildcard: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, verificationStatus: true, verifiedAt: true } }).execute(); +const item = await db.managedDomain.findOne({ id: '', select: { allowPublicUsage: true, annotations: true, certStatus: true, createdAt: true, createdByPrincipal: true, databaseId: true, domain: true, id: true, isWildcard: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, updatedByPrincipal: true, verificationStatus: true, verifiedAt: true } }).execute(); // Create -const created = await db.managedDomain.create({ data: { allowPublicUsage: '', annotations: '', certStatus: '', databaseId: '', domain: '', isWildcard: '', tlsReadyAt: '', tlsStatus: '', verificationStatus: '', verifiedAt: '' }, select: { id: true } }).execute(); +const created = await db.managedDomain.create({ data: { allowPublicUsage: '', annotations: '', certStatus: '', createdByPrincipal: '', databaseId: '', domain: '', isWildcard: '', tlsReadyAt: '', tlsStatus: '', updatedByPrincipal: '', verificationStatus: '', verifiedAt: '' }, select: { id: true } }).execute(); // Update const updated = await db.managedDomain.update({ where: { id: '' }, data: { allowPublicUsage: '' }, select: { id: true } }).execute(); @@ -1490,6 +1526,7 @@ CRUD operations for Page records. | `createdAt` | Datetime | No | | `databaseId` | UUID | Yes | | `id` | UUID | No | +| `seededFrom` | JSON | Yes | | `siteId` | UUID | Yes | | `slug` | String | Yes | | `storeId` | UUID | Yes | @@ -1499,13 +1536,13 @@ CRUD operations for Page records. ```typescript // List all page records -const items = await db.page.findMany({ select: { commitId: true, content: true, createdAt: true, databaseId: true, id: true, siteId: true, slug: true, storeId: true, updatedAt: true } }).execute(); +const items = await db.page.findMany({ select: { commitId: true, content: true, createdAt: true, databaseId: true, id: true, seededFrom: true, siteId: true, slug: true, storeId: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.page.findOne({ id: '', select: { commitId: true, content: true, createdAt: true, databaseId: true, id: true, siteId: true, slug: true, storeId: true, updatedAt: true } }).execute(); +const item = await db.page.findOne({ id: '', select: { commitId: true, content: true, createdAt: true, databaseId: true, id: true, seededFrom: true, siteId: true, slug: true, storeId: true, updatedAt: true } }).execute(); // Create -const created = await db.page.create({ data: { commitId: '', content: '', databaseId: '', siteId: '', slug: '', storeId: '' }, select: { id: true } }).execute(); +const created = await db.page.create({ data: { commitId: '', content: '', databaseId: '', seededFrom: '', siteId: '', slug: '', storeId: '' }, select: { id: true } }).execute(); // Update const updated = await db.page.update({ where: { id: '' }, data: { commitId: '' }, select: { id: true } }).execute(); @@ -1640,6 +1677,7 @@ CRUD operations for PlatformApiSetting records. | `enableConnectionFilter` | Boolean | Yes | | `enableDirectUploads` | Boolean | Yes | | `enableI18N` | Boolean | Yes | +| `enableIntrospection` | Boolean | Yes | | `enableLlm` | Boolean | Yes | | `enableLtree` | Boolean | Yes | | `enableManyToMany` | Boolean | Yes | @@ -1648,7 +1686,17 @@ CRUD operations for PlatformApiSetting records. | `enableRealtime` | Boolean | Yes | | `enableSearch` | Boolean | Yes | | `id` | UUID | No | +| `idleInTransactionTimeoutMs` | BigInt | Yes | +| `lockTimeoutMs` | BigInt | Yes | +| `maxConcurrentRequests` | Int | Yes | +| `maxPageSize` | Int | Yes | +| `maxQueryCost` | Int | Yes | +| `maxQueryDepth` | Int | Yes | +| `maxQueueWaitMs` | Int | Yes | +| `maxRequestBytes` | Int | Yes | | `options` | JSON | Yes | +| `rateLimitBurst` | Int | Yes | +| `rateLimitRpm` | Int | Yes | | `statementTimeoutMs` | BigInt | Yes | | `updatedAt` | Datetime | No | @@ -1656,13 +1704,13 @@ CRUD operations for PlatformApiSetting records. ```typescript // List all platformApiSetting records -const items = await db.platformApiSetting.findMany({ select: { apiId: true, createdAt: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, options: true, statementTimeoutMs: true, updatedAt: true } }).execute(); +const items = await db.platformApiSetting.findMany({ select: { apiId: true, createdAt: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.platformApiSetting.findOne({ id: '', select: { apiId: true, createdAt: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, options: true, statementTimeoutMs: true, updatedAt: true } }).execute(); +const item = await db.platformApiSetting.findOne({ id: '', select: { apiId: true, createdAt: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }).execute(); // Create -const created = await db.platformApiSetting.create({ data: { apiId: '', enableAggregates: '', enableBulk: '', enableConnectionFilter: '', enableDirectUploads: '', enableI18N: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', options: '', statementTimeoutMs: '' }, select: { id: true } }).execute(); +const created = await db.platformApiSetting.create({ data: { apiId: '', enableAggregates: '', enableBulk: '', enableConnectionFilter: '', enableDirectUploads: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformApiSetting.update({ where: { id: '' }, data: { apiId: '' }, select: { id: true } }).execute(); @@ -1714,6 +1762,7 @@ CRUD operations for PlatformDomain records. |-------|------|----------| | `config` | JSON | Yes | | `createdAt` | Datetime | No | +| `createdByPrincipal` | UUID | Yes | | `hostname` | String | Yes | | `id` | UUID | No | | `isPublished` | Boolean | Yes | @@ -1724,6 +1773,7 @@ CRUD operations for PlatformDomain records. | `tlsSecretName` | String | Yes | | `tlsStatus` | String | Yes | | `updatedAt` | Datetime | No | +| `updatedByPrincipal` | UUID | Yes | | `verificationStatus` | String | Yes | | `verifiedAt` | Datetime | Yes | @@ -1731,13 +1781,13 @@ CRUD operations for PlatformDomain records. ```typescript // List all platformDomain records -const items = await db.platformDomain.findMany({ select: { config: true, createdAt: true, hostname: true, id: true, isPublished: true, isWildcard: true, managed: true, parentHostname: true, tlsReadyAt: true, tlsSecretName: true, tlsStatus: true, updatedAt: true, verificationStatus: true, verifiedAt: true } }).execute(); +const items = await db.platformDomain.findMany({ select: { config: true, createdAt: true, createdByPrincipal: true, hostname: true, id: true, isPublished: true, isWildcard: true, managed: true, parentHostname: true, tlsReadyAt: true, tlsSecretName: true, tlsStatus: true, updatedAt: true, updatedByPrincipal: true, verificationStatus: true, verifiedAt: true } }).execute(); // Get one by id -const item = await db.platformDomain.findOne({ id: '', select: { config: true, createdAt: true, hostname: true, id: true, isPublished: true, isWildcard: true, managed: true, parentHostname: true, tlsReadyAt: true, tlsSecretName: true, tlsStatus: true, updatedAt: true, verificationStatus: true, verifiedAt: true } }).execute(); +const item = await db.platformDomain.findOne({ id: '', select: { config: true, createdAt: true, createdByPrincipal: true, hostname: true, id: true, isPublished: true, isWildcard: true, managed: true, parentHostname: true, tlsReadyAt: true, tlsSecretName: true, tlsStatus: true, updatedAt: true, updatedByPrincipal: true, verificationStatus: true, verifiedAt: true } }).execute(); // Create -const created = await db.platformDomain.create({ data: { config: '', hostname: '', isPublished: '', isWildcard: '', managed: '', parentHostname: '', tlsReadyAt: '', tlsSecretName: '', tlsStatus: '', verificationStatus: '', verifiedAt: '' }, select: { id: true } }).execute(); +const created = await db.platformDomain.create({ data: { config: '', createdByPrincipal: '', hostname: '', isPublished: '', isWildcard: '', managed: '', parentHostname: '', tlsReadyAt: '', tlsSecretName: '', tlsStatus: '', updatedByPrincipal: '', verificationStatus: '', verifiedAt: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformDomain.update({ where: { id: '' }, data: { config: '' }, select: { id: true } }).execute(); @@ -1943,6 +1993,36 @@ const updated = await db.platformEmailSiteIdentity.update({ where: { id: ' const deleted = await db.platformEmailSiteIdentity.delete({ where: { id: '' } }).execute(); ``` +### `db.platformGetSitePreviewsRecord` + +CRUD operations for PlatformGetSitePreviewsRecord records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `commitId` | UUID | Yes | +| `name` | String | Yes | + +**Operations:** + +```typescript +// List all platformGetSitePreviewsRecord records +const items = await db.platformGetSitePreviewsRecord.findMany({ select: { commitId: true, name: true } }).execute(); + +// Get one by id +const item = await db.platformGetSitePreviewsRecord.findOne({ id: '', select: { commitId: true, name: true } }).execute(); + +// Create +const created = await db.platformGetSitePreviewsRecord.create({ data: { commitId: '', name: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformGetSitePreviewsRecord.update({ where: { id: '' }, data: { commitId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformGetSitePreviewsRecord.delete({ where: { id: '' } }).execute(); +``` + ### `db.platformManagedDomain` CRUD operations for PlatformManagedDomain records. @@ -1955,12 +2035,14 @@ CRUD operations for PlatformManagedDomain records. | `annotations` | JSON | Yes | | `certStatus` | String | Yes | | `createdAt` | Datetime | No | +| `createdByPrincipal` | UUID | Yes | | `domain` | String | Yes | | `id` | UUID | No | | `isWildcard` | Boolean | Yes | | `tlsReadyAt` | Datetime | Yes | | `tlsStatus` | String | Yes | | `updatedAt` | Datetime | No | +| `updatedByPrincipal` | UUID | Yes | | `verificationStatus` | String | Yes | | `verifiedAt` | Datetime | Yes | @@ -1968,13 +2050,13 @@ CRUD operations for PlatformManagedDomain records. ```typescript // List all platformManagedDomain records -const items = await db.platformManagedDomain.findMany({ select: { allowPublicUsage: true, annotations: true, certStatus: true, createdAt: true, domain: true, id: true, isWildcard: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, verificationStatus: true, verifiedAt: true } }).execute(); +const items = await db.platformManagedDomain.findMany({ select: { allowPublicUsage: true, annotations: true, certStatus: true, createdAt: true, createdByPrincipal: true, domain: true, id: true, isWildcard: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, updatedByPrincipal: true, verificationStatus: true, verifiedAt: true } }).execute(); // Get one by id -const item = await db.platformManagedDomain.findOne({ id: '', select: { allowPublicUsage: true, annotations: true, certStatus: true, createdAt: true, domain: true, id: true, isWildcard: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, verificationStatus: true, verifiedAt: true } }).execute(); +const item = await db.platformManagedDomain.findOne({ id: '', select: { allowPublicUsage: true, annotations: true, certStatus: true, createdAt: true, createdByPrincipal: true, domain: true, id: true, isWildcard: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, updatedByPrincipal: true, verificationStatus: true, verifiedAt: true } }).execute(); // Create -const created = await db.platformManagedDomain.create({ data: { allowPublicUsage: '', annotations: '', certStatus: '', domain: '', isWildcard: '', tlsReadyAt: '', tlsStatus: '', verificationStatus: '', verifiedAt: '' }, select: { id: true } }).execute(); +const created = await db.platformManagedDomain.create({ data: { allowPublicUsage: '', annotations: '', certStatus: '', createdByPrincipal: '', domain: '', isWildcard: '', tlsReadyAt: '', tlsStatus: '', updatedByPrincipal: '', verificationStatus: '', verifiedAt: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformManagedDomain.update({ where: { id: '' }, data: { allowPublicUsage: '' }, select: { id: true } }).execute(); @@ -1995,6 +2077,7 @@ CRUD operations for PlatformPage records. | `content` | JSON | Yes | | `createdAt` | Datetime | No | | `id` | UUID | No | +| `seededFrom` | JSON | Yes | | `siteId` | UUID | Yes | | `slug` | String | Yes | | `storeId` | UUID | Yes | @@ -2004,13 +2087,13 @@ CRUD operations for PlatformPage records. ```typescript // List all platformPage records -const items = await db.platformPage.findMany({ select: { commitId: true, content: true, createdAt: true, id: true, siteId: true, slug: true, storeId: true, updatedAt: true } }).execute(); +const items = await db.platformPage.findMany({ select: { commitId: true, content: true, createdAt: true, id: true, seededFrom: true, siteId: true, slug: true, storeId: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.platformPage.findOne({ id: '', select: { commitId: true, content: true, createdAt: true, id: true, siteId: true, slug: true, storeId: true, updatedAt: true } }).execute(); +const item = await db.platformPage.findOne({ id: '', select: { commitId: true, content: true, createdAt: true, id: true, seededFrom: true, siteId: true, slug: true, storeId: true, updatedAt: true } }).execute(); // Create -const created = await db.platformPage.create({ data: { commitId: '', content: '', siteId: '', slug: '', storeId: '' }, select: { id: true } }).execute(); +const created = await db.platformPage.create({ data: { commitId: '', content: '', seededFrom: '', siteId: '', slug: '', storeId: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformPage.update({ where: { id: '' }, data: { commitId: '' }, select: { id: true } }).execute(); @@ -2027,15 +2110,11 @@ CRUD operations for PlatformSiteAppLink records. | Field | Type | Editable | |-------|------|----------| -| `appIdentifier` | String | Yes | +| `appStoreIdentityId` | UUID | Yes | | `createdAt` | Datetime | No | | `id` | UUID | No | | `pathComponents` | String | Yes | -| `platform` | String | Yes | -| `sha256CertFingerprints` | String | Yes | | `siteId` | UUID | Yes | -| `storeUrl` | String | Yes | -| `teamId` | String | Yes | | `updatedAt` | Datetime | No | | `webcredentials` | Boolean | Yes | @@ -2043,16 +2122,16 @@ CRUD operations for PlatformSiteAppLink records. ```typescript // List all platformSiteAppLink records -const items = await db.platformSiteAppLink.findMany({ select: { appIdentifier: true, createdAt: true, id: true, pathComponents: true, platform: true, sha256CertFingerprints: true, siteId: true, storeUrl: true, teamId: true, updatedAt: true, webcredentials: true } }).execute(); +const items = await db.platformSiteAppLink.findMany({ select: { appStoreIdentityId: true, createdAt: true, id: true, pathComponents: true, siteId: true, updatedAt: true, webcredentials: true } }).execute(); // Get one by id -const item = await db.platformSiteAppLink.findOne({ id: '', select: { appIdentifier: true, createdAt: true, id: true, pathComponents: true, platform: true, sha256CertFingerprints: true, siteId: true, storeUrl: true, teamId: true, updatedAt: true, webcredentials: true } }).execute(); +const item = await db.platformSiteAppLink.findOne({ id: '', select: { appStoreIdentityId: true, createdAt: true, id: true, pathComponents: true, siteId: true, updatedAt: true, webcredentials: true } }).execute(); // Create -const created = await db.platformSiteAppLink.create({ data: { appIdentifier: '', pathComponents: '', platform: '', sha256CertFingerprints: '', siteId: '', storeUrl: '', teamId: '', webcredentials: '' }, select: { id: true } }).execute(); +const created = await db.platformSiteAppLink.create({ data: { appStoreIdentityId: '', pathComponents: '', siteId: '', webcredentials: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformSiteAppLink.update({ where: { id: '' }, data: { appIdentifier: '' }, select: { id: true } }).execute(); +const updated = await db.platformSiteAppLink.update({ where: { id: '' }, data: { appStoreIdentityId: '' }, select: { id: true } }).execute(); // Delete const deleted = await db.platformSiteAppLink.delete({ where: { id: '' } }).execute(); @@ -2069,6 +2148,7 @@ CRUD operations for PlatformSite records. | `activeCommitId` | UUID | Yes | | `bucketId` | UUID | Yes | | `createdAt` | Datetime | No | +| `createdByPrincipal` | UUID | Yes | | `description` | String | Yes | | `id` | UUID | No | | `installationId` | UUID | Yes | @@ -2078,18 +2158,19 @@ CRUD operations for PlatformSite records. | `resourceId` | UUID | Yes | | `title` | String | Yes | | `updatedAt` | Datetime | No | +| `updatedByPrincipal` | UUID | Yes | **Operations:** ```typescript // List all platformSite records -const items = await db.platformSite.findMany({ select: { activeCommitId: true, bucketId: true, createdAt: true, description: true, id: true, installationId: true, installationMemberSlug: true, isPublished: true, name: true, resourceId: true, title: true, updatedAt: true } }).execute(); +const items = await db.platformSite.findMany({ select: { activeCommitId: true, bucketId: true, createdAt: true, createdByPrincipal: true, description: true, id: true, installationId: true, installationMemberSlug: true, isPublished: true, name: true, resourceId: true, title: true, updatedAt: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.platformSite.findOne({ id: '', select: { activeCommitId: true, bucketId: true, createdAt: true, description: true, id: true, installationId: true, installationMemberSlug: true, isPublished: true, name: true, resourceId: true, title: true, updatedAt: true } }).execute(); +const item = await db.platformSite.findOne({ id: '', select: { activeCommitId: true, bucketId: true, createdAt: true, createdByPrincipal: true, description: true, id: true, installationId: true, installationMemberSlug: true, isPublished: true, name: true, resourceId: true, title: true, updatedAt: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.platformSite.create({ data: { activeCommitId: '', bucketId: '', description: '', installationId: '', installationMemberSlug: '', isPublished: '', name: '', resourceId: '', title: '' }, select: { id: true } }).execute(); +const created = await db.platformSite.create({ data: { activeCommitId: '', bucketId: '', createdByPrincipal: '', description: '', installationId: '', installationMemberSlug: '', isPublished: '', name: '', resourceId: '', title: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformSite.update({ where: { id: '' }, data: { activeCommitId: '' }, select: { id: true } }).execute(); @@ -2111,6 +2192,7 @@ CRUD operations for PlatformSiteDeepLink records. | `fallbackUrl` | String | Yes | | `id` | UUID | No | | `metadata` | JSON | Yes | +| `pageId` | UUID | Yes | | `siteId` | UUID | Yes | | `slug` | String | Yes | | `updatedAt` | Datetime | No | @@ -2120,13 +2202,13 @@ CRUD operations for PlatformSiteDeepLink records. ```typescript // List all platformSiteDeepLink records -const items = await db.platformSiteDeepLink.findMany({ select: { appPath: true, createdAt: true, fallbackUrl: true, id: true, metadata: true, siteId: true, slug: true, updatedAt: true, webPath: true } }).execute(); +const items = await db.platformSiteDeepLink.findMany({ select: { appPath: true, createdAt: true, fallbackUrl: true, id: true, metadata: true, pageId: true, siteId: true, slug: true, updatedAt: true, webPath: true } }).execute(); // Get one by id -const item = await db.platformSiteDeepLink.findOne({ id: '', select: { appPath: true, createdAt: true, fallbackUrl: true, id: true, metadata: true, siteId: true, slug: true, updatedAt: true, webPath: true } }).execute(); +const item = await db.platformSiteDeepLink.findOne({ id: '', select: { appPath: true, createdAt: true, fallbackUrl: true, id: true, metadata: true, pageId: true, siteId: true, slug: true, updatedAt: true, webPath: true } }).execute(); // Create -const created = await db.platformSiteDeepLink.create({ data: { appPath: '', fallbackUrl: '', metadata: '', siteId: '', slug: '', webPath: '' }, select: { id: true } }).execute(); +const created = await db.platformSiteDeepLink.create({ data: { appPath: '', fallbackUrl: '', metadata: '', pageId: '', siteId: '', slug: '', webPath: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformSiteDeepLink.update({ where: { id: '' }, data: { appPath: '' }, select: { id: true } }).execute(); @@ -2187,6 +2269,7 @@ CRUD operations for PlatformSiteMetadatum records. | `logo` | ConstructiveInternalTypeImage | Yes | | `ogImage` | ConstructiveInternalTypeImage | Yes | | `robots` | String | Yes | +| `robotsSeededFrom` | JSON | Yes | | `siteId` | UUID | Yes | | `storeId` | UUID | Yes | | `title` | String | Yes | @@ -2196,13 +2279,13 @@ CRUD operations for PlatformSiteMetadatum records. ```typescript // List all platformSiteMetadatum records -const items = await db.platformSiteMetadatum.findMany({ select: { appleTouchIcon: true, canonicalUrl: true, commitId: true, createdAt: true, description: true, favicon: true, id: true, logo: true, ogImage: true, robots: true, siteId: true, storeId: true, title: true, updatedAt: true } }).execute(); +const items = await db.platformSiteMetadatum.findMany({ select: { appleTouchIcon: true, canonicalUrl: true, commitId: true, createdAt: true, description: true, favicon: true, id: true, logo: true, ogImage: true, robots: true, robotsSeededFrom: true, siteId: true, storeId: true, title: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.platformSiteMetadatum.findOne({ id: '', select: { appleTouchIcon: true, canonicalUrl: true, commitId: true, createdAt: true, description: true, favicon: true, id: true, logo: true, ogImage: true, robots: true, siteId: true, storeId: true, title: true, updatedAt: true } }).execute(); +const item = await db.platformSiteMetadatum.findOne({ id: '', select: { appleTouchIcon: true, canonicalUrl: true, commitId: true, createdAt: true, description: true, favicon: true, id: true, logo: true, ogImage: true, robots: true, robotsSeededFrom: true, siteId: true, storeId: true, title: true, updatedAt: true } }).execute(); // Create -const created = await db.platformSiteMetadatum.create({ data: { appleTouchIcon: '', canonicalUrl: '', commitId: '', description: '', favicon: '', logo: '', ogImage: '', robots: '', siteId: '', storeId: '', title: '' }, select: { id: true } }).execute(); +const created = await db.platformSiteMetadatum.create({ data: { appleTouchIcon: '', canonicalUrl: '', commitId: '', description: '', favicon: '', logo: '', ogImage: '', robots: '', robotsSeededFrom: '', siteId: '', storeId: '', title: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformSiteMetadatum.update({ where: { id: '' }, data: { appleTouchIcon: '' }, select: { id: true } }).execute(); @@ -2247,6 +2330,41 @@ const updated = await db.platformSiteModule.update({ where: { id: '' }, da const deleted = await db.platformSiteModule.delete({ where: { id: '' } }).execute(); ``` +### `db.platformSiteRelease` + +CRUD operations for PlatformSiteRelease records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `commitId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `id` | UUID | No | +| `manifest` | JSON | Yes | +| `siteId` | UUID | Yes | +| `storeId` | UUID | Yes | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all platformSiteRelease records +const items = await db.platformSiteRelease.findMany({ select: { commitId: true, createdAt: true, id: true, manifest: true, siteId: true, storeId: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.platformSiteRelease.findOne({ id: '', select: { commitId: true, createdAt: true, id: true, manifest: true, siteId: true, storeId: true, updatedAt: true } }).execute(); + +// Create +const created = await db.platformSiteRelease.create({ data: { commitId: '', manifest: '', siteId: '', storeId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformSiteRelease.update({ where: { id: '' }, data: { commitId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformSiteRelease.delete({ where: { id: '' } }).execute(); +``` + ### `db.platformSiteTheme` CRUD operations for PlatformSiteTheme records. @@ -2329,6 +2447,7 @@ CRUD operations for Policy records. | Field | Type | Editable | |-------|------|----------| | `category` | ObjectCategory | Yes | +| `columnRefs` | String | Yes | | `createdAt` | Datetime | No | | `data` | JSON | Yes | | `databaseId` | UUID | Yes | @@ -2351,13 +2470,13 @@ CRUD operations for Policy records. ```typescript // List all policy records -const items = await db.policy.findMany({ select: { category: true, createdAt: true, data: true, databaseId: true, derivedFromPolicyId: true, derivedFromTableId: true, disabled: true, granteeName: true, id: true, name: true, permissive: true, policyType: true, privilege: true, smartTags: true, tableId: true, tags: true, updatedAt: true, withCheck: true } }).execute(); +const items = await db.policy.findMany({ select: { category: true, columnRefs: true, createdAt: true, data: true, databaseId: true, derivedFromPolicyId: true, derivedFromTableId: true, disabled: true, granteeName: true, id: true, name: true, permissive: true, policyType: true, privilege: true, smartTags: true, tableId: true, tags: true, updatedAt: true, withCheck: true } }).execute(); // Get one by id -const item = await db.policy.findOne({ id: '', select: { category: true, createdAt: true, data: true, databaseId: true, derivedFromPolicyId: true, derivedFromTableId: true, disabled: true, granteeName: true, id: true, name: true, permissive: true, policyType: true, privilege: true, smartTags: true, tableId: true, tags: true, updatedAt: true, withCheck: true } }).execute(); +const item = await db.policy.findOne({ id: '', select: { category: true, columnRefs: true, createdAt: true, data: true, databaseId: true, derivedFromPolicyId: true, derivedFromTableId: true, disabled: true, granteeName: true, id: true, name: true, permissive: true, policyType: true, privilege: true, smartTags: true, tableId: true, tags: true, updatedAt: true, withCheck: true } }).execute(); // Create -const created = await db.policy.create({ data: { category: '', data: '', databaseId: '', derivedFromPolicyId: '', derivedFromTableId: '', disabled: '', granteeName: '', name: '', permissive: '', policyType: '', privilege: '', smartTags: '', tableId: '', tags: '', withCheck: '' }, select: { id: true } }).execute(); +const created = await db.policy.create({ data: { category: '', columnRefs: '', data: '', databaseId: '', derivedFromPolicyId: '', derivedFromTableId: '', disabled: '', granteeName: '', name: '', permissive: '', policyType: '', privilege: '', smartTags: '', tableId: '', tags: '', withCheck: '' }, select: { id: true } }).execute(); // Update const updated = await db.policy.update({ where: { id: '' }, data: { category: '' }, select: { id: true } }).execute(); @@ -2447,6 +2566,44 @@ const updated = await db.pubkeySetting.update({ where: { id: '' }, data: { const deleted = await db.pubkeySetting.delete({ where: { id: '' } }).execute(); ``` +### `db.redirect` + +CRUD operations for Redirect records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `createdAt` | Datetime | No | +| `databaseId` | UUID | Yes | +| `id` | UUID | No | +| `name` | String | Yes | +| `preservePath` | Boolean | Yes | +| `preserveQuery` | Boolean | Yes | +| `statusCode` | Int | Yes | +| `toHost` | String | Yes | +| `toPath` | String | Yes | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all redirect records +const items = await db.redirect.findMany({ select: { createdAt: true, databaseId: true, id: true, name: true, preservePath: true, preserveQuery: true, statusCode: true, toHost: true, toPath: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.redirect.findOne({ id: '', select: { createdAt: true, databaseId: true, id: true, name: true, preservePath: true, preserveQuery: true, statusCode: true, toHost: true, toPath: true, updatedAt: true } }).execute(); + +// Create +const created = await db.redirect.create({ data: { databaseId: '', name: '', preservePath: '', preserveQuery: '', statusCode: '', toHost: '', toPath: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.redirect.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.redirect.delete({ where: { id: '' } }).execute(); +``` + ### `db.rlsSetting` CRUD operations for RlsSetting records. @@ -2501,9 +2658,11 @@ CRUD operations for RouteBinding records. | `method` | String | Yes | | `path` | String | Yes | | `priority` | Int | Yes | +| `servingSiteId` | UUID | Yes | | `targetApiId` | UUID | Yes | | `targetBucketId` | UUID | Yes | | `targetFunctionId` | UUID | Yes | +| `targetRedirectId` | UUID | Yes | | `targetServiceId` | UUID | Yes | | `targetSiteId` | UUID | Yes | | `updatedAt` | Datetime | No | @@ -2512,13 +2671,13 @@ CRUD operations for RouteBinding records. ```typescript // List all routeBinding records -const items = await db.routeBinding.findMany({ select: { domainId: true, id: true, isActive: true, method: true, path: true, priority: true, targetApiId: true, targetBucketId: true, targetFunctionId: true, targetServiceId: true, targetSiteId: true, updatedAt: true } }).execute(); +const items = await db.routeBinding.findMany({ select: { domainId: true, id: true, isActive: true, method: true, path: true, priority: true, servingSiteId: true, targetApiId: true, targetBucketId: true, targetFunctionId: true, targetRedirectId: true, targetServiceId: true, targetSiteId: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.routeBinding.findOne({ id: '', select: { domainId: true, id: true, isActive: true, method: true, path: true, priority: true, targetApiId: true, targetBucketId: true, targetFunctionId: true, targetServiceId: true, targetSiteId: true, updatedAt: true } }).execute(); +const item = await db.routeBinding.findOne({ id: '', select: { domainId: true, id: true, isActive: true, method: true, path: true, priority: true, servingSiteId: true, targetApiId: true, targetBucketId: true, targetFunctionId: true, targetRedirectId: true, targetServiceId: true, targetSiteId: true, updatedAt: true } }).execute(); // Create -const created = await db.routeBinding.create({ data: { domainId: '', isActive: '', method: '', path: '', priority: '', targetApiId: '', targetBucketId: '', targetFunctionId: '', targetServiceId: '', targetSiteId: '' }, select: { id: true } }).execute(); +const created = await db.routeBinding.create({ data: { domainId: '', isActive: '', method: '', path: '', priority: '', servingSiteId: '', targetApiId: '', targetBucketId: '', targetFunctionId: '', targetRedirectId: '', targetServiceId: '', targetSiteId: '' }, select: { id: true } }).execute(); // Update const updated = await db.routeBinding.update({ where: { id: '' }, data: { domainId: '' }, select: { id: true } }).execute(); @@ -2535,6 +2694,7 @@ CRUD operations for Route records. | Field | Type | Editable | |-------|------|----------| +| `anonymous` | Boolean | Yes | | `config` | JSON | Yes | | `createdAt` | Datetime | No | | `databaseId` | UUID | Yes | @@ -2543,10 +2703,13 @@ CRUD operations for Route records. | `isActive` | Boolean | Yes | | `method` | String | Yes | | `path` | String | Yes | +| `previewRef` | String | Yes | | `priority` | Int | Yes | +| `servingSiteId` | UUID | Yes | | `targetApiId` | UUID | Yes | | `targetBucketId` | UUID | Yes | | `targetFunctionId` | UUID | Yes | +| `targetRedirectId` | UUID | Yes | | `targetServiceId` | UUID | Yes | | `targetSiteId` | UUID | Yes | | `updatedAt` | Datetime | No | @@ -2555,16 +2718,16 @@ CRUD operations for Route records. ```typescript // List all route records -const items = await db.route.findMany({ select: { config: true, createdAt: true, databaseId: true, domainId: true, id: true, isActive: true, method: true, path: true, priority: true, targetApiId: true, targetBucketId: true, targetFunctionId: true, targetServiceId: true, targetSiteId: true, updatedAt: true } }).execute(); +const items = await db.route.findMany({ select: { anonymous: true, config: true, createdAt: true, databaseId: true, domainId: true, id: true, isActive: true, method: true, path: true, previewRef: true, priority: true, servingSiteId: true, targetApiId: true, targetBucketId: true, targetFunctionId: true, targetRedirectId: true, targetServiceId: true, targetSiteId: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.route.findOne({ id: '', select: { config: true, createdAt: true, databaseId: true, domainId: true, id: true, isActive: true, method: true, path: true, priority: true, targetApiId: true, targetBucketId: true, targetFunctionId: true, targetServiceId: true, targetSiteId: true, updatedAt: true } }).execute(); +const item = await db.route.findOne({ id: '', select: { anonymous: true, config: true, createdAt: true, databaseId: true, domainId: true, id: true, isActive: true, method: true, path: true, previewRef: true, priority: true, servingSiteId: true, targetApiId: true, targetBucketId: true, targetFunctionId: true, targetRedirectId: true, targetServiceId: true, targetSiteId: true, updatedAt: true } }).execute(); // Create -const created = await db.route.create({ data: { config: '', databaseId: '', domainId: '', isActive: '', method: '', path: '', priority: '', targetApiId: '', targetBucketId: '', targetFunctionId: '', targetServiceId: '', targetSiteId: '' }, select: { id: true } }).execute(); +const created = await db.route.create({ data: { anonymous: '', config: '', databaseId: '', domainId: '', isActive: '', method: '', path: '', previewRef: '', priority: '', servingSiteId: '', targetApiId: '', targetBucketId: '', targetFunctionId: '', targetRedirectId: '', targetServiceId: '', targetSiteId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.route.update({ where: { id: '' }, data: { config: '' }, select: { id: true } }).execute(); +const updated = await db.route.update({ where: { id: '' }, data: { anonymous: '' }, select: { id: true } }).execute(); // Delete const deleted = await db.route.delete({ where: { id: '' } }).execute(); @@ -2653,16 +2816,12 @@ CRUD operations for SiteAppLink records. | Field | Type | Editable | |-------|------|----------| -| `appIdentifier` | String | Yes | +| `appStoreIdentityId` | UUID | Yes | | `createdAt` | Datetime | No | | `databaseId` | UUID | Yes | | `id` | UUID | No | | `pathComponents` | String | Yes | -| `platform` | String | Yes | -| `sha256CertFingerprints` | String | Yes | | `siteId` | UUID | Yes | -| `storeUrl` | String | Yes | -| `teamId` | String | Yes | | `updatedAt` | Datetime | No | | `webcredentials` | Boolean | Yes | @@ -2670,16 +2829,16 @@ CRUD operations for SiteAppLink records. ```typescript // List all siteAppLink records -const items = await db.siteAppLink.findMany({ select: { appIdentifier: true, createdAt: true, databaseId: true, id: true, pathComponents: true, platform: true, sha256CertFingerprints: true, siteId: true, storeUrl: true, teamId: true, updatedAt: true, webcredentials: true } }).execute(); +const items = await db.siteAppLink.findMany({ select: { appStoreIdentityId: true, createdAt: true, databaseId: true, id: true, pathComponents: true, siteId: true, updatedAt: true, webcredentials: true } }).execute(); // Get one by id -const item = await db.siteAppLink.findOne({ id: '', select: { appIdentifier: true, createdAt: true, databaseId: true, id: true, pathComponents: true, platform: true, sha256CertFingerprints: true, siteId: true, storeUrl: true, teamId: true, updatedAt: true, webcredentials: true } }).execute(); +const item = await db.siteAppLink.findOne({ id: '', select: { appStoreIdentityId: true, createdAt: true, databaseId: true, id: true, pathComponents: true, siteId: true, updatedAt: true, webcredentials: true } }).execute(); // Create -const created = await db.siteAppLink.create({ data: { appIdentifier: '', databaseId: '', pathComponents: '', platform: '', sha256CertFingerprints: '', siteId: '', storeUrl: '', teamId: '', webcredentials: '' }, select: { id: true } }).execute(); +const created = await db.siteAppLink.create({ data: { appStoreIdentityId: '', databaseId: '', pathComponents: '', siteId: '', webcredentials: '' }, select: { id: true } }).execute(); // Update -const updated = await db.siteAppLink.update({ where: { id: '' }, data: { appIdentifier: '' }, select: { id: true } }).execute(); +const updated = await db.siteAppLink.update({ where: { id: '' }, data: { appStoreIdentityId: '' }, select: { id: true } }).execute(); // Delete const deleted = await db.siteAppLink.delete({ where: { id: '' } }).execute(); @@ -2696,6 +2855,7 @@ CRUD operations for Site records. | `activeCommitId` | UUID | Yes | | `bucketId` | UUID | Yes | | `createdAt` | Datetime | No | +| `createdByPrincipal` | UUID | Yes | | `databaseId` | UUID | Yes | | `description` | String | Yes | | `id` | UUID | No | @@ -2706,18 +2866,19 @@ CRUD operations for Site records. | `resourceId` | UUID | Yes | | `title` | String | Yes | | `updatedAt` | Datetime | No | +| `updatedByPrincipal` | UUID | Yes | **Operations:** ```typescript // List all site records -const items = await db.site.findMany({ select: { activeCommitId: true, bucketId: true, createdAt: true, databaseId: true, description: true, id: true, installationId: true, installationMemberSlug: true, isPublished: true, name: true, resourceId: true, title: true, updatedAt: true } }).execute(); +const items = await db.site.findMany({ select: { activeCommitId: true, bucketId: true, createdAt: true, createdByPrincipal: true, databaseId: true, description: true, id: true, installationId: true, installationMemberSlug: true, isPublished: true, name: true, resourceId: true, title: true, updatedAt: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.site.findOne({ id: '', select: { activeCommitId: true, bucketId: true, createdAt: true, databaseId: true, description: true, id: true, installationId: true, installationMemberSlug: true, isPublished: true, name: true, resourceId: true, title: true, updatedAt: true } }).execute(); +const item = await db.site.findOne({ id: '', select: { activeCommitId: true, bucketId: true, createdAt: true, createdByPrincipal: true, databaseId: true, description: true, id: true, installationId: true, installationMemberSlug: true, isPublished: true, name: true, resourceId: true, title: true, updatedAt: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.site.create({ data: { activeCommitId: '', bucketId: '', databaseId: '', description: '', installationId: '', installationMemberSlug: '', isPublished: '', name: '', resourceId: '', title: '' }, select: { id: true } }).execute(); +const created = await db.site.create({ data: { activeCommitId: '', bucketId: '', createdByPrincipal: '', databaseId: '', description: '', installationId: '', installationMemberSlug: '', isPublished: '', name: '', resourceId: '', title: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update const updated = await db.site.update({ where: { id: '' }, data: { activeCommitId: '' }, select: { id: true } }).execute(); @@ -2740,6 +2901,7 @@ CRUD operations for SiteDeepLink records. | `fallbackUrl` | String | Yes | | `id` | UUID | No | | `metadata` | JSON | Yes | +| `pageId` | UUID | Yes | | `siteId` | UUID | Yes | | `slug` | String | Yes | | `updatedAt` | Datetime | No | @@ -2749,13 +2911,13 @@ CRUD operations for SiteDeepLink records. ```typescript // List all siteDeepLink records -const items = await db.siteDeepLink.findMany({ select: { appPath: true, createdAt: true, databaseId: true, fallbackUrl: true, id: true, metadata: true, siteId: true, slug: true, updatedAt: true, webPath: true } }).execute(); +const items = await db.siteDeepLink.findMany({ select: { appPath: true, createdAt: true, databaseId: true, fallbackUrl: true, id: true, metadata: true, pageId: true, siteId: true, slug: true, updatedAt: true, webPath: true } }).execute(); // Get one by id -const item = await db.siteDeepLink.findOne({ id: '', select: { appPath: true, createdAt: true, databaseId: true, fallbackUrl: true, id: true, metadata: true, siteId: true, slug: true, updatedAt: true, webPath: true } }).execute(); +const item = await db.siteDeepLink.findOne({ id: '', select: { appPath: true, createdAt: true, databaseId: true, fallbackUrl: true, id: true, metadata: true, pageId: true, siteId: true, slug: true, updatedAt: true, webPath: true } }).execute(); // Create -const created = await db.siteDeepLink.create({ data: { appPath: '', databaseId: '', fallbackUrl: '', metadata: '', siteId: '', slug: '', webPath: '' }, select: { id: true } }).execute(); +const created = await db.siteDeepLink.create({ data: { appPath: '', databaseId: '', fallbackUrl: '', metadata: '', pageId: '', siteId: '', slug: '', webPath: '' }, select: { id: true } }).execute(); // Update const updated = await db.siteDeepLink.update({ where: { id: '' }, data: { appPath: '' }, select: { id: true } }).execute(); @@ -2818,6 +2980,7 @@ CRUD operations for SiteMetadatum records. | `logo` | ConstructiveInternalTypeImage | Yes | | `ogImage` | ConstructiveInternalTypeImage | Yes | | `robots` | String | Yes | +| `robotsSeededFrom` | JSON | Yes | | `siteId` | UUID | Yes | | `storeId` | UUID | Yes | | `title` | String | Yes | @@ -2827,13 +2990,13 @@ CRUD operations for SiteMetadatum records. ```typescript // List all siteMetadatum records -const items = await db.siteMetadatum.findMany({ select: { appleTouchIcon: true, canonicalUrl: true, commitId: true, createdAt: true, databaseId: true, description: true, favicon: true, id: true, logo: true, ogImage: true, robots: true, siteId: true, storeId: true, title: true, updatedAt: true } }).execute(); +const items = await db.siteMetadatum.findMany({ select: { appleTouchIcon: true, canonicalUrl: true, commitId: true, createdAt: true, databaseId: true, description: true, favicon: true, id: true, logo: true, ogImage: true, robots: true, robotsSeededFrom: true, siteId: true, storeId: true, title: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.siteMetadatum.findOne({ id: '', select: { appleTouchIcon: true, canonicalUrl: true, commitId: true, createdAt: true, databaseId: true, description: true, favicon: true, id: true, logo: true, ogImage: true, robots: true, siteId: true, storeId: true, title: true, updatedAt: true } }).execute(); +const item = await db.siteMetadatum.findOne({ id: '', select: { appleTouchIcon: true, canonicalUrl: true, commitId: true, createdAt: true, databaseId: true, description: true, favicon: true, id: true, logo: true, ogImage: true, robots: true, robotsSeededFrom: true, siteId: true, storeId: true, title: true, updatedAt: true } }).execute(); // Create -const created = await db.siteMetadatum.create({ data: { appleTouchIcon: '', canonicalUrl: '', commitId: '', databaseId: '', description: '', favicon: '', logo: '', ogImage: '', robots: '', siteId: '', storeId: '', title: '' }, select: { id: true } }).execute(); +const created = await db.siteMetadatum.create({ data: { appleTouchIcon: '', canonicalUrl: '', commitId: '', databaseId: '', description: '', favicon: '', logo: '', ogImage: '', robots: '', robotsSeededFrom: '', siteId: '', storeId: '', title: '' }, select: { id: true } }).execute(); // Update const updated = await db.siteMetadatum.update({ where: { id: '' }, data: { appleTouchIcon: '' }, select: { id: true } }).execute(); @@ -2879,6 +3042,42 @@ const updated = await db.siteModule.update({ where: { id: '' }, data: { da const deleted = await db.siteModule.delete({ where: { id: '' } }).execute(); ``` +### `db.siteRelease` + +CRUD operations for SiteRelease records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `commitId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `databaseId` | UUID | Yes | +| `id` | UUID | No | +| `manifest` | JSON | Yes | +| `siteId` | UUID | Yes | +| `storeId` | UUID | Yes | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all siteRelease records +const items = await db.siteRelease.findMany({ select: { commitId: true, createdAt: true, databaseId: true, id: true, manifest: true, siteId: true, storeId: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.siteRelease.findOne({ id: '', select: { commitId: true, createdAt: true, databaseId: true, id: true, manifest: true, siteId: true, storeId: true, updatedAt: true } }).execute(); + +// Create +const created = await db.siteRelease.create({ data: { commitId: '', databaseId: '', manifest: '', siteId: '', storeId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.siteRelease.update({ where: { id: '' }, data: { commitId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.siteRelease.delete({ where: { id: '' } }).execute(); +``` + ### `db.siteTheme` CRUD operations for SiteTheme records. @@ -2995,6 +3194,47 @@ const updated = await db.spatialRelation.update({ where: { id: '' }, data: const deleted = await db.spatialRelation.delete({ where: { id: '' } }).execute(); ``` +### `db.sqlAction` + +CRUD operations for SqlAction records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `actionId` | UUID | Yes | +| `actionName` | String | Yes | +| `actorId` | UUID | Yes | +| `content` | String | Yes | +| `createdAt` | Datetime | No | +| `databaseId` | UUID | Yes | +| `deploy` | String | Yes | +| `deps` | String | Yes | +| `id` | Int | No | +| `name` | String | Yes | +| `payload` | JSON | Yes | +| `revert` | String | Yes | +| `verify` | String | Yes | + +**Operations:** + +```typescript +// List all sqlAction records +const items = await db.sqlAction.findMany({ select: { actionId: true, actionName: true, actorId: true, content: true, createdAt: true, databaseId: true, deploy: true, deps: true, id: true, name: true, payload: true, revert: true, verify: true } }).execute(); + +// Get one by id +const item = await db.sqlAction.findOne({ id: '', select: { actionId: true, actionName: true, actorId: true, content: true, createdAt: true, databaseId: true, deploy: true, deps: true, id: true, name: true, payload: true, revert: true, verify: true } }).execute(); + +// Create +const created = await db.sqlAction.create({ data: { actionId: '', actionName: '', actorId: '', content: '', databaseId: '', deploy: '', deps: '', name: '', payload: '', revert: '', verify: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.sqlAction.update({ where: { id: '' }, data: { actionId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.sqlAction.delete({ where: { id: '' } }).execute(); +``` + ### `db.tableBehavior` CRUD operations for TableBehavior records. @@ -3131,25 +3371,31 @@ CRUD operations for Trigger records. | `createdAt` | Datetime | No | | `databaseId` | UUID | Yes | | `event` | String | Yes | +| `events` | String | Yes | +| `forEachRow` | Boolean | Yes | +| `functionId` | UUID | Yes | | `functionName` | String | Yes | | `id` | UUID | No | +| `kind` | String | Yes | | `name` | String | Yes | | `smartTags` | JSON | Yes | | `tableId` | UUID | Yes | | `tags` | String | Yes | +| `timing` | String | Yes | | `updatedAt` | Datetime | No | +| `whenAst` | JSON | Yes | **Operations:** ```typescript // List all trigger records -const items = await db.trigger.findMany({ select: { category: true, createdAt: true, databaseId: true, event: true, functionName: true, id: true, name: true, smartTags: true, tableId: true, tags: true, updatedAt: true } }).execute(); +const items = await db.trigger.findMany({ select: { category: true, createdAt: true, databaseId: true, event: true, events: true, forEachRow: true, functionId: true, functionName: true, id: true, kind: true, name: true, smartTags: true, tableId: true, tags: true, timing: true, updatedAt: true, whenAst: true } }).execute(); // Get one by id -const item = await db.trigger.findOne({ id: '', select: { category: true, createdAt: true, databaseId: true, event: true, functionName: true, id: true, name: true, smartTags: true, tableId: true, tags: true, updatedAt: true } }).execute(); +const item = await db.trigger.findOne({ id: '', select: { category: true, createdAt: true, databaseId: true, event: true, events: true, forEachRow: true, functionId: true, functionName: true, id: true, kind: true, name: true, smartTags: true, tableId: true, tags: true, timing: true, updatedAt: true, whenAst: true } }).execute(); // Create -const created = await db.trigger.create({ data: { category: '', databaseId: '', event: '', functionName: '', name: '', smartTags: '', tableId: '', tags: '' }, select: { id: true } }).execute(); +const created = await db.trigger.create({ data: { category: '', databaseId: '', event: '', events: '', forEachRow: '', functionId: '', functionName: '', kind: '', name: '', smartTags: '', tableId: '', tags: '', timing: '', whenAst: '' }, select: { id: true } }).execute(); // Update const updated = await db.trigger.update({ where: { id: '' }, data: { category: '' }, select: { id: true } }).execute(); @@ -3534,166 +3780,489 @@ applyRegistryDefaults const result = await db.query.applyRegistryDefaults({ data: '', nodeType: '' }).execute(); ``` -### `db.query.resolveDeepLink` +### `db.query.getSitePreviewCommit` -resolveDeepLink +getSitePreviewCommit - **Type:** query - **Arguments:** | Argument | Type | |----------|------| - | `linkSlug` | String | + | `targetName` | String | | `targetSiteId` | UUID | ```typescript -const result = await db.query.resolveDeepLink({ linkSlug: '', targetSiteId: '' }).execute(); +const result = await db.query.getSitePreviewCommit({ targetName: '', targetSiteId: '' }).execute(); ``` -### `db.query.resolveHttpRoute` +### `db.query.getSiteReleaseManifest` -resolveHttpRoute +getSiteReleaseManifest - **Type:** query - **Arguments:** | Argument | Type | |----------|------| - | `requestHost` | String | - | `requestMethod` | String | - | `requestPath` | String | + | `targetCommitId` | UUID | + | `targetSiteId` | UUID | ```typescript -const result = await db.query.resolveHttpRoute({ requestHost: '', requestMethod: '', requestPath: '' }).execute(); +const result = await db.query.getSiteReleaseManifest({ targetCommitId: '', targetSiteId: '' }).execute(); ``` -### `db.query.resolveRoute` +### `db.query.pagePublished` -resolveRoute +pagePublished - **Type:** query - **Arguments:** | Argument | Type | |----------|------| - | `requestHost` | String | - | `requestMethod` | String | - | `requestPath` | String | + | `pageSlug` | String | + | `targetSiteId` | UUID | ```typescript -const result = await db.query.resolveRoute({ requestHost: '', requestMethod: '', requestPath: '' }).execute(); +const result = await db.query.pagePublished({ pageSlug: '', targetSiteId: '' }).execute(); ``` -### `db.query.resolveSiteAppLinks` +### `db.query.platformGetSitePreviewCommit` -resolveSiteAppLinks +platformGetSitePreviewCommit - **Type:** query - **Arguments:** | Argument | Type | |----------|------| + | `targetName` | String | | `targetSiteId` | UUID | ```typescript -const result = await db.query.resolveSiteAppLinks({ targetSiteId: '' }).execute(); +const result = await db.query.platformGetSitePreviewCommit({ targetName: '', targetSiteId: '' }).execute(); ``` -### `db.mutation.applyRls` +### `db.query.platformGetSiteReleaseManifest` -applyRls +platformGetSiteReleaseManifest -- **Type:** mutation +- **Type:** query - **Arguments:** | Argument | Type | |----------|------| - | `input` | ApplyRlsInput (required) | + | `targetCommitId` | UUID | + | `targetSiteId` | UUID | ```typescript -const result = await db.mutation.applyRls({ input: '' }).execute(); +const result = await db.query.platformGetSiteReleaseManifest({ targetCommitId: '', targetSiteId: '' }).execute(); ``` -### `db.mutation.appsInstallApp` +### `db.query.platformPagePublished` -appsInstallApp +platformPagePublished -- **Type:** mutation +- **Type:** query - **Arguments:** | Argument | Type | |----------|------| - | `input` | AppsInstallAppInput (required) | + | `pageSlug` | String | + | `targetSiteId` | UUID | ```typescript -const result = await db.mutation.appsInstallApp({ input: '' }).execute(); +const result = await db.query.platformPagePublished({ pageSlug: '', targetSiteId: '' }).execute(); ``` -### `db.mutation.appsUninstallApp` +### `db.query.platformSitesDeepLinkUrl` -appsUninstallApp +platformSitesDeepLinkUrl -- **Type:** mutation +- **Type:** query - **Arguments:** | Argument | Type | |----------|------| - | `input` | AppsUninstallAppInput (required) | + | `linkSlug` | String | + | `targetSiteId` | UUID | ```typescript -const result = await db.mutation.appsUninstallApp({ input: { targetAppId: '' } }).execute(); +const result = await db.query.platformSitesDeepLinkUrl({ linkSlug: '', targetSiteId: '' }).execute(); ``` -### `db.mutation.appsUpgradeApp` +### `db.query.platformSitesSiteOrigin` -appsUpgradeApp +platformSitesSiteOrigin -- **Type:** mutation +- **Type:** query - **Arguments:** | Argument | Type | |----------|------| - | `input` | AppsUpgradeAppInput (required) | + | `targetSiteId` | UUID | ```typescript -const result = await db.mutation.appsUpgradeApp({ input: { newParams: '', targetAppId: '' } }).execute(); +const result = await db.query.platformSitesSiteOrigin({ targetSiteId: '' }).execute(); ``` -### `db.mutation.domainsAssignSubdomain` +### `db.query.platformVerifySitePreviewToken` -domainsAssignSubdomain +platformVerifySitePreviewToken -- **Type:** mutation +- **Type:** query - **Arguments:** | Argument | Type | |----------|------| - | `input` | DomainsAssignSubdomainInput (required) | + | `siteId` | UUID | + | `token` | String | ```typescript -const result = await db.mutation.domainsAssignSubdomain({ input: { apex: '', label: '', maxAttempts: '' } }).execute(); +const result = await db.query.platformVerifySitePreviewToken({ siteId: '', token: '' }).execute(); ``` -### `db.mutation.platformDomainsAssignSubdomain` +### `db.query.resolveDeepLink` -platformDomainsAssignSubdomain +resolveDeepLink -- **Type:** mutation +- **Type:** query - **Arguments:** | Argument | Type | |----------|------| - | `input` | PlatformDomainsAssignSubdomainInput (required) | + | `linkSlug` | String | + | `targetSiteId` | UUID | ```typescript -const result = await db.mutation.platformDomainsAssignSubdomain({ input: { apex: '', label: '', maxAttempts: '' } }).execute(); +const result = await db.query.resolveDeepLink({ linkSlug: '', targetSiteId: '' }).execute(); ``` -### `db.mutation.platformSitesProvisionStaticSite` +### `db.query.resolveRoute` -platformSitesProvisionStaticSite +resolveRoute -- **Type:** mutation +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `requestHost` | String | + | `requestMethod` | String | + | `requestPath` | String | + +```typescript +const result = await db.query.resolveRoute({ requestHost: '', requestMethod: '', requestPath: '' }).execute(); +``` + +### `db.query.resolveSiteAppLinks` + +resolveSiteAppLinks + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `targetSiteId` | UUID | + +```typescript +const result = await db.query.resolveSiteAppLinks({ targetSiteId: '' }).execute(); +``` + +### `db.query.sitesDeepLinkUrl` + +sitesDeepLinkUrl + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `linkSlug` | String | + | `targetSiteId` | UUID | + +```typescript +const result = await db.query.sitesDeepLinkUrl({ linkSlug: '', targetSiteId: '' }).execute(); +``` + +### `db.query.sitesSiteOrigin` + +sitesSiteOrigin + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `targetSiteId` | UUID | + +```typescript +const result = await db.query.sitesSiteOrigin({ targetSiteId: '' }).execute(); +``` + +### `db.query.verifySitePreviewToken` + +verifySitePreviewToken + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `siteId` | UUID | + | `token` | String | + +```typescript +const result = await db.query.verifySitePreviewToken({ siteId: '', token: '' }).execute(); +``` + +### `db.mutation.acceptDatabaseTransfer` + +acceptDatabaseTransfer + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | AcceptDatabaseTransferInput (required) | + +```typescript +const result = await db.mutation.acceptDatabaseTransfer({ input: { transferId: '' } }).execute(); +``` + +### `db.mutation.applyRls` + +applyRls + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | ApplyRlsInput (required) | + +```typescript +const result = await db.mutation.applyRls({ input: '' }).execute(); +``` + +### `db.mutation.cancelDatabaseTransfer` + +cancelDatabaseTransfer + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | CancelDatabaseTransferInput (required) | + +```typescript +const result = await db.mutation.cancelDatabaseTransfer({ input: { transferId: '' } }).execute(); +``` + +### `db.mutation.deleteSitePreview` + +deleteSitePreview + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | DeleteSitePreviewInput (required) | + +```typescript +const result = await db.mutation.deleteSitePreview({ input: { targetName: '', targetSiteId: '' } }).execute(); +``` + +### `db.mutation.domainsAssignSubdomain` + +domainsAssignSubdomain + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | DomainsAssignSubdomainInput (required) | + +```typescript +const result = await db.mutation.domainsAssignSubdomain({ input: { apex: '', label: '', maxAttempts: '' } }).execute(); +``` + +### `db.mutation.mintSitePreviewToken` + +mintSitePreviewToken + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | MintSitePreviewTokenInput (required) | + +```typescript +const result = await db.mutation.mintSitePreviewToken({ input: { siteId: '', target: '', targetKind: '', ttlSeconds: '' } }).execute(); +``` + +### `db.mutation.pagesInstallPages` + +pagesInstallPages + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | PagesInstallPagesInput (required) | + +```typescript +const result = await db.mutation.pagesInstallPages({ input: { entityId: '', pagesPreset: '', siteId: '' } }).execute(); +``` + +### `db.mutation.platformDeleteSitePreview` + +platformDeleteSitePreview + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | PlatformDeleteSitePreviewInput (required) | + +```typescript +const result = await db.mutation.platformDeleteSitePreview({ input: { targetName: '', targetSiteId: '' } }).execute(); +``` + +### `db.mutation.platformDomainsAssignSubdomain` + +platformDomainsAssignSubdomain + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | PlatformDomainsAssignSubdomainInput (required) | + +```typescript +const result = await db.mutation.platformDomainsAssignSubdomain({ input: { apex: '', label: '', maxAttempts: '' } }).execute(); +``` + +### `db.mutation.platformMintSitePreviewToken` + +platformMintSitePreviewToken + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | PlatformMintSitePreviewTokenInput (required) | + +```typescript +const result = await db.mutation.platformMintSitePreviewToken({ input: { siteId: '', target: '', targetKind: '', ttlSeconds: '' } }).execute(); +``` + +### `db.mutation.platformPagesInstallPages` + +platformPagesInstallPages + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | PlatformPagesInstallPagesInput (required) | + +```typescript +const result = await db.mutation.platformPagesInstallPages({ input: { entityId: '', pagesPreset: '', siteId: '' } }).execute(); +``` + +### `db.mutation.platformProvisionSitePreview` + +platformProvisionSitePreview + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | PlatformProvisionSitePreviewInput (required) | + +```typescript +const result = await db.mutation.platformProvisionSitePreview({ input: { apex: '', commitId: '', name: '', siteId: '' } }).execute(); +``` + +### `db.mutation.platformSetSitePreview` + +platformSetSitePreview + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | PlatformSetSitePreviewInput (required) | + +```typescript +const result = await db.mutation.platformSetSitePreview({ input: { targetCommitId: '', targetName: '', targetSiteId: '' } }).execute(); +``` + +### `db.mutation.platformSiteMetadataInstallRobots` + +platformSiteMetadataInstallRobots + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | PlatformSiteMetadataInstallRobotsInput (required) | + +```typescript +const result = await db.mutation.platformSiteMetadataInstallRobots({ input: { entityId: '', robotsPreset: '', siteId: '' } }).execute(); +``` + +### `db.mutation.platformSitesInstallContentPreset` + +platformSitesInstallContentPreset + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | PlatformSitesInstallContentPresetInput (required) | + +```typescript +const result = await db.mutation.platformSitesInstallContentPreset({ input: { entityId: '', presetKind: '', presetSlug: '', siteId: '' } }).execute(); +``` + +### `db.mutation.platformSitesInstallMantra` + +platformSitesInstallMantra + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | PlatformSitesInstallMantraInput (required) | + +```typescript +const result = await db.mutation.platformSitesInstallMantra({ input: { entityId: '', routePreset: '', siteId: '' } }).execute(); +``` + +### `db.mutation.platformSitesProvisionStaticSite` + +platformSitesProvisionStaticSite + +- **Type:** mutation - **Arguments:** | Argument | Type | @@ -3706,10 +4275,11 @@ const result = await db.mutation.platformSitesProvisionStaticSite({ input: '', ownerId: '' } }).execute(); ``` +### `db.mutation.provisionSitePreview` + +provisionSitePreview + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | ProvisionSitePreviewInput (required) | + +```typescript +const result = await db.mutation.provisionSitePreview({ input: { apex: '', commitId: '', name: '', siteId: '' } }).execute(); +``` + +### `db.mutation.rejectDatabaseTransfer` + +rejectDatabaseTransfer + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | RejectDatabaseTransferInput (required) | + +```typescript +const result = await db.mutation.rejectDatabaseTransfer({ input: { transferId: '' } }).execute(); +``` + ### `db.mutation.requestDatabase` 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. +Pass exactly one of preset_slug or modules. Pass organization_id to have the organization own the database from the start (the caller must be an owner of that organization); the requesting user is still the identity bootstrapped into the new database. Omit it for a personal database. 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); + SELECT * FROM metaschema_public.request_database('team_app', 'example.com', preset_slug := 'full', organization_id := '00000000-0000-0000-0000-000000000000'::uuid); - **Type:** mutation - **Arguments:** @@ -3758,6 +4359,66 @@ setFieldOrder const result = await db.mutation.setFieldOrder({ input: { fieldIds: '' } }).execute(); ``` +### `db.mutation.setSitePreview` + +setSitePreview + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SetSitePreviewInput (required) | + +```typescript +const result = await db.mutation.setSitePreview({ input: { targetCommitId: '', targetName: '', targetSiteId: '' } }).execute(); +``` + +### `db.mutation.siteMetadataInstallRobots` + +siteMetadataInstallRobots + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SiteMetadataInstallRobotsInput (required) | + +```typescript +const result = await db.mutation.siteMetadataInstallRobots({ input: { entityId: '', robotsPreset: '', siteId: '' } }).execute(); +``` + +### `db.mutation.sitesInstallContentPreset` + +sitesInstallContentPreset + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SitesInstallContentPresetInput (required) | + +```typescript +const result = await db.mutation.sitesInstallContentPreset({ input: { entityId: '', presetKind: '', presetSlug: '', siteId: '' } }).execute(); +``` + +### `db.mutation.sitesInstallMantra` + +sitesInstallMantra + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SitesInstallMantraInput (required) | + +```typescript +const result = await db.mutation.sitesInstallMantra({ input: { entityId: '', routePreset: '', siteId: '' } }).execute(); +``` + ### `db.mutation.sitesProvisionStaticSite` sitesProvisionStaticSite diff --git a/sdk/constructive-sdk/src/api/orm/index.ts b/sdk/constructive-sdk/src/api/orm/index.ts index 1e0236a966..fb9f4c5b7e 100644 --- a/sdk/constructive-sdk/src/api/orm/index.ts +++ b/sdk/constructive-sdk/src/api/orm/index.ts @@ -8,8 +8,7 @@ import type { OrmClientConfig } from './client'; import { ApiModel } from './models/api'; import { ApiSchemaModel } from './models/apiSchema'; import { ApiSettingModel } from './models/apiSetting'; -import { AppComponentModel } from './models/appComponent'; -import { AppModel } from './models/app'; +import { AstMigrationModel } from './models/astMigration'; import { CheckConstraintModel } from './models/checkConstraint'; import { CompositeTypeModel } from './models/compositeType'; import { CorsSettingModel } from './models/corsSetting'; @@ -34,8 +33,9 @@ import { ForeignKeyConstraintBehaviorModel } from './models/foreignKeyConstraint import { ForeignKeyConstraintModel } from './models/foreignKeyConstraint'; import { FullTextSearchModel } from './models/fullTextSearch'; import { FunctionModel } from './models/function'; +import { GetSitePreviewsRecordModel } from './models/getSitePreviewsRecord'; import { HostnameBindingModel } from './models/hostnameBinding'; -import { HttpRouteModel } from './models/httpRoute'; +import { IdentityProviderRegistryModel } from './models/identityProviderRegistry'; import { IndexModel } from './models/index'; import { ManagedDomainModel } from './models/managedDomain'; import { NodeTypeRegistryModel } from './models/nodeTypeRegistry'; @@ -51,6 +51,7 @@ import { PlatformDomainVerificationModel } from './models/platformDomainVerifica import { PlatformEmailIdentityModel } from './models/platformEmailIdentity'; import { PlatformEmailProviderAccountModel } from './models/platformEmailProviderAccount'; import { PlatformEmailSiteIdentityModel } from './models/platformEmailSiteIdentity'; +import { PlatformGetSitePreviewsRecordModel } from './models/platformGetSitePreviewsRecord'; import { PlatformManagedDomainModel } from './models/platformManagedDomain'; import { PlatformPageModel } from './models/platformPage'; import { PlatformSiteAppLinkModel } from './models/platformSiteAppLink'; @@ -59,11 +60,13 @@ import { PlatformSiteDeepLinkModel } from './models/platformSiteDeepLink'; import { PlatformSiteErrorPageModel } from './models/platformSiteErrorPage'; import { PlatformSiteMetadatumModel } from './models/platformSiteMetadatum'; import { PlatformSiteModuleModel } from './models/platformSiteModule'; +import { PlatformSiteReleaseModel } from './models/platformSiteRelease'; import { PlatformSiteThemeModel } from './models/platformSiteTheme'; import { PlatformSiteWebConfigModel } from './models/platformSiteWebConfig'; import { PolicyModel } from './models/policy'; import { PrimaryKeyConstraintModel } from './models/primaryKeyConstraint'; import { PubkeySettingModel } from './models/pubkeySetting'; +import { RedirectModel } from './models/redirect'; import { RlsSettingModel } from './models/rlsSetting'; import { RouteBindingModel } from './models/routeBinding'; import { RouteModel } from './models/route'; @@ -75,9 +78,11 @@ import { SiteDeepLinkModel } from './models/siteDeepLink'; import { SiteErrorPageModel } from './models/siteErrorPage'; import { SiteMetadatumModel } from './models/siteMetadatum'; import { SiteModuleModel } from './models/siteModule'; +import { SiteReleaseModel } from './models/siteRelease'; import { SiteThemeModel } from './models/siteTheme'; import { SiteWebConfigModel } from './models/siteWebConfig'; import { SpatialRelationModel } from './models/spatialRelation'; +import { SqlActionModel } from './models/sqlAction'; import { TableBehaviorModel } from './models/tableBehavior'; import { TableModel } from './models/table'; import { TableGrantModel } from './models/tableGrant'; @@ -129,8 +134,7 @@ export function createClient(config: OrmClientConfig) { api: new ApiModel(client), apiSchema: new ApiSchemaModel(client), apiSetting: new ApiSettingModel(client), - appComponent: new AppComponentModel(client), - app: new AppModel(client), + astMigration: new AstMigrationModel(client), checkConstraint: new CheckConstraintModel(client), compositeType: new CompositeTypeModel(client), corsSetting: new CorsSettingModel(client), @@ -155,8 +159,9 @@ export function createClient(config: OrmClientConfig) { foreignKeyConstraint: new ForeignKeyConstraintModel(client), fullTextSearch: new FullTextSearchModel(client), function: new FunctionModel(client), + getSitePreviewsRecord: new GetSitePreviewsRecordModel(client), hostnameBinding: new HostnameBindingModel(client), - httpRoute: new HttpRouteModel(client), + identityProviderRegistry: new IdentityProviderRegistryModel(client), index: new IndexModel(client), managedDomain: new ManagedDomainModel(client), nodeTypeRegistry: new NodeTypeRegistryModel(client), @@ -172,6 +177,7 @@ export function createClient(config: OrmClientConfig) { platformEmailIdentity: new PlatformEmailIdentityModel(client), platformEmailProviderAccount: new PlatformEmailProviderAccountModel(client), platformEmailSiteIdentity: new PlatformEmailSiteIdentityModel(client), + platformGetSitePreviewsRecord: new PlatformGetSitePreviewsRecordModel(client), platformManagedDomain: new PlatformManagedDomainModel(client), platformPage: new PlatformPageModel(client), platformSiteAppLink: new PlatformSiteAppLinkModel(client), @@ -180,11 +186,13 @@ export function createClient(config: OrmClientConfig) { platformSiteErrorPage: new PlatformSiteErrorPageModel(client), platformSiteMetadatum: new PlatformSiteMetadatumModel(client), platformSiteModule: new PlatformSiteModuleModel(client), + platformSiteRelease: new PlatformSiteReleaseModel(client), platformSiteTheme: new PlatformSiteThemeModel(client), platformSiteWebConfig: new PlatformSiteWebConfigModel(client), policy: new PolicyModel(client), primaryKeyConstraint: new PrimaryKeyConstraintModel(client), pubkeySetting: new PubkeySettingModel(client), + redirect: new RedirectModel(client), rlsSetting: new RlsSettingModel(client), routeBinding: new RouteBindingModel(client), route: new RouteModel(client), @@ -196,9 +204,11 @@ export function createClient(config: OrmClientConfig) { siteErrorPage: new SiteErrorPageModel(client), siteMetadatum: new SiteMetadatumModel(client), siteModule: new SiteModuleModel(client), + siteRelease: new SiteReleaseModel(client), siteTheme: new SiteThemeModel(client), siteWebConfig: new SiteWebConfigModel(client), spatialRelation: new SpatialRelationModel(client), + sqlAction: new SqlActionModel(client), tableBehavior: new TableBehaviorModel(client), table: new TableModel(client), tableGrant: new TableGrantModel(client), diff --git a/sdk/constructive-sdk/src/api/orm/input-types.ts b/sdk/constructive-sdk/src/api/orm/input-types.ts index 554d99df9d..258cd246b2 100644 --- a/sdk/constructive-sdk/src/api/orm/input-types.ts +++ b/sdk/constructive-sdk/src/api/orm/input-types.ts @@ -285,6 +285,8 @@ export interface ApiSetting { enableDirectUploads?: boolean | null; /** Override: enable internationalization plugin (NULL = inherit from database_settings) */ enableI18N?: boolean | null; + /** Override: enable GraphQL schema introspection queries (NULL = inherit from database_settings) */ + enableIntrospection?: boolean | null; /** Override: enable LLM/AI integration features (NULL = inherit from database_settings) */ enableLlm?: boolean | null; /** Override: enable ltree hierarchical data type (NULL = inherit from database_settings) */ @@ -300,53 +302,46 @@ export interface ApiSetting { /** Override: enable unified search (NULL = inherit from database_settings) */ enableSearch?: boolean | null; id: string; + /** Override: idle-in-transaction timeout in milliseconds (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + idleInTransactionTimeoutMs?: string | null; + /** Override: lock acquisition timeout in milliseconds (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + lockTimeoutMs?: string | null; + /** Override: maximum concurrently executing GraphQL requests (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + maxConcurrentRequests?: number | null; + /** Override: maximum page size for connection queries (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + maxPageSize?: number | null; + /** Override: maximum GraphQL query cost (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + maxQueryCost?: number | null; + /** Override: maximum GraphQL query depth (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + maxQueryDepth?: number | null; + /** Override: maximum time in milliseconds a request may wait for a concurrency slot (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + maxQueueWaitMs?: number | null; + /** Override: maximum request body size in bytes (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + maxRequestBytes?: number | null; /** Extensible JSON for additional per-API settings that do not have dedicated columns */ options?: Record | null; + /** Override: rate-limit burst allowance (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + rateLimitBurst?: number | null; + /** Override: request rate limit in requests per minute (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + rateLimitRpm?: number | null; /** Override: GraphQL statement timeout in milliseconds (NULL = inherit from database_settings). Clamped by the plan cap at read time. */ statementTimeoutMs?: string | null; updatedAt?: string | null; } -/** App component rows binding an app to typed catalog rows (exactly one typed component reference per row) */ -export interface AppComponent { - /** App this component belongs to */ - appId?: string | null; - /** Typed catalog api row of the component surface; must be owner-matched or visible cross-scope */ - componentApiId?: string | null; - /** Typed catalog domain row of the component surface; must be owner-matched or visible cross-scope */ - componentDomainId?: string | null; - /** Typed catalog resource installation row of the component release; must be owner-matched or visible cross-scope */ - componentInstallationId?: string | null; - /** Typed catalog site row of the component surface; must be owner-matched or visible cross-scope */ - componentSiteId?: string | null; - /** Which kind of catalog row this component binds (api, site, domain, installation) */ - componentType?: string | null; - /** Component-specific configuration inside this app */ - config?: Record | null; - createdAt?: string | null; - /** Database that owns this resource (database-scoped isolation) */ - databaseId?: string | null; - id: string; - updatedAt?: string | null; -} -/** App aggregates: thin identity rows whose components are global catalog references */ -export interface App { - /** Module-specific configuration for this app */ - config?: Record | null; +export interface AstMigration { + actionId?: string | null; + actionName?: string | null; + actorId?: string | null; createdAt?: string | null; - /** Database that owns this resource (database-scoped isolation) */ databaseId?: string | null; - /** Human-readable app description */ - description?: string | null; - id: string; - /** Whether other scopes may see and reference this app */ - isPublished?: boolean | null; - /** Owner-local app name */ + deploy?: Record | null; + deploys?: string | null; + id: number; name?: string | null; - /** App lifecycle status: active, suspended, archived */ - status?: string | null; - /** Human-readable app title */ - title?: string | null; - updatedAt?: string | null; + payload?: Record | null; + requires?: string[] | null; + revert?: Record | null; + verify?: Record | null; } export interface CheckConstraint { category?: ObjectCategory | null; @@ -407,6 +402,8 @@ export interface DatabaseSetting { databaseId?: string | null; /** Enable aggregate queries (sum, avg, min, max, etc.) in the GraphQL API */ enableAggregates?: boolean | null; + /** Enable billing: financial provider actions (customer/subscription/usage sync, overdue sweep) are refused while false. Activation gate for the billing rollout — flipped only after billing:doctor passes. */ + enableBilling?: boolean | null; /** Enable bulk mutation operations (insert, upsert, update, delete) in the GraphQL API */ enableBulk?: boolean | null; /** Enable connection filter (where argument) in the GraphQL API */ @@ -415,6 +412,8 @@ export interface DatabaseSetting { enableDirectUploads?: boolean | null; /** Enable internationalization plugin (localeStrings field, translation table discovery) in the GraphQL API */ enableI18N?: boolean | null; + /** Enable GraphQL schema introspection queries in the GraphQL API. A tenant may only ever lower a bound, so the stored default is the permissive end: turning introspection off is the opt-in. */ + enableIntrospection?: boolean | null; /** Enable LLM/AI integration features in the GraphQL API */ enableLlm?: boolean | null; /** Enable ltree hierarchical data type support in the GraphQL API */ @@ -430,10 +429,30 @@ export interface DatabaseSetting { /** Enable unified search (tsvector, BM25, pg_trgm, pgvector) in the GraphQL API */ enableSearch?: boolean | null; id: string; + /** Scope-wide default idle-in-transaction timeout in milliseconds; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. */ + idleInTransactionTimeoutMs?: string | null; /** Key/value pairs for selecting and filtering settings */ labels?: Record | null; + /** Scope-wide default lock acquisition timeout in milliseconds; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. */ + lockTimeoutMs?: string | null; + /** Scope-wide default maximum concurrently executing GraphQL requests; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. */ + maxConcurrentRequests?: number | null; + /** Scope-wide default maximum page size for connection queries; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. */ + maxPageSize?: number | null; + /** Scope-wide default maximum GraphQL query cost; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. */ + maxQueryCost?: number | null; + /** Scope-wide default maximum GraphQL query depth; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. */ + maxQueryDepth?: number | null; + /** Scope-wide default maximum time in milliseconds a request may wait for a concurrency slot; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. */ + maxQueueWaitMs?: number | null; + /** Scope-wide default maximum request body size in bytes; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. */ + maxRequestBytes?: number | null; /** Extensible JSON for additional settings that do not have dedicated columns */ options?: Record | null; + /** Scope-wide default rate-limit burst allowance; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. */ + rateLimitBurst?: number | null; + /** Scope-wide default request rate limit in requests per minute; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. */ + rateLimitRpm?: number | null; /** Scope-wide default GraphQL statement timeout in milliseconds; NULL inherits the platform default. Clamped by the plan cap at read time. */ statementTimeoutMs?: string | null; updatedAt?: string | null; @@ -467,6 +486,7 @@ export interface Derive { createdAt?: string | null; databaseId?: string | null; id: string; + includeGrants?: boolean | null; includeMutations?: boolean | null; kind?: string | null; policyPrefix?: string | null; @@ -479,6 +499,7 @@ export interface Domain { /** Module-specific configuration for this hostname */ config?: Record | null; createdAt?: string | null; + createdByPrincipal?: string | null; /** Database that owns this resource (database-scoped isolation) */ databaseId?: string | null; /** Lowercase fully-qualified hostname; wildcards use the *.parent form */ @@ -499,6 +520,7 @@ export interface Domain { /** Certificate lifecycle state for this hostname */ tlsStatus?: string | null; updatedAt?: string | null; + updatedByPrincipal?: string | null; /** Ownership verification state of this hostname */ verificationStatus?: string | null; /** When ownership verification last succeeded */ @@ -506,7 +528,7 @@ export interface Domain { } /** Audit trail of domain lifecycle events */ export interface DomainEvent { - /** User who triggered this event, if any */ + /** User who triggered this event; NULL only when no human actor was proven */ actorId?: string | null; createdAt?: string | null; /** Database that owns this resource (database-scoped isolation) */ @@ -777,10 +799,27 @@ export interface FullTextSearch { weights?: string[] | null; } export interface Function { + apiExposed?: boolean | null; + arguments?: Record | null; + bodyAst?: Record | null; + category?: ObjectCategory | null; + data?: Record | null; databaseId?: string | null; + functionType?: string | null; id: string; + isStrict?: boolean | null; + kind?: string | null; name?: string | null; + returns?: Record | null; schemaId?: string | null; + securityInvoker?: boolean | null; + smartTags?: Record | null; + tags?: string[] | null; + volatility?: string | null; +} +export interface GetSitePreviewsRecord { + commitId?: string | null; + name?: string | null; } /** Compiled hostname index maintained by domain sync triggers; read only through the resolver */ export interface HostnameBinding { @@ -804,29 +843,15 @@ export interface HostnameBinding { /** Ownership verification state compiled from the domain row */ verificationStatus?: string | null; } -/** Request-time HTTP routing authority: registered domain plus path prefix and optional method to a typed target */ -export interface HttpRoute { - createdAt?: string | null; - createdBy?: string | null; - /** Database that owns this resource (database-scoped isolation) */ - databaseId?: string | null; - /** Registered host in the scoped routing domains table */ - domainId?: string | null; - id: string; - /** Whether the resolver may select this route */ - isActive?: boolean | null; - /** Optional uppercase HTTP method; NULL matches every method */ - method?: string | null; - /** Normalized request path prefix; longest matching prefix wins */ - path?: string | null; - /** Tie-break precedence after path length and method specificity */ - priority?: number | null; - /** Target row of the type named by target_kind; existence enforced by trigger */ - targetId?: string | null; - /** Discriminator selecting the type of target_id */ - targetKind?: string | null; - updatedAt?: string | null; - updatedBy?: string | null; +export interface IdentityProviderRegistry { + authorizationUrl?: string | null; + displayName?: string | null; + issuerUrl?: string | null; + kind?: string | null; + scopes?: string[] | null; + slug?: string | null; + tokenUrl?: string | null; + userinfoUrl?: string | null; } export interface Index { accessMethod?: string | null; @@ -839,6 +864,7 @@ export interface Index { indexParams?: Record | null; isUnique?: boolean | null; name?: string | null; + nullsNotDistinct?: boolean | null; opClasses?: string[] | null; options?: Record | null; smartTags?: Record | null; @@ -856,6 +882,7 @@ export interface ManagedDomain { /** Certificate issuance state for this managed hostname */ certStatus?: string | null; createdAt?: string | null; + createdByPrincipal?: string | null; /** Database that owns this resource (database-scoped isolation) */ databaseId?: string | null; /** Lowercase fully-qualified managed hostname; wildcards use the *.parent form */ @@ -868,6 +895,7 @@ export interface ManagedDomain { /** TLS provisioning state for this managed hostname */ tlsStatus?: string | null; updatedAt?: string | null; + updatedByPrincipal?: string | null; /** DNS ownership verification state of this managed hostname */ verificationStatus?: string | null; /** When ownership verification last succeeded */ @@ -894,6 +922,8 @@ export interface Page { databaseId?: string | null; /** Unique page identifier */ id: string; + /** Provenance of a seeded page: the content preset (kind, slug, catalog commit_id) it was installed from, or NULL when authored directly */ + seededFrom?: Record | null; /** Site surface this page belongs to; each site owns its own infra store and pages live at path [page, slug] within it */ siteId?: string | null; /** Page slug (unique per site) */ @@ -961,6 +991,8 @@ export interface PlatformApiSetting { enableDirectUploads?: boolean | null; /** Override: enable internationalization plugin (NULL = inherit from database_settings) */ enableI18N?: boolean | null; + /** Override: enable GraphQL schema introspection queries (NULL = inherit from database_settings) */ + enableIntrospection?: boolean | null; /** Override: enable LLM/AI integration features (NULL = inherit from database_settings) */ enableLlm?: boolean | null; /** Override: enable ltree hierarchical data type (NULL = inherit from database_settings) */ @@ -976,8 +1008,28 @@ export interface PlatformApiSetting { /** Override: enable unified search (NULL = inherit from database_settings) */ enableSearch?: boolean | null; id: string; + /** Override: idle-in-transaction timeout in milliseconds (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + idleInTransactionTimeoutMs?: string | null; + /** Override: lock acquisition timeout in milliseconds (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + lockTimeoutMs?: string | null; + /** Override: maximum concurrently executing GraphQL requests (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + maxConcurrentRequests?: number | null; + /** Override: maximum page size for connection queries (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + maxPageSize?: number | null; + /** Override: maximum GraphQL query cost (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + maxQueryCost?: number | null; + /** Override: maximum GraphQL query depth (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + maxQueryDepth?: number | null; + /** Override: maximum time in milliseconds a request may wait for a concurrency slot (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + maxQueueWaitMs?: number | null; + /** Override: maximum request body size in bytes (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + maxRequestBytes?: number | null; /** Extensible JSON for additional per-API settings that do not have dedicated columns */ options?: Record | null; + /** Override: rate-limit burst allowance (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + rateLimitBurst?: number | null; + /** Override: request rate limit in requests per minute (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + rateLimitRpm?: number | null; /** Override: GraphQL statement timeout in milliseconds (NULL = inherit from database_settings). Clamped by the plan cap at read time. */ statementTimeoutMs?: string | null; updatedAt?: string | null; @@ -997,6 +1049,7 @@ export interface PlatformDomain { /** Module-specific configuration for this hostname */ config?: Record | null; createdAt?: string | null; + createdByPrincipal?: string | null; /** Lowercase fully-qualified hostname; wildcards use the *.parent form */ hostname?: string | null; id: string; @@ -1015,6 +1068,7 @@ export interface PlatformDomain { /** Certificate lifecycle state for this hostname */ tlsStatus?: string | null; updatedAt?: string | null; + updatedByPrincipal?: string | null; /** Ownership verification state of this hostname */ verificationStatus?: string | null; /** When ownership verification last succeeded */ @@ -1022,7 +1076,7 @@ export interface PlatformDomain { } /** Audit trail of domain lifecycle events */ export interface PlatformDomainEvent { - /** User who triggered this event, if any */ + /** User who triggered this event; NULL only when no human actor was proven */ actorId?: string | null; createdAt?: string | null; /** Scoped domain this event belongs to */ @@ -1134,6 +1188,10 @@ export interface PlatformEmailSiteIdentity { siteId?: string | null; updatedAt?: string | null; } +export interface PlatformGetSitePreviewsRecord { + commitId?: string | null; + name?: 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 */ @@ -1143,6 +1201,7 @@ export interface PlatformManagedDomain { /** Certificate issuance state for this managed hostname */ certStatus?: string | null; createdAt?: string | null; + createdByPrincipal?: string | null; /** Lowercase fully-qualified managed hostname; wildcards use the *.parent form */ domain?: string | null; id: string; @@ -1153,6 +1212,7 @@ export interface PlatformManagedDomain { /** TLS provisioning state for this managed hostname */ tlsStatus?: string | null; updatedAt?: string | null; + updatedByPrincipal?: string | null; /** DNS ownership verification state of this managed hostname */ verificationStatus?: string | null; /** When ownership verification last succeeded */ @@ -1168,6 +1228,8 @@ export interface PlatformPage { createdAt?: string | null; /** Unique page identifier */ id: string; + /** Provenance of a seeded page: the content preset (kind, slug, catalog commit_id) it was installed from, or NULL when authored directly */ + seededFrom?: Record | null; /** Site surface this page belongs to; each site owns its own infra store and pages live at path [page, slug] within it */ siteId?: string | null; /** Page slug (unique per site) */ @@ -1177,24 +1239,16 @@ export interface PlatformPage { /** Timestamp of last modification */ updatedAt?: string | null; } -/** Native-app deep-link association metadata for a site surface (feeds AASA / assetlinks.json generation) */ +/** Per-host native-app association for a site surface: which app-owned store identity this host serves, and the path patterns it claims (joined with the store identity to render AASA / assetlinks.json) */ export interface PlatformSiteAppLink { - /** App identifier: iOS bundle id or Android package name */ - appIdentifier?: string | null; + /** App-owned store identity this association serves (app_store_identities row in this scope's app plane; the association carries no store facts of its own) */ + appStoreIdentityId?: string | null; createdAt?: string | null; id: string; /** Path patterns this association applies to (AASA paths / Android intent-filter paths) */ pathComponents?: string[] | null; - /** Target platform for this association (ios, android) */ - platform?: string | null; - /** Android signing certificate SHA-256 fingerprints for assetlinks.json */ - sha256CertFingerprints?: string[] | null; /** Site surface this app-link association belongs to */ siteId?: string | null; - /** App/Play store URL for this app (used by install banners and fallbacks) */ - storeUrl?: string | null; - /** Apple Developer team id (iOS); combined with app_identifier to form the AASA appID */ - teamId?: string | null; updatedAt?: string | null; /** Whether to emit the webcredentials service (iOS shared-web-credentials / password autofill) */ webcredentials?: boolean | null; @@ -1203,13 +1257,14 @@ export interface PlatformSiteAppLink { export interface PlatformSite { /** Infra-store commit pinned as the live page content for this site (manual publish pointer; NULL = nothing published yet) */ activeCommitId?: string | null; - /** Catalog bucket that backs this site (static content store; exactly one of bucket_id/resource_id) */ + /** Bucket that backs this site (static content store; exactly one of bucket_id/resource_id) */ bucketId?: string | null; createdAt?: string | null; + createdByPrincipal?: string | null; /** Human-readable site description */ description?: string | null; id: string; - /** Catalog resource_installation (release) that backs this site; the servable member is named by installation_member_slug (exactly one of bucket_id/resource_id/installation_id) */ + /** Resource installation (release) that backs this site; the servable member is named by installation_member_slug (exactly one of bucket_id/resource_id/installation_id) */ installationId?: string | null; /** Slug of the release member (a Service resource) that serves this site; set iff installation_id is set */ installationMemberSlug?: string | null; @@ -1217,11 +1272,12 @@ export interface PlatformSite { isPublished?: boolean | null; /** Owner-local site surface name */ name?: string | null; - /** Catalog resource/service that backs this site (SSR/app Service pinned to one concrete resource row; exactly one of bucket_id/resource_id/installation_id) */ + /** Resource/service that backs this site (SSR/app Service pinned to one concrete resource row; exactly one of bucket_id/resource_id/installation_id) */ resourceId?: string | null; /** Human-readable site title */ title?: string | null; updatedAt?: string | null; + updatedByPrincipal?: string | null; } /** Named, retargetable deep links owned by a site surface (served at the deep-link path prefix; app interception via site_app_links) */ export interface PlatformSiteDeepLink { @@ -1233,6 +1289,8 @@ export interface PlatformSiteDeepLink { id: string; /** Additional link metadata (campaign/UTM parameters, escape hatch) */ metadata?: Record | null; + /** Page this link's web_path resolves to (soft reference into the pages module; NULL for external or non-page targets) */ + pageId?: string | null; /** Site surface this deep link belongs to (the hostname plane that serves it) */ siteId?: string | null; /** Link name unique per site; addressed at the deep-link path prefix (e.g. /l/) */ @@ -1273,6 +1331,8 @@ export interface PlatformSiteMetadatum { ogImage?: ConstructiveInternalTypeImage | null; /** robots meta directive (e.g. index,follow / noindex,nofollow) */ robots?: string | null; + /** Provenance of the robots value: the content preset (kind, slug, catalog commit_id) an install applied, or NULL when it was authored directly */ + robotsSeededFrom?: Record | null; /** Site surface this metadata belongs to */ siteId?: string | null; /** Infra Merkle store holding this row's history (stamped by the versioned trigger) */ @@ -1297,6 +1357,20 @@ export interface PlatformSiteModule { siteId?: string | null; updatedAt?: string | null; } +/** Immutable static-site release manifest head, versioned in the site-owned merkle store */ +export interface PlatformSiteRelease { + /** Infra store commit for the current content (stamped by the versioned trigger on every write) */ + commitId?: string | null; + createdAt?: string | null; + id: string; + /** Release manifest: {"files":{"":{"hash":"<64-hex sha256>","content_type":"...","size":123}},"file_count":N,"total_bytes":N} */ + manifest?: Record | null; + /** Site surface this release manifest belongs to */ + siteId?: string | null; + /** Infra Merkle store holding this row's history (stamped by the versioned trigger) */ + storeId?: string | null; + updatedAt?: string | null; +} /** Theme (colors, fonts, design tokens) for a site surface */ export interface PlatformSiteTheme { /** Infra store commit for the current content (stamped by the versioned trigger on every write) */ @@ -1333,6 +1407,8 @@ export interface PlatformSiteWebConfig { } export interface Policy { category?: ObjectCategory | null; + /** Columns of this policy's table that its expression filters on. Stamped when the policy is derived onto a companion table, so a consumer needing those columns (e.g. a chunking worker copying them from the parent row) reads them here instead of re-walking the node type's parameter schema. */ + columnRefs?: string[] | null; createdAt?: string | null; data?: Record | null; databaseId?: string | null; @@ -1390,6 +1466,26 @@ export interface PubkeySetting { /** Field name used to identify the user in crypto auth functions */ userField?: string | null; } +/** Redirect targets a route can point at; the edge answers with a redirect status instead of a backend */ +export interface Redirect { + createdAt?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; + id: string; + /** Owner-local name for this redirect */ + name?: string | null; + /** Whether the incoming path is appended to the destination */ + preservePath?: boolean | null; + /** Whether the incoming query string is carried to the destination */ + preserveQuery?: boolean | null; + /** HTTP redirect status the edge answers with (301, 302, 307 or 308) */ + statusCode?: number | null; + /** Destination hostname the edge redirects to */ + toHost?: string | null; + /** Destination path; NULL keeps the incoming path (see preserve_path) */ + toPath?: string | null; + updatedAt?: string | null; +} /** RLS module runtime configuration; typed references to the authenticate/current_role function plumbing */ export interface RlsSetting { /** Reference to the authenticate function (FK to metaschema_public.function) */ @@ -1427,12 +1523,16 @@ export interface RouteBinding { path?: string | null; /** Priority compiled from the source route */ priority?: number | null; + /** Site whose surface the source route serves; NULL when it serves no site */ + servingSiteId?: string | null; /** Api catalog row the source route targets */ targetApiId?: string | null; /** Bucket catalog row the source route targets */ targetBucketId?: string | null; /** Function catalog row the source route targets */ targetFunctionId?: string | null; + /** Redirect catalog row the source route targets */ + targetRedirectId?: string | null; /** Resource catalog row (a Service resource) the source route targets */ targetServiceId?: string | null; /** Site catalog row the source route targets */ @@ -1442,6 +1542,8 @@ export interface RouteBinding { } /** Routes binding a domain hostname and path to a typed catalog target */ export interface Route { + /** Whether this route answers callers with no identity. Requires the target function to declare anonymous_callable; default false = an identity is required */ + anonymous?: boolean | null; /** Route metadata; target configuration is read live from the typed catalog, never copied here */ config?: Record | null; createdAt?: string | null; @@ -1456,17 +1558,23 @@ export interface Route { method?: string | null; /** Path prefix this route matches; must begin with / and carry no trailing slash */ path?: string | null; + /** The site preview this route serves; NULL serves the site's published release */ + previewRef?: string | null; /** Higher priority wins between otherwise-equal matches */ priority?: number | null; - /** Api catalog row this route targets; must be owner-matched or visible cross-scope */ + /** Site whose surface this route serves; the serving lane renders as this site. NULL when the route serves no site */ + servingSiteId?: string | null; + /** Api surface this route targets; must be this scope's own api */ targetApiId?: string | null; - /** Bucket catalog row this route targets; must be a public bucket that is owner-matched or visible cross-scope */ + /** Bucket this route targets; must be a public bucket in this scope's own storage plane */ targetBucketId?: string | null; - /** Function catalog row this route targets; must be owner-matched or visible cross-scope */ + /** Function this route targets; must be this scope's own function */ targetFunctionId?: string | null; - /** Resource catalog row (a Service resource) this route targets; must be owner-matched or visible cross-scope */ + /** Redirect this route targets; the edge answers with a redirect status instead of proxying a backend */ + targetRedirectId?: string | null; + /** Resource (a Service resource) this route targets; must be this scope's own resource */ targetServiceId?: string | null; - /** Site catalog row this route targets; must be owner-matched or visible cross-scope */ + /** Site surface this route targets; must be this scope's own site */ targetSiteId?: string | null; updatedAt?: string | null; } @@ -1493,26 +1601,18 @@ export interface SchemaGrant { schemaId?: string | null; updatedAt?: string | null; } -/** Native-app deep-link association metadata for a site surface (feeds AASA / assetlinks.json generation) */ +/** Per-host native-app association for a site surface: which app-owned store identity this host serves, and the path patterns it claims (joined with the store identity to render AASA / assetlinks.json) */ export interface SiteAppLink { - /** App identifier: iOS bundle id or Android package name */ - appIdentifier?: string | null; + /** App-owned store identity this association serves (app_store_identities row in this scope's app plane; the association carries no store facts of its own) */ + appStoreIdentityId?: string | null; createdAt?: string | null; /** Database that owns this resource (database-scoped isolation) */ databaseId?: string | null; id: string; /** Path patterns this association applies to (AASA paths / Android intent-filter paths) */ pathComponents?: string[] | null; - /** Target platform for this association (ios, android) */ - platform?: string | null; - /** Android signing certificate SHA-256 fingerprints for assetlinks.json */ - sha256CertFingerprints?: string[] | null; /** Site surface this app-link association belongs to */ siteId?: string | null; - /** App/Play store URL for this app (used by install banners and fallbacks) */ - storeUrl?: string | null; - /** Apple Developer team id (iOS); combined with app_identifier to form the AASA appID */ - teamId?: string | null; updatedAt?: string | null; /** Whether to emit the webcredentials service (iOS shared-web-credentials / password autofill) */ webcredentials?: boolean | null; @@ -1521,15 +1621,16 @@ export interface SiteAppLink { export interface Site { /** Infra-store commit pinned as the live page content for this site (manual publish pointer; NULL = nothing published yet) */ activeCommitId?: string | null; - /** Catalog bucket that backs this site (static content store; exactly one of bucket_id/resource_id) */ + /** Bucket that backs this site (static content store; exactly one of bucket_id/resource_id) */ bucketId?: string | null; createdAt?: string | null; + createdByPrincipal?: string | null; /** Database that owns this resource (database-scoped isolation) */ databaseId?: string | null; /** Human-readable site description */ description?: string | null; id: string; - /** Catalog resource_installation (release) that backs this site; the servable member is named by installation_member_slug (exactly one of bucket_id/resource_id/installation_id) */ + /** Resource installation (release) that backs this site; the servable member is named by installation_member_slug (exactly one of bucket_id/resource_id/installation_id) */ installationId?: string | null; /** Slug of the release member (a Service resource) that serves this site; set iff installation_id is set */ installationMemberSlug?: string | null; @@ -1537,11 +1638,12 @@ export interface Site { isPublished?: boolean | null; /** Owner-local site surface name */ name?: string | null; - /** Catalog resource/service that backs this site (SSR/app Service pinned to one concrete resource row; exactly one of bucket_id/resource_id/installation_id) */ + /** Resource/service that backs this site (SSR/app Service pinned to one concrete resource row; exactly one of bucket_id/resource_id/installation_id) */ resourceId?: string | null; /** Human-readable site title */ title?: string | null; updatedAt?: string | null; + updatedByPrincipal?: string | null; } /** Named, retargetable deep links owned by a site surface (served at the deep-link path prefix; app interception via site_app_links) */ export interface SiteDeepLink { @@ -1555,6 +1657,8 @@ export interface SiteDeepLink { id: string; /** Additional link metadata (campaign/UTM parameters, escape hatch) */ metadata?: Record | null; + /** Page this link's web_path resolves to (soft reference into the pages module; NULL for external or non-page targets) */ + pageId?: string | null; /** Site surface this deep link belongs to (the hostname plane that serves it) */ siteId?: string | null; /** Link name unique per site; addressed at the deep-link path prefix (e.g. /l/) */ @@ -1599,6 +1703,8 @@ export interface SiteMetadatum { ogImage?: ConstructiveInternalTypeImage | null; /** robots meta directive (e.g. index,follow / noindex,nofollow) */ robots?: string | null; + /** Provenance of the robots value: the content preset (kind, slug, catalog commit_id) an install applied, or NULL when it was authored directly */ + robotsSeededFrom?: Record | null; /** Site surface this metadata belongs to */ siteId?: string | null; /** Infra Merkle store holding this row's history (stamped by the versioned trigger) */ @@ -1625,6 +1731,22 @@ export interface SiteModule { siteId?: string | null; updatedAt?: string | null; } +/** Immutable static-site release manifest head, versioned in the site-owned merkle store */ +export interface SiteRelease { + /** Infra store commit for the current content (stamped by the versioned trigger on every write) */ + commitId?: string | null; + createdAt?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; + id: string; + /** Release manifest: {"files":{"":{"hash":"<64-hex sha256>","content_type":"...","size":123}},"file_count":N,"total_bytes":N} */ + manifest?: Record | null; + /** Site surface this release manifest belongs to */ + siteId?: string | null; + /** Infra Merkle store holding this row's history (stamped by the versioned trigger) */ + storeId?: string | null; + updatedAt?: string | null; +} /** Theme (colors, fonts, design tokens) for a site surface */ export interface SiteTheme { /** Infra store commit for the current content (stamped by the versioned trigger on every write) */ @@ -1678,6 +1800,21 @@ export interface SpatialRelation { tags?: string[] | null; updatedAt?: string | null; } +export interface SqlAction { + actionId?: string | null; + actionName?: string | null; + actorId?: string | null; + content?: string | null; + createdAt?: string | null; + databaseId?: string | null; + deploy?: string | null; + deps?: string[] | null; + id: number; + name?: string | null; + payload?: Record | null; + revert?: string | null; + verify?: string | null; +} export interface TableBehavior { createdAt?: string | null; databaseId?: string | null; @@ -1730,13 +1867,19 @@ export interface Trigger { createdAt?: string | null; databaseId?: string | null; event?: string | null; + events?: string[] | null; + forEachRow?: boolean | null; + functionId?: string | null; functionName?: string | null; id: string; + kind?: string | null; name?: string | null; smartTags?: Record | null; tableId?: string | null; tags?: string[] | null; + timing?: string | null; updatedAt?: string | null; + whenAst?: Record | null; } export interface TriggerFunction { code?: string | null; @@ -1894,12 +2037,7 @@ export interface ApiSchemaRelations { export interface ApiSettingRelations { api?: Api | null; } -export interface AppComponentRelations { - app?: App | null; -} -export interface AppRelations { - appComponents?: ConnectionResult; -} +export interface AstMigrationRelations {} export interface CheckConstraintRelations { database?: Database | null; table?: Table | null; @@ -1963,7 +2101,6 @@ export interface DeriveRelations { export interface DomainRelations { domainEvents?: ConnectionResult; domainVerifications?: ConnectionResult; - httpRoutes?: ConnectionResult; routes?: ConnectionResult; } export interface DomainEventRelations { @@ -2036,11 +2173,11 @@ export interface FullTextSearchRelations { export interface FunctionRelations { database?: Database | null; schema?: Schema | null; + triggers?: ConnectionResult; } +export interface GetSitePreviewsRecordRelations {} export interface HostnameBindingRelations {} -export interface HttpRouteRelations { - domain?: Domain | null; -} +export interface IdentityProviderRegistryRelations {} export interface IndexRelations { database?: Database | null; table?: Table | null; @@ -2097,6 +2234,7 @@ export interface PlatformEmailSiteIdentityRelations { emailIdentity?: PlatformEmailIdentity | null; site?: PlatformSite | null; } +export interface PlatformGetSitePreviewsRecordRelations {} export interface PlatformManagedDomainRelations { platformDomainEventsByManagedDomainId?: ConnectionResult; platformDomainVerificationsByManagedDomainId?: ConnectionResult; @@ -2110,6 +2248,7 @@ export interface PlatformSiteAppLinkRelations { export interface PlatformSiteRelations { platformEmailSiteIdentityBySiteId?: PlatformEmailSiteIdentity | null; platformSiteMetadatumBySiteId?: PlatformSiteMetadatum | null; + platformSiteReleaseBySiteId?: PlatformSiteRelease | null; platformSiteWebConfigBySiteId?: PlatformSiteWebConfig | null; platformPagesBySiteId?: ConnectionResult; platformSiteAppLinksBySiteId?: ConnectionResult; @@ -2130,6 +2269,9 @@ export interface PlatformSiteMetadatumRelations { export interface PlatformSiteModuleRelations { site?: PlatformSite | null; } +export interface PlatformSiteReleaseRelations { + site?: PlatformSite | null; +} export interface PlatformSiteThemeRelations { site?: PlatformSite | null; } @@ -2153,6 +2295,9 @@ export interface PubkeySettingRelations { signInWithChallengeFunction?: Function | null; signUpWithKeyFunction?: Function | null; } +export interface RedirectRelations { + routesByTargetRedirectId?: ConnectionResult; +} export interface RlsSettingRelations { authenticateFunction?: Function | null; authenticateSchema?: Schema | null; @@ -2166,6 +2311,10 @@ export interface RlsSettingRelations { export interface RouteBindingRelations {} export interface RouteRelations { domain?: Domain | null; + servingSite?: Site | null; + targetApi?: Api | null; + targetRedirect?: Redirect | null; + targetSite?: Site | null; } export interface SchemaRelations { database?: Database | null; @@ -2190,8 +2339,10 @@ export interface SiteAppLinkRelations { export interface SiteRelations { emailSiteIdentity?: EmailSiteIdentity | null; siteMetadatum?: SiteMetadatum | null; + siteRelease?: SiteRelease | null; siteWebConfig?: SiteWebConfig | null; pages?: ConnectionResult; + routesByServingSiteId?: ConnectionResult; siteAppLinks?: ConnectionResult; siteDeepLinks?: ConnectionResult; siteErrorPages?: ConnectionResult; @@ -2210,6 +2361,9 @@ export interface SiteMetadatumRelations { export interface SiteModuleRelations { site?: Site | null; } +export interface SiteReleaseRelations { + site?: Site | null; +} export interface SiteThemeRelations { site?: Site | null; } @@ -2223,6 +2377,7 @@ export interface SpatialRelationRelations { refTable?: Table | null; table?: Table | null; } +export interface SqlActionRelations {} export interface TableBehaviorRelations { database?: Database | null; table?: Table | null; @@ -2261,6 +2416,7 @@ export interface TableGrantRelations { } export interface TriggerRelations { database?: Database | null; + function?: Function | null; table?: Table | null; } export interface TriggerFunctionRelations { @@ -2316,8 +2472,7 @@ export interface WebauthnSettingRelations { export type ApiWithRelations = Api & ApiRelations; export type ApiSchemaWithRelations = ApiSchema & ApiSchemaRelations; export type ApiSettingWithRelations = ApiSetting & ApiSettingRelations; -export type AppComponentWithRelations = AppComponent & AppComponentRelations; -export type AppWithRelations = App & AppRelations; +export type AstMigrationWithRelations = AstMigration & AstMigrationRelations; export type CheckConstraintWithRelations = CheckConstraint & CheckConstraintRelations; export type CompositeTypeWithRelations = CompositeType & CompositeTypeRelations; export type CorsSettingWithRelations = CorsSetting & CorsSettingRelations; @@ -2345,8 +2500,11 @@ export type ForeignKeyConstraintWithRelations = ForeignKeyConstraint & ForeignKeyConstraintRelations; export type FullTextSearchWithRelations = FullTextSearch & FullTextSearchRelations; export type FunctionWithRelations = Function & FunctionRelations; +export type GetSitePreviewsRecordWithRelations = GetSitePreviewsRecord & + GetSitePreviewsRecordRelations; export type HostnameBindingWithRelations = HostnameBinding & HostnameBindingRelations; -export type HttpRouteWithRelations = HttpRoute & HttpRouteRelations; +export type IdentityProviderRegistryWithRelations = IdentityProviderRegistry & + IdentityProviderRegistryRelations; export type IndexWithRelations = Index & IndexRelations; export type ManagedDomainWithRelations = ManagedDomain & ManagedDomainRelations; export type NodeTypeRegistryWithRelations = NodeTypeRegistry & NodeTypeRegistryRelations; @@ -2366,6 +2524,8 @@ export type PlatformEmailProviderAccountWithRelations = PlatformEmailProviderAcc PlatformEmailProviderAccountRelations; export type PlatformEmailSiteIdentityWithRelations = PlatformEmailSiteIdentity & PlatformEmailSiteIdentityRelations; +export type PlatformGetSitePreviewsRecordWithRelations = PlatformGetSitePreviewsRecord & + PlatformGetSitePreviewsRecordRelations; export type PlatformManagedDomainWithRelations = PlatformManagedDomain & PlatformManagedDomainRelations; export type PlatformPageWithRelations = PlatformPage & PlatformPageRelations; @@ -2378,6 +2538,7 @@ export type PlatformSiteErrorPageWithRelations = PlatformSiteErrorPage & export type PlatformSiteMetadatumWithRelations = PlatformSiteMetadatum & PlatformSiteMetadatumRelations; export type PlatformSiteModuleWithRelations = PlatformSiteModule & PlatformSiteModuleRelations; +export type PlatformSiteReleaseWithRelations = PlatformSiteRelease & PlatformSiteReleaseRelations; export type PlatformSiteThemeWithRelations = PlatformSiteTheme & PlatformSiteThemeRelations; export type PlatformSiteWebConfigWithRelations = PlatformSiteWebConfig & PlatformSiteWebConfigRelations; @@ -2385,6 +2546,7 @@ export type PolicyWithRelations = Policy & PolicyRelations; export type PrimaryKeyConstraintWithRelations = PrimaryKeyConstraint & PrimaryKeyConstraintRelations; export type PubkeySettingWithRelations = PubkeySetting & PubkeySettingRelations; +export type RedirectWithRelations = Redirect & RedirectRelations; export type RlsSettingWithRelations = RlsSetting & RlsSettingRelations; export type RouteBindingWithRelations = RouteBinding & RouteBindingRelations; export type RouteWithRelations = Route & RouteRelations; @@ -2396,9 +2558,11 @@ export type SiteDeepLinkWithRelations = SiteDeepLink & SiteDeepLinkRelations; export type SiteErrorPageWithRelations = SiteErrorPage & SiteErrorPageRelations; export type SiteMetadatumWithRelations = SiteMetadatum & SiteMetadatumRelations; export type SiteModuleWithRelations = SiteModule & SiteModuleRelations; +export type SiteReleaseWithRelations = SiteRelease & SiteReleaseRelations; export type SiteThemeWithRelations = SiteTheme & SiteThemeRelations; export type SiteWebConfigWithRelations = SiteWebConfig & SiteWebConfigRelations; export type SpatialRelationWithRelations = SpatialRelation & SpatialRelationRelations; +export type SqlActionWithRelations = SqlAction & SqlActionRelations; export type TableBehaviorWithRelations = TableBehavior & TableBehaviorRelations; export type TableWithRelations = Table & TableRelations; export type TableGrantWithRelations = TableGrant & TableGrantRelations; @@ -2464,6 +2628,7 @@ export type ApiSettingSelect = { enableConnectionFilter?: boolean; enableDirectUploads?: boolean; enableI18N?: boolean; + enableIntrospection?: boolean; enableLlm?: boolean; enableLtree?: boolean; enableManyToMany?: boolean; @@ -2472,46 +2637,37 @@ export type ApiSettingSelect = { enableRealtime?: boolean; enableSearch?: boolean; id?: boolean; + idleInTransactionTimeoutMs?: boolean; + lockTimeoutMs?: boolean; + maxConcurrentRequests?: boolean; + maxPageSize?: boolean; + maxQueryCost?: boolean; + maxQueryDepth?: boolean; + maxQueueWaitMs?: boolean; + maxRequestBytes?: boolean; options?: boolean; + rateLimitBurst?: boolean; + rateLimitRpm?: boolean; statementTimeoutMs?: boolean; updatedAt?: boolean; api?: { select: ApiSelect; }; }; -export type AppComponentSelect = { - appId?: boolean; - componentApiId?: boolean; - componentDomainId?: boolean; - componentInstallationId?: boolean; - componentSiteId?: boolean; - componentType?: boolean; - config?: boolean; - createdAt?: boolean; - databaseId?: boolean; - id?: boolean; - updatedAt?: boolean; - app?: { - select: AppSelect; - }; -}; -export type AppSelect = { - config?: boolean; +export type AstMigrationSelect = { + actionId?: boolean; + actionName?: boolean; + actorId?: boolean; createdAt?: boolean; databaseId?: boolean; - description?: boolean; + deploy?: boolean; + deploys?: boolean; id?: boolean; - isPublished?: boolean; name?: boolean; - status?: boolean; - title?: boolean; - updatedAt?: boolean; - appComponents?: { - select: AppComponentSelect; - first?: number; - filter?: AppComponentFilter; - orderBy?: AppComponentOrderBy[]; - }; + payload?: boolean; + requires?: boolean; + revert?: boolean; + verify?: boolean; }; export type CheckConstraintSelect = { category?: boolean; @@ -2783,10 +2939,12 @@ export type DatabaseSettingSelect = { createdAt?: boolean; databaseId?: boolean; enableAggregates?: boolean; + enableBilling?: boolean; enableBulk?: boolean; enableConnectionFilter?: boolean; enableDirectUploads?: boolean; enableI18N?: boolean; + enableIntrospection?: boolean; enableLlm?: boolean; enableLtree?: boolean; enableManyToMany?: boolean; @@ -2795,8 +2953,18 @@ export type DatabaseSettingSelect = { enableRealtime?: boolean; enableSearch?: boolean; id?: boolean; + idleInTransactionTimeoutMs?: boolean; labels?: boolean; + lockTimeoutMs?: boolean; + maxConcurrentRequests?: boolean; + maxPageSize?: boolean; + maxQueryCost?: boolean; + maxQueryDepth?: boolean; + maxQueueWaitMs?: boolean; + maxRequestBytes?: boolean; options?: boolean; + rateLimitBurst?: boolean; + rateLimitRpm?: boolean; statementTimeoutMs?: boolean; updatedAt?: boolean; }; @@ -2838,6 +3006,7 @@ export type DeriveSelect = { createdAt?: boolean; databaseId?: boolean; id?: boolean; + includeGrants?: boolean; includeMutations?: boolean; kind?: boolean; policyPrefix?: boolean; @@ -2857,6 +3026,7 @@ export type DeriveSelect = { export type DomainSelect = { config?: boolean; createdAt?: boolean; + createdByPrincipal?: boolean; databaseId?: boolean; hostname?: boolean; id?: boolean; @@ -2868,6 +3038,7 @@ export type DomainSelect = { tlsSecretName?: boolean; tlsStatus?: boolean; updatedAt?: boolean; + updatedByPrincipal?: boolean; verificationStatus?: boolean; verifiedAt?: boolean; domainEvents?: { @@ -2882,12 +3053,6 @@ export type DomainSelect = { filter?: DomainVerificationFilter; orderBy?: DomainVerificationOrderBy[]; }; - httpRoutes?: { - select: HttpRouteSelect; - first?: number; - filter?: HttpRouteFilter; - orderBy?: HttpRouteOrderBy[]; - }; routes?: { select: RouteSelect; first?: number; @@ -3260,16 +3425,39 @@ export type FullTextSearchSelect = { }; }; export type FunctionSelect = { + apiExposed?: boolean; + arguments?: boolean; + bodyAst?: boolean; + category?: boolean; + data?: boolean; databaseId?: boolean; + functionType?: boolean; id?: boolean; + isStrict?: boolean; + kind?: boolean; name?: boolean; + returns?: boolean; schemaId?: boolean; + securityInvoker?: boolean; + smartTags?: boolean; + tags?: boolean; + volatility?: boolean; database?: { select: DatabaseSelect; }; schema?: { select: SchemaSelect; }; + triggers?: { + select: TriggerSelect; + first?: number; + filter?: TriggerFilter; + orderBy?: TriggerOrderBy[]; + }; +}; +export type GetSitePreviewsRecordSelect = { + commitId?: boolean; + name?: boolean; }; export type HostnameBindingSelect = { domainId?: boolean; @@ -3283,23 +3471,15 @@ export type HostnameBindingSelect = { updatedAt?: boolean; verificationStatus?: boolean; }; -export type HttpRouteSelect = { - createdAt?: boolean; - createdBy?: boolean; - databaseId?: boolean; - domainId?: boolean; - id?: boolean; - isActive?: boolean; - method?: boolean; - path?: boolean; - priority?: boolean; - targetId?: boolean; - targetKind?: boolean; - updatedAt?: boolean; - updatedBy?: boolean; - domain?: { - select: DomainSelect; - }; +export type IdentityProviderRegistrySelect = { + authorizationUrl?: boolean; + displayName?: boolean; + issuerUrl?: boolean; + kind?: boolean; + scopes?: boolean; + slug?: boolean; + tokenUrl?: boolean; + userinfoUrl?: boolean; }; export type IndexSelect = { accessMethod?: boolean; @@ -3312,6 +3492,7 @@ export type IndexSelect = { indexParams?: boolean; isUnique?: boolean; name?: boolean; + nullsNotDistinct?: boolean; opClasses?: boolean; options?: boolean; smartTags?: boolean; @@ -3331,6 +3512,7 @@ export type ManagedDomainSelect = { annotations?: boolean; certStatus?: boolean; createdAt?: boolean; + createdByPrincipal?: boolean; databaseId?: boolean; domain?: boolean; id?: boolean; @@ -3338,6 +3520,7 @@ export type ManagedDomainSelect = { tlsReadyAt?: boolean; tlsStatus?: boolean; updatedAt?: boolean; + updatedByPrincipal?: boolean; verificationStatus?: boolean; verifiedAt?: boolean; domainEvents?: { @@ -3368,6 +3551,7 @@ export type PageSelect = { createdAt?: boolean; databaseId?: boolean; id?: boolean; + seededFrom?: boolean; siteId?: boolean; slug?: boolean; storeId?: boolean; @@ -3444,6 +3628,7 @@ export type PlatformApiSettingSelect = { enableConnectionFilter?: boolean; enableDirectUploads?: boolean; enableI18N?: boolean; + enableIntrospection?: boolean; enableLlm?: boolean; enableLtree?: boolean; enableManyToMany?: boolean; @@ -3452,7 +3637,17 @@ export type PlatformApiSettingSelect = { enableRealtime?: boolean; enableSearch?: boolean; id?: boolean; + idleInTransactionTimeoutMs?: boolean; + lockTimeoutMs?: boolean; + maxConcurrentRequests?: boolean; + maxPageSize?: boolean; + maxQueryCost?: boolean; + maxQueryDepth?: boolean; + maxQueueWaitMs?: boolean; + maxRequestBytes?: boolean; options?: boolean; + rateLimitBurst?: boolean; + rateLimitRpm?: boolean; statementTimeoutMs?: boolean; updatedAt?: boolean; api?: { @@ -3472,6 +3667,7 @@ export type PlatformCorsSettingSelect = { export type PlatformDomainSelect = { config?: boolean; createdAt?: boolean; + createdByPrincipal?: boolean; hostname?: boolean; id?: boolean; isPublished?: boolean; @@ -3482,6 +3678,7 @@ export type PlatformDomainSelect = { tlsSecretName?: boolean; tlsStatus?: boolean; updatedAt?: boolean; + updatedByPrincipal?: boolean; verificationStatus?: boolean; verifiedAt?: boolean; platformDomainEventsByDomainId?: { @@ -3600,17 +3797,23 @@ export type PlatformEmailSiteIdentitySelect = { select: PlatformSiteSelect; }; }; +export type PlatformGetSitePreviewsRecordSelect = { + commitId?: boolean; + name?: boolean; +}; export type PlatformManagedDomainSelect = { allowPublicUsage?: boolean; annotations?: boolean; certStatus?: boolean; createdAt?: boolean; + createdByPrincipal?: boolean; domain?: boolean; id?: boolean; isWildcard?: boolean; tlsReadyAt?: boolean; tlsStatus?: boolean; updatedAt?: boolean; + updatedByPrincipal?: boolean; verificationStatus?: boolean; verifiedAt?: boolean; platformDomainEventsByManagedDomainId?: { @@ -3631,6 +3834,7 @@ export type PlatformPageSelect = { content?: boolean; createdAt?: boolean; id?: boolean; + seededFrom?: boolean; siteId?: boolean; slug?: boolean; storeId?: boolean; @@ -3640,15 +3844,11 @@ export type PlatformPageSelect = { }; }; export type PlatformSiteAppLinkSelect = { - appIdentifier?: boolean; + appStoreIdentityId?: boolean; createdAt?: boolean; id?: boolean; pathComponents?: boolean; - platform?: boolean; - sha256CertFingerprints?: boolean; siteId?: boolean; - storeUrl?: boolean; - teamId?: boolean; updatedAt?: boolean; webcredentials?: boolean; site?: { @@ -3659,6 +3859,7 @@ export type PlatformSiteSelect = { activeCommitId?: boolean; bucketId?: boolean; createdAt?: boolean; + createdByPrincipal?: boolean; description?: boolean; id?: boolean; installationId?: boolean; @@ -3668,12 +3869,16 @@ export type PlatformSiteSelect = { resourceId?: boolean; title?: boolean; updatedAt?: boolean; + updatedByPrincipal?: boolean; platformEmailSiteIdentityBySiteId?: { select: PlatformEmailSiteIdentitySelect; }; platformSiteMetadatumBySiteId?: { select: PlatformSiteMetadatumSelect; }; + platformSiteReleaseBySiteId?: { + select: PlatformSiteReleaseSelect; + }; platformSiteWebConfigBySiteId?: { select: PlatformSiteWebConfigSelect; }; @@ -3720,6 +3925,7 @@ export type PlatformSiteDeepLinkSelect = { fallbackUrl?: boolean; id?: boolean; metadata?: boolean; + pageId?: boolean; siteId?: boolean; slug?: boolean; updatedAt?: boolean; @@ -3750,6 +3956,7 @@ export type PlatformSiteMetadatumSelect = { logo?: boolean; ogImage?: boolean; robots?: boolean; + robotsSeededFrom?: boolean; siteId?: boolean; storeId?: boolean; title?: boolean; @@ -3771,6 +3978,18 @@ export type PlatformSiteModuleSelect = { select: PlatformSiteSelect; }; }; +export type PlatformSiteReleaseSelect = { + commitId?: boolean; + createdAt?: boolean; + id?: boolean; + manifest?: boolean; + siteId?: boolean; + storeId?: boolean; + updatedAt?: boolean; + site?: { + select: PlatformSiteSelect; + }; +}; export type PlatformSiteThemeSelect = { commitId?: boolean; createdAt?: boolean; @@ -3800,6 +4019,7 @@ export type PlatformSiteWebConfigSelect = { }; export type PolicySelect = { category?: boolean; + columnRefs?: boolean; createdAt?: boolean; data?: boolean; databaseId?: boolean; @@ -3880,6 +4100,24 @@ export type PubkeySettingSelect = { select: FunctionSelect; }; }; +export type RedirectSelect = { + createdAt?: boolean; + databaseId?: boolean; + id?: boolean; + name?: boolean; + preservePath?: boolean; + preserveQuery?: boolean; + statusCode?: boolean; + toHost?: boolean; + toPath?: boolean; + updatedAt?: boolean; + routesByTargetRedirectId?: { + select: RouteSelect; + first?: number; + filter?: RouteFilter; + orderBy?: RouteOrderBy[]; + }; +}; export type RlsSettingSelect = { authenticateFunctionId?: boolean; authenticateSchemaId?: boolean; @@ -3925,14 +4163,17 @@ export type RouteBindingSelect = { method?: boolean; path?: boolean; priority?: boolean; + servingSiteId?: boolean; targetApiId?: boolean; targetBucketId?: boolean; targetFunctionId?: boolean; + targetRedirectId?: boolean; targetServiceId?: boolean; targetSiteId?: boolean; updatedAt?: boolean; }; export type RouteSelect = { + anonymous?: boolean; config?: boolean; createdAt?: boolean; databaseId?: boolean; @@ -3941,16 +4182,31 @@ export type RouteSelect = { isActive?: boolean; method?: boolean; path?: boolean; + previewRef?: boolean; priority?: boolean; + servingSiteId?: boolean; targetApiId?: boolean; targetBucketId?: boolean; targetFunctionId?: boolean; + targetRedirectId?: boolean; targetServiceId?: boolean; targetSiteId?: boolean; updatedAt?: boolean; domain?: { select: DomainSelect; }; + servingSite?: { + select: SiteSelect; + }; + targetApi?: { + select: ApiSelect; + }; + targetRedirect?: { + select: RedirectSelect; + }; + targetSite?: { + select: SiteSelect; + }; }; export type SchemaSelect = { apiExposure?: boolean; @@ -4045,16 +4301,12 @@ export type SchemaGrantSelect = { }; }; export type SiteAppLinkSelect = { - appIdentifier?: boolean; + appStoreIdentityId?: boolean; createdAt?: boolean; databaseId?: boolean; id?: boolean; pathComponents?: boolean; - platform?: boolean; - sha256CertFingerprints?: boolean; siteId?: boolean; - storeUrl?: boolean; - teamId?: boolean; updatedAt?: boolean; webcredentials?: boolean; site?: { @@ -4065,6 +4317,7 @@ export type SiteSelect = { activeCommitId?: boolean; bucketId?: boolean; createdAt?: boolean; + createdByPrincipal?: boolean; databaseId?: boolean; description?: boolean; id?: boolean; @@ -4075,12 +4328,16 @@ export type SiteSelect = { resourceId?: boolean; title?: boolean; updatedAt?: boolean; + updatedByPrincipal?: boolean; emailSiteIdentity?: { select: EmailSiteIdentitySelect; }; siteMetadatum?: { select: SiteMetadatumSelect; }; + siteRelease?: { + select: SiteReleaseSelect; + }; siteWebConfig?: { select: SiteWebConfigSelect; }; @@ -4090,6 +4347,12 @@ export type SiteSelect = { filter?: PageFilter; orderBy?: PageOrderBy[]; }; + routesByServingSiteId?: { + select: RouteSelect; + first?: number; + filter?: RouteFilter; + orderBy?: RouteOrderBy[]; + }; siteAppLinks?: { select: SiteAppLinkSelect; first?: number; @@ -4128,6 +4391,7 @@ export type SiteDeepLinkSelect = { fallbackUrl?: boolean; id?: boolean; metadata?: boolean; + pageId?: boolean; siteId?: boolean; slug?: boolean; updatedAt?: boolean; @@ -4160,6 +4424,7 @@ export type SiteMetadatumSelect = { logo?: boolean; ogImage?: boolean; robots?: boolean; + robotsSeededFrom?: boolean; siteId?: boolean; storeId?: boolean; title?: boolean; @@ -4182,6 +4447,19 @@ export type SiteModuleSelect = { select: SiteSelect; }; }; +export type SiteReleaseSelect = { + commitId?: boolean; + createdAt?: boolean; + databaseId?: boolean; + id?: boolean; + manifest?: boolean; + siteId?: boolean; + storeId?: boolean; + updatedAt?: boolean; + site?: { + select: SiteSelect; + }; +}; export type SiteThemeSelect = { commitId?: boolean; createdAt?: boolean; @@ -4241,6 +4519,21 @@ export type SpatialRelationSelect = { select: TableSelect; }; }; +export type SqlActionSelect = { + actionId?: boolean; + actionName?: boolean; + actorId?: boolean; + content?: boolean; + createdAt?: boolean; + databaseId?: boolean; + deploy?: boolean; + deps?: boolean; + id?: boolean; + name?: boolean; + payload?: boolean; + revert?: boolean; + verify?: boolean; +}; export type TableBehaviorSelect = { createdAt?: boolean; databaseId?: boolean; @@ -4448,16 +4741,25 @@ export type TriggerSelect = { createdAt?: boolean; databaseId?: boolean; event?: boolean; + events?: boolean; + forEachRow?: boolean; + functionId?: boolean; functionName?: boolean; id?: boolean; + kind?: boolean; name?: boolean; smartTags?: boolean; tableId?: boolean; tags?: boolean; + timing?: boolean; updatedAt?: boolean; + whenAst?: boolean; database?: { select: DatabaseSelect; }; + function?: { + select: FunctionSelect; + }; table?: { select: TableSelect; }; @@ -4765,6 +5067,8 @@ export interface ApiSettingFilter { enableDirectUploads?: BooleanFilter; /** Filter by the object’s `enableI18N` field. */ enableI18N?: BooleanFilter; + /** Filter by the object’s `enableIntrospection` field. */ + enableIntrospection?: BooleanFilter; /** Filter by the object’s `enableLlm` field. */ enableLlm?: BooleanFilter; /** Filter by the object’s `enableLtree` field. */ @@ -4781,80 +5085,70 @@ export interface ApiSettingFilter { enableSearch?: BooleanFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `idleInTransactionTimeoutMs` field. */ + idleInTransactionTimeoutMs?: BigIntFilter; + /** Filter by the object’s `lockTimeoutMs` field. */ + lockTimeoutMs?: BigIntFilter; + /** Filter by the object’s `maxConcurrentRequests` field. */ + maxConcurrentRequests?: IntFilter; + /** Filter by the object’s `maxPageSize` field. */ + maxPageSize?: IntFilter; + /** Filter by the object’s `maxQueryCost` field. */ + maxQueryCost?: IntFilter; + /** Filter by the object’s `maxQueryDepth` field. */ + maxQueryDepth?: IntFilter; + /** Filter by the object’s `maxQueueWaitMs` field. */ + maxQueueWaitMs?: IntFilter; + /** Filter by the object’s `maxRequestBytes` field. */ + maxRequestBytes?: IntFilter; /** Negates the expression. */ not?: ApiSettingFilter; /** Filter by the object’s `options` field. */ options?: JSONFilter; /** Checks for any expressions in this list. */ or?: ApiSettingFilter[]; + /** Filter by the object’s `rateLimitBurst` field. */ + rateLimitBurst?: IntFilter; + /** Filter by the object’s `rateLimitRpm` field. */ + rateLimitRpm?: IntFilter; /** Filter by the object’s `statementTimeoutMs` field. */ statementTimeoutMs?: BigIntFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } -export interface AppComponentFilter { - /** Checks for all expressions in this list. */ - and?: AppComponentFilter[]; - /** Filter by the object’s `app` relation. */ - app?: AppFilter; - /** Filter by the object’s `appId` field. */ - appId?: UUIDFilter; - /** Filter by the object’s `componentApiId` field. */ - componentApiId?: UUIDFilter; - /** Filter by the object’s `componentDomainId` field. */ - componentDomainId?: UUIDFilter; - /** Filter by the object’s `componentInstallationId` field. */ - componentInstallationId?: UUIDFilter; - /** Filter by the object’s `componentSiteId` field. */ - componentSiteId?: UUIDFilter; - /** Filter by the object’s `componentType` field. */ - componentType?: StringFilter; - /** Filter by the object’s `config` field. */ - config?: 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?: AppComponentFilter; - /** Checks for any expressions in this list. */ - or?: AppComponentFilter[]; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -export interface AppFilter { +export interface AstMigrationFilter { + /** Filter by the object’s `actionId` field. */ + actionId?: UUIDFilter; + /** Filter by the object’s `actionName` field. */ + actionName?: StringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: AppFilter[]; - /** Filter by the object’s `appComponents` relation. */ - appComponents?: AppToManyAppComponentFilter; - /** `appComponents` exist. */ - appComponentsExist?: boolean; - /** Filter by the object’s `config` field. */ - config?: JSONFilter; + and?: AstMigrationFilter[]; /** 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 `deploy` field. */ + deploy?: JSONFilter; + /** Filter by the object’s `deploys` field. */ + deploys?: StringFilter; /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isPublished` field. */ - isPublished?: BooleanFilter; + id?: IntFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; /** Negates the expression. */ - not?: AppFilter; + not?: AstMigrationFilter; /** Checks for any expressions in this list. */ - or?: AppFilter[]; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `title` field. */ - title?: StringFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; + or?: AstMigrationFilter[]; + /** Filter by the object’s `payload` field. */ + payload?: JSONFilter; + /** Filter by the object’s `requires` field. */ + requires?: StringListFilter; + /** Filter by the object’s `revert` field. */ + revert?: JSONFilter; + /** Filter by the object’s `verify` field. */ + verify?: JSONFilter; } export interface CheckConstraintFilter { /** Checks for all expressions in this list. */ @@ -5123,6 +5417,8 @@ export interface DatabaseSettingFilter { databaseId?: UUIDFilter; /** Filter by the object’s `enableAggregates` field. */ enableAggregates?: BooleanFilter; + /** Filter by the object’s `enableBilling` field. */ + enableBilling?: BooleanFilter; /** Filter by the object’s `enableBulk` field. */ enableBulk?: BooleanFilter; /** Filter by the object’s `enableConnectionFilter` field. */ @@ -5131,6 +5427,8 @@ export interface DatabaseSettingFilter { enableDirectUploads?: BooleanFilter; /** Filter by the object’s `enableI18N` field. */ enableI18N?: BooleanFilter; + /** Filter by the object’s `enableIntrospection` field. */ + enableIntrospection?: BooleanFilter; /** Filter by the object’s `enableLlm` field. */ enableLlm?: BooleanFilter; /** Filter by the object’s `enableLtree` field. */ @@ -5147,14 +5445,34 @@ export interface DatabaseSettingFilter { enableSearch?: BooleanFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `idleInTransactionTimeoutMs` field. */ + idleInTransactionTimeoutMs?: BigIntFilter; /** Filter by the object’s `labels` field. */ labels?: JSONFilter; + /** Filter by the object’s `lockTimeoutMs` field. */ + lockTimeoutMs?: BigIntFilter; + /** Filter by the object’s `maxConcurrentRequests` field. */ + maxConcurrentRequests?: IntFilter; + /** Filter by the object’s `maxPageSize` field. */ + maxPageSize?: IntFilter; + /** Filter by the object’s `maxQueryCost` field. */ + maxQueryCost?: IntFilter; + /** Filter by the object’s `maxQueryDepth` field. */ + maxQueryDepth?: IntFilter; + /** Filter by the object’s `maxQueueWaitMs` field. */ + maxQueueWaitMs?: IntFilter; + /** Filter by the object’s `maxRequestBytes` field. */ + maxRequestBytes?: IntFilter; /** Negates the expression. */ not?: DatabaseSettingFilter; /** Filter by the object’s `options` field. */ options?: JSONFilter; /** Checks for any expressions in this list. */ or?: DatabaseSettingFilter[]; + /** Filter by the object’s `rateLimitBurst` field. */ + rateLimitBurst?: IntFilter; + /** Filter by the object’s `rateLimitRpm` field. */ + rateLimitRpm?: IntFilter; /** Filter by the object’s `statementTimeoutMs` field. */ statementTimeoutMs?: BigIntFilter; /** Filter by the object’s `updatedAt` field. */ @@ -5235,6 +5553,8 @@ export interface DeriveFilter { databaseId?: UUIDFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `includeGrants` field. */ + includeGrants?: BooleanFilter; /** Filter by the object’s `includeMutations` field. */ includeMutations?: BooleanFilter; /** Filter by the object’s `kind` field. */ @@ -5263,6 +5583,8 @@ export interface DomainFilter { config?: JSONFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; /** Filter by the object’s `domainEvents` relation. */ @@ -5275,10 +5597,6 @@ export interface DomainFilter { domainVerificationsExist?: boolean; /** Filter by the object’s `hostname` field. */ hostname?: StringFilter; - /** Filter by the object’s `httpRoutes` relation. */ - httpRoutes?: DomainToManyHttpRouteFilter; - /** `httpRoutes` exist. */ - httpRoutesExist?: boolean; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `isPublished` field. */ @@ -5305,6 +5623,8 @@ export interface DomainFilter { tlsStatus?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; /** Filter by the object’s `verificationStatus` field. */ verificationStatus?: StringFilter; /** Filter by the object’s `verifiedAt` field. */ @@ -5923,22 +6243,59 @@ export interface FullTextSearchFilter { export interface FunctionFilter { /** Checks for all expressions in this list. */ and?: FunctionFilter[]; + /** Filter by the object’s `apiExposed` field. */ + apiExposed?: BooleanFilter; + /** Filter by the object’s `arguments` field. */ + arguments?: JSONFilter; + /** Filter by the object’s `bodyAst` field. */ + bodyAst?: JSONFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `data` field. */ + data?: JSONFilter; /** Filter by the object’s `database` relation. */ database?: DatabaseFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `functionType` field. */ + functionType?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `isStrict` field. */ + isStrict?: BooleanFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; /** Negates the expression. */ not?: FunctionFilter; /** Checks for any expressions in this list. */ or?: FunctionFilter[]; + /** Filter by the object’s `returns` field. */ + returns?: JSONFilter; /** Filter by the object’s `schema` relation. */ schema?: SchemaFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; + /** Filter by the object’s `securityInvoker` field. */ + securityInvoker?: BooleanFilter; + /** Filter by the object’s `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Filter by the object’s `triggers` relation. */ + triggers?: FunctionToManyTriggerFilter; + /** `triggers` exist. */ + triggersExist?: boolean; + /** Filter by the object’s `volatility` field. */ + volatility?: StringFilter; +} +export interface GetSitePreviewsRecordFilter { + commitId?: UUIDFilter; + name?: StringFilter; + and?: GetSitePreviewsRecordFilter[]; + or?: GetSitePreviewsRecordFilter[]; + not?: GetSitePreviewsRecordFilter; } export interface HostnameBindingFilter { /** Checks for all expressions in this list. */ @@ -5968,41 +6325,29 @@ export interface HostnameBindingFilter { /** Filter by the object’s `verificationStatus` field. */ verificationStatus?: StringFilter; } -export interface HttpRouteFilter { +export interface IdentityProviderRegistryFilter { /** Checks for all expressions in this list. */ - and?: HttpRouteFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `domain` relation. */ - domain?: DomainFilter; - /** Filter by the object’s `domainId` field. */ - domainId?: 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; + and?: IdentityProviderRegistryFilter[]; + /** Filter by the object’s `authorizationUrl` field. */ + authorizationUrl?: StringFilter; + /** Filter by the object’s `displayName` field. */ + displayName?: StringFilter; + /** Filter by the object’s `issuerUrl` field. */ + issuerUrl?: StringFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; /** Negates the expression. */ - not?: HttpRouteFilter; + not?: IdentityProviderRegistryFilter; /** 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; - /** Filter by the object’s `targetId` field. */ - targetId?: UUIDFilter; - /** Filter by the object’s `targetKind` field. */ - targetKind?: StringFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; + or?: IdentityProviderRegistryFilter[]; + /** Filter by the object’s `scopes` field. */ + scopes?: StringListFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `tokenUrl` field. */ + tokenUrl?: StringFilter; + /** Filter by the object’s `userinfoUrl` field. */ + userinfoUrl?: StringFilter; } export interface IndexFilter { /** Filter by the object’s `accessMethod` field. */ @@ -6031,6 +6376,8 @@ export interface IndexFilter { name?: StringFilter; /** Negates the expression. */ not?: IndexFilter; + /** Filter by the object’s `nullsNotDistinct` field. */ + nullsNotDistinct?: BooleanFilter; /** Filter by the object’s `opClasses` field. */ opClasses?: StringListFilter; /** Filter by the object’s `options` field. */ @@ -6061,6 +6408,8 @@ export interface ManagedDomainFilter { certStatus?: StringFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; /** Filter by the object’s `domain` field. */ @@ -6087,6 +6436,8 @@ export interface ManagedDomainFilter { tlsStatus?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; /** Filter by the object’s `verificationStatus` field. */ verificationStatus?: StringFilter; /** Filter by the object’s `verifiedAt` field. */ @@ -6131,6 +6482,8 @@ export interface PageFilter { not?: PageFilter; /** Checks for any expressions in this list. */ or?: PageFilter[]; + /** Filter by the object’s `seededFrom` field. */ + seededFrom?: JSONFilter; /** Filter by the object’s `site` relation. */ site?: SiteFilter; /** Filter by the object’s `siteId` field. */ @@ -6261,6 +6614,8 @@ export interface PlatformApiSettingFilter { enableDirectUploads?: BooleanFilter; /** Filter by the object’s `enableI18N` field. */ enableI18N?: BooleanFilter; + /** Filter by the object’s `enableIntrospection` field. */ + enableIntrospection?: BooleanFilter; /** Filter by the object’s `enableLlm` field. */ enableLlm?: BooleanFilter; /** Filter by the object’s `enableLtree` field. */ @@ -6277,12 +6632,32 @@ export interface PlatformApiSettingFilter { enableSearch?: BooleanFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `idleInTransactionTimeoutMs` field. */ + idleInTransactionTimeoutMs?: BigIntFilter; + /** Filter by the object’s `lockTimeoutMs` field. */ + lockTimeoutMs?: BigIntFilter; + /** Filter by the object’s `maxConcurrentRequests` field. */ + maxConcurrentRequests?: IntFilter; + /** Filter by the object’s `maxPageSize` field. */ + maxPageSize?: IntFilter; + /** Filter by the object’s `maxQueryCost` field. */ + maxQueryCost?: IntFilter; + /** Filter by the object’s `maxQueryDepth` field. */ + maxQueryDepth?: IntFilter; + /** Filter by the object’s `maxQueueWaitMs` field. */ + maxQueueWaitMs?: IntFilter; + /** Filter by the object’s `maxRequestBytes` field. */ + maxRequestBytes?: IntFilter; /** Negates the expression. */ not?: PlatformApiSettingFilter; /** Filter by the object’s `options` field. */ options?: JSONFilter; /** Checks for any expressions in this list. */ or?: PlatformApiSettingFilter[]; + /** Filter by the object’s `rateLimitBurst` field. */ + rateLimitBurst?: IntFilter; + /** Filter by the object’s `rateLimitRpm` field. */ + rateLimitRpm?: IntFilter; /** Filter by the object’s `statementTimeoutMs` field. */ statementTimeoutMs?: BigIntFilter; /** Filter by the object’s `updatedAt` field. */ @@ -6317,6 +6692,8 @@ export interface PlatformDomainFilter { config?: JSONFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `hostname` field. */ hostname?: StringFilter; /** Filter by the object’s `id` field. */ @@ -6349,6 +6726,8 @@ export interface PlatformDomainFilter { tlsStatus?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; /** Filter by the object’s `verificationStatus` field. */ verificationStatus?: StringFilter; /** Filter by the object’s `verifiedAt` field. */ @@ -6544,6 +6923,13 @@ export interface PlatformEmailSiteIdentityFilter { /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } +export interface PlatformGetSitePreviewsRecordFilter { + commitId?: UUIDFilter; + name?: StringFilter; + and?: PlatformGetSitePreviewsRecordFilter[]; + or?: PlatformGetSitePreviewsRecordFilter[]; + not?: PlatformGetSitePreviewsRecordFilter; +} export interface PlatformManagedDomainFilter { /** Filter by the object’s `allowPublicUsage` field. */ allowPublicUsage?: BooleanFilter; @@ -6555,6 +6941,8 @@ export interface PlatformManagedDomainFilter { certStatus?: StringFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `domain` field. */ domain?: StringFilter; /** Filter by the object’s `id` field. */ @@ -6579,6 +6967,8 @@ export interface PlatformManagedDomainFilter { tlsStatus?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; /** Filter by the object’s `verificationStatus` field. */ verificationStatus?: StringFilter; /** Filter by the object’s `verifiedAt` field. */ @@ -6599,6 +6989,8 @@ export interface PlatformPageFilter { not?: PlatformPageFilter; /** Checks for any expressions in this list. */ or?: PlatformPageFilter[]; + /** Filter by the object’s `seededFrom` field. */ + seededFrom?: JSONFilter; /** Filter by the object’s `site` relation. */ site?: PlatformSiteFilter; /** Filter by the object’s `siteId` field. */ @@ -6613,8 +7005,8 @@ export interface PlatformPageFilter { export interface PlatformSiteAppLinkFilter { /** Checks for all expressions in this list. */ and?: PlatformSiteAppLinkFilter[]; - /** Filter by the object’s `appIdentifier` field. */ - appIdentifier?: StringFilter; + /** Filter by the object’s `appStoreIdentityId` field. */ + appStoreIdentityId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -6625,18 +7017,10 @@ export interface PlatformSiteAppLinkFilter { or?: PlatformSiteAppLinkFilter[]; /** Filter by the object’s `pathComponents` field. */ pathComponents?: StringListFilter; - /** Filter by the object’s `platform` field. */ - platform?: StringFilter; - /** Filter by the object’s `sha256CertFingerprints` field. */ - sha256CertFingerprints?: StringListFilter; /** Filter by the object’s `site` relation. */ site?: PlatformSiteFilter; /** Filter by the object’s `siteId` field. */ siteId?: UUIDFilter; - /** Filter by the object’s `storeUrl` field. */ - storeUrl?: StringFilter; - /** Filter by the object’s `teamId` field. */ - teamId?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; /** Filter by the object’s `webcredentials` field. */ @@ -6651,6 +7035,8 @@ export interface PlatformSiteFilter { bucketId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `description` field. */ description?: StringFilter; /** Filter by the object’s `id` field. */ @@ -6695,6 +7081,10 @@ export interface PlatformSiteFilter { platformSiteModulesBySiteId?: PlatformSiteToManyPlatformSiteModuleFilter; /** `platformSiteModulesBySiteId` exist. */ platformSiteModulesBySiteIdExist?: boolean; + /** Filter by the object’s `platformSiteReleaseBySiteId` relation. */ + platformSiteReleaseBySiteId?: PlatformSiteReleaseFilter; + /** A related `platformSiteReleaseBySiteId` exists. */ + platformSiteReleaseBySiteIdExists?: boolean; /** Filter by the object’s `platformSiteThemesBySiteId` relation. */ platformSiteThemesBySiteId?: PlatformSiteToManyPlatformSiteThemeFilter; /** `platformSiteThemesBySiteId` exist. */ @@ -6709,6 +7099,8 @@ export interface PlatformSiteFilter { title?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } export interface PlatformSiteDeepLinkFilter { /** Checks for all expressions in this list. */ @@ -6727,6 +7119,8 @@ export interface PlatformSiteDeepLinkFilter { not?: PlatformSiteDeepLinkFilter; /** Checks for any expressions in this list. */ or?: PlatformSiteDeepLinkFilter[]; + /** Filter by the object’s `pageId` field. */ + pageId?: UUIDFilter; /** Filter by the object’s `site` relation. */ site?: PlatformSiteFilter; /** Filter by the object’s `siteId` field. */ @@ -6787,6 +7181,8 @@ export interface PlatformSiteMetadatumFilter { or?: PlatformSiteMetadatumFilter[]; /** Filter by the object’s `robots` field. */ robots?: StringFilter; + /** Filter by the object’s `robotsSeededFrom` field. */ + robotsSeededFrom?: JSONFilter; /** Filter by the object’s `site` relation. */ site?: PlatformSiteFilter; /** Filter by the object’s `siteId` field. */ @@ -6822,6 +7218,30 @@ export interface PlatformSiteModuleFilter { /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } +export interface PlatformSiteReleaseFilter { + /** Checks for all expressions in this list. */ + and?: PlatformSiteReleaseFilter[]; + /** Filter by the object’s `commitId` field. */ + commitId?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `manifest` field. */ + manifest?: JSONFilter; + /** Negates the expression. */ + not?: PlatformSiteReleaseFilter; + /** Checks for any expressions in this list. */ + or?: PlatformSiteReleaseFilter[]; + /** Filter by the object’s `site` relation. */ + site?: PlatformSiteFilter; + /** Filter by the object’s `siteId` field. */ + siteId?: UUIDFilter; + /** Filter by the object’s `storeId` field. */ + storeId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} export interface PlatformSiteThemeFilter { /** Checks for all expressions in this list. */ and?: PlatformSiteThemeFilter[]; @@ -6881,6 +7301,8 @@ export interface PolicyFilter { and?: PolicyFilter[]; /** Filter by the object’s `category` field. */ category?: ObjectCategoryFilter; + /** Filter by the object’s `columnRefs` field. */ + columnRefs?: StringListFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `data` field. */ @@ -7022,6 +7444,38 @@ export interface PubkeySettingFilter { /** Filter by the object’s `userField` field. */ userField?: StringFilter; } +export interface RedirectFilter { + /** Checks for all expressions in this list. */ + and?: RedirectFilter[]; + /** 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 `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: RedirectFilter; + /** Checks for any expressions in this list. */ + or?: RedirectFilter[]; + /** Filter by the object’s `preservePath` field. */ + preservePath?: BooleanFilter; + /** Filter by the object’s `preserveQuery` field. */ + preserveQuery?: BooleanFilter; + /** Filter by the object’s `routesByTargetRedirectId` relation. */ + routesByTargetRedirectId?: RedirectToManyRouteFilter; + /** `routesByTargetRedirectId` exist. */ + routesByTargetRedirectIdExist?: boolean; + /** Filter by the object’s `statusCode` field. */ + statusCode?: IntFilter; + /** Filter by the object’s `toHost` field. */ + toHost?: StringFilter; + /** Filter by the object’s `toPath` field. */ + toPath?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} export interface RlsSettingFilter { /** Checks for all expressions in this list. */ and?: RlsSettingFilter[]; @@ -7105,12 +7559,16 @@ export interface RouteBindingFilter { path?: StringFilter; /** Filter by the object’s `priority` field. */ priority?: IntFilter; + /** Filter by the object’s `servingSiteId` field. */ + servingSiteId?: UUIDFilter; /** Filter by the object’s `targetApiId` field. */ targetApiId?: UUIDFilter; /** Filter by the object’s `targetBucketId` field. */ targetBucketId?: UUIDFilter; /** Filter by the object’s `targetFunctionId` field. */ targetFunctionId?: UUIDFilter; + /** Filter by the object’s `targetRedirectId` field. */ + targetRedirectId?: UUIDFilter; /** Filter by the object’s `targetServiceId` field. */ targetServiceId?: UUIDFilter; /** Filter by the object’s `targetSiteId` field. */ @@ -7121,6 +7579,8 @@ export interface RouteBindingFilter { export interface RouteFilter { /** Checks for all expressions in this list. */ and?: RouteFilter[]; + /** Filter by the object’s `anonymous` field. */ + anonymous?: BooleanFilter; /** Filter by the object’s `config` field. */ config?: JSONFilter; /** Filter by the object’s `createdAt` field. */ @@ -7143,16 +7603,38 @@ export interface RouteFilter { or?: RouteFilter[]; /** Filter by the object’s `path` field. */ path?: StringFilter; + /** Filter by the object’s `previewRef` field. */ + previewRef?: StringFilter; /** Filter by the object’s `priority` field. */ priority?: IntFilter; + /** Filter by the object’s `servingSite` relation. */ + servingSite?: SiteFilter; + /** A related `servingSite` exists. */ + servingSiteExists?: boolean; + /** Filter by the object’s `servingSiteId` field. */ + servingSiteId?: UUIDFilter; + /** Filter by the object’s `targetApi` relation. */ + targetApi?: ApiFilter; + /** A related `targetApi` exists. */ + targetApiExists?: boolean; /** Filter by the object’s `targetApiId` field. */ targetApiId?: UUIDFilter; /** Filter by the object’s `targetBucketId` field. */ targetBucketId?: UUIDFilter; /** Filter by the object’s `targetFunctionId` field. */ targetFunctionId?: UUIDFilter; + /** Filter by the object’s `targetRedirect` relation. */ + targetRedirect?: RedirectFilter; + /** A related `targetRedirect` exists. */ + targetRedirectExists?: boolean; + /** Filter by the object’s `targetRedirectId` field. */ + targetRedirectId?: UUIDFilter; /** Filter by the object’s `targetServiceId` field. */ targetServiceId?: UUIDFilter; + /** Filter by the object’s `targetSite` relation. */ + targetSite?: SiteFilter; + /** A related `targetSite` exists. */ + targetSiteExists?: boolean; /** Filter by the object’s `targetSiteId` field. */ targetSiteId?: UUIDFilter; /** Filter by the object’s `updatedAt` field. */ @@ -7261,8 +7743,8 @@ export interface SchemaGrantFilter { export interface SiteAppLinkFilter { /** Checks for all expressions in this list. */ and?: SiteAppLinkFilter[]; - /** Filter by the object’s `appIdentifier` field. */ - appIdentifier?: StringFilter; + /** Filter by the object’s `appStoreIdentityId` field. */ + appStoreIdentityId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `databaseId` field. */ @@ -7275,18 +7757,10 @@ export interface SiteAppLinkFilter { or?: SiteAppLinkFilter[]; /** Filter by the object’s `pathComponents` field. */ pathComponents?: StringListFilter; - /** Filter by the object’s `platform` field. */ - platform?: StringFilter; - /** Filter by the object’s `sha256CertFingerprints` field. */ - sha256CertFingerprints?: StringListFilter; /** Filter by the object’s `site` relation. */ site?: SiteFilter; /** Filter by the object’s `siteId` field. */ siteId?: UUIDFilter; - /** Filter by the object’s `storeUrl` field. */ - storeUrl?: StringFilter; - /** Filter by the object’s `teamId` field. */ - teamId?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; /** Filter by the object’s `webcredentials` field. */ @@ -7301,6 +7775,8 @@ export interface SiteFilter { bucketId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; /** Filter by the object’s `description` field. */ @@ -7329,6 +7805,10 @@ export interface SiteFilter { pagesExist?: boolean; /** Filter by the object’s `resourceId` field. */ resourceId?: UUIDFilter; + /** Filter by the object’s `routesByServingSiteId` relation. */ + routesByServingSiteId?: SiteToManyRouteFilter; + /** `routesByServingSiteId` exist. */ + routesByServingSiteIdExist?: boolean; /** Filter by the object’s `siteAppLinks` relation. */ siteAppLinks?: SiteToManySiteAppLinkFilter; /** `siteAppLinks` exist. */ @@ -7349,6 +7829,10 @@ export interface SiteFilter { siteModules?: SiteToManySiteModuleFilter; /** `siteModules` exist. */ siteModulesExist?: boolean; + /** Filter by the object’s `siteRelease` relation. */ + siteRelease?: SiteReleaseFilter; + /** A related `siteRelease` exists. */ + siteReleaseExists?: boolean; /** Filter by the object’s `siteThemes` relation. */ siteThemes?: SiteToManySiteThemeFilter; /** `siteThemes` exist. */ @@ -7361,6 +7845,8 @@ export interface SiteFilter { title?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } export interface SiteDeepLinkFilter { /** Checks for all expressions in this list. */ @@ -7381,6 +7867,8 @@ export interface SiteDeepLinkFilter { not?: SiteDeepLinkFilter; /** Checks for any expressions in this list. */ or?: SiteDeepLinkFilter[]; + /** Filter by the object’s `pageId` field. */ + pageId?: UUIDFilter; /** Filter by the object’s `site` relation. */ site?: SiteFilter; /** Filter by the object’s `siteId` field. */ @@ -7445,6 +7933,8 @@ export interface SiteMetadatumFilter { or?: SiteMetadatumFilter[]; /** Filter by the object’s `robots` field. */ robots?: StringFilter; + /** Filter by the object’s `robotsSeededFrom` field. */ + robotsSeededFrom?: JSONFilter; /** Filter by the object’s `site` relation. */ site?: SiteFilter; /** Filter by the object’s `siteId` field. */ @@ -7482,6 +7972,32 @@ export interface SiteModuleFilter { /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } +export interface SiteReleaseFilter { + /** Checks for all expressions in this list. */ + and?: SiteReleaseFilter[]; + /** 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 `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `manifest` field. */ + manifest?: JSONFilter; + /** Negates the expression. */ + not?: SiteReleaseFilter; + /** Checks for any expressions in this list. */ + or?: SiteReleaseFilter[]; + /** 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 `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} export interface SiteThemeFilter { /** Checks for all expressions in this list. */ and?: SiteThemeFilter[]; @@ -7584,6 +8100,38 @@ export interface SpatialRelationFilter { /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } +export interface SqlActionFilter { + /** Filter by the object’s `actionId` field. */ + actionId?: UUIDFilter; + /** Filter by the object’s `actionName` field. */ + actionName?: StringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: SqlActionFilter[]; + /** Filter by the object’s `content` field. */ + content?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `deploy` field. */ + deploy?: StringFilter; + /** Filter by the object’s `deps` field. */ + deps?: StringListFilter; + /** Filter by the object’s `id` field. */ + id?: IntFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: SqlActionFilter; + /** Checks for any expressions in this list. */ + or?: SqlActionFilter[]; + /** Filter by the object’s `revert` field. */ + revert?: StringFilter; + /** Filter by the object’s `verify` field. */ + verify?: StringFilter; +} export interface TableBehaviorFilter { /** Checks for all expressions in this list. */ and?: TableBehaviorFilter[]; @@ -7809,10 +8357,22 @@ export interface TriggerFilter { databaseId?: UUIDFilter; /** Filter by the object’s `event` field. */ event?: StringFilter; + /** Filter by the object’s `events` field. */ + events?: StringListFilter; + /** Filter by the object’s `forEachRow` field. */ + forEachRow?: BooleanFilter; + /** Filter by the object’s `function` relation. */ + function?: FunctionFilter; + /** A related `function` exists. */ + functionExists?: boolean; + /** Filter by the object’s `functionId` field. */ + functionId?: UUIDFilter; /** Filter by the object’s `functionName` field. */ functionName?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; /** Negates the expression. */ @@ -7827,8 +8387,12 @@ export interface TriggerFilter { tableId?: UUIDFilter; /** Filter by the object’s `tags` field. */ tags?: StringListFilter; + /** Filter by the object’s `timing` field. */ + timing?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `whenAst` field. */ + whenAst?: JSONFilter; } export interface TriggerFunctionFilter { /** Checks for all expressions in this list. */ @@ -8234,6 +8798,8 @@ export type ApiSettingOrderBy = | 'ENABLE_DIRECT_UPLOADS_DESC' | 'ENABLE_I18N_ASC' | 'ENABLE_I18N_DESC' + | 'ENABLE_INTROSPECTION_ASC' + | 'ENABLE_INTROSPECTION_DESC' | 'ENABLE_LLM_ASC' | 'ENABLE_LLM_DESC' | 'ENABLE_LTREE_ASC' @@ -8248,67 +8814,65 @@ export type ApiSettingOrderBy = | 'ENABLE_REALTIME_DESC' | 'ENABLE_SEARCH_ASC' | 'ENABLE_SEARCH_DESC' + | 'IDLE_IN_TRANSACTION_TIMEOUT_MS_ASC' + | 'IDLE_IN_TRANSACTION_TIMEOUT_MS_DESC' | 'ID_ASC' | 'ID_DESC' + | 'LOCK_TIMEOUT_MS_ASC' + | 'LOCK_TIMEOUT_MS_DESC' + | 'MAX_CONCURRENT_REQUESTS_ASC' + | 'MAX_CONCURRENT_REQUESTS_DESC' + | 'MAX_PAGE_SIZE_ASC' + | 'MAX_PAGE_SIZE_DESC' + | 'MAX_QUERY_COST_ASC' + | 'MAX_QUERY_COST_DESC' + | 'MAX_QUERY_DEPTH_ASC' + | 'MAX_QUERY_DEPTH_DESC' + | 'MAX_QUEUE_WAIT_MS_ASC' + | 'MAX_QUEUE_WAIT_MS_DESC' + | 'MAX_REQUEST_BYTES_ASC' + | 'MAX_REQUEST_BYTES_DESC' | 'NATURAL' | 'OPTIONS_ASC' | 'OPTIONS_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' + | 'RATE_LIMIT_BURST_ASC' + | 'RATE_LIMIT_BURST_DESC' + | 'RATE_LIMIT_RPM_ASC' + | 'RATE_LIMIT_RPM_DESC' | 'STATEMENT_TIMEOUT_MS_ASC' | 'STATEMENT_TIMEOUT_MS_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type AppComponentOrderBy = - | 'APP_ID_ASC' - | 'APP_ID_DESC' - | 'COMPONENT_API_ID_ASC' - | 'COMPONENT_API_ID_DESC' - | 'COMPONENT_DOMAIN_ID_ASC' - | 'COMPONENT_DOMAIN_ID_DESC' - | 'COMPONENT_INSTALLATION_ID_ASC' - | 'COMPONENT_INSTALLATION_ID_DESC' - | 'COMPONENT_SITE_ID_ASC' - | 'COMPONENT_SITE_ID_DESC' - | 'COMPONENT_TYPE_ASC' - | 'COMPONENT_TYPE_DESC' - | 'CONFIG_ASC' - | 'CONFIG_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type AppOrderBy = - | 'CONFIG_ASC' - | 'CONFIG_DESC' +export type AstMigrationOrderBy = + | 'ACTION_ID_ASC' + | 'ACTION_ID_DESC' + | 'ACTION_NAME_ASC' + | 'ACTION_NAME_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' + | 'DEPLOYS_ASC' + | 'DEPLOYS_DESC' + | 'DEPLOY_ASC' + | 'DEPLOY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'IS_PUBLISHED_ASC' - | 'IS_PUBLISHED_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'STATUS_ASC' - | 'STATUS_DESC' - | 'TITLE_ASC' - | 'TITLE_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; + | 'PAYLOAD_ASC' + | 'PAYLOAD_DESC' + | 'REQUIRES_ASC' + | 'REQUIRES_DESC' + | 'REVERT_ASC' + | 'REVERT_DESC' + | 'VERIFY_ASC' + | 'VERIFY_DESC'; export type CheckConstraintOrderBy = | 'CATEGORY_ASC' | 'CATEGORY_DESC' @@ -8410,6 +8974,8 @@ export type DatabaseSettingOrderBy = | 'DATABASE_ID_DESC' | 'ENABLE_AGGREGATES_ASC' | 'ENABLE_AGGREGATES_DESC' + | 'ENABLE_BILLING_ASC' + | 'ENABLE_BILLING_DESC' | 'ENABLE_BULK_ASC' | 'ENABLE_BULK_DESC' | 'ENABLE_CONNECTION_FILTER_ASC' @@ -8418,6 +8984,8 @@ export type DatabaseSettingOrderBy = | 'ENABLE_DIRECT_UPLOADS_DESC' | 'ENABLE_I18N_ASC' | 'ENABLE_I18N_DESC' + | 'ENABLE_INTROSPECTION_ASC' + | 'ENABLE_INTROSPECTION_DESC' | 'ENABLE_LLM_ASC' | 'ENABLE_LLM_DESC' | 'ENABLE_LTREE_ASC' @@ -8432,15 +9000,35 @@ export type DatabaseSettingOrderBy = | 'ENABLE_REALTIME_DESC' | 'ENABLE_SEARCH_ASC' | 'ENABLE_SEARCH_DESC' + | 'IDLE_IN_TRANSACTION_TIMEOUT_MS_ASC' + | 'IDLE_IN_TRANSACTION_TIMEOUT_MS_DESC' | 'ID_ASC' | 'ID_DESC' | 'LABELS_ASC' | 'LABELS_DESC' + | 'LOCK_TIMEOUT_MS_ASC' + | 'LOCK_TIMEOUT_MS_DESC' + | 'MAX_CONCURRENT_REQUESTS_ASC' + | 'MAX_CONCURRENT_REQUESTS_DESC' + | 'MAX_PAGE_SIZE_ASC' + | 'MAX_PAGE_SIZE_DESC' + | 'MAX_QUERY_COST_ASC' + | 'MAX_QUERY_COST_DESC' + | 'MAX_QUERY_DEPTH_ASC' + | 'MAX_QUERY_DEPTH_DESC' + | 'MAX_QUEUE_WAIT_MS_ASC' + | 'MAX_QUEUE_WAIT_MS_DESC' + | 'MAX_REQUEST_BYTES_ASC' + | 'MAX_REQUEST_BYTES_DESC' | 'NATURAL' | 'OPTIONS_ASC' | 'OPTIONS_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' + | 'RATE_LIMIT_BURST_ASC' + | 'RATE_LIMIT_BURST_DESC' + | 'RATE_LIMIT_RPM_ASC' + | 'RATE_LIMIT_RPM_DESC' | 'STATEMENT_TIMEOUT_MS_ASC' | 'STATEMENT_TIMEOUT_MS_DESC' | 'UPDATED_AT_ASC' @@ -8502,6 +9090,8 @@ export type DeriveOrderBy = | 'DATABASE_ID_DESC' | 'ID_ASC' | 'ID_DESC' + | 'INCLUDE_GRANTS_ASC' + | 'INCLUDE_GRANTS_DESC' | 'INCLUDE_MUTATIONS_ASC' | 'INCLUDE_MUTATIONS_DESC' | 'KIND_ASC' @@ -8522,6 +9112,8 @@ export type DomainOrderBy = | 'CONFIG_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'HOSTNAME_ASC' @@ -8547,6 +9139,8 @@ export type DomainOrderBy = | 'TLS_STATUS_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC' | 'VERIFICATION_STATUS_ASC' | 'VERIFICATION_STATUS_DESC' | 'VERIFIED_AT_ASC' @@ -8992,17 +9586,51 @@ export type FullTextSearchOrderBy = | 'WEIGHTS_ASC' | 'WEIGHTS_DESC'; export type FunctionOrderBy = + | 'API_EXPOSED_ASC' + | 'API_EXPOSED_DESC' + | 'ARGUMENTS_ASC' + | 'ARGUMENTS_DESC' + | 'BODY_AST_ASC' + | 'BODY_AST_DESC' + | 'CATEGORY_ASC' + | 'CATEGORY_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'DATA_ASC' + | 'DATA_DESC' + | 'FUNCTION_TYPE_ASC' + | 'FUNCTION_TYPE_DESC' | 'ID_ASC' | 'ID_DESC' + | 'IS_STRICT_ASC' + | 'IS_STRICT_DESC' + | 'KIND_ASC' + | 'KIND_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' + | 'RETURNS_ASC' + | 'RETURNS_DESC' | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC'; + | 'SCHEMA_ID_DESC' + | 'SECURITY_INVOKER_ASC' + | 'SECURITY_INVOKER_DESC' + | 'SMART_TAGS_ASC' + | 'SMART_TAGS_DESC' + | 'TAGS_ASC' + | 'TAGS_DESC' + | 'VOLATILITY_ASC' + | 'VOLATILITY_DESC'; +export type GetSitePreviewsRecordsOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'COMMIT_ID_ASC' + | 'COMMIT_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC'; export type HostnameBindingOrderBy = | 'DOMAIN_ID_ASC' | 'DOMAIN_ID_DESC' @@ -9027,36 +9655,26 @@ export type HostnameBindingOrderBy = | 'UPDATED_AT_DESC' | 'VERIFICATION_STATUS_ASC' | 'VERIFICATION_STATUS_DESC'; -export type 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' +export type IdentityProviderRegistryOrderBy = + | 'AUTHORIZATION_URL_ASC' + | 'AUTHORIZATION_URL_DESC' + | 'DISPLAY_NAME_ASC' + | 'DISPLAY_NAME_DESC' + | 'ISSUER_URL_ASC' + | 'ISSUER_URL_DESC' + | 'KIND_ASC' + | 'KIND_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'; + | 'SCOPES_ASC' + | 'SCOPES_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'TOKEN_URL_ASC' + | 'TOKEN_URL_DESC' + | 'USERINFO_URL_ASC' + | 'USERINFO_URL_DESC'; export type IndexOrderBy = | 'ACCESS_METHOD_ASC' | 'ACCESS_METHOD_DESC' @@ -9079,6 +9697,8 @@ export type IndexOrderBy = | 'NAME_ASC' | 'NAME_DESC' | 'NATURAL' + | 'NULLS_NOT_DISTINCT_ASC' + | 'NULLS_NOT_DISTINCT_DESC' | 'OPTIONS_ASC' | 'OPTIONS_DESC' | 'OP_CLASSES_ASC' @@ -9104,6 +9724,8 @@ export type ManagedDomainOrderBy = | 'CERT_STATUS_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'DOMAIN_ASC' @@ -9121,6 +9743,8 @@ export type ManagedDomainOrderBy = | 'TLS_STATUS_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC' | 'VERIFICATION_STATUS_ASC' | 'VERIFICATION_STATUS_DESC' | 'VERIFIED_AT_ASC' @@ -9157,6 +9781,8 @@ export type PageOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' + | 'SEEDED_FROM_ASC' + | 'SEEDED_FROM_DESC' | 'SITE_ID_ASC' | 'SITE_ID_DESC' | 'SLUG_ASC' @@ -9246,6 +9872,8 @@ export type PlatformApiSettingOrderBy = | 'ENABLE_DIRECT_UPLOADS_DESC' | 'ENABLE_I18N_ASC' | 'ENABLE_I18N_DESC' + | 'ENABLE_INTROSPECTION_ASC' + | 'ENABLE_INTROSPECTION_DESC' | 'ENABLE_LLM_ASC' | 'ENABLE_LLM_DESC' | 'ENABLE_LTREE_ASC' @@ -9260,13 +9888,33 @@ export type PlatformApiSettingOrderBy = | 'ENABLE_REALTIME_DESC' | 'ENABLE_SEARCH_ASC' | 'ENABLE_SEARCH_DESC' + | 'IDLE_IN_TRANSACTION_TIMEOUT_MS_ASC' + | 'IDLE_IN_TRANSACTION_TIMEOUT_MS_DESC' | 'ID_ASC' | 'ID_DESC' + | 'LOCK_TIMEOUT_MS_ASC' + | 'LOCK_TIMEOUT_MS_DESC' + | 'MAX_CONCURRENT_REQUESTS_ASC' + | 'MAX_CONCURRENT_REQUESTS_DESC' + | 'MAX_PAGE_SIZE_ASC' + | 'MAX_PAGE_SIZE_DESC' + | 'MAX_QUERY_COST_ASC' + | 'MAX_QUERY_COST_DESC' + | 'MAX_QUERY_DEPTH_ASC' + | 'MAX_QUERY_DEPTH_DESC' + | 'MAX_QUEUE_WAIT_MS_ASC' + | 'MAX_QUEUE_WAIT_MS_DESC' + | 'MAX_REQUEST_BYTES_ASC' + | 'MAX_REQUEST_BYTES_DESC' | 'NATURAL' | 'OPTIONS_ASC' | 'OPTIONS_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' + | 'RATE_LIMIT_BURST_ASC' + | 'RATE_LIMIT_BURST_DESC' + | 'RATE_LIMIT_RPM_ASC' + | 'RATE_LIMIT_RPM_DESC' | 'STATEMENT_TIMEOUT_MS_ASC' | 'STATEMENT_TIMEOUT_MS_DESC' | 'UPDATED_AT_ASC' @@ -9290,6 +9938,8 @@ export type PlatformDomainOrderBy = | 'CONFIG_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'HOSTNAME_ASC' | 'HOSTNAME_DESC' | 'ID_ASC' @@ -9313,6 +9963,8 @@ export type PlatformDomainOrderBy = | 'TLS_STATUS_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC' | 'VERIFICATION_STATUS_ASC' | 'VERIFICATION_STATUS_DESC' | 'VERIFIED_AT_ASC' @@ -9451,6 +10103,14 @@ export type PlatformEmailSiteIdentityOrderBy = | 'SITE_ID_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; +export type PlatformGetSitePreviewsRecordsOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'COMMIT_ID_ASC' + | 'COMMIT_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC'; export type PlatformManagedDomainOrderBy = | 'ALLOW_PUBLIC_USAGE_ASC' | 'ALLOW_PUBLIC_USAGE_DESC' @@ -9460,6 +10120,8 @@ export type PlatformManagedDomainOrderBy = | 'CERT_STATUS_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'DOMAIN_ASC' | 'DOMAIN_DESC' | 'ID_ASC' @@ -9475,6 +10137,8 @@ export type PlatformManagedDomainOrderBy = | 'TLS_STATUS_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC' | 'VERIFICATION_STATUS_ASC' | 'VERIFICATION_STATUS_DESC' | 'VERIFIED_AT_ASC' @@ -9491,6 +10155,8 @@ export type PlatformPageOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' + | 'SEEDED_FROM_ASC' + | 'SEEDED_FROM_DESC' | 'SITE_ID_ASC' | 'SITE_ID_DESC' | 'SLUG_ASC' @@ -9500,8 +10166,8 @@ export type PlatformPageOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; export type PlatformSiteAppLinkOrderBy = - | 'APP_IDENTIFIER_ASC' - | 'APP_IDENTIFIER_DESC' + | 'APP_STORE_IDENTITY_ID_ASC' + | 'APP_STORE_IDENTITY_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'ID_ASC' @@ -9509,18 +10175,10 @@ export type PlatformSiteAppLinkOrderBy = | 'NATURAL' | 'PATH_COMPONENTS_ASC' | 'PATH_COMPONENTS_DESC' - | 'PLATFORM_ASC' - | 'PLATFORM_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'SHA256_CERT_FINGERPRINTS_ASC' - | 'SHA256_CERT_FINGERPRINTS_DESC' | 'SITE_ID_ASC' | 'SITE_ID_DESC' - | 'STORE_URL_ASC' - | 'STORE_URL_DESC' - | 'TEAM_ID_ASC' - | 'TEAM_ID_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'WEBCREDENTIALS_ASC' @@ -9532,6 +10190,8 @@ export type PlatformSiteOrderBy = | 'BUCKET_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' | 'ID_ASC' @@ -9552,7 +10212,9 @@ export type PlatformSiteOrderBy = | 'TITLE_ASC' | 'TITLE_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; export type PlatformSiteDeepLinkOrderBy = | 'APP_PATH_ASC' | 'APP_PATH_DESC' @@ -9565,6 +10227,8 @@ export type PlatformSiteDeepLinkOrderBy = | 'METADATA_ASC' | 'METADATA_DESC' | 'NATURAL' + | 'PAGE_ID_ASC' + | 'PAGE_ID_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'SITE_ID_ASC' @@ -9615,6 +10279,8 @@ export type PlatformSiteMetadatumOrderBy = | 'PRIMARY_KEY_DESC' | 'ROBOTS_ASC' | 'ROBOTS_DESC' + | 'ROBOTS_SEEDED_FROM_ASC' + | 'ROBOTS_SEEDED_FROM_DESC' | 'SITE_ID_ASC' | 'SITE_ID_DESC' | 'STORE_ID_ASC' @@ -9643,6 +10309,24 @@ export type PlatformSiteModuleOrderBy = | 'SITE_ID_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; +export type PlatformSiteReleaseOrderBy = + | 'COMMIT_ID_ASC' + | 'COMMIT_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'MANIFEST_ASC' + | 'MANIFEST_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'SITE_ID_ASC' + | 'SITE_ID_DESC' + | 'STORE_ID_ASC' + | 'STORE_ID_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; export type PlatformSiteThemeOrderBy = | 'COMMIT_ID_ASC' | 'COMMIT_ID_DESC' @@ -9688,6 +10372,8 @@ export type PlatformSiteWebConfigOrderBy = export type PolicyOrderBy = | 'CATEGORY_ASC' | 'CATEGORY_DESC' + | 'COLUMN_REFS_ASC' + | 'COLUMN_REFS_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'DATABASE_ID_ASC' @@ -9783,6 +10469,30 @@ export type PubkeySettingOrderBy = | 'UPDATED_AT_DESC' | 'USER_FIELD_ASC' | 'USER_FIELD_DESC'; +export type RedirectOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'PRESERVE_PATH_ASC' + | 'PRESERVE_PATH_DESC' + | 'PRESERVE_QUERY_ASC' + | 'PRESERVE_QUERY_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'STATUS_CODE_ASC' + | 'STATUS_CODE_DESC' + | 'TO_HOST_ASC' + | 'TO_HOST_DESC' + | 'TO_PATH_ASC' + | 'TO_PATH_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; export type RlsSettingOrderBy = | 'AUTHENTICATE_FUNCTION_ID_ASC' | 'AUTHENTICATE_FUNCTION_ID_DESC' @@ -9827,12 +10537,16 @@ export type RouteBindingOrderBy = | 'PRIMARY_KEY_DESC' | 'PRIORITY_ASC' | 'PRIORITY_DESC' + | 'SERVING_SITE_ID_ASC' + | 'SERVING_SITE_ID_DESC' | 'TARGET_API_ID_ASC' | 'TARGET_API_ID_DESC' | 'TARGET_BUCKET_ID_ASC' | 'TARGET_BUCKET_ID_DESC' | 'TARGET_FUNCTION_ID_ASC' | 'TARGET_FUNCTION_ID_DESC' + | 'TARGET_REDIRECT_ID_ASC' + | 'TARGET_REDIRECT_ID_DESC' | 'TARGET_SERVICE_ID_ASC' | 'TARGET_SERVICE_ID_DESC' | 'TARGET_SITE_ID_ASC' @@ -9840,6 +10554,8 @@ export type RouteBindingOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; export type RouteOrderBy = + | 'ANONYMOUS_ASC' + | 'ANONYMOUS_DESC' | 'CONFIG_ASC' | 'CONFIG_DESC' | 'CREATED_AT_ASC' @@ -9857,16 +10573,22 @@ export type RouteOrderBy = | 'NATURAL' | 'PATH_ASC' | 'PATH_DESC' + | 'PREVIEW_REF_ASC' + | 'PREVIEW_REF_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'PRIORITY_ASC' | 'PRIORITY_DESC' + | 'SERVING_SITE_ID_ASC' + | 'SERVING_SITE_ID_DESC' | 'TARGET_API_ID_ASC' | 'TARGET_API_ID_DESC' | 'TARGET_BUCKET_ID_ASC' | 'TARGET_BUCKET_ID_DESC' | 'TARGET_FUNCTION_ID_ASC' | 'TARGET_FUNCTION_ID_DESC' + | 'TARGET_REDIRECT_ID_ASC' + | 'TARGET_REDIRECT_ID_DESC' | 'TARGET_SERVICE_ID_ASC' | 'TARGET_SERVICE_ID_DESC' | 'TARGET_SITE_ID_ASC' @@ -9920,8 +10642,8 @@ export type SchemaGrantOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; export type SiteAppLinkOrderBy = - | 'APP_IDENTIFIER_ASC' - | 'APP_IDENTIFIER_DESC' + | 'APP_STORE_IDENTITY_ID_ASC' + | 'APP_STORE_IDENTITY_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'DATABASE_ID_ASC' @@ -9931,18 +10653,10 @@ export type SiteAppLinkOrderBy = | 'NATURAL' | 'PATH_COMPONENTS_ASC' | 'PATH_COMPONENTS_DESC' - | 'PLATFORM_ASC' - | 'PLATFORM_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'SHA256_CERT_FINGERPRINTS_ASC' - | 'SHA256_CERT_FINGERPRINTS_DESC' | 'SITE_ID_ASC' | 'SITE_ID_DESC' - | 'STORE_URL_ASC' - | 'STORE_URL_DESC' - | 'TEAM_ID_ASC' - | 'TEAM_ID_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'WEBCREDENTIALS_ASC' @@ -9954,6 +10668,8 @@ export type SiteOrderBy = | 'BUCKET_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'DESCRIPTION_ASC' @@ -9976,7 +10692,9 @@ export type SiteOrderBy = | 'TITLE_ASC' | 'TITLE_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; export type SiteDeepLinkOrderBy = | 'APP_PATH_ASC' | 'APP_PATH_DESC' @@ -9991,6 +10709,8 @@ export type SiteDeepLinkOrderBy = | 'METADATA_ASC' | 'METADATA_DESC' | 'NATURAL' + | 'PAGE_ID_ASC' + | 'PAGE_ID_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'SITE_ID_ASC' @@ -10045,6 +10765,8 @@ export type SiteMetadatumOrderBy = | 'PRIMARY_KEY_DESC' | 'ROBOTS_ASC' | 'ROBOTS_DESC' + | 'ROBOTS_SEEDED_FROM_ASC' + | 'ROBOTS_SEEDED_FROM_DESC' | 'SITE_ID_ASC' | 'SITE_ID_DESC' | 'STORE_ID_ASC' @@ -10075,6 +10797,26 @@ export type SiteModuleOrderBy = | 'SITE_ID_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; +export type SiteReleaseOrderBy = + | 'COMMIT_ID_ASC' + | 'COMMIT_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'MANIFEST_ASC' + | 'MANIFEST_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'SITE_ID_ASC' + | 'SITE_ID_DESC' + | 'STORE_ID_ASC' + | 'STORE_ID_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; export type SiteThemeOrderBy = | 'COMMIT_ID_ASC' | 'COMMIT_ID_DESC' @@ -10151,6 +10893,34 @@ export type SpatialRelationOrderBy = | 'TAGS_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; +export type SqlActionOrderBy = + | 'ACTION_ID_ASC' + | 'ACTION_ID_DESC' + | 'ACTION_NAME_ASC' + | 'ACTION_NAME_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'CONTENT_ASC' + | 'CONTENT_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DEPLOY_ASC' + | 'DEPLOY_DESC' + | 'DEPS_ASC' + | 'DEPS_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'PAYLOAD_ASC' + | 'PAYLOAD_DESC' + | 'REVERT_ASC' + | 'REVERT_DESC' + | 'VERIFY_ASC' + | 'VERIFY_DESC'; export type TableBehaviorOrderBy = | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' @@ -10250,12 +11020,20 @@ export type TriggerOrderBy = | 'CREATED_AT_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'EVENTS_ASC' + | 'EVENTS_DESC' | 'EVENT_ASC' | 'EVENT_DESC' + | 'FOR_EACH_ROW_ASC' + | 'FOR_EACH_ROW_DESC' + | 'FUNCTION_ID_ASC' + | 'FUNCTION_ID_DESC' | 'FUNCTION_NAME_ASC' | 'FUNCTION_NAME_DESC' | 'ID_ASC' | 'ID_DESC' + | 'KIND_ASC' + | 'KIND_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'NATURAL' @@ -10267,8 +11045,12 @@ export type TriggerOrderBy = | 'TABLE_ID_DESC' | 'TAGS_ASC' | 'TAGS_DESC' + | 'TIMING_ASC' + | 'TIMING_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; + | 'UPDATED_AT_DESC' + | 'WHEN_AST_ASC' + | 'WHEN_AST_DESC'; export type TriggerFunctionOrderBy = | 'CODE_ASC' | 'CODE_DESC' @@ -10550,6 +11332,7 @@ export interface CreateApiSettingInput { enableConnectionFilter?: boolean; enableDirectUploads?: boolean; enableI18N?: boolean; + enableIntrospection?: boolean; enableLlm?: boolean; enableLtree?: boolean; enableManyToMany?: boolean; @@ -10557,7 +11340,17 @@ export interface CreateApiSettingInput { enablePresignedUploads?: boolean; enableRealtime?: boolean; enableSearch?: boolean; + idleInTransactionTimeoutMs?: string; + lockTimeoutMs?: string; + maxConcurrentRequests?: number; + maxPageSize?: number; + maxQueryCost?: number; + maxQueryDepth?: number; + maxQueueWaitMs?: number; + maxRequestBytes?: number; options?: Record; + rateLimitBurst?: number; + rateLimitRpm?: number; statementTimeoutMs?: string; }; } @@ -10569,6 +11362,7 @@ export interface ApiSettingPatch { enableConnectionFilter?: boolean | null; enableDirectUploads?: boolean | null; enableI18N?: boolean | null; + enableIntrospection?: boolean | null; enableLlm?: boolean | null; enableLtree?: boolean | null; enableManyToMany?: boolean | null; @@ -10576,7 +11370,17 @@ export interface ApiSettingPatch { enablePresignedUploads?: boolean | null; enableRealtime?: boolean | null; enableSearch?: boolean | null; + idleInTransactionTimeoutMs?: string | null; + lockTimeoutMs?: string | null; + maxConcurrentRequests?: number | null; + maxPageSize?: number | null; + maxQueryCost?: number | null; + maxQueryDepth?: number | null; + maxQueueWaitMs?: number | null; + maxRequestBytes?: number | null; options?: Record | null; + rateLimitBurst?: number | null; + rateLimitRpm?: number | null; statementTimeoutMs?: string | null; } export interface UpdateApiSettingInput { @@ -10588,69 +11392,45 @@ export interface DeleteApiSettingInput { clientMutationId?: string; id: string; } -export interface CreateAppComponentInput { +export interface CreateAstMigrationInput { clientMutationId?: string; - appComponent: { - appId: string; - componentApiId?: string; - componentDomainId?: string; - componentInstallationId?: string; - componentSiteId?: string; - componentType?: string; - config?: Record; + astMigration: { + actionId: string; + actionName?: string; + actorId: string; databaseId: string; + deploy?: Record; + deploys?: string; + name?: string; + payload?: Record; + requires?: string[]; + revert?: Record; + verify?: Record; }; } -export interface AppComponentPatch { - appId?: string | null; - componentApiId?: string | null; - componentDomainId?: string | null; - componentInstallationId?: string | null; - componentSiteId?: string | null; - componentType?: string | null; - config?: Record | null; +export interface AstMigrationPatch { + actionId?: string | null; + actionName?: string | null; + actorId?: string | null; databaseId?: string | null; + deploy?: Record | null; + deploys?: string | null; + name?: string | null; + payload?: Record | null; + requires?: string[] | null; + revert?: Record | null; + verify?: Record | null; } -export interface UpdateAppComponentInput { +export interface UpdateAstMigrationInput { clientMutationId?: string; - id: string; - appComponentPatch: AppComponentPatch; + id: number; + astMigrationPatch: AstMigrationPatch; } -export interface DeleteAppComponentInput { +export interface DeleteAstMigrationInput { clientMutationId?: string; - id: string; + id: number; } -export interface CreateAppInput { - clientMutationId?: string; - app: { - config?: Record; - databaseId: string; - description?: string; - isPublished?: boolean; - name: string; - status?: string; - title?: string; - }; -} -export interface AppPatch { - config?: Record | null; - databaseId?: string | null; - description?: string | null; - isPublished?: boolean | null; - name?: string | null; - status?: string | null; - title?: string | null; -} -export interface UpdateAppInput { - clientMutationId?: string; - id: string; - appPatch: AppPatch; -} -export interface DeleteAppInput { - clientMutationId?: string; - id: string; -} -export interface CreateCheckConstraintInput { +export interface CreateCheckConstraintInput { clientMutationId?: string; checkConstraint: { category?: ObjectCategory; @@ -10776,10 +11556,12 @@ export interface CreateDatabaseSettingInput { annotations?: Record; databaseId: string; enableAggregates?: boolean; + enableBilling?: boolean; enableBulk?: boolean; enableConnectionFilter?: boolean; enableDirectUploads?: boolean; enableI18N?: boolean; + enableIntrospection?: boolean; enableLlm?: boolean; enableLtree?: boolean; enableManyToMany?: boolean; @@ -10787,8 +11569,18 @@ export interface CreateDatabaseSettingInput { enablePresignedUploads?: boolean; enableRealtime?: boolean; enableSearch?: boolean; + idleInTransactionTimeoutMs?: string; labels?: Record; + lockTimeoutMs?: string; + maxConcurrentRequests?: number; + maxPageSize?: number; + maxQueryCost?: number; + maxQueryDepth?: number; + maxQueueWaitMs?: number; + maxRequestBytes?: number; options?: Record; + rateLimitBurst?: number; + rateLimitRpm?: number; statementTimeoutMs?: string; }; } @@ -10796,10 +11588,12 @@ export interface DatabaseSettingPatch { annotations?: Record | null; databaseId?: string | null; enableAggregates?: boolean | null; + enableBilling?: boolean | null; enableBulk?: boolean | null; enableConnectionFilter?: boolean | null; enableDirectUploads?: boolean | null; enableI18N?: boolean | null; + enableIntrospection?: boolean | null; enableLlm?: boolean | null; enableLtree?: boolean | null; enableManyToMany?: boolean | null; @@ -10807,8 +11601,18 @@ export interface DatabaseSettingPatch { enablePresignedUploads?: boolean | null; enableRealtime?: boolean | null; enableSearch?: boolean | null; + idleInTransactionTimeoutMs?: string | null; labels?: Record | null; + lockTimeoutMs?: string | null; + maxConcurrentRequests?: number | null; + maxPageSize?: number | null; + maxQueryCost?: number | null; + maxQueryDepth?: number | null; + maxQueueWaitMs?: number | null; + maxRequestBytes?: number | null; options?: Record | null; + rateLimitBurst?: number | null; + rateLimitRpm?: number | null; statementTimeoutMs?: string | null; } export interface UpdateDatabaseSettingInput { @@ -10890,6 +11694,7 @@ export interface CreateDeriveInput { clientMutationId?: string; derive: { databaseId?: string; + includeGrants?: boolean; includeMutations?: boolean; kind: string; policyPrefix?: string; @@ -10899,6 +11704,7 @@ export interface CreateDeriveInput { } export interface DerivePatch { databaseId?: string | null; + includeGrants?: boolean | null; includeMutations?: boolean | null; kind?: string | null; policyPrefix?: string | null; @@ -10918,6 +11724,7 @@ export interface CreateDomainInput { clientMutationId?: string; domain: { config?: Record; + createdByPrincipal?: string; databaseId: string; hostname: string; isPublished?: boolean; @@ -10927,12 +11734,14 @@ export interface CreateDomainInput { tlsReadyAt?: string; tlsSecretName?: string; tlsStatus?: string; + updatedByPrincipal?: string; verificationStatus?: string; verifiedAt?: string; }; } export interface DomainPatch { config?: Record | null; + createdByPrincipal?: string | null; databaseId?: string | null; hostname?: string | null; isPublished?: boolean | null; @@ -10942,6 +11751,7 @@ export interface DomainPatch { tlsReadyAt?: string | null; tlsSecretName?: string | null; tlsStatus?: string | null; + updatedByPrincipal?: string | null; verificationStatus?: string | null; verifiedAt?: string | null; } @@ -11489,15 +12299,41 @@ export interface DeleteFullTextSearchInput { export interface CreateFunctionInput { clientMutationId?: string; function: { + apiExposed?: boolean; + arguments?: Record; + bodyAst?: Record; + category?: ObjectCategory; + data?: Record; databaseId: string; + functionType?: string; + isStrict?: boolean; + kind?: string; name: string; + returns?: Record; schemaId: string; + securityInvoker?: boolean; + smartTags?: Record; + tags?: string[]; + volatility?: string; }; } export interface FunctionPatch { + apiExposed?: boolean | null; + arguments?: Record | null; + bodyAst?: Record | null; + category?: ObjectCategory | null; + data?: Record | null; databaseId?: string | null; + functionType?: string | null; + isStrict?: boolean | null; + kind?: string | null; name?: string | null; + returns?: Record | null; schemaId?: string | null; + securityInvoker?: boolean | null; + smartTags?: Record | null; + tags?: string[] | null; + volatility?: string | null; } export interface UpdateFunctionInput { clientMutationId?: string; @@ -11508,6 +12344,26 @@ export interface DeleteFunctionInput { clientMutationId?: string; id: string; } +export interface CreateGetSitePreviewsRecordInput { + clientMutationId?: string; + getSitePreviewsRecord: { + commitId: string; + name?: string; + }; +} +export interface GetSitePreviewsRecordPatch { + commitId?: string | null; + name?: string | null; +} +export interface UpdateGetSitePreviewsRecordInput { + clientMutationId?: string; + id: string; + getSitePreviewsRecordPatch: GetSitePreviewsRecordPatch; +} +export interface DeleteGetSitePreviewsRecordInput { + clientMutationId?: string; + id: string; +} export interface CreateHostnameBindingInput { clientMutationId?: string; hostnameBinding: { @@ -11540,41 +12396,37 @@ export interface DeleteHostnameBindingInput { clientMutationId?: string; id: string; } -export interface CreateHttpRouteInput { +export interface CreateIdentityProviderRegistryInput { clientMutationId?: string; - httpRoute: { - createdBy?: string; - databaseId: string; - domainId: string; - isActive?: boolean; - method?: string; - path?: string; - priority?: number; - targetId: string; - targetKind: string; - updatedBy?: string; + identityProviderRegistry: { + authorizationUrl?: string; + displayName: string; + issuerUrl?: string; + kind: string; + scopes?: string[]; + slug: string; + tokenUrl?: string; + userinfoUrl?: string; }; } -export interface HttpRoutePatch { - createdBy?: string | null; - databaseId?: string | null; - domainId?: string | null; - isActive?: boolean | null; - method?: string | null; - path?: string | null; - priority?: number | null; - targetId?: string | null; - targetKind?: string | null; - updatedBy?: string | null; +export interface IdentityProviderRegistryPatch { + authorizationUrl?: string | null; + displayName?: string | null; + issuerUrl?: string | null; + kind?: string | null; + scopes?: string[] | null; + slug?: string | null; + tokenUrl?: string | null; + userinfoUrl?: string | null; } -export interface UpdateHttpRouteInput { +export interface UpdateIdentityProviderRegistryInput { clientMutationId?: string; - id: string; - httpRoutePatch: HttpRoutePatch; + slug: string; + identityProviderRegistryPatch: IdentityProviderRegistryPatch; } -export interface DeleteHttpRouteInput { +export interface DeleteIdentityProviderRegistryInput { clientMutationId?: string; - id: string; + slug: string; } export interface CreateIndexInput { clientMutationId?: string; @@ -11587,6 +12439,7 @@ export interface CreateIndexInput { indexParams?: Record; isUnique?: boolean; name?: string; + nullsNotDistinct?: boolean; opClasses?: string[]; options?: Record; smartTags?: Record; @@ -11604,6 +12457,7 @@ export interface IndexPatch { indexParams?: Record | null; isUnique?: boolean | null; name?: string | null; + nullsNotDistinct?: boolean | null; opClasses?: string[] | null; options?: Record | null; smartTags?: Record | null; @@ -11626,11 +12480,13 @@ export interface CreateManagedDomainInput { allowPublicUsage?: boolean; annotations?: Record; certStatus?: string; + createdByPrincipal?: string; databaseId: string; domain: string; isWildcard?: boolean; tlsReadyAt?: string; tlsStatus?: string; + updatedByPrincipal?: string; verificationStatus?: string; verifiedAt?: string; }; @@ -11639,11 +12495,13 @@ export interface ManagedDomainPatch { allowPublicUsage?: boolean | null; annotations?: Record | null; certStatus?: string | null; + createdByPrincipal?: string | null; databaseId?: string | null; domain?: string | null; isWildcard?: boolean | null; tlsReadyAt?: string | null; tlsStatus?: string | null; + updatedByPrincipal?: string | null; verificationStatus?: string | null; verifiedAt?: string | null; } @@ -11692,6 +12550,7 @@ export interface CreatePageInput { commitId?: string; content: Record; databaseId: string; + seededFrom?: Record; siteId: string; slug: string; storeId?: string; @@ -11701,6 +12560,7 @@ export interface PagePatch { commitId?: string | null; content?: Record | null; databaseId?: string | null; + seededFrom?: Record | null; siteId?: string | null; slug?: string | null; storeId?: string | null; @@ -11807,6 +12667,7 @@ export interface CreatePlatformApiSettingInput { enableConnectionFilter?: boolean; enableDirectUploads?: boolean; enableI18N?: boolean; + enableIntrospection?: boolean; enableLlm?: boolean; enableLtree?: boolean; enableManyToMany?: boolean; @@ -11814,7 +12675,17 @@ export interface CreatePlatformApiSettingInput { enablePresignedUploads?: boolean; enableRealtime?: boolean; enableSearch?: boolean; + idleInTransactionTimeoutMs?: string; + lockTimeoutMs?: string; + maxConcurrentRequests?: number; + maxPageSize?: number; + maxQueryCost?: number; + maxQueryDepth?: number; + maxQueueWaitMs?: number; + maxRequestBytes?: number; options?: Record; + rateLimitBurst?: number; + rateLimitRpm?: number; statementTimeoutMs?: string; }; } @@ -11825,6 +12696,7 @@ export interface PlatformApiSettingPatch { enableConnectionFilter?: boolean | null; enableDirectUploads?: boolean | null; enableI18N?: boolean | null; + enableIntrospection?: boolean | null; enableLlm?: boolean | null; enableLtree?: boolean | null; enableManyToMany?: boolean | null; @@ -11832,7 +12704,17 @@ export interface PlatformApiSettingPatch { enablePresignedUploads?: boolean | null; enableRealtime?: boolean | null; enableSearch?: boolean | null; + idleInTransactionTimeoutMs?: string | null; + lockTimeoutMs?: string | null; + maxConcurrentRequests?: number | null; + maxPageSize?: number | null; + maxQueryCost?: number | null; + maxQueryDepth?: number | null; + maxQueueWaitMs?: number | null; + maxRequestBytes?: number | null; options?: Record | null; + rateLimitBurst?: number | null; + rateLimitRpm?: number | null; statementTimeoutMs?: string | null; } export interface UpdatePlatformApiSettingInput { @@ -11868,6 +12750,7 @@ export interface CreatePlatformDomainInput { clientMutationId?: string; platformDomain: { config?: Record; + createdByPrincipal?: string; hostname: string; isPublished?: boolean; isWildcard?: boolean; @@ -11876,12 +12759,14 @@ export interface CreatePlatformDomainInput { tlsReadyAt?: string; tlsSecretName?: string; tlsStatus?: string; + updatedByPrincipal?: string; verificationStatus?: string; verifiedAt?: string; }; } export interface PlatformDomainPatch { config?: Record | null; + createdByPrincipal?: string | null; hostname?: string | null; isPublished?: boolean | null; isWildcard?: boolean | null; @@ -11890,6 +12775,7 @@ export interface PlatformDomainPatch { tlsReadyAt?: string | null; tlsSecretName?: string | null; tlsStatus?: string | null; + updatedByPrincipal?: string | null; verificationStatus?: string | null; verifiedAt?: string | null; } @@ -12066,16 +12952,38 @@ export interface DeletePlatformEmailSiteIdentityInput { clientMutationId?: string; id: string; } +export interface CreatePlatformGetSitePreviewsRecordInput { + clientMutationId?: string; + platformGetSitePreviewsRecord: { + commitId: string; + name?: string; + }; +} +export interface PlatformGetSitePreviewsRecordPatch { + commitId?: string | null; + name?: string | null; +} +export interface UpdatePlatformGetSitePreviewsRecordInput { + clientMutationId?: string; + id: string; + platformGetSitePreviewsRecordPatch: PlatformGetSitePreviewsRecordPatch; +} +export interface DeletePlatformGetSitePreviewsRecordInput { + clientMutationId?: string; + id: string; +} export interface CreatePlatformManagedDomainInput { clientMutationId?: string; platformManagedDomain: { allowPublicUsage?: boolean; annotations?: Record; certStatus?: string; + createdByPrincipal?: string; domain: string; isWildcard?: boolean; tlsReadyAt?: string; tlsStatus?: string; + updatedByPrincipal?: string; verificationStatus?: string; verifiedAt?: string; }; @@ -12084,10 +12992,12 @@ export interface PlatformManagedDomainPatch { allowPublicUsage?: boolean | null; annotations?: Record | null; certStatus?: string | null; + createdByPrincipal?: string | null; domain?: string | null; isWildcard?: boolean | null; tlsReadyAt?: string | null; tlsStatus?: string | null; + updatedByPrincipal?: string | null; verificationStatus?: string | null; verifiedAt?: string | null; } @@ -12105,6 +13015,7 @@ export interface CreatePlatformPageInput { platformPage: { commitId?: string; content: Record; + seededFrom?: Record; siteId: string; slug: string; storeId?: string; @@ -12113,6 +13024,7 @@ export interface CreatePlatformPageInput { export interface PlatformPagePatch { commitId?: string | null; content?: Record | null; + seededFrom?: Record | null; siteId?: string | null; slug?: string | null; storeId?: string | null; @@ -12129,24 +13041,16 @@ export interface DeletePlatformPageInput { export interface CreatePlatformSiteAppLinkInput { clientMutationId?: string; platformSiteAppLink: { - appIdentifier: string; + appStoreIdentityId: string; pathComponents?: string[]; - platform: string; - sha256CertFingerprints?: string[]; siteId: string; - storeUrl?: string; - teamId?: string; webcredentials?: boolean; }; } export interface PlatformSiteAppLinkPatch { - appIdentifier?: string | null; + appStoreIdentityId?: string | null; pathComponents?: string[] | null; - platform?: string | null; - sha256CertFingerprints?: string[] | null; siteId?: string | null; - storeUrl?: string | null; - teamId?: string | null; webcredentials?: boolean | null; } export interface UpdatePlatformSiteAppLinkInput { @@ -12163,6 +13067,7 @@ export interface CreatePlatformSiteInput { platformSite: { activeCommitId?: string; bucketId?: string; + createdByPrincipal?: string; description?: string; installationId?: string; installationMemberSlug?: string; @@ -12170,11 +13075,13 @@ export interface CreatePlatformSiteInput { name: string; resourceId?: string; title?: string; + updatedByPrincipal?: string; }; } export interface PlatformSitePatch { activeCommitId?: string | null; bucketId?: string | null; + createdByPrincipal?: string | null; description?: string | null; installationId?: string | null; installationMemberSlug?: string | null; @@ -12182,6 +13089,7 @@ export interface PlatformSitePatch { name?: string | null; resourceId?: string | null; title?: string | null; + updatedByPrincipal?: string | null; } export interface UpdatePlatformSiteInput { clientMutationId?: string; @@ -12198,6 +13106,7 @@ export interface CreatePlatformSiteDeepLinkInput { appPath: string; fallbackUrl?: string; metadata?: Record; + pageId?: string; siteId: string; slug: string; webPath?: string; @@ -12207,6 +13116,7 @@ export interface PlatformSiteDeepLinkPatch { appPath?: string | null; fallbackUrl?: string | null; metadata?: Record | null; + pageId?: string | null; siteId?: string | null; slug?: string | null; webPath?: string | null; @@ -12253,6 +13163,7 @@ export interface CreatePlatformSiteMetadatumInput { logo?: ConstructiveInternalTypeImage; ogImage?: ConstructiveInternalTypeImage; robots?: string; + robotsSeededFrom?: Record; siteId: string; storeId?: string; title?: string; @@ -12271,6 +13182,7 @@ export interface PlatformSiteMetadatumPatch { ogImage?: ConstructiveInternalTypeImage | null; ogImageUpload?: File | null; robots?: string | null; + robotsSeededFrom?: Record | null; siteId?: string | null; storeId?: string | null; title?: string | null; @@ -12310,6 +13222,30 @@ export interface DeletePlatformSiteModuleInput { clientMutationId?: string; id: string; } +export interface CreatePlatformSiteReleaseInput { + clientMutationId?: string; + platformSiteRelease: { + commitId?: string; + manifest: Record; + siteId: string; + storeId?: string; + }; +} +export interface PlatformSiteReleasePatch { + commitId?: string | null; + manifest?: Record | null; + siteId?: string | null; + storeId?: string | null; +} +export interface UpdatePlatformSiteReleaseInput { + clientMutationId?: string; + id: string; + platformSiteReleasePatch: PlatformSiteReleasePatch; +} +export interface DeletePlatformSiteReleaseInput { + clientMutationId?: string; + id: string; +} export interface CreatePlatformSiteThemeInput { clientMutationId?: string; platformSiteTheme: { @@ -12368,6 +13304,7 @@ export interface CreatePolicyInput { clientMutationId?: string; policy: { category?: ObjectCategory; + columnRefs?: string[]; data?: Record; databaseId?: string; derivedFromPolicyId?: string; @@ -12386,6 +13323,7 @@ export interface CreatePolicyInput { } export interface PolicyPatch { category?: ObjectCategory | null; + columnRefs?: string[] | null; data?: Record | null; databaseId?: string | null; derivedFromPolicyId?: string | null; @@ -12480,6 +13418,36 @@ export interface DeletePubkeySettingInput { clientMutationId?: string; id: string; } +export interface CreateRedirectInput { + clientMutationId?: string; + redirect: { + databaseId: string; + name: string; + preservePath?: boolean; + preserveQuery?: boolean; + statusCode?: number; + toHost: string; + toPath?: string; + }; +} +export interface RedirectPatch { + databaseId?: string | null; + name?: string | null; + preservePath?: boolean | null; + preserveQuery?: boolean | null; + statusCode?: number | null; + toHost?: string | null; + toPath?: string | null; +} +export interface UpdateRedirectInput { + clientMutationId?: string; + id: string; + redirectPatch: RedirectPatch; +} +export interface DeleteRedirectInput { + clientMutationId?: string; + id: string; +} export interface CreateRlsSettingInput { clientMutationId?: string; rlsSetting: { @@ -12522,9 +13490,11 @@ export interface CreateRouteBindingInput { method?: string; path: string; priority?: number; + servingSiteId?: string; targetApiId?: string; targetBucketId?: string; targetFunctionId?: string; + targetRedirectId?: string; targetServiceId?: string; targetSiteId?: string; }; @@ -12535,9 +13505,11 @@ export interface RouteBindingPatch { method?: string | null; path?: string | null; priority?: number | null; + servingSiteId?: string | null; targetApiId?: string | null; targetBucketId?: string | null; targetFunctionId?: string | null; + targetRedirectId?: string | null; targetServiceId?: string | null; targetSiteId?: string | null; } @@ -12553,31 +13525,39 @@ export interface DeleteRouteBindingInput { export interface CreateRouteInput { clientMutationId?: string; route: { + anonymous?: boolean; config?: Record; databaseId: string; domainId: string; isActive?: boolean; method?: string; path?: string; + previewRef?: string; priority?: number; + servingSiteId?: string; targetApiId?: string; targetBucketId?: string; targetFunctionId?: string; + targetRedirectId?: string; targetServiceId?: string; targetSiteId?: string; }; } export interface RoutePatch { + anonymous?: boolean | null; config?: Record | null; databaseId?: string | null; domainId?: string | null; isActive?: boolean | null; method?: string | null; path?: string | null; + previewRef?: string | null; priority?: number | null; + servingSiteId?: string | null; targetApiId?: string | null; targetBucketId?: string | null; targetFunctionId?: string | null; + targetRedirectId?: string | null; targetServiceId?: string | null; targetSiteId?: string | null; } @@ -12651,26 +13631,18 @@ export interface DeleteSchemaGrantInput { export interface CreateSiteAppLinkInput { clientMutationId?: string; siteAppLink: { - appIdentifier: string; + appStoreIdentityId: string; databaseId: string; pathComponents?: string[]; - platform: string; - sha256CertFingerprints?: string[]; siteId: string; - storeUrl?: string; - teamId?: string; webcredentials?: boolean; }; } export interface SiteAppLinkPatch { - appIdentifier?: string | null; + appStoreIdentityId?: string | null; databaseId?: string | null; pathComponents?: string[] | null; - platform?: string | null; - sha256CertFingerprints?: string[] | null; siteId?: string | null; - storeUrl?: string | null; - teamId?: string | null; webcredentials?: boolean | null; } export interface UpdateSiteAppLinkInput { @@ -12687,6 +13659,7 @@ export interface CreateSiteInput { site: { activeCommitId?: string; bucketId?: string; + createdByPrincipal?: string; databaseId: string; description?: string; installationId?: string; @@ -12695,11 +13668,13 @@ export interface CreateSiteInput { name: string; resourceId?: string; title?: string; + updatedByPrincipal?: string; }; } export interface SitePatch { activeCommitId?: string | null; bucketId?: string | null; + createdByPrincipal?: string | null; databaseId?: string | null; description?: string | null; installationId?: string | null; @@ -12708,6 +13683,7 @@ export interface SitePatch { name?: string | null; resourceId?: string | null; title?: string | null; + updatedByPrincipal?: string | null; } export interface UpdateSiteInput { clientMutationId?: string; @@ -12725,6 +13701,7 @@ export interface CreateSiteDeepLinkInput { databaseId: string; fallbackUrl?: string; metadata?: Record; + pageId?: string; siteId: string; slug: string; webPath?: string; @@ -12735,6 +13712,7 @@ export interface SiteDeepLinkPatch { databaseId?: string | null; fallbackUrl?: string | null; metadata?: Record | null; + pageId?: string | null; siteId?: string | null; slug?: string | null; webPath?: string | null; @@ -12784,6 +13762,7 @@ export interface CreateSiteMetadatumInput { logo?: ConstructiveInternalTypeImage; ogImage?: ConstructiveInternalTypeImage; robots?: string; + robotsSeededFrom?: Record; siteId: string; storeId?: string; title?: string; @@ -12803,6 +13782,7 @@ export interface SiteMetadatumPatch { ogImage?: ConstructiveInternalTypeImage | null; ogImageUpload?: File | null; robots?: string | null; + robotsSeededFrom?: Record | null; siteId?: string | null; storeId?: string | null; title?: string | null; @@ -12844,6 +13824,32 @@ export interface DeleteSiteModuleInput { clientMutationId?: string; id: string; } +export interface CreateSiteReleaseInput { + clientMutationId?: string; + siteRelease: { + commitId?: string; + databaseId: string; + manifest: Record; + siteId: string; + storeId?: string; + }; +} +export interface SiteReleasePatch { + commitId?: string | null; + databaseId?: string | null; + manifest?: Record | null; + siteId?: string | null; + storeId?: string | null; +} +export interface UpdateSiteReleaseInput { + clientMutationId?: string; + id: string; + siteReleasePatch: SiteReleasePatch; +} +export interface DeleteSiteReleaseInput { + clientMutationId?: string; + id: string; +} export interface CreateSiteThemeInput { clientMutationId?: string; siteTheme: { @@ -12938,6 +13944,44 @@ export interface DeleteSpatialRelationInput { clientMutationId?: string; id: string; } +export interface CreateSqlActionInput { + clientMutationId?: string; + sqlAction: { + actionId: string; + actionName?: string; + actorId: string; + content?: string; + databaseId: string; + deploy?: string; + deps?: string[]; + name?: string; + payload?: Record; + revert?: string; + verify?: string; + }; +} +export interface SqlActionPatch { + actionId?: string | null; + actionName?: string | null; + actorId?: string | null; + content?: string | null; + databaseId?: string | null; + deploy?: string | null; + deps?: string[] | null; + name?: string | null; + payload?: Record | null; + revert?: string | null; + verify?: string | null; +} +export interface UpdateSqlActionInput { + clientMutationId?: string; + id: number; + sqlActionPatch: SqlActionPatch; +} +export interface DeleteSqlActionInput { + clientMutationId?: string; + id: number; +} export interface CreateTableBehaviorInput { clientMutationId?: string; tableBehavior: { @@ -13054,22 +14098,34 @@ export interface CreateTriggerInput { category?: ObjectCategory; databaseId?: string; event?: string; + events?: string[]; + forEachRow?: boolean; + functionId?: string; functionName?: string; + kind?: string; name: string; smartTags?: Record; tableId: string; tags?: string[]; + timing?: string; + whenAst?: Record; }; } export interface TriggerPatch { category?: ObjectCategory | null; databaseId?: string | null; event?: string | null; + events?: string[] | null; + forEachRow?: boolean | null; + functionId?: string | null; functionName?: string | null; + kind?: string | null; name?: string | null; smartTags?: Record | null; tableId?: string | null; tags?: string[] | null; + timing?: string | null; + whenAst?: Record | null; } export interface UpdateTriggerInput { clientMutationId?: string; @@ -13374,9 +14430,6 @@ export const connectionFieldsMap = { apiSchemas: 'ApiSchema', corsSettings: 'CorsSetting', }, - App: { - appComponents: 'AppComponent', - }, Database: { checkConstraints: 'CheckConstraint', compositeTypes: 'CompositeType', @@ -13416,7 +14469,6 @@ export const connectionFieldsMap = { Domain: { domainEvents: 'DomainEvent', domainVerifications: 'DomainVerification', - httpRoutes: 'HttpRoute', routes: 'Route', }, EmailIdentity: { @@ -13436,6 +14488,9 @@ export const connectionFieldsMap = { ForeignKeyConstraint: { foreignKeyConstraintBehaviors: 'ForeignKeyConstraintBehavior', }, + Function: { + triggers: 'Trigger', + }, ManagedDomain: { domainEvents: 'DomainEvent', domainVerifications: 'DomainVerification', @@ -13465,6 +14520,9 @@ export const connectionFieldsMap = { platformSiteModulesBySiteId: 'PlatformSiteModule', platformSiteThemesBySiteId: 'PlatformSiteTheme', }, + Redirect: { + routesByTargetRedirectId: 'Route', + }, Schema: { apiSchemas: 'ApiSchema', compositeTypes: 'CompositeType', @@ -13479,6 +14537,7 @@ export const connectionFieldsMap = { }, Site: { pages: 'Page', + routesByServingSiteId: 'Route', siteAppLinks: 'SiteAppLink', siteDeepLinks: 'SiteDeepLink', siteErrorPages: 'SiteErrorPage', @@ -13520,6 +14579,10 @@ export const connectionFieldsMap = { }, } as Record>; // ============ Custom Input Types (from schema) ============ +export interface AcceptDatabaseTransferInput { + clientMutationId?: string; + transferId?: string; +} export interface ApplyRlsInput { clientMutationId?: string; fieldIds?: string[]; @@ -13530,28 +14593,14 @@ export interface ApplyRlsInput { tableId?: string; vars?: Record; } -export interface AppsInstallAppInput { - apex?: string; - clientMutationId?: string; - config?: Record; - definitionIds?: string[]; - hostname?: string; - label?: string; - name?: string; - namespaceId?: string; - params?: Record; - routePath?: string; - slug?: string; - title?: string; -} -export interface AppsUninstallAppInput { +export interface CancelDatabaseTransferInput { clientMutationId?: string; - targetAppId?: string; + transferId?: string; } -export interface AppsUpgradeAppInput { +export interface DeleteSitePreviewInput { clientMutationId?: string; - newParams?: Record; - targetAppId?: string; + targetName?: string; + targetSiteId?: string; } export interface DomainsAssignSubdomainInput { apex?: string; @@ -13559,12 +14608,75 @@ export interface DomainsAssignSubdomainInput { label?: string; maxAttempts?: number; } +export interface MintSitePreviewTokenInput { + clientMutationId?: string; + siteId?: string; + target?: string; + targetKind?: string; + ttlSeconds?: number; +} +export interface PagesInstallPagesInput { + clientMutationId?: string; + entityId?: string; + pagesPreset?: string; + siteId?: string; +} +export interface PlatformDeleteSitePreviewInput { + clientMutationId?: string; + targetName?: string; + targetSiteId?: string; +} export interface PlatformDomainsAssignSubdomainInput { apex?: string; clientMutationId?: string; label?: string; maxAttempts?: number; } +export interface PlatformMintSitePreviewTokenInput { + clientMutationId?: string; + siteId?: string; + target?: string; + targetKind?: string; + ttlSeconds?: number; +} +export interface PlatformPagesInstallPagesInput { + clientMutationId?: string; + entityId?: string; + pagesPreset?: string; + siteId?: string; +} +export interface PlatformProvisionSitePreviewInput { + apex?: string; + clientMutationId?: string; + commitId?: string; + name?: string; + siteId?: string; +} +export interface PlatformSetSitePreviewInput { + clientMutationId?: string; + targetCommitId?: string; + targetName?: string; + targetSiteId?: string; +} +export interface PlatformSiteMetadataInstallRobotsInput { + clientMutationId?: string; + entityId?: string; + robotsPreset?: string; + siteId?: string; +} +export interface PlatformSitesInstallContentPresetInput { + clientMutationId?: string; + entityId?: string; + presetKind?: string; + presetSlug?: string; + siteId?: string; +} +export interface PlatformSitesInstallMantraInput { + clientMutationId?: string; + entityId?: string; + routePreset?: string; + siteId?: string; +} export interface PlatformSitesProvisionStaticSiteInput { apex?: string; clientMutationId?: string; @@ -13583,12 +14695,24 @@ export interface ProvisionBucketInput { */ ownerId?: string; } +export interface ProvisionSitePreviewInput { + apex?: string; + clientMutationId?: string; + commitId?: string; + name?: string; + siteId?: string; +} +export interface RejectDatabaseTransferInput { + clientMutationId?: string; + transferId?: string; +} export interface RequestDatabaseInput { clientMutationId?: string; databaseName?: string; domain?: string; modules?: Record; options?: Record; + organizationId?: string; presetSlug?: string; subdomain?: string; } @@ -13596,6 +14720,31 @@ export interface SetFieldOrderInput { clientMutationId?: string; fieldIds?: string[]; } +export interface SetSitePreviewInput { + clientMutationId?: string; + targetCommitId?: string; + targetName?: string; + targetSiteId?: string; +} +export interface SiteMetadataInstallRobotsInput { + clientMutationId?: string; + entityId?: string; + robotsPreset?: string; + siteId?: string; +} +export interface SitesInstallContentPresetInput { + clientMutationId?: string; + entityId?: string; + presetKind?: string; + presetSlug?: string; + siteId?: string; +} +export interface SitesInstallMantraInput { + clientMutationId?: string; + entityId?: string; + routePreset?: string; + siteId?: string; +} export interface SitesProvisionStaticSiteInput { apex?: string; clientMutationId?: string; @@ -13623,15 +14772,6 @@ export interface ApiToManyCorsSettingFilter { /** Filters to entities where at least one related entity matches. */ some?: CorsSettingFilter; } -/** A filter to be used against many `AppComponent` object types. All fields are combined with a logical ‘and.’ */ -export interface AppToManyAppComponentFilter { - /** Filters to entities where every related entity matches. */ - every?: AppComponentFilter; - /** Filters to entities where no related entity matches. */ - none?: AppComponentFilter; - /** Filters to entities where at least one related entity matches. */ - some?: AppComponentFilter; -} /** A filter to be used against ObjectCategory fields. All fields are combined with a logical ‘and.’ */ export interface ObjectCategoryFilter { /** Not equal to the specified value, treating null like an ordinary value. */ @@ -13981,15 +15121,6 @@ export interface DomainToManyDomainVerificationFilter { /** Filters to entities where at least one related entity matches. */ some?: DomainVerificationFilter; } -/** A filter to be used against many `HttpRoute` object types. All fields are combined with a logical ‘and.’ */ -export interface DomainToManyHttpRouteFilter { - /** Filters to entities where every related entity matches. */ - every?: HttpRouteFilter; - /** Filters to entities where no related entity matches. */ - none?: HttpRouteFilter; - /** Filters to entities where at least one related entity matches. */ - some?: HttpRouteFilter; -} /** A filter to be used against many `Route` object types. All fields are combined with a logical ‘and.’ */ export interface DomainToManyRouteFilter { /** Filters to entities where every related entity matches. */ @@ -14062,6 +15193,15 @@ export interface ForeignKeyConstraintToManyForeignKeyConstraintBehaviorFilter { /** Filters to entities where at least one related entity matches. */ some?: ForeignKeyConstraintBehaviorFilter; } +/** A filter to be used against many `Trigger` object types. All fields are combined with a logical ‘and.’ */ +export interface FunctionToManyTriggerFilter { + /** Filters to entities where every related entity matches. */ + every?: TriggerFilter; + /** Filters to entities where no related entity matches. */ + none?: TriggerFilter; + /** Filters to entities where at least one related entity matches. */ + some?: TriggerFilter; +} /** A filter to be used against many `DomainEvent` object types. All fields are combined with a logical ‘and.’ */ export interface ManagedDomainToManyDomainEventFilter { /** Filters to entities where every related entity matches. */ @@ -14232,6 +15372,15 @@ export interface ConstructiveInternalTypeImageFilter { /** Not included in the specified list. */ notIn?: ConstructiveInternalTypeImage[]; } +/** A filter to be used against many `Route` object types. All fields are combined with a logical ‘and.’ */ +export interface RedirectToManyRouteFilter { + /** Filters to entities where every related entity matches. */ + every?: RouteFilter; + /** Filters to entities where no related entity matches. */ + none?: RouteFilter; + /** Filters to entities where at least one related entity matches. */ + some?: RouteFilter; +} /** A filter to be used against ApiExposureLevel fields. All fields are combined with a logical ‘and.’ */ export interface ApiExposureLevelFilter { /** Not equal to the specified value, treating null like an ordinary value. */ @@ -14356,6 +15505,15 @@ export interface SiteToManyPageFilter { /** Filters to entities where at least one related entity matches. */ some?: PageFilter; } +/** A filter to be used against many `Route` object types. All fields are combined with a logical ‘and.’ */ +export interface SiteToManyRouteFilter { + /** Filters to entities where every related entity matches. */ + every?: RouteFilter; + /** Filters to entities where no related entity matches. */ + none?: RouteFilter; + /** Filters to entities where at least one related entity matches. */ + some?: RouteFilter; +} /** A filter to be used against many `SiteAppLink` object types. All fields are combined with a logical ‘and.’ */ export interface SiteToManySiteAppLinkFilter { /** Filters to entities where every related entity matches. */ @@ -14657,6 +15815,8 @@ export interface ApiSettingInput { enableDirectUploads?: boolean; /** Override: enable internationalization plugin (NULL = inherit from database_settings) */ enableI18N?: boolean; + /** Override: enable GraphQL schema introspection queries (NULL = inherit from database_settings) */ + enableIntrospection?: 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) */ @@ -14672,54 +15832,32 @@ export interface ApiSettingInput { /** Override: enable unified search (NULL = inherit from database_settings) */ enableSearch?: boolean; id?: string; + /** Override: idle-in-transaction timeout in milliseconds (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + idleInTransactionTimeoutMs?: string; + /** Override: lock acquisition timeout in milliseconds (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + lockTimeoutMs?: string; + /** Override: maximum concurrently executing GraphQL requests (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + maxConcurrentRequests?: number; + /** Override: maximum page size for connection queries (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + maxPageSize?: number; + /** Override: maximum GraphQL query cost (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + maxQueryCost?: number; + /** Override: maximum GraphQL query depth (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + maxQueryDepth?: number; + /** Override: maximum time in milliseconds a request may wait for a concurrency slot (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + maxQueueWaitMs?: number; + /** Override: maximum request body size in bytes (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + maxRequestBytes?: number; /** Extensible JSON for additional per-API settings that do not have dedicated columns */ options?: Record; + /** Override: rate-limit burst allowance (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + rateLimitBurst?: number; + /** Override: request rate limit in requests per minute (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + rateLimitRpm?: number; /** Override: GraphQL statement timeout in milliseconds (NULL = inherit from database_settings). Clamped by the plan cap at read time. */ statementTimeoutMs?: string; updatedAt?: string; } -/** An input for mutations affecting `AppComponent` */ -export interface AppComponentInput { - /** App this component belongs to */ - appId: string; - /** Typed catalog api row of the component surface; must be owner-matched or visible cross-scope */ - componentApiId?: string; - /** Typed catalog domain row of the component surface; must be owner-matched or visible cross-scope */ - componentDomainId?: string; - /** Typed catalog resource installation row of the component release; must be owner-matched or visible cross-scope */ - componentInstallationId?: string; - /** Typed catalog site row of the component surface; must be owner-matched or visible cross-scope */ - componentSiteId?: string; - /** Which kind of catalog row this component binds (api, site, domain, installation) */ - componentType?: string; - /** Component-specific configuration inside this app */ - config?: Record; - createdAt?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - id?: string; - updatedAt?: string; -} -/** An input for mutations affecting `App` */ -export interface AppInput { - /** Module-specific configuration for this app */ - config?: Record; - createdAt?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - /** Human-readable app description */ - description?: string; - id?: string; - /** Whether other scopes may see and reference this app */ - isPublished?: boolean; - /** Owner-local app name */ - name: string; - /** App lifecycle status: active, suspended, archived */ - status?: string; - /** Human-readable app title */ - title?: string; - updatedAt?: string; -} /** An input for mutations affecting `CheckConstraint` */ export interface CheckConstraintInput { category?: ObjectCategory; @@ -14782,6 +15920,8 @@ export interface DatabaseSettingInput { databaseId: string; /** Enable aggregate queries (sum, avg, min, max, etc.) in the GraphQL API */ enableAggregates?: boolean; + /** Enable billing: financial provider actions (customer/subscription/usage sync, overdue sweep) are refused while false. Activation gate for the billing rollout — flipped only after billing:doctor passes. */ + enableBilling?: boolean; /** Enable bulk mutation operations (insert, upsert, update, delete) in the GraphQL API */ enableBulk?: boolean; /** Enable connection filter (where argument) in the GraphQL API */ @@ -14790,6 +15930,8 @@ export interface DatabaseSettingInput { enableDirectUploads?: boolean; /** Enable internationalization plugin (localeStrings field, translation table discovery) in the GraphQL API */ enableI18N?: boolean; + /** Enable GraphQL schema introspection queries in the GraphQL API. A tenant may only ever lower a bound, so the stored default is the permissive end: turning introspection off is the opt-in. */ + enableIntrospection?: boolean; /** Enable LLM/AI integration features in the GraphQL API */ enableLlm?: boolean; /** Enable ltree hierarchical data type support in the GraphQL API */ @@ -14805,10 +15947,30 @@ export interface DatabaseSettingInput { /** Enable unified search (tsvector, BM25, pg_trgm, pgvector) in the GraphQL API */ enableSearch?: boolean; id?: string; + /** Scope-wide default idle-in-transaction timeout in milliseconds; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. */ + idleInTransactionTimeoutMs?: string; /** Key/value pairs for selecting and filtering settings */ labels?: Record; + /** Scope-wide default lock acquisition timeout in milliseconds; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. */ + lockTimeoutMs?: string; + /** Scope-wide default maximum concurrently executing GraphQL requests; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. */ + maxConcurrentRequests?: number; + /** Scope-wide default maximum page size for connection queries; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. */ + maxPageSize?: number; + /** Scope-wide default maximum GraphQL query cost; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. */ + maxQueryCost?: number; + /** Scope-wide default maximum GraphQL query depth; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. */ + maxQueryDepth?: number; + /** Scope-wide default maximum time in milliseconds a request may wait for a concurrency slot; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. */ + maxQueueWaitMs?: number; + /** Scope-wide default maximum request body size in bytes; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. */ + maxRequestBytes?: number; /** Extensible JSON for additional settings that do not have dedicated columns */ options?: Record; + /** Scope-wide default rate-limit burst allowance; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. */ + rateLimitBurst?: number; + /** Scope-wide default request rate limit in requests per minute; NULL inherits the platform default (a code constant). Effective value is clamped to the platform floor/ceiling — a scope may only lower it. */ + rateLimitRpm?: number; /** Scope-wide default GraphQL statement timeout in milliseconds; NULL inherits the platform default. Clamped by the plan cap at read time. */ statementTimeoutMs?: string; updatedAt?: string; @@ -14845,6 +16007,7 @@ export interface DeriveInput { createdAt?: string; databaseId?: string; id?: string; + includeGrants?: boolean; includeMutations?: boolean; kind: string; policyPrefix?: string; @@ -14857,6 +16020,7 @@ export interface DomainInput { /** Module-specific configuration for this hostname */ config?: Record; createdAt?: string; + createdByPrincipal?: string; /** Database that owns this resource (database-scoped isolation) */ databaseId: string; /** Lowercase fully-qualified hostname; wildcards use the *.parent form */ @@ -14877,6 +16041,7 @@ export interface DomainInput { /** Certificate lifecycle state for this hostname */ tlsStatus?: string; updatedAt?: string; + updatedByPrincipal?: string; /** Ownership verification state of this hostname */ verificationStatus?: string; /** When ownership verification last succeeded */ @@ -14884,7 +16049,7 @@ export interface DomainInput { } /** An input for mutations affecting `DomainEvent` */ export interface DomainEventInput { - /** User who triggered this event, if any */ + /** User who triggered this event; NULL only when no human actor was proven */ actorId?: string; createdAt?: string; /** Database that owns this resource (database-scoped isolation) */ @@ -15165,10 +16330,23 @@ export interface FullTextSearchInput { } /** An input for mutations affecting `Function` */ export interface FunctionInput { + apiExposed?: boolean; + arguments?: Record; + bodyAst?: Record; + category?: ObjectCategory; + data?: Record; databaseId: string; + functionType?: string; id?: string; + isStrict?: boolean; + kind?: string; name: string; + returns?: Record; schemaId: string; + securityInvoker?: boolean; + smartTags?: Record; + tags?: string[]; + volatility?: string; } /** An input for mutations affecting `HostnameBinding` */ export interface HostnameBindingInput { @@ -15192,29 +16370,16 @@ export interface HostnameBindingInput { /** Ownership verification state compiled from the domain row */ verificationStatus?: string; } -/** An input for mutations affecting `HttpRoute` */ -export interface HttpRouteInput { - createdAt?: string; - createdBy?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - /** Registered host in the scoped routing domains table */ - domainId: string; - id?: string; - /** 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?: number; - /** Target row of the type named by target_kind; existence enforced by trigger */ - targetId: string; - /** Discriminator selecting the type of target_id */ - targetKind: string; - updatedAt?: string; - updatedBy?: string; +/** An input for mutations affecting `IdentityProviderRegistry` */ +export interface IdentityProviderRegistryInput { + authorizationUrl?: string; + displayName: string; + issuerUrl?: string; + kind: string; + scopes?: string[]; + slug: string; + tokenUrl?: string; + userinfoUrl?: string; } /** An input for mutations affecting `Index` */ export interface IndexInput { @@ -15228,6 +16393,7 @@ export interface IndexInput { indexParams?: Record; isUnique?: boolean; name?: string; + nullsNotDistinct?: boolean; opClasses?: string[]; options?: Record; smartTags?: Record; @@ -15245,6 +16411,7 @@ export interface ManagedDomainInput { /** Certificate issuance state for this managed hostname */ certStatus?: string; createdAt?: string; + createdByPrincipal?: string; /** Database that owns this resource (database-scoped isolation) */ databaseId: string; /** Lowercase fully-qualified managed hostname; wildcards use the *.parent form */ @@ -15257,6 +16424,7 @@ export interface ManagedDomainInput { /** TLS provisioning state for this managed hostname */ tlsStatus?: string; updatedAt?: string; + updatedByPrincipal?: string; /** DNS ownership verification state of this managed hostname */ verificationStatus?: string; /** When ownership verification last succeeded */ @@ -15284,6 +16452,8 @@ export interface PageInput { databaseId: string; /** Unique page identifier */ id?: string; + /** Provenance of a seeded page: the content preset (kind, slug, catalog commit_id) it was installed from, or NULL when authored directly */ + seededFrom?: Record; /** Site surface this page belongs to; each site owns its own infra store and pages live at path [page, slug] within it */ siteId: string; /** Page slug (unique per site) */ @@ -15352,6 +16522,8 @@ export interface PlatformApiSettingInput { enableDirectUploads?: boolean; /** Override: enable internationalization plugin (NULL = inherit from database_settings) */ enableI18N?: boolean; + /** Override: enable GraphQL schema introspection queries (NULL = inherit from database_settings) */ + enableIntrospection?: 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) */ @@ -15367,8 +16539,28 @@ export interface PlatformApiSettingInput { /** Override: enable unified search (NULL = inherit from database_settings) */ enableSearch?: boolean; id?: string; + /** Override: idle-in-transaction timeout in milliseconds (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + idleInTransactionTimeoutMs?: string; + /** Override: lock acquisition timeout in milliseconds (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + lockTimeoutMs?: string; + /** Override: maximum concurrently executing GraphQL requests (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + maxConcurrentRequests?: number; + /** Override: maximum page size for connection queries (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + maxPageSize?: number; + /** Override: maximum GraphQL query cost (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + maxQueryCost?: number; + /** Override: maximum GraphQL query depth (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + maxQueryDepth?: number; + /** Override: maximum time in milliseconds a request may wait for a concurrency slot (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + maxQueueWaitMs?: number; + /** Override: maximum request body size in bytes (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + maxRequestBytes?: number; /** Extensible JSON for additional per-API settings that do not have dedicated columns */ options?: Record; + /** Override: rate-limit burst allowance (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + rateLimitBurst?: number; + /** Override: request rate limit in requests per minute (NULL = inherit from database_settings). Clamped to the platform floor/ceiling at read time — lower only. */ + rateLimitRpm?: number; /** Override: GraphQL statement timeout in milliseconds (NULL = inherit from database_settings). Clamped by the plan cap at read time. */ statementTimeoutMs?: string; updatedAt?: string; @@ -15388,6 +16580,7 @@ export interface PlatformDomainInput { /** Module-specific configuration for this hostname */ config?: Record; createdAt?: string; + createdByPrincipal?: string; /** Lowercase fully-qualified hostname; wildcards use the *.parent form */ hostname: string; id?: string; @@ -15406,6 +16599,7 @@ export interface PlatformDomainInput { /** Certificate lifecycle state for this hostname */ tlsStatus?: string; updatedAt?: string; + updatedByPrincipal?: string; /** Ownership verification state of this hostname */ verificationStatus?: string; /** When ownership verification last succeeded */ @@ -15413,7 +16607,7 @@ export interface PlatformDomainInput { } /** An input for mutations affecting `PlatformDomainEvent` */ export interface PlatformDomainEventInput { - /** User who triggered this event, if any */ + /** User who triggered this event; NULL only when no human actor was proven */ actorId?: string; createdAt?: string; /** Scoped domain this event belongs to */ @@ -15534,6 +16728,7 @@ export interface PlatformManagedDomainInput { /** Certificate issuance state for this managed hostname */ certStatus?: string; createdAt?: string; + createdByPrincipal?: string; /** Lowercase fully-qualified managed hostname; wildcards use the *.parent form */ domain: string; id?: string; @@ -15544,6 +16739,7 @@ export interface PlatformManagedDomainInput { /** TLS provisioning state for this managed hostname */ tlsStatus?: string; updatedAt?: string; + updatedByPrincipal?: string; /** DNS ownership verification state of this managed hostname */ verificationStatus?: string; /** When ownership verification last succeeded */ @@ -15559,6 +16755,8 @@ export interface PlatformPageInput { createdAt?: string; /** Unique page identifier */ id?: string; + /** Provenance of a seeded page: the content preset (kind, slug, catalog commit_id) it was installed from, or NULL when authored directly */ + seededFrom?: Record; /** Site surface this page belongs to; each site owns its own infra store and pages live at path [page, slug] within it */ siteId: string; /** Page slug (unique per site) */ @@ -15570,22 +16768,14 @@ export interface PlatformPageInput { } /** An input for mutations affecting `PlatformSiteAppLink` */ export interface PlatformSiteAppLinkInput { - /** App identifier: iOS bundle id or Android package name */ - appIdentifier: string; + /** App-owned store identity this association serves (app_store_identities row in this scope's app plane; the association carries no store facts of its own) */ + appStoreIdentityId: string; createdAt?: string; id?: string; /** Path patterns this association applies to (AASA paths / Android intent-filter paths) */ pathComponents?: string[]; - /** Target platform for this association (ios, android) */ - platform: string; - /** Android signing certificate SHA-256 fingerprints for assetlinks.json */ - sha256CertFingerprints?: string[]; /** Site surface this app-link association belongs to */ siteId: string; - /** App/Play store URL for this app (used by install banners and fallbacks) */ - storeUrl?: string; - /** Apple Developer team id (iOS); combined with app_identifier to form the AASA appID */ - teamId?: string; updatedAt?: string; /** Whether to emit the webcredentials service (iOS shared-web-credentials / password autofill) */ webcredentials?: boolean; @@ -15594,13 +16784,14 @@ export interface PlatformSiteAppLinkInput { export interface PlatformSiteInput { /** Infra-store commit pinned as the live page content for this site (manual publish pointer; NULL = nothing published yet) */ activeCommitId?: string; - /** Catalog bucket that backs this site (static content store; exactly one of bucket_id/resource_id) */ + /** Bucket that backs this site (static content store; exactly one of bucket_id/resource_id) */ bucketId?: string; createdAt?: string; + createdByPrincipal?: string; /** Human-readable site description */ description?: string; id?: string; - /** Catalog resource_installation (release) that backs this site; the servable member is named by installation_member_slug (exactly one of bucket_id/resource_id/installation_id) */ + /** Resource installation (release) that backs this site; the servable member is named by installation_member_slug (exactly one of bucket_id/resource_id/installation_id) */ installationId?: string; /** Slug of the release member (a Service resource) that serves this site; set iff installation_id is set */ installationMemberSlug?: string; @@ -15608,11 +16799,12 @@ export interface PlatformSiteInput { isPublished?: boolean; /** Owner-local site surface name */ name: string; - /** Catalog resource/service that backs this site (SSR/app Service pinned to one concrete resource row; exactly one of bucket_id/resource_id/installation_id) */ + /** Resource/service that backs this site (SSR/app Service pinned to one concrete resource row; exactly one of bucket_id/resource_id/installation_id) */ resourceId?: string; /** Human-readable site title */ title?: string; updatedAt?: string; + updatedByPrincipal?: string; } /** An input for mutations affecting `PlatformSiteDeepLink` */ export interface PlatformSiteDeepLinkInput { @@ -15624,6 +16816,8 @@ export interface PlatformSiteDeepLinkInput { id?: string; /** Additional link metadata (campaign/UTM parameters, escape hatch) */ metadata?: Record; + /** Page this link's web_path resolves to (soft reference into the pages module; NULL for external or non-page targets) */ + pageId?: string; /** Site surface this deep link belongs to (the hostname plane that serves it) */ siteId: string; /** Link name unique per site; addressed at the deep-link path prefix (e.g. /l/) */ @@ -15664,6 +16858,8 @@ export interface PlatformSiteMetadatumInput { ogImage?: ConstructiveInternalTypeImage; /** robots meta directive (e.g. index,follow / noindex,nofollow) */ robots?: string; + /** Provenance of the robots value: the content preset (kind, slug, catalog commit_id) an install applied, or NULL when it was authored directly */ + robotsSeededFrom?: Record; /** Site surface this metadata belongs to */ siteId: string; /** Infra Merkle store holding this row's history (stamped by the versioned trigger) */ @@ -15688,6 +16884,20 @@ export interface PlatformSiteModuleInput { siteId: string; updatedAt?: string; } +/** An input for mutations affecting `PlatformSiteRelease` */ +export interface PlatformSiteReleaseInput { + /** Infra store commit for the current content (stamped by the versioned trigger on every write) */ + commitId?: string; + createdAt?: string; + id?: string; + /** Release manifest: {"files":{"":{"hash":"<64-hex sha256>","content_type":"...","size":123}},"file_count":N,"total_bytes":N} */ + manifest: Record; + /** Site surface this release manifest belongs to */ + siteId: string; + /** Infra Merkle store holding this row's history (stamped by the versioned trigger) */ + storeId?: string; + updatedAt?: string; +} /** An input for mutations affecting `PlatformSiteTheme` */ export interface PlatformSiteThemeInput { /** Infra store commit for the current content (stamped by the versioned trigger on every write) */ @@ -15725,6 +16935,8 @@ export interface PlatformSiteWebConfigInput { /** An input for mutations affecting `Policy` */ export interface PolicyInput { category?: ObjectCategory; + /** Columns of this policy's table that its expression filters on. Stamped when the policy is derived onto a companion table, so a consumer needing those columns (e.g. a chunking worker copying them from the parent row) reads them here instead of re-walking the node type's parameter schema. */ + columnRefs?: string[]; createdAt?: string; data?: Record; databaseId?: string; @@ -15783,6 +16995,26 @@ export interface PubkeySettingInput { /** Field name used to identify the user in crypto auth functions */ userField?: string; } +/** An input for mutations affecting `Redirect` */ +export interface RedirectInput { + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + id?: string; + /** Owner-local name for this redirect */ + name: string; + /** Whether the incoming path is appended to the destination */ + preservePath?: boolean; + /** Whether the incoming query string is carried to the destination */ + preserveQuery?: boolean; + /** HTTP redirect status the edge answers with (301, 302, 307 or 308) */ + statusCode?: number; + /** Destination hostname the edge redirects to */ + toHost: string; + /** Destination path; NULL keeps the incoming path (see preserve_path) */ + toPath?: string; + updatedAt?: string; +} /** An input for mutations affecting `RlsSetting` */ export interface RlsSettingInput { /** Reference to the authenticate function (FK to metaschema_public.function) */ @@ -15820,12 +17052,16 @@ export interface RouteBindingInput { path: string; /** Priority compiled from the source route */ priority?: number; + /** Site whose surface the source route serves; NULL when it serves no site */ + servingSiteId?: string; /** Api catalog row the source route targets */ targetApiId?: string; /** Bucket catalog row the source route targets */ targetBucketId?: string; /** Function catalog row the source route targets */ targetFunctionId?: string; + /** Redirect catalog row the source route targets */ + targetRedirectId?: string; /** Resource catalog row (a Service resource) the source route targets */ targetServiceId?: string; /** Site catalog row the source route targets */ @@ -15835,6 +17071,8 @@ export interface RouteBindingInput { } /** An input for mutations affecting `Route` */ export interface RouteInput { + /** Whether this route answers callers with no identity. Requires the target function to declare anonymous_callable; default false = an identity is required */ + anonymous?: boolean; /** Route metadata; target configuration is read live from the typed catalog, never copied here */ config?: Record; createdAt?: string; @@ -15849,17 +17087,23 @@ export interface RouteInput { method?: string; /** Path prefix this route matches; must begin with / and carry no trailing slash */ path?: string; + /** The site preview this route serves; NULL serves the site's published release */ + previewRef?: string; /** Higher priority wins between otherwise-equal matches */ priority?: number; - /** Api catalog row this route targets; must be owner-matched or visible cross-scope */ + /** Site whose surface this route serves; the serving lane renders as this site. NULL when the route serves no site */ + servingSiteId?: string; + /** Api surface this route targets; must be this scope's own api */ targetApiId?: string; - /** Bucket catalog row this route targets; must be a public bucket that is owner-matched or visible cross-scope */ + /** Bucket this route targets; must be a public bucket in this scope's own storage plane */ targetBucketId?: string; - /** Function catalog row this route targets; must be owner-matched or visible cross-scope */ + /** Function this route targets; must be this scope's own function */ targetFunctionId?: string; - /** Resource catalog row (a Service resource) this route targets; must be owner-matched or visible cross-scope */ + /** Redirect this route targets; the edge answers with a redirect status instead of proxying a backend */ + targetRedirectId?: string; + /** Resource (a Service resource) this route targets; must be this scope's own resource */ targetServiceId?: string; - /** Site catalog row this route targets; must be owner-matched or visible cross-scope */ + /** Site surface this route targets; must be this scope's own site */ targetSiteId?: string; updatedAt?: string; } @@ -15890,24 +17134,16 @@ export interface SchemaGrantInput { } /** An input for mutations affecting `SiteAppLink` */ export interface SiteAppLinkInput { - /** App identifier: iOS bundle id or Android package name */ - appIdentifier: string; + /** App-owned store identity this association serves (app_store_identities row in this scope's app plane; the association carries no store facts of its own) */ + appStoreIdentityId: string; createdAt?: string; /** Database that owns this resource (database-scoped isolation) */ databaseId: string; id?: string; /** Path patterns this association applies to (AASA paths / Android intent-filter paths) */ pathComponents?: string[]; - /** Target platform for this association (ios, android) */ - platform: string; - /** Android signing certificate SHA-256 fingerprints for assetlinks.json */ - sha256CertFingerprints?: string[]; /** Site surface this app-link association belongs to */ siteId: string; - /** App/Play store URL for this app (used by install banners and fallbacks) */ - storeUrl?: string; - /** Apple Developer team id (iOS); combined with app_identifier to form the AASA appID */ - teamId?: string; updatedAt?: string; /** Whether to emit the webcredentials service (iOS shared-web-credentials / password autofill) */ webcredentials?: boolean; @@ -15916,15 +17152,16 @@ export interface SiteAppLinkInput { export interface SiteInput { /** Infra-store commit pinned as the live page content for this site (manual publish pointer; NULL = nothing published yet) */ activeCommitId?: string; - /** Catalog bucket that backs this site (static content store; exactly one of bucket_id/resource_id) */ + /** Bucket that backs this site (static content store; exactly one of bucket_id/resource_id) */ bucketId?: string; createdAt?: string; + createdByPrincipal?: string; /** Database that owns this resource (database-scoped isolation) */ databaseId: string; /** Human-readable site description */ description?: string; id?: string; - /** Catalog resource_installation (release) that backs this site; the servable member is named by installation_member_slug (exactly one of bucket_id/resource_id/installation_id) */ + /** Resource installation (release) that backs this site; the servable member is named by installation_member_slug (exactly one of bucket_id/resource_id/installation_id) */ installationId?: string; /** Slug of the release member (a Service resource) that serves this site; set iff installation_id is set */ installationMemberSlug?: string; @@ -15932,11 +17169,12 @@ export interface SiteInput { isPublished?: boolean; /** Owner-local site surface name */ name: string; - /** Catalog resource/service that backs this site (SSR/app Service pinned to one concrete resource row; exactly one of bucket_id/resource_id/installation_id) */ + /** Resource/service that backs this site (SSR/app Service pinned to one concrete resource row; exactly one of bucket_id/resource_id/installation_id) */ resourceId?: string; /** Human-readable site title */ title?: string; updatedAt?: string; + updatedByPrincipal?: string; } /** An input for mutations affecting `SiteDeepLink` */ export interface SiteDeepLinkInput { @@ -15950,6 +17188,8 @@ export interface SiteDeepLinkInput { id?: string; /** Additional link metadata (campaign/UTM parameters, escape hatch) */ metadata?: Record; + /** Page this link's web_path resolves to (soft reference into the pages module; NULL for external or non-page targets) */ + pageId?: string; /** Site surface this deep link belongs to (the hostname plane that serves it) */ siteId: string; /** Link name unique per site; addressed at the deep-link path prefix (e.g. /l/) */ @@ -15994,6 +17234,8 @@ export interface SiteMetadatumInput { ogImage?: ConstructiveInternalTypeImage; /** robots meta directive (e.g. index,follow / noindex,nofollow) */ robots?: string; + /** Provenance of the robots value: the content preset (kind, slug, catalog commit_id) an install applied, or NULL when it was authored directly */ + robotsSeededFrom?: Record; /** Site surface this metadata belongs to */ siteId: string; /** Infra Merkle store holding this row's history (stamped by the versioned trigger) */ @@ -16020,6 +17262,22 @@ export interface SiteModuleInput { siteId: string; updatedAt?: string; } +/** An input for mutations affecting `SiteRelease` */ +export interface SiteReleaseInput { + /** Infra store commit for the current content (stamped by the versioned trigger on every write) */ + commitId?: string; + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + id?: string; + /** Release manifest: {"files":{"":{"hash":"<64-hex sha256>","content_type":"...","size":123}},"file_count":N,"total_bytes":N} */ + manifest: Record; + /** Site surface this release manifest belongs to */ + siteId: string; + /** Infra Merkle store holding this row's history (stamped by the versioned trigger) */ + storeId?: string; + updatedAt?: string; +} /** An input for mutations affecting `SiteTheme` */ export interface SiteThemeInput { /** Infra store commit for the current content (stamped by the versioned trigger on every write) */ @@ -16130,13 +17388,19 @@ export interface TriggerInput { createdAt?: string; databaseId?: string; event?: string; + events?: string[]; + forEachRow?: boolean; + functionId?: string; functionName?: string; id?: string; + kind?: string; name: string; smartTags?: Record; tableId: string; tags?: string[]; + timing?: string; updatedAt?: string; + whenAst?: Record; } /** An input for mutations affecting `TriggerFunction` */ export interface TriggerFunctionInput { @@ -16325,39 +17589,6 @@ export interface CorsSettingFilter { /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } -/** A filter to be used against `AppComponent` object types. All fields are combined with a logical ‘and.’ */ -export interface AppComponentFilter { - /** Checks for all expressions in this list. */ - and?: AppComponentFilter[]; - /** Filter by the object’s `app` relation. */ - app?: AppFilter; - /** Filter by the object’s `appId` field. */ - appId?: UUIDFilter; - /** Filter by the object’s `componentApiId` field. */ - componentApiId?: UUIDFilter; - /** Filter by the object’s `componentDomainId` field. */ - componentDomainId?: UUIDFilter; - /** Filter by the object’s `componentInstallationId` field. */ - componentInstallationId?: UUIDFilter; - /** Filter by the object’s `componentSiteId` field. */ - componentSiteId?: UUIDFilter; - /** Filter by the object’s `componentType` field. */ - componentType?: StringFilter; - /** Filter by the object’s `config` field. */ - config?: 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?: AppComponentFilter; - /** Checks for any expressions in this list. */ - or?: AppComponentFilter[]; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} /** A filter to be used against `CheckConstraint` object types. All fields are combined with a logical ‘and.’ */ export interface CheckConstraintFilter { /** Checks for all expressions in this list. */ @@ -16510,6 +17741,8 @@ export interface DeriveFilter { databaseId?: UUIDFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `includeGrants` field. */ + includeGrants?: BooleanFilter; /** Filter by the object’s `includeMutations` field. */ includeMutations?: BooleanFilter; /** Filter by the object’s `kind` field. */ @@ -16954,22 +18187,52 @@ export interface FullTextSearchFilter { export interface FunctionFilter { /** Checks for all expressions in this list. */ and?: FunctionFilter[]; + /** Filter by the object’s `apiExposed` field. */ + apiExposed?: BooleanFilter; + /** Filter by the object’s `arguments` field. */ + arguments?: JSONFilter; + /** Filter by the object’s `bodyAst` field. */ + bodyAst?: JSONFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `data` field. */ + data?: JSONFilter; /** Filter by the object’s `database` relation. */ database?: DatabaseFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `functionType` field. */ + functionType?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `isStrict` field. */ + isStrict?: BooleanFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; /** Negates the expression. */ not?: FunctionFilter; /** Checks for any expressions in this list. */ or?: FunctionFilter[]; + /** Filter by the object’s `returns` field. */ + returns?: JSONFilter; /** Filter by the object’s `schema` relation. */ schema?: SchemaFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; + /** Filter by the object’s `securityInvoker` field. */ + securityInvoker?: BooleanFilter; + /** Filter by the object’s `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Filter by the object’s `triggers` relation. */ + triggers?: FunctionToManyTriggerFilter; + /** `triggers` exist. */ + triggersExist?: boolean; + /** Filter by the object’s `volatility` field. */ + volatility?: StringFilter; } /** A filter to be used against `Index` object types. All fields are combined with a logical ‘and.’ */ export interface IndexFilter { @@ -16999,6 +18262,8 @@ export interface IndexFilter { name?: StringFilter; /** Negates the expression. */ not?: IndexFilter; + /** Filter by the object’s `nullsNotDistinct` field. */ + nullsNotDistinct?: BooleanFilter; /** Filter by the object’s `opClasses` field. */ opClasses?: StringListFilter; /** Filter by the object’s `options` field. */ @@ -17065,6 +18330,8 @@ export interface PolicyFilter { and?: PolicyFilter[]; /** Filter by the object’s `category` field. */ category?: ObjectCategoryFilter; + /** Filter by the object’s `columnRefs` field. */ + columnRefs?: StringListFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `data` field. */ @@ -17556,10 +18823,22 @@ export interface TriggerFilter { databaseId?: UUIDFilter; /** Filter by the object’s `event` field. */ event?: StringFilter; + /** Filter by the object’s `events` field. */ + events?: StringListFilter; + /** Filter by the object’s `forEachRow` field. */ + forEachRow?: BooleanFilter; + /** Filter by the object’s `function` relation. */ + function?: FunctionFilter; + /** A related `function` exists. */ + functionExists?: boolean; + /** Filter by the object’s `functionId` field. */ + functionId?: UUIDFilter; /** Filter by the object’s `functionName` field. */ functionName?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; /** Negates the expression. */ @@ -17574,8 +18853,12 @@ export interface TriggerFilter { tableId?: UUIDFilter; /** Filter by the object’s `tags` field. */ tags?: StringListFilter; + /** Filter by the object’s `timing` field. */ + timing?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `whenAst` field. */ + whenAst?: JSONFilter; } /** A filter to be used against `UniqueConstraintBehavior` object types. All fields are combined with a logical ‘and.’ */ export interface UniqueConstraintBehaviorFilter { @@ -17916,47 +19199,12 @@ export interface DomainVerificationFilter { /** Filter by the object’s `verifiedAt` field. */ verifiedAt?: DatetimeFilter; } -/** A filter to be used against `HttpRoute` object types. All fields are combined with a logical ‘and.’ */ -export interface HttpRouteFilter { - /** Checks for all expressions in this list. */ - and?: HttpRouteFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `domain` relation. */ - domain?: DomainFilter; - /** Filter by the object’s `domainId` field. */ - domainId?: 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; - /** Negates the expression. */ - not?: HttpRouteFilter; - /** 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; - /** Filter by the object’s `targetId` field. */ - targetId?: UUIDFilter; - /** Filter by the object’s `targetKind` field. */ - targetKind?: StringFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; -} /** A filter to be used against `Route` object types. All fields are combined with a logical ‘and.’ */ export interface RouteFilter { /** Checks for all expressions in this list. */ and?: RouteFilter[]; + /** Filter by the object’s `anonymous` field. */ + anonymous?: BooleanFilter; /** Filter by the object’s `config` field. */ config?: JSONFilter; /** Filter by the object’s `createdAt` field. */ @@ -17979,16 +19227,38 @@ export interface RouteFilter { or?: RouteFilter[]; /** Filter by the object’s `path` field. */ path?: StringFilter; + /** Filter by the object’s `previewRef` field. */ + previewRef?: StringFilter; /** Filter by the object’s `priority` field. */ priority?: IntFilter; + /** Filter by the object’s `servingSite` relation. */ + servingSite?: SiteFilter; + /** A related `servingSite` exists. */ + servingSiteExists?: boolean; + /** Filter by the object’s `servingSiteId` field. */ + servingSiteId?: UUIDFilter; + /** Filter by the object’s `targetApi` relation. */ + targetApi?: ApiFilter; + /** A related `targetApi` exists. */ + targetApiExists?: boolean; /** Filter by the object’s `targetApiId` field. */ targetApiId?: UUIDFilter; /** Filter by the object’s `targetBucketId` field. */ targetBucketId?: UUIDFilter; /** Filter by the object’s `targetFunctionId` field. */ targetFunctionId?: UUIDFilter; + /** Filter by the object’s `targetRedirect` relation. */ + targetRedirect?: RedirectFilter; + /** A related `targetRedirect` exists. */ + targetRedirectExists?: boolean; + /** Filter by the object’s `targetRedirectId` field. */ + targetRedirectId?: UUIDFilter; /** Filter by the object’s `targetServiceId` field. */ targetServiceId?: UUIDFilter; + /** Filter by the object’s `targetSite` relation. */ + targetSite?: SiteFilter; + /** A related `targetSite` exists. */ + targetSiteExists?: boolean; /** Filter by the object’s `targetSiteId` field. */ targetSiteId?: UUIDFilter; /** Filter by the object’s `updatedAt` field. */ @@ -18253,6 +19523,8 @@ export interface PlatformPageFilter { not?: PlatformPageFilter; /** Checks for any expressions in this list. */ or?: PlatformPageFilter[]; + /** Filter by the object’s `seededFrom` field. */ + seededFrom?: JSONFilter; /** Filter by the object’s `site` relation. */ site?: PlatformSiteFilter; /** Filter by the object’s `siteId` field. */ @@ -18268,8 +19540,8 @@ export interface PlatformPageFilter { export interface PlatformSiteAppLinkFilter { /** Checks for all expressions in this list. */ and?: PlatformSiteAppLinkFilter[]; - /** Filter by the object’s `appIdentifier` field. */ - appIdentifier?: StringFilter; + /** Filter by the object’s `appStoreIdentityId` field. */ + appStoreIdentityId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -18280,18 +19552,10 @@ export interface PlatformSiteAppLinkFilter { or?: PlatformSiteAppLinkFilter[]; /** Filter by the object’s `pathComponents` field. */ pathComponents?: StringListFilter; - /** Filter by the object’s `platform` field. */ - platform?: StringFilter; - /** Filter by the object’s `sha256CertFingerprints` field. */ - sha256CertFingerprints?: StringListFilter; /** Filter by the object’s `site` relation. */ site?: PlatformSiteFilter; /** Filter by the object’s `siteId` field. */ siteId?: UUIDFilter; - /** Filter by the object’s `storeUrl` field. */ - storeUrl?: StringFilter; - /** Filter by the object’s `teamId` field. */ - teamId?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; /** Filter by the object’s `webcredentials` field. */ @@ -18315,6 +19579,8 @@ export interface PlatformSiteDeepLinkFilter { not?: PlatformSiteDeepLinkFilter; /** Checks for any expressions in this list. */ or?: PlatformSiteDeepLinkFilter[]; + /** Filter by the object’s `pageId` field. */ + pageId?: UUIDFilter; /** Filter by the object’s `site` relation. */ site?: PlatformSiteFilter; /** Filter by the object’s `siteId` field. */ @@ -18421,6 +19687,8 @@ export interface PageFilter { not?: PageFilter; /** Checks for any expressions in this list. */ or?: PageFilter[]; + /** Filter by the object’s `seededFrom` field. */ + seededFrom?: JSONFilter; /** Filter by the object’s `site` relation. */ site?: SiteFilter; /** Filter by the object’s `siteId` field. */ @@ -18436,8 +19704,8 @@ export interface PageFilter { export interface SiteAppLinkFilter { /** Checks for all expressions in this list. */ and?: SiteAppLinkFilter[]; - /** Filter by the object’s `appIdentifier` field. */ - appIdentifier?: StringFilter; + /** Filter by the object’s `appStoreIdentityId` field. */ + appStoreIdentityId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `databaseId` field. */ @@ -18450,18 +19718,10 @@ export interface SiteAppLinkFilter { or?: SiteAppLinkFilter[]; /** Filter by the object’s `pathComponents` field. */ pathComponents?: StringListFilter; - /** Filter by the object’s `platform` field. */ - platform?: StringFilter; - /** Filter by the object’s `sha256CertFingerprints` field. */ - sha256CertFingerprints?: StringListFilter; /** Filter by the object’s `site` relation. */ site?: SiteFilter; /** Filter by the object’s `siteId` field. */ siteId?: UUIDFilter; - /** Filter by the object’s `storeUrl` field. */ - storeUrl?: StringFilter; - /** Filter by the object’s `teamId` field. */ - teamId?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; /** Filter by the object’s `webcredentials` field. */ @@ -18487,6 +19747,8 @@ export interface SiteDeepLinkFilter { not?: SiteDeepLinkFilter; /** Checks for any expressions in this list. */ or?: SiteDeepLinkFilter[]; + /** Filter by the object’s `pageId` field. */ + pageId?: UUIDFilter; /** Filter by the object’s `site` relation. */ site?: SiteFilter; /** Filter by the object’s `siteId` field. */ @@ -18711,151 +19973,6 @@ export interface StringListFilter { /** Overlaps the specified list of values. */ overlaps?: string[]; } -/** A filter to be used against `App` object types. All fields are combined with a logical ‘and.’ */ -export interface AppFilter { - /** Checks for all expressions in this list. */ - and?: AppFilter[]; - /** Filter by the object’s `appComponents` relation. */ - appComponents?: AppToManyAppComponentFilter; - /** `appComponents` exist. */ - appComponentsExist?: boolean; - /** Filter by the object’s `config` field. */ - config?: JSONFilter; - /** 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 `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?: AppFilter; - /** Checks for any expressions in this list. */ - or?: AppFilter[]; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `title` field. */ - title?: StringFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -/** 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 filter to be used against JSON fields. All fields are combined with a logical ‘and.’ */ -export interface JSONFilter { - /** Contained by the specified JSON. */ - containedBy?: Record; - /** Contains the specified JSON. */ - contains?: Record; - /** Contains all of the specified keys. */ - containsAllKeys?: string[]; - /** Contains any of the specified keys. */ - containsAnyKeys?: string[]; - /** Contains the specified key. */ - containsKey?: string; - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: Record; - /** Equal to the specified value. */ - equalTo?: Record; - /** Greater than the specified value. */ - greaterThan?: Record; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: Record; - /** Included in the specified list. */ - in?: Record[]; - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Less than the specified value. */ - lessThan?: Record; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: Record; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: Record; - /** Not equal to the specified value. */ - notEqualTo?: Record; - /** Not included in the specified list. */ - notIn?: Record[]; -} /** A filter to be used against `Database` object types. All fields are combined with a logical ‘and.’ */ export interface DatabaseFilter { /** Checks for all expressions in this list. */ @@ -19017,6 +20134,41 @@ export interface DatabaseFilter { /** `views` exist. */ viewsExist?: boolean; } +/** A filter to be used against JSON fields. All fields are combined with a logical ‘and.’ */ +export interface JSONFilter { + /** Contained by the specified JSON. */ + containedBy?: Record; + /** Contains the specified JSON. */ + contains?: Record; + /** Contains all of the specified keys. */ + containsAllKeys?: string[]; + /** Contains any of the specified keys. */ + containsAnyKeys?: string[]; + /** Contains the specified key. */ + containsKey?: string; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: Record; + /** Equal to the specified value. */ + equalTo?: Record; + /** Greater than the specified value. */ + greaterThan?: Record; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: Record; + /** Included in the specified list. */ + in?: Record[]; + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Less than the specified value. */ + lessThan?: Record; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: Record; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: Record; + /** Not equal to the specified value. */ + notEqualTo?: Record; + /** Not included in the specified list. */ + notIn?: Record[]; +} /** A filter to be used against UUID List fields. All fields are combined with a logical ‘and.’ */ export interface UUIDListFilter { /** Any array item is equal to the specified value. */ @@ -19081,6 +20233,83 @@ export interface BooleanFilter { /** Not included in the specified list. */ notIn?: boolean[]; } +/** 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 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. */ @@ -19139,6 +20368,8 @@ export interface DomainFilter { config?: JSONFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; /** Filter by the object’s `domainEvents` relation. */ @@ -19151,10 +20382,6 @@ export interface DomainFilter { domainVerificationsExist?: boolean; /** Filter by the object’s `hostname` field. */ hostname?: StringFilter; - /** Filter by the object’s `httpRoutes` relation. */ - httpRoutes?: DomainToManyHttpRouteFilter; - /** `httpRoutes` exist. */ - httpRoutesExist?: boolean; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `isPublished` field. */ @@ -19181,6 +20408,8 @@ export interface DomainFilter { tlsStatus?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; /** Filter by the object’s `verificationStatus` field. */ verificationStatus?: StringFilter; /** Filter by the object’s `verifiedAt` field. */ @@ -19198,6 +20427,8 @@ export interface ManagedDomainFilter { certStatus?: StringFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; /** Filter by the object’s `domain` field. */ @@ -19224,6 +20455,8 @@ export interface ManagedDomainFilter { tlsStatus?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; /** Filter by the object’s `verificationStatus` field. */ verificationStatus?: StringFilter; /** Filter by the object’s `verifiedAt` field. */ @@ -19239,6 +20472,8 @@ export interface SiteFilter { bucketId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; /** Filter by the object’s `description` field. */ @@ -19267,6 +20502,10 @@ export interface SiteFilter { pagesExist?: boolean; /** Filter by the object’s `resourceId` field. */ resourceId?: UUIDFilter; + /** Filter by the object’s `routesByServingSiteId` relation. */ + routesByServingSiteId?: SiteToManyRouteFilter; + /** `routesByServingSiteId` exist. */ + routesByServingSiteIdExist?: boolean; /** Filter by the object’s `siteAppLinks` relation. */ siteAppLinks?: SiteToManySiteAppLinkFilter; /** `siteAppLinks` exist. */ @@ -19287,6 +20526,10 @@ export interface SiteFilter { siteModules?: SiteToManySiteModuleFilter; /** `siteModules` exist. */ siteModulesExist?: boolean; + /** Filter by the object’s `siteRelease` relation. */ + siteRelease?: SiteReleaseFilter; + /** A related `siteRelease` exists. */ + siteReleaseExists?: boolean; /** Filter by the object’s `siteThemes` relation. */ siteThemes?: SiteToManySiteThemeFilter; /** `siteThemes` exist. */ @@ -19299,6 +20542,41 @@ export interface SiteFilter { title?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} +/** A filter to be used against `Redirect` object types. All fields are combined with a logical ‘and.’ */ +export interface RedirectFilter { + /** Checks for all expressions in this list. */ + and?: RedirectFilter[]; + /** 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 `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: RedirectFilter; + /** Checks for any expressions in this list. */ + or?: RedirectFilter[]; + /** Filter by the object’s `preservePath` field. */ + preservePath?: BooleanFilter; + /** Filter by the object’s `preserveQuery` field. */ + preserveQuery?: BooleanFilter; + /** Filter by the object’s `routesByTargetRedirectId` relation. */ + routesByTargetRedirectId?: RedirectToManyRouteFilter; + /** `routesByTargetRedirectId` exist. */ + routesByTargetRedirectIdExist?: boolean; + /** Filter by the object’s `statusCode` field. */ + statusCode?: IntFilter; + /** Filter by the object’s `toHost` field. */ + toHost?: StringFilter; + /** Filter by the object’s `toPath` field. */ + toPath?: 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 { @@ -19392,6 +20670,8 @@ export interface PlatformDomainFilter { config?: JSONFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `hostname` field. */ hostname?: StringFilter; /** Filter by the object’s `id` field. */ @@ -19424,6 +20704,8 @@ export interface PlatformDomainFilter { tlsStatus?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; /** Filter by the object’s `verificationStatus` field. */ verificationStatus?: StringFilter; /** Filter by the object’s `verifiedAt` field. */ @@ -19441,6 +20723,8 @@ export interface PlatformManagedDomainFilter { certStatus?: StringFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `domain` field. */ domain?: StringFilter; /** Filter by the object’s `id` field. */ @@ -19465,6 +20749,8 @@ export interface PlatformManagedDomainFilter { tlsStatus?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; /** Filter by the object’s `verificationStatus` field. */ verificationStatus?: StringFilter; /** Filter by the object’s `verifiedAt` field. */ @@ -19480,6 +20766,8 @@ export interface PlatformSiteFilter { bucketId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `description` field. */ description?: StringFilter; /** Filter by the object’s `id` field. */ @@ -19524,6 +20812,10 @@ export interface PlatformSiteFilter { platformSiteModulesBySiteId?: PlatformSiteToManyPlatformSiteModuleFilter; /** `platformSiteModulesBySiteId` exist. */ platformSiteModulesBySiteIdExist?: boolean; + /** Filter by the object’s `platformSiteReleaseBySiteId` relation. */ + platformSiteReleaseBySiteId?: PlatformSiteReleaseFilter; + /** A related `platformSiteReleaseBySiteId` exists. */ + platformSiteReleaseBySiteIdExists?: boolean; /** Filter by the object’s `platformSiteThemesBySiteId` relation. */ platformSiteThemesBySiteId?: PlatformSiteToManyPlatformSiteThemeFilter; /** `platformSiteThemesBySiteId` exist. */ @@ -19538,6 +20830,8 @@ export interface PlatformSiteFilter { title?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } /** A filter to be used against `PlatformEmailProviderAccount` object types. All fields are combined with a logical ‘and.’ */ export interface PlatformEmailProviderAccountFilter { @@ -19604,6 +20898,8 @@ export interface ApiSettingFilter { enableDirectUploads?: BooleanFilter; /** Filter by the object’s `enableI18N` field. */ enableI18N?: BooleanFilter; + /** Filter by the object’s `enableIntrospection` field. */ + enableIntrospection?: BooleanFilter; /** Filter by the object’s `enableLlm` field. */ enableLlm?: BooleanFilter; /** Filter by the object’s `enableLtree` field. */ @@ -19620,12 +20916,32 @@ export interface ApiSettingFilter { enableSearch?: BooleanFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `idleInTransactionTimeoutMs` field. */ + idleInTransactionTimeoutMs?: BigIntFilter; + /** Filter by the object’s `lockTimeoutMs` field. */ + lockTimeoutMs?: BigIntFilter; + /** Filter by the object’s `maxConcurrentRequests` field. */ + maxConcurrentRequests?: IntFilter; + /** Filter by the object’s `maxPageSize` field. */ + maxPageSize?: IntFilter; + /** Filter by the object’s `maxQueryCost` field. */ + maxQueryCost?: IntFilter; + /** Filter by the object’s `maxQueryDepth` field. */ + maxQueryDepth?: IntFilter; + /** Filter by the object’s `maxQueueWaitMs` field. */ + maxQueueWaitMs?: IntFilter; + /** Filter by the object’s `maxRequestBytes` field. */ + maxRequestBytes?: IntFilter; /** Negates the expression. */ not?: ApiSettingFilter; /** Filter by the object’s `options` field. */ options?: JSONFilter; /** Checks for any expressions in this list. */ or?: ApiSettingFilter[]; + /** Filter by the object’s `rateLimitBurst` field. */ + rateLimitBurst?: IntFilter; + /** Filter by the object’s `rateLimitRpm` field. */ + rateLimitRpm?: IntFilter; /** Filter by the object’s `statementTimeoutMs` field. */ statementTimeoutMs?: BigIntFilter; /** Filter by the object’s `updatedAt` field. */ @@ -19661,6 +20977,8 @@ export interface SiteMetadatumFilter { or?: SiteMetadatumFilter[]; /** Filter by the object’s `robots` field. */ robots?: StringFilter; + /** Filter by the object’s `robotsSeededFrom` field. */ + robotsSeededFrom?: JSONFilter; /** Filter by the object’s `site` relation. */ site?: SiteFilter; /** Filter by the object’s `siteId` field. */ @@ -19672,6 +20990,33 @@ export interface SiteMetadatumFilter { /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } +/** A filter to be used against `SiteRelease` object types. All fields are combined with a logical ‘and.’ */ +export interface SiteReleaseFilter { + /** Checks for all expressions in this list. */ + and?: SiteReleaseFilter[]; + /** 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 `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `manifest` field. */ + manifest?: JSONFilter; + /** Negates the expression. */ + not?: SiteReleaseFilter; + /** Checks for any expressions in this list. */ + or?: SiteReleaseFilter[]; + /** 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 `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. */ @@ -19721,6 +21066,8 @@ export interface PlatformApiSettingFilter { enableDirectUploads?: BooleanFilter; /** Filter by the object’s `enableI18N` field. */ enableI18N?: BooleanFilter; + /** Filter by the object’s `enableIntrospection` field. */ + enableIntrospection?: BooleanFilter; /** Filter by the object’s `enableLlm` field. */ enableLlm?: BooleanFilter; /** Filter by the object’s `enableLtree` field. */ @@ -19737,12 +21084,32 @@ export interface PlatformApiSettingFilter { enableSearch?: BooleanFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `idleInTransactionTimeoutMs` field. */ + idleInTransactionTimeoutMs?: BigIntFilter; + /** Filter by the object’s `lockTimeoutMs` field. */ + lockTimeoutMs?: BigIntFilter; + /** Filter by the object’s `maxConcurrentRequests` field. */ + maxConcurrentRequests?: IntFilter; + /** Filter by the object’s `maxPageSize` field. */ + maxPageSize?: IntFilter; + /** Filter by the object’s `maxQueryCost` field. */ + maxQueryCost?: IntFilter; + /** Filter by the object’s `maxQueryDepth` field. */ + maxQueryDepth?: IntFilter; + /** Filter by the object’s `maxQueueWaitMs` field. */ + maxQueueWaitMs?: IntFilter; + /** Filter by the object’s `maxRequestBytes` field. */ + maxRequestBytes?: IntFilter; /** Negates the expression. */ not?: PlatformApiSettingFilter; /** Filter by the object’s `options` field. */ options?: JSONFilter; /** Checks for any expressions in this list. */ or?: PlatformApiSettingFilter[]; + /** Filter by the object’s `rateLimitBurst` field. */ + rateLimitBurst?: IntFilter; + /** Filter by the object’s `rateLimitRpm` field. */ + rateLimitRpm?: IntFilter; /** Filter by the object’s `statementTimeoutMs` field. */ statementTimeoutMs?: BigIntFilter; /** Filter by the object’s `updatedAt` field. */ @@ -19799,6 +21166,8 @@ export interface PlatformSiteMetadatumFilter { or?: PlatformSiteMetadatumFilter[]; /** Filter by the object’s `robots` field. */ robots?: StringFilter; + /** Filter by the object’s `robotsSeededFrom` field. */ + robotsSeededFrom?: JSONFilter; /** Filter by the object’s `site` relation. */ site?: PlatformSiteFilter; /** Filter by the object’s `siteId` field. */ @@ -19810,6 +21179,31 @@ export interface PlatformSiteMetadatumFilter { /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } +/** A filter to be used against `PlatformSiteRelease` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformSiteReleaseFilter { + /** Checks for all expressions in this list. */ + and?: PlatformSiteReleaseFilter[]; + /** Filter by the object’s `commitId` field. */ + commitId?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `manifest` field. */ + manifest?: JSONFilter; + /** Negates the expression. */ + not?: PlatformSiteReleaseFilter; + /** Checks for any expressions in this list. */ + or?: PlatformSiteReleaseFilter[]; + /** Filter by the object’s `site` relation. */ + site?: PlatformSiteFilter; + /** Filter by the object’s `siteId` field. */ + siteId?: UUIDFilter; + /** Filter by the object’s `storeId` field. */ + storeId?: UUIDFilter; + /** 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. */ @@ -19863,24 +21257,6 @@ export interface BigIntFilter { notIn?: string[]; } // ============ Payload/Return Types (for custom operations) ============ -export interface ResolveHttpRouteRecord { - databaseId?: string | null; - domainId?: string | null; - matchedPath?: string | null; - method?: string | null; - routeId?: string | null; - targetId?: string | null; - targetKind?: string | null; -} -export type ResolveHttpRouteRecordSelect = { - databaseId?: boolean; - domainId?: boolean; - matchedPath?: boolean; - method?: boolean; - routeId?: boolean; - targetId?: boolean; - targetKind?: boolean; -}; export interface ResolveRouteRecord { domainId?: string | null; hostname?: string | null; @@ -19919,36 +21295,32 @@ export type ResolveRouteRecordSelect = { tlsStatus?: boolean; verificationStatus?: boolean; }; -export interface ApplyRlsPayload { +export interface AcceptDatabaseTransferPayload { clientMutationId?: string | null; + result?: boolean | null; } -export type ApplyRlsPayloadSelect = { +export type AcceptDatabaseTransferPayloadSelect = { clientMutationId?: boolean; + result?: boolean; }; -export interface AppsInstallAppPayload { - appEdge?: AppEdge | null; +export interface ApplyRlsPayload { clientMutationId?: string | null; - result?: App | null; } -export type AppsInstallAppPayloadSelect = { - appEdge?: { - select: AppEdgeSelect; - }; +export type ApplyRlsPayloadSelect = { clientMutationId?: boolean; - result?: { - select: AppSelect; - }; }; -export interface AppsUninstallAppPayload { +export interface CancelDatabaseTransferPayload { clientMutationId?: string | null; + result?: boolean | null; } -export type AppsUninstallAppPayloadSelect = { +export type CancelDatabaseTransferPayloadSelect = { clientMutationId?: boolean; + result?: boolean; }; -export interface AppsUpgradeAppPayload { +export interface DeleteSitePreviewPayload { clientMutationId?: string | null; } -export type AppsUpgradeAppPayloadSelect = { +export type DeleteSitePreviewPayloadSelect = { clientMutationId?: boolean; }; export interface DomainsAssignSubdomainPayload { @@ -19965,6 +21337,30 @@ export type DomainsAssignSubdomainPayloadSelect = { select: DomainSelect; }; }; +export interface MintSitePreviewTokenPayload { + clientMutationId?: string | null; + result?: MintSitePreviewTokenRecord[] | null; +} +export type MintSitePreviewTokenPayloadSelect = { + clientMutationId?: boolean; + result?: { + select: MintSitePreviewTokenRecordSelect; + }; +}; +export interface PagesInstallPagesPayload { + clientMutationId?: string | null; + result?: Record | null; +} +export type PagesInstallPagesPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface PlatformDeleteSitePreviewPayload { + clientMutationId?: string | null; +} +export type PlatformDeleteSitePreviewPayloadSelect = { + clientMutationId?: boolean; +}; export interface PlatformDomainsAssignSubdomainPayload { clientMutationId?: string | null; platformDomainEdge?: PlatformDomainEdge | null; @@ -19976,7 +21372,73 @@ export type PlatformDomainsAssignSubdomainPayloadSelect = { select: PlatformDomainEdgeSelect; }; result?: { - select: PlatformDomainSelect; + select: PlatformDomainSelect; + }; +}; +export interface PlatformMintSitePreviewTokenPayload { + clientMutationId?: string | null; + result?: PlatformMintSitePreviewTokenRecord[] | null; +} +export type PlatformMintSitePreviewTokenPayloadSelect = { + clientMutationId?: boolean; + result?: { + select: PlatformMintSitePreviewTokenRecordSelect; + }; +}; +export interface PlatformPagesInstallPagesPayload { + clientMutationId?: string | null; + result?: Record | null; +} +export type PlatformPagesInstallPagesPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface PlatformProvisionSitePreviewPayload { + clientMutationId?: string | null; + result?: PlatformRoute | null; +} +export type PlatformProvisionSitePreviewPayloadSelect = { + clientMutationId?: boolean; + result?: { + select: PlatformRouteSelect; + }; +}; +export interface PlatformSetSitePreviewPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type PlatformSetSitePreviewPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface PlatformSiteMetadataInstallRobotsPayload { + clientMutationId?: string | null; + result?: Record | null; +} +export type PlatformSiteMetadataInstallRobotsPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface PlatformSitesInstallContentPresetPayload { + clientMutationId?: string | null; + result?: Record | null; +} +export type PlatformSitesInstallContentPresetPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface PlatformSitesInstallMantraPayload { + clientMutationId?: string | null; + platformSiteEdge?: PlatformSiteEdge | null; + result?: PlatformSite | null; +} +export type PlatformSitesInstallMantraPayloadSelect = { + clientMutationId?: boolean; + platformSiteEdge?: { + select: PlatformSiteEdgeSelect; + }; + result?: { + select: PlatformSiteSelect; }; }; export interface PlatformSitesProvisionStaticSitePayload { @@ -19990,26 +21452,41 @@ export type PlatformSitesProvisionStaticSitePayloadSelect = { }; }; 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; + /** The logical bucket row that was queued for reconciliation. */ + bucketId: string; + bucketKey: string; + /** The reconciler job enqueued to provision this bucket. */ + jobId: string; + /** The physical bucket name already recorded, or null when reconciliation has not completed. */ + physicalName?: string | null; } export type ProvisionBucketPayloadSelect = { - accessType?: boolean; - bucketName?: boolean; - endpoint?: boolean; - error?: boolean; - provider?: boolean; - success?: boolean; + bucketId?: boolean; + bucketKey?: boolean; + jobId?: boolean; + physicalName?: boolean; +}; +export interface ProvisionSitePreviewPayload { + clientMutationId?: string | null; + result?: Route | null; + routeEdge?: RouteEdge | null; +} +export type ProvisionSitePreviewPayloadSelect = { + clientMutationId?: boolean; + result?: { + select: RouteSelect; + }; + routeEdge?: { + select: RouteEdgeSelect; + }; +}; +export interface RejectDatabaseTransferPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type RejectDatabaseTransferPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; }; export interface RequestDatabasePayload { clientMutationId?: string | null; @@ -20027,14 +21504,56 @@ export interface SetFieldOrderPayload { export type SetFieldOrderPayloadSelect = { clientMutationId?: boolean; }; +export interface SetSitePreviewPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type SetSitePreviewPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface SiteMetadataInstallRobotsPayload { + clientMutationId?: string | null; + result?: Record | null; +} +export type SiteMetadataInstallRobotsPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface SitesInstallContentPresetPayload { + clientMutationId?: string | null; + result?: Record | null; +} +export type SitesInstallContentPresetPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface SitesInstallMantraPayload { + clientMutationId?: string | null; + result?: Site | null; + siteEdge?: SiteEdge | null; +} +export type SitesInstallMantraPayloadSelect = { + clientMutationId?: boolean; + result?: { + select: SiteSelect; + }; + siteEdge?: { + select: SiteEdgeSelect; + }; +}; export interface SitesProvisionStaticSitePayload { clientMutationId?: string | null; - result?: PlatformRoute | null; + result?: Route | null; + routeEdge?: RouteEdge | null; } export type SitesProvisionStaticSitePayloadSelect = { clientMutationId?: boolean; result?: { - select: PlatformRouteSelect; + select: RouteSelect; + }; + routeEdge?: { + select: RouteEdgeSelect; }; }; export interface CreateApiPayload { @@ -20172,96 +21691,6 @@ export type DeleteApiSettingPayloadSelect = { }; clientMutationId?: boolean; }; -export interface CreateAppComponentPayload { - /** The `AppComponent` that was created by this mutation. */ - appComponent?: AppComponent | null; - appComponentEdge?: AppComponentEdge | null; - clientMutationId?: string | null; -} -export type CreateAppComponentPayloadSelect = { - appComponent?: { - select: AppComponentSelect; - }; - appComponentEdge?: { - select: AppComponentEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface UpdateAppComponentPayload { - /** The `AppComponent` that was updated by this mutation. */ - appComponent?: AppComponent | null; - appComponentEdge?: AppComponentEdge | null; - clientMutationId?: string | null; -} -export type UpdateAppComponentPayloadSelect = { - appComponent?: { - select: AppComponentSelect; - }; - appComponentEdge?: { - select: AppComponentEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface DeleteAppComponentPayload { - /** The `AppComponent` that was deleted by this mutation. */ - appComponent?: AppComponent | null; - appComponentEdge?: AppComponentEdge | null; - clientMutationId?: string | null; -} -export type DeleteAppComponentPayloadSelect = { - appComponent?: { - select: AppComponentSelect; - }; - appComponentEdge?: { - select: AppComponentEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface CreateAppPayload { - /** The `App` that was created by this mutation. */ - app?: App | null; - appEdge?: AppEdge | null; - clientMutationId?: string | null; -} -export type CreateAppPayloadSelect = { - app?: { - select: AppSelect; - }; - appEdge?: { - select: AppEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface UpdateAppPayload { - /** The `App` that was updated by this mutation. */ - app?: App | null; - appEdge?: AppEdge | null; - clientMutationId?: string | null; -} -export type UpdateAppPayloadSelect = { - app?: { - select: AppSelect; - }; - appEdge?: { - select: AppEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface DeleteAppPayload { - /** The `App` that was deleted by this mutation. */ - app?: App | null; - appEdge?: AppEdge | null; - clientMutationId?: string | null; -} -export type DeleteAppPayloadSelect = { - app?: { - select: AppSelect; - }; - appEdge?: { - select: AppEdgeSelect; - }; - clientMutationId?: boolean; -}; export interface CreateCheckConstraintPayload { /** The `CheckConstraint` that was created by this mutation. */ checkConstraint?: CheckConstraint | null; @@ -21387,49 +22816,49 @@ export type DeleteHostnameBindingPayloadSelect = { select: HostnameBindingEdgeSelect; }; }; -export interface CreateHttpRoutePayload { +export interface CreateIdentityProviderRegistryPayload { clientMutationId?: string | null; - /** The `HttpRoute` that was created by this mutation. */ - httpRoute?: HttpRoute | null; - httpRouteEdge?: HttpRouteEdge | null; + /** The `IdentityProviderRegistry` that was created by this mutation. */ + identityProviderRegistry?: IdentityProviderRegistry | null; + identityProviderRegistryEdge?: IdentityProviderRegistryEdge | null; } -export type CreateHttpRoutePayloadSelect = { +export type CreateIdentityProviderRegistryPayloadSelect = { clientMutationId?: boolean; - httpRoute?: { - select: HttpRouteSelect; + identityProviderRegistry?: { + select: IdentityProviderRegistrySelect; }; - httpRouteEdge?: { - select: HttpRouteEdgeSelect; + identityProviderRegistryEdge?: { + select: IdentityProviderRegistryEdgeSelect; }; }; -export interface UpdateHttpRoutePayload { +export interface UpdateIdentityProviderRegistryPayload { clientMutationId?: string | null; - /** The `HttpRoute` that was updated by this mutation. */ - httpRoute?: HttpRoute | null; - httpRouteEdge?: HttpRouteEdge | null; + /** The `IdentityProviderRegistry` that was updated by this mutation. */ + identityProviderRegistry?: IdentityProviderRegistry | null; + identityProviderRegistryEdge?: IdentityProviderRegistryEdge | null; } -export type UpdateHttpRoutePayloadSelect = { +export type UpdateIdentityProviderRegistryPayloadSelect = { clientMutationId?: boolean; - httpRoute?: { - select: HttpRouteSelect; + identityProviderRegistry?: { + select: IdentityProviderRegistrySelect; }; - httpRouteEdge?: { - select: HttpRouteEdgeSelect; + identityProviderRegistryEdge?: { + select: IdentityProviderRegistryEdgeSelect; }; }; -export interface DeleteHttpRoutePayload { +export interface DeleteIdentityProviderRegistryPayload { clientMutationId?: string | null; - /** The `HttpRoute` that was deleted by this mutation. */ - httpRoute?: HttpRoute | null; - httpRouteEdge?: HttpRouteEdge | null; + /** The `IdentityProviderRegistry` that was deleted by this mutation. */ + identityProviderRegistry?: IdentityProviderRegistry | null; + identityProviderRegistryEdge?: IdentityProviderRegistryEdge | null; } -export type DeleteHttpRoutePayloadSelect = { +export type DeleteIdentityProviderRegistryPayloadSelect = { clientMutationId?: boolean; - httpRoute?: { - select: HttpRouteSelect; + identityProviderRegistry?: { + select: IdentityProviderRegistrySelect; }; - httpRouteEdge?: { - select: HttpRouteEdgeSelect; + identityProviderRegistryEdge?: { + select: IdentityProviderRegistryEdgeSelect; }; }; export interface CreateIndexPayload { @@ -22467,6 +23896,51 @@ export type DeletePlatformSiteModulePayloadSelect = { select: PlatformSiteModuleEdgeSelect; }; }; +export interface CreatePlatformSiteReleasePayload { + clientMutationId?: string | null; + /** The `PlatformSiteRelease` that was created by this mutation. */ + platformSiteRelease?: PlatformSiteRelease | null; + platformSiteReleaseEdge?: PlatformSiteReleaseEdge | null; +} +export type CreatePlatformSiteReleasePayloadSelect = { + clientMutationId?: boolean; + platformSiteRelease?: { + select: PlatformSiteReleaseSelect; + }; + platformSiteReleaseEdge?: { + select: PlatformSiteReleaseEdgeSelect; + }; +}; +export interface UpdatePlatformSiteReleasePayload { + clientMutationId?: string | null; + /** The `PlatformSiteRelease` that was updated by this mutation. */ + platformSiteRelease?: PlatformSiteRelease | null; + platformSiteReleaseEdge?: PlatformSiteReleaseEdge | null; +} +export type UpdatePlatformSiteReleasePayloadSelect = { + clientMutationId?: boolean; + platformSiteRelease?: { + select: PlatformSiteReleaseSelect; + }; + platformSiteReleaseEdge?: { + select: PlatformSiteReleaseEdgeSelect; + }; +}; +export interface DeletePlatformSiteReleasePayload { + clientMutationId?: string | null; + /** The `PlatformSiteRelease` that was deleted by this mutation. */ + platformSiteRelease?: PlatformSiteRelease | null; + platformSiteReleaseEdge?: PlatformSiteReleaseEdge | null; +} +export type DeletePlatformSiteReleasePayloadSelect = { + clientMutationId?: boolean; + platformSiteRelease?: { + select: PlatformSiteReleaseSelect; + }; + platformSiteReleaseEdge?: { + select: PlatformSiteReleaseEdgeSelect; + }; +}; export interface CreatePlatformSiteThemePayload { clientMutationId?: string | null; /** The `PlatformSiteTheme` that was created by this mutation. */ @@ -22692,6 +24166,51 @@ export type DeletePubkeySettingPayloadSelect = { select: PubkeySettingEdgeSelect; }; }; +export interface CreateRedirectPayload { + clientMutationId?: string | null; + /** The `Redirect` that was created by this mutation. */ + redirect?: Redirect | null; + redirectEdge?: RedirectEdge | null; +} +export type CreateRedirectPayloadSelect = { + clientMutationId?: boolean; + redirect?: { + select: RedirectSelect; + }; + redirectEdge?: { + select: RedirectEdgeSelect; + }; +}; +export interface UpdateRedirectPayload { + clientMutationId?: string | null; + /** The `Redirect` that was updated by this mutation. */ + redirect?: Redirect | null; + redirectEdge?: RedirectEdge | null; +} +export type UpdateRedirectPayloadSelect = { + clientMutationId?: boolean; + redirect?: { + select: RedirectSelect; + }; + redirectEdge?: { + select: RedirectEdgeSelect; + }; +}; +export interface DeleteRedirectPayload { + clientMutationId?: string | null; + /** The `Redirect` that was deleted by this mutation. */ + redirect?: Redirect | null; + redirectEdge?: RedirectEdge | null; +} +export type DeleteRedirectPayloadSelect = { + clientMutationId?: boolean; + redirect?: { + select: RedirectSelect; + }; + redirectEdge?: { + select: RedirectEdgeSelect; + }; +}; export interface CreateRlsSettingPayload { clientMutationId?: string | null; /** The `RlsSetting` that was created by this mutation. */ @@ -23187,6 +24706,51 @@ export type DeleteSiteModulePayloadSelect = { select: SiteModuleEdgeSelect; }; }; +export interface CreateSiteReleasePayload { + clientMutationId?: string | null; + /** The `SiteRelease` that was created by this mutation. */ + siteRelease?: SiteRelease | null; + siteReleaseEdge?: SiteReleaseEdge | null; +} +export type CreateSiteReleasePayloadSelect = { + clientMutationId?: boolean; + siteRelease?: { + select: SiteReleaseSelect; + }; + siteReleaseEdge?: { + select: SiteReleaseEdgeSelect; + }; +}; +export interface UpdateSiteReleasePayload { + clientMutationId?: string | null; + /** The `SiteRelease` that was updated by this mutation. */ + siteRelease?: SiteRelease | null; + siteReleaseEdge?: SiteReleaseEdge | null; +} +export type UpdateSiteReleasePayloadSelect = { + clientMutationId?: boolean; + siteRelease?: { + select: SiteReleaseSelect; + }; + siteReleaseEdge?: { + select: SiteReleaseEdgeSelect; + }; +}; +export interface DeleteSiteReleasePayload { + clientMutationId?: string | null; + /** The `SiteRelease` that was deleted by this mutation. */ + siteRelease?: SiteRelease | null; + siteReleaseEdge?: SiteReleaseEdge | null; +} +export type DeleteSiteReleasePayloadSelect = { + clientMutationId?: boolean; + siteRelease?: { + select: SiteReleaseSelect; + }; + siteReleaseEdge?: { + select: SiteReleaseEdgeSelect; + }; +}; export interface CreateSiteThemePayload { clientMutationId?: string | null; /** The `SiteTheme` that was created by this mutation. */ @@ -23907,18 +25471,6 @@ export type DeleteWebauthnSettingPayloadSelect = { select: WebauthnSettingEdgeSelect; }; }; -/** A `App` edge in the connection. */ -export interface AppEdge { - cursor?: string | null; - /** The `App` at the end of the edge. */ - node?: App | null; -} -export type AppEdgeSelect = { - cursor?: boolean; - node?: { - select: AppSelect; - }; -}; /** A `Domain` edge in the connection. */ export interface DomainEdge { cursor?: string | null; @@ -23931,6 +25483,14 @@ export type DomainEdgeSelect = { select: DomainSelect; }; }; +export interface MintSitePreviewTokenRecord { + expiresAt?: string | null; + token?: string | null; +} +export type MintSitePreviewTokenRecordSelect = { + expiresAt?: boolean; + token?: boolean; +}; /** A `PlatformDomain` edge in the connection. */ export interface PlatformDomainEdge { cursor?: string | null; @@ -23943,8 +25503,18 @@ export type PlatformDomainEdgeSelect = { select: PlatformDomainSelect; }; }; +export interface PlatformMintSitePreviewTokenRecord { + expiresAt?: string | null; + token?: string | null; +} +export type PlatformMintSitePreviewTokenRecordSelect = { + expiresAt?: boolean; + token?: boolean; +}; /** Routes binding a domain hostname and path to a typed catalog target */ export interface PlatformRoute { + /** Whether this route answers callers with no identity. Requires the target function to declare anonymous_callable; default false = an identity is required */ + anonymous: boolean; /** Route metadata; target configuration is read live from the typed catalog, never copied here */ config?: Record | null; createdAt?: string | null; @@ -23957,21 +25527,28 @@ export interface PlatformRoute { method?: string | null; /** Path prefix this route matches; must begin with / and carry no trailing slash */ path: string; + /** The site preview this route serves; NULL serves the site's published release */ + previewRef?: string | null; /** Higher priority wins between otherwise-equal matches */ priority: number; - /** Api catalog row this route targets; must be owner-matched or visible cross-scope */ + /** Site whose surface this route serves; the serving lane renders as this site. NULL when the route serves no site */ + servingSiteId?: string | null; + /** Api surface this route targets; must be this scope's own api */ targetApiId?: string | null; - /** Bucket catalog row this route targets; must be a public bucket that is owner-matched or visible cross-scope */ + /** Bucket this route targets; must be a public bucket in this scope's own storage plane */ targetBucketId?: string | null; - /** Function catalog row this route targets; must be owner-matched or visible cross-scope */ + /** Function this route targets; must be this scope's own function */ targetFunctionId?: string | null; - /** Resource catalog row (a Service resource) this route targets; must be owner-matched or visible cross-scope */ + /** Redirect this route targets; the edge answers with a redirect status instead of proxying a backend */ + targetRedirectId?: string | null; + /** Resource (a Service resource) this route targets; must be this scope's own resource */ targetServiceId?: string | null; - /** Site catalog row this route targets; must be owner-matched or visible cross-scope */ + /** Site surface this route targets; must be this scope's own site */ targetSiteId?: string | null; updatedAt?: string | null; } export type PlatformRouteSelect = { + anonymous?: boolean; config?: boolean; createdAt?: boolean; domainId?: boolean; @@ -23979,23 +25556,52 @@ export type PlatformRouteSelect = { isActive?: boolean; method?: boolean; path?: boolean; + previewRef?: boolean; priority?: boolean; + servingSiteId?: boolean; targetApiId?: boolean; targetBucketId?: boolean; targetFunctionId?: boolean; + targetRedirectId?: boolean; targetServiceId?: boolean; targetSiteId?: boolean; updatedAt?: boolean; }; +/** A `PlatformSite` edge in the connection. */ +export interface PlatformSiteEdge { + cursor?: string | null; + /** The `PlatformSite` at the end of the edge. */ + node?: PlatformSite | null; +} +export type PlatformSiteEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformSiteSelect; + }; +}; +/** A `Route` edge in the connection. */ +export interface RouteEdge { + cursor?: string | null; + /** The `Route` at the end of the edge. */ + node?: Route | null; +} +export type RouteEdgeSelect = { + cursor?: boolean; + node?: { + select: RouteSelect; + }; +}; /** 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 */ async: boolean; + /** The user whose identity is copied into the new database. Defaults to owner_id when NULL; set explicitly when owner_id is an organization */ + bootstrapActorId?: string | null; /** Error message from the most recent failed bootstrap attempt */ bootstrapError?: string | null; /** Status of the deferred owner bootstrap job: not_requested, pending, completed, or failed */ bootstrapStatus: string; - /** When true, copies the owner user and password hash from source database to the newly provisioned database */ + /** When true, copies the bootstrap user and password hash from source database to the newly provisioned database */ bootstrapUser: boolean; completedAt?: string | null; createdAt: string; @@ -24013,7 +25619,7 @@ export interface DatabaseProvisionModule { modules: Record; /** Additional configuration options for provisioning */ options: Record; - /** UUID of the user who owns this database */ + /** UUID of the entity that owns this database: a user, or an organization for an org-owned request */ ownerId: string; /** The database the owner user is copied from during bootstrap (captured from JWT context at provision time) */ sourceDatabaseId?: string | null; @@ -24025,6 +25631,7 @@ export interface DatabaseProvisionModule { } export type DatabaseProvisionModuleSelect = { async?: boolean; + bootstrapActorId?: boolean; bootstrapError?: boolean; bootstrapStatus?: boolean; bootstrapUser?: boolean; @@ -24044,6 +25651,18 @@ export type DatabaseProvisionModuleSelect = { subdomain?: boolean; updatedAt?: boolean; }; +/** A `Site` edge in the connection. */ +export interface SiteEdge { + cursor?: string | null; + /** The `Site` at the end of the edge. */ + node?: Site | null; +} +export type SiteEdgeSelect = { + cursor?: boolean; + node?: { + select: SiteSelect; + }; +}; /** A `Api` edge in the connection. */ export interface ApiEdge { cursor?: string | null; @@ -24080,18 +25699,6 @@ export type ApiSettingEdgeSelect = { select: ApiSettingSelect; }; }; -/** A `AppComponent` edge in the connection. */ -export interface AppComponentEdge { - cursor?: string | null; - /** The `AppComponent` at the end of the edge. */ - node?: AppComponent | null; -} -export type AppComponentEdgeSelect = { - cursor?: boolean; - node?: { - select: AppComponentSelect; - }; -}; /** A `CheckConstraint` edge in the connection. */ export interface CheckConstraintEdge { cursor?: string | null; @@ -24380,16 +25987,16 @@ export type HostnameBindingEdgeSelect = { select: HostnameBindingSelect; }; }; -/** A `HttpRoute` edge in the connection. */ -export interface HttpRouteEdge { +/** A `IdentityProviderRegistry` edge in the connection. */ +export interface IdentityProviderRegistryEdge { cursor?: string | null; - /** The `HttpRoute` at the end of the edge. */ - node?: HttpRoute | null; + /** The `IdentityProviderRegistry` at the end of the edge. */ + node?: IdentityProviderRegistry | null; } -export type HttpRouteEdgeSelect = { +export type IdentityProviderRegistryEdgeSelect = { cursor?: boolean; node?: { - select: HttpRouteSelect; + select: IdentityProviderRegistrySelect; }; }; /** A `Index` edge in the connection. */ @@ -24596,18 +26203,6 @@ export type PlatformSiteAppLinkEdgeSelect = { select: PlatformSiteAppLinkSelect; }; }; -/** A `PlatformSite` edge in the connection. */ -export interface PlatformSiteEdge { - cursor?: string | null; - /** The `PlatformSite` at the end of the edge. */ - node?: PlatformSite | null; -} -export type PlatformSiteEdgeSelect = { - cursor?: boolean; - node?: { - select: PlatformSiteSelect; - }; -}; /** A `PlatformSiteDeepLink` edge in the connection. */ export interface PlatformSiteDeepLinkEdge { cursor?: string | null; @@ -24656,6 +26251,18 @@ export type PlatformSiteModuleEdgeSelect = { select: PlatformSiteModuleSelect; }; }; +/** A `PlatformSiteRelease` edge in the connection. */ +export interface PlatformSiteReleaseEdge { + cursor?: string | null; + /** The `PlatformSiteRelease` at the end of the edge. */ + node?: PlatformSiteRelease | null; +} +export type PlatformSiteReleaseEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformSiteReleaseSelect; + }; +}; /** A `PlatformSiteTheme` edge in the connection. */ export interface PlatformSiteThemeEdge { cursor?: string | null; @@ -24716,6 +26323,18 @@ export type PubkeySettingEdgeSelect = { select: PubkeySettingSelect; }; }; +/** A `Redirect` edge in the connection. */ +export interface RedirectEdge { + cursor?: string | null; + /** The `Redirect` at the end of the edge. */ + node?: Redirect | null; +} +export type RedirectEdgeSelect = { + cursor?: boolean; + node?: { + select: RedirectSelect; + }; +}; /** A `RlsSetting` edge in the connection. */ export interface RlsSettingEdge { cursor?: string | null; @@ -24740,18 +26359,6 @@ export type RouteBindingEdgeSelect = { select: RouteBindingSelect; }; }; -/** A `Route` edge in the connection. */ -export interface RouteEdge { - cursor?: string | null; - /** The `Route` at the end of the edge. */ - node?: Route | null; -} -export type RouteEdgeSelect = { - cursor?: boolean; - node?: { - select: RouteSelect; - }; -}; /** A `Schema` edge in the connection. */ export interface SchemaEdge { cursor?: string | null; @@ -24788,18 +26395,6 @@ export type SiteAppLinkEdgeSelect = { select: SiteAppLinkSelect; }; }; -/** A `Site` edge in the connection. */ -export interface SiteEdge { - cursor?: string | null; - /** The `Site` at the end of the edge. */ - node?: Site | null; -} -export type SiteEdgeSelect = { - cursor?: boolean; - node?: { - select: SiteSelect; - }; -}; /** A `SiteDeepLink` edge in the connection. */ export interface SiteDeepLinkEdge { cursor?: string | null; @@ -24848,6 +26443,18 @@ export type SiteModuleEdgeSelect = { select: SiteModuleSelect; }; }; +/** A `SiteRelease` edge in the connection. */ +export interface SiteReleaseEdge { + cursor?: string | null; + /** The `SiteRelease` at the end of the edge. */ + node?: SiteRelease | null; +} +export type SiteReleaseEdgeSelect = { + cursor?: boolean; + node?: { + select: SiteReleaseSelect; + }; +}; /** A `SiteTheme` edge in the connection. */ export interface SiteThemeEdge { cursor?: string | null; diff --git a/sdk/constructive-sdk/src/api/orm/models/app.ts b/sdk/constructive-sdk/src/api/orm/models/app.ts deleted file mode 100644 index 049d73f6c0..0000000000 --- a/sdk/constructive-sdk/src/api/orm/models/app.ts +++ /dev/null @@ -1,245 +0,0 @@ -/** - * App 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 { - App, - AppWithRelations, - AppSelect, - AppFilter, - AppOrderBy, - CreateAppInput, - UpdateAppInput, - AppPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AppModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - apps: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'App', - 'apps', - 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, - }, - 'AppFilter', - 'AppOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'App', - fieldName: 'apps', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - app: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'App', - 'apps', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AppFilter', - 'AppOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'App', - fieldName: 'app', - document, - variables, - transform: (data: { - apps?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - app: data.apps?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - app: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'App', - 'apps', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AppFilter', - 'AppOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'App', - fieldName: 'app', - document, - variables, - transform: (data: { - apps?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - app: data.apps?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createApp: { - app: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'App', - 'createApp', - 'app', - args.select, - args.data, - 'CreateAppInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'App', - fieldName: 'createApp', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AppPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateApp: { - app: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'App', - 'updateApp', - 'app', - args.select, - args.where.id, - args.data, - 'UpdateAppInput', - 'id', - 'appPatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'App', - fieldName: 'updateApp', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteApp: { - app: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'App', - 'deleteApp', - 'app', - { - id: args.where.id, - }, - 'DeleteAppInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'App', - fieldName: 'deleteApp', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/api/orm/models/appComponent.ts b/sdk/constructive-sdk/src/api/orm/models/appComponent.ts deleted file mode 100644 index 2aa5994098..0000000000 --- a/sdk/constructive-sdk/src/api/orm/models/appComponent.ts +++ /dev/null @@ -1,245 +0,0 @@ -/** - * AppComponent 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 { - AppComponent, - AppComponentWithRelations, - AppComponentSelect, - AppComponentFilter, - AppComponentOrderBy, - CreateAppComponentInput, - UpdateAppComponentInput, - AppComponentPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AppComponentModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appComponents: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'AppComponent', - 'appComponents', - 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, - }, - 'AppComponentFilter', - 'AppComponentOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppComponent', - fieldName: 'appComponents', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appComponent: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AppComponent', - 'appComponents', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AppComponentFilter', - 'AppComponentOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppComponent', - fieldName: 'appComponent', - document, - variables, - transform: (data: { - appComponents?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appComponent: data.appComponents?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - appComponent: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AppComponent', - 'appComponents', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AppComponentFilter', - 'AppComponentOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppComponent', - fieldName: 'appComponent', - document, - variables, - transform: (data: { - appComponents?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appComponent: data.appComponents?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppComponent: { - appComponent: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppComponent', - 'createAppComponent', - 'appComponent', - args.select, - args.data, - 'CreateAppComponentInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppComponent', - fieldName: 'createAppComponent', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AppComponentPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAppComponent: { - appComponent: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AppComponent', - 'updateAppComponent', - 'appComponent', - args.select, - args.where.id, - args.data, - 'UpdateAppComponentInput', - 'id', - 'appComponentPatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppComponent', - fieldName: 'updateAppComponent', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAppComponent: { - appComponent: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AppComponent', - 'deleteAppComponent', - 'appComponent', - { - id: args.where.id, - }, - 'DeleteAppComponentInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppComponent', - fieldName: 'deleteAppComponent', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/api/orm/models/astMigration.ts b/sdk/constructive-sdk/src/api/orm/models/astMigration.ts new file mode 100644 index 0000000000..bfcc5f455a --- /dev/null +++ b/sdk/constructive-sdk/src/api/orm/models/astMigration.ts @@ -0,0 +1,174 @@ +/** + * AstMigration 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 { + AstMigration, + AstMigrationWithRelations, + AstMigrationSelect, + AstMigrationFilter, + AstMigrationOrderBy, + CreateAstMigrationInput, + UpdateAstMigrationInput, + AstMigrationPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class AstMigrationModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + astMigrations: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'AstMigration', + 'astMigrations', + 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, + }, + 'AstMigrationFilter', + 'AstMigrationOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AstMigration', + fieldName: 'astMigrations', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + astMigration: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'AstMigration', + 'astMigrations', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'AstMigrationFilter', + 'AstMigrationOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AstMigration', + fieldName: 'astMigration', + document, + variables, + transform: (data: { + astMigrations?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + astMigration: data.astMigrations?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: number; + select: S; + } & StrictSelect + ): QueryBuilder<{ + astMigration: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'AstMigration', + 'astMigrations', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'AstMigrationFilter', + 'AstMigrationOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AstMigration', + fieldName: 'astMigration', + document, + variables, + transform: (data: { + astMigrations?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + astMigration: data.astMigrations?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createAstMigration: { + astMigration: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'AstMigration', + 'createAstMigration', + 'astMigration', + args.select, + args.data, + 'CreateAstMigrationInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AstMigration', + fieldName: 'createAstMigration', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/api/orm/models/getSitePreviewsRecord.ts b/sdk/constructive-sdk/src/api/orm/models/getSitePreviewsRecord.ts new file mode 100644 index 0000000000..dc2c778221 --- /dev/null +++ b/sdk/constructive-sdk/src/api/orm/models/getSitePreviewsRecord.ts @@ -0,0 +1,134 @@ +/** + * GetSitePreviewsRecord 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 { + GetSitePreviewsRecord, + GetSitePreviewsRecordWithRelations, + GetSitePreviewsRecordSelect, + GetSitePreviewsRecordFilter, + GetSitePreviewsRecordsOrderBy, + CreateGetSitePreviewsRecordInput, + UpdateGetSitePreviewsRecordInput, + GetSitePreviewsRecordPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class GetSitePreviewsRecordModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + getSitePreviews: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'GetSitePreviewsRecord', + 'getSitePreviews', + 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, + }, + 'GetSitePreviewsRecordFilter', + 'GetSitePreviewsRecordsOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'GetSitePreviewsRecord', + fieldName: 'getSitePreviews', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + getSitePreviewsRecord: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'GetSitePreviewsRecord', + 'getSitePreviews', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'GetSitePreviewsRecordFilter', + 'GetSitePreviewsRecordsOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'GetSitePreviewsRecord', + fieldName: 'getSitePreviewsRecord', + document, + variables, + transform: (data: { + getSitePreviews?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + getSitePreviewsRecord: data.getSitePreviews?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createGetSitePreviewsRecord: { + getSitePreviewsRecord: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'GetSitePreviewsRecord', + 'createGetSitePreviewsRecord', + 'getSitePreviewsRecord', + args.select, + args.data, + 'CreateGetSitePreviewsRecordInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'GetSitePreviewsRecord', + fieldName: 'createGetSitePreviewsRecord', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/api/orm/models/httpRoute.ts b/sdk/constructive-sdk/src/api/orm/models/httpRoute.ts deleted file mode 100644 index 0af2bf2fac..0000000000 --- a/sdk/constructive-sdk/src/api/orm/models/httpRoute.ts +++ /dev/null @@ -1,245 +0,0 @@ -/** - * HttpRoute 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 { - HttpRoute, - HttpRouteWithRelations, - HttpRouteSelect, - HttpRouteFilter, - HttpRouteOrderBy, - CreateHttpRouteInput, - UpdateHttpRouteInput, - HttpRoutePatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class HttpRouteModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - httpRoutes: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'HttpRoute', - 'httpRoutes', - 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, - }, - 'HttpRouteFilter', - 'HttpRouteOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'HttpRoute', - fieldName: 'httpRoutes', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - httpRoute: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'HttpRoute', - 'httpRoutes', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'HttpRouteFilter', - 'HttpRouteOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'HttpRoute', - fieldName: 'httpRoute', - document, - variables, - transform: (data: { - httpRoutes?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - httpRoute: data.httpRoutes?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - httpRoute: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'HttpRoute', - 'httpRoutes', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'HttpRouteFilter', - 'HttpRouteOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'HttpRoute', - fieldName: 'httpRoute', - document, - variables, - transform: (data: { - httpRoutes?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - httpRoute: data.httpRoutes?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createHttpRoute: { - httpRoute: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'HttpRoute', - 'createHttpRoute', - 'httpRoute', - args.select, - args.data, - 'CreateHttpRouteInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'HttpRoute', - fieldName: 'createHttpRoute', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - HttpRoutePatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateHttpRoute: { - httpRoute: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'HttpRoute', - 'updateHttpRoute', - 'httpRoute', - args.select, - args.where.id, - args.data, - 'UpdateHttpRouteInput', - 'id', - 'httpRoutePatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'HttpRoute', - fieldName: 'updateHttpRoute', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteHttpRoute: { - httpRoute: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'HttpRoute', - 'deleteHttpRoute', - 'httpRoute', - { - id: args.where.id, - }, - 'DeleteHttpRouteInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'HttpRoute', - fieldName: 'deleteHttpRoute', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/api/orm/models/identityProviderRegistry.ts b/sdk/constructive-sdk/src/api/orm/models/identityProviderRegistry.ts new file mode 100644 index 0000000000..5c314ea984 --- /dev/null +++ b/sdk/constructive-sdk/src/api/orm/models/identityProviderRegistry.ts @@ -0,0 +1,247 @@ +/** + * IdentityProviderRegistry 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 { + IdentityProviderRegistry, + IdentityProviderRegistryWithRelations, + IdentityProviderRegistrySelect, + IdentityProviderRegistryFilter, + IdentityProviderRegistryOrderBy, + CreateIdentityProviderRegistryInput, + UpdateIdentityProviderRegistryInput, + IdentityProviderRegistryPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class IdentityProviderRegistryModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + identityProviderRegistries: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'IdentityProviderRegistry', + 'identityProviderRegistries', + 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, + }, + 'IdentityProviderRegistryFilter', + 'IdentityProviderRegistryOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'IdentityProviderRegistry', + fieldName: 'identityProviderRegistries', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + identityProviderRegistry: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'IdentityProviderRegistry', + 'identityProviderRegistries', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'IdentityProviderRegistryFilter', + 'IdentityProviderRegistryOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'IdentityProviderRegistry', + fieldName: 'identityProviderRegistry', + document, + variables, + transform: (data: { + identityProviderRegistries?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + identityProviderRegistry: data.identityProviderRegistries?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + slug: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + identityProviderRegistry: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'IdentityProviderRegistry', + 'identityProviderRegistries', + args.select, + { + where: { + slug: { + equalTo: args.slug, + }, + }, + first: 1, + }, + 'IdentityProviderRegistryFilter', + 'IdentityProviderRegistryOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'IdentityProviderRegistry', + fieldName: 'identityProviderRegistry', + document, + variables, + transform: (data: { + identityProviderRegistries?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + identityProviderRegistry: data.identityProviderRegistries?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createIdentityProviderRegistry: { + identityProviderRegistry: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'IdentityProviderRegistry', + 'createIdentityProviderRegistry', + 'identityProviderRegistry', + args.select, + args.data, + 'CreateIdentityProviderRegistryInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'IdentityProviderRegistry', + fieldName: 'createIdentityProviderRegistry', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + slug: string; + }, + IdentityProviderRegistryPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateIdentityProviderRegistry: { + identityProviderRegistry: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'IdentityProviderRegistry', + 'updateIdentityProviderRegistry', + 'identityProviderRegistry', + args.select, + args.where.slug, + args.data, + 'UpdateIdentityProviderRegistryInput', + 'slug', + 'identityProviderRegistryPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'IdentityProviderRegistry', + fieldName: 'updateIdentityProviderRegistry', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + slug: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteIdentityProviderRegistry: { + identityProviderRegistry: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'IdentityProviderRegistry', + 'deleteIdentityProviderRegistry', + 'identityProviderRegistry', + { + slug: args.where.slug, + }, + 'DeleteIdentityProviderRegistryInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'IdentityProviderRegistry', + fieldName: 'deleteIdentityProviderRegistry', + 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 e423940bea..0dde470052 100644 --- a/sdk/constructive-sdk/src/api/orm/models/index.ts +++ b/sdk/constructive-sdk/src/api/orm/models/index.ts @@ -6,8 +6,7 @@ export { ApiModel } from './api'; export { ApiSchemaModel } from './apiSchema'; export { ApiSettingModel } from './apiSetting'; -export { AppComponentModel } from './appComponent'; -export { AppModel } from './app'; +export { AstMigrationModel } from './astMigration'; export { CheckConstraintModel } from './checkConstraint'; export { CompositeTypeModel } from './compositeType'; export { CorsSettingModel } from './corsSetting'; @@ -32,8 +31,9 @@ export { ForeignKeyConstraintBehaviorModel } from './foreignKeyConstraintBehavio export { ForeignKeyConstraintModel } from './foreignKeyConstraint'; export { FullTextSearchModel } from './fullTextSearch'; export { FunctionModel } from './function'; +export { GetSitePreviewsRecordModel } from './getSitePreviewsRecord'; export { HostnameBindingModel } from './hostnameBinding'; -export { HttpRouteModel } from './httpRoute'; +export { IdentityProviderRegistryModel } from './identityProviderRegistry'; export { IndexModel } from './indexModel'; export { ManagedDomainModel } from './managedDomain'; export { NodeTypeRegistryModel } from './nodeTypeRegistry'; @@ -49,6 +49,7 @@ export { PlatformDomainVerificationModel } from './platformDomainVerification'; export { PlatformEmailIdentityModel } from './platformEmailIdentity'; export { PlatformEmailProviderAccountModel } from './platformEmailProviderAccount'; export { PlatformEmailSiteIdentityModel } from './platformEmailSiteIdentity'; +export { PlatformGetSitePreviewsRecordModel } from './platformGetSitePreviewsRecord'; export { PlatformManagedDomainModel } from './platformManagedDomain'; export { PlatformPageModel } from './platformPage'; export { PlatformSiteAppLinkModel } from './platformSiteAppLink'; @@ -57,11 +58,13 @@ export { PlatformSiteDeepLinkModel } from './platformSiteDeepLink'; export { PlatformSiteErrorPageModel } from './platformSiteErrorPage'; export { PlatformSiteMetadatumModel } from './platformSiteMetadatum'; export { PlatformSiteModuleModel } from './platformSiteModule'; +export { PlatformSiteReleaseModel } from './platformSiteRelease'; export { PlatformSiteThemeModel } from './platformSiteTheme'; export { PlatformSiteWebConfigModel } from './platformSiteWebConfig'; export { PolicyModel } from './policy'; export { PrimaryKeyConstraintModel } from './primaryKeyConstraint'; export { PubkeySettingModel } from './pubkeySetting'; +export { RedirectModel } from './redirect'; export { RlsSettingModel } from './rlsSetting'; export { RouteBindingModel } from './routeBinding'; export { RouteModel } from './route'; @@ -73,9 +76,11 @@ export { SiteDeepLinkModel } from './siteDeepLink'; export { SiteErrorPageModel } from './siteErrorPage'; export { SiteMetadatumModel } from './siteMetadatum'; export { SiteModuleModel } from './siteModule'; +export { SiteReleaseModel } from './siteRelease'; export { SiteThemeModel } from './siteTheme'; export { SiteWebConfigModel } from './siteWebConfig'; export { SpatialRelationModel } from './spatialRelation'; +export { SqlActionModel } from './sqlAction'; export { TableBehaviorModel } from './tableBehavior'; export { TableModel } from './table'; export { TableGrantModel } from './tableGrant'; diff --git a/sdk/constructive-sdk/src/api/orm/models/platformGetSitePreviewsRecord.ts b/sdk/constructive-sdk/src/api/orm/models/platformGetSitePreviewsRecord.ts new file mode 100644 index 0000000000..b2282eaa16 --- /dev/null +++ b/sdk/constructive-sdk/src/api/orm/models/platformGetSitePreviewsRecord.ts @@ -0,0 +1,153 @@ +/** + * PlatformGetSitePreviewsRecord 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 { + PlatformGetSitePreviewsRecord, + PlatformGetSitePreviewsRecordWithRelations, + PlatformGetSitePreviewsRecordSelect, + PlatformGetSitePreviewsRecordFilter, + PlatformGetSitePreviewsRecordsOrderBy, + CreatePlatformGetSitePreviewsRecordInput, + UpdatePlatformGetSitePreviewsRecordInput, + PlatformGetSitePreviewsRecordPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformGetSitePreviewsRecordModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs< + S, + PlatformGetSitePreviewsRecordFilter, + PlatformGetSitePreviewsRecordsOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformGetSitePreviews: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformGetSitePreviewsRecord', + 'platformGetSitePreviews', + 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, + }, + 'PlatformGetSitePreviewsRecordFilter', + 'PlatformGetSitePreviewsRecordsOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformGetSitePreviewsRecord', + fieldName: 'platformGetSitePreviews', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs< + S, + PlatformGetSitePreviewsRecordFilter, + PlatformGetSitePreviewsRecordsOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformGetSitePreviewsRecord: InferSelectResult< + PlatformGetSitePreviewsRecordWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformGetSitePreviewsRecord', + 'platformGetSitePreviews', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformGetSitePreviewsRecordFilter', + 'PlatformGetSitePreviewsRecordsOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformGetSitePreviewsRecord', + fieldName: 'platformGetSitePreviewsRecord', + document, + variables, + transform: (data: { + platformGetSitePreviews?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformGetSitePreviewsRecord: data.platformGetSitePreviews?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs< + S, + CreatePlatformGetSitePreviewsRecordInput['platformGetSitePreviewsRecord'] + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformGetSitePreviewsRecord: { + platformGetSitePreviewsRecord: InferSelectResult< + PlatformGetSitePreviewsRecordWithRelations, + S + >; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformGetSitePreviewsRecord', + 'createPlatformGetSitePreviewsRecord', + 'platformGetSitePreviewsRecord', + args.select, + args.data, + 'CreatePlatformGetSitePreviewsRecordInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformGetSitePreviewsRecord', + fieldName: 'createPlatformGetSitePreviewsRecord', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/api/orm/models/platformSiteRelease.ts b/sdk/constructive-sdk/src/api/orm/models/platformSiteRelease.ts new file mode 100644 index 0000000000..cf973ae971 --- /dev/null +++ b/sdk/constructive-sdk/src/api/orm/models/platformSiteRelease.ts @@ -0,0 +1,245 @@ +/** + * PlatformSiteRelease 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 { + PlatformSiteRelease, + PlatformSiteReleaseWithRelations, + PlatformSiteReleaseSelect, + PlatformSiteReleaseFilter, + PlatformSiteReleaseOrderBy, + CreatePlatformSiteReleaseInput, + UpdatePlatformSiteReleaseInput, + PlatformSiteReleasePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformSiteReleaseModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformSiteReleases: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformSiteRelease', + 'platformSiteReleases', + 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, + }, + 'PlatformSiteReleaseFilter', + 'PlatformSiteReleaseOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformSiteRelease', + fieldName: 'platformSiteReleases', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformSiteRelease: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformSiteRelease', + 'platformSiteReleases', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformSiteReleaseFilter', + 'PlatformSiteReleaseOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformSiteRelease', + fieldName: 'platformSiteRelease', + document, + variables, + transform: (data: { + platformSiteReleases?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformSiteRelease: data.platformSiteReleases?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformSiteRelease: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformSiteRelease', + 'platformSiteReleases', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformSiteReleaseFilter', + 'PlatformSiteReleaseOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformSiteRelease', + fieldName: 'platformSiteRelease', + document, + variables, + transform: (data: { + platformSiteReleases?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformSiteRelease: data.platformSiteReleases?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformSiteRelease: { + platformSiteRelease: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformSiteRelease', + 'createPlatformSiteRelease', + 'platformSiteRelease', + args.select, + args.data, + 'CreatePlatformSiteReleaseInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformSiteRelease', + fieldName: 'createPlatformSiteRelease', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformSiteReleasePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformSiteRelease: { + platformSiteRelease: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformSiteRelease', + 'updatePlatformSiteRelease', + 'platformSiteRelease', + args.select, + args.where.id, + args.data, + 'UpdatePlatformSiteReleaseInput', + 'id', + 'platformSiteReleasePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformSiteRelease', + fieldName: 'updatePlatformSiteRelease', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformSiteRelease: { + platformSiteRelease: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformSiteRelease', + 'deletePlatformSiteRelease', + 'platformSiteRelease', + { + id: args.where.id, + }, + 'DeletePlatformSiteReleaseInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformSiteRelease', + fieldName: 'deletePlatformSiteRelease', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/api/orm/models/redirect.ts b/sdk/constructive-sdk/src/api/orm/models/redirect.ts new file mode 100644 index 0000000000..87cfd5f9c5 --- /dev/null +++ b/sdk/constructive-sdk/src/api/orm/models/redirect.ts @@ -0,0 +1,245 @@ +/** + * Redirect 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 { + Redirect, + RedirectWithRelations, + RedirectSelect, + RedirectFilter, + RedirectOrderBy, + CreateRedirectInput, + UpdateRedirectInput, + RedirectPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class RedirectModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + redirects: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'Redirect', + 'redirects', + 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, + }, + 'RedirectFilter', + 'RedirectOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Redirect', + fieldName: 'redirects', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + redirect: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'Redirect', + 'redirects', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'RedirectFilter', + 'RedirectOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Redirect', + fieldName: 'redirect', + document, + variables, + transform: (data: { + redirects?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + redirect: data.redirects?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + redirect: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'Redirect', + 'redirects', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'RedirectFilter', + 'RedirectOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Redirect', + fieldName: 'redirect', + document, + variables, + transform: (data: { + redirects?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + redirect: data.redirects?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createRedirect: { + redirect: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'Redirect', + 'createRedirect', + 'redirect', + args.select, + args.data, + 'CreateRedirectInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Redirect', + fieldName: 'createRedirect', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + RedirectPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateRedirect: { + redirect: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'Redirect', + 'updateRedirect', + 'redirect', + args.select, + args.where.id, + args.data, + 'UpdateRedirectInput', + 'id', + 'redirectPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Redirect', + fieldName: 'updateRedirect', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteRedirect: { + redirect: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'Redirect', + 'deleteRedirect', + 'redirect', + { + id: args.where.id, + }, + 'DeleteRedirectInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Redirect', + fieldName: 'deleteRedirect', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/api/orm/models/siteRelease.ts b/sdk/constructive-sdk/src/api/orm/models/siteRelease.ts new file mode 100644 index 0000000000..25953aa204 --- /dev/null +++ b/sdk/constructive-sdk/src/api/orm/models/siteRelease.ts @@ -0,0 +1,245 @@ +/** + * SiteRelease 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 { + SiteRelease, + SiteReleaseWithRelations, + SiteReleaseSelect, + SiteReleaseFilter, + SiteReleaseOrderBy, + CreateSiteReleaseInput, + UpdateSiteReleaseInput, + SiteReleasePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class SiteReleaseModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + siteReleases: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'SiteRelease', + 'siteReleases', + 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, + }, + 'SiteReleaseFilter', + 'SiteReleaseOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'SiteRelease', + fieldName: 'siteReleases', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + siteRelease: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'SiteRelease', + 'siteReleases', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'SiteReleaseFilter', + 'SiteReleaseOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'SiteRelease', + fieldName: 'siteRelease', + document, + variables, + transform: (data: { + siteReleases?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + siteRelease: data.siteReleases?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + siteRelease: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'SiteRelease', + 'siteReleases', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'SiteReleaseFilter', + 'SiteReleaseOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'SiteRelease', + fieldName: 'siteRelease', + document, + variables, + transform: (data: { + siteReleases?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + siteRelease: data.siteReleases?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createSiteRelease: { + siteRelease: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'SiteRelease', + 'createSiteRelease', + 'siteRelease', + args.select, + args.data, + 'CreateSiteReleaseInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'SiteRelease', + fieldName: 'createSiteRelease', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + SiteReleasePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateSiteRelease: { + siteRelease: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'SiteRelease', + 'updateSiteRelease', + 'siteRelease', + args.select, + args.where.id, + args.data, + 'UpdateSiteReleaseInput', + 'id', + 'siteReleasePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'SiteRelease', + fieldName: 'updateSiteRelease', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteSiteRelease: { + siteRelease: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'SiteRelease', + 'deleteSiteRelease', + 'siteRelease', + { + id: args.where.id, + }, + 'DeleteSiteReleaseInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'SiteRelease', + fieldName: 'deleteSiteRelease', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/api/orm/models/sqlAction.ts b/sdk/constructive-sdk/src/api/orm/models/sqlAction.ts new file mode 100644 index 0000000000..74b4418688 --- /dev/null +++ b/sdk/constructive-sdk/src/api/orm/models/sqlAction.ts @@ -0,0 +1,174 @@ +/** + * SqlAction 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 { + SqlAction, + SqlActionWithRelations, + SqlActionSelect, + SqlActionFilter, + SqlActionOrderBy, + CreateSqlActionInput, + UpdateSqlActionInput, + SqlActionPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class SqlActionModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + sqlActions: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'SqlAction', + 'sqlActions', + 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, + }, + 'SqlActionFilter', + 'SqlActionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'SqlAction', + fieldName: 'sqlActions', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + sqlAction: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'SqlAction', + 'sqlActions', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'SqlActionFilter', + 'SqlActionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'SqlAction', + fieldName: 'sqlAction', + document, + variables, + transform: (data: { + sqlActions?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + sqlAction: data.sqlActions?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: number; + select: S; + } & StrictSelect + ): QueryBuilder<{ + sqlAction: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'SqlAction', + 'sqlActions', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'SqlActionFilter', + 'SqlActionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'SqlAction', + fieldName: 'sqlAction', + document, + variables, + transform: (data: { + sqlActions?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + sqlAction: data.sqlActions?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createSqlAction: { + sqlAction: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'SqlAction', + 'createSqlAction', + 'sqlAction', + args.select, + args.data, + 'CreateSqlActionInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'SqlAction', + fieldName: 'createSqlAction', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/api/orm/mutation/index.ts b/sdk/constructive-sdk/src/api/orm/mutation/index.ts index 2dd79f41bf..94888543cf 100644 --- a/sdk/constructive-sdk/src/api/orm/mutation/index.ts +++ b/sdk/constructive-sdk/src/api/orm/mutation/index.ts @@ -7,81 +7,167 @@ import { OrmClient } from '../client'; import { QueryBuilder, buildCustomDocument } from '../query-builder'; import type { InferSelectResult, StrictSelect } from '../select-types'; import type { + AcceptDatabaseTransferInput, ApplyRlsInput, - AppsInstallAppInput, - AppsUninstallAppInput, - AppsUpgradeAppInput, + CancelDatabaseTransferInput, + DeleteSitePreviewInput, DomainsAssignSubdomainInput, + MintSitePreviewTokenInput, + PagesInstallPagesInput, + PlatformDeleteSitePreviewInput, PlatformDomainsAssignSubdomainInput, + PlatformMintSitePreviewTokenInput, + PlatformPagesInstallPagesInput, + PlatformProvisionSitePreviewInput, + PlatformSetSitePreviewInput, + PlatformSiteMetadataInstallRobotsInput, + PlatformSitesInstallContentPresetInput, + PlatformSitesInstallMantraInput, PlatformSitesProvisionStaticSiteInput, ProvisionBucketInput, + ProvisionSitePreviewInput, + RejectDatabaseTransferInput, RequestDatabaseInput, SetFieldOrderInput, + SetSitePreviewInput, + SiteMetadataInstallRobotsInput, + SitesInstallContentPresetInput, + SitesInstallMantraInput, SitesProvisionStaticSiteInput, + AcceptDatabaseTransferPayload, ApplyRlsPayload, - AppsInstallAppPayload, - AppsUninstallAppPayload, - AppsUpgradeAppPayload, + CancelDatabaseTransferPayload, + DeleteSitePreviewPayload, DomainsAssignSubdomainPayload, + MintSitePreviewTokenPayload, + PagesInstallPagesPayload, + PlatformDeleteSitePreviewPayload, PlatformDomainsAssignSubdomainPayload, + PlatformMintSitePreviewTokenPayload, + PlatformPagesInstallPagesPayload, + PlatformProvisionSitePreviewPayload, + PlatformSetSitePreviewPayload, + PlatformSiteMetadataInstallRobotsPayload, + PlatformSitesInstallContentPresetPayload, + PlatformSitesInstallMantraPayload, PlatformSitesProvisionStaticSitePayload, ProvisionBucketPayload, + ProvisionSitePreviewPayload, + RejectDatabaseTransferPayload, RequestDatabasePayload, SetFieldOrderPayload, + SetSitePreviewPayload, + SiteMetadataInstallRobotsPayload, + SitesInstallContentPresetPayload, + SitesInstallMantraPayload, SitesProvisionStaticSitePayload, + AcceptDatabaseTransferPayloadSelect, ApplyRlsPayloadSelect, - AppsInstallAppPayloadSelect, - AppsUninstallAppPayloadSelect, - AppsUpgradeAppPayloadSelect, + CancelDatabaseTransferPayloadSelect, + DeleteSitePreviewPayloadSelect, DomainsAssignSubdomainPayloadSelect, + MintSitePreviewTokenPayloadSelect, + PagesInstallPagesPayloadSelect, + PlatformDeleteSitePreviewPayloadSelect, PlatformDomainsAssignSubdomainPayloadSelect, + PlatformMintSitePreviewTokenPayloadSelect, + PlatformPagesInstallPagesPayloadSelect, + PlatformProvisionSitePreviewPayloadSelect, + PlatformSetSitePreviewPayloadSelect, + PlatformSiteMetadataInstallRobotsPayloadSelect, + PlatformSitesInstallContentPresetPayloadSelect, + PlatformSitesInstallMantraPayloadSelect, PlatformSitesProvisionStaticSitePayloadSelect, ProvisionBucketPayloadSelect, + ProvisionSitePreviewPayloadSelect, + RejectDatabaseTransferPayloadSelect, RequestDatabasePayloadSelect, SetFieldOrderPayloadSelect, + SetSitePreviewPayloadSelect, + SiteMetadataInstallRobotsPayloadSelect, + SitesInstallContentPresetPayloadSelect, + SitesInstallMantraPayloadSelect, SitesProvisionStaticSitePayloadSelect, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; +export interface AcceptDatabaseTransferVariables { + input: AcceptDatabaseTransferInput; +} export interface ApplyRlsVariables { input: ApplyRlsInput; } -export interface AppsInstallAppVariables { - input: AppsInstallAppInput; -} -export interface AppsUninstallAppVariables { - input: AppsUninstallAppInput; +export interface CancelDatabaseTransferVariables { + input: CancelDatabaseTransferInput; } -export interface AppsUpgradeAppVariables { - input: AppsUpgradeAppInput; +export interface DeleteSitePreviewVariables { + input: DeleteSitePreviewInput; } export interface DomainsAssignSubdomainVariables { input: DomainsAssignSubdomainInput; } +export interface MintSitePreviewTokenVariables { + input: MintSitePreviewTokenInput; +} +export interface PagesInstallPagesVariables { + input: PagesInstallPagesInput; +} +export interface PlatformDeleteSitePreviewVariables { + input: PlatformDeleteSitePreviewInput; +} export interface PlatformDomainsAssignSubdomainVariables { input: PlatformDomainsAssignSubdomainInput; } +export interface PlatformMintSitePreviewTokenVariables { + input: PlatformMintSitePreviewTokenInput; +} +export interface PlatformPagesInstallPagesVariables { + input: PlatformPagesInstallPagesInput; +} +export interface PlatformProvisionSitePreviewVariables { + input: PlatformProvisionSitePreviewInput; +} +export interface PlatformSetSitePreviewVariables { + input: PlatformSetSitePreviewInput; +} +export interface PlatformSiteMetadataInstallRobotsVariables { + input: PlatformSiteMetadataInstallRobotsInput; +} +export interface PlatformSitesInstallContentPresetVariables { + input: PlatformSitesInstallContentPresetInput; +} +export interface PlatformSitesInstallMantraVariables { + input: PlatformSitesInstallMantraInput; +} export interface PlatformSitesProvisionStaticSiteVariables { input: PlatformSitesProvisionStaticSiteInput; } /** * Variables for provisionBucket - * 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. + * Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. */ export interface ProvisionBucketVariables { input: ProvisionBucketInput; } +export interface ProvisionSitePreviewVariables { + input: ProvisionSitePreviewInput; +} +export interface RejectDatabaseTransferVariables { + input: RejectDatabaseTransferInput; +} /** * Variables for requestDatabase * 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. +Pass exactly one of preset_slug or modules. Pass organization_id to have the organization own the database from the start (the caller must be an owner of that organization); the requesting user is still the identity bootstrapped into the new database. Omit it for a personal database. 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); + SELECT * FROM metaschema_public.request_database('team_app', 'example.com', preset_slug := 'full', organization_id := '00000000-0000-0000-0000-000000000000'::uuid); */ export interface RequestDatabaseVariables { input: RequestDatabaseInput; @@ -89,125 +175,137 @@ export interface RequestDatabaseVariables { export interface SetFieldOrderVariables { input: SetFieldOrderInput; } +export interface SetSitePreviewVariables { + input: SetSitePreviewInput; +} +export interface SiteMetadataInstallRobotsVariables { + input: SiteMetadataInstallRobotsInput; +} +export interface SitesInstallContentPresetVariables { + input: SitesInstallContentPresetInput; +} +export interface SitesInstallMantraVariables { + input: SitesInstallMantraInput; +} export interface SitesProvisionStaticSiteVariables { input: SitesProvisionStaticSiteInput; } export function createMutationOperations(client: OrmClient) { return { - applyRls: ( - args: ApplyRlsVariables, + acceptDatabaseTransfer: ( + args: AcceptDatabaseTransferVariables, options: { select: S; - } & StrictSelect + } & StrictSelect ) => new QueryBuilder<{ - applyRls: InferSelectResult | null; + acceptDatabaseTransfer: InferSelectResult | null; }>({ client, operation: 'mutation', - operationName: 'ApplyRls', - fieldName: 'applyRls', + operationName: 'AcceptDatabaseTransfer', + fieldName: 'acceptDatabaseTransfer', ...buildCustomDocument( 'mutation', - 'ApplyRls', - 'applyRls', + 'AcceptDatabaseTransfer', + 'acceptDatabaseTransfer', options.select, args, [ { name: 'input', - type: 'ApplyRlsInput!', + type: 'AcceptDatabaseTransferInput!', }, ], connectionFieldsMap, - 'ApplyRlsPayload' + 'AcceptDatabaseTransferPayload' ), }), - appsInstallApp: ( - args: AppsInstallAppVariables, + applyRls: ( + args: ApplyRlsVariables, options: { select: S; - } & StrictSelect + } & StrictSelect ) => new QueryBuilder<{ - appsInstallApp: InferSelectResult | null; + applyRls: InferSelectResult | null; }>({ client, operation: 'mutation', - operationName: 'AppsInstallApp', - fieldName: 'appsInstallApp', + operationName: 'ApplyRls', + fieldName: 'applyRls', ...buildCustomDocument( 'mutation', - 'AppsInstallApp', - 'appsInstallApp', + 'ApplyRls', + 'applyRls', options.select, args, [ { name: 'input', - type: 'AppsInstallAppInput!', + type: 'ApplyRlsInput!', }, ], connectionFieldsMap, - 'AppsInstallAppPayload' + 'ApplyRlsPayload' ), }), - appsUninstallApp: ( - args: AppsUninstallAppVariables, + cancelDatabaseTransfer: ( + args: CancelDatabaseTransferVariables, options: { select: S; - } & StrictSelect + } & StrictSelect ) => new QueryBuilder<{ - appsUninstallApp: InferSelectResult | null; + cancelDatabaseTransfer: InferSelectResult | null; }>({ client, operation: 'mutation', - operationName: 'AppsUninstallApp', - fieldName: 'appsUninstallApp', + operationName: 'CancelDatabaseTransfer', + fieldName: 'cancelDatabaseTransfer', ...buildCustomDocument( 'mutation', - 'AppsUninstallApp', - 'appsUninstallApp', + 'CancelDatabaseTransfer', + 'cancelDatabaseTransfer', options.select, args, [ { name: 'input', - type: 'AppsUninstallAppInput!', + type: 'CancelDatabaseTransferInput!', }, ], connectionFieldsMap, - 'AppsUninstallAppPayload' + 'CancelDatabaseTransferPayload' ), }), - appsUpgradeApp: ( - args: AppsUpgradeAppVariables, + deleteSitePreview: ( + args: DeleteSitePreviewVariables, options: { select: S; - } & StrictSelect + } & StrictSelect ) => new QueryBuilder<{ - appsUpgradeApp: InferSelectResult | null; + deleteSitePreview: InferSelectResult | null; }>({ client, operation: 'mutation', - operationName: 'AppsUpgradeApp', - fieldName: 'appsUpgradeApp', + operationName: 'DeleteSitePreview', + fieldName: 'deleteSitePreview', ...buildCustomDocument( 'mutation', - 'AppsUpgradeApp', - 'appsUpgradeApp', + 'DeleteSitePreview', + 'deleteSitePreview', options.select, args, [ { name: 'input', - type: 'AppsUpgradeAppInput!', + type: 'DeleteSitePreviewInput!', }, ], connectionFieldsMap, - 'AppsUpgradeAppPayload' + 'DeleteSitePreviewPayload' ), }), domainsAssignSubdomain: ( @@ -239,6 +337,93 @@ export function createMutationOperations(client: OrmClient) { 'DomainsAssignSubdomainPayload' ), }), + mintSitePreviewToken: ( + args: MintSitePreviewTokenVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + mintSitePreviewToken: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'MintSitePreviewToken', + fieldName: 'mintSitePreviewToken', + ...buildCustomDocument( + 'mutation', + 'MintSitePreviewToken', + 'mintSitePreviewToken', + options.select, + args, + [ + { + name: 'input', + type: 'MintSitePreviewTokenInput!', + }, + ], + connectionFieldsMap, + 'MintSitePreviewTokenPayload' + ), + }), + pagesInstallPages: ( + args: PagesInstallPagesVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + pagesInstallPages: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'PagesInstallPages', + fieldName: 'pagesInstallPages', + ...buildCustomDocument( + 'mutation', + 'PagesInstallPages', + 'pagesInstallPages', + options.select, + args, + [ + { + name: 'input', + type: 'PagesInstallPagesInput!', + }, + ], + connectionFieldsMap, + 'PagesInstallPagesPayload' + ), + }), + platformDeleteSitePreview: ( + args: PlatformDeleteSitePreviewVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + platformDeleteSitePreview: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'PlatformDeleteSitePreview', + fieldName: 'platformDeleteSitePreview', + ...buildCustomDocument( + 'mutation', + 'PlatformDeleteSitePreview', + 'platformDeleteSitePreview', + options.select, + args, + [ + { + name: 'input', + type: 'PlatformDeleteSitePreviewInput!', + }, + ], + connectionFieldsMap, + 'PlatformDeleteSitePreviewPayload' + ), + }), platformDomainsAssignSubdomain: ( args: PlatformDomainsAssignSubdomainVariables, options: { @@ -271,6 +456,221 @@ export function createMutationOperations(client: OrmClient) { 'PlatformDomainsAssignSubdomainPayload' ), }), + platformMintSitePreviewToken: ( + args: PlatformMintSitePreviewTokenVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + platformMintSitePreviewToken: InferSelectResult< + PlatformMintSitePreviewTokenPayload, + S + > | null; + }>({ + client, + operation: 'mutation', + operationName: 'PlatformMintSitePreviewToken', + fieldName: 'platformMintSitePreviewToken', + ...buildCustomDocument( + 'mutation', + 'PlatformMintSitePreviewToken', + 'platformMintSitePreviewToken', + options.select, + args, + [ + { + name: 'input', + type: 'PlatformMintSitePreviewTokenInput!', + }, + ], + connectionFieldsMap, + 'PlatformMintSitePreviewTokenPayload' + ), + }), + platformPagesInstallPages: ( + args: PlatformPagesInstallPagesVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + platformPagesInstallPages: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'PlatformPagesInstallPages', + fieldName: 'platformPagesInstallPages', + ...buildCustomDocument( + 'mutation', + 'PlatformPagesInstallPages', + 'platformPagesInstallPages', + options.select, + args, + [ + { + name: 'input', + type: 'PlatformPagesInstallPagesInput!', + }, + ], + connectionFieldsMap, + 'PlatformPagesInstallPagesPayload' + ), + }), + platformProvisionSitePreview: ( + args: PlatformProvisionSitePreviewVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + platformProvisionSitePreview: InferSelectResult< + PlatformProvisionSitePreviewPayload, + S + > | null; + }>({ + client, + operation: 'mutation', + operationName: 'PlatformProvisionSitePreview', + fieldName: 'platformProvisionSitePreview', + ...buildCustomDocument( + 'mutation', + 'PlatformProvisionSitePreview', + 'platformProvisionSitePreview', + options.select, + args, + [ + { + name: 'input', + type: 'PlatformProvisionSitePreviewInput!', + }, + ], + connectionFieldsMap, + 'PlatformProvisionSitePreviewPayload' + ), + }), + platformSetSitePreview: ( + args: PlatformSetSitePreviewVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + platformSetSitePreview: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'PlatformSetSitePreview', + fieldName: 'platformSetSitePreview', + ...buildCustomDocument( + 'mutation', + 'PlatformSetSitePreview', + 'platformSetSitePreview', + options.select, + args, + [ + { + name: 'input', + type: 'PlatformSetSitePreviewInput!', + }, + ], + connectionFieldsMap, + 'PlatformSetSitePreviewPayload' + ), + }), + platformSiteMetadataInstallRobots: ( + args: PlatformSiteMetadataInstallRobotsVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + platformSiteMetadataInstallRobots: InferSelectResult< + PlatformSiteMetadataInstallRobotsPayload, + S + > | null; + }>({ + client, + operation: 'mutation', + operationName: 'PlatformSiteMetadataInstallRobots', + fieldName: 'platformSiteMetadataInstallRobots', + ...buildCustomDocument( + 'mutation', + 'PlatformSiteMetadataInstallRobots', + 'platformSiteMetadataInstallRobots', + options.select, + args, + [ + { + name: 'input', + type: 'PlatformSiteMetadataInstallRobotsInput!', + }, + ], + connectionFieldsMap, + 'PlatformSiteMetadataInstallRobotsPayload' + ), + }), + platformSitesInstallContentPreset: ( + args: PlatformSitesInstallContentPresetVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + platformSitesInstallContentPreset: InferSelectResult< + PlatformSitesInstallContentPresetPayload, + S + > | null; + }>({ + client, + operation: 'mutation', + operationName: 'PlatformSitesInstallContentPreset', + fieldName: 'platformSitesInstallContentPreset', + ...buildCustomDocument( + 'mutation', + 'PlatformSitesInstallContentPreset', + 'platformSitesInstallContentPreset', + options.select, + args, + [ + { + name: 'input', + type: 'PlatformSitesInstallContentPresetInput!', + }, + ], + connectionFieldsMap, + 'PlatformSitesInstallContentPresetPayload' + ), + }), + platformSitesInstallMantra: ( + args: PlatformSitesInstallMantraVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + platformSitesInstallMantra: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'PlatformSitesInstallMantra', + fieldName: 'platformSitesInstallMantra', + ...buildCustomDocument( + 'mutation', + 'PlatformSitesInstallMantra', + 'platformSitesInstallMantra', + options.select, + args, + [ + { + name: 'input', + type: 'PlatformSitesInstallMantraInput!', + }, + ], + connectionFieldsMap, + 'PlatformSitesInstallMantraPayload' + ), + }), platformSitesProvisionStaticSite: ( args: PlatformSitesProvisionStaticSiteVariables, options: { @@ -332,6 +732,64 @@ export function createMutationOperations(client: OrmClient) { 'ProvisionBucketPayload' ), }), + provisionSitePreview: ( + args: ProvisionSitePreviewVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + provisionSitePreview: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'ProvisionSitePreview', + fieldName: 'provisionSitePreview', + ...buildCustomDocument( + 'mutation', + 'ProvisionSitePreview', + 'provisionSitePreview', + options.select, + args, + [ + { + name: 'input', + type: 'ProvisionSitePreviewInput!', + }, + ], + connectionFieldsMap, + 'ProvisionSitePreviewPayload' + ), + }), + rejectDatabaseTransfer: ( + args: RejectDatabaseTransferVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + rejectDatabaseTransfer: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'RejectDatabaseTransfer', + fieldName: 'rejectDatabaseTransfer', + ...buildCustomDocument( + 'mutation', + 'RejectDatabaseTransfer', + 'rejectDatabaseTransfer', + options.select, + args, + [ + { + name: 'input', + type: 'RejectDatabaseTransferInput!', + }, + ], + connectionFieldsMap, + 'RejectDatabaseTransferPayload' + ), + }), requestDatabase: ( args: RequestDatabaseVariables, options: { @@ -390,6 +848,122 @@ export function createMutationOperations(client: OrmClient) { 'SetFieldOrderPayload' ), }), + setSitePreview: ( + args: SetSitePreviewVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + setSitePreview: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SetSitePreview', + fieldName: 'setSitePreview', + ...buildCustomDocument( + 'mutation', + 'SetSitePreview', + 'setSitePreview', + options.select, + args, + [ + { + name: 'input', + type: 'SetSitePreviewInput!', + }, + ], + connectionFieldsMap, + 'SetSitePreviewPayload' + ), + }), + siteMetadataInstallRobots: ( + args: SiteMetadataInstallRobotsVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + siteMetadataInstallRobots: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SiteMetadataInstallRobots', + fieldName: 'siteMetadataInstallRobots', + ...buildCustomDocument( + 'mutation', + 'SiteMetadataInstallRobots', + 'siteMetadataInstallRobots', + options.select, + args, + [ + { + name: 'input', + type: 'SiteMetadataInstallRobotsInput!', + }, + ], + connectionFieldsMap, + 'SiteMetadataInstallRobotsPayload' + ), + }), + sitesInstallContentPreset: ( + args: SitesInstallContentPresetVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + sitesInstallContentPreset: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SitesInstallContentPreset', + fieldName: 'sitesInstallContentPreset', + ...buildCustomDocument( + 'mutation', + 'SitesInstallContentPreset', + 'sitesInstallContentPreset', + options.select, + args, + [ + { + name: 'input', + type: 'SitesInstallContentPresetInput!', + }, + ], + connectionFieldsMap, + 'SitesInstallContentPresetPayload' + ), + }), + sitesInstallMantra: ( + args: SitesInstallMantraVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + sitesInstallMantra: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SitesInstallMantra', + fieldName: 'sitesInstallMantra', + ...buildCustomDocument( + 'mutation', + 'SitesInstallMantra', + 'sitesInstallMantra', + options.select, + args, + [ + { + name: 'input', + type: 'SitesInstallMantraInput!', + }, + ], + connectionFieldsMap, + 'SitesInstallMantraPayload' + ), + }), sitesProvisionStaticSite: ( args: SitesProvisionStaticSiteVariables, options: { diff --git a/sdk/constructive-sdk/src/api/orm/query/index.ts b/sdk/constructive-sdk/src/api/orm/query/index.ts index 1d38cd7001..0c2a655e71 100644 --- a/sdk/constructive-sdk/src/api/orm/query/index.ts +++ b/sdk/constructive-sdk/src/api/orm/query/index.ts @@ -6,12 +6,7 @@ import { OrmClient } from '../client'; import { QueryBuilder, buildCustomDocument } from '../query-builder'; import type { InferSelectResult, StrictSelect } from '../select-types'; -import type { - ResolveHttpRouteRecord, - ResolveRouteRecord, - ResolveHttpRouteRecordSelect, - ResolveRouteRecordSelect, -} from '../input-types'; +import type { ResolveRouteRecord, ResolveRouteRecordSelect } from '../input-types'; import { connectionFieldsMap } from '../input-types'; export interface ApiSchemaNamesVariables { targetApiId?: string; @@ -20,14 +15,44 @@ export interface ApplyRegistryDefaultsVariables { data?: unknown; nodeType?: string; } -export interface ResolveDeepLinkVariables { +export interface GetSitePreviewCommitVariables { + targetName?: string; + targetSiteId?: string; +} +export interface GetSiteReleaseManifestVariables { + targetCommitId?: string; + targetSiteId?: string; +} +export interface PagePublishedVariables { + pageSlug?: string; + targetSiteId?: string; +} +export interface PlatformGetSitePreviewCommitVariables { + targetName?: string; + targetSiteId?: string; +} +export interface PlatformGetSiteReleaseManifestVariables { + targetCommitId?: string; + targetSiteId?: string; +} +export interface PlatformPagePublishedVariables { + pageSlug?: string; + targetSiteId?: string; +} +export interface PlatformSitesDeepLinkUrlVariables { linkSlug?: string; targetSiteId?: string; } -export interface ResolveHttpRouteVariables { - requestHost?: string; - requestMethod?: string; - requestPath?: string; +export interface PlatformSitesSiteOriginVariables { + targetSiteId?: string; +} +export interface PlatformVerifySitePreviewTokenVariables { + siteId?: string; + token?: string; +} +export interface ResolveDeepLinkVariables { + linkSlug?: string; + targetSiteId?: string; } export interface ResolveRouteVariables { requestHost?: string; @@ -37,6 +62,17 @@ export interface ResolveRouteVariables { export interface ResolveSiteAppLinksVariables { targetSiteId?: string; } +export interface SitesDeepLinkUrlVariables { + linkSlug?: string; + targetSiteId?: string; +} +export interface SitesSiteOriginVariables { + targetSiteId?: string; +} +export interface VerifySitePreviewTokenVariables { + siteId?: string; + token?: string; +} export function createQueryOperations(client: OrmClient) { return { apiSchemaNames: ( @@ -101,28 +137,28 @@ export function createQueryOperations(client: OrmClient) { undefined ), }), - resolveDeepLink: ( - args: ResolveDeepLinkVariables, + getSitePreviewCommit: ( + args: GetSitePreviewCommitVariables, options?: { select?: Record; } ) => new QueryBuilder<{ - resolveDeepLink: unknown | null; + getSitePreviewCommit: string | null; }>({ client, operation: 'query', - operationName: 'ResolveDeepLink', - fieldName: 'resolveDeepLink', + operationName: 'GetSitePreviewCommit', + fieldName: 'getSitePreviewCommit', ...buildCustomDocument( 'query', - 'ResolveDeepLink', - 'resolveDeepLink', + 'GetSitePreviewCommit', + 'getSitePreviewCommit', options?.select, args, [ { - name: 'linkSlug', + name: 'targetName', type: 'String', }, { @@ -134,41 +170,297 @@ export function createQueryOperations(client: OrmClient) { undefined ), }), - resolveHttpRoute: ( - args: ResolveHttpRouteVariables, - options: { - select: S; - } & StrictSelect + getSiteReleaseManifest: ( + args: GetSiteReleaseManifestVariables, + options?: { + select?: Record; + } ) => new QueryBuilder<{ - resolveHttpRoute: InferSelectResult | null; + getSiteReleaseManifest: unknown | null; }>({ client, operation: 'query', - operationName: 'ResolveHttpRoute', - fieldName: 'resolveHttpRoute', + operationName: 'GetSiteReleaseManifest', + fieldName: 'getSiteReleaseManifest', ...buildCustomDocument( 'query', - 'ResolveHttpRoute', - 'resolveHttpRoute', - options.select, + 'GetSiteReleaseManifest', + 'getSiteReleaseManifest', + options?.select, args, [ { - name: 'requestHost', + name: 'targetCommitId', + type: 'UUID', + }, + { + name: 'targetSiteId', + type: 'UUID', + }, + ], + connectionFieldsMap, + undefined + ), + }), + pagePublished: ( + args: PagePublishedVariables, + options?: { + select?: Record; + } + ) => + new QueryBuilder<{ + pagePublished: unknown | null; + }>({ + client, + operation: 'query', + operationName: 'PagePublished', + fieldName: 'pagePublished', + ...buildCustomDocument( + 'query', + 'PagePublished', + 'pagePublished', + options?.select, + args, + [ + { + name: 'pageSlug', type: 'String', }, { - name: 'requestMethod', + name: 'targetSiteId', + type: 'UUID', + }, + ], + connectionFieldsMap, + undefined + ), + }), + platformGetSitePreviewCommit: ( + args: PlatformGetSitePreviewCommitVariables, + options?: { + select?: Record; + } + ) => + new QueryBuilder<{ + platformGetSitePreviewCommit: string | null; + }>({ + client, + operation: 'query', + operationName: 'PlatformGetSitePreviewCommit', + fieldName: 'platformGetSitePreviewCommit', + ...buildCustomDocument( + 'query', + 'PlatformGetSitePreviewCommit', + 'platformGetSitePreviewCommit', + options?.select, + args, + [ + { + name: 'targetName', type: 'String', }, { - name: 'requestPath', + name: 'targetSiteId', + type: 'UUID', + }, + ], + connectionFieldsMap, + undefined + ), + }), + platformGetSiteReleaseManifest: ( + args: PlatformGetSiteReleaseManifestVariables, + options?: { + select?: Record; + } + ) => + new QueryBuilder<{ + platformGetSiteReleaseManifest: unknown | null; + }>({ + client, + operation: 'query', + operationName: 'PlatformGetSiteReleaseManifest', + fieldName: 'platformGetSiteReleaseManifest', + ...buildCustomDocument( + 'query', + 'PlatformGetSiteReleaseManifest', + 'platformGetSiteReleaseManifest', + options?.select, + args, + [ + { + name: 'targetCommitId', + type: 'UUID', + }, + { + name: 'targetSiteId', + type: 'UUID', + }, + ], + connectionFieldsMap, + undefined + ), + }), + platformPagePublished: ( + args: PlatformPagePublishedVariables, + options?: { + select?: Record; + } + ) => + new QueryBuilder<{ + platformPagePublished: unknown | null; + }>({ + client, + operation: 'query', + operationName: 'PlatformPagePublished', + fieldName: 'platformPagePublished', + ...buildCustomDocument( + 'query', + 'PlatformPagePublished', + 'platformPagePublished', + options?.select, + args, + [ + { + name: 'pageSlug', + type: 'String', + }, + { + name: 'targetSiteId', + type: 'UUID', + }, + ], + connectionFieldsMap, + undefined + ), + }), + platformSitesDeepLinkUrl: ( + args: PlatformSitesDeepLinkUrlVariables, + options?: { + select?: Record; + } + ) => + new QueryBuilder<{ + platformSitesDeepLinkUrl: string | null; + }>({ + client, + operation: 'query', + operationName: 'PlatformSitesDeepLinkUrl', + fieldName: 'platformSitesDeepLinkUrl', + ...buildCustomDocument( + 'query', + 'PlatformSitesDeepLinkUrl', + 'platformSitesDeepLinkUrl', + options?.select, + args, + [ + { + name: 'linkSlug', type: 'String', }, + { + name: 'targetSiteId', + type: 'UUID', + }, ], connectionFieldsMap, - 'ResolveHttpRouteRecord' + undefined + ), + }), + platformSitesSiteOrigin: ( + args: PlatformSitesSiteOriginVariables, + options?: { + select?: Record; + } + ) => + new QueryBuilder<{ + platformSitesSiteOrigin: string | null; + }>({ + client, + operation: 'query', + operationName: 'PlatformSitesSiteOrigin', + fieldName: 'platformSitesSiteOrigin', + ...buildCustomDocument( + 'query', + 'PlatformSitesSiteOrigin', + 'platformSitesSiteOrigin', + options?.select, + args, + [ + { + name: 'targetSiteId', + type: 'UUID', + }, + ], + connectionFieldsMap, + undefined + ), + }), + platformVerifySitePreviewToken: ( + args: PlatformVerifySitePreviewTokenVariables, + options?: { + select?: Record; + } + ) => + new QueryBuilder<{ + platformVerifySitePreviewToken: string | null; + }>({ + client, + operation: 'query', + operationName: 'PlatformVerifySitePreviewToken', + fieldName: 'platformVerifySitePreviewToken', + ...buildCustomDocument( + 'query', + 'PlatformVerifySitePreviewToken', + 'platformVerifySitePreviewToken', + options?.select, + args, + [ + { + name: 'siteId', + type: 'UUID', + }, + { + name: 'token', + type: 'String', + }, + ], + connectionFieldsMap, + undefined + ), + }), + resolveDeepLink: ( + args: ResolveDeepLinkVariables, + options?: { + select?: Record; + } + ) => + new QueryBuilder<{ + resolveDeepLink: unknown | null; + }>({ + client, + operation: 'query', + operationName: 'ResolveDeepLink', + fieldName: 'resolveDeepLink', + ...buildCustomDocument( + 'query', + 'ResolveDeepLink', + 'resolveDeepLink', + options?.select, + args, + [ + { + name: 'linkSlug', + type: 'String', + }, + { + name: 'targetSiteId', + type: 'UUID', + }, + ], + connectionFieldsMap, + undefined ), }), resolveRoute: ( @@ -237,5 +529,100 @@ export function createQueryOperations(client: OrmClient) { undefined ), }), + sitesDeepLinkUrl: ( + args: SitesDeepLinkUrlVariables, + options?: { + select?: Record; + } + ) => + new QueryBuilder<{ + sitesDeepLinkUrl: string | null; + }>({ + client, + operation: 'query', + operationName: 'SitesDeepLinkUrl', + fieldName: 'sitesDeepLinkUrl', + ...buildCustomDocument( + 'query', + 'SitesDeepLinkUrl', + 'sitesDeepLinkUrl', + options?.select, + args, + [ + { + name: 'linkSlug', + type: 'String', + }, + { + name: 'targetSiteId', + type: 'UUID', + }, + ], + connectionFieldsMap, + undefined + ), + }), + sitesSiteOrigin: ( + args: SitesSiteOriginVariables, + options?: { + select?: Record; + } + ) => + new QueryBuilder<{ + sitesSiteOrigin: string | null; + }>({ + client, + operation: 'query', + operationName: 'SitesSiteOrigin', + fieldName: 'sitesSiteOrigin', + ...buildCustomDocument( + 'query', + 'SitesSiteOrigin', + 'sitesSiteOrigin', + options?.select, + args, + [ + { + name: 'targetSiteId', + type: 'UUID', + }, + ], + connectionFieldsMap, + undefined + ), + }), + verifySitePreviewToken: ( + args: VerifySitePreviewTokenVariables, + options?: { + select?: Record; + } + ) => + new QueryBuilder<{ + verifySitePreviewToken: string | null; + }>({ + client, + operation: 'query', + operationName: 'VerifySitePreviewToken', + fieldName: 'verifySitePreviewToken', + ...buildCustomDocument( + 'query', + 'VerifySitePreviewToken', + 'verifySitePreviewToken', + options?.select, + args, + [ + { + name: 'siteId', + type: 'UUID', + }, + { + name: 'token', + type: 'String', + }, + ], + connectionFieldsMap, + undefined + ), + }), }; } diff --git a/sdk/constructive-sdk/src/auth/README.md b/sdk/constructive-sdk/src/auth/README.md index 03bb5d5ea3..3fabb60e9f 100644 --- a/sdk/constructive-sdk/src/auth/README.md +++ b/sdk/constructive-sdk/src/auth/README.md @@ -8,9 +8,9 @@ ## Overview -- **Tables:** 13 -- **Custom queries:** 5 -- **Custom mutations:** 32 +- **Tables:** 15 +- **Custom queries:** 6 +- **Custom mutations:** 49 **Generators:** ORM diff --git a/sdk/constructive-sdk/src/auth/orm/README.md b/sdk/constructive-sdk/src/auth/orm/README.md index 54c1c05969..431112c14e 100644 --- a/sdk/constructive-sdk/src/auth/orm/README.md +++ b/sdk/constructive-sdk/src/auth/orm/README.md @@ -33,6 +33,8 @@ const db = createClient({ | `roleType` | findMany, findOne, create, update, delete | | `userConnectedAccount` | findMany, findOne, create, update, delete | | `user` | findMany, findOne, create, update, delete | +| `userSetting` | findMany, findOne, create, update, delete | +| `userSettingsSecurity` | findMany, findOne, create, update, delete | | `webauthnCredential` | findMany, findOne, create, update, delete | ## Table Operations @@ -47,6 +49,7 @@ CRUD operations for AuditLogAuth records. |-------|------|----------| | `actorId` | UUID | Yes | | `createdAt` | Datetime | No | +| `details` | JSON | Yes | | `event` | String | Yes | | `id` | UUID | No | | `ipAddress` | InternetAddress | Yes | @@ -58,13 +61,13 @@ CRUD operations for AuditLogAuth records. ```typescript // List all auditLogAuth records -const items = await db.auditLogAuth.findMany({ select: { actorId: true, createdAt: true, event: true, id: true, ipAddress: true, origin: true, success: true, userAgent: true } }).execute(); +const items = await db.auditLogAuth.findMany({ select: { actorId: true, createdAt: true, details: true, event: true, id: true, ipAddress: true, origin: true, success: true, userAgent: true } }).execute(); // Get one by id -const item = await db.auditLogAuth.findOne({ id: '', select: { actorId: true, createdAt: true, event: true, id: true, ipAddress: true, origin: true, success: true, userAgent: true } }).execute(); +const item = await db.auditLogAuth.findOne({ id: '', select: { actorId: true, createdAt: true, details: true, event: true, id: true, ipAddress: true, origin: true, success: true, userAgent: true } }).execute(); // Create -const created = await db.auditLogAuth.create({ data: { actorId: '', event: '', ipAddress: '', origin: '', success: '', userAgent: '' }, select: { id: true } }).execute(); +const created = await db.auditLogAuth.create({ data: { actorId: '', details: '', event: '', ipAddress: '', origin: '', success: '', userAgent: '' }, select: { id: true } }).execute(); // Update const updated = await db.auditLogAuth.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); @@ -264,10 +267,14 @@ CRUD operations for Principal records. |-------|------|----------| | `bypassStepUp` | Boolean | Yes | | `createdAt` | Datetime | No | +| `createdBySessionId` | UUID | Yes | +| `depth` | Int | Yes | +| `expiresAt` | Datetime | Yes | | `id` | UUID | Yes | | `isReadOnly` | Boolean | Yes | | `name` | String | Yes | | `ownerId` | UUID | Yes | +| `parentPrincipalId` | UUID | Yes | | `updatedAt` | Datetime | No | | `useAdminOwner` | Boolean | Yes | | `userId` | UUID | Yes | @@ -276,13 +283,13 @@ CRUD operations for Principal records. ```typescript // List all principal records -const items = await db.principal.findMany({ select: { bypassStepUp: true, createdAt: true, id: true, isReadOnly: true, name: true, ownerId: true, updatedAt: true, useAdminOwner: true, userId: true } }).execute(); +const items = await db.principal.findMany({ select: { bypassStepUp: true, createdAt: true, createdBySessionId: true, depth: true, expiresAt: true, id: true, isReadOnly: true, name: true, ownerId: true, parentPrincipalId: true, updatedAt: true, useAdminOwner: true, userId: true } }).execute(); // Get one by principalId -const item = await db.principal.findOne({ principalId: '', select: { bypassStepUp: true, createdAt: true, id: true, isReadOnly: true, name: true, ownerId: true, updatedAt: true, useAdminOwner: true, userId: true } }).execute(); +const item = await db.principal.findOne({ principalId: '', select: { bypassStepUp: true, createdAt: true, createdBySessionId: true, depth: true, expiresAt: true, id: true, isReadOnly: true, name: true, ownerId: true, parentPrincipalId: true, updatedAt: true, useAdminOwner: true, userId: true } }).execute(); // Create -const created = await db.principal.create({ data: { bypassStepUp: '', id: '', isReadOnly: '', name: '', ownerId: '', useAdminOwner: '', userId: '' }, select: { principalId: true } }).execute(); +const created = await db.principal.create({ data: { bypassStepUp: '', createdBySessionId: '', depth: '', expiresAt: '', id: '', isReadOnly: '', name: '', ownerId: '', parentPrincipalId: '', useAdminOwner: '', userId: '' }, select: { principalId: true } }).execute(); // Update const updated = await db.principal.update({ where: { principalId: '' }, data: { bypassStepUp: '' }, select: { principalId: true } }).execute(); @@ -470,6 +477,76 @@ const deleted = await db.user.delete({ where: { id: '' } }).execute(); > **Unified Search API fields:** `searchTsv` > Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. +### `db.userSetting` + +CRUD operations for UserSetting records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `createdAt` | Datetime | No | +| `id` | UUID | No | +| `ownerId` | UUID | Yes | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all userSetting records +const items = await db.userSetting.findMany({ select: { createdAt: true, id: true, ownerId: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.userSetting.findOne({ id: '', select: { createdAt: true, id: true, ownerId: true, updatedAt: true } }).execute(); + +// Create +const created = await db.userSetting.create({ data: { ownerId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.userSetting.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.userSetting.delete({ where: { id: '' } }).execute(); +``` + +### `db.userSettingsSecurity` + +CRUD operations for UserSettingsSecurity records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `backupCodesCount` | Int | Yes | +| `createdAt` | Datetime | No | +| `emailMfaEnabled` | Boolean | Yes | +| `id` | UUID | No | +| `mfaEnrolledAt` | Datetime | Yes | +| `mfaLastUsedAt` | Datetime | Yes | +| `ownerId` | UUID | Yes | +| `smsMfaEnabled` | Boolean | Yes | +| `totpEnabled` | Boolean | Yes | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all userSettingsSecurity records +const items = await db.userSettingsSecurity.findMany({ select: { backupCodesCount: true, createdAt: true, emailMfaEnabled: true, id: true, mfaEnrolledAt: true, mfaLastUsedAt: true, ownerId: true, smsMfaEnabled: true, totpEnabled: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.userSettingsSecurity.findOne({ id: '', select: { backupCodesCount: true, createdAt: true, emailMfaEnabled: true, id: true, mfaEnrolledAt: true, mfaLastUsedAt: true, ownerId: true, smsMfaEnabled: true, totpEnabled: true, updatedAt: true } }).execute(); + +// Create +const created = await db.userSettingsSecurity.create({ data: { backupCodesCount: '', emailMfaEnabled: '', mfaEnrolledAt: '', mfaLastUsedAt: '', ownerId: '', smsMfaEnabled: '', totpEnabled: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.userSettingsSecurity.update({ where: { id: '' }, data: { backupCodesCount: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.userSettingsSecurity.delete({ where: { id: '' } }).execute(); +``` + ### `db.webauthnCredential` CRUD operations for WebauthnCredential records. @@ -558,6 +635,17 @@ currentUserId const result = await db.query.currentUserId().execute(); ``` +### `db.query.getMfaStatus` + +getMfaStatus + +- **Type:** query +- **Arguments:** none + +```typescript +const result = await db.query.getMfaStatus().execute(); +``` + ### `db.query.requireStepUp` requireStepUp @@ -573,6 +661,21 @@ requireStepUp const result = await db.query.requireStepUp({ stepUpType: '' }).execute(); ``` +### `db.mutation.approveDevice` + +approveDevice + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | ApproveDeviceInput (required) | + +```typescript +const result = await db.mutation.approveDevice({ input: { approvalToken: '' } }).execute(); +``` + ### `db.mutation.checkPassword` checkPassword @@ -588,6 +691,21 @@ checkPassword const result = await db.mutation.checkPassword({ input: { password: '' } }).execute(); ``` +### `db.mutation.completeMfaChallenge` + +completeMfaChallenge + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | CompleteMfaChallengeInput (required) | + +```typescript +const result = await db.mutation.completeMfaChallenge({ input: '' }).execute(); +``` + ### `db.mutation.confirmDeleteAccount` confirmDeleteAccount @@ -603,6 +721,21 @@ confirmDeleteAccount const result = await db.mutation.confirmDeleteAccount({ input: { token: '', userId: '' } }).execute(); ``` +### `db.mutation.confirmTotpSetup` + +confirmTotpSetup + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | ConfirmTotpSetupInput (required) | + +```typescript +const result = await db.mutation.confirmTotpSetup({ input: { totpValue: '' } }).execute(); +``` + ### `db.mutation.createApiKey` createApiKey @@ -618,6 +751,21 @@ createApiKey const result = await db.mutation.createApiKey({ input: { accessLevel: '', expiresIn: '', keyName: '', mfaLevel: '', principalId: '' } }).execute(); ``` +### `db.mutation.createChildPrincipal` + +createChildPrincipal + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | CreateChildPrincipalInput (required) | + +```typescript +const result = await db.mutation.createChildPrincipal({ input: '' }).execute(); +``` + ### `db.mutation.createOrgApiKey` createOrgApiKey @@ -648,6 +796,21 @@ createOrgPrincipal const result = await db.mutation.createOrgPrincipal({ input: { bypassStepUp: '', isReadOnly: '', name: '', orgId: '', useAdminOwner: '' } }).execute(); ``` +### `db.mutation.createPrincipalFromPreset` + +createPrincipalFromPreset + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | CreatePrincipalFromPresetInput (required) | + +```typescript +const result = await db.mutation.createPrincipalFromPreset({ input: { entityIds: '', name: '', overrides: '', slug: '' } }).execute(); +``` + ### `db.mutation.deleteOrgPrincipal` deleteOrgPrincipal @@ -678,6 +841,51 @@ deletePrincipal const result = await db.mutation.deletePrincipal({ input: { principalId: '' } }).execute(); ``` +### `db.mutation.disableEmailMfa` + +disableEmailMfa + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | DisableEmailMfaInput (required) | + +```typescript +const result = await db.mutation.disableEmailMfa({ input: '' }).execute(); +``` + +### `db.mutation.disableSmsMfa` + +disableSmsMfa + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | DisableSmsMfaInput (required) | + +```typescript +const result = await db.mutation.disableSmsMfa({ input: '' }).execute(); +``` + +### `db.mutation.disableTotp` + +disableTotp + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | DisableTotpInput (required) | + +```typescript +const result = await db.mutation.disableTotp({ input: { totpValue: '' } }).execute(); +``` + ### `db.mutation.disconnectAccount` disconnectAccount @@ -693,6 +901,51 @@ disconnectAccount const result = await db.mutation.disconnectAccount({ input: { accountId: '' } }).execute(); ``` +### `db.mutation.enableEmailMfa` + +enableEmailMfa + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | EnableEmailMfaInput (required) | + +```typescript +const result = await db.mutation.enableEmailMfa({ input: '' }).execute(); +``` + +### `db.mutation.enableSmsMfa` + +enableSmsMfa + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | EnableSmsMfaInput (required) | + +```typescript +const result = await db.mutation.enableSmsMfa({ input: '' }).execute(); +``` + +### `db.mutation.enableTotp` + +enableTotp + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | EnableTotpInput (required) | + +```typescript +const result = await db.mutation.enableTotp({ input: '' }).execute(); +``` + ### `db.mutation.extendTokenExpires` extendTokenExpires @@ -723,6 +976,21 @@ forgotPassword const result = await db.mutation.forgotPassword({ input: { email: '' } }).execute(); ``` +### `db.mutation.generateBackupCodes` + +generateBackupCodes + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | GenerateBackupCodesInput (required) | + +```typescript +const result = await db.mutation.generateBackupCodes({ input: '' }).execute(); +``` + ### `db.mutation.linkIdentity` linkIdentity @@ -738,12 +1006,28 @@ linkIdentity const result = await db.mutation.linkIdentity({ input: { details: '', identifier: '', service: '' } }).execute(); ``` +### `db.mutation.mintAccessToken` + +mintAccessToken + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | MintAccessTokenInput (required) | + +```typescript +const result = await db.mutation.mintAccessToken({ input: { accessTtl: '', intent: '', principalId: '' } }).execute(); +``` + ### `db.mutation.provisionBucket` -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. +Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. - **Type:** mutation - **Arguments:** @@ -771,6 +1055,21 @@ provisionNewUser const result = await db.mutation.provisionNewUser({ input: { email: '', password: '' } }).execute(); ``` +### `db.mutation.refreshAccessToken` + +refreshAccessToken + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | RefreshAccessTokenInput (required) | + +```typescript +const result = await db.mutation.refreshAccessToken({ input: { token: '' } }).execute(); +``` + ### `db.mutation.requestCrossOriginToken` requestCrossOriginToken @@ -891,6 +1190,36 @@ setPassword const result = await db.mutation.setPassword({ input: { currentPassword: '', newPassword: '' } }).execute(); ``` +### `db.mutation.setPrincipalEntities` + +setPrincipalEntities + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SetPrincipalEntitiesInput (required) | + +```typescript +const result = await db.mutation.setPrincipalEntities({ input: { entityIds: '', principalId: '' } }).execute(); +``` + +### `db.mutation.setPrincipalScope` + +setPrincipalScope + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SetPrincipalScopeInput (required) | + +```typescript +const result = await db.mutation.setPrincipalScope({ input: '' }).execute(); +``` + ### `db.mutation.signIn` signIn @@ -1011,6 +1340,21 @@ signUpSms const result = await db.mutation.signUpSms({ input: { code: '', credentialKind: '', deviceToken: '', phone: '', rememberMe: '' } }).execute(); ``` +### `db.mutation.updatePrincipal` + +updatePrincipal + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | UpdatePrincipalInput (required) | + +```typescript +const result = await db.mutation.updatePrincipal({ input: { bypassStepUp: '', isReadOnly: '', name: '', principalId: '', useAdminOwner: '' } }).execute(); +``` + ### `db.mutation.verifyEmail` verifyEmail diff --git a/sdk/constructive-sdk/src/auth/orm/index.ts b/sdk/constructive-sdk/src/auth/orm/index.ts index b677b5b306..60da7f9b43 100644 --- a/sdk/constructive-sdk/src/auth/orm/index.ts +++ b/sdk/constructive-sdk/src/auth/orm/index.ts @@ -17,6 +17,8 @@ import { PrincipalScopeOverrideModel } from './models/principalScopeOverride'; import { RoleTypeModel } from './models/roleType'; import { UserConnectedAccountModel } from './models/userConnectedAccount'; import { UserModel } from './models/user'; +import { UserSettingModel } from './models/userSetting'; +import { UserSettingsSecurityModel } from './models/userSettingsSecurity'; import { WebauthnCredentialModel } from './models/webauthnCredential'; import { createQueryOperations } from './query'; import { createMutationOperations } from './mutation'; @@ -65,6 +67,8 @@ export function createClient(config: OrmClientConfig) { roleType: new RoleTypeModel(client), userConnectedAccount: new UserConnectedAccountModel(client), user: new UserModel(client), + userSetting: new UserSettingModel(client), + userSettingsSecurity: new UserSettingsSecurityModel(client), webauthnCredential: new WebauthnCredentialModel(client), query: createQueryOperations(client), mutation: createMutationOperations(client), diff --git a/sdk/constructive-sdk/src/auth/orm/input-types.ts b/sdk/constructive-sdk/src/auth/orm/input-types.ts index f2ea8e5716..3885b35aa7 100644 --- a/sdk/constructive-sdk/src/auth/orm/input-types.ts +++ b/sdk/constructive-sdk/src/auth/orm/input-types.ts @@ -241,6 +241,8 @@ export interface AuditLogAuth { /** User who performed the authentication action; NULL if user was deleted */ actorId?: string | null; createdAt?: string | null; + /** Event-specific structured payload (e.g. preset slug and catalog commit id for create_principal_from_preset) */ + details?: Record | null; /** Type of authentication event (e.g. sign_in, sign_up, password_change, verify_email) */ event?: string | null; /** Unique identifier for each audit event (uuidv7 provides temporal ordering) */ @@ -326,6 +328,12 @@ export interface Principal { /** Whether this principal bypasses MFA step-up requirements */ bypassStepUp?: boolean | null; createdAt?: string | null; + /** Session that minted this child principal; NULL for principals created outside a session chain */ + createdBySessionId?: string | null; + /** Depth of this principal below its owner-derived root (0 for standing principals), bounded by auth_settings.max_principal_depth */ + depth?: number | null; + /** When this ephemeral child principal expires; NULL for standing principals */ + expiresAt?: string | null; id: string; /** Whether this principal is restricted to read-only operations */ isReadOnly?: boolean | null; @@ -333,6 +341,8 @@ export interface Principal { name?: string | null; /** The human user who owns and manages this principal */ ownerId?: string | null; + /** Principal this child principal derives its authority from; NULL for principals that derive from owner_id */ + parentPrincipalId?: string | null; updatedAt?: string | null; /** Whether this principal inherits admin/owner privileges from the owner */ useAdminOwner?: boolean | null; @@ -399,6 +409,32 @@ export interface User { updatedAt?: string | null; username?: string | null; } +/** Per-user settings and preferences. Extended by other modules (i18n, notifications, MFA) via metaschema.create_field(). */ +export interface UserSetting { + createdAt?: string | null; + id: string; + ownerId?: string | null; + updatedAt?: string | null; +} +/** Per-user security settings for MFA configuration (separate from user_settings preferences) */ +export interface UserSettingsSecurity { + /** Number of remaining unused backup codes */ + backupCodesCount?: number | null; + createdAt?: string | null; + /** Whether email-based MFA codes are active for this user */ + emailMfaEnabled?: boolean | null; + id: string; + /** When the first MFA method was enabled */ + mfaEnrolledAt?: string | null; + /** When MFA was last successfully verified */ + mfaLastUsedAt?: string | null; + ownerId?: string | null; + /** Whether SMS-based MFA codes are active for this user */ + smsMfaEnabled?: boolean | null; + /** Whether TOTP (authenticator app) MFA is active for this user */ + totpEnabled?: boolean | null; + updatedAt?: string | null; +} /** WebAuthn/passkey credentials owned by users. One row per registered authenticator (security key, device biometric, synced passkey). Schema mirrors SimpleWebAuthn's canonical Passkey object. */ export interface WebauthnCredential { /** Whether this credential is eligible for backup (syncing) per the authenticator's flags at registration. */ @@ -455,7 +491,9 @@ export interface PhoneNumberRelations { } export interface PrincipalRelations { owner?: User | null; + parentPrincipal?: Principal | null; user?: User | null; + child_principals?: ConnectionResult; principalEntities?: ConnectionResult; principalScopeOverrides?: ConnectionResult; } @@ -470,6 +508,8 @@ export interface PrincipalScopeOverrideRelations { export interface RoleTypeRelations {} export interface UserConnectedAccountRelations {} export interface UserRelations { + ownedUserSetting?: UserSetting | null; + ownedUserSettingsSecurity?: UserSettingsSecurity | null; roleType?: RoleType | null; authAuditLog?: ConnectionResult; cryptoAddresses?: ConnectionResult; @@ -479,6 +519,12 @@ export interface UserRelations { scopedPrincipals?: ConnectionResult; webauthnCredentials?: ConnectionResult; } +export interface UserSettingRelations { + owner?: User | null; +} +export interface UserSettingsSecurityRelations { + owner?: User | null; +} export interface WebauthnCredentialRelations { owner?: User | null; } @@ -497,11 +543,15 @@ export type RoleTypeWithRelations = RoleType & RoleTypeRelations; export type UserConnectedAccountWithRelations = UserConnectedAccount & UserConnectedAccountRelations; export type UserWithRelations = User & UserRelations; +export type UserSettingWithRelations = UserSetting & UserSettingRelations; +export type UserSettingsSecurityWithRelations = UserSettingsSecurity & + UserSettingsSecurityRelations; export type WebauthnCredentialWithRelations = WebauthnCredential & WebauthnCredentialRelations; // ============ Entity Select Types ============ export type AuditLogAuthSelect = { actorId?: boolean; createdAt?: boolean; + details?: boolean; event?: boolean; id?: boolean; ipAddress?: boolean; @@ -575,19 +625,32 @@ export type PhoneNumberSelect = { export type PrincipalSelect = { bypassStepUp?: boolean; createdAt?: boolean; + createdBySessionId?: boolean; + depth?: boolean; + expiresAt?: boolean; id?: boolean; isReadOnly?: boolean; name?: boolean; ownerId?: boolean; + parentPrincipalId?: boolean; updatedAt?: boolean; useAdminOwner?: boolean; userId?: boolean; owner?: { select: UserSelect; }; + parentPrincipal?: { + select: PrincipalSelect; + }; user?: { select: UserSelect; }; + child_principals?: { + select: PrincipalSelect; + first?: number; + filter?: PrincipalFilter; + orderBy?: PrincipalOrderBy[]; + }; principalEntities?: { select: PrincipalEntitySelect; first?: number; @@ -658,6 +721,12 @@ export type UserSelect = { type?: boolean; updatedAt?: boolean; username?: boolean; + ownedUserSetting?: { + select: UserSettingSelect; + }; + ownedUserSettingsSecurity?: { + select: UserSettingsSecuritySelect; + }; roleType?: { select: RoleTypeSelect; }; @@ -704,6 +773,30 @@ export type UserSelect = { orderBy?: WebauthnCredentialOrderBy[]; }; }; +export type UserSettingSelect = { + createdAt?: boolean; + id?: boolean; + ownerId?: boolean; + updatedAt?: boolean; + owner?: { + select: UserSelect; + }; +}; +export type UserSettingsSecuritySelect = { + backupCodesCount?: boolean; + createdAt?: boolean; + emailMfaEnabled?: boolean; + id?: boolean; + mfaEnrolledAt?: boolean; + mfaLastUsedAt?: boolean; + ownerId?: boolean; + smsMfaEnabled?: boolean; + totpEnabled?: boolean; + updatedAt?: boolean; + owner?: { + select: UserSelect; + }; +}; export type WebauthnCredentialSelect = { backupEligible?: boolean; backupState?: boolean; @@ -735,6 +828,8 @@ export interface AuditLogAuthFilter { and?: AuditLogAuthFilter[]; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `details` field. */ + details?: JSONFilter; /** Filter by the object’s `event` field. */ event?: StringFilter; /** Filter by the object’s `id` field. */ @@ -885,8 +980,18 @@ export interface PrincipalFilter { and?: PrincipalFilter[]; /** Filter by the object’s `bypassStepUp` field. */ bypassStepUp?: BooleanFilter; + /** Filter by the object’s `child_principals` relation. */ + child_principals?: PrincipalToManyPrincipalFilter; + /** `child_principals` exist. */ + child_principalsExist?: boolean; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBySessionId` field. */ + createdBySessionId?: UUIDFilter; + /** Filter by the object’s `depth` field. */ + depth?: IntFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `isReadOnly` field. */ @@ -901,6 +1006,12 @@ export interface PrincipalFilter { owner?: UserFilter; /** Filter by the object’s `ownerId` field. */ ownerId?: UUIDFilter; + /** Filter by the object’s `parentPrincipal` relation. */ + parentPrincipal?: PrincipalFilter; + /** A related `parentPrincipal` exists. */ + parentPrincipalExists?: boolean; + /** Filter by the object’s `parentPrincipalId` field. */ + parentPrincipalId?: UUIDFilter; /** Filter by the object’s `principalEntities` relation. */ principalEntities?: PrincipalToManyPrincipalEntityFilter; /** `principalEntities` exist. */ @@ -1033,6 +1144,14 @@ export interface UserFilter { not?: UserFilter; /** Checks for any expressions in this list. */ or?: UserFilter[]; + /** Filter by the object’s `ownedUserSetting` relation. */ + ownedUserSetting?: UserSettingFilter; + /** A related `ownedUserSetting` exists. */ + ownedUserSettingExists?: boolean; + /** Filter by the object’s `ownedUserSettingsSecurity` relation. */ + ownedUserSettingsSecurity?: UserSettingsSecurityFilter; + /** A related `ownedUserSettingsSecurity` exists. */ + ownedUserSettingsSecurityExists?: boolean; /** Filter by the object’s `phoneNumbers` relation. */ phoneNumbers?: UserToManyPhoneNumberFilter; /** `phoneNumbers` exist. */ @@ -1074,6 +1193,54 @@ export interface UserFilter { /** `webauthnCredentials` exist. */ webauthnCredentialsExist?: boolean; } +export interface UserSettingFilter { + /** Checks for all expressions in this list. */ + and?: UserSettingFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: UserSettingFilter; + /** Checks for any expressions in this list. */ + or?: UserSettingFilter[]; + /** Filter by the object’s `owner` relation. */ + owner?: UserFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} +export interface UserSettingsSecurityFilter { + /** Checks for all expressions in this list. */ + and?: UserSettingsSecurityFilter[]; + /** Filter by the object’s `backupCodesCount` field. */ + backupCodesCount?: IntFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `emailMfaEnabled` field. */ + emailMfaEnabled?: BooleanFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `mfaEnrolledAt` field. */ + mfaEnrolledAt?: DatetimeFilter; + /** Filter by the object’s `mfaLastUsedAt` field. */ + mfaLastUsedAt?: DatetimeFilter; + /** Negates the expression. */ + not?: UserSettingsSecurityFilter; + /** Checks for any expressions in this list. */ + or?: UserSettingsSecurityFilter[]; + /** Filter by the object’s `owner` relation. */ + owner?: UserFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `smsMfaEnabled` field. */ + smsMfaEnabled?: BooleanFilter; + /** Filter by the object’s `totpEnabled` field. */ + totpEnabled?: BooleanFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} export interface WebauthnCredentialFilter { /** Checks for all expressions in this list. */ and?: WebauthnCredentialFilter[]; @@ -1118,6 +1285,8 @@ export type AuditLogAuthOrderBy = | 'ACTOR_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' + | 'DETAILS_ASC' + | 'DETAILS_DESC' | 'EVENT_ASC' | 'EVENT_DESC' | 'ID_ASC' @@ -1236,6 +1405,12 @@ export type PrincipalOrderBy = | 'BYPASS_STEP_UP_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' + | 'CREATED_BY_SESSION_ID_ASC' + | 'CREATED_BY_SESSION_ID_DESC' + | 'DEPTH_ASC' + | 'DEPTH_DESC' + | 'EXPIRES_AT_ASC' + | 'EXPIRES_AT_DESC' | 'ID_ASC' | 'ID_DESC' | 'IS_READ_ONLY_ASC' @@ -1245,6 +1420,8 @@ export type PrincipalOrderBy = | 'NATURAL' | 'OWNER_ID_ASC' | 'OWNER_ID_DESC' + | 'PARENT_PRINCIPAL_ID_ASC' + | 'PARENT_PRINCIPAL_ID_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'UPDATED_AT_ASC' @@ -1343,6 +1520,42 @@ export type UserOrderBy = | 'UPDATED_AT_DESC' | 'USERNAME_ASC' | 'USERNAME_DESC'; +export type UserSettingOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type UserSettingsSecurityOrderBy = + | 'BACKUP_CODES_COUNT_ASC' + | 'BACKUP_CODES_COUNT_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'EMAIL_MFA_ENABLED_ASC' + | 'EMAIL_MFA_ENABLED_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'MFA_ENROLLED_AT_ASC' + | 'MFA_ENROLLED_AT_DESC' + | 'MFA_LAST_USED_AT_ASC' + | 'MFA_LAST_USED_AT_DESC' + | 'NATURAL' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'SMS_MFA_ENABLED_ASC' + | 'SMS_MFA_ENABLED_DESC' + | 'TOTP_ENABLED_ASC' + | 'TOTP_ENABLED_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; export type WebauthnCredentialOrderBy = | 'BACKUP_ELIGIBLE_ASC' | 'BACKUP_ELIGIBLE_DESC' @@ -1380,6 +1593,7 @@ export interface CreateAuditLogAuthInput { clientMutationId?: string; auditLogAuth: { actorId?: string; + details?: Record; event: string; ipAddress?: string; origin?: ConstructiveInternalTypeOrigin; @@ -1389,6 +1603,7 @@ export interface CreateAuditLogAuthInput { } export interface AuditLogAuthPatch { actorId?: string | null; + details?: Record | null; event?: string | null; ipAddress?: string | null; origin?: ConstructiveInternalTypeOrigin | null; @@ -1546,18 +1761,26 @@ export interface CreatePrincipalInput { clientMutationId?: string; principal: { bypassStepUp?: boolean; + createdBySessionId: string; + depth?: number; + expiresAt?: string; isReadOnly?: boolean; name?: string; ownerId: string; + parentPrincipalId: string; useAdminOwner?: boolean; userId: string; }; } export interface PrincipalPatch { bypassStepUp?: boolean | null; + createdBySessionId?: string | null; + depth?: number | null; + expiresAt?: string | null; isReadOnly?: boolean | null; name?: string | null; ownerId?: string | null; + parentPrincipalId?: string | null; useAdminOwner?: boolean | null; userId?: string | null; } @@ -1689,6 +1912,54 @@ export interface DeleteUserInput { clientMutationId?: string; id: string; } +export interface CreateUserSettingInput { + clientMutationId?: string; + userSetting: { + ownerId?: string; + }; +} +export interface UserSettingPatch { + ownerId?: string | null; +} +export interface UpdateUserSettingInput { + clientMutationId?: string; + id: string; + userSettingPatch: UserSettingPatch; +} +export interface DeleteUserSettingInput { + clientMutationId?: string; + id: string; +} +export interface CreateUserSettingsSecurityInput { + clientMutationId?: string; + userSettingsSecurity: { + backupCodesCount?: number; + emailMfaEnabled?: boolean; + mfaEnrolledAt?: string; + mfaLastUsedAt?: string; + ownerId?: string; + smsMfaEnabled?: boolean; + totpEnabled?: boolean; + }; +} +export interface UserSettingsSecurityPatch { + backupCodesCount?: number | null; + emailMfaEnabled?: boolean | null; + mfaEnrolledAt?: string | null; + mfaLastUsedAt?: string | null; + ownerId?: string | null; + smsMfaEnabled?: boolean | null; + totpEnabled?: boolean | null; +} +export interface UpdateUserSettingsSecurityInput { + clientMutationId?: string; + id: string; + userSettingsSecurityPatch: UserSettingsSecurityPatch; +} +export interface DeleteUserSettingsSecurityInput { + clientMutationId?: string; + id: string; +} export interface CreateWebauthnCredentialInput { clientMutationId?: string; webauthnCredential: { @@ -1730,6 +2001,7 @@ export interface DeleteWebauthnCredentialInput { // ============ Connection Fields Map ============ export const connectionFieldsMap = { Principal: { + child_principals: 'Principal', principalEntities: 'PrincipalEntity', principalScopeOverrides: 'PrincipalScopeOverride', }, @@ -1744,15 +2016,35 @@ export const connectionFieldsMap = { }, } as Record>; // ============ Custom Input Types (from schema) ============ +export interface ApproveDeviceInput { + approvalToken: string; + clientMutationId?: string; +} export interface CheckPasswordInput { clientMutationId?: string; password?: string; } +export interface CompleteMfaChallengeInput { + authMethod?: string; + clientMutationId?: string; + credentialKind?: string; + deviceToken?: string; + mfaChallengeToken?: string; + mfaMethod?: string; + rememberMe?: boolean; + totpCode?: string; + trustDevice?: boolean; + userId?: string; +} export interface ConfirmDeleteAccountInput { clientMutationId?: string; token?: string; userId?: string; } +export interface ConfirmTotpSetupInput { + clientMutationId?: string; + totpValue: string; +} export interface CreateApiKeyInput { accessLevel?: string; clientMutationId?: string; @@ -1761,6 +2053,16 @@ export interface CreateApiKeyInput { mfaLevel?: string; principalId?: string; } +export interface CreateChildPrincipalInput { + allowedMask?: string; + clientMutationId?: string; + entityIds?: string[]; + expiresAt?: string; + intent?: string; + isReadOnly?: boolean; + name?: string; + parentPrincipalId?: string; +} export interface CreateOrgApiKeyInput { accessLevel?: string; clientMutationId?: string; @@ -1778,14 +2080,40 @@ export interface CreateOrgPrincipalInput { orgId?: string; useAdminOwner?: boolean; } +export interface CreatePrincipalFromPresetInput { + clientMutationId?: string; + entityIds?: string[]; + name?: string; + overrides?: Record; + slug?: string; +} export interface DeleteOrgPrincipalInput { clientMutationId?: string; principalId?: string; } +export interface DisableEmailMfaInput { + clientMutationId?: string; +} +export interface DisableSmsMfaInput { + clientMutationId?: string; +} +export interface DisableTotpInput { + clientMutationId?: string; + totpValue: string; +} export interface DisconnectAccountInput { accountId: string; clientMutationId?: string; } +export interface EnableEmailMfaInput { + clientMutationId?: string; +} +export interface EnableSmsMfaInput { + clientMutationId?: string; +} +export interface EnableTotpInput { + clientMutationId?: string; +} export interface ExtendTokenExpiresInput { amount?: IntervalInput; clientMutationId?: string; @@ -1794,12 +2122,21 @@ export interface ForgotPasswordInput { clientMutationId?: string; email?: ConstructiveInternalTypeEmail; } +export interface GenerateBackupCodesInput { + clientMutationId?: string; +} export interface LinkIdentityInput { clientMutationId?: string; details?: Record; identifier: string; service: string; } +export interface MintAccessTokenInput { + accessTtl?: IntervalInput; + clientMutationId?: string; + intent?: string; + principalId?: string; +} export interface ProvisionBucketInput { /** The logical bucket key (e.g., "public", "private") */ bucketKey: string; @@ -1814,6 +2151,10 @@ export interface ProvisionNewUserInput { email?: string; password?: string; } +export interface RefreshAccessTokenInput { + clientMutationId?: string; + token?: string; +} export interface RequestCrossOriginTokenInput { clientMutationId?: string; email?: string; @@ -1852,6 +2193,20 @@ export interface SetPasswordInput { currentPassword?: string; newPassword?: string; } +export interface SetPrincipalEntitiesInput { + clientMutationId?: string; + entityIds?: string[]; + principalId?: string; +} +export interface SetPrincipalScopeInput { + allowedMask?: string; + clientMutationId?: string; + isActive?: boolean; + isReadOnly?: boolean; + membershipType?: number; + principalId?: string; + useAdminOwner?: boolean; +} export interface SignInInput { clientMutationId?: string; credentialKind?: string; @@ -2075,6 +2430,15 @@ export interface ConstructiveInternalTypeEmailFilter { /** Starts with the specified string (case-insensitive). */ startsWithInsensitive?: ConstructiveInternalTypeEmail; } +/** A filter to be used against many `Principal` object types. All fields are combined with a logical ‘and.’ */ +export interface PrincipalToManyPrincipalFilter { + /** Filters to entities where every related entity matches. */ + every?: PrincipalFilter; + /** Filters to entities where no related entity matches. */ + none?: PrincipalFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PrincipalFilter; +} /** A filter to be used against many `PrincipalEntity` object types. All fields are combined with a logical ‘and.’ */ export interface PrincipalToManyPrincipalEntityFilter { /** Filters to entities where every related entity matches. */ @@ -2301,6 +2665,8 @@ export interface AuditLogAuthInput { /** User who performed the authentication action; NULL if user was deleted */ actorId?: string; createdAt?: string; + /** Event-specific structured payload (e.g. preset slug and catalog commit id for create_principal_from_preset) */ + details?: Record; /** Type of authentication event (e.g. sign_in, sign_up, password_change, verify_email) */ event: string; /** Unique identifier for each audit event (uuidv7 provides temporal ordering) */ @@ -2361,18 +2727,6 @@ export interface PhoneNumberInput { ownerId?: string; updatedAt?: string; } -/** An input for mutations affecting `PrincipalEntity` */ -export interface PrincipalEntityInput { - createdAt?: string; - /** The organization this principal is scoped to */ - entityId: string; - id?: string; - /** Denormalized owner_id from principals table for RLS */ - ownerId: string; - /** The principal this scoping row belongs to */ - principalId: string; - updatedAt?: string; -} /** An input for mutations affecting `RoleType` */ export interface RoleTypeInput { id: number; @@ -2388,6 +2742,32 @@ export interface UserInput { updatedAt?: string; username?: string; } +/** An input for mutations affecting `UserSetting` */ +export interface UserSettingInput { + createdAt?: string; + id?: string; + ownerId?: string; + updatedAt?: string; +} +/** An input for mutations affecting `UserSettingsSecurity` */ +export interface UserSettingsSecurityInput { + /** Number of remaining unused backup codes */ + backupCodesCount?: number; + createdAt?: string; + /** Whether email-based MFA codes are active for this user */ + emailMfaEnabled?: boolean; + id?: string; + /** When the first MFA method was enabled */ + mfaEnrolledAt?: string; + /** When MFA was last successfully verified */ + mfaLastUsedAt?: string; + ownerId?: string; + /** Whether SMS-based MFA codes are active for this user */ + smsMfaEnabled?: boolean; + /** Whether TOTP (authenticator app) MFA is active for this user */ + totpEnabled?: boolean; + updatedAt?: string; +} /** An input for mutations affecting `WebauthnCredential` */ export interface WebauthnCredentialInput { /** Whether this credential is eligible for backup (syncing) per the authenticator's flags at registration. */ @@ -2434,6 +2814,61 @@ export interface IntervalInput { /** A quantity of years. */ years?: number; } +/** A filter to be used against `Principal` object types. All fields are combined with a logical ‘and.’ */ +export interface PrincipalFilter { + /** Checks for all expressions in this list. */ + and?: PrincipalFilter[]; + /** Filter by the object’s `bypassStepUp` field. */ + bypassStepUp?: BooleanFilter; + /** Filter by the object’s `child_principals` relation. */ + child_principals?: PrincipalToManyPrincipalFilter; + /** `child_principals` exist. */ + child_principalsExist?: boolean; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBySessionId` field. */ + createdBySessionId?: UUIDFilter; + /** Filter by the object’s `depth` field. */ + depth?: IntFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isReadOnly` field. */ + isReadOnly?: BooleanFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: PrincipalFilter; + /** Checks for any expressions in this list. */ + or?: PrincipalFilter[]; + /** Filter by the object’s `owner` relation. */ + owner?: UserFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `parentPrincipal` relation. */ + parentPrincipal?: PrincipalFilter; + /** A related `parentPrincipal` exists. */ + parentPrincipalExists?: boolean; + /** Filter by the object’s `parentPrincipalId` field. */ + parentPrincipalId?: UUIDFilter; + /** Filter by the object’s `principalEntities` relation. */ + principalEntities?: PrincipalToManyPrincipalEntityFilter; + /** `principalEntities` exist. */ + principalEntitiesExist?: boolean; + /** Filter by the object’s `principalScopeOverrides` relation. */ + principalScopeOverrides?: PrincipalToManyPrincipalScopeOverrideFilter; + /** `principalScopeOverrides` exist. */ + principalScopeOverridesExist?: boolean; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `useAdminOwner` field. */ + useAdminOwner?: BooleanFilter; + /** Filter by the object’s `user` relation. */ + user?: UserFilter; + /** Filter by the object’s `userId` field. */ + userId?: UUIDFilter; +} /** A filter to be used against `PrincipalEntity` object types. All fields are combined with a logical ‘and.’ */ export interface PrincipalEntityFilter { /** Checks for all expressions in this list. */ @@ -2502,6 +2937,8 @@ export interface AuditLogAuthFilter { and?: AuditLogAuthFilter[]; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `details` field. */ + details?: JSONFilter; /** Filter by the object’s `event` field. */ event?: StringFilter; /** Filter by the object’s `id` field. */ @@ -2602,47 +3039,8 @@ export interface PhoneNumberFilter { /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } -/** A filter to be used against `Principal` object types. All fields are combined with a logical ‘and.’ */ -export interface PrincipalFilter { - /** Checks for all expressions in this list. */ - and?: PrincipalFilter[]; - /** Filter by the object’s `bypassStepUp` field. */ - bypassStepUp?: BooleanFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isReadOnly` field. */ - isReadOnly?: BooleanFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Negates the expression. */ - not?: PrincipalFilter; - /** Checks for any expressions in this list. */ - or?: PrincipalFilter[]; - /** Filter by the object’s `owner` relation. */ - owner?: UserFilter; - /** Filter by the object’s `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `principalEntities` relation. */ - principalEntities?: PrincipalToManyPrincipalEntityFilter; - /** `principalEntities` exist. */ - principalEntitiesExist?: boolean; - /** Filter by the object’s `principalScopeOverrides` relation. */ - principalScopeOverrides?: PrincipalToManyPrincipalScopeOverrideFilter; - /** `principalScopeOverrides` exist. */ - principalScopeOverridesExist?: boolean; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `useAdminOwner` field. */ - useAdminOwner?: BooleanFilter; - /** Filter by the object’s `user` relation. */ - user?: UserFilter; - /** Filter by the object’s `userId` field. */ - userId?: UUIDFilter; -} -/** A filter to be used against `WebauthnCredential` object types. All fields are combined with a logical ‘and.’ */ -export interface WebauthnCredentialFilter { +/** A filter to be used against `WebauthnCredential` object types. All fields are combined with a logical ‘and.’ */ +export interface WebauthnCredentialFilter { /** Checks for all expressions in this list. */ and?: WebauthnCredentialFilter[]; /** Filter by the object’s `backupEligible` field. */ @@ -2680,100 +3078,33 @@ export interface WebauthnCredentialFilter { /** Filter by the object’s `webauthnUserId` field. */ webauthnUserId?: StringFilter; } -/** A filter to be used against Datetime fields. All fields are combined with a logical ‘and.’ */ -export interface DatetimeFilter { +/** 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?: string; + distinctFrom?: boolean; /** Equal to the specified value. */ - equalTo?: string; + equalTo?: boolean; /** Greater than the specified value. */ - greaterThan?: string; + greaterThan?: boolean; /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: string; + greaterThanOrEqualTo?: boolean; /** Included in the specified list. */ - in?: string[]; + in?: boolean[]; /** Is null (if `true` is specified) or is not null (if `false` is specified). */ isNull?: boolean; /** Less than the specified value. */ - lessThan?: string; + lessThan?: boolean; /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: string; + lessThanOrEqualTo?: boolean; /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: string; + notDistinctFrom?: boolean; /** Not equal to the specified value. */ - notEqualTo?: string; + notEqualTo?: boolean; /** Not included in the specified list. */ - notIn?: string[]; -} -/** A filter to be used against `User` object types. All fields are combined with a logical ‘and.’ */ -export interface UserFilter { - /** Checks for all expressions in this list. */ - and?: UserFilter[]; - /** Filter by the object’s `authAuditLog` relation. */ - authAuditLog?: UserToManyAuditLogAuthFilter; - /** `authAuditLog` exist. */ - authAuditLogExist?: boolean; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `cryptoAddresses` relation. */ - cryptoAddresses?: UserToManyCryptoAddressFilter; - /** `cryptoAddresses` exist. */ - cryptoAddressesExist?: boolean; - /** Filter by the object’s `displayName` field. */ - displayName?: StringTrgmFilter; - /** Filter by the object’s `emails` relation. */ - emails?: UserToManyEmailFilter; - /** `emails` exist. */ - emailsExist?: boolean; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Negates the expression. */ - not?: UserFilter; - /** Checks for any expressions in this list. */ - or?: UserFilter[]; - /** Filter by the object’s `phoneNumbers` relation. */ - phoneNumbers?: UserToManyPhoneNumberFilter; - /** `phoneNumbers` exist. */ - phoneNumbersExist?: boolean; - /** Filter by the object’s `principals` relation. */ - principals?: UserToManyPrincipalFilter; - /** `principals` exist. */ - principalsExist?: boolean; - /** Filter by the object’s `profilePicture` field. */ - profilePicture?: ConstructiveInternalTypeImageFilter; - /** Filter by the object’s `roleType` relation. */ - roleType?: RoleTypeFilter; - /** Filter by the object’s `scopedPrincipals` relation. */ - scopedPrincipals?: UserToManyPrincipalEntityFilter; - /** `scopedPrincipals` exist. */ - scopedPrincipalsExist?: boolean; - /** Filter by the object’s `searchTsv` field. */ - searchTsv?: FullTextFilter; - /** TRGM search on the `display_name` column. */ - trgmDisplayName?: TrgmSearchInput; - /** TSV search on the `search_tsv` column. */ - tsvSearchTsv?: string; - /** Filter by the object’s `type` field. */ - type?: IntFilter; - /** - * Composite unified search. Provide a search string and it will be dispatched to - * all text-compatible search algorithms (tsvector, BM25, pg_trgm) - * simultaneously. When the LLM plugin is active, pgvector also participates via - * auto-embedding. Rows matching ANY algorithm are returned. All matching score - * fields are populated. - */ - unifiedSearch?: string; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `username` field. */ - username?: StringTrgmFilter; - /** Filter by the object’s `webauthnCredentials` relation. */ - webauthnCredentials?: UserToManyWebauthnCredentialFilter; - /** `webauthnCredentials` exist. */ - webauthnCredentialsExist?: boolean; + notIn?: boolean[]; } -/** A filter to be used against UUID fields. All fields are combined with a logical ‘and.’ */ -export interface UUIDFilter { +/** 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. */ @@ -2797,8 +3128,8 @@ export interface UUIDFilter { /** Not included in the specified list. */ notIn?: string[]; } -/** A filter to be used against BitString fields. All fields are combined with a logical ‘and.’ */ -export interface BitStringFilter { +/** 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. */ @@ -2822,31 +3153,6 @@ export interface BitStringFilter { /** 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 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. */ @@ -2929,25 +3235,160 @@ export interface StringFilter { /** 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; + 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 filter to be used against `User` object types. All fields are combined with a logical ‘and.’ */ +export interface UserFilter { + /** Checks for all expressions in this list. */ + and?: UserFilter[]; + /** Filter by the object’s `authAuditLog` relation. */ + authAuditLog?: UserToManyAuditLogAuthFilter; + /** `authAuditLog` exist. */ + authAuditLogExist?: boolean; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `cryptoAddresses` relation. */ + cryptoAddresses?: UserToManyCryptoAddressFilter; + /** `cryptoAddresses` exist. */ + cryptoAddressesExist?: boolean; + /** Filter by the object’s `displayName` field. */ + displayName?: StringTrgmFilter; + /** Filter by the object’s `emails` relation. */ + emails?: UserToManyEmailFilter; + /** `emails` exist. */ + emailsExist?: boolean; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: UserFilter; + /** Checks for any expressions in this list. */ + or?: UserFilter[]; + /** Filter by the object’s `ownedUserSetting` relation. */ + ownedUserSetting?: UserSettingFilter; + /** A related `ownedUserSetting` exists. */ + ownedUserSettingExists?: boolean; + /** Filter by the object’s `ownedUserSettingsSecurity` relation. */ + ownedUserSettingsSecurity?: UserSettingsSecurityFilter; + /** A related `ownedUserSettingsSecurity` exists. */ + ownedUserSettingsSecurityExists?: boolean; + /** Filter by the object’s `phoneNumbers` relation. */ + phoneNumbers?: UserToManyPhoneNumberFilter; + /** `phoneNumbers` exist. */ + phoneNumbersExist?: boolean; + /** Filter by the object’s `principals` relation. */ + principals?: UserToManyPrincipalFilter; + /** `principals` exist. */ + principalsExist?: boolean; + /** Filter by the object’s `profilePicture` field. */ + profilePicture?: ConstructiveInternalTypeImageFilter; + /** Filter by the object’s `roleType` relation. */ + roleType?: RoleTypeFilter; + /** Filter by the object’s `scopedPrincipals` relation. */ + scopedPrincipals?: UserToManyPrincipalEntityFilter; + /** `scopedPrincipals` exist. */ + scopedPrincipalsExist?: boolean; + /** Filter by the object’s `searchTsv` field. */ + searchTsv?: FullTextFilter; + /** TRGM search on the `display_name` column. */ + trgmDisplayName?: TrgmSearchInput; + /** TSV search on the `search_tsv` column. */ + tsvSearchTsv?: string; + /** Filter by the object’s `type` field. */ + type?: IntFilter; + /** + * Composite unified search. Provide a search string and it will be dispatched to + * all text-compatible search algorithms (tsvector, BM25, pg_trgm) + * simultaneously. When the LLM plugin is active, pgvector also participates via + * auto-embedding. Rows matching ANY algorithm are returned. All matching score + * fields are populated. + */ + unifiedSearch?: string; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `username` field. */ + username?: StringTrgmFilter; + /** Filter by the object’s `webauthnCredentials` relation. */ + webauthnCredentials?: UserToManyWebauthnCredentialFilter; + /** `webauthnCredentials` exist. */ + webauthnCredentialsExist?: boolean; +} +/** 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 JSON fields. All fields are combined with a logical ‘and.’ */ +export interface JSONFilter { + /** Contained by the specified JSON. */ + containedBy?: Record; + /** Contains the specified JSON. */ + contains?: Record; + /** Contains all of the specified keys. */ + containsAllKeys?: string[]; + /** Contains any of the specified keys. */ + containsAnyKeys?: string[]; + /** Contains the specified key. */ + containsKey?: string; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: Record; + /** Equal to the specified value. */ + equalTo?: Record; + /** Greater than the specified value. */ + greaterThan?: Record; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: Record; + /** Included in the specified list. */ + in?: Record[]; + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Less than the specified value. */ + lessThan?: Record; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: Record; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: Record; + /** Not equal to the specified value. */ + notEqualTo?: Record; + /** Not included in the specified list. */ + notIn?: Record[]; } /** A filter to be used against InternetAddress fields. All fields are combined with a logical ‘and.’ */ export interface InternetAddressFilter { @@ -3048,6 +3489,56 @@ export interface StringListFilter { /** Overlaps the specified list of values. */ overlaps?: string[]; } +/** A filter to be used against `UserSetting` object types. All fields are combined with a logical ‘and.’ */ +export interface UserSettingFilter { + /** Checks for all expressions in this list. */ + and?: UserSettingFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: UserSettingFilter; + /** Checks for any expressions in this list. */ + or?: UserSettingFilter[]; + /** Filter by the object’s `owner` relation. */ + owner?: UserFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} +/** A filter to be used against `UserSettingsSecurity` object types. All fields are combined with a logical ‘and.’ */ +export interface UserSettingsSecurityFilter { + /** Checks for all expressions in this list. */ + and?: UserSettingsSecurityFilter[]; + /** Filter by the object’s `backupCodesCount` field. */ + backupCodesCount?: IntFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `emailMfaEnabled` field. */ + emailMfaEnabled?: BooleanFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `mfaEnrolledAt` field. */ + mfaEnrolledAt?: DatetimeFilter; + /** Filter by the object’s `mfaLastUsedAt` field. */ + mfaLastUsedAt?: DatetimeFilter; + /** Negates the expression. */ + not?: UserSettingsSecurityFilter; + /** Checks for any expressions in this list. */ + or?: UserSettingsSecurityFilter[]; + /** Filter by the object’s `owner` relation. */ + owner?: UserFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `smsMfaEnabled` field. */ + smsMfaEnabled?: BooleanFilter; + /** Filter by the object’s `totpEnabled` field. */ + totpEnabled?: BooleanFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} /** A filter to be used against `RoleType` object types. All fields are combined with a logical ‘and.’ */ export interface RoleTypeFilter { /** Checks for all expressions in this list. */ @@ -3081,12 +3572,42 @@ export interface FullTextFilter { notIn?: string[]; } // ============ Payload/Return Types (for custom operations) ============ +export interface GetMfaStatusRecord { + backupCodesCount?: number | null; + emailMfaEnabled?: boolean | null; + smsMfaEnabled?: boolean | null; + totpEnabled?: boolean | null; +} +export type GetMfaStatusRecordSelect = { + backupCodesCount?: boolean; + emailMfaEnabled?: boolean; + smsMfaEnabled?: boolean; + totpEnabled?: boolean; +}; +export interface ApproveDevicePayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type ApproveDevicePayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; export interface CheckPasswordPayload { clientMutationId?: string | null; } export type CheckPasswordPayloadSelect = { clientMutationId?: boolean; }; +export interface CompleteMfaChallengePayload { + clientMutationId?: string | null; + result?: CompleteMfaChallengeRecord | null; +} +export type CompleteMfaChallengePayloadSelect = { + clientMutationId?: boolean; + result?: { + select: CompleteMfaChallengeRecordSelect; + }; +}; export interface ConfirmDeleteAccountPayload { clientMutationId?: string | null; result?: boolean | null; @@ -3095,6 +3616,14 @@ export type ConfirmDeleteAccountPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface ConfirmTotpSetupPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type ConfirmTotpSetupPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; export interface CreateApiKeyPayload { clientMutationId?: string | null; result?: CreateApiKeyRecord | null; @@ -3105,6 +3634,14 @@ export type CreateApiKeyPayloadSelect = { select: CreateApiKeyRecordSelect; }; }; +export interface CreateChildPrincipalPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type CreateChildPrincipalPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; export interface CreateOrgApiKeyPayload { clientMutationId?: string | null; result?: CreateOrgApiKeyRecord | null; @@ -3123,6 +3660,14 @@ export type CreateOrgPrincipalPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface CreatePrincipalFromPresetPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type CreatePrincipalFromPresetPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; export interface DeleteOrgPrincipalPayload { clientMutationId?: string | null; result?: boolean | null; @@ -3139,6 +3684,30 @@ export type DeletePrincipalPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface DisableEmailMfaPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type DisableEmailMfaPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface DisableSmsMfaPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type DisableSmsMfaPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface DisableTotpPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type DisableTotpPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; export interface DisconnectAccountPayload { clientMutationId?: string | null; result?: boolean | null; @@ -3147,6 +3716,30 @@ export type DisconnectAccountPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface EnableEmailMfaPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type EnableEmailMfaPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface EnableSmsMfaPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type EnableSmsMfaPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface EnableTotpPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type EnableTotpPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; export interface ExtendTokenExpiresPayload { clientMutationId?: string | null; result?: ExtendTokenExpiresRecord[] | null; @@ -3163,6 +3756,14 @@ export interface ForgotPasswordPayload { export type ForgotPasswordPayloadSelect = { clientMutationId?: boolean; }; +export interface GenerateBackupCodesPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type GenerateBackupCodesPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; export interface LinkIdentityPayload { clientMutationId?: string | null; result?: boolean | null; @@ -3171,27 +3772,30 @@ export type LinkIdentityPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface MintAccessTokenPayload { + clientMutationId?: string | null; + result?: MintAccessTokenRecord | null; +} +export type MintAccessTokenPayloadSelect = { + clientMutationId?: boolean; + result?: { + select: MintAccessTokenRecordSelect; + }; +}; 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; + /** The logical bucket row that was queued for reconciliation. */ + bucketId: string; + bucketKey: string; + /** The reconciler job enqueued to provision this bucket. */ + jobId: string; + /** The physical bucket name already recorded, or null when reconciliation has not completed. */ + physicalName?: string | null; } export type ProvisionBucketPayloadSelect = { - accessType?: boolean; - bucketName?: boolean; - endpoint?: boolean; - error?: boolean; - provider?: boolean; - success?: boolean; + bucketId?: boolean; + bucketKey?: boolean; + jobId?: boolean; + physicalName?: boolean; }; export interface ProvisionNewUserPayload { clientMutationId?: string | null; @@ -3201,6 +3805,16 @@ export type ProvisionNewUserPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface RefreshAccessTokenPayload { + clientMutationId?: string | null; + result?: RefreshAccessTokenRecord | null; +} +export type RefreshAccessTokenPayloadSelect = { + clientMutationId?: boolean; + result?: { + select: RefreshAccessTokenRecordSelect; + }; +}; export interface RequestCrossOriginTokenPayload { clientMutationId?: string | null; result?: string | null; @@ -3265,6 +3879,22 @@ export type SetPasswordPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface SetPrincipalEntitiesPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type SetPrincipalEntitiesPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface SetPrincipalScopePayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type SetPrincipalScopePayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; export interface SignInPayload { clientMutationId?: string | null; result?: SignInRecord | null; @@ -3341,6 +3971,14 @@ export type SignUpSmsPayloadSelect = { select: SignUpSmsRecordSelect; }; }; +export interface UpdatePrincipalPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type UpdatePrincipalPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; export interface VerifyEmailPayload { clientMutationId?: string | null; result?: boolean | null; @@ -3553,51 +4191,6 @@ export type CreatePrincipalPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; -export interface CreatePrincipalEntityPayload { - clientMutationId?: string | null; - /** The `PrincipalEntity` that was created by this mutation. */ - principalEntity?: PrincipalEntity | null; - principalEntityEdge?: PrincipalEntityEdge | null; -} -export type CreatePrincipalEntityPayloadSelect = { - clientMutationId?: boolean; - principalEntity?: { - select: PrincipalEntitySelect; - }; - principalEntityEdge?: { - select: PrincipalEntityEdgeSelect; - }; -}; -export interface UpdatePrincipalEntityPayload { - clientMutationId?: string | null; - /** The `PrincipalEntity` that was updated by this mutation. */ - principalEntity?: PrincipalEntity | null; - principalEntityEdge?: PrincipalEntityEdge | null; -} -export type UpdatePrincipalEntityPayloadSelect = { - clientMutationId?: boolean; - principalEntity?: { - select: PrincipalEntitySelect; - }; - principalEntityEdge?: { - select: PrincipalEntityEdgeSelect; - }; -}; -export interface DeletePrincipalEntityPayload { - clientMutationId?: string | null; - /** The `PrincipalEntity` that was deleted by this mutation. */ - principalEntity?: PrincipalEntity | null; - principalEntityEdge?: PrincipalEntityEdge | null; -} -export type DeletePrincipalEntityPayloadSelect = { - clientMutationId?: boolean; - principalEntity?: { - select: PrincipalEntitySelect; - }; - principalEntityEdge?: { - select: PrincipalEntityEdgeSelect; - }; -}; export interface CreateRoleTypePayload { clientMutationId?: string | null; /** The `RoleType` that was created by this mutation. */ @@ -3688,6 +4281,96 @@ export type DeleteUserPayloadSelect = { select: UserEdgeSelect; }; }; +export interface CreateUserSettingPayload { + clientMutationId?: string | null; + /** The `UserSetting` that was created by this mutation. */ + userSetting?: UserSetting | null; + userSettingEdge?: UserSettingEdge | null; +} +export type CreateUserSettingPayloadSelect = { + clientMutationId?: boolean; + userSetting?: { + select: UserSettingSelect; + }; + userSettingEdge?: { + select: UserSettingEdgeSelect; + }; +}; +export interface UpdateUserSettingPayload { + clientMutationId?: string | null; + /** The `UserSetting` that was updated by this mutation. */ + userSetting?: UserSetting | null; + userSettingEdge?: UserSettingEdge | null; +} +export type UpdateUserSettingPayloadSelect = { + clientMutationId?: boolean; + userSetting?: { + select: UserSettingSelect; + }; + userSettingEdge?: { + select: UserSettingEdgeSelect; + }; +}; +export interface DeleteUserSettingPayload { + clientMutationId?: string | null; + /** The `UserSetting` that was deleted by this mutation. */ + userSetting?: UserSetting | null; + userSettingEdge?: UserSettingEdge | null; +} +export type DeleteUserSettingPayloadSelect = { + clientMutationId?: boolean; + userSetting?: { + select: UserSettingSelect; + }; + userSettingEdge?: { + select: UserSettingEdgeSelect; + }; +}; +export interface CreateUserSettingsSecurityPayload { + clientMutationId?: string | null; + /** The `UserSettingsSecurity` that was created by this mutation. */ + userSettingsSecurity?: UserSettingsSecurity | null; + userSettingsSecurityEdge?: UserSettingsSecurityEdge | null; +} +export type CreateUserSettingsSecurityPayloadSelect = { + clientMutationId?: boolean; + userSettingsSecurity?: { + select: UserSettingsSecuritySelect; + }; + userSettingsSecurityEdge?: { + select: UserSettingsSecurityEdgeSelect; + }; +}; +export interface UpdateUserSettingsSecurityPayload { + clientMutationId?: string | null; + /** The `UserSettingsSecurity` that was updated by this mutation. */ + userSettingsSecurity?: UserSettingsSecurity | null; + userSettingsSecurityEdge?: UserSettingsSecurityEdge | null; +} +export type UpdateUserSettingsSecurityPayloadSelect = { + clientMutationId?: boolean; + userSettingsSecurity?: { + select: UserSettingsSecuritySelect; + }; + userSettingsSecurityEdge?: { + select: UserSettingsSecurityEdgeSelect; + }; +}; +export interface DeleteUserSettingsSecurityPayload { + clientMutationId?: string | null; + /** The `UserSettingsSecurity` that was deleted by this mutation. */ + userSettingsSecurity?: UserSettingsSecurity | null; + userSettingsSecurityEdge?: UserSettingsSecurityEdge | null; +} +export type DeleteUserSettingsSecurityPayloadSelect = { + clientMutationId?: boolean; + userSettingsSecurity?: { + select: UserSettingsSecuritySelect; + }; + userSettingsSecurityEdge?: { + select: UserSettingsSecurityEdgeSelect; + }; +}; export interface CreateWebauthnCredentialPayload { clientMutationId?: string | null; /** The `WebauthnCredential` that was created by this mutation. */ @@ -3733,6 +4416,24 @@ export type DeleteWebauthnCredentialPayloadSelect = { select: WebauthnCredentialEdgeSelect; }; }; +export interface CompleteMfaChallengeRecord { + accessToken?: string | null; + accessTokenExpiresAt?: string | null; + deviceApprovalRequired?: boolean | null; + id?: string | null; + isVerified?: boolean | null; + outDeviceToken?: string | null; + outUserId?: string | null; +} +export type CompleteMfaChallengeRecordSelect = { + accessToken?: boolean; + accessTokenExpiresAt?: boolean; + deviceApprovalRequired?: boolean; + id?: boolean; + isVerified?: boolean; + outDeviceToken?: boolean; + outUserId?: boolean; +}; export interface CreateApiKeyRecord { apiKey?: string | null; expiresAt?: string | null; @@ -3763,23 +4464,59 @@ export type ExtendTokenExpiresRecordSelect = { id?: boolean; sessionId?: boolean; }; +export interface MintAccessTokenRecord { + accessExpiresAt?: string | null; + accessToken?: string | null; + principalUserId?: string | null; + refreshExpiresAt?: string | null; + refreshToken?: string | null; + sessionId?: string | null; +} +export type MintAccessTokenRecordSelect = { + accessExpiresAt?: boolean; + accessToken?: boolean; + principalUserId?: boolean; + refreshExpiresAt?: boolean; + refreshToken?: boolean; + sessionId?: boolean; +}; +export interface RefreshAccessTokenRecord { + accessExpiresAt?: string | null; + accessToken?: string | null; + principalUserId?: string | null; + refreshExpiresAt?: string | null; + refreshToken?: string | null; + sessionId?: string | null; +} +export type RefreshAccessTokenRecordSelect = { + accessExpiresAt?: boolean; + accessToken?: boolean; + principalUserId?: boolean; + refreshExpiresAt?: boolean; + refreshToken?: boolean; + sessionId?: boolean; +}; export interface SignInRecord { accessToken?: string | null; accessTokenExpiresAt?: string | null; + deviceApprovalRequired?: boolean | null; id?: string | null; isVerified?: boolean | null; mfaChallengeToken?: string | null; mfaRequired?: boolean | null; + outDeviceToken?: string | null; totpEnabled?: boolean | null; userId?: string | null; } export type SignInRecordSelect = { accessToken?: boolean; accessTokenExpiresAt?: boolean; + deviceApprovalRequired?: boolean; id?: boolean; isVerified?: boolean; mfaChallengeToken?: boolean; mfaRequired?: boolean; + outDeviceToken?: boolean; totpEnabled?: boolean; userId?: boolean; }; @@ -3802,21 +4539,29 @@ export type SignInCrossOriginRecordSelect = { export interface SignInMagicLinkRecord { accessToken?: string | null; accessTokenExpiresAt?: string | null; + deviceApprovalRequired?: boolean | null; + outDeviceToken?: string | null; userId?: string | null; } export type SignInMagicLinkRecordSelect = { accessToken?: boolean; accessTokenExpiresAt?: boolean; + deviceApprovalRequired?: boolean; + outDeviceToken?: boolean; userId?: boolean; }; export interface SignInSmsOtpRecord { accessToken?: string | null; accessTokenExpiresAt?: string | null; + deviceApprovalRequired?: boolean | null; + outDeviceToken?: string | null; userId?: string | null; } export type SignInSmsOtpRecordSelect = { accessToken?: boolean; accessTokenExpiresAt?: boolean; + deviceApprovalRequired?: boolean; + outDeviceToken?: boolean; userId?: boolean; }; export interface SignUpRecord { @@ -3824,6 +4569,7 @@ export interface SignUpRecord { accessTokenExpiresAt?: string | null; id?: string | null; isVerified?: boolean | null; + outDeviceToken?: string | null; totpEnabled?: boolean | null; userId?: string | null; } @@ -3832,27 +4578,32 @@ export type SignUpRecordSelect = { accessTokenExpiresAt?: boolean; id?: boolean; isVerified?: boolean; + outDeviceToken?: boolean; totpEnabled?: boolean; userId?: boolean; }; export interface SignUpMagicLinkRecord { accessToken?: string | null; accessTokenExpiresAt?: string | null; + outDeviceToken?: string | null; userId?: string | null; } export type SignUpMagicLinkRecordSelect = { accessToken?: boolean; accessTokenExpiresAt?: boolean; + outDeviceToken?: boolean; userId?: boolean; }; export interface SignUpSmsRecord { accessToken?: string | null; accessTokenExpiresAt?: string | null; + outDeviceToken?: string | null; userId?: string | null; } export type SignUpSmsRecordSelect = { accessToken?: boolean; accessTokenExpiresAt?: boolean; + outDeviceToken?: boolean; userId?: boolean; }; /** A `AuditLogAuth` edge in the connection. */ @@ -3903,18 +4654,6 @@ export type PhoneNumberEdgeSelect = { select: PhoneNumberSelect; }; }; -/** A `PrincipalEntity` edge in the connection. */ -export interface PrincipalEntityEdge { - cursor?: string | null; - /** The `PrincipalEntity` at the end of the edge. */ - node?: PrincipalEntity | null; -} -export type PrincipalEntityEdgeSelect = { - cursor?: boolean; - node?: { - select: PrincipalEntitySelect; - }; -}; /** A `RoleType` edge in the connection. */ export interface RoleTypeEdge { cursor?: string | null; @@ -3939,6 +4678,30 @@ export type UserEdgeSelect = { select: UserSelect; }; }; +/** A `UserSetting` edge in the connection. */ +export interface UserSettingEdge { + cursor?: string | null; + /** The `UserSetting` at the end of the edge. */ + node?: UserSetting | null; +} +export type UserSettingEdgeSelect = { + cursor?: boolean; + node?: { + select: UserSettingSelect; + }; +}; +/** A `UserSettingsSecurity` edge in the connection. */ +export interface UserSettingsSecurityEdge { + cursor?: string | null; + /** The `UserSettingsSecurity` at the end of the edge. */ + node?: UserSettingsSecurity | null; +} +export type UserSettingsSecurityEdgeSelect = { + cursor?: boolean; + node?: { + select: UserSettingsSecuritySelect; + }; +}; /** A `WebauthnCredential` edge in the connection. */ export interface WebauthnCredentialEdge { cursor?: string | null; diff --git a/sdk/constructive-sdk/src/auth/orm/models/index.ts b/sdk/constructive-sdk/src/auth/orm/models/index.ts index 16f584ff03..32994d8c84 100644 --- a/sdk/constructive-sdk/src/auth/orm/models/index.ts +++ b/sdk/constructive-sdk/src/auth/orm/models/index.ts @@ -15,4 +15,6 @@ export { PrincipalScopeOverrideModel } from './principalScopeOverride'; export { RoleTypeModel } from './roleType'; export { UserConnectedAccountModel } from './userConnectedAccount'; export { UserModel } from './user'; +export { UserSettingModel } from './userSetting'; +export { UserSettingsSecurityModel } from './userSettingsSecurity'; export { WebauthnCredentialModel } from './webauthnCredential'; diff --git a/sdk/constructive-sdk/src/auth/orm/models/principalEntity.ts b/sdk/constructive-sdk/src/auth/orm/models/principalEntity.ts index 0c265501f5..516e110743 100644 --- a/sdk/constructive-sdk/src/auth/orm/models/principalEntity.ts +++ b/sdk/constructive-sdk/src/auth/orm/models/principalEntity.ts @@ -171,75 +171,4 @@ export class PrincipalEntityModel { variables, }); } - update( - args: UpdateArgs< - S, - { - id: string; - }, - PrincipalEntityPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updatePrincipalEntity: { - principalEntity: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'PrincipalEntity', - 'updatePrincipalEntity', - 'principalEntity', - args.select, - args.where.id, - args.data, - 'UpdatePrincipalEntityInput', - 'id', - 'principalEntityPatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PrincipalEntity', - fieldName: 'updatePrincipalEntity', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deletePrincipalEntity: { - principalEntity: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'PrincipalEntity', - 'deletePrincipalEntity', - 'principalEntity', - { - id: args.where.id, - }, - 'DeletePrincipalEntityInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PrincipalEntity', - fieldName: 'deletePrincipalEntity', - document, - variables, - }); - } } diff --git a/sdk/constructive-sdk/src/auth/orm/models/userSetting.ts b/sdk/constructive-sdk/src/auth/orm/models/userSetting.ts new file mode 100644 index 0000000000..7a880e40e5 --- /dev/null +++ b/sdk/constructive-sdk/src/auth/orm/models/userSetting.ts @@ -0,0 +1,245 @@ +/** + * UserSetting 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 { + UserSetting, + UserSettingWithRelations, + UserSettingSelect, + UserSettingFilter, + UserSettingOrderBy, + CreateUserSettingInput, + UpdateUserSettingInput, + UserSettingPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class UserSettingModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + userSettings: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'UserSetting', + 'userSettings', + 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, + }, + 'UserSettingFilter', + 'UserSettingOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'UserSetting', + fieldName: 'userSettings', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + userSetting: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'UserSetting', + 'userSettings', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'UserSettingFilter', + 'UserSettingOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'UserSetting', + fieldName: 'userSetting', + document, + variables, + transform: (data: { + userSettings?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + userSetting: data.userSettings?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + userSetting: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'UserSetting', + 'userSettings', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'UserSettingFilter', + 'UserSettingOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'UserSetting', + fieldName: 'userSetting', + document, + variables, + transform: (data: { + userSettings?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + userSetting: data.userSettings?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createUserSetting: { + userSetting: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'UserSetting', + 'createUserSetting', + 'userSetting', + args.select, + args.data, + 'CreateUserSettingInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'UserSetting', + fieldName: 'createUserSetting', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + UserSettingPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateUserSetting: { + userSetting: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'UserSetting', + 'updateUserSetting', + 'userSetting', + args.select, + args.where.id, + args.data, + 'UpdateUserSettingInput', + 'id', + 'userSettingPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'UserSetting', + fieldName: 'updateUserSetting', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteUserSetting: { + userSetting: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'UserSetting', + 'deleteUserSetting', + 'userSetting', + { + id: args.where.id, + }, + 'DeleteUserSettingInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'UserSetting', + fieldName: 'deleteUserSetting', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/auth/orm/models/userSettingsSecurity.ts b/sdk/constructive-sdk/src/auth/orm/models/userSettingsSecurity.ts new file mode 100644 index 0000000000..c5965bf3ff --- /dev/null +++ b/sdk/constructive-sdk/src/auth/orm/models/userSettingsSecurity.ts @@ -0,0 +1,247 @@ +/** + * UserSettingsSecurity 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 { + UserSettingsSecurity, + UserSettingsSecurityWithRelations, + UserSettingsSecuritySelect, + UserSettingsSecurityFilter, + UserSettingsSecurityOrderBy, + CreateUserSettingsSecurityInput, + UpdateUserSettingsSecurityInput, + UserSettingsSecurityPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class UserSettingsSecurityModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + userSettingsSecurities: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'UserSettingsSecurity', + 'userSettingsSecurities', + 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, + }, + 'UserSettingsSecurityFilter', + 'UserSettingsSecurityOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'UserSettingsSecurity', + fieldName: 'userSettingsSecurities', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + userSettingsSecurity: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'UserSettingsSecurity', + 'userSettingsSecurities', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'UserSettingsSecurityFilter', + 'UserSettingsSecurityOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'UserSettingsSecurity', + fieldName: 'userSettingsSecurity', + document, + variables, + transform: (data: { + userSettingsSecurities?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + userSettingsSecurity: data.userSettingsSecurities?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + userSettingsSecurity: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'UserSettingsSecurity', + 'userSettingsSecurities', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'UserSettingsSecurityFilter', + 'UserSettingsSecurityOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'UserSettingsSecurity', + fieldName: 'userSettingsSecurity', + document, + variables, + transform: (data: { + userSettingsSecurities?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + userSettingsSecurity: data.userSettingsSecurities?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createUserSettingsSecurity: { + userSettingsSecurity: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'UserSettingsSecurity', + 'createUserSettingsSecurity', + 'userSettingsSecurity', + args.select, + args.data, + 'CreateUserSettingsSecurityInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'UserSettingsSecurity', + fieldName: 'createUserSettingsSecurity', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + UserSettingsSecurityPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateUserSettingsSecurity: { + userSettingsSecurity: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'UserSettingsSecurity', + 'updateUserSettingsSecurity', + 'userSettingsSecurity', + args.select, + args.where.id, + args.data, + 'UpdateUserSettingsSecurityInput', + 'id', + 'userSettingsSecurityPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'UserSettingsSecurity', + fieldName: 'updateUserSettingsSecurity', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteUserSettingsSecurity: { + userSettingsSecurity: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'UserSettingsSecurity', + 'deleteUserSettingsSecurity', + 'userSettingsSecurity', + { + id: args.where.id, + }, + 'DeleteUserSettingsSecurityInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'UserSettingsSecurity', + fieldName: 'deleteUserSettingsSecurity', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/auth/orm/mutation/index.ts b/sdk/constructive-sdk/src/auth/orm/mutation/index.ts index d1531288e5..fdaa7b9a5f 100644 --- a/sdk/constructive-sdk/src/auth/orm/mutation/index.ts +++ b/sdk/constructive-sdk/src/auth/orm/mutation/index.ts @@ -7,19 +7,33 @@ import { OrmClient } from '../client'; import { QueryBuilder, buildCustomDocument } from '../query-builder'; import type { InferSelectResult, StrictSelect } from '../select-types'; import type { + ApproveDeviceInput, CheckPasswordInput, + CompleteMfaChallengeInput, ConfirmDeleteAccountInput, + ConfirmTotpSetupInput, CreateApiKeyInput, + CreateChildPrincipalInput, CreateOrgApiKeyInput, CreateOrgPrincipalInput, + CreatePrincipalFromPresetInput, DeleteOrgPrincipalInput, DeletePrincipalInput, + DisableEmailMfaInput, + DisableSmsMfaInput, + DisableTotpInput, DisconnectAccountInput, + EnableEmailMfaInput, + EnableSmsMfaInput, + EnableTotpInput, ExtendTokenExpiresInput, ForgotPasswordInput, + GenerateBackupCodesInput, LinkIdentityInput, + MintAccessTokenInput, ProvisionBucketInput, ProvisionNewUserInput, + RefreshAccessTokenInput, RequestCrossOriginTokenInput, ResetPasswordInput, RevokeApiKeyInput, @@ -28,6 +42,8 @@ import type { SendAccountDeletionEmailInput, SendVerificationEmailInput, SetPasswordInput, + SetPrincipalEntitiesInput, + SetPrincipalScopeInput, SignInInput, SignInCrossOriginInput, SignInMagicLinkInput, @@ -36,22 +52,37 @@ import type { SignUpInput, SignUpMagicLinkInput, SignUpSmsInput, + UpdatePrincipalInput, VerifyEmailInput, VerifyPasswordInput, VerifyTotpInput, + ApproveDevicePayload, CheckPasswordPayload, + CompleteMfaChallengePayload, ConfirmDeleteAccountPayload, + ConfirmTotpSetupPayload, CreateApiKeyPayload, + CreateChildPrincipalPayload, CreateOrgApiKeyPayload, CreateOrgPrincipalPayload, + CreatePrincipalFromPresetPayload, DeleteOrgPrincipalPayload, DeletePrincipalPayload, + DisableEmailMfaPayload, + DisableSmsMfaPayload, + DisableTotpPayload, DisconnectAccountPayload, + EnableEmailMfaPayload, + EnableSmsMfaPayload, + EnableTotpPayload, ExtendTokenExpiresPayload, ForgotPasswordPayload, + GenerateBackupCodesPayload, LinkIdentityPayload, + MintAccessTokenPayload, ProvisionBucketPayload, ProvisionNewUserPayload, + RefreshAccessTokenPayload, RequestCrossOriginTokenPayload, ResetPasswordPayload, RevokeApiKeyPayload, @@ -60,6 +91,8 @@ import type { SendAccountDeletionEmailPayload, SendVerificationEmailPayload, SetPasswordPayload, + SetPrincipalEntitiesPayload, + SetPrincipalScopePayload, SignInPayload, SignInCrossOriginPayload, SignInMagicLinkPayload, @@ -68,22 +101,37 @@ import type { SignUpPayload, SignUpMagicLinkPayload, SignUpSmsPayload, + UpdatePrincipalPayload, VerifyEmailPayload, VerifyPasswordPayload, VerifyTotpPayload, + ApproveDevicePayloadSelect, CheckPasswordPayloadSelect, + CompleteMfaChallengePayloadSelect, ConfirmDeleteAccountPayloadSelect, + ConfirmTotpSetupPayloadSelect, CreateApiKeyPayloadSelect, + CreateChildPrincipalPayloadSelect, CreateOrgApiKeyPayloadSelect, CreateOrgPrincipalPayloadSelect, + CreatePrincipalFromPresetPayloadSelect, DeleteOrgPrincipalPayloadSelect, DeletePrincipalPayloadSelect, + DisableEmailMfaPayloadSelect, + DisableSmsMfaPayloadSelect, + DisableTotpPayloadSelect, DisconnectAccountPayloadSelect, + EnableEmailMfaPayloadSelect, + EnableSmsMfaPayloadSelect, + EnableTotpPayloadSelect, ExtendTokenExpiresPayloadSelect, ForgotPasswordPayloadSelect, + GenerateBackupCodesPayloadSelect, LinkIdentityPayloadSelect, + MintAccessTokenPayloadSelect, ProvisionBucketPayloadSelect, ProvisionNewUserPayloadSelect, + RefreshAccessTokenPayloadSelect, RequestCrossOriginTokenPayloadSelect, ResetPasswordPayloadSelect, RevokeApiKeyPayloadSelect, @@ -92,6 +140,8 @@ import type { SendAccountDeletionEmailPayloadSelect, SendVerificationEmailPayloadSelect, SetPasswordPayloadSelect, + SetPrincipalEntitiesPayloadSelect, + SetPrincipalScopePayloadSelect, SignInPayloadSelect, SignInCrossOriginPayloadSelect, SignInMagicLinkPayloadSelect, @@ -100,50 +150,91 @@ import type { SignUpPayloadSelect, SignUpMagicLinkPayloadSelect, SignUpSmsPayloadSelect, + UpdatePrincipalPayloadSelect, VerifyEmailPayloadSelect, VerifyPasswordPayloadSelect, VerifyTotpPayloadSelect, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; +export interface ApproveDeviceVariables { + input: ApproveDeviceInput; +} export interface CheckPasswordVariables { input: CheckPasswordInput; } +export interface CompleteMfaChallengeVariables { + input: CompleteMfaChallengeInput; +} export interface ConfirmDeleteAccountVariables { input: ConfirmDeleteAccountInput; } +export interface ConfirmTotpSetupVariables { + input: ConfirmTotpSetupInput; +} export interface CreateApiKeyVariables { input: CreateApiKeyInput; } +export interface CreateChildPrincipalVariables { + input: CreateChildPrincipalInput; +} export interface CreateOrgApiKeyVariables { input: CreateOrgApiKeyInput; } export interface CreateOrgPrincipalVariables { input: CreateOrgPrincipalInput; } +export interface CreatePrincipalFromPresetVariables { + input: CreatePrincipalFromPresetInput; +} export interface DeleteOrgPrincipalVariables { input: DeleteOrgPrincipalInput; } export interface DeletePrincipalVariables { input: DeletePrincipalInput; } +export interface DisableEmailMfaVariables { + input: DisableEmailMfaInput; +} +export interface DisableSmsMfaVariables { + input: DisableSmsMfaInput; +} +export interface DisableTotpVariables { + input: DisableTotpInput; +} export interface DisconnectAccountVariables { input: DisconnectAccountInput; } +export interface EnableEmailMfaVariables { + input: EnableEmailMfaInput; +} +export interface EnableSmsMfaVariables { + input: EnableSmsMfaInput; +} +export interface EnableTotpVariables { + input: EnableTotpInput; +} export interface ExtendTokenExpiresVariables { input: ExtendTokenExpiresInput; } export interface ForgotPasswordVariables { input: ForgotPasswordInput; } +export interface GenerateBackupCodesVariables { + input: GenerateBackupCodesInput; +} export interface LinkIdentityVariables { input: LinkIdentityInput; } +export interface MintAccessTokenVariables { + input: MintAccessTokenInput; +} /** * Variables for provisionBucket - * 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. + * Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. */ export interface ProvisionBucketVariables { input: ProvisionBucketInput; @@ -151,6 +242,9 @@ export interface ProvisionBucketVariables { export interface ProvisionNewUserVariables { input: ProvisionNewUserInput; } +export interface RefreshAccessTokenVariables { + input: RefreshAccessTokenInput; +} export interface RequestCrossOriginTokenVariables { input: RequestCrossOriginTokenInput; } @@ -175,6 +269,12 @@ export interface SendVerificationEmailVariables { export interface SetPasswordVariables { input: SetPasswordInput; } +export interface SetPrincipalEntitiesVariables { + input: SetPrincipalEntitiesInput; +} +export interface SetPrincipalScopeVariables { + input: SetPrincipalScopeInput; +} export interface SignInVariables { input: SignInInput; } @@ -199,6 +299,9 @@ export interface SignUpMagicLinkVariables { export interface SignUpSmsVariables { input: SignUpSmsInput; } +export interface UpdatePrincipalVariables { + input: UpdatePrincipalInput; +} export interface VerifyEmailVariables { input: VerifyEmailInput; } @@ -210,6 +313,35 @@ export interface VerifyTotpVariables { } export function createMutationOperations(client: OrmClient) { return { + approveDevice: ( + args: ApproveDeviceVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + approveDevice: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'ApproveDevice', + fieldName: 'approveDevice', + ...buildCustomDocument( + 'mutation', + 'ApproveDevice', + 'approveDevice', + options.select, + args, + [ + { + name: 'input', + type: 'ApproveDeviceInput!', + }, + ], + connectionFieldsMap, + 'ApproveDevicePayload' + ), + }), checkPassword: ( args: CheckPasswordVariables, options: { @@ -239,6 +371,35 @@ export function createMutationOperations(client: OrmClient) { 'CheckPasswordPayload' ), }), + completeMfaChallenge: ( + args: CompleteMfaChallengeVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + completeMfaChallenge: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'CompleteMfaChallenge', + fieldName: 'completeMfaChallenge', + ...buildCustomDocument( + 'mutation', + 'CompleteMfaChallenge', + 'completeMfaChallenge', + options.select, + args, + [ + { + name: 'input', + type: 'CompleteMfaChallengeInput!', + }, + ], + connectionFieldsMap, + 'CompleteMfaChallengePayload' + ), + }), confirmDeleteAccount: ( args: ConfirmDeleteAccountVariables, options: { @@ -268,6 +429,35 @@ export function createMutationOperations(client: OrmClient) { 'ConfirmDeleteAccountPayload' ), }), + confirmTotpSetup: ( + args: ConfirmTotpSetupVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + confirmTotpSetup: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'ConfirmTotpSetup', + fieldName: 'confirmTotpSetup', + ...buildCustomDocument( + 'mutation', + 'ConfirmTotpSetup', + 'confirmTotpSetup', + options.select, + args, + [ + { + name: 'input', + type: 'ConfirmTotpSetupInput!', + }, + ], + connectionFieldsMap, + 'ConfirmTotpSetupPayload' + ), + }), createApiKey: ( args: CreateApiKeyVariables, options: { @@ -297,6 +487,35 @@ export function createMutationOperations(client: OrmClient) { 'CreateApiKeyPayload' ), }), + createChildPrincipal: ( + args: CreateChildPrincipalVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + createChildPrincipal: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'CreateChildPrincipal', + fieldName: 'createChildPrincipal', + ...buildCustomDocument( + 'mutation', + 'CreateChildPrincipal', + 'createChildPrincipal', + options.select, + args, + [ + { + name: 'input', + type: 'CreateChildPrincipalInput!', + }, + ], + connectionFieldsMap, + 'CreateChildPrincipalPayload' + ), + }), createOrgApiKey: ( args: CreateOrgApiKeyVariables, options: { @@ -355,6 +574,35 @@ export function createMutationOperations(client: OrmClient) { 'CreateOrgPrincipalPayload' ), }), + createPrincipalFromPreset: ( + args: CreatePrincipalFromPresetVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + createPrincipalFromPreset: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'CreatePrincipalFromPreset', + fieldName: 'createPrincipalFromPreset', + ...buildCustomDocument( + 'mutation', + 'CreatePrincipalFromPreset', + 'createPrincipalFromPreset', + options.select, + args, + [ + { + name: 'input', + type: 'CreatePrincipalFromPresetInput!', + }, + ], + connectionFieldsMap, + 'CreatePrincipalFromPresetPayload' + ), + }), deleteOrgPrincipal: ( args: DeleteOrgPrincipalVariables, options: { @@ -413,6 +661,93 @@ export function createMutationOperations(client: OrmClient) { 'DeletePrincipalPayload' ), }), + disableEmailMfa: ( + args: DisableEmailMfaVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + disableEmailMfa: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'DisableEmailMfa', + fieldName: 'disableEmailMfa', + ...buildCustomDocument( + 'mutation', + 'DisableEmailMfa', + 'disableEmailMfa', + options.select, + args, + [ + { + name: 'input', + type: 'DisableEmailMfaInput!', + }, + ], + connectionFieldsMap, + 'DisableEmailMfaPayload' + ), + }), + disableSmsMfa: ( + args: DisableSmsMfaVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + disableSmsMfa: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'DisableSmsMfa', + fieldName: 'disableSmsMfa', + ...buildCustomDocument( + 'mutation', + 'DisableSmsMfa', + 'disableSmsMfa', + options.select, + args, + [ + { + name: 'input', + type: 'DisableSmsMfaInput!', + }, + ], + connectionFieldsMap, + 'DisableSmsMfaPayload' + ), + }), + disableTotp: ( + args: DisableTotpVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + disableTotp: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'DisableTotp', + fieldName: 'disableTotp', + ...buildCustomDocument( + 'mutation', + 'DisableTotp', + 'disableTotp', + options.select, + args, + [ + { + name: 'input', + type: 'DisableTotpInput!', + }, + ], + connectionFieldsMap, + 'DisableTotpPayload' + ), + }), disconnectAccount: ( args: DisconnectAccountVariables, options: { @@ -442,6 +777,93 @@ export function createMutationOperations(client: OrmClient) { 'DisconnectAccountPayload' ), }), + enableEmailMfa: ( + args: EnableEmailMfaVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + enableEmailMfa: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'EnableEmailMfa', + fieldName: 'enableEmailMfa', + ...buildCustomDocument( + 'mutation', + 'EnableEmailMfa', + 'enableEmailMfa', + options.select, + args, + [ + { + name: 'input', + type: 'EnableEmailMfaInput!', + }, + ], + connectionFieldsMap, + 'EnableEmailMfaPayload' + ), + }), + enableSmsMfa: ( + args: EnableSmsMfaVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + enableSmsMfa: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'EnableSmsMfa', + fieldName: 'enableSmsMfa', + ...buildCustomDocument( + 'mutation', + 'EnableSmsMfa', + 'enableSmsMfa', + options.select, + args, + [ + { + name: 'input', + type: 'EnableSmsMfaInput!', + }, + ], + connectionFieldsMap, + 'EnableSmsMfaPayload' + ), + }), + enableTotp: ( + args: EnableTotpVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + enableTotp: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'EnableTotp', + fieldName: 'enableTotp', + ...buildCustomDocument( + 'mutation', + 'EnableTotp', + 'enableTotp', + options.select, + args, + [ + { + name: 'input', + type: 'EnableTotpInput!', + }, + ], + connectionFieldsMap, + 'EnableTotpPayload' + ), + }), extendTokenExpires: ( args: ExtendTokenExpiresVariables, options: { @@ -500,6 +922,35 @@ export function createMutationOperations(client: OrmClient) { 'ForgotPasswordPayload' ), }), + generateBackupCodes: ( + args: GenerateBackupCodesVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + generateBackupCodes: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'GenerateBackupCodes', + fieldName: 'generateBackupCodes', + ...buildCustomDocument( + 'mutation', + 'GenerateBackupCodes', + 'generateBackupCodes', + options.select, + args, + [ + { + name: 'input', + type: 'GenerateBackupCodesInput!', + }, + ], + connectionFieldsMap, + 'GenerateBackupCodesPayload' + ), + }), linkIdentity: ( args: LinkIdentityVariables, options: { @@ -529,6 +980,35 @@ export function createMutationOperations(client: OrmClient) { 'LinkIdentityPayload' ), }), + mintAccessToken: ( + args: MintAccessTokenVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + mintAccessToken: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'MintAccessToken', + fieldName: 'mintAccessToken', + ...buildCustomDocument( + 'mutation', + 'MintAccessToken', + 'mintAccessToken', + options.select, + args, + [ + { + name: 'input', + type: 'MintAccessTokenInput!', + }, + ], + connectionFieldsMap, + 'MintAccessTokenPayload' + ), + }), provisionBucket: ( args: ProvisionBucketVariables, options: { @@ -587,6 +1067,35 @@ export function createMutationOperations(client: OrmClient) { 'ProvisionNewUserPayload' ), }), + refreshAccessToken: ( + args: RefreshAccessTokenVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + refreshAccessToken: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'RefreshAccessToken', + fieldName: 'refreshAccessToken', + ...buildCustomDocument( + 'mutation', + 'RefreshAccessToken', + 'refreshAccessToken', + options.select, + args, + [ + { + name: 'input', + type: 'RefreshAccessTokenInput!', + }, + ], + connectionFieldsMap, + 'RefreshAccessTokenPayload' + ), + }), requestCrossOriginToken: ( args: RequestCrossOriginTokenVariables, options: { @@ -819,6 +1328,64 @@ export function createMutationOperations(client: OrmClient) { 'SetPasswordPayload' ), }), + setPrincipalEntities: ( + args: SetPrincipalEntitiesVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + setPrincipalEntities: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SetPrincipalEntities', + fieldName: 'setPrincipalEntities', + ...buildCustomDocument( + 'mutation', + 'SetPrincipalEntities', + 'setPrincipalEntities', + options.select, + args, + [ + { + name: 'input', + type: 'SetPrincipalEntitiesInput!', + }, + ], + connectionFieldsMap, + 'SetPrincipalEntitiesPayload' + ), + }), + setPrincipalScope: ( + args: SetPrincipalScopeVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + setPrincipalScope: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SetPrincipalScope', + fieldName: 'setPrincipalScope', + ...buildCustomDocument( + 'mutation', + 'SetPrincipalScope', + 'setPrincipalScope', + options.select, + args, + [ + { + name: 'input', + type: 'SetPrincipalScopeInput!', + }, + ], + connectionFieldsMap, + 'SetPrincipalScopePayload' + ), + }), signIn: ( args: SignInVariables, options: { @@ -1051,6 +1618,35 @@ export function createMutationOperations(client: OrmClient) { 'SignUpSmsPayload' ), }), + updatePrincipal: ( + args: UpdatePrincipalVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + updatePrincipal: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'UpdatePrincipal', + fieldName: 'updatePrincipal', + ...buildCustomDocument( + 'mutation', + 'UpdatePrincipal', + 'updatePrincipal', + options.select, + args, + [ + { + name: 'input', + type: 'UpdatePrincipalInput!', + }, + ], + connectionFieldsMap, + 'UpdatePrincipalPayload' + ), + }), verifyEmail: ( args: VerifyEmailVariables, options: { diff --git a/sdk/constructive-sdk/src/auth/orm/query/index.ts b/sdk/constructive-sdk/src/auth/orm/query/index.ts index d13999f7b4..671fb80d21 100644 --- a/sdk/constructive-sdk/src/auth/orm/query/index.ts +++ b/sdk/constructive-sdk/src/auth/orm/query/index.ts @@ -6,7 +6,12 @@ import { OrmClient } from '../client'; import { QueryBuilder, buildCustomDocument } from '../query-builder'; import type { InferSelectResult, StrictSelect } from '../select-types'; -import type { User, UserSelect } from '../input-types'; +import type { + User, + GetMfaStatusRecord, + UserSelect, + GetMfaStatusRecordSelect, +} from '../input-types'; import { connectionFieldsMap } from '../input-types'; export interface RequireStepUpVariables { stepUpType?: string; @@ -93,6 +98,29 @@ export function createQueryOperations(client: OrmClient) { undefined ), }), + getMfaStatus: ( + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + getMfaStatus: InferSelectResult | null; + }>({ + client, + operation: 'query', + operationName: 'GetMfaStatus', + fieldName: 'getMfaStatus', + ...buildCustomDocument( + 'query', + 'GetMfaStatus', + 'getMfaStatus', + options.select, + undefined, + [], + connectionFieldsMap, + 'GetMfaStatusRecord' + ), + }), requireStepUp: ( args: RequireStepUpVariables, options?: { diff --git a/sdk/constructive-sdk/src/compute/README.md b/sdk/constructive-sdk/src/compute/README.md index d2b4a8129a..3a42672a8b 100644 --- a/sdk/constructive-sdk/src/compute/README.md +++ b/sdk/constructive-sdk/src/compute/README.md @@ -8,9 +8,9 @@ ## Overview -- **Tables:** 70 -- **Custom queries:** 1 -- **Custom mutations:** 37 +- **Tables:** 119 +- **Custom queries:** 2 +- **Custom mutations:** 58 **Generators:** ORM diff --git a/sdk/constructive-sdk/src/compute/orm/README.md b/sdk/constructive-sdk/src/compute/orm/README.md index dd356c3de8..2ffc724fdb 100644 --- a/sdk/constructive-sdk/src/compute/orm/README.md +++ b/sdk/constructive-sdk/src/compute/orm/README.md @@ -21,7 +21,19 @@ const db = createClient({ | Model | Operations | |-------|------------| +| `build` | findMany, findOne, create, update, delete | +| `buildStep` | findMany, findOne, create, update, delete | +| `builderBinding` | findMany, findOne, create, update, delete | | `contentPreset` | findMany, findOne, create, update, delete | +| `databaseFunctionGraph` | findMany, findOne, create, update, delete | +| `databaseFunctionGraphExecution` | findMany, findOne, create, update, delete | +| `databaseFunctionGraphExecutionNodeState` | findMany, findOne, create, update, delete | +| `databaseFunctionGraphExecutionOutput` | findMany, findOne, create, update, delete | +| `databaseGraphCommit` | findMany, findOne, create, update, delete | +| `databaseGraphGetAllTreeNodesRecord` | findMany, findOne, create, update, delete | +| `databaseGraphObject` | findMany, findOne, create, update, delete | +| `databaseGraphRef` | findMany, findOne, create, update, delete | +| `databaseGraphStore` | findMany, findOne, create, update, delete | | `dbPreset` | findMany, findOne, create, update, delete | | `functionApiBinding` | findMany, findOne, create, update, delete | | `functionCapabilityBinding` | findMany, findOne, create, update, delete | @@ -40,6 +52,8 @@ const db = createClient({ | `functionInvocationAttempt` | findMany, findOne, create, update, delete | | `functionInvocation` | findMany, findOne, create, update, delete | | `getAllTreeNodesRecord` | findMany, findOne, create, update, delete | +| `image` | findMany, findOne, create, update, delete | +| `imageGrant` | findMany, findOne, create, update, delete | | `infraCommit` | findMany, findOne, create, update, delete | | `infraGetAllTreeNodesRecord` | findMany, findOne, create, update, delete | | `infraObject` | findMany, findOne, create, update, delete | @@ -48,6 +62,9 @@ const db = createClient({ | `integrationProvider` | findMany, findOne, create, update, delete | | `namespace` | findMany, findOne, create, update, delete | | `namespaceEvent` | findMany, findOne, create, update, delete | +| `platformBuild` | findMany, findOne, create, update, delete | +| `platformBuildStep` | findMany, findOne, create, update, delete | +| `platformBuilderBinding` | findMany, findOne, create, update, delete | | `platformFunctionApiBinding` | findMany, findOne, create, update, delete | | `platformFunctionCapabilityBinding` | findMany, findOne, create, update, delete | | `platformFunctionDefinition` | findMany, findOne, create, update, delete | @@ -56,18 +73,36 @@ const db = createClient({ | `platformFunctionExecutionLog` | findMany, findOne, create, update, delete | | `platformFunctionInvocationAttempt` | findMany, findOne, create, update, delete | | `platformFunctionInvocation` | findMany, findOne, create, update, delete | +| `platformImage` | findMany, findOne, create, update, delete | +| `platformImageGrant` | findMany, findOne, create, update, delete | | `platformInfraCommit` | findMany, findOne, create, update, delete | | `platformInfraGetAllTreeNodesRecord` | findMany, findOne, create, update, delete | | `platformInfraObject` | findMany, findOne, create, update, delete | | `platformInfraRef` | findMany, findOne, create, update, delete | | `platformInfraStore` | findMany, findOne, create, update, delete | +| `platformK8sResourceKind` | findMany, findOne, create, update, delete | +| `platformK8sSpecRule` | findMany, findOne, create, update, delete | | `platformNamespace` | findMany, findOne, create, update, delete | | `platformNamespaceEvent` | findMany, findOne, create, update, delete | +| `platformProposalComment` | findMany, findOne, create, update, delete | +| `platformProposal` | findMany, findOne, create, update, delete | +| `platformProposalFileView` | findMany, findOne, create, update, delete | +| `platformProposalReaction` | findMany, findOne, create, update, delete | +| `platformProposalReview` | findMany, findOne, create, update, delete | +| `platformProposalsChunk` | findMany, findOne, create, update, delete | +| `platformRegistryBinding` | findMany, findOne, create, update, delete | +| `platformRegistry` | findMany, findOne, create, update, delete | +| `platformRegistryGrant` | findMany, findOne, create, update, delete | +| `platformRepository` | findMany, findOne, create, update, delete | +| `platformRepositoryEvent` | findMany, findOne, create, update, delete | +| `platformRepositoryRequiredCheck` | findMany, findOne, create, update, delete | +| `platformRepositoryWorkflow` | findMany, findOne, create, update, delete | | `platformResource` | findMany, findOne, create, update, delete | | `platformResourceDeclaredCapacity` | findMany, findOne, create, update, delete | | `platformResourceDefinition` | findMany, findOne, create, update, delete | | `platformResourceEvent` | findMany, findOne, create, update, delete | | `platformResourceInstallation` | findMany, findOne, create, update, delete | +| `platformResourceObservedStorage` | findMany, findOne, create, update, delete | | `platformResourceStatusCheck` | findMany, findOne, create, update, delete | | `platformResourceUsageLog` | findMany, findOne, create, update, delete | | `platformResourceUsageSummary` | findMany, findOne, create, update, delete | @@ -77,11 +112,25 @@ const db = createClient({ | `platformResourcesResolvedRequirement` | findMany, findOne, create, update, delete | | `platformWebhookEndpoint` | findMany, findOne, create, update, delete | | `platformWebhookEvent` | findMany, findOne, create, update, delete | +| `proposalComment` | findMany, findOne, create, update, delete | +| `proposal` | findMany, findOne, create, update, delete | +| `proposalFileView` | findMany, findOne, create, update, delete | +| `proposalReaction` | findMany, findOne, create, update, delete | +| `proposalReview` | findMany, findOne, create, update, delete | +| `proposalsChunk` | findMany, findOne, create, update, delete | +| `registryBinding` | findMany, findOne, create, update, delete | +| `registry` | findMany, findOne, create, update, delete | +| `registryGrant` | findMany, findOne, create, update, delete | +| `repository` | findMany, findOne, create, update, delete | +| `repositoryEvent` | findMany, findOne, create, update, delete | +| `repositoryRequiredCheck` | findMany, findOne, create, update, delete | +| `repositoryWorkflow` | findMany, findOne, create, update, delete | | `resource` | findMany, findOne, create, update, delete | | `resourceDeclaredCapacity` | findMany, findOne, create, update, delete | | `resourceDefinition` | findMany, findOne, create, update, delete | | `resourceEvent` | findMany, findOne, create, update, delete | | `resourceInstallation` | findMany, findOne, create, update, delete | +| `resourceObservedStorage` | findMany, findOne, create, update, delete | | `resourceStatusCheck` | findMany, findOne, create, update, delete | | `resourceUsageLog` | findMany, findOne, create, update, delete | | `resourceUsageSummary` | findMany, findOne, create, update, delete | @@ -94,356 +143,368 @@ const db = createClient({ ## Table Operations -### `db.contentPreset` +### `db.build` -CRUD operations for ContentPreset records. +CRUD operations for Build records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `active` | Boolean | Yes | -| `commitId` | UUID | Yes | +| `actorId` | UUID | Yes | +| `attempt` | Int | Yes | +| `commitSha` | String | Yes | +| `conclusion` | String | Yes | | `createdAt` | Datetime | No | -| `definition` | JSON | Yes | -| `description` | String | Yes | +| `createdByPrincipal` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `eventId` | UUID | Yes | +| `finishedAt` | Datetime | Yes | | `id` | UUID | No | -| `kind` | String | Yes | -| `label` | String | Yes | -| `slug` | String | Yes | -| `storeId` | UUID | Yes | +| `imageRef` | String | Yes | +| `jobId` | BigInt | Yes | +| `logs` | ConstructiveInternalTypeUpload | Yes | +| `matrixKey` | String | Yes | +| `metadata` | JSON | Yes | +| `proposalId` | UUID | Yes | +| `ref` | String | Yes | +| `repositoryId` | UUID | Yes | +| `startedAt` | Datetime | Yes | +| `status` | String | Yes | | `updatedAt` | Datetime | No | +| `updatedByPrincipal` | UUID | Yes | +| `workflowId` | UUID | Yes | **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(); +// List all build records +const items = await db.build.findMany({ select: { actorId: true, attempt: true, commitSha: true, conclusion: true, createdAt: true, createdByPrincipal: true, databaseId: true, eventId: true, finishedAt: true, id: true, imageRef: true, jobId: true, logs: true, matrixKey: true, metadata: true, proposalId: true, ref: true, repositoryId: true, startedAt: true, status: true, updatedAt: true, updatedByPrincipal: true, workflowId: 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(); +const item = await db.build.findOne({ id: '', select: { actorId: true, attempt: true, commitSha: true, conclusion: true, createdAt: true, createdByPrincipal: true, databaseId: true, eventId: true, finishedAt: true, id: true, imageRef: true, jobId: true, logs: true, matrixKey: true, metadata: true, proposalId: true, ref: true, repositoryId: true, startedAt: true, status: true, updatedAt: true, updatedByPrincipal: true, workflowId: true } }).execute(); // Create -const created = await db.contentPreset.create({ data: { active: '', commitId: '', definition: '', description: '', kind: '', label: '', slug: '', storeId: '' }, select: { id: true } }).execute(); +const created = await db.build.create({ data: { actorId: '', attempt: '', commitSha: '', conclusion: '', createdByPrincipal: '', databaseId: '', eventId: '', finishedAt: '', imageRef: '', jobId: '', logs: '', matrixKey: '', metadata: '', proposalId: '', ref: '', repositoryId: '', startedAt: '', status: '', updatedByPrincipal: '', workflowId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.contentPreset.update({ where: { id: '' }, data: { active: '' }, select: { id: true } }).execute(); +const updated = await db.build.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.contentPreset.delete({ where: { id: '' } }).execute(); +const deleted = await db.build.delete({ where: { id: '' } }).execute(); ``` -### `db.dbPreset` +### `db.buildStep` -CRUD operations for DbPreset records. +CRUD operations for BuildStep records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `active` | Boolean | Yes | -| `commitId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `definition` | JSON | Yes | -| `description` | String | Yes | +| `buildId` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `exitCode` | Int | Yes | +| `finishedAt` | Datetime | Yes | | `id` | UUID | No | -| `label` | String | Yes | -| `modulesHash` | UUID | Yes | -| `slug` | String | Yes | -| `storeId` | UUID | Yes | -| `updatedAt` | Datetime | No | +| `kind` | String | Yes | +| `logBytes` | BigInt | Yes | +| `logOffset` | BigInt | Yes | +| `name` | String | Yes | +| `parentSeq` | Int | Yes | +| `recordedAt` | Datetime | Yes | +| `seq` | Int | Yes | +| `startedAt` | Datetime | Yes | +| `status` | String | Yes | +| `summary` | JSON | Yes | **Operations:** ```typescript -// List all dbPreset records -const items = await db.dbPreset.findMany({ select: { active: true, commitId: true, createdAt: true, definition: true, description: true, id: true, label: true, modulesHash: true, slug: true, storeId: true, updatedAt: true } }).execute(); +// List all buildStep records +const items = await db.buildStep.findMany({ select: { buildId: true, createdByPrincipal: true, databaseId: true, exitCode: true, finishedAt: true, id: true, kind: true, logBytes: true, logOffset: true, name: true, parentSeq: true, recordedAt: true, seq: true, startedAt: true, status: true, summary: true } }).execute(); // Get one by id -const item = await db.dbPreset.findOne({ id: '', select: { active: true, commitId: true, createdAt: true, definition: true, description: true, id: true, label: true, modulesHash: true, slug: true, storeId: true, updatedAt: true } }).execute(); +const item = await db.buildStep.findOne({ id: '', select: { buildId: true, createdByPrincipal: true, databaseId: true, exitCode: true, finishedAt: true, id: true, kind: true, logBytes: true, logOffset: true, name: true, parentSeq: true, recordedAt: true, seq: true, startedAt: true, status: true, summary: true } }).execute(); // Create -const created = await db.dbPreset.create({ data: { active: '', commitId: '', definition: '', description: '', label: '', modulesHash: '', slug: '', storeId: '' }, select: { id: true } }).execute(); +const created = await db.buildStep.create({ data: { buildId: '', createdByPrincipal: '', databaseId: '', exitCode: '', finishedAt: '', kind: '', logBytes: '', logOffset: '', name: '', parentSeq: '', recordedAt: '', seq: '', startedAt: '', status: '', summary: '' }, select: { id: true } }).execute(); // Update -const updated = await db.dbPreset.update({ where: { id: '' }, data: { active: '' }, select: { id: true } }).execute(); +const updated = await db.buildStep.update({ where: { id: '' }, data: { buildId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.dbPreset.delete({ where: { id: '' } }).execute(); +const deleted = await db.buildStep.delete({ where: { id: '' } }).execute(); ``` -### `db.functionApiBinding` +### `db.builderBinding` -CRUD operations for FunctionApiBinding records. +CRUD operations for BuilderBinding records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `alias` | String | Yes | -| `apiId` | UUID | Yes | -| `config` | JSON | Yes | | `createdAt` | Datetime | No | -| `functionDefinitionId` | UUID | Yes | +| `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | +| `databaseId` | UUID | Yes | | `id` | UUID | No | +| `installationId` | UUID | Yes | +| `lastError` | String | Yes | +| `metadata` | JSON | Yes | +| `namespaceId` | UUID | Yes | +| `observedHost` | String | Yes | +| `realm` | String | Yes | +| `status` | String | Yes | | `updatedAt` | Datetime | No | +| `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | **Operations:** ```typescript -// List all functionApiBinding records -const items = await db.functionApiBinding.findMany({ select: { alias: true, apiId: true, config: true, createdAt: true, functionDefinitionId: true, id: true, updatedAt: true } }).execute(); +// List all builderBinding records +const items = await db.builderBinding.findMany({ select: { createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, id: true, installationId: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.functionApiBinding.findOne({ id: '', select: { alias: true, apiId: true, config: true, createdAt: true, functionDefinitionId: true, id: true, updatedAt: true } }).execute(); +const item = await db.builderBinding.findOne({ id: '', select: { createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, id: true, installationId: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.functionApiBinding.create({ data: { alias: '', apiId: '', config: '', functionDefinitionId: '' }, select: { id: true } }).execute(); +const created = await db.builderBinding.create({ data: { createdBy: '', createdByPrincipal: '', databaseId: '', installationId: '', lastError: '', metadata: '', namespaceId: '', observedHost: '', realm: '', status: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update -const updated = await db.functionApiBinding.update({ where: { id: '' }, data: { alias: '' }, select: { id: true } }).execute(); +const updated = await db.builderBinding.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionApiBinding.delete({ where: { id: '' } }).execute(); +const deleted = await db.builderBinding.delete({ where: { id: '' } }).execute(); ``` -### `db.functionCapabilityBinding` +### `db.contentPreset` -CRUD operations for FunctionCapabilityBinding records. +CRUD operations for ContentPreset records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `bucketId` | UUID | Yes | +| `active` | Boolean | Yes | +| `commitId` | UUID | Yes | | `createdAt` | Datetime | No | -| `databaseId` | UUID | Yes | -| `functionId` | UUID | Yes | -| `graphId` | UUID | Yes | +| `definition` | JSON | Yes | +| `description` | String | Yes | | `id` | UUID | No | -| `key` | String | Yes | -| `lifecycle` | String | Yes | -| `metadata` | JSON | Yes | +| `kind` | String | Yes | +| `label` | String | Yes | +| `slug` | String | Yes | +| `storeId` | UUID | Yes | | `updatedAt` | Datetime | No | **Operations:** ```typescript -// List all functionCapabilityBinding records -const items = await db.functionCapabilityBinding.findMany({ select: { bucketId: true, createdAt: true, databaseId: true, functionId: true, graphId: true, id: true, key: true, lifecycle: true, metadata: true, updatedAt: true } }).execute(); +// 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.functionCapabilityBinding.findOne({ id: '', select: { bucketId: true, createdAt: true, databaseId: true, functionId: true, graphId: true, id: true, key: true, lifecycle: true, metadata: true, updatedAt: true } }).execute(); +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.functionCapabilityBinding.create({ data: { bucketId: '', databaseId: '', functionId: '', graphId: '', key: '', lifecycle: '', metadata: '' }, select: { id: true } }).execute(); +const created = await db.contentPreset.create({ data: { active: '', commitId: '', definition: '', description: '', kind: '', label: '', slug: '', storeId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.functionCapabilityBinding.update({ where: { id: '' }, data: { bucketId: '' }, select: { id: true } }).execute(); +const updated = await db.contentPreset.update({ where: { id: '' }, data: { active: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionCapabilityBinding.delete({ where: { id: '' } }).execute(); +const deleted = await db.contentPreset.delete({ where: { id: '' } }).execute(); ``` -### `db.functionDefinition` +### `db.databaseFunctionGraph` -CRUD operations for FunctionDefinition records. +CRUD operations for DatabaseFunctionGraph records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `accessChannels` | String | Yes | -| `category` | String | Yes | -| `concurrency` | Int | Yes | -| `cpuLimitMillicores` | BigInt | Yes | -| `cpuRequestMillicores` | BigInt | Yes | +| `context` | String | Yes | | `createdAt` | Datetime | No | +| `createdBy` | UUID | Yes | | `databaseId` | UUID | Yes | +| `definitionsCommitId` | UUID | Yes | | `description` | String | Yes | -| `fnCategory` | String | Yes | -| `functionColumns` | JSON | Yes | -| `graphId` | UUID | Yes | -| `icon` | String | Yes | | `id` | UUID | No | -| `image` | String | Yes | -| `inputs` | JSON | Yes | -| `integrations` | String | Yes | -| `isPublished` | Boolean | Yes | -| `maxAttempts` | Int | Yes | -| `memoryLimitBytes` | BigInt | Yes | -| `memoryRequestBytes` | BigInt | Yes | -| `moduleTable` | String | Yes | +| `isValid` | Boolean | Yes | | `name` | String | Yes | -| `outputs` | JSON | Yes | -| `payloadArgs` | JSON | Yes | -| `priority` | Int | Yes | -| `props` | JSON | Yes | -| `protected` | Boolean | Yes | -| `publishedAt` | Datetime | Yes | -| `queueName` | String | Yes | -| `requiredBuckets` | String | Yes | -| `requiredConfigs` | ResourceRequirement | Yes | -| `requiredModels` | String | Yes | -| `requiredModules` | String | Yes | -| `requiredSecrets` | ResourceRequirement | Yes | -| `resources` | JSON | Yes | -| `runtime` | String | Yes | -| `scaleMax` | Int | Yes | -| `scaleMin` | Int | Yes | -| `targetFunction` | String | Yes | -| `targetSchema` | String | Yes | -| `taskIdentifier` | String | Yes | -| `timeoutSeconds` | Int | Yes | +| `storeId` | UUID | Yes | | `updatedAt` | Datetime | No | -| `volatile` | Boolean | Yes | +| `validationErrors` | JSON | Yes | **Operations:** ```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, 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(); +// List all databaseFunctionGraph records +const items = await db.databaseFunctionGraph.findMany({ select: { context: true, createdAt: true, createdBy: true, databaseId: true, definitionsCommitId: true, description: true, id: true, isValid: true, name: true, storeId: true, updatedAt: true, validationErrors: 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, 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(); +const item = await db.databaseFunctionGraph.findOne({ id: '', select: { context: true, createdAt: true, createdBy: true, databaseId: true, definitionsCommitId: true, description: true, id: true, isValid: true, name: true, storeId: true, updatedAt: true, validationErrors: 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: '', requiredModules: '', requiredSecrets: '', resources: '', runtime: '', scaleMax: '', scaleMin: '', targetFunction: '', targetSchema: '', taskIdentifier: '', timeoutSeconds: '', volatile: '' }, select: { id: true } }).execute(); +const created = await db.databaseFunctionGraph.create({ data: { context: '', createdBy: '', databaseId: '', definitionsCommitId: '', description: '', isValid: '', name: '', storeId: '', validationErrors: '' }, select: { id: true } }).execute(); // Update -const updated = await db.functionDefinition.update({ where: { id: '' }, data: { accessChannels: '' }, select: { id: true } }).execute(); +const updated = await db.databaseFunctionGraph.update({ where: { id: '' }, data: { context: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionDefinition.delete({ where: { id: '' } }).execute(); +const deleted = await db.databaseFunctionGraph.delete({ where: { id: '' } }).execute(); ``` -### `db.functionDeployment` +### `db.databaseFunctionGraphExecution` -CRUD operations for FunctionDeployment records. +CRUD operations for DatabaseFunctionGraphExecution records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `annotations` | JSON | Yes | -| `concurrency` | Int | Yes | -| `createdAt` | Datetime | No | +| `actorId` | UUID | Yes | +| `completedAt` | Datetime | Yes | +| `currentWave` | Int | Yes | | `databaseId` | UUID | Yes | -| `errorCount` | Int | Yes | -| `handlerName` | String | Yes | +| `definitionsCommitId` | UUID | Yes | +| `entityId` | UUID | Yes | +| `entityType` | String | Yes | +| `errorCode` | String | Yes | +| `errorMessage` | String | Yes | +| `executionPlan` | JSON | Yes | +| `graphId` | UUID | Yes | | `id` | UUID | No | -| `image` | String | Yes | -| `imageVersion` | String | Yes | -| `labels` | JSON | Yes | -| `lastError` | String | Yes | -| `lastErrorAt` | Datetime | Yes | -| `namespaceId` | UUID | Yes | -| `realm` | String | Yes | -| `resources` | JSON | Yes | -| `revision` | Int | Yes | -| `scaleMax` | Int | Yes | -| `scaleMin` | Int | Yes | -| `serviceName` | String | Yes | -| `serviceUrl` | String | Yes | +| `inputPayload` | JSON | Yes | +| `invocationCreatedAt` | Datetime | Yes | +| `invocationId` | UUID | Yes | +| `lastProgressAt` | Datetime | Yes | +| `maxPendingJobs` | Int | Yes | +| `maxTicks` | Int | Yes | +| `nodeOutputs` | JSON | Yes | +| `organizationId` | UUID | Yes | +| `outputNames` | String | Yes | +| `outputNode` | String | Yes | +| `outputPayload` | JSON | Yes | +| `outputPort` | String | Yes | +| `parentExecutionId` | UUID | Yes | +| `parentInvocationId` | UUID | Yes | +| `parentNodeName` | String | Yes | +| `principalId` | UUID | Yes | +| `startedAt` | Datetime | Yes | | `status` | String | Yes | -| `timeoutSeconds` | Int | Yes | -| `updatedAt` | Datetime | No | +| `tickCount` | Int | Yes | +| `timeoutAt` | Datetime | Yes | **Operations:** ```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, realm: true, resources: true, revision: true, scaleMax: true, scaleMin: true, serviceName: true, serviceUrl: true, status: true, timeoutSeconds: true, updatedAt: true } }).execute(); +// List all databaseFunctionGraphExecution records +const items = await db.databaseFunctionGraphExecution.findMany({ select: { actorId: true, completedAt: true, currentWave: true, databaseId: true, definitionsCommitId: true, entityId: true, entityType: true, errorCode: true, errorMessage: true, executionPlan: true, graphId: true, id: true, inputPayload: true, invocationCreatedAt: true, invocationId: true, lastProgressAt: true, maxPendingJobs: true, maxTicks: true, nodeOutputs: true, organizationId: true, outputNames: true, outputNode: true, outputPayload: true, outputPort: true, parentExecutionId: true, parentInvocationId: true, parentNodeName: true, principalId: true, startedAt: true, status: true, tickCount: true, timeoutAt: 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, realm: true, resources: true, revision: true, scaleMax: true, scaleMin: true, serviceName: true, serviceUrl: true, status: true, timeoutSeconds: true, updatedAt: true } }).execute(); +const item = await db.databaseFunctionGraphExecution.findOne({ id: '', select: { actorId: true, completedAt: true, currentWave: true, databaseId: true, definitionsCommitId: true, entityId: true, entityType: true, errorCode: true, errorMessage: true, executionPlan: true, graphId: true, id: true, inputPayload: true, invocationCreatedAt: true, invocationId: true, lastProgressAt: true, maxPendingJobs: true, maxTicks: true, nodeOutputs: true, organizationId: true, outputNames: true, outputNode: true, outputPayload: true, outputPort: true, parentExecutionId: true, parentInvocationId: true, parentNodeName: true, principalId: true, startedAt: true, status: true, tickCount: true, timeoutAt: true } }).execute(); // Create -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(); +const created = await db.databaseFunctionGraphExecution.create({ data: { actorId: '', completedAt: '', currentWave: '', databaseId: '', definitionsCommitId: '', entityId: '', entityType: '', errorCode: '', errorMessage: '', executionPlan: '', graphId: '', inputPayload: '', invocationCreatedAt: '', invocationId: '', lastProgressAt: '', maxPendingJobs: '', maxTicks: '', nodeOutputs: '', organizationId: '', outputNames: '', outputNode: '', outputPayload: '', outputPort: '', parentExecutionId: '', parentInvocationId: '', parentNodeName: '', principalId: '', startedAt: '', status: '', tickCount: '', timeoutAt: '' }, select: { id: true } }).execute(); // Update -const updated = await db.functionDeployment.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); +const updated = await db.databaseFunctionGraphExecution.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionDeployment.delete({ where: { id: '' } }).execute(); +const deleted = await db.databaseFunctionGraphExecution.delete({ where: { id: '' } }).execute(); ``` -### `db.functionDeploymentEvent` +### `db.databaseFunctionGraphExecutionNodeState` -CRUD operations for FunctionDeploymentEvent records. +CRUD operations for DatabaseFunctionGraphExecutionNodeState records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `actorId` | UUID | Yes | +| `callbackInputs` | JSON | Yes | +| `callbackMeta` | JSON | Yes | +| `callbackTokenHash` | String | Yes | +| `completedAt` | Datetime | Yes | | `createdAt` | Datetime | No | | `databaseId` | UUID | Yes | -| `deploymentId` | UUID | Yes | -| `eventType` | String | Yes | +| `errorCode` | String | Yes | +| `errorMessage` | String | Yes | +| `executionId` | UUID | Yes | +| `expiryDefaultOutput` | JSON | Yes | +| `expiryEscalatedAt` | Datetime | Yes | +| `expiryPolicy` | String | Yes | | `id` | UUID | No | -| `message` | String | Yes | -| `metadata` | JSON | Yes | +| `nodeName` | String | Yes | +| `nodePath` | String | Yes | +| `outputId` | UUID | Yes | +| `startedAt` | Datetime | Yes | +| `status` | String | Yes | +| `waitingDeadlineAt` | Datetime | Yes | +| `waitingOn` | String | Yes | +| `waitingSince` | Datetime | Yes | **Operations:** ```typescript -// List all functionDeploymentEvent records -const items = await db.functionDeploymentEvent.findMany({ select: { actorId: true, createdAt: true, databaseId: true, deploymentId: true, eventType: true, id: true, message: true, metadata: true } }).execute(); +// List all databaseFunctionGraphExecutionNodeState records +const items = await db.databaseFunctionGraphExecutionNodeState.findMany({ select: { callbackInputs: true, callbackMeta: true, callbackTokenHash: true, completedAt: true, createdAt: true, databaseId: true, errorCode: true, errorMessage: true, executionId: true, expiryDefaultOutput: true, expiryEscalatedAt: true, expiryPolicy: true, id: true, nodeName: true, nodePath: true, outputId: true, startedAt: true, status: true, waitingDeadlineAt: true, waitingOn: true, waitingSince: true } }).execute(); // Get one by id -const item = await db.functionDeploymentEvent.findOne({ id: '', select: { actorId: true, createdAt: true, databaseId: true, deploymentId: true, eventType: true, id: true, message: true, metadata: true } }).execute(); +const item = await db.databaseFunctionGraphExecutionNodeState.findOne({ id: '', select: { callbackInputs: true, callbackMeta: true, callbackTokenHash: true, completedAt: true, createdAt: true, databaseId: true, errorCode: true, errorMessage: true, executionId: true, expiryDefaultOutput: true, expiryEscalatedAt: true, expiryPolicy: true, id: true, nodeName: true, nodePath: true, outputId: true, startedAt: true, status: true, waitingDeadlineAt: true, waitingOn: true, waitingSince: true } }).execute(); // Create -const created = await db.functionDeploymentEvent.create({ data: { actorId: '', databaseId: '', deploymentId: '', eventType: '', message: '', metadata: '' }, select: { id: true } }).execute(); +const created = await db.databaseFunctionGraphExecutionNodeState.create({ data: { callbackInputs: '', callbackMeta: '', callbackTokenHash: '', completedAt: '', databaseId: '', errorCode: '', errorMessage: '', executionId: '', expiryDefaultOutput: '', expiryEscalatedAt: '', expiryPolicy: '', nodeName: '', nodePath: '', outputId: '', startedAt: '', status: '', waitingDeadlineAt: '', waitingOn: '', waitingSince: '' }, select: { id: true } }).execute(); // Update -const updated = await db.functionDeploymentEvent.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); +const updated = await db.databaseFunctionGraphExecutionNodeState.update({ where: { id: '' }, data: { callbackInputs: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionDeploymentEvent.delete({ where: { id: '' } }).execute(); +const deleted = await db.databaseFunctionGraphExecutionNodeState.delete({ where: { id: '' } }).execute(); ``` -### `db.functionExecutionLog` +### `db.databaseFunctionGraphExecutionOutput` -CRUD operations for FunctionExecutionLog records. +CRUD operations for DatabaseFunctionGraphExecutionOutput records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `actorId` | UUID | Yes | | `createdAt` | Datetime | No | +| `data` | JSON | Yes | | `databaseId` | UUID | Yes | +| `hash` | Base64EncodedBinary | Yes | | `id` | UUID | No | -| `invocationId` | UUID | Yes | -| `logLevel` | String | Yes | -| `message` | String | Yes | -| `metadata` | JSON | Yes | -| `taskIdentifier` | String | Yes | **Operations:** ```typescript -// List all functionExecutionLog records -const items = await db.functionExecutionLog.findMany({ select: { actorId: true, createdAt: true, databaseId: true, id: true, invocationId: true, logLevel: true, message: true, metadata: true, taskIdentifier: true } }).execute(); +// List all databaseFunctionGraphExecutionOutput records +const items = await db.databaseFunctionGraphExecutionOutput.findMany({ select: { createdAt: true, data: true, databaseId: true, hash: true, id: true } }).execute(); // Get one by id -const item = await db.functionExecutionLog.findOne({ id: '', select: { actorId: true, createdAt: true, databaseId: true, id: true, invocationId: true, logLevel: true, message: true, metadata: true, taskIdentifier: true } }).execute(); +const item = await db.databaseFunctionGraphExecutionOutput.findOne({ id: '', select: { createdAt: true, data: true, databaseId: true, hash: true, id: true } }).execute(); // Create -const created = await db.functionExecutionLog.create({ data: { actorId: '', databaseId: '', invocationId: '', logLevel: '', message: '', metadata: '', taskIdentifier: '' }, select: { id: true } }).execute(); +const created = await db.databaseFunctionGraphExecutionOutput.create({ data: { data: '', databaseId: '', hash: '' }, select: { id: true } }).execute(); // Update -const updated = await db.functionExecutionLog.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); +const updated = await db.databaseFunctionGraphExecutionOutput.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionExecutionLog.delete({ where: { id: '' } }).execute(); +const deleted = await db.databaseFunctionGraphExecutionOutput.delete({ where: { id: '' } }).execute(); ``` -### `db.functionGraphCommit` +### `db.databaseGraphCommit` -CRUD operations for FunctionGraphCommit records. +CRUD operations for DatabaseGraphCommit records. **Fields:** @@ -451,979 +512,1700 @@ CRUD operations for FunctionGraphCommit records. |-------|------|----------| | `authorId` | UUID | Yes | | `committerId` | UUID | Yes | +| `databaseId` | UUID | Yes | | `date` | Datetime | Yes | | `id` | UUID | No | | `message` | String | Yes | | `parentIds` | UUID | Yes | -| `scopeId` | UUID | Yes | | `storeId` | UUID | Yes | | `treeId` | UUID | Yes | **Operations:** ```typescript -// List all functionGraphCommit records -const items = await db.functionGraphCommit.findMany({ select: { authorId: true, committerId: true, date: true, id: true, message: true, parentIds: true, scopeId: true, storeId: true, treeId: true } }).execute(); +// List all databaseGraphCommit records +const items = await db.databaseGraphCommit.findMany({ select: { authorId: true, committerId: true, databaseId: true, date: true, id: true, message: true, parentIds: true, storeId: true, treeId: true } }).execute(); // Get one by id -const item = await db.functionGraphCommit.findOne({ id: '', select: { authorId: true, committerId: true, date: true, id: true, message: true, parentIds: true, scopeId: true, storeId: true, treeId: true } }).execute(); +const item = await db.databaseGraphCommit.findOne({ id: '', select: { authorId: true, committerId: true, databaseId: true, date: true, id: true, message: true, parentIds: true, storeId: true, treeId: true } }).execute(); // Create -const created = await db.functionGraphCommit.create({ data: { authorId: '', committerId: '', date: '', message: '', parentIds: '', scopeId: '', storeId: '', treeId: '' }, select: { id: true } }).execute(); +const created = await db.databaseGraphCommit.create({ data: { authorId: '', committerId: '', databaseId: '', date: '', message: '', parentIds: '', storeId: '', treeId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.functionGraphCommit.update({ where: { id: '' }, data: { authorId: '' }, select: { id: true } }).execute(); +const updated = await db.databaseGraphCommit.update({ where: { id: '' }, data: { authorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionGraphCommit.delete({ where: { id: '' } }).execute(); +const deleted = await db.databaseGraphCommit.delete({ where: { id: '' } }).execute(); ``` -### `db.functionGraph` +### `db.databaseGraphGetAllTreeNodesRecord` -CRUD operations for FunctionGraph records. +CRUD operations for DatabaseGraphGetAllTreeNodesRecord records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `context` | String | Yes | -| `createdAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `definitionsCommitId` | UUID | Yes | -| `description` | String | Yes | -| `id` | UUID | No | -| `isValid` | Boolean | Yes | -| `name` | String | Yes | -| `scopeId` | UUID | Yes | -| `storeId` | UUID | Yes | -| `updatedAt` | Datetime | No | -| `validationErrors` | JSON | Yes | +| `data` | JSON | Yes | +| `path` | String | Yes | **Operations:** ```typescript -// List all functionGraph records -const items = await db.functionGraph.findMany({ select: { context: true, createdAt: true, createdBy: true, definitionsCommitId: true, description: true, id: true, isValid: true, name: true, scopeId: true, storeId: true, updatedAt: true, validationErrors: true } }).execute(); +// List all databaseGraphGetAllTreeNodesRecord records +const items = await db.databaseGraphGetAllTreeNodesRecord.findMany({ select: { data: true, path: true } }).execute(); // Get one by id -const item = await db.functionGraph.findOne({ id: '', select: { context: true, createdAt: true, createdBy: true, definitionsCommitId: true, description: true, id: true, isValid: true, name: true, scopeId: true, storeId: true, updatedAt: true, validationErrors: true } }).execute(); +const item = await db.databaseGraphGetAllTreeNodesRecord.findOne({ id: '', select: { data: true, path: true } }).execute(); // Create -const created = await db.functionGraph.create({ data: { context: '', createdBy: '', definitionsCommitId: '', description: '', isValid: '', name: '', scopeId: '', storeId: '', validationErrors: '' }, select: { id: true } }).execute(); +const created = await db.databaseGraphGetAllTreeNodesRecord.create({ data: { data: '', path: '' }, select: { id: true } }).execute(); // Update -const updated = await db.functionGraph.update({ where: { id: '' }, data: { context: '' }, select: { id: true } }).execute(); +const updated = await db.databaseGraphGetAllTreeNodesRecord.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionGraph.delete({ where: { id: '' } }).execute(); +const deleted = await db.databaseGraphGetAllTreeNodesRecord.delete({ where: { id: '' } }).execute(); ``` -### `db.functionGraphExecution` +### `db.databaseGraphObject` -CRUD operations for FunctionGraphExecution records. +CRUD operations for DatabaseGraphObject records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `actorId` | UUID | Yes | -| `completedAt` | Datetime | Yes | -| `currentWave` | Int | Yes | -| `definitionsCommitId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `entityType` | String | Yes | -| `errorCode` | String | Yes | -| `errorMessage` | String | Yes | -| `executionPlan` | JSON | Yes | -| `graphId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `data` | JSON | Yes | +| `databaseId` | UUID | Yes | | `id` | UUID | No | -| `inputPayload` | JSON | Yes | -| `invocationCreatedAt` | Datetime | Yes | -| `invocationId` | UUID | Yes | -| `lastProgressAt` | Datetime | Yes | -| `maxPendingJobs` | Int | Yes | -| `maxTicks` | Int | Yes | -| `nodeOutputs` | JSON | Yes | -| `organizationId` | UUID | Yes | -| `outputNames` | String | Yes | -| `outputNode` | String | Yes | -| `outputPayload` | JSON | Yes | -| `outputPort` | String | Yes | -| `parentExecutionId` | UUID | Yes | -| `parentInvocationId` | UUID | Yes | -| `parentNodeName` | String | Yes | -| `principalId` | UUID | Yes | -| `scopeId` | UUID | Yes | -| `startedAt` | Datetime | Yes | -| `status` | String | Yes | -| `tickCount` | Int | Yes | -| `timeoutAt` | Datetime | Yes | +| `kids` | UUID | Yes | +| `ktree` | String | Yes | **Operations:** ```typescript -// List all functionGraphExecution records -const items = await db.functionGraphExecution.findMany({ select: { actorId: true, completedAt: true, currentWave: true, definitionsCommitId: true, entityId: true, entityType: true, errorCode: true, errorMessage: true, executionPlan: true, graphId: true, id: true, inputPayload: true, invocationCreatedAt: true, invocationId: true, lastProgressAt: true, maxPendingJobs: true, maxTicks: true, nodeOutputs: true, organizationId: true, outputNames: true, outputNode: true, outputPayload: true, outputPort: true, parentExecutionId: true, parentInvocationId: true, parentNodeName: true, principalId: true, scopeId: true, startedAt: true, status: true, tickCount: true, timeoutAt: true } }).execute(); +// List all databaseGraphObject records +const items = await db.databaseGraphObject.findMany({ select: { createdAt: true, data: true, databaseId: true, id: true, kids: true, ktree: true } }).execute(); // Get one by id -const item = await db.functionGraphExecution.findOne({ id: '', select: { actorId: true, completedAt: true, currentWave: true, definitionsCommitId: true, entityId: true, entityType: true, errorCode: true, errorMessage: true, executionPlan: true, graphId: true, id: true, inputPayload: true, invocationCreatedAt: true, invocationId: true, lastProgressAt: true, maxPendingJobs: true, maxTicks: true, nodeOutputs: true, organizationId: true, outputNames: true, outputNode: true, outputPayload: true, outputPort: true, parentExecutionId: true, parentInvocationId: true, parentNodeName: true, principalId: true, scopeId: true, startedAt: true, status: true, tickCount: true, timeoutAt: true } }).execute(); +const item = await db.databaseGraphObject.findOne({ id: '', select: { createdAt: true, data: true, databaseId: true, id: true, kids: true, ktree: true } }).execute(); // Create -const created = await db.functionGraphExecution.create({ data: { actorId: '', completedAt: '', currentWave: '', definitionsCommitId: '', entityId: '', entityType: '', errorCode: '', errorMessage: '', executionPlan: '', graphId: '', inputPayload: '', invocationCreatedAt: '', invocationId: '', lastProgressAt: '', maxPendingJobs: '', maxTicks: '', nodeOutputs: '', organizationId: '', outputNames: '', outputNode: '', outputPayload: '', outputPort: '', parentExecutionId: '', parentInvocationId: '', parentNodeName: '', principalId: '', scopeId: '', startedAt: '', status: '', tickCount: '', timeoutAt: '' }, select: { id: true } }).execute(); +const created = await db.databaseGraphObject.create({ data: { data: '', databaseId: '', kids: '', ktree: '' }, select: { id: true } }).execute(); // Update -const updated = await db.functionGraphExecution.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); +const updated = await db.databaseGraphObject.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionGraphExecution.delete({ where: { id: '' } }).execute(); +const deleted = await db.databaseGraphObject.delete({ where: { id: '' } }).execute(); ``` -### `db.functionGraphExecutionNodeState` +### `db.databaseGraphRef` -CRUD operations for FunctionGraphExecutionNodeState records. +CRUD operations for DatabaseGraphRef records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `callbackInputs` | JSON | Yes | -| `callbackMeta` | JSON | Yes | -| `callbackTokenHash` | String | Yes | -| `completedAt` | Datetime | Yes | -| `createdAt` | Datetime | No | -| `errorCode` | String | Yes | -| `errorMessage` | String | Yes | -| `executionId` | UUID | Yes | +| `commitId` | UUID | Yes | +| `databaseId` | UUID | Yes | | `id` | UUID | No | -| `nodeName` | String | Yes | -| `nodePath` | String | Yes | -| `outputId` | UUID | Yes | -| `scopeId` | UUID | Yes | -| `startedAt` | Datetime | Yes | -| `status` | String | Yes | +| `name` | String | Yes | +| `storeId` | UUID | Yes | **Operations:** ```typescript -// List all functionGraphExecutionNodeState records -const items = await db.functionGraphExecutionNodeState.findMany({ select: { callbackInputs: true, callbackMeta: true, callbackTokenHash: true, completedAt: true, createdAt: true, errorCode: true, errorMessage: true, executionId: true, id: true, nodeName: true, nodePath: true, outputId: true, scopeId: true, startedAt: true, status: true } }).execute(); +// List all databaseGraphRef records +const items = await db.databaseGraphRef.findMany({ select: { commitId: true, databaseId: true, id: true, name: true, storeId: true } }).execute(); // Get one by id -const item = await db.functionGraphExecutionNodeState.findOne({ id: '', select: { callbackInputs: true, callbackMeta: true, callbackTokenHash: true, completedAt: true, createdAt: true, errorCode: true, errorMessage: true, executionId: true, id: true, nodeName: true, nodePath: true, outputId: true, scopeId: true, startedAt: true, status: true } }).execute(); +const item = await db.databaseGraphRef.findOne({ id: '', select: { commitId: true, databaseId: true, id: true, name: true, storeId: true } }).execute(); // Create -const created = await db.functionGraphExecutionNodeState.create({ data: { callbackInputs: '', callbackMeta: '', callbackTokenHash: '', completedAt: '', errorCode: '', errorMessage: '', executionId: '', nodeName: '', nodePath: '', outputId: '', scopeId: '', startedAt: '', status: '' }, select: { id: true } }).execute(); +const created = await db.databaseGraphRef.create({ data: { commitId: '', databaseId: '', name: '', storeId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.functionGraphExecutionNodeState.update({ where: { id: '' }, data: { callbackInputs: '' }, select: { id: true } }).execute(); +const updated = await db.databaseGraphRef.update({ where: { id: '' }, data: { commitId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionGraphExecutionNodeState.delete({ where: { id: '' } }).execute(); +const deleted = await db.databaseGraphRef.delete({ where: { id: '' } }).execute(); ``` -### `db.functionGraphExecutionOutput` +### `db.databaseGraphStore` -CRUD operations for FunctionGraphExecutionOutput records. +CRUD operations for DatabaseGraphStore records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `createdAt` | Datetime | No | -| `data` | JSON | Yes | -| `hash` | Base64EncodedBinary | Yes | +| `databaseId` | UUID | Yes | +| `hash` | UUID | Yes | | `id` | UUID | No | -| `scopeId` | UUID | Yes | +| `name` | String | Yes | **Operations:** ```typescript -// List all functionGraphExecutionOutput records -const items = await db.functionGraphExecutionOutput.findMany({ select: { createdAt: true, data: true, hash: true, id: true, scopeId: true } }).execute(); +// List all databaseGraphStore records +const items = await db.databaseGraphStore.findMany({ select: { createdAt: true, databaseId: true, hash: true, id: true, name: true } }).execute(); // Get one by id -const item = await db.functionGraphExecutionOutput.findOne({ id: '', select: { createdAt: true, data: true, hash: true, id: true, scopeId: true } }).execute(); +const item = await db.databaseGraphStore.findOne({ id: '', select: { createdAt: true, databaseId: true, hash: true, id: true, name: true } }).execute(); // Create -const created = await db.functionGraphExecutionOutput.create({ data: { data: '', hash: '', scopeId: '' }, select: { id: true } }).execute(); +const created = await db.databaseGraphStore.create({ data: { databaseId: '', hash: '', name: '' }, select: { id: true } }).execute(); // Update -const updated = await db.functionGraphExecutionOutput.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); +const updated = await db.databaseGraphStore.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionGraphExecutionOutput.delete({ where: { id: '' } }).execute(); +const deleted = await db.databaseGraphStore.delete({ where: { id: '' } }).execute(); ``` -### `db.functionGraphObject` +### `db.dbPreset` -CRUD operations for FunctionGraphObject records. +CRUD operations for DbPreset records. **Fields:** | Field | Type | Editable | |-------|------|----------| +| `active` | Boolean | Yes | +| `commitId` | UUID | Yes | | `createdAt` | Datetime | No | -| `data` | JSON | Yes | +| `definition` | JSON | Yes | +| `description` | String | Yes | | `id` | UUID | No | -| `kids` | UUID | Yes | -| `ktree` | String | Yes | -| `scopeId` | UUID | Yes | +| `label` | String | Yes | +| `modulesHash` | UUID | Yes | +| `slug` | String | Yes | +| `storeId` | UUID | Yes | +| `updatedAt` | Datetime | No | **Operations:** ```typescript -// List all functionGraphObject records -const items = await db.functionGraphObject.findMany({ select: { createdAt: true, data: true, id: true, kids: true, ktree: true, scopeId: true } }).execute(); +// List all dbPreset records +const items = await db.dbPreset.findMany({ select: { active: true, commitId: true, createdAt: true, definition: true, description: true, id: true, label: true, modulesHash: true, slug: true, storeId: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.functionGraphObject.findOne({ id: '', select: { createdAt: true, data: true, id: true, kids: true, ktree: true, scopeId: true } }).execute(); +const item = await db.dbPreset.findOne({ id: '', select: { active: true, commitId: true, createdAt: true, definition: true, description: true, id: true, label: true, modulesHash: true, slug: true, storeId: true, updatedAt: true } }).execute(); // Create -const created = await db.functionGraphObject.create({ data: { data: '', kids: '', ktree: '', scopeId: '' }, select: { id: true } }).execute(); +const created = await db.dbPreset.create({ data: { active: '', commitId: '', definition: '', description: '', label: '', modulesHash: '', slug: '', storeId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.functionGraphObject.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); +const updated = await db.dbPreset.update({ where: { id: '' }, data: { active: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionGraphObject.delete({ where: { id: '' } }).execute(); +const deleted = await db.dbPreset.delete({ where: { id: '' } }).execute(); ``` -### `db.functionGraphRef` +### `db.functionApiBinding` -CRUD operations for FunctionGraphRef records. +CRUD operations for FunctionApiBinding records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `commitId` | UUID | Yes | +| `alias` | String | Yes | +| `apiId` | UUID | Yes | +| `config` | JSON | Yes | +| `createdAt` | Datetime | No | +| `functionDefinitionId` | UUID | Yes | | `id` | UUID | No | -| `name` | String | Yes | -| `scopeId` | UUID | Yes | -| `storeId` | UUID | Yes | +| `updatedAt` | Datetime | No | **Operations:** ```typescript -// List all functionGraphRef records -const items = await db.functionGraphRef.findMany({ select: { commitId: true, id: true, name: true, scopeId: true, storeId: true } }).execute(); +// List all functionApiBinding records +const items = await db.functionApiBinding.findMany({ select: { alias: true, apiId: true, config: true, createdAt: true, functionDefinitionId: true, id: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.functionGraphRef.findOne({ id: '', select: { commitId: true, id: true, name: true, scopeId: true, storeId: true } }).execute(); +const item = await db.functionApiBinding.findOne({ id: '', select: { alias: true, apiId: true, config: true, createdAt: true, functionDefinitionId: true, id: true, updatedAt: true } }).execute(); // Create -const created = await db.functionGraphRef.create({ data: { commitId: '', name: '', scopeId: '', storeId: '' }, select: { id: true } }).execute(); +const created = await db.functionApiBinding.create({ data: { alias: '', apiId: '', config: '', functionDefinitionId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.functionGraphRef.update({ where: { id: '' }, data: { commitId: '' }, select: { id: true } }).execute(); +const updated = await db.functionApiBinding.update({ where: { id: '' }, data: { alias: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionGraphRef.delete({ where: { id: '' } }).execute(); +const deleted = await db.functionApiBinding.delete({ where: { id: '' } }).execute(); ``` -### `db.functionGraphStore` +### `db.functionCapabilityBinding` -CRUD operations for FunctionGraphStore records. +CRUD operations for FunctionCapabilityBinding records. **Fields:** | Field | Type | Editable | |-------|------|----------| +| `bucketId` | UUID | Yes | | `createdAt` | Datetime | No | -| `hash` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `functionId` | UUID | Yes | +| `graphId` | UUID | Yes | | `id` | UUID | No | -| `name` | String | Yes | -| `scopeId` | UUID | Yes | +| `key` | String | Yes | +| `lifecycle` | String | Yes | +| `metadata` | JSON | Yes | +| `updatedAt` | Datetime | No | **Operations:** ```typescript -// List all functionGraphStore records -const items = await db.functionGraphStore.findMany({ select: { createdAt: true, hash: true, id: true, name: true, scopeId: true } }).execute(); +// List all functionCapabilityBinding records +const items = await db.functionCapabilityBinding.findMany({ select: { bucketId: true, createdAt: true, databaseId: true, functionId: true, graphId: true, id: true, key: true, lifecycle: true, metadata: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.functionGraphStore.findOne({ id: '', select: { createdAt: true, hash: true, id: true, name: true, scopeId: true } }).execute(); +const item = await db.functionCapabilityBinding.findOne({ id: '', select: { bucketId: true, createdAt: true, databaseId: true, functionId: true, graphId: true, id: true, key: true, lifecycle: true, metadata: true, updatedAt: true } }).execute(); // Create -const created = await db.functionGraphStore.create({ data: { hash: '', name: '', scopeId: '' }, select: { id: true } }).execute(); +const created = await db.functionCapabilityBinding.create({ data: { bucketId: '', databaseId: '', functionId: '', graphId: '', key: '', lifecycle: '', metadata: '' }, select: { id: true } }).execute(); // Update -const updated = await db.functionGraphStore.update({ where: { id: '' }, data: { hash: '' }, select: { id: true } }).execute(); +const updated = await db.functionCapabilityBinding.update({ where: { id: '' }, data: { bucketId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionGraphStore.delete({ where: { id: '' } }).execute(); +const deleted = await db.functionCapabilityBinding.delete({ where: { id: '' } }).execute(); ``` -### `db.functionInvocationAttempt` +### `db.functionDefinition` -CRUD operations for FunctionInvocationAttempt records. +CRUD operations for FunctionDefinition records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `actorId` | UUID | Yes | -| `attempt` | Int | Yes | +| `accessChannels` | String | Yes | +| `anonymousCallable` | Boolean | Yes | +| `category` | String | Yes | +| `concurrency` | Int | Yes | +| `cpuLimitMillicores` | BigInt | Yes | +| `cpuRequestMillicores` | BigInt | Yes | | `createdAt` | Datetime | No | +| `createdByPrincipal` | UUID | Yes | | `databaseId` | UUID | Yes | -| `durationMs` | Int | Yes | -| `error` | String | Yes | -| `errorDetail` | JSON | Yes | +| `description` | String | Yes | +| `fnCategory` | String | Yes | +| `functionColumns` | JSON | Yes | +| `graphId` | UUID | Yes | +| `icon` | String | Yes | | `id` | UUID | No | -| `invocationCreatedAt` | Datetime | Yes | -| `invocationId` | UUID | Yes | -| `startedAt` | Datetime | Yes | -| `success` | Boolean | Yes | +| `image` | String | Yes | +| `inputs` | JSON | Yes | +| `integrations` | String | Yes | +| `isPublished` | Boolean | Yes | +| `maxAttempts` | Int | Yes | +| `memoryLimitBytes` | BigInt | Yes | +| `memoryRequestBytes` | BigInt | Yes | +| `moduleTable` | String | Yes | +| `name` | String | Yes | +| `outputs` | JSON | Yes | +| `payloadArgs` | JSON | Yes | +| `priority` | Int | Yes | +| `props` | JSON | Yes | +| `protected` | Boolean | Yes | +| `publishedAt` | Datetime | Yes | +| `queueName` | String | Yes | +| `requiredBuckets` | String | Yes | +| `requiredCapabilities` | JSON | Yes | +| `requiredConfigs` | ResourceRequirement | Yes | +| `requiredModels` | String | Yes | +| `requiredModules` | String | Yes | +| `requiredSecrets` | ResourceRequirement | Yes | +| `resources` | JSON | Yes | +| `runtime` | String | Yes | +| `scaleMax` | Int | Yes | +| `scaleMin` | Int | Yes | +| `targetFunction` | String | Yes | +| `targetSchema` | String | Yes | | `taskIdentifier` | String | Yes | +| `timeoutSeconds` | Int | Yes | +| `updatedAt` | Datetime | No | +| `updatedByPrincipal` | UUID | Yes | +| `volatile` | Boolean | Yes | **Operations:** ```typescript -// List all functionInvocationAttempt records -const items = await db.functionInvocationAttempt.findMany({ select: { actorId: true, attempt: true, createdAt: true, databaseId: true, durationMs: true, error: true, errorDetail: true, id: true, invocationCreatedAt: true, invocationId: true, startedAt: true, success: true, taskIdentifier: true } }).execute(); +// List all functionDefinition records +const items = await db.functionDefinition.findMany({ select: { accessChannels: true, anonymousCallable: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdByPrincipal: 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, requiredCapabilities: 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, updatedByPrincipal: true, volatile: true } }).execute(); // Get one by id -const item = await db.functionInvocationAttempt.findOne({ id: '', select: { actorId: true, attempt: true, createdAt: true, databaseId: true, durationMs: true, error: true, errorDetail: true, id: true, invocationCreatedAt: true, invocationId: true, startedAt: true, success: true, taskIdentifier: true } }).execute(); +const item = await db.functionDefinition.findOne({ id: '', select: { accessChannels: true, anonymousCallable: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdByPrincipal: 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, requiredCapabilities: 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, updatedByPrincipal: true, volatile: true } }).execute(); // Create -const created = await db.functionInvocationAttempt.create({ data: { actorId: '', attempt: '', databaseId: '', durationMs: '', error: '', errorDetail: '', invocationCreatedAt: '', invocationId: '', startedAt: '', success: '', taskIdentifier: '' }, select: { id: true } }).execute(); +const created = await db.functionDefinition.create({ data: { accessChannels: '', anonymousCallable: '', category: '', concurrency: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdByPrincipal: '', databaseId: '', description: '', fnCategory: '', functionColumns: '', graphId: '', icon: '', image: '', inputs: '', integrations: '', isPublished: '', maxAttempts: '', memoryLimitBytes: '', memoryRequestBytes: '', moduleTable: '', name: '', outputs: '', payloadArgs: '', priority: '', props: '', protected: '', publishedAt: '', queueName: '', requiredBuckets: '', requiredCapabilities: '', requiredConfigs: '', requiredModels: '', requiredModules: '', requiredSecrets: '', resources: '', runtime: '', scaleMax: '', scaleMin: '', targetFunction: '', targetSchema: '', taskIdentifier: '', timeoutSeconds: '', updatedByPrincipal: '', volatile: '' }, select: { id: true } }).execute(); // Update -const updated = await db.functionInvocationAttempt.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); +const updated = await db.functionDefinition.update({ where: { id: '' }, data: { accessChannels: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionInvocationAttempt.delete({ where: { id: '' } }).execute(); +const deleted = await db.functionDefinition.delete({ where: { id: '' } }).execute(); ``` -### `db.functionInvocation` +### `db.functionDeployment` -CRUD operations for FunctionInvocation records. +CRUD operations for FunctionDeployment records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `actorId` | UUID | Yes | -| `apiBindingId` | UUID | Yes | -| `channel` | String | Yes | -| `completedAt` | Datetime | Yes | +| `annotations` | JSON | Yes | +| `concurrency` | Int | Yes | | `createdAt` | Datetime | No | +| `createdByPrincipal` | UUID | Yes | | `databaseId` | UUID | Yes | -| `definitionScope` | String | Yes | -| `durationMs` | Int | Yes | -| `error` | String | Yes | -| `functionDefinitionId` | UUID | Yes | -| `graphExecutionId` | UUID | Yes | +| `errorCount` | Int | Yes | +| `handlerName` | String | Yes | | `id` | UUID | No | -| `jobId` | BigInt | Yes | -| `parentInvocationId` | UUID | Yes | -| `payload` | JSON | Yes | -| `provenance` | JSON | Yes | -| `result` | JSON | Yes | -| `startedAt` | Datetime | Yes | +| `image` | String | Yes | +| `imageVersion` | String | Yes | +| `labels` | JSON | Yes | +| `lastError` | String | Yes | +| `lastErrorAt` | Datetime | Yes | +| `namespaceId` | UUID | Yes | +| `realm` | String | Yes | +| `resources` | JSON | Yes | +| `revision` | Int | Yes | +| `scaleMax` | Int | Yes | +| `scaleMin` | Int | Yes | +| `serviceName` | String | Yes | +| `serviceUrl` | String | Yes | | `status` | String | Yes | -| `taskIdentifier` | String | Yes | +| `timeoutSeconds` | Int | Yes | +| `updatedAt` | Datetime | No | +| `updatedByPrincipal` | UUID | Yes | **Operations:** ```typescript -// List all functionInvocation records -const items = await db.functionInvocation.findMany({ select: { actorId: true, apiBindingId: true, channel: true, completedAt: true, createdAt: true, databaseId: true, definitionScope: true, durationMs: true, error: true, functionDefinitionId: true, graphExecutionId: true, id: true, jobId: true, parentInvocationId: true, payload: true, provenance: true, result: true, startedAt: true, status: true, taskIdentifier: true } }).execute(); +// List all functionDeployment records +const items = await db.functionDeployment.findMany({ select: { annotations: true, concurrency: true, createdAt: true, createdByPrincipal: 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, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.functionInvocation.findOne({ id: '', select: { actorId: true, apiBindingId: true, channel: true, completedAt: true, createdAt: true, databaseId: true, definitionScope: true, durationMs: true, error: true, functionDefinitionId: true, graphExecutionId: true, id: true, jobId: true, parentInvocationId: true, payload: true, provenance: true, result: true, startedAt: true, status: true, taskIdentifier: true } }).execute(); +const item = await db.functionDeployment.findOne({ id: '', select: { annotations: true, concurrency: true, createdAt: true, createdByPrincipal: 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, updatedByPrincipal: true } }).execute(); // Create -const created = await db.functionInvocation.create({ data: { actorId: '', apiBindingId: '', channel: '', completedAt: '', databaseId: '', definitionScope: '', durationMs: '', error: '', functionDefinitionId: '', graphExecutionId: '', jobId: '', parentInvocationId: '', payload: '', provenance: '', result: '', startedAt: '', status: '', taskIdentifier: '' }, select: { id: true } }).execute(); +const created = await db.functionDeployment.create({ data: { annotations: '', concurrency: '', createdByPrincipal: '', databaseId: '', errorCount: '', handlerName: '', image: '', imageVersion: '', labels: '', lastError: '', lastErrorAt: '', namespaceId: '', realm: '', resources: '', revision: '', scaleMax: '', scaleMin: '', serviceName: '', serviceUrl: '', status: '', timeoutSeconds: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update -const updated = await db.functionInvocation.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); +const updated = await db.functionDeployment.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionInvocation.delete({ where: { id: '' } }).execute(); +const deleted = await db.functionDeployment.delete({ where: { id: '' } }).execute(); ``` -### `db.getAllTreeNodesRecord` +### `db.functionDeploymentEvent` -CRUD operations for GetAllTreeNodesRecord records. +CRUD operations for FunctionDeploymentEvent records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `data` | JSON | Yes | -| `path` | String | Yes | +| `actorId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `databaseId` | UUID | Yes | +| `deploymentId` | UUID | Yes | +| `eventType` | String | Yes | +| `id` | UUID | No | +| `message` | String | Yes | +| `metadata` | JSON | Yes | **Operations:** ```typescript -// List all getAllTreeNodesRecord records -const items = await db.getAllTreeNodesRecord.findMany({ select: { data: true, path: true } }).execute(); +// List all functionDeploymentEvent records +const items = await db.functionDeploymentEvent.findMany({ select: { actorId: true, createdAt: true, databaseId: true, deploymentId: true, eventType: true, id: true, message: true, metadata: true } }).execute(); // Get one by id -const item = await db.getAllTreeNodesRecord.findOne({ id: '', select: { data: true, path: true } }).execute(); +const item = await db.functionDeploymentEvent.findOne({ id: '', select: { actorId: true, createdAt: true, databaseId: true, deploymentId: true, eventType: true, id: true, message: true, metadata: true } }).execute(); // Create -const created = await db.getAllTreeNodesRecord.create({ data: { data: '', path: '' }, select: { id: true } }).execute(); +const created = await db.functionDeploymentEvent.create({ data: { actorId: '', databaseId: '', deploymentId: '', eventType: '', message: '', metadata: '' }, select: { id: true } }).execute(); // Update -const updated = await db.getAllTreeNodesRecord.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); +const updated = await db.functionDeploymentEvent.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.getAllTreeNodesRecord.delete({ where: { id: '' } }).execute(); +const deleted = await db.functionDeploymentEvent.delete({ where: { id: '' } }).execute(); ``` -### `db.infraCommit` +### `db.functionExecutionLog` -CRUD operations for InfraCommit records. +CRUD operations for FunctionExecutionLog records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `authorId` | UUID | Yes | -| `committerId` | UUID | Yes | +| `actorId` | UUID | Yes | +| `createdAt` | Datetime | No | | `databaseId` | UUID | Yes | -| `date` | Datetime | Yes | | `id` | UUID | No | +| `invocationId` | UUID | Yes | +| `logLevel` | String | Yes | | `message` | String | Yes | -| `parentIds` | UUID | Yes | -| `storeId` | UUID | Yes | -| `treeId` | UUID | Yes | +| `metadata` | JSON | Yes | +| `taskIdentifier` | String | Yes | **Operations:** ```typescript -// List all infraCommit records -const items = await db.infraCommit.findMany({ select: { authorId: true, committerId: true, databaseId: true, date: true, id: true, message: true, parentIds: true, storeId: true, treeId: true } }).execute(); +// List all functionExecutionLog records +const items = await db.functionExecutionLog.findMany({ select: { actorId: true, createdAt: true, databaseId: true, id: true, invocationId: true, logLevel: true, message: true, metadata: true, taskIdentifier: true } }).execute(); // Get one by id -const item = await db.infraCommit.findOne({ id: '', select: { authorId: true, committerId: true, databaseId: true, date: true, id: true, message: true, parentIds: true, storeId: true, treeId: true } }).execute(); +const item = await db.functionExecutionLog.findOne({ id: '', select: { actorId: true, createdAt: true, databaseId: true, id: true, invocationId: true, logLevel: true, message: true, metadata: true, taskIdentifier: true } }).execute(); // Create -const created = await db.infraCommit.create({ data: { authorId: '', committerId: '', databaseId: '', date: '', message: '', parentIds: '', storeId: '', treeId: '' }, select: { id: true } }).execute(); +const created = await db.functionExecutionLog.create({ data: { actorId: '', databaseId: '', invocationId: '', logLevel: '', message: '', metadata: '', taskIdentifier: '' }, select: { id: true } }).execute(); // Update -const updated = await db.infraCommit.update({ where: { id: '' }, data: { authorId: '' }, select: { id: true } }).execute(); +const updated = await db.functionExecutionLog.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.infraCommit.delete({ where: { id: '' } }).execute(); +const deleted = await db.functionExecutionLog.delete({ where: { id: '' } }).execute(); ``` -### `db.infraGetAllTreeNodesRecord` +### `db.functionGraphCommit` -CRUD operations for InfraGetAllTreeNodesRecord records. +CRUD operations for FunctionGraphCommit records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `data` | JSON | Yes | -| `path` | String | Yes | +| `authorId` | UUID | Yes | +| `committerId` | UUID | Yes | +| `date` | Datetime | Yes | +| `id` | UUID | No | +| `message` | String | Yes | +| `parentIds` | UUID | Yes | +| `scopeId` | UUID | Yes | +| `storeId` | UUID | Yes | +| `treeId` | UUID | Yes | **Operations:** ```typescript -// List all infraGetAllTreeNodesRecord records -const items = await db.infraGetAllTreeNodesRecord.findMany({ select: { data: true, path: true } }).execute(); +// List all functionGraphCommit records +const items = await db.functionGraphCommit.findMany({ select: { authorId: true, committerId: true, date: true, id: true, message: true, parentIds: true, scopeId: true, storeId: true, treeId: true } }).execute(); // Get one by id -const item = await db.infraGetAllTreeNodesRecord.findOne({ id: '', select: { data: true, path: true } }).execute(); +const item = await db.functionGraphCommit.findOne({ id: '', select: { authorId: true, committerId: true, date: true, id: true, message: true, parentIds: true, scopeId: true, storeId: true, treeId: true } }).execute(); // Create -const created = await db.infraGetAllTreeNodesRecord.create({ data: { data: '', path: '' }, select: { id: true } }).execute(); +const created = await db.functionGraphCommit.create({ data: { authorId: '', committerId: '', date: '', message: '', parentIds: '', scopeId: '', storeId: '', treeId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.infraGetAllTreeNodesRecord.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); +const updated = await db.functionGraphCommit.update({ where: { id: '' }, data: { authorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.infraGetAllTreeNodesRecord.delete({ where: { id: '' } }).execute(); +const deleted = await db.functionGraphCommit.delete({ where: { id: '' } }).execute(); ``` -### `db.infraObject` +### `db.functionGraph` -CRUD operations for InfraObject records. +CRUD operations for FunctionGraph records. **Fields:** | Field | Type | Editable | |-------|------|----------| +| `context` | String | Yes | | `createdAt` | Datetime | No | -| `data` | JSON | Yes | -| `databaseId` | UUID | Yes | +| `createdBy` | UUID | Yes | +| `definitionsCommitId` | UUID | Yes | +| `description` | String | Yes | | `id` | UUID | No | -| `kids` | UUID | Yes | -| `ktree` | String | Yes | +| `isValid` | Boolean | Yes | +| `name` | String | Yes | +| `scopeId` | UUID | Yes | +| `storeId` | UUID | Yes | +| `updatedAt` | Datetime | No | +| `validationErrors` | JSON | Yes | **Operations:** ```typescript -// List all infraObject records -const items = await db.infraObject.findMany({ select: { createdAt: true, data: true, databaseId: true, id: true, kids: true, ktree: true } }).execute(); +// List all functionGraph records +const items = await db.functionGraph.findMany({ select: { context: true, createdAt: true, createdBy: true, definitionsCommitId: true, description: true, id: true, isValid: true, name: true, scopeId: true, storeId: true, updatedAt: true, validationErrors: true } }).execute(); // Get one by id -const item = await db.infraObject.findOne({ id: '', select: { createdAt: true, data: true, databaseId: true, id: true, kids: true, ktree: true } }).execute(); +const item = await db.functionGraph.findOne({ id: '', select: { context: true, createdAt: true, createdBy: true, definitionsCommitId: true, description: true, id: true, isValid: true, name: true, scopeId: true, storeId: true, updatedAt: true, validationErrors: true } }).execute(); // Create -const created = await db.infraObject.create({ data: { data: '', databaseId: '', kids: '', ktree: '' }, select: { id: true } }).execute(); +const created = await db.functionGraph.create({ data: { context: '', createdBy: '', definitionsCommitId: '', description: '', isValid: '', name: '', scopeId: '', storeId: '', validationErrors: '' }, select: { id: true } }).execute(); // Update -const updated = await db.infraObject.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); +const updated = await db.functionGraph.update({ where: { id: '' }, data: { context: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.infraObject.delete({ where: { id: '' } }).execute(); +const deleted = await db.functionGraph.delete({ where: { id: '' } }).execute(); ``` -### `db.infraRef` +### `db.functionGraphExecution` -CRUD operations for InfraRef records. +CRUD operations for FunctionGraphExecution records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `commitId` | UUID | Yes | -| `databaseId` | UUID | Yes | +| `actorId` | UUID | Yes | +| `completedAt` | Datetime | Yes | +| `currentWave` | Int | Yes | +| `definitionsCommitId` | UUID | Yes | +| `entityId` | UUID | Yes | +| `entityType` | String | Yes | +| `errorCode` | String | Yes | +| `errorMessage` | String | Yes | +| `executionPlan` | JSON | Yes | +| `graphId` | UUID | Yes | | `id` | UUID | No | -| `name` | String | Yes | -| `storeId` | UUID | Yes | +| `inputPayload` | JSON | Yes | +| `invocationCreatedAt` | Datetime | Yes | +| `invocationId` | UUID | Yes | +| `lastProgressAt` | Datetime | Yes | +| `maxPendingJobs` | Int | Yes | +| `maxTicks` | Int | Yes | +| `nodeOutputs` | JSON | Yes | +| `organizationId` | UUID | Yes | +| `outputNames` | String | Yes | +| `outputNode` | String | Yes | +| `outputPayload` | JSON | Yes | +| `outputPort` | String | Yes | +| `parentExecutionId` | UUID | Yes | +| `parentInvocationId` | UUID | Yes | +| `parentNodeName` | String | Yes | +| `principalId` | UUID | Yes | +| `scopeId` | UUID | Yes | +| `startedAt` | Datetime | Yes | +| `status` | String | Yes | +| `tickCount` | Int | Yes | +| `timeoutAt` | Datetime | Yes | **Operations:** ```typescript -// List all infraRef records -const items = await db.infraRef.findMany({ select: { commitId: true, databaseId: true, id: true, name: true, storeId: true } }).execute(); +// List all functionGraphExecution records +const items = await db.functionGraphExecution.findMany({ select: { actorId: true, completedAt: true, currentWave: true, definitionsCommitId: true, entityId: true, entityType: true, errorCode: true, errorMessage: true, executionPlan: true, graphId: true, id: true, inputPayload: true, invocationCreatedAt: true, invocationId: true, lastProgressAt: true, maxPendingJobs: true, maxTicks: true, nodeOutputs: true, organizationId: true, outputNames: true, outputNode: true, outputPayload: true, outputPort: true, parentExecutionId: true, parentInvocationId: true, parentNodeName: true, principalId: true, scopeId: true, startedAt: true, status: true, tickCount: true, timeoutAt: true } }).execute(); // Get one by id -const item = await db.infraRef.findOne({ id: '', select: { commitId: true, databaseId: true, id: true, name: true, storeId: true } }).execute(); +const item = await db.functionGraphExecution.findOne({ id: '', select: { actorId: true, completedAt: true, currentWave: true, definitionsCommitId: true, entityId: true, entityType: true, errorCode: true, errorMessage: true, executionPlan: true, graphId: true, id: true, inputPayload: true, invocationCreatedAt: true, invocationId: true, lastProgressAt: true, maxPendingJobs: true, maxTicks: true, nodeOutputs: true, organizationId: true, outputNames: true, outputNode: true, outputPayload: true, outputPort: true, parentExecutionId: true, parentInvocationId: true, parentNodeName: true, principalId: true, scopeId: true, startedAt: true, status: true, tickCount: true, timeoutAt: true } }).execute(); // Create -const created = await db.infraRef.create({ data: { commitId: '', databaseId: '', name: '', storeId: '' }, select: { id: true } }).execute(); +const created = await db.functionGraphExecution.create({ data: { actorId: '', completedAt: '', currentWave: '', definitionsCommitId: '', entityId: '', entityType: '', errorCode: '', errorMessage: '', executionPlan: '', graphId: '', inputPayload: '', invocationCreatedAt: '', invocationId: '', lastProgressAt: '', maxPendingJobs: '', maxTicks: '', nodeOutputs: '', organizationId: '', outputNames: '', outputNode: '', outputPayload: '', outputPort: '', parentExecutionId: '', parentInvocationId: '', parentNodeName: '', principalId: '', scopeId: '', startedAt: '', status: '', tickCount: '', timeoutAt: '' }, select: { id: true } }).execute(); // Update -const updated = await db.infraRef.update({ where: { id: '' }, data: { commitId: '' }, select: { id: true } }).execute(); +const updated = await db.functionGraphExecution.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.infraRef.delete({ where: { id: '' } }).execute(); +const deleted = await db.functionGraphExecution.delete({ where: { id: '' } }).execute(); ``` -### `db.infraStore` +### `db.functionGraphExecutionNodeState` -CRUD operations for InfraStore records. +CRUD operations for FunctionGraphExecutionNodeState records. **Fields:** | Field | Type | Editable | |-------|------|----------| +| `callbackInputs` | JSON | Yes | +| `callbackMeta` | JSON | Yes | +| `callbackTokenHash` | String | Yes | +| `completedAt` | Datetime | Yes | | `createdAt` | Datetime | No | -| `databaseId` | UUID | Yes | -| `hash` | UUID | Yes | +| `errorCode` | String | Yes | +| `errorMessage` | String | Yes | +| `executionId` | UUID | Yes | +| `expiryDefaultOutput` | JSON | Yes | +| `expiryEscalatedAt` | Datetime | Yes | +| `expiryPolicy` | String | Yes | | `id` | UUID | No | -| `name` | String | Yes | +| `nodeName` | String | Yes | +| `nodePath` | String | Yes | +| `outputId` | UUID | Yes | +| `scopeId` | UUID | Yes | +| `startedAt` | Datetime | Yes | +| `status` | String | Yes | +| `waitingDeadlineAt` | Datetime | Yes | +| `waitingOn` | String | Yes | +| `waitingSince` | Datetime | Yes | **Operations:** ```typescript -// List all infraStore records -const items = await db.infraStore.findMany({ select: { createdAt: true, databaseId: true, hash: true, id: true, name: true } }).execute(); +// List all functionGraphExecutionNodeState records +const items = await db.functionGraphExecutionNodeState.findMany({ select: { callbackInputs: true, callbackMeta: true, callbackTokenHash: true, completedAt: true, createdAt: true, errorCode: true, errorMessage: true, executionId: true, expiryDefaultOutput: true, expiryEscalatedAt: true, expiryPolicy: true, id: true, nodeName: true, nodePath: true, outputId: true, scopeId: true, startedAt: true, status: true, waitingDeadlineAt: true, waitingOn: true, waitingSince: true } }).execute(); // Get one by id -const item = await db.infraStore.findOne({ id: '', select: { createdAt: true, databaseId: true, hash: true, id: true, name: true } }).execute(); +const item = await db.functionGraphExecutionNodeState.findOne({ id: '', select: { callbackInputs: true, callbackMeta: true, callbackTokenHash: true, completedAt: true, createdAt: true, errorCode: true, errorMessage: true, executionId: true, expiryDefaultOutput: true, expiryEscalatedAt: true, expiryPolicy: true, id: true, nodeName: true, nodePath: true, outputId: true, scopeId: true, startedAt: true, status: true, waitingDeadlineAt: true, waitingOn: true, waitingSince: true } }).execute(); // Create -const created = await db.infraStore.create({ data: { databaseId: '', hash: '', name: '' }, select: { id: true } }).execute(); +const created = await db.functionGraphExecutionNodeState.create({ data: { callbackInputs: '', callbackMeta: '', callbackTokenHash: '', completedAt: '', errorCode: '', errorMessage: '', executionId: '', expiryDefaultOutput: '', expiryEscalatedAt: '', expiryPolicy: '', nodeName: '', nodePath: '', outputId: '', scopeId: '', startedAt: '', status: '', waitingDeadlineAt: '', waitingOn: '', waitingSince: '' }, select: { id: true } }).execute(); // Update -const updated = await db.infraStore.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.functionGraphExecutionNodeState.update({ where: { id: '' }, data: { callbackInputs: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.infraStore.delete({ where: { id: '' } }).execute(); +const deleted = await db.functionGraphExecutionNodeState.delete({ where: { id: '' } }).execute(); ``` -### `db.integrationProvider` +### `db.functionGraphExecutionOutput` -CRUD operations for IntegrationProvider records. +CRUD operations for FunctionGraphExecutionOutput records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `brand` | JSON | Yes | -| `category` | String | Yes | | `createdAt` | Datetime | No | -| `description` | String | Yes | -| `icon` | String | Yes | +| `data` | JSON | Yes | +| `hash` | Base64EncodedBinary | Yes | | `id` | UUID | No | -| `logo` | ConstructiveInternalTypeImage | Yes | -| `name` | String | Yes | -| `requiredConfigs` | ResourceRequirement | Yes | -| `requiredSecrets` | ResourceRequirement | Yes | -| `slug` | String | Yes | -| `updatedAt` | Datetime | No | +| `scopeId` | UUID | Yes | **Operations:** ```typescript -// List all integrationProvider records -const items = await db.integrationProvider.findMany({ select: { brand: true, category: true, createdAt: true, description: true, icon: true, id: true, logo: true, name: true, requiredConfigs: true, requiredSecrets: true, slug: true, updatedAt: true } }).execute(); +// List all functionGraphExecutionOutput records +const items = await db.functionGraphExecutionOutput.findMany({ select: { createdAt: true, data: true, hash: true, id: true, scopeId: true } }).execute(); // Get one by id -const item = await db.integrationProvider.findOne({ id: '', select: { brand: true, category: true, createdAt: true, description: true, icon: true, id: true, logo: true, name: true, requiredConfigs: true, requiredSecrets: true, slug: true, updatedAt: true } }).execute(); +const item = await db.functionGraphExecutionOutput.findOne({ id: '', select: { createdAt: true, data: true, hash: true, id: true, scopeId: true } }).execute(); // Create -const created = await db.integrationProvider.create({ data: { brand: '', category: '', description: '', icon: '', logo: '', name: '', requiredConfigs: '', requiredSecrets: '', slug: '' }, select: { id: true } }).execute(); +const created = await db.functionGraphExecutionOutput.create({ data: { data: '', hash: '', scopeId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.integrationProvider.update({ where: { id: '' }, data: { brand: '' }, select: { id: true } }).execute(); +const updated = await db.functionGraphExecutionOutput.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.integrationProvider.delete({ where: { id: '' } }).execute(); +const deleted = await db.functionGraphExecutionOutput.delete({ where: { id: '' } }).execute(); ``` -### `db.namespace` +### `db.functionGraphObject` -CRUD operations for Namespace records. +CRUD operations for FunctionGraphObject records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `annotations` | JSON | Yes | | `createdAt` | Datetime | No | -| `databaseId` | UUID | Yes | -| `description` | String | Yes | +| `data` | JSON | Yes | | `id` | UUID | No | -| `isActive` | Boolean | Yes | -| `isManaged` | Boolean | Yes | -| `labels` | JSON | Yes | -| `lastError` | String | Yes | -| `name` | String | Yes | -| `namespaceName` | String | Yes | -| `status` | String | Yes | -| `updatedAt` | Datetime | No | +| `kids` | UUID | Yes | +| `ktree` | String | Yes | +| `scopeId` | UUID | Yes | **Operations:** ```typescript -// List all namespace records -const items = await db.namespace.findMany({ select: { annotations: true, createdAt: true, databaseId: true, description: true, id: true, isActive: true, isManaged: true, labels: true, lastError: true, name: true, namespaceName: true, status: true, updatedAt: true } }).execute(); +// List all functionGraphObject records +const items = await db.functionGraphObject.findMany({ select: { createdAt: true, data: true, id: true, kids: true, ktree: true, scopeId: true } }).execute(); // Get one by id -const item = await db.namespace.findOne({ id: '', select: { annotations: true, createdAt: true, databaseId: true, description: true, id: true, isActive: true, isManaged: true, labels: true, lastError: true, name: true, namespaceName: true, status: true, updatedAt: true } }).execute(); +const item = await db.functionGraphObject.findOne({ id: '', select: { createdAt: true, data: true, id: true, kids: true, ktree: true, scopeId: true } }).execute(); // Create -const created = await db.namespace.create({ data: { annotations: '', databaseId: '', description: '', isActive: '', isManaged: '', labels: '', lastError: '', name: '', namespaceName: '', status: '' }, select: { id: true } }).execute(); +const created = await db.functionGraphObject.create({ data: { data: '', kids: '', ktree: '', scopeId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.namespace.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); +const updated = await db.functionGraphObject.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.namespace.delete({ where: { id: '' } }).execute(); +const deleted = await db.functionGraphObject.delete({ where: { id: '' } }).execute(); ``` -### `db.namespaceEvent` +### `db.functionGraphRef` -CRUD operations for NamespaceEvent records. +CRUD operations for FunctionGraphRef records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `actorId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `databaseId` | UUID | Yes | -| `eventType` | String | Yes | +| `commitId` | UUID | Yes | | `id` | UUID | No | -| `message` | String | Yes | -| `metadata` | JSON | Yes | -| `namespaceId` | UUID | Yes | +| `name` | String | Yes | +| `scopeId` | UUID | Yes | +| `storeId` | UUID | Yes | **Operations:** ```typescript -// List all namespaceEvent records -const items = await db.namespaceEvent.findMany({ select: { actorId: true, createdAt: true, databaseId: true, eventType: true, id: true, message: true, metadata: true, namespaceId: true } }).execute(); +// List all functionGraphRef records +const items = await db.functionGraphRef.findMany({ select: { commitId: true, id: true, name: true, scopeId: true, storeId: true } }).execute(); // Get one by id -const item = await db.namespaceEvent.findOne({ id: '', select: { actorId: true, createdAt: true, databaseId: true, eventType: true, id: true, message: true, metadata: true, namespaceId: true } }).execute(); +const item = await db.functionGraphRef.findOne({ id: '', select: { commitId: true, id: true, name: true, scopeId: true, storeId: true } }).execute(); // Create -const created = await db.namespaceEvent.create({ data: { actorId: '', databaseId: '', eventType: '', message: '', metadata: '', namespaceId: '' }, select: { id: true } }).execute(); +const created = await db.functionGraphRef.create({ data: { commitId: '', name: '', scopeId: '', storeId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.namespaceEvent.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); +const updated = await db.functionGraphRef.update({ where: { id: '' }, data: { commitId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.namespaceEvent.delete({ where: { id: '' } }).execute(); +const deleted = await db.functionGraphRef.delete({ where: { id: '' } }).execute(); ``` -### `db.platformFunctionApiBinding` +### `db.functionGraphStore` -CRUD operations for PlatformFunctionApiBinding records. +CRUD operations for FunctionGraphStore records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `alias` | String | Yes | -| `apiId` | UUID | Yes | -| `config` | JSON | Yes | | `createdAt` | Datetime | No | -| `functionDefinitionId` | UUID | Yes | +| `hash` | UUID | Yes | | `id` | UUID | No | -| `updatedAt` | Datetime | No | +| `name` | String | Yes | +| `scopeId` | UUID | Yes | **Operations:** ```typescript -// List all platformFunctionApiBinding records -const items = await db.platformFunctionApiBinding.findMany({ select: { alias: true, apiId: true, config: true, createdAt: true, functionDefinitionId: true, id: true, updatedAt: true } }).execute(); +// List all functionGraphStore records +const items = await db.functionGraphStore.findMany({ select: { createdAt: true, hash: true, id: true, name: true, scopeId: true } }).execute(); // Get one by id -const item = await db.platformFunctionApiBinding.findOne({ id: '', select: { alias: true, apiId: true, config: true, createdAt: true, functionDefinitionId: true, id: true, updatedAt: true } }).execute(); +const item = await db.functionGraphStore.findOne({ id: '', select: { createdAt: true, hash: true, id: true, name: true, scopeId: true } }).execute(); // Create -const created = await db.platformFunctionApiBinding.create({ data: { alias: '', apiId: '', config: '', functionDefinitionId: '' }, select: { id: true } }).execute(); +const created = await db.functionGraphStore.create({ data: { hash: '', name: '', scopeId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformFunctionApiBinding.update({ where: { id: '' }, data: { alias: '' }, select: { id: true } }).execute(); +const updated = await db.functionGraphStore.update({ where: { id: '' }, data: { hash: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformFunctionApiBinding.delete({ where: { id: '' } }).execute(); +const deleted = await db.functionGraphStore.delete({ where: { id: '' } }).execute(); ``` -### `db.platformFunctionCapabilityBinding` +### `db.functionInvocationAttempt` -CRUD operations for PlatformFunctionCapabilityBinding records. +CRUD operations for FunctionInvocationAttempt records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `bucketId` | UUID | Yes | +| `actorId` | UUID | Yes | +| `attempt` | Int | Yes | | `createdAt` | Datetime | No | -| `functionId` | UUID | Yes | -| `graphId` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `durationMs` | Int | Yes | +| `error` | String | Yes | +| `errorDetail` | JSON | Yes | | `id` | UUID | No | -| `key` | String | Yes | -| `lifecycle` | String | Yes | -| `metadata` | JSON | Yes | -| `updatedAt` | Datetime | No | +| `invocationCreatedAt` | Datetime | Yes | +| `invocationId` | UUID | Yes | +| `startedAt` | Datetime | Yes | +| `success` | Boolean | Yes | +| `taskIdentifier` | String | Yes | **Operations:** ```typescript -// List all platformFunctionCapabilityBinding records -const items = await db.platformFunctionCapabilityBinding.findMany({ select: { bucketId: true, createdAt: true, functionId: true, graphId: true, id: true, key: true, lifecycle: true, metadata: true, updatedAt: true } }).execute(); +// List all functionInvocationAttempt records +const items = await db.functionInvocationAttempt.findMany({ select: { actorId: true, attempt: true, createdAt: true, databaseId: true, durationMs: true, error: true, errorDetail: true, id: true, invocationCreatedAt: true, invocationId: true, startedAt: true, success: true, taskIdentifier: true } }).execute(); // Get one by id -const item = await db.platformFunctionCapabilityBinding.findOne({ id: '', select: { bucketId: true, createdAt: true, functionId: true, graphId: true, id: true, key: true, lifecycle: true, metadata: true, updatedAt: true } }).execute(); +const item = await db.functionInvocationAttempt.findOne({ id: '', select: { actorId: true, attempt: true, createdAt: true, databaseId: true, durationMs: true, error: true, errorDetail: true, id: true, invocationCreatedAt: true, invocationId: true, startedAt: true, success: true, taskIdentifier: true } }).execute(); // Create -const created = await db.platformFunctionCapabilityBinding.create({ data: { bucketId: '', functionId: '', graphId: '', key: '', lifecycle: '', metadata: '' }, select: { id: true } }).execute(); +const created = await db.functionInvocationAttempt.create({ data: { actorId: '', attempt: '', databaseId: '', durationMs: '', error: '', errorDetail: '', invocationCreatedAt: '', invocationId: '', startedAt: '', success: '', taskIdentifier: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformFunctionCapabilityBinding.update({ where: { id: '' }, data: { bucketId: '' }, select: { id: true } }).execute(); +const updated = await db.functionInvocationAttempt.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformFunctionCapabilityBinding.delete({ where: { id: '' } }).execute(); +const deleted = await db.functionInvocationAttempt.delete({ where: { id: '' } }).execute(); ``` -### `db.platformFunctionDefinition` +### `db.functionInvocation` -CRUD operations for PlatformFunctionDefinition records. +CRUD operations for FunctionInvocation records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `accessChannels` | String | Yes | -| `billable` | Boolean | Yes | -| `category` | String | Yes | -| `concurrency` | Int | Yes | -| `cpuLimitMillicores` | BigInt | Yes | -| `cpuRequestMillicores` | BigInt | Yes | +| `actorId` | UUID | Yes | +| `apiBindingId` | UUID | Yes | +| `channel` | String | Yes | +| `completedAt` | Datetime | Yes | | `createdAt` | Datetime | No | -| `description` | String | Yes | -| `fnCategory` | String | Yes | -| `functionColumns` | JSON | Yes | -| `graphId` | UUID | Yes | -| `icon` | String | Yes | +| `createdByPrincipal` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `definitionScope` | String | Yes | +| `durationMs` | Int | Yes | +| `entityId` | UUID | Yes | +| `entityType` | String | Yes | +| `error` | String | Yes | +| `functionDefinitionId` | UUID | Yes | +| `graphExecutionId` | UUID | Yes | | `id` | UUID | No | -| `image` | String | Yes | -| `inputs` | JSON | Yes | -| `integrations` | String | Yes | -| `isPublished` | Boolean | Yes | -| `maxAttempts` | Int | Yes | -| `memoryLimitBytes` | BigInt | Yes | -| `memoryRequestBytes` | BigInt | Yes | -| `moduleTable` | String | Yes | -| `name` | String | Yes | -| `outputs` | JSON | Yes | -| `payloadArgs` | JSON | Yes | -| `priority` | Int | Yes | -| `props` | JSON | Yes | -| `protected` | Boolean | Yes | -| `publishedAt` | Datetime | Yes | -| `queueName` | String | Yes | -| `requiredBuckets` | String | Yes | -| `requiredConfigs` | ResourceRequirement | Yes | -| `requiredModels` | String | Yes | -| `requiredModules` | String | Yes | -| `requiredSecrets` | ResourceRequirement | Yes | -| `resources` | JSON | Yes | -| `runtime` | String | Yes | -| `scaleMax` | Int | Yes | -| `scaleMin` | Int | Yes | -| `system` | Boolean | Yes | -| `targetFunction` | String | Yes | -| `targetSchema` | String | Yes | +| `jobId` | BigInt | Yes | +| `organizationId` | UUID | Yes | +| `parentInvocationId` | UUID | Yes | +| `payload` | JSON | Yes | +| `principalId` | UUID | Yes | +| `provenance` | JSON | Yes | +| `result` | JSON | Yes | +| `startedAt` | Datetime | Yes | +| `status` | String | Yes | | `taskIdentifier` | String | Yes | -| `timeoutSeconds` | Int | Yes | -| `updatedAt` | Datetime | No | -| `volatile` | Boolean | Yes | **Operations:** ```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, 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(); +// List all functionInvocation records +const items = await db.functionInvocation.findMany({ select: { actorId: true, apiBindingId: true, channel: true, completedAt: true, createdAt: true, createdByPrincipal: true, databaseId: true, definitionScope: true, durationMs: true, entityId: true, entityType: true, error: true, functionDefinitionId: true, graphExecutionId: true, id: true, jobId: true, organizationId: true, parentInvocationId: true, payload: true, principalId: true, provenance: true, result: true, startedAt: true, status: true, taskIdentifier: 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, 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(); +const item = await db.functionInvocation.findOne({ id: '', select: { actorId: true, apiBindingId: true, channel: true, completedAt: true, createdAt: true, createdByPrincipal: true, databaseId: true, definitionScope: true, durationMs: true, entityId: true, entityType: true, error: true, functionDefinitionId: true, graphExecutionId: true, id: true, jobId: true, organizationId: true, parentInvocationId: true, payload: true, principalId: true, provenance: true, result: true, startedAt: true, status: true, taskIdentifier: 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: '', requiredModules: '', requiredSecrets: '', resources: '', runtime: '', scaleMax: '', scaleMin: '', system: '', targetFunction: '', targetSchema: '', taskIdentifier: '', timeoutSeconds: '', volatile: '' }, select: { id: true } }).execute(); +const created = await db.functionInvocation.create({ data: { actorId: '', apiBindingId: '', channel: '', completedAt: '', createdByPrincipal: '', databaseId: '', definitionScope: '', durationMs: '', entityId: '', entityType: '', error: '', functionDefinitionId: '', graphExecutionId: '', jobId: '', organizationId: '', parentInvocationId: '', payload: '', principalId: '', provenance: '', result: '', startedAt: '', status: '', taskIdentifier: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformFunctionDefinition.update({ where: { id: '' }, data: { accessChannels: '' }, select: { id: true } }).execute(); +const updated = await db.functionInvocation.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformFunctionDefinition.delete({ where: { id: '' } }).execute(); +const deleted = await db.functionInvocation.delete({ where: { id: '' } }).execute(); ``` -### `db.platformFunctionDeployment` +### `db.getAllTreeNodesRecord` -CRUD operations for PlatformFunctionDeployment records. +CRUD operations for GetAllTreeNodesRecord records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `annotations` | JSON | Yes | -| `concurrency` | Int | Yes | -| `createdAt` | Datetime | No | -| `errorCount` | Int | Yes | -| `handlerName` | String | Yes | -| `id` | UUID | No | -| `image` | String | Yes | -| `imageVersion` | String | Yes | -| `labels` | JSON | Yes | -| `lastError` | String | Yes | -| `lastErrorAt` | Datetime | Yes | -| `namespaceId` | UUID | Yes | -| `realm` | String | Yes | -| `resources` | JSON | Yes | -| `revision` | Int | Yes | -| `scaleMax` | Int | Yes | -| `scaleMin` | Int | Yes | -| `serviceName` | String | Yes | -| `serviceUrl` | String | Yes | -| `status` | String | Yes | -| `timeoutSeconds` | Int | Yes | -| `updatedAt` | Datetime | No | +| `data` | JSON | Yes | +| `path` | String | Yes | **Operations:** ```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, realm: true, resources: true, revision: true, scaleMax: true, scaleMin: true, serviceName: true, serviceUrl: true, status: true, timeoutSeconds: true, updatedAt: true } }).execute(); +// List all getAllTreeNodesRecord records +const items = await db.getAllTreeNodesRecord.findMany({ select: { data: true, path: 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, realm: true, resources: true, revision: true, scaleMax: true, scaleMin: true, serviceName: true, serviceUrl: true, status: true, timeoutSeconds: true, updatedAt: true } }).execute(); +const item = await db.getAllTreeNodesRecord.findOne({ id: '', select: { data: true, path: true } }).execute(); // Create -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(); +const created = await db.getAllTreeNodesRecord.create({ data: { data: '', path: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformFunctionDeployment.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); +const updated = await db.getAllTreeNodesRecord.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformFunctionDeployment.delete({ where: { id: '' } }).execute(); +const deleted = await db.getAllTreeNodesRecord.delete({ where: { id: '' } }).execute(); ``` -### `db.platformFunctionDeploymentEvent` +### `db.image` -CRUD operations for PlatformFunctionDeploymentEvent records. +CRUD operations for Image records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `actorId` | UUID | Yes | | `createdAt` | Datetime | No | -| `deploymentId` | UUID | Yes | -| `eventType` | String | Yes | +| `createdByPrincipal` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `description` | String | Yes | +| `digest` | String | Yes | +| `expiresAt` | Datetime | Yes | | `id` | UUID | No | -| `message` | String | Yes | +| `isPublished` | Boolean | Yes | +| `labels` | JSON | Yes | | `metadata` | JSON | Yes | +| `name` | String | Yes | +| `ownerId` | UUID | Yes | +| `platformOnly` | Boolean | Yes | +| `registryHost` | String | Yes | +| `repository` | String | Yes | +| `runtime` | String | Yes | +| `tag` | String | Yes | +| `updatedAt` | Datetime | No | +| `updatedByPrincipal` | UUID | Yes | **Operations:** ```typescript -// List all platformFunctionDeploymentEvent records -const items = await db.platformFunctionDeploymentEvent.findMany({ select: { actorId: true, createdAt: true, deploymentId: true, eventType: true, id: true, message: true, metadata: true } }).execute(); +// List all image records +const items = await db.image.findMany({ select: { createdAt: true, createdByPrincipal: true, databaseId: true, description: true, digest: true, expiresAt: true, id: true, isPublished: true, labels: true, metadata: true, name: true, ownerId: true, platformOnly: true, registryHost: true, repository: true, runtime: true, tag: true, updatedAt: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.platformFunctionDeploymentEvent.findOne({ id: '', select: { actorId: true, createdAt: true, deploymentId: true, eventType: true, id: true, message: true, metadata: true } }).execute(); +const item = await db.image.findOne({ id: '', select: { createdAt: true, createdByPrincipal: true, databaseId: true, description: true, digest: true, expiresAt: true, id: true, isPublished: true, labels: true, metadata: true, name: true, ownerId: true, platformOnly: true, registryHost: true, repository: true, runtime: true, tag: true, updatedAt: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.platformFunctionDeploymentEvent.create({ data: { actorId: '', deploymentId: '', eventType: '', message: '', metadata: '' }, select: { id: true } }).execute(); +const created = await db.image.create({ data: { createdByPrincipal: '', databaseId: '', description: '', digest: '', expiresAt: '', isPublished: '', labels: '', metadata: '', name: '', ownerId: '', platformOnly: '', registryHost: '', repository: '', runtime: '', tag: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformFunctionDeploymentEvent.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); +const updated = await db.image.update({ where: { id: '' }, data: { createdByPrincipal: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformFunctionDeploymentEvent.delete({ where: { id: '' } }).execute(); +const deleted = await db.image.delete({ where: { id: '' } }).execute(); ``` -### `db.platformFunctionExecutionLog` +### `db.imageGrant` -CRUD operations for PlatformFunctionExecutionLog records. +CRUD operations for ImageGrant records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `actorId` | UUID | Yes | +| `actions` | String | Yes | | `createdAt` | Datetime | No | +| `createdByPrincipal` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `expiresAt` | Datetime | Yes | +| `grantedBy` | UUID | Yes | +| `granteeKey` | UUID | Yes | +| `granteeScope` | String | Yes | | `id` | UUID | No | -| `invocationId` | UUID | Yes | -| `logLevel` | String | Yes | -| `message` | String | Yes | -| `metadata` | JSON | Yes | -| `taskIdentifier` | String | Yes | +| `imageId` | UUID | Yes | +| `updatedAt` | Datetime | No | +| `updatedByPrincipal` | UUID | Yes | **Operations:** ```typescript -// List all platformFunctionExecutionLog records -const items = await db.platformFunctionExecutionLog.findMany({ select: { actorId: true, createdAt: true, id: true, invocationId: true, logLevel: true, message: true, metadata: true, taskIdentifier: true } }).execute(); +// List all imageGrant records +const items = await db.imageGrant.findMany({ select: { actions: true, createdAt: true, createdByPrincipal: true, databaseId: true, expiresAt: true, grantedBy: true, granteeKey: true, granteeScope: true, id: true, imageId: true, updatedAt: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.platformFunctionExecutionLog.findOne({ id: '', select: { actorId: true, createdAt: true, id: true, invocationId: true, logLevel: true, message: true, metadata: true, taskIdentifier: true } }).execute(); +const item = await db.imageGrant.findOne({ id: '', select: { actions: true, createdAt: true, createdByPrincipal: true, databaseId: true, expiresAt: true, grantedBy: true, granteeKey: true, granteeScope: true, id: true, imageId: true, updatedAt: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.platformFunctionExecutionLog.create({ data: { actorId: '', invocationId: '', logLevel: '', message: '', metadata: '', taskIdentifier: '' }, select: { id: true } }).execute(); +const created = await db.imageGrant.create({ data: { actions: '', createdByPrincipal: '', databaseId: '', expiresAt: '', grantedBy: '', granteeKey: '', granteeScope: '', imageId: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformFunctionExecutionLog.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); +const updated = await db.imageGrant.update({ where: { id: '' }, data: { actions: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformFunctionExecutionLog.delete({ where: { id: '' } }).execute(); +const deleted = await db.imageGrant.delete({ where: { id: '' } }).execute(); ``` -### `db.platformFunctionInvocationAttempt` +### `db.infraCommit` + +CRUD operations for InfraCommit records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `authorId` | UUID | Yes | +| `committerId` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `date` | Datetime | Yes | +| `id` | UUID | No | +| `message` | String | Yes | +| `parentIds` | UUID | Yes | +| `storeId` | UUID | Yes | +| `treeId` | UUID | Yes | + +**Operations:** + +```typescript +// List all infraCommit records +const items = await db.infraCommit.findMany({ select: { authorId: true, committerId: true, databaseId: true, date: true, id: true, message: true, parentIds: true, storeId: true, treeId: true } }).execute(); + +// Get one by id +const item = await db.infraCommit.findOne({ id: '', select: { authorId: true, committerId: true, databaseId: true, date: true, id: true, message: true, parentIds: true, storeId: true, treeId: true } }).execute(); + +// Create +const created = await db.infraCommit.create({ data: { authorId: '', committerId: '', databaseId: '', date: '', message: '', parentIds: '', storeId: '', treeId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.infraCommit.update({ where: { id: '' }, data: { authorId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.infraCommit.delete({ where: { id: '' } }).execute(); +``` + +### `db.infraGetAllTreeNodesRecord` + +CRUD operations for InfraGetAllTreeNodesRecord records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `data` | JSON | Yes | +| `path` | String | Yes | + +**Operations:** + +```typescript +// List all infraGetAllTreeNodesRecord records +const items = await db.infraGetAllTreeNodesRecord.findMany({ select: { data: true, path: true } }).execute(); + +// Get one by id +const item = await db.infraGetAllTreeNodesRecord.findOne({ id: '', select: { data: true, path: true } }).execute(); + +// Create +const created = await db.infraGetAllTreeNodesRecord.create({ data: { data: '', path: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.infraGetAllTreeNodesRecord.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.infraGetAllTreeNodesRecord.delete({ where: { id: '' } }).execute(); +``` + +### `db.infraObject` + +CRUD operations for InfraObject records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `createdAt` | Datetime | No | +| `data` | JSON | Yes | +| `databaseId` | UUID | Yes | +| `id` | UUID | No | +| `kids` | UUID | Yes | +| `ktree` | String | Yes | + +**Operations:** + +```typescript +// List all infraObject records +const items = await db.infraObject.findMany({ select: { createdAt: true, data: true, databaseId: true, id: true, kids: true, ktree: true } }).execute(); + +// Get one by id +const item = await db.infraObject.findOne({ id: '', select: { createdAt: true, data: true, databaseId: true, id: true, kids: true, ktree: true } }).execute(); + +// Create +const created = await db.infraObject.create({ data: { data: '', databaseId: '', kids: '', ktree: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.infraObject.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.infraObject.delete({ where: { id: '' } }).execute(); +``` + +### `db.infraRef` + +CRUD operations for InfraRef records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `commitId` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `id` | UUID | No | +| `name` | String | Yes | +| `storeId` | UUID | Yes | + +**Operations:** + +```typescript +// List all infraRef records +const items = await db.infraRef.findMany({ select: { commitId: true, databaseId: true, id: true, name: true, storeId: true } }).execute(); + +// Get one by id +const item = await db.infraRef.findOne({ id: '', select: { commitId: true, databaseId: true, id: true, name: true, storeId: true } }).execute(); + +// Create +const created = await db.infraRef.create({ data: { commitId: '', databaseId: '', name: '', storeId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.infraRef.update({ where: { id: '' }, data: { commitId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.infraRef.delete({ where: { id: '' } }).execute(); +``` + +### `db.infraStore` + +CRUD operations for InfraStore records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `createdAt` | Datetime | No | +| `databaseId` | UUID | Yes | +| `hash` | UUID | Yes | +| `id` | UUID | No | +| `name` | String | Yes | + +**Operations:** + +```typescript +// List all infraStore records +const items = await db.infraStore.findMany({ select: { createdAt: true, databaseId: true, hash: true, id: true, name: true } }).execute(); + +// Get one by id +const item = await db.infraStore.findOne({ id: '', select: { createdAt: true, databaseId: true, hash: true, id: true, name: true } }).execute(); + +// Create +const created = await db.infraStore.create({ data: { databaseId: '', hash: '', name: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.infraStore.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.infraStore.delete({ where: { id: '' } }).execute(); +``` + +### `db.integrationProvider` + +CRUD operations for IntegrationProvider records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `brand` | JSON | Yes | +| `category` | String | Yes | +| `createdAt` | Datetime | No | +| `description` | String | Yes | +| `icon` | String | Yes | +| `id` | UUID | No | +| `logo` | ConstructiveInternalTypeImage | Yes | +| `name` | String | Yes | +| `requiredConfigs` | ResourceRequirement | Yes | +| `requiredSecrets` | ResourceRequirement | Yes | +| `slug` | String | Yes | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all integrationProvider records +const items = await db.integrationProvider.findMany({ select: { brand: true, category: true, createdAt: true, description: true, icon: true, id: true, logo: true, name: true, requiredConfigs: true, requiredSecrets: true, slug: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.integrationProvider.findOne({ id: '', select: { brand: true, category: true, createdAt: true, description: true, icon: true, id: true, logo: true, name: true, requiredConfigs: true, requiredSecrets: true, slug: true, updatedAt: true } }).execute(); + +// Create +const created = await db.integrationProvider.create({ data: { brand: '', category: '', description: '', icon: '', logo: '', name: '', requiredConfigs: '', requiredSecrets: '', slug: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.integrationProvider.update({ where: { id: '' }, data: { brand: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.integrationProvider.delete({ where: { id: '' } }).execute(); +``` + +### `db.namespace` + +CRUD operations for Namespace records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `annotations` | JSON | Yes | +| `clusterId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `databaseId` | UUID | Yes | +| `description` | String | Yes | +| `id` | UUID | No | +| `isActive` | Boolean | Yes | +| `isManaged` | Boolean | Yes | +| `labels` | JSON | Yes | +| `lastError` | String | Yes | +| `name` | String | Yes | +| `namespaceName` | String | Yes | +| `status` | String | Yes | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all namespace records +const items = await db.namespace.findMany({ select: { annotations: true, clusterId: true, createdAt: true, databaseId: true, description: true, id: true, isActive: true, isManaged: true, labels: true, lastError: true, name: true, namespaceName: true, status: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.namespace.findOne({ id: '', select: { annotations: true, clusterId: true, createdAt: true, databaseId: true, description: true, id: true, isActive: true, isManaged: true, labels: true, lastError: true, name: true, namespaceName: true, status: true, updatedAt: true } }).execute(); + +// Create +const created = await db.namespace.create({ data: { annotations: '', clusterId: '', databaseId: '', description: '', isActive: '', isManaged: '', labels: '', lastError: '', name: '', namespaceName: '', status: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.namespace.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.namespace.delete({ where: { id: '' } }).execute(); +``` + +### `db.namespaceEvent` + +CRUD operations for NamespaceEvent records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `actorId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `databaseId` | UUID | Yes | +| `eventType` | String | Yes | +| `id` | UUID | No | +| `message` | String | Yes | +| `metadata` | JSON | Yes | +| `namespaceId` | UUID | Yes | + +**Operations:** + +```typescript +// List all namespaceEvent records +const items = await db.namespaceEvent.findMany({ select: { actorId: true, createdAt: true, databaseId: true, eventType: true, id: true, message: true, metadata: true, namespaceId: true } }).execute(); + +// Get one by id +const item = await db.namespaceEvent.findOne({ id: '', select: { actorId: true, createdAt: true, databaseId: true, eventType: true, id: true, message: true, metadata: true, namespaceId: true } }).execute(); + +// Create +const created = await db.namespaceEvent.create({ data: { actorId: '', databaseId: '', eventType: '', message: '', metadata: '', namespaceId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.namespaceEvent.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.namespaceEvent.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformBuild` + +CRUD operations for PlatformBuild records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `actorId` | UUID | Yes | +| `attempt` | Int | Yes | +| `commitSha` | String | Yes | +| `conclusion` | String | Yes | +| `createdAt` | Datetime | No | +| `createdByPrincipal` | UUID | Yes | +| `eventId` | UUID | Yes | +| `finishedAt` | Datetime | Yes | +| `id` | UUID | No | +| `imageRef` | String | Yes | +| `jobId` | BigInt | Yes | +| `logs` | ConstructiveInternalTypeUpload | Yes | +| `matrixKey` | String | Yes | +| `metadata` | JSON | Yes | +| `proposalId` | UUID | Yes | +| `ref` | String | Yes | +| `repositoryId` | UUID | Yes | +| `startedAt` | Datetime | Yes | +| `status` | String | Yes | +| `updatedAt` | Datetime | No | +| `updatedByPrincipal` | UUID | Yes | +| `workflowId` | UUID | Yes | + +**Operations:** + +```typescript +// List all platformBuild records +const items = await db.platformBuild.findMany({ select: { actorId: true, attempt: true, commitSha: true, conclusion: true, createdAt: true, createdByPrincipal: true, eventId: true, finishedAt: true, id: true, imageRef: true, jobId: true, logs: true, matrixKey: true, metadata: true, proposalId: true, ref: true, repositoryId: true, startedAt: true, status: true, updatedAt: true, updatedByPrincipal: true, workflowId: true } }).execute(); + +// Get one by id +const item = await db.platformBuild.findOne({ id: '', select: { actorId: true, attempt: true, commitSha: true, conclusion: true, createdAt: true, createdByPrincipal: true, eventId: true, finishedAt: true, id: true, imageRef: true, jobId: true, logs: true, matrixKey: true, metadata: true, proposalId: true, ref: true, repositoryId: true, startedAt: true, status: true, updatedAt: true, updatedByPrincipal: true, workflowId: true } }).execute(); + +// Create +const created = await db.platformBuild.create({ data: { actorId: '', attempt: '', commitSha: '', conclusion: '', createdByPrincipal: '', eventId: '', finishedAt: '', imageRef: '', jobId: '', logs: '', matrixKey: '', metadata: '', proposalId: '', ref: '', repositoryId: '', startedAt: '', status: '', updatedByPrincipal: '', workflowId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformBuild.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformBuild.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformBuildStep` + +CRUD operations for PlatformBuildStep records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `buildId` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | +| `exitCode` | Int | Yes | +| `finishedAt` | Datetime | Yes | +| `id` | UUID | No | +| `kind` | String | Yes | +| `logBytes` | BigInt | Yes | +| `logOffset` | BigInt | Yes | +| `name` | String | Yes | +| `parentSeq` | Int | Yes | +| `recordedAt` | Datetime | Yes | +| `seq` | Int | Yes | +| `startedAt` | Datetime | Yes | +| `status` | String | Yes | +| `summary` | JSON | Yes | + +**Operations:** + +```typescript +// List all platformBuildStep records +const items = await db.platformBuildStep.findMany({ select: { buildId: true, createdByPrincipal: true, exitCode: true, finishedAt: true, id: true, kind: true, logBytes: true, logOffset: true, name: true, parentSeq: true, recordedAt: true, seq: true, startedAt: true, status: true, summary: true } }).execute(); + +// Get one by id +const item = await db.platformBuildStep.findOne({ id: '', select: { buildId: true, createdByPrincipal: true, exitCode: true, finishedAt: true, id: true, kind: true, logBytes: true, logOffset: true, name: true, parentSeq: true, recordedAt: true, seq: true, startedAt: true, status: true, summary: true } }).execute(); + +// Create +const created = await db.platformBuildStep.create({ data: { buildId: '', createdByPrincipal: '', exitCode: '', finishedAt: '', kind: '', logBytes: '', logOffset: '', name: '', parentSeq: '', recordedAt: '', seq: '', startedAt: '', status: '', summary: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformBuildStep.update({ where: { id: '' }, data: { buildId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformBuildStep.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformBuilderBinding` + +CRUD operations for PlatformBuilderBinding records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `createdAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | +| `id` | UUID | No | +| `installationId` | UUID | Yes | +| `lastError` | String | Yes | +| `metadata` | JSON | Yes | +| `namespaceId` | UUID | Yes | +| `observedHost` | String | Yes | +| `realm` | String | Yes | +| `status` | String | Yes | +| `updatedAt` | Datetime | No | +| `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | + +**Operations:** + +```typescript +// List all platformBuilderBinding records +const items = await db.platformBuilderBinding.findMany({ select: { createdAt: true, createdBy: true, createdByPrincipal: true, id: true, installationId: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Get one by id +const item = await db.platformBuilderBinding.findOne({ id: '', select: { createdAt: true, createdBy: true, createdByPrincipal: true, id: true, installationId: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Create +const created = await db.platformBuilderBinding.create({ data: { createdBy: '', createdByPrincipal: '', installationId: '', lastError: '', metadata: '', namespaceId: '', observedHost: '', realm: '', status: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformBuilderBinding.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformBuilderBinding.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformFunctionApiBinding` + +CRUD operations for PlatformFunctionApiBinding records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `alias` | String | Yes | +| `apiId` | UUID | Yes | +| `config` | JSON | Yes | +| `createdAt` | Datetime | No | +| `functionDefinitionId` | UUID | Yes | +| `id` | UUID | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all platformFunctionApiBinding records +const items = await db.platformFunctionApiBinding.findMany({ select: { alias: true, apiId: true, config: true, createdAt: true, functionDefinitionId: true, id: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.platformFunctionApiBinding.findOne({ id: '', select: { alias: true, apiId: true, config: true, createdAt: true, functionDefinitionId: true, id: true, updatedAt: true } }).execute(); + +// Create +const created = await db.platformFunctionApiBinding.create({ data: { alias: '', apiId: '', config: '', functionDefinitionId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformFunctionApiBinding.update({ where: { id: '' }, data: { alias: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformFunctionApiBinding.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformFunctionCapabilityBinding` + +CRUD operations for PlatformFunctionCapabilityBinding records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `bucketId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `functionId` | UUID | Yes | +| `graphId` | UUID | Yes | +| `id` | UUID | No | +| `key` | String | Yes | +| `lifecycle` | String | Yes | +| `metadata` | JSON | Yes | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all platformFunctionCapabilityBinding records +const items = await db.platformFunctionCapabilityBinding.findMany({ select: { bucketId: true, createdAt: true, functionId: true, graphId: true, id: true, key: true, lifecycle: true, metadata: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.platformFunctionCapabilityBinding.findOne({ id: '', select: { bucketId: true, createdAt: true, functionId: true, graphId: true, id: true, key: true, lifecycle: true, metadata: true, updatedAt: true } }).execute(); + +// Create +const created = await db.platformFunctionCapabilityBinding.create({ data: { bucketId: '', functionId: '', graphId: '', key: '', lifecycle: '', metadata: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformFunctionCapabilityBinding.update({ where: { id: '' }, data: { bucketId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformFunctionCapabilityBinding.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformFunctionDefinition` + +CRUD operations for PlatformFunctionDefinition records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `accessChannels` | String | Yes | +| `anonymousCallable` | Boolean | Yes | +| `billable` | Boolean | Yes | +| `category` | String | Yes | +| `concurrency` | Int | Yes | +| `cpuLimitMillicores` | BigInt | Yes | +| `cpuRequestMillicores` | BigInt | Yes | +| `createdAt` | Datetime | No | +| `createdByPrincipal` | UUID | Yes | +| `description` | String | Yes | +| `fnCategory` | String | Yes | +| `functionColumns` | JSON | Yes | +| `graphId` | UUID | Yes | +| `icon` | String | Yes | +| `id` | UUID | No | +| `image` | String | Yes | +| `inputs` | JSON | Yes | +| `integrations` | String | Yes | +| `isPublished` | Boolean | Yes | +| `maxAttempts` | Int | Yes | +| `memoryLimitBytes` | BigInt | Yes | +| `memoryRequestBytes` | BigInt | Yes | +| `moduleTable` | String | Yes | +| `name` | String | Yes | +| `outputs` | JSON | Yes | +| `payloadArgs` | JSON | Yes | +| `priority` | Int | Yes | +| `props` | JSON | Yes | +| `protected` | Boolean | Yes | +| `publishedAt` | Datetime | Yes | +| `queueName` | String | Yes | +| `requiredBuckets` | String | Yes | +| `requiredCapabilities` | JSON | Yes | +| `requiredConfigs` | ResourceRequirement | Yes | +| `requiredModels` | String | Yes | +| `requiredModules` | String | Yes | +| `requiredSecrets` | ResourceRequirement | Yes | +| `resources` | JSON | Yes | +| `runtime` | String | Yes | +| `scaleMax` | Int | Yes | +| `scaleMin` | Int | Yes | +| `system` | Boolean | Yes | +| `targetFunction` | String | Yes | +| `targetSchema` | String | Yes | +| `taskIdentifier` | String | Yes | +| `timeoutSeconds` | Int | Yes | +| `updatedAt` | Datetime | No | +| `updatedByPrincipal` | UUID | Yes | +| `volatile` | Boolean | Yes | + +**Operations:** + +```typescript +// List all platformFunctionDefinition records +const items = await db.platformFunctionDefinition.findMany({ select: { accessChannels: true, anonymousCallable: true, billable: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdByPrincipal: 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, requiredCapabilities: 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, updatedByPrincipal: true, volatile: true } }).execute(); + +// Get one by id +const item = await db.platformFunctionDefinition.findOne({ id: '', select: { accessChannels: true, anonymousCallable: true, billable: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdByPrincipal: 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, requiredCapabilities: 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, updatedByPrincipal: true, volatile: true } }).execute(); + +// Create +const created = await db.platformFunctionDefinition.create({ data: { accessChannels: '', anonymousCallable: '', billable: '', category: '', concurrency: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdByPrincipal: '', description: '', fnCategory: '', functionColumns: '', graphId: '', icon: '', image: '', inputs: '', integrations: '', isPublished: '', maxAttempts: '', memoryLimitBytes: '', memoryRequestBytes: '', moduleTable: '', name: '', outputs: '', payloadArgs: '', priority: '', props: '', protected: '', publishedAt: '', queueName: '', requiredBuckets: '', requiredCapabilities: '', requiredConfigs: '', requiredModels: '', requiredModules: '', requiredSecrets: '', resources: '', runtime: '', scaleMax: '', scaleMin: '', system: '', targetFunction: '', targetSchema: '', taskIdentifier: '', timeoutSeconds: '', updatedByPrincipal: '', volatile: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformFunctionDefinition.update({ where: { id: '' }, data: { accessChannels: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformFunctionDefinition.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformFunctionDeployment` + +CRUD operations for PlatformFunctionDeployment records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `annotations` | JSON | Yes | +| `concurrency` | Int | Yes | +| `createdAt` | Datetime | No | +| `createdByPrincipal` | UUID | Yes | +| `errorCount` | Int | Yes | +| `handlerName` | String | Yes | +| `id` | UUID | No | +| `image` | String | Yes | +| `imageVersion` | String | Yes | +| `labels` | JSON | Yes | +| `lastError` | String | Yes | +| `lastErrorAt` | Datetime | Yes | +| `namespaceId` | UUID | Yes | +| `realm` | String | Yes | +| `resources` | JSON | Yes | +| `revision` | Int | Yes | +| `scaleMax` | Int | Yes | +| `scaleMin` | Int | Yes | +| `serviceName` | String | Yes | +| `serviceUrl` | String | Yes | +| `status` | String | Yes | +| `timeoutSeconds` | Int | Yes | +| `updatedAt` | Datetime | No | +| `updatedByPrincipal` | UUID | Yes | + +**Operations:** + +```typescript +// List all platformFunctionDeployment records +const items = await db.platformFunctionDeployment.findMany({ select: { annotations: true, concurrency: true, createdAt: true, createdByPrincipal: 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, updatedByPrincipal: true } }).execute(); + +// Get one by id +const item = await db.platformFunctionDeployment.findOne({ id: '', select: { annotations: true, concurrency: true, createdAt: true, createdByPrincipal: 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, updatedByPrincipal: true } }).execute(); + +// Create +const created = await db.platformFunctionDeployment.create({ data: { annotations: '', concurrency: '', createdByPrincipal: '', errorCount: '', handlerName: '', image: '', imageVersion: '', labels: '', lastError: '', lastErrorAt: '', namespaceId: '', realm: '', resources: '', revision: '', scaleMax: '', scaleMin: '', serviceName: '', serviceUrl: '', status: '', timeoutSeconds: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformFunctionDeployment.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformFunctionDeployment.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformFunctionDeploymentEvent` + +CRUD operations for PlatformFunctionDeploymentEvent records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `actorId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `deploymentId` | UUID | Yes | +| `eventType` | String | Yes | +| `id` | UUID | No | +| `message` | String | Yes | +| `metadata` | JSON | Yes | + +**Operations:** + +```typescript +// List all platformFunctionDeploymentEvent records +const items = await db.platformFunctionDeploymentEvent.findMany({ select: { actorId: true, createdAt: true, deploymentId: true, eventType: true, id: true, message: true, metadata: true } }).execute(); + +// Get one by id +const item = await db.platformFunctionDeploymentEvent.findOne({ id: '', select: { actorId: true, createdAt: true, deploymentId: true, eventType: true, id: true, message: true, metadata: true } }).execute(); + +// Create +const created = await db.platformFunctionDeploymentEvent.create({ data: { actorId: '', deploymentId: '', eventType: '', message: '', metadata: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformFunctionDeploymentEvent.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformFunctionDeploymentEvent.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformFunctionExecutionLog` + +CRUD operations for PlatformFunctionExecutionLog records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `actorId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `id` | UUID | No | +| `invocationId` | UUID | Yes | +| `logLevel` | String | Yes | +| `message` | String | Yes | +| `metadata` | JSON | Yes | +| `taskIdentifier` | String | Yes | + +**Operations:** + +```typescript +// List all platformFunctionExecutionLog records +const items = await db.platformFunctionExecutionLog.findMany({ select: { actorId: true, createdAt: true, id: true, invocationId: true, logLevel: true, message: true, metadata: true, taskIdentifier: true } }).execute(); + +// Get one by id +const item = await db.platformFunctionExecutionLog.findOne({ id: '', select: { actorId: true, createdAt: true, id: true, invocationId: true, logLevel: true, message: true, metadata: true, taskIdentifier: true } }).execute(); + +// Create +const created = await db.platformFunctionExecutionLog.create({ data: { actorId: '', invocationId: '', logLevel: '', message: '', metadata: '', taskIdentifier: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformFunctionExecutionLog.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformFunctionExecutionLog.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformFunctionInvocationAttempt` CRUD operations for PlatformFunctionInvocationAttempt records. @@ -1431,917 +2213,2386 @@ CRUD operations for PlatformFunctionInvocationAttempt records. | Field | Type | Editable | |-------|------|----------| -| `actorId` | UUID | Yes | -| `attempt` | Int | Yes | +| `actorId` | UUID | Yes | +| `attempt` | Int | Yes | +| `createdAt` | Datetime | No | +| `durationMs` | Int | Yes | +| `error` | String | Yes | +| `errorDetail` | JSON | Yes | +| `id` | UUID | No | +| `invocationCreatedAt` | Datetime | Yes | +| `invocationId` | UUID | Yes | +| `startedAt` | Datetime | Yes | +| `success` | Boolean | Yes | +| `taskIdentifier` | String | Yes | + +**Operations:** + +```typescript +// List all platformFunctionInvocationAttempt records +const items = await db.platformFunctionInvocationAttempt.findMany({ select: { actorId: true, attempt: true, createdAt: true, durationMs: true, error: true, errorDetail: true, id: true, invocationCreatedAt: true, invocationId: true, startedAt: true, success: true, taskIdentifier: true } }).execute(); + +// Get one by id +const item = await db.platformFunctionInvocationAttempt.findOne({ id: '', select: { actorId: true, attempt: true, createdAt: true, durationMs: true, error: true, errorDetail: true, id: true, invocationCreatedAt: true, invocationId: true, startedAt: true, success: true, taskIdentifier: true } }).execute(); + +// Create +const created = await db.platformFunctionInvocationAttempt.create({ data: { actorId: '', attempt: '', durationMs: '', error: '', errorDetail: '', invocationCreatedAt: '', invocationId: '', startedAt: '', success: '', taskIdentifier: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformFunctionInvocationAttempt.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformFunctionInvocationAttempt.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformFunctionInvocation` + +CRUD operations for PlatformFunctionInvocation records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `actorId` | UUID | Yes | +| `apiBindingId` | UUID | Yes | +| `channel` | String | Yes | +| `completedAt` | Datetime | Yes | +| `createdAt` | Datetime | No | +| `createdByPrincipal` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `definitionScope` | String | Yes | +| `durationMs` | Int | Yes | +| `entityId` | UUID | Yes | +| `entityType` | String | Yes | +| `error` | String | Yes | +| `functionDefinitionId` | UUID | Yes | +| `graphExecutionId` | UUID | Yes | +| `id` | UUID | No | +| `jobId` | BigInt | Yes | +| `organizationId` | UUID | Yes | +| `parentInvocationId` | UUID | Yes | +| `payload` | JSON | Yes | +| `principalId` | UUID | Yes | +| `provenance` | JSON | Yes | +| `result` | JSON | Yes | +| `startedAt` | Datetime | Yes | +| `status` | String | Yes | +| `taskIdentifier` | String | Yes | + +**Operations:** + +```typescript +// List all platformFunctionInvocation records +const items = await db.platformFunctionInvocation.findMany({ select: { actorId: true, apiBindingId: true, channel: true, completedAt: true, createdAt: true, createdByPrincipal: true, databaseId: true, definitionScope: true, durationMs: true, entityId: true, entityType: true, error: true, functionDefinitionId: true, graphExecutionId: true, id: true, jobId: true, organizationId: true, parentInvocationId: true, payload: true, principalId: true, provenance: true, result: true, startedAt: true, status: true, taskIdentifier: true } }).execute(); + +// Get one by id +const item = await db.platformFunctionInvocation.findOne({ id: '', select: { actorId: true, apiBindingId: true, channel: true, completedAt: true, createdAt: true, createdByPrincipal: true, databaseId: true, definitionScope: true, durationMs: true, entityId: true, entityType: true, error: true, functionDefinitionId: true, graphExecutionId: true, id: true, jobId: true, organizationId: true, parentInvocationId: true, payload: true, principalId: true, provenance: true, result: true, startedAt: true, status: true, taskIdentifier: true } }).execute(); + +// Create +const created = await db.platformFunctionInvocation.create({ data: { actorId: '', apiBindingId: '', channel: '', completedAt: '', createdByPrincipal: '', databaseId: '', definitionScope: '', durationMs: '', entityId: '', entityType: '', error: '', functionDefinitionId: '', graphExecutionId: '', jobId: '', organizationId: '', parentInvocationId: '', payload: '', principalId: '', provenance: '', result: '', startedAt: '', status: '', taskIdentifier: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformFunctionInvocation.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformFunctionInvocation.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformImage` + +CRUD operations for PlatformImage records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `createdAt` | Datetime | No | +| `createdByPrincipal` | UUID | Yes | +| `description` | String | Yes | +| `digest` | String | Yes | +| `expiresAt` | Datetime | Yes | +| `id` | UUID | No | +| `isPublished` | Boolean | Yes | +| `labels` | JSON | Yes | +| `metadata` | JSON | Yes | +| `name` | String | Yes | +| `ownerId` | UUID | Yes | +| `platformOnly` | Boolean | Yes | +| `registryHost` | String | Yes | +| `repository` | String | Yes | +| `runtime` | String | Yes | +| `tag` | String | Yes | +| `updatedAt` | Datetime | No | +| `updatedByPrincipal` | UUID | Yes | + +**Operations:** + +```typescript +// List all platformImage records +const items = await db.platformImage.findMany({ select: { createdAt: true, createdByPrincipal: true, description: true, digest: true, expiresAt: true, id: true, isPublished: true, labels: true, metadata: true, name: true, ownerId: true, platformOnly: true, registryHost: true, repository: true, runtime: true, tag: true, updatedAt: true, updatedByPrincipal: true } }).execute(); + +// Get one by id +const item = await db.platformImage.findOne({ id: '', select: { createdAt: true, createdByPrincipal: true, description: true, digest: true, expiresAt: true, id: true, isPublished: true, labels: true, metadata: true, name: true, ownerId: true, platformOnly: true, registryHost: true, repository: true, runtime: true, tag: true, updatedAt: true, updatedByPrincipal: true } }).execute(); + +// Create +const created = await db.platformImage.create({ data: { createdByPrincipal: '', description: '', digest: '', expiresAt: '', isPublished: '', labels: '', metadata: '', name: '', ownerId: '', platformOnly: '', registryHost: '', repository: '', runtime: '', tag: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformImage.update({ where: { id: '' }, data: { createdByPrincipal: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformImage.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformImageGrant` + +CRUD operations for PlatformImageGrant records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `actions` | String | Yes | +| `createdAt` | Datetime | No | +| `createdByPrincipal` | UUID | Yes | +| `expiresAt` | Datetime | Yes | +| `grantedBy` | UUID | Yes | +| `granteeKey` | UUID | Yes | +| `granteeScope` | String | Yes | +| `id` | UUID | No | +| `imageId` | UUID | Yes | +| `updatedAt` | Datetime | No | +| `updatedByPrincipal` | UUID | Yes | + +**Operations:** + +```typescript +// List all platformImageGrant records +const items = await db.platformImageGrant.findMany({ select: { actions: true, createdAt: true, createdByPrincipal: true, expiresAt: true, grantedBy: true, granteeKey: true, granteeScope: true, id: true, imageId: true, updatedAt: true, updatedByPrincipal: true } }).execute(); + +// Get one by id +const item = await db.platformImageGrant.findOne({ id: '', select: { actions: true, createdAt: true, createdByPrincipal: true, expiresAt: true, grantedBy: true, granteeKey: true, granteeScope: true, id: true, imageId: true, updatedAt: true, updatedByPrincipal: true } }).execute(); + +// Create +const created = await db.platformImageGrant.create({ data: { actions: '', createdByPrincipal: '', expiresAt: '', grantedBy: '', granteeKey: '', granteeScope: '', imageId: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformImageGrant.update({ where: { id: '' }, data: { actions: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformImageGrant.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformInfraCommit` + +CRUD operations for PlatformInfraCommit records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `authorId` | UUID | Yes | +| `committerId` | UUID | Yes | +| `date` | Datetime | Yes | +| `id` | UUID | No | +| `message` | String | Yes | +| `parentIds` | UUID | Yes | +| `scopeId` | UUID | Yes | +| `storeId` | UUID | Yes | +| `treeId` | UUID | Yes | + +**Operations:** + +```typescript +// List all platformInfraCommit records +const items = await db.platformInfraCommit.findMany({ select: { authorId: true, committerId: true, date: true, id: true, message: true, parentIds: true, scopeId: true, storeId: true, treeId: true } }).execute(); + +// Get one by id +const item = await db.platformInfraCommit.findOne({ id: '', select: { authorId: true, committerId: true, date: true, id: true, message: true, parentIds: true, scopeId: true, storeId: true, treeId: true } }).execute(); + +// Create +const created = await db.platformInfraCommit.create({ data: { authorId: '', committerId: '', date: '', message: '', parentIds: '', scopeId: '', storeId: '', treeId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformInfraCommit.update({ where: { id: '' }, data: { authorId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformInfraCommit.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformInfraGetAllTreeNodesRecord` + +CRUD operations for PlatformInfraGetAllTreeNodesRecord records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `data` | JSON | Yes | +| `path` | String | Yes | + +**Operations:** + +```typescript +// List all platformInfraGetAllTreeNodesRecord records +const items = await db.platformInfraGetAllTreeNodesRecord.findMany({ select: { data: true, path: true } }).execute(); + +// Get one by id +const item = await db.platformInfraGetAllTreeNodesRecord.findOne({ id: '', select: { data: true, path: true } }).execute(); + +// Create +const created = await db.platformInfraGetAllTreeNodesRecord.create({ data: { data: '', path: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformInfraGetAllTreeNodesRecord.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformInfraGetAllTreeNodesRecord.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformInfraObject` + +CRUD operations for PlatformInfraObject records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `createdAt` | Datetime | No | +| `data` | JSON | Yes | +| `id` | UUID | No | +| `kids` | UUID | Yes | +| `ktree` | String | Yes | +| `scopeId` | UUID | Yes | + +**Operations:** + +```typescript +// List all platformInfraObject records +const items = await db.platformInfraObject.findMany({ select: { createdAt: true, data: true, id: true, kids: true, ktree: true, scopeId: true } }).execute(); + +// Get one by id +const item = await db.platformInfraObject.findOne({ id: '', select: { createdAt: true, data: true, id: true, kids: true, ktree: true, scopeId: true } }).execute(); + +// Create +const created = await db.platformInfraObject.create({ data: { data: '', kids: '', ktree: '', scopeId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformInfraObject.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformInfraObject.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformInfraRef` + +CRUD operations for PlatformInfraRef records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `commitId` | UUID | Yes | +| `id` | UUID | No | +| `name` | String | Yes | +| `scopeId` | UUID | Yes | +| `storeId` | UUID | Yes | + +**Operations:** + +```typescript +// List all platformInfraRef records +const items = await db.platformInfraRef.findMany({ select: { commitId: true, id: true, name: true, scopeId: true, storeId: true } }).execute(); + +// Get one by id +const item = await db.platformInfraRef.findOne({ id: '', select: { commitId: true, id: true, name: true, scopeId: true, storeId: true } }).execute(); + +// Create +const created = await db.platformInfraRef.create({ data: { commitId: '', name: '', scopeId: '', storeId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformInfraRef.update({ where: { id: '' }, data: { commitId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformInfraRef.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformInfraStore` + +CRUD operations for PlatformInfraStore records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `createdAt` | Datetime | No | +| `hash` | UUID | Yes | +| `id` | UUID | No | +| `name` | String | Yes | +| `scopeId` | UUID | Yes | + +**Operations:** + +```typescript +// List all platformInfraStore records +const items = await db.platformInfraStore.findMany({ select: { createdAt: true, hash: true, id: true, name: true, scopeId: true } }).execute(); + +// Get one by id +const item = await db.platformInfraStore.findOne({ id: '', select: { createdAt: true, hash: true, id: true, name: true, scopeId: true } }).execute(); + +// Create +const created = await db.platformInfraStore.create({ data: { hash: '', name: '', scopeId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformInfraStore.update({ where: { id: '' }, data: { hash: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformInfraStore.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformK8sResourceKind` + +CRUD operations for PlatformK8sResourceKind records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `active` | Boolean | Yes | +| `commitId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `definition` | JSON | Yes | +| `description` | String | Yes | +| `id` | UUID | No | +| `label` | String | Yes | +| `slug` | String | Yes | +| `storeId` | UUID | Yes | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all platformK8sResourceKind records +const items = await db.platformK8sResourceKind.findMany({ select: { active: true, commitId: true, createdAt: true, definition: true, description: true, id: true, label: true, slug: true, storeId: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.platformK8sResourceKind.findOne({ id: '', select: { active: true, commitId: true, createdAt: true, definition: true, description: true, id: true, label: true, slug: true, storeId: true, updatedAt: true } }).execute(); + +// Create +const created = await db.platformK8sResourceKind.create({ data: { active: '', commitId: '', definition: '', description: '', label: '', slug: '', storeId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformK8sResourceKind.update({ where: { id: '' }, data: { active: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformK8sResourceKind.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformK8sSpecRule` + +CRUD operations for PlatformK8sSpecRule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `active` | Boolean | Yes | +| `commitId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `definition` | JSON | Yes | +| `description` | String | Yes | +| `id` | UUID | No | +| `label` | String | Yes | +| `slug` | String | Yes | +| `storeId` | UUID | Yes | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all platformK8sSpecRule records +const items = await db.platformK8sSpecRule.findMany({ select: { active: true, commitId: true, createdAt: true, definition: true, description: true, id: true, label: true, slug: true, storeId: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.platformK8sSpecRule.findOne({ id: '', select: { active: true, commitId: true, createdAt: true, definition: true, description: true, id: true, label: true, slug: true, storeId: true, updatedAt: true } }).execute(); + +// Create +const created = await db.platformK8sSpecRule.create({ data: { active: '', commitId: '', definition: '', description: '', label: '', slug: '', storeId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformK8sSpecRule.update({ where: { id: '' }, data: { active: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformK8sSpecRule.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformNamespace` + +CRUD operations for PlatformNamespace records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `annotations` | JSON | Yes | +| `clusterId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `description` | String | Yes | +| `id` | UUID | No | +| `isActive` | Boolean | Yes | +| `isManaged` | Boolean | Yes | +| `labels` | JSON | Yes | +| `lastError` | String | Yes | +| `name` | String | Yes | +| `namespaceName` | String | Yes | +| `status` | String | Yes | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all platformNamespace records +const items = await db.platformNamespace.findMany({ select: { annotations: true, clusterId: true, createdAt: true, description: true, id: true, isActive: true, isManaged: true, labels: true, lastError: true, name: true, namespaceName: true, status: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.platformNamespace.findOne({ id: '', select: { annotations: true, clusterId: true, createdAt: true, description: true, id: true, isActive: true, isManaged: true, labels: true, lastError: true, name: true, namespaceName: true, status: true, updatedAt: true } }).execute(); + +// Create +const created = await db.platformNamespace.create({ data: { annotations: '', clusterId: '', description: '', isActive: '', isManaged: '', labels: '', lastError: '', name: '', namespaceName: '', status: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformNamespace.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformNamespace.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformNamespaceEvent` + +CRUD operations for PlatformNamespaceEvent records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `actorId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `eventType` | String | Yes | +| `id` | UUID | No | +| `message` | String | Yes | +| `metadata` | JSON | Yes | +| `namespaceId` | UUID | Yes | + +**Operations:** + +```typescript +// List all platformNamespaceEvent records +const items = await db.platformNamespaceEvent.findMany({ select: { actorId: true, createdAt: true, eventType: true, id: true, message: true, metadata: true, namespaceId: true } }).execute(); + +// Get one by id +const item = await db.platformNamespaceEvent.findOne({ id: '', select: { actorId: true, createdAt: true, eventType: true, id: true, message: true, metadata: true, namespaceId: true } }).execute(); + +// Create +const created = await db.platformNamespaceEvent.create({ data: { actorId: '', eventType: '', message: '', metadata: '', namespaceId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformNamespaceEvent.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformNamespaceEvent.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformProposalComment` + +CRUD operations for PlatformProposalComment records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `actorId` | UUID | Yes | +| `attachments` | ConstructiveInternalTypeUpload | Yes | +| `body` | String | Yes | +| `bodyTrgmSimilarity` | Float | Yes | +| `createdAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | +| `embedding` | Vector | Yes | +| `embeddingUpdatedAt` | Datetime | Yes | +| `embeddingVectorDistance` | Float | Yes | +| `id` | UUID | No | +| `line` | Int | Yes | +| `outdatedAt` | Datetime | Yes | +| `path` | String | Yes | +| `pathTrgmSimilarity` | Float | Yes | +| `proposalId` | UUID | Yes | +| `resolvedAt` | Datetime | Yes | +| `search` | FullText | Yes | +| `searchScore` | Float | Yes | +| `searchTsvRank` | Float | Yes | +| `updatedAt` | Datetime | No | +| `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | + +**Operations:** + +```typescript +// List all platformProposalComment records +const items = await db.platformProposalComment.findMany({ select: { actorId: true, attachments: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Get one by id +const item = await db.platformProposalComment.findOne({ id: '', select: { actorId: true, attachments: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Create +const created = await db.platformProposalComment.create({ data: { actorId: '', attachments: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', line: '', outdatedAt: '', path: '', pathTrgmSimilarity: '', proposalId: '', resolvedAt: '', search: '', searchScore: '', searchTsvRank: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformProposalComment.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformProposalComment.delete({ where: { id: '' } }).execute(); +``` + +> **pgvector embedding fields:** `embedding` +> High-dimensional vector columns for semantic similarity search. Query via the Unified Search API pgvector adapter using cosine, L2, or inner-product distance. + +> **Unified Search API fields:** `search` +> Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. + +### `db.platformProposal` + +CRUD operations for PlatformProposal records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `actorId` | UUID | Yes | +| `body` | String | Yes | +| `bodyTrgmSimilarity` | Float | Yes | +| `closedReason` | String | Yes | +| `closedReasonTrgmSimilarity` | Float | Yes | +| `createdAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | +| `decidedAt` | Datetime | Yes | +| `dueAt` | Datetime | Yes | +| `embedding` | Vector | Yes | +| `embeddingUpdatedAt` | Datetime | Yes | +| `embeddingVectorDistance` | Float | Yes | +| `id` | UUID | No | +| `kind` | String | Yes | +| `kindTrgmSimilarity` | Float | Yes | +| `labels` | String | Yes | +| `mergeCommit` | String | Yes | +| `mergeCommitTrgmSimilarity` | Float | Yes | +| `mergeMethod` | String | Yes | +| `mergeMethodTrgmSimilarity` | Float | Yes | +| `mergeRequestedAt` | Datetime | Yes | +| `mergedAt` | Datetime | Yes | +| `metadata` | JSON | Yes | +| `parentId` | UUID | Yes | +| `priority` | BigFloat | Yes | +| `repositoryId` | UUID | Yes | +| `resolution` | String | Yes | +| `resolutionTrgmSimilarity` | Float | Yes | +| `search` | FullText | Yes | +| `searchScore` | Float | Yes | +| `searchTsvRank` | Float | Yes | +| `sourceRef` | String | Yes | +| `sourceRefTrgmSimilarity` | Float | Yes | +| `status` | String | Yes | +| `statusTrgmSimilarity` | Float | Yes | +| `targetRef` | String | Yes | +| `targetRefTrgmSimilarity` | Float | Yes | +| `title` | String | Yes | +| `titleTrgmSimilarity` | Float | Yes | +| `updatedAt` | Datetime | No | +| `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | + +**Operations:** + +```typescript +// List all platformProposal records +const items = await db.platformProposal.findMany({ select: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, decidedAt: true, dueAt: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Get one by id +const item = await db.platformProposal.findOne({ id: '', select: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, decidedAt: true, dueAt: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Create +const created = await db.platformProposal.create({ data: { actorId: '', body: '', bodyTrgmSimilarity: '', closedReason: '', closedReasonTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', decidedAt: '', dueAt: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', kind: '', kindTrgmSimilarity: '', labels: '', mergeCommit: '', mergeCommitTrgmSimilarity: '', mergeMethod: '', mergeMethodTrgmSimilarity: '', mergeRequestedAt: '', mergedAt: '', metadata: '', parentId: '', priority: '', repositoryId: '', resolution: '', resolutionTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', sourceRef: '', sourceRefTrgmSimilarity: '', status: '', statusTrgmSimilarity: '', targetRef: '', targetRefTrgmSimilarity: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformProposal.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformProposal.delete({ where: { id: '' } }).execute(); +``` + +> **pgvector embedding fields:** `embedding` +> High-dimensional vector columns for semantic similarity search. Query via the Unified Search API pgvector adapter using cosine, L2, or inner-product distance. + +> **Unified Search API fields:** `search` +> Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. + +### `db.platformProposalFileView` + +CRUD operations for PlatformProposalFileView records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `blobSha` | String | Yes | +| `createdAt` | Datetime | No | +| `createdByPrincipal` | UUID | Yes | +| `id` | UUID | No | +| `path` | String | Yes | +| `proposalId` | UUID | Yes | +| `reviewerId` | UUID | Yes | +| `updatedAt` | Datetime | No | +| `updatedByPrincipal` | UUID | Yes | +| `viewedAt` | Datetime | Yes | + +**Operations:** + +```typescript +// List all platformProposalFileView records +const items = await db.platformProposalFileView.findMany({ select: { blobSha: true, createdAt: true, createdByPrincipal: true, id: true, path: true, proposalId: true, reviewerId: true, updatedAt: true, updatedByPrincipal: true, viewedAt: true } }).execute(); + +// Get one by id +const item = await db.platformProposalFileView.findOne({ id: '', select: { blobSha: true, createdAt: true, createdByPrincipal: true, id: true, path: true, proposalId: true, reviewerId: true, updatedAt: true, updatedByPrincipal: true, viewedAt: true } }).execute(); + +// Create +const created = await db.platformProposalFileView.create({ data: { blobSha: '', createdByPrincipal: '', path: '', proposalId: '', reviewerId: '', updatedByPrincipal: '', viewedAt: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformProposalFileView.update({ where: { id: '' }, data: { blobSha: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformProposalFileView.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformProposalReaction` + +CRUD operations for PlatformProposalReaction records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `actorId` | UUID | Yes | +| `commentId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `createdByPrincipal` | UUID | Yes | +| `emoji` | String | Yes | +| `id` | UUID | No | +| `proposalId` | UUID | Yes | +| `updatedAt` | Datetime | No | +| `updatedByPrincipal` | UUID | Yes | + +**Operations:** + +```typescript +// List all platformProposalReaction records +const items = await db.platformProposalReaction.findMany({ select: { actorId: true, commentId: true, createdAt: true, createdByPrincipal: true, emoji: true, id: true, proposalId: true, updatedAt: true, updatedByPrincipal: true } }).execute(); + +// Get one by id +const item = await db.platformProposalReaction.findOne({ id: '', select: { actorId: true, commentId: true, createdAt: true, createdByPrincipal: true, emoji: true, id: true, proposalId: true, updatedAt: true, updatedByPrincipal: true } }).execute(); + +// Create +const created = await db.platformProposalReaction.create({ data: { actorId: '', commentId: '', createdByPrincipal: '', emoji: '', proposalId: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformProposalReaction.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformProposalReaction.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformProposalReview` + +CRUD operations for PlatformProposalReview records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `body` | String | Yes | +| `bodyTrgmSimilarity` | Float | Yes | +| `commitSha` | String | Yes | +| `commitShaTrgmSimilarity` | Float | Yes | +| `createdAt` | Datetime | No | +| `createdByPrincipal` | UUID | Yes | +| `id` | UUID | No | +| `proposalId` | UUID | Yes | +| `reviewerId` | UUID | Yes | +| `search` | FullText | Yes | +| `searchScore` | Float | Yes | +| `searchTsvRank` | Float | Yes | +| `submittedAt` | Datetime | Yes | +| `updatedAt` | Datetime | No | +| `updatedByPrincipal` | UUID | Yes | +| `verdict` | String | Yes | +| `verdictTrgmSimilarity` | Float | Yes | + +**Operations:** + +```typescript +// List all platformProposalReview records +const items = await db.platformProposalReview.findMany({ select: { body: true, bodyTrgmSimilarity: true, commitSha: true, commitShaTrgmSimilarity: true, createdAt: true, createdByPrincipal: true, id: true, proposalId: true, reviewerId: true, search: true, searchScore: true, searchTsvRank: true, submittedAt: true, updatedAt: true, updatedByPrincipal: true, verdict: true, verdictTrgmSimilarity: true } }).execute(); + +// Get one by id +const item = await db.platformProposalReview.findOne({ id: '', select: { body: true, bodyTrgmSimilarity: true, commitSha: true, commitShaTrgmSimilarity: true, createdAt: true, createdByPrincipal: true, id: true, proposalId: true, reviewerId: true, search: true, searchScore: true, searchTsvRank: true, submittedAt: true, updatedAt: true, updatedByPrincipal: true, verdict: true, verdictTrgmSimilarity: true } }).execute(); + +// Create +const created = await db.platformProposalReview.create({ data: { body: '', bodyTrgmSimilarity: '', commitSha: '', commitShaTrgmSimilarity: '', createdByPrincipal: '', proposalId: '', reviewerId: '', search: '', searchScore: '', searchTsvRank: '', submittedAt: '', updatedByPrincipal: '', verdict: '', verdictTrgmSimilarity: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformProposalReview.update({ where: { id: '' }, data: { body: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformProposalReview.delete({ where: { id: '' } }).execute(); +``` + +> **Unified Search API fields:** `search` +> Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. + +### `db.platformProposalsChunk` + +CRUD operations for PlatformProposalsChunk records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `actorId` | UUID | Yes | +| `body` | String | Yes | +| `chunkIndex` | Int | Yes | +| `createdAt` | Datetime | No | +| `embedding` | Vector | Yes | +| `embeddingVectorDistance` | Float | Yes | +| `id` | UUID | No | +| `metadata` | JSON | Yes | +| `platformProposalsId` | UUID | Yes | +| `searchScore` | Float | Yes | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all platformProposalsChunk records +const items = await db.platformProposalsChunk.findMany({ select: { actorId: true, body: true, chunkIndex: true, createdAt: true, embedding: true, embeddingVectorDistance: true, id: true, metadata: true, platformProposalsId: true, searchScore: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.platformProposalsChunk.findOne({ id: '', select: { actorId: true, body: true, chunkIndex: true, createdAt: true, embedding: true, embeddingVectorDistance: true, id: true, metadata: true, platformProposalsId: true, searchScore: true, updatedAt: true } }).execute(); + +// Create +const created = await db.platformProposalsChunk.create({ data: { actorId: '', body: '', chunkIndex: '', embedding: '', embeddingVectorDistance: '', metadata: '', platformProposalsId: '', searchScore: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformProposalsChunk.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformProposalsChunk.delete({ where: { id: '' } }).execute(); +``` + +> **pgvector embedding fields:** `embedding` +> High-dimensional vector columns for semantic similarity search. Query via the Unified Search API pgvector adapter using cosine, L2, or inner-product distance. + +### `db.platformRegistryBinding` + +CRUD operations for PlatformRegistryBinding records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `createdAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | +| `id` | UUID | No | +| `metadata` | JSON | Yes | +| `namespaceId` | UUID | Yes | +| `observedCredentialVersion` | String | Yes | +| `pullSecretName` | String | Yes | +| `realm` | String | Yes | +| `registryHost` | String | Yes | +| `registryId` | UUID | Yes | +| `status` | String | Yes | +| `updatedAt` | Datetime | No | +| `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | + +**Operations:** + +```typescript +// List all platformRegistryBinding records +const items = await db.platformRegistryBinding.findMany({ select: { createdAt: true, createdBy: true, createdByPrincipal: true, id: true, metadata: true, namespaceId: true, observedCredentialVersion: true, pullSecretName: true, realm: true, registryHost: true, registryId: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Get one by id +const item = await db.platformRegistryBinding.findOne({ id: '', select: { createdAt: true, createdBy: true, createdByPrincipal: true, id: true, metadata: true, namespaceId: true, observedCredentialVersion: true, pullSecretName: true, realm: true, registryHost: true, registryId: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Create +const created = await db.platformRegistryBinding.create({ data: { createdBy: '', createdByPrincipal: '', metadata: '', namespaceId: '', observedCredentialVersion: '', pullSecretName: '', realm: '', registryHost: '', registryId: '', status: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformRegistryBinding.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformRegistryBinding.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformRegistry` + +CRUD operations for PlatformRegistry records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `authMode` | String | Yes | +| `basePath` | String | Yes | +| `createdAt` | Datetime | No | +| `createdByPrincipal` | UUID | Yes | +| `credentialSecretName` | String | Yes | +| `host` | String | Yes | +| `id` | UUID | No | +| `installationId` | UUID | Yes | +| `isPublished` | Boolean | Yes | +| `kind` | String | Yes | +| `labels` | JSON | Yes | +| `lastError` | String | Yes | +| `metadata` | JSON | Yes | +| `name` | String | Yes | +| `platformOnly` | Boolean | Yes | +| `role` | String | Yes | +| `status` | String | Yes | +| `updatedAt` | Datetime | No | +| `updatedByPrincipal` | UUID | Yes | + +**Operations:** + +```typescript +// List all platformRegistry records +const items = await db.platformRegistry.findMany({ select: { authMode: true, basePath: true, createdAt: true, createdByPrincipal: true, credentialSecretName: true, host: true, id: true, installationId: true, isPublished: true, kind: true, labels: true, lastError: true, metadata: true, name: true, platformOnly: true, role: true, status: true, updatedAt: true, updatedByPrincipal: true } }).execute(); + +// Get one by id +const item = await db.platformRegistry.findOne({ id: '', select: { authMode: true, basePath: true, createdAt: true, createdByPrincipal: true, credentialSecretName: true, host: true, id: true, installationId: true, isPublished: true, kind: true, labels: true, lastError: true, metadata: true, name: true, platformOnly: true, role: true, status: true, updatedAt: true, updatedByPrincipal: true } }).execute(); + +// Create +const created = await db.platformRegistry.create({ data: { authMode: '', basePath: '', createdByPrincipal: '', credentialSecretName: '', host: '', installationId: '', isPublished: '', kind: '', labels: '', lastError: '', metadata: '', name: '', platformOnly: '', role: '', status: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformRegistry.update({ where: { id: '' }, data: { authMode: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformRegistry.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformRegistryGrant` + +CRUD operations for PlatformRegistryGrant records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `actions` | String | Yes | +| `createdAt` | Datetime | No | +| `createdByPrincipal` | UUID | Yes | +| `expiresAt` | Datetime | Yes | +| `grantedBy` | UUID | Yes | +| `granteeKey` | UUID | Yes | +| `granteeScope` | String | Yes | +| `id` | UUID | No | +| `registryId` | UUID | Yes | +| `updatedAt` | Datetime | No | +| `updatedByPrincipal` | UUID | Yes | + +**Operations:** + +```typescript +// List all platformRegistryGrant records +const items = await db.platformRegistryGrant.findMany({ select: { actions: true, createdAt: true, createdByPrincipal: true, expiresAt: true, grantedBy: true, granteeKey: true, granteeScope: true, id: true, registryId: true, updatedAt: true, updatedByPrincipal: true } }).execute(); + +// Get one by id +const item = await db.platformRegistryGrant.findOne({ id: '', select: { actions: true, createdAt: true, createdByPrincipal: true, expiresAt: true, grantedBy: true, granteeKey: true, granteeScope: true, id: true, registryId: true, updatedAt: true, updatedByPrincipal: true } }).execute(); + +// Create +const created = await db.platformRegistryGrant.create({ data: { actions: '', createdByPrincipal: '', expiresAt: '', grantedBy: '', granteeKey: '', granteeScope: '', registryId: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformRegistryGrant.update({ where: { id: '' }, data: { actions: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformRegistryGrant.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformRepository` + +CRUD operations for PlatformRepository records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `cloneUrl` | String | Yes | +| `cloneUrlTrgmSimilarity` | Float | Yes | +| `createdAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | +| `defaultBranch` | String | Yes | +| `defaultBranchTrgmSimilarity` | Float | Yes | +| `description` | String | Yes | +| `descriptionTrgmSimilarity` | Float | Yes | +| `embedding` | Vector | Yes | +| `embeddingUpdatedAt` | Datetime | Yes | +| `embeddingVectorDistance` | Float | Yes | +| `externalId` | String | Yes | +| `externalIdTrgmSimilarity` | Float | Yes | +| `id` | UUID | No | +| `isArchived` | Boolean | Yes | +| `metadata` | JSON | Yes | +| `name` | String | Yes | +| `nameTrgmSimilarity` | Float | Yes | +| `ownerId` | UUID | Yes | +| `provider` | String | Yes | +| `providerTrgmSimilarity` | Float | Yes | +| `search` | FullText | Yes | +| `searchScore` | Float | Yes | +| `searchTsvRank` | Float | Yes | +| `slug` | String | Yes | +| `slugTrgmSimilarity` | Float | Yes | +| `updatedAt` | Datetime | No | +| `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | +| `visibility` | String | Yes | +| `visibilityTrgmSimilarity` | Float | Yes | + +**Operations:** + +```typescript +// List all platformRepository records +const items = await db.platformRepository.findMany({ select: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } }).execute(); + +// Get one by id +const item = await db.platformRepository.findOne({ id: '', select: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } }).execute(); + +// Create +const created = await db.platformRepository.create({ data: { cloneUrl: '', cloneUrlTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', defaultBranch: '', defaultBranchTrgmSimilarity: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', externalId: '', externalIdTrgmSimilarity: '', isArchived: '', metadata: '', name: '', nameTrgmSimilarity: '', ownerId: '', provider: '', providerTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', slug: '', slugTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '', visibility: '', visibilityTrgmSimilarity: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformRepository.update({ where: { id: '' }, data: { cloneUrl: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformRepository.delete({ where: { id: '' } }).execute(); +``` + +> **pgvector embedding fields:** `embedding` +> High-dimensional vector columns for semantic similarity search. Query via the Unified Search API pgvector adapter using cosine, L2, or inner-product distance. + +> **Unified Search API fields:** `search` +> Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. + +### `db.platformRepositoryEvent` + +CRUD operations for PlatformRepositoryEvent records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `actorId` | UUID | Yes | +| `commitSha` | String | Yes | +| `createdAt` | Datetime | No | +| `createdByPrincipal` | UUID | Yes | +| `deliveryId` | String | Yes | +| `eventType` | String | Yes | +| `id` | UUID | No | +| `metadata` | JSON | Yes | +| `payload` | JSON | Yes | +| `ref` | String | Yes | +| `repositoryId` | UUID | Yes | +| `updatedAt` | Datetime | No | +| `updatedByPrincipal` | UUID | Yes | + +**Operations:** + +```typescript +// List all platformRepositoryEvent records +const items = await db.platformRepositoryEvent.findMany({ select: { actorId: true, commitSha: true, createdAt: true, createdByPrincipal: true, deliveryId: true, eventType: true, id: true, metadata: true, payload: true, ref: true, repositoryId: true, updatedAt: true, updatedByPrincipal: true } }).execute(); + +// Get one by id +const item = await db.platformRepositoryEvent.findOne({ id: '', select: { actorId: true, commitSha: true, createdAt: true, createdByPrincipal: true, deliveryId: true, eventType: true, id: true, metadata: true, payload: true, ref: true, repositoryId: true, updatedAt: true, updatedByPrincipal: true } }).execute(); + +// Create +const created = await db.platformRepositoryEvent.create({ data: { actorId: '', commitSha: '', createdByPrincipal: '', deliveryId: '', eventType: '', metadata: '', payload: '', ref: '', repositoryId: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformRepositoryEvent.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformRepositoryEvent.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformRepositoryRequiredCheck` + +CRUD operations for PlatformRepositoryRequiredCheck records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `createdAt` | Datetime | No | +| `id` | UUID | No | +| `repositoryId` | UUID | Yes | +| `updatedAt` | Datetime | No | +| `workflowId` | UUID | Yes | + +**Operations:** + +```typescript +// List all platformRepositoryRequiredCheck records +const items = await db.platformRepositoryRequiredCheck.findMany({ select: { createdAt: true, id: true, repositoryId: true, updatedAt: true, workflowId: true } }).execute(); + +// Get one by id +const item = await db.platformRepositoryRequiredCheck.findOne({ id: '', select: { createdAt: true, id: true, repositoryId: true, updatedAt: true, workflowId: true } }).execute(); + +// Create +const created = await db.platformRepositoryRequiredCheck.create({ data: { repositoryId: '', workflowId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformRepositoryRequiredCheck.update({ where: { id: '' }, data: { repositoryId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformRepositoryRequiredCheck.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformRepositoryWorkflow` + +CRUD operations for PlatformRepositoryWorkflow records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `cancelInProgress` | Boolean | Yes | +| `concurrencyKey` | String | Yes | +| `createdAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | +| `eventType` | String | Yes | +| `graphId` | UUID | Yes | +| `id` | UUID | No | +| `inputs` | JSON | Yes | +| `isEnabled` | Boolean | Yes | +| `name` | String | Yes | +| `refPattern` | String | Yes | +| `repositoryId` | UUID | Yes | +| `requiredSecrets` | String | Yes | +| `slug` | String | Yes | +| `updatedAt` | Datetime | No | +| `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | + +**Operations:** + +```typescript +// List all platformRepositoryWorkflow records +const items = await db.platformRepositoryWorkflow.findMany({ select: { cancelInProgress: true, concurrencyKey: true, createdAt: true, createdBy: true, createdByPrincipal: true, eventType: true, graphId: true, id: true, inputs: true, isEnabled: true, name: true, refPattern: true, repositoryId: true, requiredSecrets: true, slug: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Get one by id +const item = await db.platformRepositoryWorkflow.findOne({ id: '', select: { cancelInProgress: true, concurrencyKey: true, createdAt: true, createdBy: true, createdByPrincipal: true, eventType: true, graphId: true, id: true, inputs: true, isEnabled: true, name: true, refPattern: true, repositoryId: true, requiredSecrets: true, slug: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Create +const created = await db.platformRepositoryWorkflow.create({ data: { cancelInProgress: '', concurrencyKey: '', createdBy: '', createdByPrincipal: '', eventType: '', graphId: '', inputs: '', isEnabled: '', name: '', refPattern: '', repositoryId: '', requiredSecrets: '', slug: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformRepositoryWorkflow.update({ where: { id: '' }, data: { cancelInProgress: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformRepositoryWorkflow.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformResource` + +CRUD operations for PlatformResource records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `annotations` | JSON | Yes | +| `cpuLimitMillicores` | BigInt | Yes | +| `cpuRequestMillicores` | BigInt | Yes | +| `createdAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | +| `errorCount` | Int | Yes | +| `id` | UUID | No | +| `imageRef` | String | Yes | +| `installationId` | UUID | Yes | +| `integrations` | String | Yes | +| `kind` | String | Yes | +| `labels` | JSON | Yes | +| `lastError` | String | Yes | +| `lastHeartbeatAt` | Datetime | Yes | +| `memoryLimitBytes` | BigInt | Yes | +| `memoryRequestBytes` | BigInt | Yes | +| `name` | String | Yes | +| `namespaceId` | UUID | Yes | +| `realm` | String | Yes | +| `replicas` | Int | Yes | +| `requiredConfigs` | ResourceRequirement | Yes | +| `requiredSecrets` | ResourceRequirement | Yes | +| `resourceDefinitionId` | UUID | Yes | +| `slug` | String | Yes | +| `spec` | JSON | Yes | +| `status` | String | Yes | +| `statusObserved` | JSON | Yes | +| `storageClass` | String | Yes | +| `storageSizeBytes` | BigInt | Yes | +| `storageTotalBytes` | BigInt | Yes | +| `updatedAt` | Datetime | No | +| `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | + +**Operations:** + +```typescript +// List all platformResource records +const items = await db.platformResource.findMany({ select: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Get one by id +const item = await db.platformResource.findOne({ id: '', select: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Create +const created = await db.platformResource.create({ data: { annotations: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', createdByPrincipal: '', errorCount: '', imageRef: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusObserved: '', storageClass: '', storageSizeBytes: '', storageTotalBytes: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformResource.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformResource.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformResourceDeclaredCapacity` + +CRUD operations for PlatformResourceDeclaredCapacity records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `cpuLimitMillicores` | BigInt | Yes | +| `cpuRequestMillicores` | BigInt | Yes | +| `installationId` | UUID | Yes | +| `isTransient` | Boolean | Yes | +| `kind` | String | Yes | +| `memoryLimitBytes` | BigInt | Yes | +| `memoryRequestBytes` | BigInt | Yes | +| `namespaceId` | UUID | Yes | +| `podCountMax` | Int | Yes | +| `podCountMin` | Int | Yes | +| `source` | String | Yes | +| `sourceId` | UUID | Yes | +| `storageSizeBytes` | BigInt | Yes | +| `storageTotalBytes` | BigInt | Yes | + +**Operations:** + +```typescript +// List all platformResourceDeclaredCapacity records +const items = await db.platformResourceDeclaredCapacity.findMany({ select: { cpuLimitMillicores: true, cpuRequestMillicores: true, installationId: true, isTransient: true, kind: true, memoryLimitBytes: true, memoryRequestBytes: true, namespaceId: true, podCountMax: true, podCountMin: true, source: true, sourceId: true, storageSizeBytes: true, storageTotalBytes: true } }).execute(); + +// Get one by id +const item = await db.platformResourceDeclaredCapacity.findOne({ id: '', select: { cpuLimitMillicores: true, cpuRequestMillicores: true, installationId: true, isTransient: true, kind: true, memoryLimitBytes: true, memoryRequestBytes: true, namespaceId: true, podCountMax: true, podCountMin: true, source: true, sourceId: true, storageSizeBytes: true, storageTotalBytes: true } }).execute(); + +// Create +const created = await db.platformResourceDeclaredCapacity.create({ data: { cpuLimitMillicores: '', cpuRequestMillicores: '', installationId: '', isTransient: '', kind: '', memoryLimitBytes: '', memoryRequestBytes: '', namespaceId: '', podCountMax: '', podCountMin: '', source: '', sourceId: '', storageSizeBytes: '', storageTotalBytes: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformResourceDeclaredCapacity.update({ where: { id: '' }, data: { cpuLimitMillicores: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformResourceDeclaredCapacity.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformResourceDefinition` + +CRUD operations for PlatformResourceDefinition records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `annotations` | JSON | Yes | +| `createdAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | +| `defaultSpec` | JSON | Yes | +| `description` | String | Yes | +| `id` | UUID | No | +| `integrations` | String | Yes | +| `kind` | String | Yes | +| `labels` | JSON | Yes | +| `name` | String | Yes | +| `namespaceId` | UUID | Yes | +| `paramsSchema` | JSON | Yes | +| `requiredConfigs` | ResourceRequirement | Yes | +| `requiredSecrets` | ResourceRequirement | Yes | +| `slug` | String | Yes | +| `stepUpMinAge` | Interval | Yes | +| `updatedAt` | Datetime | No | +| `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | + +**Operations:** + +```typescript +// List all platformResourceDefinition records +const items = await db.platformResourceDefinition.findMany({ select: { annotations: true, createdAt: true, createdBy: true, createdByPrincipal: true, defaultSpec: true, description: true, id: true, integrations: true, kind: true, labels: true, name: true, namespaceId: true, paramsSchema: true, requiredConfigs: true, requiredSecrets: true, slug: true, stepUpMinAge: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Get one by id +const item = await db.platformResourceDefinition.findOne({ id: '', select: { annotations: true, createdAt: true, createdBy: true, createdByPrincipal: true, defaultSpec: true, description: true, id: true, integrations: true, kind: true, labels: true, name: true, namespaceId: true, paramsSchema: true, requiredConfigs: true, requiredSecrets: true, slug: true, stepUpMinAge: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Create +const created = await db.platformResourceDefinition.create({ data: { annotations: '', createdBy: '', createdByPrincipal: '', defaultSpec: '', description: '', integrations: '', kind: '', labels: '', name: '', namespaceId: '', paramsSchema: '', requiredConfigs: '', requiredSecrets: '', slug: '', stepUpMinAge: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformResourceDefinition.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformResourceDefinition.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformResourceEvent` + +CRUD operations for PlatformResourceEvent records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `actorId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `eventType` | String | Yes | +| `id` | UUID | No | +| `message` | String | Yes | +| `metadata` | JSON | Yes | +| `resourceId` | UUID | Yes | + +**Operations:** + +```typescript +// List all platformResourceEvent records +const items = await db.platformResourceEvent.findMany({ select: { actorId: true, createdAt: true, eventType: true, id: true, message: true, metadata: true, resourceId: true } }).execute(); + +// Get one by id +const item = await db.platformResourceEvent.findOne({ id: '', select: { actorId: true, createdAt: true, eventType: true, id: true, message: true, metadata: true, resourceId: true } }).execute(); + +// Create +const created = await db.platformResourceEvent.create({ data: { actorId: '', eventType: '', message: '', metadata: '', resourceId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformResourceEvent.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformResourceEvent.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformResourceInstallation` + +CRUD operations for PlatformResourceInstallation records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `commitId` | UUID | Yes | | `createdAt` | Datetime | No | -| `durationMs` | Int | Yes | -| `error` | String | Yes | -| `errorDetail` | JSON | Yes | +| `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | | `id` | UUID | No | -| `invocationCreatedAt` | Datetime | Yes | -| `invocationId` | UUID | Yes | -| `startedAt` | Datetime | Yes | -| `success` | Boolean | Yes | -| `taskIdentifier` | String | Yes | +| `name` | String | Yes | +| `namespaceId` | UUID | Yes | +| `params` | JSON | Yes | +| `revision` | Int | Yes | +| `slug` | String | Yes | +| `status` | String | Yes | +| `storeId` | UUID | Yes | +| `updatedAt` | Datetime | No | +| `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | **Operations:** ```typescript -// List all platformFunctionInvocationAttempt records -const items = await db.platformFunctionInvocationAttempt.findMany({ select: { actorId: true, attempt: true, createdAt: true, durationMs: true, error: true, errorDetail: true, id: true, invocationCreatedAt: true, invocationId: true, startedAt: true, success: true, taskIdentifier: true } }).execute(); +// List all platformResourceInstallation records +const items = await db.platformResourceInstallation.findMany({ select: { commitId: true, createdAt: true, createdBy: true, createdByPrincipal: true, id: true, name: true, namespaceId: true, params: true, revision: true, slug: true, status: true, storeId: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.platformFunctionInvocationAttempt.findOne({ id: '', select: { actorId: true, attempt: true, createdAt: true, durationMs: true, error: true, errorDetail: true, id: true, invocationCreatedAt: true, invocationId: true, startedAt: true, success: true, taskIdentifier: true } }).execute(); +const item = await db.platformResourceInstallation.findOne({ id: '', select: { commitId: true, createdAt: true, createdBy: true, createdByPrincipal: true, id: true, name: true, namespaceId: true, params: true, revision: true, slug: true, status: true, storeId: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.platformFunctionInvocationAttempt.create({ data: { actorId: '', attempt: '', durationMs: '', error: '', errorDetail: '', invocationCreatedAt: '', invocationId: '', startedAt: '', success: '', taskIdentifier: '' }, select: { id: true } }).execute(); +const created = await db.platformResourceInstallation.create({ data: { commitId: '', createdBy: '', createdByPrincipal: '', name: '', namespaceId: '', params: '', revision: '', slug: '', status: '', storeId: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformFunctionInvocationAttempt.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); +const updated = await db.platformResourceInstallation.update({ where: { id: '' }, data: { commitId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformFunctionInvocationAttempt.delete({ where: { id: '' } }).execute(); +const deleted = await db.platformResourceInstallation.delete({ where: { id: '' } }).execute(); ``` -### `db.platformFunctionInvocation` +### `db.platformResourceObservedStorage` -CRUD operations for PlatformFunctionInvocation records. +CRUD operations for PlatformResourceObservedStorage records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `capacity` | String | Yes | +| `capacityBytes` | BigInt | Yes | +| `claimName` | String | Yes | +| `declaredStorageClass` | String | Yes | +| `declaredStorageSizeBytes` | BigInt | Yes | +| `declaredStorageTotalBytes` | BigInt | Yes | +| `installationId` | UUID | Yes | +| `isBound` | Boolean | Yes | +| `kind` | String | Yes | +| `namespaceId` | UUID | Yes | +| `phase` | String | Yes | +| `requested` | String | Yes | +| `requestedBytes` | BigInt | Yes | +| `resourceId` | UUID | Yes | +| `resourceStatus` | String | Yes | +| `slug` | String | Yes | +| `storageClass` | String | Yes | +| `storageName` | String | Yes | + +**Operations:** + +```typescript +// List all platformResourceObservedStorage records +const items = await db.platformResourceObservedStorage.findMany({ select: { capacity: true, capacityBytes: true, claimName: true, declaredStorageClass: true, declaredStorageSizeBytes: true, declaredStorageTotalBytes: true, installationId: true, isBound: true, kind: true, namespaceId: true, phase: true, requested: true, requestedBytes: true, resourceId: true, resourceStatus: true, slug: true, storageClass: true, storageName: true } }).execute(); + +// Get one by id +const item = await db.platformResourceObservedStorage.findOne({ id: '', select: { capacity: true, capacityBytes: true, claimName: true, declaredStorageClass: true, declaredStorageSizeBytes: true, declaredStorageTotalBytes: true, installationId: true, isBound: true, kind: true, namespaceId: true, phase: true, requested: true, requestedBytes: true, resourceId: true, resourceStatus: true, slug: true, storageClass: true, storageName: true } }).execute(); + +// Create +const created = await db.platformResourceObservedStorage.create({ data: { capacity: '', capacityBytes: '', claimName: '', declaredStorageClass: '', declaredStorageSizeBytes: '', declaredStorageTotalBytes: '', installationId: '', isBound: '', kind: '', namespaceId: '', phase: '', requested: '', requestedBytes: '', resourceId: '', resourceStatus: '', slug: '', storageClass: '', storageName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformResourceObservedStorage.update({ where: { id: '' }, data: { capacity: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformResourceObservedStorage.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformResourceStatusCheck` + +CRUD operations for PlatformResourceStatusCheck records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `actorId` | UUID | Yes | -| `apiBindingId` | UUID | Yes | -| `channel` | String | Yes | | `completedAt` | Datetime | Yes | -| `createdAt` | Datetime | No | -| `databaseId` | UUID | Yes | -| `definitionScope` | String | Yes | -| `durationMs` | Int | Yes | -| `error` | String | Yes | -| `functionDefinitionId` | UUID | Yes | -| `graphExecutionId` | UUID | Yes | | `id` | UUID | No | -| `jobId` | BigInt | Yes | -| `parentInvocationId` | UUID | Yes | -| `payload` | JSON | Yes | -| `provenance` | JSON | Yes | +| `requestedAt` | Datetime | Yes | +| `requestedBy` | UUID | Yes | +| `resourceId` | UUID | Yes | | `result` | JSON | Yes | -| `startedAt` | Datetime | Yes | | `status` | String | Yes | -| `taskIdentifier` | String | Yes | **Operations:** ```typescript -// List all platformFunctionInvocation records -const items = await db.platformFunctionInvocation.findMany({ select: { actorId: true, apiBindingId: true, channel: true, completedAt: true, createdAt: true, databaseId: true, definitionScope: true, durationMs: true, error: true, functionDefinitionId: true, graphExecutionId: true, id: true, jobId: true, parentInvocationId: true, payload: true, provenance: true, result: true, startedAt: true, status: true, taskIdentifier: true } }).execute(); +// List all platformResourceStatusCheck records +const items = await db.platformResourceStatusCheck.findMany({ select: { completedAt: true, id: true, requestedAt: true, requestedBy: true, resourceId: true, result: true, status: true } }).execute(); // Get one by id -const item = await db.platformFunctionInvocation.findOne({ id: '', select: { actorId: true, apiBindingId: true, channel: true, completedAt: true, createdAt: true, databaseId: true, definitionScope: true, durationMs: true, error: true, functionDefinitionId: true, graphExecutionId: true, id: true, jobId: true, parentInvocationId: true, payload: true, provenance: true, result: true, startedAt: true, status: true, taskIdentifier: true } }).execute(); +const item = await db.platformResourceStatusCheck.findOne({ id: '', select: { completedAt: true, id: true, requestedAt: true, requestedBy: true, resourceId: true, result: true, status: true } }).execute(); // Create -const created = await db.platformFunctionInvocation.create({ data: { actorId: '', apiBindingId: '', channel: '', completedAt: '', databaseId: '', definitionScope: '', durationMs: '', error: '', functionDefinitionId: '', graphExecutionId: '', jobId: '', parentInvocationId: '', payload: '', provenance: '', result: '', startedAt: '', status: '', taskIdentifier: '' }, select: { id: true } }).execute(); +const created = await db.platformResourceStatusCheck.create({ data: { completedAt: '', requestedAt: '', requestedBy: '', resourceId: '', result: '', status: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformFunctionInvocation.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); +const updated = await db.platformResourceStatusCheck.update({ where: { id: '' }, data: { completedAt: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformFunctionInvocation.delete({ where: { id: '' } }).execute(); +const deleted = await db.platformResourceStatusCheck.delete({ where: { id: '' } }).execute(); ``` -### `db.platformInfraCommit` +### `db.platformResourceUsageLog` -CRUD operations for PlatformInfraCommit records. +CRUD operations for PlatformResourceUsageLog records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `authorId` | UUID | Yes | -| `committerId` | UUID | Yes | -| `date` | Datetime | Yes | +| `cpuMillicores` | BigInt | Yes | | `id` | UUID | No | -| `message` | String | Yes | -| `parentIds` | UUID | Yes | -| `scopeId` | UUID | Yes | -| `storeId` | UUID | Yes | -| `treeId` | UUID | Yes | +| `intervalSeconds` | Int | Yes | +| `memoryBytes` | BigInt | Yes | +| `metrics` | JSON | Yes | +| `namespaceId` | UUID | Yes | +| `resourceId` | UUID | Yes | +| `sampledAt` | Datetime | Yes | +| `source` | String | Yes | **Operations:** ```typescript -// List all platformInfraCommit records -const items = await db.platformInfraCommit.findMany({ select: { authorId: true, committerId: true, date: true, id: true, message: true, parentIds: true, scopeId: true, storeId: true, treeId: true } }).execute(); +// List all platformResourceUsageLog records +const items = await db.platformResourceUsageLog.findMany({ select: { cpuMillicores: true, id: true, intervalSeconds: true, memoryBytes: true, metrics: true, namespaceId: true, resourceId: true, sampledAt: true, source: true } }).execute(); // Get one by id -const item = await db.platformInfraCommit.findOne({ id: '', select: { authorId: true, committerId: true, date: true, id: true, message: true, parentIds: true, scopeId: true, storeId: true, treeId: true } }).execute(); +const item = await db.platformResourceUsageLog.findOne({ id: '', select: { cpuMillicores: true, id: true, intervalSeconds: true, memoryBytes: true, metrics: true, namespaceId: true, resourceId: true, sampledAt: true, source: true } }).execute(); // Create -const created = await db.platformInfraCommit.create({ data: { authorId: '', committerId: '', date: '', message: '', parentIds: '', scopeId: '', storeId: '', treeId: '' }, select: { id: true } }).execute(); +const created = await db.platformResourceUsageLog.create({ data: { cpuMillicores: '', intervalSeconds: '', memoryBytes: '', metrics: '', namespaceId: '', resourceId: '', sampledAt: '', source: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformInfraCommit.update({ where: { id: '' }, data: { authorId: '' }, select: { id: true } }).execute(); +const updated = await db.platformResourceUsageLog.update({ where: { id: '' }, data: { cpuMillicores: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformInfraCommit.delete({ where: { id: '' } }).execute(); +const deleted = await db.platformResourceUsageLog.delete({ where: { id: '' } }).execute(); ``` -### `db.platformInfraGetAllTreeNodesRecord` +### `db.platformResourceUsageSummary` -CRUD operations for PlatformInfraGetAllTreeNodesRecord records. +CRUD operations for PlatformResourceUsageSummary records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `data` | JSON | Yes | -| `path` | String | Yes | +| `date` | Date | Yes | +| `gbSeconds` | BigFloat | Yes | +| `id` | UUID | No | +| `maxCpuMillicores` | BigInt | Yes | +| `maxMemoryBytes` | BigInt | Yes | +| `namespaceId` | UUID | Yes | +| `resourceId` | UUID | Yes | +| `runtimeSeconds` | BigInt | Yes | +| `sampleCount` | Int | Yes | **Operations:** ```typescript -// List all platformInfraGetAllTreeNodesRecord records -const items = await db.platformInfraGetAllTreeNodesRecord.findMany({ select: { data: true, path: true } }).execute(); +// List all platformResourceUsageSummary records +const items = await db.platformResourceUsageSummary.findMany({ select: { date: true, gbSeconds: true, id: true, maxCpuMillicores: true, maxMemoryBytes: true, namespaceId: true, resourceId: true, runtimeSeconds: true, sampleCount: true } }).execute(); // Get one by id -const item = await db.platformInfraGetAllTreeNodesRecord.findOne({ id: '', select: { data: true, path: true } }).execute(); +const item = await db.platformResourceUsageSummary.findOne({ id: '', select: { date: true, gbSeconds: true, id: true, maxCpuMillicores: true, maxMemoryBytes: true, namespaceId: true, resourceId: true, runtimeSeconds: true, sampleCount: true } }).execute(); // Create -const created = await db.platformInfraGetAllTreeNodesRecord.create({ data: { data: '', path: '' }, select: { id: true } }).execute(); +const created = await db.platformResourceUsageSummary.create({ data: { date: '', gbSeconds: '', maxCpuMillicores: '', maxMemoryBytes: '', namespaceId: '', resourceId: '', runtimeSeconds: '', sampleCount: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformInfraGetAllTreeNodesRecord.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); +const updated = await db.platformResourceUsageSummary.update({ where: { id: '' }, data: { date: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformInfraGetAllTreeNodesRecord.delete({ where: { id: '' } }).execute(); +const deleted = await db.platformResourceUsageSummary.delete({ where: { id: '' } }).execute(); ``` -### `db.platformInfraObject` +### `db.platformResourceUtilization` -CRUD operations for PlatformInfraObject records. +CRUD operations for PlatformResourceUtilization records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `avgMemoryBytes` | BigInt | Yes | +| `cpuLimitMillicores` | BigInt | Yes | +| `cpuPeakUtilization` | BigFloat | Yes | +| `cpuRequestHeadroomMillicores` | BigInt | Yes | +| `cpuRequestMillicores` | BigInt | Yes | +| `date` | Date | Yes | +| `gbSeconds` | BigFloat | Yes | +| `kind` | String | Yes | +| `maxCpuMillicores` | BigInt | Yes | +| `maxMemoryBytes` | BigInt | Yes | +| `memoryLimitBytes` | BigInt | Yes | +| `memoryPeakUtilization` | BigFloat | Yes | +| `memoryRequestBytes` | BigInt | Yes | +| `memoryRequestHeadroomBytes` | BigInt | Yes | +| `namespaceId` | UUID | Yes | +| `replicas` | Int | Yes | +| `resourceId` | UUID | Yes | +| `runtimeSeconds` | BigInt | Yes | +| `sampleCount` | Int | Yes | + +**Operations:** + +```typescript +// List all platformResourceUtilization records +const items = await db.platformResourceUtilization.findMany({ select: { avgMemoryBytes: true, cpuLimitMillicores: true, cpuPeakUtilization: true, cpuRequestHeadroomMillicores: true, cpuRequestMillicores: true, date: true, gbSeconds: true, kind: true, maxCpuMillicores: true, maxMemoryBytes: true, memoryLimitBytes: true, memoryPeakUtilization: true, memoryRequestBytes: true, memoryRequestHeadroomBytes: true, namespaceId: true, replicas: true, resourceId: true, runtimeSeconds: true, sampleCount: true } }).execute(); + +// Get one by id +const item = await db.platformResourceUtilization.findOne({ id: '', select: { avgMemoryBytes: true, cpuLimitMillicores: true, cpuPeakUtilization: true, cpuRequestHeadroomMillicores: true, cpuRequestMillicores: true, date: true, gbSeconds: true, kind: true, maxCpuMillicores: true, maxMemoryBytes: true, memoryLimitBytes: true, memoryPeakUtilization: true, memoryRequestBytes: true, memoryRequestHeadroomBytes: true, namespaceId: true, replicas: true, resourceId: true, runtimeSeconds: true, sampleCount: true } }).execute(); + +// Create +const created = await db.platformResourceUtilization.create({ data: { avgMemoryBytes: '', cpuLimitMillicores: '', cpuPeakUtilization: '', cpuRequestHeadroomMillicores: '', cpuRequestMillicores: '', date: '', gbSeconds: '', kind: '', maxCpuMillicores: '', maxMemoryBytes: '', memoryLimitBytes: '', memoryPeakUtilization: '', memoryRequestBytes: '', memoryRequestHeadroomBytes: '', namespaceId: '', replicas: '', resourceId: '', runtimeSeconds: '', sampleCount: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformResourceUtilization.update({ where: { id: '' }, data: { avgMemoryBytes: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformResourceUtilization.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformResourcesHealth` + +CRUD operations for PlatformResourcesHealth records. **Fields:** | Field | Type | Editable | |-------|------|----------| +| `annotations` | JSON | Yes | +| `cpuLimitMillicores` | BigInt | Yes | +| `cpuRequestMillicores` | BigInt | Yes | | `createdAt` | Datetime | No | -| `data` | JSON | Yes | +| `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | +| `errorCount` | Int | Yes | | `id` | UUID | No | -| `kids` | UUID | Yes | -| `ktree` | String | Yes | -| `scopeId` | UUID | Yes | +| `imageRef` | String | Yes | +| `installationId` | UUID | Yes | +| `integrations` | String | Yes | +| `kind` | String | Yes | +| `labels` | JSON | Yes | +| `lastError` | String | Yes | +| `lastHeartbeatAt` | Datetime | Yes | +| `memoryLimitBytes` | BigInt | Yes | +| `memoryRequestBytes` | BigInt | Yes | +| `name` | String | Yes | +| `namespaceId` | UUID | Yes | +| `realm` | String | Yes | +| `replicas` | Int | Yes | +| `requiredConfigs` | ResourceRequirement | Yes | +| `requiredSecrets` | ResourceRequirement | Yes | +| `resourceDefinitionId` | UUID | Yes | +| `slug` | String | Yes | +| `spec` | JSON | Yes | +| `status` | String | Yes | +| `statusDetail` | String | Yes | +| `statusObserved` | JSON | Yes | +| `storageClass` | String | Yes | +| `storageSizeBytes` | BigInt | Yes | +| `storageTotalBytes` | BigInt | Yes | +| `updatedAt` | Datetime | No | +| `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | **Operations:** ```typescript -// List all platformInfraObject records -const items = await db.platformInfraObject.findMany({ select: { createdAt: true, data: true, id: true, kids: true, ktree: true, scopeId: true } }).execute(); +// List all platformResourcesHealth records +const items = await db.platformResourcesHealth.findMany({ select: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusDetail: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.platformInfraObject.findOne({ id: '', select: { createdAt: true, data: true, id: true, kids: true, ktree: true, scopeId: true } }).execute(); +const item = await db.platformResourcesHealth.findOne({ id: '', select: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusDetail: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.platformInfraObject.create({ data: { data: '', kids: '', ktree: '', scopeId: '' }, select: { id: true } }).execute(); +const created = await db.platformResourcesHealth.create({ data: { annotations: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', createdByPrincipal: '', errorCount: '', imageRef: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusDetail: '', statusObserved: '', storageClass: '', storageSizeBytes: '', storageTotalBytes: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformInfraObject.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); +const updated = await db.platformResourcesHealth.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformInfraObject.delete({ where: { id: '' } }).execute(); +const deleted = await db.platformResourcesHealth.delete({ where: { id: '' } }).execute(); ``` -### `db.platformInfraRef` +### `db.platformResourcesRequirementsState` -CRUD operations for PlatformInfraRef records. +CRUD operations for PlatformResourcesRequirementsState records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `commitId` | UUID | Yes | -| `id` | UUID | No | -| `name` | String | Yes | -| `scopeId` | UUID | Yes | -| `storeId` | UUID | Yes | +| `configHash` | String | Yes | +| `configObjectName` | String | Yes | +| `requirementsHash` | String | Yes | +| `resourceId` | UUID | Yes | +| `secretsHash` | String | Yes | +| `secretsObjectName` | String | Yes | +| `slug` | String | Yes | **Operations:** ```typescript -// List all platformInfraRef records -const items = await db.platformInfraRef.findMany({ select: { commitId: true, id: true, name: true, scopeId: true, storeId: true } }).execute(); +// List all platformResourcesRequirementsState records +const items = await db.platformResourcesRequirementsState.findMany({ select: { configHash: true, configObjectName: true, requirementsHash: true, resourceId: true, secretsHash: true, secretsObjectName: true, slug: true } }).execute(); // Get one by id -const item = await db.platformInfraRef.findOne({ id: '', select: { commitId: true, id: true, name: true, scopeId: true, storeId: true } }).execute(); +const item = await db.platformResourcesRequirementsState.findOne({ id: '', select: { configHash: true, configObjectName: true, requirementsHash: true, resourceId: true, secretsHash: true, secretsObjectName: true, slug: true } }).execute(); // Create -const created = await db.platformInfraRef.create({ data: { commitId: '', name: '', scopeId: '', storeId: '' }, select: { id: true } }).execute(); +const created = await db.platformResourcesRequirementsState.create({ data: { configHash: '', configObjectName: '', requirementsHash: '', resourceId: '', secretsHash: '', secretsObjectName: '', slug: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformInfraRef.update({ where: { id: '' }, data: { commitId: '' }, select: { id: true } }).execute(); +const updated = await db.platformResourcesRequirementsState.update({ where: { id: '' }, data: { configHash: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformInfraRef.delete({ where: { id: '' } }).execute(); +const deleted = await db.platformResourcesRequirementsState.delete({ where: { id: '' } }).execute(); ``` -### `db.platformInfraStore` +### `db.platformResourcesResolvedRequirement` -CRUD operations for PlatformInfraStore records. +CRUD operations for PlatformResourcesResolvedRequirement records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `createdAt` | Datetime | No | -| `hash` | UUID | Yes | -| `id` | UUID | No | +| `atomId` | UUID | Yes | +| `configObjectName` | String | Yes | | `name` | String | Yes | -| `scopeId` | UUID | Yes | +| `namespaceId` | UUID | Yes | +| `present` | Boolean | Yes | +| `realm` | String | Yes | +| `required` | Boolean | Yes | +| `requirementKind` | String | Yes | +| `resourceId` | UUID | Yes | +| `secretsObjectName` | String | Yes | +| `slug` | String | Yes | **Operations:** ```typescript -// List all platformInfraStore records -const items = await db.platformInfraStore.findMany({ select: { createdAt: true, hash: true, id: true, name: true, scopeId: true } }).execute(); +// List all platformResourcesResolvedRequirement records +const items = await db.platformResourcesResolvedRequirement.findMany({ select: { atomId: true, configObjectName: true, name: true, namespaceId: true, present: true, realm: true, required: true, requirementKind: true, resourceId: true, secretsObjectName: true, slug: true } }).execute(); // Get one by id -const item = await db.platformInfraStore.findOne({ id: '', select: { createdAt: true, hash: true, id: true, name: true, scopeId: true } }).execute(); +const item = await db.platformResourcesResolvedRequirement.findOne({ id: '', select: { atomId: true, configObjectName: true, name: true, namespaceId: true, present: true, realm: true, required: true, requirementKind: true, resourceId: true, secretsObjectName: true, slug: true } }).execute(); // Create -const created = await db.platformInfraStore.create({ data: { hash: '', name: '', scopeId: '' }, select: { id: true } }).execute(); +const created = await db.platformResourcesResolvedRequirement.create({ data: { atomId: '', configObjectName: '', name: '', namespaceId: '', present: '', realm: '', required: '', requirementKind: '', resourceId: '', secretsObjectName: '', slug: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformInfraStore.update({ where: { id: '' }, data: { hash: '' }, select: { id: true } }).execute(); +const updated = await db.platformResourcesResolvedRequirement.update({ where: { id: '' }, data: { atomId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformInfraStore.delete({ where: { id: '' } }).execute(); +const deleted = await db.platformResourcesResolvedRequirement.delete({ where: { id: '' } }).execute(); ``` -### `db.platformNamespace` +### `db.platformWebhookEndpoint` -CRUD operations for PlatformNamespace records. +CRUD operations for PlatformWebhookEndpoint records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `annotations` | JSON | Yes | +| `active` | Boolean | Yes | | `createdAt` | Datetime | No | -| `description` | String | Yes | +| `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | +| `functionDefinitionId` | UUID | Yes | +| `host` | String | Yes | | `id` | UUID | No | -| `isActive` | Boolean | Yes | -| `isManaged` | Boolean | Yes | -| `labels` | JSON | Yes | -| `lastError` | String | Yes | -| `name` | String | Yes | -| `namespaceName` | String | Yes | -| `status` | String | Yes | +| `namespaceId` | UUID | Yes | +| `path` | String | Yes | +| `provider` | String | Yes | +| `replayWindowSeconds` | Int | Yes | +| `signingSecretName` | String | Yes | | `updatedAt` | Datetime | No | +| `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | **Operations:** ```typescript -// List all platformNamespace records -const items = await db.platformNamespace.findMany({ select: { annotations: true, createdAt: true, description: true, id: true, isActive: true, isManaged: true, labels: true, lastError: true, name: true, namespaceName: true, status: true, updatedAt: true } }).execute(); +// List all platformWebhookEndpoint records +const items = await db.platformWebhookEndpoint.findMany({ select: { active: true, createdAt: true, createdBy: true, createdByPrincipal: true, functionDefinitionId: true, host: true, id: true, namespaceId: true, path: true, provider: true, replayWindowSeconds: true, signingSecretName: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.platformNamespace.findOne({ id: '', select: { annotations: true, createdAt: true, description: true, id: true, isActive: true, isManaged: true, labels: true, lastError: true, name: true, namespaceName: true, status: true, updatedAt: true } }).execute(); +const item = await db.platformWebhookEndpoint.findOne({ id: '', select: { active: true, createdAt: true, createdBy: true, createdByPrincipal: true, functionDefinitionId: true, host: true, id: true, namespaceId: true, path: true, provider: true, replayWindowSeconds: true, signingSecretName: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.platformNamespace.create({ data: { annotations: '', description: '', isActive: '', isManaged: '', labels: '', lastError: '', name: '', namespaceName: '', status: '' }, select: { id: true } }).execute(); +const created = await db.platformWebhookEndpoint.create({ data: { active: '', createdBy: '', createdByPrincipal: '', functionDefinitionId: '', host: '', namespaceId: '', path: '', provider: '', replayWindowSeconds: '', signingSecretName: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformNamespace.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); +const updated = await db.platformWebhookEndpoint.update({ where: { id: '' }, data: { active: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformNamespace.delete({ where: { id: '' } }).execute(); +const deleted = await db.platformWebhookEndpoint.delete({ where: { id: '' } }).execute(); ``` -### `db.platformNamespaceEvent` +### `db.platformWebhookEvent` -CRUD operations for PlatformNamespaceEvent records. +CRUD operations for PlatformWebhookEvent records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `actorId` | UUID | Yes | | `createdAt` | Datetime | No | -| `eventType` | String | Yes | +| `endpointId` | UUID | Yes | +| `error` | String | Yes | +| `externalEventId` | String | Yes | | `id` | UUID | No | -| `message` | String | Yes | -| `metadata` | JSON | Yes | -| `namespaceId` | UUID | Yes | +| `invocationCreatedAt` | Datetime | Yes | +| `invocationId` | UUID | Yes | +| `payload` | JSON | Yes | +| `provider` | String | Yes | +| `providerTimestamp` | Datetime | Yes | +| `status` | String | Yes | +| `updatedAt` | Datetime | No | **Operations:** ```typescript -// List all platformNamespaceEvent records -const items = await db.platformNamespaceEvent.findMany({ select: { actorId: true, createdAt: true, eventType: true, id: true, message: true, metadata: true, namespaceId: true } }).execute(); +// List all platformWebhookEvent records +const items = await db.platformWebhookEvent.findMany({ select: { createdAt: true, endpointId: true, error: true, externalEventId: true, id: true, invocationCreatedAt: true, invocationId: true, payload: true, provider: true, providerTimestamp: true, status: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.platformNamespaceEvent.findOne({ id: '', select: { actorId: true, createdAt: true, eventType: true, id: true, message: true, metadata: true, namespaceId: true } }).execute(); +const item = await db.platformWebhookEvent.findOne({ id: '', select: { createdAt: true, endpointId: true, error: true, externalEventId: true, id: true, invocationCreatedAt: true, invocationId: true, payload: true, provider: true, providerTimestamp: true, status: true, updatedAt: true } }).execute(); // Create -const created = await db.platformNamespaceEvent.create({ data: { actorId: '', eventType: '', message: '', metadata: '', namespaceId: '' }, select: { id: true } }).execute(); +const created = await db.platformWebhookEvent.create({ data: { endpointId: '', error: '', externalEventId: '', invocationCreatedAt: '', invocationId: '', payload: '', provider: '', providerTimestamp: '', status: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformNamespaceEvent.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); +const updated = await db.platformWebhookEvent.update({ where: { id: '' }, data: { endpointId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformNamespaceEvent.delete({ where: { id: '' } }).execute(); +const deleted = await db.platformWebhookEvent.delete({ where: { id: '' } }).execute(); ``` -### `db.platformResource` +### `db.proposalComment` -CRUD operations for PlatformResource records. +CRUD operations for ProposalComment records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `annotations` | JSON | Yes | -| `cpuLimitMillicores` | BigInt | Yes | -| `cpuRequestMillicores` | BigInt | Yes | +| `actorId` | UUID | Yes | +| `attachments` | ConstructiveInternalTypeUpload | Yes | +| `body` | String | Yes | +| `bodyTrgmSimilarity` | Float | Yes | | `createdAt` | Datetime | No | | `createdBy` | UUID | Yes | -| `errorCount` | Int | Yes | +| `createdByPrincipal` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `embedding` | Vector | Yes | +| `embeddingUpdatedAt` | Datetime | Yes | +| `embeddingVectorDistance` | Float | Yes | | `id` | UUID | No | -| `installationId` | UUID | Yes | -| `integrations` | String | Yes | -| `kind` | String | Yes | -| `labels` | JSON | Yes | -| `lastError` | String | Yes | -| `lastHeartbeatAt` | Datetime | Yes | -| `memoryLimitBytes` | BigInt | Yes | -| `memoryRequestBytes` | BigInt | Yes | -| `name` | String | Yes | -| `namespaceId` | UUID | Yes | -| `realm` | String | Yes | -| `replicas` | Int | Yes | -| `requiredConfigs` | ResourceRequirement | Yes | -| `requiredSecrets` | ResourceRequirement | Yes | -| `resourceDefinitionId` | UUID | Yes | -| `slug` | String | Yes | -| `spec` | JSON | Yes | -| `status` | String | Yes | -| `statusObserved` | JSON | Yes | -| `storageClass` | String | Yes | -| `storageSizeBytes` | BigInt | Yes | +| `line` | Int | Yes | +| `outdatedAt` | Datetime | Yes | +| `path` | String | Yes | +| `pathTrgmSimilarity` | Float | Yes | +| `proposalId` | UUID | Yes | +| `resolvedAt` | Datetime | Yes | +| `search` | FullText | Yes | +| `searchScore` | Float | Yes | +| `searchTsvRank` | Float | Yes | | `updatedAt` | Datetime | No | | `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | **Operations:** ```typescript -// List all platformResource records -const items = await db.platformResource.findMany({ select: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, errorCount: true, id: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusObserved: true, storageClass: true, storageSizeBytes: true, updatedAt: true, updatedBy: true } }).execute(); +// List all proposalComment records +const items = await db.proposalComment.findMany({ select: { actorId: true, attachments: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.platformResource.findOne({ id: '', select: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, errorCount: true, id: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusObserved: true, storageClass: true, storageSizeBytes: true, updatedAt: true, updatedBy: true } }).execute(); +const item = await db.proposalComment.findOne({ id: '', select: { actorId: true, attachments: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.platformResource.create({ data: { annotations: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', errorCount: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusObserved: '', storageClass: '', storageSizeBytes: '', updatedBy: '' }, select: { id: true } }).execute(); +const created = await db.proposalComment.create({ data: { actorId: '', attachments: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', line: '', outdatedAt: '', path: '', pathTrgmSimilarity: '', proposalId: '', resolvedAt: '', search: '', searchScore: '', searchTsvRank: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformResource.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); +const updated = await db.proposalComment.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformResource.delete({ where: { id: '' } }).execute(); +const deleted = await db.proposalComment.delete({ where: { id: '' } }).execute(); ``` -### `db.platformResourceDeclaredCapacity` - -CRUD operations for PlatformResourceDeclaredCapacity records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `cpuLimitMillicores` | BigInt | Yes | -| `cpuRequestMillicores` | BigInt | Yes | -| `installationId` | UUID | Yes | -| `isTransient` | Boolean | Yes | -| `kind` | String | Yes | -| `memoryLimitBytes` | BigInt | Yes | -| `memoryRequestBytes` | BigInt | Yes | -| `namespaceId` | UUID | Yes | -| `podCountMax` | Int | Yes | -| `podCountMin` | Int | Yes | -| `source` | String | Yes | -| `sourceId` | UUID | Yes | -| `storageSizeBytes` | BigInt | Yes | - -**Operations:** - -```typescript -// List all platformResourceDeclaredCapacity records -const items = await db.platformResourceDeclaredCapacity.findMany({ select: { cpuLimitMillicores: true, cpuRequestMillicores: true, installationId: true, isTransient: true, kind: true, memoryLimitBytes: true, memoryRequestBytes: true, namespaceId: true, podCountMax: true, podCountMin: true, source: true, sourceId: true, storageSizeBytes: true } }).execute(); - -// Get one by id -const item = await db.platformResourceDeclaredCapacity.findOne({ id: '', select: { cpuLimitMillicores: true, cpuRequestMillicores: true, installationId: true, isTransient: true, kind: true, memoryLimitBytes: true, memoryRequestBytes: true, namespaceId: true, podCountMax: true, podCountMin: true, source: true, sourceId: true, storageSizeBytes: true } }).execute(); - -// Create -const created = await db.platformResourceDeclaredCapacity.create({ data: { cpuLimitMillicores: '', cpuRequestMillicores: '', installationId: '', isTransient: '', kind: '', memoryLimitBytes: '', memoryRequestBytes: '', namespaceId: '', podCountMax: '', podCountMin: '', source: '', sourceId: '', storageSizeBytes: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.platformResourceDeclaredCapacity.update({ where: { id: '' }, data: { cpuLimitMillicores: '' }, select: { id: true } }).execute(); +> **pgvector embedding fields:** `embedding` +> High-dimensional vector columns for semantic similarity search. Query via the Unified Search API pgvector adapter using cosine, L2, or inner-product distance. -// Delete -const deleted = await db.platformResourceDeclaredCapacity.delete({ where: { id: '' } }).execute(); -``` +> **Unified Search API fields:** `search` +> Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. -### `db.platformResourceDefinition` +### `db.proposal` -CRUD operations for PlatformResourceDefinition records. +CRUD operations for Proposal records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `annotations` | JSON | Yes | +| `actorId` | UUID | Yes | +| `body` | String | Yes | +| `bodyTrgmSimilarity` | Float | Yes | +| `closedReason` | String | Yes | +| `closedReasonTrgmSimilarity` | Float | Yes | | `createdAt` | Datetime | No | | `createdBy` | UUID | Yes | -| `defaultSpec` | JSON | Yes | -| `description` | String | Yes | +| `createdByPrincipal` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `decidedAt` | Datetime | Yes | +| `dueAt` | Datetime | Yes | +| `embedding` | Vector | Yes | +| `embeddingUpdatedAt` | Datetime | Yes | +| `embeddingVectorDistance` | Float | Yes | | `id` | UUID | No | -| `integrations` | String | Yes | | `kind` | String | Yes | -| `labels` | JSON | Yes | -| `name` | String | Yes | -| `namespaceId` | UUID | Yes | -| `paramsSchema` | JSON | Yes | -| `requiredConfigs` | ResourceRequirement | Yes | -| `requiredSecrets` | ResourceRequirement | Yes | -| `slug` | String | Yes | -| `stepUpMinAge` | Interval | Yes | +| `kindTrgmSimilarity` | Float | Yes | +| `labels` | String | Yes | +| `mergeCommit` | String | Yes | +| `mergeCommitTrgmSimilarity` | Float | Yes | +| `mergeMethod` | String | Yes | +| `mergeMethodTrgmSimilarity` | Float | Yes | +| `mergeRequestedAt` | Datetime | Yes | +| `mergedAt` | Datetime | Yes | +| `metadata` | JSON | Yes | +| `parentId` | UUID | Yes | +| `priority` | BigFloat | Yes | +| `repositoryId` | UUID | Yes | +| `resolution` | String | Yes | +| `resolutionTrgmSimilarity` | Float | Yes | +| `search` | FullText | Yes | +| `searchScore` | Float | Yes | +| `searchTsvRank` | Float | Yes | +| `sourceRef` | String | Yes | +| `sourceRefTrgmSimilarity` | Float | Yes | +| `status` | String | Yes | +| `statusTrgmSimilarity` | Float | Yes | +| `targetRef` | String | Yes | +| `targetRefTrgmSimilarity` | Float | Yes | +| `title` | String | Yes | +| `titleTrgmSimilarity` | Float | Yes | | `updatedAt` | Datetime | No | | `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | **Operations:** ```typescript -// List all platformResourceDefinition records -const items = await db.platformResourceDefinition.findMany({ select: { annotations: true, createdAt: true, createdBy: true, defaultSpec: true, description: true, id: true, integrations: true, kind: true, labels: true, name: true, namespaceId: true, paramsSchema: true, requiredConfigs: true, requiredSecrets: true, slug: true, stepUpMinAge: true, updatedAt: true, updatedBy: true } }).execute(); +// List all proposal records +const items = await db.proposal.findMany({ select: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, decidedAt: true, dueAt: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.platformResourceDefinition.findOne({ id: '', select: { annotations: true, createdAt: true, createdBy: true, defaultSpec: true, description: true, id: true, integrations: true, kind: true, labels: true, name: true, namespaceId: true, paramsSchema: true, requiredConfigs: true, requiredSecrets: true, slug: true, stepUpMinAge: true, updatedAt: true, updatedBy: true } }).execute(); +const item = await db.proposal.findOne({ id: '', select: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, decidedAt: true, dueAt: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.platformResourceDefinition.create({ data: { annotations: '', createdBy: '', defaultSpec: '', description: '', integrations: '', kind: '', labels: '', name: '', namespaceId: '', paramsSchema: '', requiredConfigs: '', requiredSecrets: '', slug: '', stepUpMinAge: '', updatedBy: '' }, select: { id: true } }).execute(); +const created = await db.proposal.create({ data: { actorId: '', body: '', bodyTrgmSimilarity: '', closedReason: '', closedReasonTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', decidedAt: '', dueAt: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', kind: '', kindTrgmSimilarity: '', labels: '', mergeCommit: '', mergeCommitTrgmSimilarity: '', mergeMethod: '', mergeMethodTrgmSimilarity: '', mergeRequestedAt: '', mergedAt: '', metadata: '', parentId: '', priority: '', repositoryId: '', resolution: '', resolutionTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', sourceRef: '', sourceRefTrgmSimilarity: '', status: '', statusTrgmSimilarity: '', targetRef: '', targetRefTrgmSimilarity: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformResourceDefinition.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); +const updated = await db.proposal.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformResourceDefinition.delete({ where: { id: '' } }).execute(); +const deleted = await db.proposal.delete({ where: { id: '' } }).execute(); ``` -### `db.platformResourceEvent` +> **pgvector embedding fields:** `embedding` +> High-dimensional vector columns for semantic similarity search. Query via the Unified Search API pgvector adapter using cosine, L2, or inner-product distance. -CRUD operations for PlatformResourceEvent records. +> **Unified Search API fields:** `search` +> Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. + +### `db.proposalFileView` + +CRUD operations for ProposalFileView records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `actorId` | UUID | Yes | +| `blobSha` | String | Yes | | `createdAt` | Datetime | No | -| `eventType` | String | Yes | +| `createdByPrincipal` | UUID | Yes | +| `databaseId` | UUID | Yes | | `id` | UUID | No | -| `message` | String | Yes | -| `metadata` | JSON | Yes | -| `resourceId` | UUID | Yes | +| `path` | String | Yes | +| `proposalId` | UUID | Yes | +| `reviewerId` | UUID | Yes | +| `updatedAt` | Datetime | No | +| `updatedByPrincipal` | UUID | Yes | +| `viewedAt` | Datetime | Yes | **Operations:** ```typescript -// List all platformResourceEvent records -const items = await db.platformResourceEvent.findMany({ select: { actorId: true, createdAt: true, eventType: true, id: true, message: true, metadata: true, resourceId: true } }).execute(); +// List all proposalFileView records +const items = await db.proposalFileView.findMany({ select: { blobSha: true, createdAt: true, createdByPrincipal: true, databaseId: true, id: true, path: true, proposalId: true, reviewerId: true, updatedAt: true, updatedByPrincipal: true, viewedAt: true } }).execute(); // Get one by id -const item = await db.platformResourceEvent.findOne({ id: '', select: { actorId: true, createdAt: true, eventType: true, id: true, message: true, metadata: true, resourceId: true } }).execute(); +const item = await db.proposalFileView.findOne({ id: '', select: { blobSha: true, createdAt: true, createdByPrincipal: true, databaseId: true, id: true, path: true, proposalId: true, reviewerId: true, updatedAt: true, updatedByPrincipal: true, viewedAt: true } }).execute(); // Create -const created = await db.platformResourceEvent.create({ data: { actorId: '', eventType: '', message: '', metadata: '', resourceId: '' }, select: { id: true } }).execute(); +const created = await db.proposalFileView.create({ data: { blobSha: '', createdByPrincipal: '', databaseId: '', path: '', proposalId: '', reviewerId: '', updatedByPrincipal: '', viewedAt: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformResourceEvent.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); +const updated = await db.proposalFileView.update({ where: { id: '' }, data: { blobSha: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformResourceEvent.delete({ where: { id: '' } }).execute(); +const deleted = await db.proposalFileView.delete({ where: { id: '' } }).execute(); ``` -### `db.platformResourceInstallation` +### `db.proposalReaction` -CRUD operations for PlatformResourceInstallation records. +CRUD operations for ProposalReaction records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `commitId` | UUID | Yes | +| `actorId` | UUID | Yes | +| `commentId` | UUID | Yes | | `createdAt` | Datetime | No | -| `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `emoji` | String | Yes | | `id` | UUID | No | -| `name` | String | Yes | -| `namespaceId` | UUID | Yes | -| `params` | JSON | Yes | -| `revision` | Int | Yes | -| `slug` | String | Yes | -| `status` | String | Yes | -| `storeId` | UUID | Yes | +| `proposalId` | UUID | Yes | | `updatedAt` | Datetime | No | -| `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | **Operations:** ```typescript -// List all platformResourceInstallation records -const items = await db.platformResourceInstallation.findMany({ select: { commitId: true, createdAt: true, createdBy: true, id: true, name: true, namespaceId: true, params: true, revision: true, slug: true, status: true, storeId: true, updatedAt: true, updatedBy: true } }).execute(); +// List all proposalReaction records +const items = await db.proposalReaction.findMany({ select: { actorId: true, commentId: true, createdAt: true, createdByPrincipal: true, databaseId: true, emoji: true, id: true, proposalId: true, updatedAt: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.platformResourceInstallation.findOne({ id: '', select: { commitId: true, createdAt: true, createdBy: true, id: true, name: true, namespaceId: true, params: true, revision: true, slug: true, status: true, storeId: true, updatedAt: true, updatedBy: true } }).execute(); +const item = await db.proposalReaction.findOne({ id: '', select: { actorId: true, commentId: true, createdAt: true, createdByPrincipal: true, databaseId: true, emoji: true, id: true, proposalId: true, updatedAt: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.platformResourceInstallation.create({ data: { commitId: '', createdBy: '', name: '', namespaceId: '', params: '', revision: '', slug: '', status: '', storeId: '', updatedBy: '' }, select: { id: true } }).execute(); +const created = await db.proposalReaction.create({ data: { actorId: '', commentId: '', createdByPrincipal: '', databaseId: '', emoji: '', proposalId: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformResourceInstallation.update({ where: { id: '' }, data: { commitId: '' }, select: { id: true } }).execute(); +const updated = await db.proposalReaction.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformResourceInstallation.delete({ where: { id: '' } }).execute(); +const deleted = await db.proposalReaction.delete({ where: { id: '' } }).execute(); ``` -### `db.platformResourceStatusCheck` +### `db.proposalReview` -CRUD operations for PlatformResourceStatusCheck records. +CRUD operations for ProposalReview records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `completedAt` | Datetime | Yes | +| `body` | String | Yes | +| `bodyTrgmSimilarity` | Float | Yes | +| `commitSha` | String | Yes | +| `commitShaTrgmSimilarity` | Float | Yes | +| `createdAt` | Datetime | No | +| `createdByPrincipal` | UUID | Yes | +| `databaseId` | UUID | Yes | | `id` | UUID | No | -| `requestedAt` | Datetime | Yes | -| `requestedBy` | UUID | Yes | -| `resourceId` | UUID | Yes | -| `result` | JSON | Yes | -| `status` | String | Yes | +| `proposalId` | UUID | Yes | +| `reviewerId` | UUID | Yes | +| `search` | FullText | Yes | +| `searchScore` | Float | Yes | +| `searchTsvRank` | Float | Yes | +| `submittedAt` | Datetime | Yes | +| `updatedAt` | Datetime | No | +| `updatedByPrincipal` | UUID | Yes | +| `verdict` | String | Yes | +| `verdictTrgmSimilarity` | Float | Yes | **Operations:** ```typescript -// List all platformResourceStatusCheck records -const items = await db.platformResourceStatusCheck.findMany({ select: { completedAt: true, id: true, requestedAt: true, requestedBy: true, resourceId: true, result: true, status: true } }).execute(); +// List all proposalReview records +const items = await db.proposalReview.findMany({ select: { body: true, bodyTrgmSimilarity: true, commitSha: true, commitShaTrgmSimilarity: true, createdAt: true, createdByPrincipal: true, databaseId: true, id: true, proposalId: true, reviewerId: true, search: true, searchScore: true, searchTsvRank: true, submittedAt: true, updatedAt: true, updatedByPrincipal: true, verdict: true, verdictTrgmSimilarity: true } }).execute(); // Get one by id -const item = await db.platformResourceStatusCheck.findOne({ id: '', select: { completedAt: true, id: true, requestedAt: true, requestedBy: true, resourceId: true, result: true, status: true } }).execute(); +const item = await db.proposalReview.findOne({ id: '', select: { body: true, bodyTrgmSimilarity: true, commitSha: true, commitShaTrgmSimilarity: true, createdAt: true, createdByPrincipal: true, databaseId: true, id: true, proposalId: true, reviewerId: true, search: true, searchScore: true, searchTsvRank: true, submittedAt: true, updatedAt: true, updatedByPrincipal: true, verdict: true, verdictTrgmSimilarity: true } }).execute(); // Create -const created = await db.platformResourceStatusCheck.create({ data: { completedAt: '', requestedAt: '', requestedBy: '', resourceId: '', result: '', status: '' }, select: { id: true } }).execute(); +const created = await db.proposalReview.create({ data: { body: '', bodyTrgmSimilarity: '', commitSha: '', commitShaTrgmSimilarity: '', createdByPrincipal: '', databaseId: '', proposalId: '', reviewerId: '', search: '', searchScore: '', searchTsvRank: '', submittedAt: '', updatedByPrincipal: '', verdict: '', verdictTrgmSimilarity: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformResourceStatusCheck.update({ where: { id: '' }, data: { completedAt: '' }, select: { id: true } }).execute(); +const updated = await db.proposalReview.update({ where: { id: '' }, data: { body: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformResourceStatusCheck.delete({ where: { id: '' } }).execute(); +const deleted = await db.proposalReview.delete({ where: { id: '' } }).execute(); ``` -### `db.platformResourceUsageLog` +> **Unified Search API fields:** `search` +> Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. -CRUD operations for PlatformResourceUsageLog records. +### `db.proposalsChunk` + +CRUD operations for ProposalsChunk records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `cpuMillicores` | BigInt | Yes | +| `actorId` | UUID | Yes | +| `body` | String | Yes | +| `chunkIndex` | Int | Yes | +| `createdAt` | Datetime | No | +| `databaseId` | UUID | Yes | +| `embedding` | Vector | Yes | +| `embeddingVectorDistance` | Float | Yes | | `id` | UUID | No | -| `intervalSeconds` | Int | Yes | -| `memoryBytes` | BigInt | Yes | -| `metrics` | JSON | Yes | -| `namespaceId` | UUID | Yes | -| `resourceId` | UUID | Yes | -| `sampledAt` | Datetime | Yes | -| `source` | String | Yes | +| `metadata` | JSON | Yes | +| `proposalsId` | UUID | Yes | +| `searchScore` | Float | Yes | +| `updatedAt` | Datetime | No | **Operations:** ```typescript -// List all platformResourceUsageLog records -const items = await db.platformResourceUsageLog.findMany({ select: { cpuMillicores: true, id: true, intervalSeconds: true, memoryBytes: true, metrics: true, namespaceId: true, resourceId: true, sampledAt: true, source: true } }).execute(); +// List all proposalsChunk records +const items = await db.proposalsChunk.findMany({ select: { actorId: true, body: true, chunkIndex: true, createdAt: true, databaseId: true, embedding: true, embeddingVectorDistance: true, id: true, metadata: true, proposalsId: true, searchScore: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.platformResourceUsageLog.findOne({ id: '', select: { cpuMillicores: true, id: true, intervalSeconds: true, memoryBytes: true, metrics: true, namespaceId: true, resourceId: true, sampledAt: true, source: true } }).execute(); +const item = await db.proposalsChunk.findOne({ id: '', select: { actorId: true, body: true, chunkIndex: true, createdAt: true, databaseId: true, embedding: true, embeddingVectorDistance: true, id: true, metadata: true, proposalsId: true, searchScore: true, updatedAt: true } }).execute(); // Create -const created = await db.platformResourceUsageLog.create({ data: { cpuMillicores: '', intervalSeconds: '', memoryBytes: '', metrics: '', namespaceId: '', resourceId: '', sampledAt: '', source: '' }, select: { id: true } }).execute(); +const created = await db.proposalsChunk.create({ data: { actorId: '', body: '', chunkIndex: '', databaseId: '', embedding: '', embeddingVectorDistance: '', metadata: '', proposalsId: '', searchScore: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformResourceUsageLog.update({ where: { id: '' }, data: { cpuMillicores: '' }, select: { id: true } }).execute(); +const updated = await db.proposalsChunk.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformResourceUsageLog.delete({ where: { id: '' } }).execute(); +const deleted = await db.proposalsChunk.delete({ where: { id: '' } }).execute(); ``` -### `db.platformResourceUsageSummary` +> **pgvector embedding fields:** `embedding` +> High-dimensional vector columns for semantic similarity search. Query via the Unified Search API pgvector adapter using cosine, L2, or inner-product distance. -CRUD operations for PlatformResourceUsageSummary records. +### `db.registryBinding` + +CRUD operations for RegistryBinding records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `date` | Date | Yes | -| `gbSeconds` | BigFloat | Yes | +| `createdAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | +| `databaseId` | UUID | Yes | | `id` | UUID | No | -| `maxCpuMillicores` | BigInt | Yes | -| `maxMemoryBytes` | BigInt | Yes | +| `metadata` | JSON | Yes | | `namespaceId` | UUID | Yes | -| `resourceId` | UUID | Yes | -| `runtimeSeconds` | BigInt | Yes | -| `sampleCount` | Int | Yes | +| `observedCredentialVersion` | String | Yes | +| `pullSecretName` | String | Yes | +| `realm` | String | Yes | +| `registryHost` | String | Yes | +| `registryId` | UUID | Yes | +| `status` | String | Yes | +| `updatedAt` | Datetime | No | +| `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | **Operations:** ```typescript -// List all platformResourceUsageSummary records -const items = await db.platformResourceUsageSummary.findMany({ select: { date: true, gbSeconds: true, id: true, maxCpuMillicores: true, maxMemoryBytes: true, namespaceId: true, resourceId: true, runtimeSeconds: true, sampleCount: true } }).execute(); +// List all registryBinding records +const items = await db.registryBinding.findMany({ select: { createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, id: true, metadata: true, namespaceId: true, observedCredentialVersion: true, pullSecretName: true, realm: true, registryHost: true, registryId: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.platformResourceUsageSummary.findOne({ id: '', select: { date: true, gbSeconds: true, id: true, maxCpuMillicores: true, maxMemoryBytes: true, namespaceId: true, resourceId: true, runtimeSeconds: true, sampleCount: true } }).execute(); +const item = await db.registryBinding.findOne({ id: '', select: { createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, id: true, metadata: true, namespaceId: true, observedCredentialVersion: true, pullSecretName: true, realm: true, registryHost: true, registryId: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.platformResourceUsageSummary.create({ data: { date: '', gbSeconds: '', maxCpuMillicores: '', maxMemoryBytes: '', namespaceId: '', resourceId: '', runtimeSeconds: '', sampleCount: '' }, select: { id: true } }).execute(); +const created = await db.registryBinding.create({ data: { createdBy: '', createdByPrincipal: '', databaseId: '', metadata: '', namespaceId: '', observedCredentialVersion: '', pullSecretName: '', realm: '', registryHost: '', registryId: '', status: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformResourceUsageSummary.update({ where: { id: '' }, data: { date: '' }, select: { id: true } }).execute(); +const updated = await db.registryBinding.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformResourceUsageSummary.delete({ where: { id: '' } }).execute(); +const deleted = await db.registryBinding.delete({ where: { id: '' } }).execute(); ``` -### `db.platformResourceUtilization` +### `db.registry` -CRUD operations for PlatformResourceUtilization records. +CRUD operations for Registry records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `avgMemoryBytes` | BigInt | Yes | -| `cpuLimitMillicores` | BigInt | Yes | -| `cpuPeakUtilization` | BigFloat | Yes | -| `cpuRequestHeadroomMillicores` | BigInt | Yes | -| `cpuRequestMillicores` | BigInt | Yes | -| `date` | Date | Yes | -| `gbSeconds` | BigFloat | Yes | +| `authMode` | String | Yes | +| `basePath` | String | Yes | +| `createdAt` | Datetime | No | +| `createdByPrincipal` | UUID | Yes | +| `credentialSecretName` | String | Yes | +| `databaseId` | UUID | Yes | +| `host` | String | Yes | +| `id` | UUID | No | +| `installationId` | UUID | Yes | +| `isPublished` | Boolean | Yes | | `kind` | String | Yes | -| `maxCpuMillicores` | BigInt | Yes | -| `maxMemoryBytes` | BigInt | Yes | -| `memoryLimitBytes` | BigInt | Yes | -| `memoryPeakUtilization` | BigFloat | Yes | -| `memoryRequestBytes` | BigInt | Yes | -| `memoryRequestHeadroomBytes` | BigInt | Yes | -| `namespaceId` | UUID | Yes | -| `replicas` | Int | Yes | -| `resourceId` | UUID | Yes | -| `runtimeSeconds` | BigInt | Yes | -| `sampleCount` | Int | Yes | +| `labels` | JSON | Yes | +| `lastError` | String | Yes | +| `metadata` | JSON | Yes | +| `name` | String | Yes | +| `platformOnly` | Boolean | Yes | +| `role` | String | Yes | +| `status` | String | Yes | +| `updatedAt` | Datetime | No | +| `updatedByPrincipal` | UUID | Yes | **Operations:** ```typescript -// List all platformResourceUtilization records -const items = await db.platformResourceUtilization.findMany({ select: { avgMemoryBytes: true, cpuLimitMillicores: true, cpuPeakUtilization: true, cpuRequestHeadroomMillicores: true, cpuRequestMillicores: true, date: true, gbSeconds: true, kind: true, maxCpuMillicores: true, maxMemoryBytes: true, memoryLimitBytes: true, memoryPeakUtilization: true, memoryRequestBytes: true, memoryRequestHeadroomBytes: true, namespaceId: true, replicas: true, resourceId: true, runtimeSeconds: true, sampleCount: true } }).execute(); +// List all registry records +const items = await db.registry.findMany({ select: { authMode: true, basePath: true, createdAt: true, createdByPrincipal: true, credentialSecretName: true, databaseId: true, host: true, id: true, installationId: true, isPublished: true, kind: true, labels: true, lastError: true, metadata: true, name: true, platformOnly: true, role: true, status: true, updatedAt: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.platformResourceUtilization.findOne({ id: '', select: { avgMemoryBytes: true, cpuLimitMillicores: true, cpuPeakUtilization: true, cpuRequestHeadroomMillicores: true, cpuRequestMillicores: true, date: true, gbSeconds: true, kind: true, maxCpuMillicores: true, maxMemoryBytes: true, memoryLimitBytes: true, memoryPeakUtilization: true, memoryRequestBytes: true, memoryRequestHeadroomBytes: true, namespaceId: true, replicas: true, resourceId: true, runtimeSeconds: true, sampleCount: true } }).execute(); +const item = await db.registry.findOne({ id: '', select: { authMode: true, basePath: true, createdAt: true, createdByPrincipal: true, credentialSecretName: true, databaseId: true, host: true, id: true, installationId: true, isPublished: true, kind: true, labels: true, lastError: true, metadata: true, name: true, platformOnly: true, role: true, status: true, updatedAt: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.platformResourceUtilization.create({ data: { avgMemoryBytes: '', cpuLimitMillicores: '', cpuPeakUtilization: '', cpuRequestHeadroomMillicores: '', cpuRequestMillicores: '', date: '', gbSeconds: '', kind: '', maxCpuMillicores: '', maxMemoryBytes: '', memoryLimitBytes: '', memoryPeakUtilization: '', memoryRequestBytes: '', memoryRequestHeadroomBytes: '', namespaceId: '', replicas: '', resourceId: '', runtimeSeconds: '', sampleCount: '' }, select: { id: true } }).execute(); +const created = await db.registry.create({ data: { authMode: '', basePath: '', createdByPrincipal: '', credentialSecretName: '', databaseId: '', host: '', installationId: '', isPublished: '', kind: '', labels: '', lastError: '', metadata: '', name: '', platformOnly: '', role: '', status: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformResourceUtilization.update({ where: { id: '' }, data: { avgMemoryBytes: '' }, select: { id: true } }).execute(); +const updated = await db.registry.update({ where: { id: '' }, data: { authMode: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformResourceUtilization.delete({ where: { id: '' } }).execute(); +const deleted = await db.registry.delete({ where: { id: '' } }).execute(); ``` -### `db.platformResourcesHealth` +### `db.registryGrant` -CRUD operations for PlatformResourcesHealth records. +CRUD operations for RegistryGrant records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `annotations` | JSON | Yes | -| `cpuLimitMillicores` | BigInt | Yes | -| `cpuRequestMillicores` | BigInt | Yes | +| `actions` | String | Yes | | `createdAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `errorCount` | Int | Yes | +| `createdByPrincipal` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `expiresAt` | Datetime | Yes | +| `grantedBy` | UUID | Yes | +| `granteeKey` | UUID | Yes | +| `granteeScope` | String | Yes | | `id` | UUID | No | -| `installationId` | UUID | Yes | -| `integrations` | String | Yes | -| `kind` | String | Yes | -| `labels` | JSON | Yes | -| `lastError` | String | Yes | -| `lastHeartbeatAt` | Datetime | Yes | -| `memoryLimitBytes` | BigInt | Yes | -| `memoryRequestBytes` | BigInt | Yes | -| `name` | String | Yes | -| `namespaceId` | UUID | Yes | -| `realm` | String | Yes | -| `replicas` | Int | Yes | -| `requiredConfigs` | ResourceRequirement | Yes | -| `requiredSecrets` | ResourceRequirement | Yes | -| `resourceDefinitionId` | UUID | Yes | -| `slug` | String | Yes | -| `spec` | JSON | Yes | -| `status` | String | Yes | -| `statusDetail` | String | Yes | -| `statusObserved` | JSON | Yes | -| `storageClass` | String | Yes | -| `storageSizeBytes` | BigInt | Yes | +| `registryId` | UUID | Yes | | `updatedAt` | Datetime | No | -| `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | **Operations:** ```typescript -// List all platformResourcesHealth records -const items = await db.platformResourcesHealth.findMany({ select: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, errorCount: true, id: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusDetail: true, statusObserved: true, storageClass: true, storageSizeBytes: true, updatedAt: true, updatedBy: true } }).execute(); +// List all registryGrant records +const items = await db.registryGrant.findMany({ select: { actions: true, createdAt: true, createdByPrincipal: true, databaseId: true, expiresAt: true, grantedBy: true, granteeKey: true, granteeScope: true, id: true, registryId: true, updatedAt: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.platformResourcesHealth.findOne({ id: '', select: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, errorCount: true, id: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusDetail: true, statusObserved: true, storageClass: true, storageSizeBytes: true, updatedAt: true, updatedBy: true } }).execute(); +const item = await db.registryGrant.findOne({ id: '', select: { actions: true, createdAt: true, createdByPrincipal: true, databaseId: true, expiresAt: true, grantedBy: true, granteeKey: true, granteeScope: true, id: true, registryId: true, updatedAt: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.platformResourcesHealth.create({ data: { annotations: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', errorCount: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusDetail: '', statusObserved: '', storageClass: '', storageSizeBytes: '', updatedBy: '' }, select: { id: true } }).execute(); +const created = await db.registryGrant.create({ data: { actions: '', createdByPrincipal: '', databaseId: '', expiresAt: '', grantedBy: '', granteeKey: '', granteeScope: '', registryId: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformResourcesHealth.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); +const updated = await db.registryGrant.update({ where: { id: '' }, data: { actions: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformResourcesHealth.delete({ where: { id: '' } }).execute(); +const deleted = await db.registryGrant.delete({ where: { id: '' } }).execute(); ``` -### `db.platformResourcesRequirementsState` +### `db.repository` -CRUD operations for PlatformResourcesRequirementsState records. +CRUD operations for Repository records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `configHash` | String | Yes | -| `configObjectName` | String | Yes | -| `requirementsHash` | String | Yes | -| `resourceId` | UUID | Yes | -| `secretsHash` | String | Yes | -| `secretsObjectName` | String | Yes | +| `cloneUrl` | String | Yes | +| `cloneUrlTrgmSimilarity` | Float | Yes | +| `createdAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `defaultBranch` | String | Yes | +| `defaultBranchTrgmSimilarity` | Float | Yes | +| `description` | String | Yes | +| `descriptionTrgmSimilarity` | Float | Yes | +| `embedding` | Vector | Yes | +| `embeddingUpdatedAt` | Datetime | Yes | +| `embeddingVectorDistance` | Float | Yes | +| `externalId` | String | Yes | +| `externalIdTrgmSimilarity` | Float | Yes | +| `id` | UUID | No | +| `isArchived` | Boolean | Yes | +| `metadata` | JSON | Yes | +| `name` | String | Yes | +| `nameTrgmSimilarity` | Float | Yes | +| `ownerId` | UUID | Yes | +| `provider` | String | Yes | +| `providerTrgmSimilarity` | Float | Yes | +| `search` | FullText | Yes | +| `searchScore` | Float | Yes | +| `searchTsvRank` | Float | Yes | | `slug` | String | Yes | +| `slugTrgmSimilarity` | Float | Yes | +| `updatedAt` | Datetime | No | +| `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | +| `visibility` | String | Yes | +| `visibilityTrgmSimilarity` | Float | Yes | **Operations:** ```typescript -// List all platformResourcesRequirementsState records -const items = await db.platformResourcesRequirementsState.findMany({ select: { configHash: true, configObjectName: true, requirementsHash: true, resourceId: true, secretsHash: true, secretsObjectName: true, slug: true } }).execute(); +// List all repository records +const items = await db.repository.findMany({ select: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } }).execute(); // Get one by id -const item = await db.platformResourcesRequirementsState.findOne({ id: '', select: { configHash: true, configObjectName: true, requirementsHash: true, resourceId: true, secretsHash: true, secretsObjectName: true, slug: true } }).execute(); +const item = await db.repository.findOne({ id: '', select: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } }).execute(); // Create -const created = await db.platformResourcesRequirementsState.create({ data: { configHash: '', configObjectName: '', requirementsHash: '', resourceId: '', secretsHash: '', secretsObjectName: '', slug: '' }, select: { id: true } }).execute(); +const created = await db.repository.create({ data: { cloneUrl: '', cloneUrlTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', defaultBranch: '', defaultBranchTrgmSimilarity: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', externalId: '', externalIdTrgmSimilarity: '', isArchived: '', metadata: '', name: '', nameTrgmSimilarity: '', ownerId: '', provider: '', providerTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', slug: '', slugTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '', visibility: '', visibilityTrgmSimilarity: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformResourcesRequirementsState.update({ where: { id: '' }, data: { configHash: '' }, select: { id: true } }).execute(); +const updated = await db.repository.update({ where: { id: '' }, data: { cloneUrl: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformResourcesRequirementsState.delete({ where: { id: '' } }).execute(); +const deleted = await db.repository.delete({ where: { id: '' } }).execute(); ``` -### `db.platformResourcesResolvedRequirement` +> **pgvector embedding fields:** `embedding` +> High-dimensional vector columns for semantic similarity search. Query via the Unified Search API pgvector adapter using cosine, L2, or inner-product distance. -CRUD operations for PlatformResourcesResolvedRequirement records. +> **Unified Search API fields:** `search` +> Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. + +### `db.repositoryEvent` + +CRUD operations for RepositoryEvent records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `atomId` | UUID | Yes | -| `configObjectName` | String | Yes | -| `name` | String | Yes | -| `namespaceId` | UUID | Yes | -| `present` | Boolean | Yes | -| `realm` | String | Yes | -| `required` | Boolean | Yes | -| `requirementKind` | String | Yes | -| `resourceId` | UUID | Yes | -| `secretsObjectName` | String | Yes | -| `slug` | String | Yes | +| `actorId` | UUID | Yes | +| `commitSha` | String | Yes | +| `createdAt` | Datetime | No | +| `createdByPrincipal` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `deliveryId` | String | Yes | +| `eventType` | String | Yes | +| `id` | UUID | No | +| `metadata` | JSON | Yes | +| `payload` | JSON | Yes | +| `ref` | String | Yes | +| `repositoryId` | UUID | Yes | +| `updatedAt` | Datetime | No | +| `updatedByPrincipal` | UUID | Yes | **Operations:** ```typescript -// List all platformResourcesResolvedRequirement records -const items = await db.platformResourcesResolvedRequirement.findMany({ select: { atomId: true, configObjectName: true, name: true, namespaceId: true, present: true, realm: true, required: true, requirementKind: true, resourceId: true, secretsObjectName: true, slug: true } }).execute(); +// List all repositoryEvent records +const items = await db.repositoryEvent.findMany({ select: { actorId: true, commitSha: true, createdAt: true, createdByPrincipal: true, databaseId: true, deliveryId: true, eventType: true, id: true, metadata: true, payload: true, ref: true, repositoryId: true, updatedAt: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.platformResourcesResolvedRequirement.findOne({ id: '', select: { atomId: true, configObjectName: true, name: true, namespaceId: true, present: true, realm: true, required: true, requirementKind: true, resourceId: true, secretsObjectName: true, slug: true } }).execute(); +const item = await db.repositoryEvent.findOne({ id: '', select: { actorId: true, commitSha: true, createdAt: true, createdByPrincipal: true, databaseId: true, deliveryId: true, eventType: true, id: true, metadata: true, payload: true, ref: true, repositoryId: true, updatedAt: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.platformResourcesResolvedRequirement.create({ data: { atomId: '', configObjectName: '', name: '', namespaceId: '', present: '', realm: '', required: '', requirementKind: '', resourceId: '', secretsObjectName: '', slug: '' }, select: { id: true } }).execute(); +const created = await db.repositoryEvent.create({ data: { actorId: '', commitSha: '', createdByPrincipal: '', databaseId: '', deliveryId: '', eventType: '', metadata: '', payload: '', ref: '', repositoryId: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformResourcesResolvedRequirement.update({ where: { id: '' }, data: { atomId: '' }, select: { id: true } }).execute(); +const updated = await db.repositoryEvent.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformResourcesResolvedRequirement.delete({ where: { id: '' } }).execute(); +const deleted = await db.repositoryEvent.delete({ where: { id: '' } }).execute(); ``` -### `db.platformWebhookEndpoint` +### `db.repositoryRequiredCheck` -CRUD operations for PlatformWebhookEndpoint records. +CRUD operations for RepositoryRequiredCheck records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `active` | Boolean | Yes | | `createdAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `functionDefinitionId` | UUID | Yes | -| `host` | String | Yes | +| `databaseId` | UUID | Yes | | `id` | UUID | No | -| `namespaceId` | UUID | Yes | -| `path` | String | Yes | -| `provider` | String | Yes | -| `replayWindowSeconds` | Int | Yes | -| `signingSecretName` | String | Yes | +| `repositoryId` | UUID | Yes | | `updatedAt` | Datetime | No | -| `updatedBy` | UUID | Yes | +| `workflowId` | UUID | Yes | **Operations:** ```typescript -// List all platformWebhookEndpoint records -const items = await db.platformWebhookEndpoint.findMany({ select: { active: true, createdAt: true, createdBy: true, functionDefinitionId: true, host: true, id: true, namespaceId: true, path: true, provider: true, replayWindowSeconds: true, signingSecretName: true, updatedAt: true, updatedBy: true } }).execute(); +// List all repositoryRequiredCheck records +const items = await db.repositoryRequiredCheck.findMany({ select: { createdAt: true, databaseId: true, id: true, repositoryId: true, updatedAt: true, workflowId: true } }).execute(); // Get one by id -const item = await db.platformWebhookEndpoint.findOne({ id: '', select: { active: true, createdAt: true, createdBy: true, functionDefinitionId: true, host: true, id: true, namespaceId: true, path: true, provider: true, replayWindowSeconds: true, signingSecretName: true, updatedAt: true, updatedBy: true } }).execute(); +const item = await db.repositoryRequiredCheck.findOne({ id: '', select: { createdAt: true, databaseId: true, id: true, repositoryId: true, updatedAt: true, workflowId: true } }).execute(); // Create -const created = await db.platformWebhookEndpoint.create({ data: { active: '', createdBy: '', functionDefinitionId: '', host: '', namespaceId: '', path: '', provider: '', replayWindowSeconds: '', signingSecretName: '', updatedBy: '' }, select: { id: true } }).execute(); +const created = await db.repositoryRequiredCheck.create({ data: { databaseId: '', repositoryId: '', workflowId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformWebhookEndpoint.update({ where: { id: '' }, data: { active: '' }, select: { id: true } }).execute(); +const updated = await db.repositoryRequiredCheck.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformWebhookEndpoint.delete({ where: { id: '' } }).execute(); +const deleted = await db.repositoryRequiredCheck.delete({ where: { id: '' } }).execute(); ``` -### `db.platformWebhookEvent` +### `db.repositoryWorkflow` -CRUD operations for PlatformWebhookEvent records. +CRUD operations for RepositoryWorkflow records. **Fields:** | Field | Type | Editable | |-------|------|----------| +| `cancelInProgress` | Boolean | Yes | +| `concurrencyKey` | String | Yes | | `createdAt` | Datetime | No | -| `endpointId` | UUID | Yes | -| `error` | String | Yes | -| `externalEventId` | String | Yes | +| `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `eventType` | String | Yes | +| `graphId` | UUID | Yes | | `id` | UUID | No | -| `invocationCreatedAt` | Datetime | Yes | -| `invocationId` | UUID | Yes | -| `payload` | JSON | Yes | -| `provider` | String | Yes | -| `providerTimestamp` | Datetime | Yes | -| `status` | String | Yes | +| `inputs` | JSON | Yes | +| `isEnabled` | Boolean | Yes | +| `name` | String | Yes | +| `refPattern` | String | Yes | +| `repositoryId` | UUID | Yes | +| `requiredSecrets` | String | Yes | +| `slug` | String | Yes | | `updatedAt` | Datetime | No | +| `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | **Operations:** ```typescript -// List all platformWebhookEvent records -const items = await db.platformWebhookEvent.findMany({ select: { createdAt: true, endpointId: true, error: true, externalEventId: true, id: true, invocationCreatedAt: true, invocationId: true, payload: true, provider: true, providerTimestamp: true, status: true, updatedAt: true } }).execute(); +// List all repositoryWorkflow records +const items = await db.repositoryWorkflow.findMany({ select: { cancelInProgress: true, concurrencyKey: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, eventType: true, graphId: true, id: true, inputs: true, isEnabled: true, name: true, refPattern: true, repositoryId: true, requiredSecrets: true, slug: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.platformWebhookEvent.findOne({ id: '', select: { createdAt: true, endpointId: true, error: true, externalEventId: true, id: true, invocationCreatedAt: true, invocationId: true, payload: true, provider: true, providerTimestamp: true, status: true, updatedAt: true } }).execute(); +const item = await db.repositoryWorkflow.findOne({ id: '', select: { cancelInProgress: true, concurrencyKey: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, eventType: true, graphId: true, id: true, inputs: true, isEnabled: true, name: true, refPattern: true, repositoryId: true, requiredSecrets: true, slug: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.platformWebhookEvent.create({ data: { endpointId: '', error: '', externalEventId: '', invocationCreatedAt: '', invocationId: '', payload: '', provider: '', providerTimestamp: '', status: '' }, select: { id: true } }).execute(); +const created = await db.repositoryWorkflow.create({ data: { cancelInProgress: '', concurrencyKey: '', createdBy: '', createdByPrincipal: '', databaseId: '', eventType: '', graphId: '', inputs: '', isEnabled: '', name: '', refPattern: '', repositoryId: '', requiredSecrets: '', slug: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformWebhookEvent.update({ where: { id: '' }, data: { endpointId: '' }, select: { id: true } }).execute(); +const updated = await db.repositoryWorkflow.update({ where: { id: '' }, data: { cancelInProgress: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformWebhookEvent.delete({ where: { id: '' } }).execute(); +const deleted = await db.repositoryWorkflow.delete({ where: { id: '' } }).execute(); ``` ### `db.resource` @@ -2357,9 +4608,11 @@ CRUD operations for Resource records. | `cpuRequestMillicores` | BigInt | Yes | | `createdAt` | Datetime | No | | `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | | `databaseId` | UUID | Yes | | `errorCount` | Int | Yes | | `id` | UUID | No | +| `imageRef` | String | Yes | | `installationId` | UUID | Yes | | `integrations` | String | Yes | | `kind` | String | Yes | @@ -2381,20 +4634,22 @@ CRUD operations for Resource records. | `statusObserved` | JSON | Yes | | `storageClass` | String | Yes | | `storageSizeBytes` | BigInt | Yes | +| `storageTotalBytes` | BigInt | Yes | | `updatedAt` | Datetime | No | | `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | **Operations:** ```typescript // List all resource records -const items = await db.resource.findMany({ select: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, databaseId: true, errorCount: true, id: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusObserved: true, storageClass: true, storageSizeBytes: true, updatedAt: true, updatedBy: true } }).execute(); +const items = await db.resource.findMany({ select: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.resource.findOne({ id: '', select: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, databaseId: true, errorCount: true, id: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusObserved: true, storageClass: true, storageSizeBytes: true, updatedAt: true, updatedBy: true } }).execute(); +const item = await db.resource.findOne({ id: '', select: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.resource.create({ data: { annotations: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', databaseId: '', errorCount: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusObserved: '', storageClass: '', storageSizeBytes: '', updatedBy: '' }, select: { id: true } }).execute(); +const created = await db.resource.create({ data: { annotations: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', createdByPrincipal: '', databaseId: '', errorCount: '', imageRef: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusObserved: '', storageClass: '', storageSizeBytes: '', storageTotalBytes: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update const updated = await db.resource.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); @@ -2424,18 +4679,19 @@ CRUD operations for ResourceDeclaredCapacity records. | `source` | String | Yes | | `sourceId` | UUID | Yes | | `storageSizeBytes` | BigInt | Yes | +| `storageTotalBytes` | BigInt | Yes | **Operations:** ```typescript // List all resourceDeclaredCapacity records -const items = await db.resourceDeclaredCapacity.findMany({ select: { cpuLimitMillicores: true, cpuRequestMillicores: true, installationId: true, isTransient: true, kind: true, memoryLimitBytes: true, memoryRequestBytes: true, namespaceId: true, podCountMax: true, podCountMin: true, source: true, sourceId: true, storageSizeBytes: true } }).execute(); +const items = await db.resourceDeclaredCapacity.findMany({ select: { cpuLimitMillicores: true, cpuRequestMillicores: true, installationId: true, isTransient: true, kind: true, memoryLimitBytes: true, memoryRequestBytes: true, namespaceId: true, podCountMax: true, podCountMin: true, source: true, sourceId: true, storageSizeBytes: true, storageTotalBytes: true } }).execute(); // Get one by id -const item = await db.resourceDeclaredCapacity.findOne({ id: '', select: { cpuLimitMillicores: true, cpuRequestMillicores: true, installationId: true, isTransient: true, kind: true, memoryLimitBytes: true, memoryRequestBytes: true, namespaceId: true, podCountMax: true, podCountMin: true, source: true, sourceId: true, storageSizeBytes: true } }).execute(); +const item = await db.resourceDeclaredCapacity.findOne({ id: '', select: { cpuLimitMillicores: true, cpuRequestMillicores: true, installationId: true, isTransient: true, kind: true, memoryLimitBytes: true, memoryRequestBytes: true, namespaceId: true, podCountMax: true, podCountMin: true, source: true, sourceId: true, storageSizeBytes: true, storageTotalBytes: true } }).execute(); // Create -const created = await db.resourceDeclaredCapacity.create({ data: { cpuLimitMillicores: '', cpuRequestMillicores: '', installationId: '', isTransient: '', kind: '', memoryLimitBytes: '', memoryRequestBytes: '', namespaceId: '', podCountMax: '', podCountMin: '', source: '', sourceId: '', storageSizeBytes: '' }, select: { id: true } }).execute(); +const created = await db.resourceDeclaredCapacity.create({ data: { cpuLimitMillicores: '', cpuRequestMillicores: '', installationId: '', isTransient: '', kind: '', memoryLimitBytes: '', memoryRequestBytes: '', namespaceId: '', podCountMax: '', podCountMin: '', source: '', sourceId: '', storageSizeBytes: '', storageTotalBytes: '' }, select: { id: true } }).execute(); // Update const updated = await db.resourceDeclaredCapacity.update({ where: { id: '' }, data: { cpuLimitMillicores: '' }, select: { id: true } }).execute(); @@ -2455,6 +4711,7 @@ CRUD operations for ResourceDefinition records. | `annotations` | JSON | Yes | | `createdAt` | Datetime | No | | `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | | `databaseId` | UUID | Yes | | `defaultSpec` | JSON | Yes | | `description` | String | Yes | @@ -2471,18 +4728,19 @@ CRUD operations for ResourceDefinition records. | `stepUpMinAge` | Interval | Yes | | `updatedAt` | Datetime | No | | `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | **Operations:** ```typescript // List all resourceDefinition records -const items = await db.resourceDefinition.findMany({ select: { annotations: true, createdAt: true, createdBy: true, databaseId: true, defaultSpec: true, description: true, id: true, integrations: true, kind: true, labels: true, name: true, namespaceId: true, paramsSchema: true, requiredConfigs: true, requiredSecrets: true, slug: true, stepUpMinAge: true, updatedAt: true, updatedBy: true } }).execute(); +const items = await db.resourceDefinition.findMany({ select: { annotations: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, defaultSpec: true, description: true, id: true, integrations: true, kind: true, labels: true, name: true, namespaceId: true, paramsSchema: true, requiredConfigs: true, requiredSecrets: true, slug: true, stepUpMinAge: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.resourceDefinition.findOne({ id: '', select: { annotations: true, createdAt: true, createdBy: true, databaseId: true, defaultSpec: true, description: true, id: true, integrations: true, kind: true, labels: true, name: true, namespaceId: true, paramsSchema: true, requiredConfigs: true, requiredSecrets: true, slug: true, stepUpMinAge: true, updatedAt: true, updatedBy: true } }).execute(); +const item = await db.resourceDefinition.findOne({ id: '', select: { annotations: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, defaultSpec: true, description: true, id: true, integrations: true, kind: true, labels: true, name: true, namespaceId: true, paramsSchema: true, requiredConfigs: true, requiredSecrets: true, slug: true, stepUpMinAge: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.resourceDefinition.create({ data: { annotations: '', createdBy: '', databaseId: '', defaultSpec: '', description: '', integrations: '', kind: '', labels: '', name: '', namespaceId: '', paramsSchema: '', requiredConfigs: '', requiredSecrets: '', slug: '', stepUpMinAge: '', updatedBy: '' }, select: { id: true } }).execute(); +const created = await db.resourceDefinition.create({ data: { annotations: '', createdBy: '', createdByPrincipal: '', databaseId: '', defaultSpec: '', description: '', integrations: '', kind: '', labels: '', name: '', namespaceId: '', paramsSchema: '', requiredConfigs: '', requiredSecrets: '', slug: '', stepUpMinAge: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update const updated = await db.resourceDefinition.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); @@ -2538,35 +4796,83 @@ CRUD operations for ResourceInstallation records. | `commitId` | UUID | Yes | | `createdAt` | Datetime | No | | `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | | `databaseId` | UUID | Yes | | `id` | UUID | No | | `name` | String | Yes | | `namespaceId` | UUID | Yes | -| `params` | JSON | Yes | -| `revision` | Int | Yes | +| `params` | JSON | Yes | +| `revision` | Int | Yes | +| `slug` | String | Yes | +| `status` | String | Yes | +| `storeId` | UUID | Yes | +| `updatedAt` | Datetime | No | +| `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | + +**Operations:** + +```typescript +// List all resourceInstallation records +const items = await db.resourceInstallation.findMany({ select: { commitId: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, id: true, name: true, namespaceId: true, params: true, revision: true, slug: true, status: true, storeId: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Get one by id +const item = await db.resourceInstallation.findOne({ id: '', select: { commitId: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, id: true, name: true, namespaceId: true, params: true, revision: true, slug: true, status: true, storeId: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Create +const created = await db.resourceInstallation.create({ data: { commitId: '', createdBy: '', createdByPrincipal: '', databaseId: '', name: '', namespaceId: '', params: '', revision: '', slug: '', status: '', storeId: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.resourceInstallation.update({ where: { id: '' }, data: { commitId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.resourceInstallation.delete({ where: { id: '' } }).execute(); +``` + +### `db.resourceObservedStorage` + +CRUD operations for ResourceObservedStorage records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `capacity` | String | Yes | +| `capacityBytes` | BigInt | Yes | +| `claimName` | String | Yes | +| `declaredStorageClass` | String | Yes | +| `declaredStorageSizeBytes` | BigInt | Yes | +| `declaredStorageTotalBytes` | BigInt | Yes | +| `installationId` | UUID | Yes | +| `isBound` | Boolean | Yes | +| `kind` | String | Yes | +| `namespaceId` | UUID | Yes | +| `phase` | String | Yes | +| `requested` | String | Yes | +| `requestedBytes` | BigInt | Yes | +| `resourceId` | UUID | Yes | +| `resourceStatus` | String | Yes | | `slug` | String | Yes | -| `status` | String | Yes | -| `storeId` | UUID | Yes | -| `updatedAt` | Datetime | No | -| `updatedBy` | UUID | Yes | +| `storageClass` | String | Yes | +| `storageName` | String | Yes | **Operations:** ```typescript -// List all resourceInstallation records -const items = await db.resourceInstallation.findMany({ select: { commitId: true, createdAt: true, createdBy: true, databaseId: true, id: true, name: true, namespaceId: true, params: true, revision: true, slug: true, status: true, storeId: true, updatedAt: true, updatedBy: true } }).execute(); +// List all resourceObservedStorage records +const items = await db.resourceObservedStorage.findMany({ select: { capacity: true, capacityBytes: true, claimName: true, declaredStorageClass: true, declaredStorageSizeBytes: true, declaredStorageTotalBytes: true, installationId: true, isBound: true, kind: true, namespaceId: true, phase: true, requested: true, requestedBytes: true, resourceId: true, resourceStatus: true, slug: true, storageClass: true, storageName: true } }).execute(); // Get one by id -const item = await db.resourceInstallation.findOne({ id: '', select: { commitId: true, createdAt: true, createdBy: true, databaseId: true, id: true, name: true, namespaceId: true, params: true, revision: true, slug: true, status: true, storeId: true, updatedAt: true, updatedBy: true } }).execute(); +const item = await db.resourceObservedStorage.findOne({ id: '', select: { capacity: true, capacityBytes: true, claimName: true, declaredStorageClass: true, declaredStorageSizeBytes: true, declaredStorageTotalBytes: true, installationId: true, isBound: true, kind: true, namespaceId: true, phase: true, requested: true, requestedBytes: true, resourceId: true, resourceStatus: true, slug: true, storageClass: true, storageName: true } }).execute(); // Create -const created = await db.resourceInstallation.create({ data: { commitId: '', createdBy: '', databaseId: '', name: '', namespaceId: '', params: '', revision: '', slug: '', status: '', storeId: '', updatedBy: '' }, select: { id: true } }).execute(); +const created = await db.resourceObservedStorage.create({ data: { capacity: '', capacityBytes: '', claimName: '', declaredStorageClass: '', declaredStorageSizeBytes: '', declaredStorageTotalBytes: '', installationId: '', isBound: '', kind: '', namespaceId: '', phase: '', requested: '', requestedBytes: '', resourceId: '', resourceStatus: '', slug: '', storageClass: '', storageName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.resourceInstallation.update({ where: { id: '' }, data: { commitId: '' }, select: { id: true } }).execute(); +const updated = await db.resourceObservedStorage.update({ where: { id: '' }, data: { capacity: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.resourceInstallation.delete({ where: { id: '' } }).execute(); +const deleted = await db.resourceObservedStorage.delete({ where: { id: '' } }).execute(); ``` ### `db.resourceStatusCheck` @@ -2741,9 +5047,11 @@ CRUD operations for ResourcesHealth records. | `cpuRequestMillicores` | BigInt | Yes | | `createdAt` | Datetime | No | | `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | | `databaseId` | UUID | Yes | | `errorCount` | Int | Yes | | `id` | UUID | No | +| `imageRef` | String | Yes | | `installationId` | UUID | Yes | | `integrations` | String | Yes | | `kind` | String | Yes | @@ -2766,20 +5074,22 @@ CRUD operations for ResourcesHealth records. | `statusObserved` | JSON | Yes | | `storageClass` | String | Yes | | `storageSizeBytes` | BigInt | Yes | +| `storageTotalBytes` | BigInt | Yes | | `updatedAt` | Datetime | No | | `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | **Operations:** ```typescript // List all resourcesHealth records -const items = await db.resourcesHealth.findMany({ select: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, databaseId: true, errorCount: true, id: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusDetail: true, statusObserved: true, storageClass: true, storageSizeBytes: true, updatedAt: true, updatedBy: true } }).execute(); +const items = await db.resourcesHealth.findMany({ select: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusDetail: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.resourcesHealth.findOne({ id: '', select: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, databaseId: true, errorCount: true, id: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusDetail: true, statusObserved: true, storageClass: true, storageSizeBytes: true, updatedAt: true, updatedBy: true } }).execute(); +const item = await db.resourcesHealth.findOne({ id: '', select: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusDetail: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.resourcesHealth.create({ data: { annotations: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', databaseId: '', errorCount: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusDetail: '', statusObserved: '', storageClass: '', storageSizeBytes: '', updatedBy: '' }, select: { id: true } }).execute(); +const created = await db.resourcesHealth.create({ data: { annotations: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', createdByPrincipal: '', databaseId: '', errorCount: '', imageRef: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusDetail: '', statusObserved: '', storageClass: '', storageSizeBytes: '', storageTotalBytes: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update const updated = await db.resourcesHealth.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); @@ -2873,6 +5183,7 @@ CRUD operations for WebhookEndpoint records. | `active` | Boolean | Yes | | `createdAt` | Datetime | No | | `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | | `databaseId` | UUID | Yes | | `functionDefinitionId` | UUID | Yes | | `host` | String | Yes | @@ -2884,18 +5195,19 @@ CRUD operations for WebhookEndpoint records. | `signingSecretName` | String | Yes | | `updatedAt` | Datetime | No | | `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | **Operations:** ```typescript // List all webhookEndpoint records -const items = await db.webhookEndpoint.findMany({ select: { active: true, createdAt: true, createdBy: true, databaseId: true, functionDefinitionId: true, host: true, id: true, namespaceId: true, path: true, provider: true, replayWindowSeconds: true, signingSecretName: true, updatedAt: true, updatedBy: true } }).execute(); +const items = await db.webhookEndpoint.findMany({ select: { active: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, functionDefinitionId: true, host: true, id: true, namespaceId: true, path: true, provider: true, replayWindowSeconds: true, signingSecretName: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.webhookEndpoint.findOne({ id: '', select: { active: true, createdAt: true, createdBy: true, databaseId: true, functionDefinitionId: true, host: true, id: true, namespaceId: true, path: true, provider: true, replayWindowSeconds: true, signingSecretName: true, updatedAt: true, updatedBy: true } }).execute(); +const item = await db.webhookEndpoint.findOne({ id: '', select: { active: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, functionDefinitionId: true, host: true, id: true, namespaceId: true, path: true, provider: true, replayWindowSeconds: true, signingSecretName: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.webhookEndpoint.create({ data: { active: '', createdBy: '', databaseId: '', functionDefinitionId: '', host: '', namespaceId: '', path: '', provider: '', replayWindowSeconds: '', signingSecretName: '', updatedBy: '' }, select: { id: true } }).execute(); +const created = await db.webhookEndpoint.create({ data: { active: '', createdBy: '', createdByPrincipal: '', databaseId: '', functionDefinitionId: '', host: '', namespaceId: '', path: '', provider: '', replayWindowSeconds: '', signingSecretName: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update const updated = await db.webhookEndpoint.update({ where: { id: '' }, data: { active: '' }, select: { id: true } }).execute(); @@ -2947,6 +5259,21 @@ const deleted = await db.webhookEvent.delete({ where: { id: '' } }).execut ## Custom Operations +### `db.query.databaseReadFunctionGraph` + +databaseReadFunctionGraph + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `graphId` | UUID | + +```typescript +const result = await db.query.databaseReadFunctionGraph({ graphId: '' }).execute(); +``` + ### `db.query.readFunctionGraph` readFunctionGraph @@ -3022,6 +5349,21 @@ addNodeAndSave const result = await db.mutation.addNodeAndSave({ input: '' }).execute(); ``` +### `db.mutation.approveNode` + +approveNode + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | ApproveNodeInput (required) | + +```typescript +const result = await db.mutation.approveNode({ input: { approved: '', executionId: '', feedback: '', nodeName: '' } }).execute(); +``` + ### `db.mutation.copyGraph` copyGraph @@ -3037,6 +5379,291 @@ copyGraph const result = await db.mutation.copyGraph({ input: { graphId: '', name: '', scopeId: '' } }).execute(); ``` +### `db.mutation.databaseAddEdge` + +databaseAddEdge + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | DatabaseAddEdgeInput (required) | + +```typescript +const result = await db.mutation.databaseAddEdge({ input: '' }).execute(); +``` + +### `db.mutation.databaseAddEdgeAndSave` + +databaseAddEdgeAndSave + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | DatabaseAddEdgeAndSaveInput (required) | + +```typescript +const result = await db.mutation.databaseAddEdgeAndSave({ input: '' }).execute(); +``` + +### `db.mutation.databaseAddNode` + +databaseAddNode + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | DatabaseAddNodeInput (required) | + +```typescript +const result = await db.mutation.databaseAddNode({ input: '' }).execute(); +``` + +### `db.mutation.databaseAddNodeAndSave` + +databaseAddNodeAndSave + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | DatabaseAddNodeAndSaveInput (required) | + +```typescript +const result = await db.mutation.databaseAddNodeAndSave({ input: '' }).execute(); +``` + +### `db.mutation.databaseApproveNode` + +databaseApproveNode + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | DatabaseApproveNodeInput (required) | + +```typescript +const result = await db.mutation.databaseApproveNode({ input: { approved: '', executionId: '', feedback: '', nodeName: '' } }).execute(); +``` + +### `db.mutation.databaseCopyGraph` + +databaseCopyGraph + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | DatabaseCopyGraphInput (required) | + +```typescript +const result = await db.mutation.databaseCopyGraph({ input: { databaseId: '', graphId: '', name: '' } }).execute(); +``` + +### `db.mutation.databaseCreateFunctionGraph` + +databaseCreateFunctionGraph + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | DatabaseCreateFunctionGraphInput (required) | + +```typescript +const result = await db.mutation.databaseCreateFunctionGraph({ input: '' }).execute(); +``` + +### `db.mutation.databaseGraphInitEmptyRepo` + +databaseGraphInitEmptyRepo + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | DatabaseGraphInitEmptyRepoInput (required) | + +```typescript +const result = await db.mutation.databaseGraphInitEmptyRepo({ input: { sId: '', storeId: '' } }).execute(); +``` + +### `db.mutation.databaseGraphInsertNodeAtPath` + +databaseGraphInsertNodeAtPath + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | DatabaseGraphInsertNodeAtPathInput (required) | + +```typescript +const result = await db.mutation.databaseGraphInsertNodeAtPath({ input: '' }).execute(); +``` + +### `db.mutation.databaseGraphInsertNodesAtPaths` + +databaseGraphInsertNodesAtPaths + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | DatabaseGraphInsertNodesAtPathsInput (required) | + +```typescript +const result = await db.mutation.databaseGraphInsertNodesAtPaths({ input: '' }).execute(); +``` + +### `db.mutation.databaseGraphSetAndCommit` + +databaseGraphSetAndCommit + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | DatabaseGraphSetAndCommitInput (required) | + +```typescript +const result = await db.mutation.databaseGraphSetAndCommit({ input: '' }).execute(); +``` + +### `db.mutation.databaseGraphSetDataAtPath` + +databaseGraphSetDataAtPath + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | DatabaseGraphSetDataAtPathInput (required) | + +```typescript +const result = await db.mutation.databaseGraphSetDataAtPath({ input: { data: '', path: '', root: '', sId: '' } }).execute(); +``` + +### `db.mutation.databaseGraphSetManyAndCommit` + +databaseGraphSetManyAndCommit + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | DatabaseGraphSetManyAndCommitInput (required) | + +```typescript +const result = await db.mutation.databaseGraphSetManyAndCommit({ input: { entries: '', message: '', refname: '', sId: '', storeId: '' } }).execute(); +``` + +### `db.mutation.databaseImportDefinitions` + +databaseImportDefinitions + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | DatabaseImportDefinitionsInput (required) | + +```typescript +const result = await db.mutation.databaseImportDefinitions({ input: { contexts: '', graphId: '', sourceCommitId: '', sourceScopeId: '' } }).execute(); +``` + +### `db.mutation.databaseImportGraphJson` + +databaseImportGraphJson + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | DatabaseImportGraphJsonInput (required) | + +```typescript +const result = await db.mutation.databaseImportGraphJson({ input: '' }).execute(); +``` + +### `db.mutation.databaseSaveGraph` + +databaseSaveGraph + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | DatabaseSaveGraphInput (required) | + +```typescript +const result = await db.mutation.databaseSaveGraph({ input: { graphId: '', message: '', rootHash: '' } }).execute(); +``` + +### `db.mutation.databaseStartExecution` + +databaseStartExecution + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | DatabaseStartExecutionInput (required) | + +```typescript +const result = await db.mutation.databaseStartExecution({ input: '' }).execute(); +``` + +### `db.mutation.databaseValidateFunctionGraph` + +databaseValidateFunctionGraph + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | DatabaseValidateFunctionGraphInput (required) | + +```typescript +const result = await db.mutation.databaseValidateFunctionGraph({ input: { graphId: '' } }).execute(); +``` + +### `db.mutation.functionInvocationsCreateSync` + +functionInvocationsCreateSync + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | FunctionInvocationsCreateSyncInput (required) | + +```typescript +const result = await db.mutation.functionInvocationsCreateSync({ input: { entityId: '', payload: '', provenance: '', routeBindingId: '', taskIdentifier: '' } }).execute(); +``` + ### `db.mutation.importDefinitions` importDefinitions @@ -3202,6 +5829,21 @@ insertNodesAtPaths const result = await db.mutation.insertNodesAtPaths({ input: '' }).execute(); ``` +### `db.mutation.platformFunctionInvocationsCreateSync` + +platformFunctionInvocationsCreateSync + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | PlatformFunctionInvocationsCreateSyncInput (required) | + +```typescript +const result = await db.mutation.platformFunctionInvocationsCreateSync({ input: { entityId: '', payload: '', provenance: '', routeBindingId: '', taskIdentifier: '' } }).execute(); +``` + ### `db.mutation.platformInfraInitEmptyRepo` platformInfraInitEmptyRepo @@ -3354,10 +5996,11 @@ const result = await db.mutation.platformResourceInstallationsUpgrade({ input: { ### `db.mutation.provisionBucket` -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. +Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. - **Type:** mutation - **Arguments:** diff --git a/sdk/constructive-sdk/src/compute/orm/index.ts b/sdk/constructive-sdk/src/compute/orm/index.ts index 62973ed4f2..49ca8f7c16 100644 --- a/sdk/constructive-sdk/src/compute/orm/index.ts +++ b/sdk/constructive-sdk/src/compute/orm/index.ts @@ -5,7 +5,19 @@ */ import { OrmClient } from './client'; import type { OrmClientConfig } from './client'; +import { BuildModel } from './models/build'; +import { BuildStepModel } from './models/buildStep'; +import { BuilderBindingModel } from './models/builderBinding'; import { ContentPresetModel } from './models/contentPreset'; +import { DatabaseFunctionGraphModel } from './models/databaseFunctionGraph'; +import { DatabaseFunctionGraphExecutionModel } from './models/databaseFunctionGraphExecution'; +import { DatabaseFunctionGraphExecutionNodeStateModel } from './models/databaseFunctionGraphExecutionNodeState'; +import { DatabaseFunctionGraphExecutionOutputModel } from './models/databaseFunctionGraphExecutionOutput'; +import { DatabaseGraphCommitModel } from './models/databaseGraphCommit'; +import { DatabaseGraphGetAllTreeNodesRecordModel } from './models/databaseGraphGetAllTreeNodesRecord'; +import { DatabaseGraphObjectModel } from './models/databaseGraphObject'; +import { DatabaseGraphRefModel } from './models/databaseGraphRef'; +import { DatabaseGraphStoreModel } from './models/databaseGraphStore'; import { DbPresetModel } from './models/dbPreset'; import { FunctionApiBindingModel } from './models/functionApiBinding'; import { FunctionCapabilityBindingModel } from './models/functionCapabilityBinding'; @@ -24,6 +36,8 @@ import { FunctionGraphStoreModel } from './models/functionGraphStore'; import { FunctionInvocationAttemptModel } from './models/functionInvocationAttempt'; import { FunctionInvocationModel } from './models/functionInvocation'; import { GetAllTreeNodesRecordModel } from './models/getAllTreeNodesRecord'; +import { ImageModel } from './models/image'; +import { ImageGrantModel } from './models/imageGrant'; import { InfraCommitModel } from './models/infraCommit'; import { InfraGetAllTreeNodesRecordModel } from './models/infraGetAllTreeNodesRecord'; import { InfraObjectModel } from './models/infraObject'; @@ -32,6 +46,9 @@ import { InfraStoreModel } from './models/infraStore'; import { IntegrationProviderModel } from './models/integrationProvider'; import { NamespaceModel } from './models/namespace'; import { NamespaceEventModel } from './models/namespaceEvent'; +import { PlatformBuildModel } from './models/platformBuild'; +import { PlatformBuildStepModel } from './models/platformBuildStep'; +import { PlatformBuilderBindingModel } from './models/platformBuilderBinding'; import { PlatformFunctionApiBindingModel } from './models/platformFunctionApiBinding'; import { PlatformFunctionCapabilityBindingModel } from './models/platformFunctionCapabilityBinding'; import { PlatformFunctionDefinitionModel } from './models/platformFunctionDefinition'; @@ -40,18 +57,36 @@ import { PlatformFunctionDeploymentEventModel } from './models/platformFunctionD import { PlatformFunctionExecutionLogModel } from './models/platformFunctionExecutionLog'; import { PlatformFunctionInvocationAttemptModel } from './models/platformFunctionInvocationAttempt'; import { PlatformFunctionInvocationModel } from './models/platformFunctionInvocation'; +import { PlatformImageModel } from './models/platformImage'; +import { PlatformImageGrantModel } from './models/platformImageGrant'; import { PlatformInfraCommitModel } from './models/platformInfraCommit'; import { PlatformInfraGetAllTreeNodesRecordModel } from './models/platformInfraGetAllTreeNodesRecord'; import { PlatformInfraObjectModel } from './models/platformInfraObject'; import { PlatformInfraRefModel } from './models/platformInfraRef'; import { PlatformInfraStoreModel } from './models/platformInfraStore'; +import { PlatformK8sResourceKindModel } from './models/platformK8sResourceKind'; +import { PlatformK8sSpecRuleModel } from './models/platformK8sSpecRule'; import { PlatformNamespaceModel } from './models/platformNamespace'; import { PlatformNamespaceEventModel } from './models/platformNamespaceEvent'; +import { PlatformProposalCommentModel } from './models/platformProposalComment'; +import { PlatformProposalModel } from './models/platformProposal'; +import { PlatformProposalFileViewModel } from './models/platformProposalFileView'; +import { PlatformProposalReactionModel } from './models/platformProposalReaction'; +import { PlatformProposalReviewModel } from './models/platformProposalReview'; +import { PlatformProposalsChunkModel } from './models/platformProposalsChunk'; +import { PlatformRegistryBindingModel } from './models/platformRegistryBinding'; +import { PlatformRegistryModel } from './models/platformRegistry'; +import { PlatformRegistryGrantModel } from './models/platformRegistryGrant'; +import { PlatformRepositoryModel } from './models/platformRepository'; +import { PlatformRepositoryEventModel } from './models/platformRepositoryEvent'; +import { PlatformRepositoryRequiredCheckModel } from './models/platformRepositoryRequiredCheck'; +import { PlatformRepositoryWorkflowModel } from './models/platformRepositoryWorkflow'; import { PlatformResourceModel } from './models/platformResource'; import { PlatformResourceDeclaredCapacityModel } from './models/platformResourceDeclaredCapacity'; import { PlatformResourceDefinitionModel } from './models/platformResourceDefinition'; import { PlatformResourceEventModel } from './models/platformResourceEvent'; import { PlatformResourceInstallationModel } from './models/platformResourceInstallation'; +import { PlatformResourceObservedStorageModel } from './models/platformResourceObservedStorage'; import { PlatformResourceStatusCheckModel } from './models/platformResourceStatusCheck'; import { PlatformResourceUsageLogModel } from './models/platformResourceUsageLog'; import { PlatformResourceUsageSummaryModel } from './models/platformResourceUsageSummary'; @@ -61,11 +96,25 @@ import { PlatformResourcesRequirementsStateModel } from './models/platformResour import { PlatformResourcesResolvedRequirementModel } from './models/platformResourcesResolvedRequirement'; import { PlatformWebhookEndpointModel } from './models/platformWebhookEndpoint'; import { PlatformWebhookEventModel } from './models/platformWebhookEvent'; +import { ProposalCommentModel } from './models/proposalComment'; +import { ProposalModel } from './models/proposal'; +import { ProposalFileViewModel } from './models/proposalFileView'; +import { ProposalReactionModel } from './models/proposalReaction'; +import { ProposalReviewModel } from './models/proposalReview'; +import { ProposalsChunkModel } from './models/proposalsChunk'; +import { RegistryBindingModel } from './models/registryBinding'; +import { RegistryModel } from './models/registry'; +import { RegistryGrantModel } from './models/registryGrant'; +import { RepositoryModel } from './models/repository'; +import { RepositoryEventModel } from './models/repositoryEvent'; +import { RepositoryRequiredCheckModel } from './models/repositoryRequiredCheck'; +import { RepositoryWorkflowModel } from './models/repositoryWorkflow'; import { ResourceModel } from './models/resource'; import { ResourceDeclaredCapacityModel } from './models/resourceDeclaredCapacity'; import { ResourceDefinitionModel } from './models/resourceDefinition'; import { ResourceEventModel } from './models/resourceEvent'; import { ResourceInstallationModel } from './models/resourceInstallation'; +import { ResourceObservedStorageModel } from './models/resourceObservedStorage'; import { ResourceStatusCheckModel } from './models/resourceStatusCheck'; import { ResourceUsageLogModel } from './models/resourceUsageLog'; import { ResourceUsageSummaryModel } from './models/resourceUsageSummary'; @@ -110,7 +159,21 @@ export { createMutationOperations } from './mutation'; export function createClient(config: OrmClientConfig) { const client = new OrmClient(config); return { + build: new BuildModel(client), + buildStep: new BuildStepModel(client), + builderBinding: new BuilderBindingModel(client), contentPreset: new ContentPresetModel(client), + databaseFunctionGraph: new DatabaseFunctionGraphModel(client), + databaseFunctionGraphExecution: new DatabaseFunctionGraphExecutionModel(client), + databaseFunctionGraphExecutionNodeState: new DatabaseFunctionGraphExecutionNodeStateModel( + client + ), + databaseFunctionGraphExecutionOutput: new DatabaseFunctionGraphExecutionOutputModel(client), + databaseGraphCommit: new DatabaseGraphCommitModel(client), + databaseGraphGetAllTreeNodesRecord: new DatabaseGraphGetAllTreeNodesRecordModel(client), + databaseGraphObject: new DatabaseGraphObjectModel(client), + databaseGraphRef: new DatabaseGraphRefModel(client), + databaseGraphStore: new DatabaseGraphStoreModel(client), dbPreset: new DbPresetModel(client), functionApiBinding: new FunctionApiBindingModel(client), functionCapabilityBinding: new FunctionCapabilityBindingModel(client), @@ -129,6 +192,8 @@ export function createClient(config: OrmClientConfig) { functionInvocationAttempt: new FunctionInvocationAttemptModel(client), functionInvocation: new FunctionInvocationModel(client), getAllTreeNodesRecord: new GetAllTreeNodesRecordModel(client), + image: new ImageModel(client), + imageGrant: new ImageGrantModel(client), infraCommit: new InfraCommitModel(client), infraGetAllTreeNodesRecord: new InfraGetAllTreeNodesRecordModel(client), infraObject: new InfraObjectModel(client), @@ -137,6 +202,9 @@ export function createClient(config: OrmClientConfig) { integrationProvider: new IntegrationProviderModel(client), namespace: new NamespaceModel(client), namespaceEvent: new NamespaceEventModel(client), + platformBuild: new PlatformBuildModel(client), + platformBuildStep: new PlatformBuildStepModel(client), + platformBuilderBinding: new PlatformBuilderBindingModel(client), platformFunctionApiBinding: new PlatformFunctionApiBindingModel(client), platformFunctionCapabilityBinding: new PlatformFunctionCapabilityBindingModel(client), platformFunctionDefinition: new PlatformFunctionDefinitionModel(client), @@ -145,18 +213,36 @@ export function createClient(config: OrmClientConfig) { platformFunctionExecutionLog: new PlatformFunctionExecutionLogModel(client), platformFunctionInvocationAttempt: new PlatformFunctionInvocationAttemptModel(client), platformFunctionInvocation: new PlatformFunctionInvocationModel(client), + platformImage: new PlatformImageModel(client), + platformImageGrant: new PlatformImageGrantModel(client), platformInfraCommit: new PlatformInfraCommitModel(client), platformInfraGetAllTreeNodesRecord: new PlatformInfraGetAllTreeNodesRecordModel(client), platformInfraObject: new PlatformInfraObjectModel(client), platformInfraRef: new PlatformInfraRefModel(client), platformInfraStore: new PlatformInfraStoreModel(client), + platformK8sResourceKind: new PlatformK8sResourceKindModel(client), + platformK8sSpecRule: new PlatformK8sSpecRuleModel(client), platformNamespace: new PlatformNamespaceModel(client), platformNamespaceEvent: new PlatformNamespaceEventModel(client), + platformProposalComment: new PlatformProposalCommentModel(client), + platformProposal: new PlatformProposalModel(client), + platformProposalFileView: new PlatformProposalFileViewModel(client), + platformProposalReaction: new PlatformProposalReactionModel(client), + platformProposalReview: new PlatformProposalReviewModel(client), + platformProposalsChunk: new PlatformProposalsChunkModel(client), + platformRegistryBinding: new PlatformRegistryBindingModel(client), + platformRegistry: new PlatformRegistryModel(client), + platformRegistryGrant: new PlatformRegistryGrantModel(client), + platformRepository: new PlatformRepositoryModel(client), + platformRepositoryEvent: new PlatformRepositoryEventModel(client), + platformRepositoryRequiredCheck: new PlatformRepositoryRequiredCheckModel(client), + platformRepositoryWorkflow: new PlatformRepositoryWorkflowModel(client), platformResource: new PlatformResourceModel(client), platformResourceDeclaredCapacity: new PlatformResourceDeclaredCapacityModel(client), platformResourceDefinition: new PlatformResourceDefinitionModel(client), platformResourceEvent: new PlatformResourceEventModel(client), platformResourceInstallation: new PlatformResourceInstallationModel(client), + platformResourceObservedStorage: new PlatformResourceObservedStorageModel(client), platformResourceStatusCheck: new PlatformResourceStatusCheckModel(client), platformResourceUsageLog: new PlatformResourceUsageLogModel(client), platformResourceUsageSummary: new PlatformResourceUsageSummaryModel(client), @@ -166,11 +252,25 @@ export function createClient(config: OrmClientConfig) { platformResourcesResolvedRequirement: new PlatformResourcesResolvedRequirementModel(client), platformWebhookEndpoint: new PlatformWebhookEndpointModel(client), platformWebhookEvent: new PlatformWebhookEventModel(client), + proposalComment: new ProposalCommentModel(client), + proposal: new ProposalModel(client), + proposalFileView: new ProposalFileViewModel(client), + proposalReaction: new ProposalReactionModel(client), + proposalReview: new ProposalReviewModel(client), + proposalsChunk: new ProposalsChunkModel(client), + registryBinding: new RegistryBindingModel(client), + registry: new RegistryModel(client), + registryGrant: new RegistryGrantModel(client), + repository: new RepositoryModel(client), + repositoryEvent: new RepositoryEventModel(client), + repositoryRequiredCheck: new RepositoryRequiredCheckModel(client), + repositoryWorkflow: new RepositoryWorkflowModel(client), resource: new ResourceModel(client), resourceDeclaredCapacity: new ResourceDeclaredCapacityModel(client), resourceDefinition: new ResourceDefinitionModel(client), resourceEvent: new ResourceEventModel(client), resourceInstallation: new ResourceInstallationModel(client), + resourceObservedStorage: new ResourceObservedStorageModel(client), resourceStatusCheck: new ResourceStatusCheckModel(client), resourceUsageLog: new ResourceUsageLogModel(client), resourceUsageSummary: new ResourceUsageSummaryModel(client), diff --git a/sdk/constructive-sdk/src/compute/orm/input-types.ts b/sdk/constructive-sdk/src/compute/orm/input-types.ts index 566e3f81b1..93713ee6d9 100644 --- a/sdk/constructive-sdk/src/compute/orm/input-types.ts +++ b/sdk/constructive-sdk/src/compute/orm/input-types.ts @@ -233,9 +233,115 @@ export interface UUIDListFilter { // ============ Custom Scalar Types ============ export type Base64EncodedBinary = unknown; export type ConstructiveInternalTypeImage = unknown; +export type ConstructiveInternalTypeUpload = unknown; export type ResourceRequirement = unknown; -/** Seed-content preset catalog (limit defaults, trust ladders, ...) — merkle-versioned head over the infra store */ +/** One run of a repository workflow: its commit, its job, and what it produced */ // ============ Entity Types ============ +export interface Build { + /** Authenticated actor this build is attributed to; NULL only when no human actor was proven */ + actorId?: string | null; + /** Retry attempt number for this workflow, commit, and matrix shard */ + attempt?: number | null; + /** Commit this build built */ + commitSha?: string | null; + /** Verdict: NULL while pending/running, then success, failure, neutral, cancelled, skipped, timed_out, or action_required */ + conclusion?: string | null; + createdAt?: string | null; + createdByPrincipal?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; + /** Event that triggered this build (NULL for a manual build) */ + eventId?: string | null; + /** When the build reached a terminal status */ + finishedAt?: string | null; + id: string; + /** Image reference this build produced (registry host/repository:tag; NULL when the build produced no image) */ + imageRef?: string | null; + /** app_jobs row running this build */ + jobId?: string | null; + /** Build log object in storage; step rows slice it by byte range */ + logs?: ConstructiveInternalTypeUpload | null; + /** Matrix shard identity; NULL for a non-matrix build */ + matrixKey?: string | null; + /** Build detail (step results, durations, failure reason) */ + metadata?: Record | null; + /** Proposal this build checks (NULL for builds not tied to a proposal) */ + proposalId?: string | null; + /** Ref this build built */ + ref?: string | null; + /** Repository this build is of */ + repositoryId?: string | null; + /** When the build began running */ + startedAt?: string | null; + /** Lifecycle: pending, running, succeeded, failed, cancelled */ + status?: string | null; + updatedAt?: string | null; + updatedByPrincipal?: string | null; + /** Workflow whose firing produced this build (NULL for a manual build) */ + workflowId?: string | null; +} +/** Partitioned append-only step and test results of a build, keyed into its log object */ +export interface BuildStep { + /** Build these results belong to */ + buildId?: string | null; + /** Acting principal (agent, API key, or user) who created this record */ + createdByPrincipal?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; + /** Process exit code of a step (NULL for a test result) */ + exitCode?: number | null; + /** When this step or test finished */ + finishedAt?: string | null; + /** Unique identifier (uuidv7 provides temporal ordering) */ + id: string; + /** What this row is: step, or test */ + kind?: string | null; + /** Byte length of this row's output in the build log object */ + logBytes?: string | null; + /** Byte offset of this row's output in the build log object */ + logOffset?: string | null; + /** Step name, or the test's fully qualified name */ + name?: string | null; + /** Sequence of the step that reported this test (NULL for a step itself) */ + parentSeq?: number | null; + /** When the result was recorded (partition key) */ + recordedAt?: string | null; + /** Position within the build, monotonically increasing across steps and their tests */ + seq?: number | null; + /** When this step or test began */ + startedAt?: string | null; + /** Outcome: running, succeeded, failed, skipped, cancelled */ + status?: string | null; + /** Parsed detail: failure message, assertion diff, counts, annotations */ + summary?: Record | null; +} +/** Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST */ +export interface BuilderBinding { + createdAt?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; + id: string; + /** BuildKit resource installation serving this binding; may belong to another resource scope */ + installationId?: string | null; + /** Most recent projection failure */ + lastError?: string | null; + /** Reconciler detail (projection timestamps and diagnostics) */ + metadata?: Record | null; + /** Namespace whose builds use this BuildKit installation */ + namespaceId?: string | null; + /** BuildKit address last projected into the namespace (NULL = never projected) */ + observedHost?: string | null; + /** Lane this binding applies to (NULL = the scope's default lane) */ + realm?: string | null; + /** Projection state of BUILDKIT_HOST: pending, active, failed */ + status?: string | null; + updatedAt?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +/** Seed-content preset catalog (limit defaults, trust ladders, ...) — merkle-versioned head over the infra store */ export interface ContentPreset { /** Whether this preset is selectable at provision time */ active?: boolean | null; @@ -260,6 +366,224 @@ export interface ContentPreset { /** Timestamp of last modification */ updatedAt?: string | null; } +/** Flow graph definitions — FBP graphs stored in the dedicated graph Merkle store */ +export interface DatabaseFunctionGraph { + /** Evaluator/runtime context (function, js, sql, system) */ + context?: string | null; + /** Timestamp of graph creation */ + createdAt?: string | null; + /** Actor who created this graph */ + createdBy?: string | null; + /** Database scope for multi-tenant isolation */ + databaseId?: string | null; + /** Pinned definitions store commit for deterministic evaluation */ + definitionsCommitId?: string | null; + /** Human-readable description of the graph */ + description?: string | null; + /** Unique graph identifier */ + id: string; + /** Whether graph passes structural validation */ + isValid?: boolean | null; + /** Graph name (unique per database) */ + name?: string | null; + /** Graph store (Merkle store) holding the graph definition */ + storeId?: string | null; + /** Timestamp of last modification */ + updatedAt?: string | null; + /** Array of validation error objects when is_valid = false */ + validationErrors?: Record | null; +} +/** Ephemeral execution state for flow graph evaluation */ +export interface DatabaseFunctionGraphExecution { + /** User actor propagated to asynchronous graph jobs */ + actorId?: string | null; + /** Execution completion timestamp */ + completedAt?: string | null; + /** Index into execution_plan — tick only processes this wave */ + currentWave?: number | null; + /** Database scope for multi-tenant isolation */ + databaseId?: string | null; + /** Pinned definitions store commit for deterministic evaluation */ + definitionsCommitId?: string | null; + /** Entity context propagated to asynchronous graph jobs */ + entityId?: string | null; + /** Scope discriminator propagated to asynchronous graph jobs */ + entityType?: string | null; + /** Machine-readable error code when status = failed */ + errorCode?: string | null; + /** Human-readable error description when status = failed */ + errorMessage?: string | null; + /** Pre-computed topological sort as array of wave objects */ + executionPlan?: Record | null; + /** FK to the graph definition being executed */ + graphId?: string | null; + /** Unique execution identifier */ + id: string; + /** Initial inputs provided at invocation time */ + inputPayload?: Record | null; + /** Partition coordinate for the function invocation that launched this graph execution */ + invocationCreatedAt?: string | null; + /** Function invocation that launched this top-level graph execution */ + invocationId?: string | null; + /** Timestamp of the last real progress (node enqueue, node output, completion) — drives the activity-debounced watchdog */ + lastProgressAt?: string | null; + /** Maximum pending jobs before execution is failed (default 50) */ + maxPendingJobs?: number | null; + /** Maximum ticks before execution is failed (default 100) */ + maxTicks?: number | null; + /** Map of node_name → execution output id (content-addressed hash reference) */ + nodeOutputs?: Record | null; + /** Organization context propagated to asynchronous graph jobs */ + organizationId?: string | null; + /** Selected graphOutput portName values; NULL or empty returns all graph outputs */ + outputNames?: string[] | null; + /** Target output boundary node name to resolve; NULL derives completion from the graph's graphOutput nodes */ + outputNode?: string | null; + /** Final result extracted from terminal output node */ + outputPayload?: Record | null; + /** Target output port name (default: value) */ + outputPort?: string | null; + /** Parent execution when this is a sub-execution */ + parentExecutionId?: string | null; + /** Function invocation parent assigned to node invocations spawned by this execution */ + parentInvocationId?: string | null; + /** Node name in parent execution that spawned this sub-execution */ + parentNodeName?: string | null; + /** Principal identity propagated to asynchronous graph jobs */ + principalId?: string | null; + /** Execution start timestamp */ + startedAt?: string | null; + /** Lifecycle: pending → running → completed/failed/cancelled */ + status?: string | null; + /** Number of evaluate_step ticks executed */ + tickCount?: number | null; + /** Absolute deadline — execution fails if still running after this time */ + timeoutAt?: string | null; +} +/** Per-node execution state — tracks individual node lifecycle for debugging */ +export interface DatabaseFunctionGraphExecutionNodeState { + /** Snapshot of the node's resolved inputs for resource-runtime nodes — served by the node gateway GET /inputs endpoint */ + callbackInputs?: Record | null; + /** Metering/attribution context stamped at resource dispatch (namespace_id, task_identifier, entity_id, scope, resource identity, dispatched_at, attempt) — lets the node gateway settle and attribute without extra lookups */ + callbackMeta?: Record | null; + /** SHA-256 hex digest of the node callback token — set for resource-runtime nodes so the node gateway can authenticate result/error/heartbeat callbacks */ + callbackTokenHash?: string | null; + /** Timestamp when the node finished (success or failure) */ + completedAt?: string | null; + /** Timestamp of node state creation (partition key) */ + createdAt?: string | null; + /** Database scope for multi-tenant isolation */ + databaseId?: string | null; + /** Machine-readable error code when status = failed */ + errorCode?: string | null; + /** Human-readable error description when status = failed */ + errorMessage?: string | null; + /** FK to the parent graph execution */ + executionId?: string | null; + /** Declared output applied by the default_answer expiry policy */ + expiryDefaultOutput?: Record | null; + /** When the escalate expiry policy fired — guards the one-time extension */ + expiryEscalatedAt?: string | null; + /** Declared expiry behaviour when waiting_deadline_at passes unanswered: fail (fail the execution), default_answer (settle with expiry_default_output), or escalate (notify and extend once) */ + expiryPolicy?: string | null; + /** Unique node state identifier */ + id: string; + /** Name of the node within the graph (e.g. send-email1) */ + nodeName?: string | null; + /** Full merkle tree path to this node (e.g. {function,graphs,myflow,nodes,send-email1}) — enables subnet hierarchy tracking */ + nodePath?: string[] | null; + /** FK to execution_outputs — content-addressed output blob for this node */ + outputId?: string | null; + /** Timestamp when the node began executing */ + startedAt?: string | null; + /** Node lifecycle: pending → queued → running → completed/failed/cancelled */ + status?: string | null; + /** When the declared expiry policy applies to the still-unanswered node */ + waitingDeadlineAt?: string | null; + /** What class of external reporter settles this node: human (a person answers) or external (webhook/adapter). NULL for nodes with an active workload */ + waitingOn?: string | null; + /** When the node parked awaiting its external report */ + waitingSince?: string | null; +} +/** Content-addressed store for execution outputs — hash-referenced from node_outputs */ +export interface DatabaseFunctionGraphExecutionOutput { + /** Timestamp of output creation */ + createdAt?: string | null; + /** The actual output payload from a completed node */ + data?: Record | null; + /** Database scope for multi-tenant isolation */ + databaseId?: string | null; + /** SHA-256 hash of the data JSONB — content-addressed deduplication */ + hash?: Base64EncodedBinary | null; + /** Unique execution output identifier */ + id: string; +} +/** Commit history — each commit snapshots a tree root for a store */ +export interface DatabaseGraphCommit { + /** User who authored the changes */ + authorId?: string | null; + /** User who committed (may differ from author) */ + committerId?: string | null; + /** Database scope for multi-tenant isolation */ + databaseId?: string | null; + /** Commit timestamp */ + date?: string | null; + /** Unique commit identifier */ + id: string; + /** Optional commit message */ + message?: string | null; + /** Parent commit IDs (supports merge commits) */ + parentIds?: string[] | null; + /** Store this commit belongs to */ + storeId?: string | null; + /** Root object ID of the tree snapshot at this commit */ + treeId?: string | null; +} +export interface DatabaseGraphGetAllTreeNodesRecord { + data?: Record | null; + path?: string[] | null; +} +/** Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children */ +export interface DatabaseGraphObject { + /** Timestamp of object creation */ + createdAt?: string | null; + /** Payload data for this object node */ + data?: Record | null; + /** Database scope for multi-tenant isolation */ + databaseId?: string | null; + /** Content-addressed UUID v5 — deterministic hash of (data, kids, ktree) */ + id: string; + /** Ordered array of child object IDs */ + kids?: string[] | null; + /** Ordered array of child path names (parallel to kids) */ + ktree?: string[] | null; +} +/** Branch heads — mutable pointers into the commit chain */ +export interface DatabaseGraphRef { + /** Commit this ref points to */ + commitId?: string | null; + /** Database scope for multi-tenant isolation */ + databaseId?: string | null; + /** Unique ref identifier */ + id: string; + /** Ref name (e.g. HEAD, main) */ + name?: string | null; + /** Store this ref belongs to */ + storeId?: string | null; +} +/** Named stores — one per version-controlled tree (e.g. one graph, one definition set) */ +export interface DatabaseGraphStore { + /** Timestamp of store creation */ + createdAt?: string | null; + /** Database scope for multi-tenant isolation */ + databaseId?: string | null; + /** Current root object hash of this store */ + hash?: string | null; + /** Unique store identifier */ + id: string; + /** Human-readable store name */ + name?: string | null; +} /** Database provisioning preset catalog — merkle-versioned head over the infra store */ export interface DbPreset { /** Whether this preset is selectable for new databases */ @@ -323,6 +647,8 @@ export interface FunctionCapabilityBinding { export interface FunctionDefinition { /** 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 this function consents to run for a caller with no identity (a sign-in surface, a public page). Anonymous execution additionally requires the matched route to declare anonymous access. Default false = an identity is required. */ + anonymousCallable?: boolean | null; /** Function task category (e.g. email, embed, chunk, custom) */ category?: string | null; /** Knative containerConcurrency — max concurrent requests per pod instance */ @@ -332,6 +658,7 @@ export interface FunctionDefinition { /** Requested CPU in millicores, derived from resources.requests.cpu (NULL if unset/invalid) */ cpuRequestMillicores?: string | null; createdAt?: string | null; + createdByPrincipal?: string | null; /** Database that owns this resource (database-scoped isolation) */ databaseId?: string | null; /** Human-readable description of what this function does */ @@ -379,6 +706,8 @@ export interface FunctionDefinition { queueName?: string | null; /** 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; + /** Capability providers the handler declared in handler.json requires.capabilities, as an array of {name, version, declaration}. NULL when the handler declares none, which mounts the full platform set. */ + requiredCapabilities?: Record | 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. */ @@ -389,7 +718,7 @@ export interface FunctionDefinition { requiredSecrets?: ResourceRequirement[] | null; /** Container resource requests and limits: {requests: {memory, cpu}, limits: {memory, cpu}} */ resources?: Record | null; - /** Execution mode: http (Knative Service dispatch), inline (in-process in compute worker), handler (registered infrastructure handler), sql (generic SQL dispatch via a trusted direct target or module-resolved function names), resource (Kubernetes Job via the resource module with node-gateway callbacks), or graph (existing flow graph referenced by graph_id) */ + /** Execution mode: http (Knative Service dispatch), inline (in-process in compute worker), handler (registered infrastructure handler), sql (generic SQL dispatch via a trusted direct target or module-resolved function names), resource (Kubernetes Job via the resource module with node-gateway callbacks), graph (existing flow graph referenced by graph_id), or human (parks the node awaiting a person's answer through approve_node) */ runtime?: string | null; /** Maximum pod count for Knative autoscaling (maxScale) */ scaleMax?: number | null; @@ -404,6 +733,7 @@ export interface FunctionDefinition { /** Knative request timeout in seconds */ timeoutSeconds?: number | null; updatedAt?: string | null; + updatedByPrincipal?: string | null; /** Whether this function has side effects and cannot be cached or memoized */ volatile?: boolean | null; } @@ -414,6 +744,7 @@ export interface FunctionDeployment { /** Max concurrent requests per pod (NULL = inherit from definition) */ concurrency?: number | null; createdAt?: string | null; + createdByPrincipal?: string | null; /** Database that owns this resource (database-scoped isolation) */ databaseId?: string | null; /** Cumulative error count for this deployment */ @@ -452,10 +783,11 @@ export interface FunctionDeployment { /** Request timeout override in seconds (NULL = inherit from definition) */ timeoutSeconds?: number | null; updatedAt?: string | null; + updatedByPrincipal?: string | null; } /** Deployment lifecycle events — audit log of provisioning, scaling, and failure events */ export interface FunctionDeploymentEvent { - /** User who triggered this event (NULL for system/automated) */ + /** User who triggered this event; NULL only when no human actor was proven */ actorId?: string | null; /** Event timestamp (partition key) */ createdAt?: string | null; @@ -474,7 +806,7 @@ export interface FunctionDeploymentEvent { } /** Function execution logs — structured console output per invocation */ export interface FunctionExecutionLog { - /** User who triggered the execution (NULL for system/cron) */ + /** User who triggered the execution; NULL only when no human actor was proven */ actorId?: string | null; /** Log entry timestamp (partition key) */ createdAt?: string | null; @@ -626,6 +958,12 @@ export interface FunctionGraphExecutionNodeState { errorMessage?: string | null; /** FK to the parent graph execution */ executionId?: string | null; + /** Declared output applied by the default_answer expiry policy */ + expiryDefaultOutput?: Record | null; + /** When the escalate expiry policy fired — guards the one-time extension */ + expiryEscalatedAt?: string | null; + /** Declared expiry behaviour when waiting_deadline_at passes unanswered: fail (fail the execution), default_answer (settle with expiry_default_output), or escalate (notify and extend once) */ + expiryPolicy?: string | null; /** Unique node state identifier */ id: string; /** Name of the node within the graph (e.g. send-email1) */ @@ -638,8 +976,14 @@ export interface FunctionGraphExecutionNodeState { scopeId?: string | null; /** Timestamp when the node began executing */ startedAt?: string | null; - /** Node lifecycle: pending → queued → running → completed/failed */ + /** Node lifecycle: pending → queued → running → completed/failed/cancelled */ status?: string | null; + /** When the declared expiry policy applies to the still-unanswered node */ + waitingDeadlineAt?: string | null; + /** What class of external reporter settles this node: human (a person answers) or external (webhook/adapter). NULL for nodes with an active workload */ + waitingOn?: string | null; + /** When the node parked awaiting its external report */ + waitingSince?: string | null; } /** Content-addressed store for execution outputs — hash-referenced from node_outputs */ export interface FunctionGraphExecutionOutput { @@ -697,7 +1041,7 @@ export interface FunctionGraphStore { } /** Function invocation attempts — one row per worker attempt (including failed retries) with duration and error detail */ export interface FunctionInvocationAttempt { - /** Who triggered the invocation (NULL for system/cron) */ + /** Who triggered the invocation; NULL only when no human actor was proven */ actorId?: string | null; /** 1-based attempt number for this invocation */ attempt?: number | null; @@ -726,22 +1070,28 @@ export interface FunctionInvocationAttempt { } /** Function invocation log — INSERT to call a function (business-layer, metered). Linked to definitions via function_definition_id FK, with task_identifier as the denormalized routing/audit slug. */ export interface FunctionInvocation { - /** Who triggered the invocation (NULL for system/cron) */ + /** Who triggered the invocation; NULL only when no human actor was proven */ actorId?: string | null; /** API binding this invocation arrived through (NULL for cron/graph/system/worker paths) */ apiBindingId?: string | null; - /** Invocation trigger channel: api, graph, cron, sync, webhook, or worker */ + /** Invocation trigger channel: api, graph, cron, sync, webhook, trigger, or worker */ channel?: string | null; /** When execution completed */ completedAt?: string | null; /** Invocation creation timestamp (partition key) */ createdAt?: string | null; + /** Acting principal (agent, API key, or user) who created this record */ + createdByPrincipal?: string | null; /** Database that owns this resource (database-scoped isolation) */ databaseId?: string | null; /** Scope that owns function_definition_id (e.g. app/org/database/platform) — the per-scope definitions table the resolver selected */ definitionScope?: string | null; /** Wall-clock execution time in milliseconds */ durationMs?: number | null; + /** Entity identity propagated with the invocation */ + entityId?: string | null; + /** Entity type propagated with the invocation */ + entityType?: string | null; /** Error message when status is failed, or the reason the run was skipped when status is skipped */ error?: string | null; /** Function definition this invocation ran (soft cross-scope ref; paired with definition_scope). task_identifier stays as the audit slug. */ @@ -752,10 +1102,14 @@ export interface FunctionInvocation { id: string; /** FK to app_jobs.jobs — the underlying transport */ jobId?: string | null; + /** Organization identity propagated with the invocation */ + organizationId?: string | null; /** Parent invocation when this is a child node of a flow graph execution */ parentInvocationId?: string | null; /** Function input payload */ payload?: Record | null; + /** Principal identity that triggered the invocation */ + principalId?: string | null; /** Non-secret channel-specific invocation provenance (route/binding/event identifiers only) */ provenance?: Record | null; /** Function return value (success) or structured error (failure) */ @@ -771,6 +1125,64 @@ export interface GetAllTreeNodesRecord { data?: Record | null; path?: string[] | null; } +/** Container image catalog: images available to run as functions, resources, and builds */ +export interface Image { + createdAt?: string | null; + createdByPrincipal?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; + /** Human-readable description of what this image runs */ + description?: string | null; + /** Content address (sha256:...) pinning this image, when known */ + digest?: string | null; + /** When this catalog row becomes eligible for retention cleanup (NULL = kept forever) */ + expiresAt?: string | null; + id: string; + /** Whether this image is published for use by any scope */ + isPublished?: boolean | null; + /** Labels for selecting images (architecture, capabilities, lane) */ + labels?: Record | null; + /** Freeform metadata (build provenance, source repository, SBOM pointer) */ + metadata?: Record | null; + /** Human-readable image name (e.g. node-runtime) */ + name?: string | null; + /** User who registered this catalog row */ + ownerId?: string | null; + /** Whether this image is reserved for platform-internal use */ + platformOnly?: boolean | null; + /** Registry host serving this image (NULL means the platform default registry) */ + registryHost?: string | null; + /** Repository path within the registry (e.g. constructiveio/worker) */ + repository?: string | null; + /** Runtime this image implements (e.g. nodejs, python, custom) */ + runtime?: string | null; + /** Mutable tag this row addresses */ + tag?: string | null; + updatedAt?: string | null; + updatedByPrincipal?: string | null; +} +/** Grants that make a catalog image usable by one scope */ +export interface ImageGrant { + /** Registry actions this grant allows (pull, push, delete) */ + actions?: string[] | null; + createdAt?: string | null; + createdByPrincipal?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; + /** When this grant stops applying (NULL never expires) */ + expiresAt?: string | null; + /** User who issued this grant */ + grantedBy?: string | null; + /** Scope key of the grantee (a database_id or an entity_id) */ + granteeKey?: string | null; + /** Scope tier of the grantee (database, org, app, platform) */ + granteeScope?: string | null; + id: string; + /** Catalog image this grant applies to */ + imageId?: string | null; + updatedAt?: string | null; + updatedByPrincipal?: string | null; +} /** Commit history — each commit snapshots a tree root for a store */ export interface InfraCommit { /** User who authored the changes */ @@ -865,6 +1277,8 @@ export interface IntegrationProvider { export interface Namespace { /** Freeform metadata for tooling and operational notes */ annotations?: Record | null; + /** Cluster this namespace is projected onto; NULL = the cluster the reconciler runs in */ + clusterId?: string | null; createdAt?: string | null; /** Database that owns this resource (database-scoped isolation) */ databaseId?: string | null; @@ -889,7 +1303,7 @@ export interface Namespace { } /** Namespace lifecycle events — audit log of creation, activation, deactivation, label changes */ export interface NamespaceEvent { - /** User who triggered this event (NULL for system/automated) */ + /** User who triggered this event; NULL only when no human actor was proven */ actorId?: string | null; /** Event timestamp (partition key) */ createdAt?: string | null; @@ -906,9 +1320,108 @@ export interface NamespaceEvent { /** Namespace this event belongs to */ namespaceId?: string | null; } -/** Join table binding function definitions to API endpoints with per-binding alias and config */ -export interface PlatformFunctionApiBinding { - /** Binding alias (e.g. default, staging, production) */ +/** One run of a repository workflow: its commit, its job, and what it produced */ +export interface PlatformBuild { + /** Authenticated actor this build is attributed to; NULL only when no human actor was proven */ + actorId?: string | null; + /** Retry attempt number for this workflow, commit, and matrix shard */ + attempt?: number | null; + /** Commit this build built */ + commitSha?: string | null; + /** Verdict: NULL while pending/running, then success, failure, neutral, cancelled, skipped, timed_out, or action_required */ + conclusion?: string | null; + createdAt?: string | null; + createdByPrincipal?: string | null; + /** Event that triggered this build (NULL for a manual build) */ + eventId?: string | null; + /** When the build reached a terminal status */ + finishedAt?: string | null; + id: string; + /** Image reference this build produced (registry host/repository:tag; NULL when the build produced no image) */ + imageRef?: string | null; + /** app_jobs row running this build */ + jobId?: string | null; + /** Build log object in storage; step rows slice it by byte range */ + logs?: ConstructiveInternalTypeUpload | null; + /** Matrix shard identity; NULL for a non-matrix build */ + matrixKey?: string | null; + /** Build detail (step results, durations, failure reason) */ + metadata?: Record | null; + /** Proposal this build checks (NULL for builds not tied to a proposal) */ + proposalId?: string | null; + /** Ref this build built */ + ref?: string | null; + /** Repository this build is of */ + repositoryId?: string | null; + /** When the build began running */ + startedAt?: string | null; + /** Lifecycle: pending, running, succeeded, failed, cancelled */ + status?: string | null; + updatedAt?: string | null; + updatedByPrincipal?: string | null; + /** Workflow whose firing produced this build (NULL for a manual build) */ + workflowId?: string | null; +} +/** Partitioned append-only step and test results of a build, keyed into its log object */ +export interface PlatformBuildStep { + /** Build these results belong to */ + buildId?: string | null; + /** Acting principal (agent, API key, or user) who created this record */ + createdByPrincipal?: string | null; + /** Process exit code of a step (NULL for a test result) */ + exitCode?: number | null; + /** When this step or test finished */ + finishedAt?: string | null; + /** Unique identifier (uuidv7 provides temporal ordering) */ + id: string; + /** What this row is: step, or test */ + kind?: string | null; + /** Byte length of this row's output in the build log object */ + logBytes?: string | null; + /** Byte offset of this row's output in the build log object */ + logOffset?: string | null; + /** Step name, or the test's fully qualified name */ + name?: string | null; + /** Sequence of the step that reported this test (NULL for a step itself) */ + parentSeq?: number | null; + /** When the result was recorded (partition key) */ + recordedAt?: string | null; + /** Position within the build, monotonically increasing across steps and their tests */ + seq?: number | null; + /** When this step or test began */ + startedAt?: string | null; + /** Outcome: running, succeeded, failed, skipped, cancelled */ + status?: string | null; + /** Parsed detail: failure message, assertion diff, counts, annotations */ + summary?: Record | null; +} +/** Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST */ +export interface PlatformBuilderBinding { + createdAt?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + id: string; + /** BuildKit resource installation serving this binding; may belong to another resource scope */ + installationId?: string | null; + /** Most recent projection failure */ + lastError?: string | null; + /** Reconciler detail (projection timestamps and diagnostics) */ + metadata?: Record | null; + /** Namespace whose builds use this BuildKit installation */ + namespaceId?: string | null; + /** BuildKit address last projected into the namespace (NULL = never projected) */ + observedHost?: string | null; + /** Lane this binding applies to (NULL = the scope's default lane) */ + realm?: string | null; + /** Projection state of BUILDKIT_HOST: pending, active, failed */ + status?: string | null; + updatedAt?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +/** Join table binding function definitions to API endpoints with per-binding alias and config */ +export interface PlatformFunctionApiBinding { + /** Binding alias (e.g. default, staging, production) */ alias?: string | null; /** API endpoint this function is bound to */ apiId?: string | null; @@ -942,6 +1455,8 @@ export interface PlatformFunctionCapabilityBinding { export interface PlatformFunctionDefinition { /** 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 this function consents to run for a caller with no identity (a sign-in surface, a public page). Anonymous execution additionally requires the matched route to declare anonymous access. Default false = an identity is required. */ + anonymousCallable?: boolean | null; /** Whether executions are metered through the invocation ledger and billing quota gate */ billable?: boolean | null; /** Function task category (e.g. email, embed, chunk, custom) */ @@ -953,6 +1468,7 @@ export interface PlatformFunctionDefinition { /** Requested CPU in millicores, derived from resources.requests.cpu (NULL if unset/invalid) */ cpuRequestMillicores?: string | null; createdAt?: string | null; + createdByPrincipal?: string | null; /** Human-readable description of what this function does */ description?: string | null; /** Palette grouping category (e.g. email, data, ai, custom) */ @@ -998,6 +1514,8 @@ export interface PlatformFunctionDefinition { queueName?: string | null; /** 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; + /** Capability providers the handler declared in handler.json requires.capabilities, as an array of {name, version, declaration}. NULL when the handler declares none, which mounts the full platform set. */ + requiredCapabilities?: Record | 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. */ @@ -1008,7 +1526,7 @@ export interface PlatformFunctionDefinition { requiredSecrets?: ResourceRequirement[] | null; /** Container resource requests and limits: {requests: {memory, cpu}, limits: {memory, cpu}} */ resources?: Record | null; - /** Execution mode: http (Knative Service dispatch), inline (in-process in compute worker), handler (registered infrastructure handler), sql (generic SQL dispatch via a trusted direct target or module-resolved function names), resource (Kubernetes Job via the resource module with node-gateway callbacks), or graph (existing flow graph referenced by graph_id) */ + /** Execution mode: http (Knative Service dispatch), inline (in-process in compute worker), handler (registered infrastructure handler), sql (generic SQL dispatch via a trusted direct target or module-resolved function names), resource (Kubernetes Job via the resource module with node-gateway callbacks), graph (existing flow graph referenced by graph_id), or human (parks the node awaiting a person's answer through approve_node) */ runtime?: string | null; /** Maximum pod count for Knative autoscaling (maxScale) */ scaleMax?: number | null; @@ -1025,6 +1543,7 @@ export interface PlatformFunctionDefinition { /** Knative request timeout in seconds */ timeoutSeconds?: number | null; updatedAt?: string | null; + updatedByPrincipal?: string | null; /** Whether this function has side effects and cannot be cached or memoized */ volatile?: boolean | null; } @@ -1035,6 +1554,7 @@ export interface PlatformFunctionDeployment { /** Max concurrent requests per pod (NULL = inherit from definition) */ concurrency?: number | null; createdAt?: string | null; + createdByPrincipal?: string | null; /** Cumulative error count for this deployment */ errorCount?: number | null; /** Handler directory name (e.g. email, document) — used as FN_HANDLER_NAME in combined-image mode to select the entry point */ @@ -1071,10 +1591,11 @@ export interface PlatformFunctionDeployment { /** Request timeout override in seconds (NULL = inherit from definition) */ timeoutSeconds?: number | null; updatedAt?: string | null; + updatedByPrincipal?: string | null; } /** Deployment lifecycle events — audit log of provisioning, scaling, and failure events */ export interface PlatformFunctionDeploymentEvent { - /** User who triggered this event (NULL for system/automated) */ + /** User who triggered this event; NULL only when no human actor was proven */ actorId?: string | null; /** Event timestamp (partition key) */ createdAt?: string | null; @@ -1091,7 +1612,7 @@ export interface PlatformFunctionDeploymentEvent { } /** Function execution logs — structured console output per invocation */ export interface PlatformFunctionExecutionLog { - /** User who triggered the execution (NULL for system/cron) */ + /** User who triggered the execution; NULL only when no human actor was proven */ actorId?: string | null; /** Log entry timestamp (partition key) */ createdAt?: string | null; @@ -1110,7 +1631,7 @@ export interface PlatformFunctionExecutionLog { } /** Function invocation attempts — one row per worker attempt (including failed retries) with duration and error detail */ export interface PlatformFunctionInvocationAttempt { - /** Who triggered the invocation (NULL for system/cron) */ + /** Who triggered the invocation; NULL only when no human actor was proven */ actorId?: string | null; /** 1-based attempt number for this invocation */ attempt?: number | null; @@ -1137,22 +1658,28 @@ export interface PlatformFunctionInvocationAttempt { } /** Function invocation log — INSERT to call a function (business-layer, metered). Linked to definitions via function_definition_id FK, with task_identifier as the denormalized routing/audit slug. */ export interface PlatformFunctionInvocation { - /** Who triggered the invocation (NULL for system/cron) */ + /** Who triggered the invocation; NULL only when no human actor was proven */ actorId?: string | null; /** API binding this invocation arrived through (NULL for cron/graph/system/worker paths) */ apiBindingId?: string | null; - /** Invocation trigger channel: api, graph, cron, sync, webhook, or worker */ + /** Invocation trigger channel: api, graph, cron, sync, webhook, trigger, or worker */ channel?: string | null; /** When execution completed */ completedAt?: string | null; /** Invocation creation timestamp (partition key) */ createdAt?: string | null; + /** Acting principal (agent, API key, or user) who created this record */ + createdByPrincipal?: string | null; /** Database this invocation is attributed to (usage/billing attribution) */ databaseId?: string | null; /** Scope that owns function_definition_id (e.g. app/org/database/platform) — the per-scope definitions table the resolver selected */ definitionScope?: string | null; /** Wall-clock execution time in milliseconds */ durationMs?: number | null; + /** Entity identity propagated with the invocation */ + entityId?: string | null; + /** Entity type propagated with the invocation */ + entityType?: string | null; /** Error message when status is failed, or the reason the run was skipped when status is skipped */ error?: string | null; /** Function definition this invocation ran (soft cross-scope ref; paired with definition_scope). task_identifier stays as the audit slug. */ @@ -1163,10 +1690,14 @@ export interface PlatformFunctionInvocation { id: string; /** FK to app_jobs.jobs — the underlying transport */ jobId?: string | null; + /** Organization identity propagated with the invocation */ + organizationId?: string | null; /** Parent invocation when this is a child node of a flow graph execution */ parentInvocationId?: string | null; /** Function input payload */ payload?: Record | null; + /** Principal identity that triggered the invocation */ + principalId?: string | null; /** Non-secret channel-specific invocation provenance (route/binding/event identifiers only) */ provenance?: Record | null; /** Function return value (success) or structured error (failure) */ @@ -1178,6 +1709,60 @@ export interface PlatformFunctionInvocation { /** Function routing slug (category:name). Denormalized from the definition — must match the row referenced by function_definition_id when that is set. */ taskIdentifier?: string | null; } +/** Container image catalog: images available to run as functions, resources, and builds */ +export interface PlatformImage { + createdAt?: string | null; + createdByPrincipal?: string | null; + /** Human-readable description of what this image runs */ + description?: string | null; + /** Content address (sha256:...) pinning this image, when known */ + digest?: string | null; + /** When this catalog row becomes eligible for retention cleanup (NULL = kept forever) */ + expiresAt?: string | null; + id: string; + /** Whether this image is published for use by any scope */ + isPublished?: boolean | null; + /** Labels for selecting images (architecture, capabilities, lane) */ + labels?: Record | null; + /** Freeform metadata (build provenance, source repository, SBOM pointer) */ + metadata?: Record | null; + /** Human-readable image name (e.g. node-runtime) */ + name?: string | null; + /** User who registered this catalog row */ + ownerId?: string | null; + /** Whether this image is reserved for platform-internal use */ + platformOnly?: boolean | null; + /** Registry host serving this image (NULL means the platform default registry) */ + registryHost?: string | null; + /** Repository path within the registry (e.g. constructiveio/worker) */ + repository?: string | null; + /** Runtime this image implements (e.g. nodejs, python, custom) */ + runtime?: string | null; + /** Mutable tag this row addresses */ + tag?: string | null; + updatedAt?: string | null; + updatedByPrincipal?: string | null; +} +/** Grants that make a catalog image usable by one scope */ +export interface PlatformImageGrant { + /** Registry actions this grant allows (pull, push, delete) */ + actions?: string[] | null; + createdAt?: string | null; + createdByPrincipal?: string | null; + /** When this grant stops applying (NULL never expires) */ + expiresAt?: string | null; + /** User who issued this grant */ + grantedBy?: string | null; + /** Scope key of the grantee (a database_id or an entity_id) */ + granteeKey?: string | null; + /** Scope tier of the grantee (database, org, app, platform) */ + granteeScope?: string | null; + id: string; + /** Catalog image this grant applies to */ + imageId?: string | null; + updatedAt?: string | null; + updatedByPrincipal?: string | null; +} /** Commit history — each commit snapshots a tree root for a store */ export interface PlatformInfraCommit { /** User who authored the changes */ @@ -1244,10 +1829,58 @@ export interface PlatformInfraStore { /** Opaque store partition key for the global tier */ scopeId?: string | null; } +/** Kubernetes kind allow-list for DB-driven resources — merkle-versioned head over the infra store; the admission gate fails closed on kinds without an active row */ +export interface PlatformK8sResourceKind { + /** Whether the admission gate consults this row; deactivating a kind row denies the kind (fail closed) */ + active?: boolean | null; + /** Infra store commit for the current definition (stamped by the versioned trigger on every write) */ + commitId?: string | null; + /** Timestamp of policy creation */ + createdAt?: string | null; + /** Kind policy: {allowed, allowed_scopes?, notes} — the readily-cached head; history lives in the infra store */ + definition?: Record | null; + /** Human-readable description of the kind policy */ + description?: string | null; + /** Unique kind policy identifier */ + id: string; + /** Human-readable kind policy name */ + label?: string | null; + /** Kubernetes kind this policy governs (e.g. Deployment); the policy's path in the infra tree is [k8s_resource_kind, slug] */ + slug?: string | null; + /** Infra Merkle store holding this policy's history (stamped by the versioned trigger) */ + storeId?: string | null; + /** Timestamp of last modification */ + updatedAt?: string | null; +} +/** Spec rulebook for DB-driven resources — merkle-versioned head over the infra store; enforced by the generated admission gate via infra_utils.check_resource_admission */ +export interface PlatformK8sSpecRule { + /** Whether the admission gate enforces this rule; rules are disabled here rather than deleted so history stays intact */ + active?: boolean | null; + /** Infra store commit for the current definition (stamped by the versioned trigger on every write) */ + commitId?: string | null; + /** Timestamp of rule creation */ + createdAt?: string | null; + /** Rule definition: {rule_type, kind?, match, notes?} — the readily-cached head; history lives in the infra store */ + definition?: Record | null; + /** Human-readable description of the rule */ + description?: string | null; + /** Unique spec rule identifier */ + id: string; + /** Human-readable rule name */ + label?: string | null; + /** Rule slug (unique per scope); the rule's path in the infra tree is [k8s_spec_rule, slug] */ + slug?: string | null; + /** Infra Merkle store holding this rule's history (stamped by the versioned trigger) */ + storeId?: string | null; + /** Timestamp of last modification */ + updatedAt?: string | null; +} /** Logical namespace containers for grouping secrets, config, functions, and other resources */ export interface PlatformNamespace { /** Freeform metadata for tooling and operational notes */ annotations?: Record | null; + /** Cluster this namespace is projected onto; NULL = the cluster the reconciler runs in */ + clusterId?: string | null; createdAt?: string | null; /** Optional human-readable description of this namespace */ description?: string | null; @@ -1270,7 +1903,7 @@ export interface PlatformNamespace { } /** Namespace lifecycle events — audit log of creation, activation, deactivation, label changes */ export interface PlatformNamespaceEvent { - /** User who triggered this event (NULL for system/automated) */ + /** User who triggered this event; NULL only when no human actor was proven */ actorId?: string | null; /** Event timestamp (partition key) */ createdAt?: string | null; @@ -1285,6 +1918,410 @@ export interface PlatformNamespaceEvent { /** Namespace this event belongs to */ namespaceId?: string | null; } +/** Comments on a local proposal, optionally anchored to a line */ +export interface PlatformProposalComment { + /** Actor who wrote the comment; NULL only when no human actor was proven */ + actorId?: string | null; + /** Files referenced by the comment body, in the order they were attached */ + attachments?: ConstructiveInternalTypeUpload[] | null; + /** Comment text */ + body?: string | null; + /** TRGM similarity when searching `body`. Returns null when no trgm search filter is active. */ + bodyTrgmSimilarity?: number | null; + createdAt?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + embedding?: number[] | null; + embeddingUpdatedAt?: string | null; + /** VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. */ + embeddingVectorDistance?: number | null; + id: string; + /** Line within path the comment is anchored to */ + line?: number | null; + /** When the anchored range this comment pointed at vanished from the diff */ + outdatedAt?: string | null; + /** File the comment is anchored to (NULL for a comment on the proposal) */ + path?: string | null; + /** TRGM similarity when searching `path`. Returns null when no trgm search filter is active. */ + pathTrgmSimilarity?: number | null; + /** Proposal being commented on */ + proposalId?: string | null; + /** When this comment was marked resolved */ + resolvedAt?: string | null; + search?: string | null; + /** Composite search relevance score (0..1, higher = more relevant). Computed using Reciprocal Rank Fusion (RRF) across all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. */ + searchScore?: number | null; + /** TSV rank when searching `search`. Returns null when no tsv search filter is active. */ + searchTsvRank?: number | null; + updatedAt?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +/** Proposals against a repository: issues, changes to merge, discussions and decisions */ +export interface PlatformProposal { + /** Actor who opened the proposal; NULL only when no human actor was proven */ + actorId?: string | null; + /** Description of the proposed change */ + body?: string | null; + /** TRGM similarity when searching `body`. Returns null when no trgm search filter is active. */ + bodyTrgmSimilarity?: number | null; + /** Why this was closed: completed, not_planned, duplicate, superseded */ + closedReason?: string | null; + /** TRGM similarity when searching `closedReason`. Returns null when no trgm search filter is active. */ + closedReasonTrgmSimilarity?: number | null; + createdAt?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + /** When the decision was taken (NULL while the question is open) */ + decidedAt?: string | null; + /** When this is wanted by (NULL when nothing is promised) */ + dueAt?: string | null; + embedding?: number[] | null; + embeddingUpdatedAt?: string | null; + /** VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. */ + embeddingVectorDistance?: number | null; + id: string; + /** issue (a report or plan), change (merge one ref into another), discussion (an open question), decision (a question answered) */ + kind?: string | null; + /** TRGM similarity when searching `kind`. Returns null when no trgm search filter is active. */ + kindTrgmSimilarity?: number | null; + /** Labels for filtering and grouping (a board is a query over kind, status and these) */ + labels?: string[] | null; + /** Commit the merge produced */ + mergeCommit?: string | null; + /** TRGM similarity when searching `mergeCommit`. Returns null when no trgm search filter is active. */ + mergeCommitTrgmSimilarity?: number | null; + /** How to merge when eligible: merge, squash, rebase */ + mergeMethod?: string | null; + /** TRGM similarity when searching `mergeMethod`. Returns null when no trgm search filter is active. */ + mergeMethodTrgmSimilarity?: number | null; + /** When merge-when-green was requested (NULL when no merge is pending) */ + mergeRequestedAt?: string | null; + /** When the merge completed */ + mergedAt?: string | null; + /** Review detail (reviewers, labels, checks summary) */ + metadata?: Record | null; + /** Proposal this one hangs under: an epic, or the discussion a decision came out of */ + parentId?: string | null; + /** Manual order within a board column, sparse so an insert between two rows moves one row (NULL when unranked) */ + priority?: string | null; + /** Repository this proposal is against */ + repositoryId?: string | null; + /** What was decided (for kind = decision; NULL while the question is open) */ + resolution?: string | null; + /** TRGM similarity when searching `resolution`. Returns null when no trgm search filter is active. */ + resolutionTrgmSimilarity?: number | null; + search?: string | null; + /** Composite search relevance score (0..1, higher = more relevant). Computed using Reciprocal Rank Fusion (RRF) across all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. */ + searchScore?: number | null; + /** TSV rank when searching `search`. Returns null when no tsv search filter is active. */ + searchTsvRank?: number | null; + /** Ref holding the proposed commits (NULL unless kind is change) */ + sourceRef?: string | null; + /** TRGM similarity when searching `sourceRef`. Returns null when no trgm search filter is active. */ + sourceRefTrgmSimilarity?: number | null; + /** Lifecycle state: draft, open, merged, closed */ + status?: string | null; + /** TRGM similarity when searching `status`. Returns null when no trgm search filter is active. */ + statusTrgmSimilarity?: number | null; + /** Ref the commits are proposed for (NULL unless kind is change) */ + targetRef?: string | null; + /** TRGM similarity when searching `targetRef`. Returns null when no trgm search filter is active. */ + targetRefTrgmSimilarity?: number | null; + /** What this proposal does */ + title?: string | null; + /** TRGM similarity when searching `title`. Returns null when no trgm search filter is active. */ + titleTrgmSimilarity?: number | null; + updatedAt?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +/** Files a reviewer has read, pinned to the blob they read */ +export interface PlatformProposalFileView { + /** Blob the reviewer read, which is what makes the mark survive a rebase or go stale */ + blobSha?: string | null; + createdAt?: string | null; + createdByPrincipal?: string | null; + id: string; + /** Path of the file as the diff named it */ + path?: string | null; + /** Proposal the file belongs to */ + proposalId?: string | null; + /** Actor who read the file */ + reviewerId?: string | null; + updatedAt?: string | null; + updatedByPrincipal?: string | null; + /** When the file was marked read */ + viewedAt?: string | null; +} +/** Emoji reactions to a local proposal or one of its comments */ +export interface PlatformProposalReaction { + /** Actor who reacted */ + actorId?: string | null; + /** Comment being reacted to (NULL for a reaction to the proposal itself) */ + commentId?: string | null; + createdAt?: string | null; + createdByPrincipal?: string | null; + /** Reaction shortcode (+1, eyes, rocket) */ + emoji?: string | null; + id: string; + /** Proposal the reaction belongs to */ + proposalId?: string | null; + updatedAt?: string | null; + updatedByPrincipal?: string | null; +} +/** Review verdicts on a proposal, each pinned to the commit reviewed */ +export interface PlatformProposalReview { + /** Summary the reviewer submitted with the verdict */ + body?: string | null; + /** TRGM similarity when searching `body`. Returns null when no trgm search filter is active. */ + bodyTrgmSimilarity?: number | null; + /** Head commit this verdict was submitted against */ + commitSha?: string | null; + /** TRGM similarity when searching `commitSha`. Returns null when no trgm search filter is active. */ + commitShaTrgmSimilarity?: number | null; + createdAt?: string | null; + createdByPrincipal?: string | null; + id: string; + /** Proposal being reviewed */ + proposalId?: string | null; + /** Actor who submitted the verdict */ + reviewerId?: string | null; + search?: string | null; + /** Composite search relevance score (0..1, higher = more relevant). Computed using Reciprocal Rank Fusion (RRF) across all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. */ + searchScore?: number | null; + /** TSV rank when searching `search`. Returns null when no tsv search filter is active. */ + searchTsvRank?: number | null; + /** When the verdict was submitted */ + submittedAt?: string | null; + updatedAt?: string | null; + updatedByPrincipal?: string | null; + /** approve, reject or comment (a review that gates nothing) */ + verdict?: string | null; + /** TRGM similarity when searching `verdict`. Returns null when no trgm search filter is active. */ + verdictTrgmSimilarity?: number | null; +} +export interface PlatformProposalsChunk { + /** Policy-required field derived from source table (used by AuthzComposite) */ + actorId?: string | null; + body?: string | null; + chunkIndex?: number | null; + createdAt?: string | null; + embedding?: number[] | null; + /** VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. */ + embeddingVectorDistance?: number | null; + id: string; + metadata?: Record | null; + platformProposalsId?: string | null; + /** Composite search relevance score (0..1, higher = more relevant). Computed using Reciprocal Rank Fusion (RRF) across all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. */ + searchScore?: number | null; + updatedAt?: string | null; +} +/** Binds a namespace to an installed container registry for a lane (realm) — the reconciler projects that registry's credentials into the namespace as an image pull secret */ +export interface PlatformRegistryBinding { + createdAt?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + id: string; + /** Reconciler detail (last error, projection timestamps) */ + metadata?: Record | null; + /** Namespace the registry credentials are projected into */ + namespaceId?: string | null; + /** Registry credential version last projected into the namespace (NULL = never projected) */ + observedCredentialVersion?: string | null; + /** Name of the image pull secret the reconciler writes into the namespace */ + pullSecretName?: string | null; + /** Lane this binding applies to (NULL = the scope's default lane) */ + realm?: string | null; + /** Registry host this binding's credentials authenticate to (what kubelet matches image references against) */ + registryHost?: string | null; + /** Registry endpoint (in this scope's registry catalog) the namespace pulls from */ + registryId?: string | null; + /** Projection state of the pull secret: pending, active, failed */ + status?: string | null; + updatedAt?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +/** Artifact registries this scope pulls from or pushes to (OCI images, npm packages), platform-run or external */ +export interface PlatformRegistry { + /** How a client authenticates to this registry (none, basic, token) */ + authMode?: string | null; + /** Path prefix within the host (npm scope, OCI project); NULL = the host root */ + basePath?: string | null; + createdAt?: string | null; + createdByPrincipal?: string | null; + /** Name of the infra secret carrying this registry's credential (NULL when auth_mode = none) */ + credentialSecretName?: string | null; + /** Registry host, without a scheme (e.g. ghcr.io, registry.npmjs.org); required unless role is source, where it is the optional requested host and is stamped with the provisioned one */ + host?: string | null; + id: string; + /** Resource installation running this registry (NULL for an external registry) */ + installationId?: string | null; + /** Whether this registry is published for use by any scope */ + isPublished?: boolean | null; + /** Artifact ecosystem this registry serves (oci, npm) */ + kind?: string | null; + /** Labels for selecting registries (lane, region, mirror role) */ + labels?: Record | null; + /** Message from the last failed provision/deprovision attempt (NULL when healthy) */ + lastError?: string | null; + /** Freeform metadata (mirror-of pointer, rate limits, contact) */ + metadata?: Record | null; + /** Human-readable registry name (e.g. github-container-registry) */ + name?: string | null; + /** Whether this registry is reserved for platform-internal use */ + platformOnly?: boolean | null; + /** Role in this scope: source (the push target), cache (read-through mirror), external (pull only) */ + role?: string | null; + /** Provisioning state (pending, provisioning, active, failed); rows the platform does not create are active on insert */ + status?: string | null; + updatedAt?: string | null; + updatedByPrincipal?: string | null; +} +/** Grants that make a registry usable by one scope */ +export interface PlatformRegistryGrant { + /** Endpoint actions this grant allows (read, write) */ + actions?: string[] | null; + createdAt?: string | null; + createdByPrincipal?: string | null; + /** When this grant stops applying (NULL never expires) */ + expiresAt?: string | null; + /** User who issued this grant */ + grantedBy?: string | null; + /** Scope key of the grantee (a database_id or an entity_id) */ + granteeKey?: string | null; + /** Scope tier of the grantee (database, org, app, platform) */ + granteeScope?: string | null; + id: string; + /** Registry this grant applies to */ + registryId?: string | null; + updatedAt?: string | null; + updatedByPrincipal?: string | null; +} +/** Source repositories, hosted locally or on an external provider */ +export interface PlatformRepository { + /** URL a workspace clones from (NULL until the repository is provisioned) */ + cloneUrl?: string | null; + /** TRGM similarity when searching `cloneUrl`. Returns null when no trgm search filter is active. */ + cloneUrlTrgmSimilarity?: number | null; + createdAt?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + /** Branch a clone checks out and a proposal targets by default */ + defaultBranch?: string | null; + /** TRGM similarity when searching `defaultBranch`. Returns null when no trgm search filter is active. */ + defaultBranchTrgmSimilarity?: number | null; + /** What this repository holds */ + description?: string | null; + /** TRGM similarity when searching `description`. Returns null when no trgm search filter is active. */ + descriptionTrgmSimilarity?: number | null; + embedding?: number[] | null; + embeddingUpdatedAt?: string | null; + /** VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. */ + embeddingVectorDistance?: number | null; + /** Identifier of this repository in the external provider (NULL for local) */ + externalId?: string | null; + /** TRGM similarity when searching `externalId`. Returns null when no trgm search filter is active. */ + externalIdTrgmSimilarity?: number | null; + id: string; + /** Whether this repository is retired: readable, not written to */ + isArchived?: boolean | null; + /** Provider detail (installation id, topics, external URLs) */ + metadata?: Record | null; + /** Human-readable repository name */ + name?: string | null; + /** TRGM similarity when searching `name`. Returns null when no trgm search filter is active. */ + nameTrgmSimilarity?: number | null; + /** User who owns this repository */ + ownerId?: string | null; + /** Where the repository lives: local (platform git server) or github */ + provider?: string | null; + /** TRGM similarity when searching `provider`. Returns null when no trgm search filter is active. */ + providerTrgmSimilarity?: number | null; + search?: string | null; + /** Composite search relevance score (0..1, higher = more relevant). Computed using Reciprocal Rank Fusion (RRF) across all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. */ + searchScore?: number | null; + /** TSV rank when searching `search`. Returns null when no tsv search filter is active. */ + searchTsvRank?: number | null; + /** URL-safe identifier, unique within the owning scope */ + slug?: string | null; + /** TRGM similarity when searching `slug`. Returns null when no trgm search filter is active. */ + slugTrgmSimilarity?: number | null; + updatedAt?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; + /** Read reach: private (owner), internal (scope members), public (any authenticated actor) */ + visibility?: string | null; + /** TRGM similarity when searching `visibility`. Returns null when no trgm search filter is active. */ + visibilityTrgmSimilarity?: number | null; +} +/** Normalized repository events from local hooks and external providers */ +export interface PlatformRepositoryEvent { + /** Authenticated actor behind the event (NULL when only the sending system was proven) */ + actorId?: string | null; + /** Commit the ref points at after the event */ + commitSha?: string | null; + createdAt?: string | null; + createdByPrincipal?: string | null; + /** Provider delivery identifier, for redelivery dedupe (NULL for local hooks) */ + deliveryId?: string | null; + /** What happened: push, tag, pr_open, pr_merge, proposal_comment, manual */ + eventType?: string | null; + id: string; + /** Unverified provider detail (payload login, commit author, external URLs) */ + metadata?: Record | null; + /** Normalized event body the workflows read */ + payload?: Record | null; + /** Git ref the event concerns (refs/heads/main) */ + ref?: string | null; + /** Repository this event happened to */ + repositoryId?: string | null; + updatedAt?: string | null; + updatedByPrincipal?: string | null; +} +/** Workflows required to pass before a repository proposal merges */ +export interface PlatformRepositoryRequiredCheck { + createdAt?: string | null; + id: string; + /** Repository whose merge gate requires this workflow */ + repositoryId?: string | null; + updatedAt?: string | null; + /** Workflow identity required by this repository gate */ + workflowId?: string | null; +} +/** Bindings from a repository event to the flow graph that should run */ +export interface PlatformRepositoryWorkflow { + /** Whether a new build cancels a running build with the same concurrency key instead of queueing */ + cancelInProgress?: boolean | null; + /** Builds of this workflow sharing this key run one at a time (NULL = unlimited) */ + concurrencyKey?: string | null; + createdAt?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + /** Event type that fires this workflow */ + eventType?: string | null; + /** Flow graph to run when this workflow fires */ + graphId?: string | null; + id: string; + /** Static inputs merged into the graph run alongside the event */ + inputs?: Record | null; + /** Whether matching events fire this workflow */ + isEnabled?: boolean | null; + /** Human-readable workflow name */ + name?: string | null; + /** Glob the event ref must match (NULL matches any ref) */ + refPattern?: string | null; + /** Repository whose events this workflow listens to */ + repositoryId?: string | null; + /** Secret names this workflow's builds may resolve, intersected with the build lane's realm */ + requiredSecrets?: string[] | null; + /** URL-safe identifier, unique within the repository */ + slug?: string | null; + updatedAt?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} /** Unified K8s resource declarations — stores desired state (spec) and observed state (status) for all resource kinds within a namespace */ export interface PlatformResource { /** Freeform metadata for tooling and operational notes */ @@ -1295,9 +2332,12 @@ export interface PlatformResource { cpuRequestMillicores?: string | null; createdAt?: string | null; createdBy?: string | null; + createdByPrincipal?: string | null; /** Cumulative error count for this resource */ errorCount?: number | null; id: string; + /** Pinned image reference this resource runs (registry host/repository:tag or @digest), written by promotion; NULL means spec.image decides */ + imageRef?: string | null; /** Installation ("release") this resource belongs to (NULL for standalone resources) */ installationId?: string | null; /** Provider slugs (e.g. mailgun, postgres) associated with this resource. The UI uses this to auto-fill required_secrets and required_configs from integration_providers. */ @@ -1336,12 +2376,15 @@ export interface PlatformResource { status?: string | null; /** Observed state from K8s — populated by handlers after reconciliation (service_url, clone_url, replicas, etc.) */ statusObserved?: Record | null; - /** Storage class/tier, derived from spec.storage_class (StatefulSet; NULL if unset) */ + /** Storage class/tier, derived from the legacy spec.storage_class else spec.storage[0].class (NULL if unset) */ storageClass?: string | null; - /** Persistent volume size in bytes, derived from spec.storage_size (StatefulSet; NULL if unset/invalid) */ + /** Declared persistent volume bytes per pod, summed over spec.storage[] plus the legacy spec.storage_size (NULL if none declared) */ storageSizeBytes?: string | null; + /** Total declared persistent volume bytes for the resource: per-pod bytes times replicas for StatefulSet (per-ordinal claims), per-pod bytes otherwise (claims shared across replicas) */ + storageTotalBytes?: string | null; updatedAt?: string | null; updatedBy?: string | null; + updatedByPrincipal?: string | null; } export interface PlatformResourceDeclaredCapacity { cpuLimitMillicores?: string | null; @@ -1357,6 +2400,7 @@ export interface PlatformResourceDeclaredCapacity { source?: string | null; sourceId?: string | null; storageSizeBytes?: string | null; + storageTotalBytes?: string | null; } /** Resource definitions — templates for resource kinds declaring default spec and secret/config requirements */ export interface PlatformResourceDefinition { @@ -1364,6 +2408,7 @@ export interface PlatformResourceDefinition { annotations?: Record | null; createdAt?: string | null; createdBy?: string | null; + createdByPrincipal?: string | null; /** Template spec for creating resource instances of this kind */ defaultSpec?: Record | null; /** What this resource definition provides */ @@ -1391,10 +2436,11 @@ export interface PlatformResourceDefinition { stepUpMinAge?: string | null; updatedAt?: string | null; updatedBy?: string | null; + updatedByPrincipal?: string | null; } /** Resource lifecycle events — audit log of provisioning, updates, and failure events */ export interface PlatformResourceEvent { - /** User who triggered this event (NULL for system/automated) */ + /** User who triggered this event; NULL only when no human actor was proven */ actorId?: string | null; /** Event timestamp (partition key) */ createdAt?: string | null; @@ -1415,6 +2461,7 @@ export interface PlatformResourceInstallation { commitId?: string | null; createdAt?: string | null; createdBy?: string | null; + createdByPrincipal?: string | null; id: string; /** Human-readable release name */ name?: string | null; @@ -1432,6 +2479,27 @@ export interface PlatformResourceInstallation { storeId?: string | null; updatedAt?: string | null; updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +export interface PlatformResourceObservedStorage { + capacity?: string | null; + capacityBytes?: string | null; + claimName?: string | null; + declaredStorageClass?: string | null; + declaredStorageSizeBytes?: string | null; + declaredStorageTotalBytes?: string | null; + installationId?: string | null; + isBound?: boolean | null; + kind?: string | null; + namespaceId?: string | null; + phase?: string | null; + requested?: string | null; + requestedBytes?: string | null; + resourceId?: string | null; + resourceStatus?: string | null; + slug?: string | null; + storageClass?: string | null; + storageName?: string | null; } /** On-demand resource status checks — diagnostic snapshots from the runtime (K8s status, conditions, log tails) */ export interface PlatformResourceStatusCheck { @@ -1519,8 +2587,10 @@ export interface PlatformResourcesHealth { cpuRequestMillicores?: string | null; createdAt?: string | null; createdBy?: string | null; + createdByPrincipal?: string | null; errorCount?: number | null; id: string; + imageRef?: string | null; installationId?: string | null; integrations?: string[] | null; kind?: string | null; @@ -1543,8 +2613,10 @@ export interface PlatformResourcesHealth { statusObserved?: Record | null; storageClass?: string | null; storageSizeBytes?: string | null; + storageTotalBytes?: string | null; updatedAt?: string | null; updatedBy?: string | null; + updatedByPrincipal?: string | null; } export interface PlatformResourcesRequirementsState { configHash?: string | null; @@ -1574,6 +2646,7 @@ export interface PlatformWebhookEndpoint { active?: boolean | null; createdAt?: string | null; createdBy?: string | null; + createdByPrincipal?: string | null; /** Same-scope function definition invoked on delivery. The function must list the webhook channel in access_channels. */ functionDefinitionId?: string | null; /** Inbound Host header this endpoint matches (normalized lower-case, no port) */ @@ -1591,6 +2664,7 @@ export interface PlatformWebhookEndpoint { signingSecretName?: string | null; updatedAt?: string | null; updatedBy?: string | null; + updatedByPrincipal?: string | null; } /** Durable webhook acceptance log — one row per accepted delivery, deduplicated on (endpoint_id, external_event_id), linked to the pending function invocation it enqueued */ export interface PlatformWebhookEvent { @@ -1616,102 +2690,540 @@ export interface PlatformWebhookEvent { status?: string | null; updatedAt?: string | null; } -/** Unified K8s resource declarations — stores desired state (spec) and observed state (status) for all resource kinds within a namespace */ -export interface Resource { - /** Freeform metadata for tooling and operational notes */ - annotations?: Record | null; - /** CPU limit in millicores, derived from spec.resources.limits.cpu (NULL if unset/invalid) */ - cpuLimitMillicores?: string | null; - /** Requested CPU in millicores, derived from spec.resources.requests.cpu (NULL if unset/invalid) */ - cpuRequestMillicores?: string | null; +/** Comments on a local proposal, optionally anchored to a line */ +export interface ProposalComment { + /** Actor who wrote the comment; NULL only when no human actor was proven */ + actorId?: string | null; + /** Files referenced by the comment body, in the order they were attached */ + attachments?: ConstructiveInternalTypeUpload[] | null; + /** Comment text */ + body?: string | null; + /** TRGM similarity when searching `body`. Returns null when no trgm search filter is active. */ + bodyTrgmSimilarity?: number | null; createdAt?: string | null; createdBy?: string | null; + createdByPrincipal?: string | null; /** Database that owns this resource (database-scoped isolation) */ databaseId?: string | null; - /** Cumulative error count for this resource */ - errorCount?: number | null; + embedding?: number[] | null; + embeddingUpdatedAt?: string | null; + /** VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. */ + embeddingVectorDistance?: number | null; id: string; - /** Installation ("release") this resource belongs to (NULL for standalone resources) */ - installationId?: string | null; - /** Provider slugs (e.g. mailgun, postgres) associated with this resource. The UI uses this to auto-fill required_secrets and required_configs from integration_providers. */ - integrations?: string[] | null; - /** Resource kind: Deployment, StatefulSet, Job, Service, Ingress, Certificate, ClusterIssuer */ - kind?: string | null; - /** Key/value pairs for selecting and filtering resources */ - labels?: Record | null; - /** Most recent provisioning or runtime error message */ - lastError?: string | null; - /** Last time a usage heartbeat was received for this resource (NULL until first heartbeat) */ - lastHeartbeatAt?: string | null; - /** Memory limit in bytes, derived from spec.resources.limits.memory (NULL if unset/invalid) */ - memoryLimitBytes?: string | null; - /** Requested memory in bytes, derived from spec.resources.requests.memory (NULL if unset/invalid) */ - memoryRequestBytes?: string | null; - /** Human-readable resource name */ - name?: string | null; - /** Namespace this resource belongs to (security boundary, maps to K8s namespace) */ - namespaceId?: string | null; - /** Config/secret realm this resource resolves against. Per key, the realm-specific atom wins over the NULL-realm default. NULL = the default lane. */ - realm?: string | null; - /** Desired pod count, derived from spec.replicas — the multiplier for total requested capacity (NULL if unset/invalid) */ - replicas?: number | null; - /** Embedded config requirements: array of (name, required, provider) tuples — extends the linked definition's requirements. provider is the integration slug this requirement belongs to, if any. */ - requiredConfigs?: ResourceRequirement[] | null; - /** Embedded secret requirements: array of (name, required, provider) tuples — extends the linked definition's requirements. provider is the integration slug this requirement belongs to, if any. */ - requiredSecrets?: ResourceRequirement[] | null; - /** Definition template this resource was created from (NULL for standalone resources) */ - resourceDefinitionId?: string | null; - /** URL-safe identifier, unique within (namespace_id, kind) */ - slug?: string | null; - /** Desired state — kind-specific configuration (image, ports, resources, etc.). Opaque to DB; validated by K8s. */ - spec?: Record | null; - /** Resource lifecycle status: pending, provisioning, active, completed, failed, draining, deleting */ - status?: string | null; - /** Observed state from K8s — populated by handlers after reconciliation (service_url, clone_url, replicas, etc.) */ - statusObserved?: Record | null; - /** Storage class/tier, derived from spec.storage_class (StatefulSet; NULL if unset) */ - storageClass?: string | null; - /** Persistent volume size in bytes, derived from spec.storage_size (StatefulSet; NULL if unset/invalid) */ - storageSizeBytes?: string | null; + /** Line within path the comment is anchored to */ + line?: number | null; + /** When the anchored range this comment pointed at vanished from the diff */ + outdatedAt?: string | null; + /** File the comment is anchored to (NULL for a comment on the proposal) */ + path?: string | null; + /** TRGM similarity when searching `path`. Returns null when no trgm search filter is active. */ + pathTrgmSimilarity?: number | null; + /** Proposal being commented on */ + proposalId?: string | null; + /** When this comment was marked resolved */ + resolvedAt?: string | null; + search?: string | null; + /** Composite search relevance score (0..1, higher = more relevant). Computed using Reciprocal Rank Fusion (RRF) across all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. */ + searchScore?: number | null; + /** TSV rank when searching `search`. Returns null when no tsv search filter is active. */ + searchTsvRank?: number | null; updatedAt?: string | null; updatedBy?: string | null; + updatedByPrincipal?: string | null; } -export interface ResourceDeclaredCapacity { - cpuLimitMillicores?: string | null; - cpuRequestMillicores?: string | null; - installationId?: string | null; - isTransient?: boolean | null; - kind?: string | null; - memoryLimitBytes?: string | null; - memoryRequestBytes?: string | null; - namespaceId?: string | null; - podCountMax?: number | null; - podCountMin?: number | null; - source?: string | null; - sourceId?: string | null; - storageSizeBytes?: string | null; -} -/** Resource definitions — templates for resource kinds declaring default spec and secret/config requirements */ -export interface ResourceDefinition { - /** Freeform metadata for tooling and operational notes */ - annotations?: Record | null; +/** Proposals against a repository: issues, changes to merge, discussions and decisions */ +export interface Proposal { + /** Actor who opened the proposal; NULL only when no human actor was proven */ + actorId?: string | null; + /** Description of the proposed change */ + body?: string | null; + /** TRGM similarity when searching `body`. Returns null when no trgm search filter is active. */ + bodyTrgmSimilarity?: number | null; + /** Why this was closed: completed, not_planned, duplicate, superseded */ + closedReason?: string | null; + /** TRGM similarity when searching `closedReason`. Returns null when no trgm search filter is active. */ + closedReasonTrgmSimilarity?: number | null; createdAt?: string | null; createdBy?: string | null; + createdByPrincipal?: string | null; /** Database that owns this resource (database-scoped isolation) */ databaseId?: string | null; - /** Template spec for creating resource instances of this kind */ - defaultSpec?: Record | null; - /** What this resource definition provides */ - description?: string | null; + /** When the decision was taken (NULL while the question is open) */ + decidedAt?: string | null; + /** When this is wanted by (NULL when nothing is promised) */ + dueAt?: string | null; + embedding?: number[] | null; + embeddingUpdatedAt?: string | null; + /** VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. */ + embeddingVectorDistance?: number | null; id: string; - /** Provider slugs (e.g. mailgun, postgres) associated with this resource definition. The UI uses this to auto-fill required_secrets and required_configs from integration_providers. */ - integrations?: string[] | null; - /** Resource kind: Deployment, StatefulSet, Job, Service, Ingress, Certificate, ClusterIssuer, or custom kinds */ + /** issue (a report or plan), change (merge one ref into another), discussion (an open question), decision (a question answered) */ kind?: string | null; - /** Key/value pairs for selecting and filtering definitions */ - labels?: Record | null; - /** Human-readable definition name */ - name?: string | null; + /** TRGM similarity when searching `kind`. Returns null when no trgm search filter is active. */ + kindTrgmSimilarity?: number | null; + /** Labels for filtering and grouping (a board is a query over kind, status and these) */ + labels?: string[] | null; + /** Commit the merge produced */ + mergeCommit?: string | null; + /** TRGM similarity when searching `mergeCommit`. Returns null when no trgm search filter is active. */ + mergeCommitTrgmSimilarity?: number | null; + /** How to merge when eligible: merge, squash, rebase */ + mergeMethod?: string | null; + /** TRGM similarity when searching `mergeMethod`. Returns null when no trgm search filter is active. */ + mergeMethodTrgmSimilarity?: number | null; + /** When merge-when-green was requested (NULL when no merge is pending) */ + mergeRequestedAt?: string | null; + /** When the merge completed */ + mergedAt?: string | null; + /** Review detail (reviewers, labels, checks summary) */ + metadata?: Record | null; + /** Proposal this one hangs under: an epic, or the discussion a decision came out of */ + parentId?: string | null; + /** Manual order within a board column, sparse so an insert between two rows moves one row (NULL when unranked) */ + priority?: string | null; + /** Repository this proposal is against */ + repositoryId?: string | null; + /** What was decided (for kind = decision; NULL while the question is open) */ + resolution?: string | null; + /** TRGM similarity when searching `resolution`. Returns null when no trgm search filter is active. */ + resolutionTrgmSimilarity?: number | null; + search?: string | null; + /** Composite search relevance score (0..1, higher = more relevant). Computed using Reciprocal Rank Fusion (RRF) across all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. */ + searchScore?: number | null; + /** TSV rank when searching `search`. Returns null when no tsv search filter is active. */ + searchTsvRank?: number | null; + /** Ref holding the proposed commits (NULL unless kind is change) */ + sourceRef?: string | null; + /** TRGM similarity when searching `sourceRef`. Returns null when no trgm search filter is active. */ + sourceRefTrgmSimilarity?: number | null; + /** Lifecycle state: draft, open, merged, closed */ + status?: string | null; + /** TRGM similarity when searching `status`. Returns null when no trgm search filter is active. */ + statusTrgmSimilarity?: number | null; + /** Ref the commits are proposed for (NULL unless kind is change) */ + targetRef?: string | null; + /** TRGM similarity when searching `targetRef`. Returns null when no trgm search filter is active. */ + targetRefTrgmSimilarity?: number | null; + /** What this proposal does */ + title?: string | null; + /** TRGM similarity when searching `title`. Returns null when no trgm search filter is active. */ + titleTrgmSimilarity?: number | null; + updatedAt?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +/** Files a reviewer has read, pinned to the blob they read */ +export interface ProposalFileView { + /** Blob the reviewer read, which is what makes the mark survive a rebase or go stale */ + blobSha?: string | null; + createdAt?: string | null; + createdByPrincipal?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; + id: string; + /** Path of the file as the diff named it */ + path?: string | null; + /** Proposal the file belongs to */ + proposalId?: string | null; + /** Actor who read the file */ + reviewerId?: string | null; + updatedAt?: string | null; + updatedByPrincipal?: string | null; + /** When the file was marked read */ + viewedAt?: string | null; +} +/** Emoji reactions to a local proposal or one of its comments */ +export interface ProposalReaction { + /** Actor who reacted */ + actorId?: string | null; + /** Comment being reacted to (NULL for a reaction to the proposal itself) */ + commentId?: string | null; + createdAt?: string | null; + createdByPrincipal?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; + /** Reaction shortcode (+1, eyes, rocket) */ + emoji?: string | null; + id: string; + /** Proposal the reaction belongs to */ + proposalId?: string | null; + updatedAt?: string | null; + updatedByPrincipal?: string | null; +} +/** Review verdicts on a proposal, each pinned to the commit reviewed */ +export interface ProposalReview { + /** Summary the reviewer submitted with the verdict */ + body?: string | null; + /** TRGM similarity when searching `body`. Returns null when no trgm search filter is active. */ + bodyTrgmSimilarity?: number | null; + /** Head commit this verdict was submitted against */ + commitSha?: string | null; + /** TRGM similarity when searching `commitSha`. Returns null when no trgm search filter is active. */ + commitShaTrgmSimilarity?: number | null; + createdAt?: string | null; + createdByPrincipal?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; + id: string; + /** Proposal being reviewed */ + proposalId?: string | null; + /** Actor who submitted the verdict */ + reviewerId?: string | null; + search?: string | null; + /** Composite search relevance score (0..1, higher = more relevant). Computed using Reciprocal Rank Fusion (RRF) across all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. */ + searchScore?: number | null; + /** TSV rank when searching `search`. Returns null when no tsv search filter is active. */ + searchTsvRank?: number | null; + /** When the verdict was submitted */ + submittedAt?: string | null; + updatedAt?: string | null; + updatedByPrincipal?: string | null; + /** approve, reject or comment (a review that gates nothing) */ + verdict?: string | null; + /** TRGM similarity when searching `verdict`. Returns null when no trgm search filter is active. */ + verdictTrgmSimilarity?: number | null; +} +export interface ProposalsChunk { + /** Policy-required field derived from source table (used by AuthzComposite) */ + actorId?: string | null; + body?: string | null; + chunkIndex?: number | null; + createdAt?: string | null; + /** Policy-required field derived from source table (used by AuthzRelatedEntityMembership) */ + databaseId?: string | null; + embedding?: number[] | null; + /** VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. */ + embeddingVectorDistance?: number | null; + id: string; + metadata?: Record | null; + proposalsId?: string | null; + /** Composite search relevance score (0..1, higher = more relevant). Computed using Reciprocal Rank Fusion (RRF) across all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. */ + searchScore?: number | null; + updatedAt?: string | null; +} +/** Binds a namespace to an installed container registry for a lane (realm) — the reconciler projects that registry's credentials into the namespace as an image pull secret */ +export interface RegistryBinding { + createdAt?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; + id: string; + /** Reconciler detail (last error, projection timestamps) */ + metadata?: Record | null; + /** Namespace the registry credentials are projected into */ + namespaceId?: string | null; + /** Registry credential version last projected into the namespace (NULL = never projected) */ + observedCredentialVersion?: string | null; + /** Name of the image pull secret the reconciler writes into the namespace */ + pullSecretName?: string | null; + /** Lane this binding applies to (NULL = the scope's default lane) */ + realm?: string | null; + /** Registry host this binding's credentials authenticate to (what kubelet matches image references against) */ + registryHost?: string | null; + /** Registry endpoint (in this scope's registry catalog) the namespace pulls from */ + registryId?: string | null; + /** Projection state of the pull secret: pending, active, failed */ + status?: string | null; + updatedAt?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +/** Artifact registries this scope pulls from or pushes to (OCI images, npm packages), platform-run or external */ +export interface Registry { + /** How a client authenticates to this registry (none, basic, token) */ + authMode?: string | null; + /** Path prefix within the host (npm scope, OCI project); NULL = the host root */ + basePath?: string | null; + createdAt?: string | null; + createdByPrincipal?: string | null; + /** Name of the infra secret carrying this registry's credential (NULL when auth_mode = none) */ + credentialSecretName?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; + /** Registry host, without a scheme (e.g. ghcr.io, registry.npmjs.org); required unless role is source, where it is the optional requested host and is stamped with the provisioned one */ + host?: string | null; + id: string; + /** Resource installation running this registry (NULL for an external registry) */ + installationId?: string | null; + /** Whether this registry is published for use by any scope */ + isPublished?: boolean | null; + /** Artifact ecosystem this registry serves (oci, npm) */ + kind?: string | null; + /** Labels for selecting registries (lane, region, mirror role) */ + labels?: Record | null; + /** Message from the last failed provision/deprovision attempt (NULL when healthy) */ + lastError?: string | null; + /** Freeform metadata (mirror-of pointer, rate limits, contact) */ + metadata?: Record | null; + /** Human-readable registry name (e.g. github-container-registry) */ + name?: string | null; + /** Whether this registry is reserved for platform-internal use */ + platformOnly?: boolean | null; + /** Role in this scope: source (the push target), cache (read-through mirror), external (pull only) */ + role?: string | null; + /** Provisioning state (pending, provisioning, active, failed); rows the platform does not create are active on insert */ + status?: string | null; + updatedAt?: string | null; + updatedByPrincipal?: string | null; +} +/** Grants that make a registry usable by one scope */ +export interface RegistryGrant { + /** Endpoint actions this grant allows (read, write) */ + actions?: string[] | null; + createdAt?: string | null; + createdByPrincipal?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; + /** When this grant stops applying (NULL never expires) */ + expiresAt?: string | null; + /** User who issued this grant */ + grantedBy?: string | null; + /** Scope key of the grantee (a database_id or an entity_id) */ + granteeKey?: string | null; + /** Scope tier of the grantee (database, org, app, platform) */ + granteeScope?: string | null; + id: string; + /** Registry this grant applies to */ + registryId?: string | null; + updatedAt?: string | null; + updatedByPrincipal?: string | null; +} +/** Source repositories, hosted locally or on an external provider */ +export interface Repository { + /** URL a workspace clones from (NULL until the repository is provisioned) */ + cloneUrl?: string | null; + /** TRGM similarity when searching `cloneUrl`. Returns null when no trgm search filter is active. */ + cloneUrlTrgmSimilarity?: number | null; + createdAt?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; + /** Branch a clone checks out and a proposal targets by default */ + defaultBranch?: string | null; + /** TRGM similarity when searching `defaultBranch`. Returns null when no trgm search filter is active. */ + defaultBranchTrgmSimilarity?: number | null; + /** What this repository holds */ + description?: string | null; + /** TRGM similarity when searching `description`. Returns null when no trgm search filter is active. */ + descriptionTrgmSimilarity?: number | null; + embedding?: number[] | null; + embeddingUpdatedAt?: string | null; + /** VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. */ + embeddingVectorDistance?: number | null; + /** Identifier of this repository in the external provider (NULL for local) */ + externalId?: string | null; + /** TRGM similarity when searching `externalId`. Returns null when no trgm search filter is active. */ + externalIdTrgmSimilarity?: number | null; + id: string; + /** Whether this repository is retired: readable, not written to */ + isArchived?: boolean | null; + /** Provider detail (installation id, topics, external URLs) */ + metadata?: Record | null; + /** Human-readable repository name */ + name?: string | null; + /** TRGM similarity when searching `name`. Returns null when no trgm search filter is active. */ + nameTrgmSimilarity?: number | null; + /** User who owns this repository */ + ownerId?: string | null; + /** Where the repository lives: local (platform git server) or github */ + provider?: string | null; + /** TRGM similarity when searching `provider`. Returns null when no trgm search filter is active. */ + providerTrgmSimilarity?: number | null; + search?: string | null; + /** Composite search relevance score (0..1, higher = more relevant). Computed using Reciprocal Rank Fusion (RRF) across all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. */ + searchScore?: number | null; + /** TSV rank when searching `search`. Returns null when no tsv search filter is active. */ + searchTsvRank?: number | null; + /** URL-safe identifier, unique within the owning scope */ + slug?: string | null; + /** TRGM similarity when searching `slug`. Returns null when no trgm search filter is active. */ + slugTrgmSimilarity?: number | null; + updatedAt?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; + /** Read reach: private (owner), internal (scope members), public (any authenticated actor) */ + visibility?: string | null; + /** TRGM similarity when searching `visibility`. Returns null when no trgm search filter is active. */ + visibilityTrgmSimilarity?: number | null; +} +/** Normalized repository events from local hooks and external providers */ +export interface RepositoryEvent { + /** Authenticated actor behind the event (NULL when only the sending system was proven) */ + actorId?: string | null; + /** Commit the ref points at after the event */ + commitSha?: string | null; + createdAt?: string | null; + createdByPrincipal?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; + /** Provider delivery identifier, for redelivery dedupe (NULL for local hooks) */ + deliveryId?: string | null; + /** What happened: push, tag, pr_open, pr_merge, proposal_comment, manual */ + eventType?: string | null; + id: string; + /** Unverified provider detail (payload login, commit author, external URLs) */ + metadata?: Record | null; + /** Normalized event body the workflows read */ + payload?: Record | null; + /** Git ref the event concerns (refs/heads/main) */ + ref?: string | null; + /** Repository this event happened to */ + repositoryId?: string | null; + updatedAt?: string | null; + updatedByPrincipal?: string | null; +} +/** Workflows required to pass before a repository proposal merges */ +export interface RepositoryRequiredCheck { + createdAt?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; + id: string; + /** Repository whose merge gate requires this workflow */ + repositoryId?: string | null; + updatedAt?: string | null; + /** Workflow identity required by this repository gate */ + workflowId?: string | null; +} +/** Bindings from a repository event to the flow graph that should run */ +export interface RepositoryWorkflow { + /** Whether a new build cancels a running build with the same concurrency key instead of queueing */ + cancelInProgress?: boolean | null; + /** Builds of this workflow sharing this key run one at a time (NULL = unlimited) */ + concurrencyKey?: string | null; + createdAt?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; + /** Event type that fires this workflow */ + eventType?: string | null; + /** Flow graph to run when this workflow fires */ + graphId?: string | null; + id: string; + /** Static inputs merged into the graph run alongside the event */ + inputs?: Record | null; + /** Whether matching events fire this workflow */ + isEnabled?: boolean | null; + /** Human-readable workflow name */ + name?: string | null; + /** Glob the event ref must match (NULL matches any ref) */ + refPattern?: string | null; + /** Repository whose events this workflow listens to */ + repositoryId?: string | null; + /** Secret names this workflow's builds may resolve, intersected with the build lane's realm */ + requiredSecrets?: string[] | null; + /** URL-safe identifier, unique within the repository */ + slug?: string | null; + updatedAt?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +/** Unified K8s resource declarations — stores desired state (spec) and observed state (status) for all resource kinds within a namespace */ +export interface Resource { + /** Freeform metadata for tooling and operational notes */ + annotations?: Record | null; + /** CPU limit in millicores, derived from spec.resources.limits.cpu (NULL if unset/invalid) */ + cpuLimitMillicores?: string | null; + /** Requested CPU in millicores, derived from spec.resources.requests.cpu (NULL if unset/invalid) */ + cpuRequestMillicores?: string | null; + createdAt?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; + /** Cumulative error count for this resource */ + errorCount?: number | null; + id: string; + /** Pinned image reference this resource runs (registry host/repository:tag or @digest), written by promotion; NULL means spec.image decides */ + imageRef?: string | null; + /** Installation ("release") this resource belongs to (NULL for standalone resources) */ + installationId?: string | null; + /** Provider slugs (e.g. mailgun, postgres) associated with this resource. The UI uses this to auto-fill required_secrets and required_configs from integration_providers. */ + integrations?: string[] | null; + /** Resource kind: Deployment, StatefulSet, Job, Service, Ingress, Certificate, ClusterIssuer */ + kind?: string | null; + /** Key/value pairs for selecting and filtering resources */ + labels?: Record | null; + /** Most recent provisioning or runtime error message */ + lastError?: string | null; + /** Last time a usage heartbeat was received for this resource (NULL until first heartbeat) */ + lastHeartbeatAt?: string | null; + /** Memory limit in bytes, derived from spec.resources.limits.memory (NULL if unset/invalid) */ + memoryLimitBytes?: string | null; + /** Requested memory in bytes, derived from spec.resources.requests.memory (NULL if unset/invalid) */ + memoryRequestBytes?: string | null; + /** Human-readable resource name */ + name?: string | null; + /** Namespace this resource belongs to (security boundary, maps to K8s namespace) */ + namespaceId?: string | null; + /** Config/secret realm this resource resolves against. Per key, the realm-specific atom wins over the NULL-realm default. NULL = the default lane. */ + realm?: string | null; + /** Desired pod count, derived from spec.replicas — the multiplier for total requested capacity (NULL if unset/invalid) */ + replicas?: number | null; + /** Embedded config requirements: array of (name, required, provider) tuples — extends the linked definition's requirements. provider is the integration slug this requirement belongs to, if any. */ + requiredConfigs?: ResourceRequirement[] | null; + /** Embedded secret requirements: array of (name, required, provider) tuples — extends the linked definition's requirements. provider is the integration slug this requirement belongs to, if any. */ + requiredSecrets?: ResourceRequirement[] | null; + /** Definition template this resource was created from (NULL for standalone resources) */ + resourceDefinitionId?: string | null; + /** URL-safe identifier, unique within (namespace_id, kind) */ + slug?: string | null; + /** Desired state — kind-specific configuration (image, ports, resources, etc.). Opaque to DB; validated by K8s. */ + spec?: Record | null; + /** Resource lifecycle status: pending, provisioning, active, completed, failed, draining, deleting */ + status?: string | null; + /** Observed state from K8s — populated by handlers after reconciliation (service_url, clone_url, replicas, etc.) */ + statusObserved?: Record | null; + /** Storage class/tier, derived from the legacy spec.storage_class else spec.storage[0].class (NULL if unset) */ + storageClass?: string | null; + /** Declared persistent volume bytes per pod, summed over spec.storage[] plus the legacy spec.storage_size (NULL if none declared) */ + storageSizeBytes?: string | null; + /** Total declared persistent volume bytes for the resource: per-pod bytes times replicas for StatefulSet (per-ordinal claims), per-pod bytes otherwise (claims shared across replicas) */ + storageTotalBytes?: string | null; + updatedAt?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +export interface ResourceDeclaredCapacity { + cpuLimitMillicores?: string | null; + cpuRequestMillicores?: string | null; + installationId?: string | null; + isTransient?: boolean | null; + kind?: string | null; + memoryLimitBytes?: string | null; + memoryRequestBytes?: string | null; + namespaceId?: string | null; + podCountMax?: number | null; + podCountMin?: number | null; + source?: string | null; + sourceId?: string | null; + storageSizeBytes?: string | null; + storageTotalBytes?: string | null; +} +/** Resource definitions — templates for resource kinds declaring default spec and secret/config requirements */ +export interface ResourceDefinition { + /** Freeform metadata for tooling and operational notes */ + annotations?: Record | null; + createdAt?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; + /** Template spec for creating resource instances of this kind */ + defaultSpec?: Record | null; + /** What this resource definition provides */ + description?: string | null; + id: string; + /** Provider slugs (e.g. mailgun, postgres) associated with this resource definition. The UI uses this to auto-fill required_secrets and required_configs from integration_providers. */ + integrations?: string[] | null; + /** Resource kind: Deployment, StatefulSet, Job, Service, Ingress, Certificate, ClusterIssuer, or custom kinds */ + kind?: string | null; + /** Key/value pairs for selecting and filtering definitions */ + labels?: Record | null; + /** Human-readable definition name */ + name?: string | null; /** Namespace this definition belongs to (security boundary, maps to K8s namespace) */ namespaceId?: string | null; /** Declared parameter interface: [{key,label,type,default,required,min,max,options,group,order,bindings:[{path,template,scale,round,unit}]}]. Installation params are validated and compiled through these declarations; [] keeps the legacy raw spec overlay. */ @@ -1726,10 +3238,11 @@ export interface ResourceDefinition { stepUpMinAge?: string | null; updatedAt?: string | null; updatedBy?: string | null; + updatedByPrincipal?: string | null; } /** Resource lifecycle events — audit log of provisioning, updates, and failure events */ export interface ResourceEvent { - /** User who triggered this event (NULL for system/automated) */ + /** User who triggered this event; NULL only when no human actor was proven */ actorId?: string | null; /** Event timestamp (partition key) */ createdAt?: string | null; @@ -1752,6 +3265,7 @@ export interface ResourceInstallation { commitId?: string | null; createdAt?: string | null; createdBy?: string | null; + createdByPrincipal?: string | null; /** Database that owns this resource (database-scoped isolation) */ databaseId?: string | null; id: string; @@ -1771,6 +3285,27 @@ export interface ResourceInstallation { storeId?: string | null; updatedAt?: string | null; updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +export interface ResourceObservedStorage { + capacity?: string | null; + capacityBytes?: string | null; + claimName?: string | null; + declaredStorageClass?: string | null; + declaredStorageSizeBytes?: string | null; + declaredStorageTotalBytes?: string | null; + installationId?: string | null; + isBound?: boolean | null; + kind?: string | null; + namespaceId?: string | null; + phase?: string | null; + requested?: string | null; + requestedBytes?: string | null; + resourceId?: string | null; + resourceStatus?: string | null; + slug?: string | null; + storageClass?: string | null; + storageName?: string | null; } /** On-demand resource status checks — diagnostic snapshots from the runtime (K8s status, conditions, log tails) */ export interface ResourceStatusCheck { @@ -1864,9 +3399,11 @@ export interface ResourcesHealth { cpuRequestMillicores?: string | null; createdAt?: string | null; createdBy?: string | null; + createdByPrincipal?: string | null; databaseId?: string | null; errorCount?: number | null; id: string; + imageRef?: string | null; installationId?: string | null; integrations?: string[] | null; kind?: string | null; @@ -1889,8 +3426,10 @@ export interface ResourcesHealth { statusObserved?: Record | null; storageClass?: string | null; storageSizeBytes?: string | null; + storageTotalBytes?: string | null; updatedAt?: string | null; updatedBy?: string | null; + updatedByPrincipal?: string | null; } export interface ResourcesRequirementsState { configHash?: string | null; @@ -1920,6 +3459,7 @@ export interface WebhookEndpoint { active?: boolean | null; createdAt?: string | null; createdBy?: string | null; + createdByPrincipal?: string | null; /** Database that owns this resource (database-scoped isolation) */ databaseId?: string | null; /** Same-scope function definition invoked on delivery. The function must list the webhook channel in access_channels. */ @@ -1939,6 +3479,7 @@ export interface WebhookEndpoint { signingSecretName?: string | null; updatedAt?: string | null; updatedBy?: string | null; + updatedByPrincipal?: string | null; } /** Durable webhook acceptance log — one row per accepted delivery, deduplicated on (endpoint_id, external_event_id), linked to the pending function invocation it enqueued */ export interface WebhookEvent { @@ -1979,7 +3520,32 @@ export interface PageInfo { endCursor?: string | null; } // ============ Entity Relation Types ============ +export interface BuildRelations { + event?: RepositoryEvent | null; + proposal?: Proposal | null; + repository?: Repository | null; + workflow?: RepositoryWorkflow | null; +} +export interface BuildStepRelations {} +export interface BuilderBindingRelations { + namespace?: Namespace | null; +} export interface ContentPresetRelations {} +export interface DatabaseFunctionGraphRelations { + databaseFunctionGraphExecutionsByGraphId?: ConnectionResult; + functionDefinitionsByGraphId?: ConnectionResult; + repositoryWorkflowsByGraphId?: ConnectionResult; +} +export interface DatabaseFunctionGraphExecutionRelations { + graph?: DatabaseFunctionGraph | null; +} +export interface DatabaseFunctionGraphExecutionNodeStateRelations {} +export interface DatabaseFunctionGraphExecutionOutputRelations {} +export interface DatabaseGraphCommitRelations {} +export interface DatabaseGraphGetAllTreeNodesRecordRelations {} +export interface DatabaseGraphObjectRelations {} +export interface DatabaseGraphRefRelations {} +export interface DatabaseGraphStoreRelations {} export interface DbPresetRelations {} export interface FunctionApiBindingRelations { functionDefinition?: FunctionDefinition | null; @@ -1989,6 +3555,7 @@ export interface FunctionCapabilityBindingRelations { function?: FunctionDefinition | null; } export interface FunctionDefinitionRelations { + graph?: DatabaseFunctionGraph | null; functionApiBindings?: ConnectionResult; functionCapabilityBindingsByFunctionId?: ConnectionResult; webhookEndpoints?: ConnectionResult; @@ -2002,6 +3569,7 @@ export interface FunctionGraphCommitRelations {} export interface FunctionGraphRelations { functionGraphExecutionsByGraphId?: ConnectionResult; platformFunctionDefinitionsByGraphId?: ConnectionResult; + platformRepositoryWorkflowsByGraphId?: ConnectionResult; } export interface FunctionGraphExecutionRelations { graph?: FunctionGraph | null; @@ -2016,6 +3584,12 @@ export interface FunctionInvocationRelations { apiBinding?: FunctionApiBinding | null; } export interface GetAllTreeNodesRecordRelations {} +export interface ImageRelations { + imageGrants?: ConnectionResult; +} +export interface ImageGrantRelations { + image?: Image | null; +} export interface InfraCommitRelations {} export interface InfraGetAllTreeNodesRecordRelations {} export interface InfraObjectRelations {} @@ -2023,13 +3597,25 @@ export interface InfraRefRelations {} export interface InfraStoreRelations {} export interface IntegrationProviderRelations {} export interface NamespaceRelations { + builderBindings?: ConnectionResult; functionDeployments?: ConnectionResult; + registryBindings?: ConnectionResult; resourceDefinitions?: ConnectionResult; resourceInstallations?: ConnectionResult; resources?: ConnectionResult; webhookEndpoints?: ConnectionResult; } export interface NamespaceEventRelations {} +export interface PlatformBuildRelations { + event?: PlatformRepositoryEvent | null; + proposal?: PlatformProposal | null; + repository?: PlatformRepository | null; + workflow?: PlatformRepositoryWorkflow | null; +} +export interface PlatformBuildStepRelations {} +export interface PlatformBuilderBindingRelations { + namespace?: PlatformNamespace | null; +} export interface PlatformFunctionApiBindingRelations { functionDefinition?: PlatformFunctionDefinition | null; platformFunctionInvocationsByApiBindingId?: ConnectionResult; @@ -2052,19 +3638,90 @@ export interface PlatformFunctionInvocationAttemptRelations {} export interface PlatformFunctionInvocationRelations { apiBinding?: PlatformFunctionApiBinding | null; } +export interface PlatformImageRelations { + platformImageGrantsByImageId?: ConnectionResult; +} +export interface PlatformImageGrantRelations { + image?: PlatformImage | null; +} export interface PlatformInfraCommitRelations {} export interface PlatformInfraGetAllTreeNodesRecordRelations {} export interface PlatformInfraObjectRelations {} export interface PlatformInfraRefRelations {} export interface PlatformInfraStoreRelations {} +export interface PlatformK8sResourceKindRelations {} +export interface PlatformK8sSpecRuleRelations {} export interface PlatformNamespaceRelations { + platformBuilderBindingsByNamespaceId?: ConnectionResult; platformFunctionDeploymentsByNamespaceId?: ConnectionResult; + platformRegistryBindingsByNamespaceId?: ConnectionResult; platformResourceDefinitionsByNamespaceId?: ConnectionResult; platformResourceInstallationsByNamespaceId?: ConnectionResult; platformResourcesByNamespaceId?: ConnectionResult; platformWebhookEndpointsByNamespaceId?: ConnectionResult; } export interface PlatformNamespaceEventRelations {} +export interface PlatformProposalCommentRelations { + proposal?: PlatformProposal | null; + platformProposalReactionsByCommentId?: ConnectionResult; +} +export interface PlatformProposalRelations { + parent?: PlatformProposal | null; + repository?: PlatformRepository | null; + childPlatformProposals?: ConnectionResult; + platformBuildsByProposalId?: ConnectionResult; + platformProposalCommentsByProposalId?: ConnectionResult; + platformProposalFileViewsByProposalId?: ConnectionResult; + platformProposalReactionsByProposalId?: ConnectionResult; + platformProposalReviewsByProposalId?: ConnectionResult; + platformProposalsChunksByPlatformProposalsId?: ConnectionResult; +} +export interface PlatformProposalFileViewRelations { + proposal?: PlatformProposal | null; +} +export interface PlatformProposalReactionRelations { + comment?: PlatformProposalComment | null; + proposal?: PlatformProposal | null; +} +export interface PlatformProposalReviewRelations { + proposal?: PlatformProposal | null; +} +export interface PlatformProposalsChunkRelations { + platformProposals?: PlatformProposal | null; +} +export interface PlatformRegistryBindingRelations { + namespace?: PlatformNamespace | null; + registry?: PlatformRegistry | null; +} +export interface PlatformRegistryRelations { + installation?: PlatformResourceInstallation | null; + platformRegistryBindingsByRegistryId?: ConnectionResult; + platformRegistryGrantsByRegistryId?: ConnectionResult; +} +export interface PlatformRegistryGrantRelations { + registry?: PlatformRegistry | null; +} +export interface PlatformRepositoryRelations { + platformBuildsByRepositoryId?: ConnectionResult; + platformProposalsByRepositoryId?: ConnectionResult; + platformRepositoryEventsByRepositoryId?: ConnectionResult; + platformRepositoryRequiredChecksByRepositoryId?: ConnectionResult; + platformRepositoryWorkflowsByRepositoryId?: ConnectionResult; +} +export interface PlatformRepositoryEventRelations { + repository?: PlatformRepository | null; + platformBuildsByEventId?: ConnectionResult; +} +export interface PlatformRepositoryRequiredCheckRelations { + repository?: PlatformRepository | null; + workflow?: PlatformRepositoryWorkflow | null; +} +export interface PlatformRepositoryWorkflowRelations { + graph?: FunctionGraph | null; + repository?: PlatformRepository | null; + platformBuildsByWorkflowId?: ConnectionResult; + platformRepositoryRequiredChecksByWorkflowId?: ConnectionResult; +} export interface PlatformResourceRelations { installation?: PlatformResourceInstallation | null; namespace?: PlatformNamespace | null; @@ -2079,8 +3736,10 @@ export interface PlatformResourceDefinitionRelations { export interface PlatformResourceEventRelations {} export interface PlatformResourceInstallationRelations { namespace?: PlatformNamespace | null; + platformRegistriesByInstallationId?: ConnectionResult; platformResourcesByInstallationId?: ConnectionResult; } +export interface PlatformResourceObservedStorageRelations {} export interface PlatformResourceStatusCheckRelations { resource?: PlatformResource | null; } @@ -2098,6 +3757,67 @@ export interface PlatformWebhookEndpointRelations { export interface PlatformWebhookEventRelations { endpoint?: PlatformWebhookEndpoint | null; } +export interface ProposalCommentRelations { + proposal?: Proposal | null; + proposalReactionsByCommentId?: ConnectionResult; +} +export interface ProposalRelations { + parent?: Proposal | null; + repository?: Repository | null; + builds?: ConnectionResult; + childProposals?: ConnectionResult; + proposalComments?: ConnectionResult; + proposalFileViews?: ConnectionResult; + proposalReactions?: ConnectionResult; + proposalReviews?: ConnectionResult; + proposalsChunksByProposalsId?: ConnectionResult; +} +export interface ProposalFileViewRelations { + proposal?: Proposal | null; +} +export interface ProposalReactionRelations { + comment?: ProposalComment | null; + proposal?: Proposal | null; +} +export interface ProposalReviewRelations { + proposal?: Proposal | null; +} +export interface ProposalsChunkRelations { + proposals?: Proposal | null; +} +export interface RegistryBindingRelations { + namespace?: Namespace | null; + registry?: Registry | null; +} +export interface RegistryRelations { + installation?: ResourceInstallation | null; + registryBindings?: ConnectionResult; + registryGrants?: ConnectionResult; +} +export interface RegistryGrantRelations { + registry?: Registry | null; +} +export interface RepositoryRelations { + builds?: ConnectionResult; + proposals?: ConnectionResult; + repositoryEvents?: ConnectionResult; + repositoryRequiredChecks?: ConnectionResult; + repositoryWorkflows?: ConnectionResult; +} +export interface RepositoryEventRelations { + repository?: Repository | null; + buildsByEventId?: ConnectionResult; +} +export interface RepositoryRequiredCheckRelations { + repository?: Repository | null; + workflow?: RepositoryWorkflow | null; +} +export interface RepositoryWorkflowRelations { + graph?: DatabaseFunctionGraph | null; + repository?: Repository | null; + buildsByWorkflowId?: ConnectionResult; + repositoryRequiredChecksByWorkflowId?: ConnectionResult; +} export interface ResourceRelations { installation?: ResourceInstallation | null; namespace?: Namespace | null; @@ -2112,8 +3832,10 @@ export interface ResourceDefinitionRelations { export interface ResourceEventRelations {} export interface ResourceInstallationRelations { namespace?: Namespace | null; + registriesByInstallationId?: ConnectionResult; resourcesByInstallationId?: ConnectionResult; } +export interface ResourceObservedStorageRelations {} export interface ResourceStatusCheckRelations { resource?: Resource | null; } @@ -2132,7 +3854,24 @@ export interface WebhookEventRelations { endpoint?: WebhookEndpoint | null; } // ============ Entity Types With Relations ============ +export type BuildWithRelations = Build & BuildRelations; +export type BuildStepWithRelations = BuildStep & BuildStepRelations; +export type BuilderBindingWithRelations = BuilderBinding & BuilderBindingRelations; export type ContentPresetWithRelations = ContentPreset & ContentPresetRelations; +export type DatabaseFunctionGraphWithRelations = DatabaseFunctionGraph & + DatabaseFunctionGraphRelations; +export type DatabaseFunctionGraphExecutionWithRelations = DatabaseFunctionGraphExecution & + DatabaseFunctionGraphExecutionRelations; +export type DatabaseFunctionGraphExecutionNodeStateWithRelations = + DatabaseFunctionGraphExecutionNodeState & DatabaseFunctionGraphExecutionNodeStateRelations; +export type DatabaseFunctionGraphExecutionOutputWithRelations = + DatabaseFunctionGraphExecutionOutput & DatabaseFunctionGraphExecutionOutputRelations; +export type DatabaseGraphCommitWithRelations = DatabaseGraphCommit & DatabaseGraphCommitRelations; +export type DatabaseGraphGetAllTreeNodesRecordWithRelations = DatabaseGraphGetAllTreeNodesRecord & + DatabaseGraphGetAllTreeNodesRecordRelations; +export type DatabaseGraphObjectWithRelations = DatabaseGraphObject & DatabaseGraphObjectRelations; +export type DatabaseGraphRefWithRelations = DatabaseGraphRef & DatabaseGraphRefRelations; +export type DatabaseGraphStoreWithRelations = DatabaseGraphStore & DatabaseGraphStoreRelations; export type DbPresetWithRelations = DbPreset & DbPresetRelations; export type FunctionApiBindingWithRelations = FunctionApiBinding & FunctionApiBindingRelations; export type FunctionCapabilityBindingWithRelations = FunctionCapabilityBinding & @@ -2159,6 +3898,8 @@ export type FunctionInvocationAttemptWithRelations = FunctionInvocationAttempt & export type FunctionInvocationWithRelations = FunctionInvocation & FunctionInvocationRelations; export type GetAllTreeNodesRecordWithRelations = GetAllTreeNodesRecord & GetAllTreeNodesRecordRelations; +export type ImageWithRelations = Image & ImageRelations; +export type ImageGrantWithRelations = ImageGrant & ImageGrantRelations; export type InfraCommitWithRelations = InfraCommit & InfraCommitRelations; export type InfraGetAllTreeNodesRecordWithRelations = InfraGetAllTreeNodesRecord & InfraGetAllTreeNodesRecordRelations; @@ -2168,6 +3909,10 @@ export type InfraStoreWithRelations = InfraStore & InfraStoreRelations; export type IntegrationProviderWithRelations = IntegrationProvider & IntegrationProviderRelations; export type NamespaceWithRelations = Namespace & NamespaceRelations; export type NamespaceEventWithRelations = NamespaceEvent & NamespaceEventRelations; +export type PlatformBuildWithRelations = PlatformBuild & PlatformBuildRelations; +export type PlatformBuildStepWithRelations = PlatformBuildStep & PlatformBuildStepRelations; +export type PlatformBuilderBindingWithRelations = PlatformBuilderBinding & + PlatformBuilderBindingRelations; export type PlatformFunctionApiBindingWithRelations = PlatformFunctionApiBinding & PlatformFunctionApiBindingRelations; export type PlatformFunctionCapabilityBindingWithRelations = PlatformFunctionCapabilityBinding & @@ -2184,15 +3929,43 @@ export type PlatformFunctionInvocationAttemptWithRelations = PlatformFunctionInv PlatformFunctionInvocationAttemptRelations; export type PlatformFunctionInvocationWithRelations = PlatformFunctionInvocation & PlatformFunctionInvocationRelations; +export type PlatformImageWithRelations = PlatformImage & PlatformImageRelations; +export type PlatformImageGrantWithRelations = PlatformImageGrant & PlatformImageGrantRelations; export type PlatformInfraCommitWithRelations = PlatformInfraCommit & PlatformInfraCommitRelations; export type PlatformInfraGetAllTreeNodesRecordWithRelations = PlatformInfraGetAllTreeNodesRecord & PlatformInfraGetAllTreeNodesRecordRelations; export type PlatformInfraObjectWithRelations = PlatformInfraObject & PlatformInfraObjectRelations; export type PlatformInfraRefWithRelations = PlatformInfraRef & PlatformInfraRefRelations; export type PlatformInfraStoreWithRelations = PlatformInfraStore & PlatformInfraStoreRelations; +export type PlatformK8sResourceKindWithRelations = PlatformK8sResourceKind & + PlatformK8sResourceKindRelations; +export type PlatformK8sSpecRuleWithRelations = PlatformK8sSpecRule & PlatformK8sSpecRuleRelations; export type PlatformNamespaceWithRelations = PlatformNamespace & PlatformNamespaceRelations; export type PlatformNamespaceEventWithRelations = PlatformNamespaceEvent & PlatformNamespaceEventRelations; +export type PlatformProposalCommentWithRelations = PlatformProposalComment & + PlatformProposalCommentRelations; +export type PlatformProposalWithRelations = PlatformProposal & PlatformProposalRelations; +export type PlatformProposalFileViewWithRelations = PlatformProposalFileView & + PlatformProposalFileViewRelations; +export type PlatformProposalReactionWithRelations = PlatformProposalReaction & + PlatformProposalReactionRelations; +export type PlatformProposalReviewWithRelations = PlatformProposalReview & + PlatformProposalReviewRelations; +export type PlatformProposalsChunkWithRelations = PlatformProposalsChunk & + PlatformProposalsChunkRelations; +export type PlatformRegistryBindingWithRelations = PlatformRegistryBinding & + PlatformRegistryBindingRelations; +export type PlatformRegistryWithRelations = PlatformRegistry & PlatformRegistryRelations; +export type PlatformRegistryGrantWithRelations = PlatformRegistryGrant & + PlatformRegistryGrantRelations; +export type PlatformRepositoryWithRelations = PlatformRepository & PlatformRepositoryRelations; +export type PlatformRepositoryEventWithRelations = PlatformRepositoryEvent & + PlatformRepositoryEventRelations; +export type PlatformRepositoryRequiredCheckWithRelations = PlatformRepositoryRequiredCheck & + PlatformRepositoryRequiredCheckRelations; +export type PlatformRepositoryWorkflowWithRelations = PlatformRepositoryWorkflow & + PlatformRepositoryWorkflowRelations; export type PlatformResourceWithRelations = PlatformResource & PlatformResourceRelations; export type PlatformResourceDeclaredCapacityWithRelations = PlatformResourceDeclaredCapacity & PlatformResourceDeclaredCapacityRelations; @@ -2202,6 +3975,8 @@ export type PlatformResourceEventWithRelations = PlatformResourceEvent & PlatformResourceEventRelations; export type PlatformResourceInstallationWithRelations = PlatformResourceInstallation & PlatformResourceInstallationRelations; +export type PlatformResourceObservedStorageWithRelations = PlatformResourceObservedStorage & + PlatformResourceObservedStorageRelations; export type PlatformResourceStatusCheckWithRelations = PlatformResourceStatusCheck & PlatformResourceStatusCheckRelations; export type PlatformResourceUsageLogWithRelations = PlatformResourceUsageLog & @@ -2220,6 +3995,20 @@ export type PlatformWebhookEndpointWithRelations = PlatformWebhookEndpoint & PlatformWebhookEndpointRelations; export type PlatformWebhookEventWithRelations = PlatformWebhookEvent & PlatformWebhookEventRelations; +export type ProposalCommentWithRelations = ProposalComment & ProposalCommentRelations; +export type ProposalWithRelations = Proposal & ProposalRelations; +export type ProposalFileViewWithRelations = ProposalFileView & ProposalFileViewRelations; +export type ProposalReactionWithRelations = ProposalReaction & ProposalReactionRelations; +export type ProposalReviewWithRelations = ProposalReview & ProposalReviewRelations; +export type ProposalsChunkWithRelations = ProposalsChunk & ProposalsChunkRelations; +export type RegistryBindingWithRelations = RegistryBinding & RegistryBindingRelations; +export type RegistryWithRelations = Registry & RegistryRelations; +export type RegistryGrantWithRelations = RegistryGrant & RegistryGrantRelations; +export type RepositoryWithRelations = Repository & RepositoryRelations; +export type RepositoryEventWithRelations = RepositoryEvent & RepositoryEventRelations; +export type RepositoryRequiredCheckWithRelations = RepositoryRequiredCheck & + RepositoryRequiredCheckRelations; +export type RepositoryWorkflowWithRelations = RepositoryWorkflow & RepositoryWorkflowRelations; export type ResourceWithRelations = Resource & ResourceRelations; export type ResourceDeclaredCapacityWithRelations = ResourceDeclaredCapacity & ResourceDeclaredCapacityRelations; @@ -2227,6 +4016,8 @@ export type ResourceDefinitionWithRelations = ResourceDefinition & ResourceDefin export type ResourceEventWithRelations = ResourceEvent & ResourceEventRelations; export type ResourceInstallationWithRelations = ResourceInstallation & ResourceInstallationRelations; +export type ResourceObservedStorageWithRelations = ResourceObservedStorage & + ResourceObservedStorageRelations; export type ResourceStatusCheckWithRelations = ResourceStatusCheck & ResourceStatusCheckRelations; export type ResourceUsageLogWithRelations = ResourceUsageLog & ResourceUsageLogRelations; export type ResourceUsageSummaryWithRelations = ResourceUsageSummary & @@ -2240,21 +4031,232 @@ export type ResourcesResolvedRequirementWithRelations = ResourcesResolvedRequire export type WebhookEndpointWithRelations = WebhookEndpoint & WebhookEndpointRelations; export type WebhookEventWithRelations = WebhookEvent & WebhookEventRelations; // ============ Entity Select Types ============ -export type ContentPresetSelect = { - active?: boolean; - commitId?: boolean; +export type BuildSelect = { + actorId?: boolean; + attempt?: boolean; + commitSha?: boolean; + conclusion?: boolean; createdAt?: boolean; - definition?: boolean; - description?: boolean; + createdByPrincipal?: boolean; + databaseId?: boolean; + eventId?: boolean; + finishedAt?: boolean; id?: boolean; - kind?: boolean; - label?: boolean; - slug?: boolean; - storeId?: boolean; + imageRef?: boolean; + jobId?: boolean; + logs?: boolean; + matrixKey?: boolean; + metadata?: boolean; + proposalId?: boolean; + ref?: boolean; + repositoryId?: boolean; + startedAt?: boolean; + status?: boolean; updatedAt?: boolean; + updatedByPrincipal?: boolean; + workflowId?: boolean; + event?: { + select: RepositoryEventSelect; + }; + proposal?: { + select: ProposalSelect; + }; + repository?: { + select: RepositorySelect; + }; + workflow?: { + select: RepositoryWorkflowSelect; + }; }; -export type DbPresetSelect = { - active?: boolean; +export type BuildStepSelect = { + buildId?: boolean; + createdByPrincipal?: boolean; + databaseId?: boolean; + exitCode?: boolean; + finishedAt?: boolean; + id?: boolean; + kind?: boolean; + logBytes?: boolean; + logOffset?: boolean; + name?: boolean; + parentSeq?: boolean; + recordedAt?: boolean; + seq?: boolean; + startedAt?: boolean; + status?: boolean; + summary?: boolean; +}; +export type BuilderBindingSelect = { + createdAt?: boolean; + createdBy?: boolean; + createdByPrincipal?: boolean; + databaseId?: boolean; + id?: boolean; + installationId?: boolean; + lastError?: boolean; + metadata?: boolean; + namespaceId?: boolean; + observedHost?: boolean; + realm?: boolean; + status?: boolean; + updatedAt?: boolean; + updatedBy?: boolean; + updatedByPrincipal?: boolean; + namespace?: { + select: NamespaceSelect; + }; +}; +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 DatabaseFunctionGraphSelect = { + context?: boolean; + createdAt?: boolean; + createdBy?: boolean; + databaseId?: boolean; + definitionsCommitId?: boolean; + description?: boolean; + id?: boolean; + isValid?: boolean; + name?: boolean; + storeId?: boolean; + updatedAt?: boolean; + validationErrors?: boolean; + databaseFunctionGraphExecutionsByGraphId?: { + select: DatabaseFunctionGraphExecutionSelect; + first?: number; + filter?: DatabaseFunctionGraphExecutionFilter; + orderBy?: DatabaseFunctionGraphExecutionOrderBy[]; + }; + functionDefinitionsByGraphId?: { + select: FunctionDefinitionSelect; + first?: number; + filter?: FunctionDefinitionFilter; + orderBy?: FunctionDefinitionOrderBy[]; + }; + repositoryWorkflowsByGraphId?: { + select: RepositoryWorkflowSelect; + first?: number; + filter?: RepositoryWorkflowFilter; + orderBy?: RepositoryWorkflowOrderBy[]; + }; +}; +export type DatabaseFunctionGraphExecutionSelect = { + actorId?: boolean; + completedAt?: boolean; + currentWave?: boolean; + databaseId?: boolean; + definitionsCommitId?: boolean; + entityId?: boolean; + entityType?: boolean; + errorCode?: boolean; + errorMessage?: boolean; + executionPlan?: boolean; + graphId?: boolean; + id?: boolean; + inputPayload?: boolean; + invocationCreatedAt?: boolean; + invocationId?: boolean; + lastProgressAt?: boolean; + maxPendingJobs?: boolean; + maxTicks?: boolean; + nodeOutputs?: boolean; + organizationId?: boolean; + outputNames?: boolean; + outputNode?: boolean; + outputPayload?: boolean; + outputPort?: boolean; + parentExecutionId?: boolean; + parentInvocationId?: boolean; + parentNodeName?: boolean; + principalId?: boolean; + startedAt?: boolean; + status?: boolean; + tickCount?: boolean; + timeoutAt?: boolean; + graph?: { + select: DatabaseFunctionGraphSelect; + }; +}; +export type DatabaseFunctionGraphExecutionNodeStateSelect = { + callbackInputs?: boolean; + callbackMeta?: boolean; + callbackTokenHash?: boolean; + completedAt?: boolean; + createdAt?: boolean; + databaseId?: boolean; + errorCode?: boolean; + errorMessage?: boolean; + executionId?: boolean; + expiryDefaultOutput?: boolean; + expiryEscalatedAt?: boolean; + expiryPolicy?: boolean; + id?: boolean; + nodeName?: boolean; + nodePath?: boolean; + outputId?: boolean; + startedAt?: boolean; + status?: boolean; + waitingDeadlineAt?: boolean; + waitingOn?: boolean; + waitingSince?: boolean; +}; +export type DatabaseFunctionGraphExecutionOutputSelect = { + createdAt?: boolean; + data?: boolean; + databaseId?: boolean; + hash?: boolean; + id?: boolean; +}; +export type DatabaseGraphCommitSelect = { + authorId?: boolean; + committerId?: boolean; + databaseId?: boolean; + date?: boolean; + id?: boolean; + message?: boolean; + parentIds?: boolean; + storeId?: boolean; + treeId?: boolean; +}; +export type DatabaseGraphGetAllTreeNodesRecordSelect = { + data?: boolean; + path?: boolean; +}; +export type DatabaseGraphObjectSelect = { + createdAt?: boolean; + data?: boolean; + databaseId?: boolean; + id?: boolean; + kids?: boolean; + ktree?: boolean; +}; +export type DatabaseGraphRefSelect = { + commitId?: boolean; + databaseId?: boolean; + id?: boolean; + name?: boolean; + storeId?: boolean; +}; +export type DatabaseGraphStoreSelect = { + createdAt?: boolean; + databaseId?: boolean; + hash?: boolean; + id?: boolean; + name?: boolean; +}; +export type DbPresetSelect = { + active?: boolean; commitId?: boolean; createdAt?: boolean; definition?: boolean; @@ -2301,11 +4303,13 @@ export type FunctionCapabilityBindingSelect = { }; export type FunctionDefinitionSelect = { accessChannels?: boolean; + anonymousCallable?: boolean; category?: boolean; concurrency?: boolean; cpuLimitMillicores?: boolean; cpuRequestMillicores?: boolean; createdAt?: boolean; + createdByPrincipal?: boolean; databaseId?: boolean; description?: boolean; fnCategory?: boolean; @@ -2330,6 +4334,7 @@ export type FunctionDefinitionSelect = { publishedAt?: boolean; queueName?: boolean; requiredBuckets?: boolean; + requiredCapabilities?: boolean; requiredConfigs?: boolean; requiredModels?: boolean; requiredModules?: boolean; @@ -2343,7 +4348,11 @@ export type FunctionDefinitionSelect = { taskIdentifier?: boolean; timeoutSeconds?: boolean; updatedAt?: boolean; + updatedByPrincipal?: boolean; volatile?: boolean; + graph?: { + select: DatabaseFunctionGraphSelect; + }; functionApiBindings?: { select: FunctionApiBindingSelect; first?: number; @@ -2367,6 +4376,7 @@ export type FunctionDeploymentSelect = { annotations?: boolean; concurrency?: boolean; createdAt?: boolean; + createdByPrincipal?: boolean; databaseId?: boolean; errorCount?: boolean; handlerName?: boolean; @@ -2387,6 +4397,7 @@ export type FunctionDeploymentSelect = { status?: boolean; timeoutSeconds?: boolean; updatedAt?: boolean; + updatedByPrincipal?: boolean; namespace?: { select: NamespaceSelect; }; @@ -2448,6 +4459,12 @@ export type FunctionGraphSelect = { filter?: PlatformFunctionDefinitionFilter; orderBy?: PlatformFunctionDefinitionOrderBy[]; }; + platformRepositoryWorkflowsByGraphId?: { + select: PlatformRepositoryWorkflowSelect; + first?: number; + filter?: PlatformRepositoryWorkflowFilter; + orderBy?: PlatformRepositoryWorkflowOrderBy[]; + }; }; export type FunctionGraphExecutionSelect = { actorId?: boolean; @@ -2495,6 +4512,9 @@ export type FunctionGraphExecutionNodeStateSelect = { errorCode?: boolean; errorMessage?: boolean; executionId?: boolean; + expiryDefaultOutput?: boolean; + expiryEscalatedAt?: boolean; + expiryPolicy?: boolean; id?: boolean; nodeName?: boolean; nodePath?: boolean; @@ -2502,6 +4522,9 @@ export type FunctionGraphExecutionNodeStateSelect = { scopeId?: boolean; startedAt?: boolean; status?: boolean; + waitingDeadlineAt?: boolean; + waitingOn?: boolean; + waitingSince?: boolean; }; export type FunctionGraphExecutionOutputSelect = { createdAt?: boolean; @@ -2553,16 +4576,21 @@ export type FunctionInvocationSelect = { channel?: boolean; completedAt?: boolean; createdAt?: boolean; + createdByPrincipal?: boolean; databaseId?: boolean; definitionScope?: boolean; durationMs?: boolean; + entityId?: boolean; + entityType?: boolean; error?: boolean; functionDefinitionId?: boolean; graphExecutionId?: boolean; id?: boolean; jobId?: boolean; + organizationId?: boolean; parentInvocationId?: boolean; payload?: boolean; + principalId?: boolean; provenance?: boolean; result?: boolean; startedAt?: boolean; @@ -2576,6 +4604,50 @@ export type GetAllTreeNodesRecordSelect = { data?: boolean; path?: boolean; }; +export type ImageSelect = { + createdAt?: boolean; + createdByPrincipal?: boolean; + databaseId?: boolean; + description?: boolean; + digest?: boolean; + expiresAt?: boolean; + id?: boolean; + isPublished?: boolean; + labels?: boolean; + metadata?: boolean; + name?: boolean; + ownerId?: boolean; + platformOnly?: boolean; + registryHost?: boolean; + repository?: boolean; + runtime?: boolean; + tag?: boolean; + updatedAt?: boolean; + updatedByPrincipal?: boolean; + imageGrants?: { + select: ImageGrantSelect; + first?: number; + filter?: ImageGrantFilter; + orderBy?: ImageGrantOrderBy[]; + }; +}; +export type ImageGrantSelect = { + actions?: boolean; + createdAt?: boolean; + createdByPrincipal?: boolean; + databaseId?: boolean; + expiresAt?: boolean; + grantedBy?: boolean; + granteeKey?: boolean; + granteeScope?: boolean; + id?: boolean; + imageId?: boolean; + updatedAt?: boolean; + updatedByPrincipal?: boolean; + image?: { + select: ImageSelect; + }; +}; export type InfraCommitSelect = { authorId?: boolean; committerId?: boolean; @@ -2629,6 +4701,7 @@ export type IntegrationProviderSelect = { }; export type NamespaceSelect = { annotations?: boolean; + clusterId?: boolean; createdAt?: boolean; databaseId?: boolean; description?: boolean; @@ -2641,12 +4714,24 @@ export type NamespaceSelect = { namespaceName?: boolean; status?: boolean; updatedAt?: boolean; + builderBindings?: { + select: BuilderBindingSelect; + first?: number; + filter?: BuilderBindingFilter; + orderBy?: BuilderBindingOrderBy[]; + }; functionDeployments?: { select: FunctionDeploymentSelect; first?: number; filter?: FunctionDeploymentFilter; orderBy?: FunctionDeploymentOrderBy[]; }; + registryBindings?: { + select: RegistryBindingSelect; + first?: number; + filter?: RegistryBindingFilter; + orderBy?: RegistryBindingOrderBy[]; + }; resourceDefinitions?: { select: ResourceDefinitionSelect; first?: number; @@ -2682,6 +4767,78 @@ export type NamespaceEventSelect = { metadata?: boolean; namespaceId?: boolean; }; +export type PlatformBuildSelect = { + actorId?: boolean; + attempt?: boolean; + commitSha?: boolean; + conclusion?: boolean; + createdAt?: boolean; + createdByPrincipal?: boolean; + eventId?: boolean; + finishedAt?: boolean; + id?: boolean; + imageRef?: boolean; + jobId?: boolean; + logs?: boolean; + matrixKey?: boolean; + metadata?: boolean; + proposalId?: boolean; + ref?: boolean; + repositoryId?: boolean; + startedAt?: boolean; + status?: boolean; + updatedAt?: boolean; + updatedByPrincipal?: boolean; + workflowId?: boolean; + event?: { + select: PlatformRepositoryEventSelect; + }; + proposal?: { + select: PlatformProposalSelect; + }; + repository?: { + select: PlatformRepositorySelect; + }; + workflow?: { + select: PlatformRepositoryWorkflowSelect; + }; +}; +export type PlatformBuildStepSelect = { + buildId?: boolean; + createdByPrincipal?: boolean; + exitCode?: boolean; + finishedAt?: boolean; + id?: boolean; + kind?: boolean; + logBytes?: boolean; + logOffset?: boolean; + name?: boolean; + parentSeq?: boolean; + recordedAt?: boolean; + seq?: boolean; + startedAt?: boolean; + status?: boolean; + summary?: boolean; +}; +export type PlatformBuilderBindingSelect = { + createdAt?: boolean; + createdBy?: boolean; + createdByPrincipal?: boolean; + id?: boolean; + installationId?: boolean; + lastError?: boolean; + metadata?: boolean; + namespaceId?: boolean; + observedHost?: boolean; + realm?: boolean; + status?: boolean; + updatedAt?: boolean; + updatedBy?: boolean; + updatedByPrincipal?: boolean; + namespace?: { + select: PlatformNamespaceSelect; + }; +}; export type PlatformFunctionApiBindingSelect = { alias?: boolean; apiId?: boolean; @@ -2716,12 +4873,14 @@ export type PlatformFunctionCapabilityBindingSelect = { }; export type PlatformFunctionDefinitionSelect = { accessChannels?: boolean; + anonymousCallable?: boolean; billable?: boolean; category?: boolean; concurrency?: boolean; cpuLimitMillicores?: boolean; cpuRequestMillicores?: boolean; createdAt?: boolean; + createdByPrincipal?: boolean; description?: boolean; fnCategory?: boolean; functionColumns?: boolean; @@ -2745,6 +4904,7 @@ export type PlatformFunctionDefinitionSelect = { publishedAt?: boolean; queueName?: boolean; requiredBuckets?: boolean; + requiredCapabilities?: boolean; requiredConfigs?: boolean; requiredModels?: boolean; requiredModules?: boolean; @@ -2759,6 +4919,7 @@ export type PlatformFunctionDefinitionSelect = { taskIdentifier?: boolean; timeoutSeconds?: boolean; updatedAt?: boolean; + updatedByPrincipal?: boolean; volatile?: boolean; graph?: { select: FunctionGraphSelect; @@ -2786,6 +4947,7 @@ export type PlatformFunctionDeploymentSelect = { annotations?: boolean; concurrency?: boolean; createdAt?: boolean; + createdByPrincipal?: boolean; errorCount?: boolean; handlerName?: boolean; id?: boolean; @@ -2805,6 +4967,7 @@ export type PlatformFunctionDeploymentSelect = { status?: boolean; timeoutSeconds?: boolean; updatedAt?: boolean; + updatedByPrincipal?: boolean; namespace?: { select: PlatformNamespaceSelect; }; @@ -2848,16 +5011,21 @@ export type PlatformFunctionInvocationSelect = { channel?: boolean; completedAt?: boolean; createdAt?: boolean; + createdByPrincipal?: boolean; databaseId?: boolean; definitionScope?: boolean; durationMs?: boolean; + entityId?: boolean; + entityType?: boolean; error?: boolean; functionDefinitionId?: boolean; graphExecutionId?: boolean; id?: boolean; jobId?: boolean; + organizationId?: boolean; parentInvocationId?: boolean; payload?: boolean; + principalId?: boolean; provenance?: boolean; result?: boolean; startedAt?: boolean; @@ -2867,6 +5035,48 @@ export type PlatformFunctionInvocationSelect = { select: PlatformFunctionApiBindingSelect; }; }; +export type PlatformImageSelect = { + createdAt?: boolean; + createdByPrincipal?: boolean; + description?: boolean; + digest?: boolean; + expiresAt?: boolean; + id?: boolean; + isPublished?: boolean; + labels?: boolean; + metadata?: boolean; + name?: boolean; + ownerId?: boolean; + platformOnly?: boolean; + registryHost?: boolean; + repository?: boolean; + runtime?: boolean; + tag?: boolean; + updatedAt?: boolean; + updatedByPrincipal?: boolean; + platformImageGrantsByImageId?: { + select: PlatformImageGrantSelect; + first?: number; + filter?: PlatformImageGrantFilter; + orderBy?: PlatformImageGrantOrderBy[]; + }; +}; +export type PlatformImageGrantSelect = { + actions?: boolean; + createdAt?: boolean; + createdByPrincipal?: boolean; + expiresAt?: boolean; + grantedBy?: boolean; + granteeKey?: boolean; + granteeScope?: boolean; + id?: boolean; + imageId?: boolean; + updatedAt?: boolean; + updatedByPrincipal?: boolean; + image?: { + select: PlatformImageSelect; + }; +}; export type PlatformInfraCommitSelect = { authorId?: boolean; committerId?: boolean; @@ -2904,8 +5114,33 @@ export type PlatformInfraStoreSelect = { name?: boolean; scopeId?: boolean; }; +export type PlatformK8sResourceKindSelect = { + active?: boolean; + commitId?: boolean; + createdAt?: boolean; + definition?: boolean; + description?: boolean; + id?: boolean; + label?: boolean; + slug?: boolean; + storeId?: boolean; + updatedAt?: boolean; +}; +export type PlatformK8sSpecRuleSelect = { + active?: boolean; + commitId?: boolean; + createdAt?: boolean; + definition?: boolean; + description?: boolean; + id?: boolean; + label?: boolean; + slug?: boolean; + storeId?: boolean; + updatedAt?: boolean; +}; export type PlatformNamespaceSelect = { annotations?: boolean; + clusterId?: boolean; createdAt?: boolean; description?: boolean; id?: boolean; @@ -2917,12 +5152,24 @@ export type PlatformNamespaceSelect = { namespaceName?: boolean; status?: boolean; updatedAt?: boolean; + platformBuilderBindingsByNamespaceId?: { + select: PlatformBuilderBindingSelect; + first?: number; + filter?: PlatformBuilderBindingFilter; + orderBy?: PlatformBuilderBindingOrderBy[]; + }; platformFunctionDeploymentsByNamespaceId?: { select: PlatformFunctionDeploymentSelect; first?: number; filter?: PlatformFunctionDeploymentFilter; orderBy?: PlatformFunctionDeploymentOrderBy[]; }; + platformRegistryBindingsByNamespaceId?: { + select: PlatformRegistryBindingSelect; + first?: number; + filter?: PlatformRegistryBindingFilter; + orderBy?: PlatformRegistryBindingOrderBy[]; + }; platformResourceDefinitionsByNamespaceId?: { select: PlatformResourceDefinitionSelect; first?: number; @@ -2957,14 +5204,427 @@ export type PlatformNamespaceEventSelect = { metadata?: boolean; namespaceId?: boolean; }; +export type PlatformProposalCommentSelect = { + actorId?: boolean; + attachments?: boolean; + body?: boolean; + bodyTrgmSimilarity?: boolean; + createdAt?: boolean; + createdBy?: boolean; + createdByPrincipal?: boolean; + embedding?: boolean; + embeddingUpdatedAt?: boolean; + embeddingVectorDistance?: boolean; + id?: boolean; + line?: boolean; + outdatedAt?: boolean; + path?: boolean; + pathTrgmSimilarity?: boolean; + proposalId?: boolean; + resolvedAt?: boolean; + search?: boolean; + searchScore?: boolean; + searchTsvRank?: boolean; + updatedAt?: boolean; + updatedBy?: boolean; + updatedByPrincipal?: boolean; + proposal?: { + select: PlatformProposalSelect; + }; + platformProposalReactionsByCommentId?: { + select: PlatformProposalReactionSelect; + first?: number; + filter?: PlatformProposalReactionFilter; + orderBy?: PlatformProposalReactionOrderBy[]; + }; +}; +export type PlatformProposalSelect = { + actorId?: boolean; + body?: boolean; + bodyTrgmSimilarity?: boolean; + closedReason?: boolean; + closedReasonTrgmSimilarity?: boolean; + createdAt?: boolean; + createdBy?: boolean; + createdByPrincipal?: boolean; + decidedAt?: boolean; + dueAt?: boolean; + embedding?: boolean; + embeddingUpdatedAt?: boolean; + embeddingVectorDistance?: boolean; + id?: boolean; + kind?: boolean; + kindTrgmSimilarity?: boolean; + labels?: boolean; + mergeCommit?: boolean; + mergeCommitTrgmSimilarity?: boolean; + mergeMethod?: boolean; + mergeMethodTrgmSimilarity?: boolean; + mergeRequestedAt?: boolean; + mergedAt?: boolean; + metadata?: boolean; + parentId?: boolean; + priority?: boolean; + repositoryId?: boolean; + resolution?: boolean; + resolutionTrgmSimilarity?: boolean; + search?: boolean; + searchScore?: boolean; + searchTsvRank?: boolean; + sourceRef?: boolean; + sourceRefTrgmSimilarity?: boolean; + status?: boolean; + statusTrgmSimilarity?: boolean; + targetRef?: boolean; + targetRefTrgmSimilarity?: boolean; + title?: boolean; + titleTrgmSimilarity?: boolean; + updatedAt?: boolean; + updatedBy?: boolean; + updatedByPrincipal?: boolean; + parent?: { + select: PlatformProposalSelect; + }; + repository?: { + select: PlatformRepositorySelect; + }; + childPlatformProposals?: { + select: PlatformProposalSelect; + first?: number; + filter?: PlatformProposalFilter; + orderBy?: PlatformProposalOrderBy[]; + }; + platformBuildsByProposalId?: { + select: PlatformBuildSelect; + first?: number; + filter?: PlatformBuildFilter; + orderBy?: PlatformBuildOrderBy[]; + }; + platformProposalCommentsByProposalId?: { + select: PlatformProposalCommentSelect; + first?: number; + filter?: PlatformProposalCommentFilter; + orderBy?: PlatformProposalCommentOrderBy[]; + }; + platformProposalFileViewsByProposalId?: { + select: PlatformProposalFileViewSelect; + first?: number; + filter?: PlatformProposalFileViewFilter; + orderBy?: PlatformProposalFileViewOrderBy[]; + }; + platformProposalReactionsByProposalId?: { + select: PlatformProposalReactionSelect; + first?: number; + filter?: PlatformProposalReactionFilter; + orderBy?: PlatformProposalReactionOrderBy[]; + }; + platformProposalReviewsByProposalId?: { + select: PlatformProposalReviewSelect; + first?: number; + filter?: PlatformProposalReviewFilter; + orderBy?: PlatformProposalReviewOrderBy[]; + }; + platformProposalsChunksByPlatformProposalsId?: { + select: PlatformProposalsChunkSelect; + first?: number; + filter?: PlatformProposalsChunkFilter; + orderBy?: PlatformProposalsChunkOrderBy[]; + }; +}; +export type PlatformProposalFileViewSelect = { + blobSha?: boolean; + createdAt?: boolean; + createdByPrincipal?: boolean; + id?: boolean; + path?: boolean; + proposalId?: boolean; + reviewerId?: boolean; + updatedAt?: boolean; + updatedByPrincipal?: boolean; + viewedAt?: boolean; + proposal?: { + select: PlatformProposalSelect; + }; +}; +export type PlatformProposalReactionSelect = { + actorId?: boolean; + commentId?: boolean; + createdAt?: boolean; + createdByPrincipal?: boolean; + emoji?: boolean; + id?: boolean; + proposalId?: boolean; + updatedAt?: boolean; + updatedByPrincipal?: boolean; + comment?: { + select: PlatformProposalCommentSelect; + }; + proposal?: { + select: PlatformProposalSelect; + }; +}; +export type PlatformProposalReviewSelect = { + body?: boolean; + bodyTrgmSimilarity?: boolean; + commitSha?: boolean; + commitShaTrgmSimilarity?: boolean; + createdAt?: boolean; + createdByPrincipal?: boolean; + id?: boolean; + proposalId?: boolean; + reviewerId?: boolean; + search?: boolean; + searchScore?: boolean; + searchTsvRank?: boolean; + submittedAt?: boolean; + updatedAt?: boolean; + updatedByPrincipal?: boolean; + verdict?: boolean; + verdictTrgmSimilarity?: boolean; + proposal?: { + select: PlatformProposalSelect; + }; +}; +export type PlatformProposalsChunkSelect = { + actorId?: boolean; + body?: boolean; + chunkIndex?: boolean; + createdAt?: boolean; + embedding?: boolean; + embeddingVectorDistance?: boolean; + id?: boolean; + metadata?: boolean; + platformProposalsId?: boolean; + searchScore?: boolean; + updatedAt?: boolean; + platformProposals?: { + select: PlatformProposalSelect; + }; +}; +export type PlatformRegistryBindingSelect = { + createdAt?: boolean; + createdBy?: boolean; + createdByPrincipal?: boolean; + id?: boolean; + metadata?: boolean; + namespaceId?: boolean; + observedCredentialVersion?: boolean; + pullSecretName?: boolean; + realm?: boolean; + registryHost?: boolean; + registryId?: boolean; + status?: boolean; + updatedAt?: boolean; + updatedBy?: boolean; + updatedByPrincipal?: boolean; + namespace?: { + select: PlatformNamespaceSelect; + }; + registry?: { + select: PlatformRegistrySelect; + }; +}; +export type PlatformRegistrySelect = { + authMode?: boolean; + basePath?: boolean; + createdAt?: boolean; + createdByPrincipal?: boolean; + credentialSecretName?: boolean; + host?: boolean; + id?: boolean; + installationId?: boolean; + isPublished?: boolean; + kind?: boolean; + labels?: boolean; + lastError?: boolean; + metadata?: boolean; + name?: boolean; + platformOnly?: boolean; + role?: boolean; + status?: boolean; + updatedAt?: boolean; + updatedByPrincipal?: boolean; + installation?: { + select: PlatformResourceInstallationSelect; + }; + platformRegistryBindingsByRegistryId?: { + select: PlatformRegistryBindingSelect; + first?: number; + filter?: PlatformRegistryBindingFilter; + orderBy?: PlatformRegistryBindingOrderBy[]; + }; + platformRegistryGrantsByRegistryId?: { + select: PlatformRegistryGrantSelect; + first?: number; + filter?: PlatformRegistryGrantFilter; + orderBy?: PlatformRegistryGrantOrderBy[]; + }; +}; +export type PlatformRegistryGrantSelect = { + actions?: boolean; + createdAt?: boolean; + createdByPrincipal?: boolean; + expiresAt?: boolean; + grantedBy?: boolean; + granteeKey?: boolean; + granteeScope?: boolean; + id?: boolean; + registryId?: boolean; + updatedAt?: boolean; + updatedByPrincipal?: boolean; + registry?: { + select: PlatformRegistrySelect; + }; +}; +export type PlatformRepositorySelect = { + cloneUrl?: boolean; + cloneUrlTrgmSimilarity?: boolean; + createdAt?: boolean; + createdBy?: boolean; + createdByPrincipal?: boolean; + defaultBranch?: boolean; + defaultBranchTrgmSimilarity?: boolean; + description?: boolean; + descriptionTrgmSimilarity?: boolean; + embedding?: boolean; + embeddingUpdatedAt?: boolean; + embeddingVectorDistance?: boolean; + externalId?: boolean; + externalIdTrgmSimilarity?: boolean; + id?: boolean; + isArchived?: boolean; + metadata?: boolean; + name?: boolean; + nameTrgmSimilarity?: boolean; + ownerId?: boolean; + provider?: boolean; + providerTrgmSimilarity?: boolean; + search?: boolean; + searchScore?: boolean; + searchTsvRank?: boolean; + slug?: boolean; + slugTrgmSimilarity?: boolean; + updatedAt?: boolean; + updatedBy?: boolean; + updatedByPrincipal?: boolean; + visibility?: boolean; + visibilityTrgmSimilarity?: boolean; + platformBuildsByRepositoryId?: { + select: PlatformBuildSelect; + first?: number; + filter?: PlatformBuildFilter; + orderBy?: PlatformBuildOrderBy[]; + }; + platformProposalsByRepositoryId?: { + select: PlatformProposalSelect; + first?: number; + filter?: PlatformProposalFilter; + orderBy?: PlatformProposalOrderBy[]; + }; + platformRepositoryEventsByRepositoryId?: { + select: PlatformRepositoryEventSelect; + first?: number; + filter?: PlatformRepositoryEventFilter; + orderBy?: PlatformRepositoryEventOrderBy[]; + }; + platformRepositoryRequiredChecksByRepositoryId?: { + select: PlatformRepositoryRequiredCheckSelect; + first?: number; + filter?: PlatformRepositoryRequiredCheckFilter; + orderBy?: PlatformRepositoryRequiredCheckOrderBy[]; + }; + platformRepositoryWorkflowsByRepositoryId?: { + select: PlatformRepositoryWorkflowSelect; + first?: number; + filter?: PlatformRepositoryWorkflowFilter; + orderBy?: PlatformRepositoryWorkflowOrderBy[]; + }; +}; +export type PlatformRepositoryEventSelect = { + actorId?: boolean; + commitSha?: boolean; + createdAt?: boolean; + createdByPrincipal?: boolean; + deliveryId?: boolean; + eventType?: boolean; + id?: boolean; + metadata?: boolean; + payload?: boolean; + ref?: boolean; + repositoryId?: boolean; + updatedAt?: boolean; + updatedByPrincipal?: boolean; + repository?: { + select: PlatformRepositorySelect; + }; + platformBuildsByEventId?: { + select: PlatformBuildSelect; + first?: number; + filter?: PlatformBuildFilter; + orderBy?: PlatformBuildOrderBy[]; + }; +}; +export type PlatformRepositoryRequiredCheckSelect = { + createdAt?: boolean; + id?: boolean; + repositoryId?: boolean; + updatedAt?: boolean; + workflowId?: boolean; + repository?: { + select: PlatformRepositorySelect; + }; + workflow?: { + select: PlatformRepositoryWorkflowSelect; + }; +}; +export type PlatformRepositoryWorkflowSelect = { + cancelInProgress?: boolean; + concurrencyKey?: boolean; + createdAt?: boolean; + createdBy?: boolean; + createdByPrincipal?: boolean; + eventType?: boolean; + graphId?: boolean; + id?: boolean; + inputs?: boolean; + isEnabled?: boolean; + name?: boolean; + refPattern?: boolean; + repositoryId?: boolean; + requiredSecrets?: boolean; + slug?: boolean; + updatedAt?: boolean; + updatedBy?: boolean; + updatedByPrincipal?: boolean; + graph?: { + select: FunctionGraphSelect; + }; + repository?: { + select: PlatformRepositorySelect; + }; + platformBuildsByWorkflowId?: { + select: PlatformBuildSelect; + first?: number; + filter?: PlatformBuildFilter; + orderBy?: PlatformBuildOrderBy[]; + }; + platformRepositoryRequiredChecksByWorkflowId?: { + select: PlatformRepositoryRequiredCheckSelect; + first?: number; + filter?: PlatformRepositoryRequiredCheckFilter; + orderBy?: PlatformRepositoryRequiredCheckOrderBy[]; + }; +}; export type PlatformResourceSelect = { annotations?: boolean; cpuLimitMillicores?: boolean; cpuRequestMillicores?: boolean; createdAt?: boolean; createdBy?: boolean; + createdByPrincipal?: boolean; errorCount?: boolean; id?: boolean; + imageRef?: boolean; installationId?: boolean; integrations?: boolean; kind?: boolean; @@ -2986,8 +5646,10 @@ export type PlatformResourceSelect = { statusObserved?: boolean; storageClass?: boolean; storageSizeBytes?: boolean; + storageTotalBytes?: boolean; updatedAt?: boolean; updatedBy?: boolean; + updatedByPrincipal?: boolean; installation?: { select: PlatformResourceInstallationSelect; }; @@ -3018,11 +5680,13 @@ export type PlatformResourceDeclaredCapacitySelect = { source?: boolean; sourceId?: boolean; storageSizeBytes?: boolean; + storageTotalBytes?: boolean; }; export type PlatformResourceDefinitionSelect = { annotations?: boolean; createdAt?: boolean; createdBy?: boolean; + createdByPrincipal?: boolean; defaultSpec?: boolean; description?: boolean; id?: boolean; @@ -3038,6 +5702,7 @@ export type PlatformResourceDefinitionSelect = { stepUpMinAge?: boolean; updatedAt?: boolean; updatedBy?: boolean; + updatedByPrincipal?: boolean; namespace?: { select: PlatformNamespaceSelect; }; @@ -3061,6 +5726,7 @@ export type PlatformResourceInstallationSelect = { commitId?: boolean; createdAt?: boolean; createdBy?: boolean; + createdByPrincipal?: boolean; id?: boolean; name?: boolean; namespaceId?: boolean; @@ -3071,9 +5737,16 @@ export type PlatformResourceInstallationSelect = { storeId?: boolean; updatedAt?: boolean; updatedBy?: boolean; + updatedByPrincipal?: boolean; namespace?: { select: PlatformNamespaceSelect; }; + platformRegistriesByInstallationId?: { + select: PlatformRegistrySelect; + first?: number; + filter?: PlatformRegistryFilter; + orderBy?: PlatformRegistryOrderBy[]; + }; platformResourcesByInstallationId?: { select: PlatformResourceSelect; first?: number; @@ -3081,6 +5754,26 @@ export type PlatformResourceInstallationSelect = { orderBy?: PlatformResourceOrderBy[]; }; }; +export type PlatformResourceObservedStorageSelect = { + capacity?: boolean; + capacityBytes?: boolean; + claimName?: boolean; + declaredStorageClass?: boolean; + declaredStorageSizeBytes?: boolean; + declaredStorageTotalBytes?: boolean; + installationId?: boolean; + isBound?: boolean; + kind?: boolean; + namespaceId?: boolean; + phase?: boolean; + requested?: boolean; + requestedBytes?: boolean; + resourceId?: boolean; + resourceStatus?: boolean; + slug?: boolean; + storageClass?: boolean; + storageName?: boolean; +}; export type PlatformResourceStatusCheckSelect = { completedAt?: boolean; id?: boolean; @@ -3142,8 +5835,10 @@ export type PlatformResourcesHealthSelect = { cpuRequestMillicores?: boolean; createdAt?: boolean; createdBy?: boolean; + createdByPrincipal?: boolean; errorCount?: boolean; id?: boolean; + imageRef?: boolean; installationId?: boolean; integrations?: boolean; kind?: boolean; @@ -3166,8 +5861,10 @@ export type PlatformResourcesHealthSelect = { statusObserved?: boolean; storageClass?: boolean; storageSizeBytes?: boolean; + storageTotalBytes?: boolean; updatedAt?: boolean; updatedBy?: boolean; + updatedByPrincipal?: boolean; }; export type PlatformResourcesRequirementsStateSelect = { configHash?: boolean; @@ -3195,6 +5892,7 @@ export type PlatformWebhookEndpointSelect = { active?: boolean; createdAt?: boolean; createdBy?: boolean; + createdByPrincipal?: boolean; functionDefinitionId?: boolean; host?: boolean; id?: boolean; @@ -3205,6 +5903,7 @@ export type PlatformWebhookEndpointSelect = { signingSecretName?: boolean; updatedAt?: boolean; updatedBy?: boolean; + updatedByPrincipal?: boolean; functionDefinition?: { select: PlatformFunctionDefinitionSelect; }; @@ -3235,102 +5934,533 @@ export type PlatformWebhookEventSelect = { select: PlatformWebhookEndpointSelect; }; }; -export type ResourceSelect = { - annotations?: boolean; - cpuLimitMillicores?: boolean; - cpuRequestMillicores?: boolean; +export type ProposalCommentSelect = { + actorId?: boolean; + attachments?: boolean; + body?: boolean; + bodyTrgmSimilarity?: boolean; createdAt?: boolean; createdBy?: boolean; + createdByPrincipal?: boolean; databaseId?: boolean; - errorCount?: boolean; + embedding?: boolean; + embeddingUpdatedAt?: boolean; + embeddingVectorDistance?: boolean; id?: boolean; - installationId?: boolean; - integrations?: boolean; - kind?: boolean; - labels?: boolean; - lastError?: boolean; - lastHeartbeatAt?: boolean; - memoryLimitBytes?: boolean; - memoryRequestBytes?: boolean; - name?: boolean; - namespaceId?: boolean; - realm?: boolean; - replicas?: boolean; - requiredConfigs?: boolean; - requiredSecrets?: boolean; - resourceDefinitionId?: boolean; - slug?: boolean; - spec?: boolean; - status?: boolean; - statusObserved?: boolean; - storageClass?: boolean; - storageSizeBytes?: boolean; + line?: boolean; + outdatedAt?: boolean; + path?: boolean; + pathTrgmSimilarity?: boolean; + proposalId?: boolean; + resolvedAt?: boolean; + search?: boolean; + searchScore?: boolean; + searchTsvRank?: boolean; updatedAt?: boolean; updatedBy?: boolean; - installation?: { - select: ResourceInstallationSelect; - }; - namespace?: { - select: NamespaceSelect; - }; - resourceDefinition?: { - select: ResourceDefinitionSelect; + updatedByPrincipal?: boolean; + proposal?: { + select: ProposalSelect; }; - resourceStatusChecks?: { - select: ResourceStatusCheckSelect; + proposalReactionsByCommentId?: { + select: ProposalReactionSelect; first?: number; - filter?: ResourceStatusCheckFilter; - orderBy?: ResourceStatusCheckOrderBy[]; + filter?: ProposalReactionFilter; + orderBy?: ProposalReactionOrderBy[]; }; }; -export type ResourceDeclaredCapacitySelect = { - cpuLimitMillicores?: boolean; - cpuRequestMillicores?: boolean; - installationId?: boolean; - isTransient?: boolean; - kind?: boolean; - memoryLimitBytes?: boolean; - memoryRequestBytes?: boolean; - namespaceId?: boolean; - podCountMax?: boolean; - podCountMin?: boolean; - source?: boolean; - sourceId?: boolean; - storageSizeBytes?: boolean; -}; -export type ResourceDefinitionSelect = { - annotations?: boolean; +export type ProposalSelect = { + actorId?: boolean; + body?: boolean; + bodyTrgmSimilarity?: boolean; + closedReason?: boolean; + closedReasonTrgmSimilarity?: boolean; createdAt?: boolean; createdBy?: boolean; + createdByPrincipal?: boolean; databaseId?: boolean; - defaultSpec?: boolean; - description?: boolean; + decidedAt?: boolean; + dueAt?: boolean; + embedding?: boolean; + embeddingUpdatedAt?: boolean; + embeddingVectorDistance?: boolean; id?: boolean; - integrations?: boolean; kind?: boolean; + kindTrgmSimilarity?: boolean; labels?: boolean; - name?: boolean; - namespaceId?: boolean; - paramsSchema?: boolean; - requiredConfigs?: boolean; - requiredSecrets?: boolean; - slug?: boolean; - stepUpMinAge?: boolean; + mergeCommit?: boolean; + mergeCommitTrgmSimilarity?: boolean; + mergeMethod?: boolean; + mergeMethodTrgmSimilarity?: boolean; + mergeRequestedAt?: boolean; + mergedAt?: boolean; + metadata?: boolean; + parentId?: boolean; + priority?: boolean; + repositoryId?: boolean; + resolution?: boolean; + resolutionTrgmSimilarity?: boolean; + search?: boolean; + searchScore?: boolean; + searchTsvRank?: boolean; + sourceRef?: boolean; + sourceRefTrgmSimilarity?: boolean; + status?: boolean; + statusTrgmSimilarity?: boolean; + targetRef?: boolean; + targetRefTrgmSimilarity?: boolean; + title?: boolean; + titleTrgmSimilarity?: boolean; updatedAt?: boolean; updatedBy?: boolean; - namespace?: { - select: NamespaceSelect; + updatedByPrincipal?: boolean; + parent?: { + select: ProposalSelect; }; - resources?: { - select: ResourceSelect; + repository?: { + select: RepositorySelect; + }; + builds?: { + select: BuildSelect; first?: number; - filter?: ResourceFilter; - orderBy?: ResourceOrderBy[]; + filter?: BuildFilter; + orderBy?: BuildOrderBy[]; }; -}; -export type ResourceEventSelect = { - actorId?: boolean; - createdAt?: boolean; + childProposals?: { + select: ProposalSelect; + first?: number; + filter?: ProposalFilter; + orderBy?: ProposalOrderBy[]; + }; + proposalComments?: { + select: ProposalCommentSelect; + first?: number; + filter?: ProposalCommentFilter; + orderBy?: ProposalCommentOrderBy[]; + }; + proposalFileViews?: { + select: ProposalFileViewSelect; + first?: number; + filter?: ProposalFileViewFilter; + orderBy?: ProposalFileViewOrderBy[]; + }; + proposalReactions?: { + select: ProposalReactionSelect; + first?: number; + filter?: ProposalReactionFilter; + orderBy?: ProposalReactionOrderBy[]; + }; + proposalReviews?: { + select: ProposalReviewSelect; + first?: number; + filter?: ProposalReviewFilter; + orderBy?: ProposalReviewOrderBy[]; + }; + proposalsChunksByProposalsId?: { + select: ProposalsChunkSelect; + first?: number; + filter?: ProposalsChunkFilter; + orderBy?: ProposalsChunkOrderBy[]; + }; +}; +export type ProposalFileViewSelect = { + blobSha?: boolean; + createdAt?: boolean; + createdByPrincipal?: boolean; + databaseId?: boolean; + id?: boolean; + path?: boolean; + proposalId?: boolean; + reviewerId?: boolean; + updatedAt?: boolean; + updatedByPrincipal?: boolean; + viewedAt?: boolean; + proposal?: { + select: ProposalSelect; + }; +}; +export type ProposalReactionSelect = { + actorId?: boolean; + commentId?: boolean; + createdAt?: boolean; + createdByPrincipal?: boolean; + databaseId?: boolean; + emoji?: boolean; + id?: boolean; + proposalId?: boolean; + updatedAt?: boolean; + updatedByPrincipal?: boolean; + comment?: { + select: ProposalCommentSelect; + }; + proposal?: { + select: ProposalSelect; + }; +}; +export type ProposalReviewSelect = { + body?: boolean; + bodyTrgmSimilarity?: boolean; + commitSha?: boolean; + commitShaTrgmSimilarity?: boolean; + createdAt?: boolean; + createdByPrincipal?: boolean; + databaseId?: boolean; + id?: boolean; + proposalId?: boolean; + reviewerId?: boolean; + search?: boolean; + searchScore?: boolean; + searchTsvRank?: boolean; + submittedAt?: boolean; + updatedAt?: boolean; + updatedByPrincipal?: boolean; + verdict?: boolean; + verdictTrgmSimilarity?: boolean; + proposal?: { + select: ProposalSelect; + }; +}; +export type ProposalsChunkSelect = { + actorId?: boolean; + body?: boolean; + chunkIndex?: boolean; + createdAt?: boolean; + databaseId?: boolean; + embedding?: boolean; + embeddingVectorDistance?: boolean; + id?: boolean; + metadata?: boolean; + proposalsId?: boolean; + searchScore?: boolean; + updatedAt?: boolean; + proposals?: { + select: ProposalSelect; + }; +}; +export type RegistryBindingSelect = { + createdAt?: boolean; + createdBy?: boolean; + createdByPrincipal?: boolean; + databaseId?: boolean; + id?: boolean; + metadata?: boolean; + namespaceId?: boolean; + observedCredentialVersion?: boolean; + pullSecretName?: boolean; + realm?: boolean; + registryHost?: boolean; + registryId?: boolean; + status?: boolean; + updatedAt?: boolean; + updatedBy?: boolean; + updatedByPrincipal?: boolean; + namespace?: { + select: NamespaceSelect; + }; + registry?: { + select: RegistrySelect; + }; +}; +export type RegistrySelect = { + authMode?: boolean; + basePath?: boolean; + createdAt?: boolean; + createdByPrincipal?: boolean; + credentialSecretName?: boolean; + databaseId?: boolean; + host?: boolean; + id?: boolean; + installationId?: boolean; + isPublished?: boolean; + kind?: boolean; + labels?: boolean; + lastError?: boolean; + metadata?: boolean; + name?: boolean; + platformOnly?: boolean; + role?: boolean; + status?: boolean; + updatedAt?: boolean; + updatedByPrincipal?: boolean; + installation?: { + select: ResourceInstallationSelect; + }; + registryBindings?: { + select: RegistryBindingSelect; + first?: number; + filter?: RegistryBindingFilter; + orderBy?: RegistryBindingOrderBy[]; + }; + registryGrants?: { + select: RegistryGrantSelect; + first?: number; + filter?: RegistryGrantFilter; + orderBy?: RegistryGrantOrderBy[]; + }; +}; +export type RegistryGrantSelect = { + actions?: boolean; + createdAt?: boolean; + createdByPrincipal?: boolean; + databaseId?: boolean; + expiresAt?: boolean; + grantedBy?: boolean; + granteeKey?: boolean; + granteeScope?: boolean; + id?: boolean; + registryId?: boolean; + updatedAt?: boolean; + updatedByPrincipal?: boolean; + registry?: { + select: RegistrySelect; + }; +}; +export type RepositorySelect = { + cloneUrl?: boolean; + cloneUrlTrgmSimilarity?: boolean; + createdAt?: boolean; + createdBy?: boolean; + createdByPrincipal?: boolean; + databaseId?: boolean; + defaultBranch?: boolean; + defaultBranchTrgmSimilarity?: boolean; + description?: boolean; + descriptionTrgmSimilarity?: boolean; + embedding?: boolean; + embeddingUpdatedAt?: boolean; + embeddingVectorDistance?: boolean; + externalId?: boolean; + externalIdTrgmSimilarity?: boolean; + id?: boolean; + isArchived?: boolean; + metadata?: boolean; + name?: boolean; + nameTrgmSimilarity?: boolean; + ownerId?: boolean; + provider?: boolean; + providerTrgmSimilarity?: boolean; + search?: boolean; + searchScore?: boolean; + searchTsvRank?: boolean; + slug?: boolean; + slugTrgmSimilarity?: boolean; + updatedAt?: boolean; + updatedBy?: boolean; + updatedByPrincipal?: boolean; + visibility?: boolean; + visibilityTrgmSimilarity?: boolean; + builds?: { + select: BuildSelect; + first?: number; + filter?: BuildFilter; + orderBy?: BuildOrderBy[]; + }; + proposals?: { + select: ProposalSelect; + first?: number; + filter?: ProposalFilter; + orderBy?: ProposalOrderBy[]; + }; + repositoryEvents?: { + select: RepositoryEventSelect; + first?: number; + filter?: RepositoryEventFilter; + orderBy?: RepositoryEventOrderBy[]; + }; + repositoryRequiredChecks?: { + select: RepositoryRequiredCheckSelect; + first?: number; + filter?: RepositoryRequiredCheckFilter; + orderBy?: RepositoryRequiredCheckOrderBy[]; + }; + repositoryWorkflows?: { + select: RepositoryWorkflowSelect; + first?: number; + filter?: RepositoryWorkflowFilter; + orderBy?: RepositoryWorkflowOrderBy[]; + }; +}; +export type RepositoryEventSelect = { + actorId?: boolean; + commitSha?: boolean; + createdAt?: boolean; + createdByPrincipal?: boolean; + databaseId?: boolean; + deliveryId?: boolean; + eventType?: boolean; + id?: boolean; + metadata?: boolean; + payload?: boolean; + ref?: boolean; + repositoryId?: boolean; + updatedAt?: boolean; + updatedByPrincipal?: boolean; + repository?: { + select: RepositorySelect; + }; + buildsByEventId?: { + select: BuildSelect; + first?: number; + filter?: BuildFilter; + orderBy?: BuildOrderBy[]; + }; +}; +export type RepositoryRequiredCheckSelect = { + createdAt?: boolean; + databaseId?: boolean; + id?: boolean; + repositoryId?: boolean; + updatedAt?: boolean; + workflowId?: boolean; + repository?: { + select: RepositorySelect; + }; + workflow?: { + select: RepositoryWorkflowSelect; + }; +}; +export type RepositoryWorkflowSelect = { + cancelInProgress?: boolean; + concurrencyKey?: boolean; + createdAt?: boolean; + createdBy?: boolean; + createdByPrincipal?: boolean; + databaseId?: boolean; + eventType?: boolean; + graphId?: boolean; + id?: boolean; + inputs?: boolean; + isEnabled?: boolean; + name?: boolean; + refPattern?: boolean; + repositoryId?: boolean; + requiredSecrets?: boolean; + slug?: boolean; + updatedAt?: boolean; + updatedBy?: boolean; + updatedByPrincipal?: boolean; + graph?: { + select: DatabaseFunctionGraphSelect; + }; + repository?: { + select: RepositorySelect; + }; + buildsByWorkflowId?: { + select: BuildSelect; + first?: number; + filter?: BuildFilter; + orderBy?: BuildOrderBy[]; + }; + repositoryRequiredChecksByWorkflowId?: { + select: RepositoryRequiredCheckSelect; + first?: number; + filter?: RepositoryRequiredCheckFilter; + orderBy?: RepositoryRequiredCheckOrderBy[]; + }; +}; +export type ResourceSelect = { + annotations?: boolean; + cpuLimitMillicores?: boolean; + cpuRequestMillicores?: boolean; + createdAt?: boolean; + createdBy?: boolean; + createdByPrincipal?: boolean; + databaseId?: boolean; + errorCount?: boolean; + id?: boolean; + imageRef?: boolean; + installationId?: boolean; + integrations?: boolean; + kind?: boolean; + labels?: boolean; + lastError?: boolean; + lastHeartbeatAt?: boolean; + memoryLimitBytes?: boolean; + memoryRequestBytes?: boolean; + name?: boolean; + namespaceId?: boolean; + realm?: boolean; + replicas?: boolean; + requiredConfigs?: boolean; + requiredSecrets?: boolean; + resourceDefinitionId?: boolean; + slug?: boolean; + spec?: boolean; + status?: boolean; + statusObserved?: boolean; + storageClass?: boolean; + storageSizeBytes?: boolean; + storageTotalBytes?: boolean; + updatedAt?: boolean; + updatedBy?: boolean; + updatedByPrincipal?: boolean; + installation?: { + select: ResourceInstallationSelect; + }; + namespace?: { + select: NamespaceSelect; + }; + resourceDefinition?: { + select: ResourceDefinitionSelect; + }; + resourceStatusChecks?: { + select: ResourceStatusCheckSelect; + first?: number; + filter?: ResourceStatusCheckFilter; + orderBy?: ResourceStatusCheckOrderBy[]; + }; +}; +export type ResourceDeclaredCapacitySelect = { + cpuLimitMillicores?: boolean; + cpuRequestMillicores?: boolean; + installationId?: boolean; + isTransient?: boolean; + kind?: boolean; + memoryLimitBytes?: boolean; + memoryRequestBytes?: boolean; + namespaceId?: boolean; + podCountMax?: boolean; + podCountMin?: boolean; + source?: boolean; + sourceId?: boolean; + storageSizeBytes?: boolean; + storageTotalBytes?: boolean; +}; +export type ResourceDefinitionSelect = { + annotations?: boolean; + createdAt?: boolean; + createdBy?: boolean; + createdByPrincipal?: boolean; + databaseId?: boolean; + defaultSpec?: boolean; + description?: boolean; + id?: boolean; + integrations?: boolean; + kind?: boolean; + labels?: boolean; + name?: boolean; + namespaceId?: boolean; + paramsSchema?: boolean; + requiredConfigs?: boolean; + requiredSecrets?: boolean; + slug?: boolean; + stepUpMinAge?: boolean; + updatedAt?: boolean; + updatedBy?: boolean; + updatedByPrincipal?: boolean; + namespace?: { + select: NamespaceSelect; + }; + resources?: { + select: ResourceSelect; + first?: number; + filter?: ResourceFilter; + orderBy?: ResourceOrderBy[]; + }; +}; +export type ResourceEventSelect = { + actorId?: boolean; + createdAt?: boolean; databaseId?: boolean; eventType?: boolean; id?: boolean; @@ -3342,6 +6472,7 @@ export type ResourceInstallationSelect = { commitId?: boolean; createdAt?: boolean; createdBy?: boolean; + createdByPrincipal?: boolean; databaseId?: boolean; id?: boolean; name?: boolean; @@ -3353,9 +6484,16 @@ export type ResourceInstallationSelect = { storeId?: boolean; updatedAt?: boolean; updatedBy?: boolean; + updatedByPrincipal?: boolean; namespace?: { select: NamespaceSelect; }; + registriesByInstallationId?: { + select: RegistrySelect; + first?: number; + filter?: RegistryFilter; + orderBy?: RegistryOrderBy[]; + }; resourcesByInstallationId?: { select: ResourceSelect; first?: number; @@ -3363,6 +6501,26 @@ export type ResourceInstallationSelect = { orderBy?: ResourceOrderBy[]; }; }; +export type ResourceObservedStorageSelect = { + capacity?: boolean; + capacityBytes?: boolean; + claimName?: boolean; + declaredStorageClass?: boolean; + declaredStorageSizeBytes?: boolean; + declaredStorageTotalBytes?: boolean; + installationId?: boolean; + isBound?: boolean; + kind?: boolean; + namespaceId?: boolean; + phase?: boolean; + requested?: boolean; + requestedBytes?: boolean; + resourceId?: boolean; + resourceStatus?: boolean; + slug?: boolean; + storageClass?: boolean; + storageName?: boolean; +}; export type ResourceStatusCheckSelect = { completedAt?: boolean; databaseId?: boolean; @@ -3427,9 +6585,11 @@ export type ResourcesHealthSelect = { cpuRequestMillicores?: boolean; createdAt?: boolean; createdBy?: boolean; + createdByPrincipal?: boolean; databaseId?: boolean; errorCount?: boolean; id?: boolean; + imageRef?: boolean; installationId?: boolean; integrations?: boolean; kind?: boolean; @@ -3452,8 +6612,10 @@ export type ResourcesHealthSelect = { statusObserved?: boolean; storageClass?: boolean; storageSizeBytes?: boolean; + storageTotalBytes?: boolean; updatedAt?: boolean; updatedBy?: boolean; + updatedByPrincipal?: boolean; }; export type ResourcesRequirementsStateSelect = { configHash?: boolean; @@ -3481,6 +6643,7 @@ export type WebhookEndpointSelect = { active?: boolean; createdAt?: boolean; createdBy?: boolean; + createdByPrincipal?: boolean; databaseId?: boolean; functionDefinitionId?: boolean; host?: boolean; @@ -3492,6 +6655,7 @@ export type WebhookEndpointSelect = { signingSecretName?: boolean; updatedAt?: boolean; updatedBy?: boolean; + updatedByPrincipal?: boolean; functionDefinition?: { select: FunctionDefinitionSelect; }; @@ -3524,41 +6688,159 @@ export type WebhookEventSelect = { }; }; // ============ Table Filter Types ============ -export interface ContentPresetFilter { - /** Filter by the object’s `active` field. */ - active?: BooleanFilter; +export interface BuildFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: ContentPresetFilter[]; - /** Filter by the object’s `commitId` field. */ - commitId?: UUIDFilter; + and?: BuildFilter[]; + /** Filter by the object’s `attempt` field. */ + attempt?: IntFilter; + /** Filter by the object’s `commitSha` field. */ + commitSha?: StringFilter; + /** Filter by the object’s `conclusion` field. */ + conclusion?: StringFilter; /** 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 `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `event` relation. */ + event?: RepositoryEventFilter; + /** A related `event` exists. */ + eventExists?: boolean; + /** Filter by the object’s `eventId` field. */ + eventId?: UUIDFilter; + /** Filter by the object’s `finishedAt` field. */ + finishedAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `imageRef` field. */ + imageRef?: StringFilter; + /** Filter by the object’s `jobId` field. */ + jobId?: BigIntFilter; + /** Filter by the object’s `logs` field. */ + logs?: ConstructiveInternalTypeUploadFilter; + /** Filter by the object’s `matrixKey` field. */ + matrixKey?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Negates the expression. */ + not?: BuildFilter; + /** Checks for any expressions in this list. */ + or?: BuildFilter[]; + /** Filter by the object’s `proposal` relation. */ + proposal?: ProposalFilter; + /** A related `proposal` exists. */ + proposalExists?: boolean; + /** Filter by the object’s `proposalId` field. */ + proposalId?: UUIDFilter; + /** Filter by the object’s `ref` field. */ + ref?: StringFilter; + /** Filter by the object’s `repository` relation. */ + repository?: RepositoryFilter; + /** Filter by the object’s `repositoryId` field. */ + repositoryId?: UUIDFilter; + /** Filter by the object’s `startedAt` field. */ + startedAt?: DatetimeFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** Filter by the object’s `workflow` relation. */ + workflow?: RepositoryWorkflowFilter; + /** A related `workflow` exists. */ + workflowExists?: boolean; + /** Filter by the object’s `workflowId` field. */ + workflowId?: UUIDFilter; +} +export interface BuildStepFilter { + /** Checks for all expressions in this list. */ + and?: BuildStepFilter[]; + /** Filter by the object’s `buildId` field. */ + buildId?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `exitCode` field. */ + exitCode?: IntFilter; + /** Filter by the object’s `finishedAt` field. */ + finishedAt?: DatetimeFilter; /** 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; + /** Filter by the object’s `logBytes` field. */ + logBytes?: BigIntFilter; + /** Filter by the object’s `logOffset` field. */ + logOffset?: BigIntFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; /** Negates the expression. */ - not?: ContentPresetFilter; + not?: BuildStepFilter; /** 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; + or?: BuildStepFilter[]; + /** Filter by the object’s `parentSeq` field. */ + parentSeq?: IntFilter; + /** Filter by the object’s `recordedAt` field. */ + recordedAt?: DatetimeFilter; + /** Filter by the object’s `seq` field. */ + seq?: IntFilter; + /** Filter by the object’s `startedAt` field. */ + startedAt?: DatetimeFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `summary` field. */ + summary?: JSONFilter; +} +export interface BuilderBindingFilter { + /** Checks for all expressions in this list. */ + and?: BuilderBindingFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `installationId` field. */ + installationId?: UUIDFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: BuilderBindingFilter; + /** Filter by the object’s `observedHost` field. */ + observedHost?: StringFilter; + /** Checks for any expressions in this list. */ + or?: BuilderBindingFilter[]; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface DbPresetFilter { +export interface ContentPresetFilter { /** Filter by the object’s `active` field. */ active?: BooleanFilter; /** Checks for all expressions in this list. */ - and?: DbPresetFilter[]; + and?: ContentPresetFilter[]; /** Filter by the object’s `commitId` field. */ commitId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ @@ -3569,14 +6851,14 @@ export interface DbPresetFilter { 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; - /** Filter by the object’s `modulesHash` field. */ - modulesHash?: UUIDFilter; /** Negates the expression. */ - not?: DbPresetFilter; + not?: ContentPresetFilter; /** Checks for any expressions in this list. */ - or?: DbPresetFilter[]; + or?: ContentPresetFilter[]; /** Filter by the object’s `slug` field. */ slug?: StringFilter; /** Filter by the object’s `storeId` field. */ @@ -3584,117 +6866,430 @@ export interface DbPresetFilter { /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } -export interface FunctionApiBindingFilter { - /** Filter by the object’s `alias` field. */ - alias?: StringFilter; +export interface DatabaseFunctionGraphFilter { /** Checks for all expressions in this list. */ - and?: FunctionApiBindingFilter[]; - /** Filter by the object’s `apiId` field. */ - apiId?: UUIDFilter; - /** Filter by the object’s `config` field. */ - config?: JSONFilter; + and?: DatabaseFunctionGraphFilter[]; + /** Filter by the object’s `context` field. */ + context?: StringFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; - /** Filter by the object’s `functionDefinition` relation. */ - functionDefinition?: FunctionDefinitionFilter; - /** Filter by the object’s `functionDefinitionId` field. */ - functionDefinitionId?: UUIDFilter; - /** Filter by the object’s `functionInvocationsByApiBindingId` relation. */ - functionInvocationsByApiBindingId?: FunctionApiBindingToManyFunctionInvocationFilter; - /** `functionInvocationsByApiBindingId` exist. */ - functionInvocationsByApiBindingIdExist?: boolean; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `databaseFunctionGraphExecutionsByGraphId` relation. */ + databaseFunctionGraphExecutionsByGraphId?: DatabaseFunctionGraphToManyDatabaseFunctionGraphExecutionFilter; + /** `databaseFunctionGraphExecutionsByGraphId` exist. */ + databaseFunctionGraphExecutionsByGraphIdExist?: boolean; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `definitionsCommitId` field. */ + definitionsCommitId?: UUIDFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `functionDefinitionsByGraphId` relation. */ + functionDefinitionsByGraphId?: DatabaseFunctionGraphToManyFunctionDefinitionFilter; + /** `functionDefinitionsByGraphId` exist. */ + functionDefinitionsByGraphIdExist?: boolean; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `isValid` field. */ + isValid?: BooleanFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; /** Negates the expression. */ - not?: FunctionApiBindingFilter; + not?: DatabaseFunctionGraphFilter; /** Checks for any expressions in this list. */ - or?: FunctionApiBindingFilter[]; + or?: DatabaseFunctionGraphFilter[]; + /** Filter by the object’s `repositoryWorkflowsByGraphId` relation. */ + repositoryWorkflowsByGraphId?: DatabaseFunctionGraphToManyRepositoryWorkflowFilter; + /** `repositoryWorkflowsByGraphId` exist. */ + repositoryWorkflowsByGraphIdExist?: boolean; + /** Filter by the object’s `storeId` field. */ + storeId?: UUIDFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `validationErrors` field. */ + validationErrors?: JSONFilter; } -export interface FunctionCapabilityBindingFilter { +export interface DatabaseFunctionGraphExecutionFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: FunctionCapabilityBindingFilter[]; - /** Filter by the object’s `bucketId` field. */ - bucketId?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; + and?: DatabaseFunctionGraphExecutionFilter[]; + /** Filter by the object’s `completedAt` field. */ + completedAt?: DatetimeFilter; + /** Filter by the object’s `currentWave` field. */ + currentWave?: IntFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `function` relation. */ - function?: FunctionDefinitionFilter; - /** A related `function` exists. */ - functionExists?: boolean; - /** Filter by the object’s `functionId` field. */ - functionId?: UUIDFilter; + /** Filter by the object’s `definitionsCommitId` field. */ + definitionsCommitId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `entityType` field. */ + entityType?: StringFilter; + /** Filter by the object’s `errorCode` field. */ + errorCode?: StringFilter; + /** Filter by the object’s `errorMessage` field. */ + errorMessage?: StringFilter; + /** Filter by the object’s `executionPlan` field. */ + executionPlan?: JSONFilter; + /** Filter by the object’s `graph` relation. */ + graph?: DatabaseFunctionGraphFilter; /** Filter by the object’s `graphId` field. */ graphId?: UUIDFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `key` field. */ - key?: StringFilter; - /** Filter by the object’s `lifecycle` field. */ - lifecycle?: StringFilter; - /** Filter by the object’s `metadata` field. */ - metadata?: JSONFilter; + /** Filter by the object’s `inputPayload` field. */ + inputPayload?: JSONFilter; + /** Filter by the object’s `invocationCreatedAt` field. */ + invocationCreatedAt?: DatetimeFilter; + /** Filter by the object’s `invocationId` field. */ + invocationId?: UUIDFilter; + /** Filter by the object’s `lastProgressAt` field. */ + lastProgressAt?: DatetimeFilter; + /** Filter by the object’s `maxPendingJobs` field. */ + maxPendingJobs?: IntFilter; + /** Filter by the object’s `maxTicks` field. */ + maxTicks?: IntFilter; + /** Filter by the object’s `nodeOutputs` field. */ + nodeOutputs?: JSONFilter; /** Negates the expression. */ - not?: FunctionCapabilityBindingFilter; + not?: DatabaseFunctionGraphExecutionFilter; /** Checks for any expressions in this list. */ - or?: FunctionCapabilityBindingFilter[]; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; + or?: DatabaseFunctionGraphExecutionFilter[]; + /** Filter by the object’s `organizationId` field. */ + organizationId?: UUIDFilter; + /** Filter by the object’s `outputNames` field. */ + outputNames?: StringListFilter; + /** Filter by the object’s `outputNode` field. */ + outputNode?: StringFilter; + /** Filter by the object’s `outputPayload` field. */ + outputPayload?: JSONFilter; + /** Filter by the object’s `outputPort` field. */ + outputPort?: StringFilter; + /** Filter by the object’s `parentExecutionId` field. */ + parentExecutionId?: UUIDFilter; + /** Filter by the object’s `parentInvocationId` field. */ + parentInvocationId?: UUIDFilter; + /** Filter by the object’s `parentNodeName` field. */ + parentNodeName?: StringFilter; + /** Filter by the object’s `principalId` field. */ + principalId?: UUIDFilter; + /** Filter by the object’s `startedAt` field. */ + startedAt?: DatetimeFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `tickCount` field. */ + tickCount?: IntFilter; + /** Filter by the object’s `timeoutAt` field. */ + timeoutAt?: DatetimeFilter; } -export interface FunctionDefinitionFilter { - /** Filter by the object’s `accessChannels` field. */ - accessChannels?: StringListFilter; +export interface DatabaseFunctionGraphExecutionNodeStateFilter { /** Checks for all expressions in this list. */ - and?: FunctionDefinitionFilter[]; - /** Filter by the object’s `category` field. */ - category?: StringFilter; - /** Filter by the object’s `concurrency` field. */ - concurrency?: IntFilter; - /** Filter by the object’s `cpuLimitMillicores` field. */ - cpuLimitMillicores?: BigIntFilter; - /** Filter by the object’s `cpuRequestMillicores` field. */ - cpuRequestMillicores?: BigIntFilter; + and?: DatabaseFunctionGraphExecutionNodeStateFilter[]; + /** Filter by the object’s `callbackInputs` field. */ + callbackInputs?: JSONFilter; + /** Filter by the object’s `callbackMeta` field. */ + callbackMeta?: JSONFilter; + /** Filter by the object’s `callbackTokenHash` field. */ + callbackTokenHash?: StringFilter; + /** Filter by the object’s `completedAt` field. */ + completedAt?: DatetimeFilter; /** 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 `fnCategory` field. */ - fnCategory?: StringFilter; - /** Filter by the object’s `functionApiBindings` relation. */ - functionApiBindings?: FunctionDefinitionToManyFunctionApiBindingFilter; - /** `functionApiBindings` exist. */ - functionApiBindingsExist?: boolean; - /** Filter by the object’s `functionCapabilityBindingsByFunctionId` relation. */ - functionCapabilityBindingsByFunctionId?: FunctionDefinitionToManyFunctionCapabilityBindingFilter; - /** `functionCapabilityBindingsByFunctionId` exist. */ - functionCapabilityBindingsByFunctionIdExist?: boolean; - /** Filter by the object’s `functionColumns` field. */ - functionColumns?: JSONFilter; - /** Filter by the object’s `graphId` field. */ - graphId?: UUIDFilter; - /** Filter by the object’s `icon` field. */ - icon?: StringFilter; + /** Filter by the object’s `errorCode` field. */ + errorCode?: StringFilter; + /** Filter by the object’s `errorMessage` field. */ + errorMessage?: StringFilter; + /** Filter by the object’s `executionId` field. */ + executionId?: UUIDFilter; + /** Filter by the object’s `expiryDefaultOutput` field. */ + expiryDefaultOutput?: JSONFilter; + /** Filter by the object’s `expiryEscalatedAt` field. */ + expiryEscalatedAt?: DatetimeFilter; + /** Filter by the object’s `expiryPolicy` field. */ + expiryPolicy?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `image` field. */ - image?: StringFilter; - /** Filter by the object’s `inputs` field. */ - inputs?: JSONFilter; - /** Filter by the object’s `integrations` field. */ - integrations?: StringListFilter; - /** Filter by the object’s `isPublished` field. */ - isPublished?: BooleanFilter; - /** Filter by the object’s `maxAttempts` field. */ - maxAttempts?: IntFilter; - /** Filter by the object’s `memoryLimitBytes` field. */ - memoryLimitBytes?: BigIntFilter; - /** Filter by the object’s `memoryRequestBytes` field. */ - memoryRequestBytes?: BigIntFilter; + /** Filter by the object’s `nodeName` field. */ + nodeName?: StringFilter; + /** Filter by the object’s `nodePath` field. */ + nodePath?: StringListFilter; + /** Negates the expression. */ + not?: DatabaseFunctionGraphExecutionNodeStateFilter; + /** Checks for any expressions in this list. */ + or?: DatabaseFunctionGraphExecutionNodeStateFilter[]; + /** Filter by the object’s `outputId` field. */ + outputId?: UUIDFilter; + /** Filter by the object’s `startedAt` field. */ + startedAt?: DatetimeFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `waitingDeadlineAt` field. */ + waitingDeadlineAt?: DatetimeFilter; + /** Filter by the object’s `waitingOn` field. */ + waitingOn?: StringFilter; + /** Filter by the object’s `waitingSince` field. */ + waitingSince?: DatetimeFilter; +} +export interface DatabaseFunctionGraphExecutionOutputFilter { + /** Checks for all expressions in this list. */ + and?: DatabaseFunctionGraphExecutionOutputFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `data` field. */ + data?: JSONFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `hash` field. */ + hash?: Base64EncodedBinaryFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: DatabaseFunctionGraphExecutionOutputFilter; + /** Checks for any expressions in this list. */ + or?: DatabaseFunctionGraphExecutionOutputFilter[]; +} +export interface DatabaseGraphCommitFilter { + /** Checks for all expressions in this list. */ + and?: DatabaseGraphCommitFilter[]; + /** Filter by the object’s `authorId` field. */ + authorId?: UUIDFilter; + /** Filter by the object’s `committerId` field. */ + committerId?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `date` field. */ + date?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `message` field. */ + message?: StringFilter; + /** Negates the expression. */ + not?: DatabaseGraphCommitFilter; + /** Checks for any expressions in this list. */ + or?: DatabaseGraphCommitFilter[]; + /** Filter by the object’s `parentIds` field. */ + parentIds?: UUIDListFilter; + /** Filter by the object’s `storeId` field. */ + storeId?: UUIDFilter; + /** Filter by the object’s `treeId` field. */ + treeId?: UUIDFilter; +} +export interface DatabaseGraphGetAllTreeNodesRecordFilter { + data?: JSONFilter; + path?: StringListFilter; + and?: DatabaseGraphGetAllTreeNodesRecordFilter[]; + or?: DatabaseGraphGetAllTreeNodesRecordFilter[]; + not?: DatabaseGraphGetAllTreeNodesRecordFilter; +} +export interface DatabaseGraphObjectFilter { + /** Checks for all expressions in this list. */ + and?: DatabaseGraphObjectFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `data` field. */ + data?: JSONFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `kids` field. */ + kids?: UUIDListFilter; + /** Filter by the object’s `ktree` field. */ + ktree?: StringListFilter; + /** Negates the expression. */ + not?: DatabaseGraphObjectFilter; + /** Checks for any expressions in this list. */ + or?: DatabaseGraphObjectFilter[]; +} +export interface DatabaseGraphRefFilter { + /** Checks for all expressions in this list. */ + and?: DatabaseGraphRefFilter[]; + /** Filter by the object’s `commitId` field. */ + commitId?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: DatabaseGraphRefFilter; + /** Checks for any expressions in this list. */ + or?: DatabaseGraphRefFilter[]; + /** Filter by the object’s `storeId` field. */ + storeId?: UUIDFilter; +} +export interface DatabaseGraphStoreFilter { + /** Checks for all expressions in this list. */ + and?: DatabaseGraphStoreFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `hash` field. */ + hash?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: DatabaseGraphStoreFilter; + /** Checks for any expressions in this list. */ + or?: DatabaseGraphStoreFilter[]; +} +export interface DbPresetFilter { + /** Filter by the object’s `active` field. */ + active?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: DbPresetFilter[]; + /** 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 `label` field. */ + label?: StringFilter; + /** Filter by the object’s `modulesHash` field. */ + modulesHash?: UUIDFilter; + /** Negates the expression. */ + not?: DbPresetFilter; + /** Checks for any expressions in this list. */ + or?: DbPresetFilter[]; + /** 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 FunctionApiBindingFilter { + /** Filter by the object’s `alias` field. */ + alias?: StringFilter; + /** Checks for all expressions in this list. */ + and?: FunctionApiBindingFilter[]; + /** 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 `functionDefinition` relation. */ + functionDefinition?: FunctionDefinitionFilter; + /** Filter by the object’s `functionDefinitionId` field. */ + functionDefinitionId?: UUIDFilter; + /** Filter by the object’s `functionInvocationsByApiBindingId` relation. */ + functionInvocationsByApiBindingId?: FunctionApiBindingToManyFunctionInvocationFilter; + /** `functionInvocationsByApiBindingId` exist. */ + functionInvocationsByApiBindingIdExist?: boolean; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: FunctionApiBindingFilter; + /** Checks for any expressions in this list. */ + or?: FunctionApiBindingFilter[]; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} +export interface FunctionCapabilityBindingFilter { + /** Checks for all expressions in this list. */ + and?: FunctionCapabilityBindingFilter[]; + /** 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 `function` relation. */ + function?: FunctionDefinitionFilter; + /** A related `function` exists. */ + functionExists?: boolean; + /** Filter by the object’s `functionId` field. */ + functionId?: UUIDFilter; + /** Filter by the object’s `graphId` field. */ + graphId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `key` field. */ + key?: StringFilter; + /** Filter by the object’s `lifecycle` field. */ + lifecycle?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Negates the expression. */ + not?: FunctionCapabilityBindingFilter; + /** Checks for any expressions in this list. */ + or?: FunctionCapabilityBindingFilter[]; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} +export interface FunctionDefinitionFilter { + /** Filter by the object’s `accessChannels` field. */ + accessChannels?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: FunctionDefinitionFilter[]; + /** Filter by the object’s `anonymousCallable` field. */ + anonymousCallable?: BooleanFilter; + /** Filter by the object’s `category` field. */ + category?: StringFilter; + /** Filter by the object’s `concurrency` field. */ + concurrency?: IntFilter; + /** Filter by the object’s `cpuLimitMillicores` field. */ + cpuLimitMillicores?: BigIntFilter; + /** Filter by the object’s `cpuRequestMillicores` field. */ + cpuRequestMillicores?: BigIntFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `fnCategory` field. */ + fnCategory?: StringFilter; + /** Filter by the object’s `functionApiBindings` relation. */ + functionApiBindings?: FunctionDefinitionToManyFunctionApiBindingFilter; + /** `functionApiBindings` exist. */ + functionApiBindingsExist?: boolean; + /** Filter by the object’s `functionCapabilityBindingsByFunctionId` relation. */ + functionCapabilityBindingsByFunctionId?: FunctionDefinitionToManyFunctionCapabilityBindingFilter; + /** `functionCapabilityBindingsByFunctionId` exist. */ + functionCapabilityBindingsByFunctionIdExist?: boolean; + /** Filter by the object’s `functionColumns` field. */ + functionColumns?: JSONFilter; + /** Filter by the object’s `graph` relation. */ + graph?: DatabaseFunctionGraphFilter; + /** A related `graph` exists. */ + graphExists?: boolean; + /** Filter by the object’s `graphId` field. */ + graphId?: UUIDFilter; + /** Filter by the object’s `icon` field. */ + icon?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `image` field. */ + image?: StringFilter; + /** Filter by the object’s `inputs` field. */ + inputs?: JSONFilter; + /** Filter by the object’s `integrations` field. */ + integrations?: StringListFilter; + /** Filter by the object’s `isPublished` field. */ + isPublished?: BooleanFilter; + /** Filter by the object’s `maxAttempts` field. */ + maxAttempts?: IntFilter; + /** Filter by the object’s `memoryLimitBytes` field. */ + memoryLimitBytes?: BigIntFilter; + /** Filter by the object’s `memoryRequestBytes` field. */ + memoryRequestBytes?: BigIntFilter; /** Filter by the object’s `moduleTable` field. */ moduleTable?: StringFilter; /** Filter by the object’s `name` field. */ @@ -3719,6 +7314,8 @@ export interface FunctionDefinitionFilter { queueName?: StringFilter; /** Filter by the object’s `requiredBuckets` field. */ requiredBuckets?: StringListFilter; + /** Filter by the object’s `requiredCapabilities` field. */ + requiredCapabilities?: JSONFilter; /** Filter by the object’s `requiredModels` field. */ requiredModels?: StringListFilter; /** Filter by the object’s `requiredModules` field. */ @@ -3741,6 +7338,8 @@ export interface FunctionDefinitionFilter { timeoutSeconds?: IntFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; /** Filter by the object’s `volatile` field. */ volatile?: BooleanFilter; /** Filter by the object’s `webhookEndpoints` relation. */ @@ -3757,6 +7356,8 @@ export interface FunctionDeploymentFilter { concurrency?: IntFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; /** Filter by the object’s `errorCount` field. */ @@ -3803,6 +7404,8 @@ export interface FunctionDeploymentFilter { timeoutSeconds?: IntFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } export interface FunctionDeploymentEventFilter { /** Filter by the object’s `actorId` field. */ @@ -3911,6 +7514,10 @@ export interface FunctionGraphFilter { platformFunctionDefinitionsByGraphId?: FunctionGraphToManyPlatformFunctionDefinitionFilter; /** `platformFunctionDefinitionsByGraphId` exist. */ platformFunctionDefinitionsByGraphIdExist?: boolean; + /** Filter by the object’s `platformRepositoryWorkflowsByGraphId` relation. */ + platformRepositoryWorkflowsByGraphId?: FunctionGraphToManyPlatformRepositoryWorkflowFilter; + /** `platformRepositoryWorkflowsByGraphId` exist. */ + platformRepositoryWorkflowsByGraphIdExist?: boolean; /** Filter by the object’s `scopeId` field. */ scopeId?: UUIDFilter; /** Filter by the object’s `storeId` field. */ @@ -4013,6 +7620,12 @@ export interface FunctionGraphExecutionNodeStateFilter { errorMessage?: StringFilter; /** Filter by the object’s `executionId` field. */ executionId?: UUIDFilter; + /** Filter by the object’s `expiryDefaultOutput` field. */ + expiryDefaultOutput?: JSONFilter; + /** Filter by the object’s `expiryEscalatedAt` field. */ + expiryEscalatedAt?: DatetimeFilter; + /** Filter by the object’s `expiryPolicy` field. */ + expiryPolicy?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `nodeName` field. */ @@ -4031,6 +7644,12 @@ export interface FunctionGraphExecutionNodeStateFilter { startedAt?: DatetimeFilter; /** Filter by the object’s `status` field. */ status?: StringFilter; + /** Filter by the object’s `waitingDeadlineAt` field. */ + waitingDeadlineAt?: DatetimeFilter; + /** Filter by the object’s `waitingOn` field. */ + waitingOn?: StringFilter; + /** Filter by the object’s `waitingSince` field. */ + waitingSince?: DatetimeFilter; } export interface FunctionGraphExecutionOutputFilter { /** Checks for all expressions in this list. */ @@ -4157,12 +7776,18 @@ export interface FunctionInvocationFilter { completedAt?: DatetimeFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; /** Filter by the object’s `definitionScope` field. */ definitionScope?: StringFilter; /** Filter by the object’s `durationMs` field. */ durationMs?: IntFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `entityType` field. */ + entityType?: StringFilter; /** Filter by the object’s `error` field. */ error?: StringFilter; /** Filter by the object’s `functionDefinitionId` field. */ @@ -4177,10 +7802,14 @@ export interface FunctionInvocationFilter { not?: FunctionInvocationFilter; /** Checks for any expressions in this list. */ or?: FunctionInvocationFilter[]; + /** Filter by the object’s `organizationId` field. */ + organizationId?: UUIDFilter; /** Filter by the object’s `parentInvocationId` field. */ parentInvocationId?: UUIDFilter; /** Filter by the object’s `payload` field. */ payload?: JSONFilter; + /** Filter by the object’s `principalId` field. */ + principalId?: UUIDFilter; /** Filter by the object’s `provenance` field. */ provenance?: JSONFilter; /** Filter by the object’s `result` field. */ @@ -4199,16 +7828,100 @@ export interface GetAllTreeNodesRecordFilter { or?: GetAllTreeNodesRecordFilter[]; not?: GetAllTreeNodesRecordFilter; } -export interface InfraCommitFilter { +export interface ImageFilter { /** Checks for all expressions in this list. */ - and?: InfraCommitFilter[]; - /** Filter by the object’s `authorId` field. */ - authorId?: UUIDFilter; - /** Filter by the object’s `committerId` field. */ - committerId?: UUIDFilter; + and?: ImageFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `date` field. */ + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `digest` field. */ + digest?: StringFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `imageGrants` relation. */ + imageGrants?: ImageToManyImageGrantFilter; + /** `imageGrants` exist. */ + imageGrantsExist?: boolean; + /** Filter by the object’s `isPublished` field. */ + isPublished?: BooleanFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: ImageFilter; + /** Checks for any expressions in this list. */ + or?: ImageFilter[]; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `platformOnly` field. */ + platformOnly?: BooleanFilter; + /** Filter by the object’s `registryHost` field. */ + registryHost?: StringFilter; + /** Filter by the object’s `repository` field. */ + repository?: StringFilter; + /** Filter by the object’s `runtime` field. */ + runtime?: StringFilter; + /** Filter by the object’s `tag` field. */ + tag?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} +export interface ImageGrantFilter { + /** Filter by the object’s `actions` field. */ + actions?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: ImageGrantFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; + /** Filter by the object’s `grantedBy` field. */ + grantedBy?: UUIDFilter; + /** Filter by the object’s `granteeKey` field. */ + granteeKey?: UUIDFilter; + /** Filter by the object’s `granteeScope` field. */ + granteeScope?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `image` relation. */ + image?: ImageFilter; + /** Filter by the object’s `imageId` field. */ + imageId?: UUIDFilter; + /** Negates the expression. */ + not?: ImageGrantFilter; + /** Checks for any expressions in this list. */ + or?: ImageGrantFilter[]; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} +export interface InfraCommitFilter { + /** Checks for all expressions in this list. */ + and?: InfraCommitFilter[]; + /** Filter by the object’s `authorId` field. */ + authorId?: UUIDFilter; + /** Filter by the object’s `committerId` field. */ + committerId?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `date` field. */ date?: DatetimeFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -4321,6 +8034,12 @@ export interface NamespaceFilter { and?: NamespaceFilter[]; /** Filter by the object’s `annotations` field. */ annotations?: JSONFilter; + /** Filter by the object’s `builderBindings` relation. */ + builderBindings?: NamespaceToManyBuilderBindingFilter; + /** `builderBindings` exist. */ + builderBindingsExist?: boolean; + /** Filter by the object’s `clusterId` field. */ + clusterId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `databaseId` field. */ @@ -4349,6 +8068,10 @@ export interface NamespaceFilter { not?: NamespaceFilter; /** Checks for any expressions in this list. */ or?: NamespaceFilter[]; + /** Filter by the object’s `registryBindings` relation. */ + registryBindings?: NamespaceToManyRegistryBindingFilter; + /** `registryBindings` exist. */ + registryBindingsExist?: boolean; /** Filter by the object’s `resourceDefinitions` relation. */ resourceDefinitions?: NamespaceToManyResourceDefinitionFilter; /** `resourceDefinitions` exist. */ @@ -4394,6 +8117,148 @@ export interface NamespaceEventFilter { /** Checks for any expressions in this list. */ or?: NamespaceEventFilter[]; } +export interface PlatformBuildFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: PlatformBuildFilter[]; + /** Filter by the object’s `attempt` field. */ + attempt?: IntFilter; + /** Filter by the object’s `commitSha` field. */ + commitSha?: StringFilter; + /** Filter by the object’s `conclusion` field. */ + conclusion?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `event` relation. */ + event?: PlatformRepositoryEventFilter; + /** A related `event` exists. */ + eventExists?: boolean; + /** Filter by the object’s `eventId` field. */ + eventId?: UUIDFilter; + /** Filter by the object’s `finishedAt` field. */ + finishedAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `imageRef` field. */ + imageRef?: StringFilter; + /** Filter by the object’s `jobId` field. */ + jobId?: BigIntFilter; + /** Filter by the object’s `logs` field. */ + logs?: ConstructiveInternalTypeUploadFilter; + /** Filter by the object’s `matrixKey` field. */ + matrixKey?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Negates the expression. */ + not?: PlatformBuildFilter; + /** Checks for any expressions in this list. */ + or?: PlatformBuildFilter[]; + /** Filter by the object’s `proposal` relation. */ + proposal?: PlatformProposalFilter; + /** A related `proposal` exists. */ + proposalExists?: boolean; + /** Filter by the object’s `proposalId` field. */ + proposalId?: UUIDFilter; + /** Filter by the object’s `ref` field. */ + ref?: StringFilter; + /** Filter by the object’s `repository` relation. */ + repository?: PlatformRepositoryFilter; + /** Filter by the object’s `repositoryId` field. */ + repositoryId?: UUIDFilter; + /** Filter by the object’s `startedAt` field. */ + startedAt?: DatetimeFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** Filter by the object’s `workflow` relation. */ + workflow?: PlatformRepositoryWorkflowFilter; + /** A related `workflow` exists. */ + workflowExists?: boolean; + /** Filter by the object’s `workflowId` field. */ + workflowId?: UUIDFilter; +} +export interface PlatformBuildStepFilter { + /** Checks for all expressions in this list. */ + and?: PlatformBuildStepFilter[]; + /** Filter by the object’s `buildId` field. */ + buildId?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `exitCode` field. */ + exitCode?: IntFilter; + /** Filter by the object’s `finishedAt` field. */ + finishedAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `logBytes` field. */ + logBytes?: BigIntFilter; + /** Filter by the object’s `logOffset` field. */ + logOffset?: BigIntFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: PlatformBuildStepFilter; + /** Checks for any expressions in this list. */ + or?: PlatformBuildStepFilter[]; + /** Filter by the object’s `parentSeq` field. */ + parentSeq?: IntFilter; + /** Filter by the object’s `recordedAt` field. */ + recordedAt?: DatetimeFilter; + /** Filter by the object’s `seq` field. */ + seq?: IntFilter; + /** Filter by the object’s `startedAt` field. */ + startedAt?: DatetimeFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `summary` field. */ + summary?: JSONFilter; +} +export interface PlatformBuilderBindingFilter { + /** Checks for all expressions in this list. */ + and?: PlatformBuilderBindingFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `installationId` field. */ + installationId?: UUIDFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: PlatformNamespaceFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformBuilderBindingFilter; + /** Filter by the object’s `observedHost` field. */ + observedHost?: StringFilter; + /** Checks for any expressions in this list. */ + or?: PlatformBuilderBindingFilter[]; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} export interface PlatformFunctionApiBindingFilter { /** Filter by the object’s `alias` field. */ alias?: StringFilter; @@ -4457,6 +8322,8 @@ export interface PlatformFunctionDefinitionFilter { accessChannels?: StringListFilter; /** Checks for all expressions in this list. */ and?: PlatformFunctionDefinitionFilter[]; + /** Filter by the object’s `anonymousCallable` field. */ + anonymousCallable?: BooleanFilter; /** Filter by the object’s `billable` field. */ billable?: BooleanFilter; /** Filter by the object’s `category` field. */ @@ -4469,6 +8336,8 @@ export interface PlatformFunctionDefinitionFilter { cpuRequestMillicores?: BigIntFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `description` field. */ description?: StringFilter; /** Filter by the object’s `fnCategory` field. */ @@ -4535,6 +8404,8 @@ export interface PlatformFunctionDefinitionFilter { queueName?: StringFilter; /** Filter by the object’s `requiredBuckets` field. */ requiredBuckets?: StringListFilter; + /** Filter by the object’s `requiredCapabilities` field. */ + requiredCapabilities?: JSONFilter; /** Filter by the object’s `requiredModels` field. */ requiredModels?: StringListFilter; /** Filter by the object’s `requiredModules` field. */ @@ -4559,6 +8430,8 @@ export interface PlatformFunctionDefinitionFilter { timeoutSeconds?: IntFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; /** Filter by the object’s `volatile` field. */ volatile?: BooleanFilter; } @@ -4571,6 +8444,8 @@ export interface PlatformFunctionDeploymentFilter { concurrency?: IntFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `errorCount` field. */ errorCount?: IntFilter; /** Filter by the object’s `handlerName` field. */ @@ -4615,6 +8490,8 @@ export interface PlatformFunctionDeploymentFilter { timeoutSeconds?: IntFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } export interface PlatformFunctionDeploymentEventFilter { /** Filter by the object’s `actorId` field. */ @@ -4711,12 +8588,18 @@ export interface PlatformFunctionInvocationFilter { completedAt?: DatetimeFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; /** Filter by the object’s `definitionScope` field. */ definitionScope?: StringFilter; /** Filter by the object’s `durationMs` field. */ durationMs?: IntFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `entityType` field. */ + entityType?: StringFilter; /** Filter by the object’s `error` field. */ error?: StringFilter; /** Filter by the object’s `functionDefinitionId` field. */ @@ -4731,10 +8614,14 @@ export interface PlatformFunctionInvocationFilter { not?: PlatformFunctionInvocationFilter; /** Checks for any expressions in this list. */ or?: PlatformFunctionInvocationFilter[]; + /** Filter by the object’s `organizationId` field. */ + organizationId?: UUIDFilter; /** Filter by the object’s `parentInvocationId` field. */ parentInvocationId?: UUIDFilter; /** Filter by the object’s `payload` field. */ payload?: JSONFilter; + /** Filter by the object’s `principalId` field. */ + principalId?: UUIDFilter; /** Filter by the object’s `provenance` field. */ provenance?: JSONFilter; /** Filter by the object’s `result` field. */ @@ -4746,6 +8633,86 @@ export interface PlatformFunctionInvocationFilter { /** Filter by the object’s `taskIdentifier` field. */ taskIdentifier?: StringFilter; } +export interface PlatformImageFilter { + /** Checks for all expressions in this list. */ + and?: PlatformImageFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `digest` field. */ + digest?: StringFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isPublished` field. */ + isPublished?: BooleanFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: PlatformImageFilter; + /** Checks for any expressions in this list. */ + or?: PlatformImageFilter[]; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `platformImageGrantsByImageId` relation. */ + platformImageGrantsByImageId?: PlatformImageToManyPlatformImageGrantFilter; + /** `platformImageGrantsByImageId` exist. */ + platformImageGrantsByImageIdExist?: boolean; + /** Filter by the object’s `platformOnly` field. */ + platformOnly?: BooleanFilter; + /** Filter by the object’s `registryHost` field. */ + registryHost?: StringFilter; + /** Filter by the object’s `repository` field. */ + repository?: StringFilter; + /** Filter by the object’s `runtime` field. */ + runtime?: StringFilter; + /** Filter by the object’s `tag` field. */ + tag?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} +export interface PlatformImageGrantFilter { + /** Filter by the object’s `actions` field. */ + actions?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: PlatformImageGrantFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; + /** Filter by the object’s `grantedBy` field. */ + grantedBy?: UUIDFilter; + /** Filter by the object’s `granteeKey` field. */ + granteeKey?: UUIDFilter; + /** Filter by the object’s `granteeScope` field. */ + granteeScope?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `image` relation. */ + image?: PlatformImageFilter; + /** Filter by the object’s `imageId` field. */ + imageId?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformImageGrantFilter; + /** Checks for any expressions in this list. */ + or?: PlatformImageGrantFilter[]; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} export interface PlatformInfraCommitFilter { /** Checks for all expressions in this list. */ and?: PlatformInfraCommitFilter[]; @@ -4835,11 +8802,69 @@ export interface PlatformInfraStoreFilter { /** Filter by the object’s `scopeId` field. */ scopeId?: UUIDFilter; } +export interface PlatformK8sResourceKindFilter { + /** Filter by the object’s `active` field. */ + active?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: PlatformK8sResourceKindFilter[]; + /** 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 `label` field. */ + label?: StringFilter; + /** Negates the expression. */ + not?: PlatformK8sResourceKindFilter; + /** Checks for any expressions in this list. */ + or?: PlatformK8sResourceKindFilter[]; + /** 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 PlatformK8sSpecRuleFilter { + /** Filter by the object’s `active` field. */ + active?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: PlatformK8sSpecRuleFilter[]; + /** 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 `label` field. */ + label?: StringFilter; + /** Negates the expression. */ + not?: PlatformK8sSpecRuleFilter; + /** Checks for any expressions in this list. */ + or?: PlatformK8sSpecRuleFilter[]; + /** 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 PlatformNamespaceFilter { /** Checks for all expressions in this list. */ and?: PlatformNamespaceFilter[]; /** Filter by the object’s `annotations` field. */ annotations?: JSONFilter; + /** Filter by the object’s `clusterId` field. */ + clusterId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `description` field. */ @@ -4862,10 +8887,18 @@ export interface PlatformNamespaceFilter { not?: PlatformNamespaceFilter; /** Checks for any expressions in this list. */ or?: PlatformNamespaceFilter[]; + /** Filter by the object’s `platformBuilderBindingsByNamespaceId` relation. */ + platformBuilderBindingsByNamespaceId?: PlatformNamespaceToManyPlatformBuilderBindingFilter; + /** `platformBuilderBindingsByNamespaceId` exist. */ + platformBuilderBindingsByNamespaceIdExist?: boolean; /** Filter by the object’s `platformFunctionDeploymentsByNamespaceId` relation. */ platformFunctionDeploymentsByNamespaceId?: PlatformNamespaceToManyPlatformFunctionDeploymentFilter; /** `platformFunctionDeploymentsByNamespaceId` exist. */ platformFunctionDeploymentsByNamespaceIdExist?: boolean; + /** Filter by the object’s `platformRegistryBindingsByNamespaceId` relation. */ + platformRegistryBindingsByNamespaceId?: PlatformNamespaceToManyPlatformRegistryBindingFilter; + /** `platformRegistryBindingsByNamespaceId` exist. */ + platformRegistryBindingsByNamespaceIdExist?: boolean; /** Filter by the object’s `platformResourceDefinitionsByNamespaceId` relation. */ platformResourceDefinitionsByNamespaceId?: PlatformNamespaceToManyPlatformResourceDefinitionFilter; /** `platformResourceDefinitionsByNamespaceId` exist. */ @@ -4909,58 +8942,754 @@ export interface PlatformNamespaceEventFilter { /** Checks for any expressions in this list. */ or?: PlatformNamespaceEventFilter[]; } -export interface PlatformResourceFilter { +export interface PlatformProposalCommentFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: PlatformResourceFilter[]; - /** Filter by the object’s `annotations` field. */ - annotations?: JSONFilter; - /** Filter by the object’s `cpuLimitMillicores` field. */ - cpuLimitMillicores?: BigIntFilter; - /** Filter by the object’s `cpuRequestMillicores` field. */ - cpuRequestMillicores?: BigIntFilter; + and?: PlatformProposalCommentFilter[]; + /** Filter by the object’s `attachments` field. */ + attachments?: ConstructiveInternalTypeUploadListFilter; + /** Filter by the object’s `body` field. */ + body?: StringTrgmFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `createdBy` field. */ createdBy?: UUIDFilter; - /** Filter by the object’s `errorCount` field. */ - errorCount?: IntFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `embedding` field. */ + embedding?: VectorFilter; + /** Filter by the object’s `embeddingUpdatedAt` field. */ + embeddingUpdatedAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `line` field. */ + line?: IntFilter; + /** Negates the expression. */ + not?: PlatformProposalCommentFilter; + /** Checks for any expressions in this list. */ + or?: PlatformProposalCommentFilter[]; + /** Filter by the object’s `outdatedAt` field. */ + outdatedAt?: DatetimeFilter; + /** Filter by the object’s `path` field. */ + path?: StringTrgmFilter; + /** Filter by the object’s `platformProposalReactionsByCommentId` relation. */ + platformProposalReactionsByCommentId?: PlatformProposalCommentToManyPlatformProposalReactionFilter; + /** `platformProposalReactionsByCommentId` exist. */ + platformProposalReactionsByCommentIdExist?: boolean; + /** Filter by the object’s `proposal` relation. */ + proposal?: PlatformProposalFilter; + /** Filter by the object’s `proposalId` field. */ + proposalId?: UUIDFilter; + /** Filter by the object’s `resolvedAt` field. */ + resolvedAt?: DatetimeFilter; + /** Filter by the object’s `search` field. */ + search?: FullTextFilter; + /** TRGM search on the `body` column. */ + trgmBody?: TrgmSearchInput; + /** TRGM search on the `path` column. */ + trgmPath?: TrgmSearchInput; + /** TSV search on the `search` column. */ + tsvSearch?: string; + /** + * Composite unified search. Provide a search string and it will be dispatched to + * all text-compatible search algorithms (tsvector, BM25, pg_trgm) + * simultaneously. When the LLM plugin is active, pgvector also participates via + * auto-embedding. Rows matching ANY algorithm are returned. All matching score + * fields are populated. + */ + unifiedSearch?: string; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** VECTOR search on the `embedding` column. */ + vectorEmbedding?: VectorNearbyInput; +} +export interface PlatformProposalFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: PlatformProposalFilter[]; + /** Filter by the object’s `body` field. */ + body?: StringTrgmFilter; + /** Filter by the object’s `childPlatformProposals` relation. */ + childPlatformProposals?: PlatformProposalToManyPlatformProposalFilter; + /** `childPlatformProposals` exist. */ + childPlatformProposalsExist?: boolean; + /** Filter by the object’s `closedReason` field. */ + closedReason?: StringTrgmFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `decidedAt` field. */ + decidedAt?: DatetimeFilter; + /** Filter by the object’s `dueAt` field. */ + dueAt?: DatetimeFilter; + /** Filter by the object’s `embedding` field. */ + embedding?: VectorFilter; + /** Filter by the object’s `embeddingUpdatedAt` field. */ + embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `installation` relation. */ - installation?: PlatformResourceInstallationFilter; - /** A related `installation` exists. */ - installationExists?: boolean; - /** Filter by the object’s `installationId` field. */ - installationId?: UUIDFilter; - /** Filter by the object’s `integrations` field. */ - integrations?: StringListFilter; /** Filter by the object’s `kind` field. */ - kind?: StringFilter; + kind?: StringTrgmFilter; /** Filter by the object’s `labels` field. */ - labels?: JSONFilter; - /** Filter by the object’s `lastError` field. */ - lastError?: StringFilter; - /** Filter by the object’s `lastHeartbeatAt` field. */ - lastHeartbeatAt?: DatetimeFilter; - /** Filter by the object’s `memoryLimitBytes` field. */ - memoryLimitBytes?: BigIntFilter; - /** Filter by the object’s `memoryRequestBytes` field. */ - memoryRequestBytes?: BigIntFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: PlatformNamespaceFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; + labels?: StringListFilter; + /** Filter by the object’s `mergeCommit` field. */ + mergeCommit?: StringTrgmFilter; + /** Filter by the object’s `mergeMethod` field. */ + mergeMethod?: StringTrgmFilter; + /** Filter by the object’s `mergeRequestedAt` field. */ + mergeRequestedAt?: DatetimeFilter; + /** Filter by the object’s `mergedAt` field. */ + mergedAt?: DatetimeFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; /** Negates the expression. */ - not?: PlatformResourceFilter; + not?: PlatformProposalFilter; /** Checks for any expressions in this list. */ - or?: PlatformResourceFilter[]; - /** Filter by the object’s `platformResourceStatusChecksByResourceId` relation. */ - platformResourceStatusChecksByResourceId?: PlatformResourceToManyPlatformResourceStatusCheckFilter; - /** `platformResourceStatusChecksByResourceId` exist. */ - platformResourceStatusChecksByResourceIdExist?: boolean; - /** Filter by the object’s `realm` field. */ + or?: PlatformProposalFilter[]; + /** Filter by the object’s `parent` relation. */ + parent?: PlatformProposalFilter; + /** A related `parent` exists. */ + parentExists?: boolean; + /** Filter by the object’s `parentId` field. */ + parentId?: UUIDFilter; + /** Filter by the object’s `platformBuildsByProposalId` relation. */ + platformBuildsByProposalId?: PlatformProposalToManyPlatformBuildFilter; + /** `platformBuildsByProposalId` exist. */ + platformBuildsByProposalIdExist?: boolean; + /** Filter by the object’s `platformProposalCommentsByProposalId` relation. */ + platformProposalCommentsByProposalId?: PlatformProposalToManyPlatformProposalCommentFilter; + /** `platformProposalCommentsByProposalId` exist. */ + platformProposalCommentsByProposalIdExist?: boolean; + /** Filter by the object’s `platformProposalFileViewsByProposalId` relation. */ + platformProposalFileViewsByProposalId?: PlatformProposalToManyPlatformProposalFileViewFilter; + /** `platformProposalFileViewsByProposalId` exist. */ + platformProposalFileViewsByProposalIdExist?: boolean; + /** Filter by the object’s `platformProposalReactionsByProposalId` relation. */ + platformProposalReactionsByProposalId?: PlatformProposalToManyPlatformProposalReactionFilter; + /** `platformProposalReactionsByProposalId` exist. */ + platformProposalReactionsByProposalIdExist?: boolean; + /** Filter by the object’s `platformProposalReviewsByProposalId` relation. */ + platformProposalReviewsByProposalId?: PlatformProposalToManyPlatformProposalReviewFilter; + /** `platformProposalReviewsByProposalId` exist. */ + platformProposalReviewsByProposalIdExist?: boolean; + /** Filter by the object’s `platformProposalsChunksByPlatformProposalsId` relation. */ + platformProposalsChunksByPlatformProposalsId?: PlatformProposalToManyPlatformProposalsChunkFilter; + /** `platformProposalsChunksByPlatformProposalsId` exist. */ + platformProposalsChunksByPlatformProposalsIdExist?: boolean; + /** Filter by the object’s `priority` field. */ + priority?: BigFloatFilter; + /** Filter by the object’s `repository` relation. */ + repository?: PlatformRepositoryFilter; + /** Filter by the object’s `repositoryId` field. */ + repositoryId?: UUIDFilter; + /** Filter by the object’s `resolution` field. */ + resolution?: StringTrgmFilter; + /** Filter by the object’s `search` field. */ + search?: FullTextFilter; + /** Filter by the object’s `sourceRef` field. */ + sourceRef?: StringTrgmFilter; + /** Filter by the object’s `status` field. */ + status?: StringTrgmFilter; + /** Filter by the object’s `targetRef` field. */ + targetRef?: StringTrgmFilter; + /** Filter by the object’s `title` field. */ + title?: StringTrgmFilter; + /** TRGM search on the `body` column. */ + trgmBody?: TrgmSearchInput; + /** TRGM search on the `closed_reason` column. */ + trgmClosedReason?: TrgmSearchInput; + /** TRGM search on the `kind` column. */ + trgmKind?: TrgmSearchInput; + /** TRGM search on the `merge_commit` column. */ + trgmMergeCommit?: TrgmSearchInput; + /** TRGM search on the `merge_method` column. */ + trgmMergeMethod?: TrgmSearchInput; + /** TRGM search on the `resolution` column. */ + trgmResolution?: TrgmSearchInput; + /** TRGM search on the `source_ref` column. */ + trgmSourceRef?: TrgmSearchInput; + /** TRGM search on the `status` column. */ + trgmStatus?: TrgmSearchInput; + /** TRGM search on the `target_ref` column. */ + trgmTargetRef?: TrgmSearchInput; + /** TRGM search on the `title` column. */ + trgmTitle?: TrgmSearchInput; + /** TSV search on the `search` column. */ + tsvSearch?: string; + /** + * Composite unified search. Provide a search string and it will be dispatched to + * all text-compatible search algorithms (tsvector, BM25, pg_trgm) + * simultaneously. When the LLM plugin is active, pgvector also participates via + * auto-embedding. Rows matching ANY algorithm are returned. All matching score + * fields are populated. + */ + unifiedSearch?: string; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** VECTOR search on the `embedding` column. */ + vectorEmbedding?: VectorNearbyInput; +} +export interface PlatformProposalFileViewFilter { + /** Checks for all expressions in this list. */ + and?: PlatformProposalFileViewFilter[]; + /** Filter by the object’s `blobSha` field. */ + blobSha?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformProposalFileViewFilter; + /** Checks for any expressions in this list. */ + or?: PlatformProposalFileViewFilter[]; + /** Filter by the object’s `path` field. */ + path?: StringFilter; + /** Filter by the object’s `proposal` relation. */ + proposal?: PlatformProposalFilter; + /** Filter by the object’s `proposalId` field. */ + proposalId?: UUIDFilter; + /** Filter by the object’s `reviewerId` field. */ + reviewerId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** Filter by the object’s `viewedAt` field. */ + viewedAt?: DatetimeFilter; +} +export interface PlatformProposalReactionFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: PlatformProposalReactionFilter[]; + /** Filter by the object’s `comment` relation. */ + comment?: PlatformProposalCommentFilter; + /** A related `comment` exists. */ + commentExists?: boolean; + /** Filter by the object’s `commentId` field. */ + commentId?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `emoji` field. */ + emoji?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformProposalReactionFilter; + /** Checks for any expressions in this list. */ + or?: PlatformProposalReactionFilter[]; + /** Filter by the object’s `proposal` relation. */ + proposal?: PlatformProposalFilter; + /** Filter by the object’s `proposalId` field. */ + proposalId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} +export interface PlatformProposalReviewFilter { + /** Checks for all expressions in this list. */ + and?: PlatformProposalReviewFilter[]; + /** Filter by the object’s `body` field. */ + body?: StringTrgmFilter; + /** Filter by the object’s `commitSha` field. */ + commitSha?: StringTrgmFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformProposalReviewFilter; + /** Checks for any expressions in this list. */ + or?: PlatformProposalReviewFilter[]; + /** Filter by the object’s `proposal` relation. */ + proposal?: PlatformProposalFilter; + /** Filter by the object’s `proposalId` field. */ + proposalId?: UUIDFilter; + /** Filter by the object’s `reviewerId` field. */ + reviewerId?: UUIDFilter; + /** Filter by the object’s `search` field. */ + search?: FullTextFilter; + /** Filter by the object’s `submittedAt` field. */ + submittedAt?: DatetimeFilter; + /** TRGM search on the `body` column. */ + trgmBody?: TrgmSearchInput; + /** TRGM search on the `commit_sha` column. */ + trgmCommitSha?: TrgmSearchInput; + /** TRGM search on the `verdict` column. */ + trgmVerdict?: TrgmSearchInput; + /** TSV search on the `search` column. */ + tsvSearch?: string; + /** + * Composite unified search. Provide a search string and it will be dispatched to + * all text-compatible search algorithms (tsvector, BM25, pg_trgm) + * simultaneously. When the LLM plugin is active, pgvector also participates via + * auto-embedding. Rows matching ANY algorithm are returned. All matching score + * fields are populated. + */ + unifiedSearch?: string; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** Filter by the object’s `verdict` field. */ + verdict?: StringTrgmFilter; +} +export interface PlatformProposalsChunkFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: PlatformProposalsChunkFilter[]; + /** Filter by the object’s `body` field. */ + body?: StringFilter; + /** Filter by the object’s `chunkIndex` field. */ + chunkIndex?: IntFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `embedding` field. */ + embedding?: VectorFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Negates the expression. */ + not?: PlatformProposalsChunkFilter; + /** Checks for any expressions in this list. */ + or?: PlatformProposalsChunkFilter[]; + /** Filter by the object’s `platformProposals` relation. */ + platformProposals?: PlatformProposalFilter; + /** Filter by the object’s `platformProposalsId` field. */ + platformProposalsId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** VECTOR search on the `embedding` column. */ + vectorEmbedding?: VectorNearbyInput; +} +export interface PlatformRegistryBindingFilter { + /** Checks for all expressions in this list. */ + and?: PlatformRegistryBindingFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: PlatformNamespaceFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformRegistryBindingFilter; + /** Filter by the object’s `observedCredentialVersion` field. */ + observedCredentialVersion?: StringFilter; + /** Checks for any expressions in this list. */ + or?: PlatformRegistryBindingFilter[]; + /** Filter by the object’s `pullSecretName` field. */ + pullSecretName?: StringFilter; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; + /** Filter by the object’s `registry` relation. */ + registry?: PlatformRegistryFilter; + /** Filter by the object’s `registryHost` field. */ + registryHost?: StringFilter; + /** Filter by the object’s `registryId` field. */ + registryId?: UUIDFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} +export interface PlatformRegistryFilter { + /** Checks for all expressions in this list. */ + and?: PlatformRegistryFilter[]; + /** Filter by the object’s `authMode` field. */ + authMode?: StringFilter; + /** Filter by the object’s `basePath` field. */ + basePath?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `credentialSecretName` field. */ + credentialSecretName?: StringFilter; + /** Filter by the object’s `host` field. */ + host?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `installation` relation. */ + installation?: PlatformResourceInstallationFilter; + /** A related `installation` exists. */ + installationExists?: boolean; + /** Filter by the object’s `installationId` field. */ + installationId?: UUIDFilter; + /** Filter by the object’s `isPublished` field. */ + isPublished?: BooleanFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: PlatformRegistryFilter; + /** Checks for any expressions in this list. */ + or?: PlatformRegistryFilter[]; + /** Filter by the object’s `platformOnly` field. */ + platformOnly?: BooleanFilter; + /** Filter by the object’s `platformRegistryBindingsByRegistryId` relation. */ + platformRegistryBindingsByRegistryId?: PlatformRegistryToManyPlatformRegistryBindingFilter; + /** `platformRegistryBindingsByRegistryId` exist. */ + platformRegistryBindingsByRegistryIdExist?: boolean; + /** Filter by the object’s `platformRegistryGrantsByRegistryId` relation. */ + platformRegistryGrantsByRegistryId?: PlatformRegistryToManyPlatformRegistryGrantFilter; + /** `platformRegistryGrantsByRegistryId` exist. */ + platformRegistryGrantsByRegistryIdExist?: boolean; + /** Filter by the object’s `role` field. */ + role?: StringFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} +export interface PlatformRegistryGrantFilter { + /** Filter by the object’s `actions` field. */ + actions?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: PlatformRegistryGrantFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; + /** Filter by the object’s `grantedBy` field. */ + grantedBy?: UUIDFilter; + /** Filter by the object’s `granteeKey` field. */ + granteeKey?: UUIDFilter; + /** Filter by the object’s `granteeScope` field. */ + granteeScope?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformRegistryGrantFilter; + /** Checks for any expressions in this list. */ + or?: PlatformRegistryGrantFilter[]; + /** Filter by the object’s `registry` relation. */ + registry?: PlatformRegistryFilter; + /** Filter by the object’s `registryId` field. */ + registryId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} +export interface PlatformRepositoryFilter { + /** Checks for all expressions in this list. */ + and?: PlatformRepositoryFilter[]; + /** Filter by the object’s `cloneUrl` field. */ + cloneUrl?: StringTrgmFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `defaultBranch` field. */ + defaultBranch?: StringTrgmFilter; + /** Filter by the object’s `description` field. */ + description?: StringTrgmFilter; + /** Filter by the object’s `embedding` field. */ + embedding?: VectorFilter; + /** Filter by the object’s `embeddingUpdatedAt` field. */ + embeddingUpdatedAt?: DatetimeFilter; + /** Filter by the object’s `externalId` field. */ + externalId?: StringTrgmFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isArchived` field. */ + isArchived?: BooleanFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `name` field. */ + name?: StringTrgmFilter; + /** Negates the expression. */ + not?: PlatformRepositoryFilter; + /** Checks for any expressions in this list. */ + or?: PlatformRepositoryFilter[]; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `platformBuildsByRepositoryId` relation. */ + platformBuildsByRepositoryId?: PlatformRepositoryToManyPlatformBuildFilter; + /** `platformBuildsByRepositoryId` exist. */ + platformBuildsByRepositoryIdExist?: boolean; + /** Filter by the object’s `platformProposalsByRepositoryId` relation. */ + platformProposalsByRepositoryId?: PlatformRepositoryToManyPlatformProposalFilter; + /** `platformProposalsByRepositoryId` exist. */ + platformProposalsByRepositoryIdExist?: boolean; + /** Filter by the object’s `platformRepositoryEventsByRepositoryId` relation. */ + platformRepositoryEventsByRepositoryId?: PlatformRepositoryToManyPlatformRepositoryEventFilter; + /** `platformRepositoryEventsByRepositoryId` exist. */ + platformRepositoryEventsByRepositoryIdExist?: boolean; + /** Filter by the object’s `platformRepositoryRequiredChecksByRepositoryId` relation. */ + platformRepositoryRequiredChecksByRepositoryId?: PlatformRepositoryToManyPlatformRepositoryRequiredCheckFilter; + /** `platformRepositoryRequiredChecksByRepositoryId` exist. */ + platformRepositoryRequiredChecksByRepositoryIdExist?: boolean; + /** Filter by the object’s `platformRepositoryWorkflowsByRepositoryId` relation. */ + platformRepositoryWorkflowsByRepositoryId?: PlatformRepositoryToManyPlatformRepositoryWorkflowFilter; + /** `platformRepositoryWorkflowsByRepositoryId` exist. */ + platformRepositoryWorkflowsByRepositoryIdExist?: boolean; + /** Filter by the object’s `provider` field. */ + provider?: StringTrgmFilter; + /** Filter by the object’s `search` field. */ + search?: FullTextFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringTrgmFilter; + /** TRGM search on the `clone_url` column. */ + trgmCloneUrl?: TrgmSearchInput; + /** TRGM search on the `default_branch` column. */ + trgmDefaultBranch?: TrgmSearchInput; + /** TRGM search on the `description` column. */ + trgmDescription?: TrgmSearchInput; + /** TRGM search on the `external_id` column. */ + trgmExternalId?: TrgmSearchInput; + /** TRGM search on the `name` column. */ + trgmName?: TrgmSearchInput; + /** TRGM search on the `provider` column. */ + trgmProvider?: TrgmSearchInput; + /** TRGM search on the `slug` column. */ + trgmSlug?: TrgmSearchInput; + /** TRGM search on the `visibility` column. */ + trgmVisibility?: TrgmSearchInput; + /** TSV search on the `search` column. */ + tsvSearch?: string; + /** + * Composite unified search. Provide a search string and it will be dispatched to + * all text-compatible search algorithms (tsvector, BM25, pg_trgm) + * simultaneously. When the LLM plugin is active, pgvector also participates via + * auto-embedding. Rows matching ANY algorithm are returned. All matching score + * fields are populated. + */ + unifiedSearch?: string; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** VECTOR search on the `embedding` column. */ + vectorEmbedding?: VectorNearbyInput; + /** Filter by the object’s `visibility` field. */ + visibility?: StringTrgmFilter; +} +export interface PlatformRepositoryEventFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: PlatformRepositoryEventFilter[]; + /** Filter by the object’s `commitSha` field. */ + commitSha?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `deliveryId` field. */ + deliveryId?: StringFilter; + /** Filter by the object’s `eventType` field. */ + eventType?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Negates the expression. */ + not?: PlatformRepositoryEventFilter; + /** Checks for any expressions in this list. */ + or?: PlatformRepositoryEventFilter[]; + /** Filter by the object’s `payload` field. */ + payload?: JSONFilter; + /** Filter by the object’s `platformBuildsByEventId` relation. */ + platformBuildsByEventId?: PlatformRepositoryEventToManyPlatformBuildFilter; + /** `platformBuildsByEventId` exist. */ + platformBuildsByEventIdExist?: boolean; + /** Filter by the object’s `ref` field. */ + ref?: StringFilter; + /** Filter by the object’s `repository` relation. */ + repository?: PlatformRepositoryFilter; + /** Filter by the object’s `repositoryId` field. */ + repositoryId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} +export interface PlatformRepositoryRequiredCheckFilter { + /** Checks for all expressions in this list. */ + and?: PlatformRepositoryRequiredCheckFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformRepositoryRequiredCheckFilter; + /** Checks for any expressions in this list. */ + or?: PlatformRepositoryRequiredCheckFilter[]; + /** Filter by the object’s `repository` relation. */ + repository?: PlatformRepositoryFilter; + /** Filter by the object’s `repositoryId` field. */ + repositoryId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `workflow` relation. */ + workflow?: PlatformRepositoryWorkflowFilter; + /** Filter by the object’s `workflowId` field. */ + workflowId?: UUIDFilter; +} +export interface PlatformRepositoryWorkflowFilter { + /** Checks for all expressions in this list. */ + and?: PlatformRepositoryWorkflowFilter[]; + /** Filter by the object’s `cancelInProgress` field. */ + cancelInProgress?: BooleanFilter; + /** Filter by the object’s `concurrencyKey` field. */ + concurrencyKey?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `eventType` field. */ + eventType?: StringFilter; + /** Filter by the object’s `graph` relation. */ + graph?: FunctionGraphFilter; + /** A related `graph` exists. */ + graphExists?: boolean; + /** Filter by the object’s `graphId` field. */ + graphId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `inputs` field. */ + inputs?: JSONFilter; + /** Filter by the object’s `isEnabled` field. */ + isEnabled?: BooleanFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: PlatformRepositoryWorkflowFilter; + /** Checks for any expressions in this list. */ + or?: PlatformRepositoryWorkflowFilter[]; + /** Filter by the object’s `platformBuildsByWorkflowId` relation. */ + platformBuildsByWorkflowId?: PlatformRepositoryWorkflowToManyPlatformBuildFilter; + /** `platformBuildsByWorkflowId` exist. */ + platformBuildsByWorkflowIdExist?: boolean; + /** Filter by the object’s `platformRepositoryRequiredChecksByWorkflowId` relation. */ + platformRepositoryRequiredChecksByWorkflowId?: PlatformRepositoryWorkflowToManyPlatformRepositoryRequiredCheckFilter; + /** `platformRepositoryRequiredChecksByWorkflowId` exist. */ + platformRepositoryRequiredChecksByWorkflowIdExist?: boolean; + /** Filter by the object’s `refPattern` field. */ + refPattern?: StringFilter; + /** Filter by the object’s `repository` relation. */ + repository?: PlatformRepositoryFilter; + /** Filter by the object’s `repositoryId` field. */ + repositoryId?: UUIDFilter; + /** Filter by the object’s `requiredSecrets` field. */ + requiredSecrets?: StringListFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} +export interface PlatformResourceFilter { + /** Checks for all expressions in this list. */ + and?: PlatformResourceFilter[]; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Filter by the object’s `cpuLimitMillicores` field. */ + cpuLimitMillicores?: BigIntFilter; + /** Filter by the object’s `cpuRequestMillicores` field. */ + cpuRequestMillicores?: BigIntFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `errorCount` field. */ + errorCount?: IntFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `imageRef` field. */ + imageRef?: StringFilter; + /** Filter by the object’s `installation` relation. */ + installation?: PlatformResourceInstallationFilter; + /** A related `installation` exists. */ + installationExists?: boolean; + /** Filter by the object’s `installationId` field. */ + installationId?: UUIDFilter; + /** Filter by the object’s `integrations` field. */ + integrations?: StringListFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `lastHeartbeatAt` field. */ + lastHeartbeatAt?: DatetimeFilter; + /** Filter by the object’s `memoryLimitBytes` field. */ + memoryLimitBytes?: BigIntFilter; + /** Filter by the object’s `memoryRequestBytes` field. */ + memoryRequestBytes?: BigIntFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: PlatformNamespaceFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformResourceFilter; + /** Checks for any expressions in this list. */ + or?: PlatformResourceFilter[]; + /** Filter by the object’s `platformResourceStatusChecksByResourceId` relation. */ + platformResourceStatusChecksByResourceId?: PlatformResourceToManyPlatformResourceStatusCheckFilter; + /** `platformResourceStatusChecksByResourceId` exist. */ + platformResourceStatusChecksByResourceIdExist?: boolean; + /** Filter by the object’s `realm` field. */ realm?: StringFilter; /** Filter by the object’s `replicas` field. */ replicas?: IntFilter; @@ -4982,10 +9711,14 @@ export interface PlatformResourceFilter { storageClass?: StringFilter; /** Filter by the object’s `storageSizeBytes` field. */ storageSizeBytes?: BigIntFilter; + /** Filter by the object’s `storageTotalBytes` field. */ + storageTotalBytes?: BigIntFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; /** Filter by the object’s `updatedBy` field. */ updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } export interface PlatformResourceDeclaredCapacityFilter { /** Checks for all expressions in this list. */ @@ -5020,6 +9753,8 @@ export interface PlatformResourceDeclaredCapacityFilter { sourceId?: UUIDFilter; /** Filter by the object’s `storageSizeBytes` field. */ storageSizeBytes?: BigIntFilter; + /** Filter by the object’s `storageTotalBytes` field. */ + storageTotalBytes?: BigIntFilter; } export interface PlatformResourceDefinitionFilter { /** Checks for all expressions in this list. */ @@ -5030,6 +9765,8 @@ export interface PlatformResourceDefinitionFilter { createdAt?: DatetimeFilter; /** Filter by the object’s `createdBy` field. */ createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `defaultSpec` field. */ defaultSpec?: JSONFilter; /** Filter by the object’s `description` field. */ @@ -5066,6 +9803,8 @@ export interface PlatformResourceDefinitionFilter { updatedAt?: DatetimeFilter; /** Filter by the object’s `updatedBy` field. */ updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } export interface PlatformResourceEventFilter { /** Filter by the object’s `actorId` field. */ @@ -5098,6 +9837,8 @@ export interface PlatformResourceInstallationFilter { createdAt?: DatetimeFilter; /** Filter by the object’s `createdBy` field. */ createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `name` field. */ @@ -5112,6 +9853,10 @@ export interface PlatformResourceInstallationFilter { or?: PlatformResourceInstallationFilter[]; /** Filter by the object’s `params` field. */ params?: JSONFilter; + /** Filter by the object’s `platformRegistriesByInstallationId` relation. */ + platformRegistriesByInstallationId?: PlatformResourceInstallationToManyPlatformRegistryFilter; + /** `platformRegistriesByInstallationId` exist. */ + platformRegistriesByInstallationIdExist?: boolean; /** Filter by the object’s `platformResourcesByInstallationId` relation. */ platformResourcesByInstallationId?: PlatformResourceInstallationToManyPlatformResourceFilter; /** `platformResourcesByInstallationId` exist. */ @@ -5128,10 +9873,56 @@ export interface PlatformResourceInstallationFilter { updatedAt?: DatetimeFilter; /** Filter by the object’s `updatedBy` field. */ updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface PlatformResourceStatusCheckFilter { +export interface PlatformResourceObservedStorageFilter { /** Checks for all expressions in this list. */ - and?: PlatformResourceStatusCheckFilter[]; + and?: PlatformResourceObservedStorageFilter[]; + /** Filter by the object’s `capacity` field. */ + capacity?: StringFilter; + /** Filter by the object’s `capacityBytes` field. */ + capacityBytes?: BigIntFilter; + /** Filter by the object’s `claimName` field. */ + claimName?: StringFilter; + /** Filter by the object’s `declaredStorageClass` field. */ + declaredStorageClass?: StringFilter; + /** Filter by the object’s `declaredStorageSizeBytes` field. */ + declaredStorageSizeBytes?: BigIntFilter; + /** Filter by the object’s `declaredStorageTotalBytes` field. */ + declaredStorageTotalBytes?: BigIntFilter; + /** Filter by the object’s `installationId` field. */ + installationId?: UUIDFilter; + /** Filter by the object’s `isBound` field. */ + isBound?: BooleanFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformResourceObservedStorageFilter; + /** Checks for any expressions in this list. */ + or?: PlatformResourceObservedStorageFilter[]; + /** Filter by the object’s `phase` field. */ + phase?: StringFilter; + /** Filter by the object’s `requested` field. */ + requested?: StringFilter; + /** Filter by the object’s `requestedBytes` field. */ + requestedBytes?: BigIntFilter; + /** Filter by the object’s `resourceId` field. */ + resourceId?: UUIDFilter; + /** Filter by the object’s `resourceStatus` field. */ + resourceStatus?: StringFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `storageClass` field. */ + storageClass?: StringFilter; + /** Filter by the object’s `storageName` field. */ + storageName?: StringFilter; +} +export interface PlatformResourceStatusCheckFilter { + /** Checks for all expressions in this list. */ + and?: PlatformResourceStatusCheckFilter[]; /** Filter by the object’s `completedAt` field. */ completedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -5264,10 +10055,14 @@ export interface PlatformResourcesHealthFilter { createdAt?: DatetimeFilter; /** Filter by the object’s `createdBy` field. */ createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `errorCount` field. */ errorCount?: IntFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `imageRef` field. */ + imageRef?: StringFilter; /** Filter by the object’s `installationId` field. */ installationId?: UUIDFilter; /** Filter by the object’s `integrations` field. */ @@ -5312,10 +10107,14 @@ export interface PlatformResourcesHealthFilter { storageClass?: StringFilter; /** Filter by the object’s `storageSizeBytes` field. */ storageSizeBytes?: BigIntFilter; + /** Filter by the object’s `storageTotalBytes` field. */ + storageTotalBytes?: BigIntFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; /** Filter by the object’s `updatedBy` field. */ updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } export interface PlatformResourcesRequirementsStateFilter { /** Checks for all expressions in this list. */ @@ -5378,6 +10177,8 @@ export interface PlatformWebhookEndpointFilter { createdAt?: DatetimeFilter; /** Filter by the object’s `createdBy` field. */ createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `functionDefinition` relation. */ functionDefinition?: PlatformFunctionDefinitionFilter; /** Filter by the object’s `functionDefinitionId` field. */ @@ -5410,6 +10211,8 @@ export interface PlatformWebhookEndpointFilter { updatedAt?: DatetimeFilter; /** Filter by the object’s `updatedBy` field. */ updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } export interface PlatformWebhookEventFilter { /** Checks for all expressions in this list. */ @@ -5445,365 +10248,727 @@ export interface PlatformWebhookEventFilter { /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } -export interface ResourceFilter { +export interface ProposalCommentFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: ResourceFilter[]; - /** Filter by the object’s `annotations` field. */ - annotations?: JSONFilter; - /** Filter by the object’s `cpuLimitMillicores` field. */ - cpuLimitMillicores?: BigIntFilter; - /** Filter by the object’s `cpuRequestMillicores` field. */ - cpuRequestMillicores?: BigIntFilter; + and?: ProposalCommentFilter[]; + /** Filter by the object’s `attachments` field. */ + attachments?: ConstructiveInternalTypeUploadListFilter; + /** Filter by the object’s `body` field. */ + body?: StringTrgmFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `createdBy` field. */ createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `errorCount` field. */ - errorCount?: IntFilter; + /** Filter by the object’s `embedding` field. */ + embedding?: VectorFilter; + /** Filter by the object’s `embeddingUpdatedAt` field. */ + embeddingUpdatedAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `line` field. */ + line?: IntFilter; + /** Negates the expression. */ + not?: ProposalCommentFilter; + /** Checks for any expressions in this list. */ + or?: ProposalCommentFilter[]; + /** Filter by the object’s `outdatedAt` field. */ + outdatedAt?: DatetimeFilter; + /** Filter by the object’s `path` field. */ + path?: StringTrgmFilter; + /** Filter by the object’s `proposal` relation. */ + proposal?: ProposalFilter; + /** Filter by the object’s `proposalId` field. */ + proposalId?: UUIDFilter; + /** Filter by the object’s `proposalReactionsByCommentId` relation. */ + proposalReactionsByCommentId?: ProposalCommentToManyProposalReactionFilter; + /** `proposalReactionsByCommentId` exist. */ + proposalReactionsByCommentIdExist?: boolean; + /** Filter by the object’s `resolvedAt` field. */ + resolvedAt?: DatetimeFilter; + /** Filter by the object’s `search` field. */ + search?: FullTextFilter; + /** TRGM search on the `body` column. */ + trgmBody?: TrgmSearchInput; + /** TRGM search on the `path` column. */ + trgmPath?: TrgmSearchInput; + /** TSV search on the `search` column. */ + tsvSearch?: string; + /** + * Composite unified search. Provide a search string and it will be dispatched to + * all text-compatible search algorithms (tsvector, BM25, pg_trgm) + * simultaneously. When the LLM plugin is active, pgvector also participates via + * auto-embedding. Rows matching ANY algorithm are returned. All matching score + * fields are populated. + */ + unifiedSearch?: string; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** VECTOR search on the `embedding` column. */ + vectorEmbedding?: VectorNearbyInput; +} +export interface ProposalFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: ProposalFilter[]; + /** Filter by the object’s `body` field. */ + body?: StringTrgmFilter; + /** Filter by the object’s `builds` relation. */ + builds?: ProposalToManyBuildFilter; + /** `builds` exist. */ + buildsExist?: boolean; + /** Filter by the object’s `childProposals` relation. */ + childProposals?: ProposalToManyProposalFilter; + /** `childProposals` exist. */ + childProposalsExist?: boolean; + /** Filter by the object’s `closedReason` field. */ + closedReason?: StringTrgmFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `decidedAt` field. */ + decidedAt?: DatetimeFilter; + /** Filter by the object’s `dueAt` field. */ + dueAt?: DatetimeFilter; + /** Filter by the object’s `embedding` field. */ + embedding?: VectorFilter; + /** Filter by the object’s `embeddingUpdatedAt` field. */ + embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `installation` relation. */ - installation?: ResourceInstallationFilter; - /** A related `installation` exists. */ - installationExists?: boolean; - /** Filter by the object’s `installationId` field. */ - installationId?: UUIDFilter; - /** Filter by the object’s `integrations` field. */ - integrations?: StringListFilter; /** Filter by the object’s `kind` field. */ - kind?: StringFilter; + kind?: StringTrgmFilter; /** Filter by the object’s `labels` field. */ - labels?: JSONFilter; - /** Filter by the object’s `lastError` field. */ - lastError?: StringFilter; - /** Filter by the object’s `lastHeartbeatAt` field. */ - lastHeartbeatAt?: DatetimeFilter; - /** Filter by the object’s `memoryLimitBytes` field. */ - memoryLimitBytes?: BigIntFilter; - /** Filter by the object’s `memoryRequestBytes` field. */ - memoryRequestBytes?: BigIntFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; + labels?: StringListFilter; + /** Filter by the object’s `mergeCommit` field. */ + mergeCommit?: StringTrgmFilter; + /** Filter by the object’s `mergeMethod` field. */ + mergeMethod?: StringTrgmFilter; + /** Filter by the object’s `mergeRequestedAt` field. */ + mergeRequestedAt?: DatetimeFilter; + /** Filter by the object’s `mergedAt` field. */ + mergedAt?: DatetimeFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; /** Negates the expression. */ - not?: ResourceFilter; + not?: ProposalFilter; /** Checks for any expressions in this list. */ - or?: ResourceFilter[]; - /** Filter by the object’s `realm` field. */ - realm?: StringFilter; - /** Filter by the object’s `replicas` field. */ - replicas?: IntFilter; - /** Filter by the object’s `resourceDefinition` relation. */ - resourceDefinition?: ResourceDefinitionFilter; - /** A related `resourceDefinition` exists. */ - resourceDefinitionExists?: boolean; - /** Filter by the object’s `resourceDefinitionId` field. */ - resourceDefinitionId?: UUIDFilter; - /** Filter by the object’s `resourceStatusChecks` relation. */ - resourceStatusChecks?: ResourceToManyResourceStatusCheckFilter; - /** `resourceStatusChecks` exist. */ - resourceStatusChecksExist?: boolean; - /** Filter by the object’s `slug` field. */ - slug?: StringFilter; - /** Filter by the object’s `spec` field. */ - spec?: JSONFilter; + or?: ProposalFilter[]; + /** Filter by the object’s `parent` relation. */ + parent?: ProposalFilter; + /** A related `parent` exists. */ + parentExists?: boolean; + /** Filter by the object’s `parentId` field. */ + parentId?: UUIDFilter; + /** Filter by the object’s `priority` field. */ + priority?: BigFloatFilter; + /** Filter by the object’s `proposalComments` relation. */ + proposalComments?: ProposalToManyProposalCommentFilter; + /** `proposalComments` exist. */ + proposalCommentsExist?: boolean; + /** Filter by the object’s `proposalFileViews` relation. */ + proposalFileViews?: ProposalToManyProposalFileViewFilter; + /** `proposalFileViews` exist. */ + proposalFileViewsExist?: boolean; + /** Filter by the object’s `proposalReactions` relation. */ + proposalReactions?: ProposalToManyProposalReactionFilter; + /** `proposalReactions` exist. */ + proposalReactionsExist?: boolean; + /** Filter by the object’s `proposalReviews` relation. */ + proposalReviews?: ProposalToManyProposalReviewFilter; + /** `proposalReviews` exist. */ + proposalReviewsExist?: boolean; + /** Filter by the object’s `proposalsChunksByProposalsId` relation. */ + proposalsChunksByProposalsId?: ProposalToManyProposalsChunkFilter; + /** `proposalsChunksByProposalsId` exist. */ + proposalsChunksByProposalsIdExist?: boolean; + /** Filter by the object’s `repository` relation. */ + repository?: RepositoryFilter; + /** Filter by the object’s `repositoryId` field. */ + repositoryId?: UUIDFilter; + /** Filter by the object’s `resolution` field. */ + resolution?: StringTrgmFilter; + /** Filter by the object’s `search` field. */ + search?: FullTextFilter; + /** Filter by the object’s `sourceRef` field. */ + sourceRef?: StringTrgmFilter; /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `statusObserved` field. */ - statusObserved?: JSONFilter; - /** Filter by the object’s `storageClass` field. */ - storageClass?: StringFilter; - /** Filter by the object’s `storageSizeBytes` field. */ - storageSizeBytes?: BigIntFilter; + status?: StringTrgmFilter; + /** Filter by the object’s `targetRef` field. */ + targetRef?: StringTrgmFilter; + /** Filter by the object’s `title` field. */ + title?: StringTrgmFilter; + /** TRGM search on the `body` column. */ + trgmBody?: TrgmSearchInput; + /** TRGM search on the `closed_reason` column. */ + trgmClosedReason?: TrgmSearchInput; + /** TRGM search on the `kind` column. */ + trgmKind?: TrgmSearchInput; + /** TRGM search on the `merge_commit` column. */ + trgmMergeCommit?: TrgmSearchInput; + /** TRGM search on the `merge_method` column. */ + trgmMergeMethod?: TrgmSearchInput; + /** TRGM search on the `resolution` column. */ + trgmResolution?: TrgmSearchInput; + /** TRGM search on the `source_ref` column. */ + trgmSourceRef?: TrgmSearchInput; + /** TRGM search on the `status` column. */ + trgmStatus?: TrgmSearchInput; + /** TRGM search on the `target_ref` column. */ + trgmTargetRef?: TrgmSearchInput; + /** TRGM search on the `title` column. */ + trgmTitle?: TrgmSearchInput; + /** TSV search on the `search` column. */ + tsvSearch?: string; + /** + * Composite unified search. Provide a search string and it will be dispatched to + * all text-compatible search algorithms (tsvector, BM25, pg_trgm) + * simultaneously. When the LLM plugin is active, pgvector also participates via + * auto-embedding. Rows matching ANY algorithm are returned. All matching score + * fields are populated. + */ + unifiedSearch?: string; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; /** Filter by the object’s `updatedBy` field. */ updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** VECTOR search on the `embedding` column. */ + vectorEmbedding?: VectorNearbyInput; } -export interface ResourceDeclaredCapacityFilter { +export interface ProposalFileViewFilter { /** Checks for all expressions in this list. */ - and?: ResourceDeclaredCapacityFilter[]; - /** Filter by the object’s `cpuLimitMillicores` field. */ - cpuLimitMillicores?: BigIntFilter; - /** Filter by the object’s `cpuRequestMillicores` field. */ - cpuRequestMillicores?: BigIntFilter; - /** Filter by the object’s `installationId` field. */ - installationId?: UUIDFilter; - /** Filter by the object’s `isTransient` field. */ - isTransient?: BooleanFilter; - /** Filter by the object’s `kind` field. */ - kind?: StringFilter; - /** Filter by the object’s `memoryLimitBytes` field. */ - memoryLimitBytes?: BigIntFilter; - /** Filter by the object’s `memoryRequestBytes` field. */ - memoryRequestBytes?: BigIntFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; + and?: ProposalFileViewFilter[]; + /** Filter by the object’s `blobSha` field. */ + blobSha?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; /** Negates the expression. */ - not?: ResourceDeclaredCapacityFilter; + not?: ProposalFileViewFilter; /** Checks for any expressions in this list. */ - or?: ResourceDeclaredCapacityFilter[]; - /** Filter by the object’s `podCountMax` field. */ - podCountMax?: IntFilter; - /** Filter by the object’s `podCountMin` field. */ - podCountMin?: IntFilter; - /** Filter by the object’s `source` field. */ - source?: StringFilter; - /** Filter by the object’s `sourceId` field. */ - sourceId?: UUIDFilter; - /** Filter by the object’s `storageSizeBytes` field. */ - storageSizeBytes?: BigIntFilter; + or?: ProposalFileViewFilter[]; + /** Filter by the object’s `path` field. */ + path?: StringFilter; + /** Filter by the object’s `proposal` relation. */ + proposal?: ProposalFilter; + /** Filter by the object’s `proposalId` field. */ + proposalId?: UUIDFilter; + /** Filter by the object’s `reviewerId` field. */ + reviewerId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** Filter by the object’s `viewedAt` field. */ + viewedAt?: DatetimeFilter; } -export interface ResourceDefinitionFilter { +export interface ProposalReactionFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: ResourceDefinitionFilter[]; - /** Filter by the object’s `annotations` field. */ - annotations?: JSONFilter; + and?: ProposalReactionFilter[]; + /** Filter by the object’s `comment` relation. */ + comment?: ProposalCommentFilter; + /** A related `comment` exists. */ + commentExists?: boolean; + /** Filter by the object’s `commentId` field. */ + commentId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultSpec` field. */ - defaultSpec?: JSONFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; + /** Filter by the object’s `emoji` field. */ + emoji?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `integrations` field. */ - integrations?: StringListFilter; - /** Filter by the object’s `kind` field. */ - kind?: StringFilter; - /** Filter by the object’s `labels` field. */ - labels?: JSONFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; /** Negates the expression. */ - not?: ResourceDefinitionFilter; + not?: ProposalReactionFilter; /** Checks for any expressions in this list. */ - or?: ResourceDefinitionFilter[]; - /** Filter by the object’s `paramsSchema` field. */ - paramsSchema?: JSONFilter; - /** Filter by the object’s `resources` relation. */ - resources?: ResourceDefinitionToManyResourceFilter; - /** `resources` exist. */ - resourcesExist?: boolean; - /** Filter by the object’s `slug` field. */ - slug?: StringFilter; - /** Filter by the object’s `stepUpMinAge` field. */ - stepUpMinAge?: IntervalFilter; + or?: ProposalReactionFilter[]; + /** Filter by the object’s `proposal` relation. */ + proposal?: ProposalFilter; + /** Filter by the object’s `proposalId` field. */ + proposalId?: UUIDFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface ResourceEventFilter { +export interface ProposalReviewFilter { + /** Checks for all expressions in this list. */ + and?: ProposalReviewFilter[]; + /** Filter by the object’s `body` field. */ + body?: StringTrgmFilter; + /** Filter by the object’s `commitSha` field. */ + commitSha?: StringTrgmFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: ProposalReviewFilter; + /** Checks for any expressions in this list. */ + or?: ProposalReviewFilter[]; + /** Filter by the object’s `proposal` relation. */ + proposal?: ProposalFilter; + /** Filter by the object’s `proposalId` field. */ + proposalId?: UUIDFilter; + /** Filter by the object’s `reviewerId` field. */ + reviewerId?: UUIDFilter; + /** Filter by the object’s `search` field. */ + search?: FullTextFilter; + /** Filter by the object’s `submittedAt` field. */ + submittedAt?: DatetimeFilter; + /** TRGM search on the `body` column. */ + trgmBody?: TrgmSearchInput; + /** TRGM search on the `commit_sha` column. */ + trgmCommitSha?: TrgmSearchInput; + /** TRGM search on the `verdict` column. */ + trgmVerdict?: TrgmSearchInput; + /** TSV search on the `search` column. */ + tsvSearch?: string; + /** + * Composite unified search. Provide a search string and it will be dispatched to + * all text-compatible search algorithms (tsvector, BM25, pg_trgm) + * simultaneously. When the LLM plugin is active, pgvector also participates via + * auto-embedding. Rows matching ANY algorithm are returned. All matching score + * fields are populated. + */ + unifiedSearch?: string; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** Filter by the object’s `verdict` field. */ + verdict?: StringTrgmFilter; +} +export interface ProposalsChunkFilter { /** Filter by the object’s `actorId` field. */ actorId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: ResourceEventFilter[]; + and?: ProposalsChunkFilter[]; + /** Filter by the object’s `body` field. */ + body?: StringFilter; + /** Filter by the object’s `chunkIndex` field. */ + chunkIndex?: IntFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `eventType` field. */ - eventType?: StringFilter; + /** Filter by the object’s `embedding` field. */ + embedding?: VectorFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `message` field. */ - message?: StringFilter; /** Filter by the object’s `metadata` field. */ metadata?: JSONFilter; /** Negates the expression. */ - not?: ResourceEventFilter; + not?: ProposalsChunkFilter; /** Checks for any expressions in this list. */ - or?: ResourceEventFilter[]; - /** Filter by the object’s `resourceId` field. */ - resourceId?: UUIDFilter; + or?: ProposalsChunkFilter[]; + /** Filter by the object’s `proposals` relation. */ + proposals?: ProposalFilter; + /** Filter by the object’s `proposalsId` field. */ + proposalsId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** VECTOR search on the `embedding` column. */ + vectorEmbedding?: VectorNearbyInput; } -export interface ResourceInstallationFilter { +export interface RegistryBindingFilter { /** Checks for all expressions in this list. */ - and?: ResourceInstallationFilter[]; - /** Filter by the object’s `commitId` field. */ - commitId?: UUIDFilter; + and?: RegistryBindingFilter[]; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `createdBy` field. */ createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; /** Filter by the object’s `namespace` relation. */ namespace?: NamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ - not?: ResourceInstallationFilter; + not?: RegistryBindingFilter; + /** Filter by the object’s `observedCredentialVersion` field. */ + observedCredentialVersion?: StringFilter; /** Checks for any expressions in this list. */ - or?: ResourceInstallationFilter[]; - /** Filter by the object’s `params` field. */ - params?: JSONFilter; - /** Filter by the object’s `resourcesByInstallationId` relation. */ - resourcesByInstallationId?: ResourceInstallationToManyResourceFilter; - /** `resourcesByInstallationId` exist. */ - resourcesByInstallationIdExist?: boolean; - /** Filter by the object’s `revision` field. */ - revision?: IntFilter; - /** Filter by the object’s `slug` field. */ - slug?: StringFilter; + or?: RegistryBindingFilter[]; + /** Filter by the object’s `pullSecretName` field. */ + pullSecretName?: StringFilter; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; + /** Filter by the object’s `registry` relation. */ + registry?: RegistryFilter; + /** Filter by the object’s `registryHost` field. */ + registryHost?: StringFilter; + /** Filter by the object’s `registryId` field. */ + registryId?: UUIDFilter; /** Filter by the object’s `status` field. */ status?: StringFilter; - /** Filter by the object’s `storeId` field. */ - storeId?: UUIDFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; /** Filter by the object’s `updatedBy` field. */ updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface ResourceStatusCheckFilter { +export interface RegistryFilter { /** Checks for all expressions in this list. */ - and?: ResourceStatusCheckFilter[]; - /** Filter by the object’s `completedAt` field. */ - completedAt?: DatetimeFilter; + and?: RegistryFilter[]; + /** Filter by the object’s `authMode` field. */ + authMode?: StringFilter; + /** Filter by the object’s `basePath` field. */ + basePath?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `credentialSecretName` field. */ + credentialSecretName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `host` field. */ + host?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Negates the expression. */ - not?: ResourceStatusCheckFilter; - /** Checks for any expressions in this list. */ - or?: ResourceStatusCheckFilter[]; - /** Filter by the object’s `requestedAt` field. */ - requestedAt?: DatetimeFilter; - /** Filter by the object’s `requestedBy` field. */ - requestedBy?: UUIDFilter; - /** Filter by the object’s `resource` relation. */ - resource?: ResourceFilter; - /** Filter by the object’s `resourceId` field. */ - resourceId?: UUIDFilter; - /** Filter by the object’s `result` field. */ - result?: JSONFilter; + /** Filter by the object’s `installation` relation. */ + installation?: ResourceInstallationFilter; + /** A related `installation` exists. */ + installationExists?: boolean; + /** Filter by the object’s `installationId` field. */ + installationId?: UUIDFilter; + /** Filter by the object’s `isPublished` field. */ + isPublished?: BooleanFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: RegistryFilter; + /** Checks for any expressions in this list. */ + or?: RegistryFilter[]; + /** Filter by the object’s `platformOnly` field. */ + platformOnly?: BooleanFilter; + /** Filter by the object’s `registryBindings` relation. */ + registryBindings?: RegistryToManyRegistryBindingFilter; + /** `registryBindings` exist. */ + registryBindingsExist?: boolean; + /** Filter by the object’s `registryGrants` relation. */ + registryGrants?: RegistryToManyRegistryGrantFilter; + /** `registryGrants` exist. */ + registryGrantsExist?: boolean; + /** Filter by the object’s `role` field. */ + role?: StringFilter; /** Filter by the object’s `status` field. */ status?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface ResourceUsageLogFilter { +export interface RegistryGrantFilter { + /** Filter by the object’s `actions` field. */ + actions?: StringListFilter; /** Checks for all expressions in this list. */ - and?: ResourceUsageLogFilter[]; - /** Filter by the object’s `cpuMillicores` field. */ - cpuMillicores?: BigIntFilter; + and?: RegistryGrantFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; + /** Filter by the object’s `grantedBy` field. */ + grantedBy?: UUIDFilter; + /** Filter by the object’s `granteeKey` field. */ + granteeKey?: UUIDFilter; + /** Filter by the object’s `granteeScope` field. */ + granteeScope?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `intervalSeconds` field. */ - intervalSeconds?: IntFilter; - /** Filter by the object’s `memoryBytes` field. */ - memoryBytes?: BigIntFilter; - /** Filter by the object’s `metrics` field. */ - metrics?: JSONFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; /** Negates the expression. */ - not?: ResourceUsageLogFilter; + not?: RegistryGrantFilter; /** Checks for any expressions in this list. */ - or?: ResourceUsageLogFilter[]; - /** Filter by the object’s `resourceId` field. */ - resourceId?: UUIDFilter; - /** Filter by the object’s `sampledAt` field. */ - sampledAt?: DatetimeFilter; - /** Filter by the object’s `source` field. */ - source?: StringFilter; + or?: RegistryGrantFilter[]; + /** Filter by the object’s `registry` relation. */ + registry?: RegistryFilter; + /** Filter by the object’s `registryId` field. */ + registryId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface ResourceUsageSummaryFilter { +export interface RepositoryFilter { /** Checks for all expressions in this list. */ - and?: ResourceUsageSummaryFilter[]; + and?: RepositoryFilter[]; + /** Filter by the object’s `builds` relation. */ + builds?: RepositoryToManyBuildFilter; + /** `builds` exist. */ + buildsExist?: boolean; + /** Filter by the object’s `cloneUrl` field. */ + cloneUrl?: StringTrgmFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `date` field. */ - date?: DateFilter; - /** Filter by the object’s `gbSeconds` field. */ - gbSeconds?: BigFloatFilter; + /** Filter by the object’s `defaultBranch` field. */ + defaultBranch?: StringTrgmFilter; + /** Filter by the object’s `description` field. */ + description?: StringTrgmFilter; + /** Filter by the object’s `embedding` field. */ + embedding?: VectorFilter; + /** Filter by the object’s `embeddingUpdatedAt` field. */ + embeddingUpdatedAt?: DatetimeFilter; + /** Filter by the object’s `externalId` field. */ + externalId?: StringTrgmFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `maxCpuMillicores` field. */ - maxCpuMillicores?: BigIntFilter; - /** Filter by the object’s `maxMemoryBytes` field. */ - maxMemoryBytes?: BigIntFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; + /** Filter by the object’s `isArchived` field. */ + isArchived?: BooleanFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `name` field. */ + name?: StringTrgmFilter; /** Negates the expression. */ - not?: ResourceUsageSummaryFilter; + not?: RepositoryFilter; /** Checks for any expressions in this list. */ - or?: ResourceUsageSummaryFilter[]; - /** Filter by the object’s `resourceId` field. */ - resourceId?: UUIDFilter; - /** Filter by the object’s `runtimeSeconds` field. */ - runtimeSeconds?: BigIntFilter; - /** Filter by the object’s `sampleCount` field. */ - sampleCount?: IntFilter; + or?: RepositoryFilter[]; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `proposals` relation. */ + proposals?: RepositoryToManyProposalFilter; + /** `proposals` exist. */ + proposalsExist?: boolean; + /** Filter by the object’s `provider` field. */ + provider?: StringTrgmFilter; + /** Filter by the object’s `repositoryEvents` relation. */ + repositoryEvents?: RepositoryToManyRepositoryEventFilter; + /** `repositoryEvents` exist. */ + repositoryEventsExist?: boolean; + /** Filter by the object’s `repositoryRequiredChecks` relation. */ + repositoryRequiredChecks?: RepositoryToManyRepositoryRequiredCheckFilter; + /** `repositoryRequiredChecks` exist. */ + repositoryRequiredChecksExist?: boolean; + /** Filter by the object’s `repositoryWorkflows` relation. */ + repositoryWorkflows?: RepositoryToManyRepositoryWorkflowFilter; + /** `repositoryWorkflows` exist. */ + repositoryWorkflowsExist?: boolean; + /** Filter by the object’s `search` field. */ + search?: FullTextFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringTrgmFilter; + /** TRGM search on the `clone_url` column. */ + trgmCloneUrl?: TrgmSearchInput; + /** TRGM search on the `default_branch` column. */ + trgmDefaultBranch?: TrgmSearchInput; + /** TRGM search on the `description` column. */ + trgmDescription?: TrgmSearchInput; + /** TRGM search on the `external_id` column. */ + trgmExternalId?: TrgmSearchInput; + /** TRGM search on the `name` column. */ + trgmName?: TrgmSearchInput; + /** TRGM search on the `provider` column. */ + trgmProvider?: TrgmSearchInput; + /** TRGM search on the `slug` column. */ + trgmSlug?: TrgmSearchInput; + /** TRGM search on the `visibility` column. */ + trgmVisibility?: TrgmSearchInput; + /** TSV search on the `search` column. */ + tsvSearch?: string; + /** + * Composite unified search. Provide a search string and it will be dispatched to + * all text-compatible search algorithms (tsvector, BM25, pg_trgm) + * simultaneously. When the LLM plugin is active, pgvector also participates via + * auto-embedding. Rows matching ANY algorithm are returned. All matching score + * fields are populated. + */ + unifiedSearch?: string; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** VECTOR search on the `embedding` column. */ + vectorEmbedding?: VectorNearbyInput; + /** Filter by the object’s `visibility` field. */ + visibility?: StringTrgmFilter; +} +export interface RepositoryEventFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: RepositoryEventFilter[]; + /** Filter by the object’s `buildsByEventId` relation. */ + buildsByEventId?: RepositoryEventToManyBuildFilter; + /** `buildsByEventId` exist. */ + buildsByEventIdExist?: boolean; + /** Filter by the object’s `commitSha` field. */ + commitSha?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `deliveryId` field. */ + deliveryId?: StringFilter; + /** Filter by the object’s `eventType` field. */ + eventType?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Negates the expression. */ + not?: RepositoryEventFilter; + /** Checks for any expressions in this list. */ + or?: RepositoryEventFilter[]; + /** Filter by the object’s `payload` field. */ + payload?: JSONFilter; + /** Filter by the object’s `ref` field. */ + ref?: StringFilter; + /** Filter by the object’s `repository` relation. */ + repository?: RepositoryFilter; + /** Filter by the object’s `repositoryId` field. */ + repositoryId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface ResourceUtilizationFilter { +export interface RepositoryRequiredCheckFilter { /** Checks for all expressions in this list. */ - and?: ResourceUtilizationFilter[]; - /** Filter by the object’s `avgMemoryBytes` field. */ - avgMemoryBytes?: BigIntFilter; - /** Filter by the object’s `cpuLimitMillicores` field. */ - cpuLimitMillicores?: BigIntFilter; - /** Filter by the object’s `cpuPeakUtilization` field. */ - cpuPeakUtilization?: BigFloatFilter; - /** Filter by the object’s `cpuRequestHeadroomMillicores` field. */ - cpuRequestHeadroomMillicores?: BigIntFilter; - /** Filter by the object’s `cpuRequestMillicores` field. */ - cpuRequestMillicores?: BigIntFilter; - /** Filter by the object’s `date` field. */ - date?: DateFilter; - /** Filter by the object’s `gbSeconds` field. */ - gbSeconds?: BigFloatFilter; - /** Filter by the object’s `kind` field. */ - kind?: StringFilter; - /** Filter by the object’s `maxCpuMillicores` field. */ - maxCpuMillicores?: BigIntFilter; - /** Filter by the object’s `maxMemoryBytes` field. */ - maxMemoryBytes?: BigIntFilter; - /** Filter by the object’s `memoryLimitBytes` field. */ - memoryLimitBytes?: BigIntFilter; - /** Filter by the object’s `memoryPeakUtilization` field. */ - memoryPeakUtilization?: BigFloatFilter; - /** Filter by the object’s `memoryRequestBytes` field. */ - memoryRequestBytes?: BigIntFilter; - /** Filter by the object’s `memoryRequestHeadroomBytes` field. */ - memoryRequestHeadroomBytes?: BigIntFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; + and?: RepositoryRequiredCheckFilter[]; + /** 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?: ResourceUtilizationFilter; + not?: RepositoryRequiredCheckFilter; /** Checks for any expressions in this list. */ - or?: ResourceUtilizationFilter[]; - /** Filter by the object’s `replicas` field. */ - replicas?: IntFilter; - /** Filter by the object’s `resourceId` field. */ - resourceId?: UUIDFilter; - /** Filter by the object’s `runtimeSeconds` field. */ - runtimeSeconds?: BigIntFilter; - /** Filter by the object’s `sampleCount` field. */ - sampleCount?: IntFilter; + or?: RepositoryRequiredCheckFilter[]; + /** Filter by the object’s `repository` relation. */ + repository?: RepositoryFilter; + /** Filter by the object’s `repositoryId` field. */ + repositoryId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `workflow` relation. */ + workflow?: RepositoryWorkflowFilter; + /** Filter by the object’s `workflowId` field. */ + workflowId?: UUIDFilter; } -export interface ResourcesHealthFilter { +export interface RepositoryWorkflowFilter { /** Checks for all expressions in this list. */ - and?: ResourcesHealthFilter[]; + and?: RepositoryWorkflowFilter[]; + /** Filter by the object’s `buildsByWorkflowId` relation. */ + buildsByWorkflowId?: RepositoryWorkflowToManyBuildFilter; + /** `buildsByWorkflowId` exist. */ + buildsByWorkflowIdExist?: boolean; + /** Filter by the object’s `cancelInProgress` field. */ + cancelInProgress?: BooleanFilter; + /** Filter by the object’s `concurrencyKey` field. */ + concurrencyKey?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `eventType` field. */ + eventType?: StringFilter; + /** Filter by the object’s `graph` relation. */ + graph?: DatabaseFunctionGraphFilter; + /** A related `graph` exists. */ + graphExists?: boolean; + /** Filter by the object’s `graphId` field. */ + graphId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `inputs` field. */ + inputs?: JSONFilter; + /** Filter by the object’s `isEnabled` field. */ + isEnabled?: BooleanFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: RepositoryWorkflowFilter; + /** Checks for any expressions in this list. */ + or?: RepositoryWorkflowFilter[]; + /** Filter by the object’s `refPattern` field. */ + refPattern?: StringFilter; + /** Filter by the object’s `repository` relation. */ + repository?: RepositoryFilter; + /** Filter by the object’s `repositoryId` field. */ + repositoryId?: UUIDFilter; + /** Filter by the object’s `repositoryRequiredChecksByWorkflowId` relation. */ + repositoryRequiredChecksByWorkflowId?: RepositoryWorkflowToManyRepositoryRequiredCheckFilter; + /** `repositoryRequiredChecksByWorkflowId` exist. */ + repositoryRequiredChecksByWorkflowIdExist?: boolean; + /** Filter by the object’s `requiredSecrets` field. */ + requiredSecrets?: StringListFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} +export interface ResourceFilter { + /** Checks for all expressions in this list. */ + and?: ResourceFilter[]; /** Filter by the object’s `annotations` field. */ annotations?: JSONFilter; /** Filter by the object’s `cpuLimitMillicores` field. */ @@ -5814,12 +10979,20 @@ export interface ResourcesHealthFilter { createdAt?: DatetimeFilter; /** Filter by the object’s `createdBy` field. */ createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; /** Filter by the object’s `errorCount` field. */ errorCount?: IntFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `imageRef` field. */ + imageRef?: StringFilter; + /** Filter by the object’s `installation` relation. */ + installation?: ResourceInstallationFilter; + /** A related `installation` exists. */ + installationExists?: boolean; /** Filter by the object’s `installationId` field. */ installationId?: UUIDFilter; /** Filter by the object’s `integrations` field. */ @@ -5838,277 +11011,1057 @@ export interface ResourcesHealthFilter { memoryRequestBytes?: BigIntFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: NamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ - not?: ResourcesHealthFilter; + not?: ResourceFilter; /** Checks for any expressions in this list. */ - or?: ResourcesHealthFilter[]; + or?: ResourceFilter[]; /** Filter by the object’s `realm` field. */ realm?: StringFilter; /** Filter by the object’s `replicas` field. */ replicas?: IntFilter; + /** Filter by the object’s `resourceDefinition` relation. */ + resourceDefinition?: ResourceDefinitionFilter; + /** A related `resourceDefinition` exists. */ + resourceDefinitionExists?: boolean; /** Filter by the object’s `resourceDefinitionId` field. */ resourceDefinitionId?: UUIDFilter; + /** Filter by the object’s `resourceStatusChecks` relation. */ + resourceStatusChecks?: ResourceToManyResourceStatusCheckFilter; + /** `resourceStatusChecks` exist. */ + resourceStatusChecksExist?: boolean; /** Filter by the object’s `slug` field. */ slug?: StringFilter; /** Filter by the object’s `spec` field. */ spec?: JSONFilter; /** Filter by the object’s `status` field. */ status?: StringFilter; - /** Filter by the object’s `statusDetail` field. */ - statusDetail?: StringFilter; /** Filter by the object’s `statusObserved` field. */ statusObserved?: JSONFilter; /** Filter by the object’s `storageClass` field. */ storageClass?: StringFilter; /** Filter by the object’s `storageSizeBytes` field. */ storageSizeBytes?: BigIntFilter; + /** Filter by the object’s `storageTotalBytes` field. */ + storageTotalBytes?: BigIntFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; /** Filter by the object’s `updatedBy` field. */ updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface ResourcesRequirementsStateFilter { - /** Checks for all expressions in this list. */ - and?: ResourcesRequirementsStateFilter[]; - /** Filter by the object’s `configHash` field. */ - configHash?: StringFilter; - /** Filter by the object’s `configObjectName` field. */ - configObjectName?: StringFilter; - /** Negates the expression. */ - not?: ResourcesRequirementsStateFilter; - /** Checks for any expressions in this list. */ - or?: ResourcesRequirementsStateFilter[]; - /** Filter by the object’s `requirementsHash` field. */ - requirementsHash?: StringFilter; - /** Filter by the object’s `resourceId` field. */ - resourceId?: UUIDFilter; - /** Filter by the object’s `secretsHash` field. */ - secretsHash?: StringFilter; - /** Filter by the object’s `secretsObjectName` field. */ - secretsObjectName?: StringFilter; - /** Filter by the object’s `slug` field. */ - slug?: StringFilter; -} -export interface ResourcesResolvedRequirementFilter { +export interface ResourceDeclaredCapacityFilter { /** Checks for all expressions in this list. */ - and?: ResourcesResolvedRequirementFilter[]; - /** Filter by the object’s `atomId` field. */ - atomId?: UUIDFilter; - /** Filter by the object’s `configObjectName` field. */ - configObjectName?: StringFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; + and?: ResourceDeclaredCapacityFilter[]; + /** Filter by the object’s `cpuLimitMillicores` field. */ + cpuLimitMillicores?: BigIntFilter; + /** Filter by the object’s `cpuRequestMillicores` field. */ + cpuRequestMillicores?: BigIntFilter; + /** Filter by the object’s `installationId` field. */ + installationId?: UUIDFilter; + /** Filter by the object’s `isTransient` field. */ + isTransient?: BooleanFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `memoryLimitBytes` field. */ + memoryLimitBytes?: BigIntFilter; + /** Filter by the object’s `memoryRequestBytes` field. */ + memoryRequestBytes?: BigIntFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ - not?: ResourcesResolvedRequirementFilter; + not?: ResourceDeclaredCapacityFilter; /** Checks for any expressions in this list. */ - or?: ResourcesResolvedRequirementFilter[]; - /** Filter by the object’s `present` field. */ - present?: BooleanFilter; - /** Filter by the object’s `realm` field. */ - realm?: StringFilter; - /** Filter by the object’s `required` field. */ - required?: BooleanFilter; - /** Filter by the object’s `requirementKind` field. */ - requirementKind?: StringFilter; - /** Filter by the object’s `resourceId` field. */ - resourceId?: UUIDFilter; - /** Filter by the object’s `secretsObjectName` field. */ - secretsObjectName?: StringFilter; - /** Filter by the object’s `slug` field. */ - slug?: StringFilter; + or?: ResourceDeclaredCapacityFilter[]; + /** Filter by the object’s `podCountMax` field. */ + podCountMax?: IntFilter; + /** Filter by the object’s `podCountMin` field. */ + podCountMin?: IntFilter; + /** Filter by the object’s `source` field. */ + source?: StringFilter; + /** Filter by the object’s `sourceId` field. */ + sourceId?: UUIDFilter; + /** Filter by the object’s `storageSizeBytes` field. */ + storageSizeBytes?: BigIntFilter; + /** Filter by the object’s `storageTotalBytes` field. */ + storageTotalBytes?: BigIntFilter; } -export interface WebhookEndpointFilter { - /** Filter by the object’s `active` field. */ - active?: BooleanFilter; +export interface ResourceDefinitionFilter { /** Checks for all expressions in this list. */ - and?: WebhookEndpointFilter[]; + and?: ResourceDefinitionFilter[]; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `createdBy` field. */ createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `functionDefinition` relation. */ - functionDefinition?: FunctionDefinitionFilter; - /** Filter by the object’s `functionDefinitionId` field. */ - functionDefinitionId?: UUIDFilter; - /** Filter by the object’s `host` field. */ - host?: StringFilter; + /** Filter by the object’s `defaultSpec` field. */ + defaultSpec?: JSONFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `integrations` field. */ + integrations?: StringListFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; /** Filter by the object’s `namespace` relation. */ namespace?: NamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ - not?: WebhookEndpointFilter; + not?: ResourceDefinitionFilter; /** Checks for any expressions in this list. */ - or?: WebhookEndpointFilter[]; - /** Filter by the object’s `path` field. */ - path?: StringFilter; - /** Filter by the object’s `provider` field. */ - provider?: StringFilter; - /** Filter by the object’s `replayWindowSeconds` field. */ - replayWindowSeconds?: IntFilter; - /** Filter by the object’s `signingSecretName` field. */ - signingSecretName?: StringFilter; + or?: ResourceDefinitionFilter[]; + /** Filter by the object’s `paramsSchema` field. */ + paramsSchema?: JSONFilter; + /** Filter by the object’s `resources` relation. */ + resources?: ResourceDefinitionToManyResourceFilter; + /** `resources` exist. */ + resourcesExist?: boolean; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `stepUpMinAge` field. */ + stepUpMinAge?: IntervalFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; /** Filter by the object’s `updatedBy` field. */ updatedBy?: UUIDFilter; - /** Filter by the object’s `webhookEventsByEndpointId` relation. */ - webhookEventsByEndpointId?: WebhookEndpointToManyWebhookEventFilter; - /** `webhookEventsByEndpointId` exist. */ - webhookEventsByEndpointIdExist?: boolean; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface WebhookEventFilter { +export interface ResourceEventFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: WebhookEventFilter[]; + and?: ResourceEventFilter[]; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `endpoint` relation. */ - endpoint?: WebhookEndpointFilter; - /** Filter by the object’s `endpointId` field. */ - endpointId?: UUIDFilter; - /** Filter by the object’s `error` field. */ - error?: StringFilter; - /** Filter by the object’s `externalEventId` field. */ - externalEventId?: StringFilter; + /** Filter by the object’s `eventType` field. */ + eventType?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `invocationCreatedAt` field. */ - invocationCreatedAt?: DatetimeFilter; - /** Filter by the object’s `invocationId` field. */ - invocationId?: UUIDFilter; + /** Filter by the object’s `message` field. */ + message?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; /** Negates the expression. */ - not?: WebhookEventFilter; + not?: ResourceEventFilter; /** Checks for any expressions in this list. */ - or?: WebhookEventFilter[]; - /** Filter by the object’s `payload` field. */ - payload?: JSONFilter; - /** Filter by the object’s `provider` field. */ - provider?: StringFilter; - /** Filter by the object’s `providerTimestamp` field. */ - providerTimestamp?: DatetimeFilter; + or?: ResourceEventFilter[]; + /** Filter by the object’s `resourceId` field. */ + resourceId?: UUIDFilter; +} +export interface ResourceInstallationFilter { + /** Checks for all expressions in this list. */ + and?: ResourceInstallationFilter[]; + /** Filter by the object’s `commitId` field. */ + commitId?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: ResourceInstallationFilter; + /** Checks for any expressions in this list. */ + or?: ResourceInstallationFilter[]; + /** Filter by the object’s `params` field. */ + params?: JSONFilter; + /** Filter by the object’s `registriesByInstallationId` relation. */ + registriesByInstallationId?: ResourceInstallationToManyRegistryFilter; + /** `registriesByInstallationId` exist. */ + registriesByInstallationIdExist?: boolean; + /** Filter by the object’s `resourcesByInstallationId` relation. */ + resourcesByInstallationId?: ResourceInstallationToManyResourceFilter; + /** `resourcesByInstallationId` exist. */ + resourcesByInstallationIdExist?: boolean; + /** Filter by the object’s `revision` field. */ + revision?: IntFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; /** Filter by the object’s `status` field. */ status?: StringFilter; + /** Filter by the object’s `storeId` field. */ + storeId?: UUIDFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -// ============ 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' - | 'COMMIT_ID_ASC' - | 'COMMIT_ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'DEFINITION_ASC' - | 'DEFINITION_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'LABEL_ASC' - | 'LABEL_DESC' - | 'MODULES_HASH_ASC' - | 'MODULES_HASH_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 FunctionApiBindingOrderBy = - | 'ALIAS_ASC' - | 'ALIAS_DESC' - | 'API_ID_ASC' - | 'API_ID_DESC' - | 'CONFIG_ASC' - | 'CONFIG_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'FUNCTION_DEFINITION_ID_ASC' - | 'FUNCTION_DEFINITION_ID_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type FunctionCapabilityBindingOrderBy = - | 'BUCKET_ID_ASC' - | 'BUCKET_ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'FUNCTION_ID_ASC' - | 'FUNCTION_ID_DESC' - | 'GRAPH_ID_ASC' - | 'GRAPH_ID_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'KEY_ASC' - | 'KEY_DESC' - | 'LIFECYCLE_ASC' - | 'LIFECYCLE_DESC' - | 'METADATA_ASC' - | 'METADATA_DESC' - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type FunctionDefinitionOrderBy = - | 'ACCESS_CHANNELS_ASC' - | 'ACCESS_CHANNELS_DESC' - | 'CATEGORY_ASC' - | 'CATEGORY_DESC' - | 'CONCURRENCY_ASC' - | 'CONCURRENCY_DESC' - | 'CPU_LIMIT_MILLICORES_ASC' - | 'CPU_LIMIT_MILLICORES_DESC' - | 'CPU_REQUEST_MILLICORES_ASC' - | 'CPU_REQUEST_MILLICORES_DESC' - | 'CREATED_AT_ASC' +export interface ResourceObservedStorageFilter { + /** Checks for all expressions in this list. */ + and?: ResourceObservedStorageFilter[]; + /** Filter by the object’s `capacity` field. */ + capacity?: StringFilter; + /** Filter by the object’s `capacityBytes` field. */ + capacityBytes?: BigIntFilter; + /** Filter by the object’s `claimName` field. */ + claimName?: StringFilter; + /** Filter by the object’s `declaredStorageClass` field. */ + declaredStorageClass?: StringFilter; + /** Filter by the object’s `declaredStorageSizeBytes` field. */ + declaredStorageSizeBytes?: BigIntFilter; + /** Filter by the object’s `declaredStorageTotalBytes` field. */ + declaredStorageTotalBytes?: BigIntFilter; + /** Filter by the object’s `installationId` field. */ + installationId?: UUIDFilter; + /** Filter by the object’s `isBound` field. */ + isBound?: BooleanFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: ResourceObservedStorageFilter; + /** Checks for any expressions in this list. */ + or?: ResourceObservedStorageFilter[]; + /** Filter by the object’s `phase` field. */ + phase?: StringFilter; + /** Filter by the object’s `requested` field. */ + requested?: StringFilter; + /** Filter by the object’s `requestedBytes` field. */ + requestedBytes?: BigIntFilter; + /** Filter by the object’s `resourceId` field. */ + resourceId?: UUIDFilter; + /** Filter by the object’s `resourceStatus` field. */ + resourceStatus?: StringFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `storageClass` field. */ + storageClass?: StringFilter; + /** Filter by the object’s `storageName` field. */ + storageName?: StringFilter; +} +export interface ResourceStatusCheckFilter { + /** Checks for all expressions in this list. */ + and?: ResourceStatusCheckFilter[]; + /** Filter by the object’s `completedAt` field. */ + completedAt?: DatetimeFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: ResourceStatusCheckFilter; + /** Checks for any expressions in this list. */ + or?: ResourceStatusCheckFilter[]; + /** Filter by the object’s `requestedAt` field. */ + requestedAt?: DatetimeFilter; + /** Filter by the object’s `requestedBy` field. */ + requestedBy?: UUIDFilter; + /** Filter by the object’s `resource` relation. */ + resource?: ResourceFilter; + /** Filter by the object’s `resourceId` field. */ + resourceId?: UUIDFilter; + /** Filter by the object’s `result` field. */ + result?: JSONFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; +} +export interface ResourceUsageLogFilter { + /** Checks for all expressions in this list. */ + and?: ResourceUsageLogFilter[]; + /** Filter by the object’s `cpuMillicores` field. */ + cpuMillicores?: BigIntFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `intervalSeconds` field. */ + intervalSeconds?: IntFilter; + /** Filter by the object’s `memoryBytes` field. */ + memoryBytes?: BigIntFilter; + /** Filter by the object’s `metrics` field. */ + metrics?: JSONFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: ResourceUsageLogFilter; + /** Checks for any expressions in this list. */ + or?: ResourceUsageLogFilter[]; + /** Filter by the object’s `resourceId` field. */ + resourceId?: UUIDFilter; + /** Filter by the object’s `sampledAt` field. */ + sampledAt?: DatetimeFilter; + /** Filter by the object’s `source` field. */ + source?: StringFilter; +} +export interface ResourceUsageSummaryFilter { + /** Checks for all expressions in this list. */ + and?: ResourceUsageSummaryFilter[]; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `date` field. */ + date?: DateFilter; + /** Filter by the object’s `gbSeconds` field. */ + gbSeconds?: BigFloatFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `maxCpuMillicores` field. */ + maxCpuMillicores?: BigIntFilter; + /** Filter by the object’s `maxMemoryBytes` field. */ + maxMemoryBytes?: BigIntFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: ResourceUsageSummaryFilter; + /** Checks for any expressions in this list. */ + or?: ResourceUsageSummaryFilter[]; + /** Filter by the object’s `resourceId` field. */ + resourceId?: UUIDFilter; + /** Filter by the object’s `runtimeSeconds` field. */ + runtimeSeconds?: BigIntFilter; + /** Filter by the object’s `sampleCount` field. */ + sampleCount?: IntFilter; +} +export interface ResourceUtilizationFilter { + /** Checks for all expressions in this list. */ + and?: ResourceUtilizationFilter[]; + /** Filter by the object’s `avgMemoryBytes` field. */ + avgMemoryBytes?: BigIntFilter; + /** Filter by the object’s `cpuLimitMillicores` field. */ + cpuLimitMillicores?: BigIntFilter; + /** Filter by the object’s `cpuPeakUtilization` field. */ + cpuPeakUtilization?: BigFloatFilter; + /** Filter by the object’s `cpuRequestHeadroomMillicores` field. */ + cpuRequestHeadroomMillicores?: BigIntFilter; + /** Filter by the object’s `cpuRequestMillicores` field. */ + cpuRequestMillicores?: BigIntFilter; + /** Filter by the object’s `date` field. */ + date?: DateFilter; + /** Filter by the object’s `gbSeconds` field. */ + gbSeconds?: BigFloatFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `maxCpuMillicores` field. */ + maxCpuMillicores?: BigIntFilter; + /** Filter by the object’s `maxMemoryBytes` field. */ + maxMemoryBytes?: BigIntFilter; + /** Filter by the object’s `memoryLimitBytes` field. */ + memoryLimitBytes?: BigIntFilter; + /** Filter by the object’s `memoryPeakUtilization` field. */ + memoryPeakUtilization?: BigFloatFilter; + /** Filter by the object’s `memoryRequestBytes` field. */ + memoryRequestBytes?: BigIntFilter; + /** Filter by the object’s `memoryRequestHeadroomBytes` field. */ + memoryRequestHeadroomBytes?: BigIntFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: ResourceUtilizationFilter; + /** Checks for any expressions in this list. */ + or?: ResourceUtilizationFilter[]; + /** Filter by the object’s `replicas` field. */ + replicas?: IntFilter; + /** Filter by the object’s `resourceId` field. */ + resourceId?: UUIDFilter; + /** Filter by the object’s `runtimeSeconds` field. */ + runtimeSeconds?: BigIntFilter; + /** Filter by the object’s `sampleCount` field. */ + sampleCount?: IntFilter; +} +export interface ResourcesHealthFilter { + /** Checks for all expressions in this list. */ + and?: ResourcesHealthFilter[]; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Filter by the object’s `cpuLimitMillicores` field. */ + cpuLimitMillicores?: BigIntFilter; + /** Filter by the object’s `cpuRequestMillicores` field. */ + cpuRequestMillicores?: BigIntFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `errorCount` field. */ + errorCount?: IntFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `imageRef` field. */ + imageRef?: StringFilter; + /** Filter by the object’s `installationId` field. */ + installationId?: UUIDFilter; + /** Filter by the object’s `integrations` field. */ + integrations?: StringListFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `lastHeartbeatAt` field. */ + lastHeartbeatAt?: DatetimeFilter; + /** Filter by the object’s `memoryLimitBytes` field. */ + memoryLimitBytes?: BigIntFilter; + /** Filter by the object’s `memoryRequestBytes` field. */ + memoryRequestBytes?: BigIntFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: ResourcesHealthFilter; + /** Checks for any expressions in this list. */ + or?: ResourcesHealthFilter[]; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; + /** Filter by the object’s `replicas` field. */ + replicas?: IntFilter; + /** Filter by the object’s `resourceDefinitionId` field. */ + resourceDefinitionId?: UUIDFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `spec` field. */ + spec?: JSONFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `statusDetail` field. */ + statusDetail?: StringFilter; + /** Filter by the object’s `statusObserved` field. */ + statusObserved?: JSONFilter; + /** Filter by the object’s `storageClass` field. */ + storageClass?: StringFilter; + /** Filter by the object’s `storageSizeBytes` field. */ + storageSizeBytes?: BigIntFilter; + /** Filter by the object’s `storageTotalBytes` field. */ + storageTotalBytes?: BigIntFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} +export interface ResourcesRequirementsStateFilter { + /** Checks for all expressions in this list. */ + and?: ResourcesRequirementsStateFilter[]; + /** Filter by the object’s `configHash` field. */ + configHash?: StringFilter; + /** Filter by the object’s `configObjectName` field. */ + configObjectName?: StringFilter; + /** Negates the expression. */ + not?: ResourcesRequirementsStateFilter; + /** Checks for any expressions in this list. */ + or?: ResourcesRequirementsStateFilter[]; + /** Filter by the object’s `requirementsHash` field. */ + requirementsHash?: StringFilter; + /** Filter by the object’s `resourceId` field. */ + resourceId?: UUIDFilter; + /** Filter by the object’s `secretsHash` field. */ + secretsHash?: StringFilter; + /** Filter by the object’s `secretsObjectName` field. */ + secretsObjectName?: StringFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; +} +export interface ResourcesResolvedRequirementFilter { + /** Checks for all expressions in this list. */ + and?: ResourcesResolvedRequirementFilter[]; + /** Filter by the object’s `atomId` field. */ + atomId?: UUIDFilter; + /** Filter by the object’s `configObjectName` field. */ + configObjectName?: StringFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: ResourcesResolvedRequirementFilter; + /** Checks for any expressions in this list. */ + or?: ResourcesResolvedRequirementFilter[]; + /** Filter by the object’s `present` field. */ + present?: BooleanFilter; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; + /** Filter by the object’s `required` field. */ + required?: BooleanFilter; + /** Filter by the object’s `requirementKind` field. */ + requirementKind?: StringFilter; + /** Filter by the object’s `resourceId` field. */ + resourceId?: UUIDFilter; + /** Filter by the object’s `secretsObjectName` field. */ + secretsObjectName?: StringFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; +} +export interface WebhookEndpointFilter { + /** Filter by the object’s `active` field. */ + active?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: WebhookEndpointFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `functionDefinition` relation. */ + functionDefinition?: FunctionDefinitionFilter; + /** Filter by the object’s `functionDefinitionId` field. */ + functionDefinitionId?: UUIDFilter; + /** Filter by the object’s `host` field. */ + host?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: WebhookEndpointFilter; + /** Checks for any expressions in this list. */ + or?: WebhookEndpointFilter[]; + /** Filter by the object’s `path` field. */ + path?: StringFilter; + /** Filter by the object’s `provider` field. */ + provider?: StringFilter; + /** Filter by the object’s `replayWindowSeconds` field. */ + replayWindowSeconds?: IntFilter; + /** Filter by the object’s `signingSecretName` field. */ + signingSecretName?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** Filter by the object’s `webhookEventsByEndpointId` relation. */ + webhookEventsByEndpointId?: WebhookEndpointToManyWebhookEventFilter; + /** `webhookEventsByEndpointId` exist. */ + webhookEventsByEndpointIdExist?: boolean; +} +export interface WebhookEventFilter { + /** Checks for all expressions in this list. */ + and?: WebhookEventFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `endpoint` relation. */ + endpoint?: WebhookEndpointFilter; + /** Filter by the object’s `endpointId` field. */ + endpointId?: UUIDFilter; + /** Filter by the object’s `error` field. */ + error?: StringFilter; + /** Filter by the object’s `externalEventId` field. */ + externalEventId?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `invocationCreatedAt` field. */ + invocationCreatedAt?: DatetimeFilter; + /** Filter by the object’s `invocationId` field. */ + invocationId?: UUIDFilter; + /** Negates the expression. */ + not?: WebhookEventFilter; + /** Checks for any expressions in this list. */ + or?: WebhookEventFilter[]; + /** Filter by the object’s `payload` field. */ + payload?: JSONFilter; + /** Filter by the object’s `provider` field. */ + provider?: StringFilter; + /** Filter by the object’s `providerTimestamp` field. */ + providerTimestamp?: DatetimeFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} +// ============ OrderBy Types ============ +export type BuildOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'ATTEMPT_ASC' + | 'ATTEMPT_DESC' + | 'COMMIT_SHA_ASC' + | 'COMMIT_SHA_DESC' + | 'CONCLUSION_ASC' + | 'CONCLUSION_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'EVENT_ID_ASC' + | 'EVENT_ID_DESC' + | 'FINISHED_AT_ASC' + | 'FINISHED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IMAGE_REF_ASC' + | 'IMAGE_REF_DESC' + | 'JOB_ID_ASC' + | 'JOB_ID_DESC' + | 'LOGS_ASC' + | 'LOGS_DESC' + | 'MATRIX_KEY_ASC' + | 'MATRIX_KEY_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PROPOSAL_ID_ASC' + | 'PROPOSAL_ID_DESC' + | 'REF_ASC' + | 'REF_DESC' + | 'REPOSITORY_ID_ASC' + | 'REPOSITORY_ID_DESC' + | 'STARTED_AT_ASC' + | 'STARTED_AT_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC' + | 'WORKFLOW_ID_ASC' + | 'WORKFLOW_ID_DESC'; +export type BuildStepOrderBy = + | 'BUILD_ID_ASC' + | 'BUILD_ID_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'EXIT_CODE_ASC' + | 'EXIT_CODE_DESC' + | 'FINISHED_AT_ASC' + | 'FINISHED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'KIND_ASC' + | 'KIND_DESC' + | 'LOG_BYTES_ASC' + | 'LOG_BYTES_DESC' + | 'LOG_OFFSET_ASC' + | 'LOG_OFFSET_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'PARENT_SEQ_ASC' + | 'PARENT_SEQ_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'RECORDED_AT_ASC' + | 'RECORDED_AT_DESC' + | 'SEQ_ASC' + | 'SEQ_DESC' + | 'STARTED_AT_ASC' + | 'STARTED_AT_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'SUMMARY_ASC' + | 'SUMMARY_DESC'; +export type BuilderBindingOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'INSTALLATION_ID_ASC' + | 'INSTALLATION_ID_DESC' + | 'LAST_ERROR_ASC' + | 'LAST_ERROR_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'NATURAL' + | 'OBSERVED_HOST_ASC' + | 'OBSERVED_HOST_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'REALM_ASC' + | 'REALM_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +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 DatabaseFunctionGraphOrderBy = + | 'CONTEXT_ASC' + | 'CONTEXT_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DEFINITIONS_COMMIT_ID_ASC' + | 'DEFINITIONS_COMMIT_ID_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_VALID_ASC' + | 'IS_VALID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'STORE_ID_ASC' + | 'STORE_ID_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'VALIDATION_ERRORS_ASC' + | 'VALIDATION_ERRORS_DESC'; +export type DatabaseFunctionGraphExecutionOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'COMPLETED_AT_ASC' + | 'COMPLETED_AT_DESC' + | 'CURRENT_WAVE_ASC' + | 'CURRENT_WAVE_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DEFINITIONS_COMMIT_ID_ASC' + | 'DEFINITIONS_COMMIT_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'ENTITY_TYPE_ASC' + | 'ENTITY_TYPE_DESC' + | 'ERROR_CODE_ASC' + | 'ERROR_CODE_DESC' + | 'ERROR_MESSAGE_ASC' + | 'ERROR_MESSAGE_DESC' + | 'EXECUTION_PLAN_ASC' + | 'EXECUTION_PLAN_DESC' + | 'GRAPH_ID_ASC' + | 'GRAPH_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'INPUT_PAYLOAD_ASC' + | 'INPUT_PAYLOAD_DESC' + | 'INVOCATION_CREATED_AT_ASC' + | 'INVOCATION_CREATED_AT_DESC' + | 'INVOCATION_ID_ASC' + | 'INVOCATION_ID_DESC' + | 'LAST_PROGRESS_AT_ASC' + | 'LAST_PROGRESS_AT_DESC' + | 'MAX_PENDING_JOBS_ASC' + | 'MAX_PENDING_JOBS_DESC' + | 'MAX_TICKS_ASC' + | 'MAX_TICKS_DESC' + | 'NATURAL' + | 'NODE_OUTPUTS_ASC' + | 'NODE_OUTPUTS_DESC' + | 'ORGANIZATION_ID_ASC' + | 'ORGANIZATION_ID_DESC' + | 'OUTPUT_NAMES_ASC' + | 'OUTPUT_NAMES_DESC' + | 'OUTPUT_NODE_ASC' + | 'OUTPUT_NODE_DESC' + | 'OUTPUT_PAYLOAD_ASC' + | 'OUTPUT_PAYLOAD_DESC' + | 'OUTPUT_PORT_ASC' + | 'OUTPUT_PORT_DESC' + | 'PARENT_EXECUTION_ID_ASC' + | 'PARENT_EXECUTION_ID_DESC' + | 'PARENT_INVOCATION_ID_ASC' + | 'PARENT_INVOCATION_ID_DESC' + | 'PARENT_NODE_NAME_ASC' + | 'PARENT_NODE_NAME_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PRINCIPAL_ID_ASC' + | 'PRINCIPAL_ID_DESC' + | 'STARTED_AT_ASC' + | 'STARTED_AT_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'TICK_COUNT_ASC' + | 'TICK_COUNT_DESC' + | 'TIMEOUT_AT_ASC' + | 'TIMEOUT_AT_DESC'; +export type DatabaseFunctionGraphExecutionNodeStateOrderBy = + | 'CALLBACK_INPUTS_ASC' + | 'CALLBACK_INPUTS_DESC' + | 'CALLBACK_META_ASC' + | 'CALLBACK_META_DESC' + | 'CALLBACK_TOKEN_HASH_ASC' + | 'CALLBACK_TOKEN_HASH_DESC' + | 'COMPLETED_AT_ASC' + | 'COMPLETED_AT_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ERROR_CODE_ASC' + | 'ERROR_CODE_DESC' + | 'ERROR_MESSAGE_ASC' + | 'ERROR_MESSAGE_DESC' + | 'EXECUTION_ID_ASC' + | 'EXECUTION_ID_DESC' + | 'EXPIRY_DEFAULT_OUTPUT_ASC' + | 'EXPIRY_DEFAULT_OUTPUT_DESC' + | 'EXPIRY_ESCALATED_AT_ASC' + | 'EXPIRY_ESCALATED_AT_DESC' + | 'EXPIRY_POLICY_ASC' + | 'EXPIRY_POLICY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' + | 'NODE_NAME_ASC' + | 'NODE_NAME_DESC' + | 'NODE_PATH_ASC' + | 'NODE_PATH_DESC' + | 'OUTPUT_ID_ASC' + | 'OUTPUT_ID_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'STARTED_AT_ASC' + | 'STARTED_AT_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'WAITING_DEADLINE_AT_ASC' + | 'WAITING_DEADLINE_AT_DESC' + | 'WAITING_ON_ASC' + | 'WAITING_ON_DESC' + | 'WAITING_SINCE_ASC' + | 'WAITING_SINCE_DESC'; +export type DatabaseFunctionGraphExecutionOutputOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DATA_ASC' + | 'DATA_DESC' + | 'HASH_ASC' + | 'HASH_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC'; +export type DatabaseGraphCommitOrderBy = + | 'AUTHOR_ID_ASC' + | 'AUTHOR_ID_DESC' + | 'COMMITTER_ID_ASC' + | 'COMMITTER_ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DATE_ASC' + | 'DATE_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'MESSAGE_ASC' + | 'MESSAGE_DESC' + | 'NATURAL' + | 'PARENT_IDS_ASC' + | 'PARENT_IDS_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'STORE_ID_ASC' + | 'STORE_ID_DESC' + | 'TREE_ID_ASC' + | 'TREE_ID_DESC'; +export type DatabaseGraphGetAllTreeNodesRecordsOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'DATA_ASC' + | 'DATA_DESC' + | 'PATH_ASC' + | 'PATH_DESC'; +export type DatabaseGraphObjectOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DATA_ASC' + | 'DATA_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'KIDS_ASC' + | 'KIDS_DESC' + | 'KTREE_ASC' + | 'KTREE_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC'; +export type DatabaseGraphRefOrderBy = + | 'COMMIT_ID_ASC' + | 'COMMIT_ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'STORE_ID_ASC' + | 'STORE_ID_DESC'; +export type DatabaseGraphStoreOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'HASH_ASC' + | 'HASH_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC'; +export type DbPresetOrderBy = + | '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' + | 'LABEL_ASC' + | 'LABEL_DESC' + | 'MODULES_HASH_ASC' + | 'MODULES_HASH_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 FunctionApiBindingOrderBy = + | 'ALIAS_ASC' + | 'ALIAS_DESC' + | 'API_ID_ASC' + | 'API_ID_DESC' + | 'CONFIG_ASC' + | 'CONFIG_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'FUNCTION_DEFINITION_ID_ASC' + | 'FUNCTION_DEFINITION_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type FunctionCapabilityBindingOrderBy = + | 'BUCKET_ID_ASC' + | 'BUCKET_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'FUNCTION_ID_ASC' + | 'FUNCTION_ID_DESC' + | 'GRAPH_ID_ASC' + | 'GRAPH_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'KEY_ASC' + | 'KEY_DESC' + | 'LIFECYCLE_ASC' + | 'LIFECYCLE_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type FunctionDefinitionOrderBy = + | 'ACCESS_CHANNELS_ASC' + | 'ACCESS_CHANNELS_DESC' + | 'ANONYMOUS_CALLABLE_ASC' + | 'ANONYMOUS_CALLABLE_DESC' + | 'CATEGORY_ASC' + | 'CATEGORY_DESC' + | 'CONCURRENCY_ASC' + | 'CONCURRENCY_DESC' + | 'CPU_LIMIT_MILLICORES_ASC' + | 'CPU_LIMIT_MILLICORES_DESC' + | 'CPU_REQUEST_MILLICORES_ASC' + | 'CPU_REQUEST_MILLICORES_DESC' + | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'DESCRIPTION_ASC' @@ -6160,6 +12113,8 @@ export type FunctionDefinitionOrderBy = | 'QUEUE_NAME_DESC' | 'REQUIRED_BUCKETS_ASC' | 'REQUIRED_BUCKETS_DESC' + | 'REQUIRED_CAPABILITIES_ASC' + | 'REQUIRED_CAPABILITIES_DESC' | 'REQUIRED_CONFIGS_ASC' | 'REQUIRED_CONFIGS_DESC' | 'REQUIRED_MODELS_ASC' @@ -6186,6 +12141,8 @@ export type FunctionDefinitionOrderBy = | 'TIMEOUT_SECONDS_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC' | 'VOLATILE_ASC' | 'VOLATILE_DESC'; export type FunctionDeploymentOrderBy = @@ -6195,6 +12152,8 @@ export type FunctionDeploymentOrderBy = | 'CONCURRENCY_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'ERROR_COUNT_ASC' @@ -6237,7 +12196,9 @@ export type FunctionDeploymentOrderBy = | 'TIMEOUT_SECONDS_ASC' | 'TIMEOUT_SECONDS_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; export type FunctionDeploymentEventOrderBy = | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' @@ -6415,6 +12376,12 @@ export type FunctionGraphExecutionNodeStateOrderBy = | 'ERROR_MESSAGE_DESC' | 'EXECUTION_ID_ASC' | 'EXECUTION_ID_DESC' + | 'EXPIRY_DEFAULT_OUTPUT_ASC' + | 'EXPIRY_DEFAULT_OUTPUT_DESC' + | 'EXPIRY_ESCALATED_AT_ASC' + | 'EXPIRY_ESCALATED_AT_DESC' + | 'EXPIRY_POLICY_ASC' + | 'EXPIRY_POLICY_DESC' | 'ID_ASC' | 'ID_DESC' | 'NATURAL' @@ -6431,7 +12398,13 @@ export type FunctionGraphExecutionNodeStateOrderBy = | 'STARTED_AT_ASC' | 'STARTED_AT_DESC' | 'STATUS_ASC' - | 'STATUS_DESC'; + | 'STATUS_DESC' + | 'WAITING_DEADLINE_AT_ASC' + | 'WAITING_DEADLINE_AT_DESC' + | 'WAITING_ON_ASC' + | 'WAITING_ON_DESC' + | 'WAITING_SINCE_ASC' + | 'WAITING_SINCE_DESC'; export type FunctionGraphExecutionOutputOrderBy = | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' @@ -6531,12 +12504,18 @@ export type FunctionInvocationOrderBy = | 'COMPLETED_AT_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'DEFINITION_SCOPE_ASC' | 'DEFINITION_SCOPE_DESC' | 'DURATION_MS_ASC' | 'DURATION_MS_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'ENTITY_TYPE_ASC' + | 'ENTITY_TYPE_DESC' | 'ERROR_ASC' | 'ERROR_DESC' | 'FUNCTION_DEFINITION_ID_ASC' @@ -6548,12 +12527,16 @@ export type FunctionInvocationOrderBy = | 'JOB_ID_ASC' | 'JOB_ID_DESC' | 'NATURAL' + | 'ORGANIZATION_ID_ASC' + | 'ORGANIZATION_ID_DESC' | 'PARENT_INVOCATION_ID_ASC' | 'PARENT_INVOCATION_ID_DESC' | 'PAYLOAD_ASC' | 'PAYLOAD_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' + | 'PRINCIPAL_ID_ASC' + | 'PRINCIPAL_ID_DESC' | 'PROVENANCE_ASC' | 'PROVENANCE_DESC' | 'RESULT_ASC' @@ -6572,6 +12555,76 @@ export type GetAllTreeNodesRecordsOrderBy = | 'DATA_DESC' | 'PATH_ASC' | 'PATH_DESC'; +export type ImageOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'DIGEST_ASC' + | 'DIGEST_DESC' + | 'EXPIRES_AT_ASC' + | 'EXPIRES_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_PUBLISHED_ASC' + | 'IS_PUBLISHED_DESC' + | 'LABELS_ASC' + | 'LABELS_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'PLATFORM_ONLY_ASC' + | 'PLATFORM_ONLY_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'REGISTRY_HOST_ASC' + | 'REGISTRY_HOST_DESC' + | 'REPOSITORY_ASC' + | 'REPOSITORY_DESC' + | 'RUNTIME_ASC' + | 'RUNTIME_DESC' + | 'TAG_ASC' + | 'TAG_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +export type ImageGrantOrderBy = + | 'ACTIONS_ASC' + | 'ACTIONS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'EXPIRES_AT_ASC' + | 'EXPIRES_AT_DESC' + | 'GRANTED_BY_ASC' + | 'GRANTED_BY_DESC' + | 'GRANTEE_KEY_ASC' + | 'GRANTEE_KEY_DESC' + | 'GRANTEE_SCOPE_ASC' + | 'GRANTEE_SCOPE_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IMAGE_ID_ASC' + | 'IMAGE_ID_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; export type InfraCommitOrderBy = | 'AUTHOR_ID_ASC' | 'AUTHOR_ID_DESC' @@ -6677,6 +12730,8 @@ export type IntegrationProviderOrderBy = export type NamespaceOrderBy = | 'ANNOTATIONS_ASC' | 'ANNOTATIONS_DESC' + | 'CLUSTER_ID_ASC' + | 'CLUSTER_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'DATABASE_ID_ASC' @@ -6724,6 +12779,120 @@ export type NamespaceEventOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC'; +export type PlatformBuildOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'ATTEMPT_ASC' + | 'ATTEMPT_DESC' + | 'COMMIT_SHA_ASC' + | 'COMMIT_SHA_DESC' + | 'CONCLUSION_ASC' + | 'CONCLUSION_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'EVENT_ID_ASC' + | 'EVENT_ID_DESC' + | 'FINISHED_AT_ASC' + | 'FINISHED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IMAGE_REF_ASC' + | 'IMAGE_REF_DESC' + | 'JOB_ID_ASC' + | 'JOB_ID_DESC' + | 'LOGS_ASC' + | 'LOGS_DESC' + | 'MATRIX_KEY_ASC' + | 'MATRIX_KEY_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PROPOSAL_ID_ASC' + | 'PROPOSAL_ID_DESC' + | 'REF_ASC' + | 'REF_DESC' + | 'REPOSITORY_ID_ASC' + | 'REPOSITORY_ID_DESC' + | 'STARTED_AT_ASC' + | 'STARTED_AT_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC' + | 'WORKFLOW_ID_ASC' + | 'WORKFLOW_ID_DESC'; +export type PlatformBuildStepOrderBy = + | 'BUILD_ID_ASC' + | 'BUILD_ID_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'EXIT_CODE_ASC' + | 'EXIT_CODE_DESC' + | 'FINISHED_AT_ASC' + | 'FINISHED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'KIND_ASC' + | 'KIND_DESC' + | 'LOG_BYTES_ASC' + | 'LOG_BYTES_DESC' + | 'LOG_OFFSET_ASC' + | 'LOG_OFFSET_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'PARENT_SEQ_ASC' + | 'PARENT_SEQ_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'RECORDED_AT_ASC' + | 'RECORDED_AT_DESC' + | 'SEQ_ASC' + | 'SEQ_DESC' + | 'STARTED_AT_ASC' + | 'STARTED_AT_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'SUMMARY_ASC' + | 'SUMMARY_DESC'; +export type PlatformBuilderBindingOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'INSTALLATION_ID_ASC' + | 'INSTALLATION_ID_DESC' + | 'LAST_ERROR_ASC' + | 'LAST_ERROR_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'NATURAL' + | 'OBSERVED_HOST_ASC' + | 'OBSERVED_HOST_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'REALM_ASC' + | 'REALM_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; export type PlatformFunctionApiBindingOrderBy = | 'ALIAS_ASC' | 'ALIAS_DESC' @@ -6767,6 +12936,8 @@ export type PlatformFunctionCapabilityBindingOrderBy = export type PlatformFunctionDefinitionOrderBy = | 'ACCESS_CHANNELS_ASC' | 'ACCESS_CHANNELS_DESC' + | 'ANONYMOUS_CALLABLE_ASC' + | 'ANONYMOUS_CALLABLE_DESC' | 'BILLABLE_ASC' | 'BILLABLE_DESC' | 'CATEGORY_ASC' @@ -6779,6 +12950,8 @@ export type PlatformFunctionDefinitionOrderBy = | 'CPU_REQUEST_MILLICORES_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' | 'FN_CATEGORY_ASC' @@ -6828,6 +13001,8 @@ export type PlatformFunctionDefinitionOrderBy = | 'QUEUE_NAME_DESC' | 'REQUIRED_BUCKETS_ASC' | 'REQUIRED_BUCKETS_DESC' + | 'REQUIRED_CAPABILITIES_ASC' + | 'REQUIRED_CAPABILITIES_DESC' | 'REQUIRED_CONFIGS_ASC' | 'REQUIRED_CONFIGS_DESC' | 'REQUIRED_MODELS_ASC' @@ -6856,6 +13031,8 @@ export type PlatformFunctionDefinitionOrderBy = | 'TIMEOUT_SECONDS_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC' | 'VOLATILE_ASC' | 'VOLATILE_DESC'; export type PlatformFunctionDeploymentOrderBy = @@ -6865,6 +13042,8 @@ export type PlatformFunctionDeploymentOrderBy = | 'CONCURRENCY_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'ERROR_COUNT_ASC' | 'ERROR_COUNT_DESC' | 'HANDLER_NAME_ASC' @@ -6905,7 +13084,9 @@ export type PlatformFunctionDeploymentOrderBy = | 'TIMEOUT_SECONDS_ASC' | 'TIMEOUT_SECONDS_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; export type PlatformFunctionDeploymentEventOrderBy = | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' @@ -6983,12 +13164,18 @@ export type PlatformFunctionInvocationOrderBy = | 'COMPLETED_AT_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'DEFINITION_SCOPE_ASC' | 'DEFINITION_SCOPE_DESC' | 'DURATION_MS_ASC' | 'DURATION_MS_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'ENTITY_TYPE_ASC' + | 'ENTITY_TYPE_DESC' | 'ERROR_ASC' | 'ERROR_DESC' | 'FUNCTION_DEFINITION_ID_ASC' @@ -7000,12 +13187,16 @@ export type PlatformFunctionInvocationOrderBy = | 'JOB_ID_ASC' | 'JOB_ID_DESC' | 'NATURAL' + | 'ORGANIZATION_ID_ASC' + | 'ORGANIZATION_ID_DESC' | 'PARENT_INVOCATION_ID_ASC' | 'PARENT_INVOCATION_ID_DESC' | 'PAYLOAD_ASC' | 'PAYLOAD_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' + | 'PRINCIPAL_ID_ASC' + | 'PRINCIPAL_ID_DESC' | 'PROVENANCE_ASC' | 'PROVENANCE_DESC' | 'RESULT_ASC' @@ -7016,6 +13207,72 @@ export type PlatformFunctionInvocationOrderBy = | 'STATUS_DESC' | 'TASK_IDENTIFIER_ASC' | 'TASK_IDENTIFIER_DESC'; +export type PlatformImageOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'DIGEST_ASC' + | 'DIGEST_DESC' + | 'EXPIRES_AT_ASC' + | 'EXPIRES_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_PUBLISHED_ASC' + | 'IS_PUBLISHED_DESC' + | 'LABELS_ASC' + | 'LABELS_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'PLATFORM_ONLY_ASC' + | 'PLATFORM_ONLY_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'REGISTRY_HOST_ASC' + | 'REGISTRY_HOST_DESC' + | 'REPOSITORY_ASC' + | 'REPOSITORY_DESC' + | 'RUNTIME_ASC' + | 'RUNTIME_DESC' + | 'TAG_ASC' + | 'TAG_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +export type PlatformImageGrantOrderBy = + | 'ACTIONS_ASC' + | 'ACTIONS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'EXPIRES_AT_ASC' + | 'EXPIRES_AT_DESC' + | 'GRANTED_BY_ASC' + | 'GRANTED_BY_DESC' + | 'GRANTEE_KEY_ASC' + | 'GRANTEE_KEY_DESC' + | 'GRANTEE_SCOPE_ASC' + | 'GRANTEE_SCOPE_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IMAGE_ID_ASC' + | 'IMAGE_ID_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; export type PlatformInfraCommitOrderBy = | 'AUTHOR_ID_ASC' | 'AUTHOR_ID_DESC' @@ -7090,9 +13347,59 @@ export type PlatformInfraStoreOrderBy = | 'PRIMARY_KEY_DESC' | 'SCOPE_ID_ASC' | 'SCOPE_ID_DESC'; +export type PlatformK8sResourceKindOrderBy = + | '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' + | '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 PlatformK8sSpecRuleOrderBy = + | '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' + | '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 PlatformNamespaceOrderBy = | 'ANNOTATIONS_ASC' | 'ANNOTATIONS_DESC' + | 'CLUSTER_ID_ASC' + | 'CLUSTER_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'DESCRIPTION_ASC' @@ -7114,28 +13421,532 @@ export type PlatformNamespaceOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'STATUS_ASC' - | 'STATUS_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type PlatformNamespaceEventOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'EVENT_TYPE_ASC' + | 'EVENT_TYPE_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'MESSAGE_ASC' + | 'MESSAGE_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC'; +export type PlatformProposalCommentOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'ATTACHMENTS_ASC' + | 'ATTACHMENTS_DESC' + | 'BODY_ASC' + | 'BODY_DESC' + | 'BODY_TRGM_SIMILARITY_ASC' + | 'BODY_TRGM_SIMILARITY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'EMBEDDING_ASC' + | 'EMBEDDING_DESC' + | 'EMBEDDING_UPDATED_AT_ASC' + | 'EMBEDDING_UPDATED_AT_DESC' + | 'EMBEDDING_VECTOR_DISTANCE_ASC' + | 'EMBEDDING_VECTOR_DISTANCE_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'LINE_ASC' + | 'LINE_DESC' + | 'NATURAL' + | 'OUTDATED_AT_ASC' + | 'OUTDATED_AT_DESC' + | 'PATH_ASC' + | 'PATH_DESC' + | 'PATH_TRGM_SIMILARITY_ASC' + | 'PATH_TRGM_SIMILARITY_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PROPOSAL_ID_ASC' + | 'PROPOSAL_ID_DESC' + | 'RESOLVED_AT_ASC' + | 'RESOLVED_AT_DESC' + | 'SEARCH_ASC' + | 'SEARCH_DESC' + | 'SEARCH_SCORE_ASC' + | 'SEARCH_SCORE_DESC' + | 'SEARCH_TSV_RANK_ASC' + | 'SEARCH_TSV_RANK_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +export type PlatformProposalOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'BODY_ASC' + | 'BODY_DESC' + | 'BODY_TRGM_SIMILARITY_ASC' + | 'BODY_TRGM_SIMILARITY_DESC' + | 'CLOSED_REASON_ASC' + | 'CLOSED_REASON_DESC' + | 'CLOSED_REASON_TRGM_SIMILARITY_ASC' + | 'CLOSED_REASON_TRGM_SIMILARITY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DECIDED_AT_ASC' + | 'DECIDED_AT_DESC' + | 'DUE_AT_ASC' + | 'DUE_AT_DESC' + | 'EMBEDDING_ASC' + | 'EMBEDDING_DESC' + | 'EMBEDDING_UPDATED_AT_ASC' + | 'EMBEDDING_UPDATED_AT_DESC' + | 'EMBEDDING_VECTOR_DISTANCE_ASC' + | 'EMBEDDING_VECTOR_DISTANCE_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'KIND_ASC' + | 'KIND_DESC' + | 'KIND_TRGM_SIMILARITY_ASC' + | 'KIND_TRGM_SIMILARITY_DESC' + | 'LABELS_ASC' + | 'LABELS_DESC' + | 'MERGED_AT_ASC' + | 'MERGED_AT_DESC' + | 'MERGE_COMMIT_ASC' + | 'MERGE_COMMIT_DESC' + | 'MERGE_COMMIT_TRGM_SIMILARITY_ASC' + | 'MERGE_COMMIT_TRGM_SIMILARITY_DESC' + | 'MERGE_METHOD_ASC' + | 'MERGE_METHOD_DESC' + | 'MERGE_METHOD_TRGM_SIMILARITY_ASC' + | 'MERGE_METHOD_TRGM_SIMILARITY_DESC' + | 'MERGE_REQUESTED_AT_ASC' + | 'MERGE_REQUESTED_AT_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'NATURAL' + | 'PARENT_ID_ASC' + | 'PARENT_ID_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PRIORITY_ASC' + | 'PRIORITY_DESC' + | 'REPOSITORY_ID_ASC' + | 'REPOSITORY_ID_DESC' + | 'RESOLUTION_ASC' + | 'RESOLUTION_DESC' + | 'RESOLUTION_TRGM_SIMILARITY_ASC' + | 'RESOLUTION_TRGM_SIMILARITY_DESC' + | 'SEARCH_ASC' + | 'SEARCH_DESC' + | 'SEARCH_SCORE_ASC' + | 'SEARCH_SCORE_DESC' + | 'SEARCH_TSV_RANK_ASC' + | 'SEARCH_TSV_RANK_DESC' + | 'SOURCE_REF_ASC' + | 'SOURCE_REF_DESC' + | 'SOURCE_REF_TRGM_SIMILARITY_ASC' + | 'SOURCE_REF_TRGM_SIMILARITY_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'STATUS_TRGM_SIMILARITY_ASC' + | 'STATUS_TRGM_SIMILARITY_DESC' + | 'TARGET_REF_ASC' + | 'TARGET_REF_DESC' + | 'TARGET_REF_TRGM_SIMILARITY_ASC' + | 'TARGET_REF_TRGM_SIMILARITY_DESC' + | 'TITLE_ASC' + | 'TITLE_DESC' + | 'TITLE_TRGM_SIMILARITY_ASC' + | 'TITLE_TRGM_SIMILARITY_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +export type PlatformProposalFileViewOrderBy = + | 'BLOB_SHA_ASC' + | 'BLOB_SHA_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' + | 'PATH_ASC' + | 'PATH_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PROPOSAL_ID_ASC' + | 'PROPOSAL_ID_DESC' + | 'REVIEWER_ID_ASC' + | 'REVIEWER_ID_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC' + | 'VIEWED_AT_ASC' + | 'VIEWED_AT_DESC'; +export type PlatformProposalReactionOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'COMMENT_ID_ASC' + | 'COMMENT_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'EMOJI_ASC' + | 'EMOJI_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PROPOSAL_ID_ASC' + | 'PROPOSAL_ID_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +export type PlatformProposalReviewOrderBy = + | 'BODY_ASC' + | 'BODY_DESC' + | 'BODY_TRGM_SIMILARITY_ASC' + | 'BODY_TRGM_SIMILARITY_DESC' + | 'COMMIT_SHA_ASC' + | 'COMMIT_SHA_DESC' + | 'COMMIT_SHA_TRGM_SIMILARITY_ASC' + | 'COMMIT_SHA_TRGM_SIMILARITY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PROPOSAL_ID_ASC' + | 'PROPOSAL_ID_DESC' + | 'REVIEWER_ID_ASC' + | 'REVIEWER_ID_DESC' + | 'SEARCH_ASC' + | 'SEARCH_DESC' + | 'SEARCH_SCORE_ASC' + | 'SEARCH_SCORE_DESC' + | 'SEARCH_TSV_RANK_ASC' + | 'SEARCH_TSV_RANK_DESC' + | 'SUBMITTED_AT_ASC' + | 'SUBMITTED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC' + | 'VERDICT_ASC' + | 'VERDICT_DESC' + | 'VERDICT_TRGM_SIMILARITY_ASC' + | 'VERDICT_TRGM_SIMILARITY_DESC'; +export type PlatformProposalsChunkOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'BODY_ASC' + | 'BODY_DESC' + | 'CHUNK_INDEX_ASC' + | 'CHUNK_INDEX_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'EMBEDDING_ASC' + | 'EMBEDDING_DESC' + | 'EMBEDDING_VECTOR_DISTANCE_ASC' + | 'EMBEDDING_VECTOR_DISTANCE_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'NATURAL' + | 'PLATFORM_PROPOSALS_ID_ASC' + | 'PLATFORM_PROPOSALS_ID_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'SEARCH_SCORE_ASC' + | 'SEARCH_SCORE_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type PlatformRegistryBindingOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'NATURAL' + | 'OBSERVED_CREDENTIAL_VERSION_ASC' + | 'OBSERVED_CREDENTIAL_VERSION_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PULL_SECRET_NAME_ASC' + | 'PULL_SECRET_NAME_DESC' + | 'REALM_ASC' + | 'REALM_DESC' + | 'REGISTRY_HOST_ASC' + | 'REGISTRY_HOST_DESC' + | 'REGISTRY_ID_ASC' + | 'REGISTRY_ID_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +export type PlatformRegistryOrderBy = + | 'AUTH_MODE_ASC' + | 'AUTH_MODE_DESC' + | 'BASE_PATH_ASC' + | 'BASE_PATH_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'CREDENTIAL_SECRET_NAME_ASC' + | 'CREDENTIAL_SECRET_NAME_DESC' + | 'HOST_ASC' + | 'HOST_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'INSTALLATION_ID_ASC' + | 'INSTALLATION_ID_DESC' + | 'IS_PUBLISHED_ASC' + | 'IS_PUBLISHED_DESC' + | 'KIND_ASC' + | 'KIND_DESC' + | 'LABELS_ASC' + | 'LABELS_DESC' + | 'LAST_ERROR_ASC' + | 'LAST_ERROR_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'PLATFORM_ONLY_ASC' + | 'PLATFORM_ONLY_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ROLE_ASC' + | 'ROLE_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +export type PlatformRegistryGrantOrderBy = + | 'ACTIONS_ASC' + | 'ACTIONS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'EXPIRES_AT_ASC' + | 'EXPIRES_AT_DESC' + | 'GRANTED_BY_ASC' + | 'GRANTED_BY_DESC' + | 'GRANTEE_KEY_ASC' + | 'GRANTEE_KEY_DESC' + | 'GRANTEE_SCOPE_ASC' + | 'GRANTEE_SCOPE_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'REGISTRY_ID_ASC' + | 'REGISTRY_ID_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +export type PlatformRepositoryOrderBy = + | 'CLONE_URL_ASC' + | 'CLONE_URL_DESC' + | 'CLONE_URL_TRGM_SIMILARITY_ASC' + | 'CLONE_URL_TRGM_SIMILARITY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DEFAULT_BRANCH_ASC' + | 'DEFAULT_BRANCH_DESC' + | 'DEFAULT_BRANCH_TRGM_SIMILARITY_ASC' + | 'DEFAULT_BRANCH_TRGM_SIMILARITY_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'DESCRIPTION_TRGM_SIMILARITY_ASC' + | 'DESCRIPTION_TRGM_SIMILARITY_DESC' + | 'EMBEDDING_ASC' + | 'EMBEDDING_DESC' + | 'EMBEDDING_UPDATED_AT_ASC' + | 'EMBEDDING_UPDATED_AT_DESC' + | 'EMBEDDING_VECTOR_DISTANCE_ASC' + | 'EMBEDDING_VECTOR_DISTANCE_DESC' + | 'EXTERNAL_ID_ASC' + | 'EXTERNAL_ID_DESC' + | 'EXTERNAL_ID_TRGM_SIMILARITY_ASC' + | 'EXTERNAL_ID_TRGM_SIMILARITY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_ARCHIVED_ASC' + | 'IS_ARCHIVED_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NAME_TRGM_SIMILARITY_ASC' + | 'NAME_TRGM_SIMILARITY_DESC' + | 'NATURAL' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PROVIDER_ASC' + | 'PROVIDER_DESC' + | 'PROVIDER_TRGM_SIMILARITY_ASC' + | 'PROVIDER_TRGM_SIMILARITY_DESC' + | 'SEARCH_ASC' + | 'SEARCH_DESC' + | 'SEARCH_SCORE_ASC' + | 'SEARCH_SCORE_DESC' + | 'SEARCH_TSV_RANK_ASC' + | 'SEARCH_TSV_RANK_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'SLUG_TRGM_SIMILARITY_ASC' + | 'SLUG_TRGM_SIMILARITY_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC' + | 'VISIBILITY_ASC' + | 'VISIBILITY_DESC' + | 'VISIBILITY_TRGM_SIMILARITY_ASC' + | 'VISIBILITY_TRGM_SIMILARITY_DESC'; +export type PlatformRepositoryEventOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'COMMIT_SHA_ASC' + | 'COMMIT_SHA_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DELIVERY_ID_ASC' + | 'DELIVERY_ID_DESC' + | 'EVENT_TYPE_ASC' + | 'EVENT_TYPE_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'NATURAL' + | 'PAYLOAD_ASC' + | 'PAYLOAD_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'REF_ASC' + | 'REF_DESC' + | 'REPOSITORY_ID_ASC' + | 'REPOSITORY_ID_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +export type PlatformRepositoryRequiredCheckOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'REPOSITORY_ID_ASC' + | 'REPOSITORY_ID_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type PlatformNamespaceEventOrderBy = - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' + | 'UPDATED_AT_DESC' + | 'WORKFLOW_ID_ASC' + | 'WORKFLOW_ID_DESC'; +export type PlatformRepositoryWorkflowOrderBy = + | 'CANCEL_IN_PROGRESS_ASC' + | 'CANCEL_IN_PROGRESS_DESC' + | 'CONCURRENCY_KEY_ASC' + | 'CONCURRENCY_KEY_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'EVENT_TYPE_ASC' | 'EVENT_TYPE_DESC' + | 'GRAPH_ID_ASC' + | 'GRAPH_ID_DESC' | 'ID_ASC' | 'ID_DESC' - | 'MESSAGE_ASC' - | 'MESSAGE_DESC' - | 'METADATA_ASC' - | 'METADATA_DESC' - | 'NAMESPACE_ID_ASC' - | 'NAMESPACE_ID_DESC' + | 'INPUTS_ASC' + | 'INPUTS_DESC' + | 'IS_ENABLED_ASC' + | 'IS_ENABLED_DESC' + | 'NAME_ASC' + | 'NAME_DESC' | 'NATURAL' | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC'; + | 'PRIMARY_KEY_DESC' + | 'REF_PATTERN_ASC' + | 'REF_PATTERN_DESC' + | 'REPOSITORY_ID_ASC' + | 'REPOSITORY_ID_DESC' + | 'REQUIRED_SECRETS_ASC' + | 'REQUIRED_SECRETS_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; export type PlatformResourceOrderBy = | 'ANNOTATIONS_ASC' | 'ANNOTATIONS_DESC' @@ -7147,10 +13958,14 @@ export type PlatformResourceOrderBy = | 'CREATED_AT_DESC' | 'CREATED_BY_ASC' | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'ERROR_COUNT_ASC' | 'ERROR_COUNT_DESC' | 'ID_ASC' | 'ID_DESC' + | 'IMAGE_REF_ASC' + | 'IMAGE_REF_DESC' | 'INSTALLATION_ID_ASC' | 'INSTALLATION_ID_DESC' | 'INTEGRATIONS_ASC' @@ -7196,10 +14011,14 @@ export type PlatformResourceOrderBy = | 'STORAGE_CLASS_DESC' | 'STORAGE_SIZE_BYTES_ASC' | 'STORAGE_SIZE_BYTES_DESC' + | 'STORAGE_TOTAL_BYTES_ASC' + | 'STORAGE_TOTAL_BYTES_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC'; + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; export type PlatformResourceDeclaredCapacityOrderBy = | 'CPU_LIMIT_MILLICORES_ASC' | 'CPU_LIMIT_MILLICORES_DESC' @@ -7227,7 +14046,9 @@ export type PlatformResourceDeclaredCapacityOrderBy = | 'SOURCE_ID_ASC' | 'SOURCE_ID_DESC' | 'STORAGE_SIZE_BYTES_ASC' - | 'STORAGE_SIZE_BYTES_DESC'; + | 'STORAGE_SIZE_BYTES_DESC' + | 'STORAGE_TOTAL_BYTES_ASC' + | 'STORAGE_TOTAL_BYTES_DESC'; export type PlatformResourceDefinitionOrderBy = | 'ANNOTATIONS_ASC' | 'ANNOTATIONS_DESC' @@ -7235,6 +14056,8 @@ export type PlatformResourceDefinitionOrderBy = | 'CREATED_AT_DESC' | 'CREATED_BY_ASC' | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'DEFAULT_SPEC_ASC' | 'DEFAULT_SPEC_DESC' | 'DESCRIPTION_ASC' @@ -7267,7 +14090,9 @@ export type PlatformResourceDefinitionOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC'; + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; export type PlatformResourceEventOrderBy = | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' @@ -7293,6 +14118,8 @@ export type PlatformResourceInstallationOrderBy = | 'CREATED_AT_DESC' | 'CREATED_BY_ASC' | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'ID_ASC' | 'ID_DESC' | 'NAMESPACE_ID_ASC' @@ -7315,7 +14142,47 @@ export type PlatformResourceInstallationOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC'; + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +export type PlatformResourceObservedStorageOrderBy = + | 'CAPACITY_ASC' + | 'CAPACITY_BYTES_ASC' + | 'CAPACITY_BYTES_DESC' + | 'CAPACITY_DESC' + | 'CLAIM_NAME_ASC' + | 'CLAIM_NAME_DESC' + | 'DECLARED_STORAGE_CLASS_ASC' + | 'DECLARED_STORAGE_CLASS_DESC' + | 'DECLARED_STORAGE_SIZE_BYTES_ASC' + | 'DECLARED_STORAGE_SIZE_BYTES_DESC' + | 'DECLARED_STORAGE_TOTAL_BYTES_ASC' + | 'DECLARED_STORAGE_TOTAL_BYTES_DESC' + | 'INSTALLATION_ID_ASC' + | 'INSTALLATION_ID_DESC' + | 'IS_BOUND_ASC' + | 'IS_BOUND_DESC' + | 'KIND_ASC' + | 'KIND_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'NATURAL' + | 'PHASE_ASC' + | 'PHASE_DESC' + | 'REQUESTED_ASC' + | 'REQUESTED_BYTES_ASC' + | 'REQUESTED_BYTES_DESC' + | 'REQUESTED_DESC' + | 'RESOURCE_ID_ASC' + | 'RESOURCE_ID_DESC' + | 'RESOURCE_STATUS_ASC' + | 'RESOURCE_STATUS_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'STORAGE_CLASS_ASC' + | 'STORAGE_CLASS_DESC' + | 'STORAGE_NAME_ASC' + | 'STORAGE_NAME_DESC'; export type PlatformResourceStatusCheckOrderBy = | 'COMPLETED_AT_ASC' | 'COMPLETED_AT_DESC' @@ -7429,10 +14296,14 @@ export type PlatformResourcesHealthOrderBy = | 'CREATED_AT_DESC' | 'CREATED_BY_ASC' | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'ERROR_COUNT_ASC' | 'ERROR_COUNT_DESC' | 'ID_ASC' | 'ID_DESC' + | 'IMAGE_REF_ASC' + | 'IMAGE_REF_DESC' | 'INSTALLATION_ID_ASC' | 'INSTALLATION_ID_DESC' | 'INTEGRATIONS_ASC' @@ -7478,10 +14349,14 @@ export type PlatformResourcesHealthOrderBy = | 'STORAGE_CLASS_DESC' | 'STORAGE_SIZE_BYTES_ASC' | 'STORAGE_SIZE_BYTES_DESC' + | 'STORAGE_TOTAL_BYTES_ASC' + | 'STORAGE_TOTAL_BYTES_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC'; + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; export type PlatformResourcesRequirementsStateOrderBy = | 'CONFIG_HASH_ASC' | 'CONFIG_HASH_DESC' @@ -7508,78 +14383,612 @@ export type PlatformResourcesResolvedRequirementOrderBy = | 'NAME_ASC' | 'NAME_DESC' | 'NATURAL' - | 'PRESENT_ASC' - | 'PRESENT_DESC' - | 'REALM_ASC' - | 'REALM_DESC' - | 'REQUIRED_ASC' - | 'REQUIRED_DESC' - | 'REQUIREMENT_KIND_ASC' - | 'REQUIREMENT_KIND_DESC' - | 'RESOURCE_ID_ASC' - | 'RESOURCE_ID_DESC' - | 'SECRETS_OBJECT_NAME_ASC' - | 'SECRETS_OBJECT_NAME_DESC' - | 'SLUG_ASC' - | 'SLUG_DESC'; -export type PlatformWebhookEndpointOrderBy = - | 'ACTIVE_ASC' - | 'ACTIVE_DESC' + | 'PRESENT_ASC' + | 'PRESENT_DESC' + | 'REALM_ASC' + | 'REALM_DESC' + | 'REQUIRED_ASC' + | 'REQUIRED_DESC' + | 'REQUIREMENT_KIND_ASC' + | 'REQUIREMENT_KIND_DESC' + | 'RESOURCE_ID_ASC' + | 'RESOURCE_ID_DESC' + | 'SECRETS_OBJECT_NAME_ASC' + | 'SECRETS_OBJECT_NAME_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC'; +export type PlatformWebhookEndpointOrderBy = + | 'ACTIVE_ASC' + | 'ACTIVE_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'FUNCTION_DEFINITION_ID_ASC' + | 'FUNCTION_DEFINITION_ID_DESC' + | 'HOST_ASC' + | 'HOST_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'NATURAL' + | 'PATH_ASC' + | 'PATH_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PROVIDER_ASC' + | 'PROVIDER_DESC' + | 'REPLAY_WINDOW_SECONDS_ASC' + | 'REPLAY_WINDOW_SECONDS_DESC' + | 'SIGNING_SECRET_NAME_ASC' + | 'SIGNING_SECRET_NAME_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +export type PlatformWebhookEventOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ENDPOINT_ID_ASC' + | 'ENDPOINT_ID_DESC' + | 'ERROR_ASC' + | 'ERROR_DESC' + | 'EXTERNAL_EVENT_ID_ASC' + | 'EXTERNAL_EVENT_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'INVOCATION_CREATED_AT_ASC' + | 'INVOCATION_CREATED_AT_DESC' + | 'INVOCATION_ID_ASC' + | 'INVOCATION_ID_DESC' + | 'NATURAL' + | 'PAYLOAD_ASC' + | 'PAYLOAD_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PROVIDER_ASC' + | 'PROVIDER_DESC' + | 'PROVIDER_TIMESTAMP_ASC' + | 'PROVIDER_TIMESTAMP_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type ProposalCommentOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'ATTACHMENTS_ASC' + | 'ATTACHMENTS_DESC' + | 'BODY_ASC' + | 'BODY_DESC' + | 'BODY_TRGM_SIMILARITY_ASC' + | 'BODY_TRGM_SIMILARITY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'EMBEDDING_ASC' + | 'EMBEDDING_DESC' + | 'EMBEDDING_UPDATED_AT_ASC' + | 'EMBEDDING_UPDATED_AT_DESC' + | 'EMBEDDING_VECTOR_DISTANCE_ASC' + | 'EMBEDDING_VECTOR_DISTANCE_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'LINE_ASC' + | 'LINE_DESC' + | 'NATURAL' + | 'OUTDATED_AT_ASC' + | 'OUTDATED_AT_DESC' + | 'PATH_ASC' + | 'PATH_DESC' + | 'PATH_TRGM_SIMILARITY_ASC' + | 'PATH_TRGM_SIMILARITY_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PROPOSAL_ID_ASC' + | 'PROPOSAL_ID_DESC' + | 'RESOLVED_AT_ASC' + | 'RESOLVED_AT_DESC' + | 'SEARCH_ASC' + | 'SEARCH_DESC' + | 'SEARCH_SCORE_ASC' + | 'SEARCH_SCORE_DESC' + | 'SEARCH_TSV_RANK_ASC' + | 'SEARCH_TSV_RANK_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +export type ProposalOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'BODY_ASC' + | 'BODY_DESC' + | 'BODY_TRGM_SIMILARITY_ASC' + | 'BODY_TRGM_SIMILARITY_DESC' + | 'CLOSED_REASON_ASC' + | 'CLOSED_REASON_DESC' + | 'CLOSED_REASON_TRGM_SIMILARITY_ASC' + | 'CLOSED_REASON_TRGM_SIMILARITY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DECIDED_AT_ASC' + | 'DECIDED_AT_DESC' + | 'DUE_AT_ASC' + | 'DUE_AT_DESC' + | 'EMBEDDING_ASC' + | 'EMBEDDING_DESC' + | 'EMBEDDING_UPDATED_AT_ASC' + | 'EMBEDDING_UPDATED_AT_DESC' + | 'EMBEDDING_VECTOR_DISTANCE_ASC' + | 'EMBEDDING_VECTOR_DISTANCE_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'KIND_ASC' + | 'KIND_DESC' + | 'KIND_TRGM_SIMILARITY_ASC' + | 'KIND_TRGM_SIMILARITY_DESC' + | 'LABELS_ASC' + | 'LABELS_DESC' + | 'MERGED_AT_ASC' + | 'MERGED_AT_DESC' + | 'MERGE_COMMIT_ASC' + | 'MERGE_COMMIT_DESC' + | 'MERGE_COMMIT_TRGM_SIMILARITY_ASC' + | 'MERGE_COMMIT_TRGM_SIMILARITY_DESC' + | 'MERGE_METHOD_ASC' + | 'MERGE_METHOD_DESC' + | 'MERGE_METHOD_TRGM_SIMILARITY_ASC' + | 'MERGE_METHOD_TRGM_SIMILARITY_DESC' + | 'MERGE_REQUESTED_AT_ASC' + | 'MERGE_REQUESTED_AT_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'NATURAL' + | 'PARENT_ID_ASC' + | 'PARENT_ID_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PRIORITY_ASC' + | 'PRIORITY_DESC' + | 'REPOSITORY_ID_ASC' + | 'REPOSITORY_ID_DESC' + | 'RESOLUTION_ASC' + | 'RESOLUTION_DESC' + | 'RESOLUTION_TRGM_SIMILARITY_ASC' + | 'RESOLUTION_TRGM_SIMILARITY_DESC' + | 'SEARCH_ASC' + | 'SEARCH_DESC' + | 'SEARCH_SCORE_ASC' + | 'SEARCH_SCORE_DESC' + | 'SEARCH_TSV_RANK_ASC' + | 'SEARCH_TSV_RANK_DESC' + | 'SOURCE_REF_ASC' + | 'SOURCE_REF_DESC' + | 'SOURCE_REF_TRGM_SIMILARITY_ASC' + | 'SOURCE_REF_TRGM_SIMILARITY_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'STATUS_TRGM_SIMILARITY_ASC' + | 'STATUS_TRGM_SIMILARITY_DESC' + | 'TARGET_REF_ASC' + | 'TARGET_REF_DESC' + | 'TARGET_REF_TRGM_SIMILARITY_ASC' + | 'TARGET_REF_TRGM_SIMILARITY_DESC' + | 'TITLE_ASC' + | 'TITLE_DESC' + | 'TITLE_TRGM_SIMILARITY_ASC' + | 'TITLE_TRGM_SIMILARITY_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +export type ProposalFileViewOrderBy = + | 'BLOB_SHA_ASC' + | 'BLOB_SHA_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' + | 'PATH_ASC' + | 'PATH_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PROPOSAL_ID_ASC' + | 'PROPOSAL_ID_DESC' + | 'REVIEWER_ID_ASC' + | 'REVIEWER_ID_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC' + | 'VIEWED_AT_ASC' + | 'VIEWED_AT_DESC'; +export type ProposalReactionOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'COMMENT_ID_ASC' + | 'COMMENT_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'EMOJI_ASC' + | 'EMOJI_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PROPOSAL_ID_ASC' + | 'PROPOSAL_ID_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +export type ProposalReviewOrderBy = + | 'BODY_ASC' + | 'BODY_DESC' + | 'BODY_TRGM_SIMILARITY_ASC' + | 'BODY_TRGM_SIMILARITY_DESC' + | 'COMMIT_SHA_ASC' + | 'COMMIT_SHA_DESC' + | 'COMMIT_SHA_TRGM_SIMILARITY_ASC' + | 'COMMIT_SHA_TRGM_SIMILARITY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PROPOSAL_ID_ASC' + | 'PROPOSAL_ID_DESC' + | 'REVIEWER_ID_ASC' + | 'REVIEWER_ID_DESC' + | 'SEARCH_ASC' + | 'SEARCH_DESC' + | 'SEARCH_SCORE_ASC' + | 'SEARCH_SCORE_DESC' + | 'SEARCH_TSV_RANK_ASC' + | 'SEARCH_TSV_RANK_DESC' + | 'SUBMITTED_AT_ASC' + | 'SUBMITTED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC' + | 'VERDICT_ASC' + | 'VERDICT_DESC' + | 'VERDICT_TRGM_SIMILARITY_ASC' + | 'VERDICT_TRGM_SIMILARITY_DESC'; +export type ProposalsChunkOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'BODY_ASC' + | 'BODY_DESC' + | 'CHUNK_INDEX_ASC' + | 'CHUNK_INDEX_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'EMBEDDING_ASC' + | 'EMBEDDING_DESC' + | 'EMBEDDING_VECTOR_DISTANCE_ASC' + | 'EMBEDDING_VECTOR_DISTANCE_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PROPOSALS_ID_ASC' + | 'PROPOSALS_ID_DESC' + | 'SEARCH_SCORE_ASC' + | 'SEARCH_SCORE_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type RegistryBindingOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'NATURAL' + | 'OBSERVED_CREDENTIAL_VERSION_ASC' + | 'OBSERVED_CREDENTIAL_VERSION_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PULL_SECRET_NAME_ASC' + | 'PULL_SECRET_NAME_DESC' + | 'REALM_ASC' + | 'REALM_DESC' + | 'REGISTRY_HOST_ASC' + | 'REGISTRY_HOST_DESC' + | 'REGISTRY_ID_ASC' + | 'REGISTRY_ID_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +export type RegistryOrderBy = + | 'AUTH_MODE_ASC' + | 'AUTH_MODE_DESC' + | 'BASE_PATH_ASC' + | 'BASE_PATH_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'CREDENTIAL_SECRET_NAME_ASC' + | 'CREDENTIAL_SECRET_NAME_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'HOST_ASC' + | 'HOST_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'INSTALLATION_ID_ASC' + | 'INSTALLATION_ID_DESC' + | 'IS_PUBLISHED_ASC' + | 'IS_PUBLISHED_DESC' + | 'KIND_ASC' + | 'KIND_DESC' + | 'LABELS_ASC' + | 'LABELS_DESC' + | 'LAST_ERROR_ASC' + | 'LAST_ERROR_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'PLATFORM_ONLY_ASC' + | 'PLATFORM_ONLY_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ROLE_ASC' + | 'ROLE_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +export type RegistryGrantOrderBy = + | 'ACTIONS_ASC' + | 'ACTIONS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'EXPIRES_AT_ASC' + | 'EXPIRES_AT_DESC' + | 'GRANTED_BY_ASC' + | 'GRANTED_BY_DESC' + | 'GRANTEE_KEY_ASC' + | 'GRANTEE_KEY_DESC' + | 'GRANTEE_SCOPE_ASC' + | 'GRANTEE_SCOPE_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'REGISTRY_ID_ASC' + | 'REGISTRY_ID_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +export type RepositoryOrderBy = + | 'CLONE_URL_ASC' + | 'CLONE_URL_DESC' + | 'CLONE_URL_TRGM_SIMILARITY_ASC' + | 'CLONE_URL_TRGM_SIMILARITY_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'CREATED_BY_ASC' | 'CREATED_BY_DESC' - | 'FUNCTION_DEFINITION_ID_ASC' - | 'FUNCTION_DEFINITION_ID_DESC' - | 'HOST_ASC' - | 'HOST_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DEFAULT_BRANCH_ASC' + | 'DEFAULT_BRANCH_DESC' + | 'DEFAULT_BRANCH_TRGM_SIMILARITY_ASC' + | 'DEFAULT_BRANCH_TRGM_SIMILARITY_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'DESCRIPTION_TRGM_SIMILARITY_ASC' + | 'DESCRIPTION_TRGM_SIMILARITY_DESC' + | 'EMBEDDING_ASC' + | 'EMBEDDING_DESC' + | 'EMBEDDING_UPDATED_AT_ASC' + | 'EMBEDDING_UPDATED_AT_DESC' + | 'EMBEDDING_VECTOR_DISTANCE_ASC' + | 'EMBEDDING_VECTOR_DISTANCE_DESC' + | 'EXTERNAL_ID_ASC' + | 'EXTERNAL_ID_DESC' + | 'EXTERNAL_ID_TRGM_SIMILARITY_ASC' + | 'EXTERNAL_ID_TRGM_SIMILARITY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'NAMESPACE_ID_ASC' - | 'NAMESPACE_ID_DESC' + | 'IS_ARCHIVED_ASC' + | 'IS_ARCHIVED_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NAME_TRGM_SIMILARITY_ASC' + | 'NAME_TRGM_SIMILARITY_DESC' | 'NATURAL' - | 'PATH_ASC' - | 'PATH_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'PROVIDER_ASC' | 'PROVIDER_DESC' - | 'REPLAY_WINDOW_SECONDS_ASC' - | 'REPLAY_WINDOW_SECONDS_DESC' - | 'SIGNING_SECRET_NAME_ASC' - | 'SIGNING_SECRET_NAME_DESC' + | 'PROVIDER_TRGM_SIMILARITY_ASC' + | 'PROVIDER_TRGM_SIMILARITY_DESC' + | 'SEARCH_ASC' + | 'SEARCH_DESC' + | 'SEARCH_SCORE_ASC' + | 'SEARCH_SCORE_DESC' + | 'SEARCH_TSV_RANK_ASC' + | 'SEARCH_TSV_RANK_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'SLUG_TRGM_SIMILARITY_ASC' + | 'SLUG_TRGM_SIMILARITY_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC'; -export type PlatformWebhookEventOrderBy = + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC' + | 'VISIBILITY_ASC' + | 'VISIBILITY_DESC' + | 'VISIBILITY_TRGM_SIMILARITY_ASC' + | 'VISIBILITY_TRGM_SIMILARITY_DESC'; +export type RepositoryEventOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'COMMIT_SHA_ASC' + | 'COMMIT_SHA_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' - | 'ENDPOINT_ID_ASC' - | 'ENDPOINT_ID_DESC' - | 'ERROR_ASC' - | 'ERROR_DESC' - | 'EXTERNAL_EVENT_ID_ASC' - | 'EXTERNAL_EVENT_ID_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DELIVERY_ID_ASC' + | 'DELIVERY_ID_DESC' + | 'EVENT_TYPE_ASC' + | 'EVENT_TYPE_DESC' | 'ID_ASC' | 'ID_DESC' - | 'INVOCATION_CREATED_AT_ASC' - | 'INVOCATION_CREATED_AT_DESC' - | 'INVOCATION_ID_ASC' - | 'INVOCATION_ID_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' | 'NATURAL' | 'PAYLOAD_ASC' | 'PAYLOAD_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'PROVIDER_ASC' - | 'PROVIDER_DESC' - | 'PROVIDER_TIMESTAMP_ASC' - | 'PROVIDER_TIMESTAMP_DESC' - | 'STATUS_ASC' - | 'STATUS_DESC' + | 'REF_ASC' + | 'REF_DESC' + | 'REPOSITORY_ID_ASC' + | 'REPOSITORY_ID_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +export type RepositoryRequiredCheckOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'REPOSITORY_ID_ASC' + | 'REPOSITORY_ID_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'WORKFLOW_ID_ASC' + | 'WORKFLOW_ID_DESC'; +export type RepositoryWorkflowOrderBy = + | 'CANCEL_IN_PROGRESS_ASC' + | 'CANCEL_IN_PROGRESS_DESC' + | 'CONCURRENCY_KEY_ASC' + | 'CONCURRENCY_KEY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'EVENT_TYPE_ASC' + | 'EVENT_TYPE_DESC' + | 'GRAPH_ID_ASC' + | 'GRAPH_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'INPUTS_ASC' + | 'INPUTS_DESC' + | 'IS_ENABLED_ASC' + | 'IS_ENABLED_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'REF_PATTERN_ASC' + | 'REF_PATTERN_DESC' + | 'REPOSITORY_ID_ASC' + | 'REPOSITORY_ID_DESC' + | 'REQUIRED_SECRETS_ASC' + | 'REQUIRED_SECRETS_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; export type ResourceOrderBy = | 'ANNOTATIONS_ASC' | 'ANNOTATIONS_DESC' @@ -7591,12 +15000,16 @@ export type ResourceOrderBy = | 'CREATED_AT_DESC' | 'CREATED_BY_ASC' | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'ERROR_COUNT_ASC' | 'ERROR_COUNT_DESC' | 'ID_ASC' | 'ID_DESC' + | 'IMAGE_REF_ASC' + | 'IMAGE_REF_DESC' | 'INSTALLATION_ID_ASC' | 'INSTALLATION_ID_DESC' | 'INTEGRATIONS_ASC' @@ -7642,10 +15055,14 @@ export type ResourceOrderBy = | 'STORAGE_CLASS_DESC' | 'STORAGE_SIZE_BYTES_ASC' | 'STORAGE_SIZE_BYTES_DESC' + | 'STORAGE_TOTAL_BYTES_ASC' + | 'STORAGE_TOTAL_BYTES_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC'; + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; export type ResourceDeclaredCapacityOrderBy = | 'CPU_LIMIT_MILLICORES_ASC' | 'CPU_LIMIT_MILLICORES_DESC' @@ -7673,7 +15090,9 @@ export type ResourceDeclaredCapacityOrderBy = | 'SOURCE_ID_ASC' | 'SOURCE_ID_DESC' | 'STORAGE_SIZE_BYTES_ASC' - | 'STORAGE_SIZE_BYTES_DESC'; + | 'STORAGE_SIZE_BYTES_DESC' + | 'STORAGE_TOTAL_BYTES_ASC' + | 'STORAGE_TOTAL_BYTES_DESC'; export type ResourceDefinitionOrderBy = | 'ANNOTATIONS_ASC' | 'ANNOTATIONS_DESC' @@ -7681,6 +15100,8 @@ export type ResourceDefinitionOrderBy = | 'CREATED_AT_DESC' | 'CREATED_BY_ASC' | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'DEFAULT_SPEC_ASC' @@ -7715,7 +15136,9 @@ export type ResourceDefinitionOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC'; + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; export type ResourceEventOrderBy = | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' @@ -7743,6 +15166,8 @@ export type ResourceInstallationOrderBy = | 'CREATED_AT_DESC' | 'CREATED_BY_ASC' | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'ID_ASC' @@ -7767,7 +15192,47 @@ export type ResourceInstallationOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC'; + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +export type ResourceObservedStorageOrderBy = + | 'CAPACITY_ASC' + | 'CAPACITY_BYTES_ASC' + | 'CAPACITY_BYTES_DESC' + | 'CAPACITY_DESC' + | 'CLAIM_NAME_ASC' + | 'CLAIM_NAME_DESC' + | 'DECLARED_STORAGE_CLASS_ASC' + | 'DECLARED_STORAGE_CLASS_DESC' + | 'DECLARED_STORAGE_SIZE_BYTES_ASC' + | 'DECLARED_STORAGE_SIZE_BYTES_DESC' + | 'DECLARED_STORAGE_TOTAL_BYTES_ASC' + | 'DECLARED_STORAGE_TOTAL_BYTES_DESC' + | 'INSTALLATION_ID_ASC' + | 'INSTALLATION_ID_DESC' + | 'IS_BOUND_ASC' + | 'IS_BOUND_DESC' + | 'KIND_ASC' + | 'KIND_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'NATURAL' + | 'PHASE_ASC' + | 'PHASE_DESC' + | 'REQUESTED_ASC' + | 'REQUESTED_BYTES_ASC' + | 'REQUESTED_BYTES_DESC' + | 'REQUESTED_DESC' + | 'RESOURCE_ID_ASC' + | 'RESOURCE_ID_DESC' + | 'RESOURCE_STATUS_ASC' + | 'RESOURCE_STATUS_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'STORAGE_CLASS_ASC' + | 'STORAGE_CLASS_DESC' + | 'STORAGE_NAME_ASC' + | 'STORAGE_NAME_DESC'; export type ResourceStatusCheckOrderBy = | 'COMPLETED_AT_ASC' | 'COMPLETED_AT_DESC' @@ -7887,12 +15352,16 @@ export type ResourcesHealthOrderBy = | 'CREATED_AT_DESC' | 'CREATED_BY_ASC' | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'ERROR_COUNT_ASC' | 'ERROR_COUNT_DESC' | 'ID_ASC' | 'ID_DESC' + | 'IMAGE_REF_ASC' + | 'IMAGE_REF_DESC' | 'INSTALLATION_ID_ASC' | 'INSTALLATION_ID_DESC' | 'INTEGRATIONS_ASC' @@ -7938,10 +15407,14 @@ export type ResourcesHealthOrderBy = | 'STORAGE_CLASS_DESC' | 'STORAGE_SIZE_BYTES_ASC' | 'STORAGE_SIZE_BYTES_DESC' + | 'STORAGE_TOTAL_BYTES_ASC' + | 'STORAGE_TOTAL_BYTES_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC'; + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; export type ResourcesRequirementsStateOrderBy = | 'CONFIG_HASH_ASC' | 'CONFIG_HASH_DESC' @@ -7989,6 +15462,8 @@ export type WebhookEndpointOrderBy = | 'CREATED_AT_DESC' | 'CREATED_BY_ASC' | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'FUNCTION_DEFINITION_ID_ASC' @@ -8013,7 +15488,9 @@ export type WebhookEndpointOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC'; + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; export type WebhookEventOrderBy = | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' @@ -8045,8848 +15522,17441 @@ export type WebhookEventOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; // ============ CRUD Input Types ============ +export interface CreateBuildInput { + clientMutationId?: string; + build: { + actorId?: string; + attempt?: number; + commitSha?: string; + conclusion?: string; + createdByPrincipal?: string; + databaseId: string; + eventId?: string; + finishedAt?: string; + imageRef?: string; + jobId?: string; + logs?: ConstructiveInternalTypeUpload; + matrixKey?: string; + metadata?: Record; + proposalId?: string; + ref?: string; + repositoryId: string; + startedAt?: string; + status?: string; + updatedByPrincipal?: string; + workflowId?: string; + }; +} +export interface BuildPatch { + actorId?: string | null; + attempt?: number | null; + commitSha?: string | null; + conclusion?: string | null; + createdByPrincipal?: string | null; + databaseId?: string | null; + eventId?: string | null; + finishedAt?: string | null; + imageRef?: string | null; + jobId?: string | null; + logs?: ConstructiveInternalTypeUpload | null; + logsUpload?: File | null; + matrixKey?: string | null; + metadata?: Record | null; + proposalId?: string | null; + ref?: string | null; + repositoryId?: string | null; + startedAt?: string | null; + status?: string | null; + updatedByPrincipal?: string | null; + workflowId?: string | null; +} +export interface UpdateBuildInput { + clientMutationId?: string; + id: string; + buildPatch: BuildPatch; +} +export interface DeleteBuildInput { + clientMutationId?: string; + id: string; +} +export interface CreateBuildStepInput { + clientMutationId?: string; + buildStep: { + buildId: string; + createdByPrincipal?: string; + databaseId: string; + exitCode?: number; + finishedAt?: string; + kind?: string; + logBytes?: string; + logOffset?: string; + name: string; + parentSeq?: number; + recordedAt?: string; + seq: number; + startedAt?: string; + status?: string; + summary?: Record; + }; +} +export interface BuildStepPatch { + buildId?: string | null; + createdByPrincipal?: string | null; + databaseId?: string | null; + exitCode?: number | null; + finishedAt?: string | null; + kind?: string | null; + logBytes?: string | null; + logOffset?: string | null; + name?: string | null; + parentSeq?: number | null; + recordedAt?: string | null; + seq?: number | null; + startedAt?: string | null; + status?: string | null; + summary?: Record | null; +} +export interface UpdateBuildStepInput { + clientMutationId?: string; + id: string; + buildStepPatch: BuildStepPatch; +} +export interface DeleteBuildStepInput { + clientMutationId?: string; + id: string; +} +export interface CreateBuilderBindingInput { + clientMutationId?: string; + builderBinding: { + createdBy?: string; + createdByPrincipal?: string; + databaseId: string; + installationId: string; + lastError?: string; + metadata?: Record; + namespaceId: string; + observedHost?: string; + realm?: string; + status?: string; + updatedBy?: string; + updatedByPrincipal?: string; + }; +} +export interface BuilderBindingPatch { + createdBy?: string | null; + createdByPrincipal?: string | null; + databaseId?: string | null; + installationId?: string | null; + lastError?: string | null; + metadata?: Record | null; + namespaceId?: string | null; + observedHost?: string | null; + realm?: string | null; + status?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdateBuilderBindingInput { + clientMutationId?: string; + id: string; + builderBindingPatch: BuilderBindingPatch; +} +export interface DeleteBuilderBindingInput { + clientMutationId?: string; + id: string; +} export interface CreateContentPresetInput { clientMutationId?: string; - contentPreset: { - active?: boolean; - commitId?: string; - definition: Record; + 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 CreateDatabaseFunctionGraphInput { + clientMutationId?: string; + databaseFunctionGraph: { + context?: string; + createdBy?: string; + databaseId: string; + definitionsCommitId: string; + description?: string; + isValid?: boolean; + name?: string; + storeId: string; + validationErrors?: Record; + }; +} +export interface DatabaseFunctionGraphPatch { + context?: string | null; + createdBy?: string | null; + databaseId?: string | null; + definitionsCommitId?: string | null; + description?: string | null; + isValid?: boolean | null; + name?: string | null; + storeId?: string | null; + validationErrors?: Record | null; +} +export interface UpdateDatabaseFunctionGraphInput { + clientMutationId?: string; + id: string; + databaseFunctionGraphPatch: DatabaseFunctionGraphPatch; +} +export interface DeleteDatabaseFunctionGraphInput { + clientMutationId?: string; + id: string; +} +export interface CreateDatabaseFunctionGraphExecutionInput { + clientMutationId?: string; + databaseFunctionGraphExecution: { + actorId?: string; + completedAt?: string; + currentWave?: number; + databaseId: string; + definitionsCommitId?: string; + entityId?: string; + entityType?: string; + errorCode?: string; + errorMessage?: string; + executionPlan?: Record; + graphId: string; + inputPayload?: Record; + invocationCreatedAt?: string; + invocationId?: string; + lastProgressAt?: string; + maxPendingJobs?: number; + maxTicks?: number; + nodeOutputs?: Record; + organizationId?: string; + outputNames?: string[]; + outputNode?: string; + outputPayload?: Record; + outputPort?: string; + parentExecutionId?: string; + parentInvocationId?: string; + parentNodeName?: string; + principalId?: string; + startedAt?: string; + status?: string; + tickCount?: number; + timeoutAt?: string; + }; +} +export interface DatabaseFunctionGraphExecutionPatch { + actorId?: string | null; + completedAt?: string | null; + currentWave?: number | null; + databaseId?: string | null; + definitionsCommitId?: string | null; + entityId?: string | null; + entityType?: string | null; + errorCode?: string | null; + errorMessage?: string | null; + executionPlan?: Record | null; + graphId?: string | null; + inputPayload?: Record | null; + invocationCreatedAt?: string | null; + invocationId?: string | null; + lastProgressAt?: string | null; + maxPendingJobs?: number | null; + maxTicks?: number | null; + nodeOutputs?: Record | null; + organizationId?: string | null; + outputNames?: string[] | null; + outputNode?: string | null; + outputPayload?: Record | null; + outputPort?: string | null; + parentExecutionId?: string | null; + parentInvocationId?: string | null; + parentNodeName?: string | null; + principalId?: string | null; + startedAt?: string | null; + status?: string | null; + tickCount?: number | null; + timeoutAt?: string | null; +} +export interface UpdateDatabaseFunctionGraphExecutionInput { + clientMutationId?: string; + id: string; + databaseFunctionGraphExecutionPatch: DatabaseFunctionGraphExecutionPatch; +} +export interface DeleteDatabaseFunctionGraphExecutionInput { + clientMutationId?: string; + id: string; +} +export interface CreateDatabaseFunctionGraphExecutionNodeStateInput { + clientMutationId?: string; + databaseFunctionGraphExecutionNodeState: { + callbackInputs?: Record; + callbackMeta?: Record; + callbackTokenHash?: string; + completedAt?: string; + databaseId: string; + errorCode?: string; + errorMessage?: string; + executionId: string; + expiryDefaultOutput?: Record; + expiryEscalatedAt?: string; + expiryPolicy?: string; + nodeName: string; + nodePath?: string[]; + outputId?: string; + startedAt?: string; + status?: string; + waitingDeadlineAt?: string; + waitingOn?: string; + waitingSince?: string; + }; +} +export interface DatabaseFunctionGraphExecutionNodeStatePatch { + callbackInputs?: Record | null; + callbackMeta?: Record | null; + callbackTokenHash?: string | null; + completedAt?: string | null; + databaseId?: string | null; + errorCode?: string | null; + errorMessage?: string | null; + executionId?: string | null; + expiryDefaultOutput?: Record | null; + expiryEscalatedAt?: string | null; + expiryPolicy?: string | null; + nodeName?: string | null; + nodePath?: string[] | null; + outputId?: string | null; + startedAt?: string | null; + status?: string | null; + waitingDeadlineAt?: string | null; + waitingOn?: string | null; + waitingSince?: string | null; +} +export interface UpdateDatabaseFunctionGraphExecutionNodeStateInput { + clientMutationId?: string; + id: string; + databaseFunctionGraphExecutionNodeStatePatch: DatabaseFunctionGraphExecutionNodeStatePatch; +} +export interface DeleteDatabaseFunctionGraphExecutionNodeStateInput { + clientMutationId?: string; + id: string; +} +export interface CreateDatabaseFunctionGraphExecutionOutputInput { + clientMutationId?: string; + databaseFunctionGraphExecutionOutput: { + data: Record; + databaseId: string; + hash: Base64EncodedBinary; + }; +} +export interface DatabaseFunctionGraphExecutionOutputPatch { + data?: Record | null; + databaseId?: string | null; + hash?: Base64EncodedBinary | null; +} +export interface UpdateDatabaseFunctionGraphExecutionOutputInput { + clientMutationId?: string; + id: string; + databaseFunctionGraphExecutionOutputPatch: DatabaseFunctionGraphExecutionOutputPatch; +} +export interface DeleteDatabaseFunctionGraphExecutionOutputInput { + clientMutationId?: string; + id: string; +} +export interface CreateDatabaseGraphCommitInput { + clientMutationId?: string; + databaseGraphCommit: { + authorId?: string; + committerId?: string; + databaseId: string; + date?: string; + message?: string; + parentIds?: string[]; + storeId: string; + treeId?: string; + }; +} +export interface DatabaseGraphCommitPatch { + authorId?: string | null; + committerId?: string | null; + databaseId?: string | null; + date?: string | null; + message?: string | null; + parentIds?: string[] | null; + storeId?: string | null; + treeId?: string | null; +} +export interface UpdateDatabaseGraphCommitInput { + clientMutationId?: string; + id: string; + databaseGraphCommitPatch: DatabaseGraphCommitPatch; +} +export interface DeleteDatabaseGraphCommitInput { + clientMutationId?: string; + id: string; +} +export interface CreateDatabaseGraphGetAllTreeNodesRecordInput { + clientMutationId?: string; + databaseGraphGetAllTreeNodesRecord: { + data?: Record; + path?: string[]; + }; +} +export interface DatabaseGraphGetAllTreeNodesRecordPatch { + data?: Record | null; + path?: string[] | null; +} +export interface UpdateDatabaseGraphGetAllTreeNodesRecordInput { + clientMutationId?: string; + id: string; + databaseGraphGetAllTreeNodesRecordPatch: DatabaseGraphGetAllTreeNodesRecordPatch; +} +export interface DeleteDatabaseGraphGetAllTreeNodesRecordInput { + clientMutationId?: string; + id: string; +} +export interface CreateDatabaseGraphObjectInput { + clientMutationId?: string; + databaseGraphObject: { + data?: Record; + databaseId: string; + kids?: string[]; + ktree?: string[]; + }; +} +export interface DatabaseGraphObjectPatch { + data?: Record | null; + databaseId?: string | null; + kids?: string[] | null; + ktree?: string[] | null; +} +export interface UpdateDatabaseGraphObjectInput { + clientMutationId?: string; + id: string; + databaseGraphObjectPatch: DatabaseGraphObjectPatch; +} +export interface DeleteDatabaseGraphObjectInput { + clientMutationId?: string; + id: string; +} +export interface CreateDatabaseGraphRefInput { + clientMutationId?: string; + databaseGraphRef: { + commitId?: string; + databaseId: string; + name: string; + storeId: string; + }; +} +export interface DatabaseGraphRefPatch { + commitId?: string | null; + databaseId?: string | null; + name?: string | null; + storeId?: string | null; +} +export interface UpdateDatabaseGraphRefInput { + clientMutationId?: string; + id: string; + databaseGraphRefPatch: DatabaseGraphRefPatch; +} +export interface DeleteDatabaseGraphRefInput { + clientMutationId?: string; + id: string; +} +export interface CreateDatabaseGraphStoreInput { + clientMutationId?: string; + databaseGraphStore: { + databaseId: string; + hash?: string; + name: string; + }; +} +export interface DatabaseGraphStorePatch { + databaseId?: string | null; + hash?: string | null; + name?: string | null; +} +export interface UpdateDatabaseGraphStoreInput { + clientMutationId?: string; + id: string; + databaseGraphStorePatch: DatabaseGraphStorePatch; +} +export interface DeleteDatabaseGraphStoreInput { + clientMutationId?: string; + id: string; +} +export interface CreateDbPresetInput { + clientMutationId?: string; + dbPreset: { + active?: boolean; + commitId?: string; + definition: Record; + description?: string; + label?: string; + modulesHash?: string; + slug: string; + storeId?: string; + }; +} +export interface DbPresetPatch { + active?: boolean | null; + commitId?: string | null; + definition?: Record | null; + description?: string | null; + label?: string | null; + modulesHash?: string | null; + slug?: string | null; + storeId?: string | null; +} +export interface UpdateDbPresetInput { + clientMutationId?: string; + id: string; + dbPresetPatch: DbPresetPatch; +} +export interface DeleteDbPresetInput { + clientMutationId?: string; + id: string; +} +export interface CreateFunctionApiBindingInput { + clientMutationId?: string; + functionApiBinding: { + alias?: string; + apiId: string; + config?: Record; + functionDefinitionId: string; + }; +} +export interface FunctionApiBindingPatch { + alias?: string | null; + apiId?: string | null; + config?: Record | null; + functionDefinitionId?: string | null; +} +export interface UpdateFunctionApiBindingInput { + clientMutationId?: string; + id: string; + functionApiBindingPatch: FunctionApiBindingPatch; +} +export interface DeleteFunctionApiBindingInput { + clientMutationId?: string; + id: string; +} +export interface CreateFunctionCapabilityBindingInput { + clientMutationId?: string; + functionCapabilityBinding: { + bucketId?: string; + databaseId: string; + functionId?: string; + graphId?: string; + key?: string; + lifecycle: string; + metadata?: Record; + }; +} +export interface FunctionCapabilityBindingPatch { + bucketId?: string | null; + databaseId?: string | null; + functionId?: string | null; + graphId?: string | null; + key?: string | null; + lifecycle?: string | null; + metadata?: Record | null; +} +export interface UpdateFunctionCapabilityBindingInput { + clientMutationId?: string; + id: string; + functionCapabilityBindingPatch: FunctionCapabilityBindingPatch; +} +export interface DeleteFunctionCapabilityBindingInput { + clientMutationId?: string; + id: string; +} +export interface CreateFunctionDefinitionInput { + clientMutationId?: string; + functionDefinition: { + accessChannels?: string[]; + anonymousCallable?: boolean; + category: string; + concurrency?: number; + createdByPrincipal?: string; + databaseId: string; + description?: string; + fnCategory?: string; + functionColumns?: Record; + graphId?: string; + icon?: string; + image?: string; + inputs?: Record; + integrations?: string[]; + isPublished?: boolean; + maxAttempts?: number; + moduleTable?: string; + name: string; + outputs?: Record; + payloadArgs?: Record; + priority?: number; + props?: Record; + protected?: boolean; + publishedAt?: string; + queueName?: string; + requiredBuckets?: string[]; + requiredCapabilities?: Record; + requiredConfigs?: ResourceRequirementInput[]; + requiredModels?: string[]; + requiredModules?: string[]; + requiredSecrets?: ResourceRequirementInput[]; + resources?: Record; + runtime?: string; + scaleMax?: number; + scaleMin?: number; + targetFunction?: string; + targetSchema?: string; + timeoutSeconds?: number; + updatedByPrincipal?: string; + volatile?: boolean; + }; +} +export interface FunctionDefinitionPatch { + accessChannels?: string[] | null; + anonymousCallable?: boolean | null; + category?: string | null; + concurrency?: number | null; + createdByPrincipal?: string | null; + databaseId?: string | null; + description?: string | null; + fnCategory?: string | null; + functionColumns?: Record | null; + graphId?: string | null; + icon?: string | null; + image?: string | null; + inputs?: Record | null; + integrations?: string[] | null; + isPublished?: boolean | null; + maxAttempts?: number | null; + moduleTable?: string | null; + name?: string | null; + outputs?: Record | null; + payloadArgs?: Record | null; + priority?: number | null; + props?: Record | null; + protected?: boolean | null; + publishedAt?: string | null; + queueName?: string | null; + requiredBuckets?: string[] | null; + requiredCapabilities?: Record | null; + requiredConfigs?: ResourceRequirementInput[] | null; + requiredModels?: string[] | null; + requiredModules?: string[] | null; + requiredSecrets?: ResourceRequirementInput[] | null; + resources?: Record | null; + runtime?: string | null; + scaleMax?: number | null; + scaleMin?: number | null; + targetFunction?: string | null; + targetSchema?: string | null; + timeoutSeconds?: number | null; + updatedByPrincipal?: string | null; + volatile?: boolean | null; +} +export interface UpdateFunctionDefinitionInput { + clientMutationId?: string; + id: string; + functionDefinitionPatch: FunctionDefinitionPatch; +} +export interface DeleteFunctionDefinitionInput { + clientMutationId?: string; + id: string; +} +export interface CreateFunctionDeploymentInput { + clientMutationId?: string; + functionDeployment: { + annotations?: Record; + concurrency?: number; + createdByPrincipal?: string; + databaseId: string; + errorCount?: number; + handlerName?: string; + image: string; + imageVersion?: string; + labels?: Record; + lastError?: string; + lastErrorAt?: string; + namespaceId: string; + realm?: string; + resources?: Record; + revision?: number; + scaleMax?: number; + scaleMin?: number; + serviceName?: string; + serviceUrl?: string; + status?: string; + timeoutSeconds?: number; + updatedByPrincipal?: string; + }; +} +export interface FunctionDeploymentPatch { + annotations?: Record | null; + concurrency?: number | null; + createdByPrincipal?: string | null; + databaseId?: string | null; + errorCount?: number | null; + handlerName?: string | null; + image?: string | null; + imageVersion?: string | null; + labels?: Record | null; + lastError?: string | null; + lastErrorAt?: string | null; + namespaceId?: string | null; + realm?: string | null; + resources?: Record | null; + revision?: number | null; + scaleMax?: number | null; + scaleMin?: number | null; + serviceName?: string | null; + serviceUrl?: string | null; + status?: string | null; + timeoutSeconds?: number | null; + updatedByPrincipal?: string | null; +} +export interface UpdateFunctionDeploymentInput { + clientMutationId?: string; + id: string; + functionDeploymentPatch: FunctionDeploymentPatch; +} +export interface DeleteFunctionDeploymentInput { + clientMutationId?: string; + id: string; +} +export interface CreateFunctionDeploymentEventInput { + clientMutationId?: string; + functionDeploymentEvent: { + actorId?: string; + databaseId: string; + deploymentId: string; + eventType: string; + message?: string; + metadata?: Record; + }; +} +export interface FunctionDeploymentEventPatch { + actorId?: string | null; + databaseId?: string | null; + deploymentId?: string | null; + eventType?: string | null; + message?: string | null; + metadata?: Record | null; +} +export interface UpdateFunctionDeploymentEventInput { + clientMutationId?: string; + id: string; + functionDeploymentEventPatch: FunctionDeploymentEventPatch; +} +export interface DeleteFunctionDeploymentEventInput { + clientMutationId?: string; + id: string; +} +export interface CreateFunctionExecutionLogInput { + clientMutationId?: string; + functionExecutionLog: { + actorId?: string; + databaseId: string; + invocationId?: string; + logLevel?: string; + message: string; + metadata?: Record; + taskIdentifier?: string; + }; +} +export interface FunctionExecutionLogPatch { + actorId?: string | null; + databaseId?: string | null; + invocationId?: string | null; + logLevel?: string | null; + message?: string | null; + metadata?: Record | null; + taskIdentifier?: string | null; +} +export interface UpdateFunctionExecutionLogInput { + clientMutationId?: string; + id: string; + functionExecutionLogPatch: FunctionExecutionLogPatch; +} +export interface DeleteFunctionExecutionLogInput { + clientMutationId?: string; + id: string; +} +export interface CreateFunctionGraphCommitInput { + clientMutationId?: string; + functionGraphCommit: { + authorId?: string; + committerId?: string; + date?: string; + message?: string; + parentIds?: string[]; + scopeId: string; + storeId: string; + treeId?: string; + }; +} +export interface FunctionGraphCommitPatch { + authorId?: string | null; + committerId?: string | null; + date?: string | null; + message?: string | null; + parentIds?: string[] | null; + scopeId?: string | null; + storeId?: string | null; + treeId?: string | null; +} +export interface UpdateFunctionGraphCommitInput { + clientMutationId?: string; + id: string; + functionGraphCommitPatch: FunctionGraphCommitPatch; +} +export interface DeleteFunctionGraphCommitInput { + clientMutationId?: string; + id: string; +} +export interface CreateFunctionGraphInput { + clientMutationId?: string; + functionGraph: { + context?: string; + createdBy?: string; + definitionsCommitId: string; + description?: string; + isValid?: boolean; + name?: string; + scopeId: string; + storeId: string; + validationErrors?: Record; + }; +} +export interface FunctionGraphPatch { + context?: string | null; + createdBy?: string | null; + definitionsCommitId?: string | null; + description?: string | null; + isValid?: boolean | null; + name?: string | null; + scopeId?: string | null; + storeId?: string | null; + validationErrors?: Record | null; +} +export interface UpdateFunctionGraphInput { + clientMutationId?: string; + id: string; + functionGraphPatch: FunctionGraphPatch; +} +export interface DeleteFunctionGraphInput { + clientMutationId?: string; + id: string; +} +export interface CreateFunctionGraphExecutionInput { + clientMutationId?: string; + functionGraphExecution: { + actorId?: string; + completedAt?: string; + currentWave?: number; + definitionsCommitId?: string; + entityId?: string; + entityType?: string; + errorCode?: string; + errorMessage?: string; + executionPlan?: Record; + graphId: string; + inputPayload?: Record; + invocationCreatedAt?: string; + invocationId?: string; + lastProgressAt?: string; + maxPendingJobs?: number; + maxTicks?: number; + nodeOutputs?: Record; + organizationId?: string; + outputNames?: string[]; + outputNode?: string; + outputPayload?: Record; + outputPort?: string; + parentExecutionId?: string; + parentInvocationId?: string; + parentNodeName?: string; + principalId?: string; + scopeId: string; + startedAt?: string; + status?: string; + tickCount?: number; + timeoutAt?: string; + }; +} +export interface FunctionGraphExecutionPatch { + actorId?: string | null; + completedAt?: string | null; + currentWave?: number | null; + definitionsCommitId?: string | null; + entityId?: string | null; + entityType?: string | null; + errorCode?: string | null; + errorMessage?: string | null; + executionPlan?: Record | null; + graphId?: string | null; + inputPayload?: Record | null; + invocationCreatedAt?: string | null; + invocationId?: string | null; + lastProgressAt?: string | null; + maxPendingJobs?: number | null; + maxTicks?: number | null; + nodeOutputs?: Record | null; + organizationId?: string | null; + outputNames?: string[] | null; + outputNode?: string | null; + outputPayload?: Record | null; + outputPort?: string | null; + parentExecutionId?: string | null; + parentInvocationId?: string | null; + parentNodeName?: string | null; + principalId?: string | null; + scopeId?: string | null; + startedAt?: string | null; + status?: string | null; + tickCount?: number | null; + timeoutAt?: string | null; +} +export interface UpdateFunctionGraphExecutionInput { + clientMutationId?: string; + id: string; + functionGraphExecutionPatch: FunctionGraphExecutionPatch; +} +export interface DeleteFunctionGraphExecutionInput { + clientMutationId?: string; + id: string; +} +export interface CreateFunctionGraphExecutionNodeStateInput { + clientMutationId?: string; + functionGraphExecutionNodeState: { + callbackInputs?: Record; + callbackMeta?: Record; + callbackTokenHash?: string; + completedAt?: string; + errorCode?: string; + errorMessage?: string; + executionId: string; + expiryDefaultOutput?: Record; + expiryEscalatedAt?: string; + expiryPolicy?: string; + nodeName: string; + nodePath?: string[]; + outputId?: string; + scopeId: string; + startedAt?: string; + status?: string; + waitingDeadlineAt?: string; + waitingOn?: string; + waitingSince?: string; + }; +} +export interface FunctionGraphExecutionNodeStatePatch { + callbackInputs?: Record | null; + callbackMeta?: Record | null; + callbackTokenHash?: string | null; + completedAt?: string | null; + errorCode?: string | null; + errorMessage?: string | null; + executionId?: string | null; + expiryDefaultOutput?: Record | null; + expiryEscalatedAt?: string | null; + expiryPolicy?: string | null; + nodeName?: string | null; + nodePath?: string[] | null; + outputId?: string | null; + scopeId?: string | null; + startedAt?: string | null; + status?: string | null; + waitingDeadlineAt?: string | null; + waitingOn?: string | null; + waitingSince?: string | null; +} +export interface UpdateFunctionGraphExecutionNodeStateInput { + clientMutationId?: string; + id: string; + functionGraphExecutionNodeStatePatch: FunctionGraphExecutionNodeStatePatch; +} +export interface DeleteFunctionGraphExecutionNodeStateInput { + clientMutationId?: string; + id: string; +} +export interface CreateFunctionGraphExecutionOutputInput { + clientMutationId?: string; + functionGraphExecutionOutput: { + data: Record; + hash: Base64EncodedBinary; + scopeId: string; + }; +} +export interface FunctionGraphExecutionOutputPatch { + data?: Record | null; + hash?: Base64EncodedBinary | null; + scopeId?: string | null; +} +export interface UpdateFunctionGraphExecutionOutputInput { + clientMutationId?: string; + id: string; + functionGraphExecutionOutputPatch: FunctionGraphExecutionOutputPatch; +} +export interface DeleteFunctionGraphExecutionOutputInput { + clientMutationId?: string; + id: string; +} +export interface CreateFunctionGraphObjectInput { + clientMutationId?: string; + functionGraphObject: { + data?: Record; + kids?: string[]; + ktree?: string[]; + scopeId: string; + }; +} +export interface FunctionGraphObjectPatch { + data?: Record | null; + kids?: string[] | null; + ktree?: string[] | null; + scopeId?: string | null; +} +export interface UpdateFunctionGraphObjectInput { + clientMutationId?: string; + id: string; + functionGraphObjectPatch: FunctionGraphObjectPatch; +} +export interface DeleteFunctionGraphObjectInput { + clientMutationId?: string; + id: string; +} +export interface CreateFunctionGraphRefInput { + clientMutationId?: string; + functionGraphRef: { + commitId?: string; + name: string; + scopeId: string; + storeId: string; + }; +} +export interface FunctionGraphRefPatch { + commitId?: string | null; + name?: string | null; + scopeId?: string | null; + storeId?: string | null; +} +export interface UpdateFunctionGraphRefInput { + clientMutationId?: string; + id: string; + functionGraphRefPatch: FunctionGraphRefPatch; +} +export interface DeleteFunctionGraphRefInput { + clientMutationId?: string; + id: string; +} +export interface CreateFunctionGraphStoreInput { + clientMutationId?: string; + functionGraphStore: { + hash?: string; + name: string; + scopeId: string; + }; +} +export interface FunctionGraphStorePatch { + hash?: string | null; + name?: string | null; + scopeId?: string | null; +} +export interface UpdateFunctionGraphStoreInput { + clientMutationId?: string; + id: string; + functionGraphStorePatch: FunctionGraphStorePatch; +} +export interface DeleteFunctionGraphStoreInput { + clientMutationId?: string; + id: string; +} +export interface CreateFunctionInvocationAttemptInput { + clientMutationId?: string; + functionInvocationAttempt: { + actorId?: string; + attempt: number; + databaseId: string; + durationMs?: number; + error?: string; + errorDetail?: Record; + invocationCreatedAt: string; + invocationId: string; + startedAt?: string; + success: boolean; + taskIdentifier: string; + }; +} +export interface FunctionInvocationAttemptPatch { + actorId?: string | null; + attempt?: number | null; + databaseId?: string | null; + durationMs?: number | null; + error?: string | null; + errorDetail?: Record | null; + invocationCreatedAt?: string | null; + invocationId?: string | null; + startedAt?: string | null; + success?: boolean | null; + taskIdentifier?: string | null; +} +export interface UpdateFunctionInvocationAttemptInput { + clientMutationId?: string; + id: string; + functionInvocationAttemptPatch: FunctionInvocationAttemptPatch; +} +export interface DeleteFunctionInvocationAttemptInput { + clientMutationId?: string; + id: string; +} +export interface CreateFunctionInvocationInput { + clientMutationId?: string; + functionInvocation: { + actorId?: string; + apiBindingId?: string; + channel: string; + completedAt?: string; + createdByPrincipal?: string; + databaseId: string; + definitionScope?: string; + durationMs?: number; + entityId?: string; + entityType?: string; + error?: string; + functionDefinitionId?: string; + graphExecutionId?: string; + jobId?: string; + organizationId?: string; + parentInvocationId?: string; + payload?: Record; + principalId?: string; + provenance?: Record; + result?: Record; + startedAt?: string; + status?: string; + taskIdentifier: string; + }; +} +export interface FunctionInvocationPatch { + actorId?: string | null; + apiBindingId?: string | null; + channel?: string | null; + completedAt?: string | null; + createdByPrincipal?: string | null; + databaseId?: string | null; + definitionScope?: string | null; + durationMs?: number | null; + entityId?: string | null; + entityType?: string | null; + error?: string | null; + functionDefinitionId?: string | null; + graphExecutionId?: string | null; + jobId?: string | null; + organizationId?: string | null; + parentInvocationId?: string | null; + payload?: Record | null; + principalId?: string | null; + provenance?: Record | null; + result?: Record | null; + startedAt?: string | null; + status?: string | null; + taskIdentifier?: string | null; +} +export interface UpdateFunctionInvocationInput { + clientMutationId?: string; + id: string; + functionInvocationPatch: FunctionInvocationPatch; +} +export interface DeleteFunctionInvocationInput { + clientMutationId?: string; + id: string; +} +export interface CreateGetAllTreeNodesRecordInput { + clientMutationId?: string; + getAllTreeNodesRecord: { + data?: Record; + path?: string[]; + }; +} +export interface GetAllTreeNodesRecordPatch { + data?: Record | null; + path?: string[] | null; +} +export interface UpdateGetAllTreeNodesRecordInput { + clientMutationId?: string; + id: string; + getAllTreeNodesRecordPatch: GetAllTreeNodesRecordPatch; +} +export interface DeleteGetAllTreeNodesRecordInput { + clientMutationId?: string; + id: string; +} +export interface CreateImageInput { + clientMutationId?: string; + image: { + createdByPrincipal?: string; + databaseId: string; + description?: string; + digest?: string; + expiresAt?: string; + isPublished?: boolean; + labels?: Record; + metadata?: Record; + name: string; + ownerId?: string; + platformOnly?: boolean; + registryHost?: string; + repository: string; + runtime?: string; + tag?: string; + updatedByPrincipal?: string; + }; +} +export interface ImagePatch { + createdByPrincipal?: string | null; + databaseId?: string | null; + description?: string | null; + digest?: string | null; + expiresAt?: string | null; + isPublished?: boolean | null; + labels?: Record | null; + metadata?: Record | null; + name?: string | null; + ownerId?: string | null; + platformOnly?: boolean | null; + registryHost?: string | null; + repository?: string | null; + runtime?: string | null; + tag?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdateImageInput { + clientMutationId?: string; + id: string; + imagePatch: ImagePatch; +} +export interface DeleteImageInput { + clientMutationId?: string; + id: string; +} +export interface CreateImageGrantInput { + clientMutationId?: string; + imageGrant: { + actions?: string[]; + createdByPrincipal?: string; + databaseId: string; + expiresAt?: string; + grantedBy?: string; + granteeKey: string; + granteeScope: string; + imageId: string; + updatedByPrincipal?: string; + }; +} +export interface ImageGrantPatch { + actions?: string[] | null; + createdByPrincipal?: string | null; + databaseId?: string | null; + expiresAt?: string | null; + grantedBy?: string | null; + granteeKey?: string | null; + granteeScope?: string | null; + imageId?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdateImageGrantInput { + clientMutationId?: string; + id: string; + imageGrantPatch: ImageGrantPatch; +} +export interface DeleteImageGrantInput { + clientMutationId?: string; + id: string; +} +export interface CreateInfraCommitInput { + clientMutationId?: string; + infraCommit: { + authorId?: string; + committerId?: string; + databaseId: string; + date?: string; + message?: string; + parentIds?: string[]; + storeId: string; + treeId?: string; + }; +} +export interface InfraCommitPatch { + authorId?: string | null; + committerId?: string | null; + databaseId?: string | null; + date?: string | null; + message?: string | null; + parentIds?: string[] | null; + storeId?: string | null; + treeId?: string | null; +} +export interface UpdateInfraCommitInput { + clientMutationId?: string; + id: string; + infraCommitPatch: InfraCommitPatch; +} +export interface DeleteInfraCommitInput { + clientMutationId?: string; + id: string; +} +export interface CreateInfraGetAllTreeNodesRecordInput { + clientMutationId?: string; + infraGetAllTreeNodesRecord: { + data?: Record; + path?: string[]; + }; +} +export interface InfraGetAllTreeNodesRecordPatch { + data?: Record | null; + path?: string[] | null; +} +export interface UpdateInfraGetAllTreeNodesRecordInput { + clientMutationId?: string; + id: string; + infraGetAllTreeNodesRecordPatch: InfraGetAllTreeNodesRecordPatch; +} +export interface DeleteInfraGetAllTreeNodesRecordInput { + clientMutationId?: string; + id: string; +} +export interface CreateInfraObjectInput { + clientMutationId?: string; + infraObject: { + data?: Record; + databaseId: string; + kids?: string[]; + ktree?: string[]; + }; +} +export interface InfraObjectPatch { + data?: Record | null; + databaseId?: string | null; + kids?: string[] | null; + ktree?: string[] | null; +} +export interface UpdateInfraObjectInput { + clientMutationId?: string; + id: string; + infraObjectPatch: InfraObjectPatch; +} +export interface DeleteInfraObjectInput { + clientMutationId?: string; + id: string; +} +export interface CreateInfraRefInput { + clientMutationId?: string; + infraRef: { + commitId?: string; + databaseId: string; + name: string; + storeId: string; + }; +} +export interface InfraRefPatch { + commitId?: string | null; + databaseId?: string | null; + name?: string | null; + storeId?: string | null; +} +export interface UpdateInfraRefInput { + clientMutationId?: string; + id: string; + infraRefPatch: InfraRefPatch; +} +export interface DeleteInfraRefInput { + clientMutationId?: string; + id: string; +} +export interface CreateInfraStoreInput { + clientMutationId?: string; + infraStore: { + databaseId: string; + hash?: string; + name: string; + }; +} +export interface InfraStorePatch { + databaseId?: string | null; + hash?: string | null; + name?: string | null; +} +export interface UpdateInfraStoreInput { + clientMutationId?: string; + id: string; + infraStorePatch: InfraStorePatch; +} +export interface DeleteInfraStoreInput { + clientMutationId?: string; + id: string; +} +export interface CreateIntegrationProviderInput { + clientMutationId?: string; + integrationProvider: { + brand?: Record; + category?: string; + description?: string; + icon?: string; + logo?: ConstructiveInternalTypeImage; + name: string; + requiredConfigs?: ResourceRequirementInput[]; + requiredSecrets?: ResourceRequirementInput[]; + slug: string; + }; +} +export interface IntegrationProviderPatch { + brand?: Record | null; + category?: string | null; + description?: string | null; + icon?: string | null; + logo?: ConstructiveInternalTypeImage | null; + logoUpload?: File | null; + name?: string | null; + requiredConfigs?: ResourceRequirementInput[] | null; + requiredSecrets?: ResourceRequirementInput[] | null; + slug?: string | null; +} +export interface UpdateIntegrationProviderInput { + clientMutationId?: string; + id: string; + integrationProviderPatch: IntegrationProviderPatch; +} +export interface DeleteIntegrationProviderInput { + clientMutationId?: string; + id: string; +} +export interface CreateNamespaceInput { + clientMutationId?: string; + namespace: { + annotations?: Record; + clusterId?: string; + databaseId: string; + description?: string; + isActive?: boolean; + isManaged?: boolean; + labels?: Record; + lastError?: string; + name: string; + namespaceName: string; + status?: string; + }; +} +export interface NamespacePatch { + annotations?: Record | null; + clusterId?: string | null; + databaseId?: string | null; + description?: string | null; + isActive?: boolean | null; + isManaged?: boolean | null; + labels?: Record | null; + lastError?: string | null; + name?: string | null; + namespaceName?: string | null; + status?: string | null; +} +export interface UpdateNamespaceInput { + clientMutationId?: string; + id: string; + namespacePatch: NamespacePatch; +} +export interface DeleteNamespaceInput { + clientMutationId?: string; + id: string; +} +export interface CreateNamespaceEventInput { + clientMutationId?: string; + namespaceEvent: { + actorId?: string; + databaseId: string; + eventType: string; + message?: string; + metadata?: Record; + namespaceId: string; + }; +} +export interface NamespaceEventPatch { + actorId?: string | null; + databaseId?: string | null; + eventType?: string | null; + message?: string | null; + metadata?: Record | null; + namespaceId?: string | null; +} +export interface UpdateNamespaceEventInput { + clientMutationId?: string; + id: string; + namespaceEventPatch: NamespaceEventPatch; +} +export interface DeleteNamespaceEventInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformBuildInput { + clientMutationId?: string; + platformBuild: { + actorId?: string; + attempt?: number; + commitSha?: string; + conclusion?: string; + createdByPrincipal?: string; + eventId?: string; + finishedAt?: string; + imageRef?: string; + jobId?: string; + logs?: ConstructiveInternalTypeUpload; + matrixKey?: string; + metadata?: Record; + proposalId?: string; + ref?: string; + repositoryId: string; + startedAt?: string; + status?: string; + updatedByPrincipal?: string; + workflowId?: string; + }; +} +export interface PlatformBuildPatch { + actorId?: string | null; + attempt?: number | null; + commitSha?: string | null; + conclusion?: string | null; + createdByPrincipal?: string | null; + eventId?: string | null; + finishedAt?: string | null; + imageRef?: string | null; + jobId?: string | null; + logs?: ConstructiveInternalTypeUpload | null; + logsUpload?: File | null; + matrixKey?: string | null; + metadata?: Record | null; + proposalId?: string | null; + ref?: string | null; + repositoryId?: string | null; + startedAt?: string | null; + status?: string | null; + updatedByPrincipal?: string | null; + workflowId?: string | null; +} +export interface UpdatePlatformBuildInput { + clientMutationId?: string; + id: string; + platformBuildPatch: PlatformBuildPatch; +} +export interface DeletePlatformBuildInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformBuildStepInput { + clientMutationId?: string; + platformBuildStep: { + buildId: string; + createdByPrincipal?: string; + exitCode?: number; + finishedAt?: string; + kind?: string; + logBytes?: string; + logOffset?: string; + name: string; + parentSeq?: number; + recordedAt?: string; + seq: number; + startedAt?: string; + status?: string; + summary?: Record; + }; +} +export interface PlatformBuildStepPatch { + buildId?: string | null; + createdByPrincipal?: string | null; + exitCode?: number | null; + finishedAt?: string | null; + kind?: string | null; + logBytes?: string | null; + logOffset?: string | null; + name?: string | null; + parentSeq?: number | null; + recordedAt?: string | null; + seq?: number | null; + startedAt?: string | null; + status?: string | null; + summary?: Record | null; +} +export interface UpdatePlatformBuildStepInput { + clientMutationId?: string; + id: string; + platformBuildStepPatch: PlatformBuildStepPatch; +} +export interface DeletePlatformBuildStepInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformBuilderBindingInput { + clientMutationId?: string; + platformBuilderBinding: { + createdBy?: string; + createdByPrincipal?: string; + installationId: string; + lastError?: string; + metadata?: Record; + namespaceId: string; + observedHost?: string; + realm?: string; + status?: string; + updatedBy?: string; + updatedByPrincipal?: string; + }; +} +export interface PlatformBuilderBindingPatch { + createdBy?: string | null; + createdByPrincipal?: string | null; + installationId?: string | null; + lastError?: string | null; + metadata?: Record | null; + namespaceId?: string | null; + observedHost?: string | null; + realm?: string | null; + status?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdatePlatformBuilderBindingInput { + clientMutationId?: string; + id: string; + platformBuilderBindingPatch: PlatformBuilderBindingPatch; +} +export interface DeletePlatformBuilderBindingInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformFunctionApiBindingInput { + clientMutationId?: string; + platformFunctionApiBinding: { + alias?: string; + apiId: string; + config?: Record; + functionDefinitionId: string; + }; +} +export interface PlatformFunctionApiBindingPatch { + alias?: string | null; + apiId?: string | null; + config?: Record | null; + functionDefinitionId?: string | null; +} +export interface UpdatePlatformFunctionApiBindingInput { + clientMutationId?: string; + id: string; + platformFunctionApiBindingPatch: PlatformFunctionApiBindingPatch; +} +export interface DeletePlatformFunctionApiBindingInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformFunctionCapabilityBindingInput { + clientMutationId?: string; + platformFunctionCapabilityBinding: { + bucketId?: string; + functionId?: string; + graphId?: string; + key?: string; + lifecycle: string; + metadata?: Record; + }; +} +export interface PlatformFunctionCapabilityBindingPatch { + bucketId?: string | null; + functionId?: string | null; + graphId?: string | null; + key?: string | null; + lifecycle?: string | null; + metadata?: Record | null; +} +export interface UpdatePlatformFunctionCapabilityBindingInput { + clientMutationId?: string; + id: string; + platformFunctionCapabilityBindingPatch: PlatformFunctionCapabilityBindingPatch; +} +export interface DeletePlatformFunctionCapabilityBindingInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformFunctionDefinitionInput { + clientMutationId?: string; + platformFunctionDefinition: { + accessChannels?: string[]; + anonymousCallable?: boolean; + billable?: boolean; + category: string; + concurrency?: number; + createdByPrincipal?: string; + description?: string; + fnCategory?: string; + functionColumns?: Record; + graphId?: string; + icon?: string; + image?: string; + inputs?: Record; + integrations?: string[]; + isPublished?: boolean; + maxAttempts?: number; + moduleTable?: string; + name: string; + outputs?: Record; + payloadArgs?: Record; + priority?: number; + props?: Record; + protected?: boolean; + publishedAt?: string; + queueName?: string; + requiredBuckets?: string[]; + requiredCapabilities?: Record; + requiredConfigs?: ResourceRequirementInput[]; + requiredModels?: string[]; + requiredModules?: string[]; + requiredSecrets?: ResourceRequirementInput[]; + resources?: Record; + runtime?: string; + scaleMax?: number; + scaleMin?: number; + system?: boolean; + targetFunction?: string; + targetSchema?: string; + timeoutSeconds?: number; + updatedByPrincipal?: string; + volatile?: boolean; + }; +} +export interface PlatformFunctionDefinitionPatch { + accessChannels?: string[] | null; + anonymousCallable?: boolean | null; + billable?: boolean | null; + category?: string | null; + concurrency?: number | null; + createdByPrincipal?: string | null; + description?: string | null; + fnCategory?: string | null; + functionColumns?: Record | null; + graphId?: string | null; + icon?: string | null; + image?: string | null; + inputs?: Record | null; + integrations?: string[] | null; + isPublished?: boolean | null; + maxAttempts?: number | null; + moduleTable?: string | null; + name?: string | null; + outputs?: Record | null; + payloadArgs?: Record | null; + priority?: number | null; + props?: Record | null; + protected?: boolean | null; + publishedAt?: string | null; + queueName?: string | null; + requiredBuckets?: string[] | null; + requiredCapabilities?: Record | null; + requiredConfigs?: ResourceRequirementInput[] | null; + requiredModels?: string[] | null; + requiredModules?: string[] | null; + requiredSecrets?: ResourceRequirementInput[] | null; + resources?: Record | null; + runtime?: string | null; + scaleMax?: number | null; + scaleMin?: number | null; + system?: boolean | null; + targetFunction?: string | null; + targetSchema?: string | null; + timeoutSeconds?: number | null; + updatedByPrincipal?: string | null; + volatile?: boolean | null; +} +export interface UpdatePlatformFunctionDefinitionInput { + clientMutationId?: string; + id: string; + platformFunctionDefinitionPatch: PlatformFunctionDefinitionPatch; +} +export interface DeletePlatformFunctionDefinitionInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformFunctionDeploymentInput { + clientMutationId?: string; + platformFunctionDeployment: { + annotations?: Record; + concurrency?: number; + createdByPrincipal?: string; + errorCount?: number; + handlerName?: string; + image: string; + imageVersion?: string; + labels?: Record; + lastError?: string; + lastErrorAt?: string; + namespaceId: string; + realm?: string; + resources?: Record; + revision?: number; + scaleMax?: number; + scaleMin?: number; + serviceName?: string; + serviceUrl?: string; + status?: string; + timeoutSeconds?: number; + updatedByPrincipal?: string; + }; +} +export interface PlatformFunctionDeploymentPatch { + annotations?: Record | null; + concurrency?: number | null; + createdByPrincipal?: string | null; + errorCount?: number | null; + handlerName?: string | null; + image?: string | null; + imageVersion?: string | null; + labels?: Record | null; + lastError?: string | null; + lastErrorAt?: string | null; + namespaceId?: string | null; + realm?: string | null; + resources?: Record | null; + revision?: number | null; + scaleMax?: number | null; + scaleMin?: number | null; + serviceName?: string | null; + serviceUrl?: string | null; + status?: string | null; + timeoutSeconds?: number | null; + updatedByPrincipal?: string | null; +} +export interface UpdatePlatformFunctionDeploymentInput { + clientMutationId?: string; + id: string; + platformFunctionDeploymentPatch: PlatformFunctionDeploymentPatch; +} +export interface DeletePlatformFunctionDeploymentInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformFunctionDeploymentEventInput { + clientMutationId?: string; + platformFunctionDeploymentEvent: { + actorId?: string; + deploymentId: string; + eventType: string; + message?: string; + metadata?: Record; + }; +} +export interface PlatformFunctionDeploymentEventPatch { + actorId?: string | null; + deploymentId?: string | null; + eventType?: string | null; + message?: string | null; + metadata?: Record | null; +} +export interface UpdatePlatformFunctionDeploymentEventInput { + clientMutationId?: string; + id: string; + platformFunctionDeploymentEventPatch: PlatformFunctionDeploymentEventPatch; +} +export interface DeletePlatformFunctionDeploymentEventInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformFunctionExecutionLogInput { + clientMutationId?: string; + platformFunctionExecutionLog: { + actorId?: string; + invocationId?: string; + logLevel?: string; + message: string; + metadata?: Record; + taskIdentifier?: string; + }; +} +export interface PlatformFunctionExecutionLogPatch { + actorId?: string | null; + invocationId?: string | null; + logLevel?: string | null; + message?: string | null; + metadata?: Record | null; + taskIdentifier?: string | null; +} +export interface UpdatePlatformFunctionExecutionLogInput { + clientMutationId?: string; + id: string; + platformFunctionExecutionLogPatch: PlatformFunctionExecutionLogPatch; +} +export interface DeletePlatformFunctionExecutionLogInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformFunctionInvocationAttemptInput { + clientMutationId?: string; + platformFunctionInvocationAttempt: { + actorId?: string; + attempt: number; + durationMs?: number; + error?: string; + errorDetail?: Record; + invocationCreatedAt: string; + invocationId: string; + startedAt?: string; + success: boolean; + taskIdentifier: string; + }; +} +export interface PlatformFunctionInvocationAttemptPatch { + actorId?: string | null; + attempt?: number | null; + durationMs?: number | null; + error?: string | null; + errorDetail?: Record | null; + invocationCreatedAt?: string | null; + invocationId?: string | null; + startedAt?: string | null; + success?: boolean | null; + taskIdentifier?: string | null; +} +export interface UpdatePlatformFunctionInvocationAttemptInput { + clientMutationId?: string; + id: string; + platformFunctionInvocationAttemptPatch: PlatformFunctionInvocationAttemptPatch; +} +export interface DeletePlatformFunctionInvocationAttemptInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformFunctionInvocationInput { + clientMutationId?: string; + platformFunctionInvocation: { + actorId?: string; + apiBindingId?: string; + channel: string; + completedAt?: string; + createdByPrincipal?: string; + databaseId?: string; + definitionScope?: string; + durationMs?: number; + entityId?: string; + entityType?: string; + error?: string; + functionDefinitionId?: string; + graphExecutionId?: string; + jobId?: string; + organizationId?: string; + parentInvocationId?: string; + payload?: Record; + principalId?: string; + provenance?: Record; + result?: Record; + startedAt?: string; + status?: string; + taskIdentifier: string; + }; +} +export interface PlatformFunctionInvocationPatch { + actorId?: string | null; + apiBindingId?: string | null; + channel?: string | null; + completedAt?: string | null; + createdByPrincipal?: string | null; + databaseId?: string | null; + definitionScope?: string | null; + durationMs?: number | null; + entityId?: string | null; + entityType?: string | null; + error?: string | null; + functionDefinitionId?: string | null; + graphExecutionId?: string | null; + jobId?: string | null; + organizationId?: string | null; + parentInvocationId?: string | null; + payload?: Record | null; + principalId?: string | null; + provenance?: Record | null; + result?: Record | null; + startedAt?: string | null; + status?: string | null; + taskIdentifier?: string | null; +} +export interface UpdatePlatformFunctionInvocationInput { + clientMutationId?: string; + id: string; + platformFunctionInvocationPatch: PlatformFunctionInvocationPatch; +} +export interface DeletePlatformFunctionInvocationInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformImageInput { + clientMutationId?: string; + platformImage: { + createdByPrincipal?: string; + description?: string; + digest?: string; + expiresAt?: string; + isPublished?: boolean; + labels?: Record; + metadata?: Record; + name: string; + ownerId?: string; + platformOnly?: boolean; + registryHost?: string; + repository: string; + runtime?: string; + tag?: string; + updatedByPrincipal?: string; + }; +} +export interface PlatformImagePatch { + createdByPrincipal?: string | null; + description?: string | null; + digest?: string | null; + expiresAt?: string | null; + isPublished?: boolean | null; + labels?: Record | null; + metadata?: Record | null; + name?: string | null; + ownerId?: string | null; + platformOnly?: boolean | null; + registryHost?: string | null; + repository?: string | null; + runtime?: string | null; + tag?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdatePlatformImageInput { + clientMutationId?: string; + id: string; + platformImagePatch: PlatformImagePatch; +} +export interface DeletePlatformImageInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformImageGrantInput { + clientMutationId?: string; + platformImageGrant: { + actions?: string[]; + createdByPrincipal?: string; + expiresAt?: string; + grantedBy?: string; + granteeKey: string; + granteeScope: string; + imageId: string; + updatedByPrincipal?: string; + }; +} +export interface PlatformImageGrantPatch { + actions?: string[] | null; + createdByPrincipal?: string | null; + expiresAt?: string | null; + grantedBy?: string | null; + granteeKey?: string | null; + granteeScope?: string | null; + imageId?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdatePlatformImageGrantInput { + clientMutationId?: string; + id: string; + platformImageGrantPatch: PlatformImageGrantPatch; +} +export interface DeletePlatformImageGrantInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformInfraCommitInput { + clientMutationId?: string; + platformInfraCommit: { + authorId?: string; + committerId?: string; + date?: string; + message?: string; + parentIds?: string[]; + scopeId: string; + storeId: string; + treeId?: string; + }; +} +export interface PlatformInfraCommitPatch { + authorId?: string | null; + committerId?: string | null; + date?: string | null; + message?: string | null; + parentIds?: string[] | null; + scopeId?: string | null; + storeId?: string | null; + treeId?: string | null; +} +export interface UpdatePlatformInfraCommitInput { + clientMutationId?: string; + id: string; + platformInfraCommitPatch: PlatformInfraCommitPatch; +} +export interface DeletePlatformInfraCommitInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformInfraGetAllTreeNodesRecordInput { + clientMutationId?: string; + platformInfraGetAllTreeNodesRecord: { + data?: Record; + path?: string[]; + }; +} +export interface PlatformInfraGetAllTreeNodesRecordPatch { + data?: Record | null; + path?: string[] | null; +} +export interface UpdatePlatformInfraGetAllTreeNodesRecordInput { + clientMutationId?: string; + id: string; + platformInfraGetAllTreeNodesRecordPatch: PlatformInfraGetAllTreeNodesRecordPatch; +} +export interface DeletePlatformInfraGetAllTreeNodesRecordInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformInfraObjectInput { + clientMutationId?: string; + platformInfraObject: { + data?: Record; + kids?: string[]; + ktree?: string[]; + scopeId: string; + }; +} +export interface PlatformInfraObjectPatch { + data?: Record | null; + kids?: string[] | null; + ktree?: string[] | null; + scopeId?: string | null; +} +export interface UpdatePlatformInfraObjectInput { + clientMutationId?: string; + id: string; + platformInfraObjectPatch: PlatformInfraObjectPatch; +} +export interface DeletePlatformInfraObjectInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformInfraRefInput { + clientMutationId?: string; + platformInfraRef: { + commitId?: string; + name: string; + scopeId: string; + storeId: string; + }; +} +export interface PlatformInfraRefPatch { + commitId?: string | null; + name?: string | null; + scopeId?: string | null; + storeId?: string | null; +} +export interface UpdatePlatformInfraRefInput { + clientMutationId?: string; + id: string; + platformInfraRefPatch: PlatformInfraRefPatch; +} +export interface DeletePlatformInfraRefInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformInfraStoreInput { + clientMutationId?: string; + platformInfraStore: { + hash?: string; + name: string; + scopeId: string; + }; +} +export interface PlatformInfraStorePatch { + hash?: string | null; + name?: string | null; + scopeId?: string | null; +} +export interface UpdatePlatformInfraStoreInput { + clientMutationId?: string; + id: string; + platformInfraStorePatch: PlatformInfraStorePatch; +} +export interface DeletePlatformInfraStoreInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformK8sResourceKindInput { + clientMutationId?: string; + platformK8sResourceKind: { + active?: boolean; + commitId?: string; + definition: Record; + description?: string; + label?: string; + slug: string; + storeId?: string; + }; +} +export interface PlatformK8sResourceKindPatch { + active?: boolean | null; + commitId?: string | null; + definition?: Record | null; + description?: string | null; + label?: string | null; + slug?: string | null; + storeId?: string | null; +} +export interface UpdatePlatformK8sResourceKindInput { + clientMutationId?: string; + id: string; + platformK8sResourceKindPatch: PlatformK8sResourceKindPatch; +} +export interface DeletePlatformK8sResourceKindInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformK8sSpecRuleInput { + clientMutationId?: string; + platformK8sSpecRule: { + active?: boolean; + commitId?: string; + definition: Record; + description?: string; + label?: string; + slug: string; + storeId?: string; + }; +} +export interface PlatformK8sSpecRulePatch { + active?: boolean | null; + commitId?: string | null; + definition?: Record | null; + description?: string | null; + label?: string | null; + slug?: string | null; + storeId?: string | null; +} +export interface UpdatePlatformK8sSpecRuleInput { + clientMutationId?: string; + id: string; + platformK8sSpecRulePatch: PlatformK8sSpecRulePatch; +} +export interface DeletePlatformK8sSpecRuleInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformNamespaceInput { + clientMutationId?: string; + platformNamespace: { + annotations?: Record; + clusterId?: string; + description?: string; + isActive?: boolean; + isManaged?: boolean; + labels?: Record; + lastError?: string; + name: string; + namespaceName: string; + status?: string; + }; +} +export interface PlatformNamespacePatch { + annotations?: Record | null; + clusterId?: string | null; + description?: string | null; + isActive?: boolean | null; + isManaged?: boolean | null; + labels?: Record | null; + lastError?: string | null; + name?: string | null; + namespaceName?: string | null; + status?: string | null; +} +export interface UpdatePlatformNamespaceInput { + clientMutationId?: string; + id: string; + platformNamespacePatch: PlatformNamespacePatch; +} +export interface DeletePlatformNamespaceInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformNamespaceEventInput { + clientMutationId?: string; + platformNamespaceEvent: { + actorId?: string; + eventType: string; + message?: string; + metadata?: Record; + namespaceId: string; + }; +} +export interface PlatformNamespaceEventPatch { + actorId?: string | null; + eventType?: string | null; + message?: string | null; + metadata?: Record | null; + namespaceId?: string | null; +} +export interface UpdatePlatformNamespaceEventInput { + clientMutationId?: string; + id: string; + platformNamespaceEventPatch: PlatformNamespaceEventPatch; +} +export interface DeletePlatformNamespaceEventInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformProposalCommentInput { + clientMutationId?: string; + platformProposalComment: { + actorId?: string; + attachments?: ConstructiveInternalTypeUpload[]; + body: string; + createdBy?: string; + createdByPrincipal?: string; + embedding?: number[]; + embeddingText?: string; + line?: number; + outdatedAt?: string; + path?: string; + proposalId: string; + resolvedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; + }; +} +export interface PlatformProposalCommentPatch { + actorId?: string | null; + attachments?: ConstructiveInternalTypeUpload[] | null; + body?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + embedding?: number[] | null; + embeddingText?: string | null; + line?: number | null; + outdatedAt?: string | null; + path?: string | null; + proposalId?: string | null; + resolvedAt?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdatePlatformProposalCommentInput { + clientMutationId?: string; + id: string; + platformProposalCommentPatch: PlatformProposalCommentPatch; +} +export interface DeletePlatformProposalCommentInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformProposalInput { + clientMutationId?: string; + platformProposal: { + actorId?: string; + body?: string; + closedReason?: string; + createdBy?: string; + createdByPrincipal?: string; + decidedAt?: string; + dueAt?: string; + embedding?: number[]; + embeddingText?: string; + kind?: string; + labels?: string[]; + mergeCommit?: string; + mergeMethod?: string; + mergeRequestedAt?: string; + mergedAt?: string; + metadata?: Record; + parentId?: string; + priority?: string; + repositoryId: string; + resolution?: string; + sourceRef?: string; + status?: string; + targetRef?: string; + title: string; + updatedBy?: string; + updatedByPrincipal?: string; + }; +} +export interface PlatformProposalPatch { + actorId?: string | null; + body?: string | null; + closedReason?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + decidedAt?: string | null; + dueAt?: string | null; + embedding?: number[] | null; + embeddingText?: string | null; + kind?: string | null; + labels?: string[] | null; + mergeCommit?: string | null; + mergeMethod?: string | null; + mergeRequestedAt?: string | null; + mergedAt?: string | null; + metadata?: Record | null; + parentId?: string | null; + priority?: string | null; + repositoryId?: string | null; + resolution?: string | null; + sourceRef?: string | null; + status?: string | null; + targetRef?: string | null; + title?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdatePlatformProposalInput { + clientMutationId?: string; + id: string; + platformProposalPatch: PlatformProposalPatch; +} +export interface DeletePlatformProposalInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformProposalFileViewInput { + clientMutationId?: string; + platformProposalFileView: { + blobSha: string; + createdByPrincipal?: string; + path: string; + proposalId: string; + reviewerId: string; + updatedByPrincipal?: string; + viewedAt?: string; + }; +} +export interface PlatformProposalFileViewPatch { + blobSha?: string | null; + createdByPrincipal?: string | null; + path?: string | null; + proposalId?: string | null; + reviewerId?: string | null; + updatedByPrincipal?: string | null; + viewedAt?: string | null; +} +export interface UpdatePlatformProposalFileViewInput { + clientMutationId?: string; + id: string; + platformProposalFileViewPatch: PlatformProposalFileViewPatch; +} +export interface DeletePlatformProposalFileViewInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformProposalReactionInput { + clientMutationId?: string; + platformProposalReaction: { + actorId: string; + commentId?: string; + createdByPrincipal?: string; + emoji: string; + proposalId: string; + updatedByPrincipal?: string; + }; +} +export interface PlatformProposalReactionPatch { + actorId?: string | null; + commentId?: string | null; + createdByPrincipal?: string | null; + emoji?: string | null; + proposalId?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdatePlatformProposalReactionInput { + clientMutationId?: string; + id: string; + platformProposalReactionPatch: PlatformProposalReactionPatch; +} +export interface DeletePlatformProposalReactionInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformProposalReviewInput { + clientMutationId?: string; + platformProposalReview: { + body?: string; + commitSha: string; + createdByPrincipal?: string; + proposalId: string; + reviewerId: string; + submittedAt?: string; + updatedByPrincipal?: string; + verdict: string; + }; +} +export interface PlatformProposalReviewPatch { + body?: string | null; + commitSha?: string | null; + createdByPrincipal?: string | null; + proposalId?: string | null; + reviewerId?: string | null; + submittedAt?: string | null; + updatedByPrincipal?: string | null; + verdict?: string | null; +} +export interface UpdatePlatformProposalReviewInput { + clientMutationId?: string; + id: string; + platformProposalReviewPatch: PlatformProposalReviewPatch; +} +export interface DeletePlatformProposalReviewInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformProposalsChunkInput { + clientMutationId?: string; + platformProposalsChunk: { + actorId?: string; + body: string; + chunkIndex?: number; + embedding?: number[]; + embeddingText?: string; + metadata?: Record; + platformProposalsId: string; + }; +} +export interface PlatformProposalsChunkPatch { + actorId?: string | null; + body?: string | null; + chunkIndex?: number | null; + embedding?: number[] | null; + embeddingText?: string | null; + metadata?: Record | null; + platformProposalsId?: string | null; +} +export interface UpdatePlatformProposalsChunkInput { + clientMutationId?: string; + id: string; + platformProposalsChunkPatch: PlatformProposalsChunkPatch; +} +export interface DeletePlatformProposalsChunkInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformRegistryBindingInput { + clientMutationId?: string; + platformRegistryBinding: { + createdBy?: string; + createdByPrincipal?: string; + metadata?: Record; + namespaceId: string; + observedCredentialVersion?: string; + pullSecretName?: string; + realm?: string; + registryHost: string; + registryId: string; + status?: string; + updatedBy?: string; + updatedByPrincipal?: string; + }; +} +export interface PlatformRegistryBindingPatch { + createdBy?: string | null; + createdByPrincipal?: string | null; + metadata?: Record | null; + namespaceId?: string | null; + observedCredentialVersion?: string | null; + pullSecretName?: string | null; + realm?: string | null; + registryHost?: string | null; + registryId?: string | null; + status?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdatePlatformRegistryBindingInput { + clientMutationId?: string; + id: string; + platformRegistryBindingPatch: PlatformRegistryBindingPatch; +} +export interface DeletePlatformRegistryBindingInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformRegistryInput { + clientMutationId?: string; + platformRegistry: { + authMode?: string; + basePath?: string; + createdByPrincipal?: string; + credentialSecretName?: string; + host?: string; + installationId?: string; + isPublished?: boolean; + kind: string; + labels?: Record; + lastError?: string; + metadata?: Record; + name: string; + platformOnly?: boolean; + role?: string; + status?: string; + updatedByPrincipal?: string; + }; +} +export interface PlatformRegistryPatch { + authMode?: string | null; + basePath?: string | null; + createdByPrincipal?: string | null; + credentialSecretName?: string | null; + host?: string | null; + installationId?: string | null; + isPublished?: boolean | null; + kind?: string | null; + labels?: Record | null; + lastError?: string | null; + metadata?: Record | null; + name?: string | null; + platformOnly?: boolean | null; + role?: string | null; + status?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdatePlatformRegistryInput { + clientMutationId?: string; + id: string; + platformRegistryPatch: PlatformRegistryPatch; +} +export interface DeletePlatformRegistryInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformRegistryGrantInput { + clientMutationId?: string; + platformRegistryGrant: { + actions?: string[]; + createdByPrincipal?: string; + expiresAt?: string; + grantedBy?: string; + granteeKey: string; + granteeScope: string; + registryId: string; + updatedByPrincipal?: string; + }; +} +export interface PlatformRegistryGrantPatch { + actions?: string[] | null; + createdByPrincipal?: string | null; + expiresAt?: string | null; + grantedBy?: string | null; + granteeKey?: string | null; + granteeScope?: string | null; + registryId?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdatePlatformRegistryGrantInput { + clientMutationId?: string; + id: string; + platformRegistryGrantPatch: PlatformRegistryGrantPatch; +} +export interface DeletePlatformRegistryGrantInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformRepositoryInput { + clientMutationId?: string; + platformRepository: { + cloneUrl?: string; + createdBy?: string; + createdByPrincipal?: string; + defaultBranch?: string; + description?: string; + embedding?: number[]; + embeddingText?: string; + externalId?: string; + isArchived?: boolean; + metadata?: Record; + name: string; + ownerId?: string; + provider?: string; + slug: string; + updatedBy?: string; + updatedByPrincipal?: string; + visibility?: string; + }; +} +export interface PlatformRepositoryPatch { + cloneUrl?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + defaultBranch?: string | null; + description?: string | null; + embedding?: number[] | null; + embeddingText?: string | null; + externalId?: string | null; + isArchived?: boolean | null; + metadata?: Record | null; + name?: string | null; + ownerId?: string | null; + provider?: string | null; + slug?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; + visibility?: string | null; +} +export interface UpdatePlatformRepositoryInput { + clientMutationId?: string; + id: string; + platformRepositoryPatch: PlatformRepositoryPatch; +} +export interface DeletePlatformRepositoryInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformRepositoryEventInput { + clientMutationId?: string; + platformRepositoryEvent: { + actorId?: string; + commitSha?: string; + createdByPrincipal?: string; + deliveryId?: string; + eventType: string; + metadata?: Record; + payload?: Record; + ref?: string; + repositoryId: string; + updatedByPrincipal?: string; + }; +} +export interface PlatformRepositoryEventPatch { + actorId?: string | null; + commitSha?: string | null; + createdByPrincipal?: string | null; + deliveryId?: string | null; + eventType?: string | null; + metadata?: Record | null; + payload?: Record | null; + ref?: string | null; + repositoryId?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdatePlatformRepositoryEventInput { + clientMutationId?: string; + id: string; + platformRepositoryEventPatch: PlatformRepositoryEventPatch; +} +export interface DeletePlatformRepositoryEventInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformRepositoryRequiredCheckInput { + clientMutationId?: string; + platformRepositoryRequiredCheck: { + repositoryId: string; + workflowId: string; + }; +} +export interface PlatformRepositoryRequiredCheckPatch { + repositoryId?: string | null; + workflowId?: string | null; +} +export interface UpdatePlatformRepositoryRequiredCheckInput { + clientMutationId?: string; + id: string; + platformRepositoryRequiredCheckPatch: PlatformRepositoryRequiredCheckPatch; +} +export interface DeletePlatformRepositoryRequiredCheckInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformRepositoryWorkflowInput { + clientMutationId?: string; + platformRepositoryWorkflow: { + cancelInProgress?: boolean; + concurrencyKey?: string; + createdBy?: string; + createdByPrincipal?: string; + eventType: string; + graphId?: string; + inputs?: Record; + isEnabled?: boolean; + name: string; + refPattern?: string; + repositoryId: string; + requiredSecrets?: string[]; + slug: string; + updatedBy?: string; + updatedByPrincipal?: string; + }; +} +export interface PlatformRepositoryWorkflowPatch { + cancelInProgress?: boolean | null; + concurrencyKey?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + eventType?: string | null; + graphId?: string | null; + inputs?: Record | null; + isEnabled?: boolean | null; + name?: string | null; + refPattern?: string | null; + repositoryId?: string | null; + requiredSecrets?: string[] | null; + slug?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdatePlatformRepositoryWorkflowInput { + clientMutationId?: string; + id: string; + platformRepositoryWorkflowPatch: PlatformRepositoryWorkflowPatch; +} +export interface DeletePlatformRepositoryWorkflowInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformResourceInput { + clientMutationId?: string; + platformResource: { + annotations?: Record; + createdBy?: string; + createdByPrincipal?: string; + errorCount?: number; + imageRef?: string; + installationId?: string; + integrations?: string[]; + kind: string; + labels?: Record; + lastError?: string; + lastHeartbeatAt?: string; + name: string; + namespaceId: string; + realm?: string; + requiredConfigs?: ResourceRequirementInput[]; + requiredSecrets?: ResourceRequirementInput[]; + resourceDefinitionId?: string; + slug: string; + spec?: Record; + status?: string; + statusObserved?: Record; + updatedBy?: string; + updatedByPrincipal?: string; + }; +} +export interface PlatformResourcePatch { + annotations?: Record | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + errorCount?: number | null; + imageRef?: string | null; + installationId?: string | null; + integrations?: string[] | null; + kind?: string | null; + labels?: Record | null; + lastError?: string | null; + lastHeartbeatAt?: string | null; + name?: string | null; + namespaceId?: string | null; + realm?: string | null; + requiredConfigs?: ResourceRequirementInput[] | null; + requiredSecrets?: ResourceRequirementInput[] | null; + resourceDefinitionId?: string | null; + slug?: string | null; + spec?: Record | null; + status?: string | null; + statusObserved?: Record | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdatePlatformResourceInput { + clientMutationId?: string; + id: string; + platformResourcePatch: PlatformResourcePatch; +} +export interface DeletePlatformResourceInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformResourceDeclaredCapacityInput { + clientMutationId?: string; + platformResourceDeclaredCapacity: { + cpuLimitMillicores?: string; + cpuRequestMillicores?: string; + installationId: string; + isTransient?: boolean; + kind?: string; + memoryLimitBytes?: string; + memoryRequestBytes?: string; + namespaceId: string; + podCountMax?: number; + podCountMin?: number; + source?: string; + sourceId: string; + storageSizeBytes?: string; + storageTotalBytes?: string; + }; +} +export interface PlatformResourceDeclaredCapacityPatch { + cpuLimitMillicores?: string | null; + cpuRequestMillicores?: string | null; + installationId?: string | null; + isTransient?: boolean | null; + kind?: string | null; + memoryLimitBytes?: string | null; + memoryRequestBytes?: string | null; + namespaceId?: string | null; + podCountMax?: number | null; + podCountMin?: number | null; + source?: string | null; + sourceId?: string | null; + storageSizeBytes?: string | null; + storageTotalBytes?: string | null; +} +export interface UpdatePlatformResourceDeclaredCapacityInput { + clientMutationId?: string; + id: string; + platformResourceDeclaredCapacityPatch: PlatformResourceDeclaredCapacityPatch; +} +export interface DeletePlatformResourceDeclaredCapacityInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformResourceDefinitionInput { + clientMutationId?: string; + platformResourceDefinition: { + annotations?: Record; + createdBy?: string; + createdByPrincipal?: string; + defaultSpec?: Record; + description?: string; + integrations?: string[]; + kind: string; + labels?: Record; + name: string; + namespaceId: string; + paramsSchema?: Record; + requiredConfigs?: ResourceRequirementInput[]; + requiredSecrets?: ResourceRequirementInput[]; + slug: string; + stepUpMinAge?: IntervalInput; + updatedBy?: string; + updatedByPrincipal?: string; + }; +} +export interface PlatformResourceDefinitionPatch { + annotations?: Record | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + defaultSpec?: Record | null; + description?: string | null; + integrations?: string[] | null; + kind?: string | null; + labels?: Record | null; + name?: string | null; + namespaceId?: string | null; + paramsSchema?: Record | null; + requiredConfigs?: ResourceRequirementInput[] | null; + requiredSecrets?: ResourceRequirementInput[] | null; + slug?: string | null; + stepUpMinAge?: IntervalInput | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdatePlatformResourceDefinitionInput { + clientMutationId?: string; + id: string; + platformResourceDefinitionPatch: PlatformResourceDefinitionPatch; +} +export interface DeletePlatformResourceDefinitionInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformResourceEventInput { + clientMutationId?: string; + platformResourceEvent: { + actorId?: string; + eventType: string; + message?: string; + metadata?: Record; + resourceId: string; + }; +} +export interface PlatformResourceEventPatch { + actorId?: string | null; + eventType?: string | null; + message?: string | null; + metadata?: Record | null; + resourceId?: string | null; +} +export interface UpdatePlatformResourceEventInput { + clientMutationId?: string; + id: string; + platformResourceEventPatch: PlatformResourceEventPatch; +} +export interface DeletePlatformResourceEventInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformResourceInstallationInput { + clientMutationId?: string; + platformResourceInstallation: { + commitId?: string; + createdBy?: string; + createdByPrincipal?: string; + name: string; + namespaceId: string; + params?: Record; + revision?: number; + slug: string; + status?: string; + storeId?: string; + updatedBy?: string; + updatedByPrincipal?: string; + }; +} +export interface PlatformResourceInstallationPatch { + commitId?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + name?: string | null; + namespaceId?: string | null; + params?: Record | null; + revision?: number | null; + slug?: string | null; + status?: string | null; + storeId?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdatePlatformResourceInstallationInput { + clientMutationId?: string; + id: string; + platformResourceInstallationPatch: PlatformResourceInstallationPatch; +} +export interface DeletePlatformResourceInstallationInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformResourceObservedStorageInput { + clientMutationId?: string; + platformResourceObservedStorage: { + capacity?: string; + capacityBytes?: string; + claimName?: string; + declaredStorageClass?: string; + declaredStorageSizeBytes?: string; + declaredStorageTotalBytes?: string; + installationId: string; + isBound?: boolean; + kind?: string; + namespaceId: string; + phase?: string; + requested?: string; + requestedBytes?: string; + resourceId: string; + resourceStatus?: string; + slug?: string; + storageClass?: string; + storageName?: string; + }; +} +export interface PlatformResourceObservedStoragePatch { + capacity?: string | null; + capacityBytes?: string | null; + claimName?: string | null; + declaredStorageClass?: string | null; + declaredStorageSizeBytes?: string | null; + declaredStorageTotalBytes?: string | null; + installationId?: string | null; + isBound?: boolean | null; + kind?: string | null; + namespaceId?: string | null; + phase?: string | null; + requested?: string | null; + requestedBytes?: string | null; + resourceId?: string | null; + resourceStatus?: string | null; + slug?: string | null; + storageClass?: string | null; + storageName?: string | null; +} +export interface UpdatePlatformResourceObservedStorageInput { + clientMutationId?: string; + id: string; + platformResourceObservedStoragePatch: PlatformResourceObservedStoragePatch; +} +export interface DeletePlatformResourceObservedStorageInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformResourceStatusCheckInput { + clientMutationId?: string; + platformResourceStatusCheck: { + completedAt?: string; + requestedAt?: string; + requestedBy?: string; + resourceId: string; + result?: Record; + status?: string; + }; +} +export interface PlatformResourceStatusCheckPatch { + completedAt?: string | null; + requestedAt?: string | null; + requestedBy?: string | null; + resourceId?: string | null; + result?: Record | null; + status?: string | null; +} +export interface UpdatePlatformResourceStatusCheckInput { + clientMutationId?: string; + id: string; + platformResourceStatusCheckPatch: PlatformResourceStatusCheckPatch; +} +export interface DeletePlatformResourceStatusCheckInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformResourceUsageLogInput { + clientMutationId?: string; + platformResourceUsageLog: { + cpuMillicores?: string; + intervalSeconds: number; + memoryBytes?: string; + metrics?: Record; + namespaceId: string; + resourceId?: string; + sampledAt?: string; + source: string; + }; +} +export interface PlatformResourceUsageLogPatch { + cpuMillicores?: string | null; + intervalSeconds?: number | null; + memoryBytes?: string | null; + metrics?: Record | null; + namespaceId?: string | null; + resourceId?: string | null; + sampledAt?: string | null; + source?: string | null; +} +export interface UpdatePlatformResourceUsageLogInput { + clientMutationId?: string; + id: string; + platformResourceUsageLogPatch: PlatformResourceUsageLogPatch; +} +export interface DeletePlatformResourceUsageLogInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformResourceUsageSummaryInput { + clientMutationId?: string; + platformResourceUsageSummary: { + date: string; + gbSeconds?: string; + maxCpuMillicores?: string; + maxMemoryBytes?: string; + namespaceId: string; + resourceId?: string; + runtimeSeconds?: string; + sampleCount?: number; + }; +} +export interface PlatformResourceUsageSummaryPatch { + date?: string | null; + gbSeconds?: string | null; + maxCpuMillicores?: string | null; + maxMemoryBytes?: string | null; + namespaceId?: string | null; + resourceId?: string | null; + runtimeSeconds?: string | null; + sampleCount?: number | null; +} +export interface UpdatePlatformResourceUsageSummaryInput { + clientMutationId?: string; + id: string; + platformResourceUsageSummaryPatch: PlatformResourceUsageSummaryPatch; +} +export interface DeletePlatformResourceUsageSummaryInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformResourceUtilizationInput { + clientMutationId?: string; + platformResourceUtilization: { + avgMemoryBytes?: string; + cpuLimitMillicores?: string; + cpuPeakUtilization?: string; + cpuRequestHeadroomMillicores?: string; + cpuRequestMillicores?: string; + date?: string; + gbSeconds?: string; + kind?: string; + maxCpuMillicores?: string; + maxMemoryBytes?: string; + memoryLimitBytes?: string; + memoryPeakUtilization?: string; + memoryRequestBytes?: string; + memoryRequestHeadroomBytes?: string; + namespaceId: string; + replicas?: number; + resourceId: string; + runtimeSeconds?: string; + sampleCount?: number; + }; +} +export interface PlatformResourceUtilizationPatch { + avgMemoryBytes?: string | null; + cpuLimitMillicores?: string | null; + cpuPeakUtilization?: string | null; + cpuRequestHeadroomMillicores?: string | null; + cpuRequestMillicores?: string | null; + date?: string | null; + gbSeconds?: string | null; + kind?: string | null; + maxCpuMillicores?: string | null; + maxMemoryBytes?: string | null; + memoryLimitBytes?: string | null; + memoryPeakUtilization?: string | null; + memoryRequestBytes?: string | null; + memoryRequestHeadroomBytes?: string | null; + namespaceId?: string | null; + replicas?: number | null; + resourceId?: string | null; + runtimeSeconds?: string | null; + sampleCount?: number | null; +} +export interface UpdatePlatformResourceUtilizationInput { + clientMutationId?: string; + id: string; + platformResourceUtilizationPatch: PlatformResourceUtilizationPatch; +} +export interface DeletePlatformResourceUtilizationInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformResourcesHealthInput { + clientMutationId?: string; + platformResourcesHealth: { + annotations?: Record; + cpuLimitMillicores?: string; + cpuRequestMillicores?: string; + createdBy?: string; + createdByPrincipal?: string; + errorCount?: number; + imageRef?: string; + installationId: string; + integrations?: string[]; + kind?: string; + labels?: Record; + lastError?: string; + lastHeartbeatAt?: string; + memoryLimitBytes?: string; + memoryRequestBytes?: string; + name?: string; + namespaceId: string; + realm?: string; + replicas?: number; + requiredConfigs?: ResourceRequirement[]; + requiredSecrets?: ResourceRequirement[]; + resourceDefinitionId: string; + slug?: string; + spec?: Record; + status?: string; + statusDetail?: string; + statusObserved?: Record; + storageClass?: string; + storageSizeBytes?: string; + storageTotalBytes?: string; + updatedBy?: string; + updatedByPrincipal?: string; + }; +} +export interface PlatformResourcesHealthPatch { + annotations?: Record | null; + cpuLimitMillicores?: string | null; + cpuRequestMillicores?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + errorCount?: number | null; + imageRef?: string | null; + installationId?: string | null; + integrations?: string[] | null; + kind?: string | null; + labels?: Record | null; + lastError?: string | null; + lastHeartbeatAt?: string | null; + memoryLimitBytes?: string | null; + memoryRequestBytes?: string | null; + name?: string | null; + namespaceId?: string | null; + realm?: string | null; + replicas?: number | null; + requiredConfigs?: ResourceRequirement[] | null; + requiredSecrets?: ResourceRequirement[] | null; + resourceDefinitionId?: string | null; + slug?: string | null; + spec?: Record | null; + status?: string | null; + statusDetail?: string | null; + statusObserved?: Record | null; + storageClass?: string | null; + storageSizeBytes?: string | null; + storageTotalBytes?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdatePlatformResourcesHealthInput { + clientMutationId?: string; + id: string; + platformResourcesHealthPatch: PlatformResourcesHealthPatch; +} +export interface DeletePlatformResourcesHealthInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformResourcesRequirementsStateInput { + clientMutationId?: string; + platformResourcesRequirementsState: { + configHash?: string; + configObjectName?: string; + requirementsHash?: string; + resourceId: string; + secretsHash?: string; + secretsObjectName?: string; + slug?: string; + }; +} +export interface PlatformResourcesRequirementsStatePatch { + configHash?: string | null; + configObjectName?: string | null; + requirementsHash?: string | null; + resourceId?: string | null; + secretsHash?: string | null; + secretsObjectName?: string | null; + slug?: string | null; +} +export interface UpdatePlatformResourcesRequirementsStateInput { + clientMutationId?: string; + id: string; + platformResourcesRequirementsStatePatch: PlatformResourcesRequirementsStatePatch; +} +export interface DeletePlatformResourcesRequirementsStateInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformResourcesResolvedRequirementInput { + clientMutationId?: string; + platformResourcesResolvedRequirement: { + atomId: string; + configObjectName?: string; + name?: string; + namespaceId: string; + present?: boolean; + realm?: string; + required?: boolean; + requirementKind?: string; + resourceId: string; + secretsObjectName?: string; + slug?: string; + }; +} +export interface PlatformResourcesResolvedRequirementPatch { + atomId?: string | null; + configObjectName?: string | null; + name?: string | null; + namespaceId?: string | null; + present?: boolean | null; + realm?: string | null; + required?: boolean | null; + requirementKind?: string | null; + resourceId?: string | null; + secretsObjectName?: string | null; + slug?: string | null; +} +export interface UpdatePlatformResourcesResolvedRequirementInput { + clientMutationId?: string; + id: string; + platformResourcesResolvedRequirementPatch: PlatformResourcesResolvedRequirementPatch; +} +export interface DeletePlatformResourcesResolvedRequirementInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformWebhookEndpointInput { + clientMutationId?: string; + platformWebhookEndpoint: { + active?: boolean; + createdBy?: string; + createdByPrincipal?: string; + functionDefinitionId: string; + host: string; + namespaceId: string; + path: string; + provider?: string; + replayWindowSeconds?: number; + signingSecretName: string; + updatedBy?: string; + updatedByPrincipal?: string; + }; +} +export interface PlatformWebhookEndpointPatch { + active?: boolean | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + functionDefinitionId?: string | null; + host?: string | null; + namespaceId?: string | null; + path?: string | null; + provider?: string | null; + replayWindowSeconds?: number | null; + signingSecretName?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdatePlatformWebhookEndpointInput { + clientMutationId?: string; + id: string; + platformWebhookEndpointPatch: PlatformWebhookEndpointPatch; +} +export interface DeletePlatformWebhookEndpointInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformWebhookEventInput { + clientMutationId?: string; + platformWebhookEvent: { + endpointId: string; + error?: string; + externalEventId: string; + invocationCreatedAt?: string; + invocationId?: string; + payload?: Record; + provider: string; + providerTimestamp?: string; + status?: string; + }; +} +export interface PlatformWebhookEventPatch { + endpointId?: string | null; + error?: string | null; + externalEventId?: string | null; + invocationCreatedAt?: string | null; + invocationId?: string | null; + payload?: Record | null; + provider?: string | null; + providerTimestamp?: string | null; + status?: string | null; +} +export interface UpdatePlatformWebhookEventInput { + clientMutationId?: string; + id: string; + platformWebhookEventPatch: PlatformWebhookEventPatch; +} +export interface DeletePlatformWebhookEventInput { + clientMutationId?: string; + id: string; +} +export interface CreateProposalCommentInput { + clientMutationId?: string; + proposalComment: { + actorId?: string; + attachments?: ConstructiveInternalTypeUpload[]; + body: string; + createdBy?: string; + createdByPrincipal?: string; + databaseId: string; + embedding?: number[]; + embeddingText?: string; + line?: number; + outdatedAt?: string; + path?: string; + proposalId: string; + resolvedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; + }; +} +export interface ProposalCommentPatch { + actorId?: string | null; + attachments?: ConstructiveInternalTypeUpload[] | null; + body?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + databaseId?: string | null; + embedding?: number[] | null; + embeddingText?: string | null; + line?: number | null; + outdatedAt?: string | null; + path?: string | null; + proposalId?: string | null; + resolvedAt?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdateProposalCommentInput { + clientMutationId?: string; + id: string; + proposalCommentPatch: ProposalCommentPatch; +} +export interface DeleteProposalCommentInput { + clientMutationId?: string; + id: string; +} +export interface CreateProposalInput { + clientMutationId?: string; + proposal: { + actorId?: string; + body?: string; + closedReason?: string; + createdBy?: string; + createdByPrincipal?: string; + databaseId: string; + decidedAt?: string; + dueAt?: string; + embedding?: number[]; + embeddingText?: string; + kind?: string; + labels?: string[]; + mergeCommit?: string; + mergeMethod?: string; + mergeRequestedAt?: string; + mergedAt?: string; + metadata?: Record; + parentId?: string; + priority?: string; + repositoryId: string; + resolution?: string; + sourceRef?: string; + status?: string; + targetRef?: string; + title: string; + updatedBy?: string; + updatedByPrincipal?: string; + }; +} +export interface ProposalPatch { + actorId?: string | null; + body?: string | null; + closedReason?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + databaseId?: string | null; + decidedAt?: string | null; + dueAt?: string | null; + embedding?: number[] | null; + embeddingText?: string | null; + kind?: string | null; + labels?: string[] | null; + mergeCommit?: string | null; + mergeMethod?: string | null; + mergeRequestedAt?: string | null; + mergedAt?: string | null; + metadata?: Record | null; + parentId?: string | null; + priority?: string | null; + repositoryId?: string | null; + resolution?: string | null; + sourceRef?: string | null; + status?: string | null; + targetRef?: string | null; + title?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdateProposalInput { + clientMutationId?: string; + id: string; + proposalPatch: ProposalPatch; +} +export interface DeleteProposalInput { + clientMutationId?: string; + id: string; +} +export interface CreateProposalFileViewInput { + clientMutationId?: string; + proposalFileView: { + blobSha: string; + createdByPrincipal?: string; + databaseId: string; + path: string; + proposalId: string; + reviewerId: string; + updatedByPrincipal?: string; + viewedAt?: string; + }; +} +export interface ProposalFileViewPatch { + blobSha?: string | null; + createdByPrincipal?: string | null; + databaseId?: string | null; + path?: string | null; + proposalId?: string | null; + reviewerId?: string | null; + updatedByPrincipal?: string | null; + viewedAt?: string | null; +} +export interface UpdateProposalFileViewInput { + clientMutationId?: string; + id: string; + proposalFileViewPatch: ProposalFileViewPatch; +} +export interface DeleteProposalFileViewInput { + clientMutationId?: string; + id: string; +} +export interface CreateProposalReactionInput { + clientMutationId?: string; + proposalReaction: { + actorId: string; + commentId?: string; + createdByPrincipal?: string; + databaseId: string; + emoji: string; + proposalId: string; + updatedByPrincipal?: string; + }; +} +export interface ProposalReactionPatch { + actorId?: string | null; + commentId?: string | null; + createdByPrincipal?: string | null; + databaseId?: string | null; + emoji?: string | null; + proposalId?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdateProposalReactionInput { + clientMutationId?: string; + id: string; + proposalReactionPatch: ProposalReactionPatch; +} +export interface DeleteProposalReactionInput { + clientMutationId?: string; + id: string; +} +export interface CreateProposalReviewInput { + clientMutationId?: string; + proposalReview: { + body?: string; + commitSha: string; + createdByPrincipal?: string; + databaseId: string; + proposalId: string; + reviewerId: string; + submittedAt?: string; + updatedByPrincipal?: string; + verdict: string; + }; +} +export interface ProposalReviewPatch { + body?: string | null; + commitSha?: string | null; + createdByPrincipal?: string | null; + databaseId?: string | null; + proposalId?: string | null; + reviewerId?: string | null; + submittedAt?: string | null; + updatedByPrincipal?: string | null; + verdict?: string | null; +} +export interface UpdateProposalReviewInput { + clientMutationId?: string; + id: string; + proposalReviewPatch: ProposalReviewPatch; +} +export interface DeleteProposalReviewInput { + clientMutationId?: string; + id: string; +} +export interface CreateProposalsChunkInput { + clientMutationId?: string; + proposalsChunk: { + actorId?: string; + body: string; + chunkIndex?: number; + databaseId?: string; + embedding?: number[]; + embeddingText?: string; + metadata?: Record; + proposalsId: string; + }; +} +export interface ProposalsChunkPatch { + actorId?: string | null; + body?: string | null; + chunkIndex?: number | null; + databaseId?: string | null; + embedding?: number[] | null; + embeddingText?: string | null; + metadata?: Record | null; + proposalsId?: string | null; +} +export interface UpdateProposalsChunkInput { + clientMutationId?: string; + id: string; + proposalsChunkPatch: ProposalsChunkPatch; +} +export interface DeleteProposalsChunkInput { + clientMutationId?: string; + id: string; +} +export interface CreateRegistryBindingInput { + clientMutationId?: string; + registryBinding: { + createdBy?: string; + createdByPrincipal?: string; + databaseId: string; + metadata?: Record; + namespaceId: string; + observedCredentialVersion?: string; + pullSecretName?: string; + realm?: string; + registryHost: string; + registryId: string; + status?: string; + updatedBy?: string; + updatedByPrincipal?: string; + }; +} +export interface RegistryBindingPatch { + createdBy?: string | null; + createdByPrincipal?: string | null; + databaseId?: string | null; + metadata?: Record | null; + namespaceId?: string | null; + observedCredentialVersion?: string | null; + pullSecretName?: string | null; + realm?: string | null; + registryHost?: string | null; + registryId?: string | null; + status?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdateRegistryBindingInput { + clientMutationId?: string; + id: string; + registryBindingPatch: RegistryBindingPatch; +} +export interface DeleteRegistryBindingInput { + clientMutationId?: string; + id: string; +} +export interface CreateRegistryInput { + clientMutationId?: string; + registry: { + authMode?: string; + basePath?: string; + createdByPrincipal?: string; + credentialSecretName?: string; + databaseId: string; + host?: string; + installationId?: string; + isPublished?: boolean; + kind: string; + labels?: Record; + lastError?: string; + metadata?: Record; + name: string; + platformOnly?: boolean; + role?: string; + status?: string; + updatedByPrincipal?: string; + }; +} +export interface RegistryPatch { + authMode?: string | null; + basePath?: string | null; + createdByPrincipal?: string | null; + credentialSecretName?: string | null; + databaseId?: string | null; + host?: string | null; + installationId?: string | null; + isPublished?: boolean | null; + kind?: string | null; + labels?: Record | null; + lastError?: string | null; + metadata?: Record | null; + name?: string | null; + platformOnly?: boolean | null; + role?: string | null; + status?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdateRegistryInput { + clientMutationId?: string; + id: string; + registryPatch: RegistryPatch; +} +export interface DeleteRegistryInput { + clientMutationId?: string; + id: string; +} +export interface CreateRegistryGrantInput { + clientMutationId?: string; + registryGrant: { + actions?: string[]; + createdByPrincipal?: string; + databaseId: string; + expiresAt?: string; + grantedBy?: string; + granteeKey: string; + granteeScope: string; + registryId: string; + updatedByPrincipal?: string; + }; +} +export interface RegistryGrantPatch { + actions?: string[] | null; + createdByPrincipal?: string | null; + databaseId?: string | null; + expiresAt?: string | null; + grantedBy?: string | null; + granteeKey?: string | null; + granteeScope?: string | null; + registryId?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdateRegistryGrantInput { + clientMutationId?: string; + id: string; + registryGrantPatch: RegistryGrantPatch; +} +export interface DeleteRegistryGrantInput { + clientMutationId?: string; + id: string; +} +export interface CreateRepositoryInput { + clientMutationId?: string; + repository: { + cloneUrl?: string; + createdBy?: string; + createdByPrincipal?: string; + databaseId: string; + defaultBranch?: string; + description?: string; + embedding?: number[]; + embeddingText?: string; + externalId?: string; + isArchived?: boolean; + metadata?: Record; + name: string; + ownerId?: string; + provider?: string; + slug: string; + updatedBy?: string; + updatedByPrincipal?: string; + visibility?: string; + }; +} +export interface RepositoryPatch { + cloneUrl?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + databaseId?: string | null; + defaultBranch?: string | null; + description?: string | null; + embedding?: number[] | null; + embeddingText?: string | null; + externalId?: string | null; + isArchived?: boolean | null; + metadata?: Record | null; + name?: string | null; + ownerId?: string | null; + provider?: string | null; + slug?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; + visibility?: string | null; +} +export interface UpdateRepositoryInput { + clientMutationId?: string; + id: string; + repositoryPatch: RepositoryPatch; +} +export interface DeleteRepositoryInput { + clientMutationId?: string; + id: string; +} +export interface CreateRepositoryEventInput { + clientMutationId?: string; + repositoryEvent: { + actorId?: string; + commitSha?: string; + createdByPrincipal?: string; + databaseId: string; + deliveryId?: string; + eventType: string; + metadata?: Record; + payload?: Record; + ref?: string; + repositoryId: string; + updatedByPrincipal?: string; + }; +} +export interface RepositoryEventPatch { + actorId?: string | null; + commitSha?: string | null; + createdByPrincipal?: string | null; + databaseId?: string | null; + deliveryId?: string | null; + eventType?: string | null; + metadata?: Record | null; + payload?: Record | null; + ref?: string | null; + repositoryId?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdateRepositoryEventInput { + clientMutationId?: string; + id: string; + repositoryEventPatch: RepositoryEventPatch; +} +export interface DeleteRepositoryEventInput { + clientMutationId?: string; + id: string; +} +export interface CreateRepositoryRequiredCheckInput { + clientMutationId?: string; + repositoryRequiredCheck: { + databaseId: string; + repositoryId: string; + workflowId: string; + }; +} +export interface RepositoryRequiredCheckPatch { + databaseId?: string | null; + repositoryId?: string | null; + workflowId?: string | null; +} +export interface UpdateRepositoryRequiredCheckInput { + clientMutationId?: string; + id: string; + repositoryRequiredCheckPatch: RepositoryRequiredCheckPatch; +} +export interface DeleteRepositoryRequiredCheckInput { + clientMutationId?: string; + id: string; +} +export interface CreateRepositoryWorkflowInput { + clientMutationId?: string; + repositoryWorkflow: { + cancelInProgress?: boolean; + concurrencyKey?: string; + createdBy?: string; + createdByPrincipal?: string; + databaseId: string; + eventType: string; + graphId?: string; + inputs?: Record; + isEnabled?: boolean; + name: string; + refPattern?: string; + repositoryId: string; + requiredSecrets?: string[]; + slug: string; + updatedBy?: string; + updatedByPrincipal?: string; + }; +} +export interface RepositoryWorkflowPatch { + cancelInProgress?: boolean | null; + concurrencyKey?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + databaseId?: string | null; + eventType?: string | null; + graphId?: string | null; + inputs?: Record | null; + isEnabled?: boolean | null; + name?: string | null; + refPattern?: string | null; + repositoryId?: string | null; + requiredSecrets?: string[] | null; + slug?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdateRepositoryWorkflowInput { + clientMutationId?: string; + id: string; + repositoryWorkflowPatch: RepositoryWorkflowPatch; +} +export interface DeleteRepositoryWorkflowInput { + clientMutationId?: string; + id: string; +} +export interface CreateResourceInput { + clientMutationId?: string; + resource: { + annotations?: Record; + createdBy?: string; + createdByPrincipal?: string; + databaseId: string; + errorCount?: number; + imageRef?: string; + installationId?: string; + integrations?: string[]; + kind: string; + labels?: Record; + lastError?: string; + lastHeartbeatAt?: string; + name: string; + namespaceId: string; + realm?: string; + requiredConfigs?: ResourceRequirementInput[]; + requiredSecrets?: ResourceRequirementInput[]; + resourceDefinitionId?: string; + slug: string; + spec?: Record; + status?: string; + statusObserved?: Record; + updatedBy?: string; + updatedByPrincipal?: string; + }; +} +export interface ResourcePatch { + annotations?: Record | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + databaseId?: string | null; + errorCount?: number | null; + imageRef?: string | null; + installationId?: string | null; + integrations?: string[] | null; + kind?: string | null; + labels?: Record | null; + lastError?: string | null; + lastHeartbeatAt?: string | null; + name?: string | null; + namespaceId?: string | null; + realm?: string | null; + requiredConfigs?: ResourceRequirementInput[] | null; + requiredSecrets?: ResourceRequirementInput[] | null; + resourceDefinitionId?: string | null; + slug?: string | null; + spec?: Record | null; + status?: string | null; + statusObserved?: Record | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdateResourceInput { + clientMutationId?: string; + id: string; + resourcePatch: ResourcePatch; +} +export interface DeleteResourceInput { + clientMutationId?: string; + id: string; +} +export interface CreateResourceDeclaredCapacityInput { + clientMutationId?: string; + resourceDeclaredCapacity: { + cpuLimitMillicores?: string; + cpuRequestMillicores?: string; + installationId: string; + isTransient?: boolean; + kind?: string; + memoryLimitBytes?: string; + memoryRequestBytes?: string; + namespaceId: string; + podCountMax?: number; + podCountMin?: number; + source?: string; + sourceId: string; + storageSizeBytes?: string; + storageTotalBytes?: string; + }; +} +export interface ResourceDeclaredCapacityPatch { + cpuLimitMillicores?: string | null; + cpuRequestMillicores?: string | null; + installationId?: string | null; + isTransient?: boolean | null; + kind?: string | null; + memoryLimitBytes?: string | null; + memoryRequestBytes?: string | null; + namespaceId?: string | null; + podCountMax?: number | null; + podCountMin?: number | null; + source?: string | null; + sourceId?: string | null; + storageSizeBytes?: string | null; + storageTotalBytes?: string | null; +} +export interface UpdateResourceDeclaredCapacityInput { + clientMutationId?: string; + id: string; + resourceDeclaredCapacityPatch: ResourceDeclaredCapacityPatch; +} +export interface DeleteResourceDeclaredCapacityInput { + clientMutationId?: string; + id: string; +} +export interface CreateResourceDefinitionInput { + clientMutationId?: string; + resourceDefinition: { + annotations?: Record; + createdBy?: string; + createdByPrincipal?: string; + databaseId: string; + defaultSpec?: Record; description?: string; + integrations?: string[]; kind: string; - label?: string; + labels?: Record; + name: string; + namespaceId: string; + paramsSchema?: Record; + requiredConfigs?: ResourceRequirementInput[]; + requiredSecrets?: ResourceRequirementInput[]; + slug: string; + stepUpMinAge?: IntervalInput; + updatedBy?: string; + updatedByPrincipal?: string; + }; +} +export interface ResourceDefinitionPatch { + annotations?: Record | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + databaseId?: string | null; + defaultSpec?: Record | null; + description?: string | null; + integrations?: string[] | null; + kind?: string | null; + labels?: Record | null; + name?: string | null; + namespaceId?: string | null; + paramsSchema?: Record | null; + requiredConfigs?: ResourceRequirementInput[] | null; + requiredSecrets?: ResourceRequirementInput[] | null; + slug?: string | null; + stepUpMinAge?: IntervalInput | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdateResourceDefinitionInput { + clientMutationId?: string; + id: string; + resourceDefinitionPatch: ResourceDefinitionPatch; +} +export interface DeleteResourceDefinitionInput { + clientMutationId?: string; + id: string; +} +export interface CreateResourceEventInput { + clientMutationId?: string; + resourceEvent: { + actorId?: string; + databaseId: string; + eventType: string; + message?: string; + metadata?: Record; + resourceId: string; + }; +} +export interface ResourceEventPatch { + actorId?: string | null; + databaseId?: string | null; + eventType?: string | null; + message?: string | null; + metadata?: Record | null; + resourceId?: string | null; +} +export interface UpdateResourceEventInput { + clientMutationId?: string; + id: string; + resourceEventPatch: ResourceEventPatch; +} +export interface DeleteResourceEventInput { + clientMutationId?: string; + id: string; +} +export interface CreateResourceInstallationInput { + clientMutationId?: string; + resourceInstallation: { + commitId?: string; + createdBy?: string; + createdByPrincipal?: string; + databaseId: string; + name: string; + namespaceId: string; + params?: Record; + revision?: number; slug: string; + status?: string; storeId?: string; + updatedBy?: string; + updatedByPrincipal?: string; }; } -export interface ContentPresetPatch { - active?: boolean | null; +export interface ResourceInstallationPatch { commitId?: string | null; - definition?: Record | null; - description?: string | null; - kind?: string | null; - label?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + databaseId?: string | null; + name?: string | null; + namespaceId?: string | null; + params?: Record | null; + revision?: number | null; slug?: string | null; + status?: string | null; storeId?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; } -export interface UpdateContentPresetInput { +export interface UpdateResourceInstallationInput { clientMutationId?: string; id: string; - contentPresetPatch: ContentPresetPatch; + resourceInstallationPatch: ResourceInstallationPatch; } -export interface DeleteContentPresetInput { +export interface DeleteResourceInstallationInput { clientMutationId?: string; id: string; } -export interface CreateDbPresetInput { +export interface CreateResourceObservedStorageInput { clientMutationId?: string; - dbPreset: { - active?: boolean; - commitId?: string; - definition: Record; - description?: string; - label?: string; - modulesHash?: string; - slug: string; - storeId?: string; + resourceObservedStorage: { + capacity?: string; + capacityBytes?: string; + claimName?: string; + declaredStorageClass?: string; + declaredStorageSizeBytes?: string; + declaredStorageTotalBytes?: string; + installationId: string; + isBound?: boolean; + kind?: string; + namespaceId: string; + phase?: string; + requested?: string; + requestedBytes?: string; + resourceId: string; + resourceStatus?: string; + slug?: string; + storageClass?: string; + storageName?: string; }; } -export interface DbPresetPatch { - active?: boolean | null; - commitId?: string | null; - definition?: Record | null; - description?: string | null; - label?: string | null; - modulesHash?: string | null; +export interface ResourceObservedStoragePatch { + capacity?: string | null; + capacityBytes?: string | null; + claimName?: string | null; + declaredStorageClass?: string | null; + declaredStorageSizeBytes?: string | null; + declaredStorageTotalBytes?: string | null; + installationId?: string | null; + isBound?: boolean | null; + kind?: string | null; + namespaceId?: string | null; + phase?: string | null; + requested?: string | null; + requestedBytes?: string | null; + resourceId?: string | null; + resourceStatus?: string | null; slug?: string | null; - storeId?: string | null; + storageClass?: string | null; + storageName?: string | null; } -export interface UpdateDbPresetInput { +export interface UpdateResourceObservedStorageInput { clientMutationId?: string; id: string; - dbPresetPatch: DbPresetPatch; + resourceObservedStoragePatch: ResourceObservedStoragePatch; } -export interface DeleteDbPresetInput { +export interface DeleteResourceObservedStorageInput { clientMutationId?: string; id: string; } -export interface CreateFunctionApiBindingInput { +export interface CreateResourceStatusCheckInput { clientMutationId?: string; - functionApiBinding: { - alias?: string; - apiId: string; - config?: Record; - functionDefinitionId: string; + resourceStatusCheck: { + completedAt?: string; + databaseId: string; + requestedAt?: string; + requestedBy?: string; + resourceId: string; + result?: Record; + status?: string; }; } -export interface FunctionApiBindingPatch { - alias?: string | null; - apiId?: string | null; - config?: Record | null; - functionDefinitionId?: string | null; +export interface ResourceStatusCheckPatch { + completedAt?: string | null; + databaseId?: string | null; + requestedAt?: string | null; + requestedBy?: string | null; + resourceId?: string | null; + result?: Record | null; + status?: string | null; } -export interface UpdateFunctionApiBindingInput { +export interface UpdateResourceStatusCheckInput { clientMutationId?: string; id: string; - functionApiBindingPatch: FunctionApiBindingPatch; + resourceStatusCheckPatch: ResourceStatusCheckPatch; } -export interface DeleteFunctionApiBindingInput { +export interface DeleteResourceStatusCheckInput { clientMutationId?: string; id: string; } -export interface CreateFunctionCapabilityBindingInput { +export interface CreateResourceUsageLogInput { clientMutationId?: string; - functionCapabilityBinding: { - bucketId?: string; + resourceUsageLog: { + cpuMillicores?: string; databaseId: string; - functionId?: string; - graphId?: string; - key?: string; - lifecycle: string; - metadata?: Record; + intervalSeconds: number; + memoryBytes?: string; + metrics?: Record; + namespaceId: string; + resourceId?: string; + sampledAt?: string; + source: string; }; } -export interface FunctionCapabilityBindingPatch { - bucketId?: string | null; +export interface ResourceUsageLogPatch { + cpuMillicores?: string | null; databaseId?: string | null; - functionId?: string | null; - graphId?: string | null; - key?: string | null; - lifecycle?: string | null; - metadata?: Record | null; + intervalSeconds?: number | null; + memoryBytes?: string | null; + metrics?: Record | null; + namespaceId?: string | null; + resourceId?: string | null; + sampledAt?: string | null; + source?: string | null; } -export interface UpdateFunctionCapabilityBindingInput { +export interface UpdateResourceUsageLogInput { clientMutationId?: string; id: string; - functionCapabilityBindingPatch: FunctionCapabilityBindingPatch; + resourceUsageLogPatch: ResourceUsageLogPatch; } -export interface DeleteFunctionCapabilityBindingInput { +export interface DeleteResourceUsageLogInput { clientMutationId?: string; id: string; } -export interface CreateFunctionDefinitionInput { +export interface CreateResourceUsageSummaryInput { clientMutationId?: string; - functionDefinition: { - accessChannels?: string[]; - category: string; - concurrency?: number; + resourceUsageSummary: { databaseId: string; - description?: string; - fnCategory?: string; - functionColumns?: Record; - graphId?: string; - icon?: string; - image?: string; - inputs?: Record; - integrations?: string[]; - isPublished?: boolean; - maxAttempts?: number; - moduleTable?: string; - name: string; - outputs?: Record; - payloadArgs?: Record; - priority?: number; - props?: Record; - protected?: boolean; - publishedAt?: string; - queueName?: string; - requiredBuckets?: string[]; - requiredConfigs?: ResourceRequirementInput[]; - requiredModels?: string[]; - requiredModules?: string[]; - requiredSecrets?: ResourceRequirementInput[]; - resources?: Record; - runtime?: string; - scaleMax?: number; - scaleMin?: number; - targetFunction?: string; - targetSchema?: string; - timeoutSeconds?: number; - volatile?: boolean; + date: string; + gbSeconds?: string; + maxCpuMillicores?: string; + maxMemoryBytes?: string; + namespaceId: string; + resourceId?: string; + runtimeSeconds?: string; + sampleCount?: number; }; } -export interface FunctionDefinitionPatch { - accessChannels?: string[] | null; - category?: string | null; - concurrency?: number | null; +export interface ResourceUsageSummaryPatch { databaseId?: string | null; - description?: string | null; - fnCategory?: string | null; - functionColumns?: Record | null; - graphId?: string | null; - icon?: string | null; - image?: string | null; - inputs?: Record | null; - integrations?: string[] | null; - isPublished?: boolean | null; - maxAttempts?: number | null; - moduleTable?: string | null; - name?: string | null; - outputs?: Record | null; - payloadArgs?: Record | null; - priority?: number | null; - props?: Record | null; - protected?: boolean | null; - publishedAt?: string | null; - queueName?: string | null; - requiredBuckets?: string[] | null; - requiredConfigs?: ResourceRequirementInput[] | null; - requiredModels?: string[] | null; - requiredModules?: string[] | null; - requiredSecrets?: ResourceRequirementInput[] | null; - resources?: Record | null; - runtime?: string | null; - scaleMax?: number | null; - scaleMin?: number | null; - targetFunction?: string | null; - targetSchema?: string | null; - timeoutSeconds?: number | null; - volatile?: boolean | null; + date?: string | null; + gbSeconds?: string | null; + maxCpuMillicores?: string | null; + maxMemoryBytes?: string | null; + namespaceId?: string | null; + resourceId?: string | null; + runtimeSeconds?: string | null; + sampleCount?: number | null; +} +export interface UpdateResourceUsageSummaryInput { + clientMutationId?: string; + id: string; + resourceUsageSummaryPatch: ResourceUsageSummaryPatch; +} +export interface DeleteResourceUsageSummaryInput { + clientMutationId?: string; + id: string; +} +export interface CreateResourceUtilizationInput { + clientMutationId?: string; + resourceUtilization: { + avgMemoryBytes?: string; + cpuLimitMillicores?: string; + cpuPeakUtilization?: string; + cpuRequestHeadroomMillicores?: string; + cpuRequestMillicores?: string; + date?: string; + gbSeconds?: string; + kind?: string; + maxCpuMillicores?: string; + maxMemoryBytes?: string; + memoryLimitBytes?: string; + memoryPeakUtilization?: string; + memoryRequestBytes?: string; + memoryRequestHeadroomBytes?: string; + namespaceId: string; + replicas?: number; + resourceId: string; + runtimeSeconds?: string; + sampleCount?: number; + }; +} +export interface ResourceUtilizationPatch { + avgMemoryBytes?: string | null; + cpuLimitMillicores?: string | null; + cpuPeakUtilization?: string | null; + cpuRequestHeadroomMillicores?: string | null; + cpuRequestMillicores?: string | null; + date?: string | null; + gbSeconds?: string | null; + kind?: string | null; + maxCpuMillicores?: string | null; + maxMemoryBytes?: string | null; + memoryLimitBytes?: string | null; + memoryPeakUtilization?: string | null; + memoryRequestBytes?: string | null; + memoryRequestHeadroomBytes?: string | null; + namespaceId?: string | null; + replicas?: number | null; + resourceId?: string | null; + runtimeSeconds?: string | null; + sampleCount?: number | null; } -export interface UpdateFunctionDefinitionInput { +export interface UpdateResourceUtilizationInput { clientMutationId?: string; id: string; - functionDefinitionPatch: FunctionDefinitionPatch; + resourceUtilizationPatch: ResourceUtilizationPatch; } -export interface DeleteFunctionDefinitionInput { +export interface DeleteResourceUtilizationInput { clientMutationId?: string; id: string; } -export interface CreateFunctionDeploymentInput { +export interface CreateResourcesHealthInput { clientMutationId?: string; - functionDeployment: { + resourcesHealth: { annotations?: Record; - concurrency?: number; + cpuLimitMillicores?: string; + cpuRequestMillicores?: string; + createdBy?: string; + createdByPrincipal?: string; databaseId: string; errorCount?: number; - handlerName?: string; - image: string; - imageVersion?: string; + imageRef?: string; + installationId: string; + integrations?: string[]; + kind?: string; labels?: Record; lastError?: string; - lastErrorAt?: string; + lastHeartbeatAt?: string; + memoryLimitBytes?: string; + memoryRequestBytes?: string; + name?: string; namespaceId: string; realm?: string; - resources?: Record; - revision?: number; - scaleMax?: number; - scaleMin?: number; - serviceName?: string; - serviceUrl?: string; + replicas?: number; + requiredConfigs?: ResourceRequirement[]; + requiredSecrets?: ResourceRequirement[]; + resourceDefinitionId: string; + slug?: string; + spec?: Record; status?: string; - timeoutSeconds?: number; + statusDetail?: string; + statusObserved?: Record; + storageClass?: string; + storageSizeBytes?: string; + storageTotalBytes?: string; + updatedBy?: string; + updatedByPrincipal?: string; }; } -export interface FunctionDeploymentPatch { +export interface ResourcesHealthPatch { annotations?: Record | null; - concurrency?: number | null; + cpuLimitMillicores?: string | null; + cpuRequestMillicores?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; databaseId?: string | null; errorCount?: number | null; - handlerName?: string | null; - image?: string | null; - imageVersion?: string | null; + imageRef?: string | null; + installationId?: string | null; + integrations?: string[] | null; + kind?: string | null; labels?: Record | null; lastError?: string | null; - lastErrorAt?: string | null; + lastHeartbeatAt?: string | null; + memoryLimitBytes?: string | null; + memoryRequestBytes?: string | null; + name?: string | null; namespaceId?: string | null; realm?: string | null; - resources?: Record | null; - revision?: number | null; - scaleMax?: number | null; - scaleMin?: number | null; - serviceName?: string | null; - serviceUrl?: string | null; + replicas?: number | null; + requiredConfigs?: ResourceRequirement[] | null; + requiredSecrets?: ResourceRequirement[] | null; + resourceDefinitionId?: string | null; + slug?: string | null; + spec?: Record | null; status?: string | null; - timeoutSeconds?: number | null; + statusDetail?: string | null; + statusObserved?: Record | null; + storageClass?: string | null; + storageSizeBytes?: string | null; + storageTotalBytes?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; } -export interface UpdateFunctionDeploymentInput { +export interface UpdateResourcesHealthInput { clientMutationId?: string; id: string; - functionDeploymentPatch: FunctionDeploymentPatch; + resourcesHealthPatch: ResourcesHealthPatch; } -export interface DeleteFunctionDeploymentInput { +export interface DeleteResourcesHealthInput { clientMutationId?: string; id: string; } -export interface CreateFunctionDeploymentEventInput { +export interface CreateResourcesRequirementsStateInput { clientMutationId?: string; - functionDeploymentEvent: { - actorId?: string; + resourcesRequirementsState: { + configHash?: string; + configObjectName?: string; + requirementsHash?: string; + resourceId: string; + secretsHash?: string; + secretsObjectName?: string; + slug?: string; + }; +} +export interface ResourcesRequirementsStatePatch { + configHash?: string | null; + configObjectName?: string | null; + requirementsHash?: string | null; + resourceId?: string | null; + secretsHash?: string | null; + secretsObjectName?: string | null; + slug?: string | null; +} +export interface UpdateResourcesRequirementsStateInput { + clientMutationId?: string; + id: string; + resourcesRequirementsStatePatch: ResourcesRequirementsStatePatch; +} +export interface DeleteResourcesRequirementsStateInput { + clientMutationId?: string; + id: string; +} +export interface CreateResourcesResolvedRequirementInput { + clientMutationId?: string; + resourcesResolvedRequirement: { + atomId: string; + configObjectName?: string; + name?: string; + namespaceId: string; + present?: boolean; + realm?: string; + required?: boolean; + requirementKind?: string; + resourceId: string; + secretsObjectName?: string; + slug?: string; + }; +} +export interface ResourcesResolvedRequirementPatch { + atomId?: string | null; + configObjectName?: string | null; + name?: string | null; + namespaceId?: string | null; + present?: boolean | null; + realm?: string | null; + required?: boolean | null; + requirementKind?: string | null; + resourceId?: string | null; + secretsObjectName?: string | null; + slug?: string | null; +} +export interface UpdateResourcesResolvedRequirementInput { + clientMutationId?: string; + id: string; + resourcesResolvedRequirementPatch: ResourcesResolvedRequirementPatch; +} +export interface DeleteResourcesResolvedRequirementInput { + clientMutationId?: string; + id: string; +} +export interface CreateWebhookEndpointInput { + clientMutationId?: string; + webhookEndpoint: { + active?: boolean; + createdBy?: string; + createdByPrincipal?: string; databaseId: string; - deploymentId: string; - eventType: string; - message?: string; - metadata?: Record; + functionDefinitionId: string; + host: string; + namespaceId: string; + path: string; + provider?: string; + replayWindowSeconds?: number; + signingSecretName: string; + updatedBy?: string; + updatedByPrincipal?: string; }; } -export interface FunctionDeploymentEventPatch { - actorId?: string | null; +export interface WebhookEndpointPatch { + active?: boolean | null; + createdBy?: string | null; + createdByPrincipal?: string | null; databaseId?: string | null; - deploymentId?: string | null; - eventType?: string | null; - message?: string | null; - metadata?: Record | null; + functionDefinitionId?: string | null; + host?: string | null; + namespaceId?: string | null; + path?: string | null; + provider?: string | null; + replayWindowSeconds?: number | null; + signingSecretName?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; } -export interface UpdateFunctionDeploymentEventInput { +export interface UpdateWebhookEndpointInput { clientMutationId?: string; id: string; - functionDeploymentEventPatch: FunctionDeploymentEventPatch; + webhookEndpointPatch: WebhookEndpointPatch; } -export interface DeleteFunctionDeploymentEventInput { +export interface DeleteWebhookEndpointInput { clientMutationId?: string; id: string; } -export interface CreateFunctionExecutionLogInput { +export interface CreateWebhookEventInput { clientMutationId?: string; - functionExecutionLog: { - actorId?: string; + webhookEvent: { databaseId: string; + endpointId: string; + error?: string; + externalEventId: string; + invocationCreatedAt?: string; invocationId?: string; - logLevel?: string; - message: string; - metadata?: Record; - taskIdentifier?: string; + payload?: Record; + provider: string; + providerTimestamp?: string; + status?: string; }; } -export interface FunctionExecutionLogPatch { - actorId?: string | null; +export interface WebhookEventPatch { databaseId?: string | null; + endpointId?: string | null; + error?: string | null; + externalEventId?: string | null; + invocationCreatedAt?: string | null; invocationId?: string | null; - logLevel?: string | null; - message?: string | null; - metadata?: Record | null; - taskIdentifier?: string | null; + payload?: Record | null; + provider?: string | null; + providerTimestamp?: string | null; + status?: string | null; } -export interface UpdateFunctionExecutionLogInput { +export interface UpdateWebhookEventInput { + clientMutationId?: string; + id: string; + webhookEventPatch: WebhookEventPatch; +} +export interface DeleteWebhookEventInput { + clientMutationId?: string; + id: string; +} +// ============ Connection Fields Map ============ +export const connectionFieldsMap = { + DatabaseFunctionGraph: { + databaseFunctionGraphExecutionsByGraphId: 'DatabaseFunctionGraphExecution', + functionDefinitionsByGraphId: 'FunctionDefinition', + repositoryWorkflowsByGraphId: 'RepositoryWorkflow', + }, + FunctionApiBinding: { + functionInvocationsByApiBindingId: 'FunctionInvocation', + }, + FunctionDefinition: { + functionApiBindings: 'FunctionApiBinding', + functionCapabilityBindingsByFunctionId: 'FunctionCapabilityBinding', + webhookEndpoints: 'WebhookEndpoint', + }, + FunctionGraph: { + functionGraphExecutionsByGraphId: 'FunctionGraphExecution', + platformFunctionDefinitionsByGraphId: 'PlatformFunctionDefinition', + platformRepositoryWorkflowsByGraphId: 'PlatformRepositoryWorkflow', + }, + Image: { + imageGrants: 'ImageGrant', + }, + Namespace: { + builderBindings: 'BuilderBinding', + functionDeployments: 'FunctionDeployment', + registryBindings: 'RegistryBinding', + resourceDefinitions: 'ResourceDefinition', + resourceInstallations: 'ResourceInstallation', + resources: 'Resource', + webhookEndpoints: 'WebhookEndpoint', + }, + PlatformFunctionApiBinding: { + platformFunctionInvocationsByApiBindingId: 'PlatformFunctionInvocation', + }, + PlatformFunctionDefinition: { + platformFunctionApiBindingsByFunctionDefinitionId: 'PlatformFunctionApiBinding', + platformFunctionCapabilityBindingsByFunctionId: 'PlatformFunctionCapabilityBinding', + platformWebhookEndpointsByFunctionDefinitionId: 'PlatformWebhookEndpoint', + }, + PlatformImage: { + platformImageGrantsByImageId: 'PlatformImageGrant', + }, + PlatformNamespace: { + platformBuilderBindingsByNamespaceId: 'PlatformBuilderBinding', + platformFunctionDeploymentsByNamespaceId: 'PlatformFunctionDeployment', + platformRegistryBindingsByNamespaceId: 'PlatformRegistryBinding', + platformResourceDefinitionsByNamespaceId: 'PlatformResourceDefinition', + platformResourceInstallationsByNamespaceId: 'PlatformResourceInstallation', + platformResourcesByNamespaceId: 'PlatformResource', + platformWebhookEndpointsByNamespaceId: 'PlatformWebhookEndpoint', + }, + PlatformProposalComment: { + platformProposalReactionsByCommentId: 'PlatformProposalReaction', + }, + PlatformProposal: { + childPlatformProposals: 'PlatformProposal', + platformBuildsByProposalId: 'PlatformBuild', + platformProposalCommentsByProposalId: 'PlatformProposalComment', + platformProposalFileViewsByProposalId: 'PlatformProposalFileView', + platformProposalReactionsByProposalId: 'PlatformProposalReaction', + platformProposalReviewsByProposalId: 'PlatformProposalReview', + platformProposalsChunksByPlatformProposalsId: 'PlatformProposalsChunk', + }, + PlatformRegistry: { + platformRegistryBindingsByRegistryId: 'PlatformRegistryBinding', + platformRegistryGrantsByRegistryId: 'PlatformRegistryGrant', + }, + PlatformRepository: { + platformBuildsByRepositoryId: 'PlatformBuild', + platformProposalsByRepositoryId: 'PlatformProposal', + platformRepositoryEventsByRepositoryId: 'PlatformRepositoryEvent', + platformRepositoryRequiredChecksByRepositoryId: 'PlatformRepositoryRequiredCheck', + platformRepositoryWorkflowsByRepositoryId: 'PlatformRepositoryWorkflow', + }, + PlatformRepositoryEvent: { + platformBuildsByEventId: 'PlatformBuild', + }, + PlatformRepositoryWorkflow: { + platformBuildsByWorkflowId: 'PlatformBuild', + platformRepositoryRequiredChecksByWorkflowId: 'PlatformRepositoryRequiredCheck', + }, + PlatformResource: { + platformResourceStatusChecksByResourceId: 'PlatformResourceStatusCheck', + }, + PlatformResourceDefinition: { + platformResourcesByResourceDefinitionId: 'PlatformResource', + }, + PlatformResourceInstallation: { + platformRegistriesByInstallationId: 'PlatformRegistry', + platformResourcesByInstallationId: 'PlatformResource', + }, + PlatformWebhookEndpoint: { + platformWebhookEventsByEndpointId: 'PlatformWebhookEvent', + }, + ProposalComment: { + proposalReactionsByCommentId: 'ProposalReaction', + }, + Proposal: { + builds: 'Build', + childProposals: 'Proposal', + proposalComments: 'ProposalComment', + proposalFileViews: 'ProposalFileView', + proposalReactions: 'ProposalReaction', + proposalReviews: 'ProposalReview', + proposalsChunksByProposalsId: 'ProposalsChunk', + }, + Registry: { + registryBindings: 'RegistryBinding', + registryGrants: 'RegistryGrant', + }, + Repository: { + builds: 'Build', + proposals: 'Proposal', + repositoryEvents: 'RepositoryEvent', + repositoryRequiredChecks: 'RepositoryRequiredCheck', + repositoryWorkflows: 'RepositoryWorkflow', + }, + RepositoryEvent: { + buildsByEventId: 'Build', + }, + RepositoryWorkflow: { + buildsByWorkflowId: 'Build', + repositoryRequiredChecksByWorkflowId: 'RepositoryRequiredCheck', + }, + Resource: { + resourceStatusChecks: 'ResourceStatusCheck', + }, + ResourceDefinition: { + resources: 'Resource', + }, + ResourceInstallation: { + registriesByInstallationId: 'Registry', + resourcesByInstallationId: 'Resource', + }, + WebhookEndpoint: { + webhookEventsByEndpointId: 'WebhookEvent', + }, +} as Record>; +// ============ Custom Input Types (from schema) ============ +export interface AddEdgeInput { clientMutationId?: string; - id: string; - functionExecutionLogPatch: FunctionExecutionLogPatch; + context?: string; + dstNode?: string; + dstPort?: string; + graphName?: string; + rootHash?: string; + scopeId?: string; + srcNode?: string; + srcPort?: string; } -export interface DeleteFunctionExecutionLogInput { +export interface AddEdgeAndSaveInput { clientMutationId?: string; - id: string; + dstNode?: string; + dstPort?: string; + graphId?: string; + message?: string; + srcNode?: string; + srcPort?: string; } -export interface CreateFunctionGraphCommitInput { +export interface AddNodeInput { clientMutationId?: string; - functionGraphCommit: { - authorId?: string; - committerId?: string; - date?: string; - message?: string; - parentIds?: string[]; - scopeId: string; - storeId: string; - treeId?: string; - }; -} -export interface FunctionGraphCommitPatch { - authorId?: string | null; - committerId?: string | null; - date?: string | null; - message?: string | null; - parentIds?: string[] | null; - scopeId?: string | null; - storeId?: string | null; - treeId?: string | null; + context?: string; + graphName?: string; + meta?: Record; + nodeName?: string; + nodeType?: string; + props?: Record; + rootHash?: string; + scopeId?: string; } -export interface UpdateFunctionGraphCommitInput { +export interface AddNodeAndSaveInput { clientMutationId?: string; - id: string; - functionGraphCommitPatch: FunctionGraphCommitPatch; + graphId?: string; + message?: string; + meta?: Record; + nodeName?: string; + nodeType?: string; + props?: Record; } -export interface DeleteFunctionGraphCommitInput { +export interface ApproveNodeInput { + approved?: boolean; clientMutationId?: string; - id: string; + executionId?: string; + feedback?: Record; + nodeName?: string; } -export interface CreateFunctionGraphInput { +export interface CopyGraphInput { clientMutationId?: string; - functionGraph: { - context?: string; - createdBy?: string; - definitionsCommitId: string; - description?: string; - isValid?: boolean; - name?: string; - scopeId: string; - storeId: string; - validationErrors?: Record; - }; -} -export interface FunctionGraphPatch { - context?: string | null; - createdBy?: string | null; - definitionsCommitId?: string | null; - description?: string | null; - isValid?: boolean | null; - name?: string | null; - scopeId?: string | null; - storeId?: string | null; - validationErrors?: Record | null; + graphId?: string; + name?: string; + scopeId?: string; } -export interface UpdateFunctionGraphInput { +export interface DatabaseAddEdgeInput { clientMutationId?: string; - id: string; - functionGraphPatch: FunctionGraphPatch; + context?: string; + databaseId?: string; + dstNode?: string; + dstPort?: string; + graphName?: string; + rootHash?: string; + srcNode?: string; + srcPort?: string; } -export interface DeleteFunctionGraphInput { +export interface DatabaseAddEdgeAndSaveInput { clientMutationId?: string; - id: string; + dstNode?: string; + dstPort?: string; + graphId?: string; + message?: string; + srcNode?: string; + srcPort?: string; } -export interface CreateFunctionGraphExecutionInput { +export interface DatabaseAddNodeInput { clientMutationId?: string; - functionGraphExecution: { - actorId?: string; - completedAt?: string; - currentWave?: number; - definitionsCommitId?: string; - entityId?: string; - entityType?: string; - errorCode?: string; - errorMessage?: string; - executionPlan?: Record; - graphId: string; - inputPayload?: Record; - invocationCreatedAt?: string; - invocationId?: string; - lastProgressAt?: string; - maxPendingJobs?: number; - maxTicks?: number; - nodeOutputs?: Record; - organizationId?: string; - outputNames?: string[]; - outputNode?: string; - outputPayload?: Record; - outputPort?: string; - parentExecutionId?: string; - parentInvocationId?: string; - parentNodeName?: string; - principalId?: string; - scopeId: string; - startedAt?: string; - status?: string; - tickCount?: number; - timeoutAt?: string; - }; -} -export interface FunctionGraphExecutionPatch { - actorId?: string | null; - completedAt?: string | null; - currentWave?: number | null; - definitionsCommitId?: string | null; - entityId?: string | null; - entityType?: string | null; - errorCode?: string | null; - errorMessage?: string | null; - executionPlan?: Record | null; - graphId?: string | null; - inputPayload?: Record | null; - invocationCreatedAt?: string | null; - invocationId?: string | null; - lastProgressAt?: string | null; - maxPendingJobs?: number | null; - maxTicks?: number | null; - nodeOutputs?: Record | null; - organizationId?: string | null; - outputNames?: string[] | null; - outputNode?: string | null; - outputPayload?: Record | null; - outputPort?: string | null; - parentExecutionId?: string | null; - parentInvocationId?: string | null; - parentNodeName?: string | null; - principalId?: string | null; - scopeId?: string | null; - startedAt?: string | null; - status?: string | null; - tickCount?: number | null; - timeoutAt?: string | null; + context?: string; + databaseId?: string; + graphName?: string; + meta?: Record; + nodeName?: string; + nodeType?: string; + props?: Record; + rootHash?: string; } -export interface UpdateFunctionGraphExecutionInput { +export interface DatabaseAddNodeAndSaveInput { clientMutationId?: string; - id: string; - functionGraphExecutionPatch: FunctionGraphExecutionPatch; + graphId?: string; + message?: string; + meta?: Record; + nodeName?: string; + nodeType?: string; + props?: Record; } -export interface DeleteFunctionGraphExecutionInput { +export interface DatabaseApproveNodeInput { + approved?: boolean; clientMutationId?: string; - id: string; + executionId?: string; + feedback?: Record; + nodeName?: string; } -export interface CreateFunctionGraphExecutionNodeStateInput { +export interface DatabaseCopyGraphInput { clientMutationId?: string; - functionGraphExecutionNodeState: { - callbackInputs?: Record; - callbackMeta?: Record; - callbackTokenHash?: string; - completedAt?: string; - errorCode?: string; - errorMessage?: string; - executionId: string; - nodeName: string; - nodePath?: string[]; - outputId?: string; - scopeId: string; - startedAt?: string; - status?: string; - }; + databaseId?: string; + graphId?: string; + name?: string; } -export interface FunctionGraphExecutionNodeStatePatch { - callbackInputs?: Record | null; - callbackMeta?: Record | null; - callbackTokenHash?: string | null; - completedAt?: string | null; - errorCode?: string | null; - errorMessage?: string | null; - executionId?: string | null; - nodeName?: string | null; - nodePath?: string[] | null; - outputId?: string | null; - scopeId?: string | null; - startedAt?: string | null; - status?: string | null; +export interface DatabaseCreateFunctionGraphInput { + clientMutationId?: string; + context?: string; + createdBy?: string; + databaseId?: string; + definitionsCommitId?: string; + description?: string; + name?: string; } -export interface UpdateFunctionGraphExecutionNodeStateInput { +export interface DatabaseGraphInitEmptyRepoInput { clientMutationId?: string; - id: string; - functionGraphExecutionNodeStatePatch: FunctionGraphExecutionNodeStatePatch; + sId?: string; + storeId?: string; } -export interface DeleteFunctionGraphExecutionNodeStateInput { +export interface DatabaseGraphInsertNodeAtPathInput { clientMutationId?: string; - id: string; + data?: Record; + kids?: string[]; + ktree?: string[]; + path?: string[]; + root?: string; + sId?: string; } -export interface CreateFunctionGraphExecutionOutputInput { +export interface DatabaseGraphInsertNodesAtPathsInput { clientMutationId?: string; - functionGraphExecutionOutput: { - data: Record; - hash: Base64EncodedBinary; - scopeId: string; - }; + datas?: Record[]; + kidsList?: Record; + ktreeList?: Record; + paths?: Record; + root?: string; + sId?: string; } -export interface FunctionGraphExecutionOutputPatch { - data?: Record | null; - hash?: Base64EncodedBinary | null; - scopeId?: string | null; +export interface DatabaseGraphSetAndCommitInput { + clientMutationId?: string; + data?: Record; + kids?: string[]; + ktree?: string[]; + message?: string; + path?: string[]; + refname?: string; + sId?: string; + storeId?: string; } -export interface UpdateFunctionGraphExecutionOutputInput { +export interface DatabaseGraphSetDataAtPathInput { clientMutationId?: string; - id: string; - functionGraphExecutionOutputPatch: FunctionGraphExecutionOutputPatch; + data?: Record; + path?: string[]; + root?: string; + sId?: string; } -export interface DeleteFunctionGraphExecutionOutputInput { +export interface DatabaseGraphSetManyAndCommitInput { clientMutationId?: string; - id: string; + entries?: Record; + message?: string; + refname?: string; + sId?: string; + storeId?: string; } -export interface CreateFunctionGraphObjectInput { +export interface DatabaseImportDefinitionsInput { clientMutationId?: string; - functionGraphObject: { - data?: Record; - kids?: string[]; - ktree?: string[]; - scopeId: string; - }; + contexts?: string[]; + graphId?: string; + sourceCommitId?: string; + sourceScopeId?: string; } -export interface FunctionGraphObjectPatch { - data?: Record | null; - kids?: string[] | null; - ktree?: string[] | null; - scopeId?: string | null; +export interface DatabaseImportGraphJsonInput { + clientMutationId?: string; + context?: string; + createdBy?: string; + databaseId?: string; + definitionsCommitId?: string; + description?: string; + graphJson?: Record; + name?: string; } -export interface UpdateFunctionGraphObjectInput { +export interface DatabaseSaveGraphInput { clientMutationId?: string; - id: string; - functionGraphObjectPatch: FunctionGraphObjectPatch; + graphId?: string; + message?: string; + rootHash?: string; } -export interface DeleteFunctionGraphObjectInput { +export interface DatabaseStartExecutionInput { clientMutationId?: string; - id: string; + graphId?: string; + inputPayload?: Record; + maxPendingJobs?: number; + maxTicks?: number; + outputNames?: string[]; + outputNode?: string; + outputPort?: string; + parentExecutionId?: string; + parentNodeName?: string; + timeoutInterval?: IntervalInput; } -export interface CreateFunctionGraphRefInput { +export interface DatabaseValidateFunctionGraphInput { clientMutationId?: string; - functionGraphRef: { - commitId?: string; - name: string; - scopeId: string; - storeId: string; - }; + graphId?: string; } -export interface FunctionGraphRefPatch { - commitId?: string | null; - name?: string | null; - scopeId?: string | null; - storeId?: string | null; +export interface FunctionInvocationsCreateSyncInput { + clientMutationId?: string; + entityId?: string; + payload?: Record; + provenance?: Record; + routeBindingId?: string; + taskIdentifier?: string; } -export interface UpdateFunctionGraphRefInput { +export interface ImportDefinitionsInput { clientMutationId?: string; - id: string; - functionGraphRefPatch: FunctionGraphRefPatch; + contexts?: string[]; + graphId?: string; + sourceCommitId?: string; + sourceScopeId?: string; } -export interface DeleteFunctionGraphRefInput { +export interface ImportGraphJsonInput { clientMutationId?: string; - id: string; + context?: string; + createdBy?: string; + definitionsCommitId?: string; + description?: string; + graphJson?: Record; + name?: string; + scopeId?: string; } -export interface CreateFunctionGraphStoreInput { +export interface InfraInitEmptyRepoInput { clientMutationId?: string; - functionGraphStore: { - hash?: string; - name: string; - scopeId: string; - }; + sId?: string; + storeId?: string; } -export interface FunctionGraphStorePatch { - hash?: string | null; - name?: string | null; - scopeId?: string | null; +export interface InfraInsertNodeAtPathInput { + clientMutationId?: string; + data?: Record; + kids?: string[]; + ktree?: string[]; + path?: string[]; + root?: string; + sId?: string; } -export interface UpdateFunctionGraphStoreInput { +export interface InfraInsertNodesAtPathsInput { clientMutationId?: string; - id: string; - functionGraphStorePatch: FunctionGraphStorePatch; + datas?: Record[]; + kidsList?: Record; + ktreeList?: Record; + paths?: Record; + root?: string; + sId?: string; } -export interface DeleteFunctionGraphStoreInput { +export interface InfraSetAndCommitInput { clientMutationId?: string; - id: string; + data?: Record; + kids?: string[]; + ktree?: string[]; + message?: string; + path?: string[]; + refname?: string; + sId?: string; + storeId?: string; } -export interface CreateFunctionInvocationAttemptInput { +export interface InfraSetDataAtPathInput { clientMutationId?: string; - functionInvocationAttempt: { - actorId?: string; - attempt: number; - databaseId: string; - durationMs?: number; - error?: string; - errorDetail?: Record; - invocationCreatedAt: string; - invocationId: string; - startedAt?: string; - success: boolean; - taskIdentifier: string; - }; + data?: Record; + path?: string[]; + root?: string; + sId?: string; } -export interface FunctionInvocationAttemptPatch { - actorId?: string | null; - attempt?: number | null; - databaseId?: string | null; - durationMs?: number | null; - error?: string | null; - errorDetail?: Record | null; - invocationCreatedAt?: string | null; - invocationId?: string | null; - startedAt?: string | null; - success?: boolean | null; - taskIdentifier?: string | null; +export interface InfraSetManyAndCommitInput { + clientMutationId?: string; + entries?: Record; + message?: string; + refname?: string; + sId?: string; + storeId?: string; } -export interface UpdateFunctionInvocationAttemptInput { +export interface InitEmptyRepoInput { clientMutationId?: string; - id: string; - functionInvocationAttemptPatch: FunctionInvocationAttemptPatch; + sId?: string; + storeId?: string; } -export interface DeleteFunctionInvocationAttemptInput { +export interface InsertNodeAtPathInput { clientMutationId?: string; - id: string; + data?: Record; + kids?: string[]; + ktree?: string[]; + path?: string[]; + root?: string; + sId?: string; } -export interface CreateFunctionInvocationInput { +export interface InsertNodesAtPathsInput { clientMutationId?: string; - functionInvocation: { - actorId?: string; - apiBindingId?: string; - channel?: string; - completedAt?: string; - databaseId: string; - definitionScope?: string; - durationMs?: number; - error?: string; - functionDefinitionId?: string; - graphExecutionId?: string; - jobId?: string; - parentInvocationId?: string; - payload?: Record; - provenance?: Record; - result?: Record; - startedAt?: string; - status?: string; - taskIdentifier: string; - }; + datas?: Record[]; + kidsList?: Record; + ktreeList?: Record; + paths?: Record; + root?: string; + sId?: string; } -export interface FunctionInvocationPatch { - actorId?: string | null; - apiBindingId?: string | null; - channel?: string | null; - completedAt?: string | null; - databaseId?: string | null; - definitionScope?: string | null; - durationMs?: number | null; - error?: string | null; - functionDefinitionId?: string | null; - graphExecutionId?: string | null; - jobId?: string | null; - parentInvocationId?: string | null; - payload?: Record | null; - provenance?: Record | null; - result?: Record | null; - startedAt?: string | null; - status?: string | null; - taskIdentifier?: string | null; +export interface PlatformFunctionInvocationsCreateSyncInput { + clientMutationId?: string; + entityId?: string; + payload?: Record; + provenance?: Record; + routeBindingId?: string; + taskIdentifier?: string; } -export interface UpdateFunctionInvocationInput { +export interface PlatformInfraInitEmptyRepoInput { clientMutationId?: string; - id: string; - functionInvocationPatch: FunctionInvocationPatch; + sId?: string; + storeId?: string; } -export interface DeleteFunctionInvocationInput { +export interface PlatformInfraInsertNodeAtPathInput { clientMutationId?: string; - id: string; + data?: Record; + kids?: string[]; + ktree?: string[]; + path?: string[]; + root?: string; + sId?: string; } -export interface CreateGetAllTreeNodesRecordInput { +export interface PlatformInfraInsertNodesAtPathsInput { clientMutationId?: string; - getAllTreeNodesRecord: { - data?: Record; - path?: string[]; - }; + datas?: Record[]; + kidsList?: Record; + ktreeList?: Record; + paths?: Record; + root?: string; + sId?: string; } -export interface GetAllTreeNodesRecordPatch { - data?: Record | null; - path?: string[] | null; +export interface PlatformInfraSetAndCommitInput { + clientMutationId?: string; + data?: Record; + kids?: string[]; + ktree?: string[]; + message?: string; + path?: string[]; + refname?: string; + sId?: string; + storeId?: string; } -export interface UpdateGetAllTreeNodesRecordInput { +export interface PlatformInfraSetDataAtPathInput { clientMutationId?: string; - id: string; - getAllTreeNodesRecordPatch: GetAllTreeNodesRecordPatch; + data?: Record; + path?: string[]; + root?: string; + sId?: string; } -export interface DeleteGetAllTreeNodesRecordInput { +export interface PlatformInfraSetManyAndCommitInput { clientMutationId?: string; - id: string; + entries?: Record; + message?: string; + refname?: string; + sId?: string; + storeId?: string; } -export interface CreateInfraCommitInput { +export interface PlatformResourceInstallationsInstallInput { clientMutationId?: string; - infraCommit: { - authorId?: string; - committerId?: string; - databaseId: string; - date?: string; - message?: string; - parentIds?: string[]; - storeId: string; - treeId?: string; - }; + definitionIds?: string[]; + name?: string; + namespaceId?: string; + newParams?: Record; + slug?: string; } -export interface InfraCommitPatch { - authorId?: string | null; - committerId?: string | null; - databaseId?: string | null; - date?: string | null; - message?: string | null; - parentIds?: string[] | null; - storeId?: string | null; - treeId?: string | null; +export interface PlatformResourceInstallationsRollbackInput { + clientMutationId?: string; + commitId?: string; + targetInstallationId?: string; } -export interface UpdateInfraCommitInput { +export interface PlatformResourceInstallationsUninstallInput { clientMutationId?: string; - id: string; - infraCommitPatch: InfraCommitPatch; + targetInstallationId?: string; } -export interface DeleteInfraCommitInput { +export interface PlatformResourceInstallationsUpgradeInput { clientMutationId?: string; - id: string; + newParams?: Record; + targetInstallationId?: string; } -export interface CreateInfraGetAllTreeNodesRecordInput { +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 ResourceInstallationsInstallInput { clientMutationId?: string; - infraGetAllTreeNodesRecord: { - data?: Record; - path?: string[]; - }; + definitionIds?: string[]; + name?: string; + namespaceId?: string; + newParams?: Record; + slug?: string; } -export interface InfraGetAllTreeNodesRecordPatch { - data?: Record | null; - path?: string[] | null; +export interface ResourceInstallationsRollbackInput { + clientMutationId?: string; + commitId?: string; + targetInstallationId?: string; } -export interface UpdateInfraGetAllTreeNodesRecordInput { +export interface ResourceInstallationsUninstallInput { clientMutationId?: string; - id: string; - infraGetAllTreeNodesRecordPatch: InfraGetAllTreeNodesRecordPatch; + targetInstallationId?: string; } -export interface DeleteInfraGetAllTreeNodesRecordInput { +export interface ResourceInstallationsUpgradeInput { clientMutationId?: string; - id: string; + newParams?: Record; + targetInstallationId?: string; } -export interface CreateInfraObjectInput { +export interface SaveGraphInput { clientMutationId?: string; - infraObject: { - data?: Record; - databaseId: string; - kids?: string[]; - ktree?: string[]; - }; + graphId?: string; + message?: string; + rootHash?: string; } -export interface InfraObjectPatch { - data?: Record | null; - databaseId?: string | null; - kids?: string[] | null; - ktree?: string[] | null; +export interface SetAndCommitInput { + clientMutationId?: string; + data?: Record; + kids?: string[]; + ktree?: string[]; + message?: string; + path?: string[]; + refname?: string; + sId?: string; + storeId?: string; } -export interface UpdateInfraObjectInput { +export interface SetDataAtPathInput { clientMutationId?: string; - id: string; - infraObjectPatch: InfraObjectPatch; + data?: Record; + path?: string[]; + root?: string; + sId?: string; } -export interface DeleteInfraObjectInput { +export interface SetManyAndCommitInput { clientMutationId?: string; - id: string; + entries?: Record; + message?: string; + refname?: string; + sId?: string; + storeId?: string; +} +export interface StartExecutionInput { + clientMutationId?: string; + graphId?: string; + inputPayload?: Record; + maxPendingJobs?: number; + maxTicks?: number; + outputNames?: string[]; + outputNode?: string; + outputPort?: string; + parentExecutionId?: string; + parentNodeName?: string; + timeoutInterval?: IntervalInput; } -export interface CreateInfraRefInput { +export interface ValidateFunctionGraphInput { clientMutationId?: string; - infraRef: { - commitId?: string; - databaseId: string; - name: string; - storeId: string; - }; + graphId?: string; } -export interface InfraRefPatch { - commitId?: string | null; - databaseId?: string | null; - name?: string | null; - storeId?: string | null; +/** A filter to be used against ConstructiveInternalTypeUpload fields. All fields are combined with a logical ‘and.’ */ +export interface ConstructiveInternalTypeUploadFilter { + /** Contained by the specified JSON. */ + containedBy?: ConstructiveInternalTypeUpload; + /** Contains the specified JSON. */ + contains?: ConstructiveInternalTypeUpload; + /** Contains all of the specified keys. */ + containsAllKeys?: string[]; + /** Contains any of the specified keys. */ + containsAnyKeys?: string[]; + /** Contains the specified key. */ + containsKey?: string; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: ConstructiveInternalTypeUpload; + /** Equal to the specified value. */ + equalTo?: ConstructiveInternalTypeUpload; + /** Greater than the specified value. */ + greaterThan?: ConstructiveInternalTypeUpload; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: ConstructiveInternalTypeUpload; + /** Included in the specified list. */ + in?: ConstructiveInternalTypeUpload[]; + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Less than the specified value. */ + lessThan?: ConstructiveInternalTypeUpload; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: ConstructiveInternalTypeUpload; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: ConstructiveInternalTypeUpload; + /** Not equal to the specified value. */ + notEqualTo?: ConstructiveInternalTypeUpload; + /** Not included in the specified list. */ + notIn?: ConstructiveInternalTypeUpload[]; } -export interface UpdateInfraRefInput { - clientMutationId?: string; - id: string; - infraRefPatch: InfraRefPatch; +/** A filter to be used against many `DatabaseFunctionGraphExecution` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseFunctionGraphToManyDatabaseFunctionGraphExecutionFilter { + /** Filters to entities where every related entity matches. */ + every?: DatabaseFunctionGraphExecutionFilter; + /** Filters to entities where no related entity matches. */ + none?: DatabaseFunctionGraphExecutionFilter; + /** Filters to entities where at least one related entity matches. */ + some?: DatabaseFunctionGraphExecutionFilter; } -export interface DeleteInfraRefInput { - clientMutationId?: string; - id: string; +/** A filter to be used against many `FunctionDefinition` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseFunctionGraphToManyFunctionDefinitionFilter { + /** Filters to entities where every related entity matches. */ + every?: FunctionDefinitionFilter; + /** Filters to entities where no related entity matches. */ + none?: FunctionDefinitionFilter; + /** Filters to entities where at least one related entity matches. */ + some?: FunctionDefinitionFilter; } -export interface CreateInfraStoreInput { - clientMutationId?: string; - infraStore: { - databaseId: string; - hash?: string; - name: string; - }; +/** A filter to be used against many `RepositoryWorkflow` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseFunctionGraphToManyRepositoryWorkflowFilter { + /** Filters to entities where every related entity matches. */ + every?: RepositoryWorkflowFilter; + /** Filters to entities where no related entity matches. */ + none?: RepositoryWorkflowFilter; + /** Filters to entities where at least one related entity matches. */ + some?: RepositoryWorkflowFilter; } -export interface InfraStorePatch { - databaseId?: string | null; - hash?: string | null; - name?: string | null; +/** A filter to be used against Base64EncodedBinary fields. All fields are combined with a logical ‘and.’ */ +export interface Base64EncodedBinaryFilter { + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: Base64EncodedBinary; + /** Equal to the specified value. */ + equalTo?: Base64EncodedBinary; + /** Included in the specified list. */ + in?: Base64EncodedBinary[]; + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: Base64EncodedBinary; + /** Not equal to the specified value. */ + notEqualTo?: Base64EncodedBinary; + /** Not included in the specified list. */ + notIn?: Base64EncodedBinary[]; } -export interface UpdateInfraStoreInput { - clientMutationId?: string; - id: string; - infraStorePatch: InfraStorePatch; +/** A filter to be used against many `FunctionInvocation` object types. All fields are combined with a logical ‘and.’ */ +export interface FunctionApiBindingToManyFunctionInvocationFilter { + /** Filters to entities where every related entity matches. */ + every?: FunctionInvocationFilter; + /** Filters to entities where no related entity matches. */ + none?: FunctionInvocationFilter; + /** Filters to entities where at least one related entity matches. */ + some?: FunctionInvocationFilter; } -export interface DeleteInfraStoreInput { - clientMutationId?: string; - id: string; +/** A filter to be used against many `FunctionApiBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface FunctionDefinitionToManyFunctionApiBindingFilter { + /** Filters to entities where every related entity matches. */ + every?: FunctionApiBindingFilter; + /** Filters to entities where no related entity matches. */ + none?: FunctionApiBindingFilter; + /** Filters to entities where at least one related entity matches. */ + some?: FunctionApiBindingFilter; } -export interface CreateIntegrationProviderInput { - clientMutationId?: string; - integrationProvider: { - brand?: Record; - category?: string; - description?: string; - icon?: string; - logo?: ConstructiveInternalTypeImage; - name: string; - requiredConfigs?: ResourceRequirementInput[]; - requiredSecrets?: ResourceRequirementInput[]; - slug: string; - }; +/** A filter to be used against many `FunctionCapabilityBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface FunctionDefinitionToManyFunctionCapabilityBindingFilter { + /** Filters to entities where every related entity matches. */ + every?: FunctionCapabilityBindingFilter; + /** Filters to entities where no related entity matches. */ + none?: FunctionCapabilityBindingFilter; + /** Filters to entities where at least one related entity matches. */ + some?: FunctionCapabilityBindingFilter; } -export interface IntegrationProviderPatch { - brand?: Record | null; - category?: string | null; - description?: string | null; - icon?: string | null; - logo?: ConstructiveInternalTypeImage | null; - logoUpload?: File | null; - name?: string | null; - requiredConfigs?: ResourceRequirementInput[] | null; - requiredSecrets?: ResourceRequirementInput[] | null; - slug?: string | null; +/** A filter to be used against many `WebhookEndpoint` object types. All fields are combined with a logical ‘and.’ */ +export interface FunctionDefinitionToManyWebhookEndpointFilter { + /** Filters to entities where every related entity matches. */ + every?: WebhookEndpointFilter; + /** Filters to entities where no related entity matches. */ + none?: WebhookEndpointFilter; + /** Filters to entities where at least one related entity matches. */ + some?: WebhookEndpointFilter; } -export interface UpdateIntegrationProviderInput { - clientMutationId?: string; - id: string; - integrationProviderPatch: IntegrationProviderPatch; +/** A filter to be used against many `FunctionGraphExecution` object types. All fields are combined with a logical ‘and.’ */ +export interface FunctionGraphToManyFunctionGraphExecutionFilter { + /** Filters to entities where every related entity matches. */ + every?: FunctionGraphExecutionFilter; + /** Filters to entities where no related entity matches. */ + none?: FunctionGraphExecutionFilter; + /** Filters to entities where at least one related entity matches. */ + some?: FunctionGraphExecutionFilter; } -export interface DeleteIntegrationProviderInput { - clientMutationId?: string; - id: string; +/** A filter to be used against many `PlatformFunctionDefinition` object types. All fields are combined with a logical ‘and.’ */ +export interface FunctionGraphToManyPlatformFunctionDefinitionFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformFunctionDefinitionFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformFunctionDefinitionFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformFunctionDefinitionFilter; } -export interface CreateNamespaceInput { - clientMutationId?: string; - namespace: { - annotations?: Record; - databaseId: string; - description?: string; - isActive?: boolean; - isManaged?: boolean; - labels?: Record; - lastError?: string; - name: string; - namespaceName: string; - status?: string; - }; +/** A filter to be used against many `PlatformRepositoryWorkflow` object types. All fields are combined with a logical ‘and.’ */ +export interface FunctionGraphToManyPlatformRepositoryWorkflowFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformRepositoryWorkflowFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformRepositoryWorkflowFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformRepositoryWorkflowFilter; } -export interface NamespacePatch { - annotations?: Record | null; - databaseId?: string | null; - description?: string | null; - isActive?: boolean | null; - isManaged?: boolean | null; - labels?: Record | null; - lastError?: string | null; - name?: string | null; - namespaceName?: string | null; - status?: string | null; +/** A filter to be used against many `ImageGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface ImageToManyImageGrantFilter { + /** Filters to entities where every related entity matches. */ + every?: ImageGrantFilter; + /** Filters to entities where no related entity matches. */ + none?: ImageGrantFilter; + /** Filters to entities where at least one related entity matches. */ + some?: ImageGrantFilter; } -export interface UpdateNamespaceInput { - clientMutationId?: string; - id: string; - namespacePatch: NamespacePatch; +/** A filter to be used against ConstructiveInternalTypeImage fields. All fields are combined with a logical ‘and.’ */ +export interface ConstructiveInternalTypeImageFilter { + /** Contained by the specified JSON. */ + containedBy?: ConstructiveInternalTypeImage; + /** Contains the specified JSON. */ + contains?: ConstructiveInternalTypeImage; + /** Contains all of the specified keys. */ + containsAllKeys?: string[]; + /** Contains any of the specified keys. */ + containsAnyKeys?: string[]; + /** Contains the specified key. */ + containsKey?: string; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: ConstructiveInternalTypeImage; + /** Equal to the specified value. */ + equalTo?: ConstructiveInternalTypeImage; + /** Greater than the specified value. */ + greaterThan?: ConstructiveInternalTypeImage; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: ConstructiveInternalTypeImage; + /** Included in the specified list. */ + in?: ConstructiveInternalTypeImage[]; + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Less than the specified value. */ + lessThan?: ConstructiveInternalTypeImage; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: ConstructiveInternalTypeImage; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: ConstructiveInternalTypeImage; + /** Not equal to the specified value. */ + notEqualTo?: ConstructiveInternalTypeImage; + /** Not included in the specified list. */ + notIn?: ConstructiveInternalTypeImage[]; } -export interface DeleteNamespaceInput { - clientMutationId?: string; - id: string; +/** A filter to be used against many `BuilderBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface NamespaceToManyBuilderBindingFilter { + /** Filters to entities where every related entity matches. */ + every?: BuilderBindingFilter; + /** Filters to entities where no related entity matches. */ + none?: BuilderBindingFilter; + /** Filters to entities where at least one related entity matches. */ + some?: BuilderBindingFilter; } -export interface CreateNamespaceEventInput { - clientMutationId?: string; - namespaceEvent: { - actorId?: string; - databaseId: string; - eventType: string; - message?: string; - metadata?: Record; - namespaceId: string; - }; +/** A filter to be used against many `FunctionDeployment` object types. All fields are combined with a logical ‘and.’ */ +export interface NamespaceToManyFunctionDeploymentFilter { + /** Filters to entities where every related entity matches. */ + every?: FunctionDeploymentFilter; + /** Filters to entities where no related entity matches. */ + none?: FunctionDeploymentFilter; + /** Filters to entities where at least one related entity matches. */ + some?: FunctionDeploymentFilter; } -export interface NamespaceEventPatch { - actorId?: string | null; - databaseId?: string | null; - eventType?: string | null; - message?: string | null; - metadata?: Record | null; - namespaceId?: string | null; +/** A filter to be used against many `RegistryBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface NamespaceToManyRegistryBindingFilter { + /** Filters to entities where every related entity matches. */ + every?: RegistryBindingFilter; + /** Filters to entities where no related entity matches. */ + none?: RegistryBindingFilter; + /** Filters to entities where at least one related entity matches. */ + some?: RegistryBindingFilter; } -export interface UpdateNamespaceEventInput { - clientMutationId?: string; - id: string; - namespaceEventPatch: NamespaceEventPatch; +/** A filter to be used against many `ResourceDefinition` object types. All fields are combined with a logical ‘and.’ */ +export interface NamespaceToManyResourceDefinitionFilter { + /** Filters to entities where every related entity matches. */ + every?: ResourceDefinitionFilter; + /** Filters to entities where no related entity matches. */ + none?: ResourceDefinitionFilter; + /** Filters to entities where at least one related entity matches. */ + some?: ResourceDefinitionFilter; } -export interface DeleteNamespaceEventInput { - clientMutationId?: string; - id: string; +/** A filter to be used against many `ResourceInstallation` object types. All fields are combined with a logical ‘and.’ */ +export interface NamespaceToManyResourceInstallationFilter { + /** Filters to entities where every related entity matches. */ + every?: ResourceInstallationFilter; + /** Filters to entities where no related entity matches. */ + none?: ResourceInstallationFilter; + /** Filters to entities where at least one related entity matches. */ + some?: ResourceInstallationFilter; } -export interface CreatePlatformFunctionApiBindingInput { - clientMutationId?: string; - platformFunctionApiBinding: { - alias?: string; - apiId: string; - config?: Record; - functionDefinitionId: string; - }; +/** A filter to be used against many `Resource` object types. All fields are combined with a logical ‘and.’ */ +export interface NamespaceToManyResourceFilter { + /** Filters to entities where every related entity matches. */ + every?: ResourceFilter; + /** Filters to entities where no related entity matches. */ + none?: ResourceFilter; + /** Filters to entities where at least one related entity matches. */ + some?: ResourceFilter; } -export interface PlatformFunctionApiBindingPatch { - alias?: string | null; - apiId?: string | null; - config?: Record | null; - functionDefinitionId?: string | null; +/** A filter to be used against many `WebhookEndpoint` object types. All fields are combined with a logical ‘and.’ */ +export interface NamespaceToManyWebhookEndpointFilter { + /** Filters to entities where every related entity matches. */ + every?: WebhookEndpointFilter; + /** Filters to entities where no related entity matches. */ + none?: WebhookEndpointFilter; + /** Filters to entities where at least one related entity matches. */ + some?: WebhookEndpointFilter; } -export interface UpdatePlatformFunctionApiBindingInput { - clientMutationId?: string; - id: string; - platformFunctionApiBindingPatch: PlatformFunctionApiBindingPatch; +/** A filter to be used against many `PlatformFunctionInvocation` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformFunctionApiBindingToManyPlatformFunctionInvocationFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformFunctionInvocationFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformFunctionInvocationFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformFunctionInvocationFilter; } -export interface DeletePlatformFunctionApiBindingInput { - clientMutationId?: string; - id: string; +/** A filter to be used against many `PlatformFunctionApiBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformFunctionDefinitionToManyPlatformFunctionApiBindingFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformFunctionApiBindingFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformFunctionApiBindingFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformFunctionApiBindingFilter; } -export interface CreatePlatformFunctionCapabilityBindingInput { - clientMutationId?: string; - platformFunctionCapabilityBinding: { - bucketId?: string; - functionId?: string; - graphId?: string; - key?: string; - lifecycle: string; - metadata?: Record; - }; +/** A filter to be used against many `PlatformFunctionCapabilityBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformFunctionDefinitionToManyPlatformFunctionCapabilityBindingFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformFunctionCapabilityBindingFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformFunctionCapabilityBindingFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformFunctionCapabilityBindingFilter; } -export interface PlatformFunctionCapabilityBindingPatch { - bucketId?: string | null; - functionId?: string | null; - graphId?: string | null; - key?: string | null; - lifecycle?: string | null; - metadata?: Record | null; +/** A filter to be used against many `PlatformWebhookEndpoint` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformFunctionDefinitionToManyPlatformWebhookEndpointFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformWebhookEndpointFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformWebhookEndpointFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformWebhookEndpointFilter; } -export interface UpdatePlatformFunctionCapabilityBindingInput { - clientMutationId?: string; - id: string; - platformFunctionCapabilityBindingPatch: PlatformFunctionCapabilityBindingPatch; +/** A filter to be used against many `PlatformImageGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformImageToManyPlatformImageGrantFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformImageGrantFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformImageGrantFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformImageGrantFilter; } -export interface DeletePlatformFunctionCapabilityBindingInput { - clientMutationId?: string; - id: string; +/** A filter to be used against many `PlatformBuilderBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformNamespaceToManyPlatformBuilderBindingFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformBuilderBindingFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformBuilderBindingFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformBuilderBindingFilter; } -export interface CreatePlatformFunctionDefinitionInput { - clientMutationId?: string; - platformFunctionDefinition: { - accessChannels?: string[]; - billable?: boolean; - category: string; - concurrency?: number; - description?: string; - fnCategory?: string; - functionColumns?: Record; - graphId?: string; - icon?: string; - image?: string; - inputs?: Record; - integrations?: string[]; - isPublished?: boolean; - maxAttempts?: number; - moduleTable?: string; - name: string; - outputs?: Record; - payloadArgs?: Record; - priority?: number; - props?: Record; - protected?: boolean; - publishedAt?: string; - queueName?: string; - requiredBuckets?: string[]; - requiredConfigs?: ResourceRequirementInput[]; - requiredModels?: string[]; - requiredModules?: string[]; - requiredSecrets?: ResourceRequirementInput[]; - resources?: Record; - runtime?: string; - scaleMax?: number; - scaleMin?: number; - system?: boolean; - targetFunction?: string; - targetSchema?: string; - timeoutSeconds?: number; - volatile?: boolean; - }; +/** A filter to be used against many `PlatformFunctionDeployment` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformNamespaceToManyPlatformFunctionDeploymentFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformFunctionDeploymentFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformFunctionDeploymentFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformFunctionDeploymentFilter; } -export interface PlatformFunctionDefinitionPatch { - accessChannels?: string[] | null; - billable?: boolean | null; - category?: string | null; - concurrency?: number | null; - description?: string | null; - fnCategory?: string | null; - functionColumns?: Record | null; - graphId?: string | null; - icon?: string | null; - image?: string | null; - inputs?: Record | null; - integrations?: string[] | null; - isPublished?: boolean | null; - maxAttempts?: number | null; - moduleTable?: string | null; - name?: string | null; - outputs?: Record | null; - payloadArgs?: Record | null; - priority?: number | null; - props?: Record | null; - protected?: boolean | null; - publishedAt?: string | null; - queueName?: string | null; - requiredBuckets?: string[] | null; - requiredConfigs?: ResourceRequirementInput[] | null; - requiredModels?: string[] | null; - requiredModules?: string[] | null; - requiredSecrets?: ResourceRequirementInput[] | null; - resources?: Record | null; - runtime?: string | null; - scaleMax?: number | null; - scaleMin?: number | null; - system?: boolean | null; - targetFunction?: string | null; - targetSchema?: string | null; - timeoutSeconds?: number | null; - volatile?: boolean | null; +/** A filter to be used against many `PlatformRegistryBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformNamespaceToManyPlatformRegistryBindingFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformRegistryBindingFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformRegistryBindingFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformRegistryBindingFilter; } -export interface UpdatePlatformFunctionDefinitionInput { - clientMutationId?: string; - id: string; - platformFunctionDefinitionPatch: PlatformFunctionDefinitionPatch; +/** A filter to be used against many `PlatformResourceDefinition` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformNamespaceToManyPlatformResourceDefinitionFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformResourceDefinitionFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformResourceDefinitionFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformResourceDefinitionFilter; } -export interface DeletePlatformFunctionDefinitionInput { - clientMutationId?: string; - id: string; +/** A filter to be used against many `PlatformResourceInstallation` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformNamespaceToManyPlatformResourceInstallationFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformResourceInstallationFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformResourceInstallationFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformResourceInstallationFilter; +} +/** A filter to be used against many `PlatformResource` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformNamespaceToManyPlatformResourceFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformResourceFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformResourceFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformResourceFilter; } -export interface CreatePlatformFunctionDeploymentInput { - clientMutationId?: string; - platformFunctionDeployment: { - annotations?: Record; - concurrency?: number; - errorCount?: number; - handlerName?: string; - image: string; - imageVersion?: string; - labels?: Record; - lastError?: string; - lastErrorAt?: string; - namespaceId: string; - realm?: string; - resources?: Record; - revision?: number; - scaleMax?: number; - scaleMin?: number; - serviceName?: string; - serviceUrl?: string; - status?: string; - timeoutSeconds?: number; - }; +/** A filter to be used against many `PlatformWebhookEndpoint` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformNamespaceToManyPlatformWebhookEndpointFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformWebhookEndpointFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformWebhookEndpointFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformWebhookEndpointFilter; } -export interface PlatformFunctionDeploymentPatch { - annotations?: Record | null; - concurrency?: number | null; - errorCount?: number | null; - handlerName?: string | null; - image?: string | null; - imageVersion?: string | null; - labels?: Record | null; - lastError?: string | null; - lastErrorAt?: string | null; - namespaceId?: string | null; - realm?: string | null; - resources?: Record | null; - revision?: number | null; - scaleMax?: number | null; - scaleMin?: number | null; - serviceName?: string | null; - serviceUrl?: string | null; - status?: string | null; - timeoutSeconds?: number | null; +/** A filter to be used against ConstructiveInternalTypeUpload List fields. All fields are combined with a logical ‘and.’ */ +export interface ConstructiveInternalTypeUploadListFilter { + /** Any array item is equal to the specified value. */ + anyEqualTo?: ConstructiveInternalTypeUpload; + /** Any array item is greater than the specified value. */ + anyGreaterThan?: ConstructiveInternalTypeUpload; + /** Any array item is greater than or equal to the specified value. */ + anyGreaterThanOrEqualTo?: ConstructiveInternalTypeUpload; + /** Any array item is less than the specified value. */ + anyLessThan?: ConstructiveInternalTypeUpload; + /** Any array item is less than or equal to the specified value. */ + anyLessThanOrEqualTo?: ConstructiveInternalTypeUpload; + /** Any array item is not equal to the specified value. */ + anyNotEqualTo?: ConstructiveInternalTypeUpload; + /** Contained by the specified list of values. */ + containedBy?: ConstructiveInternalTypeUpload[]; + /** Contains the specified list of values. */ + contains?: ConstructiveInternalTypeUpload[]; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: ConstructiveInternalTypeUpload[]; + /** Equal to the specified value. */ + equalTo?: ConstructiveInternalTypeUpload[]; + /** Greater than the specified value. */ + greaterThan?: ConstructiveInternalTypeUpload[]; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: ConstructiveInternalTypeUpload[]; + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Less than the specified value. */ + lessThan?: ConstructiveInternalTypeUpload[]; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: ConstructiveInternalTypeUpload[]; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: ConstructiveInternalTypeUpload[]; + /** Not equal to the specified value. */ + notEqualTo?: ConstructiveInternalTypeUpload[]; + /** Overlaps the specified list of values. */ + overlaps?: ConstructiveInternalTypeUpload[]; } -export interface UpdatePlatformFunctionDeploymentInput { - clientMutationId?: string; - id: string; - platformFunctionDeploymentPatch: PlatformFunctionDeploymentPatch; +/** A filter to be used against String fields with pg_trgm support. All fields are combined with a logical ‘and.’ */ +export interface StringTrgmFilter { + /** 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; + /** Fuzzy matches using pg_trgm trigram similarity. Tolerates typos and misspellings. */ + similarTo?: TrgmSearchInput; + /** Starts with the specified string (case-sensitive). */ + startsWith?: string; + /** Starts with the specified string (case-insensitive). */ + startsWithInsensitive?: string; + /** Fuzzy matches using pg_trgm word_similarity. Finds the best matching substring within the column value. */ + wordSimilarTo?: TrgmSearchInput; } -export interface DeletePlatformFunctionDeploymentInput { - clientMutationId?: string; - id: string; +/** A filter to be used against many `PlatformProposalReaction` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformProposalCommentToManyPlatformProposalReactionFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformProposalReactionFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformProposalReactionFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformProposalReactionFilter; +} +/** Input for pg_trgm fuzzy text matching. Provide a search value and optional similarity threshold. */ +export interface TrgmSearchInput { + /** Minimum similarity threshold (0.0 to 1.0). Higher = stricter matching. Default is 0.3. */ + threshold?: number; + /** The text to fuzzy-match against. Typos and misspellings are tolerated. */ + value: string; +} +/** Input for vector similarity search. Provide a query vector, optional metric, and optional max distance threshold. */ +export interface VectorNearbyInput { + /** Maximum distance threshold. Only rows within this distance are returned. */ + distance?: number; + /** When true (default for tables with @hasChunks), transparently queries the chunks table and returns the minimum distance across parent + all chunks. Set to false to only search the parent embedding. */ + includeChunks?: boolean; + /** Similarity metric to use (default: COSINE). */ + metric?: VectorMetric; + /** Natural language text to embed server-side for similarity search. Mutually exclusive with `vector` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + text?: string; + /** Query vector for similarity search. */ + vector: number[]; +} +/** A filter to be used against many `PlatformProposal` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformProposalToManyPlatformProposalFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformProposalFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformProposalFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformProposalFilter; } -export interface CreatePlatformFunctionDeploymentEventInput { - clientMutationId?: string; - platformFunctionDeploymentEvent: { - actorId?: string; - deploymentId: string; - eventType: string; - message?: string; - metadata?: Record; - }; +/** A filter to be used against many `PlatformBuild` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformProposalToManyPlatformBuildFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformBuildFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformBuildFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformBuildFilter; } -export interface PlatformFunctionDeploymentEventPatch { - actorId?: string | null; - deploymentId?: string | null; - eventType?: string | null; - message?: string | null; - metadata?: Record | null; +/** A filter to be used against many `PlatformProposalComment` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformProposalToManyPlatformProposalCommentFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformProposalCommentFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformProposalCommentFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformProposalCommentFilter; } -export interface UpdatePlatformFunctionDeploymentEventInput { - clientMutationId?: string; - id: string; - platformFunctionDeploymentEventPatch: PlatformFunctionDeploymentEventPatch; +/** A filter to be used against many `PlatformProposalFileView` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformProposalToManyPlatformProposalFileViewFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformProposalFileViewFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformProposalFileViewFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformProposalFileViewFilter; } -export interface DeletePlatformFunctionDeploymentEventInput { - clientMutationId?: string; - id: string; +/** A filter to be used against many `PlatformProposalReaction` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformProposalToManyPlatformProposalReactionFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformProposalReactionFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformProposalReactionFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformProposalReactionFilter; } -export interface CreatePlatformFunctionExecutionLogInput { - clientMutationId?: string; - platformFunctionExecutionLog: { - actorId?: string; - invocationId?: string; - logLevel?: string; - message: string; - metadata?: Record; - taskIdentifier?: string; - }; +/** A filter to be used against many `PlatformProposalReview` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformProposalToManyPlatformProposalReviewFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformProposalReviewFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformProposalReviewFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformProposalReviewFilter; } -export interface PlatformFunctionExecutionLogPatch { - actorId?: string | null; - invocationId?: string | null; - logLevel?: string | null; - message?: string | null; - metadata?: Record | null; - taskIdentifier?: string | null; +/** A filter to be used against many `PlatformProposalsChunk` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformProposalToManyPlatformProposalsChunkFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformProposalsChunkFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformProposalsChunkFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformProposalsChunkFilter; } -export interface UpdatePlatformFunctionExecutionLogInput { - clientMutationId?: string; - id: string; - platformFunctionExecutionLogPatch: PlatformFunctionExecutionLogPatch; +/** A filter to be used against many `PlatformRegistryBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformRegistryToManyPlatformRegistryBindingFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformRegistryBindingFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformRegistryBindingFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformRegistryBindingFilter; } -export interface DeletePlatformFunctionExecutionLogInput { - clientMutationId?: string; - id: string; +/** A filter to be used against many `PlatformRegistryGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformRegistryToManyPlatformRegistryGrantFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformRegistryGrantFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformRegistryGrantFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformRegistryGrantFilter; } -export interface CreatePlatformFunctionInvocationAttemptInput { - clientMutationId?: string; - platformFunctionInvocationAttempt: { - actorId?: string; - attempt: number; - durationMs?: number; - error?: string; - errorDetail?: Record; - invocationCreatedAt: string; - invocationId: string; - startedAt?: string; - success: boolean; - taskIdentifier: string; - }; +/** A filter to be used against many `PlatformBuild` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformRepositoryToManyPlatformBuildFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformBuildFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformBuildFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformBuildFilter; } -export interface PlatformFunctionInvocationAttemptPatch { - actorId?: string | null; - attempt?: number | null; - durationMs?: number | null; - error?: string | null; - errorDetail?: Record | null; - invocationCreatedAt?: string | null; - invocationId?: string | null; - startedAt?: string | null; - success?: boolean | null; - taskIdentifier?: string | null; +/** A filter to be used against many `PlatformProposal` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformRepositoryToManyPlatformProposalFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformProposalFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformProposalFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformProposalFilter; } -export interface UpdatePlatformFunctionInvocationAttemptInput { - clientMutationId?: string; - id: string; - platformFunctionInvocationAttemptPatch: PlatformFunctionInvocationAttemptPatch; +/** A filter to be used against many `PlatformRepositoryEvent` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformRepositoryToManyPlatformRepositoryEventFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformRepositoryEventFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformRepositoryEventFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformRepositoryEventFilter; } -export interface DeletePlatformFunctionInvocationAttemptInput { - clientMutationId?: string; - id: string; +/** A filter to be used against many `PlatformRepositoryRequiredCheck` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformRepositoryToManyPlatformRepositoryRequiredCheckFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformRepositoryRequiredCheckFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformRepositoryRequiredCheckFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformRepositoryRequiredCheckFilter; } -export interface CreatePlatformFunctionInvocationInput { - clientMutationId?: string; - platformFunctionInvocation: { - actorId?: string; - apiBindingId?: string; - channel?: string; - completedAt?: string; - databaseId?: string; - definitionScope?: string; - durationMs?: number; - error?: string; - functionDefinitionId?: string; - graphExecutionId?: string; - jobId?: string; - parentInvocationId?: string; - payload?: Record; - provenance?: Record; - result?: Record; - startedAt?: string; - status?: string; - taskIdentifier: string; - }; +/** A filter to be used against many `PlatformRepositoryWorkflow` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformRepositoryToManyPlatformRepositoryWorkflowFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformRepositoryWorkflowFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformRepositoryWorkflowFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformRepositoryWorkflowFilter; } -export interface PlatformFunctionInvocationPatch { - actorId?: string | null; - apiBindingId?: string | null; - channel?: string | null; - completedAt?: string | null; - databaseId?: string | null; - definitionScope?: string | null; - durationMs?: number | null; - error?: string | null; - functionDefinitionId?: string | null; - graphExecutionId?: string | null; - jobId?: string | null; - parentInvocationId?: string | null; - payload?: Record | null; - provenance?: Record | null; - result?: Record | null; - startedAt?: string | null; - status?: string | null; - taskIdentifier?: string | null; +/** A filter to be used against many `PlatformBuild` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformRepositoryEventToManyPlatformBuildFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformBuildFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformBuildFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformBuildFilter; } -export interface UpdatePlatformFunctionInvocationInput { - clientMutationId?: string; - id: string; - platformFunctionInvocationPatch: PlatformFunctionInvocationPatch; +/** A filter to be used against many `PlatformBuild` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformRepositoryWorkflowToManyPlatformBuildFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformBuildFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformBuildFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformBuildFilter; } -export interface DeletePlatformFunctionInvocationInput { - clientMutationId?: string; - id: string; +/** A filter to be used against many `PlatformRepositoryRequiredCheck` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformRepositoryWorkflowToManyPlatformRepositoryRequiredCheckFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformRepositoryRequiredCheckFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformRepositoryRequiredCheckFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformRepositoryRequiredCheckFilter; } -export interface CreatePlatformInfraCommitInput { - clientMutationId?: string; - platformInfraCommit: { - authorId?: string; - committerId?: string; - date?: string; - message?: string; - parentIds?: string[]; - scopeId: string; - storeId: string; - treeId?: string; - }; +/** A filter to be used against many `PlatformResourceStatusCheck` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformResourceToManyPlatformResourceStatusCheckFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformResourceStatusCheckFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformResourceStatusCheckFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformResourceStatusCheckFilter; } -export interface PlatformInfraCommitPatch { - authorId?: string | null; - committerId?: string | null; - date?: string | null; - message?: string | null; - parentIds?: string[] | null; - scopeId?: string | null; - storeId?: string | null; - treeId?: string | null; +/** A filter to be used against many `PlatformResource` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformResourceDefinitionToManyPlatformResourceFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformResourceFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformResourceFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformResourceFilter; } -export interface UpdatePlatformInfraCommitInput { - clientMutationId?: string; - id: string; - platformInfraCommitPatch: PlatformInfraCommitPatch; +/** A filter to be used against Interval fields. All fields are combined with a logical ‘and.’ */ +export interface IntervalFilter { + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: IntervalInput; + /** Equal to the specified value. */ + equalTo?: IntervalInput; + /** Greater than the specified value. */ + greaterThan?: IntervalInput; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: IntervalInput; + /** Included in the specified list. */ + in?: IntervalInput[]; + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Less than the specified value. */ + lessThan?: IntervalInput; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: IntervalInput; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: IntervalInput; + /** Not equal to the specified value. */ + notEqualTo?: IntervalInput; + /** Not included in the specified list. */ + notIn?: IntervalInput[]; } -export interface DeletePlatformInfraCommitInput { - clientMutationId?: string; - id: string; +/** A filter to be used against many `PlatformRegistry` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformResourceInstallationToManyPlatformRegistryFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformRegistryFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformRegistryFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformRegistryFilter; } -export interface CreatePlatformInfraGetAllTreeNodesRecordInput { - clientMutationId?: string; - platformInfraGetAllTreeNodesRecord: { - data?: Record; - path?: string[]; - }; +/** A filter to be used against many `PlatformResource` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformResourceInstallationToManyPlatformResourceFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformResourceFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformResourceFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformResourceFilter; } -export interface PlatformInfraGetAllTreeNodesRecordPatch { - data?: Record | null; - path?: string[] | null; +/** A filter to be used against many `PlatformWebhookEvent` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformWebhookEndpointToManyPlatformWebhookEventFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformWebhookEventFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformWebhookEventFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformWebhookEventFilter; } -export interface UpdatePlatformInfraGetAllTreeNodesRecordInput { - clientMutationId?: string; - id: string; - platformInfraGetAllTreeNodesRecordPatch: PlatformInfraGetAllTreeNodesRecordPatch; +/** A filter to be used against many `ProposalReaction` object types. All fields are combined with a logical ‘and.’ */ +export interface ProposalCommentToManyProposalReactionFilter { + /** Filters to entities where every related entity matches. */ + every?: ProposalReactionFilter; + /** Filters to entities where no related entity matches. */ + none?: ProposalReactionFilter; + /** Filters to entities where at least one related entity matches. */ + some?: ProposalReactionFilter; } -export interface DeletePlatformInfraGetAllTreeNodesRecordInput { - clientMutationId?: string; - id: string; +/** A filter to be used against many `Build` object types. All fields are combined with a logical ‘and.’ */ +export interface ProposalToManyBuildFilter { + /** Filters to entities where every related entity matches. */ + every?: BuildFilter; + /** Filters to entities where no related entity matches. */ + none?: BuildFilter; + /** Filters to entities where at least one related entity matches. */ + some?: BuildFilter; } -export interface CreatePlatformInfraObjectInput { - clientMutationId?: string; - platformInfraObject: { - data?: Record; - kids?: string[]; - ktree?: string[]; - scopeId: string; - }; +/** A filter to be used against many `Proposal` object types. All fields are combined with a logical ‘and.’ */ +export interface ProposalToManyProposalFilter { + /** Filters to entities where every related entity matches. */ + every?: ProposalFilter; + /** Filters to entities where no related entity matches. */ + none?: ProposalFilter; + /** Filters to entities where at least one related entity matches. */ + some?: ProposalFilter; } -export interface PlatformInfraObjectPatch { - data?: Record | null; - kids?: string[] | null; - ktree?: string[] | null; - scopeId?: string | null; +/** A filter to be used against many `ProposalComment` object types. All fields are combined with a logical ‘and.’ */ +export interface ProposalToManyProposalCommentFilter { + /** Filters to entities where every related entity matches. */ + every?: ProposalCommentFilter; + /** Filters to entities where no related entity matches. */ + none?: ProposalCommentFilter; + /** Filters to entities where at least one related entity matches. */ + some?: ProposalCommentFilter; } -export interface UpdatePlatformInfraObjectInput { - clientMutationId?: string; - id: string; - platformInfraObjectPatch: PlatformInfraObjectPatch; +/** A filter to be used against many `ProposalFileView` object types. All fields are combined with a logical ‘and.’ */ +export interface ProposalToManyProposalFileViewFilter { + /** Filters to entities where every related entity matches. */ + every?: ProposalFileViewFilter; + /** Filters to entities where no related entity matches. */ + none?: ProposalFileViewFilter; + /** Filters to entities where at least one related entity matches. */ + some?: ProposalFileViewFilter; } -export interface DeletePlatformInfraObjectInput { - clientMutationId?: string; - id: string; +/** A filter to be used against many `ProposalReaction` object types. All fields are combined with a logical ‘and.’ */ +export interface ProposalToManyProposalReactionFilter { + /** Filters to entities where every related entity matches. */ + every?: ProposalReactionFilter; + /** Filters to entities where no related entity matches. */ + none?: ProposalReactionFilter; + /** Filters to entities where at least one related entity matches. */ + some?: ProposalReactionFilter; } -export interface CreatePlatformInfraRefInput { - clientMutationId?: string; - platformInfraRef: { - commitId?: string; - name: string; - scopeId: string; - storeId: string; - }; +/** A filter to be used against many `ProposalReview` object types. All fields are combined with a logical ‘and.’ */ +export interface ProposalToManyProposalReviewFilter { + /** Filters to entities where every related entity matches. */ + every?: ProposalReviewFilter; + /** Filters to entities where no related entity matches. */ + none?: ProposalReviewFilter; + /** Filters to entities where at least one related entity matches. */ + some?: ProposalReviewFilter; } -export interface PlatformInfraRefPatch { - commitId?: string | null; - name?: string | null; - scopeId?: string | null; - storeId?: string | null; +/** A filter to be used against many `ProposalsChunk` object types. All fields are combined with a logical ‘and.’ */ +export interface ProposalToManyProposalsChunkFilter { + /** Filters to entities where every related entity matches. */ + every?: ProposalsChunkFilter; + /** Filters to entities where no related entity matches. */ + none?: ProposalsChunkFilter; + /** Filters to entities where at least one related entity matches. */ + some?: ProposalsChunkFilter; } -export interface UpdatePlatformInfraRefInput { - clientMutationId?: string; - id: string; - platformInfraRefPatch: PlatformInfraRefPatch; +/** A filter to be used against many `RegistryBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface RegistryToManyRegistryBindingFilter { + /** Filters to entities where every related entity matches. */ + every?: RegistryBindingFilter; + /** Filters to entities where no related entity matches. */ + none?: RegistryBindingFilter; + /** Filters to entities where at least one related entity matches. */ + some?: RegistryBindingFilter; } -export interface DeletePlatformInfraRefInput { - clientMutationId?: string; - id: string; +/** A filter to be used against many `RegistryGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface RegistryToManyRegistryGrantFilter { + /** Filters to entities where every related entity matches. */ + every?: RegistryGrantFilter; + /** Filters to entities where no related entity matches. */ + none?: RegistryGrantFilter; + /** Filters to entities where at least one related entity matches. */ + some?: RegistryGrantFilter; } -export interface CreatePlatformInfraStoreInput { - clientMutationId?: string; - platformInfraStore: { - hash?: string; - name: string; - scopeId: string; - }; +/** A filter to be used against many `Build` object types. All fields are combined with a logical ‘and.’ */ +export interface RepositoryToManyBuildFilter { + /** Filters to entities where every related entity matches. */ + every?: BuildFilter; + /** Filters to entities where no related entity matches. */ + none?: BuildFilter; + /** Filters to entities where at least one related entity matches. */ + some?: BuildFilter; } -export interface PlatformInfraStorePatch { - hash?: string | null; - name?: string | null; - scopeId?: string | null; +/** A filter to be used against many `Proposal` object types. All fields are combined with a logical ‘and.’ */ +export interface RepositoryToManyProposalFilter { + /** Filters to entities where every related entity matches. */ + every?: ProposalFilter; + /** Filters to entities where no related entity matches. */ + none?: ProposalFilter; + /** Filters to entities where at least one related entity matches. */ + some?: ProposalFilter; } -export interface UpdatePlatformInfraStoreInput { - clientMutationId?: string; - id: string; - platformInfraStorePatch: PlatformInfraStorePatch; +/** A filter to be used against many `RepositoryEvent` object types. All fields are combined with a logical ‘and.’ */ +export interface RepositoryToManyRepositoryEventFilter { + /** Filters to entities where every related entity matches. */ + every?: RepositoryEventFilter; + /** Filters to entities where no related entity matches. */ + none?: RepositoryEventFilter; + /** Filters to entities where at least one related entity matches. */ + some?: RepositoryEventFilter; } -export interface DeletePlatformInfraStoreInput { - clientMutationId?: string; - id: string; +/** A filter to be used against many `RepositoryRequiredCheck` object types. All fields are combined with a logical ‘and.’ */ +export interface RepositoryToManyRepositoryRequiredCheckFilter { + /** Filters to entities where every related entity matches. */ + every?: RepositoryRequiredCheckFilter; + /** Filters to entities where no related entity matches. */ + none?: RepositoryRequiredCheckFilter; + /** Filters to entities where at least one related entity matches. */ + some?: RepositoryRequiredCheckFilter; } -export interface CreatePlatformNamespaceInput { - clientMutationId?: string; - platformNamespace: { - annotations?: Record; - description?: string; - isActive?: boolean; - isManaged?: boolean; - labels?: Record; - lastError?: string; - name: string; - namespaceName: string; - status?: string; - }; +/** A filter to be used against many `RepositoryWorkflow` object types. All fields are combined with a logical ‘and.’ */ +export interface RepositoryToManyRepositoryWorkflowFilter { + /** Filters to entities where every related entity matches. */ + every?: RepositoryWorkflowFilter; + /** Filters to entities where no related entity matches. */ + none?: RepositoryWorkflowFilter; + /** Filters to entities where at least one related entity matches. */ + some?: RepositoryWorkflowFilter; } -export interface PlatformNamespacePatch { - annotations?: Record | null; - description?: string | null; - isActive?: boolean | null; - isManaged?: boolean | null; - labels?: Record | null; - lastError?: string | null; - name?: string | null; - namespaceName?: string | null; - status?: string | null; +/** A filter to be used against many `Build` object types. All fields are combined with a logical ‘and.’ */ +export interface RepositoryEventToManyBuildFilter { + /** Filters to entities where every related entity matches. */ + every?: BuildFilter; + /** Filters to entities where no related entity matches. */ + none?: BuildFilter; + /** Filters to entities where at least one related entity matches. */ + some?: BuildFilter; } -export interface UpdatePlatformNamespaceInput { - clientMutationId?: string; - id: string; - platformNamespacePatch: PlatformNamespacePatch; +/** A filter to be used against many `Build` object types. All fields are combined with a logical ‘and.’ */ +export interface RepositoryWorkflowToManyBuildFilter { + /** Filters to entities where every related entity matches. */ + every?: BuildFilter; + /** Filters to entities where no related entity matches. */ + none?: BuildFilter; + /** Filters to entities where at least one related entity matches. */ + some?: BuildFilter; } -export interface DeletePlatformNamespaceInput { - clientMutationId?: string; - id: string; +/** A filter to be used against many `RepositoryRequiredCheck` object types. All fields are combined with a logical ‘and.’ */ +export interface RepositoryWorkflowToManyRepositoryRequiredCheckFilter { + /** Filters to entities where every related entity matches. */ + every?: RepositoryRequiredCheckFilter; + /** Filters to entities where no related entity matches. */ + none?: RepositoryRequiredCheckFilter; + /** Filters to entities where at least one related entity matches. */ + some?: RepositoryRequiredCheckFilter; } -export interface CreatePlatformNamespaceEventInput { - clientMutationId?: string; - platformNamespaceEvent: { - actorId?: string; - eventType: string; - message?: string; - metadata?: Record; - namespaceId: string; - }; +/** A filter to be used against many `ResourceStatusCheck` object types. All fields are combined with a logical ‘and.’ */ +export interface ResourceToManyResourceStatusCheckFilter { + /** Filters to entities where every related entity matches. */ + every?: ResourceStatusCheckFilter; + /** Filters to entities where no related entity matches. */ + none?: ResourceStatusCheckFilter; + /** Filters to entities where at least one related entity matches. */ + some?: ResourceStatusCheckFilter; } -export interface PlatformNamespaceEventPatch { - actorId?: string | null; - eventType?: string | null; - message?: string | null; - metadata?: Record | null; - namespaceId?: string | null; +/** A filter to be used against many `Resource` object types. All fields are combined with a logical ‘and.’ */ +export interface ResourceDefinitionToManyResourceFilter { + /** Filters to entities where every related entity matches. */ + every?: ResourceFilter; + /** Filters to entities where no related entity matches. */ + none?: ResourceFilter; + /** Filters to entities where at least one related entity matches. */ + some?: ResourceFilter; } -export interface UpdatePlatformNamespaceEventInput { - clientMutationId?: string; - id: string; - platformNamespaceEventPatch: PlatformNamespaceEventPatch; +/** A filter to be used against many `Registry` object types. All fields are combined with a logical ‘and.’ */ +export interface ResourceInstallationToManyRegistryFilter { + /** Filters to entities where every related entity matches. */ + every?: RegistryFilter; + /** Filters to entities where no related entity matches. */ + none?: RegistryFilter; + /** Filters to entities where at least one related entity matches. */ + some?: RegistryFilter; } -export interface DeletePlatformNamespaceEventInput { - clientMutationId?: string; - id: string; +/** A filter to be used against many `Resource` object types. All fields are combined with a logical ‘and.’ */ +export interface ResourceInstallationToManyResourceFilter { + /** Filters to entities where every related entity matches. */ + every?: ResourceFilter; + /** Filters to entities where no related entity matches. */ + none?: ResourceFilter; + /** Filters to entities where at least one related entity matches. */ + some?: ResourceFilter; } -export interface CreatePlatformResourceInput { - clientMutationId?: string; - platformResource: { - annotations?: Record; - createdBy?: string; - errorCount?: number; - installationId?: string; - integrations?: string[]; - kind: string; - labels?: Record; - lastError?: string; - lastHeartbeatAt?: string; - name: string; - namespaceId: string; - realm?: string; - requiredConfigs?: ResourceRequirementInput[]; - requiredSecrets?: ResourceRequirementInput[]; - resourceDefinitionId?: string; - slug: string; - spec?: Record; - status?: string; - statusObserved?: Record; - updatedBy?: string; - }; +/** A filter to be used against many `WebhookEvent` object types. All fields are combined with a logical ‘and.’ */ +export interface WebhookEndpointToManyWebhookEventFilter { + /** Filters to entities where every related entity matches. */ + every?: WebhookEventFilter; + /** Filters to entities where no related entity matches. */ + none?: WebhookEventFilter; + /** Filters to entities where at least one related entity matches. */ + some?: WebhookEventFilter; } -export interface PlatformResourcePatch { - annotations?: Record | null; - createdBy?: string | null; - errorCount?: number | null; - installationId?: string | null; - integrations?: string[] | null; - kind?: string | null; - labels?: Record | null; - lastError?: string | null; - lastHeartbeatAt?: string | null; - name?: string | null; - namespaceId?: string | null; - realm?: string | null; - requiredConfigs?: ResourceRequirementInput[] | null; - requiredSecrets?: ResourceRequirementInput[] | null; - resourceDefinitionId?: string | null; - slug?: string | null; - spec?: Record | null; - status?: string | null; - statusObserved?: Record | null; - updatedBy?: string | null; +/** An input for mutations affecting `Build` */ +export interface BuildInput { + /** Authenticated actor this build is attributed to; NULL only when no human actor was proven */ + actorId?: string; + /** Retry attempt number for this workflow, commit, and matrix shard */ + attempt?: number; + /** Commit this build built */ + commitSha?: string; + /** Verdict: NULL while pending/running, then success, failure, neutral, cancelled, skipped, timed_out, or action_required */ + conclusion?: string; + createdAt?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Event that triggered this build (NULL for a manual build) */ + eventId?: string; + /** When the build reached a terminal status */ + finishedAt?: string; + id?: string; + /** Image reference this build produced (registry host/repository:tag; NULL when the build produced no image) */ + imageRef?: string; + /** app_jobs row running this build */ + jobId?: string; + /** Build log object in storage; step rows slice it by byte range */ + logs?: ConstructiveInternalTypeUpload; + /** Matrix shard identity; NULL for a non-matrix build */ + matrixKey?: string; + /** Build detail (step results, durations, failure reason) */ + metadata?: Record; + /** Proposal this build checks (NULL for builds not tied to a proposal) */ + proposalId?: string; + /** Ref this build built */ + ref?: string; + /** Repository this build is of */ + repositoryId: string; + /** When the build began running */ + startedAt?: string; + /** Lifecycle: pending, running, succeeded, failed, cancelled */ + status?: string; + updatedAt?: string; + updatedByPrincipal?: string; + /** Workflow whose firing produced this build (NULL for a manual build) */ + workflowId?: string; +} +/** An input for mutations affecting `BuildStep` */ +export interface BuildStepInput { + /** Build these results belong to */ + buildId: string; + /** Acting principal (agent, API key, or user) who created this record */ + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Process exit code of a step (NULL for a test result) */ + exitCode?: number; + /** When this step or test finished */ + finishedAt?: string; + /** Unique identifier (uuidv7 provides temporal ordering) */ + id?: string; + /** What this row is: step, or test */ + kind?: string; + /** Byte length of this row's output in the build log object */ + logBytes?: string; + /** Byte offset of this row's output in the build log object */ + logOffset?: string; + /** Step name, or the test's fully qualified name */ + name: string; + /** Sequence of the step that reported this test (NULL for a step itself) */ + parentSeq?: number; + /** When the result was recorded (partition key) */ + recordedAt?: string; + /** Position within the build, monotonically increasing across steps and their tests */ + seq: number; + /** When this step or test began */ + startedAt?: string; + /** Outcome: running, succeeded, failed, skipped, cancelled */ + status?: string; + /** Parsed detail: failure message, assertion diff, counts, annotations */ + summary?: Record; } -export interface UpdatePlatformResourceInput { - clientMutationId?: string; - id: string; - platformResourcePatch: PlatformResourcePatch; +/** An input for mutations affecting `BuilderBinding` */ +export interface BuilderBindingInput { + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + id?: string; + /** BuildKit resource installation serving this binding; may belong to another resource scope */ + installationId: string; + /** Most recent projection failure */ + lastError?: string; + /** Reconciler detail (projection timestamps and diagnostics) */ + metadata?: Record; + /** Namespace whose builds use this BuildKit installation */ + namespaceId: string; + /** BuildKit address last projected into the namespace (NULL = never projected) */ + observedHost?: string; + /** Lane this binding applies to (NULL = the scope's default lane) */ + realm?: string; + /** Projection state of BUILDKIT_HOST: pending, active, failed */ + status?: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; } -export interface DeletePlatformResourceInput { - clientMutationId?: string; - id: 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; } -export interface CreatePlatformResourceDeclaredCapacityInput { - clientMutationId?: string; - platformResourceDeclaredCapacity: { - cpuLimitMillicores?: string; - cpuRequestMillicores?: string; - installationId: string; - isTransient?: boolean; - kind?: string; - memoryLimitBytes?: string; - memoryRequestBytes?: string; - namespaceId: string; - podCountMax?: number; - podCountMin?: number; - source?: string; - sourceId: string; - storageSizeBytes?: string; - }; +/** An input for mutations affecting `DatabaseFunctionGraphExecution` */ +export interface DatabaseFunctionGraphExecutionInput { + /** User actor propagated to asynchronous graph jobs */ + actorId?: string; + /** Execution completion timestamp */ + completedAt?: string; + /** Index into execution_plan — tick only processes this wave */ + currentWave?: number; + /** Database scope for multi-tenant isolation */ + databaseId: string; + /** Pinned definitions store commit for deterministic evaluation */ + definitionsCommitId?: string; + /** Entity context propagated to asynchronous graph jobs */ + entityId?: string; + /** Scope discriminator propagated to asynchronous graph jobs */ + entityType?: string; + /** Machine-readable error code when status = failed */ + errorCode?: string; + /** Human-readable error description when status = failed */ + errorMessage?: string; + /** Pre-computed topological sort as array of wave objects */ + executionPlan?: Record; + /** FK to the graph definition being executed */ + graphId: string; + /** Unique execution identifier */ + id?: string; + /** Initial inputs provided at invocation time */ + inputPayload?: Record; + /** Partition coordinate for the function invocation that launched this graph execution */ + invocationCreatedAt?: string; + /** Function invocation that launched this top-level graph execution */ + invocationId?: string; + /** Timestamp of the last real progress (node enqueue, node output, completion) — drives the activity-debounced watchdog */ + lastProgressAt?: string; + /** Maximum pending jobs before execution is failed (default 50) */ + maxPendingJobs?: number; + /** Maximum ticks before execution is failed (default 100) */ + maxTicks?: number; + /** Map of node_name → execution output id (content-addressed hash reference) */ + nodeOutputs?: Record; + /** Organization context propagated to asynchronous graph jobs */ + organizationId?: string; + /** Selected graphOutput portName values; NULL or empty returns all graph outputs */ + outputNames?: string[]; + /** Target output boundary node name to resolve; NULL derives completion from the graph's graphOutput nodes */ + outputNode?: string; + /** Final result extracted from terminal output node */ + outputPayload?: Record; + /** Target output port name (default: value) */ + outputPort?: string; + /** Parent execution when this is a sub-execution */ + parentExecutionId?: string; + /** Function invocation parent assigned to node invocations spawned by this execution */ + parentInvocationId?: string; + /** Node name in parent execution that spawned this sub-execution */ + parentNodeName?: string; + /** Principal identity propagated to asynchronous graph jobs */ + principalId?: string; + /** Execution start timestamp */ + startedAt?: string; + /** Lifecycle: pending → running → completed/failed/cancelled */ + status?: string; + /** Number of evaluate_step ticks executed */ + tickCount?: number; + /** Absolute deadline — execution fails if still running after this time */ + timeoutAt?: string; } -export interface PlatformResourceDeclaredCapacityPatch { - cpuLimitMillicores?: string | null; - cpuRequestMillicores?: string | null; - installationId?: string | null; - isTransient?: boolean | null; - kind?: string | null; - memoryLimitBytes?: string | null; - memoryRequestBytes?: string | null; - namespaceId?: string | null; - podCountMax?: number | null; - podCountMin?: number | null; - source?: string | null; - sourceId?: string | null; - storageSizeBytes?: string | null; +/** An input for mutations affecting `DatabaseFunctionGraphExecutionNodeState` */ +export interface DatabaseFunctionGraphExecutionNodeStateInput { + /** Snapshot of the node's resolved inputs for resource-runtime nodes — served by the node gateway GET /inputs endpoint */ + callbackInputs?: Record; + /** Metering/attribution context stamped at resource dispatch (namespace_id, task_identifier, entity_id, scope, resource identity, dispatched_at, attempt) — lets the node gateway settle and attribute without extra lookups */ + callbackMeta?: Record; + /** SHA-256 hex digest of the node callback token — set for resource-runtime nodes so the node gateway can authenticate result/error/heartbeat callbacks */ + callbackTokenHash?: string; + /** Timestamp when the node finished (success or failure) */ + completedAt?: string; + /** Timestamp of node state creation (partition key) */ + createdAt?: string; + /** Database scope for multi-tenant isolation */ + databaseId: string; + /** Machine-readable error code when status = failed */ + errorCode?: string; + /** Human-readable error description when status = failed */ + errorMessage?: string; + /** FK to the parent graph execution */ + executionId: string; + /** Declared output applied by the default_answer expiry policy */ + expiryDefaultOutput?: Record; + /** When the escalate expiry policy fired — guards the one-time extension */ + expiryEscalatedAt?: string; + /** Declared expiry behaviour when waiting_deadline_at passes unanswered: fail (fail the execution), default_answer (settle with expiry_default_output), or escalate (notify and extend once) */ + expiryPolicy?: string; + /** Unique node state identifier */ + id?: string; + /** Name of the node within the graph (e.g. send-email1) */ + nodeName: string; + /** Full merkle tree path to this node (e.g. {function,graphs,myflow,nodes,send-email1}) — enables subnet hierarchy tracking */ + nodePath?: string[]; + /** FK to execution_outputs — content-addressed output blob for this node */ + outputId?: string; + /** Timestamp when the node began executing */ + startedAt?: string; + /** Node lifecycle: pending → queued → running → completed/failed/cancelled */ + status?: string; + /** When the declared expiry policy applies to the still-unanswered node */ + waitingDeadlineAt?: string; + /** What class of external reporter settles this node: human (a person answers) or external (webhook/adapter). NULL for nodes with an active workload */ + waitingOn?: string; + /** When the node parked awaiting its external report */ + waitingSince?: string; +} +/** An input for mutations affecting `DatabaseFunctionGraphExecutionOutput` */ +export interface DatabaseFunctionGraphExecutionOutputInput { + /** Timestamp of output creation */ + createdAt?: string; + /** The actual output payload from a completed node */ + data: Record; + /** Database scope for multi-tenant isolation */ + databaseId: string; + /** SHA-256 hash of the data JSONB — content-addressed deduplication */ + hash: Base64EncodedBinary; + /** Unique execution output identifier */ + id?: string; } -export interface UpdatePlatformResourceDeclaredCapacityInput { - clientMutationId?: string; - id: string; - platformResourceDeclaredCapacityPatch: PlatformResourceDeclaredCapacityPatch; +/** An input for mutations affecting `DatabaseGraphCommit` */ +export interface DatabaseGraphCommitInput { + /** User who authored the changes */ + authorId?: string; + /** User who committed (may differ from author) */ + committerId?: string; + /** Database scope for multi-tenant isolation */ + databaseId: string; + /** Commit timestamp */ + date?: string; + /** Unique commit identifier */ + id?: string; + /** Optional commit message */ + message?: string; + /** Parent commit IDs (supports merge commits) */ + parentIds?: string[]; + /** Store this commit belongs to */ + storeId: string; + /** Root object ID of the tree snapshot at this commit */ + treeId?: string; } -export interface DeletePlatformResourceDeclaredCapacityInput { - clientMutationId?: string; +/** An input for mutations affecting `DatabaseGraphObject` */ +export interface DatabaseGraphObjectInput { + /** Timestamp of object creation */ + createdAt?: string; + /** Payload data for this object node */ + data?: Record; + /** Database scope for multi-tenant isolation */ + databaseId: string; + /** Content-addressed UUID v5 — deterministic hash of (data, kids, ktree) */ id: string; + /** Ordered array of child object IDs */ + kids?: string[]; + /** Ordered array of child path names (parallel to kids) */ + ktree?: string[]; } -export interface CreatePlatformResourceDefinitionInput { - clientMutationId?: string; - platformResourceDefinition: { - annotations?: Record; - createdBy?: string; - defaultSpec?: Record; - description?: string; - integrations?: string[]; - kind: string; - labels?: Record; - name: string; - namespaceId: string; - paramsSchema?: Record; - requiredConfigs?: ResourceRequirementInput[]; - requiredSecrets?: ResourceRequirementInput[]; - slug: string; - stepUpMinAge?: IntervalInput; - updatedBy?: string; - }; +/** An input for mutations affecting `DatabaseGraphRef` */ +export interface DatabaseGraphRefInput { + /** Commit this ref points to */ + commitId?: string; + /** Database scope for multi-tenant isolation */ + databaseId: string; + /** Unique ref identifier */ + id?: string; + /** Ref name (e.g. HEAD, main) */ + name: string; + /** Store this ref belongs to */ + storeId: string; } -export interface PlatformResourceDefinitionPatch { - annotations?: Record | null; - createdBy?: string | null; - defaultSpec?: Record | null; - description?: string | null; - integrations?: string[] | null; - kind?: string | null; - labels?: Record | null; - name?: string | null; - namespaceId?: string | null; - paramsSchema?: Record | null; - requiredConfigs?: ResourceRequirementInput[] | null; - requiredSecrets?: ResourceRequirementInput[] | null; - slug?: string | null; - stepUpMinAge?: IntervalInput | null; - updatedBy?: string | null; +/** An input for mutations affecting `DatabaseGraphStore` */ +export interface DatabaseGraphStoreInput { + /** Timestamp of store creation */ + createdAt?: string; + /** Database scope for multi-tenant isolation */ + databaseId: string; + /** Current root object hash of this store */ + hash?: string; + /** Unique store identifier */ + id?: string; + /** Human-readable store name */ + name: string; } -export interface UpdatePlatformResourceDefinitionInput { - clientMutationId?: string; - id: string; - platformResourceDefinitionPatch: PlatformResourceDefinitionPatch; +/** An input for mutations affecting `DbPreset` */ +export interface DbPresetInput { + /** Whether this preset is selectable for new databases */ + 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; + /** Preset definition (modules + options) — 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; + /** Human-readable preset name */ + label?: string; + /** Content-address of definition->modules via metaschema_private.modules_hash (stamped by the versioned trigger); fast exact-match lookup key for provisioning requests */ + modulesHash?: string; + /** Preset slug (unique per scope); the preset's path in the infra tree is [db_preset, 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 DeletePlatformResourceDefinitionInput { - clientMutationId?: string; - id: string; +/** An input for mutations affecting `FunctionApiBinding` */ +export interface FunctionApiBindingInput { + /** Binding alias (e.g. default, staging, production) */ + alias?: string; + /** API endpoint this function is bound to */ + apiId: string; + /** Per-binding configuration (overrides, routing rules, etc.) */ + config?: Record; + createdAt?: string; + /** Function definition this binding belongs to */ + functionDefinitionId: string; + id?: string; + updatedAt?: string; } -export interface CreatePlatformResourceEventInput { - clientMutationId?: string; - platformResourceEvent: { - actorId?: string; - eventType: string; - message?: string; - metadata?: Record; - resourceId: string; - }; +/** An input for mutations affecting `FunctionCapabilityBinding` */ +export interface FunctionCapabilityBindingInput { + /** Bucket this capability targets (exactly one typed target is set) */ + bucketId?: string; + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Function definition holding this capability (exactly one of function_id / graph_id is set) */ + functionId?: string; + /** Flow graph holding this capability (exactly one of function_id / graph_id is set) */ + graphId?: string; + id?: string; + /** Runtime handle the holder addresses this capability by (e.g. default, scratch) */ + key?: string; + /** Lifecycle the capability applies to: deployment (build/deploy time), execution (per invocation), root_execution (root of a graph execution tree) */ + lifecycle: string; + /** Per-binding annotations (no runtime semantics) */ + metadata?: Record; + updatedAt?: string; } -export interface PlatformResourceEventPatch { - actorId?: string | null; - eventType?: string | null; - message?: string | null; - metadata?: Record | null; - resourceId?: string | null; +/** An input for mutations affecting `FunctionDefinition` */ +export interface FunctionDefinitionInput { + /** 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 this function consents to run for a caller with no identity (a sign-in surface, a public page). Anonymous execution additionally requires the matched route to declare anonymous access. Default false = an identity is required. */ + anonymousCallable?: boolean; + /** Function task category (e.g. email, embed, chunk, custom) */ + category: string; + /** Knative containerConcurrency — max concurrent requests per pod instance */ + concurrency?: number; + createdAt?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Human-readable description of what this function does */ + description?: string; + /** Palette grouping category (e.g. email, data, ai, custom) */ + fnCategory?: string; + /** Ordered array of module_table column names holding the generated function names to invoke when runtime=sql (module mode). NULL for direct mode and other runtimes. */ + functionColumns?: Record; + /** Existing flow graph invoked when runtime=graph. Required for graph runtime and forbidden for all other runtimes. */ + graphId?: string; + /** Icon identifier for UI palette rendering (e.g. mail, database, code) */ + icon?: string; + id?: string; + /** Docker image reference (e.g. ghcr.io/constructive-io/email-send-fn:latest). Required when runtime=http or runtime=resource. NULL for inline functions. */ + image?: string; + /** Data input ports: [{name, type, description?, optional?, multi?, schema?}] */ + inputs?: Record; + /** Provider slugs (e.g. mailgun, postgres) associated with this function. The UI uses this to auto-fill required_secrets and required_configs from integration_providers. */ + integrations?: string[]; + /** Whether this function definition is published to the public catalog for direct authenticated invocation. Default false = internal-only via add_job() */ + isPublished?: boolean; + /** Maximum retry attempts for the underlying job */ + maxAttempts?: number; + /** metaschema_modules_public table whose per-database row carries the generated function names when runtime=sql (module mode). NULL for direct mode and other runtimes. */ + moduleTable?: string; + /** Function name within category (e.g. send_verification_link, process_file_embedding) */ + name: string; + /** Data output ports: [{name, type, description?, optional?, multi?, schema?}] */ + outputs?: Record; + /** Ordered bind-parameter mapping for runtime=sql: [{name, type}]. payload[name] is bound as $n::type. */ + payloadArgs?: Record; + /** Job priority (lower = higher priority) */ + priority?: number; + /** Configuration properties: [{name, type, default?, description?, required?, schema?}] */ + props?: Record; + /** Protected platform definition: narrower scopes cannot register the same task_identifier */ + protected?: boolean; + /** Timestamp when this function was published. NULL means immediately published when is_published is true; future timestamps delay public visibility */ + publishedAt?: string; + /** Job queue name for serialization (e.g. email, ai, default) */ + queueName?: string; + /** 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[]; + /** Capability providers the handler declared in handler.json requires.capabilities, as an array of {name, version, declaration}. NULL when the handler declares none, which mounts the full platform set. */ + requiredCapabilities?: Record; + /** 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}} */ + resources?: Record; + /** Execution mode: http (Knative Service dispatch), inline (in-process in compute worker), handler (registered infrastructure handler), sql (generic SQL dispatch via a trusted direct target or module-resolved function names), resource (Kubernetes Job via the resource module with node-gateway callbacks), graph (existing flow graph referenced by graph_id), or human (parks the node awaiting a person's answer through approve_node) */ + runtime?: string; + /** Maximum pod count for Knative autoscaling (maxScale) */ + scaleMax?: number; + /** Minimum pod count for Knative autoscaling (minScale) */ + scaleMin?: number; + /** Name of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. */ + targetFunction?: string; + /** Schema of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. */ + targetSchema?: string; + /** Knative request timeout in seconds */ + timeoutSeconds?: number; + updatedAt?: string; + updatedByPrincipal?: string; + /** Whether this function has side effects and cannot be cached or memoized */ + volatile?: boolean; } -export interface UpdatePlatformResourceEventInput { - clientMutationId?: string; - id: string; - platformResourceEventPatch: PlatformResourceEventPatch; +/** An input for mutations affecting `ResourceRequirement` */ +export interface ResourceRequirementInput { + name?: string; + provider?: string; + required?: boolean; } -export interface DeletePlatformResourceEventInput { - clientMutationId?: string; - id: string; +/** An input for mutations affecting `FunctionDeployment` */ +export interface FunctionDeploymentInput { + /** Freeform metadata for tooling and operational notes */ + annotations?: Record; + /** Max concurrent requests per pod (NULL = inherit from definition) */ + concurrency?: number; + createdAt?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Cumulative error count for this deployment */ + errorCount?: number; + /** Handler directory name (e.g. email, document) — used as FN_HANDLER_NAME in combined-image mode to select the entry point */ + handlerName?: string; + id?: string; + /** Logical image name — the handler identity and grouping key (e.g. fn-email). No registry host or tag; tag lives in image_version. */ + image: string; + /** Image tag/version for the handler container (e.g. latest, 2.6.4) */ + imageVersion?: string; + /** Key/value pairs for selecting and filtering deployments */ + labels?: Record; + /** Most recent provisioning or runtime error message */ + lastError?: string; + /** Timestamp of the most recent error */ + 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) */ + revision?: number; + /** Maximum replica count (NULL = inherit from definition or Knative default) */ + scaleMax?: number; + /** Minimum replica count (NULL = inherit from definition or Knative default) */ + scaleMin?: number; + /** Knative service name — a randomly minted cute name (unique_names.generate_name() + random hex suffix) assigned by the service_url trigger; unique per namespace, not derived from the image */ + serviceName?: string; + /** Knative service URL (http://{service-name}.{namespace}.svc.cluster.local) — populated after provisioning */ + serviceUrl?: string; + /** Deployment lifecycle status: pending, provisioning, active, failed, scaled_to_zero, deactivated */ + status?: string; + /** Request timeout override in seconds (NULL = inherit from definition) */ + timeoutSeconds?: number; + updatedAt?: string; + updatedByPrincipal?: string; } -export interface CreatePlatformResourceInstallationInput { - clientMutationId?: string; - platformResourceInstallation: { - commitId?: string; - createdBy?: string; - name: string; - namespaceId: string; - params?: Record; - revision?: number; - slug: string; - status?: string; - storeId?: string; - updatedBy?: string; - }; +/** An input for mutations affecting `FunctionDeploymentEvent` */ +export interface FunctionDeploymentEventInput { + /** User who triggered this event; NULL only when no human actor was proven */ + actorId?: string; + /** Event timestamp (partition key) */ + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Deployment this event belongs to */ + deploymentId: string; + /** Event type: provisioned, scaled, failed, deactivated, redeployed, health_check */ + eventType: string; + /** Unique event identifier */ + id?: string; + /** Human-readable description of the event */ + message?: string; + /** Structured context (old/new values, error details, etc.) */ + metadata?: Record; } -export interface PlatformResourceInstallationPatch { - commitId?: string | null; - createdBy?: string | null; - name?: string | null; - namespaceId?: string | null; - params?: Record | null; - revision?: number | null; - slug?: string | null; - status?: string | null; - storeId?: string | null; - updatedBy?: string | null; +/** An input for mutations affecting `FunctionExecutionLog` */ +export interface FunctionExecutionLogInput { + /** User who triggered the execution; NULL only when no human actor was proven */ + actorId?: string; + /** Log entry timestamp (partition key) */ + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Unique log entry identifier */ + id?: string; + /** Invocation this log entry belongs to (NULL for standalone job logs) */ + invocationId?: string; + /** Log severity: debug, info, warn, error */ + logLevel?: string; + /** Log message text */ + message: string; + /** Structured context (labels, trace data, extra fields) */ + metadata?: Record; + /** Function routing key (NULL for generic job logs) */ + taskIdentifier?: string; } -export interface UpdatePlatformResourceInstallationInput { - clientMutationId?: string; - id: string; - platformResourceInstallationPatch: PlatformResourceInstallationPatch; +/** An input for mutations affecting `FunctionGraphCommit` */ +export interface FunctionGraphCommitInput { + /** User who authored the changes */ + authorId?: string; + /** User who committed (may differ from author) */ + committerId?: string; + /** Commit timestamp */ + date?: string; + /** Unique commit identifier */ + id?: string; + /** Optional commit message */ + message?: string; + /** Parent commit IDs (supports merge commits) */ + parentIds?: string[]; + /** Opaque store partition key for the global tier */ + scopeId: string; + /** Store this commit belongs to */ + storeId: string; + /** Root object ID of the tree snapshot at this commit */ + treeId?: string; } -export interface DeletePlatformResourceInstallationInput { - clientMutationId?: string; - id: string; +/** An input for mutations affecting `FunctionGraphExecution` */ +export interface FunctionGraphExecutionInput { + /** User actor propagated to asynchronous graph jobs */ + actorId?: string; + /** Execution completion timestamp */ + completedAt?: string; + /** Index into execution_plan — tick only processes this wave */ + currentWave?: number; + /** Pinned definitions store commit for deterministic evaluation */ + definitionsCommitId?: string; + /** Entity context propagated to asynchronous graph jobs */ + entityId?: string; + /** Scope discriminator propagated to asynchronous graph jobs */ + entityType?: string; + /** Machine-readable error code when status = failed */ + errorCode?: string; + /** Human-readable error description when status = failed */ + errorMessage?: string; + /** Pre-computed topological sort as array of wave objects */ + executionPlan?: Record; + /** FK to the graph definition being executed */ + graphId: string; + /** Unique execution identifier */ + id?: string; + /** Initial inputs provided at invocation time */ + inputPayload?: Record; + /** Partition coordinate for the function invocation that launched this graph execution */ + invocationCreatedAt?: string; + /** Function invocation that launched this top-level graph execution */ + invocationId?: string; + /** Timestamp of the last real progress (node enqueue, node output, completion) — drives the activity-debounced watchdog */ + lastProgressAt?: string; + /** Maximum pending jobs before execution is failed (default 50) */ + maxPendingJobs?: number; + /** Maximum ticks before execution is failed (default 100) */ + maxTicks?: number; + /** Map of node_name → execution output id (content-addressed hash reference) */ + nodeOutputs?: Record; + /** Organization context propagated to asynchronous graph jobs */ + organizationId?: string; + /** Selected graphOutput portName values; NULL or empty returns all graph outputs */ + outputNames?: string[]; + /** Target output boundary node name to resolve; NULL derives completion from the graph's graphOutput nodes */ + outputNode?: string; + /** Final result extracted from terminal output node */ + outputPayload?: Record; + /** Target output port name (default: value) */ + outputPort?: string; + /** Parent execution when this is a sub-execution */ + parentExecutionId?: string; + /** Function invocation parent assigned to node invocations spawned by this execution */ + parentInvocationId?: string; + /** Node name in parent execution that spawned this sub-execution */ + parentNodeName?: string; + /** Principal identity propagated to asynchronous graph jobs */ + principalId?: string; + /** Opaque store partition key for the global tier */ + scopeId: string; + /** Execution start timestamp */ + startedAt?: string; + /** Lifecycle: pending → running → completed/failed/cancelled */ + status?: string; + /** Number of evaluate_step ticks executed */ + tickCount?: number; + /** Absolute deadline — execution fails if still running after this time */ + timeoutAt?: string; } -export interface CreatePlatformResourceStatusCheckInput { - clientMutationId?: string; - platformResourceStatusCheck: { - completedAt?: string; - requestedAt?: string; - requestedBy?: string; - resourceId: string; - result?: Record; - status?: string; - }; +/** An input for mutations affecting `FunctionGraphExecutionNodeState` */ +export interface FunctionGraphExecutionNodeStateInput { + /** Snapshot of the node's resolved inputs for resource-runtime nodes — served by the node gateway GET /inputs endpoint */ + callbackInputs?: Record; + /** Metering/attribution context stamped at resource dispatch (namespace_id, task_identifier, entity_id, scope, resource identity, dispatched_at, attempt) — lets the node gateway settle and attribute without extra lookups */ + callbackMeta?: Record; + /** SHA-256 hex digest of the node callback token — set for resource-runtime nodes so the node gateway can authenticate result/error/heartbeat callbacks */ + callbackTokenHash?: string; + /** Timestamp when the node finished (success or failure) */ + completedAt?: string; + /** Timestamp of node state creation (partition key) */ + createdAt?: string; + /** Machine-readable error code when status = failed */ + errorCode?: string; + /** Human-readable error description when status = failed */ + errorMessage?: string; + /** FK to the parent graph execution */ + executionId: string; + /** Declared output applied by the default_answer expiry policy */ + expiryDefaultOutput?: Record; + /** When the escalate expiry policy fired — guards the one-time extension */ + expiryEscalatedAt?: string; + /** Declared expiry behaviour when waiting_deadline_at passes unanswered: fail (fail the execution), default_answer (settle with expiry_default_output), or escalate (notify and extend once) */ + expiryPolicy?: string; + /** Unique node state identifier */ + id?: string; + /** Name of the node within the graph (e.g. send-email1) */ + nodeName: string; + /** Full merkle tree path to this node (e.g. {function,graphs,myflow,nodes,send-email1}) — enables subnet hierarchy tracking */ + nodePath?: string[]; + /** FK to execution_outputs — content-addressed output blob for this node */ + outputId?: string; + /** Opaque store partition key for the global tier */ + scopeId: string; + /** Timestamp when the node began executing */ + startedAt?: string; + /** Node lifecycle: pending → queued → running → completed/failed/cancelled */ + status?: string; + /** When the declared expiry policy applies to the still-unanswered node */ + waitingDeadlineAt?: string; + /** What class of external reporter settles this node: human (a person answers) or external (webhook/adapter). NULL for nodes with an active workload */ + waitingOn?: string; + /** When the node parked awaiting its external report */ + waitingSince?: string; } -export interface PlatformResourceStatusCheckPatch { - completedAt?: string | null; - requestedAt?: string | null; - requestedBy?: string | null; - resourceId?: string | null; - result?: Record | null; - status?: string | null; +/** An input for mutations affecting `FunctionGraphExecutionOutput` */ +export interface FunctionGraphExecutionOutputInput { + /** Timestamp of output creation */ + createdAt?: string; + /** The actual output payload from a completed node */ + data: Record; + /** SHA-256 hash of the data JSONB — content-addressed deduplication */ + hash: Base64EncodedBinary; + /** Unique execution output identifier */ + id?: string; + /** Opaque store partition key for the global tier */ + scopeId: string; } -export interface UpdatePlatformResourceStatusCheckInput { - clientMutationId?: string; +/** An input for mutations affecting `FunctionGraphObject` */ +export interface FunctionGraphObjectInput { + /** Timestamp of object creation */ + createdAt?: string; + /** Payload data for this object node */ + data?: Record; + /** Content-addressed UUID v5 — deterministic hash of (data, kids, ktree) */ id: string; - platformResourceStatusCheckPatch: PlatformResourceStatusCheckPatch; + /** Ordered array of child object IDs */ + kids?: string[]; + /** Ordered array of child path names (parallel to kids) */ + ktree?: string[]; + /** Opaque store partition key for the global tier */ + scopeId: string; } -export interface DeletePlatformResourceStatusCheckInput { - clientMutationId?: string; - id: string; +/** An input for mutations affecting `FunctionGraphRef` */ +export interface FunctionGraphRefInput { + /** Commit this ref points to */ + commitId?: string; + /** Unique ref identifier */ + id?: string; + /** Ref name (e.g. HEAD, main) */ + name: string; + /** Opaque store partition key for the global tier */ + scopeId: string; + /** Store this ref belongs to */ + storeId: string; } -export interface CreatePlatformResourceUsageLogInput { - clientMutationId?: string; - platformResourceUsageLog: { - cpuMillicores?: string; - intervalSeconds: number; - memoryBytes?: string; - metrics?: Record; - namespaceId: string; - resourceId?: string; - sampledAt?: string; - source: string; - }; +/** An input for mutations affecting `FunctionGraphStore` */ +export interface FunctionGraphStoreInput { + /** Timestamp of store creation */ + createdAt?: string; + /** Current root object hash of this store */ + hash?: string; + /** Unique store identifier */ + id?: string; + /** Human-readable store name */ + name: string; + /** Opaque store partition key for the global tier */ + scopeId: string; } -export interface PlatformResourceUsageLogPatch { - cpuMillicores?: string | null; - intervalSeconds?: number | null; - memoryBytes?: string | null; - metrics?: Record | null; - namespaceId?: string | null; - resourceId?: string | null; - sampledAt?: string | null; - source?: string | null; +/** An input for mutations affecting `FunctionInvocationAttempt` */ +export interface FunctionInvocationAttemptInput { + /** Who triggered the invocation; NULL only when no human actor was proven */ + actorId?: string; + /** 1-based attempt number for this invocation */ + attempt: number; + /** When the attempt result was recorded (partition key) */ + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Wall-clock attempt time in milliseconds */ + durationMs?: number; + /** Error message when the attempt failed */ + error?: string; + /** Structured error context (stack, code, provider response) */ + errorDetail?: Record; + /** Unique attempt identifier */ + id?: string; + /** created_at of the referenced invocation (partition-pruned lookups against the invocations PK) */ + invocationCreatedAt: string; + /** Invocation this attempt belongs to (soft reference paired with invocation_created_at) */ + invocationId: string; + /** When the attempt began executing */ + startedAt?: string; + /** Whether this attempt completed successfully */ + success: boolean; + /** Function routing slug (denormalized from the invocation) */ + taskIdentifier: string; } -export interface UpdatePlatformResourceUsageLogInput { - clientMutationId?: string; - id: string; - platformResourceUsageLogPatch: PlatformResourceUsageLogPatch; +/** An input for mutations affecting `FunctionInvocation` */ +export interface FunctionInvocationInput { + /** Who triggered the invocation; NULL only when no human actor was proven */ + actorId?: string; + /** API binding this invocation arrived through (NULL for cron/graph/system/worker paths) */ + apiBindingId?: string; + /** Invocation trigger channel: api, graph, cron, sync, webhook, trigger, or worker */ + channel: string; + /** When execution completed */ + completedAt?: string; + /** Invocation creation timestamp (partition key) */ + createdAt?: string; + /** Acting principal (agent, API key, or user) who created this record */ + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Scope that owns function_definition_id (e.g. app/org/database/platform) — the per-scope definitions table the resolver selected */ + definitionScope?: string; + /** Wall-clock execution time in milliseconds */ + durationMs?: number; + /** Entity identity propagated with the invocation */ + entityId?: string; + /** Entity type propagated with the invocation */ + entityType?: string; + /** Error message when status is failed, or the reason the run was skipped when status is skipped */ + error?: string; + /** Function definition this invocation ran (soft cross-scope ref; paired with definition_scope). task_identifier stays as the audit slug. */ + functionDefinitionId?: string; + /** Groups all node invocations from a single flow graph execution */ + graphExecutionId?: string; + /** Unique invocation identifier */ + id?: string; + /** FK to app_jobs.jobs — the underlying transport */ + jobId?: string; + /** Organization identity propagated with the invocation */ + organizationId?: string; + /** Parent invocation when this is a child node of a flow graph execution */ + parentInvocationId?: string; + /** Function input payload */ + payload?: Record; + /** Principal identity that triggered the invocation */ + principalId?: string; + /** Non-secret channel-specific invocation provenance (route/binding/event identifiers only) */ + provenance?: Record; + /** Function return value (success) or structured error (failure) */ + result?: Record; + /** When execution started */ + startedAt?: string; + /** Lifecycle: pending → running → completed/failed/cancelled; skipped = never ran (a gate rejected the intended run) */ + status?: string; + /** Function routing slug (category:name). Denormalized from the definition — must match the row referenced by function_definition_id when that is set. */ + taskIdentifier: string; } -export interface DeletePlatformResourceUsageLogInput { - clientMutationId?: string; - id: string; +/** An input for mutations affecting `Image` */ +export interface ImageInput { + createdAt?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Human-readable description of what this image runs */ + description?: string; + /** Content address (sha256:...) pinning this image, when known */ + digest?: string; + /** When this catalog row becomes eligible for retention cleanup (NULL = kept forever) */ + expiresAt?: string; + id?: string; + /** Whether this image is published for use by any scope */ + isPublished?: boolean; + /** Labels for selecting images (architecture, capabilities, lane) */ + labels?: Record; + /** Freeform metadata (build provenance, source repository, SBOM pointer) */ + metadata?: Record; + /** Human-readable image name (e.g. node-runtime) */ + name: string; + /** User who registered this catalog row */ + ownerId?: string; + /** Whether this image is reserved for platform-internal use */ + platformOnly?: boolean; + /** Registry host serving this image (NULL means the platform default registry) */ + registryHost?: string; + /** Repository path within the registry (e.g. constructiveio/worker) */ + repository: string; + /** Runtime this image implements (e.g. nodejs, python, custom) */ + runtime?: string; + /** Mutable tag this row addresses */ + tag?: string; + updatedAt?: string; + updatedByPrincipal?: string; } -export interface CreatePlatformResourceUsageSummaryInput { - clientMutationId?: string; - platformResourceUsageSummary: { - date: string; - gbSeconds?: string; - maxCpuMillicores?: string; - maxMemoryBytes?: string; - namespaceId: string; - resourceId?: string; - runtimeSeconds?: string; - sampleCount?: number; - }; +/** An input for mutations affecting `ImageGrant` */ +export interface ImageGrantInput { + /** Registry actions this grant allows (pull, push, delete) */ + actions?: string[]; + createdAt?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** When this grant stops applying (NULL never expires) */ + expiresAt?: string; + /** User who issued this grant */ + grantedBy?: string; + /** Scope key of the grantee (a database_id or an entity_id) */ + granteeKey: string; + /** Scope tier of the grantee (database, org, app, platform) */ + granteeScope: string; + id?: string; + /** Catalog image this grant applies to */ + imageId: string; + updatedAt?: string; + updatedByPrincipal?: string; } -export interface PlatformResourceUsageSummaryPatch { - date?: string | null; - gbSeconds?: string | null; - maxCpuMillicores?: string | null; - maxMemoryBytes?: string | null; - namespaceId?: string | null; - resourceId?: string | null; - runtimeSeconds?: string | null; - sampleCount?: number | null; +/** An input for mutations affecting `InfraCommit` */ +export interface InfraCommitInput { + /** User who authored the changes */ + authorId?: string; + /** User who committed (may differ from author) */ + committerId?: string; + /** Database scope for multi-tenant isolation */ + databaseId: string; + /** Commit timestamp */ + date?: string; + /** Unique commit identifier */ + id?: string; + /** Optional commit message */ + message?: string; + /** Parent commit IDs (supports merge commits) */ + parentIds?: string[]; + /** Store this commit belongs to */ + storeId: string; + /** Root object ID of the tree snapshot at this commit */ + treeId?: string; } -export interface UpdatePlatformResourceUsageSummaryInput { - clientMutationId?: string; +/** An input for mutations affecting `InfraObject` */ +export interface InfraObjectInput { + /** Timestamp of object creation */ + createdAt?: string; + /** Payload data for this object node */ + data?: Record; + /** Database scope for multi-tenant isolation */ + databaseId: string; + /** Content-addressed UUID v5 — deterministic hash of (data, kids, ktree) */ id: string; - platformResourceUsageSummaryPatch: PlatformResourceUsageSummaryPatch; + /** Ordered array of child object IDs */ + kids?: string[]; + /** Ordered array of child path names (parallel to kids) */ + ktree?: string[]; } -export interface DeletePlatformResourceUsageSummaryInput { - clientMutationId?: string; - id: string; +/** An input for mutations affecting `InfraRef` */ +export interface InfraRefInput { + /** Commit this ref points to */ + commitId?: string; + /** Database scope for multi-tenant isolation */ + databaseId: string; + /** Unique ref identifier */ + id?: string; + /** Ref name (e.g. HEAD, main) */ + name: string; + /** Store this ref belongs to */ + storeId: string; } -export interface CreatePlatformResourceUtilizationInput { - clientMutationId?: string; - platformResourceUtilization: { - avgMemoryBytes?: string; - cpuLimitMillicores?: string; - cpuPeakUtilization?: string; - cpuRequestHeadroomMillicores?: string; - cpuRequestMillicores?: string; - date?: string; - gbSeconds?: string; - kind?: string; - maxCpuMillicores?: string; - maxMemoryBytes?: string; - memoryLimitBytes?: string; - memoryPeakUtilization?: string; - memoryRequestBytes?: string; - memoryRequestHeadroomBytes?: string; - namespaceId: string; - replicas?: number; - resourceId: string; - runtimeSeconds?: string; - sampleCount?: number; - }; +/** An input for mutations affecting `InfraStore` */ +export interface InfraStoreInput { + /** Timestamp of store creation */ + createdAt?: string; + /** Database scope for multi-tenant isolation */ + databaseId: string; + /** Current root object hash of this store */ + hash?: string; + /** Unique store identifier */ + id?: string; + /** Human-readable store name */ + name: string; } -export interface PlatformResourceUtilizationPatch { - avgMemoryBytes?: string | null; - cpuLimitMillicores?: string | null; - cpuPeakUtilization?: string | null; - cpuRequestHeadroomMillicores?: string | null; - cpuRequestMillicores?: string | null; - date?: string | null; - gbSeconds?: string | null; - kind?: string | null; - maxCpuMillicores?: string | null; - maxMemoryBytes?: string | null; - memoryLimitBytes?: string | null; - memoryPeakUtilization?: string | null; - memoryRequestBytes?: string | null; - memoryRequestHeadroomBytes?: string | null; - namespaceId?: string | null; - replicas?: number | null; - resourceId?: string | null; - runtimeSeconds?: string | null; - sampleCount?: number | null; +/** An input for mutations affecting `IntegrationProvider` */ +export interface IntegrationProviderInput { + /** Brand metadata: colors, fonts, and other provider-specific styling. Not a foreign key. */ + brand?: Record; + /** Browser category (e.g. email, database, storage, ai, analytics) */ + category?: string; + createdAt?: string; + /** Short description of what this integration provides and when to use it */ + description?: string; + /** Icon identifier for the UI (e.g. mail, database, cloud) */ + icon?: string; + id?: string; + /** Provider logo as an image domain value (url, id, key, bucket, provider) */ + logo?: ConstructiveInternalTypeImage; + /** Human-readable brand name (e.g. 'Mailgun', 'PostgreSQL') */ + name: string; + /** Canonical config requirements for this provider: array of (name, required, provider) tuples. Used by the UI to auto-fill function/resource required_configs. */ + requiredConfigs?: ResourceRequirementInput[]; + /** Canonical secret requirements for this provider: array of (name, required, provider) tuples. Used by the UI to auto-fill function/resource required_secrets. */ + requiredSecrets?: ResourceRequirementInput[]; + /** Stable URL-safe identifier for the provider. Other tables match by this string, not by FK. */ + slug: string; + updatedAt?: string; } -export interface UpdatePlatformResourceUtilizationInput { - clientMutationId?: string; - id: string; - platformResourceUtilizationPatch: PlatformResourceUtilizationPatch; +/** An input for mutations affecting `Namespace` */ +export interface NamespaceInput { + /** Freeform metadata for tooling and operational notes */ + annotations?: Record; + /** Cluster this namespace is projected onto; NULL = the cluster the reconciler runs in */ + clusterId?: string; + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Optional human-readable description of this namespace */ + description?: string; + id?: string; + /** Whether this namespace is active (soft-disable for filtering) */ + isActive?: boolean; + /** true = provisioned by the platform via jobs, false = unmanaged/platform-native (bootstrapped externally) */ + isManaged?: boolean; + /** Key/value pairs for selecting and filtering namespaces */ + labels?: Record; + /** Most recent provisioning or reconcile error message */ + lastError?: string; + /** Human-readable namespace name (e.g. default, production, oauth) */ + name: string; + /** Globally unique computed namespace identifier via inflection.underscore */ + namespaceName: string; + /** Namespace provisioning lifecycle status: pending, provisioning, active, failed */ + status?: string; + updatedAt?: string; } -export interface DeletePlatformResourceUtilizationInput { - clientMutationId?: string; - id: string; +/** An input for mutations affecting `NamespaceEvent` */ +export interface NamespaceEventInput { + /** User who triggered this event; NULL only when no human actor was proven */ + actorId?: string; + /** Event timestamp (partition key) */ + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Event type: created, activated, deactivated, labels_updated, annotations_updated, renamed */ + eventType: string; + /** Unique event identifier */ + id?: string; + /** Human-readable description of the event */ + message?: string; + /** Structured context (old/new values, labels diff, etc.) */ + metadata?: Record; + /** Namespace this event belongs to */ + namespaceId: string; } -export interface CreatePlatformResourcesHealthInput { - clientMutationId?: string; - platformResourcesHealth: { - annotations?: Record; - cpuLimitMillicores?: string; - cpuRequestMillicores?: string; - createdBy?: string; - errorCount?: number; - installationId: string; - integrations?: string[]; - kind?: string; - labels?: Record; - lastError?: string; - lastHeartbeatAt?: string; - memoryLimitBytes?: string; - memoryRequestBytes?: string; - name?: string; - namespaceId: string; - realm?: string; - replicas?: number; - requiredConfigs?: ResourceRequirement[]; - requiredSecrets?: ResourceRequirement[]; - resourceDefinitionId: string; - slug?: string; - spec?: Record; - status?: string; - statusDetail?: string; - statusObserved?: Record; - storageClass?: string; - storageSizeBytes?: string; - updatedBy?: string; - }; +/** An input for mutations affecting `PlatformBuild` */ +export interface PlatformBuildInput { + /** Authenticated actor this build is attributed to; NULL only when no human actor was proven */ + actorId?: string; + /** Retry attempt number for this workflow, commit, and matrix shard */ + attempt?: number; + /** Commit this build built */ + commitSha?: string; + /** Verdict: NULL while pending/running, then success, failure, neutral, cancelled, skipped, timed_out, or action_required */ + conclusion?: string; + createdAt?: string; + createdByPrincipal?: string; + /** Event that triggered this build (NULL for a manual build) */ + eventId?: string; + /** When the build reached a terminal status */ + finishedAt?: string; + id?: string; + /** Image reference this build produced (registry host/repository:tag; NULL when the build produced no image) */ + imageRef?: string; + /** app_jobs row running this build */ + jobId?: string; + /** Build log object in storage; step rows slice it by byte range */ + logs?: ConstructiveInternalTypeUpload; + /** Matrix shard identity; NULL for a non-matrix build */ + matrixKey?: string; + /** Build detail (step results, durations, failure reason) */ + metadata?: Record; + /** Proposal this build checks (NULL for builds not tied to a proposal) */ + proposalId?: string; + /** Ref this build built */ + ref?: string; + /** Repository this build is of */ + repositoryId: string; + /** When the build began running */ + startedAt?: string; + /** Lifecycle: pending, running, succeeded, failed, cancelled */ + status?: string; + updatedAt?: string; + updatedByPrincipal?: string; + /** Workflow whose firing produced this build (NULL for a manual build) */ + workflowId?: string; +} +/** An input for mutations affecting `PlatformBuildStep` */ +export interface PlatformBuildStepInput { + /** Build these results belong to */ + buildId: string; + /** Acting principal (agent, API key, or user) who created this record */ + createdByPrincipal?: string; + /** Process exit code of a step (NULL for a test result) */ + exitCode?: number; + /** When this step or test finished */ + finishedAt?: string; + /** Unique identifier (uuidv7 provides temporal ordering) */ + id?: string; + /** What this row is: step, or test */ + kind?: string; + /** Byte length of this row's output in the build log object */ + logBytes?: string; + /** Byte offset of this row's output in the build log object */ + logOffset?: string; + /** Step name, or the test's fully qualified name */ + name: string; + /** Sequence of the step that reported this test (NULL for a step itself) */ + parentSeq?: number; + /** When the result was recorded (partition key) */ + recordedAt?: string; + /** Position within the build, monotonically increasing across steps and their tests */ + seq: number; + /** When this step or test began */ + startedAt?: string; + /** Outcome: running, succeeded, failed, skipped, cancelled */ + status?: string; + /** Parsed detail: failure message, assertion diff, counts, annotations */ + summary?: Record; +} +/** An input for mutations affecting `PlatformBuilderBinding` */ +export interface PlatformBuilderBindingInput { + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + id?: string; + /** BuildKit resource installation serving this binding; may belong to another resource scope */ + installationId: string; + /** Most recent projection failure */ + lastError?: string; + /** Reconciler detail (projection timestamps and diagnostics) */ + metadata?: Record; + /** Namespace whose builds use this BuildKit installation */ + namespaceId: string; + /** BuildKit address last projected into the namespace (NULL = never projected) */ + observedHost?: string; + /** Lane this binding applies to (NULL = the scope's default lane) */ + realm?: string; + /** Projection state of BUILDKIT_HOST: pending, active, failed */ + status?: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; } -export interface PlatformResourcesHealthPatch { - annotations?: Record | null; - cpuLimitMillicores?: string | null; - cpuRequestMillicores?: string | null; - createdBy?: string | null; - errorCount?: number | null; - installationId?: string | null; - integrations?: string[] | null; - kind?: string | null; - labels?: Record | null; - lastError?: string | null; - lastHeartbeatAt?: string | null; - memoryLimitBytes?: string | null; - memoryRequestBytes?: string | null; - name?: string | null; - namespaceId?: string | null; - realm?: string | null; - replicas?: number | null; - requiredConfigs?: ResourceRequirement[] | null; - requiredSecrets?: ResourceRequirement[] | null; - resourceDefinitionId?: string | null; - slug?: string | null; - spec?: Record | null; - status?: string | null; - statusDetail?: string | null; - statusObserved?: Record | null; - storageClass?: string | null; - storageSizeBytes?: string | null; - updatedBy?: string | null; +/** An input for mutations affecting `PlatformFunctionApiBinding` */ +export interface PlatformFunctionApiBindingInput { + /** Binding alias (e.g. default, staging, production) */ + alias?: string; + /** API endpoint this function is bound to */ + apiId: string; + /** Per-binding configuration (overrides, routing rules, etc.) */ + config?: Record; + createdAt?: string; + /** Function definition this binding belongs to */ + functionDefinitionId: string; + id?: string; + updatedAt?: string; } -export interface UpdatePlatformResourcesHealthInput { - clientMutationId?: string; - id: string; - platformResourcesHealthPatch: PlatformResourcesHealthPatch; +/** An input for mutations affecting `PlatformFunctionCapabilityBinding` */ +export interface PlatformFunctionCapabilityBindingInput { + /** Bucket this capability targets (exactly one typed target is set) */ + bucketId?: string; + createdAt?: string; + /** Function definition holding this capability (exactly one of function_id / graph_id is set) */ + functionId?: string; + /** Flow graph holding this capability (exactly one of function_id / graph_id is set) */ + graphId?: string; + id?: string; + /** Runtime handle the holder addresses this capability by (e.g. default, scratch) */ + key?: string; + /** Lifecycle the capability applies to: deployment (build/deploy time), execution (per invocation), root_execution (root of a graph execution tree) */ + lifecycle: string; + /** Per-binding annotations (no runtime semantics) */ + metadata?: Record; + updatedAt?: string; } -export interface DeletePlatformResourcesHealthInput { - clientMutationId?: string; - id: string; +/** An input for mutations affecting `PlatformFunctionDefinition` */ +export interface PlatformFunctionDefinitionInput { + /** 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 this function consents to run for a caller with no identity (a sign-in surface, a public page). Anonymous execution additionally requires the matched route to declare anonymous access. Default false = an identity is required. */ + anonymousCallable?: boolean; + /** Whether executions are metered through the invocation ledger and billing quota gate */ + billable?: boolean; + /** Function task category (e.g. email, embed, chunk, custom) */ + category: string; + /** Knative containerConcurrency — max concurrent requests per pod instance */ + concurrency?: number; + createdAt?: string; + createdByPrincipal?: string; + /** Human-readable description of what this function does */ + description?: string; + /** Palette grouping category (e.g. email, data, ai, custom) */ + fnCategory?: string; + /** Ordered array of module_table column names holding the generated function names to invoke when runtime=sql (module mode). NULL for direct mode and other runtimes. */ + functionColumns?: Record; + /** Existing flow graph invoked when runtime=graph. Required for graph runtime and forbidden for all other runtimes. */ + graphId?: string; + /** Icon identifier for UI palette rendering (e.g. mail, database, code) */ + icon?: string; + id?: string; + /** Docker image reference (e.g. ghcr.io/constructive-io/email-send-fn:latest). Required when runtime=http or runtime=resource. NULL for inline functions. */ + image?: string; + /** Data input ports: [{name, type, description?, optional?, multi?, schema?}] */ + inputs?: Record; + /** Provider slugs (e.g. mailgun, postgres) associated with this function. The UI uses this to auto-fill required_secrets and required_configs from integration_providers. */ + integrations?: string[]; + /** Whether this function definition is published to the public catalog for direct authenticated invocation. Default false = internal-only via add_job() */ + isPublished?: boolean; + /** Maximum retry attempts for the underlying job */ + maxAttempts?: number; + /** metaschema_modules_public table whose per-database row carries the generated function names when runtime=sql (module mode). NULL for direct mode and other runtimes. */ + moduleTable?: string; + /** Function name within category (e.g. send_verification_link, process_file_embedding) */ + name: string; + /** Data output ports: [{name, type, description?, optional?, multi?, schema?}] */ + outputs?: Record; + /** Ordered bind-parameter mapping for runtime=sql: [{name, type}]. payload[name] is bound as $n::type. */ + payloadArgs?: Record; + /** Job priority (lower = higher priority) */ + priority?: number; + /** Configuration properties: [{name, type, default?, description?, required?, schema?}] */ + props?: Record; + /** Protected platform definition: narrower scopes cannot register the same task_identifier */ + protected?: boolean; + /** Timestamp when this function was published. NULL means immediately published when is_published is true; future timestamps delay public visibility */ + publishedAt?: string; + /** Job queue name for serialization (e.g. email, ai, default) */ + queueName?: string; + /** 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[]; + /** Capability providers the handler declared in handler.json requires.capabilities, as an array of {name, version, declaration}. NULL when the handler declares none, which mounts the full platform set. */ + requiredCapabilities?: Record; + /** 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}} */ + resources?: Record; + /** Execution mode: http (Knative Service dispatch), inline (in-process in compute worker), handler (registered infrastructure handler), sql (generic SQL dispatch via a trusted direct target or module-resolved function names), resource (Kubernetes Job via the resource module with node-gateway callbacks), graph (existing flow graph referenced by graph_id), or human (parks the node awaiting a person's answer through approve_node) */ + runtime?: string; + /** Maximum pod count for Knative autoscaling (maxScale) */ + scaleMax?: number; + /** Minimum pod count for Knative autoscaling (minScale) */ + scaleMin?: number; + /** Platform system definition: its task_identifier cannot be shadowed by non-platform registration */ + system?: boolean; + /** Name of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. */ + targetFunction?: string; + /** Schema of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. */ + targetSchema?: string; + /** Knative request timeout in seconds */ + timeoutSeconds?: number; + updatedAt?: string; + updatedByPrincipal?: string; + /** Whether this function has side effects and cannot be cached or memoized */ + volatile?: boolean; } -export interface CreatePlatformResourcesRequirementsStateInput { - clientMutationId?: string; - platformResourcesRequirementsState: { - configHash?: string; - configObjectName?: string; - requirementsHash?: string; - resourceId: string; - secretsHash?: string; - secretsObjectName?: string; - slug?: string; - }; +/** An input for mutations affecting `PlatformFunctionDeployment` */ +export interface PlatformFunctionDeploymentInput { + /** Freeform metadata for tooling and operational notes */ + annotations?: Record; + /** Max concurrent requests per pod (NULL = inherit from definition) */ + concurrency?: number; + createdAt?: string; + createdByPrincipal?: string; + /** Cumulative error count for this deployment */ + errorCount?: number; + /** Handler directory name (e.g. email, document) — used as FN_HANDLER_NAME in combined-image mode to select the entry point */ + handlerName?: string; + id?: string; + /** Logical image name — the handler identity and grouping key (e.g. fn-email). No registry host or tag; tag lives in image_version. */ + image: string; + /** Image tag/version for the handler container (e.g. latest, 2.6.4) */ + imageVersion?: string; + /** Key/value pairs for selecting and filtering deployments */ + labels?: Record; + /** Most recent provisioning or runtime error message */ + lastError?: string; + /** Timestamp of the most recent error */ + 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) */ + revision?: number; + /** Maximum replica count (NULL = inherit from definition or Knative default) */ + scaleMax?: number; + /** Minimum replica count (NULL = inherit from definition or Knative default) */ + scaleMin?: number; + /** Knative service name — a randomly minted cute name (unique_names.generate_name() + random hex suffix) assigned by the service_url trigger; unique per namespace, not derived from the image */ + serviceName?: string; + /** Knative service URL (http://{service-name}.{namespace}.svc.cluster.local) — populated after provisioning */ + serviceUrl?: string; + /** Deployment lifecycle status: pending, provisioning, active, failed, scaled_to_zero, deactivated */ + status?: string; + /** Request timeout override in seconds (NULL = inherit from definition) */ + timeoutSeconds?: number; + updatedAt?: string; + updatedByPrincipal?: string; } -export interface PlatformResourcesRequirementsStatePatch { - configHash?: string | null; - configObjectName?: string | null; - requirementsHash?: string | null; - resourceId?: string | null; - secretsHash?: string | null; - secretsObjectName?: string | null; - slug?: string | null; +/** An input for mutations affecting `PlatformFunctionDeploymentEvent` */ +export interface PlatformFunctionDeploymentEventInput { + /** User who triggered this event; NULL only when no human actor was proven */ + actorId?: string; + /** Event timestamp (partition key) */ + createdAt?: string; + /** Deployment this event belongs to */ + deploymentId: string; + /** Event type: provisioned, scaled, failed, deactivated, redeployed, health_check */ + eventType: string; + /** Unique event identifier */ + id?: string; + /** Human-readable description of the event */ + message?: string; + /** Structured context (old/new values, error details, etc.) */ + metadata?: Record; } -export interface UpdatePlatformResourcesRequirementsStateInput { - clientMutationId?: string; - id: string; - platformResourcesRequirementsStatePatch: PlatformResourcesRequirementsStatePatch; +/** An input for mutations affecting `PlatformFunctionExecutionLog` */ +export interface PlatformFunctionExecutionLogInput { + /** User who triggered the execution; NULL only when no human actor was proven */ + actorId?: string; + /** Log entry timestamp (partition key) */ + createdAt?: string; + /** Unique log entry identifier */ + id?: string; + /** Invocation this log entry belongs to (NULL for standalone job logs) */ + invocationId?: string; + /** Log severity: debug, info, warn, error */ + logLevel?: string; + /** Log message text */ + message: string; + /** Structured context (labels, trace data, extra fields) */ + metadata?: Record; + /** Function routing key (NULL for generic job logs) */ + taskIdentifier?: string; +} +/** An input for mutations affecting `PlatformFunctionInvocationAttempt` */ +export interface PlatformFunctionInvocationAttemptInput { + /** Who triggered the invocation; NULL only when no human actor was proven */ + actorId?: string; + /** 1-based attempt number for this invocation */ + attempt: number; + /** When the attempt result was recorded (partition key) */ + createdAt?: string; + /** Wall-clock attempt time in milliseconds */ + durationMs?: number; + /** Error message when the attempt failed */ + error?: string; + /** Structured error context (stack, code, provider response) */ + errorDetail?: Record; + /** Unique attempt identifier */ + id?: string; + /** created_at of the referenced invocation (partition-pruned lookups against the invocations PK) */ + invocationCreatedAt: string; + /** Invocation this attempt belongs to (soft reference paired with invocation_created_at) */ + invocationId: string; + /** When the attempt began executing */ + startedAt?: string; + /** Whether this attempt completed successfully */ + success: boolean; + /** Function routing slug (denormalized from the invocation) */ + taskIdentifier: string; } -export interface DeletePlatformResourcesRequirementsStateInput { - clientMutationId?: string; - id: string; +/** An input for mutations affecting `PlatformFunctionInvocation` */ +export interface PlatformFunctionInvocationInput { + /** Who triggered the invocation; NULL only when no human actor was proven */ + actorId?: string; + /** API binding this invocation arrived through (NULL for cron/graph/system/worker paths) */ + apiBindingId?: string; + /** Invocation trigger channel: api, graph, cron, sync, webhook, trigger, or worker */ + channel: string; + /** When execution completed */ + completedAt?: string; + /** Invocation creation timestamp (partition key) */ + createdAt?: string; + /** Acting principal (agent, API key, or user) who created this record */ + createdByPrincipal?: string; + /** Database this invocation is attributed to (usage/billing attribution) */ + databaseId?: string; + /** Scope that owns function_definition_id (e.g. app/org/database/platform) — the per-scope definitions table the resolver selected */ + definitionScope?: string; + /** Wall-clock execution time in milliseconds */ + durationMs?: number; + /** Entity identity propagated with the invocation */ + entityId?: string; + /** Entity type propagated with the invocation */ + entityType?: string; + /** Error message when status is failed, or the reason the run was skipped when status is skipped */ + error?: string; + /** Function definition this invocation ran (soft cross-scope ref; paired with definition_scope). task_identifier stays as the audit slug. */ + functionDefinitionId?: string; + /** Groups all node invocations from a single flow graph execution */ + graphExecutionId?: string; + /** Unique invocation identifier */ + id?: string; + /** FK to app_jobs.jobs — the underlying transport */ + jobId?: string; + /** Organization identity propagated with the invocation */ + organizationId?: string; + /** Parent invocation when this is a child node of a flow graph execution */ + parentInvocationId?: string; + /** Function input payload */ + payload?: Record; + /** Principal identity that triggered the invocation */ + principalId?: string; + /** Non-secret channel-specific invocation provenance (route/binding/event identifiers only) */ + provenance?: Record; + /** Function return value (success) or structured error (failure) */ + result?: Record; + /** When execution started */ + startedAt?: string; + /** Lifecycle: pending → running → completed/failed/cancelled; skipped = never ran (a gate rejected the intended run) */ + status?: string; + /** Function routing slug (category:name). Denormalized from the definition — must match the row referenced by function_definition_id when that is set. */ + taskIdentifier: string; } -export interface CreatePlatformResourcesResolvedRequirementInput { - clientMutationId?: string; - platformResourcesResolvedRequirement: { - atomId: string; - configObjectName?: string; - name?: string; - namespaceId: string; - present?: boolean; - realm?: string; - required?: boolean; - requirementKind?: string; - resourceId: string; - secretsObjectName?: string; - slug?: string; - }; +/** An input for mutations affecting `PlatformImage` */ +export interface PlatformImageInput { + createdAt?: string; + createdByPrincipal?: string; + /** Human-readable description of what this image runs */ + description?: string; + /** Content address (sha256:...) pinning this image, when known */ + digest?: string; + /** When this catalog row becomes eligible for retention cleanup (NULL = kept forever) */ + expiresAt?: string; + id?: string; + /** Whether this image is published for use by any scope */ + isPublished?: boolean; + /** Labels for selecting images (architecture, capabilities, lane) */ + labels?: Record; + /** Freeform metadata (build provenance, source repository, SBOM pointer) */ + metadata?: Record; + /** Human-readable image name (e.g. node-runtime) */ + name: string; + /** User who registered this catalog row */ + ownerId?: string; + /** Whether this image is reserved for platform-internal use */ + platformOnly?: boolean; + /** Registry host serving this image (NULL means the platform default registry) */ + registryHost?: string; + /** Repository path within the registry (e.g. constructiveio/worker) */ + repository: string; + /** Runtime this image implements (e.g. nodejs, python, custom) */ + runtime?: string; + /** Mutable tag this row addresses */ + tag?: string; + updatedAt?: string; + updatedByPrincipal?: string; } -export interface PlatformResourcesResolvedRequirementPatch { - atomId?: string | null; - configObjectName?: string | null; - name?: string | null; - namespaceId?: string | null; - present?: boolean | null; - realm?: string | null; - required?: boolean | null; - requirementKind?: string | null; - resourceId?: string | null; - secretsObjectName?: string | null; - slug?: string | null; +/** An input for mutations affecting `PlatformImageGrant` */ +export interface PlatformImageGrantInput { + /** Registry actions this grant allows (pull, push, delete) */ + actions?: string[]; + createdAt?: string; + createdByPrincipal?: string; + /** When this grant stops applying (NULL never expires) */ + expiresAt?: string; + /** User who issued this grant */ + grantedBy?: string; + /** Scope key of the grantee (a database_id or an entity_id) */ + granteeKey: string; + /** Scope tier of the grantee (database, org, app, platform) */ + granteeScope: string; + id?: string; + /** Catalog image this grant applies to */ + imageId: string; + updatedAt?: string; + updatedByPrincipal?: string; } -export interface UpdatePlatformResourcesResolvedRequirementInput { - clientMutationId?: string; - id: string; - platformResourcesResolvedRequirementPatch: PlatformResourcesResolvedRequirementPatch; +/** An input for mutations affecting `PlatformInfraCommit` */ +export interface PlatformInfraCommitInput { + /** User who authored the changes */ + authorId?: string; + /** User who committed (may differ from author) */ + committerId?: string; + /** Commit timestamp */ + date?: string; + /** Unique commit identifier */ + id?: string; + /** Optional commit message */ + message?: string; + /** Parent commit IDs (supports merge commits) */ + parentIds?: string[]; + /** Opaque store partition key for the global tier */ + scopeId: string; + /** Store this commit belongs to */ + storeId: string; + /** Root object ID of the tree snapshot at this commit */ + treeId?: string; } -export interface DeletePlatformResourcesResolvedRequirementInput { - clientMutationId?: string; +/** An input for mutations affecting `PlatformInfraObject` */ +export interface PlatformInfraObjectInput { + /** Timestamp of object creation */ + createdAt?: string; + /** Payload data for this object node */ + data?: Record; + /** Content-addressed UUID v5 — deterministic hash of (data, kids, ktree) */ id: string; + /** Ordered array of child object IDs */ + kids?: string[]; + /** Ordered array of child path names (parallel to kids) */ + ktree?: string[]; + /** Opaque store partition key for the global tier */ + scopeId: string; } -export interface CreatePlatformWebhookEndpointInput { - clientMutationId?: string; - platformWebhookEndpoint: { - active?: boolean; - createdBy?: string; - functionDefinitionId: string; - host: string; - namespaceId: string; - path: string; - provider?: string; - replayWindowSeconds?: number; - signingSecretName: string; - updatedBy?: string; - }; +/** An input for mutations affecting `PlatformInfraRef` */ +export interface PlatformInfraRefInput { + /** Commit this ref points to */ + commitId?: string; + /** Unique ref identifier */ + id?: string; + /** Ref name (e.g. HEAD, main) */ + name: string; + /** Opaque store partition key for the global tier */ + scopeId: string; + /** Store this ref belongs to */ + storeId: string; } -export interface PlatformWebhookEndpointPatch { - active?: boolean | null; - createdBy?: string | null; - functionDefinitionId?: string | null; - host?: string | null; - namespaceId?: string | null; - path?: string | null; - provider?: string | null; - replayWindowSeconds?: number | null; - signingSecretName?: string | null; - updatedBy?: string | null; +/** An input for mutations affecting `PlatformInfraStore` */ +export interface PlatformInfraStoreInput { + /** Timestamp of store creation */ + createdAt?: string; + /** Current root object hash of this store */ + hash?: string; + /** Unique store identifier */ + id?: string; + /** Human-readable store name */ + name: string; + /** Opaque store partition key for the global tier */ + scopeId: string; } -export interface UpdatePlatformWebhookEndpointInput { - clientMutationId?: string; - id: string; - platformWebhookEndpointPatch: PlatformWebhookEndpointPatch; +/** An input for mutations affecting `PlatformK8sResourceKind` */ +export interface PlatformK8sResourceKindInput { + /** Whether the admission gate consults this row; deactivating a kind row denies the kind (fail closed) */ + active?: boolean; + /** Infra store commit for the current definition (stamped by the versioned trigger on every write) */ + commitId?: string; + /** Timestamp of policy creation */ + createdAt?: string; + /** Kind policy: {allowed, allowed_scopes?, notes} — the readily-cached head; history lives in the infra store */ + definition: Record; + /** Human-readable description of the kind policy */ + description?: string; + /** Unique kind policy identifier */ + id?: string; + /** Human-readable kind policy name */ + label?: string; + /** Kubernetes kind this policy governs (e.g. Deployment); the policy's path in the infra tree is [k8s_resource_kind, slug] */ + slug: string; + /** Infra Merkle store holding this policy's history (stamped by the versioned trigger) */ + storeId?: string; + /** Timestamp of last modification */ + updatedAt?: string; } -export interface DeletePlatformWebhookEndpointInput { - clientMutationId?: string; - id: string; +/** An input for mutations affecting `PlatformK8sSpecRule` */ +export interface PlatformK8sSpecRuleInput { + /** Whether the admission gate enforces this rule; rules are disabled here rather than deleted so history stays intact */ + active?: boolean; + /** Infra store commit for the current definition (stamped by the versioned trigger on every write) */ + commitId?: string; + /** Timestamp of rule creation */ + createdAt?: string; + /** Rule definition: {rule_type, kind?, match, notes?} — the readily-cached head; history lives in the infra store */ + definition: Record; + /** Human-readable description of the rule */ + description?: string; + /** Unique spec rule identifier */ + id?: string; + /** Human-readable rule name */ + label?: string; + /** Rule slug (unique per scope); the rule's path in the infra tree is [k8s_spec_rule, slug] */ + slug: string; + /** Infra Merkle store holding this rule's history (stamped by the versioned trigger) */ + storeId?: string; + /** Timestamp of last modification */ + updatedAt?: string; } -export interface CreatePlatformWebhookEventInput { - clientMutationId?: string; - platformWebhookEvent: { - endpointId: string; - error?: string; - externalEventId: string; - invocationCreatedAt?: string; - invocationId?: string; - payload?: Record; - provider: string; - providerTimestamp?: string; - status?: string; - }; +/** An input for mutations affecting `PlatformNamespace` */ +export interface PlatformNamespaceInput { + /** Freeform metadata for tooling and operational notes */ + annotations?: Record; + /** Cluster this namespace is projected onto; NULL = the cluster the reconciler runs in */ + clusterId?: string; + createdAt?: string; + /** Optional human-readable description of this namespace */ + description?: string; + id?: string; + /** Whether this namespace is active (soft-disable for filtering) */ + isActive?: boolean; + /** true = provisioned by the platform via jobs, false = unmanaged/platform-native (bootstrapped externally) */ + isManaged?: boolean; + /** Key/value pairs for selecting and filtering namespaces */ + labels?: Record; + /** Most recent provisioning or reconcile error message */ + lastError?: string; + /** Human-readable namespace name (e.g. default, production, oauth) */ + name: string; + /** Globally unique computed namespace identifier via inflection.underscore */ + namespaceName: string; + /** Namespace provisioning lifecycle status: pending, provisioning, active, failed */ + status?: string; + updatedAt?: string; } -export interface PlatformWebhookEventPatch { - endpointId?: string | null; - error?: string | null; - externalEventId?: string | null; - invocationCreatedAt?: string | null; - invocationId?: string | null; - payload?: Record | null; - provider?: string | null; - providerTimestamp?: string | null; - status?: string | null; +/** An input for mutations affecting `PlatformNamespaceEvent` */ +export interface PlatformNamespaceEventInput { + /** User who triggered this event; NULL only when no human actor was proven */ + actorId?: string; + /** Event timestamp (partition key) */ + createdAt?: string; + /** Event type: created, activated, deactivated, labels_updated, annotations_updated, renamed */ + eventType: string; + /** Unique event identifier */ + id?: string; + /** Human-readable description of the event */ + message?: string; + /** Structured context (old/new values, labels diff, etc.) */ + metadata?: Record; + /** Namespace this event belongs to */ + namespaceId: string; } -export interface UpdatePlatformWebhookEventInput { - clientMutationId?: string; - id: string; - platformWebhookEventPatch: PlatformWebhookEventPatch; +/** An input for mutations affecting `PlatformProposalComment` */ +export interface PlatformProposalCommentInput { + /** Actor who wrote the comment; NULL only when no human actor was proven */ + actorId?: string; + /** Files referenced by the comment body, in the order they were attached */ + attachments?: ConstructiveInternalTypeUpload[]; + /** Comment text */ + body: string; + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + embedding?: number[]; + /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + embeddingText?: string; + id?: string; + /** Line within path the comment is anchored to */ + line?: number; + /** When the anchored range this comment pointed at vanished from the diff */ + outdatedAt?: string; + /** File the comment is anchored to (NULL for a comment on the proposal) */ + path?: string; + /** Proposal being commented on */ + proposalId: string; + /** When this comment was marked resolved */ + resolvedAt?: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; } -export interface DeletePlatformWebhookEventInput { - clientMutationId?: string; - id: string; +/** An input for mutations affecting `PlatformProposal` */ +export interface PlatformProposalInput { + /** Actor who opened the proposal; NULL only when no human actor was proven */ + actorId?: string; + /** Description of the proposed change */ + body?: string; + /** Why this was closed: completed, not_planned, duplicate, superseded */ + closedReason?: string; + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** When the decision was taken (NULL while the question is open) */ + decidedAt?: string; + /** When this is wanted by (NULL when nothing is promised) */ + dueAt?: string; + embedding?: number[]; + /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + embeddingText?: string; + id?: string; + /** issue (a report or plan), change (merge one ref into another), discussion (an open question), decision (a question answered) */ + kind?: string; + /** Labels for filtering and grouping (a board is a query over kind, status and these) */ + labels?: string[]; + /** Commit the merge produced */ + mergeCommit?: string; + /** How to merge when eligible: merge, squash, rebase */ + mergeMethod?: string; + /** When merge-when-green was requested (NULL when no merge is pending) */ + mergeRequestedAt?: string; + /** When the merge completed */ + mergedAt?: string; + /** Review detail (reviewers, labels, checks summary) */ + metadata?: Record; + /** Proposal this one hangs under: an epic, or the discussion a decision came out of */ + parentId?: string; + /** Manual order within a board column, sparse so an insert between two rows moves one row (NULL when unranked) */ + priority?: string; + /** Repository this proposal is against */ + repositoryId: string; + /** What was decided (for kind = decision; NULL while the question is open) */ + resolution?: string; + /** Ref holding the proposed commits (NULL unless kind is change) */ + sourceRef?: string; + /** Lifecycle state: draft, open, merged, closed */ + status?: string; + /** Ref the commits are proposed for (NULL unless kind is change) */ + targetRef?: string; + /** What this proposal does */ + title: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; } -export interface CreateResourceInput { - clientMutationId?: string; - resource: { - annotations?: Record; - createdBy?: string; - databaseId: string; - errorCount?: number; - installationId?: string; - integrations?: string[]; - kind: string; - labels?: Record; - lastError?: string; - lastHeartbeatAt?: string; - name: string; - namespaceId: string; - realm?: string; - requiredConfigs?: ResourceRequirementInput[]; - requiredSecrets?: ResourceRequirementInput[]; - resourceDefinitionId?: string; - slug: string; - spec?: Record; - status?: string; - statusObserved?: Record; - updatedBy?: string; - }; +/** An input for mutations affecting `PlatformProposalFileView` */ +export interface PlatformProposalFileViewInput { + /** Blob the reviewer read, which is what makes the mark survive a rebase or go stale */ + blobSha: string; + createdAt?: string; + createdByPrincipal?: string; + id?: string; + /** Path of the file as the diff named it */ + path: string; + /** Proposal the file belongs to */ + proposalId: string; + /** Actor who read the file */ + reviewerId: string; + updatedAt?: string; + updatedByPrincipal?: string; + /** When the file was marked read */ + viewedAt?: string; +} +/** An input for mutations affecting `PlatformProposalReaction` */ +export interface PlatformProposalReactionInput { + /** Actor who reacted */ + actorId: string; + /** Comment being reacted to (NULL for a reaction to the proposal itself) */ + commentId?: string; + createdAt?: string; + createdByPrincipal?: string; + /** Reaction shortcode (+1, eyes, rocket) */ + emoji: string; + id?: string; + /** Proposal the reaction belongs to */ + proposalId: string; + updatedAt?: string; + updatedByPrincipal?: string; +} +/** An input for mutations affecting `PlatformProposalReview` */ +export interface PlatformProposalReviewInput { + /** Summary the reviewer submitted with the verdict */ + body?: string; + /** Head commit this verdict was submitted against */ + commitSha: string; + createdAt?: string; + createdByPrincipal?: string; + id?: string; + /** Proposal being reviewed */ + proposalId: string; + /** Actor who submitted the verdict */ + reviewerId: string; + /** When the verdict was submitted */ + submittedAt?: string; + updatedAt?: string; + updatedByPrincipal?: string; + /** approve, reject or comment (a review that gates nothing) */ + verdict: string; } -export interface ResourcePatch { - annotations?: Record | null; - createdBy?: string | null; - databaseId?: string | null; - errorCount?: number | null; - installationId?: string | null; - integrations?: string[] | null; - kind?: string | null; - labels?: Record | null; - lastError?: string | null; - lastHeartbeatAt?: string | null; - name?: string | null; - namespaceId?: string | null; - realm?: string | null; - requiredConfigs?: ResourceRequirementInput[] | null; - requiredSecrets?: ResourceRequirementInput[] | null; - resourceDefinitionId?: string | null; - slug?: string | null; - spec?: Record | null; - status?: string | null; - statusObserved?: Record | null; - updatedBy?: string | null; +/** An input for mutations affecting `PlatformProposalsChunk` */ +export interface PlatformProposalsChunkInput { + /** Policy-required field derived from source table (used by AuthzComposite) */ + actorId?: string; + body: string; + chunkIndex?: number; + createdAt?: string; + embedding?: number[]; + /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + embeddingText?: string; + id?: string; + metadata?: Record; + platformProposalsId: string; + updatedAt?: string; } -export interface UpdateResourceInput { - clientMutationId?: string; - id: string; - resourcePatch: ResourcePatch; +/** An input for mutations affecting `PlatformRegistryBinding` */ +export interface PlatformRegistryBindingInput { + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + id?: string; + /** Reconciler detail (last error, projection timestamps) */ + metadata?: Record; + /** Namespace the registry credentials are projected into */ + namespaceId: string; + /** Registry credential version last projected into the namespace (NULL = never projected) */ + observedCredentialVersion?: string; + /** Name of the image pull secret the reconciler writes into the namespace */ + pullSecretName?: string; + /** Lane this binding applies to (NULL = the scope's default lane) */ + realm?: string; + /** Registry host this binding's credentials authenticate to (what kubelet matches image references against) */ + registryHost: string; + /** Registry endpoint (in this scope's registry catalog) the namespace pulls from */ + registryId: string; + /** Projection state of the pull secret: pending, active, failed */ + status?: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; +} +/** An input for mutations affecting `PlatformRegistry` */ +export interface PlatformRegistryInput { + /** How a client authenticates to this registry (none, basic, token) */ + authMode?: string; + /** Path prefix within the host (npm scope, OCI project); NULL = the host root */ + basePath?: string; + createdAt?: string; + createdByPrincipal?: string; + /** Name of the infra secret carrying this registry's credential (NULL when auth_mode = none) */ + credentialSecretName?: string; + /** Registry host, without a scheme (e.g. ghcr.io, registry.npmjs.org); required unless role is source, where it is the optional requested host and is stamped with the provisioned one */ + host?: string; + id?: string; + /** Resource installation running this registry (NULL for an external registry) */ + installationId?: string; + /** Whether this registry is published for use by any scope */ + isPublished?: boolean; + /** Artifact ecosystem this registry serves (oci, npm) */ + kind: string; + /** Labels for selecting registries (lane, region, mirror role) */ + labels?: Record; + /** Message from the last failed provision/deprovision attempt (NULL when healthy) */ + lastError?: string; + /** Freeform metadata (mirror-of pointer, rate limits, contact) */ + metadata?: Record; + /** Human-readable registry name (e.g. github-container-registry) */ + name: string; + /** Whether this registry is reserved for platform-internal use */ + platformOnly?: boolean; + /** Role in this scope: source (the push target), cache (read-through mirror), external (pull only) */ + role?: string; + /** Provisioning state (pending, provisioning, active, failed); rows the platform does not create are active on insert */ + status?: string; + updatedAt?: string; + updatedByPrincipal?: string; } -export interface DeleteResourceInput { - clientMutationId?: string; - id: string; +/** An input for mutations affecting `PlatformRegistryGrant` */ +export interface PlatformRegistryGrantInput { + /** Endpoint actions this grant allows (read, write) */ + actions?: string[]; + createdAt?: string; + createdByPrincipal?: string; + /** When this grant stops applying (NULL never expires) */ + expiresAt?: string; + /** User who issued this grant */ + grantedBy?: string; + /** Scope key of the grantee (a database_id or an entity_id) */ + granteeKey: string; + /** Scope tier of the grantee (database, org, app, platform) */ + granteeScope: string; + id?: string; + /** Registry this grant applies to */ + registryId: string; + updatedAt?: string; + updatedByPrincipal?: string; } -export interface CreateResourceDeclaredCapacityInput { - clientMutationId?: string; - resourceDeclaredCapacity: { - cpuLimitMillicores?: string; - cpuRequestMillicores?: string; - installationId: string; - isTransient?: boolean; - kind?: string; - memoryLimitBytes?: string; - memoryRequestBytes?: string; - namespaceId: string; - podCountMax?: number; - podCountMin?: number; - source?: string; - sourceId: string; - storageSizeBytes?: string; - }; +/** An input for mutations affecting `PlatformRepository` */ +export interface PlatformRepositoryInput { + /** URL a workspace clones from (NULL until the repository is provisioned) */ + cloneUrl?: string; + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** Branch a clone checks out and a proposal targets by default */ + defaultBranch?: string; + /** What this repository holds */ + description?: string; + embedding?: number[]; + /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + embeddingText?: string; + /** Identifier of this repository in the external provider (NULL for local) */ + externalId?: string; + id?: string; + /** Whether this repository is retired: readable, not written to */ + isArchived?: boolean; + /** Provider detail (installation id, topics, external URLs) */ + metadata?: Record; + /** Human-readable repository name */ + name: string; + /** User who owns this repository */ + ownerId?: string; + /** Where the repository lives: local (platform git server) or github */ + provider?: string; + /** URL-safe identifier, unique within the owning scope */ + slug: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; + /** Read reach: private (owner), internal (scope members), public (any authenticated actor) */ + visibility?: string; } -export interface ResourceDeclaredCapacityPatch { - cpuLimitMillicores?: string | null; - cpuRequestMillicores?: string | null; - installationId?: string | null; - isTransient?: boolean | null; - kind?: string | null; - memoryLimitBytes?: string | null; - memoryRequestBytes?: string | null; - namespaceId?: string | null; - podCountMax?: number | null; - podCountMin?: number | null; - source?: string | null; - sourceId?: string | null; - storageSizeBytes?: string | null; +/** An input for mutations affecting `PlatformRepositoryEvent` */ +export interface PlatformRepositoryEventInput { + /** Authenticated actor behind the event (NULL when only the sending system was proven) */ + actorId?: string; + /** Commit the ref points at after the event */ + commitSha?: string; + createdAt?: string; + createdByPrincipal?: string; + /** Provider delivery identifier, for redelivery dedupe (NULL for local hooks) */ + deliveryId?: string; + /** What happened: push, tag, pr_open, pr_merge, proposal_comment, manual */ + eventType: string; + id?: string; + /** Unverified provider detail (payload login, commit author, external URLs) */ + metadata?: Record; + /** Normalized event body the workflows read */ + payload?: Record; + /** Git ref the event concerns (refs/heads/main) */ + ref?: string; + /** Repository this event happened to */ + repositoryId: string; + updatedAt?: string; + updatedByPrincipal?: string; } -export interface UpdateResourceDeclaredCapacityInput { - clientMutationId?: string; - id: string; - resourceDeclaredCapacityPatch: ResourceDeclaredCapacityPatch; +/** An input for mutations affecting `PlatformRepositoryRequiredCheck` */ +export interface PlatformRepositoryRequiredCheckInput { + createdAt?: string; + id?: string; + /** Repository whose merge gate requires this workflow */ + repositoryId: string; + updatedAt?: string; + /** Workflow identity required by this repository gate */ + workflowId: string; +} +/** An input for mutations affecting `PlatformRepositoryWorkflow` */ +export interface PlatformRepositoryWorkflowInput { + /** Whether a new build cancels a running build with the same concurrency key instead of queueing */ + cancelInProgress?: boolean; + /** Builds of this workflow sharing this key run one at a time (NULL = unlimited) */ + concurrencyKey?: string; + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** Event type that fires this workflow */ + eventType: string; + /** Flow graph to run when this workflow fires */ + graphId?: string; + id?: string; + /** Static inputs merged into the graph run alongside the event */ + inputs?: Record; + /** Whether matching events fire this workflow */ + isEnabled?: boolean; + /** Human-readable workflow name */ + name: string; + /** Glob the event ref must match (NULL matches any ref) */ + refPattern?: string; + /** Repository whose events this workflow listens to */ + repositoryId: string; + /** Secret names this workflow's builds may resolve, intersected with the build lane's realm */ + requiredSecrets?: string[]; + /** URL-safe identifier, unique within the repository */ + slug: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; } -export interface DeleteResourceDeclaredCapacityInput { - clientMutationId?: string; - id: string; +/** An input for mutations affecting `PlatformResource` */ +export interface PlatformResourceInput { + /** Freeform metadata for tooling and operational notes */ + annotations?: Record; + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** Cumulative error count for this resource */ + errorCount?: number; + id?: string; + /** Pinned image reference this resource runs (registry host/repository:tag or @digest), written by promotion; NULL means spec.image decides */ + imageRef?: string; + /** Installation ("release") this resource belongs to (NULL for standalone resources) */ + installationId?: string; + /** Provider slugs (e.g. mailgun, postgres) associated with this resource. The UI uses this to auto-fill required_secrets and required_configs from integration_providers. */ + integrations?: string[]; + /** Resource kind: Deployment, StatefulSet, Job, Service, Ingress, Certificate, ClusterIssuer */ + kind: string; + /** Key/value pairs for selecting and filtering resources */ + labels?: Record; + /** Most recent provisioning or runtime error message */ + lastError?: string; + /** Last time a usage heartbeat was received for this resource (NULL until first heartbeat) */ + lastHeartbeatAt?: string; + /** Human-readable resource name */ + name: string; + /** Namespace this resource belongs to (security boundary, maps to K8s namespace) */ + namespaceId: string; + /** Config/secret realm this resource resolves against. Per key, the realm-specific atom wins over the NULL-realm default. NULL = the default lane. */ + realm?: string; + /** Embedded config requirements: array of (name, required, provider) tuples — extends the linked definition's requirements. provider is the integration slug this requirement belongs to, if any. */ + requiredConfigs?: ResourceRequirementInput[]; + /** Embedded secret requirements: array of (name, required, provider) tuples — extends the linked definition's requirements. provider is the integration slug this requirement belongs to, if any. */ + requiredSecrets?: ResourceRequirementInput[]; + /** Definition template this resource was created from (NULL for standalone resources) */ + resourceDefinitionId?: string; + /** URL-safe identifier, unique within (namespace_id, kind) */ + slug: string; + /** Desired state — kind-specific configuration (image, ports, resources, etc.). Opaque to DB; validated by K8s. */ + spec?: Record; + /** Resource lifecycle status: pending, provisioning, active, completed, failed, draining, deleting */ + status?: string; + /** Observed state from K8s — populated by handlers after reconciliation (service_url, clone_url, replicas, etc.) */ + statusObserved?: Record; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; +} +/** An input for mutations affecting `PlatformResourceDefinition` */ +export interface PlatformResourceDefinitionInput { + /** Freeform metadata for tooling and operational notes */ + annotations?: Record; + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** Template spec for creating resource instances of this kind */ + defaultSpec?: Record; + /** What this resource definition provides */ + description?: string; + id?: string; + /** Provider slugs (e.g. mailgun, postgres) associated with this resource definition. The UI uses this to auto-fill required_secrets and required_configs from integration_providers. */ + integrations?: string[]; + /** Resource kind: Deployment, StatefulSet, Job, Service, Ingress, Certificate, ClusterIssuer, or custom kinds */ + kind: string; + /** Key/value pairs for selecting and filtering definitions */ + labels?: Record; + /** Human-readable definition name */ + name: string; + /** Namespace this definition belongs to (security boundary, maps to K8s namespace) */ + namespaceId: string; + /** Declared parameter interface: [{key,label,type,default,required,min,max,options,group,order,bindings:[{path,template,scale,round,unit}]}]. Installation params are validated and compiled through these declarations; [] keeps the legacy raw spec overlay. */ + paramsSchema?: Record; + /** Embedded config requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ + requiredConfigs?: ResourceRequirementInput[]; + /** Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ + requiredSecrets?: ResourceRequirementInput[]; + /** URL-safe identifier, unique within (namespace_id, kind) */ + slug: string; + /** Min age before DELETE of a resource of this kind requires step-up; NULL inherits the 6h default */ + stepUpMinAge?: IntervalInput; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; } -export interface CreateResourceDefinitionInput { - clientMutationId?: string; - resourceDefinition: { - annotations?: Record; - createdBy?: string; - databaseId: string; - defaultSpec?: Record; - description?: string; - integrations?: string[]; - kind: string; - labels?: Record; - name: string; - namespaceId: string; - paramsSchema?: Record; - requiredConfigs?: ResourceRequirementInput[]; - requiredSecrets?: ResourceRequirementInput[]; - slug: string; - stepUpMinAge?: IntervalInput; - updatedBy?: string; - }; +/** An interval of time that has passed where the smallest distinct unit is a second. */ +export interface IntervalInput { + /** A quantity of days. */ + days?: number; + /** A quantity of hours. */ + hours?: number; + /** A quantity of minutes. */ + minutes?: number; + /** A quantity of months. */ + months?: number; + /** + * A quantity of seconds. This is the only non-integer field, as all the other + * fields will dump their overflow into a smaller unit of time. Intervals don’t + * have a smaller unit than seconds. + */ + seconds?: number; + /** A quantity of years. */ + years?: number; } -export interface ResourceDefinitionPatch { - annotations?: Record | null; - createdBy?: string | null; - databaseId?: string | null; - defaultSpec?: Record | null; - description?: string | null; - integrations?: string[] | null; - kind?: string | null; - labels?: Record | null; - name?: string | null; - namespaceId?: string | null; - paramsSchema?: Record | null; - requiredConfigs?: ResourceRequirementInput[] | null; - requiredSecrets?: ResourceRequirementInput[] | null; - slug?: string | null; - stepUpMinAge?: IntervalInput | null; - updatedBy?: string | null; +/** An input for mutations affecting `PlatformResourceEvent` */ +export interface PlatformResourceEventInput { + /** User who triggered this event; NULL only when no human actor was proven */ + actorId?: string; + /** Event timestamp (partition key) */ + createdAt?: string; + /** Event type: provisioned, provisioning, updated, failed, deprovisioned, health_check */ + eventType: string; + /** Unique event identifier */ + id?: string; + /** Human-readable description of the event */ + message?: string; + /** Structured context (old/new values, error details, etc.) */ + metadata?: Record; + /** Resource this event belongs to */ + resourceId: string; } -export interface UpdateResourceDefinitionInput { - clientMutationId?: string; - id: string; - resourceDefinitionPatch: ResourceDefinitionPatch; +/** An input for mutations affecting `PlatformResourceInstallation` */ +export interface PlatformResourceInstallationInput { + /** Infra store commit for the current params (stamped by the versioned trigger on every write) */ + commitId?: string; + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + id?: string; + /** Human-readable release name */ + name: string; + /** Namespace this installation belongs to (security boundary) */ + namespaceId: string; + /** Release parameters — the readily-cached head; history lives in the infra store. Never contains secret/config literals. */ + params?: Record; + /** Monotonic release revision counter: install starts at 1, bumped on every upgrade/rollback */ + revision?: number; + /** URL-safe release identifier, unique within the namespace; the release's path in the infra tree is [resource_installation, slug] */ + slug: string; + /** Installation lifecycle status: pending, installed, uninstalled, failed */ + status?: string; + /** Infra merkle store holding this installation's history (stamped by the versioned trigger) */ + storeId?: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; } -export interface DeleteResourceDefinitionInput { - clientMutationId?: string; - id: string; +/** An input for mutations affecting `PlatformResourceStatusCheck` */ +export interface PlatformResourceStatusCheckInput { + /** When the check completed (NULL while pending/running) */ + completedAt?: string; + /** Unique status check identifier */ + id?: string; + /** When the check was requested */ + requestedAt?: string; + /** User who requested the check (NULL for system/scheduled) */ + requestedBy?: string; + /** Resource to check */ + resourceId: string; + /** Diagnostic snapshot: k8s_status, conditions, pod_logs_tail, events */ + result?: Record; + /** Check lifecycle: pending, running, completed, failed */ + status?: string; } -export interface CreateResourceEventInput { - clientMutationId?: string; - resourceEvent: { - actorId?: string; - databaseId: string; - eventType: string; - message?: string; - metadata?: Record; - resourceId: string; - }; +/** An input for mutations affecting `PlatformResourceUsageLog` */ +export interface PlatformResourceUsageLogInput { + /** CPU gauge in millicores at sample time (NULL when unknown) */ + cpuMillicores?: string; + /** Unique sample identifier */ + id?: string; + /** Seconds covered by this sample — runtime is SUM(interval_seconds) */ + intervalSeconds: number; + /** Memory gauge in bytes at sample time (NULL when unknown) */ + memoryBytes?: string; + /** Structured gauges: replicas, pod counts, phases, and other producer-specific metrics */ + metrics?: Record; + /** Namespace the measured workload runs in */ + namespaceId: string; + /** Resource this sample measures (NULL for namespace-grain catch-all rows) */ + resourceId?: string; + /** Sample timestamp (partition key) — end of the measured interval */ + sampledAt?: string; + /** Sample producer: self (workload heartbeat), observer (reconciler), or prometheus (namespace-grain usage collector) */ + source: string; } -export interface ResourceEventPatch { - actorId?: string | null; - databaseId?: string | null; - eventType?: string | null; - message?: string | null; - metadata?: Record | null; - resourceId?: string | null; +/** An input for mutations affecting `PlatformResourceUsageSummary` */ +export interface PlatformResourceUsageSummaryInput { + /** Day this summary covers (partition key) */ + date: string; + /** Memory usage for the day — SUM(memory_bytes * interval_seconds) normalized to GB-seconds */ + gbSeconds?: string; + /** Unique usage summary identifier */ + id?: string; + /** Maximum CPU gauge observed during the day (NULL when never reported) */ + maxCpuMillicores?: string; + /** Maximum memory gauge observed during the day (NULL when never reported) */ + maxMemoryBytes?: string; + /** Namespace the resource runs in */ + namespaceId: string; + /** Resource this summary covers (NULL for namespace-grain catch-all summaries) */ + resourceId?: string; + /** Total measured runtime for the day — SUM(interval_seconds) */ + runtimeSeconds?: string; + /** Number of raw samples aggregated into this summary */ + sampleCount?: number; } -export interface UpdateResourceEventInput { - clientMutationId?: string; - id: string; - resourceEventPatch: ResourceEventPatch; +/** An input for mutations affecting `PlatformWebhookEndpoint` */ +export interface PlatformWebhookEndpointInput { + /** Whether this endpoint currently accepts deliveries */ + active?: boolean; + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** Same-scope function definition invoked on delivery. The function must list the webhook channel in access_channels. */ + functionDefinitionId: string; + /** Inbound Host header this endpoint matches (normalized lower-case, no port) */ + host: string; + id?: string; + /** Namespace that owns this endpoint and contains its signing secret */ + namespaceId: string; + /** Exact request path this endpoint matches (e.g. /webhooks/stripe) */ + path: string; + /** Verification scheme: generic (HMAC), stripe, or github */ + provider?: string; + /** Maximum age (seconds) of a signed provider timestamp before the delivery is rejected as a replay */ + replayWindowSeconds?: number; + /** Name of the signing secret in the infra secrets store. The gateway resolves the value through the generated secrets getter — the plaintext secret is never stored here. */ + signingSecretName: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; } -export interface DeleteResourceEventInput { - clientMutationId?: string; - id: string; +/** An input for mutations affecting `PlatformWebhookEvent` */ +export interface PlatformWebhookEventInput { + createdAt?: string; + /** Endpoint that accepted this delivery */ + endpointId: string; + /** Failure detail when status = failed */ + error?: string; + /** Provider-supplied delivery/event id used for idempotent dedup */ + externalEventId: string; + id?: string; + /** created_at of the enqueued invocation (partition key companion to invocation_id) */ + invocationCreatedAt?: string; + /** Pending function invocation enqueued for this delivery (NULL until enqueued) */ + invocationId?: string; + /** Parsed delivery payload (parsed only after signature verification over the exact raw bytes) */ + payload?: Record; + /** Provider that produced this delivery (copied from the endpoint at acceptance) */ + provider: string; + /** Signed provider timestamp used for replay-window validation (NULL when the provider supplies none) */ + providerTimestamp?: string; + /** Acceptance lifecycle: accepted, processed, failed */ + status?: string; + updatedAt?: string; } -export interface CreateResourceInstallationInput { - clientMutationId?: string; - resourceInstallation: { - commitId?: string; - createdBy?: string; - databaseId: string; - name: string; - namespaceId: string; - params?: Record; - revision?: number; - slug: string; - status?: string; - storeId?: string; - updatedBy?: string; - }; +/** An input for mutations affecting `ProposalComment` */ +export interface ProposalCommentInput { + /** Actor who wrote the comment; NULL only when no human actor was proven */ + actorId?: string; + /** Files referenced by the comment body, in the order they were attached */ + attachments?: ConstructiveInternalTypeUpload[]; + /** Comment text */ + body: string; + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + embedding?: number[]; + /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + embeddingText?: string; + id?: string; + /** Line within path the comment is anchored to */ + line?: number; + /** When the anchored range this comment pointed at vanished from the diff */ + outdatedAt?: string; + /** File the comment is anchored to (NULL for a comment on the proposal) */ + path?: string; + /** Proposal being commented on */ + proposalId: string; + /** When this comment was marked resolved */ + resolvedAt?: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; } -export interface ResourceInstallationPatch { - commitId?: string | null; - createdBy?: string | null; - databaseId?: string | null; - name?: string | null; - namespaceId?: string | null; - params?: Record | null; - revision?: number | null; - slug?: string | null; - status?: string | null; - storeId?: string | null; - updatedBy?: string | null; +/** An input for mutations affecting `Proposal` */ +export interface ProposalInput { + /** Actor who opened the proposal; NULL only when no human actor was proven */ + actorId?: string; + /** Description of the proposed change */ + body?: string; + /** Why this was closed: completed, not_planned, duplicate, superseded */ + closedReason?: string; + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** When the decision was taken (NULL while the question is open) */ + decidedAt?: string; + /** When this is wanted by (NULL when nothing is promised) */ + dueAt?: string; + embedding?: number[]; + /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + embeddingText?: string; + id?: string; + /** issue (a report or plan), change (merge one ref into another), discussion (an open question), decision (a question answered) */ + kind?: string; + /** Labels for filtering and grouping (a board is a query over kind, status and these) */ + labels?: string[]; + /** Commit the merge produced */ + mergeCommit?: string; + /** How to merge when eligible: merge, squash, rebase */ + mergeMethod?: string; + /** When merge-when-green was requested (NULL when no merge is pending) */ + mergeRequestedAt?: string; + /** When the merge completed */ + mergedAt?: string; + /** Review detail (reviewers, labels, checks summary) */ + metadata?: Record; + /** Proposal this one hangs under: an epic, or the discussion a decision came out of */ + parentId?: string; + /** Manual order within a board column, sparse so an insert between two rows moves one row (NULL when unranked) */ + priority?: string; + /** Repository this proposal is against */ + repositoryId: string; + /** What was decided (for kind = decision; NULL while the question is open) */ + resolution?: string; + /** Ref holding the proposed commits (NULL unless kind is change) */ + sourceRef?: string; + /** Lifecycle state: draft, open, merged, closed */ + status?: string; + /** Ref the commits are proposed for (NULL unless kind is change) */ + targetRef?: string; + /** What this proposal does */ + title: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; } -export interface UpdateResourceInstallationInput { - clientMutationId?: string; - id: string; - resourceInstallationPatch: ResourceInstallationPatch; +/** An input for mutations affecting `ProposalFileView` */ +export interface ProposalFileViewInput { + /** Blob the reviewer read, which is what makes the mark survive a rebase or go stale */ + blobSha: string; + createdAt?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + id?: string; + /** Path of the file as the diff named it */ + path: string; + /** Proposal the file belongs to */ + proposalId: string; + /** Actor who read the file */ + reviewerId: string; + updatedAt?: string; + updatedByPrincipal?: string; + /** When the file was marked read */ + viewedAt?: string; +} +/** An input for mutations affecting `ProposalReaction` */ +export interface ProposalReactionInput { + /** Actor who reacted */ + actorId: string; + /** Comment being reacted to (NULL for a reaction to the proposal itself) */ + commentId?: string; + createdAt?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Reaction shortcode (+1, eyes, rocket) */ + emoji: string; + id?: string; + /** Proposal the reaction belongs to */ + proposalId: string; + updatedAt?: string; + updatedByPrincipal?: string; +} +/** An input for mutations affecting `ProposalReview` */ +export interface ProposalReviewInput { + /** Summary the reviewer submitted with the verdict */ + body?: string; + /** Head commit this verdict was submitted against */ + commitSha: string; + createdAt?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + id?: string; + /** Proposal being reviewed */ + proposalId: string; + /** Actor who submitted the verdict */ + reviewerId: string; + /** When the verdict was submitted */ + submittedAt?: string; + updatedAt?: string; + updatedByPrincipal?: string; + /** approve, reject or comment (a review that gates nothing) */ + verdict: string; } -export interface DeleteResourceInstallationInput { - clientMutationId?: string; - id: string; +/** An input for mutations affecting `ProposalsChunk` */ +export interface ProposalsChunkInput { + /** Policy-required field derived from source table (used by AuthzComposite) */ + actorId?: string; + body: string; + chunkIndex?: number; + createdAt?: string; + /** Policy-required field derived from source table (used by AuthzRelatedEntityMembership) */ + databaseId?: string; + embedding?: number[]; + /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + embeddingText?: string; + id?: string; + metadata?: Record; + proposalsId: string; + updatedAt?: string; } -export interface CreateResourceStatusCheckInput { - clientMutationId?: string; - resourceStatusCheck: { - completedAt?: string; - databaseId: string; - requestedAt?: string; - requestedBy?: string; - resourceId: string; - result?: Record; - status?: string; - }; +/** An input for mutations affecting `RegistryBinding` */ +export interface RegistryBindingInput { + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + id?: string; + /** Reconciler detail (last error, projection timestamps) */ + metadata?: Record; + /** Namespace the registry credentials are projected into */ + namespaceId: string; + /** Registry credential version last projected into the namespace (NULL = never projected) */ + observedCredentialVersion?: string; + /** Name of the image pull secret the reconciler writes into the namespace */ + pullSecretName?: string; + /** Lane this binding applies to (NULL = the scope's default lane) */ + realm?: string; + /** Registry host this binding's credentials authenticate to (what kubelet matches image references against) */ + registryHost: string; + /** Registry endpoint (in this scope's registry catalog) the namespace pulls from */ + registryId: string; + /** Projection state of the pull secret: pending, active, failed */ + status?: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; +} +/** An input for mutations affecting `Registry` */ +export interface RegistryInput { + /** How a client authenticates to this registry (none, basic, token) */ + authMode?: string; + /** Path prefix within the host (npm scope, OCI project); NULL = the host root */ + basePath?: string; + createdAt?: string; + createdByPrincipal?: string; + /** Name of the infra secret carrying this registry's credential (NULL when auth_mode = none) */ + credentialSecretName?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Registry host, without a scheme (e.g. ghcr.io, registry.npmjs.org); required unless role is source, where it is the optional requested host and is stamped with the provisioned one */ + host?: string; + id?: string; + /** Resource installation running this registry (NULL for an external registry) */ + installationId?: string; + /** Whether this registry is published for use by any scope */ + isPublished?: boolean; + /** Artifact ecosystem this registry serves (oci, npm) */ + kind: string; + /** Labels for selecting registries (lane, region, mirror role) */ + labels?: Record; + /** Message from the last failed provision/deprovision attempt (NULL when healthy) */ + lastError?: string; + /** Freeform metadata (mirror-of pointer, rate limits, contact) */ + metadata?: Record; + /** Human-readable registry name (e.g. github-container-registry) */ + name: string; + /** Whether this registry is reserved for platform-internal use */ + platformOnly?: boolean; + /** Role in this scope: source (the push target), cache (read-through mirror), external (pull only) */ + role?: string; + /** Provisioning state (pending, provisioning, active, failed); rows the platform does not create are active on insert */ + status?: string; + updatedAt?: string; + updatedByPrincipal?: string; } -export interface ResourceStatusCheckPatch { - completedAt?: string | null; - databaseId?: string | null; - requestedAt?: string | null; - requestedBy?: string | null; - resourceId?: string | null; - result?: Record | null; - status?: string | null; +/** An input for mutations affecting `RegistryGrant` */ +export interface RegistryGrantInput { + /** Endpoint actions this grant allows (read, write) */ + actions?: string[]; + createdAt?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** When this grant stops applying (NULL never expires) */ + expiresAt?: string; + /** User who issued this grant */ + grantedBy?: string; + /** Scope key of the grantee (a database_id or an entity_id) */ + granteeKey: string; + /** Scope tier of the grantee (database, org, app, platform) */ + granteeScope: string; + id?: string; + /** Registry this grant applies to */ + registryId: string; + updatedAt?: string; + updatedByPrincipal?: string; } -export interface UpdateResourceStatusCheckInput { - clientMutationId?: string; - id: string; - resourceStatusCheckPatch: ResourceStatusCheckPatch; +/** An input for mutations affecting `Repository` */ +export interface RepositoryInput { + /** URL a workspace clones from (NULL until the repository is provisioned) */ + cloneUrl?: string; + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Branch a clone checks out and a proposal targets by default */ + defaultBranch?: string; + /** What this repository holds */ + description?: string; + embedding?: number[]; + /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + embeddingText?: string; + /** Identifier of this repository in the external provider (NULL for local) */ + externalId?: string; + id?: string; + /** Whether this repository is retired: readable, not written to */ + isArchived?: boolean; + /** Provider detail (installation id, topics, external URLs) */ + metadata?: Record; + /** Human-readable repository name */ + name: string; + /** User who owns this repository */ + ownerId?: string; + /** Where the repository lives: local (platform git server) or github */ + provider?: string; + /** URL-safe identifier, unique within the owning scope */ + slug: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; + /** Read reach: private (owner), internal (scope members), public (any authenticated actor) */ + visibility?: string; } -export interface DeleteResourceStatusCheckInput { - clientMutationId?: string; - id: string; +/** An input for mutations affecting `RepositoryEvent` */ +export interface RepositoryEventInput { + /** Authenticated actor behind the event (NULL when only the sending system was proven) */ + actorId?: string; + /** Commit the ref points at after the event */ + commitSha?: string; + createdAt?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Provider delivery identifier, for redelivery dedupe (NULL for local hooks) */ + deliveryId?: string; + /** What happened: push, tag, pr_open, pr_merge, proposal_comment, manual */ + eventType: string; + id?: string; + /** Unverified provider detail (payload login, commit author, external URLs) */ + metadata?: Record; + /** Normalized event body the workflows read */ + payload?: Record; + /** Git ref the event concerns (refs/heads/main) */ + ref?: string; + /** Repository this event happened to */ + repositoryId: string; + updatedAt?: string; + updatedByPrincipal?: string; } -export interface CreateResourceUsageLogInput { - clientMutationId?: string; - resourceUsageLog: { - cpuMillicores?: string; - databaseId: string; - intervalSeconds: number; - memoryBytes?: string; - metrics?: Record; - namespaceId: string; - resourceId?: string; - sampledAt?: string; - source: string; - }; +/** An input for mutations affecting `RepositoryRequiredCheck` */ +export interface RepositoryRequiredCheckInput { + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + id?: string; + /** Repository whose merge gate requires this workflow */ + repositoryId: string; + updatedAt?: string; + /** Workflow identity required by this repository gate */ + workflowId: string; +} +/** An input for mutations affecting `RepositoryWorkflow` */ +export interface RepositoryWorkflowInput { + /** Whether a new build cancels a running build with the same concurrency key instead of queueing */ + cancelInProgress?: boolean; + /** Builds of this workflow sharing this key run one at a time (NULL = unlimited) */ + concurrencyKey?: string; + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Event type that fires this workflow */ + eventType: string; + /** Flow graph to run when this workflow fires */ + graphId?: string; + id?: string; + /** Static inputs merged into the graph run alongside the event */ + inputs?: Record; + /** Whether matching events fire this workflow */ + isEnabled?: boolean; + /** Human-readable workflow name */ + name: string; + /** Glob the event ref must match (NULL matches any ref) */ + refPattern?: string; + /** Repository whose events this workflow listens to */ + repositoryId: string; + /** Secret names this workflow's builds may resolve, intersected with the build lane's realm */ + requiredSecrets?: string[]; + /** URL-safe identifier, unique within the repository */ + slug: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; } -export interface ResourceUsageLogPatch { - cpuMillicores?: string | null; - databaseId?: string | null; - intervalSeconds?: number | null; - memoryBytes?: string | null; - metrics?: Record | null; - namespaceId?: string | null; - resourceId?: string | null; - sampledAt?: string | null; - source?: string | null; +/** An input for mutations affecting `Resource` */ +export interface ResourceInput { + /** Freeform metadata for tooling and operational notes */ + annotations?: Record; + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Cumulative error count for this resource */ + errorCount?: number; + id?: string; + /** Pinned image reference this resource runs (registry host/repository:tag or @digest), written by promotion; NULL means spec.image decides */ + imageRef?: string; + /** Installation ("release") this resource belongs to (NULL for standalone resources) */ + installationId?: string; + /** Provider slugs (e.g. mailgun, postgres) associated with this resource. The UI uses this to auto-fill required_secrets and required_configs from integration_providers. */ + integrations?: string[]; + /** Resource kind: Deployment, StatefulSet, Job, Service, Ingress, Certificate, ClusterIssuer */ + kind: string; + /** Key/value pairs for selecting and filtering resources */ + labels?: Record; + /** Most recent provisioning or runtime error message */ + lastError?: string; + /** Last time a usage heartbeat was received for this resource (NULL until first heartbeat) */ + lastHeartbeatAt?: string; + /** Human-readable resource name */ + name: string; + /** Namespace this resource belongs to (security boundary, maps to K8s namespace) */ + namespaceId: string; + /** Config/secret realm this resource resolves against. Per key, the realm-specific atom wins over the NULL-realm default. NULL = the default lane. */ + realm?: string; + /** Embedded config requirements: array of (name, required, provider) tuples — extends the linked definition's requirements. provider is the integration slug this requirement belongs to, if any. */ + requiredConfigs?: ResourceRequirementInput[]; + /** Embedded secret requirements: array of (name, required, provider) tuples — extends the linked definition's requirements. provider is the integration slug this requirement belongs to, if any. */ + requiredSecrets?: ResourceRequirementInput[]; + /** Definition template this resource was created from (NULL for standalone resources) */ + resourceDefinitionId?: string; + /** URL-safe identifier, unique within (namespace_id, kind) */ + slug: string; + /** Desired state — kind-specific configuration (image, ports, resources, etc.). Opaque to DB; validated by K8s. */ + spec?: Record; + /** Resource lifecycle status: pending, provisioning, active, completed, failed, draining, deleting */ + status?: string; + /** Observed state from K8s — populated by handlers after reconciliation (service_url, clone_url, replicas, etc.) */ + statusObserved?: Record; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; +} +/** An input for mutations affecting `ResourceDefinition` */ +export interface ResourceDefinitionInput { + /** Freeform metadata for tooling and operational notes */ + annotations?: Record; + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Template spec for creating resource instances of this kind */ + defaultSpec?: Record; + /** What this resource definition provides */ + description?: string; + id?: string; + /** Provider slugs (e.g. mailgun, postgres) associated with this resource definition. The UI uses this to auto-fill required_secrets and required_configs from integration_providers. */ + integrations?: string[]; + /** Resource kind: Deployment, StatefulSet, Job, Service, Ingress, Certificate, ClusterIssuer, or custom kinds */ + kind: string; + /** Key/value pairs for selecting and filtering definitions */ + labels?: Record; + /** Human-readable definition name */ + name: string; + /** Namespace this definition belongs to (security boundary, maps to K8s namespace) */ + namespaceId: string; + /** Declared parameter interface: [{key,label,type,default,required,min,max,options,group,order,bindings:[{path,template,scale,round,unit}]}]. Installation params are validated and compiled through these declarations; [] keeps the legacy raw spec overlay. */ + paramsSchema?: Record; + /** Embedded config requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ + requiredConfigs?: ResourceRequirementInput[]; + /** Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ + requiredSecrets?: ResourceRequirementInput[]; + /** URL-safe identifier, unique within (namespace_id, kind) */ + slug: string; + /** Min age before DELETE of a resource of this kind requires step-up; NULL inherits the 6h default */ + stepUpMinAge?: IntervalInput; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; } -export interface UpdateResourceUsageLogInput { - clientMutationId?: string; - id: string; - resourceUsageLogPatch: ResourceUsageLogPatch; +/** An input for mutations affecting `ResourceEvent` */ +export interface ResourceEventInput { + /** User who triggered this event; NULL only when no human actor was proven */ + actorId?: string; + /** Event timestamp (partition key) */ + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Event type: provisioned, provisioning, updated, failed, deprovisioned, health_check */ + eventType: string; + /** Unique event identifier */ + id?: string; + /** Human-readable description of the event */ + message?: string; + /** Structured context (old/new values, error details, etc.) */ + metadata?: Record; + /** Resource this event belongs to */ + resourceId: string; } -export interface DeleteResourceUsageLogInput { - clientMutationId?: string; - id: string; +/** An input for mutations affecting `ResourceInstallation` */ +export interface ResourceInstallationInput { + /** Infra store commit for the current params (stamped by the versioned trigger on every write) */ + commitId?: string; + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + id?: string; + /** Human-readable release name */ + name: string; + /** Namespace this installation belongs to (security boundary) */ + namespaceId: string; + /** Release parameters — the readily-cached head; history lives in the infra store. Never contains secret/config literals. */ + params?: Record; + /** Monotonic release revision counter: install starts at 1, bumped on every upgrade/rollback */ + revision?: number; + /** URL-safe release identifier, unique within the namespace; the release's path in the infra tree is [resource_installation, slug] */ + slug: string; + /** Installation lifecycle status: pending, installed, uninstalled, failed */ + status?: string; + /** Infra merkle store holding this installation's history (stamped by the versioned trigger) */ + storeId?: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; } -export interface CreateResourceUsageSummaryInput { - clientMutationId?: string; - resourceUsageSummary: { - databaseId: string; - date: string; - gbSeconds?: string; - maxCpuMillicores?: string; - maxMemoryBytes?: string; - namespaceId: string; - resourceId?: string; - runtimeSeconds?: string; - sampleCount?: number; - }; +/** An input for mutations affecting `ResourceStatusCheck` */ +export interface ResourceStatusCheckInput { + /** When the check completed (NULL while pending/running) */ + completedAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Unique status check identifier */ + id?: string; + /** When the check was requested */ + requestedAt?: string; + /** User who requested the check (NULL for system/scheduled) */ + requestedBy?: string; + /** Resource to check */ + resourceId: string; + /** Diagnostic snapshot: k8s_status, conditions, pod_logs_tail, events */ + result?: Record; + /** Check lifecycle: pending, running, completed, failed */ + status?: string; } -export interface ResourceUsageSummaryPatch { - databaseId?: string | null; - date?: string | null; - gbSeconds?: string | null; - maxCpuMillicores?: string | null; - maxMemoryBytes?: string | null; - namespaceId?: string | null; - resourceId?: string | null; - runtimeSeconds?: string | null; - sampleCount?: number | null; +/** An input for mutations affecting `ResourceUsageLog` */ +export interface ResourceUsageLogInput { + /** CPU gauge in millicores at sample time (NULL when unknown) */ + cpuMillicores?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Unique sample identifier */ + id?: string; + /** Seconds covered by this sample — runtime is SUM(interval_seconds) */ + intervalSeconds: number; + /** Memory gauge in bytes at sample time (NULL when unknown) */ + memoryBytes?: string; + /** Structured gauges: replicas, pod counts, phases, and other producer-specific metrics */ + metrics?: Record; + /** Namespace the measured workload runs in */ + namespaceId: string; + /** Resource this sample measures (NULL for namespace-grain catch-all rows) */ + resourceId?: string; + /** Sample timestamp (partition key) — end of the measured interval */ + sampledAt?: string; + /** Sample producer: self (workload heartbeat), observer (reconciler), or prometheus (namespace-grain usage collector) */ + source: string; } -export interface UpdateResourceUsageSummaryInput { - clientMutationId?: string; - id: string; - resourceUsageSummaryPatch: ResourceUsageSummaryPatch; +/** An input for mutations affecting `ResourceUsageSummary` */ +export interface ResourceUsageSummaryInput { + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Day this summary covers (partition key) */ + date: string; + /** Memory usage for the day — SUM(memory_bytes * interval_seconds) normalized to GB-seconds */ + gbSeconds?: string; + /** Unique usage summary identifier */ + id?: string; + /** Maximum CPU gauge observed during the day (NULL when never reported) */ + maxCpuMillicores?: string; + /** Maximum memory gauge observed during the day (NULL when never reported) */ + maxMemoryBytes?: string; + /** Namespace the resource runs in */ + namespaceId: string; + /** Resource this summary covers (NULL for namespace-grain catch-all summaries) */ + resourceId?: string; + /** Total measured runtime for the day — SUM(interval_seconds) */ + runtimeSeconds?: string; + /** Number of raw samples aggregated into this summary */ + sampleCount?: number; } -export interface DeleteResourceUsageSummaryInput { - clientMutationId?: string; - id: string; +/** An input for mutations affecting `WebhookEndpoint` */ +export interface WebhookEndpointInput { + /** Whether this endpoint currently accepts deliveries */ + active?: boolean; + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Same-scope function definition invoked on delivery. The function must list the webhook channel in access_channels. */ + functionDefinitionId: string; + /** Inbound Host header this endpoint matches (normalized lower-case, no port) */ + host: string; + id?: string; + /** Namespace that owns this endpoint and contains its signing secret */ + namespaceId: string; + /** Exact request path this endpoint matches (e.g. /webhooks/stripe) */ + path: string; + /** Verification scheme: generic (HMAC), stripe, or github */ + provider?: string; + /** Maximum age (seconds) of a signed provider timestamp before the delivery is rejected as a replay */ + replayWindowSeconds?: number; + /** Name of the signing secret in the infra secrets store. The gateway resolves the value through the generated secrets getter — the plaintext secret is never stored here. */ + signingSecretName: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; } -export interface CreateResourceUtilizationInput { - clientMutationId?: string; - resourceUtilization: { - avgMemoryBytes?: string; - cpuLimitMillicores?: string; - cpuPeakUtilization?: string; - cpuRequestHeadroomMillicores?: string; - cpuRequestMillicores?: string; - date?: string; - gbSeconds?: string; - kind?: string; - maxCpuMillicores?: string; - maxMemoryBytes?: string; - memoryLimitBytes?: string; - memoryPeakUtilization?: string; - memoryRequestBytes?: string; - memoryRequestHeadroomBytes?: string; - namespaceId: string; - replicas?: number; - resourceId: string; - runtimeSeconds?: string; - sampleCount?: number; - }; +/** An input for mutations affecting `WebhookEvent` */ +export interface WebhookEventInput { + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Endpoint that accepted this delivery */ + endpointId: string; + /** Failure detail when status = failed */ + error?: string; + /** Provider-supplied delivery/event id used for idempotent dedup */ + externalEventId: string; + id?: string; + /** created_at of the enqueued invocation (partition key companion to invocation_id) */ + invocationCreatedAt?: string; + /** Pending function invocation enqueued for this delivery (NULL until enqueued) */ + invocationId?: string; + /** Parsed delivery payload (parsed only after signature verification over the exact raw bytes) */ + payload?: Record; + /** Provider that produced this delivery (copied from the endpoint at acceptance) */ + provider: string; + /** Signed provider timestamp used for replay-window validation (NULL when the provider supplies none) */ + providerTimestamp?: string; + /** Acceptance lifecycle: accepted, processed, failed */ + status?: string; + updatedAt?: string; } -export interface ResourceUtilizationPatch { - avgMemoryBytes?: string | null; - cpuLimitMillicores?: string | null; - cpuPeakUtilization?: string | null; - cpuRequestHeadroomMillicores?: string | null; - cpuRequestMillicores?: string | null; - date?: string | null; - gbSeconds?: string | null; - kind?: string | null; - maxCpuMillicores?: string | null; - maxMemoryBytes?: string | null; - memoryLimitBytes?: string | null; - memoryPeakUtilization?: string | null; - memoryRequestBytes?: string | null; - memoryRequestHeadroomBytes?: string | null; - namespaceId?: string | null; - replicas?: number | null; - resourceId?: string | null; - runtimeSeconds?: string | null; - sampleCount?: number | null; +/** A filter to be used against `DatabaseFunctionGraphExecution` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseFunctionGraphExecutionFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: DatabaseFunctionGraphExecutionFilter[]; + /** Filter by the object’s `completedAt` field. */ + completedAt?: DatetimeFilter; + /** Filter by the object’s `currentWave` field. */ + currentWave?: IntFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `definitionsCommitId` field. */ + definitionsCommitId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `entityType` field. */ + entityType?: StringFilter; + /** Filter by the object’s `errorCode` field. */ + errorCode?: StringFilter; + /** Filter by the object’s `errorMessage` field. */ + errorMessage?: StringFilter; + /** Filter by the object’s `executionPlan` field. */ + executionPlan?: JSONFilter; + /** Filter by the object’s `graph` relation. */ + graph?: DatabaseFunctionGraphFilter; + /** Filter by the object’s `graphId` field. */ + graphId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `inputPayload` field. */ + inputPayload?: JSONFilter; + /** Filter by the object’s `invocationCreatedAt` field. */ + invocationCreatedAt?: DatetimeFilter; + /** Filter by the object’s `invocationId` field. */ + invocationId?: UUIDFilter; + /** Filter by the object’s `lastProgressAt` field. */ + lastProgressAt?: DatetimeFilter; + /** Filter by the object’s `maxPendingJobs` field. */ + maxPendingJobs?: IntFilter; + /** Filter by the object’s `maxTicks` field. */ + maxTicks?: IntFilter; + /** Filter by the object’s `nodeOutputs` field. */ + nodeOutputs?: JSONFilter; + /** Negates the expression. */ + not?: DatabaseFunctionGraphExecutionFilter; + /** Checks for any expressions in this list. */ + or?: DatabaseFunctionGraphExecutionFilter[]; + /** Filter by the object’s `organizationId` field. */ + organizationId?: UUIDFilter; + /** Filter by the object’s `outputNames` field. */ + outputNames?: StringListFilter; + /** Filter by the object’s `outputNode` field. */ + outputNode?: StringFilter; + /** Filter by the object’s `outputPayload` field. */ + outputPayload?: JSONFilter; + /** Filter by the object’s `outputPort` field. */ + outputPort?: StringFilter; + /** Filter by the object’s `parentExecutionId` field. */ + parentExecutionId?: UUIDFilter; + /** Filter by the object’s `parentInvocationId` field. */ + parentInvocationId?: UUIDFilter; + /** Filter by the object’s `parentNodeName` field. */ + parentNodeName?: StringFilter; + /** Filter by the object’s `principalId` field. */ + principalId?: UUIDFilter; + /** Filter by the object’s `startedAt` field. */ + startedAt?: DatetimeFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `tickCount` field. */ + tickCount?: IntFilter; + /** Filter by the object’s `timeoutAt` field. */ + timeoutAt?: DatetimeFilter; } -export interface UpdateResourceUtilizationInput { - clientMutationId?: string; - id: string; - resourceUtilizationPatch: ResourceUtilizationPatch; +/** A filter to be used against `FunctionDefinition` object types. All fields are combined with a logical ‘and.’ */ +export interface FunctionDefinitionFilter { + /** Filter by the object’s `accessChannels` field. */ + accessChannels?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: FunctionDefinitionFilter[]; + /** Filter by the object’s `anonymousCallable` field. */ + anonymousCallable?: BooleanFilter; + /** Filter by the object’s `category` field. */ + category?: StringFilter; + /** Filter by the object’s `concurrency` field. */ + concurrency?: IntFilter; + /** Filter by the object’s `cpuLimitMillicores` field. */ + cpuLimitMillicores?: BigIntFilter; + /** Filter by the object’s `cpuRequestMillicores` field. */ + cpuRequestMillicores?: BigIntFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `fnCategory` field. */ + fnCategory?: StringFilter; + /** Filter by the object’s `functionApiBindings` relation. */ + functionApiBindings?: FunctionDefinitionToManyFunctionApiBindingFilter; + /** `functionApiBindings` exist. */ + functionApiBindingsExist?: boolean; + /** Filter by the object’s `functionCapabilityBindingsByFunctionId` relation. */ + functionCapabilityBindingsByFunctionId?: FunctionDefinitionToManyFunctionCapabilityBindingFilter; + /** `functionCapabilityBindingsByFunctionId` exist. */ + functionCapabilityBindingsByFunctionIdExist?: boolean; + /** Filter by the object’s `functionColumns` field. */ + functionColumns?: JSONFilter; + /** Filter by the object’s `graph` relation. */ + graph?: DatabaseFunctionGraphFilter; + /** A related `graph` exists. */ + graphExists?: boolean; + /** Filter by the object’s `graphId` field. */ + graphId?: UUIDFilter; + /** Filter by the object’s `icon` field. */ + icon?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `image` field. */ + image?: StringFilter; + /** Filter by the object’s `inputs` field. */ + inputs?: JSONFilter; + /** Filter by the object’s `integrations` field. */ + integrations?: StringListFilter; + /** Filter by the object’s `isPublished` field. */ + isPublished?: BooleanFilter; + /** Filter by the object’s `maxAttempts` field. */ + maxAttempts?: IntFilter; + /** Filter by the object’s `memoryLimitBytes` field. */ + memoryLimitBytes?: BigIntFilter; + /** Filter by the object’s `memoryRequestBytes` field. */ + memoryRequestBytes?: BigIntFilter; + /** Filter by the object’s `moduleTable` field. */ + moduleTable?: StringFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: FunctionDefinitionFilter; + /** Checks for any expressions in this list. */ + or?: FunctionDefinitionFilter[]; + /** Filter by the object’s `outputs` field. */ + outputs?: JSONFilter; + /** Filter by the object’s `payloadArgs` field. */ + payloadArgs?: JSONFilter; + /** Filter by the object’s `priority` field. */ + priority?: IntFilter; + /** Filter by the object’s `props` field. */ + props?: JSONFilter; + /** Filter by the object’s `protected` field. */ + protected?: BooleanFilter; + /** Filter by the object’s `publishedAt` field. */ + publishedAt?: DatetimeFilter; + /** Filter by the object’s `queueName` field. */ + queueName?: StringFilter; + /** Filter by the object’s `requiredBuckets` field. */ + requiredBuckets?: StringListFilter; + /** Filter by the object’s `requiredCapabilities` field. */ + requiredCapabilities?: JSONFilter; + /** 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. */ + runtime?: StringFilter; + /** Filter by the object’s `scaleMax` field. */ + scaleMax?: IntFilter; + /** Filter by the object’s `scaleMin` field. */ + scaleMin?: IntFilter; + /** Filter by the object’s `targetFunction` field. */ + targetFunction?: StringFilter; + /** Filter by the object’s `targetSchema` field. */ + targetSchema?: StringFilter; + /** Filter by the object’s `taskIdentifier` field. */ + taskIdentifier?: StringFilter; + /** Filter by the object’s `timeoutSeconds` field. */ + timeoutSeconds?: IntFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** Filter by the object’s `volatile` field. */ + volatile?: BooleanFilter; + /** Filter by the object’s `webhookEndpoints` relation. */ + webhookEndpoints?: FunctionDefinitionToManyWebhookEndpointFilter; + /** `webhookEndpoints` exist. */ + webhookEndpointsExist?: boolean; } -export interface DeleteResourceUtilizationInput { - clientMutationId?: string; - id: string; +/** A filter to be used against `RepositoryWorkflow` object types. All fields are combined with a logical ‘and.’ */ +export interface RepositoryWorkflowFilter { + /** Checks for all expressions in this list. */ + and?: RepositoryWorkflowFilter[]; + /** Filter by the object’s `buildsByWorkflowId` relation. */ + buildsByWorkflowId?: RepositoryWorkflowToManyBuildFilter; + /** `buildsByWorkflowId` exist. */ + buildsByWorkflowIdExist?: boolean; + /** Filter by the object’s `cancelInProgress` field. */ + cancelInProgress?: BooleanFilter; + /** Filter by the object’s `concurrencyKey` field. */ + concurrencyKey?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `eventType` field. */ + eventType?: StringFilter; + /** Filter by the object’s `graph` relation. */ + graph?: DatabaseFunctionGraphFilter; + /** A related `graph` exists. */ + graphExists?: boolean; + /** Filter by the object’s `graphId` field. */ + graphId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `inputs` field. */ + inputs?: JSONFilter; + /** Filter by the object’s `isEnabled` field. */ + isEnabled?: BooleanFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: RepositoryWorkflowFilter; + /** Checks for any expressions in this list. */ + or?: RepositoryWorkflowFilter[]; + /** Filter by the object’s `refPattern` field. */ + refPattern?: StringFilter; + /** Filter by the object’s `repository` relation. */ + repository?: RepositoryFilter; + /** Filter by the object’s `repositoryId` field. */ + repositoryId?: UUIDFilter; + /** Filter by the object’s `repositoryRequiredChecksByWorkflowId` relation. */ + repositoryRequiredChecksByWorkflowId?: RepositoryWorkflowToManyRepositoryRequiredCheckFilter; + /** `repositoryRequiredChecksByWorkflowId` exist. */ + repositoryRequiredChecksByWorkflowIdExist?: boolean; + /** Filter by the object’s `requiredSecrets` field. */ + requiredSecrets?: StringListFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface CreateResourcesHealthInput { - clientMutationId?: string; - resourcesHealth: { - annotations?: Record; - cpuLimitMillicores?: string; - cpuRequestMillicores?: string; - createdBy?: string; - databaseId: string; - errorCount?: number; - installationId: string; - integrations?: string[]; - kind?: string; - labels?: Record; - lastError?: string; - lastHeartbeatAt?: string; - memoryLimitBytes?: string; - memoryRequestBytes?: string; - name?: string; - namespaceId: string; - realm?: string; - replicas?: number; - requiredConfigs?: ResourceRequirement[]; - requiredSecrets?: ResourceRequirement[]; - resourceDefinitionId: string; - slug?: string; - spec?: Record; - status?: string; - statusDetail?: string; - statusObserved?: Record; - storageClass?: string; - storageSizeBytes?: string; - updatedBy?: string; - }; +/** A filter to be used against `FunctionInvocation` object types. All fields are combined with a logical ‘and.’ */ +export interface FunctionInvocationFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: FunctionInvocationFilter[]; + /** Filter by the object’s `apiBinding` relation. */ + apiBinding?: FunctionApiBindingFilter; + /** A related `apiBinding` exists. */ + apiBindingExists?: boolean; + /** Filter by the object’s `apiBindingId` field. */ + apiBindingId?: UUIDFilter; + /** Filter by the object’s `channel` field. */ + channel?: StringFilter; + /** Filter by the object’s `completedAt` field. */ + completedAt?: DatetimeFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `definitionScope` field. */ + definitionScope?: StringFilter; + /** Filter by the object’s `durationMs` field. */ + durationMs?: IntFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `entityType` field. */ + entityType?: StringFilter; + /** Filter by the object’s `error` field. */ + error?: StringFilter; + /** Filter by the object’s `functionDefinitionId` field. */ + functionDefinitionId?: UUIDFilter; + /** Filter by the object’s `graphExecutionId` field. */ + graphExecutionId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `jobId` field. */ + jobId?: BigIntFilter; + /** Negates the expression. */ + not?: FunctionInvocationFilter; + /** Checks for any expressions in this list. */ + or?: FunctionInvocationFilter[]; + /** Filter by the object’s `organizationId` field. */ + organizationId?: UUIDFilter; + /** Filter by the object’s `parentInvocationId` field. */ + parentInvocationId?: UUIDFilter; + /** Filter by the object’s `payload` field. */ + payload?: JSONFilter; + /** Filter by the object’s `principalId` field. */ + principalId?: UUIDFilter; + /** Filter by the object’s `provenance` field. */ + provenance?: JSONFilter; + /** Filter by the object’s `result` field. */ + result?: JSONFilter; + /** Filter by the object’s `startedAt` field. */ + startedAt?: DatetimeFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `taskIdentifier` field. */ + taskIdentifier?: StringFilter; } -export interface ResourcesHealthPatch { - annotations?: Record | null; - cpuLimitMillicores?: string | null; - cpuRequestMillicores?: string | null; - createdBy?: string | null; - databaseId?: string | null; - errorCount?: number | null; - installationId?: string | null; - integrations?: string[] | null; - kind?: string | null; - labels?: Record | null; - lastError?: string | null; - lastHeartbeatAt?: string | null; - memoryLimitBytes?: string | null; - memoryRequestBytes?: string | null; - name?: string | null; - namespaceId?: string | null; - realm?: string | null; - replicas?: number | null; - requiredConfigs?: ResourceRequirement[] | null; - requiredSecrets?: ResourceRequirement[] | null; - resourceDefinitionId?: string | null; - slug?: string | null; - spec?: Record | null; - status?: string | null; - statusDetail?: string | null; - statusObserved?: Record | null; - storageClass?: string | null; - storageSizeBytes?: string | null; - updatedBy?: string | null; +/** A filter to be used against `FunctionApiBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface FunctionApiBindingFilter { + /** Filter by the object’s `alias` field. */ + alias?: StringFilter; + /** Checks for all expressions in this list. */ + and?: FunctionApiBindingFilter[]; + /** 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 `functionDefinition` relation. */ + functionDefinition?: FunctionDefinitionFilter; + /** Filter by the object’s `functionDefinitionId` field. */ + functionDefinitionId?: UUIDFilter; + /** Filter by the object’s `functionInvocationsByApiBindingId` relation. */ + functionInvocationsByApiBindingId?: FunctionApiBindingToManyFunctionInvocationFilter; + /** `functionInvocationsByApiBindingId` exist. */ + functionInvocationsByApiBindingIdExist?: boolean; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: FunctionApiBindingFilter; + /** Checks for any expressions in this list. */ + or?: FunctionApiBindingFilter[]; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; } -export interface UpdateResourcesHealthInput { - clientMutationId?: string; - id: string; - resourcesHealthPatch: ResourcesHealthPatch; +/** A filter to be used against `FunctionCapabilityBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface FunctionCapabilityBindingFilter { + /** Checks for all expressions in this list. */ + and?: FunctionCapabilityBindingFilter[]; + /** 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 `function` relation. */ + function?: FunctionDefinitionFilter; + /** A related `function` exists. */ + functionExists?: boolean; + /** Filter by the object’s `functionId` field. */ + functionId?: UUIDFilter; + /** Filter by the object’s `graphId` field. */ + graphId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `key` field. */ + key?: StringFilter; + /** Filter by the object’s `lifecycle` field. */ + lifecycle?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Negates the expression. */ + not?: FunctionCapabilityBindingFilter; + /** Checks for any expressions in this list. */ + or?: FunctionCapabilityBindingFilter[]; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; } -export interface DeleteResourcesHealthInput { - clientMutationId?: string; - id: string; +/** A filter to be used against `WebhookEndpoint` object types. All fields are combined with a logical ‘and.’ */ +export interface WebhookEndpointFilter { + /** Filter by the object’s `active` field. */ + active?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: WebhookEndpointFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `functionDefinition` relation. */ + functionDefinition?: FunctionDefinitionFilter; + /** Filter by the object’s `functionDefinitionId` field. */ + functionDefinitionId?: UUIDFilter; + /** Filter by the object’s `host` field. */ + host?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: WebhookEndpointFilter; + /** Checks for any expressions in this list. */ + or?: WebhookEndpointFilter[]; + /** Filter by the object’s `path` field. */ + path?: StringFilter; + /** Filter by the object’s `provider` field. */ + provider?: StringFilter; + /** Filter by the object’s `replayWindowSeconds` field. */ + replayWindowSeconds?: IntFilter; + /** Filter by the object’s `signingSecretName` field. */ + signingSecretName?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** Filter by the object’s `webhookEventsByEndpointId` relation. */ + webhookEventsByEndpointId?: WebhookEndpointToManyWebhookEventFilter; + /** `webhookEventsByEndpointId` exist. */ + webhookEventsByEndpointIdExist?: boolean; } -export interface CreateResourcesRequirementsStateInput { - clientMutationId?: string; - resourcesRequirementsState: { - configHash?: string; - configObjectName?: string; - requirementsHash?: string; - resourceId: string; - secretsHash?: string; - secretsObjectName?: string; - slug?: string; - }; +/** A filter to be used against `FunctionGraphExecution` object types. All fields are combined with a logical ‘and.’ */ +export interface FunctionGraphExecutionFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: FunctionGraphExecutionFilter[]; + /** Filter by the object’s `completedAt` field. */ + completedAt?: DatetimeFilter; + /** Filter by the object’s `currentWave` field. */ + currentWave?: IntFilter; + /** Filter by the object’s `definitionsCommitId` field. */ + definitionsCommitId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `entityType` field. */ + entityType?: StringFilter; + /** Filter by the object’s `errorCode` field. */ + errorCode?: StringFilter; + /** Filter by the object’s `errorMessage` field. */ + errorMessage?: StringFilter; + /** Filter by the object’s `executionPlan` field. */ + executionPlan?: JSONFilter; + /** Filter by the object’s `graph` relation. */ + graph?: FunctionGraphFilter; + /** Filter by the object’s `graphId` field. */ + graphId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `inputPayload` field. */ + inputPayload?: JSONFilter; + /** Filter by the object’s `invocationCreatedAt` field. */ + invocationCreatedAt?: DatetimeFilter; + /** Filter by the object’s `invocationId` field. */ + invocationId?: UUIDFilter; + /** Filter by the object’s `lastProgressAt` field. */ + lastProgressAt?: DatetimeFilter; + /** Filter by the object’s `maxPendingJobs` field. */ + maxPendingJobs?: IntFilter; + /** Filter by the object’s `maxTicks` field. */ + maxTicks?: IntFilter; + /** Filter by the object’s `nodeOutputs` field. */ + nodeOutputs?: JSONFilter; + /** Negates the expression. */ + not?: FunctionGraphExecutionFilter; + /** Checks for any expressions in this list. */ + or?: FunctionGraphExecutionFilter[]; + /** Filter by the object’s `organizationId` field. */ + organizationId?: UUIDFilter; + /** Filter by the object’s `outputNames` field. */ + outputNames?: StringListFilter; + /** Filter by the object’s `outputNode` field. */ + outputNode?: StringFilter; + /** Filter by the object’s `outputPayload` field. */ + outputPayload?: JSONFilter; + /** Filter by the object’s `outputPort` field. */ + outputPort?: StringFilter; + /** Filter by the object’s `parentExecutionId` field. */ + parentExecutionId?: UUIDFilter; + /** Filter by the object’s `parentInvocationId` field. */ + parentInvocationId?: UUIDFilter; + /** Filter by the object’s `parentNodeName` field. */ + parentNodeName?: StringFilter; + /** Filter by the object’s `principalId` field. */ + principalId?: UUIDFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; + /** Filter by the object’s `startedAt` field. */ + startedAt?: DatetimeFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `tickCount` field. */ + tickCount?: IntFilter; + /** Filter by the object’s `timeoutAt` field. */ + timeoutAt?: DatetimeFilter; } -export interface ResourcesRequirementsStatePatch { - configHash?: string | null; - configObjectName?: string | null; - requirementsHash?: string | null; - resourceId?: string | null; - secretsHash?: string | null; - secretsObjectName?: string | null; - slug?: string | null; +/** A filter to be used against `PlatformFunctionDefinition` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformFunctionDefinitionFilter { + /** Filter by the object’s `accessChannels` field. */ + accessChannels?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: PlatformFunctionDefinitionFilter[]; + /** Filter by the object’s `anonymousCallable` field. */ + anonymousCallable?: BooleanFilter; + /** Filter by the object’s `billable` field. */ + billable?: BooleanFilter; + /** Filter by the object’s `category` field. */ + category?: StringFilter; + /** Filter by the object’s `concurrency` field. */ + concurrency?: IntFilter; + /** Filter by the object’s `cpuLimitMillicores` field. */ + cpuLimitMillicores?: BigIntFilter; + /** Filter by the object’s `cpuRequestMillicores` field. */ + cpuRequestMillicores?: BigIntFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `fnCategory` field. */ + fnCategory?: StringFilter; + /** Filter by the object’s `functionColumns` field. */ + functionColumns?: JSONFilter; + /** Filter by the object’s `graph` relation. */ + graph?: FunctionGraphFilter; + /** A related `graph` exists. */ + graphExists?: boolean; + /** Filter by the object’s `graphId` field. */ + graphId?: UUIDFilter; + /** Filter by the object’s `icon` field. */ + icon?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `image` field. */ + image?: StringFilter; + /** Filter by the object’s `inputs` field. */ + inputs?: JSONFilter; + /** Filter by the object’s `integrations` field. */ + integrations?: StringListFilter; + /** Filter by the object’s `isPublished` field. */ + isPublished?: BooleanFilter; + /** Filter by the object’s `maxAttempts` field. */ + maxAttempts?: IntFilter; + /** Filter by the object’s `memoryLimitBytes` field. */ + memoryLimitBytes?: BigIntFilter; + /** Filter by the object’s `memoryRequestBytes` field. */ + memoryRequestBytes?: BigIntFilter; + /** Filter by the object’s `moduleTable` field. */ + moduleTable?: StringFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: PlatformFunctionDefinitionFilter; + /** Checks for any expressions in this list. */ + or?: PlatformFunctionDefinitionFilter[]; + /** Filter by the object’s `outputs` field. */ + outputs?: JSONFilter; + /** Filter by the object’s `payloadArgs` field. */ + payloadArgs?: JSONFilter; + /** Filter by the object’s `platformFunctionApiBindingsByFunctionDefinitionId` relation. */ + platformFunctionApiBindingsByFunctionDefinitionId?: PlatformFunctionDefinitionToManyPlatformFunctionApiBindingFilter; + /** `platformFunctionApiBindingsByFunctionDefinitionId` exist. */ + platformFunctionApiBindingsByFunctionDefinitionIdExist?: boolean; + /** Filter by the object’s `platformFunctionCapabilityBindingsByFunctionId` relation. */ + platformFunctionCapabilityBindingsByFunctionId?: PlatformFunctionDefinitionToManyPlatformFunctionCapabilityBindingFilter; + /** `platformFunctionCapabilityBindingsByFunctionId` exist. */ + platformFunctionCapabilityBindingsByFunctionIdExist?: boolean; + /** Filter by the object’s `platformWebhookEndpointsByFunctionDefinitionId` relation. */ + platformWebhookEndpointsByFunctionDefinitionId?: PlatformFunctionDefinitionToManyPlatformWebhookEndpointFilter; + /** `platformWebhookEndpointsByFunctionDefinitionId` exist. */ + platformWebhookEndpointsByFunctionDefinitionIdExist?: boolean; + /** Filter by the object’s `priority` field. */ + priority?: IntFilter; + /** Filter by the object’s `props` field. */ + props?: JSONFilter; + /** Filter by the object’s `protected` field. */ + protected?: BooleanFilter; + /** Filter by the object’s `publishedAt` field. */ + publishedAt?: DatetimeFilter; + /** Filter by the object’s `queueName` field. */ + queueName?: StringFilter; + /** Filter by the object’s `requiredBuckets` field. */ + requiredBuckets?: StringListFilter; + /** Filter by the object’s `requiredCapabilities` field. */ + requiredCapabilities?: JSONFilter; + /** 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. */ + runtime?: StringFilter; + /** Filter by the object’s `scaleMax` field. */ + scaleMax?: IntFilter; + /** Filter by the object’s `scaleMin` field. */ + scaleMin?: IntFilter; + /** Filter by the object’s `system` field. */ + system?: BooleanFilter; + /** Filter by the object’s `targetFunction` field. */ + targetFunction?: StringFilter; + /** Filter by the object’s `targetSchema` field. */ + targetSchema?: StringFilter; + /** Filter by the object’s `taskIdentifier` field. */ + taskIdentifier?: StringFilter; + /** Filter by the object’s `timeoutSeconds` field. */ + timeoutSeconds?: IntFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** Filter by the object’s `volatile` field. */ + volatile?: BooleanFilter; } -export interface UpdateResourcesRequirementsStateInput { - clientMutationId?: string; - id: string; - resourcesRequirementsStatePatch: ResourcesRequirementsStatePatch; +/** A filter to be used against `PlatformRepositoryWorkflow` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformRepositoryWorkflowFilter { + /** Checks for all expressions in this list. */ + and?: PlatformRepositoryWorkflowFilter[]; + /** Filter by the object’s `cancelInProgress` field. */ + cancelInProgress?: BooleanFilter; + /** Filter by the object’s `concurrencyKey` field. */ + concurrencyKey?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `eventType` field. */ + eventType?: StringFilter; + /** Filter by the object’s `graph` relation. */ + graph?: FunctionGraphFilter; + /** A related `graph` exists. */ + graphExists?: boolean; + /** Filter by the object’s `graphId` field. */ + graphId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `inputs` field. */ + inputs?: JSONFilter; + /** Filter by the object’s `isEnabled` field. */ + isEnabled?: BooleanFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: PlatformRepositoryWorkflowFilter; + /** Checks for any expressions in this list. */ + or?: PlatformRepositoryWorkflowFilter[]; + /** Filter by the object’s `platformBuildsByWorkflowId` relation. */ + platformBuildsByWorkflowId?: PlatformRepositoryWorkflowToManyPlatformBuildFilter; + /** `platformBuildsByWorkflowId` exist. */ + platformBuildsByWorkflowIdExist?: boolean; + /** Filter by the object’s `platformRepositoryRequiredChecksByWorkflowId` relation. */ + platformRepositoryRequiredChecksByWorkflowId?: PlatformRepositoryWorkflowToManyPlatformRepositoryRequiredCheckFilter; + /** `platformRepositoryRequiredChecksByWorkflowId` exist. */ + platformRepositoryRequiredChecksByWorkflowIdExist?: boolean; + /** Filter by the object’s `refPattern` field. */ + refPattern?: StringFilter; + /** Filter by the object’s `repository` relation. */ + repository?: PlatformRepositoryFilter; + /** Filter by the object’s `repositoryId` field. */ + repositoryId?: UUIDFilter; + /** Filter by the object’s `requiredSecrets` field. */ + requiredSecrets?: StringListFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface DeleteResourcesRequirementsStateInput { - clientMutationId?: string; - id: string; +/** A filter to be used against `ImageGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface ImageGrantFilter { + /** Filter by the object’s `actions` field. */ + actions?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: ImageGrantFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; + /** Filter by the object’s `grantedBy` field. */ + grantedBy?: UUIDFilter; + /** Filter by the object’s `granteeKey` field. */ + granteeKey?: UUIDFilter; + /** Filter by the object’s `granteeScope` field. */ + granteeScope?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `image` relation. */ + image?: ImageFilter; + /** Filter by the object’s `imageId` field. */ + imageId?: UUIDFilter; + /** Negates the expression. */ + not?: ImageGrantFilter; + /** Checks for any expressions in this list. */ + or?: ImageGrantFilter[]; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface CreateResourcesResolvedRequirementInput { - clientMutationId?: string; - resourcesResolvedRequirement: { - atomId: string; - configObjectName?: string; - name?: string; - namespaceId: string; - present?: boolean; - realm?: string; - required?: boolean; - requirementKind?: string; - resourceId: string; - secretsObjectName?: string; - slug?: string; - }; +/** A filter to be used against `BuilderBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface BuilderBindingFilter { + /** Checks for all expressions in this list. */ + and?: BuilderBindingFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `installationId` field. */ + installationId?: UUIDFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: BuilderBindingFilter; + /** Filter by the object’s `observedHost` field. */ + observedHost?: StringFilter; + /** Checks for any expressions in this list. */ + or?: BuilderBindingFilter[]; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface ResourcesResolvedRequirementPatch { - atomId?: string | null; - configObjectName?: string | null; - name?: string | null; - namespaceId?: string | null; - present?: boolean | null; - realm?: string | null; - required?: boolean | null; - requirementKind?: string | null; - resourceId?: string | null; - secretsObjectName?: string | null; - slug?: string | null; +/** A filter to be used against `FunctionDeployment` object types. All fields are combined with a logical ‘and.’ */ +export interface FunctionDeploymentFilter { + /** Checks for all expressions in this list. */ + and?: FunctionDeploymentFilter[]; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Filter by the object’s `concurrency` field. */ + concurrency?: IntFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `errorCount` field. */ + errorCount?: IntFilter; + /** Filter by the object’s `handlerName` field. */ + handlerName?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `image` field. */ + image?: StringFilter; + /** Filter by the object’s `imageVersion` field. */ + imageVersion?: StringFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `lastErrorAt` field. */ + lastErrorAt?: DatetimeFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + 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. */ + revision?: IntFilter; + /** Filter by the object’s `scaleMax` field. */ + scaleMax?: IntFilter; + /** Filter by the object’s `scaleMin` field. */ + scaleMin?: IntFilter; + /** Filter by the object’s `serviceName` field. */ + serviceName?: StringFilter; + /** Filter by the object’s `serviceUrl` field. */ + serviceUrl?: StringFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `timeoutSeconds` field. */ + timeoutSeconds?: IntFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface UpdateResourcesResolvedRequirementInput { - clientMutationId?: string; - id: string; - resourcesResolvedRequirementPatch: ResourcesResolvedRequirementPatch; +/** A filter to be used against `RegistryBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface RegistryBindingFilter { + /** Checks for all expressions in this list. */ + and?: RegistryBindingFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: RegistryBindingFilter; + /** Filter by the object’s `observedCredentialVersion` field. */ + observedCredentialVersion?: StringFilter; + /** Checks for any expressions in this list. */ + or?: RegistryBindingFilter[]; + /** Filter by the object’s `pullSecretName` field. */ + pullSecretName?: StringFilter; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; + /** Filter by the object’s `registry` relation. */ + registry?: RegistryFilter; + /** Filter by the object’s `registryHost` field. */ + registryHost?: StringFilter; + /** Filter by the object’s `registryId` field. */ + registryId?: UUIDFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface DeleteResourcesResolvedRequirementInput { - clientMutationId?: string; - id: string; +/** A filter to be used against `ResourceDefinition` object types. All fields are combined with a logical ‘and.’ */ +export interface ResourceDefinitionFilter { + /** Checks for all expressions in this list. */ + and?: ResourceDefinitionFilter[]; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `defaultSpec` field. */ + defaultSpec?: JSONFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `integrations` field. */ + integrations?: StringListFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: ResourceDefinitionFilter; + /** Checks for any expressions in this list. */ + or?: ResourceDefinitionFilter[]; + /** Filter by the object’s `paramsSchema` field. */ + paramsSchema?: JSONFilter; + /** Filter by the object’s `resources` relation. */ + resources?: ResourceDefinitionToManyResourceFilter; + /** `resources` exist. */ + resourcesExist?: boolean; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `stepUpMinAge` field. */ + stepUpMinAge?: IntervalFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface CreateWebhookEndpointInput { - clientMutationId?: string; - webhookEndpoint: { - active?: boolean; - createdBy?: string; - databaseId: string; - functionDefinitionId: string; - host: string; - namespaceId: string; - path: string; - provider?: string; - replayWindowSeconds?: number; - signingSecretName: string; - updatedBy?: string; - }; +/** A filter to be used against `ResourceInstallation` object types. All fields are combined with a logical ‘and.’ */ +export interface ResourceInstallationFilter { + /** Checks for all expressions in this list. */ + and?: ResourceInstallationFilter[]; + /** Filter by the object’s `commitId` field. */ + commitId?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: ResourceInstallationFilter; + /** Checks for any expressions in this list. */ + or?: ResourceInstallationFilter[]; + /** Filter by the object’s `params` field. */ + params?: JSONFilter; + /** Filter by the object’s `registriesByInstallationId` relation. */ + registriesByInstallationId?: ResourceInstallationToManyRegistryFilter; + /** `registriesByInstallationId` exist. */ + registriesByInstallationIdExist?: boolean; + /** Filter by the object’s `resourcesByInstallationId` relation. */ + resourcesByInstallationId?: ResourceInstallationToManyResourceFilter; + /** `resourcesByInstallationId` exist. */ + resourcesByInstallationIdExist?: boolean; + /** Filter by the object’s `revision` field. */ + revision?: IntFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `storeId` field. */ + storeId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface WebhookEndpointPatch { - active?: boolean | null; - createdBy?: string | null; - databaseId?: string | null; - functionDefinitionId?: string | null; - host?: string | null; - namespaceId?: string | null; - path?: string | null; - provider?: string | null; - replayWindowSeconds?: number | null; - signingSecretName?: string | null; - updatedBy?: string | null; +/** A filter to be used against `Resource` object types. All fields are combined with a logical ‘and.’ */ +export interface ResourceFilter { + /** Checks for all expressions in this list. */ + and?: ResourceFilter[]; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Filter by the object’s `cpuLimitMillicores` field. */ + cpuLimitMillicores?: BigIntFilter; + /** Filter by the object’s `cpuRequestMillicores` field. */ + cpuRequestMillicores?: BigIntFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `errorCount` field. */ + errorCount?: IntFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `imageRef` field. */ + imageRef?: StringFilter; + /** Filter by the object’s `installation` relation. */ + installation?: ResourceInstallationFilter; + /** A related `installation` exists. */ + installationExists?: boolean; + /** Filter by the object’s `installationId` field. */ + installationId?: UUIDFilter; + /** Filter by the object’s `integrations` field. */ + integrations?: StringListFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `lastHeartbeatAt` field. */ + lastHeartbeatAt?: DatetimeFilter; + /** Filter by the object’s `memoryLimitBytes` field. */ + memoryLimitBytes?: BigIntFilter; + /** Filter by the object’s `memoryRequestBytes` field. */ + memoryRequestBytes?: BigIntFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: ResourceFilter; + /** Checks for any expressions in this list. */ + or?: ResourceFilter[]; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; + /** Filter by the object’s `replicas` field. */ + replicas?: IntFilter; + /** Filter by the object’s `resourceDefinition` relation. */ + resourceDefinition?: ResourceDefinitionFilter; + /** A related `resourceDefinition` exists. */ + resourceDefinitionExists?: boolean; + /** Filter by the object’s `resourceDefinitionId` field. */ + resourceDefinitionId?: UUIDFilter; + /** Filter by the object’s `resourceStatusChecks` relation. */ + resourceStatusChecks?: ResourceToManyResourceStatusCheckFilter; + /** `resourceStatusChecks` exist. */ + resourceStatusChecksExist?: boolean; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `spec` field. */ + spec?: JSONFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `statusObserved` field. */ + statusObserved?: JSONFilter; + /** Filter by the object’s `storageClass` field. */ + storageClass?: StringFilter; + /** Filter by the object’s `storageSizeBytes` field. */ + storageSizeBytes?: BigIntFilter; + /** Filter by the object’s `storageTotalBytes` field. */ + storageTotalBytes?: BigIntFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface UpdateWebhookEndpointInput { - clientMutationId?: string; - id: string; - webhookEndpointPatch: WebhookEndpointPatch; +/** A filter to be used against `PlatformFunctionInvocation` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformFunctionInvocationFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: PlatformFunctionInvocationFilter[]; + /** Filter by the object’s `apiBinding` relation. */ + apiBinding?: PlatformFunctionApiBindingFilter; + /** A related `apiBinding` exists. */ + apiBindingExists?: boolean; + /** Filter by the object’s `apiBindingId` field. */ + apiBindingId?: UUIDFilter; + /** Filter by the object’s `channel` field. */ + channel?: StringFilter; + /** Filter by the object’s `completedAt` field. */ + completedAt?: DatetimeFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `definitionScope` field. */ + definitionScope?: StringFilter; + /** Filter by the object’s `durationMs` field. */ + durationMs?: IntFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `entityType` field. */ + entityType?: StringFilter; + /** Filter by the object’s `error` field. */ + error?: StringFilter; + /** Filter by the object’s `functionDefinitionId` field. */ + functionDefinitionId?: UUIDFilter; + /** Filter by the object’s `graphExecutionId` field. */ + graphExecutionId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `jobId` field. */ + jobId?: BigIntFilter; + /** Negates the expression. */ + not?: PlatformFunctionInvocationFilter; + /** Checks for any expressions in this list. */ + or?: PlatformFunctionInvocationFilter[]; + /** Filter by the object’s `organizationId` field. */ + organizationId?: UUIDFilter; + /** Filter by the object’s `parentInvocationId` field. */ + parentInvocationId?: UUIDFilter; + /** Filter by the object’s `payload` field. */ + payload?: JSONFilter; + /** Filter by the object’s `principalId` field. */ + principalId?: UUIDFilter; + /** Filter by the object’s `provenance` field. */ + provenance?: JSONFilter; + /** Filter by the object’s `result` field. */ + result?: JSONFilter; + /** Filter by the object’s `startedAt` field. */ + startedAt?: DatetimeFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `taskIdentifier` field. */ + taskIdentifier?: StringFilter; } -export interface DeleteWebhookEndpointInput { - clientMutationId?: string; - id: string; +/** A filter to be used against `PlatformFunctionApiBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformFunctionApiBindingFilter { + /** Filter by the object’s `alias` field. */ + alias?: StringFilter; + /** Checks for all expressions in this list. */ + and?: PlatformFunctionApiBindingFilter[]; + /** 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 `functionDefinition` relation. */ + functionDefinition?: PlatformFunctionDefinitionFilter; + /** Filter by the object’s `functionDefinitionId` field. */ + functionDefinitionId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformFunctionApiBindingFilter; + /** Checks for any expressions in this list. */ + or?: PlatformFunctionApiBindingFilter[]; + /** Filter by the object’s `platformFunctionInvocationsByApiBindingId` relation. */ + platformFunctionInvocationsByApiBindingId?: PlatformFunctionApiBindingToManyPlatformFunctionInvocationFilter; + /** `platformFunctionInvocationsByApiBindingId` exist. */ + platformFunctionInvocationsByApiBindingIdExist?: boolean; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; } -export interface CreateWebhookEventInput { - clientMutationId?: string; - webhookEvent: { - databaseId: string; - endpointId: string; - error?: string; - externalEventId: string; - invocationCreatedAt?: string; - invocationId?: string; - payload?: Record; - provider: string; - providerTimestamp?: string; - status?: string; - }; +/** A filter to be used against `PlatformFunctionCapabilityBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformFunctionCapabilityBindingFilter { + /** Checks for all expressions in this list. */ + and?: PlatformFunctionCapabilityBindingFilter[]; + /** Filter by the object’s `bucketId` field. */ + bucketId?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `function` relation. */ + function?: PlatformFunctionDefinitionFilter; + /** A related `function` exists. */ + functionExists?: boolean; + /** Filter by the object’s `functionId` field. */ + functionId?: UUIDFilter; + /** Filter by the object’s `graphId` field. */ + graphId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `key` field. */ + key?: StringFilter; + /** Filter by the object’s `lifecycle` field. */ + lifecycle?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Negates the expression. */ + not?: PlatformFunctionCapabilityBindingFilter; + /** Checks for any expressions in this list. */ + or?: PlatformFunctionCapabilityBindingFilter[]; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; } -export interface WebhookEventPatch { - databaseId?: string | null; - endpointId?: string | null; - error?: string | null; - externalEventId?: string | null; - invocationCreatedAt?: string | null; - invocationId?: string | null; - payload?: Record | null; - provider?: string | null; - providerTimestamp?: string | null; - status?: string | null; +/** A filter to be used against `PlatformWebhookEndpoint` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformWebhookEndpointFilter { + /** Filter by the object’s `active` field. */ + active?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: PlatformWebhookEndpointFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `functionDefinition` relation. */ + functionDefinition?: PlatformFunctionDefinitionFilter; + /** Filter by the object’s `functionDefinitionId` field. */ + functionDefinitionId?: UUIDFilter; + /** Filter by the object’s `host` field. */ + host?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: PlatformNamespaceFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformWebhookEndpointFilter; + /** Checks for any expressions in this list. */ + or?: PlatformWebhookEndpointFilter[]; + /** Filter by the object’s `path` field. */ + path?: StringFilter; + /** Filter by the object’s `platformWebhookEventsByEndpointId` relation. */ + platformWebhookEventsByEndpointId?: PlatformWebhookEndpointToManyPlatformWebhookEventFilter; + /** `platformWebhookEventsByEndpointId` exist. */ + platformWebhookEventsByEndpointIdExist?: boolean; + /** Filter by the object’s `provider` field. */ + provider?: StringFilter; + /** Filter by the object’s `replayWindowSeconds` field. */ + replayWindowSeconds?: IntFilter; + /** Filter by the object’s `signingSecretName` field. */ + signingSecretName?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface UpdateWebhookEventInput { - clientMutationId?: string; - id: string; - webhookEventPatch: WebhookEventPatch; +/** A filter to be used against `PlatformImageGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformImageGrantFilter { + /** Filter by the object’s `actions` field. */ + actions?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: PlatformImageGrantFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; + /** Filter by the object’s `grantedBy` field. */ + grantedBy?: UUIDFilter; + /** Filter by the object’s `granteeKey` field. */ + granteeKey?: UUIDFilter; + /** Filter by the object’s `granteeScope` field. */ + granteeScope?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `image` relation. */ + image?: PlatformImageFilter; + /** Filter by the object’s `imageId` field. */ + imageId?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformImageGrantFilter; + /** Checks for any expressions in this list. */ + or?: PlatformImageGrantFilter[]; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface DeleteWebhookEventInput { - clientMutationId?: string; - id: string; +/** A filter to be used against `PlatformBuilderBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformBuilderBindingFilter { + /** Checks for all expressions in this list. */ + and?: PlatformBuilderBindingFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `installationId` field. */ + installationId?: UUIDFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: PlatformNamespaceFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformBuilderBindingFilter; + /** Filter by the object’s `observedHost` field. */ + observedHost?: StringFilter; + /** Checks for any expressions in this list. */ + or?: PlatformBuilderBindingFilter[]; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} +/** A filter to be used against `PlatformFunctionDeployment` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformFunctionDeploymentFilter { + /** Checks for all expressions in this list. */ + and?: PlatformFunctionDeploymentFilter[]; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Filter by the object’s `concurrency` field. */ + concurrency?: IntFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `errorCount` field. */ + errorCount?: IntFilter; + /** Filter by the object’s `handlerName` field. */ + handlerName?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `image` field. */ + image?: StringFilter; + /** Filter by the object’s `imageVersion` field. */ + imageVersion?: StringFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `lastErrorAt` field. */ + lastErrorAt?: DatetimeFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: PlatformNamespaceFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + 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. */ + revision?: IntFilter; + /** Filter by the object’s `scaleMax` field. */ + scaleMax?: IntFilter; + /** Filter by the object’s `scaleMin` field. */ + scaleMin?: IntFilter; + /** Filter by the object’s `serviceName` field. */ + serviceName?: StringFilter; + /** Filter by the object’s `serviceUrl` field. */ + serviceUrl?: StringFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `timeoutSeconds` field. */ + timeoutSeconds?: IntFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -// ============ Connection Fields Map ============ -export const connectionFieldsMap = { - FunctionApiBinding: { - functionInvocationsByApiBindingId: 'FunctionInvocation', - }, - FunctionDefinition: { - functionApiBindings: 'FunctionApiBinding', - functionCapabilityBindingsByFunctionId: 'FunctionCapabilityBinding', - webhookEndpoints: 'WebhookEndpoint', - }, - FunctionGraph: { - functionGraphExecutionsByGraphId: 'FunctionGraphExecution', - platformFunctionDefinitionsByGraphId: 'PlatformFunctionDefinition', - }, - Namespace: { - functionDeployments: 'FunctionDeployment', - resourceDefinitions: 'ResourceDefinition', - resourceInstallations: 'ResourceInstallation', - resources: 'Resource', - webhookEndpoints: 'WebhookEndpoint', - }, - PlatformFunctionApiBinding: { - platformFunctionInvocationsByApiBindingId: 'PlatformFunctionInvocation', - }, - PlatformFunctionDefinition: { - platformFunctionApiBindingsByFunctionDefinitionId: 'PlatformFunctionApiBinding', - platformFunctionCapabilityBindingsByFunctionId: 'PlatformFunctionCapabilityBinding', - platformWebhookEndpointsByFunctionDefinitionId: 'PlatformWebhookEndpoint', - }, - PlatformNamespace: { - platformFunctionDeploymentsByNamespaceId: 'PlatformFunctionDeployment', - platformResourceDefinitionsByNamespaceId: 'PlatformResourceDefinition', - platformResourceInstallationsByNamespaceId: 'PlatformResourceInstallation', - platformResourcesByNamespaceId: 'PlatformResource', - platformWebhookEndpointsByNamespaceId: 'PlatformWebhookEndpoint', - }, - PlatformResource: { - platformResourceStatusChecksByResourceId: 'PlatformResourceStatusCheck', - }, - PlatformResourceDefinition: { - platformResourcesByResourceDefinitionId: 'PlatformResource', - }, - PlatformResourceInstallation: { - platformResourcesByInstallationId: 'PlatformResource', - }, - PlatformWebhookEndpoint: { - platformWebhookEventsByEndpointId: 'PlatformWebhookEvent', - }, - Resource: { - resourceStatusChecks: 'ResourceStatusCheck', - }, - ResourceDefinition: { - resources: 'Resource', - }, - ResourceInstallation: { - resourcesByInstallationId: 'Resource', - }, - WebhookEndpoint: { - webhookEventsByEndpointId: 'WebhookEvent', - }, -} as Record>; -// ============ Custom Input Types (from schema) ============ -export interface AddEdgeInput { - clientMutationId?: string; - context?: string; - dstNode?: string; - dstPort?: string; - graphName?: string; - rootHash?: string; - scopeId?: string; - srcNode?: string; - srcPort?: string; +/** A filter to be used against `PlatformRegistryBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformRegistryBindingFilter { + /** Checks for all expressions in this list. */ + and?: PlatformRegistryBindingFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: PlatformNamespaceFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformRegistryBindingFilter; + /** Filter by the object’s `observedCredentialVersion` field. */ + observedCredentialVersion?: StringFilter; + /** Checks for any expressions in this list. */ + or?: PlatformRegistryBindingFilter[]; + /** Filter by the object’s `pullSecretName` field. */ + pullSecretName?: StringFilter; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; + /** Filter by the object’s `registry` relation. */ + registry?: PlatformRegistryFilter; + /** Filter by the object’s `registryHost` field. */ + registryHost?: StringFilter; + /** Filter by the object’s `registryId` field. */ + registryId?: UUIDFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface AddEdgeAndSaveInput { - clientMutationId?: string; - dstNode?: string; - dstPort?: string; - graphId?: string; - message?: string; - srcNode?: string; - srcPort?: string; +/** A filter to be used against `PlatformResourceDefinition` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformResourceDefinitionFilter { + /** Checks for all expressions in this list. */ + and?: PlatformResourceDefinitionFilter[]; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `defaultSpec` field. */ + defaultSpec?: JSONFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `integrations` field. */ + integrations?: StringListFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: PlatformNamespaceFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformResourceDefinitionFilter; + /** Checks for any expressions in this list. */ + or?: PlatformResourceDefinitionFilter[]; + /** Filter by the object’s `paramsSchema` field. */ + paramsSchema?: JSONFilter; + /** Filter by the object’s `platformResourcesByResourceDefinitionId` relation. */ + platformResourcesByResourceDefinitionId?: PlatformResourceDefinitionToManyPlatformResourceFilter; + /** `platformResourcesByResourceDefinitionId` exist. */ + platformResourcesByResourceDefinitionIdExist?: boolean; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `stepUpMinAge` field. */ + stepUpMinAge?: IntervalFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface AddNodeInput { - clientMutationId?: string; - context?: string; - graphName?: string; - meta?: Record; - nodeName?: string; - nodeType?: string; - props?: Record; - rootHash?: string; - scopeId?: string; +/** A filter to be used against `PlatformResourceInstallation` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformResourceInstallationFilter { + /** Checks for all expressions in this list. */ + and?: PlatformResourceInstallationFilter[]; + /** Filter by the object’s `commitId` field. */ + commitId?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: PlatformNamespaceFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformResourceInstallationFilter; + /** Checks for any expressions in this list. */ + or?: PlatformResourceInstallationFilter[]; + /** Filter by the object’s `params` field. */ + params?: JSONFilter; + /** Filter by the object’s `platformRegistriesByInstallationId` relation. */ + platformRegistriesByInstallationId?: PlatformResourceInstallationToManyPlatformRegistryFilter; + /** `platformRegistriesByInstallationId` exist. */ + platformRegistriesByInstallationIdExist?: boolean; + /** Filter by the object’s `platformResourcesByInstallationId` relation. */ + platformResourcesByInstallationId?: PlatformResourceInstallationToManyPlatformResourceFilter; + /** `platformResourcesByInstallationId` exist. */ + platformResourcesByInstallationIdExist?: boolean; + /** Filter by the object’s `revision` field. */ + revision?: IntFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `storeId` field. */ + storeId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface AddNodeAndSaveInput { - clientMutationId?: string; - graphId?: string; - message?: string; - meta?: Record; - nodeName?: string; - nodeType?: string; - props?: Record; +/** A filter to be used against `PlatformResource` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformResourceFilter { + /** Checks for all expressions in this list. */ + and?: PlatformResourceFilter[]; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Filter by the object’s `cpuLimitMillicores` field. */ + cpuLimitMillicores?: BigIntFilter; + /** Filter by the object’s `cpuRequestMillicores` field. */ + cpuRequestMillicores?: BigIntFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `errorCount` field. */ + errorCount?: IntFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `imageRef` field. */ + imageRef?: StringFilter; + /** Filter by the object’s `installation` relation. */ + installation?: PlatformResourceInstallationFilter; + /** A related `installation` exists. */ + installationExists?: boolean; + /** Filter by the object’s `installationId` field. */ + installationId?: UUIDFilter; + /** Filter by the object’s `integrations` field. */ + integrations?: StringListFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `lastHeartbeatAt` field. */ + lastHeartbeatAt?: DatetimeFilter; + /** Filter by the object’s `memoryLimitBytes` field. */ + memoryLimitBytes?: BigIntFilter; + /** Filter by the object’s `memoryRequestBytes` field. */ + memoryRequestBytes?: BigIntFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: PlatformNamespaceFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformResourceFilter; + /** Checks for any expressions in this list. */ + or?: PlatformResourceFilter[]; + /** Filter by the object’s `platformResourceStatusChecksByResourceId` relation. */ + platformResourceStatusChecksByResourceId?: PlatformResourceToManyPlatformResourceStatusCheckFilter; + /** `platformResourceStatusChecksByResourceId` exist. */ + platformResourceStatusChecksByResourceIdExist?: boolean; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; + /** Filter by the object’s `replicas` field. */ + replicas?: IntFilter; + /** Filter by the object’s `resourceDefinition` relation. */ + resourceDefinition?: PlatformResourceDefinitionFilter; + /** A related `resourceDefinition` exists. */ + resourceDefinitionExists?: boolean; + /** Filter by the object’s `resourceDefinitionId` field. */ + resourceDefinitionId?: UUIDFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `spec` field. */ + spec?: JSONFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `statusObserved` field. */ + statusObserved?: JSONFilter; + /** Filter by the object’s `storageClass` field. */ + storageClass?: StringFilter; + /** Filter by the object’s `storageSizeBytes` field. */ + storageSizeBytes?: BigIntFilter; + /** Filter by the object’s `storageTotalBytes` field. */ + storageTotalBytes?: BigIntFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface CopyGraphInput { - clientMutationId?: string; - graphId?: string; - name?: string; - scopeId?: string; +/** A filter to be used against `PlatformProposalReaction` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformProposalReactionFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: PlatformProposalReactionFilter[]; + /** Filter by the object’s `comment` relation. */ + comment?: PlatformProposalCommentFilter; + /** A related `comment` exists. */ + commentExists?: boolean; + /** Filter by the object’s `commentId` field. */ + commentId?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `emoji` field. */ + emoji?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformProposalReactionFilter; + /** Checks for any expressions in this list. */ + or?: PlatformProposalReactionFilter[]; + /** Filter by the object’s `proposal` relation. */ + proposal?: PlatformProposalFilter; + /** Filter by the object’s `proposalId` field. */ + proposalId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface ImportDefinitionsInput { - clientMutationId?: string; - contexts?: string[]; - graphId?: string; - sourceCommitId?: string; - sourceScopeId?: string; +/** Similarity metric for vector search */ +export type VectorMetric = 'COSINE' | 'IP' | 'L2'; +/** A filter to be used against `PlatformProposal` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformProposalFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: PlatformProposalFilter[]; + /** Filter by the object’s `body` field. */ + body?: StringTrgmFilter; + /** Filter by the object’s `childPlatformProposals` relation. */ + childPlatformProposals?: PlatformProposalToManyPlatformProposalFilter; + /** `childPlatformProposals` exist. */ + childPlatformProposalsExist?: boolean; + /** Filter by the object’s `closedReason` field. */ + closedReason?: StringTrgmFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `decidedAt` field. */ + decidedAt?: DatetimeFilter; + /** Filter by the object’s `dueAt` field. */ + dueAt?: DatetimeFilter; + /** Filter by the object’s `embedding` field. */ + embedding?: VectorFilter; + /** Filter by the object’s `embeddingUpdatedAt` field. */ + embeddingUpdatedAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringTrgmFilter; + /** Filter by the object’s `labels` field. */ + labels?: StringListFilter; + /** Filter by the object’s `mergeCommit` field. */ + mergeCommit?: StringTrgmFilter; + /** Filter by the object’s `mergeMethod` field. */ + mergeMethod?: StringTrgmFilter; + /** Filter by the object’s `mergeRequestedAt` field. */ + mergeRequestedAt?: DatetimeFilter; + /** Filter by the object’s `mergedAt` field. */ + mergedAt?: DatetimeFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Negates the expression. */ + not?: PlatformProposalFilter; + /** Checks for any expressions in this list. */ + or?: PlatformProposalFilter[]; + /** Filter by the object’s `parent` relation. */ + parent?: PlatformProposalFilter; + /** A related `parent` exists. */ + parentExists?: boolean; + /** Filter by the object’s `parentId` field. */ + parentId?: UUIDFilter; + /** Filter by the object’s `platformBuildsByProposalId` relation. */ + platformBuildsByProposalId?: PlatformProposalToManyPlatformBuildFilter; + /** `platformBuildsByProposalId` exist. */ + platformBuildsByProposalIdExist?: boolean; + /** Filter by the object’s `platformProposalCommentsByProposalId` relation. */ + platformProposalCommentsByProposalId?: PlatformProposalToManyPlatformProposalCommentFilter; + /** `platformProposalCommentsByProposalId` exist. */ + platformProposalCommentsByProposalIdExist?: boolean; + /** Filter by the object’s `platformProposalFileViewsByProposalId` relation. */ + platformProposalFileViewsByProposalId?: PlatformProposalToManyPlatformProposalFileViewFilter; + /** `platformProposalFileViewsByProposalId` exist. */ + platformProposalFileViewsByProposalIdExist?: boolean; + /** Filter by the object’s `platformProposalReactionsByProposalId` relation. */ + platformProposalReactionsByProposalId?: PlatformProposalToManyPlatformProposalReactionFilter; + /** `platformProposalReactionsByProposalId` exist. */ + platformProposalReactionsByProposalIdExist?: boolean; + /** Filter by the object’s `platformProposalReviewsByProposalId` relation. */ + platformProposalReviewsByProposalId?: PlatformProposalToManyPlatformProposalReviewFilter; + /** `platformProposalReviewsByProposalId` exist. */ + platformProposalReviewsByProposalIdExist?: boolean; + /** Filter by the object’s `platformProposalsChunksByPlatformProposalsId` relation. */ + platformProposalsChunksByPlatformProposalsId?: PlatformProposalToManyPlatformProposalsChunkFilter; + /** `platformProposalsChunksByPlatformProposalsId` exist. */ + platformProposalsChunksByPlatformProposalsIdExist?: boolean; + /** Filter by the object’s `priority` field. */ + priority?: BigFloatFilter; + /** Filter by the object’s `repository` relation. */ + repository?: PlatformRepositoryFilter; + /** Filter by the object’s `repositoryId` field. */ + repositoryId?: UUIDFilter; + /** Filter by the object’s `resolution` field. */ + resolution?: StringTrgmFilter; + /** Filter by the object’s `search` field. */ + search?: FullTextFilter; + /** Filter by the object’s `sourceRef` field. */ + sourceRef?: StringTrgmFilter; + /** Filter by the object’s `status` field. */ + status?: StringTrgmFilter; + /** Filter by the object’s `targetRef` field. */ + targetRef?: StringTrgmFilter; + /** Filter by the object’s `title` field. */ + title?: StringTrgmFilter; + /** TRGM search on the `body` column. */ + trgmBody?: TrgmSearchInput; + /** TRGM search on the `closed_reason` column. */ + trgmClosedReason?: TrgmSearchInput; + /** TRGM search on the `kind` column. */ + trgmKind?: TrgmSearchInput; + /** TRGM search on the `merge_commit` column. */ + trgmMergeCommit?: TrgmSearchInput; + /** TRGM search on the `merge_method` column. */ + trgmMergeMethod?: TrgmSearchInput; + /** TRGM search on the `resolution` column. */ + trgmResolution?: TrgmSearchInput; + /** TRGM search on the `source_ref` column. */ + trgmSourceRef?: TrgmSearchInput; + /** TRGM search on the `status` column. */ + trgmStatus?: TrgmSearchInput; + /** TRGM search on the `target_ref` column. */ + trgmTargetRef?: TrgmSearchInput; + /** TRGM search on the `title` column. */ + trgmTitle?: TrgmSearchInput; + /** TSV search on the `search` column. */ + tsvSearch?: string; + /** + * Composite unified search. Provide a search string and it will be dispatched to + * all text-compatible search algorithms (tsvector, BM25, pg_trgm) + * simultaneously. When the LLM plugin is active, pgvector also participates via + * auto-embedding. Rows matching ANY algorithm are returned. All matching score + * fields are populated. + */ + unifiedSearch?: string; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** VECTOR search on the `embedding` column. */ + vectorEmbedding?: VectorNearbyInput; } -export interface ImportGraphJsonInput { - clientMutationId?: string; - context?: string; - createdBy?: string; - definitionsCommitId?: string; - description?: string; - graphJson?: Record; - name?: string; - scopeId?: string; +/** A filter to be used against `PlatformBuild` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformBuildFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: PlatformBuildFilter[]; + /** Filter by the object’s `attempt` field. */ + attempt?: IntFilter; + /** Filter by the object’s `commitSha` field. */ + commitSha?: StringFilter; + /** Filter by the object’s `conclusion` field. */ + conclusion?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `event` relation. */ + event?: PlatformRepositoryEventFilter; + /** A related `event` exists. */ + eventExists?: boolean; + /** Filter by the object’s `eventId` field. */ + eventId?: UUIDFilter; + /** Filter by the object’s `finishedAt` field. */ + finishedAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `imageRef` field. */ + imageRef?: StringFilter; + /** Filter by the object’s `jobId` field. */ + jobId?: BigIntFilter; + /** Filter by the object’s `logs` field. */ + logs?: ConstructiveInternalTypeUploadFilter; + /** Filter by the object’s `matrixKey` field. */ + matrixKey?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Negates the expression. */ + not?: PlatformBuildFilter; + /** Checks for any expressions in this list. */ + or?: PlatformBuildFilter[]; + /** Filter by the object’s `proposal` relation. */ + proposal?: PlatformProposalFilter; + /** A related `proposal` exists. */ + proposalExists?: boolean; + /** Filter by the object’s `proposalId` field. */ + proposalId?: UUIDFilter; + /** Filter by the object’s `ref` field. */ + ref?: StringFilter; + /** Filter by the object’s `repository` relation. */ + repository?: PlatformRepositoryFilter; + /** Filter by the object’s `repositoryId` field. */ + repositoryId?: UUIDFilter; + /** Filter by the object’s `startedAt` field. */ + startedAt?: DatetimeFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** Filter by the object’s `workflow` relation. */ + workflow?: PlatformRepositoryWorkflowFilter; + /** A related `workflow` exists. */ + workflowExists?: boolean; + /** Filter by the object’s `workflowId` field. */ + workflowId?: UUIDFilter; +} +/** A filter to be used against `PlatformProposalComment` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformProposalCommentFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: PlatformProposalCommentFilter[]; + /** Filter by the object’s `attachments` field. */ + attachments?: ConstructiveInternalTypeUploadListFilter; + /** Filter by the object’s `body` field. */ + body?: StringTrgmFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `embedding` field. */ + embedding?: VectorFilter; + /** Filter by the object’s `embeddingUpdatedAt` field. */ + embeddingUpdatedAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `line` field. */ + line?: IntFilter; + /** Negates the expression. */ + not?: PlatformProposalCommentFilter; + /** Checks for any expressions in this list. */ + or?: PlatformProposalCommentFilter[]; + /** Filter by the object’s `outdatedAt` field. */ + outdatedAt?: DatetimeFilter; + /** Filter by the object’s `path` field. */ + path?: StringTrgmFilter; + /** Filter by the object’s `platformProposalReactionsByCommentId` relation. */ + platformProposalReactionsByCommentId?: PlatformProposalCommentToManyPlatformProposalReactionFilter; + /** `platformProposalReactionsByCommentId` exist. */ + platformProposalReactionsByCommentIdExist?: boolean; + /** Filter by the object’s `proposal` relation. */ + proposal?: PlatformProposalFilter; + /** Filter by the object’s `proposalId` field. */ + proposalId?: UUIDFilter; + /** Filter by the object’s `resolvedAt` field. */ + resolvedAt?: DatetimeFilter; + /** Filter by the object’s `search` field. */ + search?: FullTextFilter; + /** TRGM search on the `body` column. */ + trgmBody?: TrgmSearchInput; + /** TRGM search on the `path` column. */ + trgmPath?: TrgmSearchInput; + /** TSV search on the `search` column. */ + tsvSearch?: string; + /** + * Composite unified search. Provide a search string and it will be dispatched to + * all text-compatible search algorithms (tsvector, BM25, pg_trgm) + * simultaneously. When the LLM plugin is active, pgvector also participates via + * auto-embedding. Rows matching ANY algorithm are returned. All matching score + * fields are populated. + */ + unifiedSearch?: string; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** VECTOR search on the `embedding` column. */ + vectorEmbedding?: VectorNearbyInput; } -export interface InfraInitEmptyRepoInput { - clientMutationId?: string; - sId?: string; - storeId?: string; +/** A filter to be used against `PlatformProposalFileView` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformProposalFileViewFilter { + /** Checks for all expressions in this list. */ + and?: PlatformProposalFileViewFilter[]; + /** Filter by the object’s `blobSha` field. */ + blobSha?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformProposalFileViewFilter; + /** Checks for any expressions in this list. */ + or?: PlatformProposalFileViewFilter[]; + /** Filter by the object’s `path` field. */ + path?: StringFilter; + /** Filter by the object’s `proposal` relation. */ + proposal?: PlatformProposalFilter; + /** Filter by the object’s `proposalId` field. */ + proposalId?: UUIDFilter; + /** Filter by the object’s `reviewerId` field. */ + reviewerId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** Filter by the object’s `viewedAt` field. */ + viewedAt?: DatetimeFilter; } -export interface InfraInsertNodeAtPathInput { - clientMutationId?: string; - data?: Record; - kids?: string[]; - ktree?: string[]; - path?: string[]; - root?: string; - sId?: string; +/** A filter to be used against `PlatformProposalReview` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformProposalReviewFilter { + /** Checks for all expressions in this list. */ + and?: PlatformProposalReviewFilter[]; + /** Filter by the object’s `body` field. */ + body?: StringTrgmFilter; + /** Filter by the object’s `commitSha` field. */ + commitSha?: StringTrgmFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformProposalReviewFilter; + /** Checks for any expressions in this list. */ + or?: PlatformProposalReviewFilter[]; + /** Filter by the object’s `proposal` relation. */ + proposal?: PlatformProposalFilter; + /** Filter by the object’s `proposalId` field. */ + proposalId?: UUIDFilter; + /** Filter by the object’s `reviewerId` field. */ + reviewerId?: UUIDFilter; + /** Filter by the object’s `search` field. */ + search?: FullTextFilter; + /** Filter by the object’s `submittedAt` field. */ + submittedAt?: DatetimeFilter; + /** TRGM search on the `body` column. */ + trgmBody?: TrgmSearchInput; + /** TRGM search on the `commit_sha` column. */ + trgmCommitSha?: TrgmSearchInput; + /** TRGM search on the `verdict` column. */ + trgmVerdict?: TrgmSearchInput; + /** TSV search on the `search` column. */ + tsvSearch?: string; + /** + * Composite unified search. Provide a search string and it will be dispatched to + * all text-compatible search algorithms (tsvector, BM25, pg_trgm) + * simultaneously. When the LLM plugin is active, pgvector also participates via + * auto-embedding. Rows matching ANY algorithm are returned. All matching score + * fields are populated. + */ + unifiedSearch?: string; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** Filter by the object’s `verdict` field. */ + verdict?: StringTrgmFilter; } -export interface InfraInsertNodesAtPathsInput { - clientMutationId?: string; - datas?: Record[]; - kidsList?: Record; - ktreeList?: Record; - paths?: Record; - root?: string; - sId?: string; +/** A filter to be used against `PlatformProposalsChunk` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformProposalsChunkFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: PlatformProposalsChunkFilter[]; + /** Filter by the object’s `body` field. */ + body?: StringFilter; + /** Filter by the object’s `chunkIndex` field. */ + chunkIndex?: IntFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `embedding` field. */ + embedding?: VectorFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Negates the expression. */ + not?: PlatformProposalsChunkFilter; + /** Checks for any expressions in this list. */ + or?: PlatformProposalsChunkFilter[]; + /** Filter by the object’s `platformProposals` relation. */ + platformProposals?: PlatformProposalFilter; + /** Filter by the object’s `platformProposalsId` field. */ + platformProposalsId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** VECTOR search on the `embedding` column. */ + vectorEmbedding?: VectorNearbyInput; } -export interface InfraSetAndCommitInput { - clientMutationId?: string; - data?: Record; - kids?: string[]; - ktree?: string[]; - message?: string; - path?: string[]; - refname?: string; - sId?: string; - storeId?: string; +/** A filter to be used against `PlatformRegistryGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformRegistryGrantFilter { + /** Filter by the object’s `actions` field. */ + actions?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: PlatformRegistryGrantFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; + /** Filter by the object’s `grantedBy` field. */ + grantedBy?: UUIDFilter; + /** Filter by the object’s `granteeKey` field. */ + granteeKey?: UUIDFilter; + /** Filter by the object’s `granteeScope` field. */ + granteeScope?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformRegistryGrantFilter; + /** Checks for any expressions in this list. */ + or?: PlatformRegistryGrantFilter[]; + /** Filter by the object’s `registry` relation. */ + registry?: PlatformRegistryFilter; + /** Filter by the object’s `registryId` field. */ + registryId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface InfraSetDataAtPathInput { - clientMutationId?: string; - data?: Record; - path?: string[]; - root?: string; - sId?: string; +/** A filter to be used against `PlatformRepositoryEvent` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformRepositoryEventFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: PlatformRepositoryEventFilter[]; + /** Filter by the object’s `commitSha` field. */ + commitSha?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `deliveryId` field. */ + deliveryId?: StringFilter; + /** Filter by the object’s `eventType` field. */ + eventType?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Negates the expression. */ + not?: PlatformRepositoryEventFilter; + /** Checks for any expressions in this list. */ + or?: PlatformRepositoryEventFilter[]; + /** Filter by the object’s `payload` field. */ + payload?: JSONFilter; + /** Filter by the object’s `platformBuildsByEventId` relation. */ + platformBuildsByEventId?: PlatformRepositoryEventToManyPlatformBuildFilter; + /** `platformBuildsByEventId` exist. */ + platformBuildsByEventIdExist?: boolean; + /** Filter by the object’s `ref` field. */ + ref?: StringFilter; + /** Filter by the object’s `repository` relation. */ + repository?: PlatformRepositoryFilter; + /** Filter by the object’s `repositoryId` field. */ + repositoryId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface InfraSetManyAndCommitInput { - clientMutationId?: string; - entries?: Record; - message?: string; - refname?: string; - sId?: string; - storeId?: string; +/** A filter to be used against `PlatformRepositoryRequiredCheck` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformRepositoryRequiredCheckFilter { + /** Checks for all expressions in this list. */ + and?: PlatformRepositoryRequiredCheckFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformRepositoryRequiredCheckFilter; + /** Checks for any expressions in this list. */ + or?: PlatformRepositoryRequiredCheckFilter[]; + /** Filter by the object’s `repository` relation. */ + repository?: PlatformRepositoryFilter; + /** Filter by the object’s `repositoryId` field. */ + repositoryId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `workflow` relation. */ + workflow?: PlatformRepositoryWorkflowFilter; + /** Filter by the object’s `workflowId` field. */ + workflowId?: UUIDFilter; } -export interface InitEmptyRepoInput { - clientMutationId?: string; - sId?: string; - storeId?: string; +/** A filter to be used against `PlatformResourceStatusCheck` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformResourceStatusCheckFilter { + /** Checks for all expressions in this list. */ + and?: PlatformResourceStatusCheckFilter[]; + /** Filter by the object’s `completedAt` field. */ + completedAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformResourceStatusCheckFilter; + /** Checks for any expressions in this list. */ + or?: PlatformResourceStatusCheckFilter[]; + /** Filter by the object’s `requestedAt` field. */ + requestedAt?: DatetimeFilter; + /** Filter by the object’s `requestedBy` field. */ + requestedBy?: UUIDFilter; + /** Filter by the object’s `resource` relation. */ + resource?: PlatformResourceFilter; + /** Filter by the object’s `resourceId` field. */ + resourceId?: UUIDFilter; + /** Filter by the object’s `result` field. */ + result?: JSONFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; } -export interface InsertNodeAtPathInput { - clientMutationId?: string; - data?: Record; - kids?: string[]; - ktree?: string[]; - path?: string[]; - root?: string; - sId?: string; +/** A filter to be used against `PlatformRegistry` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformRegistryFilter { + /** Checks for all expressions in this list. */ + and?: PlatformRegistryFilter[]; + /** Filter by the object’s `authMode` field. */ + authMode?: StringFilter; + /** Filter by the object’s `basePath` field. */ + basePath?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `credentialSecretName` field. */ + credentialSecretName?: StringFilter; + /** Filter by the object’s `host` field. */ + host?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `installation` relation. */ + installation?: PlatformResourceInstallationFilter; + /** A related `installation` exists. */ + installationExists?: boolean; + /** Filter by the object’s `installationId` field. */ + installationId?: UUIDFilter; + /** Filter by the object’s `isPublished` field. */ + isPublished?: BooleanFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: PlatformRegistryFilter; + /** Checks for any expressions in this list. */ + or?: PlatformRegistryFilter[]; + /** Filter by the object’s `platformOnly` field. */ + platformOnly?: BooleanFilter; + /** Filter by the object’s `platformRegistryBindingsByRegistryId` relation. */ + platformRegistryBindingsByRegistryId?: PlatformRegistryToManyPlatformRegistryBindingFilter; + /** `platformRegistryBindingsByRegistryId` exist. */ + platformRegistryBindingsByRegistryIdExist?: boolean; + /** Filter by the object’s `platformRegistryGrantsByRegistryId` relation. */ + platformRegistryGrantsByRegistryId?: PlatformRegistryToManyPlatformRegistryGrantFilter; + /** `platformRegistryGrantsByRegistryId` exist. */ + platformRegistryGrantsByRegistryIdExist?: boolean; + /** Filter by the object’s `role` field. */ + role?: StringFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface InsertNodesAtPathsInput { - clientMutationId?: string; - datas?: Record[]; - kidsList?: Record; - ktreeList?: Record; - paths?: Record; - root?: string; - sId?: string; +/** A filter to be used against `PlatformWebhookEvent` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformWebhookEventFilter { + /** Checks for all expressions in this list. */ + and?: PlatformWebhookEventFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `endpoint` relation. */ + endpoint?: PlatformWebhookEndpointFilter; + /** Filter by the object’s `endpointId` field. */ + endpointId?: UUIDFilter; + /** Filter by the object’s `error` field. */ + error?: StringFilter; + /** Filter by the object’s `externalEventId` field. */ + externalEventId?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `invocationCreatedAt` field. */ + invocationCreatedAt?: DatetimeFilter; + /** Filter by the object’s `invocationId` field. */ + invocationId?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformWebhookEventFilter; + /** Checks for any expressions in this list. */ + or?: PlatformWebhookEventFilter[]; + /** Filter by the object’s `payload` field. */ + payload?: JSONFilter; + /** Filter by the object’s `provider` field. */ + provider?: StringFilter; + /** Filter by the object’s `providerTimestamp` field. */ + providerTimestamp?: DatetimeFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; } -export interface PlatformInfraInitEmptyRepoInput { - clientMutationId?: string; - sId?: string; - storeId?: string; +/** A filter to be used against `ProposalReaction` object types. All fields are combined with a logical ‘and.’ */ +export interface ProposalReactionFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: ProposalReactionFilter[]; + /** Filter by the object’s `comment` relation. */ + comment?: ProposalCommentFilter; + /** A related `comment` exists. */ + commentExists?: boolean; + /** Filter by the object’s `commentId` field. */ + commentId?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `emoji` field. */ + emoji?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: ProposalReactionFilter; + /** Checks for any expressions in this list. */ + or?: ProposalReactionFilter[]; + /** Filter by the object’s `proposal` relation. */ + proposal?: ProposalFilter; + /** Filter by the object’s `proposalId` field. */ + proposalId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface PlatformInfraInsertNodeAtPathInput { - clientMutationId?: string; - data?: Record; - kids?: string[]; - ktree?: string[]; - path?: string[]; - root?: string; - sId?: string; +/** A filter to be used against `Build` object types. All fields are combined with a logical ‘and.’ */ +export interface BuildFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: BuildFilter[]; + /** Filter by the object’s `attempt` field. */ + attempt?: IntFilter; + /** Filter by the object’s `commitSha` field. */ + commitSha?: StringFilter; + /** Filter by the object’s `conclusion` field. */ + conclusion?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `event` relation. */ + event?: RepositoryEventFilter; + /** A related `event` exists. */ + eventExists?: boolean; + /** Filter by the object’s `eventId` field. */ + eventId?: UUIDFilter; + /** Filter by the object’s `finishedAt` field. */ + finishedAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `imageRef` field. */ + imageRef?: StringFilter; + /** Filter by the object’s `jobId` field. */ + jobId?: BigIntFilter; + /** Filter by the object’s `logs` field. */ + logs?: ConstructiveInternalTypeUploadFilter; + /** Filter by the object’s `matrixKey` field. */ + matrixKey?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Negates the expression. */ + not?: BuildFilter; + /** Checks for any expressions in this list. */ + or?: BuildFilter[]; + /** Filter by the object’s `proposal` relation. */ + proposal?: ProposalFilter; + /** A related `proposal` exists. */ + proposalExists?: boolean; + /** Filter by the object’s `proposalId` field. */ + proposalId?: UUIDFilter; + /** Filter by the object’s `ref` field. */ + ref?: StringFilter; + /** Filter by the object’s `repository` relation. */ + repository?: RepositoryFilter; + /** Filter by the object’s `repositoryId` field. */ + repositoryId?: UUIDFilter; + /** Filter by the object’s `startedAt` field. */ + startedAt?: DatetimeFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** Filter by the object’s `workflow` relation. */ + workflow?: RepositoryWorkflowFilter; + /** A related `workflow` exists. */ + workflowExists?: boolean; + /** Filter by the object’s `workflowId` field. */ + workflowId?: UUIDFilter; +} +/** A filter to be used against `Proposal` object types. All fields are combined with a logical ‘and.’ */ +export interface ProposalFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: ProposalFilter[]; + /** Filter by the object’s `body` field. */ + body?: StringTrgmFilter; + /** Filter by the object’s `builds` relation. */ + builds?: ProposalToManyBuildFilter; + /** `builds` exist. */ + buildsExist?: boolean; + /** Filter by the object’s `childProposals` relation. */ + childProposals?: ProposalToManyProposalFilter; + /** `childProposals` exist. */ + childProposalsExist?: boolean; + /** Filter by the object’s `closedReason` field. */ + closedReason?: StringTrgmFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `decidedAt` field. */ + decidedAt?: DatetimeFilter; + /** Filter by the object’s `dueAt` field. */ + dueAt?: DatetimeFilter; + /** Filter by the object’s `embedding` field. */ + embedding?: VectorFilter; + /** Filter by the object’s `embeddingUpdatedAt` field. */ + embeddingUpdatedAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringTrgmFilter; + /** Filter by the object’s `labels` field. */ + labels?: StringListFilter; + /** Filter by the object’s `mergeCommit` field. */ + mergeCommit?: StringTrgmFilter; + /** Filter by the object’s `mergeMethod` field. */ + mergeMethod?: StringTrgmFilter; + /** Filter by the object’s `mergeRequestedAt` field. */ + mergeRequestedAt?: DatetimeFilter; + /** Filter by the object’s `mergedAt` field. */ + mergedAt?: DatetimeFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Negates the expression. */ + not?: ProposalFilter; + /** Checks for any expressions in this list. */ + or?: ProposalFilter[]; + /** Filter by the object’s `parent` relation. */ + parent?: ProposalFilter; + /** A related `parent` exists. */ + parentExists?: boolean; + /** Filter by the object’s `parentId` field. */ + parentId?: UUIDFilter; + /** Filter by the object’s `priority` field. */ + priority?: BigFloatFilter; + /** Filter by the object’s `proposalComments` relation. */ + proposalComments?: ProposalToManyProposalCommentFilter; + /** `proposalComments` exist. */ + proposalCommentsExist?: boolean; + /** Filter by the object’s `proposalFileViews` relation. */ + proposalFileViews?: ProposalToManyProposalFileViewFilter; + /** `proposalFileViews` exist. */ + proposalFileViewsExist?: boolean; + /** Filter by the object’s `proposalReactions` relation. */ + proposalReactions?: ProposalToManyProposalReactionFilter; + /** `proposalReactions` exist. */ + proposalReactionsExist?: boolean; + /** Filter by the object’s `proposalReviews` relation. */ + proposalReviews?: ProposalToManyProposalReviewFilter; + /** `proposalReviews` exist. */ + proposalReviewsExist?: boolean; + /** Filter by the object’s `proposalsChunksByProposalsId` relation. */ + proposalsChunksByProposalsId?: ProposalToManyProposalsChunkFilter; + /** `proposalsChunksByProposalsId` exist. */ + proposalsChunksByProposalsIdExist?: boolean; + /** Filter by the object’s `repository` relation. */ + repository?: RepositoryFilter; + /** Filter by the object’s `repositoryId` field. */ + repositoryId?: UUIDFilter; + /** Filter by the object’s `resolution` field. */ + resolution?: StringTrgmFilter; + /** Filter by the object’s `search` field. */ + search?: FullTextFilter; + /** Filter by the object’s `sourceRef` field. */ + sourceRef?: StringTrgmFilter; + /** Filter by the object’s `status` field. */ + status?: StringTrgmFilter; + /** Filter by the object’s `targetRef` field. */ + targetRef?: StringTrgmFilter; + /** Filter by the object’s `title` field. */ + title?: StringTrgmFilter; + /** TRGM search on the `body` column. */ + trgmBody?: TrgmSearchInput; + /** TRGM search on the `closed_reason` column. */ + trgmClosedReason?: TrgmSearchInput; + /** TRGM search on the `kind` column. */ + trgmKind?: TrgmSearchInput; + /** TRGM search on the `merge_commit` column. */ + trgmMergeCommit?: TrgmSearchInput; + /** TRGM search on the `merge_method` column. */ + trgmMergeMethod?: TrgmSearchInput; + /** TRGM search on the `resolution` column. */ + trgmResolution?: TrgmSearchInput; + /** TRGM search on the `source_ref` column. */ + trgmSourceRef?: TrgmSearchInput; + /** TRGM search on the `status` column. */ + trgmStatus?: TrgmSearchInput; + /** TRGM search on the `target_ref` column. */ + trgmTargetRef?: TrgmSearchInput; + /** TRGM search on the `title` column. */ + trgmTitle?: TrgmSearchInput; + /** TSV search on the `search` column. */ + tsvSearch?: string; + /** + * Composite unified search. Provide a search string and it will be dispatched to + * all text-compatible search algorithms (tsvector, BM25, pg_trgm) + * simultaneously. When the LLM plugin is active, pgvector also participates via + * auto-embedding. Rows matching ANY algorithm are returned. All matching score + * fields are populated. + */ + unifiedSearch?: string; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** VECTOR search on the `embedding` column. */ + vectorEmbedding?: VectorNearbyInput; } -export interface PlatformInfraInsertNodesAtPathsInput { - clientMutationId?: string; - datas?: Record[]; - kidsList?: Record; - ktreeList?: Record; - paths?: Record; - root?: string; - sId?: string; +/** A filter to be used against `ProposalComment` object types. All fields are combined with a logical ‘and.’ */ +export interface ProposalCommentFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: ProposalCommentFilter[]; + /** Filter by the object’s `attachments` field. */ + attachments?: ConstructiveInternalTypeUploadListFilter; + /** Filter by the object’s `body` field. */ + body?: StringTrgmFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `embedding` field. */ + embedding?: VectorFilter; + /** Filter by the object’s `embeddingUpdatedAt` field. */ + embeddingUpdatedAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `line` field. */ + line?: IntFilter; + /** Negates the expression. */ + not?: ProposalCommentFilter; + /** Checks for any expressions in this list. */ + or?: ProposalCommentFilter[]; + /** Filter by the object’s `outdatedAt` field. */ + outdatedAt?: DatetimeFilter; + /** Filter by the object’s `path` field. */ + path?: StringTrgmFilter; + /** Filter by the object’s `proposal` relation. */ + proposal?: ProposalFilter; + /** Filter by the object’s `proposalId` field. */ + proposalId?: UUIDFilter; + /** Filter by the object’s `proposalReactionsByCommentId` relation. */ + proposalReactionsByCommentId?: ProposalCommentToManyProposalReactionFilter; + /** `proposalReactionsByCommentId` exist. */ + proposalReactionsByCommentIdExist?: boolean; + /** Filter by the object’s `resolvedAt` field. */ + resolvedAt?: DatetimeFilter; + /** Filter by the object’s `search` field. */ + search?: FullTextFilter; + /** TRGM search on the `body` column. */ + trgmBody?: TrgmSearchInput; + /** TRGM search on the `path` column. */ + trgmPath?: TrgmSearchInput; + /** TSV search on the `search` column. */ + tsvSearch?: string; + /** + * Composite unified search. Provide a search string and it will be dispatched to + * all text-compatible search algorithms (tsvector, BM25, pg_trgm) + * simultaneously. When the LLM plugin is active, pgvector also participates via + * auto-embedding. Rows matching ANY algorithm are returned. All matching score + * fields are populated. + */ + unifiedSearch?: string; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** VECTOR search on the `embedding` column. */ + vectorEmbedding?: VectorNearbyInput; } -export interface PlatformInfraSetAndCommitInput { - clientMutationId?: string; - data?: Record; - kids?: string[]; - ktree?: string[]; - message?: string; - path?: string[]; - refname?: string; - sId?: string; - storeId?: string; +/** A filter to be used against `ProposalFileView` object types. All fields are combined with a logical ‘and.’ */ +export interface ProposalFileViewFilter { + /** Checks for all expressions in this list. */ + and?: ProposalFileViewFilter[]; + /** Filter by the object’s `blobSha` field. */ + blobSha?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: ProposalFileViewFilter; + /** Checks for any expressions in this list. */ + or?: ProposalFileViewFilter[]; + /** Filter by the object’s `path` field. */ + path?: StringFilter; + /** Filter by the object’s `proposal` relation. */ + proposal?: ProposalFilter; + /** Filter by the object’s `proposalId` field. */ + proposalId?: UUIDFilter; + /** Filter by the object’s `reviewerId` field. */ + reviewerId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** Filter by the object’s `viewedAt` field. */ + viewedAt?: DatetimeFilter; } -export interface PlatformInfraSetDataAtPathInput { - clientMutationId?: string; - data?: Record; - path?: string[]; - root?: string; - sId?: string; +/** A filter to be used against `ProposalReview` object types. All fields are combined with a logical ‘and.’ */ +export interface ProposalReviewFilter { + /** Checks for all expressions in this list. */ + and?: ProposalReviewFilter[]; + /** Filter by the object’s `body` field. */ + body?: StringTrgmFilter; + /** Filter by the object’s `commitSha` field. */ + commitSha?: StringTrgmFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: ProposalReviewFilter; + /** Checks for any expressions in this list. */ + or?: ProposalReviewFilter[]; + /** Filter by the object’s `proposal` relation. */ + proposal?: ProposalFilter; + /** Filter by the object’s `proposalId` field. */ + proposalId?: UUIDFilter; + /** Filter by the object’s `reviewerId` field. */ + reviewerId?: UUIDFilter; + /** Filter by the object’s `search` field. */ + search?: FullTextFilter; + /** Filter by the object’s `submittedAt` field. */ + submittedAt?: DatetimeFilter; + /** TRGM search on the `body` column. */ + trgmBody?: TrgmSearchInput; + /** TRGM search on the `commit_sha` column. */ + trgmCommitSha?: TrgmSearchInput; + /** TRGM search on the `verdict` column. */ + trgmVerdict?: TrgmSearchInput; + /** TSV search on the `search` column. */ + tsvSearch?: string; + /** + * Composite unified search. Provide a search string and it will be dispatched to + * all text-compatible search algorithms (tsvector, BM25, pg_trgm) + * simultaneously. When the LLM plugin is active, pgvector also participates via + * auto-embedding. Rows matching ANY algorithm are returned. All matching score + * fields are populated. + */ + unifiedSearch?: string; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** Filter by the object’s `verdict` field. */ + verdict?: StringTrgmFilter; } -export interface PlatformInfraSetManyAndCommitInput { - clientMutationId?: string; - entries?: Record; - message?: string; - refname?: string; - sId?: string; - storeId?: string; +/** A filter to be used against `ProposalsChunk` object types. All fields are combined with a logical ‘and.’ */ +export interface ProposalsChunkFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: ProposalsChunkFilter[]; + /** Filter by the object’s `body` field. */ + body?: StringFilter; + /** Filter by the object’s `chunkIndex` field. */ + chunkIndex?: IntFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `embedding` field. */ + embedding?: VectorFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Negates the expression. */ + not?: ProposalsChunkFilter; + /** Checks for any expressions in this list. */ + or?: ProposalsChunkFilter[]; + /** Filter by the object’s `proposals` relation. */ + proposals?: ProposalFilter; + /** Filter by the object’s `proposalsId` field. */ + proposalsId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** VECTOR search on the `embedding` column. */ + vectorEmbedding?: VectorNearbyInput; } -export interface PlatformResourceInstallationsInstallInput { - clientMutationId?: string; - definitionIds?: string[]; - name?: string; - namespaceId?: string; - newParams?: Record; - slug?: string; +/** A filter to be used against `RegistryGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface RegistryGrantFilter { + /** Filter by the object’s `actions` field. */ + actions?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: RegistryGrantFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; + /** Filter by the object’s `grantedBy` field. */ + grantedBy?: UUIDFilter; + /** Filter by the object’s `granteeKey` field. */ + granteeKey?: UUIDFilter; + /** Filter by the object’s `granteeScope` field. */ + granteeScope?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: RegistryGrantFilter; + /** Checks for any expressions in this list. */ + or?: RegistryGrantFilter[]; + /** Filter by the object’s `registry` relation. */ + registry?: RegistryFilter; + /** Filter by the object’s `registryId` field. */ + registryId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface PlatformResourceInstallationsRollbackInput { - clientMutationId?: string; - commitId?: string; - targetInstallationId?: string; +/** A filter to be used against `RepositoryEvent` object types. All fields are combined with a logical ‘and.’ */ +export interface RepositoryEventFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: RepositoryEventFilter[]; + /** Filter by the object’s `buildsByEventId` relation. */ + buildsByEventId?: RepositoryEventToManyBuildFilter; + /** `buildsByEventId` exist. */ + buildsByEventIdExist?: boolean; + /** Filter by the object’s `commitSha` field. */ + commitSha?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `deliveryId` field. */ + deliveryId?: StringFilter; + /** Filter by the object’s `eventType` field. */ + eventType?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Negates the expression. */ + not?: RepositoryEventFilter; + /** Checks for any expressions in this list. */ + or?: RepositoryEventFilter[]; + /** Filter by the object’s `payload` field. */ + payload?: JSONFilter; + /** Filter by the object’s `ref` field. */ + ref?: StringFilter; + /** Filter by the object’s `repository` relation. */ + repository?: RepositoryFilter; + /** Filter by the object’s `repositoryId` field. */ + repositoryId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface PlatformResourceInstallationsUninstallInput { - clientMutationId?: string; - targetInstallationId?: string; +/** A filter to be used against `RepositoryRequiredCheck` object types. All fields are combined with a logical ‘and.’ */ +export interface RepositoryRequiredCheckFilter { + /** Checks for all expressions in this list. */ + and?: RepositoryRequiredCheckFilter[]; + /** 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?: RepositoryRequiredCheckFilter; + /** Checks for any expressions in this list. */ + or?: RepositoryRequiredCheckFilter[]; + /** Filter by the object’s `repository` relation. */ + repository?: RepositoryFilter; + /** Filter by the object’s `repositoryId` field. */ + repositoryId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `workflow` relation. */ + workflow?: RepositoryWorkflowFilter; + /** Filter by the object’s `workflowId` field. */ + workflowId?: UUIDFilter; } -export interface PlatformResourceInstallationsUpgradeInput { - clientMutationId?: string; - newParams?: Record; - targetInstallationId?: string; +/** A filter to be used against `ResourceStatusCheck` object types. All fields are combined with a logical ‘and.’ */ +export interface ResourceStatusCheckFilter { + /** Checks for all expressions in this list. */ + and?: ResourceStatusCheckFilter[]; + /** Filter by the object’s `completedAt` field. */ + completedAt?: DatetimeFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: ResourceStatusCheckFilter; + /** Checks for any expressions in this list. */ + or?: ResourceStatusCheckFilter[]; + /** Filter by the object’s `requestedAt` field. */ + requestedAt?: DatetimeFilter; + /** Filter by the object’s `requestedBy` field. */ + requestedBy?: UUIDFilter; + /** Filter by the object’s `resource` relation. */ + resource?: ResourceFilter; + /** Filter by the object’s `resourceId` field. */ + resourceId?: UUIDFilter; + /** Filter by the object’s `result` field. */ + result?: JSONFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; } -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 `Registry` object types. All fields are combined with a logical ‘and.’ */ +export interface RegistryFilter { + /** Checks for all expressions in this list. */ + and?: RegistryFilter[]; + /** Filter by the object’s `authMode` field. */ + authMode?: StringFilter; + /** Filter by the object’s `basePath` field. */ + basePath?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `credentialSecretName` field. */ + credentialSecretName?: StringFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `host` field. */ + host?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `installation` relation. */ + installation?: ResourceInstallationFilter; + /** A related `installation` exists. */ + installationExists?: boolean; + /** Filter by the object’s `installationId` field. */ + installationId?: UUIDFilter; + /** Filter by the object’s `isPublished` field. */ + isPublished?: BooleanFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: RegistryFilter; + /** Checks for any expressions in this list. */ + or?: RegistryFilter[]; + /** Filter by the object’s `platformOnly` field. */ + platformOnly?: BooleanFilter; + /** Filter by the object’s `registryBindings` relation. */ + registryBindings?: RegistryToManyRegistryBindingFilter; + /** `registryBindings` exist. */ + registryBindingsExist?: boolean; + /** Filter by the object’s `registryGrants` relation. */ + registryGrants?: RegistryToManyRegistryGrantFilter; + /** `registryGrants` exist. */ + registryGrantsExist?: boolean; + /** Filter by the object’s `role` field. */ + role?: StringFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface ResourceInstallationsInstallInput { - clientMutationId?: string; - definitionIds?: string[]; - name?: string; - namespaceId?: string; - newParams?: Record; - slug?: string; +/** A filter to be used against `WebhookEvent` object types. All fields are combined with a logical ‘and.’ */ +export interface WebhookEventFilter { + /** Checks for all expressions in this list. */ + and?: WebhookEventFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `endpoint` relation. */ + endpoint?: WebhookEndpointFilter; + /** Filter by the object’s `endpointId` field. */ + endpointId?: UUIDFilter; + /** Filter by the object’s `error` field. */ + error?: StringFilter; + /** Filter by the object’s `externalEventId` field. */ + externalEventId?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `invocationCreatedAt` field. */ + invocationCreatedAt?: DatetimeFilter; + /** Filter by the object’s `invocationId` field. */ + invocationId?: UUIDFilter; + /** Negates the expression. */ + not?: WebhookEventFilter; + /** Checks for any expressions in this list. */ + or?: WebhookEventFilter[]; + /** Filter by the object’s `payload` field. */ + payload?: JSONFilter; + /** Filter by the object’s `provider` field. */ + provider?: StringFilter; + /** Filter by the object’s `providerTimestamp` field. */ + providerTimestamp?: DatetimeFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; } -export interface ResourceInstallationsRollbackInput { - clientMutationId?: string; - commitId?: string; - targetInstallationId?: 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[]; } -export interface ResourceInstallationsUninstallInput { - clientMutationId?: string; - targetInstallationId?: string; +/** 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[]; } -export interface ResourceInstallationsUpgradeInput { - clientMutationId?: string; - newParams?: Record; - targetInstallationId?: string; +/** 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[]; } -export interface SaveGraphInput { - clientMutationId?: string; - graphId?: string; - message?: string; - rootHash?: 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; } -export interface SetAndCommitInput { - clientMutationId?: string; - data?: Record; - kids?: string[]; - ktree?: string[]; - message?: string; - path?: string[]; - refname?: string; - sId?: string; - storeId?: string; +/** A filter to be used against JSON fields. All fields are combined with a logical ‘and.’ */ +export interface JSONFilter { + /** Contained by the specified JSON. */ + containedBy?: Record; + /** Contains the specified JSON. */ + contains?: Record; + /** Contains all of the specified keys. */ + containsAllKeys?: string[]; + /** Contains any of the specified keys. */ + containsAnyKeys?: string[]; + /** Contains the specified key. */ + containsKey?: string; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: Record; + /** Equal to the specified value. */ + equalTo?: Record; + /** Greater than the specified value. */ + greaterThan?: Record; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: Record; + /** Included in the specified list. */ + in?: Record[]; + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Less than the specified value. */ + lessThan?: Record; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: Record; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: Record; + /** Not equal to the specified value. */ + notEqualTo?: Record; + /** Not included in the specified list. */ + notIn?: Record[]; } -export interface SetDataAtPathInput { - clientMutationId?: string; - data?: Record; - path?: string[]; - root?: string; - sId?: string; +/** A filter to be used against `DatabaseFunctionGraph` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseFunctionGraphFilter { + /** Checks for all expressions in this list. */ + and?: DatabaseFunctionGraphFilter[]; + /** Filter by the object’s `context` field. */ + context?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `databaseFunctionGraphExecutionsByGraphId` relation. */ + databaseFunctionGraphExecutionsByGraphId?: DatabaseFunctionGraphToManyDatabaseFunctionGraphExecutionFilter; + /** `databaseFunctionGraphExecutionsByGraphId` exist. */ + databaseFunctionGraphExecutionsByGraphIdExist?: boolean; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `definitionsCommitId` field. */ + definitionsCommitId?: UUIDFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `functionDefinitionsByGraphId` relation. */ + functionDefinitionsByGraphId?: DatabaseFunctionGraphToManyFunctionDefinitionFilter; + /** `functionDefinitionsByGraphId` exist. */ + functionDefinitionsByGraphIdExist?: boolean; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isValid` field. */ + isValid?: BooleanFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: DatabaseFunctionGraphFilter; + /** Checks for any expressions in this list. */ + or?: DatabaseFunctionGraphFilter[]; + /** Filter by the object’s `repositoryWorkflowsByGraphId` relation. */ + repositoryWorkflowsByGraphId?: DatabaseFunctionGraphToManyRepositoryWorkflowFilter; + /** `repositoryWorkflowsByGraphId` exist. */ + repositoryWorkflowsByGraphIdExist?: boolean; + /** Filter by the object’s `storeId` field. */ + storeId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `validationErrors` field. */ + validationErrors?: JSONFilter; } -export interface SetManyAndCommitInput { - clientMutationId?: string; - entries?: Record; - message?: string; - refname?: string; - sId?: string; - storeId?: string; +/** A filter to be used against String List fields. All fields are combined with a logical ‘and.’ */ +export interface StringListFilter { + /** Any array item is equal to the specified value. */ + anyEqualTo?: string; + /** Any array item is greater than the specified value. */ + anyGreaterThan?: string; + /** Any array item is greater than or equal to the specified value. */ + anyGreaterThanOrEqualTo?: string; + /** Any array item is less than the specified value. */ + anyLessThan?: string; + /** Any array item is less than or equal to the specified value. */ + anyLessThanOrEqualTo?: string; + /** Any array item is not equal to the specified value. */ + anyNotEqualTo?: string; + /** Contained by the specified list of values. */ + containedBy?: string[]; + /** Contains the specified list of values. */ + contains?: string[]; + /** 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[]; + /** 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[]; + /** Overlaps the specified list of values. */ + overlaps?: string[]; } -export interface StartExecutionInput { - clientMutationId?: string; - graphId?: string; - inputPayload?: Record; - maxPendingJobs?: number; - maxTicks?: number; - outputNames?: string[]; - outputNode?: string; - outputPort?: string; - parentExecutionId?: string; - parentNodeName?: string; - timeoutInterval?: IntervalInput; +/** 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[]; } -export interface ValidateFunctionGraphInput { - clientMutationId?: string; - graphId?: string; +/** 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. */ + 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 many `FunctionInvocation` object types. All fields are combined with a logical ‘and.’ */ -export interface FunctionApiBindingToManyFunctionInvocationFilter { - /** Filters to entities where every related entity matches. */ - every?: FunctionInvocationFilter; - /** Filters to entities where no related entity matches. */ - none?: FunctionInvocationFilter; - /** Filters to entities where at least one related entity matches. */ - some?: FunctionInvocationFilter; +/** A filter to be used against `Repository` object types. All fields are combined with a logical ‘and.’ */ +export interface RepositoryFilter { + /** Checks for all expressions in this list. */ + and?: RepositoryFilter[]; + /** Filter by the object’s `builds` relation. */ + builds?: RepositoryToManyBuildFilter; + /** `builds` exist. */ + buildsExist?: boolean; + /** Filter by the object’s `cloneUrl` field. */ + cloneUrl?: StringTrgmFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `defaultBranch` field. */ + defaultBranch?: StringTrgmFilter; + /** Filter by the object’s `description` field. */ + description?: StringTrgmFilter; + /** Filter by the object’s `embedding` field. */ + embedding?: VectorFilter; + /** Filter by the object’s `embeddingUpdatedAt` field. */ + embeddingUpdatedAt?: DatetimeFilter; + /** Filter by the object’s `externalId` field. */ + externalId?: StringTrgmFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isArchived` field. */ + isArchived?: BooleanFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `name` field. */ + name?: StringTrgmFilter; + /** Negates the expression. */ + not?: RepositoryFilter; + /** Checks for any expressions in this list. */ + or?: RepositoryFilter[]; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `proposals` relation. */ + proposals?: RepositoryToManyProposalFilter; + /** `proposals` exist. */ + proposalsExist?: boolean; + /** Filter by the object’s `provider` field. */ + provider?: StringTrgmFilter; + /** Filter by the object’s `repositoryEvents` relation. */ + repositoryEvents?: RepositoryToManyRepositoryEventFilter; + /** `repositoryEvents` exist. */ + repositoryEventsExist?: boolean; + /** Filter by the object’s `repositoryRequiredChecks` relation. */ + repositoryRequiredChecks?: RepositoryToManyRepositoryRequiredCheckFilter; + /** `repositoryRequiredChecks` exist. */ + repositoryRequiredChecksExist?: boolean; + /** Filter by the object’s `repositoryWorkflows` relation. */ + repositoryWorkflows?: RepositoryToManyRepositoryWorkflowFilter; + /** `repositoryWorkflows` exist. */ + repositoryWorkflowsExist?: boolean; + /** Filter by the object’s `search` field. */ + search?: FullTextFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringTrgmFilter; + /** TRGM search on the `clone_url` column. */ + trgmCloneUrl?: TrgmSearchInput; + /** TRGM search on the `default_branch` column. */ + trgmDefaultBranch?: TrgmSearchInput; + /** TRGM search on the `description` column. */ + trgmDescription?: TrgmSearchInput; + /** TRGM search on the `external_id` column. */ + trgmExternalId?: TrgmSearchInput; + /** TRGM search on the `name` column. */ + trgmName?: TrgmSearchInput; + /** TRGM search on the `provider` column. */ + trgmProvider?: TrgmSearchInput; + /** TRGM search on the `slug` column. */ + trgmSlug?: TrgmSearchInput; + /** TRGM search on the `visibility` column. */ + trgmVisibility?: TrgmSearchInput; + /** TSV search on the `search` column. */ + tsvSearch?: string; + /** + * Composite unified search. Provide a search string and it will be dispatched to + * all text-compatible search algorithms (tsvector, BM25, pg_trgm) + * simultaneously. When the LLM plugin is active, pgvector also participates via + * auto-embedding. Rows matching ANY algorithm are returned. All matching score + * fields are populated. + */ + unifiedSearch?: string; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** VECTOR search on the `embedding` column. */ + vectorEmbedding?: VectorNearbyInput; + /** Filter by the object’s `visibility` field. */ + visibility?: StringTrgmFilter; } -/** A filter to be used against many `FunctionApiBinding` object types. All fields are combined with a logical ‘and.’ */ -export interface FunctionDefinitionToManyFunctionApiBindingFilter { - /** Filters to entities where every related entity matches. */ - every?: FunctionApiBindingFilter; - /** Filters to entities where no related entity matches. */ - none?: FunctionApiBindingFilter; - /** Filters to entities where at least one related entity matches. */ - some?: FunctionApiBindingFilter; +/** A filter to be used against `Namespace` object types. All fields are combined with a logical ‘and.’ */ +export interface NamespaceFilter { + /** Checks for all expressions in this list. */ + and?: NamespaceFilter[]; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Filter by the object’s `builderBindings` relation. */ + builderBindings?: NamespaceToManyBuilderBindingFilter; + /** `builderBindings` exist. */ + builderBindingsExist?: boolean; + /** Filter by the object’s `clusterId` field. */ + clusterId?: 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 `functionDeployments` relation. */ + functionDeployments?: NamespaceToManyFunctionDeploymentFilter; + /** `functionDeployments` exist. */ + functionDeploymentsExist?: boolean; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; + /** Filter by the object’s `isManaged` field. */ + isManaged?: BooleanFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `namespaceName` field. */ + namespaceName?: StringFilter; + /** Negates the expression. */ + not?: NamespaceFilter; + /** Checks for any expressions in this list. */ + or?: NamespaceFilter[]; + /** Filter by the object’s `registryBindings` relation. */ + registryBindings?: NamespaceToManyRegistryBindingFilter; + /** `registryBindings` exist. */ + registryBindingsExist?: boolean; + /** Filter by the object’s `resourceDefinitions` relation. */ + resourceDefinitions?: NamespaceToManyResourceDefinitionFilter; + /** `resourceDefinitions` exist. */ + resourceDefinitionsExist?: boolean; + /** Filter by the object’s `resourceInstallations` relation. */ + resourceInstallations?: NamespaceToManyResourceInstallationFilter; + /** `resourceInstallations` exist. */ + resourceInstallationsExist?: boolean; + /** Filter by the object’s `resources` relation. */ + resources?: NamespaceToManyResourceFilter; + /** `resources` exist. */ + resourcesExist?: boolean; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `webhookEndpoints` relation. */ + webhookEndpoints?: NamespaceToManyWebhookEndpointFilter; + /** `webhookEndpoints` exist. */ + webhookEndpointsExist?: boolean; } -/** A filter to be used against many `FunctionCapabilityBinding` object types. All fields are combined with a logical ‘and.’ */ -export interface FunctionDefinitionToManyFunctionCapabilityBindingFilter { - /** Filters to entities where every related entity matches. */ - every?: FunctionCapabilityBindingFilter; - /** Filters to entities where no related entity matches. */ - none?: FunctionCapabilityBindingFilter; - /** Filters to entities where at least one related entity matches. */ - some?: FunctionCapabilityBindingFilter; +/** A filter to be used against `FunctionGraph` object types. All fields are combined with a logical ‘and.’ */ +export interface FunctionGraphFilter { + /** Checks for all expressions in this list. */ + and?: FunctionGraphFilter[]; + /** Filter by the object’s `context` field. */ + context?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `definitionsCommitId` field. */ + definitionsCommitId?: UUIDFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `functionGraphExecutionsByGraphId` relation. */ + functionGraphExecutionsByGraphId?: FunctionGraphToManyFunctionGraphExecutionFilter; + /** `functionGraphExecutionsByGraphId` exist. */ + functionGraphExecutionsByGraphIdExist?: boolean; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isValid` field. */ + isValid?: BooleanFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: FunctionGraphFilter; + /** Checks for any expressions in this list. */ + or?: FunctionGraphFilter[]; + /** Filter by the object’s `platformFunctionDefinitionsByGraphId` relation. */ + platformFunctionDefinitionsByGraphId?: FunctionGraphToManyPlatformFunctionDefinitionFilter; + /** `platformFunctionDefinitionsByGraphId` exist. */ + platformFunctionDefinitionsByGraphIdExist?: boolean; + /** Filter by the object’s `platformRepositoryWorkflowsByGraphId` relation. */ + platformRepositoryWorkflowsByGraphId?: FunctionGraphToManyPlatformRepositoryWorkflowFilter; + /** `platformRepositoryWorkflowsByGraphId` exist. */ + platformRepositoryWorkflowsByGraphIdExist?: boolean; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; + /** Filter by the object’s `storeId` field. */ + storeId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `validationErrors` field. */ + validationErrors?: JSONFilter; } -/** A filter to be used against many `WebhookEndpoint` object types. All fields are combined with a logical ‘and.’ */ -export interface FunctionDefinitionToManyWebhookEndpointFilter { - /** Filters to entities where every related entity matches. */ - every?: WebhookEndpointFilter; - /** Filters to entities where no related entity matches. */ - none?: WebhookEndpointFilter; - /** Filters to entities where at least one related entity matches. */ - some?: WebhookEndpointFilter; +/** A filter to be used against `PlatformRepository` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformRepositoryFilter { + /** Checks for all expressions in this list. */ + and?: PlatformRepositoryFilter[]; + /** Filter by the object’s `cloneUrl` field. */ + cloneUrl?: StringTrgmFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `defaultBranch` field. */ + defaultBranch?: StringTrgmFilter; + /** Filter by the object’s `description` field. */ + description?: StringTrgmFilter; + /** Filter by the object’s `embedding` field. */ + embedding?: VectorFilter; + /** Filter by the object’s `embeddingUpdatedAt` field. */ + embeddingUpdatedAt?: DatetimeFilter; + /** Filter by the object’s `externalId` field. */ + externalId?: StringTrgmFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isArchived` field. */ + isArchived?: BooleanFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `name` field. */ + name?: StringTrgmFilter; + /** Negates the expression. */ + not?: PlatformRepositoryFilter; + /** Checks for any expressions in this list. */ + or?: PlatformRepositoryFilter[]; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `platformBuildsByRepositoryId` relation. */ + platformBuildsByRepositoryId?: PlatformRepositoryToManyPlatformBuildFilter; + /** `platformBuildsByRepositoryId` exist. */ + platformBuildsByRepositoryIdExist?: boolean; + /** Filter by the object’s `platformProposalsByRepositoryId` relation. */ + platformProposalsByRepositoryId?: PlatformRepositoryToManyPlatformProposalFilter; + /** `platformProposalsByRepositoryId` exist. */ + platformProposalsByRepositoryIdExist?: boolean; + /** Filter by the object’s `platformRepositoryEventsByRepositoryId` relation. */ + platformRepositoryEventsByRepositoryId?: PlatformRepositoryToManyPlatformRepositoryEventFilter; + /** `platformRepositoryEventsByRepositoryId` exist. */ + platformRepositoryEventsByRepositoryIdExist?: boolean; + /** Filter by the object’s `platformRepositoryRequiredChecksByRepositoryId` relation. */ + platformRepositoryRequiredChecksByRepositoryId?: PlatformRepositoryToManyPlatformRepositoryRequiredCheckFilter; + /** `platformRepositoryRequiredChecksByRepositoryId` exist. */ + platformRepositoryRequiredChecksByRepositoryIdExist?: boolean; + /** Filter by the object’s `platformRepositoryWorkflowsByRepositoryId` relation. */ + platformRepositoryWorkflowsByRepositoryId?: PlatformRepositoryToManyPlatformRepositoryWorkflowFilter; + /** `platformRepositoryWorkflowsByRepositoryId` exist. */ + platformRepositoryWorkflowsByRepositoryIdExist?: boolean; + /** Filter by the object’s `provider` field. */ + provider?: StringTrgmFilter; + /** Filter by the object’s `search` field. */ + search?: FullTextFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringTrgmFilter; + /** TRGM search on the `clone_url` column. */ + trgmCloneUrl?: TrgmSearchInput; + /** TRGM search on the `default_branch` column. */ + trgmDefaultBranch?: TrgmSearchInput; + /** TRGM search on the `description` column. */ + trgmDescription?: TrgmSearchInput; + /** TRGM search on the `external_id` column. */ + trgmExternalId?: TrgmSearchInput; + /** TRGM search on the `name` column. */ + trgmName?: TrgmSearchInput; + /** TRGM search on the `provider` column. */ + trgmProvider?: TrgmSearchInput; + /** TRGM search on the `slug` column. */ + trgmSlug?: TrgmSearchInput; + /** TRGM search on the `visibility` column. */ + trgmVisibility?: TrgmSearchInput; + /** TSV search on the `search` column. */ + tsvSearch?: string; + /** + * Composite unified search. Provide a search string and it will be dispatched to + * all text-compatible search algorithms (tsvector, BM25, pg_trgm) + * simultaneously. When the LLM plugin is active, pgvector also participates via + * auto-embedding. Rows matching ANY algorithm are returned. All matching score + * fields are populated. + */ + unifiedSearch?: string; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** VECTOR search on the `embedding` column. */ + vectorEmbedding?: VectorNearbyInput; + /** Filter by the object’s `visibility` field. */ + visibility?: StringTrgmFilter; +} +/** A filter to be used against `Image` object types. All fields are combined with a logical ‘and.’ */ +export interface ImageFilter { + /** Checks for all expressions in this list. */ + and?: ImageFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `digest` field. */ + digest?: StringFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `imageGrants` relation. */ + imageGrants?: ImageToManyImageGrantFilter; + /** `imageGrants` exist. */ + imageGrantsExist?: boolean; + /** Filter by the object’s `isPublished` field. */ + isPublished?: BooleanFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: ImageFilter; + /** Checks for any expressions in this list. */ + or?: ImageFilter[]; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `platformOnly` field. */ + platformOnly?: BooleanFilter; + /** Filter by the object’s `registryHost` field. */ + registryHost?: StringFilter; + /** Filter by the object’s `repository` field. */ + repository?: StringFilter; + /** Filter by the object’s `runtime` field. */ + runtime?: StringFilter; + /** Filter by the object’s `tag` field. */ + tag?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -/** A filter to be used against many `FunctionGraphExecution` object types. All fields are combined with a logical ‘and.’ */ -export interface FunctionGraphToManyFunctionGraphExecutionFilter { - /** Filters to entities where every related entity matches. */ - every?: FunctionGraphExecutionFilter; - /** Filters to entities where no related entity matches. */ - none?: FunctionGraphExecutionFilter; - /** Filters to entities where at least one related entity matches. */ - some?: FunctionGraphExecutionFilter; +/** A filter to be used against `PlatformNamespace` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformNamespaceFilter { + /** Checks for all expressions in this list. */ + and?: PlatformNamespaceFilter[]; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Filter by the object’s `clusterId` field. */ + clusterId?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; + /** Filter by the object’s `isManaged` field. */ + isManaged?: BooleanFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `namespaceName` field. */ + namespaceName?: StringFilter; + /** Negates the expression. */ + not?: PlatformNamespaceFilter; + /** Checks for any expressions in this list. */ + or?: PlatformNamespaceFilter[]; + /** Filter by the object’s `platformBuilderBindingsByNamespaceId` relation. */ + platformBuilderBindingsByNamespaceId?: PlatformNamespaceToManyPlatformBuilderBindingFilter; + /** `platformBuilderBindingsByNamespaceId` exist. */ + platformBuilderBindingsByNamespaceIdExist?: boolean; + /** Filter by the object’s `platformFunctionDeploymentsByNamespaceId` relation. */ + platformFunctionDeploymentsByNamespaceId?: PlatformNamespaceToManyPlatformFunctionDeploymentFilter; + /** `platformFunctionDeploymentsByNamespaceId` exist. */ + platformFunctionDeploymentsByNamespaceIdExist?: boolean; + /** Filter by the object’s `platformRegistryBindingsByNamespaceId` relation. */ + platformRegistryBindingsByNamespaceId?: PlatformNamespaceToManyPlatformRegistryBindingFilter; + /** `platformRegistryBindingsByNamespaceId` exist. */ + platformRegistryBindingsByNamespaceIdExist?: boolean; + /** Filter by the object’s `platformResourceDefinitionsByNamespaceId` relation. */ + platformResourceDefinitionsByNamespaceId?: PlatformNamespaceToManyPlatformResourceDefinitionFilter; + /** `platformResourceDefinitionsByNamespaceId` exist. */ + platformResourceDefinitionsByNamespaceIdExist?: boolean; + /** Filter by the object’s `platformResourceInstallationsByNamespaceId` relation. */ + platformResourceInstallationsByNamespaceId?: PlatformNamespaceToManyPlatformResourceInstallationFilter; + /** `platformResourceInstallationsByNamespaceId` exist. */ + platformResourceInstallationsByNamespaceIdExist?: boolean; + /** Filter by the object’s `platformResourcesByNamespaceId` relation. */ + platformResourcesByNamespaceId?: PlatformNamespaceToManyPlatformResourceFilter; + /** `platformResourcesByNamespaceId` exist. */ + platformResourcesByNamespaceIdExist?: boolean; + /** Filter by the object’s `platformWebhookEndpointsByNamespaceId` relation. */ + platformWebhookEndpointsByNamespaceId?: PlatformNamespaceToManyPlatformWebhookEndpointFilter; + /** `platformWebhookEndpointsByNamespaceId` exist. */ + platformWebhookEndpointsByNamespaceIdExist?: boolean; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; } -/** A filter to be used against many `PlatformFunctionDefinition` object types. All fields are combined with a logical ‘and.’ */ -export interface FunctionGraphToManyPlatformFunctionDefinitionFilter { - /** Filters to entities where every related entity matches. */ - every?: PlatformFunctionDefinitionFilter; - /** Filters to entities where no related entity matches. */ - none?: PlatformFunctionDefinitionFilter; - /** Filters to entities where at least one related entity matches. */ - some?: PlatformFunctionDefinitionFilter; +/** A filter to be used against `PlatformImage` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformImageFilter { + /** Checks for all expressions in this list. */ + and?: PlatformImageFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `digest` field. */ + digest?: StringFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isPublished` field. */ + isPublished?: BooleanFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: PlatformImageFilter; + /** Checks for any expressions in this list. */ + or?: PlatformImageFilter[]; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `platformImageGrantsByImageId` relation. */ + platformImageGrantsByImageId?: PlatformImageToManyPlatformImageGrantFilter; + /** `platformImageGrantsByImageId` exist. */ + platformImageGrantsByImageIdExist?: boolean; + /** Filter by the object’s `platformOnly` field. */ + platformOnly?: BooleanFilter; + /** Filter by the object’s `registryHost` field. */ + registryHost?: StringFilter; + /** Filter by the object’s `repository` field. */ + repository?: StringFilter; + /** Filter by the object’s `runtime` field. */ + runtime?: StringFilter; + /** Filter by the object’s `tag` field. */ + tag?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -/** A filter to be used against Base64EncodedBinary fields. All fields are combined with a logical ‘and.’ */ -export interface Base64EncodedBinaryFilter { +/** A filter to be used against Vector fields. All fields are combined with a logical ‘and.’ */ +export interface VectorFilter { /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: Base64EncodedBinary; + distinctFrom?: number[]; /** Equal to the specified value. */ - equalTo?: Base64EncodedBinary; + equalTo?: number[]; /** Included in the specified list. */ - in?: Base64EncodedBinary[]; + in?: number[][]; /** Is null (if `true` is specified) or is not null (if `false` is specified). */ isNull?: boolean; /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: Base64EncodedBinary; + notDistinctFrom?: number[]; /** Not equal to the specified value. */ - notEqualTo?: Base64EncodedBinary; + notEqualTo?: number[]; /** Not included in the specified list. */ - notIn?: Base64EncodedBinary[]; + notIn?: number[][]; } -/** A filter to be used against ConstructiveInternalTypeImage fields. All fields are combined with a logical ‘and.’ */ -export interface ConstructiveInternalTypeImageFilter { - /** Contained by the specified JSON. */ - containedBy?: ConstructiveInternalTypeImage; - /** Contains the specified JSON. */ - contains?: ConstructiveInternalTypeImage; - /** Contains all of the specified keys. */ - containsAllKeys?: string[]; - /** Contains any of the specified keys. */ - containsAnyKeys?: string[]; - /** Contains the specified key. */ - containsKey?: string; +/** A filter to be used against BigFloat fields. All fields are combined with a logical ‘and.’ */ +export interface BigFloatFilter { /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: ConstructiveInternalTypeImage; + distinctFrom?: string; /** Equal to the specified value. */ - equalTo?: ConstructiveInternalTypeImage; + equalTo?: string; /** Greater than the specified value. */ - greaterThan?: ConstructiveInternalTypeImage; + greaterThan?: string; /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: ConstructiveInternalTypeImage; + greaterThanOrEqualTo?: string; /** Included in the specified list. */ - in?: ConstructiveInternalTypeImage[]; + in?: string[]; /** Is null (if `true` is specified) or is not null (if `false` is specified). */ isNull?: boolean; /** Less than the specified value. */ - lessThan?: ConstructiveInternalTypeImage; + lessThan?: string; /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: ConstructiveInternalTypeImage; + lessThanOrEqualTo?: string; /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: ConstructiveInternalTypeImage; + notDistinctFrom?: string; /** Not equal to the specified value. */ - notEqualTo?: ConstructiveInternalTypeImage; + notEqualTo?: string; /** Not included in the specified list. */ - notIn?: ConstructiveInternalTypeImage[]; + notIn?: string[]; } -/** A filter to be used against many `FunctionDeployment` object types. All fields are combined with a logical ‘and.’ */ -export interface NamespaceToManyFunctionDeploymentFilter { - /** Filters to entities where every related entity matches. */ - every?: FunctionDeploymentFilter; - /** Filters to entities where no related entity matches. */ - none?: FunctionDeploymentFilter; - /** Filters to entities where at least one related entity matches. */ - some?: FunctionDeploymentFilter; +/** A filter to be used against FullText fields. All fields are combined with a logical ‘and.’ */ +export interface FullTextFilter { + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: string; + /** Equal to the specified value. */ + equalTo?: string; + /** Included in the specified list. */ + in?: string[]; + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Performs a full text search on the field. */ + matches?: 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 many `ResourceDefinition` object types. All fields are combined with a logical ‘and.’ */ -export interface NamespaceToManyResourceDefinitionFilter { - /** Filters to entities where every related entity matches. */ - every?: ResourceDefinitionFilter; - /** Filters to entities where no related entity matches. */ - none?: ResourceDefinitionFilter; - /** Filters to entities where at least one related entity matches. */ - some?: ResourceDefinitionFilter; +// ============ Payload/Return Types (for custom operations) ============ +export interface AddEdgePayload { + clientMutationId?: string | null; + result?: string | null; } -/** A filter to be used against many `ResourceInstallation` object types. All fields are combined with a logical ‘and.’ */ -export interface NamespaceToManyResourceInstallationFilter { - /** Filters to entities where every related entity matches. */ - every?: ResourceInstallationFilter; - /** Filters to entities where no related entity matches. */ - none?: ResourceInstallationFilter; - /** Filters to entities where at least one related entity matches. */ - some?: ResourceInstallationFilter; +export type AddEdgePayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface AddEdgeAndSavePayload { + clientMutationId?: string | null; + result?: string | null; } -/** A filter to be used against many `Resource` object types. All fields are combined with a logical ‘and.’ */ -export interface NamespaceToManyResourceFilter { - /** Filters to entities where every related entity matches. */ - every?: ResourceFilter; - /** Filters to entities where no related entity matches. */ - none?: ResourceFilter; - /** Filters to entities where at least one related entity matches. */ - some?: ResourceFilter; +export type AddEdgeAndSavePayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface AddNodePayload { + clientMutationId?: string | null; + result?: string | null; } -/** A filter to be used against many `WebhookEndpoint` object types. All fields are combined with a logical ‘and.’ */ -export interface NamespaceToManyWebhookEndpointFilter { - /** Filters to entities where every related entity matches. */ - every?: WebhookEndpointFilter; - /** Filters to entities where no related entity matches. */ - none?: WebhookEndpointFilter; - /** Filters to entities where at least one related entity matches. */ - some?: WebhookEndpointFilter; +export type AddNodePayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface AddNodeAndSavePayload { + clientMutationId?: string | null; + result?: string | null; } -/** A filter to be used against many `PlatformFunctionInvocation` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformFunctionApiBindingToManyPlatformFunctionInvocationFilter { - /** Filters to entities where every related entity matches. */ - every?: PlatformFunctionInvocationFilter; - /** Filters to entities where no related entity matches. */ - none?: PlatformFunctionInvocationFilter; - /** Filters to entities where at least one related entity matches. */ - some?: PlatformFunctionInvocationFilter; +export type AddNodeAndSavePayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface ApproveNodePayload { + clientMutationId?: string | null; } -/** A filter to be used against many `PlatformFunctionApiBinding` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformFunctionDefinitionToManyPlatformFunctionApiBindingFilter { - /** Filters to entities where every related entity matches. */ - every?: PlatformFunctionApiBindingFilter; - /** Filters to entities where no related entity matches. */ - none?: PlatformFunctionApiBindingFilter; - /** Filters to entities where at least one related entity matches. */ - some?: PlatformFunctionApiBindingFilter; +export type ApproveNodePayloadSelect = { + clientMutationId?: boolean; +}; +export interface CopyGraphPayload { + clientMutationId?: string | null; + result?: string | null; } -/** A filter to be used against many `PlatformFunctionCapabilityBinding` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformFunctionDefinitionToManyPlatformFunctionCapabilityBindingFilter { - /** Filters to entities where every related entity matches. */ - every?: PlatformFunctionCapabilityBindingFilter; - /** Filters to entities where no related entity matches. */ - none?: PlatformFunctionCapabilityBindingFilter; - /** Filters to entities where at least one related entity matches. */ - some?: PlatformFunctionCapabilityBindingFilter; +export type CopyGraphPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface DatabaseAddEdgePayload { + clientMutationId?: string | null; + result?: string | null; +} +export type DatabaseAddEdgePayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface DatabaseAddEdgeAndSavePayload { + clientMutationId?: string | null; + result?: string | null; +} +export type DatabaseAddEdgeAndSavePayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface DatabaseAddNodePayload { + clientMutationId?: string | null; + result?: string | null; +} +export type DatabaseAddNodePayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface DatabaseAddNodeAndSavePayload { + clientMutationId?: string | null; + result?: string | null; +} +export type DatabaseAddNodeAndSavePayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface DatabaseApproveNodePayload { + clientMutationId?: string | null; } -/** A filter to be used against many `PlatformWebhookEndpoint` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformFunctionDefinitionToManyPlatformWebhookEndpointFilter { - /** Filters to entities where every related entity matches. */ - every?: PlatformWebhookEndpointFilter; - /** Filters to entities where no related entity matches. */ - none?: PlatformWebhookEndpointFilter; - /** Filters to entities where at least one related entity matches. */ - some?: PlatformWebhookEndpointFilter; +export type DatabaseApproveNodePayloadSelect = { + clientMutationId?: boolean; +}; +export interface DatabaseCopyGraphPayload { + clientMutationId?: string | null; + result?: string | null; } -/** A filter to be used against many `PlatformFunctionDeployment` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformNamespaceToManyPlatformFunctionDeploymentFilter { - /** Filters to entities where every related entity matches. */ - every?: PlatformFunctionDeploymentFilter; - /** Filters to entities where no related entity matches. */ - none?: PlatformFunctionDeploymentFilter; - /** Filters to entities where at least one related entity matches. */ - some?: PlatformFunctionDeploymentFilter; +export type DatabaseCopyGraphPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface DatabaseCreateFunctionGraphPayload { + clientMutationId?: string | null; + result?: string | null; } -/** A filter to be used against many `PlatformResourceDefinition` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformNamespaceToManyPlatformResourceDefinitionFilter { - /** Filters to entities where every related entity matches. */ - every?: PlatformResourceDefinitionFilter; - /** Filters to entities where no related entity matches. */ - none?: PlatformResourceDefinitionFilter; - /** Filters to entities where at least one related entity matches. */ - some?: PlatformResourceDefinitionFilter; +export type DatabaseCreateFunctionGraphPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface DatabaseGraphInitEmptyRepoPayload { + clientMutationId?: string | null; } -/** A filter to be used against many `PlatformResourceInstallation` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformNamespaceToManyPlatformResourceInstallationFilter { - /** Filters to entities where every related entity matches. */ - every?: PlatformResourceInstallationFilter; - /** Filters to entities where no related entity matches. */ - none?: PlatformResourceInstallationFilter; - /** Filters to entities where at least one related entity matches. */ - some?: PlatformResourceInstallationFilter; +export type DatabaseGraphInitEmptyRepoPayloadSelect = { + clientMutationId?: boolean; +}; +export interface DatabaseGraphInsertNodeAtPathPayload { + clientMutationId?: string | null; + result?: string | null; } -/** A filter to be used against many `PlatformResource` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformNamespaceToManyPlatformResourceFilter { - /** Filters to entities where every related entity matches. */ - every?: PlatformResourceFilter; - /** Filters to entities where no related entity matches. */ - none?: PlatformResourceFilter; - /** Filters to entities where at least one related entity matches. */ - some?: PlatformResourceFilter; +export type DatabaseGraphInsertNodeAtPathPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface DatabaseGraphInsertNodesAtPathsPayload { + clientMutationId?: string | null; + result?: string | null; } -/** A filter to be used against many `PlatformWebhookEndpoint` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformNamespaceToManyPlatformWebhookEndpointFilter { - /** Filters to entities where every related entity matches. */ - every?: PlatformWebhookEndpointFilter; - /** Filters to entities where no related entity matches. */ - none?: PlatformWebhookEndpointFilter; - /** Filters to entities where at least one related entity matches. */ - some?: PlatformWebhookEndpointFilter; +export type DatabaseGraphInsertNodesAtPathsPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface DatabaseGraphSetAndCommitPayload { + clientMutationId?: string | null; + databaseGraphCommitEdge?: DatabaseGraphCommitEdge | null; + result?: DatabaseGraphCommit | null; } -/** A filter to be used against many `PlatformResourceStatusCheck` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformResourceToManyPlatformResourceStatusCheckFilter { - /** Filters to entities where every related entity matches. */ - every?: PlatformResourceStatusCheckFilter; - /** Filters to entities where no related entity matches. */ - none?: PlatformResourceStatusCheckFilter; - /** Filters to entities where at least one related entity matches. */ - some?: PlatformResourceStatusCheckFilter; +export type DatabaseGraphSetAndCommitPayloadSelect = { + clientMutationId?: boolean; + databaseGraphCommitEdge?: { + select: DatabaseGraphCommitEdgeSelect; + }; + result?: { + select: DatabaseGraphCommitSelect; + }; +}; +export interface DatabaseGraphSetDataAtPathPayload { + clientMutationId?: string | null; + result?: string | null; } -/** A filter to be used against many `PlatformResource` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformResourceDefinitionToManyPlatformResourceFilter { - /** Filters to entities where every related entity matches. */ - every?: PlatformResourceFilter; - /** Filters to entities where no related entity matches. */ - none?: PlatformResourceFilter; - /** Filters to entities where at least one related entity matches. */ - some?: PlatformResourceFilter; +export type DatabaseGraphSetDataAtPathPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface DatabaseGraphSetManyAndCommitPayload { + clientMutationId?: string | null; + databaseGraphCommitEdge?: DatabaseGraphCommitEdge | null; + result?: DatabaseGraphCommit | null; } -/** A filter to be used against Interval fields. All fields are combined with a logical ‘and.’ */ -export interface IntervalFilter { - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: IntervalInput; - /** Equal to the specified value. */ - equalTo?: IntervalInput; - /** Greater than the specified value. */ - greaterThan?: IntervalInput; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: IntervalInput; - /** Included in the specified list. */ - in?: IntervalInput[]; - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Less than the specified value. */ - lessThan?: IntervalInput; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: IntervalInput; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: IntervalInput; - /** Not equal to the specified value. */ - notEqualTo?: IntervalInput; - /** Not included in the specified list. */ - notIn?: IntervalInput[]; +export type DatabaseGraphSetManyAndCommitPayloadSelect = { + clientMutationId?: boolean; + databaseGraphCommitEdge?: { + select: DatabaseGraphCommitEdgeSelect; + }; + result?: { + select: DatabaseGraphCommitSelect; + }; +}; +export interface DatabaseImportDefinitionsPayload { + clientMutationId?: string | null; } -/** A filter to be used against many `PlatformResource` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformResourceInstallationToManyPlatformResourceFilter { - /** Filters to entities where every related entity matches. */ - every?: PlatformResourceFilter; - /** Filters to entities where no related entity matches. */ - none?: PlatformResourceFilter; - /** Filters to entities where at least one related entity matches. */ - some?: PlatformResourceFilter; +export type DatabaseImportDefinitionsPayloadSelect = { + clientMutationId?: boolean; +}; +export interface DatabaseImportGraphJsonPayload { + clientMutationId?: string | null; + result?: string | null; } -/** A filter to be used against many `PlatformWebhookEvent` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformWebhookEndpointToManyPlatformWebhookEventFilter { - /** Filters to entities where every related entity matches. */ - every?: PlatformWebhookEventFilter; - /** Filters to entities where no related entity matches. */ - none?: PlatformWebhookEventFilter; - /** Filters to entities where at least one related entity matches. */ - some?: PlatformWebhookEventFilter; +export type DatabaseImportGraphJsonPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface DatabaseSaveGraphPayload { + clientMutationId?: string | null; + result?: string | null; } -/** A filter to be used against many `ResourceStatusCheck` object types. All fields are combined with a logical ‘and.’ */ -export interface ResourceToManyResourceStatusCheckFilter { - /** Filters to entities where every related entity matches. */ - every?: ResourceStatusCheckFilter; - /** Filters to entities where no related entity matches. */ - none?: ResourceStatusCheckFilter; - /** Filters to entities where at least one related entity matches. */ - some?: ResourceStatusCheckFilter; +export type DatabaseSaveGraphPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface DatabaseStartExecutionPayload { + clientMutationId?: string | null; + result?: string | null; } -/** A filter to be used against many `Resource` object types. All fields are combined with a logical ‘and.’ */ -export interface ResourceDefinitionToManyResourceFilter { - /** Filters to entities where every related entity matches. */ - every?: ResourceFilter; - /** Filters to entities where no related entity matches. */ - none?: ResourceFilter; - /** Filters to entities where at least one related entity matches. */ - some?: ResourceFilter; +export type DatabaseStartExecutionPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface DatabaseValidateFunctionGraphPayload { + clientMutationId?: string | null; + result?: boolean | null; } -/** A filter to be used against many `Resource` object types. All fields are combined with a logical ‘and.’ */ -export interface ResourceInstallationToManyResourceFilter { - /** Filters to entities where every related entity matches. */ - every?: ResourceFilter; - /** Filters to entities where no related entity matches. */ - none?: ResourceFilter; - /** Filters to entities where at least one related entity matches. */ - some?: ResourceFilter; +export type DatabaseValidateFunctionGraphPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface FunctionInvocationsCreateSyncPayload { + clientMutationId?: string | null; + functionInvocationEdge?: FunctionInvocationEdge | null; + result?: FunctionInvocation | null; } -/** A filter to be used against many `WebhookEvent` object types. All fields are combined with a logical ‘and.’ */ -export interface WebhookEndpointToManyWebhookEventFilter { - /** Filters to entities where every related entity matches. */ - every?: WebhookEventFilter; - /** Filters to entities where no related entity matches. */ - none?: WebhookEventFilter; - /** Filters to entities where at least one related entity matches. */ - some?: WebhookEventFilter; +export type FunctionInvocationsCreateSyncPayloadSelect = { + clientMutationId?: boolean; + functionInvocationEdge?: { + select: FunctionInvocationEdgeSelect; + }; + result?: { + select: FunctionInvocationSelect; + }; +}; +export interface ImportDefinitionsPayload { + clientMutationId?: string | null; } -/** 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; +export type ImportDefinitionsPayloadSelect = { + clientMutationId?: boolean; +}; +export interface ImportGraphJsonPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type ImportGraphJsonPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface InfraInitEmptyRepoPayload { + clientMutationId?: string | null; +} +export type InfraInitEmptyRepoPayloadSelect = { + clientMutationId?: boolean; +}; +export interface InfraInsertNodeAtPathPayload { + clientMutationId?: string | null; + result?: string | null; } -/** An input for mutations affecting `DbPreset` */ -export interface DbPresetInput { - /** Whether this preset is selectable for new databases */ - 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; - /** Preset definition (modules + options) — 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; - /** Human-readable preset name */ - label?: string; - /** Content-address of definition->modules via metaschema_private.modules_hash (stamped by the versioned trigger); fast exact-match lookup key for provisioning requests */ - modulesHash?: string; - /** Preset slug (unique per scope); the preset's path in the infra tree is [db_preset, 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 type InfraInsertNodeAtPathPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface InfraInsertNodesAtPathsPayload { + clientMutationId?: string | null; + result?: string | null; } -/** An input for mutations affecting `FunctionApiBinding` */ -export interface FunctionApiBindingInput { - /** Binding alias (e.g. default, staging, production) */ - alias?: string; - /** API endpoint this function is bound to */ - apiId: string; - /** Per-binding configuration (overrides, routing rules, etc.) */ - config?: Record; - createdAt?: string; - /** Function definition this binding belongs to */ - functionDefinitionId: string; - id?: string; - updatedAt?: string; +export type InfraInsertNodesAtPathsPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface InfraSetAndCommitPayload { + clientMutationId?: string | null; + infraCommitEdge?: InfraCommitEdge | null; + result?: InfraCommit | null; } -/** An input for mutations affecting `FunctionCapabilityBinding` */ -export interface FunctionCapabilityBindingInput { - /** Bucket this capability targets (exactly one typed target is set) */ - bucketId?: string; - createdAt?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - /** Function definition holding this capability (exactly one of function_id / graph_id is set) */ - functionId?: string; - /** Flow graph holding this capability (exactly one of function_id / graph_id is set) */ - graphId?: string; - id?: string; - /** Runtime handle the holder addresses this capability by (e.g. default, scratch) */ - key?: string; - /** Lifecycle the capability applies to: deployment (build/deploy time), execution (per invocation), root_execution (root of a graph execution tree) */ - lifecycle: string; - /** Per-binding annotations (no runtime semantics) */ - metadata?: Record; - updatedAt?: string; +export type InfraSetAndCommitPayloadSelect = { + clientMutationId?: boolean; + infraCommitEdge?: { + select: InfraCommitEdgeSelect; + }; + result?: { + select: InfraCommitSelect; + }; +}; +export interface InfraSetDataAtPathPayload { + clientMutationId?: string | null; + result?: string | null; } -/** An input for mutations affecting `FunctionDefinition` */ -export interface FunctionDefinitionInput { - /** 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; - /** Knative containerConcurrency — max concurrent requests per pod instance */ - concurrency?: number; - createdAt?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - /** Human-readable description of what this function does */ - description?: string; - /** Palette grouping category (e.g. email, data, ai, custom) */ - fnCategory?: string; - /** Ordered array of module_table column names holding the generated function names to invoke when runtime=sql (module mode). NULL for direct mode and other runtimes. */ - functionColumns?: Record; - /** Existing flow graph invoked when runtime=graph. Required for graph runtime and forbidden for all other runtimes. */ - graphId?: string; - /** Icon identifier for UI palette rendering (e.g. mail, database, code) */ - icon?: string; - id?: string; - /** Docker image reference (e.g. ghcr.io/constructive-io/email-send-fn:latest). Required when runtime=http or runtime=resource. NULL for inline functions. */ - image?: string; - /** Data input ports: [{name, type, description?, optional?, multi?, schema?}] */ - inputs?: Record; - /** Provider slugs (e.g. mailgun, postgres) associated with this function. The UI uses this to auto-fill required_secrets and required_configs from integration_providers. */ - integrations?: string[]; - /** Whether this function definition is published to the public catalog for direct authenticated invocation. Default false = internal-only via add_job() */ - isPublished?: boolean; - /** Maximum retry attempts for the underlying job */ - maxAttempts?: number; - /** metaschema_modules_public table whose per-database row carries the generated function names when runtime=sql (module mode). NULL for direct mode and other runtimes. */ - moduleTable?: string; - /** Function name within category (e.g. send_verification_link, process_file_embedding) */ - name: string; - /** Data output ports: [{name, type, description?, optional?, multi?, schema?}] */ - outputs?: Record; - /** Ordered bind-parameter mapping for runtime=sql: [{name, type}]. payload[name] is bound as $n::type. */ - payloadArgs?: Record; - /** Job priority (lower = higher priority) */ - priority?: number; - /** Configuration properties: [{name, type, default?, description?, required?, schema?}] */ - props?: Record; - /** Protected platform definition: narrower scopes cannot register the same task_identifier */ - protected?: boolean; - /** Timestamp when this function was published. NULL means immediately published when is_published is true; future timestamps delay public visibility */ - publishedAt?: string; - /** Job queue name for serialization (e.g. email, ai, default) */ - queueName?: string; - /** 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}} */ - resources?: Record; - /** Execution mode: http (Knative Service dispatch), inline (in-process in compute worker), handler (registered infrastructure handler), sql (generic SQL dispatch via a trusted direct target or module-resolved function names), resource (Kubernetes Job via the resource module with node-gateway callbacks), or graph (existing flow graph referenced by graph_id) */ - runtime?: string; - /** Maximum pod count for Knative autoscaling (maxScale) */ - scaleMax?: number; - /** Minimum pod count for Knative autoscaling (minScale) */ - scaleMin?: number; - /** Name of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. */ - targetFunction?: string; - /** Schema of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. */ - targetSchema?: string; - /** Knative request timeout in seconds */ - timeoutSeconds?: number; - updatedAt?: string; - /** Whether this function has side effects and cannot be cached or memoized */ - volatile?: boolean; +export type InfraSetDataAtPathPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface InfraSetManyAndCommitPayload { + clientMutationId?: string | null; + infraCommitEdge?: InfraCommitEdge | null; + result?: InfraCommit | null; } -/** An input for mutations affecting `ResourceRequirement` */ -export interface ResourceRequirementInput { - name?: string; - provider?: string; - required?: boolean; +export type InfraSetManyAndCommitPayloadSelect = { + clientMutationId?: boolean; + infraCommitEdge?: { + select: InfraCommitEdgeSelect; + }; + result?: { + select: InfraCommitSelect; + }; +}; +export interface InitEmptyRepoPayload { + clientMutationId?: string | null; } -/** An input for mutations affecting `FunctionDeployment` */ -export interface FunctionDeploymentInput { - /** Freeform metadata for tooling and operational notes */ - annotations?: Record; - /** Max concurrent requests per pod (NULL = inherit from definition) */ - concurrency?: number; - createdAt?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - /** Cumulative error count for this deployment */ - errorCount?: number; - /** Handler directory name (e.g. email, document) — used as FN_HANDLER_NAME in combined-image mode to select the entry point */ - handlerName?: string; - id?: string; - /** Logical image name — the handler identity and grouping key (e.g. fn-email). No registry host or tag; tag lives in image_version. */ - image: string; - /** Image tag/version for the handler container (e.g. latest, 2.6.4) */ - imageVersion?: string; - /** Key/value pairs for selecting and filtering deployments */ - labels?: Record; - /** Most recent provisioning or runtime error message */ - lastError?: string; - /** Timestamp of the most recent error */ - 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) */ - revision?: number; - /** Maximum replica count (NULL = inherit from definition or Knative default) */ - scaleMax?: number; - /** Minimum replica count (NULL = inherit from definition or Knative default) */ - scaleMin?: number; - /** Knative service name — a randomly minted cute name (unique_names.generate_name() + random hex suffix) assigned by the service_url trigger; unique per namespace, not derived from the image */ - serviceName?: string; - /** Knative service URL (http://{service-name}.{namespace}.svc.cluster.local) — populated after provisioning */ - serviceUrl?: string; - /** Deployment lifecycle status: pending, provisioning, active, failed, scaled_to_zero, deactivated */ - status?: string; - /** Request timeout override in seconds (NULL = inherit from definition) */ - timeoutSeconds?: number; - updatedAt?: string; +export type InitEmptyRepoPayloadSelect = { + clientMutationId?: boolean; +}; +export interface InsertNodeAtPathPayload { + clientMutationId?: string | null; + result?: string | null; +} +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 PlatformFunctionInvocationsCreateSyncPayload { + clientMutationId?: string | null; + platformFunctionInvocationEdge?: PlatformFunctionInvocationEdge | null; + result?: PlatformFunctionInvocation | null; +} +export type PlatformFunctionInvocationsCreateSyncPayloadSelect = { + clientMutationId?: boolean; + platformFunctionInvocationEdge?: { + select: PlatformFunctionInvocationEdgeSelect; + }; + result?: { + select: PlatformFunctionInvocationSelect; + }; +}; +export interface PlatformInfraInitEmptyRepoPayload { + clientMutationId?: string | null; } -/** An input for mutations affecting `FunctionDeploymentEvent` */ -export interface FunctionDeploymentEventInput { - /** User who triggered this event (NULL for system/automated) */ - actorId?: string; - /** Event timestamp (partition key) */ - createdAt?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - /** Deployment this event belongs to */ - deploymentId: string; - /** Event type: provisioned, scaled, failed, deactivated, redeployed, health_check */ - eventType: string; - /** Unique event identifier */ - id?: string; - /** Human-readable description of the event */ - message?: string; - /** Structured context (old/new values, error details, etc.) */ - metadata?: Record; +export type PlatformInfraInitEmptyRepoPayloadSelect = { + clientMutationId?: boolean; +}; +export interface PlatformInfraInsertNodeAtPathPayload { + clientMutationId?: string | null; + result?: string | null; } -/** An input for mutations affecting `FunctionExecutionLog` */ -export interface FunctionExecutionLogInput { - /** User who triggered the execution (NULL for system/cron) */ - actorId?: string; - /** Log entry timestamp (partition key) */ - createdAt?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - /** Unique log entry identifier */ - id?: string; - /** Invocation this log entry belongs to (NULL for standalone job logs) */ - invocationId?: string; - /** Log severity: debug, info, warn, error */ - logLevel?: string; - /** Log message text */ - message: string; - /** Structured context (labels, trace data, extra fields) */ - metadata?: Record; - /** Function routing key (NULL for generic job logs) */ - taskIdentifier?: string; +export type PlatformInfraInsertNodeAtPathPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface PlatformInfraInsertNodesAtPathsPayload { + clientMutationId?: string | null; + result?: string | null; } -/** An input for mutations affecting `FunctionGraphCommit` */ -export interface FunctionGraphCommitInput { - /** User who authored the changes */ - authorId?: string; - /** User who committed (may differ from author) */ - committerId?: string; - /** Commit timestamp */ - date?: string; - /** Unique commit identifier */ - id?: string; - /** Optional commit message */ - message?: string; - /** Parent commit IDs (supports merge commits) */ - parentIds?: string[]; - /** Opaque store partition key for the global tier */ - scopeId: string; - /** Store this commit belongs to */ - storeId: string; - /** Root object ID of the tree snapshot at this commit */ - treeId?: string; +export type PlatformInfraInsertNodesAtPathsPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface PlatformInfraSetAndCommitPayload { + clientMutationId?: string | null; + platformInfraCommitEdge?: PlatformInfraCommitEdge | null; + result?: PlatformInfraCommit | null; } -/** An input for mutations affecting `FunctionGraphExecution` */ -export interface FunctionGraphExecutionInput { - /** User actor propagated to asynchronous graph jobs */ - actorId?: string; - /** Execution completion timestamp */ - completedAt?: string; - /** Index into execution_plan — tick only processes this wave */ - currentWave?: number; - /** Pinned definitions store commit for deterministic evaluation */ - definitionsCommitId?: string; - /** Entity context propagated to asynchronous graph jobs */ - entityId?: string; - /** Scope discriminator propagated to asynchronous graph jobs */ - entityType?: string; - /** Machine-readable error code when status = failed */ - errorCode?: string; - /** Human-readable error description when status = failed */ - errorMessage?: string; - /** Pre-computed topological sort as array of wave objects */ - executionPlan?: Record; - /** FK to the graph definition being executed */ - graphId: string; - /** Unique execution identifier */ - id?: string; - /** Initial inputs provided at invocation time */ - inputPayload?: Record; - /** Partition coordinate for the function invocation that launched this graph execution */ - invocationCreatedAt?: string; - /** Function invocation that launched this top-level graph execution */ - invocationId?: string; - /** Timestamp of the last real progress (node enqueue, node output, completion) — drives the activity-debounced watchdog */ - lastProgressAt?: string; - /** Maximum pending jobs before execution is failed (default 50) */ - maxPendingJobs?: number; - /** Maximum ticks before execution is failed (default 100) */ - maxTicks?: number; - /** Map of node_name → execution output id (content-addressed hash reference) */ - nodeOutputs?: Record; - /** Organization context propagated to asynchronous graph jobs */ - organizationId?: string; - /** Selected graphOutput portName values; NULL or empty returns all graph outputs */ - outputNames?: string[]; - /** Target output boundary node name to resolve; NULL derives completion from the graph's graphOutput nodes */ - outputNode?: string; - /** Final result extracted from terminal output node */ - outputPayload?: Record; - /** Target output port name (default: value) */ - outputPort?: string; - /** Parent execution when this is a sub-execution */ - parentExecutionId?: string; - /** Function invocation parent assigned to node invocations spawned by this execution */ - parentInvocationId?: string; - /** Node name in parent execution that spawned this sub-execution */ - parentNodeName?: string; - /** Principal identity propagated to asynchronous graph jobs */ - principalId?: string; - /** Opaque store partition key for the global tier */ - scopeId: string; - /** Execution start timestamp */ - startedAt?: string; - /** Lifecycle: pending → running → completed/failed/cancelled */ - status?: string; - /** Number of evaluate_step ticks executed */ - tickCount?: number; - /** Absolute deadline — execution fails if still running after this time */ - timeoutAt?: string; +export type PlatformInfraSetAndCommitPayloadSelect = { + clientMutationId?: boolean; + platformInfraCommitEdge?: { + select: PlatformInfraCommitEdgeSelect; + }; + result?: { + select: PlatformInfraCommitSelect; + }; +}; +export interface PlatformInfraSetDataAtPathPayload { + clientMutationId?: string | null; + result?: string | null; } -/** An input for mutations affecting `FunctionGraphExecutionNodeState` */ -export interface FunctionGraphExecutionNodeStateInput { - /** Snapshot of the node's resolved inputs for resource-runtime nodes — served by the node gateway GET /inputs endpoint */ - callbackInputs?: Record; - /** Metering/attribution context stamped at resource dispatch (namespace_id, task_identifier, entity_id, scope, resource identity, dispatched_at, attempt) — lets the node gateway settle and attribute without extra lookups */ - callbackMeta?: Record; - /** SHA-256 hex digest of the node callback token — set for resource-runtime nodes so the node gateway can authenticate result/error/heartbeat callbacks */ - callbackTokenHash?: string; - /** Timestamp when the node finished (success or failure) */ - completedAt?: string; - /** Timestamp of node state creation (partition key) */ - createdAt?: string; - /** Machine-readable error code when status = failed */ - errorCode?: string; - /** Human-readable error description when status = failed */ - errorMessage?: string; - /** FK to the parent graph execution */ - executionId: string; - /** Unique node state identifier */ - id?: string; - /** Name of the node within the graph (e.g. send-email1) */ - nodeName: string; - /** Full merkle tree path to this node (e.g. {function,graphs,myflow,nodes,send-email1}) — enables subnet hierarchy tracking */ - nodePath?: string[]; - /** FK to execution_outputs — content-addressed output blob for this node */ - outputId?: string; - /** Opaque store partition key for the global tier */ - scopeId: string; - /** Timestamp when the node began executing */ - startedAt?: string; - /** Node lifecycle: pending → queued → running → completed/failed */ - status?: string; +export type PlatformInfraSetDataAtPathPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface PlatformInfraSetManyAndCommitPayload { + clientMutationId?: string | null; + platformInfraCommitEdge?: PlatformInfraCommitEdge | null; + result?: PlatformInfraCommit | null; } -/** An input for mutations affecting `FunctionGraphExecutionOutput` */ -export interface FunctionGraphExecutionOutputInput { - /** Timestamp of output creation */ - createdAt?: string; - /** The actual output payload from a completed node */ - data: Record; - /** SHA-256 hash of the data JSONB — content-addressed deduplication */ - hash: Base64EncodedBinary; - /** Unique execution output identifier */ - id?: string; - /** Opaque store partition key for the global tier */ - scopeId: string; +export type PlatformInfraSetManyAndCommitPayloadSelect = { + clientMutationId?: boolean; + platformInfraCommitEdge?: { + select: PlatformInfraCommitEdgeSelect; + }; + result?: { + select: PlatformInfraCommitSelect; + }; +}; +export interface PlatformResourceInstallationsInstallPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type PlatformResourceInstallationsInstallPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface PlatformResourceInstallationsRollbackPayload { + clientMutationId?: string | null; +} +export type PlatformResourceInstallationsRollbackPayloadSelect = { + clientMutationId?: boolean; +}; +export interface PlatformResourceInstallationsUninstallPayload { + clientMutationId?: string | null; +} +export type PlatformResourceInstallationsUninstallPayloadSelect = { + clientMutationId?: boolean; +}; +export interface PlatformResourceInstallationsUpgradePayload { + clientMutationId?: string | null; +} +export type PlatformResourceInstallationsUpgradePayloadSelect = { + clientMutationId?: boolean; +}; +export interface ProvisionBucketPayload { + /** The logical bucket row that was queued for reconciliation. */ + bucketId: string; + bucketKey: string; + /** The reconciler job enqueued to provision this bucket. */ + jobId: string; + /** The physical bucket name already recorded, or null when reconciliation has not completed. */ + physicalName?: string | null; +} +export type ProvisionBucketPayloadSelect = { + bucketId?: boolean; + bucketKey?: boolean; + jobId?: boolean; + physicalName?: boolean; +}; +export interface ResourceInstallationsInstallPayload { + clientMutationId?: string | null; + result?: string | null; } -/** An input for mutations affecting `FunctionGraphObject` */ -export interface FunctionGraphObjectInput { - /** Timestamp of object creation */ - createdAt?: string; - /** Payload data for this object node */ - data?: Record; - /** Content-addressed UUID v5 — deterministic hash of (data, kids, ktree) */ - id: string; - /** Ordered array of child object IDs */ - kids?: string[]; - /** Ordered array of child path names (parallel to kids) */ - ktree?: string[]; - /** Opaque store partition key for the global tier */ - scopeId: string; +export type ResourceInstallationsInstallPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface ResourceInstallationsRollbackPayload { + clientMutationId?: string | null; } -/** An input for mutations affecting `FunctionGraphRef` */ -export interface FunctionGraphRefInput { - /** Commit this ref points to */ - commitId?: string; - /** Unique ref identifier */ - id?: string; - /** Ref name (e.g. HEAD, main) */ - name: string; - /** Opaque store partition key for the global tier */ - scopeId: string; - /** Store this ref belongs to */ - storeId: string; +export type ResourceInstallationsRollbackPayloadSelect = { + clientMutationId?: boolean; +}; +export interface ResourceInstallationsUninstallPayload { + clientMutationId?: string | null; } -/** An input for mutations affecting `FunctionGraphStore` */ -export interface FunctionGraphStoreInput { - /** Timestamp of store creation */ - createdAt?: string; - /** Current root object hash of this store */ - hash?: string; - /** Unique store identifier */ - id?: string; - /** Human-readable store name */ - name: string; - /** Opaque store partition key for the global tier */ - scopeId: string; +export type ResourceInstallationsUninstallPayloadSelect = { + clientMutationId?: boolean; +}; +export interface ResourceInstallationsUpgradePayload { + clientMutationId?: string | null; } -/** An input for mutations affecting `FunctionInvocationAttempt` */ -export interface FunctionInvocationAttemptInput { - /** Who triggered the invocation (NULL for system/cron) */ - actorId?: string; - /** 1-based attempt number for this invocation */ - attempt: number; - /** When the attempt result was recorded (partition key) */ - createdAt?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - /** Wall-clock attempt time in milliseconds */ - durationMs?: number; - /** Error message when the attempt failed */ - error?: string; - /** Structured error context (stack, code, provider response) */ - errorDetail?: Record; - /** Unique attempt identifier */ - id?: string; - /** created_at of the referenced invocation (partition-pruned lookups against the invocations PK) */ - invocationCreatedAt: string; - /** Invocation this attempt belongs to (soft reference paired with invocation_created_at) */ - invocationId: string; - /** When the attempt began executing */ - startedAt?: string; - /** Whether this attempt completed successfully */ - success: boolean; - /** Function routing slug (denormalized from the invocation) */ - taskIdentifier: string; +export type ResourceInstallationsUpgradePayloadSelect = { + clientMutationId?: boolean; +}; +export interface SaveGraphPayload { + clientMutationId?: string | null; + result?: string | null; } -/** An input for mutations affecting `FunctionInvocation` */ -export interface FunctionInvocationInput { - /** Who triggered the invocation (NULL for system/cron) */ - actorId?: string; - /** API binding this invocation arrived through (NULL for cron/graph/system/worker paths) */ - apiBindingId?: string; - /** Invocation trigger channel: api, graph, cron, sync, webhook, or worker */ - channel?: string; - /** When execution completed */ - completedAt?: string; - /** Invocation creation timestamp (partition key) */ - createdAt?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - /** Scope that owns function_definition_id (e.g. app/org/database/platform) — the per-scope definitions table the resolver selected */ - definitionScope?: string; - /** Wall-clock execution time in milliseconds */ - durationMs?: number; - /** Error message when status is failed, or the reason the run was skipped when status is skipped */ - error?: string; - /** Function definition this invocation ran (soft cross-scope ref; paired with definition_scope). task_identifier stays as the audit slug. */ - functionDefinitionId?: string; - /** Groups all node invocations from a single flow graph execution */ - graphExecutionId?: string; - /** Unique invocation identifier */ - id?: string; - /** FK to app_jobs.jobs — the underlying transport */ - jobId?: string; - /** Parent invocation when this is a child node of a flow graph execution */ - parentInvocationId?: string; - /** Function input payload */ - payload?: Record; - /** Non-secret channel-specific invocation provenance (route/binding/event identifiers only) */ - provenance?: Record; - /** Function return value (success) or structured error (failure) */ - result?: Record; - /** When execution started */ - startedAt?: string; - /** Lifecycle: pending → running → completed/failed/cancelled; skipped = never ran (a gate rejected the intended run) */ - status?: string; - /** Function routing slug (category:name). Denormalized from the definition — must match the row referenced by function_definition_id when that is set. */ - taskIdentifier: string; +export type SaveGraphPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface SetAndCommitPayload { + clientMutationId?: string | null; + functionGraphCommitEdge?: FunctionGraphCommitEdge | null; + result?: FunctionGraphCommit | null; } -/** An input for mutations affecting `InfraCommit` */ -export interface InfraCommitInput { - /** User who authored the changes */ - authorId?: string; - /** User who committed (may differ from author) */ - committerId?: string; - /** Database scope for multi-tenant isolation */ - databaseId: string; - /** Commit timestamp */ - date?: string; - /** Unique commit identifier */ - id?: string; - /** Optional commit message */ - message?: string; - /** Parent commit IDs (supports merge commits) */ - parentIds?: string[]; - /** Store this commit belongs to */ - storeId: string; - /** Root object ID of the tree snapshot at this commit */ - treeId?: string; +export type SetAndCommitPayloadSelect = { + clientMutationId?: boolean; + functionGraphCommitEdge?: { + select: FunctionGraphCommitEdgeSelect; + }; + result?: { + select: FunctionGraphCommitSelect; + }; +}; +export interface SetDataAtPathPayload { + clientMutationId?: string | null; + result?: string | null; } -/** An input for mutations affecting `InfraObject` */ -export interface InfraObjectInput { - /** Timestamp of object creation */ - createdAt?: string; - /** Payload data for this object node */ - data?: Record; - /** Database scope for multi-tenant isolation */ - databaseId: string; - /** Content-addressed UUID v5 — deterministic hash of (data, kids, ktree) */ - id: string; - /** Ordered array of child object IDs */ - kids?: string[]; - /** Ordered array of child path names (parallel to kids) */ - ktree?: string[]; +export type SetDataAtPathPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface SetManyAndCommitPayload { + clientMutationId?: string | null; + functionGraphCommitEdge?: FunctionGraphCommitEdge | null; + result?: FunctionGraphCommit | null; } -/** An input for mutations affecting `InfraRef` */ -export interface InfraRefInput { - /** Commit this ref points to */ - commitId?: string; - /** Database scope for multi-tenant isolation */ - databaseId: string; - /** Unique ref identifier */ - id?: string; - /** Ref name (e.g. HEAD, main) */ - name: string; - /** Store this ref belongs to */ - storeId: string; +export type SetManyAndCommitPayloadSelect = { + clientMutationId?: boolean; + functionGraphCommitEdge?: { + select: FunctionGraphCommitEdgeSelect; + }; + result?: { + select: FunctionGraphCommitSelect; + }; +}; +export interface StartExecutionPayload { + clientMutationId?: string | null; + result?: string | null; } -/** An input for mutations affecting `InfraStore` */ -export interface InfraStoreInput { - /** Timestamp of store creation */ - createdAt?: string; - /** Database scope for multi-tenant isolation */ - databaseId: string; - /** Current root object hash of this store */ - hash?: string; - /** Unique store identifier */ - id?: string; - /** Human-readable store name */ - name: string; +export type StartExecutionPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface ValidateFunctionGraphPayload { + clientMutationId?: string | null; + result?: boolean | null; } -/** An input for mutations affecting `IntegrationProvider` */ -export interface IntegrationProviderInput { - /** Brand metadata: colors, fonts, and other provider-specific styling. Not a foreign key. */ - brand?: Record; - /** Browser category (e.g. email, database, storage, ai, analytics) */ - category?: string; - createdAt?: string; - /** Short description of what this integration provides and when to use it */ - description?: string; - /** Icon identifier for the UI (e.g. mail, database, cloud) */ - icon?: string; - id?: string; - /** Provider logo as an image domain value (url, id, key, bucket, provider) */ - logo?: ConstructiveInternalTypeImage; - /** Human-readable brand name (e.g. 'Mailgun', 'PostgreSQL') */ - name: string; - /** Canonical config requirements for this provider: array of (name, required, provider) tuples. Used by the UI to auto-fill function/resource required_configs. */ - requiredConfigs?: ResourceRequirementInput[]; - /** Canonical secret requirements for this provider: array of (name, required, provider) tuples. Used by the UI to auto-fill function/resource required_secrets. */ - requiredSecrets?: ResourceRequirementInput[]; - /** Stable URL-safe identifier for the provider. Other tables match by this string, not by FK. */ - slug: string; - updatedAt?: string; +export type ValidateFunctionGraphPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface CreateBuildPayload { + /** The `Build` that was created by this mutation. */ + build?: Build | null; + buildEdge?: BuildEdge | null; + clientMutationId?: string | null; } -/** An input for mutations affecting `Namespace` */ -export interface NamespaceInput { - /** Freeform metadata for tooling and operational notes */ - annotations?: Record; - createdAt?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - /** Optional human-readable description of this namespace */ - description?: string; - id?: string; - /** Whether this namespace is active (soft-disable for filtering) */ - isActive?: boolean; - /** true = provisioned by the platform via jobs, false = unmanaged/platform-native (bootstrapped externally) */ - isManaged?: boolean; - /** Key/value pairs for selecting and filtering namespaces */ - labels?: Record; - /** Most recent provisioning or reconcile error message */ - lastError?: string; - /** Human-readable namespace name (e.g. default, production, oauth) */ - name: string; - /** Globally unique computed namespace identifier via inflection.underscore */ - namespaceName: string; - /** Namespace provisioning lifecycle status: pending, provisioning, active, failed */ - status?: string; - updatedAt?: string; +export type CreateBuildPayloadSelect = { + build?: { + select: BuildSelect; + }; + buildEdge?: { + select: BuildEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface UpdateBuildPayload { + /** The `Build` that was updated by this mutation. */ + build?: Build | null; + buildEdge?: BuildEdge | null; + clientMutationId?: string | null; } -/** An input for mutations affecting `NamespaceEvent` */ -export interface NamespaceEventInput { - /** User who triggered this event (NULL for system/automated) */ - actorId?: string; - /** Event timestamp (partition key) */ - createdAt?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - /** Event type: created, activated, deactivated, labels_updated, annotations_updated, renamed */ - eventType: string; - /** Unique event identifier */ - id?: string; - /** Human-readable description of the event */ - message?: string; - /** Structured context (old/new values, labels diff, etc.) */ - metadata?: Record; - /** Namespace this event belongs to */ - namespaceId: string; +export type UpdateBuildPayloadSelect = { + build?: { + select: BuildSelect; + }; + buildEdge?: { + select: BuildEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface DeleteBuildPayload { + /** The `Build` that was deleted by this mutation. */ + build?: Build | null; + buildEdge?: BuildEdge | null; + clientMutationId?: string | null; } -/** An input for mutations affecting `PlatformFunctionApiBinding` */ -export interface PlatformFunctionApiBindingInput { - /** Binding alias (e.g. default, staging, production) */ - alias?: string; - /** API endpoint this function is bound to */ - apiId: string; - /** Per-binding configuration (overrides, routing rules, etc.) */ - config?: Record; - createdAt?: string; - /** Function definition this binding belongs to */ - functionDefinitionId: string; - id?: string; - updatedAt?: string; +export type DeleteBuildPayloadSelect = { + build?: { + select: BuildSelect; + }; + buildEdge?: { + select: BuildEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface CreateBuildStepPayload { + /** The `BuildStep` that was created by this mutation. */ + buildStep?: BuildStep | null; + buildStepEdge?: BuildStepEdge | null; + clientMutationId?: string | null; } -/** An input for mutations affecting `PlatformFunctionCapabilityBinding` */ -export interface PlatformFunctionCapabilityBindingInput { - /** Bucket this capability targets (exactly one typed target is set) */ - bucketId?: string; - createdAt?: string; - /** Function definition holding this capability (exactly one of function_id / graph_id is set) */ - functionId?: string; - /** Flow graph holding this capability (exactly one of function_id / graph_id is set) */ - graphId?: string; - id?: string; - /** Runtime handle the holder addresses this capability by (e.g. default, scratch) */ - key?: string; - /** Lifecycle the capability applies to: deployment (build/deploy time), execution (per invocation), root_execution (root of a graph execution tree) */ - lifecycle: string; - /** Per-binding annotations (no runtime semantics) */ - metadata?: Record; - updatedAt?: string; +export type CreateBuildStepPayloadSelect = { + buildStep?: { + select: BuildStepSelect; + }; + buildStepEdge?: { + select: BuildStepEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface UpdateBuildStepPayload { + /** The `BuildStep` that was updated by this mutation. */ + buildStep?: BuildStep | null; + buildStepEdge?: BuildStepEdge | null; + clientMutationId?: string | null; } -/** An input for mutations affecting `PlatformFunctionDefinition` */ -export interface PlatformFunctionDefinitionInput { - /** 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; - /** Function task category (e.g. email, embed, chunk, custom) */ - category: string; - /** Knative containerConcurrency — max concurrent requests per pod instance */ - concurrency?: number; - createdAt?: string; - /** Human-readable description of what this function does */ - description?: string; - /** Palette grouping category (e.g. email, data, ai, custom) */ - fnCategory?: string; - /** Ordered array of module_table column names holding the generated function names to invoke when runtime=sql (module mode). NULL for direct mode and other runtimes. */ - functionColumns?: Record; - /** Existing flow graph invoked when runtime=graph. Required for graph runtime and forbidden for all other runtimes. */ - graphId?: string; - /** Icon identifier for UI palette rendering (e.g. mail, database, code) */ - icon?: string; - id?: string; - /** Docker image reference (e.g. ghcr.io/constructive-io/email-send-fn:latest). Required when runtime=http or runtime=resource. NULL for inline functions. */ - image?: string; - /** Data input ports: [{name, type, description?, optional?, multi?, schema?}] */ - inputs?: Record; - /** Provider slugs (e.g. mailgun, postgres) associated with this function. The UI uses this to auto-fill required_secrets and required_configs from integration_providers. */ - integrations?: string[]; - /** Whether this function definition is published to the public catalog for direct authenticated invocation. Default false = internal-only via add_job() */ - isPublished?: boolean; - /** Maximum retry attempts for the underlying job */ - maxAttempts?: number; - /** metaschema_modules_public table whose per-database row carries the generated function names when runtime=sql (module mode). NULL for direct mode and other runtimes. */ - moduleTable?: string; - /** Function name within category (e.g. send_verification_link, process_file_embedding) */ - name: string; - /** Data output ports: [{name, type, description?, optional?, multi?, schema?}] */ - outputs?: Record; - /** Ordered bind-parameter mapping for runtime=sql: [{name, type}]. payload[name] is bound as $n::type. */ - payloadArgs?: Record; - /** Job priority (lower = higher priority) */ - priority?: number; - /** Configuration properties: [{name, type, default?, description?, required?, schema?}] */ - props?: Record; - /** Protected platform definition: narrower scopes cannot register the same task_identifier */ - protected?: boolean; - /** Timestamp when this function was published. NULL means immediately published when is_published is true; future timestamps delay public visibility */ - publishedAt?: string; - /** Job queue name for serialization (e.g. email, ai, default) */ - queueName?: string; - /** 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}} */ - resources?: Record; - /** Execution mode: http (Knative Service dispatch), inline (in-process in compute worker), handler (registered infrastructure handler), sql (generic SQL dispatch via a trusted direct target or module-resolved function names), resource (Kubernetes Job via the resource module with node-gateway callbacks), or graph (existing flow graph referenced by graph_id) */ - runtime?: string; - /** Maximum pod count for Knative autoscaling (maxScale) */ - scaleMax?: number; - /** Minimum pod count for Knative autoscaling (minScale) */ - scaleMin?: number; - /** Platform system definition: its task_identifier cannot be shadowed by non-platform registration */ - system?: boolean; - /** Name of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. */ - targetFunction?: string; - /** Schema of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. */ - targetSchema?: string; - /** Knative request timeout in seconds */ - timeoutSeconds?: number; - updatedAt?: string; - /** Whether this function has side effects and cannot be cached or memoized */ - volatile?: boolean; +export type UpdateBuildStepPayloadSelect = { + buildStep?: { + select: BuildStepSelect; + }; + buildStepEdge?: { + select: BuildStepEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface DeleteBuildStepPayload { + /** The `BuildStep` that was deleted by this mutation. */ + buildStep?: BuildStep | null; + buildStepEdge?: BuildStepEdge | null; + clientMutationId?: string | null; } -/** An input for mutations affecting `PlatformFunctionDeployment` */ -export interface PlatformFunctionDeploymentInput { - /** Freeform metadata for tooling and operational notes */ - annotations?: Record; - /** Max concurrent requests per pod (NULL = inherit from definition) */ - concurrency?: number; - createdAt?: string; - /** Cumulative error count for this deployment */ - errorCount?: number; - /** Handler directory name (e.g. email, document) — used as FN_HANDLER_NAME in combined-image mode to select the entry point */ - handlerName?: string; - id?: string; - /** Logical image name — the handler identity and grouping key (e.g. fn-email). No registry host or tag; tag lives in image_version. */ - image: string; - /** Image tag/version for the handler container (e.g. latest, 2.6.4) */ - imageVersion?: string; - /** Key/value pairs for selecting and filtering deployments */ - labels?: Record; - /** Most recent provisioning or runtime error message */ - lastError?: string; - /** Timestamp of the most recent error */ - 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) */ - revision?: number; - /** Maximum replica count (NULL = inherit from definition or Knative default) */ - scaleMax?: number; - /** Minimum replica count (NULL = inherit from definition or Knative default) */ - scaleMin?: number; - /** Knative service name — a randomly minted cute name (unique_names.generate_name() + random hex suffix) assigned by the service_url trigger; unique per namespace, not derived from the image */ - serviceName?: string; - /** Knative service URL (http://{service-name}.{namespace}.svc.cluster.local) — populated after provisioning */ - serviceUrl?: string; - /** Deployment lifecycle status: pending, provisioning, active, failed, scaled_to_zero, deactivated */ - status?: string; - /** Request timeout override in seconds (NULL = inherit from definition) */ - timeoutSeconds?: number; - updatedAt?: string; +export type DeleteBuildStepPayloadSelect = { + buildStep?: { + select: BuildStepSelect; + }; + buildStepEdge?: { + select: BuildStepEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface CreateBuilderBindingPayload { + /** The `BuilderBinding` that was created by this mutation. */ + builderBinding?: BuilderBinding | null; + builderBindingEdge?: BuilderBindingEdge | null; + clientMutationId?: string | null; +} +export type CreateBuilderBindingPayloadSelect = { + builderBinding?: { + select: BuilderBindingSelect; + }; + builderBindingEdge?: { + select: BuilderBindingEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface UpdateBuilderBindingPayload { + /** The `BuilderBinding` that was updated by this mutation. */ + builderBinding?: BuilderBinding | null; + builderBindingEdge?: BuilderBindingEdge | null; + clientMutationId?: string | null; +} +export type UpdateBuilderBindingPayloadSelect = { + builderBinding?: { + select: BuilderBindingSelect; + }; + builderBindingEdge?: { + select: BuilderBindingEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface DeleteBuilderBindingPayload { + /** The `BuilderBinding` that was deleted by this mutation. */ + builderBinding?: BuilderBinding | null; + builderBindingEdge?: BuilderBindingEdge | null; + clientMutationId?: string | null; +} +export type DeleteBuilderBindingPayloadSelect = { + builderBinding?: { + select: BuilderBindingSelect; + }; + builderBindingEdge?: { + select: BuilderBindingEdgeSelect; + }; + clientMutationId?: 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; } -/** An input for mutations affecting `PlatformFunctionDeploymentEvent` */ -export interface PlatformFunctionDeploymentEventInput { - /** User who triggered this event (NULL for system/automated) */ - actorId?: string; - /** Event timestamp (partition key) */ - createdAt?: string; - /** Deployment this event belongs to */ - deploymentId: string; - /** Event type: provisioned, scaled, failed, deactivated, redeployed, health_check */ - eventType: string; - /** Unique event identifier */ - id?: string; - /** Human-readable description of the event */ - message?: string; - /** Structured context (old/new values, error details, etc.) */ - metadata?: Record; +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; } -/** An input for mutations affecting `PlatformFunctionExecutionLog` */ -export interface PlatformFunctionExecutionLogInput { - /** User who triggered the execution (NULL for system/cron) */ - actorId?: string; - /** Log entry timestamp (partition key) */ - createdAt?: string; - /** Unique log entry identifier */ - id?: string; - /** Invocation this log entry belongs to (NULL for standalone job logs) */ - invocationId?: string; - /** Log severity: debug, info, warn, error */ - logLevel?: string; - /** Log message text */ - message: string; - /** Structured context (labels, trace data, extra fields) */ - metadata?: Record; - /** Function routing key (NULL for generic job logs) */ - taskIdentifier?: string; +export type DeleteContentPresetPayloadSelect = { + clientMutationId?: boolean; + contentPreset?: { + select: ContentPresetSelect; + }; + contentPresetEdge?: { + select: ContentPresetEdgeSelect; + }; +}; +export interface UpdateDatabaseFunctionGraphPayload { + clientMutationId?: string | null; + /** The `DatabaseFunctionGraph` that was updated by this mutation. */ + databaseFunctionGraph?: DatabaseFunctionGraph | null; + databaseFunctionGraphEdge?: DatabaseFunctionGraphEdge | null; } -/** An input for mutations affecting `PlatformFunctionInvocationAttempt` */ -export interface PlatformFunctionInvocationAttemptInput { - /** Who triggered the invocation (NULL for system/cron) */ - actorId?: string; - /** 1-based attempt number for this invocation */ - attempt: number; - /** When the attempt result was recorded (partition key) */ - createdAt?: string; - /** Wall-clock attempt time in milliseconds */ - durationMs?: number; - /** Error message when the attempt failed */ - error?: string; - /** Structured error context (stack, code, provider response) */ - errorDetail?: Record; - /** Unique attempt identifier */ - id?: string; - /** created_at of the referenced invocation (partition-pruned lookups against the invocations PK) */ - invocationCreatedAt: string; - /** Invocation this attempt belongs to (soft reference paired with invocation_created_at) */ - invocationId: string; - /** When the attempt began executing */ - startedAt?: string; - /** Whether this attempt completed successfully */ - success: boolean; - /** Function routing slug (denormalized from the invocation) */ - taskIdentifier: string; +export type UpdateDatabaseFunctionGraphPayloadSelect = { + clientMutationId?: boolean; + databaseFunctionGraph?: { + select: DatabaseFunctionGraphSelect; + }; + databaseFunctionGraphEdge?: { + select: DatabaseFunctionGraphEdgeSelect; + }; +}; +export interface DeleteDatabaseFunctionGraphPayload { + clientMutationId?: string | null; + /** The `DatabaseFunctionGraph` that was deleted by this mutation. */ + databaseFunctionGraph?: DatabaseFunctionGraph | null; + databaseFunctionGraphEdge?: DatabaseFunctionGraphEdge | null; } -/** An input for mutations affecting `PlatformFunctionInvocation` */ -export interface PlatformFunctionInvocationInput { - /** Who triggered the invocation (NULL for system/cron) */ - actorId?: string; - /** API binding this invocation arrived through (NULL for cron/graph/system/worker paths) */ - apiBindingId?: string; - /** Invocation trigger channel: api, graph, cron, sync, webhook, or worker */ - channel?: string; - /** When execution completed */ - completedAt?: string; - /** Invocation creation timestamp (partition key) */ - createdAt?: string; - /** Database this invocation is attributed to (usage/billing attribution) */ - databaseId?: string; - /** Scope that owns function_definition_id (e.g. app/org/database/platform) — the per-scope definitions table the resolver selected */ - definitionScope?: string; - /** Wall-clock execution time in milliseconds */ - durationMs?: number; - /** Error message when status is failed, or the reason the run was skipped when status is skipped */ - error?: string; - /** Function definition this invocation ran (soft cross-scope ref; paired with definition_scope). task_identifier stays as the audit slug. */ - functionDefinitionId?: string; - /** Groups all node invocations from a single flow graph execution */ - graphExecutionId?: string; - /** Unique invocation identifier */ - id?: string; - /** FK to app_jobs.jobs — the underlying transport */ - jobId?: string; - /** Parent invocation when this is a child node of a flow graph execution */ - parentInvocationId?: string; - /** Function input payload */ - payload?: Record; - /** Non-secret channel-specific invocation provenance (route/binding/event identifiers only) */ - provenance?: Record; - /** Function return value (success) or structured error (failure) */ - result?: Record; - /** When execution started */ - startedAt?: string; - /** Lifecycle: pending → running → completed/failed/cancelled; skipped = never ran (a gate rejected the intended run) */ - status?: string; - /** Function routing slug (category:name). Denormalized from the definition — must match the row referenced by function_definition_id when that is set. */ - taskIdentifier: string; +export type DeleteDatabaseFunctionGraphPayloadSelect = { + clientMutationId?: boolean; + databaseFunctionGraph?: { + select: DatabaseFunctionGraphSelect; + }; + databaseFunctionGraphEdge?: { + select: DatabaseFunctionGraphEdgeSelect; + }; +}; +export interface CreateDatabaseFunctionGraphExecutionPayload { + clientMutationId?: string | null; + /** The `DatabaseFunctionGraphExecution` that was created by this mutation. */ + databaseFunctionGraphExecution?: DatabaseFunctionGraphExecution | null; + databaseFunctionGraphExecutionEdge?: DatabaseFunctionGraphExecutionEdge | null; } -/** An input for mutations affecting `PlatformInfraCommit` */ -export interface PlatformInfraCommitInput { - /** User who authored the changes */ - authorId?: string; - /** User who committed (may differ from author) */ - committerId?: string; - /** Commit timestamp */ - date?: string; - /** Unique commit identifier */ - id?: string; - /** Optional commit message */ - message?: string; - /** Parent commit IDs (supports merge commits) */ - parentIds?: string[]; - /** Opaque store partition key for the global tier */ - scopeId: string; - /** Store this commit belongs to */ - storeId: string; - /** Root object ID of the tree snapshot at this commit */ - treeId?: string; +export type CreateDatabaseFunctionGraphExecutionPayloadSelect = { + clientMutationId?: boolean; + databaseFunctionGraphExecution?: { + select: DatabaseFunctionGraphExecutionSelect; + }; + databaseFunctionGraphExecutionEdge?: { + select: DatabaseFunctionGraphExecutionEdgeSelect; + }; +}; +export interface UpdateDatabaseFunctionGraphExecutionPayload { + clientMutationId?: string | null; + /** The `DatabaseFunctionGraphExecution` that was updated by this mutation. */ + databaseFunctionGraphExecution?: DatabaseFunctionGraphExecution | null; + databaseFunctionGraphExecutionEdge?: DatabaseFunctionGraphExecutionEdge | null; } -/** An input for mutations affecting `PlatformInfraObject` */ -export interface PlatformInfraObjectInput { - /** Timestamp of object creation */ - createdAt?: string; - /** Payload data for this object node */ - data?: Record; - /** Content-addressed UUID v5 — deterministic hash of (data, kids, ktree) */ - id: string; - /** Ordered array of child object IDs */ - kids?: string[]; - /** Ordered array of child path names (parallel to kids) */ - ktree?: string[]; - /** Opaque store partition key for the global tier */ - scopeId: string; +export type UpdateDatabaseFunctionGraphExecutionPayloadSelect = { + clientMutationId?: boolean; + databaseFunctionGraphExecution?: { + select: DatabaseFunctionGraphExecutionSelect; + }; + databaseFunctionGraphExecutionEdge?: { + select: DatabaseFunctionGraphExecutionEdgeSelect; + }; +}; +export interface DeleteDatabaseFunctionGraphExecutionPayload { + clientMutationId?: string | null; + /** The `DatabaseFunctionGraphExecution` that was deleted by this mutation. */ + databaseFunctionGraphExecution?: DatabaseFunctionGraphExecution | null; + databaseFunctionGraphExecutionEdge?: DatabaseFunctionGraphExecutionEdge | null; } -/** An input for mutations affecting `PlatformInfraRef` */ -export interface PlatformInfraRefInput { - /** Commit this ref points to */ - commitId?: string; - /** Unique ref identifier */ - id?: string; - /** Ref name (e.g. HEAD, main) */ - name: string; - /** Opaque store partition key for the global tier */ - scopeId: string; - /** Store this ref belongs to */ - storeId: string; +export type DeleteDatabaseFunctionGraphExecutionPayloadSelect = { + clientMutationId?: boolean; + databaseFunctionGraphExecution?: { + select: DatabaseFunctionGraphExecutionSelect; + }; + databaseFunctionGraphExecutionEdge?: { + select: DatabaseFunctionGraphExecutionEdgeSelect; + }; +}; +export interface CreateDatabaseFunctionGraphExecutionNodeStatePayload { + clientMutationId?: string | null; + /** The `DatabaseFunctionGraphExecutionNodeState` that was created by this mutation. */ + databaseFunctionGraphExecutionNodeState?: DatabaseFunctionGraphExecutionNodeState | null; + databaseFunctionGraphExecutionNodeStateEdge?: DatabaseFunctionGraphExecutionNodeStateEdge | null; } -/** An input for mutations affecting `PlatformInfraStore` */ -export interface PlatformInfraStoreInput { - /** Timestamp of store creation */ - createdAt?: string; - /** Current root object hash of this store */ - hash?: string; - /** Unique store identifier */ - id?: string; - /** Human-readable store name */ - name: string; - /** Opaque store partition key for the global tier */ - scopeId: string; +export type CreateDatabaseFunctionGraphExecutionNodeStatePayloadSelect = { + clientMutationId?: boolean; + databaseFunctionGraphExecutionNodeState?: { + select: DatabaseFunctionGraphExecutionNodeStateSelect; + }; + databaseFunctionGraphExecutionNodeStateEdge?: { + select: DatabaseFunctionGraphExecutionNodeStateEdgeSelect; + }; +}; +export interface UpdateDatabaseFunctionGraphExecutionNodeStatePayload { + clientMutationId?: string | null; + /** The `DatabaseFunctionGraphExecutionNodeState` that was updated by this mutation. */ + databaseFunctionGraphExecutionNodeState?: DatabaseFunctionGraphExecutionNodeState | null; + databaseFunctionGraphExecutionNodeStateEdge?: DatabaseFunctionGraphExecutionNodeStateEdge | null; } -/** An input for mutations affecting `PlatformNamespace` */ -export interface PlatformNamespaceInput { - /** Freeform metadata for tooling and operational notes */ - annotations?: Record; - createdAt?: string; - /** Optional human-readable description of this namespace */ - description?: string; - id?: string; - /** Whether this namespace is active (soft-disable for filtering) */ - isActive?: boolean; - /** true = provisioned by the platform via jobs, false = unmanaged/platform-native (bootstrapped externally) */ - isManaged?: boolean; - /** Key/value pairs for selecting and filtering namespaces */ - labels?: Record; - /** Most recent provisioning or reconcile error message */ - lastError?: string; - /** Human-readable namespace name (e.g. default, production, oauth) */ - name: string; - /** Globally unique computed namespace identifier via inflection.underscore */ - namespaceName: string; - /** Namespace provisioning lifecycle status: pending, provisioning, active, failed */ - status?: string; - updatedAt?: string; +export type UpdateDatabaseFunctionGraphExecutionNodeStatePayloadSelect = { + clientMutationId?: boolean; + databaseFunctionGraphExecutionNodeState?: { + select: DatabaseFunctionGraphExecutionNodeStateSelect; + }; + databaseFunctionGraphExecutionNodeStateEdge?: { + select: DatabaseFunctionGraphExecutionNodeStateEdgeSelect; + }; +}; +export interface DeleteDatabaseFunctionGraphExecutionNodeStatePayload { + clientMutationId?: string | null; + /** The `DatabaseFunctionGraphExecutionNodeState` that was deleted by this mutation. */ + databaseFunctionGraphExecutionNodeState?: DatabaseFunctionGraphExecutionNodeState | null; + databaseFunctionGraphExecutionNodeStateEdge?: DatabaseFunctionGraphExecutionNodeStateEdge | null; +} +export type DeleteDatabaseFunctionGraphExecutionNodeStatePayloadSelect = { + clientMutationId?: boolean; + databaseFunctionGraphExecutionNodeState?: { + select: DatabaseFunctionGraphExecutionNodeStateSelect; + }; + databaseFunctionGraphExecutionNodeStateEdge?: { + select: DatabaseFunctionGraphExecutionNodeStateEdgeSelect; + }; +}; +export interface CreateDatabaseFunctionGraphExecutionOutputPayload { + clientMutationId?: string | null; + /** The `DatabaseFunctionGraphExecutionOutput` that was created by this mutation. */ + databaseFunctionGraphExecutionOutput?: DatabaseFunctionGraphExecutionOutput | null; + databaseFunctionGraphExecutionOutputEdge?: DatabaseFunctionGraphExecutionOutputEdge | null; +} +export type CreateDatabaseFunctionGraphExecutionOutputPayloadSelect = { + clientMutationId?: boolean; + databaseFunctionGraphExecutionOutput?: { + select: DatabaseFunctionGraphExecutionOutputSelect; + }; + databaseFunctionGraphExecutionOutputEdge?: { + select: DatabaseFunctionGraphExecutionOutputEdgeSelect; + }; +}; +export interface UpdateDatabaseFunctionGraphExecutionOutputPayload { + clientMutationId?: string | null; + /** The `DatabaseFunctionGraphExecutionOutput` that was updated by this mutation. */ + databaseFunctionGraphExecutionOutput?: DatabaseFunctionGraphExecutionOutput | null; + databaseFunctionGraphExecutionOutputEdge?: DatabaseFunctionGraphExecutionOutputEdge | null; +} +export type UpdateDatabaseFunctionGraphExecutionOutputPayloadSelect = { + clientMutationId?: boolean; + databaseFunctionGraphExecutionOutput?: { + select: DatabaseFunctionGraphExecutionOutputSelect; + }; + databaseFunctionGraphExecutionOutputEdge?: { + select: DatabaseFunctionGraphExecutionOutputEdgeSelect; + }; +}; +export interface DeleteDatabaseFunctionGraphExecutionOutputPayload { + clientMutationId?: string | null; + /** The `DatabaseFunctionGraphExecutionOutput` that was deleted by this mutation. */ + databaseFunctionGraphExecutionOutput?: DatabaseFunctionGraphExecutionOutput | null; + databaseFunctionGraphExecutionOutputEdge?: DatabaseFunctionGraphExecutionOutputEdge | null; } -/** An input for mutations affecting `PlatformNamespaceEvent` */ -export interface PlatformNamespaceEventInput { - /** User who triggered this event (NULL for system/automated) */ - actorId?: string; - /** Event timestamp (partition key) */ - createdAt?: string; - /** Event type: created, activated, deactivated, labels_updated, annotations_updated, renamed */ - eventType: string; - /** Unique event identifier */ - id?: string; - /** Human-readable description of the event */ - message?: string; - /** Structured context (old/new values, labels diff, etc.) */ - metadata?: Record; - /** Namespace this event belongs to */ - namespaceId: string; +export type DeleteDatabaseFunctionGraphExecutionOutputPayloadSelect = { + clientMutationId?: boolean; + databaseFunctionGraphExecutionOutput?: { + select: DatabaseFunctionGraphExecutionOutputSelect; + }; + databaseFunctionGraphExecutionOutputEdge?: { + select: DatabaseFunctionGraphExecutionOutputEdgeSelect; + }; +}; +export interface CreateDatabaseGraphCommitPayload { + clientMutationId?: string | null; + /** The `DatabaseGraphCommit` that was created by this mutation. */ + databaseGraphCommit?: DatabaseGraphCommit | null; + databaseGraphCommitEdge?: DatabaseGraphCommitEdge | null; } -/** An input for mutations affecting `PlatformResource` */ -export interface PlatformResourceInput { - /** Freeform metadata for tooling and operational notes */ - annotations?: Record; - createdAt?: string; - createdBy?: string; - /** Cumulative error count for this resource */ - errorCount?: number; - id?: string; - /** Installation ("release") this resource belongs to (NULL for standalone resources) */ - installationId?: string; - /** Provider slugs (e.g. mailgun, postgres) associated with this resource. The UI uses this to auto-fill required_secrets and required_configs from integration_providers. */ - integrations?: string[]; - /** Resource kind: Deployment, StatefulSet, Job, Service, Ingress, Certificate, ClusterIssuer */ - kind: string; - /** Key/value pairs for selecting and filtering resources */ - labels?: Record; - /** Most recent provisioning or runtime error message */ - lastError?: string; - /** Last time a usage heartbeat was received for this resource (NULL until first heartbeat) */ - lastHeartbeatAt?: string; - /** Human-readable resource name */ - name: string; - /** Namespace this resource belongs to (security boundary, maps to K8s namespace) */ - namespaceId: string; - /** Config/secret realm this resource resolves against. Per key, the realm-specific atom wins over the NULL-realm default. NULL = the default lane. */ - realm?: string; - /** Embedded config requirements: array of (name, required, provider) tuples — extends the linked definition's requirements. provider is the integration slug this requirement belongs to, if any. */ - requiredConfigs?: ResourceRequirementInput[]; - /** Embedded secret requirements: array of (name, required, provider) tuples — extends the linked definition's requirements. provider is the integration slug this requirement belongs to, if any. */ - requiredSecrets?: ResourceRequirementInput[]; - /** Definition template this resource was created from (NULL for standalone resources) */ - resourceDefinitionId?: string; - /** URL-safe identifier, unique within (namespace_id, kind) */ - slug: string; - /** Desired state — kind-specific configuration (image, ports, resources, etc.). Opaque to DB; validated by K8s. */ - spec?: Record; - /** Resource lifecycle status: pending, provisioning, active, completed, failed, draining, deleting */ - status?: string; - /** Observed state from K8s — populated by handlers after reconciliation (service_url, clone_url, replicas, etc.) */ - statusObserved?: Record; - updatedAt?: string; - updatedBy?: string; +export type CreateDatabaseGraphCommitPayloadSelect = { + clientMutationId?: boolean; + databaseGraphCommit?: { + select: DatabaseGraphCommitSelect; + }; + databaseGraphCommitEdge?: { + select: DatabaseGraphCommitEdgeSelect; + }; +}; +export interface UpdateDatabaseGraphCommitPayload { + clientMutationId?: string | null; + /** The `DatabaseGraphCommit` that was updated by this mutation. */ + databaseGraphCommit?: DatabaseGraphCommit | null; + databaseGraphCommitEdge?: DatabaseGraphCommitEdge | null; } -/** An input for mutations affecting `PlatformResourceDefinition` */ -export interface PlatformResourceDefinitionInput { - /** Freeform metadata for tooling and operational notes */ - annotations?: Record; - createdAt?: string; - createdBy?: string; - /** Template spec for creating resource instances of this kind */ - defaultSpec?: Record; - /** What this resource definition provides */ - description?: string; - id?: string; - /** Provider slugs (e.g. mailgun, postgres) associated with this resource definition. The UI uses this to auto-fill required_secrets and required_configs from integration_providers. */ - integrations?: string[]; - /** Resource kind: Deployment, StatefulSet, Job, Service, Ingress, Certificate, ClusterIssuer, or custom kinds */ - kind: string; - /** Key/value pairs for selecting and filtering definitions */ - labels?: Record; - /** Human-readable definition name */ - name: string; - /** Namespace this definition belongs to (security boundary, maps to K8s namespace) */ - namespaceId: string; - /** Declared parameter interface: [{key,label,type,default,required,min,max,options,group,order,bindings:[{path,template,scale,round,unit}]}]. Installation params are validated and compiled through these declarations; [] keeps the legacy raw spec overlay. */ - paramsSchema?: Record; - /** Embedded config requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ - requiredConfigs?: ResourceRequirementInput[]; - /** Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ - requiredSecrets?: ResourceRequirementInput[]; - /** URL-safe identifier, unique within (namespace_id, kind) */ - slug: string; - /** Min age before DELETE of a resource of this kind requires step-up; NULL inherits the 6h default */ - stepUpMinAge?: IntervalInput; - updatedAt?: string; - updatedBy?: string; +export type UpdateDatabaseGraphCommitPayloadSelect = { + clientMutationId?: boolean; + databaseGraphCommit?: { + select: DatabaseGraphCommitSelect; + }; + databaseGraphCommitEdge?: { + select: DatabaseGraphCommitEdgeSelect; + }; +}; +export interface DeleteDatabaseGraphCommitPayload { + clientMutationId?: string | null; + /** The `DatabaseGraphCommit` that was deleted by this mutation. */ + databaseGraphCommit?: DatabaseGraphCommit | null; + databaseGraphCommitEdge?: DatabaseGraphCommitEdge | null; } -/** An interval of time that has passed where the smallest distinct unit is a second. */ -export interface IntervalInput { - /** A quantity of days. */ - days?: number; - /** A quantity of hours. */ - hours?: number; - /** A quantity of minutes. */ - minutes?: number; - /** A quantity of months. */ - months?: number; - /** - * A quantity of seconds. This is the only non-integer field, as all the other - * fields will dump their overflow into a smaller unit of time. Intervals don’t - * have a smaller unit than seconds. - */ - seconds?: number; - /** A quantity of years. */ - years?: number; +export type DeleteDatabaseGraphCommitPayloadSelect = { + clientMutationId?: boolean; + databaseGraphCommit?: { + select: DatabaseGraphCommitSelect; + }; + databaseGraphCommitEdge?: { + select: DatabaseGraphCommitEdgeSelect; + }; +}; +export interface CreateDatabaseGraphObjectPayload { + clientMutationId?: string | null; + /** The `DatabaseGraphObject` that was created by this mutation. */ + databaseGraphObject?: DatabaseGraphObject | null; + databaseGraphObjectEdge?: DatabaseGraphObjectEdge | null; } -/** An input for mutations affecting `PlatformResourceEvent` */ -export interface PlatformResourceEventInput { - /** User who triggered this event (NULL for system/automated) */ - actorId?: string; - /** Event timestamp (partition key) */ - createdAt?: string; - /** Event type: provisioned, provisioning, updated, failed, deprovisioned, health_check */ - eventType: string; - /** Unique event identifier */ - id?: string; - /** Human-readable description of the event */ - message?: string; - /** Structured context (old/new values, error details, etc.) */ - metadata?: Record; - /** Resource this event belongs to */ - resourceId: string; +export type CreateDatabaseGraphObjectPayloadSelect = { + clientMutationId?: boolean; + databaseGraphObject?: { + select: DatabaseGraphObjectSelect; + }; + databaseGraphObjectEdge?: { + select: DatabaseGraphObjectEdgeSelect; + }; +}; +export interface UpdateDatabaseGraphObjectPayload { + clientMutationId?: string | null; + /** The `DatabaseGraphObject` that was updated by this mutation. */ + databaseGraphObject?: DatabaseGraphObject | null; + databaseGraphObjectEdge?: DatabaseGraphObjectEdge | null; } -/** An input for mutations affecting `PlatformResourceInstallation` */ -export interface PlatformResourceInstallationInput { - /** Infra store commit for the current params (stamped by the versioned trigger on every write) */ - commitId?: string; - createdAt?: string; - createdBy?: string; - id?: string; - /** Human-readable release name */ - name: string; - /** Namespace this installation belongs to (security boundary) */ - namespaceId: string; - /** Release parameters — the readily-cached head; history lives in the infra store. Never contains secret/config literals. */ - params?: Record; - /** Monotonic release revision counter: install starts at 1, bumped on every upgrade/rollback */ - revision?: number; - /** URL-safe release identifier, unique within the namespace; the release's path in the infra tree is [resource_installation, slug] */ - slug: string; - /** Installation lifecycle status: pending, installed, uninstalled, failed */ - status?: string; - /** Infra merkle store holding this installation's history (stamped by the versioned trigger) */ - storeId?: string; - updatedAt?: string; - updatedBy?: string; +export type UpdateDatabaseGraphObjectPayloadSelect = { + clientMutationId?: boolean; + databaseGraphObject?: { + select: DatabaseGraphObjectSelect; + }; + databaseGraphObjectEdge?: { + select: DatabaseGraphObjectEdgeSelect; + }; +}; +export interface DeleteDatabaseGraphObjectPayload { + clientMutationId?: string | null; + /** The `DatabaseGraphObject` that was deleted by this mutation. */ + databaseGraphObject?: DatabaseGraphObject | null; + databaseGraphObjectEdge?: DatabaseGraphObjectEdge | null; } -/** An input for mutations affecting `PlatformResourceStatusCheck` */ -export interface PlatformResourceStatusCheckInput { - /** When the check completed (NULL while pending/running) */ - completedAt?: string; - /** Unique status check identifier */ - id?: string; - /** When the check was requested */ - requestedAt?: string; - /** User who requested the check (NULL for system/scheduled) */ - requestedBy?: string; - /** Resource to check */ - resourceId: string; - /** Diagnostic snapshot: k8s_status, conditions, pod_logs_tail, events */ - result?: Record; - /** Check lifecycle: pending, running, completed, failed */ - status?: string; +export type DeleteDatabaseGraphObjectPayloadSelect = { + clientMutationId?: boolean; + databaseGraphObject?: { + select: DatabaseGraphObjectSelect; + }; + databaseGraphObjectEdge?: { + select: DatabaseGraphObjectEdgeSelect; + }; +}; +export interface CreateDatabaseGraphRefPayload { + clientMutationId?: string | null; + /** The `DatabaseGraphRef` that was created by this mutation. */ + databaseGraphRef?: DatabaseGraphRef | null; + databaseGraphRefEdge?: DatabaseGraphRefEdge | null; } -/** An input for mutations affecting `PlatformResourceUsageLog` */ -export interface PlatformResourceUsageLogInput { - /** CPU gauge in millicores at sample time (NULL when unknown) */ - cpuMillicores?: string; - /** Unique sample identifier */ - id?: string; - /** Seconds covered by this sample — runtime is SUM(interval_seconds) */ - intervalSeconds: number; - /** Memory gauge in bytes at sample time (NULL when unknown) */ - memoryBytes?: string; - /** Structured gauges: replicas, pod counts, phases, and other producer-specific metrics */ - metrics?: Record; - /** Namespace the measured workload runs in */ - namespaceId: string; - /** Resource this sample measures (NULL for namespace-grain catch-all rows) */ - resourceId?: string; - /** Sample timestamp (partition key) — end of the measured interval */ - sampledAt?: string; - /** Sample producer: self (workload heartbeat), observer (reconciler), or prometheus (namespace-grain usage collector) */ - source: string; +export type CreateDatabaseGraphRefPayloadSelect = { + clientMutationId?: boolean; + databaseGraphRef?: { + select: DatabaseGraphRefSelect; + }; + databaseGraphRefEdge?: { + select: DatabaseGraphRefEdgeSelect; + }; +}; +export interface UpdateDatabaseGraphRefPayload { + clientMutationId?: string | null; + /** The `DatabaseGraphRef` that was updated by this mutation. */ + databaseGraphRef?: DatabaseGraphRef | null; + databaseGraphRefEdge?: DatabaseGraphRefEdge | null; } -/** An input for mutations affecting `PlatformResourceUsageSummary` */ -export interface PlatformResourceUsageSummaryInput { - /** Day this summary covers (partition key) */ - date: string; - /** Memory usage for the day — SUM(memory_bytes * interval_seconds) normalized to GB-seconds */ - gbSeconds?: string; - /** Unique usage summary identifier */ - id?: string; - /** Maximum CPU gauge observed during the day (NULL when never reported) */ - maxCpuMillicores?: string; - /** Maximum memory gauge observed during the day (NULL when never reported) */ - maxMemoryBytes?: string; - /** Namespace the resource runs in */ - namespaceId: string; - /** Resource this summary covers (NULL for namespace-grain catch-all summaries) */ - resourceId?: string; - /** Total measured runtime for the day — SUM(interval_seconds) */ - runtimeSeconds?: string; - /** Number of raw samples aggregated into this summary */ - sampleCount?: number; +export type UpdateDatabaseGraphRefPayloadSelect = { + clientMutationId?: boolean; + databaseGraphRef?: { + select: DatabaseGraphRefSelect; + }; + databaseGraphRefEdge?: { + select: DatabaseGraphRefEdgeSelect; + }; +}; +export interface DeleteDatabaseGraphRefPayload { + clientMutationId?: string | null; + /** The `DatabaseGraphRef` that was deleted by this mutation. */ + databaseGraphRef?: DatabaseGraphRef | null; + databaseGraphRefEdge?: DatabaseGraphRefEdge | null; +} +export type DeleteDatabaseGraphRefPayloadSelect = { + clientMutationId?: boolean; + databaseGraphRef?: { + select: DatabaseGraphRefSelect; + }; + databaseGraphRefEdge?: { + select: DatabaseGraphRefEdgeSelect; + }; +}; +export interface CreateDatabaseGraphStorePayload { + clientMutationId?: string | null; + /** The `DatabaseGraphStore` that was created by this mutation. */ + databaseGraphStore?: DatabaseGraphStore | null; + databaseGraphStoreEdge?: DatabaseGraphStoreEdge | null; } -/** An input for mutations affecting `PlatformWebhookEndpoint` */ -export interface PlatformWebhookEndpointInput { - /** Whether this endpoint currently accepts deliveries */ - active?: boolean; - createdAt?: string; - createdBy?: string; - /** Same-scope function definition invoked on delivery. The function must list the webhook channel in access_channels. */ - functionDefinitionId: string; - /** Inbound Host header this endpoint matches (normalized lower-case, no port) */ - host: string; - id?: string; - /** Namespace that owns this endpoint and contains its signing secret */ - namespaceId: string; - /** Exact request path this endpoint matches (e.g. /webhooks/stripe) */ - path: string; - /** Verification scheme: generic (HMAC), stripe, or github */ - provider?: string; - /** Maximum age (seconds) of a signed provider timestamp before the delivery is rejected as a replay */ - replayWindowSeconds?: number; - /** Name of the signing secret in the infra secrets store. The gateway resolves the value through the generated secrets getter — the plaintext secret is never stored here. */ - signingSecretName: string; - updatedAt?: string; - updatedBy?: string; +export type CreateDatabaseGraphStorePayloadSelect = { + clientMutationId?: boolean; + databaseGraphStore?: { + select: DatabaseGraphStoreSelect; + }; + databaseGraphStoreEdge?: { + select: DatabaseGraphStoreEdgeSelect; + }; +}; +export interface UpdateDatabaseGraphStorePayload { + clientMutationId?: string | null; + /** The `DatabaseGraphStore` that was updated by this mutation. */ + databaseGraphStore?: DatabaseGraphStore | null; + databaseGraphStoreEdge?: DatabaseGraphStoreEdge | null; } -/** An input for mutations affecting `PlatformWebhookEvent` */ -export interface PlatformWebhookEventInput { - createdAt?: string; - /** Endpoint that accepted this delivery */ - endpointId: string; - /** Failure detail when status = failed */ - error?: string; - /** Provider-supplied delivery/event id used for idempotent dedup */ - externalEventId: string; - id?: string; - /** created_at of the enqueued invocation (partition key companion to invocation_id) */ - invocationCreatedAt?: string; - /** Pending function invocation enqueued for this delivery (NULL until enqueued) */ - invocationId?: string; - /** Parsed delivery payload (parsed only after signature verification over the exact raw bytes) */ - payload?: Record; - /** Provider that produced this delivery (copied from the endpoint at acceptance) */ - provider: string; - /** Signed provider timestamp used for replay-window validation (NULL when the provider supplies none) */ - providerTimestamp?: string; - /** Acceptance lifecycle: accepted, processed, failed */ - status?: string; - updatedAt?: string; +export type UpdateDatabaseGraphStorePayloadSelect = { + clientMutationId?: boolean; + databaseGraphStore?: { + select: DatabaseGraphStoreSelect; + }; + databaseGraphStoreEdge?: { + select: DatabaseGraphStoreEdgeSelect; + }; +}; +export interface DeleteDatabaseGraphStorePayload { + clientMutationId?: string | null; + /** The `DatabaseGraphStore` that was deleted by this mutation. */ + databaseGraphStore?: DatabaseGraphStore | null; + databaseGraphStoreEdge?: DatabaseGraphStoreEdge | null; } -/** An input for mutations affecting `Resource` */ -export interface ResourceInput { - /** Freeform metadata for tooling and operational notes */ - annotations?: Record; - createdAt?: string; - createdBy?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - /** Cumulative error count for this resource */ - errorCount?: number; - id?: string; - /** Installation ("release") this resource belongs to (NULL for standalone resources) */ - installationId?: string; - /** Provider slugs (e.g. mailgun, postgres) associated with this resource. The UI uses this to auto-fill required_secrets and required_configs from integration_providers. */ - integrations?: string[]; - /** Resource kind: Deployment, StatefulSet, Job, Service, Ingress, Certificate, ClusterIssuer */ - kind: string; - /** Key/value pairs for selecting and filtering resources */ - labels?: Record; - /** Most recent provisioning or runtime error message */ - lastError?: string; - /** Last time a usage heartbeat was received for this resource (NULL until first heartbeat) */ - lastHeartbeatAt?: string; - /** Human-readable resource name */ - name: string; - /** Namespace this resource belongs to (security boundary, maps to K8s namespace) */ - namespaceId: string; - /** Config/secret realm this resource resolves against. Per key, the realm-specific atom wins over the NULL-realm default. NULL = the default lane. */ - realm?: string; - /** Embedded config requirements: array of (name, required, provider) tuples — extends the linked definition's requirements. provider is the integration slug this requirement belongs to, if any. */ - requiredConfigs?: ResourceRequirementInput[]; - /** Embedded secret requirements: array of (name, required, provider) tuples — extends the linked definition's requirements. provider is the integration slug this requirement belongs to, if any. */ - requiredSecrets?: ResourceRequirementInput[]; - /** Definition template this resource was created from (NULL for standalone resources) */ - resourceDefinitionId?: string; - /** URL-safe identifier, unique within (namespace_id, kind) */ - slug: string; - /** Desired state — kind-specific configuration (image, ports, resources, etc.). Opaque to DB; validated by K8s. */ - spec?: Record; - /** Resource lifecycle status: pending, provisioning, active, completed, failed, draining, deleting */ - status?: string; - /** Observed state from K8s — populated by handlers after reconciliation (service_url, clone_url, replicas, etc.) */ - statusObserved?: Record; - updatedAt?: string; - updatedBy?: string; +export type DeleteDatabaseGraphStorePayloadSelect = { + clientMutationId?: boolean; + databaseGraphStore?: { + select: DatabaseGraphStoreSelect; + }; + databaseGraphStoreEdge?: { + select: DatabaseGraphStoreEdgeSelect; + }; +}; +export interface CreateDbPresetPayload { + clientMutationId?: string | null; + /** The `DbPreset` that was created by this mutation. */ + dbPreset?: DbPreset | null; + dbPresetEdge?: DbPresetEdge | null; } -/** An input for mutations affecting `ResourceDefinition` */ -export interface ResourceDefinitionInput { - /** Freeform metadata for tooling and operational notes */ - annotations?: Record; - createdAt?: string; - createdBy?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - /** Template spec for creating resource instances of this kind */ - defaultSpec?: Record; - /** What this resource definition provides */ - description?: string; - id?: string; - /** Provider slugs (e.g. mailgun, postgres) associated with this resource definition. The UI uses this to auto-fill required_secrets and required_configs from integration_providers. */ - integrations?: string[]; - /** Resource kind: Deployment, StatefulSet, Job, Service, Ingress, Certificate, ClusterIssuer, or custom kinds */ - kind: string; - /** Key/value pairs for selecting and filtering definitions */ - labels?: Record; - /** Human-readable definition name */ - name: string; - /** Namespace this definition belongs to (security boundary, maps to K8s namespace) */ - namespaceId: string; - /** Declared parameter interface: [{key,label,type,default,required,min,max,options,group,order,bindings:[{path,template,scale,round,unit}]}]. Installation params are validated and compiled through these declarations; [] keeps the legacy raw spec overlay. */ - paramsSchema?: Record; - /** Embedded config requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ - requiredConfigs?: ResourceRequirementInput[]; - /** Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ - requiredSecrets?: ResourceRequirementInput[]; - /** URL-safe identifier, unique within (namespace_id, kind) */ - slug: string; - /** Min age before DELETE of a resource of this kind requires step-up; NULL inherits the 6h default */ - stepUpMinAge?: IntervalInput; - updatedAt?: string; - updatedBy?: string; +export type CreateDbPresetPayloadSelect = { + clientMutationId?: boolean; + dbPreset?: { + select: DbPresetSelect; + }; + dbPresetEdge?: { + select: DbPresetEdgeSelect; + }; +}; +export interface UpdateDbPresetPayload { + clientMutationId?: string | null; + /** The `DbPreset` that was updated by this mutation. */ + dbPreset?: DbPreset | null; + dbPresetEdge?: DbPresetEdge | null; } -/** An input for mutations affecting `ResourceEvent` */ -export interface ResourceEventInput { - /** User who triggered this event (NULL for system/automated) */ - actorId?: string; - /** Event timestamp (partition key) */ - createdAt?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - /** Event type: provisioned, provisioning, updated, failed, deprovisioned, health_check */ - eventType: string; - /** Unique event identifier */ - id?: string; - /** Human-readable description of the event */ - message?: string; - /** Structured context (old/new values, error details, etc.) */ - metadata?: Record; - /** Resource this event belongs to */ - resourceId: string; +export type UpdateDbPresetPayloadSelect = { + clientMutationId?: boolean; + dbPreset?: { + select: DbPresetSelect; + }; + dbPresetEdge?: { + select: DbPresetEdgeSelect; + }; +}; +export interface DeleteDbPresetPayload { + clientMutationId?: string | null; + /** The `DbPreset` that was deleted by this mutation. */ + dbPreset?: DbPreset | null; + dbPresetEdge?: DbPresetEdge | null; } -/** An input for mutations affecting `ResourceInstallation` */ -export interface ResourceInstallationInput { - /** Infra store commit for the current params (stamped by the versioned trigger on every write) */ - commitId?: string; - createdAt?: string; - createdBy?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - id?: string; - /** Human-readable release name */ - name: string; - /** Namespace this installation belongs to (security boundary) */ - namespaceId: string; - /** Release parameters — the readily-cached head; history lives in the infra store. Never contains secret/config literals. */ - params?: Record; - /** Monotonic release revision counter: install starts at 1, bumped on every upgrade/rollback */ - revision?: number; - /** URL-safe release identifier, unique within the namespace; the release's path in the infra tree is [resource_installation, slug] */ - slug: string; - /** Installation lifecycle status: pending, installed, uninstalled, failed */ - status?: string; - /** Infra merkle store holding this installation's history (stamped by the versioned trigger) */ - storeId?: string; - updatedAt?: string; - updatedBy?: string; +export type DeleteDbPresetPayloadSelect = { + clientMutationId?: boolean; + dbPreset?: { + select: DbPresetSelect; + }; + dbPresetEdge?: { + select: DbPresetEdgeSelect; + }; +}; +export interface CreateFunctionApiBindingPayload { + clientMutationId?: string | null; + /** The `FunctionApiBinding` that was created by this mutation. */ + functionApiBinding?: FunctionApiBinding | null; + functionApiBindingEdge?: FunctionApiBindingEdge | null; +} +export type CreateFunctionApiBindingPayloadSelect = { + clientMutationId?: boolean; + functionApiBinding?: { + select: FunctionApiBindingSelect; + }; + functionApiBindingEdge?: { + select: FunctionApiBindingEdgeSelect; + }; +}; +export interface UpdateFunctionApiBindingPayload { + clientMutationId?: string | null; + /** The `FunctionApiBinding` that was updated by this mutation. */ + functionApiBinding?: FunctionApiBinding | null; + functionApiBindingEdge?: FunctionApiBindingEdge | null; +} +export type UpdateFunctionApiBindingPayloadSelect = { + clientMutationId?: boolean; + functionApiBinding?: { + select: FunctionApiBindingSelect; + }; + functionApiBindingEdge?: { + select: FunctionApiBindingEdgeSelect; + }; +}; +export interface DeleteFunctionApiBindingPayload { + clientMutationId?: string | null; + /** The `FunctionApiBinding` that was deleted by this mutation. */ + functionApiBinding?: FunctionApiBinding | null; + functionApiBindingEdge?: FunctionApiBindingEdge | null; } -/** An input for mutations affecting `ResourceStatusCheck` */ -export interface ResourceStatusCheckInput { - /** When the check completed (NULL while pending/running) */ - completedAt?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - /** Unique status check identifier */ - id?: string; - /** When the check was requested */ - requestedAt?: string; - /** User who requested the check (NULL for system/scheduled) */ - requestedBy?: string; - /** Resource to check */ - resourceId: string; - /** Diagnostic snapshot: k8s_status, conditions, pod_logs_tail, events */ - result?: Record; - /** Check lifecycle: pending, running, completed, failed */ - status?: string; +export type DeleteFunctionApiBindingPayloadSelect = { + clientMutationId?: boolean; + functionApiBinding?: { + select: FunctionApiBindingSelect; + }; + functionApiBindingEdge?: { + select: FunctionApiBindingEdgeSelect; + }; +}; +export interface CreateFunctionCapabilityBindingPayload { + clientMutationId?: string | null; + /** The `FunctionCapabilityBinding` that was created by this mutation. */ + functionCapabilityBinding?: FunctionCapabilityBinding | null; + functionCapabilityBindingEdge?: FunctionCapabilityBindingEdge | null; } -/** An input for mutations affecting `ResourceUsageLog` */ -export interface ResourceUsageLogInput { - /** CPU gauge in millicores at sample time (NULL when unknown) */ - cpuMillicores?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - /** Unique sample identifier */ - id?: string; - /** Seconds covered by this sample — runtime is SUM(interval_seconds) */ - intervalSeconds: number; - /** Memory gauge in bytes at sample time (NULL when unknown) */ - memoryBytes?: string; - /** Structured gauges: replicas, pod counts, phases, and other producer-specific metrics */ - metrics?: Record; - /** Namespace the measured workload runs in */ - namespaceId: string; - /** Resource this sample measures (NULL for namespace-grain catch-all rows) */ - resourceId?: string; - /** Sample timestamp (partition key) — end of the measured interval */ - sampledAt?: string; - /** Sample producer: self (workload heartbeat), observer (reconciler), or prometheus (namespace-grain usage collector) */ - source: string; +export type CreateFunctionCapabilityBindingPayloadSelect = { + clientMutationId?: boolean; + functionCapabilityBinding?: { + select: FunctionCapabilityBindingSelect; + }; + functionCapabilityBindingEdge?: { + select: FunctionCapabilityBindingEdgeSelect; + }; +}; +export interface UpdateFunctionCapabilityBindingPayload { + clientMutationId?: string | null; + /** The `FunctionCapabilityBinding` that was updated by this mutation. */ + functionCapabilityBinding?: FunctionCapabilityBinding | null; + functionCapabilityBindingEdge?: FunctionCapabilityBindingEdge | null; } -/** An input for mutations affecting `ResourceUsageSummary` */ -export interface ResourceUsageSummaryInput { - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - /** Day this summary covers (partition key) */ - date: string; - /** Memory usage for the day — SUM(memory_bytes * interval_seconds) normalized to GB-seconds */ - gbSeconds?: string; - /** Unique usage summary identifier */ - id?: string; - /** Maximum CPU gauge observed during the day (NULL when never reported) */ - maxCpuMillicores?: string; - /** Maximum memory gauge observed during the day (NULL when never reported) */ - maxMemoryBytes?: string; - /** Namespace the resource runs in */ - namespaceId: string; - /** Resource this summary covers (NULL for namespace-grain catch-all summaries) */ - resourceId?: string; - /** Total measured runtime for the day — SUM(interval_seconds) */ - runtimeSeconds?: string; - /** Number of raw samples aggregated into this summary */ - sampleCount?: number; +export type UpdateFunctionCapabilityBindingPayloadSelect = { + clientMutationId?: boolean; + functionCapabilityBinding?: { + select: FunctionCapabilityBindingSelect; + }; + functionCapabilityBindingEdge?: { + select: FunctionCapabilityBindingEdgeSelect; + }; +}; +export interface DeleteFunctionCapabilityBindingPayload { + clientMutationId?: string | null; + /** The `FunctionCapabilityBinding` that was deleted by this mutation. */ + functionCapabilityBinding?: FunctionCapabilityBinding | null; + functionCapabilityBindingEdge?: FunctionCapabilityBindingEdge | null; } -/** An input for mutations affecting `WebhookEndpoint` */ -export interface WebhookEndpointInput { - /** Whether this endpoint currently accepts deliveries */ - active?: boolean; - createdAt?: string; - createdBy?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - /** Same-scope function definition invoked on delivery. The function must list the webhook channel in access_channels. */ - functionDefinitionId: string; - /** Inbound Host header this endpoint matches (normalized lower-case, no port) */ - host: string; - id?: string; - /** Namespace that owns this endpoint and contains its signing secret */ - namespaceId: string; - /** Exact request path this endpoint matches (e.g. /webhooks/stripe) */ - path: string; - /** Verification scheme: generic (HMAC), stripe, or github */ - provider?: string; - /** Maximum age (seconds) of a signed provider timestamp before the delivery is rejected as a replay */ - replayWindowSeconds?: number; - /** Name of the signing secret in the infra secrets store. The gateway resolves the value through the generated secrets getter — the plaintext secret is never stored here. */ - signingSecretName: string; - updatedAt?: string; - updatedBy?: string; +export type DeleteFunctionCapabilityBindingPayloadSelect = { + clientMutationId?: boolean; + functionCapabilityBinding?: { + select: FunctionCapabilityBindingSelect; + }; + functionCapabilityBindingEdge?: { + select: FunctionCapabilityBindingEdgeSelect; + }; +}; +export interface CreateFunctionDefinitionPayload { + clientMutationId?: string | null; + /** The `FunctionDefinition` that was created by this mutation. */ + functionDefinition?: FunctionDefinition | null; + functionDefinitionEdge?: FunctionDefinitionEdge | null; } -/** An input for mutations affecting `WebhookEvent` */ -export interface WebhookEventInput { - createdAt?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - /** Endpoint that accepted this delivery */ - endpointId: string; - /** Failure detail when status = failed */ - error?: string; - /** Provider-supplied delivery/event id used for idempotent dedup */ - externalEventId: string; - id?: string; - /** created_at of the enqueued invocation (partition key companion to invocation_id) */ - invocationCreatedAt?: string; - /** Pending function invocation enqueued for this delivery (NULL until enqueued) */ - invocationId?: string; - /** Parsed delivery payload (parsed only after signature verification over the exact raw bytes) */ - payload?: Record; - /** Provider that produced this delivery (copied from the endpoint at acceptance) */ - provider: string; - /** Signed provider timestamp used for replay-window validation (NULL when the provider supplies none) */ - providerTimestamp?: string; - /** Acceptance lifecycle: accepted, processed, failed */ - status?: string; - updatedAt?: string; +export type CreateFunctionDefinitionPayloadSelect = { + clientMutationId?: boolean; + functionDefinition?: { + select: FunctionDefinitionSelect; + }; + functionDefinitionEdge?: { + select: FunctionDefinitionEdgeSelect; + }; +}; +export interface UpdateFunctionDefinitionPayload { + clientMutationId?: string | null; + /** The `FunctionDefinition` that was updated by this mutation. */ + functionDefinition?: FunctionDefinition | null; + functionDefinitionEdge?: FunctionDefinitionEdge | null; } -/** A filter to be used against `FunctionInvocation` object types. All fields are combined with a logical ‘and.’ */ -export interface FunctionInvocationFilter { - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: FunctionInvocationFilter[]; - /** Filter by the object’s `apiBinding` relation. */ - apiBinding?: FunctionApiBindingFilter; - /** A related `apiBinding` exists. */ - apiBindingExists?: boolean; - /** Filter by the object’s `apiBindingId` field. */ - apiBindingId?: UUIDFilter; - /** Filter by the object’s `channel` field. */ - channel?: StringFilter; - /** Filter by the object’s `completedAt` field. */ - completedAt?: DatetimeFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `definitionScope` field. */ - definitionScope?: StringFilter; - /** Filter by the object’s `durationMs` field. */ - durationMs?: IntFilter; - /** Filter by the object’s `error` field. */ - error?: StringFilter; - /** Filter by the object’s `functionDefinitionId` field. */ - functionDefinitionId?: UUIDFilter; - /** Filter by the object’s `graphExecutionId` field. */ - graphExecutionId?: UUIDFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `jobId` field. */ - jobId?: BigIntFilter; - /** Negates the expression. */ - not?: FunctionInvocationFilter; - /** Checks for any expressions in this list. */ - or?: FunctionInvocationFilter[]; - /** Filter by the object’s `parentInvocationId` field. */ - parentInvocationId?: UUIDFilter; - /** Filter by the object’s `payload` field. */ - payload?: JSONFilter; - /** Filter by the object’s `provenance` field. */ - provenance?: JSONFilter; - /** Filter by the object’s `result` field. */ - result?: JSONFilter; - /** Filter by the object’s `startedAt` field. */ - startedAt?: DatetimeFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `taskIdentifier` field. */ - taskIdentifier?: StringFilter; +export type UpdateFunctionDefinitionPayloadSelect = { + clientMutationId?: boolean; + functionDefinition?: { + select: FunctionDefinitionSelect; + }; + functionDefinitionEdge?: { + select: FunctionDefinitionEdgeSelect; + }; +}; +export interface DeleteFunctionDefinitionPayload { + clientMutationId?: string | null; + /** The `FunctionDefinition` that was deleted by this mutation. */ + functionDefinition?: FunctionDefinition | null; + functionDefinitionEdge?: FunctionDefinitionEdge | null; +} +export type DeleteFunctionDefinitionPayloadSelect = { + clientMutationId?: boolean; + functionDefinition?: { + select: FunctionDefinitionSelect; + }; + functionDefinitionEdge?: { + select: FunctionDefinitionEdgeSelect; + }; +}; +export interface CreateFunctionDeploymentPayload { + clientMutationId?: string | null; + /** The `FunctionDeployment` that was created by this mutation. */ + functionDeployment?: FunctionDeployment | null; + functionDeploymentEdge?: FunctionDeploymentEdge | null; } -/** A filter to be used against `FunctionApiBinding` object types. All fields are combined with a logical ‘and.’ */ -export interface FunctionApiBindingFilter { - /** Filter by the object’s `alias` field. */ - alias?: StringFilter; - /** Checks for all expressions in this list. */ - and?: FunctionApiBindingFilter[]; - /** 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 `functionDefinition` relation. */ - functionDefinition?: FunctionDefinitionFilter; - /** Filter by the object’s `functionDefinitionId` field. */ - functionDefinitionId?: UUIDFilter; - /** Filter by the object’s `functionInvocationsByApiBindingId` relation. */ - functionInvocationsByApiBindingId?: FunctionApiBindingToManyFunctionInvocationFilter; - /** `functionInvocationsByApiBindingId` exist. */ - functionInvocationsByApiBindingIdExist?: boolean; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Negates the expression. */ - not?: FunctionApiBindingFilter; - /** Checks for any expressions in this list. */ - or?: FunctionApiBindingFilter[]; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; +export type CreateFunctionDeploymentPayloadSelect = { + clientMutationId?: boolean; + functionDeployment?: { + select: FunctionDeploymentSelect; + }; + functionDeploymentEdge?: { + select: FunctionDeploymentEdgeSelect; + }; +}; +export interface UpdateFunctionDeploymentPayload { + clientMutationId?: string | null; + /** The `FunctionDeployment` that was updated by this mutation. */ + functionDeployment?: FunctionDeployment | null; + functionDeploymentEdge?: FunctionDeploymentEdge | null; } -/** A filter to be used against `FunctionCapabilityBinding` object types. All fields are combined with a logical ‘and.’ */ -export interface FunctionCapabilityBindingFilter { - /** Checks for all expressions in this list. */ - and?: FunctionCapabilityBindingFilter[]; - /** 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 `function` relation. */ - function?: FunctionDefinitionFilter; - /** A related `function` exists. */ - functionExists?: boolean; - /** Filter by the object’s `functionId` field. */ - functionId?: UUIDFilter; - /** Filter by the object’s `graphId` field. */ - graphId?: UUIDFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `key` field. */ - key?: StringFilter; - /** Filter by the object’s `lifecycle` field. */ - lifecycle?: StringFilter; - /** Filter by the object’s `metadata` field. */ - metadata?: JSONFilter; - /** Negates the expression. */ - not?: FunctionCapabilityBindingFilter; - /** Checks for any expressions in this list. */ - or?: FunctionCapabilityBindingFilter[]; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; +export type UpdateFunctionDeploymentPayloadSelect = { + clientMutationId?: boolean; + functionDeployment?: { + select: FunctionDeploymentSelect; + }; + functionDeploymentEdge?: { + select: FunctionDeploymentEdgeSelect; + }; +}; +export interface DeleteFunctionDeploymentPayload { + clientMutationId?: string | null; + /** The `FunctionDeployment` that was deleted by this mutation. */ + functionDeployment?: FunctionDeployment | null; + functionDeploymentEdge?: FunctionDeploymentEdge | null; } -/** A filter to be used against `WebhookEndpoint` object types. All fields are combined with a logical ‘and.’ */ -export interface WebhookEndpointFilter { - /** Filter by the object’s `active` field. */ - active?: BooleanFilter; - /** Checks for all expressions in this list. */ - and?: WebhookEndpointFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `functionDefinition` relation. */ - functionDefinition?: FunctionDefinitionFilter; - /** Filter by the object’s `functionDefinitionId` field. */ - functionDefinitionId?: UUIDFilter; - /** Filter by the object’s `host` field. */ - host?: StringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; - /** Negates the expression. */ - not?: WebhookEndpointFilter; - /** Checks for any expressions in this list. */ - or?: WebhookEndpointFilter[]; - /** Filter by the object’s `path` field. */ - path?: StringFilter; - /** Filter by the object’s `provider` field. */ - provider?: StringFilter; - /** Filter by the object’s `replayWindowSeconds` field. */ - replayWindowSeconds?: IntFilter; - /** Filter by the object’s `signingSecretName` field. */ - signingSecretName?: StringFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `webhookEventsByEndpointId` relation. */ - webhookEventsByEndpointId?: WebhookEndpointToManyWebhookEventFilter; - /** `webhookEventsByEndpointId` exist. */ - webhookEventsByEndpointIdExist?: boolean; +export type DeleteFunctionDeploymentPayloadSelect = { + clientMutationId?: boolean; + functionDeployment?: { + select: FunctionDeploymentSelect; + }; + functionDeploymentEdge?: { + select: FunctionDeploymentEdgeSelect; + }; +}; +export interface CreateFunctionDeploymentEventPayload { + clientMutationId?: string | null; + /** The `FunctionDeploymentEvent` that was created by this mutation. */ + functionDeploymentEvent?: FunctionDeploymentEvent | null; + functionDeploymentEventEdge?: FunctionDeploymentEventEdge | null; } -/** A filter to be used against `FunctionGraphExecution` object types. All fields are combined with a logical ‘and.’ */ -export interface FunctionGraphExecutionFilter { - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: FunctionGraphExecutionFilter[]; - /** Filter by the object’s `completedAt` field. */ - completedAt?: DatetimeFilter; - /** Filter by the object’s `currentWave` field. */ - currentWave?: IntFilter; - /** Filter by the object’s `definitionsCommitId` field. */ - definitionsCommitId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `entityType` field. */ - entityType?: StringFilter; - /** Filter by the object’s `errorCode` field. */ - errorCode?: StringFilter; - /** Filter by the object’s `errorMessage` field. */ - errorMessage?: StringFilter; - /** Filter by the object’s `executionPlan` field. */ - executionPlan?: JSONFilter; - /** Filter by the object’s `graph` relation. */ - graph?: FunctionGraphFilter; - /** Filter by the object’s `graphId` field. */ - graphId?: UUIDFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `inputPayload` field. */ - inputPayload?: JSONFilter; - /** Filter by the object’s `invocationCreatedAt` field. */ - invocationCreatedAt?: DatetimeFilter; - /** Filter by the object’s `invocationId` field. */ - invocationId?: UUIDFilter; - /** Filter by the object’s `lastProgressAt` field. */ - lastProgressAt?: DatetimeFilter; - /** Filter by the object’s `maxPendingJobs` field. */ - maxPendingJobs?: IntFilter; - /** Filter by the object’s `maxTicks` field. */ - maxTicks?: IntFilter; - /** Filter by the object’s `nodeOutputs` field. */ - nodeOutputs?: JSONFilter; - /** Negates the expression. */ - not?: FunctionGraphExecutionFilter; - /** Checks for any expressions in this list. */ - or?: FunctionGraphExecutionFilter[]; - /** Filter by the object’s `organizationId` field. */ - organizationId?: UUIDFilter; - /** Filter by the object’s `outputNames` field. */ - outputNames?: StringListFilter; - /** Filter by the object’s `outputNode` field. */ - outputNode?: StringFilter; - /** Filter by the object’s `outputPayload` field. */ - outputPayload?: JSONFilter; - /** Filter by the object’s `outputPort` field. */ - outputPort?: StringFilter; - /** Filter by the object’s `parentExecutionId` field. */ - parentExecutionId?: UUIDFilter; - /** Filter by the object’s `parentInvocationId` field. */ - parentInvocationId?: UUIDFilter; - /** Filter by the object’s `parentNodeName` field. */ - parentNodeName?: StringFilter; - /** Filter by the object’s `principalId` field. */ - principalId?: UUIDFilter; - /** Filter by the object’s `scopeId` field. */ - scopeId?: UUIDFilter; - /** Filter by the object’s `startedAt` field. */ - startedAt?: DatetimeFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `tickCount` field. */ - tickCount?: IntFilter; - /** Filter by the object’s `timeoutAt` field. */ - timeoutAt?: DatetimeFilter; +export type CreateFunctionDeploymentEventPayloadSelect = { + clientMutationId?: boolean; + functionDeploymentEvent?: { + select: FunctionDeploymentEventSelect; + }; + functionDeploymentEventEdge?: { + select: FunctionDeploymentEventEdgeSelect; + }; +}; +export interface UpdateFunctionDeploymentEventPayload { + clientMutationId?: string | null; + /** The `FunctionDeploymentEvent` that was updated by this mutation. */ + functionDeploymentEvent?: FunctionDeploymentEvent | null; + functionDeploymentEventEdge?: FunctionDeploymentEventEdge | null; +} +export type UpdateFunctionDeploymentEventPayloadSelect = { + clientMutationId?: boolean; + functionDeploymentEvent?: { + select: FunctionDeploymentEventSelect; + }; + functionDeploymentEventEdge?: { + select: FunctionDeploymentEventEdgeSelect; + }; +}; +export interface DeleteFunctionDeploymentEventPayload { + clientMutationId?: string | null; + /** The `FunctionDeploymentEvent` that was deleted by this mutation. */ + functionDeploymentEvent?: FunctionDeploymentEvent | null; + functionDeploymentEventEdge?: FunctionDeploymentEventEdge | null; } -/** A filter to be used against `PlatformFunctionDefinition` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformFunctionDefinitionFilter { - /** Filter by the object’s `accessChannels` field. */ - accessChannels?: StringListFilter; - /** Checks for all expressions in this list. */ - and?: PlatformFunctionDefinitionFilter[]; - /** Filter by the object’s `billable` field. */ - billable?: BooleanFilter; - /** Filter by the object’s `category` field. */ - category?: StringFilter; - /** Filter by the object’s `concurrency` field. */ - concurrency?: IntFilter; - /** Filter by the object’s `cpuLimitMillicores` field. */ - cpuLimitMillicores?: BigIntFilter; - /** Filter by the object’s `cpuRequestMillicores` field. */ - cpuRequestMillicores?: BigIntFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `fnCategory` field. */ - fnCategory?: StringFilter; - /** Filter by the object’s `functionColumns` field. */ - functionColumns?: JSONFilter; - /** Filter by the object’s `graph` relation. */ - graph?: FunctionGraphFilter; - /** A related `graph` exists. */ - graphExists?: boolean; - /** Filter by the object’s `graphId` field. */ - graphId?: UUIDFilter; - /** Filter by the object’s `icon` field. */ - icon?: StringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `image` field. */ - image?: StringFilter; - /** Filter by the object’s `inputs` field. */ - inputs?: JSONFilter; - /** Filter by the object’s `integrations` field. */ - integrations?: StringListFilter; - /** Filter by the object’s `isPublished` field. */ - isPublished?: BooleanFilter; - /** Filter by the object’s `maxAttempts` field. */ - maxAttempts?: IntFilter; - /** Filter by the object’s `memoryLimitBytes` field. */ - memoryLimitBytes?: BigIntFilter; - /** Filter by the object’s `memoryRequestBytes` field. */ - memoryRequestBytes?: BigIntFilter; - /** Filter by the object’s `moduleTable` field. */ - moduleTable?: StringFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Negates the expression. */ - not?: PlatformFunctionDefinitionFilter; - /** Checks for any expressions in this list. */ - or?: PlatformFunctionDefinitionFilter[]; - /** Filter by the object’s `outputs` field. */ - outputs?: JSONFilter; - /** Filter by the object’s `payloadArgs` field. */ - payloadArgs?: JSONFilter; - /** Filter by the object’s `platformFunctionApiBindingsByFunctionDefinitionId` relation. */ - platformFunctionApiBindingsByFunctionDefinitionId?: PlatformFunctionDefinitionToManyPlatformFunctionApiBindingFilter; - /** `platformFunctionApiBindingsByFunctionDefinitionId` exist. */ - platformFunctionApiBindingsByFunctionDefinitionIdExist?: boolean; - /** Filter by the object’s `platformFunctionCapabilityBindingsByFunctionId` relation. */ - platformFunctionCapabilityBindingsByFunctionId?: PlatformFunctionDefinitionToManyPlatformFunctionCapabilityBindingFilter; - /** `platformFunctionCapabilityBindingsByFunctionId` exist. */ - platformFunctionCapabilityBindingsByFunctionIdExist?: boolean; - /** Filter by the object’s `platformWebhookEndpointsByFunctionDefinitionId` relation. */ - platformWebhookEndpointsByFunctionDefinitionId?: PlatformFunctionDefinitionToManyPlatformWebhookEndpointFilter; - /** `platformWebhookEndpointsByFunctionDefinitionId` exist. */ - platformWebhookEndpointsByFunctionDefinitionIdExist?: boolean; - /** Filter by the object’s `priority` field. */ - priority?: IntFilter; - /** Filter by the object’s `props` field. */ - props?: JSONFilter; - /** Filter by the object’s `protected` field. */ - protected?: BooleanFilter; - /** Filter by the object’s `publishedAt` field. */ - publishedAt?: DatetimeFilter; - /** Filter by the object’s `queueName` field. */ - queueName?: StringFilter; - /** Filter by the object’s `requiredBuckets` field. */ - 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. */ - runtime?: StringFilter; - /** Filter by the object’s `scaleMax` field. */ - scaleMax?: IntFilter; - /** Filter by the object’s `scaleMin` field. */ - scaleMin?: IntFilter; - /** Filter by the object’s `system` field. */ - system?: BooleanFilter; - /** Filter by the object’s `targetFunction` field. */ - targetFunction?: StringFilter; - /** Filter by the object’s `targetSchema` field. */ - targetSchema?: StringFilter; - /** Filter by the object’s `taskIdentifier` field. */ - taskIdentifier?: StringFilter; - /** Filter by the object’s `timeoutSeconds` field. */ - timeoutSeconds?: IntFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `volatile` field. */ - volatile?: BooleanFilter; +export type DeleteFunctionDeploymentEventPayloadSelect = { + clientMutationId?: boolean; + functionDeploymentEvent?: { + select: FunctionDeploymentEventSelect; + }; + functionDeploymentEventEdge?: { + select: FunctionDeploymentEventEdgeSelect; + }; +}; +export interface CreateFunctionExecutionLogPayload { + clientMutationId?: string | null; + /** The `FunctionExecutionLog` that was created by this mutation. */ + functionExecutionLog?: FunctionExecutionLog | null; + functionExecutionLogEdge?: FunctionExecutionLogEdge | null; } -/** A filter to be used against `FunctionDeployment` object types. All fields are combined with a logical ‘and.’ */ -export interface FunctionDeploymentFilter { - /** Checks for all expressions in this list. */ - and?: FunctionDeploymentFilter[]; - /** Filter by the object’s `annotations` field. */ - annotations?: JSONFilter; - /** Filter by the object’s `concurrency` field. */ - concurrency?: IntFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `errorCount` field. */ - errorCount?: IntFilter; - /** Filter by the object’s `handlerName` field. */ - handlerName?: StringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `image` field. */ - image?: StringFilter; - /** Filter by the object’s `imageVersion` field. */ - imageVersion?: StringFilter; - /** Filter by the object’s `labels` field. */ - labels?: JSONFilter; - /** Filter by the object’s `lastError` field. */ - lastError?: StringFilter; - /** Filter by the object’s `lastErrorAt` field. */ - lastErrorAt?: DatetimeFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; - /** Negates the expression. */ - 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. */ - revision?: IntFilter; - /** Filter by the object’s `scaleMax` field. */ - scaleMax?: IntFilter; - /** Filter by the object’s `scaleMin` field. */ - scaleMin?: IntFilter; - /** Filter by the object’s `serviceName` field. */ - serviceName?: StringFilter; - /** Filter by the object’s `serviceUrl` field. */ - serviceUrl?: StringFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `timeoutSeconds` field. */ - timeoutSeconds?: IntFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; +export type CreateFunctionExecutionLogPayloadSelect = { + clientMutationId?: boolean; + functionExecutionLog?: { + select: FunctionExecutionLogSelect; + }; + functionExecutionLogEdge?: { + select: FunctionExecutionLogEdgeSelect; + }; +}; +export interface UpdateFunctionExecutionLogPayload { + clientMutationId?: string | null; + /** The `FunctionExecutionLog` that was updated by this mutation. */ + functionExecutionLog?: FunctionExecutionLog | null; + functionExecutionLogEdge?: FunctionExecutionLogEdge | null; } -/** A filter to be used against `ResourceDefinition` object types. All fields are combined with a logical ‘and.’ */ -export interface ResourceDefinitionFilter { - /** Checks for all expressions in this list. */ - and?: ResourceDefinitionFilter[]; - /** Filter by the object’s `annotations` field. */ - annotations?: JSONFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `defaultSpec` field. */ - defaultSpec?: JSONFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `integrations` field. */ - integrations?: StringListFilter; - /** Filter by the object’s `kind` field. */ - kind?: StringFilter; - /** Filter by the object’s `labels` field. */ - labels?: JSONFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; - /** Negates the expression. */ - not?: ResourceDefinitionFilter; - /** Checks for any expressions in this list. */ - or?: ResourceDefinitionFilter[]; - /** Filter by the object’s `paramsSchema` field. */ - paramsSchema?: JSONFilter; - /** Filter by the object’s `resources` relation. */ - resources?: ResourceDefinitionToManyResourceFilter; - /** `resources` exist. */ - resourcesExist?: boolean; - /** Filter by the object’s `slug` field. */ - slug?: StringFilter; - /** Filter by the object’s `stepUpMinAge` field. */ - stepUpMinAge?: IntervalFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; +export type UpdateFunctionExecutionLogPayloadSelect = { + clientMutationId?: boolean; + functionExecutionLog?: { + select: FunctionExecutionLogSelect; + }; + functionExecutionLogEdge?: { + select: FunctionExecutionLogEdgeSelect; + }; +}; +export interface DeleteFunctionExecutionLogPayload { + clientMutationId?: string | null; + /** The `FunctionExecutionLog` that was deleted by this mutation. */ + functionExecutionLog?: FunctionExecutionLog | null; + functionExecutionLogEdge?: FunctionExecutionLogEdge | null; } -/** A filter to be used against `ResourceInstallation` object types. All fields are combined with a logical ‘and.’ */ -export interface ResourceInstallationFilter { - /** Checks for all expressions in this list. */ - and?: ResourceInstallationFilter[]; - /** Filter by the object’s `commitId` field. */ - commitId?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; - /** Negates the expression. */ - not?: ResourceInstallationFilter; - /** Checks for any expressions in this list. */ - or?: ResourceInstallationFilter[]; - /** Filter by the object’s `params` field. */ - params?: JSONFilter; - /** Filter by the object’s `resourcesByInstallationId` relation. */ - resourcesByInstallationId?: ResourceInstallationToManyResourceFilter; - /** `resourcesByInstallationId` exist. */ - resourcesByInstallationIdExist?: boolean; - /** Filter by the object’s `revision` field. */ - revision?: IntFilter; - /** Filter by the object’s `slug` field. */ - slug?: StringFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `storeId` field. */ - storeId?: UUIDFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; +export type DeleteFunctionExecutionLogPayloadSelect = { + clientMutationId?: boolean; + functionExecutionLog?: { + select: FunctionExecutionLogSelect; + }; + functionExecutionLogEdge?: { + select: FunctionExecutionLogEdgeSelect; + }; +}; +export interface CreateFunctionGraphCommitPayload { + clientMutationId?: string | null; + /** The `FunctionGraphCommit` that was created by this mutation. */ + functionGraphCommit?: FunctionGraphCommit | null; + functionGraphCommitEdge?: FunctionGraphCommitEdge | null; } -/** A filter to be used against `Resource` object types. All fields are combined with a logical ‘and.’ */ -export interface ResourceFilter { - /** Checks for all expressions in this list. */ - and?: ResourceFilter[]; - /** Filter by the object’s `annotations` field. */ - annotations?: JSONFilter; - /** Filter by the object’s `cpuLimitMillicores` field. */ - cpuLimitMillicores?: BigIntFilter; - /** Filter by the object’s `cpuRequestMillicores` field. */ - cpuRequestMillicores?: BigIntFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `errorCount` field. */ - errorCount?: IntFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `installation` relation. */ - installation?: ResourceInstallationFilter; - /** A related `installation` exists. */ - installationExists?: boolean; - /** Filter by the object’s `installationId` field. */ - installationId?: UUIDFilter; - /** Filter by the object’s `integrations` field. */ - integrations?: StringListFilter; - /** Filter by the object’s `kind` field. */ - kind?: StringFilter; - /** Filter by the object’s `labels` field. */ - labels?: JSONFilter; - /** Filter by the object’s `lastError` field. */ - lastError?: StringFilter; - /** Filter by the object’s `lastHeartbeatAt` field. */ - lastHeartbeatAt?: DatetimeFilter; - /** Filter by the object’s `memoryLimitBytes` field. */ - memoryLimitBytes?: BigIntFilter; - /** Filter by the object’s `memoryRequestBytes` field. */ - memoryRequestBytes?: BigIntFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; - /** Negates the expression. */ - not?: ResourceFilter; - /** Checks for any expressions in this list. */ - or?: ResourceFilter[]; - /** Filter by the object’s `realm` field. */ - realm?: StringFilter; - /** Filter by the object’s `replicas` field. */ - replicas?: IntFilter; - /** Filter by the object’s `resourceDefinition` relation. */ - resourceDefinition?: ResourceDefinitionFilter; - /** A related `resourceDefinition` exists. */ - resourceDefinitionExists?: boolean; - /** Filter by the object’s `resourceDefinitionId` field. */ - resourceDefinitionId?: UUIDFilter; - /** Filter by the object’s `resourceStatusChecks` relation. */ - resourceStatusChecks?: ResourceToManyResourceStatusCheckFilter; - /** `resourceStatusChecks` exist. */ - resourceStatusChecksExist?: boolean; - /** Filter by the object’s `slug` field. */ - slug?: StringFilter; - /** Filter by the object’s `spec` field. */ - spec?: JSONFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `statusObserved` field. */ - statusObserved?: JSONFilter; - /** Filter by the object’s `storageClass` field. */ - storageClass?: StringFilter; - /** Filter by the object’s `storageSizeBytes` field. */ - storageSizeBytes?: BigIntFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; +export type CreateFunctionGraphCommitPayloadSelect = { + clientMutationId?: boolean; + functionGraphCommit?: { + select: FunctionGraphCommitSelect; + }; + functionGraphCommitEdge?: { + select: FunctionGraphCommitEdgeSelect; + }; +}; +export interface UpdateFunctionGraphCommitPayload { + clientMutationId?: string | null; + /** The `FunctionGraphCommit` that was updated by this mutation. */ + functionGraphCommit?: FunctionGraphCommit | null; + functionGraphCommitEdge?: FunctionGraphCommitEdge | null; } -/** A filter to be used against `PlatformFunctionInvocation` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformFunctionInvocationFilter { - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: PlatformFunctionInvocationFilter[]; - /** Filter by the object’s `apiBinding` relation. */ - apiBinding?: PlatformFunctionApiBindingFilter; - /** A related `apiBinding` exists. */ - apiBindingExists?: boolean; - /** Filter by the object’s `apiBindingId` field. */ - apiBindingId?: UUIDFilter; - /** Filter by the object’s `channel` field. */ - channel?: StringFilter; - /** Filter by the object’s `completedAt` field. */ - completedAt?: DatetimeFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `definitionScope` field. */ - definitionScope?: StringFilter; - /** Filter by the object’s `durationMs` field. */ - durationMs?: IntFilter; - /** Filter by the object’s `error` field. */ - error?: StringFilter; - /** Filter by the object’s `functionDefinitionId` field. */ - functionDefinitionId?: UUIDFilter; - /** Filter by the object’s `graphExecutionId` field. */ - graphExecutionId?: UUIDFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `jobId` field. */ - jobId?: BigIntFilter; - /** Negates the expression. */ - not?: PlatformFunctionInvocationFilter; - /** Checks for any expressions in this list. */ - or?: PlatformFunctionInvocationFilter[]; - /** Filter by the object’s `parentInvocationId` field. */ - parentInvocationId?: UUIDFilter; - /** Filter by the object’s `payload` field. */ - payload?: JSONFilter; - /** Filter by the object’s `provenance` field. */ - provenance?: JSONFilter; - /** Filter by the object’s `result` field. */ - result?: JSONFilter; - /** Filter by the object’s `startedAt` field. */ - startedAt?: DatetimeFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `taskIdentifier` field. */ - taskIdentifier?: StringFilter; +export type UpdateFunctionGraphCommitPayloadSelect = { + clientMutationId?: boolean; + functionGraphCommit?: { + select: FunctionGraphCommitSelect; + }; + functionGraphCommitEdge?: { + select: FunctionGraphCommitEdgeSelect; + }; +}; +export interface DeleteFunctionGraphCommitPayload { + clientMutationId?: string | null; + /** The `FunctionGraphCommit` that was deleted by this mutation. */ + functionGraphCommit?: FunctionGraphCommit | null; + functionGraphCommitEdge?: FunctionGraphCommitEdge | null; +} +export type DeleteFunctionGraphCommitPayloadSelect = { + clientMutationId?: boolean; + functionGraphCommit?: { + select: FunctionGraphCommitSelect; + }; + functionGraphCommitEdge?: { + select: FunctionGraphCommitEdgeSelect; + }; +}; +export interface CreateFunctionGraphPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type CreateFunctionGraphPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface UpdateFunctionGraphPayload { + clientMutationId?: string | null; + /** The `FunctionGraph` that was updated by this mutation. */ + functionGraph?: FunctionGraph | null; + functionGraphEdge?: FunctionGraphEdge | null; +} +export type UpdateFunctionGraphPayloadSelect = { + clientMutationId?: boolean; + functionGraph?: { + select: FunctionGraphSelect; + }; + functionGraphEdge?: { + select: FunctionGraphEdgeSelect; + }; +}; +export interface DeleteFunctionGraphPayload { + clientMutationId?: string | null; + /** The `FunctionGraph` that was deleted by this mutation. */ + functionGraph?: FunctionGraph | null; + functionGraphEdge?: FunctionGraphEdge | null; } -/** A filter to be used against `PlatformFunctionApiBinding` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformFunctionApiBindingFilter { - /** Filter by the object’s `alias` field. */ - alias?: StringFilter; - /** Checks for all expressions in this list. */ - and?: PlatformFunctionApiBindingFilter[]; - /** 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 `functionDefinition` relation. */ - functionDefinition?: PlatformFunctionDefinitionFilter; - /** Filter by the object’s `functionDefinitionId` field. */ - functionDefinitionId?: UUIDFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Negates the expression. */ - not?: PlatformFunctionApiBindingFilter; - /** Checks for any expressions in this list. */ - or?: PlatformFunctionApiBindingFilter[]; - /** Filter by the object’s `platformFunctionInvocationsByApiBindingId` relation. */ - platformFunctionInvocationsByApiBindingId?: PlatformFunctionApiBindingToManyPlatformFunctionInvocationFilter; - /** `platformFunctionInvocationsByApiBindingId` exist. */ - platformFunctionInvocationsByApiBindingIdExist?: boolean; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; +export type DeleteFunctionGraphPayloadSelect = { + clientMutationId?: boolean; + functionGraph?: { + select: FunctionGraphSelect; + }; + functionGraphEdge?: { + select: FunctionGraphEdgeSelect; + }; +}; +export interface CreateFunctionGraphExecutionPayload { + clientMutationId?: string | null; + /** The `FunctionGraphExecution` that was created by this mutation. */ + functionGraphExecution?: FunctionGraphExecution | null; + functionGraphExecutionEdge?: FunctionGraphExecutionEdge | null; } -/** A filter to be used against `PlatformFunctionCapabilityBinding` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformFunctionCapabilityBindingFilter { - /** Checks for all expressions in this list. */ - and?: PlatformFunctionCapabilityBindingFilter[]; - /** Filter by the object’s `bucketId` field. */ - bucketId?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `function` relation. */ - function?: PlatformFunctionDefinitionFilter; - /** A related `function` exists. */ - functionExists?: boolean; - /** Filter by the object’s `functionId` field. */ - functionId?: UUIDFilter; - /** Filter by the object’s `graphId` field. */ - graphId?: UUIDFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `key` field. */ - key?: StringFilter; - /** Filter by the object’s `lifecycle` field. */ - lifecycle?: StringFilter; - /** Filter by the object’s `metadata` field. */ - metadata?: JSONFilter; - /** Negates the expression. */ - not?: PlatformFunctionCapabilityBindingFilter; - /** Checks for any expressions in this list. */ - or?: PlatformFunctionCapabilityBindingFilter[]; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; +export type CreateFunctionGraphExecutionPayloadSelect = { + clientMutationId?: boolean; + functionGraphExecution?: { + select: FunctionGraphExecutionSelect; + }; + functionGraphExecutionEdge?: { + select: FunctionGraphExecutionEdgeSelect; + }; +}; +export interface UpdateFunctionGraphExecutionPayload { + clientMutationId?: string | null; + /** The `FunctionGraphExecution` that was updated by this mutation. */ + functionGraphExecution?: FunctionGraphExecution | null; + functionGraphExecutionEdge?: FunctionGraphExecutionEdge | null; } -/** A filter to be used against `PlatformWebhookEndpoint` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformWebhookEndpointFilter { - /** Filter by the object’s `active` field. */ - active?: BooleanFilter; - /** Checks for all expressions in this list. */ - and?: PlatformWebhookEndpointFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `functionDefinition` relation. */ - functionDefinition?: PlatformFunctionDefinitionFilter; - /** Filter by the object’s `functionDefinitionId` field. */ - functionDefinitionId?: UUIDFilter; - /** Filter by the object’s `host` field. */ - host?: StringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: PlatformNamespaceFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; - /** Negates the expression. */ - not?: PlatformWebhookEndpointFilter; - /** Checks for any expressions in this list. */ - or?: PlatformWebhookEndpointFilter[]; - /** Filter by the object’s `path` field. */ - path?: StringFilter; - /** Filter by the object’s `platformWebhookEventsByEndpointId` relation. */ - platformWebhookEventsByEndpointId?: PlatformWebhookEndpointToManyPlatformWebhookEventFilter; - /** `platformWebhookEventsByEndpointId` exist. */ - platformWebhookEventsByEndpointIdExist?: boolean; - /** Filter by the object’s `provider` field. */ - provider?: StringFilter; - /** Filter by the object’s `replayWindowSeconds` field. */ - replayWindowSeconds?: IntFilter; - /** Filter by the object’s `signingSecretName` field. */ - signingSecretName?: StringFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; +export type UpdateFunctionGraphExecutionPayloadSelect = { + clientMutationId?: boolean; + functionGraphExecution?: { + select: FunctionGraphExecutionSelect; + }; + functionGraphExecutionEdge?: { + select: FunctionGraphExecutionEdgeSelect; + }; +}; +export interface DeleteFunctionGraphExecutionPayload { + clientMutationId?: string | null; + /** The `FunctionGraphExecution` that was deleted by this mutation. */ + functionGraphExecution?: FunctionGraphExecution | null; + functionGraphExecutionEdge?: FunctionGraphExecutionEdge | null; } -/** A filter to be used against `PlatformFunctionDeployment` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformFunctionDeploymentFilter { - /** Checks for all expressions in this list. */ - and?: PlatformFunctionDeploymentFilter[]; - /** Filter by the object’s `annotations` field. */ - annotations?: JSONFilter; - /** Filter by the object’s `concurrency` field. */ - concurrency?: IntFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `errorCount` field. */ - errorCount?: IntFilter; - /** Filter by the object’s `handlerName` field. */ - handlerName?: StringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `image` field. */ - image?: StringFilter; - /** Filter by the object’s `imageVersion` field. */ - imageVersion?: StringFilter; - /** Filter by the object’s `labels` field. */ - labels?: JSONFilter; - /** Filter by the object’s `lastError` field. */ - lastError?: StringFilter; - /** Filter by the object’s `lastErrorAt` field. */ - lastErrorAt?: DatetimeFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: PlatformNamespaceFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; - /** Negates the expression. */ - 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. */ - revision?: IntFilter; - /** Filter by the object’s `scaleMax` field. */ - scaleMax?: IntFilter; - /** Filter by the object’s `scaleMin` field. */ - scaleMin?: IntFilter; - /** Filter by the object’s `serviceName` field. */ - serviceName?: StringFilter; - /** Filter by the object’s `serviceUrl` field. */ - serviceUrl?: StringFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `timeoutSeconds` field. */ - timeoutSeconds?: IntFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; +export type DeleteFunctionGraphExecutionPayloadSelect = { + clientMutationId?: boolean; + functionGraphExecution?: { + select: FunctionGraphExecutionSelect; + }; + functionGraphExecutionEdge?: { + select: FunctionGraphExecutionEdgeSelect; + }; +}; +export interface CreateFunctionGraphExecutionNodeStatePayload { + clientMutationId?: string | null; + /** The `FunctionGraphExecutionNodeState` that was created by this mutation. */ + functionGraphExecutionNodeState?: FunctionGraphExecutionNodeState | null; + functionGraphExecutionNodeStateEdge?: FunctionGraphExecutionNodeStateEdge | null; +} +export type CreateFunctionGraphExecutionNodeStatePayloadSelect = { + clientMutationId?: boolean; + functionGraphExecutionNodeState?: { + select: FunctionGraphExecutionNodeStateSelect; + }; + functionGraphExecutionNodeStateEdge?: { + select: FunctionGraphExecutionNodeStateEdgeSelect; + }; +}; +export interface UpdateFunctionGraphExecutionNodeStatePayload { + clientMutationId?: string | null; + /** The `FunctionGraphExecutionNodeState` that was updated by this mutation. */ + functionGraphExecutionNodeState?: FunctionGraphExecutionNodeState | null; + functionGraphExecutionNodeStateEdge?: FunctionGraphExecutionNodeStateEdge | null; +} +export type UpdateFunctionGraphExecutionNodeStatePayloadSelect = { + clientMutationId?: boolean; + functionGraphExecutionNodeState?: { + select: FunctionGraphExecutionNodeStateSelect; + }; + functionGraphExecutionNodeStateEdge?: { + select: FunctionGraphExecutionNodeStateEdgeSelect; + }; +}; +export interface DeleteFunctionGraphExecutionNodeStatePayload { + clientMutationId?: string | null; + /** The `FunctionGraphExecutionNodeState` that was deleted by this mutation. */ + functionGraphExecutionNodeState?: FunctionGraphExecutionNodeState | null; + functionGraphExecutionNodeStateEdge?: FunctionGraphExecutionNodeStateEdge | null; +} +export type DeleteFunctionGraphExecutionNodeStatePayloadSelect = { + clientMutationId?: boolean; + functionGraphExecutionNodeState?: { + select: FunctionGraphExecutionNodeStateSelect; + }; + functionGraphExecutionNodeStateEdge?: { + select: FunctionGraphExecutionNodeStateEdgeSelect; + }; +}; +export interface CreateFunctionGraphExecutionOutputPayload { + clientMutationId?: string | null; + /** The `FunctionGraphExecutionOutput` that was created by this mutation. */ + functionGraphExecutionOutput?: FunctionGraphExecutionOutput | null; + functionGraphExecutionOutputEdge?: FunctionGraphExecutionOutputEdge | null; } -/** A filter to be used against `PlatformResourceDefinition` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformResourceDefinitionFilter { - /** Checks for all expressions in this list. */ - and?: PlatformResourceDefinitionFilter[]; - /** Filter by the object’s `annotations` field. */ - annotations?: JSONFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `defaultSpec` field. */ - defaultSpec?: JSONFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `integrations` field. */ - integrations?: StringListFilter; - /** Filter by the object’s `kind` field. */ - kind?: StringFilter; - /** Filter by the object’s `labels` field. */ - labels?: JSONFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: PlatformNamespaceFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; - /** Negates the expression. */ - not?: PlatformResourceDefinitionFilter; - /** Checks for any expressions in this list. */ - or?: PlatformResourceDefinitionFilter[]; - /** Filter by the object’s `paramsSchema` field. */ - paramsSchema?: JSONFilter; - /** Filter by the object’s `platformResourcesByResourceDefinitionId` relation. */ - platformResourcesByResourceDefinitionId?: PlatformResourceDefinitionToManyPlatformResourceFilter; - /** `platformResourcesByResourceDefinitionId` exist. */ - platformResourcesByResourceDefinitionIdExist?: boolean; - /** Filter by the object’s `slug` field. */ - slug?: StringFilter; - /** Filter by the object’s `stepUpMinAge` field. */ - stepUpMinAge?: IntervalFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; +export type CreateFunctionGraphExecutionOutputPayloadSelect = { + clientMutationId?: boolean; + functionGraphExecutionOutput?: { + select: FunctionGraphExecutionOutputSelect; + }; + functionGraphExecutionOutputEdge?: { + select: FunctionGraphExecutionOutputEdgeSelect; + }; +}; +export interface UpdateFunctionGraphExecutionOutputPayload { + clientMutationId?: string | null; + /** The `FunctionGraphExecutionOutput` that was updated by this mutation. */ + functionGraphExecutionOutput?: FunctionGraphExecutionOutput | null; + functionGraphExecutionOutputEdge?: FunctionGraphExecutionOutputEdge | null; } -/** A filter to be used against `PlatformResourceInstallation` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformResourceInstallationFilter { - /** Checks for all expressions in this list. */ - and?: PlatformResourceInstallationFilter[]; - /** Filter by the object’s `commitId` field. */ - commitId?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: PlatformNamespaceFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; - /** Negates the expression. */ - not?: PlatformResourceInstallationFilter; - /** Checks for any expressions in this list. */ - or?: PlatformResourceInstallationFilter[]; - /** Filter by the object’s `params` field. */ - params?: JSONFilter; - /** Filter by the object’s `platformResourcesByInstallationId` relation. */ - platformResourcesByInstallationId?: PlatformResourceInstallationToManyPlatformResourceFilter; - /** `platformResourcesByInstallationId` exist. */ - platformResourcesByInstallationIdExist?: boolean; - /** Filter by the object’s `revision` field. */ - revision?: IntFilter; - /** Filter by the object’s `slug` field. */ - slug?: StringFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `storeId` field. */ - storeId?: UUIDFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; +export type UpdateFunctionGraphExecutionOutputPayloadSelect = { + clientMutationId?: boolean; + functionGraphExecutionOutput?: { + select: FunctionGraphExecutionOutputSelect; + }; + functionGraphExecutionOutputEdge?: { + select: FunctionGraphExecutionOutputEdgeSelect; + }; +}; +export interface DeleteFunctionGraphExecutionOutputPayload { + clientMutationId?: string | null; + /** The `FunctionGraphExecutionOutput` that was deleted by this mutation. */ + functionGraphExecutionOutput?: FunctionGraphExecutionOutput | null; + functionGraphExecutionOutputEdge?: FunctionGraphExecutionOutputEdge | null; } -/** A filter to be used against `PlatformResource` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformResourceFilter { - /** Checks for all expressions in this list. */ - and?: PlatformResourceFilter[]; - /** Filter by the object’s `annotations` field. */ - annotations?: JSONFilter; - /** Filter by the object’s `cpuLimitMillicores` field. */ - cpuLimitMillicores?: BigIntFilter; - /** Filter by the object’s `cpuRequestMillicores` field. */ - cpuRequestMillicores?: BigIntFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `errorCount` field. */ - errorCount?: IntFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `installation` relation. */ - installation?: PlatformResourceInstallationFilter; - /** A related `installation` exists. */ - installationExists?: boolean; - /** Filter by the object’s `installationId` field. */ - installationId?: UUIDFilter; - /** Filter by the object’s `integrations` field. */ - integrations?: StringListFilter; - /** Filter by the object’s `kind` field. */ - kind?: StringFilter; - /** Filter by the object’s `labels` field. */ - labels?: JSONFilter; - /** Filter by the object’s `lastError` field. */ - lastError?: StringFilter; - /** Filter by the object’s `lastHeartbeatAt` field. */ - lastHeartbeatAt?: DatetimeFilter; - /** Filter by the object’s `memoryLimitBytes` field. */ - memoryLimitBytes?: BigIntFilter; - /** Filter by the object’s `memoryRequestBytes` field. */ - memoryRequestBytes?: BigIntFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: PlatformNamespaceFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; - /** Negates the expression. */ - not?: PlatformResourceFilter; - /** Checks for any expressions in this list. */ - or?: PlatformResourceFilter[]; - /** Filter by the object’s `platformResourceStatusChecksByResourceId` relation. */ - platformResourceStatusChecksByResourceId?: PlatformResourceToManyPlatformResourceStatusCheckFilter; - /** `platformResourceStatusChecksByResourceId` exist. */ - platformResourceStatusChecksByResourceIdExist?: boolean; - /** Filter by the object’s `realm` field. */ - realm?: StringFilter; - /** Filter by the object’s `replicas` field. */ - replicas?: IntFilter; - /** Filter by the object’s `resourceDefinition` relation. */ - resourceDefinition?: PlatformResourceDefinitionFilter; - /** A related `resourceDefinition` exists. */ - resourceDefinitionExists?: boolean; - /** Filter by the object’s `resourceDefinitionId` field. */ - resourceDefinitionId?: UUIDFilter; - /** Filter by the object’s `slug` field. */ - slug?: StringFilter; - /** Filter by the object’s `spec` field. */ - spec?: JSONFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `statusObserved` field. */ - statusObserved?: JSONFilter; - /** Filter by the object’s `storageClass` field. */ - storageClass?: StringFilter; - /** Filter by the object’s `storageSizeBytes` field. */ - storageSizeBytes?: BigIntFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; +export type DeleteFunctionGraphExecutionOutputPayloadSelect = { + clientMutationId?: boolean; + functionGraphExecutionOutput?: { + select: FunctionGraphExecutionOutputSelect; + }; + functionGraphExecutionOutputEdge?: { + select: FunctionGraphExecutionOutputEdgeSelect; + }; +}; +export interface CreateFunctionGraphObjectPayload { + clientMutationId?: string | null; + /** The `FunctionGraphObject` that was created by this mutation. */ + functionGraphObject?: FunctionGraphObject | null; + functionGraphObjectEdge?: FunctionGraphObjectEdge | null; +} +export type CreateFunctionGraphObjectPayloadSelect = { + clientMutationId?: boolean; + functionGraphObject?: { + select: FunctionGraphObjectSelect; + }; + functionGraphObjectEdge?: { + select: FunctionGraphObjectEdgeSelect; + }; +}; +export interface UpdateFunctionGraphObjectPayload { + clientMutationId?: string | null; + /** The `FunctionGraphObject` that was updated by this mutation. */ + functionGraphObject?: FunctionGraphObject | null; + functionGraphObjectEdge?: FunctionGraphObjectEdge | null; +} +export type UpdateFunctionGraphObjectPayloadSelect = { + clientMutationId?: boolean; + functionGraphObject?: { + select: FunctionGraphObjectSelect; + }; + functionGraphObjectEdge?: { + select: FunctionGraphObjectEdgeSelect; + }; +}; +export interface DeleteFunctionGraphObjectPayload { + clientMutationId?: string | null; + /** The `FunctionGraphObject` that was deleted by this mutation. */ + functionGraphObject?: FunctionGraphObject | null; + functionGraphObjectEdge?: FunctionGraphObjectEdge | null; +} +export type DeleteFunctionGraphObjectPayloadSelect = { + clientMutationId?: boolean; + functionGraphObject?: { + select: FunctionGraphObjectSelect; + }; + functionGraphObjectEdge?: { + select: FunctionGraphObjectEdgeSelect; + }; +}; +export interface CreateFunctionGraphRefPayload { + clientMutationId?: string | null; + /** The `FunctionGraphRef` that was created by this mutation. */ + functionGraphRef?: FunctionGraphRef | null; + functionGraphRefEdge?: FunctionGraphRefEdge | null; +} +export type CreateFunctionGraphRefPayloadSelect = { + clientMutationId?: boolean; + functionGraphRef?: { + select: FunctionGraphRefSelect; + }; + functionGraphRefEdge?: { + select: FunctionGraphRefEdgeSelect; + }; +}; +export interface UpdateFunctionGraphRefPayload { + clientMutationId?: string | null; + /** The `FunctionGraphRef` that was updated by this mutation. */ + functionGraphRef?: FunctionGraphRef | null; + functionGraphRefEdge?: FunctionGraphRefEdge | null; } -/** A filter to be used against `PlatformResourceStatusCheck` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformResourceStatusCheckFilter { - /** Checks for all expressions in this list. */ - and?: PlatformResourceStatusCheckFilter[]; - /** Filter by the object’s `completedAt` field. */ - completedAt?: DatetimeFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Negates the expression. */ - not?: PlatformResourceStatusCheckFilter; - /** Checks for any expressions in this list. */ - or?: PlatformResourceStatusCheckFilter[]; - /** Filter by the object’s `requestedAt` field. */ - requestedAt?: DatetimeFilter; - /** Filter by the object’s `requestedBy` field. */ - requestedBy?: UUIDFilter; - /** Filter by the object’s `resource` relation. */ - resource?: PlatformResourceFilter; - /** Filter by the object’s `resourceId` field. */ - resourceId?: UUIDFilter; - /** Filter by the object’s `result` field. */ - result?: JSONFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; +export type UpdateFunctionGraphRefPayloadSelect = { + clientMutationId?: boolean; + functionGraphRef?: { + select: FunctionGraphRefSelect; + }; + functionGraphRefEdge?: { + select: FunctionGraphRefEdgeSelect; + }; +}; +export interface DeleteFunctionGraphRefPayload { + clientMutationId?: string | null; + /** The `FunctionGraphRef` that was deleted by this mutation. */ + functionGraphRef?: FunctionGraphRef | null; + functionGraphRefEdge?: FunctionGraphRefEdge | null; } -/** A filter to be used against `PlatformWebhookEvent` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformWebhookEventFilter { - /** Checks for all expressions in this list. */ - and?: PlatformWebhookEventFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `endpoint` relation. */ - endpoint?: PlatformWebhookEndpointFilter; - /** Filter by the object’s `endpointId` field. */ - endpointId?: UUIDFilter; - /** Filter by the object’s `error` field. */ - error?: StringFilter; - /** Filter by the object’s `externalEventId` field. */ - externalEventId?: StringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `invocationCreatedAt` field. */ - invocationCreatedAt?: DatetimeFilter; - /** Filter by the object’s `invocationId` field. */ - invocationId?: UUIDFilter; - /** Negates the expression. */ - not?: PlatformWebhookEventFilter; - /** Checks for any expressions in this list. */ - or?: PlatformWebhookEventFilter[]; - /** Filter by the object’s `payload` field. */ - payload?: JSONFilter; - /** Filter by the object’s `provider` field. */ - provider?: StringFilter; - /** Filter by the object’s `providerTimestamp` field. */ - providerTimestamp?: DatetimeFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; +export type DeleteFunctionGraphRefPayloadSelect = { + clientMutationId?: boolean; + functionGraphRef?: { + select: FunctionGraphRefSelect; + }; + functionGraphRefEdge?: { + select: FunctionGraphRefEdgeSelect; + }; +}; +export interface CreateFunctionGraphStorePayload { + clientMutationId?: string | null; + /** The `FunctionGraphStore` that was created by this mutation. */ + functionGraphStore?: FunctionGraphStore | null; + functionGraphStoreEdge?: FunctionGraphStoreEdge | null; } -/** A filter to be used against `ResourceStatusCheck` object types. All fields are combined with a logical ‘and.’ */ -export interface ResourceStatusCheckFilter { - /** Checks for all expressions in this list. */ - and?: ResourceStatusCheckFilter[]; - /** Filter by the object’s `completedAt` field. */ - completedAt?: DatetimeFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Negates the expression. */ - not?: ResourceStatusCheckFilter; - /** Checks for any expressions in this list. */ - or?: ResourceStatusCheckFilter[]; - /** Filter by the object’s `requestedAt` field. */ - requestedAt?: DatetimeFilter; - /** Filter by the object’s `requestedBy` field. */ - requestedBy?: UUIDFilter; - /** Filter by the object’s `resource` relation. */ - resource?: ResourceFilter; - /** Filter by the object’s `resourceId` field. */ - resourceId?: UUIDFilter; - /** Filter by the object’s `result` field. */ - result?: JSONFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; +export type CreateFunctionGraphStorePayloadSelect = { + clientMutationId?: boolean; + functionGraphStore?: { + select: FunctionGraphStoreSelect; + }; + functionGraphStoreEdge?: { + select: FunctionGraphStoreEdgeSelect; + }; +}; +export interface UpdateFunctionGraphStorePayload { + clientMutationId?: string | null; + /** The `FunctionGraphStore` that was updated by this mutation. */ + functionGraphStore?: FunctionGraphStore | null; + functionGraphStoreEdge?: FunctionGraphStoreEdge | null; } -/** A filter to be used against `WebhookEvent` object types. All fields are combined with a logical ‘and.’ */ -export interface WebhookEventFilter { - /** Checks for all expressions in this list. */ - and?: WebhookEventFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `endpoint` relation. */ - endpoint?: WebhookEndpointFilter; - /** Filter by the object’s `endpointId` field. */ - endpointId?: UUIDFilter; - /** Filter by the object’s `error` field. */ - error?: StringFilter; - /** Filter by the object’s `externalEventId` field. */ - externalEventId?: StringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `invocationCreatedAt` field. */ - invocationCreatedAt?: DatetimeFilter; - /** Filter by the object’s `invocationId` field. */ - invocationId?: UUIDFilter; - /** Negates the expression. */ - not?: WebhookEventFilter; - /** Checks for any expressions in this list. */ - or?: WebhookEventFilter[]; - /** Filter by the object’s `payload` field. */ - payload?: JSONFilter; - /** Filter by the object’s `provider` field. */ - provider?: StringFilter; - /** Filter by the object’s `providerTimestamp` field. */ - providerTimestamp?: DatetimeFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; +export type UpdateFunctionGraphStorePayloadSelect = { + clientMutationId?: boolean; + functionGraphStore?: { + select: FunctionGraphStoreSelect; + }; + functionGraphStoreEdge?: { + select: FunctionGraphStoreEdgeSelect; + }; +}; +export interface DeleteFunctionGraphStorePayload { + clientMutationId?: string | null; + /** The `FunctionGraphStore` that was deleted by this mutation. */ + functionGraphStore?: FunctionGraphStore | null; + functionGraphStoreEdge?: FunctionGraphStoreEdge | null; +} +export type DeleteFunctionGraphStorePayloadSelect = { + clientMutationId?: boolean; + functionGraphStore?: { + select: FunctionGraphStoreSelect; + }; + functionGraphStoreEdge?: { + select: FunctionGraphStoreEdgeSelect; + }; +}; +export interface CreateFunctionInvocationAttemptPayload { + clientMutationId?: string | null; + /** The `FunctionInvocationAttempt` that was created by this mutation. */ + functionInvocationAttempt?: FunctionInvocationAttempt | null; + functionInvocationAttemptEdge?: FunctionInvocationAttemptEdge | null; +} +export type CreateFunctionInvocationAttemptPayloadSelect = { + clientMutationId?: boolean; + functionInvocationAttempt?: { + select: FunctionInvocationAttemptSelect; + }; + functionInvocationAttemptEdge?: { + select: FunctionInvocationAttemptEdgeSelect; + }; +}; +export interface UpdateFunctionInvocationAttemptPayload { + clientMutationId?: string | null; + /** The `FunctionInvocationAttempt` that was updated by this mutation. */ + functionInvocationAttempt?: FunctionInvocationAttempt | null; + functionInvocationAttemptEdge?: FunctionInvocationAttemptEdge | null; +} +export type UpdateFunctionInvocationAttemptPayloadSelect = { + clientMutationId?: boolean; + functionInvocationAttempt?: { + select: FunctionInvocationAttemptSelect; + }; + functionInvocationAttemptEdge?: { + select: FunctionInvocationAttemptEdgeSelect; + }; +}; +export interface DeleteFunctionInvocationAttemptPayload { + clientMutationId?: string | null; + /** The `FunctionInvocationAttempt` that was deleted by this mutation. */ + functionInvocationAttempt?: FunctionInvocationAttempt | null; + functionInvocationAttemptEdge?: FunctionInvocationAttemptEdge | null; +} +export type DeleteFunctionInvocationAttemptPayloadSelect = { + clientMutationId?: boolean; + functionInvocationAttempt?: { + select: FunctionInvocationAttemptSelect; + }; + functionInvocationAttemptEdge?: { + select: FunctionInvocationAttemptEdgeSelect; + }; +}; +export interface CreateFunctionInvocationPayload { + clientMutationId?: string | null; + /** The `FunctionInvocation` that was created by this mutation. */ + functionInvocation?: FunctionInvocation | null; + functionInvocationEdge?: FunctionInvocationEdge | null; +} +export type CreateFunctionInvocationPayloadSelect = { + clientMutationId?: boolean; + functionInvocation?: { + select: FunctionInvocationSelect; + }; + functionInvocationEdge?: { + select: FunctionInvocationEdgeSelect; + }; +}; +export interface UpdateFunctionInvocationPayload { + clientMutationId?: string | null; + /** The `FunctionInvocation` that was updated by this mutation. */ + functionInvocation?: FunctionInvocation | null; + functionInvocationEdge?: FunctionInvocationEdge | null; } -/** 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[]; +export type UpdateFunctionInvocationPayloadSelect = { + clientMutationId?: boolean; + functionInvocation?: { + select: FunctionInvocationSelect; + }; + functionInvocationEdge?: { + select: FunctionInvocationEdgeSelect; + }; +}; +export interface DeleteFunctionInvocationPayload { + clientMutationId?: string | null; + /** The `FunctionInvocation` that was deleted by this mutation. */ + functionInvocation?: FunctionInvocation | null; + functionInvocationEdge?: FunctionInvocationEdge | null; } -/** 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; +export type DeleteFunctionInvocationPayloadSelect = { + clientMutationId?: boolean; + functionInvocation?: { + select: FunctionInvocationSelect; + }; + functionInvocationEdge?: { + select: FunctionInvocationEdgeSelect; + }; +}; +export interface CreateImagePayload { + clientMutationId?: string | null; + /** The `Image` that was created by this mutation. */ + image?: Image | null; + imageEdge?: ImageEdge | null; } -/** 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[]; +export type CreateImagePayloadSelect = { + clientMutationId?: boolean; + image?: { + select: ImageSelect; + }; + imageEdge?: { + select: ImageEdgeSelect; + }; +}; +export interface UpdateImagePayload { + clientMutationId?: string | null; + /** The `Image` that was updated by this mutation. */ + image?: Image | null; + imageEdge?: ImageEdge | null; } -/** 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[]; +export type UpdateImagePayloadSelect = { + clientMutationId?: boolean; + image?: { + select: ImageSelect; + }; + imageEdge?: { + select: ImageEdgeSelect; + }; +}; +export interface DeleteImagePayload { + clientMutationId?: string | null; + /** The `Image` that was deleted by this mutation. */ + image?: Image | null; + imageEdge?: ImageEdge | null; } -/** 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. */ - 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[]; +export type DeleteImagePayloadSelect = { + clientMutationId?: boolean; + image?: { + select: ImageSelect; + }; + imageEdge?: { + select: ImageEdgeSelect; + }; +}; +export interface CreateImageGrantPayload { + clientMutationId?: string | null; + /** The `ImageGrant` that was created by this mutation. */ + imageGrant?: ImageGrant | null; + imageGrantEdge?: ImageGrantEdge | null; } -/** A filter to be used against JSON fields. All fields are combined with a logical ‘and.’ */ -export interface JSONFilter { - /** Contained by the specified JSON. */ - containedBy?: Record; - /** Contains the specified JSON. */ - contains?: Record; - /** Contains all of the specified keys. */ - containsAllKeys?: string[]; - /** Contains any of the specified keys. */ - containsAnyKeys?: string[]; - /** Contains the specified key. */ - containsKey?: string; - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: Record; - /** Equal to the specified value. */ - equalTo?: Record; - /** Greater than the specified value. */ - greaterThan?: Record; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: Record; - /** Included in the specified list. */ - in?: Record[]; - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Less than the specified value. */ - lessThan?: Record; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: Record; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: Record; - /** Not equal to the specified value. */ - notEqualTo?: Record; - /** Not included in the specified list. */ - notIn?: Record[]; +export type CreateImageGrantPayloadSelect = { + clientMutationId?: boolean; + imageGrant?: { + select: ImageGrantSelect; + }; + imageGrantEdge?: { + select: ImageGrantEdgeSelect; + }; +}; +export interface UpdateImageGrantPayload { + clientMutationId?: string | null; + /** The `ImageGrant` that was updated by this mutation. */ + imageGrant?: ImageGrant | null; + imageGrantEdge?: ImageGrantEdge | null; } -/** A filter to be used against `FunctionDefinition` object types. All fields are combined with a logical ‘and.’ */ -export interface FunctionDefinitionFilter { - /** Filter by the object’s `accessChannels` field. */ - accessChannels?: StringListFilter; - /** Checks for all expressions in this list. */ - and?: FunctionDefinitionFilter[]; - /** Filter by the object’s `category` field. */ - category?: StringFilter; - /** Filter by the object’s `concurrency` field. */ - concurrency?: IntFilter; - /** Filter by the object’s `cpuLimitMillicores` field. */ - cpuLimitMillicores?: BigIntFilter; - /** Filter by the object’s `cpuRequestMillicores` field. */ - cpuRequestMillicores?: BigIntFilter; - /** 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 `fnCategory` field. */ - fnCategory?: StringFilter; - /** Filter by the object’s `functionApiBindings` relation. */ - functionApiBindings?: FunctionDefinitionToManyFunctionApiBindingFilter; - /** `functionApiBindings` exist. */ - functionApiBindingsExist?: boolean; - /** Filter by the object’s `functionCapabilityBindingsByFunctionId` relation. */ - functionCapabilityBindingsByFunctionId?: FunctionDefinitionToManyFunctionCapabilityBindingFilter; - /** `functionCapabilityBindingsByFunctionId` exist. */ - functionCapabilityBindingsByFunctionIdExist?: boolean; - /** Filter by the object’s `functionColumns` field. */ - functionColumns?: JSONFilter; - /** Filter by the object’s `graphId` field. */ - graphId?: UUIDFilter; - /** Filter by the object’s `icon` field. */ - icon?: StringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `image` field. */ - image?: StringFilter; - /** Filter by the object’s `inputs` field. */ - inputs?: JSONFilter; - /** Filter by the object’s `integrations` field. */ - integrations?: StringListFilter; - /** Filter by the object’s `isPublished` field. */ - isPublished?: BooleanFilter; - /** Filter by the object’s `maxAttempts` field. */ - maxAttempts?: IntFilter; - /** Filter by the object’s `memoryLimitBytes` field. */ - memoryLimitBytes?: BigIntFilter; - /** Filter by the object’s `memoryRequestBytes` field. */ - memoryRequestBytes?: BigIntFilter; - /** Filter by the object’s `moduleTable` field. */ - moduleTable?: StringFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Negates the expression. */ - not?: FunctionDefinitionFilter; - /** Checks for any expressions in this list. */ - or?: FunctionDefinitionFilter[]; - /** Filter by the object’s `outputs` field. */ - outputs?: JSONFilter; - /** Filter by the object’s `payloadArgs` field. */ - payloadArgs?: JSONFilter; - /** Filter by the object’s `priority` field. */ - priority?: IntFilter; - /** Filter by the object’s `props` field. */ - props?: JSONFilter; - /** Filter by the object’s `protected` field. */ - protected?: BooleanFilter; - /** Filter by the object’s `publishedAt` field. */ - publishedAt?: DatetimeFilter; - /** Filter by the object’s `queueName` field. */ - queueName?: StringFilter; - /** Filter by the object’s `requiredBuckets` field. */ - 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. */ - runtime?: StringFilter; - /** Filter by the object’s `scaleMax` field. */ - scaleMax?: IntFilter; - /** Filter by the object’s `scaleMin` field. */ - scaleMin?: IntFilter; - /** Filter by the object’s `targetFunction` field. */ - targetFunction?: StringFilter; - /** Filter by the object’s `targetSchema` field. */ - targetSchema?: StringFilter; - /** Filter by the object’s `taskIdentifier` field. */ - taskIdentifier?: StringFilter; - /** Filter by the object’s `timeoutSeconds` field. */ - timeoutSeconds?: IntFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `volatile` field. */ - volatile?: BooleanFilter; - /** Filter by the object’s `webhookEndpoints` relation. */ - webhookEndpoints?: FunctionDefinitionToManyWebhookEndpointFilter; - /** `webhookEndpoints` exist. */ - webhookEndpointsExist?: boolean; +export type UpdateImageGrantPayloadSelect = { + clientMutationId?: boolean; + imageGrant?: { + select: ImageGrantSelect; + }; + imageGrantEdge?: { + select: ImageGrantEdgeSelect; + }; +}; +export interface DeleteImageGrantPayload { + clientMutationId?: string | null; + /** The `ImageGrant` that was deleted by this mutation. */ + imageGrant?: ImageGrant | null; + imageGrantEdge?: ImageGrantEdge | null; } -/** 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[]; +export type DeleteImageGrantPayloadSelect = { + clientMutationId?: boolean; + imageGrant?: { + select: ImageGrantSelect; + }; + imageGrantEdge?: { + select: ImageGrantEdgeSelect; + }; +}; +export interface CreateInfraCommitPayload { + clientMutationId?: string | null; + /** The `InfraCommit` that was created by this mutation. */ + infraCommit?: InfraCommit | null; + infraCommitEdge?: InfraCommitEdge | null; } -/** A filter to be used against `Namespace` object types. All fields are combined with a logical ‘and.’ */ -export interface NamespaceFilter { - /** Checks for all expressions in this list. */ - and?: NamespaceFilter[]; - /** Filter by the object’s `annotations` field. */ - annotations?: JSONFilter; - /** 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 `functionDeployments` relation. */ - functionDeployments?: NamespaceToManyFunctionDeploymentFilter; - /** `functionDeployments` exist. */ - functionDeploymentsExist?: boolean; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isActive` field. */ - isActive?: BooleanFilter; - /** Filter by the object’s `isManaged` field. */ - isManaged?: BooleanFilter; - /** Filter by the object’s `labels` field. */ - labels?: JSONFilter; - /** Filter by the object’s `lastError` field. */ - lastError?: StringFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `namespaceName` field. */ - namespaceName?: StringFilter; - /** Negates the expression. */ - not?: NamespaceFilter; - /** Checks for any expressions in this list. */ - or?: NamespaceFilter[]; - /** Filter by the object’s `resourceDefinitions` relation. */ - resourceDefinitions?: NamespaceToManyResourceDefinitionFilter; - /** `resourceDefinitions` exist. */ - resourceDefinitionsExist?: boolean; - /** Filter by the object’s `resourceInstallations` relation. */ - resourceInstallations?: NamespaceToManyResourceInstallationFilter; - /** `resourceInstallations` exist. */ - resourceInstallationsExist?: boolean; - /** Filter by the object’s `resources` relation. */ - resources?: NamespaceToManyResourceFilter; - /** `resources` exist. */ - resourcesExist?: boolean; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `webhookEndpoints` relation. */ - webhookEndpoints?: NamespaceToManyWebhookEndpointFilter; - /** `webhookEndpoints` exist. */ - webhookEndpointsExist?: boolean; +export type CreateInfraCommitPayloadSelect = { + clientMutationId?: boolean; + infraCommit?: { + select: InfraCommitSelect; + }; + infraCommitEdge?: { + select: InfraCommitEdgeSelect; + }; +}; +export interface UpdateInfraCommitPayload { + clientMutationId?: string | null; + /** The `InfraCommit` that was updated by this mutation. */ + infraCommit?: InfraCommit | null; + infraCommitEdge?: InfraCommitEdge | null; +} +export type UpdateInfraCommitPayloadSelect = { + clientMutationId?: boolean; + infraCommit?: { + select: InfraCommitSelect; + }; + infraCommitEdge?: { + select: InfraCommitEdgeSelect; + }; +}; +export interface DeleteInfraCommitPayload { + clientMutationId?: string | null; + /** The `InfraCommit` that was deleted by this mutation. */ + infraCommit?: InfraCommit | null; + infraCommitEdge?: InfraCommitEdge | null; +} +export type DeleteInfraCommitPayloadSelect = { + clientMutationId?: boolean; + infraCommit?: { + select: InfraCommitSelect; + }; + infraCommitEdge?: { + select: InfraCommitEdgeSelect; + }; +}; +export interface CreateInfraObjectPayload { + clientMutationId?: string | null; + /** The `InfraObject` that was created by this mutation. */ + infraObject?: InfraObject | null; + infraObjectEdge?: InfraObjectEdge | null; +} +export type CreateInfraObjectPayloadSelect = { + clientMutationId?: boolean; + infraObject?: { + select: InfraObjectSelect; + }; + infraObjectEdge?: { + select: InfraObjectEdgeSelect; + }; +}; +export interface UpdateInfraObjectPayload { + clientMutationId?: string | null; + /** The `InfraObject` that was updated by this mutation. */ + infraObject?: InfraObject | null; + infraObjectEdge?: InfraObjectEdge | null; } -/** A filter to be used against `FunctionGraph` object types. All fields are combined with a logical ‘and.’ */ -export interface FunctionGraphFilter { - /** Checks for all expressions in this list. */ - and?: FunctionGraphFilter[]; - /** Filter by the object’s `context` field. */ - context?: StringFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `definitionsCommitId` field. */ - definitionsCommitId?: UUIDFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `functionGraphExecutionsByGraphId` relation. */ - functionGraphExecutionsByGraphId?: FunctionGraphToManyFunctionGraphExecutionFilter; - /** `functionGraphExecutionsByGraphId` exist. */ - functionGraphExecutionsByGraphIdExist?: boolean; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isValid` field. */ - isValid?: BooleanFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Negates the expression. */ - not?: FunctionGraphFilter; - /** Checks for any expressions in this list. */ - or?: FunctionGraphFilter[]; - /** Filter by the object’s `platformFunctionDefinitionsByGraphId` relation. */ - platformFunctionDefinitionsByGraphId?: FunctionGraphToManyPlatformFunctionDefinitionFilter; - /** `platformFunctionDefinitionsByGraphId` exist. */ - platformFunctionDefinitionsByGraphIdExist?: boolean; - /** Filter by the object’s `scopeId` field. */ - scopeId?: UUIDFilter; - /** Filter by the object’s `storeId` field. */ - storeId?: UUIDFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `validationErrors` field. */ - validationErrors?: JSONFilter; +export type UpdateInfraObjectPayloadSelect = { + clientMutationId?: boolean; + infraObject?: { + select: InfraObjectSelect; + }; + infraObjectEdge?: { + select: InfraObjectEdgeSelect; + }; +}; +export interface DeleteInfraObjectPayload { + clientMutationId?: string | null; + /** The `InfraObject` that was deleted by this mutation. */ + infraObject?: InfraObject | null; + infraObjectEdge?: InfraObjectEdge | null; } -/** A filter to be used against String List fields. All fields are combined with a logical ‘and.’ */ -export interface StringListFilter { - /** Any array item is equal to the specified value. */ - anyEqualTo?: string; - /** Any array item is greater than the specified value. */ - anyGreaterThan?: string; - /** Any array item is greater than or equal to the specified value. */ - anyGreaterThanOrEqualTo?: string; - /** Any array item is less than the specified value. */ - anyLessThan?: string; - /** Any array item is less than or equal to the specified value. */ - anyLessThanOrEqualTo?: string; - /** Any array item is not equal to the specified value. */ - anyNotEqualTo?: string; - /** Contained by the specified list of values. */ - containedBy?: string[]; - /** Contains the specified list of values. */ - contains?: string[]; - /** 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[]; - /** 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[]; - /** Overlaps the specified list of values. */ - overlaps?: string[]; +export type DeleteInfraObjectPayloadSelect = { + clientMutationId?: boolean; + infraObject?: { + select: InfraObjectSelect; + }; + infraObjectEdge?: { + select: InfraObjectEdgeSelect; + }; +}; +export interface CreateInfraRefPayload { + clientMutationId?: string | null; + /** The `InfraRef` that was created by this mutation. */ + infraRef?: InfraRef | null; + infraRefEdge?: InfraRefEdge | null; } -/** A filter to be used against `PlatformNamespace` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformNamespaceFilter { - /** Checks for all expressions in this list. */ - and?: PlatformNamespaceFilter[]; - /** Filter by the object’s `annotations` field. */ - annotations?: JSONFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isActive` field. */ - isActive?: BooleanFilter; - /** Filter by the object’s `isManaged` field. */ - isManaged?: BooleanFilter; - /** Filter by the object’s `labels` field. */ - labels?: JSONFilter; - /** Filter by the object’s `lastError` field. */ - lastError?: StringFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `namespaceName` field. */ - namespaceName?: StringFilter; - /** Negates the expression. */ - not?: PlatformNamespaceFilter; - /** Checks for any expressions in this list. */ - or?: PlatformNamespaceFilter[]; - /** Filter by the object’s `platformFunctionDeploymentsByNamespaceId` relation. */ - platformFunctionDeploymentsByNamespaceId?: PlatformNamespaceToManyPlatformFunctionDeploymentFilter; - /** `platformFunctionDeploymentsByNamespaceId` exist. */ - platformFunctionDeploymentsByNamespaceIdExist?: boolean; - /** Filter by the object’s `platformResourceDefinitionsByNamespaceId` relation. */ - platformResourceDefinitionsByNamespaceId?: PlatformNamespaceToManyPlatformResourceDefinitionFilter; - /** `platformResourceDefinitionsByNamespaceId` exist. */ - platformResourceDefinitionsByNamespaceIdExist?: boolean; - /** Filter by the object’s `platformResourceInstallationsByNamespaceId` relation. */ - platformResourceInstallationsByNamespaceId?: PlatformNamespaceToManyPlatformResourceInstallationFilter; - /** `platformResourceInstallationsByNamespaceId` exist. */ - platformResourceInstallationsByNamespaceIdExist?: boolean; - /** Filter by the object’s `platformResourcesByNamespaceId` relation. */ - platformResourcesByNamespaceId?: PlatformNamespaceToManyPlatformResourceFilter; - /** `platformResourcesByNamespaceId` exist. */ - platformResourcesByNamespaceIdExist?: boolean; - /** Filter by the object’s `platformWebhookEndpointsByNamespaceId` relation. */ - platformWebhookEndpointsByNamespaceId?: PlatformNamespaceToManyPlatformWebhookEndpointFilter; - /** `platformWebhookEndpointsByNamespaceId` exist. */ - platformWebhookEndpointsByNamespaceIdExist?: boolean; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; +export type CreateInfraRefPayloadSelect = { + clientMutationId?: boolean; + infraRef?: { + select: InfraRefSelect; + }; + infraRefEdge?: { + select: InfraRefEdgeSelect; + }; +}; +export interface UpdateInfraRefPayload { + clientMutationId?: string | null; + /** The `InfraRef` that was updated by this mutation. */ + infraRef?: InfraRef | null; + infraRefEdge?: InfraRefEdge | null; } -// ============ Payload/Return Types (for custom operations) ============ -export interface AddEdgePayload { +export type UpdateInfraRefPayloadSelect = { + clientMutationId?: boolean; + infraRef?: { + select: InfraRefSelect; + }; + infraRefEdge?: { + select: InfraRefEdgeSelect; + }; +}; +export interface DeleteInfraRefPayload { clientMutationId?: string | null; - result?: string | null; + /** The `InfraRef` that was deleted by this mutation. */ + infraRef?: InfraRef | null; + infraRefEdge?: InfraRefEdge | null; } -export type AddEdgePayloadSelect = { +export type DeleteInfraRefPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + infraRef?: { + select: InfraRefSelect; + }; + infraRefEdge?: { + select: InfraRefEdgeSelect; + }; }; -export interface AddEdgeAndSavePayload { +export interface CreateInfraStorePayload { clientMutationId?: string | null; - result?: string | null; + /** The `InfraStore` that was created by this mutation. */ + infraStore?: InfraStore | null; + infraStoreEdge?: InfraStoreEdge | null; } -export type AddEdgeAndSavePayloadSelect = { +export type CreateInfraStorePayloadSelect = { clientMutationId?: boolean; - result?: boolean; + infraStore?: { + select: InfraStoreSelect; + }; + infraStoreEdge?: { + select: InfraStoreEdgeSelect; + }; }; -export interface AddNodePayload { +export interface UpdateInfraStorePayload { clientMutationId?: string | null; - result?: string | null; + /** The `InfraStore` that was updated by this mutation. */ + infraStore?: InfraStore | null; + infraStoreEdge?: InfraStoreEdge | null; } -export type AddNodePayloadSelect = { +export type UpdateInfraStorePayloadSelect = { clientMutationId?: boolean; - result?: boolean; + infraStore?: { + select: InfraStoreSelect; + }; + infraStoreEdge?: { + select: InfraStoreEdgeSelect; + }; }; -export interface AddNodeAndSavePayload { +export interface DeleteInfraStorePayload { clientMutationId?: string | null; - result?: string | null; + /** The `InfraStore` that was deleted by this mutation. */ + infraStore?: InfraStore | null; + infraStoreEdge?: InfraStoreEdge | null; } -export type AddNodeAndSavePayloadSelect = { +export type DeleteInfraStorePayloadSelect = { clientMutationId?: boolean; - result?: boolean; + infraStore?: { + select: InfraStoreSelect; + }; + infraStoreEdge?: { + select: InfraStoreEdgeSelect; + }; +}; +export interface CreateIntegrationProviderPayload { + clientMutationId?: string | null; + /** The `IntegrationProvider` that was created by this mutation. */ + integrationProvider?: IntegrationProvider | null; + integrationProviderEdge?: IntegrationProviderEdge | null; +} +export type CreateIntegrationProviderPayloadSelect = { + clientMutationId?: boolean; + integrationProvider?: { + select: IntegrationProviderSelect; + }; + integrationProviderEdge?: { + select: IntegrationProviderEdgeSelect; + }; }; -export interface CopyGraphPayload { +export interface UpdateIntegrationProviderPayload { clientMutationId?: string | null; - result?: string | null; + /** The `IntegrationProvider` that was updated by this mutation. */ + integrationProvider?: IntegrationProvider | null; + integrationProviderEdge?: IntegrationProviderEdge | null; } -export type CopyGraphPayloadSelect = { +export type UpdateIntegrationProviderPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + integrationProvider?: { + select: IntegrationProviderSelect; + }; + integrationProviderEdge?: { + select: IntegrationProviderEdgeSelect; + }; }; -export interface ImportDefinitionsPayload { +export interface DeleteIntegrationProviderPayload { clientMutationId?: string | null; + /** The `IntegrationProvider` that was deleted by this mutation. */ + integrationProvider?: IntegrationProvider | null; + integrationProviderEdge?: IntegrationProviderEdge | null; } -export type ImportDefinitionsPayloadSelect = { +export type DeleteIntegrationProviderPayloadSelect = { clientMutationId?: boolean; + integrationProvider?: { + select: IntegrationProviderSelect; + }; + integrationProviderEdge?: { + select: IntegrationProviderEdgeSelect; + }; }; -export interface ImportGraphJsonPayload { +export interface CreateNamespacePayload { clientMutationId?: string | null; - result?: string | null; + /** The `Namespace` that was created by this mutation. */ + namespace?: Namespace | null; + namespaceEdge?: NamespaceEdge | null; } -export type ImportGraphJsonPayloadSelect = { +export type CreateNamespacePayloadSelect = { clientMutationId?: boolean; - result?: boolean; + namespace?: { + select: NamespaceSelect; + }; + namespaceEdge?: { + select: NamespaceEdgeSelect; + }; }; -export interface InfraInitEmptyRepoPayload { +export interface UpdateNamespacePayload { clientMutationId?: string | null; + /** The `Namespace` that was updated by this mutation. */ + namespace?: Namespace | null; + namespaceEdge?: NamespaceEdge | null; } -export type InfraInitEmptyRepoPayloadSelect = { +export type UpdateNamespacePayloadSelect = { clientMutationId?: boolean; + namespace?: { + select: NamespaceSelect; + }; + namespaceEdge?: { + select: NamespaceEdgeSelect; + }; }; -export interface InfraInsertNodeAtPathPayload { +export interface DeleteNamespacePayload { clientMutationId?: string | null; - result?: string | null; + /** The `Namespace` that was deleted by this mutation. */ + namespace?: Namespace | null; + namespaceEdge?: NamespaceEdge | null; } -export type InfraInsertNodeAtPathPayloadSelect = { +export type DeleteNamespacePayloadSelect = { clientMutationId?: boolean; - result?: boolean; + namespace?: { + select: NamespaceSelect; + }; + namespaceEdge?: { + select: NamespaceEdgeSelect; + }; }; -export interface InfraInsertNodesAtPathsPayload { +export interface CreateNamespaceEventPayload { clientMutationId?: string | null; - result?: string | null; + /** The `NamespaceEvent` that was created by this mutation. */ + namespaceEvent?: NamespaceEvent | null; + namespaceEventEdge?: NamespaceEventEdge | null; } -export type InfraInsertNodesAtPathsPayloadSelect = { +export type CreateNamespaceEventPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + namespaceEvent?: { + select: NamespaceEventSelect; + }; + namespaceEventEdge?: { + select: NamespaceEventEdgeSelect; + }; }; -export interface InfraSetAndCommitPayload { +export interface UpdateNamespaceEventPayload { clientMutationId?: string | null; - infraCommitEdge?: InfraCommitEdge | null; - result?: InfraCommit | null; + /** The `NamespaceEvent` that was updated by this mutation. */ + namespaceEvent?: NamespaceEvent | null; + namespaceEventEdge?: NamespaceEventEdge | null; } -export type InfraSetAndCommitPayloadSelect = { +export type UpdateNamespaceEventPayloadSelect = { clientMutationId?: boolean; - infraCommitEdge?: { - select: InfraCommitEdgeSelect; + namespaceEvent?: { + select: NamespaceEventSelect; }; - result?: { - select: InfraCommitSelect; + namespaceEventEdge?: { + select: NamespaceEventEdgeSelect; }; }; -export interface InfraSetDataAtPathPayload { +export interface DeleteNamespaceEventPayload { clientMutationId?: string | null; - result?: string | null; + /** The `NamespaceEvent` that was deleted by this mutation. */ + namespaceEvent?: NamespaceEvent | null; + namespaceEventEdge?: NamespaceEventEdge | null; } -export type InfraSetDataAtPathPayloadSelect = { +export type DeleteNamespaceEventPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + namespaceEvent?: { + select: NamespaceEventSelect; + }; + namespaceEventEdge?: { + select: NamespaceEventEdgeSelect; + }; }; -export interface InfraSetManyAndCommitPayload { +export interface CreatePlatformBuildPayload { clientMutationId?: string | null; - infraCommitEdge?: InfraCommitEdge | null; - result?: InfraCommit | null; + /** The `PlatformBuild` that was created by this mutation. */ + platformBuild?: PlatformBuild | null; + platformBuildEdge?: PlatformBuildEdge | null; } -export type InfraSetManyAndCommitPayloadSelect = { +export type CreatePlatformBuildPayloadSelect = { clientMutationId?: boolean; - infraCommitEdge?: { - select: InfraCommitEdgeSelect; + platformBuild?: { + select: PlatformBuildSelect; }; - result?: { - select: InfraCommitSelect; + platformBuildEdge?: { + select: PlatformBuildEdgeSelect; }; }; -export interface InitEmptyRepoPayload { +export interface UpdatePlatformBuildPayload { clientMutationId?: string | null; + /** The `PlatformBuild` that was updated by this mutation. */ + platformBuild?: PlatformBuild | null; + platformBuildEdge?: PlatformBuildEdge | null; } -export type InitEmptyRepoPayloadSelect = { +export type UpdatePlatformBuildPayloadSelect = { clientMutationId?: boolean; + platformBuild?: { + select: PlatformBuildSelect; + }; + platformBuildEdge?: { + select: PlatformBuildEdgeSelect; + }; }; -export interface InsertNodeAtPathPayload { +export interface DeletePlatformBuildPayload { clientMutationId?: string | null; - result?: string | null; + /** The `PlatformBuild` that was deleted by this mutation. */ + platformBuild?: PlatformBuild | null; + platformBuildEdge?: PlatformBuildEdge | null; } -export type InsertNodeAtPathPayloadSelect = { +export type DeletePlatformBuildPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + platformBuild?: { + select: PlatformBuildSelect; + }; + platformBuildEdge?: { + select: PlatformBuildEdgeSelect; + }; }; -export interface InsertNodesAtPathsPayload { +export interface CreatePlatformBuildStepPayload { clientMutationId?: string | null; - result?: string | null; + /** The `PlatformBuildStep` that was created by this mutation. */ + platformBuildStep?: PlatformBuildStep | null; + platformBuildStepEdge?: PlatformBuildStepEdge | null; } -export type InsertNodesAtPathsPayloadSelect = { +export type CreatePlatformBuildStepPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + platformBuildStep?: { + select: PlatformBuildStepSelect; + }; + platformBuildStepEdge?: { + select: PlatformBuildStepEdgeSelect; + }; }; -export interface PlatformInfraInitEmptyRepoPayload { +export interface UpdatePlatformBuildStepPayload { clientMutationId?: string | null; + /** The `PlatformBuildStep` that was updated by this mutation. */ + platformBuildStep?: PlatformBuildStep | null; + platformBuildStepEdge?: PlatformBuildStepEdge | null; } -export type PlatformInfraInitEmptyRepoPayloadSelect = { +export type UpdatePlatformBuildStepPayloadSelect = { clientMutationId?: boolean; + platformBuildStep?: { + select: PlatformBuildStepSelect; + }; + platformBuildStepEdge?: { + select: PlatformBuildStepEdgeSelect; + }; }; -export interface PlatformInfraInsertNodeAtPathPayload { +export interface DeletePlatformBuildStepPayload { clientMutationId?: string | null; - result?: string | null; + /** The `PlatformBuildStep` that was deleted by this mutation. */ + platformBuildStep?: PlatformBuildStep | null; + platformBuildStepEdge?: PlatformBuildStepEdge | null; } -export type PlatformInfraInsertNodeAtPathPayloadSelect = { +export type DeletePlatformBuildStepPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + platformBuildStep?: { + select: PlatformBuildStepSelect; + }; + platformBuildStepEdge?: { + select: PlatformBuildStepEdgeSelect; + }; }; -export interface PlatformInfraInsertNodesAtPathsPayload { +export interface CreatePlatformBuilderBindingPayload { clientMutationId?: string | null; - result?: string | null; + /** The `PlatformBuilderBinding` that was created by this mutation. */ + platformBuilderBinding?: PlatformBuilderBinding | null; + platformBuilderBindingEdge?: PlatformBuilderBindingEdge | null; } -export type PlatformInfraInsertNodesAtPathsPayloadSelect = { +export type CreatePlatformBuilderBindingPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + platformBuilderBinding?: { + select: PlatformBuilderBindingSelect; + }; + platformBuilderBindingEdge?: { + select: PlatformBuilderBindingEdgeSelect; + }; }; -export interface PlatformInfraSetAndCommitPayload { +export interface UpdatePlatformBuilderBindingPayload { clientMutationId?: string | null; - platformInfraCommitEdge?: PlatformInfraCommitEdge | null; - result?: PlatformInfraCommit | null; + /** The `PlatformBuilderBinding` that was updated by this mutation. */ + platformBuilderBinding?: PlatformBuilderBinding | null; + platformBuilderBindingEdge?: PlatformBuilderBindingEdge | null; } -export type PlatformInfraSetAndCommitPayloadSelect = { +export type UpdatePlatformBuilderBindingPayloadSelect = { clientMutationId?: boolean; - platformInfraCommitEdge?: { - select: PlatformInfraCommitEdgeSelect; + platformBuilderBinding?: { + select: PlatformBuilderBindingSelect; }; - result?: { - select: PlatformInfraCommitSelect; + platformBuilderBindingEdge?: { + select: PlatformBuilderBindingEdgeSelect; }; }; -export interface PlatformInfraSetDataAtPathPayload { +export interface DeletePlatformBuilderBindingPayload { clientMutationId?: string | null; - result?: string | null; + /** The `PlatformBuilderBinding` that was deleted by this mutation. */ + platformBuilderBinding?: PlatformBuilderBinding | null; + platformBuilderBindingEdge?: PlatformBuilderBindingEdge | null; } -export type PlatformInfraSetDataAtPathPayloadSelect = { +export type DeletePlatformBuilderBindingPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + platformBuilderBinding?: { + select: PlatformBuilderBindingSelect; + }; + platformBuilderBindingEdge?: { + select: PlatformBuilderBindingEdgeSelect; + }; }; -export interface PlatformInfraSetManyAndCommitPayload { +export interface CreatePlatformFunctionApiBindingPayload { clientMutationId?: string | null; - platformInfraCommitEdge?: PlatformInfraCommitEdge | null; - result?: PlatformInfraCommit | null; + /** The `PlatformFunctionApiBinding` that was created by this mutation. */ + platformFunctionApiBinding?: PlatformFunctionApiBinding | null; + platformFunctionApiBindingEdge?: PlatformFunctionApiBindingEdge | null; } -export type PlatformInfraSetManyAndCommitPayloadSelect = { +export type CreatePlatformFunctionApiBindingPayloadSelect = { clientMutationId?: boolean; - platformInfraCommitEdge?: { - select: PlatformInfraCommitEdgeSelect; + platformFunctionApiBinding?: { + select: PlatformFunctionApiBindingSelect; }; - result?: { - select: PlatformInfraCommitSelect; + platformFunctionApiBindingEdge?: { + select: PlatformFunctionApiBindingEdgeSelect; }; }; -export interface PlatformResourceInstallationsInstallPayload { +export interface UpdatePlatformFunctionApiBindingPayload { clientMutationId?: string | null; - result?: string | null; + /** The `PlatformFunctionApiBinding` that was updated by this mutation. */ + platformFunctionApiBinding?: PlatformFunctionApiBinding | null; + platformFunctionApiBindingEdge?: PlatformFunctionApiBindingEdge | null; } -export type PlatformResourceInstallationsInstallPayloadSelect = { +export type UpdatePlatformFunctionApiBindingPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + platformFunctionApiBinding?: { + select: PlatformFunctionApiBindingSelect; + }; + platformFunctionApiBindingEdge?: { + select: PlatformFunctionApiBindingEdgeSelect; + }; }; -export interface PlatformResourceInstallationsRollbackPayload { +export interface DeletePlatformFunctionApiBindingPayload { clientMutationId?: string | null; + /** The `PlatformFunctionApiBinding` that was deleted by this mutation. */ + platformFunctionApiBinding?: PlatformFunctionApiBinding | null; + platformFunctionApiBindingEdge?: PlatformFunctionApiBindingEdge | null; } -export type PlatformResourceInstallationsRollbackPayloadSelect = { +export type DeletePlatformFunctionApiBindingPayloadSelect = { clientMutationId?: boolean; + platformFunctionApiBinding?: { + select: PlatformFunctionApiBindingSelect; + }; + platformFunctionApiBindingEdge?: { + select: PlatformFunctionApiBindingEdgeSelect; + }; }; -export interface PlatformResourceInstallationsUninstallPayload { +export interface CreatePlatformFunctionCapabilityBindingPayload { clientMutationId?: string | null; + /** The `PlatformFunctionCapabilityBinding` that was created by this mutation. */ + platformFunctionCapabilityBinding?: PlatformFunctionCapabilityBinding | null; + platformFunctionCapabilityBindingEdge?: PlatformFunctionCapabilityBindingEdge | null; } -export type PlatformResourceInstallationsUninstallPayloadSelect = { +export type CreatePlatformFunctionCapabilityBindingPayloadSelect = { clientMutationId?: boolean; + platformFunctionCapabilityBinding?: { + select: PlatformFunctionCapabilityBindingSelect; + }; + platformFunctionCapabilityBindingEdge?: { + select: PlatformFunctionCapabilityBindingEdgeSelect; + }; }; -export interface PlatformResourceInstallationsUpgradePayload { +export interface UpdatePlatformFunctionCapabilityBindingPayload { clientMutationId?: string | null; + /** The `PlatformFunctionCapabilityBinding` that was updated by this mutation. */ + platformFunctionCapabilityBinding?: PlatformFunctionCapabilityBinding | null; + platformFunctionCapabilityBindingEdge?: PlatformFunctionCapabilityBindingEdge | null; } -export type PlatformResourceInstallationsUpgradePayloadSelect = { +export type UpdatePlatformFunctionCapabilityBindingPayloadSelect = { clientMutationId?: boolean; + platformFunctionCapabilityBinding?: { + select: PlatformFunctionCapabilityBindingSelect; + }; + platformFunctionCapabilityBindingEdge?: { + select: PlatformFunctionCapabilityBindingEdgeSelect; + }; }; -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 ResourceInstallationsInstallPayload { +export interface DeletePlatformFunctionCapabilityBindingPayload { clientMutationId?: string | null; - result?: string | null; + /** The `PlatformFunctionCapabilityBinding` that was deleted by this mutation. */ + platformFunctionCapabilityBinding?: PlatformFunctionCapabilityBinding | null; + platformFunctionCapabilityBindingEdge?: PlatformFunctionCapabilityBindingEdge | null; } -export type ResourceInstallationsInstallPayloadSelect = { +export type DeletePlatformFunctionCapabilityBindingPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + platformFunctionCapabilityBinding?: { + select: PlatformFunctionCapabilityBindingSelect; + }; + platformFunctionCapabilityBindingEdge?: { + select: PlatformFunctionCapabilityBindingEdgeSelect; + }; }; -export interface ResourceInstallationsRollbackPayload { +export interface CreatePlatformFunctionDefinitionPayload { clientMutationId?: string | null; + /** The `PlatformFunctionDefinition` that was created by this mutation. */ + platformFunctionDefinition?: PlatformFunctionDefinition | null; + platformFunctionDefinitionEdge?: PlatformFunctionDefinitionEdge | null; } -export type ResourceInstallationsRollbackPayloadSelect = { +export type CreatePlatformFunctionDefinitionPayloadSelect = { clientMutationId?: boolean; + platformFunctionDefinition?: { + select: PlatformFunctionDefinitionSelect; + }; + platformFunctionDefinitionEdge?: { + select: PlatformFunctionDefinitionEdgeSelect; + }; }; -export interface ResourceInstallationsUninstallPayload { +export interface UpdatePlatformFunctionDefinitionPayload { clientMutationId?: string | null; + /** The `PlatformFunctionDefinition` that was updated by this mutation. */ + platformFunctionDefinition?: PlatformFunctionDefinition | null; + platformFunctionDefinitionEdge?: PlatformFunctionDefinitionEdge | null; } -export type ResourceInstallationsUninstallPayloadSelect = { +export type UpdatePlatformFunctionDefinitionPayloadSelect = { clientMutationId?: boolean; + platformFunctionDefinition?: { + select: PlatformFunctionDefinitionSelect; + }; + platformFunctionDefinitionEdge?: { + select: PlatformFunctionDefinitionEdgeSelect; + }; }; -export interface ResourceInstallationsUpgradePayload { +export interface DeletePlatformFunctionDefinitionPayload { clientMutationId?: string | null; + /** The `PlatformFunctionDefinition` that was deleted by this mutation. */ + platformFunctionDefinition?: PlatformFunctionDefinition | null; + platformFunctionDefinitionEdge?: PlatformFunctionDefinitionEdge | null; } -export type ResourceInstallationsUpgradePayloadSelect = { +export type DeletePlatformFunctionDefinitionPayloadSelect = { clientMutationId?: boolean; + platformFunctionDefinition?: { + select: PlatformFunctionDefinitionSelect; + }; + platformFunctionDefinitionEdge?: { + select: PlatformFunctionDefinitionEdgeSelect; + }; }; -export interface SaveGraphPayload { +export interface CreatePlatformFunctionDeploymentPayload { clientMutationId?: string | null; - result?: string | null; + /** The `PlatformFunctionDeployment` that was created by this mutation. */ + platformFunctionDeployment?: PlatformFunctionDeployment | null; + platformFunctionDeploymentEdge?: PlatformFunctionDeploymentEdge | null; } -export type SaveGraphPayloadSelect = { +export type CreatePlatformFunctionDeploymentPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + platformFunctionDeployment?: { + select: PlatformFunctionDeploymentSelect; + }; + platformFunctionDeploymentEdge?: { + select: PlatformFunctionDeploymentEdgeSelect; + }; }; -export interface SetAndCommitPayload { +export interface UpdatePlatformFunctionDeploymentPayload { clientMutationId?: string | null; - functionGraphCommitEdge?: FunctionGraphCommitEdge | null; - result?: FunctionGraphCommit | null; + /** The `PlatformFunctionDeployment` that was updated by this mutation. */ + platformFunctionDeployment?: PlatformFunctionDeployment | null; + platformFunctionDeploymentEdge?: PlatformFunctionDeploymentEdge | null; } -export type SetAndCommitPayloadSelect = { +export type UpdatePlatformFunctionDeploymentPayloadSelect = { clientMutationId?: boolean; - functionGraphCommitEdge?: { - select: FunctionGraphCommitEdgeSelect; + platformFunctionDeployment?: { + select: PlatformFunctionDeploymentSelect; }; - result?: { - select: FunctionGraphCommitSelect; + platformFunctionDeploymentEdge?: { + select: PlatformFunctionDeploymentEdgeSelect; }; }; -export interface SetDataAtPathPayload { +export interface DeletePlatformFunctionDeploymentPayload { clientMutationId?: string | null; - result?: string | null; + /** The `PlatformFunctionDeployment` that was deleted by this mutation. */ + platformFunctionDeployment?: PlatformFunctionDeployment | null; + platformFunctionDeploymentEdge?: PlatformFunctionDeploymentEdge | null; } -export type SetDataAtPathPayloadSelect = { +export type DeletePlatformFunctionDeploymentPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + platformFunctionDeployment?: { + select: PlatformFunctionDeploymentSelect; + }; + platformFunctionDeploymentEdge?: { + select: PlatformFunctionDeploymentEdgeSelect; + }; }; -export interface SetManyAndCommitPayload { +export interface CreatePlatformFunctionDeploymentEventPayload { clientMutationId?: string | null; - functionGraphCommitEdge?: FunctionGraphCommitEdge | null; - result?: FunctionGraphCommit | null; + /** The `PlatformFunctionDeploymentEvent` that was created by this mutation. */ + platformFunctionDeploymentEvent?: PlatformFunctionDeploymentEvent | null; + platformFunctionDeploymentEventEdge?: PlatformFunctionDeploymentEventEdge | null; } -export type SetManyAndCommitPayloadSelect = { +export type CreatePlatformFunctionDeploymentEventPayloadSelect = { clientMutationId?: boolean; - functionGraphCommitEdge?: { - select: FunctionGraphCommitEdgeSelect; + platformFunctionDeploymentEvent?: { + select: PlatformFunctionDeploymentEventSelect; }; - result?: { - select: FunctionGraphCommitSelect; + platformFunctionDeploymentEventEdge?: { + select: PlatformFunctionDeploymentEventEdgeSelect; }; }; -export interface StartExecutionPayload { +export interface UpdatePlatformFunctionDeploymentEventPayload { clientMutationId?: string | null; - result?: string | null; + /** The `PlatformFunctionDeploymentEvent` that was updated by this mutation. */ + platformFunctionDeploymentEvent?: PlatformFunctionDeploymentEvent | null; + platformFunctionDeploymentEventEdge?: PlatformFunctionDeploymentEventEdge | null; } -export type StartExecutionPayloadSelect = { +export type UpdatePlatformFunctionDeploymentEventPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + platformFunctionDeploymentEvent?: { + select: PlatformFunctionDeploymentEventSelect; + }; + platformFunctionDeploymentEventEdge?: { + select: PlatformFunctionDeploymentEventEdgeSelect; + }; }; -export interface ValidateFunctionGraphPayload { +export interface DeletePlatformFunctionDeploymentEventPayload { clientMutationId?: string | null; - result?: boolean | null; + /** The `PlatformFunctionDeploymentEvent` that was deleted by this mutation. */ + platformFunctionDeploymentEvent?: PlatformFunctionDeploymentEvent | null; + platformFunctionDeploymentEventEdge?: PlatformFunctionDeploymentEventEdge | null; } -export type ValidateFunctionGraphPayloadSelect = { +export type DeletePlatformFunctionDeploymentEventPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + platformFunctionDeploymentEvent?: { + select: PlatformFunctionDeploymentEventSelect; + }; + platformFunctionDeploymentEventEdge?: { + select: PlatformFunctionDeploymentEventEdgeSelect; + }; }; -export interface CreateContentPresetPayload { +export interface CreatePlatformFunctionExecutionLogPayload { clientMutationId?: string | null; - /** The `ContentPreset` that was created by this mutation. */ - contentPreset?: ContentPreset | null; - contentPresetEdge?: ContentPresetEdge | null; + /** The `PlatformFunctionExecutionLog` that was created by this mutation. */ + platformFunctionExecutionLog?: PlatformFunctionExecutionLog | null; + platformFunctionExecutionLogEdge?: PlatformFunctionExecutionLogEdge | null; } -export type CreateContentPresetPayloadSelect = { +export type CreatePlatformFunctionExecutionLogPayloadSelect = { clientMutationId?: boolean; - contentPreset?: { - select: ContentPresetSelect; + platformFunctionExecutionLog?: { + select: PlatformFunctionExecutionLogSelect; }; - contentPresetEdge?: { - select: ContentPresetEdgeSelect; + platformFunctionExecutionLogEdge?: { + select: PlatformFunctionExecutionLogEdgeSelect; }; }; -export interface UpdateContentPresetPayload { +export interface UpdatePlatformFunctionExecutionLogPayload { clientMutationId?: string | null; - /** The `ContentPreset` that was updated by this mutation. */ - contentPreset?: ContentPreset | null; - contentPresetEdge?: ContentPresetEdge | null; + /** The `PlatformFunctionExecutionLog` that was updated by this mutation. */ + platformFunctionExecutionLog?: PlatformFunctionExecutionLog | null; + platformFunctionExecutionLogEdge?: PlatformFunctionExecutionLogEdge | null; } -export type UpdateContentPresetPayloadSelect = { +export type UpdatePlatformFunctionExecutionLogPayloadSelect = { clientMutationId?: boolean; - contentPreset?: { - select: ContentPresetSelect; + platformFunctionExecutionLog?: { + select: PlatformFunctionExecutionLogSelect; }; - contentPresetEdge?: { - select: ContentPresetEdgeSelect; + platformFunctionExecutionLogEdge?: { + select: PlatformFunctionExecutionLogEdgeSelect; }; }; -export interface DeleteContentPresetPayload { +export interface DeletePlatformFunctionExecutionLogPayload { clientMutationId?: string | null; - /** The `ContentPreset` that was deleted by this mutation. */ - contentPreset?: ContentPreset | null; - contentPresetEdge?: ContentPresetEdge | null; + /** The `PlatformFunctionExecutionLog` that was deleted by this mutation. */ + platformFunctionExecutionLog?: PlatformFunctionExecutionLog | null; + platformFunctionExecutionLogEdge?: PlatformFunctionExecutionLogEdge | null; } -export type DeleteContentPresetPayloadSelect = { +export type DeletePlatformFunctionExecutionLogPayloadSelect = { clientMutationId?: boolean; - contentPreset?: { - select: ContentPresetSelect; + platformFunctionExecutionLog?: { + select: PlatformFunctionExecutionLogSelect; }; - contentPresetEdge?: { - select: ContentPresetEdgeSelect; + platformFunctionExecutionLogEdge?: { + select: PlatformFunctionExecutionLogEdgeSelect; }; }; -export interface CreateDbPresetPayload { +export interface CreatePlatformFunctionInvocationAttemptPayload { clientMutationId?: string | null; - /** The `DbPreset` that was created by this mutation. */ - dbPreset?: DbPreset | null; - dbPresetEdge?: DbPresetEdge | null; + /** The `PlatformFunctionInvocationAttempt` that was created by this mutation. */ + platformFunctionInvocationAttempt?: PlatformFunctionInvocationAttempt | null; + platformFunctionInvocationAttemptEdge?: PlatformFunctionInvocationAttemptEdge | null; } -export type CreateDbPresetPayloadSelect = { +export type CreatePlatformFunctionInvocationAttemptPayloadSelect = { clientMutationId?: boolean; - dbPreset?: { - select: DbPresetSelect; + platformFunctionInvocationAttempt?: { + select: PlatformFunctionInvocationAttemptSelect; }; - dbPresetEdge?: { - select: DbPresetEdgeSelect; + platformFunctionInvocationAttemptEdge?: { + select: PlatformFunctionInvocationAttemptEdgeSelect; }; }; -export interface UpdateDbPresetPayload { +export interface UpdatePlatformFunctionInvocationAttemptPayload { clientMutationId?: string | null; - /** The `DbPreset` that was updated by this mutation. */ - dbPreset?: DbPreset | null; - dbPresetEdge?: DbPresetEdge | null; + /** The `PlatformFunctionInvocationAttempt` that was updated by this mutation. */ + platformFunctionInvocationAttempt?: PlatformFunctionInvocationAttempt | null; + platformFunctionInvocationAttemptEdge?: PlatformFunctionInvocationAttemptEdge | null; } -export type UpdateDbPresetPayloadSelect = { +export type UpdatePlatformFunctionInvocationAttemptPayloadSelect = { clientMutationId?: boolean; - dbPreset?: { - select: DbPresetSelect; + platformFunctionInvocationAttempt?: { + select: PlatformFunctionInvocationAttemptSelect; }; - dbPresetEdge?: { - select: DbPresetEdgeSelect; + platformFunctionInvocationAttemptEdge?: { + select: PlatformFunctionInvocationAttemptEdgeSelect; }; }; -export interface DeleteDbPresetPayload { +export interface DeletePlatformFunctionInvocationAttemptPayload { clientMutationId?: string | null; - /** The `DbPreset` that was deleted by this mutation. */ - dbPreset?: DbPreset | null; - dbPresetEdge?: DbPresetEdge | null; + /** The `PlatformFunctionInvocationAttempt` that was deleted by this mutation. */ + platformFunctionInvocationAttempt?: PlatformFunctionInvocationAttempt | null; + platformFunctionInvocationAttemptEdge?: PlatformFunctionInvocationAttemptEdge | null; } -export type DeleteDbPresetPayloadSelect = { +export type DeletePlatformFunctionInvocationAttemptPayloadSelect = { clientMutationId?: boolean; - dbPreset?: { - select: DbPresetSelect; + platformFunctionInvocationAttempt?: { + select: PlatformFunctionInvocationAttemptSelect; }; - dbPresetEdge?: { - select: DbPresetEdgeSelect; + platformFunctionInvocationAttemptEdge?: { + select: PlatformFunctionInvocationAttemptEdgeSelect; }; }; -export interface CreateFunctionApiBindingPayload { +export interface CreatePlatformFunctionInvocationPayload { clientMutationId?: string | null; - /** The `FunctionApiBinding` that was created by this mutation. */ - functionApiBinding?: FunctionApiBinding | null; - functionApiBindingEdge?: FunctionApiBindingEdge | null; + /** The `PlatformFunctionInvocation` that was created by this mutation. */ + platformFunctionInvocation?: PlatformFunctionInvocation | null; + platformFunctionInvocationEdge?: PlatformFunctionInvocationEdge | null; } -export type CreateFunctionApiBindingPayloadSelect = { +export type CreatePlatformFunctionInvocationPayloadSelect = { clientMutationId?: boolean; - functionApiBinding?: { - select: FunctionApiBindingSelect; + platformFunctionInvocation?: { + select: PlatformFunctionInvocationSelect; }; - functionApiBindingEdge?: { - select: FunctionApiBindingEdgeSelect; + platformFunctionInvocationEdge?: { + select: PlatformFunctionInvocationEdgeSelect; }; }; -export interface UpdateFunctionApiBindingPayload { +export interface UpdatePlatformFunctionInvocationPayload { clientMutationId?: string | null; - /** The `FunctionApiBinding` that was updated by this mutation. */ - functionApiBinding?: FunctionApiBinding | null; - functionApiBindingEdge?: FunctionApiBindingEdge | null; + /** The `PlatformFunctionInvocation` that was updated by this mutation. */ + platformFunctionInvocation?: PlatformFunctionInvocation | null; + platformFunctionInvocationEdge?: PlatformFunctionInvocationEdge | null; } -export type UpdateFunctionApiBindingPayloadSelect = { +export type UpdatePlatformFunctionInvocationPayloadSelect = { clientMutationId?: boolean; - functionApiBinding?: { - select: FunctionApiBindingSelect; + platformFunctionInvocation?: { + select: PlatformFunctionInvocationSelect; }; - functionApiBindingEdge?: { - select: FunctionApiBindingEdgeSelect; + platformFunctionInvocationEdge?: { + select: PlatformFunctionInvocationEdgeSelect; }; }; -export interface DeleteFunctionApiBindingPayload { +export interface DeletePlatformFunctionInvocationPayload { clientMutationId?: string | null; - /** The `FunctionApiBinding` that was deleted by this mutation. */ - functionApiBinding?: FunctionApiBinding | null; - functionApiBindingEdge?: FunctionApiBindingEdge | null; + /** The `PlatformFunctionInvocation` that was deleted by this mutation. */ + platformFunctionInvocation?: PlatformFunctionInvocation | null; + platformFunctionInvocationEdge?: PlatformFunctionInvocationEdge | null; } -export type DeleteFunctionApiBindingPayloadSelect = { +export type DeletePlatformFunctionInvocationPayloadSelect = { clientMutationId?: boolean; - functionApiBinding?: { - select: FunctionApiBindingSelect; + platformFunctionInvocation?: { + select: PlatformFunctionInvocationSelect; }; - functionApiBindingEdge?: { - select: FunctionApiBindingEdgeSelect; + platformFunctionInvocationEdge?: { + select: PlatformFunctionInvocationEdgeSelect; }; }; -export interface CreateFunctionCapabilityBindingPayload { +export interface CreatePlatformImagePayload { clientMutationId?: string | null; - /** The `FunctionCapabilityBinding` that was created by this mutation. */ - functionCapabilityBinding?: FunctionCapabilityBinding | null; - functionCapabilityBindingEdge?: FunctionCapabilityBindingEdge | null; + /** The `PlatformImage` that was created by this mutation. */ + platformImage?: PlatformImage | null; + platformImageEdge?: PlatformImageEdge | null; } -export type CreateFunctionCapabilityBindingPayloadSelect = { +export type CreatePlatformImagePayloadSelect = { clientMutationId?: boolean; - functionCapabilityBinding?: { - select: FunctionCapabilityBindingSelect; + platformImage?: { + select: PlatformImageSelect; }; - functionCapabilityBindingEdge?: { - select: FunctionCapabilityBindingEdgeSelect; + platformImageEdge?: { + select: PlatformImageEdgeSelect; }; }; -export interface UpdateFunctionCapabilityBindingPayload { +export interface UpdatePlatformImagePayload { clientMutationId?: string | null; - /** The `FunctionCapabilityBinding` that was updated by this mutation. */ - functionCapabilityBinding?: FunctionCapabilityBinding | null; - functionCapabilityBindingEdge?: FunctionCapabilityBindingEdge | null; + /** The `PlatformImage` that was updated by this mutation. */ + platformImage?: PlatformImage | null; + platformImageEdge?: PlatformImageEdge | null; } -export type UpdateFunctionCapabilityBindingPayloadSelect = { +export type UpdatePlatformImagePayloadSelect = { clientMutationId?: boolean; - functionCapabilityBinding?: { - select: FunctionCapabilityBindingSelect; + platformImage?: { + select: PlatformImageSelect; }; - functionCapabilityBindingEdge?: { - select: FunctionCapabilityBindingEdgeSelect; + platformImageEdge?: { + select: PlatformImageEdgeSelect; }; }; -export interface DeleteFunctionCapabilityBindingPayload { +export interface DeletePlatformImagePayload { clientMutationId?: string | null; - /** The `FunctionCapabilityBinding` that was deleted by this mutation. */ - functionCapabilityBinding?: FunctionCapabilityBinding | null; - functionCapabilityBindingEdge?: FunctionCapabilityBindingEdge | null; + /** The `PlatformImage` that was deleted by this mutation. */ + platformImage?: PlatformImage | null; + platformImageEdge?: PlatformImageEdge | null; } -export type DeleteFunctionCapabilityBindingPayloadSelect = { +export type DeletePlatformImagePayloadSelect = { clientMutationId?: boolean; - functionCapabilityBinding?: { - select: FunctionCapabilityBindingSelect; + platformImage?: { + select: PlatformImageSelect; }; - functionCapabilityBindingEdge?: { - select: FunctionCapabilityBindingEdgeSelect; + platformImageEdge?: { + select: PlatformImageEdgeSelect; }; }; -export interface CreateFunctionDefinitionPayload { +export interface CreatePlatformImageGrantPayload { clientMutationId?: string | null; - /** The `FunctionDefinition` that was created by this mutation. */ - functionDefinition?: FunctionDefinition | null; - functionDefinitionEdge?: FunctionDefinitionEdge | null; + /** The `PlatformImageGrant` that was created by this mutation. */ + platformImageGrant?: PlatformImageGrant | null; + platformImageGrantEdge?: PlatformImageGrantEdge | null; } -export type CreateFunctionDefinitionPayloadSelect = { +export type CreatePlatformImageGrantPayloadSelect = { clientMutationId?: boolean; - functionDefinition?: { - select: FunctionDefinitionSelect; + platformImageGrant?: { + select: PlatformImageGrantSelect; }; - functionDefinitionEdge?: { - select: FunctionDefinitionEdgeSelect; + platformImageGrantEdge?: { + select: PlatformImageGrantEdgeSelect; }; }; -export interface UpdateFunctionDefinitionPayload { +export interface UpdatePlatformImageGrantPayload { clientMutationId?: string | null; - /** The `FunctionDefinition` that was updated by this mutation. */ - functionDefinition?: FunctionDefinition | null; - functionDefinitionEdge?: FunctionDefinitionEdge | null; + /** The `PlatformImageGrant` that was updated by this mutation. */ + platformImageGrant?: PlatformImageGrant | null; + platformImageGrantEdge?: PlatformImageGrantEdge | null; } -export type UpdateFunctionDefinitionPayloadSelect = { +export type UpdatePlatformImageGrantPayloadSelect = { clientMutationId?: boolean; - functionDefinition?: { - select: FunctionDefinitionSelect; + platformImageGrant?: { + select: PlatformImageGrantSelect; }; - functionDefinitionEdge?: { - select: FunctionDefinitionEdgeSelect; + platformImageGrantEdge?: { + select: PlatformImageGrantEdgeSelect; }; }; -export interface DeleteFunctionDefinitionPayload { +export interface DeletePlatformImageGrantPayload { clientMutationId?: string | null; - /** The `FunctionDefinition` that was deleted by this mutation. */ - functionDefinition?: FunctionDefinition | null; - functionDefinitionEdge?: FunctionDefinitionEdge | null; + /** The `PlatformImageGrant` that was deleted by this mutation. */ + platformImageGrant?: PlatformImageGrant | null; + platformImageGrantEdge?: PlatformImageGrantEdge | null; } -export type DeleteFunctionDefinitionPayloadSelect = { +export type DeletePlatformImageGrantPayloadSelect = { clientMutationId?: boolean; - functionDefinition?: { - select: FunctionDefinitionSelect; + platformImageGrant?: { + select: PlatformImageGrantSelect; }; - functionDefinitionEdge?: { - select: FunctionDefinitionEdgeSelect; + platformImageGrantEdge?: { + select: PlatformImageGrantEdgeSelect; }; }; -export interface CreateFunctionDeploymentPayload { +export interface CreatePlatformInfraCommitPayload { clientMutationId?: string | null; - /** The `FunctionDeployment` that was created by this mutation. */ - functionDeployment?: FunctionDeployment | null; - functionDeploymentEdge?: FunctionDeploymentEdge | null; + /** The `PlatformInfraCommit` that was created by this mutation. */ + platformInfraCommit?: PlatformInfraCommit | null; + platformInfraCommitEdge?: PlatformInfraCommitEdge | null; } -export type CreateFunctionDeploymentPayloadSelect = { +export type CreatePlatformInfraCommitPayloadSelect = { clientMutationId?: boolean; - functionDeployment?: { - select: FunctionDeploymentSelect; + platformInfraCommit?: { + select: PlatformInfraCommitSelect; }; - functionDeploymentEdge?: { - select: FunctionDeploymentEdgeSelect; + platformInfraCommitEdge?: { + select: PlatformInfraCommitEdgeSelect; }; }; -export interface UpdateFunctionDeploymentPayload { +export interface UpdatePlatformInfraCommitPayload { clientMutationId?: string | null; - /** The `FunctionDeployment` that was updated by this mutation. */ - functionDeployment?: FunctionDeployment | null; - functionDeploymentEdge?: FunctionDeploymentEdge | null; + /** The `PlatformInfraCommit` that was updated by this mutation. */ + platformInfraCommit?: PlatformInfraCommit | null; + platformInfraCommitEdge?: PlatformInfraCommitEdge | null; } -export type UpdateFunctionDeploymentPayloadSelect = { +export type UpdatePlatformInfraCommitPayloadSelect = { clientMutationId?: boolean; - functionDeployment?: { - select: FunctionDeploymentSelect; + platformInfraCommit?: { + select: PlatformInfraCommitSelect; }; - functionDeploymentEdge?: { - select: FunctionDeploymentEdgeSelect; + platformInfraCommitEdge?: { + select: PlatformInfraCommitEdgeSelect; }; }; -export interface DeleteFunctionDeploymentPayload { +export interface DeletePlatformInfraCommitPayload { clientMutationId?: string | null; - /** The `FunctionDeployment` that was deleted by this mutation. */ - functionDeployment?: FunctionDeployment | null; - functionDeploymentEdge?: FunctionDeploymentEdge | null; + /** The `PlatformInfraCommit` that was deleted by this mutation. */ + platformInfraCommit?: PlatformInfraCommit | null; + platformInfraCommitEdge?: PlatformInfraCommitEdge | null; } -export type DeleteFunctionDeploymentPayloadSelect = { +export type DeletePlatformInfraCommitPayloadSelect = { clientMutationId?: boolean; - functionDeployment?: { - select: FunctionDeploymentSelect; + platformInfraCommit?: { + select: PlatformInfraCommitSelect; }; - functionDeploymentEdge?: { - select: FunctionDeploymentEdgeSelect; + platformInfraCommitEdge?: { + select: PlatformInfraCommitEdgeSelect; }; }; -export interface CreateFunctionDeploymentEventPayload { +export interface CreatePlatformInfraObjectPayload { clientMutationId?: string | null; - /** The `FunctionDeploymentEvent` that was created by this mutation. */ - functionDeploymentEvent?: FunctionDeploymentEvent | null; - functionDeploymentEventEdge?: FunctionDeploymentEventEdge | null; + /** The `PlatformInfraObject` that was created by this mutation. */ + platformInfraObject?: PlatformInfraObject | null; + platformInfraObjectEdge?: PlatformInfraObjectEdge | null; } -export type CreateFunctionDeploymentEventPayloadSelect = { +export type CreatePlatformInfraObjectPayloadSelect = { clientMutationId?: boolean; - functionDeploymentEvent?: { - select: FunctionDeploymentEventSelect; + platformInfraObject?: { + select: PlatformInfraObjectSelect; }; - functionDeploymentEventEdge?: { - select: FunctionDeploymentEventEdgeSelect; + platformInfraObjectEdge?: { + select: PlatformInfraObjectEdgeSelect; }; }; -export interface UpdateFunctionDeploymentEventPayload { +export interface UpdatePlatformInfraObjectPayload { clientMutationId?: string | null; - /** The `FunctionDeploymentEvent` that was updated by this mutation. */ - functionDeploymentEvent?: FunctionDeploymentEvent | null; - functionDeploymentEventEdge?: FunctionDeploymentEventEdge | null; + /** The `PlatformInfraObject` that was updated by this mutation. */ + platformInfraObject?: PlatformInfraObject | null; + platformInfraObjectEdge?: PlatformInfraObjectEdge | null; } -export type UpdateFunctionDeploymentEventPayloadSelect = { +export type UpdatePlatformInfraObjectPayloadSelect = { clientMutationId?: boolean; - functionDeploymentEvent?: { - select: FunctionDeploymentEventSelect; + platformInfraObject?: { + select: PlatformInfraObjectSelect; }; - functionDeploymentEventEdge?: { - select: FunctionDeploymentEventEdgeSelect; + platformInfraObjectEdge?: { + select: PlatformInfraObjectEdgeSelect; }; }; -export interface DeleteFunctionDeploymentEventPayload { +export interface DeletePlatformInfraObjectPayload { clientMutationId?: string | null; - /** The `FunctionDeploymentEvent` that was deleted by this mutation. */ - functionDeploymentEvent?: FunctionDeploymentEvent | null; - functionDeploymentEventEdge?: FunctionDeploymentEventEdge | null; + /** The `PlatformInfraObject` that was deleted by this mutation. */ + platformInfraObject?: PlatformInfraObject | null; + platformInfraObjectEdge?: PlatformInfraObjectEdge | null; } -export type DeleteFunctionDeploymentEventPayloadSelect = { +export type DeletePlatformInfraObjectPayloadSelect = { clientMutationId?: boolean; - functionDeploymentEvent?: { - select: FunctionDeploymentEventSelect; + platformInfraObject?: { + select: PlatformInfraObjectSelect; }; - functionDeploymentEventEdge?: { - select: FunctionDeploymentEventEdgeSelect; + platformInfraObjectEdge?: { + select: PlatformInfraObjectEdgeSelect; }; }; -export interface CreateFunctionExecutionLogPayload { +export interface CreatePlatformInfraRefPayload { clientMutationId?: string | null; - /** The `FunctionExecutionLog` that was created by this mutation. */ - functionExecutionLog?: FunctionExecutionLog | null; - functionExecutionLogEdge?: FunctionExecutionLogEdge | null; + /** The `PlatformInfraRef` that was created by this mutation. */ + platformInfraRef?: PlatformInfraRef | null; + platformInfraRefEdge?: PlatformInfraRefEdge | null; } -export type CreateFunctionExecutionLogPayloadSelect = { +export type CreatePlatformInfraRefPayloadSelect = { clientMutationId?: boolean; - functionExecutionLog?: { - select: FunctionExecutionLogSelect; + platformInfraRef?: { + select: PlatformInfraRefSelect; }; - functionExecutionLogEdge?: { - select: FunctionExecutionLogEdgeSelect; + platformInfraRefEdge?: { + select: PlatformInfraRefEdgeSelect; }; }; -export interface UpdateFunctionExecutionLogPayload { +export interface UpdatePlatformInfraRefPayload { clientMutationId?: string | null; - /** The `FunctionExecutionLog` that was updated by this mutation. */ - functionExecutionLog?: FunctionExecutionLog | null; - functionExecutionLogEdge?: FunctionExecutionLogEdge | null; + /** The `PlatformInfraRef` that was updated by this mutation. */ + platformInfraRef?: PlatformInfraRef | null; + platformInfraRefEdge?: PlatformInfraRefEdge | null; } -export type UpdateFunctionExecutionLogPayloadSelect = { +export type UpdatePlatformInfraRefPayloadSelect = { clientMutationId?: boolean; - functionExecutionLog?: { - select: FunctionExecutionLogSelect; + platformInfraRef?: { + select: PlatformInfraRefSelect; }; - functionExecutionLogEdge?: { - select: FunctionExecutionLogEdgeSelect; + platformInfraRefEdge?: { + select: PlatformInfraRefEdgeSelect; }; }; -export interface DeleteFunctionExecutionLogPayload { - clientMutationId?: string | null; - /** The `FunctionExecutionLog` that was deleted by this mutation. */ - functionExecutionLog?: FunctionExecutionLog | null; - functionExecutionLogEdge?: FunctionExecutionLogEdge | null; +export interface DeletePlatformInfraRefPayload { + clientMutationId?: string | null; + /** The `PlatformInfraRef` that was deleted by this mutation. */ + platformInfraRef?: PlatformInfraRef | null; + platformInfraRefEdge?: PlatformInfraRefEdge | null; } -export type DeleteFunctionExecutionLogPayloadSelect = { +export type DeletePlatformInfraRefPayloadSelect = { clientMutationId?: boolean; - functionExecutionLog?: { - select: FunctionExecutionLogSelect; + platformInfraRef?: { + select: PlatformInfraRefSelect; }; - functionExecutionLogEdge?: { - select: FunctionExecutionLogEdgeSelect; + platformInfraRefEdge?: { + select: PlatformInfraRefEdgeSelect; }; }; -export interface CreateFunctionGraphCommitPayload { +export interface CreatePlatformInfraStorePayload { clientMutationId?: string | null; - /** The `FunctionGraphCommit` that was created by this mutation. */ - functionGraphCommit?: FunctionGraphCommit | null; - functionGraphCommitEdge?: FunctionGraphCommitEdge | null; + /** The `PlatformInfraStore` that was created by this mutation. */ + platformInfraStore?: PlatformInfraStore | null; + platformInfraStoreEdge?: PlatformInfraStoreEdge | null; } -export type CreateFunctionGraphCommitPayloadSelect = { +export type CreatePlatformInfraStorePayloadSelect = { clientMutationId?: boolean; - functionGraphCommit?: { - select: FunctionGraphCommitSelect; + platformInfraStore?: { + select: PlatformInfraStoreSelect; }; - functionGraphCommitEdge?: { - select: FunctionGraphCommitEdgeSelect; + platformInfraStoreEdge?: { + select: PlatformInfraStoreEdgeSelect; }; }; -export interface UpdateFunctionGraphCommitPayload { +export interface UpdatePlatformInfraStorePayload { clientMutationId?: string | null; - /** The `FunctionGraphCommit` that was updated by this mutation. */ - functionGraphCommit?: FunctionGraphCommit | null; - functionGraphCommitEdge?: FunctionGraphCommitEdge | null; + /** The `PlatformInfraStore` that was updated by this mutation. */ + platformInfraStore?: PlatformInfraStore | null; + platformInfraStoreEdge?: PlatformInfraStoreEdge | null; } -export type UpdateFunctionGraphCommitPayloadSelect = { +export type UpdatePlatformInfraStorePayloadSelect = { clientMutationId?: boolean; - functionGraphCommit?: { - select: FunctionGraphCommitSelect; + platformInfraStore?: { + select: PlatformInfraStoreSelect; }; - functionGraphCommitEdge?: { - select: FunctionGraphCommitEdgeSelect; + platformInfraStoreEdge?: { + select: PlatformInfraStoreEdgeSelect; }; }; -export interface DeleteFunctionGraphCommitPayload { +export interface DeletePlatformInfraStorePayload { clientMutationId?: string | null; - /** The `FunctionGraphCommit` that was deleted by this mutation. */ - functionGraphCommit?: FunctionGraphCommit | null; - functionGraphCommitEdge?: FunctionGraphCommitEdge | null; + /** The `PlatformInfraStore` that was deleted by this mutation. */ + platformInfraStore?: PlatformInfraStore | null; + platformInfraStoreEdge?: PlatformInfraStoreEdge | null; } -export type DeleteFunctionGraphCommitPayloadSelect = { +export type DeletePlatformInfraStorePayloadSelect = { clientMutationId?: boolean; - functionGraphCommit?: { - select: FunctionGraphCommitSelect; + platformInfraStore?: { + select: PlatformInfraStoreSelect; }; - functionGraphCommitEdge?: { - select: FunctionGraphCommitEdgeSelect; + platformInfraStoreEdge?: { + select: PlatformInfraStoreEdgeSelect; }; }; -export interface CreateFunctionGraphPayload { +export interface CreatePlatformK8sResourceKindPayload { clientMutationId?: string | null; - result?: string | null; + /** The `PlatformK8sResourceKind` that was created by this mutation. */ + platformK8sResourceKind?: PlatformK8sResourceKind | null; + platformK8sResourceKindEdge?: PlatformK8sResourceKindEdge | null; } -export type CreateFunctionGraphPayloadSelect = { +export type CreatePlatformK8sResourceKindPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + platformK8sResourceKind?: { + select: PlatformK8sResourceKindSelect; + }; + platformK8sResourceKindEdge?: { + select: PlatformK8sResourceKindEdgeSelect; + }; }; -export interface UpdateFunctionGraphPayload { +export interface UpdatePlatformK8sResourceKindPayload { clientMutationId?: string | null; - /** The `FunctionGraph` that was updated by this mutation. */ - functionGraph?: FunctionGraph | null; - functionGraphEdge?: FunctionGraphEdge | null; + /** The `PlatformK8sResourceKind` that was updated by this mutation. */ + platformK8sResourceKind?: PlatformK8sResourceKind | null; + platformK8sResourceKindEdge?: PlatformK8sResourceKindEdge | null; } -export type UpdateFunctionGraphPayloadSelect = { +export type UpdatePlatformK8sResourceKindPayloadSelect = { clientMutationId?: boolean; - functionGraph?: { - select: FunctionGraphSelect; + platformK8sResourceKind?: { + select: PlatformK8sResourceKindSelect; }; - functionGraphEdge?: { - select: FunctionGraphEdgeSelect; + platformK8sResourceKindEdge?: { + select: PlatformK8sResourceKindEdgeSelect; }; }; -export interface DeleteFunctionGraphPayload { +export interface DeletePlatformK8sResourceKindPayload { clientMutationId?: string | null; - /** The `FunctionGraph` that was deleted by this mutation. */ - functionGraph?: FunctionGraph | null; - functionGraphEdge?: FunctionGraphEdge | null; + /** The `PlatformK8sResourceKind` that was deleted by this mutation. */ + platformK8sResourceKind?: PlatformK8sResourceKind | null; + platformK8sResourceKindEdge?: PlatformK8sResourceKindEdge | null; } -export type DeleteFunctionGraphPayloadSelect = { +export type DeletePlatformK8sResourceKindPayloadSelect = { clientMutationId?: boolean; - functionGraph?: { - select: FunctionGraphSelect; + platformK8sResourceKind?: { + select: PlatformK8sResourceKindSelect; }; - functionGraphEdge?: { - select: FunctionGraphEdgeSelect; + platformK8sResourceKindEdge?: { + select: PlatformK8sResourceKindEdgeSelect; }; }; -export interface CreateFunctionGraphExecutionPayload { +export interface CreatePlatformK8sSpecRulePayload { clientMutationId?: string | null; - /** The `FunctionGraphExecution` that was created by this mutation. */ - functionGraphExecution?: FunctionGraphExecution | null; - functionGraphExecutionEdge?: FunctionGraphExecutionEdge | null; + /** The `PlatformK8sSpecRule` that was created by this mutation. */ + platformK8sSpecRule?: PlatformK8sSpecRule | null; + platformK8sSpecRuleEdge?: PlatformK8sSpecRuleEdge | null; } -export type CreateFunctionGraphExecutionPayloadSelect = { +export type CreatePlatformK8sSpecRulePayloadSelect = { clientMutationId?: boolean; - functionGraphExecution?: { - select: FunctionGraphExecutionSelect; + platformK8sSpecRule?: { + select: PlatformK8sSpecRuleSelect; }; - functionGraphExecutionEdge?: { - select: FunctionGraphExecutionEdgeSelect; + platformK8sSpecRuleEdge?: { + select: PlatformK8sSpecRuleEdgeSelect; }; }; -export interface UpdateFunctionGraphExecutionPayload { +export interface UpdatePlatformK8sSpecRulePayload { clientMutationId?: string | null; - /** The `FunctionGraphExecution` that was updated by this mutation. */ - functionGraphExecution?: FunctionGraphExecution | null; - functionGraphExecutionEdge?: FunctionGraphExecutionEdge | null; + /** The `PlatformK8sSpecRule` that was updated by this mutation. */ + platformK8sSpecRule?: PlatformK8sSpecRule | null; + platformK8sSpecRuleEdge?: PlatformK8sSpecRuleEdge | null; } -export type UpdateFunctionGraphExecutionPayloadSelect = { +export type UpdatePlatformK8sSpecRulePayloadSelect = { clientMutationId?: boolean; - functionGraphExecution?: { - select: FunctionGraphExecutionSelect; + platformK8sSpecRule?: { + select: PlatformK8sSpecRuleSelect; }; - functionGraphExecutionEdge?: { - select: FunctionGraphExecutionEdgeSelect; + platformK8sSpecRuleEdge?: { + select: PlatformK8sSpecRuleEdgeSelect; }; }; -export interface DeleteFunctionGraphExecutionPayload { +export interface DeletePlatformK8sSpecRulePayload { clientMutationId?: string | null; - /** The `FunctionGraphExecution` that was deleted by this mutation. */ - functionGraphExecution?: FunctionGraphExecution | null; - functionGraphExecutionEdge?: FunctionGraphExecutionEdge | null; + /** The `PlatformK8sSpecRule` that was deleted by this mutation. */ + platformK8sSpecRule?: PlatformK8sSpecRule | null; + platformK8sSpecRuleEdge?: PlatformK8sSpecRuleEdge | null; } -export type DeleteFunctionGraphExecutionPayloadSelect = { +export type DeletePlatformK8sSpecRulePayloadSelect = { clientMutationId?: boolean; - functionGraphExecution?: { - select: FunctionGraphExecutionSelect; + platformK8sSpecRule?: { + select: PlatformK8sSpecRuleSelect; }; - functionGraphExecutionEdge?: { - select: FunctionGraphExecutionEdgeSelect; + platformK8sSpecRuleEdge?: { + select: PlatformK8sSpecRuleEdgeSelect; }; }; -export interface CreateFunctionGraphExecutionNodeStatePayload { +export interface CreatePlatformNamespacePayload { clientMutationId?: string | null; - /** The `FunctionGraphExecutionNodeState` that was created by this mutation. */ - functionGraphExecutionNodeState?: FunctionGraphExecutionNodeState | null; - functionGraphExecutionNodeStateEdge?: FunctionGraphExecutionNodeStateEdge | null; + /** The `PlatformNamespace` that was created by this mutation. */ + platformNamespace?: PlatformNamespace | null; + platformNamespaceEdge?: PlatformNamespaceEdge | null; } -export type CreateFunctionGraphExecutionNodeStatePayloadSelect = { +export type CreatePlatformNamespacePayloadSelect = { clientMutationId?: boolean; - functionGraphExecutionNodeState?: { - select: FunctionGraphExecutionNodeStateSelect; + platformNamespace?: { + select: PlatformNamespaceSelect; }; - functionGraphExecutionNodeStateEdge?: { - select: FunctionGraphExecutionNodeStateEdgeSelect; + platformNamespaceEdge?: { + select: PlatformNamespaceEdgeSelect; }; }; -export interface UpdateFunctionGraphExecutionNodeStatePayload { +export interface UpdatePlatformNamespacePayload { clientMutationId?: string | null; - /** The `FunctionGraphExecutionNodeState` that was updated by this mutation. */ - functionGraphExecutionNodeState?: FunctionGraphExecutionNodeState | null; - functionGraphExecutionNodeStateEdge?: FunctionGraphExecutionNodeStateEdge | null; + /** The `PlatformNamespace` that was updated by this mutation. */ + platformNamespace?: PlatformNamespace | null; + platformNamespaceEdge?: PlatformNamespaceEdge | null; } -export type UpdateFunctionGraphExecutionNodeStatePayloadSelect = { +export type UpdatePlatformNamespacePayloadSelect = { clientMutationId?: boolean; - functionGraphExecutionNodeState?: { - select: FunctionGraphExecutionNodeStateSelect; + platformNamespace?: { + select: PlatformNamespaceSelect; }; - functionGraphExecutionNodeStateEdge?: { - select: FunctionGraphExecutionNodeStateEdgeSelect; + platformNamespaceEdge?: { + select: PlatformNamespaceEdgeSelect; }; }; -export interface DeleteFunctionGraphExecutionNodeStatePayload { +export interface DeletePlatformNamespacePayload { clientMutationId?: string | null; - /** The `FunctionGraphExecutionNodeState` that was deleted by this mutation. */ - functionGraphExecutionNodeState?: FunctionGraphExecutionNodeState | null; - functionGraphExecutionNodeStateEdge?: FunctionGraphExecutionNodeStateEdge | null; + /** The `PlatformNamespace` that was deleted by this mutation. */ + platformNamespace?: PlatformNamespace | null; + platformNamespaceEdge?: PlatformNamespaceEdge | null; } -export type DeleteFunctionGraphExecutionNodeStatePayloadSelect = { +export type DeletePlatformNamespacePayloadSelect = { clientMutationId?: boolean; - functionGraphExecutionNodeState?: { - select: FunctionGraphExecutionNodeStateSelect; + platformNamespace?: { + select: PlatformNamespaceSelect; }; - functionGraphExecutionNodeStateEdge?: { - select: FunctionGraphExecutionNodeStateEdgeSelect; + platformNamespaceEdge?: { + select: PlatformNamespaceEdgeSelect; }; }; -export interface CreateFunctionGraphExecutionOutputPayload { +export interface CreatePlatformNamespaceEventPayload { clientMutationId?: string | null; - /** The `FunctionGraphExecutionOutput` that was created by this mutation. */ - functionGraphExecutionOutput?: FunctionGraphExecutionOutput | null; - functionGraphExecutionOutputEdge?: FunctionGraphExecutionOutputEdge | null; + /** The `PlatformNamespaceEvent` that was created by this mutation. */ + platformNamespaceEvent?: PlatformNamespaceEvent | null; + platformNamespaceEventEdge?: PlatformNamespaceEventEdge | null; } -export type CreateFunctionGraphExecutionOutputPayloadSelect = { +export type CreatePlatformNamespaceEventPayloadSelect = { clientMutationId?: boolean; - functionGraphExecutionOutput?: { - select: FunctionGraphExecutionOutputSelect; + platformNamespaceEvent?: { + select: PlatformNamespaceEventSelect; }; - functionGraphExecutionOutputEdge?: { - select: FunctionGraphExecutionOutputEdgeSelect; + platformNamespaceEventEdge?: { + select: PlatformNamespaceEventEdgeSelect; }; }; -export interface UpdateFunctionGraphExecutionOutputPayload { +export interface UpdatePlatformNamespaceEventPayload { clientMutationId?: string | null; - /** The `FunctionGraphExecutionOutput` that was updated by this mutation. */ - functionGraphExecutionOutput?: FunctionGraphExecutionOutput | null; - functionGraphExecutionOutputEdge?: FunctionGraphExecutionOutputEdge | null; + /** The `PlatformNamespaceEvent` that was updated by this mutation. */ + platformNamespaceEvent?: PlatformNamespaceEvent | null; + platformNamespaceEventEdge?: PlatformNamespaceEventEdge | null; } -export type UpdateFunctionGraphExecutionOutputPayloadSelect = { +export type UpdatePlatformNamespaceEventPayloadSelect = { clientMutationId?: boolean; - functionGraphExecutionOutput?: { - select: FunctionGraphExecutionOutputSelect; + platformNamespaceEvent?: { + select: PlatformNamespaceEventSelect; }; - functionGraphExecutionOutputEdge?: { - select: FunctionGraphExecutionOutputEdgeSelect; + platformNamespaceEventEdge?: { + select: PlatformNamespaceEventEdgeSelect; }; }; -export interface DeleteFunctionGraphExecutionOutputPayload { +export interface DeletePlatformNamespaceEventPayload { clientMutationId?: string | null; - /** The `FunctionGraphExecutionOutput` that was deleted by this mutation. */ - functionGraphExecutionOutput?: FunctionGraphExecutionOutput | null; - functionGraphExecutionOutputEdge?: FunctionGraphExecutionOutputEdge | null; + /** The `PlatformNamespaceEvent` that was deleted by this mutation. */ + platformNamespaceEvent?: PlatformNamespaceEvent | null; + platformNamespaceEventEdge?: PlatformNamespaceEventEdge | null; } -export type DeleteFunctionGraphExecutionOutputPayloadSelect = { +export type DeletePlatformNamespaceEventPayloadSelect = { clientMutationId?: boolean; - functionGraphExecutionOutput?: { - select: FunctionGraphExecutionOutputSelect; + platformNamespaceEvent?: { + select: PlatformNamespaceEventSelect; }; - functionGraphExecutionOutputEdge?: { - select: FunctionGraphExecutionOutputEdgeSelect; + platformNamespaceEventEdge?: { + select: PlatformNamespaceEventEdgeSelect; }; }; -export interface CreateFunctionGraphObjectPayload { +export interface CreatePlatformProposalCommentPayload { clientMutationId?: string | null; - /** The `FunctionGraphObject` that was created by this mutation. */ - functionGraphObject?: FunctionGraphObject | null; - functionGraphObjectEdge?: FunctionGraphObjectEdge | null; + /** The `PlatformProposalComment` that was created by this mutation. */ + platformProposalComment?: PlatformProposalComment | null; + platformProposalCommentEdge?: PlatformProposalCommentEdge | null; } -export type CreateFunctionGraphObjectPayloadSelect = { +export type CreatePlatformProposalCommentPayloadSelect = { clientMutationId?: boolean; - functionGraphObject?: { - select: FunctionGraphObjectSelect; + platformProposalComment?: { + select: PlatformProposalCommentSelect; }; - functionGraphObjectEdge?: { - select: FunctionGraphObjectEdgeSelect; + platformProposalCommentEdge?: { + select: PlatformProposalCommentEdgeSelect; }; }; -export interface UpdateFunctionGraphObjectPayload { +export interface UpdatePlatformProposalCommentPayload { clientMutationId?: string | null; - /** The `FunctionGraphObject` that was updated by this mutation. */ - functionGraphObject?: FunctionGraphObject | null; - functionGraphObjectEdge?: FunctionGraphObjectEdge | null; + /** The `PlatformProposalComment` that was updated by this mutation. */ + platformProposalComment?: PlatformProposalComment | null; + platformProposalCommentEdge?: PlatformProposalCommentEdge | null; } -export type UpdateFunctionGraphObjectPayloadSelect = { +export type UpdatePlatformProposalCommentPayloadSelect = { clientMutationId?: boolean; - functionGraphObject?: { - select: FunctionGraphObjectSelect; + platformProposalComment?: { + select: PlatformProposalCommentSelect; }; - functionGraphObjectEdge?: { - select: FunctionGraphObjectEdgeSelect; + platformProposalCommentEdge?: { + select: PlatformProposalCommentEdgeSelect; }; }; -export interface DeleteFunctionGraphObjectPayload { +export interface DeletePlatformProposalCommentPayload { clientMutationId?: string | null; - /** The `FunctionGraphObject` that was deleted by this mutation. */ - functionGraphObject?: FunctionGraphObject | null; - functionGraphObjectEdge?: FunctionGraphObjectEdge | null; + /** The `PlatformProposalComment` that was deleted by this mutation. */ + platformProposalComment?: PlatformProposalComment | null; + platformProposalCommentEdge?: PlatformProposalCommentEdge | null; } -export type DeleteFunctionGraphObjectPayloadSelect = { +export type DeletePlatformProposalCommentPayloadSelect = { clientMutationId?: boolean; - functionGraphObject?: { - select: FunctionGraphObjectSelect; + platformProposalComment?: { + select: PlatformProposalCommentSelect; }; - functionGraphObjectEdge?: { - select: FunctionGraphObjectEdgeSelect; + platformProposalCommentEdge?: { + select: PlatformProposalCommentEdgeSelect; }; }; -export interface CreateFunctionGraphRefPayload { +export interface CreatePlatformProposalPayload { clientMutationId?: string | null; - /** The `FunctionGraphRef` that was created by this mutation. */ - functionGraphRef?: FunctionGraphRef | null; - functionGraphRefEdge?: FunctionGraphRefEdge | null; + /** The `PlatformProposal` that was created by this mutation. */ + platformProposal?: PlatformProposal | null; + platformProposalEdge?: PlatformProposalEdge | null; } -export type CreateFunctionGraphRefPayloadSelect = { +export type CreatePlatformProposalPayloadSelect = { clientMutationId?: boolean; - functionGraphRef?: { - select: FunctionGraphRefSelect; + platformProposal?: { + select: PlatformProposalSelect; }; - functionGraphRefEdge?: { - select: FunctionGraphRefEdgeSelect; + platformProposalEdge?: { + select: PlatformProposalEdgeSelect; }; }; -export interface UpdateFunctionGraphRefPayload { +export interface UpdatePlatformProposalPayload { clientMutationId?: string | null; - /** The `FunctionGraphRef` that was updated by this mutation. */ - functionGraphRef?: FunctionGraphRef | null; - functionGraphRefEdge?: FunctionGraphRefEdge | null; + /** The `PlatformProposal` that was updated by this mutation. */ + platformProposal?: PlatformProposal | null; + platformProposalEdge?: PlatformProposalEdge | null; } -export type UpdateFunctionGraphRefPayloadSelect = { +export type UpdatePlatformProposalPayloadSelect = { clientMutationId?: boolean; - functionGraphRef?: { - select: FunctionGraphRefSelect; + platformProposal?: { + select: PlatformProposalSelect; }; - functionGraphRefEdge?: { - select: FunctionGraphRefEdgeSelect; + platformProposalEdge?: { + select: PlatformProposalEdgeSelect; }; }; -export interface DeleteFunctionGraphRefPayload { +export interface DeletePlatformProposalPayload { clientMutationId?: string | null; - /** The `FunctionGraphRef` that was deleted by this mutation. */ - functionGraphRef?: FunctionGraphRef | null; - functionGraphRefEdge?: FunctionGraphRefEdge | null; + /** The `PlatformProposal` that was deleted by this mutation. */ + platformProposal?: PlatformProposal | null; + platformProposalEdge?: PlatformProposalEdge | null; } -export type DeleteFunctionGraphRefPayloadSelect = { +export type DeletePlatformProposalPayloadSelect = { clientMutationId?: boolean; - functionGraphRef?: { - select: FunctionGraphRefSelect; + platformProposal?: { + select: PlatformProposalSelect; }; - functionGraphRefEdge?: { - select: FunctionGraphRefEdgeSelect; + platformProposalEdge?: { + select: PlatformProposalEdgeSelect; }; }; -export interface CreateFunctionGraphStorePayload { +export interface CreatePlatformProposalFileViewPayload { clientMutationId?: string | null; - /** The `FunctionGraphStore` that was created by this mutation. */ - functionGraphStore?: FunctionGraphStore | null; - functionGraphStoreEdge?: FunctionGraphStoreEdge | null; + /** The `PlatformProposalFileView` that was created by this mutation. */ + platformProposalFileView?: PlatformProposalFileView | null; + platformProposalFileViewEdge?: PlatformProposalFileViewEdge | null; } -export type CreateFunctionGraphStorePayloadSelect = { +export type CreatePlatformProposalFileViewPayloadSelect = { clientMutationId?: boolean; - functionGraphStore?: { - select: FunctionGraphStoreSelect; + platformProposalFileView?: { + select: PlatformProposalFileViewSelect; }; - functionGraphStoreEdge?: { - select: FunctionGraphStoreEdgeSelect; + platformProposalFileViewEdge?: { + select: PlatformProposalFileViewEdgeSelect; }; }; -export interface UpdateFunctionGraphStorePayload { +export interface UpdatePlatformProposalFileViewPayload { clientMutationId?: string | null; - /** The `FunctionGraphStore` that was updated by this mutation. */ - functionGraphStore?: FunctionGraphStore | null; - functionGraphStoreEdge?: FunctionGraphStoreEdge | null; + /** The `PlatformProposalFileView` that was updated by this mutation. */ + platformProposalFileView?: PlatformProposalFileView | null; + platformProposalFileViewEdge?: PlatformProposalFileViewEdge | null; } -export type UpdateFunctionGraphStorePayloadSelect = { +export type UpdatePlatformProposalFileViewPayloadSelect = { clientMutationId?: boolean; - functionGraphStore?: { - select: FunctionGraphStoreSelect; + platformProposalFileView?: { + select: PlatformProposalFileViewSelect; }; - functionGraphStoreEdge?: { - select: FunctionGraphStoreEdgeSelect; + platformProposalFileViewEdge?: { + select: PlatformProposalFileViewEdgeSelect; }; }; -export interface DeleteFunctionGraphStorePayload { +export interface DeletePlatformProposalFileViewPayload { clientMutationId?: string | null; - /** The `FunctionGraphStore` that was deleted by this mutation. */ - functionGraphStore?: FunctionGraphStore | null; - functionGraphStoreEdge?: FunctionGraphStoreEdge | null; + /** The `PlatformProposalFileView` that was deleted by this mutation. */ + platformProposalFileView?: PlatformProposalFileView | null; + platformProposalFileViewEdge?: PlatformProposalFileViewEdge | null; } -export type DeleteFunctionGraphStorePayloadSelect = { +export type DeletePlatformProposalFileViewPayloadSelect = { clientMutationId?: boolean; - functionGraphStore?: { - select: FunctionGraphStoreSelect; + platformProposalFileView?: { + select: PlatformProposalFileViewSelect; }; - functionGraphStoreEdge?: { - select: FunctionGraphStoreEdgeSelect; + platformProposalFileViewEdge?: { + select: PlatformProposalFileViewEdgeSelect; }; }; -export interface CreateFunctionInvocationAttemptPayload { +export interface CreatePlatformProposalReactionPayload { clientMutationId?: string | null; - /** The `FunctionInvocationAttempt` that was created by this mutation. */ - functionInvocationAttempt?: FunctionInvocationAttempt | null; - functionInvocationAttemptEdge?: FunctionInvocationAttemptEdge | null; + /** The `PlatformProposalReaction` that was created by this mutation. */ + platformProposalReaction?: PlatformProposalReaction | null; + platformProposalReactionEdge?: PlatformProposalReactionEdge | null; } -export type CreateFunctionInvocationAttemptPayloadSelect = { +export type CreatePlatformProposalReactionPayloadSelect = { clientMutationId?: boolean; - functionInvocationAttempt?: { - select: FunctionInvocationAttemptSelect; + platformProposalReaction?: { + select: PlatformProposalReactionSelect; }; - functionInvocationAttemptEdge?: { - select: FunctionInvocationAttemptEdgeSelect; + platformProposalReactionEdge?: { + select: PlatformProposalReactionEdgeSelect; }; }; -export interface UpdateFunctionInvocationAttemptPayload { +export interface UpdatePlatformProposalReactionPayload { clientMutationId?: string | null; - /** The `FunctionInvocationAttempt` that was updated by this mutation. */ - functionInvocationAttempt?: FunctionInvocationAttempt | null; - functionInvocationAttemptEdge?: FunctionInvocationAttemptEdge | null; + /** The `PlatformProposalReaction` that was updated by this mutation. */ + platformProposalReaction?: PlatformProposalReaction | null; + platformProposalReactionEdge?: PlatformProposalReactionEdge | null; } -export type UpdateFunctionInvocationAttemptPayloadSelect = { +export type UpdatePlatformProposalReactionPayloadSelect = { clientMutationId?: boolean; - functionInvocationAttempt?: { - select: FunctionInvocationAttemptSelect; + platformProposalReaction?: { + select: PlatformProposalReactionSelect; }; - functionInvocationAttemptEdge?: { - select: FunctionInvocationAttemptEdgeSelect; + platformProposalReactionEdge?: { + select: PlatformProposalReactionEdgeSelect; }; }; -export interface DeleteFunctionInvocationAttemptPayload { +export interface DeletePlatformProposalReactionPayload { clientMutationId?: string | null; - /** The `FunctionInvocationAttempt` that was deleted by this mutation. */ - functionInvocationAttempt?: FunctionInvocationAttempt | null; - functionInvocationAttemptEdge?: FunctionInvocationAttemptEdge | null; + /** The `PlatformProposalReaction` that was deleted by this mutation. */ + platformProposalReaction?: PlatformProposalReaction | null; + platformProposalReactionEdge?: PlatformProposalReactionEdge | null; } -export type DeleteFunctionInvocationAttemptPayloadSelect = { +export type DeletePlatformProposalReactionPayloadSelect = { clientMutationId?: boolean; - functionInvocationAttempt?: { - select: FunctionInvocationAttemptSelect; + platformProposalReaction?: { + select: PlatformProposalReactionSelect; }; - functionInvocationAttemptEdge?: { - select: FunctionInvocationAttemptEdgeSelect; + platformProposalReactionEdge?: { + select: PlatformProposalReactionEdgeSelect; }; }; -export interface CreateFunctionInvocationPayload { +export interface CreatePlatformProposalReviewPayload { clientMutationId?: string | null; - /** The `FunctionInvocation` that was created by this mutation. */ - functionInvocation?: FunctionInvocation | null; - functionInvocationEdge?: FunctionInvocationEdge | null; + /** The `PlatformProposalReview` that was created by this mutation. */ + platformProposalReview?: PlatformProposalReview | null; + platformProposalReviewEdge?: PlatformProposalReviewEdge | null; } -export type CreateFunctionInvocationPayloadSelect = { +export type CreatePlatformProposalReviewPayloadSelect = { clientMutationId?: boolean; - functionInvocation?: { - select: FunctionInvocationSelect; + platformProposalReview?: { + select: PlatformProposalReviewSelect; }; - functionInvocationEdge?: { - select: FunctionInvocationEdgeSelect; + platformProposalReviewEdge?: { + select: PlatformProposalReviewEdgeSelect; }; }; -export interface UpdateFunctionInvocationPayload { +export interface UpdatePlatformProposalReviewPayload { clientMutationId?: string | null; - /** The `FunctionInvocation` that was updated by this mutation. */ - functionInvocation?: FunctionInvocation | null; - functionInvocationEdge?: FunctionInvocationEdge | null; + /** The `PlatformProposalReview` that was updated by this mutation. */ + platformProposalReview?: PlatformProposalReview | null; + platformProposalReviewEdge?: PlatformProposalReviewEdge | null; } -export type UpdateFunctionInvocationPayloadSelect = { +export type UpdatePlatformProposalReviewPayloadSelect = { clientMutationId?: boolean; - functionInvocation?: { - select: FunctionInvocationSelect; + platformProposalReview?: { + select: PlatformProposalReviewSelect; }; - functionInvocationEdge?: { - select: FunctionInvocationEdgeSelect; + platformProposalReviewEdge?: { + select: PlatformProposalReviewEdgeSelect; }; }; -export interface DeleteFunctionInvocationPayload { +export interface DeletePlatformProposalReviewPayload { clientMutationId?: string | null; - /** The `FunctionInvocation` that was deleted by this mutation. */ - functionInvocation?: FunctionInvocation | null; - functionInvocationEdge?: FunctionInvocationEdge | null; + /** The `PlatformProposalReview` that was deleted by this mutation. */ + platformProposalReview?: PlatformProposalReview | null; + platformProposalReviewEdge?: PlatformProposalReviewEdge | null; } -export type DeleteFunctionInvocationPayloadSelect = { +export type DeletePlatformProposalReviewPayloadSelect = { clientMutationId?: boolean; - functionInvocation?: { - select: FunctionInvocationSelect; + platformProposalReview?: { + select: PlatformProposalReviewSelect; }; - functionInvocationEdge?: { - select: FunctionInvocationEdgeSelect; + platformProposalReviewEdge?: { + select: PlatformProposalReviewEdgeSelect; }; }; -export interface CreateInfraCommitPayload { +export interface CreatePlatformProposalsChunkPayload { clientMutationId?: string | null; - /** The `InfraCommit` that was created by this mutation. */ - infraCommit?: InfraCommit | null; - infraCommitEdge?: InfraCommitEdge | null; + /** The `PlatformProposalsChunk` that was created by this mutation. */ + platformProposalsChunk?: PlatformProposalsChunk | null; + platformProposalsChunkEdge?: PlatformProposalsChunkEdge | null; } -export type CreateInfraCommitPayloadSelect = { +export type CreatePlatformProposalsChunkPayloadSelect = { clientMutationId?: boolean; - infraCommit?: { - select: InfraCommitSelect; + platformProposalsChunk?: { + select: PlatformProposalsChunkSelect; }; - infraCommitEdge?: { - select: InfraCommitEdgeSelect; + platformProposalsChunkEdge?: { + select: PlatformProposalsChunkEdgeSelect; }; }; -export interface UpdateInfraCommitPayload { +export interface UpdatePlatformProposalsChunkPayload { clientMutationId?: string | null; - /** The `InfraCommit` that was updated by this mutation. */ - infraCommit?: InfraCommit | null; - infraCommitEdge?: InfraCommitEdge | null; + /** The `PlatformProposalsChunk` that was updated by this mutation. */ + platformProposalsChunk?: PlatformProposalsChunk | null; + platformProposalsChunkEdge?: PlatformProposalsChunkEdge | null; } -export type UpdateInfraCommitPayloadSelect = { +export type UpdatePlatformProposalsChunkPayloadSelect = { clientMutationId?: boolean; - infraCommit?: { - select: InfraCommitSelect; + platformProposalsChunk?: { + select: PlatformProposalsChunkSelect; }; - infraCommitEdge?: { - select: InfraCommitEdgeSelect; + platformProposalsChunkEdge?: { + select: PlatformProposalsChunkEdgeSelect; }; }; -export interface DeleteInfraCommitPayload { +export interface DeletePlatformProposalsChunkPayload { clientMutationId?: string | null; - /** The `InfraCommit` that was deleted by this mutation. */ - infraCommit?: InfraCommit | null; - infraCommitEdge?: InfraCommitEdge | null; + /** The `PlatformProposalsChunk` that was deleted by this mutation. */ + platformProposalsChunk?: PlatformProposalsChunk | null; + platformProposalsChunkEdge?: PlatformProposalsChunkEdge | null; } -export type DeleteInfraCommitPayloadSelect = { +export type DeletePlatformProposalsChunkPayloadSelect = { clientMutationId?: boolean; - infraCommit?: { - select: InfraCommitSelect; + platformProposalsChunk?: { + select: PlatformProposalsChunkSelect; }; - infraCommitEdge?: { - select: InfraCommitEdgeSelect; + platformProposalsChunkEdge?: { + select: PlatformProposalsChunkEdgeSelect; }; }; -export interface CreateInfraObjectPayload { +export interface CreatePlatformRegistryBindingPayload { clientMutationId?: string | null; - /** The `InfraObject` that was created by this mutation. */ - infraObject?: InfraObject | null; - infraObjectEdge?: InfraObjectEdge | null; + /** The `PlatformRegistryBinding` that was created by this mutation. */ + platformRegistryBinding?: PlatformRegistryBinding | null; + platformRegistryBindingEdge?: PlatformRegistryBindingEdge | null; } -export type CreateInfraObjectPayloadSelect = { +export type CreatePlatformRegistryBindingPayloadSelect = { clientMutationId?: boolean; - infraObject?: { - select: InfraObjectSelect; + platformRegistryBinding?: { + select: PlatformRegistryBindingSelect; }; - infraObjectEdge?: { - select: InfraObjectEdgeSelect; + platformRegistryBindingEdge?: { + select: PlatformRegistryBindingEdgeSelect; }; }; -export interface UpdateInfraObjectPayload { +export interface UpdatePlatformRegistryBindingPayload { clientMutationId?: string | null; - /** The `InfraObject` that was updated by this mutation. */ - infraObject?: InfraObject | null; - infraObjectEdge?: InfraObjectEdge | null; + /** The `PlatformRegistryBinding` that was updated by this mutation. */ + platformRegistryBinding?: PlatformRegistryBinding | null; + platformRegistryBindingEdge?: PlatformRegistryBindingEdge | null; } -export type UpdateInfraObjectPayloadSelect = { +export type UpdatePlatformRegistryBindingPayloadSelect = { clientMutationId?: boolean; - infraObject?: { - select: InfraObjectSelect; + platformRegistryBinding?: { + select: PlatformRegistryBindingSelect; }; - infraObjectEdge?: { - select: InfraObjectEdgeSelect; + platformRegistryBindingEdge?: { + select: PlatformRegistryBindingEdgeSelect; }; }; -export interface DeleteInfraObjectPayload { +export interface DeletePlatformRegistryBindingPayload { clientMutationId?: string | null; - /** The `InfraObject` that was deleted by this mutation. */ - infraObject?: InfraObject | null; - infraObjectEdge?: InfraObjectEdge | null; + /** The `PlatformRegistryBinding` that was deleted by this mutation. */ + platformRegistryBinding?: PlatformRegistryBinding | null; + platformRegistryBindingEdge?: PlatformRegistryBindingEdge | null; } -export type DeleteInfraObjectPayloadSelect = { +export type DeletePlatformRegistryBindingPayloadSelect = { clientMutationId?: boolean; - infraObject?: { - select: InfraObjectSelect; + platformRegistryBinding?: { + select: PlatformRegistryBindingSelect; }; - infraObjectEdge?: { - select: InfraObjectEdgeSelect; + platformRegistryBindingEdge?: { + select: PlatformRegistryBindingEdgeSelect; }; }; -export interface CreateInfraRefPayload { +export interface CreatePlatformRegistryPayload { clientMutationId?: string | null; - /** The `InfraRef` that was created by this mutation. */ - infraRef?: InfraRef | null; - infraRefEdge?: InfraRefEdge | null; + /** The `PlatformRegistry` that was created by this mutation. */ + platformRegistry?: PlatformRegistry | null; + platformRegistryEdge?: PlatformRegistryEdge | null; } -export type CreateInfraRefPayloadSelect = { +export type CreatePlatformRegistryPayloadSelect = { clientMutationId?: boolean; - infraRef?: { - select: InfraRefSelect; + platformRegistry?: { + select: PlatformRegistrySelect; }; - infraRefEdge?: { - select: InfraRefEdgeSelect; + platformRegistryEdge?: { + select: PlatformRegistryEdgeSelect; }; }; -export interface UpdateInfraRefPayload { +export interface UpdatePlatformRegistryPayload { clientMutationId?: string | null; - /** The `InfraRef` that was updated by this mutation. */ - infraRef?: InfraRef | null; - infraRefEdge?: InfraRefEdge | null; + /** The `PlatformRegistry` that was updated by this mutation. */ + platformRegistry?: PlatformRegistry | null; + platformRegistryEdge?: PlatformRegistryEdge | null; } -export type UpdateInfraRefPayloadSelect = { +export type UpdatePlatformRegistryPayloadSelect = { clientMutationId?: boolean; - infraRef?: { - select: InfraRefSelect; + platformRegistry?: { + select: PlatformRegistrySelect; }; - infraRefEdge?: { - select: InfraRefEdgeSelect; + platformRegistryEdge?: { + select: PlatformRegistryEdgeSelect; }; }; -export interface DeleteInfraRefPayload { +export interface DeletePlatformRegistryPayload { clientMutationId?: string | null; - /** The `InfraRef` that was deleted by this mutation. */ - infraRef?: InfraRef | null; - infraRefEdge?: InfraRefEdge | null; + /** The `PlatformRegistry` that was deleted by this mutation. */ + platformRegistry?: PlatformRegistry | null; + platformRegistryEdge?: PlatformRegistryEdge | null; } -export type DeleteInfraRefPayloadSelect = { +export type DeletePlatformRegistryPayloadSelect = { clientMutationId?: boolean; - infraRef?: { - select: InfraRefSelect; + platformRegistry?: { + select: PlatformRegistrySelect; }; - infraRefEdge?: { - select: InfraRefEdgeSelect; + platformRegistryEdge?: { + select: PlatformRegistryEdgeSelect; }; }; -export interface CreateInfraStorePayload { +export interface CreatePlatformRegistryGrantPayload { clientMutationId?: string | null; - /** The `InfraStore` that was created by this mutation. */ - infraStore?: InfraStore | null; - infraStoreEdge?: InfraStoreEdge | null; + /** The `PlatformRegistryGrant` that was created by this mutation. */ + platformRegistryGrant?: PlatformRegistryGrant | null; + platformRegistryGrantEdge?: PlatformRegistryGrantEdge | null; } -export type CreateInfraStorePayloadSelect = { +export type CreatePlatformRegistryGrantPayloadSelect = { clientMutationId?: boolean; - infraStore?: { - select: InfraStoreSelect; + platformRegistryGrant?: { + select: PlatformRegistryGrantSelect; }; - infraStoreEdge?: { - select: InfraStoreEdgeSelect; + platformRegistryGrantEdge?: { + select: PlatformRegistryGrantEdgeSelect; }; }; -export interface UpdateInfraStorePayload { +export interface UpdatePlatformRegistryGrantPayload { clientMutationId?: string | null; - /** The `InfraStore` that was updated by this mutation. */ - infraStore?: InfraStore | null; - infraStoreEdge?: InfraStoreEdge | null; + /** The `PlatformRegistryGrant` that was updated by this mutation. */ + platformRegistryGrant?: PlatformRegistryGrant | null; + platformRegistryGrantEdge?: PlatformRegistryGrantEdge | null; } -export type UpdateInfraStorePayloadSelect = { +export type UpdatePlatformRegistryGrantPayloadSelect = { clientMutationId?: boolean; - infraStore?: { - select: InfraStoreSelect; + platformRegistryGrant?: { + select: PlatformRegistryGrantSelect; }; - infraStoreEdge?: { - select: InfraStoreEdgeSelect; + platformRegistryGrantEdge?: { + select: PlatformRegistryGrantEdgeSelect; }; }; -export interface DeleteInfraStorePayload { +export interface DeletePlatformRegistryGrantPayload { clientMutationId?: string | null; - /** The `InfraStore` that was deleted by this mutation. */ - infraStore?: InfraStore | null; - infraStoreEdge?: InfraStoreEdge | null; + /** The `PlatformRegistryGrant` that was deleted by this mutation. */ + platformRegistryGrant?: PlatformRegistryGrant | null; + platformRegistryGrantEdge?: PlatformRegistryGrantEdge | null; } -export type DeleteInfraStorePayloadSelect = { +export type DeletePlatformRegistryGrantPayloadSelect = { clientMutationId?: boolean; - infraStore?: { - select: InfraStoreSelect; + platformRegistryGrant?: { + select: PlatformRegistryGrantSelect; }; - infraStoreEdge?: { - select: InfraStoreEdgeSelect; + platformRegistryGrantEdge?: { + select: PlatformRegistryGrantEdgeSelect; }; }; -export interface CreateIntegrationProviderPayload { +export interface CreatePlatformRepositoryPayload { clientMutationId?: string | null; - /** The `IntegrationProvider` that was created by this mutation. */ - integrationProvider?: IntegrationProvider | null; - integrationProviderEdge?: IntegrationProviderEdge | null; + /** The `PlatformRepository` that was created by this mutation. */ + platformRepository?: PlatformRepository | null; + platformRepositoryEdge?: PlatformRepositoryEdge | null; } -export type CreateIntegrationProviderPayloadSelect = { +export type CreatePlatformRepositoryPayloadSelect = { clientMutationId?: boolean; - integrationProvider?: { - select: IntegrationProviderSelect; + platformRepository?: { + select: PlatformRepositorySelect; }; - integrationProviderEdge?: { - select: IntegrationProviderEdgeSelect; + platformRepositoryEdge?: { + select: PlatformRepositoryEdgeSelect; }; }; -export interface UpdateIntegrationProviderPayload { +export interface UpdatePlatformRepositoryPayload { clientMutationId?: string | null; - /** The `IntegrationProvider` that was updated by this mutation. */ - integrationProvider?: IntegrationProvider | null; - integrationProviderEdge?: IntegrationProviderEdge | null; + /** The `PlatformRepository` that was updated by this mutation. */ + platformRepository?: PlatformRepository | null; + platformRepositoryEdge?: PlatformRepositoryEdge | null; } -export type UpdateIntegrationProviderPayloadSelect = { +export type UpdatePlatformRepositoryPayloadSelect = { clientMutationId?: boolean; - integrationProvider?: { - select: IntegrationProviderSelect; + platformRepository?: { + select: PlatformRepositorySelect; }; - integrationProviderEdge?: { - select: IntegrationProviderEdgeSelect; + platformRepositoryEdge?: { + select: PlatformRepositoryEdgeSelect; }; }; -export interface DeleteIntegrationProviderPayload { +export interface DeletePlatformRepositoryPayload { clientMutationId?: string | null; - /** The `IntegrationProvider` that was deleted by this mutation. */ - integrationProvider?: IntegrationProvider | null; - integrationProviderEdge?: IntegrationProviderEdge | null; + /** The `PlatformRepository` that was deleted by this mutation. */ + platformRepository?: PlatformRepository | null; + platformRepositoryEdge?: PlatformRepositoryEdge | null; } -export type DeleteIntegrationProviderPayloadSelect = { +export type DeletePlatformRepositoryPayloadSelect = { clientMutationId?: boolean; - integrationProvider?: { - select: IntegrationProviderSelect; + platformRepository?: { + select: PlatformRepositorySelect; }; - integrationProviderEdge?: { - select: IntegrationProviderEdgeSelect; + platformRepositoryEdge?: { + select: PlatformRepositoryEdgeSelect; }; }; -export interface CreateNamespacePayload { +export interface CreatePlatformRepositoryEventPayload { clientMutationId?: string | null; - /** The `Namespace` that was created by this mutation. */ - namespace?: Namespace | null; - namespaceEdge?: NamespaceEdge | null; + /** The `PlatformRepositoryEvent` that was created by this mutation. */ + platformRepositoryEvent?: PlatformRepositoryEvent | null; + platformRepositoryEventEdge?: PlatformRepositoryEventEdge | null; } -export type CreateNamespacePayloadSelect = { +export type CreatePlatformRepositoryEventPayloadSelect = { clientMutationId?: boolean; - namespace?: { - select: NamespaceSelect; + platformRepositoryEvent?: { + select: PlatformRepositoryEventSelect; }; - namespaceEdge?: { - select: NamespaceEdgeSelect; + platformRepositoryEventEdge?: { + select: PlatformRepositoryEventEdgeSelect; }; }; -export interface UpdateNamespacePayload { +export interface UpdatePlatformRepositoryEventPayload { clientMutationId?: string | null; - /** The `Namespace` that was updated by this mutation. */ - namespace?: Namespace | null; - namespaceEdge?: NamespaceEdge | null; + /** The `PlatformRepositoryEvent` that was updated by this mutation. */ + platformRepositoryEvent?: PlatformRepositoryEvent | null; + platformRepositoryEventEdge?: PlatformRepositoryEventEdge | null; } -export type UpdateNamespacePayloadSelect = { +export type UpdatePlatformRepositoryEventPayloadSelect = { clientMutationId?: boolean; - namespace?: { - select: NamespaceSelect; + platformRepositoryEvent?: { + select: PlatformRepositoryEventSelect; }; - namespaceEdge?: { - select: NamespaceEdgeSelect; + platformRepositoryEventEdge?: { + select: PlatformRepositoryEventEdgeSelect; }; }; -export interface DeleteNamespacePayload { +export interface DeletePlatformRepositoryEventPayload { clientMutationId?: string | null; - /** The `Namespace` that was deleted by this mutation. */ - namespace?: Namespace | null; - namespaceEdge?: NamespaceEdge | null; + /** The `PlatformRepositoryEvent` that was deleted by this mutation. */ + platformRepositoryEvent?: PlatformRepositoryEvent | null; + platformRepositoryEventEdge?: PlatformRepositoryEventEdge | null; } -export type DeleteNamespacePayloadSelect = { +export type DeletePlatformRepositoryEventPayloadSelect = { clientMutationId?: boolean; - namespace?: { - select: NamespaceSelect; + platformRepositoryEvent?: { + select: PlatformRepositoryEventSelect; }; - namespaceEdge?: { - select: NamespaceEdgeSelect; + platformRepositoryEventEdge?: { + select: PlatformRepositoryEventEdgeSelect; }; }; -export interface CreateNamespaceEventPayload { +export interface CreatePlatformRepositoryRequiredCheckPayload { clientMutationId?: string | null; - /** The `NamespaceEvent` that was created by this mutation. */ - namespaceEvent?: NamespaceEvent | null; - namespaceEventEdge?: NamespaceEventEdge | null; + /** The `PlatformRepositoryRequiredCheck` that was created by this mutation. */ + platformRepositoryRequiredCheck?: PlatformRepositoryRequiredCheck | null; + platformRepositoryRequiredCheckEdge?: PlatformRepositoryRequiredCheckEdge | null; } -export type CreateNamespaceEventPayloadSelect = { +export type CreatePlatformRepositoryRequiredCheckPayloadSelect = { clientMutationId?: boolean; - namespaceEvent?: { - select: NamespaceEventSelect; + platformRepositoryRequiredCheck?: { + select: PlatformRepositoryRequiredCheckSelect; }; - namespaceEventEdge?: { - select: NamespaceEventEdgeSelect; + platformRepositoryRequiredCheckEdge?: { + select: PlatformRepositoryRequiredCheckEdgeSelect; }; }; -export interface UpdateNamespaceEventPayload { +export interface UpdatePlatformRepositoryRequiredCheckPayload { clientMutationId?: string | null; - /** The `NamespaceEvent` that was updated by this mutation. */ - namespaceEvent?: NamespaceEvent | null; - namespaceEventEdge?: NamespaceEventEdge | null; + /** The `PlatformRepositoryRequiredCheck` that was updated by this mutation. */ + platformRepositoryRequiredCheck?: PlatformRepositoryRequiredCheck | null; + platformRepositoryRequiredCheckEdge?: PlatformRepositoryRequiredCheckEdge | null; } -export type UpdateNamespaceEventPayloadSelect = { +export type UpdatePlatformRepositoryRequiredCheckPayloadSelect = { clientMutationId?: boolean; - namespaceEvent?: { - select: NamespaceEventSelect; + platformRepositoryRequiredCheck?: { + select: PlatformRepositoryRequiredCheckSelect; }; - namespaceEventEdge?: { - select: NamespaceEventEdgeSelect; + platformRepositoryRequiredCheckEdge?: { + select: PlatformRepositoryRequiredCheckEdgeSelect; }; }; -export interface DeleteNamespaceEventPayload { +export interface DeletePlatformRepositoryRequiredCheckPayload { clientMutationId?: string | null; - /** The `NamespaceEvent` that was deleted by this mutation. */ - namespaceEvent?: NamespaceEvent | null; - namespaceEventEdge?: NamespaceEventEdge | null; + /** The `PlatformRepositoryRequiredCheck` that was deleted by this mutation. */ + platformRepositoryRequiredCheck?: PlatformRepositoryRequiredCheck | null; + platformRepositoryRequiredCheckEdge?: PlatformRepositoryRequiredCheckEdge | null; } -export type DeleteNamespaceEventPayloadSelect = { +export type DeletePlatformRepositoryRequiredCheckPayloadSelect = { clientMutationId?: boolean; - namespaceEvent?: { - select: NamespaceEventSelect; + platformRepositoryRequiredCheck?: { + select: PlatformRepositoryRequiredCheckSelect; }; - namespaceEventEdge?: { - select: NamespaceEventEdgeSelect; + platformRepositoryRequiredCheckEdge?: { + select: PlatformRepositoryRequiredCheckEdgeSelect; }; }; -export interface CreatePlatformFunctionApiBindingPayload { +export interface CreatePlatformRepositoryWorkflowPayload { clientMutationId?: string | null; - /** The `PlatformFunctionApiBinding` that was created by this mutation. */ - platformFunctionApiBinding?: PlatformFunctionApiBinding | null; - platformFunctionApiBindingEdge?: PlatformFunctionApiBindingEdge | null; + /** The `PlatformRepositoryWorkflow` that was created by this mutation. */ + platformRepositoryWorkflow?: PlatformRepositoryWorkflow | null; + platformRepositoryWorkflowEdge?: PlatformRepositoryWorkflowEdge | null; } -export type CreatePlatformFunctionApiBindingPayloadSelect = { +export type CreatePlatformRepositoryWorkflowPayloadSelect = { clientMutationId?: boolean; - platformFunctionApiBinding?: { - select: PlatformFunctionApiBindingSelect; + platformRepositoryWorkflow?: { + select: PlatformRepositoryWorkflowSelect; }; - platformFunctionApiBindingEdge?: { - select: PlatformFunctionApiBindingEdgeSelect; + platformRepositoryWorkflowEdge?: { + select: PlatformRepositoryWorkflowEdgeSelect; }; }; -export interface UpdatePlatformFunctionApiBindingPayload { +export interface UpdatePlatformRepositoryWorkflowPayload { clientMutationId?: string | null; - /** The `PlatformFunctionApiBinding` that was updated by this mutation. */ - platformFunctionApiBinding?: PlatformFunctionApiBinding | null; - platformFunctionApiBindingEdge?: PlatformFunctionApiBindingEdge | null; + /** The `PlatformRepositoryWorkflow` that was updated by this mutation. */ + platformRepositoryWorkflow?: PlatformRepositoryWorkflow | null; + platformRepositoryWorkflowEdge?: PlatformRepositoryWorkflowEdge | null; } -export type UpdatePlatformFunctionApiBindingPayloadSelect = { +export type UpdatePlatformRepositoryWorkflowPayloadSelect = { clientMutationId?: boolean; - platformFunctionApiBinding?: { - select: PlatformFunctionApiBindingSelect; + platformRepositoryWorkflow?: { + select: PlatformRepositoryWorkflowSelect; }; - platformFunctionApiBindingEdge?: { - select: PlatformFunctionApiBindingEdgeSelect; + platformRepositoryWorkflowEdge?: { + select: PlatformRepositoryWorkflowEdgeSelect; }; }; -export interface DeletePlatformFunctionApiBindingPayload { +export interface DeletePlatformRepositoryWorkflowPayload { clientMutationId?: string | null; - /** The `PlatformFunctionApiBinding` that was deleted by this mutation. */ - platformFunctionApiBinding?: PlatformFunctionApiBinding | null; - platformFunctionApiBindingEdge?: PlatformFunctionApiBindingEdge | null; + /** The `PlatformRepositoryWorkflow` that was deleted by this mutation. */ + platformRepositoryWorkflow?: PlatformRepositoryWorkflow | null; + platformRepositoryWorkflowEdge?: PlatformRepositoryWorkflowEdge | null; } -export type DeletePlatformFunctionApiBindingPayloadSelect = { +export type DeletePlatformRepositoryWorkflowPayloadSelect = { clientMutationId?: boolean; - platformFunctionApiBinding?: { - select: PlatformFunctionApiBindingSelect; + platformRepositoryWorkflow?: { + select: PlatformRepositoryWorkflowSelect; }; - platformFunctionApiBindingEdge?: { - select: PlatformFunctionApiBindingEdgeSelect; + platformRepositoryWorkflowEdge?: { + select: PlatformRepositoryWorkflowEdgeSelect; }; }; -export interface CreatePlatformFunctionCapabilityBindingPayload { +export interface CreatePlatformResourcePayload { clientMutationId?: string | null; - /** The `PlatformFunctionCapabilityBinding` that was created by this mutation. */ - platformFunctionCapabilityBinding?: PlatformFunctionCapabilityBinding | null; - platformFunctionCapabilityBindingEdge?: PlatformFunctionCapabilityBindingEdge | null; + /** The `PlatformResource` that was created by this mutation. */ + platformResource?: PlatformResource | null; + platformResourceEdge?: PlatformResourceEdge | null; } -export type CreatePlatformFunctionCapabilityBindingPayloadSelect = { +export type CreatePlatformResourcePayloadSelect = { clientMutationId?: boolean; - platformFunctionCapabilityBinding?: { - select: PlatformFunctionCapabilityBindingSelect; + platformResource?: { + select: PlatformResourceSelect; }; - platformFunctionCapabilityBindingEdge?: { - select: PlatformFunctionCapabilityBindingEdgeSelect; + platformResourceEdge?: { + select: PlatformResourceEdgeSelect; }; }; -export interface UpdatePlatformFunctionCapabilityBindingPayload { +export interface UpdatePlatformResourcePayload { clientMutationId?: string | null; - /** The `PlatformFunctionCapabilityBinding` that was updated by this mutation. */ - platformFunctionCapabilityBinding?: PlatformFunctionCapabilityBinding | null; - platformFunctionCapabilityBindingEdge?: PlatformFunctionCapabilityBindingEdge | null; + /** The `PlatformResource` that was updated by this mutation. */ + platformResource?: PlatformResource | null; + platformResourceEdge?: PlatformResourceEdge | null; } -export type UpdatePlatformFunctionCapabilityBindingPayloadSelect = { +export type UpdatePlatformResourcePayloadSelect = { clientMutationId?: boolean; - platformFunctionCapabilityBinding?: { - select: PlatformFunctionCapabilityBindingSelect; + platformResource?: { + select: PlatformResourceSelect; }; - platformFunctionCapabilityBindingEdge?: { - select: PlatformFunctionCapabilityBindingEdgeSelect; + platformResourceEdge?: { + select: PlatformResourceEdgeSelect; }; }; -export interface DeletePlatformFunctionCapabilityBindingPayload { +export interface DeletePlatformResourcePayload { clientMutationId?: string | null; - /** The `PlatformFunctionCapabilityBinding` that was deleted by this mutation. */ - platformFunctionCapabilityBinding?: PlatformFunctionCapabilityBinding | null; - platformFunctionCapabilityBindingEdge?: PlatformFunctionCapabilityBindingEdge | null; + /** The `PlatformResource` that was deleted by this mutation. */ + platformResource?: PlatformResource | null; + platformResourceEdge?: PlatformResourceEdge | null; } -export type DeletePlatformFunctionCapabilityBindingPayloadSelect = { +export type DeletePlatformResourcePayloadSelect = { clientMutationId?: boolean; - platformFunctionCapabilityBinding?: { - select: PlatformFunctionCapabilityBindingSelect; + platformResource?: { + select: PlatformResourceSelect; }; - platformFunctionCapabilityBindingEdge?: { - select: PlatformFunctionCapabilityBindingEdgeSelect; + platformResourceEdge?: { + select: PlatformResourceEdgeSelect; }; }; -export interface CreatePlatformFunctionDefinitionPayload { +export interface CreatePlatformResourceDefinitionPayload { clientMutationId?: string | null; - /** The `PlatformFunctionDefinition` that was created by this mutation. */ - platformFunctionDefinition?: PlatformFunctionDefinition | null; - platformFunctionDefinitionEdge?: PlatformFunctionDefinitionEdge | null; + /** The `PlatformResourceDefinition` that was created by this mutation. */ + platformResourceDefinition?: PlatformResourceDefinition | null; + platformResourceDefinitionEdge?: PlatformResourceDefinitionEdge | null; } -export type CreatePlatformFunctionDefinitionPayloadSelect = { +export type CreatePlatformResourceDefinitionPayloadSelect = { clientMutationId?: boolean; - platformFunctionDefinition?: { - select: PlatformFunctionDefinitionSelect; + platformResourceDefinition?: { + select: PlatformResourceDefinitionSelect; }; - platformFunctionDefinitionEdge?: { - select: PlatformFunctionDefinitionEdgeSelect; + platformResourceDefinitionEdge?: { + select: PlatformResourceDefinitionEdgeSelect; }; }; -export interface UpdatePlatformFunctionDefinitionPayload { +export interface UpdatePlatformResourceDefinitionPayload { clientMutationId?: string | null; - /** The `PlatformFunctionDefinition` that was updated by this mutation. */ - platformFunctionDefinition?: PlatformFunctionDefinition | null; - platformFunctionDefinitionEdge?: PlatformFunctionDefinitionEdge | null; + /** The `PlatformResourceDefinition` that was updated by this mutation. */ + platformResourceDefinition?: PlatformResourceDefinition | null; + platformResourceDefinitionEdge?: PlatformResourceDefinitionEdge | null; } -export type UpdatePlatformFunctionDefinitionPayloadSelect = { +export type UpdatePlatformResourceDefinitionPayloadSelect = { clientMutationId?: boolean; - platformFunctionDefinition?: { - select: PlatformFunctionDefinitionSelect; + platformResourceDefinition?: { + select: PlatformResourceDefinitionSelect; }; - platformFunctionDefinitionEdge?: { - select: PlatformFunctionDefinitionEdgeSelect; + platformResourceDefinitionEdge?: { + select: PlatformResourceDefinitionEdgeSelect; }; }; -export interface DeletePlatformFunctionDefinitionPayload { +export interface DeletePlatformResourceDefinitionPayload { clientMutationId?: string | null; - /** The `PlatformFunctionDefinition` that was deleted by this mutation. */ - platformFunctionDefinition?: PlatformFunctionDefinition | null; - platformFunctionDefinitionEdge?: PlatformFunctionDefinitionEdge | null; + /** The `PlatformResourceDefinition` that was deleted by this mutation. */ + platformResourceDefinition?: PlatformResourceDefinition | null; + platformResourceDefinitionEdge?: PlatformResourceDefinitionEdge | null; } -export type DeletePlatformFunctionDefinitionPayloadSelect = { +export type DeletePlatformResourceDefinitionPayloadSelect = { clientMutationId?: boolean; - platformFunctionDefinition?: { - select: PlatformFunctionDefinitionSelect; + platformResourceDefinition?: { + select: PlatformResourceDefinitionSelect; }; - platformFunctionDefinitionEdge?: { - select: PlatformFunctionDefinitionEdgeSelect; + platformResourceDefinitionEdge?: { + select: PlatformResourceDefinitionEdgeSelect; }; }; -export interface CreatePlatformFunctionDeploymentPayload { +export interface CreatePlatformResourceEventPayload { clientMutationId?: string | null; - /** The `PlatformFunctionDeployment` that was created by this mutation. */ - platformFunctionDeployment?: PlatformFunctionDeployment | null; - platformFunctionDeploymentEdge?: PlatformFunctionDeploymentEdge | null; + /** The `PlatformResourceEvent` that was created by this mutation. */ + platformResourceEvent?: PlatformResourceEvent | null; + platformResourceEventEdge?: PlatformResourceEventEdge | null; } -export type CreatePlatformFunctionDeploymentPayloadSelect = { +export type CreatePlatformResourceEventPayloadSelect = { clientMutationId?: boolean; - platformFunctionDeployment?: { - select: PlatformFunctionDeploymentSelect; + platformResourceEvent?: { + select: PlatformResourceEventSelect; }; - platformFunctionDeploymentEdge?: { - select: PlatformFunctionDeploymentEdgeSelect; + platformResourceEventEdge?: { + select: PlatformResourceEventEdgeSelect; }; }; -export interface UpdatePlatformFunctionDeploymentPayload { +export interface UpdatePlatformResourceEventPayload { clientMutationId?: string | null; - /** The `PlatformFunctionDeployment` that was updated by this mutation. */ - platformFunctionDeployment?: PlatformFunctionDeployment | null; - platformFunctionDeploymentEdge?: PlatformFunctionDeploymentEdge | null; + /** The `PlatformResourceEvent` that was updated by this mutation. */ + platformResourceEvent?: PlatformResourceEvent | null; + platformResourceEventEdge?: PlatformResourceEventEdge | null; } -export type UpdatePlatformFunctionDeploymentPayloadSelect = { +export type UpdatePlatformResourceEventPayloadSelect = { clientMutationId?: boolean; - platformFunctionDeployment?: { - select: PlatformFunctionDeploymentSelect; + platformResourceEvent?: { + select: PlatformResourceEventSelect; }; - platformFunctionDeploymentEdge?: { - select: PlatformFunctionDeploymentEdgeSelect; + platformResourceEventEdge?: { + select: PlatformResourceEventEdgeSelect; }; }; -export interface DeletePlatformFunctionDeploymentPayload { +export interface DeletePlatformResourceEventPayload { clientMutationId?: string | null; - /** The `PlatformFunctionDeployment` that was deleted by this mutation. */ - platformFunctionDeployment?: PlatformFunctionDeployment | null; - platformFunctionDeploymentEdge?: PlatformFunctionDeploymentEdge | null; + /** The `PlatformResourceEvent` that was deleted by this mutation. */ + platformResourceEvent?: PlatformResourceEvent | null; + platformResourceEventEdge?: PlatformResourceEventEdge | null; } -export type DeletePlatformFunctionDeploymentPayloadSelect = { +export type DeletePlatformResourceEventPayloadSelect = { clientMutationId?: boolean; - platformFunctionDeployment?: { - select: PlatformFunctionDeploymentSelect; + platformResourceEvent?: { + select: PlatformResourceEventSelect; }; - platformFunctionDeploymentEdge?: { - select: PlatformFunctionDeploymentEdgeSelect; + platformResourceEventEdge?: { + select: PlatformResourceEventEdgeSelect; }; }; -export interface CreatePlatformFunctionDeploymentEventPayload { +export interface CreatePlatformResourceInstallationPayload { clientMutationId?: string | null; - /** The `PlatformFunctionDeploymentEvent` that was created by this mutation. */ - platformFunctionDeploymentEvent?: PlatformFunctionDeploymentEvent | null; - platformFunctionDeploymentEventEdge?: PlatformFunctionDeploymentEventEdge | null; + /** The `PlatformResourceInstallation` that was created by this mutation. */ + platformResourceInstallation?: PlatformResourceInstallation | null; + platformResourceInstallationEdge?: PlatformResourceInstallationEdge | null; } -export type CreatePlatformFunctionDeploymentEventPayloadSelect = { +export type CreatePlatformResourceInstallationPayloadSelect = { clientMutationId?: boolean; - platformFunctionDeploymentEvent?: { - select: PlatformFunctionDeploymentEventSelect; + platformResourceInstallation?: { + select: PlatformResourceInstallationSelect; }; - platformFunctionDeploymentEventEdge?: { - select: PlatformFunctionDeploymentEventEdgeSelect; + platformResourceInstallationEdge?: { + select: PlatformResourceInstallationEdgeSelect; }; }; -export interface UpdatePlatformFunctionDeploymentEventPayload { +export interface UpdatePlatformResourceInstallationPayload { clientMutationId?: string | null; - /** The `PlatformFunctionDeploymentEvent` that was updated by this mutation. */ - platformFunctionDeploymentEvent?: PlatformFunctionDeploymentEvent | null; - platformFunctionDeploymentEventEdge?: PlatformFunctionDeploymentEventEdge | null; + /** The `PlatformResourceInstallation` that was updated by this mutation. */ + platformResourceInstallation?: PlatformResourceInstallation | null; + platformResourceInstallationEdge?: PlatformResourceInstallationEdge | null; } -export type UpdatePlatformFunctionDeploymentEventPayloadSelect = { +export type UpdatePlatformResourceInstallationPayloadSelect = { clientMutationId?: boolean; - platformFunctionDeploymentEvent?: { - select: PlatformFunctionDeploymentEventSelect; + platformResourceInstallation?: { + select: PlatformResourceInstallationSelect; }; - platformFunctionDeploymentEventEdge?: { - select: PlatformFunctionDeploymentEventEdgeSelect; + platformResourceInstallationEdge?: { + select: PlatformResourceInstallationEdgeSelect; }; }; -export interface DeletePlatformFunctionDeploymentEventPayload { +export interface DeletePlatformResourceInstallationPayload { clientMutationId?: string | null; - /** The `PlatformFunctionDeploymentEvent` that was deleted by this mutation. */ - platformFunctionDeploymentEvent?: PlatformFunctionDeploymentEvent | null; - platformFunctionDeploymentEventEdge?: PlatformFunctionDeploymentEventEdge | null; + /** The `PlatformResourceInstallation` that was deleted by this mutation. */ + platformResourceInstallation?: PlatformResourceInstallation | null; + platformResourceInstallationEdge?: PlatformResourceInstallationEdge | null; } -export type DeletePlatformFunctionDeploymentEventPayloadSelect = { +export type DeletePlatformResourceInstallationPayloadSelect = { clientMutationId?: boolean; - platformFunctionDeploymentEvent?: { - select: PlatformFunctionDeploymentEventSelect; + platformResourceInstallation?: { + select: PlatformResourceInstallationSelect; }; - platformFunctionDeploymentEventEdge?: { - select: PlatformFunctionDeploymentEventEdgeSelect; + platformResourceInstallationEdge?: { + select: PlatformResourceInstallationEdgeSelect; }; }; -export interface CreatePlatformFunctionExecutionLogPayload { +export interface CreatePlatformResourceStatusCheckPayload { clientMutationId?: string | null; - /** The `PlatformFunctionExecutionLog` that was created by this mutation. */ - platformFunctionExecutionLog?: PlatformFunctionExecutionLog | null; - platformFunctionExecutionLogEdge?: PlatformFunctionExecutionLogEdge | null; + /** The `PlatformResourceStatusCheck` that was created by this mutation. */ + platformResourceStatusCheck?: PlatformResourceStatusCheck | null; + platformResourceStatusCheckEdge?: PlatformResourceStatusCheckEdge | null; } -export type CreatePlatformFunctionExecutionLogPayloadSelect = { +export type CreatePlatformResourceStatusCheckPayloadSelect = { clientMutationId?: boolean; - platformFunctionExecutionLog?: { - select: PlatformFunctionExecutionLogSelect; + platformResourceStatusCheck?: { + select: PlatformResourceStatusCheckSelect; }; - platformFunctionExecutionLogEdge?: { - select: PlatformFunctionExecutionLogEdgeSelect; + platformResourceStatusCheckEdge?: { + select: PlatformResourceStatusCheckEdgeSelect; }; }; -export interface UpdatePlatformFunctionExecutionLogPayload { +export interface UpdatePlatformResourceStatusCheckPayload { clientMutationId?: string | null; - /** The `PlatformFunctionExecutionLog` that was updated by this mutation. */ - platformFunctionExecutionLog?: PlatformFunctionExecutionLog | null; - platformFunctionExecutionLogEdge?: PlatformFunctionExecutionLogEdge | null; + /** The `PlatformResourceStatusCheck` that was updated by this mutation. */ + platformResourceStatusCheck?: PlatformResourceStatusCheck | null; + platformResourceStatusCheckEdge?: PlatformResourceStatusCheckEdge | null; } -export type UpdatePlatformFunctionExecutionLogPayloadSelect = { +export type UpdatePlatformResourceStatusCheckPayloadSelect = { clientMutationId?: boolean; - platformFunctionExecutionLog?: { - select: PlatformFunctionExecutionLogSelect; + platformResourceStatusCheck?: { + select: PlatformResourceStatusCheckSelect; }; - platformFunctionExecutionLogEdge?: { - select: PlatformFunctionExecutionLogEdgeSelect; + platformResourceStatusCheckEdge?: { + select: PlatformResourceStatusCheckEdgeSelect; }; }; -export interface DeletePlatformFunctionExecutionLogPayload { +export interface DeletePlatformResourceStatusCheckPayload { clientMutationId?: string | null; - /** The `PlatformFunctionExecutionLog` that was deleted by this mutation. */ - platformFunctionExecutionLog?: PlatformFunctionExecutionLog | null; - platformFunctionExecutionLogEdge?: PlatformFunctionExecutionLogEdge | null; + /** The `PlatformResourceStatusCheck` that was deleted by this mutation. */ + platformResourceStatusCheck?: PlatformResourceStatusCheck | null; + platformResourceStatusCheckEdge?: PlatformResourceStatusCheckEdge | null; } -export type DeletePlatformFunctionExecutionLogPayloadSelect = { +export type DeletePlatformResourceStatusCheckPayloadSelect = { clientMutationId?: boolean; - platformFunctionExecutionLog?: { - select: PlatformFunctionExecutionLogSelect; + platformResourceStatusCheck?: { + select: PlatformResourceStatusCheckSelect; }; - platformFunctionExecutionLogEdge?: { - select: PlatformFunctionExecutionLogEdgeSelect; + platformResourceStatusCheckEdge?: { + select: PlatformResourceStatusCheckEdgeSelect; }; }; -export interface CreatePlatformFunctionInvocationAttemptPayload { +export interface CreatePlatformResourceUsageLogPayload { clientMutationId?: string | null; - /** The `PlatformFunctionInvocationAttempt` that was created by this mutation. */ - platformFunctionInvocationAttempt?: PlatformFunctionInvocationAttempt | null; - platformFunctionInvocationAttemptEdge?: PlatformFunctionInvocationAttemptEdge | null; + /** The `PlatformResourceUsageLog` that was created by this mutation. */ + platformResourceUsageLog?: PlatformResourceUsageLog | null; + platformResourceUsageLogEdge?: PlatformResourceUsageLogEdge | null; } -export type CreatePlatformFunctionInvocationAttemptPayloadSelect = { +export type CreatePlatformResourceUsageLogPayloadSelect = { clientMutationId?: boolean; - platformFunctionInvocationAttempt?: { - select: PlatformFunctionInvocationAttemptSelect; + platformResourceUsageLog?: { + select: PlatformResourceUsageLogSelect; }; - platformFunctionInvocationAttemptEdge?: { - select: PlatformFunctionInvocationAttemptEdgeSelect; + platformResourceUsageLogEdge?: { + select: PlatformResourceUsageLogEdgeSelect; }; }; -export interface UpdatePlatformFunctionInvocationAttemptPayload { +export interface UpdatePlatformResourceUsageLogPayload { clientMutationId?: string | null; - /** The `PlatformFunctionInvocationAttempt` that was updated by this mutation. */ - platformFunctionInvocationAttempt?: PlatformFunctionInvocationAttempt | null; - platformFunctionInvocationAttemptEdge?: PlatformFunctionInvocationAttemptEdge | null; + /** The `PlatformResourceUsageLog` that was updated by this mutation. */ + platformResourceUsageLog?: PlatformResourceUsageLog | null; + platformResourceUsageLogEdge?: PlatformResourceUsageLogEdge | null; } -export type UpdatePlatformFunctionInvocationAttemptPayloadSelect = { +export type UpdatePlatformResourceUsageLogPayloadSelect = { clientMutationId?: boolean; - platformFunctionInvocationAttempt?: { - select: PlatformFunctionInvocationAttemptSelect; + platformResourceUsageLog?: { + select: PlatformResourceUsageLogSelect; }; - platformFunctionInvocationAttemptEdge?: { - select: PlatformFunctionInvocationAttemptEdgeSelect; + platformResourceUsageLogEdge?: { + select: PlatformResourceUsageLogEdgeSelect; }; }; -export interface DeletePlatformFunctionInvocationAttemptPayload { +export interface DeletePlatformResourceUsageLogPayload { clientMutationId?: string | null; - /** The `PlatformFunctionInvocationAttempt` that was deleted by this mutation. */ - platformFunctionInvocationAttempt?: PlatformFunctionInvocationAttempt | null; - platformFunctionInvocationAttemptEdge?: PlatformFunctionInvocationAttemptEdge | null; + /** The `PlatformResourceUsageLog` that was deleted by this mutation. */ + platformResourceUsageLog?: PlatformResourceUsageLog | null; + platformResourceUsageLogEdge?: PlatformResourceUsageLogEdge | null; } -export type DeletePlatformFunctionInvocationAttemptPayloadSelect = { +export type DeletePlatformResourceUsageLogPayloadSelect = { clientMutationId?: boolean; - platformFunctionInvocationAttempt?: { - select: PlatformFunctionInvocationAttemptSelect; + platformResourceUsageLog?: { + select: PlatformResourceUsageLogSelect; }; - platformFunctionInvocationAttemptEdge?: { - select: PlatformFunctionInvocationAttemptEdgeSelect; + platformResourceUsageLogEdge?: { + select: PlatformResourceUsageLogEdgeSelect; }; }; -export interface CreatePlatformFunctionInvocationPayload { +export interface CreatePlatformResourceUsageSummaryPayload { clientMutationId?: string | null; - /** The `PlatformFunctionInvocation` that was created by this mutation. */ - platformFunctionInvocation?: PlatformFunctionInvocation | null; - platformFunctionInvocationEdge?: PlatformFunctionInvocationEdge | null; + /** The `PlatformResourceUsageSummary` that was created by this mutation. */ + platformResourceUsageSummary?: PlatformResourceUsageSummary | null; + platformResourceUsageSummaryEdge?: PlatformResourceUsageSummaryEdge | null; } -export type CreatePlatformFunctionInvocationPayloadSelect = { +export type CreatePlatformResourceUsageSummaryPayloadSelect = { clientMutationId?: boolean; - platformFunctionInvocation?: { - select: PlatformFunctionInvocationSelect; + platformResourceUsageSummary?: { + select: PlatformResourceUsageSummarySelect; }; - platformFunctionInvocationEdge?: { - select: PlatformFunctionInvocationEdgeSelect; + platformResourceUsageSummaryEdge?: { + select: PlatformResourceUsageSummaryEdgeSelect; }; }; -export interface UpdatePlatformFunctionInvocationPayload { +export interface UpdatePlatformResourceUsageSummaryPayload { clientMutationId?: string | null; - /** The `PlatformFunctionInvocation` that was updated by this mutation. */ - platformFunctionInvocation?: PlatformFunctionInvocation | null; - platformFunctionInvocationEdge?: PlatformFunctionInvocationEdge | null; + /** The `PlatformResourceUsageSummary` that was updated by this mutation. */ + platformResourceUsageSummary?: PlatformResourceUsageSummary | null; + platformResourceUsageSummaryEdge?: PlatformResourceUsageSummaryEdge | null; } -export type UpdatePlatformFunctionInvocationPayloadSelect = { +export type UpdatePlatformResourceUsageSummaryPayloadSelect = { clientMutationId?: boolean; - platformFunctionInvocation?: { - select: PlatformFunctionInvocationSelect; + platformResourceUsageSummary?: { + select: PlatformResourceUsageSummarySelect; }; - platformFunctionInvocationEdge?: { - select: PlatformFunctionInvocationEdgeSelect; + platformResourceUsageSummaryEdge?: { + select: PlatformResourceUsageSummaryEdgeSelect; }; }; -export interface DeletePlatformFunctionInvocationPayload { +export interface DeletePlatformResourceUsageSummaryPayload { clientMutationId?: string | null; - /** The `PlatformFunctionInvocation` that was deleted by this mutation. */ - platformFunctionInvocation?: PlatformFunctionInvocation | null; - platformFunctionInvocationEdge?: PlatformFunctionInvocationEdge | null; + /** The `PlatformResourceUsageSummary` that was deleted by this mutation. */ + platformResourceUsageSummary?: PlatformResourceUsageSummary | null; + platformResourceUsageSummaryEdge?: PlatformResourceUsageSummaryEdge | null; } -export type DeletePlatformFunctionInvocationPayloadSelect = { +export type DeletePlatformResourceUsageSummaryPayloadSelect = { clientMutationId?: boolean; - platformFunctionInvocation?: { - select: PlatformFunctionInvocationSelect; + platformResourceUsageSummary?: { + select: PlatformResourceUsageSummarySelect; }; - platformFunctionInvocationEdge?: { - select: PlatformFunctionInvocationEdgeSelect; + platformResourceUsageSummaryEdge?: { + select: PlatformResourceUsageSummaryEdgeSelect; }; }; -export interface CreatePlatformInfraCommitPayload { +export interface CreatePlatformWebhookEndpointPayload { clientMutationId?: string | null; - /** The `PlatformInfraCommit` that was created by this mutation. */ - platformInfraCommit?: PlatformInfraCommit | null; - platformInfraCommitEdge?: PlatformInfraCommitEdge | null; + /** The `PlatformWebhookEndpoint` that was created by this mutation. */ + platformWebhookEndpoint?: PlatformWebhookEndpoint | null; + platformWebhookEndpointEdge?: PlatformWebhookEndpointEdge | null; } -export type CreatePlatformInfraCommitPayloadSelect = { +export type CreatePlatformWebhookEndpointPayloadSelect = { clientMutationId?: boolean; - platformInfraCommit?: { - select: PlatformInfraCommitSelect; + platformWebhookEndpoint?: { + select: PlatformWebhookEndpointSelect; }; - platformInfraCommitEdge?: { - select: PlatformInfraCommitEdgeSelect; + platformWebhookEndpointEdge?: { + select: PlatformWebhookEndpointEdgeSelect; }; }; -export interface UpdatePlatformInfraCommitPayload { +export interface UpdatePlatformWebhookEndpointPayload { clientMutationId?: string | null; - /** The `PlatformInfraCommit` that was updated by this mutation. */ - platformInfraCommit?: PlatformInfraCommit | null; - platformInfraCommitEdge?: PlatformInfraCommitEdge | null; + /** The `PlatformWebhookEndpoint` that was updated by this mutation. */ + platformWebhookEndpoint?: PlatformWebhookEndpoint | null; + platformWebhookEndpointEdge?: PlatformWebhookEndpointEdge | null; } -export type UpdatePlatformInfraCommitPayloadSelect = { +export type UpdatePlatformWebhookEndpointPayloadSelect = { clientMutationId?: boolean; - platformInfraCommit?: { - select: PlatformInfraCommitSelect; + platformWebhookEndpoint?: { + select: PlatformWebhookEndpointSelect; }; - platformInfraCommitEdge?: { - select: PlatformInfraCommitEdgeSelect; + platformWebhookEndpointEdge?: { + select: PlatformWebhookEndpointEdgeSelect; }; }; -export interface DeletePlatformInfraCommitPayload { +export interface DeletePlatformWebhookEndpointPayload { clientMutationId?: string | null; - /** The `PlatformInfraCommit` that was deleted by this mutation. */ - platformInfraCommit?: PlatformInfraCommit | null; - platformInfraCommitEdge?: PlatformInfraCommitEdge | null; + /** The `PlatformWebhookEndpoint` that was deleted by this mutation. */ + platformWebhookEndpoint?: PlatformWebhookEndpoint | null; + platformWebhookEndpointEdge?: PlatformWebhookEndpointEdge | null; } -export type DeletePlatformInfraCommitPayloadSelect = { +export type DeletePlatformWebhookEndpointPayloadSelect = { clientMutationId?: boolean; - platformInfraCommit?: { - select: PlatformInfraCommitSelect; + platformWebhookEndpoint?: { + select: PlatformWebhookEndpointSelect; }; - platformInfraCommitEdge?: { - select: PlatformInfraCommitEdgeSelect; + platformWebhookEndpointEdge?: { + select: PlatformWebhookEndpointEdgeSelect; }; }; -export interface CreatePlatformInfraObjectPayload { +export interface CreatePlatformWebhookEventPayload { clientMutationId?: string | null; - /** The `PlatformInfraObject` that was created by this mutation. */ - platformInfraObject?: PlatformInfraObject | null; - platformInfraObjectEdge?: PlatformInfraObjectEdge | null; + /** The `PlatformWebhookEvent` that was created by this mutation. */ + platformWebhookEvent?: PlatformWebhookEvent | null; + platformWebhookEventEdge?: PlatformWebhookEventEdge | null; } -export type CreatePlatformInfraObjectPayloadSelect = { - clientMutationId?: boolean; - platformInfraObject?: { - select: PlatformInfraObjectSelect; +export type CreatePlatformWebhookEventPayloadSelect = { + clientMutationId?: boolean; + platformWebhookEvent?: { + select: PlatformWebhookEventSelect; }; - platformInfraObjectEdge?: { - select: PlatformInfraObjectEdgeSelect; + platformWebhookEventEdge?: { + select: PlatformWebhookEventEdgeSelect; }; }; -export interface UpdatePlatformInfraObjectPayload { +export interface UpdatePlatformWebhookEventPayload { clientMutationId?: string | null; - /** The `PlatformInfraObject` that was updated by this mutation. */ - platformInfraObject?: PlatformInfraObject | null; - platformInfraObjectEdge?: PlatformInfraObjectEdge | null; + /** The `PlatformWebhookEvent` that was updated by this mutation. */ + platformWebhookEvent?: PlatformWebhookEvent | null; + platformWebhookEventEdge?: PlatformWebhookEventEdge | null; } -export type UpdatePlatformInfraObjectPayloadSelect = { +export type UpdatePlatformWebhookEventPayloadSelect = { clientMutationId?: boolean; - platformInfraObject?: { - select: PlatformInfraObjectSelect; + platformWebhookEvent?: { + select: PlatformWebhookEventSelect; }; - platformInfraObjectEdge?: { - select: PlatformInfraObjectEdgeSelect; + platformWebhookEventEdge?: { + select: PlatformWebhookEventEdgeSelect; }; }; -export interface DeletePlatformInfraObjectPayload { +export interface DeletePlatformWebhookEventPayload { clientMutationId?: string | null; - /** The `PlatformInfraObject` that was deleted by this mutation. */ - platformInfraObject?: PlatformInfraObject | null; - platformInfraObjectEdge?: PlatformInfraObjectEdge | null; + /** The `PlatformWebhookEvent` that was deleted by this mutation. */ + platformWebhookEvent?: PlatformWebhookEvent | null; + platformWebhookEventEdge?: PlatformWebhookEventEdge | null; } -export type DeletePlatformInfraObjectPayloadSelect = { +export type DeletePlatformWebhookEventPayloadSelect = { clientMutationId?: boolean; - platformInfraObject?: { - select: PlatformInfraObjectSelect; + platformWebhookEvent?: { + select: PlatformWebhookEventSelect; }; - platformInfraObjectEdge?: { - select: PlatformInfraObjectEdgeSelect; + platformWebhookEventEdge?: { + select: PlatformWebhookEventEdgeSelect; }; }; -export interface CreatePlatformInfraRefPayload { +export interface CreateProposalCommentPayload { clientMutationId?: string | null; - /** The `PlatformInfraRef` that was created by this mutation. */ - platformInfraRef?: PlatformInfraRef | null; - platformInfraRefEdge?: PlatformInfraRefEdge | null; + /** The `ProposalComment` that was created by this mutation. */ + proposalComment?: ProposalComment | null; + proposalCommentEdge?: ProposalCommentEdge | null; } -export type CreatePlatformInfraRefPayloadSelect = { +export type CreateProposalCommentPayloadSelect = { clientMutationId?: boolean; - platformInfraRef?: { - select: PlatformInfraRefSelect; + proposalComment?: { + select: ProposalCommentSelect; }; - platformInfraRefEdge?: { - select: PlatformInfraRefEdgeSelect; + proposalCommentEdge?: { + select: ProposalCommentEdgeSelect; }; }; -export interface UpdatePlatformInfraRefPayload { +export interface UpdateProposalCommentPayload { clientMutationId?: string | null; - /** The `PlatformInfraRef` that was updated by this mutation. */ - platformInfraRef?: PlatformInfraRef | null; - platformInfraRefEdge?: PlatformInfraRefEdge | null; + /** The `ProposalComment` that was updated by this mutation. */ + proposalComment?: ProposalComment | null; + proposalCommentEdge?: ProposalCommentEdge | null; } -export type UpdatePlatformInfraRefPayloadSelect = { +export type UpdateProposalCommentPayloadSelect = { clientMutationId?: boolean; - platformInfraRef?: { - select: PlatformInfraRefSelect; + proposalComment?: { + select: ProposalCommentSelect; }; - platformInfraRefEdge?: { - select: PlatformInfraRefEdgeSelect; + proposalCommentEdge?: { + select: ProposalCommentEdgeSelect; }; }; -export interface DeletePlatformInfraRefPayload { +export interface DeleteProposalCommentPayload { clientMutationId?: string | null; - /** The `PlatformInfraRef` that was deleted by this mutation. */ - platformInfraRef?: PlatformInfraRef | null; - platformInfraRefEdge?: PlatformInfraRefEdge | null; + /** The `ProposalComment` that was deleted by this mutation. */ + proposalComment?: ProposalComment | null; + proposalCommentEdge?: ProposalCommentEdge | null; } -export type DeletePlatformInfraRefPayloadSelect = { +export type DeleteProposalCommentPayloadSelect = { clientMutationId?: boolean; - platformInfraRef?: { - select: PlatformInfraRefSelect; + proposalComment?: { + select: ProposalCommentSelect; }; - platformInfraRefEdge?: { - select: PlatformInfraRefEdgeSelect; + proposalCommentEdge?: { + select: ProposalCommentEdgeSelect; }; }; -export interface CreatePlatformInfraStorePayload { +export interface CreateProposalPayload { clientMutationId?: string | null; - /** The `PlatformInfraStore` that was created by this mutation. */ - platformInfraStore?: PlatformInfraStore | null; - platformInfraStoreEdge?: PlatformInfraStoreEdge | null; + /** The `Proposal` that was created by this mutation. */ + proposal?: Proposal | null; + proposalEdge?: ProposalEdge | null; } -export type CreatePlatformInfraStorePayloadSelect = { +export type CreateProposalPayloadSelect = { clientMutationId?: boolean; - platformInfraStore?: { - select: PlatformInfraStoreSelect; + proposal?: { + select: ProposalSelect; }; - platformInfraStoreEdge?: { - select: PlatformInfraStoreEdgeSelect; + proposalEdge?: { + select: ProposalEdgeSelect; }; }; -export interface UpdatePlatformInfraStorePayload { +export interface UpdateProposalPayload { clientMutationId?: string | null; - /** The `PlatformInfraStore` that was updated by this mutation. */ - platformInfraStore?: PlatformInfraStore | null; - platformInfraStoreEdge?: PlatformInfraStoreEdge | null; + /** The `Proposal` that was updated by this mutation. */ + proposal?: Proposal | null; + proposalEdge?: ProposalEdge | null; } -export type UpdatePlatformInfraStorePayloadSelect = { +export type UpdateProposalPayloadSelect = { clientMutationId?: boolean; - platformInfraStore?: { - select: PlatformInfraStoreSelect; + proposal?: { + select: ProposalSelect; }; - platformInfraStoreEdge?: { - select: PlatformInfraStoreEdgeSelect; + proposalEdge?: { + select: ProposalEdgeSelect; }; }; -export interface DeletePlatformInfraStorePayload { +export interface DeleteProposalPayload { clientMutationId?: string | null; - /** The `PlatformInfraStore` that was deleted by this mutation. */ - platformInfraStore?: PlatformInfraStore | null; - platformInfraStoreEdge?: PlatformInfraStoreEdge | null; + /** The `Proposal` that was deleted by this mutation. */ + proposal?: Proposal | null; + proposalEdge?: ProposalEdge | null; } -export type DeletePlatformInfraStorePayloadSelect = { +export type DeleteProposalPayloadSelect = { clientMutationId?: boolean; - platformInfraStore?: { - select: PlatformInfraStoreSelect; + proposal?: { + select: ProposalSelect; }; - platformInfraStoreEdge?: { - select: PlatformInfraStoreEdgeSelect; + proposalEdge?: { + select: ProposalEdgeSelect; }; }; -export interface CreatePlatformNamespacePayload { +export interface CreateProposalFileViewPayload { clientMutationId?: string | null; - /** The `PlatformNamespace` that was created by this mutation. */ - platformNamespace?: PlatformNamespace | null; - platformNamespaceEdge?: PlatformNamespaceEdge | null; + /** The `ProposalFileView` that was created by this mutation. */ + proposalFileView?: ProposalFileView | null; + proposalFileViewEdge?: ProposalFileViewEdge | null; } -export type CreatePlatformNamespacePayloadSelect = { +export type CreateProposalFileViewPayloadSelect = { clientMutationId?: boolean; - platformNamespace?: { - select: PlatformNamespaceSelect; + proposalFileView?: { + select: ProposalFileViewSelect; }; - platformNamespaceEdge?: { - select: PlatformNamespaceEdgeSelect; + proposalFileViewEdge?: { + select: ProposalFileViewEdgeSelect; }; }; -export interface UpdatePlatformNamespacePayload { +export interface UpdateProposalFileViewPayload { clientMutationId?: string | null; - /** The `PlatformNamespace` that was updated by this mutation. */ - platformNamespace?: PlatformNamespace | null; - platformNamespaceEdge?: PlatformNamespaceEdge | null; + /** The `ProposalFileView` that was updated by this mutation. */ + proposalFileView?: ProposalFileView | null; + proposalFileViewEdge?: ProposalFileViewEdge | null; } -export type UpdatePlatformNamespacePayloadSelect = { +export type UpdateProposalFileViewPayloadSelect = { clientMutationId?: boolean; - platformNamespace?: { - select: PlatformNamespaceSelect; + proposalFileView?: { + select: ProposalFileViewSelect; }; - platformNamespaceEdge?: { - select: PlatformNamespaceEdgeSelect; + proposalFileViewEdge?: { + select: ProposalFileViewEdgeSelect; }; }; -export interface DeletePlatformNamespacePayload { +export interface DeleteProposalFileViewPayload { clientMutationId?: string | null; - /** The `PlatformNamespace` that was deleted by this mutation. */ - platformNamespace?: PlatformNamespace | null; - platformNamespaceEdge?: PlatformNamespaceEdge | null; + /** The `ProposalFileView` that was deleted by this mutation. */ + proposalFileView?: ProposalFileView | null; + proposalFileViewEdge?: ProposalFileViewEdge | null; } -export type DeletePlatformNamespacePayloadSelect = { +export type DeleteProposalFileViewPayloadSelect = { clientMutationId?: boolean; - platformNamespace?: { - select: PlatformNamespaceSelect; + proposalFileView?: { + select: ProposalFileViewSelect; }; - platformNamespaceEdge?: { - select: PlatformNamespaceEdgeSelect; + proposalFileViewEdge?: { + select: ProposalFileViewEdgeSelect; }; }; -export interface CreatePlatformNamespaceEventPayload { +export interface CreateProposalReactionPayload { clientMutationId?: string | null; - /** The `PlatformNamespaceEvent` that was created by this mutation. */ - platformNamespaceEvent?: PlatformNamespaceEvent | null; - platformNamespaceEventEdge?: PlatformNamespaceEventEdge | null; + /** The `ProposalReaction` that was created by this mutation. */ + proposalReaction?: ProposalReaction | null; + proposalReactionEdge?: ProposalReactionEdge | null; } -export type CreatePlatformNamespaceEventPayloadSelect = { +export type CreateProposalReactionPayloadSelect = { clientMutationId?: boolean; - platformNamespaceEvent?: { - select: PlatformNamespaceEventSelect; + proposalReaction?: { + select: ProposalReactionSelect; }; - platformNamespaceEventEdge?: { - select: PlatformNamespaceEventEdgeSelect; + proposalReactionEdge?: { + select: ProposalReactionEdgeSelect; }; }; -export interface UpdatePlatformNamespaceEventPayload { +export interface UpdateProposalReactionPayload { clientMutationId?: string | null; - /** The `PlatformNamespaceEvent` that was updated by this mutation. */ - platformNamespaceEvent?: PlatformNamespaceEvent | null; - platformNamespaceEventEdge?: PlatformNamespaceEventEdge | null; + /** The `ProposalReaction` that was updated by this mutation. */ + proposalReaction?: ProposalReaction | null; + proposalReactionEdge?: ProposalReactionEdge | null; } -export type UpdatePlatformNamespaceEventPayloadSelect = { +export type UpdateProposalReactionPayloadSelect = { clientMutationId?: boolean; - platformNamespaceEvent?: { - select: PlatformNamespaceEventSelect; + proposalReaction?: { + select: ProposalReactionSelect; }; - platformNamespaceEventEdge?: { - select: PlatformNamespaceEventEdgeSelect; + proposalReactionEdge?: { + select: ProposalReactionEdgeSelect; }; }; -export interface DeletePlatformNamespaceEventPayload { +export interface DeleteProposalReactionPayload { clientMutationId?: string | null; - /** The `PlatformNamespaceEvent` that was deleted by this mutation. */ - platformNamespaceEvent?: PlatformNamespaceEvent | null; - platformNamespaceEventEdge?: PlatformNamespaceEventEdge | null; + /** The `ProposalReaction` that was deleted by this mutation. */ + proposalReaction?: ProposalReaction | null; + proposalReactionEdge?: ProposalReactionEdge | null; } -export type DeletePlatformNamespaceEventPayloadSelect = { +export type DeleteProposalReactionPayloadSelect = { clientMutationId?: boolean; - platformNamespaceEvent?: { - select: PlatformNamespaceEventSelect; + proposalReaction?: { + select: ProposalReactionSelect; }; - platformNamespaceEventEdge?: { - select: PlatformNamespaceEventEdgeSelect; + proposalReactionEdge?: { + select: ProposalReactionEdgeSelect; }; }; -export interface CreatePlatformResourcePayload { +export interface CreateProposalReviewPayload { clientMutationId?: string | null; - /** The `PlatformResource` that was created by this mutation. */ - platformResource?: PlatformResource | null; - platformResourceEdge?: PlatformResourceEdge | null; + /** The `ProposalReview` that was created by this mutation. */ + proposalReview?: ProposalReview | null; + proposalReviewEdge?: ProposalReviewEdge | null; } -export type CreatePlatformResourcePayloadSelect = { +export type CreateProposalReviewPayloadSelect = { clientMutationId?: boolean; - platformResource?: { - select: PlatformResourceSelect; + proposalReview?: { + select: ProposalReviewSelect; }; - platformResourceEdge?: { - select: PlatformResourceEdgeSelect; + proposalReviewEdge?: { + select: ProposalReviewEdgeSelect; }; }; -export interface UpdatePlatformResourcePayload { +export interface UpdateProposalReviewPayload { clientMutationId?: string | null; - /** The `PlatformResource` that was updated by this mutation. */ - platformResource?: PlatformResource | null; - platformResourceEdge?: PlatformResourceEdge | null; + /** The `ProposalReview` that was updated by this mutation. */ + proposalReview?: ProposalReview | null; + proposalReviewEdge?: ProposalReviewEdge | null; } -export type UpdatePlatformResourcePayloadSelect = { +export type UpdateProposalReviewPayloadSelect = { clientMutationId?: boolean; - platformResource?: { - select: PlatformResourceSelect; + proposalReview?: { + select: ProposalReviewSelect; }; - platformResourceEdge?: { - select: PlatformResourceEdgeSelect; + proposalReviewEdge?: { + select: ProposalReviewEdgeSelect; }; }; -export interface DeletePlatformResourcePayload { +export interface DeleteProposalReviewPayload { clientMutationId?: string | null; - /** The `PlatformResource` that was deleted by this mutation. */ - platformResource?: PlatformResource | null; - platformResourceEdge?: PlatformResourceEdge | null; + /** The `ProposalReview` that was deleted by this mutation. */ + proposalReview?: ProposalReview | null; + proposalReviewEdge?: ProposalReviewEdge | null; } -export type DeletePlatformResourcePayloadSelect = { +export type DeleteProposalReviewPayloadSelect = { clientMutationId?: boolean; - platformResource?: { - select: PlatformResourceSelect; + proposalReview?: { + select: ProposalReviewSelect; }; - platformResourceEdge?: { - select: PlatformResourceEdgeSelect; + proposalReviewEdge?: { + select: ProposalReviewEdgeSelect; }; }; -export interface CreatePlatformResourceDefinitionPayload { +export interface CreateProposalsChunkPayload { clientMutationId?: string | null; - /** The `PlatformResourceDefinition` that was created by this mutation. */ - platformResourceDefinition?: PlatformResourceDefinition | null; - platformResourceDefinitionEdge?: PlatformResourceDefinitionEdge | null; + /** The `ProposalsChunk` that was created by this mutation. */ + proposalsChunk?: ProposalsChunk | null; + proposalsChunkEdge?: ProposalsChunkEdge | null; } -export type CreatePlatformResourceDefinitionPayloadSelect = { +export type CreateProposalsChunkPayloadSelect = { clientMutationId?: boolean; - platformResourceDefinition?: { - select: PlatformResourceDefinitionSelect; + proposalsChunk?: { + select: ProposalsChunkSelect; }; - platformResourceDefinitionEdge?: { - select: PlatformResourceDefinitionEdgeSelect; + proposalsChunkEdge?: { + select: ProposalsChunkEdgeSelect; }; }; -export interface UpdatePlatformResourceDefinitionPayload { +export interface UpdateProposalsChunkPayload { clientMutationId?: string | null; - /** The `PlatformResourceDefinition` that was updated by this mutation. */ - platformResourceDefinition?: PlatformResourceDefinition | null; - platformResourceDefinitionEdge?: PlatformResourceDefinitionEdge | null; + /** The `ProposalsChunk` that was updated by this mutation. */ + proposalsChunk?: ProposalsChunk | null; + proposalsChunkEdge?: ProposalsChunkEdge | null; } -export type UpdatePlatformResourceDefinitionPayloadSelect = { +export type UpdateProposalsChunkPayloadSelect = { clientMutationId?: boolean; - platformResourceDefinition?: { - select: PlatformResourceDefinitionSelect; + proposalsChunk?: { + select: ProposalsChunkSelect; }; - platformResourceDefinitionEdge?: { - select: PlatformResourceDefinitionEdgeSelect; + proposalsChunkEdge?: { + select: ProposalsChunkEdgeSelect; }; }; -export interface DeletePlatformResourceDefinitionPayload { +export interface DeleteProposalsChunkPayload { clientMutationId?: string | null; - /** The `PlatformResourceDefinition` that was deleted by this mutation. */ - platformResourceDefinition?: PlatformResourceDefinition | null; - platformResourceDefinitionEdge?: PlatformResourceDefinitionEdge | null; + /** The `ProposalsChunk` that was deleted by this mutation. */ + proposalsChunk?: ProposalsChunk | null; + proposalsChunkEdge?: ProposalsChunkEdge | null; } -export type DeletePlatformResourceDefinitionPayloadSelect = { +export type DeleteProposalsChunkPayloadSelect = { clientMutationId?: boolean; - platformResourceDefinition?: { - select: PlatformResourceDefinitionSelect; + proposalsChunk?: { + select: ProposalsChunkSelect; }; - platformResourceDefinitionEdge?: { - select: PlatformResourceDefinitionEdgeSelect; + proposalsChunkEdge?: { + select: ProposalsChunkEdgeSelect; }; }; -export interface CreatePlatformResourceEventPayload { +export interface CreateRegistryBindingPayload { clientMutationId?: string | null; - /** The `PlatformResourceEvent` that was created by this mutation. */ - platformResourceEvent?: PlatformResourceEvent | null; - platformResourceEventEdge?: PlatformResourceEventEdge | null; + /** The `RegistryBinding` that was created by this mutation. */ + registryBinding?: RegistryBinding | null; + registryBindingEdge?: RegistryBindingEdge | null; } -export type CreatePlatformResourceEventPayloadSelect = { +export type CreateRegistryBindingPayloadSelect = { clientMutationId?: boolean; - platformResourceEvent?: { - select: PlatformResourceEventSelect; + registryBinding?: { + select: RegistryBindingSelect; }; - platformResourceEventEdge?: { - select: PlatformResourceEventEdgeSelect; + registryBindingEdge?: { + select: RegistryBindingEdgeSelect; }; }; -export interface UpdatePlatformResourceEventPayload { +export interface UpdateRegistryBindingPayload { clientMutationId?: string | null; - /** The `PlatformResourceEvent` that was updated by this mutation. */ - platformResourceEvent?: PlatformResourceEvent | null; - platformResourceEventEdge?: PlatformResourceEventEdge | null; + /** The `RegistryBinding` that was updated by this mutation. */ + registryBinding?: RegistryBinding | null; + registryBindingEdge?: RegistryBindingEdge | null; } -export type UpdatePlatformResourceEventPayloadSelect = { +export type UpdateRegistryBindingPayloadSelect = { clientMutationId?: boolean; - platformResourceEvent?: { - select: PlatformResourceEventSelect; + registryBinding?: { + select: RegistryBindingSelect; }; - platformResourceEventEdge?: { - select: PlatformResourceEventEdgeSelect; + registryBindingEdge?: { + select: RegistryBindingEdgeSelect; }; }; -export interface DeletePlatformResourceEventPayload { +export interface DeleteRegistryBindingPayload { clientMutationId?: string | null; - /** The `PlatformResourceEvent` that was deleted by this mutation. */ - platformResourceEvent?: PlatformResourceEvent | null; - platformResourceEventEdge?: PlatformResourceEventEdge | null; + /** The `RegistryBinding` that was deleted by this mutation. */ + registryBinding?: RegistryBinding | null; + registryBindingEdge?: RegistryBindingEdge | null; } -export type DeletePlatformResourceEventPayloadSelect = { +export type DeleteRegistryBindingPayloadSelect = { clientMutationId?: boolean; - platformResourceEvent?: { - select: PlatformResourceEventSelect; + registryBinding?: { + select: RegistryBindingSelect; }; - platformResourceEventEdge?: { - select: PlatformResourceEventEdgeSelect; + registryBindingEdge?: { + select: RegistryBindingEdgeSelect; }; }; -export interface CreatePlatformResourceInstallationPayload { +export interface CreateRegistryPayload { clientMutationId?: string | null; - /** The `PlatformResourceInstallation` that was created by this mutation. */ - platformResourceInstallation?: PlatformResourceInstallation | null; - platformResourceInstallationEdge?: PlatformResourceInstallationEdge | null; + /** The `Registry` that was created by this mutation. */ + registry?: Registry | null; + registryEdge?: RegistryEdge | null; } -export type CreatePlatformResourceInstallationPayloadSelect = { +export type CreateRegistryPayloadSelect = { clientMutationId?: boolean; - platformResourceInstallation?: { - select: PlatformResourceInstallationSelect; + registry?: { + select: RegistrySelect; }; - platformResourceInstallationEdge?: { - select: PlatformResourceInstallationEdgeSelect; + registryEdge?: { + select: RegistryEdgeSelect; }; }; -export interface UpdatePlatformResourceInstallationPayload { +export interface UpdateRegistryPayload { clientMutationId?: string | null; - /** The `PlatformResourceInstallation` that was updated by this mutation. */ - platformResourceInstallation?: PlatformResourceInstallation | null; - platformResourceInstallationEdge?: PlatformResourceInstallationEdge | null; + /** The `Registry` that was updated by this mutation. */ + registry?: Registry | null; + registryEdge?: RegistryEdge | null; } -export type UpdatePlatformResourceInstallationPayloadSelect = { +export type UpdateRegistryPayloadSelect = { clientMutationId?: boolean; - platformResourceInstallation?: { - select: PlatformResourceInstallationSelect; + registry?: { + select: RegistrySelect; }; - platformResourceInstallationEdge?: { - select: PlatformResourceInstallationEdgeSelect; + registryEdge?: { + select: RegistryEdgeSelect; }; -}; -export interface DeletePlatformResourceInstallationPayload { - clientMutationId?: string | null; - /** The `PlatformResourceInstallation` that was deleted by this mutation. */ - platformResourceInstallation?: PlatformResourceInstallation | null; - platformResourceInstallationEdge?: PlatformResourceInstallationEdge | null; +}; +export interface DeleteRegistryPayload { + clientMutationId?: string | null; + /** The `Registry` that was deleted by this mutation. */ + registry?: Registry | null; + registryEdge?: RegistryEdge | null; } -export type DeletePlatformResourceInstallationPayloadSelect = { +export type DeleteRegistryPayloadSelect = { clientMutationId?: boolean; - platformResourceInstallation?: { - select: PlatformResourceInstallationSelect; + registry?: { + select: RegistrySelect; }; - platformResourceInstallationEdge?: { - select: PlatformResourceInstallationEdgeSelect; + registryEdge?: { + select: RegistryEdgeSelect; }; }; -export interface CreatePlatformResourceStatusCheckPayload { +export interface CreateRegistryGrantPayload { clientMutationId?: string | null; - /** The `PlatformResourceStatusCheck` that was created by this mutation. */ - platformResourceStatusCheck?: PlatformResourceStatusCheck | null; - platformResourceStatusCheckEdge?: PlatformResourceStatusCheckEdge | null; + /** The `RegistryGrant` that was created by this mutation. */ + registryGrant?: RegistryGrant | null; + registryGrantEdge?: RegistryGrantEdge | null; } -export type CreatePlatformResourceStatusCheckPayloadSelect = { +export type CreateRegistryGrantPayloadSelect = { clientMutationId?: boolean; - platformResourceStatusCheck?: { - select: PlatformResourceStatusCheckSelect; + registryGrant?: { + select: RegistryGrantSelect; }; - platformResourceStatusCheckEdge?: { - select: PlatformResourceStatusCheckEdgeSelect; + registryGrantEdge?: { + select: RegistryGrantEdgeSelect; }; }; -export interface UpdatePlatformResourceStatusCheckPayload { +export interface UpdateRegistryGrantPayload { clientMutationId?: string | null; - /** The `PlatformResourceStatusCheck` that was updated by this mutation. */ - platformResourceStatusCheck?: PlatformResourceStatusCheck | null; - platformResourceStatusCheckEdge?: PlatformResourceStatusCheckEdge | null; + /** The `RegistryGrant` that was updated by this mutation. */ + registryGrant?: RegistryGrant | null; + registryGrantEdge?: RegistryGrantEdge | null; } -export type UpdatePlatformResourceStatusCheckPayloadSelect = { +export type UpdateRegistryGrantPayloadSelect = { clientMutationId?: boolean; - platformResourceStatusCheck?: { - select: PlatformResourceStatusCheckSelect; + registryGrant?: { + select: RegistryGrantSelect; }; - platformResourceStatusCheckEdge?: { - select: PlatformResourceStatusCheckEdgeSelect; + registryGrantEdge?: { + select: RegistryGrantEdgeSelect; }; }; -export interface DeletePlatformResourceStatusCheckPayload { +export interface DeleteRegistryGrantPayload { clientMutationId?: string | null; - /** The `PlatformResourceStatusCheck` that was deleted by this mutation. */ - platformResourceStatusCheck?: PlatformResourceStatusCheck | null; - platformResourceStatusCheckEdge?: PlatformResourceStatusCheckEdge | null; + /** The `RegistryGrant` that was deleted by this mutation. */ + registryGrant?: RegistryGrant | null; + registryGrantEdge?: RegistryGrantEdge | null; } -export type DeletePlatformResourceStatusCheckPayloadSelect = { +export type DeleteRegistryGrantPayloadSelect = { clientMutationId?: boolean; - platformResourceStatusCheck?: { - select: PlatformResourceStatusCheckSelect; + registryGrant?: { + select: RegistryGrantSelect; }; - platformResourceStatusCheckEdge?: { - select: PlatformResourceStatusCheckEdgeSelect; + registryGrantEdge?: { + select: RegistryGrantEdgeSelect; }; }; -export interface CreatePlatformResourceUsageLogPayload { +export interface CreateRepositoryPayload { clientMutationId?: string | null; - /** The `PlatformResourceUsageLog` that was created by this mutation. */ - platformResourceUsageLog?: PlatformResourceUsageLog | null; - platformResourceUsageLogEdge?: PlatformResourceUsageLogEdge | null; + /** The `Repository` that was created by this mutation. */ + repository?: Repository | null; + repositoryEdge?: RepositoryEdge | null; } -export type CreatePlatformResourceUsageLogPayloadSelect = { +export type CreateRepositoryPayloadSelect = { clientMutationId?: boolean; - platformResourceUsageLog?: { - select: PlatformResourceUsageLogSelect; + repository?: { + select: RepositorySelect; }; - platformResourceUsageLogEdge?: { - select: PlatformResourceUsageLogEdgeSelect; + repositoryEdge?: { + select: RepositoryEdgeSelect; }; }; -export interface UpdatePlatformResourceUsageLogPayload { +export interface UpdateRepositoryPayload { clientMutationId?: string | null; - /** The `PlatformResourceUsageLog` that was updated by this mutation. */ - platformResourceUsageLog?: PlatformResourceUsageLog | null; - platformResourceUsageLogEdge?: PlatformResourceUsageLogEdge | null; + /** The `Repository` that was updated by this mutation. */ + repository?: Repository | null; + repositoryEdge?: RepositoryEdge | null; } -export type UpdatePlatformResourceUsageLogPayloadSelect = { +export type UpdateRepositoryPayloadSelect = { clientMutationId?: boolean; - platformResourceUsageLog?: { - select: PlatformResourceUsageLogSelect; + repository?: { + select: RepositorySelect; }; - platformResourceUsageLogEdge?: { - select: PlatformResourceUsageLogEdgeSelect; + repositoryEdge?: { + select: RepositoryEdgeSelect; }; }; -export interface DeletePlatformResourceUsageLogPayload { +export interface DeleteRepositoryPayload { clientMutationId?: string | null; - /** The `PlatformResourceUsageLog` that was deleted by this mutation. */ - platformResourceUsageLog?: PlatformResourceUsageLog | null; - platformResourceUsageLogEdge?: PlatformResourceUsageLogEdge | null; + /** The `Repository` that was deleted by this mutation. */ + repository?: Repository | null; + repositoryEdge?: RepositoryEdge | null; } -export type DeletePlatformResourceUsageLogPayloadSelect = { +export type DeleteRepositoryPayloadSelect = { clientMutationId?: boolean; - platformResourceUsageLog?: { - select: PlatformResourceUsageLogSelect; + repository?: { + select: RepositorySelect; }; - platformResourceUsageLogEdge?: { - select: PlatformResourceUsageLogEdgeSelect; + repositoryEdge?: { + select: RepositoryEdgeSelect; }; }; -export interface CreatePlatformResourceUsageSummaryPayload { +export interface CreateRepositoryEventPayload { clientMutationId?: string | null; - /** The `PlatformResourceUsageSummary` that was created by this mutation. */ - platformResourceUsageSummary?: PlatformResourceUsageSummary | null; - platformResourceUsageSummaryEdge?: PlatformResourceUsageSummaryEdge | null; + /** The `RepositoryEvent` that was created by this mutation. */ + repositoryEvent?: RepositoryEvent | null; + repositoryEventEdge?: RepositoryEventEdge | null; } -export type CreatePlatformResourceUsageSummaryPayloadSelect = { +export type CreateRepositoryEventPayloadSelect = { clientMutationId?: boolean; - platformResourceUsageSummary?: { - select: PlatformResourceUsageSummarySelect; + repositoryEvent?: { + select: RepositoryEventSelect; }; - platformResourceUsageSummaryEdge?: { - select: PlatformResourceUsageSummaryEdgeSelect; + repositoryEventEdge?: { + select: RepositoryEventEdgeSelect; }; }; -export interface UpdatePlatformResourceUsageSummaryPayload { +export interface UpdateRepositoryEventPayload { clientMutationId?: string | null; - /** The `PlatformResourceUsageSummary` that was updated by this mutation. */ - platformResourceUsageSummary?: PlatformResourceUsageSummary | null; - platformResourceUsageSummaryEdge?: PlatformResourceUsageSummaryEdge | null; + /** The `RepositoryEvent` that was updated by this mutation. */ + repositoryEvent?: RepositoryEvent | null; + repositoryEventEdge?: RepositoryEventEdge | null; } -export type UpdatePlatformResourceUsageSummaryPayloadSelect = { +export type UpdateRepositoryEventPayloadSelect = { clientMutationId?: boolean; - platformResourceUsageSummary?: { - select: PlatformResourceUsageSummarySelect; + repositoryEvent?: { + select: RepositoryEventSelect; }; - platformResourceUsageSummaryEdge?: { - select: PlatformResourceUsageSummaryEdgeSelect; + repositoryEventEdge?: { + select: RepositoryEventEdgeSelect; }; }; -export interface DeletePlatformResourceUsageSummaryPayload { +export interface DeleteRepositoryEventPayload { clientMutationId?: string | null; - /** The `PlatformResourceUsageSummary` that was deleted by this mutation. */ - platformResourceUsageSummary?: PlatformResourceUsageSummary | null; - platformResourceUsageSummaryEdge?: PlatformResourceUsageSummaryEdge | null; + /** The `RepositoryEvent` that was deleted by this mutation. */ + repositoryEvent?: RepositoryEvent | null; + repositoryEventEdge?: RepositoryEventEdge | null; } -export type DeletePlatformResourceUsageSummaryPayloadSelect = { +export type DeleteRepositoryEventPayloadSelect = { clientMutationId?: boolean; - platformResourceUsageSummary?: { - select: PlatformResourceUsageSummarySelect; + repositoryEvent?: { + select: RepositoryEventSelect; }; - platformResourceUsageSummaryEdge?: { - select: PlatformResourceUsageSummaryEdgeSelect; + repositoryEventEdge?: { + select: RepositoryEventEdgeSelect; }; }; -export interface CreatePlatformWebhookEndpointPayload { +export interface CreateRepositoryRequiredCheckPayload { clientMutationId?: string | null; - /** The `PlatformWebhookEndpoint` that was created by this mutation. */ - platformWebhookEndpoint?: PlatformWebhookEndpoint | null; - platformWebhookEndpointEdge?: PlatformWebhookEndpointEdge | null; + /** The `RepositoryRequiredCheck` that was created by this mutation. */ + repositoryRequiredCheck?: RepositoryRequiredCheck | null; + repositoryRequiredCheckEdge?: RepositoryRequiredCheckEdge | null; } -export type CreatePlatformWebhookEndpointPayloadSelect = { +export type CreateRepositoryRequiredCheckPayloadSelect = { clientMutationId?: boolean; - platformWebhookEndpoint?: { - select: PlatformWebhookEndpointSelect; + repositoryRequiredCheck?: { + select: RepositoryRequiredCheckSelect; }; - platformWebhookEndpointEdge?: { - select: PlatformWebhookEndpointEdgeSelect; + repositoryRequiredCheckEdge?: { + select: RepositoryRequiredCheckEdgeSelect; }; }; -export interface UpdatePlatformWebhookEndpointPayload { +export interface UpdateRepositoryRequiredCheckPayload { clientMutationId?: string | null; - /** The `PlatformWebhookEndpoint` that was updated by this mutation. */ - platformWebhookEndpoint?: PlatformWebhookEndpoint | null; - platformWebhookEndpointEdge?: PlatformWebhookEndpointEdge | null; + /** The `RepositoryRequiredCheck` that was updated by this mutation. */ + repositoryRequiredCheck?: RepositoryRequiredCheck | null; + repositoryRequiredCheckEdge?: RepositoryRequiredCheckEdge | null; } -export type UpdatePlatformWebhookEndpointPayloadSelect = { +export type UpdateRepositoryRequiredCheckPayloadSelect = { clientMutationId?: boolean; - platformWebhookEndpoint?: { - select: PlatformWebhookEndpointSelect; + repositoryRequiredCheck?: { + select: RepositoryRequiredCheckSelect; }; - platformWebhookEndpointEdge?: { - select: PlatformWebhookEndpointEdgeSelect; + repositoryRequiredCheckEdge?: { + select: RepositoryRequiredCheckEdgeSelect; }; }; -export interface DeletePlatformWebhookEndpointPayload { +export interface DeleteRepositoryRequiredCheckPayload { clientMutationId?: string | null; - /** The `PlatformWebhookEndpoint` that was deleted by this mutation. */ - platformWebhookEndpoint?: PlatformWebhookEndpoint | null; - platformWebhookEndpointEdge?: PlatformWebhookEndpointEdge | null; + /** The `RepositoryRequiredCheck` that was deleted by this mutation. */ + repositoryRequiredCheck?: RepositoryRequiredCheck | null; + repositoryRequiredCheckEdge?: RepositoryRequiredCheckEdge | null; } -export type DeletePlatformWebhookEndpointPayloadSelect = { +export type DeleteRepositoryRequiredCheckPayloadSelect = { clientMutationId?: boolean; - platformWebhookEndpoint?: { - select: PlatformWebhookEndpointSelect; + repositoryRequiredCheck?: { + select: RepositoryRequiredCheckSelect; }; - platformWebhookEndpointEdge?: { - select: PlatformWebhookEndpointEdgeSelect; + repositoryRequiredCheckEdge?: { + select: RepositoryRequiredCheckEdgeSelect; }; }; -export interface CreatePlatformWebhookEventPayload { +export interface CreateRepositoryWorkflowPayload { clientMutationId?: string | null; - /** The `PlatformWebhookEvent` that was created by this mutation. */ - platformWebhookEvent?: PlatformWebhookEvent | null; - platformWebhookEventEdge?: PlatformWebhookEventEdge | null; + /** The `RepositoryWorkflow` that was created by this mutation. */ + repositoryWorkflow?: RepositoryWorkflow | null; + repositoryWorkflowEdge?: RepositoryWorkflowEdge | null; } -export type CreatePlatformWebhookEventPayloadSelect = { +export type CreateRepositoryWorkflowPayloadSelect = { clientMutationId?: boolean; - platformWebhookEvent?: { - select: PlatformWebhookEventSelect; + repositoryWorkflow?: { + select: RepositoryWorkflowSelect; }; - platformWebhookEventEdge?: { - select: PlatformWebhookEventEdgeSelect; + repositoryWorkflowEdge?: { + select: RepositoryWorkflowEdgeSelect; }; }; -export interface UpdatePlatformWebhookEventPayload { +export interface UpdateRepositoryWorkflowPayload { clientMutationId?: string | null; - /** The `PlatformWebhookEvent` that was updated by this mutation. */ - platformWebhookEvent?: PlatformWebhookEvent | null; - platformWebhookEventEdge?: PlatformWebhookEventEdge | null; + /** The `RepositoryWorkflow` that was updated by this mutation. */ + repositoryWorkflow?: RepositoryWorkflow | null; + repositoryWorkflowEdge?: RepositoryWorkflowEdge | null; } -export type UpdatePlatformWebhookEventPayloadSelect = { +export type UpdateRepositoryWorkflowPayloadSelect = { clientMutationId?: boolean; - platformWebhookEvent?: { - select: PlatformWebhookEventSelect; + repositoryWorkflow?: { + select: RepositoryWorkflowSelect; }; - platformWebhookEventEdge?: { - select: PlatformWebhookEventEdgeSelect; + repositoryWorkflowEdge?: { + select: RepositoryWorkflowEdgeSelect; }; }; -export interface DeletePlatformWebhookEventPayload { +export interface DeleteRepositoryWorkflowPayload { clientMutationId?: string | null; - /** The `PlatformWebhookEvent` that was deleted by this mutation. */ - platformWebhookEvent?: PlatformWebhookEvent | null; - platformWebhookEventEdge?: PlatformWebhookEventEdge | null; + /** The `RepositoryWorkflow` that was deleted by this mutation. */ + repositoryWorkflow?: RepositoryWorkflow | null; + repositoryWorkflowEdge?: RepositoryWorkflowEdge | null; } -export type DeletePlatformWebhookEventPayloadSelect = { +export type DeleteRepositoryWorkflowPayloadSelect = { clientMutationId?: boolean; - platformWebhookEvent?: { - select: PlatformWebhookEventSelect; + repositoryWorkflow?: { + select: RepositoryWorkflowSelect; }; - platformWebhookEventEdge?: { - select: PlatformWebhookEventEdgeSelect; + repositoryWorkflowEdge?: { + select: RepositoryWorkflowEdgeSelect; }; }; export interface CreateResourcePayload { @@ -17279,67 +33349,223 @@ export type UpdateWebhookEventPayloadSelect = { select: WebhookEventEdgeSelect; }; }; -export interface DeleteWebhookEventPayload { - clientMutationId?: string | null; - /** The `WebhookEvent` that was deleted by this mutation. */ - webhookEvent?: WebhookEvent | null; - webhookEventEdge?: WebhookEventEdge | null; +export interface DeleteWebhookEventPayload { + clientMutationId?: string | null; + /** The `WebhookEvent` that was deleted by this mutation. */ + webhookEvent?: WebhookEvent | null; + webhookEventEdge?: WebhookEventEdge | null; +} +export type DeleteWebhookEventPayloadSelect = { + clientMutationId?: boolean; + webhookEvent?: { + select: WebhookEventSelect; + }; + webhookEventEdge?: { + select: WebhookEventEdgeSelect; + }; +}; +/** A `DatabaseGraphCommit` edge in the connection. */ +export interface DatabaseGraphCommitEdge { + cursor?: string | null; + /** The `DatabaseGraphCommit` at the end of the edge. */ + node?: DatabaseGraphCommit | null; +} +export type DatabaseGraphCommitEdgeSelect = { + cursor?: boolean; + node?: { + select: DatabaseGraphCommitSelect; + }; +}; +/** A `FunctionInvocation` edge in the connection. */ +export interface FunctionInvocationEdge { + cursor?: string | null; + /** The `FunctionInvocation` at the end of the edge. */ + node?: FunctionInvocation | null; +} +export type FunctionInvocationEdgeSelect = { + cursor?: boolean; + node?: { + 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 `PlatformFunctionInvocation` edge in the connection. */ +export interface PlatformFunctionInvocationEdge { + cursor?: string | null; + /** The `PlatformFunctionInvocation` at the end of the edge. */ + node?: PlatformFunctionInvocation | null; +} +export type PlatformFunctionInvocationEdgeSelect = { + cursor?: boolean; + node?: { + 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 `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 `Build` edge in the connection. */ +export interface BuildEdge { + cursor?: string | null; + /** The `Build` at the end of the edge. */ + node?: Build | null; +} +export type BuildEdgeSelect = { + cursor?: boolean; + node?: { + select: BuildSelect; + }; +}; +/** A `BuildStep` edge in the connection. */ +export interface BuildStepEdge { + cursor?: string | null; + /** The `BuildStep` at the end of the edge. */ + node?: BuildStep | null; +} +export type BuildStepEdgeSelect = { + cursor?: boolean; + node?: { + select: BuildStepSelect; + }; +}; +/** A `BuilderBinding` edge in the connection. */ +export interface BuilderBindingEdge { + cursor?: string | null; + /** The `BuilderBinding` at the end of the edge. */ + node?: BuilderBinding | null; +} +export type BuilderBindingEdgeSelect = { + cursor?: boolean; + node?: { + select: BuilderBindingSelect; + }; +}; +/** 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 `DatabaseFunctionGraph` edge in the connection. */ +export interface DatabaseFunctionGraphEdge { + cursor?: string | null; + /** The `DatabaseFunctionGraph` at the end of the edge. */ + node?: DatabaseFunctionGraph | null; +} +export type DatabaseFunctionGraphEdgeSelect = { + cursor?: boolean; + node?: { + select: DatabaseFunctionGraphSelect; + }; +}; +/** A `DatabaseFunctionGraphExecution` edge in the connection. */ +export interface DatabaseFunctionGraphExecutionEdge { + cursor?: string | null; + /** The `DatabaseFunctionGraphExecution` at the end of the edge. */ + node?: DatabaseFunctionGraphExecution | null; } -export type DeleteWebhookEventPayloadSelect = { - clientMutationId?: boolean; - webhookEvent?: { - select: WebhookEventSelect; +export type DatabaseFunctionGraphExecutionEdgeSelect = { + cursor?: boolean; + node?: { + select: DatabaseFunctionGraphExecutionSelect; }; - webhookEventEdge?: { - select: WebhookEventEdgeSelect; +}; +/** A `DatabaseFunctionGraphExecutionNodeState` edge in the connection. */ +export interface DatabaseFunctionGraphExecutionNodeStateEdge { + cursor?: string | null; + /** The `DatabaseFunctionGraphExecutionNodeState` at the end of the edge. */ + node?: DatabaseFunctionGraphExecutionNodeState | null; +} +export type DatabaseFunctionGraphExecutionNodeStateEdgeSelect = { + cursor?: boolean; + node?: { + select: DatabaseFunctionGraphExecutionNodeStateSelect; }; }; -/** A `InfraCommit` edge in the connection. */ -export interface InfraCommitEdge { +/** A `DatabaseFunctionGraphExecutionOutput` edge in the connection. */ +export interface DatabaseFunctionGraphExecutionOutputEdge { cursor?: string | null; - /** The `InfraCommit` at the end of the edge. */ - node?: InfraCommit | null; + /** The `DatabaseFunctionGraphExecutionOutput` at the end of the edge. */ + node?: DatabaseFunctionGraphExecutionOutput | null; } -export type InfraCommitEdgeSelect = { +export type DatabaseFunctionGraphExecutionOutputEdgeSelect = { cursor?: boolean; node?: { - select: InfraCommitSelect; + select: DatabaseFunctionGraphExecutionOutputSelect; }; }; -/** A `PlatformInfraCommit` edge in the connection. */ -export interface PlatformInfraCommitEdge { +/** A `DatabaseGraphObject` edge in the connection. */ +export interface DatabaseGraphObjectEdge { cursor?: string | null; - /** The `PlatformInfraCommit` at the end of the edge. */ - node?: PlatformInfraCommit | null; + /** The `DatabaseGraphObject` at the end of the edge. */ + node?: DatabaseGraphObject | null; } -export type PlatformInfraCommitEdgeSelect = { +export type DatabaseGraphObjectEdgeSelect = { cursor?: boolean; node?: { - select: PlatformInfraCommitSelect; + select: DatabaseGraphObjectSelect; }; }; -/** A `FunctionGraphCommit` edge in the connection. */ -export interface FunctionGraphCommitEdge { +/** A `DatabaseGraphRef` edge in the connection. */ +export interface DatabaseGraphRefEdge { cursor?: string | null; - /** The `FunctionGraphCommit` at the end of the edge. */ - node?: FunctionGraphCommit | null; + /** The `DatabaseGraphRef` at the end of the edge. */ + node?: DatabaseGraphRef | null; } -export type FunctionGraphCommitEdgeSelect = { +export type DatabaseGraphRefEdgeSelect = { cursor?: boolean; node?: { - select: FunctionGraphCommitSelect; + select: DatabaseGraphRefSelect; }; }; -/** A `ContentPreset` edge in the connection. */ -export interface ContentPresetEdge { +/** A `DatabaseGraphStore` edge in the connection. */ +export interface DatabaseGraphStoreEdge { cursor?: string | null; - /** The `ContentPreset` at the end of the edge. */ - node?: ContentPreset | null; + /** The `DatabaseGraphStore` at the end of the edge. */ + node?: DatabaseGraphStore | null; } -export type ContentPresetEdgeSelect = { +export type DatabaseGraphStoreEdgeSelect = { cursor?: boolean; node?: { - select: ContentPresetSelect; + select: DatabaseGraphStoreSelect; }; }; /** A `DbPreset` edge in the connection. */ @@ -17522,16 +33748,28 @@ export type FunctionInvocationAttemptEdgeSelect = { select: FunctionInvocationAttemptSelect; }; }; -/** A `FunctionInvocation` edge in the connection. */ -export interface FunctionInvocationEdge { +/** A `Image` edge in the connection. */ +export interface ImageEdge { cursor?: string | null; - /** The `FunctionInvocation` at the end of the edge. */ - node?: FunctionInvocation | null; + /** The `Image` at the end of the edge. */ + node?: Image | null; } -export type FunctionInvocationEdgeSelect = { +export type ImageEdgeSelect = { cursor?: boolean; node?: { - select: FunctionInvocationSelect; + select: ImageSelect; + }; +}; +/** A `ImageGrant` edge in the connection. */ +export interface ImageGrantEdge { + cursor?: string | null; + /** The `ImageGrant` at the end of the edge. */ + node?: ImageGrant | null; +} +export type ImageGrantEdgeSelect = { + cursor?: boolean; + node?: { + select: ImageGrantSelect; }; }; /** A `InfraObject` edge in the connection. */ @@ -17606,6 +33844,42 @@ export type NamespaceEventEdgeSelect = { select: NamespaceEventSelect; }; }; +/** A `PlatformBuild` edge in the connection. */ +export interface PlatformBuildEdge { + cursor?: string | null; + /** The `PlatformBuild` at the end of the edge. */ + node?: PlatformBuild | null; +} +export type PlatformBuildEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformBuildSelect; + }; +}; +/** A `PlatformBuildStep` edge in the connection. */ +export interface PlatformBuildStepEdge { + cursor?: string | null; + /** The `PlatformBuildStep` at the end of the edge. */ + node?: PlatformBuildStep | null; +} +export type PlatformBuildStepEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformBuildStepSelect; + }; +}; +/** A `PlatformBuilderBinding` edge in the connection. */ +export interface PlatformBuilderBindingEdge { + cursor?: string | null; + /** The `PlatformBuilderBinding` at the end of the edge. */ + node?: PlatformBuilderBinding | null; +} +export type PlatformBuilderBindingEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformBuilderBindingSelect; + }; +}; /** A `PlatformFunctionApiBinding` edge in the connection. */ export interface PlatformFunctionApiBindingEdge { cursor?: string | null; @@ -17690,16 +33964,28 @@ export type PlatformFunctionInvocationAttemptEdgeSelect = { select: PlatformFunctionInvocationAttemptSelect; }; }; -/** A `PlatformFunctionInvocation` edge in the connection. */ -export interface PlatformFunctionInvocationEdge { +/** A `PlatformImage` edge in the connection. */ +export interface PlatformImageEdge { cursor?: string | null; - /** The `PlatformFunctionInvocation` at the end of the edge. */ - node?: PlatformFunctionInvocation | null; + /** The `PlatformImage` at the end of the edge. */ + node?: PlatformImage | null; } -export type PlatformFunctionInvocationEdgeSelect = { +export type PlatformImageEdgeSelect = { cursor?: boolean; node?: { - select: PlatformFunctionInvocationSelect; + select: PlatformImageSelect; + }; +}; +/** A `PlatformImageGrant` edge in the connection. */ +export interface PlatformImageGrantEdge { + cursor?: string | null; + /** The `PlatformImageGrant` at the end of the edge. */ + node?: PlatformImageGrant | null; +} +export type PlatformImageGrantEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformImageGrantSelect; }; }; /** A `PlatformInfraObject` edge in the connection. */ @@ -17738,6 +34024,30 @@ export type PlatformInfraStoreEdgeSelect = { select: PlatformInfraStoreSelect; }; }; +/** A `PlatformK8sResourceKind` edge in the connection. */ +export interface PlatformK8sResourceKindEdge { + cursor?: string | null; + /** The `PlatformK8sResourceKind` at the end of the edge. */ + node?: PlatformK8sResourceKind | null; +} +export type PlatformK8sResourceKindEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformK8sResourceKindSelect; + }; +}; +/** A `PlatformK8sSpecRule` edge in the connection. */ +export interface PlatformK8sSpecRuleEdge { + cursor?: string | null; + /** The `PlatformK8sSpecRule` at the end of the edge. */ + node?: PlatformK8sSpecRule | null; +} +export type PlatformK8sSpecRuleEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformK8sSpecRuleSelect; + }; +}; /** A `PlatformNamespace` edge in the connection. */ export interface PlatformNamespaceEdge { cursor?: string | null; @@ -17762,6 +34072,162 @@ export type PlatformNamespaceEventEdgeSelect = { select: PlatformNamespaceEventSelect; }; }; +/** A `PlatformProposalComment` edge in the connection. */ +export interface PlatformProposalCommentEdge { + cursor?: string | null; + /** The `PlatformProposalComment` at the end of the edge. */ + node?: PlatformProposalComment | null; +} +export type PlatformProposalCommentEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformProposalCommentSelect; + }; +}; +/** A `PlatformProposal` edge in the connection. */ +export interface PlatformProposalEdge { + cursor?: string | null; + /** The `PlatformProposal` at the end of the edge. */ + node?: PlatformProposal | null; +} +export type PlatformProposalEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformProposalSelect; + }; +}; +/** A `PlatformProposalFileView` edge in the connection. */ +export interface PlatformProposalFileViewEdge { + cursor?: string | null; + /** The `PlatformProposalFileView` at the end of the edge. */ + node?: PlatformProposalFileView | null; +} +export type PlatformProposalFileViewEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformProposalFileViewSelect; + }; +}; +/** A `PlatformProposalReaction` edge in the connection. */ +export interface PlatformProposalReactionEdge { + cursor?: string | null; + /** The `PlatformProposalReaction` at the end of the edge. */ + node?: PlatformProposalReaction | null; +} +export type PlatformProposalReactionEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformProposalReactionSelect; + }; +}; +/** A `PlatformProposalReview` edge in the connection. */ +export interface PlatformProposalReviewEdge { + cursor?: string | null; + /** The `PlatformProposalReview` at the end of the edge. */ + node?: PlatformProposalReview | null; +} +export type PlatformProposalReviewEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformProposalReviewSelect; + }; +}; +/** A `PlatformProposalsChunk` edge in the connection. */ +export interface PlatformProposalsChunkEdge { + cursor?: string | null; + /** The `PlatformProposalsChunk` at the end of the edge. */ + node?: PlatformProposalsChunk | null; +} +export type PlatformProposalsChunkEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformProposalsChunkSelect; + }; +}; +/** A `PlatformRegistryBinding` edge in the connection. */ +export interface PlatformRegistryBindingEdge { + cursor?: string | null; + /** The `PlatformRegistryBinding` at the end of the edge. */ + node?: PlatformRegistryBinding | null; +} +export type PlatformRegistryBindingEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformRegistryBindingSelect; + }; +}; +/** A `PlatformRegistry` edge in the connection. */ +export interface PlatformRegistryEdge { + cursor?: string | null; + /** The `PlatformRegistry` at the end of the edge. */ + node?: PlatformRegistry | null; +} +export type PlatformRegistryEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformRegistrySelect; + }; +}; +/** A `PlatformRegistryGrant` edge in the connection. */ +export interface PlatformRegistryGrantEdge { + cursor?: string | null; + /** The `PlatformRegistryGrant` at the end of the edge. */ + node?: PlatformRegistryGrant | null; +} +export type PlatformRegistryGrantEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformRegistryGrantSelect; + }; +}; +/** A `PlatformRepository` edge in the connection. */ +export interface PlatformRepositoryEdge { + cursor?: string | null; + /** The `PlatformRepository` at the end of the edge. */ + node?: PlatformRepository | null; +} +export type PlatformRepositoryEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformRepositorySelect; + }; +}; +/** A `PlatformRepositoryEvent` edge in the connection. */ +export interface PlatformRepositoryEventEdge { + cursor?: string | null; + /** The `PlatformRepositoryEvent` at the end of the edge. */ + node?: PlatformRepositoryEvent | null; +} +export type PlatformRepositoryEventEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformRepositoryEventSelect; + }; +}; +/** A `PlatformRepositoryRequiredCheck` edge in the connection. */ +export interface PlatformRepositoryRequiredCheckEdge { + cursor?: string | null; + /** The `PlatformRepositoryRequiredCheck` at the end of the edge. */ + node?: PlatformRepositoryRequiredCheck | null; +} +export type PlatformRepositoryRequiredCheckEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformRepositoryRequiredCheckSelect; + }; +}; +/** A `PlatformRepositoryWorkflow` edge in the connection. */ +export interface PlatformRepositoryWorkflowEdge { + cursor?: string | null; + /** The `PlatformRepositoryWorkflow` at the end of the edge. */ + node?: PlatformRepositoryWorkflow | null; +} +export type PlatformRepositoryWorkflowEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformRepositoryWorkflowSelect; + }; +}; /** A `PlatformResource` edge in the connection. */ export interface PlatformResourceEdge { cursor?: string | null; @@ -17870,6 +34336,162 @@ export type PlatformWebhookEventEdgeSelect = { select: PlatformWebhookEventSelect; }; }; +/** A `ProposalComment` edge in the connection. */ +export interface ProposalCommentEdge { + cursor?: string | null; + /** The `ProposalComment` at the end of the edge. */ + node?: ProposalComment | null; +} +export type ProposalCommentEdgeSelect = { + cursor?: boolean; + node?: { + select: ProposalCommentSelect; + }; +}; +/** A `Proposal` edge in the connection. */ +export interface ProposalEdge { + cursor?: string | null; + /** The `Proposal` at the end of the edge. */ + node?: Proposal | null; +} +export type ProposalEdgeSelect = { + cursor?: boolean; + node?: { + select: ProposalSelect; + }; +}; +/** A `ProposalFileView` edge in the connection. */ +export interface ProposalFileViewEdge { + cursor?: string | null; + /** The `ProposalFileView` at the end of the edge. */ + node?: ProposalFileView | null; +} +export type ProposalFileViewEdgeSelect = { + cursor?: boolean; + node?: { + select: ProposalFileViewSelect; + }; +}; +/** A `ProposalReaction` edge in the connection. */ +export interface ProposalReactionEdge { + cursor?: string | null; + /** The `ProposalReaction` at the end of the edge. */ + node?: ProposalReaction | null; +} +export type ProposalReactionEdgeSelect = { + cursor?: boolean; + node?: { + select: ProposalReactionSelect; + }; +}; +/** A `ProposalReview` edge in the connection. */ +export interface ProposalReviewEdge { + cursor?: string | null; + /** The `ProposalReview` at the end of the edge. */ + node?: ProposalReview | null; +} +export type ProposalReviewEdgeSelect = { + cursor?: boolean; + node?: { + select: ProposalReviewSelect; + }; +}; +/** A `ProposalsChunk` edge in the connection. */ +export interface ProposalsChunkEdge { + cursor?: string | null; + /** The `ProposalsChunk` at the end of the edge. */ + node?: ProposalsChunk | null; +} +export type ProposalsChunkEdgeSelect = { + cursor?: boolean; + node?: { + select: ProposalsChunkSelect; + }; +}; +/** A `RegistryBinding` edge in the connection. */ +export interface RegistryBindingEdge { + cursor?: string | null; + /** The `RegistryBinding` at the end of the edge. */ + node?: RegistryBinding | null; +} +export type RegistryBindingEdgeSelect = { + cursor?: boolean; + node?: { + select: RegistryBindingSelect; + }; +}; +/** A `Registry` edge in the connection. */ +export interface RegistryEdge { + cursor?: string | null; + /** The `Registry` at the end of the edge. */ + node?: Registry | null; +} +export type RegistryEdgeSelect = { + cursor?: boolean; + node?: { + select: RegistrySelect; + }; +}; +/** A `RegistryGrant` edge in the connection. */ +export interface RegistryGrantEdge { + cursor?: string | null; + /** The `RegistryGrant` at the end of the edge. */ + node?: RegistryGrant | null; +} +export type RegistryGrantEdgeSelect = { + cursor?: boolean; + node?: { + select: RegistryGrantSelect; + }; +}; +/** A `Repository` edge in the connection. */ +export interface RepositoryEdge { + cursor?: string | null; + /** The `Repository` at the end of the edge. */ + node?: Repository | null; +} +export type RepositoryEdgeSelect = { + cursor?: boolean; + node?: { + select: RepositorySelect; + }; +}; +/** A `RepositoryEvent` edge in the connection. */ +export interface RepositoryEventEdge { + cursor?: string | null; + /** The `RepositoryEvent` at the end of the edge. */ + node?: RepositoryEvent | null; +} +export type RepositoryEventEdgeSelect = { + cursor?: boolean; + node?: { + select: RepositoryEventSelect; + }; +}; +/** A `RepositoryRequiredCheck` edge in the connection. */ +export interface RepositoryRequiredCheckEdge { + cursor?: string | null; + /** The `RepositoryRequiredCheck` at the end of the edge. */ + node?: RepositoryRequiredCheck | null; +} +export type RepositoryRequiredCheckEdgeSelect = { + cursor?: boolean; + node?: { + select: RepositoryRequiredCheckSelect; + }; +}; +/** A `RepositoryWorkflow` edge in the connection. */ +export interface RepositoryWorkflowEdge { + cursor?: string | null; + /** The `RepositoryWorkflow` at the end of the edge. */ + node?: RepositoryWorkflow | null; +} +export type RepositoryWorkflowEdgeSelect = { + cursor?: boolean; + node?: { + select: RepositoryWorkflowSelect; + }; +}; /** A `Resource` edge in the connection. */ export interface ResourceEdge { cursor?: string | null; diff --git a/sdk/constructive-sdk/src/compute/orm/models/build.ts b/sdk/constructive-sdk/src/compute/orm/models/build.ts new file mode 100644 index 0000000000..0fd4186ca4 --- /dev/null +++ b/sdk/constructive-sdk/src/compute/orm/models/build.ts @@ -0,0 +1,245 @@ +/** + * Build 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 { + Build, + BuildWithRelations, + BuildSelect, + BuildFilter, + BuildOrderBy, + CreateBuildInput, + UpdateBuildInput, + BuildPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class BuildModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + builds: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'Build', + 'builds', + 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, + }, + 'BuildFilter', + 'BuildOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Build', + fieldName: 'builds', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + build: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'Build', + 'builds', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'BuildFilter', + 'BuildOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Build', + fieldName: 'build', + document, + variables, + transform: (data: { + builds?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + build: data.builds?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + build: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'Build', + 'builds', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'BuildFilter', + 'BuildOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Build', + fieldName: 'build', + document, + variables, + transform: (data: { + builds?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + build: data.builds?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createBuild: { + build: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'Build', + 'createBuild', + 'build', + args.select, + args.data, + 'CreateBuildInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Build', + fieldName: 'createBuild', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + BuildPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateBuild: { + build: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'Build', + 'updateBuild', + 'build', + args.select, + args.where.id, + args.data, + 'UpdateBuildInput', + 'id', + 'buildPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Build', + fieldName: 'updateBuild', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteBuild: { + build: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'Build', + 'deleteBuild', + 'build', + { + id: args.where.id, + }, + 'DeleteBuildInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Build', + fieldName: 'deleteBuild', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/compute/orm/models/buildStep.ts b/sdk/constructive-sdk/src/compute/orm/models/buildStep.ts new file mode 100644 index 0000000000..9f2d7568e9 --- /dev/null +++ b/sdk/constructive-sdk/src/compute/orm/models/buildStep.ts @@ -0,0 +1,250 @@ +/** + * BuildStep 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 { + BuildStep, + BuildStepWithRelations, + BuildStepSelect, + BuildStepFilter, + BuildStepOrderBy, + CreateBuildStepInput, + UpdateBuildStepInput, + BuildStepPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class BuildStepModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + buildSteps: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'BuildStep', + 'buildSteps', + 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, + }, + 'BuildStepFilter', + 'BuildStepOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'BuildStep', + fieldName: 'buildSteps', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + buildStep: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'BuildStep', + 'buildSteps', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'BuildStepFilter', + 'BuildStepOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'BuildStep', + fieldName: 'buildStep', + document, + variables, + transform: (data: { + buildSteps?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + buildStep: data.buildSteps?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + buildStep: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'BuildStep', + 'buildSteps', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'BuildStepFilter', + 'BuildStepOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'BuildStep', + fieldName: 'buildStep', + document, + variables, + transform: (data: { + buildSteps?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + buildStep: data.buildSteps?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createBuildStep: { + buildStep: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'BuildStep', + 'createBuildStep', + 'buildStep', + args.select, + args.data, + 'CreateBuildStepInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'BuildStep', + fieldName: 'createBuildStep', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + recordedAt: string; + }, + BuildStepPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateBuildStep: { + buildStep: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'BuildStep', + 'updateBuildStep', + 'buildStep', + args.select, + args.where.id, + args.data, + 'UpdateBuildStepInput', + 'id', + 'buildStepPatch', + connectionFieldsMap, + { + recordedAt: args.where.recordedAt, + } + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'BuildStep', + fieldName: 'updateBuildStep', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + recordedAt: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteBuildStep: { + buildStep: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'BuildStep', + 'deleteBuildStep', + 'buildStep', + { + id: args.where.id, + recordedAt: args.where.recordedAt, + }, + 'DeleteBuildStepInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'BuildStep', + fieldName: 'deleteBuildStep', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/compute/orm/models/builderBinding.ts b/sdk/constructive-sdk/src/compute/orm/models/builderBinding.ts new file mode 100644 index 0000000000..0d5d7843e3 --- /dev/null +++ b/sdk/constructive-sdk/src/compute/orm/models/builderBinding.ts @@ -0,0 +1,245 @@ +/** + * BuilderBinding 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 { + BuilderBinding, + BuilderBindingWithRelations, + BuilderBindingSelect, + BuilderBindingFilter, + BuilderBindingOrderBy, + CreateBuilderBindingInput, + UpdateBuilderBindingInput, + BuilderBindingPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class BuilderBindingModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + builderBindings: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'BuilderBinding', + 'builderBindings', + 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, + }, + 'BuilderBindingFilter', + 'BuilderBindingOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'BuilderBinding', + fieldName: 'builderBindings', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + builderBinding: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'BuilderBinding', + 'builderBindings', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'BuilderBindingFilter', + 'BuilderBindingOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'BuilderBinding', + fieldName: 'builderBinding', + document, + variables, + transform: (data: { + builderBindings?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + builderBinding: data.builderBindings?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + builderBinding: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'BuilderBinding', + 'builderBindings', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'BuilderBindingFilter', + 'BuilderBindingOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'BuilderBinding', + fieldName: 'builderBinding', + document, + variables, + transform: (data: { + builderBindings?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + builderBinding: data.builderBindings?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createBuilderBinding: { + builderBinding: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'BuilderBinding', + 'createBuilderBinding', + 'builderBinding', + args.select, + args.data, + 'CreateBuilderBindingInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'BuilderBinding', + fieldName: 'createBuilderBinding', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + BuilderBindingPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateBuilderBinding: { + builderBinding: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'BuilderBinding', + 'updateBuilderBinding', + 'builderBinding', + args.select, + args.where.id, + args.data, + 'UpdateBuilderBindingInput', + 'id', + 'builderBindingPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'BuilderBinding', + fieldName: 'updateBuilderBinding', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteBuilderBinding: { + builderBinding: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'BuilderBinding', + 'deleteBuilderBinding', + 'builderBinding', + { + id: args.where.id, + }, + 'DeleteBuilderBindingInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'BuilderBinding', + fieldName: 'deleteBuilderBinding', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/compute/orm/models/databaseFunctionGraph.ts b/sdk/constructive-sdk/src/compute/orm/models/databaseFunctionGraph.ts new file mode 100644 index 0000000000..aa52534b19 --- /dev/null +++ b/sdk/constructive-sdk/src/compute/orm/models/databaseFunctionGraph.ts @@ -0,0 +1,247 @@ +/** + * DatabaseFunctionGraph 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 { + DatabaseFunctionGraph, + DatabaseFunctionGraphWithRelations, + DatabaseFunctionGraphSelect, + DatabaseFunctionGraphFilter, + DatabaseFunctionGraphOrderBy, + CreateDatabaseFunctionGraphInput, + UpdateDatabaseFunctionGraphInput, + DatabaseFunctionGraphPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class DatabaseFunctionGraphModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + databaseFunctionGraphs: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'DatabaseFunctionGraph', + 'databaseFunctionGraphs', + 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, + }, + 'DatabaseFunctionGraphFilter', + 'DatabaseFunctionGraphOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DatabaseFunctionGraph', + fieldName: 'databaseFunctionGraphs', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + databaseFunctionGraph: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'DatabaseFunctionGraph', + 'databaseFunctionGraphs', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'DatabaseFunctionGraphFilter', + 'DatabaseFunctionGraphOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DatabaseFunctionGraph', + fieldName: 'databaseFunctionGraph', + document, + variables, + transform: (data: { + databaseFunctionGraphs?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + databaseFunctionGraph: data.databaseFunctionGraphs?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + databaseFunctionGraph: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'DatabaseFunctionGraph', + 'databaseFunctionGraphs', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'DatabaseFunctionGraphFilter', + 'DatabaseFunctionGraphOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DatabaseFunctionGraph', + fieldName: 'databaseFunctionGraph', + document, + variables, + transform: (data: { + databaseFunctionGraphs?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + databaseFunctionGraph: data.databaseFunctionGraphs?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createDatabaseFunctionGraph: { + databaseFunctionGraph: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'DatabaseFunctionGraph', + 'createDatabaseFunctionGraph', + 'databaseFunctionGraph', + args.select, + args.data, + 'CreateDatabaseFunctionGraphInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DatabaseFunctionGraph', + fieldName: 'createDatabaseFunctionGraph', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + DatabaseFunctionGraphPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateDatabaseFunctionGraph: { + databaseFunctionGraph: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'DatabaseFunctionGraph', + 'updateDatabaseFunctionGraph', + 'databaseFunctionGraph', + args.select, + args.where.id, + args.data, + 'UpdateDatabaseFunctionGraphInput', + 'id', + 'databaseFunctionGraphPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DatabaseFunctionGraph', + fieldName: 'updateDatabaseFunctionGraph', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteDatabaseFunctionGraph: { + databaseFunctionGraph: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'DatabaseFunctionGraph', + 'deleteDatabaseFunctionGraph', + 'databaseFunctionGraph', + { + id: args.where.id, + }, + 'DeleteDatabaseFunctionGraphInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DatabaseFunctionGraph', + fieldName: 'deleteDatabaseFunctionGraph', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/compute/orm/models/databaseFunctionGraphExecution.ts b/sdk/constructive-sdk/src/compute/orm/models/databaseFunctionGraphExecution.ts new file mode 100644 index 0000000000..3f8c7b10ba --- /dev/null +++ b/sdk/constructive-sdk/src/compute/orm/models/databaseFunctionGraphExecution.ts @@ -0,0 +1,278 @@ +/** + * DatabaseFunctionGraphExecution 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 { + DatabaseFunctionGraphExecution, + DatabaseFunctionGraphExecutionWithRelations, + DatabaseFunctionGraphExecutionSelect, + DatabaseFunctionGraphExecutionFilter, + DatabaseFunctionGraphExecutionOrderBy, + CreateDatabaseFunctionGraphExecutionInput, + UpdateDatabaseFunctionGraphExecutionInput, + DatabaseFunctionGraphExecutionPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class DatabaseFunctionGraphExecutionModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs< + S, + DatabaseFunctionGraphExecutionFilter, + DatabaseFunctionGraphExecutionOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + databaseFunctionGraphExecutions: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'DatabaseFunctionGraphExecution', + 'databaseFunctionGraphExecutions', + 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, + }, + 'DatabaseFunctionGraphExecutionFilter', + 'DatabaseFunctionGraphExecutionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DatabaseFunctionGraphExecution', + fieldName: 'databaseFunctionGraphExecutions', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs< + S, + DatabaseFunctionGraphExecutionFilter, + DatabaseFunctionGraphExecutionOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + databaseFunctionGraphExecution: InferSelectResult< + DatabaseFunctionGraphExecutionWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'DatabaseFunctionGraphExecution', + 'databaseFunctionGraphExecutions', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'DatabaseFunctionGraphExecutionFilter', + 'DatabaseFunctionGraphExecutionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DatabaseFunctionGraphExecution', + fieldName: 'databaseFunctionGraphExecution', + document, + variables, + transform: (data: { + databaseFunctionGraphExecutions?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + databaseFunctionGraphExecution: data.databaseFunctionGraphExecutions?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + databaseFunctionGraphExecution: InferSelectResult< + DatabaseFunctionGraphExecutionWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindManyDocument( + 'DatabaseFunctionGraphExecution', + 'databaseFunctionGraphExecutions', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'DatabaseFunctionGraphExecutionFilter', + 'DatabaseFunctionGraphExecutionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DatabaseFunctionGraphExecution', + fieldName: 'databaseFunctionGraphExecution', + document, + variables, + transform: (data: { + databaseFunctionGraphExecutions?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + databaseFunctionGraphExecution: data.databaseFunctionGraphExecutions?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs< + S, + CreateDatabaseFunctionGraphExecutionInput['databaseFunctionGraphExecution'] + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createDatabaseFunctionGraphExecution: { + databaseFunctionGraphExecution: InferSelectResult< + DatabaseFunctionGraphExecutionWithRelations, + S + >; + }; + }> { + const { document, variables } = buildCreateDocument( + 'DatabaseFunctionGraphExecution', + 'createDatabaseFunctionGraphExecution', + 'databaseFunctionGraphExecution', + args.select, + args.data, + 'CreateDatabaseFunctionGraphExecutionInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DatabaseFunctionGraphExecution', + fieldName: 'createDatabaseFunctionGraphExecution', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + startedAt: string; + }, + DatabaseFunctionGraphExecutionPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateDatabaseFunctionGraphExecution: { + databaseFunctionGraphExecution: InferSelectResult< + DatabaseFunctionGraphExecutionWithRelations, + S + >; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'DatabaseFunctionGraphExecution', + 'updateDatabaseFunctionGraphExecution', + 'databaseFunctionGraphExecution', + args.select, + args.where.id, + args.data, + 'UpdateDatabaseFunctionGraphExecutionInput', + 'id', + 'databaseFunctionGraphExecutionPatch', + connectionFieldsMap, + { + startedAt: args.where.startedAt, + } + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DatabaseFunctionGraphExecution', + fieldName: 'updateDatabaseFunctionGraphExecution', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + startedAt: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteDatabaseFunctionGraphExecution: { + databaseFunctionGraphExecution: InferSelectResult< + DatabaseFunctionGraphExecutionWithRelations, + S + >; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'DatabaseFunctionGraphExecution', + 'deleteDatabaseFunctionGraphExecution', + 'databaseFunctionGraphExecution', + { + id: args.where.id, + startedAt: args.where.startedAt, + }, + 'DeleteDatabaseFunctionGraphExecutionInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DatabaseFunctionGraphExecution', + fieldName: 'deleteDatabaseFunctionGraphExecution', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/compute/orm/models/databaseFunctionGraphExecutionNodeState.ts b/sdk/constructive-sdk/src/compute/orm/models/databaseFunctionGraphExecutionNodeState.ts new file mode 100644 index 0000000000..de639c17ae --- /dev/null +++ b/sdk/constructive-sdk/src/compute/orm/models/databaseFunctionGraphExecutionNodeState.ts @@ -0,0 +1,280 @@ +/** + * DatabaseFunctionGraphExecutionNodeState 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 { + DatabaseFunctionGraphExecutionNodeState, + DatabaseFunctionGraphExecutionNodeStateWithRelations, + DatabaseFunctionGraphExecutionNodeStateSelect, + DatabaseFunctionGraphExecutionNodeStateFilter, + DatabaseFunctionGraphExecutionNodeStateOrderBy, + CreateDatabaseFunctionGraphExecutionNodeStateInput, + UpdateDatabaseFunctionGraphExecutionNodeStateInput, + DatabaseFunctionGraphExecutionNodeStatePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class DatabaseFunctionGraphExecutionNodeStateModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs< + S, + DatabaseFunctionGraphExecutionNodeStateFilter, + DatabaseFunctionGraphExecutionNodeStateOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + databaseFunctionGraphExecutionNodeStates: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'DatabaseFunctionGraphExecutionNodeState', + 'databaseFunctionGraphExecutionNodeStates', + 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, + }, + 'DatabaseFunctionGraphExecutionNodeStateFilter', + 'DatabaseFunctionGraphExecutionNodeStateOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DatabaseFunctionGraphExecutionNodeState', + fieldName: 'databaseFunctionGraphExecutionNodeStates', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs< + S, + DatabaseFunctionGraphExecutionNodeStateFilter, + DatabaseFunctionGraphExecutionNodeStateOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + databaseFunctionGraphExecutionNodeState: InferSelectResult< + DatabaseFunctionGraphExecutionNodeStateWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'DatabaseFunctionGraphExecutionNodeState', + 'databaseFunctionGraphExecutionNodeStates', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'DatabaseFunctionGraphExecutionNodeStateFilter', + 'DatabaseFunctionGraphExecutionNodeStateOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DatabaseFunctionGraphExecutionNodeState', + fieldName: 'databaseFunctionGraphExecutionNodeState', + document, + variables, + transform: (data: { + databaseFunctionGraphExecutionNodeStates?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + databaseFunctionGraphExecutionNodeState: + data.databaseFunctionGraphExecutionNodeStates?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + databaseFunctionGraphExecutionNodeState: InferSelectResult< + DatabaseFunctionGraphExecutionNodeStateWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindManyDocument( + 'DatabaseFunctionGraphExecutionNodeState', + 'databaseFunctionGraphExecutionNodeStates', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'DatabaseFunctionGraphExecutionNodeStateFilter', + 'DatabaseFunctionGraphExecutionNodeStateOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DatabaseFunctionGraphExecutionNodeState', + fieldName: 'databaseFunctionGraphExecutionNodeState', + document, + variables, + transform: (data: { + databaseFunctionGraphExecutionNodeStates?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + databaseFunctionGraphExecutionNodeState: + data.databaseFunctionGraphExecutionNodeStates?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs< + S, + CreateDatabaseFunctionGraphExecutionNodeStateInput['databaseFunctionGraphExecutionNodeState'] + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createDatabaseFunctionGraphExecutionNodeState: { + databaseFunctionGraphExecutionNodeState: InferSelectResult< + DatabaseFunctionGraphExecutionNodeStateWithRelations, + S + >; + }; + }> { + const { document, variables } = buildCreateDocument( + 'DatabaseFunctionGraphExecutionNodeState', + 'createDatabaseFunctionGraphExecutionNodeState', + 'databaseFunctionGraphExecutionNodeState', + args.select, + args.data, + 'CreateDatabaseFunctionGraphExecutionNodeStateInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DatabaseFunctionGraphExecutionNodeState', + fieldName: 'createDatabaseFunctionGraphExecutionNodeState', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + createdAt: string; + }, + DatabaseFunctionGraphExecutionNodeStatePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateDatabaseFunctionGraphExecutionNodeState: { + databaseFunctionGraphExecutionNodeState: InferSelectResult< + DatabaseFunctionGraphExecutionNodeStateWithRelations, + S + >; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'DatabaseFunctionGraphExecutionNodeState', + 'updateDatabaseFunctionGraphExecutionNodeState', + 'databaseFunctionGraphExecutionNodeState', + args.select, + args.where.id, + args.data, + 'UpdateDatabaseFunctionGraphExecutionNodeStateInput', + 'id', + 'databaseFunctionGraphExecutionNodeStatePatch', + connectionFieldsMap, + { + createdAt: args.where.createdAt, + } + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DatabaseFunctionGraphExecutionNodeState', + fieldName: 'updateDatabaseFunctionGraphExecutionNodeState', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + createdAt: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteDatabaseFunctionGraphExecutionNodeState: { + databaseFunctionGraphExecutionNodeState: InferSelectResult< + DatabaseFunctionGraphExecutionNodeStateWithRelations, + S + >; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'DatabaseFunctionGraphExecutionNodeState', + 'deleteDatabaseFunctionGraphExecutionNodeState', + 'databaseFunctionGraphExecutionNodeState', + { + id: args.where.id, + createdAt: args.where.createdAt, + }, + 'DeleteDatabaseFunctionGraphExecutionNodeStateInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DatabaseFunctionGraphExecutionNodeState', + fieldName: 'deleteDatabaseFunctionGraphExecutionNodeState', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/compute/orm/models/databaseFunctionGraphExecutionOutput.ts b/sdk/constructive-sdk/src/compute/orm/models/databaseFunctionGraphExecutionOutput.ts new file mode 100644 index 0000000000..b57532be6c --- /dev/null +++ b/sdk/constructive-sdk/src/compute/orm/models/databaseFunctionGraphExecutionOutput.ts @@ -0,0 +1,280 @@ +/** + * DatabaseFunctionGraphExecutionOutput 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 { + DatabaseFunctionGraphExecutionOutput, + DatabaseFunctionGraphExecutionOutputWithRelations, + DatabaseFunctionGraphExecutionOutputSelect, + DatabaseFunctionGraphExecutionOutputFilter, + DatabaseFunctionGraphExecutionOutputOrderBy, + CreateDatabaseFunctionGraphExecutionOutputInput, + UpdateDatabaseFunctionGraphExecutionOutputInput, + DatabaseFunctionGraphExecutionOutputPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class DatabaseFunctionGraphExecutionOutputModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs< + S, + DatabaseFunctionGraphExecutionOutputFilter, + DatabaseFunctionGraphExecutionOutputOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + databaseFunctionGraphExecutionOutputs: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'DatabaseFunctionGraphExecutionOutput', + 'databaseFunctionGraphExecutionOutputs', + 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, + }, + 'DatabaseFunctionGraphExecutionOutputFilter', + 'DatabaseFunctionGraphExecutionOutputOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DatabaseFunctionGraphExecutionOutput', + fieldName: 'databaseFunctionGraphExecutionOutputs', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs< + S, + DatabaseFunctionGraphExecutionOutputFilter, + DatabaseFunctionGraphExecutionOutputOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + databaseFunctionGraphExecutionOutput: InferSelectResult< + DatabaseFunctionGraphExecutionOutputWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'DatabaseFunctionGraphExecutionOutput', + 'databaseFunctionGraphExecutionOutputs', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'DatabaseFunctionGraphExecutionOutputFilter', + 'DatabaseFunctionGraphExecutionOutputOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DatabaseFunctionGraphExecutionOutput', + fieldName: 'databaseFunctionGraphExecutionOutput', + document, + variables, + transform: (data: { + databaseFunctionGraphExecutionOutputs?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + databaseFunctionGraphExecutionOutput: + data.databaseFunctionGraphExecutionOutputs?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + databaseFunctionGraphExecutionOutput: InferSelectResult< + DatabaseFunctionGraphExecutionOutputWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindManyDocument( + 'DatabaseFunctionGraphExecutionOutput', + 'databaseFunctionGraphExecutionOutputs', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'DatabaseFunctionGraphExecutionOutputFilter', + 'DatabaseFunctionGraphExecutionOutputOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DatabaseFunctionGraphExecutionOutput', + fieldName: 'databaseFunctionGraphExecutionOutput', + document, + variables, + transform: (data: { + databaseFunctionGraphExecutionOutputs?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + databaseFunctionGraphExecutionOutput: + data.databaseFunctionGraphExecutionOutputs?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs< + S, + CreateDatabaseFunctionGraphExecutionOutputInput['databaseFunctionGraphExecutionOutput'] + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createDatabaseFunctionGraphExecutionOutput: { + databaseFunctionGraphExecutionOutput: InferSelectResult< + DatabaseFunctionGraphExecutionOutputWithRelations, + S + >; + }; + }> { + const { document, variables } = buildCreateDocument( + 'DatabaseFunctionGraphExecutionOutput', + 'createDatabaseFunctionGraphExecutionOutput', + 'databaseFunctionGraphExecutionOutput', + args.select, + args.data, + 'CreateDatabaseFunctionGraphExecutionOutputInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DatabaseFunctionGraphExecutionOutput', + fieldName: 'createDatabaseFunctionGraphExecutionOutput', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + createdAt: string; + }, + DatabaseFunctionGraphExecutionOutputPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateDatabaseFunctionGraphExecutionOutput: { + databaseFunctionGraphExecutionOutput: InferSelectResult< + DatabaseFunctionGraphExecutionOutputWithRelations, + S + >; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'DatabaseFunctionGraphExecutionOutput', + 'updateDatabaseFunctionGraphExecutionOutput', + 'databaseFunctionGraphExecutionOutput', + args.select, + args.where.id, + args.data, + 'UpdateDatabaseFunctionGraphExecutionOutputInput', + 'id', + 'databaseFunctionGraphExecutionOutputPatch', + connectionFieldsMap, + { + createdAt: args.where.createdAt, + } + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DatabaseFunctionGraphExecutionOutput', + fieldName: 'updateDatabaseFunctionGraphExecutionOutput', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + createdAt: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteDatabaseFunctionGraphExecutionOutput: { + databaseFunctionGraphExecutionOutput: InferSelectResult< + DatabaseFunctionGraphExecutionOutputWithRelations, + S + >; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'DatabaseFunctionGraphExecutionOutput', + 'deleteDatabaseFunctionGraphExecutionOutput', + 'databaseFunctionGraphExecutionOutput', + { + id: args.where.id, + createdAt: args.where.createdAt, + }, + 'DeleteDatabaseFunctionGraphExecutionOutputInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DatabaseFunctionGraphExecutionOutput', + fieldName: 'deleteDatabaseFunctionGraphExecutionOutput', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/compute/orm/models/databaseGraphCommit.ts b/sdk/constructive-sdk/src/compute/orm/models/databaseGraphCommit.ts new file mode 100644 index 0000000000..e6d9bc57d7 --- /dev/null +++ b/sdk/constructive-sdk/src/compute/orm/models/databaseGraphCommit.ts @@ -0,0 +1,250 @@ +/** + * DatabaseGraphCommit 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 { + DatabaseGraphCommit, + DatabaseGraphCommitWithRelations, + DatabaseGraphCommitSelect, + DatabaseGraphCommitFilter, + DatabaseGraphCommitOrderBy, + CreateDatabaseGraphCommitInput, + UpdateDatabaseGraphCommitInput, + DatabaseGraphCommitPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class DatabaseGraphCommitModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + databaseGraphCommits: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'DatabaseGraphCommit', + 'databaseGraphCommits', + 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, + }, + 'DatabaseGraphCommitFilter', + 'DatabaseGraphCommitOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DatabaseGraphCommit', + fieldName: 'databaseGraphCommits', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + databaseGraphCommit: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'DatabaseGraphCommit', + 'databaseGraphCommits', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'DatabaseGraphCommitFilter', + 'DatabaseGraphCommitOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DatabaseGraphCommit', + fieldName: 'databaseGraphCommit', + document, + variables, + transform: (data: { + databaseGraphCommits?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + databaseGraphCommit: data.databaseGraphCommits?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + databaseGraphCommit: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'DatabaseGraphCommit', + 'databaseGraphCommits', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'DatabaseGraphCommitFilter', + 'DatabaseGraphCommitOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DatabaseGraphCommit', + fieldName: 'databaseGraphCommit', + document, + variables, + transform: (data: { + databaseGraphCommits?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + databaseGraphCommit: data.databaseGraphCommits?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createDatabaseGraphCommit: { + databaseGraphCommit: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'DatabaseGraphCommit', + 'createDatabaseGraphCommit', + 'databaseGraphCommit', + args.select, + args.data, + 'CreateDatabaseGraphCommitInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DatabaseGraphCommit', + fieldName: 'createDatabaseGraphCommit', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + databaseId: string; + }, + DatabaseGraphCommitPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateDatabaseGraphCommit: { + databaseGraphCommit: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'DatabaseGraphCommit', + 'updateDatabaseGraphCommit', + 'databaseGraphCommit', + args.select, + args.where.id, + args.data, + 'UpdateDatabaseGraphCommitInput', + 'id', + 'databaseGraphCommitPatch', + connectionFieldsMap, + { + databaseId: args.where.databaseId, + } + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DatabaseGraphCommit', + fieldName: 'updateDatabaseGraphCommit', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + databaseId: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteDatabaseGraphCommit: { + databaseGraphCommit: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'DatabaseGraphCommit', + 'deleteDatabaseGraphCommit', + 'databaseGraphCommit', + { + id: args.where.id, + databaseId: args.where.databaseId, + }, + 'DeleteDatabaseGraphCommitInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DatabaseGraphCommit', + fieldName: 'deleteDatabaseGraphCommit', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/compute/orm/models/databaseGraphGetAllTreeNodesRecord.ts b/sdk/constructive-sdk/src/compute/orm/models/databaseGraphGetAllTreeNodesRecord.ts new file mode 100644 index 0000000000..f3a254b255 --- /dev/null +++ b/sdk/constructive-sdk/src/compute/orm/models/databaseGraphGetAllTreeNodesRecord.ts @@ -0,0 +1,153 @@ +/** + * DatabaseGraphGetAllTreeNodesRecord 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 { + DatabaseGraphGetAllTreeNodesRecord, + DatabaseGraphGetAllTreeNodesRecordWithRelations, + DatabaseGraphGetAllTreeNodesRecordSelect, + DatabaseGraphGetAllTreeNodesRecordFilter, + DatabaseGraphGetAllTreeNodesRecordsOrderBy, + CreateDatabaseGraphGetAllTreeNodesRecordInput, + UpdateDatabaseGraphGetAllTreeNodesRecordInput, + DatabaseGraphGetAllTreeNodesRecordPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class DatabaseGraphGetAllTreeNodesRecordModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs< + S, + DatabaseGraphGetAllTreeNodesRecordFilter, + DatabaseGraphGetAllTreeNodesRecordsOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + databaseGraphGetAllTreeNodes: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'DatabaseGraphGetAllTreeNodesRecord', + 'databaseGraphGetAllTreeNodes', + 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, + }, + 'DatabaseGraphGetAllTreeNodesRecordFilter', + 'DatabaseGraphGetAllTreeNodesRecordsOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DatabaseGraphGetAllTreeNodesRecord', + fieldName: 'databaseGraphGetAllTreeNodes', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs< + S, + DatabaseGraphGetAllTreeNodesRecordFilter, + DatabaseGraphGetAllTreeNodesRecordsOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + databaseGraphGetAllTreeNodesRecord: InferSelectResult< + DatabaseGraphGetAllTreeNodesRecordWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'DatabaseGraphGetAllTreeNodesRecord', + 'databaseGraphGetAllTreeNodes', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'DatabaseGraphGetAllTreeNodesRecordFilter', + 'DatabaseGraphGetAllTreeNodesRecordsOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DatabaseGraphGetAllTreeNodesRecord', + fieldName: 'databaseGraphGetAllTreeNodesRecord', + document, + variables, + transform: (data: { + databaseGraphGetAllTreeNodes?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + databaseGraphGetAllTreeNodesRecord: data.databaseGraphGetAllTreeNodes?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs< + S, + CreateDatabaseGraphGetAllTreeNodesRecordInput['databaseGraphGetAllTreeNodesRecord'] + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createDatabaseGraphGetAllTreeNodesRecord: { + databaseGraphGetAllTreeNodesRecord: InferSelectResult< + DatabaseGraphGetAllTreeNodesRecordWithRelations, + S + >; + }; + }> { + const { document, variables } = buildCreateDocument( + 'DatabaseGraphGetAllTreeNodesRecord', + 'createDatabaseGraphGetAllTreeNodesRecord', + 'databaseGraphGetAllTreeNodesRecord', + args.select, + args.data, + 'CreateDatabaseGraphGetAllTreeNodesRecordInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DatabaseGraphGetAllTreeNodesRecord', + fieldName: 'createDatabaseGraphGetAllTreeNodesRecord', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/compute/orm/models/databaseGraphObject.ts b/sdk/constructive-sdk/src/compute/orm/models/databaseGraphObject.ts new file mode 100644 index 0000000000..01dbd896a2 --- /dev/null +++ b/sdk/constructive-sdk/src/compute/orm/models/databaseGraphObject.ts @@ -0,0 +1,236 @@ +/** + * DatabaseGraphObject 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 { + DatabaseGraphObject, + DatabaseGraphObjectWithRelations, + DatabaseGraphObjectSelect, + DatabaseGraphObjectFilter, + DatabaseGraphObjectOrderBy, + CreateDatabaseGraphObjectInput, + UpdateDatabaseGraphObjectInput, + DatabaseGraphObjectPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class DatabaseGraphObjectModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + databaseGraphObjects: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'DatabaseGraphObject', + 'databaseGraphObjects', + 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, + }, + 'DatabaseGraphObjectFilter', + 'DatabaseGraphObjectOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DatabaseGraphObject', + fieldName: 'databaseGraphObjects', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + databaseGraphObject: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'DatabaseGraphObject', + 'databaseGraphObjects', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'DatabaseGraphObjectFilter', + 'DatabaseGraphObjectOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DatabaseGraphObject', + fieldName: 'databaseGraphObject', + document, + variables, + transform: (data: { + databaseGraphObjects?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + databaseGraphObject: data.databaseGraphObjects?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + databaseGraphObject: InferSelectResult | null; + }> { + const { document, variables } = buildFindOneDocument( + 'DatabaseGraphObject', + 'databaseGraphGetNodeAtPath', + args.id, + args.select, + 'id', + 'UUID!', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DatabaseGraphObject', + fieldName: 'databaseGraphObject', + document, + variables, + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createDatabaseGraphObject: { + databaseGraphObject: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'DatabaseGraphObject', + 'createDatabaseGraphObject', + 'databaseGraphObject', + args.select, + args.data, + 'CreateDatabaseGraphObjectInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DatabaseGraphObject', + fieldName: 'createDatabaseGraphObject', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + databaseId: string; + }, + DatabaseGraphObjectPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateDatabaseGraphObject: { + databaseGraphObject: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'DatabaseGraphObject', + 'updateDatabaseGraphObject', + 'databaseGraphObject', + args.select, + args.where.id, + args.data, + 'UpdateDatabaseGraphObjectInput', + 'id', + 'databaseGraphObjectPatch', + connectionFieldsMap, + { + databaseId: args.where.databaseId, + } + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DatabaseGraphObject', + fieldName: 'updateDatabaseGraphObject', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + databaseId: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteDatabaseGraphObject: { + databaseGraphObject: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'DatabaseGraphObject', + 'deleteDatabaseGraphObject', + 'databaseGraphObject', + { + id: args.where.id, + databaseId: args.where.databaseId, + }, + 'DeleteDatabaseGraphObjectInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DatabaseGraphObject', + fieldName: 'deleteDatabaseGraphObject', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/compute/orm/models/databaseGraphRef.ts b/sdk/constructive-sdk/src/compute/orm/models/databaseGraphRef.ts new file mode 100644 index 0000000000..966974aed6 --- /dev/null +++ b/sdk/constructive-sdk/src/compute/orm/models/databaseGraphRef.ts @@ -0,0 +1,250 @@ +/** + * DatabaseGraphRef 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 { + DatabaseGraphRef, + DatabaseGraphRefWithRelations, + DatabaseGraphRefSelect, + DatabaseGraphRefFilter, + DatabaseGraphRefOrderBy, + CreateDatabaseGraphRefInput, + UpdateDatabaseGraphRefInput, + DatabaseGraphRefPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class DatabaseGraphRefModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + databaseGraphRefs: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'DatabaseGraphRef', + 'databaseGraphRefs', + 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, + }, + 'DatabaseGraphRefFilter', + 'DatabaseGraphRefOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DatabaseGraphRef', + fieldName: 'databaseGraphRefs', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + databaseGraphRef: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'DatabaseGraphRef', + 'databaseGraphRefs', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'DatabaseGraphRefFilter', + 'DatabaseGraphRefOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DatabaseGraphRef', + fieldName: 'databaseGraphRef', + document, + variables, + transform: (data: { + databaseGraphRefs?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + databaseGraphRef: data.databaseGraphRefs?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + databaseGraphRef: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'DatabaseGraphRef', + 'databaseGraphRefs', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'DatabaseGraphRefFilter', + 'DatabaseGraphRefOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DatabaseGraphRef', + fieldName: 'databaseGraphRef', + document, + variables, + transform: (data: { + databaseGraphRefs?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + databaseGraphRef: data.databaseGraphRefs?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createDatabaseGraphRef: { + databaseGraphRef: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'DatabaseGraphRef', + 'createDatabaseGraphRef', + 'databaseGraphRef', + args.select, + args.data, + 'CreateDatabaseGraphRefInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DatabaseGraphRef', + fieldName: 'createDatabaseGraphRef', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + databaseId: string; + }, + DatabaseGraphRefPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateDatabaseGraphRef: { + databaseGraphRef: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'DatabaseGraphRef', + 'updateDatabaseGraphRef', + 'databaseGraphRef', + args.select, + args.where.id, + args.data, + 'UpdateDatabaseGraphRefInput', + 'id', + 'databaseGraphRefPatch', + connectionFieldsMap, + { + databaseId: args.where.databaseId, + } + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DatabaseGraphRef', + fieldName: 'updateDatabaseGraphRef', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + databaseId: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteDatabaseGraphRef: { + databaseGraphRef: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'DatabaseGraphRef', + 'deleteDatabaseGraphRef', + 'databaseGraphRef', + { + id: args.where.id, + databaseId: args.where.databaseId, + }, + 'DeleteDatabaseGraphRefInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DatabaseGraphRef', + fieldName: 'deleteDatabaseGraphRef', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/compute/orm/models/databaseGraphStore.ts b/sdk/constructive-sdk/src/compute/orm/models/databaseGraphStore.ts new file mode 100644 index 0000000000..76a87f5e30 --- /dev/null +++ b/sdk/constructive-sdk/src/compute/orm/models/databaseGraphStore.ts @@ -0,0 +1,245 @@ +/** + * DatabaseGraphStore 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 { + DatabaseGraphStore, + DatabaseGraphStoreWithRelations, + DatabaseGraphStoreSelect, + DatabaseGraphStoreFilter, + DatabaseGraphStoreOrderBy, + CreateDatabaseGraphStoreInput, + UpdateDatabaseGraphStoreInput, + DatabaseGraphStorePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class DatabaseGraphStoreModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + databaseGraphStores: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'DatabaseGraphStore', + 'databaseGraphStores', + 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, + }, + 'DatabaseGraphStoreFilter', + 'DatabaseGraphStoreOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DatabaseGraphStore', + fieldName: 'databaseGraphStores', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + databaseGraphStore: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'DatabaseGraphStore', + 'databaseGraphStores', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'DatabaseGraphStoreFilter', + 'DatabaseGraphStoreOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DatabaseGraphStore', + fieldName: 'databaseGraphStore', + document, + variables, + transform: (data: { + databaseGraphStores?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + databaseGraphStore: data.databaseGraphStores?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + databaseGraphStore: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'DatabaseGraphStore', + 'databaseGraphStores', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'DatabaseGraphStoreFilter', + 'DatabaseGraphStoreOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DatabaseGraphStore', + fieldName: 'databaseGraphStore', + document, + variables, + transform: (data: { + databaseGraphStores?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + databaseGraphStore: data.databaseGraphStores?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createDatabaseGraphStore: { + databaseGraphStore: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'DatabaseGraphStore', + 'createDatabaseGraphStore', + 'databaseGraphStore', + args.select, + args.data, + 'CreateDatabaseGraphStoreInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DatabaseGraphStore', + fieldName: 'createDatabaseGraphStore', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + DatabaseGraphStorePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateDatabaseGraphStore: { + databaseGraphStore: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'DatabaseGraphStore', + 'updateDatabaseGraphStore', + 'databaseGraphStore', + args.select, + args.where.id, + args.data, + 'UpdateDatabaseGraphStoreInput', + 'id', + 'databaseGraphStorePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DatabaseGraphStore', + fieldName: 'updateDatabaseGraphStore', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteDatabaseGraphStore: { + databaseGraphStore: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'DatabaseGraphStore', + 'deleteDatabaseGraphStore', + 'databaseGraphStore', + { + id: args.where.id, + }, + 'DeleteDatabaseGraphStoreInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DatabaseGraphStore', + fieldName: 'deleteDatabaseGraphStore', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/compute/orm/models/image.ts b/sdk/constructive-sdk/src/compute/orm/models/image.ts new file mode 100644 index 0000000000..6006cbd8ac --- /dev/null +++ b/sdk/constructive-sdk/src/compute/orm/models/image.ts @@ -0,0 +1,245 @@ +/** + * Image 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 { + Image, + ImageWithRelations, + ImageSelect, + ImageFilter, + ImageOrderBy, + CreateImageInput, + UpdateImageInput, + ImagePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class ImageModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + images: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'Image', + 'images', + 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, + }, + 'ImageFilter', + 'ImageOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Image', + fieldName: 'images', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + image: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'Image', + 'images', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'ImageFilter', + 'ImageOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Image', + fieldName: 'image', + document, + variables, + transform: (data: { + images?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + image: data.images?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + image: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'Image', + 'images', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'ImageFilter', + 'ImageOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Image', + fieldName: 'image', + document, + variables, + transform: (data: { + images?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + image: data.images?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createImage: { + image: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'Image', + 'createImage', + 'image', + args.select, + args.data, + 'CreateImageInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Image', + fieldName: 'createImage', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + ImagePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateImage: { + image: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'Image', + 'updateImage', + 'image', + args.select, + args.where.id, + args.data, + 'UpdateImageInput', + 'id', + 'imagePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Image', + fieldName: 'updateImage', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteImage: { + image: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'Image', + 'deleteImage', + 'image', + { + id: args.where.id, + }, + 'DeleteImageInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Image', + fieldName: 'deleteImage', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/compute/orm/models/imageGrant.ts b/sdk/constructive-sdk/src/compute/orm/models/imageGrant.ts new file mode 100644 index 0000000000..362d482c78 --- /dev/null +++ b/sdk/constructive-sdk/src/compute/orm/models/imageGrant.ts @@ -0,0 +1,245 @@ +/** + * ImageGrant 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 { + ImageGrant, + ImageGrantWithRelations, + ImageGrantSelect, + ImageGrantFilter, + ImageGrantOrderBy, + CreateImageGrantInput, + UpdateImageGrantInput, + ImageGrantPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class ImageGrantModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + imageGrants: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'ImageGrant', + 'imageGrants', + 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, + }, + 'ImageGrantFilter', + 'ImageGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ImageGrant', + fieldName: 'imageGrants', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + imageGrant: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'ImageGrant', + 'imageGrants', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'ImageGrantFilter', + 'ImageGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ImageGrant', + fieldName: 'imageGrant', + document, + variables, + transform: (data: { + imageGrants?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + imageGrant: data.imageGrants?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + imageGrant: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'ImageGrant', + 'imageGrants', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'ImageGrantFilter', + 'ImageGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ImageGrant', + fieldName: 'imageGrant', + document, + variables, + transform: (data: { + imageGrants?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + imageGrant: data.imageGrants?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createImageGrant: { + imageGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'ImageGrant', + 'createImageGrant', + 'imageGrant', + args.select, + args.data, + 'CreateImageGrantInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ImageGrant', + fieldName: 'createImageGrant', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + ImageGrantPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateImageGrant: { + imageGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'ImageGrant', + 'updateImageGrant', + 'imageGrant', + args.select, + args.where.id, + args.data, + 'UpdateImageGrantInput', + 'id', + 'imageGrantPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ImageGrant', + fieldName: 'updateImageGrant', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteImageGrant: { + imageGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'ImageGrant', + 'deleteImageGrant', + 'imageGrant', + { + id: args.where.id, + }, + 'DeleteImageGrantInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ImageGrant', + fieldName: 'deleteImageGrant', + 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 bb1916cea6..9a7f46374d 100644 --- a/sdk/constructive-sdk/src/compute/orm/models/index.ts +++ b/sdk/constructive-sdk/src/compute/orm/models/index.ts @@ -3,7 +3,19 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ +export { BuildModel } from './build'; +export { BuildStepModel } from './buildStep'; +export { BuilderBindingModel } from './builderBinding'; export { ContentPresetModel } from './contentPreset'; +export { DatabaseFunctionGraphModel } from './databaseFunctionGraph'; +export { DatabaseFunctionGraphExecutionModel } from './databaseFunctionGraphExecution'; +export { DatabaseFunctionGraphExecutionNodeStateModel } from './databaseFunctionGraphExecutionNodeState'; +export { DatabaseFunctionGraphExecutionOutputModel } from './databaseFunctionGraphExecutionOutput'; +export { DatabaseGraphCommitModel } from './databaseGraphCommit'; +export { DatabaseGraphGetAllTreeNodesRecordModel } from './databaseGraphGetAllTreeNodesRecord'; +export { DatabaseGraphObjectModel } from './databaseGraphObject'; +export { DatabaseGraphRefModel } from './databaseGraphRef'; +export { DatabaseGraphStoreModel } from './databaseGraphStore'; export { DbPresetModel } from './dbPreset'; export { FunctionApiBindingModel } from './functionApiBinding'; export { FunctionCapabilityBindingModel } from './functionCapabilityBinding'; @@ -22,6 +34,8 @@ export { FunctionGraphStoreModel } from './functionGraphStore'; export { FunctionInvocationAttemptModel } from './functionInvocationAttempt'; export { FunctionInvocationModel } from './functionInvocation'; export { GetAllTreeNodesRecordModel } from './getAllTreeNodesRecord'; +export { ImageModel } from './image'; +export { ImageGrantModel } from './imageGrant'; export { InfraCommitModel } from './infraCommit'; export { InfraGetAllTreeNodesRecordModel } from './infraGetAllTreeNodesRecord'; export { InfraObjectModel } from './infraObject'; @@ -30,6 +44,9 @@ export { InfraStoreModel } from './infraStore'; export { IntegrationProviderModel } from './integrationProvider'; export { NamespaceModel } from './namespace'; export { NamespaceEventModel } from './namespaceEvent'; +export { PlatformBuildModel } from './platformBuild'; +export { PlatformBuildStepModel } from './platformBuildStep'; +export { PlatformBuilderBindingModel } from './platformBuilderBinding'; export { PlatformFunctionApiBindingModel } from './platformFunctionApiBinding'; export { PlatformFunctionCapabilityBindingModel } from './platformFunctionCapabilityBinding'; export { PlatformFunctionDefinitionModel } from './platformFunctionDefinition'; @@ -38,18 +55,36 @@ export { PlatformFunctionDeploymentEventModel } from './platformFunctionDeployme export { PlatformFunctionExecutionLogModel } from './platformFunctionExecutionLog'; export { PlatformFunctionInvocationAttemptModel } from './platformFunctionInvocationAttempt'; export { PlatformFunctionInvocationModel } from './platformFunctionInvocation'; +export { PlatformImageModel } from './platformImage'; +export { PlatformImageGrantModel } from './platformImageGrant'; export { PlatformInfraCommitModel } from './platformInfraCommit'; export { PlatformInfraGetAllTreeNodesRecordModel } from './platformInfraGetAllTreeNodesRecord'; export { PlatformInfraObjectModel } from './platformInfraObject'; export { PlatformInfraRefModel } from './platformInfraRef'; export { PlatformInfraStoreModel } from './platformInfraStore'; +export { PlatformK8sResourceKindModel } from './platformK8sResourceKind'; +export { PlatformK8sSpecRuleModel } from './platformK8sSpecRule'; export { PlatformNamespaceModel } from './platformNamespace'; export { PlatformNamespaceEventModel } from './platformNamespaceEvent'; +export { PlatformProposalCommentModel } from './platformProposalComment'; +export { PlatformProposalModel } from './platformProposal'; +export { PlatformProposalFileViewModel } from './platformProposalFileView'; +export { PlatformProposalReactionModel } from './platformProposalReaction'; +export { PlatformProposalReviewModel } from './platformProposalReview'; +export { PlatformProposalsChunkModel } from './platformProposalsChunk'; +export { PlatformRegistryBindingModel } from './platformRegistryBinding'; +export { PlatformRegistryModel } from './platformRegistry'; +export { PlatformRegistryGrantModel } from './platformRegistryGrant'; +export { PlatformRepositoryModel } from './platformRepository'; +export { PlatformRepositoryEventModel } from './platformRepositoryEvent'; +export { PlatformRepositoryRequiredCheckModel } from './platformRepositoryRequiredCheck'; +export { PlatformRepositoryWorkflowModel } from './platformRepositoryWorkflow'; export { PlatformResourceModel } from './platformResource'; export { PlatformResourceDeclaredCapacityModel } from './platformResourceDeclaredCapacity'; export { PlatformResourceDefinitionModel } from './platformResourceDefinition'; export { PlatformResourceEventModel } from './platformResourceEvent'; export { PlatformResourceInstallationModel } from './platformResourceInstallation'; +export { PlatformResourceObservedStorageModel } from './platformResourceObservedStorage'; export { PlatformResourceStatusCheckModel } from './platformResourceStatusCheck'; export { PlatformResourceUsageLogModel } from './platformResourceUsageLog'; export { PlatformResourceUsageSummaryModel } from './platformResourceUsageSummary'; @@ -59,11 +94,25 @@ export { PlatformResourcesRequirementsStateModel } from './platformResourcesRequ export { PlatformResourcesResolvedRequirementModel } from './platformResourcesResolvedRequirement'; export { PlatformWebhookEndpointModel } from './platformWebhookEndpoint'; export { PlatformWebhookEventModel } from './platformWebhookEvent'; +export { ProposalCommentModel } from './proposalComment'; +export { ProposalModel } from './proposal'; +export { ProposalFileViewModel } from './proposalFileView'; +export { ProposalReactionModel } from './proposalReaction'; +export { ProposalReviewModel } from './proposalReview'; +export { ProposalsChunkModel } from './proposalsChunk'; +export { RegistryBindingModel } from './registryBinding'; +export { RegistryModel } from './registry'; +export { RegistryGrantModel } from './registryGrant'; +export { RepositoryModel } from './repository'; +export { RepositoryEventModel } from './repositoryEvent'; +export { RepositoryRequiredCheckModel } from './repositoryRequiredCheck'; +export { RepositoryWorkflowModel } from './repositoryWorkflow'; export { ResourceModel } from './resource'; export { ResourceDeclaredCapacityModel } from './resourceDeclaredCapacity'; export { ResourceDefinitionModel } from './resourceDefinition'; export { ResourceEventModel } from './resourceEvent'; export { ResourceInstallationModel } from './resourceInstallation'; +export { ResourceObservedStorageModel } from './resourceObservedStorage'; export { ResourceStatusCheckModel } from './resourceStatusCheck'; export { ResourceUsageLogModel } from './resourceUsageLog'; export { ResourceUsageSummaryModel } from './resourceUsageSummary'; diff --git a/sdk/constructive-sdk/src/compute/orm/models/platformBuild.ts b/sdk/constructive-sdk/src/compute/orm/models/platformBuild.ts new file mode 100644 index 0000000000..93c10d494b --- /dev/null +++ b/sdk/constructive-sdk/src/compute/orm/models/platformBuild.ts @@ -0,0 +1,245 @@ +/** + * PlatformBuild 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 { + PlatformBuild, + PlatformBuildWithRelations, + PlatformBuildSelect, + PlatformBuildFilter, + PlatformBuildOrderBy, + CreatePlatformBuildInput, + UpdatePlatformBuildInput, + PlatformBuildPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformBuildModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformBuilds: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformBuild', + 'platformBuilds', + 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, + }, + 'PlatformBuildFilter', + 'PlatformBuildOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformBuild', + fieldName: 'platformBuilds', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformBuild: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformBuild', + 'platformBuilds', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformBuildFilter', + 'PlatformBuildOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformBuild', + fieldName: 'platformBuild', + document, + variables, + transform: (data: { + platformBuilds?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformBuild: data.platformBuilds?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformBuild: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformBuild', + 'platformBuilds', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformBuildFilter', + 'PlatformBuildOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformBuild', + fieldName: 'platformBuild', + document, + variables, + transform: (data: { + platformBuilds?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformBuild: data.platformBuilds?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformBuild: { + platformBuild: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformBuild', + 'createPlatformBuild', + 'platformBuild', + args.select, + args.data, + 'CreatePlatformBuildInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformBuild', + fieldName: 'createPlatformBuild', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformBuildPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformBuild: { + platformBuild: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformBuild', + 'updatePlatformBuild', + 'platformBuild', + args.select, + args.where.id, + args.data, + 'UpdatePlatformBuildInput', + 'id', + 'platformBuildPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformBuild', + fieldName: 'updatePlatformBuild', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformBuild: { + platformBuild: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformBuild', + 'deletePlatformBuild', + 'platformBuild', + { + id: args.where.id, + }, + 'DeletePlatformBuildInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformBuild', + fieldName: 'deletePlatformBuild', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/compute/orm/models/platformBuildStep.ts b/sdk/constructive-sdk/src/compute/orm/models/platformBuildStep.ts new file mode 100644 index 0000000000..24a49677c0 --- /dev/null +++ b/sdk/constructive-sdk/src/compute/orm/models/platformBuildStep.ts @@ -0,0 +1,250 @@ +/** + * PlatformBuildStep 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 { + PlatformBuildStep, + PlatformBuildStepWithRelations, + PlatformBuildStepSelect, + PlatformBuildStepFilter, + PlatformBuildStepOrderBy, + CreatePlatformBuildStepInput, + UpdatePlatformBuildStepInput, + PlatformBuildStepPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformBuildStepModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformBuildSteps: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformBuildStep', + 'platformBuildSteps', + 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, + }, + 'PlatformBuildStepFilter', + 'PlatformBuildStepOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformBuildStep', + fieldName: 'platformBuildSteps', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformBuildStep: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformBuildStep', + 'platformBuildSteps', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformBuildStepFilter', + 'PlatformBuildStepOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformBuildStep', + fieldName: 'platformBuildStep', + document, + variables, + transform: (data: { + platformBuildSteps?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformBuildStep: data.platformBuildSteps?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformBuildStep: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformBuildStep', + 'platformBuildSteps', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformBuildStepFilter', + 'PlatformBuildStepOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformBuildStep', + fieldName: 'platformBuildStep', + document, + variables, + transform: (data: { + platformBuildSteps?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformBuildStep: data.platformBuildSteps?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformBuildStep: { + platformBuildStep: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformBuildStep', + 'createPlatformBuildStep', + 'platformBuildStep', + args.select, + args.data, + 'CreatePlatformBuildStepInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformBuildStep', + fieldName: 'createPlatformBuildStep', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + recordedAt: string; + }, + PlatformBuildStepPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformBuildStep: { + platformBuildStep: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformBuildStep', + 'updatePlatformBuildStep', + 'platformBuildStep', + args.select, + args.where.id, + args.data, + 'UpdatePlatformBuildStepInput', + 'id', + 'platformBuildStepPatch', + connectionFieldsMap, + { + recordedAt: args.where.recordedAt, + } + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformBuildStep', + fieldName: 'updatePlatformBuildStep', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + recordedAt: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformBuildStep: { + platformBuildStep: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformBuildStep', + 'deletePlatformBuildStep', + 'platformBuildStep', + { + id: args.where.id, + recordedAt: args.where.recordedAt, + }, + 'DeletePlatformBuildStepInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformBuildStep', + fieldName: 'deletePlatformBuildStep', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/compute/orm/models/platformBuilderBinding.ts b/sdk/constructive-sdk/src/compute/orm/models/platformBuilderBinding.ts new file mode 100644 index 0000000000..09a8daa1ed --- /dev/null +++ b/sdk/constructive-sdk/src/compute/orm/models/platformBuilderBinding.ts @@ -0,0 +1,247 @@ +/** + * PlatformBuilderBinding 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 { + PlatformBuilderBinding, + PlatformBuilderBindingWithRelations, + PlatformBuilderBindingSelect, + PlatformBuilderBindingFilter, + PlatformBuilderBindingOrderBy, + CreatePlatformBuilderBindingInput, + UpdatePlatformBuilderBindingInput, + PlatformBuilderBindingPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformBuilderBindingModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformBuilderBindings: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformBuilderBinding', + 'platformBuilderBindings', + 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, + }, + 'PlatformBuilderBindingFilter', + 'PlatformBuilderBindingOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformBuilderBinding', + fieldName: 'platformBuilderBindings', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformBuilderBinding: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformBuilderBinding', + 'platformBuilderBindings', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformBuilderBindingFilter', + 'PlatformBuilderBindingOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformBuilderBinding', + fieldName: 'platformBuilderBinding', + document, + variables, + transform: (data: { + platformBuilderBindings?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformBuilderBinding: data.platformBuilderBindings?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformBuilderBinding: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformBuilderBinding', + 'platformBuilderBindings', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformBuilderBindingFilter', + 'PlatformBuilderBindingOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformBuilderBinding', + fieldName: 'platformBuilderBinding', + document, + variables, + transform: (data: { + platformBuilderBindings?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformBuilderBinding: data.platformBuilderBindings?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformBuilderBinding: { + platformBuilderBinding: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformBuilderBinding', + 'createPlatformBuilderBinding', + 'platformBuilderBinding', + args.select, + args.data, + 'CreatePlatformBuilderBindingInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformBuilderBinding', + fieldName: 'createPlatformBuilderBinding', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformBuilderBindingPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformBuilderBinding: { + platformBuilderBinding: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformBuilderBinding', + 'updatePlatformBuilderBinding', + 'platformBuilderBinding', + args.select, + args.where.id, + args.data, + 'UpdatePlatformBuilderBindingInput', + 'id', + 'platformBuilderBindingPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformBuilderBinding', + fieldName: 'updatePlatformBuilderBinding', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformBuilderBinding: { + platformBuilderBinding: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformBuilderBinding', + 'deletePlatformBuilderBinding', + 'platformBuilderBinding', + { + id: args.where.id, + }, + 'DeletePlatformBuilderBindingInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformBuilderBinding', + fieldName: 'deletePlatformBuilderBinding', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/compute/orm/models/platformImage.ts b/sdk/constructive-sdk/src/compute/orm/models/platformImage.ts new file mode 100644 index 0000000000..6034dea979 --- /dev/null +++ b/sdk/constructive-sdk/src/compute/orm/models/platformImage.ts @@ -0,0 +1,245 @@ +/** + * PlatformImage 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 { + PlatformImage, + PlatformImageWithRelations, + PlatformImageSelect, + PlatformImageFilter, + PlatformImageOrderBy, + CreatePlatformImageInput, + UpdatePlatformImageInput, + PlatformImagePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformImageModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformImages: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformImage', + 'platformImages', + 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, + }, + 'PlatformImageFilter', + 'PlatformImageOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformImage', + fieldName: 'platformImages', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformImage: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformImage', + 'platformImages', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformImageFilter', + 'PlatformImageOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformImage', + fieldName: 'platformImage', + document, + variables, + transform: (data: { + platformImages?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformImage: data.platformImages?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformImage: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformImage', + 'platformImages', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformImageFilter', + 'PlatformImageOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformImage', + fieldName: 'platformImage', + document, + variables, + transform: (data: { + platformImages?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformImage: data.platformImages?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformImage: { + platformImage: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformImage', + 'createPlatformImage', + 'platformImage', + args.select, + args.data, + 'CreatePlatformImageInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformImage', + fieldName: 'createPlatformImage', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformImagePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformImage: { + platformImage: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformImage', + 'updatePlatformImage', + 'platformImage', + args.select, + args.where.id, + args.data, + 'UpdatePlatformImageInput', + 'id', + 'platformImagePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformImage', + fieldName: 'updatePlatformImage', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformImage: { + platformImage: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformImage', + 'deletePlatformImage', + 'platformImage', + { + id: args.where.id, + }, + 'DeletePlatformImageInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformImage', + fieldName: 'deletePlatformImage', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/compute/orm/models/platformImageGrant.ts b/sdk/constructive-sdk/src/compute/orm/models/platformImageGrant.ts new file mode 100644 index 0000000000..e8cdfc6ac5 --- /dev/null +++ b/sdk/constructive-sdk/src/compute/orm/models/platformImageGrant.ts @@ -0,0 +1,245 @@ +/** + * PlatformImageGrant 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 { + PlatformImageGrant, + PlatformImageGrantWithRelations, + PlatformImageGrantSelect, + PlatformImageGrantFilter, + PlatformImageGrantOrderBy, + CreatePlatformImageGrantInput, + UpdatePlatformImageGrantInput, + PlatformImageGrantPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformImageGrantModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformImageGrants: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformImageGrant', + 'platformImageGrants', + 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, + }, + 'PlatformImageGrantFilter', + 'PlatformImageGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformImageGrant', + fieldName: 'platformImageGrants', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformImageGrant: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformImageGrant', + 'platformImageGrants', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformImageGrantFilter', + 'PlatformImageGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformImageGrant', + fieldName: 'platformImageGrant', + document, + variables, + transform: (data: { + platformImageGrants?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformImageGrant: data.platformImageGrants?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformImageGrant: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformImageGrant', + 'platformImageGrants', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformImageGrantFilter', + 'PlatformImageGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformImageGrant', + fieldName: 'platformImageGrant', + document, + variables, + transform: (data: { + platformImageGrants?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformImageGrant: data.platformImageGrants?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformImageGrant: { + platformImageGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformImageGrant', + 'createPlatformImageGrant', + 'platformImageGrant', + args.select, + args.data, + 'CreatePlatformImageGrantInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformImageGrant', + fieldName: 'createPlatformImageGrant', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformImageGrantPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformImageGrant: { + platformImageGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformImageGrant', + 'updatePlatformImageGrant', + 'platformImageGrant', + args.select, + args.where.id, + args.data, + 'UpdatePlatformImageGrantInput', + 'id', + 'platformImageGrantPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformImageGrant', + fieldName: 'updatePlatformImageGrant', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformImageGrant: { + platformImageGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformImageGrant', + 'deletePlatformImageGrant', + 'platformImageGrant', + { + id: args.where.id, + }, + 'DeletePlatformImageGrantInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformImageGrant', + fieldName: 'deletePlatformImageGrant', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/compute/orm/models/platformK8sResourceKind.ts b/sdk/constructive-sdk/src/compute/orm/models/platformK8sResourceKind.ts new file mode 100644 index 0000000000..e6c0883fad --- /dev/null +++ b/sdk/constructive-sdk/src/compute/orm/models/platformK8sResourceKind.ts @@ -0,0 +1,247 @@ +/** + * PlatformK8sResourceKind 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 { + PlatformK8sResourceKind, + PlatformK8sResourceKindWithRelations, + PlatformK8sResourceKindSelect, + PlatformK8sResourceKindFilter, + PlatformK8sResourceKindOrderBy, + CreatePlatformK8sResourceKindInput, + UpdatePlatformK8sResourceKindInput, + PlatformK8sResourceKindPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformK8sResourceKindModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformK8sResourceKinds: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformK8sResourceKind', + 'platformK8sResourceKinds', + 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, + }, + 'PlatformK8sResourceKindFilter', + 'PlatformK8sResourceKindOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformK8sResourceKind', + fieldName: 'platformK8sResourceKinds', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformK8sResourceKind: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformK8sResourceKind', + 'platformK8sResourceKinds', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformK8sResourceKindFilter', + 'PlatformK8sResourceKindOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformK8sResourceKind', + fieldName: 'platformK8sResourceKind', + document, + variables, + transform: (data: { + platformK8sResourceKinds?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformK8sResourceKind: data.platformK8sResourceKinds?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformK8sResourceKind: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformK8sResourceKind', + 'platformK8sResourceKinds', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformK8sResourceKindFilter', + 'PlatformK8sResourceKindOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformK8sResourceKind', + fieldName: 'platformK8sResourceKind', + document, + variables, + transform: (data: { + platformK8sResourceKinds?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformK8sResourceKind: data.platformK8sResourceKinds?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformK8sResourceKind: { + platformK8sResourceKind: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformK8sResourceKind', + 'createPlatformK8sResourceKind', + 'platformK8sResourceKind', + args.select, + args.data, + 'CreatePlatformK8sResourceKindInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformK8sResourceKind', + fieldName: 'createPlatformK8sResourceKind', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformK8sResourceKindPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformK8sResourceKind: { + platformK8sResourceKind: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformK8sResourceKind', + 'updatePlatformK8sResourceKind', + 'platformK8sResourceKind', + args.select, + args.where.id, + args.data, + 'UpdatePlatformK8sResourceKindInput', + 'id', + 'platformK8sResourceKindPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformK8sResourceKind', + fieldName: 'updatePlatformK8sResourceKind', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformK8sResourceKind: { + platformK8sResourceKind: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformK8sResourceKind', + 'deletePlatformK8sResourceKind', + 'platformK8sResourceKind', + { + id: args.where.id, + }, + 'DeletePlatformK8sResourceKindInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformK8sResourceKind', + fieldName: 'deletePlatformK8sResourceKind', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/compute/orm/models/platformK8sSpecRule.ts b/sdk/constructive-sdk/src/compute/orm/models/platformK8sSpecRule.ts new file mode 100644 index 0000000000..d2ef98632d --- /dev/null +++ b/sdk/constructive-sdk/src/compute/orm/models/platformK8sSpecRule.ts @@ -0,0 +1,245 @@ +/** + * PlatformK8sSpecRule 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 { + PlatformK8sSpecRule, + PlatformK8sSpecRuleWithRelations, + PlatformK8sSpecRuleSelect, + PlatformK8sSpecRuleFilter, + PlatformK8sSpecRuleOrderBy, + CreatePlatformK8sSpecRuleInput, + UpdatePlatformK8sSpecRuleInput, + PlatformK8sSpecRulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformK8sSpecRuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformK8sSpecRules: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformK8sSpecRule', + 'platformK8sSpecRules', + 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, + }, + 'PlatformK8sSpecRuleFilter', + 'PlatformK8sSpecRuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformK8sSpecRule', + fieldName: 'platformK8sSpecRules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformK8sSpecRule: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformK8sSpecRule', + 'platformK8sSpecRules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformK8sSpecRuleFilter', + 'PlatformK8sSpecRuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformK8sSpecRule', + fieldName: 'platformK8sSpecRule', + document, + variables, + transform: (data: { + platformK8sSpecRules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformK8sSpecRule: data.platformK8sSpecRules?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformK8sSpecRule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformK8sSpecRule', + 'platformK8sSpecRules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformK8sSpecRuleFilter', + 'PlatformK8sSpecRuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformK8sSpecRule', + fieldName: 'platformK8sSpecRule', + document, + variables, + transform: (data: { + platformK8sSpecRules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformK8sSpecRule: data.platformK8sSpecRules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformK8sSpecRule: { + platformK8sSpecRule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformK8sSpecRule', + 'createPlatformK8sSpecRule', + 'platformK8sSpecRule', + args.select, + args.data, + 'CreatePlatformK8sSpecRuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformK8sSpecRule', + fieldName: 'createPlatformK8sSpecRule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformK8sSpecRulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformK8sSpecRule: { + platformK8sSpecRule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformK8sSpecRule', + 'updatePlatformK8sSpecRule', + 'platformK8sSpecRule', + args.select, + args.where.id, + args.data, + 'UpdatePlatformK8sSpecRuleInput', + 'id', + 'platformK8sSpecRulePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformK8sSpecRule', + fieldName: 'updatePlatformK8sSpecRule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformK8sSpecRule: { + platformK8sSpecRule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformK8sSpecRule', + 'deletePlatformK8sSpecRule', + 'platformK8sSpecRule', + { + id: args.where.id, + }, + 'DeletePlatformK8sSpecRuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformK8sSpecRule', + fieldName: 'deletePlatformK8sSpecRule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/compute/orm/models/platformProposal.ts b/sdk/constructive-sdk/src/compute/orm/models/platformProposal.ts new file mode 100644 index 0000000000..69a87096be --- /dev/null +++ b/sdk/constructive-sdk/src/compute/orm/models/platformProposal.ts @@ -0,0 +1,245 @@ +/** + * PlatformProposal 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 { + PlatformProposal, + PlatformProposalWithRelations, + PlatformProposalSelect, + PlatformProposalFilter, + PlatformProposalOrderBy, + CreatePlatformProposalInput, + UpdatePlatformProposalInput, + PlatformProposalPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformProposalModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformProposals: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformProposal', + 'platformProposals', + 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, + }, + 'PlatformProposalFilter', + 'PlatformProposalOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformProposal', + fieldName: 'platformProposals', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformProposal: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformProposal', + 'platformProposals', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformProposalFilter', + 'PlatformProposalOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformProposal', + fieldName: 'platformProposal', + document, + variables, + transform: (data: { + platformProposals?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformProposal: data.platformProposals?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformProposal: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformProposal', + 'platformProposals', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformProposalFilter', + 'PlatformProposalOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformProposal', + fieldName: 'platformProposal', + document, + variables, + transform: (data: { + platformProposals?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformProposal: data.platformProposals?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformProposal: { + platformProposal: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformProposal', + 'createPlatformProposal', + 'platformProposal', + args.select, + args.data, + 'CreatePlatformProposalInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformProposal', + fieldName: 'createPlatformProposal', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformProposalPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformProposal: { + platformProposal: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformProposal', + 'updatePlatformProposal', + 'platformProposal', + args.select, + args.where.id, + args.data, + 'UpdatePlatformProposalInput', + 'id', + 'platformProposalPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformProposal', + fieldName: 'updatePlatformProposal', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformProposal: { + platformProposal: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformProposal', + 'deletePlatformProposal', + 'platformProposal', + { + id: args.where.id, + }, + 'DeletePlatformProposalInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformProposal', + fieldName: 'deletePlatformProposal', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/compute/orm/models/platformProposalComment.ts b/sdk/constructive-sdk/src/compute/orm/models/platformProposalComment.ts new file mode 100644 index 0000000000..adaf1e6852 --- /dev/null +++ b/sdk/constructive-sdk/src/compute/orm/models/platformProposalComment.ts @@ -0,0 +1,247 @@ +/** + * PlatformProposalComment 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 { + PlatformProposalComment, + PlatformProposalCommentWithRelations, + PlatformProposalCommentSelect, + PlatformProposalCommentFilter, + PlatformProposalCommentOrderBy, + CreatePlatformProposalCommentInput, + UpdatePlatformProposalCommentInput, + PlatformProposalCommentPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformProposalCommentModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformProposalComments: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformProposalComment', + 'platformProposalComments', + 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, + }, + 'PlatformProposalCommentFilter', + 'PlatformProposalCommentOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformProposalComment', + fieldName: 'platformProposalComments', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformProposalComment: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformProposalComment', + 'platformProposalComments', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformProposalCommentFilter', + 'PlatformProposalCommentOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformProposalComment', + fieldName: 'platformProposalComment', + document, + variables, + transform: (data: { + platformProposalComments?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformProposalComment: data.platformProposalComments?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformProposalComment: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformProposalComment', + 'platformProposalComments', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformProposalCommentFilter', + 'PlatformProposalCommentOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformProposalComment', + fieldName: 'platformProposalComment', + document, + variables, + transform: (data: { + platformProposalComments?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformProposalComment: data.platformProposalComments?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformProposalComment: { + platformProposalComment: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformProposalComment', + 'createPlatformProposalComment', + 'platformProposalComment', + args.select, + args.data, + 'CreatePlatformProposalCommentInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformProposalComment', + fieldName: 'createPlatformProposalComment', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformProposalCommentPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformProposalComment: { + platformProposalComment: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformProposalComment', + 'updatePlatformProposalComment', + 'platformProposalComment', + args.select, + args.where.id, + args.data, + 'UpdatePlatformProposalCommentInput', + 'id', + 'platformProposalCommentPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformProposalComment', + fieldName: 'updatePlatformProposalComment', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformProposalComment: { + platformProposalComment: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformProposalComment', + 'deletePlatformProposalComment', + 'platformProposalComment', + { + id: args.where.id, + }, + 'DeletePlatformProposalCommentInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformProposalComment', + fieldName: 'deletePlatformProposalComment', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/compute/orm/models/platformProposalFileView.ts b/sdk/constructive-sdk/src/compute/orm/models/platformProposalFileView.ts new file mode 100644 index 0000000000..b92ac46ee4 --- /dev/null +++ b/sdk/constructive-sdk/src/compute/orm/models/platformProposalFileView.ts @@ -0,0 +1,247 @@ +/** + * PlatformProposalFileView 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 { + PlatformProposalFileView, + PlatformProposalFileViewWithRelations, + PlatformProposalFileViewSelect, + PlatformProposalFileViewFilter, + PlatformProposalFileViewOrderBy, + CreatePlatformProposalFileViewInput, + UpdatePlatformProposalFileViewInput, + PlatformProposalFileViewPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformProposalFileViewModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformProposalFileViews: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformProposalFileView', + 'platformProposalFileViews', + 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, + }, + 'PlatformProposalFileViewFilter', + 'PlatformProposalFileViewOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformProposalFileView', + fieldName: 'platformProposalFileViews', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformProposalFileView: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformProposalFileView', + 'platformProposalFileViews', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformProposalFileViewFilter', + 'PlatformProposalFileViewOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformProposalFileView', + fieldName: 'platformProposalFileView', + document, + variables, + transform: (data: { + platformProposalFileViews?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformProposalFileView: data.platformProposalFileViews?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformProposalFileView: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformProposalFileView', + 'platformProposalFileViews', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformProposalFileViewFilter', + 'PlatformProposalFileViewOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformProposalFileView', + fieldName: 'platformProposalFileView', + document, + variables, + transform: (data: { + platformProposalFileViews?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformProposalFileView: data.platformProposalFileViews?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformProposalFileView: { + platformProposalFileView: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformProposalFileView', + 'createPlatformProposalFileView', + 'platformProposalFileView', + args.select, + args.data, + 'CreatePlatformProposalFileViewInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformProposalFileView', + fieldName: 'createPlatformProposalFileView', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformProposalFileViewPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformProposalFileView: { + platformProposalFileView: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformProposalFileView', + 'updatePlatformProposalFileView', + 'platformProposalFileView', + args.select, + args.where.id, + args.data, + 'UpdatePlatformProposalFileViewInput', + 'id', + 'platformProposalFileViewPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformProposalFileView', + fieldName: 'updatePlatformProposalFileView', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformProposalFileView: { + platformProposalFileView: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformProposalFileView', + 'deletePlatformProposalFileView', + 'platformProposalFileView', + { + id: args.where.id, + }, + 'DeletePlatformProposalFileViewInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformProposalFileView', + fieldName: 'deletePlatformProposalFileView', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/compute/orm/models/platformProposalReaction.ts b/sdk/constructive-sdk/src/compute/orm/models/platformProposalReaction.ts new file mode 100644 index 0000000000..3df81a6deb --- /dev/null +++ b/sdk/constructive-sdk/src/compute/orm/models/platformProposalReaction.ts @@ -0,0 +1,247 @@ +/** + * PlatformProposalReaction 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 { + PlatformProposalReaction, + PlatformProposalReactionWithRelations, + PlatformProposalReactionSelect, + PlatformProposalReactionFilter, + PlatformProposalReactionOrderBy, + CreatePlatformProposalReactionInput, + UpdatePlatformProposalReactionInput, + PlatformProposalReactionPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformProposalReactionModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformProposalReactions: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformProposalReaction', + 'platformProposalReactions', + 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, + }, + 'PlatformProposalReactionFilter', + 'PlatformProposalReactionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformProposalReaction', + fieldName: 'platformProposalReactions', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformProposalReaction: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformProposalReaction', + 'platformProposalReactions', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformProposalReactionFilter', + 'PlatformProposalReactionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformProposalReaction', + fieldName: 'platformProposalReaction', + document, + variables, + transform: (data: { + platformProposalReactions?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformProposalReaction: data.platformProposalReactions?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformProposalReaction: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformProposalReaction', + 'platformProposalReactions', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformProposalReactionFilter', + 'PlatformProposalReactionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformProposalReaction', + fieldName: 'platformProposalReaction', + document, + variables, + transform: (data: { + platformProposalReactions?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformProposalReaction: data.platformProposalReactions?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformProposalReaction: { + platformProposalReaction: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformProposalReaction', + 'createPlatformProposalReaction', + 'platformProposalReaction', + args.select, + args.data, + 'CreatePlatformProposalReactionInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformProposalReaction', + fieldName: 'createPlatformProposalReaction', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformProposalReactionPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformProposalReaction: { + platformProposalReaction: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformProposalReaction', + 'updatePlatformProposalReaction', + 'platformProposalReaction', + args.select, + args.where.id, + args.data, + 'UpdatePlatformProposalReactionInput', + 'id', + 'platformProposalReactionPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformProposalReaction', + fieldName: 'updatePlatformProposalReaction', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformProposalReaction: { + platformProposalReaction: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformProposalReaction', + 'deletePlatformProposalReaction', + 'platformProposalReaction', + { + id: args.where.id, + }, + 'DeletePlatformProposalReactionInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformProposalReaction', + fieldName: 'deletePlatformProposalReaction', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/compute/orm/models/platformProposalReview.ts b/sdk/constructive-sdk/src/compute/orm/models/platformProposalReview.ts new file mode 100644 index 0000000000..1922f027ab --- /dev/null +++ b/sdk/constructive-sdk/src/compute/orm/models/platformProposalReview.ts @@ -0,0 +1,247 @@ +/** + * PlatformProposalReview 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 { + PlatformProposalReview, + PlatformProposalReviewWithRelations, + PlatformProposalReviewSelect, + PlatformProposalReviewFilter, + PlatformProposalReviewOrderBy, + CreatePlatformProposalReviewInput, + UpdatePlatformProposalReviewInput, + PlatformProposalReviewPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformProposalReviewModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformProposalReviews: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformProposalReview', + 'platformProposalReviews', + 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, + }, + 'PlatformProposalReviewFilter', + 'PlatformProposalReviewOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformProposalReview', + fieldName: 'platformProposalReviews', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformProposalReview: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformProposalReview', + 'platformProposalReviews', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformProposalReviewFilter', + 'PlatformProposalReviewOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformProposalReview', + fieldName: 'platformProposalReview', + document, + variables, + transform: (data: { + platformProposalReviews?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformProposalReview: data.platformProposalReviews?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformProposalReview: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformProposalReview', + 'platformProposalReviews', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformProposalReviewFilter', + 'PlatformProposalReviewOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformProposalReview', + fieldName: 'platformProposalReview', + document, + variables, + transform: (data: { + platformProposalReviews?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformProposalReview: data.platformProposalReviews?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformProposalReview: { + platformProposalReview: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformProposalReview', + 'createPlatformProposalReview', + 'platformProposalReview', + args.select, + args.data, + 'CreatePlatformProposalReviewInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformProposalReview', + fieldName: 'createPlatformProposalReview', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformProposalReviewPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformProposalReview: { + platformProposalReview: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformProposalReview', + 'updatePlatformProposalReview', + 'platformProposalReview', + args.select, + args.where.id, + args.data, + 'UpdatePlatformProposalReviewInput', + 'id', + 'platformProposalReviewPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformProposalReview', + fieldName: 'updatePlatformProposalReview', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformProposalReview: { + platformProposalReview: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformProposalReview', + 'deletePlatformProposalReview', + 'platformProposalReview', + { + id: args.where.id, + }, + 'DeletePlatformProposalReviewInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformProposalReview', + fieldName: 'deletePlatformProposalReview', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/compute/orm/models/platformProposalsChunk.ts b/sdk/constructive-sdk/src/compute/orm/models/platformProposalsChunk.ts new file mode 100644 index 0000000000..f7cd052dd3 --- /dev/null +++ b/sdk/constructive-sdk/src/compute/orm/models/platformProposalsChunk.ts @@ -0,0 +1,247 @@ +/** + * PlatformProposalsChunk 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 { + PlatformProposalsChunk, + PlatformProposalsChunkWithRelations, + PlatformProposalsChunkSelect, + PlatformProposalsChunkFilter, + PlatformProposalsChunkOrderBy, + CreatePlatformProposalsChunkInput, + UpdatePlatformProposalsChunkInput, + PlatformProposalsChunkPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformProposalsChunkModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformProposalsChunks: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformProposalsChunk', + 'platformProposalsChunks', + 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, + }, + 'PlatformProposalsChunkFilter', + 'PlatformProposalsChunkOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformProposalsChunk', + fieldName: 'platformProposalsChunks', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformProposalsChunk: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformProposalsChunk', + 'platformProposalsChunks', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformProposalsChunkFilter', + 'PlatformProposalsChunkOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformProposalsChunk', + fieldName: 'platformProposalsChunk', + document, + variables, + transform: (data: { + platformProposalsChunks?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformProposalsChunk: data.platformProposalsChunks?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformProposalsChunk: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformProposalsChunk', + 'platformProposalsChunks', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformProposalsChunkFilter', + 'PlatformProposalsChunkOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformProposalsChunk', + fieldName: 'platformProposalsChunk', + document, + variables, + transform: (data: { + platformProposalsChunks?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformProposalsChunk: data.platformProposalsChunks?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformProposalsChunk: { + platformProposalsChunk: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformProposalsChunk', + 'createPlatformProposalsChunk', + 'platformProposalsChunk', + args.select, + args.data, + 'CreatePlatformProposalsChunkInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformProposalsChunk', + fieldName: 'createPlatformProposalsChunk', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformProposalsChunkPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformProposalsChunk: { + platformProposalsChunk: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformProposalsChunk', + 'updatePlatformProposalsChunk', + 'platformProposalsChunk', + args.select, + args.where.id, + args.data, + 'UpdatePlatformProposalsChunkInput', + 'id', + 'platformProposalsChunkPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformProposalsChunk', + fieldName: 'updatePlatformProposalsChunk', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformProposalsChunk: { + platformProposalsChunk: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformProposalsChunk', + 'deletePlatformProposalsChunk', + 'platformProposalsChunk', + { + id: args.where.id, + }, + 'DeletePlatformProposalsChunkInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformProposalsChunk', + fieldName: 'deletePlatformProposalsChunk', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/compute/orm/models/platformRegistry.ts b/sdk/constructive-sdk/src/compute/orm/models/platformRegistry.ts new file mode 100644 index 0000000000..8d7284f780 --- /dev/null +++ b/sdk/constructive-sdk/src/compute/orm/models/platformRegistry.ts @@ -0,0 +1,245 @@ +/** + * PlatformRegistry 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 { + PlatformRegistry, + PlatformRegistryWithRelations, + PlatformRegistrySelect, + PlatformRegistryFilter, + PlatformRegistryOrderBy, + CreatePlatformRegistryInput, + UpdatePlatformRegistryInput, + PlatformRegistryPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformRegistryModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformRegistries: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformRegistry', + 'platformRegistries', + 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, + }, + 'PlatformRegistryFilter', + 'PlatformRegistryOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformRegistry', + fieldName: 'platformRegistries', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformRegistry: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformRegistry', + 'platformRegistries', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformRegistryFilter', + 'PlatformRegistryOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformRegistry', + fieldName: 'platformRegistry', + document, + variables, + transform: (data: { + platformRegistries?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformRegistry: data.platformRegistries?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformRegistry: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformRegistry', + 'platformRegistries', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformRegistryFilter', + 'PlatformRegistryOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformRegistry', + fieldName: 'platformRegistry', + document, + variables, + transform: (data: { + platformRegistries?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformRegistry: data.platformRegistries?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformRegistry: { + platformRegistry: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformRegistry', + 'createPlatformRegistry', + 'platformRegistry', + args.select, + args.data, + 'CreatePlatformRegistryInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformRegistry', + fieldName: 'createPlatformRegistry', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformRegistryPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformRegistry: { + platformRegistry: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformRegistry', + 'updatePlatformRegistry', + 'platformRegistry', + args.select, + args.where.id, + args.data, + 'UpdatePlatformRegistryInput', + 'id', + 'platformRegistryPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformRegistry', + fieldName: 'updatePlatformRegistry', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformRegistry: { + platformRegistry: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformRegistry', + 'deletePlatformRegistry', + 'platformRegistry', + { + id: args.where.id, + }, + 'DeletePlatformRegistryInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformRegistry', + fieldName: 'deletePlatformRegistry', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/compute/orm/models/platformRegistryBinding.ts b/sdk/constructive-sdk/src/compute/orm/models/platformRegistryBinding.ts new file mode 100644 index 0000000000..45be7743fa --- /dev/null +++ b/sdk/constructive-sdk/src/compute/orm/models/platformRegistryBinding.ts @@ -0,0 +1,247 @@ +/** + * PlatformRegistryBinding 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 { + PlatformRegistryBinding, + PlatformRegistryBindingWithRelations, + PlatformRegistryBindingSelect, + PlatformRegistryBindingFilter, + PlatformRegistryBindingOrderBy, + CreatePlatformRegistryBindingInput, + UpdatePlatformRegistryBindingInput, + PlatformRegistryBindingPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformRegistryBindingModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformRegistryBindings: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformRegistryBinding', + 'platformRegistryBindings', + 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, + }, + 'PlatformRegistryBindingFilter', + 'PlatformRegistryBindingOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformRegistryBinding', + fieldName: 'platformRegistryBindings', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformRegistryBinding: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformRegistryBinding', + 'platformRegistryBindings', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformRegistryBindingFilter', + 'PlatformRegistryBindingOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformRegistryBinding', + fieldName: 'platformRegistryBinding', + document, + variables, + transform: (data: { + platformRegistryBindings?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformRegistryBinding: data.platformRegistryBindings?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformRegistryBinding: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformRegistryBinding', + 'platformRegistryBindings', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformRegistryBindingFilter', + 'PlatformRegistryBindingOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformRegistryBinding', + fieldName: 'platformRegistryBinding', + document, + variables, + transform: (data: { + platformRegistryBindings?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformRegistryBinding: data.platformRegistryBindings?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformRegistryBinding: { + platformRegistryBinding: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformRegistryBinding', + 'createPlatformRegistryBinding', + 'platformRegistryBinding', + args.select, + args.data, + 'CreatePlatformRegistryBindingInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformRegistryBinding', + fieldName: 'createPlatformRegistryBinding', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformRegistryBindingPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformRegistryBinding: { + platformRegistryBinding: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformRegistryBinding', + 'updatePlatformRegistryBinding', + 'platformRegistryBinding', + args.select, + args.where.id, + args.data, + 'UpdatePlatformRegistryBindingInput', + 'id', + 'platformRegistryBindingPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformRegistryBinding', + fieldName: 'updatePlatformRegistryBinding', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformRegistryBinding: { + platformRegistryBinding: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformRegistryBinding', + 'deletePlatformRegistryBinding', + 'platformRegistryBinding', + { + id: args.where.id, + }, + 'DeletePlatformRegistryBindingInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformRegistryBinding', + fieldName: 'deletePlatformRegistryBinding', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/compute/orm/models/platformRegistryGrant.ts b/sdk/constructive-sdk/src/compute/orm/models/platformRegistryGrant.ts new file mode 100644 index 0000000000..02e09c662b --- /dev/null +++ b/sdk/constructive-sdk/src/compute/orm/models/platformRegistryGrant.ts @@ -0,0 +1,247 @@ +/** + * PlatformRegistryGrant 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 { + PlatformRegistryGrant, + PlatformRegistryGrantWithRelations, + PlatformRegistryGrantSelect, + PlatformRegistryGrantFilter, + PlatformRegistryGrantOrderBy, + CreatePlatformRegistryGrantInput, + UpdatePlatformRegistryGrantInput, + PlatformRegistryGrantPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformRegistryGrantModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformRegistryGrants: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformRegistryGrant', + 'platformRegistryGrants', + 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, + }, + 'PlatformRegistryGrantFilter', + 'PlatformRegistryGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformRegistryGrant', + fieldName: 'platformRegistryGrants', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformRegistryGrant: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformRegistryGrant', + 'platformRegistryGrants', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformRegistryGrantFilter', + 'PlatformRegistryGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformRegistryGrant', + fieldName: 'platformRegistryGrant', + document, + variables, + transform: (data: { + platformRegistryGrants?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformRegistryGrant: data.platformRegistryGrants?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformRegistryGrant: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformRegistryGrant', + 'platformRegistryGrants', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformRegistryGrantFilter', + 'PlatformRegistryGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformRegistryGrant', + fieldName: 'platformRegistryGrant', + document, + variables, + transform: (data: { + platformRegistryGrants?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformRegistryGrant: data.platformRegistryGrants?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformRegistryGrant: { + platformRegistryGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformRegistryGrant', + 'createPlatformRegistryGrant', + 'platformRegistryGrant', + args.select, + args.data, + 'CreatePlatformRegistryGrantInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformRegistryGrant', + fieldName: 'createPlatformRegistryGrant', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformRegistryGrantPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformRegistryGrant: { + platformRegistryGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformRegistryGrant', + 'updatePlatformRegistryGrant', + 'platformRegistryGrant', + args.select, + args.where.id, + args.data, + 'UpdatePlatformRegistryGrantInput', + 'id', + 'platformRegistryGrantPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformRegistryGrant', + fieldName: 'updatePlatformRegistryGrant', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformRegistryGrant: { + platformRegistryGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformRegistryGrant', + 'deletePlatformRegistryGrant', + 'platformRegistryGrant', + { + id: args.where.id, + }, + 'DeletePlatformRegistryGrantInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformRegistryGrant', + fieldName: 'deletePlatformRegistryGrant', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/compute/orm/models/platformRepository.ts b/sdk/constructive-sdk/src/compute/orm/models/platformRepository.ts new file mode 100644 index 0000000000..d24c3b7098 --- /dev/null +++ b/sdk/constructive-sdk/src/compute/orm/models/platformRepository.ts @@ -0,0 +1,245 @@ +/** + * PlatformRepository 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 { + PlatformRepository, + PlatformRepositoryWithRelations, + PlatformRepositorySelect, + PlatformRepositoryFilter, + PlatformRepositoryOrderBy, + CreatePlatformRepositoryInput, + UpdatePlatformRepositoryInput, + PlatformRepositoryPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformRepositoryModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformRepositories: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformRepository', + 'platformRepositories', + 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, + }, + 'PlatformRepositoryFilter', + 'PlatformRepositoryOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformRepository', + fieldName: 'platformRepositories', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformRepository: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformRepository', + 'platformRepositories', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformRepositoryFilter', + 'PlatformRepositoryOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformRepository', + fieldName: 'platformRepository', + document, + variables, + transform: (data: { + platformRepositories?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformRepository: data.platformRepositories?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformRepository: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformRepository', + 'platformRepositories', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformRepositoryFilter', + 'PlatformRepositoryOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformRepository', + fieldName: 'platformRepository', + document, + variables, + transform: (data: { + platformRepositories?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformRepository: data.platformRepositories?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformRepository: { + platformRepository: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformRepository', + 'createPlatformRepository', + 'platformRepository', + args.select, + args.data, + 'CreatePlatformRepositoryInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformRepository', + fieldName: 'createPlatformRepository', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformRepositoryPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformRepository: { + platformRepository: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformRepository', + 'updatePlatformRepository', + 'platformRepository', + args.select, + args.where.id, + args.data, + 'UpdatePlatformRepositoryInput', + 'id', + 'platformRepositoryPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformRepository', + fieldName: 'updatePlatformRepository', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformRepository: { + platformRepository: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformRepository', + 'deletePlatformRepository', + 'platformRepository', + { + id: args.where.id, + }, + 'DeletePlatformRepositoryInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformRepository', + fieldName: 'deletePlatformRepository', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/compute/orm/models/platformRepositoryEvent.ts b/sdk/constructive-sdk/src/compute/orm/models/platformRepositoryEvent.ts new file mode 100644 index 0000000000..df0366dd91 --- /dev/null +++ b/sdk/constructive-sdk/src/compute/orm/models/platformRepositoryEvent.ts @@ -0,0 +1,247 @@ +/** + * PlatformRepositoryEvent 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 { + PlatformRepositoryEvent, + PlatformRepositoryEventWithRelations, + PlatformRepositoryEventSelect, + PlatformRepositoryEventFilter, + PlatformRepositoryEventOrderBy, + CreatePlatformRepositoryEventInput, + UpdatePlatformRepositoryEventInput, + PlatformRepositoryEventPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformRepositoryEventModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformRepositoryEvents: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformRepositoryEvent', + 'platformRepositoryEvents', + 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, + }, + 'PlatformRepositoryEventFilter', + 'PlatformRepositoryEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformRepositoryEvent', + fieldName: 'platformRepositoryEvents', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformRepositoryEvent: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformRepositoryEvent', + 'platformRepositoryEvents', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformRepositoryEventFilter', + 'PlatformRepositoryEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformRepositoryEvent', + fieldName: 'platformRepositoryEvent', + document, + variables, + transform: (data: { + platformRepositoryEvents?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformRepositoryEvent: data.platformRepositoryEvents?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformRepositoryEvent: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformRepositoryEvent', + 'platformRepositoryEvents', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformRepositoryEventFilter', + 'PlatformRepositoryEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformRepositoryEvent', + fieldName: 'platformRepositoryEvent', + document, + variables, + transform: (data: { + platformRepositoryEvents?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformRepositoryEvent: data.platformRepositoryEvents?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformRepositoryEvent: { + platformRepositoryEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformRepositoryEvent', + 'createPlatformRepositoryEvent', + 'platformRepositoryEvent', + args.select, + args.data, + 'CreatePlatformRepositoryEventInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformRepositoryEvent', + fieldName: 'createPlatformRepositoryEvent', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformRepositoryEventPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformRepositoryEvent: { + platformRepositoryEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformRepositoryEvent', + 'updatePlatformRepositoryEvent', + 'platformRepositoryEvent', + args.select, + args.where.id, + args.data, + 'UpdatePlatformRepositoryEventInput', + 'id', + 'platformRepositoryEventPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformRepositoryEvent', + fieldName: 'updatePlatformRepositoryEvent', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformRepositoryEvent: { + platformRepositoryEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformRepositoryEvent', + 'deletePlatformRepositoryEvent', + 'platformRepositoryEvent', + { + id: args.where.id, + }, + 'DeletePlatformRepositoryEventInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformRepositoryEvent', + fieldName: 'deletePlatformRepositoryEvent', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/compute/orm/models/platformRepositoryRequiredCheck.ts b/sdk/constructive-sdk/src/compute/orm/models/platformRepositoryRequiredCheck.ts new file mode 100644 index 0000000000..86e3c8bd5e --- /dev/null +++ b/sdk/constructive-sdk/src/compute/orm/models/platformRepositoryRequiredCheck.ts @@ -0,0 +1,273 @@ +/** + * PlatformRepositoryRequiredCheck 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 { + PlatformRepositoryRequiredCheck, + PlatformRepositoryRequiredCheckWithRelations, + PlatformRepositoryRequiredCheckSelect, + PlatformRepositoryRequiredCheckFilter, + PlatformRepositoryRequiredCheckOrderBy, + CreatePlatformRepositoryRequiredCheckInput, + UpdatePlatformRepositoryRequiredCheckInput, + PlatformRepositoryRequiredCheckPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformRepositoryRequiredCheckModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs< + S, + PlatformRepositoryRequiredCheckFilter, + PlatformRepositoryRequiredCheckOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformRepositoryRequiredChecks: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformRepositoryRequiredCheck', + 'platformRepositoryRequiredChecks', + 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, + }, + 'PlatformRepositoryRequiredCheckFilter', + 'PlatformRepositoryRequiredCheckOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformRepositoryRequiredCheck', + fieldName: 'platformRepositoryRequiredChecks', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs< + S, + PlatformRepositoryRequiredCheckFilter, + PlatformRepositoryRequiredCheckOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformRepositoryRequiredCheck: InferSelectResult< + PlatformRepositoryRequiredCheckWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformRepositoryRequiredCheck', + 'platformRepositoryRequiredChecks', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformRepositoryRequiredCheckFilter', + 'PlatformRepositoryRequiredCheckOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformRepositoryRequiredCheck', + fieldName: 'platformRepositoryRequiredCheck', + document, + variables, + transform: (data: { + platformRepositoryRequiredChecks?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformRepositoryRequiredCheck: data.platformRepositoryRequiredChecks?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformRepositoryRequiredCheck: InferSelectResult< + PlatformRepositoryRequiredCheckWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformRepositoryRequiredCheck', + 'platformRepositoryRequiredChecks', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformRepositoryRequiredCheckFilter', + 'PlatformRepositoryRequiredCheckOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformRepositoryRequiredCheck', + fieldName: 'platformRepositoryRequiredCheck', + document, + variables, + transform: (data: { + platformRepositoryRequiredChecks?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformRepositoryRequiredCheck: data.platformRepositoryRequiredChecks?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs< + S, + CreatePlatformRepositoryRequiredCheckInput['platformRepositoryRequiredCheck'] + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformRepositoryRequiredCheck: { + platformRepositoryRequiredCheck: InferSelectResult< + PlatformRepositoryRequiredCheckWithRelations, + S + >; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformRepositoryRequiredCheck', + 'createPlatformRepositoryRequiredCheck', + 'platformRepositoryRequiredCheck', + args.select, + args.data, + 'CreatePlatformRepositoryRequiredCheckInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformRepositoryRequiredCheck', + fieldName: 'createPlatformRepositoryRequiredCheck', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformRepositoryRequiredCheckPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformRepositoryRequiredCheck: { + platformRepositoryRequiredCheck: InferSelectResult< + PlatformRepositoryRequiredCheckWithRelations, + S + >; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformRepositoryRequiredCheck', + 'updatePlatformRepositoryRequiredCheck', + 'platformRepositoryRequiredCheck', + args.select, + args.where.id, + args.data, + 'UpdatePlatformRepositoryRequiredCheckInput', + 'id', + 'platformRepositoryRequiredCheckPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformRepositoryRequiredCheck', + fieldName: 'updatePlatformRepositoryRequiredCheck', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformRepositoryRequiredCheck: { + platformRepositoryRequiredCheck: InferSelectResult< + PlatformRepositoryRequiredCheckWithRelations, + S + >; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformRepositoryRequiredCheck', + 'deletePlatformRepositoryRequiredCheck', + 'platformRepositoryRequiredCheck', + { + id: args.where.id, + }, + 'DeletePlatformRepositoryRequiredCheckInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformRepositoryRequiredCheck', + fieldName: 'deletePlatformRepositoryRequiredCheck', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/compute/orm/models/platformRepositoryWorkflow.ts b/sdk/constructive-sdk/src/compute/orm/models/platformRepositoryWorkflow.ts new file mode 100644 index 0000000000..542bbfd25a --- /dev/null +++ b/sdk/constructive-sdk/src/compute/orm/models/platformRepositoryWorkflow.ts @@ -0,0 +1,253 @@ +/** + * PlatformRepositoryWorkflow 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 { + PlatformRepositoryWorkflow, + PlatformRepositoryWorkflowWithRelations, + PlatformRepositoryWorkflowSelect, + PlatformRepositoryWorkflowFilter, + PlatformRepositoryWorkflowOrderBy, + CreatePlatformRepositoryWorkflowInput, + UpdatePlatformRepositoryWorkflowInput, + PlatformRepositoryWorkflowPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformRepositoryWorkflowModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformRepositoryWorkflows: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformRepositoryWorkflow', + 'platformRepositoryWorkflows', + 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, + }, + 'PlatformRepositoryWorkflowFilter', + 'PlatformRepositoryWorkflowOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformRepositoryWorkflow', + fieldName: 'platformRepositoryWorkflows', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformRepositoryWorkflow: InferSelectResult< + PlatformRepositoryWorkflowWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformRepositoryWorkflow', + 'platformRepositoryWorkflows', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformRepositoryWorkflowFilter', + 'PlatformRepositoryWorkflowOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformRepositoryWorkflow', + fieldName: 'platformRepositoryWorkflow', + document, + variables, + transform: (data: { + platformRepositoryWorkflows?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformRepositoryWorkflow: data.platformRepositoryWorkflows?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformRepositoryWorkflow: InferSelectResult< + PlatformRepositoryWorkflowWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformRepositoryWorkflow', + 'platformRepositoryWorkflows', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformRepositoryWorkflowFilter', + 'PlatformRepositoryWorkflowOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformRepositoryWorkflow', + fieldName: 'platformRepositoryWorkflow', + document, + variables, + transform: (data: { + platformRepositoryWorkflows?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformRepositoryWorkflow: data.platformRepositoryWorkflows?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformRepositoryWorkflow: { + platformRepositoryWorkflow: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformRepositoryWorkflow', + 'createPlatformRepositoryWorkflow', + 'platformRepositoryWorkflow', + args.select, + args.data, + 'CreatePlatformRepositoryWorkflowInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformRepositoryWorkflow', + fieldName: 'createPlatformRepositoryWorkflow', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformRepositoryWorkflowPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformRepositoryWorkflow: { + platformRepositoryWorkflow: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformRepositoryWorkflow', + 'updatePlatformRepositoryWorkflow', + 'platformRepositoryWorkflow', + args.select, + args.where.id, + args.data, + 'UpdatePlatformRepositoryWorkflowInput', + 'id', + 'platformRepositoryWorkflowPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformRepositoryWorkflow', + fieldName: 'updatePlatformRepositoryWorkflow', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformRepositoryWorkflow: { + platformRepositoryWorkflow: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformRepositoryWorkflow', + 'deletePlatformRepositoryWorkflow', + 'platformRepositoryWorkflow', + { + id: args.where.id, + }, + 'DeletePlatformRepositoryWorkflowInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformRepositoryWorkflow', + fieldName: 'deletePlatformRepositoryWorkflow', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/compute/orm/models/platformResourceObservedStorage.ts b/sdk/constructive-sdk/src/compute/orm/models/platformResourceObservedStorage.ts new file mode 100644 index 0000000000..80a274b483 --- /dev/null +++ b/sdk/constructive-sdk/src/compute/orm/models/platformResourceObservedStorage.ts @@ -0,0 +1,153 @@ +/** + * PlatformResourceObservedStorage 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 { + PlatformResourceObservedStorage, + PlatformResourceObservedStorageWithRelations, + PlatformResourceObservedStorageSelect, + PlatformResourceObservedStorageFilter, + PlatformResourceObservedStorageOrderBy, + CreatePlatformResourceObservedStorageInput, + UpdatePlatformResourceObservedStorageInput, + PlatformResourceObservedStoragePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformResourceObservedStorageModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs< + S, + PlatformResourceObservedStorageFilter, + PlatformResourceObservedStorageOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformResourceObservedStorages: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformResourceObservedStorage', + 'platformResourceObservedStorages', + 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, + }, + 'PlatformResourceObservedStorageFilter', + 'PlatformResourceObservedStorageOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformResourceObservedStorage', + fieldName: 'platformResourceObservedStorages', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs< + S, + PlatformResourceObservedStorageFilter, + PlatformResourceObservedStorageOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformResourceObservedStorage: InferSelectResult< + PlatformResourceObservedStorageWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformResourceObservedStorage', + 'platformResourceObservedStorages', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformResourceObservedStorageFilter', + 'PlatformResourceObservedStorageOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformResourceObservedStorage', + fieldName: 'platformResourceObservedStorage', + document, + variables, + transform: (data: { + platformResourceObservedStorages?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformResourceObservedStorage: data.platformResourceObservedStorages?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs< + S, + CreatePlatformResourceObservedStorageInput['platformResourceObservedStorage'] + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformResourceObservedStorage: { + platformResourceObservedStorage: InferSelectResult< + PlatformResourceObservedStorageWithRelations, + S + >; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformResourceObservedStorage', + 'createPlatformResourceObservedStorage', + 'platformResourceObservedStorage', + args.select, + args.data, + 'CreatePlatformResourceObservedStorageInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformResourceObservedStorage', + fieldName: 'createPlatformResourceObservedStorage', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/compute/orm/models/proposal.ts b/sdk/constructive-sdk/src/compute/orm/models/proposal.ts new file mode 100644 index 0000000000..e43894adfd --- /dev/null +++ b/sdk/constructive-sdk/src/compute/orm/models/proposal.ts @@ -0,0 +1,245 @@ +/** + * Proposal 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 { + Proposal, + ProposalWithRelations, + ProposalSelect, + ProposalFilter, + ProposalOrderBy, + CreateProposalInput, + UpdateProposalInput, + ProposalPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class ProposalModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + proposals: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'Proposal', + 'proposals', + 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, + }, + 'ProposalFilter', + 'ProposalOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Proposal', + fieldName: 'proposals', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + proposal: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'Proposal', + 'proposals', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'ProposalFilter', + 'ProposalOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Proposal', + fieldName: 'proposal', + document, + variables, + transform: (data: { + proposals?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + proposal: data.proposals?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + proposal: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'Proposal', + 'proposals', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'ProposalFilter', + 'ProposalOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Proposal', + fieldName: 'proposal', + document, + variables, + transform: (data: { + proposals?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + proposal: data.proposals?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createProposal: { + proposal: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'Proposal', + 'createProposal', + 'proposal', + args.select, + args.data, + 'CreateProposalInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Proposal', + fieldName: 'createProposal', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + ProposalPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateProposal: { + proposal: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'Proposal', + 'updateProposal', + 'proposal', + args.select, + args.where.id, + args.data, + 'UpdateProposalInput', + 'id', + 'proposalPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Proposal', + fieldName: 'updateProposal', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteProposal: { + proposal: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'Proposal', + 'deleteProposal', + 'proposal', + { + id: args.where.id, + }, + 'DeleteProposalInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Proposal', + fieldName: 'deleteProposal', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/compute/orm/models/proposalComment.ts b/sdk/constructive-sdk/src/compute/orm/models/proposalComment.ts new file mode 100644 index 0000000000..e2fd0e15be --- /dev/null +++ b/sdk/constructive-sdk/src/compute/orm/models/proposalComment.ts @@ -0,0 +1,245 @@ +/** + * ProposalComment 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 { + ProposalComment, + ProposalCommentWithRelations, + ProposalCommentSelect, + ProposalCommentFilter, + ProposalCommentOrderBy, + CreateProposalCommentInput, + UpdateProposalCommentInput, + ProposalCommentPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class ProposalCommentModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + proposalComments: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'ProposalComment', + 'proposalComments', + 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, + }, + 'ProposalCommentFilter', + 'ProposalCommentOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ProposalComment', + fieldName: 'proposalComments', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + proposalComment: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'ProposalComment', + 'proposalComments', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'ProposalCommentFilter', + 'ProposalCommentOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ProposalComment', + fieldName: 'proposalComment', + document, + variables, + transform: (data: { + proposalComments?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + proposalComment: data.proposalComments?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + proposalComment: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'ProposalComment', + 'proposalComments', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'ProposalCommentFilter', + 'ProposalCommentOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ProposalComment', + fieldName: 'proposalComment', + document, + variables, + transform: (data: { + proposalComments?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + proposalComment: data.proposalComments?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createProposalComment: { + proposalComment: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'ProposalComment', + 'createProposalComment', + 'proposalComment', + args.select, + args.data, + 'CreateProposalCommentInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ProposalComment', + fieldName: 'createProposalComment', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + ProposalCommentPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateProposalComment: { + proposalComment: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'ProposalComment', + 'updateProposalComment', + 'proposalComment', + args.select, + args.where.id, + args.data, + 'UpdateProposalCommentInput', + 'id', + 'proposalCommentPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ProposalComment', + fieldName: 'updateProposalComment', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteProposalComment: { + proposalComment: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'ProposalComment', + 'deleteProposalComment', + 'proposalComment', + { + id: args.where.id, + }, + 'DeleteProposalCommentInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ProposalComment', + fieldName: 'deleteProposalComment', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/compute/orm/models/proposalFileView.ts b/sdk/constructive-sdk/src/compute/orm/models/proposalFileView.ts new file mode 100644 index 0000000000..a4e61610d2 --- /dev/null +++ b/sdk/constructive-sdk/src/compute/orm/models/proposalFileView.ts @@ -0,0 +1,245 @@ +/** + * ProposalFileView 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 { + ProposalFileView, + ProposalFileViewWithRelations, + ProposalFileViewSelect, + ProposalFileViewFilter, + ProposalFileViewOrderBy, + CreateProposalFileViewInput, + UpdateProposalFileViewInput, + ProposalFileViewPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class ProposalFileViewModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + proposalFileViews: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'ProposalFileView', + 'proposalFileViews', + 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, + }, + 'ProposalFileViewFilter', + 'ProposalFileViewOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ProposalFileView', + fieldName: 'proposalFileViews', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + proposalFileView: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'ProposalFileView', + 'proposalFileViews', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'ProposalFileViewFilter', + 'ProposalFileViewOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ProposalFileView', + fieldName: 'proposalFileView', + document, + variables, + transform: (data: { + proposalFileViews?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + proposalFileView: data.proposalFileViews?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + proposalFileView: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'ProposalFileView', + 'proposalFileViews', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'ProposalFileViewFilter', + 'ProposalFileViewOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ProposalFileView', + fieldName: 'proposalFileView', + document, + variables, + transform: (data: { + proposalFileViews?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + proposalFileView: data.proposalFileViews?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createProposalFileView: { + proposalFileView: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'ProposalFileView', + 'createProposalFileView', + 'proposalFileView', + args.select, + args.data, + 'CreateProposalFileViewInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ProposalFileView', + fieldName: 'createProposalFileView', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + ProposalFileViewPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateProposalFileView: { + proposalFileView: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'ProposalFileView', + 'updateProposalFileView', + 'proposalFileView', + args.select, + args.where.id, + args.data, + 'UpdateProposalFileViewInput', + 'id', + 'proposalFileViewPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ProposalFileView', + fieldName: 'updateProposalFileView', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteProposalFileView: { + proposalFileView: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'ProposalFileView', + 'deleteProposalFileView', + 'proposalFileView', + { + id: args.where.id, + }, + 'DeleteProposalFileViewInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ProposalFileView', + fieldName: 'deleteProposalFileView', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/compute/orm/models/proposalReaction.ts b/sdk/constructive-sdk/src/compute/orm/models/proposalReaction.ts new file mode 100644 index 0000000000..d8c1d12f70 --- /dev/null +++ b/sdk/constructive-sdk/src/compute/orm/models/proposalReaction.ts @@ -0,0 +1,245 @@ +/** + * ProposalReaction 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 { + ProposalReaction, + ProposalReactionWithRelations, + ProposalReactionSelect, + ProposalReactionFilter, + ProposalReactionOrderBy, + CreateProposalReactionInput, + UpdateProposalReactionInput, + ProposalReactionPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class ProposalReactionModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + proposalReactions: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'ProposalReaction', + 'proposalReactions', + 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, + }, + 'ProposalReactionFilter', + 'ProposalReactionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ProposalReaction', + fieldName: 'proposalReactions', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + proposalReaction: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'ProposalReaction', + 'proposalReactions', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'ProposalReactionFilter', + 'ProposalReactionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ProposalReaction', + fieldName: 'proposalReaction', + document, + variables, + transform: (data: { + proposalReactions?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + proposalReaction: data.proposalReactions?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + proposalReaction: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'ProposalReaction', + 'proposalReactions', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'ProposalReactionFilter', + 'ProposalReactionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ProposalReaction', + fieldName: 'proposalReaction', + document, + variables, + transform: (data: { + proposalReactions?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + proposalReaction: data.proposalReactions?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createProposalReaction: { + proposalReaction: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'ProposalReaction', + 'createProposalReaction', + 'proposalReaction', + args.select, + args.data, + 'CreateProposalReactionInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ProposalReaction', + fieldName: 'createProposalReaction', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + ProposalReactionPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateProposalReaction: { + proposalReaction: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'ProposalReaction', + 'updateProposalReaction', + 'proposalReaction', + args.select, + args.where.id, + args.data, + 'UpdateProposalReactionInput', + 'id', + 'proposalReactionPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ProposalReaction', + fieldName: 'updateProposalReaction', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteProposalReaction: { + proposalReaction: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'ProposalReaction', + 'deleteProposalReaction', + 'proposalReaction', + { + id: args.where.id, + }, + 'DeleteProposalReactionInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ProposalReaction', + fieldName: 'deleteProposalReaction', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/compute/orm/models/proposalReview.ts b/sdk/constructive-sdk/src/compute/orm/models/proposalReview.ts new file mode 100644 index 0000000000..d0f097ccf3 --- /dev/null +++ b/sdk/constructive-sdk/src/compute/orm/models/proposalReview.ts @@ -0,0 +1,245 @@ +/** + * ProposalReview 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 { + ProposalReview, + ProposalReviewWithRelations, + ProposalReviewSelect, + ProposalReviewFilter, + ProposalReviewOrderBy, + CreateProposalReviewInput, + UpdateProposalReviewInput, + ProposalReviewPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class ProposalReviewModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + proposalReviews: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'ProposalReview', + 'proposalReviews', + 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, + }, + 'ProposalReviewFilter', + 'ProposalReviewOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ProposalReview', + fieldName: 'proposalReviews', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + proposalReview: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'ProposalReview', + 'proposalReviews', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'ProposalReviewFilter', + 'ProposalReviewOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ProposalReview', + fieldName: 'proposalReview', + document, + variables, + transform: (data: { + proposalReviews?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + proposalReview: data.proposalReviews?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + proposalReview: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'ProposalReview', + 'proposalReviews', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'ProposalReviewFilter', + 'ProposalReviewOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ProposalReview', + fieldName: 'proposalReview', + document, + variables, + transform: (data: { + proposalReviews?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + proposalReview: data.proposalReviews?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createProposalReview: { + proposalReview: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'ProposalReview', + 'createProposalReview', + 'proposalReview', + args.select, + args.data, + 'CreateProposalReviewInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ProposalReview', + fieldName: 'createProposalReview', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + ProposalReviewPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateProposalReview: { + proposalReview: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'ProposalReview', + 'updateProposalReview', + 'proposalReview', + args.select, + args.where.id, + args.data, + 'UpdateProposalReviewInput', + 'id', + 'proposalReviewPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ProposalReview', + fieldName: 'updateProposalReview', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteProposalReview: { + proposalReview: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'ProposalReview', + 'deleteProposalReview', + 'proposalReview', + { + id: args.where.id, + }, + 'DeleteProposalReviewInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ProposalReview', + fieldName: 'deleteProposalReview', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/compute/orm/models/proposalsChunk.ts b/sdk/constructive-sdk/src/compute/orm/models/proposalsChunk.ts new file mode 100644 index 0000000000..8b4127416d --- /dev/null +++ b/sdk/constructive-sdk/src/compute/orm/models/proposalsChunk.ts @@ -0,0 +1,245 @@ +/** + * ProposalsChunk 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 { + ProposalsChunk, + ProposalsChunkWithRelations, + ProposalsChunkSelect, + ProposalsChunkFilter, + ProposalsChunkOrderBy, + CreateProposalsChunkInput, + UpdateProposalsChunkInput, + ProposalsChunkPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class ProposalsChunkModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + proposalsChunks: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'ProposalsChunk', + 'proposalsChunks', + 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, + }, + 'ProposalsChunkFilter', + 'ProposalsChunkOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ProposalsChunk', + fieldName: 'proposalsChunks', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + proposalsChunk: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'ProposalsChunk', + 'proposalsChunks', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'ProposalsChunkFilter', + 'ProposalsChunkOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ProposalsChunk', + fieldName: 'proposalsChunk', + document, + variables, + transform: (data: { + proposalsChunks?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + proposalsChunk: data.proposalsChunks?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + proposalsChunk: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'ProposalsChunk', + 'proposalsChunks', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'ProposalsChunkFilter', + 'ProposalsChunkOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ProposalsChunk', + fieldName: 'proposalsChunk', + document, + variables, + transform: (data: { + proposalsChunks?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + proposalsChunk: data.proposalsChunks?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createProposalsChunk: { + proposalsChunk: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'ProposalsChunk', + 'createProposalsChunk', + 'proposalsChunk', + args.select, + args.data, + 'CreateProposalsChunkInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ProposalsChunk', + fieldName: 'createProposalsChunk', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + ProposalsChunkPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateProposalsChunk: { + proposalsChunk: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'ProposalsChunk', + 'updateProposalsChunk', + 'proposalsChunk', + args.select, + args.where.id, + args.data, + 'UpdateProposalsChunkInput', + 'id', + 'proposalsChunkPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ProposalsChunk', + fieldName: 'updateProposalsChunk', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteProposalsChunk: { + proposalsChunk: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'ProposalsChunk', + 'deleteProposalsChunk', + 'proposalsChunk', + { + id: args.where.id, + }, + 'DeleteProposalsChunkInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ProposalsChunk', + fieldName: 'deleteProposalsChunk', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/compute/orm/models/registry.ts b/sdk/constructive-sdk/src/compute/orm/models/registry.ts new file mode 100644 index 0000000000..98cb611f33 --- /dev/null +++ b/sdk/constructive-sdk/src/compute/orm/models/registry.ts @@ -0,0 +1,245 @@ +/** + * Registry 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 { + Registry, + RegistryWithRelations, + RegistrySelect, + RegistryFilter, + RegistryOrderBy, + CreateRegistryInput, + UpdateRegistryInput, + RegistryPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class RegistryModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + registries: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'Registry', + 'registries', + 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, + }, + 'RegistryFilter', + 'RegistryOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Registry', + fieldName: 'registries', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + registry: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'Registry', + 'registries', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'RegistryFilter', + 'RegistryOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Registry', + fieldName: 'registry', + document, + variables, + transform: (data: { + registries?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + registry: data.registries?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + registry: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'Registry', + 'registries', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'RegistryFilter', + 'RegistryOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Registry', + fieldName: 'registry', + document, + variables, + transform: (data: { + registries?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + registry: data.registries?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createRegistry: { + registry: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'Registry', + 'createRegistry', + 'registry', + args.select, + args.data, + 'CreateRegistryInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Registry', + fieldName: 'createRegistry', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + RegistryPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateRegistry: { + registry: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'Registry', + 'updateRegistry', + 'registry', + args.select, + args.where.id, + args.data, + 'UpdateRegistryInput', + 'id', + 'registryPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Registry', + fieldName: 'updateRegistry', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteRegistry: { + registry: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'Registry', + 'deleteRegistry', + 'registry', + { + id: args.where.id, + }, + 'DeleteRegistryInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Registry', + fieldName: 'deleteRegistry', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/compute/orm/models/registryBinding.ts b/sdk/constructive-sdk/src/compute/orm/models/registryBinding.ts new file mode 100644 index 0000000000..28782fa363 --- /dev/null +++ b/sdk/constructive-sdk/src/compute/orm/models/registryBinding.ts @@ -0,0 +1,245 @@ +/** + * RegistryBinding 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 { + RegistryBinding, + RegistryBindingWithRelations, + RegistryBindingSelect, + RegistryBindingFilter, + RegistryBindingOrderBy, + CreateRegistryBindingInput, + UpdateRegistryBindingInput, + RegistryBindingPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class RegistryBindingModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + registryBindings: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'RegistryBinding', + 'registryBindings', + 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, + }, + 'RegistryBindingFilter', + 'RegistryBindingOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'RegistryBinding', + fieldName: 'registryBindings', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + registryBinding: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'RegistryBinding', + 'registryBindings', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'RegistryBindingFilter', + 'RegistryBindingOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'RegistryBinding', + fieldName: 'registryBinding', + document, + variables, + transform: (data: { + registryBindings?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + registryBinding: data.registryBindings?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + registryBinding: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'RegistryBinding', + 'registryBindings', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'RegistryBindingFilter', + 'RegistryBindingOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'RegistryBinding', + fieldName: 'registryBinding', + document, + variables, + transform: (data: { + registryBindings?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + registryBinding: data.registryBindings?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createRegistryBinding: { + registryBinding: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'RegistryBinding', + 'createRegistryBinding', + 'registryBinding', + args.select, + args.data, + 'CreateRegistryBindingInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'RegistryBinding', + fieldName: 'createRegistryBinding', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + RegistryBindingPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateRegistryBinding: { + registryBinding: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'RegistryBinding', + 'updateRegistryBinding', + 'registryBinding', + args.select, + args.where.id, + args.data, + 'UpdateRegistryBindingInput', + 'id', + 'registryBindingPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'RegistryBinding', + fieldName: 'updateRegistryBinding', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteRegistryBinding: { + registryBinding: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'RegistryBinding', + 'deleteRegistryBinding', + 'registryBinding', + { + id: args.where.id, + }, + 'DeleteRegistryBindingInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'RegistryBinding', + fieldName: 'deleteRegistryBinding', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/compute/orm/models/registryGrant.ts b/sdk/constructive-sdk/src/compute/orm/models/registryGrant.ts new file mode 100644 index 0000000000..96812eb211 --- /dev/null +++ b/sdk/constructive-sdk/src/compute/orm/models/registryGrant.ts @@ -0,0 +1,245 @@ +/** + * RegistryGrant 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 { + RegistryGrant, + RegistryGrantWithRelations, + RegistryGrantSelect, + RegistryGrantFilter, + RegistryGrantOrderBy, + CreateRegistryGrantInput, + UpdateRegistryGrantInput, + RegistryGrantPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class RegistryGrantModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + registryGrants: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'RegistryGrant', + 'registryGrants', + 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, + }, + 'RegistryGrantFilter', + 'RegistryGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'RegistryGrant', + fieldName: 'registryGrants', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + registryGrant: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'RegistryGrant', + 'registryGrants', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'RegistryGrantFilter', + 'RegistryGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'RegistryGrant', + fieldName: 'registryGrant', + document, + variables, + transform: (data: { + registryGrants?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + registryGrant: data.registryGrants?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + registryGrant: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'RegistryGrant', + 'registryGrants', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'RegistryGrantFilter', + 'RegistryGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'RegistryGrant', + fieldName: 'registryGrant', + document, + variables, + transform: (data: { + registryGrants?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + registryGrant: data.registryGrants?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createRegistryGrant: { + registryGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'RegistryGrant', + 'createRegistryGrant', + 'registryGrant', + args.select, + args.data, + 'CreateRegistryGrantInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'RegistryGrant', + fieldName: 'createRegistryGrant', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + RegistryGrantPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateRegistryGrant: { + registryGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'RegistryGrant', + 'updateRegistryGrant', + 'registryGrant', + args.select, + args.where.id, + args.data, + 'UpdateRegistryGrantInput', + 'id', + 'registryGrantPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'RegistryGrant', + fieldName: 'updateRegistryGrant', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteRegistryGrant: { + registryGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'RegistryGrant', + 'deleteRegistryGrant', + 'registryGrant', + { + id: args.where.id, + }, + 'DeleteRegistryGrantInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'RegistryGrant', + fieldName: 'deleteRegistryGrant', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/compute/orm/models/repository.ts b/sdk/constructive-sdk/src/compute/orm/models/repository.ts new file mode 100644 index 0000000000..8a55853452 --- /dev/null +++ b/sdk/constructive-sdk/src/compute/orm/models/repository.ts @@ -0,0 +1,245 @@ +/** + * Repository 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 { + Repository, + RepositoryWithRelations, + RepositorySelect, + RepositoryFilter, + RepositoryOrderBy, + CreateRepositoryInput, + UpdateRepositoryInput, + RepositoryPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class RepositoryModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + repositories: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'Repository', + 'repositories', + 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, + }, + 'RepositoryFilter', + 'RepositoryOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Repository', + fieldName: 'repositories', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + repository: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'Repository', + 'repositories', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'RepositoryFilter', + 'RepositoryOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Repository', + fieldName: 'repository', + document, + variables, + transform: (data: { + repositories?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + repository: data.repositories?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + repository: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'Repository', + 'repositories', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'RepositoryFilter', + 'RepositoryOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Repository', + fieldName: 'repository', + document, + variables, + transform: (data: { + repositories?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + repository: data.repositories?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createRepository: { + repository: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'Repository', + 'createRepository', + 'repository', + args.select, + args.data, + 'CreateRepositoryInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Repository', + fieldName: 'createRepository', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + RepositoryPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateRepository: { + repository: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'Repository', + 'updateRepository', + 'repository', + args.select, + args.where.id, + args.data, + 'UpdateRepositoryInput', + 'id', + 'repositoryPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Repository', + fieldName: 'updateRepository', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteRepository: { + repository: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'Repository', + 'deleteRepository', + 'repository', + { + id: args.where.id, + }, + 'DeleteRepositoryInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Repository', + fieldName: 'deleteRepository', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/compute/orm/models/repositoryEvent.ts b/sdk/constructive-sdk/src/compute/orm/models/repositoryEvent.ts new file mode 100644 index 0000000000..9e56af768a --- /dev/null +++ b/sdk/constructive-sdk/src/compute/orm/models/repositoryEvent.ts @@ -0,0 +1,245 @@ +/** + * RepositoryEvent 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 { + RepositoryEvent, + RepositoryEventWithRelations, + RepositoryEventSelect, + RepositoryEventFilter, + RepositoryEventOrderBy, + CreateRepositoryEventInput, + UpdateRepositoryEventInput, + RepositoryEventPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class RepositoryEventModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + repositoryEvents: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'RepositoryEvent', + 'repositoryEvents', + 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, + }, + 'RepositoryEventFilter', + 'RepositoryEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'RepositoryEvent', + fieldName: 'repositoryEvents', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + repositoryEvent: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'RepositoryEvent', + 'repositoryEvents', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'RepositoryEventFilter', + 'RepositoryEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'RepositoryEvent', + fieldName: 'repositoryEvent', + document, + variables, + transform: (data: { + repositoryEvents?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + repositoryEvent: data.repositoryEvents?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + repositoryEvent: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'RepositoryEvent', + 'repositoryEvents', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'RepositoryEventFilter', + 'RepositoryEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'RepositoryEvent', + fieldName: 'repositoryEvent', + document, + variables, + transform: (data: { + repositoryEvents?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + repositoryEvent: data.repositoryEvents?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createRepositoryEvent: { + repositoryEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'RepositoryEvent', + 'createRepositoryEvent', + 'repositoryEvent', + args.select, + args.data, + 'CreateRepositoryEventInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'RepositoryEvent', + fieldName: 'createRepositoryEvent', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + RepositoryEventPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateRepositoryEvent: { + repositoryEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'RepositoryEvent', + 'updateRepositoryEvent', + 'repositoryEvent', + args.select, + args.where.id, + args.data, + 'UpdateRepositoryEventInput', + 'id', + 'repositoryEventPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'RepositoryEvent', + fieldName: 'updateRepositoryEvent', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteRepositoryEvent: { + repositoryEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'RepositoryEvent', + 'deleteRepositoryEvent', + 'repositoryEvent', + { + id: args.where.id, + }, + 'DeleteRepositoryEventInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'RepositoryEvent', + fieldName: 'deleteRepositoryEvent', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/compute/orm/models/repositoryRequiredCheck.ts b/sdk/constructive-sdk/src/compute/orm/models/repositoryRequiredCheck.ts new file mode 100644 index 0000000000..9f3c6c5396 --- /dev/null +++ b/sdk/constructive-sdk/src/compute/orm/models/repositoryRequiredCheck.ts @@ -0,0 +1,247 @@ +/** + * RepositoryRequiredCheck 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 { + RepositoryRequiredCheck, + RepositoryRequiredCheckWithRelations, + RepositoryRequiredCheckSelect, + RepositoryRequiredCheckFilter, + RepositoryRequiredCheckOrderBy, + CreateRepositoryRequiredCheckInput, + UpdateRepositoryRequiredCheckInput, + RepositoryRequiredCheckPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class RepositoryRequiredCheckModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + repositoryRequiredChecks: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'RepositoryRequiredCheck', + 'repositoryRequiredChecks', + 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, + }, + 'RepositoryRequiredCheckFilter', + 'RepositoryRequiredCheckOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'RepositoryRequiredCheck', + fieldName: 'repositoryRequiredChecks', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + repositoryRequiredCheck: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'RepositoryRequiredCheck', + 'repositoryRequiredChecks', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'RepositoryRequiredCheckFilter', + 'RepositoryRequiredCheckOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'RepositoryRequiredCheck', + fieldName: 'repositoryRequiredCheck', + document, + variables, + transform: (data: { + repositoryRequiredChecks?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + repositoryRequiredCheck: data.repositoryRequiredChecks?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + repositoryRequiredCheck: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'RepositoryRequiredCheck', + 'repositoryRequiredChecks', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'RepositoryRequiredCheckFilter', + 'RepositoryRequiredCheckOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'RepositoryRequiredCheck', + fieldName: 'repositoryRequiredCheck', + document, + variables, + transform: (data: { + repositoryRequiredChecks?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + repositoryRequiredCheck: data.repositoryRequiredChecks?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createRepositoryRequiredCheck: { + repositoryRequiredCheck: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'RepositoryRequiredCheck', + 'createRepositoryRequiredCheck', + 'repositoryRequiredCheck', + args.select, + args.data, + 'CreateRepositoryRequiredCheckInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'RepositoryRequiredCheck', + fieldName: 'createRepositoryRequiredCheck', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + RepositoryRequiredCheckPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateRepositoryRequiredCheck: { + repositoryRequiredCheck: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'RepositoryRequiredCheck', + 'updateRepositoryRequiredCheck', + 'repositoryRequiredCheck', + args.select, + args.where.id, + args.data, + 'UpdateRepositoryRequiredCheckInput', + 'id', + 'repositoryRequiredCheckPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'RepositoryRequiredCheck', + fieldName: 'updateRepositoryRequiredCheck', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteRepositoryRequiredCheck: { + repositoryRequiredCheck: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'RepositoryRequiredCheck', + 'deleteRepositoryRequiredCheck', + 'repositoryRequiredCheck', + { + id: args.where.id, + }, + 'DeleteRepositoryRequiredCheckInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'RepositoryRequiredCheck', + fieldName: 'deleteRepositoryRequiredCheck', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/compute/orm/models/repositoryWorkflow.ts b/sdk/constructive-sdk/src/compute/orm/models/repositoryWorkflow.ts new file mode 100644 index 0000000000..b5f325ed55 --- /dev/null +++ b/sdk/constructive-sdk/src/compute/orm/models/repositoryWorkflow.ts @@ -0,0 +1,245 @@ +/** + * RepositoryWorkflow 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 { + RepositoryWorkflow, + RepositoryWorkflowWithRelations, + RepositoryWorkflowSelect, + RepositoryWorkflowFilter, + RepositoryWorkflowOrderBy, + CreateRepositoryWorkflowInput, + UpdateRepositoryWorkflowInput, + RepositoryWorkflowPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class RepositoryWorkflowModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + repositoryWorkflows: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'RepositoryWorkflow', + 'repositoryWorkflows', + 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, + }, + 'RepositoryWorkflowFilter', + 'RepositoryWorkflowOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'RepositoryWorkflow', + fieldName: 'repositoryWorkflows', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + repositoryWorkflow: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'RepositoryWorkflow', + 'repositoryWorkflows', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'RepositoryWorkflowFilter', + 'RepositoryWorkflowOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'RepositoryWorkflow', + fieldName: 'repositoryWorkflow', + document, + variables, + transform: (data: { + repositoryWorkflows?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + repositoryWorkflow: data.repositoryWorkflows?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + repositoryWorkflow: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'RepositoryWorkflow', + 'repositoryWorkflows', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'RepositoryWorkflowFilter', + 'RepositoryWorkflowOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'RepositoryWorkflow', + fieldName: 'repositoryWorkflow', + document, + variables, + transform: (data: { + repositoryWorkflows?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + repositoryWorkflow: data.repositoryWorkflows?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createRepositoryWorkflow: { + repositoryWorkflow: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'RepositoryWorkflow', + 'createRepositoryWorkflow', + 'repositoryWorkflow', + args.select, + args.data, + 'CreateRepositoryWorkflowInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'RepositoryWorkflow', + fieldName: 'createRepositoryWorkflow', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + RepositoryWorkflowPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateRepositoryWorkflow: { + repositoryWorkflow: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'RepositoryWorkflow', + 'updateRepositoryWorkflow', + 'repositoryWorkflow', + args.select, + args.where.id, + args.data, + 'UpdateRepositoryWorkflowInput', + 'id', + 'repositoryWorkflowPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'RepositoryWorkflow', + fieldName: 'updateRepositoryWorkflow', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteRepositoryWorkflow: { + repositoryWorkflow: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'RepositoryWorkflow', + 'deleteRepositoryWorkflow', + 'repositoryWorkflow', + { + id: args.where.id, + }, + 'DeleteRepositoryWorkflowInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'RepositoryWorkflow', + fieldName: 'deleteRepositoryWorkflow', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/compute/orm/models/resourceObservedStorage.ts b/sdk/constructive-sdk/src/compute/orm/models/resourceObservedStorage.ts new file mode 100644 index 0000000000..75769aef61 --- /dev/null +++ b/sdk/constructive-sdk/src/compute/orm/models/resourceObservedStorage.ts @@ -0,0 +1,136 @@ +/** + * ResourceObservedStorage 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 { + ResourceObservedStorage, + ResourceObservedStorageWithRelations, + ResourceObservedStorageSelect, + ResourceObservedStorageFilter, + ResourceObservedStorageOrderBy, + CreateResourceObservedStorageInput, + UpdateResourceObservedStorageInput, + ResourceObservedStoragePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class ResourceObservedStorageModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + resourceObservedStorages: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'ResourceObservedStorage', + 'resourceObservedStorages', + 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, + }, + 'ResourceObservedStorageFilter', + 'ResourceObservedStorageOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ResourceObservedStorage', + fieldName: 'resourceObservedStorages', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + resourceObservedStorage: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'ResourceObservedStorage', + 'resourceObservedStorages', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'ResourceObservedStorageFilter', + 'ResourceObservedStorageOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ResourceObservedStorage', + fieldName: 'resourceObservedStorage', + document, + variables, + transform: (data: { + resourceObservedStorages?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + resourceObservedStorage: data.resourceObservedStorages?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createResourceObservedStorage: { + resourceObservedStorage: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'ResourceObservedStorage', + 'createResourceObservedStorage', + 'resourceObservedStorage', + args.select, + args.data, + 'CreateResourceObservedStorageInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ResourceObservedStorage', + fieldName: 'createResourceObservedStorage', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/compute/orm/mutation/index.ts b/sdk/constructive-sdk/src/compute/orm/mutation/index.ts index 948d1e8903..350d486e20 100644 --- a/sdk/constructive-sdk/src/compute/orm/mutation/index.ts +++ b/sdk/constructive-sdk/src/compute/orm/mutation/index.ts @@ -11,7 +11,27 @@ import type { AddEdgeAndSaveInput, AddNodeInput, AddNodeAndSaveInput, + ApproveNodeInput, CopyGraphInput, + DatabaseAddEdgeInput, + DatabaseAddEdgeAndSaveInput, + DatabaseAddNodeInput, + DatabaseAddNodeAndSaveInput, + DatabaseApproveNodeInput, + DatabaseCopyGraphInput, + DatabaseCreateFunctionGraphInput, + DatabaseGraphInitEmptyRepoInput, + DatabaseGraphInsertNodeAtPathInput, + DatabaseGraphInsertNodesAtPathsInput, + DatabaseGraphSetAndCommitInput, + DatabaseGraphSetDataAtPathInput, + DatabaseGraphSetManyAndCommitInput, + DatabaseImportDefinitionsInput, + DatabaseImportGraphJsonInput, + DatabaseSaveGraphInput, + DatabaseStartExecutionInput, + DatabaseValidateFunctionGraphInput, + FunctionInvocationsCreateSyncInput, ImportDefinitionsInput, ImportGraphJsonInput, InfraInitEmptyRepoInput, @@ -23,6 +43,7 @@ import type { InitEmptyRepoInput, InsertNodeAtPathInput, InsertNodesAtPathsInput, + PlatformFunctionInvocationsCreateSyncInput, PlatformInfraInitEmptyRepoInput, PlatformInfraInsertNodeAtPathInput, PlatformInfraInsertNodesAtPathsInput, @@ -48,7 +69,27 @@ import type { AddEdgeAndSavePayload, AddNodePayload, AddNodeAndSavePayload, + ApproveNodePayload, CopyGraphPayload, + DatabaseAddEdgePayload, + DatabaseAddEdgeAndSavePayload, + DatabaseAddNodePayload, + DatabaseAddNodeAndSavePayload, + DatabaseApproveNodePayload, + DatabaseCopyGraphPayload, + DatabaseCreateFunctionGraphPayload, + DatabaseGraphInitEmptyRepoPayload, + DatabaseGraphInsertNodeAtPathPayload, + DatabaseGraphInsertNodesAtPathsPayload, + DatabaseGraphSetAndCommitPayload, + DatabaseGraphSetDataAtPathPayload, + DatabaseGraphSetManyAndCommitPayload, + DatabaseImportDefinitionsPayload, + DatabaseImportGraphJsonPayload, + DatabaseSaveGraphPayload, + DatabaseStartExecutionPayload, + DatabaseValidateFunctionGraphPayload, + FunctionInvocationsCreateSyncPayload, ImportDefinitionsPayload, ImportGraphJsonPayload, InfraInitEmptyRepoPayload, @@ -60,6 +101,7 @@ import type { InitEmptyRepoPayload, InsertNodeAtPathPayload, InsertNodesAtPathsPayload, + PlatformFunctionInvocationsCreateSyncPayload, PlatformInfraInitEmptyRepoPayload, PlatformInfraInsertNodeAtPathPayload, PlatformInfraInsertNodesAtPathsPayload, @@ -85,7 +127,27 @@ import type { AddEdgeAndSavePayloadSelect, AddNodePayloadSelect, AddNodeAndSavePayloadSelect, + ApproveNodePayloadSelect, CopyGraphPayloadSelect, + DatabaseAddEdgePayloadSelect, + DatabaseAddEdgeAndSavePayloadSelect, + DatabaseAddNodePayloadSelect, + DatabaseAddNodeAndSavePayloadSelect, + DatabaseApproveNodePayloadSelect, + DatabaseCopyGraphPayloadSelect, + DatabaseCreateFunctionGraphPayloadSelect, + DatabaseGraphInitEmptyRepoPayloadSelect, + DatabaseGraphInsertNodeAtPathPayloadSelect, + DatabaseGraphInsertNodesAtPathsPayloadSelect, + DatabaseGraphSetAndCommitPayloadSelect, + DatabaseGraphSetDataAtPathPayloadSelect, + DatabaseGraphSetManyAndCommitPayloadSelect, + DatabaseImportDefinitionsPayloadSelect, + DatabaseImportGraphJsonPayloadSelect, + DatabaseSaveGraphPayloadSelect, + DatabaseStartExecutionPayloadSelect, + DatabaseValidateFunctionGraphPayloadSelect, + FunctionInvocationsCreateSyncPayloadSelect, ImportDefinitionsPayloadSelect, ImportGraphJsonPayloadSelect, InfraInitEmptyRepoPayloadSelect, @@ -97,6 +159,7 @@ import type { InitEmptyRepoPayloadSelect, InsertNodeAtPathPayloadSelect, InsertNodesAtPathsPayloadSelect, + PlatformFunctionInvocationsCreateSyncPayloadSelect, PlatformInfraInitEmptyRepoPayloadSelect, PlatformInfraInsertNodeAtPathPayloadSelect, PlatformInfraInsertNodesAtPathsPayloadSelect, @@ -132,9 +195,69 @@ export interface AddNodeVariables { export interface AddNodeAndSaveVariables { input: AddNodeAndSaveInput; } +export interface ApproveNodeVariables { + input: ApproveNodeInput; +} export interface CopyGraphVariables { input: CopyGraphInput; } +export interface DatabaseAddEdgeVariables { + input: DatabaseAddEdgeInput; +} +export interface DatabaseAddEdgeAndSaveVariables { + input: DatabaseAddEdgeAndSaveInput; +} +export interface DatabaseAddNodeVariables { + input: DatabaseAddNodeInput; +} +export interface DatabaseAddNodeAndSaveVariables { + input: DatabaseAddNodeAndSaveInput; +} +export interface DatabaseApproveNodeVariables { + input: DatabaseApproveNodeInput; +} +export interface DatabaseCopyGraphVariables { + input: DatabaseCopyGraphInput; +} +export interface DatabaseCreateFunctionGraphVariables { + input: DatabaseCreateFunctionGraphInput; +} +export interface DatabaseGraphInitEmptyRepoVariables { + input: DatabaseGraphInitEmptyRepoInput; +} +export interface DatabaseGraphInsertNodeAtPathVariables { + input: DatabaseGraphInsertNodeAtPathInput; +} +export interface DatabaseGraphInsertNodesAtPathsVariables { + input: DatabaseGraphInsertNodesAtPathsInput; +} +export interface DatabaseGraphSetAndCommitVariables { + input: DatabaseGraphSetAndCommitInput; +} +export interface DatabaseGraphSetDataAtPathVariables { + input: DatabaseGraphSetDataAtPathInput; +} +export interface DatabaseGraphSetManyAndCommitVariables { + input: DatabaseGraphSetManyAndCommitInput; +} +export interface DatabaseImportDefinitionsVariables { + input: DatabaseImportDefinitionsInput; +} +export interface DatabaseImportGraphJsonVariables { + input: DatabaseImportGraphJsonInput; +} +export interface DatabaseSaveGraphVariables { + input: DatabaseSaveGraphInput; +} +export interface DatabaseStartExecutionVariables { + input: DatabaseStartExecutionInput; +} +export interface DatabaseValidateFunctionGraphVariables { + input: DatabaseValidateFunctionGraphInput; +} +export interface FunctionInvocationsCreateSyncVariables { + input: FunctionInvocationsCreateSyncInput; +} export interface ImportDefinitionsVariables { input: ImportDefinitionsInput; } @@ -168,6 +291,9 @@ export interface InsertNodeAtPathVariables { export interface InsertNodesAtPathsVariables { input: InsertNodesAtPathsInput; } +export interface PlatformFunctionInvocationsCreateSyncVariables { + input: PlatformFunctionInvocationsCreateSyncInput; +} export interface PlatformInfraInitEmptyRepoVariables { input: PlatformInfraInitEmptyRepoInput; } @@ -200,10 +326,11 @@ export interface PlatformResourceInstallationsUpgradeVariables { } /** * Variables for provisionBucket - * 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. + * Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. */ export interface ProvisionBucketVariables { input: ProvisionBucketInput; @@ -356,6 +483,35 @@ export function createMutationOperations(client: OrmClient) { 'AddNodeAndSavePayload' ), }), + approveNode: ( + args: ApproveNodeVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + approveNode: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'ApproveNode', + fieldName: 'approveNode', + ...buildCustomDocument( + 'mutation', + 'ApproveNode', + 'approveNode', + options.select, + args, + [ + { + name: 'input', + type: 'ApproveNodeInput!', + }, + ], + connectionFieldsMap, + 'ApproveNodePayload' + ), + }), copyGraph: ( args: CopyGraphVariables, options: { @@ -385,6 +541,575 @@ export function createMutationOperations(client: OrmClient) { 'CopyGraphPayload' ), }), + databaseAddEdge: ( + args: DatabaseAddEdgeVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + databaseAddEdge: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'DatabaseAddEdge', + fieldName: 'databaseAddEdge', + ...buildCustomDocument( + 'mutation', + 'DatabaseAddEdge', + 'databaseAddEdge', + options.select, + args, + [ + { + name: 'input', + type: 'DatabaseAddEdgeInput!', + }, + ], + connectionFieldsMap, + 'DatabaseAddEdgePayload' + ), + }), + databaseAddEdgeAndSave: ( + args: DatabaseAddEdgeAndSaveVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + databaseAddEdgeAndSave: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'DatabaseAddEdgeAndSave', + fieldName: 'databaseAddEdgeAndSave', + ...buildCustomDocument( + 'mutation', + 'DatabaseAddEdgeAndSave', + 'databaseAddEdgeAndSave', + options.select, + args, + [ + { + name: 'input', + type: 'DatabaseAddEdgeAndSaveInput!', + }, + ], + connectionFieldsMap, + 'DatabaseAddEdgeAndSavePayload' + ), + }), + databaseAddNode: ( + args: DatabaseAddNodeVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + databaseAddNode: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'DatabaseAddNode', + fieldName: 'databaseAddNode', + ...buildCustomDocument( + 'mutation', + 'DatabaseAddNode', + 'databaseAddNode', + options.select, + args, + [ + { + name: 'input', + type: 'DatabaseAddNodeInput!', + }, + ], + connectionFieldsMap, + 'DatabaseAddNodePayload' + ), + }), + databaseAddNodeAndSave: ( + args: DatabaseAddNodeAndSaveVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + databaseAddNodeAndSave: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'DatabaseAddNodeAndSave', + fieldName: 'databaseAddNodeAndSave', + ...buildCustomDocument( + 'mutation', + 'DatabaseAddNodeAndSave', + 'databaseAddNodeAndSave', + options.select, + args, + [ + { + name: 'input', + type: 'DatabaseAddNodeAndSaveInput!', + }, + ], + connectionFieldsMap, + 'DatabaseAddNodeAndSavePayload' + ), + }), + databaseApproveNode: ( + args: DatabaseApproveNodeVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + databaseApproveNode: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'DatabaseApproveNode', + fieldName: 'databaseApproveNode', + ...buildCustomDocument( + 'mutation', + 'DatabaseApproveNode', + 'databaseApproveNode', + options.select, + args, + [ + { + name: 'input', + type: 'DatabaseApproveNodeInput!', + }, + ], + connectionFieldsMap, + 'DatabaseApproveNodePayload' + ), + }), + databaseCopyGraph: ( + args: DatabaseCopyGraphVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + databaseCopyGraph: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'DatabaseCopyGraph', + fieldName: 'databaseCopyGraph', + ...buildCustomDocument( + 'mutation', + 'DatabaseCopyGraph', + 'databaseCopyGraph', + options.select, + args, + [ + { + name: 'input', + type: 'DatabaseCopyGraphInput!', + }, + ], + connectionFieldsMap, + 'DatabaseCopyGraphPayload' + ), + }), + databaseCreateFunctionGraph: ( + args: DatabaseCreateFunctionGraphVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + databaseCreateFunctionGraph: InferSelectResult< + DatabaseCreateFunctionGraphPayload, + S + > | null; + }>({ + client, + operation: 'mutation', + operationName: 'DatabaseCreateFunctionGraph', + fieldName: 'databaseCreateFunctionGraph', + ...buildCustomDocument( + 'mutation', + 'DatabaseCreateFunctionGraph', + 'databaseCreateFunctionGraph', + options.select, + args, + [ + { + name: 'input', + type: 'DatabaseCreateFunctionGraphInput!', + }, + ], + connectionFieldsMap, + 'DatabaseCreateFunctionGraphPayload' + ), + }), + databaseGraphInitEmptyRepo: ( + args: DatabaseGraphInitEmptyRepoVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + databaseGraphInitEmptyRepo: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'DatabaseGraphInitEmptyRepo', + fieldName: 'databaseGraphInitEmptyRepo', + ...buildCustomDocument( + 'mutation', + 'DatabaseGraphInitEmptyRepo', + 'databaseGraphInitEmptyRepo', + options.select, + args, + [ + { + name: 'input', + type: 'DatabaseGraphInitEmptyRepoInput!', + }, + ], + connectionFieldsMap, + 'DatabaseGraphInitEmptyRepoPayload' + ), + }), + databaseGraphInsertNodeAtPath: ( + args: DatabaseGraphInsertNodeAtPathVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + databaseGraphInsertNodeAtPath: InferSelectResult< + DatabaseGraphInsertNodeAtPathPayload, + S + > | null; + }>({ + client, + operation: 'mutation', + operationName: 'DatabaseGraphInsertNodeAtPath', + fieldName: 'databaseGraphInsertNodeAtPath', + ...buildCustomDocument( + 'mutation', + 'DatabaseGraphInsertNodeAtPath', + 'databaseGraphInsertNodeAtPath', + options.select, + args, + [ + { + name: 'input', + type: 'DatabaseGraphInsertNodeAtPathInput!', + }, + ], + connectionFieldsMap, + 'DatabaseGraphInsertNodeAtPathPayload' + ), + }), + databaseGraphInsertNodesAtPaths: ( + args: DatabaseGraphInsertNodesAtPathsVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + databaseGraphInsertNodesAtPaths: InferSelectResult< + DatabaseGraphInsertNodesAtPathsPayload, + S + > | null; + }>({ + client, + operation: 'mutation', + operationName: 'DatabaseGraphInsertNodesAtPaths', + fieldName: 'databaseGraphInsertNodesAtPaths', + ...buildCustomDocument( + 'mutation', + 'DatabaseGraphInsertNodesAtPaths', + 'databaseGraphInsertNodesAtPaths', + options.select, + args, + [ + { + name: 'input', + type: 'DatabaseGraphInsertNodesAtPathsInput!', + }, + ], + connectionFieldsMap, + 'DatabaseGraphInsertNodesAtPathsPayload' + ), + }), + databaseGraphSetAndCommit: ( + args: DatabaseGraphSetAndCommitVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + databaseGraphSetAndCommit: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'DatabaseGraphSetAndCommit', + fieldName: 'databaseGraphSetAndCommit', + ...buildCustomDocument( + 'mutation', + 'DatabaseGraphSetAndCommit', + 'databaseGraphSetAndCommit', + options.select, + args, + [ + { + name: 'input', + type: 'DatabaseGraphSetAndCommitInput!', + }, + ], + connectionFieldsMap, + 'DatabaseGraphSetAndCommitPayload' + ), + }), + databaseGraphSetDataAtPath: ( + args: DatabaseGraphSetDataAtPathVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + databaseGraphSetDataAtPath: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'DatabaseGraphSetDataAtPath', + fieldName: 'databaseGraphSetDataAtPath', + ...buildCustomDocument( + 'mutation', + 'DatabaseGraphSetDataAtPath', + 'databaseGraphSetDataAtPath', + options.select, + args, + [ + { + name: 'input', + type: 'DatabaseGraphSetDataAtPathInput!', + }, + ], + connectionFieldsMap, + 'DatabaseGraphSetDataAtPathPayload' + ), + }), + databaseGraphSetManyAndCommit: ( + args: DatabaseGraphSetManyAndCommitVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + databaseGraphSetManyAndCommit: InferSelectResult< + DatabaseGraphSetManyAndCommitPayload, + S + > | null; + }>({ + client, + operation: 'mutation', + operationName: 'DatabaseGraphSetManyAndCommit', + fieldName: 'databaseGraphSetManyAndCommit', + ...buildCustomDocument( + 'mutation', + 'DatabaseGraphSetManyAndCommit', + 'databaseGraphSetManyAndCommit', + options.select, + args, + [ + { + name: 'input', + type: 'DatabaseGraphSetManyAndCommitInput!', + }, + ], + connectionFieldsMap, + 'DatabaseGraphSetManyAndCommitPayload' + ), + }), + databaseImportDefinitions: ( + args: DatabaseImportDefinitionsVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + databaseImportDefinitions: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'DatabaseImportDefinitions', + fieldName: 'databaseImportDefinitions', + ...buildCustomDocument( + 'mutation', + 'DatabaseImportDefinitions', + 'databaseImportDefinitions', + options.select, + args, + [ + { + name: 'input', + type: 'DatabaseImportDefinitionsInput!', + }, + ], + connectionFieldsMap, + 'DatabaseImportDefinitionsPayload' + ), + }), + databaseImportGraphJson: ( + args: DatabaseImportGraphJsonVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + databaseImportGraphJson: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'DatabaseImportGraphJson', + fieldName: 'databaseImportGraphJson', + ...buildCustomDocument( + 'mutation', + 'DatabaseImportGraphJson', + 'databaseImportGraphJson', + options.select, + args, + [ + { + name: 'input', + type: 'DatabaseImportGraphJsonInput!', + }, + ], + connectionFieldsMap, + 'DatabaseImportGraphJsonPayload' + ), + }), + databaseSaveGraph: ( + args: DatabaseSaveGraphVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + databaseSaveGraph: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'DatabaseSaveGraph', + fieldName: 'databaseSaveGraph', + ...buildCustomDocument( + 'mutation', + 'DatabaseSaveGraph', + 'databaseSaveGraph', + options.select, + args, + [ + { + name: 'input', + type: 'DatabaseSaveGraphInput!', + }, + ], + connectionFieldsMap, + 'DatabaseSaveGraphPayload' + ), + }), + databaseStartExecution: ( + args: DatabaseStartExecutionVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + databaseStartExecution: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'DatabaseStartExecution', + fieldName: 'databaseStartExecution', + ...buildCustomDocument( + 'mutation', + 'DatabaseStartExecution', + 'databaseStartExecution', + options.select, + args, + [ + { + name: 'input', + type: 'DatabaseStartExecutionInput!', + }, + ], + connectionFieldsMap, + 'DatabaseStartExecutionPayload' + ), + }), + databaseValidateFunctionGraph: ( + args: DatabaseValidateFunctionGraphVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + databaseValidateFunctionGraph: InferSelectResult< + DatabaseValidateFunctionGraphPayload, + S + > | null; + }>({ + client, + operation: 'mutation', + operationName: 'DatabaseValidateFunctionGraph', + fieldName: 'databaseValidateFunctionGraph', + ...buildCustomDocument( + 'mutation', + 'DatabaseValidateFunctionGraph', + 'databaseValidateFunctionGraph', + options.select, + args, + [ + { + name: 'input', + type: 'DatabaseValidateFunctionGraphInput!', + }, + ], + connectionFieldsMap, + 'DatabaseValidateFunctionGraphPayload' + ), + }), + functionInvocationsCreateSync: ( + args: FunctionInvocationsCreateSyncVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + functionInvocationsCreateSync: InferSelectResult< + FunctionInvocationsCreateSyncPayload, + S + > | null; + }>({ + client, + operation: 'mutation', + operationName: 'FunctionInvocationsCreateSync', + fieldName: 'functionInvocationsCreateSync', + ...buildCustomDocument( + 'mutation', + 'FunctionInvocationsCreateSync', + 'functionInvocationsCreateSync', + options.select, + args, + [ + { + name: 'input', + type: 'FunctionInvocationsCreateSyncInput!', + }, + ], + connectionFieldsMap, + 'FunctionInvocationsCreateSyncPayload' + ), + }), importDefinitions: ( args: ImportDefinitionsVariables, options: { @@ -704,6 +1429,40 @@ export function createMutationOperations(client: OrmClient) { 'InsertNodesAtPathsPayload' ), }), + platformFunctionInvocationsCreateSync: < + S extends PlatformFunctionInvocationsCreateSyncPayloadSelect, + >( + args: PlatformFunctionInvocationsCreateSyncVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + platformFunctionInvocationsCreateSync: InferSelectResult< + PlatformFunctionInvocationsCreateSyncPayload, + S + > | null; + }>({ + client, + operation: 'mutation', + operationName: 'PlatformFunctionInvocationsCreateSync', + fieldName: 'platformFunctionInvocationsCreateSync', + ...buildCustomDocument( + 'mutation', + 'PlatformFunctionInvocationsCreateSync', + 'platformFunctionInvocationsCreateSync', + options.select, + args, + [ + { + name: 'input', + type: 'PlatformFunctionInvocationsCreateSyncInput!', + }, + ], + connectionFieldsMap, + 'PlatformFunctionInvocationsCreateSyncPayload' + ), + }), platformInfraInitEmptyRepo: ( args: PlatformInfraInitEmptyRepoVariables, options: { diff --git a/sdk/constructive-sdk/src/compute/orm/query/index.ts b/sdk/constructive-sdk/src/compute/orm/query/index.ts index 505264ae62..fcea7431b0 100644 --- a/sdk/constructive-sdk/src/compute/orm/query/index.ts +++ b/sdk/constructive-sdk/src/compute/orm/query/index.ts @@ -7,11 +7,43 @@ import { OrmClient } from '../client'; import { QueryBuilder, buildCustomDocument } from '../query-builder'; import type { InferSelectResult, StrictSelect } from '../select-types'; import { connectionFieldsMap } from '../input-types'; +export interface DatabaseReadFunctionGraphVariables { + graphId?: string; +} export interface ReadFunctionGraphVariables { graphId?: string; } export function createQueryOperations(client: OrmClient) { return { + databaseReadFunctionGraph: ( + args: DatabaseReadFunctionGraphVariables, + options?: { + select?: Record; + } + ) => + new QueryBuilder<{ + databaseReadFunctionGraph: unknown | null; + }>({ + client, + operation: 'query', + operationName: 'DatabaseReadFunctionGraph', + fieldName: 'databaseReadFunctionGraph', + ...buildCustomDocument( + 'query', + 'DatabaseReadFunctionGraph', + 'databaseReadFunctionGraph', + options?.select, + args, + [ + { + name: 'graphId', + type: 'UUID', + }, + ], + connectionFieldsMap, + undefined + ), + }), readFunctionGraph: ( args: ReadFunctionGraphVariables, options?: { diff --git a/sdk/constructive-sdk/src/config/README.md b/sdk/constructive-sdk/src/config/README.md index 3cdd1ac398..3cf1626a3b 100644 --- a/sdk/constructive-sdk/src/config/README.md +++ b/sdk/constructive-sdk/src/config/README.md @@ -8,9 +8,9 @@ ## Overview -- **Tables:** 5 +- **Tables:** 9 - **Custom queries:** 0 -- **Custom mutations:** 13 +- **Custom mutations:** 21 **Generators:** ORM diff --git a/sdk/constructive-sdk/src/config/orm/README.md b/sdk/constructive-sdk/src/config/orm/README.md index 90c6f61a0b..2cd850a467 100644 --- a/sdk/constructive-sdk/src/config/orm/README.md +++ b/sdk/constructive-sdk/src/config/orm/README.md @@ -21,14 +21,56 @@ const db = createClient({ | Model | Operations | |-------|------------| +| `appInternalSecret` | findMany, findOne, create, update, delete | | `config` | findMany, findOne, create, update, delete | +| `internalConfig` | findMany, findOne, create, update, delete | +| `internalSecret` | findMany, findOne, create, update, delete | | `platformConfig` | findMany, findOne, create, update, delete | +| `platformInternalConfig` | findMany, findOne, create, update, delete | | `platformInternalSecret` | findMany, findOne, create, update, delete | | `platformSecret` | findMany, findOne, create, update, delete | | `secret` | findMany, findOne, create, update, delete | ## Table Operations +### `db.appInternalSecret` + +CRUD operations for AppInternalSecret records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `annotations` | JSON | Yes | +| `createdAt` | Datetime | No | +| `description` | String | Yes | +| `id` | UUID | No | +| `labels` | JSON | Yes | +| `name` | String | Yes | +| `realm` | String | Yes | +| `retiredAt` | Datetime | Yes | +| `rotatedAt` | Datetime | Yes | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all appInternalSecret records +const items = await db.appInternalSecret.findMany({ select: { annotations: true, createdAt: true, description: true, id: true, labels: true, name: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.appInternalSecret.findOne({ id: '', select: { annotations: true, createdAt: true, description: true, id: true, labels: true, name: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.appInternalSecret.create({ data: { annotations: '', description: '', labels: '', name: '', realm: '', retiredAt: '', rotatedAt: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appInternalSecret.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appInternalSecret.delete({ where: { id: '' } }).execute(); +``` + ### `db.config` CRUD operations for Config records. @@ -39,6 +81,7 @@ CRUD operations for Config records. |-------|------|----------| | `annotations` | JSON | Yes | | `createdAt` | Datetime | No | +| `createdByPrincipal` | UUID | Yes | | `databaseId` | UUID | Yes | | `description` | String | Yes | | `expiresAt` | Datetime | Yes | @@ -49,19 +92,20 @@ CRUD operations for Config records. | `provider` | String | Yes | | `realm` | String | Yes | | `updatedAt` | Datetime | No | +| `updatedByPrincipal` | UUID | Yes | | `value` | String | Yes | **Operations:** ```typescript // List all config records -const items = await db.config.findMany({ select: { annotations: true, createdAt: true, databaseId: true, description: true, expiresAt: true, id: true, labels: true, name: true, namespaceId: true, provider: true, realm: true, updatedAt: true, value: true } }).execute(); +const items = await db.config.findMany({ select: { annotations: true, createdAt: true, createdByPrincipal: true, databaseId: true, description: true, expiresAt: true, id: true, labels: true, name: true, namespaceId: true, provider: true, realm: true, updatedAt: true, updatedByPrincipal: true, value: true } }).execute(); // Get one by id -const item = await db.config.findOne({ id: '', select: { annotations: true, createdAt: true, databaseId: true, description: true, expiresAt: true, id: true, labels: true, name: true, namespaceId: true, provider: true, realm: true, updatedAt: true, value: true } }).execute(); +const item = await db.config.findOne({ id: '', select: { annotations: true, createdAt: true, createdByPrincipal: true, databaseId: true, description: true, expiresAt: true, id: true, labels: true, name: true, namespaceId: true, provider: true, realm: true, updatedAt: true, updatedByPrincipal: true, value: true } }).execute(); // Create -const created = await db.config.create({ data: { annotations: '', databaseId: '', description: '', expiresAt: '', labels: '', name: '', namespaceId: '', provider: '', realm: '', value: '' }, select: { id: true } }).execute(); +const created = await db.config.create({ data: { annotations: '', createdByPrincipal: '', databaseId: '', description: '', expiresAt: '', labels: '', name: '', namespaceId: '', provider: '', realm: '', updatedByPrincipal: '', value: '' }, select: { id: true } }).execute(); // Update const updated = await db.config.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); @@ -70,6 +114,85 @@ const updated = await db.config.update({ where: { id: '' }, data: { annota const deleted = await db.config.delete({ where: { id: '' } }).execute(); ``` +### `db.internalConfig` + +CRUD operations for InternalConfig records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `annotations` | JSON | Yes | +| `createdAt` | Datetime | No | +| `databaseId` | UUID | Yes | +| `description` | String | Yes | +| `expiresAt` | Datetime | Yes | +| `id` | UUID | No | +| `labels` | JSON | Yes | +| `name` | String | Yes | +| `provider` | String | Yes | +| `realm` | String | Yes | +| `updatedAt` | Datetime | No | +| `value` | String | Yes | + +**Operations:** + +```typescript +// List all internalConfig records +const items = await db.internalConfig.findMany({ select: { annotations: true, createdAt: true, databaseId: true, description: true, expiresAt: true, id: true, labels: true, name: true, provider: true, realm: true, updatedAt: true, value: true } }).execute(); + +// Get one by id +const item = await db.internalConfig.findOne({ id: '', select: { annotations: true, createdAt: true, databaseId: true, description: true, expiresAt: true, id: true, labels: true, name: true, provider: true, realm: true, updatedAt: true, value: true } }).execute(); + +// Create +const created = await db.internalConfig.create({ data: { annotations: '', databaseId: '', description: '', expiresAt: '', labels: '', name: '', provider: '', realm: '', value: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.internalConfig.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.internalConfig.delete({ where: { id: '' } }).execute(); +``` + +### `db.internalSecret` + +CRUD operations for InternalSecret records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `annotations` | JSON | Yes | +| `createdAt` | Datetime | No | +| `databaseId` | UUID | Yes | +| `description` | String | Yes | +| `id` | UUID | No | +| `labels` | JSON | Yes | +| `name` | String | Yes | +| `realm` | String | Yes | +| `retiredAt` | Datetime | Yes | +| `rotatedAt` | Datetime | Yes | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all internalSecret records +const items = await db.internalSecret.findMany({ select: { annotations: true, createdAt: true, databaseId: true, description: true, id: true, labels: true, name: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.internalSecret.findOne({ id: '', select: { annotations: true, createdAt: true, databaseId: true, description: true, id: true, labels: true, name: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.internalSecret.create({ data: { annotations: '', databaseId: '', description: '', labels: '', name: '', realm: '', retiredAt: '', rotatedAt: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.internalSecret.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.internalSecret.delete({ where: { id: '' } }).execute(); +``` + ### `db.platformConfig` CRUD operations for PlatformConfig records. @@ -80,6 +203,7 @@ CRUD operations for PlatformConfig records. |-------|------|----------| | `annotations` | JSON | Yes | | `createdAt` | Datetime | No | +| `createdByPrincipal` | UUID | Yes | | `description` | String | Yes | | `expiresAt` | Datetime | Yes | | `id` | UUID | No | @@ -89,19 +213,20 @@ CRUD operations for PlatformConfig records. | `provider` | String | Yes | | `realm` | String | Yes | | `updatedAt` | Datetime | No | +| `updatedByPrincipal` | UUID | Yes | | `value` | String | Yes | **Operations:** ```typescript // List all platformConfig records -const items = await db.platformConfig.findMany({ select: { annotations: true, createdAt: true, description: true, expiresAt: true, id: true, labels: true, name: true, namespaceId: true, provider: true, realm: true, updatedAt: true, value: true } }).execute(); +const items = await db.platformConfig.findMany({ select: { annotations: true, createdAt: true, createdByPrincipal: true, description: true, expiresAt: true, id: true, labels: true, name: true, namespaceId: true, provider: true, realm: true, updatedAt: true, updatedByPrincipal: true, value: true } }).execute(); // Get one by id -const item = await db.platformConfig.findOne({ id: '', select: { annotations: true, createdAt: true, description: true, expiresAt: true, id: true, labels: true, name: true, namespaceId: true, provider: true, realm: true, updatedAt: true, value: true } }).execute(); +const item = await db.platformConfig.findOne({ id: '', select: { annotations: true, createdAt: true, createdByPrincipal: true, description: true, expiresAt: true, id: true, labels: true, name: true, namespaceId: true, provider: true, realm: true, updatedAt: true, updatedByPrincipal: true, value: true } }).execute(); // Create -const created = await db.platformConfig.create({ data: { annotations: '', description: '', expiresAt: '', labels: '', name: '', namespaceId: '', provider: '', realm: '', value: '' }, select: { id: true } }).execute(); +const created = await db.platformConfig.create({ data: { annotations: '', createdByPrincipal: '', description: '', expiresAt: '', labels: '', name: '', namespaceId: '', provider: '', realm: '', updatedByPrincipal: '', value: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformConfig.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); @@ -110,6 +235,45 @@ const updated = await db.platformConfig.update({ where: { id: '' }, data: const deleted = await db.platformConfig.delete({ where: { id: '' } }).execute(); ``` +### `db.platformInternalConfig` + +CRUD operations for PlatformInternalConfig records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `annotations` | JSON | Yes | +| `createdAt` | Datetime | No | +| `description` | String | Yes | +| `expiresAt` | Datetime | Yes | +| `id` | UUID | No | +| `labels` | JSON | Yes | +| `name` | String | Yes | +| `provider` | String | Yes | +| `realm` | String | Yes | +| `updatedAt` | Datetime | No | +| `value` | String | Yes | + +**Operations:** + +```typescript +// List all platformInternalConfig records +const items = await db.platformInternalConfig.findMany({ select: { annotations: true, createdAt: true, description: true, expiresAt: true, id: true, labels: true, name: true, provider: true, realm: true, updatedAt: true, value: true } }).execute(); + +// Get one by id +const item = await db.platformInternalConfig.findOne({ id: '', select: { annotations: true, createdAt: true, description: true, expiresAt: true, id: true, labels: true, name: true, provider: true, realm: true, updatedAt: true, value: true } }).execute(); + +// Create +const created = await db.platformInternalConfig.create({ data: { annotations: '', description: '', expiresAt: '', labels: '', name: '', provider: '', realm: '', value: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformInternalConfig.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformInternalConfig.delete({ where: { id: '' } }).execute(); +``` + ### `db.platformInternalSecret` CRUD operations for PlatformInternalSecret records. @@ -124,7 +288,6 @@ CRUD operations for PlatformInternalSecret records. | `id` | UUID | No | | `labels` | JSON | Yes | | `name` | String | Yes | -| `namespaceId` | UUID | Yes | | `realm` | String | Yes | | `retiredAt` | Datetime | Yes | | `rotatedAt` | Datetime | Yes | @@ -134,13 +297,13 @@ CRUD operations for PlatformInternalSecret records. ```typescript // List all platformInternalSecret records -const items = await db.platformInternalSecret.findMany({ select: { annotations: true, createdAt: true, description: true, id: true, labels: true, name: true, namespaceId: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } }).execute(); +const items = await db.platformInternalSecret.findMany({ select: { annotations: true, createdAt: true, description: true, id: true, labels: true, name: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.platformInternalSecret.findOne({ id: '', select: { annotations: true, createdAt: true, description: true, id: true, labels: true, name: true, namespaceId: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } }).execute(); +const item = await db.platformInternalSecret.findOne({ id: '', select: { annotations: true, createdAt: true, description: true, id: true, labels: true, name: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } }).execute(); // Create -const created = await db.platformInternalSecret.create({ data: { annotations: '', description: '', labels: '', name: '', namespaceId: '', realm: '', retiredAt: '', rotatedAt: '' }, select: { id: true } }).execute(); +const created = await db.platformInternalSecret.create({ data: { annotations: '', description: '', labels: '', name: '', realm: '', retiredAt: '', rotatedAt: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformInternalSecret.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); @@ -232,6 +395,66 @@ const deleted = await db.secret.delete({ where: { id: '' } }).execute(); ## Custom Operations +### `db.mutation._internalSecretsDel` + +_internalSecretsDel + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | _InternalSecretsDelInput (required) | + +```typescript +const result = await db.mutation._internalSecretsDel({ input: { databaseId: '', realm: '', secretName: '' } }).execute(); +``` + +### `db.mutation._internalSecretsRemoveArray` + +_internalSecretsRemoveArray + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | _InternalSecretsRemoveArrayInput (required) | + +```typescript +const result = await db.mutation._internalSecretsRemoveArray({ input: { databaseId: '', realm: '', secretNames: '' } }).execute(); +``` + +### `db.mutation._internalSecretsRotate` + +_internalSecretsRotate + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | _InternalSecretsRotateInput (required) | + +```typescript +const result = await db.mutation._internalSecretsRotate({ input: { algo: '', databaseId: '', realm: '', secretName: '', secretValue: '' } }).execute(); +``` + +### `db.mutation._internalSecretsSet` + +_internalSecretsSet + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | _InternalSecretsSetInput (required) | + +```typescript +const result = await db.mutation._internalSecretsSet({ input: { algo: '', scopeDatabaseId: '', secretName: '', secretRealm: '', secretValue: '' } }).execute(); +``` + ### `db.mutation._secretsDel` _secretsDel @@ -292,6 +515,66 @@ _secretsSet const result = await db.mutation._secretsSet({ input: '<_SecretsSetInput>' }).execute(); ``` +### `db.mutation.appInternalSecretsDel` + +appInternalSecretsDel + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | AppInternalSecretsDelInput (required) | + +```typescript +const result = await db.mutation.appInternalSecretsDel({ input: { realm: '', secretName: '' } }).execute(); +``` + +### `db.mutation.appInternalSecretsRemoveArray` + +appInternalSecretsRemoveArray + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | AppInternalSecretsRemoveArrayInput (required) | + +```typescript +const result = await db.mutation.appInternalSecretsRemoveArray({ input: { realm: '', secretNames: '' } }).execute(); +``` + +### `db.mutation.appInternalSecretsRotate` + +appInternalSecretsRotate + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | AppInternalSecretsRotateInput (required) | + +```typescript +const result = await db.mutation.appInternalSecretsRotate({ input: { algo: '', realm: '', secretName: '', secretValue: '' } }).execute(); +``` + +### `db.mutation.appInternalSecretsSet` + +appInternalSecretsSet + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | AppInternalSecretsSetInput (required) | + +```typescript +const result = await db.mutation.appInternalSecretsSet({ input: { algo: '', secretName: '', secretRealm: '', secretValue: '' } }).execute(); +``` + ### `db.mutation.platformInternalSecretsDel` platformInternalSecretsDel @@ -304,7 +587,7 @@ platformInternalSecretsDel | `input` | PlatformInternalSecretsDelInput (required) | ```typescript -const result = await db.mutation.platformInternalSecretsDel({ input: { namespaceId: '', realm: '', secretName: '' } }).execute(); +const result = await db.mutation.platformInternalSecretsDel({ input: { realm: '', secretName: '' } }).execute(); ``` ### `db.mutation.platformInternalSecretsRemoveArray` @@ -319,7 +602,7 @@ platformInternalSecretsRemoveArray | `input` | PlatformInternalSecretsRemoveArrayInput (required) | ```typescript -const result = await db.mutation.platformInternalSecretsRemoveArray({ input: { namespaceId: '', realm: '', secretNames: '' } }).execute(); +const result = await db.mutation.platformInternalSecretsRemoveArray({ input: { realm: '', secretNames: '' } }).execute(); ``` ### `db.mutation.platformInternalSecretsRotate` @@ -334,7 +617,7 @@ platformInternalSecretsRotate | `input` | PlatformInternalSecretsRotateInput (required) | ```typescript -const result = await db.mutation.platformInternalSecretsRotate({ input: { algo: '', namespaceId: '', realm: '', secretName: '', secretValue: '' } }).execute(); +const result = await db.mutation.platformInternalSecretsRotate({ input: { algo: '', realm: '', secretName: '', secretValue: '' } }).execute(); ``` ### `db.mutation.platformInternalSecretsSet` @@ -349,7 +632,7 @@ platformInternalSecretsSet | `input` | PlatformInternalSecretsSetInput (required) | ```typescript -const result = await db.mutation.platformInternalSecretsSet({ input: { algo: '', secretName: '', secretNamespaceId: '', secretRealm: '', secretValue: '' } }).execute(); +const result = await db.mutation.platformInternalSecretsSet({ input: { algo: '', secretName: '', secretRealm: '', secretValue: '' } }).execute(); ``` ### `db.mutation.platformSecretsDel` @@ -414,10 +697,11 @@ const result = await db.mutation.platformSecretsSet({ input: ' | null; + createdAt?: string | null; + description?: string | null; + id: string; + labels?: Record | null; + name?: string | null; + realm?: string | null; + retiredAt?: string | null; + rotatedAt?: string | null; + updatedAt?: string | null; +} +/** Namespace-backed plaintext key-value config store (like a k8s ConfigMap); admin-only, fully CRUD-exposed */ export interface Config { /** Freeform metadata for tooling and operational notes */ annotations?: Record | null; createdAt?: string | null; + createdByPrincipal?: string | null; /** Database that owns this resource (database-scoped isolation) */ databaseId?: string | null; /** Human-readable note about this config entry */ @@ -255,14 +268,54 @@ export interface Config { /** Optional discriminator scoping this value under its name. NULL = the default/unqualified value; getters fall back from an exact realm match to the NULL-realm row. */ realm?: string | null; updatedAt?: string | null; + updatedByPrincipal?: string | null; /** Plaintext config value */ value?: string | null; } +/** -level plaintext key-value config store; database-resident, never projected into Kubernetes */ +export interface InternalConfig { + /** Freeform metadata for tooling and operational notes */ + annotations?: Record | null; + createdAt?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; + /** Human-readable note about this config entry */ + description?: string | null; + /** Optional expiration timestamp for time-limited config entries */ + expiresAt?: string | null; + /** Unique identifier for this config entry */ + id: string; + /** Key/value pairs for selecting/filtering config entries */ + labels?: Record | null; + /** Key name identifying the config entry */ + name?: string | null; + /** Integration provider slug (e.g. mailgun, postgres). Used by the UI to group config entries by integration. No FK. */ + provider?: string | null; + /** Optional discriminator scoping this value under its name. NULL = the default/unqualified value; getters fall back from an exact realm match to the NULL-realm row. */ + realm?: string | null; + updatedAt?: string | null; + /** Plaintext config value */ + value?: string | null; +} +export interface InternalSecret { + annotations?: Record | null; + createdAt?: string | null; + databaseId?: string | null; + description?: string | null; + id: string; + labels?: Record | null; + name?: string | null; + realm?: string | null; + retiredAt?: string | null; + rotatedAt?: string | null; + updatedAt?: string | null; +} /** Namespace-backed plaintext key-value config store (like a k8s ConfigMap); admin-only, fully CRUD-exposed */ export interface PlatformConfig { /** Freeform metadata for tooling and operational notes */ annotations?: Record | null; createdAt?: string | null; + createdByPrincipal?: string | null; /** Human-readable note about this config entry */ description?: string | null; /** Optional expiration timestamp for time-limited config entries */ @@ -280,6 +333,30 @@ export interface PlatformConfig { /** Optional discriminator scoping this value under its name. NULL = the default/unqualified value; getters fall back from an exact realm match to the NULL-realm row. */ realm?: string | null; updatedAt?: string | null; + updatedByPrincipal?: string | null; + /** Plaintext config value */ + value?: string | null; +} +/** platform-level plaintext key-value config store; database-resident, never projected into Kubernetes */ +export interface PlatformInternalConfig { + /** Freeform metadata for tooling and operational notes */ + annotations?: Record | null; + createdAt?: string | null; + /** Human-readable note about this config entry */ + description?: string | null; + /** Optional expiration timestamp for time-limited config entries */ + expiresAt?: string | null; + /** Unique identifier for this config entry */ + id: string; + /** Key/value pairs for selecting/filtering config entries */ + labels?: Record | null; + /** Key name identifying the config entry */ + name?: string | null; + /** Integration provider slug (e.g. mailgun, postgres). Used by the UI to group config entries by integration. No FK. */ + provider?: string | null; + /** Optional discriminator scoping this value under its name. NULL = the default/unqualified value; getters fall back from an exact realm match to the NULL-realm row. */ + realm?: string | null; + updatedAt?: string | null; /** Plaintext config value */ value?: string | null; } @@ -290,7 +367,6 @@ export interface PlatformInternalSecret { id: string; labels?: Record | null; name?: string | null; - namespaceId?: string | null; realm?: string | null; retiredAt?: string | null; rotatedAt?: string | null; @@ -338,22 +414,44 @@ export interface PageInfo { endCursor?: string | null; } // ============ Entity Relation Types ============ +export interface AppInternalSecretRelations {} export interface ConfigRelations {} +export interface InternalConfigRelations {} +export interface InternalSecretRelations {} export interface PlatformConfigRelations {} +export interface PlatformInternalConfigRelations {} export interface PlatformInternalSecretRelations {} export interface PlatformSecretRelations {} export interface SecretRelations {} // ============ Entity Types With Relations ============ +export type AppInternalSecretWithRelations = AppInternalSecret & AppInternalSecretRelations; export type ConfigWithRelations = Config & ConfigRelations; +export type InternalConfigWithRelations = InternalConfig & InternalConfigRelations; +export type InternalSecretWithRelations = InternalSecret & InternalSecretRelations; export type PlatformConfigWithRelations = PlatformConfig & PlatformConfigRelations; +export type PlatformInternalConfigWithRelations = PlatformInternalConfig & + PlatformInternalConfigRelations; export type PlatformInternalSecretWithRelations = PlatformInternalSecret & PlatformInternalSecretRelations; export type PlatformSecretWithRelations = PlatformSecret & PlatformSecretRelations; export type SecretWithRelations = Secret & SecretRelations; // ============ Entity Select Types ============ +export type AppInternalSecretSelect = { + annotations?: boolean; + createdAt?: boolean; + description?: boolean; + id?: boolean; + labels?: boolean; + name?: boolean; + realm?: boolean; + retiredAt?: boolean; + rotatedAt?: boolean; + updatedAt?: boolean; +}; export type ConfigSelect = { annotations?: boolean; createdAt?: boolean; + createdByPrincipal?: boolean; databaseId?: boolean; description?: boolean; expiresAt?: boolean; @@ -364,11 +462,40 @@ export type ConfigSelect = { provider?: boolean; realm?: boolean; updatedAt?: boolean; + updatedByPrincipal?: boolean; value?: boolean; }; +export type InternalConfigSelect = { + annotations?: boolean; + createdAt?: boolean; + databaseId?: boolean; + description?: boolean; + expiresAt?: boolean; + id?: boolean; + labels?: boolean; + name?: boolean; + provider?: boolean; + realm?: boolean; + updatedAt?: boolean; + value?: boolean; +}; +export type InternalSecretSelect = { + annotations?: boolean; + createdAt?: boolean; + databaseId?: boolean; + description?: boolean; + id?: boolean; + labels?: boolean; + name?: boolean; + realm?: boolean; + retiredAt?: boolean; + rotatedAt?: boolean; + updatedAt?: boolean; +}; export type PlatformConfigSelect = { annotations?: boolean; createdAt?: boolean; + createdByPrincipal?: boolean; description?: boolean; expiresAt?: boolean; id?: boolean; @@ -378,6 +505,20 @@ export type PlatformConfigSelect = { provider?: boolean; realm?: boolean; updatedAt?: boolean; + updatedByPrincipal?: boolean; + value?: boolean; +}; +export type PlatformInternalConfigSelect = { + annotations?: boolean; + createdAt?: boolean; + description?: boolean; + expiresAt?: boolean; + id?: boolean; + labels?: boolean; + name?: boolean; + provider?: boolean; + realm?: boolean; + updatedAt?: boolean; value?: boolean; }; export type PlatformInternalSecretSelect = { @@ -387,7 +528,6 @@ export type PlatformInternalSecretSelect = { id?: boolean; labels?: boolean; name?: boolean; - namespaceId?: boolean; realm?: boolean; retiredAt?: boolean; rotatedAt?: boolean; @@ -423,6 +563,34 @@ export type SecretSelect = { updatedAt?: boolean; }; // ============ Table Filter Types ============ +export interface AppInternalSecretFilter { + /** Checks for all expressions in this list. */ + and?: AppInternalSecretFilter[]; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: AppInternalSecretFilter; + /** Checks for any expressions in this list. */ + or?: AppInternalSecretFilter[]; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; + /** Filter by the object’s `retiredAt` field. */ + retiredAt?: DatetimeFilter; + /** Filter by the object’s `rotatedAt` field. */ + rotatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} export interface ConfigFilter { /** Checks for all expressions in this list. */ and?: ConfigFilter[]; @@ -430,6 +598,8 @@ export interface ConfigFilter { annotations?: JSONFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; /** Filter by the object’s `description` field. */ @@ -454,9 +624,73 @@ export interface ConfigFilter { realm?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** Filter by the object’s `value` field. */ + value?: StringFilter; +} +export interface InternalConfigFilter { + /** Checks for all expressions in this list. */ + and?: InternalConfigFilter[]; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** 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 `expiresAt` field. */ + expiresAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: InternalConfigFilter; + /** Checks for any expressions in this list. */ + or?: InternalConfigFilter[]; + /** Filter by the object’s `provider` field. */ + provider?: StringFilter; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; /** Filter by the object’s `value` field. */ value?: StringFilter; } +export interface InternalSecretFilter { + /** Checks for all expressions in this list. */ + and?: InternalSecretFilter[]; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** 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 `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: InternalSecretFilter; + /** Checks for any expressions in this list. */ + or?: InternalSecretFilter[]; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; + /** Filter by the object’s `retiredAt` field. */ + retiredAt?: DatetimeFilter; + /** Filter by the object’s `rotatedAt` field. */ + rotatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} export interface PlatformConfigFilter { /** Checks for all expressions in this list. */ and?: PlatformConfigFilter[]; @@ -464,6 +698,8 @@ export interface PlatformConfigFilter { annotations?: JSONFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `description` field. */ description?: StringFilter; /** Filter by the object’s `expiresAt` field. */ @@ -486,6 +722,38 @@ export interface PlatformConfigFilter { realm?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** Filter by the object’s `value` field. */ + value?: StringFilter; +} +export interface PlatformInternalConfigFilter { + /** Checks for all expressions in this list. */ + and?: PlatformInternalConfigFilter[]; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: PlatformInternalConfigFilter; + /** Checks for any expressions in this list. */ + or?: PlatformInternalConfigFilter[]; + /** Filter by the object’s `provider` field. */ + provider?: StringFilter; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; /** Filter by the object’s `value` field. */ value?: StringFilter; } @@ -504,8 +772,6 @@ export interface PlatformInternalSecretFilter { labels?: JSONFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; /** Negates the expression. */ not?: PlatformInternalSecretFilter; /** Checks for any expressions in this list. */ @@ -586,11 +852,35 @@ export interface SecretFilter { updatedAt?: DatetimeFilter; } // ============ OrderBy Types ============ +export type AppInternalSecretOrderBy = + | 'ANNOTATIONS_ASC' + | 'ANNOTATIONS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'LABELS_ASC' + | 'LABELS_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'REALM_ASC' + | 'REALM_DESC' + | 'RETIRED_AT_ASC' + | 'RETIRED_AT_DESC' + | 'ROTATED_AT_ASC' + | 'ROTATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; export type ConfigOrderBy = | 'ANNOTATIONS_ASC' | 'ANNOTATIONS_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'DESCRIPTION_ASC' @@ -614,13 +904,69 @@ export type ConfigOrderBy = | 'REALM_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC' + | 'VALUE_ASC' + | 'VALUE_DESC'; +export type InternalConfigOrderBy = + | 'ANNOTATIONS_ASC' + | 'ANNOTATIONS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'EXPIRES_AT_ASC' + | 'EXPIRES_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'LABELS_ASC' + | 'LABELS_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PROVIDER_ASC' + | 'PROVIDER_DESC' + | 'REALM_ASC' + | 'REALM_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' | 'VALUE_ASC' | 'VALUE_DESC'; +export type InternalSecretOrderBy = + | 'ANNOTATIONS_ASC' + | 'ANNOTATIONS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'LABELS_ASC' + | 'LABELS_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'REALM_ASC' + | 'REALM_DESC' + | 'RETIRED_AT_ASC' + | 'RETIRED_AT_DESC' + | 'ROTATED_AT_ASC' + | 'ROTATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; export type PlatformConfigOrderBy = | 'ANNOTATIONS_ASC' | 'ANNOTATIONS_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' | 'EXPIRES_AT_ASC' @@ -642,6 +988,34 @@ export type PlatformConfigOrderBy = | 'REALM_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC' + | 'VALUE_ASC' + | 'VALUE_DESC'; +export type PlatformInternalConfigOrderBy = + | 'ANNOTATIONS_ASC' + | 'ANNOTATIONS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'EXPIRES_AT_ASC' + | 'EXPIRES_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'LABELS_ASC' + | 'LABELS_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PROVIDER_ASC' + | 'PROVIDER_DESC' + | 'REALM_ASC' + | 'REALM_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' | 'VALUE_ASC' | 'VALUE_DESC'; export type PlatformInternalSecretOrderBy = @@ -655,8 +1029,6 @@ export type PlatformInternalSecretOrderBy = | 'ID_DESC' | 'LABELS_ASC' | 'LABELS_DESC' - | 'NAMESPACE_ID_ASC' - | 'NAMESPACE_ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'NATURAL' @@ -723,39 +1095,139 @@ export type SecretOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; // ============ CRUD Input Types ============ +export interface CreateAppInternalSecretInput { + clientMutationId?: string; + appInternalSecret: { + annotations?: Record; + description?: string; + labels?: Record; + name?: string; + realm?: string; + retiredAt?: string; + rotatedAt?: string; + }; +} +export interface AppInternalSecretPatch { + annotations?: Record | null; + description?: string | null; + labels?: Record | null; + name?: string | null; + realm?: string | null; + retiredAt?: string | null; + rotatedAt?: string | null; +} +export interface UpdateAppInternalSecretInput { + clientMutationId?: string; + id: string; + appInternalSecretPatch: AppInternalSecretPatch; +} +export interface DeleteAppInternalSecretInput { + clientMutationId?: string; + id: string; +} export interface CreateConfigInput { clientMutationId?: string; - config: { + config: { + annotations?: Record; + createdByPrincipal?: string; + databaseId: string; + description?: string; + expiresAt?: string; + labels?: Record; + name: string; + namespaceId: string; + provider?: string; + realm?: string; + updatedByPrincipal?: string; + value?: string; + }; +} +export interface ConfigPatch { + annotations?: Record | null; + createdByPrincipal?: string | null; + databaseId?: string | null; + description?: string | null; + expiresAt?: string | null; + labels?: Record | null; + name?: string | null; + namespaceId?: string | null; + provider?: string | null; + realm?: string | null; + updatedByPrincipal?: string | null; + value?: string | null; +} +export interface UpdateConfigInput { + clientMutationId?: string; + id: string; + configPatch: ConfigPatch; +} +export interface DeleteConfigInput { + clientMutationId?: string; + id: string; +} +export interface CreateInternalConfigInput { + clientMutationId?: string; + internalConfig: { annotations?: Record; databaseId: string; description?: string; expiresAt?: string; labels?: Record; name: string; - namespaceId: string; provider?: string; realm?: string; value?: string; }; } -export interface ConfigPatch { +export interface InternalConfigPatch { annotations?: Record | null; databaseId?: string | null; description?: string | null; expiresAt?: string | null; labels?: Record | null; name?: string | null; - namespaceId?: string | null; provider?: string | null; realm?: string | null; value?: string | null; } -export interface UpdateConfigInput { +export interface UpdateInternalConfigInput { clientMutationId?: string; id: string; - configPatch: ConfigPatch; + internalConfigPatch: InternalConfigPatch; } -export interface DeleteConfigInput { +export interface DeleteInternalConfigInput { + clientMutationId?: string; + id: string; +} +export interface CreateInternalSecretInput { + clientMutationId?: string; + internalSecret: { + annotations?: Record; + databaseId: string; + description?: string; + labels?: Record; + name?: string; + realm?: string; + retiredAt?: string; + rotatedAt?: string; + }; +} +export interface InternalSecretPatch { + annotations?: Record | null; + databaseId?: string | null; + description?: string | null; + labels?: Record | null; + name?: string | null; + realm?: string | null; + retiredAt?: string | null; + rotatedAt?: string | null; +} +export interface UpdateInternalSecretInput { + clientMutationId?: string; + id: string; + internalSecretPatch: InternalSecretPatch; +} +export interface DeleteInternalSecretInput { clientMutationId?: string; id: string; } @@ -763,6 +1235,7 @@ export interface CreatePlatformConfigInput { clientMutationId?: string; platformConfig: { annotations?: Record; + createdByPrincipal?: string; description?: string; expiresAt?: string; labels?: Record; @@ -770,11 +1243,13 @@ export interface CreatePlatformConfigInput { namespaceId: string; provider?: string; realm?: string; + updatedByPrincipal?: string; value?: string; }; } export interface PlatformConfigPatch { annotations?: Record | null; + createdByPrincipal?: string | null; description?: string | null; expiresAt?: string | null; labels?: Record | null; @@ -782,6 +1257,7 @@ export interface PlatformConfigPatch { namespaceId?: string | null; provider?: string | null; realm?: string | null; + updatedByPrincipal?: string | null; value?: string | null; } export interface UpdatePlatformConfigInput { @@ -793,6 +1269,38 @@ export interface DeletePlatformConfigInput { clientMutationId?: string; id: string; } +export interface CreatePlatformInternalConfigInput { + clientMutationId?: string; + platformInternalConfig: { + annotations?: Record; + description?: string; + expiresAt?: string; + labels?: Record; + name: string; + provider?: string; + realm?: string; + value?: string; + }; +} +export interface PlatformInternalConfigPatch { + annotations?: Record | null; + description?: string | null; + expiresAt?: string | null; + labels?: Record | null; + name?: string | null; + provider?: string | null; + realm?: string | null; + value?: string | null; +} +export interface UpdatePlatformInternalConfigInput { + clientMutationId?: string; + id: string; + platformInternalConfigPatch: PlatformInternalConfigPatch; +} +export interface DeletePlatformInternalConfigInput { + clientMutationId?: string; + id: string; +} export interface CreatePlatformInternalSecretInput { clientMutationId?: string; platformInternalSecret: { @@ -800,7 +1308,6 @@ export interface CreatePlatformInternalSecretInput { description?: string; labels?: Record; name?: string; - namespaceId: string; realm?: string; retiredAt?: string; rotatedAt?: string; @@ -811,7 +1318,6 @@ export interface PlatformInternalSecretPatch { description?: string | null; labels?: Record | null; name?: string | null; - namespaceId?: string | null; realm?: string | null; retiredAt?: string | null; rotatedAt?: string | null; @@ -898,6 +1404,34 @@ export interface DeleteSecretInput { // ============ Connection Fields Map ============ export const connectionFieldsMap = {} as Record>; // ============ Custom Input Types (from schema) ============ +export interface _InternalSecretsDelInput { + clientMutationId?: string; + databaseId?: string; + realm?: string; + secretName?: string; +} +export interface _InternalSecretsRemoveArrayInput { + clientMutationId?: string; + databaseId?: string; + realm?: string; + secretNames?: string[]; +} +export interface _InternalSecretsRotateInput { + algo?: string; + clientMutationId?: string; + databaseId?: string; + realm?: string; + secretName?: string; + secretValue?: string; +} +export interface _InternalSecretsSetInput { + algo?: string; + clientMutationId?: string; + scopeDatabaseId?: string; + secretName?: string; + secretRealm?: string; + secretValue?: string; +} export interface _SecretsDelInput { clientMutationId?: string; databaseId?: string; @@ -931,22 +1465,43 @@ export interface _SecretsSetInput { secretRealm?: string; secretValue?: string; } +export interface AppInternalSecretsDelInput { + clientMutationId?: string; + realm?: string; + secretName?: string; +} +export interface AppInternalSecretsRemoveArrayInput { + clientMutationId?: string; + realm?: string; + secretNames?: string[]; +} +export interface AppInternalSecretsRotateInput { + algo?: string; + clientMutationId?: string; + realm?: string; + secretName?: string; + secretValue?: string; +} +export interface AppInternalSecretsSetInput { + algo?: string; + clientMutationId?: string; + secretName?: string; + secretRealm?: string; + secretValue?: string; +} export interface PlatformInternalSecretsDelInput { clientMutationId?: string; - namespaceId?: string; realm?: string; secretName?: string; } export interface PlatformInternalSecretsRemoveArrayInput { clientMutationId?: string; - namespaceId?: string; realm?: string; secretNames?: string[]; } export interface PlatformInternalSecretsRotateInput { algo?: string; clientMutationId?: string; - namespaceId?: string; realm?: string; secretName?: string; secretValue?: string; @@ -955,7 +1510,6 @@ export interface PlatformInternalSecretsSetInput { algo?: string; clientMutationId?: string; secretName?: string; - secretNamespaceId?: string; secretRealm?: string; secretValue?: string; } @@ -1002,6 +1556,7 @@ export interface ConfigInput { /** Freeform metadata for tooling and operational notes */ annotations?: Record; createdAt?: string; + createdByPrincipal?: string; /** Database that owns this resource (database-scoped isolation) */ databaseId: string; /** Human-readable note about this config entry */ @@ -1021,6 +1576,32 @@ export interface ConfigInput { /** Optional discriminator scoping this value under its name. NULL = the default/unqualified value; getters fall back from an exact realm match to the NULL-realm row. */ realm?: string; updatedAt?: string; + updatedByPrincipal?: string; + /** Plaintext config value */ + value?: string; +} +/** An input for mutations affecting `InternalConfig` */ +export interface InternalConfigInput { + /** Freeform metadata for tooling and operational notes */ + annotations?: Record; + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Human-readable note about this config entry */ + description?: string; + /** Optional expiration timestamp for time-limited config entries */ + expiresAt?: string; + /** Unique identifier for this config entry */ + id?: string; + /** Key/value pairs for selecting/filtering config entries */ + labels?: Record; + /** Key name identifying the config entry */ + name: string; + /** Integration provider slug (e.g. mailgun, postgres). Used by the UI to group config entries by integration. No FK. */ + provider?: string; + /** Optional discriminator scoping this value under its name. NULL = the default/unqualified value; getters fall back from an exact realm match to the NULL-realm row. */ + realm?: string; + updatedAt?: string; /** Plaintext config value */ value?: string; } @@ -1029,6 +1610,7 @@ export interface PlatformConfigInput { /** Freeform metadata for tooling and operational notes */ annotations?: Record; createdAt?: string; + createdByPrincipal?: string; /** Human-readable note about this config entry */ description?: string; /** Optional expiration timestamp for time-limited config entries */ @@ -1046,10 +1628,62 @@ export interface PlatformConfigInput { /** Optional discriminator scoping this value under its name. NULL = the default/unqualified value; getters fall back from an exact realm match to the NULL-realm row. */ realm?: string; updatedAt?: string; + updatedByPrincipal?: string; + /** Plaintext config value */ + value?: string; +} +/** An input for mutations affecting `PlatformInternalConfig` */ +export interface PlatformInternalConfigInput { + /** Freeform metadata for tooling and operational notes */ + annotations?: Record; + createdAt?: string; + /** Human-readable note about this config entry */ + description?: string; + /** Optional expiration timestamp for time-limited config entries */ + expiresAt?: string; + /** Unique identifier for this config entry */ + id?: string; + /** Key/value pairs for selecting/filtering config entries */ + labels?: Record; + /** Key name identifying the config entry */ + name: string; + /** Integration provider slug (e.g. mailgun, postgres). Used by the UI to group config entries by integration. No FK. */ + provider?: string; + /** Optional discriminator scoping this value under its name. NULL = the default/unqualified value; getters fall back from an exact realm match to the NULL-realm row. */ + realm?: string; + updatedAt?: string; /** Plaintext config value */ value?: string; } // ============ Payload/Return Types (for custom operations) ============ +export interface _InternalSecretsDelPayload { + clientMutationId?: string | null; +} +export type _InternalSecretsDelPayloadSelect = { + clientMutationId?: boolean; +}; +export interface _InternalSecretsRemoveArrayPayload { + clientMutationId?: string | null; +} +export type _InternalSecretsRemoveArrayPayloadSelect = { + clientMutationId?: boolean; +}; +export interface _InternalSecretsRotatePayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type _InternalSecretsRotatePayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface _InternalSecretsSetPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type _InternalSecretsSetPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; export interface _SecretsDelPayload { clientMutationId?: string | null; } @@ -1078,6 +1712,34 @@ export type _SecretsSetPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface AppInternalSecretsDelPayload { + clientMutationId?: string | null; +} +export type AppInternalSecretsDelPayloadSelect = { + clientMutationId?: boolean; +}; +export interface AppInternalSecretsRemoveArrayPayload { + clientMutationId?: string | null; +} +export type AppInternalSecretsRemoveArrayPayloadSelect = { + clientMutationId?: boolean; +}; +export interface AppInternalSecretsRotatePayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type AppInternalSecretsRotatePayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface AppInternalSecretsSetPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type AppInternalSecretsSetPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; export interface PlatformInternalSecretsDelPayload { clientMutationId?: string | null; } @@ -1135,26 +1797,19 @@ export type PlatformSecretsSetPayloadSelect = { 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; + /** The logical bucket row that was queued for reconciliation. */ + bucketId: string; + bucketKey: string; + /** The reconciler job enqueued to provision this bucket. */ + jobId: string; + /** The physical bucket name already recorded, or null when reconciliation has not completed. */ + physicalName?: string | null; } export type ProvisionBucketPayloadSelect = { - accessType?: boolean; - bucketName?: boolean; - endpoint?: boolean; - error?: boolean; - provider?: boolean; - success?: boolean; + bucketId?: boolean; + bucketKey?: boolean; + jobId?: boolean; + physicalName?: boolean; }; export interface CreateConfigPayload { clientMutationId?: string | null; @@ -1201,6 +1856,51 @@ export type DeleteConfigPayloadSelect = { select: ConfigEdgeSelect; }; }; +export interface CreateInternalConfigPayload { + clientMutationId?: string | null; + /** The `InternalConfig` that was created by this mutation. */ + internalConfig?: InternalConfig | null; + internalConfigEdge?: InternalConfigEdge | null; +} +export type CreateInternalConfigPayloadSelect = { + clientMutationId?: boolean; + internalConfig?: { + select: InternalConfigSelect; + }; + internalConfigEdge?: { + select: InternalConfigEdgeSelect; + }; +}; +export interface UpdateInternalConfigPayload { + clientMutationId?: string | null; + /** The `InternalConfig` that was updated by this mutation. */ + internalConfig?: InternalConfig | null; + internalConfigEdge?: InternalConfigEdge | null; +} +export type UpdateInternalConfigPayloadSelect = { + clientMutationId?: boolean; + internalConfig?: { + select: InternalConfigSelect; + }; + internalConfigEdge?: { + select: InternalConfigEdgeSelect; + }; +}; +export interface DeleteInternalConfigPayload { + clientMutationId?: string | null; + /** The `InternalConfig` that was deleted by this mutation. */ + internalConfig?: InternalConfig | null; + internalConfigEdge?: InternalConfigEdge | null; +} +export type DeleteInternalConfigPayloadSelect = { + clientMutationId?: boolean; + internalConfig?: { + select: InternalConfigSelect; + }; + internalConfigEdge?: { + select: InternalConfigEdgeSelect; + }; +}; export interface CreatePlatformConfigPayload { clientMutationId?: string | null; /** The `PlatformConfig` that was created by this mutation. */ @@ -1246,6 +1946,51 @@ export type DeletePlatformConfigPayloadSelect = { select: PlatformConfigEdgeSelect; }; }; +export interface CreatePlatformInternalConfigPayload { + clientMutationId?: string | null; + /** The `PlatformInternalConfig` that was created by this mutation. */ + platformInternalConfig?: PlatformInternalConfig | null; + platformInternalConfigEdge?: PlatformInternalConfigEdge | null; +} +export type CreatePlatformInternalConfigPayloadSelect = { + clientMutationId?: boolean; + platformInternalConfig?: { + select: PlatformInternalConfigSelect; + }; + platformInternalConfigEdge?: { + select: PlatformInternalConfigEdgeSelect; + }; +}; +export interface UpdatePlatformInternalConfigPayload { + clientMutationId?: string | null; + /** The `PlatformInternalConfig` that was updated by this mutation. */ + platformInternalConfig?: PlatformInternalConfig | null; + platformInternalConfigEdge?: PlatformInternalConfigEdge | null; +} +export type UpdatePlatformInternalConfigPayloadSelect = { + clientMutationId?: boolean; + platformInternalConfig?: { + select: PlatformInternalConfigSelect; + }; + platformInternalConfigEdge?: { + select: PlatformInternalConfigEdgeSelect; + }; +}; +export interface DeletePlatformInternalConfigPayload { + clientMutationId?: string | null; + /** The `PlatformInternalConfig` that was deleted by this mutation. */ + platformInternalConfig?: PlatformInternalConfig | null; + platformInternalConfigEdge?: PlatformInternalConfigEdge | null; +} +export type DeletePlatformInternalConfigPayloadSelect = { + clientMutationId?: boolean; + platformInternalConfig?: { + select: PlatformInternalConfigSelect; + }; + platformInternalConfigEdge?: { + select: PlatformInternalConfigEdgeSelect; + }; +}; /** A `Config` edge in the connection. */ export interface ConfigEdge { cursor?: string | null; @@ -1258,6 +2003,18 @@ export type ConfigEdgeSelect = { select: ConfigSelect; }; }; +/** A `InternalConfig` edge in the connection. */ +export interface InternalConfigEdge { + cursor?: string | null; + /** The `InternalConfig` at the end of the edge. */ + node?: InternalConfig | null; +} +export type InternalConfigEdgeSelect = { + cursor?: boolean; + node?: { + select: InternalConfigSelect; + }; +}; /** A `PlatformConfig` edge in the connection. */ export interface PlatformConfigEdge { cursor?: string | null; @@ -1270,3 +2027,15 @@ export type PlatformConfigEdgeSelect = { select: PlatformConfigSelect; }; }; +/** A `PlatformInternalConfig` edge in the connection. */ +export interface PlatformInternalConfigEdge { + cursor?: string | null; + /** The `PlatformInternalConfig` at the end of the edge. */ + node?: PlatformInternalConfig | null; +} +export type PlatformInternalConfigEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformInternalConfigSelect; + }; +}; diff --git a/sdk/constructive-sdk/src/config/orm/models/appInternalSecret.ts b/sdk/constructive-sdk/src/config/orm/models/appInternalSecret.ts new file mode 100644 index 0000000000..6efc1ad009 --- /dev/null +++ b/sdk/constructive-sdk/src/config/orm/models/appInternalSecret.ts @@ -0,0 +1,174 @@ +/** + * AppInternalSecret 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 { + AppInternalSecret, + AppInternalSecretWithRelations, + AppInternalSecretSelect, + AppInternalSecretFilter, + AppInternalSecretOrderBy, + CreateAppInternalSecretInput, + UpdateAppInternalSecretInput, + AppInternalSecretPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class AppInternalSecretModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + appInternalSecrets: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'AppInternalSecret', + 'appInternalSecrets', + 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, + }, + 'AppInternalSecretFilter', + 'AppInternalSecretOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppInternalSecret', + fieldName: 'appInternalSecrets', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + appInternalSecret: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'AppInternalSecret', + 'appInternalSecrets', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'AppInternalSecretFilter', + 'AppInternalSecretOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppInternalSecret', + fieldName: 'appInternalSecret', + document, + variables, + transform: (data: { + appInternalSecrets?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + appInternalSecret: data.appInternalSecrets?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + appInternalSecret: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'AppInternalSecret', + 'appInternalSecrets', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'AppInternalSecretFilter', + 'AppInternalSecretOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppInternalSecret', + fieldName: 'appInternalSecret', + document, + variables, + transform: (data: { + appInternalSecrets?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + appInternalSecret: data.appInternalSecrets?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createAppInternalSecret: { + appInternalSecret: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'AppInternalSecret', + 'createAppInternalSecret', + 'appInternalSecret', + args.select, + args.data, + 'CreateAppInternalSecretInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppInternalSecret', + fieldName: 'createAppInternalSecret', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/config/orm/models/index.ts b/sdk/constructive-sdk/src/config/orm/models/index.ts index 0823cce0ad..7862d62ac4 100644 --- a/sdk/constructive-sdk/src/config/orm/models/index.ts +++ b/sdk/constructive-sdk/src/config/orm/models/index.ts @@ -3,8 +3,12 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ +export { AppInternalSecretModel } from './appInternalSecret'; export { ConfigModel } from './config'; +export { InternalConfigModel } from './internalConfig'; +export { InternalSecretModel } from './internalSecret'; export { PlatformConfigModel } from './platformConfig'; +export { PlatformInternalConfigModel } from './platformInternalConfig'; export { PlatformInternalSecretModel } from './platformInternalSecret'; export { PlatformSecretModel } from './platformSecret'; export { SecretModel } from './secret'; diff --git a/sdk/constructive-sdk/src/config/orm/models/internalConfig.ts b/sdk/constructive-sdk/src/config/orm/models/internalConfig.ts new file mode 100644 index 0000000000..9314de2fea --- /dev/null +++ b/sdk/constructive-sdk/src/config/orm/models/internalConfig.ts @@ -0,0 +1,245 @@ +/** + * InternalConfig 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 { + InternalConfig, + InternalConfigWithRelations, + InternalConfigSelect, + InternalConfigFilter, + InternalConfigOrderBy, + CreateInternalConfigInput, + UpdateInternalConfigInput, + InternalConfigPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class InternalConfigModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + internalConfigs: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'InternalConfig', + 'internalConfigs', + 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, + }, + 'InternalConfigFilter', + 'InternalConfigOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InternalConfig', + fieldName: 'internalConfigs', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + internalConfig: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'InternalConfig', + 'internalConfigs', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'InternalConfigFilter', + 'InternalConfigOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InternalConfig', + fieldName: 'internalConfig', + document, + variables, + transform: (data: { + internalConfigs?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + internalConfig: data.internalConfigs?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + internalConfig: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'InternalConfig', + 'internalConfigs', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'InternalConfigFilter', + 'InternalConfigOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InternalConfig', + fieldName: 'internalConfig', + document, + variables, + transform: (data: { + internalConfigs?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + internalConfig: data.internalConfigs?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createInternalConfig: { + internalConfig: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'InternalConfig', + 'createInternalConfig', + 'internalConfig', + args.select, + args.data, + 'CreateInternalConfigInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InternalConfig', + fieldName: 'createInternalConfig', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + InternalConfigPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateInternalConfig: { + internalConfig: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'InternalConfig', + 'updateInternalConfig', + 'internalConfig', + args.select, + args.where.id, + args.data, + 'UpdateInternalConfigInput', + 'id', + 'internalConfigPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InternalConfig', + fieldName: 'updateInternalConfig', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteInternalConfig: { + internalConfig: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'InternalConfig', + 'deleteInternalConfig', + 'internalConfig', + { + id: args.where.id, + }, + 'DeleteInternalConfigInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InternalConfig', + fieldName: 'deleteInternalConfig', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/config/orm/models/internalSecret.ts b/sdk/constructive-sdk/src/config/orm/models/internalSecret.ts new file mode 100644 index 0000000000..daeef23c68 --- /dev/null +++ b/sdk/constructive-sdk/src/config/orm/models/internalSecret.ts @@ -0,0 +1,174 @@ +/** + * InternalSecret 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 { + InternalSecret, + InternalSecretWithRelations, + InternalSecretSelect, + InternalSecretFilter, + InternalSecretOrderBy, + CreateInternalSecretInput, + UpdateInternalSecretInput, + InternalSecretPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class InternalSecretModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + internalSecrets: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'InternalSecret', + 'internalSecrets', + 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, + }, + 'InternalSecretFilter', + 'InternalSecretOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InternalSecret', + fieldName: 'internalSecrets', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + internalSecret: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'InternalSecret', + 'internalSecrets', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'InternalSecretFilter', + 'InternalSecretOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InternalSecret', + fieldName: 'internalSecret', + document, + variables, + transform: (data: { + internalSecrets?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + internalSecret: data.internalSecrets?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + internalSecret: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'InternalSecret', + 'internalSecrets', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'InternalSecretFilter', + 'InternalSecretOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InternalSecret', + fieldName: 'internalSecret', + document, + variables, + transform: (data: { + internalSecrets?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + internalSecret: data.internalSecrets?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createInternalSecret: { + internalSecret: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'InternalSecret', + 'createInternalSecret', + 'internalSecret', + args.select, + args.data, + 'CreateInternalSecretInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InternalSecret', + fieldName: 'createInternalSecret', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/config/orm/models/platformInternalConfig.ts b/sdk/constructive-sdk/src/config/orm/models/platformInternalConfig.ts new file mode 100644 index 0000000000..6cb941483f --- /dev/null +++ b/sdk/constructive-sdk/src/config/orm/models/platformInternalConfig.ts @@ -0,0 +1,247 @@ +/** + * PlatformInternalConfig 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 { + PlatformInternalConfig, + PlatformInternalConfigWithRelations, + PlatformInternalConfigSelect, + PlatformInternalConfigFilter, + PlatformInternalConfigOrderBy, + CreatePlatformInternalConfigInput, + UpdatePlatformInternalConfigInput, + PlatformInternalConfigPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformInternalConfigModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformInternalConfigs: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformInternalConfig', + 'platformInternalConfigs', + 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, + }, + 'PlatformInternalConfigFilter', + 'PlatformInternalConfigOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformInternalConfig', + fieldName: 'platformInternalConfigs', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformInternalConfig: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformInternalConfig', + 'platformInternalConfigs', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformInternalConfigFilter', + 'PlatformInternalConfigOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformInternalConfig', + fieldName: 'platformInternalConfig', + document, + variables, + transform: (data: { + platformInternalConfigs?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformInternalConfig: data.platformInternalConfigs?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformInternalConfig: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformInternalConfig', + 'platformInternalConfigs', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformInternalConfigFilter', + 'PlatformInternalConfigOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformInternalConfig', + fieldName: 'platformInternalConfig', + document, + variables, + transform: (data: { + platformInternalConfigs?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformInternalConfig: data.platformInternalConfigs?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformInternalConfig: { + platformInternalConfig: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformInternalConfig', + 'createPlatformInternalConfig', + 'platformInternalConfig', + args.select, + args.data, + 'CreatePlatformInternalConfigInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformInternalConfig', + fieldName: 'createPlatformInternalConfig', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformInternalConfigPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformInternalConfig: { + platformInternalConfig: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformInternalConfig', + 'updatePlatformInternalConfig', + 'platformInternalConfig', + args.select, + args.where.id, + args.data, + 'UpdatePlatformInternalConfigInput', + 'id', + 'platformInternalConfigPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformInternalConfig', + fieldName: 'updatePlatformInternalConfig', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformInternalConfig: { + platformInternalConfig: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformInternalConfig', + 'deletePlatformInternalConfig', + 'platformInternalConfig', + { + id: args.where.id, + }, + 'DeletePlatformInternalConfigInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformInternalConfig', + fieldName: 'deletePlatformInternalConfig', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/config/orm/mutation/index.ts b/sdk/constructive-sdk/src/config/orm/mutation/index.ts index 13353608c7..d91b8c1e29 100644 --- a/sdk/constructive-sdk/src/config/orm/mutation/index.ts +++ b/sdk/constructive-sdk/src/config/orm/mutation/index.ts @@ -7,10 +7,18 @@ import { OrmClient } from '../client'; import { QueryBuilder, buildCustomDocument } from '../query-builder'; import type { InferSelectResult, StrictSelect } from '../select-types'; import type { + _InternalSecretsDelInput, + _InternalSecretsRemoveArrayInput, + _InternalSecretsRotateInput, + _InternalSecretsSetInput, _SecretsDelInput, _SecretsRemoveArrayInput, _SecretsRotateInput, _SecretsSetInput, + AppInternalSecretsDelInput, + AppInternalSecretsRemoveArrayInput, + AppInternalSecretsRotateInput, + AppInternalSecretsSetInput, PlatformInternalSecretsDelInput, PlatformInternalSecretsRemoveArrayInput, PlatformInternalSecretsRotateInput, @@ -20,10 +28,18 @@ import type { PlatformSecretsRotateInput, PlatformSecretsSetInput, ProvisionBucketInput, + _InternalSecretsDelPayload, + _InternalSecretsRemoveArrayPayload, + _InternalSecretsRotatePayload, + _InternalSecretsSetPayload, _SecretsDelPayload, _SecretsRemoveArrayPayload, _SecretsRotatePayload, _SecretsSetPayload, + AppInternalSecretsDelPayload, + AppInternalSecretsRemoveArrayPayload, + AppInternalSecretsRotatePayload, + AppInternalSecretsSetPayload, PlatformInternalSecretsDelPayload, PlatformInternalSecretsRemoveArrayPayload, PlatformInternalSecretsRotatePayload, @@ -33,10 +49,18 @@ import type { PlatformSecretsRotatePayload, PlatformSecretsSetPayload, ProvisionBucketPayload, + _InternalSecretsDelPayloadSelect, + _InternalSecretsRemoveArrayPayloadSelect, + _InternalSecretsRotatePayloadSelect, + _InternalSecretsSetPayloadSelect, _SecretsDelPayloadSelect, _SecretsRemoveArrayPayloadSelect, _SecretsRotatePayloadSelect, _SecretsSetPayloadSelect, + AppInternalSecretsDelPayloadSelect, + AppInternalSecretsRemoveArrayPayloadSelect, + AppInternalSecretsRotatePayloadSelect, + AppInternalSecretsSetPayloadSelect, PlatformInternalSecretsDelPayloadSelect, PlatformInternalSecretsRemoveArrayPayloadSelect, PlatformInternalSecretsRotatePayloadSelect, @@ -48,6 +72,18 @@ import type { ProvisionBucketPayloadSelect, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; +export interface _internalSecretsDelVariables { + input: _InternalSecretsDelInput; +} +export interface _internalSecretsRemoveArrayVariables { + input: _InternalSecretsRemoveArrayInput; +} +export interface _internalSecretsRotateVariables { + input: _InternalSecretsRotateInput; +} +export interface _internalSecretsSetVariables { + input: _InternalSecretsSetInput; +} export interface _secretsDelVariables { input: _SecretsDelInput; } @@ -60,6 +96,18 @@ export interface _secretsRotateVariables { export interface _secretsSetVariables { input: _SecretsSetInput; } +export interface AppInternalSecretsDelVariables { + input: AppInternalSecretsDelInput; +} +export interface AppInternalSecretsRemoveArrayVariables { + input: AppInternalSecretsRemoveArrayInput; +} +export interface AppInternalSecretsRotateVariables { + input: AppInternalSecretsRotateInput; +} +export interface AppInternalSecretsSetVariables { + input: AppInternalSecretsSetInput; +} export interface PlatformInternalSecretsDelVariables { input: PlatformInternalSecretsDelInput; } @@ -86,16 +134,136 @@ export interface PlatformSecretsSetVariables { } /** * Variables for provisionBucket - * 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. + * Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. */ export interface ProvisionBucketVariables { input: ProvisionBucketInput; } export function createMutationOperations(client: OrmClient) { return { + _internalSecretsDel: ( + args: _internalSecretsDelVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + _internalSecretsDel: InferSelectResult<_InternalSecretsDelPayload, S> | null; + }>({ + client, + operation: 'mutation', + operationName: '_internalSecretsDel', + fieldName: '_internalSecretsDel', + ...buildCustomDocument( + 'mutation', + '_internalSecretsDel', + '_internalSecretsDel', + options.select, + args, + [ + { + name: 'input', + type: '_InternalSecretsDelInput!', + }, + ], + connectionFieldsMap, + '_InternalSecretsDelPayload' + ), + }), + _internalSecretsRemoveArray: ( + args: _internalSecretsRemoveArrayVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + _internalSecretsRemoveArray: InferSelectResult< + _InternalSecretsRemoveArrayPayload, + S + > | null; + }>({ + client, + operation: 'mutation', + operationName: '_internalSecretsRemoveArray', + fieldName: '_internalSecretsRemoveArray', + ...buildCustomDocument( + 'mutation', + '_internalSecretsRemoveArray', + '_internalSecretsRemoveArray', + options.select, + args, + [ + { + name: 'input', + type: '_InternalSecretsRemoveArrayInput!', + }, + ], + connectionFieldsMap, + '_InternalSecretsRemoveArrayPayload' + ), + }), + _internalSecretsRotate: ( + args: _internalSecretsRotateVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + _internalSecretsRotate: InferSelectResult<_InternalSecretsRotatePayload, S> | null; + }>({ + client, + operation: 'mutation', + operationName: '_internalSecretsRotate', + fieldName: '_internalSecretsRotate', + ...buildCustomDocument( + 'mutation', + '_internalSecretsRotate', + '_internalSecretsRotate', + options.select, + args, + [ + { + name: 'input', + type: '_InternalSecretsRotateInput!', + }, + ], + connectionFieldsMap, + '_InternalSecretsRotatePayload' + ), + }), + _internalSecretsSet: ( + args: _internalSecretsSetVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + _internalSecretsSet: InferSelectResult<_InternalSecretsSetPayload, S> | null; + }>({ + client, + operation: 'mutation', + operationName: '_internalSecretsSet', + fieldName: '_internalSecretsSet', + ...buildCustomDocument( + 'mutation', + '_internalSecretsSet', + '_internalSecretsSet', + options.select, + args, + [ + { + name: 'input', + type: '_InternalSecretsSetInput!', + }, + ], + connectionFieldsMap, + '_InternalSecretsSetPayload' + ), + }), _secretsDel: ( args: _secretsDelVariables, options: { @@ -212,6 +380,125 @@ export function createMutationOperations(client: OrmClient) { '_SecretsSetPayload' ), }), + appInternalSecretsDel: ( + args: AppInternalSecretsDelVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + appInternalSecretsDel: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'AppInternalSecretsDel', + fieldName: 'appInternalSecretsDel', + ...buildCustomDocument( + 'mutation', + 'AppInternalSecretsDel', + 'appInternalSecretsDel', + options.select, + args, + [ + { + name: 'input', + type: 'AppInternalSecretsDelInput!', + }, + ], + connectionFieldsMap, + 'AppInternalSecretsDelPayload' + ), + }), + appInternalSecretsRemoveArray: ( + args: AppInternalSecretsRemoveArrayVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + appInternalSecretsRemoveArray: InferSelectResult< + AppInternalSecretsRemoveArrayPayload, + S + > | null; + }>({ + client, + operation: 'mutation', + operationName: 'AppInternalSecretsRemoveArray', + fieldName: 'appInternalSecretsRemoveArray', + ...buildCustomDocument( + 'mutation', + 'AppInternalSecretsRemoveArray', + 'appInternalSecretsRemoveArray', + options.select, + args, + [ + { + name: 'input', + type: 'AppInternalSecretsRemoveArrayInput!', + }, + ], + connectionFieldsMap, + 'AppInternalSecretsRemoveArrayPayload' + ), + }), + appInternalSecretsRotate: ( + args: AppInternalSecretsRotateVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + appInternalSecretsRotate: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'AppInternalSecretsRotate', + fieldName: 'appInternalSecretsRotate', + ...buildCustomDocument( + 'mutation', + 'AppInternalSecretsRotate', + 'appInternalSecretsRotate', + options.select, + args, + [ + { + name: 'input', + type: 'AppInternalSecretsRotateInput!', + }, + ], + connectionFieldsMap, + 'AppInternalSecretsRotatePayload' + ), + }), + appInternalSecretsSet: ( + args: AppInternalSecretsSetVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + appInternalSecretsSet: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'AppInternalSecretsSet', + fieldName: 'appInternalSecretsSet', + ...buildCustomDocument( + 'mutation', + 'AppInternalSecretsSet', + 'appInternalSecretsSet', + options.select, + args, + [ + { + name: 'input', + type: 'AppInternalSecretsSetInput!', + }, + ], + connectionFieldsMap, + 'AppInternalSecretsSetPayload' + ), + }), platformInternalSecretsDel: ( args: PlatformInternalSecretsDelVariables, options: { diff --git a/sdk/constructive-sdk/src/index.ts b/sdk/constructive-sdk/src/index.ts index f64a72cd39..791f57df63 100644 --- a/sdk/constructive-sdk/src/index.ts +++ b/sdk/constructive-sdk/src/index.ts @@ -15,4 +15,6 @@ export * as config from './config'; export * as infra from './infra'; export * as modules from './modules'; export * as objects from './objects'; +export * as remote from './remote'; +export * as storage from './storage'; export * as usage from './usage'; diff --git a/sdk/constructive-sdk/src/infra/README.md b/sdk/constructive-sdk/src/infra/README.md index b7ba1f2bf5..fe2b94a64e 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 34848edfdb..322c4f138f 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. @@ -82,6 +122,7 @@ CRUD operations for Namespace records. | Field | Type | Editable | |-------|------|----------| | `annotations` | JSON | Yes | +| `clusterId` | UUID | Yes | | `createdAt` | Datetime | No | | `databaseId` | UUID | Yes | | `description` | String | Yes | @@ -99,13 +140,13 @@ CRUD operations for Namespace records. ```typescript // List all namespace records -const items = await db.namespace.findMany({ select: { annotations: true, createdAt: true, databaseId: true, description: true, id: true, isActive: true, isManaged: true, labels: true, lastError: true, name: true, namespaceName: true, status: true, updatedAt: true } }).execute(); +const items = await db.namespace.findMany({ select: { annotations: true, clusterId: true, createdAt: true, databaseId: true, description: true, id: true, isActive: true, isManaged: true, labels: true, lastError: true, name: true, namespaceName: true, status: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.namespace.findOne({ id: '', select: { annotations: true, createdAt: true, databaseId: true, description: true, id: true, isActive: true, isManaged: true, labels: true, lastError: true, name: true, namespaceName: true, status: true, updatedAt: true } }).execute(); +const item = await db.namespace.findOne({ id: '', select: { annotations: true, clusterId: true, createdAt: true, databaseId: true, description: true, id: true, isActive: true, isManaged: true, labels: true, lastError: true, name: true, namespaceName: true, status: true, updatedAt: true } }).execute(); // Create -const created = await db.namespace.create({ data: { annotations: '', databaseId: '', description: '', isActive: '', isManaged: '', labels: '', lastError: '', name: '', namespaceName: '', status: '' }, select: { id: true } }).execute(); +const created = await db.namespace.create({ data: { annotations: '', clusterId: '', databaseId: '', description: '', isActive: '', isManaged: '', labels: '', lastError: '', name: '', namespaceName: '', status: '' }, select: { id: true } }).execute(); // Update const updated = await db.namespace.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); @@ -326,6 +367,7 @@ CRUD operations for PlatformNamespace records. | Field | Type | Editable | |-------|------|----------| | `annotations` | JSON | Yes | +| `clusterId` | UUID | Yes | | `createdAt` | Datetime | No | | `description` | String | Yes | | `id` | UUID | No | @@ -342,13 +384,13 @@ CRUD operations for PlatformNamespace records. ```typescript // List all platformNamespace records -const items = await db.platformNamespace.findMany({ select: { annotations: true, createdAt: true, description: true, id: true, isActive: true, isManaged: true, labels: true, lastError: true, name: true, namespaceName: true, status: true, updatedAt: true } }).execute(); +const items = await db.platformNamespace.findMany({ select: { annotations: true, clusterId: true, createdAt: true, description: true, id: true, isActive: true, isManaged: true, labels: true, lastError: true, name: true, namespaceName: true, status: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.platformNamespace.findOne({ id: '', select: { annotations: true, createdAt: true, description: true, id: true, isActive: true, isManaged: true, labels: true, lastError: true, name: true, namespaceName: true, status: true, updatedAt: true } }).execute(); +const item = await db.platformNamespace.findOne({ id: '', select: { annotations: true, clusterId: true, createdAt: true, description: true, id: true, isActive: true, isManaged: true, labels: true, lastError: true, name: true, namespaceName: true, status: true, updatedAt: true } }).execute(); // Create -const created = await db.platformNamespace.create({ data: { annotations: '', description: '', isActive: '', isManaged: '', labels: '', lastError: '', name: '', namespaceName: '', status: '' }, select: { id: true } }).execute(); +const created = await db.platformNamespace.create({ data: { annotations: '', clusterId: '', description: '', isActive: '', isManaged: '', labels: '', lastError: '', name: '', namespaceName: '', status: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformNamespace.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); @@ -424,6 +466,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,12 +511,28 @@ 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. -Reads the bucket config via RLS, then creates and configures -the S3 bucket with the appropriate privacy policies, CORS rules, -and lifecycle settings. +Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. - **Type:** mutation - **Arguments:** 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..d3a13bcb63 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; @@ -260,6 +285,8 @@ export interface DbPreset { export interface Namespace { /** Freeform metadata for tooling and operational notes */ annotations?: Record | null; + /** Cluster this namespace is projected onto; NULL = the cluster the reconciler runs in */ + clusterId?: string | null; createdAt?: string | null; /** Database that owns this resource (database-scoped isolation) */ databaseId?: string | null; @@ -284,7 +311,7 @@ export interface Namespace { } /** Namespace lifecycle events — audit log of creation, activation, deactivation, label changes */ export interface NamespaceEvent { - /** User who triggered this event (NULL for system/automated) */ + /** User who triggered this event; NULL only when no human actor was proven */ actorId?: string | null; /** Event timestamp (partition key) */ createdAt?: string | null; @@ -371,6 +398,8 @@ export interface PlatformInfraStore { export interface PlatformNamespace { /** Freeform metadata for tooling and operational notes */ annotations?: Record | null; + /** Cluster this namespace is projected onto; NULL = the cluster the reconciler runs in */ + clusterId?: string | null; createdAt?: string | null; /** Optional human-readable description of this namespace */ description?: string | null; @@ -393,7 +422,7 @@ export interface PlatformNamespace { } /** Namespace lifecycle events — audit log of creation, activation, deactivation, label changes */ export interface PlatformNamespaceEvent { - /** User who triggered this event (NULL for system/automated) */ + /** User who triggered this event; NULL only when no human actor was proven */ actorId?: string | null; /** Event timestamp (partition key) */ createdAt?: string | null; @@ -421,6 +450,7 @@ export interface PageInfo { endCursor?: string | null; } // ============ Entity Relation Types ============ +export interface ContentPresetRelations {} export interface DbPresetRelations {} export interface NamespaceRelations {} export interface NamespaceEventRelations {} @@ -432,6 +462,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 +476,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; @@ -460,6 +504,7 @@ export type DbPresetSelect = { }; export type NamespaceSelect = { annotations?: boolean; + clusterId?: boolean; createdAt?: boolean; databaseId?: boolean; description?: boolean; @@ -522,6 +567,7 @@ export type PlatformInfraStoreSelect = { }; export type PlatformNamespaceSelect = { annotations?: boolean; + clusterId?: boolean; createdAt?: boolean; description?: boolean; id?: boolean; @@ -544,6 +590,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; @@ -579,6 +655,8 @@ export interface NamespaceFilter { and?: NamespaceFilter[]; /** Filter by the object’s `annotations` field. */ annotations?: JSONFilter; + /** Filter by the object’s `clusterId` field. */ + clusterId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `databaseId` field. */ @@ -726,6 +804,8 @@ export interface PlatformNamespaceFilter { and?: PlatformNamespaceFilter[]; /** Filter by the object’s `annotations` field. */ annotations?: JSONFilter; + /** Filter by the object’s `clusterId` field. */ + clusterId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `description` field. */ @@ -776,6 +856,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' @@ -805,6 +911,8 @@ export type DbPresetOrderBy = export type NamespaceOrderBy = | 'ANNOTATIONS_ASC' | 'ANNOTATIONS_DESC' + | 'CLUSTER_ID_ASC' + | 'CLUSTER_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'DATABASE_ID_ASC' @@ -929,6 +1037,8 @@ export type PlatformInfraStoreOrderBy = export type PlatformNamespaceOrderBy = | 'ANNOTATIONS_ASC' | 'ANNOTATIONS_DESC' + | 'CLUSTER_ID_ASC' + | 'CLUSTER_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'DESCRIPTION_ASC' @@ -973,6 +1083,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: { @@ -1009,6 +1151,7 @@ export interface CreateNamespaceInput { clientMutationId?: string; namespace: { annotations?: Record; + clusterId?: string; databaseId: string; description?: string; isActive?: boolean; @@ -1022,6 +1165,7 @@ export interface CreateNamespaceInput { } export interface NamespacePatch { annotations?: Record | null; + clusterId?: string | null; databaseId?: string | null; description?: string | null; isActive?: boolean | null; @@ -1195,6 +1339,7 @@ export interface CreatePlatformNamespaceInput { clientMutationId?: string; platformNamespace: { annotations?: Record; + clusterId?: string; description?: string; isActive?: boolean; isManaged?: boolean; @@ -1207,6 +1352,7 @@ export interface CreatePlatformNamespaceInput { } export interface PlatformNamespacePatch { annotations?: Record | null; + clusterId?: string | null; description?: string | null; isActive?: boolean | null; isManaged?: boolean | null; @@ -1268,6 +1414,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 +1441,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 +1458,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 */ @@ -1313,6 +1512,8 @@ export interface DbPresetInput { export interface NamespaceInput { /** Freeform metadata for tooling and operational notes */ annotations?: Record; + /** Cluster this namespace is projected onto; NULL = the cluster the reconciler runs in */ + clusterId?: string; createdAt?: string; /** Database that owns this resource (database-scoped isolation) */ databaseId: string; @@ -1337,7 +1538,7 @@ export interface NamespaceInput { } /** An input for mutations affecting `NamespaceEvent` */ export interface NamespaceEventInput { - /** User who triggered this event (NULL for system/automated) */ + /** User who triggered this event; NULL only when no human actor was proven */ actorId?: string; /** Event timestamp (partition key) */ createdAt?: string; @@ -1420,6 +1621,8 @@ export interface PlatformInfraStoreInput { export interface PlatformNamespaceInput { /** Freeform metadata for tooling and operational notes */ annotations?: Record; + /** Cluster this namespace is projected onto; NULL = the cluster the reconciler runs in */ + clusterId?: string; createdAt?: string; /** Optional human-readable description of this namespace */ description?: string; @@ -1442,7 +1645,7 @@ export interface PlatformNamespaceInput { } /** An input for mutations affecting `PlatformNamespaceEvent` */ export interface PlatformNamespaceEventInput { - /** User who triggered this event (NULL for system/automated) */ + /** User who triggered this event; NULL only when no human actor was proven */ actorId?: string; /** Event timestamp (partition key) */ createdAt?: string; @@ -1472,6 +1675,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,27 +1705,79 @@ 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; - /** 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; + /** The logical bucket row that was queued for reconciliation. */ + bucketId: string; + bucketKey: string; + /** The reconciler job enqueued to provision this bucket. */ + jobId: string; + /** The physical bucket name already recorded, or null when reconciliation has not completed. */ + physicalName?: string | null; } export type ProvisionBucketPayloadSelect = { - accessType?: boolean; - bucketName?: boolean; - endpoint?: boolean; - error?: boolean; - provider?: boolean; - success?: boolean; + bucketId?: boolean; + bucketKey?: boolean; + jobId?: boolean; + physicalName?: 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; @@ -1907,6 +2184,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 +2244,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..96dd8ca742 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,15 +36,25 @@ 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. -Reads the bucket config via RLS, then creates and configures -the S3 bucket with the appropriate privacy policies, CORS rules, -and lifecycle settings. + * Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. */ export interface ProvisionBucketVariables { input: ProvisionBucketInput; @@ -103,6 +122,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 +212,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 6acdfe7208..6f7681ed3e 100644 --- a/sdk/constructive-sdk/src/modules/README.md +++ b/sdk/constructive-sdk/src/modules/README.md @@ -8,7 +8,7 @@ ## Overview -- **Tables:** 83 +- **Tables:** 88 - **Custom queries:** 0 - **Custom mutations:** 3 diff --git a/sdk/constructive-sdk/src/modules/orm/README.md b/sdk/constructive-sdk/src/modules/orm/README.md index c63c9c0488..dae8c55bb3 100644 --- a/sdk/constructive-sdk/src/modules/orm/README.md +++ b/sdk/constructive-sdk/src/modules/orm/README.md @@ -31,8 +31,8 @@ const db = createClient({ | `blueprintTemplate` | findMany, findOne, create, update, delete | | `capabilitiesModule` | findMany, findOne, create, update, delete | | `catalogModule` | findMany, findOne, create, update, delete | +| `clusterModule` | 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 | @@ -59,16 +59,19 @@ const db = createClient({ | `graphExecutionModule` | findMany, findOne, create, update, delete | | `graphModule` | findMany, findOne, create, update, delete | | `hierarchyModule` | findMany, findOne, create, update, delete | -| `httpRouteModule` | findMany, findOne, create, update, delete | | `i18NModule` | findMany, findOne, create, update, delete | | `identityProvidersModule` | findMany, findOne, create, update, delete | +| `imageModule` | findMany, findOne, create, update, delete | | `inferenceLogModule` | findMany, findOne, create, update, delete | | `infraConfigModule` | findMany, findOne, create, update, delete | | `infraSecretsModule` | findMany, findOne, create, update, delete | | `integrationProvidersModule` | findMany, findOne, create, update, delete | +| `internalConfigModule` | findMany, findOne, create, update, delete | | `internalSecretsModule` | findMany, findOne, create, update, delete | | `invitesModule` | findMany, findOne, create, update, delete | +| `k8sAdmissionModule` | findMany, findOne, create, update, delete | | `limitsModule` | findMany, findOne, create, update, delete | +| `machineModule` | findMany, findOne, create, update, delete | | `membershipTypesModule` | findMany, findOne, create, update, delete | | `membershipsModule` | findMany, findOne, create, update, delete | | `merkleStoreModule` | findMany, findOne, create, update, delete | @@ -83,7 +86,9 @@ const db = createClient({ | `rateLimitMetersModule` | findMany, findOne, create, update, delete | | `rateLimitsModule` | findMany, findOne, create, update, delete | | `realtimeModule` | findMany, findOne, create, update, delete | +| `refusalLogModule` | findMany, findOne, create, update, delete | | `relationProvision` | findMany, findOne, create, update, delete | +| `repositoryModule` | findMany, findOne, create, update, delete | | `resourceModule` | findMany, findOne, create, update, delete | | `rlsModule` | findMany, findOne, create, update, delete | | `routeModule` | findMany, findOne, create, update, delete | @@ -120,11 +125,17 @@ CRUD operations for AgentModule records. | `apiName` | String | Yes | | `databaseId` | UUID | Yes | | `defaultCapabilities` | String | Yes | +| `defaultVisibility` | String | Yes | | `entityField` | String | Yes | | `entityTableId` | UUID | Yes | +| `eventTableId` | UUID | Yes | +| `eventTableName` | String | Yes | | `hasAgents` | Boolean | Yes | +| `hasAttachments` | Boolean | Yes | | `hasPlans` | Boolean | Yes | +| `hasRepositoryResources` | Boolean | Yes | | `hasResources` | Boolean | Yes | +| `hasRuns` | Boolean | Yes | | `id` | UUID | No | | `messageTableId` | UUID | Yes | | `messageTableName` | String | Yes | @@ -141,28 +152,33 @@ CRUD operations for AgentModule records. | `promptsTableName` | String | Yes | | `provisions` | JSON | Yes | | `publicSchemaName` | String | Yes | +| `resourceRepositoryTableId` | UUID | Yes | +| `resourceRepositoryTableName` | String | Yes | | `resourceTableId` | UUID | Yes | | `resourceTableName` | String | Yes | | `resources` | JSON | Yes | +| `runTableId` | UUID | Yes | +| `runTableName` | String | Yes | | `schemaId` | UUID | Yes | | `scope` | String | Yes | -| `shared` | Boolean | Yes | | `taskTableId` | UUID | Yes | | `taskTableName` | String | Yes | | `threadTableId` | UUID | Yes | | `threadTableName` | String | Yes | +| `workspaceTableId` | UUID | Yes | +| `workspaceTableName` | String | Yes | **Operations:** ```typescript // List all agentModule records -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(); +const items = await db.agentModule.findMany({ select: { agentTableId: true, agentTableName: true, apiName: true, databaseId: true, defaultCapabilities: true, defaultVisibility: true, entityField: true, entityTableId: true, eventTableId: true, eventTableName: true, hasAgents: true, hasAttachments: true, hasPlans: true, hasRepositoryResources: true, hasResources: true, hasRuns: 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, resourceRepositoryTableId: true, resourceRepositoryTableName: true, resourceTableId: true, resourceTableName: true, resources: true, runTableId: true, runTableName: true, schemaId: true, scope: true, taskTableId: true, taskTableName: true, threadTableId: true, threadTableName: true, workspaceTableId: true, workspaceTableName: true } }).execute(); // Get one by id -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(); +const item = await db.agentModule.findOne({ id: '', select: { agentTableId: true, agentTableName: true, apiName: true, databaseId: true, defaultCapabilities: true, defaultVisibility: true, entityField: true, entityTableId: true, eventTableId: true, eventTableName: true, hasAgents: true, hasAttachments: true, hasPlans: true, hasRepositoryResources: true, hasResources: true, hasRuns: 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, resourceRepositoryTableId: true, resourceRepositoryTableName: true, resourceTableId: true, resourceTableName: true, resources: true, runTableId: true, runTableName: true, schemaId: true, scope: true, taskTableId: true, taskTableName: true, threadTableId: true, threadTableName: true, workspaceTableId: true, workspaceTableName: true } }).execute(); // Create -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(); +const created = await db.agentModule.create({ data: { agentTableId: '', agentTableName: '', apiName: '', databaseId: '', defaultCapabilities: '', defaultVisibility: '', entityField: '', entityTableId: '', eventTableId: '', eventTableName: '', hasAgents: '', hasAttachments: '', hasPlans: '', hasRepositoryResources: '', hasResources: '', hasRuns: '', messageTableId: '', messageTableName: '', personaTableId: '', personaTableName: '', planTableId: '', planTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', promptsTableId: '', promptsTableName: '', provisions: '', publicSchemaName: '', resourceRepositoryTableId: '', resourceRepositoryTableName: '', resourceTableId: '', resourceTableName: '', resources: '', runTableId: '', runTableName: '', schemaId: '', scope: '', taskTableId: '', taskTableName: '', threadTableId: '', threadTableName: '', workspaceTableId: '', workspaceTableName: '' }, select: { id: true } }).execute(); // Update const updated = await db.agentModule.update({ where: { id: '' }, data: { agentTableId: '' }, select: { id: true } }).execute(); @@ -232,6 +248,7 @@ CRUD operations for AppModule records. | `apiName` | String | Yes | | `appComponentsTableId` | UUID | Yes | | `appComponentsTableName` | String | Yes | +| `appStoreIdentitiesTableName` | String | Yes | | `appsTableId` | UUID | Yes | | `appsTableName` | String | Yes | | `catalogModuleId` | UUID | Yes | @@ -254,13 +271,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, 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(); +const items = await db.appModule.findMany({ select: { apiName: true, appComponentsTableId: true, appComponentsTableName: true, appStoreIdentitiesTableName: 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, 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(); +const item = await db.appModule.findOne({ id: '', select: { apiName: true, appComponentsTableId: true, appComponentsTableName: true, appStoreIdentitiesTableName: 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: '', defaultCapabilities: '', 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: '', appStoreIdentitiesTableName: '', 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(); @@ -333,9 +350,12 @@ CRUD operations for BillingProviderModule records. | Field | Type | Editable | |-------|------|----------| +| `activatePlanSubscriptionFunction` | String | Yes | | `apiName` | String | Yes | | `billingCustomersTableId` | UUID | Yes | | `billingCustomersTableName` | String | Yes | +| `billingDisputesTableId` | UUID | Yes | +| `billingDisputesTableName` | String | Yes | | `billingInvoicesTableId` | UUID | Yes | | `billingInvoicesTableName` | String | Yes | | `billingPricesTableId` | UUID | Yes | @@ -349,6 +369,12 @@ CRUD operations for BillingProviderModule records. | `billingWebhookEventsTableId` | UUID | Yes | | `billingWebhookEventsTableName` | String | Yes | | `databaseId` | UUID | Yes | +| `getActivePlanPricingFunction` | String | Yes | +| `getBillingCustomerFunction` | String | Yes | +| `getBillingPriceFunction` | String | Yes | +| `getBillingProductFunction` | String | Yes | +| `getBillingSubscriptionFunction` | String | Yes | +| `getFallbackFreePlanFunction` | String | Yes | | `id` | UUID | No | | `listPendingUsageSyncFunction` | String | Yes | | `markUsageSyncedFunction` | String | Yes | @@ -359,25 +385,31 @@ CRUD operations for BillingProviderModule records. | `processBillingEventFunction` | String | Yes | | `productsTableId` | UUID | Yes | | `provider` | String | Yes | +| `recordDisputeFunction` | String | Yes | | `recordRefundFunction` | String | Yes | | `schemaId` | UUID | Yes | | `subscriptionsTableId` | UUID | Yes | +| `sweepOverdueSubscriptionsFunction` | String | Yes | +| `upsertBillingCustomerFunction` | String | Yes | +| `upsertBillingPriceFunction` | String | Yes | +| `upsertBillingProductFunction` | String | Yes | +| `upsertBillingSubscriptionFunction` | String | Yes | | `upsertInvoiceFunction` | String | Yes | **Operations:** ```typescript // List all billingProviderModule records -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(); +const items = await db.billingProviderModule.findMany({ select: { activatePlanSubscriptionFunction: true, apiName: true, billingCustomersTableId: true, billingCustomersTableName: true, billingDisputesTableId: true, billingDisputesTableName: 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, getActivePlanPricingFunction: true, getBillingCustomerFunction: true, getBillingPriceFunction: true, getBillingProductFunction: true, getBillingSubscriptionFunction: true, getFallbackFreePlanFunction: true, id: true, listPendingUsageSyncFunction: true, markUsageSyncedFunction: true, prefix: true, pricesTableId: true, privateApiName: true, privateSchemaId: true, processBillingEventFunction: true, productsTableId: true, provider: true, recordDisputeFunction: true, recordRefundFunction: true, schemaId: true, subscriptionsTableId: true, sweepOverdueSubscriptionsFunction: true, upsertBillingCustomerFunction: true, upsertBillingPriceFunction: true, upsertBillingProductFunction: true, upsertBillingSubscriptionFunction: true, upsertInvoiceFunction: true } }).execute(); // Get one by id -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(); +const item = await db.billingProviderModule.findOne({ id: '', select: { activatePlanSubscriptionFunction: true, apiName: true, billingCustomersTableId: true, billingCustomersTableName: true, billingDisputesTableId: true, billingDisputesTableName: 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, getActivePlanPricingFunction: true, getBillingCustomerFunction: true, getBillingPriceFunction: true, getBillingProductFunction: true, getBillingSubscriptionFunction: true, getFallbackFreePlanFunction: true, id: true, listPendingUsageSyncFunction: true, markUsageSyncedFunction: true, prefix: true, pricesTableId: true, privateApiName: true, privateSchemaId: true, processBillingEventFunction: true, productsTableId: true, provider: true, recordDisputeFunction: true, recordRefundFunction: true, schemaId: true, subscriptionsTableId: true, sweepOverdueSubscriptionsFunction: true, upsertBillingCustomerFunction: true, upsertBillingPriceFunction: true, upsertBillingProductFunction: true, upsertBillingSubscriptionFunction: true, upsertInvoiceFunction: true } }).execute(); // Create -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(); +const created = await db.billingProviderModule.create({ data: { activatePlanSubscriptionFunction: '', apiName: '', billingCustomersTableId: '', billingCustomersTableName: '', billingDisputesTableId: '', billingDisputesTableName: '', billingInvoicesTableId: '', billingInvoicesTableName: '', billingPricesTableId: '', billingPricesTableName: '', billingProductsTableId: '', billingProductsTableName: '', billingRefundsTableId: '', billingRefundsTableName: '', billingSubscriptionsTableId: '', billingSubscriptionsTableName: '', billingWebhookEventsTableId: '', billingWebhookEventsTableName: '', databaseId: '', getActivePlanPricingFunction: '', getBillingCustomerFunction: '', getBillingPriceFunction: '', getBillingProductFunction: '', getBillingSubscriptionFunction: '', getFallbackFreePlanFunction: '', listPendingUsageSyncFunction: '', markUsageSyncedFunction: '', prefix: '', pricesTableId: '', privateApiName: '', privateSchemaId: '', processBillingEventFunction: '', productsTableId: '', provider: '', recordDisputeFunction: '', recordRefundFunction: '', schemaId: '', subscriptionsTableId: '', sweepOverdueSubscriptionsFunction: '', upsertBillingCustomerFunction: '', upsertBillingPriceFunction: '', upsertBillingProductFunction: '', upsertBillingSubscriptionFunction: '', upsertInvoiceFunction: '' }, select: { id: true } }).execute(); // Update -const updated = await db.billingProviderModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); +const updated = await db.billingProviderModule.update({ where: { id: '' }, data: { activatePlanSubscriptionFunction: '' }, select: { id: true } }).execute(); // Delete const deleted = await db.billingProviderModule.delete({ where: { id: '' } }).execute(); @@ -571,6 +603,8 @@ CRUD operations for CatalogModule records. | `apiName` | String | Yes | | `apisTableId` | UUID | Yes | | `apisTableName` | String | Yes | +| `appStoreIdentitiesTableId` | UUID | Yes | +| `appStoreIdentitiesTableName` | String | Yes | | `appsTableId` | UUID | Yes | | `appsTableName` | String | Yes | | `bindingsTableId` | UUID | Yes | @@ -585,12 +619,18 @@ CRUD operations for CatalogModule records. | `functionsTableId` | UUID | Yes | | `functionsTableName` | String | Yes | | `id` | UUID | No | +| `imagesTableId` | UUID | Yes | +| `imagesTableName` | String | Yes | +| `managedDomainsTableId` | UUID | Yes | +| `managedDomainsTableName` | String | Yes | | `namespacesTableId` | UUID | Yes | | `namespacesTableName` | String | Yes | | `policies` | JSON | Yes | | `privateApiName` | String | Yes | | `provisions` | JSON | Yes | | `publicSchemaName` | String | Yes | +| `redirectsTableId` | UUID | Yes | +| `redirectsTableName` | String | Yes | | `resourceDefinitionsTableId` | UUID | Yes | | `resourceDefinitionsTableName` | String | Yes | | `resourceInstallationsTableId` | UUID | Yes | @@ -614,13 +654,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, 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(); +const items = await db.catalogModule.findMany({ select: { apiName: true, apisTableId: true, apisTableName: true, appStoreIdentitiesTableId: true, appStoreIdentitiesTableName: 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, imagesTableId: true, imagesTableName: true, managedDomainsTableId: true, managedDomainsTableName: true, namespacesTableId: true, namespacesTableName: true, policies: true, privateApiName: true, provisions: true, publicSchemaName: true, redirectsTableId: true, redirectsTableName: 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, 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(); +const item = await db.catalogModule.findOne({ id: '', select: { apiName: true, apisTableId: true, apisTableName: true, appStoreIdentitiesTableId: true, appStoreIdentitiesTableName: 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, imagesTableId: true, imagesTableName: true, managedDomainsTableId: true, managedDomainsTableName: true, namespacesTableId: true, namespacesTableName: true, policies: true, privateApiName: true, provisions: true, publicSchemaName: true, redirectsTableId: true, redirectsTableName: 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: '', 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(); +const created = await db.catalogModule.create({ data: { apiName: '', apisTableId: '', apisTableName: '', appStoreIdentitiesTableId: '', appStoreIdentitiesTableName: '', appsTableId: '', appsTableName: '', bindingsTableId: '', bindingsTableName: '', bucketsTableId: '', bucketsTableName: '', databaseId: '', defaultCapabilities: '', domainsTableId: '', domainsTableName: '', entityTableId: '', functionsTableId: '', functionsTableName: '', imagesTableId: '', imagesTableName: '', managedDomainsTableId: '', managedDomainsTableName: '', namespacesTableId: '', namespacesTableName: '', policies: '', privateApiName: '', provisions: '', publicSchemaName: '', redirectsTableId: '', redirectsTableName: '', 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(); @@ -629,88 +669,106 @@ const updated = await db.catalogModule.update({ where: { id: '' }, data: { const deleted = await db.catalogModule.delete({ where: { id: '' } }).execute(); ``` -### `db.computeLogModule` +### `db.clusterModule` -CRUD operations for ComputeLogModule records. +CRUD operations for ClusterModule records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `actorFkTableId` | UUID | Yes | | `apiName` | String | Yes | -| `computeLogTableId` | UUID | Yes | -| `computeLogTableName` | String | Yes | +| `clusterEventsTableId` | UUID | Yes | +| `clusterEventsTableName` | String | Yes | +| `clustersTableId` | UUID | Yes | +| `clustersTableName` | String | Yes | | `databaseId` | UUID | Yes | +| `databasePlacementsTableId` | UUID | Yes | +| `databasePlacementsTableName` | String | Yes | +| `databaseServersTableId` | UUID | Yes | +| `databaseServersTableName` | String | Yes | +| `defaultCapabilities` | String | Yes | | `entityField` | String | Yes | -| `entityFkTableId` | UUID | Yes | | `id` | UUID | No | -| `interval` | String | Yes | +| `partitionInterval` | String | Yes | +| `physicalDatabasesTableId` | UUID | Yes | +| `physicalDatabasesTableName` | String | Yes | +| `policies` | JSON | Yes | | `prefix` | String | Yes | | `premake` | Int | Yes | | `privateApiName` | String | Yes | | `privateSchemaId` | UUID | Yes | | `privateSchemaName` | String | Yes | +| `provisions` | JSON | Yes | | `publicSchemaName` | String | Yes | | `retention` | String | Yes | | `schemaId` | UUID | Yes | | `scope` | String | Yes | -| `usageSummaryTableId` | UUID | Yes | -| `usageSummaryTableName` | String | Yes | **Operations:** ```typescript -// List all computeLogModule records -const items = await db.computeLogModule.findMany({ select: { actorFkTableId: true, apiName: true, computeLogTableId: true, computeLogTableName: true, databaseId: true, entityField: true, entityFkTableId: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, schemaId: true, scope: true, usageSummaryTableId: true, usageSummaryTableName: true } }).execute(); +// List all clusterModule records +const items = await db.clusterModule.findMany({ select: { apiName: true, clusterEventsTableId: true, clusterEventsTableName: true, clustersTableId: true, clustersTableName: true, databaseId: true, databasePlacementsTableId: true, databasePlacementsTableName: true, databaseServersTableId: true, databaseServersTableName: true, defaultCapabilities: true, entityField: true, id: true, partitionInterval: true, physicalDatabasesTableId: true, physicalDatabasesTableName: true, policies: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, retention: true, schemaId: true, scope: true } }).execute(); // Get one by id -const item = await db.computeLogModule.findOne({ id: '', select: { actorFkTableId: true, apiName: true, computeLogTableId: true, computeLogTableName: true, databaseId: true, entityField: true, entityFkTableId: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, schemaId: true, scope: true, usageSummaryTableId: true, usageSummaryTableName: true } }).execute(); +const item = await db.clusterModule.findOne({ id: '', select: { apiName: true, clusterEventsTableId: true, clusterEventsTableName: true, clustersTableId: true, clustersTableName: true, databaseId: true, databasePlacementsTableId: true, databasePlacementsTableName: true, databaseServersTableId: true, databaseServersTableName: true, defaultCapabilities: true, entityField: true, id: true, partitionInterval: true, physicalDatabasesTableId: true, physicalDatabasesTableName: true, policies: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, retention: true, schemaId: true, scope: true } }).execute(); // Create -const created = await db.computeLogModule.create({ data: { actorFkTableId: '', apiName: '', computeLogTableId: '', computeLogTableName: '', databaseId: '', entityField: '', entityFkTableId: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', retention: '', schemaId: '', scope: '', usageSummaryTableId: '', usageSummaryTableName: '' }, select: { id: true } }).execute(); +const created = await db.clusterModule.create({ data: { apiName: '', clusterEventsTableId: '', clusterEventsTableName: '', clustersTableId: '', clustersTableName: '', databaseId: '', databasePlacementsTableId: '', databasePlacementsTableName: '', databaseServersTableId: '', databaseServersTableName: '', defaultCapabilities: '', entityField: '', partitionInterval: '', physicalDatabasesTableId: '', physicalDatabasesTableName: '', policies: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', retention: '', schemaId: '', scope: '' }, select: { id: true } }).execute(); // Update -const updated = await db.computeLogModule.update({ where: { id: '' }, data: { actorFkTableId: '' }, select: { id: true } }).execute(); +const updated = await db.clusterModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.computeLogModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.clusterModule.delete({ where: { id: '' } }).execute(); ``` -### `db.configSecretsUserModule` +### `db.computeLogModule` -CRUD operations for ConfigSecretsUserModule records. +CRUD operations for ComputeLogModule records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `apiName` | String | Yes | +| `computeLogTableId` | UUID | Yes | +| `computeLogTableName` | String | Yes | | `databaseId` | UUID | Yes | | `entityField` | String | Yes | | `id` | UUID | No | +| `interval` | String | Yes | +| `prefix` | String | Yes | +| `premake` | Int | Yes | | `privateApiName` | String | Yes | +| `privateSchemaId` | UUID | Yes | +| `privateSchemaName` | String | Yes | +| `publicSchemaName` | String | Yes | +| `retention` | String | Yes | +| `rollupFunctionName` | String | Yes | | `schemaId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `tableName` | String | Yes | +| `scope` | String | Yes | +| `usageSummaryTableId` | UUID | Yes | +| `usageSummaryTableName` | String | Yes | **Operations:** ```typescript -// List all configSecretsUserModule records -const items = await db.configSecretsUserModule.findMany({ select: { apiName: true, databaseId: true, entityField: true, id: true, privateApiName: true, schemaId: true, tableId: true, tableName: true } }).execute(); +// List all computeLogModule records +const items = await db.computeLogModule.findMany({ select: { apiName: true, computeLogTableId: true, computeLogTableName: true, databaseId: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, rollupFunctionName: true, schemaId: true, scope: true, usageSummaryTableId: true, usageSummaryTableName: true } }).execute(); // Get one by id -const item = await db.configSecretsUserModule.findOne({ id: '', select: { apiName: true, databaseId: true, entityField: true, id: true, privateApiName: true, schemaId: true, tableId: true, tableName: true } }).execute(); +const item = await db.computeLogModule.findOne({ id: '', select: { apiName: true, computeLogTableId: true, computeLogTableName: true, databaseId: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, rollupFunctionName: true, schemaId: true, scope: true, usageSummaryTableId: true, usageSummaryTableName: true } }).execute(); // Create -const created = await db.configSecretsUserModule.create({ data: { apiName: '', databaseId: '', entityField: '', privateApiName: '', schemaId: '', tableId: '', tableName: '' }, select: { id: true } }).execute(); +const created = await db.computeLogModule.create({ data: { apiName: '', computeLogTableId: '', computeLogTableName: '', databaseId: '', entityField: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', retention: '', rollupFunctionName: '', schemaId: '', scope: '', usageSummaryTableId: '', usageSummaryTableName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.configSecretsUserModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); +const updated = await db.computeLogModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.configSecretsUserModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.computeLogModule.delete({ where: { id: '' } }).execute(); ``` ### `db.connectedAccountsModule` @@ -923,6 +981,7 @@ CRUD operations for DatabaseProvisionModule records. | Field | Type | Editable | |-------|------|----------| | `async` | Boolean | Yes | +| `bootstrapActorId` | UUID | Yes | | `bootstrapError` | String | Yes | | `bootstrapStatus` | String | Yes | | `bootstrapUser` | Boolean | Yes | @@ -946,13 +1005,13 @@ CRUD operations for DatabaseProvisionModule records. ```typescript // List all databaseProvisionModule records -const items = await db.databaseProvisionModule.findMany({ select: { async: true, bootstrapError: true, bootstrapStatus: true, bootstrapUser: true, completedAt: true, createdAt: true, databaseId: true, databaseName: true, domain: true, errorMessage: true, fulfilledAt: true, id: true, modules: true, options: true, ownerId: true, sourceDatabaseId: true, status: true, subdomain: true, updatedAt: true } }).execute(); +const items = await db.databaseProvisionModule.findMany({ select: { async: true, bootstrapActorId: true, bootstrapError: true, bootstrapStatus: true, bootstrapUser: true, completedAt: true, createdAt: true, databaseId: true, databaseName: true, domain: true, errorMessage: true, fulfilledAt: true, id: true, modules: true, options: true, ownerId: true, sourceDatabaseId: true, status: true, subdomain: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.databaseProvisionModule.findOne({ id: '', select: { async: true, bootstrapError: true, bootstrapStatus: true, bootstrapUser: true, completedAt: true, createdAt: true, databaseId: true, databaseName: true, domain: true, errorMessage: true, fulfilledAt: true, id: true, modules: true, options: true, ownerId: true, sourceDatabaseId: true, status: true, subdomain: true, updatedAt: true } }).execute(); +const item = await db.databaseProvisionModule.findOne({ id: '', select: { async: true, bootstrapActorId: true, bootstrapError: true, bootstrapStatus: true, bootstrapUser: true, completedAt: true, createdAt: true, databaseId: true, databaseName: true, domain: true, errorMessage: true, fulfilledAt: true, id: true, modules: true, options: true, ownerId: true, sourceDatabaseId: true, status: true, subdomain: true, updatedAt: true } }).execute(); // Create -const created = await db.databaseProvisionModule.create({ data: { async: '', bootstrapError: '', bootstrapStatus: '', bootstrapUser: '', completedAt: '', databaseId: '', databaseName: '', domain: '', errorMessage: '', fulfilledAt: '', modules: '', options: '', ownerId: '', sourceDatabaseId: '', status: '', subdomain: '' }, select: { id: true } }).execute(); +const created = await db.databaseProvisionModule.create({ data: { async: '', bootstrapActorId: '', bootstrapError: '', bootstrapStatus: '', bootstrapUser: '', completedAt: '', databaseId: '', databaseName: '', domain: '', errorMessage: '', fulfilledAt: '', modules: '', options: '', ownerId: '', sourceDatabaseId: '', status: '', subdomain: '' }, select: { id: true } }).execute(); // Update const updated = await db.databaseProvisionModule.update({ where: { id: '' }, data: { async: '' }, select: { id: true } }).execute(); @@ -1740,18 +1799,19 @@ CRUD operations for FunctionModule records. | `schedulesTableId` | UUID | Yes | | `schemaId` | UUID | Yes | | `scope` | String | Yes | +| `storageKey` | String | Yes | **Operations:** ```typescript // List all functionModule records -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(); +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, storageKey: true } }).execute(); // Get one by id -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(); +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, storageKey: true } }).execute(); // Create -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(); +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: '', storageKey: '' }, select: { id: true } }).execute(); // Update const updated = await db.functionModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -1908,9 +1968,9 @@ const updated = await db.hierarchyModule.update({ where: { id: '' }, data: const deleted = await db.hierarchyModule.delete({ where: { id: '' } }).execute(); ``` -### `db.httpRouteModule` +### `db.i18NModule` -CRUD operations for HttpRouteModule records. +CRUD operations for I18NModule records. **Fields:** @@ -1918,48 +1978,34 @@ CRUD operations for HttpRouteModule records. |-------|------|----------| | `apiName` | String | Yes | | `databaseId` | UUID | Yes | -| `defaultCapabilities` | String | Yes | -| `entityField` | String | Yes | -| `entityTableId` | UUID | Yes | -| `functionModuleId` | UUID | Yes | -| `httpRoutesTableId` | UUID | Yes | -| `httpRoutesTableName` | String | Yes | | `id` | UUID | No | -| `policies` | JSON | Yes | -| `prefix` | String | Yes | | `privateApiName` | String | Yes | | `privateSchemaId` | UUID | Yes | -| `privateSchemaName` | String | Yes | -| `provisions` | JSON | Yes | -| `publicSchemaName` | String | Yes | -| `resolverFunctionName` | String | Yes | -| `resourceModuleId` | UUID | Yes | | `schemaId` | UUID | Yes | -| `scope` | String | Yes | -| `storageModuleId` | UUID | Yes | +| `settingsTableId` | UUID | Yes | **Operations:** ```typescript -// List all httpRouteModule records -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(); +// List all i18NModule records +const items = await db.i18NModule.findMany({ select: { apiName: true, databaseId: true, id: true, privateApiName: true, privateSchemaId: true, schemaId: true, settingsTableId: true } }).execute(); // Get one by id -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(); +const item = await db.i18NModule.findOne({ id: '', select: { apiName: true, databaseId: true, id: true, privateApiName: true, privateSchemaId: true, schemaId: true, settingsTableId: true } }).execute(); // Create -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(); +const created = await db.i18NModule.create({ data: { apiName: '', databaseId: '', privateApiName: '', privateSchemaId: '', schemaId: '', settingsTableId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.httpRouteModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); +const updated = await db.i18NModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.httpRouteModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.i18NModule.delete({ where: { id: '' } }).execute(); ``` -### `db.i18NModule` +### `db.identityProvidersModule` -CRUD operations for I18NModule records. +CRUD operations for IdentityProvidersModule records. **Fields:** @@ -1967,34 +2013,41 @@ CRUD operations for I18NModule records. |-------|------|----------| | `apiName` | String | Yes | | `databaseId` | UUID | Yes | +| `entityField` | String | Yes | +| `entityTableId` | UUID | Yes | | `id` | UUID | No | +| `prefix` | String | Yes | | `privateApiName` | String | Yes | | `privateSchemaId` | UUID | Yes | +| `privateSchemaName` | String | Yes | +| `publicSchemaName` | String | Yes | | `schemaId` | UUID | Yes | -| `settingsTableId` | UUID | Yes | +| `scope` | String | Yes | +| `tableId` | UUID | Yes | +| `tableName` | String | Yes | **Operations:** ```typescript -// List all i18NModule records -const items = await db.i18NModule.findMany({ select: { apiName: true, databaseId: true, id: true, privateApiName: true, privateSchemaId: true, schemaId: true, settingsTableId: true } }).execute(); +// List all identityProvidersModule records +const items = await db.identityProvidersModule.findMany({ select: { apiName: true, databaseId: true, entityField: true, entityTableId: 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.i18NModule.findOne({ id: '', select: { apiName: true, databaseId: true, id: true, privateApiName: true, privateSchemaId: true, schemaId: true, settingsTableId: true } }).execute(); +const item = await db.identityProvidersModule.findOne({ id: '', select: { apiName: true, databaseId: true, entityField: true, entityTableId: 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.i18NModule.create({ data: { apiName: '', databaseId: '', privateApiName: '', privateSchemaId: '', schemaId: '', settingsTableId: '' }, select: { id: true } }).execute(); +const created = await db.identityProvidersModule.create({ data: { apiName: '', databaseId: '', entityField: '', entityTableId: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', schemaId: '', scope: '', tableId: '', tableName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.i18NModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); +const updated = await db.identityProvidersModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.i18NModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.identityProvidersModule.delete({ where: { id: '' } }).execute(); ``` -### `db.identityProvidersModule` +### `db.imageModule` -CRUD operations for IdentityProvidersModule records. +CRUD operations for ImageModule records. **Fields:** @@ -2002,36 +2055,45 @@ CRUD operations for IdentityProvidersModule records. |-------|------|----------| | `apiName` | String | Yes | | `databaseId` | UUID | Yes | +| `defaultCapabilities` | String | Yes | | `entityField` | String | Yes | | `entityTableId` | UUID | Yes | | `id` | UUID | No | +| `imageGrantsTableId` | UUID | Yes | +| `imageGrantsTableName` | String | Yes | +| `imagesTableId` | UUID | Yes | +| `imagesTableName` | String | Yes | +| `policies` | JSON | Yes | | `prefix` | String | Yes | | `privateApiName` | String | Yes | | `privateSchemaId` | UUID | Yes | | `privateSchemaName` | String | Yes | +| `provisions` | JSON | Yes | | `publicSchemaName` | String | Yes | +| `registriesTableId` | UUID | Yes | +| `registriesTableName` | String | Yes | +| `registryGrantsTableId` | UUID | Yes | +| `registryGrantsTableName` | String | Yes | | `schemaId` | UUID | Yes | | `scope` | String | Yes | -| `tableId` | UUID | Yes | -| `tableName` | String | Yes | **Operations:** ```typescript -// List all identityProvidersModule records -const items = await db.identityProvidersModule.findMany({ select: { apiName: true, databaseId: true, entityField: true, entityTableId: true, id: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, schemaId: true, scope: true, tableId: true, tableName: true } }).execute(); +// List all imageModule records +const items = await db.imageModule.findMany({ select: { apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, imageGrantsTableId: true, imageGrantsTableName: true, imagesTableId: true, imagesTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, registriesTableId: true, registriesTableName: true, registryGrantsTableId: true, registryGrantsTableName: true, schemaId: true, scope: true } }).execute(); // Get one by id -const item = await db.identityProvidersModule.findOne({ id: '', select: { apiName: true, databaseId: true, entityField: true, entityTableId: 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.imageModule.findOne({ id: '', select: { apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, imageGrantsTableId: true, imageGrantsTableName: true, imagesTableId: true, imagesTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, registriesTableId: true, registriesTableName: true, registryGrantsTableId: true, registryGrantsTableName: true, schemaId: true, scope: true } }).execute(); // Create -const created = await db.identityProvidersModule.create({ data: { apiName: '', databaseId: '', entityField: '', entityTableId: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', schemaId: '', scope: '', tableId: '', tableName: '' }, select: { id: true } }).execute(); +const created = await db.imageModule.create({ data: { apiName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', imageGrantsTableId: '', imageGrantsTableName: '', imagesTableId: '', imagesTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', registriesTableId: '', registriesTableName: '', registryGrantsTableId: '', registryGrantsTableName: '', schemaId: '', scope: '' }, select: { id: true } }).execute(); // Update -const updated = await db.identityProvidersModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); +const updated = await db.imageModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.identityProvidersModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.imageModule.delete({ where: { id: '' } }).execute(); ``` ### `db.inferenceLogModule` @@ -2042,11 +2104,9 @@ CRUD operations for InferenceLogModule records. | Field | Type | Editable | |-------|------|----------| -| `actorFkTableId` | UUID | Yes | | `apiName` | String | Yes | | `databaseId` | UUID | Yes | | `entityField` | String | Yes | -| `entityFkTableId` | UUID | Yes | | `id` | UUID | No | | `inferenceLogTableId` | UUID | Yes | | `inferenceLogTableName` | String | Yes | @@ -2058,6 +2118,7 @@ CRUD operations for InferenceLogModule records. | `privateSchemaName` | String | Yes | | `publicSchemaName` | String | Yes | | `retention` | String | Yes | +| `rollupFunctionName` | String | Yes | | `schemaId` | UUID | Yes | | `scope` | String | Yes | | `usageSummaryTableId` | UUID | Yes | @@ -2067,16 +2128,16 @@ CRUD operations for InferenceLogModule records. ```typescript // List all inferenceLogModule records -const items = await db.inferenceLogModule.findMany({ select: { actorFkTableId: true, apiName: true, databaseId: true, entityField: true, entityFkTableId: true, id: true, inferenceLogTableId: true, inferenceLogTableName: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, schemaId: true, scope: true, usageSummaryTableId: true, usageSummaryTableName: true } }).execute(); +const items = await db.inferenceLogModule.findMany({ select: { apiName: true, databaseId: true, entityField: true, id: true, inferenceLogTableId: true, inferenceLogTableName: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, rollupFunctionName: true, schemaId: true, scope: true, usageSummaryTableId: true, usageSummaryTableName: true } }).execute(); // Get one by id -const item = await db.inferenceLogModule.findOne({ id: '', select: { actorFkTableId: true, apiName: true, databaseId: true, entityField: true, entityFkTableId: true, id: true, inferenceLogTableId: true, inferenceLogTableName: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, schemaId: true, scope: true, usageSummaryTableId: true, usageSummaryTableName: true } }).execute(); +const item = await db.inferenceLogModule.findOne({ id: '', select: { apiName: true, databaseId: true, entityField: true, id: true, inferenceLogTableId: true, inferenceLogTableName: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, rollupFunctionName: true, schemaId: true, scope: true, usageSummaryTableId: true, usageSummaryTableName: true } }).execute(); // Create -const created = await db.inferenceLogModule.create({ data: { actorFkTableId: '', apiName: '', databaseId: '', entityField: '', entityFkTableId: '', inferenceLogTableId: '', inferenceLogTableName: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', retention: '', schemaId: '', scope: '', usageSummaryTableId: '', usageSummaryTableName: '' }, select: { id: true } }).execute(); +const created = await db.inferenceLogModule.create({ data: { apiName: '', databaseId: '', entityField: '', inferenceLogTableId: '', inferenceLogTableName: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', retention: '', rollupFunctionName: '', schemaId: '', scope: '', usageSummaryTableId: '', usageSummaryTableName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.inferenceLogModule.update({ where: { id: '' }, data: { actorFkTableId: '' }, select: { id: true } }).execute(); +const updated = await db.inferenceLogModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); // Delete const deleted = await db.inferenceLogModule.delete({ where: { id: '' } }).execute(); @@ -2212,6 +2273,50 @@ const updated = await db.integrationProvidersModule.update({ where: { id: '' } }).execute(); ``` +### `db.internalConfigModule` + +CRUD operations for InternalConfigModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `apiName` | String | Yes | +| `databaseId` | UUID | Yes | +| `entityField` | String | Yes | +| `entityTableId` | UUID | Yes | +| `id` | UUID | No | +| `internalConfigTableId` | UUID | Yes | +| `internalConfigTableName` | String | Yes | +| `policies` | JSON | Yes | +| `prefix` | String | Yes | +| `privateApiName` | String | Yes | +| `privateSchemaId` | UUID | Yes | +| `privateSchemaName` | String | Yes | +| `provisions` | JSON | Yes | +| `publicSchemaName` | String | Yes | +| `schemaId` | UUID | Yes | +| `scope` | String | Yes | + +**Operations:** + +```typescript +// List all internalConfigModule records +const items = await db.internalConfigModule.findMany({ select: { apiName: true, databaseId: true, entityField: true, entityTableId: true, id: true, internalConfigTableId: true, internalConfigTableName: 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.internalConfigModule.findOne({ id: '', select: { apiName: true, databaseId: true, entityField: true, entityTableId: true, id: true, internalConfigTableId: true, internalConfigTableName: 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.internalConfigModule.create({ data: { apiName: '', databaseId: '', entityField: '', entityTableId: '', internalConfigTableId: '', internalConfigTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.internalConfigModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.internalConfigModule.delete({ where: { id: '' } }).execute(); +``` + ### `db.internalSecretsModule` CRUD operations for InternalSecretsModule records. @@ -2303,6 +2408,52 @@ const updated = await db.invitesModule.update({ where: { id: '' }, data: { const deleted = await db.invitesModule.delete({ where: { id: '' } }).execute(); ``` +### `db.k8sAdmissionModule` + +CRUD operations for K8sAdmissionModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `apiName` | String | Yes | +| `createdAt` | Datetime | No | +| `databaseId` | UUID | Yes | +| `entityTableId` | UUID | Yes | +| `id` | UUID | No | +| `k8sResourceKindsTableId` | UUID | Yes | +| `k8sSpecRulesTableId` | UUID | Yes | +| `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 k8sAdmissionModule records +const items = await db.k8sAdmissionModule.findMany({ select: { apiName: true, createdAt: true, databaseId: true, entityTableId: true, id: true, k8sResourceKindsTableId: true, k8sSpecRulesTableId: 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.k8sAdmissionModule.findOne({ id: '', select: { apiName: true, createdAt: true, databaseId: true, entityTableId: true, id: true, k8sResourceKindsTableId: true, k8sSpecRulesTableId: 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.k8sAdmissionModule.create({ data: { apiName: '', databaseId: '', entityTableId: '', k8sResourceKindsTableId: '', k8sSpecRulesTableId: '', merkleStoreModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaId: '', publicSchemaName: '', scope: '', storeName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.k8sAdmissionModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.k8sAdmissionModule.delete({ where: { id: '' } }).execute(); +``` + ### `db.limitsModule` CRUD operations for LimitsModule records. @@ -2369,6 +2520,58 @@ const updated = await db.limitsModule.update({ where: { id: '' }, data: { const deleted = await db.limitsModule.delete({ where: { id: '' } }).execute(); ``` +### `db.machineModule` + +CRUD operations for MachineModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `apiName` | String | Yes | +| `databaseId` | UUID | Yes | +| `defaultCapabilities` | String | Yes | +| `entityField` | String | Yes | +| `entityTableId` | UUID | Yes | +| `id` | UUID | No | +| `machineMessagesTableId` | UUID | Yes | +| `machineMessagesTableName` | String | Yes | +| `machineSessionsTableId` | UUID | Yes | +| `machineSessionsTableName` | String | Yes | +| `machinesTableId` | UUID | Yes | +| `machinesTableName` | String | Yes | +| `partitionInterval` | String | Yes | +| `policies` | JSON | Yes | +| `prefix` | String | Yes | +| `premake` | Int | Yes | +| `privateApiName` | String | Yes | +| `privateSchemaId` | UUID | Yes | +| `privateSchemaName` | String | Yes | +| `provisions` | JSON | Yes | +| `publicSchemaName` | String | Yes | +| `retention` | String | Yes | +| `schemaId` | UUID | Yes | +| `scope` | String | Yes | + +**Operations:** + +```typescript +// List all machineModule records +const items = await db.machineModule.findMany({ select: { apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, machineMessagesTableId: true, machineMessagesTableName: true, machineSessionsTableId: true, machineSessionsTableName: true, machinesTableId: true, machinesTableName: true, partitionInterval: true, policies: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, retention: true, schemaId: true, scope: true } }).execute(); + +// Get one by id +const item = await db.machineModule.findOne({ id: '', select: { apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, machineMessagesTableId: true, machineMessagesTableName: true, machineSessionsTableId: true, machineSessionsTableName: true, machinesTableId: true, machinesTableName: true, partitionInterval: true, policies: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, retention: true, schemaId: true, scope: true } }).execute(); + +// Create +const created = await db.machineModule.create({ data: { apiName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', machineMessagesTableId: '', machineMessagesTableName: '', machineSessionsTableId: '', machineSessionsTableName: '', machinesTableId: '', machinesTableName: '', partitionInterval: '', policies: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', retention: '', schemaId: '', scope: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.machineModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.machineModule.delete({ where: { id: '' } }).execute(); +``` + ### `db.membershipTypesModule` CRUD operations for MembershipTypesModule records. @@ -2486,6 +2689,7 @@ CRUD operations for MerkleStoreModule records. | `createdAt` | Datetime | No | | `databaseId` | UUID | Yes | | `entityField` | String | Yes | +| `entityTableId` | UUID | Yes | | `functionPrefix` | String | Yes | | `id` | UUID | No | | `objectTableId` | UUID | Yes | @@ -2503,13 +2707,13 @@ CRUD operations for MerkleStoreModule records. ```typescript // List all merkleStoreModule records -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(); +const items = await db.merkleStoreModule.findMany({ select: { apiName: true, capabilityKey: true, commitTableId: true, createdAt: true, databaseId: true, entityField: true, entityTableId: 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, 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(); +const item = await db.merkleStoreModule.findOne({ id: '', select: { apiName: true, capabilityKey: true, commitTableId: true, createdAt: true, databaseId: true, entityField: true, entityTableId: 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: '', capabilityKey: '', commitTableId: '', databaseId: '', entityField: '', functionPrefix: '', objectTableId: '', 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: '', entityTableId: '', 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(); @@ -2674,12 +2878,17 @@ CRUD operations for PagesModule records. | `pagesTableId` | UUID | Yes | | `policies` | JSON | Yes | | `prefix` | String | Yes | +| `previewCommitFunctionName` | String | Yes | +| `previewSetFunctionName` | String | Yes | +| `previewTokenMintFunctionName` | String | Yes | +| `previewTokenVerifierFunctionName` | String | Yes | | `privateApiName` | String | Yes | | `privateSchemaId` | UUID | Yes | | `privateSchemaName` | String | Yes | | `provisions` | JSON | Yes | | `publicSchemaId` | UUID | Yes | | `publicSchemaName` | String | Yes | +| `releaseManifestFunctionName` | String | Yes | | `scope` | String | Yes | | `siteSurfaceModuleId` | UUID | Yes | | `sitesTableId` | UUID | Yes | @@ -2689,13 +2898,13 @@ CRUD operations for PagesModule records. ```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(); +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, previewCommitFunctionName: true, previewSetFunctionName: true, previewTokenMintFunctionName: true, previewTokenVerifierFunctionName: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaId: true, publicSchemaName: true, releaseManifestFunctionName: true, scope: true, siteSurfaceModuleId: true, sitesTableId: true, storeNamePrefix: 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.pagesModule.findOne({ id: '', select: { apiName: true, createdAt: true, databaseId: true, entityTableId: true, id: true, merkleStoreModuleId: true, pagesTableId: true, policies: true, prefix: true, previewCommitFunctionName: true, previewSetFunctionName: true, previewTokenMintFunctionName: true, previewTokenVerifierFunctionName: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaId: true, publicSchemaName: true, releaseManifestFunctionName: true, scope: true, siteSurfaceModuleId: true, sitesTableId: true, storeNamePrefix: 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.pagesModule.create({ data: { apiName: '', databaseId: '', entityTableId: '', merkleStoreModuleId: '', pagesTableId: '', policies: '', prefix: '', previewCommitFunctionName: '', previewSetFunctionName: '', previewTokenMintFunctionName: '', previewTokenVerifierFunctionName: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaId: '', publicSchemaName: '', releaseManifestFunctionName: '', scope: '', siteSurfaceModuleId: '', sitesTableId: '', storeNamePrefix: '' }, select: { id: true } }).execute(); // Update const updated = await db.pagesModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -2811,23 +3020,25 @@ CRUD operations for PrincipalAuthModule records. | `principalScopeOverridesTableId` | UUID | Yes | | `principalsTableId` | UUID | Yes | | `principalsTableName` | String | Yes | +| `privateSchemaId` | UUID | Yes | | `revokeOrgApiKeyFunction` | String | Yes | | `schemaId` | UUID | Yes | | `sessionCredentialsTableId` | UUID | Yes | | `sessionsTableId` | UUID | Yes | +| `sweepExpiredPrincipalsFunction` | String | Yes | | `usersTableId` | UUID | Yes | **Operations:** ```typescript // List all principalAuthModule records -const items = await db.principalAuthModule.findMany({ select: { apiName: true, auditsTableId: true, createOrgApiKeyFunction: true, createOrgPrincipalFunction: true, createPrincipalFunction: true, databaseId: true, deleteOrgPrincipalFunction: true, deletePrincipalFunction: true, id: true, principalEntitiesTableId: true, principalScopeOverridesTableId: true, principalsTableId: true, principalsTableName: true, revokeOrgApiKeyFunction: true, schemaId: true, sessionCredentialsTableId: true, sessionsTableId: true, usersTableId: true } }).execute(); +const items = await db.principalAuthModule.findMany({ select: { apiName: true, auditsTableId: true, createOrgApiKeyFunction: true, createOrgPrincipalFunction: true, createPrincipalFunction: true, databaseId: true, deleteOrgPrincipalFunction: true, deletePrincipalFunction: true, id: true, principalEntitiesTableId: true, principalScopeOverridesTableId: true, principalsTableId: true, principalsTableName: true, privateSchemaId: true, revokeOrgApiKeyFunction: true, schemaId: true, sessionCredentialsTableId: true, sessionsTableId: true, sweepExpiredPrincipalsFunction: true, usersTableId: true } }).execute(); // Get one by id -const item = await db.principalAuthModule.findOne({ id: '', select: { apiName: true, auditsTableId: true, createOrgApiKeyFunction: true, createOrgPrincipalFunction: true, createPrincipalFunction: true, databaseId: true, deleteOrgPrincipalFunction: true, deletePrincipalFunction: true, id: true, principalEntitiesTableId: true, principalScopeOverridesTableId: true, principalsTableId: true, principalsTableName: true, revokeOrgApiKeyFunction: true, schemaId: true, sessionCredentialsTableId: true, sessionsTableId: true, usersTableId: true } }).execute(); +const item = await db.principalAuthModule.findOne({ id: '', select: { apiName: true, auditsTableId: true, createOrgApiKeyFunction: true, createOrgPrincipalFunction: true, createPrincipalFunction: true, databaseId: true, deleteOrgPrincipalFunction: true, deletePrincipalFunction: true, id: true, principalEntitiesTableId: true, principalScopeOverridesTableId: true, principalsTableId: true, principalsTableName: true, privateSchemaId: true, revokeOrgApiKeyFunction: true, schemaId: true, sessionCredentialsTableId: true, sessionsTableId: true, sweepExpiredPrincipalsFunction: true, usersTableId: true } }).execute(); // Create -const created = await db.principalAuthModule.create({ data: { apiName: '', auditsTableId: '', createOrgApiKeyFunction: '', createOrgPrincipalFunction: '', createPrincipalFunction: '', databaseId: '', deleteOrgPrincipalFunction: '', deletePrincipalFunction: '', principalEntitiesTableId: '', principalScopeOverridesTableId: '', principalsTableId: '', principalsTableName: '', revokeOrgApiKeyFunction: '', schemaId: '', sessionCredentialsTableId: '', sessionsTableId: '', usersTableId: '' }, select: { id: true } }).execute(); +const created = await db.principalAuthModule.create({ data: { apiName: '', auditsTableId: '', createOrgApiKeyFunction: '', createOrgPrincipalFunction: '', createPrincipalFunction: '', databaseId: '', deleteOrgPrincipalFunction: '', deletePrincipalFunction: '', principalEntitiesTableId: '', principalScopeOverridesTableId: '', principalsTableId: '', principalsTableName: '', privateSchemaId: '', revokeOrgApiKeyFunction: '', schemaId: '', sessionCredentialsTableId: '', sessionsTableId: '', sweepExpiredPrincipalsFunction: '', usersTableId: '' }, select: { id: true } }).execute(); // Update const updated = await db.principalAuthModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -3015,6 +3226,57 @@ const updated = await db.realtimeModule.update({ where: { id: '' }, data: const deleted = await db.realtimeModule.delete({ where: { id: '' } }).execute(); ``` +### `db.refusalLogModule` + +CRUD operations for RefusalLogModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `apiName` | String | Yes | +| `databaseId` | UUID | Yes | +| `entityField` | String | Yes | +| `id` | UUID | No | +| `logInterval` | String | Yes | +| `logPremake` | Int | Yes | +| `logRetention` | String | Yes | +| `logTableId` | UUID | Yes | +| `logTableName` | String | Yes | +| `prefix` | String | Yes | +| `privateApiName` | String | Yes | +| `privateSchemaId` | UUID | Yes | +| `privateSchemaName` | String | Yes | +| `publicSchemaName` | String | Yes | +| `recordRefusalsFunction` | String | Yes | +| `rollupRefusalUsageSummaryFunction` | String | Yes | +| `schemaId` | UUID | Yes | +| `scope` | String | Yes | +| `summaryInterval` | String | Yes | +| `summaryPremake` | Int | Yes | +| `summaryRetention` | String | Yes | +| `summaryTableId` | UUID | Yes | +| `summaryTableName` | String | Yes | + +**Operations:** + +```typescript +// List all refusalLogModule records +const items = await db.refusalLogModule.findMany({ select: { apiName: true, databaseId: true, entityField: true, id: true, logInterval: true, logPremake: true, logRetention: true, logTableId: true, logTableName: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, recordRefusalsFunction: true, rollupRefusalUsageSummaryFunction: true, schemaId: true, scope: true, summaryInterval: true, summaryPremake: true, summaryRetention: true, summaryTableId: true, summaryTableName: true } }).execute(); + +// Get one by id +const item = await db.refusalLogModule.findOne({ id: '', select: { apiName: true, databaseId: true, entityField: true, id: true, logInterval: true, logPremake: true, logRetention: true, logTableId: true, logTableName: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, recordRefusalsFunction: true, rollupRefusalUsageSummaryFunction: true, schemaId: true, scope: true, summaryInterval: true, summaryPremake: true, summaryRetention: true, summaryTableId: true, summaryTableName: true } }).execute(); + +// Create +const created = await db.refusalLogModule.create({ data: { apiName: '', databaseId: '', entityField: '', logInterval: '', logPremake: '', logRetention: '', logTableId: '', logTableName: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', recordRefusalsFunction: '', rollupRefusalUsageSummaryFunction: '', schemaId: '', scope: '', summaryInterval: '', summaryPremake: '', summaryRetention: '', summaryTableId: '', summaryTableName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.refusalLogModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.refusalLogModule.delete({ where: { id: '' } }).execute(); +``` + ### `db.relationProvision` CRUD operations for RelationProvision records. @@ -3067,6 +3329,74 @@ const updated = await db.relationProvision.update({ where: { id: '' }, dat const deleted = await db.relationProvision.delete({ where: { id: '' } }).execute(); ``` +### `db.repositoryModule` + +CRUD operations for RepositoryModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `apiName` | String | Yes | +| `buildStepsTableId` | UUID | Yes | +| `buildStepsTableName` | String | Yes | +| `buildsTableId` | UUID | Yes | +| `buildsTableName` | String | Yes | +| `databaseId` | UUID | Yes | +| `defaultCapabilities` | String | Yes | +| `entityField` | String | Yes | +| `entityTableId` | UUID | Yes | +| `hasAttachments` | Boolean | Yes | +| `hasBuilds` | Boolean | Yes | +| `id` | UUID | No | +| `policies` | JSON | Yes | +| `prefix` | String | Yes | +| `privateApiName` | String | Yes | +| `privateSchemaId` | UUID | Yes | +| `privateSchemaName` | String | Yes | +| `proposalCommentsTableId` | UUID | Yes | +| `proposalCommentsTableName` | String | Yes | +| `proposalFileViewsTableId` | UUID | Yes | +| `proposalFileViewsTableName` | String | Yes | +| `proposalReactionsTableId` | UUID | Yes | +| `proposalReactionsTableName` | String | Yes | +| `proposalReviewsTableId` | UUID | Yes | +| `proposalReviewsTableName` | String | Yes | +| `proposalsTableId` | UUID | Yes | +| `proposalsTableName` | String | Yes | +| `provisions` | JSON | Yes | +| `publicSchemaName` | String | Yes | +| `repositoriesTableId` | UUID | Yes | +| `repositoriesTableName` | String | Yes | +| `repositoryEventsTableId` | UUID | Yes | +| `repositoryEventsTableName` | String | Yes | +| `repositoryRequiredChecksTableId` | UUID | Yes | +| `repositoryRequiredChecksTableName` | String | Yes | +| `schemaId` | UUID | Yes | +| `scope` | String | Yes | +| `search` | JSON | Yes | +| `workflowsTableId` | UUID | Yes | +| `workflowsTableName` | String | Yes | + +**Operations:** + +```typescript +// List all repositoryModule records +const items = await db.repositoryModule.findMany({ select: { apiName: true, buildStepsTableId: true, buildStepsTableName: true, buildsTableId: true, buildsTableName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, hasAttachments: true, hasBuilds: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, proposalCommentsTableId: true, proposalCommentsTableName: true, proposalFileViewsTableId: true, proposalFileViewsTableName: true, proposalReactionsTableId: true, proposalReactionsTableName: true, proposalReviewsTableId: true, proposalReviewsTableName: true, proposalsTableId: true, proposalsTableName: true, provisions: true, publicSchemaName: true, repositoriesTableId: true, repositoriesTableName: true, repositoryEventsTableId: true, repositoryEventsTableName: true, repositoryRequiredChecksTableId: true, repositoryRequiredChecksTableName: true, schemaId: true, scope: true, search: true, workflowsTableId: true, workflowsTableName: true } }).execute(); + +// Get one by id +const item = await db.repositoryModule.findOne({ id: '', select: { apiName: true, buildStepsTableId: true, buildStepsTableName: true, buildsTableId: true, buildsTableName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, hasAttachments: true, hasBuilds: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, proposalCommentsTableId: true, proposalCommentsTableName: true, proposalFileViewsTableId: true, proposalFileViewsTableName: true, proposalReactionsTableId: true, proposalReactionsTableName: true, proposalReviewsTableId: true, proposalReviewsTableName: true, proposalsTableId: true, proposalsTableName: true, provisions: true, publicSchemaName: true, repositoriesTableId: true, repositoriesTableName: true, repositoryEventsTableId: true, repositoryEventsTableName: true, repositoryRequiredChecksTableId: true, repositoryRequiredChecksTableName: true, schemaId: true, scope: true, search: true, workflowsTableId: true, workflowsTableName: true } }).execute(); + +// Create +const created = await db.repositoryModule.create({ data: { apiName: '', buildStepsTableId: '', buildStepsTableName: '', buildsTableId: '', buildsTableName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', hasAttachments: '', hasBuilds: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', proposalCommentsTableId: '', proposalCommentsTableName: '', proposalFileViewsTableId: '', proposalFileViewsTableName: '', proposalReactionsTableId: '', proposalReactionsTableName: '', proposalReviewsTableId: '', proposalReviewsTableName: '', proposalsTableId: '', proposalsTableName: '', provisions: '', publicSchemaName: '', repositoriesTableId: '', repositoriesTableName: '', repositoryEventsTableId: '', repositoryEventsTableName: '', repositoryRequiredChecksTableId: '', repositoryRequiredChecksTableName: '', schemaId: '', scope: '', search: '', workflowsTableId: '', workflowsTableName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.repositoryModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.repositoryModule.delete({ where: { id: '' } }).execute(); +``` + ### `db.resourceModule` CRUD operations for ResourceModule records. @@ -3076,6 +3406,8 @@ CRUD operations for ResourceModule records. | Field | Type | Editable | |-------|------|----------| | `apiName` | String | Yes | +| `builderBindingsTableId` | UUID | Yes | +| `builderBindingsTableName` | String | Yes | | `databaseId` | UUID | Yes | | `defaultCapabilities` | String | Yes | | `entityField` | String | Yes | @@ -3091,6 +3423,8 @@ CRUD operations for ResourceModule records. | `privateSchemaName` | String | Yes | | `provisions` | JSON | Yes | | `publicSchemaName` | String | Yes | +| `registryBindingsTableId` | UUID | Yes | +| `registryBindingsTableName` | String | Yes | | `requirementsStateViewName` | String | Yes | | `resolvedRequirementsViewName` | String | Yes | | `resourceBillingRollupFunction` | String | Yes | @@ -3116,13 +3450,13 @@ CRUD operations for ResourceModule records. ```typescript // List all resourceModule records -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(); +const items = await db.resourceModule.findMany({ select: { apiName: true, builderBindingsTableId: true, builderBindingsTableName: 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, registryBindingsTableId: true, registryBindingsTableName: 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, 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(); +const item = await db.resourceModule.findOne({ id: '', select: { apiName: true, builderBindingsTableId: true, builderBindingsTableName: 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, registryBindingsTableId: true, registryBindingsTableName: 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: '', 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(); +const created = await db.resourceModule.create({ data: { apiName: '', builderBindingsTableId: '', builderBindingsTableName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', installationStoreName: '', merkleStoreModuleId: '', namespaceModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', registryBindingsTableId: '', registryBindingsTableName: '', 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(); @@ -3199,6 +3533,8 @@ CRUD operations for RouteModule records. | `privateSchemaName` | String | Yes | | `provisions` | JSON | Yes | | `publicSchemaName` | String | Yes | +| `redirectsTableId` | UUID | Yes | +| `redirectsTableName` | String | Yes | | `resolverFunctionName` | String | Yes | | `routeBindingsTableId` | UUID | Yes | | `routeBindingsTableName` | String | Yes | @@ -3206,18 +3542,20 @@ CRUD operations for RouteModule records. | `routesTableName` | String | Yes | | `schemaId` | UUID | Yes | | `scope` | String | Yes | +| `servingSiteField` | String | Yes | +| `storageKey` | String | Yes | **Operations:** ```typescript // List all routeModule records -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(); +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, redirectsTableId: true, redirectsTableName: true, resolverFunctionName: true, routeBindingsTableId: true, routeBindingsTableName: true, routesTableId: true, routesTableName: true, schemaId: true, scope: true, servingSiteField: true, storageKey: true } }).execute(); // Get one by id -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(); +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, redirectsTableId: true, redirectsTableName: true, resolverFunctionName: true, routeBindingsTableId: true, routeBindingsTableName: true, routesTableId: true, routesTableName: true, schemaId: true, scope: true, servingSiteField: true, storageKey: true } }).execute(); // Create -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(); +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: '', redirectsTableId: '', redirectsTableName: '', resolverFunctionName: '', routeBindingsTableId: '', routeBindingsTableName: '', routesTableId: '', routesTableName: '', schemaId: '', scope: '', servingSiteField: '', storageKey: '' }, select: { id: true } }).execute(); // Update const updated = await db.routeModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -3271,8 +3609,10 @@ CRUD operations for SecureTableProvision records. | `fields` | JSON | Yes | | `grants` | JSON | Yes | | `id` | UUID | No | +| `module` | JSON | Yes | | `nodes` | JSON | Yes | | `outFields` | UUID | Yes | +| `owns` | JSON | Yes | | `policies` | JSON | Yes | | `schemaId` | UUID | Yes | | `tableId` | UUID | Yes | @@ -3283,13 +3623,13 @@ CRUD operations for SecureTableProvision records. ```typescript // List all secureTableProvision records -const items = await db.secureTableProvision.findMany({ select: { databaseId: true, fields: true, grants: true, id: true, nodes: true, outFields: true, policies: true, schemaId: true, tableId: true, tableName: true, useRls: true } }).execute(); +const items = await db.secureTableProvision.findMany({ select: { databaseId: true, fields: true, grants: true, id: true, module: true, nodes: true, outFields: true, owns: true, policies: true, schemaId: true, tableId: true, tableName: true, useRls: true } }).execute(); // Get one by id -const item = await db.secureTableProvision.findOne({ id: '', select: { databaseId: true, fields: true, grants: true, id: true, nodes: true, outFields: true, policies: true, schemaId: true, tableId: true, tableName: true, useRls: true } }).execute(); +const item = await db.secureTableProvision.findOne({ id: '', select: { databaseId: true, fields: true, grants: true, id: true, module: true, nodes: true, outFields: true, owns: true, policies: true, schemaId: true, tableId: true, tableName: true, useRls: true } }).execute(); // Create -const created = await db.secureTableProvision.create({ data: { databaseId: '', fields: '', grants: '', nodes: '', outFields: '', policies: '', schemaId: '', tableId: '', tableName: '', useRls: '' }, select: { id: true } }).execute(); +const created = await db.secureTableProvision.create({ data: { databaseId: '', fields: '', grants: '', module: '', nodes: '', outFields: '', owns: '', policies: '', schemaId: '', tableId: '', tableName: '', useRls: '' }, select: { id: true } }).execute(); // Update const updated = await db.secureTableProvision.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -3405,24 +3745,27 @@ CRUD operations for SiteSurfaceModule records. | `siteMetadataTableName` | String | Yes | | `siteModulesTableId` | UUID | Yes | | `siteModulesTableName` | String | Yes | +| `siteReleasesTableId` | UUID | Yes | +| `siteReleasesTableName` | String | Yes | | `siteThemesTableId` | UUID | Yes | | `siteThemesTableName` | String | Yes | | `siteWebConfigTableId` | UUID | Yes | | `siteWebConfigTableName` | String | Yes | | `sitesTableId` | UUID | Yes | | `sitesTableName` | String | Yes | +| `storageKey` | String | Yes | **Operations:** ```typescript // List all siteSurfaceModule records -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(); +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, siteReleasesTableId: true, siteReleasesTableName: true, siteThemesTableId: true, siteThemesTableName: true, siteWebConfigTableId: true, siteWebConfigTableName: true, sitesTableId: true, sitesTableName: true, storageKey: true } }).execute(); // Get one by id -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(); +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, siteReleasesTableId: true, siteReleasesTableName: true, siteThemesTableId: true, siteThemesTableName: true, siteWebConfigTableId: true, siteWebConfigTableName: true, sitesTableId: true, sitesTableName: true, storageKey: true } }).execute(); // Create -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(); +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: '', siteReleasesTableId: '', siteReleasesTableName: '', siteThemesTableId: '', siteThemesTableName: '', siteWebConfigTableId: '', siteWebConfigTableName: '', sitesTableId: '', sitesTableName: '', storageKey: '' }, select: { id: true } }).execute(); // Update const updated = await db.siteSurfaceModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -3439,11 +3782,9 @@ CRUD operations for StorageLogModule records. | Field | Type | Editable | |-------|------|----------| -| `actorFkTableId` | UUID | Yes | | `apiName` | String | Yes | | `databaseId` | UUID | Yes | | `entityField` | String | Yes | -| `entityFkTableId` | UUID | Yes | | `id` | UUID | No | | `interval` | String | Yes | | `prefix` | String | Yes | @@ -3453,6 +3794,7 @@ CRUD operations for StorageLogModule records. | `privateSchemaName` | String | Yes | | `publicSchemaName` | String | Yes | | `retention` | String | Yes | +| `rollupFunctionName` | String | Yes | | `schemaId` | UUID | Yes | | `scope` | String | Yes | | `storageLogTableId` | UUID | Yes | @@ -3464,16 +3806,16 @@ CRUD operations for StorageLogModule records. ```typescript // List all storageLogModule records -const items = await db.storageLogModule.findMany({ select: { actorFkTableId: true, apiName: true, databaseId: true, entityField: true, entityFkTableId: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, schemaId: true, scope: true, storageLogTableId: true, storageLogTableName: true, usageSummaryTableId: true, usageSummaryTableName: true } }).execute(); +const items = await db.storageLogModule.findMany({ select: { apiName: true, databaseId: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, rollupFunctionName: true, schemaId: true, scope: true, storageLogTableId: true, storageLogTableName: true, usageSummaryTableId: true, usageSummaryTableName: true } }).execute(); // Get one by id -const item = await db.storageLogModule.findOne({ id: '', select: { actorFkTableId: true, apiName: true, databaseId: true, entityField: true, entityFkTableId: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, schemaId: true, scope: true, storageLogTableId: true, storageLogTableName: true, usageSummaryTableId: true, usageSummaryTableName: true } }).execute(); +const item = await db.storageLogModule.findOne({ id: '', select: { apiName: true, databaseId: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, rollupFunctionName: true, schemaId: true, scope: true, storageLogTableId: true, storageLogTableName: true, usageSummaryTableId: true, usageSummaryTableName: true } }).execute(); // Create -const created = await db.storageLogModule.create({ data: { actorFkTableId: '', apiName: '', databaseId: '', entityField: '', entityFkTableId: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', retention: '', schemaId: '', scope: '', storageLogTableId: '', storageLogTableName: '', usageSummaryTableId: '', usageSummaryTableName: '' }, select: { id: true } }).execute(); +const created = await db.storageLogModule.create({ data: { apiName: '', databaseId: '', entityField: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', retention: '', rollupFunctionName: '', schemaId: '', scope: '', storageLogTableId: '', storageLogTableName: '', usageSummaryTableId: '', usageSummaryTableName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.storageLogModule.update({ where: { id: '' }, data: { actorFkTableId: '' }, select: { id: true } }).execute(); +const updated = await db.storageLogModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); // Delete const deleted = await db.storageLogModule.delete({ where: { id: '' } }).execute(); @@ -3511,6 +3853,7 @@ CRUD operations for StorageModule records. | `hasPathShares` | Boolean | Yes | | `hasVersioning` | Boolean | Yes | | `id` | UUID | No | +| `key` | String | Yes | | `maxBulkFiles` | Int | Yes | | `maxBulkTotalSize` | BigInt | Yes | | `maxFilenameLength` | Int | Yes | @@ -3533,13 +3876,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, 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(); +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, key: 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, 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(); +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, key: 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: '', 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(); +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: '', key: '', 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(); @@ -3556,11 +3899,9 @@ CRUD operations for TransferLogModule records. | Field | Type | Editable | |-------|------|----------| -| `actorFkTableId` | UUID | Yes | | `apiName` | String | Yes | | `databaseId` | UUID | Yes | | `entityField` | String | Yes | -| `entityFkTableId` | UUID | Yes | | `id` | UUID | No | | `interval` | String | Yes | | `prefix` | String | Yes | @@ -3570,6 +3911,7 @@ CRUD operations for TransferLogModule records. | `privateSchemaName` | String | Yes | | `publicSchemaName` | String | Yes | | `retention` | String | Yes | +| `rollupFunctionName` | String | Yes | | `schemaId` | UUID | Yes | | `scope` | String | Yes | | `transferLogTableId` | UUID | Yes | @@ -3581,16 +3923,16 @@ CRUD operations for TransferLogModule records. ```typescript // List all transferLogModule records -const items = await db.transferLogModule.findMany({ select: { actorFkTableId: true, apiName: true, databaseId: true, entityField: true, entityFkTableId: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, schemaId: true, scope: true, transferLogTableId: true, transferLogTableName: true, usageSummaryTableId: true, usageSummaryTableName: true } }).execute(); +const items = await db.transferLogModule.findMany({ select: { apiName: true, databaseId: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, rollupFunctionName: true, schemaId: true, scope: true, transferLogTableId: true, transferLogTableName: true, usageSummaryTableId: true, usageSummaryTableName: true } }).execute(); // Get one by id -const item = await db.transferLogModule.findOne({ id: '', select: { actorFkTableId: true, apiName: true, databaseId: true, entityField: true, entityFkTableId: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, schemaId: true, scope: true, transferLogTableId: true, transferLogTableName: true, usageSummaryTableId: true, usageSummaryTableName: true } }).execute(); +const item = await db.transferLogModule.findOne({ id: '', select: { apiName: true, databaseId: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, rollupFunctionName: true, schemaId: true, scope: true, transferLogTableId: true, transferLogTableName: true, usageSummaryTableId: true, usageSummaryTableName: true } }).execute(); // Create -const created = await db.transferLogModule.create({ data: { actorFkTableId: '', apiName: '', databaseId: '', entityField: '', entityFkTableId: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', retention: '', schemaId: '', scope: '', transferLogTableId: '', transferLogTableName: '', usageSummaryTableId: '', usageSummaryTableName: '' }, select: { id: true } }).execute(); +const created = await db.transferLogModule.create({ data: { apiName: '', databaseId: '', entityField: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', retention: '', rollupFunctionName: '', schemaId: '', scope: '', transferLogTableId: '', transferLogTableName: '', usageSummaryTableId: '', usageSummaryTableName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.transferLogModule.update({ where: { id: '' }, data: { actorFkTableId: '' }, select: { id: true } }).execute(); +const updated = await db.transferLogModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); // Delete const deleted = await db.transferLogModule.delete({ where: { id: '' } }).execute(); @@ -3616,8 +3958,10 @@ CRUD operations for UserAuthModule records. | `forgotPasswordFunction` | String | Yes | | `id` | UUID | No | | `privateApiName` | String | Yes | +| `privateSchemaId` | UUID | Yes | | `requestCrossOriginTokenFunction` | String | Yes | | `resetPasswordFunction` | String | Yes | +| `revokeSessionTreeFunction` | String | Yes | | `schemaId` | UUID | Yes | | `secretsTableId` | UUID | Yes | | `sendAccountDeletionEmailFunction` | String | Yes | @@ -3629,6 +3973,7 @@ CRUD operations for UserAuthModule records. | `signInFunction` | String | Yes | | `signOutFunction` | String | Yes | | `signUpFunction` | String | Yes | +| `sweepExpiredSessionsFunction` | String | Yes | | `usersTableId` | UUID | Yes | | `verifyEmailFunction` | String | Yes | | `verifyPasswordFunction` | String | Yes | @@ -3637,13 +3982,13 @@ CRUD operations for UserAuthModule records. ```typescript // List all userAuthModule records -const items = await db.userAuthModule.findMany({ select: { apiName: true, auditsTableId: true, auditsTableName: true, checkPasswordFunction: true, databaseId: true, deleteAccountFunction: true, emailsTableId: true, encryptedTableId: true, extendTokenExpires: true, forgotPasswordFunction: true, id: true, privateApiName: true, requestCrossOriginTokenFunction: true, resetPasswordFunction: true, schemaId: true, secretsTableId: true, sendAccountDeletionEmailFunction: true, sendVerificationEmailFunction: true, sessionCredentialsTableId: true, sessionsTableId: true, setPasswordFunction: true, signInCrossOriginFunction: true, signInFunction: true, signOutFunction: true, signUpFunction: true, usersTableId: true, verifyEmailFunction: true, verifyPasswordFunction: true } }).execute(); +const items = await db.userAuthModule.findMany({ select: { apiName: true, auditsTableId: true, auditsTableName: true, checkPasswordFunction: true, databaseId: true, deleteAccountFunction: true, emailsTableId: true, encryptedTableId: true, extendTokenExpires: true, forgotPasswordFunction: true, id: true, privateApiName: true, privateSchemaId: true, requestCrossOriginTokenFunction: true, resetPasswordFunction: true, revokeSessionTreeFunction: true, schemaId: true, secretsTableId: true, sendAccountDeletionEmailFunction: true, sendVerificationEmailFunction: true, sessionCredentialsTableId: true, sessionsTableId: true, setPasswordFunction: true, signInCrossOriginFunction: true, signInFunction: true, signOutFunction: true, signUpFunction: true, sweepExpiredSessionsFunction: true, usersTableId: true, verifyEmailFunction: true, verifyPasswordFunction: true } }).execute(); // Get one by id -const item = await db.userAuthModule.findOne({ id: '', select: { apiName: true, auditsTableId: true, auditsTableName: true, checkPasswordFunction: true, databaseId: true, deleteAccountFunction: true, emailsTableId: true, encryptedTableId: true, extendTokenExpires: true, forgotPasswordFunction: true, id: true, privateApiName: true, requestCrossOriginTokenFunction: true, resetPasswordFunction: true, schemaId: true, secretsTableId: true, sendAccountDeletionEmailFunction: true, sendVerificationEmailFunction: true, sessionCredentialsTableId: true, sessionsTableId: true, setPasswordFunction: true, signInCrossOriginFunction: true, signInFunction: true, signOutFunction: true, signUpFunction: true, usersTableId: true, verifyEmailFunction: true, verifyPasswordFunction: true } }).execute(); +const item = await db.userAuthModule.findOne({ id: '', select: { apiName: true, auditsTableId: true, auditsTableName: true, checkPasswordFunction: true, databaseId: true, deleteAccountFunction: true, emailsTableId: true, encryptedTableId: true, extendTokenExpires: true, forgotPasswordFunction: true, id: true, privateApiName: true, privateSchemaId: true, requestCrossOriginTokenFunction: true, resetPasswordFunction: true, revokeSessionTreeFunction: true, schemaId: true, secretsTableId: true, sendAccountDeletionEmailFunction: true, sendVerificationEmailFunction: true, sessionCredentialsTableId: true, sessionsTableId: true, setPasswordFunction: true, signInCrossOriginFunction: true, signInFunction: true, signOutFunction: true, signUpFunction: true, sweepExpiredSessionsFunction: true, usersTableId: true, verifyEmailFunction: true, verifyPasswordFunction: true } }).execute(); // Create -const created = await db.userAuthModule.create({ data: { apiName: '', auditsTableId: '', auditsTableName: '', checkPasswordFunction: '', databaseId: '', deleteAccountFunction: '', emailsTableId: '', encryptedTableId: '', extendTokenExpires: '', forgotPasswordFunction: '', privateApiName: '', requestCrossOriginTokenFunction: '', resetPasswordFunction: '', schemaId: '', secretsTableId: '', sendAccountDeletionEmailFunction: '', sendVerificationEmailFunction: '', sessionCredentialsTableId: '', sessionsTableId: '', setPasswordFunction: '', signInCrossOriginFunction: '', signInFunction: '', signOutFunction: '', signUpFunction: '', usersTableId: '', verifyEmailFunction: '', verifyPasswordFunction: '' }, select: { id: true } }).execute(); +const created = await db.userAuthModule.create({ data: { apiName: '', auditsTableId: '', auditsTableName: '', checkPasswordFunction: '', databaseId: '', deleteAccountFunction: '', emailsTableId: '', encryptedTableId: '', extendTokenExpires: '', forgotPasswordFunction: '', privateApiName: '', privateSchemaId: '', requestCrossOriginTokenFunction: '', resetPasswordFunction: '', revokeSessionTreeFunction: '', schemaId: '', secretsTableId: '', sendAccountDeletionEmailFunction: '', sendVerificationEmailFunction: '', sessionCredentialsTableId: '', sessionsTableId: '', setPasswordFunction: '', signInCrossOriginFunction: '', signInFunction: '', signOutFunction: '', signUpFunction: '', sweepExpiredSessionsFunction: '', usersTableId: '', verifyEmailFunction: '', verifyPasswordFunction: '' }, select: { id: true } }).execute(); // Update const updated = await db.userAuthModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -3964,7 +4309,7 @@ const deleted = await db.webhookModule.delete({ where: { id: '' } }).execu ### `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. +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). A table entry either names its table (table_name plus optional schema_name) or references one an installed module generated ("module": {"type": "agent", "scope": "org", "table": "message"}), which resolves through the module row's recorded table ids and raises when it matches nothing instead of creating an empty table. After provisioning, optional smart_tags (jsonb object) on the table entry are applied via metaschema.append_table_smart_tags(), and optional smart_tags on individual field entries are applied via metaschema.append_field_smart_tags(). (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] — resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID on success, NULL on failure. - **Type:** mutation - **Arguments:** @@ -3994,10 +4339,11 @@ const result = await db.mutation.copyTemplateToBlueprint({ input: { databaseId: ### `db.mutation.provisionBucket` -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. +Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. - **Type:** mutation - **Arguments:** diff --git a/sdk/constructive-sdk/src/modules/orm/index.ts b/sdk/constructive-sdk/src/modules/orm/index.ts index 249a7e5114..b65ba3f129 100644 --- a/sdk/constructive-sdk/src/modules/orm/index.ts +++ b/sdk/constructive-sdk/src/modules/orm/index.ts @@ -15,8 +15,8 @@ import { BlueprintConstructionModel } from './models/blueprintConstruction'; import { BlueprintTemplateModel } from './models/blueprintTemplate'; import { CapabilitiesModuleModel } from './models/capabilitiesModule'; import { CatalogModuleModel } from './models/catalogModule'; +import { ClusterModuleModel } from './models/clusterModule'; 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'; @@ -43,16 +43,19 @@ import { FunctionModuleModel } from './models/functionModule'; import { GraphExecutionModuleModel } from './models/graphExecutionModule'; import { GraphModuleModel } from './models/graphModule'; import { HierarchyModuleModel } from './models/hierarchyModule'; -import { HttpRouteModuleModel } from './models/httpRouteModule'; import { I18NModuleModel } from './models/i18NModule'; import { IdentityProvidersModuleModel } from './models/identityProvidersModule'; +import { ImageModuleModel } from './models/imageModule'; import { InferenceLogModuleModel } from './models/inferenceLogModule'; import { InfraConfigModuleModel } from './models/infraConfigModule'; import { InfraSecretsModuleModel } from './models/infraSecretsModule'; import { IntegrationProvidersModuleModel } from './models/integrationProvidersModule'; +import { InternalConfigModuleModel } from './models/internalConfigModule'; import { InternalSecretsModuleModel } from './models/internalSecretsModule'; import { InvitesModuleModel } from './models/invitesModule'; +import { K8sAdmissionModuleModel } from './models/k8sAdmissionModule'; import { LimitsModuleModel } from './models/limitsModule'; +import { MachineModuleModel } from './models/machineModule'; import { MembershipTypesModuleModel } from './models/membershipTypesModule'; import { MembershipsModuleModel } from './models/membershipsModule'; import { MerkleStoreModuleModel } from './models/merkleStoreModule'; @@ -67,7 +70,9 @@ import { ProfilesModuleModel } from './models/profilesModule'; import { RateLimitMetersModuleModel } from './models/rateLimitMetersModule'; import { RateLimitsModuleModel } from './models/rateLimitsModule'; import { RealtimeModuleModel } from './models/realtimeModule'; +import { RefusalLogModuleModel } from './models/refusalLogModule'; import { RelationProvisionModel } from './models/relationProvision'; +import { RepositoryModuleModel } from './models/repositoryModule'; import { ResourceModuleModel } from './models/resourceModule'; import { RlsModuleModel } from './models/rlsModule'; import { RouteModuleModel } from './models/routeModule'; @@ -131,8 +136,8 @@ export function createClient(config: OrmClientConfig) { blueprintTemplate: new BlueprintTemplateModel(client), capabilitiesModule: new CapabilitiesModuleModel(client), catalogModule: new CatalogModuleModel(client), + clusterModule: new ClusterModuleModel(client), computeLogModule: new ComputeLogModuleModel(client), - configSecretsUserModule: new ConfigSecretsUserModuleModel(client), connectedAccountsModule: new ConnectedAccountsModuleModel(client), contentPresetModule: new ContentPresetModuleModel(client), cryptoAddressesModule: new CryptoAddressesModuleModel(client), @@ -159,16 +164,19 @@ export function createClient(config: OrmClientConfig) { graphExecutionModule: new GraphExecutionModuleModel(client), graphModule: new GraphModuleModel(client), hierarchyModule: new HierarchyModuleModel(client), - httpRouteModule: new HttpRouteModuleModel(client), i18NModule: new I18NModuleModel(client), identityProvidersModule: new IdentityProvidersModuleModel(client), + imageModule: new ImageModuleModel(client), inferenceLogModule: new InferenceLogModuleModel(client), infraConfigModule: new InfraConfigModuleModel(client), infraSecretsModule: new InfraSecretsModuleModel(client), integrationProvidersModule: new IntegrationProvidersModuleModel(client), + internalConfigModule: new InternalConfigModuleModel(client), internalSecretsModule: new InternalSecretsModuleModel(client), invitesModule: new InvitesModuleModel(client), + k8sAdmissionModule: new K8sAdmissionModuleModel(client), limitsModule: new LimitsModuleModel(client), + machineModule: new MachineModuleModel(client), membershipTypesModule: new MembershipTypesModuleModel(client), membershipsModule: new MembershipsModuleModel(client), merkleStoreModule: new MerkleStoreModuleModel(client), @@ -183,7 +191,9 @@ export function createClient(config: OrmClientConfig) { rateLimitMetersModule: new RateLimitMetersModuleModel(client), rateLimitsModule: new RateLimitsModuleModel(client), realtimeModule: new RealtimeModuleModel(client), + refusalLogModule: new RefusalLogModuleModel(client), relationProvision: new RelationProvisionModel(client), + repositoryModule: new RepositoryModuleModel(client), resourceModule: new ResourceModuleModel(client), rlsModule: new RlsModuleModel(client), routeModule: new RouteModuleModel(client), diff --git a/sdk/constructive-sdk/src/modules/orm/input-types.ts b/sdk/constructive-sdk/src/modules/orm/input-types.ts index 27a0a0b958..05438875c5 100644 --- a/sdk/constructive-sdk/src/modules/orm/input-types.ts +++ b/sdk/constructive-sdk/src/modules/orm/input-types.ts @@ -237,11 +237,17 @@ export interface AgentModule { apiName?: string | null; databaseId?: string | null; defaultCapabilities?: string[] | null; + defaultVisibility?: string | null; entityField?: string | null; entityTableId?: string | null; + eventTableId?: string | null; + eventTableName?: string | null; hasAgents?: boolean | null; + hasAttachments?: boolean | null; hasPlans?: boolean | null; + hasRepositoryResources?: boolean | null; hasResources?: boolean | null; + hasRuns?: boolean | null; id: string; messageTableId?: string | null; messageTableName?: string | null; @@ -258,16 +264,21 @@ export interface AgentModule { promptsTableName?: string | null; provisions?: Record | null; publicSchemaName?: string | null; + resourceRepositoryTableId?: string | null; + resourceRepositoryTableName?: string | null; resourceTableId?: string | null; resourceTableName?: string | null; resources?: Record | null; + runTableId?: string | null; + runTableName?: string | null; schemaId?: string | null; scope?: string | null; - shared?: boolean | null; taskTableId?: string | null; taskTableName?: string | null; threadTableId?: string | null; threadTableName?: string | null; + workspaceTableId?: string | null; + workspaceTableName?: string | null; } export interface ApiSurfaceModule { apiName?: string | null; @@ -297,6 +308,7 @@ export interface AppModule { apiName?: string | null; appComponentsTableId?: string | null; appComponentsTableName?: string | null; + appStoreIdentitiesTableName?: string | null; appsTableId?: string | null; appsTableName?: string | null; catalogModuleId?: string | null; @@ -346,9 +358,12 @@ export interface BillingModule { sweepExpiredSubscriptionsFunction?: string | null; } export interface BillingProviderModule { + activatePlanSubscriptionFunction?: string | null; apiName?: string | null; billingCustomersTableId?: string | null; billingCustomersTableName?: string | null; + billingDisputesTableId?: string | null; + billingDisputesTableName?: string | null; billingInvoicesTableId?: string | null; billingInvoicesTableName?: string | null; billingPricesTableId?: string | null; @@ -362,6 +377,12 @@ export interface BillingProviderModule { billingWebhookEventsTableId?: string | null; billingWebhookEventsTableName?: string | null; databaseId?: string | null; + getActivePlanPricingFunction?: string | null; + getBillingCustomerFunction?: string | null; + getBillingPriceFunction?: string | null; + getBillingProductFunction?: string | null; + getBillingSubscriptionFunction?: string | null; + getFallbackFreePlanFunction?: string | null; id: string; listPendingUsageSyncFunction?: string | null; markUsageSyncedFunction?: string | null; @@ -372,9 +393,15 @@ export interface BillingProviderModule { processBillingEventFunction?: string | null; productsTableId?: string | null; provider?: string | null; + recordDisputeFunction?: string | null; recordRefundFunction?: string | null; schemaId?: string | null; subscriptionsTableId?: string | null; + sweepOverdueSubscriptionsFunction?: string | null; + upsertBillingCustomerFunction?: string | null; + upsertBillingPriceFunction?: string | null; + upsertBillingProductFunction?: string | null; + upsertBillingSubscriptionFunction?: 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. */ @@ -500,6 +527,8 @@ export interface CatalogModule { apiName?: string | null; apisTableId?: string | null; apisTableName?: string | null; + appStoreIdentitiesTableId?: string | null; + appStoreIdentitiesTableName?: string | null; appsTableId?: string | null; appsTableName?: string | null; bindingsTableId?: string | null; @@ -514,12 +543,18 @@ export interface CatalogModule { functionsTableId?: string | null; functionsTableName?: string | null; id: string; + imagesTableId?: string | null; + imagesTableName?: string | null; + managedDomainsTableId?: string | null; + managedDomainsTableName?: string | null; namespacesTableId?: string | null; namespacesTableName?: string | null; policies?: Record | null; privateApiName?: string | null; provisions?: Record | null; publicSchemaName?: string | null; + redirectsTableId?: string | null; + redirectsTableName?: string | null; resourceDefinitionsTableId?: string | null; resourceDefinitionsTableName?: string | null; resourceInstallationsTableId?: string | null; @@ -539,37 +574,55 @@ export interface CatalogModule { sitesWebConfigTableId?: string | null; sitesWebConfigTableName?: string | null; } -export interface ComputeLogModule { - actorFkTableId?: string | null; +export interface ClusterModule { apiName?: string | null; - computeLogTableId?: string | null; - computeLogTableName?: string | null; + clusterEventsTableId?: string | null; + clusterEventsTableName?: string | null; + clustersTableId?: string | null; + clustersTableName?: string | null; databaseId?: string | null; + databasePlacementsTableId?: string | null; + databasePlacementsTableName?: string | null; + databaseServersTableId?: string | null; + databaseServersTableName?: string | null; + defaultCapabilities?: string[] | null; entityField?: string | null; - entityFkTableId?: string | null; id: string; - interval?: string | null; + partitionInterval?: string | null; + physicalDatabasesTableId?: string | null; + physicalDatabasesTableName?: string | null; + policies?: Record | null; prefix?: string | null; premake?: number | null; privateApiName?: string | null; privateSchemaId?: string | null; privateSchemaName?: string | null; + provisions?: Record | null; publicSchemaName?: string | null; retention?: string | null; schemaId?: string | null; scope?: string | null; - usageSummaryTableId?: string | null; - usageSummaryTableName?: string | null; } -export interface ConfigSecretsUserModule { +export interface ComputeLogModule { apiName?: string | null; + computeLogTableId?: string | null; + computeLogTableName?: string | null; databaseId?: string | null; entityField?: string | null; id: string; + interval?: string | null; + prefix?: string | null; + premake?: number | null; privateApiName?: string | null; + privateSchemaId?: string | null; + privateSchemaName?: string | null; + publicSchemaName?: string | null; + retention?: string | null; + rollupFunctionName?: string | null; schemaId?: string | null; - tableId?: string | null; - tableName?: string | null; + scope?: string | null; + usageSummaryTableId?: string | null; + usageSummaryTableName?: string | null; } export interface ConnectedAccountsModule { apiName?: string | null; @@ -646,11 +699,13 @@ export interface DataCapabilitiesField { 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 */ async?: boolean | null; + /** The user whose identity is copied into the new database. Defaults to owner_id when NULL; set explicitly when owner_id is an organization */ + bootstrapActorId?: string | null; /** Error message from the most recent failed bootstrap attempt */ bootstrapError?: string | null; /** Status of the deferred owner bootstrap job: not_requested, pending, completed, or failed */ bootstrapStatus?: string | null; - /** When true, copies the owner user and password hash from source database to the newly provisioned database */ + /** When true, copies the bootstrap user and password hash from source database to the newly provisioned database */ bootstrapUser?: boolean | null; completedAt?: string | null; createdAt?: string | null; @@ -668,7 +723,7 @@ export interface DatabaseProvisionModule { modules?: Record | null; /** Additional configuration options for provisioning */ options?: Record | null; - /** UUID of the user who owns this database */ + /** UUID of the entity that owns this database: a user, or an organization for an org-owned request */ ownerId?: string | null; /** The database the owner user is copied from during bootstrap (captured from JWT context at provision time) */ sourceDatabaseId?: string | null; @@ -1272,6 +1327,7 @@ export interface FunctionModule { schedulesTableId?: string | null; schemaId?: string | null; scope?: string | null; + storageKey?: string | null; } export interface GraphExecutionModule { apiName?: string | null; @@ -1343,29 +1399,6 @@ export interface HierarchyModule { sprtTableName?: string | null; usersTableId?: string | null; } -export interface HttpRouteModule { - apiName?: string | null; - databaseId?: string | null; - defaultCapabilities?: string[] | null; - entityField?: string | null; - entityTableId?: string | null; - functionModuleId?: string | null; - httpRoutesTableId?: string | null; - httpRoutesTableName?: string | null; - id: string; - policies?: Record | null; - prefix?: string | null; - privateApiName?: string | null; - privateSchemaId?: string | null; - privateSchemaName?: string | null; - provisions?: Record | null; - publicSchemaName?: string | null; - resolverFunctionName?: string | null; - resourceModuleId?: string | null; - schemaId?: string | null; - scope?: string | null; - storageModuleId?: string | null; -} export interface I18NModule { apiName?: string | null; databaseId?: string | null; @@ -1403,12 +1436,35 @@ export interface IdentityProvidersModule { tableId?: string | null; tableName?: string | null; } +export interface ImageModule { + apiName?: string | null; + databaseId?: string | null; + defaultCapabilities?: string[] | null; + entityField?: string | null; + entityTableId?: string | null; + id: string; + imageGrantsTableId?: string | null; + imageGrantsTableName?: string | null; + imagesTableId?: string | null; + imagesTableName?: string | null; + policies?: Record | null; + prefix?: string | null; + privateApiName?: string | null; + privateSchemaId?: string | null; + privateSchemaName?: string | null; + provisions?: Record | null; + publicSchemaName?: string | null; + registriesTableId?: string | null; + registriesTableName?: string | null; + registryGrantsTableId?: string | null; + registryGrantsTableName?: string | null; + schemaId?: string | null; + scope?: string | null; +} export interface InferenceLogModule { - actorFkTableId?: string | null; apiName?: string | null; databaseId?: string | null; entityField?: string | null; - entityFkTableId?: string | null; id: string; inferenceLogTableId?: string | null; inferenceLogTableName?: string | null; @@ -1420,6 +1476,7 @@ export interface InferenceLogModule { privateSchemaName?: string | null; publicSchemaName?: string | null; retention?: string | null; + rollupFunctionName?: string | null; schemaId?: string | null; scope?: string | null; usageSummaryTableId?: string | null; @@ -1486,6 +1543,25 @@ export interface IntegrationProvidersModule { tableId?: string | null; tableName?: string | null; } +/** Scope-aware plaintext internal config store. No namespace_module dependency and no K8s synchronization: values are read from the database at invocation time. Configuration that must be projected into a Kubernetes ConfigMap belongs in infra_config_module. */ +export interface InternalConfigModule { + apiName?: string | null; + databaseId?: string | null; + entityField?: string | null; + entityTableId?: string | null; + id: string; + internalConfigTableId?: string | null; + internalConfigTableName?: string | null; + policies?: Record | null; + prefix?: string | null; + privateApiName?: string | null; + privateSchemaId?: string | null; + privateSchemaName?: string | null; + provisions?: Record | null; + publicSchemaName?: string | null; + schemaId?: string | null; + scope?: string | null; +} /** App-scoped PGP-encrypted internal secrets store. No namespace_module dependency and no K8s synchronization. Used by identity_providers_module for OAuth2 client_secret storage. */ export interface InternalSecretsModule { apiName?: string | null; @@ -1526,6 +1602,27 @@ export interface InvitesModule { submitInviteCodeFunction?: string | null; usersTableId?: string | null; } +/** Provisions the platform-managed Kubernetes admission catalogs: a kinds table and a spec-rules table, Merkle-versioned through the referenced merkle_store_module, whose rows the generated admission gate on resources/resource_definitions reads. Writes are platform-admin and human-only; every scope reads the one catalog. */ +export interface K8sAdmissionModule { + apiName?: string | null; + createdAt?: string | null; + databaseId?: string | null; + entityTableId?: string | null; + id: string; + k8sResourceKindsTableId?: string | null; + k8sSpecRulesTableId?: 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 LimitsModule { actorTableId?: string | null; aggregateTableId?: string | null; @@ -1566,6 +1663,32 @@ export interface LimitsModule { tableId?: string | null; tableName?: string | null; } +export interface MachineModule { + apiName?: string | null; + databaseId?: string | null; + defaultCapabilities?: string[] | null; + entityField?: string | null; + entityTableId?: string | null; + id: string; + machineMessagesTableId?: string | null; + machineMessagesTableName?: string | null; + machineSessionsTableId?: string | null; + machineSessionsTableName?: string | null; + machinesTableId?: string | null; + machinesTableName?: string | null; + partitionInterval?: string | null; + policies?: Record | null; + prefix?: string | null; + premake?: number | null; + privateApiName?: string | null; + privateSchemaId?: string | null; + privateSchemaName?: string | null; + provisions?: Record | null; + publicSchemaName?: string | null; + retention?: string | null; + schemaId?: string | null; + scope?: string | null; +} export interface MembershipTypesModule { databaseId?: string | null; id: string; @@ -1624,6 +1747,7 @@ export interface MerkleStoreModule { createdAt?: string | null; databaseId?: string | null; entityField?: string | null; + entityTableId?: string | null; functionPrefix?: string | null; id: string; objectTableId?: string | null; @@ -1716,12 +1840,17 @@ export interface PagesModule { pagesTableId?: string | null; policies?: Record | null; prefix?: string | null; + previewCommitFunctionName?: string | null; + previewSetFunctionName?: string | null; + previewTokenMintFunctionName?: string | null; + previewTokenVerifierFunctionName?: string | null; privateApiName?: string | null; privateSchemaId?: string | null; privateSchemaName?: string | null; provisions?: Record | null; publicSchemaId?: string | null; publicSchemaName?: string | null; + releaseManifestFunctionName?: string | null; scope?: string | null; siteSurfaceModuleId?: string | null; sitesTableId?: string | null; @@ -1776,10 +1905,12 @@ export interface PrincipalAuthModule { principalScopeOverridesTableId?: string | null; principalsTableId?: string | null; principalsTableName?: string | null; + privateSchemaId?: string | null; revokeOrgApiKeyFunction?: string | null; schemaId?: string | null; sessionCredentialsTableId?: string | null; sessionsTableId?: string | null; + sweepExpiredPrincipalsFunction?: string | null; usersTableId?: string | null; } export interface ProfilesModule { @@ -1857,6 +1988,31 @@ export interface RealtimeModule { sourceRegistryTableId?: string | null; subscriptionsSchemaId?: string | null; } +export interface RefusalLogModule { + apiName?: string | null; + databaseId?: string | null; + entityField?: string | null; + id: string; + logInterval?: string | null; + logPremake?: number | null; + logRetention?: string | null; + logTableId?: string | null; + logTableName?: string | null; + prefix?: string | null; + privateApiName?: string | null; + privateSchemaId?: string | null; + privateSchemaName?: string | null; + publicSchemaName?: string | null; + recordRefusalsFunction?: string | null; + rollupRefusalUsageSummaryFunction?: string | null; + schemaId?: string | null; + scope?: string | null; + summaryInterval?: string | null; + summaryPremake?: number | null; + summaryRetention?: string | null; + summaryTableId?: string | null; + summaryTableName?: string | null; +} /** * Provisions relational structure between tables. Supports four relation types: * - RelationBelongsTo: adds a FK field on the source table referencing the target table (child perspective: "tasks belongs to projects" -> tasks.project_id). @@ -1990,8 +2146,52 @@ export interface RelationProvision { */ useCompositeKey?: boolean | null; } +export interface RepositoryModule { + apiName?: string | null; + buildStepsTableId?: string | null; + buildStepsTableName?: string | null; + buildsTableId?: string | null; + buildsTableName?: string | null; + databaseId?: string | null; + defaultCapabilities?: string[] | null; + entityField?: string | null; + entityTableId?: string | null; + hasAttachments?: boolean | null; + hasBuilds?: boolean | null; + id: string; + policies?: Record | null; + prefix?: string | null; + privateApiName?: string | null; + privateSchemaId?: string | null; + privateSchemaName?: string | null; + proposalCommentsTableId?: string | null; + proposalCommentsTableName?: string | null; + proposalFileViewsTableId?: string | null; + proposalFileViewsTableName?: string | null; + proposalReactionsTableId?: string | null; + proposalReactionsTableName?: string | null; + proposalReviewsTableId?: string | null; + proposalReviewsTableName?: string | null; + proposalsTableId?: string | null; + proposalsTableName?: string | null; + provisions?: Record | null; + publicSchemaName?: string | null; + repositoriesTableId?: string | null; + repositoriesTableName?: string | null; + repositoryEventsTableId?: string | null; + repositoryEventsTableName?: string | null; + repositoryRequiredChecksTableId?: string | null; + repositoryRequiredChecksTableName?: string | null; + schemaId?: string | null; + scope?: string | null; + search?: Record | null; + workflowsTableId?: string | null; + workflowsTableName?: string | null; +} export interface ResourceModule { apiName?: string | null; + builderBindingsTableId?: string | null; + builderBindingsTableName?: string | null; databaseId?: string | null; defaultCapabilities?: string[] | null; entityField?: string | null; @@ -2007,6 +2207,8 @@ export interface ResourceModule { privateSchemaName?: string | null; provisions?: Record | null; publicSchemaName?: string | null; + registryBindingsTableId?: string | null; + registryBindingsTableName?: string | null; requirementsStateViewName?: string | null; resolvedRequirementsViewName?: string | null; resourceBillingRollupFunction?: string | null; @@ -2063,6 +2265,8 @@ export interface RouteModule { privateSchemaName?: string | null; provisions?: Record | null; publicSchemaName?: string | null; + redirectsTableId?: string | null; + redirectsTableName?: string | null; resolverFunctionName?: string | null; routeBindingsTableId?: string | null; routeBindingsTableName?: string | null; @@ -2070,6 +2274,8 @@ export interface RouteModule { routesTableName?: string | null; schemaId?: string | null; scope?: string | null; + servingSiteField?: string | null; + storageKey?: string | null; } export interface ScopeTypesModule { databaseId?: string | null; @@ -2078,7 +2284,7 @@ export interface ScopeTypesModule { 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. */ +/** 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. The target table is addressed by table_id, by table_name, or symbolically by a module reference in module. A row that lists a concern in owns[] replaces that concern on the target table instead of composing with what is already there. */ export interface SecureTableProvision { /** The database this provision belongs to. Required. */ databaseId?: string | null; @@ -2088,10 +2294,14 @@ export interface SecureTableProvision { grants?: Record | null; /** Unique identifier for this provision row. */ id: string; + /** Module reference naming a module-generated target table symbolically, instead of by table_id or table_name: a jsonb object with keys "type" (text, required — the module type, e.g. "image"), "table" (text, required — the module's own table key, e.g. "registries"), "scope" (text, optional — the install scope) and "prefix" (text, optional — disambiguates multiple installs of the same module). Resolved through metaschema_modules_private.resolve_module_table(), so it raises the same errors blueprint module references do (BLUEPRINT_MODULE_REF_INVALID, BLUEPRINT_MODULE_NOT_INSTALLED, BLUEPRINT_MODULE_REF_AMBIGUOUS, BLUEPRINT_MODULE_TABLE_UNKNOWN). Mutually exclusive with table_name and with an explicit table_id. Example: {"type":"image","scope":"org","table":"registries"}. Defaults to NULL. */ + module?: Record | null; /** Array of node objects to apply to the table. Each element is a jsonb object with a required "$type" key (one of: DataId, DataDirectOwner, DataEntityMembership, DataOwnershipInEntity, DataTimestamps, DataPeoplestamps, DataPublishable, DataSoftDelete, DataEmbedding, DataFullTextSearch, DataSlug, etc.) and an optional "data" key containing generator-specific configuration. Supports multiple nodes per row, matching the blueprint definition format. Example: [{"$type": "DataId"}, {"$type": "DataTimestamps"}, {"$type": "DataDirectOwner", "data": {"owner_field_name": "author_id"}}]. Defaults to '[]' (no node processing). */ nodes?: Record | null; /** Output column populated by the trigger after field creation. Contains the UUIDs of the metaschema fields created on the target table by this provision row's nodes. NULL when nodes is empty or before the trigger runs. Callers should not set this directly. */ outFields?: string[] | null; + /** Security concerns this row owns on the target table, as a jsonb array of "grants" and/or "policies". A listed concern is replaced: the target table's existing grants (or its non-derived policies) are dropped before this row's grants[] (or policies[]) are applied, so the row's array is the table's whole set — this is how a module-generated table's default security is superseded rather than layered on. An unlisted concern composes, which is the default and the historical behavior. A concern may only be owned when this row supplies a non-empty array for it; owning a concern with nothing to install would leave the table with RLS enabled and no policy, and raises instead. Example: ["policies","grants"]. Defaults to '[]' (compose everything). */ + owns?: Record | null; /** Array of policy objects to create on the target table. Each element is a jsonb object with keys: "$type" (text, required — the Authz* policy generator type, e.g. AuthzEntityMembership, AuthzMembership, AuthzDirectOwner, AuthzPublishable, AuthzAllowAll), "data" (jsonb, optional — opaque configuration passed to metaschema.create_policy(), structure varies by type), "privileges" (text[], optional — privileges the policy applies to, e.g. ["select","insert"]; if omitted, derived from grants[] privilege verbs), "policy_role" (text, optional — role the policy targets; if omitted, falls back to first role in first grants[] entry, or 'authenticated' if no grants), "permissive" (boolean, optional — PERMISSIVE or RESTRICTIVE; defaults to true), "policy_name" (text, optional — custom suffix for the generated policy name; if omitted, auto-derived from $type by stripping Authz prefix). Supports multiple policies per row. Example: [{"$type": "AuthzEntityMembership", "data": {"entity_field": "owner_id", "membership_type": 3}, "privileges": ["select", "insert"]}, {"$type": "AuthzDirectOwner", "data": {"entity_field": "actor_id"}, "privileges": ["update", "delete"]}]. Defaults to '[]' (no policies created). When non-empty, the trigger automatically enables RLS. */ policies?: Record | null; /** Target schema for the table. Defaults to uuid_nil(); the trigger resolves this to the app_public schema if not explicitly provided. */ @@ -2153,19 +2363,20 @@ export interface SiteSurfaceModule { siteMetadataTableName?: string | null; siteModulesTableId?: string | null; siteModulesTableName?: string | null; + siteReleasesTableId?: string | null; + siteReleasesTableName?: string | null; siteThemesTableId?: string | null; siteThemesTableName?: string | null; siteWebConfigTableId?: string | null; siteWebConfigTableName?: string | null; sitesTableId?: string | null; sitesTableName?: string | null; + storageKey?: string | null; } export interface StorageLogModule { - actorFkTableId?: string | null; apiName?: string | null; databaseId?: string | null; entityField?: string | null; - entityFkTableId?: string | null; id: string; interval?: string | null; prefix?: string | null; @@ -2175,6 +2386,7 @@ export interface StorageLogModule { privateSchemaName?: string | null; publicSchemaName?: string | null; retention?: string | null; + rollupFunctionName?: string | null; schemaId?: string | null; scope?: string | null; storageLogTableId?: string | null; @@ -2207,6 +2419,7 @@ export interface StorageModule { hasPathShares?: boolean | null; hasVersioning?: boolean | null; id: string; + key?: string | null; maxBulkFiles?: number | null; maxBulkTotalSize?: string | null; maxFilenameLength?: number | null; @@ -2226,11 +2439,9 @@ export interface StorageModule { uploadUrlExpirySeconds?: number | null; } export interface TransferLogModule { - actorFkTableId?: string | null; apiName?: string | null; databaseId?: string | null; entityField?: string | null; - entityFkTableId?: string | null; id: string; interval?: string | null; prefix?: string | null; @@ -2240,6 +2451,7 @@ export interface TransferLogModule { privateSchemaName?: string | null; publicSchemaName?: string | null; retention?: string | null; + rollupFunctionName?: string | null; schemaId?: string | null; scope?: string | null; transferLogTableId?: string | null; @@ -2260,8 +2472,10 @@ export interface UserAuthModule { forgotPasswordFunction?: string | null; id: string; privateApiName?: string | null; + privateSchemaId?: string | null; requestCrossOriginTokenFunction?: string | null; resetPasswordFunction?: string | null; + revokeSessionTreeFunction?: string | null; schemaId?: string | null; secretsTableId?: string | null; sendAccountDeletionEmailFunction?: string | null; @@ -2273,6 +2487,7 @@ export interface UserAuthModule { signInFunction?: string | null; signOutFunction?: string | null; signUpFunction?: string | null; + sweepExpiredSessionsFunction?: string | null; usersTableId?: string | null; verifyEmailFunction?: string | null; verifyPasswordFunction?: string | null; @@ -2428,8 +2643,8 @@ export interface CatalogModuleRelations { routeModules?: ConnectionResult; siteSurfaceModules?: ConnectionResult; } +export interface ClusterModuleRelations {} export interface ComputeLogModuleRelations {} -export interface ConfigSecretsUserModuleRelations {} export interface ConnectedAccountsModuleRelations {} export interface ContentPresetModuleRelations { merkleStoreModule?: MerkleStoreModule | null; @@ -2472,7 +2687,6 @@ export interface FunctionInvocationModuleRelations { } export interface FunctionModuleRelations { functionDeploymentModules?: ConnectionResult; - httpRouteModules?: ConnectionResult; webhookModules?: ConnectionResult; } export interface GraphExecutionModuleRelations { @@ -2483,28 +2697,30 @@ export interface GraphModuleRelations { graphExecutionModules?: ConnectionResult; } export interface HierarchyModuleRelations {} -export interface HttpRouteModuleRelations { - functionModule?: FunctionModule | null; - resourceModule?: ResourceModule | null; - storageModule?: StorageModule | null; -} export interface I18NModuleRelations {} export interface IdentityProvidersModuleRelations {} +export interface ImageModuleRelations {} export interface InferenceLogModuleRelations {} export interface InfraConfigModuleRelations {} export interface InfraSecretsModuleRelations { webhookModules?: ConnectionResult; } export interface IntegrationProvidersModuleRelations {} +export interface InternalConfigModuleRelations {} export interface InternalSecretsModuleRelations {} export interface InvitesModuleRelations {} +export interface K8sAdmissionModuleRelations { + merkleStoreModule?: MerkleStoreModule | null; +} export interface LimitsModuleRelations {} +export interface MachineModuleRelations {} export interface MembershipTypesModuleRelations {} export interface MembershipsModuleRelations {} export interface MerkleStoreModuleRelations { contentPresetModules?: ConnectionResult; dbPresetModules?: ConnectionResult; graphModules?: ConnectionResult; + k8sAdmissionModules?: ConnectionResult; pagesModules?: ConnectionResult; resourceModules?: ConnectionResult; } @@ -2526,11 +2742,12 @@ export interface ProfilesModuleRelations {} export interface RateLimitMetersModuleRelations {} export interface RateLimitsModuleRelations {} export interface RealtimeModuleRelations {} +export interface RefusalLogModuleRelations {} export interface RelationProvisionRelations {} +export interface RepositoryModuleRelations {} export interface ResourceModuleRelations { merkleStoreModule?: MerkleStoreModule | null; namespaceModule?: NamespaceModule | null; - httpRouteModules?: ConnectionResult; } export interface RlsModuleRelations {} export interface RouteModuleRelations { @@ -2549,7 +2766,6 @@ export interface SiteSurfaceModuleRelations { export interface StorageLogModuleRelations {} export interface StorageModuleRelations { fileRefFields?: ConnectionResult; - httpRouteModules?: ConnectionResult; } export interface TransferLogModuleRelations {} export interface UserAuthModuleRelations {} @@ -2579,9 +2795,8 @@ export type BlueprintConstructionWithRelations = BlueprintConstruction & export type BlueprintTemplateWithRelations = BlueprintTemplate & BlueprintTemplateRelations; export type CapabilitiesModuleWithRelations = CapabilitiesModule & CapabilitiesModuleRelations; export type CatalogModuleWithRelations = CatalogModule & CatalogModuleRelations; +export type ClusterModuleWithRelations = ClusterModule & ClusterModuleRelations; export type ComputeLogModuleWithRelations = ComputeLogModule & ComputeLogModuleRelations; -export type ConfigSecretsUserModuleWithRelations = ConfigSecretsUserModule & - ConfigSecretsUserModuleRelations; export type ConnectedAccountsModuleWithRelations = ConnectedAccountsModule & ConnectedAccountsModuleRelations; export type ContentPresetModuleWithRelations = ContentPresetModule & ContentPresetModuleRelations; @@ -2617,19 +2832,23 @@ export type GraphExecutionModuleWithRelations = GraphExecutionModule & GraphExecutionModuleRelations; export type GraphModuleWithRelations = GraphModule & GraphModuleRelations; export type HierarchyModuleWithRelations = HierarchyModule & HierarchyModuleRelations; -export type HttpRouteModuleWithRelations = HttpRouteModule & HttpRouteModuleRelations; export type I18NModuleWithRelations = I18NModule & I18NModuleRelations; export type IdentityProvidersModuleWithRelations = IdentityProvidersModule & IdentityProvidersModuleRelations; +export type ImageModuleWithRelations = ImageModule & ImageModuleRelations; export type InferenceLogModuleWithRelations = InferenceLogModule & InferenceLogModuleRelations; export type InfraConfigModuleWithRelations = InfraConfigModule & InfraConfigModuleRelations; export type InfraSecretsModuleWithRelations = InfraSecretsModule & InfraSecretsModuleRelations; export type IntegrationProvidersModuleWithRelations = IntegrationProvidersModule & IntegrationProvidersModuleRelations; +export type InternalConfigModuleWithRelations = InternalConfigModule & + InternalConfigModuleRelations; export type InternalSecretsModuleWithRelations = InternalSecretsModule & InternalSecretsModuleRelations; export type InvitesModuleWithRelations = InvitesModule & InvitesModuleRelations; +export type K8sAdmissionModuleWithRelations = K8sAdmissionModule & K8sAdmissionModuleRelations; export type LimitsModuleWithRelations = LimitsModule & LimitsModuleRelations; +export type MachineModuleWithRelations = MachineModule & MachineModuleRelations; export type MembershipTypesModuleWithRelations = MembershipTypesModule & MembershipTypesModuleRelations; export type MembershipsModuleWithRelations = MembershipsModule & MembershipsModuleRelations; @@ -2646,7 +2865,9 @@ export type RateLimitMetersModuleWithRelations = RateLimitMetersModule & RateLimitMetersModuleRelations; export type RateLimitsModuleWithRelations = RateLimitsModule & RateLimitsModuleRelations; export type RealtimeModuleWithRelations = RealtimeModule & RealtimeModuleRelations; +export type RefusalLogModuleWithRelations = RefusalLogModule & RefusalLogModuleRelations; export type RelationProvisionWithRelations = RelationProvision & RelationProvisionRelations; +export type RepositoryModuleWithRelations = RepositoryModule & RepositoryModuleRelations; export type ResourceModuleWithRelations = ResourceModule & ResourceModuleRelations; export type RlsModuleWithRelations = RlsModule & RlsModuleRelations; export type RouteModuleWithRelations = RouteModule & RouteModuleRelations; @@ -2679,11 +2900,17 @@ export type AgentModuleSelect = { apiName?: boolean; databaseId?: boolean; defaultCapabilities?: boolean; + defaultVisibility?: boolean; entityField?: boolean; entityTableId?: boolean; + eventTableId?: boolean; + eventTableName?: boolean; hasAgents?: boolean; + hasAttachments?: boolean; hasPlans?: boolean; + hasRepositoryResources?: boolean; hasResources?: boolean; + hasRuns?: boolean; id?: boolean; messageTableId?: boolean; messageTableName?: boolean; @@ -2700,16 +2927,21 @@ export type AgentModuleSelect = { promptsTableName?: boolean; provisions?: boolean; publicSchemaName?: boolean; + resourceRepositoryTableId?: boolean; + resourceRepositoryTableName?: boolean; resourceTableId?: boolean; resourceTableName?: boolean; resources?: boolean; + runTableId?: boolean; + runTableName?: boolean; schemaId?: boolean; scope?: boolean; - shared?: boolean; taskTableId?: boolean; taskTableName?: boolean; threadTableId?: boolean; threadTableName?: boolean; + workspaceTableId?: boolean; + workspaceTableName?: boolean; }; export type ApiSurfaceModuleSelect = { apiName?: boolean; @@ -2742,6 +2974,7 @@ export type AppModuleSelect = { apiName?: boolean; appComponentsTableId?: boolean; appComponentsTableName?: boolean; + appStoreIdentitiesTableName?: boolean; appsTableId?: boolean; appsTableName?: boolean; catalogModuleId?: boolean; @@ -2794,9 +3027,12 @@ export type BillingModuleSelect = { sweepExpiredSubscriptionsFunction?: boolean; }; export type BillingProviderModuleSelect = { + activatePlanSubscriptionFunction?: boolean; apiName?: boolean; billingCustomersTableId?: boolean; billingCustomersTableName?: boolean; + billingDisputesTableId?: boolean; + billingDisputesTableName?: boolean; billingInvoicesTableId?: boolean; billingInvoicesTableName?: boolean; billingPricesTableId?: boolean; @@ -2810,6 +3046,12 @@ export type BillingProviderModuleSelect = { billingWebhookEventsTableId?: boolean; billingWebhookEventsTableName?: boolean; databaseId?: boolean; + getActivePlanPricingFunction?: boolean; + getBillingCustomerFunction?: boolean; + getBillingPriceFunction?: boolean; + getBillingProductFunction?: boolean; + getBillingSubscriptionFunction?: boolean; + getFallbackFreePlanFunction?: boolean; id?: boolean; listPendingUsageSyncFunction?: boolean; markUsageSyncedFunction?: boolean; @@ -2820,9 +3062,15 @@ export type BillingProviderModuleSelect = { processBillingEventFunction?: boolean; productsTableId?: boolean; provider?: boolean; + recordDisputeFunction?: boolean; recordRefundFunction?: boolean; schemaId?: boolean; subscriptionsTableId?: boolean; + sweepOverdueSubscriptionsFunction?: boolean; + upsertBillingCustomerFunction?: boolean; + upsertBillingPriceFunction?: boolean; + upsertBillingProductFunction?: boolean; + upsertBillingSubscriptionFunction?: boolean; upsertInvoiceFunction?: boolean; }; export type BlueprintSelect = { @@ -2935,6 +3183,8 @@ export type CatalogModuleSelect = { apiName?: boolean; apisTableId?: boolean; apisTableName?: boolean; + appStoreIdentitiesTableId?: boolean; + appStoreIdentitiesTableName?: boolean; appsTableId?: boolean; appsTableName?: boolean; bindingsTableId?: boolean; @@ -2949,12 +3199,18 @@ export type CatalogModuleSelect = { functionsTableId?: boolean; functionsTableName?: boolean; id?: boolean; + imagesTableId?: boolean; + imagesTableName?: boolean; + managedDomainsTableId?: boolean; + managedDomainsTableName?: boolean; namespacesTableId?: boolean; namespacesTableName?: boolean; policies?: boolean; privateApiName?: boolean; provisions?: boolean; publicSchemaName?: boolean; + redirectsTableId?: boolean; + redirectsTableName?: boolean; resourceDefinitionsTableId?: boolean; resourceDefinitionsTableName?: boolean; resourceInstallationsTableId?: boolean; @@ -3004,37 +3260,55 @@ export type CatalogModuleSelect = { orderBy?: SiteSurfaceModuleOrderBy[]; }; }; -export type ComputeLogModuleSelect = { - actorFkTableId?: boolean; +export type ClusterModuleSelect = { apiName?: boolean; - computeLogTableId?: boolean; - computeLogTableName?: boolean; + clusterEventsTableId?: boolean; + clusterEventsTableName?: boolean; + clustersTableId?: boolean; + clustersTableName?: boolean; databaseId?: boolean; + databasePlacementsTableId?: boolean; + databasePlacementsTableName?: boolean; + databaseServersTableId?: boolean; + databaseServersTableName?: boolean; + defaultCapabilities?: boolean; entityField?: boolean; - entityFkTableId?: boolean; id?: boolean; - interval?: boolean; + partitionInterval?: boolean; + physicalDatabasesTableId?: boolean; + physicalDatabasesTableName?: boolean; + policies?: boolean; prefix?: boolean; premake?: boolean; privateApiName?: boolean; privateSchemaId?: boolean; privateSchemaName?: boolean; + provisions?: boolean; publicSchemaName?: boolean; retention?: boolean; schemaId?: boolean; scope?: boolean; - usageSummaryTableId?: boolean; - usageSummaryTableName?: boolean; }; -export type ConfigSecretsUserModuleSelect = { +export type ComputeLogModuleSelect = { apiName?: boolean; + computeLogTableId?: boolean; + computeLogTableName?: boolean; databaseId?: boolean; entityField?: boolean; id?: boolean; + interval?: boolean; + prefix?: boolean; + premake?: boolean; privateApiName?: boolean; + privateSchemaId?: boolean; + privateSchemaName?: boolean; + publicSchemaName?: boolean; + retention?: boolean; + rollupFunctionName?: boolean; schemaId?: boolean; - tableId?: boolean; - tableName?: boolean; + scope?: boolean; + usageSummaryTableId?: boolean; + usageSummaryTableName?: boolean; }; export type ConnectedAccountsModuleSelect = { apiName?: boolean; @@ -3115,6 +3389,7 @@ export type DataCapabilitiesFieldSelect = { }; export type DatabaseProvisionModuleSelect = { async?: boolean; + bootstrapActorId?: boolean; bootstrapError?: boolean; bootstrapStatus?: boolean; bootstrapUser?: boolean; @@ -3520,18 +3795,13 @@ export type FunctionModuleSelect = { schedulesTableId?: boolean; schemaId?: boolean; scope?: boolean; + storageKey?: boolean; functionDeploymentModules?: { select: FunctionDeploymentModuleSelect; first?: number; filter?: FunctionDeploymentModuleFilter; orderBy?: FunctionDeploymentModuleOrderBy[]; }; - httpRouteModules?: { - select: HttpRouteModuleSelect; - first?: number; - filter?: HttpRouteModuleFilter; - orderBy?: HttpRouteModuleOrderBy[]; - }; webhookModules?: { select: WebhookModuleSelect; first?: number; @@ -3621,69 +3891,60 @@ export type HierarchyModuleSelect = { sprtTableName?: boolean; usersTableId?: boolean; }; -export type HttpRouteModuleSelect = { +export type I18NModuleSelect = { apiName?: boolean; databaseId?: boolean; - defaultCapabilities?: boolean; - entityField?: boolean; - entityTableId?: boolean; - functionModuleId?: boolean; - httpRoutesTableId?: boolean; - httpRoutesTableName?: boolean; id?: boolean; - policies?: boolean; - prefix?: boolean; privateApiName?: boolean; privateSchemaId?: boolean; - privateSchemaName?: boolean; - provisions?: boolean; - publicSchemaName?: boolean; - resolverFunctionName?: boolean; - resourceModuleId?: boolean; schemaId?: boolean; - scope?: boolean; - storageModuleId?: boolean; - functionModule?: { - select: FunctionModuleSelect; - }; - resourceModule?: { - select: ResourceModuleSelect; - }; - storageModule?: { - select: StorageModuleSelect; - }; + settingsTableId?: boolean; }; -export type I18NModuleSelect = { +export type IdentityProvidersModuleSelect = { apiName?: boolean; databaseId?: boolean; + entityField?: boolean; + entityTableId?: boolean; id?: boolean; + prefix?: boolean; privateApiName?: boolean; privateSchemaId?: boolean; + privateSchemaName?: boolean; + publicSchemaName?: boolean; schemaId?: boolean; - settingsTableId?: boolean; + scope?: boolean; + tableId?: boolean; + tableName?: boolean; }; -export type IdentityProvidersModuleSelect = { +export type ImageModuleSelect = { apiName?: boolean; databaseId?: boolean; + defaultCapabilities?: boolean; entityField?: boolean; entityTableId?: boolean; id?: boolean; + imageGrantsTableId?: boolean; + imageGrantsTableName?: boolean; + imagesTableId?: boolean; + imagesTableName?: boolean; + policies?: boolean; prefix?: boolean; privateApiName?: boolean; privateSchemaId?: boolean; privateSchemaName?: boolean; + provisions?: boolean; publicSchemaName?: boolean; + registriesTableId?: boolean; + registriesTableName?: boolean; + registryGrantsTableId?: boolean; + registryGrantsTableName?: boolean; schemaId?: boolean; scope?: boolean; - tableId?: boolean; - tableName?: boolean; }; export type InferenceLogModuleSelect = { - actorFkTableId?: boolean; apiName?: boolean; databaseId?: boolean; entityField?: boolean; - entityFkTableId?: boolean; id?: boolean; inferenceLogTableId?: boolean; inferenceLogTableName?: boolean; @@ -3695,6 +3956,7 @@ export type InferenceLogModuleSelect = { privateSchemaName?: boolean; publicSchemaName?: boolean; retention?: boolean; + rollupFunctionName?: boolean; schemaId?: boolean; scope?: boolean; usageSummaryTableId?: boolean; @@ -3758,6 +4020,24 @@ export type IntegrationProvidersModuleSelect = { tableId?: boolean; tableName?: boolean; }; +export type InternalConfigModuleSelect = { + apiName?: boolean; + databaseId?: boolean; + entityField?: boolean; + entityTableId?: boolean; + id?: boolean; + internalConfigTableId?: boolean; + internalConfigTableName?: boolean; + policies?: boolean; + prefix?: boolean; + privateApiName?: boolean; + privateSchemaId?: boolean; + privateSchemaName?: boolean; + provisions?: boolean; + publicSchemaName?: boolean; + schemaId?: boolean; + scope?: boolean; +}; export type InternalSecretsModuleSelect = { apiName?: boolean; databaseId?: boolean; @@ -3797,6 +4077,29 @@ export type InvitesModuleSelect = { submitInviteCodeFunction?: boolean; usersTableId?: boolean; }; +export type K8sAdmissionModuleSelect = { + apiName?: boolean; + createdAt?: boolean; + databaseId?: boolean; + entityTableId?: boolean; + id?: boolean; + k8sResourceKindsTableId?: boolean; + k8sSpecRulesTableId?: 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 LimitsModuleSelect = { actorTableId?: boolean; aggregateTableId?: boolean; @@ -3837,7 +4140,33 @@ export type LimitsModuleSelect = { tableId?: boolean; tableName?: boolean; }; -export type MembershipTypesModuleSelect = { +export type MachineModuleSelect = { + apiName?: boolean; + databaseId?: boolean; + defaultCapabilities?: boolean; + entityField?: boolean; + entityTableId?: boolean; + id?: boolean; + machineMessagesTableId?: boolean; + machineMessagesTableName?: boolean; + machineSessionsTableId?: boolean; + machineSessionsTableName?: boolean; + machinesTableId?: boolean; + machinesTableName?: boolean; + partitionInterval?: boolean; + policies?: boolean; + prefix?: boolean; + premake?: boolean; + privateApiName?: boolean; + privateSchemaId?: boolean; + privateSchemaName?: boolean; + provisions?: boolean; + publicSchemaName?: boolean; + retention?: boolean; + schemaId?: boolean; + scope?: boolean; +}; +export type MembershipTypesModuleSelect = { databaseId?: boolean; id?: boolean; schemaId?: boolean; @@ -3895,6 +4224,7 @@ export type MerkleStoreModuleSelect = { createdAt?: boolean; databaseId?: boolean; entityField?: boolean; + entityTableId?: boolean; functionPrefix?: boolean; id?: boolean; objectTableId?: boolean; @@ -3925,6 +4255,12 @@ export type MerkleStoreModuleSelect = { filter?: GraphModuleFilter; orderBy?: GraphModuleOrderBy[]; }; + k8sAdmissionModules?: { + select: K8sAdmissionModuleSelect; + first?: number; + filter?: K8sAdmissionModuleFilter; + orderBy?: K8sAdmissionModuleOrderBy[]; + }; pagesModules?: { select: PagesModuleSelect; first?: number; @@ -4027,12 +4363,17 @@ export type PagesModuleSelect = { pagesTableId?: boolean; policies?: boolean; prefix?: boolean; + previewCommitFunctionName?: boolean; + previewSetFunctionName?: boolean; + previewTokenMintFunctionName?: boolean; + previewTokenVerifierFunctionName?: boolean; privateApiName?: boolean; privateSchemaId?: boolean; privateSchemaName?: boolean; provisions?: boolean; publicSchemaId?: boolean; publicSchemaName?: boolean; + releaseManifestFunctionName?: boolean; scope?: boolean; siteSurfaceModuleId?: boolean; sitesTableId?: boolean; @@ -4092,10 +4433,12 @@ export type PrincipalAuthModuleSelect = { principalScopeOverridesTableId?: boolean; principalsTableId?: boolean; principalsTableName?: boolean; + privateSchemaId?: boolean; revokeOrgApiKeyFunction?: boolean; schemaId?: boolean; sessionCredentialsTableId?: boolean; sessionsTableId?: boolean; + sweepExpiredPrincipalsFunction?: boolean; usersTableId?: boolean; }; export type ProfilesModuleSelect = { @@ -4173,6 +4516,31 @@ export type RealtimeModuleSelect = { sourceRegistryTableId?: boolean; subscriptionsSchemaId?: boolean; }; +export type RefusalLogModuleSelect = { + apiName?: boolean; + databaseId?: boolean; + entityField?: boolean; + id?: boolean; + logInterval?: boolean; + logPremake?: boolean; + logRetention?: boolean; + logTableId?: boolean; + logTableName?: boolean; + prefix?: boolean; + privateApiName?: boolean; + privateSchemaId?: boolean; + privateSchemaName?: boolean; + publicSchemaName?: boolean; + recordRefusalsFunction?: boolean; + rollupRefusalUsageSummaryFunction?: boolean; + schemaId?: boolean; + scope?: boolean; + summaryInterval?: boolean; + summaryPremake?: boolean; + summaryRetention?: boolean; + summaryTableId?: boolean; + summaryTableName?: boolean; +}; export type RelationProvisionSelect = { apiRequired?: boolean; createIndex?: boolean; @@ -4199,8 +4567,52 @@ export type RelationProvisionSelect = { targetTableId?: boolean; useCompositeKey?: boolean; }; +export type RepositoryModuleSelect = { + apiName?: boolean; + buildStepsTableId?: boolean; + buildStepsTableName?: boolean; + buildsTableId?: boolean; + buildsTableName?: boolean; + databaseId?: boolean; + defaultCapabilities?: boolean; + entityField?: boolean; + entityTableId?: boolean; + hasAttachments?: boolean; + hasBuilds?: boolean; + id?: boolean; + policies?: boolean; + prefix?: boolean; + privateApiName?: boolean; + privateSchemaId?: boolean; + privateSchemaName?: boolean; + proposalCommentsTableId?: boolean; + proposalCommentsTableName?: boolean; + proposalFileViewsTableId?: boolean; + proposalFileViewsTableName?: boolean; + proposalReactionsTableId?: boolean; + proposalReactionsTableName?: boolean; + proposalReviewsTableId?: boolean; + proposalReviewsTableName?: boolean; + proposalsTableId?: boolean; + proposalsTableName?: boolean; + provisions?: boolean; + publicSchemaName?: boolean; + repositoriesTableId?: boolean; + repositoriesTableName?: boolean; + repositoryEventsTableId?: boolean; + repositoryEventsTableName?: boolean; + repositoryRequiredChecksTableId?: boolean; + repositoryRequiredChecksTableName?: boolean; + schemaId?: boolean; + scope?: boolean; + search?: boolean; + workflowsTableId?: boolean; + workflowsTableName?: boolean; +}; export type ResourceModuleSelect = { apiName?: boolean; + builderBindingsTableId?: boolean; + builderBindingsTableName?: boolean; databaseId?: boolean; defaultCapabilities?: boolean; entityField?: boolean; @@ -4216,6 +4628,8 @@ export type ResourceModuleSelect = { privateSchemaName?: boolean; provisions?: boolean; publicSchemaName?: boolean; + registryBindingsTableId?: boolean; + registryBindingsTableName?: boolean; requirementsStateViewName?: boolean; resolvedRequirementsViewName?: boolean; resourceBillingRollupFunction?: boolean; @@ -4242,12 +4656,6 @@ export type ResourceModuleSelect = { namespaceModule?: { select: NamespaceModuleSelect; }; - httpRouteModules?: { - select: HttpRouteModuleSelect; - first?: number; - filter?: HttpRouteModuleFilter; - orderBy?: HttpRouteModuleOrderBy[]; - }; }; export type RlsModuleSelect = { apiName?: boolean; @@ -4284,6 +4692,8 @@ export type RouteModuleSelect = { privateSchemaName?: boolean; provisions?: boolean; publicSchemaName?: boolean; + redirectsTableId?: boolean; + redirectsTableName?: boolean; resolverFunctionName?: boolean; routeBindingsTableId?: boolean; routeBindingsTableName?: boolean; @@ -4291,6 +4701,8 @@ export type RouteModuleSelect = { routesTableName?: boolean; schemaId?: boolean; scope?: boolean; + servingSiteField?: boolean; + storageKey?: boolean; catalogModule?: { select: CatalogModuleSelect; }; @@ -4310,8 +4722,10 @@ export type SecureTableProvisionSelect = { fields?: boolean; grants?: boolean; id?: boolean; + module?: boolean; nodes?: boolean; outFields?: boolean; + owns?: boolean; policies?: boolean; schemaId?: boolean; tableId?: boolean; @@ -4366,12 +4780,15 @@ export type SiteSurfaceModuleSelect = { siteMetadataTableName?: boolean; siteModulesTableId?: boolean; siteModulesTableName?: boolean; + siteReleasesTableId?: boolean; + siteReleasesTableName?: boolean; siteThemesTableId?: boolean; siteThemesTableName?: boolean; siteWebConfigTableId?: boolean; siteWebConfigTableName?: boolean; sitesTableId?: boolean; sitesTableName?: boolean; + storageKey?: boolean; catalogModule?: { select: CatalogModuleSelect; }; @@ -4389,11 +4806,9 @@ export type SiteSurfaceModuleSelect = { }; }; export type StorageLogModuleSelect = { - actorFkTableId?: boolean; apiName?: boolean; databaseId?: boolean; entityField?: boolean; - entityFkTableId?: boolean; id?: boolean; interval?: boolean; prefix?: boolean; @@ -4403,6 +4818,7 @@ export type StorageLogModuleSelect = { privateSchemaName?: boolean; publicSchemaName?: boolean; retention?: boolean; + rollupFunctionName?: boolean; schemaId?: boolean; scope?: boolean; storageLogTableId?: boolean; @@ -4435,6 +4851,7 @@ export type StorageModuleSelect = { hasPathShares?: boolean; hasVersioning?: boolean; id?: boolean; + key?: boolean; maxBulkFiles?: boolean; maxBulkTotalSize?: boolean; maxFilenameLength?: boolean; @@ -4458,19 +4875,11 @@ export type StorageModuleSelect = { filter?: FileRefFieldFilter; orderBy?: FileRefFieldOrderBy[]; }; - httpRouteModules?: { - select: HttpRouteModuleSelect; - first?: number; - filter?: HttpRouteModuleFilter; - orderBy?: HttpRouteModuleOrderBy[]; - }; }; export type TransferLogModuleSelect = { - actorFkTableId?: boolean; apiName?: boolean; databaseId?: boolean; entityField?: boolean; - entityFkTableId?: boolean; id?: boolean; interval?: boolean; prefix?: boolean; @@ -4480,6 +4889,7 @@ export type TransferLogModuleSelect = { privateSchemaName?: boolean; publicSchemaName?: boolean; retention?: boolean; + rollupFunctionName?: boolean; schemaId?: boolean; scope?: boolean; transferLogTableId?: boolean; @@ -4500,8 +4910,10 @@ export type UserAuthModuleSelect = { forgotPasswordFunction?: boolean; id?: boolean; privateApiName?: boolean; + privateSchemaId?: boolean; requestCrossOriginTokenFunction?: boolean; resetPasswordFunction?: boolean; + revokeSessionTreeFunction?: boolean; schemaId?: boolean; secretsTableId?: boolean; sendAccountDeletionEmailFunction?: boolean; @@ -4513,6 +4925,7 @@ export type UserAuthModuleSelect = { signInFunction?: boolean; signOutFunction?: boolean; signUpFunction?: boolean; + sweepExpiredSessionsFunction?: boolean; usersTableId?: boolean; verifyEmailFunction?: boolean; verifyPasswordFunction?: boolean; @@ -4643,16 +5056,28 @@ export interface AgentModuleFilter { databaseId?: UUIDFilter; /** Filter by the object’s `defaultCapabilities` field. */ defaultCapabilities?: StringListFilter; + /** Filter by the object’s `defaultVisibility` field. */ + defaultVisibility?: StringFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ entityTableId?: UUIDFilter; + /** Filter by the object’s `eventTableId` field. */ + eventTableId?: UUIDFilter; + /** Filter by the object’s `eventTableName` field. */ + eventTableName?: StringFilter; /** Filter by the object’s `hasAgents` field. */ hasAgents?: BooleanFilter; + /** Filter by the object’s `hasAttachments` field. */ + hasAttachments?: BooleanFilter; /** Filter by the object’s `hasPlans` field. */ hasPlans?: BooleanFilter; + /** Filter by the object’s `hasRepositoryResources` field. */ + hasRepositoryResources?: BooleanFilter; /** Filter by the object’s `hasResources` field. */ hasResources?: BooleanFilter; + /** Filter by the object’s `hasRuns` field. */ + hasRuns?: BooleanFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `messageTableId` field. */ @@ -4689,18 +5114,24 @@ export interface AgentModuleFilter { provisions?: JSONFilter; /** Filter by the object’s `publicSchemaName` field. */ publicSchemaName?: StringFilter; + /** Filter by the object’s `resourceRepositoryTableId` field. */ + resourceRepositoryTableId?: UUIDFilter; + /** Filter by the object’s `resourceRepositoryTableName` field. */ + resourceRepositoryTableName?: StringFilter; /** Filter by the object’s `resourceTableId` field. */ resourceTableId?: UUIDFilter; /** Filter by the object’s `resourceTableName` field. */ resourceTableName?: StringFilter; /** Filter by the object’s `resources` field. */ resources?: JSONFilter; + /** Filter by the object’s `runTableId` field. */ + runTableId?: UUIDFilter; + /** Filter by the object’s `runTableName` field. */ + runTableName?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `scope` field. */ scope?: StringFilter; - /** Filter by the object’s `shared` field. */ - shared?: BooleanFilter; /** Filter by the object’s `taskTableId` field. */ taskTableId?: UUIDFilter; /** Filter by the object’s `taskTableName` field. */ @@ -4709,6 +5140,10 @@ export interface AgentModuleFilter { threadTableId?: UUIDFilter; /** Filter by the object’s `threadTableName` field. */ threadTableName?: StringFilter; + /** Filter by the object’s `workspaceTableId` field. */ + workspaceTableId?: UUIDFilter; + /** Filter by the object’s `workspaceTableName` field. */ + workspaceTableName?: StringFilter; } export interface ApiSurfaceModuleFilter { /** Checks for all expressions in this list. */ @@ -4775,6 +5210,8 @@ export interface AppModuleFilter { appComponentsTableId?: UUIDFilter; /** Filter by the object’s `appComponentsTableName` field. */ appComponentsTableName?: StringFilter; + /** Filter by the object’s `appStoreIdentitiesTableName` field. */ + appStoreIdentitiesTableName?: StringFilter; /** Filter by the object’s `appsTableId` field. */ appsTableId?: UUIDFilter; /** Filter by the object’s `appsTableName` field. */ @@ -4883,6 +5320,8 @@ export interface BillingModuleFilter { sweepExpiredSubscriptionsFunction?: StringFilter; } export interface BillingProviderModuleFilter { + /** Filter by the object’s `activatePlanSubscriptionFunction` field. */ + activatePlanSubscriptionFunction?: StringFilter; /** Checks for all expressions in this list. */ and?: BillingProviderModuleFilter[]; /** Filter by the object’s `apiName` field. */ @@ -4891,6 +5330,10 @@ export interface BillingProviderModuleFilter { billingCustomersTableId?: UUIDFilter; /** Filter by the object’s `billingCustomersTableName` field. */ billingCustomersTableName?: StringFilter; + /** Filter by the object’s `billingDisputesTableId` field. */ + billingDisputesTableId?: UUIDFilter; + /** Filter by the object’s `billingDisputesTableName` field. */ + billingDisputesTableName?: StringFilter; /** Filter by the object’s `billingInvoicesTableId` field. */ billingInvoicesTableId?: UUIDFilter; /** Filter by the object’s `billingInvoicesTableName` field. */ @@ -4917,6 +5360,18 @@ export interface BillingProviderModuleFilter { billingWebhookEventsTableName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `getActivePlanPricingFunction` field. */ + getActivePlanPricingFunction?: StringFilter; + /** Filter by the object’s `getBillingCustomerFunction` field. */ + getBillingCustomerFunction?: StringFilter; + /** Filter by the object’s `getBillingPriceFunction` field. */ + getBillingPriceFunction?: StringFilter; + /** Filter by the object’s `getBillingProductFunction` field. */ + getBillingProductFunction?: StringFilter; + /** Filter by the object’s `getBillingSubscriptionFunction` field. */ + getBillingSubscriptionFunction?: StringFilter; + /** Filter by the object’s `getFallbackFreePlanFunction` field. */ + getFallbackFreePlanFunction?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `listPendingUsageSyncFunction` field. */ @@ -4941,12 +5396,24 @@ export interface BillingProviderModuleFilter { productsTableId?: UUIDFilter; /** Filter by the object’s `provider` field. */ provider?: StringFilter; + /** Filter by the object’s `recordDisputeFunction` field. */ + recordDisputeFunction?: 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 `sweepOverdueSubscriptionsFunction` field. */ + sweepOverdueSubscriptionsFunction?: StringFilter; + /** Filter by the object’s `upsertBillingCustomerFunction` field. */ + upsertBillingCustomerFunction?: StringFilter; + /** Filter by the object’s `upsertBillingPriceFunction` field. */ + upsertBillingPriceFunction?: StringFilter; + /** Filter by the object’s `upsertBillingProductFunction` field. */ + upsertBillingProductFunction?: StringFilter; + /** Filter by the object’s `upsertBillingSubscriptionFunction` field. */ + upsertBillingSubscriptionFunction?: StringFilter; /** Filter by the object’s `upsertInvoiceFunction` field. */ upsertInvoiceFunction?: StringFilter; } @@ -5155,6 +5622,10 @@ export interface CatalogModuleFilter { appModules?: CatalogModuleToManyAppModuleFilter; /** `appModules` exist. */ appModulesExist?: boolean; + /** Filter by the object’s `appStoreIdentitiesTableId` field. */ + appStoreIdentitiesTableId?: UUIDFilter; + /** Filter by the object’s `appStoreIdentitiesTableName` field. */ + appStoreIdentitiesTableName?: StringFilter; /** Filter by the object’s `appsTableId` field. */ appsTableId?: UUIDFilter; /** Filter by the object’s `appsTableName` field. */ @@ -5187,6 +5658,14 @@ export interface CatalogModuleFilter { functionsTableName?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `imagesTableId` field. */ + imagesTableId?: UUIDFilter; + /** Filter by the object’s `imagesTableName` field. */ + imagesTableName?: StringFilter; + /** Filter by the object’s `managedDomainsTableId` field. */ + managedDomainsTableId?: UUIDFilter; + /** Filter by the object’s `managedDomainsTableName` field. */ + managedDomainsTableName?: StringFilter; /** Filter by the object’s `namespacesTableId` field. */ namespacesTableId?: UUIDFilter; /** Filter by the object’s `namespacesTableName` field. */ @@ -5203,6 +5682,10 @@ export interface CatalogModuleFilter { provisions?: JSONFilter; /** Filter by the object’s `publicSchemaName` field. */ publicSchemaName?: StringFilter; + /** Filter by the object’s `redirectsTableId` field. */ + redirectsTableId?: UUIDFilter; + /** Filter by the object’s `redirectsTableName` field. */ + redirectsTableName?: StringFilter; /** Filter by the object’s `resourceDefinitionsTableId` field. */ resourceDefinitionsTableId?: UUIDFilter; /** Filter by the object’s `resourceDefinitionsTableName` field. */ @@ -5248,31 +5731,47 @@ export interface CatalogModuleFilter { /** Filter by the object’s `sitesWebConfigTableName` field. */ sitesWebConfigTableName?: StringFilter; } -export interface ComputeLogModuleFilter { - /** Filter by the object’s `actorFkTableId` field. */ - actorFkTableId?: UUIDFilter; +export interface ClusterModuleFilter { /** Checks for all expressions in this list. */ - and?: ComputeLogModuleFilter[]; + and?: ClusterModuleFilter[]; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; - /** Filter by the object’s `computeLogTableId` field. */ - computeLogTableId?: UUIDFilter; - /** Filter by the object’s `computeLogTableName` field. */ - computeLogTableName?: StringFilter; + /** Filter by the object’s `clusterEventsTableId` field. */ + clusterEventsTableId?: UUIDFilter; + /** Filter by the object’s `clusterEventsTableName` field. */ + clusterEventsTableName?: StringFilter; + /** Filter by the object’s `clustersTableId` field. */ + clustersTableId?: UUIDFilter; + /** Filter by the object’s `clustersTableName` field. */ + clustersTableName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `databasePlacementsTableId` field. */ + databasePlacementsTableId?: UUIDFilter; + /** Filter by the object’s `databasePlacementsTableName` field. */ + databasePlacementsTableName?: StringFilter; + /** Filter by the object’s `databaseServersTableId` field. */ + databaseServersTableId?: UUIDFilter; + /** Filter by the object’s `databaseServersTableName` field. */ + databaseServersTableName?: StringFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; - /** Filter by the object’s `entityFkTableId` field. */ - entityFkTableId?: UUIDFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `interval` field. */ - interval?: StringFilter; /** Negates the expression. */ - not?: ComputeLogModuleFilter; + not?: ClusterModuleFilter; /** Checks for any expressions in this list. */ - or?: ComputeLogModuleFilter[]; + or?: ClusterModuleFilter[]; + /** Filter by the object’s `partitionInterval` field. */ + partitionInterval?: StringFilter; + /** Filter by the object’s `physicalDatabasesTableId` field. */ + physicalDatabasesTableId?: UUIDFilter; + /** Filter by the object’s `physicalDatabasesTableName` field. */ + physicalDatabasesTableName?: StringFilter; + /** Filter by the object’s `policies` field. */ + policies?: JSONFilter; /** Filter by the object’s `prefix` field. */ prefix?: StringFilter; /** Filter by the object’s `premake` field. */ @@ -5283,6 +5782,8 @@ export interface ComputeLogModuleFilter { 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 `publicSchemaName` field. */ publicSchemaName?: StringFilter; /** Filter by the object’s `retention` field. */ @@ -5291,34 +5792,52 @@ export interface ComputeLogModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `scope` field. */ scope?: StringFilter; - /** Filter by the object’s `usageSummaryTableId` field. */ - usageSummaryTableId?: UUIDFilter; - /** Filter by the object’s `usageSummaryTableName` field. */ - usageSummaryTableName?: StringFilter; } -export interface ConfigSecretsUserModuleFilter { +export interface ComputeLogModuleFilter { /** Checks for all expressions in this list. */ - and?: ConfigSecretsUserModuleFilter[]; + and?: ComputeLogModuleFilter[]; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; + /** Filter by the object’s `computeLogTableId` field. */ + computeLogTableId?: UUIDFilter; + /** Filter by the object’s `computeLogTableName` field. */ + computeLogTableName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `interval` field. */ + interval?: StringFilter; /** Negates the expression. */ - not?: ConfigSecretsUserModuleFilter; + not?: ComputeLogModuleFilter; /** Checks for any expressions in this list. */ - or?: ConfigSecretsUserModuleFilter[]; + or?: ComputeLogModuleFilter[]; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `premake` field. */ + premake?: IntFilter; /** 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 `retention` field. */ + retention?: StringFilter; + /** Filter by the object’s `rollupFunctionName` field. */ + rollupFunctionName?: StringFilter; /** 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; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `usageSummaryTableId` field. */ + usageSummaryTableId?: UUIDFilter; + /** Filter by the object’s `usageSummaryTableName` field. */ + usageSummaryTableName?: StringFilter; } export interface ConnectedAccountsModuleFilter { /** Checks for all expressions in this list. */ @@ -5491,6 +6010,8 @@ export interface DatabaseProvisionModuleFilter { and?: DatabaseProvisionModuleFilter[]; /** Filter by the object’s `async` field. */ async?: BooleanFilter; + /** Filter by the object’s `bootstrapActorId` field. */ + bootstrapActorId?: UUIDFilter; /** Filter by the object’s `bootstrapError` field. */ bootstrapError?: StringFilter; /** Filter by the object’s `bootstrapStatus` field. */ @@ -6319,10 +6840,6 @@ export interface FunctionModuleFilter { functionDeploymentModulesExist?: boolean; /** Filter by the object’s `hasCron` field. */ hasCron?: BooleanFilter; - /** Filter by the object’s `httpRouteModules` relation. */ - httpRouteModules?: FunctionModuleToManyHttpRouteModuleFilter; - /** `httpRouteModules` exist. */ - httpRouteModulesExist?: boolean; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Negates the expression. */ @@ -6349,6 +6866,8 @@ export interface FunctionModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `scope` field. */ scope?: StringFilter; + /** Filter by the object’s `storageKey` field. */ + storageKey?: StringFilter; /** Filter by the object’s `webhookModules` relation. */ webhookModules?: FunctionModuleToManyWebhookModuleFilter; /** `webhookModules` exist. */ @@ -6514,107 +7033,93 @@ export interface HierarchyModuleFilter { /** Filter by the object’s `usersTableId` field. */ usersTableId?: UUIDFilter; } -export interface HttpRouteModuleFilter { +export interface I18NModuleFilter { /** Checks for all expressions in this list. */ - and?: HttpRouteModuleFilter[]; + and?: I18NModuleFilter[]; /** 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 `entityField` field. */ - entityField?: StringFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; - /** Filter by the object’s `functionModule` relation. */ - functionModule?: FunctionModuleFilter; - /** A related `functionModule` exists. */ - functionModuleExists?: boolean; - /** Filter by the object’s `functionModuleId` field. */ - functionModuleId?: UUIDFilter; - /** Filter by the object’s `httpRoutesTableId` field. */ - httpRoutesTableId?: UUIDFilter; - /** Filter by the object’s `httpRoutesTableName` field. */ - httpRoutesTableName?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Negates the expression. */ - not?: HttpRouteModuleFilter; + not?: I18NModuleFilter; /** Checks for any expressions in this list. */ - or?: HttpRouteModuleFilter[]; - /** Filter by the object’s `policies` field. */ - policies?: JSONFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; + or?: I18NModuleFilter[]; /** 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 `publicSchemaName` field. */ - publicSchemaName?: StringFilter; - /** Filter by the object’s `resolverFunctionName` field. */ - resolverFunctionName?: StringFilter; - /** Filter by the object’s `resourceModule` relation. */ - resourceModule?: ResourceModuleFilter; - /** A related `resourceModule` exists. */ - resourceModuleExists?: boolean; - /** Filter by the object’s `resourceModuleId` field. */ - resourceModuleId?: UUIDFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; - /** Filter by the object’s `storageModule` relation. */ - storageModule?: StorageModuleFilter; - /** A related `storageModule` exists. */ - storageModuleExists?: boolean; - /** Filter by the object’s `storageModuleId` field. */ - storageModuleId?: UUIDFilter; + /** Filter by the object’s `settingsTableId` field. */ + settingsTableId?: UUIDFilter; } -export interface I18NModuleFilter { +export interface IdentityProvidersModuleFilter { /** Checks for all expressions in this list. */ - and?: I18NModuleFilter[]; + and?: IdentityProvidersModuleFilter[]; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; /** 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?: I18NModuleFilter; + not?: IdentityProvidersModuleFilter; /** Checks for any expressions in this list. */ - or?: I18NModuleFilter[]; + or?: IdentityProvidersModuleFilter[]; + /** 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 `settingsTableId` field. */ - settingsTableId?: 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 IdentityProvidersModuleFilter { +export interface ImageModuleFilter { /** Checks for all expressions in this list. */ - and?: IdentityProvidersModuleFilter[]; + and?: ImageModuleFilter[]; /** 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 `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ entityTableId?: UUIDFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `imageGrantsTableId` field. */ + imageGrantsTableId?: UUIDFilter; + /** Filter by the object’s `imageGrantsTableName` field. */ + imageGrantsTableName?: StringFilter; + /** Filter by the object’s `imagesTableId` field. */ + imagesTableId?: UUIDFilter; + /** Filter by the object’s `imagesTableName` field. */ + imagesTableName?: StringFilter; /** Negates the expression. */ - not?: IdentityProvidersModuleFilter; + not?: ImageModuleFilter; /** Checks for any expressions in this list. */ - or?: IdentityProvidersModuleFilter[]; + or?: ImageModuleFilter[]; + /** 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. */ @@ -6623,20 +7128,24 @@ export interface IdentityProvidersModuleFilter { 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 `publicSchemaName` field. */ publicSchemaName?: StringFilter; + /** Filter by the object’s `registriesTableId` field. */ + registriesTableId?: UUIDFilter; + /** Filter by the object’s `registriesTableName` field. */ + registriesTableName?: StringFilter; + /** Filter by the object’s `registryGrantsTableId` field. */ + registryGrantsTableId?: UUIDFilter; + /** Filter by the object’s `registryGrantsTableName` field. */ + registryGrantsTableName?: 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 InferenceLogModuleFilter { - /** Filter by the object’s `actorFkTableId` field. */ - actorFkTableId?: UUIDFilter; /** Checks for all expressions in this list. */ and?: InferenceLogModuleFilter[]; /** Filter by the object’s `apiName` field. */ @@ -6645,8 +7154,6 @@ export interface InferenceLogModuleFilter { databaseId?: UUIDFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; - /** Filter by the object’s `entityFkTableId` field. */ - entityFkTableId?: UUIDFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `inferenceLogTableId` field. */ @@ -6673,6 +7180,8 @@ export interface InferenceLogModuleFilter { publicSchemaName?: StringFilter; /** Filter by the object’s `retention` field. */ retention?: StringFilter; + /** Filter by the object’s `rollupFunctionName` field. */ + rollupFunctionName?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `scope` field. */ @@ -6802,6 +7311,46 @@ export interface IntegrationProvidersModuleFilter { /** Filter by the object’s `tableName` field. */ tableName?: StringFilter; } +export interface InternalConfigModuleFilter { + /** Checks for all expressions in this list. */ + and?: InternalConfigModuleFilter[]; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** 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; + /** Filter by the object’s `internalConfigTableId` field. */ + internalConfigTableId?: UUIDFilter; + /** Filter by the object’s `internalConfigTableName` field. */ + internalConfigTableName?: StringFilter; + /** Negates the expression. */ + not?: InternalConfigModuleFilter; + /** Checks for any expressions in this list. */ + or?: InternalConfigModuleFilter[]; + /** 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 `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; +} export interface InternalSecretsModuleFilter { /** Checks for all expressions in this list. */ and?: InternalSecretsModuleFilter[]; @@ -6888,6 +7437,52 @@ export interface InvitesModuleFilter { /** Filter by the object’s `usersTableId` field. */ usersTableId?: UUIDFilter; } +export interface K8sAdmissionModuleFilter { + /** Checks for all expressions in this list. */ + and?: K8sAdmissionModuleFilter[]; + /** 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 `k8sResourceKindsTableId` field. */ + k8sResourceKindsTableId?: UUIDFilter; + /** Filter by the object’s `k8sSpecRulesTableId` field. */ + k8sSpecRulesTableId?: UUIDFilter; + /** Filter by the object’s `merkleStoreModule` relation. */ + merkleStoreModule?: MerkleStoreModuleFilter; + /** Filter by the object’s `merkleStoreModuleId` field. */ + merkleStoreModuleId?: UUIDFilter; + /** Negates the expression. */ + not?: K8sAdmissionModuleFilter; + /** Checks for any expressions in this list. */ + or?: K8sAdmissionModuleFilter[]; + /** 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 LimitsModuleFilter { /** Filter by the object’s `actorTableId` field. */ actorTableId?: UUIDFilter; @@ -6972,9 +7567,65 @@ export interface LimitsModuleFilter { /** Filter by the object’s `tableName` field. */ tableName?: StringFilter; } -export interface MembershipTypesModuleFilter { +export interface MachineModuleFilter { /** Checks for all expressions in this list. */ - and?: MembershipTypesModuleFilter[]; + and?: MachineModuleFilter[]; + /** 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 `entityField` field. */ + entityField?: StringFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `machineMessagesTableId` field. */ + machineMessagesTableId?: UUIDFilter; + /** Filter by the object’s `machineMessagesTableName` field. */ + machineMessagesTableName?: StringFilter; + /** Filter by the object’s `machineSessionsTableId` field. */ + machineSessionsTableId?: UUIDFilter; + /** Filter by the object’s `machineSessionsTableName` field. */ + machineSessionsTableName?: StringFilter; + /** Filter by the object’s `machinesTableId` field. */ + machinesTableId?: UUIDFilter; + /** Filter by the object’s `machinesTableName` field. */ + machinesTableName?: StringFilter; + /** Negates the expression. */ + not?: MachineModuleFilter; + /** Checks for any expressions in this list. */ + or?: MachineModuleFilter[]; + /** Filter by the object’s `partitionInterval` field. */ + partitionInterval?: StringFilter; + /** Filter by the object’s `policies` field. */ + policies?: JSONFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `premake` field. */ + premake?: IntFilter; + /** 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 `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `retention` field. */ + retention?: StringFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; +} +export interface MembershipTypesModuleFilter { + /** Checks for all expressions in this list. */ + and?: MembershipTypesModuleFilter[]; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; /** Filter by the object’s `id` field. */ @@ -7105,6 +7756,8 @@ export interface MerkleStoreModuleFilter { dbPresetModulesExist?: boolean; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; /** Filter by the object’s `functionPrefix` field. */ functionPrefix?: StringFilter; /** Filter by the object’s `graphModules` relation. */ @@ -7113,6 +7766,10 @@ export interface MerkleStoreModuleFilter { graphModulesExist?: boolean; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `k8sAdmissionModules` relation. */ + k8sAdmissionModules?: MerkleStoreModuleToManyK8sAdmissionModuleFilter; + /** `k8sAdmissionModules` exist. */ + k8sAdmissionModulesExist?: boolean; /** Negates the expression. */ not?: MerkleStoreModuleFilter; /** Filter by the object’s `objectTableId` field. */ @@ -7319,6 +7976,14 @@ export interface PagesModuleFilter { policies?: JSONFilter; /** Filter by the object’s `prefix` field. */ prefix?: StringFilter; + /** Filter by the object’s `previewCommitFunctionName` field. */ + previewCommitFunctionName?: StringFilter; + /** Filter by the object’s `previewSetFunctionName` field. */ + previewSetFunctionName?: StringFilter; + /** Filter by the object’s `previewTokenMintFunctionName` field. */ + previewTokenMintFunctionName?: StringFilter; + /** Filter by the object’s `previewTokenVerifierFunctionName` field. */ + previewTokenVerifierFunctionName?: StringFilter; /** Filter by the object’s `privateApiName` field. */ privateApiName?: StringFilter; /** Filter by the object’s `privateSchemaId` field. */ @@ -7331,6 +7996,8 @@ export interface PagesModuleFilter { publicSchemaId?: UUIDFilter; /** Filter by the object’s `publicSchemaName` field. */ publicSchemaName?: StringFilter; + /** Filter by the object’s `releaseManifestFunctionName` field. */ + releaseManifestFunctionName?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: StringFilter; /** Filter by the object’s `siteSurfaceModule` relation. */ @@ -7453,6 +8120,8 @@ export interface PrincipalAuthModuleFilter { principalsTableId?: UUIDFilter; /** Filter by the object’s `principalsTableName` field. */ principalsTableName?: StringFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; /** Filter by the object’s `revokeOrgApiKeyFunction` field. */ revokeOrgApiKeyFunction?: StringFilter; /** Filter by the object’s `schemaId` field. */ @@ -7461,6 +8130,8 @@ export interface PrincipalAuthModuleFilter { sessionCredentialsTableId?: UUIDFilter; /** Filter by the object’s `sessionsTableId` field. */ sessionsTableId?: UUIDFilter; + /** Filter by the object’s `sweepExpiredPrincipalsFunction` field. */ + sweepExpiredPrincipalsFunction?: StringFilter; /** Filter by the object’s `usersTableId` field. */ usersTableId?: UUIDFilter; } @@ -7630,6 +8301,60 @@ export interface RealtimeModuleFilter { /** Filter by the object’s `subscriptionsSchemaId` field. */ subscriptionsSchemaId?: UUIDFilter; } +export interface RefusalLogModuleFilter { + /** Checks for all expressions in this list. */ + and?: RefusalLogModuleFilter[]; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `logInterval` field. */ + logInterval?: StringFilter; + /** Filter by the object’s `logPremake` field. */ + logPremake?: IntFilter; + /** Filter by the object’s `logRetention` field. */ + logRetention?: StringFilter; + /** Filter by the object’s `logTableId` field. */ + logTableId?: UUIDFilter; + /** Filter by the object’s `logTableName` field. */ + logTableName?: StringFilter; + /** Negates the expression. */ + not?: RefusalLogModuleFilter; + /** Checks for any expressions in this list. */ + or?: RefusalLogModuleFilter[]; + /** 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 `recordRefusalsFunction` field. */ + recordRefusalsFunction?: StringFilter; + /** Filter by the object’s `rollupRefusalUsageSummaryFunction` field. */ + rollupRefusalUsageSummaryFunction?: StringFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `summaryInterval` field. */ + summaryInterval?: StringFilter; + /** Filter by the object’s `summaryPremake` field. */ + summaryPremake?: IntFilter; + /** Filter by the object’s `summaryRetention` field. */ + summaryRetention?: StringFilter; + /** Filter by the object’s `summaryTableId` field. */ + summaryTableId?: UUIDFilter; + /** Filter by the object’s `summaryTableName` field. */ + summaryTableName?: StringFilter; +} export interface RelationProvisionFilter { /** Checks for all expressions in this list. */ and?: RelationProvisionFilter[]; @@ -7686,11 +8411,103 @@ export interface RelationProvisionFilter { /** Filter by the object’s `useCompositeKey` field. */ useCompositeKey?: BooleanFilter; } +export interface RepositoryModuleFilter { + /** Checks for all expressions in this list. */ + and?: RepositoryModuleFilter[]; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `buildStepsTableId` field. */ + buildStepsTableId?: UUIDFilter; + /** Filter by the object’s `buildStepsTableName` field. */ + buildStepsTableName?: StringFilter; + /** Filter by the object’s `buildsTableId` field. */ + buildsTableId?: UUIDFilter; + /** Filter by the object’s `buildsTableName` field. */ + buildsTableName?: StringFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** 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. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `hasAttachments` field. */ + hasAttachments?: BooleanFilter; + /** Filter by the object’s `hasBuilds` field. */ + hasBuilds?: BooleanFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: RepositoryModuleFilter; + /** Checks for any expressions in this list. */ + or?: RepositoryModuleFilter[]; + /** 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 `proposalCommentsTableId` field. */ + proposalCommentsTableId?: UUIDFilter; + /** Filter by the object’s `proposalCommentsTableName` field. */ + proposalCommentsTableName?: StringFilter; + /** Filter by the object’s `proposalFileViewsTableId` field. */ + proposalFileViewsTableId?: UUIDFilter; + /** Filter by the object’s `proposalFileViewsTableName` field. */ + proposalFileViewsTableName?: StringFilter; + /** Filter by the object’s `proposalReactionsTableId` field. */ + proposalReactionsTableId?: UUIDFilter; + /** Filter by the object’s `proposalReactionsTableName` field. */ + proposalReactionsTableName?: StringFilter; + /** Filter by the object’s `proposalReviewsTableId` field. */ + proposalReviewsTableId?: UUIDFilter; + /** Filter by the object’s `proposalReviewsTableName` field. */ + proposalReviewsTableName?: StringFilter; + /** Filter by the object’s `proposalsTableId` field. */ + proposalsTableId?: UUIDFilter; + /** Filter by the object’s `proposalsTableName` field. */ + proposalsTableName?: StringFilter; + /** Filter by the object’s `provisions` field. */ + provisions?: JSONFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `repositoriesTableId` field. */ + repositoriesTableId?: UUIDFilter; + /** Filter by the object’s `repositoriesTableName` field. */ + repositoriesTableName?: StringFilter; + /** Filter by the object’s `repositoryEventsTableId` field. */ + repositoryEventsTableId?: UUIDFilter; + /** Filter by the object’s `repositoryEventsTableName` field. */ + repositoryEventsTableName?: StringFilter; + /** Filter by the object’s `repositoryRequiredChecksTableId` field. */ + repositoryRequiredChecksTableId?: UUIDFilter; + /** Filter by the object’s `repositoryRequiredChecksTableName` field. */ + repositoryRequiredChecksTableName?: StringFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `search` field. */ + search?: JSONFilter; + /** Filter by the object’s `workflowsTableId` field. */ + workflowsTableId?: UUIDFilter; + /** Filter by the object’s `workflowsTableName` field. */ + workflowsTableName?: StringFilter; +} export interface ResourceModuleFilter { /** Checks for all expressions in this list. */ and?: ResourceModuleFilter[]; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; + /** Filter by the object’s `builderBindingsTableId` field. */ + builderBindingsTableId?: UUIDFilter; + /** Filter by the object’s `builderBindingsTableName` field. */ + builderBindingsTableName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; /** Filter by the object’s `defaultCapabilities` field. */ @@ -7699,10 +8516,6 @@ export interface ResourceModuleFilter { entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ entityTableId?: UUIDFilter; - /** Filter by the object’s `httpRouteModules` relation. */ - httpRouteModules?: ResourceModuleToManyHttpRouteModuleFilter; - /** `httpRouteModules` exist. */ - httpRouteModulesExist?: boolean; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `installationStoreName` field. */ @@ -7737,6 +8550,10 @@ export interface ResourceModuleFilter { provisions?: JSONFilter; /** Filter by the object’s `publicSchemaName` field. */ publicSchemaName?: StringFilter; + /** Filter by the object’s `registryBindingsTableId` field. */ + registryBindingsTableId?: UUIDFilter; + /** Filter by the object’s `registryBindingsTableName` field. */ + registryBindingsTableName?: StringFilter; /** Filter by the object’s `requirementsStateViewName` field. */ requirementsStateViewName?: StringFilter; /** Filter by the object’s `resolvedRequirementsViewName` field. */ @@ -7865,6 +8682,10 @@ export interface RouteModuleFilter { provisions?: JSONFilter; /** Filter by the object’s `publicSchemaName` field. */ publicSchemaName?: StringFilter; + /** Filter by the object’s `redirectsTableId` field. */ + redirectsTableId?: UUIDFilter; + /** Filter by the object’s `redirectsTableName` field. */ + redirectsTableName?: StringFilter; /** Filter by the object’s `resolverFunctionName` field. */ resolverFunctionName?: StringFilter; /** Filter by the object’s `routeBindingsTableId` field. */ @@ -7879,6 +8700,10 @@ export interface RouteModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `scope` field. */ scope?: StringFilter; + /** Filter by the object’s `servingSiteField` field. */ + servingSiteField?: StringFilter; + /** Filter by the object’s `storageKey` field. */ + storageKey?: StringFilter; } export interface ScopeTypesModuleFilter { /** Checks for all expressions in this list. */ @@ -7909,6 +8734,8 @@ export interface SecureTableProvisionFilter { grants?: JSONFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `module` field. */ + module?: JSONFilter; /** Filter by the object’s `nodes` field. */ nodes?: JSONFilter; /** Negates the expression. */ @@ -7917,6 +8744,8 @@ export interface SecureTableProvisionFilter { or?: SecureTableProvisionFilter[]; /** Filter by the object’s `outFields` field. */ outFields?: UUIDListFilter; + /** Filter by the object’s `owns` field. */ + owns?: JSONFilter; /** Filter by the object’s `policies` field. */ policies?: JSONFilter; /** Filter by the object’s `schemaId` field. */ @@ -8049,6 +8878,10 @@ export interface SiteSurfaceModuleFilter { siteModulesTableId?: UUIDFilter; /** Filter by the object’s `siteModulesTableName` field. */ siteModulesTableName?: StringFilter; + /** Filter by the object’s `siteReleasesTableId` field. */ + siteReleasesTableId?: UUIDFilter; + /** Filter by the object’s `siteReleasesTableName` field. */ + siteReleasesTableName?: StringFilter; /** Filter by the object’s `siteThemesTableId` field. */ siteThemesTableId?: UUIDFilter; /** Filter by the object’s `siteThemesTableName` field. */ @@ -8061,10 +8894,10 @@ export interface SiteSurfaceModuleFilter { sitesTableId?: UUIDFilter; /** Filter by the object’s `sitesTableName` field. */ sitesTableName?: StringFilter; + /** Filter by the object’s `storageKey` field. */ + storageKey?: StringFilter; } export interface StorageLogModuleFilter { - /** Filter by the object’s `actorFkTableId` field. */ - actorFkTableId?: UUIDFilter; /** Checks for all expressions in this list. */ and?: StorageLogModuleFilter[]; /** Filter by the object’s `apiName` field. */ @@ -8073,8 +8906,6 @@ export interface StorageLogModuleFilter { databaseId?: UUIDFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; - /** Filter by the object’s `entityFkTableId` field. */ - entityFkTableId?: UUIDFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `interval` field. */ @@ -8097,6 +8928,8 @@ export interface StorageLogModuleFilter { publicSchemaName?: StringFilter; /** Filter by the object’s `retention` field. */ retention?: StringFilter; + /** Filter by the object’s `rollupFunctionName` field. */ + rollupFunctionName?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `scope` field. */ @@ -8163,12 +8996,10 @@ export interface StorageModuleFilter { hasPathShares?: BooleanFilter; /** Filter by the object’s `hasVersioning` field. */ hasVersioning?: BooleanFilter; - /** Filter by the object’s `httpRouteModules` relation. */ - httpRouteModules?: StorageModuleToManyHttpRouteModuleFilter; - /** `httpRouteModules` exist. */ - httpRouteModulesExist?: boolean; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `key` field. */ + key?: StringFilter; /** Filter by the object’s `maxBulkFiles` field. */ maxBulkFiles?: IntFilter; /** Filter by the object’s `maxBulkTotalSize` field. */ @@ -8209,8 +9040,6 @@ export interface StorageModuleFilter { uploadUrlExpirySeconds?: IntFilter; } export interface TransferLogModuleFilter { - /** Filter by the object’s `actorFkTableId` field. */ - actorFkTableId?: UUIDFilter; /** Checks for all expressions in this list. */ and?: TransferLogModuleFilter[]; /** Filter by the object’s `apiName` field. */ @@ -8219,8 +9048,6 @@ export interface TransferLogModuleFilter { databaseId?: UUIDFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; - /** Filter by the object’s `entityFkTableId` field. */ - entityFkTableId?: UUIDFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `interval` field. */ @@ -8243,6 +9070,8 @@ export interface TransferLogModuleFilter { publicSchemaName?: StringFilter; /** Filter by the object’s `retention` field. */ retention?: StringFilter; + /** Filter by the object’s `rollupFunctionName` field. */ + rollupFunctionName?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `scope` field. */ @@ -8287,10 +9116,14 @@ export interface UserAuthModuleFilter { or?: UserAuthModuleFilter[]; /** Filter by the object’s `privateApiName` field. */ privateApiName?: StringFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; /** Filter by the object’s `requestCrossOriginTokenFunction` field. */ requestCrossOriginTokenFunction?: StringFilter; /** Filter by the object’s `resetPasswordFunction` field. */ resetPasswordFunction?: StringFilter; + /** Filter by the object’s `revokeSessionTreeFunction` field. */ + revokeSessionTreeFunction?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `secretsTableId` field. */ @@ -8313,6 +9146,8 @@ export interface UserAuthModuleFilter { signOutFunction?: StringFilter; /** Filter by the object’s `signUpFunction` field. */ signUpFunction?: StringFilter; + /** Filter by the object’s `sweepExpiredSessionsFunction` field. */ + sweepExpiredSessionsFunction?: StringFilter; /** Filter by the object’s `usersTableId` field. */ usersTableId?: UUIDFilter; /** Filter by the object’s `verifyEmailFunction` field. */ @@ -8580,16 +9415,28 @@ export type AgentModuleOrderBy = | 'DATABASE_ID_DESC' | 'DEFAULT_CAPABILITIES_ASC' | 'DEFAULT_CAPABILITIES_DESC' + | 'DEFAULT_VISIBILITY_ASC' + | 'DEFAULT_VISIBILITY_DESC' | 'ENTITY_FIELD_ASC' | 'ENTITY_FIELD_DESC' | 'ENTITY_TABLE_ID_ASC' | 'ENTITY_TABLE_ID_DESC' + | 'EVENT_TABLE_ID_ASC' + | 'EVENT_TABLE_ID_DESC' + | 'EVENT_TABLE_NAME_ASC' + | 'EVENT_TABLE_NAME_DESC' | 'HAS_AGENTS_ASC' | 'HAS_AGENTS_DESC' + | 'HAS_ATTACHMENTS_ASC' + | 'HAS_ATTACHMENTS_DESC' | 'HAS_PLANS_ASC' | 'HAS_PLANS_DESC' + | 'HAS_REPOSITORY_RESOURCES_ASC' + | 'HAS_REPOSITORY_RESOURCES_DESC' | 'HAS_RESOURCES_ASC' | 'HAS_RESOURCES_DESC' + | 'HAS_RUNS_ASC' + | 'HAS_RUNS_DESC' | 'ID_ASC' | 'ID_DESC' | 'MESSAGE_TABLE_ID_ASC' @@ -8627,16 +9474,22 @@ export type AgentModuleOrderBy = | 'PUBLIC_SCHEMA_NAME_DESC' | 'RESOURCES_ASC' | 'RESOURCES_DESC' + | 'RESOURCE_REPOSITORY_TABLE_ID_ASC' + | 'RESOURCE_REPOSITORY_TABLE_ID_DESC' + | 'RESOURCE_REPOSITORY_TABLE_NAME_ASC' + | 'RESOURCE_REPOSITORY_TABLE_NAME_DESC' | 'RESOURCE_TABLE_ID_ASC' | 'RESOURCE_TABLE_ID_DESC' | 'RESOURCE_TABLE_NAME_ASC' | 'RESOURCE_TABLE_NAME_DESC' + | 'RUN_TABLE_ID_ASC' + | 'RUN_TABLE_ID_DESC' + | 'RUN_TABLE_NAME_ASC' + | 'RUN_TABLE_NAME_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC' - | 'SHARED_ASC' - | 'SHARED_DESC' | 'TASK_TABLE_ID_ASC' | 'TASK_TABLE_ID_DESC' | 'TASK_TABLE_NAME_ASC' @@ -8644,7 +9497,11 @@ export type AgentModuleOrderBy = | 'THREAD_TABLE_ID_ASC' | 'THREAD_TABLE_ID_DESC' | 'THREAD_TABLE_NAME_ASC' - | 'THREAD_TABLE_NAME_DESC'; + | 'THREAD_TABLE_NAME_DESC' + | 'WORKSPACE_TABLE_ID_ASC' + | 'WORKSPACE_TABLE_ID_DESC' + | 'WORKSPACE_TABLE_NAME_ASC' + | 'WORKSPACE_TABLE_NAME_DESC'; export type ApiSurfaceModuleOrderBy = | 'APIS_TABLE_ID_ASC' | 'APIS_TABLE_ID_DESC' @@ -8704,6 +9561,8 @@ export type AppModuleOrderBy = | 'APP_COMPONENTS_TABLE_ID_DESC' | 'APP_COMPONENTS_TABLE_NAME_ASC' | 'APP_COMPONENTS_TABLE_NAME_DESC' + | 'APP_STORE_IDENTITIES_TABLE_NAME_ASC' + | 'APP_STORE_IDENTITIES_TABLE_NAME_DESC' | 'CATALOG_MODULE_ID_ASC' | 'CATALOG_MODULE_ID_DESC' | 'DATABASE_ID_ASC' @@ -8798,12 +9657,18 @@ export type BillingModuleOrderBy = | 'SWEEP_EXPIRED_SUBSCRIPTIONS_FUNCTION_ASC' | 'SWEEP_EXPIRED_SUBSCRIPTIONS_FUNCTION_DESC'; export type BillingProviderModuleOrderBy = + | 'ACTIVATE_PLAN_SUBSCRIPTION_FUNCTION_ASC' + | 'ACTIVATE_PLAN_SUBSCRIPTION_FUNCTION_DESC' | 'API_NAME_ASC' | 'API_NAME_DESC' | 'BILLING_CUSTOMERS_TABLE_ID_ASC' | 'BILLING_CUSTOMERS_TABLE_ID_DESC' | 'BILLING_CUSTOMERS_TABLE_NAME_ASC' | 'BILLING_CUSTOMERS_TABLE_NAME_DESC' + | 'BILLING_DISPUTES_TABLE_ID_ASC' + | 'BILLING_DISPUTES_TABLE_ID_DESC' + | 'BILLING_DISPUTES_TABLE_NAME_ASC' + | 'BILLING_DISPUTES_TABLE_NAME_DESC' | 'BILLING_INVOICES_TABLE_ID_ASC' | 'BILLING_INVOICES_TABLE_ID_DESC' | 'BILLING_INVOICES_TABLE_NAME_ASC' @@ -8830,6 +9695,18 @@ export type BillingProviderModuleOrderBy = | 'BILLING_WEBHOOK_EVENTS_TABLE_NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'GET_ACTIVE_PLAN_PRICING_FUNCTION_ASC' + | 'GET_ACTIVE_PLAN_PRICING_FUNCTION_DESC' + | 'GET_BILLING_CUSTOMER_FUNCTION_ASC' + | 'GET_BILLING_CUSTOMER_FUNCTION_DESC' + | 'GET_BILLING_PRICE_FUNCTION_ASC' + | 'GET_BILLING_PRICE_FUNCTION_DESC' + | 'GET_BILLING_PRODUCT_FUNCTION_ASC' + | 'GET_BILLING_PRODUCT_FUNCTION_DESC' + | 'GET_BILLING_SUBSCRIPTION_FUNCTION_ASC' + | 'GET_BILLING_SUBSCRIPTION_FUNCTION_DESC' + | 'GET_FALLBACK_FREE_PLAN_FUNCTION_ASC' + | 'GET_FALLBACK_FREE_PLAN_FUNCTION_DESC' | 'ID_ASC' | 'ID_DESC' | 'LIST_PENDING_USAGE_SYNC_FUNCTION_ASC' @@ -8853,12 +9730,24 @@ export type BillingProviderModuleOrderBy = | 'PRODUCTS_TABLE_ID_DESC' | 'PROVIDER_ASC' | 'PROVIDER_DESC' + | 'RECORD_DISPUTE_FUNCTION_ASC' + | 'RECORD_DISPUTE_FUNCTION_DESC' | 'RECORD_REFUND_FUNCTION_ASC' | 'RECORD_REFUND_FUNCTION_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'SUBSCRIPTIONS_TABLE_ID_ASC' | 'SUBSCRIPTIONS_TABLE_ID_DESC' + | 'SWEEP_OVERDUE_SUBSCRIPTIONS_FUNCTION_ASC' + | 'SWEEP_OVERDUE_SUBSCRIPTIONS_FUNCTION_DESC' + | 'UPSERT_BILLING_CUSTOMER_FUNCTION_ASC' + | 'UPSERT_BILLING_CUSTOMER_FUNCTION_DESC' + | 'UPSERT_BILLING_PRICE_FUNCTION_ASC' + | 'UPSERT_BILLING_PRICE_FUNCTION_DESC' + | 'UPSERT_BILLING_PRODUCT_FUNCTION_ASC' + | 'UPSERT_BILLING_PRODUCT_FUNCTION_DESC' + | 'UPSERT_BILLING_SUBSCRIPTION_FUNCTION_ASC' + | 'UPSERT_BILLING_SUBSCRIPTION_FUNCTION_DESC' | 'UPSERT_INVOICE_FUNCTION_ASC' | 'UPSERT_INVOICE_FUNCTION_DESC'; export type BlueprintOrderBy = @@ -9018,6 +9907,10 @@ export type CatalogModuleOrderBy = | 'APPS_TABLE_ID_DESC' | 'APPS_TABLE_NAME_ASC' | 'APPS_TABLE_NAME_DESC' + | 'APP_STORE_IDENTITIES_TABLE_ID_ASC' + | 'APP_STORE_IDENTITIES_TABLE_ID_DESC' + | 'APP_STORE_IDENTITIES_TABLE_NAME_ASC' + | 'APP_STORE_IDENTITIES_TABLE_NAME_DESC' | 'BINDINGS_TABLE_ID_ASC' | 'BINDINGS_TABLE_ID_DESC' | 'BINDINGS_TABLE_NAME_ASC' @@ -9042,6 +9935,14 @@ export type CatalogModuleOrderBy = | 'FUNCTIONS_TABLE_NAME_DESC' | 'ID_ASC' | 'ID_DESC' + | 'IMAGES_TABLE_ID_ASC' + | 'IMAGES_TABLE_ID_DESC' + | 'IMAGES_TABLE_NAME_ASC' + | 'IMAGES_TABLE_NAME_DESC' + | 'MANAGED_DOMAINS_TABLE_ID_ASC' + | 'MANAGED_DOMAINS_TABLE_ID_DESC' + | 'MANAGED_DOMAINS_TABLE_NAME_ASC' + | 'MANAGED_DOMAINS_TABLE_NAME_DESC' | 'NAMESPACES_TABLE_ID_ASC' | 'NAMESPACES_TABLE_ID_DESC' | 'NAMESPACES_TABLE_NAME_ASC' @@ -9057,6 +9958,10 @@ export type CatalogModuleOrderBy = | 'PROVISIONS_DESC' | 'PUBLIC_SCHEMA_NAME_ASC' | 'PUBLIC_SCHEMA_NAME_DESC' + | 'REDIRECTS_TABLE_ID_ASC' + | 'REDIRECTS_TABLE_ID_DESC' + | 'REDIRECTS_TABLE_NAME_ASC' + | 'REDIRECTS_TABLE_NAME_DESC' | 'RESOURCES_TABLE_ID_ASC' | 'RESOURCES_TABLE_ID_DESC' | 'RESOURCES_TABLE_NAME_ASC' @@ -9093,26 +9998,42 @@ export type CatalogModuleOrderBy = | 'SITES_WEB_CONFIG_TABLE_ID_DESC' | 'SITES_WEB_CONFIG_TABLE_NAME_ASC' | 'SITES_WEB_CONFIG_TABLE_NAME_DESC'; -export type ComputeLogModuleOrderBy = - | 'ACTOR_FK_TABLE_ID_ASC' - | 'ACTOR_FK_TABLE_ID_DESC' +export type ClusterModuleOrderBy = | 'API_NAME_ASC' | 'API_NAME_DESC' - | 'COMPUTE_LOG_TABLE_ID_ASC' - | 'COMPUTE_LOG_TABLE_ID_DESC' - | 'COMPUTE_LOG_TABLE_NAME_ASC' - | 'COMPUTE_LOG_TABLE_NAME_DESC' + | 'CLUSTERS_TABLE_ID_ASC' + | 'CLUSTERS_TABLE_ID_DESC' + | 'CLUSTERS_TABLE_NAME_ASC' + | 'CLUSTERS_TABLE_NAME_DESC' + | 'CLUSTER_EVENTS_TABLE_ID_ASC' + | 'CLUSTER_EVENTS_TABLE_ID_DESC' + | 'CLUSTER_EVENTS_TABLE_NAME_ASC' + | 'CLUSTER_EVENTS_TABLE_NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'DATABASE_PLACEMENTS_TABLE_ID_ASC' + | 'DATABASE_PLACEMENTS_TABLE_ID_DESC' + | 'DATABASE_PLACEMENTS_TABLE_NAME_ASC' + | 'DATABASE_PLACEMENTS_TABLE_NAME_DESC' + | 'DATABASE_SERVERS_TABLE_ID_ASC' + | 'DATABASE_SERVERS_TABLE_ID_DESC' + | 'DATABASE_SERVERS_TABLE_NAME_ASC' + | 'DATABASE_SERVERS_TABLE_NAME_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'ENTITY_FIELD_ASC' | 'ENTITY_FIELD_DESC' - | 'ENTITY_FK_TABLE_ID_ASC' - | 'ENTITY_FK_TABLE_ID_DESC' | 'ID_ASC' | 'ID_DESC' - | 'INTERVAL_ASC' - | 'INTERVAL_DESC' | 'NATURAL' + | 'PARTITION_INTERVAL_ASC' + | 'PARTITION_INTERVAL_DESC' + | 'PHYSICAL_DATABASES_TABLE_ID_ASC' + | 'PHYSICAL_DATABASES_TABLE_ID_DESC' + | 'PHYSICAL_DATABASES_TABLE_NAME_ASC' + | 'PHYSICAL_DATABASES_TABLE_NAME_DESC' + | 'POLICIES_ASC' + | 'POLICIES_DESC' | 'PREFIX_ASC' | 'PREFIX_DESC' | 'PREMAKE_ASC' @@ -9125,6 +10046,8 @@ export type ComputeLogModuleOrderBy = | 'PRIVATE_SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_NAME_ASC' | 'PRIVATE_SCHEMA_NAME_DESC' + | 'PROVISIONS_ASC' + | 'PROVISIONS_DESC' | 'PUBLIC_SCHEMA_NAME_ASC' | 'PUBLIC_SCHEMA_NAME_DESC' | 'RETENTION_ASC' @@ -9132,31 +10055,49 @@ export type ComputeLogModuleOrderBy = | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'USAGE_SUMMARY_TABLE_ID_ASC' - | 'USAGE_SUMMARY_TABLE_ID_DESC' - | 'USAGE_SUMMARY_TABLE_NAME_ASC' - | 'USAGE_SUMMARY_TABLE_NAME_DESC'; -export type ConfigSecretsUserModuleOrderBy = + | 'SCOPE_DESC'; +export type ComputeLogModuleOrderBy = | 'API_NAME_ASC' | 'API_NAME_DESC' + | 'COMPUTE_LOG_TABLE_ID_ASC' + | 'COMPUTE_LOG_TABLE_ID_DESC' + | 'COMPUTE_LOG_TABLE_NAME_ASC' + | 'COMPUTE_LOG_TABLE_NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'ENTITY_FIELD_ASC' | 'ENTITY_FIELD_DESC' | 'ID_ASC' | 'ID_DESC' + | 'INTERVAL_ASC' + | 'INTERVAL_DESC' | 'NATURAL' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'PREMAKE_ASC' + | 'PREMAKE_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' + | 'RETENTION_ASC' + | 'RETENTION_DESC' + | 'ROLLUP_FUNCTION_NAME_ASC' + | 'ROLLUP_FUNCTION_NAME_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_NAME_DESC'; + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'USAGE_SUMMARY_TABLE_ID_ASC' + | 'USAGE_SUMMARY_TABLE_ID_DESC' + | 'USAGE_SUMMARY_TABLE_NAME_ASC' + | 'USAGE_SUMMARY_TABLE_NAME_DESC'; export type ConnectedAccountsModuleOrderBy = | 'API_NAME_ASC' | 'API_NAME_DESC' @@ -9302,6 +10243,8 @@ export type DataCapabilitiesFieldOrderBy = export type DatabaseProvisionModuleOrderBy = | 'ASYNC_ASC' | 'ASYNC_DESC' + | 'BOOTSTRAP_ACTOR_ID_ASC' + | 'BOOTSTRAP_ACTOR_ID_DESC' | 'BOOTSTRAP_ERROR_ASC' | 'BOOTSTRAP_ERROR_DESC' | 'BOOTSTRAP_STATUS_ASC' @@ -10054,7 +10997,9 @@ export type FunctionModuleOrderBy = | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'SCOPE_ASC' - | 'SCOPE_DESC'; + | 'SCOPE_DESC' + | 'STORAGE_KEY_ASC' + | 'STORAGE_KEY_DESC'; export type GraphExecutionModuleOrderBy = | 'API_NAME_ASC' | 'API_NAME_DESC' @@ -10195,82 +11140,80 @@ export type HierarchyModuleOrderBy = | 'SPRT_TABLE_NAME_DESC' | 'USERS_TABLE_ID_ASC' | 'USERS_TABLE_ID_DESC'; -export type HttpRouteModuleOrderBy = +export type I18NModuleOrderBy = | 'API_NAME_ASC' | 'API_NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DEFAULT_CAPABILITIES_ASC' - | 'DEFAULT_CAPABILITIES_DESC' - | 'ENTITY_FIELD_ASC' - | 'ENTITY_FIELD_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' - | 'FUNCTION_MODULE_ID_ASC' - | 'FUNCTION_MODULE_ID_DESC' - | 'HTTP_ROUTES_TABLE_ID_ASC' - | 'HTTP_ROUTES_TABLE_ID_DESC' - | 'HTTP_ROUTES_TABLE_NAME_ASC' - | 'HTTP_ROUTES_TABLE_NAME_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' | 'PRIVATE_SCHEMA_ID_ASC' | 'PRIVATE_SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_NAME_ASC' - | 'PRIVATE_SCHEMA_NAME_DESC' - | 'PROVISIONS_ASC' - | 'PROVISIONS_DESC' - | 'PUBLIC_SCHEMA_NAME_ASC' - | 'PUBLIC_SCHEMA_NAME_DESC' - | 'RESOLVER_FUNCTION_NAME_ASC' - | 'RESOLVER_FUNCTION_NAME_DESC' - | 'RESOURCE_MODULE_ID_ASC' - | 'RESOURCE_MODULE_ID_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'STORAGE_MODULE_ID_ASC' - | 'STORAGE_MODULE_ID_DESC'; -export type I18NModuleOrderBy = + | 'SETTINGS_TABLE_ID_ASC' + | 'SETTINGS_TABLE_ID_DESC'; +export type IdentityProvidersModuleOrderBy = | 'API_NAME_ASC' | 'API_NAME_DESC' | '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' + | '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' - | 'SETTINGS_TABLE_ID_ASC' - | 'SETTINGS_TABLE_ID_DESC'; -export type IdentityProvidersModuleOrderBy = + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'TABLE_NAME_ASC' + | 'TABLE_NAME_DESC'; +export type ImageModuleOrderBy = | 'API_NAME_ASC' | 'API_NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'ENTITY_FIELD_ASC' | 'ENTITY_FIELD_DESC' | 'ENTITY_TABLE_ID_ASC' | 'ENTITY_TABLE_ID_DESC' | 'ID_ASC' | 'ID_DESC' + | 'IMAGES_TABLE_ID_ASC' + | 'IMAGES_TABLE_ID_DESC' + | 'IMAGES_TABLE_NAME_ASC' + | 'IMAGES_TABLE_NAME_DESC' + | 'IMAGE_GRANTS_TABLE_ID_ASC' + | 'IMAGE_GRANTS_TABLE_ID_DESC' + | 'IMAGE_GRANTS_TABLE_NAME_ASC' + | 'IMAGE_GRANTS_TABLE_NAME_DESC' | 'NATURAL' + | 'POLICIES_ASC' + | 'POLICIES_DESC' | 'PREFIX_ASC' | 'PREFIX_DESC' | 'PRIMARY_KEY_ASC' @@ -10281,27 +11224,29 @@ export type IdentityProvidersModuleOrderBy = | 'PRIVATE_SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_NAME_ASC' | 'PRIVATE_SCHEMA_NAME_DESC' + | 'PROVISIONS_ASC' + | 'PROVISIONS_DESC' | 'PUBLIC_SCHEMA_NAME_ASC' | 'PUBLIC_SCHEMA_NAME_DESC' + | 'REGISTRIES_TABLE_ID_ASC' + | 'REGISTRIES_TABLE_ID_DESC' + | 'REGISTRIES_TABLE_NAME_ASC' + | 'REGISTRIES_TABLE_NAME_DESC' + | 'REGISTRY_GRANTS_TABLE_ID_ASC' + | 'REGISTRY_GRANTS_TABLE_ID_DESC' + | 'REGISTRY_GRANTS_TABLE_NAME_ASC' + | 'REGISTRY_GRANTS_TABLE_NAME_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_NAME_DESC'; + | 'SCOPE_DESC'; export type InferenceLogModuleOrderBy = - | 'ACTOR_FK_TABLE_ID_ASC' - | 'ACTOR_FK_TABLE_ID_DESC' | 'API_NAME_ASC' | 'API_NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'ENTITY_FIELD_ASC' | 'ENTITY_FIELD_DESC' - | 'ENTITY_FK_TABLE_ID_ASC' - | 'ENTITY_FK_TABLE_ID_DESC' | 'ID_ASC' | 'ID_DESC' | 'INFERENCE_LOG_TABLE_ID_ASC' @@ -10327,6 +11272,8 @@ export type InferenceLogModuleOrderBy = | 'PUBLIC_SCHEMA_NAME_DESC' | 'RETENTION_ASC' | 'RETENTION_DESC' + | 'ROLLUP_FUNCTION_NAME_ASC' + | 'ROLLUP_FUNCTION_NAME_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'SCOPE_ASC' @@ -10439,6 +11386,42 @@ export type IntegrationProvidersModuleOrderBy = | 'TABLE_ID_DESC' | 'TABLE_NAME_ASC' | 'TABLE_NAME_DESC'; +export type InternalConfigModuleOrderBy = + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'INTERNAL_CONFIG_TABLE_ID_ASC' + | 'INTERNAL_CONFIG_TABLE_ID_DESC' + | 'INTERNAL_CONFIG_TABLE_NAME_ASC' + | 'INTERNAL_CONFIG_TABLE_NAME_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_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC'; export type InternalSecretsModuleOrderBy = | 'API_NAME_ASC' | 'API_NAME_DESC' @@ -10517,14 +11500,54 @@ export type InvitesModuleOrderBy = | 'SUBMIT_INVITE_CODE_FUNCTION_DESC' | 'USERS_TABLE_ID_ASC' | 'USERS_TABLE_ID_DESC'; -export type LimitsModuleOrderBy = - | 'ACTOR_TABLE_ID_ASC' - | 'ACTOR_TABLE_ID_DESC' - | 'AGGREGATE_TABLE_ID_ASC' - | 'AGGREGATE_TABLE_ID_DESC' +export type K8sAdmissionModuleOrderBy = | 'API_NAME_ASC' | 'API_NAME_DESC' - | 'CAP_CHECK_TRIGGER_ASC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'K8S_RESOURCE_KINDS_TABLE_ID_ASC' + | 'K8S_RESOURCE_KINDS_TABLE_ID_DESC' + | 'K8S_SPEC_RULES_TABLE_ID_ASC' + | 'K8S_SPEC_RULES_TABLE_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 LimitsModuleOrderBy = + | 'ACTOR_TABLE_ID_ASC' + | 'ACTOR_TABLE_ID_DESC' + | 'AGGREGATE_TABLE_ID_ASC' + | 'AGGREGATE_TABLE_ID_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'CAP_CHECK_TRIGGER_ASC' | 'CAP_CHECK_TRIGGER_DESC' | 'CREDIT_CODES_TABLE_ID_ASC' | 'CREDIT_CODES_TABLE_ID_DESC' @@ -10597,6 +11620,58 @@ export type LimitsModuleOrderBy = | 'TABLE_ID_DESC' | 'TABLE_NAME_ASC' | 'TABLE_NAME_DESC'; +export type MachineModuleOrderBy = + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'MACHINES_TABLE_ID_ASC' + | 'MACHINES_TABLE_ID_DESC' + | 'MACHINES_TABLE_NAME_ASC' + | 'MACHINES_TABLE_NAME_DESC' + | 'MACHINE_MESSAGES_TABLE_ID_ASC' + | 'MACHINE_MESSAGES_TABLE_ID_DESC' + | 'MACHINE_MESSAGES_TABLE_NAME_ASC' + | 'MACHINE_MESSAGES_TABLE_NAME_DESC' + | 'MACHINE_SESSIONS_TABLE_ID_ASC' + | 'MACHINE_SESSIONS_TABLE_ID_DESC' + | 'MACHINE_SESSIONS_TABLE_NAME_ASC' + | 'MACHINE_SESSIONS_TABLE_NAME_DESC' + | 'NATURAL' + | 'PARTITION_INTERVAL_ASC' + | 'PARTITION_INTERVAL_DESC' + | 'POLICIES_ASC' + | 'POLICIES_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'PREMAKE_ASC' + | 'PREMAKE_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_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'RETENTION_ASC' + | 'RETENTION_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC'; export type MembershipTypesModuleOrderBy = | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' @@ -10712,6 +11787,8 @@ export type MerkleStoreModuleOrderBy = | 'DATABASE_ID_DESC' | 'ENTITY_FIELD_ASC' | 'ENTITY_FIELD_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' | 'FUNCTION_PREFIX_ASC' | 'FUNCTION_PREFIX_DESC' | 'ID_ASC' @@ -10881,6 +11958,14 @@ export type PagesModuleOrderBy = | 'POLICIES_DESC' | 'PREFIX_ASC' | 'PREFIX_DESC' + | 'PREVIEW_COMMIT_FUNCTION_NAME_ASC' + | 'PREVIEW_COMMIT_FUNCTION_NAME_DESC' + | 'PREVIEW_SET_FUNCTION_NAME_ASC' + | 'PREVIEW_SET_FUNCTION_NAME_DESC' + | 'PREVIEW_TOKEN_MINT_FUNCTION_NAME_ASC' + | 'PREVIEW_TOKEN_MINT_FUNCTION_NAME_DESC' + | 'PREVIEW_TOKEN_VERIFIER_FUNCTION_NAME_ASC' + | 'PREVIEW_TOKEN_VERIFIER_FUNCTION_NAME_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'PRIVATE_API_NAME_ASC' @@ -10895,6 +11980,8 @@ export type PagesModuleOrderBy = | 'PUBLIC_SCHEMA_ID_DESC' | 'PUBLIC_SCHEMA_NAME_ASC' | 'PUBLIC_SCHEMA_NAME_DESC' + | 'RELEASE_MANIFEST_FUNCTION_NAME_ASC' + | 'RELEASE_MANIFEST_FUNCTION_NAME_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC' | 'SITES_TABLE_ID_ASC' @@ -11001,6 +12088,8 @@ export type PrincipalAuthModuleOrderBy = | 'PRINCIPAL_ENTITIES_TABLE_ID_DESC' | 'PRINCIPAL_SCOPE_OVERRIDES_TABLE_ID_ASC' | 'PRINCIPAL_SCOPE_OVERRIDES_TABLE_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' | 'REVOKE_ORG_API_KEY_FUNCTION_ASC' | 'REVOKE_ORG_API_KEY_FUNCTION_DESC' | 'SCHEMA_ID_ASC' @@ -11009,6 +12098,8 @@ export type PrincipalAuthModuleOrderBy = | 'SESSIONS_TABLE_ID_DESC' | 'SESSION_CREDENTIALS_TABLE_ID_ASC' | 'SESSION_CREDENTIALS_TABLE_ID_DESC' + | 'SWEEP_EXPIRED_PRINCIPALS_FUNCTION_ASC' + | 'SWEEP_EXPIRED_PRINCIPALS_FUNCTION_DESC' | 'USERS_TABLE_ID_ASC' | 'USERS_TABLE_ID_DESC'; export type ProfilesModuleOrderBy = @@ -11161,6 +12252,56 @@ export type RealtimeModuleOrderBy = | 'SOURCE_REGISTRY_TABLE_ID_DESC' | 'SUBSCRIPTIONS_SCHEMA_ID_ASC' | 'SUBSCRIPTIONS_SCHEMA_ID_DESC'; +export type RefusalLogModuleOrderBy = + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'LOG_INTERVAL_ASC' + | 'LOG_INTERVAL_DESC' + | 'LOG_PREMAKE_ASC' + | 'LOG_PREMAKE_DESC' + | 'LOG_RETENTION_ASC' + | 'LOG_RETENTION_DESC' + | 'LOG_TABLE_ID_ASC' + | 'LOG_TABLE_ID_DESC' + | 'LOG_TABLE_NAME_ASC' + | 'LOG_TABLE_NAME_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' + | 'RECORD_REFUSALS_FUNCTION_ASC' + | 'RECORD_REFUSALS_FUNCTION_DESC' + | 'ROLLUP_REFUSAL_USAGE_SUMMARY_FUNCTION_ASC' + | 'ROLLUP_REFUSAL_USAGE_SUMMARY_FUNCTION_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'SUMMARY_INTERVAL_ASC' + | 'SUMMARY_INTERVAL_DESC' + | 'SUMMARY_PREMAKE_ASC' + | 'SUMMARY_PREMAKE_DESC' + | 'SUMMARY_RETENTION_ASC' + | 'SUMMARY_RETENTION_DESC' + | 'SUMMARY_TABLE_ID_ASC' + | 'SUMMARY_TABLE_ID_DESC' + | 'SUMMARY_TABLE_NAME_ASC' + | 'SUMMARY_TABLE_NAME_DESC'; export type RelationProvisionOrderBy = | 'API_REQUIRED_ASC' | 'API_REQUIRED_DESC' @@ -11213,9 +12354,97 @@ export type RelationProvisionOrderBy = | 'TARGET_TABLE_ID_DESC' | 'USE_COMPOSITE_KEY_ASC' | 'USE_COMPOSITE_KEY_DESC'; +export type RepositoryModuleOrderBy = + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'BUILDS_TABLE_ID_ASC' + | 'BUILDS_TABLE_ID_DESC' + | 'BUILDS_TABLE_NAME_ASC' + | 'BUILDS_TABLE_NAME_DESC' + | 'BUILD_STEPS_TABLE_ID_ASC' + | 'BUILD_STEPS_TABLE_ID_DESC' + | 'BUILD_STEPS_TABLE_NAME_ASC' + | 'BUILD_STEPS_TABLE_NAME_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'HAS_ATTACHMENTS_ASC' + | 'HAS_ATTACHMENTS_DESC' + | 'HAS_BUILDS_ASC' + | 'HAS_BUILDS_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' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' + | 'PROPOSALS_TABLE_ID_ASC' + | 'PROPOSALS_TABLE_ID_DESC' + | 'PROPOSALS_TABLE_NAME_ASC' + | 'PROPOSALS_TABLE_NAME_DESC' + | 'PROPOSAL_COMMENTS_TABLE_ID_ASC' + | 'PROPOSAL_COMMENTS_TABLE_ID_DESC' + | 'PROPOSAL_COMMENTS_TABLE_NAME_ASC' + | 'PROPOSAL_COMMENTS_TABLE_NAME_DESC' + | 'PROPOSAL_FILE_VIEWS_TABLE_ID_ASC' + | 'PROPOSAL_FILE_VIEWS_TABLE_ID_DESC' + | 'PROPOSAL_FILE_VIEWS_TABLE_NAME_ASC' + | 'PROPOSAL_FILE_VIEWS_TABLE_NAME_DESC' + | 'PROPOSAL_REACTIONS_TABLE_ID_ASC' + | 'PROPOSAL_REACTIONS_TABLE_ID_DESC' + | 'PROPOSAL_REACTIONS_TABLE_NAME_ASC' + | 'PROPOSAL_REACTIONS_TABLE_NAME_DESC' + | 'PROPOSAL_REVIEWS_TABLE_ID_ASC' + | 'PROPOSAL_REVIEWS_TABLE_ID_DESC' + | 'PROPOSAL_REVIEWS_TABLE_NAME_ASC' + | 'PROPOSAL_REVIEWS_TABLE_NAME_DESC' + | 'PROVISIONS_ASC' + | 'PROVISIONS_DESC' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'REPOSITORIES_TABLE_ID_ASC' + | 'REPOSITORIES_TABLE_ID_DESC' + | 'REPOSITORIES_TABLE_NAME_ASC' + | 'REPOSITORIES_TABLE_NAME_DESC' + | 'REPOSITORY_EVENTS_TABLE_ID_ASC' + | 'REPOSITORY_EVENTS_TABLE_ID_DESC' + | 'REPOSITORY_EVENTS_TABLE_NAME_ASC' + | 'REPOSITORY_EVENTS_TABLE_NAME_DESC' + | 'REPOSITORY_REQUIRED_CHECKS_TABLE_ID_ASC' + | 'REPOSITORY_REQUIRED_CHECKS_TABLE_ID_DESC' + | 'REPOSITORY_REQUIRED_CHECKS_TABLE_NAME_ASC' + | 'REPOSITORY_REQUIRED_CHECKS_TABLE_NAME_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'SEARCH_ASC' + | 'SEARCH_DESC' + | 'WORKFLOWS_TABLE_ID_ASC' + | 'WORKFLOWS_TABLE_ID_DESC' + | 'WORKFLOWS_TABLE_NAME_ASC' + | 'WORKFLOWS_TABLE_NAME_DESC'; export type ResourceModuleOrderBy = | 'API_NAME_ASC' | 'API_NAME_DESC' + | 'BUILDER_BINDINGS_TABLE_ID_ASC' + | 'BUILDER_BINDINGS_TABLE_ID_DESC' + | 'BUILDER_BINDINGS_TABLE_NAME_ASC' + | 'BUILDER_BINDINGS_TABLE_NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'DEFAULT_CAPABILITIES_ASC' @@ -11249,6 +12478,10 @@ export type ResourceModuleOrderBy = | 'PROVISIONS_DESC' | 'PUBLIC_SCHEMA_NAME_ASC' | 'PUBLIC_SCHEMA_NAME_DESC' + | 'REGISTRY_BINDINGS_TABLE_ID_ASC' + | 'REGISTRY_BINDINGS_TABLE_ID_DESC' + | 'REGISTRY_BINDINGS_TABLE_NAME_ASC' + | 'REGISTRY_BINDINGS_TABLE_NAME_DESC' | 'REQUIREMENTS_STATE_VIEW_NAME_ASC' | 'REQUIREMENTS_STATE_VIEW_NAME_DESC' | 'RESOLVED_REQUIREMENTS_VIEW_NAME_ASC' @@ -11361,6 +12594,10 @@ export type RouteModuleOrderBy = | 'PROVISIONS_DESC' | 'PUBLIC_SCHEMA_NAME_ASC' | 'PUBLIC_SCHEMA_NAME_DESC' + | 'REDIRECTS_TABLE_ID_ASC' + | 'REDIRECTS_TABLE_ID_DESC' + | 'REDIRECTS_TABLE_NAME_ASC' + | 'REDIRECTS_TABLE_NAME_DESC' | 'RESOLVER_FUNCTION_NAME_ASC' | 'RESOLVER_FUNCTION_NAME_DESC' | 'ROUTES_TABLE_ID_ASC' @@ -11374,7 +12611,11 @@ export type RouteModuleOrderBy = | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'SCOPE_ASC' - | 'SCOPE_DESC'; + | 'SCOPE_DESC' + | 'SERVING_SITE_FIELD_ASC' + | 'SERVING_SITE_FIELD_DESC' + | 'STORAGE_KEY_ASC' + | 'STORAGE_KEY_DESC'; export type ScopeTypesModuleOrderBy = | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' @@ -11398,11 +12639,15 @@ export type SecureTableProvisionOrderBy = | 'GRANTS_DESC' | 'ID_ASC' | 'ID_DESC' + | 'MODULE_ASC' + | 'MODULE_DESC' | 'NATURAL' | 'NODES_ASC' | 'NODES_DESC' | 'OUT_FIELDS_ASC' | 'OUT_FIELDS_DESC' + | 'OWNS_ASC' + | 'OWNS_DESC' | 'POLICIES_ASC' | 'POLICIES_DESC' | 'PRIMARY_KEY_ASC' @@ -11517,6 +12762,10 @@ export type SiteSurfaceModuleOrderBy = | 'SITE_MODULES_TABLE_ID_DESC' | 'SITE_MODULES_TABLE_NAME_ASC' | 'SITE_MODULES_TABLE_NAME_DESC' + | 'SITE_RELEASES_TABLE_ID_ASC' + | 'SITE_RELEASES_TABLE_ID_DESC' + | 'SITE_RELEASES_TABLE_NAME_ASC' + | 'SITE_RELEASES_TABLE_NAME_DESC' | 'SITE_THEMES_TABLE_ID_ASC' | 'SITE_THEMES_TABLE_ID_DESC' | 'SITE_THEMES_TABLE_NAME_ASC' @@ -11524,18 +12773,16 @@ export type SiteSurfaceModuleOrderBy = | 'SITE_WEB_CONFIG_TABLE_ID_ASC' | 'SITE_WEB_CONFIG_TABLE_ID_DESC' | 'SITE_WEB_CONFIG_TABLE_NAME_ASC' - | 'SITE_WEB_CONFIG_TABLE_NAME_DESC'; + | 'SITE_WEB_CONFIG_TABLE_NAME_DESC' + | 'STORAGE_KEY_ASC' + | 'STORAGE_KEY_DESC'; export type StorageLogModuleOrderBy = - | 'ACTOR_FK_TABLE_ID_ASC' - | 'ACTOR_FK_TABLE_ID_DESC' | 'API_NAME_ASC' | 'API_NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'ENTITY_FIELD_ASC' | 'ENTITY_FIELD_DESC' - | 'ENTITY_FK_TABLE_ID_ASC' - | 'ENTITY_FK_TABLE_ID_DESC' | 'ID_ASC' | 'ID_DESC' | 'INTERVAL_ASC' @@ -11557,6 +12804,8 @@ export type StorageLogModuleOrderBy = | 'PUBLIC_SCHEMA_NAME_DESC' | 'RETENTION_ASC' | 'RETENTION_DESC' + | 'ROLLUP_FUNCTION_NAME_ASC' + | 'ROLLUP_FUNCTION_NAME_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'SCOPE_ASC' @@ -11618,6 +12867,8 @@ export type StorageModuleOrderBy = | 'HAS_VERSIONING_DESC' | 'ID_ASC' | 'ID_DESC' + | 'KEY_ASC' + | 'KEY_DESC' | 'MAX_BULK_FILES_ASC' | 'MAX_BULK_FILES_DESC' | 'MAX_BULK_TOTAL_SIZE_ASC' @@ -11656,16 +12907,12 @@ export type StorageModuleOrderBy = | 'UPLOAD_URL_EXPIRY_SECONDS_ASC' | 'UPLOAD_URL_EXPIRY_SECONDS_DESC'; export type TransferLogModuleOrderBy = - | 'ACTOR_FK_TABLE_ID_ASC' - | 'ACTOR_FK_TABLE_ID_DESC' | 'API_NAME_ASC' | 'API_NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'ENTITY_FIELD_ASC' | 'ENTITY_FIELD_DESC' - | 'ENTITY_FK_TABLE_ID_ASC' - | 'ENTITY_FK_TABLE_ID_DESC' | 'ID_ASC' | 'ID_DESC' | 'INTERVAL_ASC' @@ -11687,6 +12934,8 @@ export type TransferLogModuleOrderBy = | 'PUBLIC_SCHEMA_NAME_DESC' | 'RETENTION_ASC' | 'RETENTION_DESC' + | 'ROLLUP_FUNCTION_NAME_ASC' + | 'ROLLUP_FUNCTION_NAME_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'SCOPE_ASC' @@ -11727,10 +12976,14 @@ export type UserAuthModuleOrderBy = | 'PRIMARY_KEY_DESC' | 'PRIVATE_API_NAME_ASC' | 'PRIVATE_API_NAME_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' | 'REQUEST_CROSS_ORIGIN_TOKEN_FUNCTION_ASC' | 'REQUEST_CROSS_ORIGIN_TOKEN_FUNCTION_DESC' | 'RESET_PASSWORD_FUNCTION_ASC' | 'RESET_PASSWORD_FUNCTION_DESC' + | 'REVOKE_SESSION_TREE_FUNCTION_ASC' + | 'REVOKE_SESSION_TREE_FUNCTION_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'SECRETS_TABLE_ID_ASC' @@ -11753,6 +13006,8 @@ export type UserAuthModuleOrderBy = | 'SIGN_OUT_FUNCTION_DESC' | 'SIGN_UP_FUNCTION_ASC' | 'SIGN_UP_FUNCTION_DESC' + | 'SWEEP_EXPIRED_SESSIONS_FUNCTION_ASC' + | 'SWEEP_EXPIRED_SESSIONS_FUNCTION_DESC' | 'USERS_TABLE_ID_ASC' | 'USERS_TABLE_ID_DESC' | 'VERIFY_EMAIL_FUNCTION_ASC' @@ -11968,11 +13223,17 @@ export interface CreateAgentModuleInput { apiName?: string; databaseId: string; defaultCapabilities?: string[]; + defaultVisibility?: string; entityField?: string; entityTableId?: string; + eventTableId?: string; + eventTableName?: string; hasAgents?: boolean; + hasAttachments?: boolean; hasPlans?: boolean; + hasRepositoryResources?: boolean; hasResources?: boolean; + hasRuns?: boolean; messageTableId?: string; messageTableName?: string; personaTableId?: string; @@ -11988,16 +13249,21 @@ export interface CreateAgentModuleInput { promptsTableName?: string; provisions?: Record; publicSchemaName?: string; + resourceRepositoryTableId?: string; + resourceRepositoryTableName?: string; resourceTableId?: string; resourceTableName?: string; resources?: Record; + runTableId?: string; + runTableName?: string; schemaId?: string; scope: string; - shared?: boolean; taskTableId?: string; taskTableName?: string; threadTableId?: string; threadTableName?: string; + workspaceTableId?: string; + workspaceTableName?: string; }; } export interface AgentModulePatch { @@ -12006,11 +13272,17 @@ export interface AgentModulePatch { apiName?: string | null; databaseId?: string | null; defaultCapabilities?: string[] | null; + defaultVisibility?: string | null; entityField?: string | null; entityTableId?: string | null; + eventTableId?: string | null; + eventTableName?: string | null; hasAgents?: boolean | null; + hasAttachments?: boolean | null; hasPlans?: boolean | null; + hasRepositoryResources?: boolean | null; hasResources?: boolean | null; + hasRuns?: boolean | null; messageTableId?: string | null; messageTableName?: string | null; personaTableId?: string | null; @@ -12026,16 +13298,21 @@ export interface AgentModulePatch { promptsTableName?: string | null; provisions?: Record | null; publicSchemaName?: string | null; + resourceRepositoryTableId?: string | null; + resourceRepositoryTableName?: string | null; resourceTableId?: string | null; resourceTableName?: string | null; resources?: Record | null; + runTableId?: string | null; + runTableName?: string | null; schemaId?: string | null; scope?: string | null; - shared?: boolean | null; taskTableId?: string | null; taskTableName?: string | null; threadTableId?: string | null; threadTableName?: string | null; + workspaceTableId?: string | null; + workspaceTableName?: string | null; } export interface UpdateAgentModuleInput { clientMutationId?: string; @@ -12110,6 +13387,7 @@ export interface CreateAppModuleInput { apiName?: string; appComponentsTableId?: string; appComponentsTableName?: string; + appStoreIdentitiesTableName?: string; appsTableId?: string; appsTableName?: string; catalogModuleId?: string; @@ -12132,6 +13410,7 @@ export interface AppModulePatch { apiName?: string | null; appComponentsTableId?: string | null; appComponentsTableName?: string | null; + appStoreIdentitiesTableName?: string | null; appsTableId?: string | null; appsTableName?: string | null; catalogModuleId?: string | null; @@ -12231,9 +13510,12 @@ export interface DeleteBillingModuleInput { export interface CreateBillingProviderModuleInput { clientMutationId?: string; billingProviderModule: { + activatePlanSubscriptionFunction?: string; apiName?: string; billingCustomersTableId?: string; billingCustomersTableName?: string; + billingDisputesTableId?: string; + billingDisputesTableName?: string; billingInvoicesTableId?: string; billingInvoicesTableName?: string; billingPricesTableId?: string; @@ -12247,6 +13529,12 @@ export interface CreateBillingProviderModuleInput { billingWebhookEventsTableId?: string; billingWebhookEventsTableName?: string; databaseId: string; + getActivePlanPricingFunction?: string; + getBillingCustomerFunction?: string; + getBillingPriceFunction?: string; + getBillingProductFunction?: string; + getBillingSubscriptionFunction?: string; + getFallbackFreePlanFunction?: string; listPendingUsageSyncFunction?: string; markUsageSyncedFunction?: string; prefix?: string; @@ -12256,16 +13544,25 @@ export interface CreateBillingProviderModuleInput { processBillingEventFunction?: string; productsTableId?: string; provider?: string; + recordDisputeFunction?: string; recordRefundFunction?: string; schemaId?: string; subscriptionsTableId?: string; + sweepOverdueSubscriptionsFunction?: string; + upsertBillingCustomerFunction?: string; + upsertBillingPriceFunction?: string; + upsertBillingProductFunction?: string; + upsertBillingSubscriptionFunction?: string; upsertInvoiceFunction?: string; }; } export interface BillingProviderModulePatch { + activatePlanSubscriptionFunction?: string | null; apiName?: string | null; billingCustomersTableId?: string | null; billingCustomersTableName?: string | null; + billingDisputesTableId?: string | null; + billingDisputesTableName?: string | null; billingInvoicesTableId?: string | null; billingInvoicesTableName?: string | null; billingPricesTableId?: string | null; @@ -12279,6 +13576,12 @@ export interface BillingProviderModulePatch { billingWebhookEventsTableId?: string | null; billingWebhookEventsTableName?: string | null; databaseId?: string | null; + getActivePlanPricingFunction?: string | null; + getBillingCustomerFunction?: string | null; + getBillingPriceFunction?: string | null; + getBillingProductFunction?: string | null; + getBillingSubscriptionFunction?: string | null; + getFallbackFreePlanFunction?: string | null; listPendingUsageSyncFunction?: string | null; markUsageSyncedFunction?: string | null; prefix?: string | null; @@ -12288,9 +13591,15 @@ export interface BillingProviderModulePatch { processBillingEventFunction?: string | null; productsTableId?: string | null; provider?: string | null; + recordDisputeFunction?: string | null; recordRefundFunction?: string | null; schemaId?: string | null; subscriptionsTableId?: string | null; + sweepOverdueSubscriptionsFunction?: string | null; + upsertBillingCustomerFunction?: string | null; + upsertBillingPriceFunction?: string | null; + upsertBillingProductFunction?: string | null; + upsertBillingSubscriptionFunction?: string | null; upsertInvoiceFunction?: string | null; } export interface UpdateBillingProviderModuleInput { @@ -12482,6 +13791,8 @@ export interface CreateCatalogModuleInput { apiName?: string; apisTableId?: string; apisTableName?: string; + appStoreIdentitiesTableId?: string; + appStoreIdentitiesTableName?: string; appsTableId?: string; appsTableName?: string; bindingsTableId?: string; @@ -12495,12 +13806,18 @@ export interface CreateCatalogModuleInput { entityTableId?: string; functionsTableId?: string; functionsTableName?: string; + imagesTableId?: string; + imagesTableName?: string; + managedDomainsTableId?: string; + managedDomainsTableName?: string; namespacesTableId?: string; namespacesTableName?: string; policies?: Record; privateApiName?: string; provisions?: Record; publicSchemaName?: string; + redirectsTableId?: string; + redirectsTableName?: string; resourceDefinitionsTableId?: string; resourceDefinitionsTableName?: string; resourceInstallationsTableId?: string; @@ -12525,6 +13842,8 @@ export interface CatalogModulePatch { apiName?: string | null; apisTableId?: string | null; apisTableName?: string | null; + appStoreIdentitiesTableId?: string | null; + appStoreIdentitiesTableName?: string | null; appsTableId?: string | null; appsTableName?: string | null; bindingsTableId?: string | null; @@ -12538,12 +13857,18 @@ export interface CatalogModulePatch { entityTableId?: string | null; functionsTableId?: string | null; functionsTableName?: string | null; + imagesTableId?: string | null; + imagesTableName?: string | null; + managedDomainsTableId?: string | null; + managedDomainsTableName?: string | null; namespacesTableId?: string | null; namespacesTableName?: string | null; policies?: Record | null; privateApiName?: string | null; provisions?: Record | null; publicSchemaName?: string | null; + redirectsTableId?: string | null; + redirectsTableName?: string | null; resourceDefinitionsTableId?: string | null; resourceDefinitionsTableName?: string | null; resourceInstallationsTableId?: string | null; @@ -12572,87 +13897,123 @@ export interface DeleteCatalogModuleInput { clientMutationId?: string; id: string; } -export interface CreateComputeLogModuleInput { +export interface CreateClusterModuleInput { clientMutationId?: string; - computeLogModule: { - actorFkTableId?: string; + clusterModule: { apiName?: string; - computeLogTableId?: string; - computeLogTableName?: string; + clusterEventsTableId?: string; + clusterEventsTableName?: string; + clustersTableId?: string; + clustersTableName?: string; databaseId: string; + databasePlacementsTableId?: string; + databasePlacementsTableName?: string; + databaseServersTableId?: string; + databaseServersTableName?: string; + defaultCapabilities?: string[]; entityField?: string; - entityFkTableId?: string; - interval?: string; + partitionInterval?: string; + physicalDatabasesTableId?: string; + physicalDatabasesTableName?: string; + policies?: Record; prefix?: string; premake?: number; privateApiName?: string; privateSchemaId?: string; privateSchemaName?: string; + provisions?: Record; publicSchemaName?: string; retention?: string; schemaId?: string; - scope: string; - usageSummaryTableId?: string; - usageSummaryTableName?: string; + scope?: string; }; } -export interface ComputeLogModulePatch { - actorFkTableId?: string | null; +export interface ClusterModulePatch { apiName?: string | null; - computeLogTableId?: string | null; - computeLogTableName?: string | null; + clusterEventsTableId?: string | null; + clusterEventsTableName?: string | null; + clustersTableId?: string | null; + clustersTableName?: string | null; databaseId?: string | null; + databasePlacementsTableId?: string | null; + databasePlacementsTableName?: string | null; + databaseServersTableId?: string | null; + databaseServersTableName?: string | null; + defaultCapabilities?: string[] | null; entityField?: string | null; - entityFkTableId?: string | null; - interval?: string | null; + partitionInterval?: string | null; + physicalDatabasesTableId?: string | null; + physicalDatabasesTableName?: string | null; + policies?: Record | null; prefix?: string | null; premake?: number | null; privateApiName?: string | null; privateSchemaId?: string | null; privateSchemaName?: string | null; + provisions?: Record | null; publicSchemaName?: string | null; retention?: string | null; schemaId?: string | null; scope?: string | null; - usageSummaryTableId?: string | null; - usageSummaryTableName?: string | null; } -export interface UpdateComputeLogModuleInput { +export interface UpdateClusterModuleInput { clientMutationId?: string; id: string; - computeLogModulePatch: ComputeLogModulePatch; + clusterModulePatch: ClusterModulePatch; } -export interface DeleteComputeLogModuleInput { +export interface DeleteClusterModuleInput { clientMutationId?: string; id: string; } -export interface CreateConfigSecretsUserModuleInput { +export interface CreateComputeLogModuleInput { clientMutationId?: string; - configSecretsUserModule: { + computeLogModule: { apiName?: string; + computeLogTableId?: string; + computeLogTableName?: string; databaseId: string; entityField?: string; + interval?: string; + prefix?: string; + premake?: number; privateApiName?: string; + privateSchemaId?: string; + privateSchemaName?: string; + publicSchemaName?: string; + retention?: string; + rollupFunctionName?: string; schemaId?: string; - tableId?: string; - tableName?: string; + scope: string; + usageSummaryTableId?: string; + usageSummaryTableName?: string; }; } -export interface ConfigSecretsUserModulePatch { +export interface ComputeLogModulePatch { apiName?: string | null; + computeLogTableId?: string | null; + computeLogTableName?: string | null; databaseId?: string | null; entityField?: string | null; + interval?: string | null; + prefix?: string | null; + premake?: number | null; privateApiName?: string | null; + privateSchemaId?: string | null; + privateSchemaName?: string | null; + publicSchemaName?: string | null; + retention?: string | null; + rollupFunctionName?: string | null; schemaId?: string | null; - tableId?: string | null; - tableName?: string | null; + scope?: string | null; + usageSummaryTableId?: string | null; + usageSummaryTableName?: string | null; } -export interface UpdateConfigSecretsUserModuleInput { +export interface UpdateComputeLogModuleInput { clientMutationId?: string; id: string; - configSecretsUserModulePatch: ConfigSecretsUserModulePatch; + computeLogModulePatch: ComputeLogModulePatch; } -export interface DeleteConfigSecretsUserModuleInput { +export interface DeleteComputeLogModuleInput { clientMutationId?: string; id: string; } @@ -12850,6 +14211,7 @@ export interface CreateDatabaseProvisionModuleInput { clientMutationId?: string; databaseProvisionModule: { async?: boolean; + bootstrapActorId?: string; bootstrapError?: string; bootstrapStatus?: string; bootstrapUser?: boolean; @@ -12869,6 +14231,7 @@ export interface CreateDatabaseProvisionModuleInput { } export interface DatabaseProvisionModulePatch { async?: boolean | null; + bootstrapActorId?: string | null; bootstrapError?: string | null; bootstrapStatus?: string | null; bootstrapUser?: boolean | null; @@ -13734,6 +15097,7 @@ export interface CreateFunctionModuleInput { schedulesTableId?: string; schemaId?: string; scope: string; + storageKey?: string; }; } export interface FunctionModulePatch { @@ -13758,6 +15122,7 @@ export interface FunctionModulePatch { schedulesTableId?: string | null; schemaId?: string | null; scope?: string | null; + storageKey?: string | null; } export interface UpdateFunctionModuleInput { clientMutationId?: string; @@ -13932,62 +15297,6 @@ export interface DeleteHierarchyModuleInput { clientMutationId?: string; id: string; } -export interface CreateHttpRouteModuleInput { - clientMutationId?: string; - httpRouteModule: { - apiName?: string; - databaseId: string; - defaultCapabilities?: string[]; - entityField?: string; - entityTableId?: string; - functionModuleId?: string; - httpRoutesTableId?: string; - httpRoutesTableName?: string; - policies?: Record; - prefix?: string; - privateApiName?: string; - privateSchemaId?: string; - privateSchemaName?: string; - provisions?: Record; - publicSchemaName?: string; - resolverFunctionName?: string; - resourceModuleId?: string; - schemaId?: string; - scope: string; - storageModuleId?: string; - }; -} -export interface HttpRouteModulePatch { - apiName?: string | null; - databaseId?: string | null; - defaultCapabilities?: string[] | null; - entityField?: string | null; - entityTableId?: string | null; - functionModuleId?: string | null; - httpRoutesTableId?: string | null; - httpRoutesTableName?: string | null; - policies?: Record | null; - prefix?: string | null; - privateApiName?: string | null; - privateSchemaId?: string | null; - privateSchemaName?: string | null; - provisions?: Record | null; - publicSchemaName?: string | null; - resolverFunctionName?: string | null; - resourceModuleId?: string | null; - schemaId?: string | null; - scope?: string | null; - storageModuleId?: string | null; -} -export interface UpdateHttpRouteModuleInput { - clientMutationId?: string; - id: string; - httpRouteModulePatch: HttpRouteModulePatch; -} -export interface DeleteHttpRouteModuleInput { - clientMutationId?: string; - id: string; -} export interface CreateI18NModuleInput { clientMutationId?: string; i18NModule: { @@ -14058,17 +15367,75 @@ export interface DeleteIdentityProvidersModuleInput { clientMutationId?: string; id: string; } -export interface CreateInferenceLogModuleInput { +export interface CreateImageModuleInput { clientMutationId?: string; - inferenceLogModule: { - actorFkTableId?: string; + imageModule: { apiName?: string; databaseId: string; + defaultCapabilities?: string[]; entityField?: string; - entityFkTableId?: string; - inferenceLogTableId?: string; - inferenceLogTableName?: string; - interval?: string; + entityTableId?: string; + imageGrantsTableId?: string; + imageGrantsTableName?: string; + imagesTableId?: string; + imagesTableName?: string; + policies?: Record; + prefix?: string; + privateApiName?: string; + privateSchemaId?: string; + privateSchemaName?: string; + provisions?: Record; + publicSchemaName?: string; + registriesTableId?: string; + registriesTableName?: string; + registryGrantsTableId?: string; + registryGrantsTableName?: string; + schemaId?: string; + scope: string; + }; +} +export interface ImageModulePatch { + apiName?: string | null; + databaseId?: string | null; + defaultCapabilities?: string[] | null; + entityField?: string | null; + entityTableId?: string | null; + imageGrantsTableId?: string | null; + imageGrantsTableName?: string | null; + imagesTableId?: string | null; + imagesTableName?: string | null; + policies?: Record | null; + prefix?: string | null; + privateApiName?: string | null; + privateSchemaId?: string | null; + privateSchemaName?: string | null; + provisions?: Record | null; + publicSchemaName?: string | null; + registriesTableId?: string | null; + registriesTableName?: string | null; + registryGrantsTableId?: string | null; + registryGrantsTableName?: string | null; + schemaId?: string | null; + scope?: string | null; +} +export interface UpdateImageModuleInput { + clientMutationId?: string; + id: string; + imageModulePatch: ImageModulePatch; +} +export interface DeleteImageModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateInferenceLogModuleInput { + clientMutationId?: string; + inferenceLogModule: { + apiName?: string; + databaseId: string; + entityField?: string; + inferenceLogTableId?: string; + inferenceLogTableName?: string; + interval?: string; prefix?: string; premake?: number; privateApiName?: string; @@ -14076,6 +15443,7 @@ export interface CreateInferenceLogModuleInput { privateSchemaName?: string; publicSchemaName?: string; retention?: string; + rollupFunctionName?: string; schemaId?: string; scope: string; usageSummaryTableId?: string; @@ -14083,11 +15451,9 @@ export interface CreateInferenceLogModuleInput { }; } export interface InferenceLogModulePatch { - actorFkTableId?: string | null; apiName?: string | null; databaseId?: string | null; entityField?: string | null; - entityFkTableId?: string | null; inferenceLogTableId?: string | null; inferenceLogTableName?: string | null; interval?: string | null; @@ -14098,6 +15464,7 @@ export interface InferenceLogModulePatch { privateSchemaName?: string | null; publicSchemaName?: string | null; retention?: string | null; + rollupFunctionName?: string | null; schemaId?: string | null; scope?: string | null; usageSummaryTableId?: string | null; @@ -14246,6 +15613,52 @@ export interface DeleteIntegrationProvidersModuleInput { clientMutationId?: string; id: string; } +export interface CreateInternalConfigModuleInput { + clientMutationId?: string; + internalConfigModule: { + apiName?: string; + databaseId: string; + entityField?: string; + entityTableId?: string; + internalConfigTableId?: string; + internalConfigTableName?: string; + policies?: Record; + prefix?: string; + privateApiName?: string; + privateSchemaId?: string; + privateSchemaName?: string; + provisions?: Record; + publicSchemaName?: string; + schemaId?: string; + scope: string; + }; +} +export interface InternalConfigModulePatch { + apiName?: string | null; + databaseId?: string | null; + entityField?: string | null; + entityTableId?: string | null; + internalConfigTableId?: string | null; + internalConfigTableName?: string | null; + policies?: Record | null; + prefix?: string | null; + privateApiName?: string | null; + privateSchemaId?: string | null; + privateSchemaName?: string | null; + provisions?: Record | null; + publicSchemaName?: string | null; + schemaId?: string | null; + scope?: string | null; +} +export interface UpdateInternalConfigModuleInput { + clientMutationId?: string; + id: string; + internalConfigModulePatch: InternalConfigModulePatch; +} +export interface DeleteInternalConfigModuleInput { + clientMutationId?: string; + id: string; +} export interface CreateInternalSecretsModuleInput { clientMutationId?: string; internalSecretsModule: { @@ -14344,6 +15757,54 @@ export interface DeleteInvitesModuleInput { clientMutationId?: string; id: string; } +export interface CreateK8sAdmissionModuleInput { + clientMutationId?: string; + k8sAdmissionModule: { + apiName?: string; + databaseId: string; + entityTableId?: string; + k8sResourceKindsTableId?: string; + k8sSpecRulesTableId?: 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 K8sAdmissionModulePatch { + apiName?: string | null; + databaseId?: string | null; + entityTableId?: string | null; + k8sResourceKindsTableId?: string | null; + k8sSpecRulesTableId?: 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 UpdateK8sAdmissionModuleInput { + clientMutationId?: string; + id: string; + k8sAdmissionModulePatch: K8sAdmissionModulePatch; +} +export interface DeleteK8sAdmissionModuleInput { + clientMutationId?: string; + id: string; +} export interface CreateLimitsModuleInput { clientMutationId?: string; limitsModule: { @@ -14434,6 +15895,68 @@ export interface DeleteLimitsModuleInput { clientMutationId?: string; id: string; } +export interface CreateMachineModuleInput { + clientMutationId?: string; + machineModule: { + apiName?: string; + databaseId: string; + defaultCapabilities?: string[]; + entityField?: string; + entityTableId?: string; + machineMessagesTableId?: string; + machineMessagesTableName?: string; + machineSessionsTableId?: string; + machineSessionsTableName?: string; + machinesTableId?: string; + machinesTableName?: string; + partitionInterval?: string; + policies?: Record; + prefix?: string; + premake?: number; + privateApiName?: string; + privateSchemaId?: string; + privateSchemaName?: string; + provisions?: Record; + publicSchemaName?: string; + retention?: string; + schemaId?: string; + scope: string; + }; +} +export interface MachineModulePatch { + apiName?: string | null; + databaseId?: string | null; + defaultCapabilities?: string[] | null; + entityField?: string | null; + entityTableId?: string | null; + machineMessagesTableId?: string | null; + machineMessagesTableName?: string | null; + machineSessionsTableId?: string | null; + machineSessionsTableName?: string | null; + machinesTableId?: string | null; + machinesTableName?: string | null; + partitionInterval?: string | null; + policies?: Record | null; + prefix?: string | null; + premake?: number | null; + privateApiName?: string | null; + privateSchemaId?: string | null; + privateSchemaName?: string | null; + provisions?: Record | null; + publicSchemaName?: string | null; + retention?: string | null; + schemaId?: string | null; + scope?: string | null; +} +export interface UpdateMachineModuleInput { + clientMutationId?: string; + id: string; + machineModulePatch: MachineModulePatch; +} +export interface DeleteMachineModuleInput { + clientMutationId?: string; + id: string; +} export interface CreateMembershipTypesModuleInput { clientMutationId?: string; membershipTypesModule: { @@ -14564,6 +16087,7 @@ export interface CreateMerkleStoreModuleInput { commitTableId?: string; databaseId: string; entityField?: string; + entityTableId?: string; functionPrefix?: string; objectTableId?: string; prefix?: string; @@ -14583,6 +16107,7 @@ export interface MerkleStoreModulePatch { commitTableId?: string | null; databaseId?: string | null; entityField?: string | null; + entityTableId?: string | null; functionPrefix?: string | null; objectTableId?: string | null; prefix?: string | null; @@ -14766,12 +16291,17 @@ export interface CreatePagesModuleInput { pagesTableId?: string; policies?: Record; prefix: string; + previewCommitFunctionName?: string; + previewSetFunctionName?: string; + previewTokenMintFunctionName?: string; + previewTokenVerifierFunctionName?: string; privateApiName?: string; privateSchemaId?: string; privateSchemaName?: string; provisions?: Record; publicSchemaId?: string; publicSchemaName?: string; + releaseManifestFunctionName?: string; scope: string; siteSurfaceModuleId?: string; sitesTableId?: string; @@ -14786,12 +16316,17 @@ export interface PagesModulePatch { pagesTableId?: string | null; policies?: Record | null; prefix?: string | null; + previewCommitFunctionName?: string | null; + previewSetFunctionName?: string | null; + previewTokenMintFunctionName?: string | null; + previewTokenVerifierFunctionName?: string | null; privateApiName?: string | null; privateSchemaId?: string | null; privateSchemaName?: string | null; provisions?: Record | null; publicSchemaId?: string | null; publicSchemaName?: string | null; + releaseManifestFunctionName?: string | null; scope?: string | null; siteSurfaceModuleId?: string | null; sitesTableId?: string | null; @@ -14909,10 +16444,12 @@ export interface CreatePrincipalAuthModuleInput { principalScopeOverridesTableId?: string; principalsTableId?: string; principalsTableName?: string; + privateSchemaId?: string; revokeOrgApiKeyFunction?: string; schemaId?: string; sessionCredentialsTableId?: string; sessionsTableId?: string; + sweepExpiredPrincipalsFunction?: string; usersTableId?: string; }; } @@ -14929,10 +16466,12 @@ export interface PrincipalAuthModulePatch { principalScopeOverridesTableId?: string | null; principalsTableId?: string | null; principalsTableName?: string | null; + privateSchemaId?: string | null; revokeOrgApiKeyFunction?: string | null; schemaId?: string | null; sessionCredentialsTableId?: string | null; sessionsTableId?: string | null; + sweepExpiredPrincipalsFunction?: string | null; usersTableId?: string | null; } export interface UpdatePrincipalAuthModuleInput { @@ -15134,6 +16673,66 @@ export interface DeleteRealtimeModuleInput { clientMutationId?: string; id: string; } +export interface CreateRefusalLogModuleInput { + clientMutationId?: string; + refusalLogModule: { + apiName?: string; + databaseId: string; + entityField?: string; + logInterval?: string; + logPremake?: number; + logRetention?: string; + logTableId?: string; + logTableName?: string; + prefix?: string; + privateApiName?: string; + privateSchemaId?: string; + privateSchemaName?: string; + publicSchemaName?: string; + recordRefusalsFunction?: string; + rollupRefusalUsageSummaryFunction?: string; + schemaId?: string; + scope: string; + summaryInterval?: string; + summaryPremake?: number; + summaryRetention?: string; + summaryTableId?: string; + summaryTableName?: string; + }; +} +export interface RefusalLogModulePatch { + apiName?: string | null; + databaseId?: string | null; + entityField?: string | null; + logInterval?: string | null; + logPremake?: number | null; + logRetention?: string | null; + logTableId?: string | null; + logTableName?: string | null; + prefix?: string | null; + privateApiName?: string | null; + privateSchemaId?: string | null; + privateSchemaName?: string | null; + publicSchemaName?: string | null; + recordRefusalsFunction?: string | null; + rollupRefusalUsageSummaryFunction?: string | null; + schemaId?: string | null; + scope?: string | null; + summaryInterval?: string | null; + summaryPremake?: number | null; + summaryRetention?: string | null; + summaryTableId?: string | null; + summaryTableName?: string | null; +} +export interface UpdateRefusalLogModuleInput { + clientMutationId?: string; + id: string; + refusalLogModulePatch: RefusalLogModulePatch; +} +export interface DeleteRefusalLogModuleInput { + clientMutationId?: string; + id: string; +} export interface CreateRelationProvisionInput { clientMutationId?: string; relationProvision: { @@ -15196,10 +16795,106 @@ export interface DeleteRelationProvisionInput { clientMutationId?: string; id: string; } +export interface CreateRepositoryModuleInput { + clientMutationId?: string; + repositoryModule: { + apiName?: string; + buildStepsTableId?: string; + buildStepsTableName?: string; + buildsTableId?: string; + buildsTableName?: string; + databaseId: string; + defaultCapabilities?: string[]; + entityField?: string; + entityTableId?: string; + hasAttachments?: boolean; + hasBuilds?: boolean; + policies?: Record; + prefix?: string; + privateApiName?: string; + privateSchemaId?: string; + privateSchemaName?: string; + proposalCommentsTableId?: string; + proposalCommentsTableName?: string; + proposalFileViewsTableId?: string; + proposalFileViewsTableName?: string; + proposalReactionsTableId?: string; + proposalReactionsTableName?: string; + proposalReviewsTableId?: string; + proposalReviewsTableName?: string; + proposalsTableId?: string; + proposalsTableName?: string; + provisions?: Record; + publicSchemaName?: string; + repositoriesTableId?: string; + repositoriesTableName?: string; + repositoryEventsTableId?: string; + repositoryEventsTableName?: string; + repositoryRequiredChecksTableId?: string; + repositoryRequiredChecksTableName?: string; + schemaId?: string; + scope: string; + search?: Record; + workflowsTableId?: string; + workflowsTableName?: string; + }; +} +export interface RepositoryModulePatch { + apiName?: string | null; + buildStepsTableId?: string | null; + buildStepsTableName?: string | null; + buildsTableId?: string | null; + buildsTableName?: string | null; + databaseId?: string | null; + defaultCapabilities?: string[] | null; + entityField?: string | null; + entityTableId?: string | null; + hasAttachments?: boolean | null; + hasBuilds?: boolean | null; + policies?: Record | null; + prefix?: string | null; + privateApiName?: string | null; + privateSchemaId?: string | null; + privateSchemaName?: string | null; + proposalCommentsTableId?: string | null; + proposalCommentsTableName?: string | null; + proposalFileViewsTableId?: string | null; + proposalFileViewsTableName?: string | null; + proposalReactionsTableId?: string | null; + proposalReactionsTableName?: string | null; + proposalReviewsTableId?: string | null; + proposalReviewsTableName?: string | null; + proposalsTableId?: string | null; + proposalsTableName?: string | null; + provisions?: Record | null; + publicSchemaName?: string | null; + repositoriesTableId?: string | null; + repositoriesTableName?: string | null; + repositoryEventsTableId?: string | null; + repositoryEventsTableName?: string | null; + repositoryRequiredChecksTableId?: string | null; + repositoryRequiredChecksTableName?: string | null; + schemaId?: string | null; + scope?: string | null; + search?: Record | null; + workflowsTableId?: string | null; + workflowsTableName?: string | null; +} +export interface UpdateRepositoryModuleInput { + clientMutationId?: string; + id: string; + repositoryModulePatch: RepositoryModulePatch; +} +export interface DeleteRepositoryModuleInput { + clientMutationId?: string; + id: string; +} export interface CreateResourceModuleInput { clientMutationId?: string; resourceModule: { apiName?: string; + builderBindingsTableId?: string; + builderBindingsTableName?: string; databaseId: string; defaultCapabilities?: string[]; entityField?: string; @@ -15214,6 +16909,8 @@ export interface CreateResourceModuleInput { privateSchemaName?: string; provisions?: Record; publicSchemaName?: string; + registryBindingsTableId?: string; + registryBindingsTableName?: string; requirementsStateViewName?: string; resolvedRequirementsViewName?: string; resourceBillingRollupFunction?: string; @@ -15238,6 +16935,8 @@ export interface CreateResourceModuleInput { } export interface ResourceModulePatch { apiName?: string | null; + builderBindingsTableId?: string | null; + builderBindingsTableName?: string | null; databaseId?: string | null; defaultCapabilities?: string[] | null; entityField?: string | null; @@ -15252,6 +16951,8 @@ export interface ResourceModulePatch { privateSchemaName?: string | null; provisions?: Record | null; publicSchemaName?: string | null; + registryBindingsTableId?: string | null; + registryBindingsTableName?: string | null; requirementsStateViewName?: string | null; resolvedRequirementsViewName?: string | null; resourceBillingRollupFunction?: string | null; @@ -15343,6 +17044,8 @@ export interface CreateRouteModuleInput { privateSchemaName?: string; provisions?: Record; publicSchemaName?: string; + redirectsTableId?: string; + redirectsTableName?: string; resolverFunctionName?: string; routeBindingsTableId?: string; routeBindingsTableName?: string; @@ -15350,6 +17053,8 @@ export interface CreateRouteModuleInput { routesTableName?: string; schemaId?: string; scope: string; + servingSiteField?: string; + storageKey?: string; }; } export interface RouteModulePatch { @@ -15371,6 +17076,8 @@ export interface RouteModulePatch { privateSchemaName?: string | null; provisions?: Record | null; publicSchemaName?: string | null; + redirectsTableId?: string | null; + redirectsTableName?: string | null; resolverFunctionName?: string | null; routeBindingsTableId?: string | null; routeBindingsTableName?: string | null; @@ -15378,6 +17085,8 @@ export interface RouteModulePatch { routesTableName?: string | null; schemaId?: string | null; scope?: string | null; + servingSiteField?: string | null; + storageKey?: string | null; } export interface UpdateRouteModuleInput { clientMutationId?: string; @@ -15418,8 +17127,10 @@ export interface CreateSecureTableProvisionInput { databaseId: string; fields?: Record[]; grants?: Record; + module?: Record; nodes?: Record; outFields?: string[]; + owns?: Record; policies?: Record; schemaId?: string; tableId?: string; @@ -15431,8 +17142,10 @@ export interface SecureTableProvisionPatch { databaseId?: string | null; fields?: Record[] | null; grants?: Record | null; + module?: Record | null; nodes?: Record | null; outFields?: string[] | null; + owns?: Record | null; policies?: Record | null; schemaId?: string | null; tableId?: string | null; @@ -15538,12 +17251,15 @@ export interface CreateSiteSurfaceModuleInput { siteMetadataTableName?: string; siteModulesTableId?: string; siteModulesTableName?: string; + siteReleasesTableId?: string; + siteReleasesTableName?: string; siteThemesTableId?: string; siteThemesTableName?: string; siteWebConfigTableId?: string; siteWebConfigTableName?: string; sitesTableId?: string; sitesTableName?: string; + storageKey?: string; }; } export interface SiteSurfaceModulePatch { @@ -15572,12 +17288,15 @@ export interface SiteSurfaceModulePatch { siteMetadataTableName?: string | null; siteModulesTableId?: string | null; siteModulesTableName?: string | null; + siteReleasesTableId?: string | null; + siteReleasesTableName?: string | null; siteThemesTableId?: string | null; siteThemesTableName?: string | null; siteWebConfigTableId?: string | null; siteWebConfigTableName?: string | null; sitesTableId?: string | null; sitesTableName?: string | null; + storageKey?: string | null; } export interface UpdateSiteSurfaceModuleInput { clientMutationId?: string; @@ -15591,11 +17310,9 @@ export interface DeleteSiteSurfaceModuleInput { export interface CreateStorageLogModuleInput { clientMutationId?: string; storageLogModule: { - actorFkTableId?: string; apiName?: string; databaseId: string; entityField?: string; - entityFkTableId?: string; interval?: string; prefix?: string; premake?: number; @@ -15604,6 +17321,7 @@ export interface CreateStorageLogModuleInput { privateSchemaName?: string; publicSchemaName?: string; retention?: string; + rollupFunctionName?: string; schemaId?: string; scope: string; storageLogTableId?: string; @@ -15613,11 +17331,9 @@ export interface CreateStorageLogModuleInput { }; } export interface StorageLogModulePatch { - actorFkTableId?: string | null; apiName?: string | null; databaseId?: string | null; entityField?: string | null; - entityFkTableId?: string | null; interval?: string | null; prefix?: string | null; premake?: number | null; @@ -15626,6 +17342,7 @@ export interface StorageLogModulePatch { privateSchemaName?: string | null; publicSchemaName?: string | null; retention?: string | null; + rollupFunctionName?: string | null; schemaId?: string | null; scope?: string | null; storageLogTableId?: string | null; @@ -15668,6 +17385,7 @@ export interface CreateStorageModuleInput { hasCustomKeys?: boolean; hasPathShares?: boolean; hasVersioning?: boolean; + key?: string; maxBulkFiles?: number; maxBulkTotalSize?: string; maxFilenameLength?: number; @@ -15711,6 +17429,7 @@ export interface StorageModulePatch { hasCustomKeys?: boolean | null; hasPathShares?: boolean | null; hasVersioning?: boolean | null; + key?: string | null; maxBulkFiles?: number | null; maxBulkTotalSize?: string | null; maxFilenameLength?: number | null; @@ -15741,11 +17460,9 @@ export interface DeleteStorageModuleInput { export interface CreateTransferLogModuleInput { clientMutationId?: string; transferLogModule: { - actorFkTableId?: string; apiName?: string; databaseId: string; entityField?: string; - entityFkTableId?: string; interval?: string; prefix?: string; premake?: number; @@ -15754,6 +17471,7 @@ export interface CreateTransferLogModuleInput { privateSchemaName?: string; publicSchemaName?: string; retention?: string; + rollupFunctionName?: string; schemaId?: string; scope: string; transferLogTableId?: string; @@ -15763,11 +17481,9 @@ export interface CreateTransferLogModuleInput { }; } export interface TransferLogModulePatch { - actorFkTableId?: string | null; apiName?: string | null; databaseId?: string | null; entityField?: string | null; - entityFkTableId?: string | null; interval?: string | null; prefix?: string | null; premake?: number | null; @@ -15776,6 +17492,7 @@ export interface TransferLogModulePatch { privateSchemaName?: string | null; publicSchemaName?: string | null; retention?: string | null; + rollupFunctionName?: string | null; schemaId?: string | null; scope?: string | null; transferLogTableId?: string | null; @@ -15806,8 +17523,10 @@ export interface CreateUserAuthModuleInput { extendTokenExpires?: string; forgotPasswordFunction?: string; privateApiName?: string; + privateSchemaId?: string; requestCrossOriginTokenFunction?: string; resetPasswordFunction?: string; + revokeSessionTreeFunction?: string; schemaId?: string; secretsTableId?: string; sendAccountDeletionEmailFunction?: string; @@ -15819,6 +17538,7 @@ export interface CreateUserAuthModuleInput { signInFunction?: string; signOutFunction?: string; signUpFunction?: string; + sweepExpiredSessionsFunction?: string; usersTableId?: string; verifyEmailFunction?: string; verifyPasswordFunction?: string; @@ -15836,8 +17556,10 @@ export interface UserAuthModulePatch { extendTokenExpires?: string | null; forgotPasswordFunction?: string | null; privateApiName?: string | null; + privateSchemaId?: string | null; requestCrossOriginTokenFunction?: string | null; resetPasswordFunction?: string | null; + revokeSessionTreeFunction?: string | null; schemaId?: string | null; secretsTableId?: string | null; sendAccountDeletionEmailFunction?: string | null; @@ -15849,6 +17571,7 @@ export interface UserAuthModulePatch { signInFunction?: string | null; signOutFunction?: string | null; signUpFunction?: string | null; + sweepExpiredSessionsFunction?: string | null; usersTableId?: string | null; verifyEmailFunction?: string | null; verifyPasswordFunction?: string | null; @@ -16169,7 +17892,6 @@ export const connectionFieldsMap = { }, FunctionModule: { functionDeploymentModules: 'FunctionDeploymentModule', - httpRouteModules: 'HttpRouteModule', webhookModules: 'WebhookModule', }, GraphModule: { @@ -16182,6 +17904,7 @@ export const connectionFieldsMap = { contentPresetModules: 'ContentPresetModule', dbPresetModules: 'DbPresetModule', graphModules: 'GraphModule', + k8sAdmissionModules: 'K8sAdmissionModule', pagesModules: 'PagesModule', resourceModules: 'ResourceModule', }, @@ -16190,16 +17913,12 @@ export const connectionFieldsMap = { resourceModules: 'ResourceModule', webhookModules: 'WebhookModule', }, - ResourceModule: { - httpRouteModules: 'HttpRouteModule', - }, SiteSurfaceModule: { emailSenderModules: 'EmailSenderModule', pagesModules: 'PagesModule', }, StorageModule: { fileRefFields: 'FileRefField', - httpRouteModules: 'HttpRouteModule', }, } as Record>; // ============ Custom Input Types (from schema) ============ @@ -16358,15 +18077,6 @@ export interface FunctionModuleToManyFunctionDeploymentModuleFilter { /** Filters to entities where at least one related entity matches. */ some?: FunctionDeploymentModuleFilter; } -/** A filter to be used against many `HttpRouteModule` object types. All fields are combined with a logical ‘and.’ */ -export interface FunctionModuleToManyHttpRouteModuleFilter { - /** Filters to entities where every related entity matches. */ - every?: HttpRouteModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: HttpRouteModuleFilter; - /** Filters to entities where at least one related entity matches. */ - some?: HttpRouteModuleFilter; -} /** A filter to be used against many `WebhookModule` object types. All fields are combined with a logical ‘and.’ */ export interface FunctionModuleToManyWebhookModuleFilter { /** Filters to entities where every related entity matches. */ @@ -16421,6 +18131,15 @@ export interface MerkleStoreModuleToManyGraphModuleFilter { /** Filters to entities where at least one related entity matches. */ some?: GraphModuleFilter; } +/** A filter to be used against many `K8sAdmissionModule` object types. All fields are combined with a logical ‘and.’ */ +export interface MerkleStoreModuleToManyK8sAdmissionModuleFilter { + /** Filters to entities where every related entity matches. */ + every?: K8sAdmissionModuleFilter; + /** Filters to entities where no related entity matches. */ + none?: K8sAdmissionModuleFilter; + /** Filters to entities where at least one related entity matches. */ + some?: K8sAdmissionModuleFilter; +} /** A filter to be used against many `PagesModule` object types. All fields are combined with a logical ‘and.’ */ export interface MerkleStoreModuleToManyPagesModuleFilter { /** Filters to entities where every related entity matches. */ @@ -16466,15 +18185,6 @@ export interface NamespaceModuleToManyWebhookModuleFilter { /** Filters to entities where at least one related entity matches. */ some?: WebhookModuleFilter; } -/** A filter to be used against many `HttpRouteModule` object types. All fields are combined with a logical ‘and.’ */ -export interface ResourceModuleToManyHttpRouteModuleFilter { - /** Filters to entities where every related entity matches. */ - every?: HttpRouteModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: HttpRouteModuleFilter; - /** Filters to entities where at least one related entity matches. */ - some?: HttpRouteModuleFilter; -} /** A filter to be used against JSON List fields. All fields are combined with a logical ‘and.’ */ export interface JSONListFilter { /** Any array item is equal to the specified value. */ @@ -16541,15 +18251,6 @@ export interface StorageModuleToManyFileRefFieldFilter { /** 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. */ - every?: HttpRouteModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: HttpRouteModuleFilter; - /** Filters to entities where at least one related entity matches. */ - some?: HttpRouteModuleFilter; -} /** An input for mutations affecting `AgentModule` */ export interface AgentModuleInput { agentTableId?: string; @@ -16557,11 +18258,17 @@ export interface AgentModuleInput { apiName?: string; databaseId: string; defaultCapabilities?: string[]; + defaultVisibility?: string; entityField?: string; entityTableId?: string; + eventTableId?: string; + eventTableName?: string; hasAgents?: boolean; + hasAttachments?: boolean; hasPlans?: boolean; + hasRepositoryResources?: boolean; hasResources?: boolean; + hasRuns?: boolean; id?: string; messageTableId?: string; messageTableName?: string; @@ -16578,16 +18285,21 @@ export interface AgentModuleInput { promptsTableName?: string; provisions?: Record; publicSchemaName?: string; + resourceRepositoryTableId?: string; + resourceRepositoryTableName?: string; resourceTableId?: string; resourceTableName?: string; resources?: Record; + runTableId?: string; + runTableName?: string; schemaId?: string; scope: string; - shared?: boolean; taskTableId?: string; taskTableName?: string; threadTableId?: string; threadTableName?: string; + workspaceTableId?: string; + workspaceTableName?: string; } /** An input for mutations affecting `ApiSurfaceModule` */ export interface ApiSurfaceModuleInput { @@ -16619,6 +18331,7 @@ export interface AppModuleInput { apiName?: string; appComponentsTableId?: string; appComponentsTableName?: string; + appStoreIdentitiesTableName?: string; appsTableId?: string; appsTableName?: string; catalogModuleId?: string; @@ -16670,9 +18383,12 @@ export interface BillingModuleInput { } /** An input for mutations affecting `BillingProviderModule` */ export interface BillingProviderModuleInput { + activatePlanSubscriptionFunction?: string; apiName?: string; billingCustomersTableId?: string; billingCustomersTableName?: string; + billingDisputesTableId?: string; + billingDisputesTableName?: string; billingInvoicesTableId?: string; billingInvoicesTableName?: string; billingPricesTableId?: string; @@ -16686,6 +18402,12 @@ export interface BillingProviderModuleInput { billingWebhookEventsTableId?: string; billingWebhookEventsTableName?: string; databaseId: string; + getActivePlanPricingFunction?: string; + getBillingCustomerFunction?: string; + getBillingPriceFunction?: string; + getBillingProductFunction?: string; + getBillingSubscriptionFunction?: string; + getFallbackFreePlanFunction?: string; id?: string; listPendingUsageSyncFunction?: string; markUsageSyncedFunction?: string; @@ -16696,9 +18418,15 @@ export interface BillingProviderModuleInput { processBillingEventFunction?: string; productsTableId?: string; provider?: string; + recordDisputeFunction?: string; recordRefundFunction?: string; schemaId?: string; subscriptionsTableId?: string; + sweepOverdueSubscriptionsFunction?: string; + upsertBillingCustomerFunction?: string; + upsertBillingPriceFunction?: string; + upsertBillingProductFunction?: string; + upsertBillingSubscriptionFunction?: string; upsertInvoiceFunction?: string; } /** An input for mutations affecting `Blueprint` */ @@ -16826,6 +18554,8 @@ export interface CatalogModuleInput { apiName?: string; apisTableId?: string; apisTableName?: string; + appStoreIdentitiesTableId?: string; + appStoreIdentitiesTableName?: string; appsTableId?: string; appsTableName?: string; bindingsTableId?: string; @@ -16840,12 +18570,18 @@ export interface CatalogModuleInput { functionsTableId?: string; functionsTableName?: string; id?: string; + imagesTableId?: string; + imagesTableName?: string; + managedDomainsTableId?: string; + managedDomainsTableName?: string; namespacesTableId?: string; namespacesTableName?: string; policies?: Record; privateApiName?: string; provisions?: Record; publicSchemaName?: string; + redirectsTableId?: string; + redirectsTableName?: string; resourceDefinitionsTableId?: string; resourceDefinitionsTableName?: string; resourceInstallationsTableId?: string; @@ -16865,39 +18601,57 @@ export interface CatalogModuleInput { sitesWebConfigTableId?: string; sitesWebConfigTableName?: string; } -/** An input for mutations affecting `ComputeLogModule` */ -export interface ComputeLogModuleInput { - actorFkTableId?: string; +/** An input for mutations affecting `ClusterModule` */ +export interface ClusterModuleInput { apiName?: string; - computeLogTableId?: string; - computeLogTableName?: string; + clusterEventsTableId?: string; + clusterEventsTableName?: string; + clustersTableId?: string; + clustersTableName?: string; databaseId: string; + databasePlacementsTableId?: string; + databasePlacementsTableName?: string; + databaseServersTableId?: string; + databaseServersTableName?: string; + defaultCapabilities?: string[]; entityField?: string; - entityFkTableId?: string; id?: string; - interval?: string; + partitionInterval?: string; + physicalDatabasesTableId?: string; + physicalDatabasesTableName?: string; + policies?: Record; prefix?: string; premake?: number; privateApiName?: string; privateSchemaId?: string; privateSchemaName?: string; + provisions?: Record; publicSchemaName?: string; retention?: string; schemaId?: string; - scope: string; - usageSummaryTableId?: string; - usageSummaryTableName?: string; + scope?: string; } -/** An input for mutations affecting `ConfigSecretsUserModule` */ -export interface ConfigSecretsUserModuleInput { +/** An input for mutations affecting `ComputeLogModule` */ +export interface ComputeLogModuleInput { apiName?: string; + computeLogTableId?: string; + computeLogTableName?: string; databaseId: string; entityField?: string; id?: string; + interval?: string; + prefix?: string; + premake?: number; privateApiName?: string; + privateSchemaId?: string; + privateSchemaName?: string; + publicSchemaName?: string; + retention?: string; + rollupFunctionName?: string; schemaId?: string; - tableId?: string; - tableName?: string; + scope: string; + usageSummaryTableId?: string; + usageSummaryTableName?: string; } /** An input for mutations affecting `ConnectedAccountsModule` */ export interface ConnectedAccountsModuleInput { @@ -16979,11 +18733,13 @@ export interface DataCapabilitiesFieldInput { 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 */ async?: boolean; + /** The user whose identity is copied into the new database. Defaults to owner_id when NULL; set explicitly when owner_id is an organization */ + bootstrapActorId?: string; /** Error message from the most recent failed bootstrap attempt */ bootstrapError?: string; /** Status of the deferred owner bootstrap job: not_requested, pending, completed, or failed */ bootstrapStatus?: string; - /** When true, copies the owner user and password hash from source database to the newly provisioned database */ + /** When true, copies the bootstrap user and password hash from source database to the newly provisioned database */ bootstrapUser?: boolean; completedAt?: string; createdAt?: string; @@ -17001,7 +18757,7 @@ export interface DatabaseProvisionModuleInput { modules?: Record; /** Additional configuration options for provisioning */ options?: Record; - /** UUID of the user who owns this database */ + /** UUID of the entity that owns this database: a user, or an organization for an org-owned request */ ownerId: string; /** The database the owner user is copied from during bootstrap (captured from JWT context at provision time) */ sourceDatabaseId?: string; @@ -17629,6 +19385,7 @@ export interface FunctionModuleInput { schedulesTableId?: string; schemaId?: string; scope: string; + storageKey?: string; } /** An input for mutations affecting `GraphExecutionModule` */ export interface GraphExecutionModuleInput { @@ -17703,30 +19460,6 @@ export interface HierarchyModuleInput { sprtTableName?: string; usersTableId: string; } -/** An input for mutations affecting `HttpRouteModule` */ -export interface HttpRouteModuleInput { - apiName?: string; - databaseId: string; - defaultCapabilities?: string[]; - entityField?: string; - entityTableId?: string; - functionModuleId?: string; - httpRoutesTableId?: string; - httpRoutesTableName?: string; - id?: string; - policies?: Record; - prefix?: string; - privateApiName?: string; - privateSchemaId?: string; - privateSchemaName?: string; - provisions?: Record; - publicSchemaName?: string; - resolverFunctionName?: string; - resourceModuleId?: string; - schemaId?: string; - scope: string; - storageModuleId?: string; -} /** An input for mutations affecting `I18NModule` */ export interface I18NModuleInput { apiName?: string; @@ -17755,13 +19488,37 @@ export interface IdentityProvidersModuleInput { tableId?: string; tableName?: string; } +/** An input for mutations affecting `ImageModule` */ +export interface ImageModuleInput { + apiName?: string; + databaseId: string; + defaultCapabilities?: string[]; + entityField?: string; + entityTableId?: string; + id?: string; + imageGrantsTableId?: string; + imageGrantsTableName?: string; + imagesTableId?: string; + imagesTableName?: string; + policies?: Record; + prefix?: string; + privateApiName?: string; + privateSchemaId?: string; + privateSchemaName?: string; + provisions?: Record; + publicSchemaName?: string; + registriesTableId?: string; + registriesTableName?: string; + registryGrantsTableId?: string; + registryGrantsTableName?: string; + schemaId?: string; + scope: string; +} /** An input for mutations affecting `InferenceLogModule` */ export interface InferenceLogModuleInput { - actorFkTableId?: string; apiName?: string; databaseId: string; entityField?: string; - entityFkTableId?: string; id?: string; inferenceLogTableId?: string; inferenceLogTableName?: string; @@ -17773,6 +19530,7 @@ export interface InferenceLogModuleInput { privateSchemaName?: string; publicSchemaName?: string; retention?: string; + rollupFunctionName?: string; schemaId?: string; scope: string; usageSummaryTableId?: string; @@ -17833,6 +19591,25 @@ export interface IntegrationProvidersModuleInput { tableId?: string; tableName?: string; } +/** An input for mutations affecting `InternalConfigModule` */ +export interface InternalConfigModuleInput { + apiName?: string; + databaseId: string; + entityField?: string; + entityTableId?: string; + id?: string; + internalConfigTableId?: string; + internalConfigTableName?: string; + policies?: Record; + prefix?: string; + privateApiName?: string; + privateSchemaId?: string; + privateSchemaName?: string; + provisions?: Record; + publicSchemaName?: string; + schemaId?: string; + scope: string; +} /** An input for mutations affecting `InternalSecretsModule` */ export interface InternalSecretsModuleInput { apiName?: string; @@ -17874,6 +19651,27 @@ export interface InvitesModuleInput { submitInviteCodeFunction?: string; usersTableId?: string; } +/** An input for mutations affecting `K8sAdmissionModule` */ +export interface K8sAdmissionModuleInput { + apiName?: string; + createdAt?: string; + databaseId: string; + entityTableId?: string; + id?: string; + k8sResourceKindsTableId?: string; + k8sSpecRulesTableId?: 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 `LimitsModule` */ export interface LimitsModuleInput { actorTableId?: string; @@ -17915,6 +19713,33 @@ export interface LimitsModuleInput { tableId?: string; tableName?: string; } +/** An input for mutations affecting `MachineModule` */ +export interface MachineModuleInput { + apiName?: string; + databaseId: string; + defaultCapabilities?: string[]; + entityField?: string; + entityTableId?: string; + id?: string; + machineMessagesTableId?: string; + machineMessagesTableName?: string; + machineSessionsTableId?: string; + machineSessionsTableName?: string; + machinesTableId?: string; + machinesTableName?: string; + partitionInterval?: string; + policies?: Record; + prefix?: string; + premake?: number; + privateApiName?: string; + privateSchemaId?: string; + privateSchemaName?: string; + provisions?: Record; + publicSchemaName?: string; + retention?: string; + schemaId?: string; + scope: string; +} /** An input for mutations affecting `MembershipTypesModule` */ export interface MembershipTypesModuleInput { databaseId: string; @@ -17976,6 +19801,7 @@ export interface MerkleStoreModuleInput { createdAt?: string; databaseId: string; entityField?: string; + entityTableId?: string; functionPrefix?: string; id?: string; objectTableId?: string; @@ -18064,12 +19890,17 @@ export interface PagesModuleInput { pagesTableId?: string; policies?: Record; prefix: string; + previewCommitFunctionName?: string; + previewSetFunctionName?: string; + previewTokenMintFunctionName?: string; + previewTokenVerifierFunctionName?: string; privateApiName?: string; privateSchemaId?: string; privateSchemaName?: string; provisions?: Record; publicSchemaId?: string; publicSchemaName?: string; + releaseManifestFunctionName?: string; scope: string; siteSurfaceModuleId?: string; sitesTableId?: string; @@ -18126,10 +19957,12 @@ export interface PrincipalAuthModuleInput { principalScopeOverridesTableId?: string; principalsTableId?: string; principalsTableName?: string; + privateSchemaId?: string; revokeOrgApiKeyFunction?: string; schemaId?: string; sessionCredentialsTableId?: string; sessionsTableId?: string; + sweepExpiredPrincipalsFunction?: string; usersTableId?: string; } /** An input for mutations affecting `ProfilesModule` */ @@ -18211,6 +20044,32 @@ export interface RealtimeModuleInput { sourceRegistryTableId?: string; subscriptionsSchemaId?: string; } +/** An input for mutations affecting `RefusalLogModule` */ +export interface RefusalLogModuleInput { + apiName?: string; + databaseId: string; + entityField?: string; + id?: string; + logInterval?: string; + logPremake?: number; + logRetention?: string; + logTableId?: string; + logTableName?: string; + prefix?: string; + privateApiName?: string; + privateSchemaId?: string; + privateSchemaName?: string; + publicSchemaName?: string; + recordRefusalsFunction?: string; + rollupRefusalUsageSummaryFunction?: string; + schemaId?: string; + scope: string; + summaryInterval?: string; + summaryPremake?: number; + summaryRetention?: string; + summaryTableId?: string; + summaryTableName?: string; +} /** An input for mutations affecting `RelationProvision` */ export interface RelationProvisionInput { /** @@ -18335,9 +20194,54 @@ export interface RelationProvisionInput { */ useCompositeKey?: boolean; } +/** An input for mutations affecting `RepositoryModule` */ +export interface RepositoryModuleInput { + apiName?: string; + buildStepsTableId?: string; + buildStepsTableName?: string; + buildsTableId?: string; + buildsTableName?: string; + databaseId: string; + defaultCapabilities?: string[]; + entityField?: string; + entityTableId?: string; + hasAttachments?: boolean; + hasBuilds?: boolean; + id?: string; + policies?: Record; + prefix?: string; + privateApiName?: string; + privateSchemaId?: string; + privateSchemaName?: string; + proposalCommentsTableId?: string; + proposalCommentsTableName?: string; + proposalFileViewsTableId?: string; + proposalFileViewsTableName?: string; + proposalReactionsTableId?: string; + proposalReactionsTableName?: string; + proposalReviewsTableId?: string; + proposalReviewsTableName?: string; + proposalsTableId?: string; + proposalsTableName?: string; + provisions?: Record; + publicSchemaName?: string; + repositoriesTableId?: string; + repositoriesTableName?: string; + repositoryEventsTableId?: string; + repositoryEventsTableName?: string; + repositoryRequiredChecksTableId?: string; + repositoryRequiredChecksTableName?: string; + schemaId?: string; + scope: string; + search?: Record; + workflowsTableId?: string; + workflowsTableName?: string; +} /** An input for mutations affecting `ResourceModule` */ export interface ResourceModuleInput { apiName?: string; + builderBindingsTableId?: string; + builderBindingsTableName?: string; databaseId: string; defaultCapabilities?: string[]; entityField?: string; @@ -18353,6 +20257,8 @@ export interface ResourceModuleInput { privateSchemaName?: string; provisions?: Record; publicSchemaName?: string; + registryBindingsTableId?: string; + registryBindingsTableName?: string; requirementsStateViewName?: string; resolvedRequirementsViewName?: string; resourceBillingRollupFunction?: string; @@ -18411,6 +20317,8 @@ export interface RouteModuleInput { privateSchemaName?: string; provisions?: Record; publicSchemaName?: string; + redirectsTableId?: string; + redirectsTableName?: string; resolverFunctionName?: string; routeBindingsTableId?: string; routeBindingsTableName?: string; @@ -18418,6 +20326,8 @@ export interface RouteModuleInput { routesTableName?: string; schemaId?: string; scope: string; + servingSiteField?: string; + storageKey?: string; } /** An input for mutations affecting `ScopeTypesModule` */ export interface ScopeTypesModuleInput { @@ -18437,10 +20347,14 @@ export interface SecureTableProvisionInput { grants?: Record; /** Unique identifier for this provision row. */ id?: string; + /** Module reference naming a module-generated target table symbolically, instead of by table_id or table_name: a jsonb object with keys "type" (text, required — the module type, e.g. "image"), "table" (text, required — the module's own table key, e.g. "registries"), "scope" (text, optional — the install scope) and "prefix" (text, optional — disambiguates multiple installs of the same module). Resolved through metaschema_modules_private.resolve_module_table(), so it raises the same errors blueprint module references do (BLUEPRINT_MODULE_REF_INVALID, BLUEPRINT_MODULE_NOT_INSTALLED, BLUEPRINT_MODULE_REF_AMBIGUOUS, BLUEPRINT_MODULE_TABLE_UNKNOWN). Mutually exclusive with table_name and with an explicit table_id. Example: {"type":"image","scope":"org","table":"registries"}. Defaults to NULL. */ + module?: Record; /** Array of node objects to apply to the table. Each element is a jsonb object with a required "$type" key (one of: DataId, DataDirectOwner, DataEntityMembership, DataOwnershipInEntity, DataTimestamps, DataPeoplestamps, DataPublishable, DataSoftDelete, DataEmbedding, DataFullTextSearch, DataSlug, etc.) and an optional "data" key containing generator-specific configuration. Supports multiple nodes per row, matching the blueprint definition format. Example: [{"$type": "DataId"}, {"$type": "DataTimestamps"}, {"$type": "DataDirectOwner", "data": {"owner_field_name": "author_id"}}]. Defaults to '[]' (no node processing). */ nodes?: Record; /** Output column populated by the trigger after field creation. Contains the UUIDs of the metaschema fields created on the target table by this provision row's nodes. NULL when nodes is empty or before the trigger runs. Callers should not set this directly. */ outFields?: string[]; + /** Security concerns this row owns on the target table, as a jsonb array of "grants" and/or "policies". A listed concern is replaced: the target table's existing grants (or its non-derived policies) are dropped before this row's grants[] (or policies[]) are applied, so the row's array is the table's whole set — this is how a module-generated table's default security is superseded rather than layered on. An unlisted concern composes, which is the default and the historical behavior. A concern may only be owned when this row supplies a non-empty array for it; owning a concern with nothing to install would leave the table with RLS enabled and no policy, and raises instead. Example: ["policies","grants"]. Defaults to '[]' (compose everything). */ + owns?: Record; /** Array of policy objects to create on the target table. Each element is a jsonb object with keys: "$type" (text, required — the Authz* policy generator type, e.g. AuthzEntityMembership, AuthzMembership, AuthzDirectOwner, AuthzPublishable, AuthzAllowAll), "data" (jsonb, optional — opaque configuration passed to metaschema.create_policy(), structure varies by type), "privileges" (text[], optional — privileges the policy applies to, e.g. ["select","insert"]; if omitted, derived from grants[] privilege verbs), "policy_role" (text, optional — role the policy targets; if omitted, falls back to first role in first grants[] entry, or 'authenticated' if no grants), "permissive" (boolean, optional — PERMISSIVE or RESTRICTIVE; defaults to true), "policy_name" (text, optional — custom suffix for the generated policy name; if omitted, auto-derived from $type by stripping Authz prefix). Supports multiple policies per row. Example: [{"$type": "AuthzEntityMembership", "data": {"entity_field": "owner_id", "membership_type": 3}, "privileges": ["select", "insert"]}, {"$type": "AuthzDirectOwner", "data": {"entity_field": "actor_id"}, "privileges": ["update", "delete"]}]. Defaults to '[]' (no policies created). When non-empty, the trigger automatically enables RLS. */ policies?: Record; /** Target schema for the table. Defaults to uuid_nil(); the trigger resolves this to the app_public schema if not explicitly provided. */ @@ -18504,20 +20418,21 @@ export interface SiteSurfaceModuleInput { siteMetadataTableName?: string; siteModulesTableId?: string; siteModulesTableName?: string; + siteReleasesTableId?: string; + siteReleasesTableName?: string; siteThemesTableId?: string; siteThemesTableName?: string; siteWebConfigTableId?: string; siteWebConfigTableName?: string; sitesTableId?: string; sitesTableName?: string; + storageKey?: string; } /** An input for mutations affecting `StorageLogModule` */ export interface StorageLogModuleInput { - actorFkTableId?: string; apiName?: string; databaseId: string; entityField?: string; - entityFkTableId?: string; id?: string; interval?: string; prefix?: string; @@ -18527,6 +20442,7 @@ export interface StorageLogModuleInput { privateSchemaName?: string; publicSchemaName?: string; retention?: string; + rollupFunctionName?: string; schemaId?: string; scope: string; storageLogTableId?: string; @@ -18560,6 +20476,7 @@ export interface StorageModuleInput { hasPathShares?: boolean; hasVersioning?: boolean; id?: string; + key?: string; maxBulkFiles?: number; maxBulkTotalSize?: string; maxFilenameLength?: number; @@ -18580,11 +20497,9 @@ export interface StorageModuleInput { } /** An input for mutations affecting `TransferLogModule` */ export interface TransferLogModuleInput { - actorFkTableId?: string; apiName?: string; databaseId: string; entityField?: string; - entityFkTableId?: string; id?: string; interval?: string; prefix?: string; @@ -18594,6 +20509,7 @@ export interface TransferLogModuleInput { privateSchemaName?: string; publicSchemaName?: string; retention?: string; + rollupFunctionName?: string; schemaId?: string; scope: string; transferLogTableId?: string; @@ -18615,8 +20531,10 @@ export interface UserAuthModuleInput { forgotPasswordFunction?: string; id?: string; privateApiName?: string; + privateSchemaId?: string; requestCrossOriginTokenFunction?: string; resetPasswordFunction?: string; + revokeSessionTreeFunction?: string; schemaId?: string; secretsTableId?: string; sendAccountDeletionEmailFunction?: string; @@ -18628,6 +20546,7 @@ export interface UserAuthModuleInput { signInFunction?: string; signOutFunction?: string; signUpFunction?: string; + sweepExpiredSessionsFunction?: string; usersTableId?: string; verifyEmailFunction?: string; verifyPasswordFunction?: string; @@ -18976,6 +20895,8 @@ export interface AppModuleFilter { appComponentsTableId?: UUIDFilter; /** Filter by the object’s `appComponentsTableName` field. */ appComponentsTableName?: StringFilter; + /** Filter by the object’s `appStoreIdentitiesTableName` field. */ + appStoreIdentitiesTableName?: StringFilter; /** Filter by the object’s `appsTableId` field. */ appsTableId?: UUIDFilter; /** Filter by the object’s `appsTableName` field. */ @@ -19138,6 +21059,10 @@ export interface RouteModuleFilter { provisions?: JSONFilter; /** Filter by the object’s `publicSchemaName` field. */ publicSchemaName?: StringFilter; + /** Filter by the object’s `redirectsTableId` field. */ + redirectsTableId?: UUIDFilter; + /** Filter by the object’s `redirectsTableName` field. */ + redirectsTableName?: StringFilter; /** Filter by the object’s `resolverFunctionName` field. */ resolverFunctionName?: StringFilter; /** Filter by the object’s `routeBindingsTableId` field. */ @@ -19152,6 +21077,10 @@ export interface RouteModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `scope` field. */ scope?: StringFilter; + /** Filter by the object’s `servingSiteField` field. */ + servingSiteField?: StringFilter; + /** Filter by the object’s `storageKey` field. */ + storageKey?: StringFilter; } /** A filter to be used against `SiteSurfaceModule` object types. All fields are combined with a logical ‘and.’ */ export interface SiteSurfaceModuleFilter { @@ -19225,6 +21154,10 @@ export interface SiteSurfaceModuleFilter { siteModulesTableId?: UUIDFilter; /** Filter by the object’s `siteModulesTableName` field. */ siteModulesTableName?: StringFilter; + /** Filter by the object’s `siteReleasesTableId` field. */ + siteReleasesTableId?: UUIDFilter; + /** Filter by the object’s `siteReleasesTableName` field. */ + siteReleasesTableName?: StringFilter; /** Filter by the object’s `siteThemesTableId` field. */ siteThemesTableId?: UUIDFilter; /** Filter by the object’s `siteThemesTableName` field. */ @@ -19237,6 +21170,8 @@ export interface SiteSurfaceModuleFilter { sitesTableId?: UUIDFilter; /** Filter by the object’s `sitesTableName` field. */ sitesTableName?: StringFilter; + /** Filter by the object’s `storageKey` field. */ + storageKey?: StringFilter; } /** A filter to be used against `WebhookModule` object types. All fields are combined with a logical ‘and.’ */ export interface WebhookModuleFilter { @@ -19368,69 +21303,6 @@ export interface FunctionDeploymentModuleFilter { /** Filter by the object’s `scope` field. */ scope?: StringFilter; } -/** A filter to be used against `HttpRouteModule` object types. All fields are combined with a logical ‘and.’ */ -export interface HttpRouteModuleFilter { - /** Checks for all expressions in this list. */ - and?: HttpRouteModuleFilter[]; - /** 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 `entityField` field. */ - entityField?: StringFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; - /** Filter by the object’s `functionModule` relation. */ - functionModule?: FunctionModuleFilter; - /** A related `functionModule` exists. */ - functionModuleExists?: boolean; - /** Filter by the object’s `functionModuleId` field. */ - functionModuleId?: UUIDFilter; - /** Filter by the object’s `httpRoutesTableId` field. */ - httpRoutesTableId?: UUIDFilter; - /** Filter by the object’s `httpRoutesTableName` field. */ - httpRoutesTableName?: StringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Negates the expression. */ - not?: HttpRouteModuleFilter; - /** Checks for any expressions in this list. */ - or?: HttpRouteModuleFilter[]; - /** 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 `publicSchemaName` field. */ - publicSchemaName?: StringFilter; - /** Filter by the object’s `resolverFunctionName` field. */ - resolverFunctionName?: StringFilter; - /** Filter by the object’s `resourceModule` relation. */ - resourceModule?: ResourceModuleFilter; - /** A related `resourceModule` exists. */ - resourceModuleExists?: boolean; - /** Filter by the object’s `resourceModuleId` field. */ - resourceModuleId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; - /** Filter by the object’s `storageModule` relation. */ - storageModule?: StorageModuleFilter; - /** A related `storageModule` exists. */ - storageModuleExists?: boolean; - /** Filter by the object’s `storageModuleId` field. */ - storageModuleId?: UUIDFilter; -} /** A filter to be used against `GraphExecutionModule` object types. All fields are combined with a logical ‘and.’ */ export interface GraphExecutionModuleFilter { /** Checks for all expressions in this list. */ @@ -19629,6 +21501,53 @@ export interface GraphModuleFilter { /** Filter by the object’s `scope` field. */ scope?: StringFilter; } +/** A filter to be used against `K8sAdmissionModule` object types. All fields are combined with a logical ‘and.’ */ +export interface K8sAdmissionModuleFilter { + /** Checks for all expressions in this list. */ + and?: K8sAdmissionModuleFilter[]; + /** 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 `k8sResourceKindsTableId` field. */ + k8sResourceKindsTableId?: UUIDFilter; + /** Filter by the object’s `k8sSpecRulesTableId` field. */ + k8sSpecRulesTableId?: UUIDFilter; + /** Filter by the object’s `merkleStoreModule` relation. */ + merkleStoreModule?: MerkleStoreModuleFilter; + /** Filter by the object’s `merkleStoreModuleId` field. */ + merkleStoreModuleId?: UUIDFilter; + /** Negates the expression. */ + not?: K8sAdmissionModuleFilter; + /** Checks for any expressions in this list. */ + or?: K8sAdmissionModuleFilter[]; + /** 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 `PagesModule` object types. All fields are combined with a logical ‘and.’ */ export interface PagesModuleFilter { /** Checks for all expressions in this list. */ @@ -19657,6 +21576,14 @@ export interface PagesModuleFilter { policies?: JSONFilter; /** Filter by the object’s `prefix` field. */ prefix?: StringFilter; + /** Filter by the object’s `previewCommitFunctionName` field. */ + previewCommitFunctionName?: StringFilter; + /** Filter by the object’s `previewSetFunctionName` field. */ + previewSetFunctionName?: StringFilter; + /** Filter by the object’s `previewTokenMintFunctionName` field. */ + previewTokenMintFunctionName?: StringFilter; + /** Filter by the object’s `previewTokenVerifierFunctionName` field. */ + previewTokenVerifierFunctionName?: StringFilter; /** Filter by the object’s `privateApiName` field. */ privateApiName?: StringFilter; /** Filter by the object’s `privateSchemaId` field. */ @@ -19669,6 +21596,8 @@ export interface PagesModuleFilter { publicSchemaId?: UUIDFilter; /** Filter by the object’s `publicSchemaName` field. */ publicSchemaName?: StringFilter; + /** Filter by the object’s `releaseManifestFunctionName` field. */ + releaseManifestFunctionName?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: StringFilter; /** Filter by the object’s `siteSurfaceModule` relation. */ @@ -19688,6 +21617,10 @@ export interface ResourceModuleFilter { and?: ResourceModuleFilter[]; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; + /** Filter by the object’s `builderBindingsTableId` field. */ + builderBindingsTableId?: UUIDFilter; + /** Filter by the object’s `builderBindingsTableName` field. */ + builderBindingsTableName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; /** Filter by the object’s `defaultCapabilities` field. */ @@ -19696,10 +21629,6 @@ export interface ResourceModuleFilter { entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ entityTableId?: UUIDFilter; - /** Filter by the object’s `httpRouteModules` relation. */ - httpRouteModules?: ResourceModuleToManyHttpRouteModuleFilter; - /** `httpRouteModules` exist. */ - httpRouteModulesExist?: boolean; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `installationStoreName` field. */ @@ -19734,6 +21663,10 @@ export interface ResourceModuleFilter { provisions?: JSONFilter; /** Filter by the object’s `publicSchemaName` field. */ publicSchemaName?: StringFilter; + /** Filter by the object’s `registryBindingsTableId` field. */ + registryBindingsTableId?: UUIDFilter; + /** Filter by the object’s `registryBindingsTableName` field. */ + registryBindingsTableName?: StringFilter; /** Filter by the object’s `requirementsStateViewName` field. */ requirementsStateViewName?: StringFilter; /** Filter by the object’s `resolvedRequirementsViewName` field. */ @@ -20183,6 +22116,10 @@ export interface CatalogModuleFilter { appModules?: CatalogModuleToManyAppModuleFilter; /** `appModules` exist. */ appModulesExist?: boolean; + /** Filter by the object’s `appStoreIdentitiesTableId` field. */ + appStoreIdentitiesTableId?: UUIDFilter; + /** Filter by the object’s `appStoreIdentitiesTableName` field. */ + appStoreIdentitiesTableName?: StringFilter; /** Filter by the object’s `appsTableId` field. */ appsTableId?: UUIDFilter; /** Filter by the object’s `appsTableName` field. */ @@ -20215,6 +22152,14 @@ export interface CatalogModuleFilter { functionsTableName?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `imagesTableId` field. */ + imagesTableId?: UUIDFilter; + /** Filter by the object’s `imagesTableName` field. */ + imagesTableName?: StringFilter; + /** Filter by the object’s `managedDomainsTableId` field. */ + managedDomainsTableId?: UUIDFilter; + /** Filter by the object’s `managedDomainsTableName` field. */ + managedDomainsTableName?: StringFilter; /** Filter by the object’s `namespacesTableId` field. */ namespacesTableId?: UUIDFilter; /** Filter by the object’s `namespacesTableName` field. */ @@ -20231,6 +22176,10 @@ export interface CatalogModuleFilter { provisions?: JSONFilter; /** Filter by the object’s `publicSchemaName` field. */ publicSchemaName?: StringFilter; + /** Filter by the object’s `redirectsTableId` field. */ + redirectsTableId?: UUIDFilter; + /** Filter by the object’s `redirectsTableName` field. */ + redirectsTableName?: StringFilter; /** Filter by the object’s `resourceDefinitionsTableId` field. */ resourceDefinitionsTableId?: UUIDFilter; /** Filter by the object’s `resourceDefinitionsTableName` field. */ @@ -20361,10 +22310,6 @@ export interface FunctionModuleFilter { functionDeploymentModulesExist?: boolean; /** Filter by the object’s `hasCron` field. */ hasCron?: BooleanFilter; - /** Filter by the object’s `httpRouteModules` relation. */ - httpRouteModules?: FunctionModuleToManyHttpRouteModuleFilter; - /** `httpRouteModules` exist. */ - httpRouteModulesExist?: boolean; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Negates the expression. */ @@ -20391,6 +22336,8 @@ export interface FunctionModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `scope` field. */ scope?: StringFilter; + /** Filter by the object’s `storageKey` field. */ + storageKey?: StringFilter; /** Filter by the object’s `webhookModules` relation. */ webhookModules?: FunctionModuleToManyWebhookModuleFilter; /** `webhookModules` exist. */ @@ -20500,6 +22447,77 @@ export interface NamespaceModuleFilter { /** `webhookModules` exist. */ webhookModulesExist?: boolean; } +/** A filter to be used against `MerkleStoreModule` object types. All fields are combined with a logical ‘and.’ */ +export interface MerkleStoreModuleFilter { + /** Checks for all expressions in this list. */ + 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. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `dbPresetModules` relation. */ + dbPresetModules?: MerkleStoreModuleToManyDbPresetModuleFilter; + /** `dbPresetModules` exist. */ + dbPresetModulesExist?: boolean; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `functionPrefix` field. */ + functionPrefix?: StringFilter; + /** Filter by the object’s `graphModules` relation. */ + graphModules?: MerkleStoreModuleToManyGraphModuleFilter; + /** `graphModules` exist. */ + graphModulesExist?: boolean; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `k8sAdmissionModules` relation. */ + k8sAdmissionModules?: MerkleStoreModuleToManyK8sAdmissionModuleFilter; + /** `k8sAdmissionModules` exist. */ + k8sAdmissionModulesExist?: boolean; + /** Negates the expression. */ + not?: MerkleStoreModuleFilter; + /** Filter by the object’s `objectTableId` field. */ + objectTableId?: UUIDFilter; + /** Checks for any expressions in this list. */ + or?: MerkleStoreModuleFilter[]; + /** Filter by the object’s `pagesModules` relation. */ + pagesModules?: MerkleStoreModuleToManyPagesModuleFilter; + /** `pagesModules` exist. */ + pagesModulesExist?: boolean; + /** 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 `refTableId` field. */ + refTableId?: UUIDFilter; + /** Filter by the object’s `resourceModules` relation. */ + resourceModules?: MerkleStoreModuleToManyResourceModuleFilter; + /** `resourceModules` exist. */ + resourceModulesExist?: boolean; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `storeTableId` field. */ + storeTableId?: UUIDFilter; +} /** A filter to be used against `StorageModule` object types. All fields are combined with a logical ‘and.’ */ export interface StorageModuleFilter { /** Filter by the object’s `allowedOrigins` field. */ @@ -20554,93 +22572,24 @@ export interface StorageModuleFilter { hasPathShares?: BooleanFilter; /** Filter by the object’s `hasVersioning` field. */ hasVersioning?: BooleanFilter; - /** Filter by the object’s `httpRouteModules` relation. */ - httpRouteModules?: StorageModuleToManyHttpRouteModuleFilter; - /** `httpRouteModules` exist. */ - httpRouteModulesExist?: boolean; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `key` field. */ + key?: StringFilter; /** Filter by the object’s `maxBulkFiles` field. */ maxBulkFiles?: IntFilter; /** Filter by the object’s `maxBulkTotalSize` field. */ - maxBulkTotalSize?: BigIntFilter; - /** Filter by the object’s `maxFilenameLength` field. */ - maxFilenameLength?: IntFilter; - /** Negates the expression. */ - not?: StorageModuleFilter; - /** Checks for any expressions in this list. */ - or?: StorageModuleFilter[]; - /** Filter by the object’s `pathSharesTableId` field. */ - pathSharesTableId?: 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 `provider` field. */ - provider?: StringFilter; - /** Filter by the object’s `provisions` field. */ - provisions?: JSONFilter; - /** Filter by the object’s `publicSchemaName` field. */ - publicSchemaName?: StringFilter; - /** Filter by the object’s `publicUrlPrefix` field. */ - publicUrlPrefix?: StringFilter; - /** Filter by the object’s `restrictReads` field. */ - restrictReads?: BooleanFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; - /** Filter by the object’s `uploadUrlExpirySeconds` field. */ - uploadUrlExpirySeconds?: IntFilter; -} -/** A filter to be used against `MerkleStoreModule` object types. All fields are combined with a logical ‘and.’ */ -export interface MerkleStoreModuleFilter { - /** Checks for all expressions in this list. */ - 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. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `dbPresetModules` relation. */ - dbPresetModules?: MerkleStoreModuleToManyDbPresetModuleFilter; - /** `dbPresetModules` exist. */ - dbPresetModulesExist?: boolean; - /** Filter by the object’s `entityField` field. */ - entityField?: StringFilter; - /** Filter by the object’s `functionPrefix` field. */ - functionPrefix?: StringFilter; - /** Filter by the object’s `graphModules` relation. */ - graphModules?: MerkleStoreModuleToManyGraphModuleFilter; - /** `graphModules` exist. */ - graphModulesExist?: boolean; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; + maxBulkTotalSize?: BigIntFilter; + /** Filter by the object’s `maxFilenameLength` field. */ + maxFilenameLength?: IntFilter; /** Negates the expression. */ - not?: MerkleStoreModuleFilter; - /** Filter by the object’s `objectTableId` field. */ - objectTableId?: UUIDFilter; + not?: StorageModuleFilter; /** Checks for any expressions in this list. */ - or?: MerkleStoreModuleFilter[]; - /** Filter by the object’s `pagesModules` relation. */ - pagesModules?: MerkleStoreModuleToManyPagesModuleFilter; - /** `pagesModules` exist. */ - pagesModulesExist?: boolean; + or?: StorageModuleFilter[]; + /** Filter by the object’s `pathSharesTableId` field. */ + pathSharesTableId?: 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. */ @@ -20649,20 +22598,22 @@ export interface MerkleStoreModuleFilter { privateSchemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaName` field. */ privateSchemaName?: StringFilter; + /** Filter by the object’s `provider` field. */ + provider?: StringFilter; + /** Filter by the object’s `provisions` field. */ + provisions?: JSONFilter; /** Filter by the object’s `publicSchemaName` field. */ publicSchemaName?: StringFilter; - /** Filter by the object’s `refTableId` field. */ - refTableId?: UUIDFilter; - /** Filter by the object’s `resourceModules` relation. */ - resourceModules?: MerkleStoreModuleToManyResourceModuleFilter; - /** `resourceModules` exist. */ - resourceModulesExist?: boolean; + /** Filter by the object’s `publicUrlPrefix` field. */ + publicUrlPrefix?: StringFilter; + /** Filter by the object’s `restrictReads` field. */ + restrictReads?: BooleanFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `scope` field. */ scope?: StringFilter; - /** Filter by the object’s `storeTableId` field. */ - storeTableId?: UUIDFilter; + /** Filter by the object’s `uploadUrlExpirySeconds` field. */ + uploadUrlExpirySeconds?: IntFilter; } /** A filter to be used against BigInt fields. All fields are combined with a logical ‘and.’ */ export interface BigIntFilter { @@ -20707,26 +22658,19 @@ export type CopyTemplateToBlueprintPayloadSelect = { 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; + /** The logical bucket row that was queued for reconciliation. */ + bucketId: string; + bucketKey: string; + /** The reconciler job enqueued to provision this bucket. */ + jobId: string; + /** The physical bucket name already recorded, or null when reconciliation has not completed. */ + physicalName?: string | null; } export type ProvisionBucketPayloadSelect = { - accessType?: boolean; - bucketName?: boolean; - endpoint?: boolean; - error?: boolean; - provider?: boolean; - success?: boolean; + bucketId?: boolean; + bucketKey?: boolean; + jobId?: boolean; + physicalName?: boolean; }; export interface CreateAgentModulePayload { /** The `AgentModule` that was created by this mutation. */ @@ -21178,6 +23122,51 @@ export type DeleteCatalogModulePayloadSelect = { }; clientMutationId?: boolean; }; +export interface CreateClusterModulePayload { + clientMutationId?: string | null; + /** The `ClusterModule` that was created by this mutation. */ + clusterModule?: ClusterModule | null; + clusterModuleEdge?: ClusterModuleEdge | null; +} +export type CreateClusterModulePayloadSelect = { + clientMutationId?: boolean; + clusterModule?: { + select: ClusterModuleSelect; + }; + clusterModuleEdge?: { + select: ClusterModuleEdgeSelect; + }; +}; +export interface UpdateClusterModulePayload { + clientMutationId?: string | null; + /** The `ClusterModule` that was updated by this mutation. */ + clusterModule?: ClusterModule | null; + clusterModuleEdge?: ClusterModuleEdge | null; +} +export type UpdateClusterModulePayloadSelect = { + clientMutationId?: boolean; + clusterModule?: { + select: ClusterModuleSelect; + }; + clusterModuleEdge?: { + select: ClusterModuleEdgeSelect; + }; +}; +export interface DeleteClusterModulePayload { + clientMutationId?: string | null; + /** The `ClusterModule` that was deleted by this mutation. */ + clusterModule?: ClusterModule | null; + clusterModuleEdge?: ClusterModuleEdge | null; +} +export type DeleteClusterModulePayloadSelect = { + clientMutationId?: boolean; + clusterModule?: { + select: ClusterModuleSelect; + }; + clusterModuleEdge?: { + select: ClusterModuleEdgeSelect; + }; +}; export interface CreateComputeLogModulePayload { clientMutationId?: string | null; /** The `ComputeLogModule` that was created by this mutation. */ @@ -21223,51 +23212,6 @@ export type DeleteComputeLogModulePayloadSelect = { select: ComputeLogModuleEdgeSelect; }; }; -export interface CreateConfigSecretsUserModulePayload { - clientMutationId?: string | null; - /** The `ConfigSecretsUserModule` that was created by this mutation. */ - configSecretsUserModule?: ConfigSecretsUserModule | null; - configSecretsUserModuleEdge?: ConfigSecretsUserModuleEdge | null; -} -export type CreateConfigSecretsUserModulePayloadSelect = { - clientMutationId?: boolean; - configSecretsUserModule?: { - select: ConfigSecretsUserModuleSelect; - }; - configSecretsUserModuleEdge?: { - select: ConfigSecretsUserModuleEdgeSelect; - }; -}; -export interface UpdateConfigSecretsUserModulePayload { - clientMutationId?: string | null; - /** The `ConfigSecretsUserModule` that was updated by this mutation. */ - configSecretsUserModule?: ConfigSecretsUserModule | null; - configSecretsUserModuleEdge?: ConfigSecretsUserModuleEdge | null; -} -export type UpdateConfigSecretsUserModulePayloadSelect = { - clientMutationId?: boolean; - configSecretsUserModule?: { - select: ConfigSecretsUserModuleSelect; - }; - configSecretsUserModuleEdge?: { - select: ConfigSecretsUserModuleEdgeSelect; - }; -}; -export interface DeleteConfigSecretsUserModulePayload { - clientMutationId?: string | null; - /** The `ConfigSecretsUserModule` that was deleted by this mutation. */ - configSecretsUserModule?: ConfigSecretsUserModule | null; - configSecretsUserModuleEdge?: ConfigSecretsUserModuleEdge | null; -} -export type DeleteConfigSecretsUserModulePayloadSelect = { - clientMutationId?: boolean; - configSecretsUserModule?: { - select: ConfigSecretsUserModuleSelect; - }; - configSecretsUserModuleEdge?: { - select: ConfigSecretsUserModuleEdgeSelect; - }; -}; export interface CreateConnectedAccountsModulePayload { clientMutationId?: string | null; /** The `ConnectedAccountsModule` that was created by this mutation. */ @@ -22438,51 +24382,6 @@ export type DeleteHierarchyModulePayloadSelect = { select: HierarchyModuleEdgeSelect; }; }; -export interface CreateHttpRouteModulePayload { - clientMutationId?: string | null; - /** The `HttpRouteModule` that was created by this mutation. */ - httpRouteModule?: HttpRouteModule | null; - httpRouteModuleEdge?: HttpRouteModuleEdge | null; -} -export type CreateHttpRouteModulePayloadSelect = { - clientMutationId?: boolean; - httpRouteModule?: { - select: HttpRouteModuleSelect; - }; - httpRouteModuleEdge?: { - select: HttpRouteModuleEdgeSelect; - }; -}; -export interface UpdateHttpRouteModulePayload { - clientMutationId?: string | null; - /** The `HttpRouteModule` that was updated by this mutation. */ - httpRouteModule?: HttpRouteModule | null; - httpRouteModuleEdge?: HttpRouteModuleEdge | null; -} -export type UpdateHttpRouteModulePayloadSelect = { - clientMutationId?: boolean; - httpRouteModule?: { - select: HttpRouteModuleSelect; - }; - httpRouteModuleEdge?: { - select: HttpRouteModuleEdgeSelect; - }; -}; -export interface DeleteHttpRouteModulePayload { - clientMutationId?: string | null; - /** The `HttpRouteModule` that was deleted by this mutation. */ - httpRouteModule?: HttpRouteModule | null; - httpRouteModuleEdge?: HttpRouteModuleEdge | null; -} -export type DeleteHttpRouteModulePayloadSelect = { - clientMutationId?: boolean; - httpRouteModule?: { - select: HttpRouteModuleSelect; - }; - httpRouteModuleEdge?: { - select: HttpRouteModuleEdgeSelect; - }; -}; export interface CreateI18NModulePayload { clientMutationId?: string | null; /** The `I18NModule` that was created by this mutation. */ @@ -22573,6 +24472,51 @@ export type DeleteIdentityProvidersModulePayloadSelect = { select: IdentityProvidersModuleEdgeSelect; }; }; +export interface CreateImageModulePayload { + clientMutationId?: string | null; + /** The `ImageModule` that was created by this mutation. */ + imageModule?: ImageModule | null; + imageModuleEdge?: ImageModuleEdge | null; +} +export type CreateImageModulePayloadSelect = { + clientMutationId?: boolean; + imageModule?: { + select: ImageModuleSelect; + }; + imageModuleEdge?: { + select: ImageModuleEdgeSelect; + }; +}; +export interface UpdateImageModulePayload { + clientMutationId?: string | null; + /** The `ImageModule` that was updated by this mutation. */ + imageModule?: ImageModule | null; + imageModuleEdge?: ImageModuleEdge | null; +} +export type UpdateImageModulePayloadSelect = { + clientMutationId?: boolean; + imageModule?: { + select: ImageModuleSelect; + }; + imageModuleEdge?: { + select: ImageModuleEdgeSelect; + }; +}; +export interface DeleteImageModulePayload { + clientMutationId?: string | null; + /** The `ImageModule` that was deleted by this mutation. */ + imageModule?: ImageModule | null; + imageModuleEdge?: ImageModuleEdge | null; +} +export type DeleteImageModulePayloadSelect = { + clientMutationId?: boolean; + imageModule?: { + select: ImageModuleSelect; + }; + imageModuleEdge?: { + select: ImageModuleEdgeSelect; + }; +}; export interface CreateInferenceLogModulePayload { clientMutationId?: string | null; /** The `InferenceLogModule` that was created by this mutation. */ @@ -22753,6 +24697,51 @@ export type DeleteIntegrationProvidersModulePayloadSelect = { select: IntegrationProvidersModuleEdgeSelect; }; }; +export interface CreateInternalConfigModulePayload { + clientMutationId?: string | null; + /** The `InternalConfigModule` that was created by this mutation. */ + internalConfigModule?: InternalConfigModule | null; + internalConfigModuleEdge?: InternalConfigModuleEdge | null; +} +export type CreateInternalConfigModulePayloadSelect = { + clientMutationId?: boolean; + internalConfigModule?: { + select: InternalConfigModuleSelect; + }; + internalConfigModuleEdge?: { + select: InternalConfigModuleEdgeSelect; + }; +}; +export interface UpdateInternalConfigModulePayload { + clientMutationId?: string | null; + /** The `InternalConfigModule` that was updated by this mutation. */ + internalConfigModule?: InternalConfigModule | null; + internalConfigModuleEdge?: InternalConfigModuleEdge | null; +} +export type UpdateInternalConfigModulePayloadSelect = { + clientMutationId?: boolean; + internalConfigModule?: { + select: InternalConfigModuleSelect; + }; + internalConfigModuleEdge?: { + select: InternalConfigModuleEdgeSelect; + }; +}; +export interface DeleteInternalConfigModulePayload { + clientMutationId?: string | null; + /** The `InternalConfigModule` that was deleted by this mutation. */ + internalConfigModule?: InternalConfigModule | null; + internalConfigModuleEdge?: InternalConfigModuleEdge | null; +} +export type DeleteInternalConfigModulePayloadSelect = { + clientMutationId?: boolean; + internalConfigModule?: { + select: InternalConfigModuleSelect; + }; + internalConfigModuleEdge?: { + select: InternalConfigModuleEdgeSelect; + }; +}; export interface CreateInternalSecretsModulePayload { clientMutationId?: string | null; /** The `InternalSecretsModule` that was created by this mutation. */ @@ -22843,6 +24832,51 @@ export type DeleteInvitesModulePayloadSelect = { select: InvitesModuleEdgeSelect; }; }; +export interface CreateK8sAdmissionModulePayload { + clientMutationId?: string | null; + /** The `K8sAdmissionModule` that was created by this mutation. */ + k8sAdmissionModule?: K8sAdmissionModule | null; + k8sAdmissionModuleEdge?: K8sAdmissionModuleEdge | null; +} +export type CreateK8sAdmissionModulePayloadSelect = { + clientMutationId?: boolean; + k8sAdmissionModule?: { + select: K8sAdmissionModuleSelect; + }; + k8sAdmissionModuleEdge?: { + select: K8sAdmissionModuleEdgeSelect; + }; +}; +export interface UpdateK8sAdmissionModulePayload { + clientMutationId?: string | null; + /** The `K8sAdmissionModule` that was updated by this mutation. */ + k8sAdmissionModule?: K8sAdmissionModule | null; + k8sAdmissionModuleEdge?: K8sAdmissionModuleEdge | null; +} +export type UpdateK8sAdmissionModulePayloadSelect = { + clientMutationId?: boolean; + k8sAdmissionModule?: { + select: K8sAdmissionModuleSelect; + }; + k8sAdmissionModuleEdge?: { + select: K8sAdmissionModuleEdgeSelect; + }; +}; +export interface DeleteK8sAdmissionModulePayload { + clientMutationId?: string | null; + /** The `K8sAdmissionModule` that was deleted by this mutation. */ + k8sAdmissionModule?: K8sAdmissionModule | null; + k8sAdmissionModuleEdge?: K8sAdmissionModuleEdge | null; +} +export type DeleteK8sAdmissionModulePayloadSelect = { + clientMutationId?: boolean; + k8sAdmissionModule?: { + select: K8sAdmissionModuleSelect; + }; + k8sAdmissionModuleEdge?: { + select: K8sAdmissionModuleEdgeSelect; + }; +}; export interface CreateLimitsModulePayload { clientMutationId?: string | null; /** The `LimitsModule` that was created by this mutation. */ @@ -22888,6 +24922,51 @@ export type DeleteLimitsModulePayloadSelect = { select: LimitsModuleEdgeSelect; }; }; +export interface CreateMachineModulePayload { + clientMutationId?: string | null; + /** The `MachineModule` that was created by this mutation. */ + machineModule?: MachineModule | null; + machineModuleEdge?: MachineModuleEdge | null; +} +export type CreateMachineModulePayloadSelect = { + clientMutationId?: boolean; + machineModule?: { + select: MachineModuleSelect; + }; + machineModuleEdge?: { + select: MachineModuleEdgeSelect; + }; +}; +export interface UpdateMachineModulePayload { + clientMutationId?: string | null; + /** The `MachineModule` that was updated by this mutation. */ + machineModule?: MachineModule | null; + machineModuleEdge?: MachineModuleEdge | null; +} +export type UpdateMachineModulePayloadSelect = { + clientMutationId?: boolean; + machineModule?: { + select: MachineModuleSelect; + }; + machineModuleEdge?: { + select: MachineModuleEdgeSelect; + }; +}; +export interface DeleteMachineModulePayload { + clientMutationId?: string | null; + /** The `MachineModule` that was deleted by this mutation. */ + machineModule?: MachineModule | null; + machineModuleEdge?: MachineModuleEdge | null; +} +export type DeleteMachineModulePayloadSelect = { + clientMutationId?: boolean; + machineModule?: { + select: MachineModuleSelect; + }; + machineModuleEdge?: { + select: MachineModuleEdgeSelect; + }; +}; export interface CreateMembershipTypesModulePayload { clientMutationId?: string | null; /** The `MembershipTypesModule` that was created by this mutation. */ @@ -23518,6 +25597,51 @@ export type DeleteRealtimeModulePayloadSelect = { select: RealtimeModuleEdgeSelect; }; }; +export interface CreateRefusalLogModulePayload { + clientMutationId?: string | null; + /** The `RefusalLogModule` that was created by this mutation. */ + refusalLogModule?: RefusalLogModule | null; + refusalLogModuleEdge?: RefusalLogModuleEdge | null; +} +export type CreateRefusalLogModulePayloadSelect = { + clientMutationId?: boolean; + refusalLogModule?: { + select: RefusalLogModuleSelect; + }; + refusalLogModuleEdge?: { + select: RefusalLogModuleEdgeSelect; + }; +}; +export interface UpdateRefusalLogModulePayload { + clientMutationId?: string | null; + /** The `RefusalLogModule` that was updated by this mutation. */ + refusalLogModule?: RefusalLogModule | null; + refusalLogModuleEdge?: RefusalLogModuleEdge | null; +} +export type UpdateRefusalLogModulePayloadSelect = { + clientMutationId?: boolean; + refusalLogModule?: { + select: RefusalLogModuleSelect; + }; + refusalLogModuleEdge?: { + select: RefusalLogModuleEdgeSelect; + }; +}; +export interface DeleteRefusalLogModulePayload { + clientMutationId?: string | null; + /** The `RefusalLogModule` that was deleted by this mutation. */ + refusalLogModule?: RefusalLogModule | null; + refusalLogModuleEdge?: RefusalLogModuleEdge | null; +} +export type DeleteRefusalLogModulePayloadSelect = { + clientMutationId?: boolean; + refusalLogModule?: { + select: RefusalLogModuleSelect; + }; + refusalLogModuleEdge?: { + select: RefusalLogModuleEdgeSelect; + }; +}; export interface CreateRelationProvisionPayload { clientMutationId?: string | null; /** The `RelationProvision` that was created by this mutation. */ @@ -23563,6 +25687,51 @@ export type DeleteRelationProvisionPayloadSelect = { select: RelationProvisionEdgeSelect; }; }; +export interface CreateRepositoryModulePayload { + clientMutationId?: string | null; + /** The `RepositoryModule` that was created by this mutation. */ + repositoryModule?: RepositoryModule | null; + repositoryModuleEdge?: RepositoryModuleEdge | null; +} +export type CreateRepositoryModulePayloadSelect = { + clientMutationId?: boolean; + repositoryModule?: { + select: RepositoryModuleSelect; + }; + repositoryModuleEdge?: { + select: RepositoryModuleEdgeSelect; + }; +}; +export interface UpdateRepositoryModulePayload { + clientMutationId?: string | null; + /** The `RepositoryModule` that was updated by this mutation. */ + repositoryModule?: RepositoryModule | null; + repositoryModuleEdge?: RepositoryModuleEdge | null; +} +export type UpdateRepositoryModulePayloadSelect = { + clientMutationId?: boolean; + repositoryModule?: { + select: RepositoryModuleSelect; + }; + repositoryModuleEdge?: { + select: RepositoryModuleEdgeSelect; + }; +}; +export interface DeleteRepositoryModulePayload { + clientMutationId?: string | null; + /** The `RepositoryModule` that was deleted by this mutation. */ + repositoryModule?: RepositoryModule | null; + repositoryModuleEdge?: RepositoryModuleEdge | null; +} +export type DeleteRepositoryModulePayloadSelect = { + clientMutationId?: boolean; + repositoryModule?: { + select: RepositoryModuleSelect; + }; + repositoryModuleEdge?: { + select: RepositoryModuleEdgeSelect; + }; +}; export interface CreateResourceModulePayload { clientMutationId?: string | null; /** The `ResourceModule` that was created by this mutation. */ @@ -24583,28 +26752,28 @@ export type CatalogModuleEdgeSelect = { select: CatalogModuleSelect; }; }; -/** A `ComputeLogModule` edge in the connection. */ -export interface ComputeLogModuleEdge { +/** A `ClusterModule` edge in the connection. */ +export interface ClusterModuleEdge { cursor?: string | null; - /** The `ComputeLogModule` at the end of the edge. */ - node?: ComputeLogModule | null; + /** The `ClusterModule` at the end of the edge. */ + node?: ClusterModule | null; } -export type ComputeLogModuleEdgeSelect = { +export type ClusterModuleEdgeSelect = { cursor?: boolean; node?: { - select: ComputeLogModuleSelect; + select: ClusterModuleSelect; }; }; -/** A `ConfigSecretsUserModule` edge in the connection. */ -export interface ConfigSecretsUserModuleEdge { +/** A `ComputeLogModule` edge in the connection. */ +export interface ComputeLogModuleEdge { cursor?: string | null; - /** The `ConfigSecretsUserModule` at the end of the edge. */ - node?: ConfigSecretsUserModule | null; + /** The `ComputeLogModule` at the end of the edge. */ + node?: ComputeLogModule | null; } -export type ConfigSecretsUserModuleEdgeSelect = { +export type ComputeLogModuleEdgeSelect = { cursor?: boolean; node?: { - select: ConfigSecretsUserModuleSelect; + select: ComputeLogModuleSelect; }; }; /** A `ConnectedAccountsModule` edge in the connection. */ @@ -24919,18 +27088,6 @@ export type HierarchyModuleEdgeSelect = { select: HierarchyModuleSelect; }; }; -/** A `HttpRouteModule` edge in the connection. */ -export interface HttpRouteModuleEdge { - cursor?: string | null; - /** The `HttpRouteModule` at the end of the edge. */ - node?: HttpRouteModule | null; -} -export type HttpRouteModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: HttpRouteModuleSelect; - }; -}; /** A `I18NModule` edge in the connection. */ export interface I18NModuleEdge { cursor?: string | null; @@ -24955,6 +27112,18 @@ export type IdentityProvidersModuleEdgeSelect = { select: IdentityProvidersModuleSelect; }; }; +/** A `ImageModule` edge in the connection. */ +export interface ImageModuleEdge { + cursor?: string | null; + /** The `ImageModule` at the end of the edge. */ + node?: ImageModule | null; +} +export type ImageModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: ImageModuleSelect; + }; +}; /** A `InferenceLogModule` edge in the connection. */ export interface InferenceLogModuleEdge { cursor?: string | null; @@ -25003,6 +27172,18 @@ export type IntegrationProvidersModuleEdgeSelect = { select: IntegrationProvidersModuleSelect; }; }; +/** A `InternalConfigModule` edge in the connection. */ +export interface InternalConfigModuleEdge { + cursor?: string | null; + /** The `InternalConfigModule` at the end of the edge. */ + node?: InternalConfigModule | null; +} +export type InternalConfigModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: InternalConfigModuleSelect; + }; +}; /** A `InternalSecretsModule` edge in the connection. */ export interface InternalSecretsModuleEdge { cursor?: string | null; @@ -25027,6 +27208,18 @@ export type InvitesModuleEdgeSelect = { select: InvitesModuleSelect; }; }; +/** A `K8sAdmissionModule` edge in the connection. */ +export interface K8sAdmissionModuleEdge { + cursor?: string | null; + /** The `K8sAdmissionModule` at the end of the edge. */ + node?: K8sAdmissionModule | null; +} +export type K8sAdmissionModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: K8sAdmissionModuleSelect; + }; +}; /** A `LimitsModule` edge in the connection. */ export interface LimitsModuleEdge { cursor?: string | null; @@ -25039,6 +27232,18 @@ export type LimitsModuleEdgeSelect = { select: LimitsModuleSelect; }; }; +/** A `MachineModule` edge in the connection. */ +export interface MachineModuleEdge { + cursor?: string | null; + /** The `MachineModule` at the end of the edge. */ + node?: MachineModule | null; +} +export type MachineModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: MachineModuleSelect; + }; +}; /** A `MembershipTypesModule` edge in the connection. */ export interface MembershipTypesModuleEdge { cursor?: string | null; @@ -25207,6 +27412,18 @@ export type RealtimeModuleEdgeSelect = { select: RealtimeModuleSelect; }; }; +/** A `RefusalLogModule` edge in the connection. */ +export interface RefusalLogModuleEdge { + cursor?: string | null; + /** The `RefusalLogModule` at the end of the edge. */ + node?: RefusalLogModule | null; +} +export type RefusalLogModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: RefusalLogModuleSelect; + }; +}; /** A `RelationProvision` edge in the connection. */ export interface RelationProvisionEdge { cursor?: string | null; @@ -25219,6 +27436,18 @@ export type RelationProvisionEdgeSelect = { select: RelationProvisionSelect; }; }; +/** A `RepositoryModule` edge in the connection. */ +export interface RepositoryModuleEdge { + cursor?: string | null; + /** The `RepositoryModule` at the end of the edge. */ + node?: RepositoryModule | null; +} +export type RepositoryModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: RepositoryModuleSelect; + }; +}; /** A `ResourceModule` edge in the connection. */ export interface ResourceModuleEdge { cursor?: string | null; diff --git a/sdk/constructive-sdk/src/modules/orm/models/clusterModule.ts b/sdk/constructive-sdk/src/modules/orm/models/clusterModule.ts new file mode 100644 index 0000000000..65ff1a8abd --- /dev/null +++ b/sdk/constructive-sdk/src/modules/orm/models/clusterModule.ts @@ -0,0 +1,245 @@ +/** + * ClusterModule 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 { + ClusterModule, + ClusterModuleWithRelations, + ClusterModuleSelect, + ClusterModuleFilter, + ClusterModuleOrderBy, + CreateClusterModuleInput, + UpdateClusterModuleInput, + ClusterModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class ClusterModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + clusterModules: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'ClusterModule', + 'clusterModules', + 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, + }, + 'ClusterModuleFilter', + 'ClusterModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ClusterModule', + fieldName: 'clusterModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + clusterModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'ClusterModule', + 'clusterModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'ClusterModuleFilter', + 'ClusterModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ClusterModule', + fieldName: 'clusterModule', + document, + variables, + transform: (data: { + clusterModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + clusterModule: data.clusterModules?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + clusterModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'ClusterModule', + 'clusterModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'ClusterModuleFilter', + 'ClusterModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ClusterModule', + fieldName: 'clusterModule', + document, + variables, + transform: (data: { + clusterModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + clusterModule: data.clusterModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createClusterModule: { + clusterModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'ClusterModule', + 'createClusterModule', + 'clusterModule', + args.select, + args.data, + 'CreateClusterModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ClusterModule', + fieldName: 'createClusterModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + ClusterModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateClusterModule: { + clusterModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'ClusterModule', + 'updateClusterModule', + 'clusterModule', + args.select, + args.where.id, + args.data, + 'UpdateClusterModuleInput', + 'id', + 'clusterModulePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ClusterModule', + fieldName: 'updateClusterModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteClusterModule: { + clusterModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'ClusterModule', + 'deleteClusterModule', + 'clusterModule', + { + id: args.where.id, + }, + 'DeleteClusterModuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ClusterModule', + fieldName: 'deleteClusterModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/modules/orm/models/configSecretsUserModule.ts b/sdk/constructive-sdk/src/modules/orm/models/configSecretsUserModule.ts deleted file mode 100644 index bd97e5bf01..0000000000 --- a/sdk/constructive-sdk/src/modules/orm/models/configSecretsUserModule.ts +++ /dev/null @@ -1,247 +0,0 @@ -/** - * ConfigSecretsUserModule model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - ConfigSecretsUserModule, - ConfigSecretsUserModuleWithRelations, - ConfigSecretsUserModuleSelect, - ConfigSecretsUserModuleFilter, - ConfigSecretsUserModuleOrderBy, - CreateConfigSecretsUserModuleInput, - UpdateConfigSecretsUserModuleInput, - ConfigSecretsUserModulePatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class ConfigSecretsUserModuleModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - configSecretsUserModules: ConnectionResult< - InferSelectResult - >; - }> { - const { document, variables } = buildFindManyDocument( - 'ConfigSecretsUserModule', - 'configSecretsUserModules', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'ConfigSecretsUserModuleFilter', - 'ConfigSecretsUserModuleOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'ConfigSecretsUserModule', - fieldName: 'configSecretsUserModules', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - configSecretsUserModule: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'ConfigSecretsUserModule', - 'configSecretsUserModules', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'ConfigSecretsUserModuleFilter', - 'ConfigSecretsUserModuleOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'ConfigSecretsUserModule', - fieldName: 'configSecretsUserModule', - document, - variables, - transform: (data: { - configSecretsUserModules?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - configSecretsUserModule: data.configSecretsUserModules?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - configSecretsUserModule: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'ConfigSecretsUserModule', - 'configSecretsUserModules', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'ConfigSecretsUserModuleFilter', - 'ConfigSecretsUserModuleOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'ConfigSecretsUserModule', - fieldName: 'configSecretsUserModule', - document, - variables, - transform: (data: { - configSecretsUserModules?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - configSecretsUserModule: data.configSecretsUserModules?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createConfigSecretsUserModule: { - configSecretsUserModule: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'ConfigSecretsUserModule', - 'createConfigSecretsUserModule', - 'configSecretsUserModule', - args.select, - args.data, - 'CreateConfigSecretsUserModuleInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'ConfigSecretsUserModule', - fieldName: 'createConfigSecretsUserModule', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - ConfigSecretsUserModulePatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateConfigSecretsUserModule: { - configSecretsUserModule: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'ConfigSecretsUserModule', - 'updateConfigSecretsUserModule', - 'configSecretsUserModule', - args.select, - args.where.id, - args.data, - 'UpdateConfigSecretsUserModuleInput', - 'id', - 'configSecretsUserModulePatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'ConfigSecretsUserModule', - fieldName: 'updateConfigSecretsUserModule', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteConfigSecretsUserModule: { - configSecretsUserModule: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'ConfigSecretsUserModule', - 'deleteConfigSecretsUserModule', - 'configSecretsUserModule', - { - id: args.where.id, - }, - 'DeleteConfigSecretsUserModuleInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'ConfigSecretsUserModule', - fieldName: 'deleteConfigSecretsUserModule', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/modules/orm/models/httpRouteModule.ts b/sdk/constructive-sdk/src/modules/orm/models/httpRouteModule.ts deleted file mode 100644 index babf4d3085..0000000000 --- a/sdk/constructive-sdk/src/modules/orm/models/httpRouteModule.ts +++ /dev/null @@ -1,245 +0,0 @@ -/** - * HttpRouteModule 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 { - HttpRouteModule, - HttpRouteModuleWithRelations, - HttpRouteModuleSelect, - HttpRouteModuleFilter, - HttpRouteModuleOrderBy, - CreateHttpRouteModuleInput, - UpdateHttpRouteModuleInput, - HttpRouteModulePatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class HttpRouteModuleModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - httpRouteModules: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'HttpRouteModule', - 'httpRouteModules', - 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, - }, - 'HttpRouteModuleFilter', - 'HttpRouteModuleOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'HttpRouteModule', - fieldName: 'httpRouteModules', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - httpRouteModule: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'HttpRouteModule', - 'httpRouteModules', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'HttpRouteModuleFilter', - 'HttpRouteModuleOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'HttpRouteModule', - fieldName: 'httpRouteModule', - document, - variables, - transform: (data: { - httpRouteModules?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - httpRouteModule: data.httpRouteModules?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - httpRouteModule: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'HttpRouteModule', - 'httpRouteModules', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'HttpRouteModuleFilter', - 'HttpRouteModuleOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'HttpRouteModule', - fieldName: 'httpRouteModule', - document, - variables, - transform: (data: { - httpRouteModules?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - httpRouteModule: data.httpRouteModules?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createHttpRouteModule: { - httpRouteModule: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'HttpRouteModule', - 'createHttpRouteModule', - 'httpRouteModule', - args.select, - args.data, - 'CreateHttpRouteModuleInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'HttpRouteModule', - fieldName: 'createHttpRouteModule', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - HttpRouteModulePatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateHttpRouteModule: { - httpRouteModule: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'HttpRouteModule', - 'updateHttpRouteModule', - 'httpRouteModule', - args.select, - args.where.id, - args.data, - 'UpdateHttpRouteModuleInput', - 'id', - 'httpRouteModulePatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'HttpRouteModule', - fieldName: 'updateHttpRouteModule', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteHttpRouteModule: { - httpRouteModule: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'HttpRouteModule', - 'deleteHttpRouteModule', - 'httpRouteModule', - { - id: args.where.id, - }, - 'DeleteHttpRouteModuleInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'HttpRouteModule', - fieldName: 'deleteHttpRouteModule', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/modules/orm/models/imageModule.ts b/sdk/constructive-sdk/src/modules/orm/models/imageModule.ts new file mode 100644 index 0000000000..2c1199e879 --- /dev/null +++ b/sdk/constructive-sdk/src/modules/orm/models/imageModule.ts @@ -0,0 +1,245 @@ +/** + * ImageModule 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 { + ImageModule, + ImageModuleWithRelations, + ImageModuleSelect, + ImageModuleFilter, + ImageModuleOrderBy, + CreateImageModuleInput, + UpdateImageModuleInput, + ImageModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class ImageModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + imageModules: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'ImageModule', + 'imageModules', + 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, + }, + 'ImageModuleFilter', + 'ImageModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ImageModule', + fieldName: 'imageModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + imageModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'ImageModule', + 'imageModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'ImageModuleFilter', + 'ImageModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ImageModule', + fieldName: 'imageModule', + document, + variables, + transform: (data: { + imageModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + imageModule: data.imageModules?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + imageModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'ImageModule', + 'imageModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'ImageModuleFilter', + 'ImageModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ImageModule', + fieldName: 'imageModule', + document, + variables, + transform: (data: { + imageModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + imageModule: data.imageModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createImageModule: { + imageModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'ImageModule', + 'createImageModule', + 'imageModule', + args.select, + args.data, + 'CreateImageModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ImageModule', + fieldName: 'createImageModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + ImageModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateImageModule: { + imageModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'ImageModule', + 'updateImageModule', + 'imageModule', + args.select, + args.where.id, + args.data, + 'UpdateImageModuleInput', + 'id', + 'imageModulePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ImageModule', + fieldName: 'updateImageModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteImageModule: { + imageModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'ImageModule', + 'deleteImageModule', + 'imageModule', + { + id: args.where.id, + }, + 'DeleteImageModuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ImageModule', + fieldName: 'deleteImageModule', + 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 beb1e2e872..a6f18480f4 100644 --- a/sdk/constructive-sdk/src/modules/orm/models/index.ts +++ b/sdk/constructive-sdk/src/modules/orm/models/index.ts @@ -13,8 +13,8 @@ export { BlueprintConstructionModel } from './blueprintConstruction'; export { BlueprintTemplateModel } from './blueprintTemplate'; export { CapabilitiesModuleModel } from './capabilitiesModule'; export { CatalogModuleModel } from './catalogModule'; +export { ClusterModuleModel } from './clusterModule'; export { ComputeLogModuleModel } from './computeLogModule'; -export { ConfigSecretsUserModuleModel } from './configSecretsUserModule'; export { ConnectedAccountsModuleModel } from './connectedAccountsModule'; export { ContentPresetModuleModel } from './contentPresetModule'; export { CryptoAddressesModuleModel } from './cryptoAddressesModule'; @@ -41,16 +41,19 @@ export { FunctionModuleModel } from './functionModule'; export { GraphExecutionModuleModel } from './graphExecutionModule'; export { GraphModuleModel } from './graphModule'; export { HierarchyModuleModel } from './hierarchyModule'; -export { HttpRouteModuleModel } from './httpRouteModule'; export { I18NModuleModel } from './i18NModule'; export { IdentityProvidersModuleModel } from './identityProvidersModule'; +export { ImageModuleModel } from './imageModule'; export { InferenceLogModuleModel } from './inferenceLogModule'; export { InfraConfigModuleModel } from './infraConfigModule'; export { InfraSecretsModuleModel } from './infraSecretsModule'; export { IntegrationProvidersModuleModel } from './integrationProvidersModule'; +export { InternalConfigModuleModel } from './internalConfigModule'; export { InternalSecretsModuleModel } from './internalSecretsModule'; export { InvitesModuleModel } from './invitesModule'; +export { K8sAdmissionModuleModel } from './k8sAdmissionModule'; export { LimitsModuleModel } from './limitsModule'; +export { MachineModuleModel } from './machineModule'; export { MembershipTypesModuleModel } from './membershipTypesModule'; export { MembershipsModuleModel } from './membershipsModule'; export { MerkleStoreModuleModel } from './merkleStoreModule'; @@ -65,7 +68,9 @@ export { ProfilesModuleModel } from './profilesModule'; export { RateLimitMetersModuleModel } from './rateLimitMetersModule'; export { RateLimitsModuleModel } from './rateLimitsModule'; export { RealtimeModuleModel } from './realtimeModule'; +export { RefusalLogModuleModel } from './refusalLogModule'; export { RelationProvisionModel } from './relationProvision'; +export { RepositoryModuleModel } from './repositoryModule'; export { ResourceModuleModel } from './resourceModule'; export { RlsModuleModel } from './rlsModule'; export { RouteModuleModel } from './routeModule'; diff --git a/sdk/constructive-sdk/src/modules/orm/models/internalConfigModule.ts b/sdk/constructive-sdk/src/modules/orm/models/internalConfigModule.ts new file mode 100644 index 0000000000..4679cc1926 --- /dev/null +++ b/sdk/constructive-sdk/src/modules/orm/models/internalConfigModule.ts @@ -0,0 +1,247 @@ +/** + * InternalConfigModule 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 { + InternalConfigModule, + InternalConfigModuleWithRelations, + InternalConfigModuleSelect, + InternalConfigModuleFilter, + InternalConfigModuleOrderBy, + CreateInternalConfigModuleInput, + UpdateInternalConfigModuleInput, + InternalConfigModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class InternalConfigModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + internalConfigModules: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'InternalConfigModule', + 'internalConfigModules', + 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, + }, + 'InternalConfigModuleFilter', + 'InternalConfigModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InternalConfigModule', + fieldName: 'internalConfigModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + internalConfigModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'InternalConfigModule', + 'internalConfigModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'InternalConfigModuleFilter', + 'InternalConfigModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InternalConfigModule', + fieldName: 'internalConfigModule', + document, + variables, + transform: (data: { + internalConfigModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + internalConfigModule: data.internalConfigModules?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + internalConfigModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'InternalConfigModule', + 'internalConfigModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'InternalConfigModuleFilter', + 'InternalConfigModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InternalConfigModule', + fieldName: 'internalConfigModule', + document, + variables, + transform: (data: { + internalConfigModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + internalConfigModule: data.internalConfigModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createInternalConfigModule: { + internalConfigModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'InternalConfigModule', + 'createInternalConfigModule', + 'internalConfigModule', + args.select, + args.data, + 'CreateInternalConfigModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InternalConfigModule', + fieldName: 'createInternalConfigModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + InternalConfigModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateInternalConfigModule: { + internalConfigModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'InternalConfigModule', + 'updateInternalConfigModule', + 'internalConfigModule', + args.select, + args.where.id, + args.data, + 'UpdateInternalConfigModuleInput', + 'id', + 'internalConfigModulePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InternalConfigModule', + fieldName: 'updateInternalConfigModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteInternalConfigModule: { + internalConfigModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'InternalConfigModule', + 'deleteInternalConfigModule', + 'internalConfigModule', + { + id: args.where.id, + }, + 'DeleteInternalConfigModuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InternalConfigModule', + fieldName: 'deleteInternalConfigModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/modules/orm/models/k8sAdmissionModule.ts b/sdk/constructive-sdk/src/modules/orm/models/k8sAdmissionModule.ts new file mode 100644 index 0000000000..3caa5b120e --- /dev/null +++ b/sdk/constructive-sdk/src/modules/orm/models/k8sAdmissionModule.ts @@ -0,0 +1,245 @@ +/** + * K8sAdmissionModule 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 { + K8sAdmissionModule, + K8sAdmissionModuleWithRelations, + K8sAdmissionModuleSelect, + K8sAdmissionModuleFilter, + K8sAdmissionModuleOrderBy, + CreateK8sAdmissionModuleInput, + UpdateK8sAdmissionModuleInput, + K8sAdmissionModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class K8sAdmissionModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + k8sAdmissionModules: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'K8sAdmissionModule', + 'k8sAdmissionModules', + 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, + }, + 'K8sAdmissionModuleFilter', + 'K8sAdmissionModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'K8sAdmissionModule', + fieldName: 'k8sAdmissionModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + k8sAdmissionModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'K8sAdmissionModule', + 'k8sAdmissionModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'K8sAdmissionModuleFilter', + 'K8sAdmissionModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'K8sAdmissionModule', + fieldName: 'k8sAdmissionModule', + document, + variables, + transform: (data: { + k8sAdmissionModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + k8sAdmissionModule: data.k8sAdmissionModules?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + k8sAdmissionModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'K8sAdmissionModule', + 'k8sAdmissionModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'K8sAdmissionModuleFilter', + 'K8sAdmissionModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'K8sAdmissionModule', + fieldName: 'k8sAdmissionModule', + document, + variables, + transform: (data: { + k8sAdmissionModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + k8sAdmissionModule: data.k8sAdmissionModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createK8sAdmissionModule: { + k8sAdmissionModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'K8sAdmissionModule', + 'createK8sAdmissionModule', + 'k8sAdmissionModule', + args.select, + args.data, + 'CreateK8sAdmissionModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'K8sAdmissionModule', + fieldName: 'createK8sAdmissionModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + K8sAdmissionModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateK8sAdmissionModule: { + k8sAdmissionModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'K8sAdmissionModule', + 'updateK8sAdmissionModule', + 'k8sAdmissionModule', + args.select, + args.where.id, + args.data, + 'UpdateK8sAdmissionModuleInput', + 'id', + 'k8sAdmissionModulePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'K8sAdmissionModule', + fieldName: 'updateK8sAdmissionModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteK8sAdmissionModule: { + k8sAdmissionModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'K8sAdmissionModule', + 'deleteK8sAdmissionModule', + 'k8sAdmissionModule', + { + id: args.where.id, + }, + 'DeleteK8sAdmissionModuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'K8sAdmissionModule', + fieldName: 'deleteK8sAdmissionModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/modules/orm/models/machineModule.ts b/sdk/constructive-sdk/src/modules/orm/models/machineModule.ts new file mode 100644 index 0000000000..af8dc76b7c --- /dev/null +++ b/sdk/constructive-sdk/src/modules/orm/models/machineModule.ts @@ -0,0 +1,245 @@ +/** + * MachineModule 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 { + MachineModule, + MachineModuleWithRelations, + MachineModuleSelect, + MachineModuleFilter, + MachineModuleOrderBy, + CreateMachineModuleInput, + UpdateMachineModuleInput, + MachineModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class MachineModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + machineModules: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'MachineModule', + 'machineModules', + 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, + }, + 'MachineModuleFilter', + 'MachineModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'MachineModule', + fieldName: 'machineModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + machineModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'MachineModule', + 'machineModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'MachineModuleFilter', + 'MachineModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'MachineModule', + fieldName: 'machineModule', + document, + variables, + transform: (data: { + machineModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + machineModule: data.machineModules?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + machineModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'MachineModule', + 'machineModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'MachineModuleFilter', + 'MachineModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'MachineModule', + fieldName: 'machineModule', + document, + variables, + transform: (data: { + machineModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + machineModule: data.machineModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createMachineModule: { + machineModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'MachineModule', + 'createMachineModule', + 'machineModule', + args.select, + args.data, + 'CreateMachineModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'MachineModule', + fieldName: 'createMachineModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + MachineModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateMachineModule: { + machineModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'MachineModule', + 'updateMachineModule', + 'machineModule', + args.select, + args.where.id, + args.data, + 'UpdateMachineModuleInput', + 'id', + 'machineModulePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'MachineModule', + fieldName: 'updateMachineModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteMachineModule: { + machineModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'MachineModule', + 'deleteMachineModule', + 'machineModule', + { + id: args.where.id, + }, + 'DeleteMachineModuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'MachineModule', + fieldName: 'deleteMachineModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/modules/orm/models/refusalLogModule.ts b/sdk/constructive-sdk/src/modules/orm/models/refusalLogModule.ts new file mode 100644 index 0000000000..85e89a3468 --- /dev/null +++ b/sdk/constructive-sdk/src/modules/orm/models/refusalLogModule.ts @@ -0,0 +1,245 @@ +/** + * RefusalLogModule 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 { + RefusalLogModule, + RefusalLogModuleWithRelations, + RefusalLogModuleSelect, + RefusalLogModuleFilter, + RefusalLogModuleOrderBy, + CreateRefusalLogModuleInput, + UpdateRefusalLogModuleInput, + RefusalLogModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class RefusalLogModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + refusalLogModules: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'RefusalLogModule', + 'refusalLogModules', + 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, + }, + 'RefusalLogModuleFilter', + 'RefusalLogModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'RefusalLogModule', + fieldName: 'refusalLogModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + refusalLogModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'RefusalLogModule', + 'refusalLogModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'RefusalLogModuleFilter', + 'RefusalLogModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'RefusalLogModule', + fieldName: 'refusalLogModule', + document, + variables, + transform: (data: { + refusalLogModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + refusalLogModule: data.refusalLogModules?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + refusalLogModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'RefusalLogModule', + 'refusalLogModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'RefusalLogModuleFilter', + 'RefusalLogModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'RefusalLogModule', + fieldName: 'refusalLogModule', + document, + variables, + transform: (data: { + refusalLogModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + refusalLogModule: data.refusalLogModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createRefusalLogModule: { + refusalLogModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'RefusalLogModule', + 'createRefusalLogModule', + 'refusalLogModule', + args.select, + args.data, + 'CreateRefusalLogModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'RefusalLogModule', + fieldName: 'createRefusalLogModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + RefusalLogModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateRefusalLogModule: { + refusalLogModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'RefusalLogModule', + 'updateRefusalLogModule', + 'refusalLogModule', + args.select, + args.where.id, + args.data, + 'UpdateRefusalLogModuleInput', + 'id', + 'refusalLogModulePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'RefusalLogModule', + fieldName: 'updateRefusalLogModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteRefusalLogModule: { + refusalLogModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'RefusalLogModule', + 'deleteRefusalLogModule', + 'refusalLogModule', + { + id: args.where.id, + }, + 'DeleteRefusalLogModuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'RefusalLogModule', + fieldName: 'deleteRefusalLogModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/modules/orm/models/repositoryModule.ts b/sdk/constructive-sdk/src/modules/orm/models/repositoryModule.ts new file mode 100644 index 0000000000..90c8bda755 --- /dev/null +++ b/sdk/constructive-sdk/src/modules/orm/models/repositoryModule.ts @@ -0,0 +1,245 @@ +/** + * RepositoryModule 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 { + RepositoryModule, + RepositoryModuleWithRelations, + RepositoryModuleSelect, + RepositoryModuleFilter, + RepositoryModuleOrderBy, + CreateRepositoryModuleInput, + UpdateRepositoryModuleInput, + RepositoryModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class RepositoryModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + repositoryModules: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'RepositoryModule', + 'repositoryModules', + 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, + }, + 'RepositoryModuleFilter', + 'RepositoryModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'RepositoryModule', + fieldName: 'repositoryModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + repositoryModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'RepositoryModule', + 'repositoryModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'RepositoryModuleFilter', + 'RepositoryModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'RepositoryModule', + fieldName: 'repositoryModule', + document, + variables, + transform: (data: { + repositoryModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + repositoryModule: data.repositoryModules?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + repositoryModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'RepositoryModule', + 'repositoryModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'RepositoryModuleFilter', + 'RepositoryModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'RepositoryModule', + fieldName: 'repositoryModule', + document, + variables, + transform: (data: { + repositoryModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + repositoryModule: data.repositoryModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createRepositoryModule: { + repositoryModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'RepositoryModule', + 'createRepositoryModule', + 'repositoryModule', + args.select, + args.data, + 'CreateRepositoryModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'RepositoryModule', + fieldName: 'createRepositoryModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + RepositoryModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateRepositoryModule: { + repositoryModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'RepositoryModule', + 'updateRepositoryModule', + 'repositoryModule', + args.select, + args.where.id, + args.data, + 'UpdateRepositoryModuleInput', + 'id', + 'repositoryModulePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'RepositoryModule', + fieldName: 'updateRepositoryModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteRepositoryModule: { + repositoryModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'RepositoryModule', + 'deleteRepositoryModule', + 'repositoryModule', + { + id: args.where.id, + }, + 'DeleteRepositoryModuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'RepositoryModule', + fieldName: 'deleteRepositoryModule', + 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 5450eca294..6cda508cf6 100644 --- a/sdk/constructive-sdk/src/modules/orm/mutation/index.ts +++ b/sdk/constructive-sdk/src/modules/orm/mutation/index.ts @@ -20,7 +20,7 @@ import type { import { connectionFieldsMap } from '../input-types'; /** * Variables for constructBlueprint - * Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry — provisions entity tables, membership modules, and security. 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. + * 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). A table entry either names its table (table_name plus optional schema_name) or references one an installed module generated ("module": {"type": "agent", "scope": "org", "table": "message"}), which resolves through the module row's recorded table ids and raises when it matches nothing instead of creating an empty table. After provisioning, optional smart_tags (jsonb object) on the table entry are applied via metaschema.append_table_smart_tags(), and optional smart_tags on individual field entries are applied via metaschema.append_field_smart_tags(). (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] — resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID on success, NULL on failure. */ export interface ConstructBlueprintVariables { input: ConstructBlueprintInput; @@ -34,10 +34,11 @@ export interface CopyTemplateToBlueprintVariables { } /** * Variables for provisionBucket - * 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. + * Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. */ export interface ProvisionBucketVariables { input: ProvisionBucketInput; diff --git a/sdk/constructive-sdk/src/objects/orm/README.md b/sdk/constructive-sdk/src/objects/orm/README.md index 0f19488376..d56b4a6254 100644 --- a/sdk/constructive-sdk/src/objects/orm/README.md +++ b/sdk/constructive-sdk/src/objects/orm/README.md @@ -245,10 +245,11 @@ const result = await db.mutation.insertNodesAtPaths({ input: ' + +

+ + + +## Overview + +- **Tables:** 3 +- **Custom queries:** 0 +- **Custom mutations:** 2 + +**Generators:** ORM + +## Modules + +### ORM Client (`./orm`) + +Prisma-like ORM client for programmatic GraphQL access. + +```typescript +import { createClient } from './orm'; + +const db = createClient({ + endpoint: 'https://api.example.com/graphql', +}); +``` + +See [orm/README.md](./orm/README.md) for full API reference. diff --git a/sdk/constructive-sdk/src/remote/index.ts b/sdk/constructive-sdk/src/remote/index.ts new file mode 100644 index 0000000000..654223e7a5 --- /dev/null +++ b/sdk/constructive-sdk/src/remote/index.ts @@ -0,0 +1,5 @@ +/** + * GraphQL SDK - auto-generated, do not edit + * @generated by @constructive-io/graphql-codegen + */ +export * from './orm'; diff --git a/sdk/constructive-sdk/src/remote/orm/README.md b/sdk/constructive-sdk/src/remote/orm/README.md new file mode 100644 index 0000000000..df7c4060e0 --- /dev/null +++ b/sdk/constructive-sdk/src/remote/orm/README.md @@ -0,0 +1,203 @@ +# ORM Client + +

+ +

+ + + +## Setup + +```typescript +import { createClient } from './orm'; + +const db = createClient({ + endpoint: 'https://api.example.com/graphql', + headers: { Authorization: 'Bearer ' }, +}); +``` + +## Models + +| Model | Operations | +|-------|------------| +| `machine` | findMany, findOne, create, update, delete | +| `machineMessage` | findMany, findOne, create, update, delete | +| `machineSession` | findMany, findOne, create, update, delete | + +## Table Operations + +### `db.machine` + +CRUD operations for Machine records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `createdAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | +| `entityId` | UUID | Yes | +| `facts` | JSON | Yes | +| `id` | UUID | No | +| `isShared` | Boolean | Yes | +| `label` | String | Yes | +| `lastSeenAt` | Datetime | Yes | +| `ownerId` | UUID | Yes | +| `policy` | JSON | Yes | +| `principalId` | UUID | Yes | +| `revokedAt` | Datetime | Yes | +| `tokenHash` | String | Yes | +| `updatedAt` | Datetime | No | +| `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | + +**Operations:** + +```typescript +// List all machine records +const items = await db.machine.findMany({ select: { createdAt: true, createdBy: true, createdByPrincipal: true, entityId: true, facts: true, id: true, isShared: true, label: true, lastSeenAt: true, ownerId: true, policy: true, principalId: true, revokedAt: true, tokenHash: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Get one by id +const item = await db.machine.findOne({ id: '', select: { createdAt: true, createdBy: true, createdByPrincipal: true, entityId: true, facts: true, id: true, isShared: true, label: true, lastSeenAt: true, ownerId: true, policy: true, principalId: true, revokedAt: true, tokenHash: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Create +const created = await db.machine.create({ data: { createdBy: '', createdByPrincipal: '', entityId: '', facts: '', isShared: '', label: '', lastSeenAt: '', ownerId: '', policy: '', principalId: '', revokedAt: '', tokenHash: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.machine.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.machine.delete({ where: { id: '' } }).execute(); +``` + +### `db.machineMessage` + +CRUD operations for MachineMessage records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `actorId` | UUID | Yes | +| `content` | JSON | Yes | +| `createdByPrincipal` | UUID | Yes | +| `entityId` | UUID | Yes | +| `id` | UUID | No | +| `kind` | String | Yes | +| `ownerId` | UUID | Yes | +| `recordedAt` | Datetime | Yes | +| `seq` | BigInt | Yes | +| `sessionId` | UUID | Yes | + +**Operations:** + +```typescript +// List all machineMessage records +const items = await db.machineMessage.findMany({ select: { actorId: true, content: true, createdByPrincipal: true, entityId: true, id: true, kind: true, ownerId: true, recordedAt: true, seq: true, sessionId: true } }).execute(); + +// Get one by id +const item = await db.machineMessage.findOne({ id: '', select: { actorId: true, content: true, createdByPrincipal: true, entityId: true, id: true, kind: true, ownerId: true, recordedAt: true, seq: true, sessionId: true } }).execute(); + +// Create +const created = await db.machineMessage.create({ data: { actorId: '', content: '', createdByPrincipal: '', entityId: '', kind: '', ownerId: '', recordedAt: '', seq: '', sessionId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.machineMessage.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.machineMessage.delete({ where: { id: '' } }).execute(); +``` + +### `db.machineSession` + +CRUD operations for MachineSession records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `agentMode` | String | Yes | +| `agentSessionRef` | String | Yes | +| `args` | String | Yes | +| `cols` | Int | Yes | +| `command` | String | Yes | +| `createdAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | +| `cwd` | String | Yes | +| `endedAt` | Datetime | Yes | +| `entityId` | UUID | Yes | +| `env` | JSON | Yes | +| `exitCode` | Int | Yes | +| `id` | UUID | No | +| `interactive` | Boolean | Yes | +| `lastActivityAt` | Datetime | Yes | +| `lastSeq` | BigInt | Yes | +| `machineId` | UUID | Yes | +| `metadata` | JSON | Yes | +| `ownerId` | UUID | Yes | +| `pid` | Int | Yes | +| `runId` | UUID | Yes | +| `startedAt` | Datetime | Yes | +| `state` | String | Yes | +| `termRows` | Int | Yes | +| `updatedAt` | Datetime | No | +| `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | + +**Operations:** + +```typescript +// List all machineSession records +const items = await db.machineSession.findMany({ select: { agentMode: true, agentSessionRef: true, args: true, cols: true, command: true, createdAt: true, createdBy: true, createdByPrincipal: true, cwd: true, endedAt: true, entityId: true, env: true, exitCode: true, id: true, interactive: true, lastActivityAt: true, lastSeq: true, machineId: true, metadata: true, ownerId: true, pid: true, runId: true, startedAt: true, state: true, termRows: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Get one by id +const item = await db.machineSession.findOne({ id: '', select: { agentMode: true, agentSessionRef: true, args: true, cols: true, command: true, createdAt: true, createdBy: true, createdByPrincipal: true, cwd: true, endedAt: true, entityId: true, env: true, exitCode: true, id: true, interactive: true, lastActivityAt: true, lastSeq: true, machineId: true, metadata: true, ownerId: true, pid: true, runId: true, startedAt: true, state: true, termRows: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Create +const created = await db.machineSession.create({ data: { agentMode: '', agentSessionRef: '', args: '', cols: '', command: '', createdBy: '', createdByPrincipal: '', cwd: '', endedAt: '', entityId: '', env: '', exitCode: '', interactive: '', lastActivityAt: '', lastSeq: '', machineId: '', metadata: '', ownerId: '', pid: '', runId: '', startedAt: '', state: '', termRows: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.machineSession.update({ where: { id: '' }, data: { agentMode: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.machineSession.delete({ where: { id: '' } }).execute(); +``` + +## Custom Operations + +### `db.mutation.machinesEnroll` + +machinesEnroll + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | MachinesEnrollInput (required) | + +```typescript +const result = await db.mutation.machinesEnroll({ input: { entityId: '', isShared: '', label: '', tokenHash: '' } }).execute(); +``` + +### `db.mutation.provisionBucket` + +Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | ProvisionBucketInput (required) | + +```typescript +const result = await db.mutation.provisionBucket({ input: { bucketKey: '', ownerId: '' } }).execute(); +``` diff --git a/sdk/constructive-sdk/src/remote/orm/client.ts b/sdk/constructive-sdk/src/remote/orm/client.ts new file mode 100644 index 0000000000..8141c1e52b --- /dev/null +++ b/sdk/constructive-sdk/src/remote/orm/client.ts @@ -0,0 +1,254 @@ +/** + * ORM Client - Runtime GraphQL executor + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import type { + GraphQLAdapter, + GraphQLError, + QueryResult, +} from '@constructive-io/graphql-query/runtime'; +import { createFetch } from '@constructive-io/graphql-query/runtime'; + +import type { + ConnectionState, + ConnectionStateListener, + RealtimeConfig, + SubscribeOptions, + SubscriptionEvent, + SubscriptionFieldMeta, + Unsubscribe, +} from './realtime'; +import { RealtimeManager } from './realtime'; + +export type { + GraphQLAdapter, + GraphQLError, + QueryResult, +} from '@constructive-io/graphql-query/runtime'; + +export type { + ConnectionState, + ConnectionStateListener, + RealtimeConfig, + SubscribeOptions, + SubscriptionEvent, + SubscriptionFieldMeta, + SubscriptionOperation, + Unsubscribe, + WsClient, +} from './realtime'; +export { RealtimeManager } from './realtime'; + +/** + * Default adapter that uses fetch for HTTP requests. + * + * When no custom fetch is provided, uses @constructive-io/fetch which + * handles *.localhost DNS rewriting and Host header preservation in + * Node.js. Pass a custom fetch to override for test mocking or custom + * proxy/credentials. + */ +export class FetchAdapter implements GraphQLAdapter { + private headers: Record; + private fetchFn: typeof globalThis.fetch; + + constructor( + private endpoint: string, + headers?: Record, + fetchFn?: typeof globalThis.fetch + ) { + this.headers = headers ?? {}; + this.fetchFn = (fetchFn ?? createFetch()).bind(globalThis); + } + + async execute(document: string, variables?: Record): Promise> { + const response = await this.fetchFn(this.endpoint, { + method: 'POST', + headers: { + 'Content-Type': 'application/json', + Accept: 'application/json', + ...this.headers, + }, + body: JSON.stringify({ + query: document, + variables: variables ?? {}, + }), + }); + + if (!response.ok) { + return { + ok: false, + data: null, + errors: [{ message: `HTTP ${response.status}: ${response.statusText}` }], + }; + } + + const json = (await response.json()) as { + data?: T; + errors?: GraphQLError[]; + }; + + if (json.errors && json.errors.length > 0) { + return { + ok: false, + data: null, + errors: json.errors, + }; + } + + return { + ok: true, + data: json.data as T, + errors: undefined, + }; + } + + setHeaders(headers: Record): void { + this.headers = { ...this.headers, ...headers }; + } + + getEndpoint(): string { + return this.endpoint; + } +} + +/** + * Configuration for creating an ORM client. + * Either provide endpoint (and optional headers/fetch) for HTTP requests, + * or provide a custom adapter for alternative execution strategies. + */ +export interface OrmClientConfig { + /** GraphQL endpoint URL (required if adapter not provided) */ + endpoint?: string; + /** Default headers for HTTP requests (only used with endpoint) */ + headers?: Record; + /** + * Custom fetch implementation. Defaults to createFetch() from + * @constructive-io/graphql-query/runtime which handles *.localhost + * DNS and Host headers in Node.js. Pass your own for test mocking + * or custom proxy/credentials. + */ + fetch?: typeof globalThis.fetch; + /** Custom adapter for GraphQL execution (overrides endpoint/headers/fetch) */ + adapter?: GraphQLAdapter; + /** + * Optional realtime (WebSocket) configuration. + * When provided, enables subscription methods on models. + * The WebSocket connection is created lazily on first subscribe(). + */ + realtime?: RealtimeConfig; +} + +/** + * Describe a single GraphQL error, falling back to its `extensions.code` when + * the server omits `message` so the error never renders as an empty string. + */ +function describeGraphQLError(error: GraphQLError): string { + if (error.message) return error.message; + const code = error.extensions?.code; + return typeof code === 'string' ? code : 'Unknown error'; +} + +/** + * Error thrown when GraphQL request fails + */ +export class GraphQLRequestError extends Error { + constructor( + public readonly errors: GraphQLError[], + public readonly data: unknown = null + ) { + const messages = errors.map(describeGraphQLError).join('; '); + super(`GraphQL Error: ${messages}`); + this.name = 'GraphQLRequestError'; + } +} + +export class OrmClient { + private adapter: GraphQLAdapter; + private realtimeManager?: RealtimeManager; + + constructor(config: OrmClientConfig) { + if (config.adapter) { + this.adapter = config.adapter; + } else if (config.endpoint) { + this.adapter = new FetchAdapter(config.endpoint, config.headers, config.fetch); + } else { + throw new Error('OrmClientConfig requires either an endpoint or a custom adapter'); + } + + if (config.realtime) { + this.realtimeManager = new RealtimeManager(config.realtime); + } + } + + async execute(document: string, variables?: Record): Promise> { + return this.adapter.execute(document, variables); + } + + /** + * Subscribe to a GraphQL subscription operation. + * Used by generated model subscribe() methods. + * @throws Error if realtime is not configured + */ + subscribe( + meta: SubscriptionFieldMeta, + document: string, + variables: Record, + options: { + onEvent: (event: SubscriptionEvent) => void; + onError?: (error: Error) => void; + onComplete?: () => void; + } + ): Unsubscribe { + if (!this.realtimeManager) { + throw new Error( + 'Realtime not configured. Pass a `realtime` option to createClient() to enable subscriptions.' + ); + } + return this.realtimeManager.subscribe(meta, document, variables, options); + } + + /** + * Set headers for requests. + * Only works if the adapter supports headers. + */ + setHeaders(headers: Record): void { + if (this.adapter.setHeaders) { + this.adapter.setHeaders(headers); + } + } + + /** + * Get the endpoint URL. + * Returns empty string if the adapter doesn't have an endpoint. + */ + getEndpoint(): string { + return this.adapter.getEndpoint?.() ?? ''; + } + + /** Get current WebSocket connection state */ + getConnectionState(): ConnectionState { + return this.realtimeManager?.getConnectionState() ?? 'disconnected'; + } + + /** Register a listener for WebSocket connection state changes */ + onConnectionStateChange(listener: ConnectionStateListener): Unsubscribe { + if (!this.realtimeManager) return () => {}; + return this.realtimeManager.onConnectionStateChange(listener); + } + + /** Number of active subscriptions */ + getActiveSubscriptionCount(): number { + return this.realtimeManager?.getActiveSubscriptionCount() ?? 0; + } + + /** Whether realtime is configured */ + get isRealtimeEnabled(): boolean { + return this.realtimeManager !== undefined; + } + + /** Dispose the realtime manager (close WebSocket) */ + dispose(): void { + this.realtimeManager?.dispose(); + } +} diff --git a/sdk/constructive-sdk/src/remote/orm/index.ts b/sdk/constructive-sdk/src/remote/orm/index.ts new file mode 100644 index 0000000000..e166dd236a --- /dev/null +++ b/sdk/constructive-sdk/src/remote/orm/index.ts @@ -0,0 +1,49 @@ +/** + * ORM Client - createClient factory + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from './client'; +import type { OrmClientConfig } from './client'; +import { MachineModel } from './models/machine'; +import { MachineMessageModel } from './models/machineMessage'; +import { MachineSessionModel } from './models/machineSession'; +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 { createMutationOperations } from './mutation'; +/** + * Create an ORM client instance + * + * @example + * ```typescript + * const db = createClient({ + * endpoint: 'https://api.example.com/graphql', + * headers: { Authorization: 'Bearer token' }, + * }); + * + * // Query users + * const users = await db.user.findMany({ + * select: { id: true, name: true }, + * first: 10, + * }).execute(); + * + * // Create a user + * const newUser = await db.user.create({ + * data: { name: 'John', email: 'john@example.com' }, + * select: { id: true }, + * }).execute(); + * ``` + */ +export function createClient(config: OrmClientConfig) { + const client = new OrmClient(config); + return { + machine: new MachineModel(client), + machineMessage: new MachineMessageModel(client), + machineSession: new MachineSessionModel(client), + mutation: createMutationOperations(client), + }; +} diff --git a/sdk/constructive-sdk/src/remote/orm/input-types.ts b/sdk/constructive-sdk/src/remote/orm/input-types.ts new file mode 100644 index 0000000000..190f46da9e --- /dev/null +++ b/sdk/constructive-sdk/src/remote/orm/input-types.ts @@ -0,0 +1,1629 @@ +/** + * GraphQL types for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +// ============ Scalar Filter Types ============ +export interface StringFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; + includes?: string; + notIncludes?: string; + includesInsensitive?: string; + notIncludesInsensitive?: string; + startsWith?: string; + notStartsWith?: string; + startsWithInsensitive?: string; + notStartsWithInsensitive?: string; + endsWith?: string; + notEndsWith?: string; + endsWithInsensitive?: string; + notEndsWithInsensitive?: string; + like?: string; + notLike?: string; + likeInsensitive?: string; + notLikeInsensitive?: string; +} +export interface IntFilter { + isNull?: boolean; + equalTo?: number; + notEqualTo?: number; + distinctFrom?: number; + notDistinctFrom?: number; + in?: number[]; + notIn?: number[]; + lessThan?: number; + lessThanOrEqualTo?: number; + greaterThan?: number; + greaterThanOrEqualTo?: number; +} +export interface FloatFilter { + isNull?: boolean; + equalTo?: number; + notEqualTo?: number; + distinctFrom?: number; + notDistinctFrom?: number; + in?: number[]; + notIn?: number[]; + lessThan?: number; + lessThanOrEqualTo?: number; + greaterThan?: number; + greaterThanOrEqualTo?: number; +} +export interface BooleanFilter { + isNull?: boolean; + equalTo?: boolean; + notEqualTo?: boolean; +} +export interface UUIDFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; +} +export interface DatetimeFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; +} +export interface DateFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; +} +export interface JSONFilter { + isNull?: boolean; + equalTo?: Record; + notEqualTo?: Record; + distinctFrom?: Record; + notDistinctFrom?: Record; + contains?: Record; + containedBy?: Record; + containsKey?: string; + containsAllKeys?: string[]; + containsAnyKeys?: string[]; +} +export interface BigIntFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; +} +export interface BigFloatFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; +} +export interface BitStringFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; +} +export interface InternetAddressFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; + contains?: string; + containsOrEqualTo?: string; + containedBy?: string; + containedByOrEqualTo?: string; + containsOrContainedBy?: string; +} +export interface FullTextFilter { + matches?: string; +} +export interface VectorFilter { + isNull?: boolean; + equalTo?: number[]; + notEqualTo?: number[]; + distinctFrom?: number[]; + notDistinctFrom?: number[]; +} +export interface StringListFilter { + isNull?: boolean; + equalTo?: string[]; + notEqualTo?: string[]; + distinctFrom?: string[]; + notDistinctFrom?: string[]; + lessThan?: string[]; + lessThanOrEqualTo?: string[]; + greaterThan?: string[]; + greaterThanOrEqualTo?: string[]; + contains?: string[]; + containedBy?: string[]; + overlaps?: string[]; + anyEqualTo?: string; + anyNotEqualTo?: string; + anyLessThan?: string; + anyLessThanOrEqualTo?: string; + anyGreaterThan?: string; + anyGreaterThanOrEqualTo?: string; +} +export interface IntListFilter { + isNull?: boolean; + equalTo?: number[]; + notEqualTo?: number[]; + distinctFrom?: number[]; + notDistinctFrom?: number[]; + lessThan?: number[]; + lessThanOrEqualTo?: number[]; + greaterThan?: number[]; + greaterThanOrEqualTo?: number[]; + contains?: number[]; + containedBy?: number[]; + overlaps?: number[]; + anyEqualTo?: number; + anyNotEqualTo?: number; + anyLessThan?: number; + anyLessThanOrEqualTo?: number; + anyGreaterThan?: number; + anyGreaterThanOrEqualTo?: number; +} +export interface UUIDListFilter { + isNull?: boolean; + equalTo?: string[]; + notEqualTo?: string[]; + distinctFrom?: string[]; + notDistinctFrom?: string[]; + lessThan?: string[]; + lessThanOrEqualTo?: string[]; + greaterThan?: string[]; + greaterThanOrEqualTo?: string[]; + contains?: string[]; + containedBy?: string[]; + overlaps?: string[]; + anyEqualTo?: string; + anyNotEqualTo?: string; + anyLessThan?: string; + anyLessThanOrEqualTo?: string; + anyGreaterThan?: string; + anyGreaterThanOrEqualTo?: string; +} +/** Computers enrolled for remote control, one row per database enrollment */ +// ============ Entity Types ============ +export interface Machine { + createdAt?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + /** Entity that owns this machine (a personal entity for my own laptop, an org for a shared box) */ + entityId?: string | null; + /** What the runner advertises: os, arch, hostname, shells, pty, installed agents, max_sessions */ + facts?: Record | null; + id: string; + /** Whether this machine is a shared runner anyone with the session capability may use (false: owner only) */ + isShared?: boolean | null; + /** Human-readable machine name (dan-macbook) */ + label?: string | null; + /** Last heartbeat from the runner; online is derived from this */ + lastSeenAt?: string | null; + /** User who enrolled this machine */ + ownerId?: string | null; + /** Server-side copy of the local policy: mode, approved commands, allowed cwds and env keys */ + policy?: Record | null; + /** Principal this machine acts as (set with the row by _enroll) */ + principalId?: string | null; + /** When enrollment was revoked; the relay refuses a revoked machine */ + revokedAt?: string | null; + /** Hash of the enrollment credential the runner presents */ + tokenHash?: string | null; + updatedAt?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +/** Partitioned append-only ledger of session input, output and lifecycle */ +export interface MachineMessage { + /** Who produced this message: the user, or the machine acting as its principal */ + actorId?: string | null; + /** Body of the message; its shape follows the kind */ + content?: Record | null; + /** Acting principal (agent, API key, or user) who created this record */ + createdByPrincipal?: string | null; + /** Entity that owns the machine this message was exchanged with */ + entityId?: string | null; + /** Unique identifier (uuidv7 provides temporal ordering) */ + id: string; + /** What this message is: command, stdin, signal, resize, stdout, stderr, cwd, exit, state, policy */ + kind?: string | null; + /** User who owns the session this message belongs to (inherited) */ + ownerId?: string | null; + /** When the message was recorded (partition key) */ + recordedAt?: string | null; + /** Position in the session's ledger, monotonically increasing */ + seq?: string | null; + /** Session this message belongs to */ + sessionId?: string | null; +} +/** Command or terminal sessions running on an enrolled machine */ +export interface MachineSession { + /** How a bound session runs the agent: cli (the user's installed CLI) or embedded (our loop) */ + agentMode?: string | null; + /** The CLI's own resumable session identifier (agent_mode = cli) */ + agentSessionRef?: string | null; + /** Arguments the command is spawned with */ + args?: string[] | null; + /** Terminal width, preserved across reattach */ + cols?: number | null; + /** Program the runner spawns for this session */ + command?: string | null; + createdAt?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + /** Working directory the runner last reported */ + cwd?: string | null; + /** When the session reached a terminal state */ + endedAt?: string | null; + /** Entity that owns the machine this session runs on */ + entityId?: string | null; + /** Non-secret environment variables for the process; policy gates which keys are allowed */ + env?: Record | null; + /** Process exit status, once it ended */ + exitCode?: number | null; + id: string; + /** Whether raw PTY bytes ride the socket (interactive) or every command is a ledger row */ + interactive?: boolean | null; + /** Last time bytes moved in either direction */ + lastActivityAt?: string | null; + /** Highest ledger sequence recorded for this session */ + lastSeq?: string | null; + /** Machine this session runs on */ + machineId?: string | null; + /** Session detail (client, shell integration, scrollback pointer) */ + metadata?: Record | null; + /** User who opened this session */ + ownerId?: string | null; + /** Process id on the machine, while it is running */ + pid?: number | null; + /** Agent run this session executes locally (NULL for a plain terminal) */ + runId?: string | null; + /** When the process was spawned */ + startedAt?: string | null; + /** Lifecycle: pending, running, detached, exited, killed, failed */ + state?: string | null; + /** Terminal height, preserved across reattach */ + termRows?: number | null; + updatedAt?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +// ============ Relation Helper Types ============ +export interface ConnectionResult { + nodes: T[]; + totalCount: number; + pageInfo: PageInfo; +} +export interface PageInfo { + hasNextPage: boolean; + hasPreviousPage: boolean; + startCursor?: string | null; + endCursor?: string | null; +} +// ============ Entity Relation Types ============ +export interface MachineRelations { + machineSessions?: ConnectionResult; +} +export interface MachineMessageRelations { + session?: MachineSession | null; +} +export interface MachineSessionRelations { + machine?: Machine | null; + machineMessagesBySessionId?: ConnectionResult; +} +// ============ Entity Types With Relations ============ +export type MachineWithRelations = Machine & MachineRelations; +export type MachineMessageWithRelations = MachineMessage & MachineMessageRelations; +export type MachineSessionWithRelations = MachineSession & MachineSessionRelations; +// ============ Entity Select Types ============ +export type MachineSelect = { + createdAt?: boolean; + createdBy?: boolean; + createdByPrincipal?: boolean; + entityId?: boolean; + facts?: boolean; + id?: boolean; + isShared?: boolean; + label?: boolean; + lastSeenAt?: boolean; + ownerId?: boolean; + policy?: boolean; + principalId?: boolean; + revokedAt?: boolean; + tokenHash?: boolean; + updatedAt?: boolean; + updatedBy?: boolean; + updatedByPrincipal?: boolean; + machineSessions?: { + select: MachineSessionSelect; + first?: number; + filter?: MachineSessionFilter; + orderBy?: MachineSessionOrderBy[]; + }; +}; +export type MachineMessageSelect = { + actorId?: boolean; + content?: boolean; + createdByPrincipal?: boolean; + entityId?: boolean; + id?: boolean; + kind?: boolean; + ownerId?: boolean; + recordedAt?: boolean; + seq?: boolean; + sessionId?: boolean; + session?: { + select: MachineSessionSelect; + }; +}; +export type MachineSessionSelect = { + agentMode?: boolean; + agentSessionRef?: boolean; + args?: boolean; + cols?: boolean; + command?: boolean; + createdAt?: boolean; + createdBy?: boolean; + createdByPrincipal?: boolean; + cwd?: boolean; + endedAt?: boolean; + entityId?: boolean; + env?: boolean; + exitCode?: boolean; + id?: boolean; + interactive?: boolean; + lastActivityAt?: boolean; + lastSeq?: boolean; + machineId?: boolean; + metadata?: boolean; + ownerId?: boolean; + pid?: boolean; + runId?: boolean; + startedAt?: boolean; + state?: boolean; + termRows?: boolean; + updatedAt?: boolean; + updatedBy?: boolean; + updatedByPrincipal?: boolean; + machine?: { + select: MachineSelect; + }; + machineMessagesBySessionId?: { + select: MachineMessageSelect; + first?: number; + filter?: MachineMessageFilter; + orderBy?: MachineMessageOrderBy[]; + }; +}; +// ============ Table Filter Types ============ +export interface MachineFilter { + /** Checks for all expressions in this list. */ + and?: MachineFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `facts` field. */ + facts?: JSONFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isShared` field. */ + isShared?: BooleanFilter; + /** Filter by the object’s `label` field. */ + label?: StringFilter; + /** Filter by the object’s `lastSeenAt` field. */ + lastSeenAt?: DatetimeFilter; + /** Filter by the object’s `machineSessions` relation. */ + machineSessions?: MachineToManyMachineSessionFilter; + /** `machineSessions` exist. */ + machineSessionsExist?: boolean; + /** Negates the expression. */ + not?: MachineFilter; + /** Checks for any expressions in this list. */ + or?: MachineFilter[]; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `policy` field. */ + policy?: JSONFilter; + /** Filter by the object’s `principalId` field. */ + principalId?: UUIDFilter; + /** Filter by the object’s `revokedAt` field. */ + revokedAt?: DatetimeFilter; + /** Filter by the object’s `tokenHash` field. */ + tokenHash?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} +export interface MachineMessageFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: MachineMessageFilter[]; + /** Filter by the object’s `content` field. */ + content?: JSONFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Negates the expression. */ + not?: MachineMessageFilter; + /** Checks for any expressions in this list. */ + or?: MachineMessageFilter[]; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `recordedAt` field. */ + recordedAt?: DatetimeFilter; + /** Filter by the object’s `seq` field. */ + seq?: BigIntFilter; + /** Filter by the object’s `session` relation. */ + session?: MachineSessionFilter; + /** Filter by the object’s `sessionId` field. */ + sessionId?: UUIDFilter; +} +export interface MachineSessionFilter { + /** Filter by the object’s `agentMode` field. */ + agentMode?: StringFilter; + /** Filter by the object’s `agentSessionRef` field. */ + agentSessionRef?: StringFilter; + /** Checks for all expressions in this list. */ + and?: MachineSessionFilter[]; + /** Filter by the object’s `args` field. */ + args?: StringListFilter; + /** Filter by the object’s `cols` field. */ + cols?: IntFilter; + /** Filter by the object’s `command` field. */ + command?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `cwd` field. */ + cwd?: StringFilter; + /** Filter by the object’s `endedAt` field. */ + endedAt?: DatetimeFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `env` field. */ + env?: JSONFilter; + /** Filter by the object’s `exitCode` field. */ + exitCode?: IntFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `interactive` field. */ + interactive?: BooleanFilter; + /** Filter by the object’s `lastActivityAt` field. */ + lastActivityAt?: DatetimeFilter; + /** Filter by the object’s `lastSeq` field. */ + lastSeq?: BigIntFilter; + /** Filter by the object’s `machine` relation. */ + machine?: MachineFilter; + /** Filter by the object’s `machineId` field. */ + machineId?: UUIDFilter; + /** Filter by the object’s `machineMessagesBySessionId` relation. */ + machineMessagesBySessionId?: MachineSessionToManyMachineMessageFilter; + /** `machineMessagesBySessionId` exist. */ + machineMessagesBySessionIdExist?: boolean; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Negates the expression. */ + not?: MachineSessionFilter; + /** Checks for any expressions in this list. */ + or?: MachineSessionFilter[]; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `pid` field. */ + pid?: IntFilter; + /** Filter by the object’s `runId` field. */ + runId?: UUIDFilter; + /** Filter by the object’s `startedAt` field. */ + startedAt?: DatetimeFilter; + /** Filter by the object’s `state` field. */ + state?: StringFilter; + /** Filter by the object’s `termRows` field. */ + termRows?: IntFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} +// ============ OrderBy Types ============ +export type MachineOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'FACTS_ASC' + | 'FACTS_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_SHARED_ASC' + | 'IS_SHARED_DESC' + | 'LABEL_ASC' + | 'LABEL_DESC' + | 'LAST_SEEN_AT_ASC' + | 'LAST_SEEN_AT_DESC' + | 'NATURAL' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'POLICY_ASC' + | 'POLICY_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PRINCIPAL_ID_ASC' + | 'PRINCIPAL_ID_DESC' + | 'REVOKED_AT_ASC' + | 'REVOKED_AT_DESC' + | 'TOKEN_HASH_ASC' + | 'TOKEN_HASH_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +export type MachineMessageOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'CONTENT_ASC' + | 'CONTENT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'KIND_ASC' + | 'KIND_DESC' + | 'NATURAL' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'RECORDED_AT_ASC' + | 'RECORDED_AT_DESC' + | 'SEQ_ASC' + | 'SEQ_DESC' + | 'SESSION_ID_ASC' + | 'SESSION_ID_DESC'; +export type MachineSessionOrderBy = + | 'AGENT_MODE_ASC' + | 'AGENT_MODE_DESC' + | 'AGENT_SESSION_REF_ASC' + | 'AGENT_SESSION_REF_DESC' + | 'ARGS_ASC' + | 'ARGS_DESC' + | 'COLS_ASC' + | 'COLS_DESC' + | 'COMMAND_ASC' + | 'COMMAND_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'CWD_ASC' + | 'CWD_DESC' + | 'ENDED_AT_ASC' + | 'ENDED_AT_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'ENV_ASC' + | 'ENV_DESC' + | 'EXIT_CODE_ASC' + | 'EXIT_CODE_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'INTERACTIVE_ASC' + | 'INTERACTIVE_DESC' + | 'LAST_ACTIVITY_AT_ASC' + | 'LAST_ACTIVITY_AT_DESC' + | 'LAST_SEQ_ASC' + | 'LAST_SEQ_DESC' + | 'MACHINE_ID_ASC' + | 'MACHINE_ID_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'NATURAL' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'PID_ASC' + | 'PID_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'RUN_ID_ASC' + | 'RUN_ID_DESC' + | 'STARTED_AT_ASC' + | 'STARTED_AT_DESC' + | 'STATE_ASC' + | 'STATE_DESC' + | 'TERM_ROWS_ASC' + | 'TERM_ROWS_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; +// ============ CRUD Input Types ============ +export interface CreateMachineInput { + clientMutationId?: string; + machine: { + createdBy?: string; + createdByPrincipal?: string; + entityId: string; + facts?: Record; + isShared?: boolean; + label: string; + lastSeenAt?: string; + ownerId: string; + policy?: Record; + principalId?: string; + revokedAt?: string; + tokenHash: string; + updatedBy?: string; + updatedByPrincipal?: string; + }; +} +export interface MachinePatch { + createdBy?: string | null; + createdByPrincipal?: string | null; + entityId?: string | null; + facts?: Record | null; + isShared?: boolean | null; + label?: string | null; + lastSeenAt?: string | null; + ownerId?: string | null; + policy?: Record | null; + principalId?: string | null; + revokedAt?: string | null; + tokenHash?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdateMachineInput { + clientMutationId?: string; + id: string; + machinePatch: MachinePatch; +} +export interface DeleteMachineInput { + clientMutationId?: string; + id: string; +} +export interface CreateMachineMessageInput { + clientMutationId?: string; + machineMessage: { + actorId: string; + content?: Record; + createdByPrincipal?: string; + entityId: string; + kind: string; + ownerId: string; + recordedAt?: string; + seq: string; + sessionId: string; + }; +} +export interface MachineMessagePatch { + actorId?: string | null; + content?: Record | null; + createdByPrincipal?: string | null; + entityId?: string | null; + kind?: string | null; + ownerId?: string | null; + recordedAt?: string | null; + seq?: string | null; + sessionId?: string | null; +} +export interface UpdateMachineMessageInput { + clientMutationId?: string; + id: string; + machineMessagePatch: MachineMessagePatch; +} +export interface DeleteMachineMessageInput { + clientMutationId?: string; + id: string; +} +export interface CreateMachineSessionInput { + clientMutationId?: string; + machineSession: { + agentMode?: string; + agentSessionRef?: string; + args?: string[]; + cols?: number; + command?: string; + createdBy?: string; + createdByPrincipal?: string; + cwd?: string; + endedAt?: string; + entityId: string; + env?: Record; + exitCode?: number; + interactive?: boolean; + lastActivityAt?: string; + lastSeq?: string; + machineId: string; + metadata?: Record; + ownerId: string; + pid?: number; + runId?: string; + startedAt?: string; + state?: string; + termRows?: number; + updatedBy?: string; + updatedByPrincipal?: string; + }; +} +export interface MachineSessionPatch { + agentMode?: string | null; + agentSessionRef?: string | null; + args?: string[] | null; + cols?: number | null; + command?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + cwd?: string | null; + endedAt?: string | null; + entityId?: string | null; + env?: Record | null; + exitCode?: number | null; + interactive?: boolean | null; + lastActivityAt?: string | null; + lastSeq?: string | null; + machineId?: string | null; + metadata?: Record | null; + ownerId?: string | null; + pid?: number | null; + runId?: string | null; + startedAt?: string | null; + state?: string | null; + termRows?: number | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdateMachineSessionInput { + clientMutationId?: string; + id: string; + machineSessionPatch: MachineSessionPatch; +} +export interface DeleteMachineSessionInput { + clientMutationId?: string; + id: string; +} +// ============ Connection Fields Map ============ +export const connectionFieldsMap = { + Machine: { + machineSessions: 'MachineSession', + }, + MachineSession: { + machineMessagesBySessionId: 'MachineMessage', + }, +} as Record>; +// ============ Custom Input Types (from schema) ============ +export interface MachinesEnrollInput { + clientMutationId?: string; + entityId?: string; + isShared?: boolean; + label?: string; + tokenHash?: 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 many `MachineSession` object types. All fields are combined with a logical ‘and.’ */ +export interface MachineToManyMachineSessionFilter { + /** Filters to entities where every related entity matches. */ + every?: MachineSessionFilter; + /** Filters to entities where no related entity matches. */ + none?: MachineSessionFilter; + /** Filters to entities where at least one related entity matches. */ + some?: MachineSessionFilter; +} +/** A filter to be used against many `MachineMessage` object types. All fields are combined with a logical ‘and.’ */ +export interface MachineSessionToManyMachineMessageFilter { + /** Filters to entities where every related entity matches. */ + every?: MachineMessageFilter; + /** Filters to entities where no related entity matches. */ + none?: MachineMessageFilter; + /** Filters to entities where at least one related entity matches. */ + some?: MachineMessageFilter; +} +/** An input for mutations affecting `Machine` */ +export interface MachineInput { + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** Entity that owns this machine (a personal entity for my own laptop, an org for a shared box) */ + entityId: string; + /** What the runner advertises: os, arch, hostname, shells, pty, installed agents, max_sessions */ + facts?: Record; + id?: string; + /** Whether this machine is a shared runner anyone with the session capability may use (false: owner only) */ + isShared?: boolean; + /** Human-readable machine name (dan-macbook) */ + label: string; + /** Last heartbeat from the runner; online is derived from this */ + lastSeenAt?: string; + /** User who enrolled this machine */ + ownerId: string; + /** Server-side copy of the local policy: mode, approved commands, allowed cwds and env keys */ + policy?: Record; + /** Principal this machine acts as (set with the row by _enroll) */ + principalId?: string; + /** When enrollment was revoked; the relay refuses a revoked machine */ + revokedAt?: string; + /** Hash of the enrollment credential the runner presents */ + tokenHash: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; +} +/** An input for mutations affecting `MachineMessage` */ +export interface MachineMessageInput { + /** Who produced this message: the user, or the machine acting as its principal */ + actorId: string; + /** Body of the message; its shape follows the kind */ + content?: Record; + /** Acting principal (agent, API key, or user) who created this record */ + createdByPrincipal?: string; + /** Entity that owns the machine this message was exchanged with */ + entityId: string; + /** Unique identifier (uuidv7 provides temporal ordering) */ + id?: string; + /** What this message is: command, stdin, signal, resize, stdout, stderr, cwd, exit, state, policy */ + kind: string; + /** User who owns the session this message belongs to (inherited) */ + ownerId: string; + /** When the message was recorded (partition key) */ + recordedAt?: string; + /** Position in the session's ledger, monotonically increasing */ + seq: string; + /** Session this message belongs to */ + sessionId: string; +} +/** An input for mutations affecting `MachineSession` */ +export interface MachineSessionInput { + /** How a bound session runs the agent: cli (the user's installed CLI) or embedded (our loop) */ + agentMode?: string; + /** The CLI's own resumable session identifier (agent_mode = cli) */ + agentSessionRef?: string; + /** Arguments the command is spawned with */ + args?: string[]; + /** Terminal width, preserved across reattach */ + cols?: number; + /** Program the runner spawns for this session */ + command?: string; + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** Working directory the runner last reported */ + cwd?: string; + /** When the session reached a terminal state */ + endedAt?: string; + /** Entity that owns the machine this session runs on */ + entityId: string; + /** Non-secret environment variables for the process; policy gates which keys are allowed */ + env?: Record; + /** Process exit status, once it ended */ + exitCode?: number; + id?: string; + /** Whether raw PTY bytes ride the socket (interactive) or every command is a ledger row */ + interactive?: boolean; + /** Last time bytes moved in either direction */ + lastActivityAt?: string; + /** Highest ledger sequence recorded for this session */ + lastSeq?: string; + /** Machine this session runs on */ + machineId: string; + /** Session detail (client, shell integration, scrollback pointer) */ + metadata?: Record; + /** User who opened this session */ + ownerId: string; + /** Process id on the machine, while it is running */ + pid?: number; + /** Agent run this session executes locally (NULL for a plain terminal) */ + runId?: string; + /** When the process was spawned */ + startedAt?: string; + /** Lifecycle: pending, running, detached, exited, killed, failed */ + state?: string; + /** Terminal height, preserved across reattach */ + termRows?: number; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; +} +/** A filter to be used against `MachineSession` object types. All fields are combined with a logical ‘and.’ */ +export interface MachineSessionFilter { + /** Filter by the object’s `agentMode` field. */ + agentMode?: StringFilter; + /** Filter by the object’s `agentSessionRef` field. */ + agentSessionRef?: StringFilter; + /** Checks for all expressions in this list. */ + and?: MachineSessionFilter[]; + /** Filter by the object’s `args` field. */ + args?: StringListFilter; + /** Filter by the object’s `cols` field. */ + cols?: IntFilter; + /** Filter by the object’s `command` field. */ + command?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `cwd` field. */ + cwd?: StringFilter; + /** Filter by the object’s `endedAt` field. */ + endedAt?: DatetimeFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `env` field. */ + env?: JSONFilter; + /** Filter by the object’s `exitCode` field. */ + exitCode?: IntFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `interactive` field. */ + interactive?: BooleanFilter; + /** Filter by the object’s `lastActivityAt` field. */ + lastActivityAt?: DatetimeFilter; + /** Filter by the object’s `lastSeq` field. */ + lastSeq?: BigIntFilter; + /** Filter by the object’s `machine` relation. */ + machine?: MachineFilter; + /** Filter by the object’s `machineId` field. */ + machineId?: UUIDFilter; + /** Filter by the object’s `machineMessagesBySessionId` relation. */ + machineMessagesBySessionId?: MachineSessionToManyMachineMessageFilter; + /** `machineMessagesBySessionId` exist. */ + machineMessagesBySessionIdExist?: boolean; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Negates the expression. */ + not?: MachineSessionFilter; + /** Checks for any expressions in this list. */ + or?: MachineSessionFilter[]; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `pid` field. */ + pid?: IntFilter; + /** Filter by the object’s `runId` field. */ + runId?: UUIDFilter; + /** Filter by the object’s `startedAt` field. */ + startedAt?: DatetimeFilter; + /** Filter by the object’s `state` field. */ + state?: StringFilter; + /** Filter by the object’s `termRows` field. */ + termRows?: IntFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} +/** A filter to be used against `MachineMessage` object types. All fields are combined with a logical ‘and.’ */ +export interface MachineMessageFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: MachineMessageFilter[]; + /** Filter by the object’s `content` field. */ + content?: JSONFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Negates the expression. */ + not?: MachineMessageFilter; + /** Checks for any expressions in this list. */ + or?: MachineMessageFilter[]; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `recordedAt` field. */ + recordedAt?: DatetimeFilter; + /** Filter by the object’s `seq` field. */ + seq?: BigIntFilter; + /** Filter by the object’s `session` relation. */ + session?: MachineSessionFilter; + /** Filter by the object’s `sessionId` field. */ + sessionId?: UUIDFilter; +} +/** 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 filter to be used against String List fields. All fields are combined with a logical ‘and.’ */ +export interface StringListFilter { + /** Any array item is equal to the specified value. */ + anyEqualTo?: string; + /** Any array item is greater than the specified value. */ + anyGreaterThan?: string; + /** Any array item is greater than or equal to the specified value. */ + anyGreaterThanOrEqualTo?: string; + /** Any array item is less than the specified value. */ + anyLessThan?: string; + /** Any array item is less than or equal to the specified value. */ + anyLessThanOrEqualTo?: string; + /** Any array item is not equal to the specified value. */ + anyNotEqualTo?: string; + /** Contained by the specified list of values. */ + containedBy?: string[]; + /** Contains the specified list of values. */ + contains?: string[]; + /** 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[]; + /** 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[]; + /** Overlaps the specified list of values. */ + overlaps?: string[]; +} +/** 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 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 JSON fields. All fields are combined with a logical ‘and.’ */ +export interface JSONFilter { + /** Contained by the specified JSON. */ + containedBy?: Record; + /** Contains the specified JSON. */ + contains?: Record; + /** Contains all of the specified keys. */ + containsAllKeys?: string[]; + /** Contains any of the specified keys. */ + containsAnyKeys?: string[]; + /** Contains the specified key. */ + containsKey?: string; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: Record; + /** Equal to the specified value. */ + equalTo?: Record; + /** Greater than the specified value. */ + greaterThan?: Record; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: Record; + /** Included in the specified list. */ + in?: Record[]; + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Less than the specified value. */ + lessThan?: Record; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: Record; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: Record; + /** Not equal to the specified value. */ + notEqualTo?: Record; + /** Not included in the specified list. */ + notIn?: Record[]; +} +/** 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. */ + 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 `Machine` object types. All fields are combined with a logical ‘and.’ */ +export interface MachineFilter { + /** Checks for all expressions in this list. */ + and?: MachineFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `facts` field. */ + facts?: JSONFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isShared` field. */ + isShared?: BooleanFilter; + /** Filter by the object’s `label` field. */ + label?: StringFilter; + /** Filter by the object’s `lastSeenAt` field. */ + lastSeenAt?: DatetimeFilter; + /** Filter by the object’s `machineSessions` relation. */ + machineSessions?: MachineToManyMachineSessionFilter; + /** `machineSessions` exist. */ + machineSessionsExist?: boolean; + /** Negates the expression. */ + not?: MachineFilter; + /** Checks for any expressions in this list. */ + or?: MachineFilter[]; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `policy` field. */ + policy?: JSONFilter; + /** Filter by the object’s `principalId` field. */ + principalId?: UUIDFilter; + /** Filter by the object’s `revokedAt` field. */ + revokedAt?: DatetimeFilter; + /** Filter by the object’s `tokenHash` field. */ + tokenHash?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} +// ============ Payload/Return Types (for custom operations) ============ +export interface MachinesEnrollPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type MachinesEnrollPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface ProvisionBucketPayload { + /** The logical bucket row that was queued for reconciliation. */ + bucketId: string; + bucketKey: string; + /** The reconciler job enqueued to provision this bucket. */ + jobId: string; + /** The physical bucket name already recorded, or null when reconciliation has not completed. */ + physicalName?: string | null; +} +export type ProvisionBucketPayloadSelect = { + bucketId?: boolean; + bucketKey?: boolean; + jobId?: boolean; + physicalName?: boolean; +}; +export interface CreateMachinePayload { + clientMutationId?: string | null; + /** The `Machine` that was created by this mutation. */ + machine?: Machine | null; + machineEdge?: MachineEdge | null; +} +export type CreateMachinePayloadSelect = { + clientMutationId?: boolean; + machine?: { + select: MachineSelect; + }; + machineEdge?: { + select: MachineEdgeSelect; + }; +}; +export interface UpdateMachinePayload { + clientMutationId?: string | null; + /** The `Machine` that was updated by this mutation. */ + machine?: Machine | null; + machineEdge?: MachineEdge | null; +} +export type UpdateMachinePayloadSelect = { + clientMutationId?: boolean; + machine?: { + select: MachineSelect; + }; + machineEdge?: { + select: MachineEdgeSelect; + }; +}; +export interface DeleteMachinePayload { + clientMutationId?: string | null; + /** The `Machine` that was deleted by this mutation. */ + machine?: Machine | null; + machineEdge?: MachineEdge | null; +} +export type DeleteMachinePayloadSelect = { + clientMutationId?: boolean; + machine?: { + select: MachineSelect; + }; + machineEdge?: { + select: MachineEdgeSelect; + }; +}; +export interface CreateMachineMessagePayload { + clientMutationId?: string | null; + /** The `MachineMessage` that was created by this mutation. */ + machineMessage?: MachineMessage | null; + machineMessageEdge?: MachineMessageEdge | null; +} +export type CreateMachineMessagePayloadSelect = { + clientMutationId?: boolean; + machineMessage?: { + select: MachineMessageSelect; + }; + machineMessageEdge?: { + select: MachineMessageEdgeSelect; + }; +}; +export interface UpdateMachineMessagePayload { + clientMutationId?: string | null; + /** The `MachineMessage` that was updated by this mutation. */ + machineMessage?: MachineMessage | null; + machineMessageEdge?: MachineMessageEdge | null; +} +export type UpdateMachineMessagePayloadSelect = { + clientMutationId?: boolean; + machineMessage?: { + select: MachineMessageSelect; + }; + machineMessageEdge?: { + select: MachineMessageEdgeSelect; + }; +}; +export interface DeleteMachineMessagePayload { + clientMutationId?: string | null; + /** The `MachineMessage` that was deleted by this mutation. */ + machineMessage?: MachineMessage | null; + machineMessageEdge?: MachineMessageEdge | null; +} +export type DeleteMachineMessagePayloadSelect = { + clientMutationId?: boolean; + machineMessage?: { + select: MachineMessageSelect; + }; + machineMessageEdge?: { + select: MachineMessageEdgeSelect; + }; +}; +export interface CreateMachineSessionPayload { + clientMutationId?: string | null; + /** The `MachineSession` that was created by this mutation. */ + machineSession?: MachineSession | null; + machineSessionEdge?: MachineSessionEdge | null; +} +export type CreateMachineSessionPayloadSelect = { + clientMutationId?: boolean; + machineSession?: { + select: MachineSessionSelect; + }; + machineSessionEdge?: { + select: MachineSessionEdgeSelect; + }; +}; +export interface UpdateMachineSessionPayload { + clientMutationId?: string | null; + /** The `MachineSession` that was updated by this mutation. */ + machineSession?: MachineSession | null; + machineSessionEdge?: MachineSessionEdge | null; +} +export type UpdateMachineSessionPayloadSelect = { + clientMutationId?: boolean; + machineSession?: { + select: MachineSessionSelect; + }; + machineSessionEdge?: { + select: MachineSessionEdgeSelect; + }; +}; +export interface DeleteMachineSessionPayload { + clientMutationId?: string | null; + /** The `MachineSession` that was deleted by this mutation. */ + machineSession?: MachineSession | null; + machineSessionEdge?: MachineSessionEdge | null; +} +export type DeleteMachineSessionPayloadSelect = { + clientMutationId?: boolean; + machineSession?: { + select: MachineSessionSelect; + }; + machineSessionEdge?: { + select: MachineSessionEdgeSelect; + }; +}; +/** A `Machine` edge in the connection. */ +export interface MachineEdge { + cursor?: string | null; + /** The `Machine` at the end of the edge. */ + node?: Machine | null; +} +export type MachineEdgeSelect = { + cursor?: boolean; + node?: { + select: MachineSelect; + }; +}; +/** A `MachineMessage` edge in the connection. */ +export interface MachineMessageEdge { + cursor?: string | null; + /** The `MachineMessage` at the end of the edge. */ + node?: MachineMessage | null; +} +export type MachineMessageEdgeSelect = { + cursor?: boolean; + node?: { + select: MachineMessageSelect; + }; +}; +/** A `MachineSession` edge in the connection. */ +export interface MachineSessionEdge { + cursor?: string | null; + /** The `MachineSession` at the end of the edge. */ + node?: MachineSession | null; +} +export type MachineSessionEdgeSelect = { + cursor?: boolean; + node?: { + select: MachineSessionSelect; + }; +}; diff --git a/sdk/constructive-sdk/src/remote/orm/models/index.ts b/sdk/constructive-sdk/src/remote/orm/models/index.ts new file mode 100644 index 0000000000..91a87d0214 --- /dev/null +++ b/sdk/constructive-sdk/src/remote/orm/models/index.ts @@ -0,0 +1,8 @@ +/** + * Models barrel export + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +export { MachineModel } from './machine'; +export { MachineMessageModel } from './machineMessage'; +export { MachineSessionModel } from './machineSession'; diff --git a/sdk/constructive-sdk/src/remote/orm/models/machine.ts b/sdk/constructive-sdk/src/remote/orm/models/machine.ts new file mode 100644 index 0000000000..b30f06e2c5 --- /dev/null +++ b/sdk/constructive-sdk/src/remote/orm/models/machine.ts @@ -0,0 +1,245 @@ +/** + * Machine 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 { + Machine, + MachineWithRelations, + MachineSelect, + MachineFilter, + MachineOrderBy, + CreateMachineInput, + UpdateMachineInput, + MachinePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class MachineModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + machines: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'Machine', + 'machines', + 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, + }, + 'MachineFilter', + 'MachineOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Machine', + fieldName: 'machines', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + machine: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'Machine', + 'machines', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'MachineFilter', + 'MachineOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Machine', + fieldName: 'machine', + document, + variables, + transform: (data: { + machines?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + machine: data.machines?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + machine: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'Machine', + 'machines', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'MachineFilter', + 'MachineOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Machine', + fieldName: 'machine', + document, + variables, + transform: (data: { + machines?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + machine: data.machines?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createMachine: { + machine: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'Machine', + 'createMachine', + 'machine', + args.select, + args.data, + 'CreateMachineInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Machine', + fieldName: 'createMachine', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + MachinePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateMachine: { + machine: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'Machine', + 'updateMachine', + 'machine', + args.select, + args.where.id, + args.data, + 'UpdateMachineInput', + 'id', + 'machinePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Machine', + fieldName: 'updateMachine', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteMachine: { + machine: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'Machine', + 'deleteMachine', + 'machine', + { + id: args.where.id, + }, + 'DeleteMachineInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Machine', + fieldName: 'deleteMachine', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/remote/orm/models/machineMessage.ts b/sdk/constructive-sdk/src/remote/orm/models/machineMessage.ts new file mode 100644 index 0000000000..16346811e1 --- /dev/null +++ b/sdk/constructive-sdk/src/remote/orm/models/machineMessage.ts @@ -0,0 +1,250 @@ +/** + * MachineMessage 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 { + MachineMessage, + MachineMessageWithRelations, + MachineMessageSelect, + MachineMessageFilter, + MachineMessageOrderBy, + CreateMachineMessageInput, + UpdateMachineMessageInput, + MachineMessagePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class MachineMessageModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + machineMessages: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'MachineMessage', + 'machineMessages', + 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, + }, + 'MachineMessageFilter', + 'MachineMessageOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'MachineMessage', + fieldName: 'machineMessages', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + machineMessage: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'MachineMessage', + 'machineMessages', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'MachineMessageFilter', + 'MachineMessageOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'MachineMessage', + fieldName: 'machineMessage', + document, + variables, + transform: (data: { + machineMessages?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + machineMessage: data.machineMessages?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + machineMessage: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'MachineMessage', + 'machineMessages', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'MachineMessageFilter', + 'MachineMessageOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'MachineMessage', + fieldName: 'machineMessage', + document, + variables, + transform: (data: { + machineMessages?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + machineMessage: data.machineMessages?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createMachineMessage: { + machineMessage: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'MachineMessage', + 'createMachineMessage', + 'machineMessage', + args.select, + args.data, + 'CreateMachineMessageInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'MachineMessage', + fieldName: 'createMachineMessage', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + recordedAt: string; + }, + MachineMessagePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateMachineMessage: { + machineMessage: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'MachineMessage', + 'updateMachineMessage', + 'machineMessage', + args.select, + args.where.id, + args.data, + 'UpdateMachineMessageInput', + 'id', + 'machineMessagePatch', + connectionFieldsMap, + { + recordedAt: args.where.recordedAt, + } + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'MachineMessage', + fieldName: 'updateMachineMessage', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + recordedAt: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteMachineMessage: { + machineMessage: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'MachineMessage', + 'deleteMachineMessage', + 'machineMessage', + { + id: args.where.id, + recordedAt: args.where.recordedAt, + }, + 'DeleteMachineMessageInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'MachineMessage', + fieldName: 'deleteMachineMessage', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/remote/orm/models/machineSession.ts b/sdk/constructive-sdk/src/remote/orm/models/machineSession.ts new file mode 100644 index 0000000000..1d28455f83 --- /dev/null +++ b/sdk/constructive-sdk/src/remote/orm/models/machineSession.ts @@ -0,0 +1,245 @@ +/** + * MachineSession 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 { + MachineSession, + MachineSessionWithRelations, + MachineSessionSelect, + MachineSessionFilter, + MachineSessionOrderBy, + CreateMachineSessionInput, + UpdateMachineSessionInput, + MachineSessionPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class MachineSessionModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + machineSessions: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'MachineSession', + 'machineSessions', + 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, + }, + 'MachineSessionFilter', + 'MachineSessionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'MachineSession', + fieldName: 'machineSessions', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + machineSession: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'MachineSession', + 'machineSessions', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'MachineSessionFilter', + 'MachineSessionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'MachineSession', + fieldName: 'machineSession', + document, + variables, + transform: (data: { + machineSessions?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + machineSession: data.machineSessions?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + machineSession: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'MachineSession', + 'machineSessions', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'MachineSessionFilter', + 'MachineSessionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'MachineSession', + fieldName: 'machineSession', + document, + variables, + transform: (data: { + machineSessions?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + machineSession: data.machineSessions?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createMachineSession: { + machineSession: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'MachineSession', + 'createMachineSession', + 'machineSession', + args.select, + args.data, + 'CreateMachineSessionInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'MachineSession', + fieldName: 'createMachineSession', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + MachineSessionPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateMachineSession: { + machineSession: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'MachineSession', + 'updateMachineSession', + 'machineSession', + args.select, + args.where.id, + args.data, + 'UpdateMachineSessionInput', + 'id', + 'machineSessionPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'MachineSession', + fieldName: 'updateMachineSession', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteMachineSession: { + machineSession: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'MachineSession', + 'deleteMachineSession', + 'machineSession', + { + id: args.where.id, + }, + 'DeleteMachineSessionInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'MachineSession', + fieldName: 'deleteMachineSession', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/remote/orm/mutation/index.ts b/sdk/constructive-sdk/src/remote/orm/mutation/index.ts new file mode 100644 index 0000000000..7108c9c67c --- /dev/null +++ b/sdk/constructive-sdk/src/remote/orm/mutation/index.ts @@ -0,0 +1,93 @@ +/** + * Custom mutation 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 type { + MachinesEnrollInput, + ProvisionBucketInput, + MachinesEnrollPayload, + ProvisionBucketPayload, + MachinesEnrollPayloadSelect, + ProvisionBucketPayloadSelect, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export interface MachinesEnrollVariables { + input: MachinesEnrollInput; +} +/** + * Variables for provisionBucket + * Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. + */ +export interface ProvisionBucketVariables { + input: ProvisionBucketInput; +} +export function createMutationOperations(client: OrmClient) { + return { + machinesEnroll: ( + args: MachinesEnrollVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + machinesEnroll: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'MachinesEnroll', + fieldName: 'machinesEnroll', + ...buildCustomDocument( + 'mutation', + 'MachinesEnroll', + 'machinesEnroll', + options.select, + args, + [ + { + name: 'input', + type: 'MachinesEnrollInput!', + }, + ], + connectionFieldsMap, + 'MachinesEnrollPayload' + ), + }), + provisionBucket: ( + args: ProvisionBucketVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + provisionBucket: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'ProvisionBucket', + fieldName: 'provisionBucket', + ...buildCustomDocument( + 'mutation', + 'ProvisionBucket', + 'provisionBucket', + options.select, + args, + [ + { + name: 'input', + type: 'ProvisionBucketInput!', + }, + ], + connectionFieldsMap, + 'ProvisionBucketPayload' + ), + }), + }; +} diff --git a/sdk/constructive-sdk/src/remote/orm/query-builder.ts b/sdk/constructive-sdk/src/remote/orm/query-builder.ts new file mode 100644 index 0000000000..fd785bbae6 --- /dev/null +++ b/sdk/constructive-sdk/src/remote/orm/query-builder.ts @@ -0,0 +1,1047 @@ +/** + * Query Builder - Builds and executes GraphQL operations + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { parseType, print } from '@constructive-io/graphql-query/runtime'; +import * as t from 'gql-ast'; +import type { ArgumentNode, EnumValueNode, FieldNode, VariableDefinitionNode } from 'graphql'; + +import { GraphQLRequestError, OrmClient, QueryResult } from './client'; + +export interface QueryBuilderConfig { + client: OrmClient; + operation: 'query' | 'mutation'; + operationName: string; + fieldName: string; + document: string; + variables?: Record; + transform?: (data: any) => TResult; +} + +export class QueryBuilder { + private config: QueryBuilderConfig; + + constructor(config: QueryBuilderConfig) { + this.config = config; + } + + /** + * Execute the query and return a discriminated union result + * Use result.ok to check success, or .unwrap() to throw on error + */ + async execute(): Promise> { + const rawResult = await this.config.client.execute( + this.config.document, + this.config.variables + ); + if (!rawResult.ok) { + return rawResult; + } + if (!this.config.transform) { + return rawResult as unknown as QueryResult; + } + return { + ok: true, + data: this.config.transform(rawResult.data), + errors: undefined, + }; + } + + /** + * Execute and unwrap the result, throwing GraphQLRequestError on failure + * @throws {GraphQLRequestError} If the query returns errors + */ + async unwrap(): Promise { + const result = await this.execute(); + if (!result.ok) { + throw new GraphQLRequestError(result.errors, result.data); + } + return result.data; + } + + /** + * Execute and unwrap, returning defaultValue on error instead of throwing + */ + async unwrapOr(defaultValue: D): Promise { + const result = await this.execute(); + if (!result.ok) { + return defaultValue; + } + return result.data; + } + + /** + * Execute and unwrap, calling onError callback on failure + */ + async unwrapOrElse( + onError: (errors: import('./client').GraphQLError[]) => D + ): Promise { + const result = await this.execute(); + if (!result.ok) { + return onError(result.errors); + } + return result.data; + } + + toGraphQL(): string { + return this.config.document; + } + + getVariables(): Record | undefined { + return this.config.variables; + } +} + +const OP_QUERY = 'query' as unknown as import('graphql').OperationTypeNode; +const OP_MUTATION = 'mutation' as unknown as import('graphql').OperationTypeNode; +const ENUM_VALUE_KIND = 'EnumValue' as unknown as EnumValueNode['kind']; + +// ============================================================================ +// Selection Builders +// ============================================================================ + +export function buildSelections( + select: Record | undefined, + connectionFieldsMap?: Record>, + entityType?: string +): FieldNode[] { + if (!select) { + return []; + } + + const fields: FieldNode[] = []; + const entityConnections = entityType ? connectionFieldsMap?.[entityType] : undefined; + + for (const [key, value] of Object.entries(select)) { + if (value === false || value === undefined) { + continue; + } + + if (value === true) { + fields.push(t.field({ name: key })); + continue; + } + + if (typeof value === 'object' && value !== null) { + const nested = value as { + select?: Record; + args?: Record; + first?: number; + filter?: Record; + orderBy?: string[]; + connection?: boolean; + }; + + // Field with arguments (e.g. requestUploadUrl on bucket types) + if (nested.args && typeof nested.args === 'object') { + const fieldArgs = Object.entries(nested.args).map(([argName, argValue]) => + t.argument({ name: argName, value: buildValueAst(argValue) }) + ); + const nestedSelect = nested.select; + if (nestedSelect && typeof nestedSelect === 'object') { + const subSelections = Object.entries(nestedSelect) + .filter(([, v]) => v) + .map(([name]) => t.field({ name })); + fields.push( + t.field({ + name: key, + args: fieldArgs.length ? fieldArgs : undefined, + selectionSet: subSelections.length + ? t.selectionSet({ selections: subSelections }) + : undefined, + }) + ); + } else { + fields.push( + t.field({ + name: key, + args: fieldArgs.length ? fieldArgs : undefined, + }) + ); + } + continue; + } + + if (!nested.select || typeof nested.select !== 'object') { + throw new Error( + `Invalid selection for field "${key}": nested selections must include a "select" object.` + ); + } + + const relatedEntityType = entityConnections?.[key]; + const nestedSelections = buildSelections( + nested.select, + connectionFieldsMap, + relatedEntityType + ); + const isConnection = + nested.connection === true || + nested.first !== undefined || + nested.filter !== undefined || + relatedEntityType !== undefined; + const args = buildArgs([ + buildOptionalArg('first', nested.first), + nested.filter + ? t.argument({ + name: 'filter', + value: buildValueAst(nested.filter), + }) + : null, + buildEnumListArg('orderBy', nested.orderBy), + ]); + + if (isConnection) { + fields.push( + t.field({ + name: key, + args, + selectionSet: t.selectionSet({ + selections: buildConnectionSelections(nestedSelections), + }), + }) + ); + } else { + fields.push( + t.field({ + name: key, + args, + selectionSet: t.selectionSet({ selections: nestedSelections }), + }) + ); + } + } + } + + return fields; +} + +// ============================================================================ +// Document Builders +// ============================================================================ + +export function buildFindManyDocument( + operationName: string, + queryField: string, + select: TSelect, + args: { + where?: TWhere; + orderBy?: string[]; + first?: number; + last?: number; + after?: string; + before?: string; + offset?: number; + }, + filterTypeName: string, + orderByTypeName: string, + connectionFieldsMap?: Record> +): { document: string; variables: Record } { + const selections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + const variableDefinitions: VariableDefinitionNode[] = []; + const queryArgs: ArgumentNode[] = []; + const variables: Record = {}; + + addVariable( + { + varName: 'where', + typeName: filterTypeName, + value: args.where, + }, + variableDefinitions, + queryArgs, + variables + ); + addVariable( + { + varName: 'orderBy', + typeName: '[' + orderByTypeName + '!]', + value: args.orderBy?.length ? args.orderBy : undefined, + }, + variableDefinitions, + queryArgs, + variables + ); + addVariable( + { varName: 'first', typeName: 'Int', value: args.first }, + variableDefinitions, + queryArgs, + variables + ); + addVariable( + { varName: 'last', typeName: 'Int', value: args.last }, + variableDefinitions, + queryArgs, + variables + ); + addVariable( + { varName: 'after', typeName: 'Cursor', value: args.after }, + variableDefinitions, + queryArgs, + variables + ); + addVariable( + { varName: 'before', typeName: 'Cursor', value: args.before }, + variableDefinitions, + queryArgs, + variables + ); + addVariable( + { varName: 'offset', typeName: 'Int', value: args.offset }, + variableDefinitions, + queryArgs, + variables + ); + + const document = t.document({ + definitions: [ + t.operationDefinition({ + operation: OP_QUERY, + name: operationName + 'Query', + variableDefinitions: variableDefinitions.length ? variableDefinitions : undefined, + selectionSet: t.selectionSet({ + selections: [ + t.field({ + name: queryField, + args: queryArgs.length ? queryArgs : undefined, + selectionSet: t.selectionSet({ + selections: buildConnectionSelections(selections), + }), + }), + ], + }), + }), + ], + }); + + return { document: print(document), variables }; +} + +export function buildFindFirstDocument( + operationName: string, + queryField: string, + select: TSelect, + args: { where?: TWhere; orderBy?: string[] }, + filterTypeName: string, + orderByTypeName: string, + connectionFieldsMap?: Record> +): { document: string; variables: Record } { + const selections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + const variableDefinitions: VariableDefinitionNode[] = []; + const queryArgs: ArgumentNode[] = []; + const variables: Record = {}; + + // Always add first: 1 for findFirst + addVariable( + { varName: 'first', typeName: 'Int', value: 1 }, + variableDefinitions, + queryArgs, + variables + ); + addVariable( + { + varName: 'where', + typeName: filterTypeName, + value: args.where, + }, + variableDefinitions, + queryArgs, + variables + ); + addVariable( + { + varName: 'orderBy', + typeName: '[' + orderByTypeName + '!]', + value: args.orderBy?.length ? args.orderBy : undefined, + }, + variableDefinitions, + queryArgs, + variables + ); + + const document = t.document({ + definitions: [ + t.operationDefinition({ + operation: OP_QUERY, + name: operationName + 'Query', + variableDefinitions, + selectionSet: t.selectionSet({ + selections: [ + t.field({ + name: queryField, + args: queryArgs, + selectionSet: t.selectionSet({ + selections: [ + t.field({ + name: 'nodes', + selectionSet: t.selectionSet({ selections }), + }), + ], + }), + }), + ], + }), + }), + ], + }); + + return { document: print(document), variables }; +} + +export function buildCreateDocument( + operationName: string, + mutationField: string, + entityField: string, + select: TSelect, + data: TData, + inputTypeName: string, + connectionFieldsMap?: Record> +): { document: string; variables: Record } { + const selections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + return { + document: buildInputMutationDocument({ + operationName, + mutationField, + inputTypeName, + resultSelections: [ + t.field({ + name: entityField, + selectionSet: t.selectionSet({ selections }), + }), + ], + }), + variables: { + input: { + [entityField]: data, + }, + }, + }; +} + +export function buildUpdateDocument( + operationName: string, + mutationField: string, + entityField: string, + select: TSelect, + where: TWhere, + data: TData, + inputTypeName: string, + patchFieldName: string, + connectionFieldsMap?: Record> +): { document: string; variables: Record } { + const selections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + return { + document: buildInputMutationDocument({ + operationName, + mutationField, + inputTypeName, + resultSelections: [ + t.field({ + name: entityField, + selectionSet: t.selectionSet({ selections }), + }), + ], + }), + variables: { + input: { + id: where.id, + [patchFieldName]: data, + }, + }, + }; +} + +export function buildUpdateByPkDocument( + operationName: string, + mutationField: string, + entityField: string, + select: TSelect, + id: string | number, + data: TData, + inputTypeName: string, + idFieldName: string, + patchFieldName: string, + connectionFieldsMap?: Record>, + extraKeys?: Record +): { document: string; variables: Record } { + const selections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + return { + document: buildInputMutationDocument({ + operationName, + mutationField, + inputTypeName, + resultSelections: [ + t.field({ + name: entityField, + selectionSet: t.selectionSet({ selections }), + }), + ], + }), + variables: { + input: { + [idFieldName]: id, + ...extraKeys, + [patchFieldName]: data, + }, + }, + }; +} + +export function buildFindOneDocument( + operationName: string, + queryField: string, + id: string | number, + select: TSelect, + idArgName: string, + idTypeName: string, + connectionFieldsMap?: Record> +): { document: string; variables: Record } { + const selections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + const variableDefinitions: VariableDefinitionNode[] = [ + t.variableDefinition({ + variable: t.variable({ name: idArgName }), + type: parseType(idTypeName), + }), + ]; + + const queryArgs: ArgumentNode[] = [ + t.argument({ + name: idArgName, + value: t.variable({ name: idArgName }), + }), + ]; + + const document = t.document({ + definitions: [ + t.operationDefinition({ + operation: OP_QUERY, + name: operationName + 'Query', + variableDefinitions, + selectionSet: t.selectionSet({ + selections: [ + t.field({ + name: queryField, + args: queryArgs, + selectionSet: t.selectionSet({ selections }), + }), + ], + }), + }), + ], + }); + + return { + document: print(document), + variables: { [idArgName]: id }, + }; +} + +export function buildDeleteDocument( + operationName: string, + mutationField: string, + entityField: string, + where: TWhere, + inputTypeName: string, + select?: TSelect, + connectionFieldsMap?: Record> +): { document: string; variables: Record } { + const entitySelections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + return { + document: buildInputMutationDocument({ + operationName, + mutationField, + inputTypeName, + resultSelections: [ + t.field({ + name: entityField, + selectionSet: t.selectionSet({ + selections: entitySelections, + }), + }), + ], + }), + variables: { + input: { + id: where.id, + }, + }, + }; +} + +export function buildDeleteByPkDocument( + operationName: string, + mutationField: string, + entityField: string, + keys: Record, + inputTypeName: string, + select?: TSelect, + connectionFieldsMap?: Record> +): { document: string; variables: Record } { + const entitySelections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + return { + document: buildInputMutationDocument({ + operationName, + mutationField, + inputTypeName, + resultSelections: [ + t.field({ + name: entityField, + selectionSet: t.selectionSet({ selections: entitySelections }), + }), + ], + }), + variables: { + input: keys, + }, + }; +} + +export function buildJunctionRemoveDocument( + operationName: string, + mutationField: string, + keys: Record, + inputTypeName: string +): { document: string; variables: Record } { + return { + document: buildInputMutationDocument({ + operationName, + mutationField, + inputTypeName, + resultSelections: [t.field({ name: 'clientMutationId' })], + }), + variables: { + input: keys, + }, + }; +} + +export function buildCustomDocument( + operationType: 'query' | 'mutation', + operationName: string, + fieldName: string, + select: TSelect, + args: TArgs, + variableDefinitions: Array<{ name: string; type: string }>, + connectionFieldsMap?: Record>, + entityType?: string +): { document: string; variables: Record } { + let actualSelect: TSelect = select; + let isConnection = false; + + if (isCustomSelectionWrapper(select)) { + actualSelect = select.select as TSelect; + isConnection = select.connection === true; + } + + const selections = actualSelect + ? buildSelections(actualSelect as Record, connectionFieldsMap, entityType) + : []; + + const variableDefs = variableDefinitions.map((definition) => + t.variableDefinition({ + variable: t.variable({ name: definition.name }), + type: parseType(definition.type), + }) + ); + const fieldArgs = variableDefinitions.map((definition) => + t.argument({ + name: definition.name, + value: t.variable({ name: definition.name }), + }) + ); + + const fieldSelections = isConnection ? buildConnectionSelections(selections) : selections; + + const document = t.document({ + definitions: [ + t.operationDefinition({ + operation: operationType === 'mutation' ? OP_MUTATION : OP_QUERY, + name: operationName, + variableDefinitions: variableDefs.length ? variableDefs : undefined, + selectionSet: t.selectionSet({ + selections: [ + t.field({ + name: fieldName, + args: fieldArgs.length ? fieldArgs : undefined, + selectionSet: fieldSelections.length + ? t.selectionSet({ selections: fieldSelections }) + : undefined, + }), + ], + }), + }), + ], + }); + + return { + document: print(document), + variables: (args ?? {}) as Record, + }; +} + +function isCustomSelectionWrapper( + value: unknown +): value is { select: Record; connection?: boolean } { + if (!value || typeof value !== 'object' || Array.isArray(value)) { + return false; + } + + const record = value as Record; + const keys = Object.keys(record); + + if (!keys.includes('select') || !keys.includes('connection')) { + return false; + } + + if (keys.some((key) => key !== 'select' && key !== 'connection')) { + return false; + } + + return !!record.select && typeof record.select === 'object' && !Array.isArray(record.select); +} + +// ============================================================================ +// Helper Functions +// ============================================================================ + +function buildArgs(args: Array): ArgumentNode[] { + return args.filter((arg): arg is ArgumentNode => arg !== null); +} + +function buildOptionalArg(name: string, value: number | string | undefined): ArgumentNode | null { + if (value === undefined) { + return null; + } + const valueNode = + typeof value === 'number' ? t.intValue({ value: value.toString() }) : t.stringValue({ value }); + return t.argument({ name, value: valueNode }); +} + +function buildEnumListArg(name: string, values: string[] | undefined): ArgumentNode | null { + if (!values || values.length === 0) { + return null; + } + return t.argument({ + name, + value: t.listValue({ + values: values.map((value) => buildEnumValue(value)), + }), + }); +} + +function buildEnumValue(value: string): EnumValueNode { + return { + kind: ENUM_VALUE_KIND, + value, + }; +} + +function buildPageInfoSelections(): FieldNode[] { + return [ + t.field({ name: 'hasNextPage' }), + t.field({ name: 'hasPreviousPage' }), + t.field({ name: 'startCursor' }), + t.field({ name: 'endCursor' }), + ]; +} + +function buildConnectionSelections(nodeSelections: FieldNode[]): FieldNode[] { + return [ + t.field({ + name: 'nodes', + selectionSet: t.selectionSet({ selections: nodeSelections }), + }), + t.field({ name: 'totalCount' }), + t.field({ + name: 'pageInfo', + selectionSet: t.selectionSet({ selections: buildPageInfoSelections() }), + }), + ]; +} + +interface VariableSpec { + varName: string; + argName?: string; + typeName?: string; + value: unknown; +} + +interface InputMutationConfig { + operationName: string; + mutationField: string; + inputTypeName: string; + resultSelections: FieldNode[]; +} + +function buildInputMutationDocument(config: InputMutationConfig): string { + const document = t.document({ + definitions: [ + t.operationDefinition({ + operation: OP_MUTATION, + name: config.operationName + 'Mutation', + variableDefinitions: [ + t.variableDefinition({ + variable: t.variable({ name: 'input' }), + type: parseType(config.inputTypeName + '!'), + }), + ], + selectionSet: t.selectionSet({ + selections: [ + t.field({ + name: config.mutationField, + args: [ + t.argument({ + name: 'input', + value: t.variable({ name: 'input' }), + }), + ], + selectionSet: t.selectionSet({ + selections: config.resultSelections, + }), + }), + ], + }), + }), + ], + }); + return print(document); +} + +function addVariable( + spec: VariableSpec, + definitions: VariableDefinitionNode[], + args: ArgumentNode[], + variables: Record +): void { + if (spec.value === undefined || !spec.typeName) return; + + definitions.push( + t.variableDefinition({ + variable: t.variable({ name: spec.varName }), + type: parseType(spec.typeName), + }) + ); + args.push( + t.argument({ + name: spec.argName ?? spec.varName, + value: t.variable({ name: spec.varName }), + }) + ); + variables[spec.varName] = spec.value; +} + +function buildValueAst( + value: unknown +): + | ReturnType + | ReturnType + | ReturnType + | ReturnType + | ReturnType + | ReturnType + | ReturnType + | EnumValueNode { + if (value === null) { + return t.nullValue(); + } + + if (typeof value === 'boolean') { + return t.booleanValue({ value }); + } + + if (typeof value === 'number') { + return Number.isInteger(value) + ? t.intValue({ value: value.toString() }) + : t.floatValue({ value: value.toString() }); + } + + if (typeof value === 'string') { + return t.stringValue({ value }); + } + + if (Array.isArray(value)) { + return t.listValue({ + values: value.map((item) => buildValueAst(item)), + }); + } + + if (typeof value === 'object' && value !== null) { + const obj = value as Record; + return t.objectValue({ + fields: Object.entries(obj).map(([key, val]) => + t.objectField({ + name: key, + value: buildValueAst(val), + }) + ), + }); + } + + throw new Error('Unsupported value type: ' + typeof value); +} + +// ============================================================================ +// Bulk Mutation Document Builders +// ============================================================================ + +export function buildBulkInsertDocument( + operationName: string, + mutationField: string, + select: TSelect, + data: TData[], + inputTypeName: string, + onConflict?: unknown, + connectionFieldsMap?: Record> +): { document: string; variables: Record } { + const selections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + return { + document: buildInputMutationDocument({ + operationName, + mutationField, + inputTypeName, + resultSelections: [ + t.field({ name: 'affectedCount' }), + t.field({ + name: 'returning', + selectionSet: t.selectionSet({ selections }), + }), + ], + }), + variables: { + input: { + values: data, + ...(onConflict ? { onConflict } : {}), + }, + }, + }; +} + +export function buildBulkUpsertDocument( + operationName: string, + mutationField: string, + select: TSelect, + data: TData[], + inputTypeName: string, + onConflict: unknown, + connectionFieldsMap?: Record> +): { document: string; variables: Record } { + const selections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + return { + document: buildInputMutationDocument({ + operationName, + mutationField, + inputTypeName, + resultSelections: [ + t.field({ name: 'affectedCount' }), + t.field({ + name: 'returning', + selectionSet: t.selectionSet({ selections }), + }), + ], + }), + variables: { + input: { + values: data, + onConflict, + }, + }, + }; +} + +export function buildBulkUpdateDocument( + operationName: string, + mutationField: string, + select: TSelect, + where: TWhere, + data: TData, + inputTypeName: string, + connectionFieldsMap?: Record> +): { document: string; variables: Record } { + const selections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + return { + document: buildInputMutationDocument({ + operationName, + mutationField, + inputTypeName, + resultSelections: [ + t.field({ name: 'affectedCount' }), + t.field({ + name: 'returning', + selectionSet: t.selectionSet({ selections }), + }), + ], + }), + variables: { + input: { + where, + patch: data, + }, + }, + }; +} + +export function buildBulkDeleteDocument( + operationName: string, + mutationField: string, + select: TSelect, + where: TWhere, + inputTypeName: string, + connectionFieldsMap?: Record> +): { document: string; variables: Record } { + const selections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + return { + document: buildInputMutationDocument({ + operationName, + mutationField, + inputTypeName, + resultSelections: [ + t.field({ name: 'affectedCount' }), + t.field({ + name: 'returning', + selectionSet: t.selectionSet({ selections }), + }), + ], + }), + variables: { + input: { + where, + }, + }, + }; +} diff --git a/sdk/constructive-sdk/src/remote/orm/realtime.ts b/sdk/constructive-sdk/src/remote/orm/realtime.ts new file mode 100644 index 0000000000..214eb56203 --- /dev/null +++ b/sdk/constructive-sdk/src/remote/orm/realtime.ts @@ -0,0 +1,244 @@ +/** + * Realtime Manager - WebSocket subscription support + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +// Minimal type shims so this module compiles without graphql-ws +// installed. Consumers supply a WsClient via RealtimeConfig; +// the SDK itself never imports or requires graphql-ws. + +interface WsGraphQLError { + readonly message: string; + readonly [key: string]: unknown; +} + +interface WsExecutionResult> { + data?: TData | null; + errors?: readonly WsGraphQLError[]; + extensions?: Record; +} + +interface WsSink { + next(value: T): void; + error(error: unknown): void; + complete(): void; +} + +/** + * Minimal interface matching the graphql-ws Client. + * Consumers pass a concrete instance via RealtimeConfig.client. + */ +export interface WsClient { + subscribe>( + payload: { query: string; variables?: Record }, + sink: WsSink> + ): () => void; + dispose(): void; +} + +// ============================================================================ +// Types +// ============================================================================ + +/** The DML operation that triggered the subscription event */ +export type SubscriptionOperation = 'INSERT' | 'UPDATE' | 'DELETE'; + +/** Connection state of the WebSocket */ +export type ConnectionState = 'disconnected' | 'connecting' | 'connected' | 'reconnecting'; + +/** Listener for connection state changes */ +export type ConnectionStateListener = (state: ConnectionState) => void; + +/** Function returned by subscribe() to cancel the subscription */ +export type Unsubscribe = () => void; + +/** + * A realtime subscription event delivered to the client. + * + * @typeParam T - The row type of the subscribed table + */ +export interface SubscriptionEvent { + /** The DML operation that triggered this event */ + operation: SubscriptionOperation; + /** The current row data (null for DELETE if row is no longer visible) */ + data: T | null; + /** Previous field values (populated on UPDATE when available) */ + previousValues?: Partial; + /** Server-side timestamp of when the change occurred */ + timestamp: string; +} + +/** + * Options for creating a subscription. + * + * @typeParam T - The row type of the subscribed table + * @typeParam TFilter - The filter type for the table + */ +export interface SubscribeOptions> { + /** Server-side filter to limit which events are delivered */ + filter?: TFilter; + /** Called when a subscription event is received */ + onEvent: (event: SubscriptionEvent) => void; + /** Called when the subscription encounters an error */ + onError?: (error: Error) => void; + /** Called when the subscription completes (server-initiated close) */ + onComplete?: () => void; +} + +/** + * Metadata about a subscription field, used internally to map + * table names to GraphQL subscription field names and types. + */ +export interface SubscriptionFieldMeta { + /** The GraphQL subscription field name (e.g., 'onContactChanged') */ + fieldName: string; + /** The table name in the source schema (e.g., 'contact') */ + tableName: string; + /** The data field name inside the subscription payload (e.g., 'contact') */ + dataFieldName: string; +} + +/** + * Configuration for the realtime (WebSocket) connection. + * Pass this as the `realtime` option in OrmClientConfig. + * + * @example + * ```ts + * import { createClient } from 'graphql-ws'; + * + * const client = createOrmClient({ + * endpoint: 'https://api.example.com/graphql', + * realtime: { + * client: createClient({ url: 'wss://api.example.com/graphql' }), + * }, + * }); + * ``` + */ +export interface RealtimeConfig { + /** + * A graphql-ws Client instance (or any object satisfying WsClient). + * The consumer creates this themselves, giving full control over + * connection options, auth, and transport. + * + * @example + * ```ts + * import { createClient } from 'graphql-ws'; + * const wsClient = createClient({ url: 'wss://...' }); + * ``` + */ + client: WsClient; +} + +// ============================================================================ +// RealtimeManager +// ============================================================================ + +/** + * Manages a graphql-ws WebSocket client and multiplexes + * subscriptions over it. Created by OrmClient when `realtime` + * config is provided. + */ +export class RealtimeManager { + private wsClient: WsClient; + private connectionState: ConnectionState = 'disconnected'; + private stateListeners: Set = new Set(); + private activeSubscriptions = 0; + + constructor(config: RealtimeConfig) { + this.wsClient = config.client; + } + + /** + * Subscribe to a GraphQL subscription operation. + * Models call this with typed metadata and documents. + */ + subscribe( + meta: SubscriptionFieldMeta, + document: string, + variables: Record, + options: { + onEvent: (event: SubscriptionEvent) => void; + onError?: (error: Error) => void; + onComplete?: () => void; + } + ): Unsubscribe { + this.activeSubscriptions++; + let disposed = false; + + const cleanup = this.wsClient.subscribe>( + { query: document, variables }, + { + next: (result) => { + if (disposed) return; + if (result.errors) { + options.onError?.(new Error(result.errors.map((e) => e.message).join('; '))); + return; + } + + const payload = result.data?.[meta.fieldName] as + | { event?: string; [key: string]: unknown } + | undefined; + + if (!payload) return; + + const event: SubscriptionEvent = { + operation: (payload.event as SubscriptionOperation) ?? 'UPDATE', + data: (payload[meta.dataFieldName] as T) ?? null, + previousValues: payload.previousValues as Partial | undefined, + timestamp: (payload.timestamp as string) ?? new Date().toISOString(), + }; + options.onEvent(event); + }, + error: (err) => { + if (disposed) return; + options.onError?.(err instanceof Error ? err : new Error(String(err))); + }, + complete: () => { + if (disposed) return; + options.onComplete?.(); + }, + } + ); + + return () => { + if (disposed) return; + disposed = true; + this.activeSubscriptions--; + cleanup(); + }; + } + + /** Register a listener for connection state changes */ + onConnectionStateChange(listener: ConnectionStateListener): Unsubscribe { + this.stateListeners.add(listener); + return () => { + this.stateListeners.delete(listener); + }; + } + + /** Get current connection state */ + getConnectionState(): ConnectionState { + return this.connectionState; + } + + /** Number of active subscriptions */ + getActiveSubscriptionCount(): number { + return this.activeSubscriptions; + } + + /** Dispose the manager and close the WebSocket connection */ + dispose(): void { + this.wsClient.dispose(); + this.stateListeners.clear(); + this.activeSubscriptions = 0; + this.setConnectionState('disconnected'); + } + + private setConnectionState(state: ConnectionState): void { + if (this.connectionState === state) return; + this.connectionState = state; + for (const listener of this.stateListeners) { + listener(state); + } + } +} diff --git a/sdk/constructive-sdk/src/remote/orm/select-types.ts b/sdk/constructive-sdk/src/remote/orm/select-types.ts new file mode 100644 index 0000000000..4b39d7e820 --- /dev/null +++ b/sdk/constructive-sdk/src/remote/orm/select-types.ts @@ -0,0 +1,169 @@ +/** + * Type utilities for select inference + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +export interface ConnectionResult { + nodes: T[]; + totalCount: number; + pageInfo: PageInfo; +} + +export interface PageInfo { + hasNextPage: boolean; + hasPreviousPage: boolean; + startCursor?: string | null; + endCursor?: string | null; +} + +export interface FindManyArgs { + select?: TSelect; + where?: TWhere; + orderBy?: TOrderBy[]; + first?: number; + last?: number; + after?: string; + before?: string; + offset?: number; +} + +export interface FindFirstArgs { + select?: TSelect; + where?: TWhere; + orderBy?: TOrderBy[]; +} + +export interface CreateArgs { + data: TData; + select?: TSelect; +} + +export interface UpdateArgs { + where: TWhere; + data: TData; + select?: TSelect; +} + +export type FindOneArgs = { + select?: TSelect; +} & Record; + +export interface DeleteArgs { + where: TWhere; + select?: TSelect; +} + +export interface BulkInsertArgs { + data: TData[]; + select?: TSelect; + onConflict?: TOnConflict; +} + +export interface BulkUpsertArgs { + data: TData[]; + select?: TSelect; + onConflict: TOnConflict; +} + +export interface BulkUpdateArgs { + where: TWhere; + data: TData; + select?: TSelect; +} + +export interface BulkDeleteArgs { + where: TWhere; + select?: TSelect; +} + +export interface BulkMutationResult { + affectedCount: number; + returning: T[]; +} + +type DepthLevel = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10; +type DecrementDepth = { + 0: 0; + 1: 0; + 2: 1; + 3: 2; + 4: 3; + 5: 4; + 6: 5; + 7: 6; + 8: 7; + 9: 8; + 10: 9; +}; + +/** + * Recursively validates select objects, rejecting unknown keys. + * + * NOTE: Depth is intentionally capped to avoid circular-instantiation issues + * in very large cyclic schemas. + */ +export type DeepExact = Depth extends 0 + ? T extends Shape + ? T + : never + : T extends Shape + ? Exclude extends never + ? { + [K in keyof T]: K extends keyof Shape + ? T[K] extends { select: infer NS } + ? Extract extends { + select?: infer ShapeNS; + } + ? DeepExact< + Omit & { + select: DeepExact, DecrementDepth[Depth]>; + }, + Extract, + DecrementDepth[Depth] + > + : never + : T[K] + : never; + } + : never + : never; + +/** + * Enforces exact select shape while keeping contextual typing on `S extends XxxSelect`. + * Use this as an intersection in overloads: + * `{ select: S } & StrictSelect`. + */ +export type StrictSelect = S extends DeepExact ? {} : never; + +/** + * Hook-optimized strict select variant. + * + * Uses a shallower recursion depth to keep editor autocomplete responsive + * in large schemas while still validating common nested-select mistakes. + */ +export type HookStrictSelect = S extends DeepExact ? {} : never; + +/** + * Infer result type from select configuration + */ +export type InferSelectResult = TSelect extends undefined + ? TEntity + : { + [K in keyof TSelect as TSelect[K] extends false | undefined + ? never + : K]: TSelect[K] extends true + ? K extends keyof TEntity + ? TEntity[K] + : never + : TSelect[K] extends { select: infer NestedSelect } + ? K extends keyof TEntity + ? NonNullable extends ConnectionResult + ? ConnectionResult> + : + | InferSelectResult, NestedSelect> + | (null extends TEntity[K] ? null : never) + : never + : K extends keyof TEntity + ? TEntity[K] + : never; + }; diff --git a/sdk/constructive-sdk/src/remote/orm/types.ts b/sdk/constructive-sdk/src/remote/orm/types.ts new file mode 100644 index 0000000000..7c1120bcdf --- /dev/null +++ b/sdk/constructive-sdk/src/remote/orm/types.ts @@ -0,0 +1,8 @@ +/** + * Types re-export + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +// Re-export all types from input-types +export * from './input-types'; diff --git a/sdk/constructive-sdk/src/storage/README.md b/sdk/constructive-sdk/src/storage/README.md new file mode 100644 index 0000000000..93296efec5 --- /dev/null +++ b/sdk/constructive-sdk/src/storage/README.md @@ -0,0 +1,31 @@ +# Generated GraphQL SDK + +

+ +

+ + + +## Overview + +- **Tables:** 4 +- **Custom queries:** 0 +- **Custom mutations:** 7 + +**Generators:** ORM + +## Modules + +### ORM Client (`./orm`) + +Prisma-like ORM client for programmatic GraphQL access. + +```typescript +import { createClient } from './orm'; + +const db = createClient({ + endpoint: 'https://api.example.com/graphql', +}); +``` + +See [orm/README.md](./orm/README.md) for full API reference. diff --git a/sdk/constructive-sdk/src/storage/index.ts b/sdk/constructive-sdk/src/storage/index.ts new file mode 100644 index 0000000000..654223e7a5 --- /dev/null +++ b/sdk/constructive-sdk/src/storage/index.ts @@ -0,0 +1,5 @@ +/** + * GraphQL SDK - auto-generated, do not edit + * @generated by @constructive-io/graphql-codegen + */ +export * from './orm'; diff --git a/sdk/constructive-sdk/src/storage/orm/README.md b/sdk/constructive-sdk/src/storage/orm/README.md new file mode 100644 index 0000000000..a72925c67d --- /dev/null +++ b/sdk/constructive-sdk/src/storage/orm/README.md @@ -0,0 +1,324 @@ +# ORM Client + +

+ +

+ + + +## Setup + +```typescript +import { createClient } from './orm'; + +const db = createClient({ + endpoint: 'https://api.example.com/graphql', + headers: { Authorization: 'Bearer ' }, +}); +``` + +## Models + +| Model | Operations | +|-------|------------| +| `bucket` | findMany, findOne, create, update, delete | +| `file` | findMany, findOne, create, update, delete | +| `platformBucket` | findMany, findOne, create, update, delete | +| `platformFile` | findMany, findOne, create, update, delete | + +## Table Operations + +### `db.bucket` + +CRUD operations for Bucket records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `actorId` | UUID | Yes | +| `allowCustomKeys` | Boolean | Yes | +| `allowedMimeTypes` | String | Yes | +| `allowedOrigins` | String | Yes | +| `createdAt` | Datetime | No | +| `databaseId` | UUID | Yes | +| `description` | String | Yes | +| `destinationBucketId` | UUID | Yes | +| `id` | UUID | No | +| `isPublic` | Boolean | Yes | +| `key` | String | Yes | +| `maxFileSize` | BigInt | Yes | +| `physicalName` | String | Yes | +| `stagingTtl` | Interval | Yes | +| `tags` | String | Yes | +| `type` | BucketType | Yes | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all bucket records +const items = await db.bucket.findMany({ select: { actorId: true, allowCustomKeys: true, allowedMimeTypes: true, allowedOrigins: true, createdAt: true, databaseId: true, description: true, destinationBucketId: true, id: true, isPublic: true, key: true, maxFileSize: true, physicalName: true, stagingTtl: true, tags: true, type: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.bucket.findOne({ id: '', select: { actorId: true, allowCustomKeys: true, allowedMimeTypes: true, allowedOrigins: true, createdAt: true, databaseId: true, description: true, destinationBucketId: true, id: true, isPublic: true, key: true, maxFileSize: true, physicalName: true, stagingTtl: true, tags: true, type: true, updatedAt: true } }).execute(); + +// Create +const created = await db.bucket.create({ data: { actorId: '', allowCustomKeys: '', allowedMimeTypes: '', allowedOrigins: '', databaseId: '', description: '', destinationBucketId: '', isPublic: '', key: '', maxFileSize: '', physicalName: '', stagingTtl: '', tags: '', type: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.bucket.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.bucket.delete({ where: { id: '' } }).execute(); +``` + +### `db.file` + +CRUD operations for File records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `actorId` | UUID | Yes | +| `bucketId` | UUID | Yes | +| `contentHash` | String | Yes | +| `createdAt` | Datetime | No | +| `databaseId` | UUID | Yes | +| `description` | String | Yes | +| `downloadUrl` | String | Yes | +| `expiryEnqueuedAt` | Datetime | Yes | +| `filePath` | String | Yes | +| `filename` | String | Yes | +| `id` | UUID | No | +| `isPublic` | Boolean | Yes | +| `key` | String | Yes | +| `mimeType` | String | Yes | +| `promotedAt` | Datetime | Yes | +| `size` | BigInt | Yes | +| `status` | FileStatus | Yes | +| `tags` | String | Yes | +| `updatedAt` | Datetime | No | +| `upload` | ConstructiveInternalTypeUpload | Yes | + +**Operations:** + +```typescript +// List all file records +const items = await db.file.findMany({ select: { actorId: true, bucketId: true, contentHash: true, createdAt: true, databaseId: true, description: true, downloadUrl: true, expiryEnqueuedAt: true, filePath: true, filename: true, id: true, isPublic: true, key: true, mimeType: true, promotedAt: true, size: true, status: true, tags: true, updatedAt: true, upload: true } }).execute(); + +// Get one by id +const item = await db.file.findOne({ id: '', select: { actorId: true, bucketId: true, contentHash: true, createdAt: true, databaseId: true, description: true, downloadUrl: true, expiryEnqueuedAt: true, filePath: true, filename: true, id: true, isPublic: true, key: true, mimeType: true, promotedAt: true, size: true, status: true, tags: true, updatedAt: true, upload: true } }).execute(); + +// Create +const created = await db.file.create({ data: { actorId: '', bucketId: '', contentHash: '', databaseId: '', description: '', downloadUrl: '', expiryEnqueuedAt: '', filePath: '', filename: '', isPublic: '', key: '', mimeType: '', promotedAt: '', size: '', status: '', tags: '', upload: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.file.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.file.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformBucket` + +CRUD operations for PlatformBucket records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `actorId` | UUID | Yes | +| `allowCustomKeys` | Boolean | Yes | +| `allowedMimeTypes` | String | Yes | +| `allowedOrigins` | String | Yes | +| `createdAt` | Datetime | No | +| `description` | String | Yes | +| `destinationBucketId` | UUID | Yes | +| `id` | UUID | No | +| `isPublic` | Boolean | Yes | +| `key` | String | Yes | +| `maxFileSize` | BigInt | Yes | +| `physicalName` | String | Yes | +| `stagingTtl` | Interval | Yes | +| `tags` | String | Yes | +| `type` | BucketType | Yes | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all platformBucket records +const items = await db.platformBucket.findMany({ select: { actorId: true, allowCustomKeys: true, allowedMimeTypes: true, allowedOrigins: true, createdAt: true, description: true, destinationBucketId: true, id: true, isPublic: true, key: true, maxFileSize: true, physicalName: true, stagingTtl: true, tags: true, type: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.platformBucket.findOne({ id: '', select: { actorId: true, allowCustomKeys: true, allowedMimeTypes: true, allowedOrigins: true, createdAt: true, description: true, destinationBucketId: true, id: true, isPublic: true, key: true, maxFileSize: true, physicalName: true, stagingTtl: true, tags: true, type: true, updatedAt: true } }).execute(); + +// Create +const created = await db.platformBucket.create({ data: { actorId: '', allowCustomKeys: '', allowedMimeTypes: '', allowedOrigins: '', description: '', destinationBucketId: '', isPublic: '', key: '', maxFileSize: '', physicalName: '', stagingTtl: '', tags: '', type: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformBucket.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformBucket.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformFile` + +CRUD operations for PlatformFile records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `actorId` | UUID | Yes | +| `bucketId` | UUID | Yes | +| `contentHash` | String | Yes | +| `createdAt` | Datetime | No | +| `description` | String | Yes | +| `downloadUrl` | String | Yes | +| `expiryEnqueuedAt` | Datetime | Yes | +| `filePath` | String | Yes | +| `filename` | String | Yes | +| `id` | UUID | No | +| `isPublic` | Boolean | Yes | +| `key` | String | Yes | +| `mimeType` | String | Yes | +| `promotedAt` | Datetime | Yes | +| `size` | BigInt | Yes | +| `status` | FileStatus | Yes | +| `tags` | String | Yes | +| `updatedAt` | Datetime | No | +| `upload` | ConstructiveInternalTypeUpload | Yes | + +**Operations:** + +```typescript +// List all platformFile records +const items = await db.platformFile.findMany({ select: { actorId: true, bucketId: true, contentHash: true, createdAt: true, description: true, downloadUrl: true, expiryEnqueuedAt: true, filePath: true, filename: true, id: true, isPublic: true, key: true, mimeType: true, promotedAt: true, size: true, status: true, tags: true, updatedAt: true, upload: true } }).execute(); + +// Get one by id +const item = await db.platformFile.findOne({ id: '', select: { actorId: true, bucketId: true, contentHash: true, createdAt: true, description: true, downloadUrl: true, expiryEnqueuedAt: true, filePath: true, filename: true, id: true, isPublic: true, key: true, mimeType: true, promotedAt: true, size: true, status: true, tags: true, updatedAt: true, upload: true } }).execute(); + +// Create +const created = await db.platformFile.create({ data: { actorId: '', bucketId: '', contentHash: '', description: '', downloadUrl: '', expiryEnqueuedAt: '', filePath: '', filename: '', isPublic: '', key: '', mimeType: '', promotedAt: '', size: '', status: '', tags: '', upload: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformFile.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformFile.delete({ where: { id: '' } }).execute(); +``` + +## Custom Operations + +### `db.mutation.filesRename` + +filesRename + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | FilesRenameInput (required) | + +```typescript +const result = await db.mutation.filesRename({ input: { fileId: '', newFilename: '' } }).execute(); +``` + +### `db.mutation.platformFilesRename` + +platformFilesRename + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | PlatformFilesRenameInput (required) | + +```typescript +const result = await db.mutation.platformFilesRename({ input: { fileId: '', newFilename: '' } }).execute(); +``` + +### `db.mutation.provisionBucket` + +Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | ProvisionBucketInput (required) | + +```typescript +const result = await db.mutation.provisionBucket({ input: { bucketKey: '', ownerId: '' } }).execute(); +``` + +### `db.mutation.uploadFile` + +Upload a file: resolves the bucket by key, creates the file row, and returns a presigned PUT URL. + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | UploadFileInput (required) | + +```typescript +const result = await db.mutation.uploadFile({ input: '' }).execute(); +``` + +### `db.mutation.uploadFiles` + +Upload multiple files: resolves the bucket by key, creates file rows, and returns presigned PUT URLs for each. + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | UploadFileBulkInput (required) | + +```typescript +const result = await db.mutation.uploadFiles({ input: { bucketKey: '', files: '', isPublic: '' } }).execute(); +``` + +### `db.mutation.uploadPlatformFile` + +Upload a file: resolves the bucket by key, creates the file row, and returns a presigned PUT URL. + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | UploadPlatformFileInput (required) | + +```typescript +const result = await db.mutation.uploadPlatformFile({ input: '' }).execute(); +``` + +### `db.mutation.uploadPlatformFiles` + +Upload multiple files: resolves the bucket by key, creates file rows, and returns presigned PUT URLs for each. + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | UploadPlatformFileBulkInput (required) | + +```typescript +const result = await db.mutation.uploadPlatformFiles({ input: { bucketKey: '', files: '', isPublic: '' } }).execute(); +``` diff --git a/sdk/constructive-sdk/src/storage/orm/client.ts b/sdk/constructive-sdk/src/storage/orm/client.ts new file mode 100644 index 0000000000..8141c1e52b --- /dev/null +++ b/sdk/constructive-sdk/src/storage/orm/client.ts @@ -0,0 +1,254 @@ +/** + * ORM Client - Runtime GraphQL executor + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import type { + GraphQLAdapter, + GraphQLError, + QueryResult, +} from '@constructive-io/graphql-query/runtime'; +import { createFetch } from '@constructive-io/graphql-query/runtime'; + +import type { + ConnectionState, + ConnectionStateListener, + RealtimeConfig, + SubscribeOptions, + SubscriptionEvent, + SubscriptionFieldMeta, + Unsubscribe, +} from './realtime'; +import { RealtimeManager } from './realtime'; + +export type { + GraphQLAdapter, + GraphQLError, + QueryResult, +} from '@constructive-io/graphql-query/runtime'; + +export type { + ConnectionState, + ConnectionStateListener, + RealtimeConfig, + SubscribeOptions, + SubscriptionEvent, + SubscriptionFieldMeta, + SubscriptionOperation, + Unsubscribe, + WsClient, +} from './realtime'; +export { RealtimeManager } from './realtime'; + +/** + * Default adapter that uses fetch for HTTP requests. + * + * When no custom fetch is provided, uses @constructive-io/fetch which + * handles *.localhost DNS rewriting and Host header preservation in + * Node.js. Pass a custom fetch to override for test mocking or custom + * proxy/credentials. + */ +export class FetchAdapter implements GraphQLAdapter { + private headers: Record; + private fetchFn: typeof globalThis.fetch; + + constructor( + private endpoint: string, + headers?: Record, + fetchFn?: typeof globalThis.fetch + ) { + this.headers = headers ?? {}; + this.fetchFn = (fetchFn ?? createFetch()).bind(globalThis); + } + + async execute(document: string, variables?: Record): Promise> { + const response = await this.fetchFn(this.endpoint, { + method: 'POST', + headers: { + 'Content-Type': 'application/json', + Accept: 'application/json', + ...this.headers, + }, + body: JSON.stringify({ + query: document, + variables: variables ?? {}, + }), + }); + + if (!response.ok) { + return { + ok: false, + data: null, + errors: [{ message: `HTTP ${response.status}: ${response.statusText}` }], + }; + } + + const json = (await response.json()) as { + data?: T; + errors?: GraphQLError[]; + }; + + if (json.errors && json.errors.length > 0) { + return { + ok: false, + data: null, + errors: json.errors, + }; + } + + return { + ok: true, + data: json.data as T, + errors: undefined, + }; + } + + setHeaders(headers: Record): void { + this.headers = { ...this.headers, ...headers }; + } + + getEndpoint(): string { + return this.endpoint; + } +} + +/** + * Configuration for creating an ORM client. + * Either provide endpoint (and optional headers/fetch) for HTTP requests, + * or provide a custom adapter for alternative execution strategies. + */ +export interface OrmClientConfig { + /** GraphQL endpoint URL (required if adapter not provided) */ + endpoint?: string; + /** Default headers for HTTP requests (only used with endpoint) */ + headers?: Record; + /** + * Custom fetch implementation. Defaults to createFetch() from + * @constructive-io/graphql-query/runtime which handles *.localhost + * DNS and Host headers in Node.js. Pass your own for test mocking + * or custom proxy/credentials. + */ + fetch?: typeof globalThis.fetch; + /** Custom adapter for GraphQL execution (overrides endpoint/headers/fetch) */ + adapter?: GraphQLAdapter; + /** + * Optional realtime (WebSocket) configuration. + * When provided, enables subscription methods on models. + * The WebSocket connection is created lazily on first subscribe(). + */ + realtime?: RealtimeConfig; +} + +/** + * Describe a single GraphQL error, falling back to its `extensions.code` when + * the server omits `message` so the error never renders as an empty string. + */ +function describeGraphQLError(error: GraphQLError): string { + if (error.message) return error.message; + const code = error.extensions?.code; + return typeof code === 'string' ? code : 'Unknown error'; +} + +/** + * Error thrown when GraphQL request fails + */ +export class GraphQLRequestError extends Error { + constructor( + public readonly errors: GraphQLError[], + public readonly data: unknown = null + ) { + const messages = errors.map(describeGraphQLError).join('; '); + super(`GraphQL Error: ${messages}`); + this.name = 'GraphQLRequestError'; + } +} + +export class OrmClient { + private adapter: GraphQLAdapter; + private realtimeManager?: RealtimeManager; + + constructor(config: OrmClientConfig) { + if (config.adapter) { + this.adapter = config.adapter; + } else if (config.endpoint) { + this.adapter = new FetchAdapter(config.endpoint, config.headers, config.fetch); + } else { + throw new Error('OrmClientConfig requires either an endpoint or a custom adapter'); + } + + if (config.realtime) { + this.realtimeManager = new RealtimeManager(config.realtime); + } + } + + async execute(document: string, variables?: Record): Promise> { + return this.adapter.execute(document, variables); + } + + /** + * Subscribe to a GraphQL subscription operation. + * Used by generated model subscribe() methods. + * @throws Error if realtime is not configured + */ + subscribe( + meta: SubscriptionFieldMeta, + document: string, + variables: Record, + options: { + onEvent: (event: SubscriptionEvent) => void; + onError?: (error: Error) => void; + onComplete?: () => void; + } + ): Unsubscribe { + if (!this.realtimeManager) { + throw new Error( + 'Realtime not configured. Pass a `realtime` option to createClient() to enable subscriptions.' + ); + } + return this.realtimeManager.subscribe(meta, document, variables, options); + } + + /** + * Set headers for requests. + * Only works if the adapter supports headers. + */ + setHeaders(headers: Record): void { + if (this.adapter.setHeaders) { + this.adapter.setHeaders(headers); + } + } + + /** + * Get the endpoint URL. + * Returns empty string if the adapter doesn't have an endpoint. + */ + getEndpoint(): string { + return this.adapter.getEndpoint?.() ?? ''; + } + + /** Get current WebSocket connection state */ + getConnectionState(): ConnectionState { + return this.realtimeManager?.getConnectionState() ?? 'disconnected'; + } + + /** Register a listener for WebSocket connection state changes */ + onConnectionStateChange(listener: ConnectionStateListener): Unsubscribe { + if (!this.realtimeManager) return () => {}; + return this.realtimeManager.onConnectionStateChange(listener); + } + + /** Number of active subscriptions */ + getActiveSubscriptionCount(): number { + return this.realtimeManager?.getActiveSubscriptionCount() ?? 0; + } + + /** Whether realtime is configured */ + get isRealtimeEnabled(): boolean { + return this.realtimeManager !== undefined; + } + + /** Dispose the realtime manager (close WebSocket) */ + dispose(): void { + this.realtimeManager?.dispose(); + } +} diff --git a/sdk/constructive-sdk/src/storage/orm/index.ts b/sdk/constructive-sdk/src/storage/orm/index.ts new file mode 100644 index 0000000000..b5d692cd47 --- /dev/null +++ b/sdk/constructive-sdk/src/storage/orm/index.ts @@ -0,0 +1,51 @@ +/** + * ORM Client - createClient factory + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from './client'; +import type { OrmClientConfig } from './client'; +import { BucketModel } from './models/bucket'; +import { FileModel } from './models/file'; +import { PlatformBucketModel } from './models/platformBucket'; +import { PlatformFileModel } from './models/platformFile'; +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 { createMutationOperations } from './mutation'; +/** + * Create an ORM client instance + * + * @example + * ```typescript + * const db = createClient({ + * endpoint: 'https://api.example.com/graphql', + * headers: { Authorization: 'Bearer token' }, + * }); + * + * // Query users + * const users = await db.user.findMany({ + * select: { id: true, name: true }, + * first: 10, + * }).execute(); + * + * // Create a user + * const newUser = await db.user.create({ + * data: { name: 'John', email: 'john@example.com' }, + * select: { id: true }, + * }).execute(); + * ``` + */ +export function createClient(config: OrmClientConfig) { + const client = new OrmClient(config); + return { + bucket: new BucketModel(client), + file: new FileModel(client), + platformBucket: new PlatformBucketModel(client), + platformFile: new PlatformFileModel(client), + mutation: createMutationOperations(client), + }; +} diff --git a/sdk/constructive-sdk/src/storage/orm/input-types.ts b/sdk/constructive-sdk/src/storage/orm/input-types.ts new file mode 100644 index 0000000000..ebe7107905 --- /dev/null +++ b/sdk/constructive-sdk/src/storage/orm/input-types.ts @@ -0,0 +1,2256 @@ +/** + * GraphQL types for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +// ============ Scalar Filter Types ============ +export interface StringFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; + includes?: string; + notIncludes?: string; + includesInsensitive?: string; + notIncludesInsensitive?: string; + startsWith?: string; + notStartsWith?: string; + startsWithInsensitive?: string; + notStartsWithInsensitive?: string; + endsWith?: string; + notEndsWith?: string; + endsWithInsensitive?: string; + notEndsWithInsensitive?: string; + like?: string; + notLike?: string; + likeInsensitive?: string; + notLikeInsensitive?: string; +} +export interface IntFilter { + isNull?: boolean; + equalTo?: number; + notEqualTo?: number; + distinctFrom?: number; + notDistinctFrom?: number; + in?: number[]; + notIn?: number[]; + lessThan?: number; + lessThanOrEqualTo?: number; + greaterThan?: number; + greaterThanOrEqualTo?: number; +} +export interface FloatFilter { + isNull?: boolean; + equalTo?: number; + notEqualTo?: number; + distinctFrom?: number; + notDistinctFrom?: number; + in?: number[]; + notIn?: number[]; + lessThan?: number; + lessThanOrEqualTo?: number; + greaterThan?: number; + greaterThanOrEqualTo?: number; +} +export interface BooleanFilter { + isNull?: boolean; + equalTo?: boolean; + notEqualTo?: boolean; +} +export interface UUIDFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; +} +export interface DatetimeFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; +} +export interface DateFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; +} +export interface JSONFilter { + isNull?: boolean; + equalTo?: Record; + notEqualTo?: Record; + distinctFrom?: Record; + notDistinctFrom?: Record; + contains?: Record; + containedBy?: Record; + containsKey?: string; + containsAllKeys?: string[]; + containsAnyKeys?: string[]; +} +export interface BigIntFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; +} +export interface BigFloatFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; +} +export interface BitStringFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; +} +export interface InternetAddressFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; + contains?: string; + containsOrEqualTo?: string; + containedBy?: string; + containedByOrEqualTo?: string; + containsOrContainedBy?: string; +} +export interface FullTextFilter { + matches?: string; +} +export interface VectorFilter { + isNull?: boolean; + equalTo?: number[]; + notEqualTo?: number[]; + distinctFrom?: number[]; + notDistinctFrom?: number[]; +} +export interface StringListFilter { + isNull?: boolean; + equalTo?: string[]; + notEqualTo?: string[]; + distinctFrom?: string[]; + notDistinctFrom?: string[]; + lessThan?: string[]; + lessThanOrEqualTo?: string[]; + greaterThan?: string[]; + greaterThanOrEqualTo?: string[]; + contains?: string[]; + containedBy?: string[]; + overlaps?: string[]; + anyEqualTo?: string; + anyNotEqualTo?: string; + anyLessThan?: string; + anyLessThanOrEqualTo?: string; + anyGreaterThan?: string; + anyGreaterThanOrEqualTo?: string; +} +export interface IntListFilter { + isNull?: boolean; + equalTo?: number[]; + notEqualTo?: number[]; + distinctFrom?: number[]; + notDistinctFrom?: number[]; + lessThan?: number[]; + lessThanOrEqualTo?: number[]; + greaterThan?: number[]; + greaterThanOrEqualTo?: number[]; + contains?: number[]; + containedBy?: number[]; + overlaps?: number[]; + anyEqualTo?: number; + anyNotEqualTo?: number; + anyLessThan?: number; + anyLessThanOrEqualTo?: number; + anyGreaterThan?: number; + anyGreaterThanOrEqualTo?: number; +} +export interface UUIDListFilter { + isNull?: boolean; + equalTo?: string[]; + notEqualTo?: string[]; + distinctFrom?: string[]; + notDistinctFrom?: string[]; + lessThan?: string[]; + lessThanOrEqualTo?: string[]; + greaterThan?: string[]; + greaterThanOrEqualTo?: string[]; + contains?: string[]; + containedBy?: string[]; + overlaps?: string[]; + anyEqualTo?: string; + anyNotEqualTo?: string; + anyLessThan?: string; + anyLessThanOrEqualTo?: string; + anyGreaterThan?: string; + anyGreaterThanOrEqualTo?: string; +} +// ============ Enum Types ============ +export type BucketType = 'PRIVATE' | 'PUBLIC' | 'TEMP'; +export type FileStatus = 'EXPIRED' | 'PROCESSED' | 'REJECTED' | 'REQUESTED' | 'UPLOADED'; +// ============ Custom Scalar Types ============ +export type ConstructiveInternalTypeUpload = unknown; +/** Logical storage containers that group files with shared access policies and CDN behavior */ +// ============ Entity Types ============ +export interface Bucket { + /** User who created this bucket. Forced to current_user_id() on INSERT. */ + actorId?: string | null; + /** When true, clients can provide custom S3 keys (e.g. reports/2024/Q1.pdf). When false (default), S3 key = content hash (automatic dedup). contentHash always required for integrity. */ + allowCustomKeys?: boolean | null; + /** Whitelist of allowed MIME types for files in this bucket (NULL = all allowed, enforcement deferred) */ + allowedMimeTypes?: string[] | null; + /** Per-bucket CORS allowed origins override (NULL = inherit from storage_module/plugin defaults). Use ARRAY['*'] for open/CDN mode. */ + allowedOrigins?: string[] | null; + createdAt?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; + /** Human-readable description of the bucket purpose */ + description?: string | null; + /** For a temp bucket, the permanent bucket its uploads are promoted into. NULL on non-temp buckets; required on temp buckets. */ + destinationBucketId?: string | null; + id: string; + /** Whether bucket contents are publicly readable. Set to true when type is public. */ + isPublic?: boolean | null; + /** Unique bucket identifier used in S3 key paths (e.g. avatars, documents, temp) */ + key?: string | null; + /** Maximum file size in bytes allowed in this bucket (NULL = no limit, enforcement deferred) */ + maxFileSize?: string | null; + /** Physical S3/MinIO bucket name recorded at provision time (NULL until the physical bucket exists) */ + physicalName?: string | null; + /** For a temp bucket, how long an unpromoted staged file survives before it is eligible for expiry. NULL on non-temp buckets; required on temp buckets. */ + stagingTtl?: string | null; + /** Selector labels for capability resolution and grouping (e.g. uploads, variants, exports). A function's required bucket key is matched against these plus type. */ + tags?: string[] | null; + /** Bucket CDN access type: public (CDN-served), private (presigned GET), temp (staging uploads) */ + type?: BucketType | null; + updatedAt?: string | null; +} +/** Individual file records within buckets, with immutable identity fields and mutable metadata */ +export interface File { + /** User who uploaded this file. Forced to current_user_id() on INSERT. Used for UPDATE/DELETE authorization. */ + actorId?: string | null; + /** Bucket this file belongs to. Determines owner_id and is_public via inheritance trigger. */ + bucketId?: string | null; + /** SHA-256 content hash for integrity verification and dedup. In default mode, equals the S3 key. In custom key mode, stored separately. */ + contentHash?: string | null; + createdAt?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; + /** Human-readable description or alt text for the file (mutable) */ + description?: string | null; + /** URL to download this file. For public files, returns the public URL. For private files, returns a time-limited presigned URL. */ + downloadUrl?: string | null; + /** When the staged-expiry sweep enqueued deletion of this file's object. NULL until it expires; set once so expiry is enqueued exactly once. */ + expiryEnqueuedAt?: string | null; + filePath?: string | null; + /** Original filename provided by the uploader. Used for display and Content-Disposition header on download. */ + filename?: string | null; + id: string; + /** Whether this file is publicly readable. Inherited from bucket on INSERT. */ + isPublic?: boolean | null; + /** S3 object key for this file, unique within its bucket */ + key?: string | null; + /** MIME type of the file (e.g. image/png, application/pdf). Immutable after INSERT. */ + mimeType?: string | null; + /** When this file was promoted out of its staging bucket into its destination bucket. NULL for a file that was never staged, or is still staged. */ + promotedAt?: string | null; + /** File size in bytes. Immutable after INSERT. */ + size?: string | null; + /** File lifecycle status: requested (presigned URL generated, not yet in S3), uploaded (file in S3 and content validated, ready for use), processed (image resized, text extracted, embedding computed), rejected (declared type disagreed with the bytes), expired (bytes never arrived before the confirm window closed). */ + status?: FileStatus | null; + /** User-defined tags for categorization and search (mutable) */ + tags?: string[] | null; + updatedAt?: string | null; + /** Processed file reference (upload domain). Populated by processing jobs after file is uploaded. Copy this value to other tables to reference the file. */ + upload?: ConstructiveInternalTypeUpload | null; +} +/** Logical storage containers that group files with shared access policies and CDN behavior */ +export interface PlatformBucket { + /** User who created this bucket. Forced to current_user_id() on INSERT. */ + actorId?: string | null; + /** When true, clients can provide custom S3 keys (e.g. reports/2024/Q1.pdf). When false (default), S3 key = content hash (automatic dedup). contentHash always required for integrity. */ + allowCustomKeys?: boolean | null; + /** Whitelist of allowed MIME types for files in this bucket (NULL = all allowed, enforcement deferred) */ + allowedMimeTypes?: string[] | null; + /** Per-bucket CORS allowed origins override (NULL = inherit from storage_module/plugin defaults). Use ARRAY['*'] for open/CDN mode. */ + allowedOrigins?: string[] | null; + createdAt?: string | null; + /** Human-readable description of the bucket purpose */ + description?: string | null; + /** For a temp bucket, the permanent bucket its uploads are promoted into. NULL on non-temp buckets; required on temp buckets. */ + destinationBucketId?: string | null; + id: string; + /** Whether bucket contents are publicly readable. Set to true when type is public. */ + isPublic?: boolean | null; + /** Unique bucket identifier used in S3 key paths (e.g. avatars, documents, temp) */ + key?: string | null; + /** Maximum file size in bytes allowed in this bucket (NULL = no limit, enforcement deferred) */ + maxFileSize?: string | null; + /** Physical S3/MinIO bucket name recorded at provision time (NULL until the physical bucket exists) */ + physicalName?: string | null; + /** For a temp bucket, how long an unpromoted staged file survives before it is eligible for expiry. NULL on non-temp buckets; required on temp buckets. */ + stagingTtl?: string | null; + /** Selector labels for capability resolution and grouping (e.g. uploads, variants, exports). A function's required bucket key is matched against these plus type. */ + tags?: string[] | null; + /** Bucket CDN access type: public (CDN-served), private (presigned GET), temp (staging uploads) */ + type?: BucketType | null; + updatedAt?: string | null; +} +/** Individual file records within buckets, with immutable identity fields and mutable metadata */ +export interface PlatformFile { + /** User who uploaded this file. Forced to current_user_id() on INSERT. Used for UPDATE/DELETE authorization. */ + actorId?: string | null; + /** Bucket this file belongs to. Determines owner_id and is_public via inheritance trigger. */ + bucketId?: string | null; + /** SHA-256 content hash for integrity verification and dedup. In default mode, equals the S3 key. In custom key mode, stored separately. */ + contentHash?: string | null; + createdAt?: string | null; + /** Human-readable description or alt text for the file (mutable) */ + description?: string | null; + /** URL to download this file. For public files, returns the public URL. For private files, returns a time-limited presigned URL. */ + downloadUrl?: string | null; + /** When the staged-expiry sweep enqueued deletion of this file's object. NULL until it expires; set once so expiry is enqueued exactly once. */ + expiryEnqueuedAt?: string | null; + filePath?: string | null; + /** Original filename provided by the uploader. Used for display and Content-Disposition header on download. */ + filename?: string | null; + id: string; + /** Whether this file is publicly readable. Inherited from bucket on INSERT. */ + isPublic?: boolean | null; + /** S3 object key for this file, unique within its bucket */ + key?: string | null; + /** MIME type of the file (e.g. image/png, application/pdf). Immutable after INSERT. */ + mimeType?: string | null; + /** When this file was promoted out of its staging bucket into its destination bucket. NULL for a file that was never staged, or is still staged. */ + promotedAt?: string | null; + /** File size in bytes. Immutable after INSERT. */ + size?: string | null; + /** File lifecycle status: requested (presigned URL generated, not yet in S3), uploaded (file in S3 and content validated, ready for use), processed (image resized, text extracted, embedding computed), rejected (declared type disagreed with the bytes), expired (bytes never arrived before the confirm window closed). */ + status?: FileStatus | null; + /** User-defined tags for categorization and search (mutable) */ + tags?: string[] | null; + updatedAt?: string | null; + /** Processed file reference (upload domain). Populated by processing jobs after file is uploaded. Copy this value to other tables to reference the file. */ + upload?: ConstructiveInternalTypeUpload | null; +} +// ============ Relation Helper Types ============ +export interface ConnectionResult { + nodes: T[]; + totalCount: number; + pageInfo: PageInfo; +} +export interface PageInfo { + hasNextPage: boolean; + hasPreviousPage: boolean; + startCursor?: string | null; + endCursor?: string | null; +} +// ============ Entity Relation Types ============ +export interface BucketRelations { + destinationBucket?: Bucket | null; + bucketsByDestinationBucketId?: ConnectionResult; + files?: ConnectionResult; +} +export interface FileRelations { + bucket?: Bucket | null; +} +export interface PlatformBucketRelations { + destinationBucket?: PlatformBucket | null; + platformBucketsByDestinationBucketId?: ConnectionResult; + platformFilesByBucketId?: ConnectionResult; +} +export interface PlatformFileRelations { + bucket?: PlatformBucket | null; +} +// ============ Entity Types With Relations ============ +export type BucketWithRelations = Bucket & BucketRelations; +export type FileWithRelations = File & FileRelations; +export type PlatformBucketWithRelations = PlatformBucket & PlatformBucketRelations; +export type PlatformFileWithRelations = PlatformFile & PlatformFileRelations; +// ============ Entity Select Types ============ +export type BucketSelect = { + actorId?: boolean; + allowCustomKeys?: boolean; + allowedMimeTypes?: boolean; + allowedOrigins?: boolean; + createdAt?: boolean; + databaseId?: boolean; + description?: boolean; + destinationBucketId?: boolean; + id?: boolean; + isPublic?: boolean; + key?: boolean; + maxFileSize?: boolean; + physicalName?: boolean; + stagingTtl?: boolean; + tags?: boolean; + type?: boolean; + updatedAt?: boolean; + destinationBucket?: { + select: BucketSelect; + }; + bucketsByDestinationBucketId?: { + select: BucketSelect; + first?: number; + filter?: BucketFilter; + orderBy?: BucketOrderBy[]; + }; + files?: { + select: FileSelect; + first?: number; + filter?: FileFilter; + orderBy?: FileOrderBy[]; + }; +}; +export type FileSelect = { + actorId?: boolean; + bucketId?: boolean; + contentHash?: boolean; + createdAt?: boolean; + databaseId?: boolean; + description?: boolean; + downloadUrl?: boolean; + expiryEnqueuedAt?: boolean; + filePath?: boolean; + filename?: boolean; + id?: boolean; + isPublic?: boolean; + key?: boolean; + mimeType?: boolean; + promotedAt?: boolean; + size?: boolean; + status?: boolean; + tags?: boolean; + updatedAt?: boolean; + upload?: boolean; + bucket?: { + select: BucketSelect; + }; +}; +export type PlatformBucketSelect = { + actorId?: boolean; + allowCustomKeys?: boolean; + allowedMimeTypes?: boolean; + allowedOrigins?: boolean; + createdAt?: boolean; + description?: boolean; + destinationBucketId?: boolean; + id?: boolean; + isPublic?: boolean; + key?: boolean; + maxFileSize?: boolean; + physicalName?: boolean; + stagingTtl?: boolean; + tags?: boolean; + type?: boolean; + updatedAt?: boolean; + destinationBucket?: { + select: PlatformBucketSelect; + }; + platformBucketsByDestinationBucketId?: { + select: PlatformBucketSelect; + first?: number; + filter?: PlatformBucketFilter; + orderBy?: PlatformBucketOrderBy[]; + }; + platformFilesByBucketId?: { + select: PlatformFileSelect; + first?: number; + filter?: PlatformFileFilter; + orderBy?: PlatformFileOrderBy[]; + }; +}; +export type PlatformFileSelect = { + actorId?: boolean; + bucketId?: boolean; + contentHash?: boolean; + createdAt?: boolean; + description?: boolean; + downloadUrl?: boolean; + expiryEnqueuedAt?: boolean; + filePath?: boolean; + filename?: boolean; + id?: boolean; + isPublic?: boolean; + key?: boolean; + mimeType?: boolean; + promotedAt?: boolean; + size?: boolean; + status?: boolean; + tags?: boolean; + updatedAt?: boolean; + upload?: boolean; + bucket?: { + select: PlatformBucketSelect; + }; +}; +// ============ Table Filter Types ============ +export interface BucketFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `allowCustomKeys` field. */ + allowCustomKeys?: BooleanFilter; + /** Filter by the object’s `allowedMimeTypes` field. */ + allowedMimeTypes?: StringListFilter; + /** Filter by the object’s `allowedOrigins` field. */ + allowedOrigins?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: BucketFilter[]; + /** Filter by the object’s `bucketsByDestinationBucketId` relation. */ + bucketsByDestinationBucketId?: BucketToManyBucketFilter; + /** `bucketsByDestinationBucketId` exist. */ + bucketsByDestinationBucketIdExist?: boolean; + /** 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 `destinationBucket` relation. */ + destinationBucket?: BucketFilter; + /** A related `destinationBucket` exists. */ + destinationBucketExists?: boolean; + /** Filter by the object’s `destinationBucketId` field. */ + destinationBucketId?: UUIDFilter; + /** Filter by the object’s `files` relation. */ + files?: BucketToManyFileFilter; + /** `files` exist. */ + filesExist?: boolean; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isPublic` field. */ + isPublic?: BooleanFilter; + /** Filter by the object’s `key` field. */ + key?: StringFilter; + /** Filter by the object’s `maxFileSize` field. */ + maxFileSize?: BigIntFilter; + /** Negates the expression. */ + not?: BucketFilter; + /** Checks for any expressions in this list. */ + or?: BucketFilter[]; + /** Filter by the object’s `physicalName` field. */ + physicalName?: StringFilter; + /** Filter by the object’s `stagingTtl` field. */ + stagingTtl?: IntervalFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Filter by the object’s `type` field. */ + type?: BucketTypeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} +export interface FileFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: FileFilter[]; + /** Filter by the object’s `bucket` relation. */ + bucket?: BucketFilter; + /** Filter by the object’s `bucketId` field. */ + bucketId?: UUIDFilter; + /** Filter by the object’s `contentHash` field. */ + contentHash?: 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 `expiryEnqueuedAt` field. */ + expiryEnqueuedAt?: DatetimeFilter; + /** Filter by the object’s `filename` field. */ + filename?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isPublic` field. */ + isPublic?: BooleanFilter; + /** Filter by the object’s `key` field. */ + key?: StringFilter; + /** Filter by the object’s `mimeType` field. */ + mimeType?: StringFilter; + /** Negates the expression. */ + not?: FileFilter; + /** Checks for any expressions in this list. */ + or?: FileFilter[]; + /** Filter by the object’s `promotedAt` field. */ + promotedAt?: DatetimeFilter; + /** Filter by the object’s `size` field. */ + size?: BigIntFilter; + /** Filter by the object’s `status` field. */ + status?: FileStatusFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `upload` field. */ + upload?: ConstructiveInternalTypeUploadFilter; +} +export interface PlatformBucketFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `allowCustomKeys` field. */ + allowCustomKeys?: BooleanFilter; + /** Filter by the object’s `allowedMimeTypes` field. */ + allowedMimeTypes?: StringListFilter; + /** Filter by the object’s `allowedOrigins` field. */ + allowedOrigins?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: PlatformBucketFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `destinationBucket` relation. */ + destinationBucket?: PlatformBucketFilter; + /** A related `destinationBucket` exists. */ + destinationBucketExists?: boolean; + /** Filter by the object’s `destinationBucketId` field. */ + destinationBucketId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isPublic` field. */ + isPublic?: BooleanFilter; + /** Filter by the object’s `key` field. */ + key?: StringFilter; + /** Filter by the object’s `maxFileSize` field. */ + maxFileSize?: BigIntFilter; + /** Negates the expression. */ + not?: PlatformBucketFilter; + /** Checks for any expressions in this list. */ + or?: PlatformBucketFilter[]; + /** Filter by the object’s `physicalName` field. */ + physicalName?: StringFilter; + /** Filter by the object’s `platformBucketsByDestinationBucketId` relation. */ + platformBucketsByDestinationBucketId?: PlatformBucketToManyPlatformBucketFilter; + /** `platformBucketsByDestinationBucketId` exist. */ + platformBucketsByDestinationBucketIdExist?: boolean; + /** Filter by the object’s `platformFilesByBucketId` relation. */ + platformFilesByBucketId?: PlatformBucketToManyPlatformFileFilter; + /** `platformFilesByBucketId` exist. */ + platformFilesByBucketIdExist?: boolean; + /** Filter by the object’s `stagingTtl` field. */ + stagingTtl?: IntervalFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Filter by the object’s `type` field. */ + type?: BucketTypeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} +export interface PlatformFileFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: PlatformFileFilter[]; + /** Filter by the object’s `bucket` relation. */ + bucket?: PlatformBucketFilter; + /** Filter by the object’s `bucketId` field. */ + bucketId?: UUIDFilter; + /** Filter by the object’s `contentHash` field. */ + contentHash?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `expiryEnqueuedAt` field. */ + expiryEnqueuedAt?: DatetimeFilter; + /** Filter by the object’s `filename` field. */ + filename?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isPublic` field. */ + isPublic?: BooleanFilter; + /** Filter by the object’s `key` field. */ + key?: StringFilter; + /** Filter by the object’s `mimeType` field. */ + mimeType?: StringFilter; + /** Negates the expression. */ + not?: PlatformFileFilter; + /** Checks for any expressions in this list. */ + or?: PlatformFileFilter[]; + /** Filter by the object’s `promotedAt` field. */ + promotedAt?: DatetimeFilter; + /** Filter by the object’s `size` field. */ + size?: BigIntFilter; + /** Filter by the object’s `status` field. */ + status?: FileStatusFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `upload` field. */ + upload?: ConstructiveInternalTypeUploadFilter; +} +// ============ OrderBy Types ============ +export type BucketOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'ALLOWED_MIME_TYPES_ASC' + | 'ALLOWED_MIME_TYPES_DESC' + | 'ALLOWED_ORIGINS_ASC' + | 'ALLOWED_ORIGINS_DESC' + | 'ALLOW_CUSTOM_KEYS_ASC' + | 'ALLOW_CUSTOM_KEYS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'DESTINATION_BUCKET_ID_ASC' + | 'DESTINATION_BUCKET_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_PUBLIC_ASC' + | 'IS_PUBLIC_DESC' + | 'KEY_ASC' + | 'KEY_DESC' + | 'MAX_FILE_SIZE_ASC' + | 'MAX_FILE_SIZE_DESC' + | 'NATURAL' + | 'PHYSICAL_NAME_ASC' + | 'PHYSICAL_NAME_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'STAGING_TTL_ASC' + | 'STAGING_TTL_DESC' + | 'TAGS_ASC' + | 'TAGS_DESC' + | 'TYPE_ASC' + | 'TYPE_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type FileOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'BUCKET_ID_ASC' + | 'BUCKET_ID_DESC' + | 'CONTENT_HASH_ASC' + | 'CONTENT_HASH_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'EXPIRY_ENQUEUED_AT_ASC' + | 'EXPIRY_ENQUEUED_AT_DESC' + | 'FILENAME_ASC' + | 'FILENAME_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_PUBLIC_ASC' + | 'IS_PUBLIC_DESC' + | 'KEY_ASC' + | 'KEY_DESC' + | 'MIME_TYPE_ASC' + | 'MIME_TYPE_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PROMOTED_AT_ASC' + | 'PROMOTED_AT_DESC' + | 'SIZE_ASC' + | 'SIZE_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'TAGS_ASC' + | 'TAGS_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPLOAD_ASC' + | 'UPLOAD_DESC'; +export type PlatformBucketOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'ALLOWED_MIME_TYPES_ASC' + | 'ALLOWED_MIME_TYPES_DESC' + | 'ALLOWED_ORIGINS_ASC' + | 'ALLOWED_ORIGINS_DESC' + | 'ALLOW_CUSTOM_KEYS_ASC' + | 'ALLOW_CUSTOM_KEYS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'DESTINATION_BUCKET_ID_ASC' + | 'DESTINATION_BUCKET_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_PUBLIC_ASC' + | 'IS_PUBLIC_DESC' + | 'KEY_ASC' + | 'KEY_DESC' + | 'MAX_FILE_SIZE_ASC' + | 'MAX_FILE_SIZE_DESC' + | 'NATURAL' + | 'PHYSICAL_NAME_ASC' + | 'PHYSICAL_NAME_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'STAGING_TTL_ASC' + | 'STAGING_TTL_DESC' + | 'TAGS_ASC' + | 'TAGS_DESC' + | 'TYPE_ASC' + | 'TYPE_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type PlatformFileOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'BUCKET_ID_ASC' + | 'BUCKET_ID_DESC' + | 'CONTENT_HASH_ASC' + | 'CONTENT_HASH_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'EXPIRY_ENQUEUED_AT_ASC' + | 'EXPIRY_ENQUEUED_AT_DESC' + | 'FILENAME_ASC' + | 'FILENAME_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_PUBLIC_ASC' + | 'IS_PUBLIC_DESC' + | 'KEY_ASC' + | 'KEY_DESC' + | 'MIME_TYPE_ASC' + | 'MIME_TYPE_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PROMOTED_AT_ASC' + | 'PROMOTED_AT_DESC' + | 'SIZE_ASC' + | 'SIZE_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'TAGS_ASC' + | 'TAGS_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPLOAD_ASC' + | 'UPLOAD_DESC'; +// ============ CRUD Input Types ============ +export interface CreateBucketInput { + clientMutationId?: string; + bucket: { + actorId: string; + allowCustomKeys?: boolean; + allowedMimeTypes?: string[]; + allowedOrigins?: string[]; + databaseId: string; + description?: string; + destinationBucketId?: string; + isPublic?: boolean; + key: string; + maxFileSize?: string; + physicalName?: string; + stagingTtl?: IntervalInput; + tags?: string[]; + type?: BucketType; + }; +} +export interface BucketPatch { + actorId?: string | null; + allowCustomKeys?: boolean | null; + allowedMimeTypes?: string[] | null; + allowedOrigins?: string[] | null; + databaseId?: string | null; + description?: string | null; + destinationBucketId?: string | null; + isPublic?: boolean | null; + key?: string | null; + maxFileSize?: string | null; + physicalName?: string | null; + stagingTtl?: IntervalInput | null; + tags?: string[] | null; + type?: BucketType | null; +} +export interface UpdateBucketInput { + clientMutationId?: string; + id: string; + bucketPatch: BucketPatch; +} +export interface DeleteBucketInput { + clientMutationId?: string; + id: string; +} +export interface CreateFileInput { + clientMutationId?: string; + file: { + actorId: string; + bucketId: string; + contentHash?: string; + databaseId: string; + description?: string; + expiryEnqueuedAt?: string; + filename?: string; + isPublic?: boolean; + key: string; + mimeType: string; + promotedAt?: string; + size: string; + status?: FileStatus; + tags?: string[]; + upload?: ConstructiveInternalTypeUpload; + }; +} +export interface FilePatch { + actorId?: string | null; + bucketId?: string | null; + contentHash?: string | null; + databaseId?: string | null; + description?: string | null; + expiryEnqueuedAt?: string | null; + filename?: string | null; + isPublic?: boolean | null; + key?: string | null; + mimeType?: string | null; + promotedAt?: string | null; + size?: string | null; + status?: FileStatus | null; + tags?: string[] | null; + upload?: ConstructiveInternalTypeUpload | null; + uploadUpload?: File | null; +} +export interface UpdateFileInput { + clientMutationId?: string; + id: string; + filePatch: FilePatch; +} +export interface DeleteFileInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformBucketInput { + clientMutationId?: string; + platformBucket: { + actorId: string; + allowCustomKeys?: boolean; + allowedMimeTypes?: string[]; + allowedOrigins?: string[]; + description?: string; + destinationBucketId?: string; + isPublic?: boolean; + key: string; + maxFileSize?: string; + physicalName?: string; + stagingTtl?: IntervalInput; + tags?: string[]; + type?: BucketType; + }; +} +export interface PlatformBucketPatch { + actorId?: string | null; + allowCustomKeys?: boolean | null; + allowedMimeTypes?: string[] | null; + allowedOrigins?: string[] | null; + description?: string | null; + destinationBucketId?: string | null; + isPublic?: boolean | null; + key?: string | null; + maxFileSize?: string | null; + physicalName?: string | null; + stagingTtl?: IntervalInput | null; + tags?: string[] | null; + type?: BucketType | null; +} +export interface UpdatePlatformBucketInput { + clientMutationId?: string; + id: string; + platformBucketPatch: PlatformBucketPatch; +} +export interface DeletePlatformBucketInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformFileInput { + clientMutationId?: string; + platformFile: { + actorId: string; + bucketId: string; + contentHash?: string; + description?: string; + expiryEnqueuedAt?: string; + filename?: string; + isPublic?: boolean; + key: string; + mimeType: string; + promotedAt?: string; + size: string; + status?: FileStatus; + tags?: string[]; + upload?: ConstructiveInternalTypeUpload; + }; +} +export interface PlatformFilePatch { + actorId?: string | null; + bucketId?: string | null; + contentHash?: string | null; + description?: string | null; + expiryEnqueuedAt?: string | null; + filename?: string | null; + isPublic?: boolean | null; + key?: string | null; + mimeType?: string | null; + promotedAt?: string | null; + size?: string | null; + status?: FileStatus | null; + tags?: string[] | null; + upload?: ConstructiveInternalTypeUpload | null; + uploadUpload?: File | null; +} +export interface UpdatePlatformFileInput { + clientMutationId?: string; + id: string; + platformFilePatch: PlatformFilePatch; +} +export interface DeletePlatformFileInput { + clientMutationId?: string; + id: string; +} +// ============ Connection Fields Map ============ +export const connectionFieldsMap = { + Bucket: { + bucketsByDestinationBucketId: 'Bucket', + files: 'File', + }, + PlatformBucket: { + platformBucketsByDestinationBucketId: 'PlatformBucket', + platformFilesByBucketId: 'PlatformFile', + }, +} as Record>; +// ============ Custom Input Types (from schema) ============ +export interface FilesRenameInput { + clientMutationId?: string; + fileId?: string; + newFilename?: string; +} +export interface PlatformFilesRenameInput { + clientMutationId?: string; + fileId?: string; + newFilename?: 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 UploadFileInput { + /** Bucket key (e.g., "public", "private"). Omit to use the database's default bucket for the requested access. */ + bucketKey?: string; + /** SHA-256 content hash (hex-encoded, 64 chars) */ + contentHash: string; + /** MIME type of the file */ + contentType: string; + /** Original filename (optional) */ + filename?: string; + /** Which default bucket to resolve when bucketKey is omitted: the public one (true) or the private one (default false). Ignored when bucketKey is given. */ + isPublic?: boolean; + /** Custom S3 key (only when bucket has allow_custom_keys=true) */ + key?: string; + /** File size in bytes */ + size: number; +} +export interface UploadFileBulkInput { + /** Bucket key (e.g., "public", "private"). Omit to use the database's default bucket for the requested access. */ + bucketKey?: string; + /** Array of files to upload */ + files: UploadFileBulkFileInput[]; + /** Which default bucket to resolve when bucketKey is omitted. Ignored when bucketKey is given. */ + isPublic?: boolean; +} +export interface UploadPlatformFileInput { + /** Bucket key (e.g., "public", "private"). Omit to use the database's default bucket for the requested access. */ + bucketKey?: string; + /** SHA-256 content hash (hex-encoded, 64 chars) */ + contentHash: string; + /** MIME type of the file */ + contentType: string; + /** Original filename (optional) */ + filename?: string; + /** Which default bucket to resolve when bucketKey is omitted: the public one (true) or the private one (default false). Ignored when bucketKey is given. */ + isPublic?: boolean; + /** Custom S3 key (only when bucket has allow_custom_keys=true) */ + key?: string; + /** File size in bytes */ + size: number; +} +export interface UploadPlatformFileBulkInput { + /** Bucket key (e.g., "public", "private"). Omit to use the database's default bucket for the requested access. */ + bucketKey?: string; + /** Array of files to upload */ + files: UploadPlatformFileBulkFileInput[]; + /** Which default bucket to resolve when bucketKey is omitted. Ignored when bucketKey is given. */ + isPublic?: boolean; +} +/** A filter to be used against many `Bucket` object types. All fields are combined with a logical ‘and.’ */ +export interface BucketToManyBucketFilter { + /** Filters to entities where every related entity matches. */ + every?: BucketFilter; + /** Filters to entities where no related entity matches. */ + none?: BucketFilter; + /** Filters to entities where at least one related entity matches. */ + some?: BucketFilter; +} +/** A filter to be used against many `File` object types. All fields are combined with a logical ‘and.’ */ +export interface BucketToManyFileFilter { + /** Filters to entities where every related entity matches. */ + every?: FileFilter; + /** Filters to entities where no related entity matches. */ + none?: FileFilter; + /** Filters to entities where at least one related entity matches. */ + some?: FileFilter; +} +/** A filter to be used against Interval fields. All fields are combined with a logical ‘and.’ */ +export interface IntervalFilter { + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: IntervalInput; + /** Equal to the specified value. */ + equalTo?: IntervalInput; + /** Greater than the specified value. */ + greaterThan?: IntervalInput; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: IntervalInput; + /** Included in the specified list. */ + in?: IntervalInput[]; + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Less than the specified value. */ + lessThan?: IntervalInput; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: IntervalInput; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: IntervalInput; + /** Not equal to the specified value. */ + notEqualTo?: IntervalInput; + /** Not included in the specified list. */ + notIn?: IntervalInput[]; +} +/** A filter to be used against BucketType fields. All fields are combined with a logical ‘and.’ */ +export interface BucketTypeFilter { + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: BucketType; + /** Equal to the specified value. */ + equalTo?: BucketType; + /** Greater than the specified value. */ + greaterThan?: BucketType; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: BucketType; + /** Included in the specified list. */ + in?: BucketType[]; + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Less than the specified value. */ + lessThan?: BucketType; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: BucketType; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: BucketType; + /** Not equal to the specified value. */ + notEqualTo?: BucketType; + /** Not included in the specified list. */ + notIn?: BucketType[]; +} +/** A filter to be used against FileStatus fields. All fields are combined with a logical ‘and.’ */ +export interface FileStatusFilter { + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: FileStatus; + /** Equal to the specified value. */ + equalTo?: FileStatus; + /** Greater than the specified value. */ + greaterThan?: FileStatus; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: FileStatus; + /** Included in the specified list. */ + in?: FileStatus[]; + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Less than the specified value. */ + lessThan?: FileStatus; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: FileStatus; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: FileStatus; + /** Not equal to the specified value. */ + notEqualTo?: FileStatus; + /** Not included in the specified list. */ + notIn?: FileStatus[]; +} +/** A filter to be used against ConstructiveInternalTypeUpload fields. All fields are combined with a logical ‘and.’ */ +export interface ConstructiveInternalTypeUploadFilter { + /** Contained by the specified JSON. */ + containedBy?: ConstructiveInternalTypeUpload; + /** Contains the specified JSON. */ + contains?: ConstructiveInternalTypeUpload; + /** Contains all of the specified keys. */ + containsAllKeys?: string[]; + /** Contains any of the specified keys. */ + containsAnyKeys?: string[]; + /** Contains the specified key. */ + containsKey?: string; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: ConstructiveInternalTypeUpload; + /** Equal to the specified value. */ + equalTo?: ConstructiveInternalTypeUpload; + /** Greater than the specified value. */ + greaterThan?: ConstructiveInternalTypeUpload; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: ConstructiveInternalTypeUpload; + /** Included in the specified list. */ + in?: ConstructiveInternalTypeUpload[]; + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Less than the specified value. */ + lessThan?: ConstructiveInternalTypeUpload; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: ConstructiveInternalTypeUpload; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: ConstructiveInternalTypeUpload; + /** Not equal to the specified value. */ + notEqualTo?: ConstructiveInternalTypeUpload; + /** Not included in the specified list. */ + notIn?: ConstructiveInternalTypeUpload[]; +} +/** A filter to be used against many `PlatformBucket` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformBucketToManyPlatformBucketFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformBucketFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformBucketFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformBucketFilter; +} +/** A filter to be used against many `PlatformFile` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformBucketToManyPlatformFileFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformFileFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformFileFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformFileFilter; +} +/** An input for mutations affecting `Bucket` */ +export interface BucketInput { + /** User who created this bucket. Forced to current_user_id() on INSERT. */ + actorId: string; + /** When true, clients can provide custom S3 keys (e.g. reports/2024/Q1.pdf). When false (default), S3 key = content hash (automatic dedup). contentHash always required for integrity. */ + allowCustomKeys?: boolean; + /** Whitelist of allowed MIME types for files in this bucket (NULL = all allowed, enforcement deferred) */ + allowedMimeTypes?: string[]; + /** Per-bucket CORS allowed origins override (NULL = inherit from storage_module/plugin defaults). Use ARRAY['*'] for open/CDN mode. */ + allowedOrigins?: string[]; + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Human-readable description of the bucket purpose */ + description?: string; + /** For a temp bucket, the permanent bucket its uploads are promoted into. NULL on non-temp buckets; required on temp buckets. */ + destinationBucketId?: string; + id?: string; + /** Whether bucket contents are publicly readable. Set to true when type is public. */ + isPublic?: boolean; + /** Unique bucket identifier used in S3 key paths (e.g. avatars, documents, temp) */ + key: string; + /** Maximum file size in bytes allowed in this bucket (NULL = no limit, enforcement deferred) */ + maxFileSize?: string; + /** Physical S3/MinIO bucket name recorded at provision time (NULL until the physical bucket exists) */ + physicalName?: string; + /** For a temp bucket, how long an unpromoted staged file survives before it is eligible for expiry. NULL on non-temp buckets; required on temp buckets. */ + stagingTtl?: IntervalInput; + /** Selector labels for capability resolution and grouping (e.g. uploads, variants, exports). A function's required bucket key is matched against these plus type. */ + tags?: string[]; + /** Bucket CDN access type: public (CDN-served), private (presigned GET), temp (staging uploads) */ + type?: BucketType; + updatedAt?: string; +} +/** An interval of time that has passed where the smallest distinct unit is a second. */ +export interface IntervalInput { + /** A quantity of days. */ + days?: number; + /** A quantity of hours. */ + hours?: number; + /** A quantity of minutes. */ + minutes?: number; + /** A quantity of months. */ + months?: number; + /** + * A quantity of seconds. This is the only non-integer field, as all the other + * fields will dump their overflow into a smaller unit of time. Intervals don’t + * have a smaller unit than seconds. + */ + seconds?: number; + /** A quantity of years. */ + years?: number; +} +/** An input for mutations affecting `File` */ +export interface FileInput { + /** User who uploaded this file. Forced to current_user_id() on INSERT. Used for UPDATE/DELETE authorization. */ + actorId: string; + /** Bucket this file belongs to. Determines owner_id and is_public via inheritance trigger. */ + bucketId: string; + /** SHA-256 content hash for integrity verification and dedup. In default mode, equals the S3 key. In custom key mode, stored separately. */ + contentHash?: string; + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Human-readable description or alt text for the file (mutable) */ + description?: string; + /** When the staged-expiry sweep enqueued deletion of this file's object. NULL until it expires; set once so expiry is enqueued exactly once. */ + expiryEnqueuedAt?: string; + /** Original filename provided by the uploader. Used for display and Content-Disposition header on download. */ + filename?: string; + id?: string; + /** Whether this file is publicly readable. Inherited from bucket on INSERT. */ + isPublic?: boolean; + /** S3 object key for this file, unique within its bucket */ + key: string; + /** MIME type of the file (e.g. image/png, application/pdf). Immutable after INSERT. */ + mimeType: string; + /** When this file was promoted out of its staging bucket into its destination bucket. NULL for a file that was never staged, or is still staged. */ + promotedAt?: string; + /** File size in bytes. Immutable after INSERT. */ + size: string; + /** File lifecycle status: requested (presigned URL generated, not yet in S3), uploaded (file in S3 and content validated, ready for use), processed (image resized, text extracted, embedding computed), rejected (declared type disagreed with the bytes), expired (bytes never arrived before the confirm window closed). */ + status?: FileStatus; + /** User-defined tags for categorization and search (mutable) */ + tags?: string[]; + updatedAt?: string; + /** Processed file reference (upload domain). Populated by processing jobs after file is uploaded. Copy this value to other tables to reference the file. */ + upload?: ConstructiveInternalTypeUpload; +} +/** An input for mutations affecting `PlatformBucket` */ +export interface PlatformBucketInput { + /** User who created this bucket. Forced to current_user_id() on INSERT. */ + actorId: string; + /** When true, clients can provide custom S3 keys (e.g. reports/2024/Q1.pdf). When false (default), S3 key = content hash (automatic dedup). contentHash always required for integrity. */ + allowCustomKeys?: boolean; + /** Whitelist of allowed MIME types for files in this bucket (NULL = all allowed, enforcement deferred) */ + allowedMimeTypes?: string[]; + /** Per-bucket CORS allowed origins override (NULL = inherit from storage_module/plugin defaults). Use ARRAY['*'] for open/CDN mode. */ + allowedOrigins?: string[]; + createdAt?: string; + /** Human-readable description of the bucket purpose */ + description?: string; + /** For a temp bucket, the permanent bucket its uploads are promoted into. NULL on non-temp buckets; required on temp buckets. */ + destinationBucketId?: string; + id?: string; + /** Whether bucket contents are publicly readable. Set to true when type is public. */ + isPublic?: boolean; + /** Unique bucket identifier used in S3 key paths (e.g. avatars, documents, temp) */ + key: string; + /** Maximum file size in bytes allowed in this bucket (NULL = no limit, enforcement deferred) */ + maxFileSize?: string; + /** Physical S3/MinIO bucket name recorded at provision time (NULL until the physical bucket exists) */ + physicalName?: string; + /** For a temp bucket, how long an unpromoted staged file survives before it is eligible for expiry. NULL on non-temp buckets; required on temp buckets. */ + stagingTtl?: IntervalInput; + /** Selector labels for capability resolution and grouping (e.g. uploads, variants, exports). A function's required bucket key is matched against these plus type. */ + tags?: string[]; + /** Bucket CDN access type: public (CDN-served), private (presigned GET), temp (staging uploads) */ + type?: BucketType; + updatedAt?: string; +} +/** An input for mutations affecting `PlatformFile` */ +export interface PlatformFileInput { + /** User who uploaded this file. Forced to current_user_id() on INSERT. Used for UPDATE/DELETE authorization. */ + actorId: string; + /** Bucket this file belongs to. Determines owner_id and is_public via inheritance trigger. */ + bucketId: string; + /** SHA-256 content hash for integrity verification and dedup. In default mode, equals the S3 key. In custom key mode, stored separately. */ + contentHash?: string; + createdAt?: string; + /** Human-readable description or alt text for the file (mutable) */ + description?: string; + /** When the staged-expiry sweep enqueued deletion of this file's object. NULL until it expires; set once so expiry is enqueued exactly once. */ + expiryEnqueuedAt?: string; + /** Original filename provided by the uploader. Used for display and Content-Disposition header on download. */ + filename?: string; + id?: string; + /** Whether this file is publicly readable. Inherited from bucket on INSERT. */ + isPublic?: boolean; + /** S3 object key for this file, unique within its bucket */ + key: string; + /** MIME type of the file (e.g. image/png, application/pdf). Immutable after INSERT. */ + mimeType: string; + /** When this file was promoted out of its staging bucket into its destination bucket. NULL for a file that was never staged, or is still staged. */ + promotedAt?: string; + /** File size in bytes. Immutable after INSERT. */ + size: string; + /** File lifecycle status: requested (presigned URL generated, not yet in S3), uploaded (file in S3 and content validated, ready for use), processed (image resized, text extracted, embedding computed), rejected (declared type disagreed with the bytes), expired (bytes never arrived before the confirm window closed). */ + status?: FileStatus; + /** User-defined tags for categorization and search (mutable) */ + tags?: string[]; + updatedAt?: string; + /** Processed file reference (upload domain). Populated by processing jobs after file is uploaded. Copy this value to other tables to reference the file. */ + upload?: ConstructiveInternalTypeUpload; +} +export interface UploadFileBulkFileInput { + /** SHA-256 content hash (hex-encoded, 64 chars) */ + contentHash: string; + /** MIME type of the file */ + contentType: string; + /** Original filename (optional) */ + filename?: string; + /** Custom S3 key (only when bucket has allow_custom_keys=true) */ + key?: string; + /** File size in bytes */ + size: number; +} +export interface UploadPlatformFileBulkFileInput { + /** SHA-256 content hash (hex-encoded, 64 chars) */ + contentHash: string; + /** MIME type of the file */ + contentType: string; + /** Original filename (optional) */ + filename?: string; + /** Custom S3 key (only when bucket has allow_custom_keys=true) */ + key?: string; + /** File size in bytes */ + size: number; +} +/** A filter to be used against `Bucket` object types. All fields are combined with a logical ‘and.’ */ +export interface BucketFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `allowCustomKeys` field. */ + allowCustomKeys?: BooleanFilter; + /** Filter by the object’s `allowedMimeTypes` field. */ + allowedMimeTypes?: StringListFilter; + /** Filter by the object’s `allowedOrigins` field. */ + allowedOrigins?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: BucketFilter[]; + /** Filter by the object’s `bucketsByDestinationBucketId` relation. */ + bucketsByDestinationBucketId?: BucketToManyBucketFilter; + /** `bucketsByDestinationBucketId` exist. */ + bucketsByDestinationBucketIdExist?: boolean; + /** 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 `destinationBucket` relation. */ + destinationBucket?: BucketFilter; + /** A related `destinationBucket` exists. */ + destinationBucketExists?: boolean; + /** Filter by the object’s `destinationBucketId` field. */ + destinationBucketId?: UUIDFilter; + /** Filter by the object’s `files` relation. */ + files?: BucketToManyFileFilter; + /** `files` exist. */ + filesExist?: boolean; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isPublic` field. */ + isPublic?: BooleanFilter; + /** Filter by the object’s `key` field. */ + key?: StringFilter; + /** Filter by the object’s `maxFileSize` field. */ + maxFileSize?: BigIntFilter; + /** Negates the expression. */ + not?: BucketFilter; + /** Checks for any expressions in this list. */ + or?: BucketFilter[]; + /** Filter by the object’s `physicalName` field. */ + physicalName?: StringFilter; + /** Filter by the object’s `stagingTtl` field. */ + stagingTtl?: IntervalFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Filter by the object’s `type` field. */ + type?: BucketTypeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} +/** A filter to be used against `File` object types. All fields are combined with a logical ‘and.’ */ +export interface FileFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: FileFilter[]; + /** Filter by the object’s `bucket` relation. */ + bucket?: BucketFilter; + /** Filter by the object’s `bucketId` field. */ + bucketId?: UUIDFilter; + /** Filter by the object’s `contentHash` field. */ + contentHash?: 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 `expiryEnqueuedAt` field. */ + expiryEnqueuedAt?: DatetimeFilter; + /** Filter by the object’s `filename` field. */ + filename?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isPublic` field. */ + isPublic?: BooleanFilter; + /** Filter by the object’s `key` field. */ + key?: StringFilter; + /** Filter by the object’s `mimeType` field. */ + mimeType?: StringFilter; + /** Negates the expression. */ + not?: FileFilter; + /** Checks for any expressions in this list. */ + or?: FileFilter[]; + /** Filter by the object’s `promotedAt` field. */ + promotedAt?: DatetimeFilter; + /** Filter by the object’s `size` field. */ + size?: BigIntFilter; + /** Filter by the object’s `status` field. */ + status?: FileStatusFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `upload` field. */ + upload?: ConstructiveInternalTypeUploadFilter; +} +/** A filter to be used against `PlatformBucket` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformBucketFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `allowCustomKeys` field. */ + allowCustomKeys?: BooleanFilter; + /** Filter by the object’s `allowedMimeTypes` field. */ + allowedMimeTypes?: StringListFilter; + /** Filter by the object’s `allowedOrigins` field. */ + allowedOrigins?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: PlatformBucketFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `destinationBucket` relation. */ + destinationBucket?: PlatformBucketFilter; + /** A related `destinationBucket` exists. */ + destinationBucketExists?: boolean; + /** Filter by the object’s `destinationBucketId` field. */ + destinationBucketId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isPublic` field. */ + isPublic?: BooleanFilter; + /** Filter by the object’s `key` field. */ + key?: StringFilter; + /** Filter by the object’s `maxFileSize` field. */ + maxFileSize?: BigIntFilter; + /** Negates the expression. */ + not?: PlatformBucketFilter; + /** Checks for any expressions in this list. */ + or?: PlatformBucketFilter[]; + /** Filter by the object’s `physicalName` field. */ + physicalName?: StringFilter; + /** Filter by the object’s `platformBucketsByDestinationBucketId` relation. */ + platformBucketsByDestinationBucketId?: PlatformBucketToManyPlatformBucketFilter; + /** `platformBucketsByDestinationBucketId` exist. */ + platformBucketsByDestinationBucketIdExist?: boolean; + /** Filter by the object’s `platformFilesByBucketId` relation. */ + platformFilesByBucketId?: PlatformBucketToManyPlatformFileFilter; + /** `platformFilesByBucketId` exist. */ + platformFilesByBucketIdExist?: boolean; + /** Filter by the object’s `stagingTtl` field. */ + stagingTtl?: IntervalFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Filter by the object’s `type` field. */ + type?: BucketTypeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} +/** A filter to be used against `PlatformFile` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformFileFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: PlatformFileFilter[]; + /** Filter by the object’s `bucket` relation. */ + bucket?: PlatformBucketFilter; + /** Filter by the object’s `bucketId` field. */ + bucketId?: UUIDFilter; + /** Filter by the object’s `contentHash` field. */ + contentHash?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `expiryEnqueuedAt` field. */ + expiryEnqueuedAt?: DatetimeFilter; + /** Filter by the object’s `filename` field. */ + filename?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isPublic` field. */ + isPublic?: BooleanFilter; + /** Filter by the object’s `key` field. */ + key?: StringFilter; + /** Filter by the object’s `mimeType` field. */ + mimeType?: StringFilter; + /** Negates the expression. */ + not?: PlatformFileFilter; + /** Checks for any expressions in this list. */ + or?: PlatformFileFilter[]; + /** Filter by the object’s `promotedAt` field. */ + promotedAt?: DatetimeFilter; + /** Filter by the object’s `size` field. */ + size?: BigIntFilter; + /** Filter by the object’s `status` field. */ + status?: FileStatusFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `upload` field. */ + upload?: ConstructiveInternalTypeUploadFilter; +} +/** 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 String List fields. All fields are combined with a logical ‘and.’ */ +export interface StringListFilter { + /** Any array item is equal to the specified value. */ + anyEqualTo?: string; + /** Any array item is greater than the specified value. */ + anyGreaterThan?: string; + /** Any array item is greater than or equal to the specified value. */ + anyGreaterThanOrEqualTo?: string; + /** Any array item is less than the specified value. */ + anyLessThan?: string; + /** Any array item is less than or equal to the specified value. */ + anyLessThanOrEqualTo?: string; + /** Any array item is not equal to the specified value. */ + anyNotEqualTo?: string; + /** Contained by the specified list of values. */ + containedBy?: string[]; + /** Contains the specified list of values. */ + contains?: string[]; + /** 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[]; + /** 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[]; + /** Overlaps the specified list of values. */ + overlaps?: string[]; +} +/** 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 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 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. */ + 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[]; +} +// ============ Payload/Return Types (for custom operations) ============ +export interface FilesRenamePayload { + clientMutationId?: string | null; + fileEdge?: FileEdge | null; + result?: File | null; +} +export type FilesRenamePayloadSelect = { + clientMutationId?: boolean; + fileEdge?: { + select: FileEdgeSelect; + }; + result?: { + select: FileSelect; + }; +}; +export interface PlatformFilesRenamePayload { + clientMutationId?: string | null; + platformFileEdge?: PlatformFileEdge | null; + result?: PlatformFile | null; +} +export type PlatformFilesRenamePayloadSelect = { + clientMutationId?: boolean; + platformFileEdge?: { + select: PlatformFileEdgeSelect; + }; + result?: { + select: PlatformFileSelect; + }; +}; +export interface ProvisionBucketPayload { + /** The logical bucket row that was queued for reconciliation. */ + bucketId: string; + bucketKey: string; + /** The reconciler job enqueued to provision this bucket. */ + jobId: string; + /** The physical bucket name already recorded, or null when reconciliation has not completed. */ + physicalName?: string | null; +} +export type ProvisionBucketPayloadSelect = { + bucketId?: boolean; + bucketKey?: boolean; + jobId?: boolean; + physicalName?: boolean; +}; +export interface UploadFilePayload { + /** Whether this file was deduplicated (content already exists) */ + deduplicated: boolean; + /** Presigned URL expiry time (null if deduplicated) */ + expiresAt?: string | null; + /** The projection document for the created file: {id, key, bucket_id, mime, size, filename, url?}. Store this verbatim in an image/upload column — its `id` is what keeps the object from being garbage collected while the column still references it. */ + file?: Record | null; + /** The file ID (UUID) */ + fileId: string; + /** The S3 object key */ + key: string; + /** ID of the previous version (when using custom keys) */ + previousVersionId?: string | null; + /** Presigned PUT URL (null if deduplicated) */ + uploadUrl?: string | null; +} +export type UploadFilePayloadSelect = { + deduplicated?: boolean; + expiresAt?: boolean; + file?: boolean; + fileId?: boolean; + key?: boolean; + previousVersionId?: boolean; + uploadUrl?: boolean; +}; +export interface UploadFileBulkPayload { + files: UploadFileBulkFilePayload[]; +} +export type UploadFileBulkPayloadSelect = { + files?: { + select: UploadFileBulkFilePayloadSelect; + }; +}; +export interface UploadPlatformFilePayload { + /** Whether this file was deduplicated (content already exists) */ + deduplicated: boolean; + /** Presigned URL expiry time (null if deduplicated) */ + expiresAt?: string | null; + /** The projection document for the created file: {id, key, bucket_id, mime, size, filename, url?}. Store this verbatim in an image/upload column — its `id` is what keeps the object from being garbage collected while the column still references it. */ + file?: Record | null; + /** The file ID (UUID) */ + fileId: string; + /** The S3 object key */ + key: string; + /** ID of the previous version (when using custom keys) */ + previousVersionId?: string | null; + /** Presigned PUT URL (null if deduplicated) */ + uploadUrl?: string | null; +} +export type UploadPlatformFilePayloadSelect = { + deduplicated?: boolean; + expiresAt?: boolean; + file?: boolean; + fileId?: boolean; + key?: boolean; + previousVersionId?: boolean; + uploadUrl?: boolean; +}; +export interface UploadPlatformFileBulkPayload { + files: UploadPlatformFileBulkFilePayload[]; +} +export type UploadPlatformFileBulkPayloadSelect = { + files?: { + select: UploadPlatformFileBulkFilePayloadSelect; + }; +}; +export interface CreateBucketPayload { + /** The `Bucket` that was created by this mutation. */ + bucket?: Bucket | null; + bucketEdge?: BucketEdge | null; + clientMutationId?: string | null; +} +export type CreateBucketPayloadSelect = { + bucket?: { + select: BucketSelect; + }; + bucketEdge?: { + select: BucketEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface UpdateBucketPayload { + /** The `Bucket` that was updated by this mutation. */ + bucket?: Bucket | null; + bucketEdge?: BucketEdge | null; + clientMutationId?: string | null; +} +export type UpdateBucketPayloadSelect = { + bucket?: { + select: BucketSelect; + }; + bucketEdge?: { + select: BucketEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface DeleteBucketPayload { + /** The `Bucket` that was deleted by this mutation. */ + bucket?: Bucket | null; + bucketEdge?: BucketEdge | null; + clientMutationId?: string | null; +} +export type DeleteBucketPayloadSelect = { + bucket?: { + select: BucketSelect; + }; + bucketEdge?: { + select: BucketEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface CreateFilePayload { + clientMutationId?: string | null; + /** The `File` that was created by this mutation. */ + file?: File | null; + fileEdge?: FileEdge | null; +} +export type CreateFilePayloadSelect = { + clientMutationId?: boolean; + file?: { + select: FileSelect; + }; + fileEdge?: { + select: FileEdgeSelect; + }; +}; +export interface UpdateFilePayload { + clientMutationId?: string | null; + /** The `File` that was updated by this mutation. */ + file?: File | null; + fileEdge?: FileEdge | null; +} +export type UpdateFilePayloadSelect = { + clientMutationId?: boolean; + file?: { + select: FileSelect; + }; + fileEdge?: { + select: FileEdgeSelect; + }; +}; +export interface DeleteFilePayload { + clientMutationId?: string | null; + /** The `File` that was deleted by this mutation. */ + file?: File | null; + fileEdge?: FileEdge | null; +} +export type DeleteFilePayloadSelect = { + clientMutationId?: boolean; + file?: { + select: FileSelect; + }; + fileEdge?: { + select: FileEdgeSelect; + }; +}; +export interface CreatePlatformBucketPayload { + clientMutationId?: string | null; + /** The `PlatformBucket` that was created by this mutation. */ + platformBucket?: PlatformBucket | null; + platformBucketEdge?: PlatformBucketEdge | null; +} +export type CreatePlatformBucketPayloadSelect = { + clientMutationId?: boolean; + platformBucket?: { + select: PlatformBucketSelect; + }; + platformBucketEdge?: { + select: PlatformBucketEdgeSelect; + }; +}; +export interface UpdatePlatformBucketPayload { + clientMutationId?: string | null; + /** The `PlatformBucket` that was updated by this mutation. */ + platformBucket?: PlatformBucket | null; + platformBucketEdge?: PlatformBucketEdge | null; +} +export type UpdatePlatformBucketPayloadSelect = { + clientMutationId?: boolean; + platformBucket?: { + select: PlatformBucketSelect; + }; + platformBucketEdge?: { + select: PlatformBucketEdgeSelect; + }; +}; +export interface DeletePlatformBucketPayload { + clientMutationId?: string | null; + /** The `PlatformBucket` that was deleted by this mutation. */ + platformBucket?: PlatformBucket | null; + platformBucketEdge?: PlatformBucketEdge | null; +} +export type DeletePlatformBucketPayloadSelect = { + clientMutationId?: boolean; + platformBucket?: { + select: PlatformBucketSelect; + }; + platformBucketEdge?: { + select: PlatformBucketEdgeSelect; + }; +}; +export interface CreatePlatformFilePayload { + clientMutationId?: string | null; + /** The `PlatformFile` that was created by this mutation. */ + platformFile?: PlatformFile | null; + platformFileEdge?: PlatformFileEdge | null; +} +export type CreatePlatformFilePayloadSelect = { + clientMutationId?: boolean; + platformFile?: { + select: PlatformFileSelect; + }; + platformFileEdge?: { + select: PlatformFileEdgeSelect; + }; +}; +export interface UpdatePlatformFilePayload { + clientMutationId?: string | null; + /** The `PlatformFile` that was updated by this mutation. */ + platformFile?: PlatformFile | null; + platformFileEdge?: PlatformFileEdge | null; +} +export type UpdatePlatformFilePayloadSelect = { + clientMutationId?: boolean; + platformFile?: { + select: PlatformFileSelect; + }; + platformFileEdge?: { + select: PlatformFileEdgeSelect; + }; +}; +export interface DeletePlatformFilePayload { + clientMutationId?: string | null; + /** The `PlatformFile` that was deleted by this mutation. */ + platformFile?: PlatformFile | null; + platformFileEdge?: PlatformFileEdge | null; +} +export type DeletePlatformFilePayloadSelect = { + clientMutationId?: boolean; + platformFile?: { + select: PlatformFileSelect; + }; + platformFileEdge?: { + select: PlatformFileEdgeSelect; + }; +}; +/** A `File` edge in the connection. */ +export interface FileEdge { + cursor?: string | null; + /** The `File` at the end of the edge. */ + node?: File | null; +} +export type FileEdgeSelect = { + cursor?: boolean; + node?: { + select: FileSelect; + }; +}; +/** A `PlatformFile` edge in the connection. */ +export interface PlatformFileEdge { + cursor?: string | null; + /** The `PlatformFile` at the end of the edge. */ + node?: PlatformFile | null; +} +export type PlatformFileEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformFileSelect; + }; +}; +export interface UploadFileBulkFilePayload { + deduplicated: boolean; + expiresAt?: string | null; + /** The projection document for the created file. */ + file?: Record | null; + fileId: string; + key: string; + previousVersionId?: string | null; + uploadUrl?: string | null; +} +export type UploadFileBulkFilePayloadSelect = { + deduplicated?: boolean; + expiresAt?: boolean; + file?: boolean; + fileId?: boolean; + key?: boolean; + previousVersionId?: boolean; + uploadUrl?: boolean; +}; +export interface UploadPlatformFileBulkFilePayload { + deduplicated: boolean; + expiresAt?: string | null; + /** The projection document for the created file. */ + file?: Record | null; + fileId: string; + key: string; + previousVersionId?: string | null; + uploadUrl?: string | null; +} +export type UploadPlatformFileBulkFilePayloadSelect = { + deduplicated?: boolean; + expiresAt?: boolean; + file?: boolean; + fileId?: boolean; + key?: boolean; + previousVersionId?: boolean; + uploadUrl?: boolean; +}; +/** A `Bucket` edge in the connection. */ +export interface BucketEdge { + cursor?: string | null; + /** The `Bucket` at the end of the edge. */ + node?: Bucket | null; +} +export type BucketEdgeSelect = { + cursor?: boolean; + node?: { + select: BucketSelect; + }; +}; +/** A `PlatformBucket` edge in the connection. */ +export interface PlatformBucketEdge { + cursor?: string | null; + /** The `PlatformBucket` at the end of the edge. */ + node?: PlatformBucket | null; +} +export type PlatformBucketEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformBucketSelect; + }; +}; diff --git a/sdk/constructive-sdk/src/storage/orm/models/bucket.ts b/sdk/constructive-sdk/src/storage/orm/models/bucket.ts new file mode 100644 index 0000000000..61b1585820 --- /dev/null +++ b/sdk/constructive-sdk/src/storage/orm/models/bucket.ts @@ -0,0 +1,245 @@ +/** + * Bucket 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 { + Bucket, + BucketWithRelations, + BucketSelect, + BucketFilter, + BucketOrderBy, + CreateBucketInput, + UpdateBucketInput, + BucketPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class BucketModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + buckets: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'Bucket', + 'buckets', + 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, + }, + 'BucketFilter', + 'BucketOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Bucket', + fieldName: 'buckets', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + bucket: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'Bucket', + 'buckets', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'BucketFilter', + 'BucketOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Bucket', + fieldName: 'bucket', + document, + variables, + transform: (data: { + buckets?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + bucket: data.buckets?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + bucket: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'Bucket', + 'buckets', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'BucketFilter', + 'BucketOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Bucket', + fieldName: 'bucket', + document, + variables, + transform: (data: { + buckets?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + bucket: data.buckets?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createBucket: { + bucket: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'Bucket', + 'createBucket', + 'bucket', + args.select, + args.data, + 'CreateBucketInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Bucket', + fieldName: 'createBucket', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + BucketPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateBucket: { + bucket: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'Bucket', + 'updateBucket', + 'bucket', + args.select, + args.where.id, + args.data, + 'UpdateBucketInput', + 'id', + 'bucketPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Bucket', + fieldName: 'updateBucket', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteBucket: { + bucket: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'Bucket', + 'deleteBucket', + 'bucket', + { + id: args.where.id, + }, + 'DeleteBucketInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Bucket', + fieldName: 'deleteBucket', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/storage/orm/models/file.ts b/sdk/constructive-sdk/src/storage/orm/models/file.ts new file mode 100644 index 0000000000..a2d0e48ee3 --- /dev/null +++ b/sdk/constructive-sdk/src/storage/orm/models/file.ts @@ -0,0 +1,245 @@ +/** + * File 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 { + File, + FileWithRelations, + FileSelect, + FileFilter, + FileOrderBy, + CreateFileInput, + UpdateFileInput, + FilePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class FileModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + files: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'File', + 'files', + 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, + }, + 'FileFilter', + 'FileOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'File', + fieldName: 'files', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + file: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'File', + 'files', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'FileFilter', + 'FileOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'File', + fieldName: 'file', + document, + variables, + transform: (data: { + files?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + file: data.files?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + file: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'File', + 'files', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'FileFilter', + 'FileOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'File', + fieldName: 'file', + document, + variables, + transform: (data: { + files?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + file: data.files?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createFile: { + file: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'File', + 'createFile', + 'file', + args.select, + args.data, + 'CreateFileInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'File', + fieldName: 'createFile', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + FilePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateFile: { + file: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'File', + 'updateFile', + 'file', + args.select, + args.where.id, + args.data, + 'UpdateFileInput', + 'id', + 'filePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'File', + fieldName: 'updateFile', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteFile: { + file: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'File', + 'deleteFile', + 'file', + { + id: args.where.id, + }, + 'DeleteFileInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'File', + fieldName: 'deleteFile', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/storage/orm/models/index.ts b/sdk/constructive-sdk/src/storage/orm/models/index.ts new file mode 100644 index 0000000000..947038839d --- /dev/null +++ b/sdk/constructive-sdk/src/storage/orm/models/index.ts @@ -0,0 +1,9 @@ +/** + * Models barrel export + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +export { BucketModel } from './bucket'; +export { FileModel } from './file'; +export { PlatformBucketModel } from './platformBucket'; +export { PlatformFileModel } from './platformFile'; diff --git a/sdk/constructive-sdk/src/storage/orm/models/platformBucket.ts b/sdk/constructive-sdk/src/storage/orm/models/platformBucket.ts new file mode 100644 index 0000000000..3ffe7d5bda --- /dev/null +++ b/sdk/constructive-sdk/src/storage/orm/models/platformBucket.ts @@ -0,0 +1,245 @@ +/** + * PlatformBucket 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 { + PlatformBucket, + PlatformBucketWithRelations, + PlatformBucketSelect, + PlatformBucketFilter, + PlatformBucketOrderBy, + CreatePlatformBucketInput, + UpdatePlatformBucketInput, + PlatformBucketPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformBucketModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformBuckets: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformBucket', + 'platformBuckets', + 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, + }, + 'PlatformBucketFilter', + 'PlatformBucketOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformBucket', + fieldName: 'platformBuckets', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformBucket: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformBucket', + 'platformBuckets', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformBucketFilter', + 'PlatformBucketOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformBucket', + fieldName: 'platformBucket', + document, + variables, + transform: (data: { + platformBuckets?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformBucket: data.platformBuckets?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformBucket: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformBucket', + 'platformBuckets', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformBucketFilter', + 'PlatformBucketOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformBucket', + fieldName: 'platformBucket', + document, + variables, + transform: (data: { + platformBuckets?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformBucket: data.platformBuckets?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformBucket: { + platformBucket: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformBucket', + 'createPlatformBucket', + 'platformBucket', + args.select, + args.data, + 'CreatePlatformBucketInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformBucket', + fieldName: 'createPlatformBucket', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformBucketPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformBucket: { + platformBucket: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformBucket', + 'updatePlatformBucket', + 'platformBucket', + args.select, + args.where.id, + args.data, + 'UpdatePlatformBucketInput', + 'id', + 'platformBucketPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformBucket', + fieldName: 'updatePlatformBucket', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformBucket: { + platformBucket: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformBucket', + 'deletePlatformBucket', + 'platformBucket', + { + id: args.where.id, + }, + 'DeletePlatformBucketInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformBucket', + fieldName: 'deletePlatformBucket', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/storage/orm/models/platformFile.ts b/sdk/constructive-sdk/src/storage/orm/models/platformFile.ts new file mode 100644 index 0000000000..bfc7890e99 --- /dev/null +++ b/sdk/constructive-sdk/src/storage/orm/models/platformFile.ts @@ -0,0 +1,245 @@ +/** + * PlatformFile 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 { + PlatformFile, + PlatformFileWithRelations, + PlatformFileSelect, + PlatformFileFilter, + PlatformFileOrderBy, + CreatePlatformFileInput, + UpdatePlatformFileInput, + PlatformFilePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformFileModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformFiles: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformFile', + 'platformFiles', + 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, + }, + 'PlatformFileFilter', + 'PlatformFileOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformFile', + fieldName: 'platformFiles', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformFile: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformFile', + 'platformFiles', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformFileFilter', + 'PlatformFileOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformFile', + fieldName: 'platformFile', + document, + variables, + transform: (data: { + platformFiles?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformFile: data.platformFiles?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformFile: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformFile', + 'platformFiles', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformFileFilter', + 'PlatformFileOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformFile', + fieldName: 'platformFile', + document, + variables, + transform: (data: { + platformFiles?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformFile: data.platformFiles?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformFile: { + platformFile: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformFile', + 'createPlatformFile', + 'platformFile', + args.select, + args.data, + 'CreatePlatformFileInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformFile', + fieldName: 'createPlatformFile', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformFilePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformFile: { + platformFile: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformFile', + 'updatePlatformFile', + 'platformFile', + args.select, + args.where.id, + args.data, + 'UpdatePlatformFileInput', + 'id', + 'platformFilePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformFile', + fieldName: 'updatePlatformFile', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformFile: { + platformFile: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformFile', + 'deletePlatformFile', + 'platformFile', + { + id: args.where.id, + }, + 'DeletePlatformFileInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformFile', + fieldName: 'deletePlatformFile', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/storage/orm/mutation/index.ts b/sdk/constructive-sdk/src/storage/orm/mutation/index.ts new file mode 100644 index 0000000000..2b8d61faf3 --- /dev/null +++ b/sdk/constructive-sdk/src/storage/orm/mutation/index.ts @@ -0,0 +1,284 @@ +/** + * Custom mutation 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 type { + FilesRenameInput, + PlatformFilesRenameInput, + ProvisionBucketInput, + UploadFileInput, + UploadFileBulkInput, + UploadPlatformFileInput, + UploadPlatformFileBulkInput, + FilesRenamePayload, + PlatformFilesRenamePayload, + ProvisionBucketPayload, + UploadFilePayload, + UploadFileBulkPayload, + UploadPlatformFilePayload, + UploadPlatformFileBulkPayload, + FilesRenamePayloadSelect, + PlatformFilesRenamePayloadSelect, + ProvisionBucketPayloadSelect, + UploadFilePayloadSelect, + UploadFileBulkPayloadSelect, + UploadPlatformFilePayloadSelect, + UploadPlatformFileBulkPayloadSelect, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export interface FilesRenameVariables { + input: FilesRenameInput; +} +export interface PlatformFilesRenameVariables { + input: PlatformFilesRenameInput; +} +/** + * Variables for provisionBucket + * Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. + */ +export interface ProvisionBucketVariables { + input: ProvisionBucketInput; +} +/** + * Variables for uploadFile + * Upload a file: resolves the bucket by key, creates the file row, and returns a presigned PUT URL. + */ +export interface UploadFileVariables { + input: UploadFileInput; +} +/** + * Variables for uploadFiles + * Upload multiple files: resolves the bucket by key, creates file rows, and returns presigned PUT URLs for each. + */ +export interface UploadFilesVariables { + input: UploadFileBulkInput; +} +/** + * Variables for uploadPlatformFile + * Upload a file: resolves the bucket by key, creates the file row, and returns a presigned PUT URL. + */ +export interface UploadPlatformFileVariables { + input: UploadPlatformFileInput; +} +/** + * Variables for uploadPlatformFiles + * Upload multiple files: resolves the bucket by key, creates file rows, and returns presigned PUT URLs for each. + */ +export interface UploadPlatformFilesVariables { + input: UploadPlatformFileBulkInput; +} +export function createMutationOperations(client: OrmClient) { + return { + filesRename: ( + args: FilesRenameVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + filesRename: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'FilesRename', + fieldName: 'filesRename', + ...buildCustomDocument( + 'mutation', + 'FilesRename', + 'filesRename', + options.select, + args, + [ + { + name: 'input', + type: 'FilesRenameInput!', + }, + ], + connectionFieldsMap, + 'FilesRenamePayload' + ), + }), + platformFilesRename: ( + args: PlatformFilesRenameVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + platformFilesRename: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'PlatformFilesRename', + fieldName: 'platformFilesRename', + ...buildCustomDocument( + 'mutation', + 'PlatformFilesRename', + 'platformFilesRename', + options.select, + args, + [ + { + name: 'input', + type: 'PlatformFilesRenameInput!', + }, + ], + connectionFieldsMap, + 'PlatformFilesRenamePayload' + ), + }), + provisionBucket: ( + args: ProvisionBucketVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + provisionBucket: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'ProvisionBucket', + fieldName: 'provisionBucket', + ...buildCustomDocument( + 'mutation', + 'ProvisionBucket', + 'provisionBucket', + options.select, + args, + [ + { + name: 'input', + type: 'ProvisionBucketInput!', + }, + ], + connectionFieldsMap, + 'ProvisionBucketPayload' + ), + }), + uploadFile: ( + args: UploadFileVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + uploadFile: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'UploadFile', + fieldName: 'uploadFile', + ...buildCustomDocument( + 'mutation', + 'UploadFile', + 'uploadFile', + options.select, + args, + [ + { + name: 'input', + type: 'UploadFileInput!', + }, + ], + connectionFieldsMap, + 'UploadFilePayload' + ), + }), + uploadFiles: ( + args: UploadFilesVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + uploadFiles: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'UploadFiles', + fieldName: 'uploadFiles', + ...buildCustomDocument( + 'mutation', + 'UploadFiles', + 'uploadFiles', + options.select, + args, + [ + { + name: 'input', + type: 'UploadFileBulkInput!', + }, + ], + connectionFieldsMap, + 'UploadFileBulkPayload' + ), + }), + uploadPlatformFile: ( + args: UploadPlatformFileVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + uploadPlatformFile: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'UploadPlatformFile', + fieldName: 'uploadPlatformFile', + ...buildCustomDocument( + 'mutation', + 'UploadPlatformFile', + 'uploadPlatformFile', + options.select, + args, + [ + { + name: 'input', + type: 'UploadPlatformFileInput!', + }, + ], + connectionFieldsMap, + 'UploadPlatformFilePayload' + ), + }), + uploadPlatformFiles: ( + args: UploadPlatformFilesVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + uploadPlatformFiles: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'UploadPlatformFiles', + fieldName: 'uploadPlatformFiles', + ...buildCustomDocument( + 'mutation', + 'UploadPlatformFiles', + 'uploadPlatformFiles', + options.select, + args, + [ + { + name: 'input', + type: 'UploadPlatformFileBulkInput!', + }, + ], + connectionFieldsMap, + 'UploadPlatformFileBulkPayload' + ), + }), + }; +} diff --git a/sdk/constructive-sdk/src/storage/orm/query-builder.ts b/sdk/constructive-sdk/src/storage/orm/query-builder.ts new file mode 100644 index 0000000000..fd785bbae6 --- /dev/null +++ b/sdk/constructive-sdk/src/storage/orm/query-builder.ts @@ -0,0 +1,1047 @@ +/** + * Query Builder - Builds and executes GraphQL operations + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { parseType, print } from '@constructive-io/graphql-query/runtime'; +import * as t from 'gql-ast'; +import type { ArgumentNode, EnumValueNode, FieldNode, VariableDefinitionNode } from 'graphql'; + +import { GraphQLRequestError, OrmClient, QueryResult } from './client'; + +export interface QueryBuilderConfig { + client: OrmClient; + operation: 'query' | 'mutation'; + operationName: string; + fieldName: string; + document: string; + variables?: Record; + transform?: (data: any) => TResult; +} + +export class QueryBuilder { + private config: QueryBuilderConfig; + + constructor(config: QueryBuilderConfig) { + this.config = config; + } + + /** + * Execute the query and return a discriminated union result + * Use result.ok to check success, or .unwrap() to throw on error + */ + async execute(): Promise> { + const rawResult = await this.config.client.execute( + this.config.document, + this.config.variables + ); + if (!rawResult.ok) { + return rawResult; + } + if (!this.config.transform) { + return rawResult as unknown as QueryResult; + } + return { + ok: true, + data: this.config.transform(rawResult.data), + errors: undefined, + }; + } + + /** + * Execute and unwrap the result, throwing GraphQLRequestError on failure + * @throws {GraphQLRequestError} If the query returns errors + */ + async unwrap(): Promise { + const result = await this.execute(); + if (!result.ok) { + throw new GraphQLRequestError(result.errors, result.data); + } + return result.data; + } + + /** + * Execute and unwrap, returning defaultValue on error instead of throwing + */ + async unwrapOr(defaultValue: D): Promise { + const result = await this.execute(); + if (!result.ok) { + return defaultValue; + } + return result.data; + } + + /** + * Execute and unwrap, calling onError callback on failure + */ + async unwrapOrElse( + onError: (errors: import('./client').GraphQLError[]) => D + ): Promise { + const result = await this.execute(); + if (!result.ok) { + return onError(result.errors); + } + return result.data; + } + + toGraphQL(): string { + return this.config.document; + } + + getVariables(): Record | undefined { + return this.config.variables; + } +} + +const OP_QUERY = 'query' as unknown as import('graphql').OperationTypeNode; +const OP_MUTATION = 'mutation' as unknown as import('graphql').OperationTypeNode; +const ENUM_VALUE_KIND = 'EnumValue' as unknown as EnumValueNode['kind']; + +// ============================================================================ +// Selection Builders +// ============================================================================ + +export function buildSelections( + select: Record | undefined, + connectionFieldsMap?: Record>, + entityType?: string +): FieldNode[] { + if (!select) { + return []; + } + + const fields: FieldNode[] = []; + const entityConnections = entityType ? connectionFieldsMap?.[entityType] : undefined; + + for (const [key, value] of Object.entries(select)) { + if (value === false || value === undefined) { + continue; + } + + if (value === true) { + fields.push(t.field({ name: key })); + continue; + } + + if (typeof value === 'object' && value !== null) { + const nested = value as { + select?: Record; + args?: Record; + first?: number; + filter?: Record; + orderBy?: string[]; + connection?: boolean; + }; + + // Field with arguments (e.g. requestUploadUrl on bucket types) + if (nested.args && typeof nested.args === 'object') { + const fieldArgs = Object.entries(nested.args).map(([argName, argValue]) => + t.argument({ name: argName, value: buildValueAst(argValue) }) + ); + const nestedSelect = nested.select; + if (nestedSelect && typeof nestedSelect === 'object') { + const subSelections = Object.entries(nestedSelect) + .filter(([, v]) => v) + .map(([name]) => t.field({ name })); + fields.push( + t.field({ + name: key, + args: fieldArgs.length ? fieldArgs : undefined, + selectionSet: subSelections.length + ? t.selectionSet({ selections: subSelections }) + : undefined, + }) + ); + } else { + fields.push( + t.field({ + name: key, + args: fieldArgs.length ? fieldArgs : undefined, + }) + ); + } + continue; + } + + if (!nested.select || typeof nested.select !== 'object') { + throw new Error( + `Invalid selection for field "${key}": nested selections must include a "select" object.` + ); + } + + const relatedEntityType = entityConnections?.[key]; + const nestedSelections = buildSelections( + nested.select, + connectionFieldsMap, + relatedEntityType + ); + const isConnection = + nested.connection === true || + nested.first !== undefined || + nested.filter !== undefined || + relatedEntityType !== undefined; + const args = buildArgs([ + buildOptionalArg('first', nested.first), + nested.filter + ? t.argument({ + name: 'filter', + value: buildValueAst(nested.filter), + }) + : null, + buildEnumListArg('orderBy', nested.orderBy), + ]); + + if (isConnection) { + fields.push( + t.field({ + name: key, + args, + selectionSet: t.selectionSet({ + selections: buildConnectionSelections(nestedSelections), + }), + }) + ); + } else { + fields.push( + t.field({ + name: key, + args, + selectionSet: t.selectionSet({ selections: nestedSelections }), + }) + ); + } + } + } + + return fields; +} + +// ============================================================================ +// Document Builders +// ============================================================================ + +export function buildFindManyDocument( + operationName: string, + queryField: string, + select: TSelect, + args: { + where?: TWhere; + orderBy?: string[]; + first?: number; + last?: number; + after?: string; + before?: string; + offset?: number; + }, + filterTypeName: string, + orderByTypeName: string, + connectionFieldsMap?: Record> +): { document: string; variables: Record } { + const selections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + const variableDefinitions: VariableDefinitionNode[] = []; + const queryArgs: ArgumentNode[] = []; + const variables: Record = {}; + + addVariable( + { + varName: 'where', + typeName: filterTypeName, + value: args.where, + }, + variableDefinitions, + queryArgs, + variables + ); + addVariable( + { + varName: 'orderBy', + typeName: '[' + orderByTypeName + '!]', + value: args.orderBy?.length ? args.orderBy : undefined, + }, + variableDefinitions, + queryArgs, + variables + ); + addVariable( + { varName: 'first', typeName: 'Int', value: args.first }, + variableDefinitions, + queryArgs, + variables + ); + addVariable( + { varName: 'last', typeName: 'Int', value: args.last }, + variableDefinitions, + queryArgs, + variables + ); + addVariable( + { varName: 'after', typeName: 'Cursor', value: args.after }, + variableDefinitions, + queryArgs, + variables + ); + addVariable( + { varName: 'before', typeName: 'Cursor', value: args.before }, + variableDefinitions, + queryArgs, + variables + ); + addVariable( + { varName: 'offset', typeName: 'Int', value: args.offset }, + variableDefinitions, + queryArgs, + variables + ); + + const document = t.document({ + definitions: [ + t.operationDefinition({ + operation: OP_QUERY, + name: operationName + 'Query', + variableDefinitions: variableDefinitions.length ? variableDefinitions : undefined, + selectionSet: t.selectionSet({ + selections: [ + t.field({ + name: queryField, + args: queryArgs.length ? queryArgs : undefined, + selectionSet: t.selectionSet({ + selections: buildConnectionSelections(selections), + }), + }), + ], + }), + }), + ], + }); + + return { document: print(document), variables }; +} + +export function buildFindFirstDocument( + operationName: string, + queryField: string, + select: TSelect, + args: { where?: TWhere; orderBy?: string[] }, + filterTypeName: string, + orderByTypeName: string, + connectionFieldsMap?: Record> +): { document: string; variables: Record } { + const selections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + const variableDefinitions: VariableDefinitionNode[] = []; + const queryArgs: ArgumentNode[] = []; + const variables: Record = {}; + + // Always add first: 1 for findFirst + addVariable( + { varName: 'first', typeName: 'Int', value: 1 }, + variableDefinitions, + queryArgs, + variables + ); + addVariable( + { + varName: 'where', + typeName: filterTypeName, + value: args.where, + }, + variableDefinitions, + queryArgs, + variables + ); + addVariable( + { + varName: 'orderBy', + typeName: '[' + orderByTypeName + '!]', + value: args.orderBy?.length ? args.orderBy : undefined, + }, + variableDefinitions, + queryArgs, + variables + ); + + const document = t.document({ + definitions: [ + t.operationDefinition({ + operation: OP_QUERY, + name: operationName + 'Query', + variableDefinitions, + selectionSet: t.selectionSet({ + selections: [ + t.field({ + name: queryField, + args: queryArgs, + selectionSet: t.selectionSet({ + selections: [ + t.field({ + name: 'nodes', + selectionSet: t.selectionSet({ selections }), + }), + ], + }), + }), + ], + }), + }), + ], + }); + + return { document: print(document), variables }; +} + +export function buildCreateDocument( + operationName: string, + mutationField: string, + entityField: string, + select: TSelect, + data: TData, + inputTypeName: string, + connectionFieldsMap?: Record> +): { document: string; variables: Record } { + const selections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + return { + document: buildInputMutationDocument({ + operationName, + mutationField, + inputTypeName, + resultSelections: [ + t.field({ + name: entityField, + selectionSet: t.selectionSet({ selections }), + }), + ], + }), + variables: { + input: { + [entityField]: data, + }, + }, + }; +} + +export function buildUpdateDocument( + operationName: string, + mutationField: string, + entityField: string, + select: TSelect, + where: TWhere, + data: TData, + inputTypeName: string, + patchFieldName: string, + connectionFieldsMap?: Record> +): { document: string; variables: Record } { + const selections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + return { + document: buildInputMutationDocument({ + operationName, + mutationField, + inputTypeName, + resultSelections: [ + t.field({ + name: entityField, + selectionSet: t.selectionSet({ selections }), + }), + ], + }), + variables: { + input: { + id: where.id, + [patchFieldName]: data, + }, + }, + }; +} + +export function buildUpdateByPkDocument( + operationName: string, + mutationField: string, + entityField: string, + select: TSelect, + id: string | number, + data: TData, + inputTypeName: string, + idFieldName: string, + patchFieldName: string, + connectionFieldsMap?: Record>, + extraKeys?: Record +): { document: string; variables: Record } { + const selections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + return { + document: buildInputMutationDocument({ + operationName, + mutationField, + inputTypeName, + resultSelections: [ + t.field({ + name: entityField, + selectionSet: t.selectionSet({ selections }), + }), + ], + }), + variables: { + input: { + [idFieldName]: id, + ...extraKeys, + [patchFieldName]: data, + }, + }, + }; +} + +export function buildFindOneDocument( + operationName: string, + queryField: string, + id: string | number, + select: TSelect, + idArgName: string, + idTypeName: string, + connectionFieldsMap?: Record> +): { document: string; variables: Record } { + const selections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + const variableDefinitions: VariableDefinitionNode[] = [ + t.variableDefinition({ + variable: t.variable({ name: idArgName }), + type: parseType(idTypeName), + }), + ]; + + const queryArgs: ArgumentNode[] = [ + t.argument({ + name: idArgName, + value: t.variable({ name: idArgName }), + }), + ]; + + const document = t.document({ + definitions: [ + t.operationDefinition({ + operation: OP_QUERY, + name: operationName + 'Query', + variableDefinitions, + selectionSet: t.selectionSet({ + selections: [ + t.field({ + name: queryField, + args: queryArgs, + selectionSet: t.selectionSet({ selections }), + }), + ], + }), + }), + ], + }); + + return { + document: print(document), + variables: { [idArgName]: id }, + }; +} + +export function buildDeleteDocument( + operationName: string, + mutationField: string, + entityField: string, + where: TWhere, + inputTypeName: string, + select?: TSelect, + connectionFieldsMap?: Record> +): { document: string; variables: Record } { + const entitySelections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + return { + document: buildInputMutationDocument({ + operationName, + mutationField, + inputTypeName, + resultSelections: [ + t.field({ + name: entityField, + selectionSet: t.selectionSet({ + selections: entitySelections, + }), + }), + ], + }), + variables: { + input: { + id: where.id, + }, + }, + }; +} + +export function buildDeleteByPkDocument( + operationName: string, + mutationField: string, + entityField: string, + keys: Record, + inputTypeName: string, + select?: TSelect, + connectionFieldsMap?: Record> +): { document: string; variables: Record } { + const entitySelections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + return { + document: buildInputMutationDocument({ + operationName, + mutationField, + inputTypeName, + resultSelections: [ + t.field({ + name: entityField, + selectionSet: t.selectionSet({ selections: entitySelections }), + }), + ], + }), + variables: { + input: keys, + }, + }; +} + +export function buildJunctionRemoveDocument( + operationName: string, + mutationField: string, + keys: Record, + inputTypeName: string +): { document: string; variables: Record } { + return { + document: buildInputMutationDocument({ + operationName, + mutationField, + inputTypeName, + resultSelections: [t.field({ name: 'clientMutationId' })], + }), + variables: { + input: keys, + }, + }; +} + +export function buildCustomDocument( + operationType: 'query' | 'mutation', + operationName: string, + fieldName: string, + select: TSelect, + args: TArgs, + variableDefinitions: Array<{ name: string; type: string }>, + connectionFieldsMap?: Record>, + entityType?: string +): { document: string; variables: Record } { + let actualSelect: TSelect = select; + let isConnection = false; + + if (isCustomSelectionWrapper(select)) { + actualSelect = select.select as TSelect; + isConnection = select.connection === true; + } + + const selections = actualSelect + ? buildSelections(actualSelect as Record, connectionFieldsMap, entityType) + : []; + + const variableDefs = variableDefinitions.map((definition) => + t.variableDefinition({ + variable: t.variable({ name: definition.name }), + type: parseType(definition.type), + }) + ); + const fieldArgs = variableDefinitions.map((definition) => + t.argument({ + name: definition.name, + value: t.variable({ name: definition.name }), + }) + ); + + const fieldSelections = isConnection ? buildConnectionSelections(selections) : selections; + + const document = t.document({ + definitions: [ + t.operationDefinition({ + operation: operationType === 'mutation' ? OP_MUTATION : OP_QUERY, + name: operationName, + variableDefinitions: variableDefs.length ? variableDefs : undefined, + selectionSet: t.selectionSet({ + selections: [ + t.field({ + name: fieldName, + args: fieldArgs.length ? fieldArgs : undefined, + selectionSet: fieldSelections.length + ? t.selectionSet({ selections: fieldSelections }) + : undefined, + }), + ], + }), + }), + ], + }); + + return { + document: print(document), + variables: (args ?? {}) as Record, + }; +} + +function isCustomSelectionWrapper( + value: unknown +): value is { select: Record; connection?: boolean } { + if (!value || typeof value !== 'object' || Array.isArray(value)) { + return false; + } + + const record = value as Record; + const keys = Object.keys(record); + + if (!keys.includes('select') || !keys.includes('connection')) { + return false; + } + + if (keys.some((key) => key !== 'select' && key !== 'connection')) { + return false; + } + + return !!record.select && typeof record.select === 'object' && !Array.isArray(record.select); +} + +// ============================================================================ +// Helper Functions +// ============================================================================ + +function buildArgs(args: Array): ArgumentNode[] { + return args.filter((arg): arg is ArgumentNode => arg !== null); +} + +function buildOptionalArg(name: string, value: number | string | undefined): ArgumentNode | null { + if (value === undefined) { + return null; + } + const valueNode = + typeof value === 'number' ? t.intValue({ value: value.toString() }) : t.stringValue({ value }); + return t.argument({ name, value: valueNode }); +} + +function buildEnumListArg(name: string, values: string[] | undefined): ArgumentNode | null { + if (!values || values.length === 0) { + return null; + } + return t.argument({ + name, + value: t.listValue({ + values: values.map((value) => buildEnumValue(value)), + }), + }); +} + +function buildEnumValue(value: string): EnumValueNode { + return { + kind: ENUM_VALUE_KIND, + value, + }; +} + +function buildPageInfoSelections(): FieldNode[] { + return [ + t.field({ name: 'hasNextPage' }), + t.field({ name: 'hasPreviousPage' }), + t.field({ name: 'startCursor' }), + t.field({ name: 'endCursor' }), + ]; +} + +function buildConnectionSelections(nodeSelections: FieldNode[]): FieldNode[] { + return [ + t.field({ + name: 'nodes', + selectionSet: t.selectionSet({ selections: nodeSelections }), + }), + t.field({ name: 'totalCount' }), + t.field({ + name: 'pageInfo', + selectionSet: t.selectionSet({ selections: buildPageInfoSelections() }), + }), + ]; +} + +interface VariableSpec { + varName: string; + argName?: string; + typeName?: string; + value: unknown; +} + +interface InputMutationConfig { + operationName: string; + mutationField: string; + inputTypeName: string; + resultSelections: FieldNode[]; +} + +function buildInputMutationDocument(config: InputMutationConfig): string { + const document = t.document({ + definitions: [ + t.operationDefinition({ + operation: OP_MUTATION, + name: config.operationName + 'Mutation', + variableDefinitions: [ + t.variableDefinition({ + variable: t.variable({ name: 'input' }), + type: parseType(config.inputTypeName + '!'), + }), + ], + selectionSet: t.selectionSet({ + selections: [ + t.field({ + name: config.mutationField, + args: [ + t.argument({ + name: 'input', + value: t.variable({ name: 'input' }), + }), + ], + selectionSet: t.selectionSet({ + selections: config.resultSelections, + }), + }), + ], + }), + }), + ], + }); + return print(document); +} + +function addVariable( + spec: VariableSpec, + definitions: VariableDefinitionNode[], + args: ArgumentNode[], + variables: Record +): void { + if (spec.value === undefined || !spec.typeName) return; + + definitions.push( + t.variableDefinition({ + variable: t.variable({ name: spec.varName }), + type: parseType(spec.typeName), + }) + ); + args.push( + t.argument({ + name: spec.argName ?? spec.varName, + value: t.variable({ name: spec.varName }), + }) + ); + variables[spec.varName] = spec.value; +} + +function buildValueAst( + value: unknown +): + | ReturnType + | ReturnType + | ReturnType + | ReturnType + | ReturnType + | ReturnType + | ReturnType + | EnumValueNode { + if (value === null) { + return t.nullValue(); + } + + if (typeof value === 'boolean') { + return t.booleanValue({ value }); + } + + if (typeof value === 'number') { + return Number.isInteger(value) + ? t.intValue({ value: value.toString() }) + : t.floatValue({ value: value.toString() }); + } + + if (typeof value === 'string') { + return t.stringValue({ value }); + } + + if (Array.isArray(value)) { + return t.listValue({ + values: value.map((item) => buildValueAst(item)), + }); + } + + if (typeof value === 'object' && value !== null) { + const obj = value as Record; + return t.objectValue({ + fields: Object.entries(obj).map(([key, val]) => + t.objectField({ + name: key, + value: buildValueAst(val), + }) + ), + }); + } + + throw new Error('Unsupported value type: ' + typeof value); +} + +// ============================================================================ +// Bulk Mutation Document Builders +// ============================================================================ + +export function buildBulkInsertDocument( + operationName: string, + mutationField: string, + select: TSelect, + data: TData[], + inputTypeName: string, + onConflict?: unknown, + connectionFieldsMap?: Record> +): { document: string; variables: Record } { + const selections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + return { + document: buildInputMutationDocument({ + operationName, + mutationField, + inputTypeName, + resultSelections: [ + t.field({ name: 'affectedCount' }), + t.field({ + name: 'returning', + selectionSet: t.selectionSet({ selections }), + }), + ], + }), + variables: { + input: { + values: data, + ...(onConflict ? { onConflict } : {}), + }, + }, + }; +} + +export function buildBulkUpsertDocument( + operationName: string, + mutationField: string, + select: TSelect, + data: TData[], + inputTypeName: string, + onConflict: unknown, + connectionFieldsMap?: Record> +): { document: string; variables: Record } { + const selections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + return { + document: buildInputMutationDocument({ + operationName, + mutationField, + inputTypeName, + resultSelections: [ + t.field({ name: 'affectedCount' }), + t.field({ + name: 'returning', + selectionSet: t.selectionSet({ selections }), + }), + ], + }), + variables: { + input: { + values: data, + onConflict, + }, + }, + }; +} + +export function buildBulkUpdateDocument( + operationName: string, + mutationField: string, + select: TSelect, + where: TWhere, + data: TData, + inputTypeName: string, + connectionFieldsMap?: Record> +): { document: string; variables: Record } { + const selections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + return { + document: buildInputMutationDocument({ + operationName, + mutationField, + inputTypeName, + resultSelections: [ + t.field({ name: 'affectedCount' }), + t.field({ + name: 'returning', + selectionSet: t.selectionSet({ selections }), + }), + ], + }), + variables: { + input: { + where, + patch: data, + }, + }, + }; +} + +export function buildBulkDeleteDocument( + operationName: string, + mutationField: string, + select: TSelect, + where: TWhere, + inputTypeName: string, + connectionFieldsMap?: Record> +): { document: string; variables: Record } { + const selections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + return { + document: buildInputMutationDocument({ + operationName, + mutationField, + inputTypeName, + resultSelections: [ + t.field({ name: 'affectedCount' }), + t.field({ + name: 'returning', + selectionSet: t.selectionSet({ selections }), + }), + ], + }), + variables: { + input: { + where, + }, + }, + }; +} diff --git a/sdk/constructive-sdk/src/storage/orm/realtime.ts b/sdk/constructive-sdk/src/storage/orm/realtime.ts new file mode 100644 index 0000000000..214eb56203 --- /dev/null +++ b/sdk/constructive-sdk/src/storage/orm/realtime.ts @@ -0,0 +1,244 @@ +/** + * Realtime Manager - WebSocket subscription support + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +// Minimal type shims so this module compiles without graphql-ws +// installed. Consumers supply a WsClient via RealtimeConfig; +// the SDK itself never imports or requires graphql-ws. + +interface WsGraphQLError { + readonly message: string; + readonly [key: string]: unknown; +} + +interface WsExecutionResult> { + data?: TData | null; + errors?: readonly WsGraphQLError[]; + extensions?: Record; +} + +interface WsSink { + next(value: T): void; + error(error: unknown): void; + complete(): void; +} + +/** + * Minimal interface matching the graphql-ws Client. + * Consumers pass a concrete instance via RealtimeConfig.client. + */ +export interface WsClient { + subscribe>( + payload: { query: string; variables?: Record }, + sink: WsSink> + ): () => void; + dispose(): void; +} + +// ============================================================================ +// Types +// ============================================================================ + +/** The DML operation that triggered the subscription event */ +export type SubscriptionOperation = 'INSERT' | 'UPDATE' | 'DELETE'; + +/** Connection state of the WebSocket */ +export type ConnectionState = 'disconnected' | 'connecting' | 'connected' | 'reconnecting'; + +/** Listener for connection state changes */ +export type ConnectionStateListener = (state: ConnectionState) => void; + +/** Function returned by subscribe() to cancel the subscription */ +export type Unsubscribe = () => void; + +/** + * A realtime subscription event delivered to the client. + * + * @typeParam T - The row type of the subscribed table + */ +export interface SubscriptionEvent { + /** The DML operation that triggered this event */ + operation: SubscriptionOperation; + /** The current row data (null for DELETE if row is no longer visible) */ + data: T | null; + /** Previous field values (populated on UPDATE when available) */ + previousValues?: Partial; + /** Server-side timestamp of when the change occurred */ + timestamp: string; +} + +/** + * Options for creating a subscription. + * + * @typeParam T - The row type of the subscribed table + * @typeParam TFilter - The filter type for the table + */ +export interface SubscribeOptions> { + /** Server-side filter to limit which events are delivered */ + filter?: TFilter; + /** Called when a subscription event is received */ + onEvent: (event: SubscriptionEvent) => void; + /** Called when the subscription encounters an error */ + onError?: (error: Error) => void; + /** Called when the subscription completes (server-initiated close) */ + onComplete?: () => void; +} + +/** + * Metadata about a subscription field, used internally to map + * table names to GraphQL subscription field names and types. + */ +export interface SubscriptionFieldMeta { + /** The GraphQL subscription field name (e.g., 'onContactChanged') */ + fieldName: string; + /** The table name in the source schema (e.g., 'contact') */ + tableName: string; + /** The data field name inside the subscription payload (e.g., 'contact') */ + dataFieldName: string; +} + +/** + * Configuration for the realtime (WebSocket) connection. + * Pass this as the `realtime` option in OrmClientConfig. + * + * @example + * ```ts + * import { createClient } from 'graphql-ws'; + * + * const client = createOrmClient({ + * endpoint: 'https://api.example.com/graphql', + * realtime: { + * client: createClient({ url: 'wss://api.example.com/graphql' }), + * }, + * }); + * ``` + */ +export interface RealtimeConfig { + /** + * A graphql-ws Client instance (or any object satisfying WsClient). + * The consumer creates this themselves, giving full control over + * connection options, auth, and transport. + * + * @example + * ```ts + * import { createClient } from 'graphql-ws'; + * const wsClient = createClient({ url: 'wss://...' }); + * ``` + */ + client: WsClient; +} + +// ============================================================================ +// RealtimeManager +// ============================================================================ + +/** + * Manages a graphql-ws WebSocket client and multiplexes + * subscriptions over it. Created by OrmClient when `realtime` + * config is provided. + */ +export class RealtimeManager { + private wsClient: WsClient; + private connectionState: ConnectionState = 'disconnected'; + private stateListeners: Set = new Set(); + private activeSubscriptions = 0; + + constructor(config: RealtimeConfig) { + this.wsClient = config.client; + } + + /** + * Subscribe to a GraphQL subscription operation. + * Models call this with typed metadata and documents. + */ + subscribe( + meta: SubscriptionFieldMeta, + document: string, + variables: Record, + options: { + onEvent: (event: SubscriptionEvent) => void; + onError?: (error: Error) => void; + onComplete?: () => void; + } + ): Unsubscribe { + this.activeSubscriptions++; + let disposed = false; + + const cleanup = this.wsClient.subscribe>( + { query: document, variables }, + { + next: (result) => { + if (disposed) return; + if (result.errors) { + options.onError?.(new Error(result.errors.map((e) => e.message).join('; '))); + return; + } + + const payload = result.data?.[meta.fieldName] as + | { event?: string; [key: string]: unknown } + | undefined; + + if (!payload) return; + + const event: SubscriptionEvent = { + operation: (payload.event as SubscriptionOperation) ?? 'UPDATE', + data: (payload[meta.dataFieldName] as T) ?? null, + previousValues: payload.previousValues as Partial | undefined, + timestamp: (payload.timestamp as string) ?? new Date().toISOString(), + }; + options.onEvent(event); + }, + error: (err) => { + if (disposed) return; + options.onError?.(err instanceof Error ? err : new Error(String(err))); + }, + complete: () => { + if (disposed) return; + options.onComplete?.(); + }, + } + ); + + return () => { + if (disposed) return; + disposed = true; + this.activeSubscriptions--; + cleanup(); + }; + } + + /** Register a listener for connection state changes */ + onConnectionStateChange(listener: ConnectionStateListener): Unsubscribe { + this.stateListeners.add(listener); + return () => { + this.stateListeners.delete(listener); + }; + } + + /** Get current connection state */ + getConnectionState(): ConnectionState { + return this.connectionState; + } + + /** Number of active subscriptions */ + getActiveSubscriptionCount(): number { + return this.activeSubscriptions; + } + + /** Dispose the manager and close the WebSocket connection */ + dispose(): void { + this.wsClient.dispose(); + this.stateListeners.clear(); + this.activeSubscriptions = 0; + this.setConnectionState('disconnected'); + } + + private setConnectionState(state: ConnectionState): void { + if (this.connectionState === state) return; + this.connectionState = state; + for (const listener of this.stateListeners) { + listener(state); + } + } +} diff --git a/sdk/constructive-sdk/src/storage/orm/select-types.ts b/sdk/constructive-sdk/src/storage/orm/select-types.ts new file mode 100644 index 0000000000..4b39d7e820 --- /dev/null +++ b/sdk/constructive-sdk/src/storage/orm/select-types.ts @@ -0,0 +1,169 @@ +/** + * Type utilities for select inference + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +export interface ConnectionResult { + nodes: T[]; + totalCount: number; + pageInfo: PageInfo; +} + +export interface PageInfo { + hasNextPage: boolean; + hasPreviousPage: boolean; + startCursor?: string | null; + endCursor?: string | null; +} + +export interface FindManyArgs { + select?: TSelect; + where?: TWhere; + orderBy?: TOrderBy[]; + first?: number; + last?: number; + after?: string; + before?: string; + offset?: number; +} + +export interface FindFirstArgs { + select?: TSelect; + where?: TWhere; + orderBy?: TOrderBy[]; +} + +export interface CreateArgs { + data: TData; + select?: TSelect; +} + +export interface UpdateArgs { + where: TWhere; + data: TData; + select?: TSelect; +} + +export type FindOneArgs = { + select?: TSelect; +} & Record; + +export interface DeleteArgs { + where: TWhere; + select?: TSelect; +} + +export interface BulkInsertArgs { + data: TData[]; + select?: TSelect; + onConflict?: TOnConflict; +} + +export interface BulkUpsertArgs { + data: TData[]; + select?: TSelect; + onConflict: TOnConflict; +} + +export interface BulkUpdateArgs { + where: TWhere; + data: TData; + select?: TSelect; +} + +export interface BulkDeleteArgs { + where: TWhere; + select?: TSelect; +} + +export interface BulkMutationResult { + affectedCount: number; + returning: T[]; +} + +type DepthLevel = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10; +type DecrementDepth = { + 0: 0; + 1: 0; + 2: 1; + 3: 2; + 4: 3; + 5: 4; + 6: 5; + 7: 6; + 8: 7; + 9: 8; + 10: 9; +}; + +/** + * Recursively validates select objects, rejecting unknown keys. + * + * NOTE: Depth is intentionally capped to avoid circular-instantiation issues + * in very large cyclic schemas. + */ +export type DeepExact = Depth extends 0 + ? T extends Shape + ? T + : never + : T extends Shape + ? Exclude extends never + ? { + [K in keyof T]: K extends keyof Shape + ? T[K] extends { select: infer NS } + ? Extract extends { + select?: infer ShapeNS; + } + ? DeepExact< + Omit & { + select: DeepExact, DecrementDepth[Depth]>; + }, + Extract, + DecrementDepth[Depth] + > + : never + : T[K] + : never; + } + : never + : never; + +/** + * Enforces exact select shape while keeping contextual typing on `S extends XxxSelect`. + * Use this as an intersection in overloads: + * `{ select: S } & StrictSelect`. + */ +export type StrictSelect = S extends DeepExact ? {} : never; + +/** + * Hook-optimized strict select variant. + * + * Uses a shallower recursion depth to keep editor autocomplete responsive + * in large schemas while still validating common nested-select mistakes. + */ +export type HookStrictSelect = S extends DeepExact ? {} : never; + +/** + * Infer result type from select configuration + */ +export type InferSelectResult = TSelect extends undefined + ? TEntity + : { + [K in keyof TSelect as TSelect[K] extends false | undefined + ? never + : K]: TSelect[K] extends true + ? K extends keyof TEntity + ? TEntity[K] + : never + : TSelect[K] extends { select: infer NestedSelect } + ? K extends keyof TEntity + ? NonNullable extends ConnectionResult + ? ConnectionResult> + : + | InferSelectResult, NestedSelect> + | (null extends TEntity[K] ? null : never) + : never + : K extends keyof TEntity + ? TEntity[K] + : never; + }; diff --git a/sdk/constructive-sdk/src/storage/orm/types.ts b/sdk/constructive-sdk/src/storage/orm/types.ts new file mode 100644 index 0000000000..7c1120bcdf --- /dev/null +++ b/sdk/constructive-sdk/src/storage/orm/types.ts @@ -0,0 +1,8 @@ +/** + * Types re-export + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +// Re-export all types from input-types +export * from './input-types'; diff --git a/sdk/constructive-sdk/src/usage/README.md b/sdk/constructive-sdk/src/usage/README.md index 228107153f..1c69cdf8b0 100644 --- a/sdk/constructive-sdk/src/usage/README.md +++ b/sdk/constructive-sdk/src/usage/README.md @@ -8,9 +8,9 @@ ## Overview -- **Tables:** 38 -- **Custom queries:** 5 -- **Custom mutations:** 11 +- **Tables:** 18 +- **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 65cddf9b24..945acdcb20 100644 --- a/sdk/constructive-sdk/src/usage/orm/README.md +++ b/sdk/constructive-sdk/src/usage/orm/README.md @@ -21,13 +21,6 @@ const db = createClient({ | Model | Operations | |-------|------------| -| `appAchievementReward` | findMany, findOne, create, update, delete | -| `appEventAggregate` | findMany, findOne, create, update, delete | -| `appEvent` | findMany, findOne, create, update, delete | -| `appEventType` | findMany, findOne, create, update, delete | -| `appLevel` | findMany, findOne, create, update, delete | -| `appLevelGrant` | findMany, findOne, create, update, delete | -| `appLevelRequirement` | findMany, findOne, create, update, delete | | `appLimitCap` | findMany, findOne, create, update, delete | | `appLimitCapsDefault` | findMany, findOne, create, update, delete | | `appLimit` | findMany, findOne, create, update, delete | @@ -38,12 +31,6 @@ const db = createClient({ | `appLimitDefault` | findMany, findOne, create, update, delete | | `appLimitEvent` | findMany, findOne, create, update, delete | | `appLimitWarning` | findMany, findOne, create, update, delete | -| `billingUsageSummary` | findMany, findOne, create, update, delete | -| `ledger` | findMany, findOne, create, update, delete | -| `meter` | findMany, findOne, create, update, delete | -| `meterCredit` | findMany, findOne, create, update, delete | -| `meterDefault` | findMany, findOne, create, update, delete | -| `meterSource` | findMany, findOne, create, update, delete | | `orgLimitAggregate` | findMany, findOne, create, update, delete | | `orgLimitCap` | findMany, findOne, create, update, delete | | `orgLimitCapsDefault` | findMany, findOne, create, update, delete | @@ -52,267 +39,9 @@ const db = createClient({ | `orgLimitDefault` | findMany, findOne, create, update, delete | | `orgLimitEvent` | findMany, findOne, create, update, delete | | `orgLimitWarning` | findMany, findOne, create, update, delete | -| `planCap` | findMany, findOne, create, update, delete | -| `plan` | findMany, findOne, create, update, delete | -| `planLimit` | findMany, findOne, create, update, delete | -| `planMeterLimit` | findMany, findOne, create, update, delete | -| `planOverride` | findMany, findOne, create, update, delete | -| `planPricing` | findMany, findOne, create, update, delete | -| `planSubscription` | findMany, findOne, create, update, delete | ## Table Operations -### `db.appAchievementReward` - -CRUD operations for AppAchievementReward records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `amount` | Int | Yes | -| `createdAt` | Datetime | No | -| `creditType` | String | Yes | -| `expiresInterval` | Interval | Yes | -| `id` | UUID | No | -| `levelName` | String | Yes | -| `rewardType` | String | Yes | -| `targetName` | String | Yes | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all appAchievementReward records -const items = await db.appAchievementReward.findMany({ select: { amount: true, createdAt: true, creditType: true, expiresInterval: true, id: true, levelName: true, rewardType: true, targetName: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.appAchievementReward.findOne({ id: '', select: { amount: true, createdAt: true, creditType: true, expiresInterval: true, id: true, levelName: true, rewardType: true, targetName: true, updatedAt: true } }).execute(); - -// Create -const created = await db.appAchievementReward.create({ data: { amount: '', creditType: '', expiresInterval: '', levelName: '', rewardType: '', targetName: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appAchievementReward.update({ where: { id: '' }, data: { amount: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appAchievementReward.delete({ where: { id: '' } }).execute(); -``` - -### `db.appEventAggregate` - -CRUD operations for AppEventAggregate records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `actorId` | UUID | Yes | -| `count` | Int | Yes | -| `createdAt` | Datetime | No | -| `id` | UUID | No | -| `name` | String | Yes | -| `periodStart` | Datetime | Yes | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all appEventAggregate records -const items = await db.appEventAggregate.findMany({ select: { actorId: true, count: true, createdAt: true, id: true, name: true, periodStart: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.appEventAggregate.findOne({ id: '', select: { actorId: true, count: true, createdAt: true, id: true, name: true, periodStart: true, updatedAt: true } }).execute(); - -// Create -const created = await db.appEventAggregate.create({ data: { actorId: '', count: '', name: '', periodStart: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appEventAggregate.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appEventAggregate.delete({ where: { id: '' } }).execute(); -``` - -### `db.appEvent` - -CRUD operations for AppEvent records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `actorId` | UUID | Yes | -| `count` | Int | Yes | -| `createdAt` | Datetime | No | -| `id` | UUID | No | -| `name` | String | Yes | - -**Operations:** - -```typescript -// List all appEvent records -const items = await db.appEvent.findMany({ select: { actorId: true, count: true, createdAt: true, id: true, name: true } }).execute(); - -// Get one by id -const item = await db.appEvent.findOne({ id: '', select: { actorId: true, count: true, createdAt: true, id: true, name: true } }).execute(); - -// Create -const created = await db.appEvent.create({ data: { actorId: '', count: '', name: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appEvent.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appEvent.delete({ where: { id: '' } }).execute(); -``` - -### `db.appEventType` - -CRUD operations for AppEventType records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `aggregation` | String | Yes | -| `category` | String | Yes | -| `createdAt` | Datetime | No | -| `description` | String | Yes | -| `feedsLevels` | Boolean | Yes | -| `id` | UUID | No | -| `isActive` | Boolean | Yes | -| `name` | String | Yes | -| `periodInterval` | Interval | Yes | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all appEventType records -const items = await db.appEventType.findMany({ select: { aggregation: true, category: true, createdAt: true, description: true, feedsLevels: true, id: true, isActive: true, name: true, periodInterval: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.appEventType.findOne({ id: '', select: { aggregation: true, category: true, createdAt: true, description: true, feedsLevels: true, id: true, isActive: true, name: true, periodInterval: true, updatedAt: true } }).execute(); - -// Create -const created = await db.appEventType.create({ data: { aggregation: '', category: '', description: '', feedsLevels: '', isActive: '', name: '', periodInterval: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appEventType.update({ where: { id: '' }, data: { aggregation: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appEventType.delete({ where: { id: '' } }).execute(); -``` - -### `db.appLevel` - -CRUD operations for AppLevel records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `createdAt` | Datetime | No | -| `description` | String | Yes | -| `id` | UUID | No | -| `image` | ConstructiveInternalTypeImage | Yes | -| `name` | String | Yes | -| `ownerId` | UUID | Yes | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all appLevel records -const items = await db.appLevel.findMany({ select: { createdAt: true, description: true, id: true, image: true, name: true, ownerId: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.appLevel.findOne({ id: '', select: { createdAt: true, description: true, id: true, image: true, name: true, ownerId: true, updatedAt: true } }).execute(); - -// Create -const created = await db.appLevel.create({ data: { description: '', image: '', name: '', ownerId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appLevel.update({ where: { id: '' }, data: { description: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appLevel.delete({ where: { id: '' } }).execute(); -``` - -### `db.appLevelGrant` - -CRUD operations for AppLevelGrant records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `actorId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `expiresAt` | Datetime | Yes | -| `id` | UUID | No | -| `levelName` | String | Yes | -| `periodStart` | Datetime | Yes | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all appLevelGrant records -const items = await db.appLevelGrant.findMany({ select: { actorId: true, createdAt: true, expiresAt: true, id: true, levelName: true, periodStart: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.appLevelGrant.findOne({ id: '', select: { actorId: true, createdAt: true, expiresAt: true, id: true, levelName: true, periodStart: true, updatedAt: true } }).execute(); - -// Create -const created = await db.appLevelGrant.create({ data: { actorId: '', expiresAt: '', levelName: '', periodStart: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appLevelGrant.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appLevelGrant.delete({ where: { id: '' } }).execute(); -``` - -### `db.appLevelRequirement` - -CRUD operations for AppLevelRequirement records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `createdAt` | Datetime | No | -| `description` | String | Yes | -| `groupKey` | String | Yes | -| `id` | UUID | No | -| `level` | String | Yes | -| `metric` | String | Yes | -| `name` | String | Yes | -| `priority` | Int | Yes | -| `requiredCount` | Int | Yes | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all appLevelRequirement records -const items = await db.appLevelRequirement.findMany({ select: { createdAt: true, description: true, groupKey: true, id: true, level: true, metric: true, name: true, priority: true, requiredCount: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.appLevelRequirement.findOne({ id: '', select: { createdAt: true, description: true, groupKey: true, id: true, level: true, metric: true, name: true, priority: true, requiredCount: true, updatedAt: true } }).execute(); - -// Create -const created = await db.appLevelRequirement.create({ data: { description: '', groupKey: '', level: '', metric: '', name: '', priority: '', requiredCount: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appLevelRequirement.update({ where: { id: '' }, data: { description: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appLevelRequirement.delete({ where: { id: '' } }).execute(); -``` - ### `db.appLimitCap` CRUD operations for AppLimitCap records. @@ -656,446 +385,220 @@ const updated = await db.appLimitWarning.update({ where: { id: '' }, data: const deleted = await db.appLimitWarning.delete({ where: { id: '' } }).execute(); ``` -### `db.billingUsageSummary` +### `db.orgLimitAggregate` -CRUD operations for BillingUsageSummary records. +CRUD operations for OrgLimitAggregate records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `creditsConsumed` | BigInt | Yes | | `entityId` | UUID | Yes | | `entityType` | String | Yes | | `id` | UUID | No | -| `meterSlug` | String | Yes | +| `max` | BigInt | Yes | +| `name` | String | Yes | +| `num` | BigInt | Yes | | `organizationId` | UUID | Yes | -| `overageUnits` | BigInt | Yes | -| `periodEnd` | Datetime | Yes | -| `periodStart` | Datetime | Yes | -| `planLimit` | BigInt | Yes | -| `quantityUsed` | BigInt | Yes | +| `periodCredits` | BigInt | Yes | +| `planMax` | BigInt | Yes | +| `purchasedCredits` | BigInt | Yes | +| `reserved` | BigInt | Yes | +| `softMax` | BigInt | Yes | +| `windowDuration` | Interval | Yes | +| `windowStart` | Datetime | Yes | **Operations:** ```typescript -// List all billingUsageSummary records -const items = await db.billingUsageSummary.findMany({ select: { creditsConsumed: true, entityId: true, entityType: true, id: true, meterSlug: true, organizationId: true, overageUnits: true, periodEnd: true, periodStart: true, planLimit: true, quantityUsed: true } }).execute(); +// List all orgLimitAggregate records +const items = await db.orgLimitAggregate.findMany({ select: { entityId: true, entityType: true, id: true, max: true, name: true, num: true, organizationId: true, periodCredits: true, planMax: true, purchasedCredits: true, reserved: true, softMax: true, windowDuration: true, windowStart: true } }).execute(); // Get one by id -const item = await db.billingUsageSummary.findOne({ id: '', select: { creditsConsumed: true, entityId: true, entityType: true, id: true, meterSlug: true, organizationId: true, overageUnits: true, periodEnd: true, periodStart: true, planLimit: true, quantityUsed: true } }).execute(); +const item = await db.orgLimitAggregate.findOne({ id: '', select: { entityId: true, entityType: true, id: true, max: true, name: true, num: true, organizationId: true, periodCredits: true, planMax: true, purchasedCredits: true, reserved: true, softMax: true, windowDuration: true, windowStart: true } }).execute(); // Create -const created = await db.billingUsageSummary.create({ data: { creditsConsumed: '', entityId: '', entityType: '', meterSlug: '', organizationId: '', overageUnits: '', periodEnd: '', periodStart: '', planLimit: '', quantityUsed: '' }, select: { id: true } }).execute(); +const created = await db.orgLimitAggregate.create({ data: { entityId: '', entityType: '', max: '', name: '', num: '', organizationId: '', periodCredits: '', planMax: '', purchasedCredits: '', reserved: '', softMax: '', windowDuration: '', windowStart: '' }, select: { id: true } }).execute(); // Update -const updated = await db.billingUsageSummary.update({ where: { id: '' }, data: { creditsConsumed: '' }, select: { id: true } }).execute(); +const updated = await db.orgLimitAggregate.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.billingUsageSummary.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgLimitAggregate.delete({ where: { id: '' } }).execute(); ``` -### `db.ledger` +### `db.orgLimitCap` -CRUD operations for Ledger records. +CRUD operations for OrgLimitCap records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `createdAt` | Datetime | No | -| `delta` | BigInt | Yes | | `entityId` | UUID | Yes | -| `entityType` | String | Yes | -| `entryType` | String | Yes | | `id` | UUID | No | -| `ledgerClass` | String | Yes | -| `metadata` | JSON | Yes | -| `meterSlug` | String | Yes | -| `organizationId` | UUID | Yes | -| `usageAfter` | BigInt | Yes | +| `max` | BigInt | Yes | +| `name` | String | Yes | **Operations:** ```typescript -// List all ledger records -const items = await db.ledger.findMany({ select: { createdAt: true, delta: true, entityId: true, entityType: true, entryType: true, id: true, ledgerClass: true, metadata: true, meterSlug: true, organizationId: true, usageAfter: true } }).execute(); +// List all orgLimitCap records +const items = await db.orgLimitCap.findMany({ select: { entityId: true, id: true, max: true, name: true } }).execute(); // Get one by id -const item = await db.ledger.findOne({ id: '', select: { createdAt: true, delta: true, entityId: true, entityType: true, entryType: true, id: true, ledgerClass: true, metadata: true, meterSlug: true, organizationId: true, usageAfter: true } }).execute(); +const item = await db.orgLimitCap.findOne({ id: '', select: { entityId: true, id: true, max: true, name: true } }).execute(); // Create -const created = await db.ledger.create({ data: { delta: '', entityId: '', entityType: '', entryType: '', ledgerClass: '', metadata: '', meterSlug: '', organizationId: '', usageAfter: '' }, select: { id: true } }).execute(); +const created = await db.orgLimitCap.create({ data: { entityId: '', max: '', name: '' }, select: { id: true } }).execute(); // Update -const updated = await db.ledger.update({ where: { id: '' }, data: { delta: '' }, select: { id: true } }).execute(); +const updated = await db.orgLimitCap.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.ledger.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgLimitCap.delete({ where: { id: '' } }).execute(); ``` -### `db.meter` +### `db.orgLimitCapsDefault` -CRUD operations for Meter records. +CRUD operations for OrgLimitCapsDefault records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `aggregation` | String | Yes | -| `categoryMeter` | String | Yes | -| `creditCost` | Int | Yes | -| `displayName` | String | Yes | | `id` | UUID | No | -| `isActive` | Boolean | Yes | -| `meterType` | String | Yes | -| `periodInterval` | Interval | Yes | -| `rolloverCap` | BigInt | Yes | -| `slug` | String | Yes | -| `unit` | String | Yes | +| `max` | BigInt | Yes | +| `name` | String | Yes | **Operations:** ```typescript -// List all meter records -const items = await db.meter.findMany({ select: { aggregation: true, categoryMeter: true, creditCost: true, displayName: true, id: true, isActive: true, meterType: true, periodInterval: true, rolloverCap: true, slug: true, unit: true } }).execute(); +// List all orgLimitCapsDefault records +const items = await db.orgLimitCapsDefault.findMany({ select: { id: true, max: true, name: true } }).execute(); // Get one by id -const item = await db.meter.findOne({ id: '', select: { aggregation: true, categoryMeter: true, creditCost: true, displayName: true, id: true, isActive: true, meterType: true, periodInterval: true, rolloverCap: true, slug: true, unit: true } }).execute(); +const item = await db.orgLimitCapsDefault.findOne({ id: '', select: { id: true, max: true, name: true } }).execute(); // Create -const created = await db.meter.create({ data: { aggregation: '', categoryMeter: '', creditCost: '', displayName: '', isActive: '', meterType: '', periodInterval: '', rolloverCap: '', slug: '', unit: '' }, select: { id: true } }).execute(); +const created = await db.orgLimitCapsDefault.create({ data: { max: '', name: '' }, select: { id: true } }).execute(); // Update -const updated = await db.meter.update({ where: { id: '' }, data: { aggregation: '' }, select: { id: true } }).execute(); +const updated = await db.orgLimitCapsDefault.update({ where: { id: '' }, data: { max: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.meter.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgLimitCapsDefault.delete({ where: { id: '' } }).execute(); ``` -### `db.meterCredit` +### `db.orgLimit` -CRUD operations for MeterCredit records. +CRUD operations for OrgLimit records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `amount` | BigInt | Yes | -| `createdAt` | Datetime | No | -| `creditType` | String | Yes | +| `actorId` | UUID | Yes | | `entityId` | UUID | Yes | | `entityType` | String | Yes | -| `expiresAt` | Datetime | Yes | | `id` | UUID | No | -| `meterId` | UUID | Yes | +| `max` | BigInt | Yes | +| `name` | String | Yes | +| `num` | BigInt | Yes | | `organizationId` | UUID | Yes | -| `reason` | String | Yes | +| `periodCredits` | BigInt | Yes | +| `planMax` | BigInt | Yes | +| `purchasedCredits` | BigInt | Yes | +| `softMax` | BigInt | Yes | +| `windowDuration` | Interval | Yes | +| `windowStart` | Datetime | Yes | **Operations:** ```typescript -// List all meterCredit records -const items = await db.meterCredit.findMany({ select: { amount: true, createdAt: true, creditType: true, entityId: true, entityType: true, expiresAt: true, id: true, meterId: true, organizationId: true, reason: true } }).execute(); +// List all orgLimit records +const items = await db.orgLimit.findMany({ select: { actorId: true, entityId: true, entityType: true, id: true, max: true, name: true, num: true, organizationId: true, periodCredits: true, planMax: true, purchasedCredits: true, softMax: true, windowDuration: true, windowStart: true } }).execute(); // Get one by id -const item = await db.meterCredit.findOne({ id: '', select: { amount: true, createdAt: true, creditType: true, entityId: true, entityType: true, expiresAt: true, id: true, meterId: true, organizationId: true, reason: true } }).execute(); +const item = await db.orgLimit.findOne({ id: '', select: { actorId: true, entityId: true, entityType: true, id: true, max: true, name: true, num: true, organizationId: true, periodCredits: true, planMax: true, purchasedCredits: true, softMax: true, windowDuration: true, windowStart: true } }).execute(); // Create -const created = await db.meterCredit.create({ data: { amount: '', creditType: '', entityId: '', entityType: '', expiresAt: '', meterId: '', organizationId: '', reason: '' }, select: { id: true } }).execute(); +const created = await db.orgLimit.create({ data: { actorId: '', entityId: '', entityType: '', max: '', name: '', num: '', organizationId: '', periodCredits: '', planMax: '', purchasedCredits: '', softMax: '', windowDuration: '', windowStart: '' }, select: { id: true } }).execute(); // Update -const updated = await db.meterCredit.update({ where: { id: '' }, data: { amount: '' }, select: { id: true } }).execute(); +const updated = await db.orgLimit.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.meterCredit.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgLimit.delete({ where: { id: '' } }).execute(); ``` -### `db.meterDefault` +### `db.orgLimitCredit` -CRUD operations for MeterDefault records. +CRUD operations for OrgLimitCredit records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `categoryMeter` | String | Yes | -| `creditCost` | BigFloat | Yes | -| `defaultPlanLimit` | BigInt | Yes | -| `displayName` | String | Yes | +| `actorId` | UUID | Yes | +| `amount` | BigInt | Yes | +| `creditType` | String | Yes | +| `defaultLimitId` | UUID | Yes | +| `entityId` | UUID | Yes | +| `entityType` | String | Yes | | `id` | UUID | No | -| `isActive` | Boolean | Yes | -| `meterType` | String | Yes | -| `slug` | String | Yes | -| `unit` | String | Yes | +| `organizationId` | UUID | Yes | +| `reason` | String | Yes | **Operations:** ```typescript -// List all meterDefault records -const items = await db.meterDefault.findMany({ select: { categoryMeter: true, creditCost: true, defaultPlanLimit: true, displayName: true, id: true, isActive: true, meterType: true, slug: true, unit: true } }).execute(); +// List all orgLimitCredit records +const items = await db.orgLimitCredit.findMany({ select: { actorId: true, amount: true, creditType: true, defaultLimitId: true, entityId: true, entityType: true, id: true, organizationId: true, reason: true } }).execute(); // Get one by id -const item = await db.meterDefault.findOne({ id: '', select: { categoryMeter: true, creditCost: true, defaultPlanLimit: true, displayName: true, id: true, isActive: true, meterType: true, slug: true, unit: true } }).execute(); +const item = await db.orgLimitCredit.findOne({ id: '', select: { actorId: true, amount: true, creditType: true, defaultLimitId: true, entityId: true, entityType: true, id: true, organizationId: true, reason: true } }).execute(); // Create -const created = await db.meterDefault.create({ data: { categoryMeter: '', creditCost: '', defaultPlanLimit: '', displayName: '', isActive: '', meterType: '', slug: '', unit: '' }, select: { id: true } }).execute(); +const created = await db.orgLimitCredit.create({ data: { actorId: '', amount: '', creditType: '', defaultLimitId: '', entityId: '', entityType: '', organizationId: '', reason: '' }, select: { id: true } }).execute(); // Update -const updated = await db.meterDefault.update({ where: { id: '' }, data: { categoryMeter: '' }, select: { id: true } }).execute(); +const updated = await db.orgLimitCredit.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.meterDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgLimitCredit.delete({ where: { id: '' } }).execute(); ``` -### `db.meterSource` +### `db.orgLimitDefault` -CRUD operations for MeterSource records. +CRUD operations for OrgLimitDefault records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `aggregationType` | String | Yes | -| `dimensionPath` | String | Yes | | `id` | UUID | No | -| `isActive` | Boolean | Yes | -| `meterSlug` | String | Yes | -| `sourceMetric` | String | Yes | +| `max` | BigInt | Yes | +| `name` | String | Yes | +| `softMax` | BigInt | Yes | **Operations:** ```typescript -// List all meterSource records -const items = await db.meterSource.findMany({ select: { aggregationType: true, dimensionPath: true, id: true, isActive: true, meterSlug: true, sourceMetric: true } }).execute(); +// List all orgLimitDefault records +const items = await db.orgLimitDefault.findMany({ select: { id: true, max: true, name: true, softMax: true } }).execute(); // Get one by id -const item = await db.meterSource.findOne({ id: '', select: { aggregationType: true, dimensionPath: true, id: true, isActive: true, meterSlug: true, sourceMetric: true } }).execute(); +const item = await db.orgLimitDefault.findOne({ id: '', select: { id: true, max: true, name: true, softMax: true } }).execute(); // Create -const created = await db.meterSource.create({ data: { aggregationType: '', dimensionPath: '', isActive: '', meterSlug: '', sourceMetric: '' }, select: { id: true } }).execute(); +const created = await db.orgLimitDefault.create({ data: { max: '', name: '', softMax: '' }, select: { id: true } }).execute(); // Update -const updated = await db.meterSource.update({ where: { id: '' }, data: { aggregationType: '' }, select: { id: true } }).execute(); +const updated = await db.orgLimitDefault.update({ where: { id: '' }, data: { max: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.meterSource.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgLimitAggregate` - -CRUD operations for OrgLimitAggregate records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `entityId` | UUID | Yes | -| `entityType` | String | Yes | -| `id` | UUID | No | -| `max` | BigInt | Yes | -| `name` | String | Yes | -| `num` | BigInt | Yes | -| `organizationId` | UUID | Yes | -| `periodCredits` | BigInt | Yes | -| `planMax` | BigInt | Yes | -| `purchasedCredits` | BigInt | Yes | -| `reserved` | BigInt | Yes | -| `softMax` | BigInt | Yes | -| `windowDuration` | Interval | Yes | -| `windowStart` | Datetime | Yes | - -**Operations:** - -```typescript -// List all orgLimitAggregate records -const items = await db.orgLimitAggregate.findMany({ select: { entityId: true, entityType: true, id: true, max: true, name: true, num: true, organizationId: true, periodCredits: true, planMax: true, purchasedCredits: true, reserved: true, softMax: true, windowDuration: true, windowStart: true } }).execute(); - -// Get one by id -const item = await db.orgLimitAggregate.findOne({ id: '', select: { entityId: true, entityType: true, id: true, max: true, name: true, num: true, organizationId: true, periodCredits: true, planMax: true, purchasedCredits: true, reserved: true, softMax: true, windowDuration: true, windowStart: true } }).execute(); - -// Create -const created = await db.orgLimitAggregate.create({ data: { entityId: '', entityType: '', max: '', name: '', num: '', organizationId: '', periodCredits: '', planMax: '', purchasedCredits: '', reserved: '', softMax: '', windowDuration: '', windowStart: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgLimitAggregate.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgLimitAggregate.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgLimitCap` - -CRUD operations for OrgLimitCap records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `entityId` | UUID | Yes | -| `id` | UUID | No | -| `max` | BigInt | Yes | -| `name` | String | Yes | - -**Operations:** - -```typescript -// List all orgLimitCap records -const items = await db.orgLimitCap.findMany({ select: { entityId: true, id: true, max: true, name: true } }).execute(); - -// Get one by id -const item = await db.orgLimitCap.findOne({ id: '', select: { entityId: true, id: true, max: true, name: true } }).execute(); - -// Create -const created = await db.orgLimitCap.create({ data: { entityId: '', max: '', name: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgLimitCap.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgLimitCap.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgLimitCapsDefault` - -CRUD operations for OrgLimitCapsDefault records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `max` | BigInt | Yes | -| `name` | String | Yes | - -**Operations:** - -```typescript -// List all orgLimitCapsDefault records -const items = await db.orgLimitCapsDefault.findMany({ select: { id: true, max: true, name: true } }).execute(); - -// Get one by id -const item = await db.orgLimitCapsDefault.findOne({ id: '', select: { id: true, max: true, name: true } }).execute(); - -// Create -const created = await db.orgLimitCapsDefault.create({ data: { max: '', name: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgLimitCapsDefault.update({ where: { id: '' }, data: { max: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgLimitCapsDefault.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgLimit` - -CRUD operations for OrgLimit records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `actorId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `entityType` | String | Yes | -| `id` | UUID | No | -| `max` | BigInt | Yes | -| `name` | String | Yes | -| `num` | BigInt | Yes | -| `organizationId` | UUID | Yes | -| `periodCredits` | BigInt | Yes | -| `planMax` | BigInt | Yes | -| `purchasedCredits` | BigInt | Yes | -| `softMax` | BigInt | Yes | -| `windowDuration` | Interval | Yes | -| `windowStart` | Datetime | Yes | - -**Operations:** - -```typescript -// List all orgLimit records -const items = await db.orgLimit.findMany({ select: { actorId: true, entityId: true, entityType: true, id: true, max: true, name: true, num: true, organizationId: true, periodCredits: true, planMax: true, purchasedCredits: true, softMax: true, windowDuration: true, windowStart: true } }).execute(); - -// Get one by id -const item = await db.orgLimit.findOne({ id: '', select: { actorId: true, entityId: true, entityType: true, id: true, max: true, name: true, num: true, organizationId: true, periodCredits: true, planMax: true, purchasedCredits: true, softMax: true, windowDuration: true, windowStart: true } }).execute(); - -// Create -const created = await db.orgLimit.create({ data: { actorId: '', entityId: '', entityType: '', max: '', name: '', num: '', organizationId: '', periodCredits: '', planMax: '', purchasedCredits: '', softMax: '', windowDuration: '', windowStart: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgLimit.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgLimit.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgLimitCredit` - -CRUD operations for OrgLimitCredit records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `actorId` | UUID | Yes | -| `amount` | BigInt | Yes | -| `creditType` | String | Yes | -| `defaultLimitId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `entityType` | String | Yes | -| `id` | UUID | No | -| `organizationId` | UUID | Yes | -| `reason` | String | Yes | - -**Operations:** - -```typescript -// List all orgLimitCredit records -const items = await db.orgLimitCredit.findMany({ select: { actorId: true, amount: true, creditType: true, defaultLimitId: true, entityId: true, entityType: true, id: true, organizationId: true, reason: true } }).execute(); - -// Get one by id -const item = await db.orgLimitCredit.findOne({ id: '', select: { actorId: true, amount: true, creditType: true, defaultLimitId: true, entityId: true, entityType: true, id: true, organizationId: true, reason: true } }).execute(); - -// Create -const created = await db.orgLimitCredit.create({ data: { actorId: '', amount: '', creditType: '', defaultLimitId: '', entityId: '', entityType: '', organizationId: '', reason: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgLimitCredit.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgLimitCredit.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgLimitDefault` - -CRUD operations for OrgLimitDefault records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `max` | BigInt | Yes | -| `name` | String | Yes | -| `softMax` | BigInt | Yes | - -**Operations:** - -```typescript -// List all orgLimitDefault records -const items = await db.orgLimitDefault.findMany({ select: { id: true, max: true, name: true, softMax: true } }).execute(); - -// Get one by id -const item = await db.orgLimitDefault.findOne({ id: '', select: { id: true, max: true, name: true, softMax: true } }).execute(); - -// Create -const created = await db.orgLimitDefault.create({ data: { max: '', name: '', softMax: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgLimitDefault.update({ where: { id: '' }, data: { max: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgLimitDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgLimitDefault.delete({ where: { id: '' } }).execute(); ``` ### `db.orgLimitEvent` @@ -1173,239 +676,6 @@ const updated = await db.orgLimitWarning.update({ where: { id: '' }, data: const deleted = await db.orgLimitWarning.delete({ where: { id: '' } }).execute(); ``` -### `db.planCap` - -CRUD operations for PlanCap records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `capName` | String | Yes | -| `capValue` | BigInt | Yes | -| `id` | UUID | No | -| `planId` | UUID | Yes | - -**Operations:** - -```typescript -// List all planCap records -const items = await db.planCap.findMany({ select: { capName: true, capValue: true, id: true, planId: true } }).execute(); - -// Get one by id -const item = await db.planCap.findOne({ id: '', select: { capName: true, capValue: true, id: true, planId: true } }).execute(); - -// Create -const created = await db.planCap.create({ data: { capName: '', capValue: '', planId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.planCap.update({ where: { id: '' }, data: { capName: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.planCap.delete({ where: { id: '' } }).execute(); -``` - -### `db.plan` - -CRUD operations for Plan records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `description` | String | Yes | -| `id` | UUID | No | -| `isActive` | Boolean | Yes | -| `name` | String | Yes | - -**Operations:** - -```typescript -// List all plan records -const items = await db.plan.findMany({ select: { description: true, id: true, isActive: true, name: true } }).execute(); - -// Get one by id -const item = await db.plan.findOne({ id: '', select: { description: true, id: true, isActive: true, name: true } }).execute(); - -// Create -const created = await db.plan.create({ data: { description: '', isActive: '', name: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.plan.update({ where: { id: '' }, data: { description: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.plan.delete({ where: { id: '' } }).execute(); -``` - -### `db.planLimit` - -CRUD operations for PlanLimit records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `limitName` | String | Yes | -| `maxValue` | BigInt | Yes | -| `planId` | UUID | Yes | - -**Operations:** - -```typescript -// List all planLimit records -const items = await db.planLimit.findMany({ select: { id: true, limitName: true, maxValue: true, planId: true } }).execute(); - -// Get one by id -const item = await db.planLimit.findOne({ id: '', select: { id: true, limitName: true, maxValue: true, planId: true } }).execute(); - -// Create -const created = await db.planLimit.create({ data: { limitName: '', maxValue: '', planId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.planLimit.update({ where: { id: '' }, data: { limitName: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.planLimit.delete({ where: { id: '' } }).execute(); -``` - -### `db.planMeterLimit` - -CRUD operations for PlanMeterLimit records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `meterSlug` | String | Yes | -| `planId` | UUID | Yes | -| `planLimit` | BigInt | Yes | - -**Operations:** - -```typescript -// List all planMeterLimit records -const items = await db.planMeterLimit.findMany({ select: { id: true, meterSlug: true, planId: true, planLimit: true } }).execute(); - -// Get one by id -const item = await db.planMeterLimit.findOne({ id: '', select: { id: true, meterSlug: true, planId: true, planLimit: true } }).execute(); - -// Create -const created = await db.planMeterLimit.create({ data: { meterSlug: '', planId: '', planLimit: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.planMeterLimit.update({ where: { id: '' }, data: { meterSlug: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.planMeterLimit.delete({ where: { id: '' } }).execute(); -``` - -### `db.planOverride` - -CRUD operations for PlanOverride records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `entityId` | UUID | Yes | -| `expiresAt` | Datetime | Yes | -| `id` | UUID | No | -| `limitName` | String | Yes | -| `maxValue` | BigInt | Yes | -| `reason` | String | Yes | - -**Operations:** - -```typescript -// List all planOverride records -const items = await db.planOverride.findMany({ select: { entityId: true, expiresAt: true, id: true, limitName: true, maxValue: true, reason: true } }).execute(); - -// Get one by id -const item = await db.planOverride.findOne({ id: '', select: { entityId: true, expiresAt: true, id: true, limitName: true, maxValue: true, reason: true } }).execute(); - -// Create -const created = await db.planOverride.create({ data: { entityId: '', expiresAt: '', limitName: '', maxValue: '', reason: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.planOverride.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.planOverride.delete({ where: { id: '' } }).execute(); -``` - -### `db.planPricing` - -CRUD operations for PlanPricing records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `billingInterval` | String | Yes | -| `currency` | String | Yes | -| `discountPercent` | BigFloat | Yes | -| `id` | UUID | No | -| `isActive` | Boolean | Yes | -| `planId` | UUID | Yes | -| `price` | BigInt | Yes | - -**Operations:** - -```typescript -// List all planPricing records -const items = await db.planPricing.findMany({ select: { billingInterval: true, currency: true, discountPercent: true, id: true, isActive: true, planId: true, price: true } }).execute(); - -// Get one by id -const item = await db.planPricing.findOne({ id: '', select: { billingInterval: true, currency: true, discountPercent: true, id: true, isActive: true, planId: true, price: true } }).execute(); - -// Create -const created = await db.planPricing.create({ data: { billingInterval: '', currency: '', discountPercent: '', isActive: '', planId: '', price: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.planPricing.update({ where: { id: '' }, data: { billingInterval: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.planPricing.delete({ where: { id: '' } }).execute(); -``` - -### `db.planSubscription` - -CRUD operations for PlanSubscription records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `endsAt` | Datetime | Yes | -| `entityId` | UUID | Yes | -| `entityType` | String | Yes | -| `id` | UUID | No | -| `isActive` | Boolean | Yes | -| `organizationId` | UUID | Yes | -| `planId` | UUID | Yes | -| `startsAt` | Datetime | Yes | - -**Operations:** - -```typescript -// List all planSubscription records -const items = await db.planSubscription.findMany({ select: { endsAt: true, entityId: true, entityType: true, id: true, isActive: true, organizationId: true, planId: true, startsAt: true } }).execute(); - -// Get one by id -const item = await db.planSubscription.findOne({ id: '', select: { endsAt: true, entityId: true, entityType: true, id: true, isActive: true, organizationId: true, planId: true, startsAt: true } }).execute(); - -// Create -const created = await db.planSubscription.create({ data: { endsAt: '', entityId: '', entityType: '', isActive: '', organizationId: '', planId: '', startsAt: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.planSubscription.update({ where: { id: '' }, data: { endsAt: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.planSubscription.delete({ where: { id: '' } }).execute(); -``` - ## Custom Operations ### `db.query.captureAppLimitDefaults` @@ -1430,73 +700,13 @@ captureOrgLimitDefaults const result = await db.query.captureOrgLimitDefaults().execute(); ``` -### `db.query.captureTrustLadder` - -captureTrustLadder - -- **Type:** query -- **Arguments:** none - -```typescript -const result = await db.query.captureTrustLadder().execute(); -``` - -### `db.query.eventsAchieved` - -eventsAchieved - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `level` | String | - | `roleId` | UUID | - -```typescript -const result = await db.query.eventsAchieved({ level: '', roleId: '' }).execute(); -``` - -### `db.query.eventsRequired` - -Reads and enables pagination through a set of `AppLevelRequirement`. - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `after` | Cursor | - | `first` | Int | - | `level` | String | - | `offset` | Int | - | `roleId` | UUID | - -```typescript -const result = await db.query.eventsRequired({ after: '', first: '', level: '', offset: '', roleId: '' }).execute(); -``` - -### `db.mutation.grantAchievement` - -grantAchievement - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | GrantAchievementInput (required) | - -```typescript -const result = await db.mutation.grantAchievement({ input: { actorId: '', levelName: '' } }).execute(); -``` - ### `db.mutation.provisionBucket` -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. +Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. - **Type:** mutation - **Arguments:** @@ -1509,36 +719,6 @@ and lifecycle settings. const result = await db.mutation.provisionBucket({ input: { bucketKey: '', ownerId: '' } }).execute(); ``` -### `db.mutation.recomputeCapabilities` - -recomputeCapabilities - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | RecomputeCapabilitiesInput (required) | - -```typescript -const result = await db.mutation.recomputeCapabilities({ input: { actorId: '' } }).execute(); -``` - -### `db.mutation.revokeAchievement` - -revokeAchievement - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | RevokeAchievementInput (required) | - -```typescript -const result = await db.mutation.revokeAchievement({ input: { actorId: '', levelName: '' } }).execute(); -``` - ### `db.mutation.seedAppLimitCapsDefaults` seedAppLimitCapsDefaults @@ -1569,21 +749,6 @@ seedAppLimitDefaults const result = await db.mutation.seedAppLimitDefaults({ input: { defaults: '' } }).execute(); ``` -### `db.mutation.seedMeterDefaults` - -seedMeterDefaults - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | SeedMeterDefaultsInput (required) | - -```typescript -const result = await db.mutation.seedMeterDefaults({ input: { defaults: '' } }).execute(); -``` - ### `db.mutation.seedOrgLimitCapsDefaults` seedOrgLimitCapsDefaults @@ -1613,33 +778,3 @@ seedOrgLimitDefaults ```typescript const result = await db.mutation.seedOrgLimitDefaults({ input: { defaults: '' } }).execute(); ``` - -### `db.mutation.seedPlan` - -seedPlan - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | SeedPlanInput (required) | - -```typescript -const result = await db.mutation.seedPlan({ input: { planConfig: '', planName: '' } }).execute(); -``` - -### `db.mutation.seedTrustLadder` - -seedTrustLadder - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | SeedTrustLadderInput (required) | - -```typescript -const result = await db.mutation.seedTrustLadder({ input: { ladder: '' } }).execute(); -``` diff --git a/sdk/constructive-sdk/src/usage/orm/index.ts b/sdk/constructive-sdk/src/usage/orm/index.ts index 39b71e8b29..04e02a468b 100644 --- a/sdk/constructive-sdk/src/usage/orm/index.ts +++ b/sdk/constructive-sdk/src/usage/orm/index.ts @@ -5,13 +5,6 @@ */ import { OrmClient } from './client'; import type { OrmClientConfig } from './client'; -import { AppAchievementRewardModel } from './models/appAchievementReward'; -import { AppEventAggregateModel } from './models/appEventAggregate'; -import { AppEventModel } from './models/appEvent'; -import { AppEventTypeModel } from './models/appEventType'; -import { AppLevelModel } from './models/appLevel'; -import { AppLevelGrantModel } from './models/appLevelGrant'; -import { AppLevelRequirementModel } from './models/appLevelRequirement'; import { AppLimitCapModel } from './models/appLimitCap'; import { AppLimitCapsDefaultModel } from './models/appLimitCapsDefault'; import { AppLimitModel } from './models/appLimit'; @@ -22,12 +15,6 @@ import { AppLimitCreditRedemptionModel } from './models/appLimitCreditRedemption import { AppLimitDefaultModel } from './models/appLimitDefault'; import { AppLimitEventModel } from './models/appLimitEvent'; import { AppLimitWarningModel } from './models/appLimitWarning'; -import { BillingUsageSummaryModel } from './models/billingUsageSummary'; -import { LedgerModel } from './models/ledger'; -import { MeterModel } from './models/meter'; -import { MeterCreditModel } from './models/meterCredit'; -import { MeterDefaultModel } from './models/meterDefault'; -import { MeterSourceModel } from './models/meterSource'; import { OrgLimitAggregateModel } from './models/orgLimitAggregate'; import { OrgLimitCapModel } from './models/orgLimitCap'; import { OrgLimitCapsDefaultModel } from './models/orgLimitCapsDefault'; @@ -36,13 +23,6 @@ import { OrgLimitCreditModel } from './models/orgLimitCredit'; import { OrgLimitDefaultModel } from './models/orgLimitDefault'; import { OrgLimitEventModel } from './models/orgLimitEvent'; import { OrgLimitWarningModel } from './models/orgLimitWarning'; -import { PlanCapModel } from './models/planCap'; -import { PlanModel } from './models/plan'; -import { PlanLimitModel } from './models/planLimit'; -import { PlanMeterLimitModel } from './models/planMeterLimit'; -import { PlanOverrideModel } from './models/planOverride'; -import { PlanPricingModel } from './models/planPricing'; -import { PlanSubscriptionModel } from './models/planSubscription'; import { createQueryOperations } from './query'; import { createMutationOperations } from './mutation'; export type { OrmClientConfig, QueryResult, GraphQLError, GraphQLAdapter } from './client'; @@ -78,13 +58,6 @@ export { createMutationOperations } from './mutation'; export function createClient(config: OrmClientConfig) { const client = new OrmClient(config); return { - appAchievementReward: new AppAchievementRewardModel(client), - appEventAggregate: new AppEventAggregateModel(client), - appEvent: new AppEventModel(client), - appEventType: new AppEventTypeModel(client), - appLevel: new AppLevelModel(client), - appLevelGrant: new AppLevelGrantModel(client), - appLevelRequirement: new AppLevelRequirementModel(client), appLimitCap: new AppLimitCapModel(client), appLimitCapsDefault: new AppLimitCapsDefaultModel(client), appLimit: new AppLimitModel(client), @@ -95,12 +68,6 @@ export function createClient(config: OrmClientConfig) { appLimitDefault: new AppLimitDefaultModel(client), appLimitEvent: new AppLimitEventModel(client), appLimitWarning: new AppLimitWarningModel(client), - billingUsageSummary: new BillingUsageSummaryModel(client), - ledger: new LedgerModel(client), - meter: new MeterModel(client), - meterCredit: new MeterCreditModel(client), - meterDefault: new MeterDefaultModel(client), - meterSource: new MeterSourceModel(client), orgLimitAggregate: new OrgLimitAggregateModel(client), orgLimitCap: new OrgLimitCapModel(client), orgLimitCapsDefault: new OrgLimitCapsDefaultModel(client), @@ -109,13 +76,6 @@ export function createClient(config: OrmClientConfig) { orgLimitDefault: new OrgLimitDefaultModel(client), orgLimitEvent: new OrgLimitEventModel(client), orgLimitWarning: new OrgLimitWarningModel(client), - planCap: new PlanCapModel(client), - plan: new PlanModel(client), - planLimit: new PlanLimitModel(client), - planMeterLimit: new PlanMeterLimitModel(client), - planOverride: new PlanOverrideModel(client), - planPricing: new PlanPricingModel(client), - planSubscription: new PlanSubscriptionModel(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 a9d363ba3a..98fcbd6020 100644 --- a/sdk/constructive-sdk/src/usage/orm/input-types.ts +++ b/sdk/constructive-sdk/src/usage/orm/input-types.ts @@ -230,119 +230,8 @@ export interface UUIDListFilter { anyGreaterThan?: string; anyGreaterThanOrEqualTo?: string; } -// ============ Custom Scalar Types ============ -export type ConstructiveInternalTypeImage = unknown; -/** Defines rewards granted when a level is achieved; supports limit_credits and meter_credits */ -// ============ Entity Types ============ -export interface AppAchievementReward { - /** Number of credits to grant; unused by capability rewards */ - amount?: number | null; - createdAt?: string | null; - /** Credit type: permanent, expiring, etc. */ - creditType?: string | null; - /** Optional duration after which the granted credit expires; NULL means never expires */ - expiresInterval?: string | null; - id: string; - /** Name of the level this reward is granted for */ - levelName?: string | null; - /** Type of reward: limit_credit, meter_credit, or capability */ - rewardType?: string | null; - /** Target limit name, meter slug, or capability catalog name */ - targetName?: string | null; - updatedAt?: string | null; -} -/** Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually */ -export interface AppEventAggregate { - actorId?: string | null; - /** Cumulative count of completed steps toward this requirement */ - count?: number | null; - createdAt?: string | null; - id: string; - /** Name identifier of the level requirement being tracked */ - name?: string | null; - /** Start of current counting period; NULL means lifetime counting */ - periodStart?: string | null; - updatedAt?: string | null; -} -/** Partitioned append-only log of individual user actions; every single event ever recorded */ -export interface AppEvent { - actorId?: string | null; - /** Number of units completed in this step action */ - count?: number | null; - createdAt?: string | null; - /** Unique identifier for each event (uuidv7 provides temporal ordering) */ - id: string; - /** Name identifier of the level requirement this step fulfills */ - name?: string | null; -} -/** Catalog of known event types with per-type configuration for aggregation, retention, and level participation */ -export interface AppEventType { - /** Aggregation mode: count, sum, last_value, or none */ - aggregation?: string | null; - /** Grouping category: onboarding, engagement, analytics, commerce, etc. */ - category?: string | null; - createdAt?: string | null; - /** Human-readable description of this event type */ - description?: string | null; - /** Whether this event type participates in the levels/badge system by updating aggregates */ - feedsLevels?: boolean | null; - id: string; - /** Whether recording of this event type is enabled */ - isActive?: boolean | null; - /** Unique name identifier for this event type */ - name?: string | null; - /** Optional period for aggregate count reset; NULL means lifetime counting */ - periodInterval?: string | null; - updatedAt?: string | null; -} -/** Defines available levels that users can achieve by completing requirements */ -export interface AppLevel { - createdAt?: string | null; - /** Human-readable description of what this level represents */ - description?: string | null; - id: string; - /** Badge or icon image associated with this level */ - image?: ConstructiveInternalTypeImage | null; - /** Unique name of the level */ - name?: string | null; - /** Optional owner (actor) who created or manages this level */ - ownerId?: string | null; - updatedAt?: string | null; -} -/** Records when a user achieves a level; prevents duplicate reward grants */ -export interface AppLevelGrant { - actorId?: string | null; - createdAt?: string | null; - /** When this grant lapses; NULL means it holds until revoked */ - expiresAt?: string | null; - id: string; - /** Name of the level that was achieved */ - levelName?: string | null; - /** Period start for periodic achievements; -infinity for non-periodic (earn-once) */ - periodStart?: string | null; - updatedAt?: string | null; -} -/** Defines the specific requirements that must be met to achieve a level */ -export interface AppLevelRequirement { - createdAt?: string | null; - /** Human-readable description of what this requirement entails */ - description?: string | null; - /** Requirements of a level sharing this key satisfy it as alternatives; NULL requires this one on its own */ - groupKey?: string | null; - id: string; - /** Name of the level this requirement belongs to */ - level?: string | null; - /** Computed signal to compare against required_count instead of an event count; currently only account_age_days */ - metric?: string | null; - /** Name identifier of the requirement (matches step names) */ - name?: string | null; - /** Display ordering priority; lower values appear first */ - priority?: number | null; - /** Number of steps needed to satisfy this requirement */ - requiredCount?: number | null; - updatedAt?: string | null; -} /** Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. */ +// ============ Entity Types ============ export interface AppLimitCap { /** Entity this cap override applies to */ entityId?: string | null; @@ -488,134 +377,6 @@ export interface AppLimitWarning { /** Threshold type: absolute (fixed count) or percentage (of max) */ warningType?: string | null; } -/** Permanent monthly usage summary per entity per meter (user-facing billing dashboard) */ -export interface BillingUsageSummary { - /** Universal credits consumed during this period */ - creditsConsumed?: string | null; - /** The entity (org, team, user) this summary belongs to */ - entityId?: string | null; - /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */ - entityType?: string | null; - id: string; - /** Which meter this summary tracks */ - meterSlug?: string | null; - /** Resolved billable organization via get_organization_id */ - organizationId?: string | null; - /** Units consumed beyond the plan limit (quantity_used - plan_limit when positive) */ - overageUnits?: string | null; - /** End of the billing period this summary covers */ - periodEnd?: string | null; - /** Start of the billing period this summary covers */ - periodStart?: string | null; - /** Plan limit that was in effect during this period */ - planLimit?: string | null; - /** Total units consumed during this period */ - quantityUsed?: string | null; -} -/** Append-only event log for all billing events (usage, grants, adjustments) */ -export interface Ledger { - createdAt?: string | null; - /** Change amount (positive = grant/credit, negative = consumption/debit) */ - delta?: string | null; - /** The entity this ledger entry belongs to */ - entityId?: string | null; - /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */ - entityType?: string | null; - /** Specific type: increment, decrement, credit_purchase, plan_grant, reset, adjustment */ - entryType?: string | null; - /** Unique identifier for each ledger entry */ - id: string; - /** Classification: usage, grant, adjustment, refund */ - ledgerClass?: string | null; - /** Additional context (reason, source, Stripe receipt, etc.) */ - metadata?: Record | null; - /** Which meter this entry is for */ - meterSlug?: string | null; - /** Resolved billable organization via get_organization_id */ - organizationId?: string | null; - /** Running total of usage after this entry */ - usageAfter?: string | null; -} -/** Defines billable meters (what to track: quotas, feature flags, credit pools) */ -export interface Meter { - /** How usage is aggregated: cumulative (sum over period) or peak (max watermark) */ - aggregation?: string | null; - /** Slug of the category pool meter this meter belongs to. When set, usage overflow charges the category pool before falling through to universal credits. NULL means skip category pool and fall through directly to universal. */ - categoryMeter?: string | null; - /** Universal credits consumed per unit of this meter. NULL disables universal credit fallback. */ - creditCost?: number | null; - /** Human-readable name for the meter */ - displayName?: string | null; - id: string; - /** Whether this meter is currently active */ - isActive?: boolean | null; - /** Type of meter: quota (consumable), boolean (feature flag), or usage_pool (category aggregator) */ - meterType?: string | null; - /** Reset cadence for this meter (e.g. 1 month, 1 year). NULL means no periodic reset. */ - periodInterval?: string | null; - /** Maximum unused units that carry forward on rollover reset. NULL means unlimited rollover. */ - rolloverCap?: string | null; - /** Unique identifier for the meter (e.g. api_requests, storage_gb, seats) */ - slug?: string | null; - /** Unit of measurement for this meter (e.g. tokens, characters, audio_seconds, pages, images, megapixels, bytes, requests, compute_ms, credits) */ - unit?: string | null; -} -/** Append-only ledger of credit grants for billing meters that automatically update balances */ -export interface MeterCredit { - /** Number of credits to grant (positive to add, negative to revoke) */ - amount?: string | null; - /** When this credit was granted */ - createdAt?: string | null; - /** Credit behavior: permanent (survives reset), period (zeroed on reset), or rollover (unused portion carries forward) */ - creditType?: string | null; - /** Entity this credit applies to */ - entityId?: string | null; - /** Membership prefix identifying the entity kind (org, team, app) */ - entityType?: string | null; - /** When this credit expires. NULL means the credit never expires. */ - expiresAt?: string | null; - id: string; - /** FK to meters — which meter definition this credit applies to */ - meterId?: string | null; - /** Resolved billable organization via get_organization_id */ - organizationId?: string | null; - /** Optional reason for the credit grant (promo code, admin grant, etc.) */ - reason?: string | null; -} -/** Default meter catalog: defines which meters are available and their default plan_limit values for new entities */ -export interface MeterDefault { - /** Slug of the category pool meter (usage_pool) this meter belongs to, enabling the per-task -> category -> universal waterfall for default-provisioned meters. NULL skips the category pool. */ - categoryMeter?: string | null; - /** Universal credits consumed per unit of this meter. NULL disables universal credit fallback. */ - creditCost?: string | null; - /** Default plan_limit value for new entity balances. 0 means no quota; -1 (negative) means unlimited. */ - defaultPlanLimit?: string | null; - /** Human-readable name for the default meter */ - displayName?: string | null; - id: string; - /** Whether this default meter is actively provisioned for new entities */ - isActive?: boolean | null; - /** Type of meter: quota, boolean, or usage_pool */ - meterType?: string | null; - /** Meter slug that matches the slug in the meters table */ - slug?: string | null; - /** Unit of measurement for this meter (e.g. tokens, requests, images, compute_ms, credits) */ - unit?: string | null; -} -/** Maps billing meters to typed usage summary table columns for automated usage reconciliation. Each row tells reconcile_typed_usage() which column to aggregate and how. */ -export interface MeterSource { - /** How to aggregate the column. Built-in types: sum, sum_bytes_to_gb, peak. Custom types supported. */ - aggregationType?: string | null; - /** Column name in the typed usage summary table (e.g. total_reads, avg_read_time_ms, size_bytes) */ - dimensionPath?: string | null; - id: string; - /** Soft-delete flag. Inactive sources are skipped during reconciliation. */ - isActive?: boolean | null; - /** Slug of the billing meter this source feeds (matches meters.slug in the billing module) */ - meterSlug?: string | null; - /** Source table type: table_usage (db_table_stats_usage_summary), query_time (db_query_stats_usage_summary), or row_count (trigger-based, skipped by reconcile) */ - sourceMetric?: string | null; -} /** Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) */ export interface OrgLimitAggregate { /** Entity (org) whose aggregate usage is being tracked */ @@ -765,94 +526,6 @@ export interface OrgLimitWarning { /** Threshold type: absolute (fixed count) or percentage (of max) */ warningType?: string | null; } -/** Maps each plan to feature flag cap values (written to limit_caps when plan is applied) */ -export interface PlanCap { - /** Name of the cap/feature flag this plan sets (must match a name in caps_defaults or limit_caps) */ - capName?: string | null; - /** Cap value to set when this plan is applied. Convention: 0=disabled, 1=enabled, N=numeric cap, negative=unlimited */ - capValue?: string | null; - id: string; - /** Reference to the plan this cap setting belongs to */ - planId?: string | null; -} -/** Defines plan tiers with named limit configurations */ -export interface Plan { - /** Human-readable description of the plan tier */ - description?: string | null; - id: string; - /** Whether this plan can currently be applied to entities */ - isActive?: boolean | null; - /** Unique name identifier of the plan (e.g. free, pro, enterprise) */ - name?: string | null; -} -/** Maps each plan to specific limit names and their maximum allowed values */ -export interface PlanLimit { - id: string; - /** Name of the limit this plan sets (must match the name field in a limits table) */ - limitName?: string | null; - /** Maximum value to set on the limit when this plan is applied; negative means unlimited */ - maxValue?: string | null; - /** Reference to the plan this limit configuration belongs to */ - planId?: string | null; -} -/** Maps each plan to billing meter quotas (plan_limit values written to balances when plan is applied) */ -export interface PlanMeterLimit { - id: string; - /** Slug of the billing meter this plan sets a quota for (must match a slug in the meters table) */ - meterSlug?: string | null; - /** Reference to the plan this meter limit belongs to */ - planId?: string | null; - /** Billing quota to set on the balance when this plan is applied; negative means unlimited */ - planLimit?: string | null; -} -/** Per-entity limit overrides that take precedence over plan defaults */ -export interface PlanOverride { - /** Entity receiving the custom override (personal org or actual org) */ - entityId?: string | null; - /** When this override expires; NULL means permanent */ - expiresAt?: string | null; - id: string; - /** Name of the limit being overridden */ - limitName?: string | null; - /** Override maximum value; negative means unlimited */ - maxValue?: string | null; - /** Admin note explaining why this override was granted */ - reason?: string | null; -} -/** Billing intervals and pricing for each plan tier */ -export interface PlanPricing { - /** Billing cycle identifier (e.g. monthly, yearly, lifetime) */ - billingInterval?: string | null; - /** ISO 4217 currency code (lowercase) */ - currency?: string | null; - /** Discount percentage off the base price (0-100); NULL means no discount */ - discountPercent?: string | null; - id: string; - /** Whether this pricing option is currently available */ - isActive?: boolean | null; - /** Reference to the plan this pricing belongs to */ - planId?: string | null; - /** Price in smallest currency unit (e.g. cents); negative means contact-sales */ - price?: string | null; -} -/** Assigns a plan to an entity with subscription lifecycle (start, end, active state) */ -export interface PlanSubscription { - /** When the subscription expires (NULL = no expiration) */ - endsAt?: string | null; - /** The entity (org, team, user) this subscription belongs to */ - entityId?: string | null; - /** Membership prefix identifying the entity kind (org, team, app) */ - entityType?: string | null; - id: string; - /** Whether the subscription is currently active */ - isActive?: boolean | null; - /** Resolved billable organization via get_organization_id */ - organizationId?: string | null; - /** Reference to the plan this subscription is for */ - planId?: string | null; - /** When the subscription becomes active */ - startsAt?: string | null; -} // ============ Relation Helper Types ============ export interface ConnectionResult { nodes: T[]; @@ -866,13 +539,6 @@ export interface PageInfo { endCursor?: string | null; } // ============ Entity Relation Types ============ -export interface AppAchievementRewardRelations {} -export interface AppEventAggregateRelations {} -export interface AppEventRelations {} -export interface AppEventTypeRelations {} -export interface AppLevelRelations {} -export interface AppLevelGrantRelations {} -export interface AppLevelRequirementRelations {} export interface AppLimitCapRelations {} export interface AppLimitCapsDefaultRelations {} export interface AppLimitRelations {} @@ -896,16 +562,6 @@ export interface AppLimitDefaultRelations { } export interface AppLimitEventRelations {} export interface AppLimitWarningRelations {} -export interface BillingUsageSummaryRelations {} -export interface LedgerRelations {} -export interface MeterRelations { - meterCredits?: ConnectionResult; -} -export interface MeterCreditRelations { - meter?: Meter | null; -} -export interface MeterDefaultRelations {} -export interface MeterSourceRelations {} export interface OrgLimitAggregateRelations {} export interface OrgLimitCapRelations {} export interface OrgLimitCapsDefaultRelations {} @@ -918,38 +574,7 @@ export interface OrgLimitDefaultRelations { } export interface OrgLimitEventRelations {} export interface OrgLimitWarningRelations {} -export interface PlanCapRelations { - plan?: Plan | null; -} -export interface PlanRelations { - planCaps?: ConnectionResult; - planLimits?: ConnectionResult; - planMeterLimits?: ConnectionResult; - planPricings?: ConnectionResult; - planSubscriptions?: ConnectionResult; -} -export interface PlanLimitRelations { - plan?: Plan | null; -} -export interface PlanMeterLimitRelations { - plan?: Plan | null; -} -export interface PlanOverrideRelations {} -export interface PlanPricingRelations { - plan?: Plan | null; -} -export interface PlanSubscriptionRelations { - plan?: Plan | null; -} // ============ Entity Types With Relations ============ -export type AppAchievementRewardWithRelations = AppAchievementReward & - AppAchievementRewardRelations; -export type AppEventAggregateWithRelations = AppEventAggregate & AppEventAggregateRelations; -export type AppEventWithRelations = AppEvent & AppEventRelations; -export type AppEventTypeWithRelations = AppEventType & AppEventTypeRelations; -export type AppLevelWithRelations = AppLevel & AppLevelRelations; -export type AppLevelGrantWithRelations = AppLevelGrant & AppLevelGrantRelations; -export type AppLevelRequirementWithRelations = AppLevelRequirement & AppLevelRequirementRelations; export type AppLimitCapWithRelations = AppLimitCap & AppLimitCapRelations; export type AppLimitCapsDefaultWithRelations = AppLimitCapsDefault & AppLimitCapsDefaultRelations; export type AppLimitWithRelations = AppLimit & AppLimitRelations; @@ -962,12 +587,6 @@ export type AppLimitCreditRedemptionWithRelations = AppLimitCreditRedemption & export type AppLimitDefaultWithRelations = AppLimitDefault & AppLimitDefaultRelations; export type AppLimitEventWithRelations = AppLimitEvent & AppLimitEventRelations; export type AppLimitWarningWithRelations = AppLimitWarning & AppLimitWarningRelations; -export type BillingUsageSummaryWithRelations = BillingUsageSummary & BillingUsageSummaryRelations; -export type LedgerWithRelations = Ledger & LedgerRelations; -export type MeterWithRelations = Meter & MeterRelations; -export type MeterCreditWithRelations = MeterCredit & MeterCreditRelations; -export type MeterDefaultWithRelations = MeterDefault & MeterDefaultRelations; -export type MeterSourceWithRelations = MeterSource & MeterSourceRelations; export type OrgLimitAggregateWithRelations = OrgLimitAggregate & OrgLimitAggregateRelations; export type OrgLimitCapWithRelations = OrgLimitCap & OrgLimitCapRelations; export type OrgLimitCapsDefaultWithRelations = OrgLimitCapsDefault & OrgLimitCapsDefaultRelations; @@ -976,83 +595,7 @@ export type OrgLimitCreditWithRelations = OrgLimitCredit & OrgLimitCreditRelatio export type OrgLimitDefaultWithRelations = OrgLimitDefault & OrgLimitDefaultRelations; export type OrgLimitEventWithRelations = OrgLimitEvent & OrgLimitEventRelations; export type OrgLimitWarningWithRelations = OrgLimitWarning & OrgLimitWarningRelations; -export type PlanCapWithRelations = PlanCap & PlanCapRelations; -export type PlanWithRelations = Plan & PlanRelations; -export type PlanLimitWithRelations = PlanLimit & PlanLimitRelations; -export type PlanMeterLimitWithRelations = PlanMeterLimit & PlanMeterLimitRelations; -export type PlanOverrideWithRelations = PlanOverride & PlanOverrideRelations; -export type PlanPricingWithRelations = PlanPricing & PlanPricingRelations; -export type PlanSubscriptionWithRelations = PlanSubscription & PlanSubscriptionRelations; // ============ Entity Select Types ============ -export type AppAchievementRewardSelect = { - amount?: boolean; - createdAt?: boolean; - creditType?: boolean; - expiresInterval?: boolean; - id?: boolean; - levelName?: boolean; - rewardType?: boolean; - targetName?: boolean; - updatedAt?: boolean; -}; -export type AppEventAggregateSelect = { - actorId?: boolean; - count?: boolean; - createdAt?: boolean; - id?: boolean; - name?: boolean; - periodStart?: boolean; - updatedAt?: boolean; -}; -export type AppEventSelect = { - actorId?: boolean; - count?: boolean; - createdAt?: boolean; - id?: boolean; - name?: boolean; -}; -export type AppEventTypeSelect = { - aggregation?: boolean; - category?: boolean; - createdAt?: boolean; - description?: boolean; - feedsLevels?: boolean; - id?: boolean; - isActive?: boolean; - name?: boolean; - periodInterval?: boolean; - updatedAt?: boolean; -}; -export type AppLevelSelect = { - createdAt?: boolean; - description?: boolean; - id?: boolean; - image?: boolean; - name?: boolean; - ownerId?: boolean; - updatedAt?: boolean; -}; -export type AppLevelGrantSelect = { - actorId?: boolean; - createdAt?: boolean; - expiresAt?: boolean; - id?: boolean; - levelName?: boolean; - periodStart?: boolean; - updatedAt?: boolean; -}; -export type AppLevelRequirementSelect = { - createdAt?: boolean; - description?: boolean; - groupKey?: boolean; - id?: boolean; - level?: boolean; - metric?: boolean; - name?: boolean; - priority?: boolean; - requiredCount?: boolean; - updatedAt?: boolean; -}; export type AppLimitCapSelect = { entityId?: boolean; id?: boolean; @@ -1172,85 +715,6 @@ export type AppLimitWarningSelect = { thresholdValue?: boolean; warningType?: boolean; }; -export type BillingUsageSummarySelect = { - creditsConsumed?: boolean; - entityId?: boolean; - entityType?: boolean; - id?: boolean; - meterSlug?: boolean; - organizationId?: boolean; - overageUnits?: boolean; - periodEnd?: boolean; - periodStart?: boolean; - planLimit?: boolean; - quantityUsed?: boolean; -}; -export type LedgerSelect = { - createdAt?: boolean; - delta?: boolean; - entityId?: boolean; - entityType?: boolean; - entryType?: boolean; - id?: boolean; - ledgerClass?: boolean; - metadata?: boolean; - meterSlug?: boolean; - organizationId?: boolean; - usageAfter?: boolean; -}; -export type MeterSelect = { - aggregation?: boolean; - categoryMeter?: boolean; - creditCost?: boolean; - displayName?: boolean; - id?: boolean; - isActive?: boolean; - meterType?: boolean; - periodInterval?: boolean; - rolloverCap?: boolean; - slug?: boolean; - unit?: boolean; - meterCredits?: { - select: MeterCreditSelect; - first?: number; - filter?: MeterCreditFilter; - orderBy?: MeterCreditOrderBy[]; - }; -}; -export type MeterCreditSelect = { - amount?: boolean; - createdAt?: boolean; - creditType?: boolean; - entityId?: boolean; - entityType?: boolean; - expiresAt?: boolean; - id?: boolean; - meterId?: boolean; - organizationId?: boolean; - reason?: boolean; - meter?: { - select: MeterSelect; - }; -}; -export type MeterDefaultSelect = { - categoryMeter?: boolean; - creditCost?: boolean; - defaultPlanLimit?: boolean; - displayName?: boolean; - id?: boolean; - isActive?: boolean; - meterType?: boolean; - slug?: boolean; - unit?: boolean; -}; -export type MeterSourceSelect = { - aggregationType?: boolean; - dimensionPath?: boolean; - id?: boolean; - isActive?: boolean; - meterSlug?: boolean; - sourceMetric?: boolean; -}; export type OrgLimitAggregateSelect = { entityId?: boolean; entityType?: boolean; @@ -1343,334 +807,72 @@ export type OrgLimitWarningSelect = { thresholdValue?: boolean; warningType?: boolean; }; -export type PlanCapSelect = { - capName?: boolean; - capValue?: boolean; - id?: boolean; - planId?: boolean; - plan?: { - select: PlanSelect; - }; -}; -export type PlanSelect = { - description?: boolean; - id?: boolean; - isActive?: boolean; - name?: boolean; - planCaps?: { - select: PlanCapSelect; - first?: number; - filter?: PlanCapFilter; - orderBy?: PlanCapOrderBy[]; - }; - planLimits?: { - select: PlanLimitSelect; - first?: number; - filter?: PlanLimitFilter; - orderBy?: PlanLimitOrderBy[]; - }; - planMeterLimits?: { - select: PlanMeterLimitSelect; - first?: number; - filter?: PlanMeterLimitFilter; - orderBy?: PlanMeterLimitOrderBy[]; - }; - planPricings?: { - select: PlanPricingSelect; - first?: number; - filter?: PlanPricingFilter; - orderBy?: PlanPricingOrderBy[]; - }; - planSubscriptions?: { - select: PlanSubscriptionSelect; - first?: number; - filter?: PlanSubscriptionFilter; - orderBy?: PlanSubscriptionOrderBy[]; - }; -}; -export type PlanLimitSelect = { - id?: boolean; - limitName?: boolean; - maxValue?: boolean; - planId?: boolean; - plan?: { - select: PlanSelect; - }; -}; -export type PlanMeterLimitSelect = { - id?: boolean; - meterSlug?: boolean; - planId?: boolean; - planLimit?: boolean; - plan?: { - select: PlanSelect; - }; -}; -export type PlanOverrideSelect = { - entityId?: boolean; - expiresAt?: boolean; - id?: boolean; - limitName?: boolean; - maxValue?: boolean; - reason?: boolean; -}; -export type PlanPricingSelect = { - billingInterval?: boolean; - currency?: boolean; - discountPercent?: boolean; - id?: boolean; - isActive?: boolean; - planId?: boolean; - price?: boolean; - plan?: { - select: PlanSelect; - }; -}; -export type PlanSubscriptionSelect = { - endsAt?: boolean; - entityId?: boolean; - entityType?: boolean; - id?: boolean; - isActive?: boolean; - organizationId?: boolean; - planId?: boolean; - startsAt?: boolean; - plan?: { - select: PlanSelect; - }; -}; // ============ Table Filter Types ============ -export interface AppAchievementRewardFilter { - /** Filter by the object’s `amount` field. */ - amount?: IntFilter; - /** Checks for all expressions in this list. */ - and?: AppAchievementRewardFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `creditType` field. */ - creditType?: StringFilter; - /** Filter by the object’s `expiresInterval` field. */ - expiresInterval?: IntervalFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `levelName` field. */ - levelName?: StringFilter; - /** Negates the expression. */ - not?: AppAchievementRewardFilter; - /** Checks for any expressions in this list. */ - or?: AppAchievementRewardFilter[]; - /** Filter by the object’s `rewardType` field. */ - rewardType?: StringFilter; - /** Filter by the object’s `targetName` field. */ - targetName?: StringFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -export interface AppEventAggregateFilter { - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; +export interface AppLimitCapFilter { /** Checks for all expressions in this list. */ - and?: AppEventAggregateFilter[]; - /** Filter by the object’s `count` field. */ - count?: IntFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; + and?: AppLimitCapFilter[]; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; /** Negates the expression. */ - not?: AppEventAggregateFilter; + not?: AppLimitCapFilter; /** Checks for any expressions in this list. */ - or?: AppEventAggregateFilter[]; - /** Filter by the object’s `periodStart` field. */ - periodStart?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; + or?: AppLimitCapFilter[]; } -export interface AppEventFilter { - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; +export interface AppLimitCapsDefaultFilter { /** Checks for all expressions in this list. */ - and?: AppEventFilter[]; - /** Filter by the object’s `count` field. */ - count?: IntFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; + and?: AppLimitCapsDefaultFilter[]; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; /** Negates the expression. */ - not?: AppEventFilter; + not?: AppLimitCapsDefaultFilter; /** Checks for any expressions in this list. */ - or?: AppEventFilter[]; + or?: AppLimitCapsDefaultFilter[]; } -export interface AppEventTypeFilter { - /** Filter by the object’s `aggregation` field. */ - aggregation?: StringFilter; +export interface AppLimitFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: AppEventTypeFilter[]; - /** Filter by the object’s `category` field. */ - category?: StringFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `feedsLevels` field. */ - feedsLevels?: BooleanFilter; + and?: AppLimitFilter[]; + /** Filter by the object’s `entityType` field. */ + entityType?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `isActive` field. */ - isActive?: BooleanFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; /** Negates the expression. */ - not?: AppEventTypeFilter; + not?: AppLimitFilter; + /** Filter by the object’s `num` field. */ + num?: BigIntFilter; /** Checks for any expressions in this list. */ - or?: AppEventTypeFilter[]; - /** Filter by the object’s `periodInterval` field. */ - periodInterval?: IntervalFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; + or?: AppLimitFilter[]; + /** Filter by the object’s `organizationId` field. */ + organizationId?: UUIDFilter; + /** Filter by the object’s `periodCredits` field. */ + periodCredits?: BigIntFilter; + /** Filter by the object’s `planMax` field. */ + planMax?: BigIntFilter; + /** Filter by the object’s `purchasedCredits` field. */ + purchasedCredits?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; + /** Filter by the object’s `windowDuration` field. */ + windowDuration?: IntervalFilter; + /** Filter by the object’s `windowStart` field. */ + windowStart?: DatetimeFilter; } -export interface AppLevelFilter { - /** Checks for all expressions in this list. */ - and?: AppLevelFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `image` field. */ - image?: ConstructiveInternalTypeImageFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Negates the expression. */ - not?: AppLevelFilter; - /** Checks for any expressions in this list. */ - or?: AppLevelFilter[]; - /** Filter by the object’s `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -export interface AppLevelGrantFilter { - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: AppLevelGrantFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `expiresAt` field. */ - expiresAt?: DatetimeFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `levelName` field. */ - levelName?: StringFilter; - /** Negates the expression. */ - not?: AppLevelGrantFilter; - /** Checks for any expressions in this list. */ - or?: AppLevelGrantFilter[]; - /** Filter by the object’s `periodStart` field. */ - periodStart?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -export interface AppLevelRequirementFilter { - /** Checks for all expressions in this list. */ - and?: AppLevelRequirementFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `groupKey` field. */ - groupKey?: StringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `level` field. */ - level?: StringFilter; - /** Filter by the object’s `metric` field. */ - metric?: StringFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Negates the expression. */ - not?: AppLevelRequirementFilter; - /** Checks for any expressions in this list. */ - or?: AppLevelRequirementFilter[]; - /** Filter by the object’s `priority` field. */ - priority?: IntFilter; - /** Filter by the object’s `requiredCount` field. */ - requiredCount?: IntFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -export interface AppLimitCapFilter { - /** Checks for all expressions in this list. */ - and?: AppLimitCapFilter[]; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Negates the expression. */ - not?: AppLimitCapFilter; - /** Checks for any expressions in this list. */ - or?: AppLimitCapFilter[]; -} -export interface AppLimitCapsDefaultFilter { - /** Checks for all expressions in this list. */ - and?: AppLimitCapsDefaultFilter[]; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Negates the expression. */ - not?: AppLimitCapsDefaultFilter; - /** Checks for any expressions in this list. */ - or?: AppLimitCapsDefaultFilter[]; -} -export interface AppLimitFilter { - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitFilter[]; - /** Filter by the object’s `entityType` field. */ - entityType?: StringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Negates the expression. */ - not?: AppLimitFilter; - /** Filter by the object’s `num` field. */ - num?: BigIntFilter; - /** Checks for any expressions in this list. */ - or?: AppLimitFilter[]; - /** Filter by the object’s `organizationId` field. */ - organizationId?: UUIDFilter; - /** Filter by the object’s `periodCredits` field. */ - periodCredits?: BigIntFilter; - /** Filter by the object’s `planMax` field. */ - planMax?: BigIntFilter; - /** Filter by the object’s `purchasedCredits` field. */ - purchasedCredits?: BigIntFilter; - /** Filter by the object’s `softMax` field. */ - softMax?: BigIntFilter; - /** Filter by the object’s `windowDuration` field. */ - windowDuration?: IntervalFilter; - /** Filter by the object’s `windowStart` field. */ - windowStart?: DatetimeFilter; -} -export interface AppLimitCreditCodeFilter { +export interface AppLimitCreditCodeFilter { /** Checks for all expressions in this list. */ and?: AppLimitCreditCodeFilter[]; /** Filter by the object’s `appLimitCreditCodeItemsByCreditCodeId` relation. */ @@ -1836,176 +1038,6 @@ export interface AppLimitWarningFilter { /** Filter by the object’s `warningType` field. */ warningType?: StringFilter; } -export interface BillingUsageSummaryFilter { - /** Checks for all expressions in this list. */ - and?: BillingUsageSummaryFilter[]; - /** Filter by the object’s `creditsConsumed` field. */ - creditsConsumed?: BigIntFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `entityType` field. */ - entityType?: StringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `meterSlug` field. */ - meterSlug?: StringFilter; - /** Negates the expression. */ - not?: BillingUsageSummaryFilter; - /** Checks for any expressions in this list. */ - or?: BillingUsageSummaryFilter[]; - /** Filter by the object’s `organizationId` field. */ - organizationId?: UUIDFilter; - /** Filter by the object’s `overageUnits` field. */ - overageUnits?: BigIntFilter; - /** Filter by the object’s `periodEnd` field. */ - periodEnd?: DatetimeFilter; - /** Filter by the object’s `periodStart` field. */ - periodStart?: DatetimeFilter; - /** Filter by the object’s `planLimit` field. */ - planLimit?: BigIntFilter; - /** Filter by the object’s `quantityUsed` field. */ - quantityUsed?: BigIntFilter; -} -export interface LedgerFilter { - /** Checks for all expressions in this list. */ - and?: LedgerFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `delta` field. */ - delta?: BigIntFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `entityType` field. */ - entityType?: StringFilter; - /** Filter by the object’s `entryType` field. */ - entryType?: StringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `ledgerClass` field. */ - ledgerClass?: StringFilter; - /** Filter by the object’s `metadata` field. */ - metadata?: JSONFilter; - /** Filter by the object’s `meterSlug` field. */ - meterSlug?: StringFilter; - /** Negates the expression. */ - not?: LedgerFilter; - /** Checks for any expressions in this list. */ - or?: LedgerFilter[]; - /** Filter by the object’s `organizationId` field. */ - organizationId?: UUIDFilter; - /** Filter by the object’s `usageAfter` field. */ - usageAfter?: BigIntFilter; -} -export interface MeterFilter { - /** Filter by the object’s `aggregation` field. */ - aggregation?: StringFilter; - /** Checks for all expressions in this list. */ - and?: MeterFilter[]; - /** Filter by the object’s `categoryMeter` field. */ - categoryMeter?: StringFilter; - /** Filter by the object’s `creditCost` field. */ - creditCost?: IntFilter; - /** Filter by the object’s `displayName` field. */ - displayName?: StringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isActive` field. */ - isActive?: BooleanFilter; - /** Filter by the object’s `meterCredits` relation. */ - meterCredits?: MeterToManyMeterCreditFilter; - /** `meterCredits` exist. */ - meterCreditsExist?: boolean; - /** Filter by the object’s `meterType` field. */ - meterType?: StringFilter; - /** Negates the expression. */ - not?: MeterFilter; - /** Checks for any expressions in this list. */ - or?: MeterFilter[]; - /** Filter by the object’s `periodInterval` field. */ - periodInterval?: IntervalFilter; - /** Filter by the object’s `rolloverCap` field. */ - rolloverCap?: BigIntFilter; - /** Filter by the object’s `slug` field. */ - slug?: StringFilter; - /** Filter by the object’s `unit` field. */ - unit?: StringFilter; -} -export interface MeterCreditFilter { - /** Filter by the object’s `amount` field. */ - amount?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: MeterCreditFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `creditType` field. */ - creditType?: StringFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `entityType` field. */ - entityType?: StringFilter; - /** Filter by the object’s `expiresAt` field. */ - expiresAt?: DatetimeFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `meter` relation. */ - meter?: MeterFilter; - /** Filter by the object’s `meterId` field. */ - meterId?: UUIDFilter; - /** Negates the expression. */ - not?: MeterCreditFilter; - /** Checks for any expressions in this list. */ - or?: MeterCreditFilter[]; - /** Filter by the object’s `organizationId` field. */ - organizationId?: UUIDFilter; - /** Filter by the object’s `reason` field. */ - reason?: StringFilter; -} -export interface MeterDefaultFilter { - /** Checks for all expressions in this list. */ - and?: MeterDefaultFilter[]; - /** Filter by the object’s `categoryMeter` field. */ - categoryMeter?: StringFilter; - /** Filter by the object’s `creditCost` field. */ - creditCost?: BigFloatFilter; - /** Filter by the object’s `defaultPlanLimit` field. */ - defaultPlanLimit?: BigIntFilter; - /** Filter by the object’s `displayName` field. */ - displayName?: StringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isActive` field. */ - isActive?: BooleanFilter; - /** Filter by the object’s `meterType` field. */ - meterType?: StringFilter; - /** Negates the expression. */ - not?: MeterDefaultFilter; - /** Checks for any expressions in this list. */ - or?: MeterDefaultFilter[]; - /** Filter by the object’s `slug` field. */ - slug?: StringFilter; - /** Filter by the object’s `unit` field. */ - unit?: StringFilter; -} -export interface MeterSourceFilter { - /** Filter by the object’s `aggregationType` field. */ - aggregationType?: StringFilter; - /** Checks for all expressions in this list. */ - and?: MeterSourceFilter[]; - /** Filter by the object’s `dimensionPath` field. */ - dimensionPath?: StringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isActive` field. */ - isActive?: BooleanFilter; - /** Filter by the object’s `meterSlug` field. */ - meterSlug?: StringFilter; - /** Negates the expression. */ - not?: MeterSourceFilter; - /** Checks for any expressions in this list. */ - or?: MeterSourceFilter[]; - /** Filter by the object’s `sourceMetric` field. */ - sourceMetric?: StringFilter; -} export interface OrgLimitAggregateFilter { /** Checks for all expressions in this list. */ and?: OrgLimitAggregateFilter[]; @@ -2210,347 +1242,49 @@ export interface OrgLimitWarningFilter { /** Filter by the object’s `warningType` field. */ warningType?: StringFilter; } -export interface PlanCapFilter { - /** Checks for all expressions in this list. */ - and?: PlanCapFilter[]; - /** Filter by the object’s `capName` field. */ - capName?: StringFilter; - /** Filter by the object’s `capValue` field. */ - capValue?: BigIntFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Negates the expression. */ - not?: PlanCapFilter; - /** Checks for any expressions in this list. */ - or?: PlanCapFilter[]; - /** Filter by the object’s `plan` relation. */ - plan?: PlanFilter; - /** Filter by the object’s `planId` field. */ - planId?: UUIDFilter; -} -export interface PlanFilter { - /** Checks for all expressions in this list. */ - and?: PlanFilter[]; - /** Filter by the object’s `description` field. */ - description?: 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?: PlanFilter; - /** Checks for any expressions in this list. */ - or?: PlanFilter[]; - /** Filter by the object’s `planCaps` relation. */ - planCaps?: PlanToManyPlanCapFilter; - /** `planCaps` exist. */ - planCapsExist?: boolean; - /** Filter by the object’s `planLimits` relation. */ - planLimits?: PlanToManyPlanLimitFilter; - /** `planLimits` exist. */ - planLimitsExist?: boolean; - /** Filter by the object’s `planMeterLimits` relation. */ - planMeterLimits?: PlanToManyPlanMeterLimitFilter; - /** `planMeterLimits` exist. */ - planMeterLimitsExist?: boolean; - /** Filter by the object’s `planPricings` relation. */ - planPricings?: PlanToManyPlanPricingFilter; - /** `planPricings` exist. */ - planPricingsExist?: boolean; - /** Filter by the object’s `planSubscriptions` relation. */ - planSubscriptions?: PlanToManyPlanSubscriptionFilter; - /** `planSubscriptions` exist. */ - planSubscriptionsExist?: boolean; -} -export interface PlanLimitFilter { - /** Checks for all expressions in this list. */ - and?: PlanLimitFilter[]; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `limitName` field. */ - limitName?: StringFilter; - /** Filter by the object’s `maxValue` field. */ - maxValue?: BigIntFilter; - /** Negates the expression. */ - not?: PlanLimitFilter; - /** Checks for any expressions in this list. */ - or?: PlanLimitFilter[]; - /** Filter by the object’s `plan` relation. */ - plan?: PlanFilter; - /** Filter by the object’s `planId` field. */ - planId?: UUIDFilter; -} -export interface PlanMeterLimitFilter { - /** Checks for all expressions in this list. */ - and?: PlanMeterLimitFilter[]; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `meterSlug` field. */ - meterSlug?: StringFilter; - /** Negates the expression. */ - not?: PlanMeterLimitFilter; - /** Checks for any expressions in this list. */ - or?: PlanMeterLimitFilter[]; - /** Filter by the object’s `plan` relation. */ - plan?: PlanFilter; - /** Filter by the object’s `planId` field. */ - planId?: UUIDFilter; - /** Filter by the object’s `planLimit` field. */ - planLimit?: BigIntFilter; -} -export interface PlanOverrideFilter { - /** Checks for all expressions in this list. */ - and?: PlanOverrideFilter[]; - /** 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 `limitName` field. */ - limitName?: StringFilter; - /** Filter by the object’s `maxValue` field. */ - maxValue?: BigIntFilter; - /** Negates the expression. */ - not?: PlanOverrideFilter; - /** Checks for any expressions in this list. */ - or?: PlanOverrideFilter[]; - /** Filter by the object’s `reason` field. */ - reason?: StringFilter; -} -export interface PlanPricingFilter { - /** Checks for all expressions in this list. */ - and?: PlanPricingFilter[]; - /** Filter by the object’s `billingInterval` field. */ - billingInterval?: StringFilter; - /** Filter by the object’s `currency` field. */ - currency?: StringFilter; - /** Filter by the object’s `discountPercent` field. */ - discountPercent?: BigFloatFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isActive` field. */ - isActive?: BooleanFilter; - /** Negates the expression. */ - not?: PlanPricingFilter; - /** Checks for any expressions in this list. */ - or?: PlanPricingFilter[]; - /** Filter by the object’s `plan` relation. */ - plan?: PlanFilter; - /** Filter by the object’s `planId` field. */ - planId?: UUIDFilter; - /** Filter by the object’s `price` field. */ - price?: BigIntFilter; -} -export interface PlanSubscriptionFilter { - /** Checks for all expressions in this list. */ - and?: PlanSubscriptionFilter[]; - /** Filter by the object’s `endsAt` field. */ - endsAt?: DatetimeFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `entityType` field. */ - entityType?: StringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isActive` field. */ - isActive?: BooleanFilter; - /** Negates the expression. */ - not?: PlanSubscriptionFilter; - /** Checks for any expressions in this list. */ - or?: PlanSubscriptionFilter[]; - /** Filter by the object’s `organizationId` field. */ - organizationId?: UUIDFilter; - /** Filter by the object’s `plan` relation. */ - plan?: PlanFilter; - /** Filter by the object’s `planId` field. */ - planId?: UUIDFilter; - /** Filter by the object’s `startsAt` field. */ - startsAt?: DatetimeFilter; -} // ============ OrderBy Types ============ -export type AppAchievementRewardOrderBy = - | 'AMOUNT_ASC' - | 'AMOUNT_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'CREDIT_TYPE_ASC' - | 'CREDIT_TYPE_DESC' - | 'EXPIRES_INTERVAL_ASC' - | 'EXPIRES_INTERVAL_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'LEVEL_NAME_ASC' - | 'LEVEL_NAME_DESC' - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'REWARD_TYPE_ASC' - | 'REWARD_TYPE_DESC' - | 'TARGET_NAME_ASC' - | 'TARGET_NAME_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type AppEventAggregateOrderBy = - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'COUNT_ASC' - | 'COUNT_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' +export type AppLimitCapOrderBy = + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' | 'ID_ASC' | 'ID_DESC' + | 'MAX_ASC' + | 'MAX_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'NATURAL' - | 'PERIOD_START_ASC' - | 'PERIOD_START_DESC' | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type AppEventOrderBy = - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'COUNT_ASC' - | 'COUNT_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' + | 'PRIMARY_KEY_DESC'; +export type AppLimitCapsDefaultOrderBy = | 'ID_ASC' | 'ID_DESC' + | 'MAX_ASC' + | 'MAX_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC'; -export type AppEventTypeOrderBy = - | 'AGGREGATION_ASC' - | 'AGGREGATION_DESC' - | 'CATEGORY_ASC' - | 'CATEGORY_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'FEEDS_LEVELS_ASC' - | 'FEEDS_LEVELS_DESC' +export type AppLimitOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'ENTITY_TYPE_ASC' + | 'ENTITY_TYPE_DESC' | 'ID_ASC' | 'ID_DESC' - | 'IS_ACTIVE_ASC' - | 'IS_ACTIVE_DESC' + | 'MAX_ASC' + | 'MAX_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'NATURAL' - | 'PERIOD_INTERVAL_ASC' - | 'PERIOD_INTERVAL_DESC' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type AppLevelOrderBy = - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'IMAGE_ASC' - | 'IMAGE_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'NATURAL' - | 'OWNER_ID_ASC' - | 'OWNER_ID_DESC' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type AppLevelGrantOrderBy = - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'EXPIRES_AT_ASC' - | 'EXPIRES_AT_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'LEVEL_NAME_ASC' - | 'LEVEL_NAME_DESC' - | 'NATURAL' - | 'PERIOD_START_ASC' - | 'PERIOD_START_DESC' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type AppLevelRequirementOrderBy = - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'GROUP_KEY_ASC' - | 'GROUP_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'LEVEL_ASC' - | 'LEVEL_DESC' - | 'METRIC_ASC' - | 'METRIC_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'PRIORITY_ASC' - | 'PRIORITY_DESC' - | 'REQUIRED_COUNT_ASC' - | 'REQUIRED_COUNT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type AppLimitCapOrderBy = - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'MAX_ASC' - | 'MAX_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC'; -export type AppLimitCapsDefaultOrderBy = - | 'ID_ASC' - | 'ID_DESC' - | 'MAX_ASC' - | 'MAX_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC'; -export type AppLimitOrderBy = - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'ENTITY_TYPE_ASC' - | 'ENTITY_TYPE_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'MAX_ASC' - | 'MAX_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'NATURAL' - | 'NUM_ASC' - | 'NUM_DESC' - | 'ORGANIZATION_ID_ASC' - | 'ORGANIZATION_ID_DESC' - | 'PERIOD_CREDITS_ASC' - | 'PERIOD_CREDITS_DESC' - | 'PLAN_MAX_ASC' - | 'PLAN_MAX_DESC' + | 'NUM_ASC' + | 'NUM_DESC' + | 'ORGANIZATION_ID_ASC' + | 'ORGANIZATION_ID_DESC' + | 'PERIOD_CREDITS_ASC' + | 'PERIOD_CREDITS_DESC' + | 'PLAN_MAX_ASC' + | 'PLAN_MAX_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'PURCHASED_CREDITS_ASC' @@ -2675,146 +1409,6 @@ export type AppLimitWarningOrderBy = | 'THRESHOLD_VALUE_DESC' | 'WARNING_TYPE_ASC' | 'WARNING_TYPE_DESC'; -export type BillingUsageSummaryOrderBy = - | 'CREDITS_CONSUMED_ASC' - | 'CREDITS_CONSUMED_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'ENTITY_TYPE_ASC' - | 'ENTITY_TYPE_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'METER_SLUG_ASC' - | 'METER_SLUG_DESC' - | 'NATURAL' - | 'ORGANIZATION_ID_ASC' - | 'ORGANIZATION_ID_DESC' - | 'OVERAGE_UNITS_ASC' - | 'OVERAGE_UNITS_DESC' - | 'PERIOD_END_ASC' - | 'PERIOD_END_DESC' - | 'PERIOD_START_ASC' - | 'PERIOD_START_DESC' - | 'PLAN_LIMIT_ASC' - | 'PLAN_LIMIT_DESC' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'QUANTITY_USED_ASC' - | 'QUANTITY_USED_DESC'; -export type LedgerOrderBy = - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'DELTA_ASC' - | 'DELTA_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'ENTITY_TYPE_ASC' - | 'ENTITY_TYPE_DESC' - | 'ENTRY_TYPE_ASC' - | 'ENTRY_TYPE_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'LEDGER_CLASS_ASC' - | 'LEDGER_CLASS_DESC' - | 'METADATA_ASC' - | 'METADATA_DESC' - | 'METER_SLUG_ASC' - | 'METER_SLUG_DESC' - | 'NATURAL' - | 'ORGANIZATION_ID_ASC' - | 'ORGANIZATION_ID_DESC' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'USAGE_AFTER_ASC' - | 'USAGE_AFTER_DESC'; -export type MeterOrderBy = - | 'AGGREGATION_ASC' - | 'AGGREGATION_DESC' - | 'CATEGORY_METER_ASC' - | 'CATEGORY_METER_DESC' - | 'CREDIT_COST_ASC' - | 'CREDIT_COST_DESC' - | 'DISPLAY_NAME_ASC' - | 'DISPLAY_NAME_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'IS_ACTIVE_ASC' - | 'IS_ACTIVE_DESC' - | 'METER_TYPE_ASC' - | 'METER_TYPE_DESC' - | 'NATURAL' - | 'PERIOD_INTERVAL_ASC' - | 'PERIOD_INTERVAL_DESC' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ROLLOVER_CAP_ASC' - | 'ROLLOVER_CAP_DESC' - | 'SLUG_ASC' - | 'SLUG_DESC' - | 'UNIT_ASC' - | 'UNIT_DESC'; -export type MeterCreditOrderBy = - | 'AMOUNT_ASC' - | 'AMOUNT_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'CREDIT_TYPE_ASC' - | 'CREDIT_TYPE_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'ENTITY_TYPE_ASC' - | 'ENTITY_TYPE_DESC' - | 'EXPIRES_AT_ASC' - | 'EXPIRES_AT_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'METER_ID_ASC' - | 'METER_ID_DESC' - | 'NATURAL' - | 'ORGANIZATION_ID_ASC' - | 'ORGANIZATION_ID_DESC' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'REASON_ASC' - | 'REASON_DESC'; -export type MeterDefaultOrderBy = - | 'CATEGORY_METER_ASC' - | 'CATEGORY_METER_DESC' - | 'CREDIT_COST_ASC' - | 'CREDIT_COST_DESC' - | 'DEFAULT_PLAN_LIMIT_ASC' - | 'DEFAULT_PLAN_LIMIT_DESC' - | 'DISPLAY_NAME_ASC' - | 'DISPLAY_NAME_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'IS_ACTIVE_ASC' - | 'IS_ACTIVE_DESC' - | 'METER_TYPE_ASC' - | 'METER_TYPE_DESC' - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'SLUG_ASC' - | 'SLUG_DESC' - | 'UNIT_ASC' - | 'UNIT_DESC'; -export type MeterSourceOrderBy = - | 'AGGREGATION_TYPE_ASC' - | 'AGGREGATION_TYPE_DESC' - | 'DIMENSION_PATH_ASC' - | 'DIMENSION_PATH_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'IS_ACTIVE_ASC' - | 'IS_ACTIVE_DESC' - | 'METER_SLUG_ASC' - | 'METER_SLUG_DESC' - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'SOURCE_METRIC_ASC' - | 'SOURCE_METRIC_DESC'; export type OrgLimitAggregateOrderBy = | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' @@ -2981,292 +1575,7 @@ export type OrgLimitWarningOrderBy = | 'THRESHOLD_VALUE_DESC' | 'WARNING_TYPE_ASC' | 'WARNING_TYPE_DESC'; -export type PlanCapOrderBy = - | 'CAP_NAME_ASC' - | 'CAP_NAME_DESC' - | 'CAP_VALUE_ASC' - | 'CAP_VALUE_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NATURAL' - | 'PLAN_ID_ASC' - | 'PLAN_ID_DESC' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC'; -export type PlanOrderBy = - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'IS_ACTIVE_ASC' - | 'IS_ACTIVE_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC'; -export type PlanLimitOrderBy = - | 'ID_ASC' - | 'ID_DESC' - | 'LIMIT_NAME_ASC' - | 'LIMIT_NAME_DESC' - | 'MAX_VALUE_ASC' - | 'MAX_VALUE_DESC' - | 'NATURAL' - | 'PLAN_ID_ASC' - | 'PLAN_ID_DESC' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC'; -export type PlanMeterLimitOrderBy = - | 'ID_ASC' - | 'ID_DESC' - | 'METER_SLUG_ASC' - | 'METER_SLUG_DESC' - | 'NATURAL' - | 'PLAN_ID_ASC' - | 'PLAN_ID_DESC' - | 'PLAN_LIMIT_ASC' - | 'PLAN_LIMIT_DESC' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC'; -export type PlanOverrideOrderBy = - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'EXPIRES_AT_ASC' - | 'EXPIRES_AT_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'LIMIT_NAME_ASC' - | 'LIMIT_NAME_DESC' - | 'MAX_VALUE_ASC' - | 'MAX_VALUE_DESC' - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'REASON_ASC' - | 'REASON_DESC'; -export type PlanPricingOrderBy = - | 'BILLING_INTERVAL_ASC' - | 'BILLING_INTERVAL_DESC' - | 'CURRENCY_ASC' - | 'CURRENCY_DESC' - | 'DISCOUNT_PERCENT_ASC' - | 'DISCOUNT_PERCENT_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'IS_ACTIVE_ASC' - | 'IS_ACTIVE_DESC' - | 'NATURAL' - | 'PLAN_ID_ASC' - | 'PLAN_ID_DESC' - | 'PRICE_ASC' - | 'PRICE_DESC' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC'; -export type PlanSubscriptionOrderBy = - | 'ENDS_AT_ASC' - | 'ENDS_AT_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'ENTITY_TYPE_ASC' - | 'ENTITY_TYPE_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'IS_ACTIVE_ASC' - | 'IS_ACTIVE_DESC' - | 'NATURAL' - | 'ORGANIZATION_ID_ASC' - | 'ORGANIZATION_ID_DESC' - | 'PLAN_ID_ASC' - | 'PLAN_ID_DESC' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'STARTS_AT_ASC' - | 'STARTS_AT_DESC'; // ============ CRUD Input Types ============ -export interface CreateAppAchievementRewardInput { - clientMutationId?: string; - appAchievementReward: { - amount?: number; - creditType?: string; - expiresInterval?: IntervalInput; - levelName: string; - rewardType: string; - targetName: string; - }; -} -export interface AppAchievementRewardPatch { - amount?: number | null; - creditType?: string | null; - expiresInterval?: IntervalInput | null; - levelName?: string | null; - rewardType?: string | null; - targetName?: string | null; -} -export interface UpdateAppAchievementRewardInput { - clientMutationId?: string; - id: string; - appAchievementRewardPatch: AppAchievementRewardPatch; -} -export interface DeleteAppAchievementRewardInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppEventAggregateInput { - clientMutationId?: string; - appEventAggregate: { - actorId?: string; - count?: number; - name: string; - periodStart?: string; - }; -} -export interface AppEventAggregatePatch { - actorId?: string | null; - count?: number | null; - name?: string | null; - periodStart?: string | null; -} -export interface UpdateAppEventAggregateInput { - clientMutationId?: string; - id: string; - appEventAggregatePatch: AppEventAggregatePatch; -} -export interface DeleteAppEventAggregateInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppEventInput { - clientMutationId?: string; - appEvent: { - actorId?: string; - count?: number; - name: string; - }; -} -export interface AppEventPatch { - actorId?: string | null; - count?: number | null; - name?: string | null; -} -export interface UpdateAppEventInput { - clientMutationId?: string; - id: string; - appEventPatch: AppEventPatch; -} -export interface DeleteAppEventInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppEventTypeInput { - clientMutationId?: string; - appEventType: { - aggregation?: string; - category?: string; - description?: string; - feedsLevels?: boolean; - isActive?: boolean; - name: string; - periodInterval?: IntervalInput; - }; -} -export interface AppEventTypePatch { - aggregation?: string | null; - category?: string | null; - description?: string | null; - feedsLevels?: boolean | null; - isActive?: boolean | null; - name?: string | null; - periodInterval?: IntervalInput | null; -} -export interface UpdateAppEventTypeInput { - clientMutationId?: string; - id: string; - appEventTypePatch: AppEventTypePatch; -} -export interface DeleteAppEventTypeInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppLevelInput { - clientMutationId?: string; - appLevel: { - description?: string; - image?: ConstructiveInternalTypeImage; - name: string; - ownerId?: string; - }; -} -export interface AppLevelPatch { - description?: string | null; - image?: ConstructiveInternalTypeImage | null; - imageUpload?: File | null; - name?: string | null; - ownerId?: string | null; -} -export interface UpdateAppLevelInput { - clientMutationId?: string; - id: string; - appLevelPatch: AppLevelPatch; -} -export interface DeleteAppLevelInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppLevelGrantInput { - clientMutationId?: string; - appLevelGrant: { - actorId?: string; - expiresAt?: string; - levelName: string; - periodStart?: string; - }; -} -export interface AppLevelGrantPatch { - actorId?: string | null; - expiresAt?: string | null; - levelName?: string | null; - periodStart?: string | null; -} -export interface UpdateAppLevelGrantInput { - clientMutationId?: string; - id: string; - appLevelGrantPatch: AppLevelGrantPatch; -} -export interface DeleteAppLevelGrantInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppLevelRequirementInput { - clientMutationId?: string; - appLevelRequirement: { - description?: string; - groupKey?: string; - level: string; - metric?: string; - name: string; - priority?: number; - requiredCount?: number; - }; -} -export interface AppLevelRequirementPatch { - description?: string | null; - groupKey?: string | null; - level?: string | null; - metric?: string | null; - name?: string | null; - priority?: number | null; - requiredCount?: number | null; -} -export interface UpdateAppLevelRequirementInput { - clientMutationId?: string; - id: string; - appLevelRequirementPatch: AppLevelRequirementPatch; -} -export interface DeleteAppLevelRequirementInput { - clientMutationId?: string; - id: string; -} export interface CreateAppLimitCapInput { clientMutationId?: string; appLimitCap: { @@ -3455,275 +1764,79 @@ export interface CreateAppLimitDefaultInput { softMax?: string; }; } -export interface AppLimitDefaultPatch { - max?: string | null; - name?: string | null; - softMax?: string | null; -} -export interface UpdateAppLimitDefaultInput { - clientMutationId?: string; - id: string; - appLimitDefaultPatch: AppLimitDefaultPatch; -} -export interface DeleteAppLimitDefaultInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppLimitEventInput { - clientMutationId?: string; - appLimitEvent: { - actorId?: string; - delta?: string; - entityId?: string; - entityType?: string; - eventType?: string; - maxAtEvent?: string; - name?: string; - numAfter?: string; - numBefore?: string; - organizationId?: string; - reason?: string; - }; -} -export interface AppLimitEventPatch { - actorId?: string | null; - delta?: string | null; - entityId?: string | null; - entityType?: string | null; - eventType?: string | null; - maxAtEvent?: string | null; - name?: string | null; - numAfter?: string | null; - numBefore?: string | null; - organizationId?: string | null; - reason?: string | null; -} -export interface UpdateAppLimitEventInput { - clientMutationId?: string; - id: string; - appLimitEventPatch: AppLimitEventPatch; -} -export interface DeleteAppLimitEventInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppLimitWarningInput { - clientMutationId?: string; - appLimitWarning: { - name: string; - taskIdentifier: string; - thresholdValue: string; - warningType: string; - }; -} -export interface AppLimitWarningPatch { - name?: string | null; - taskIdentifier?: string | null; - thresholdValue?: string | null; - warningType?: string | null; -} -export interface UpdateAppLimitWarningInput { - clientMutationId?: string; - id: string; - appLimitWarningPatch: AppLimitWarningPatch; -} -export interface DeleteAppLimitWarningInput { - clientMutationId?: string; - id: string; -} -export interface CreateBillingUsageSummaryInput { - clientMutationId?: string; - billingUsageSummary: { - creditsConsumed?: string; - entityId: string; - entityType?: string; - meterSlug: string; - organizationId?: string; - overageUnits?: string; - periodEnd: string; - periodStart: string; - planLimit?: string; - quantityUsed?: string; - }; -} -export interface BillingUsageSummaryPatch { - creditsConsumed?: string | null; - entityId?: string | null; - entityType?: string | null; - meterSlug?: string | null; - organizationId?: string | null; - overageUnits?: string | null; - periodEnd?: string | null; - periodStart?: string | null; - planLimit?: string | null; - quantityUsed?: string | null; -} -export interface UpdateBillingUsageSummaryInput { - clientMutationId?: string; - id: string; - billingUsageSummaryPatch: BillingUsageSummaryPatch; -} -export interface DeleteBillingUsageSummaryInput { - clientMutationId?: string; - id: string; -} -export interface CreateLedgerInput { - clientMutationId?: string; - ledger: { - delta: string; - entityId: string; - entityType?: string; - entryType?: string; - ledgerClass?: string; - metadata?: Record; - meterSlug: string; - organizationId?: string; - usageAfter: string; - }; -} -export interface LedgerPatch { - delta?: string | null; - entityId?: string | null; - entityType?: string | null; - entryType?: string | null; - ledgerClass?: string | null; - metadata?: Record | null; - meterSlug?: string | null; - organizationId?: string | null; - usageAfter?: string | null; -} -export interface UpdateLedgerInput { - clientMutationId?: string; - id: string; - ledgerPatch: LedgerPatch; -} -export interface DeleteLedgerInput { - clientMutationId?: string; - id: string; +export interface AppLimitDefaultPatch { + max?: string | null; + name?: string | null; + softMax?: string | null; } -export interface CreateMeterInput { - clientMutationId?: string; - meter: { - aggregation?: string; - categoryMeter?: string; - creditCost?: number; - displayName?: string; - isActive?: boolean; - meterType?: string; - periodInterval?: IntervalInput; - rolloverCap?: string; - slug: string; - unit?: string; - }; -} -export interface MeterPatch { - aggregation?: string | null; - categoryMeter?: string | null; - creditCost?: number | null; - displayName?: string | null; - isActive?: boolean | null; - meterType?: string | null; - periodInterval?: IntervalInput | null; - rolloverCap?: string | null; - slug?: string | null; - unit?: string | null; -} -export interface UpdateMeterInput { +export interface UpdateAppLimitDefaultInput { clientMutationId?: string; id: string; - meterPatch: MeterPatch; + appLimitDefaultPatch: AppLimitDefaultPatch; } -export interface DeleteMeterInput { +export interface DeleteAppLimitDefaultInput { clientMutationId?: string; id: string; } -export interface CreateMeterCreditInput { +export interface CreateAppLimitEventInput { clientMutationId?: string; - meterCredit: { - amount: string; - creditType?: string; - entityId: string; + appLimitEvent: { + actorId?: string; + delta?: string; + entityId?: string; entityType?: string; - expiresAt?: string; - meterId: string; + eventType?: string; + maxAtEvent?: string; + name?: string; + numAfter?: string; + numBefore?: string; organizationId?: string; reason?: string; }; } -export interface MeterCreditPatch { - amount?: string | null; - creditType?: string | null; +export interface AppLimitEventPatch { + actorId?: string | null; + delta?: string | null; entityId?: string | null; entityType?: string | null; - expiresAt?: string | null; - meterId?: string | null; + eventType?: string | null; + maxAtEvent?: string | null; + name?: string | null; + numAfter?: string | null; + numBefore?: string | null; organizationId?: string | null; reason?: string | null; } -export interface UpdateMeterCreditInput { +export interface UpdateAppLimitEventInput { clientMutationId?: string; id: string; - meterCreditPatch: MeterCreditPatch; + appLimitEventPatch: AppLimitEventPatch; } -export interface DeleteMeterCreditInput { +export interface DeleteAppLimitEventInput { clientMutationId?: string; id: string; } -export interface CreateMeterDefaultInput { - clientMutationId?: string; - meterDefault: { - categoryMeter?: string; - creditCost?: string; - defaultPlanLimit?: string; - displayName?: string; - isActive?: boolean; - meterType?: string; - slug: string; - unit?: string; - }; -} -export interface MeterDefaultPatch { - categoryMeter?: string | null; - creditCost?: string | null; - defaultPlanLimit?: string | null; - displayName?: string | null; - isActive?: boolean | null; - meterType?: string | null; - slug?: string | null; - unit?: string | null; -} -export interface UpdateMeterDefaultInput { +export interface CreateAppLimitWarningInput { clientMutationId?: string; - id: string; - meterDefaultPatch: MeterDefaultPatch; + appLimitWarning: { + name: string; + taskIdentifier: string; + thresholdValue: string; + warningType: string; + }; } -export interface DeleteMeterDefaultInput { - clientMutationId?: string; - id: string; +export interface AppLimitWarningPatch { + name?: string | null; + taskIdentifier?: string | null; + thresholdValue?: string | null; + warningType?: string | null; } -export interface CreateMeterSourceInput { - clientMutationId?: string; - meterSource: { - aggregationType?: string; - dimensionPath: string; - isActive?: boolean; - meterSlug: string; - sourceMetric: string; - }; -} -export interface MeterSourcePatch { - aggregationType?: string | null; - dimensionPath?: string | null; - isActive?: boolean | null; - meterSlug?: string | null; - sourceMetric?: string | null; -} -export interface UpdateMeterSourceInput { +export interface UpdateAppLimitWarningInput { clientMutationId?: string; id: string; - meterSourcePatch: MeterSourcePatch; + appLimitWarningPatch: AppLimitWarningPatch; } -export interface DeleteMeterSourceInput { +export interface DeleteAppLimitWarningInput { clientMutationId?: string; id: string; } @@ -3971,178 +2084,6 @@ export interface DeleteOrgLimitWarningInput { clientMutationId?: string; id: string; } -export interface CreatePlanCapInput { - clientMutationId?: string; - planCap: { - capName: string; - capValue?: string; - planId: string; - }; -} -export interface PlanCapPatch { - capName?: string | null; - capValue?: string | null; - planId?: string | null; -} -export interface UpdatePlanCapInput { - clientMutationId?: string; - id: string; - planCapPatch: PlanCapPatch; -} -export interface DeletePlanCapInput { - clientMutationId?: string; - id: string; -} -export interface CreatePlanInput { - clientMutationId?: string; - plan: { - description?: string; - isActive?: boolean; - name: string; - }; -} -export interface PlanPatch { - description?: string | null; - isActive?: boolean | null; - name?: string | null; -} -export interface UpdatePlanInput { - clientMutationId?: string; - id: string; - planPatch: PlanPatch; -} -export interface DeletePlanInput { - clientMutationId?: string; - id: string; -} -export interface CreatePlanLimitInput { - clientMutationId?: string; - planLimit: { - limitName: string; - maxValue: string; - planId: string; - }; -} -export interface PlanLimitPatch { - limitName?: string | null; - maxValue?: string | null; - planId?: string | null; -} -export interface UpdatePlanLimitInput { - clientMutationId?: string; - id: string; - planLimitPatch: PlanLimitPatch; -} -export interface DeletePlanLimitInput { - clientMutationId?: string; - id: string; -} -export interface CreatePlanMeterLimitInput { - clientMutationId?: string; - planMeterLimit: { - meterSlug: string; - planId: string; - planLimit: string; - }; -} -export interface PlanMeterLimitPatch { - meterSlug?: string | null; - planId?: string | null; - planLimit?: string | null; -} -export interface UpdatePlanMeterLimitInput { - clientMutationId?: string; - id: string; - planMeterLimitPatch: PlanMeterLimitPatch; -} -export interface DeletePlanMeterLimitInput { - clientMutationId?: string; - id: string; -} -export interface CreatePlanOverrideInput { - clientMutationId?: string; - planOverride: { - entityId: string; - expiresAt?: string; - limitName: string; - maxValue: string; - reason?: string; - }; -} -export interface PlanOverridePatch { - entityId?: string | null; - expiresAt?: string | null; - limitName?: string | null; - maxValue?: string | null; - reason?: string | null; -} -export interface UpdatePlanOverrideInput { - clientMutationId?: string; - id: string; - planOverridePatch: PlanOverridePatch; -} -export interface DeletePlanOverrideInput { - clientMutationId?: string; - id: string; -} -export interface CreatePlanPricingInput { - clientMutationId?: string; - planPricing: { - billingInterval: string; - currency?: string; - discountPercent?: string; - isActive?: boolean; - planId: string; - price: string; - }; -} -export interface PlanPricingPatch { - billingInterval?: string | null; - currency?: string | null; - discountPercent?: string | null; - isActive?: boolean | null; - planId?: string | null; - price?: string | null; -} -export interface UpdatePlanPricingInput { - clientMutationId?: string; - id: string; - planPricingPatch: PlanPricingPatch; -} -export interface DeletePlanPricingInput { - clientMutationId?: string; - id: string; -} -export interface CreatePlanSubscriptionInput { - clientMutationId?: string; - planSubscription: { - endsAt?: string; - entityId: string; - entityType?: string; - isActive?: boolean; - organizationId?: string; - planId: string; - startsAt?: string; - }; -} -export interface PlanSubscriptionPatch { - endsAt?: string | null; - entityId?: string | null; - entityType?: string | null; - isActive?: boolean | null; - organizationId?: string | null; - planId?: string | null; - startsAt?: string | null; -} -export interface UpdatePlanSubscriptionInput { - clientMutationId?: string; - id: string; - planSubscriptionPatch: PlanSubscriptionPatch; -} -export interface DeletePlanSubscriptionInput { - clientMutationId?: string; - id: string; -} // ============ Connection Fields Map ============ export const connectionFieldsMap = { AppLimitCreditCode: { @@ -4153,26 +2094,11 @@ export const connectionFieldsMap = { appLimitCreditCodeItemsByDefaultLimitId: 'AppLimitCreditCodeItem', appLimitCreditsByDefaultLimitId: 'AppLimitCredit', }, - Meter: { - meterCredits: 'MeterCredit', - }, OrgLimitDefault: { orgLimitCreditsByDefaultLimitId: 'OrgLimitCredit', }, - Plan: { - planCaps: 'PlanCap', - planLimits: 'PlanLimit', - planMeterLimits: 'PlanMeterLimit', - planPricings: 'PlanPricing', - planSubscriptions: 'PlanSubscription', - }, } as Record>; // ============ Custom Input Types (from schema) ============ -export interface GrantAchievementInput { - actorId?: string; - clientMutationId?: string; - levelName?: string; -} export interface ProvisionBucketInput { /** The logical bucket key (e.g., "public", "private") */ bucketKey: string; @@ -4182,15 +2108,6 @@ export interface ProvisionBucketInput { */ ownerId?: string; } -export interface RecomputeCapabilitiesInput { - actorId?: string; - clientMutationId?: string; -} -export interface RevokeAchievementInput { - actorId?: string; - clientMutationId?: string; - levelName?: string; -} export interface SeedAppLimitCapsDefaultsInput { clientMutationId?: string; defaults?: Record; @@ -4199,10 +2116,6 @@ export interface SeedAppLimitDefaultsInput { clientMutationId?: string; defaults?: Record; } -export interface SeedMeterDefaultsInput { - clientMutationId?: string; - defaults?: Record; -} export interface SeedOrgLimitCapsDefaultsInput { clientMutationId?: string; defaults?: Record; @@ -4211,15 +2124,6 @@ export interface SeedOrgLimitDefaultsInput { clientMutationId?: string; defaults?: Record; } -export interface SeedPlanInput { - clientMutationId?: string; - planConfig?: Record; - planName?: string; -} -export interface SeedTrustLadderInput { - clientMutationId?: string; - ladder?: Record; -} /** A filter to be used against Interval fields. All fields are combined with a logical ‘and.’ */ export interface IntervalFilter { /** Not equal to the specified value, treating null like an ordinary value. */ @@ -4245,41 +2149,6 @@ export interface IntervalFilter { /** Not included in the specified list. */ notIn?: IntervalInput[]; } -/** A filter to be used against ConstructiveInternalTypeImage fields. All fields are combined with a logical ‘and.’ */ -export interface ConstructiveInternalTypeImageFilter { - /** Contained by the specified JSON. */ - containedBy?: ConstructiveInternalTypeImage; - /** Contains the specified JSON. */ - contains?: ConstructiveInternalTypeImage; - /** Contains all of the specified keys. */ - containsAllKeys?: string[]; - /** Contains any of the specified keys. */ - containsAnyKeys?: string[]; - /** Contains the specified key. */ - containsKey?: string; - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: ConstructiveInternalTypeImage; - /** Equal to the specified value. */ - equalTo?: ConstructiveInternalTypeImage; - /** Greater than the specified value. */ - greaterThan?: ConstructiveInternalTypeImage; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: ConstructiveInternalTypeImage; - /** Included in the specified list. */ - in?: ConstructiveInternalTypeImage[]; - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Less than the specified value. */ - lessThan?: ConstructiveInternalTypeImage; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: ConstructiveInternalTypeImage; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: ConstructiveInternalTypeImage; - /** Not equal to the specified value. */ - notEqualTo?: ConstructiveInternalTypeImage; - /** Not included in the specified list. */ - notIn?: ConstructiveInternalTypeImage[]; -} /** A filter to be used against many `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ */ export interface AppLimitCreditCodeToManyAppLimitCreditCodeItemFilter { /** Filters to entities where every related entity matches. */ @@ -4313,199 +2182,17 @@ export interface AppLimitDefaultToManyAppLimitCreditFilter { every?: AppLimitCreditFilter; /** Filters to entities where no related entity matches. */ none?: AppLimitCreditFilter; - /** Filters to entities where at least one related entity matches. */ - some?: AppLimitCreditFilter; -} -/** A filter to be used against many `MeterCredit` object types. All fields are combined with a logical ‘and.’ */ -export interface MeterToManyMeterCreditFilter { - /** Filters to entities where every related entity matches. */ - every?: MeterCreditFilter; - /** Filters to entities where no related entity matches. */ - none?: MeterCreditFilter; - /** Filters to entities where at least one related entity matches. */ - some?: MeterCreditFilter; -} -/** A filter to be used against many `OrgLimitCredit` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgLimitDefaultToManyOrgLimitCreditFilter { - /** Filters to entities where every related entity matches. */ - every?: OrgLimitCreditFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgLimitCreditFilter; - /** Filters to entities where at least one related entity matches. */ - some?: OrgLimitCreditFilter; -} -/** A filter to be used against many `PlanCap` object types. All fields are combined with a logical ‘and.’ */ -export interface PlanToManyPlanCapFilter { - /** Filters to entities where every related entity matches. */ - every?: PlanCapFilter; - /** Filters to entities where no related entity matches. */ - none?: PlanCapFilter; - /** Filters to entities where at least one related entity matches. */ - some?: PlanCapFilter; -} -/** A filter to be used against many `PlanLimit` object types. All fields are combined with a logical ‘and.’ */ -export interface PlanToManyPlanLimitFilter { - /** Filters to entities where every related entity matches. */ - every?: PlanLimitFilter; - /** Filters to entities where no related entity matches. */ - none?: PlanLimitFilter; - /** Filters to entities where at least one related entity matches. */ - some?: PlanLimitFilter; -} -/** A filter to be used against many `PlanMeterLimit` object types. All fields are combined with a logical ‘and.’ */ -export interface PlanToManyPlanMeterLimitFilter { - /** Filters to entities where every related entity matches. */ - every?: PlanMeterLimitFilter; - /** Filters to entities where no related entity matches. */ - none?: PlanMeterLimitFilter; - /** Filters to entities where at least one related entity matches. */ - some?: PlanMeterLimitFilter; -} -/** A filter to be used against many `PlanPricing` object types. All fields are combined with a logical ‘and.’ */ -export interface PlanToManyPlanPricingFilter { - /** Filters to entities where every related entity matches. */ - every?: PlanPricingFilter; - /** Filters to entities where no related entity matches. */ - none?: PlanPricingFilter; - /** Filters to entities where at least one related entity matches. */ - some?: PlanPricingFilter; -} -/** A filter to be used against many `PlanSubscription` object types. All fields are combined with a logical ‘and.’ */ -export interface PlanToManyPlanSubscriptionFilter { - /** Filters to entities where every related entity matches. */ - every?: PlanSubscriptionFilter; - /** Filters to entities where no related entity matches. */ - none?: PlanSubscriptionFilter; - /** Filters to entities where at least one related entity matches. */ - some?: PlanSubscriptionFilter; -} -/** An input for mutations affecting `AppAchievementReward` */ -export interface AppAchievementRewardInput { - /** Number of credits to grant; unused by capability rewards */ - amount?: number; - createdAt?: string; - /** Credit type: permanent, expiring, etc. */ - creditType?: string; - /** Optional duration after which the granted credit expires; NULL means never expires */ - expiresInterval?: IntervalInput; - id?: string; - /** Name of the level this reward is granted for */ - levelName: string; - /** Type of reward: limit_credit, meter_credit, or capability */ - rewardType: string; - /** Target limit name, meter slug, or capability catalog name */ - targetName: string; - updatedAt?: string; -} -/** An interval of time that has passed where the smallest distinct unit is a second. */ -export interface IntervalInput { - /** A quantity of days. */ - days?: number; - /** A quantity of hours. */ - hours?: number; - /** A quantity of minutes. */ - minutes?: number; - /** A quantity of months. */ - months?: number; - /** - * A quantity of seconds. This is the only non-integer field, as all the other - * fields will dump their overflow into a smaller unit of time. Intervals don’t - * have a smaller unit than seconds. - */ - seconds?: number; - /** A quantity of years. */ - years?: number; -} -/** An input for mutations affecting `AppEventAggregate` */ -export interface AppEventAggregateInput { - actorId?: string; - /** Cumulative count of completed steps toward this requirement */ - count?: number; - createdAt?: string; - id?: string; - /** Name identifier of the level requirement being tracked */ - name: string; - /** Start of current counting period; NULL means lifetime counting */ - periodStart?: string; - updatedAt?: string; -} -/** An input for mutations affecting `AppEvent` */ -export interface AppEventInput { - actorId?: string; - /** Number of units completed in this step action */ - count?: number; - createdAt?: string; - /** Unique identifier for each event (uuidv7 provides temporal ordering) */ - id?: string; - /** Name identifier of the level requirement this step fulfills */ - name: string; -} -/** An input for mutations affecting `AppEventType` */ -export interface AppEventTypeInput { - /** Aggregation mode: count, sum, last_value, or none */ - aggregation?: string; - /** Grouping category: onboarding, engagement, analytics, commerce, etc. */ - category?: string; - createdAt?: string; - /** Human-readable description of this event type */ - description?: string; - /** Whether this event type participates in the levels/badge system by updating aggregates */ - feedsLevels?: boolean; - id?: string; - /** Whether recording of this event type is enabled */ - isActive?: boolean; - /** Unique name identifier for this event type */ - name: string; - /** Optional period for aggregate count reset; NULL means lifetime counting */ - periodInterval?: IntervalInput; - updatedAt?: string; -} -/** An input for mutations affecting `AppLevel` */ -export interface AppLevelInput { - createdAt?: string; - /** Human-readable description of what this level represents */ - description?: string; - id?: string; - /** Badge or icon image associated with this level */ - image?: ConstructiveInternalTypeImage; - /** Unique name of the level */ - name: string; - /** Optional owner (actor) who created or manages this level */ - ownerId?: string; - updatedAt?: string; -} -/** An input for mutations affecting `AppLevelGrant` */ -export interface AppLevelGrantInput { - actorId?: string; - createdAt?: string; - /** When this grant lapses; NULL means it holds until revoked */ - expiresAt?: string; - id?: string; - /** Name of the level that was achieved */ - levelName: string; - /** Period start for periodic achievements; -infinity for non-periodic (earn-once) */ - periodStart?: string; - updatedAt?: string; -} -/** An input for mutations affecting `AppLevelRequirement` */ -export interface AppLevelRequirementInput { - createdAt?: string; - /** Human-readable description of what this requirement entails */ - description?: string; - /** Requirements of a level sharing this key satisfy it as alternatives; NULL requires this one on its own */ - groupKey?: string; - id?: string; - /** Name of the level this requirement belongs to */ - level: string; - /** Computed signal to compare against required_count instead of an event count; currently only account_age_days */ - metric?: string; - /** Name identifier of the requirement (matches step names) */ - name: string; - /** Display ordering priority; lower values appear first */ - priority?: number; - /** Number of steps needed to satisfy this requirement */ - requiredCount?: number; - updatedAt?: string; + /** Filters to entities where at least one related entity matches. */ + some?: AppLimitCreditFilter; +} +/** A filter to be used against many `OrgLimitCredit` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgLimitDefaultToManyOrgLimitCreditFilter { + /** Filters to entities where every related entity matches. */ + every?: OrgLimitCreditFilter; + /** Filters to entities where no related entity matches. */ + none?: OrgLimitCreditFilter; + /** Filters to entities where at least one related entity matches. */ + some?: OrgLimitCreditFilter; } /** An input for mutations affecting `AppLimitCap` */ export interface AppLimitCapInput { @@ -4553,6 +2240,25 @@ export interface AppLimitInput { /** Start of the current metering window; NULL means no time window */ windowStart?: string; } +/** An interval of time that has passed where the smallest distinct unit is a second. */ +export interface IntervalInput { + /** A quantity of days. */ + days?: number; + /** A quantity of hours. */ + hours?: number; + /** A quantity of minutes. */ + minutes?: number; + /** A quantity of months. */ + months?: number; + /** + * A quantity of seconds. This is the only non-integer field, as all the other + * fields will dump their overflow into a smaller unit of time. Intervals don’t + * have a smaller unit than seconds. + */ + seconds?: number; + /** A quantity of years. */ + years?: number; +} /** An input for mutations affecting `AppLimitCreditCode` */ export interface AppLimitCreditCodeInput { /** Human-readable credit code (case-insensitive, unique) */ @@ -4653,134 +2359,6 @@ export interface AppLimitWarningInput { /** Threshold type: absolute (fixed count) or percentage (of max) */ warningType: string; } -/** An input for mutations affecting `BillingUsageSummary` */ -export interface BillingUsageSummaryInput { - /** Universal credits consumed during this period */ - creditsConsumed?: string; - /** The entity (org, team, user) this summary belongs to */ - entityId: string; - /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */ - entityType?: string; - id?: string; - /** Which meter this summary tracks */ - meterSlug: string; - /** Resolved billable organization via get_organization_id */ - organizationId?: string; - /** Units consumed beyond the plan limit (quantity_used - plan_limit when positive) */ - overageUnits?: string; - /** End of the billing period this summary covers */ - periodEnd: string; - /** Start of the billing period this summary covers */ - periodStart: string; - /** Plan limit that was in effect during this period */ - planLimit?: string; - /** Total units consumed during this period */ - quantityUsed?: string; -} -/** An input for mutations affecting `Ledger` */ -export interface LedgerInput { - createdAt?: string; - /** Change amount (positive = grant/credit, negative = consumption/debit) */ - delta: string; - /** The entity this ledger entry belongs to */ - entityId: string; - /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */ - entityType?: string; - /** Specific type: increment, decrement, credit_purchase, plan_grant, reset, adjustment */ - entryType?: string; - /** Unique identifier for each ledger entry */ - id?: string; - /** Classification: usage, grant, adjustment, refund */ - ledgerClass?: string; - /** Additional context (reason, source, Stripe receipt, etc.) */ - metadata?: Record; - /** Which meter this entry is for */ - meterSlug: string; - /** Resolved billable organization via get_organization_id */ - organizationId?: string; - /** Running total of usage after this entry */ - usageAfter: string; -} -/** An input for mutations affecting `Meter` */ -export interface MeterInput { - /** How usage is aggregated: cumulative (sum over period) or peak (max watermark) */ - aggregation?: string; - /** Slug of the category pool meter this meter belongs to. When set, usage overflow charges the category pool before falling through to universal credits. NULL means skip category pool and fall through directly to universal. */ - categoryMeter?: string; - /** Universal credits consumed per unit of this meter. NULL disables universal credit fallback. */ - creditCost?: number; - /** Human-readable name for the meter */ - displayName?: string; - id?: string; - /** Whether this meter is currently active */ - isActive?: boolean; - /** Type of meter: quota (consumable), boolean (feature flag), or usage_pool (category aggregator) */ - meterType?: string; - /** Reset cadence for this meter (e.g. 1 month, 1 year). NULL means no periodic reset. */ - periodInterval?: IntervalInput; - /** Maximum unused units that carry forward on rollover reset. NULL means unlimited rollover. */ - rolloverCap?: string; - /** Unique identifier for the meter (e.g. api_requests, storage_gb, seats) */ - slug: string; - /** Unit of measurement for this meter (e.g. tokens, characters, audio_seconds, pages, images, megapixels, bytes, requests, compute_ms, credits) */ - unit?: string; -} -/** An input for mutations affecting `MeterCredit` */ -export interface MeterCreditInput { - /** Number of credits to grant (positive to add, negative to revoke) */ - amount: string; - /** When this credit was granted */ - createdAt?: string; - /** Credit behavior: permanent (survives reset), period (zeroed on reset), or rollover (unused portion carries forward) */ - creditType?: string; - /** Entity this credit applies to */ - entityId: string; - /** Membership prefix identifying the entity kind (org, team, app) */ - entityType?: string; - /** When this credit expires. NULL means the credit never expires. */ - expiresAt?: string; - id?: string; - /** FK to meters — which meter definition this credit applies to */ - meterId: string; - /** Resolved billable organization via get_organization_id */ - organizationId?: string; - /** Optional reason for the credit grant (promo code, admin grant, etc.) */ - reason?: string; -} -/** An input for mutations affecting `MeterDefault` */ -export interface MeterDefaultInput { - /** Slug of the category pool meter (usage_pool) this meter belongs to, enabling the per-task -> category -> universal waterfall for default-provisioned meters. NULL skips the category pool. */ - categoryMeter?: string; - /** Universal credits consumed per unit of this meter. NULL disables universal credit fallback. */ - creditCost?: string; - /** Default plan_limit value for new entity balances. 0 means no quota; -1 (negative) means unlimited. */ - defaultPlanLimit?: string; - /** Human-readable name for the default meter */ - displayName?: string; - id?: string; - /** Whether this default meter is actively provisioned for new entities */ - isActive?: boolean; - /** Type of meter: quota, boolean, or usage_pool */ - meterType?: string; - /** Meter slug that matches the slug in the meters table */ - slug: string; - /** Unit of measurement for this meter (e.g. tokens, requests, images, compute_ms, credits) */ - unit?: string; -} -/** An input for mutations affecting `MeterSource` */ -export interface MeterSourceInput { - /** How to aggregate the column. Built-in types: sum, sum_bytes_to_gb, peak. Custom types supported. */ - aggregationType?: string; - /** Column name in the typed usage summary table (e.g. total_reads, avg_read_time_ms, size_bytes) */ - dimensionPath: string; - id?: string; - /** Soft-delete flag. Inactive sources are skipped during reconciliation. */ - isActive?: boolean; - /** Slug of the billing meter this source feeds (matches meters.slug in the billing module) */ - meterSlug: string; - /** Source table type: table_usage (db_table_stats_usage_summary), query_time (db_query_stats_usage_summary), or row_count (trigger-based, skipped by reconcile) */ - sourceMetric: string; -} /** An input for mutations affecting `OrgLimitAggregate` */ export interface OrgLimitAggregateInput { /** Entity (org) whose aggregate usage is being tracked */ @@ -4930,94 +2508,6 @@ export interface OrgLimitWarningInput { /** Threshold type: absolute (fixed count) or percentage (of max) */ warningType: string; } -/** An input for mutations affecting `PlanCap` */ -export interface PlanCapInput { - /** Name of the cap/feature flag this plan sets (must match a name in caps_defaults or limit_caps) */ - capName: string; - /** Cap value to set when this plan is applied. Convention: 0=disabled, 1=enabled, N=numeric cap, negative=unlimited */ - capValue?: string; - id?: string; - /** Reference to the plan this cap setting belongs to */ - planId: string; -} -/** An input for mutations affecting `Plan` */ -export interface PlanInput { - /** Human-readable description of the plan tier */ - description?: string; - id?: string; - /** Whether this plan can currently be applied to entities */ - isActive?: boolean; - /** Unique name identifier of the plan (e.g. free, pro, enterprise) */ - name: string; -} -/** An input for mutations affecting `PlanLimit` */ -export interface PlanLimitInput { - id?: string; - /** Name of the limit this plan sets (must match the name field in a limits table) */ - limitName: string; - /** Maximum value to set on the limit when this plan is applied; negative means unlimited */ - maxValue: string; - /** Reference to the plan this limit configuration belongs to */ - planId: string; -} -/** An input for mutations affecting `PlanMeterLimit` */ -export interface PlanMeterLimitInput { - id?: string; - /** Slug of the billing meter this plan sets a quota for (must match a slug in the meters table) */ - meterSlug: string; - /** Reference to the plan this meter limit belongs to */ - planId: string; - /** Billing quota to set on the balance when this plan is applied; negative means unlimited */ - planLimit: string; -} -/** An input for mutations affecting `PlanOverride` */ -export interface PlanOverrideInput { - /** Entity receiving the custom override (personal org or actual org) */ - entityId: string; - /** When this override expires; NULL means permanent */ - expiresAt?: string; - id?: string; - /** Name of the limit being overridden */ - limitName: string; - /** Override maximum value; negative means unlimited */ - maxValue: string; - /** Admin note explaining why this override was granted */ - reason?: string; -} -/** An input for mutations affecting `PlanPricing` */ -export interface PlanPricingInput { - /** Billing cycle identifier (e.g. monthly, yearly, lifetime) */ - billingInterval: string; - /** ISO 4217 currency code (lowercase) */ - currency?: string; - /** Discount percentage off the base price (0-100); NULL means no discount */ - discountPercent?: string; - id?: string; - /** Whether this pricing option is currently available */ - isActive?: boolean; - /** Reference to the plan this pricing belongs to */ - planId: string; - /** Price in smallest currency unit (e.g. cents); negative means contact-sales */ - price: string; -} -/** An input for mutations affecting `PlanSubscription` */ -export interface PlanSubscriptionInput { - /** When the subscription expires (NULL = no expiration) */ - endsAt?: string; - /** The entity (org, team, user) this subscription belongs to */ - entityId: string; - /** Membership prefix identifying the entity kind (org, team, app) */ - entityType?: string; - id?: string; - /** Whether the subscription is currently active */ - isActive?: boolean; - /** Resolved billable organization via get_organization_id */ - organizationId?: string; - /** Reference to the plan this subscription is for */ - planId: string; - /** When the subscription becomes active */ - startsAt?: string; -} /** A filter to be used against `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ */ export interface AppLimitCreditCodeItemFilter { /** Filter by the object’s `amount` field. */ @@ -5085,37 +2575,6 @@ export interface AppLimitCreditFilter { /** Filter by the object’s `reason` field. */ reason?: StringFilter; } -/** A filter to be used against `MeterCredit` object types. All fields are combined with a logical ‘and.’ */ -export interface MeterCreditFilter { - /** Filter by the object’s `amount` field. */ - amount?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: MeterCreditFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `creditType` field. */ - creditType?: StringFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `entityType` field. */ - entityType?: StringFilter; - /** Filter by the object’s `expiresAt` field. */ - expiresAt?: DatetimeFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `meter` relation. */ - meter?: MeterFilter; - /** Filter by the object’s `meterId` field. */ - meterId?: UUIDFilter; - /** Negates the expression. */ - not?: MeterCreditFilter; - /** Checks for any expressions in this list. */ - or?: MeterCreditFilter[]; - /** Filter by the object’s `organizationId` field. */ - organizationId?: UUIDFilter; - /** Filter by the object’s `reason` field. */ - reason?: StringFilter; -} /** A filter to be used against `OrgLimitCredit` object types. All fields are combined with a logical ‘and.’ */ export interface OrgLimitCreditFilter { /** Filter by the object’s `actorId` field. */ @@ -5145,115 +2604,6 @@ export interface OrgLimitCreditFilter { /** Filter by the object’s `reason` field. */ reason?: StringFilter; } -/** A filter to be used against `PlanCap` object types. All fields are combined with a logical ‘and.’ */ -export interface PlanCapFilter { - /** Checks for all expressions in this list. */ - and?: PlanCapFilter[]; - /** Filter by the object’s `capName` field. */ - capName?: StringFilter; - /** Filter by the object’s `capValue` field. */ - capValue?: BigIntFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Negates the expression. */ - not?: PlanCapFilter; - /** Checks for any expressions in this list. */ - or?: PlanCapFilter[]; - /** Filter by the object’s `plan` relation. */ - plan?: PlanFilter; - /** Filter by the object’s `planId` field. */ - planId?: UUIDFilter; -} -/** A filter to be used against `PlanLimit` object types. All fields are combined with a logical ‘and.’ */ -export interface PlanLimitFilter { - /** Checks for all expressions in this list. */ - and?: PlanLimitFilter[]; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `limitName` field. */ - limitName?: StringFilter; - /** Filter by the object’s `maxValue` field. */ - maxValue?: BigIntFilter; - /** Negates the expression. */ - not?: PlanLimitFilter; - /** Checks for any expressions in this list. */ - or?: PlanLimitFilter[]; - /** Filter by the object’s `plan` relation. */ - plan?: PlanFilter; - /** Filter by the object’s `planId` field. */ - planId?: UUIDFilter; -} -/** A filter to be used against `PlanMeterLimit` object types. All fields are combined with a logical ‘and.’ */ -export interface PlanMeterLimitFilter { - /** Checks for all expressions in this list. */ - and?: PlanMeterLimitFilter[]; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `meterSlug` field. */ - meterSlug?: StringFilter; - /** Negates the expression. */ - not?: PlanMeterLimitFilter; - /** Checks for any expressions in this list. */ - or?: PlanMeterLimitFilter[]; - /** Filter by the object’s `plan` relation. */ - plan?: PlanFilter; - /** Filter by the object’s `planId` field. */ - planId?: UUIDFilter; - /** Filter by the object’s `planLimit` field. */ - planLimit?: BigIntFilter; -} -/** A filter to be used against `PlanPricing` object types. All fields are combined with a logical ‘and.’ */ -export interface PlanPricingFilter { - /** Checks for all expressions in this list. */ - and?: PlanPricingFilter[]; - /** Filter by the object’s `billingInterval` field. */ - billingInterval?: StringFilter; - /** Filter by the object’s `currency` field. */ - currency?: StringFilter; - /** Filter by the object’s `discountPercent` field. */ - discountPercent?: BigFloatFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isActive` field. */ - isActive?: BooleanFilter; - /** Negates the expression. */ - not?: PlanPricingFilter; - /** Checks for any expressions in this list. */ - or?: PlanPricingFilter[]; - /** Filter by the object’s `plan` relation. */ - plan?: PlanFilter; - /** Filter by the object’s `planId` field. */ - planId?: UUIDFilter; - /** Filter by the object’s `price` field. */ - price?: BigIntFilter; -} -/** A filter to be used against `PlanSubscription` object types. All fields are combined with a logical ‘and.’ */ -export interface PlanSubscriptionFilter { - /** Checks for all expressions in this list. */ - and?: PlanSubscriptionFilter[]; - /** Filter by the object’s `endsAt` field. */ - endsAt?: DatetimeFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `entityType` field. */ - entityType?: StringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isActive` field. */ - isActive?: BooleanFilter; - /** Negates the expression. */ - not?: PlanSubscriptionFilter; - /** Checks for any expressions in this list. */ - or?: PlanSubscriptionFilter[]; - /** Filter by the object’s `organizationId` field. */ - organizationId?: UUIDFilter; - /** Filter by the object’s `plan` relation. */ - plan?: PlanFilter; - /** Filter by the object’s `planId` field. */ - planId?: UUIDFilter; - /** Filter by the object’s `startsAt` field. */ - startsAt?: DatetimeFilter; -} /** 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. */ @@ -5433,66 +2783,6 @@ export interface AppLimitDefaultFilter { /** Filter by the object’s `softMax` field. */ softMax?: BigIntFilter; } -/** 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 `Meter` object types. All fields are combined with a logical ‘and.’ */ -export interface MeterFilter { - /** Filter by the object’s `aggregation` field. */ - aggregation?: StringFilter; - /** Checks for all expressions in this list. */ - and?: MeterFilter[]; - /** Filter by the object’s `categoryMeter` field. */ - categoryMeter?: StringFilter; - /** Filter by the object’s `creditCost` field. */ - creditCost?: IntFilter; - /** Filter by the object’s `displayName` field. */ - displayName?: StringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isActive` field. */ - isActive?: BooleanFilter; - /** Filter by the object’s `meterCredits` relation. */ - meterCredits?: MeterToManyMeterCreditFilter; - /** `meterCredits` exist. */ - meterCreditsExist?: boolean; - /** Filter by the object’s `meterType` field. */ - meterType?: StringFilter; - /** Negates the expression. */ - not?: MeterFilter; - /** Checks for any expressions in this list. */ - or?: MeterFilter[]; - /** Filter by the object’s `periodInterval` field. */ - periodInterval?: IntervalFilter; - /** Filter by the object’s `rolloverCap` field. */ - rolloverCap?: BigIntFilter; - /** Filter by the object’s `slug` field. */ - slug?: StringFilter; - /** Filter by the object’s `unit` field. */ - unit?: StringFilter; -} /** A filter to be used against `OrgLimitDefault` object types. All fields are combined with a logical ‘and.’ */ export interface OrgLimitDefaultFilter { /** Checks for all expressions in this list. */ @@ -5514,177 +2804,71 @@ export interface OrgLimitDefaultFilter { /** Filter by the object’s `softMax` field. */ softMax?: BigIntFilter; } -/** A filter to be used against `Plan` object types. All fields are combined with a logical ‘and.’ */ -export interface PlanFilter { - /** Checks for all expressions in this list. */ - and?: PlanFilter[]; - /** Filter by the object’s `description` field. */ - description?: 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?: PlanFilter; - /** Checks for any expressions in this list. */ - or?: PlanFilter[]; - /** Filter by the object’s `planCaps` relation. */ - planCaps?: PlanToManyPlanCapFilter; - /** `planCaps` exist. */ - planCapsExist?: boolean; - /** Filter by the object’s `planLimits` relation. */ - planLimits?: PlanToManyPlanLimitFilter; - /** `planLimits` exist. */ - planLimitsExist?: boolean; - /** Filter by the object’s `planMeterLimits` relation. */ - planMeterLimits?: PlanToManyPlanMeterLimitFilter; - /** `planMeterLimits` exist. */ - planMeterLimitsExist?: boolean; - /** Filter by the object’s `planPricings` relation. */ - planPricings?: PlanToManyPlanPricingFilter; - /** `planPricings` exist. */ - planPricingsExist?: boolean; - /** Filter by the object’s `planSubscriptions` relation. */ - planSubscriptions?: PlanToManyPlanSubscriptionFilter; - /** `planSubscriptions` exist. */ - planSubscriptionsExist?: boolean; -} -/** A filter to be used against BigFloat fields. All fields are combined with a logical ‘and.’ */ -export interface BigFloatFilter { - /** 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 { +/** 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?: boolean; + distinctFrom?: number; /** Equal to the specified value. */ - equalTo?: boolean; + equalTo?: number; /** Greater than the specified value. */ - greaterThan?: boolean; + greaterThan?: number; /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: boolean; + greaterThanOrEqualTo?: number; /** Included in the specified list. */ - in?: boolean[]; + in?: number[]; /** Is null (if `true` is specified) or is not null (if `false` is specified). */ isNull?: boolean; /** Less than the specified value. */ - lessThan?: boolean; + lessThan?: number; /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: boolean; + lessThanOrEqualTo?: number; /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: boolean; + notDistinctFrom?: number; /** Not equal to the specified value. */ - notEqualTo?: boolean; + notEqualTo?: number; /** Not included in the specified list. */ - notIn?: boolean[]; + notIn?: number[]; } -/** A filter to be used against Int fields. All fields are combined with a logical ‘and.’ */ -export interface IntFilter { +/** 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?: number; + distinctFrom?: string; /** Equal to the specified value. */ - equalTo?: number; + equalTo?: string; /** Greater than the specified value. */ - greaterThan?: number; + greaterThan?: string; /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: number; + greaterThanOrEqualTo?: string; /** Included in the specified list. */ - in?: number[]; + in?: string[]; /** Is null (if `true` is specified) or is not null (if `false` is specified). */ isNull?: boolean; /** Less than the specified value. */ - lessThan?: number; + lessThan?: string; /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: number; + lessThanOrEqualTo?: string; /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: number; + notDistinctFrom?: string; /** Not equal to the specified value. */ - notEqualTo?: number; + notEqualTo?: string; /** Not included in the specified list. */ - notIn?: number[]; + notIn?: string[]; } -/** A connection to a list of `AppLevelRequirement` values. */ // ============ Payload/Return Types (for custom operations) ============ -export interface AppLevelRequirementConnection { - edges: AppLevelRequirementEdge[]; - nodes: AppLevelRequirement[]; - pageInfo: PageInfo; - totalCount: number; -} -export type AppLevelRequirementConnectionSelect = { - edges?: { - select: AppLevelRequirementEdgeSelect; - }; - nodes?: { - select: AppLevelRequirementSelect; - }; - pageInfo?: { - select: PageInfoSelect; - }; - totalCount?: boolean; -}; -export interface GrantAchievementPayload { - clientMutationId?: string | null; -} -export type GrantAchievementPayloadSelect = { - clientMutationId?: 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 RecomputeCapabilitiesPayload { - clientMutationId?: string | null; -} -export type RecomputeCapabilitiesPayloadSelect = { - clientMutationId?: boolean; -}; -export interface RevokeAchievementPayload { - clientMutationId?: string | null; + /** The logical bucket row that was queued for reconciliation. */ + bucketId: string; + bucketKey: string; + /** The reconciler job enqueued to provision this bucket. */ + jobId: string; + /** The physical bucket name already recorded, or null when reconciliation has not completed. */ + physicalName?: string | null; } -export type RevokeAchievementPayloadSelect = { - clientMutationId?: boolean; +export type ProvisionBucketPayloadSelect = { + bucketId?: boolean; + bucketKey?: boolean; + jobId?: boolean; + physicalName?: boolean; }; export interface SeedAppLimitCapsDefaultsPayload { clientMutationId?: string | null; @@ -5702,14 +2886,6 @@ export type SeedAppLimitDefaultsPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; -export interface SeedMeterDefaultsPayload { - clientMutationId?: string | null; - result?: boolean | null; -} -export type SeedMeterDefaultsPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; export interface SeedOrgLimitCapsDefaultsPayload { clientMutationId?: string | null; result?: boolean | null; @@ -5726,337 +2902,6 @@ export type SeedOrgLimitDefaultsPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; -export interface SeedPlanPayload { - clientMutationId?: string | null; - result?: string | null; -} -export type SeedPlanPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; -export interface SeedTrustLadderPayload { - clientMutationId?: string | null; - result?: boolean | null; -} -export type SeedTrustLadderPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; -export interface CreateAppAchievementRewardPayload { - /** The `AppAchievementReward` that was created by this mutation. */ - appAchievementReward?: AppAchievementReward | null; - appAchievementRewardEdge?: AppAchievementRewardEdge | null; - clientMutationId?: string | null; -} -export type CreateAppAchievementRewardPayloadSelect = { - appAchievementReward?: { - select: AppAchievementRewardSelect; - }; - appAchievementRewardEdge?: { - select: AppAchievementRewardEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface UpdateAppAchievementRewardPayload { - /** The `AppAchievementReward` that was updated by this mutation. */ - appAchievementReward?: AppAchievementReward | null; - appAchievementRewardEdge?: AppAchievementRewardEdge | null; - clientMutationId?: string | null; -} -export type UpdateAppAchievementRewardPayloadSelect = { - appAchievementReward?: { - select: AppAchievementRewardSelect; - }; - appAchievementRewardEdge?: { - select: AppAchievementRewardEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface DeleteAppAchievementRewardPayload { - /** The `AppAchievementReward` that was deleted by this mutation. */ - appAchievementReward?: AppAchievementReward | null; - appAchievementRewardEdge?: AppAchievementRewardEdge | null; - clientMutationId?: string | null; -} -export type DeleteAppAchievementRewardPayloadSelect = { - appAchievementReward?: { - select: AppAchievementRewardSelect; - }; - appAchievementRewardEdge?: { - select: AppAchievementRewardEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface CreateAppEventAggregatePayload { - /** The `AppEventAggregate` that was created by this mutation. */ - appEventAggregate?: AppEventAggregate | null; - appEventAggregateEdge?: AppEventAggregateEdge | null; - clientMutationId?: string | null; -} -export type CreateAppEventAggregatePayloadSelect = { - appEventAggregate?: { - select: AppEventAggregateSelect; - }; - appEventAggregateEdge?: { - select: AppEventAggregateEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface UpdateAppEventAggregatePayload { - /** The `AppEventAggregate` that was updated by this mutation. */ - appEventAggregate?: AppEventAggregate | null; - appEventAggregateEdge?: AppEventAggregateEdge | null; - clientMutationId?: string | null; -} -export type UpdateAppEventAggregatePayloadSelect = { - appEventAggregate?: { - select: AppEventAggregateSelect; - }; - appEventAggregateEdge?: { - select: AppEventAggregateEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface DeleteAppEventAggregatePayload { - /** The `AppEventAggregate` that was deleted by this mutation. */ - appEventAggregate?: AppEventAggregate | null; - appEventAggregateEdge?: AppEventAggregateEdge | null; - clientMutationId?: string | null; -} -export type DeleteAppEventAggregatePayloadSelect = { - appEventAggregate?: { - select: AppEventAggregateSelect; - }; - appEventAggregateEdge?: { - select: AppEventAggregateEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface CreateAppEventPayload { - /** The `AppEvent` that was created by this mutation. */ - appEvent?: AppEvent | null; - appEventEdge?: AppEventEdge | null; - clientMutationId?: string | null; -} -export type CreateAppEventPayloadSelect = { - appEvent?: { - select: AppEventSelect; - }; - appEventEdge?: { - select: AppEventEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface UpdateAppEventPayload { - /** The `AppEvent` that was updated by this mutation. */ - appEvent?: AppEvent | null; - appEventEdge?: AppEventEdge | null; - clientMutationId?: string | null; -} -export type UpdateAppEventPayloadSelect = { - appEvent?: { - select: AppEventSelect; - }; - appEventEdge?: { - select: AppEventEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface DeleteAppEventPayload { - /** The `AppEvent` that was deleted by this mutation. */ - appEvent?: AppEvent | null; - appEventEdge?: AppEventEdge | null; - clientMutationId?: string | null; -} -export type DeleteAppEventPayloadSelect = { - appEvent?: { - select: AppEventSelect; - }; - appEventEdge?: { - select: AppEventEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface CreateAppEventTypePayload { - /** The `AppEventType` that was created by this mutation. */ - appEventType?: AppEventType | null; - appEventTypeEdge?: AppEventTypeEdge | null; - clientMutationId?: string | null; -} -export type CreateAppEventTypePayloadSelect = { - appEventType?: { - select: AppEventTypeSelect; - }; - appEventTypeEdge?: { - select: AppEventTypeEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface UpdateAppEventTypePayload { - /** The `AppEventType` that was updated by this mutation. */ - appEventType?: AppEventType | null; - appEventTypeEdge?: AppEventTypeEdge | null; - clientMutationId?: string | null; -} -export type UpdateAppEventTypePayloadSelect = { - appEventType?: { - select: AppEventTypeSelect; - }; - appEventTypeEdge?: { - select: AppEventTypeEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface DeleteAppEventTypePayload { - /** The `AppEventType` that was deleted by this mutation. */ - appEventType?: AppEventType | null; - appEventTypeEdge?: AppEventTypeEdge | null; - clientMutationId?: string | null; -} -export type DeleteAppEventTypePayloadSelect = { - appEventType?: { - select: AppEventTypeSelect; - }; - appEventTypeEdge?: { - select: AppEventTypeEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface CreateAppLevelPayload { - /** The `AppLevel` that was created by this mutation. */ - appLevel?: AppLevel | null; - appLevelEdge?: AppLevelEdge | null; - clientMutationId?: string | null; -} -export type CreateAppLevelPayloadSelect = { - appLevel?: { - select: AppLevelSelect; - }; - appLevelEdge?: { - select: AppLevelEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface UpdateAppLevelPayload { - /** The `AppLevel` that was updated by this mutation. */ - appLevel?: AppLevel | null; - appLevelEdge?: AppLevelEdge | null; - clientMutationId?: string | null; -} -export type UpdateAppLevelPayloadSelect = { - appLevel?: { - select: AppLevelSelect; - }; - appLevelEdge?: { - select: AppLevelEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface DeleteAppLevelPayload { - /** The `AppLevel` that was deleted by this mutation. */ - appLevel?: AppLevel | null; - appLevelEdge?: AppLevelEdge | null; - clientMutationId?: string | null; -} -export type DeleteAppLevelPayloadSelect = { - appLevel?: { - select: AppLevelSelect; - }; - appLevelEdge?: { - select: AppLevelEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface CreateAppLevelGrantPayload { - /** The `AppLevelGrant` that was created by this mutation. */ - appLevelGrant?: AppLevelGrant | null; - appLevelGrantEdge?: AppLevelGrantEdge | null; - clientMutationId?: string | null; -} -export type CreateAppLevelGrantPayloadSelect = { - appLevelGrant?: { - select: AppLevelGrantSelect; - }; - appLevelGrantEdge?: { - select: AppLevelGrantEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface UpdateAppLevelGrantPayload { - /** The `AppLevelGrant` that was updated by this mutation. */ - appLevelGrant?: AppLevelGrant | null; - appLevelGrantEdge?: AppLevelGrantEdge | null; - clientMutationId?: string | null; -} -export type UpdateAppLevelGrantPayloadSelect = { - appLevelGrant?: { - select: AppLevelGrantSelect; - }; - appLevelGrantEdge?: { - select: AppLevelGrantEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface DeleteAppLevelGrantPayload { - /** The `AppLevelGrant` that was deleted by this mutation. */ - appLevelGrant?: AppLevelGrant | null; - appLevelGrantEdge?: AppLevelGrantEdge | null; - clientMutationId?: string | null; -} -export type DeleteAppLevelGrantPayloadSelect = { - appLevelGrant?: { - select: AppLevelGrantSelect; - }; - appLevelGrantEdge?: { - select: AppLevelGrantEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface CreateAppLevelRequirementPayload { - /** The `AppLevelRequirement` that was created by this mutation. */ - appLevelRequirement?: AppLevelRequirement | null; - appLevelRequirementEdge?: AppLevelRequirementEdge | null; - clientMutationId?: string | null; -} -export type CreateAppLevelRequirementPayloadSelect = { - appLevelRequirement?: { - select: AppLevelRequirementSelect; - }; - appLevelRequirementEdge?: { - select: AppLevelRequirementEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface UpdateAppLevelRequirementPayload { - /** The `AppLevelRequirement` that was updated by this mutation. */ - appLevelRequirement?: AppLevelRequirement | null; - appLevelRequirementEdge?: AppLevelRequirementEdge | null; - clientMutationId?: string | null; -} -export type UpdateAppLevelRequirementPayloadSelect = { - appLevelRequirement?: { - select: AppLevelRequirementSelect; - }; - appLevelRequirementEdge?: { - select: AppLevelRequirementEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface DeleteAppLevelRequirementPayload { - /** The `AppLevelRequirement` that was deleted by this mutation. */ - appLevelRequirement?: AppLevelRequirement | null; - appLevelRequirementEdge?: AppLevelRequirementEdge | null; - clientMutationId?: string | null; -} -export type DeleteAppLevelRequirementPayloadSelect = { - appLevelRequirement?: { - select: AppLevelRequirementSelect; - }; - appLevelRequirementEdge?: { - select: AppLevelRequirementEdgeSelect; - }; - clientMutationId?: boolean; -}; export interface CreateAppLimitCapPayload { /** The `AppLimitCap` that was created by this mutation. */ appLimitCap?: AppLimitCap | null; @@ -6502,280 +3347,10 @@ export type DeleteAppLimitWarningPayloadSelect = { appLimitWarning?: { select: AppLimitWarningSelect; }; - appLimitWarningEdge?: { - select: AppLimitWarningEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface CreateBillingUsageSummaryPayload { - /** The `BillingUsageSummary` that was created by this mutation. */ - billingUsageSummary?: BillingUsageSummary | null; - billingUsageSummaryEdge?: BillingUsageSummaryEdge | null; - clientMutationId?: string | null; -} -export type CreateBillingUsageSummaryPayloadSelect = { - billingUsageSummary?: { - select: BillingUsageSummarySelect; - }; - billingUsageSummaryEdge?: { - select: BillingUsageSummaryEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface UpdateBillingUsageSummaryPayload { - /** The `BillingUsageSummary` that was updated by this mutation. */ - billingUsageSummary?: BillingUsageSummary | null; - billingUsageSummaryEdge?: BillingUsageSummaryEdge | null; - clientMutationId?: string | null; -} -export type UpdateBillingUsageSummaryPayloadSelect = { - billingUsageSummary?: { - select: BillingUsageSummarySelect; - }; - billingUsageSummaryEdge?: { - select: BillingUsageSummaryEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface DeleteBillingUsageSummaryPayload { - /** The `BillingUsageSummary` that was deleted by this mutation. */ - billingUsageSummary?: BillingUsageSummary | null; - billingUsageSummaryEdge?: BillingUsageSummaryEdge | null; - clientMutationId?: string | null; -} -export type DeleteBillingUsageSummaryPayloadSelect = { - billingUsageSummary?: { - select: BillingUsageSummarySelect; - }; - billingUsageSummaryEdge?: { - select: BillingUsageSummaryEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface CreateLedgerPayload { - clientMutationId?: string | null; - /** The `Ledger` that was created by this mutation. */ - ledger?: Ledger | null; - ledgerEdge?: LedgerEdge | null; -} -export type CreateLedgerPayloadSelect = { - clientMutationId?: boolean; - ledger?: { - select: LedgerSelect; - }; - ledgerEdge?: { - select: LedgerEdgeSelect; - }; -}; -export interface UpdateLedgerPayload { - clientMutationId?: string | null; - /** The `Ledger` that was updated by this mutation. */ - ledger?: Ledger | null; - ledgerEdge?: LedgerEdge | null; -} -export type UpdateLedgerPayloadSelect = { - clientMutationId?: boolean; - ledger?: { - select: LedgerSelect; - }; - ledgerEdge?: { - select: LedgerEdgeSelect; - }; -}; -export interface DeleteLedgerPayload { - clientMutationId?: string | null; - /** The `Ledger` that was deleted by this mutation. */ - ledger?: Ledger | null; - ledgerEdge?: LedgerEdge | null; -} -export type DeleteLedgerPayloadSelect = { - clientMutationId?: boolean; - ledger?: { - select: LedgerSelect; - }; - ledgerEdge?: { - select: LedgerEdgeSelect; - }; -}; -export interface CreateMeterPayload { - clientMutationId?: string | null; - /** The `Meter` that was created by this mutation. */ - meter?: Meter | null; - meterEdge?: MeterEdge | null; -} -export type CreateMeterPayloadSelect = { - clientMutationId?: boolean; - meter?: { - select: MeterSelect; - }; - meterEdge?: { - select: MeterEdgeSelect; - }; -}; -export interface UpdateMeterPayload { - clientMutationId?: string | null; - /** The `Meter` that was updated by this mutation. */ - meter?: Meter | null; - meterEdge?: MeterEdge | null; -} -export type UpdateMeterPayloadSelect = { - clientMutationId?: boolean; - meter?: { - select: MeterSelect; - }; - meterEdge?: { - select: MeterEdgeSelect; - }; -}; -export interface DeleteMeterPayload { - clientMutationId?: string | null; - /** The `Meter` that was deleted by this mutation. */ - meter?: Meter | null; - meterEdge?: MeterEdge | null; -} -export type DeleteMeterPayloadSelect = { - clientMutationId?: boolean; - meter?: { - select: MeterSelect; - }; - meterEdge?: { - select: MeterEdgeSelect; - }; -}; -export interface CreateMeterCreditPayload { - clientMutationId?: string | null; - /** The `MeterCredit` that was created by this mutation. */ - meterCredit?: MeterCredit | null; - meterCreditEdge?: MeterCreditEdge | null; -} -export type CreateMeterCreditPayloadSelect = { - clientMutationId?: boolean; - meterCredit?: { - select: MeterCreditSelect; - }; - meterCreditEdge?: { - select: MeterCreditEdgeSelect; - }; -}; -export interface UpdateMeterCreditPayload { - clientMutationId?: string | null; - /** The `MeterCredit` that was updated by this mutation. */ - meterCredit?: MeterCredit | null; - meterCreditEdge?: MeterCreditEdge | null; -} -export type UpdateMeterCreditPayloadSelect = { - clientMutationId?: boolean; - meterCredit?: { - select: MeterCreditSelect; - }; - meterCreditEdge?: { - select: MeterCreditEdgeSelect; - }; -}; -export interface DeleteMeterCreditPayload { - clientMutationId?: string | null; - /** The `MeterCredit` that was deleted by this mutation. */ - meterCredit?: MeterCredit | null; - meterCreditEdge?: MeterCreditEdge | null; -} -export type DeleteMeterCreditPayloadSelect = { - clientMutationId?: boolean; - meterCredit?: { - select: MeterCreditSelect; - }; - meterCreditEdge?: { - select: MeterCreditEdgeSelect; - }; -}; -export interface CreateMeterDefaultPayload { - clientMutationId?: string | null; - /** The `MeterDefault` that was created by this mutation. */ - meterDefault?: MeterDefault | null; - meterDefaultEdge?: MeterDefaultEdge | null; -} -export type CreateMeterDefaultPayloadSelect = { - clientMutationId?: boolean; - meterDefault?: { - select: MeterDefaultSelect; - }; - meterDefaultEdge?: { - select: MeterDefaultEdgeSelect; - }; -}; -export interface UpdateMeterDefaultPayload { - clientMutationId?: string | null; - /** The `MeterDefault` that was updated by this mutation. */ - meterDefault?: MeterDefault | null; - meterDefaultEdge?: MeterDefaultEdge | null; -} -export type UpdateMeterDefaultPayloadSelect = { - clientMutationId?: boolean; - meterDefault?: { - select: MeterDefaultSelect; - }; - meterDefaultEdge?: { - select: MeterDefaultEdgeSelect; - }; -}; -export interface DeleteMeterDefaultPayload { - clientMutationId?: string | null; - /** The `MeterDefault` that was deleted by this mutation. */ - meterDefault?: MeterDefault | null; - meterDefaultEdge?: MeterDefaultEdge | null; -} -export type DeleteMeterDefaultPayloadSelect = { - clientMutationId?: boolean; - meterDefault?: { - select: MeterDefaultSelect; - }; - meterDefaultEdge?: { - select: MeterDefaultEdgeSelect; - }; -}; -export interface CreateMeterSourcePayload { - clientMutationId?: string | null; - /** The `MeterSource` that was created by this mutation. */ - meterSource?: MeterSource | null; - meterSourceEdge?: MeterSourceEdge | null; -} -export type CreateMeterSourcePayloadSelect = { - clientMutationId?: boolean; - meterSource?: { - select: MeterSourceSelect; - }; - meterSourceEdge?: { - select: MeterSourceEdgeSelect; - }; -}; -export interface UpdateMeterSourcePayload { - clientMutationId?: string | null; - /** The `MeterSource` that was updated by this mutation. */ - meterSource?: MeterSource | null; - meterSourceEdge?: MeterSourceEdge | null; -} -export type UpdateMeterSourcePayloadSelect = { - clientMutationId?: boolean; - meterSource?: { - select: MeterSourceSelect; - }; - meterSourceEdge?: { - select: MeterSourceEdgeSelect; - }; -}; -export interface DeleteMeterSourcePayload { - clientMutationId?: string | null; - /** The `MeterSource` that was deleted by this mutation. */ - meterSource?: MeterSource | null; - meterSourceEdge?: MeterSourceEdge | null; -} -export type DeleteMeterSourcePayloadSelect = { - clientMutationId?: boolean; - meterSource?: { - select: MeterSourceSelect; - }; - meterSourceEdge?: { - select: MeterSourceEdgeSelect; + appLimitWarningEdge?: { + select: AppLimitWarningEdgeSelect; }; + clientMutationId?: boolean; }; export interface CreateOrgLimitAggregatePayload { clientMutationId?: string | null; @@ -7137,422 +3712,6 @@ export type DeleteOrgLimitWarningPayloadSelect = { select: OrgLimitWarningEdgeSelect; }; }; -export interface CreatePlanCapPayload { - clientMutationId?: string | null; - /** The `PlanCap` that was created by this mutation. */ - planCap?: PlanCap | null; - planCapEdge?: PlanCapEdge | null; -} -export type CreatePlanCapPayloadSelect = { - clientMutationId?: boolean; - planCap?: { - select: PlanCapSelect; - }; - planCapEdge?: { - select: PlanCapEdgeSelect; - }; -}; -export interface UpdatePlanCapPayload { - clientMutationId?: string | null; - /** The `PlanCap` that was updated by this mutation. */ - planCap?: PlanCap | null; - planCapEdge?: PlanCapEdge | null; -} -export type UpdatePlanCapPayloadSelect = { - clientMutationId?: boolean; - planCap?: { - select: PlanCapSelect; - }; - planCapEdge?: { - select: PlanCapEdgeSelect; - }; -}; -export interface DeletePlanCapPayload { - clientMutationId?: string | null; - /** The `PlanCap` that was deleted by this mutation. */ - planCap?: PlanCap | null; - planCapEdge?: PlanCapEdge | null; -} -export type DeletePlanCapPayloadSelect = { - clientMutationId?: boolean; - planCap?: { - select: PlanCapSelect; - }; - planCapEdge?: { - select: PlanCapEdgeSelect; - }; -}; -export interface CreatePlanPayload { - clientMutationId?: string | null; - /** The `Plan` that was created by this mutation. */ - plan?: Plan | null; - planEdge?: PlanEdge | null; -} -export type CreatePlanPayloadSelect = { - clientMutationId?: boolean; - plan?: { - select: PlanSelect; - }; - planEdge?: { - select: PlanEdgeSelect; - }; -}; -export interface UpdatePlanPayload { - clientMutationId?: string | null; - /** The `Plan` that was updated by this mutation. */ - plan?: Plan | null; - planEdge?: PlanEdge | null; -} -export type UpdatePlanPayloadSelect = { - clientMutationId?: boolean; - plan?: { - select: PlanSelect; - }; - planEdge?: { - select: PlanEdgeSelect; - }; -}; -export interface DeletePlanPayload { - clientMutationId?: string | null; - /** The `Plan` that was deleted by this mutation. */ - plan?: Plan | null; - planEdge?: PlanEdge | null; -} -export type DeletePlanPayloadSelect = { - clientMutationId?: boolean; - plan?: { - select: PlanSelect; - }; - planEdge?: { - select: PlanEdgeSelect; - }; -}; -export interface CreatePlanLimitPayload { - clientMutationId?: string | null; - /** The `PlanLimit` that was created by this mutation. */ - planLimit?: PlanLimit | null; - planLimitEdge?: PlanLimitEdge | null; -} -export type CreatePlanLimitPayloadSelect = { - clientMutationId?: boolean; - planLimit?: { - select: PlanLimitSelect; - }; - planLimitEdge?: { - select: PlanLimitEdgeSelect; - }; -}; -export interface UpdatePlanLimitPayload { - clientMutationId?: string | null; - /** The `PlanLimit` that was updated by this mutation. */ - planLimit?: PlanLimit | null; - planLimitEdge?: PlanLimitEdge | null; -} -export type UpdatePlanLimitPayloadSelect = { - clientMutationId?: boolean; - planLimit?: { - select: PlanLimitSelect; - }; - planLimitEdge?: { - select: PlanLimitEdgeSelect; - }; -}; -export interface DeletePlanLimitPayload { - clientMutationId?: string | null; - /** The `PlanLimit` that was deleted by this mutation. */ - planLimit?: PlanLimit | null; - planLimitEdge?: PlanLimitEdge | null; -} -export type DeletePlanLimitPayloadSelect = { - clientMutationId?: boolean; - planLimit?: { - select: PlanLimitSelect; - }; - planLimitEdge?: { - select: PlanLimitEdgeSelect; - }; -}; -export interface CreatePlanMeterLimitPayload { - clientMutationId?: string | null; - /** The `PlanMeterLimit` that was created by this mutation. */ - planMeterLimit?: PlanMeterLimit | null; - planMeterLimitEdge?: PlanMeterLimitEdge | null; -} -export type CreatePlanMeterLimitPayloadSelect = { - clientMutationId?: boolean; - planMeterLimit?: { - select: PlanMeterLimitSelect; - }; - planMeterLimitEdge?: { - select: PlanMeterLimitEdgeSelect; - }; -}; -export interface UpdatePlanMeterLimitPayload { - clientMutationId?: string | null; - /** The `PlanMeterLimit` that was updated by this mutation. */ - planMeterLimit?: PlanMeterLimit | null; - planMeterLimitEdge?: PlanMeterLimitEdge | null; -} -export type UpdatePlanMeterLimitPayloadSelect = { - clientMutationId?: boolean; - planMeterLimit?: { - select: PlanMeterLimitSelect; - }; - planMeterLimitEdge?: { - select: PlanMeterLimitEdgeSelect; - }; -}; -export interface DeletePlanMeterLimitPayload { - clientMutationId?: string | null; - /** The `PlanMeterLimit` that was deleted by this mutation. */ - planMeterLimit?: PlanMeterLimit | null; - planMeterLimitEdge?: PlanMeterLimitEdge | null; -} -export type DeletePlanMeterLimitPayloadSelect = { - clientMutationId?: boolean; - planMeterLimit?: { - select: PlanMeterLimitSelect; - }; - planMeterLimitEdge?: { - select: PlanMeterLimitEdgeSelect; - }; -}; -export interface CreatePlanOverridePayload { - clientMutationId?: string | null; - /** The `PlanOverride` that was created by this mutation. */ - planOverride?: PlanOverride | null; - planOverrideEdge?: PlanOverrideEdge | null; -} -export type CreatePlanOverridePayloadSelect = { - clientMutationId?: boolean; - planOverride?: { - select: PlanOverrideSelect; - }; - planOverrideEdge?: { - select: PlanOverrideEdgeSelect; - }; -}; -export interface UpdatePlanOverridePayload { - clientMutationId?: string | null; - /** The `PlanOverride` that was updated by this mutation. */ - planOverride?: PlanOverride | null; - planOverrideEdge?: PlanOverrideEdge | null; -} -export type UpdatePlanOverridePayloadSelect = { - clientMutationId?: boolean; - planOverride?: { - select: PlanOverrideSelect; - }; - planOverrideEdge?: { - select: PlanOverrideEdgeSelect; - }; -}; -export interface DeletePlanOverridePayload { - clientMutationId?: string | null; - /** The `PlanOverride` that was deleted by this mutation. */ - planOverride?: PlanOverride | null; - planOverrideEdge?: PlanOverrideEdge | null; -} -export type DeletePlanOverridePayloadSelect = { - clientMutationId?: boolean; - planOverride?: { - select: PlanOverrideSelect; - }; - planOverrideEdge?: { - select: PlanOverrideEdgeSelect; - }; -}; -export interface CreatePlanPricingPayload { - clientMutationId?: string | null; - /** The `PlanPricing` that was created by this mutation. */ - planPricing?: PlanPricing | null; - planPricingEdge?: PlanPricingEdge | null; -} -export type CreatePlanPricingPayloadSelect = { - clientMutationId?: boolean; - planPricing?: { - select: PlanPricingSelect; - }; - planPricingEdge?: { - select: PlanPricingEdgeSelect; - }; -}; -export interface UpdatePlanPricingPayload { - clientMutationId?: string | null; - /** The `PlanPricing` that was updated by this mutation. */ - planPricing?: PlanPricing | null; - planPricingEdge?: PlanPricingEdge | null; -} -export type UpdatePlanPricingPayloadSelect = { - clientMutationId?: boolean; - planPricing?: { - select: PlanPricingSelect; - }; - planPricingEdge?: { - select: PlanPricingEdgeSelect; - }; -}; -export interface DeletePlanPricingPayload { - clientMutationId?: string | null; - /** The `PlanPricing` that was deleted by this mutation. */ - planPricing?: PlanPricing | null; - planPricingEdge?: PlanPricingEdge | null; -} -export type DeletePlanPricingPayloadSelect = { - clientMutationId?: boolean; - planPricing?: { - select: PlanPricingSelect; - }; - planPricingEdge?: { - select: PlanPricingEdgeSelect; - }; -}; -export interface CreatePlanSubscriptionPayload { - clientMutationId?: string | null; - /** The `PlanSubscription` that was created by this mutation. */ - planSubscription?: PlanSubscription | null; - planSubscriptionEdge?: PlanSubscriptionEdge | null; -} -export type CreatePlanSubscriptionPayloadSelect = { - clientMutationId?: boolean; - planSubscription?: { - select: PlanSubscriptionSelect; - }; - planSubscriptionEdge?: { - select: PlanSubscriptionEdgeSelect; - }; -}; -export interface UpdatePlanSubscriptionPayload { - clientMutationId?: string | null; - /** The `PlanSubscription` that was updated by this mutation. */ - planSubscription?: PlanSubscription | null; - planSubscriptionEdge?: PlanSubscriptionEdge | null; -} -export type UpdatePlanSubscriptionPayloadSelect = { - clientMutationId?: boolean; - planSubscription?: { - select: PlanSubscriptionSelect; - }; - planSubscriptionEdge?: { - select: PlanSubscriptionEdgeSelect; - }; -}; -export interface DeletePlanSubscriptionPayload { - clientMutationId?: string | null; - /** The `PlanSubscription` that was deleted by this mutation. */ - planSubscription?: PlanSubscription | null; - planSubscriptionEdge?: PlanSubscriptionEdge | null; -} -export type DeletePlanSubscriptionPayloadSelect = { - clientMutationId?: boolean; - planSubscription?: { - select: PlanSubscriptionSelect; - }; - planSubscriptionEdge?: { - select: PlanSubscriptionEdgeSelect; - }; -}; -/** A `AppLevelRequirement` edge in the connection. */ -export interface AppLevelRequirementEdge { - cursor?: string | null; - /** The `AppLevelRequirement` at the end of the edge. */ - node?: AppLevelRequirement | null; -} -export type AppLevelRequirementEdgeSelect = { - cursor?: boolean; - node?: { - select: AppLevelRequirementSelect; - }; -}; -/** 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 `AppAchievementReward` edge in the connection. */ -export interface AppAchievementRewardEdge { - cursor?: string | null; - /** The `AppAchievementReward` at the end of the edge. */ - node?: AppAchievementReward | null; -} -export type AppAchievementRewardEdgeSelect = { - cursor?: boolean; - node?: { - select: AppAchievementRewardSelect; - }; -}; -/** A `AppEventAggregate` edge in the connection. */ -export interface AppEventAggregateEdge { - cursor?: string | null; - /** The `AppEventAggregate` at the end of the edge. */ - node?: AppEventAggregate | null; -} -export type AppEventAggregateEdgeSelect = { - cursor?: boolean; - node?: { - select: AppEventAggregateSelect; - }; -}; -/** A `AppEvent` edge in the connection. */ -export interface AppEventEdge { - cursor?: string | null; - /** The `AppEvent` at the end of the edge. */ - node?: AppEvent | null; -} -export type AppEventEdgeSelect = { - cursor?: boolean; - node?: { - select: AppEventSelect; - }; -}; -/** A `AppEventType` edge in the connection. */ -export interface AppEventTypeEdge { - cursor?: string | null; - /** The `AppEventType` at the end of the edge. */ - node?: AppEventType | null; -} -export type AppEventTypeEdgeSelect = { - cursor?: boolean; - node?: { - select: AppEventTypeSelect; - }; -}; -/** A `AppLevel` edge in the connection. */ -export interface AppLevelEdge { - cursor?: string | null; - /** The `AppLevel` at the end of the edge. */ - node?: AppLevel | null; -} -export type AppLevelEdgeSelect = { - cursor?: boolean; - node?: { - select: AppLevelSelect; - }; -}; -/** A `AppLevelGrant` edge in the connection. */ -export interface AppLevelGrantEdge { - cursor?: string | null; - /** The `AppLevelGrant` at the end of the edge. */ - node?: AppLevelGrant | null; -} -export type AppLevelGrantEdgeSelect = { - cursor?: boolean; - node?: { - select: AppLevelGrantSelect; - }; -}; /** A `AppLimitCap` edge in the connection. */ export interface AppLimitCapEdge { cursor?: string | null; @@ -7673,78 +3832,6 @@ export type AppLimitWarningEdgeSelect = { select: AppLimitWarningSelect; }; }; -/** A `BillingUsageSummary` edge in the connection. */ -export interface BillingUsageSummaryEdge { - cursor?: string | null; - /** The `BillingUsageSummary` at the end of the edge. */ - node?: BillingUsageSummary | null; -} -export type BillingUsageSummaryEdgeSelect = { - cursor?: boolean; - node?: { - select: BillingUsageSummarySelect; - }; -}; -/** A `Ledger` edge in the connection. */ -export interface LedgerEdge { - cursor?: string | null; - /** The `Ledger` at the end of the edge. */ - node?: Ledger | null; -} -export type LedgerEdgeSelect = { - cursor?: boolean; - node?: { - select: LedgerSelect; - }; -}; -/** A `Meter` edge in the connection. */ -export interface MeterEdge { - cursor?: string | null; - /** The `Meter` at the end of the edge. */ - node?: Meter | null; -} -export type MeterEdgeSelect = { - cursor?: boolean; - node?: { - select: MeterSelect; - }; -}; -/** A `MeterCredit` edge in the connection. */ -export interface MeterCreditEdge { - cursor?: string | null; - /** The `MeterCredit` at the end of the edge. */ - node?: MeterCredit | null; -} -export type MeterCreditEdgeSelect = { - cursor?: boolean; - node?: { - select: MeterCreditSelect; - }; -}; -/** A `MeterDefault` edge in the connection. */ -export interface MeterDefaultEdge { - cursor?: string | null; - /** The `MeterDefault` at the end of the edge. */ - node?: MeterDefault | null; -} -export type MeterDefaultEdgeSelect = { - cursor?: boolean; - node?: { - select: MeterDefaultSelect; - }; -}; -/** A `MeterSource` edge in the connection. */ -export interface MeterSourceEdge { - cursor?: string | null; - /** The `MeterSource` at the end of the edge. */ - node?: MeterSource | null; -} -export type MeterSourceEdgeSelect = { - cursor?: boolean; - node?: { - select: MeterSourceSelect; - }; -}; /** A `OrgLimitAggregate` edge in the connection. */ export interface OrgLimitAggregateEdge { cursor?: string | null; @@ -7841,87 +3928,3 @@ export type OrgLimitWarningEdgeSelect = { select: OrgLimitWarningSelect; }; }; -/** A `PlanCap` edge in the connection. */ -export interface PlanCapEdge { - cursor?: string | null; - /** The `PlanCap` at the end of the edge. */ - node?: PlanCap | null; -} -export type PlanCapEdgeSelect = { - cursor?: boolean; - node?: { - select: PlanCapSelect; - }; -}; -/** A `Plan` edge in the connection. */ -export interface PlanEdge { - cursor?: string | null; - /** The `Plan` at the end of the edge. */ - node?: Plan | null; -} -export type PlanEdgeSelect = { - cursor?: boolean; - node?: { - select: PlanSelect; - }; -}; -/** A `PlanLimit` edge in the connection. */ -export interface PlanLimitEdge { - cursor?: string | null; - /** The `PlanLimit` at the end of the edge. */ - node?: PlanLimit | null; -} -export type PlanLimitEdgeSelect = { - cursor?: boolean; - node?: { - select: PlanLimitSelect; - }; -}; -/** A `PlanMeterLimit` edge in the connection. */ -export interface PlanMeterLimitEdge { - cursor?: string | null; - /** The `PlanMeterLimit` at the end of the edge. */ - node?: PlanMeterLimit | null; -} -export type PlanMeterLimitEdgeSelect = { - cursor?: boolean; - node?: { - select: PlanMeterLimitSelect; - }; -}; -/** A `PlanOverride` edge in the connection. */ -export interface PlanOverrideEdge { - cursor?: string | null; - /** The `PlanOverride` at the end of the edge. */ - node?: PlanOverride | null; -} -export type PlanOverrideEdgeSelect = { - cursor?: boolean; - node?: { - select: PlanOverrideSelect; - }; -}; -/** A `PlanPricing` edge in the connection. */ -export interface PlanPricingEdge { - cursor?: string | null; - /** The `PlanPricing` at the end of the edge. */ - node?: PlanPricing | null; -} -export type PlanPricingEdgeSelect = { - cursor?: boolean; - node?: { - select: PlanPricingSelect; - }; -}; -/** A `PlanSubscription` edge in the connection. */ -export interface PlanSubscriptionEdge { - cursor?: string | null; - /** The `PlanSubscription` at the end of the edge. */ - node?: PlanSubscription | null; -} -export type PlanSubscriptionEdgeSelect = { - cursor?: boolean; - node?: { - select: PlanSubscriptionSelect; - }; -}; diff --git a/sdk/constructive-sdk/src/usage/orm/models/appAchievementReward.ts b/sdk/constructive-sdk/src/usage/orm/models/appAchievementReward.ts deleted file mode 100644 index cdbccdd6b0..0000000000 --- a/sdk/constructive-sdk/src/usage/orm/models/appAchievementReward.ts +++ /dev/null @@ -1,247 +0,0 @@ -/** - * AppAchievementReward 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 { - AppAchievementReward, - AppAchievementRewardWithRelations, - AppAchievementRewardSelect, - AppAchievementRewardFilter, - AppAchievementRewardOrderBy, - CreateAppAchievementRewardInput, - UpdateAppAchievementRewardInput, - AppAchievementRewardPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AppAchievementRewardModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appAchievementRewards: ConnectionResult< - InferSelectResult - >; - }> { - const { document, variables } = buildFindManyDocument( - 'AppAchievementReward', - 'appAchievementRewards', - 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, - }, - 'AppAchievementRewardFilter', - 'AppAchievementRewardOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppAchievementReward', - fieldName: 'appAchievementRewards', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appAchievementReward: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AppAchievementReward', - 'appAchievementRewards', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AppAchievementRewardFilter', - 'AppAchievementRewardOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppAchievementReward', - fieldName: 'appAchievementReward', - document, - variables, - transform: (data: { - appAchievementRewards?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appAchievementReward: data.appAchievementRewards?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - appAchievementReward: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AppAchievementReward', - 'appAchievementRewards', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AppAchievementRewardFilter', - 'AppAchievementRewardOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppAchievementReward', - fieldName: 'appAchievementReward', - document, - variables, - transform: (data: { - appAchievementRewards?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appAchievementReward: data.appAchievementRewards?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppAchievementReward: { - appAchievementReward: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppAchievementReward', - 'createAppAchievementReward', - 'appAchievementReward', - args.select, - args.data, - 'CreateAppAchievementRewardInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppAchievementReward', - fieldName: 'createAppAchievementReward', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AppAchievementRewardPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAppAchievementReward: { - appAchievementReward: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AppAchievementReward', - 'updateAppAchievementReward', - 'appAchievementReward', - args.select, - args.where.id, - args.data, - 'UpdateAppAchievementRewardInput', - 'id', - 'appAchievementRewardPatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppAchievementReward', - fieldName: 'updateAppAchievementReward', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAppAchievementReward: { - appAchievementReward: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AppAchievementReward', - 'deleteAppAchievementReward', - 'appAchievementReward', - { - id: args.where.id, - }, - 'DeleteAppAchievementRewardInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppAchievementReward', - fieldName: 'deleteAppAchievementReward', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/usage/orm/models/appEvent.ts b/sdk/constructive-sdk/src/usage/orm/models/appEvent.ts deleted file mode 100644 index b0cc9982d4..0000000000 --- a/sdk/constructive-sdk/src/usage/orm/models/appEvent.ts +++ /dev/null @@ -1,250 +0,0 @@ -/** - * AppEvent 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 { - AppEvent, - AppEventWithRelations, - AppEventSelect, - AppEventFilter, - AppEventOrderBy, - CreateAppEventInput, - UpdateAppEventInput, - AppEventPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AppEventModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appEvents: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'AppEvent', - 'appEvents', - 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, - }, - 'AppEventFilter', - 'AppEventOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppEvent', - fieldName: 'appEvents', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appEvent: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AppEvent', - 'appEvents', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AppEventFilter', - 'AppEventOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppEvent', - fieldName: 'appEvent', - document, - variables, - transform: (data: { - appEvents?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appEvent: data.appEvents?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - appEvent: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AppEvent', - 'appEvents', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AppEventFilter', - 'AppEventOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppEvent', - fieldName: 'appEvent', - document, - variables, - transform: (data: { - appEvents?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appEvent: data.appEvents?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppEvent: { - appEvent: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppEvent', - 'createAppEvent', - 'appEvent', - args.select, - args.data, - 'CreateAppEventInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppEvent', - fieldName: 'createAppEvent', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - createdAt: string; - }, - AppEventPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAppEvent: { - appEvent: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AppEvent', - 'updateAppEvent', - 'appEvent', - args.select, - args.where.id, - args.data, - 'UpdateAppEventInput', - 'id', - 'appEventPatch', - connectionFieldsMap, - { - createdAt: args.where.createdAt, - } - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppEvent', - fieldName: 'updateAppEvent', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - createdAt: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAppEvent: { - appEvent: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AppEvent', - 'deleteAppEvent', - 'appEvent', - { - id: args.where.id, - createdAt: args.where.createdAt, - }, - 'DeleteAppEventInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppEvent', - fieldName: 'deleteAppEvent', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/usage/orm/models/appEventAggregate.ts b/sdk/constructive-sdk/src/usage/orm/models/appEventAggregate.ts deleted file mode 100644 index 74985e675e..0000000000 --- a/sdk/constructive-sdk/src/usage/orm/models/appEventAggregate.ts +++ /dev/null @@ -1,245 +0,0 @@ -/** - * AppEventAggregate 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 { - AppEventAggregate, - AppEventAggregateWithRelations, - AppEventAggregateSelect, - AppEventAggregateFilter, - AppEventAggregateOrderBy, - CreateAppEventAggregateInput, - UpdateAppEventAggregateInput, - AppEventAggregatePatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AppEventAggregateModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appEventAggregates: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'AppEventAggregate', - 'appEventAggregates', - 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, - }, - 'AppEventAggregateFilter', - 'AppEventAggregateOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppEventAggregate', - fieldName: 'appEventAggregates', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appEventAggregate: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AppEventAggregate', - 'appEventAggregates', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AppEventAggregateFilter', - 'AppEventAggregateOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppEventAggregate', - fieldName: 'appEventAggregate', - document, - variables, - transform: (data: { - appEventAggregates?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appEventAggregate: data.appEventAggregates?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - appEventAggregate: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AppEventAggregate', - 'appEventAggregates', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AppEventAggregateFilter', - 'AppEventAggregateOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppEventAggregate', - fieldName: 'appEventAggregate', - document, - variables, - transform: (data: { - appEventAggregates?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appEventAggregate: data.appEventAggregates?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppEventAggregate: { - appEventAggregate: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppEventAggregate', - 'createAppEventAggregate', - 'appEventAggregate', - args.select, - args.data, - 'CreateAppEventAggregateInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppEventAggregate', - fieldName: 'createAppEventAggregate', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AppEventAggregatePatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAppEventAggregate: { - appEventAggregate: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AppEventAggregate', - 'updateAppEventAggregate', - 'appEventAggregate', - args.select, - args.where.id, - args.data, - 'UpdateAppEventAggregateInput', - 'id', - 'appEventAggregatePatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppEventAggregate', - fieldName: 'updateAppEventAggregate', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAppEventAggregate: { - appEventAggregate: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AppEventAggregate', - 'deleteAppEventAggregate', - 'appEventAggregate', - { - id: args.where.id, - }, - 'DeleteAppEventAggregateInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppEventAggregate', - fieldName: 'deleteAppEventAggregate', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/usage/orm/models/appEventType.ts b/sdk/constructive-sdk/src/usage/orm/models/appEventType.ts deleted file mode 100644 index 4781228b4c..0000000000 --- a/sdk/constructive-sdk/src/usage/orm/models/appEventType.ts +++ /dev/null @@ -1,245 +0,0 @@ -/** - * AppEventType 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 { - AppEventType, - AppEventTypeWithRelations, - AppEventTypeSelect, - AppEventTypeFilter, - AppEventTypeOrderBy, - CreateAppEventTypeInput, - UpdateAppEventTypeInput, - AppEventTypePatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AppEventTypeModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appEventTypes: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'AppEventType', - 'appEventTypes', - 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, - }, - 'AppEventTypeFilter', - 'AppEventTypeOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppEventType', - fieldName: 'appEventTypes', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appEventType: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AppEventType', - 'appEventTypes', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AppEventTypeFilter', - 'AppEventTypeOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppEventType', - fieldName: 'appEventType', - document, - variables, - transform: (data: { - appEventTypes?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appEventType: data.appEventTypes?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - appEventType: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AppEventType', - 'appEventTypes', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AppEventTypeFilter', - 'AppEventTypeOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppEventType', - fieldName: 'appEventType', - document, - variables, - transform: (data: { - appEventTypes?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appEventType: data.appEventTypes?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppEventType: { - appEventType: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppEventType', - 'createAppEventType', - 'appEventType', - args.select, - args.data, - 'CreateAppEventTypeInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppEventType', - fieldName: 'createAppEventType', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AppEventTypePatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAppEventType: { - appEventType: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AppEventType', - 'updateAppEventType', - 'appEventType', - args.select, - args.where.id, - args.data, - 'UpdateAppEventTypeInput', - 'id', - 'appEventTypePatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppEventType', - fieldName: 'updateAppEventType', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAppEventType: { - appEventType: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AppEventType', - 'deleteAppEventType', - 'appEventType', - { - id: args.where.id, - }, - 'DeleteAppEventTypeInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppEventType', - fieldName: 'deleteAppEventType', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/usage/orm/models/appLevel.ts b/sdk/constructive-sdk/src/usage/orm/models/appLevel.ts deleted file mode 100644 index 36a050cba3..0000000000 --- a/sdk/constructive-sdk/src/usage/orm/models/appLevel.ts +++ /dev/null @@ -1,245 +0,0 @@ -/** - * AppLevel 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 { - AppLevel, - AppLevelWithRelations, - AppLevelSelect, - AppLevelFilter, - AppLevelOrderBy, - CreateAppLevelInput, - UpdateAppLevelInput, - AppLevelPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AppLevelModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLevels: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'AppLevel', - 'appLevels', - 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, - }, - 'AppLevelFilter', - 'AppLevelOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLevel', - fieldName: 'appLevels', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLevel: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AppLevel', - 'appLevels', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AppLevelFilter', - 'AppLevelOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLevel', - fieldName: 'appLevel', - document, - variables, - transform: (data: { - appLevels?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appLevel: data.appLevels?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLevel: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AppLevel', - 'appLevels', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AppLevelFilter', - 'AppLevelOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLevel', - fieldName: 'appLevel', - document, - variables, - transform: (data: { - appLevels?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appLevel: data.appLevels?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppLevel: { - appLevel: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppLevel', - 'createAppLevel', - 'appLevel', - args.select, - args.data, - 'CreateAppLevelInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLevel', - fieldName: 'createAppLevel', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AppLevelPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAppLevel: { - appLevel: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AppLevel', - 'updateAppLevel', - 'appLevel', - args.select, - args.where.id, - args.data, - 'UpdateAppLevelInput', - 'id', - 'appLevelPatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLevel', - fieldName: 'updateAppLevel', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAppLevel: { - appLevel: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AppLevel', - 'deleteAppLevel', - 'appLevel', - { - id: args.where.id, - }, - 'DeleteAppLevelInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLevel', - fieldName: 'deleteAppLevel', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/usage/orm/models/appLevelGrant.ts b/sdk/constructive-sdk/src/usage/orm/models/appLevelGrant.ts deleted file mode 100644 index 9324be5b70..0000000000 --- a/sdk/constructive-sdk/src/usage/orm/models/appLevelGrant.ts +++ /dev/null @@ -1,245 +0,0 @@ -/** - * AppLevelGrant 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 { - AppLevelGrant, - AppLevelGrantWithRelations, - AppLevelGrantSelect, - AppLevelGrantFilter, - AppLevelGrantOrderBy, - CreateAppLevelGrantInput, - UpdateAppLevelGrantInput, - AppLevelGrantPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AppLevelGrantModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLevelGrants: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'AppLevelGrant', - 'appLevelGrants', - 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, - }, - 'AppLevelGrantFilter', - 'AppLevelGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLevelGrant', - fieldName: 'appLevelGrants', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLevelGrant: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AppLevelGrant', - 'appLevelGrants', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AppLevelGrantFilter', - 'AppLevelGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLevelGrant', - fieldName: 'appLevelGrant', - document, - variables, - transform: (data: { - appLevelGrants?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appLevelGrant: data.appLevelGrants?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLevelGrant: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AppLevelGrant', - 'appLevelGrants', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AppLevelGrantFilter', - 'AppLevelGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLevelGrant', - fieldName: 'appLevelGrant', - document, - variables, - transform: (data: { - appLevelGrants?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appLevelGrant: data.appLevelGrants?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppLevelGrant: { - appLevelGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppLevelGrant', - 'createAppLevelGrant', - 'appLevelGrant', - args.select, - args.data, - 'CreateAppLevelGrantInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLevelGrant', - fieldName: 'createAppLevelGrant', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AppLevelGrantPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAppLevelGrant: { - appLevelGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AppLevelGrant', - 'updateAppLevelGrant', - 'appLevelGrant', - args.select, - args.where.id, - args.data, - 'UpdateAppLevelGrantInput', - 'id', - 'appLevelGrantPatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLevelGrant', - fieldName: 'updateAppLevelGrant', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAppLevelGrant: { - appLevelGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AppLevelGrant', - 'deleteAppLevelGrant', - 'appLevelGrant', - { - id: args.where.id, - }, - 'DeleteAppLevelGrantInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLevelGrant', - fieldName: 'deleteAppLevelGrant', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/usage/orm/models/appLevelRequirement.ts b/sdk/constructive-sdk/src/usage/orm/models/appLevelRequirement.ts deleted file mode 100644 index f7634bc482..0000000000 --- a/sdk/constructive-sdk/src/usage/orm/models/appLevelRequirement.ts +++ /dev/null @@ -1,245 +0,0 @@ -/** - * AppLevelRequirement 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 { - AppLevelRequirement, - AppLevelRequirementWithRelations, - AppLevelRequirementSelect, - AppLevelRequirementFilter, - AppLevelRequirementOrderBy, - CreateAppLevelRequirementInput, - UpdateAppLevelRequirementInput, - AppLevelRequirementPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AppLevelRequirementModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLevelRequirements: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'AppLevelRequirement', - 'appLevelRequirements', - 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, - }, - 'AppLevelRequirementFilter', - 'AppLevelRequirementOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLevelRequirement', - fieldName: 'appLevelRequirements', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLevelRequirement: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AppLevelRequirement', - 'appLevelRequirements', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AppLevelRequirementFilter', - 'AppLevelRequirementOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLevelRequirement', - fieldName: 'appLevelRequirement', - document, - variables, - transform: (data: { - appLevelRequirements?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appLevelRequirement: data.appLevelRequirements?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLevelRequirement: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AppLevelRequirement', - 'appLevelRequirements', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AppLevelRequirementFilter', - 'AppLevelRequirementOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLevelRequirement', - fieldName: 'appLevelRequirement', - document, - variables, - transform: (data: { - appLevelRequirements?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appLevelRequirement: data.appLevelRequirements?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppLevelRequirement: { - appLevelRequirement: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppLevelRequirement', - 'createAppLevelRequirement', - 'appLevelRequirement', - args.select, - args.data, - 'CreateAppLevelRequirementInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLevelRequirement', - fieldName: 'createAppLevelRequirement', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AppLevelRequirementPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAppLevelRequirement: { - appLevelRequirement: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AppLevelRequirement', - 'updateAppLevelRequirement', - 'appLevelRequirement', - args.select, - args.where.id, - args.data, - 'UpdateAppLevelRequirementInput', - 'id', - 'appLevelRequirementPatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLevelRequirement', - fieldName: 'updateAppLevelRequirement', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAppLevelRequirement: { - appLevelRequirement: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AppLevelRequirement', - 'deleteAppLevelRequirement', - 'appLevelRequirement', - { - id: args.where.id, - }, - 'DeleteAppLevelRequirementInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLevelRequirement', - fieldName: 'deleteAppLevelRequirement', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/usage/orm/models/billingUsageSummary.ts b/sdk/constructive-sdk/src/usage/orm/models/billingUsageSummary.ts deleted file mode 100644 index 38512d9f62..0000000000 --- a/sdk/constructive-sdk/src/usage/orm/models/billingUsageSummary.ts +++ /dev/null @@ -1,245 +0,0 @@ -/** - * BillingUsageSummary 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 { - BillingUsageSummary, - BillingUsageSummaryWithRelations, - BillingUsageSummarySelect, - BillingUsageSummaryFilter, - BillingUsageSummaryOrderBy, - CreateBillingUsageSummaryInput, - UpdateBillingUsageSummaryInput, - BillingUsageSummaryPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class BillingUsageSummaryModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - billingUsageSummaries: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'BillingUsageSummary', - 'billingUsageSummaries', - 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, - }, - 'BillingUsageSummaryFilter', - 'BillingUsageSummaryOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'BillingUsageSummary', - fieldName: 'billingUsageSummaries', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - billingUsageSummary: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'BillingUsageSummary', - 'billingUsageSummaries', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'BillingUsageSummaryFilter', - 'BillingUsageSummaryOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'BillingUsageSummary', - fieldName: 'billingUsageSummary', - document, - variables, - transform: (data: { - billingUsageSummaries?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - billingUsageSummary: data.billingUsageSummaries?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - billingUsageSummary: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'BillingUsageSummary', - 'billingUsageSummaries', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'BillingUsageSummaryFilter', - 'BillingUsageSummaryOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'BillingUsageSummary', - fieldName: 'billingUsageSummary', - document, - variables, - transform: (data: { - billingUsageSummaries?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - billingUsageSummary: data.billingUsageSummaries?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createBillingUsageSummary: { - billingUsageSummary: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'BillingUsageSummary', - 'createBillingUsageSummary', - 'billingUsageSummary', - args.select, - args.data, - 'CreateBillingUsageSummaryInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'BillingUsageSummary', - fieldName: 'createBillingUsageSummary', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - BillingUsageSummaryPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateBillingUsageSummary: { - billingUsageSummary: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'BillingUsageSummary', - 'updateBillingUsageSummary', - 'billingUsageSummary', - args.select, - args.where.id, - args.data, - 'UpdateBillingUsageSummaryInput', - 'id', - 'billingUsageSummaryPatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'BillingUsageSummary', - fieldName: 'updateBillingUsageSummary', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteBillingUsageSummary: { - billingUsageSummary: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'BillingUsageSummary', - 'deleteBillingUsageSummary', - 'billingUsageSummary', - { - id: args.where.id, - }, - 'DeleteBillingUsageSummaryInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'BillingUsageSummary', - fieldName: 'deleteBillingUsageSummary', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/usage/orm/models/index.ts b/sdk/constructive-sdk/src/usage/orm/models/index.ts index ef279b7afb..049cfdab13 100644 --- a/sdk/constructive-sdk/src/usage/orm/models/index.ts +++ b/sdk/constructive-sdk/src/usage/orm/models/index.ts @@ -3,13 +3,6 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ -export { AppAchievementRewardModel } from './appAchievementReward'; -export { AppEventAggregateModel } from './appEventAggregate'; -export { AppEventModel } from './appEvent'; -export { AppEventTypeModel } from './appEventType'; -export { AppLevelModel } from './appLevel'; -export { AppLevelGrantModel } from './appLevelGrant'; -export { AppLevelRequirementModel } from './appLevelRequirement'; export { AppLimitCapModel } from './appLimitCap'; export { AppLimitCapsDefaultModel } from './appLimitCapsDefault'; export { AppLimitModel } from './appLimit'; @@ -20,12 +13,6 @@ export { AppLimitCreditRedemptionModel } from './appLimitCreditRedemption'; export { AppLimitDefaultModel } from './appLimitDefault'; export { AppLimitEventModel } from './appLimitEvent'; export { AppLimitWarningModel } from './appLimitWarning'; -export { BillingUsageSummaryModel } from './billingUsageSummary'; -export { LedgerModel } from './ledger'; -export { MeterModel } from './meter'; -export { MeterCreditModel } from './meterCredit'; -export { MeterDefaultModel } from './meterDefault'; -export { MeterSourceModel } from './meterSource'; export { OrgLimitAggregateModel } from './orgLimitAggregate'; export { OrgLimitCapModel } from './orgLimitCap'; export { OrgLimitCapsDefaultModel } from './orgLimitCapsDefault'; @@ -34,10 +21,3 @@ export { OrgLimitCreditModel } from './orgLimitCredit'; export { OrgLimitDefaultModel } from './orgLimitDefault'; export { OrgLimitEventModel } from './orgLimitEvent'; export { OrgLimitWarningModel } from './orgLimitWarning'; -export { PlanCapModel } from './planCap'; -export { PlanModel } from './plan'; -export { PlanLimitModel } from './planLimit'; -export { PlanMeterLimitModel } from './planMeterLimit'; -export { PlanOverrideModel } from './planOverride'; -export { PlanPricingModel } from './planPricing'; -export { PlanSubscriptionModel } from './planSubscription'; diff --git a/sdk/constructive-sdk/src/usage/orm/models/ledger.ts b/sdk/constructive-sdk/src/usage/orm/models/ledger.ts deleted file mode 100644 index 37a6cfd886..0000000000 --- a/sdk/constructive-sdk/src/usage/orm/models/ledger.ts +++ /dev/null @@ -1,250 +0,0 @@ -/** - * Ledger 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 { - Ledger, - LedgerWithRelations, - LedgerSelect, - LedgerFilter, - LedgerOrderBy, - CreateLedgerInput, - UpdateLedgerInput, - LedgerPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class LedgerModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - ledgers: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'Ledger', - 'ledgers', - 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, - }, - 'LedgerFilter', - 'LedgerOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'Ledger', - fieldName: 'ledgers', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - ledger: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'Ledger', - 'ledgers', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'LedgerFilter', - 'LedgerOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'Ledger', - fieldName: 'ledger', - document, - variables, - transform: (data: { - ledgers?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - ledger: data.ledgers?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - ledger: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'Ledger', - 'ledgers', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'LedgerFilter', - 'LedgerOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'Ledger', - fieldName: 'ledger', - document, - variables, - transform: (data: { - ledgers?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - ledger: data.ledgers?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createLedger: { - ledger: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'Ledger', - 'createLedger', - 'ledger', - args.select, - args.data, - 'CreateLedgerInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'Ledger', - fieldName: 'createLedger', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - createdAt: string; - }, - LedgerPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateLedger: { - ledger: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'Ledger', - 'updateLedger', - 'ledger', - args.select, - args.where.id, - args.data, - 'UpdateLedgerInput', - 'id', - 'ledgerPatch', - connectionFieldsMap, - { - createdAt: args.where.createdAt, - } - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'Ledger', - fieldName: 'updateLedger', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - createdAt: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteLedger: { - ledger: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'Ledger', - 'deleteLedger', - 'ledger', - { - id: args.where.id, - createdAt: args.where.createdAt, - }, - 'DeleteLedgerInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'Ledger', - fieldName: 'deleteLedger', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/usage/orm/models/meter.ts b/sdk/constructive-sdk/src/usage/orm/models/meter.ts deleted file mode 100644 index 26718a0190..0000000000 --- a/sdk/constructive-sdk/src/usage/orm/models/meter.ts +++ /dev/null @@ -1,245 +0,0 @@ -/** - * Meter 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 { - Meter, - MeterWithRelations, - MeterSelect, - MeterFilter, - MeterOrderBy, - CreateMeterInput, - UpdateMeterInput, - MeterPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class MeterModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - meters: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'Meter', - 'meters', - 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, - }, - 'MeterFilter', - 'MeterOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'Meter', - fieldName: 'meters', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - meter: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'Meter', - 'meters', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'MeterFilter', - 'MeterOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'Meter', - fieldName: 'meter', - document, - variables, - transform: (data: { - meters?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - meter: data.meters?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - meter: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'Meter', - 'meters', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'MeterFilter', - 'MeterOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'Meter', - fieldName: 'meter', - document, - variables, - transform: (data: { - meters?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - meter: data.meters?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createMeter: { - meter: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'Meter', - 'createMeter', - 'meter', - args.select, - args.data, - 'CreateMeterInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'Meter', - fieldName: 'createMeter', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - MeterPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateMeter: { - meter: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'Meter', - 'updateMeter', - 'meter', - args.select, - args.where.id, - args.data, - 'UpdateMeterInput', - 'id', - 'meterPatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'Meter', - fieldName: 'updateMeter', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteMeter: { - meter: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'Meter', - 'deleteMeter', - 'meter', - { - id: args.where.id, - }, - 'DeleteMeterInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'Meter', - fieldName: 'deleteMeter', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/usage/orm/models/meterCredit.ts b/sdk/constructive-sdk/src/usage/orm/models/meterCredit.ts deleted file mode 100644 index ba2881f8f5..0000000000 --- a/sdk/constructive-sdk/src/usage/orm/models/meterCredit.ts +++ /dev/null @@ -1,245 +0,0 @@ -/** - * MeterCredit 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 { - MeterCredit, - MeterCreditWithRelations, - MeterCreditSelect, - MeterCreditFilter, - MeterCreditOrderBy, - CreateMeterCreditInput, - UpdateMeterCreditInput, - MeterCreditPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class MeterCreditModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - meterCredits: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'MeterCredit', - 'meterCredits', - 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, - }, - 'MeterCreditFilter', - 'MeterCreditOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'MeterCredit', - fieldName: 'meterCredits', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - meterCredit: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'MeterCredit', - 'meterCredits', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'MeterCreditFilter', - 'MeterCreditOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'MeterCredit', - fieldName: 'meterCredit', - document, - variables, - transform: (data: { - meterCredits?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - meterCredit: data.meterCredits?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - meterCredit: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'MeterCredit', - 'meterCredits', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'MeterCreditFilter', - 'MeterCreditOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'MeterCredit', - fieldName: 'meterCredit', - document, - variables, - transform: (data: { - meterCredits?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - meterCredit: data.meterCredits?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createMeterCredit: { - meterCredit: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'MeterCredit', - 'createMeterCredit', - 'meterCredit', - args.select, - args.data, - 'CreateMeterCreditInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'MeterCredit', - fieldName: 'createMeterCredit', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - MeterCreditPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateMeterCredit: { - meterCredit: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'MeterCredit', - 'updateMeterCredit', - 'meterCredit', - args.select, - args.where.id, - args.data, - 'UpdateMeterCreditInput', - 'id', - 'meterCreditPatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'MeterCredit', - fieldName: 'updateMeterCredit', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteMeterCredit: { - meterCredit: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'MeterCredit', - 'deleteMeterCredit', - 'meterCredit', - { - id: args.where.id, - }, - 'DeleteMeterCreditInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'MeterCredit', - fieldName: 'deleteMeterCredit', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/usage/orm/models/meterDefault.ts b/sdk/constructive-sdk/src/usage/orm/models/meterDefault.ts deleted file mode 100644 index a5bec1564f..0000000000 --- a/sdk/constructive-sdk/src/usage/orm/models/meterDefault.ts +++ /dev/null @@ -1,245 +0,0 @@ -/** - * MeterDefault 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 { - MeterDefault, - MeterDefaultWithRelations, - MeterDefaultSelect, - MeterDefaultFilter, - MeterDefaultOrderBy, - CreateMeterDefaultInput, - UpdateMeterDefaultInput, - MeterDefaultPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class MeterDefaultModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - meterDefaults: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'MeterDefault', - 'meterDefaults', - 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, - }, - 'MeterDefaultFilter', - 'MeterDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'MeterDefault', - fieldName: 'meterDefaults', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - meterDefault: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'MeterDefault', - 'meterDefaults', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'MeterDefaultFilter', - 'MeterDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'MeterDefault', - fieldName: 'meterDefault', - document, - variables, - transform: (data: { - meterDefaults?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - meterDefault: data.meterDefaults?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - meterDefault: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'MeterDefault', - 'meterDefaults', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'MeterDefaultFilter', - 'MeterDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'MeterDefault', - fieldName: 'meterDefault', - document, - variables, - transform: (data: { - meterDefaults?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - meterDefault: data.meterDefaults?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createMeterDefault: { - meterDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'MeterDefault', - 'createMeterDefault', - 'meterDefault', - args.select, - args.data, - 'CreateMeterDefaultInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'MeterDefault', - fieldName: 'createMeterDefault', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - MeterDefaultPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateMeterDefault: { - meterDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'MeterDefault', - 'updateMeterDefault', - 'meterDefault', - args.select, - args.where.id, - args.data, - 'UpdateMeterDefaultInput', - 'id', - 'meterDefaultPatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'MeterDefault', - fieldName: 'updateMeterDefault', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteMeterDefault: { - meterDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'MeterDefault', - 'deleteMeterDefault', - 'meterDefault', - { - id: args.where.id, - }, - 'DeleteMeterDefaultInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'MeterDefault', - fieldName: 'deleteMeterDefault', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/usage/orm/models/meterSource.ts b/sdk/constructive-sdk/src/usage/orm/models/meterSource.ts deleted file mode 100644 index 8e1ddd7b0f..0000000000 --- a/sdk/constructive-sdk/src/usage/orm/models/meterSource.ts +++ /dev/null @@ -1,245 +0,0 @@ -/** - * MeterSource 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 { - MeterSource, - MeterSourceWithRelations, - MeterSourceSelect, - MeterSourceFilter, - MeterSourceOrderBy, - CreateMeterSourceInput, - UpdateMeterSourceInput, - MeterSourcePatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class MeterSourceModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - meterSources: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'MeterSource', - 'meterSources', - 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, - }, - 'MeterSourceFilter', - 'MeterSourceOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'MeterSource', - fieldName: 'meterSources', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - meterSource: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'MeterSource', - 'meterSources', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'MeterSourceFilter', - 'MeterSourceOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'MeterSource', - fieldName: 'meterSource', - document, - variables, - transform: (data: { - meterSources?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - meterSource: data.meterSources?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - meterSource: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'MeterSource', - 'meterSources', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'MeterSourceFilter', - 'MeterSourceOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'MeterSource', - fieldName: 'meterSource', - document, - variables, - transform: (data: { - meterSources?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - meterSource: data.meterSources?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createMeterSource: { - meterSource: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'MeterSource', - 'createMeterSource', - 'meterSource', - args.select, - args.data, - 'CreateMeterSourceInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'MeterSource', - fieldName: 'createMeterSource', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - MeterSourcePatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateMeterSource: { - meterSource: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'MeterSource', - 'updateMeterSource', - 'meterSource', - args.select, - args.where.id, - args.data, - 'UpdateMeterSourceInput', - 'id', - 'meterSourcePatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'MeterSource', - fieldName: 'updateMeterSource', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteMeterSource: { - meterSource: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'MeterSource', - 'deleteMeterSource', - 'meterSource', - { - id: args.where.id, - }, - 'DeleteMeterSourceInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'MeterSource', - fieldName: 'deleteMeterSource', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/usage/orm/models/plan.ts b/sdk/constructive-sdk/src/usage/orm/models/plan.ts deleted file mode 100644 index 16b199389a..0000000000 --- a/sdk/constructive-sdk/src/usage/orm/models/plan.ts +++ /dev/null @@ -1,245 +0,0 @@ -/** - * Plan 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 { - Plan, - PlanWithRelations, - PlanSelect, - PlanFilter, - PlanOrderBy, - CreatePlanInput, - UpdatePlanInput, - PlanPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class PlanModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - plans: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'Plan', - 'plans', - 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, - }, - 'PlanFilter', - 'PlanOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'Plan', - fieldName: 'plans', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - plan: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'Plan', - 'plans', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'PlanFilter', - 'PlanOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'Plan', - fieldName: 'plan', - document, - variables, - transform: (data: { - plans?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - plan: data.plans?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - plan: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'Plan', - 'plans', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'PlanFilter', - 'PlanOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'Plan', - fieldName: 'plan', - document, - variables, - transform: (data: { - plans?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - plan: data.plans?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPlan: { - plan: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'Plan', - 'createPlan', - 'plan', - args.select, - args.data, - 'CreatePlanInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'Plan', - fieldName: 'createPlan', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - PlanPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updatePlan: { - plan: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'Plan', - 'updatePlan', - 'plan', - args.select, - args.where.id, - args.data, - 'UpdatePlanInput', - 'id', - 'planPatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'Plan', - fieldName: 'updatePlan', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deletePlan: { - plan: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'Plan', - 'deletePlan', - 'plan', - { - id: args.where.id, - }, - 'DeletePlanInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'Plan', - fieldName: 'deletePlan', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/usage/orm/models/planCap.ts b/sdk/constructive-sdk/src/usage/orm/models/planCap.ts deleted file mode 100644 index 2c3b676aff..0000000000 --- a/sdk/constructive-sdk/src/usage/orm/models/planCap.ts +++ /dev/null @@ -1,245 +0,0 @@ -/** - * PlanCap 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 { - PlanCap, - PlanCapWithRelations, - PlanCapSelect, - PlanCapFilter, - PlanCapOrderBy, - CreatePlanCapInput, - UpdatePlanCapInput, - PlanCapPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class PlanCapModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - planCaps: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'PlanCap', - 'planCaps', - 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, - }, - 'PlanCapFilter', - 'PlanCapOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'PlanCap', - fieldName: 'planCaps', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - planCap: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'PlanCap', - 'planCaps', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'PlanCapFilter', - 'PlanCapOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'PlanCap', - fieldName: 'planCap', - document, - variables, - transform: (data: { - planCaps?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - planCap: data.planCaps?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - planCap: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'PlanCap', - 'planCaps', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'PlanCapFilter', - 'PlanCapOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'PlanCap', - fieldName: 'planCap', - document, - variables, - transform: (data: { - planCaps?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - planCap: data.planCaps?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPlanCap: { - planCap: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PlanCap', - 'createPlanCap', - 'planCap', - args.select, - args.data, - 'CreatePlanCapInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlanCap', - fieldName: 'createPlanCap', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - PlanCapPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updatePlanCap: { - planCap: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'PlanCap', - 'updatePlanCap', - 'planCap', - args.select, - args.where.id, - args.data, - 'UpdatePlanCapInput', - 'id', - 'planCapPatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlanCap', - fieldName: 'updatePlanCap', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deletePlanCap: { - planCap: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'PlanCap', - 'deletePlanCap', - 'planCap', - { - id: args.where.id, - }, - 'DeletePlanCapInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlanCap', - fieldName: 'deletePlanCap', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/usage/orm/models/planLimit.ts b/sdk/constructive-sdk/src/usage/orm/models/planLimit.ts deleted file mode 100644 index b35f99c5e2..0000000000 --- a/sdk/constructive-sdk/src/usage/orm/models/planLimit.ts +++ /dev/null @@ -1,245 +0,0 @@ -/** - * PlanLimit 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 { - PlanLimit, - PlanLimitWithRelations, - PlanLimitSelect, - PlanLimitFilter, - PlanLimitOrderBy, - CreatePlanLimitInput, - UpdatePlanLimitInput, - PlanLimitPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class PlanLimitModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - planLimits: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'PlanLimit', - 'planLimits', - 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, - }, - 'PlanLimitFilter', - 'PlanLimitOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'PlanLimit', - fieldName: 'planLimits', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - planLimit: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'PlanLimit', - 'planLimits', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'PlanLimitFilter', - 'PlanLimitOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'PlanLimit', - fieldName: 'planLimit', - document, - variables, - transform: (data: { - planLimits?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - planLimit: data.planLimits?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - planLimit: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'PlanLimit', - 'planLimits', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'PlanLimitFilter', - 'PlanLimitOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'PlanLimit', - fieldName: 'planLimit', - document, - variables, - transform: (data: { - planLimits?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - planLimit: data.planLimits?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPlanLimit: { - planLimit: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PlanLimit', - 'createPlanLimit', - 'planLimit', - args.select, - args.data, - 'CreatePlanLimitInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlanLimit', - fieldName: 'createPlanLimit', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - PlanLimitPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updatePlanLimit: { - planLimit: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'PlanLimit', - 'updatePlanLimit', - 'planLimit', - args.select, - args.where.id, - args.data, - 'UpdatePlanLimitInput', - 'id', - 'planLimitPatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlanLimit', - fieldName: 'updatePlanLimit', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deletePlanLimit: { - planLimit: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'PlanLimit', - 'deletePlanLimit', - 'planLimit', - { - id: args.where.id, - }, - 'DeletePlanLimitInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlanLimit', - fieldName: 'deletePlanLimit', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/usage/orm/models/planMeterLimit.ts b/sdk/constructive-sdk/src/usage/orm/models/planMeterLimit.ts deleted file mode 100644 index 9e2529dafb..0000000000 --- a/sdk/constructive-sdk/src/usage/orm/models/planMeterLimit.ts +++ /dev/null @@ -1,245 +0,0 @@ -/** - * PlanMeterLimit 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 { - PlanMeterLimit, - PlanMeterLimitWithRelations, - PlanMeterLimitSelect, - PlanMeterLimitFilter, - PlanMeterLimitOrderBy, - CreatePlanMeterLimitInput, - UpdatePlanMeterLimitInput, - PlanMeterLimitPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class PlanMeterLimitModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - planMeterLimits: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'PlanMeterLimit', - 'planMeterLimits', - 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, - }, - 'PlanMeterLimitFilter', - 'PlanMeterLimitOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'PlanMeterLimit', - fieldName: 'planMeterLimits', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - planMeterLimit: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'PlanMeterLimit', - 'planMeterLimits', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'PlanMeterLimitFilter', - 'PlanMeterLimitOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'PlanMeterLimit', - fieldName: 'planMeterLimit', - document, - variables, - transform: (data: { - planMeterLimits?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - planMeterLimit: data.planMeterLimits?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - planMeterLimit: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'PlanMeterLimit', - 'planMeterLimits', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'PlanMeterLimitFilter', - 'PlanMeterLimitOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'PlanMeterLimit', - fieldName: 'planMeterLimit', - document, - variables, - transform: (data: { - planMeterLimits?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - planMeterLimit: data.planMeterLimits?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPlanMeterLimit: { - planMeterLimit: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PlanMeterLimit', - 'createPlanMeterLimit', - 'planMeterLimit', - args.select, - args.data, - 'CreatePlanMeterLimitInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlanMeterLimit', - fieldName: 'createPlanMeterLimit', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - PlanMeterLimitPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updatePlanMeterLimit: { - planMeterLimit: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'PlanMeterLimit', - 'updatePlanMeterLimit', - 'planMeterLimit', - args.select, - args.where.id, - args.data, - 'UpdatePlanMeterLimitInput', - 'id', - 'planMeterLimitPatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlanMeterLimit', - fieldName: 'updatePlanMeterLimit', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deletePlanMeterLimit: { - planMeterLimit: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'PlanMeterLimit', - 'deletePlanMeterLimit', - 'planMeterLimit', - { - id: args.where.id, - }, - 'DeletePlanMeterLimitInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlanMeterLimit', - fieldName: 'deletePlanMeterLimit', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/usage/orm/models/planOverride.ts b/sdk/constructive-sdk/src/usage/orm/models/planOverride.ts deleted file mode 100644 index d8fc2bbf51..0000000000 --- a/sdk/constructive-sdk/src/usage/orm/models/planOverride.ts +++ /dev/null @@ -1,245 +0,0 @@ -/** - * PlanOverride 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 { - PlanOverride, - PlanOverrideWithRelations, - PlanOverrideSelect, - PlanOverrideFilter, - PlanOverrideOrderBy, - CreatePlanOverrideInput, - UpdatePlanOverrideInput, - PlanOverridePatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class PlanOverrideModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - planOverrides: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'PlanOverride', - 'planOverrides', - 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, - }, - 'PlanOverrideFilter', - 'PlanOverrideOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'PlanOverride', - fieldName: 'planOverrides', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - planOverride: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'PlanOverride', - 'planOverrides', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'PlanOverrideFilter', - 'PlanOverrideOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'PlanOverride', - fieldName: 'planOverride', - document, - variables, - transform: (data: { - planOverrides?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - planOverride: data.planOverrides?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - planOverride: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'PlanOverride', - 'planOverrides', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'PlanOverrideFilter', - 'PlanOverrideOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'PlanOverride', - fieldName: 'planOverride', - document, - variables, - transform: (data: { - planOverrides?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - planOverride: data.planOverrides?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPlanOverride: { - planOverride: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PlanOverride', - 'createPlanOverride', - 'planOverride', - args.select, - args.data, - 'CreatePlanOverrideInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlanOverride', - fieldName: 'createPlanOverride', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - PlanOverridePatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updatePlanOverride: { - planOverride: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'PlanOverride', - 'updatePlanOverride', - 'planOverride', - args.select, - args.where.id, - args.data, - 'UpdatePlanOverrideInput', - 'id', - 'planOverridePatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlanOverride', - fieldName: 'updatePlanOverride', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deletePlanOverride: { - planOverride: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'PlanOverride', - 'deletePlanOverride', - 'planOverride', - { - id: args.where.id, - }, - 'DeletePlanOverrideInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlanOverride', - fieldName: 'deletePlanOverride', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/usage/orm/models/planPricing.ts b/sdk/constructive-sdk/src/usage/orm/models/planPricing.ts deleted file mode 100644 index feb19c37e0..0000000000 --- a/sdk/constructive-sdk/src/usage/orm/models/planPricing.ts +++ /dev/null @@ -1,245 +0,0 @@ -/** - * PlanPricing 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 { - PlanPricing, - PlanPricingWithRelations, - PlanPricingSelect, - PlanPricingFilter, - PlanPricingOrderBy, - CreatePlanPricingInput, - UpdatePlanPricingInput, - PlanPricingPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class PlanPricingModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - planPricings: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'PlanPricing', - 'planPricings', - 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, - }, - 'PlanPricingFilter', - 'PlanPricingOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'PlanPricing', - fieldName: 'planPricings', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - planPricing: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'PlanPricing', - 'planPricings', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'PlanPricingFilter', - 'PlanPricingOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'PlanPricing', - fieldName: 'planPricing', - document, - variables, - transform: (data: { - planPricings?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - planPricing: data.planPricings?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - planPricing: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'PlanPricing', - 'planPricings', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'PlanPricingFilter', - 'PlanPricingOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'PlanPricing', - fieldName: 'planPricing', - document, - variables, - transform: (data: { - planPricings?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - planPricing: data.planPricings?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPlanPricing: { - planPricing: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PlanPricing', - 'createPlanPricing', - 'planPricing', - args.select, - args.data, - 'CreatePlanPricingInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlanPricing', - fieldName: 'createPlanPricing', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - PlanPricingPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updatePlanPricing: { - planPricing: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'PlanPricing', - 'updatePlanPricing', - 'planPricing', - args.select, - args.where.id, - args.data, - 'UpdatePlanPricingInput', - 'id', - 'planPricingPatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlanPricing', - fieldName: 'updatePlanPricing', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deletePlanPricing: { - planPricing: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'PlanPricing', - 'deletePlanPricing', - 'planPricing', - { - id: args.where.id, - }, - 'DeletePlanPricingInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlanPricing', - fieldName: 'deletePlanPricing', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/usage/orm/models/planSubscription.ts b/sdk/constructive-sdk/src/usage/orm/models/planSubscription.ts deleted file mode 100644 index 8622e5b6ad..0000000000 --- a/sdk/constructive-sdk/src/usage/orm/models/planSubscription.ts +++ /dev/null @@ -1,245 +0,0 @@ -/** - * PlanSubscription 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 { - PlanSubscription, - PlanSubscriptionWithRelations, - PlanSubscriptionSelect, - PlanSubscriptionFilter, - PlanSubscriptionOrderBy, - CreatePlanSubscriptionInput, - UpdatePlanSubscriptionInput, - PlanSubscriptionPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class PlanSubscriptionModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - planSubscriptions: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'PlanSubscription', - 'planSubscriptions', - 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, - }, - 'PlanSubscriptionFilter', - 'PlanSubscriptionOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'PlanSubscription', - fieldName: 'planSubscriptions', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - planSubscription: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'PlanSubscription', - 'planSubscriptions', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'PlanSubscriptionFilter', - 'PlanSubscriptionOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'PlanSubscription', - fieldName: 'planSubscription', - document, - variables, - transform: (data: { - planSubscriptions?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - planSubscription: data.planSubscriptions?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - planSubscription: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'PlanSubscription', - 'planSubscriptions', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'PlanSubscriptionFilter', - 'PlanSubscriptionOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'PlanSubscription', - fieldName: 'planSubscription', - document, - variables, - transform: (data: { - planSubscriptions?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - planSubscription: data.planSubscriptions?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPlanSubscription: { - planSubscription: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PlanSubscription', - 'createPlanSubscription', - 'planSubscription', - args.select, - args.data, - 'CreatePlanSubscriptionInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlanSubscription', - fieldName: 'createPlanSubscription', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - PlanSubscriptionPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updatePlanSubscription: { - planSubscription: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'PlanSubscription', - 'updatePlanSubscription', - 'planSubscription', - args.select, - args.where.id, - args.data, - 'UpdatePlanSubscriptionInput', - 'id', - 'planSubscriptionPatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlanSubscription', - fieldName: 'updatePlanSubscription', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deletePlanSubscription: { - planSubscription: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'PlanSubscription', - 'deletePlanSubscription', - 'planSubscription', - { - id: args.where.id, - }, - 'DeletePlanSubscriptionInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlanSubscription', - fieldName: 'deletePlanSubscription', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/usage/orm/mutation/index.ts b/sdk/constructive-sdk/src/usage/orm/mutation/index.ts index d573aa713c..4c768de780 100644 --- a/sdk/constructive-sdk/src/usage/orm/mutation/index.ts +++ b/sdk/constructive-sdk/src/usage/orm/mutation/index.ts @@ -7,112 +7,48 @@ import { OrmClient } from '../client'; import { QueryBuilder, buildCustomDocument } from '../query-builder'; import type { InferSelectResult, StrictSelect } from '../select-types'; import type { - GrantAchievementInput, ProvisionBucketInput, - RecomputeCapabilitiesInput, - RevokeAchievementInput, SeedAppLimitCapsDefaultsInput, SeedAppLimitDefaultsInput, - SeedMeterDefaultsInput, SeedOrgLimitCapsDefaultsInput, SeedOrgLimitDefaultsInput, - SeedPlanInput, - SeedTrustLadderInput, - GrantAchievementPayload, ProvisionBucketPayload, - RecomputeCapabilitiesPayload, - RevokeAchievementPayload, SeedAppLimitCapsDefaultsPayload, SeedAppLimitDefaultsPayload, - SeedMeterDefaultsPayload, SeedOrgLimitCapsDefaultsPayload, SeedOrgLimitDefaultsPayload, - SeedPlanPayload, - SeedTrustLadderPayload, - GrantAchievementPayloadSelect, ProvisionBucketPayloadSelect, - RecomputeCapabilitiesPayloadSelect, - RevokeAchievementPayloadSelect, SeedAppLimitCapsDefaultsPayloadSelect, SeedAppLimitDefaultsPayloadSelect, - SeedMeterDefaultsPayloadSelect, SeedOrgLimitCapsDefaultsPayloadSelect, SeedOrgLimitDefaultsPayloadSelect, - SeedPlanPayloadSelect, - SeedTrustLadderPayloadSelect, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; -export interface GrantAchievementVariables { - input: GrantAchievementInput; -} /** * Variables for provisionBucket - * 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. + * Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. */ export interface ProvisionBucketVariables { input: ProvisionBucketInput; } -export interface RecomputeCapabilitiesVariables { - input: RecomputeCapabilitiesInput; -} -export interface RevokeAchievementVariables { - input: RevokeAchievementInput; -} export interface SeedAppLimitCapsDefaultsVariables { input: SeedAppLimitCapsDefaultsInput; } export interface SeedAppLimitDefaultsVariables { input: SeedAppLimitDefaultsInput; } -export interface SeedMeterDefaultsVariables { - input: SeedMeterDefaultsInput; -} export interface SeedOrgLimitCapsDefaultsVariables { input: SeedOrgLimitCapsDefaultsInput; } export interface SeedOrgLimitDefaultsVariables { input: SeedOrgLimitDefaultsInput; } -export interface SeedPlanVariables { - input: SeedPlanInput; -} -export interface SeedTrustLadderVariables { - input: SeedTrustLadderInput; -} export function createMutationOperations(client: OrmClient) { return { - grantAchievement: ( - args: GrantAchievementVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - grantAchievement: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'GrantAchievement', - fieldName: 'grantAchievement', - ...buildCustomDocument( - 'mutation', - 'GrantAchievement', - 'grantAchievement', - options.select, - args, - [ - { - name: 'input', - type: 'GrantAchievementInput!', - }, - ], - connectionFieldsMap, - 'GrantAchievementPayload' - ), - }), provisionBucket: ( args: ProvisionBucketVariables, options: { @@ -142,64 +78,6 @@ export function createMutationOperations(client: OrmClient) { 'ProvisionBucketPayload' ), }), - recomputeCapabilities: ( - args: RecomputeCapabilitiesVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - recomputeCapabilities: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'RecomputeCapabilities', - fieldName: 'recomputeCapabilities', - ...buildCustomDocument( - 'mutation', - 'RecomputeCapabilities', - 'recomputeCapabilities', - options.select, - args, - [ - { - name: 'input', - type: 'RecomputeCapabilitiesInput!', - }, - ], - connectionFieldsMap, - 'RecomputeCapabilitiesPayload' - ), - }), - revokeAchievement: ( - args: RevokeAchievementVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - revokeAchievement: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'RevokeAchievement', - fieldName: 'revokeAchievement', - ...buildCustomDocument( - 'mutation', - 'RevokeAchievement', - 'revokeAchievement', - options.select, - args, - [ - { - name: 'input', - type: 'RevokeAchievementInput!', - }, - ], - connectionFieldsMap, - 'RevokeAchievementPayload' - ), - }), seedAppLimitCapsDefaults: ( args: SeedAppLimitCapsDefaultsVariables, options: { @@ -258,35 +136,6 @@ export function createMutationOperations(client: OrmClient) { 'SeedAppLimitDefaultsPayload' ), }), - seedMeterDefaults: ( - args: SeedMeterDefaultsVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - seedMeterDefaults: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'SeedMeterDefaults', - fieldName: 'seedMeterDefaults', - ...buildCustomDocument( - 'mutation', - 'SeedMeterDefaults', - 'seedMeterDefaults', - options.select, - args, - [ - { - name: 'input', - type: 'SeedMeterDefaultsInput!', - }, - ], - connectionFieldsMap, - 'SeedMeterDefaultsPayload' - ), - }), seedOrgLimitCapsDefaults: ( args: SeedOrgLimitCapsDefaultsVariables, options: { @@ -345,63 +194,5 @@ export function createMutationOperations(client: OrmClient) { 'SeedOrgLimitDefaultsPayload' ), }), - seedPlan: ( - args: SeedPlanVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - seedPlan: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'SeedPlan', - fieldName: 'seedPlan', - ...buildCustomDocument( - 'mutation', - 'SeedPlan', - 'seedPlan', - options.select, - args, - [ - { - name: 'input', - type: 'SeedPlanInput!', - }, - ], - connectionFieldsMap, - 'SeedPlanPayload' - ), - }), - seedTrustLadder: ( - args: SeedTrustLadderVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - seedTrustLadder: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'SeedTrustLadder', - fieldName: 'seedTrustLadder', - ...buildCustomDocument( - 'mutation', - 'SeedTrustLadder', - 'seedTrustLadder', - options.select, - args, - [ - { - name: 'input', - type: 'SeedTrustLadderInput!', - }, - ], - connectionFieldsMap, - 'SeedTrustLadderPayload' - ), - }), }; } diff --git a/sdk/constructive-sdk/src/usage/orm/query/index.ts b/sdk/constructive-sdk/src/usage/orm/query/index.ts index d620b32b26..4972b387c7 100644 --- a/sdk/constructive-sdk/src/usage/orm/query/index.ts +++ b/sdk/constructive-sdk/src/usage/orm/query/index.ts @@ -6,25 +6,7 @@ import { OrmClient } from '../client'; import { QueryBuilder, buildCustomDocument } from '../query-builder'; import type { InferSelectResult, StrictSelect } from '../select-types'; -import type { AppLevelRequirementConnection } from '../input-types'; import { connectionFieldsMap } from '../input-types'; -export interface EventsAchievedVariables { - level?: string; - roleId?: string; -} -export interface EventsRequiredVariables { - /** Read all values in the set after (below) this cursor. */ - after?: string; - /** Only read the first `n` values of the set. */ - first?: number; - level?: string; - /** - * Skip the first `n` values from our `after` cursor, an alternative to cursor - * based pagination. May not be used with `last`. - */ - offset?: number; - roleId?: string; -} export function createQueryOperations(client: OrmClient) { return { captureAppLimitDefaults: (options?: { select?: Record }) => @@ -65,102 +47,5 @@ export function createQueryOperations(client: OrmClient) { undefined ), }), - captureTrustLadder: (options?: { select?: Record }) => - new QueryBuilder<{ - captureTrustLadder: unknown | null; - }>({ - client, - operation: 'query', - operationName: 'CaptureTrustLadder', - fieldName: 'captureTrustLadder', - ...buildCustomDocument( - 'query', - 'CaptureTrustLadder', - 'captureTrustLadder', - options?.select, - undefined, - [], - connectionFieldsMap, - undefined - ), - }), - eventsAchieved: ( - args: EventsAchievedVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - eventsAchieved: boolean | null; - }>({ - client, - operation: 'query', - operationName: 'EventsAchieved', - fieldName: 'eventsAchieved', - ...buildCustomDocument( - 'query', - 'EventsAchieved', - 'eventsAchieved', - options?.select, - args, - [ - { - name: 'level', - type: 'String', - }, - { - name: 'roleId', - type: 'UUID', - }, - ], - connectionFieldsMap, - undefined - ), - }), - eventsRequired: ( - args: EventsRequiredVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - eventsRequired: AppLevelRequirementConnection | null; - }>({ - client, - operation: 'query', - operationName: 'EventsRequired', - fieldName: 'eventsRequired', - ...buildCustomDocument( - 'query', - 'EventsRequired', - 'eventsRequired', - options?.select, - args, - [ - { - name: 'after', - type: 'Cursor', - }, - { - name: 'first', - type: 'Int', - }, - { - name: 'level', - type: 'String', - }, - { - name: 'offset', - type: 'Int', - }, - { - name: 'roleId', - type: 'UUID', - }, - ], - connectionFieldsMap, - undefined - ), - }), }; } diff --git a/sdk/migrate-client/schemas/migrate.graphql b/sdk/migrate-client/schemas/migrate.graphql index 957f9111f3..b7793d4cf9 100644 --- a/sdk/migrate-client/schemas/migrate.graphql +++ b/sdk/migrate-client/schemas/migrate.graphql @@ -529,11 +529,57 @@ type MetaSearchConfig { """Storage metadata for a table""" type MetaStorage { + """GraphQL type name of the plane's buckets table""" + bucketsType: String! + + """ + Computed download-URL field on the files type; null on the buckets side + """ + downloadUrlField: String + + """GraphQL type name of the plane's files table""" + filesType: String! + """Whether this table is a storage buckets table""" isBucketsTable: Boolean! """Whether this table is a storage files table""" isFilesTable: Boolean! + + """The plane's GraphQL upload surface""" + upload: MetaStorageUpload! +} + +""" +The GraphQL upload surface of a storage plane, derived from the registry facts the presigned-url plugin emits from +""" +type MetaStorageUpload { + """Per-file input type inside the bulk input""" + bulkFileInputType: String! + + """Per-file payload type inside the bulk payload""" + bulkFilePayloadType: String! + + """Input type of the bulk upload mutation""" + bulkInputType: String! + + """Root mutation field for bulk upload""" + bulkMutation: String! + + """Payload type of the bulk upload mutation""" + bulkPayloadType: String! + + """Input type of the single upload mutation""" + inputType: String! + + """Root mutation field for single-file upload (e.g. uploadAppFile)""" + mutation: String! + + """Payload type of the single upload mutation""" + payloadType: String! + + """Whether the upload input requires ownerId (entity-keyed plane)""" + requiresOwnerId: Boolean! } """Information about a database table""" @@ -594,10 +640,11 @@ The root mutation type which contains root level fields which mutate data. """ type 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. + Reconcile an S3 bucket for a logical bucket in the database. + Reads the bucket config via RLS, then enqueues the same + storage:provision_bucket job used by the INSERT trigger. This is + idempotent for an already-reconciled bucket; enqueue failures become + GraphQL errors. """ provisionBucket( """ @@ -634,23 +681,17 @@ input ProvisionBucketInput { } type 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 - - """Error message if provisioning failed""" - error: String + """The logical bucket row that was queued for reconciliation.""" + bucketId: UUID! + bucketKey: String! - """The storage provider used""" - provider: String! + """The reconciler job enqueued to provision this bucket.""" + jobId: UUID! - """Whether provisioning succeeded""" - success: Boolean! + """ + The physical bucket name already recorded, or null when reconciliation has not completed. + """ + physicalName: String } """The root query type which gives access points into the data universe.""" diff --git a/sdk/migrate-client/src/migrate/orm/README.md b/sdk/migrate-client/src/migrate/orm/README.md index bc12730558..f3a4d5016c 100644 --- a/sdk/migrate-client/src/migrate/orm/README.md +++ b/sdk/migrate-client/src/migrate/orm/README.md @@ -112,10 +112,11 @@ const deleted = await db.sqlAction.delete({ where: { id: '' } }).execute(); ### `db.mutation.provisionBucket` -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. +Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. - **Type:** mutation - **Arguments:** diff --git a/sdk/migrate-client/src/migrate/orm/input-types.ts b/sdk/migrate-client/src/migrate/orm/input-types.ts index fa3df05750..413ebefbef 100644 --- a/sdk/migrate-client/src/migrate/orm/input-types.ts +++ b/sdk/migrate-client/src/migrate/orm/input-types.ts @@ -525,24 +525,17 @@ export interface ProvisionBucketInput { } // ============ Payload/Return Types (for custom operations) ============ 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; + /** The logical bucket row that was queued for reconciliation. */ + bucketId: string; + bucketKey: string; + /** The reconciler job enqueued to provision this bucket. */ + jobId: string; + /** The physical bucket name already recorded, or null when reconciliation has not completed. */ + physicalName?: string | null; } export type ProvisionBucketPayloadSelect = { - accessType?: boolean; - bucketName?: boolean; - endpoint?: boolean; - error?: boolean; - provider?: boolean; - success?: boolean; + bucketId?: boolean; + bucketKey?: boolean; + jobId?: boolean; + physicalName?: boolean; }; diff --git a/sdk/migrate-client/src/migrate/orm/mutation/index.ts b/sdk/migrate-client/src/migrate/orm/mutation/index.ts index 989afbcbd6..5491e16cd0 100644 --- a/sdk/migrate-client/src/migrate/orm/mutation/index.ts +++ b/sdk/migrate-client/src/migrate/orm/mutation/index.ts @@ -14,10 +14,11 @@ import type { import { connectionFieldsMap } from '../input-types'; /** * Variables for provisionBucket - * 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. + * Reconcile an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then enqueues the same +storage:provision_bucket job used by the INSERT trigger. This is +idempotent for an already-reconciled bucket; enqueue failures become +GraphQL errors. */ export interface ProvisionBucketVariables { input: ProvisionBucketInput;